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 FillerDetector struct + func NewFillerDetector() *FillerDetector + func (d *FillerDetector) Detect(input string) []WasteFinding + type OutputUtilizationTracker struct + func NewOutputUtilizationTracker() *OutputUtilizationTracker + func (t *OutputUtilizationTracker) Track(inputTokens int, outputTokens int) WasteFinding + type RedundantInstructionDetector struct + func NewRedundantInstructionDetector() *RedundantInstructionDetector + func (d *RedundantInstructionDetector) Detect(input string) []WasteFinding + type WasteAnalyzer struct + func NewWasteAnalyzer() *WasteAnalyzer + func (a *WasteAnalyzer) Analyze(input string) *WasteReport + type WasteFinding struct + Description string + Lines []int + Savings int + Type WasteType + type WasteRecord struct + Command string + CreatedAt time.Time + FindingCount int + ID int64 + TotalTokens int + WasteScore float64 + WasteTokens int + type WasteReport struct + Findings []WasteFinding + Recommendations []string + TotalTokens int + WasteScore float64 + WasteTokens int + type WasteScoreCalculator struct + func NewWasteScoreCalculator() *WasteScoreCalculator + func (c *WasteScoreCalculator) Calculate(totalTokens int, findings []WasteFinding) float64 + type WasteStore struct + func NewWasteStore(db *sql.DB) *WasteStore + func (s *WasteStore) GetAverageScore(days int) (float64, error) + func (s *WasteStore) GetTrend(days int) ([]WasteRecord, error) + func (s *WasteStore) Init() error + func (s *WasteStore) Record(command string, report *WasteReport) error + type WasteType string + const WasteFiller + const WasteOutput + const WasteRedundant + const WasteWhitespace + type WhitespaceBloatDetector struct + func NewWhitespaceBloatDetector() *WhitespaceBloatDetector + func (d *WhitespaceBloatDetector) Detect(input string) []WasteFinding