tokentrace 0.21.0 → 0.21.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to TokenTrace are documented here.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## [0.21.1] - 2026-06-26
8
+
9
+ ### Changed
10
+
11
+ - **README and website handoff now match the simplified product.** Refreshed the
12
+ public docs around preflight, Today, Evidence, Fix Data, and current
13
+ Playwright-captured `0.21.0` dashboard screenshots.
14
+
7
15
  ## [0.21.0] - 2026-06-26
8
16
 
9
17
  ### Added
package/README.md CHANGED
@@ -4,13 +4,26 @@
4
4
 
5
5
  # TokenTrace CLI
6
6
 
7
- Local-first AI CLI usage analytics. TokenTrace scans local CLI logs and local usage databases, normalizes token usage, estimates missing counts with confidence labels, and shows cost, model, project, session, repair, and evidence analytics in a browser dashboard.
7
+ Local-first AI CLI usage analytics for developers and coding agents.
8
+
9
+ TokenTrace answers one practical question before the next expensive AI CLI run:
10
+ is your local usage evidence ready to trust? It scans local Claude Code, Codex,
11
+ structured usage logs, and usage-shaped local databases, then labels token and
12
+ cost data as exact, estimated, unknown, cached, or non-cache. The dashboard
13
+ opens on **Today**, with direct paths into Sessions, Evidence, and Fix Data.
8
14
 
9
15
  TokenTrace is designed for local development machines first, with macOS-oriented defaults. It does not require a cloud account and does not send telemetry or logs anywhere.
10
16
 
