@openacp/cli 0.6.8 → 0.6.10

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.
Files changed (99) hide show
  1. package/README.md +100 -154
  2. package/dist/{action-detect-6M5GCGAU.js → action-detect-P7ZE4NEM.js} +2 -1
  3. package/dist/{adapter-7GY3N4ZH.js → adapter-ZOANORGM.js} +8 -7
  4. package/dist/{adapter-7GY3N4ZH.js.map → adapter-ZOANORGM.js.map} +1 -1
  5. package/dist/{admin-2HAFXQBG.js → admin-6SYB6XCZ.js} +2 -1
  6. package/dist/{agent-catalog-SBZQRYOD.js → agent-catalog-FC3HGDEQ.js} +2 -1
  7. package/dist/{agent-dependencies-QY5QSULV.js → agent-dependencies-4OWBMZWZ.js} +2 -1
  8. package/dist/{agent-registry-KZFSIRSJ.js → agent-registry-WT4NXPYG.js} +2 -1
  9. package/dist/{agent-store-CGE4G6PA.js → agent-store-VZLFPTZU.js} +2 -1
  10. package/dist/{agents-QJPHNWK2.js → agents-QO7DKARJ.js} +2 -1
  11. package/dist/{api-client-BH2JFHQW.js → api-client-CFQT5U7D.js} +2 -1
  12. package/dist/{autostart-6M3FZAKW.js → autostart-X33OGMX6.js} +2 -1
  13. package/dist/{chunk-RHE2JSYE.js → chunk-2HMQOC7N.js} +2 -2
  14. package/dist/{chunk-SHHMBGB3.js → chunk-33RP6K2O.js} +2 -2
  15. package/dist/{chunk-5SXG7X5D.js → chunk-CS3KCJ5D.js} +103 -55
  16. package/dist/chunk-CS3KCJ5D.js.map +1 -0
  17. package/dist/{chunk-47B7GNOE.js → chunk-LCRLAV4G.js} +541 -191
  18. package/dist/chunk-LCRLAV4G.js.map +1 -0
  19. package/dist/{chunk-LO4Y5WQ7.js → chunk-LGP2YGRL.js} +7 -7
  20. package/dist/{chunk-LO4Y5WQ7.js.map → chunk-LGP2YGRL.js.map} +1 -1
  21. package/dist/{chunk-MZXWCDBU.js → chunk-MKHUZLII.js} +4 -4
  22. package/dist/chunk-MKHUZLII.js.map +1 -0
  23. package/dist/{chunk-YEOY2PBJ.js → chunk-NVPG6JCL.js} +3 -3
  24. package/dist/{chunk-JUYDFUSN.js → chunk-OWP7RZ62.js} +38 -14
  25. package/dist/chunk-OWP7RZ62.js.map +1 -0
  26. package/dist/{chunk-5OVPEDUB.js → chunk-VOIJ6OY4.js} +2 -2
  27. package/dist/chunk-VUNV25KB.js +16 -0
  28. package/dist/{chunk-2J2RBYWN.js → chunk-WTZDAYZX.js} +2 -2
  29. package/dist/cli.js +53 -47
  30. package/dist/cli.js.map +1 -1
  31. package/dist/{config-CQAS6YHR.js → config-6S355X75.js} +3 -2
  32. package/dist/config-editor-QQTZMWGD.js +13 -0
  33. package/dist/{config-registry-HDXFES2D.js → config-registry-AHYI4MYL.js} +2 -1
  34. package/dist/{daemon-K33ZPSEZ.js → daemon-4CS6HMB5.js} +4 -3
  35. package/dist/{discord-VOHXRTCH.js → discord-OMC52Y54.js} +251 -94
  36. package/dist/discord-OMC52Y54.js.map +1 -0
  37. package/dist/dist-UHQK5CXN.js +21151 -0
  38. package/dist/dist-UHQK5CXN.js.map +1 -0
  39. package/dist/doctor-HZZ5BSHB.js +10 -0
  40. package/dist/{doctor-HASEBMUD.js → doctor-OLYBO3V3.js} +5 -4
  41. package/dist/index.js +11 -10
  42. package/dist/{install-cloudflared-FSILDS5J.js → install-cloudflared-Z7VCGOVG.js} +2 -1
  43. package/dist/{install-cloudflared-FSILDS5J.js.map → install-cloudflared-Z7VCGOVG.js.map} +1 -1
  44. package/dist/{install-jq-P6RUBKPV.js → install-jq-HUYSQWKR.js} +2 -1
  45. package/dist/{install-jq-P6RUBKPV.js.map → install-jq-HUYSQWKR.js.map} +1 -1
  46. package/dist/{integrate-O4OCR4SN.js → integrate-PNEHRY2I.js} +2 -1
  47. package/dist/{integrate-O4OCR4SN.js.map → integrate-PNEHRY2I.js.map} +1 -1
  48. package/dist/{log-RCVBXLTN.js → log-NXABYJTT.js} +2 -1
  49. package/dist/{main-DUXVFTDD.js → main-XOZCLFUK.js} +21 -20
  50. package/dist/main-XOZCLFUK.js.map +1 -0
  51. package/dist/{menu-XR2GET2B.js → menu-YY5MKHEK.js} +2 -1
  52. package/dist/{new-session-NHK7TOEW.js → new-session-FEO4J4VU.js} +2 -1
  53. package/dist/{post-upgrade-62LUHDJO.js → post-upgrade-CJG5I7M2.js} +6 -5
  54. package/dist/{post-upgrade-62LUHDJO.js.map → post-upgrade-CJG5I7M2.js.map} +1 -1
  55. package/dist/{session-O6ZPLJIZ.js → session-IUSI7P5S.js} +2 -1
  56. package/dist/{settings-6TF4WIGJ.js → settings-RQPAM4KC.js} +2 -1
  57. package/dist/{setup-RJCEB6FS.js → setup-XHS4OMPM.js} +6 -3
  58. package/dist/{suggest-RST5VOHB.js → suggest-7D6B542M.js} +3 -1
  59. package/dist/{suggest-RST5VOHB.js.map → suggest-7D6B542M.js.map} +1 -1
  60. package/dist/{tunnel-service-NJJH4I26.js → tunnel-service-CJLUH6SZ.js} +3 -2
  61. package/dist/{tunnel-service-NJJH4I26.js.map → tunnel-service-CJLUH6SZ.js.map} +1 -1
  62. package/dist/{version-AXXV6IV2.js → version-NQZBM5M7.js} +2 -1
  63. package/dist/version-NQZBM5M7.js.map +1 -0
  64. package/package.json +15 -1
  65. package/dist/chunk-47B7GNOE.js.map +0 -1
  66. package/dist/chunk-5SXG7X5D.js.map +0 -1
  67. package/dist/chunk-JUYDFUSN.js.map +0 -1
  68. package/dist/chunk-MZXWCDBU.js.map +0 -1
  69. package/dist/config-editor-37BM56WF.js +0 -12
  70. package/dist/discord-VOHXRTCH.js.map +0 -1
  71. package/dist/doctor-W4VGLDVM.js +0 -9
  72. package/dist/main-DUXVFTDD.js.map +0 -1
  73. /package/dist/{action-detect-6M5GCGAU.js.map → action-detect-P7ZE4NEM.js.map} +0 -0
  74. /package/dist/{admin-2HAFXQBG.js.map → admin-6SYB6XCZ.js.map} +0 -0
  75. /package/dist/{agent-catalog-SBZQRYOD.js.map → agent-catalog-FC3HGDEQ.js.map} +0 -0
  76. /package/dist/{agent-dependencies-QY5QSULV.js.map → agent-dependencies-4OWBMZWZ.js.map} +0 -0
  77. /package/dist/{agent-registry-KZFSIRSJ.js.map → agent-registry-WT4NXPYG.js.map} +0 -0
  78. /package/dist/{agent-store-CGE4G6PA.js.map → agent-store-VZLFPTZU.js.map} +0 -0
  79. /package/dist/{agents-QJPHNWK2.js.map → agents-QO7DKARJ.js.map} +0 -0
  80. /package/dist/{api-client-BH2JFHQW.js.map → api-client-CFQT5U7D.js.map} +0 -0
  81. /package/dist/{autostart-6M3FZAKW.js.map → autostart-X33OGMX6.js.map} +0 -0
  82. /package/dist/{chunk-RHE2JSYE.js.map → chunk-2HMQOC7N.js.map} +0 -0
  83. /package/dist/{chunk-SHHMBGB3.js.map → chunk-33RP6K2O.js.map} +0 -0
  84. /package/dist/{chunk-YEOY2PBJ.js.map → chunk-NVPG6JCL.js.map} +0 -0
  85. /package/dist/{chunk-5OVPEDUB.js.map → chunk-VOIJ6OY4.js.map} +0 -0
  86. /package/dist/{config-CQAS6YHR.js.map → chunk-VUNV25KB.js.map} +0 -0
  87. /package/dist/{chunk-2J2RBYWN.js.map → chunk-WTZDAYZX.js.map} +0 -0
  88. /package/dist/{config-editor-37BM56WF.js.map → config-6S355X75.js.map} +0 -0
  89. /package/dist/{config-registry-HDXFES2D.js.map → config-editor-QQTZMWGD.js.map} +0 -0
  90. /package/dist/{daemon-K33ZPSEZ.js.map → config-registry-AHYI4MYL.js.map} +0 -0
  91. /package/dist/{doctor-HASEBMUD.js.map → daemon-4CS6HMB5.js.map} +0 -0
  92. /package/dist/{doctor-W4VGLDVM.js.map → doctor-HZZ5BSHB.js.map} +0 -0
  93. /package/dist/{log-RCVBXLTN.js.map → doctor-OLYBO3V3.js.map} +0 -0
  94. /package/dist/{menu-XR2GET2B.js.map → log-NXABYJTT.js.map} +0 -0
  95. /package/dist/{new-session-NHK7TOEW.js.map → menu-YY5MKHEK.js.map} +0 -0
  96. /package/dist/{session-O6ZPLJIZ.js.map → new-session-FEO4J4VU.js.map} +0 -0
  97. /package/dist/{settings-6TF4WIGJ.js.map → session-IUSI7P5S.js.map} +0 -0
  98. /package/dist/{setup-RJCEB6FS.js.map → settings-RQPAM4KC.js.map} +0 -0
  99. /package/dist/{version-AXXV6IV2.js.map → setup-XHS4OMPM.js.map} +0 -0
