Versions in this module Expand all Collapse all v0 v0.7.1 Jun 24, 2026 v0.6.4 Jun 23, 2026 Changes in this version type Event + CacheSeen bool v0.6.3 Jun 22, 2026 Changes in this version + func Estimate(s string) int + func EstimateBytes(n int) int + func RecordEvent(ev Event) + func Today() string + type Aggregated struct + ActiveDays int + ByModel []Share + ByProject []Share + CacheHitRate float64 + CacheSupported bool + CurrentStreak int + Days map[string]*DayBucket + LongestStreak int + MostUsedModel string + Totals Totals + func Aggregate(events []Event, today string) Aggregated + func (a Aggregated) Trend() []DayBucket + type ContextBreakdown struct + ContextLimit int + MCPToolsTokens int + MessagesTokens int + SkillsTokens int + SystemPromptTokens int + SystemToolsTokens int + func (b ContextBreakdown) StaticTotal() int + type DayBucket struct + Calls int64 + Date string + Tokens int64 + Turns int64 + type Event struct + CacheWrite int + Cached int + Calls int + Completion int + Date string + Model string + Project string + Prompt int + Reasoning int + Session string + TS int64 + Total int + type Share struct + Name string + Share float64 + Tokens int64 + type Store struct + func Default() *Store + func NewStore(path string) *Store + func (s *Store) Load(since string) ([]Event, error) + func (s *Store) Record(ev Event) error + type Totals struct + CacheWrite int64 + Cached int64 + Calls int64 + Completion int64 + Prompt int64 + Reasoning int64 + Total int64 + Turns int64