v1.6.6 — dashboard panel + tokens column + model color fixes
Patch release. Existing users: reinstall (config auto-migrated, duplicate plugin removed):
curl -fsSL https://raw.githubusercontent.com/jayson-jia-dev/cc-token/main/install.sh | bashFixes
- Dashboard: bottom panels were blank. A helper (
esc()) was referenced in the Usage Wrapped panel but only defined inside other panels' scope — the resultingReferenceErrorsilently halted every panel after it (Usage Wrapped / ROI / Machines rendered empty). Hoistedesc()to global scope. - Daily Details "Tokens" column now shows actual per-session token counts (was showing the model name); model moved next to the project.
- Model cost donut: Opus 4.8 was missing from the palette and collided with Opus 4.6 — now distinct.
- Daily Details reconcile: per-day session attribution + top-30-by-cost + a "+N more sessions ($X)" remainder row so rows always sum to the day total.
- New
tests/test_dashboard_js.pyexecutes all inline dashboard scripts under a DOM stub to catch this class of runtime regression.
Includes everything from v1.6.0–v1.6.5 (rename to cc-token, usage-depth scoring fix, audit hardening).