package/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  installPlugin,
4
4
  listPlugins,
5
5
  uninstallPlugin
6
- } from "./chunk-5OVPEDUB.js";
7
- import "./chunk-SHHMBGB3.js";
6
+ } from "./chunk-VOIJ6OY4.js";
7
+ import "./chunk-33RP6K2O.js";
8
8
  import "./chunk-GAK6PIBW.js";
9
9
  import {
10
10
  apiCall,
@@ -18,6 +18,7 @@ import {
18
18
  getLatestVersion,
19
19
  runUpdate
20
20
  } from "./chunk-S64CB6J3.js";
21
+ import "./chunk-VUNV25KB.js";
21
22
 
22
23
  // src/cli.ts
23
24
  import { setDefaultAutoSelectFamily } from "net";
@@ -97,7 +98,7 @@ Connect messaging platforms (Telegram, Discord) to 28+ AI coding agents via ACP
97
98
  `);
98
99
  }
99
100
  async function cmdVersion() {
100
- const { getCurrentVersion: getCurrentVersion2 } = await import("./version-AXXV6IV2.js");
101
+ const { getCurrentVersion: getCurrentVersion2 } = await import("./version-NQZBM5M7.js");
101
102
  console.log(`openacp v${getCurrentVersion2()}`);
102
103
  }
103
104
  async function cmdInstall(args2) {
@@ -717,7 +718,7 @@ Shows the version of the currently running daemon process.
717
718
  }
718
719
  console.log(`Daemon version: ${data.version}`);
719
720
  } else {
720
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
721
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
721
722
  const apiSubcommands = [
722
723
  "new",
723
724
  "cancel",
@@ -773,8 +774,8 @@ Requires an existing config \u2014 run 'openacp' first to set up.
773
774
  return;
774
775
  }
775
776
  await checkAndPromptUpdate();
776
- const { startDaemon, getPidPath } = await import("./daemon-K33ZPSEZ.js");
777
- const { ConfigManager } = await import("./config-CQAS6YHR.js");
777
+ const { startDaemon, getPidPath } = await import("./daemon-4CS6HMB5.js");
778
+ const { ConfigManager } = await import("./config-6S355X75.js");
778
779
  const cm = new ConfigManager();
779
780
  if (await cm.exists()) {
780
781
  await cm.load();
@@ -802,7 +803,7 @@ Sends a stop signal to the running OpenACP daemon process.
802
803
  `);
