reevesagents 1.7.0 → 1.7.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/CHANGELOG.md +7 -0
- package/dist/{chunk-XBNUWMMW.js → chunk-4CVXS5HU.js} +2 -2
- package/dist/{chunk-DA4YL4DE.js → chunk-5XIBZCJJ.js} +3 -3
- package/dist/{chunk-IIQU2TK6.js → chunk-64F5HXFT.js} +2 -2
- package/dist/{chunk-STFC6PVR.js → chunk-6YE7JRID.js} +2 -2
- package/dist/{chunk-YDBE6CMQ.js → chunk-LHUVET65.js} +49 -18
- package/dist/{chunk-QWZH352G.js → chunk-X3C4CRMT.js} +3 -3
- package/dist/{chunk-AKAFR25Q.js → chunk-ZK24DAS5.js} +2 -2
- package/dist/cli.js +15 -9
- package/dist/index.js +2 -2
- package/dist/{router-WHLEGC73.js → router-7PMCRHOB.js} +8 -8
- package/dist/{server-AAEBEKUH.js → server-77NGKAHW.js} +4 -4
- package/dist/{server-7UHJTQRL.js → server-AZAISL3I.js} +12 -6
- package/dist/{tui-launch-5VWXIMN6.js → tui-launch-V3ZEPE65.js} +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.1](https://github.com/mertkayacs/reevesagents/compare/v1.7.0...v1.7.1) (2026-07-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **runtime:** verify tmux ids belong to their run session before targeting them ([#18](https://github.com/mertkayacs/reevesagents/issues/18)) ([c6e9e08](https://github.com/mertkayacs/reevesagents/commit/c6e9e089fdea40297870ee75165c58209423a09e)), closes [#17](https://github.com/mertkayacs/reevesagents/issues/17)
|
|
9
|
+
|
|
3
10
|
# [1.7.0](https://github.com/mertkayacs/reevesagents/compare/v1.6.2...v1.7.0) (2026-07-26)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_LANGUAGE
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LHUVET65.js";
|
|
5
5
|
|
|
6
6
|
// src/i18n/locales/en.ts
|
|
7
7
|
var en = {
|
|
@@ -5712,4 +5712,4 @@ export {
|
|
|
5712
5712
|
localeCatalog,
|
|
5713
5713
|
translatePhrase
|
|
5714
5714
|
};
|
|
5715
|
-
//# sourceMappingURL=chunk-
|
|
5715
|
+
//# sourceMappingURL=chunk-4CVXS5HU.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
listAgents,
|
|
7
7
|
loadConfig,
|
|
8
8
|
nowMs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LHUVET65.js";
|
|
10
10
|
|
|
11
11
|
// src/core/reaper.ts
|
|
12
12
|
function sweepAgents(options = {}) {
|
|
@@ -20,7 +20,7 @@ function sweepAgents(options = {}) {
|
|
|
20
20
|
if (agent.ended_at || agent.headless) continue;
|
|
21
21
|
const ageMs = now() - new Date(agent.started_at).getTime();
|
|
22
22
|
let reason = null;
|
|
23
|
-
if (agent.tmux_window_id && !targetExists(agent.tmux_window_id)) {
|
|
23
|
+
if (agent.tmux_window_id && !targetExists(agent.tmux_window_id, agent.tmux_session)) {
|
|
24
24
|
reason = "window-gone";
|
|
25
25
|
} else if (maxLifetimeMs > 0 && ageMs > maxLifetimeMs) {
|
|
26
26
|
reason = "lifetime-exceeded";
|
|
@@ -183,4 +183,4 @@ export {
|
|
|
183
183
|
skillsStatus,
|
|
184
184
|
removeSkills
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=chunk-
|
|
186
|
+
//# sourceMappingURL=chunk-5XIBZCJJ.js.map
|
|
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
|
|
|
28
28
|
const { checkWebExtras, webExtrasMessage } = await import("./extras-25AF6TAR.js");
|
|
29
29
|
const extras = await checkWebExtras();
|
|
30
30
|
if (!extras.ok) throw new Error(webExtrasMessage(extras.missing));
|
|
31
|
-
const { startWebServer } = await import("./server-
|
|
31
|
+
const { startWebServer } = await import("./server-AZAISL3I.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-64F5HXFT.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-LHUVET65.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-6YE7JRID.js.map
|
|
@@ -947,7 +947,7 @@ function findAgent(agentId) {
|
|
|
947
947
|
function defaultTmuxSessionExists(session) {
|
|
948
948
|
if (!session) return false;
|
|
949
949
|
try {
|
|
950
|
-
const result = spawnSync2("tmux", ["has-session", "-t", session], { stdio: "ignore" });
|
|
950
|
+
const result = spawnSync2("tmux", ["has-session", "-t", `=${session}`], { stdio: "ignore" });
|
|
951
951
|
return result.status === 0;
|
|
952
952
|
} catch {
|
|
953
953
|
return false;
|
|
@@ -961,12 +961,12 @@ function defaultTmuxAvailable() {
|
|
|
961
961
|
return false;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
function defaultTmuxTargetExists(target) {
|
|
965
|
-
if (!target) return false;
|
|
964
|
+
function defaultTmuxTargetExists(target, session) {
|
|
965
|
+
if (!target || !session) return false;
|
|
966
966
|
try {
|
|
967
|
-
const
|
|
968
|
-
const result = spawnSync2("tmux",
|
|
969
|
-
return result.status === 0 && result.stdout.trim() === target;
|
|
967
|
+
const args = target.startsWith("%") ? ["list-panes", "-s", "-t", `=${session}`, "-F", "#{pane_id}"] : ["list-windows", "-t", `=${session}`, "-F", "#{window_id}"];
|
|
968
|
+
const result = spawnSync2("tmux", args, { encoding: "utf8" });
|
|
969
|
+
return result.status === 0 && result.stdout.split("\n").some((line) => line.trim() === target);
|
|
970
970
|
} catch {
|
|
971
971
|
return false;
|
|
972
972
|
}
|
|
@@ -976,7 +976,7 @@ function runHasLiveTmuxTarget(run, options = {}) {
|
|
|
976
976
|
const sessionExists = options.sessionExists ?? defaultTmuxSessionExists;
|
|
977
977
|
const agents = listAgents(run.id).filter((agent) => !agent.ended_at);
|
|
978
978
|
const windowedAgents = agents.filter((agent) => !agent.headless && agent.tmux_window_id);
|
|
979
|
-
if (windowedAgents.length > 0) return windowedAgents.some((agent) => targetExists(agent.tmux_window_id));
|
|
979
|
+
if (windowedAgents.length > 0) return windowedAgents.some((agent) => targetExists(agent.tmux_window_id, agent.tmux_session));
|
|
980
980
|
return sessionExists(run.tmux_session);
|
|
981
981
|
}
|
|
982
982
|
function autoCleanupRuns(options = {}) {
|
|
@@ -1803,6 +1803,23 @@ function pasteTextToPane(driver, paneId, text) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
+
var STALE_WINDOW_ERROR = "agent window no longer exists (tmux server may have restarted)";
|
|
1807
|
+
function windowInSession(driver, session, windowId) {
|
|
1808
|
+
if (!session || !windowId) return false;
|
|
1809
|
+
try {
|
|
1810
|
+
return driver.tmux(["list-windows", "-t", `=${session}`, "-F", "#{window_id}"]).split("\n").some((line) => line.trim() === windowId);
|
|
1811
|
+
} catch {
|
|
1812
|
+
return false;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
function paneInSession(driver, session, paneId) {
|
|
1816
|
+
if (!session || !paneId) return false;
|
|
1817
|
+
try {
|
|
1818
|
+
return driver.tmux(["list-panes", "-s", "-t", `=${session}`, "-F", "#{pane_id}"]).split("\n").some((line) => line.trim() === paneId);
|
|
1819
|
+
} catch {
|
|
1820
|
+
return false;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1806
1823
|
function sanitizeName(raw) {
|
|
1807
1824
|
const cleaned = raw.trim().replace(/[^a-zA-Z0-9_-]/g, "-").replace(/-+/g, "-").slice(0, 40);
|
|
1808
1825
|
return cleaned || "run";
|
|
@@ -1902,6 +1919,7 @@ function sendDelayedStartupInput(driver, agent, config, readyDelayMs) {
|
|
|
1902
1919
|
}
|
|
1903
1920
|
function waitForReadyThenSend(previousOutput = "", waitedMs = 0) {
|
|
1904
1921
|
try {
|
|
1922
|
+
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) return;
|
|
1905
1923
|
const output = driver.tmux(["capture-pane", "-p", "-e", "-S", "-80", "-t", agent.tmux_pane_id]);
|
|
1906
1924
|
if (paneLooksReady(output, previousOutput) || waitedMs >= STARTUP_READY_TIMEOUT_MS) {
|
|
1907
1925
|
sendStartupTask();
|
|
@@ -2128,8 +2146,11 @@ function spawnWorker(request, options = {}) {
|
|
|
2128
2146
|
function openReeves(runId, options = {}) {
|
|
2129
2147
|
const driver = options.driver ?? realDriver;
|
|
2130
2148
|
const run = readRun(runId);
|
|
2131
|
-
|
|
2132
|
-
|
|
2149
|
+
const reevesSession = run.reeves_session ?? run.tmux_session;
|
|
2150
|
+
if (!run.reeves_window_id || !windowInSession(driver, reevesSession, run.reeves_window_id)) {
|
|
2151
|
+
throw new Error("Reeves TUI window is unavailable for this run");
|
|
2152
|
+
}
|
|
2153
|
+
const target = `${reevesSession}:${run.reeves_window_id}`;
|
|
2133
2154
|
try {
|
|
2134
2155
|
driver.tmux(["switch-client", "-t", target]);
|
|
2135
2156
|
} catch {
|
|
@@ -2150,6 +2171,7 @@ function openAgent(agentId, options = {}) {
|
|
|
2150
2171
|
const driver = options.driver ?? realDriver;
|
|
2151
2172
|
const agent = findAgent(agentId);
|
|
2152
2173
|
if (agent.headless || !agent.tmux_window_id) throw new Error("This agent is headless - no tmux window exists");
|
|
2174
|
+
if (!windowInSession(driver, agent.tmux_session, agent.tmux_window_id)) throw new Error(STALE_WINDOW_ERROR);
|
|
2153
2175
|
const target = `${agent.tmux_session}:${agent.tmux_window_id}`;
|
|
2154
2176
|
try {
|
|
2155
2177
|
driver.tmux(["switch-client", "-t", target]);
|
|
@@ -2163,6 +2185,7 @@ function peekAgent(agentId, lines = 10, options = {}) {
|
|
|
2163
2185
|
try {
|
|
2164
2186
|
const agent = findAgent(agentId);
|
|
2165
2187
|
if (agent.headless || !agent.tmux_pane_id) return "(headless agent - no output)";
|
|
2188
|
+
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) return "";
|
|
2166
2189
|
let output = driver.tmux(["capture-pane", "-p", "-e", "-S", String(-n), "-t", agent.tmux_pane_id]);
|
|
2167
2190
|
if (!output.trim()) {
|
|
2168
2191
|
try {
|
|
@@ -2179,6 +2202,7 @@ function sendText(agentId, text, options = {}) {
|
|
|
2179
2202
|
const driver = options.driver ?? realDriver;
|
|
2180
2203
|
const agent = findAgent(agentId);
|
|
2181
2204
|
if (agent.headless || !agent.tmux_pane_id) throw new Error("This agent is headless - no tmux pane exists");
|
|
2205
|
+
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) throw new Error(STALE_WINDOW_ERROR);
|
|
2182
2206
|
pasteTextToPane(driver, agent.tmux_pane_id, text);
|
|
2183
2207
|
lastPasteAtByPane.set(agent.tmux_pane_id, Date.now());
|
|
2184
2208
|
if (!agent.ended_at && agent.task_status === "queued") updateAgent(agent.run_id, agent.id, { task_status: "working" });
|
|
@@ -2200,6 +2224,7 @@ function sendKey(agentId, key, options = {}) {
|
|
|
2200
2224
|
const agent = findAgent(agentId);
|
|
2201
2225
|
if (agent.headless || !agent.tmux_pane_id) throw new Error("This agent is headless - no tmux pane exists");
|
|
2202
2226
|
if (!ALLOWED_KEYS.includes(key)) throw new Error(`Unsupported key: ${String(key)}`);
|
|
2227
|
+
if (!paneInSession(driver, agent.tmux_session, agent.tmux_pane_id)) throw new Error(STALE_WINDOW_ERROR);
|
|
2203
2228
|
if (key === "enter") {
|
|
2204
2229
|
const lastPasteAt = lastPasteAtByPane.get(agent.tmux_pane_id) ?? 0;
|
|
2205
2230
|
const remaining = POST_PASTE_ENTER_DELAY_MS - (Date.now() - lastPasteAt);
|
|
@@ -2219,18 +2244,23 @@ function killAgent(agentId, options = {}) {
|
|
|
2219
2244
|
const driver = options.driver ?? realDriver;
|
|
2220
2245
|
const agent = findAgent(agentId);
|
|
2221
2246
|
const run = readRun(agent.run_id);
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2247
|
+
if (windowInSession(driver, agent.tmux_session, agent.tmux_window_id)) {
|
|
2248
|
+
try {
|
|
2249
|
+
driver.tmux(["kill-window", "-t", agent.tmux_window_id]);
|
|
2250
|
+
} catch {
|
|
2251
|
+
}
|
|
2225
2252
|
}
|
|
2226
2253
|
const endedAt = nowIso();
|
|
2227
2254
|
updateAgent(agent.run_id, agent.id, { ended_at: endedAt, task_status: "done" });
|
|
2228
2255
|
const updatedAgent = readAgent(agent.run_id, agent.id);
|
|
2229
2256
|
const endedRun = endRunIfNoLiveAgents(agent.run_id, endedAt);
|
|
2230
2257
|
if (endedRun.status === "ended" || endedRun.ended_at !== null) {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2258
|
+
const runOwnsSession = !!run.reeves_session && run.reeves_session !== run.tmux_session;
|
|
2259
|
+
if (runOwnsSession) {
|
|
2260
|
+
try {
|
|
2261
|
+
driver.tmux(["kill-session", "-t", `=${run.tmux_session}`]);
|
|
2262
|
+
} catch {
|
|
2263
|
+
}
|
|
2234
2264
|
}
|
|
2235
2265
|
archiveAndRemoveRun(run.id, "ended");
|
|
2236
2266
|
}
|
|
@@ -2243,13 +2273,13 @@ function stopRun(runId, options = {}) {
|
|
|
2243
2273
|
const runOwnsSession = !!run.reeves_session && run.reeves_session !== run.tmux_session;
|
|
2244
2274
|
if (runOwnsSession) {
|
|
2245
2275
|
try {
|
|
2246
|
-
driver.tmux(["kill-session", "-t", run.tmux_session]);
|
|
2276
|
+
driver.tmux(["kill-session", "-t", `=${run.tmux_session}`]);
|
|
2247
2277
|
} catch {
|
|
2248
2278
|
}
|
|
2249
2279
|
}
|
|
2250
2280
|
for (const agent of listAgents(run.id)) {
|
|
2251
2281
|
if (agent.ended_at) continue;
|
|
2252
|
-
if (!runOwnsSession && agent.tmux_window_id) {
|
|
2282
|
+
if (!runOwnsSession && windowInSession(driver, agent.tmux_session, agent.tmux_window_id)) {
|
|
2253
2283
|
try {
|
|
2254
2284
|
driver.tmux(["kill-window", "-t", agent.tmux_window_id]);
|
|
2255
2285
|
} catch {
|
|
@@ -2281,6 +2311,7 @@ function openTmuxTarget(id, options = {}) {
|
|
|
2281
2311
|
} catch {
|
|
2282
2312
|
throw new Error(`no run or agent found: ${id}`);
|
|
2283
2313
|
}
|
|
2314
|
+
if (!windowInSession(driver, session, window)) throw new Error(STALE_WINDOW_ERROR);
|
|
2284
2315
|
}
|
|
2285
2316
|
const target = `${session}:${window}`;
|
|
2286
2317
|
try {
|
|
@@ -2377,4 +2408,4 @@ export {
|
|
|
2377
2408
|
stopRun,
|
|
2378
2409
|
openTmuxTarget
|
|
2379
2410
|
};
|
|
2380
|
-
//# sourceMappingURL=chunk-
|
|
2411
|
+
//# sourceMappingURL=chunk-LHUVET65.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5XIBZCJJ.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-LHUVET65.js";
|
|
15
15
|
|
|
16
16
|
// src/core/onboard.ts
|
|
17
17
|
function buildOnboardingState() {
|
|
@@ -67,4 +67,4 @@ export {
|
|
|
67
67
|
readTuiOpenToken,
|
|
68
68
|
writeTuiOpenToken
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-X3C4CRMT.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
redactSecrets,
|
|
7
7
|
runDir,
|
|
8
8
|
withRunsLock
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LHUVET65.js";
|
|
10
10
|
|
|
11
11
|
// src/core/approvals.ts
|
|
12
12
|
import {
|
|
@@ -168,4 +168,4 @@ export {
|
|
|
168
168
|
resolveRunApproval,
|
|
169
169
|
REEVESAGENTS_VERSION
|
|
170
170
|
};
|
|
171
|
-
//# sourceMappingURL=chunk-
|
|
171
|
+
//# sourceMappingURL=chunk-ZK24DAS5.js.map
|
package/dist/cli.js
CHANGED
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
runOnboarding,
|
|
5
5
|
suggestedAgentPrompt,
|
|
6
6
|
writeTuiOpenToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X3C4CRMT.js";
|
|
8
8
|
import {
|
|
9
9
|
installSkills,
|
|
10
10
|
removeSkills,
|
|
11
11
|
skillsStatus,
|
|
12
12
|
sweepAgents
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5XIBZCJJ.js";
|
|
14
14
|
import {
|
|
15
15
|
MODEL_CATALOG
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6YE7JRID.js";
|
|
17
17
|
import {
|
|
18
18
|
REEVESAGENTS_VERSION,
|
|
19
19
|
listRunApprovals,
|
|
20
20
|
resolveRunApproval
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZK24DAS5.js";
|
|
22
22
|
import {
|
|
23
23
|
ALLOWED_KEYS,
|
|
24
24
|
CONFIG_FIELDS,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
startRunFromPreset,
|
|
61
61
|
stopRun,
|
|
62
62
|
verifyServerLaunch
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LHUVET65.js";
|
|
64
64
|
import "./chunk-D24DQQ6V.js";
|
|
65
65
|
|
|
66
66
|
// src/cli.ts
|
|
@@ -203,6 +203,12 @@ function openTuiSession(command) {
|
|
|
203
203
|
}
|
|
204
204
|
function openTarget(id) {
|
|
205
205
|
const target = resolveOpenTarget(id);
|
|
206
|
+
if (!tmuxSessionExists(target.session)) {
|
|
207
|
+
throw new Error(`tmux session not found: ${target.session}`);
|
|
208
|
+
}
|
|
209
|
+
if (target.windowId.startsWith("@") && !tmuxWindowIds(target.session).includes(target.windowId)) {
|
|
210
|
+
throw new Error("agent window no longer exists (tmux server may have restarted)");
|
|
211
|
+
}
|
|
206
212
|
const tmuxTarget = `${target.session}:${target.windowId}`;
|
|
207
213
|
if (process.env.TMUX) {
|
|
208
214
|
execFileSync("tmux", ["switch-client", "-t", tmuxTarget], { stdio: "ignore" });
|
|
@@ -841,7 +847,7 @@ program.command("web").description("start the on-demand loopback web UI for agen
|
|
|
841
847
|
});
|
|
842
848
|
program.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
|
|
843
849
|
try {
|
|
844
|
-
const { startAgentMcpServer } = await import("./server-
|
|
850
|
+
const { startAgentMcpServer } = await import("./server-77NGKAHW.js");
|
|
845
851
|
await startAgentMcpServer();
|
|
846
852
|
} catch (err) {
|
|
847
853
|
console.error(err instanceof Error ? err.message : String(err));
|
|
@@ -855,7 +861,7 @@ async function runWeb(opts) {
|
|
|
855
861
|
console.error(webExtrasMessage(extras.missing));
|
|
856
862
|
process.exit(1);
|
|
857
863
|
}
|
|
858
|
-
const { startWebServer } = await import("./server-
|
|
864
|
+
const { startWebServer } = await import("./server-AZAISL3I.js");
|
|
859
865
|
const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
|
|
860
866
|
const handle = await startWebServer({
|
|
861
867
|
port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
|
|
@@ -874,12 +880,12 @@ async function renderTui() {
|
|
|
874
880
|
const [{ default: React }, { render }, { Router }] = await Promise.all([
|
|
875
881
|
import("react"),
|
|
876
882
|
import("ink"),
|
|
877
|
-
import("./router-
|
|
883
|
+
import("./router-7PMCRHOB.js")
|
|
878
884
|
]);
|
|
879
885
|
try {
|
|
880
886
|
await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
|
|
881
887
|
} finally {
|
|
882
|
-
const { closeTuiWebServer } = await import("./tui-launch-
|
|
888
|
+
const { closeTuiWebServer } = await import("./tui-launch-V3ZEPE65.js");
|
|
883
889
|
await closeTuiWebServer();
|
|
884
890
|
}
|
|
885
891
|
process.exit(0);
|
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-6YE7JRID.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-LHUVET65.js";
|
|
43
43
|
import "./chunk-D24DQQ6V.js";
|
|
44
44
|
export {
|
|
45
45
|
BIN,
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
buildOnboardingState,
|
|
4
4
|
readTuiOpenToken
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X3C4CRMT.js";
|
|
6
6
|
import {
|
|
7
7
|
sweepAgentsThrottled
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5XIBZCJJ.js";
|
|
9
9
|
import {
|
|
10
10
|
translate,
|
|
11
11
|
translatePhrase
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4CVXS5HU.js";
|
|
13
13
|
import {
|
|
14
14
|
modelDisplayName,
|
|
15
15
|
modelValuesForProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6YE7JRID.js";
|
|
17
17
|
import {
|
|
18
18
|
REEVESAGENTS_VERSION,
|
|
19
19
|
listRunApprovals,
|
|
20
20
|
resolveRunApproval
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZK24DAS5.js";
|
|
22
22
|
import {
|
|
23
23
|
CONFIG_FIELDS,
|
|
24
24
|
DEFAULT_LANGUAGE,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
startRunFromPreset,
|
|
74
74
|
stateRoot,
|
|
75
75
|
stopRun
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-LHUVET65.js";
|
|
77
77
|
import "./chunk-D24DQQ6V.js";
|
|
78
78
|
import {
|
|
79
79
|
startWebFromTui
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-64F5HXFT.js";
|
|
81
81
|
|
|
82
82
|
// src/tui/router.tsx
|
|
83
83
|
import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
|
|
@@ -6572,4 +6572,4 @@ export {
|
|
|
6572
6572
|
nextHistoryOnReset,
|
|
6573
6573
|
useRouter
|
|
6574
6574
|
};
|
|
6575
|
-
//# sourceMappingURL=router-
|
|
6575
|
+
//# sourceMappingURL=router-7PMCRHOB.js.map
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
skillsStatus,
|
|
5
5
|
sweepAgents,
|
|
6
6
|
sweepAgentsThrottled
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5XIBZCJJ.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-ZK24DAS5.js";
|
|
15
15
|
import {
|
|
16
16
|
ALLOWED_KEYS,
|
|
17
17
|
BIN,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
startRunFromPreset,
|
|
50
50
|
startRunWithHead,
|
|
51
51
|
stopRun
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-LHUVET65.js";
|
|
53
53
|
import "./chunk-D24DQQ6V.js";
|
|
54
54
|
|
|
55
55
|
// src/mcp/server.ts
|
|
@@ -711,4 +711,4 @@ export {
|
|
|
711
711
|
sessionRunIsLive,
|
|
712
712
|
startAgentMcpServer
|
|
713
713
|
};
|
|
714
|
-
//# sourceMappingURL=server-
|
|
714
|
+
//# sourceMappingURL=server-77NGKAHW.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
localeCatalog,
|
|
4
4
|
translatePhrase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4CVXS5HU.js";
|
|
6
6
|
import {
|
|
7
7
|
modelValuesForProvider
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6YE7JRID.js";
|
|
9
9
|
import {
|
|
10
10
|
REEVESAGENTS_VERSION,
|
|
11
11
|
listRunApprovals,
|
|
12
12
|
resolveRunApproval
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZK24DAS5.js";
|
|
14
14
|
import {
|
|
15
15
|
CONFIG_FIELDS,
|
|
16
16
|
LANGUAGE_OPTIONS,
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
autoCleanupRuns,
|
|
22
22
|
coerceExtraArgs,
|
|
23
23
|
computeRunStatus,
|
|
24
|
+
defaultTmuxTargetExists,
|
|
24
25
|
deleteAgent,
|
|
25
26
|
deletePreset,
|
|
26
27
|
deleteRunHistory,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
startRunFromPreset,
|
|
51
52
|
stopRun,
|
|
52
53
|
verifyServerLaunch
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-LHUVET65.js";
|
|
54
55
|
import "./chunk-D24DQQ6V.js";
|
|
55
56
|
|
|
56
57
|
// src/web/server.ts
|
|
@@ -359,9 +360,14 @@ function openBridge(ws, id, bridges) {
|
|
|
359
360
|
ws.close();
|
|
360
361
|
return;
|
|
361
362
|
}
|
|
363
|
+
if (!defaultTmuxTargetExists(target.windowId, target.session)) {
|
|
364
|
+
send(ws, { t: "e", m: "agent window no longer exists (tmux server may have restarted)" });
|
|
365
|
+
ws.close();
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
362
368
|
const viewer = `reevesweb_${randomBytes(4).toString("hex")}`;
|
|
363
369
|
try {
|
|
364
|
-
execFileSync("tmux", ["new-session", "-d", "-s", viewer, "-t", target.session], { stdio: "ignore" });
|
|
370
|
+
execFileSync("tmux", ["new-session", "-d", "-s", viewer, "-t", `=${target.session}`], { stdio: "ignore" });
|
|
365
371
|
execFileSync("tmux", ["select-window", "-t", `${viewer}:${target.windowId}`], { stdio: "ignore" });
|
|
366
372
|
} catch {
|
|
367
373
|
try {
|
|
@@ -1016,4 +1022,4 @@ async function startWebServer(options = {}) {
|
|
|
1016
1022
|
export {
|
|
1017
1023
|
startWebServer
|
|
1018
1024
|
};
|
|
1019
|
-
//# sourceMappingURL=server-
|
|
1025
|
+
//# sourceMappingURL=server-AZAISL3I.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
closeTuiWebServer,
|
|
4
4
|
startWebFromTui
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-64F5HXFT.js";
|
|
6
6
|
export {
|
|
7
7
|
closeTuiWebServer,
|
|
8
8
|
startWebFromTui
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=tui-launch-
|
|
10
|
+
//# sourceMappingURL=tui-launch-V3ZEPE65.js.map
|