(record SessionHealthRecord)
| 1201 | } |
| 1202 | |
| 1203 | func sessionHealthBundle(record SessionHealthRecord) outputBundle { |
| 1204 | return outputBundle{ |
| 1205 | jsonValue: record, |
| 1206 | human: func() (string, error) { |
| 1207 | return sessionHealthSection("Session Health", record), nil |
| 1208 | }, |
| 1209 | toon: func() (string, error) { |
| 1210 | return renderToonObject("session_health", []string{ |
| 1211 | sessionSessionKey, |
| 1212 | workspaceSkillSource, |
| 1213 | agentAgentKey, |
| 1214 | networkStateKey, |
| 1215 | authoredContextHealthKey, |
| 1216 | "eligible_for_wake", |
| 1217 | memoryReasonKey, |
| 1218 | }, []string{ |
| 1219 | record.SessionID, |
| 1220 | record.WorkspaceID, |
| 1221 | record.AgentName, |
| 1222 | string(record.State), |
| 1223 | string(record.Health), |
| 1224 | boolString(record.EligibleForWake), |
| 1225 | string(record.IneligibilityReason), |
| 1226 | }), nil |
| 1227 | }, |
| 1228 | } |
| 1229 | } |
| 1230 | |
| 1231 | func sessionStatusBundle(record SessionStatusRecord) outputBundle { |
| 1232 | return outputBundle{ |
no test coverage detected