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

Function writeAgentChannelMessages

internal/cli/agent_kernel.go:401–415  ·  view source on GitHub ↗
(cmd *cobra.Command, messages []AgentChannelMessageRecord)

Source from the content-addressed store, hash-verified

399}
400
401func writeAgentChannelMessages(cmd *cobra.Command, messages []AgentChannelMessageRecord) error {
402 mode, err := resolveOutputFormat(cmd)
403 if err != nil {
404 return err
405 }
406 if mode == OutputJSONL {
407 for _, message := range messages {
408 if err := writeJSONLine(cmd, message); err != nil {
409 return err
410 }
411 }
412 return nil
413 }
414 return writeCommandOutput(cmd, agentChannelMessagesBundle(messages))
415}
416
417func agentMeBundle(record AgentMeRecord) outputBundle {
418 return outputBundle{

Callers 1

newChannelRecvCommandFunction · 0.85

Calls 4

resolveOutputFormatFunction · 0.85
writeJSONLineFunction · 0.85
writeCommandOutputFunction · 0.85

Tested by

no test coverage detected