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,12 @@ func newWaitCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "wait",
Short: "Block until matching run-scoped task events become available",
Long: helpLong(
"Use wait as the leader-side blocking primitive.",
"Instead of polling with manual sleep loops, wait blocks until later matching task events exist for the run, such as ready, blocked, done, or failed.",
"Use --after-event when resuming from a known cursor so you do not reprocess earlier events.",
),
Example: ` orch --db .agents/coord.db wait --run blog_mvp_001 --for task_blocked,task_done --after-event 0 --timeout-seconds 900`,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()