Versions in this module Expand all Collapse all v1 v1.5.0 Apr 2, 2026 v0 v0.1.0 Apr 6, 2026 Changes in this version + type HeatmapData struct + Sections []HeatmapSection + Timestamp int64 + TotalTokens int + WasteScore float64 + type HeatmapGenerator struct + func NewHeatmapGenerator() *HeatmapGenerator + func (g *HeatmapGenerator) Generate(input string) *HeatmapData + func (g *HeatmapGenerator) GenerateWithWaste(input string, wasteScore float64) *HeatmapData + func (g *HeatmapGenerator) Summary(data *HeatmapData) string + func (g *HeatmapGenerator) ToCSV(data *HeatmapData) string + func (g *HeatmapGenerator) ToJSON(data *HeatmapData) ([]byte, error) + type HeatmapRecord struct + ContextPct float64 + CreatedAt time.Time + HistoryPct float64 + ID int64 + QueryPct float64 + RequestID string + SystemPct float64 + ToolsPct float64 + TotalTokens int + WasteScore float64 + type HeatmapSection struct + Content string + EndLine int + Percentage float64 + StartLine int + TokenCount int + Type SectionType + type HeatmapStore struct + func NewHeatmapStore(db *sql.DB) *HeatmapStore + func (s *HeatmapStore) ExportCSV() string + func (s *HeatmapStore) ExportJSON() ([]byte, error) + func (s *HeatmapStore) GetAverages(days int) (map[string]float64, error) + func (s *HeatmapStore) GetRecent(limit int) ([]HeatmapRecord, error) + func (s *HeatmapStore) Init() error + func (s *HeatmapStore) Record(data *HeatmapData, requestID string) error + type SectionAnalyzer struct + func NewSectionAnalyzer() *SectionAnalyzer + func (a *SectionAnalyzer) Analyze(input string) []HeatmapSection + func (a *SectionAnalyzer) ClassifyLine(line string) SectionType + type SectionType string + const SectionContext + const SectionHistory + const SectionOutput + const SectionQuery + const SectionSystem + const SectionTools + const SectionUnknown