diff options
| author | Claudomator Agent <agent@claudomator> | 2026-03-14 16:02:28 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator> | 2026-03-14 16:02:28 +0000 |
| commit | 59bc518eee4026fa072c163149389b05428b5398 (patch) | |
| tree | fbcde553161e5ac4784d70426a57434e003b1287 /internal/task/task.go | |
| parent | 4029fdd82bdd657ed862c89f20eb03ff2594cde9 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/task/task.go')
| -rw-r--r-- | internal/task/task.go | 7 |
1 files changed, 7 insertions, 0 deletions
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"` |
