reevesagents 1.7.2 → 1.7.3
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-EA6OGFOE.js → chunk-7K3XRI7L.js} +2 -2
- package/dist/{chunk-NKT6GFCD.js → chunk-EXUYSBTC.js} +16 -16
- package/dist/{chunk-QMRLJAEV.js → chunk-GNS5ULTD.js} +2 -2
- package/dist/{chunk-CE6YASBF.js → chunk-GSWMKYSU.js} +1341 -1380
- package/dist/{chunk-FL3LI2MU.js → chunk-JX6SHZKB.js} +8 -8
- package/dist/{chunk-TUYP7APK.js → chunk-MKNSEZTG.js} +25 -25
- package/dist/{chunk-SFF7SYI6.js → chunk-OVNVE2TJ.js} +2 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +683 -583
- package/dist/index.d.ts +25 -23
- package/dist/index.js +2 -2
- package/dist/{router-Q2JZ7NEX.js → router-RZANKWMI.js} +97 -30
- package/dist/{server-KTPEQQRJ.js → server-R2A7E5WC.js} +4 -4
- package/dist/{server-VR6AHRBE.js → server-WLXS227K.js} +9 -15
- package/dist/{tui-launch-JTZU3RFS.js → tui-launch-6V756ZBI.js} +2 -2
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
defaultTmuxAvailable,
|
|
4
|
-
defaultTmuxTargetExists,
|
|
5
3
|
killAgent,
|
|
6
4
|
listAgents,
|
|
7
5
|
loadConfig,
|
|
8
|
-
nowMs
|
|
9
|
-
|
|
6
|
+
nowMs,
|
|
7
|
+
targetExists,
|
|
8
|
+
tmuxAvailable
|
|
9
|
+
} from "./chunk-GSWMKYSU.js";
|
|
10
10
|
|
|
11
11
|
// src/core/reaper.ts
|
|
12
12
|
function sweepAgents(options = {}) {
|
|
13
|
-
const haveTmux = options.targetExists ? true : (options.tmuxAvailable ??
|
|
13
|
+
const haveTmux = options.targetExists ? true : (options.tmuxAvailable ?? tmuxAvailable)();
|
|
14
14
|
if (!haveTmux) return { reaped: [] };
|
|
15
|
-
const
|
|
15
|
+
const targetExists2 = options.targetExists ?? targetExists;
|
|
16
16
|
const now = options.now ?? nowMs;
|
|
17
17
|
const maxLifetimeMs = options.maxLifetimeMs ?? loadConfig().global.max_lifetime_ms;
|
|
18
18
|
const reaped = [];
|
|
@@ -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 && !
|
|
23
|
+
if (agent.tmux_window_id && !targetExists2(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-JX6SHZKB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JX6SHZKB.js";
|
|
5
5
|
import {
|
|
6
6
|
attachAll,
|
|
7
7
|
checkTmux,
|
|
@@ -11,7 +11,26 @@ import {
|
|
|
11
11
|
resolveLaunchCmd,
|
|
12
12
|
stateRoot,
|
|
13
13
|
verifyServerLaunch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GSWMKYSU.js";
|
|
15
|
+
|
|
16
|
+
// src/tui/open-token.ts
|
|
17
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
18
|
+
import { join } from "path";
|
|
19
|
+
function tokenPath() {
|
|
20
|
+
return join(stateRoot(), "tui-open-token");
|
|
21
|
+
}
|
|
22
|
+
function readTuiOpenToken() {
|
|
23
|
+
try {
|
|
24
|
+
return readFileSync(tokenPath(), "utf-8").trim();
|
|
25
|
+
} catch {
|
|
26
|
+
return "";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function writeTuiOpenToken() {
|
|
30
|
+
mkdirSync(stateRoot(), { recursive: true });
|
|
31
|
+
writeFileSync(tokenPath(), `${Date.now()}
|
|
32
|
+
`, "utf-8");
|
|
33
|
+
}
|
|
15
34
|
|
|
16
35
|
// src/core/onboard.ts
|
|
17
36
|
function buildOnboardingState() {
|
|
@@ -41,30 +60,11 @@ function suggestedAgentPrompt(installedProviders) {
|
|
|
41
60
|
return `use reevesagents to spawn a ${provider} agent and summarize the README`;
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
// src/core/tui-open.ts
|
|
45
|
-
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
46
|
-
import { join } from "path";
|
|
47
|
-
function tokenPath() {
|
|
48
|
-
return join(stateRoot(), "tui-open-token");
|
|
49
|
-
}
|
|
50
|
-
function readTuiOpenToken() {
|
|
51
|
-
try {
|
|
52
|
-
return readFileSync(tokenPath(), "utf-8").trim();
|
|
53
|
-
} catch {
|
|
54
|
-
return "";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function writeTuiOpenToken() {
|
|
58
|
-
mkdirSync(stateRoot(), { recursive: true });
|
|
59
|
-
writeFileSync(tokenPath(), `${Date.now()}
|
|
60
|
-
`, "utf-8");
|
|
61
|
-
}
|
|
62
|
-
|
|
63
63
|
export {
|
|
64
|
+
readTuiOpenToken,
|
|
65
|
+
writeTuiOpenToken,
|
|
64
66
|
buildOnboardingState,
|
|
65
67
|
runOnboarding,
|
|
66
|
-
suggestedAgentPrompt
|
|
67
|
-
readTuiOpenToken,
|
|
68
|
-
writeTuiOpenToken
|
|
68
|
+
suggestedAgentPrompt
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-MKNSEZTG.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-GSWMKYSU.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-OVNVE2TJ.js.map
|