11
17
  [Website](https://www.baseframelabs.com/apps/tokentrace) · [Source](https://github.com/abhiyoheswaran1/tokentrace)
12
18
 
13
- ![TokenTrace overview dashboard](docs/assets/overview-0.12.0.png)
19
+ ![TokenTrace Today dashboard](docs/assets/today-0.21.0.png)
20
+
21
+ ## What TokenTrace Helps You Do
22
+
23
+ - Check readiness before another coding-agent run with `tokentrace preflight --json` or MCP `get_preflight`.
24
+ - See today’s local cost, tokens, sessions, confidence, anomalies, and repair signals in one first screen.
25
+ - Trace every important number back to local files, parser state, sessions, model rates, and confidence labels.
26
+ - Fix missing cost data through a guided repair queue without uploading prompts or message bodies.
14
27
 
15
28
  ## Start In Seconds
16
29
 
@@ -133,8 +146,7 @@ explicit scan tool. It does not scan files on startup, and its scan tool require
133
146
  `confirmLocalScan=true` before reading local usage files or writing the local
134
147
  database.
135
148
 
136
- Before starting another long coding-agent run, use the read-only preflight
137
- surface:
149
+ Before starting another long coding-agent run, use preflight:
138
150
 
139
151
  ```bash
140
152
  tokentrace preflight --json
@@ -195,13 +207,17 @@ tokentrace roadmap --json
195
207
  # Inspect roadmap handoff, action recipes, and release status
196
208
  ```
197
209
 
198
- ## Local Sources And Trust
210
+ ## Daily Loop And Trust
199
211
 
200
- TokenTrace 0.12.0 bundles local source expansion, evidence exports, scan
201
- scheduling, scoped guardrails, parser profile preview, saved reports, and
202
- agent-readable release status.
212
+ TokenTrace now organizes the product around the daily loop:
203
213
 
204
- New trust surfaces include:
214
+ 1. **Preflight**: decide whether local evidence is ready before another agent run.
215
+ 2. **Today**: review cost, token, session, confidence, anomaly, and repair signals.
216
+ 3. **Evidence**: trace numbers back to source files, parser confidence, sessions, and model-rate state.
217
+ 4. **Fix Data**: resolve unknown cost, parser review, and model-rate gaps.
218
+ 5. **Advanced**: inspect Scan Health, Discovery, Parsers, Raw Data, Query, and Model Rates when you need the full diagnostic surface.
219
+
220
+ Trust surfaces include:
205
221
 
206
222
  - native structured usage log and Cursor-style chat export ingestion
207
223
  - Source Coverage in Scan Health for native, profile-assisted, fallback, and
@@ -214,11 +230,6 @@ New trust surfaces include:
214
230
  cost, high-cost sessions, and confidence trends
215
231
  - operating metadata export without raw usage records
216
232
 
217
- The 0.12.0 dashboard also tightens the daily operator path: setup buttons now
218
- open the exact Settings section, scan results show what changed and where to go
219
- next, and Evidence explains when it is being opened as a contextual drill-down
220
- rather than a sidebar destination.
221
-
222
233
  ## Accuracy And Evidence
223
234
 
224
235
  TokenTrace labels the trust level behind imported numbers:
@@ -270,10 +281,13 @@ Default discovery checks these locations when present:
270
281
  - TokenTrace wrapper logs in the local app-data directory
271
282
  - Any custom folders configured in Settings
272
283
 
273
- Use **Settings** in the dashboard to add custom folders, toggle raw message storage, and trigger scans. Use **Scan Health**, **Discovery**, **Parsers**, and **Raw Data** to inspect discovered files, parser decisions, warnings, failures, extracted metadata, and confidence levels.
284
+ Use **Settings** to add custom folders, toggle raw message storage, and trigger
285
+ scans. Use **Scan Health**, **Discovery**, **Parsers**, and **Raw Data** to
286
+ inspect discovered files, parser decisions, warnings, failures, extracted
287
+ metadata, and confidence levels.
274
288
 
275
289
  Settings also supports optional local monthly usage guardrails. Set a cost
276
- limit, token limit, or both, and Overview will show month-to-date progress from
290
+ limit, token limit, or both, and Today will show month-to-date progress from
277
291
  imported local CLI usage.
278
292
 
279
293
  Sessions includes built-in and local saved views for recurring review paths:
@@ -362,13 +376,13 @@ Codex CLI status-line integration is intentionally deferred until its status-lin
362
376
 
363
377
  Dashboard views:
364
378
 
365
- ![TokenTrace overview dashboard](docs/assets/overview-0.12.0.png)
379
+ ![TokenTrace Today dashboard](docs/assets/today-0.21.0.png)
366
380
 
367
- ![TokenTrace processed tokens evidence trail](docs/assets/evidence-0.12.0.png)
381
+ ![TokenTrace unknown cost evidence trail](docs/assets/evidence-0.21.0.png)
368
382
 
369
- ![TokenTrace unknown cost repair queue](docs/assets/repair-0.12.0.png)
383
+ ![TokenTrace Fix Data queue](docs/assets/fix-data-0.21.0.png)
370
384
 
371
- ![TokenTrace Scan Health parser review](docs/assets/scan-health-0.12.0.png)
385
+ ![TokenTrace Scan Health parser review](docs/assets/scan-health-0.21.0.png)
372
386
 
373
387
  CLI startup and help:
374
388
 
@@ -403,6 +417,7 @@ Stop the server with `Ctrl+C` in the terminal where `tokentrace` is running.
403
417
  - `npm run security:ioc` scans lockfiles, workflows, and local Claude/VS Code hook files for high-signal supply-chain compromise indicators.
404
418
  - Public npm publishing is configured through GitHub Actions Trusted Publishing and provenance from version tags.
405
419
  - Socket GitHub checks and ProjScan are used as release guardrails, alongside `npm audit --audit-level=moderate`.
420
+ - `npm run release:check` fails when a gate command exits non-zero. ProjScan warning-level architecture findings, such as circular imports, are reported as release risk and tracked as architecture debt; they do not fail the release unless ProjScan exits non-zero.
406
421
  - Release notes are published directly in GitHub Releases from the relevant changelog section, not as a link-only summary.
407
422
 
408
423
  See [SECURITY.md](SECURITY.md) for the full security and privacy model.
@@ -3,6 +3,11 @@
3
3
  TokenTrace is a local-first CLI and dashboard for AI coding-agent token, cost,
4
4
  session, parser, and evidence analytics.
5
5
 
6
+ The current product loop is: run preflight, review Today, inspect Sessions or
7
+ Evidence, then use Fix Data when model rates or parser confidence block trusted
8
+ costs. Advanced pages remain available for diagnostics, but agents should start
9
+ from preflight before long runs.
10
+
6
11
  ## Start Here
7
12
 
8
13
  Use the read-only discovery manifest before running any other TokenTrace command:
@@ -101,19 +106,22 @@ curl http://127.0.0.1:3030/api/roadmap
101
106
  tokentrace preflight --json
102
107
  ```
103
108
 
104
- 4. Refresh local data when the human expects current usage:
109
+ 4. Follow the preflight decision. Use Today for the human-facing status, Evidence
110
+ for numeric claims, and Fix Data for unknown-cost work.
111
+
112
+ 5. Refresh local data when the human expects current usage:
105
113
 
106
114
  ```bash
107
115
  tokentrace scan --json
108
116
  ```
109
117
 
110
- 5. Check trust before making claims:
118
+ 6. Check trust before making claims:
111
119
 
112
120
  ```bash
113
121
  tokentrace doctor --json
114
122
  ```
115
123
 
116
- 6. Explain totals with evidence:
124
+ 7. Explain totals with evidence:
117
125
 
118
126
  ```bash
119
127
  tokentrace evidence --json
@@ -5,6 +5,9 @@ session, parser, and repair questions. The goal is not to make agents guess from
5
5
  terminal history. The goal is to make them check local TokenTrace data first,
6
6
  then report with confidence labels and evidence.
7
7
 
8
+ The current workflow is short: preflight first, Today for status, Evidence for
9
+ numbers, and Fix Data for unknown-cost or parser-confidence repairs.
10
+
8
11
  ## MCP Install
9
12
 
10
13
  MCP registry name:
Binary file
Binary file
Binary file
package/llms.txt CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  > Local-first analytics for AI CLI usage, focused on coding-agent tokens, costs, sessions, parser confidence, and evidence trails.
4
4
 
5
+ Current product loop: preflight before long runs, Today for local readiness and
6
+ daily usage, Sessions for conversation detail, Evidence for numeric claims, and
7
+ Fix Data for unknown cost or parser-confidence work.
8
+
5
9
  ## Agent Entry Point
6
10
 
7
11
  Start with:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokentrace",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "mcpName": "io.github.abhiyoheswaran1/tokentrace",
5
5
  "description": "Local-first dashboard for AI CLI token, cost, and session analytics.",
6
6
  "author": {
package/server.json CHANGED
@@ -8,12 +8,12 @@
8
8
  "url": "https://github.com/abhiyoheswaran1/tokentrace",
9
9
  "source": "github"
10
10
  },
11
- "version": "0.21.0",
11
+ "version": "0.21.1",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "tokentrace",
16
- "version": "0.21.0",
16
+ "version": "0.21.1",
17
17
  "runtimeHint": "npx",
18
18
  "packageArguments": [
19
19
  {