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

Function appendSessionCapsBlock

internal/cli/session.go:804–812  ·  view source on GitHub ↗
(blocks []string, info SessionRecord)

Source from the content-addressed store, hash-verified

802}
803
804func appendSessionCapsBlock(blocks []string, info SessionRecord) []string {
805 if info.ACPCaps == nil {
806 return blocks
807 }
808 return append(blocks, renderHumanSection("Capabilities", []keyValue{
809 {Label: "Supports Load", Value: strconv.FormatBool(info.ACPCaps.SupportsLoadSession)},
810 {Label: "Modes", Value: stringOrDash(strings.Join(info.ACPCaps.SupportedModes, ", "))},
811 }))
812}
813
814func renderSessionToon(info SessionRecord) (string, error) {
815 return renderToonObject(sessionSessionKey, []string{

Callers 1

renderSessionHumanFunction · 0.85

Calls 3

appendFunction · 0.85
renderHumanSectionFunction · 0.85
stringOrDashFunction · 0.85

Tested by

no test coverage detected