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

Function taskRunReviewVerdictBundle

internal/cli/task.go:3478–3502  ·  view source on GitHub ↗
(record *TaskRunReviewVerdictRecord)

Source from the content-addressed store, hash-verified

3476}
3477
3478func taskRunReviewVerdictBundle(record *TaskRunReviewVerdictRecord) outputBundle {
3479 return outputBundle{
3480 jsonValue: *record,
3481 human: func() (string, error) {
3482 rows := taskRunReviewRows(&record.Review)
3483 if record.ContinuationRun != nil {
3484 rows = append(
3485 rows,
3486 keyValue{
3487 Label: "Continuation Run",
3488 Value: stringOrDash(record.ContinuationRun.ID),
3489 },
3490 )
3491 }
3492 rows = append(
3493 rows,
3494 keyValue{Label: "Circuit Opened", Value: strconv.FormatBool(record.CircuitOpened)},
3495 )
3496 return renderHumanSection("Task Run Review Verdict", rows), nil
3497 },
3498 toon: func() (string, error) {
3499 return renderJSONPreview(record)
3500 },
3501 }
3502}
3503
3504func taskRunReviewRows(review *TaskRunReviewRecord) []keyValue {
3505 return []keyValue{

Callers 1

Calls 5

taskRunReviewRowsFunction · 0.85
appendFunction · 0.85
stringOrDashFunction · 0.85
renderHumanSectionFunction · 0.85
renderJSONPreviewFunction · 0.85

Tested by

no test coverage detected