Skip to content

feat(devices): joined Totals by machine report#536

Merged
iamtoruk merged 1 commit into
mainfrom
feat/devices-report
Jun 20, 2026
Merged

feat(devices): joined Totals by machine report#536
iamtoruk merged 1 commit into
mainfrom
feat/devices-report

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Reworks codeburn devices into a spacious joined report that matches the requested ccusage-style layout: one row per machine plus a bold Combined row.

Columns: Host / Cost / Total tokens / Input / Output / Cache create / Cache read, all as full comma-grouped numbers in a roomy box table.

Totals by machine
┌──────────────────────┬─────────────┬─────────────────┬───────────────┬──────────────┬────────────────┬─────────────────┐
│  Host                │       Cost  │   Total tokens  │        Input  │      Output  │  Cache create  │     Cache read  │
├──────────────────────┼─────────────┼─────────────────┼───────────────┼──────────────┼────────────────┼─────────────────┤
│  ben-mbp (this Mac)  │  $6,751.84  │  3,001,779,631  │  202,286,956  │  14,487,808  │    45,687,883  │  2,739,316,984  │
│  ben-mm              │  $2,346.65  │    896,429,789  │  111,488,977  │   4,591,631  │     3,448,991  │    776,900,190  │
│  Combined            │  $9,098.49  │  3,898,209,420  │  313,775,933  │  19,079,439  │    49,136,874  │  3,516,217,174  │
└──────────────────────┴─────────────┴─────────────────┴───────────────┴──────────────┴────────────────┴─────────────────┘

Cache create = tokens written to cache, Cache read = tokens read from cache (summed from each device's daily history). Unreachable devices show their error in place of the numbers. Adds a small reusable box-table renderer (src/text-table.ts). Host tests + full suite pass; tsc clean.

Follow-up if wanted: the per-day cross-machine table (the second screenshot) needs per-day provider data the shared payload does not currently carry.

Rework codeburn devices into a spacious joined report matching the
screenshot: Host / Cost / Total tokens / Input / Output / Cache create /
Cache read, with full comma-grouped numbers and a bold Combined row. Add
a reusable box-drawing table renderer (text-table.ts).
@iamtoruk iamtoruk merged commit 16d2f7e into main Jun 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant