reevesagents 2.3.0 → 2.4.1
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 +15 -0
- package/README.md +16 -9
- package/dist/{chunk-H7HEBQDW.js → chunk-2ITA27G2.js} +8 -6
- package/dist/{chunk-VNACTZPD.js → chunk-3ZEEO4CA.js} +129 -7
- package/dist/{chunk-T3KAXZJK.js → chunk-BAB3TFZZ.js} +3 -3
- package/dist/{chunk-BHUY46Z3.js → chunk-EM5KK2CS.js} +3 -3
- package/dist/{chunk-ZNOYXAJO.js → chunk-GGMLYNNT.js} +2 -2
- package/dist/{chunk-QIHT27ZG.js → chunk-GUOOQHP5.js} +7 -1
- package/dist/{chunk-IKWMNWP4.js → chunk-I6YC3L4L.js} +2 -2
- package/dist/{chunk-ETUW7JDR.js → chunk-US2VYUIP.js} +3 -3
- package/dist/{chunk-ZED5YGNK.js → chunk-W5ACI3G4.js} +2 -2
- package/dist/{chunk-Q4PR3NOT.js → chunk-XWU6WKZN.js} +2 -2
- package/dist/cli.js +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{router-GGZMVGO7.js → router-ION3TWNV.js} +10 -9
- package/dist/{server-IMN4GWAU.js → server-6GR624SS.js} +16 -13
- package/dist/{server-4DQ7LMRT.js → server-PHQDEB6Q.js} +10 -10
- package/dist/{tui-launch-EZMMQS7K.js → tui-launch-S5OH6OJ5.js} +2 -2
- package/package.json +9 -8
package/AGENTS.md
CHANGED
|
@@ -89,6 +89,7 @@ provider in a spawn spec.
|
|
|
89
89
|
| `aider` | Aider | |
|
|
90
90
|
| `deepseek` | DeepSeek CLI | `deepseek-cli` |
|
|
91
91
|
| `gemini` | Gemini CLI | `gemini cli`, `gemini-cli` |
|
|
92
|
+
| `agy` | Antigravity CLI | `antigravity`, `antigravity cli`, `antigravity-cli`, `google antigravity` |
|
|
92
93
|
| `cline` | Cline CLI | `cline cli`, `cline-cli` |
|
|
93
94
|
| `crush` | Crush | `charm crush`, `charm-crush` |
|
|
94
95
|
| `goose` | Goose | |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.4.1](https://github.com/mertkayacs/reevesagents/compare/v2.4.0...v2.4.1) (2026-11-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency @lydell/node-pty to v1.2.0-beta.18 ([#224](https://github.com/mertkayacs/reevesagents/issues/224)) ([a88cb6a](https://github.com/mertkayacs/reevesagents/commit/a88cb6a492fc2e6b5cf2d8784113b1500bfd0d7f))
|
|
9
|
+
* **reaper:** only sweep orphan sessions tagged with this registry ([#218](https://github.com/mertkayacs/reevesagents/issues/218)) ([#226](https://github.com/mertkayacs/reevesagents/issues/226)) ([24fbf3a](https://github.com/mertkayacs/reevesagents/commit/24fbf3a635d660ca403790620c037df4b85f33bc))
|
|
10
|
+
|
|
11
|
+
## [2.4.0](https://github.com/mertkayacs/reevesagents/compare/v2.3.0...v2.4.0) (2026-11-26)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **providers:** add Google Antigravity CLI (agy) provider and MCP host ([#217](https://github.com/mertkayacs/reevesagents/issues/217)) ([abeede6](https://github.com/mertkayacs/reevesagents/commit/abeede67a361a1feb83d66b17b3469063337c439))
|
|
17
|
+
|
|
3
18
|
## [2.3.0](https://github.com/mertkayacs/reevesagents/compare/v2.2.1...v2.3.0) (2026-11-16)
|
|
4
19
|
|
|
5
20
|
|
package/README.md
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
<p align="center">
|
|
11
11
|
Open-source workspace that runs AI coding CLIs side by side on your machine.<br>
|
|
12
|
-
<b>
|
|
12
|
+
<b>26 CLIs, each in its own tmux window. One of them can drive the rest over MCP.</b>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://www.npmjs.com/package/reevesagents"><img alt="npm version" src="https://img.shields.io/npm/v/reevesagents?style=flat-square&logo=npm&label=npm&color=006D77"></a>
|
|
17
17
|
<a href="LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-3b82f6?style=flat-square"></a>
|
|
18
18
|
<img alt="Node.js 22.12 or newer and tmux" src="https://img.shields.io/badge/Node.js%2022.12%2B%20and%20tmux-5FA04E?style=flat-square&logo=nodedotjs&logoColor=white">
|
|
19
|
-
<img alt="
|
|
19
|
+
<img alt="26 supported coding CLIs" src="https://img.shields.io/badge/CLIs-26%20supported-1A202C?style=flat-square">
|
|
20
20
|
<a href="https://github.com/mertkayacs/reevesagents"><img alt="GitHub stars" src="https://img.shields.io/github/stars/mertkayacs/reevesagents?style=flat-square&logo=github&color=8A6D3B"></a>
|
|
21
21
|
</p>
|
|
22
22
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</picture>
|
|
37
37
|
</p>
|
|
38
38
|
|
|
39
|
-
ReevesAgents is a free, open-source workspace for AI coding agents. It runs Claude Code, Codex, Kimi, OpenCode, Gemini CLI and 20 other coding CLIs side by side, each in its own tmux window, and gives you a terminal UI, a browser UI and a scriptable CLI over the same runs. Attach its MCP server to one CLI and that agent can spawn, read, steer and stop the others. Every CLI keeps its own login, and ReevesAgents keeps its state in a few JSON files under `~/.reeves`.
|
|
39
|
+
ReevesAgents is a free, open-source workspace for AI coding agents. It runs Claude Code, Codex, Kimi, OpenCode, Gemini CLI, Antigravity CLI and 20 other coding CLIs side by side, each in its own tmux window, and gives you a terminal UI, a browser UI and a scriptable CLI over the same runs. Attach its MCP server to one CLI and that agent can spawn, read, steer and stop the others. Every CLI keeps its own login, and ReevesAgents keeps its state in a few JSON files under `~/.reeves`.
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
@@ -46,8 +46,8 @@ You already use these CLIs, and you are already signed in to them. ReevesAgents
|
|
|
46
46
|
|
|
47
47
|
| | |
|
|
48
48
|
|---|---|
|
|
49
|
-
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/layers.svg" width="18" height="18" alt=""> **
|
|
50
|
-
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/network.svg" width="18" height="18" alt=""> **One agent drives the rest** | `reevesagents attach cc` gives Claude Code the MCP tools to spawn, read, steer and stop other agents. Codex, Kimi Code, Qwen Code, Hermes and
|
|
49
|
+
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/layers.svg" width="18" height="18" alt=""> **26 CLIs, one workspace** | Claude Code, Codex, Kimi, OpenCode, Hermes, Gemini CLI, Antigravity CLI and [19 more](#supported-clis) start from one command. Each runs as the real CLI in its own tmux window, so agents keep running after you close the UI. |
|
|
50
|
+
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/network.svg" width="18" height="18" alt=""> **One agent drives the rest** | `reevesagents attach cc` gives Claude Code the MCP tools to spawn, read, steer and stop other agents. Codex, Kimi Code, Qwen Code, Hermes, OpenCode and Antigravity CLI can host it too, and it stays off until you attach it ([details](docs/mcp.md)). |
|
|
51
51
|
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/key-round.svg" width="18" height="18" alt=""> **Your logins stay put** | Each CLI signs in the way it always does. ReevesAgents stores no API keys, adds no proxy, and redacts token-like text in tasks, notes and approvals before it writes state. |
|
|
52
52
|
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/app-window.svg" width="18" height="18" alt=""> **Four ways in** | A terminal UI, a Web UI with a live pane per agent, a CLI with `--json` output for scripts, and the MCP. All four read and write the same runs. |
|
|
53
53
|
| <img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/icons/folder-lock.svg" width="18" height="18" alt=""> **Plain local state** | A few JSON files under `~/.reeves`, with no database and no Docker. The Web UI answers on 127.0.0.1 only and rejects foreign Host and Origin headers ([guards](src/surfaces/webui/guards.ts)). |
|
|
@@ -75,7 +75,7 @@ You already use these CLIs, and you are already signed in to them. ReevesAgents
|
|
|
75
75
|
<img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/new-run-light.webp" alt="The New run dialog with a run name field and a grid of coding CLIs with their install state">
|
|
76
76
|
</picture>
|
|
77
77
|
<h3>Start a run from the browser</h3>
|
|
78
|
-
Choose one of the
|
|
78
|
+
Choose one of the 26 CLIs, a model and a permission mode. CLIs that are not installed are marked.
|
|
79
79
|
</td>
|
|
80
80
|
</tr>
|
|
81
81
|
<tr>
|
|
@@ -85,7 +85,7 @@ You already use these CLIs, and you are already signed in to them. ReevesAgents
|
|
|
85
85
|
<img src="https://raw.githubusercontent.com/mertkayacs/reevesagents/master/docs/assets/readme/agent-control-light.webp" alt="The Agent control dialog listing six host CLIs, with Claude Code, Codex and OpenCode attached">
|
|
86
86
|
</picture>
|
|
87
87
|
<h3>Let one agent drive the rest</h3>
|
|
88
|
-
Attach the MCP to Claude Code, Codex, Kimi Code, Qwen Code, Hermes or
|
|
88
|
+
Attach the MCP to Claude Code, Codex, Kimi Code, Qwen Code, Hermes, OpenCode or Antigravity CLI, then restart that CLI to load the tools.
|
|
89
89
|
</td>
|
|
90
90
|
<td width="50%" valign="top">
|
|
91
91
|
<picture>
|
|
@@ -98,7 +98,7 @@ You already use these CLIs, and you are already signed in to them. ReevesAgents
|
|
|
98
98
|
</tr>
|
|
99
99
|
</table>
|
|
100
100
|
|
|
101
|
-
<p align="center"><sub>The Web UI screenshots show a demo run of four Kilo Code agents on a sample repository. Any of the
|
|
101
|
+
<p align="center"><sub>The Web UI screenshots show a demo run of four Kilo Code agents on a sample repository. Any of the 26 CLIs works the same way.</sub></p>
|
|
102
102
|
|
|
103
103
|
## Features
|
|
104
104
|
|
|
@@ -121,7 +121,7 @@ You already use these CLIs, and you are already signed in to them. ReevesAgents
|
|
|
121
121
|
|
|
122
122
|
**Agent Control (MCP)**
|
|
123
123
|
|
|
124
|
-
- `reevesagents attach` connects every installed host CLI, or one by its id: `cc`, `codex`, `kimi`, `qwen`, `hermes` or `
|
|
124
|
+
- `reevesagents attach` connects every installed host CLI, or one by its id: `cc`, `codex`, `kimi`, `qwen`, `hermes`, `opencode` or `agy`. `hosts` shows the state and `detach <id>` removes it.
|
|
125
125
|
- The host gets tools to spawn agents, read their output, send text and keys, interrupt, stop, and handle approvals and presets. Workers get none of them unless you attach their CLI too.
|
|
126
126
|
- A Claude Code plugin ships in this repository, and the server is listed in the official MCP Registry as io.github.mertkayacs/reevesagents.
|
|
127
127
|
|
|
@@ -204,6 +204,7 @@ Use the id in a spawn spec such as `codex:tests`. Aliases like `claude` work the
|
|
|
204
204
|
| Qwen Code | `qwen` | yes |
|
|
205
205
|
| Aider | `aider` | |
|
|
206
206
|
| Gemini CLI | `gemini` | |
|
|
207
|
+
| Antigravity CLI | `agy` | yes |
|
|
207
208
|
| Cline CLI | `cline` | |
|
|
208
209
|
| Crush | `crush` | |
|
|
209
210
|
| Goose | `goose` | |
|
|
@@ -220,6 +221,12 @@ Use the id in a spawn spec such as `codex:tests`. Aliases like `claude` work the
|
|
|
220
221
|
| Cursor CLI | `cursor` | |
|
|
221
222
|
| Rovo Dev CLI | `rovo` | |
|
|
222
223
|
|
|
224
|
+
<sub>Antigravity CLI (`agy`) is the successor to Gemini CLI, and `gemini` is being superseded by it; `gemini` stays supported for now. Antigravity has no fixed model catalog: pick any id printed by `agy models` and it is forwarded with `--model`.</sub>
|
|
225
|
+
|
|
226
|
+
<sub>With permissions `skip`, ReevesAgents auto-accepts agy's folder-trust dialog, and agy remembers the folder as trusted afterwards. With `ask` it waits for you to answer the dialog in the pane.</sub>
|
|
227
|
+
|
|
228
|
+
<sub>agy rejects `--effort` for models that do not support it, and `--model` conflicts with `--effort` for models whose id already encodes an effort level, so set one or the other.</sub>
|
|
229
|
+
|
|
223
230
|
<sub>The binary on your PATH matches the id, except `claude` (cc), `kiro-cli` (kiro), `qodercli` (qoder), `cursor-agent` (cursor) and `acli` (rovo). `reevesagents providers` shows which of them it finds, with their aliases and suggested models.</sub>
|
|
224
231
|
|
|
225
232
|
## FAQ
|
|
@@ -26,10 +26,12 @@ import {
|
|
|
26
26
|
readPlan,
|
|
27
27
|
readRun,
|
|
28
28
|
redactSecrets,
|
|
29
|
+
registryTag,
|
|
29
30
|
runDir,
|
|
30
31
|
saveFlow,
|
|
31
32
|
sessionAttached,
|
|
32
33
|
sessionInGroup,
|
|
34
|
+
sessionRegistryTag,
|
|
33
35
|
shortHomePath,
|
|
34
36
|
stateRoot,
|
|
35
37
|
tmuxAvailable,
|
|
@@ -37,7 +39,7 @@ import {
|
|
|
37
39
|
tryListSessions,
|
|
38
40
|
tryTargetExists,
|
|
39
41
|
withRunsLock
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
41
43
|
|
|
42
44
|
// src/version.ts
|
|
43
45
|
import { readFileSync } from "fs";
|
|
@@ -110,9 +112,6 @@ function sweepAgents(options = {}) {
|
|
|
110
112
|
return { reaped };
|
|
111
113
|
}
|
|
112
114
|
var ORPHAN_MIN_AGE_SEC = 60;
|
|
113
|
-
function isReevesOwnedName(name) {
|
|
114
|
-
return RUN_SESSION_PATTERN.test(name) || VIEWER_SESSION_PATTERN.test(name);
|
|
115
|
-
}
|
|
116
115
|
function sweepOrphanSessions(options = {}) {
|
|
117
116
|
const haveTmux = options.listSessions ? true : (options.tmuxAvailable ?? tmuxAvailable)();
|
|
118
117
|
if (!haveTmux) return { killed: [] };
|
|
@@ -126,11 +125,14 @@ function sweepOrphanSessions(options = {}) {
|
|
|
126
125
|
const nowSec = (options.now ?? nowMs)() / 1e3;
|
|
127
126
|
const runs = (options.runs ?? listRuns)();
|
|
128
127
|
const liveRunSessions = new Set(runs.map((run) => run.tmux_session));
|
|
129
|
-
|
|
128
|
+
const tag = registryTag();
|
|
129
|
+
const ownTagged = (name) => sessionRegistryTag(name) === tag;
|
|
130
|
+
if (runs.length === 0 && sessions.some((session) => ownTagged(session.name))) {
|
|
130
131
|
return { killed: [], skipped: "foreign-registry" };
|
|
131
132
|
}
|
|
132
133
|
const killed = [];
|
|
133
134
|
for (const info of sessions) {
|
|
135
|
+
if (!ownTagged(info.name)) continue;
|
|
134
136
|
if (info.attached) continue;
|
|
135
137
|
if (!options.ignoreGrace && info.createdSec > 0 && nowSec - info.createdSec < ORPHAN_MIN_AGE_SEC) continue;
|
|
136
138
|
let orphan = false;
|
|
@@ -1244,4 +1246,4 @@ export {
|
|
|
1244
1246
|
listFlowBadges,
|
|
1245
1247
|
sameFlowBadges
|
|
1246
1248
|
};
|
|
1247
|
-
//# sourceMappingURL=chunk-
|
|
1249
|
+
//# sourceMappingURL=chunk-2ITA27G2.js.map
|
|
@@ -4,11 +4,17 @@ import {
|
|
|
4
4
|
} from "./chunk-Q3WWQP2R.js";
|
|
5
5
|
|
|
6
6
|
// src/core/state-path.ts
|
|
7
|
+
import { createHash } from "crypto";
|
|
7
8
|
import { homedir } from "os";
|
|
8
|
-
import { join } from "path";
|
|
9
|
+
import { join, resolve } from "path";
|
|
9
10
|
function stateRoot() {
|
|
10
11
|
return process.env.REEVES_REGISTRY || join(homedir(), ".reeves");
|
|
11
12
|
}
|
|
13
|
+
function registryTag(root = stateRoot()) {
|
|
14
|
+
let resolved = resolve(root);
|
|
15
|
+
if (process.platform === "win32") resolved = resolved.toLowerCase();
|
|
16
|
+
return createHash("sha256").update(resolved).digest("hex").slice(0, 8);
|
|
17
|
+
}
|
|
12
18
|
|
|
13
19
|
// src/core/redact.ts
|
|
14
20
|
var SECRET_PATTERNS = [
|
|
@@ -584,6 +590,8 @@ var GEMINI_MODELS = [
|
|
|
584
590
|
"gemini-3.5-flash",
|
|
585
591
|
"gemini-3.1-flash-lite"
|
|
586
592
|
];
|
|
593
|
+
var AGY_MODEL_SOURCE = "no fixed list; pick any id from `agy models`, forwarded via --model";
|
|
594
|
+
var AGY_MODELS = [];
|
|
587
595
|
var CLINE_MODEL_SOURCE = "curated Cline CLI model ids";
|
|
588
596
|
var CLINE_MODELS = [
|
|
589
597
|
"anthropic/claude-sonnet-4-6",
|
|
@@ -911,6 +919,35 @@ var PROVIDER_REGISTRY = {
|
|
|
911
919
|
return args;
|
|
912
920
|
}
|
|
913
921
|
},
|
|
922
|
+
agy: {
|
|
923
|
+
id: "agy",
|
|
924
|
+
bin: "agy",
|
|
925
|
+
displayName: "Antigravity CLI",
|
|
926
|
+
color: "#4285f4",
|
|
927
|
+
// Google blue
|
|
928
|
+
aliases: ["agy", "antigravity", "antigravity cli", "antigravity-cli", "google antigravity"],
|
|
929
|
+
models: AGY_MODELS,
|
|
930
|
+
modelSource: AGY_MODEL_SOURCE,
|
|
931
|
+
helpRequirements: [
|
|
932
|
+
{ feature: "model selection", tokens: ["--model"] },
|
|
933
|
+
{ feature: "skip permissions", tokens: ["--dangerously-skip-permissions"] },
|
|
934
|
+
{ feature: "reasoning effort", tokens: ["--effort"] }
|
|
935
|
+
],
|
|
936
|
+
supportsEffort: true,
|
|
937
|
+
// An untrusted folder shows a static trust dialog that looks "stable" to the generic
|
|
938
|
+
// heuristic and would swallow the pasted task. Yes is preselected, so Enter accepts it.
|
|
939
|
+
startup: {
|
|
940
|
+
readyPattern: /\? for shortcuts/,
|
|
941
|
+
prompts: [{ pattern: /Do you trust the contents of this project\?/, key: "Enter", autoWhen: "skip" }]
|
|
942
|
+
},
|
|
943
|
+
buildArgs: ({ permissions, model, effort }) => {
|
|
944
|
+
const args = [];
|
|
945
|
+
if (permissions === "skip") args.push("--dangerously-skip-permissions");
|
|
946
|
+
if (effort !== "default") args.push("--effort", effort);
|
|
947
|
+
if (model) args.push("--model", model);
|
|
948
|
+
return args;
|
|
949
|
+
}
|
|
950
|
+
},
|
|
914
951
|
cline: {
|
|
915
952
|
id: "cline",
|
|
916
953
|
bin: "cline",
|
|
@@ -1356,7 +1393,7 @@ ${inspected.stderr ?? ""}`;
|
|
|
1356
1393
|
}
|
|
1357
1394
|
|
|
1358
1395
|
// src/core/plan.ts
|
|
1359
|
-
import { createHash } from "crypto";
|
|
1396
|
+
import { createHash as createHash2 } from "crypto";
|
|
1360
1397
|
import { chmodSync as chmodSync4, mkdirSync as mkdirSync5, readFileSync as readFileSync6, realpathSync, renameSync as renameSync6, statSync as statSync5, unlinkSync as unlinkSync5, writeFileSync as writeFileSync5 } from "fs";
|
|
1361
1398
|
import { dirname as dirname5, join as join8, relative as relative2 } from "path";
|
|
1362
1399
|
|
|
@@ -3767,6 +3804,7 @@ function logDiagnostic(event, detail = {}) {
|
|
|
3767
3804
|
import { execFileSync as execFileSync2, spawnSync as spawnSync3 } from "child_process";
|
|
3768
3805
|
import { createRequire } from "module";
|
|
3769
3806
|
import { existsSync as existsSync4 } from "fs";
|
|
3807
|
+
import { randomBytes as randomBytes2 } from "crypto";
|
|
3770
3808
|
import { dirname as dirname3, join as join6 } from "path";
|
|
3771
3809
|
import { fileURLToPath, URL } from "url";
|
|
3772
3810
|
function winmuxEntry(platform = process.platform) {
|
|
@@ -3922,7 +3960,16 @@ function tryAllWindowIds() {
|
|
|
3922
3960
|
}
|
|
3923
3961
|
}
|
|
3924
3962
|
var RUN_SESSION_PATTERN = /^reeves-.+-[0-9a-f]{8}$/;
|
|
3925
|
-
var VIEWER_SESSION_PATTERN = /^reevesweb_[0-9a-f]{8}$/;
|
|
3963
|
+
var VIEWER_SESSION_PATTERN = /^reevesweb_(?:[0-9a-f]{8}_)?[0-9a-f]{8}$/;
|
|
3964
|
+
var RUN_SESSION_TAG = /^reeves-.+-r([0-9a-f]{8})-[0-9a-f]{8}$/;
|
|
3965
|
+
var VIEWER_SESSION_TAG = /^reevesweb_([0-9a-f]{8})_[0-9a-f]{8}$/;
|
|
3966
|
+
function viewerSessionName() {
|
|
3967
|
+
return `reevesweb_${registryTag()}_${randomBytes2(4).toString("hex")}`;
|
|
3968
|
+
}
|
|
3969
|
+
function sessionRegistryTag(name) {
|
|
3970
|
+
const m = RUN_SESSION_TAG.exec(name) ?? VIEWER_SESSION_TAG.exec(name);
|
|
3971
|
+
return m ? m[1] : null;
|
|
3972
|
+
}
|
|
3926
3973
|
function sessionInGroup(info, runSession) {
|
|
3927
3974
|
return info.group === runSession || info.groupList.includes(runSession);
|
|
3928
3975
|
}
|
|
@@ -4548,11 +4595,11 @@ function normalizeDocument(text2) {
|
|
|
4548
4595
|
return text2.replace(/\r\n/g, "\n").replace(/\r/g, "\n").split("\n").map((line) => line.replace(/[ \t]+$/, "")).join("\n").replace(/\n+$/, "");
|
|
4549
4596
|
}
|
|
4550
4597
|
function hashDocument(text2) {
|
|
4551
|
-
return
|
|
4598
|
+
return createHash2("sha256").update(normalizeDocument(text2), "utf8").digest("hex");
|
|
4552
4599
|
}
|
|
4553
4600
|
function deriveId(title) {
|
|
4554
4601
|
const normalised = title.replace(/\s+/g, " ").trim().toLowerCase();
|
|
4555
|
-
return `auto:${
|
|
4602
|
+
return `auto:${createHash2("sha256").update(normalised, "utf8").digest("hex").slice(0, 8)}`;
|
|
4556
4603
|
}
|
|
4557
4604
|
function parsePlanDocument(text2) {
|
|
4558
4605
|
const normalised = normalizeDocument(text2);
|
|
@@ -5975,6 +6022,13 @@ var ALLOWED_KEYS = [
|
|
|
5975
6022
|
var POST_PASTE_ENTER_DELAY_MS = 1e3;
|
|
5976
6023
|
var STARTUP_READY_POLL_MS = 1e3;
|
|
5977
6024
|
var STARTUP_READY_TIMEOUT_MS = 2e4;
|
|
6025
|
+
var STARTUP_DETECT_LINES = 20;
|
|
6026
|
+
var STARTUP_PROMPT_STABLE_POLLS = 2;
|
|
6027
|
+
var STARTUP_KEY_RETRY_MS = 3e3;
|
|
6028
|
+
var STARTUP_KEY_MAX_ATTEMPTS = 3;
|
|
6029
|
+
var STARTUP_GATE_TIMEOUT_MS = 5 * 6e4;
|
|
6030
|
+
var STARTUP_GATE_SLOW_POLL_MS = 1e4;
|
|
6031
|
+
var STARTUP_GATE_HARD_CAP_MS = 60 * 6e4;
|
|
5978
6032
|
var lastPasteAtByPane = /* @__PURE__ */ new Map();
|
|
5979
6033
|
function sleepSync3(ms) {
|
|
5980
6034
|
const buffer = new SharedArrayBuffer(4);
|
|
@@ -6006,6 +6060,23 @@ function waitAfterPaste(driver) {
|
|
|
6006
6060
|
function normalizePaneOutput(output) {
|
|
6007
6061
|
return stripAnsi2(output).replace(/\s+/g, " ").trim().toLowerCase();
|
|
6008
6062
|
}
|
|
6063
|
+
function visiblePaneText(output) {
|
|
6064
|
+
return stripAnsi2(output).replace(/\s+/g, " ").trim();
|
|
6065
|
+
}
|
|
6066
|
+
function recentPaneOutput(output) {
|
|
6067
|
+
return output.split("\n").filter((line) => stripAnsi2(line).trim() !== "").slice(-STARTUP_DETECT_LINES).join("\n");
|
|
6068
|
+
}
|
|
6069
|
+
function startupPaneState(output, previousOutput, gate) {
|
|
6070
|
+
const text2 = visiblePaneText(output);
|
|
6071
|
+
const prompts = gate.prompts ?? [];
|
|
6072
|
+
const index = prompts.findIndex((prompt) => prompt.pattern.test(text2));
|
|
6073
|
+
if (index >= 0) {
|
|
6074
|
+
const prompt = prompts[index];
|
|
6075
|
+
return { prompt: { index, key: prompt.key, autoWhen: prompt.autoWhen }, ready: false };
|
|
6076
|
+
}
|
|
6077
|
+
const ready = gate.readyPattern ? gate.readyPattern.test(text2) : paneLooksReady(output, previousOutput);
|
|
6078
|
+
return { prompt: void 0, ready };
|
|
6079
|
+
}
|
|
6009
6080
|
function paneLooksReady(output, previousOutput) {
|
|
6010
6081
|
const current = normalizePaneOutput(output);
|
|
6011
6082
|
if (!current) return false;
|
|
@@ -6037,7 +6108,7 @@ function tmuxWindowName(provider, nickname) {
|
|
|
6037
6108
|
return sanitizeName(nickname || provider).slice(0, 64);
|
|
6038
6109
|
}
|
|
6039
6110
|
function tmuxRunSessionName(runId, rawName) {
|
|
6040
|
-
return `reeves-${sanitizeName(rawName).slice(0, 24)}-${runId.slice(0, 8)}`.slice(0, 64);
|
|
6111
|
+
return `reeves-${sanitizeName(rawName).slice(0, 24)}-r${registryTag()}-${runId.slice(0, 8)}`.slice(0, 64);
|
|
6041
6112
|
}
|
|
6042
6113
|
function childProcessOutput(err) {
|
|
6043
6114
|
if (typeof err !== "object" || err === null) return "";
|
|
@@ -6128,10 +6199,52 @@ function sendDelayedStartupInput(driver, agent, config, readyDelayMs) {
|
|
|
6128
6199
|
updateAgent(agent.run_id, agent.id, { task_status: "working" });
|
|
6129
6200
|
}
|
|
6130
6201
|
}
|
|
6202
|
+
const gate = PROVIDER_REGISTRY[config.provider].startup;
|
|
6203
|
+
const keyAttempts = /* @__PURE__ */ new Map();
|
|
6204
|
+
let consecutivePromptPolls = 0;
|
|
6205
|
+
let promptSeenAtMs;
|
|
6206
|
+
let waitingLogged = false;
|
|
6207
|
+
function advanceGatedStartup(gate2, recent, previousRecent, waitedMs) {
|
|
6208
|
+
const state = startupPaneState(recent, previousRecent, gate2);
|
|
6209
|
+
if (state.prompt) {
|
|
6210
|
+
const { index, key, autoWhen } = state.prompt;
|
|
6211
|
+
consecutivePromptPolls++;
|
|
6212
|
+
promptSeenAtMs = waitedMs;
|
|
6213
|
+
const attempts = keyAttempts.get(index) ?? { count: 0, lastKeyAtMs: 0 };
|
|
6214
|
+
const retryDue = attempts.count === 0 || waitedMs - attempts.lastKeyAtMs >= STARTUP_KEY_RETRY_MS;
|
|
6215
|
+
if (autoWhen === "skip" && agent.permissions === "skip" && consecutivePromptPolls >= STARTUP_PROMPT_STABLE_POLLS && attempts.count < STARTUP_KEY_MAX_ATTEMPTS && retryDue) {
|
|
6216
|
+
driver.tmux(["send-keys", "-t", agent.tmux_pane_id, key]);
|
|
6217
|
+
keyAttempts.set(index, { count: attempts.count + 1, lastKeyAtMs: waitedMs });
|
|
6218
|
+
}
|
|
6219
|
+
return false;
|
|
6220
|
+
}
|
|
6221
|
+
consecutivePromptPolls = 0;
|
|
6222
|
+
if (state.ready || waitedMs - (promptSeenAtMs ?? 0) >= STARTUP_READY_TIMEOUT_MS) {
|
|
6223
|
+
sendStartupTask();
|
|
6224
|
+
return true;
|
|
6225
|
+
}
|
|
6226
|
+
return false;
|
|
6227
|
+
}
|
|
6131
6228
|
function waitForReadyThenSend(previousOutput = "", waitedMs = 0) {
|
|
6132
6229
|
try {
|
|
6133
6230
|
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) return;
|
|
6134
6231
|
const output = driver.tmux(["capture-pane", "-p", "-e", "-S", "-80", "-t", agent.tmux_pane_id]);
|
|
6232
|
+
if (gate) {
|
|
6233
|
+
const recent = recentPaneOutput(output);
|
|
6234
|
+
if (advanceGatedStartup(gate, recent, previousOutput, waitedMs)) return;
|
|
6235
|
+
if (waitedMs >= STARTUP_GATE_HARD_CAP_MS) {
|
|
6236
|
+
logDiagnostic("startup-gate-gave-up", { agent_id: agent.id, provider: agent.provider });
|
|
6237
|
+
return;
|
|
6238
|
+
}
|
|
6239
|
+
const slow = waitedMs >= STARTUP_GATE_TIMEOUT_MS;
|
|
6240
|
+
if (slow && !waitingLogged) {
|
|
6241
|
+
waitingLogged = true;
|
|
6242
|
+
logDiagnostic("startup-gate-waiting", { agent_id: agent.id, provider: agent.provider });
|
|
6243
|
+
}
|
|
6244
|
+
const intervalMs = slow ? STARTUP_GATE_SLOW_POLL_MS : STARTUP_READY_POLL_MS;
|
|
6245
|
+
driver.delay(() => waitForReadyThenSend(recent, waitedMs + intervalMs), intervalMs);
|
|
6246
|
+
return;
|
|
6247
|
+
}
|
|
6135
6248
|
if (paneLooksReady(output, previousOutput) || waitedMs >= STARTUP_READY_TIMEOUT_MS) {
|
|
6136
6249
|
sendStartupTask();
|
|
6137
6250
|
return;
|
|
@@ -7121,6 +7234,12 @@ var HOSTS = [
|
|
|
7121
7234
|
remove: ["mcp", "remove", SERVER_NAME],
|
|
7122
7235
|
list: ["mcp", "list"]
|
|
7123
7236
|
},
|
|
7237
|
+
{
|
|
7238
|
+
provider: "agy",
|
|
7239
|
+
add: (cmd) => ["mcp", "add", SERVER_NAME, "--", cmd.command, ...cmd.args],
|
|
7240
|
+
remove: ["mcp", "remove", SERVER_NAME],
|
|
7241
|
+
list: ["mcp", "list"]
|
|
7242
|
+
},
|
|
7124
7243
|
{
|
|
7125
7244
|
provider: "hermes",
|
|
7126
7245
|
// hermes takes --command and a variadic --args, so the entry path and `mcp`
|
|
@@ -7492,6 +7611,7 @@ function runDoctor() {
|
|
|
7492
7611
|
|
|
7493
7612
|
export {
|
|
7494
7613
|
stateRoot,
|
|
7614
|
+
registryTag,
|
|
7495
7615
|
redactSecrets,
|
|
7496
7616
|
shortHomePath,
|
|
7497
7617
|
displayPath,
|
|
@@ -7527,6 +7647,8 @@ export {
|
|
|
7527
7647
|
tryAllWindowIds,
|
|
7528
7648
|
RUN_SESSION_PATTERN,
|
|
7529
7649
|
VIEWER_SESSION_PATTERN,
|
|
7650
|
+
viewerSessionName,
|
|
7651
|
+
sessionRegistryTag,
|
|
7530
7652
|
sessionInGroup,
|
|
7531
7653
|
windowIds,
|
|
7532
7654
|
windowByName,
|
|
@@ -7683,4 +7805,4 @@ export {
|
|
|
7683
7805
|
checkTmux,
|
|
7684
7806
|
runDoctor
|
|
7685
7807
|
};
|
|
7686
|
-
//# sourceMappingURL=chunk-
|
|
7808
|
+
//# sourceMappingURL=chunk-3ZEEO4CA.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
readGitHead,
|
|
4
4
|
readSpecFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EM5KK2CS.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-3ZEEO4CA.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-BAB3TFZZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reconcileFlowIncidents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2ITA27G2.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-3ZEEO4CA.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-EM5KK2CS.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
redactSecrets,
|
|
8
8
|
sessionPaneIds,
|
|
9
9
|
updateAgent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
11
11
|
|
|
12
12
|
// src/core/attention.ts
|
|
13
13
|
var SCAN_LINES = 40;
|
|
@@ -222,4 +222,4 @@ function sweepAttentionThrottled(options = {}) {
|
|
|
222
222
|
export {
|
|
223
223
|
sweepAttentionThrottled
|
|
224
224
|
};
|
|
225
|
-
//# sourceMappingURL=chunk-
|
|
225
|
+
//# sourceMappingURL=chunk-GGMLYNNT.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_LANGUAGE
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
5
5
|
|
|
6
6
|
// src/i18n/locales/en.ts
|
|
7
7
|
var en = {
|
|
@@ -6840,4 +6840,4 @@ export {
|
|
|
6840
6840
|
localeCatalog,
|
|
6841
6841
|
translatePhrase
|
|
6842
6842
|
};
|
|
6843
|
-
//# sourceMappingURL=chunk-
|
|
6843
|
+
//# sourceMappingURL=chunk-I6YC3L4L.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-3ZEEO4CA.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-US2VYUIP.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-3ZEEO4CA.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-W5ACI3G4.js.map
|
|
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
|
|
|
28
28
|
const { checkWebExtras, webExtrasMessage } = await import("./extras-MWGWGEPB.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-PHQDEB6Q.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-XWU6WKZN.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-US2VYUIP.js";
|
|
8
8
|
import {
|
|
9
9
|
startFlow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BAB3TFZZ.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-W5ACI3G4.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-EM5KK2CS.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-2ITA27G2.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-3ZEEO4CA.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 \\
|
|
@@ -463,7 +463,7 @@ function registerRuns(program2) {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
function registerReap(program2) {
|
|
466
|
-
program2.command("reap").description("reap zombie agents and orphan tmux sessions no live record owns").option("--json", "output JSON object: { reaped, killed_sessions, orphan_sweep_skipped }").action((opts) => {
|
|
466
|
+
program2.command("reap").description("reap zombie agents and orphan tmux sessions no live record owns; only sessions tagged by this registry are swept").option("--json", "output JSON object: { reaped, killed_sessions, orphan_sweep_skipped }").action((opts) => {
|
|
467
467
|
const { reaped } = sweepAgents();
|
|
468
468
|
const { killed, skipped } = sweepOrphanSessions({ ignoreGrace: true });
|
|
469
469
|
if (opts.json) {
|
|
@@ -477,7 +477,7 @@ function registerReap(program2) {
|
|
|
477
477
|
console.log(`killed orphan session ${name}`);
|
|
478
478
|
}
|
|
479
479
|
if (skipped === "foreign-registry") {
|
|
480
|
-
console.log("orphan sweep skipped: this registry owns no runs
|
|
480
|
+
console.log("orphan sweep skipped: this registry owns no runs but the tmux server still carries sessions tagged for it");
|
|
481
481
|
}
|
|
482
482
|
if (reaped.length === 0 && killed.length === 0 && skipped === void 0) {
|
|
483
483
|
console.log("no zombie agents or orphan sessions");
|
|
@@ -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-6GR624SS.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-PHQDEB6Q.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-ION3TWNV.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-S5OH6OJ5.js");
|
|
2098
2098
|
await closeTuiWebServer();
|
|
2099
2099
|
}
|
|
2100
2100
|
process.exit(0);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
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-W5ACI3G4.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-3ZEEO4CA.js";
|
|
43
43
|
import "./chunk-Q3WWQP2R.js";
|
|
44
44
|
export {
|
|
45
45
|
BIN,
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
buildOnboardingState,
|
|
4
4
|
readTuiOpenToken
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-US2VYUIP.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-I6YC3L4L.js";
|
|
13
13
|
import {
|
|
14
14
|
modelDisplayName,
|
|
15
15
|
modelValuesForProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W5ACI3G4.js";
|
|
17
17
|
import {
|
|
18
18
|
sweepAttentionThrottled
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GGMLYNNT.js";
|
|
20
20
|
import {
|
|
21
21
|
REEVESAGENTS_VERSION,
|
|
22
22
|
flowSectionLines,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
sameFlowBadges,
|
|
29
29
|
sweepAgentsThrottled,
|
|
30
30
|
sweepOrphanSessionsThrottled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2ITA27G2.js";
|
|
32
32
|
import {
|
|
33
33
|
CONFIG_FIELDS,
|
|
34
34
|
DEFAULT_LANGUAGE,
|
|
@@ -81,11 +81,11 @@ import {
|
|
|
81
81
|
startRunFromPreset,
|
|
82
82
|
stateRoot,
|
|
83
83
|
stopRun
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
85
85
|
import "./chunk-Q3WWQP2R.js";
|
|
86
86
|
import {
|
|
87
87
|
startWebFromTui
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-XWU6WKZN.js";
|
|
89
89
|
|
|
90
90
|
// src/surfaces/tui/router.tsx
|
|
91
91
|
import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
|
|
@@ -5111,6 +5111,7 @@ var CONFIG_PATHS = {
|
|
|
5111
5111
|
qwen: "~/.qwen/settings.json",
|
|
5112
5112
|
aider: "~/.aider.conf.yml",
|
|
5113
5113
|
gemini: "~/.gemini/settings.json",
|
|
5114
|
+
agy: "~/.gemini/antigravity-cli/settings.json",
|
|
5114
5115
|
cline: "~/.cline",
|
|
5115
5116
|
crush: "~/.config/crush",
|
|
5116
5117
|
goose: "~/.config/goose/config.yaml",
|
|
@@ -6735,4 +6736,4 @@ export {
|
|
|
6735
6736
|
nextHistoryOnReset,
|
|
6736
6737
|
useRouter
|
|
6737
6738
|
};
|
|
6738
|
-
//# sourceMappingURL=router-
|
|
6739
|
+
//# sourceMappingURL=router-ION3TWNV.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
startFlow
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BAB3TFZZ.js";
|
|
5
5
|
import {
|
|
6
6
|
installSkills,
|
|
7
7
|
skillsStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GUOOQHP5.js";
|
|
9
9
|
import {
|
|
10
10
|
sweepAttentionThrottled
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GGMLYNNT.js";
|
|
12
12
|
import {
|
|
13
13
|
addFlowSpecs,
|
|
14
14
|
dropFlowSpec,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resumeFlow,
|
|
18
18
|
stepFlow,
|
|
19
19
|
stopFlow
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EM5KK2CS.js";
|
|
21
21
|
import {
|
|
22
22
|
REEVESAGENTS_VERSION,
|
|
23
23
|
ackFlowIncident,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sweepAgentsThrottled,
|
|
37
37
|
sweepOrphanSessions,
|
|
38
38
|
sweepOrphanSessionsThrottled
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-2ITA27G2.js";
|
|
40
40
|
import {
|
|
41
41
|
ALLOWED_KEYS,
|
|
42
42
|
BIN,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
startRunWithHead,
|
|
91
91
|
stopRun,
|
|
92
92
|
withRunsLock
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
94
94
|
import "./chunk-Q3WWQP2R.js";
|
|
95
95
|
|
|
96
96
|
// src/surfaces/mcp/server.ts
|
|
@@ -108,9 +108,12 @@ import { readFileSync as readFileSync2 } from "fs";
|
|
|
108
108
|
import { execFileSync } from "child_process";
|
|
109
109
|
import { readFileSync } from "fs";
|
|
110
110
|
import { basename } from "path";
|
|
111
|
-
var PROVIDER_BY_BIN =
|
|
112
|
-
Object.
|
|
113
|
-
)
|
|
111
|
+
var PROVIDER_BY_BIN = {
|
|
112
|
+
...Object.fromEntries(
|
|
113
|
+
Object.entries(BIN).map(([provider, bin]) => [bin, provider])
|
|
114
|
+
),
|
|
115
|
+
antigravity: "agy"
|
|
116
|
+
};
|
|
114
117
|
function providerFromParent(comm, argv) {
|
|
115
118
|
const byComm = comm ? PROVIDER_BY_BIN[basename(comm)] : void 0;
|
|
116
119
|
if (byComm) return byComm;
|
|
@@ -312,7 +315,7 @@ var TOOLS = [
|
|
|
312
315
|
type: "object",
|
|
313
316
|
properties: {
|
|
314
317
|
run_id: { type: "string", description: "Add to this run. Omit to start a new run." },
|
|
315
|
-
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." },
|
|
316
319
|
model: { type: "string", description: "Model id. Blank keeps the provider default." },
|
|
317
320
|
task: { type: "string", description: "Initial prompt pasted into the agent on startup." },
|
|
318
321
|
nickname: { type: "string" },
|
|
@@ -573,7 +576,7 @@ var TOOLS = [
|
|
|
573
576
|
},
|
|
574
577
|
{
|
|
575
578
|
name: "reap",
|
|
576
|
-
description: 'Sweep for zombie agents and orphan tmux sessions: ends any agent whose tmux window has died or that is older than max_lifetime_ms when that is set above 0 (see get_config), and kills reeves-*/reevesweb_* sessions no live record owns. Returns each reaped agent with the reason (window-gone or lifetime-exceeded) and its age, plus the killed orphan session names. When this state dir owns no runs at all but the tmux server carries
|
|
579
|
+
description: 'Sweep for zombie agents and orphan tmux sessions: ends any agent whose tmux window has died or that is older than max_lifetime_ms when that is set above 0 (see get_config), and kills orphan reeves-*/reevesweb_* sessions no live record owns, but only those tagged by this registry (untagged sessions and those of other registries are never touched). Returns each reaped agent with the reason (window-gone or lifetime-exceeded) and its age, plus the killed orphan session names. When this state dir owns no runs at all but the tmux server still carries sessions tagged for it, the orphan sweep is skipped (orphan_sweep_skipped = "foreign-registry") instead of treating its live fleet as orphans. This runs on its own in the background; call it to force an immediate sweep, e.g. after a crash or before relying on list.',
|
|
577
580
|
inputSchema: { type: "object", properties: {} },
|
|
578
581
|
handler: () => {
|
|
579
582
|
const orphans = sweepOrphanSessions({ ignoreGrace: true });
|
|
@@ -703,7 +706,7 @@ var TOOLS = [
|
|
|
703
706
|
},
|
|
704
707
|
{
|
|
705
708
|
name: "install_skills",
|
|
706
|
-
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.",
|
|
707
710
|
inputSchema: {
|
|
708
711
|
type: "object",
|
|
709
712
|
properties: {
|
|
@@ -1105,4 +1108,4 @@ export {
|
|
|
1105
1108
|
sessionRunIsLive,
|
|
1106
1109
|
startAgentMcpServer
|
|
1107
1110
|
};
|
|
1108
|
-
//# sourceMappingURL=server-
|
|
1111
|
+
//# sourceMappingURL=server-6GR624SS.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
localeCatalog,
|
|
6
6
|
translate,
|
|
7
7
|
translatePhrase
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I6YC3L4L.js";
|
|
9
9
|
import {
|
|
10
10
|
modelValuesForProvider
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W5ACI3G4.js";
|
|
12
12
|
import {
|
|
13
13
|
sweepAttentionThrottled
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GGMLYNNT.js";
|
|
15
15
|
import {
|
|
16
16
|
pauseFlow,
|
|
17
17
|
resumeFlow
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EM5KK2CS.js";
|
|
19
19
|
import {
|
|
20
20
|
REEVESAGENTS_VERSION,
|
|
21
21
|
SETTLED_DISPATCH_EVENTS,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
sweepAgentsThrottled,
|
|
32
32
|
sweepOrphanSessionsThrottled,
|
|
33
33
|
systemdTimerState
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2ITA27G2.js";
|
|
35
35
|
import {
|
|
36
36
|
CONFIG_FIELDS,
|
|
37
37
|
LANGUAGE_OPTIONS,
|
|
@@ -89,8 +89,9 @@ import {
|
|
|
89
89
|
tmuxAvailable,
|
|
90
90
|
tmuxCommand,
|
|
91
91
|
validateNotesText,
|
|
92
|
-
verifyServerLaunch
|
|
93
|
-
|
|
92
|
+
verifyServerLaunch,
|
|
93
|
+
viewerSessionName
|
|
94
|
+
} from "./chunk-3ZEEO4CA.js";
|
|
94
95
|
import "./chunk-Q3WWQP2R.js";
|
|
95
96
|
|
|
96
97
|
// src/surfaces/webui/server.ts
|
|
@@ -657,7 +658,6 @@ function placeholderPage() {
|
|
|
657
658
|
}
|
|
658
659
|
|
|
659
660
|
// src/surfaces/webui/bridge.ts
|
|
660
|
-
import { randomBytes } from "crypto";
|
|
661
661
|
import { URL as URL2 } from "url";
|
|
662
662
|
import { WebSocketServer } from "ws";
|
|
663
663
|
import pty from "@lydell/node-pty";
|
|
@@ -726,7 +726,7 @@ function openBridge(ws, id, bridges) {
|
|
|
726
726
|
ws.close();
|
|
727
727
|
return;
|
|
728
728
|
}
|
|
729
|
-
const viewer =
|
|
729
|
+
const viewer = viewerSessionName();
|
|
730
730
|
try {
|
|
731
731
|
spawnTmux(["new-session", "-d", "-s", viewer, "-t", `=${target.session}`], { stdio: "ignore" });
|
|
732
732
|
spawnTmux(["select-window", "-t", `${viewer}:${target.windowId}`], { stdio: "ignore" });
|
|
@@ -1629,4 +1629,4 @@ export {
|
|
|
1629
1629
|
flowTickPayload,
|
|
1630
1630
|
startWebServer
|
|
1631
1631
|
};
|
|
1632
|
-
//# sourceMappingURL=server-
|
|
1632
|
+
//# sourceMappingURL=server-PHQDEB6Q.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
closeTuiWebServer,
|
|
4
4
|
startWebFromTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XWU6WKZN.js";
|
|
6
6
|
export {
|
|
7
7
|
closeTuiWebServer,
|
|
8
8
|
startWebFromTui
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=tui-launch-
|
|
10
|
+
//# sourceMappingURL=tui-launch-S5OH6OJ5.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reevesagents",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Local tmux-first workspace manager for AI CLI agents",
|
|
5
5
|
"mcpName": "io.github.mertkayacs/reevesagents",
|
|
6
6
|
"type": "module",
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
"strip-ansi": "^7.1.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"@lydell/node-pty": "1.2.0-beta.
|
|
47
|
+
"@lydell/node-pty": "1.2.0-beta.18",
|
|
48
48
|
"@xterm/headless": "6.0.0",
|
|
49
49
|
"ws": "^8.22.0"
|
|
50
50
|
},
|
|
51
51
|
"pnpm": {
|
|
52
52
|
"overrides": {
|
|
53
|
-
"@hono/node-server": "2.1.
|
|
53
|
+
"@hono/node-server": "2.1.11",
|
|
54
54
|
"body-parser": "2.4.0",
|
|
55
55
|
"brace-expansion": "5.0.13",
|
|
56
56
|
"esbuild": "0.28.2",
|
|
57
57
|
"fast-uri": "3.1.9",
|
|
58
|
-
"hono": "4.13.
|
|
58
|
+
"hono": "4.13.21",
|
|
59
59
|
"ip-address": "10.7.6",
|
|
60
|
-
"minimatch": "11.0.
|
|
60
|
+
"minimatch": "11.0.9",
|
|
61
61
|
"qs": "6.16.1",
|
|
62
|
-
"source-map-js": "1.2.
|
|
62
|
+
"source-map-js": "1.2.4"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@eslint/js": "10.0.1",
|
|
67
|
-
"@types/node": "25.9.
|
|
67
|
+
"@types/node": "25.9.12",
|
|
68
68
|
"@types/react": "19.3.0",
|
|
69
69
|
"@types/ws": "8.18.2",
|
|
70
70
|
"@typescript-eslint/parser": "8.72.2",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"ink-testing-library": "4.0.0",
|
|
76
76
|
"tsup": "8.5.1",
|
|
77
77
|
"typescript": "6.0.3",
|
|
78
|
-
"vite": "8.3.
|
|
78
|
+
"vite": "8.3.8",
|
|
79
79
|
"vitest": "5.0.5"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
"qwen",
|
|
102
102
|
"aider",
|
|
103
103
|
"gemini",
|
|
104
|
+
"agy",
|
|
104
105
|
"cline",
|
|
105
106
|
"crush",
|
|
106
107
|
"goose",
|