reevesagents 2.4.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/CHANGELOG.md +8 -0
- package/dist/{chunk-I3BSRNKV.js → chunk-2ITA27G2.js} +8 -6
- package/dist/{chunk-FIMZIW2C.js → chunk-3ZEEO4CA.js} +26 -7
- package/dist/{chunk-QGPSMVWO.js → chunk-BAB3TFZZ.js} +3 -3
- package/dist/{chunk-L3ZZEIJA.js → chunk-EM5KK2CS.js} +3 -3
- package/dist/{chunk-57DS2BWS.js → chunk-GGMLYNNT.js} +2 -2
- package/dist/{chunk-E36TJDAX.js → chunk-I6YC3L4L.js} +2 -2
- package/dist/{chunk-QXGJINKB.js → chunk-US2VYUIP.js} +2 -2
- package/dist/{chunk-MZVOPJIX.js → chunk-W5ACI3G4.js} +2 -2
- package/dist/{chunk-BN4ATJYV.js → chunk-XWU6WKZN.js} +2 -2
- package/dist/cli.js +12 -12
- package/dist/index.js +2 -2
- package/dist/{router-QTTTC7MF.js → router-ION3TWNV.js} +8 -8
- package/dist/{server-5IJOA2YM.js → server-6GR624SS.js} +7 -7
- package/dist/{server-KAQMJCXB.js → server-PHQDEB6Q.js} +10 -10
- package/dist/{tui-launch-LY6EIRN2.js → tui-launch-S5OH6OJ5.js} +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
11
|
## [2.4.0](https://github.com/mertkayacs/reevesagents/compare/v2.3.0...v2.4.0) (2026-11-26)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -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 = [
|
|
@@ -1387,7 +1393,7 @@ ${inspected.stderr ?? ""}`;
|
|
|
1387
1393
|
}
|
|
1388
1394
|
|
|
1389
1395
|
// src/core/plan.ts
|
|
1390
|
-
import { createHash } from "crypto";
|
|
1396
|
+
import { createHash as createHash2 } from "crypto";
|
|
1391
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";
|
|
1392
1398
|
import { dirname as dirname5, join as join8, relative as relative2 } from "path";
|
|
1393
1399
|
|
|
@@ -3798,6 +3804,7 @@ function logDiagnostic(event, detail = {}) {
|
|
|
3798
3804
|
import { execFileSync as execFileSync2, spawnSync as spawnSync3 } from "child_process";
|
|
3799
3805
|
import { createRequire } from "module";
|
|
3800
3806
|
import { existsSync as existsSync4 } from "fs";
|
|
3807
|
+
import { randomBytes as randomBytes2 } from "crypto";
|
|
3801
3808
|
import { dirname as dirname3, join as join6 } from "path";
|
|
3802
3809
|
import { fileURLToPath, URL } from "url";
|
|
3803
3810
|
function winmuxEntry(platform = process.platform) {
|
|
@@ -3953,7 +3960,16 @@ function tryAllWindowIds() {
|
|
|
3953
3960
|
}
|
|
3954
3961
|
}
|
|
3955
3962
|
var RUN_SESSION_PATTERN = /^reeves-.+-[0-9a-f]{8}$/;
|
|
3956
|
-
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
|
+
}
|
|
3957
3973
|
function sessionInGroup(info, runSession) {
|
|
3958
3974
|
return info.group === runSession || info.groupList.includes(runSession);
|
|
3959
3975
|
}
|
|
@@ -4579,11 +4595,11 @@ function normalizeDocument(text2) {
|
|
|
4579
4595
|
return text2.replace(/\r\n/g, "\n").replace(/\r/g, "\n").split("\n").map((line) => line.replace(/[ \t]+$/, "")).join("\n").replace(/\n+$/, "");
|
|
4580
4596
|
}
|
|
4581
4597
|
function hashDocument(text2) {
|
|
4582
|
-
return
|
|
4598
|
+
return createHash2("sha256").update(normalizeDocument(text2), "utf8").digest("hex");
|
|
4583
4599
|
}
|
|
4584
4600
|
function deriveId(title) {
|
|
4585
4601
|
const normalised = title.replace(/\s+/g, " ").trim().toLowerCase();
|
|
4586
|
-
return `auto:${
|
|
4602
|
+
return `auto:${createHash2("sha256").update(normalised, "utf8").digest("hex").slice(0, 8)}`;
|
|
4587
4603
|
}
|
|
4588
4604
|
function parsePlanDocument(text2) {
|
|
4589
4605
|
const normalised = normalizeDocument(text2);
|
|
@@ -6092,7 +6108,7 @@ function tmuxWindowName(provider, nickname) {
|
|
|
6092
6108
|
return sanitizeName(nickname || provider).slice(0, 64);
|
|
6093
6109
|
}
|
|
6094
6110
|
function tmuxRunSessionName(runId, rawName) {
|
|
6095
|
-
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);
|
|
6096
6112
|
}
|
|
6097
6113
|
function childProcessOutput(err) {
|
|
6098
6114
|
if (typeof err !== "object" || err === null) return "";
|
|
@@ -7595,6 +7611,7 @@ function runDoctor() {
|
|
|
7595
7611
|
|
|
7596
7612
|
export {
|
|
7597
7613
|
stateRoot,
|
|
7614
|
+
registryTag,
|
|
7598
7615
|
redactSecrets,
|
|
7599
7616
|
shortHomePath,
|
|
7600
7617
|
displayPath,
|
|
@@ -7630,6 +7647,8 @@ export {
|
|
|
7630
7647
|
tryAllWindowIds,
|
|
7631
7648
|
RUN_SESSION_PATTERN,
|
|
7632
7649
|
VIEWER_SESSION_PATTERN,
|
|
7650
|
+
viewerSessionName,
|
|
7651
|
+
sessionRegistryTag,
|
|
7633
7652
|
sessionInGroup,
|
|
7634
7653
|
windowIds,
|
|
7635
7654
|
windowByName,
|
|
@@ -7786,4 +7805,4 @@ export {
|
|
|
7786
7805
|
checkTmux,
|
|
7787
7806
|
runDoctor
|
|
7788
7807
|
};
|
|
7789
|
-
//# 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
|
|
@@ -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
|
|
@@ -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,10 +4,10 @@ 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,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
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
|
|
@@ -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");
|
|
@@ -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.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-
|
|
5
|
+
} from "./chunk-US2VYUIP.js";
|
|
6
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";
|
|
@@ -6736,4 +6736,4 @@ export {
|
|
|
6736
6736
|
nextHistoryOnReset,
|
|
6737
6737
|
useRouter
|
|
6738
6738
|
};
|
|
6739
|
-
//# 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
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
|
|
@@ -576,7 +576,7 @@ var TOOLS = [
|
|
|
576
576
|
},
|
|
577
577
|
{
|
|
578
578
|
name: "reap",
|
|
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 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.',
|
|
580
580
|
inputSchema: { type: "object", properties: {} },
|
|
581
581
|
handler: () => {
|
|
582
582
|
const orphans = sweepOrphanSessions({ ignoreGrace: true });
|
|
@@ -1108,4 +1108,4 @@ export {
|
|
|
1108
1108
|
sessionRunIsLive,
|
|
1109
1109
|
startAgentMcpServer
|
|
1110
1110
|
};
|
|
1111
|
-
//# 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.4.
|
|
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,7 +44,7 @@
|
|
|
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
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
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
60
|
"minimatch": "11.0.9",
|
|
61
61
|
"qs": "6.16.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
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",
|