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

Function sessionResumeEmptyBundle

internal/cli/session.go:921–937  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

919}
920
921func sessionResumeEmptyBundle() outputBundle {
922 payload := struct {
923 Resumed *SessionRecord `json:"resumed"`
924 Reason string `json:"reason"`
925 }{
926 Reason: "no_eligible_sessions",
927 }
928 return outputBundle{
929 jsonValue: payload,
930 human: func() (string, error) {
931 return "No resumable sessions; start a new one with 'agh session new'.", nil
932 },
933 toon: func() (string, error) {
934 return renderToonObject("resume", []string{"resumed", "reason"}, []string{"", payload.Reason}), nil
935 },
936 }
937}
938
939func sessionRecapBundle(record SessionRecapRecord) outputBundle {
940 return outputBundle{

Callers 1

newSessionResumeCommandFunction · 0.85

Calls 1

renderToonObjectFunction · 0.85

Tested by

no test coverage detected