Repository navigation
feat(desktop): aggregate routing logs into daily and weekly token rollups - #1085
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe desktop package adds routing-log usage aggregation, summary formatting, and a command-line app. The app supports help, TOML validation, and printing a summary using configured settings, current usage, and server status. ChangesDesktop usage summary
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: ⚪ Minimal · up to
|
57630fd to
3811425
Compare
3811425 to
788ccbf
Compare
788ccbf to
4ef353f
Compare
|
@coderabbitai full review I added documentation for the rollup and summary helpers and updated the summary to show known spending when some calls have no recorded cost. Please review the current head and rerun the docstring coverage check. |
✅ Action performedFull review finished. |
4ef061b to
28cbb74
Compare
34e8079 to
cb926d4
Compare
…lups Signed-off-by: Elyas Mehtabuddin <emehtabuddin@nvidia.com>
cb926d4 to
d449f33
Compare
This PR adds the shared routing-log reader for the desktop app.
rollup::Readerreads newly completed lines fromrouting.jsonland totals usage for today and the seven local calendar days ending today. It keeps answer calls separate from classifier calls. It starts over when the log is replaced or truncated. An invalid complete record returns an error instead of showing incomplete usage.The reader and record types live in the desktop library so the graphical and terminal apps can share them. The basic window follows in #1137. Printed summaries and savings follow in #1086.