Versions in this module Expand all Collapse all v0 v0.2.0 Aug 2, 2026 Changes in this version + type IncrementalScanner interface + ScanIncremental func(cache *fileCache) ([]Entry, error) + type Watcher struct + func NewWatcher() *Watcher + func (w *Watcher) Rescan() (Report, error) v0.1.0 Aug 1, 2026 Changes in this version + type Entry struct + Model string + Provider Provider + Source string + Time time.Time + Usage TokenUsage + type Provider string + const ProviderChatGPT + const ProviderClaudeCode + const ProviderCodex + const ProviderGemini + type Report struct + ByProvider map[Provider]TokenUsage + ByTokenType TokenUsage + Entries []Entry + func Scan() (Report, error) + func (r Report) ByDay(loc *time.Location) map[string]Report + func (r Report) Day(t time.Time) Report + func (r Report) Filter(keep func(Entry) bool) Report + func (r Report) Total() int64 + type Scanner interface + Provider func() Provider + Scan func() ([]Entry, error) + type TokenType string + const TokenCacheCreation + const TokenCacheRead + const TokenInput + const TokenOutput + type TokenUsage map[TokenType]int64 + func (u TokenUsage) Add(other TokenUsage) TokenUsage + func (u TokenUsage) Total() int64