cli: make bundled help self-describing

This commit is contained in:
2026-03-22 23:37:38 +08:00
parent 5859ff219e
commit 4d8c90eb26
49 changed files with 792 additions and 29 deletions
@@ -24,6 +24,15 @@ func newWaitReplyCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "wait-reply",
Short: "Block until a reply-like message appears in a thread",
Long: helpLong(
"Use wait-reply after a worker has marked a thread blocked and needs a leader response.",
"This is the worker-side blocking primitive; prefer it over ad hoc sleep loops.",
"Resume with --after-event or --after-message when you already know the last event or message you processed.",
"wait-reply watches one thread, unlike watch which can observe broader inbox activity.",
),
Example: ` inbox --db .agents/coord.db wait-reply --thread thr_123
inbox --db .agents/coord.db wait-reply --thread thr_123 --after-event 42 --timeout-seconds 900
inbox --db .agents/coord.db wait-reply --thread thr_123 --kinds answer,result`,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()