Skip to content

feat: add grouped weekly and monthly tables#1

Merged
jiunbae merged 1 commit into
mainfrom
agent/group-by-table
Jul 15, 2026
Merged

feat: add grouped weekly and monthly tables#1
jiunbae merged 1 commit into
mainfrom
agent/group-by-table

Conversation

@jiunbae

@jiunbae jiunbae commented Jul 15, 2026

Copy link
Copy Markdown
Member

What changed

  • replace the compact fleet output with a ccusage-style Unicode table
  • add --group-by agent, --group-by device, and --group-by none
  • show model lists, full token counts, costs, date totals, and a final total row
  • support daily, weekly, and monthly reports through one aggregation pipeline
  • preserve --by-host and --no-by-host as compatibility aliases

Why

The initial device-first compact rows were difficult to scan and did not match ccusage's native report shape. Users also need to choose whether the primary breakdown is the agent or the device.

Validation

  • npm run check
  • npm test (15 tests)
  • daily grouped by agent and device against 4/4 configured hosts
  • weekly grouped by agent against 4/4 configured hosts
  • monthly grouped by device against 4/4 configured hosts
  • npm pack --dry-run

@jiunbae jiunbae marked this pull request as ready for review July 15, 2026 10:26
@jiunbae jiunbae merged commit 415ed83 into main Jul 15, 2026
2 checks passed
@jiunbae jiunbae deleted the agent/group-by-table branch July 15, 2026 10:26
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