codexmeter 1.0.4 → 1.0.6

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
@@ -13,7 +13,7 @@ That’s it. A local URL is printed; Ctrl+click to open. The dashboard ingests y
13
13
  ## Usage
14
14
 
15
15
  ```bash
16
- # Default: auto port, open browser, read ~/.codex
16
+ # Default: auto port, open browser, read $CODEX_HOME or ~/.codex
17
17
  npx codexmeter@latest
18
18
 
19
19
  # Custom Codex home
package/bin/codexmeter.js CHANGED
@@ -5,10 +5,12 @@ import path from 'path';
5
5
  import os from 'os';
6
6
  import { createServer } from '../server/index.js';
7
7
 
8
+ const defaultCodexHome = process.env.CODEX_HOME || path.join(os.homedir(), '.codex');
9
+
8
10
  program
9
11
  .name('codexmeter')
10
12
  .description('Local telemetry dashboard for Codex CLI usage')
11
- .option('--codex-home <path>', 'Path to .codex directory', path.join(os.homedir(), '.codex'))
13
+ .option('--codex-home <path>', 'Path to .codex directory', defaultCodexHome)
12
14
  .option('--port <n>', 'Port number', '0')
13
15
  .option('--no-open', 'Do not open browser automatically')
14
16
  .option('--from <date>', 'Start date filter (YYYY-MM-DD)')