Versions in this module Expand all Collapse all v0 v0.1.3 Jul 4, 2026 Changes in this version + type ContextSnapshot struct + Anchors []string + CompressedAt time.Time + Phase Phase + SessionID SessionID + Summary string + TokenCount int + type CostAccumulator struct + ByPhase map[Phase]PhaseUsage + SessionID SessionID + TotalCostUSD float64 + TotalTokens int + func NewCostAccumulator(id SessionID) *CostAccumulator + func (c *CostAccumulator) Add(phase Phase, inputTokens, outputTokens int, costUSD float64) + func (c *CostAccumulator) PhaseShare(phase Phase) float64 + func (c *CostAccumulator) String() string + type Phase string + const PhaseLocalize + const PhasePlanning + const PhaseRepair + const PhaseReview + const PhaseUnknown + const PhaseValidate + func ParsePhase(s string) Phase + func (p Phase) String() string + type PhaseUsage struct + CostUSD float64 + InputTokens int + OutputTokens int + TotalTokens int + type SessionID string + type ToolCallRecord struct + DurationMs int64 + Error string + InputTokens int + OutputTokens int + Phase Phase + SessionID SessionID + Timestamp time.Time + ToolName string v0.1.2 Jun 29, 2026