From 59bc518eee4026fa072c163149389b05428b5398 Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Sat, 14 Mar 2026 16:02:28 +0000 Subject: feat: add Changestats struct and storage support - Add task.Changestats{FilesChanged, LinesAdded, LinesRemoved} - Add changestats_json column to executions via additive migration - Add Changestats field to storage.Execution struct - Add UpdateExecutionChangestats(execID, *task.Changestats) method - Update all SELECT/INSERT/scan paths for executions - Test: TestExecution_StoreAndRetrieveChangestats (was red, now green) Co-Authored-By: Claude Sonnet 4.6 --- internal/task/task.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/task') diff --git a/internal/task/task.go b/internal/task/task.go index 69da5f3..b85b07c 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -48,6 +48,13 @@ type RetryConfig struct { Backoff string `yaml:"backoff" json:"backoff"` // "linear", "exponential" } +// Changestats records file/line change metrics from an agent execution. +type Changestats struct { + FilesChanged int `json:"files_changed"` + LinesAdded int `json:"lines_added"` + LinesRemoved int `json:"lines_removed"` +} + // Interaction records a single question/answer exchange between an agent and the user. type Interaction struct { QuestionText string `json:"question_text"` -- cgit v1.2.3