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

Function sessionRepairBundle

internal/cli/session.go:992–1017  ·  view source on GitHub ↗
(record SessionRepairRecord)

Source from the content-addressed store, hash-verified

990}
991
992func sessionRepairBundle(record SessionRepairRecord) outputBundle {
993 return outputBundle{
994 jsonValue: record,
995 human: func() (string, error) {
996 return renderHumanSection("Session Repair", []keyValue{
997 {Label: sessionSessionValue, Value: stringOrDash(record.SessionID)},
998 {Label: "Persisted", Value: strconv.FormatBool(record.Persisted)},
999 {Label: "Issues", Value: stringOrDash(sessionRepairIssueSummary(record.Issues))},
1000 {Label: "Actions", Value: stringOrDash(sessionRepairActionSummary(record.Actions))},
1001 }), nil
1002 },
1003 toon: func() (string, error) {
1004 return renderToonObject("repair", []string{
1005 sessionSessionIDKey,
1006 "persisted",
1007 "issues",
1008 "actions",
1009 }, []string{
1010 record.SessionID,
1011 strconv.FormatBool(record.Persisted),
1012 sessionRepairIssueSummary(record.Issues),
1013 sessionRepairActionSummary(record.Actions),
1014 }), nil
1015 },
1016 }
1017}
1018
1019func sessionApprovalBundle(sessionID string, record SessionApprovalRecord) outputBundle {
1020 payload := struct {

Callers 1

newSessionRepairCommandFunction · 0.85

Calls 5

renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85
renderToonObjectFunction · 0.85

Tested by

no test coverage detected