803
804
  return;
804
805
  }
805
- const { stopDaemon } = await import("./daemon-K33ZPSEZ.js");
806
+ const { stopDaemon } = await import("./daemon-4CS6HMB5.js");
806
807
  const result = await stopDaemon();
807
808
  if (result.stopped) {
808
809
  console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
@@ -823,7 +824,7 @@ Shows whether the OpenACP daemon is running and its PID.
823
824
  `);
824
825
  return;
825
826
  }
826
- const { getStatus } = await import("./daemon-K33ZPSEZ.js");
827
+ const { getStatus } = await import("./daemon-4CS6HMB5.js");
827
828
  const status = getStatus();
828
829
  if (status.running) {
829
830
  console.log(`OpenACP is running (PID ${status.pid})`);
@@ -847,7 +848,7 @@ Log file location is configured in config (default: ~/.openacp/logs/).
847
848
  return;
848
849
  }
849
850
  const { spawn } = await import("child_process");
850
- const { ConfigManager, expandHome } = await import("./config-CQAS6YHR.js");
851
+ const { ConfigManager, expandHome } = await import("./config-6S355X75.js");
851
852
  const pathMod = await import("path");
852
853
  const cm = new ConfigManager();
853
854
  let logDir = "~/.openacp/logs";
@@ -917,11 +918,11 @@ the API for live updates. When stopped, edits config file directly.
917
918
  console.error("Usage: openacp config set <path> <value>");
918
919
  process.exit(1);
919
920
  }
920
- const { ConfigSchema } = await import("./config-CQAS6YHR.js");
921
+ const { ConfigSchema } = await import("./config-6S355X75.js");
921
922
  const topLevelKey = configPath.split(".")[0];
922
923
  const validConfigKeys = Object.keys(ConfigSchema.shape);
923
924
  if (!validConfigKeys.includes(topLevelKey)) {
924
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
925
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
925
926
  const suggestion = suggestMatch(topLevelKey, validConfigKeys);
926
927
  console.error(`Unknown config key: ${topLevelKey}`);
927
928
  if (suggestion) console.error(`Did you mean: ${suggestion}?`);
@@ -949,7 +950,7 @@ the API for live updates. When stopped, edits config file directly.
949
950
  console.log("Note: restart required for this change to take effect.");
950
951
  }
951
952
  } else {
952
- const { ConfigManager: ConfigManager2 } = await import("./config-CQAS6YHR.js");
953
+ const { ConfigManager: ConfigManager2 } = await import("./config-6S355X75.js");
953
954
  const cm2 = new ConfigManager2();
954
955
  if (!await cm2.exists()) {
955
956
  console.error('No config found. Run "openacp" first to set up.');
@@ -962,8 +963,8 @@ the API for live updates. When stopped, edits config file directly.
962
963
  }
963
964
  return;
964
965
  }
965
- const { runConfigEditor } = await import("./config-editor-37BM56WF.js");
966
- const { ConfigManager } = await import("./config-CQAS6YHR.js");
966
+ const { runConfigEditor } = await import("./config-editor-QQTZMWGD.js");
967
+ const { ConfigManager } = await import("./config-6S355X75.js");
967
968
  const cm = new ConfigManager();
968
969
  if (!await cm.exists()) {
969
970
  console.error('No config found. Run "openacp" first to set up.');
@@ -1002,7 +1003,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
1002
1003
  `);
