ccgauge 1.1.2 → 1.1.4

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.
Files changed (60) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +32 -32
  3. package/.next/standalone/.next/app-path-routes-manifest.json +5 -5
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  6. package/.next/standalone/.next/server/app/api/blocks/route_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/api/export/usage/route.js +1 -1
  8. package/.next/standalone/.next/server/app/api/export/usage/route_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/api/scan/route_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/models/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/page.js +1 -1
  16. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/settings/page.js +1 -1
  22. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/usage/page.js +2 -2
  24. package/.next/standalone/.next/server/app/usage/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
  26. package/.next/standalone/.next/server/chunks/567.js +2 -2
  27. package/.next/standalone/.next/server/chunks/98.js +1 -1
  28. package/.next/standalone/.next/server/functions-config-manifest.json +1 -1
  29. package/.next/standalone/.next/server/middleware-manifest.json +1 -1
  30. package/.next/standalone/.next/server/pages/500.html +1 -1
  31. package/.next/standalone/.next/static/chunks/148-59989feca70944f2.js +1 -0
  32. package/.next/standalone/.next/static/chunks/app/usage/page-8af23d9f5420c824.js +1 -0
  33. package/.next/standalone/node_modules/next/dist/compiled/babel/bundle.js +227 -0
  34. package/.next/standalone/node_modules/next/dist/compiled/babel/code-frame.js +1 -0
  35. package/.next/standalone/node_modules/next/dist/compiled/babel/core-lib-block-hoist-plugin.js +1 -0
  36. package/.next/standalone/node_modules/next/dist/compiled/babel/core-lib-config.js +1 -0
  37. package/.next/standalone/node_modules/next/dist/compiled/babel/core-lib-normalize-file.js +1 -0
  38. package/.next/standalone/node_modules/next/dist/compiled/babel/core-lib-normalize-opts.js +1 -0
  39. package/.next/standalone/node_modules/next/dist/compiled/babel/core-lib-plugin-pass.js +1 -0
  40. package/.next/standalone/node_modules/next/dist/compiled/babel/core.js +1 -0
  41. package/.next/standalone/node_modules/next/dist/compiled/babel/generator.js +1 -0
  42. package/.next/standalone/node_modules/next/dist/compiled/babel/package.json +1 -0
  43. package/.next/standalone/node_modules/next/dist/compiled/babel/parser.js +1 -0
  44. package/.next/standalone/node_modules/next/dist/compiled/babel/plugin-syntax-jsx.js +1 -0
  45. package/.next/standalone/node_modules/next/dist/compiled/babel/plugin-transform-define.js +1 -0
  46. package/.next/standalone/node_modules/next/dist/compiled/babel/plugin-transform-modules-commonjs.js +1 -0
  47. package/.next/standalone/node_modules/next/dist/compiled/babel/preset-typescript.js +1 -0
  48. package/.next/standalone/node_modules/next/dist/compiled/babel/traverse.js +1 -0
  49. package/.next/standalone/node_modules/next/dist/compiled/babel/types.js +1 -0
  50. package/.next/standalone/node_modules/next/dist/compiled/babel-packages/package.json +1 -0
  51. package/.next/standalone/node_modules/next/dist/compiled/babel-packages/packages-bundle.js +335 -0
  52. package/.next/standalone/package.json +2 -2
  53. package/CHANGELOG.md +85 -0
  54. package/dist/mcp/server.mjs +14 -14
  55. package/dist/report/index.mjs +28 -28
  56. package/package.json +2 -2
  57. package/.next/standalone/.next/static/chunks/148-edf90b0918345dc2.js +0 -1
  58. package/.next/standalone/.next/static/chunks/app/usage/page-051223f62647aadc.js +0 -1
  59. /package/.next/standalone/.next/static/{EQqRlXV5HyaCYSZWOVllH → pccRwHEkTSz4g-0VPmlVK}/_buildManifest.js +0 -0
  60. /package/.next/standalone/.next/static/{EQqRlXV5HyaCYSZWOVllH → pccRwHEkTSz4g-0VPmlVK}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccgauge",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Local web dashboard for Claude Code and OpenAI Codex CLI token usage and cost",
