Expand description
Cross-domain helpers shared by every analytics command.
Re-exports CSV export utilities (export), reusable output/formatting
types and number formatters (output), and time-range parsing and
bucketing (time) so the per-domain command modules draw from one
surface.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.
Re-exports§
pub use export::CsvBuilder;pub use export::ensure_export_dir;pub use export::export_single_to_csv;pub use export::export_to_csv;pub use export::resolve_export_path;pub use output::BreakdownData;pub use output::BreakdownItem;pub use output::MetricCard;pub use output::StatsSummary;pub use output::TrendData;pub use output::TrendPoint;pub use output::format_change;pub use output::format_cost;pub use output::format_number;pub use output::format_percent;pub use output::format_tokens;pub use time::parse_duration;pub use time::parse_since;pub use time::parse_time_range;pub use time::parse_until;pub use time::truncate_to_period;
Modules§
- export
- CSV export building with field escaping.
- output
- Reusable analytics output shapes and human-readable formatters.
- time
- Time-range parsing and period bucketing for analytics queries.