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

Function taskInspectRunToonRows

internal/cli/task.go:3935–3949  ·  view source on GitHub ↗
(items []contract.TaskInspectRunPayload)

Source from the content-addressed store, hash-verified

3933}
3934
3935func taskInspectRunToonRows(items []contract.TaskInspectRunPayload) [][]string {
3936 rows := make([][]string, 0, len(items))
3937 for _, item := range items {
3938 rows = append(rows, []string{
3939 item.RunID,
3940 string(item.Status),
3941 strconv.Itoa(item.Attempt),
3942 item.BoundSessionID,
3943 item.ClaimTokenHashTruncated,
3944 taskInspectHeartbeatAge(item.HeartbeatAgeSeconds),
3945 item.LastErrorSummary,
3946 })
3947 }
3948 return rows
3949}
3950
3951func taskInspectEventRows(items []contract.TaskInspectEventPayload) [][]string {
3952 rows := make([][]string, 0, len(items))

Callers 1

renderTaskInspectToonFunction · 0.85

Calls 2

appendFunction · 0.85
taskInspectHeartbeatAgeFunction · 0.85

Tested by

no test coverage detected