ccgauge 1.2.0 → 1.2.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.
Files changed (45) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +24 -24
  3. package/.next/standalone/.next/app-path-routes-manifest.json +8 -8
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/api/blocks/route_client-reference-manifest.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/turns/route_client-reference-manifest.js +1 -1
  14. package/.next/standalone/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/models/page.js +1 -1
  16. package/.next/standalone/.next/server/app/models/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/.next/server/app/page.js +1 -1
  18. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/projects/page.js +1 -1
  21. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/sessions/page.js +1 -1
  24. package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/settings/page.js +2 -2
  26. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/usage/page.js +2 -2
  28. package/.next/standalone/.next/server/app/usage/page_client-reference-manifest.js +1 -1
  29. package/.next/standalone/.next/server/app-paths-manifest.json +8 -8
  30. package/.next/standalone/.next/server/chunks/697.js +1 -1
  31. package/.next/standalone/.next/server/chunks/716.js +1 -1
  32. package/.next/standalone/.next/server/functions-config-manifest.json +2 -2
  33. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  34. package/.next/standalone/.next/server/pages/500.html +1 -1
  35. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  36. package/.next/standalone/.next/static/chunks/app/usage/page-02dd25ce6058f096.js +1 -0
  37. package/.next/standalone/node_modules/next/node_modules/postcss/package.json +0 -0
  38. package/.next/standalone/package.json +1 -1
  39. package/CHANGELOG.md +72 -0
  40. package/dist/mcp/server.mjs +14 -14
  41. package/dist/report/index.mjs +28 -28
  42. package/package.json +25 -23
  43. package/.next/standalone/.next/static/chunks/app/usage/page-1ffeadfacd55c9f0.js +0 -1
  44. /package/.next/standalone/.next/static/{KYCxLofmJUzQwVpdBlibl → Lq6oOv9BIs0oxAoucpUNd}/_buildManifest.js +0 -0
  45. /package/.next/standalone/.next/static/{KYCxLofmJUzQwVpdBlibl → Lq6oOv9BIs0oxAoucpUNd}/_ssgManifest.js +0 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,78 @@ 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.2.3] — 2026-07-08
9
+
10
+ Two fixes to the `/usage` overview area.
11
+
12
+ ### Fixed
13
+
14
+ - **The "Overview" toggle now actually hides the overview.** The eye button in
15
+ the Usage header is meant to collapse the KPI cards *and* the trend chart in
16
+ one click (its own tooltip reads "KPIs + trend"), leaving just the Requests
17
+ table. But neither element carried the `.usage-overview-block` class the CSS
18
+ targets, so the button flipped its state and nothing moved. The KPI grid, the
19
+ Trend section, and both of their loading skeletons now carry the class, so the
20
+ toggle collapses and restores the whole overview as intended.
21
+ - **Restored the gap between the trend chart and the Requests table.** The
22
+ Requests section was missing its top margin and sat flush against the trend
23
+ card; it now uses `mt-4` to match the vertical rhythm of the rest of the page.
24
+
25
+ ## [1.2.2] — 2026-06-19
26
+
27
+ Fixes a real footgun in the v1.2.0 Codex fast-tier multiplier: the result of
28
+ reading `~/.codex/config.toml` was memoized at module load, so toggling
29
+ `service_tier` required a full server restart to take effect. The detection
30
+ logic itself is intentionally kept identical to ccusage's
31
+ `adapter/codex/speed.rs` — that's the only practical proxy available, since
32
+ the rollout JSONL doesn't record the active service tier per turn.
33
+
34
+ ### Fixed
35
+
36
+ - **No more boot-time cache on the fast-tier detection.**
37
+ `detectCodexFastTier()` now re-reads `config.toml` on every call (a
38
+ ~few-hundred-byte read per request, negligible). Live verification: with
39
+ `service_tier="fast"` Codex totals come in at \$256.76; flip to
40
+ `"default"` mid-session and the next `/api/turns` request reports \$102.70
41
+ with `codexFastActive=false`; flip back to `"fast"` and it returns to
42
+ \$256.76 — all without touching the process.
43
+
44
+ ### Known limitation
45
+
46
+ - **Per-turn fast-mode is unrecoverable from rollout data.** If you toggle
47
+ `service_tier` over time, historical turns recorded under the previous
48
+ setting are still billed at the *current* setting's rate. ccusage
49
+ v20.0.14 has the same behavior. The dashboard reflects "what would my
50
+ bill be if every Codex turn ran under the active tier", not absolute
51
+ historical truth — there is no field in the rollout JSONL that records
52
+ the tier at API-call time (verified by exhaustive inspection of every
53
+ payload across `token_count` / `session_meta` / `turn_context` events
54
+ plus `~/.codex/.codex-global-state.json`).
55
+
56
+ ## [1.2.1] — 2026-06-18
57
+
58
+ Fixes two stacking / clipping bugs on the usage page that made dropdowns
59
+ appear behind or get cut off by surrounding content.
60
+
61
+ ### Fixed
62
+
63
+ - **Filter dropdowns on /usage were painted under the KPI cards.** The
64
+ custom-range picker (and by extension the model / project filter dropdowns)
65
+ showed the calendar / option list dimly behind the body content instead
66
+ of on top. Root cause: `.dash-stagger > *` applies a transform animation,
67
+ which makes each direct child its own stacking context — the top bar and
68
+ the body end up as siblings with implicit z-auto, so DOM order wins and
69
+ the body covers the top bar's popovers. Lifted the PageShell top bar to
70
+ `relative z-20` so its popovers always win. Same fix benefits every
71
+ PageShell-based page (sessions / projects / models / settings / overview).
72
+ - **Usage table "Columns" dropdown got clipped by its Section card** when
73
+ the table filtered down to ~0–2 rows: the card collapsed to ~200 px while
74
+ the dropdown is ~328 px tall, so the bottom row of column toggles became
75
+ unreachable. The panel is now portaled to `<body>` (mirroring HoverCard)
76
+ and pinned to the trigger's bounding rect via `useLayoutEffect`, with
77
+ scroll / resize listeners keeping it anchored. Click-outside detection
78
+ now checks both the trigger and the portaled panel.
79
+
8
80
  ## [1.2.0] — 2026-06-17
9
81
 
10
82
  Two big themes: **Codex billing accuracy** is back in line with