5
5
  "keywords": [
6
6
  "claude",
@@ -64,7 +64,7 @@
64
64
  "start:next": "next start -p 3737",
65
65
  "lint": "eslint .",
66
66
  "typecheck": "tsc --noEmit",
67
- "test": "node --experimental-strip-types --no-warnings scripts/test-codex-parser.mjs && node --experimental-strip-types --no-warnings scripts/test-turns.mjs && node --experimental-strip-types --no-warnings scripts/test-source-merge.mjs && node --experimental-strip-types --no-warnings scripts/test-cost-from-usage.mjs && node --experimental-strip-types --no-warnings scripts/test-range.mjs && node scripts/check-parser-versions.mjs && node scripts/check-readme-images.mjs",
67
+ "test": "node --experimental-strip-types --no-warnings scripts/test-codex-parser.mjs && node --experimental-strip-types --no-warnings scripts/test-turns.mjs && node --experimental-strip-types --no-warnings scripts/test-sidechain.mjs && node --experimental-strip-types --no-warnings scripts/test-source-merge.mjs && node --experimental-strip-types --no-warnings scripts/test-cost-from-usage.mjs && node --experimental-strip-types --no-warnings scripts/test-range.mjs && node scripts/check-parser-versions.mjs && node scripts/check-readme-images.mjs",
68
68
  "test:mcp": "node scripts/test-mcp-server.mjs",
69
69
  "clean": "node -e \"for (const p of ['.next','node_modules','tsconfig.tsbuildinfo']) require('node:fs').rmSync(p,{recursive:true,force:true})\"",
70
70
  "screenshots": "node scripts/screenshots.mjs",
package/CHANGELOG.md CHANGED
@@ -5,6 +5,86 @@ All notable changes to **ccgauge** are documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
  this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.4] — 2026-06-07
