reevesagents 1.3.2 → 1.4.0
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/AGENTS.md +14 -5
- package/CHANGELOG.md +8 -0
- package/README.md +114 -45
- package/dist/{chunk-GUM4JMVF.js → chunk-33EB4RUP.js} +2 -2
- package/dist/{chunk-KVMBCWLI.js → chunk-BELIYZTN.js} +22 -2
- package/dist/{chunk-VTLLF2Z4.js → chunk-EX5LH2KW.js} +2 -2
- package/dist/{chunk-36SYE7IU.js → chunk-KL5YFLQF.js} +21 -4
- package/dist/{chunk-TO32PH23.js → chunk-NJWOKVBZ.js} +2 -2
- package/dist/{chunk-5Q5XP5QI.js → chunk-PEOJCUQI.js} +2 -2
- package/dist/cli.js +68 -29
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/{router-AOJOUKAY.js → router-MGXDADKM.js} +26 -13
- package/dist/{server-I2ROVLSH.js → server-KHY23W6D.js} +8 -5
- package/dist/{server-Y4HMP3OI.js → server-L5DTU6U2.js} +9 -7
- package/dist/{tui-launch-SJNFGH42.js → tui-launch-2UWK76V3.js} +2 -2
- package/dist/web/app.js +7 -0
- package/dist/web/index.html +6 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -63,8 +63,14 @@ half-starting a run. On success it prints the run id, each agent's id, and the e
|
|
|
63
63
|
Useful `spawn` flags: `--name <run>`, `--cwd <dir>` (defaults to the current dir),
|
|
64
64
|
`--prompt <text>` (pasted into every agent on startup), `--skip` (launch agents without
|
|
65
65
|
their own permission prompts; use it when no human is there to approve), `--run <run-id>`
|
|
66
|
-
(add agents to an existing run instead of starting a new one), `--
|
|
67
|
-
|
|
66
|
+
(add agents to an existing run instead of starting a new one), `--extra-args <args>`
|
|
67
|
+
(flags appended to every agent launch, for provider options ReevesAgents does not model,
|
|
68
|
+
e.g. `--remote-control`), `--json` (print the run and agent ids as JSON instead of text).
|
|
69
|
+
|
|
70
|
+
To grow a workspace one agent at a time, `reevesagents add <spec...>` adds to the most
|
|
71
|
+
recent active run without a run id (pass `--run <run-id>` to target another). It takes
|
|
72
|
+
the same per-agent flags as `spawn`. Agents added this way run side by side and do not
|
|
73
|
+
control each other; that only happens when the Agent control MCP is attached.
|
|
68
74
|
|
|
69
75
|
## Provider ids and aliases
|
|
70
76
|
|
|
@@ -93,6 +99,8 @@ reevesagents send <agent-id> "do X" # paste text at the agent's prompt
|
|
|
93
99
|
reevesagents key <agent-id> enter # submit it (send does not submit on its own)
|
|
94
100
|
reevesagents interrupt <agent-id> # ctrl-c the agent
|
|
95
101
|
reevesagents open <run-id|agent-id> # jump to its tmux window
|
|
102
|
+
reevesagents approvals # pending approval requests (add --json)
|
|
103
|
+
reevesagents approve <approval-id> # resolve one; deny <approval-id> refuses it
|
|
96
104
|
```
|
|
97
105
|
|
|
98
106
|
`send` only pastes; follow it with `key <agent-id> enter` to submit. Keys accepted by
|
|
@@ -106,8 +114,9 @@ reevesagents stop <run-id> --yes # end a whole run and tear down its tmux
|
|
|
106
114
|
reevesagents kill <agent-id> --yes # end one agent
|
|
107
115
|
```
|
|
108
116
|
|
|
109
|
-
`stop` and `kill`
|
|
110
|
-
|
|
117
|
+
`stop` and `kill` refuse to run without `--yes`. The same gate covers cleanup:
|
|
118
|
+
`delete <agent-id>` and `delete-run <run-id>` remove ended records, and
|
|
119
|
+
`delete-history <id>` removes an archived one.
|
|
111
120
|
|
|
112
121
|
## A worked example: five agents, then drive them
|
|
113
122
|
|
|
@@ -164,7 +173,7 @@ Don't:
|
|
|
164
173
|
- Don't `send` and assume it ran; nothing submits until you `key <agent-id> enter`.
|
|
165
174
|
- Don't spawn a provider that is missing or signed out; spawn refuses the first, and the
|
|
166
175
|
second leaves a window parked at a login prompt that never does the work.
|
|
167
|
-
- Don't run `stop` or `
|
|
176
|
+
- Don't run `stop`, `kill`, or the `delete` commands without `--yes`; those are the destructive ones.
|
|
168
177
|
- Don't target native Windows; run inside WSL with tmux and the CLIs installed there.
|
|
169
178
|
- Don't paste secrets into a `--prompt` or `send`; output is captured and shown through `peek` and the web UI.
|
|
170
179
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [1.4.0](https://github.com/mertkayacs/reevesagents/compare/v1.3.2...v1.4.0) (2026-07-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **cli:** add an `add` command to grow a workspace one agent at a time ([07f9cde](https://github.com/mertkayacs/reevesagents/commit/07f9cdedb3b33f742f209a2f1453f5af5a5d69e4))
|
|
9
|
+
* **spawn:** pass extra launch flags through to the provider CLI ([011f923](https://github.com/mertkayacs/reevesagents/commit/011f9233578158d1399e2580154de56f5d17bc8c))
|
|
10
|
+
|
|
3
11
|
## [1.3.2](https://github.com/mertkayacs/reevesagents/compare/v1.3.1...v1.3.2) (2026-07-02)
|
|
4
12
|
|
|
5
13
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<
|
|
2
|
+
<a href="https://reevesagents.mertkayacs.com">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/reevesagents-header.gif" alt="ReevesAgents" width="800" />
|
|
4
|
+
</a>
|
|
3
5
|
</p>
|
|
4
6
|
|
|
5
7
|
[](https://www.npmjs.com/package/reevesagents)
|
|
@@ -8,13 +10,19 @@
|
|
|
8
10
|
[](LICENSE)
|
|
9
11
|
[](https://github.com/mertkayacs/reevesagents/actions/workflows/test.yml)
|
|
10
12
|
|
|
13
|
+
<h3 align="center"><a href="https://reevesagents.mertkayacs.com">reevesagents.mertkayacs.com</a></h3>
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://reevesagents.mertkayacs.com/demo"><b>Demo</b></a> ·
|
|
16
|
+
<a href="https://reevesagents.mertkayacs.com/docs"><b>Docs</b></a> ·
|
|
17
|
+
<a href="https://reevesagents.mertkayacs.com/faq"><b>FAQ</b></a> ·
|
|
18
|
+
<a href="https://github.com/mertkayacs/reevesagents/issues"><b>Issues</b></a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
11
21
|
**English** · [Deutsch](docs/i18n/README.de.md) · [Français](docs/i18n/README.fr.md) · [Español](docs/i18n/README.es.md) · [Português](docs/i18n/README.pt.md) · [Italiano](docs/i18n/README.it.md) · [Türkçe](docs/i18n/README.tr.md) · [Русский](docs/i18n/README.ru.md) · [简体中文](docs/i18n/README.zh-Hans.md) · [العربية](docs/i18n/README.ar.md)
|
|
12
22
|
|
|
13
23
|
*Create and drive AI agents from other agents. ReevesAgents is a free, local workspace where coding agents (such as Claude Code, Codex, Hermes, DeepSeek, and Kimi) run side by side, and one agent can spawn, steer, and supervise the rest. No API keys, and no changes to your existing Agent.md or Claude.md.*
|
|
14
24
|
|
|
15
|
-
**In
|
|
16
|
-
|
|
17
|
-
GitHub: https://github.com/mertkayacs/reevesagents
|
|
25
|
+
**In 10 languages!**
|
|
18
26
|
|
|
19
27
|
## Let one agent install and run the rest
|
|
20
28
|
|
|
@@ -35,7 +43,7 @@ Prefer to set it up by hand? Turn it on from the **Agent control** screen in the
|
|
|
35
43
|
|
|
36
44
|
The TUI and the local Web UI driving the same run:
|
|
37
45
|
|
|
38
|
-

|
|
39
47
|
|
|
40
48
|

|
|
41
49
|
|
|
@@ -54,6 +62,19 @@ Portuguese, Italian, Turkish, Russian, Simplified Chinese, and Arabic.
|
|
|
54
62
|
New to ReevesAgents? The [User Guide](docs/GUIDE.md) walks you through install,
|
|
55
63
|
your first run, and letting one agent drive the rest.
|
|
56
64
|
|
|
65
|
+
## Two ways to use it
|
|
66
|
+
|
|
67
|
+
- **As a workspace.** Spawn the agents you want and keep adding more with
|
|
68
|
+
`reevesagents add`, one at a time. They run side by side, each in its own tmux
|
|
69
|
+
window, and none of them controls another. This is the simplest way in: your
|
|
70
|
+
different CLIs together in one local place.
|
|
71
|
+
- **As an orchestrator.** Attach the opt-in Agent control MCP to one CLI, and
|
|
72
|
+
that agent gains the tools to spawn and drive the rest. This is the headline
|
|
73
|
+
feature, and it stays off until you turn it on.
|
|
74
|
+
|
|
75
|
+
Both use the same runs and the same surfaces, so you can start as a plain
|
|
76
|
+
workspace and reach for orchestration later, or never.
|
|
77
|
+
|
|
57
78
|
## Surfaces
|
|
58
79
|
|
|
59
80
|
| Surface | What it is good for |
|
|
@@ -77,17 +98,24 @@ This is not a cloud agent platform. It is a small local layer around real CLIs:
|
|
|
77
98
|
|
|
78
99
|
## Install
|
|
79
100
|
|
|
80
|
-
ReevesAgents
|
|
81
|
-
|
|
101
|
+
Install ReevesAgents with Homebrew, or globally with any Node package manager
|
|
102
|
+
(pnpm, npm, Yarn, or Bun), then verify the machine with `doctor`.
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
# Homebrew
|
|
106
|
+
brew install mertkayacs/reevesagents/reevesagents
|
|
107
|
+
|
|
108
|
+
# or a Node package manager, pnpm shown here
|
|
109
|
+
pnpm add -g reevesagents
|
|
110
|
+
```
|
|
82
111
|
|
|
83
112
|
```sh
|
|
84
|
-
npm install -g reevesagents
|
|
85
113
|
reevesagents doctor
|
|
86
114
|
reevesagents
|
|
87
115
|
```
|
|
88
116
|
|
|
89
117
|
To pin a version, append `@<version>` to the package name, for example
|
|
90
|
-
`
|
|
118
|
+
`pnpm add -g reevesagents@1.4.0`.
|
|
91
119
|
|
|
92
120
|
<details>
|
|
93
121
|
<summary><b>pnpm</b></summary>
|
|
@@ -106,6 +134,23 @@ pnpm dlx reevesagents doctor
|
|
|
106
134
|
|
|
107
135
|
</details>
|
|
108
136
|
|
|
137
|
+
<details>
|
|
138
|
+
<summary><b>npm</b></summary>
|
|
139
|
+
|
|
140
|
+
```sh
|
|
141
|
+
npm install -g reevesagents
|
|
142
|
+
reevesagents doctor
|
|
143
|
+
reevesagents
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
One-shot, no global install:
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
npx reevesagents doctor
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
</details>
|
|
153
|
+
|
|
109
154
|
<details>
|
|
110
155
|
<summary><b>Yarn</b></summary>
|
|
111
156
|
|
|
@@ -142,15 +187,6 @@ bunx reevesagents doctor
|
|
|
142
187
|
|
|
143
188
|
</details>
|
|
144
189
|
|
|
145
|
-
<details>
|
|
146
|
-
<summary><b>npx (no install)</b></summary>
|
|
147
|
-
|
|
148
|
-
```sh
|
|
149
|
-
npx reevesagents doctor
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
</details>
|
|
153
|
-
|
|
154
190
|
<details>
|
|
155
191
|
<summary><b>Homebrew</b></summary>
|
|
156
192
|
|
|
@@ -194,9 +230,9 @@ at least one provider CLI already installed.
|
|
|
194
230
|
|
|
195
231
|
ReevesAgents can launch these provider CLIs when they are installed and
|
|
196
232
|
authenticated on your machine: Claude Code, Codex CLI, OpenCode, Hermes, Kimi,
|
|
197
|
-
DeepSeek, Pi, Qwen, and Aider.
|
|
198
|
-
permission prompts
|
|
199
|
-
API
|
|
233
|
+
DeepSeek, Pi, Qwen, and Aider. Each CLI keeps its own login, models, quotas,
|
|
234
|
+
and permission prompts, exactly as if you had started it yourself, which is
|
|
235
|
+
why ReevesAgents never needs to hold an API key or sit in the traffic path.
|
|
200
236
|
|
|
201
237
|
## Quick Start
|
|
202
238
|
|
|
@@ -215,6 +251,15 @@ reevesagents spawn deepseek:backend claude-code:product codex:system hermes:rese
|
|
|
215
251
|
--prompt "Plan the backend, product surface, design system, and research notes."
|
|
216
252
|
```
|
|
217
253
|
|
|
254
|
+
Or start small and grow the workspace one agent at a time. `add` joins the most
|
|
255
|
+
recent run, so you never have to copy a run id around:
|
|
256
|
+
|
|
257
|
+
```sh
|
|
258
|
+
reevesagents spawn claude-code:product # start a workspace
|
|
259
|
+
reevesagents add codex:system # add to it later
|
|
260
|
+
reevesagents add hermes:research
|
|
261
|
+
```
|
|
262
|
+
|
|
218
263
|
For a full walkthrough, see the [User Guide](docs/GUIDE.md).
|
|
219
264
|
|
|
220
265
|
## Commands
|
|
@@ -222,24 +267,45 @@ For a full walkthrough, see the [User Guide](docs/GUIDE.md).
|
|
|
222
267
|
No arguments launches the TUI. The subcommands are the operator surface for
|
|
223
268
|
humans and scripts.
|
|
224
269
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
270
|
+
The everyday surface:
|
|
271
|
+
|
|
272
|
+
- `reevesagents`: Launch the TUI (no subcommand).
|
|
273
|
+
- `spawn [spec...]`: Start a run with one or more provider agents. Each `spec` is `provider[:nickname[:model]]`. The first spec is the lead, the rest are workers. No spec defaults to `codex`. Key flags: `--name <name>` (default `run`), `--cwd <dir>` (default current dir), `--prompt <text>` (pasted into each agent), `--skip` (skip permission prompts), `--run <run-id>` (add agents to an existing run), `--auth-mode <mode>`, `--effort <level>`, `--extra-args <args>` (flags appended to every agent launch, e.g. `"--remote-control"`), `--json`.
|
|
274
|
+
- `add [spec...]`: Add one or more agents to the current workspace, the most recent active run, without passing a run id. Use it to grow a workspace one agent at a time. Same per-agent flags as `spawn`, plus `--run <run-id>` to target a specific run instead of the latest.
|
|
275
|
+
- `runs`: List active runs, one per line. Key flags: `--json` (full run records as a JSON array).
|
|
276
|
+
- `agents [run-id]`: List agents across all runs, or the agents in one run. Key flags: `--json`.
|
|
277
|
+
- `open <id>`: Switch tmux to a run's Reeves window or an agent window. Inside tmux it switches; outside tmux on a TTY it attaches; otherwise it prints a pasteable tmux command. Accepts a run id/name or an agent id/nickname (prefix match allowed).
|
|
278
|
+
- `peek <agent-id>`: Print recent output from one agent. Key flags: `-n, --lines <n>` (default `20`), `--json` (lines as an array).
|
|
279
|
+
- `send <agent-id> <text...>`: Paste text at an agent's prompt. It does not submit; follow with `key <agent-id> enter`.
|
|
280
|
+
- `key <agent-id> <key>`: Send one key: `enter`, `escape`, `backspace`, `tab`, `space`, `up`, `down`, `left`, `right`, or `ctrl-c`.
|
|
281
|
+
- `interrupt <agent-id>`: Send ctrl-c to one agent.
|
|
282
|
+
- `stop <run-id>`: Stop one run. Key flags: `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`).
|
|
283
|
+
- `kill <agent-id>`: Stop one agent. Key flags: `-y, --yes` (or `ALLOW_DESTRUCTIVE=1`).
|
|
284
|
+
- `doctor`: Run environment health checks (Node, tmux, state path, provider CLIs). Exits non-zero on any failed check. Key flags: `--json`.
|
|
285
|
+
- `web`: Start the on-demand, loopback-only Web UI. Runs in the foreground; agents keep running after you stop it. Key flags: `--port <n>` (preferred port, falls back to the next free port), `--no-open` (do not open the browser).
|
|
286
|
+
|
|
287
|
+
Discovery, approvals, agent control, config, and cleanup:
|
|
288
|
+
|
|
289
|
+
- `providers`: List every provider with availability, aliases, and known models. Key flags: `--models`, `--json`.
|
|
290
|
+
- `approvals`: List pending approval requests from agents. Key flags: `--json`.
|
|
291
|
+
- `approve <approval-id> [note]`: Resolve an approval request as approved.
|
|
292
|
+
- `deny <approval-id> [note]`: Resolve an approval request as denied.
|
|
293
|
+
- `hosts`: List the agent CLIs on this machine and show which ones ReevesAgents is connected to.
|
|
294
|
+
- `attach [cli]`: Connect ReevesAgents to one agent CLI, or to every installed one when no name is given. Runs that CLI's own `mcp add`.
|
|
295
|
+
- `detach <cli>`: Disconnect ReevesAgents from one agent CLI. Runs that CLI's own `mcp remove`.
|
|
296
|
+
- `mcp`: Start the Agent control MCP server over stdio. Not run by hand; the CLI you connect it to runs it.
|
|
297
|
+
- `config [key] [value]`: Show all editable settings, read one, or set one. Key flags: `--json`.
|
|
298
|
+
- `presets`: List saved run presets. Key flags: `--json`.
|
|
299
|
+
- `save-preset <run-id> <name> [description...]`: Capture a live run as a reusable preset.
|
|
300
|
+
- `start-preset <name>`: Start a new run from a preset. Key flags: `--name <run>`, `--cwd <dir>`.
|
|
301
|
+
- `delete-preset <name>`: Delete a preset. Key flags: `-y, --yes`.
|
|
302
|
+
- `delete <agent-id>`: Delete one ended agent's record. Key flags: `-y, --yes`.
|
|
303
|
+
- `delete-run <run-id>`: Delete one ended run and archive it to history. Key flags: `-y, --yes`.
|
|
304
|
+
- `history`: List archived ended and stale runs. Key flags: `--json`.
|
|
305
|
+
- `delete-history <id>`: Delete one archived history record. Key flags: `-y, --yes`.
|
|
306
|
+
|
|
307
|
+
`stop`, `kill`, and the `delete` commands are destructive. They refuse to run
|
|
308
|
+
without `--yes` or `ALLOW_DESTRUCTIVE=1`.
|
|
243
309
|
|
|
244
310
|
## Agent control
|
|
245
311
|
|
|
@@ -279,7 +345,8 @@ See [docs/mcp.md](docs/mcp.md) for the full design and tool list.
|
|
|
279
345
|
|
|
280
346
|
## Configuration
|
|
281
347
|
|
|
282
|
-
|
|
348
|
+
All state and config are plain JSON files on your disk, so there is nothing to
|
|
349
|
+
administer and nothing running when you are not using it.
|
|
283
350
|
|
|
284
351
|
State lives under `~/.reeves`:
|
|
285
352
|
|
|
@@ -298,7 +365,7 @@ multi-profile use:
|
|
|
298
365
|
for `runs/`, `history/`, and `presets/`.
|
|
299
366
|
- `REEVES_CONFIG`: config file path override. Replaces `~/.reeves/config.json`.
|
|
300
367
|
|
|
301
|
-
|
|
368
|
+
Anything that might contain a secret is scrubbed before it reaches a file.
|
|
302
369
|
|
|
303
370
|
## Examples
|
|
304
371
|
|
|
@@ -338,10 +405,11 @@ The Web UI is local and loopback-only.
|
|
|
338
405
|
reevesagents web
|
|
339
406
|
```
|
|
340
407
|
|
|
341
|
-
It
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
408
|
+
It answers on `127.0.0.1` only and stays in the foreground until you stop it,
|
|
409
|
+
which changes nothing for the agents, because they live in tmux rather than in
|
|
410
|
+
the page. From the browser you can create runs, add agents with a chosen model
|
|
411
|
+
and permission mode, stop what needs stopping, and dig through history while
|
|
412
|
+
the real CLIs keep working underneath.
|
|
345
413
|
|
|
346
414
|
The Web UI uses two optional runtime modules, `ws` and `@lydell/node-pty`. npm
|
|
347
415
|
installs them by default. The CLI and TUI keep working without them, and the
|
|
@@ -397,6 +465,7 @@ TypeScript, tsup, Vitest, and ESLint from the repository.
|
|
|
397
465
|
|
|
398
466
|
## Links
|
|
399
467
|
|
|
468
|
+
- Website: https://reevesagents.mertkayacs.com
|
|
400
469
|
- npm: https://www.npmjs.com/package/reevesagents
|
|
401
470
|
- GitHub: https://github.com/mertkayacs/reevesagents
|
|
402
471
|
- Releases: https://github.com/mertkayacs/reevesagents/releases
|
|
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
|
|
|
28
28
|
const { checkWebExtras, webExtrasMessage } = await import("./extras-25AF6TAR.js");
|
|
29
29
|
const extras = await checkWebExtras();
|
|
30
30
|
if (!extras.ok) throw new Error(webExtrasMessage(extras.missing));
|
|
31
|
-
const { startWebServer } = await import("./server-
|
|
31
|
+
const { startWebServer } = await import("./server-L5DTU6U2.js");
|
|
32
32
|
return startWebServer({ open: true });
|
|
33
33
|
}
|
|
34
34
|
async function closeTuiWebServer() {
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
startWebFromTui,
|
|
49
49
|
closeTuiWebServer
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-33EB4RUP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_LANGUAGE
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KL5YFLQF.js";
|
|
5
5
|
|
|
6
6
|
// src/i18n/locales/en.ts
|
|
7
7
|
var en = {
|
|
@@ -234,6 +234,8 @@ var en = {
|
|
|
234
234
|
"web.presets": "Presets",
|
|
235
235
|
"web.presetsNoRun": "Open a run first, then save it as a preset.",
|
|
236
236
|
"web.presetsSubtitle": "Saved agent-team templates.",
|
|
237
|
+
"web.extraArgs": "Extra flags",
|
|
238
|
+
"web.extraArgsHelp": "Passed to the CLI on launch, after the flags ReevesAgents sets.",
|
|
237
239
|
"web.promptHelp": "Sent to the agent after its window opens.",
|
|
238
240
|
"web.promptPlaceholder": "What should this agent start working on?",
|
|
239
241
|
"web.provider": "Provider",
|
|
@@ -527,6 +529,8 @@ var de = {
|
|
|
527
529
|
"web.presets": "Vorlagen",
|
|
528
530
|
"web.presetsNoRun": "\xD6ffne zuerst einen Run, dann speichere ihn als Vorlage.",
|
|
529
531
|
"web.presetsSubtitle": "Gespeicherte Agententeam-Vorlagen.",
|
|
532
|
+
"web.extraArgs": "Zus\xE4tzliche Flags",
|
|
533
|
+
"web.extraArgsHelp": "Wird der CLI beim Start \xFCbergeben, nach den Flags, die ReevesAgents setzt.",
|
|
530
534
|
"web.promptHelp": "Wird an den Agenten gesendet, nachdem sein Fenster ge\xF6ffnet ist.",
|
|
531
535
|
"web.promptPlaceholder": "Woran soll dieser Agent zuerst arbeiten?",
|
|
532
536
|
"web.providerDefault": "Provider-Standard",
|
|
@@ -1029,6 +1033,8 @@ var fr = {
|
|
|
1029
1033
|
"web.effortXhigh": "Tr\xE8s \xE9lev\xE9",
|
|
1030
1034
|
"web.error": "erreur",
|
|
1031
1035
|
"web.exited": "termin\xE9",
|
|
1036
|
+
"web.extraArgs": "Flags suppl\xE9mentaires",
|
|
1037
|
+
"web.extraArgsHelp": "Pass\xE9s \xE0 la CLI au lancement, apr\xE8s les flags que ReevesAgents d\xE9finit.",
|
|
1032
1038
|
"web.history": "Historique",
|
|
1033
1039
|
"web.initialPrompt": "Prompt initial",
|
|
1034
1040
|
"web.initialPromptOpt": "optionnel, saisi au d\xE9marrage",
|
|
@@ -1638,6 +1644,8 @@ var es = {
|
|
|
1638
1644
|
"web.presets": "Preajustes",
|
|
1639
1645
|
"web.presetsNoRun": "Abre primero un run, luego gu\xE1rdalo como preajuste.",
|
|
1640
1646
|
"web.presetsSubtitle": "Plantillas de equipos de agentes guardadas.",
|
|
1647
|
+
"web.extraArgs": "Flags extra",
|
|
1648
|
+
"web.extraArgsHelp": "Se pasan a la CLI al arrancar, despu\xE9s de los flags que establece ReevesAgents.",
|
|
1641
1649
|
"web.promptHelp": "Se env\xEDa al agente despu\xE9s de abrir su ventana.",
|
|
1642
1650
|
"web.promptPlaceholder": "\xBFEn qu\xE9 debe empezar este agente?",
|
|
1643
1651
|
"web.provider": "Proveedor",
|
|
@@ -2204,6 +2212,8 @@ var pt = {
|
|
|
2204
2212
|
"web.presets": "Predefini\xE7\xF5es",
|
|
2205
2213
|
"web.presetsNoRun": "Abra uma execu\xE7\xE3o primeiro, depois guarde-a como predefini\xE7\xE3o.",
|
|
2206
2214
|
"web.presetsSubtitle": "Modelos de equipas de agentes guardados.",
|
|
2215
|
+
"web.extraArgs": "Flags extra",
|
|
2216
|
+
"web.extraArgsHelp": "Passado \xE0 CLI no arranque, depois das flags que o ReevesAgents define.",
|
|
2207
2217
|
"web.promptHelp": "Enviado ao agente depois de a janela abrir.",
|
|
2208
2218
|
"web.promptPlaceholder": "No que este agente deve come\xE7ar?",
|
|
2209
2219
|
"web.provider": "Fornecedor",
|
|
@@ -2772,6 +2782,8 @@ var it = {
|
|
|
2772
2782
|
"web.presets": "Preset",
|
|
2773
2783
|
"web.presetsNoRun": "Apri prima un run, poi salvalo come preset.",
|
|
2774
2784
|
"web.presetsSubtitle": "Modelli di team di agenti salvati.",
|
|
2785
|
+
"web.extraArgs": "Flag extra",
|
|
2786
|
+
"web.extraArgsHelp": "Passati alla CLI al lancio, dopo i flag impostati da ReevesAgents.",
|
|
2775
2787
|
"web.promptHelp": "Inviato all\u2019agente dopo l\u2019apertura della finestra.",
|
|
2776
2788
|
"web.promptPlaceholder": "Da cosa deve iniziare questo agente?",
|
|
2777
2789
|
"web.providerDefault": "Predefinito del provider",
|
|
@@ -3329,6 +3341,8 @@ var tr = {
|
|
|
3329
3341
|
"web.presets": "Haz\u0131r Ayarlar",
|
|
3330
3342
|
"web.presetsNoRun": "\xD6nce bir run a\xE7, sonra onu haz\u0131r ayar olarak kaydet.",
|
|
3331
3343
|
"web.presetsSubtitle": "Kay\u0131tl\u0131 agent ekibi \u015Fablonlar\u0131.",
|
|
3344
|
+
"web.extraArgs": "Ek flag'ler",
|
|
3345
|
+
"web.extraArgsHelp": "Ba\u015Flat\u0131l\u0131rken, ReevesAgents'\u0131n ekledi\u011Fi flag'lerden sonra CLI'ya ge\xE7irilir.",
|
|
3332
3346
|
"web.promptHelp": "Penceresi a\xE7\u0131ld\u0131ktan sonra agent'a g\xF6nderilir.",
|
|
3333
3347
|
"web.promptPlaceholder": "Bu agent neyle ba\u015Flamal\u0131?",
|
|
3334
3348
|
"web.provider": "Sa\u011Flay\u0131c\u0131",
|
|
@@ -3897,6 +3911,8 @@ var ru = {
|
|
|
3897
3911
|
"web.presets": "\u041F\u0440\u0435\u0441\u0435\u0442\u044B",
|
|
3898
3912
|
"web.presetsNoRun": "\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 run, \u0437\u0430\u0442\u0435\u043C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0433\u043E \u043A\u0430\u043A \u043F\u0440\u0435\u0441\u0435\u0442.",
|
|
3899
3913
|
"web.presetsSubtitle": "\u0421\u043E\u0445\u0440\u0430\u043D\u0451\u043D\u043D\u044B\u0435 \u0448\u0430\u0431\u043B\u043E\u043D\u044B \u043A\u043E\u043C\u0430\u043D\u0434 \u0430\u0433\u0435\u043D\u0442\u043E\u0432.",
|
|
3914
|
+
"web.extraArgs": "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0444\u043B\u0430\u0433\u0438",
|
|
3915
|
+
"web.extraArgsHelp": "\u041F\u0435\u0440\u0435\u0434\u0430\u044E\u0442\u0441\u044F CLI \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435, \u043F\u043E\u0441\u043B\u0435 \u0444\u043B\u0430\u0433\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0437\u0430\u0434\u0430\u0451\u0442 ReevesAgents.",
|
|
3900
3916
|
"web.promptHelp": "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0430\u0433\u0435\u043D\u0442\u0443 \u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0435\u0433\u043E \u043E\u043A\u043D\u0430.",
|
|
3901
3917
|
"web.promptPlaceholder": "\u0421 \u0447\u0435\u0433\u043E \u0434\u043E\u043B\u0436\u0435\u043D \u043D\u0430\u0447\u0430\u0442\u044C \u044D\u0442\u043E\u0442 \u0430\u0433\u0435\u043D\u0442?",
|
|
3902
3918
|
"web.provider": "\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440",
|
|
@@ -4469,6 +4485,8 @@ var zhHans = {
|
|
|
4469
4485
|
"web.presets": "\u9884\u8BBE",
|
|
4470
4486
|
"web.presetsNoRun": "\u5148\u6253\u5F00\u4E00\u4E2A\u8FD0\u884C\uFF0C\u518D\u5C06\u5176\u4FDD\u5B58\u4E3A\u9884\u8BBE\u3002",
|
|
4471
4487
|
"web.presetsSubtitle": "\u5DF2\u4FDD\u5B58\u7684\u667A\u80FD\u4F53\u56E2\u961F\u6A21\u677F\u3002",
|
|
4488
|
+
"web.extraArgs": "\u989D\u5916\u6807\u5FD7",
|
|
4489
|
+
"web.extraArgsHelp": "\u542F\u52A8\u65F6\u4F20\u7ED9 CLI\uFF0C\u6392\u5728 ReevesAgents \u8BBE\u7F6E\u7684\u6807\u5FD7\u4E4B\u540E\u3002",
|
|
4472
4490
|
"web.promptHelp": "\u7A97\u53E3\u6253\u5F00\u540E\u53D1\u9001\u7ED9\u667A\u80FD\u4F53\u3002",
|
|
4473
4491
|
"web.promptPlaceholder": "\u8FD9\u4E2A\u667A\u80FD\u4F53\u5E94\u8BE5\u5148\u505A\u4EC0\u4E48\uFF1F",
|
|
4474
4492
|
"web.provider": "\u670D\u52A1\u5546",
|
|
@@ -5044,6 +5062,8 @@ var ar = {
|
|
|
5044
5062
|
"web.presets": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629",
|
|
5045
5063
|
"web.presetsNoRun": "\u0627\u0641\u062A\u062D \u062A\u0634\u063A\u064A\u0644\u0629 \u0623\u0648\u0644\u0627\u064B \u062B\u0645 \u0627\u062D\u0641\u0638\u0647\u0627 \u0643\u0625\u0639\u062F\u0627\u062F \u062C\u0627\u0647\u0632.",
|
|
5046
5064
|
"web.presetsSubtitle": "\u0642\u0648\u0627\u0644\u0628 \u0641\u0650\u0631\u064E\u0642 \u0648\u0643\u0644\u0627\u0621 \u0645\u062D\u0641\u0648\u0638\u0629.",
|
|
5065
|
+
"web.extraArgs": "\u0627\u0644\u0623\u0639\u0644\u0627\u0645 \u0627\u0644\u0625\u0636\u0627\u0641\u064A\u0629",
|
|
5066
|
+
"web.extraArgsHelp": "\u062A\u064F\u0645\u0631\u064E\u0651\u0631 \u0625\u0644\u0649 \u0623\u062F\u0627\u0629 CLI \u0639\u0646\u062F \u0627\u0644\u0625\u0637\u0644\u0627\u0642\u060C \u0628\u0639\u062F \u0627\u0644\u0623\u0639\u0644\u0627\u0645 \u0627\u0644\u062A\u064A \u064A\u0636\u0628\u0637\u0647\u0627 ReevesAgents.",
|
|
5047
5067
|
"web.promptHelp": "\u064A\u064F\u0631\u0633\u064E\u0644 \u0625\u0644\u0649 \u0627\u0644\u0648\u0643\u064A\u0644 \u0628\u0639\u062F \u0641\u062A\u062D \u0646\u0627\u0641\u0630\u062A\u0647.",
|
|
5048
5068
|
"web.promptPlaceholder": "\u0628\u0645\u0627\u0630\u0627 \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0647\u0630\u0627 \u0627\u0644\u0648\u0643\u064A\u0644\u061F",
|
|
5049
5069
|
"web.provider": "\u0627\u0644\u0645\u0632\u0648\u0651\u062F",
|
|
@@ -5423,4 +5443,4 @@ export {
|
|
|
5423
5443
|
localeCatalog,
|
|
5424
5444
|
translatePhrase
|
|
5425
5445
|
};
|
|
5426
|
-
//# sourceMappingURL=chunk-
|
|
5446
|
+
//# sourceMappingURL=chunk-BELIYZTN.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
redactSecrets,
|
|
8
8
|
runDir,
|
|
9
9
|
withRunsLock
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KL5YFLQF.js";
|
|
11
11
|
|
|
12
12
|
// src/core/approvals.ts
|
|
13
13
|
import {
|
|
@@ -314,4 +314,4 @@ export {
|
|
|
314
314
|
attachAll,
|
|
315
315
|
REEVESAGENTS_VERSION
|
|
316
316
|
};
|
|
317
|
-
//# sourceMappingURL=chunk-
|
|
317
|
+
//# sourceMappingURL=chunk-EX5LH2KW.js.map
|
|
@@ -294,6 +294,15 @@ var PROVIDER_DEFS = Object.values(PROVIDER_REGISTRY);
|
|
|
294
294
|
|
|
295
295
|
// src/core/providers.ts
|
|
296
296
|
import { execFileSync, spawnSync } from "child_process";
|
|
297
|
+
function coerceExtraArgs(value) {
|
|
298
|
+
if (Array.isArray(value)) {
|
|
299
|
+
return value.filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
|
|
300
|
+
}
|
|
301
|
+
if (typeof value === "string") {
|
|
302
|
+
return value.trim().split(/\s+/).filter(Boolean);
|
|
303
|
+
}
|
|
304
|
+
return [];
|
|
305
|
+
}
|
|
297
306
|
var BIN = Object.fromEntries(
|
|
298
307
|
PROVIDER_DEFS.map((def) => [def.id, def.bin])
|
|
299
308
|
);
|
|
@@ -317,12 +326,12 @@ function providerSupportsEffort(provider) {
|
|
|
317
326
|
return PROVIDER_REGISTRY[provider]?.supportsEffort === true;
|
|
318
327
|
}
|
|
319
328
|
function buildCommand(opts) {
|
|
320
|
-
const { provider, permissions, model, auth_mode = "default", effort = "default" } = opts;
|
|
329
|
+
const { provider, permissions, model, auth_mode = "default", effort = "default", extra_args = [] } = opts;
|
|
321
330
|
if (!isProvider(provider)) {
|
|
322
331
|
throw new Error(`Unsupported provider: ${String(provider)}`);
|
|
323
332
|
}
|
|
324
333
|
const def = PROVIDER_REGISTRY[provider];
|
|
325
|
-
return [def.bin, ...def.buildArgs({ permissions, model, auth_mode, effort })];
|
|
334
|
+
return [def.bin, ...def.buildArgs({ permissions, model, auth_mode, effort }), ...extra_args];
|
|
326
335
|
}
|
|
327
336
|
function detectAvailable() {
|
|
328
337
|
const result = {};
|
|
@@ -802,6 +811,11 @@ function listRunHistoryUnlocked() {
|
|
|
802
811
|
function listRuns() {
|
|
803
812
|
return listRunsUnlocked();
|
|
804
813
|
}
|
|
814
|
+
function latestActiveRun() {
|
|
815
|
+
const active = listRuns();
|
|
816
|
+
if (active.length === 0) return null;
|
|
817
|
+
return active.reduce((latest, run) => run.started_at > latest.started_at ? run : latest);
|
|
818
|
+
}
|
|
805
819
|
function listRunHistory() {
|
|
806
820
|
return listRunHistoryUnlocked();
|
|
807
821
|
}
|
|
@@ -1561,7 +1575,8 @@ function terminalShellCommand(config, permissions) {
|
|
|
1561
1575
|
model: config.model,
|
|
1562
1576
|
auth_mode: config.auth_mode,
|
|
1563
1577
|
effort: config.effort,
|
|
1564
|
-
rc_enabled: false
|
|
1578
|
+
rc_enabled: false,
|
|
1579
|
+
extra_args: config.extra_args
|
|
1565
1580
|
});
|
|
1566
1581
|
return `exec ${cmd.map(shellQuote).join(" ")}`;
|
|
1567
1582
|
}
|
|
@@ -1974,6 +1989,7 @@ function openTmuxTarget(id, options = {}) {
|
|
|
1974
1989
|
export {
|
|
1975
1990
|
PROVIDER_REGISTRY,
|
|
1976
1991
|
PROVIDER_DEFS,
|
|
1992
|
+
coerceExtraArgs,
|
|
1977
1993
|
BIN,
|
|
1978
1994
|
PROVIDERS,
|
|
1979
1995
|
isProvider,
|
|
@@ -1997,6 +2013,7 @@ export {
|
|
|
1997
2013
|
withRunsLock,
|
|
1998
2014
|
readRun,
|
|
1999
2015
|
listRuns,
|
|
2016
|
+
latestActiveRun,
|
|
2000
2017
|
listRunHistory,
|
|
2001
2018
|
deleteAgent,
|
|
2002
2019
|
deleteRunHistory,
|
|
@@ -2042,4 +2059,4 @@ export {
|
|
|
2042
2059
|
stopRun,
|
|
2043
2060
|
openTmuxTarget
|
|
2044
2061
|
};
|
|
2045
|
-
//# sourceMappingURL=chunk-
|
|
2062
|
+
//# sourceMappingURL=chunk-KL5YFLQF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
PROVIDER_DEFS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KL5YFLQF.js";
|
|
5
5
|
|
|
6
6
|
// src/core/model-catalog.ts
|
|
7
7
|
var PROVIDER_DEFAULT_MODEL = "";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
modelDisplayName,
|
|
28
28
|
modelSourceForProvider
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-NJWOKVBZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
stateRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KL5YFLQF.js";
|
|
5
5
|
|
|
6
6
|
// src/core/tui-open.ts
|
|
7
7
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
readTuiOpenToken,
|
|
27
27
|
writeTuiOpenToken
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-PEOJCUQI.js.map
|
package/dist/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
writeTuiOpenToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PEOJCUQI.js";
|
|
5
5
|
import {
|
|
6
6
|
MODEL_CATALOG
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NJWOKVBZ.js";
|
|
8
8
|
import {
|
|
9
9
|
REEVESAGENTS_VERSION,
|
|
10
10
|
attach,
|
|
@@ -13,13 +13,14 @@ import {
|
|
|
13
13
|
hostStatus,
|
|
14
14
|
listRunApprovals,
|
|
15
15
|
resolveRunApproval
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EX5LH2KW.js";
|
|
17
17
|
import {
|
|
18
18
|
ALLOWED_KEYS,
|
|
19
19
|
CONFIG_FIELDS,
|
|
20
20
|
PROVIDERS,
|
|
21
21
|
archiveAndRemoveRun,
|
|
22
22
|
autoCleanupRuns,
|
|
23
|
+
coerceExtraArgs,
|
|
23
24
|
computeRunStatus,
|
|
24
25
|
deleteAgent,
|
|
25
26
|
deletePreset,
|
|
@@ -27,6 +28,7 @@ import {
|
|
|
27
28
|
detectAvailable,
|
|
28
29
|
interrupt,
|
|
29
30
|
killAgent,
|
|
31
|
+
latestActiveRun,
|
|
30
32
|
listAgents,
|
|
31
33
|
listPresets,
|
|
32
34
|
listRunHistory,
|
|
@@ -48,7 +50,7 @@ import {
|
|
|
48
50
|
startRun,
|
|
49
51
|
startRunFromPreset,
|
|
50
52
|
stopRun
|
|
51
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-KL5YFLQF.js";
|
|
52
54
|
import "./chunk-D24DQQ6V.js";
|
|
53
55
|
|
|
54
56
|
// src/cli.ts
|
|
@@ -271,7 +273,31 @@ function printSpawnJson(run, agents) {
|
|
|
271
273
|
agents: agents.map((agent) => ({ id: agent.id, nickname: agent.nickname, provider: agent.provider, role: agent.role }))
|
|
272
274
|
}, null, 2));
|
|
273
275
|
}
|
|
274
|
-
|
|
276
|
+
function spawnIntoRun(run, parsed, opts, available) {
|
|
277
|
+
const permissions = opts.skip ? "skip" : void 0;
|
|
278
|
+
const auth_mode = parseAuthModeOpt(opts.authMode);
|
|
279
|
+
const effort = parseEffortOpt(opts.effort);
|
|
280
|
+
const extra_args = coerceExtraArgs(opts.extraArgs);
|
|
281
|
+
const agents = parsed.map((spec) => spawnWorker({
|
|
282
|
+
run_id: run.id,
|
|
283
|
+
provider: spec.provider,
|
|
284
|
+
nickname: spec.nickname,
|
|
285
|
+
model: spec.model,
|
|
286
|
+
task: opts.prompt,
|
|
287
|
+
permissions,
|
|
288
|
+
auth_mode,
|
|
289
|
+
effort,
|
|
290
|
+
extra_args
|
|
291
|
+
}, { available }));
|
|
292
|
+
if (opts.json) {
|
|
293
|
+
printSpawnJson(run, agents);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
console.log(`added ${agents.length} agents to ${run.id.slice(0, 8)} ${run.name}`);
|
|
297
|
+
for (const agent of agents) printSpawnAgentLine(agent);
|
|
298
|
+
printSpawnHints(run, !!opts.skip);
|
|
299
|
+
}
|
|
300
|
+
program.command("spawn [agent...]").description("start a run with one or more provider agents").option("--name <name>", "run name", "run").option("--cwd <dir>", "working directory", process.cwd()).option("--prompt <text>", "initial prompt pasted into each agent", "").option("--skip", "skip permission prompts for every agent (sets permissions to skip)").option("--run <run-id>", "add the agents to an existing run instead of starting a new one").option("--auth-mode <mode>", "auth mode for every agent: default or api-key").option("--effort <level>", "reasoning effort for every agent: default, low, medium, high, xhigh, max").option("--extra-args <args>", 'extra flags appended to every agent launch, e.g. "--remote-control"').option("--json", "output JSON: the run id and the spawned agent ids").action((agentSpecs, opts) => {
|
|
275
301
|
try {
|
|
276
302
|
const specs = agentSpecs.length > 0 ? agentSpecs : ["codex"];
|
|
277
303
|
const parsed = specs.map(parseAgentSpec);
|
|
@@ -279,25 +305,9 @@ program.command("spawn [agent...]").description("start a run with one or more pr
|
|
|
279
305
|
const permissions = opts.skip ? "skip" : void 0;
|
|
280
306
|
const auth_mode = parseAuthModeOpt(opts.authMode);
|
|
281
307
|
const effort = parseEffortOpt(opts.effort);
|
|
308
|
+
const extra_args = coerceExtraArgs(opts.extraArgs);
|
|
282
309
|
if (opts.run) {
|
|
283
|
-
|
|
284
|
-
const agents = parsed.map((spec) => spawnWorker({
|
|
285
|
-
run_id: run.id,
|
|
286
|
-
provider: spec.provider,
|
|
287
|
-
nickname: spec.nickname,
|
|
288
|
-
model: spec.model,
|
|
289
|
-
task: opts.prompt,
|
|
290
|
-
permissions,
|
|
291
|
-
auth_mode,
|
|
292
|
-
effort
|
|
293
|
-
}, { available }));
|
|
294
|
-
if (opts.json) {
|
|
295
|
-
printSpawnJson(run, agents);
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
console.log(`added ${agents.length} agents to ${run.id.slice(0, 8)} ${run.name}`);
|
|
299
|
-
for (const agent of agents) printSpawnAgentLine(agent);
|
|
300
|
-
printSpawnHints(run, !!opts.skip);
|
|
310
|
+
spawnIntoRun(resolveRun(opts.run), parsed, opts, available);
|
|
301
311
|
return;
|
|
302
312
|
}
|
|
303
313
|
const [first, ...rest] = parsed;
|
|
@@ -311,7 +321,8 @@ program.command("spawn [agent...]").description("start a run with one or more pr
|
|
|
311
321
|
task: opts.prompt,
|
|
312
322
|
permissions,
|
|
313
323
|
auth_mode,
|
|
314
|
-
effort
|
|
324
|
+
effort,
|
|
325
|
+
extra_args
|
|
315
326
|
},
|
|
316
327
|
workers: rest.map((spec) => ({
|
|
317
328
|
provider: spec.provider,
|
|
@@ -320,7 +331,8 @@ program.command("spawn [agent...]").description("start a run with one or more pr
|
|
|
320
331
|
task: opts.prompt,
|
|
321
332
|
permissions,
|
|
322
333
|
auth_mode,
|
|
323
|
-
effort
|
|
334
|
+
effort,
|
|
335
|
+
extra_args
|
|
324
336
|
}))
|
|
325
337
|
}, { available });
|
|
326
338
|
if (opts.json) {
|
|
@@ -346,6 +358,33 @@ Example: a Claude Code lead with two Codex and one Kimi worker
|
|
|
346
358
|
|
|
347
359
|
Run "reevesagents doctor" first: it reports tmux, Node, and which provider
|
|
348
360
|
CLIs are installed and logged in, so a spawn does not fail on a missing CLI.`);
|
|
361
|
+
program.command("add [agent...]").description("add agents to the current workspace (the most recent active run)").option("--run <run-id>", "target a specific run instead of the most recent active one").option("--prompt <text>", "initial prompt pasted into each agent", "").option("--skip", "skip permission prompts for every agent (sets permissions to skip)").option("--auth-mode <mode>", "auth mode for every agent: default or api-key").option("--effort <level>", "reasoning effort for every agent: default, low, medium, high, xhigh, max").option("--extra-args <args>", 'extra flags appended to every agent launch, e.g. "--remote-control"').option("--json", "output JSON: the run id and the spawned agent ids").action((agentSpecs, opts) => {
|
|
362
|
+
try {
|
|
363
|
+
if (agentSpecs.length === 0) {
|
|
364
|
+
throw new Error('add needs at least one agent, e.g. "reevesagents add codex"');
|
|
365
|
+
}
|
|
366
|
+
const parsed = agentSpecs.map(parseAgentSpec);
|
|
367
|
+
const available = preflightAvailability(parsed.map((spec) => spec.provider));
|
|
368
|
+
const run = opts.run ? resolveRun(opts.run) : latestActiveRun();
|
|
369
|
+
if (!run) {
|
|
370
|
+
throw new Error('no active workspace to add to. Start one with "reevesagents spawn"');
|
|
371
|
+
}
|
|
372
|
+
spawnIntoRun(run, parsed, opts, available);
|
|
373
|
+
} catch (err) {
|
|
374
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
375
|
+
process.exit(1);
|
|
376
|
+
}
|
|
377
|
+
}).addHelpText("after", `
|
|
378
|
+
Adds agents to a workspace you already have, so you can grow it one at a time
|
|
379
|
+
without passing a run id. With no --run it targets your most recent active run.
|
|
380
|
+
|
|
381
|
+
Example: start a workspace, then keep adding to it
|
|
382
|
+
reevesagents spawn cc
|
|
383
|
+
reevesagents add codex
|
|
384
|
+
reevesagents add kimi:docs
|
|
385
|
+
|
|
386
|
+
Agents added this way just run side by side; none controls the others unless
|
|
387
|
+
you attach the Agent control MCP.`);
|
|
349
388
|
program.command("runs").description("list runs").option("--json", "output JSON array").action((opts) => {
|
|
350
389
|
autoCleanupRuns();
|
|
351
390
|
const runs = listRuns().map((run) => ({ ...run, view_status: computeRunStatus(run, runHasLiveTmuxTarget(run)) }));
|
|
@@ -656,7 +695,7 @@ program.command("web").description("start the on-demand loopback web UI for agen
|
|
|
656
695
|
});
|
|
657
696
|
program.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
|
|
658
697
|
try {
|
|
659
|
-
const { startAgentMcpServer } = await import("./server-
|
|
698
|
+
const { startAgentMcpServer } = await import("./server-KHY23W6D.js");
|
|
660
699
|
await startAgentMcpServer();
|
|
661
700
|
} catch (err) {
|
|
662
701
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -670,7 +709,7 @@ async function runWeb(opts) {
|
|
|
670
709
|
console.error(webExtrasMessage(extras.missing));
|
|
671
710
|
process.exit(1);
|
|
672
711
|
}
|
|
673
|
-
const { startWebServer } = await import("./server-
|
|
712
|
+
const { startWebServer } = await import("./server-L5DTU6U2.js");
|
|
674
713
|
const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
|
|
675
714
|
const handle = await startWebServer({
|
|
676
715
|
port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
|
|
@@ -689,12 +728,12 @@ async function renderTui() {
|
|
|
689
728
|
const [{ default: React }, { render }, { Router }] = await Promise.all([
|
|
690
729
|
import("react"),
|
|
691
730
|
import("ink"),
|
|
692
|
-
import("./router-
|
|
731
|
+
import("./router-MGXDADKM.js")
|
|
693
732
|
]);
|
|
694
733
|
try {
|
|
695
734
|
await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
|
|
696
735
|
} finally {
|
|
697
|
-
const { closeTuiWebServer } = await import("./tui-launch-
|
|
736
|
+
const { closeTuiWebServer } = await import("./tui-launch-2UWK76V3.js");
|
|
698
737
|
await closeTuiWebServer();
|
|
699
738
|
}
|
|
700
739
|
process.exit(0);
|
package/dist/index.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ interface AgentLaunchConfig {
|
|
|
130
130
|
working_dir?: string;
|
|
131
131
|
permissions?: Permissions;
|
|
132
132
|
rc_enabled?: boolean;
|
|
133
|
+
extra_args?: string[];
|
|
133
134
|
}
|
|
134
135
|
interface StartRunRequest {
|
|
135
136
|
name: string;
|
|
@@ -170,6 +171,7 @@ interface BuildCommandOptions {
|
|
|
170
171
|
auth_mode?: AuthMode;
|
|
171
172
|
effort?: Effort;
|
|
172
173
|
rc_enabled?: boolean;
|
|
174
|
+
extra_args?: string[];
|
|
173
175
|
}
|
|
174
176
|
declare const BIN: Record<Provider, string>;
|
|
175
177
|
declare const PROVIDERS: Provider[];
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
modelDisplayName,
|
|
7
7
|
modelSourceForProvider,
|
|
8
8
|
modelValuesForProvider
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NJWOKVBZ.js";
|
|
10
10
|
import {
|
|
11
11
|
BIN,
|
|
12
12
|
PROVIDERS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
startRun,
|
|
40
40
|
stateRoot,
|
|
41
41
|
stopRun
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KL5YFLQF.js";
|
|
43
43
|
import "./chunk-D24DQQ6V.js";
|
|
44
44
|
export {
|
|
45
45
|
BIN,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readTuiOpenToken
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PEOJCUQI.js";
|
|
5
5
|
import {
|
|
6
6
|
translate,
|
|
7
7
|
translatePhrase
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BELIYZTN.js";
|
|
9
9
|
import {
|
|
10
10
|
modelDisplayName,
|
|
11
11
|
modelValuesForProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NJWOKVBZ.js";
|
|
13
13
|
import {
|
|
14
14
|
REEVESAGENTS_VERSION,
|
|
15
15
|
attach,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
hostStatus,
|
|
19
19
|
listRunApprovals,
|
|
20
20
|
resolveRunApproval
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EX5LH2KW.js";
|
|
22
22
|
import {
|
|
23
23
|
CONFIG_FIELDS,
|
|
24
24
|
DEFAULT_LANGUAGE,
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
PROVIDERS,
|
|
27
27
|
archiveAndRemoveRun,
|
|
28
28
|
autoCleanupRuns,
|
|
29
|
+
coerceExtraArgs,
|
|
29
30
|
colors,
|
|
30
31
|
computeRunStatus,
|
|
31
32
|
configExists,
|
|
@@ -68,11 +69,11 @@ import {
|
|
|
68
69
|
startRunFromPreset,
|
|
69
70
|
stateRoot,
|
|
70
71
|
stopRun
|
|
71
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KL5YFLQF.js";
|
|
72
73
|
import "./chunk-D24DQQ6V.js";
|
|
73
74
|
import {
|
|
74
75
|
startWebFromTui
|
|
75
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-33EB4RUP.js";
|
|
76
77
|
|
|
77
78
|
// src/tui/router.tsx
|
|
78
79
|
import { createContext as createContext6, useContext as useContext6, useState as useState36, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
|
|
@@ -125,7 +126,8 @@ var INITIAL_WORKER = {
|
|
|
125
126
|
workingDir: "",
|
|
126
127
|
permissions: "ask",
|
|
127
128
|
authMode: "default",
|
|
128
|
-
effort: "default"
|
|
129
|
+
effort: "default",
|
|
130
|
+
extraArgs: ""
|
|
129
131
|
};
|
|
130
132
|
var INITIAL_STATE = {
|
|
131
133
|
presetName: null,
|
|
@@ -198,7 +200,8 @@ var INITIAL_DRAFT = {
|
|
|
198
200
|
workingDir: process.cwd(),
|
|
199
201
|
permissions: "ask",
|
|
200
202
|
authMode: "default",
|
|
201
|
-
effort: "default"
|
|
203
|
+
effort: "default",
|
|
204
|
+
extraArgs: ""
|
|
202
205
|
};
|
|
203
206
|
function useWorkerDraft() {
|
|
204
207
|
const ctx = useContext3(WorkerDraftContext);
|
|
@@ -3625,8 +3628,9 @@ function NewRunRoot() {
|
|
|
3625
3628
|
if (providerSupportsEffort(state.root.provider)) {
|
|
3626
3629
|
list.push({ kind: "picker", id: "effort", label: "Effort", current: state.root.effort, values: EFFORT_VALUES });
|
|
3627
3630
|
}
|
|
3631
|
+
list.push({ kind: "text", id: "extraArgs", label: "Extra Args", value: state.root.extraArgs, helpText: "optional launch flags, e.g. --remote-control", required: false });
|
|
3628
3632
|
return list;
|
|
3629
|
-
}, [state.root.provider, state.root.model, state.root.prompt, state.root.permissions, state.root.authMode, state.root.effort]);
|
|
3633
|
+
}, [state.root.provider, state.root.model, state.root.prompt, state.root.permissions, state.root.authMode, state.root.effort, state.root.extraArgs]);
|
|
3630
3634
|
const actions = [
|
|
3631
3635
|
{ id: "continue", label: "Continue", hint: "to additional agents" },
|
|
3632
3636
|
{ id: "back", label: "Back", hint: "return to basics" },
|
|
@@ -3672,6 +3676,7 @@ function NewRunRoot() {
|
|
|
3672
3676
|
}
|
|
3673
3677
|
function commitText(id, value) {
|
|
3674
3678
|
if (id === "prompt") updateRoot({ prompt: value });
|
|
3679
|
+
else if (id === "extraArgs") updateRoot({ extraArgs: value });
|
|
3675
3680
|
}
|
|
3676
3681
|
function cyclePicker(id, dir) {
|
|
3677
3682
|
if (id === "provider") {
|
|
@@ -4062,6 +4067,7 @@ function NewRunWorker() {
|
|
|
4062
4067
|
if (providerSupportsEffort(worker.provider)) {
|
|
4063
4068
|
list.push({ kind: "picker", id: "effort", label: "Effort", current: worker.effort, values: EFFORT_VALUES2 });
|
|
4064
4069
|
}
|
|
4070
|
+
list.push({ kind: "text", id: "extraArgs", label: "Extra Args", value: worker.extraArgs, helpText: "optional launch flags, e.g. --remote-control", required: false });
|
|
4065
4071
|
return list;
|
|
4066
4072
|
}, [worker]);
|
|
4067
4073
|
const actions = [
|
|
@@ -4115,6 +4121,7 @@ function NewRunWorker() {
|
|
|
4115
4121
|
if (id === "nickname") updateWorker(idx, { nickname: value });
|
|
4116
4122
|
else if (id === "prompt") updateWorker(idx, { prompt: value });
|
|
4117
4123
|
else if (id === "workingDir") updateWorker(idx, { workingDir: value });
|
|
4124
|
+
else if (id === "extraArgs") updateWorker(idx, { extraArgs: value });
|
|
4118
4125
|
}
|
|
4119
4126
|
function cyclePicker(id, dir) {
|
|
4120
4127
|
if (!worker || idx < 0) return;
|
|
@@ -4361,6 +4368,7 @@ function NewRunReview() {
|
|
|
4361
4368
|
/* @__PURE__ */ jsx38(Row, { selected: false, primary: "Model", badge: { label: modelBadgeLabel(state.root.model), color: modelColor(state.root.model, state.root.provider) } }),
|
|
4362
4369
|
/* @__PURE__ */ jsx38(Row, { selected: false, primary: "Prompt", trailing: promptPreview || "(none)" }),
|
|
4363
4370
|
/* @__PURE__ */ jsx38(Row, { selected: false, primary: showEffort ? "Permissions / Effort" : "Permissions", trailing: permissionsSummary }),
|
|
4371
|
+
state.root.extraArgs.trim().length > 0 ? /* @__PURE__ */ jsx38(Row, { selected: false, primary: "Extra Args", trailing: state.root.extraArgs.trim() }) : null,
|
|
4364
4372
|
/* @__PURE__ */ jsx38(SectionEnd, {}),
|
|
4365
4373
|
state.workers.length > 0 && /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
4366
4374
|
/* @__PURE__ */ jsx38(Section, { label: t("runtime.additionalAgentsCount", { count: state.workers.length }) }),
|
|
@@ -4455,7 +4463,8 @@ function NewRunStarting() {
|
|
|
4455
4463
|
auth_mode: state.root.authMode,
|
|
4456
4464
|
effort: state.root.effort,
|
|
4457
4465
|
task: state.root.prompt,
|
|
4458
|
-
permissions: state.root.permissions
|
|
4466
|
+
permissions: state.root.permissions,
|
|
4467
|
+
extra_args: coerceExtraArgs(state.root.extraArgs)
|
|
4459
4468
|
},
|
|
4460
4469
|
workers: state.workers.map((w) => ({
|
|
4461
4470
|
nickname: w.nickname,
|
|
@@ -4465,7 +4474,8 @@ function NewRunStarting() {
|
|
|
4465
4474
|
effort: w.effort,
|
|
4466
4475
|
task: w.prompt,
|
|
4467
4476
|
working_dir: w.workingDir,
|
|
4468
|
-
permissions: w.permissions
|
|
4477
|
+
permissions: w.permissions,
|
|
4478
|
+
extra_args: coerceExtraArgs(w.extraArgs)
|
|
4469
4479
|
})),
|
|
4470
4480
|
preset_name: state.presetName
|
|
4471
4481
|
};
|
|
@@ -4618,6 +4628,7 @@ function AddWorker() {
|
|
|
4618
4628
|
if (providerSupportsEffort(draft.provider)) {
|
|
4619
4629
|
list.push({ kind: "picker", id: "effort", label: "Effort", current: draft.effort, values: EFFORT_VALUES3 });
|
|
4620
4630
|
}
|
|
4631
|
+
list.push({ kind: "text", id: "extraArgs", label: "Extra Args", value: draft.extraArgs, helpText: "optional launch flags, e.g. --remote-control", required: false });
|
|
4621
4632
|
return list;
|
|
4622
4633
|
}, [draft]);
|
|
4623
4634
|
const actions = [
|
|
@@ -4663,6 +4674,7 @@ function AddWorker() {
|
|
|
4663
4674
|
if (id === "nickname") update({ nickname: value });
|
|
4664
4675
|
else if (id === "prompt") update({ prompt: value });
|
|
4665
4676
|
else if (id === "workingDir") update({ workingDir: value });
|
|
4677
|
+
else if (id === "extraArgs") update({ extraArgs: value });
|
|
4666
4678
|
}
|
|
4667
4679
|
function cyclePicker(id, dir) {
|
|
4668
4680
|
if (id === "provider") update({ provider: cycle3(PROVIDERS, draft.provider, dir), model: "" });
|
|
@@ -4690,7 +4702,8 @@ function AddWorker() {
|
|
|
4690
4702
|
working_dir: draft.workingDir || void 0,
|
|
4691
4703
|
permissions: draft.permissions,
|
|
4692
4704
|
auth_mode: draft.authMode,
|
|
4693
|
-
effort: draft.effort
|
|
4705
|
+
effort: draft.effort,
|
|
4706
|
+
extra_args: coerceExtraArgs(draft.extraArgs)
|
|
4694
4707
|
});
|
|
4695
4708
|
reset();
|
|
4696
4709
|
pop();
|
|
@@ -6452,4 +6465,4 @@ export {
|
|
|
6452
6465
|
nextHistoryOnReset,
|
|
6453
6466
|
useRouter
|
|
6454
6467
|
};
|
|
6455
|
-
//# sourceMappingURL=router-
|
|
6468
|
+
//# sourceMappingURL=router-MGXDADKM.js.map
|
|
@@ -9,13 +9,14 @@ import {
|
|
|
9
9
|
listRunApprovals,
|
|
10
10
|
readRunApproval,
|
|
11
11
|
resolveRunApproval
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EX5LH2KW.js";
|
|
13
13
|
import {
|
|
14
14
|
ALLOWED_KEYS,
|
|
15
15
|
BIN,
|
|
16
16
|
CONFIG_FIELDS,
|
|
17
17
|
PROVIDER_DEFS,
|
|
18
18
|
archiveAndRemoveRun,
|
|
19
|
+
coerceExtraArgs,
|
|
19
20
|
deleteAgent,
|
|
20
21
|
deletePreset,
|
|
21
22
|
deleteRunHistory,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
startRunFromPreset,
|
|
43
44
|
startRunWithHead,
|
|
44
45
|
stopRun
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KL5YFLQF.js";
|
|
46
47
|
import "./chunk-D24DQQ6V.js";
|
|
47
48
|
|
|
48
49
|
// src/mcp/server.ts
|
|
@@ -171,7 +172,8 @@ function spawnHandler(a) {
|
|
|
171
172
|
working_dir: typeof a.working_dir === "string" ? a.working_dir : void 0,
|
|
172
173
|
permissions: parsePermissions(a.permissions),
|
|
173
174
|
auth_mode: parseAuthMode(a.auth_mode),
|
|
174
|
-
effort: parseEffort(a.effort)
|
|
175
|
+
effort: parseEffort(a.effort),
|
|
176
|
+
extra_args: coerceExtraArgs(a.extra_args)
|
|
175
177
|
};
|
|
176
178
|
if (typeof a.run_id === "string" && a.run_id.trim()) {
|
|
177
179
|
const cap = loadConfig().global.max_agents;
|
|
@@ -216,7 +218,8 @@ var TOOLS = [
|
|
|
216
218
|
working_dir: { type: "string" },
|
|
217
219
|
permissions: { type: "string", enum: ["ask", "skip"], description: "ask prompts for each action; skip runs autonomously. Blank uses the global default." },
|
|
218
220
|
auth_mode: { type: "string", enum: ["default", "api-key"], description: "How the CLI authenticates. Blank uses the provider default." },
|
|
219
|
-
effort: { type: "string", enum: ["default", "low", "medium", "high", "xhigh", "max"], description: "Reasoning effort, for providers that support it. Blank uses the provider default." }
|
|
221
|
+
effort: { type: "string", enum: ["default", "low", "medium", "high", "xhigh", "max"], description: "Reasoning effort, for providers that support it. Blank uses the provider default." },
|
|
222
|
+
extra_args: { type: "array", items: { type: "string" }, description: 'Extra flags appended verbatim to the launch, for provider options ReevesAgents does not model. Each flag and its value is a separate item, e.g. ["--remote-control"].' }
|
|
220
223
|
},
|
|
221
224
|
required: ["provider"]
|
|
222
225
|
},
|
|
@@ -621,4 +624,4 @@ export {
|
|
|
621
624
|
sessionRunIsLive,
|
|
622
625
|
startAgentMcpServer
|
|
623
626
|
};
|
|
624
|
-
//# sourceMappingURL=server-
|
|
627
|
+
//# sourceMappingURL=server-KHY23W6D.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
localeCatalog,
|
|
4
4
|
translatePhrase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BELIYZTN.js";
|
|
6
6
|
import {
|
|
7
7
|
modelValuesForProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NJWOKVBZ.js";
|
|
9
9
|
import {
|
|
10
10
|
REEVESAGENTS_VERSION,
|
|
11
11
|
attach,
|
|
@@ -14,13 +14,14 @@ import {
|
|
|
14
14
|
hostStatus,
|
|
15
15
|
listRunApprovals,
|
|
16
16
|
resolveRunApproval
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EX5LH2KW.js";
|
|
18
18
|
import {
|
|
19
19
|
CONFIG_FIELDS,
|
|
20
20
|
LANGUAGE_OPTIONS,
|
|
21
21
|
PROVIDERS,
|
|
22
22
|
archiveAndRemoveRun,
|
|
23
23
|
autoCleanupRuns,
|
|
24
|
+
coerceExtraArgs,
|
|
24
25
|
computeRunStatus,
|
|
25
26
|
deleteAgent,
|
|
26
27
|
deletePreset,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
startRun,
|
|
49
50
|
startRunFromPreset,
|
|
50
51
|
stopRun
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KL5YFLQF.js";
|
|
52
53
|
import "./chunk-D24DQQ6V.js";
|
|
53
54
|
|
|
54
55
|
// src/web/server.ts
|
|
@@ -614,20 +615,21 @@ async function createTerminal(body) {
|
|
|
614
615
|
const permissions = normalizePermissionsInput(body.permissions);
|
|
615
616
|
const auth_mode = parseAuthModeInput(body.auth_mode);
|
|
616
617
|
const effort = parseEffortInput(body.effort);
|
|
618
|
+
const extra_args = coerceExtraArgs(body.extra_args);
|
|
617
619
|
const nickname = sanitizeNickname(typeof body.nickname === "string" ? body.nickname : "");
|
|
618
620
|
const runName = sanitizeRunName(typeof body.run_name === "string" ? body.run_name : "");
|
|
619
621
|
const prompt = typeof body.prompt === "string" ? body.prompt : "";
|
|
620
622
|
const runId = typeof body.run_id === "string" && body.run_id ? body.run_id : null;
|
|
621
623
|
if (runId) {
|
|
622
624
|
readRun(runId);
|
|
623
|
-
const agent = spawnWorker({ run_id: runId, provider: normalizedProvider, nickname: nickname || void 0, model, permissions, auth_mode, effort, task: prompt });
|
|
625
|
+
const agent = spawnWorker({ run_id: runId, provider: normalizedProvider, nickname: nickname || void 0, model, permissions, auth_mode, effort, extra_args, task: prompt });
|
|
624
626
|
return { id: agent.id, run_id: agent.run_id };
|
|
625
627
|
}
|
|
626
628
|
const workingDir = typeof body.working_dir === "string" && body.working_dir.trim() ? body.working_dir.trim() : process.cwd();
|
|
627
629
|
const result = startRun({
|
|
628
630
|
name: runName || nickname || providerDisplayName(normalizedProvider),
|
|
629
631
|
working_dir: workingDir,
|
|
630
|
-
root: { provider: normalizedProvider, nickname: nickname || void 0, model, permissions, auth_mode, effort, task: prompt }
|
|
632
|
+
root: { provider: normalizedProvider, nickname: nickname || void 0, model, permissions, auth_mode, effort, extra_args, task: prompt }
|
|
631
633
|
});
|
|
632
634
|
const root = result.agents[0];
|
|
633
635
|
if (!root) throw new Error("run created no agent");
|
|
@@ -1015,4 +1017,4 @@ async function startWebServer(options = {}) {
|
|
|
1015
1017
|
export {
|
|
1016
1018
|
startWebServer
|
|
1017
1019
|
};
|
|
1018
|
-
//# sourceMappingURL=server-
|
|
1020
|
+
//# sourceMappingURL=server-L5DTU6U2.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
closeTuiWebServer,
|
|
4
4
|
startWebFromTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-33EB4RUP.js";
|
|
6
6
|
export {
|
|
7
7
|
closeTuiWebServer,
|
|
8
8
|
startWebFromTui
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=tui-launch-
|
|
10
|
+
//# sourceMappingURL=tui-launch-2UWK76V3.js.map
|
package/dist/web/app.js
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
'web.cwdHelp': 'Agents start in this directory.',
|
|
69
69
|
'web.promptHelp': 'Sent to the agent after its window opens.',
|
|
70
70
|
'web.promptPlaceholder': 'What should this agent start working on?',
|
|
71
|
+
'web.extraArgs': 'Extra flags',
|
|
72
|
+
'web.extraArgsHelp': 'Passed to the CLI on launch, after the flags ReevesAgents sets.',
|
|
71
73
|
'web.cancel': 'Cancel',
|
|
72
74
|
'web.create': 'Create',
|
|
73
75
|
'web.providerDefault': 'Provider default',
|
|
@@ -231,6 +233,7 @@
|
|
|
231
233
|
fCwd: document.getElementById('f-cwd'),
|
|
232
234
|
cwdField: document.getElementById('cwd-field'),
|
|
233
235
|
fPrompt: document.getElementById('f-prompt'),
|
|
236
|
+
fExtraArgs: document.getElementById('f-extra-args'),
|
|
234
237
|
newError: document.getElementById('new-error'),
|
|
235
238
|
newCancel: document.getElementById('new-cancel'),
|
|
236
239
|
newSubmit: document.getElementById('new-submit'),
|
|
@@ -442,6 +445,8 @@
|
|
|
442
445
|
document.querySelector('#cwd-field .field-label').textContent = t('web.workingDirectory')
|
|
443
446
|
document.querySelector('#f-cwd').placeholder = t('web.cwdPlaceholder')
|
|
444
447
|
document.querySelector('#prompt-field .field-label').innerHTML = `${t('web.initialPrompt')} <span class="field-opt">${t('web.initialPromptOpt')}</span>`
|
|
448
|
+
document.querySelector('#extra-args-field .field-label').innerHTML = `${t('web.extraArgs')} <span class="field-opt">${t('web.optional')}</span>`
|
|
449
|
+
setText('#extra-args-help', t('web.extraArgsHelp'))
|
|
445
450
|
setText('#agent-run-help', t('web.agentRunHelp'))
|
|
446
451
|
setText('#run-name-help', t('web.runNameHelp'))
|
|
447
452
|
setText('#provider-help', t('web.providerHelp'))
|
|
@@ -1415,6 +1420,7 @@
|
|
|
1415
1420
|
el.fPermissions.value = 'ask'
|
|
1416
1421
|
el.fPrompt.value = ''
|
|
1417
1422
|
el.fCwd.value = ''
|
|
1423
|
+
el.fExtraArgs.value = ''
|
|
1418
1424
|
updatePermissionSelection()
|
|
1419
1425
|
}
|
|
1420
1426
|
|
|
@@ -1530,6 +1536,7 @@
|
|
|
1530
1536
|
permissions: el.fPermissions.value,
|
|
1531
1537
|
nickname: el.fNickname.value.trim(),
|
|
1532
1538
|
prompt: el.fPrompt.value,
|
|
1539
|
+
extra_args: el.fExtraArgs.value.trim(),
|
|
1533
1540
|
run_id: createContext.kind === 'agent' ? createContext.runId : undefined,
|
|
1534
1541
|
run_name: createContext.kind === 'run' ? el.fRunName.value.trim() || undefined : undefined,
|
|
1535
1542
|
working_dir: createContext.kind === 'run' ? el.fCwd.value.trim() || undefined : undefined,
|
package/dist/web/index.html
CHANGED
|
@@ -179,6 +179,12 @@
|
|
|
179
179
|
<span id="prompt-help" class="field-help">Sent to the agent after its window opens.</span>
|
|
180
180
|
</label>
|
|
181
181
|
|
|
182
|
+
<label class="field" id="extra-args-field">
|
|
183
|
+
<span class="field-label">Extra flags <span class="field-opt">optional</span></span>
|
|
184
|
+
<input id="f-extra-args" type="text" placeholder="--remote-control" autocomplete="off" />
|
|
185
|
+
<span id="extra-args-help" class="field-help">Passed to the CLI on launch, after the flags ReevesAgents sets.</span>
|
|
186
|
+
</label>
|
|
187
|
+
|
|
182
188
|
<div id="new-error" class="dialog-error" hidden></div>
|
|
183
189
|
|
|
184
190
|
<div class="dialog-actions">
|