reevesagents 1.7.1 → 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.
@@ -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-LHUVET65.js";
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 ?? 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-5XIBZCJJ.js.map
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-5XIBZCJJ.js";
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-LHUVET65.js";
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-X3C4CRMT.js.map
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-LHUVET65.js";
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-4CVXS5HU.js.map
5715
+ //# sourceMappingURL=chunk-OVNVE2TJ.js.map
package/dist/cli.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { Command } from 'commander';
2
2
 
3
3
  declare const program: Command;
4
- declare function tuiNewWindowArgs(session: string, window: string, command: string): string[];
5
4
 
6
- export { program, tuiNewWindowArgs };
5
+ export { program };