tokentracker-cli 0.14.1 → 0.14.3

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.
package/README.md CHANGED
@@ -33,7 +33,7 @@ Auto-collect token counts from **13 AI coding tools**, aggregate them locally, s
33
33
 
34
34
  ## ⚡ Quick Start
35
35
 
36
- > **Requirements**: Node.js **20+** (CLI runs on macOS / Linux / Windows; menu bar app and Cursor SQLite reader are macOS-only).
36
+ > **Requirements**: Node.js **20+** (CLI runs on macOS / Linux / Windows; menu bar app is macOS-only. Cursor token reading uses the system `sqlite3` CLI when available and falls back to `node:sqlite` on supported Node releases).
37
37
 
38
38
  ```bash
39
39
  npx tokentracker-cli
package/bin/tracker.js CHANGED
@@ -3,7 +3,10 @@
3
3
 
4
4
  const { run } = require('../src/cli');
5
5
  const { stripDebugFlag } = require('../src/lib/debug-flags');
6
- const { relaunchWithProxyEnvIfNeeded } = require('../src/lib/proxy-env');
6
+ const {
7
+ relaunchWithProxyEnvIfNeeded,
8
+ applyUndiciProxyIfNeeded,
9
+ } = require('../src/lib/proxy-env');
7
10
 
8
11
  const { argv, debug } = stripDebugFlag(process.argv.slice(2));
9
12
  if (debug) process.env.TOKENTRACKER_DEBUG = '1';
@@ -21,6 +24,13 @@ if (relaunch) {
21
24
  process.exit(0);
22
25
  }
23
26
 
27
+ // NODE_USE_ENV_PROXY only works on Node 22.21+/24.5+. For older runtimes
28
+ // (including community users on stale Node, and the embedded Node shipped
29
+ // with older macOS app builds), set an undici ProxyAgent so fetch() actually
30
+ // honors HTTPS_PROXY. Safe to run on modern Node too — explicit dispatcher
31
+ // takes precedence over the env-var-driven default.
32
+ applyUndiciProxyIfNeeded();
33
+
24
34
  run(argv).catch((err) => {
25
35
  console.error(err?.stack || String(err));
26
36
  if (debug) {