(deps commandDeps)
| 99 | } |
| 100 | |
| 101 | func 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 | |
| 119 | func newChannelListCommand(deps commandDeps) *cobra.Command { |
| 120 | return &cobra.Command{ |
no test coverage detected