MCPcopy Create free account
hub / github.com/compozy/agh / sessionHealthBundle

Function sessionHealthBundle

internal/cli/authored_context.go:1203–1229  ·  view source on GitHub ↗
(record SessionHealthRecord)

Source from the content-addressed store, hash-verified

1201}
1202
1203func 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
1231func sessionStatusBundle(record SessionStatusRecord) outputBundle {
1232 return outputBundle{

Callers 1

newSessionHealthCommandFunction · 0.85

Calls 3

sessionHealthSectionFunction · 0.85
renderToonObjectFunction · 0.85
boolStringFunction · 0.70

Tested by

no test coverage detected