9
+
10
+ A maintenance follow-up to 1.1.3 — hardens the build's smoke gate and adds
11
+ regression coverage for the Workflow badge. No user-facing or runtime
12
+ changes.
13
+
14
+ ### Fixed
15
+
16
+ - **Build smoke gate could spuriously fail or leak on interruption.** The
17
+ post-build `smoke-standalone.mjs` picked its port ~1s before binding it
18
+ (the standalone `cpSync` sits in between), so a busy host could grab the
19
+ port in that gap and fail the build with a spurious `EADDRINUSE`; and a
20
+ signal-killed run (CI cancel / Ctrl-C) skipped the cleanup, leaking the
21
+ multi-MB temp copy and an orphaned server still holding the port. The
22
+ gate now picks the port immediately before spawn and cleans up the temp
23
+ dir + child on SIGINT/SIGTERM/SIGHUP.
24
+
25
+ ### Internal
26
+
27
+ - **Regression test for the Workflow badge count.** Added an N>1 fan-out
28
+ case to `scripts/test-sidechain.mjs`: three sub-agents (two Workflow
29
+ files + one Task) fold into a single turn, and the badge count resolves
30
+ to the two distinct workflow transcript files (the Task one excluded) —
31
+ the `workflowSubagentCount` path the 1.1.3 feature shipped without
32
+ coverage.
33
+
34
+ ## [1.1.3] — 2026-06-05
35
+
36
+ A critical hotfix, plus a Workflow / ultracode badge on the usage page.
37
+ **v1.1.2 fails to start on a clean install** — `npx ccgauge` crashes at
38
+ boot, before serving a single page. If you installed 1.1.2, upgrade
39
+ immediately.
40
+
41
+ ### Added
42
+
43
+ - **Workflow / ultracode badge on the usage page.** A turn that fans out
44
+ parallel sub-agents — Claude Code's Workflow tool, e.g. `ultracode`
45
+ mode — now shows a `Workflow ×N` badge in the usage table's model
46
+ column, where N is the number of distinct parallel sub-agent transcripts
47
+ it spawned. Localized (en / zh).
48
+
49
+ ### Fixed
50
+
51
+ - **`npx ccgauge` crashed on every clean machine (1.1.2 regression).**
52
+ The 1.1.2 size-prune deleted `next/dist/compiled/babel`, assuming it was
53
+ a build-only transpiler bundle. It is not: Next's standalone production
54
+ startup requires `babel/code-frame` unconditionally
55
+ (`node-environment.js` → `patch-error-inspect.js` →
56
+ `next-devtools/server/shared.js`). The server threw `Cannot find module
57
+ 'next/dist/compiled/babel/code-frame'` at boot and never listened — so
58
+ every page, logo, and JS chunk failed to load with a 400 and the app
59
+ died with a `ChunkLoadError`. `babel` + `babel-packages` are restored to
60
+ the package (tarball 5.3 MB → 5.9 MB — still ~62% below the 15.5 MB it
61
+ started from). The other prunes (`sharp` / `@img`, AMP validator,
62
+ capsize font-metrics, `next/font`) are verified safe and stay removed.
63
+
64
+ - **The build's smoke gate couldn't catch this — now it can.** The
65
+ post-build `smoke-standalone.mjs` booted the server *inside the repo*,
66
+ where Node's module resolution falls back to the project's own
67
+ `node_modules/next` — so a standalone missing its bundled `babel` still
68
+ started and the gate passed green. The gate now copies the standalone to
69
+ a temp dir **outside the repo** and boots it there, faithfully
70
+ reproducing a clean `npx` install. Reverse-tested: with `babel` removed
71
+ it now fails the build (`server exited early … Cannot find module`),
72
+ exactly the regression that shipped 1.1.2.
73
+
74
+ - **Workflow / ultracode sub-agent turns weren't folded into the turn
75
+ that spawned them.** These sub-agent transcripts live under
76
+ `subagents/workflows/wf_<id>/`, a path the sidechain-linking regex
77
+ didn't match — so each parallel agent surfaced as its own orphan
78
+ "(no user text)" row instead of collapsing into the conversation turn
79
+ that launched the fan-out. The matcher now handles the nested workflow
80
+ path (case- and separator-tolerant), with regression tests.
81
+
82
+ ### Internal
83
+
84
+ - `postbuild.mjs` now carries a standing warning against re-pruning
85
+ `babel`, documenting the exact startup require chain that depends on it,
86
+ so the assumption that misfired in 1.1.2 can't be repeated silently.
87
+
8
88
  ## [1.1.2] — 2026-05-30
9
89
 
10
90
  A packaging + polish release. The published npm tarball shrinks by 66%,
@@ -1263,6 +1343,11 @@ of HTML to the browser.
1263
1343
  - Initial public release as `ccgauge`: local Next.js dashboard for
1264
1344
  Claude Code token usage, cost, and 5-hour block tracking.
1265
1345
 
1346
+ [1.1.4]: https://github.com/chengzuopeng/ccgauge/compare/v1.1.3...v1.1.4
1347
+ [1.1.3]: https://github.com/chengzuopeng/ccgauge/compare/v1.1.2...v1.1.3
1348
+ [1.1.2]: https://github.com/chengzuopeng/ccgauge/compare/v1.1.1...v1.1.2
1349
+ [1.1.1]: https://github.com/chengzuopeng/ccgauge/compare/v1.1.0...v1.1.1
1350
+ [1.1.0]: https://github.com/chengzuopeng/ccgauge/compare/v1.0.5...v1.1.0
1266
1351
  [1.0.5]: https://github.com/chengzuopeng/ccgauge/compare/v1.0.4...v1.0.5
1267
1352
  [1.0.4]: https://github.com/chengzuopeng/ccgauge/compare/v1.0.3...v1.0.4
1268
1353
  [1.0.3]: https://github.com/chengzuopeng/ccgauge/compare/v1.0.2...v1.0.3