reevesagents 1.3.1 → 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 +15 -0
- package/README.md +114 -45
- package/dist/{chunk-2LC6V55H.js → chunk-33EB4RUP.js} +2 -2
- package/dist/{chunk-YMUISYYB.js → chunk-BELIYZTN.js} +22 -2
- package/dist/{chunk-Z2JHNE7V.js → chunk-EX5LH2KW.js} +2 -2
- package/dist/{chunk-65LHCGPC.js → chunk-KL5YFLQF.js} +31 -4
- package/dist/{chunk-HS6TOISU.js → chunk-NJWOKVBZ.js} +2 -2
- package/dist/{chunk-4W6MVOPK.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-TGRU5BFX.js → router-MGXDADKM.js} +66 -44
- package/dist/{server-H2XEJQYT.js → server-KHY23W6D.js} +11 -6
- package/dist/{server-GYB53IBP.js → server-L5DTU6U2.js} +14 -8
- package/dist/{tui-launch-45ERRX5M.js → tui-launch-2UWK76V3.js} +2 -2
- package/dist/web/app.js +13 -5
- package/dist/web/index.html +6 -0
- package/package.json +1 -1
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,
|
|
@@ -52,6 +53,8 @@ import {
|
|
|
52
53
|
presetsDir,
|
|
53
54
|
providerColor,
|
|
54
55
|
providerDisplayName,
|
|
56
|
+
providerSupportsAuthMode,
|
|
57
|
+
providerSupportsEffort,
|
|
55
58
|
readRun,
|
|
56
59
|
runDoctor,
|
|
57
60
|
runHasLiveTmuxTarget,
|
|
@@ -66,11 +69,11 @@ import {
|
|
|
66
69
|
startRunFromPreset,
|
|
67
70
|
stateRoot,
|
|
68
71
|
stopRun
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KL5YFLQF.js";
|
|
70
73
|
import "./chunk-D24DQQ6V.js";
|
|
71
74
|
import {
|
|
72
75
|
startWebFromTui
|
|
73
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-33EB4RUP.js";
|
|
74
77
|
|
|
75
78
|
// src/tui/router.tsx
|
|
76
79
|
import { createContext as createContext6, useContext as useContext6, useState as useState36, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
|
|
@@ -123,7 +126,8 @@ var INITIAL_WORKER = {
|
|
|
123
126
|
workingDir: "",
|
|
124
127
|
permissions: "ask",
|
|
125
128
|
authMode: "default",
|
|
126
|
-
effort: "default"
|
|
129
|
+
effort: "default",
|
|
130
|
+
extraArgs: ""
|
|
127
131
|
};
|
|
128
132
|
var INITIAL_STATE = {
|
|
129
133
|
presetName: null,
|
|
@@ -196,7 +200,8 @@ var INITIAL_DRAFT = {
|
|
|
196
200
|
workingDir: process.cwd(),
|
|
197
201
|
permissions: "ask",
|
|
198
202
|
authMode: "default",
|
|
199
|
-
effort: "default"
|
|
203
|
+
effort: "default",
|
|
204
|
+
extraArgs: ""
|
|
200
205
|
};
|
|
201
206
|
function useWorkerDraft() {
|
|
202
207
|
const ctx = useContext3(WorkerDraftContext);
|
|
@@ -3617,14 +3622,15 @@ function NewRunRoot() {
|
|
|
3617
3622
|
hint: state.root.permissions === "skip" ? "trusted workspaces only" : "provider asks before sensitive actions"
|
|
3618
3623
|
}
|
|
3619
3624
|
];
|
|
3620
|
-
if (state.root.provider
|
|
3625
|
+
if (providerSupportsAuthMode(state.root.provider)) {
|
|
3621
3626
|
list.push({ kind: "picker", id: "authMode", label: "Auth", current: state.root.authMode, values: AUTH_MODE_VALUES, display: authModeDisplay(state.root.authMode), hint: "api-key uses the API key instead of the default login" });
|
|
3622
3627
|
}
|
|
3623
|
-
if (state.root.provider
|
|
3628
|
+
if (providerSupportsEffort(state.root.provider)) {
|
|
3624
3629
|
list.push({ kind: "picker", id: "effort", label: "Effort", current: state.root.effort, values: EFFORT_VALUES });
|
|
3625
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 });
|
|
3626
3632
|
return list;
|
|
3627
|
-
}, [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]);
|
|
3628
3634
|
const actions = [
|
|
3629
3635
|
{ id: "continue", label: "Continue", hint: "to additional agents" },
|
|
3630
3636
|
{ id: "back", label: "Back", hint: "return to basics" },
|
|
@@ -3670,6 +3676,7 @@ function NewRunRoot() {
|
|
|
3670
3676
|
}
|
|
3671
3677
|
function commitText(id, value) {
|
|
3672
3678
|
if (id === "prompt") updateRoot({ prompt: value });
|
|
3679
|
+
else if (id === "extraArgs") updateRoot({ extraArgs: value });
|
|
3673
3680
|
}
|
|
3674
3681
|
function cyclePicker(id, dir) {
|
|
3675
3682
|
if (id === "provider") {
|
|
@@ -4054,12 +4061,13 @@ function NewRunWorker() {
|
|
|
4054
4061
|
hint: worker.permissions === "skip" ? "trusted workspaces only" : "provider asks before sensitive actions"
|
|
4055
4062
|
}
|
|
4056
4063
|
];
|
|
4057
|
-
if (worker.provider
|
|
4064
|
+
if (providerSupportsAuthMode(worker.provider)) {
|
|
4058
4065
|
list.push({ kind: "picker", id: "authMode", label: "Auth", current: worker.authMode, values: AUTH_MODE_VALUES2, display: authModeDisplay2(worker.authMode), hint: "api-key uses the API key instead of the default login" });
|
|
4059
4066
|
}
|
|
4060
|
-
if (worker.provider
|
|
4067
|
+
if (providerSupportsEffort(worker.provider)) {
|
|
4061
4068
|
list.push({ kind: "picker", id: "effort", label: "Effort", current: worker.effort, values: EFFORT_VALUES2 });
|
|
4062
4069
|
}
|
|
4070
|
+
list.push({ kind: "text", id: "extraArgs", label: "Extra Args", value: worker.extraArgs, helpText: "optional launch flags, e.g. --remote-control", required: false });
|
|
4063
4071
|
return list;
|
|
4064
4072
|
}, [worker]);
|
|
4065
4073
|
const actions = [
|
|
@@ -4113,6 +4121,7 @@ function NewRunWorker() {
|
|
|
4113
4121
|
if (id === "nickname") updateWorker(idx, { nickname: value });
|
|
4114
4122
|
else if (id === "prompt") updateWorker(idx, { prompt: value });
|
|
4115
4123
|
else if (id === "workingDir") updateWorker(idx, { workingDir: value });
|
|
4124
|
+
else if (id === "extraArgs") updateWorker(idx, { extraArgs: value });
|
|
4116
4125
|
}
|
|
4117
4126
|
function cyclePicker(id, dir) {
|
|
4118
4127
|
if (!worker || idx < 0) return;
|
|
@@ -4325,7 +4334,7 @@ function NewRunReview() {
|
|
|
4325
4334
|
}
|
|
4326
4335
|
});
|
|
4327
4336
|
const promptPreview = state.root.prompt.length > 40 ? state.root.prompt.slice(0, 40) + "..." : state.root.prompt;
|
|
4328
|
-
const showEffort = state.root.provider
|
|
4337
|
+
const showEffort = providerSupportsEffort(state.root.provider);
|
|
4329
4338
|
const permissionsSummary = showEffort ? `${permissionDisplay3(state.root.permissions)} \xB7 ${state.root.effort}` : permissionDisplay3(state.root.permissions);
|
|
4330
4339
|
return /* @__PURE__ */ jsxs31(
|
|
4331
4340
|
Frame,
|
|
@@ -4359,6 +4368,7 @@ function NewRunReview() {
|
|
|
4359
4368
|
/* @__PURE__ */ jsx38(Row, { selected: false, primary: "Model", badge: { label: modelBadgeLabel(state.root.model), color: modelColor(state.root.model, state.root.provider) } }),
|
|
4360
4369
|
/* @__PURE__ */ jsx38(Row, { selected: false, primary: "Prompt", trailing: promptPreview || "(none)" }),
|
|
4361
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,
|
|
4362
4372
|
/* @__PURE__ */ jsx38(SectionEnd, {}),
|
|
4363
4373
|
state.workers.length > 0 && /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
4364
4374
|
/* @__PURE__ */ jsx38(Section, { label: t("runtime.additionalAgentsCount", { count: state.workers.length }) }),
|
|
@@ -4453,7 +4463,8 @@ function NewRunStarting() {
|
|
|
4453
4463
|
auth_mode: state.root.authMode,
|
|
4454
4464
|
effort: state.root.effort,
|
|
4455
4465
|
task: state.root.prompt,
|
|
4456
|
-
permissions: state.root.permissions
|
|
4466
|
+
permissions: state.root.permissions,
|
|
4467
|
+
extra_args: coerceExtraArgs(state.root.extraArgs)
|
|
4457
4468
|
},
|
|
4458
4469
|
workers: state.workers.map((w) => ({
|
|
4459
4470
|
nickname: w.nickname,
|
|
@@ -4463,7 +4474,8 @@ function NewRunStarting() {
|
|
|
4463
4474
|
effort: w.effort,
|
|
4464
4475
|
task: w.prompt,
|
|
4465
4476
|
working_dir: w.workingDir,
|
|
4466
|
-
permissions: w.permissions
|
|
4477
|
+
permissions: w.permissions,
|
|
4478
|
+
extra_args: coerceExtraArgs(w.extraArgs)
|
|
4467
4479
|
})),
|
|
4468
4480
|
preset_name: state.presetName
|
|
4469
4481
|
};
|
|
@@ -4585,32 +4597,40 @@ function AddWorker() {
|
|
|
4585
4597
|
const bodyRows = frameBodyRows(termRows, true, false);
|
|
4586
4598
|
const compactBody = bodyRows <= 9;
|
|
4587
4599
|
const run = selectedRunId ? safeReadRun(selectedRunId) : null;
|
|
4588
|
-
const fields = useMemo7(() =>
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4600
|
+
const fields = useMemo7(() => {
|
|
4601
|
+
const list = [
|
|
4602
|
+
{ kind: "text", id: "nickname", label: "Nickname", value: draft.nickname, helpText: "tmux window name; letters, digits, dashes", required: true },
|
|
4603
|
+
{ kind: "picker", id: "provider", label: "Provider", current: draft.provider, values: PROVIDERS, display: providerDisplayName(draft.provider) },
|
|
4604
|
+
{
|
|
4605
|
+
kind: "picker",
|
|
4606
|
+
id: "model",
|
|
4607
|
+
label: "Model",
|
|
4608
|
+
current: draft.model,
|
|
4609
|
+
values: modelValuesForProvider(draft.provider),
|
|
4610
|
+
display: modelDisplayName(draft.model),
|
|
4611
|
+
hint: "optional \xB7 blank uses provider default"
|
|
4612
|
+
},
|
|
4613
|
+
{ kind: "text", id: "prompt", label: "Prompt", value: draft.prompt, helpText: "optional initial prompt \xB7 enter newline \xB7 esc done", required: false },
|
|
4614
|
+
{ kind: "text", id: "workingDir", label: "Working Dir", value: draft.workingDir, helpText: "defaults to the run working dir", required: false },
|
|
4615
|
+
{
|
|
4616
|
+
kind: "picker",
|
|
4617
|
+
id: "permissions",
|
|
4618
|
+
label: "Permissions",
|
|
4619
|
+
current: draft.permissions,
|
|
4620
|
+
values: PERMISSIONS_VALUES3,
|
|
4621
|
+
display: permissionDisplay4(draft.permissions),
|
|
4622
|
+
hint: draft.permissions === "skip" ? "trusted workspaces only" : "provider asks before sensitive actions"
|
|
4623
|
+
}
|
|
4624
|
+
];
|
|
4625
|
+
if (providerSupportsAuthMode(draft.provider)) {
|
|
4626
|
+
list.push({ kind: "picker", id: "authMode", label: "Auth", current: draft.authMode, values: AUTH_MODE_VALUES3, display: authModeDisplay3(draft.authMode), hint: "api-key uses the API key instead of the default login" });
|
|
4627
|
+
}
|
|
4628
|
+
if (providerSupportsEffort(draft.provider)) {
|
|
4629
|
+
list.push({ kind: "picker", id: "effort", label: "Effort", current: draft.effort, values: EFFORT_VALUES3 });
|
|
4630
|
+
}
|
|
4631
|
+
list.push({ kind: "text", id: "extraArgs", label: "Extra Args", value: draft.extraArgs, helpText: "optional launch flags, e.g. --remote-control", required: false });
|
|
4632
|
+
return list;
|
|
4633
|
+
}, [draft]);
|
|
4614
4634
|
const actions = [
|
|
4615
4635
|
{ id: "add", label: "Add Agent", hint: "add this agent to the run" },
|
|
4616
4636
|
{ id: "cancel", label: "Cancel", hint: "discard and return" }
|
|
@@ -4654,6 +4674,7 @@ function AddWorker() {
|
|
|
4654
4674
|
if (id === "nickname") update({ nickname: value });
|
|
4655
4675
|
else if (id === "prompt") update({ prompt: value });
|
|
4656
4676
|
else if (id === "workingDir") update({ workingDir: value });
|
|
4677
|
+
else if (id === "extraArgs") update({ extraArgs: value });
|
|
4657
4678
|
}
|
|
4658
4679
|
function cyclePicker(id, dir) {
|
|
4659
4680
|
if (id === "provider") update({ provider: cycle3(PROVIDERS, draft.provider, dir), model: "" });
|
|
@@ -4681,7 +4702,8 @@ function AddWorker() {
|
|
|
4681
4702
|
working_dir: draft.workingDir || void 0,
|
|
4682
4703
|
permissions: draft.permissions,
|
|
4683
4704
|
auth_mode: draft.authMode,
|
|
4684
|
-
effort: draft.effort
|
|
4705
|
+
effort: draft.effort,
|
|
4706
|
+
extra_args: coerceExtraArgs(draft.extraArgs)
|
|
4685
4707
|
});
|
|
4686
4708
|
reset();
|
|
4687
4709
|
pop();
|
|
@@ -6443,4 +6465,4 @@ export {
|
|
|
6443
6465
|
nextHistoryOnReset,
|
|
6444
6466
|
useRouter
|
|
6445
6467
|
};
|
|
6446
|
-
//# 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
|
|
@@ -156,7 +157,9 @@ function buildProviderCatalog() {
|
|
|
156
157
|
available: available[def.id],
|
|
157
158
|
aliases: [...def.aliases],
|
|
158
159
|
models: [...def.models],
|
|
159
|
-
model_source: def.modelSource
|
|
160
|
+
model_source: def.modelSource,
|
|
161
|
+
supports_auth_mode: def.supportsAuthMode === true,
|
|
162
|
+
supports_effort: def.supportsEffort === true
|
|
160
163
|
}));
|
|
161
164
|
}
|
|
162
165
|
function spawnHandler(a) {
|
|
@@ -169,7 +172,8 @@ function spawnHandler(a) {
|
|
|
169
172
|
working_dir: typeof a.working_dir === "string" ? a.working_dir : void 0,
|
|
170
173
|
permissions: parsePermissions(a.permissions),
|
|
171
174
|
auth_mode: parseAuthMode(a.auth_mode),
|
|
172
|
-
effort: parseEffort(a.effort)
|
|
175
|
+
effort: parseEffort(a.effort),
|
|
176
|
+
extra_args: coerceExtraArgs(a.extra_args)
|
|
173
177
|
};
|
|
174
178
|
if (typeof a.run_id === "string" && a.run_id.trim()) {
|
|
175
179
|
const cap = loadConfig().global.max_agents;
|
|
@@ -214,7 +218,8 @@ var TOOLS = [
|
|
|
214
218
|
working_dir: { type: "string" },
|
|
215
219
|
permissions: { type: "string", enum: ["ask", "skip"], description: "ask prompts for each action; skip runs autonomously. Blank uses the global default." },
|
|
216
220
|
auth_mode: { type: "string", enum: ["default", "api-key"], description: "How the CLI authenticates. Blank uses the provider default." },
|
|
217
|
-
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"].' }
|
|
218
223
|
},
|
|
219
224
|
required: ["provider"]
|
|
220
225
|
},
|
|
@@ -619,4 +624,4 @@ export {
|
|
|
619
624
|
sessionRunIsLive,
|
|
620
625
|
startAgentMcpServer
|
|
621
626
|
};
|
|
622
|
-
//# 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,
|
|
@@ -37,6 +38,8 @@ import {
|
|
|
37
38
|
normalizeProvider,
|
|
38
39
|
providerColor,
|
|
39
40
|
providerDisplayName,
|
|
41
|
+
providerSupportsAuthMode,
|
|
42
|
+
providerSupportsEffort,
|
|
40
43
|
readRun,
|
|
41
44
|
runDoctor,
|
|
42
45
|
runHasLiveTmuxTarget,
|
|
@@ -46,7 +49,7 @@ import {
|
|
|
46
49
|
startRun,
|
|
47
50
|
startRunFromPreset,
|
|
48
51
|
stopRun
|
|
49
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KL5YFLQF.js";
|
|
50
53
|
import "./chunk-D24DQQ6V.js";
|
|
51
54
|
|
|
52
55
|
// src/web/server.ts
|
|
@@ -178,7 +181,9 @@ function listWebProviders() {
|
|
|
178
181
|
name: providerDisplayName(id),
|
|
179
182
|
available: available[id],
|
|
180
183
|
color: providerColor(id),
|
|
181
|
-
models: [...modelValuesForProvider(id)]
|
|
184
|
+
models: [...modelValuesForProvider(id)],
|
|
185
|
+
supportsAuthMode: providerSupportsAuthMode(id),
|
|
186
|
+
supportsEffort: providerSupportsEffort(id)
|
|
182
187
|
}));
|
|
183
188
|
}
|
|
184
189
|
|
|
@@ -610,20 +615,21 @@ async function createTerminal(body) {
|
|
|
610
615
|
const permissions = normalizePermissionsInput(body.permissions);
|
|
611
616
|
const auth_mode = parseAuthModeInput(body.auth_mode);
|
|
612
617
|
const effort = parseEffortInput(body.effort);
|
|
618
|
+
const extra_args = coerceExtraArgs(body.extra_args);
|
|
613
619
|
const nickname = sanitizeNickname(typeof body.nickname === "string" ? body.nickname : "");
|
|
614
620
|
const runName = sanitizeRunName(typeof body.run_name === "string" ? body.run_name : "");
|
|
615
621
|
const prompt = typeof body.prompt === "string" ? body.prompt : "";
|
|
616
622
|
const runId = typeof body.run_id === "string" && body.run_id ? body.run_id : null;
|
|
617
623
|
if (runId) {
|
|
618
624
|
readRun(runId);
|
|
619
|
-
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 });
|
|
620
626
|
return { id: agent.id, run_id: agent.run_id };
|
|
621
627
|
}
|
|
622
628
|
const workingDir = typeof body.working_dir === "string" && body.working_dir.trim() ? body.working_dir.trim() : process.cwd();
|
|
623
629
|
const result = startRun({
|
|
624
630
|
name: runName || nickname || providerDisplayName(normalizedProvider),
|
|
625
631
|
working_dir: workingDir,
|
|
626
|
-
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 }
|
|
627
633
|
});
|
|
628
634
|
const root = result.agents[0];
|
|
629
635
|
if (!root) throw new Error("run created no agent");
|
|
@@ -1011,4 +1017,4 @@ async function startWebServer(options = {}) {
|
|
|
1011
1017
|
export {
|
|
1012
1018
|
startWebServer
|
|
1013
1019
|
};
|
|
1014
|
-
//# 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
|