tokmon 0.20.4 → 0.20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ import {
18
18
  systemTimezone,
19
19
  time,
20
20
  tokens
21
- } from "./chunk-HSUYWU4V.js";
21
+ } from "./chunk-EHIQHGJL.js";
22
22
  import {
23
23
  COLOR_PALETTE,
24
24
  DEFAULTS,
@@ -3235,7 +3235,7 @@ function App({ interval: cliInterval, initialConfig, baseUrl = null, wsToken = n
3235
3235
  if (webStartingRef.current) return;
3236
3236
  webStartingRef.current = true;
3237
3237
  try {
3238
- const { startWebServer } = await import("./server-6DGQI25X.js");
3238
+ const { startWebServer } = await import("./server-RM4ZXN6C.js");
3239
3239
  const ctrl = await startWebServer({ config: cfg, log: false });
3240
3240
  webRef.current = ctrl;
3241
3241
  openUrl(ctrl.url);
@@ -141,7 +141,7 @@ var dollars = (cents) => finite(cents) / 100;
141
141
  // src/providers/usage-core.ts
142
142
  var SPARK_DAYS = 14;
143
143
  var DAY_MS = 864e5;
144
- var CACHE_VERSION = 4;
144
+ var CACHE_VERSION = 5;
145
145
  var STABLE_AGE_MS = 5 * 6e4;
146
146
  var PRUNE_AGE_MS = 200 * DAY_MS;
147
147
  var memCache = /* @__PURE__ */ new Map();
@@ -1210,6 +1210,10 @@ import { createInterface as createInterface2 } from "readline";
1210
1210
  import { join as join7 } from "path";
1211
1211
  import { homedir as homedir5 } from "os";
1212
1212
  var PRICING2 = {
1213
+ "gpt-5.5-codex": { in: 5e-6, cr: 5e-7, out: 3e-5 },
1214
+ "gpt-5.5": { in: 5e-6, cr: 5e-7, out: 3e-5 },
1215
+ "gpt-5.4-codex": { in: 25e-7, cr: 25e-8, out: 15e-6 },
1216
+ "gpt-5.4": { in: 25e-7, cr: 25e-8, out: 15e-6 },
1213
1217
  "gpt-5-codex": { in: 125e-8, cr: 125e-9, out: 1e-5 },
1214
1218
  "gpt-5-mini": { in: 25e-8, cr: 25e-9, out: 2e-6 },
1215
1219
  "gpt-5-nano": { in: 5e-8, cr: 5e-9, out: 4e-7 },
@@ -8,7 +8,7 @@ import {
8
8
  detectProviders,
9
9
  fetchPeak,
10
10
  resolveTimezone
11
- } from "./chunk-HSUYWU4V.js";
11
+ } from "./chunk-EHIQHGJL.js";
12
12
  import {
13
13
  cacheDir,
14
14
  expandHome,
package/dist/cli.js CHANGED
@@ -14,12 +14,12 @@ process.emitWarning = ((warning, ...rest) => {
14
14
  var args = process.argv.slice(2);
15
15
  var subcommand = args[0]?.toLowerCase();
16
16
  if (subcommand === "__daemon") {
17
- const { runDaemon } = await import("./daemon-O3R6R2R6.js");
17
+ const { runDaemon } = await import("./daemon-HEBPH6PG.js");
18
18
  await runDaemon(args.slice(1), { foreground: false });
19
19
  process.exit(typeof process.exitCode === "number" ? process.exitCode : 0);
20
20
  }
21
21
  if (subcommand === "serve" || subcommand === "web") {
22
- const { runDaemon } = await import("./daemon-O3R6R2R6.js");
22
+ const { runDaemon } = await import("./daemon-HEBPH6PG.js");
23
23
  await runDaemon(args.slice(1), { foreground: true });
24
24
  process.exit(typeof process.exitCode === "number" ? process.exitCode : 0);
25
25
  }
@@ -68,5 +68,5 @@ setGlyphs(resolveGlyphs({
68
68
  }));
69
69
  var daemon = await attachOrSpawn();
70
70
  var mode = daemon.kind === "spawned" ? "connected" : "degraded";
71
- var { bootstrapInk } = await import("./bootstrap-ink-3VQODLRG.js");
71
+ var { bootstrapInk } = await import("./bootstrap-ink-MVH5QEVR.js");
72
72
  await bootstrapInk({ interval, config, daemon, mode });
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  appVersion,
4
4
  startWebServer
5
- } from "./chunk-F7RJIR3Z.js";
5
+ } from "./chunk-YYATNY5E.js";
6
6
  import {
7
7
  flushDisk
8
- } from "./chunk-HSUYWU4V.js";
8
+ } from "./chunk-EHIQHGJL.js";
9
9
  import {
10
10
  cacheDir,
11
11
  loadConfig
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startWebServer
4
- } from "./chunk-F7RJIR3Z.js";
5
- import "./chunk-HSUYWU4V.js";
4
+ } from "./chunk-YYATNY5E.js";
5
+ import "./chunk-EHIQHGJL.js";
6
6
  import "./chunk-XQEJ4WQ5.js";
7
7
  export {
8
8
  startWebServer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokmon",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
4
4
  "description": "Terminal + web dashboard for Claude Code, Codex, Cursor, opencode, pi, Copilot, Gemini & more — usage, limits, and costs",
5
5
  "type": "module",
6
6
  "bin": {