@ricsam/r5dctl 0.0.59 → 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 +21 -3
- package/dist/cjs/cli.cjs +824 -239
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/cli.mjs +814 -239
- package/dist/mjs/package.json +1 -1
- package/dist/types/cli.d.ts +164 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,14 +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
|
|
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"
|
|
81
|
+
|
|
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"
|
|
80
92
|
|
|
81
93
|
r5dctl -p <project> -b <branch> shell
|
|
82
94
|
r5dctl -p <project> -b <branch> shell -c "bun test"
|
|
@@ -92,6 +104,12 @@ r5dctl k8s usage --window 7d
|
|
|
92
104
|
r5dctl k8s usage --workload default/api --window 7d --json
|
|
93
105
|
```
|
|
94
106
|
|
|
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`.
|
|
112
|
+
|
|
95
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.
|
|
96
114
|
|
|
97
115
|
`ps list` shows active long-running commands managed by r5d. It does not expose the worker host's general OS process table or interactive PTYs. Global project, branch, and session options filter the list, while `--worker` selects a worker label. `ps stop` sends `SIGTERM` to the selected run. Inside an r5d-provided worker shell, the temporary credential can only list and stop runs on that shell's worker.
|