feat(devices): joined Totals by machine report#536
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks
codeburn devicesinto 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.
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.