reevesagents 1.7.2 → 1.7.4
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/CHANGELOG.md +14 -0
- package/README.md +191 -352
- package/dist/{chunk-FL3LI2MU.js → chunk-CFDTC6GY.js} +8 -8
- package/dist/{chunk-QMRLJAEV.js → chunk-HIJYVPYH.js} +2 -2
- package/dist/{chunk-EA6OGFOE.js → chunk-LXZNX6EJ.js} +5 -5
- package/dist/{chunk-CE6YASBF.js → chunk-PDJ2CPVO.js} +1342 -1381
- package/dist/{chunk-D24DQQ6V.js → chunk-Q3WWQP2R.js} +2 -2
- package/dist/{chunk-SFF7SYI6.js → chunk-TIDTHK3L.js} +16 -16
- package/dist/{chunk-NKT6GFCD.js → chunk-UH6K25MG.js} +16 -16
- package/dist/{chunk-TUYP7APK.js → chunk-X6EBVSC7.js} +25 -25
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +685 -585
- package/dist/{extras-25AF6TAR.js → extras-MWGWGEPB.js} +2 -2
- package/dist/index.d.ts +25 -23
- package/dist/index.js +3 -3
- package/dist/{open-browser-DRSIJQ37.js → open-browser-IQ5MTCWZ.js} +2 -2
- package/dist/{router-Q2JZ7NEX.js → router-KMZQ52T2.js} +164 -97
- package/dist/{server-KTPEQQRJ.js → server-NREXCROR.js} +8 -9
- package/dist/{server-VR6AHRBE.js → server-Y2IEANCZ.js} +18 -24
- package/dist/{tui-launch-JTZU3RFS.js → tui-launch-ESUQ7SYU.js} +2 -2
- package/package.json +17 -11
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
skillsStatus,
|
|
5
5
|
sweepAgents,
|
|
6
6
|
sweepAgentsThrottled
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CFDTC6GY.js";
|
|
8
8
|
import {
|
|
9
9
|
REEVESAGENTS_VERSION,
|
|
10
10
|
createRunApproval,
|
|
11
11
|
listRunApprovals,
|
|
12
12
|
readRunApproval,
|
|
13
13
|
resolveRunApproval
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UH6K25MG.js";
|
|
15
15
|
import {
|
|
16
16
|
ALLOWED_KEYS,
|
|
17
17
|
BIN,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
startRunFromPreset,
|
|
50
50
|
startRunWithHead,
|
|
51
51
|
stopRun
|
|
52
|
-
} from "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-PDJ2CPVO.js";
|
|
53
|
+
import "./chunk-Q3WWQP2R.js";
|
|
54
54
|
|
|
55
|
-
// src/mcp/server.ts
|
|
55
|
+
// src/surfaces/mcp/server.ts
|
|
56
56
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
57
57
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
58
58
|
import {
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
ReadResourceRequestSchema
|
|
63
63
|
} from "@modelcontextprotocol/sdk/types.js";
|
|
64
64
|
|
|
65
|
-
// src/mcp/host.ts
|
|
65
|
+
// src/surfaces/mcp/host.ts
|
|
66
66
|
import { execFileSync } from "child_process";
|
|
67
67
|
import { readFileSync } from "fs";
|
|
68
68
|
import { basename } from "path";
|
|
@@ -105,7 +105,7 @@ function detectHostProvider() {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// src/mcp/server.ts
|
|
108
|
+
// src/surfaces/mcp/server.ts
|
|
109
109
|
var hostProvider = detectHostProvider();
|
|
110
110
|
var sessionRunId = null;
|
|
111
111
|
function ok(data) {
|
|
@@ -701,7 +701,6 @@ async function startAgentMcpServer() {
|
|
|
701
701
|
await server.connect(transport);
|
|
702
702
|
}
|
|
703
703
|
export {
|
|
704
|
-
GUIDE_TEXT,
|
|
705
704
|
MCP_INSTRUCTIONS,
|
|
706
705
|
MCP_TOOLS,
|
|
707
706
|
buildProviderCatalog,
|
|
@@ -711,4 +710,4 @@ export {
|
|
|
711
710
|
sessionRunIsLive,
|
|
712
711
|
startAgentMcpServer
|
|
713
712
|
};
|
|
714
|
-
//# sourceMappingURL=server-
|
|
713
|
+
//# sourceMappingURL=server-NREXCROR.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
localeCatalog,
|
|
4
4
|
translatePhrase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TIDTHK3L.js";
|
|
6
6
|
import {
|
|
7
7
|
modelValuesForProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HIJYVPYH.js";
|
|
9
9
|
import {
|
|
10
10
|
REEVESAGENTS_VERSION,
|
|
11
11
|
listRunApprovals,
|
|
12
12
|
resolveRunApproval
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UH6K25MG.js";
|
|
14
14
|
import {
|
|
15
15
|
CONFIG_FIELDS,
|
|
16
16
|
LANGUAGE_OPTIONS,
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
autoCleanupRuns,
|
|
22
22
|
coerceExtraArgs,
|
|
23
23
|
computeRunStatus,
|
|
24
|
-
defaultTmuxTargetExists,
|
|
25
24
|
deleteAgent,
|
|
26
25
|
deletePreset,
|
|
27
26
|
deleteRunHistory,
|
|
@@ -50,17 +49,19 @@ import {
|
|
|
50
49
|
startRun,
|
|
51
50
|
startRunFromPreset,
|
|
52
51
|
stopRun,
|
|
52
|
+
targetExists,
|
|
53
|
+
tmuxAvailable,
|
|
53
54
|
verifyServerLaunch
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-PDJ2CPVO.js";
|
|
56
|
+
import "./chunk-Q3WWQP2R.js";
|
|
56
57
|
|
|
57
|
-
// src/
|
|
58
|
+
// src/surfaces/webui/server.ts
|
|
58
59
|
import { createServer } from "http";
|
|
59
60
|
import { readFileSync } from "fs";
|
|
60
61
|
import { join, dirname } from "path";
|
|
61
62
|
import { fileURLToPath } from "url";
|
|
62
63
|
|
|
63
|
-
// src/
|
|
64
|
+
// src/surfaces/webui/guards.ts
|
|
64
65
|
import { URL } from "url";
|
|
65
66
|
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1"]);
|
|
66
67
|
function stripBrackets(host) {
|
|
@@ -96,7 +97,7 @@ function isAllowedOrigin(originHeader, port) {
|
|
|
96
97
|
return url.port === String(port);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
|
-
// src/
|
|
100
|
+
// src/surfaces/webui/state.ts
|
|
100
101
|
function monogram(nickname, provider) {
|
|
101
102
|
const base = (nickname || provider).trim();
|
|
102
103
|
const alnum = base.replace(/[^A-Za-z0-9]/g, "");
|
|
@@ -189,7 +190,7 @@ function listWebProviders() {
|
|
|
189
190
|
}));
|
|
190
191
|
}
|
|
191
192
|
|
|
192
|
-
// src/
|
|
193
|
+
// src/surfaces/webui/client-shell.ts
|
|
193
194
|
var PALETTE = {
|
|
194
195
|
bg: "#15191f",
|
|
195
196
|
panel: "#1b2129",
|
|
@@ -287,8 +288,8 @@ function placeholderPage() {
|
|
|
287
288
|
</html>`;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
|
-
// src/
|
|
291
|
-
import { execFileSync
|
|
291
|
+
// src/surfaces/webui/bridge.ts
|
|
292
|
+
import { execFileSync } from "child_process";
|
|
292
293
|
import { randomBytes } from "crypto";
|
|
293
294
|
import { URL as URL2 } from "url";
|
|
294
295
|
import { WebSocketServer } from "ws";
|
|
@@ -322,13 +323,6 @@ function parseClientFrame(raw) {
|
|
|
322
323
|
}
|
|
323
324
|
return null;
|
|
324
325
|
}
|
|
325
|
-
function tmuxAvailable() {
|
|
326
|
-
try {
|
|
327
|
-
return spawnSync("tmux", ["-V"], { stdio: "ignore" }).status === 0;
|
|
328
|
-
} catch {
|
|
329
|
-
return false;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
326
|
function send(ws, frame) {
|
|
333
327
|
if (ws.readyState === ws.OPEN) ws.send(JSON.stringify(frame));
|
|
334
328
|
}
|
|
@@ -360,7 +354,7 @@ function openBridge(ws, id, bridges) {
|
|
|
360
354
|
ws.close();
|
|
361
355
|
return;
|
|
362
356
|
}
|
|
363
|
-
if (!
|
|
357
|
+
if (!targetExists(target.windowId, target.session)) {
|
|
364
358
|
send(ws, { t: "e", m: "agent window no longer exists (tmux server may have restarted)" });
|
|
365
359
|
ws.close();
|
|
366
360
|
return;
|
|
@@ -447,7 +441,7 @@ function attachTerminalBridge(server, getPort) {
|
|
|
447
441
|
};
|
|
448
442
|
}
|
|
449
443
|
|
|
450
|
-
// src/
|
|
444
|
+
// src/surfaces/webui/server.ts
|
|
451
445
|
var HOST = "127.0.0.1";
|
|
452
446
|
var DEFAULT_PORT = 8080;
|
|
453
447
|
var DEFAULT_RANGE = 10;
|
|
@@ -990,7 +984,7 @@ async function startWebServer(options = {}) {
|
|
|
990
984
|
const server = createServer((req, res) => {
|
|
991
985
|
handleRequest(req, res, ctx).catch(() => {
|
|
992
986
|
try {
|
|
993
|
-
send2(res, 500, "
|
|
987
|
+
send2(res, 500, "server error", "text/plain; charset=utf-8");
|
|
994
988
|
} catch {
|
|
995
989
|
}
|
|
996
990
|
});
|
|
@@ -1003,7 +997,7 @@ async function startWebServer(options = {}) {
|
|
|
1003
997
|
boundPort = await listenWithFallback(server, basePort, range);
|
|
1004
998
|
const url = `http://${HOST}:${boundPort}`;
|
|
1005
999
|
if (options.open !== false) {
|
|
1006
|
-
const { openBrowser } = await import("./open-browser-
|
|
1000
|
+
const { openBrowser } = await import("./open-browser-IQ5MTCWZ.js");
|
|
1007
1001
|
openBrowser(url);
|
|
1008
1002
|
}
|
|
1009
1003
|
return {
|
|
@@ -1022,4 +1016,4 @@ async function startWebServer(options = {}) {
|
|
|
1022
1016
|
export {
|
|
1023
1017
|
startWebServer
|
|
1024
1018
|
};
|
|
1025
|
-
//# sourceMappingURL=server-
|
|
1019
|
+
//# sourceMappingURL=server-Y2IEANCZ.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
closeTuiWebServer,
|
|
4
4
|
startWebFromTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LXZNX6EJ.js";
|
|
6
6
|
export {
|
|
7
7
|
closeTuiWebServer,
|
|
8
8
|
startWebFromTui
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=tui-launch-
|
|
10
|
+
//# sourceMappingURL=tui-launch-ESUQ7SYU.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reevesagents",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Local tmux-first workspace manager for AI CLI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.34.1",
|
|
@@ -32,12 +32,10 @@
|
|
|
32
32
|
"render-mascot": "node scripts/render-mascot.mjs",
|
|
33
33
|
"verify": "pnpm typecheck && pnpm lint && pnpm test && pnpm build && pnpm smoke:cli && pnpm check:package",
|
|
34
34
|
"verify:release": "pnpm verify && pnpm check:install-matrix",
|
|
35
|
-
"
|
|
36
|
-
"postinstall": "node -e \"try{process.env.npm_config_global==='true'&&process.stdout.isTTY&&!process.env.CI&&process.stdout.write('\\nReevesAgents installed. Run: reevesagents attach to connect your AI CLIs, then restart them.\\n\\n')}catch(e){}\""
|
|
35
|
+
"postinstall": "node -e \"try{process.env.npm_config_global==='true'&&process.stdout.isTTY&&!process.env.CI&&process.stdout.write('\\nReevesAgents installed. Run: reevesagents attach to connect your AI CLIs, then restart them.\\n\\n')}catch(e){}\""
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
40
|
-
"chalk": "^5.6.2",
|
|
38
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
41
39
|
"commander": "^14.0.3",
|
|
42
40
|
"ink": "^7.0.2",
|
|
43
41
|
"react": "^19.2.6",
|
|
@@ -48,21 +46,29 @@
|
|
|
48
46
|
"@lydell/node-pty": "1.2.0-beta.12",
|
|
49
47
|
"ws": "^8.21.0"
|
|
50
48
|
},
|
|
49
|
+
"pnpm": {
|
|
50
|
+
"overrides": {
|
|
51
|
+
"@hono/node-server": "2.0.12",
|
|
52
|
+
"body-parser": "2.3.0",
|
|
53
|
+
"brace-expansion": "5.0.9",
|
|
54
|
+
"esbuild": "0.28.1",
|
|
55
|
+
"fast-uri": "3.1.4",
|
|
56
|
+
"hono": "4.12.33"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
51
59
|
"devDependencies": {
|
|
52
60
|
"@eslint/js": "^10.0.1",
|
|
53
|
-
"@release-it/conventional-changelog": "^11.0.1",
|
|
54
61
|
"@types/node": "^25.7.0",
|
|
55
|
-
"@types/react": "
|
|
62
|
+
"@types/react": "19.2.17",
|
|
56
63
|
"@types/ws": "^8.18.1",
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
64
|
+
"@typescript-eslint/parser": "^8.65.0",
|
|
58
65
|
"@xterm/addon-fit": "^0.11.0",
|
|
59
66
|
"@xterm/xterm": "^6.0.0",
|
|
60
|
-
"eslint": "10.
|
|
67
|
+
"eslint": "10.8.0",
|
|
61
68
|
"ink-testing-library": "^4.0.0",
|
|
62
|
-
"release-it": "^20.2.0",
|
|
63
69
|
"tsup": "^8.5.1",
|
|
64
70
|
"typescript": "^6.0.3",
|
|
65
|
-
"vite": "^8.0
|
|
71
|
+
"vite": "^8.1.0",
|
|
66
72
|
"vitest": "^4.1.6"
|
|
67
73
|
},
|
|
68
74
|
"engines": {
|