reevesagents 1.4.0 → 1.5.0

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,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ # [1.5.0](https://github.com/mertkayacs/reevesagents/compare/v1.4.0...v1.5.0) (2026-07-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * address remaining review notes across CLI, TUI, and web ([b7753c0](https://github.com/mertkayacs/reevesagents/commit/b7753c060e8ab05e6b50650d15a8a008f1c9b4f8)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
9
+ * **cli:** set failure exit codes and add attach --force ([a68c247](https://github.com/mertkayacs/reevesagents/commit/a68c24782f8fb2b1311fcbaf4a03cd4d9baf17c9)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
10
+ * **win:** guard .cmd launchers, add setup --json, shorten status probe ([6273ea7](https://github.com/mertkayacs/reevesagents/commit/6273ea7eae7d72916edf7a1b45cedcc5a4aedfee)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
11
+ * **win:** protect live runs in the verifier and fix cmd.exe quoting ([52dc275](https://github.com/mertkayacs/reevesagents/commit/52dc27536c8a1e6d92cf1275d3bf99356fbf6d9c)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
12
+
13
+
14
+ ### Features
15
+
16
+ * **cli:** add a setup command and shared onboarding core ([79dd470](https://github.com/mertkayacs/reevesagents/commit/79dd470bbaf0f4aa9598a889ecb8f7d5025b4d6b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
17
+ * **mcp:** add connect-time instructions and a getting-started guide ([341c8e6](https://github.com/mertkayacs/reevesagents/commit/341c8e689b6a13057edcd8274e442bc1a71e6f5b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
18
+ * **mcp:** resolve an absolute launcher and verify attach ([2315e8e](https://github.com/mertkayacs/reevesagents/commit/2315e8e494d61036f7659db82ac55d35d44fadde)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
19
+ * **tui:** add a first-run setup wizard ([1895611](https://github.com/mertkayacs/reevesagents/commit/18956117e6af36dbd1055ed984b3cbb589f5387b)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
20
+ * **web:** add a first-visit getting-started popup ([c3d909b](https://github.com/mertkayacs/reevesagents/commit/c3d909b4456052cc4398b82bf74213dc8b9af220)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
21
+ * **win:** add reevesagents-win, an MCP-only Windows-native package ([58dba05](https://github.com/mertkayacs/reevesagents/commit/58dba05fad8c23cf27a5ab77d97c8fd8f097468f)), closes [#8](https://github.com/mertkayacs/reevesagents/issues/8)
22
+
3
23
  # [1.4.0](https://github.com/mertkayacs/reevesagents/compare/v1.3.2...v1.4.0) (2026-07-05)
4
24
 
5
25
 
@@ -1,13 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- PROVIDER_REGISTRY,
4
3
  findAgent,
5
4
  listRuns,
6
5
  nowIso,
7
6
  redactSecrets,
8
7
  runDir,
9
8
  withRunsLock
10
- } from "./chunk-KL5YFLQF.js";
9
+ } from "./chunk-LKJSQLX2.js";
11
10
 
12
11
  // src/core/approvals.ts
13
12
  import {
@@ -152,147 +151,6 @@ function resolveRunApproval(approvalId, decision, note = "") {
152
151
  });
153
152
  }
154
153
 
155
- // src/mcp/installer.ts
156
- import { execFileSync } from "child_process";
157
- var SERVER_NAME = "reevesagents";
158
- var SERVER_BIN = "reevesagents";
159
- var SERVER_ARG = "mcp";
160
- var MGMT_TIMEOUT_MS = 15e3;
161
- var HOSTS = [
162
- {
163
- provider: "cc",
164
- add: ["mcp", "add", SERVER_NAME, "--", SERVER_BIN, SERVER_ARG],
165
- remove: ["mcp", "remove", SERVER_NAME],
166
- list: ["mcp", "list"]
167
- },
168
- {
169
- provider: "codex",
170
- add: ["mcp", "add", SERVER_NAME, "--", SERVER_BIN, SERVER_ARG],
171
- remove: ["mcp", "remove", SERVER_NAME],
172
- list: ["mcp", "list"]
173
- },
174
- {
175
- provider: "kimi",
176
- add: ["mcp", "add", SERVER_NAME, "--", SERVER_BIN, SERVER_ARG],
177
- remove: ["mcp", "remove", SERVER_NAME],
178
- list: ["mcp", "list"]
179
- },
180
- {
181
- provider: "qwen",
182
- add: ["mcp", "add", SERVER_NAME, SERVER_BIN, SERVER_ARG],
183
- remove: ["mcp", "remove", SERVER_NAME],
184
- list: ["mcp", "list"]
185
- },
186
- {
187
- provider: "hermes",
188
- add: ["mcp", "add", SERVER_NAME, "--command", SERVER_BIN, "--args", SERVER_ARG],
189
- remove: ["mcp", "remove", SERVER_NAME],
190
- list: ["mcp", "list"]
191
- },
192
- {
193
- // opencode's `mcp add` prompts interactively and has no remove subcommand,
194
- // so we cannot attach or detach it without a prompt. Report it as manual.
195
- provider: "opencode",
196
- list: ["mcp", "list"]
197
- }
198
- ];
199
- function hostBin(host) {
200
- return PROVIDER_REGISTRY[host.provider].bin;
201
- }
202
- function hostLabel(host) {
203
- return PROVIDER_REGISTRY[host.provider].displayName;
204
- }
205
- function isInstalled(bin) {
206
- try {
207
- execFileSync("which", [bin], { stdio: "pipe" });
208
- return true;
209
- } catch {
210
- return false;
211
- }
212
- }
213
- function isAttached(host) {
214
- try {
215
- const out = execFileSync(hostBin(host), host.list, {
216
- encoding: "utf8",
217
- timeout: MGMT_TIMEOUT_MS,
218
- stdio: ["ignore", "pipe", "pipe"]
219
- });
220
- return /reevesagents(?![-\w])/i.test(out);
221
- } catch {
222
- return false;
223
- }
224
- }
225
- function runHostCommand(host, args) {
226
- execFileSync(hostBin(host), args, {
227
- encoding: "utf8",
228
- timeout: MGMT_TIMEOUT_MS,
229
- stdio: ["ignore", "pipe", "pipe"]
230
- });
231
- }
232
- function cliError(err) {
233
- const stderr = err && typeof err === "object" ? err.stderr : void 0;
234
- const text = typeof stderr === "string" ? stderr.trim() : Buffer.isBuffer(stderr) ? stderr.toString("utf8").trim() : "";
235
- return text || (err instanceof Error ? err.message : String(err));
236
- }
237
- function findHost(key) {
238
- const host = HOSTS.find((item) => item.provider === key);
239
- if (!host) throw new Error(`Unknown CLI: ${key}`);
240
- return host;
241
- }
242
- function hostStatus() {
243
- return HOSTS.map((host) => {
244
- const installed = isInstalled(hostBin(host));
245
- return {
246
- key: host.provider,
247
- bin: hostBin(host),
248
- label: hostLabel(host),
249
- installed,
250
- attached: installed && isAttached(host),
251
- manual: host.add === void 0
252
- };
253
- });
254
- }
255
- function attach(key) {
256
- const host = findHost(key);
257
- const label = hostLabel(host);
258
- if (!host.add) {
259
- return { key, label, ok: false, message: `${label} must be added manually` };
260
- }
261
- if (!isInstalled(hostBin(host))) {
262
- return { key, label, ok: false, message: `${hostBin(host)} is not installed` };
263
- }
264
- try {
265
- runHostCommand(host, host.add);
266
- return { key, label, ok: true, message: "attached" };
267
- } catch (err) {
268
- return { key, label, ok: false, message: cliError(err) };
269
- }
270
- }
271
- function detach(key) {
272
- const host = findHost(key);
273
- const label = hostLabel(host);
274
- if (!host.remove) {
275
- return { key, label, ok: false, message: `${label} must be removed manually` };
276
- }
277
- if (!isInstalled(hostBin(host))) {
278
- return { key, label, ok: false, message: `${hostBin(host)} is not installed` };
279
- }
280
- try {
281
- runHostCommand(host, host.remove);
282
- return { key, label, ok: true, message: "detached" };
283
- } catch (err) {
284
- return { key, label, ok: false, message: cliError(err) };
285
- }
286
- }
287
- function attachAll() {
288
- return HOSTS.filter((host) => host.add && isInstalled(hostBin(host))).map((host) => {
289
- if (isAttached(host)) {
290
- return { key: host.provider, label: hostLabel(host), ok: true, message: "already attached" };
291
- }
292
- return attach(host.provider);
293
- });
294
- }
295
-
296
154
  // src/version.ts
297
155
  import { readFileSync as readFileSync2 } from "fs";
298
156
  import { URL } from "url";
@@ -308,10 +166,6 @@ export {
308
166
  readRunApproval,
309
167
  listRunApprovals,
310
168
  resolveRunApproval,
311
- hostStatus,
312
- attach,
313
- detach,
314
- attachAll,
315
169
  REEVESAGENTS_VERSION
316
170
  };
317
- //# sourceMappingURL=chunk-EX5LH2KW.js.map
171
+ //# sourceMappingURL=chunk-6RPG22BH.js.map