Skip to main content

Module summary

Module summary 

Source
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§

AnalysisProviderStats
Per-provider totals for analysis. days_count records how many distinct days contributed to the totals so the display layer can show the spread without computing a rate.
AnalysisRow
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’ AnalysisRow shape.

Type Aliases§

AnalysisProviderTotals
Type alias for analysis totals grouped by provider.