1003
1004
  return;
1004
1005
  }
1005
- const { getStatus } = await import("./daemon-K33ZPSEZ.js");
1006
+ const { getStatus } = await import("./daemon-4CS6HMB5.js");
1006
1007
  const status = getStatus();
1007
1008
  if (status.running) {
1008
1009
  console.error("OpenACP is running. Stop it first: openacp stop");
@@ -1017,7 +1018,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
1017
1018
  console.log("Aborted.");
1018
1019
  return;
1019
1020
  }
1020
- const { uninstallAutoStart } = await import("./autostart-6M3FZAKW.js");
1021
+ const { uninstallAutoStart } = await import("./autostart-X33OGMX6.js");
1021
1022
  uninstallAutoStart();
1022
1023
  const fs = await import("fs");
1023
1024
  const os = await import("os");
@@ -1102,7 +1103,7 @@ as a messaging thread. Requires a running daemon.
1102
1103
  process.exit(1);
1103
1104
  }
1104
1105
  try {
1105
- const { apiCall: apiCall2 } = await import("./api-client-BH2JFHQW.js");
1106
+ const { apiCall: apiCall2 } = await import("./api-client-CFQT5U7D.js");
1106
1107
  const res = await apiCall2(port, "/api/sessions/adopt", {
1107
1108
  method: "POST",
1108
1109
  headers: { "Content-Type": "application/json" },
@@ -1152,7 +1153,7 @@ a "Handoff" slash command to Claude Code.
1152
1153
  `);
1153
1154
  return;
1154
1155
  }
1155
- const { getIntegration, listIntegrations } = await import("./integrate-O4OCR4SN.js");
1156
+ const { getIntegration, listIntegrations } = await import("./integrate-PNEHRY2I.js");
1156
1157
  const agent = args2[1];
1157
1158
  const uninstall = args2.includes("--uninstall");
1158
1159
  if (!agent) {
@@ -1162,7 +1163,7 @@ a "Handoff" slash command to Claude Code.
1162
1163
  }
1163
1164
  const integration = getIntegration(agent);
1164
1165
  if (!integration) {
1165
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1166
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1166
1167
  const available = listIntegrations();
1167
1168
  const suggestion = suggestMatch(agent, available);
1168
1169
  console.log(`No integration available for '${agent}'.`);
@@ -1217,7 +1218,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
1217
1218
  (a) => a.startsWith("--") && !knownFlags.includes(a)
1218
1219
  );
1219
1220
  if (unknownFlags.length > 0) {
1220
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1221
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1221
1222
  for (const flag of unknownFlags) {
1222
1223
  const suggestion = suggestMatch(flag, knownFlags);
1223
1224
  console.error(`Unknown flag: ${flag}`);
@@ -1226,7 +1227,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
1226
1227
  process.exit(1);
1227
1228
  }
1228
1229
  const dryRun = args2.includes("--dry-run");
1229
- const { DoctorEngine } = await import("./doctor-W4VGLDVM.js");
1230
+ const { DoctorEngine } = await import("./doctor-HZZ5BSHB.js");
1230
1231
  const engine = new DoctorEngine({ dryRun });
1231
1232
  console.log("\n\u{1FA7A} OpenACP Doctor\n");
1232
1233
  const report = await engine.runAll();
@@ -1403,7 +1404,7 @@ bypassing the normal staleness check.
1403
1404
  case void 0:
1404
1405
  return agentsList();
1405
1406
  default: {
1406
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1407
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1407
1408
  const agentSubcommands = ["install", "uninstall", "refresh", "info", "run", "list"];
1408
1409
  const suggestion = suggestMatch(subcommand, agentSubcommands);
1409
1410
  console.error(`Unknown agents command: ${subcommand}`);
@@ -1415,7 +1416,7 @@ Run 'openacp agents' to see available agents.`);
1415
1416
  }
1416
1417
  }
