reevesagents 1.9.0 → 1.9.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,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.1](https://github.com/mertkayacs/reevesagents/compare/v1.9.0...v1.9.1) (2026-10-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **tools:** report Perplexity as signed out when no API key is set ([#147](https://github.com/mertkayacs/reevesagents/issues/147)) ([6205228](https://github.com/mertkayacs/reevesagents/commit/6205228cb57bad4607608d9cfd5b78fac44cec21))
9
+
3
10
  ## [1.9.0](https://github.com/mertkayacs/reevesagents/compare/v1.8.2...v1.9.0) (2026-10-16)
4
11
 
5
12
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  PROVIDER_DEFS
4
- } from "./chunk-BQQ37O7I.js";
4
+ } from "./chunk-LQLSTRGU.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-BHNPWYPK.js.map
30
+ //# sourceMappingURL=chunk-B7MJIWPK.js.map
@@ -19,7 +19,7 @@ import {
19
19
  targetExists,
20
20
  tmuxAvailable,
21
21
  withRunsLock
22
- } from "./chunk-BQQ37O7I.js";
22
+ } from "./chunk-LQLSTRGU.js";
23
23
 
24
24
  // src/version.ts
25
25
  import { readFileSync } from "fs";
@@ -263,4 +263,4 @@ export {
263
263
  listRunApprovals,
264
264
  resolveRunApproval
265
265
  };
