Expand description
Token-usage aggregation across provider session directories.
Rolls parsed CodeAnalysis records up into
UsageData for the usage view. aggregate_usage_from_home is the
home-resolved entry point and aggregate_usage_from_paths its
test/injection twin; scan_usage_priced wraps the pricing-then-scan
pipeline, price_usage_data builds the priced JSON payload, and
summary builds the aggregated view the display renders.
Re-exports§
pub use pipeline::PricedUsageScan;pub use pipeline::scan_usage_priced;pub use priced::PricedUsageRow;pub use priced::price_usage_data;pub use crate::utils::normalize_usage_value;pub use aggregator::*;
Modules§
- aggregator
- Aggregates per-model token usage across the file-backed provider session trees.
- pipeline
- The one-shot
usagescan policy, shared by every non-interactive frontend. - priced
- Priced
usagerows: the library-ownedusage --jsonpayload. - summary
- Priced, aggregated
usagesummary shared by every frontend.