@@ -78,8 +78,12 @@ type HeartbeatEntry struct {
7878 LineDeletions int `json:"line_deletions"`
7979 LineAdditions int `json:"line_additions"`
8080 CreatedAt time.Time `json:"created_at"`
81- AILineChanges int `json:"ai_line_changes,omitempty" hash:"ignore"`
82- HumanLineChanges int `json:"human_line_changes,omitempty" hash:"ignore"`
81+ AILineChanges int `json:"ai_line_changes"`
82+ AISession string `json:"ai_session"`
83+ AIInputTokens int `json:"ai_input_tokens"`
84+ AIOutputTokens int `json:"ai_output_tokens"`
85+ AIPromptLength int `json:"ai_prompt_length"`
86+ HumanLineChanges int `json:"human_line_changes"`
8387}
8488
8589func HeartbeatsToCompat (entries []* models.Heartbeat ) []* HeartbeatEntry {
@@ -106,6 +110,10 @@ func HeartbeatsToCompat(entries []*models.Heartbeat) []*HeartbeatEntry {
106110 CursorPos : entry .CursorPos ,
107111 CreatedAt : entry .CreatedAt .T (),
108112 AILineChanges : entry .AILineChanges ,
113+ AISession : entry .AISession ,
114+ AIInputTokens : entry .AIInputTokens ,
115+ AIOutputTokens : entry .AIOutputTokens ,
116+ AIPromptLength : entry .AIPromptLength ,
109117 HumanLineChanges : entry .HumanLineChanges ,
110118 }
111119 }
0 commit comments