Skip to content

feat(token-report): add per-run table, fix macOS compat - #250

Merged
max-sixty merged 2 commits into
mainfrom
usage-cost
Apr 11, 2026
Merged

max-sixty merged 2 commits into
mainfrom
usage-cost

Conversation

@max-sixty

@max-sixty max-sixty commented Apr 11, 2026 •

Copy link
Copy Markdown
Owner

Add a per-run breakdown table below the existing per-workflow rollup in token-report.sh, showing RUN ID, WORKFLOW, tokens, COST, and TIME for each individual run. Also fix date -d (GNU-only) to fall back to BSD date -v on macOS, and move the footnote out of the column -t pipe so it renders as prose.

Also drops GNU coreutils from the requirements header since BSD date is now supported.

This was written by Claude Code on behalf of @max-sixty

Add a per-run breakdown table (RUN, WORKFLOW, tokens, COST, TIME)
below the existing per-workflow rollup. Fix `date -d` for macOS by
falling back to BSD `date -v`. Move footnote out of `column -t` pipe
so it renders as prose.

Co-Authored-By: Claude <[email protected]>

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tangential observation (outside the diff, so no inline suggestion): the header comment at line 20 still declares GNU coreutils (date -d) as required, but the script now works on BSD date -v too. Happy to push a one-line doc fix if you'd like — otherwise this can ride along with the next edit to that file.

The script now falls back to BSD date, so GNU coreutils is no longer
required.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit b3b54f2 into main Apr 11, 2026
3 checks passed
@max-sixty
max-sixty deleted the usage-cost branch April 11, 2026 20:58
max-sixty added a commit that referenced this pull request Apr 11, 2026
Keeps both the extra-prefix shift/args handling and the BSD date fallback.

Co-Authored-By: Claude <[email protected]>
max-sixty added a commit that referenced this pull request Apr 14, 2026
Bumps generator version to 0.0.12 and syncs lockfile.

50 commits since 0.0.11: notifications cost cut + freshness gate (#251, #254),
token-report per-run table and cost estimate (#249, #250), review-reviewers
outcome-focused Haiku analysis (#255), config workflow_extra/jobs pass-through
(#227), canonical author_association tiers across skills (#261, #263), action
token aggregation fix (#266), plus numerous review/mention/ci-runner fixes.

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty mentioned this pull request Apr 14, 2026
max-sixty added a commit that referenced this pull request Apr 14, 2026
Bumps generator version to 0.0.12 and syncs lockfile.

50 commits since 0.0.11. Highlights:
- feat: notifications cost cut + freshness gate (#251, #254)
- feat: token-report per-run table + cost estimate (#249, #250)
- feat: review-reviewers outcome-focused Haiku analysis (#255)
- feat: config `workflow_extra` / `jobs` pass-through (#227)
- skills: canonical `author_association` tiers (#261, #263)
- fix: action token aggregation (#266), plus numerous
review/mention/ci-runner fixes

> _This was written by Claude Code on behalf of Maximilian_

Co-authored-by: Claude <[email protected]>
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.

2 participants