tokentracker-cli 0.5.6 → 0.5.7

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.
@@ -107,7 +107,7 @@
107
107
  ]
108
108
  }
109
109
  </script>
110
- <script type="module" crossorigin src="/assets/main-DvYXwZBy.js"></script>
110
+ <script type="module" crossorigin src="/assets/main-Cs8rK2ak.js"></script>
111
111
  <link rel="stylesheet" crossorigin href="/assets/main-CJMr9zAk.css">
112
112
  </head>
113
113
  <body>
@@ -51,7 +51,7 @@
51
51
  "description": "Shareable Token Tracker dashboard snapshot."
52
52
  }
53
53
  </script>
54
- <script type="module" crossorigin src="/assets/main-DvYXwZBy.js"></script>
54
+ <script type="module" crossorigin src="/assets/main-Cs8rK2ak.js"></script>
55
55
  <link rel="stylesheet" crossorigin href="/assets/main-CJMr9zAk.css">
56
56
  </head>
57
57
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokentracker-cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Token usage tracker for AI agent CLIs (Claude Code, Codex, Cursor, Kiro, Gemini, OpenCode, OpenClaw)",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -462,6 +462,7 @@ function createLocalApiHandler({ queuePath }) {
462
462
 
463
463
  // --- auth proxy: forward /api/auth/* to InsForge cloud ---
464
464
  if (p.startsWith("/api/auth/")) {
465
+ const { DEFAULT_BASE_URL } = require("./runtime-config.js");
465
466
  let insforgeBase = process.env.TOKENTRACKER_INSFORGE_BASE_URL
466
467
  || process.env.INSFORGE_BASE_URL
467
468
  || "";
@@ -473,8 +474,7 @@ function createLocalApiHandler({ queuePath }) {
473
474
  } catch { /* ignore */ }
474
475
  }
475
476
  if (!insforgeBase) {
476
- json(res, { error: "InsForge base URL not configured" }, 500);
477
- return true;
477
+ insforgeBase = DEFAULT_BASE_URL;
478
478
  }
479
479
  try {
480
480
  const targetUrl = `${insforgeBase.replace(/\/$/, "")}${p}${url.search || ""}`;