@@ -604,17 +604,17 @@ type CodeLearning struct {
604604// - AgentPercentage represents "of the lines changed in this commit, what percentage came from the agent"
605605// - AgentRemoved tracks committed deletions performed by the agent
606606type InitialAttribution struct {
607- CalculatedAt time.Time `json:"calculated_at"`
608- AgentLines int `json:"agent_lines"` // Lines added by agent that remain in the commit
609- AgentRemoved int `json:"agent_removed"` // Lines removed by agent that remain removed in the commit
610- HumanAdded int `json:"human_added"` // Lines added by human (excluding modifications)
611- HumanModified int `json:"human_modified"` // Lines modified by human (estimate: min(added, removed))
612- HumanRemoved int `json:"human_removed"` // Lines removed by human (excluding modifications)
613- TotalCommitted int `json:"total_committed"` // Net additions in commit (legacy additions-focused metric)
614- TotalLinesChanged int `json:"total_lines_changed"` // Total committed line changes (adds + modifies + removes)
615- AgentPercentage float64 `json:"agent_percentage"` // (agent_lines + agent_removed) / total_lines_changed * 100
616- MetricVersion int `json:"metric_version,omitempty"` // 0/absent = legacy (additions-only %), 2 = changed-lines %
617- BinaryFilesChanged int `json:"binary_files_changed"` // Number of binary files modified
607+ CalculatedAt time.Time `json:"calculated_at"`
608+ AgentLines int `json:"agent_lines"` // Lines added by agent that remain in the commit
609+ AgentRemoved int `json:"agent_removed"` // Lines removed by agent that remain removed in the commit
610+ HumanAdded int `json:"human_added"` // Lines added by human (excluding modifications)
611+ HumanModified int `json:"human_modified"` // Lines modified by human (estimate: min(added, removed))
612+ HumanRemoved int `json:"human_removed"` // Lines removed by human (excluding modifications)
613+ TotalCommitted int `json:"total_committed"` // Net additions in commit (legacy additions-focused metric)
614+ TotalLinesChanged int `json:"total_lines_changed"` // Total committed line changes (adds + modifies + removes)
615+ AgentPercentage float64 `json:"agent_percentage"` // (agent_lines + agent_removed) / total_lines_changed * 100
616+ MetricVersion int `json:"metric_version,omitempty"` // 0/absent = legacy (additions-only %), 2 = changed-lines %
617+ BinaryFilesChanged int `json:"binary_files_changed"` // Number of binary files modified
618618}
619619
620620// Info provides summary information for listing checkpoints.
0 commit comments