266
- //# sourceMappingURL=chunk-6YDLG6FR.js.map
266
+ //# sourceMappingURL=chunk-CNIU7XLA.js.map
@@ -2382,9 +2382,9 @@ function openTmuxTarget(id, options = {}) {
2382
2382
 
2383
2383
  // src/core/tool-registry.ts
2384
2384
  import { spawnSync as spawnSync3 } from "child_process";
2385
- import { existsSync as existsSync4 } from "fs";
2385
+ import { statSync as statSync3 } from "fs";
2386
2386
  import { homedir as homedir4 } from "os";
2387
- import { join as join5 } from "path";
2387
+ import { isAbsolute, join as join5 } from "path";
2388
2388
  var TOOL_REGISTRY = {
2389
2389
  pplx: {
2390
2390
  id: "pplx",
@@ -2393,8 +2393,8 @@ var TOOL_REGISTRY = {
2393
2393
  color: "#3f7f8d",
2394
2394
  // muted Perplexity teal
2395
2395
  purpose: "Web search and page snippets from Perplexity, as JSON.",
2396
- authEnv: ["PERPLEXITY_API_KEY"],
2397
- authFiles: ["~/.config/perplexity/credentials.json"],
2396
+ authEnv: [],
2397
+ probe: pplxSigninState,
2398
2398
  stateLabel: "signed in",
2399
2399
  example: 'pplx search web "node 24 release date" --limit 3',
2400
2400
  docsUrl: "https://github.com/perplexityai/perplexity-cli"
@@ -2446,13 +2446,31 @@ var TOOL_REGISTRY = {
2446
2446
  var TOOL_DEFS = Object.values(TOOL_REGISTRY);
2447
2447
  var TOOLS = Object.keys(TOOL_REGISTRY);
2448
2448
  var TOOL_AUTH_CHECK_TIMEOUT_MS = 3e3;
2449
- function authFilePresent(path, home) {
2450
- if (!path.startsWith("~/")) return existsSync4(path);
2451
- return existsSync4(join5(home, path.slice(2)));
2449
+ function pplxSigninState(env, home, platform = process.platform) {
2450
+ const set = (name) => Boolean(env[name]?.trim());
2451
+ const sdkBase = set("PPLX_SDK_BASE_URL");
2452
+ const sdkKey = set("PPLX_SDK_API_KEY");
2453
+ if (sdkBase !== sdkKey) return "no";
2454
+ if (sdkBase && sdkKey) return "yes";
2455
+ if (set("PERPLEXITY_API_KEY")) return "yes";
2456
+ let credentials;
2457
+ if (platform === "linux") {
2458
+ const xdg = env.XDG_CONFIG_HOME;
2459
+ credentials = join5(xdg && isAbsolute(xdg) ? xdg : join5(home, ".config"), "perplexity", "credentials.json");
2460
+ } else if (platform === "darwin") {
2461
+ credentials = join5(home, "Library", "Application Support", "perplexity", "credentials.json");
2462
+ } else {
2463
+ return "unknown";
2464
+ }
2465
+ try {
2466
+ return statSync3(credentials, { throwIfNoEntry: false }) ? "yes" : "no";
2467
+ } catch {
2468
+ return "unknown";
2469
+ }
2452
2470
  }
2453
2471
  function toolState(def, env = process.env, home = homedir4()) {
2472
+ if (def.probe) return def.probe(env, home);
2454
2473
  if (def.authEnv.some((name) => Boolean(env[name]))) return "yes";
2455
- if ((def.authFiles ?? []).some((path) => authFilePresent(path, home))) return "yes";
2456
2474
  if (!def.authCheckArgs) return "unknown";
2457
2475
  try {
2458
2476
  const checked = spawnSync3(def.bin, [...def.authCheckArgs], {
@@ -2482,7 +2500,7 @@ function detectToolStatuses(env = process.env, home = homedir4()) {
2482
2500
 
2483
2501
  // src/surfaces/mcp/installer.ts
2484
2502
  import { execFileSync as execFileSync3 } from "child_process";
2485
- import { realpathSync, readFileSync as readFileSync4, writeFileSync as writeFileSync4, existsSync as existsSync5, mkdirSync as mkdirSync4 } from "fs";
2503
+ import { realpathSync, readFileSync as readFileSync4, writeFileSync as writeFileSync4, existsSync as existsSync4, mkdirSync as mkdirSync4 } from "fs";
2486
2504
  import { homedir as homedir5 } from "os";
2487
2505
  import { join as join6, dirname as dirname4 } from "path";
2488
2506
  var SERVER_NAME = "reevesagents";
@@ -2496,12 +2514,12 @@ function opencodeConfigPath() {
2496
2514
  const dir = join6(base, ".config", "opencode");
2497
2515
  const jsonc = join6(dir, "opencode.jsonc");
2498
2516
  const json = join6(dir, "opencode.json");
2499
- if (existsSync5(json)) return json;
2500
- if (existsSync5(jsonc)) return jsonc;
2517
+ if (existsSync4(json)) return json;
2518
+ if (existsSync4(jsonc)) return jsonc;
2501
2519
  return json;
2502
2520
  }
2503
2521
  function readOpencodeConfig(path) {
2504
- if (!existsSync5(path)) return {};
2522
+ if (!existsSync4(path)) return {};
2505
2523
  const raw = readFileSync4(path, "utf-8").trim();
2506
2524
  if (!raw) return {};
2507
2525
  return JSON.parse(raw);
@@ -2531,7 +2549,7 @@ function opencodeAttach(cmd) {
2531
2549
  }
2532
2550
  function opencodeDetach() {
2533
2551
  const path = opencodeConfigPath();
2534
- if (!existsSync5(path)) return;
2552
+ if (!existsSync4(path)) return;
2535
2553
  const cfg = readOpencodeConfig(path);
2536
2554
  const mcp = cfg.mcp;
2537
2555
  if (mcp && SERVER_NAME in mcp) {
@@ -2591,7 +2609,7 @@ var KIMI_CODE_FILE_OPS = {
2591
2609
  },
2592
2610
  detach: () => {
2593
2611
  const path = join6(kimiCodeHome(), "mcp.json");
2594
- if (!existsSync5(path)) return;
2612
+ if (!existsSync4(path)) return;
2595
2613
  const cfg = kimiCodeMcpConfig();
2596
2614
  const servers = cfg.mcpServers;
2597
2615
  if (servers && SERVER_NAME in servers) {
@@ -2821,7 +2839,7 @@ async function verifyServerLaunch(cmd = resolveLaunchCmd()) {
2821
2839
  }
2822
2840
 
2823
2841
  // src/core/doctor.ts
2824
- import { accessSync, constants, existsSync as existsSync6, readFileSync as readFileSync5 } from "fs";
2842
+ import { accessSync, constants, existsSync as existsSync5, readFileSync as readFileSync5 } from "fs";
2825
2843
  import { createRequire } from "module";
2826
2844
  import { join as join7 } from "path";
2827
2845
  var MIN_NODE_VERSION = [20, 19, 0];
@@ -2924,7 +2942,7 @@ function checkTools() {
2924
2942
  return { name: "tools", status: "ok", detail };
2925
2943
  }
2926
2944
  function checkPathAccess(name, path) {
2927
- if (!existsSync6(path)) return { name, status: "warn", detail: `${path} (will be created on first use)` };
2945
+ if (!existsSync5(path)) return { name, status: "warn", detail: `${path} (will be created on first use)` };
2928
2946
  try {
2929
2947
  accessSync(path, constants.R_OK | constants.W_OK);
2930
2948
  return { name, status: "ok", detail: path };
@@ -3090,4 +3108,4 @@ export {
3090
3108
  checkTmux,
3091
3109
  runDoctor
3092
3110
  };
3093
- //# sourceMappingURL=chunk-BQQ37O7I.js.map
3111
+ //# sourceMappingURL=chunk-LQLSTRGU.js.map
@@ -11,7 +11,7 @@ import {
11
11
  resolveLaunchCmd,
12
12
  stateRoot,
13
13
  verifyServerLaunch
14
- } from "./chunk-BQQ37O7I.js";
14
+ } from "./chunk-LQLSTRGU.js";
15
15
 
16
16
  // src/surfaces/tui/open-token.ts
17
17
  import { mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -67,4 +67,4 @@ export {
67
67
  runOnboarding,
68
68
  suggestedAgentPrompt
69
69
  };
70
- //# sourceMappingURL=chunk-22VBUVJW.js.map
70
+ //# sourceMappingURL=chunk-OFNHHF6P.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  DEFAULT_LANGUAGE
4
- } from "./chunk-BQQ37O7I.js";
4
+ } from "./chunk-LQLSTRGU.js";
5
5
 
6
6
  // src/i18n/locales/en.ts
7
7
  var en = {
@@ -5717,4 +5717,4 @@ export {
5717
5717
  localeCatalog,
5718
5718
  translatePhrase
5719
5719
  };
5720
- //# sourceMappingURL=chunk-D3FETB6O.js.map
5720
+ //# sourceMappingURL=chunk-P4CSYX5H.js.map
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
28
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-3JMAMPN2.js");
31
+ const { startWebServer } = await import("./server-AWGT7TDX.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-NHTL5RJP.js.map
51
+ //# sourceMappingURL=chunk-PMMG4VDO.js.map
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  runOnboarding,
5
5
  suggestedAgentPrompt,
6
6
  writeTuiOpenToken
7
- } from "./chunk-22VBUVJW.js";
7
+ } from "./chunk-OFNHHF6P.js";
8
8
  import {
9
9
  installSkills,
10
10
  removeSkills,
@@ -12,14 +12,14 @@ import {
12
12
  } from "./chunk-QIHT27ZG.js";
13
13
  import {
14
14
  MODEL_CATALOG
15
- } from "./chunk-BHNPWYPK.js";
15
+ } from "./chunk-B7MJIWPK.js";
16
16
  import {
17
17
  REEVESAGENTS_VERSION,
18
18
  listRunApprovals,
19
19
  resolveRunApproval,
20
20
  sweepAgents,
21
21
  sweepOrphanSessions
22
- } from "./chunk-6YDLG6FR.js";
22
+ } from "./chunk-CNIU7XLA.js";
23
23
  import {
24
24
  ALLOWED_KEYS,
25
25
  CONFIG_FIELDS,
@@ -66,7 +66,7 @@ import {
66
66
  verifyServerLaunch,
67
67
  windowByName,
68
68
  windowIds
69
- } from "./chunk-BQQ37O7I.js";
69
+ } from "./chunk-LQLSTRGU.js";
70
70
  import "./chunk-Q3WWQP2R.js";
71
71
 
72
72
  // src/surfaces/cli/index.ts
@@ -835,7 +835,7 @@ function registerDetach(program2) {
835
835
  function registerMcp(program2) {
836
836
  program2.command("mcp").description("start the agent control MCP server over stdio (for CLIs that have it attached)").action(async () => {
837
837
  try {
838
- const { startAgentMcpServer } = await import("./server-MXMN3MW7.js");
838
+ const { startAgentMcpServer } = await import("./server-DKWKDBAA.js");
839
839
  await startAgentMcpServer();
840
840
  } catch (err) {
841
841
  console.error(err instanceof Error ? err.message : String(err));
@@ -933,7 +933,7 @@ async function runWeb(opts) {
933
933
  console.error(webExtrasMessage(extras.missing));
934
934
  process.exit(1);
935
935
  }
936
- const { startWebServer } = await import("./server-3JMAMPN2.js");
936
+ const { startWebServer } = await import("./server-AWGT7TDX.js");
937
937
  const parsed = opts.port ? Number.parseInt(opts.port, 10) : void 0;
938
938
  const handle = await startWebServer({
939
939
  port: parsed !== void 0 && Number.isFinite(parsed) ? parsed : void 0,
@@ -1005,12 +1005,12 @@ async function renderTui() {
1005
1005
  const [{ default: React }, { render }, { Router }] = await Promise.all([
1006
1006
  import("react"),
1007
1007
  import("ink"),
1008
- import("./router-XZRLM7DN.js")
1008
+ import("./router-DIZA4N3F.js")
1009
1009
  ]);
1010
1010
  try {
1011
1011
  await render(React.createElement(Router), { alternateScreen: false }).waitUntilExit();
1012
1012
  } finally {
1013
- const { closeTuiWebServer } = await import("./tui-launch-5IIO4JND.js");
1013
+ const { closeTuiWebServer } = await import("./tui-launch-PAG5YUAO.js");
1014
1014
  await closeTuiWebServer();
1015
1015
  }
1016
1016
  process.exit(0);
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  modelDisplayName,
7
7
  modelSourceForProvider,
8
8
  modelValuesForProvider
9
- } from "./chunk-BHNPWYPK.js";
9
+ } from "./chunk-B7MJIWPK.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-BQQ37O7I.js";
42
+ } from "./chunk-LQLSTRGU.js";
43
43
  import "./chunk-Q3WWQP2R.js";
44
44
  export {
45
45
  BIN,
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  buildOnboardingState,
4
4
  readTuiOpenToken
5
- } from "./chunk-22VBUVJW.js";
5
+ } from "./chunk-OFNHHF6P.js";
6
6
  import "./chunk-QIHT27ZG.js";
7
7
  import {
8
8
  translate,
9
9
  translatePhrase
10
- } from "./chunk-D3FETB6O.js";
10
+ } from "./chunk-P4CSYX5H.js";
11
11
  import {
12
12
  modelDisplayName,
13
13
  modelValuesForProvider
14
- } from "./chunk-BHNPWYPK.js";
14
+ } from "./chunk-B7MJIWPK.js";
15
15
  import {
16
16
  REEVESAGENTS_VERSION,
17
17
  listRunApprovals,
18
18
  resolveRunApproval,
19
19
  sweepAgentsThrottled,
20
20
  sweepOrphanSessionsThrottled
21
- } from "./chunk-6YDLG6FR.js";
21
+ } from "./chunk-CNIU7XLA.js";
22
22
  import {
23
23
  CONFIG_FIELDS,
24
24
  DEFAULT_LANGUAGE,
@@ -70,11 +70,11 @@ import {
70
70
  startRunFromPreset,
71
71
  stateRoot,
72
72
  stopRun
73
- } from "./chunk-BQQ37O7I.js";
73
+ } from "./chunk-LQLSTRGU.js";
74
74
  import "./chunk-Q3WWQP2R.js";
75
75
  import {
76
76
  startWebFromTui
77
- } from "./chunk-NHTL5RJP.js";
77
+ } from "./chunk-PMMG4VDO.js";
78
78
 
79
79
  // src/surfaces/tui/router.tsx
80
80
  import { createContext as createContext6, useContext as useContext6, useState as useState37, useCallback as useCallback5, useEffect as useEffect17, useRef as useRef4 } from "react";
@@ -6661,4 +6661,4 @@ export {
6661
6661
  nextHistoryOnReset,
6662
6662
  useRouter
6663
6663
  };
6664
- //# sourceMappingURL=router-XZRLM7DN.js.map
6664
+ //# sourceMappingURL=router-DIZA4N3F.js.map
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  localeCatalog,
4
4
  translatePhrase
5
- } from "./chunk-D3FETB6O.js";
5
+ } from "./chunk-P4CSYX5H.js";
6
6
  import {
7
7
  modelValuesForProvider
8
- } from "./chunk-BHNPWYPK.js";
8
+ } from "./chunk-B7MJIWPK.js";
9
9
  import {
10
10
  REEVESAGENTS_VERSION,
11
11
  listRunApprovals,
12
12
  resolveRunApproval,
13
13
  sweepAgentsThrottled,
14
14
  sweepOrphanSessionsThrottled
15
- } from "./chunk-6YDLG6FR.js";
15
+ } from "./chunk-CNIU7XLA.js";
16
16
  import {
17
17
  CONFIG_FIELDS,
18
18
  LANGUAGE_OPTIONS,
@@ -54,7 +54,7 @@ import {
54
54
  targetExists,
55
55
  tmuxAvailable,
56
56
  verifyServerLaunch
57
- } from "./chunk-BQQ37O7I.js";
57
+ } from "./chunk-LQLSTRGU.js";
58
58
  import "./chunk-Q3WWQP2R.js";
59
59
 
60
60
  // src/surfaces/webui/server.ts
@@ -1025,4 +1025,4 @@ async function startWebServer(options = {}) {
1025
1025
  export {
1026
1026
  startWebServer
1027
1027
  };
1028
- //# sourceMappingURL=server-3JMAMPN2.js.map
1028
+ //# sourceMappingURL=server-AWGT7TDX.js.map
@@ -13,7 +13,7 @@ import {
13
13
  sweepAgentsThrottled,
14
14
  sweepOrphanSessions,
15
15
  sweepOrphanSessionsThrottled
16
- } from "./chunk-6YDLG6FR.js";
16
+ } from "./chunk-CNIU7XLA.js";
17
17
  import {
18
18
  ALLOWED_KEYS,
19
19
  BIN,
@@ -52,7 +52,7 @@ import {
52
52
  startRunFromPreset,
53
53
  startRunWithHead,
54
54
  stopRun
55
- } from "./chunk-BQQ37O7I.js";
55
+ } from "./chunk-LQLSTRGU.js";
56
56
  import "./chunk-Q3WWQP2R.js";
57
57
 
58
58
  // src/surfaces/mcp/server.ts
@@ -727,4 +727,4 @@ export {
727
727
  sessionRunIsLive,
728
728
  startAgentMcpServer
729
729
  };
730
- //# sourceMappingURL=server-MXMN3MW7.js.map
730
+ //# sourceMappingURL=server-DKWKDBAA.js.map
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  closeTuiWebServer,
4
4
  startWebFromTui
5
- } from "./chunk-NHTL5RJP.js";
5
+ } from "./chunk-PMMG4VDO.js";
6
6
  export {
7
7
  closeTuiWebServer,
8
8
  startWebFromTui
9
9
  };
10
- //# sourceMappingURL=tui-launch-5IIO4JND.js.map
10
+ //# sourceMappingURL=tui-launch-PAG5YUAO.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reevesagents",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Local tmux-first workspace manager for AI CLI agents",
5
5
  "mcpName": "io.github.mertkayacs/reevesagents",
6
6
  "type": "module",