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

Function newChannelCommand

internal/cli/agent_kernel.go:101–117  ·  view source on GitHub ↗
(deps commandDeps)

Source from the content-addressed store, hash-verified

99}
100
101func newChannelCommand(deps commandDeps) *cobra.Command {
102 cmd := &cobra.Command{
103 Use: "ch",
104 Aliases: []string{agentKernelChannelKey},
105 Short: "Use agent-facing coordination channels",
106 Example: ` # List channels visible to this session
107 agh ch list
108
109 # Wait for task-run coordination messages
110 agh ch recv coord-run-123 --wait -o jsonl`,
111 }
112 cmd.AddCommand(newChannelListCommand(deps))
113 cmd.AddCommand(newChannelRecvCommand(deps))
114 cmd.AddCommand(newChannelSendCommand(deps))
115 cmd.AddCommand(newChannelReplyCommand(deps))
116 return cmd
117}
118
119func newChannelListCommand(deps commandDeps) *cobra.Command {
120 return &cobra.Command{

Callers 1

newRootCommandFunction · 0.85

Calls 4

newChannelListCommandFunction · 0.85
newChannelRecvCommandFunction · 0.85
newChannelSendCommandFunction · 0.85
newChannelReplyCommandFunction · 0.85

Tested by

no test coverage detected