reevesagents 1.6.0 → 1.6.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 CHANGED
@@ -1,11 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.1](https://github.com/mertkayacs/reevesagents/compare/v1.6.0...v1.6.1) (2026-07-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * republish as 1.6.1 and sync reevesagents-win ([8125062](https://github.com/mertkayacs/reevesagents/commit/81250624b155dad3a9f64eeab0978aff249ecaf1)), closes [11/#12](https://github.com/mertkayacs/reevesagents/issues/12)
9
+
3
10
  # [1.6.0](https://github.com/mertkayacs/reevesagents/compare/v1.5.0...v1.6.0) (2026-07-25)
4
11
 
5
12
 
13
+ ### Bug Fixes
14
+
15
+ * **cli:** harden bare-launch tmux targeting and non-tty handling ([c7e0eef](https://github.com/mertkayacs/reevesagents/commit/c7e0eef65a8f91f474e6a75c69f2ec3df937f49f)), closes [#11](https://github.com/mertkayacs/reevesagents/issues/11)
16
+ * **runs:** return not-found on corrupt or missing run and agent json ([f2ae30e](https://github.com/mertkayacs/reevesagents/commit/f2ae30e1bd493fda0d7927eacd16a7dcd17de1f6)), closes [#11](https://github.com/mertkayacs/reevesagents/issues/11)
17
+ * **runtime:** use exact/append tmux targets for the reeves anchor ([41328bc](https://github.com/mertkayacs/reevesagents/commit/41328bc96390302a7dc22f932d2a64eb2c51d8de)), closes [#12](https://github.com/mertkayacs/reevesagents/issues/12)
18
+
19
+
6
20
  ### Features
7
21
 
8
- * auto-reap zombie agents, raise agent cap to 100, and ship an installable skill ([7666a0d](https://github.com/mertkayacs/reevesagents/commit/7666a0d55687fa59c8c17c6f84aed72c3188613d))
22
+ * auto-reap zombie agents, raise agent cap to 100, and ship an installable skill ([c32edec](https://github.com/mertkayacs/reevesagents/commit/c32edec718c88ddb3cefcb08275429a4e21fe1ff))
9
23
  * **onboarding:** one connect flow, sharper MCP text, post-install nudge ([c83abc0](https://github.com/mertkayacs/reevesagents/commit/c83abc011f04f9cbbcff0006503776b5a284091b))
10
24
  * **providers:** refresh model catalogs for updated CLIs and add Codex effort ([7c1b4fa](https://github.com/mertkayacs/reevesagents/commit/7c1b4fa6ad28412d98f0c8a85f454a8404a62a1d))
11
25
 
@@ -6,7 +6,7 @@ import {
6
6
  redactSecrets,
7
7
  runDir,
8
8
  withRunsLock
9
- } from "./chunk-T7SPF4ZP.js";
9
+ } from "./chunk-S2NWTREO.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-VYLFTVIQ.js.map
171
+ //# sourceMappingURL=chunk-23XREWJP.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_LANGUAGE
4
- } from "./chunk-T7SPF4ZP.js";
4
+ } from "./chunk-S2NWTREO.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-J2DD52HJ.js.map
5715
+ //# sourceMappingURL=chunk-2JHA6YK3.js.map
@@ -6,7 +6,7 @@ import {
6
6
  listAgents,
7
7
  loadConfig,
8
8
  nowMs
9
- } from "./chunk-T7SPF4ZP.js";
9
+ } from "./chunk-S2NWTREO.js";
10
10
 
11
11
  // src/core/reaper.ts
12
12
  function sweepAgents(options = {}) {
@@ -52,4 +52,4 @@ export {
52
52
  sweepAgents,
53
53
  sweepAgentsThrottled
54
54
  };
55
- //# sourceMappingURL=chunk-7YW57CWK.js.map
55
+ //# sourceMappingURL=chunk-36AVBLVK.js.map
@@ -8,7 +8,7 @@ import {
8
8
  resolveLaunchCmd,
9
9
  stateRoot,
10
10
  verifyServerLaunch
11
- } from "./chunk-T7SPF4ZP.js";
11
+ } from "./chunk-S2NWTREO.js";
12
12
 
13
13
  // src/core/onboard.ts
14
14
  function buildOnboardingState() {
@@ -63,4 +63,4 @@ export {
63
63
  readTuiOpenToken,
64
64
  writeTuiOpenToken
65
65
  };
66
- //# sourceMappingURL=chunk-ICFJOMFZ.js.map
66
+ //# sourceMappingURL=chunk-JZYM3JJE.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  PROVIDER_DEFS
4
- } from "./chunk-T7SPF4ZP.js";
4
+ } from "./chunk-S2NWTREO.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-WDJ6RTES.js.map
30
+ //# sourceMappingURL=chunk-KHBI6CRH.js.map
@@ -748,13 +748,12 @@ function writeRunUnlocked(run) {
748
748
  return path;
749
749
  }
750
750
  function readRunUnlocked(runId) {
751
- let raw;
752
751
  try {
753
- raw = readFileSync(runPath(runId), "utf-8");
752
+ const raw = readFileSync(runPath(runId), "utf-8");
753
+ return normalizeRun(JSON.parse(raw));
754
754
  } catch {
755
755
  throw new Error(`Run not found: ${runId}`);
756
756
  }
757
- return normalizeRun(JSON.parse(raw));
758
757
  }
759
758
  function writeAgentUnlocked(agent) {
760
759
  const path = agentPath(agent.run_id, agent.id);
@@ -767,7 +766,11 @@ function writeRunHistoryUnlocked(record) {
767
766
  return path;
768
767
  }
769
768
  function readAgentUnlocked(runId, agentId) {
770
- return normalizeAgent(JSON.parse(readFileSync(agentPath(runId, agentId), "utf-8")));
769
+ try {
770
+ return normalizeAgent(JSON.parse(readFileSync(agentPath(runId, agentId), "utf-8")));
771
+ } catch {
772
+ throw new Error(`Agent not found: ${agentId}`);
773
+ }
771
774
  }
772
775
  function writeRun(run) {
773
776
  return withRunsLock(() => writeRunUnlocked(run));
@@ -1786,13 +1789,13 @@ function pickReevesAnchor(driver) {
1786
1789
  driver.tmux(["new-session", "-d", "-s", fallbackName, "-n", "reeves"]);
1787
1790
  } catch {
1788
1791
  }
1789
- let ids = readDisplayIds(driver, `${fallbackName}:reeves`);
1792
+ let ids = readDisplayIds(driver, `=${fallbackName}:reeves`);
1790
1793
  if (!ids) {
1791
1794
  try {
1792
- driver.tmux(["new-window", "-d", "-t", fallbackName, "-n", "reeves"]);
1795
+ driver.tmux(["new-window", "-d", "-t", `${fallbackName}:`, "-n", "reeves"]);
1793
1796
  } catch {
1794
1797
  }
1795
- ids = readDisplayIds(driver, `${fallbackName}:reeves`);
1798
+ ids = readDisplayIds(driver, `=${fallbackName}:reeves`);
1796
1799
  }
1797
1800
  return { sessionName: fallbackName, windowId: ids?.windowId ?? "", paneId: ids?.paneId ?? "" };
1798
1801
  }
@@ -2305,4 +2308,4 @@ export {
2305
2308
  stopRun,
2306
2309
  openTmuxTarget
2307
2310
  };
2308
- //# sourceMappingURL=chunk-T7SPF4ZP.js.map
2311
+ //# sourceMappingURL=chunk-S2NWTREO.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-Y5EO5QYV.js");
31
+ const { startWebServer } = await import("./server-RXQBOR5F.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-S4JLBMK4.js.map
51
+ //# sourceMappingURL=chunk-S5J4E3QZ.js.map
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,6 @@
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[];
4
5
 
5
- export { program };
6
+ export { program, tuiNewWindowArgs };
package/dist/cli.js CHANGED
@@ -9,18 +9,18 @@ import {
9
9
  runOnboarding,
10
10
  suggestedAgentPrompt,
11
11
  writeTuiOpenToken
12
- } from "./chunk-ICFJOMFZ.js";
12
+ } from "./chunk-JZYM3JJE.js";
13
13
  import {
14
14
  sweepAgents
15
- } from "./chunk-7YW57CWK.js";
15
+ } from "./chunk-36AVBLVK.js";
16
16
  import {
17
17
  MODEL_CATALOG
18
- } from "./chunk-WDJ6RTES.js";
18
+ } from "./chunk-KHBI6CRH.js";
19
19
  import {
20
20
  REEVESAGENTS_VERSION,
21
21
  listRunApprovals,
22
22
  resolveRunApproval
23
- } from "./chunk-VYLFTVIQ.js";
23
+ } from "./chunk-23XREWJP.js";
24
24
  import {
25
25
  ALLOWED_KEYS,
26
26
  CONFIG_FIELDS,
@@ -62,7 +62,7 @@ import {
62
62
  startRunFromPreset,
63
63
  stopRun,
64
64
  verifyServerLaunch
65
- } from "./chunk-T7SPF4ZP.js";
65
+ } from "./chunk-S2NWTREO.js";
66
66
  import "./chunk-D24DQQ6V.js";
67
67
 
68
68
  // src/cli.ts
@@ -137,9 +137,12 @@ function quoteShell(s) {
137
137
  function tmuxAttachCommand(session, windowId) {
138
138
  return `tmux select-window -t ${quoteShell(`${session}:${windowId}`)} && tmux attach -t ${quoteShell(session)}`;
139
139
  }
140
+ function exactSession(session) {
141
+ return `=${session}`;
142
+ }
140
143
  function tmuxSessionExists(session) {
141
144
  try {
142
- execFileSync("tmux", ["has-session", "-t", session], { stdio: "ignore" });
145
+ execFileSync("tmux", ["has-session", "-t", exactSession(session)], { stdio: "ignore" });
143
146
  return true;
144
147
  } catch {
145
148
  return false;
@@ -147,14 +150,14 @@ function tmuxSessionExists(session) {
147
150
  }
148
151
  function tmuxWindowIds(session) {
149
152
  try {
150
- return execFileSync("tmux", ["list-windows", "-t", session, "-F", "#{window_id}"], { encoding: "utf8" }).split("\n").map((line) => line.trim()).filter(Boolean);
153
+ return execFileSync("tmux", ["list-windows", "-t", exactSession(session), "-F", "#{window_id}"], { encoding: "utf8" }).split("\n").map((line) => line.trim()).filter(Boolean);
151
154
  } catch {
152
155
  return [];
153
156
  }
154
157
  }
155
158
  function tmuxWindowByName(session, name) {
156
159
  try {
157
- const rows = execFileSync("tmux", ["list-windows", "-t", session, "-F", "#{window_id} #{window_name} #{pane_current_command}"], { encoding: "utf8" }).split("\n").map((line) => line.trim()).filter(Boolean);
160
+ const rows = execFileSync("tmux", ["list-windows", "-t", exactSession(session), "-F", "#{window_id} #{window_name} #{pane_current_command}"], { encoding: "utf8" }).split("\n").map((line) => line.trim()).filter(Boolean);
158
161
  for (const row of rows) {
159
162
  const [windowId, windowName, command = ""] = row.split(" ");
160
163
  if (windowId && windowName === name) return { id: windowId, command };
@@ -175,19 +178,11 @@ function clearTuiSessionExcept(session, keepWindowId) {
175
178
  }
176
179
  }
177
180
  }
181
+ function tuiNewWindowArgs(session, window, command) {
182
+ return ["new-window", "-d", "-P", "-F", "#{window_id}", "-t", `${exactSession(session)}:`, "-n", window, command];
183
+ }
178
184
  function createTuiWindow(session, window, command) {
179
- return execFileSync("tmux", [
180
- "new-window",
181
- "-d",
182
- "-P",
183
- "-F",
184
- "#{window_id}",
185
- "-t",
186
- session,
187
- "-n",
188
- window,
189
- command
190
- ], { encoding: "utf8" }).trim();
185
+ return execFileSync("tmux", tuiNewWindowArgs(session, window, command), { encoding: "utf8" }).trim();
191
186
  }
192
187
  function openTuiSession(command) {
193
188
  const session = "reeves";
@@ -206,7 +201,7 @@ function openTuiSession(command) {
206
201
  const windowId = existing && isTuiCommand(existing.command) ? existing.id : createTuiWindow(session, window, command);
207
202
  execFileSync("tmux", ["select-window", "-t", windowId], { stdio: "ignore" });
208
203
  clearTuiSessionExcept(session, windowId);
209
- execFileSync("tmux", ["attach", "-t", session], { stdio: "inherit" });
204
+ execFileSync("tmux", ["attach", "-t", exactSession(session)], { stdio: "inherit" });
210
205
  }
211
206
  function openTarget(id) {
212
207
  const target = resolveOpenTarget(id);
@@ -845,7 +840,7 @@ program.command("web").description("start the on-demand loopback web UI for agen
845
840
  });
846
841
  program.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
847
842
  try {
848
- const { startAgentMcpServer } = await import("./server-AP4NN6RT.js");
843
+ const { startAgentMcpServer } = await import("./server-IJXZCKR2.js");
849
844
  await startAgentMcpServer();
850
845
  } catch (err) {
851
846
  console.error(err instanceof Error ? err.message : String(err));
@@ -859,7 +854,7 @@ async function runWeb(opts) {
859
854
  console.error(webExtrasMessage(extras.missing));
860
855
  process.exit(1);
861
856
  }
862
- const { startWebServer } = await import("./server-Y5EO5QYV.js");
857
+ const { startWebServer } = await import("./server-RXQBOR5F.js");
863
858
  const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
864
859
  const handle = await startWebServer({
865
860
  port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
@@ -878,12 +873,12 @@ async function renderTui() {
878
873
  const [{ default: React }, { render }, { Router }] = await Promise.all([
879
874
  import("react"),
880
875
  import("ink"),
881
- import("./router-L5IRXRCH.js")
876
+ import("./router-LLZ2L6WM.js")
882
877
  ]);
883
878
  try {
884
879
  await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
885
880
  } finally {
886
- const { closeTuiWebServer } = await import("./tui-launch-AGR3JF4I.js");
881
+ const { closeTuiWebServer } = await import("./tui-launch-Z6RYMGNH.js");
887
882
  await closeTuiWebServer();
888
883
  }
889
884
  process.exit(0);
@@ -910,6 +905,10 @@ function runCli() {
910
905
  process.exit(1);
911
906
  }
912
907
  }
908
+ if (!process.stdout.isTTY) {
909
+ process.stderr.write('reevesagents requires an interactive terminal. Run it in a terminal, or use a subcommand like "reevesagents doctor".\n');
910
+ process.exit(1);
911
+ }
913
912
  process.on("SIGTERM", () => process.exit(0));
914
913
  if (process.stdout.isTTY) process.stdout.write("\x1B[2J\x1B[H");
915
914
  renderTui().catch((err) => {
@@ -932,6 +931,7 @@ function isEntrypoint() {
932
931
  }
933
932
  if (isEntrypoint()) runCli();
934
933
  export {
935
- program
934
+ program,
935
+ tuiNewWindowArgs
936
936
  };
937
937
  //# sourceMappingURL=cli.js.map
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  modelDisplayName,
7
7
  modelSourceForProvider,
8
8
  modelValuesForProvider
9
- } from "./chunk-WDJ6RTES.js";
9
+ } from "./chunk-KHBI6CRH.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-T7SPF4ZP.js";
42
+ } from "./chunk-S2NWTREO.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-ICFJOMFZ.js";
5
+ } from "./chunk-JZYM3JJE.js";
6
6
  import {
7
7
  sweepAgentsThrottled
8
- } from "./chunk-7YW57CWK.js";
8
+ } from "./chunk-36AVBLVK.js";
9
9
  import {
10
10
  translate,
11
11
  translatePhrase
12
- } from "./chunk-J2DD52HJ.js";
12
+ } from "./chunk-2JHA6YK3.js";
13
13
  import {
14
14
  modelDisplayName,
15
15
  modelValuesForProvider
16
- } from "./chunk-WDJ6RTES.js";
16
+ } from "./chunk-KHBI6CRH.js";
17
17
  import {
18
18
  REEVESAGENTS_VERSION,
19
19
  listRunApprovals,
20
20
  resolveRunApproval
21
- } from "./chunk-VYLFTVIQ.js";
21
+ } from "./chunk-23XREWJP.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-T7SPF4ZP.js";
76
+ } from "./chunk-S2NWTREO.js";
77
77
  import "./chunk-D24DQQ6V.js";
78
78
  import {
79
79
  startWebFromTui
80
- } from "./chunk-S4JLBMK4.js";
80
+ } from "./chunk-S5J4E3QZ.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-L5IRXRCH.js.map
6575
+ //# sourceMappingURL=router-LLZ2L6WM.js.map
@@ -6,14 +6,14 @@ import {
6
6
  import {
7
7
  sweepAgents,
8
8
  sweepAgentsThrottled
9
- } from "./chunk-7YW57CWK.js";
9
+ } from "./chunk-36AVBLVK.js";
10
10
  import {
11
11
  REEVESAGENTS_VERSION,
12
12
  createRunApproval,
13
13
  listRunApprovals,
14
14
  readRunApproval,
15
15
  resolveRunApproval
16
- } from "./chunk-VYLFTVIQ.js";
16
+ } from "./chunk-23XREWJP.js";
17
17
  import {
18
18
  ALLOWED_KEYS,
19
19
  BIN,
@@ -51,7 +51,7 @@ import {
51
51
  startRunFromPreset,
52
52
  startRunWithHead,
53
53
  stopRun
54
- } from "./chunk-T7SPF4ZP.js";
54
+ } from "./chunk-S2NWTREO.js";
55
55
  import "./chunk-D24DQQ6V.js";
56
56
 
57
57
  // src/mcp/server.ts
@@ -713,4 +713,4 @@ export {
713
713
  sessionRunIsLive,
714
714
  startAgentMcpServer
715
715
  };
716
- //# sourceMappingURL=server-AP4NN6RT.js.map
716
+ //# sourceMappingURL=server-IJXZCKR2.js.map
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  localeCatalog,
4
4
  translatePhrase
5
- } from "./chunk-J2DD52HJ.js";
5
+ } from "./chunk-2JHA6YK3.js";
6
6
  import {
7
7
  modelValuesForProvider
8
- } from "./chunk-WDJ6RTES.js";
8
+ } from "./chunk-KHBI6CRH.js";
9
9
  import {
10
10
  REEVESAGENTS_VERSION,
11
11
  listRunApprovals,
12
12
  resolveRunApproval
13
- } from "./chunk-VYLFTVIQ.js";
13
+ } from "./chunk-23XREWJP.js";
14
14
  import {
15
15
  CONFIG_FIELDS,
16
16
  LANGUAGE_OPTIONS,
@@ -50,7 +50,7 @@ import {
50
50
  startRunFromPreset,
51
51
  stopRun,
52
52
  verifyServerLaunch
53
- } from "./chunk-T7SPF4ZP.js";
53
+ } from "./chunk-S2NWTREO.js";
54
54
  import "./chunk-D24DQQ6V.js";
55
55
 
56
56
  // src/web/server.ts
@@ -1016,4 +1016,4 @@ async function startWebServer(options = {}) {
1016
1016
  export {
1017
1017
  startWebServer
1018
1018
  };
1019
- //# sourceMappingURL=server-Y5EO5QYV.js.map
1019
+ //# sourceMappingURL=server-RXQBOR5F.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-S4JLBMK4.js";
5
+ } from "./chunk-S5J4E3QZ.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-AGR3JF4I.js.map
10
+ //# sourceMappingURL=tui-launch-Z6RYMGNH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reevesagents",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Local tmux-first workspace manager for AI CLI agents",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.1",