Skip to main content

Module usage

Module usage 

Source
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 usage scan policy, shared by every non-interactive frontend.
priced
Priced usage rows: the library-owned usage --json payload.
summary
Priced, aggregated usage summary shared by every frontend.