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

Function wakeEventsTable

internal/cli/authored_context.go:1359–1383  ·  view source on GitHub ↗
(items []contract.HeartbeatWakeEventPayload)

Source from the content-addressed store, hash-verified

1357}
1358
1359func wakeEventsTable(items []contract.HeartbeatWakeEventPayload) string {
1360 rows := make([][]string, 0, len(items))
1361 for _, item := range items {
1362 rows = append(rows, []string{
1363 stringOrDash(item.ID),
1364 stringOrDash(item.SessionID),
1365 stringOrDash(string(item.Source)),
1366 stringOrDash(string(item.Result)),
1367 stringOrDash(string(item.Reason)),
1368 stringOrDash(formatTime(item.CreatedAt)),
1369 })
1370 }
1371 return renderHumanTable(
1372 "Wake Events",
1373 []string{
1374 "ID",
1375 authoredContextSessionValue,
1376 authoredContextSourceValue,
1377 authoredContextResultValue,
1378 authoredContextReasonValue,
1379 authoredContextCreatedValue,
1380 },
1381 rows,
1382 )
1383}

Callers 2

sessionInspectBundleFunction · 0.85

Calls 4

appendFunction · 0.85
stringOrDashFunction · 0.85
formatTimeFunction · 0.85
renderHumanTableFunction · 0.85

Tested by

no test coverage detected