Expand description
SQLite-backed token usage tracking for compact output analytics.
Records per-command token savings so users can see how much compact output reduces context-window consumption over time.
Structs§
- Command
Stats - Per-command aggregate statistics.
- Gain
Summary - Aggregate token-savings statistics.
- History
Entry - A single history entry.
- Timer
- A lightweight timer for measuring command duration.
Functions§
- display_
history - Print a formatted history table to stdout.
- display_
summary - Print a formatted summary of token savings to stdout.
- get_
history - Return the most recent history entries.
- get_
summary - Build an aggregate summary of all recorded token savings.
- record
- Record a single command’s token usage.