mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-17 03:56:45 +00:00
* Expose per-day one-shot data in daily JSON output Closes #279. Adds turns, editTurns, oneShotTurns, oneShotRate to each entry of the `daily[]` array in `codeburn report --format json` output. The data was already computed internally for activity-level rollups; this just buckets it by date so consumers building daily-resolution efficiency dashboards (streak tracking, heatmaps, rolling-window charts) don't have to re-derive the rate from period-level activities. Counting matches parser.ts categoryBreakdown semantics: - every turn counts toward `turns` - turns with hasEdits=true count toward `editTurns` - edit turns with retries=0 count toward `oneShotTurns` - oneShotRate is null (not 0) when editTurns=0 — a chat-only day's rate is undefined, and reading it as 0% would be misleading Real consumer named in the issue: a 10-developer internal usage tracker that scores days by cache hit + cost/call + (now) one-shot rate. * Strengthen daily/activities reconciliation + CHANGELOG entry - Fall back to turn.assistantCalls[0]?.timestamp when turn.timestamp is missing so daily aggregate doesn't drop turns that activities[] keeps. Previously sum(daily[].editTurns) could be < sum(activities[].editTurns) for sessions starting with assistant entries before any user line. - Add Unreleased CHANGELOG entry for the daily one-shot fields. |
||
|---|---|---|
| .. | ||
| data | ||
| providers | ||
| bash-utils.ts | ||
| classifier.ts | ||
| cli-date.ts | ||
| cli.ts | ||
| codex-cache.ts | ||
| compare-stats.ts | ||
| compare.tsx | ||
| config.ts | ||
| context-budget.ts | ||
| currency.ts | ||
| cursor-cache.ts | ||
| daily-cache.ts | ||
| dashboard.tsx | ||
| day-aggregator.ts | ||
| export.ts | ||
| format.ts | ||
| fs-utils.ts | ||
| ink-win.ts | ||
| menubar-installer.ts | ||
| menubar-json.ts | ||
| model-efficiency.ts | ||
| models-report.ts | ||
| models.ts | ||
| optimize.ts | ||
| parser.ts | ||
| plan-usage.ts | ||
| plans.ts | ||
| sqlite.ts | ||
| types.ts | ||
| yield.ts | ||