@ricsam/r5dctl 0.0.60 → 0.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,21 +69,26 @@ r5dctl -s <session-id> conversation --raw # raw JSON message/tool p
69
69
  r5dctl -s <session-id> conversation --tools # include provider-shaped tool definitions
70
70
  r5dctl -s <session-id> conversation --system # include system prompt messages
71
71
  r5dctl -s <session-id> conversation --raw --tools --system # exact raw agent request transcript
72
+ r5dctl -s <session-id> conversation -f # print current transcript, then follow new output (--watch also works)
72
73
  r5dctl conversation overview <session-id> # dialogue/thinking with tool work omitted
73
74
  r5dctl conversation inspect-node <session-id> <node-id> # raw persisted node plus traversal metadata
74
75
  r5dctl conversation inspect-work <session-id> <work-id> # compact call list for one omitted turn
75
76
  r5dctl conversation inspect-work <session-id> <work-id> --summary
76
77
  r5dctl conversation inspect-work <session-id> <work-id> --full
77
- r5dctl -s <session-id> prompt --mode plan --model max "..."
78
- r5dctl -s <session-id> answer-questions -a1 "Recipe Collection" -a2 "Both Manual & AI"
79
- r5dctl -s <session-id> answer-env-request -e KEY=value --context "Generate the remaining salts"
78
+ r5dctl session prompt --worker <label> --mode plan --model max <session-id> "..."
79
+ r5dctl -s <session-id> answer-questions --worker <label> --mode plan --model max -a1 "Recipe Collection" -a2 "Both Manual & AI"
80
+ r5dctl -s <session-id> answer-env-request --worker <label> --mode agent --model max -e KEY=value --context "Generate the remaining salts"
80
81
 
81
- r5dctl -p <project> agent start --worker <label> --source worktree:main debug "Fix the failing tests"
82
- r5dctl agent status <session-id>
83
- r5dctl agent prompt --worker <label> <session-id> "Also check the migration"
84
- r5dctl agent merge --worker <label> <session-id>
85
- r5dctl agent stop <session-id>
86
- r5dctl agent finish-merge --worker <label> <resolver-session-id> --summary "Resolved the conflicts"
82
+ r5dctl -p <project> session start --worker <label> --worktree main --model max "Explore the failure"
83
+ r5dctl -p <project> session start --worker <label> --new-worktree fix/tests --source worktree:main --model max -f "Fix the failing tests"
84
+ r5dctl session status <session-id>
85
+ r5dctl session prompt --worker <label> --mode agent --model max <session-id> "Also check the migration"
86
+ r5dctl session stop <session-id>
87
+
88
+ r5dctl -p <project> merge fix/tests
89
+ r5dctl -p <project> merge --worker <label> --create-conflict-worktree fix/tests
90
+ r5dctl -p <project> merge --worker <label> --launch-conflict-resolution-agent fix/tests
91
+ r5dctl -p <project> merge finish --worker <label> conflicts/fix-tests --summary "Resolved the conflicts"
87
92
 
88
93
  r5dctl -p <project> -b <branch> shell
89
94
  r5dctl -p <project> -b <branch> shell -c "bun test"
@@ -99,7 +104,11 @@ r5dctl k8s usage --window 7d
99
104
  r5dctl k8s usage --workload default/api --window 7d --json
100
105
  ```
101
106
 
102
- Branch agents are independent sessions on automatically created branches. `agent start` requires an explicit worker and `--source worktree:<branch>`; it never infers either from the local directory. The source is the named branch worktree, including its committed and uncommitted files. Starting returns after that worktree has been copied into the new branch worktree and queued; execution continues asynchronously. Follow-up, merge, and resolver commands must name the session's bound worker; they do not move work between workers implicitly. A prompt response reports whether it was `queued` into an active generation or `started` as a new generation. Use `agent status` to inspect progress, then `agent merge` after the agent reaches a terminal state. A conflicting merge starts a resolver session; stop that resolver for manual takeover and use `agent finish-merge` after resolving and reviewing its worktree.
107
+ `session start` creates an ordinary agent-mode chat on an explicitly selected existing worktree, or creates a named worktree from an explicit `worktree:<branch>` source. It requires project, worker, model, and prompt and never infers them from the current shell. Starts and prompts return after durable enqueue while execution continues asynchronously. Task specialization belongs in the prompt; there are no predefined debug, explore, research, or test agents.
108
+
109
+ Add `-f`/`--follow`/`--watch` to `session start` to attach after enqueue, or to `conversation` to print the current transcript and follow new output. Assistant text is written to stdout and lifecycle/tool progress to stderr; `--tools` includes tool calls and results. With global `--json`, follow mode emits one JSON event per line. Ctrl-C only detaches and never stops the session. The CLI reconnects transiently interrupted event streams and resynchronizes committed conversation revisions without repeating assistant text.
110
+
111
+ `merge` merges a managed source worktree into its recorded parent. By default conflicts are reported without creating more work. `--create-conflict-worktree` prepares a manual conflict worktree, while `--launch-conflict-resolution-agent` starts the dedicated merge-conflict resolver; those strategies are mutually exclusive. A worker-bound shell credential supplies its own worker automatically; otherwise pass `--worker`. Finish a reviewed manual resolution with `merge finish`.
103
112
 
104
113
  `shell` connects to the same live worker PTY as the web Shell tab. Without `-c` it attaches the local terminal interactively. With `-c`/`--command`, it runs the supplied shell expression, streams combined PTY output, and exits with the remote command's status. Because command output uses a PTY, stdout and stderr are combined and programs may emit colors or other terminal control sequences.
105
114