Skip to main content

Module tracking

Module tracking 

Source

Structs§

CommandRecord
Individual command record from tracking history.
DayStats
Daily statistics for token savings and execution metrics.
GainSummary
Aggregated statistics across all recorded commands.
MonthStats
Monthly statistics for token savings and execution metrics.
ParseFailureRecord
Individual parse failure record.
ParseFailureSummary
Aggregated parse failure summary.
TimedExecution
Helper struct for timing command execution Helper for timing command execution and tracking results.
Tracker
Main tracking interface for recording and querying command history.
WeekStats
Weekly statistics for token savings and execution metrics.

Functions§

args_display
Format OsString args for tracking display.
estimate_tokens
Estimate token count from text using ~4 chars = 1 token heuristic.
record_parse_failure_silent
Record a parse failure without ever crashing. Silently ignores all errors — used in the fallback path.