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
@@ -26,6 +26,14 @@ func newUpdateCmd(root *rootOptions) *cobra.Command {
cmd := &cobra.Command{
Use: "update",
Short: "Append a progress or blocked update to a thread",
Long: helpLong(
"Use update to append worker progress inside one claimed thread.",
"in_progress means real work has started.",
"blocked means the worker cannot continue without a precise answer or dependency.",
"Blocked updates should include a concise summary and usually a payload_json question so the leader can answer deterministically.",
),
Example: ` inbox --db .agents/coord.db update --agent worker-a --thread thr_123 --status in_progress --summary "Reading current auth flow"
inbox --db .agents/coord.db update --agent worker-a --thread thr_123 --status blocked --summary "Need logging decision" --payload-json '{"question":"Use stdout or stderr?"}'`,
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()