1417
1418
  async function agentsList() {
1418
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1419
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1419
1420
  const catalog = new AgentCatalog();
1420
1421
  catalog.load();
1421
1422
  await catalog.refreshRegistryIfStale();
@@ -1478,7 +1479,7 @@ Run 'openacp agents' to see available agents.
1478
1479
  `);
1479
1480
  return;
1480
1481
  }
1481
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1482
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1482
1483
  const catalog = new AgentCatalog();
1483
1484
  catalog.load();
1484
1485
  await catalog.refreshRegistryIfStale();
@@ -1513,17 +1514,17 @@ Run 'openacp agents' to see available agents.
1513
1514
  const result = await catalog.install(nameOrId, progress, force);
1514
1515
  if (!result.ok) {
1515
1516
  if (result.error?.includes("not found")) {
1516
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1517
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1517
1518
  const allKeys = catalog.getAvailable().map((a) => a.key);
1518
1519
  const suggestion = suggestMatch(nameOrId, allKeys);
1519
1520
  if (suggestion) console.log(` Did you mean: ${suggestion}?`);
1520
1521
  }
1521
1522
  process.exit(1);
1522
1523
  }
1523
- const { getAgentCapabilities } = await import("./agent-dependencies-QY5QSULV.js");
1524
+ const { getAgentCapabilities } = await import("./agent-dependencies-4OWBMZWZ.js");
1524
1525
  const caps = getAgentCapabilities(result.agentKey);
1525
1526
  if (caps.integration) {
1526
- const { installIntegration } = await import("./integrate-O4OCR4SN.js");
1527
+ const { installIntegration } = await import("./integrate-PNEHRY2I.js");
1527
1528
  const intResult = await installIntegration(result.agentKey, caps.integration);
1528
1529
  if (intResult.success) {
1529
1530
  console.log(` \x1B[32m\u2713\x1B[0m Handoff integration installed for ${result.agentKey}`);
@@ -1557,15 +1558,15 @@ async function agentsUninstall(name, help = false) {
1557
1558
  `);
1558
1559
  return;
1559
1560
  }
1560
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1561
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1561
1562
  const catalog = new AgentCatalog();
1562
1563
  catalog.load();
1563
1564
  const result = await catalog.uninstall(name);
1564
1565
  if (result.ok) {
1565
- const { getAgentCapabilities } = await import("./agent-dependencies-QY5QSULV.js");
1566
+ const { getAgentCapabilities } = await import("./agent-dependencies-4OWBMZWZ.js");
1566
1567
  const caps = getAgentCapabilities(name);
1567
1568
  if (caps.integration) {
1568
- const { uninstallIntegration } = await import("./integrate-O4OCR4SN.js");
1569
+ const { uninstallIntegration } = await import("./integrate-PNEHRY2I.js");
1569
1570
  await uninstallIntegration(name, caps.integration);
1570
1571
  console.log(` \x1B[32m\u2713\x1B[0m Handoff integration removed for ${name}`);
1571
1572
  }
@@ -1576,7 +1577,7 @@ async function agentsUninstall(name, help = false) {
1576
1577
  console.log(`
1577
1578
  \x1B[31m\u2717 ${result.error}\x1B[0m`);
1578
1579
  if (result.error?.includes("not installed")) {
1579
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1580
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1580
1581
  const installedKeys = Object.keys(catalog.getInstalledEntries());
1581
1582
  const suggestion = suggestMatch(name, installedKeys);
1582
1583
  if (suggestion) console.log(` Did you mean: ${suggestion}?`);
@@ -1585,7 +1586,7 @@ async function agentsUninstall(name, help = false) {
1585
1586
  }
1586
1587
  }
1587
1588
  async function agentsRefresh() {
1588
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1589
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1589
1590
  const catalog = new AgentCatalog();
1590
1591
  catalog.load();
1591
1592
  console.log("\n Updating agent list...");
@@ -1612,10 +1613,10 @@ whether the agent is installed or available from the registry.
1612
1613
  `);
1613
1614
  return;
1614
1615
  }
1615
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1616
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1616
1617
  const catalog = new AgentCatalog();
1617
1618
  catalog.load();
1618
- const { getAgentSetup } = await import("./agent-dependencies-QY5QSULV.js");
1619
+ const { getAgentSetup } = await import("./agent-dependencies-4OWBMZWZ.js");
1619
1620
  const installed = catalog.getInstalledAgent(nameOrId);
1620
1621
  if (installed) {
1621
1622
  console.log(`
@@ -1662,7 +1663,7 @@ whether the agent is installed or available from the registry.
1662
1663
  `);
1663
1664
  return;
1664
1665
  }
1665
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1666
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1666
1667
  const allKeys = catalog.getAvailable().map((a) => a.key);
1667
1668
  const suggestion = suggestMatch(nameOrId, allKeys);
1668
1669
  console.log(`
@@ -1693,12 +1694,12 @@ ACP-specific flags are automatically stripped.
1693
1694
  `);
1694
1695
  return;
1695
1696
  }
1696
- const { AgentCatalog } = await import("./agent-catalog-SBZQRYOD.js");
1697
+ const { AgentCatalog } = await import("./agent-catalog-FC3HGDEQ.js");
1697
1698
  const catalog = new AgentCatalog();
1698
1699
  catalog.load();
1699
1700
  const installed = catalog.getInstalledAgent(nameOrId);
1700
1701
  if (!installed) {
1701
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1702
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1702
1703
  const installedKeys = Object.keys(catalog.getInstalledEntries());
1703
1704
  const suggestion = suggestMatch(nameOrId, installedKeys);
1704
1705
  console.log(`
@@ -1742,15 +1743,20 @@ ACP-specific flags are automatically stripped.
1742
1743
  }
1743
1744
  }
1744
1745
  async function cmdOnboard() {
1745
- const { ConfigManager } = await import("./config-CQAS6YHR.js");
1746
+ const { ConfigManager } = await import("./config-6S355X75.js");
1746
1747
  const cm = new ConfigManager();
1747
- const { runSetup } = await import("./setup-RJCEB6FS.js");
1748
- await runSetup(cm, { skipRunMode: true });
1748
+ if (await cm.exists()) {
1749
+ const { runReconfigure } = await import("./setup-XHS4OMPM.js");
1750
+ await runReconfigure(cm);
1751
+ } else {
1752
+ const { runSetup } = await import("./setup-XHS4OMPM.js");
1753
+ await runSetup(cm, { skipRunMode: true });
1754
+ }
1749
1755
  }
1750
1756
  async function cmdDefault(command2) {
1751
1757
  const forceForeground = command2 === "--foreground";
1752
1758
  if (command2 && !command2.startsWith("-")) {
1753
- const { suggestMatch } = await import("./suggest-RST5VOHB.js");
1759
+ const { suggestMatch } = await import("./suggest-7D6B542M.js");
1754
1760
  const topLevelCommands = [
1755
1761
  "start",
1756
1762
  "stop",
@@ -1776,17 +1782,17 @@ async function cmdDefault(command2) {
1776
1782
  process.exit(1);
1777
1783
  }
1778
1784
  await checkAndPromptUpdate();
1779
- const { ConfigManager } = await import("./config-CQAS6YHR.js");
1785
+ const { ConfigManager } = await import("./config-6S355X75.js");
1780
1786
  const cm = new ConfigManager();
1781
1787
  if (!await cm.exists()) {
1782
- const { runSetup } = await import("./setup-RJCEB6FS.js");
1788
+ const { runSetup } = await import("./setup-XHS4OMPM.js");
1783
1789
  const shouldStart = await runSetup(cm);
1784
1790
  if (!shouldStart) process.exit(0);
1785
1791
  }
1786
1792
  await cm.load();
1787
1793
  const config = cm.get();
1788
1794
  if (!forceForeground && config.runMode === "daemon") {
1789
- const { startDaemon, getPidPath } = await import("./daemon-K33ZPSEZ.js");
1795
+ const { startDaemon, getPidPath } = await import("./daemon-4CS6HMB5.js");
1790
1796
  const result = startDaemon(getPidPath(), config.logging.logDir);
1791
1797
  if ("error" in result) {
1792
1798
  console.error(result.error);
@@ -1795,9 +1801,9 @@ async function cmdDefault(command2) {
1795
1801
  console.log(`OpenACP daemon started (PID ${result.pid})`);
1796
1802
  return;
1797
1803
  }
1798
- const { markRunning } = await import("./daemon-K33ZPSEZ.js");
1804
+ const { markRunning } = await import("./daemon-4CS6HMB5.js");
1799
1805
  markRunning();
1800
- const { startServer } = await import("./main-DUXVFTDD.js");
1806
+ const { startServer } = await import("./main-XOZCLFUK.js");
1801
1807
  await startServer();
1802
1808
  }
1803
1809
 
@@ -1828,7 +1834,7 @@ var commands = {
1828
1834
  "tunnel": () => cmdTunnel(args),
1829
1835
  "onboard": () => cmdOnboard(),
1830
1836
  "--daemon-child": async () => {
1831
- const { startServer } = await import("./main-DUXVFTDD.js");
1837
+ const { startServer } = await import("./main-XOZCLFUK.js");
1832
1838
  await startServer();
1833
1839
  }
1834
1840
  };