Expand description
Aggregated per-provider analysis summary shared by every frontend.
Folds the roll-up’s per-provider model rows into per-provider file-operation
and tool-call totals. Ratatui-free business logic, so a non-CLI backend
(e.g. a future GUI) builds the same totals without depending on display.
Structs§
- Analysis
Provider Stats - Per-provider totals for analysis.
days_countrecords how many distinct days contributed to the totals so the display layer can show the spread without computing a rate. - Analysis
Row - Display-side copy of one model’s analysis metrics.
Functions§
- calculate_
analysis_ provider_ totals_ from_ per_ provider - Calculate per-provider analysis totals using source-directory attribution, matching the usage command’s approach.
- convert_
to_ analysis_ rows - Convert aggregator rows into the renderers’
AnalysisRowshape.
Type Aliases§
- Analysis
Provider Totals - Type alias for analysis totals grouped by provider.