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.
@@ -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
- } from "./chunk-CE6YASBF.js";
6
+ nowMs,
7
+ targetExists,
8
+ tmuxAvailable
9
+ } from "./chunk-PDJ2CPVO.js";
10
10
 
11
11
  // src/core/reaper.ts
12
12
  function sweepAgents(options = {}) {
13
- const haveTmux = options.targetExists ? true : (options.tmuxAvailable ?? defaultTmuxAvailable)();
13
+ const haveTmux = options.targetExists ? true : (options.tmuxAvailable ?? tmuxAvailable)();
14
14
  if (!haveTmux) return { reaped: [] };
15
- const targetExists = options.targetExists ?? defaultTmuxTargetExists;
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 && !targetExists(agent.tmux_window_id, agent.tmux_session)) {
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-FL3LI2MU.js.map
186
+ //# sourceMappingURL=chunk-CFDTC6GY.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  PROVIDER_DEFS
4
- } from "./chunk-CE6YASBF.js";
4
+ } from "./chunk-PDJ2CPVO.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-QMRLJAEV.js.map
30
+ //# sourceMappingURL=chunk-HIJYVPYH.js.map
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // src/web/tui-launch.ts
3
+ // src/surfaces/webui/tui-launch.ts
4
4
  var handle = null;
5
5
  var pending = null;
6
6
  var launchToken = 0;
7
7
  async function startWebFromTui() {
8
8
  if (handle) {
9
- const { openBrowser } = await import("./open-browser-DRSIJQ37.js");
9
+ const { openBrowser } = await import("./open-browser-IQ5MTCWZ.js");
10
10
  openBrowser(handle.url);
11
11
  return handle.url;
12
12
  }
@@ -25,10 +25,10 @@ async function startWebFromTui() {
25
25
  }
26
26
  }
27
27
  async function startTuiWebServer() {
28
- const { checkWebExtras, webExtrasMessage } = await import("./extras-25AF6TAR.js");
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-VR6AHRBE.js");
31
+ const { startWebServer } = await import("./server-Y2IEANCZ.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-EA6OGFOE.js.map
51
+ //# sourceMappingURL=chunk-LXZNX6EJ.js.map