reevesagents 2.2.1 → 2.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 +1 -0
- package/CHANGELOG.md +20 -0
- package/README.md +16 -9
- package/dist/chunk-57DS2BWS.js +225 -0
- package/dist/{chunk-HTCENB3Q.js → chunk-BN4ATJYV.js} +2 -2
- package/dist/{chunk-XHP63Y64.js → chunk-E36TJDAX.js} +266 -20
- package/dist/{chunk-CJKEBBUI.js → chunk-FIMZIW2C.js} +132 -6
- package/dist/{chunk-QIHT27ZG.js → chunk-GUOOQHP5.js} +7 -1
- package/dist/{chunk-XEOWHTRQ.js → chunk-I3BSRNKV.js} +3 -2
- package/dist/{chunk-PVYM35RS.js → chunk-L3ZZEIJA.js} +3 -3
- package/dist/{chunk-DGLUP7Q7.js → chunk-MZVOPJIX.js} +2 -2
- package/dist/{chunk-PKMTELW4.js → chunk-QGPSMVWO.js} +3 -3
- package/dist/{chunk-QWUBYDUV.js → chunk-QXGJINKB.js} +3 -3
- package/dist/cli.js +13 -13
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2 -2
- package/dist/{router-S7KR2CIE.js → router-QTTTC7MF.js} +13 -8
- package/dist/{server-4OILK2LL.js → server-5IJOA2YM.js} +18 -11
- package/dist/{server-5U4NNV43.js → server-KAQMJCXB.js} +322 -11
- package/dist/{tui-launch-7WKLVYEH.js → tui-launch-LY6EIRN2.js} +2 -2
- package/dist/web/app.css +74 -0
- package/dist/web/app.js +230 -41
- package/dist/web/index.html +3 -1
- package/dist/web/insights-core.js +5 -3
- package/package.json +9 -8
|
@@ -584,6 +584,8 @@ var GEMINI_MODELS = [
|
|
|
584
584
|
"gemini-3.5-flash",
|
|
585
585
|
"gemini-3.1-flash-lite"
|
|
586
586
|
];
|
|
587
|
+
var AGY_MODEL_SOURCE = "no fixed list; pick any id from `agy models`, forwarded via --model";
|
|
588
|
+
var AGY_MODELS = [];
|
|
587
589
|
var CLINE_MODEL_SOURCE = "curated Cline CLI model ids";
|
|
588
590
|
var CLINE_MODELS = [
|
|
589
591
|
"anthropic/claude-sonnet-4-6",
|
|
@@ -911,6 +913,35 @@ var PROVIDER_REGISTRY = {
|
|
|
911
913
|
return args;
|
|
912
914
|
}
|
|
913
915
|
},
|
|
916
|
+
agy: {
|
|
917
|
+
id: "agy",
|
|
918
|
+
bin: "agy",
|
|
919
|
+
displayName: "Antigravity CLI",
|
|
920
|
+
color: "#4285f4",
|
|
921
|
+
// Google blue
|
|
922
|
+
aliases: ["agy", "antigravity", "antigravity cli", "antigravity-cli", "google antigravity"],
|
|
923
|
+
models: AGY_MODELS,
|
|
924
|
+
modelSource: AGY_MODEL_SOURCE,
|
|
925
|
+
helpRequirements: [
|
|
926
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
927
|
+
{ feature: "skip permissions", tokens: ["--dangerously-skip-permissions"] },
|
|
928
|
+
{ feature: "reasoning effort", tokens: ["--effort"] }
|
|
929
|
+
],
|
|
930
|
+
supportsEffort: true,
|
|
931
|
+
// An untrusted folder shows a static trust dialog that looks "stable" to the generic
|
|
932
|
+
// heuristic and would swallow the pasted task. Yes is preselected, so Enter accepts it.
|
|
933
|
+
startup: {
|
|
934
|
+
readyPattern: /\? for shortcuts/,
|
|
935
|
+
prompts: [{ pattern: /Do you trust the contents of this project\?/, key: "Enter", autoWhen: "skip" }]
|
|
936
|
+
},
|
|
937
|
+
buildArgs: ({ permissions, model, effort }) => {
|
|
938
|
+
const args = [];
|
|
939
|
+
if (permissions === "skip") args.push("--dangerously-skip-permissions");
|
|
940
|
+
if (effort !== "default") args.push("--effort", effort);
|
|
941
|
+
if (model) args.push("--model", model);
|
|
942
|
+
return args;
|
|
943
|
+
}
|
|
944
|
+
},
|
|
914
945
|
cline: {
|
|
915
946
|
id: "cline",
|
|
916
947
|
bin: "cline",
|
|
@@ -3959,14 +3990,18 @@ function windowInSession(driver, session, windowId) {
|
|
|
3959
3990
|
return false;
|
|
3960
3991
|
}
|
|
3961
3992
|
}
|
|
3962
|
-
function
|
|
3963
|
-
if (!session
|
|
3993
|
+
function sessionPaneIds(driver, session) {
|
|
3994
|
+
if (!session) return [];
|
|
3964
3995
|
try {
|
|
3965
|
-
return driver.tmux(["list-panes", "-s", "-t", exactSession(session), "-F", "#{pane_id}"]).split("\n").
|
|
3996
|
+
return driver.tmux(["list-panes", "-s", "-t", exactSession(session), "-F", "#{pane_id}"]).split("\n").map((line) => line.trim()).filter((line) => line.length > 0);
|
|
3966
3997
|
} catch {
|
|
3967
|
-
return
|
|
3998
|
+
return [];
|
|
3968
3999
|
}
|
|
3969
4000
|
}
|
|
4001
|
+
function paneInSession(driver, session, paneId) {
|
|
4002
|
+
if (!session || !paneId) return false;
|
|
4003
|
+
return sessionPaneIds(driver, session).includes(paneId);
|
|
4004
|
+
}
|
|
3970
4005
|
|
|
3971
4006
|
// src/core/runs.ts
|
|
3972
4007
|
function runsDir() {
|
|
@@ -4101,6 +4136,17 @@ function normalizeRunHistory(raw) {
|
|
|
4101
4136
|
root_provider: isProvider(raw.root_provider) ? raw.root_provider : null
|
|
4102
4137
|
};
|
|
4103
4138
|
}
|
|
4139
|
+
function normalizeAttention(value) {
|
|
4140
|
+
if (typeof value !== "object" || value === null) return null;
|
|
4141
|
+
const raw = value;
|
|
4142
|
+
const reason = raw.reason;
|
|
4143
|
+
if (reason !== "approval" && reason !== "input" && reason !== "question") return null;
|
|
4144
|
+
return {
|
|
4145
|
+
reason,
|
|
4146
|
+
detail: asString(raw.detail),
|
|
4147
|
+
since: asString(raw.since, nowIso())
|
|
4148
|
+
};
|
|
4149
|
+
}
|
|
4104
4150
|
function normalizeAgent(raw) {
|
|
4105
4151
|
const id = asString(raw.id);
|
|
4106
4152
|
return {
|
|
@@ -4122,6 +4168,7 @@ function normalizeAgent(raw) {
|
|
|
4122
4168
|
permissions: normalizePermissions(raw.permissions),
|
|
4123
4169
|
headless: raw.headless === true,
|
|
4124
4170
|
inbox: normalizeInbox(raw.inbox),
|
|
4171
|
+
attention: normalizeAttention(raw.attention),
|
|
4125
4172
|
last_seen: typeof raw.last_seen === "number" ? raw.last_seen : 0,
|
|
4126
4173
|
started_at: asString(raw.started_at, nowIso()),
|
|
4127
4174
|
ended_at: asNullableString(raw.ended_at)
|
|
@@ -4132,7 +4179,10 @@ function redactAgent(agent) {
|
|
|
4132
4179
|
...agent,
|
|
4133
4180
|
task: redactSecrets(agent.task),
|
|
4134
4181
|
task_note: redactSecrets(agent.task_note),
|
|
4135
|
-
inbox: agent.inbox.map((message) => ({ ...message, text: redactSecrets(message.text) }))
|
|
4182
|
+
inbox: agent.inbox.map((message) => ({ ...message, text: redactSecrets(message.text) })),
|
|
4183
|
+
// The attention detail is captured pane text: an approval prompt carries the command
|
|
4184
|
+
// line, so it can hold a key pasted into the agent's own prompt.
|
|
4185
|
+
attention: agent.attention ? { ...agent.attention, detail: redactSecrets(agent.attention.detail) } : agent.attention
|
|
4136
4186
|
};
|
|
4137
4187
|
}
|
|
4138
4188
|
function writeRunUnlocked(run) {
|
|
@@ -5956,6 +6006,13 @@ var ALLOWED_KEYS = [
|
|
|
5956
6006
|
var POST_PASTE_ENTER_DELAY_MS = 1e3;
|
|
5957
6007
|
var STARTUP_READY_POLL_MS = 1e3;
|
|
5958
6008
|
var STARTUP_READY_TIMEOUT_MS = 2e4;
|
|
6009
|
+
var STARTUP_DETECT_LINES = 20;
|
|
6010
|
+
var STARTUP_PROMPT_STABLE_POLLS = 2;
|
|
6011
|
+
var STARTUP_KEY_RETRY_MS = 3e3;
|
|
6012
|
+
var STARTUP_KEY_MAX_ATTEMPTS = 3;
|
|
6013
|
+
var STARTUP_GATE_TIMEOUT_MS = 5 * 6e4;
|
|
6014
|
+
var STARTUP_GATE_SLOW_POLL_MS = 1e4;
|
|
6015
|
+
var STARTUP_GATE_HARD_CAP_MS = 60 * 6e4;
|
|
5959
6016
|
var lastPasteAtByPane = /* @__PURE__ */ new Map();
|
|
5960
6017
|
function sleepSync3(ms) {
|
|
5961
6018
|
const buffer = new SharedArrayBuffer(4);
|
|
@@ -5987,6 +6044,23 @@ function waitAfterPaste(driver) {
|
|
|
5987
6044
|
function normalizePaneOutput(output) {
|
|
5988
6045
|
return stripAnsi2(output).replace(/\s+/g, " ").trim().toLowerCase();
|
|
5989
6046
|
}
|
|
6047
|
+
function visiblePaneText(output) {
|
|
6048
|
+
return stripAnsi2(output).replace(/\s+/g, " ").trim();
|
|
6049
|
+
}
|
|
6050
|
+
function recentPaneOutput(output) {
|
|
6051
|
+
return output.split("\n").filter((line) => stripAnsi2(line).trim() !== "").slice(-STARTUP_DETECT_LINES).join("\n");
|
|
6052
|
+
}
|
|
6053
|
+
function startupPaneState(output, previousOutput, gate) {
|
|
6054
|
+
const text2 = visiblePaneText(output);
|
|
6055
|
+
const prompts = gate.prompts ?? [];
|
|
6056
|
+
const index = prompts.findIndex((prompt) => prompt.pattern.test(text2));
|
|
6057
|
+
if (index >= 0) {
|
|
6058
|
+
const prompt = prompts[index];
|
|
6059
|
+
return { prompt: { index, key: prompt.key, autoWhen: prompt.autoWhen }, ready: false };
|
|
6060
|
+
}
|
|
6061
|
+
const ready = gate.readyPattern ? gate.readyPattern.test(text2) : paneLooksReady(output, previousOutput);
|
|
6062
|
+
return { prompt: void 0, ready };
|
|
6063
|
+
}
|
|
5990
6064
|
function paneLooksReady(output, previousOutput) {
|
|
5991
6065
|
const current = normalizePaneOutput(output);
|
|
5992
6066
|
if (!current) return false;
|
|
@@ -6109,10 +6183,52 @@ function sendDelayedStartupInput(driver, agent, config, readyDelayMs) {
|
|
|
6109
6183
|
updateAgent(agent.run_id, agent.id, { task_status: "working" });
|
|
6110
6184
|
}
|
|
6111
6185
|
}
|
|
6186
|
+
const gate = PROVIDER_REGISTRY[config.provider].startup;
|
|
6187
|
+
const keyAttempts = /* @__PURE__ */ new Map();
|
|
6188
|
+
let consecutivePromptPolls = 0;
|
|
6189
|
+
let promptSeenAtMs;
|
|
6190
|
+
let waitingLogged = false;
|
|
6191
|
+
function advanceGatedStartup(gate2, recent, previousRecent, waitedMs) {
|
|
6192
|
+
const state = startupPaneState(recent, previousRecent, gate2);
|
|
6193
|
+
if (state.prompt) {
|
|
6194
|
+
const { index, key, autoWhen } = state.prompt;
|
|
6195
|
+
consecutivePromptPolls++;
|
|
6196
|
+
promptSeenAtMs = waitedMs;
|
|
6197
|
+
const attempts = keyAttempts.get(index) ?? { count: 0, lastKeyAtMs: 0 };
|
|
6198
|
+
const retryDue = attempts.count === 0 || waitedMs - attempts.lastKeyAtMs >= STARTUP_KEY_RETRY_MS;
|
|
6199
|
+
if (autoWhen === "skip" && agent.permissions === "skip" && consecutivePromptPolls >= STARTUP_PROMPT_STABLE_POLLS && attempts.count < STARTUP_KEY_MAX_ATTEMPTS && retryDue) {
|
|
6200
|
+
driver.tmux(["send-keys", "-t", agent.tmux_pane_id, key]);
|
|
6201
|
+
keyAttempts.set(index, { count: attempts.count + 1, lastKeyAtMs: waitedMs });
|
|
6202
|
+
}
|
|
6203
|
+
return false;
|
|
6204
|
+
}
|
|
6205
|
+
consecutivePromptPolls = 0;
|
|
6206
|
+
if (state.ready || waitedMs - (promptSeenAtMs ?? 0) >= STARTUP_READY_TIMEOUT_MS) {
|
|
6207
|
+
sendStartupTask();
|
|
6208
|
+
return true;
|
|
6209
|
+
}
|
|
6210
|
+
return false;
|
|
6211
|
+
}
|
|
6112
6212
|
function waitForReadyThenSend(previousOutput = "", waitedMs = 0) {
|
|
6113
6213
|
try {
|
|
6114
6214
|
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) return;
|
|
6115
6215
|
const output = driver.tmux(["capture-pane", "-p", "-e", "-S", "-80", "-t", agent.tmux_pane_id]);
|
|
6216
|
+
if (gate) {
|
|
6217
|
+
const recent = recentPaneOutput(output);
|
|
6218
|
+
if (advanceGatedStartup(gate, recent, previousOutput, waitedMs)) return;
|
|
6219
|
+
if (waitedMs >= STARTUP_GATE_HARD_CAP_MS) {
|
|
6220
|
+
logDiagnostic("startup-gate-gave-up", { agent_id: agent.id, provider: agent.provider });
|
|
6221
|
+
return;
|
|
6222
|
+
}
|
|
6223
|
+
const slow = waitedMs >= STARTUP_GATE_TIMEOUT_MS;
|
|
6224
|
+
if (slow && !waitingLogged) {
|
|
6225
|
+
waitingLogged = true;
|
|
6226
|
+
logDiagnostic("startup-gate-waiting", { agent_id: agent.id, provider: agent.provider });
|
|
6227
|
+
}
|
|
6228
|
+
const intervalMs = slow ? STARTUP_GATE_SLOW_POLL_MS : STARTUP_READY_POLL_MS;
|
|
6229
|
+
driver.delay(() => waitForReadyThenSend(recent, waitedMs + intervalMs), intervalMs);
|
|
6230
|
+
return;
|
|
6231
|
+
}
|
|
6116
6232
|
if (paneLooksReady(output, previousOutput) || waitedMs >= STARTUP_READY_TIMEOUT_MS) {
|
|
6117
6233
|
sendStartupTask();
|
|
6118
6234
|
return;
|
|
@@ -7102,6 +7218,12 @@ var HOSTS = [
|
|
|
7102
7218
|
remove: ["mcp", "remove", SERVER_NAME],
|
|
7103
7219
|
list: ["mcp", "list"]
|
|
7104
7220
|
},
|
|
7221
|
+
{
|
|
7222
|
+
provider: "agy",
|
|
7223
|
+
add: (cmd) => ["mcp", "add", SERVER_NAME, "--", cmd.command, ...cmd.args],
|
|
7224
|
+
remove: ["mcp", "remove", SERVER_NAME],
|
|
7225
|
+
list: ["mcp", "list"]
|
|
7226
|
+
},
|
|
7105
7227
|
{
|
|
7106
7228
|
provider: "hermes",
|
|
7107
7229
|
// hermes takes --command and a variadic --args, so the entry path and `mcp`
|
|
@@ -7496,6 +7618,7 @@ export {
|
|
|
7496
7618
|
tmuxCommand,
|
|
7497
7619
|
execTmux,
|
|
7498
7620
|
spawnTmux,
|
|
7621
|
+
realDriver,
|
|
7499
7622
|
exactSession,
|
|
7500
7623
|
tmuxAvailable,
|
|
7501
7624
|
sessionExists,
|
|
@@ -7510,6 +7633,7 @@ export {
|
|
|
7510
7633
|
sessionInGroup,
|
|
7511
7634
|
windowIds,
|
|
7512
7635
|
windowByName,
|
|
7636
|
+
sessionPaneIds,
|
|
7513
7637
|
parseSpecJson,
|
|
7514
7638
|
specFromMarkdown,
|
|
7515
7639
|
formatSpecIssues,
|
|
@@ -7518,6 +7642,7 @@ export {
|
|
|
7518
7642
|
isCommitId,
|
|
7519
7643
|
findingsText,
|
|
7520
7644
|
countFindings,
|
|
7645
|
+
validateNotesText,
|
|
7521
7646
|
ensureNotesInbox,
|
|
7522
7647
|
readNewestNotes,
|
|
7523
7648
|
readDurable,
|
|
@@ -7598,6 +7723,7 @@ export {
|
|
|
7598
7723
|
deleteRunHistory,
|
|
7599
7724
|
computeRunStatus,
|
|
7600
7725
|
readAgent,
|
|
7726
|
+
updateAgent,
|
|
7601
7727
|
tryListAgents,
|
|
7602
7728
|
archiveAndRemoveRun,
|
|
7603
7729
|
listAgents,
|
|
@@ -7660,4 +7786,4 @@ export {
|
|
|
7660
7786
|
checkTmux,
|
|
7661
7787
|
runDoctor
|
|
7662
7788
|
};
|
|
7663
|
-
//# sourceMappingURL=chunk-
|
|
7789
|
+
//# sourceMappingURL=chunk-FIMZIW2C.js.map
|
|
@@ -103,6 +103,12 @@ function skillTargets() {
|
|
|
103
103
|
label: "Codex, Kimi, OpenCode",
|
|
104
104
|
dir: join(home, ".agents", "skills", SKILL_NAME),
|
|
105
105
|
file: join(home, ".agents", "skills", SKILL_NAME, "SKILL.md")
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: "antigravity",
|
|
109
|
+
label: "Antigravity CLI",
|
|
110
|
+
dir: join(home, ".gemini", "config", "skills", SKILL_NAME),
|
|
111
|
+
file: join(home, ".gemini", "config", "skills", SKILL_NAME, "SKILL.md")
|
|
106
112
|
}
|
|
107
113
|
];
|
|
108
114
|
}
|
|
@@ -149,4 +155,4 @@ export {
|
|
|
149
155
|
skillsStatus,
|
|
150
156
|
removeSkills
|
|
151
157
|
};
|
|
152
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-GUOOQHP5.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
tryListSessions,
|
|
38
38
|
tryTargetExists,
|
|
39
39
|
withRunsLock
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-FIMZIW2C.js";
|
|
41
41
|
|
|
42
42
|
// src/version.ts
|
|
43
43
|
import { readFileSync } from "fs";
|
|
@@ -1234,6 +1234,7 @@ export {
|
|
|
1234
1234
|
resolveFlowIncident,
|
|
1235
1235
|
flowIncidentAgeMs,
|
|
1236
1236
|
resolveFlowRunId,
|
|
1237
|
+
SETTLED_DISPATCH_EVENTS,
|
|
1237
1238
|
flowDispatchNote,
|
|
1238
1239
|
flowQueueSummary,
|
|
1239
1240
|
flowStatusPayload,
|
|
@@ -1243,4 +1244,4 @@ export {
|
|
|
1243
1244
|
listFlowBadges,
|
|
1244
1245
|
sameFlowBadges
|
|
1245
1246
|
};
|
|
1246
|
-
//# sourceMappingURL=chunk-
|
|
1247
|
+
//# sourceMappingURL=chunk-I3BSRNKV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reconcileFlowIncidents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-I3BSRNKV.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_EVIDENCE_POLICY,
|
|
7
7
|
FLOW_LOG_LIMIT,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
tryListAgents,
|
|
70
70
|
withRunsLock,
|
|
71
71
|
writePaneCapture
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FIMZIW2C.js";
|
|
73
73
|
|
|
74
74
|
// src/core/flow-queue.ts
|
|
75
75
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -1694,4 +1694,4 @@ export {
|
|
|
1694
1694
|
addFlowSpecs,
|
|
1695
1695
|
dropFlowSpec
|
|
1696
1696
|
};
|
|
1697
|
-
//# sourceMappingURL=chunk-
|
|
1697
|
+
//# sourceMappingURL=chunk-L3ZZEIJA.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-FIMZIW2C.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-MZVOPJIX.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readGitHead,
|
|
4
4
|
readSpecFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L3ZZEIJA.js";
|
|
6
6
|
import {
|
|
7
7
|
FlowStateError,
|
|
8
8
|
createFlowState,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
removeNotesDir,
|
|
17
17
|
saveFlow,
|
|
18
18
|
withRunsLock
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FIMZIW2C.js";
|
|
20
20
|
|
|
21
21
|
// src/core/flow-start.ts
|
|
22
22
|
function findRun(input) {
|
|
@@ -112,4 +112,4 @@ function startFlow(input, options = {}) {
|
|
|
112
112
|
export {
|
|
113
113
|
startFlow
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=chunk-
|
|
115
|
+
//# sourceMappingURL=chunk-QGPSMVWO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GUOOQHP5.js";
|
|
5
5
|
import {
|
|
6
6
|
attachAll,
|
|
7
7
|
checkTmux,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLaunchCmd,
|
|
12
12
|
stateRoot,
|
|
13
13
|
verifyServerLaunch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FIMZIW2C.js";
|
|
15
15
|
|
|
16
16
|
// src/surfaces/tui/open-token.ts
|
|
17
17
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -67,4 +67,4 @@ export {
|
|
|
67
67
|
runOnboarding,
|
|
68
68
|
suggestedAgentPrompt
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-QXGJINKB.js.map
|
package/dist/cli.js
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
runOnboarding,
|
|
5
5
|
suggestedAgentPrompt,
|
|
6
6
|
writeTuiOpenToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QXGJINKB.js";
|
|
8
8
|
import {
|
|
9
9
|
startFlow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QGPSMVWO.js";
|
|
11
11
|
import {
|
|
12
12
|
installSkills,
|
|
13
13
|
removeSkills,
|
|
14
14
|
skillsStatus
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GUOOQHP5.js";
|
|
16
16
|
import {
|
|
17
17
|
MODEL_CATALOG
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MZVOPJIX.js";
|
|
19
19
|
import {
|
|
20
20
|
addFlowSpecs,
|
|
21
21
|
applyPlanMarks,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
roundIsLive,
|
|
30
30
|
stepFlow,
|
|
31
31
|
stopFlow
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-L3ZZEIJA.js";
|
|
33
33
|
import {
|
|
34
34
|
REEVESAGENTS_VERSION,
|
|
35
35
|
ackFlowIncident,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
sweepOrphanSessions,
|
|
49
49
|
tickStateText,
|
|
50
50
|
writeTickStatus
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-I3BSRNKV.js";
|
|
52
52
|
import {
|
|
53
53
|
ALLOWED_KEYS,
|
|
54
54
|
CONFIG_FIELDS,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
verifyServerLaunch,
|
|
135
135
|
windowByName,
|
|
136
136
|
windowIds
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-FIMZIW2C.js";
|
|
138
138
|
import "./chunk-Q3WWQP2R.js";
|
|
139
139
|
|
|
140
140
|
// src/surfaces/cli/index.ts
|
|
@@ -403,7 +403,7 @@ function registerSpawn(program2) {
|
|
|
403
403
|
Agent spec: provider[:nickname[:model]] (nickname and model are optional)
|
|
404
404
|
The first agent leads the run; the rest join it as workers.
|
|
405
405
|
Provider ids and aliases come from "reevesagents providers"
|
|
406
|
-
(e.g. cc or claude, codex, kimi, qwen, opencode, hermes, pi, aider).
|
|
406
|
+
(e.g. cc or claude, codex, kimi, qwen, opencode, hermes, pi, aider, agy).
|
|
407
407
|
|
|
408
408
|
Example: a Claude Code lead with two Codex and one Kimi worker
|
|
409
409
|
reevesagents spawn cc:lead cc:review codex:api codex:tests kimi:docs \\
|
|
@@ -752,7 +752,7 @@ To connect ${state.attachable.join(", ")}, run: reevesagents setup --attach`);
|
|
|
752
752
|
console.log("\nSetting up...");
|
|
753
753
|
const result = await runOnboarding();
|
|
754
754
|
if (result.skills.some((skill) => skill.ok)) {
|
|
755
|
-
console.log(" ok skill installed for skill-aware CLIs (Claude, Codex, Kimi, OpenCode)");
|
|
755
|
+
console.log(" ok skill installed for skill-aware CLIs (Claude, Codex, Kimi, OpenCode, Antigravity)");
|
|
756
756
|
}
|
|
757
757
|
for (const attached of result.attached) {
|
|
758
758
|
console.log(` ${(attached.ok ? "ok" : "--").padEnd(3)} ${attached.key.padEnd(10)} ${attached.message}`);
|
|
@@ -900,7 +900,7 @@ function registerDetach(program2) {
|
|
|
900
900
|
function registerMcp(program2) {
|
|
901
901
|
program2.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
|
|
902
902
|
try {
|
|
903
|
-
const { startAgentMcpServer } = await import("./server-
|
|
903
|
+
const { startAgentMcpServer } = await import("./server-5IJOA2YM.js");
|
|
904
904
|
await startAgentMcpServer();
|
|
905
905
|
} catch (err) {
|
|
906
906
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -1958,7 +1958,7 @@ async function runWeb(opts) {
|
|
|
1958
1958
|
console.error(webExtrasMessage(extras.missing));
|
|
1959
1959
|
process.exit(1);
|
|
1960
1960
|
}
|
|
1961
|
-
const { startWebServer } = await import("./server-
|
|
1961
|
+
const { startWebServer } = await import("./server-KAQMJCXB.js");
|
|
1962
1962
|
const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
|
|
1963
1963
|
const handle = await startWebServer({
|
|
1964
1964
|
port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
|
|
@@ -2089,12 +2089,12 @@ async function renderTui() {
|
|
|
2089
2089
|
const [{ default: React }, { render }, { Router }] = await Promise.all([
|
|
2090
2090
|
import("react"),
|
|
2091
2091
|
import("ink"),
|
|
2092
|
-
import("./router-
|
|
2092
|
+
import("./router-QTTTC7MF.js")
|
|
2093
2093
|
]);
|
|
2094
2094
|
try {
|
|
2095
2095
|
await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
|
|
2096
2096
|
} finally {
|
|
2097
|
-
const { closeTuiWebServer } = await import("./tui-launch-
|
|
2097
|
+
const { closeTuiWebServer } = await import("./tui-launch-LY6EIRN2.js");
|
|
2098
2098
|
await closeTuiWebServer();
|
|
2099
2099
|
}
|
|
2100
2100
|
process.exit(0);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
type Provider = 'cc' | 'codex' | 'opencode' | 'hermes' | 'kimi' | 'deepseek' | 'pi' | 'qwen' | 'aider' | 'gemini' | 'cline' | 'crush' | 'goose' | 'kilo' | 'letta' | 'vibe' | 'grok' | 'kiro' | 'droid' | 'qoder' | 'warp' | 'junie' | 'copilot' | 'cursor' | 'rovo';
|
|
1
|
+
type Provider = 'cc' | 'codex' | 'opencode' | 'hermes' | 'kimi' | 'deepseek' | 'pi' | 'qwen' | 'aider' | 'gemini' | 'cline' | 'crush' | 'goose' | 'kilo' | 'letta' | 'vibe' | 'grok' | 'kiro' | 'droid' | 'qoder' | 'warp' | 'junie' | 'copilot' | 'cursor' | 'rovo' | 'agy';
|
|
2
2
|
type LanguageCode = 'en' | 'de' | 'fr' | 'es' | 'pt' | 'it' | 'tr' | 'ru' | 'zh-Hans' | 'ar';
|
|
3
3
|
type Permissions = 'skip' | 'ask';
|
|
4
4
|
type TaskStatus = 'queued' | 'working' | 'done' | 'failed' | 'blocked';
|
|
5
|
+
type AttentionReason = 'approval' | 'input' | 'question';
|
|
6
|
+
interface AttentionState {
|
|
7
|
+
reason: AttentionReason;
|
|
8
|
+
detail: string;
|
|
9
|
+
since: string;
|
|
10
|
+
}
|
|
5
11
|
type AuthMode = 'default' | 'api-key';
|
|
6
12
|
type Effort = 'default' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
7
13
|
type AgentRole = 'root' | 'worker';
|
|
@@ -59,6 +65,7 @@ interface AgentRecord {
|
|
|
59
65
|
permissions: Permissions;
|
|
60
66
|
headless?: boolean;
|
|
61
67
|
inbox: Message[];
|
|
68
|
+
attention?: AttentionState | null;
|
|
62
69
|
last_seen: number;
|
|
63
70
|
started_at: string;
|
|
64
71
|
ended_at: string | null;
|
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-MZVOPJIX.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-FIMZIW2C.js";
|
|
43
43
|
import "./chunk-Q3WWQP2R.js";
|
|
44
44
|
export {
|
|
45
45
|
BIN,
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
buildOnboardingState,
|
|
4
4
|
readTuiOpenToken
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QXGJINKB.js";
|
|
6
|
+
import "./chunk-GUOOQHP5.js";
|
|
7
7
|
import {
|
|
8
8
|
flowAttentionText,
|
|
9
9
|
flowBadgeText,
|
|
10
10
|
translate,
|
|
11
11
|
translatePhrase
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-E36TJDAX.js";
|
|
13
13
|
import {
|
|
14
14
|
modelDisplayName,
|
|
15
15
|
modelValuesForProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MZVOPJIX.js";
|
|
17
|
+
import {
|
|
18
|
+
sweepAttentionThrottled
|
|
19
|
+
} from "./chunk-57DS2BWS.js";
|
|
17
20
|
import {
|
|
18
21
|
REEVESAGENTS_VERSION,
|
|
19
22
|
flowSectionLines,
|
|
@@ -25,7 +28,7 @@ import {
|
|
|
25
28
|
sameFlowBadges,
|
|
26
29
|
sweepAgentsThrottled,
|
|
27
30
|
sweepOrphanSessionsThrottled
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-I3BSRNKV.js";
|
|
29
32
|
import {
|
|
30
33
|
CONFIG_FIELDS,
|
|
31
34
|
DEFAULT_LANGUAGE,
|
|
@@ -78,11 +81,11 @@ import {
|
|
|
78
81
|
startRunFromPreset,
|
|
79
82
|
stateRoot,
|
|
80
83
|
stopRun
|
|
81
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-FIMZIW2C.js";
|
|
82
85
|
import "./chunk-Q3WWQP2R.js";
|
|
83
86
|
import {
|
|
84
87
|
startWebFromTui
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-BN4ATJYV.js";
|
|
86
89
|
|
|
87
90
|
// src/surfaces/tui/router.tsx
|
|
88
91
|
import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
|
|
@@ -1223,6 +1226,7 @@ function Runs() {
|
|
|
1223
1226
|
function refresh() {
|
|
1224
1227
|
sweepAgentsThrottled();
|
|
1225
1228
|
sweepOrphanSessionsThrottled();
|
|
1229
|
+
sweepAttentionThrottled();
|
|
1226
1230
|
autoCleanupRuns();
|
|
1227
1231
|
const next = listRuns();
|
|
1228
1232
|
setRuns((prev) => {
|
|
@@ -5107,6 +5111,7 @@ var CONFIG_PATHS = {
|
|
|
5107
5111
|
qwen: "~/.qwen/settings.json",
|
|
5108
5112
|
aider: "~/.aider.conf.yml",
|
|
5109
5113
|
gemini: "~/.gemini/settings.json",
|
|
5114
|
+
agy: "~/.gemini/antigravity-cli/settings.json",
|
|
5110
5115
|
cline: "~/.cline",
|
|
5111
5116
|
crush: "~/.config/crush",
|
|
5112
5117
|
goose: "~/.config/goose/config.yaml",
|
|
@@ -6731,4 +6736,4 @@ export {
|
|
|
6731
6736
|
nextHistoryOnReset,
|
|
6732
6737
|
useRouter
|
|
6733
6738
|
};
|
|
6734
|
-
//# sourceMappingURL=router-
|
|
6739
|
+
//# sourceMappingURL=router-QTTTC7MF.js.map
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
startFlow
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QGPSMVWO.js";
|
|
5
5
|
import {
|
|
6
6
|
installSkills,
|
|
7
7
|
skillsStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GUOOQHP5.js";
|
|
9
|
+
import {
|
|
10
|
+
sweepAttentionThrottled
|
|
11
|
+
} from "./chunk-57DS2BWS.js";
|
|
9
12
|
import {
|
|
10
13
|
addFlowSpecs,
|
|
11
14
|
dropFlowSpec,
|
|
@@ -14,7 +17,7 @@ import {
|
|
|
14
17
|
resumeFlow,
|
|
15
18
|
stepFlow,
|
|
16
19
|
stopFlow
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L3ZZEIJA.js";
|
|
18
21
|
import {
|
|
19
22
|
REEVESAGENTS_VERSION,
|
|
20
23
|
ackFlowIncident,
|
|
@@ -33,7 +36,7 @@ import {
|
|
|
33
36
|
sweepAgentsThrottled,
|
|
34
37
|
sweepOrphanSessions,
|
|
35
38
|
sweepOrphanSessionsThrottled
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-I3BSRNKV.js";
|
|
37
40
|
import {
|
|
38
41
|
ALLOWED_KEYS,
|
|
39
42
|
BIN,
|
|
@@ -87,7 +90,7 @@ import {
|
|
|
87
90
|
startRunWithHead,
|
|
88
91
|
stopRun,
|
|
89
92
|
withRunsLock
|
|
90
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-FIMZIW2C.js";
|
|
91
94
|
import "./chunk-Q3WWQP2R.js";
|
|
92
95
|
|
|
93
96
|
// src/surfaces/mcp/server.ts
|
|
@@ -105,9 +108,12 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
105
108
|
import { execFileSync } from "child_process";
|
|
106
109
|
import { readFileSync } from "fs";
|
|
107
110
|
import { basename } from "path";
|
|
108
|
-
var PROVIDER_BY_BIN =
|
|
109
|
-
Object.
|
|
110
|
-
)
|
|
111
|
+
var PROVIDER_BY_BIN = {
|
|
112
|
+
...Object.fromEntries(
|
|
113
|
+
Object.entries(BIN).map(([provider, bin]) => [bin, provider])
|
|
114
|
+
),
|
|
115
|
+
antigravity: "agy"
|
|
116
|
+
};
|
|
111
117
|
function providerFromParent(comm, argv) {
|
|
112
118
|
const byComm = comm ? PROVIDER_BY_BIN[basename(comm)] : void 0;
|
|
113
119
|
if (byComm) return byComm;
|
|
@@ -309,7 +315,7 @@ var TOOLS = [
|
|
|
309
315
|
type: "object",
|
|
310
316
|
properties: {
|
|
311
317
|
run_id: { type: "string", description: "Add to this run. Omit to start a new run." },
|
|
312
|
-
provider: { type: "string", description: "Provider key, e.g. cc, codex, kimi, qwen, opencode, hermes." },
|
|
318
|
+
provider: { type: "string", description: "Provider key, e.g. cc, codex, kimi, qwen, opencode, hermes, agy." },
|
|
313
319
|
model: { type: "string", description: "Model id. Blank keeps the provider default." },
|
|
314
320
|
task: { type: "string", description: "Initial prompt pasted into the agent on startup." },
|
|
315
321
|
nickname: { type: "string" },
|
|
@@ -413,6 +419,7 @@ var TOOLS = [
|
|
|
413
419
|
handler: () => {
|
|
414
420
|
sweepAgentsThrottled();
|
|
415
421
|
sweepOrphanSessionsThrottled();
|
|
422
|
+
sweepAttentionThrottled();
|
|
416
423
|
return ok(listRuns().map((run) => ({ ...run, agents: listAgents(run.id) })));
|
|
417
424
|
}
|
|
418
425
|
},
|
|
@@ -699,7 +706,7 @@ var TOOLS = [
|
|
|
699
706
|
},
|
|
700
707
|
{
|
|
701
708
|
name: "install_skills",
|
|
702
|
-
description: "Install the reevesagents Agent Skill so skill-aware CLIs (Claude Code, Codex, Kimi, OpenCode) learn to drive reevesagents on their own. Writes one SKILL.md to the
|
|
709
|
+
description: "Install the reevesagents Agent Skill so skill-aware CLIs (Claude Code, Codex, Kimi, OpenCode, Antigravity) learn to drive reevesagents on their own. Writes one SKILL.md to each of the three shared skill directories under the home dir. Pass no arguments; call with status omitted to install, or read the returned rows to see where it landed. The user must restart their CLIs to pick it up.",
|
|
703
710
|
inputSchema: {
|
|
704
711
|
type: "object",
|
|
705
712
|
properties: {
|
|
@@ -1101,4 +1108,4 @@ export {
|
|
|
1101
1108
|
sessionRunIsLive,
|
|
1102
1109
|
startAgentMcpServer
|
|
1103
1110
|
};
|
|
1104
|
-
//# sourceMappingURL=server-
|
|
1111
|
+
//# sourceMappingURL=server-5IJOA2YM.js.map
|