@openacp/cli 0.6.4 → 0.6.6

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 (49) hide show
  1. package/dist/adapter-RKK7A5GI.js +798 -0
  2. package/dist/adapter-RKK7A5GI.js.map +1 -0
  3. package/dist/{chunk-DJIXG62C.js → chunk-3IRAWHMC.js} +3 -3
  4. package/dist/{chunk-L5KZXYJD.js → chunk-3ZO3MHZN.js} +21 -2
  5. package/dist/chunk-3ZO3MHZN.js.map +1 -0
  6. package/dist/chunk-4GQ3I65A.js +23 -0
  7. package/dist/chunk-4GQ3I65A.js.map +1 -0
  8. package/dist/{chunk-TNFXJQZP.js → chunk-7KZI2236.js} +2 -2
  9. package/dist/{chunk-E56PPPAE.js → chunk-AHPRT3RY.js} +382 -4034
  10. package/dist/chunk-AHPRT3RY.js.map +1 -0
  11. package/dist/{chunk-FMWSVLRM.js → chunk-FCLGYYTY.js} +1 -21
  12. package/dist/chunk-FCLGYYTY.js.map +1 -0
  13. package/dist/{chunk-TOQPQB5Q.js → chunk-PJVKOZTR.js} +2 -2
  14. package/dist/{chunk-DOCFD5JR.js → chunk-WVMSP4AF.js} +2 -2
  15. package/dist/{chunk-3CHBVO4T.js → chunk-XVL6AGMG.js} +2 -2
  16. package/dist/{chunk-N6E3HE42.js → chunk-ZKTIZME6.js} +2 -2
  17. package/dist/chunk-ZMVVW3BK.js +4771 -0
  18. package/dist/chunk-ZMVVW3BK.js.map +1 -0
  19. package/dist/cli.js +21 -21
  20. package/dist/{config-XDUOULXX.js → config-B26J3XXN.js} +2 -2
  21. package/dist/{config-editor-3GGBY7NL.js → config-editor-QTGUK3CD.js} +4 -4
  22. package/dist/{daemon-QY7WXHQ3.js → daemon-5DS5BQXJ.js} +3 -3
  23. package/dist/{discord-4DE22BQC.js → discord-QKT3JMRW.js} +14 -12
  24. package/dist/{discord-4DE22BQC.js.map → discord-QKT3JMRW.js.map} +1 -1
  25. package/dist/doctor-6SUCVUZB.js +9 -0
  26. package/dist/{doctor-D3YZ6VHJ.js → doctor-QQ3YZEYV.js} +4 -4
  27. package/dist/index.d.ts +246 -12
  28. package/dist/index.js +17 -10
  29. package/dist/{main-GVTLD7VI.js → main-B5L3DD3Y.js} +25 -17
  30. package/dist/main-B5L3DD3Y.js.map +1 -0
  31. package/dist/{setup-D6BU36ZL.js → setup-5ZKSUR26.js} +3 -3
  32. package/package.json +5 -1
  33. package/dist/chunk-E56PPPAE.js.map +0 -1
  34. package/dist/chunk-FMWSVLRM.js.map +0 -1
  35. package/dist/chunk-L5KZXYJD.js.map +0 -1
  36. package/dist/doctor-SNSQ5SS2.js +0 -9
  37. package/dist/main-GVTLD7VI.js.map +0 -1
  38. /package/dist/{chunk-DJIXG62C.js.map → chunk-3IRAWHMC.js.map} +0 -0
  39. /package/dist/{chunk-TNFXJQZP.js.map → chunk-7KZI2236.js.map} +0 -0
  40. /package/dist/{chunk-TOQPQB5Q.js.map → chunk-PJVKOZTR.js.map} +0 -0
  41. /package/dist/{chunk-DOCFD5JR.js.map → chunk-WVMSP4AF.js.map} +0 -0
  42. /package/dist/{chunk-3CHBVO4T.js.map → chunk-XVL6AGMG.js.map} +0 -0
  43. /package/dist/{chunk-N6E3HE42.js.map → chunk-ZKTIZME6.js.map} +0 -0
  44. /package/dist/{config-XDUOULXX.js.map → config-B26J3XXN.js.map} +0 -0
  45. /package/dist/{config-editor-3GGBY7NL.js.map → config-editor-QTGUK3CD.js.map} +0 -0
  46. /package/dist/{daemon-QY7WXHQ3.js.map → daemon-5DS5BQXJ.js.map} +0 -0
  47. /package/dist/{doctor-D3YZ6VHJ.js.map → doctor-6SUCVUZB.js.map} +0 -0
  48. /package/dist/{doctor-SNSQ5SS2.js.map → doctor-QQ3YZEYV.js.map} +0 -0
  49. /package/dist/{setup-D6BU36ZL.js.map → setup-5ZKSUR26.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-3CHBVO4T.js";
7
- import "./chunk-L5KZXYJD.js";
6
+ } from "./chunk-XVL6AGMG.js";
7
+ import "./chunk-3ZO3MHZN.js";
8
8
  import "./chunk-GAK6PIBW.js";
9
9
  import {
10
10
  apiCall,
@@ -773,8 +773,8 @@ Requires an existing config \u2014 run 'openacp' first to set up.
773
773
  return;
774
774
  }
775
775
  await checkAndPromptUpdate();
776
- const { startDaemon, getPidPath } = await import("./daemon-QY7WXHQ3.js");
777
- const { ConfigManager } = await import("./config-XDUOULXX.js");
776
+ const { startDaemon, getPidPath } = await import("./daemon-5DS5BQXJ.js");
777
+ const { ConfigManager } = await import("./config-B26J3XXN.js");
778
778
  const cm = new ConfigManager();
779
779
  if (await cm.exists()) {
780
780
  await cm.load();
@@ -802,7 +802,7 @@ Sends a stop signal to the running OpenACP daemon process.
802
802
  `);
803
803
  return;
804
804
  }
805
- const { stopDaemon } = await import("./daemon-QY7WXHQ3.js");
805
+ const { stopDaemon } = await import("./daemon-5DS5BQXJ.js");
806
806
  const result = await stopDaemon();
807
807
  if (result.stopped) {
808
808
  console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
@@ -823,7 +823,7 @@ Shows whether the OpenACP daemon is running and its PID.
823
823
  `);
824
824
  return;
825
825
  }
826
- const { getStatus } = await import("./daemon-QY7WXHQ3.js");
826
+ const { getStatus } = await import("./daemon-5DS5BQXJ.js");
827
827
  const status = getStatus();
828
828
  if (status.running) {
829
829
  console.log(`OpenACP is running (PID ${status.pid})`);
@@ -847,7 +847,7 @@ Log file location is configured in config (default: ~/.openacp/logs/).
847
847
  return;
848
848
  }
849
849
  const { spawn } = await import("child_process");
850
- const { ConfigManager, expandHome } = await import("./config-XDUOULXX.js");
850
+ const { ConfigManager, expandHome } = await import("./config-B26J3XXN.js");
851
851
  const pathMod = await import("path");
852
852
  const cm = new ConfigManager();
853
853
  let logDir = "~/.openacp/logs";
@@ -917,7 +917,7 @@ the API for live updates. When stopped, edits config file directly.
917
917
  console.error("Usage: openacp config set <path> <value>");
918
918
  process.exit(1);
919
919
  }
920
- const { ConfigSchema } = await import("./config-XDUOULXX.js");
920
+ const { ConfigSchema } = await import("./config-B26J3XXN.js");
921
921
  const topLevelKey = configPath.split(".")[0];
922
922
  const validConfigKeys = Object.keys(ConfigSchema.shape);
923
923
  if (!validConfigKeys.includes(topLevelKey)) {
@@ -949,7 +949,7 @@ the API for live updates. When stopped, edits config file directly.
949
949
  console.log("Note: restart required for this change to take effect.");
950
950
  }
951
951
  } else {
952
- const { ConfigManager: ConfigManager2 } = await import("./config-XDUOULXX.js");
952
+ const { ConfigManager: ConfigManager2 } = await import("./config-B26J3XXN.js");
953
953
  const cm2 = new ConfigManager2();
954
954
  if (!await cm2.exists()) {
955
955
  console.error('No config found. Run "openacp" first to set up.');
@@ -962,8 +962,8 @@ the API for live updates. When stopped, edits config file directly.
962
962
  }
963
963
  return;
964
964
  }
965
- const { runConfigEditor } = await import("./config-editor-3GGBY7NL.js");
966
- const { ConfigManager } = await import("./config-XDUOULXX.js");
965
+ const { runConfigEditor } = await import("./config-editor-QTGUK3CD.js");
966
+ const { ConfigManager } = await import("./config-B26J3XXN.js");
967
967
  const cm = new ConfigManager();
968
968
  if (!await cm.exists()) {
969
969
  console.error('No config found. Run "openacp" first to set up.');
@@ -1002,7 +1002,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
1002
1002
  `);
1003
1003
  return;
1004
1004
  }
1005
- const { getStatus } = await import("./daemon-QY7WXHQ3.js");
1005
+ const { getStatus } = await import("./daemon-5DS5BQXJ.js");
1006
1006
  const status = getStatus();
1007
1007
  if (status.running) {
1008
1008
  console.error("OpenACP is running. Stop it first: openacp stop");
@@ -1226,7 +1226,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
1226
1226
  process.exit(1);
1227
1227
  }
1228
1228
  const dryRun = args2.includes("--dry-run");
1229
- const { DoctorEngine } = await import("./doctor-SNSQ5SS2.js");
1229
+ const { DoctorEngine } = await import("./doctor-6SUCVUZB.js");
1230
1230
  const engine = new DoctorEngine({ dryRun });
1231
1231
  console.log("\n\u{1FA7A} OpenACP Doctor\n");
1232
1232
  const report = await engine.runAll();
@@ -1742,9 +1742,9 @@ ACP-specific flags are automatically stripped.
1742
1742
  }
1743
1743
  }
1744
1744
  async function cmdOnboard() {
1745
- const { ConfigManager } = await import("./config-XDUOULXX.js");
1745
+ const { ConfigManager } = await import("./config-B26J3XXN.js");
1746
1746
  const cm = new ConfigManager();
1747
- const { runSetup } = await import("./setup-D6BU36ZL.js");
1747
+ const { runSetup } = await import("./setup-5ZKSUR26.js");
1748
1748
  await runSetup(cm, { skipRunMode: true });
1749
1749
  }
1750
1750
  async function cmdDefault(command2) {
@@ -1776,17 +1776,17 @@ async function cmdDefault(command2) {
1776
1776
  process.exit(1);
1777
1777
  }
1778
1778
  await checkAndPromptUpdate();
1779
- const { ConfigManager } = await import("./config-XDUOULXX.js");
1779
+ const { ConfigManager } = await import("./config-B26J3XXN.js");
1780
1780
  const cm = new ConfigManager();
1781
1781
  if (!await cm.exists()) {
1782
- const { runSetup } = await import("./setup-D6BU36ZL.js");
1782
+ const { runSetup } = await import("./setup-5ZKSUR26.js");
1783
1783
  const shouldStart = await runSetup(cm);
1784
1784
  if (!shouldStart) process.exit(0);
1785
1785
  }
1786
1786
  await cm.load();
1787
1787
  const config = cm.get();
1788
1788
  if (!forceForeground && config.runMode === "daemon") {
1789
- const { startDaemon, getPidPath } = await import("./daemon-QY7WXHQ3.js");
1789
+ const { startDaemon, getPidPath } = await import("./daemon-5DS5BQXJ.js");
1790
1790
  const result = startDaemon(getPidPath(), config.logging.logDir);
1791
1791
  if ("error" in result) {
1792
1792
  console.error(result.error);
@@ -1795,9 +1795,9 @@ async function cmdDefault(command2) {
1795
1795
  console.log(`OpenACP daemon started (PID ${result.pid})`);
1796
1796
  return;
1797
1797
  }
1798
- const { markRunning } = await import("./daemon-QY7WXHQ3.js");
1798
+ const { markRunning } = await import("./daemon-5DS5BQXJ.js");
1799
1799
  markRunning();
1800
- const { startServer } = await import("./main-GVTLD7VI.js");
1800
+ const { startServer } = await import("./main-B5L3DD3Y.js");
1801
1801
  await startServer();
1802
1802
  }
1803
1803
 
@@ -1828,7 +1828,7 @@ var commands = {
1828
1828
  "tunnel": () => cmdTunnel(args),
1829
1829
  "onboard": () => cmdOnboard(),
1830
1830
  "--daemon-child": async () => {
1831
- const { startServer } = await import("./main-GVTLD7VI.js");
1831
+ const { startServer } = await import("./main-B5L3DD3Y.js");
1832
1832
  await startServer();
1833
1833
  }
1834
1834
  };
@@ -3,7 +3,7 @@ import {
3
3
  ConfigSchema,
4
4
  PLUGINS_DIR,
5
5
  expandHome
6
- } from "./chunk-L5KZXYJD.js";
6
+ } from "./chunk-3ZO3MHZN.js";
7
7
  import "./chunk-GAK6PIBW.js";
8
8
  export {
9
9
  ConfigManager,
@@ -11,4 +11,4 @@ export {
11
11
  PLUGINS_DIR,
12
12
  expandHome
13
13
  };
14
- //# sourceMappingURL=config-XDUOULXX.js.map
14
+ //# sourceMappingURL=config-B26J3XXN.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  runConfigEditor
3
- } from "./chunk-DJIXG62C.js";
3
+ } from "./chunk-3IRAWHMC.js";
4
4
  import "./chunk-2CJ46J3C.js";
5
- import "./chunk-N6E3HE42.js";
5
+ import "./chunk-ZKTIZME6.js";
6
6
  import "./chunk-JKBFUAJK.js";
7
- import "./chunk-L5KZXYJD.js";
7
+ import "./chunk-3ZO3MHZN.js";
8
8
  import "./chunk-GAK6PIBW.js";
9
9
  export {
10
10
  runConfigEditor
11
11
  };
12
- //# sourceMappingURL=config-editor-3GGBY7NL.js.map
12
+ //# sourceMappingURL=config-editor-QTGUK3CD.js.map
@@ -10,8 +10,8 @@ import {
10
10
  startDaemon,
11
11
  stopDaemon,
12
12
  writePidFile
13
- } from "./chunk-DOCFD5JR.js";
14
- import "./chunk-L5KZXYJD.js";
13
+ } from "./chunk-WVMSP4AF.js";
14
+ import "./chunk-3ZO3MHZN.js";
15
15
  import "./chunk-GAK6PIBW.js";
16
16
  export {
17
17
  clearRunning,
@@ -26,4 +26,4 @@ export {
26
26
  stopDaemon,
27
27
  writePidFile
28
28
  };
29
- //# sourceMappingURL=daemon-QY7WXHQ3.js.map
29
+ //# sourceMappingURL=daemon-5DS5BQXJ.js.map
@@ -1,3 +1,8 @@
1
+ import {
2
+ buildActionKeyboard,
3
+ detectAction,
4
+ storeAction
5
+ } from "./chunk-I7WC6E5S.js";
1
6
  import {
2
7
  handleNew,
3
8
  handleNewChat,
@@ -38,20 +43,17 @@ import {
38
43
  import {
39
44
  handleDoctor,
40
45
  handleDoctorButton
41
- } from "./chunk-TNFXJQZP.js";
46
+ } from "./chunk-7KZI2236.js";
42
47
  import {
43
- buildActionKeyboard,
44
- detectAction,
45
- storeAction
46
- } from "./chunk-I7WC6E5S.js";
47
- import {
48
- ChannelAdapter,
49
48
  PRODUCT_GUIDE,
50
49
  dispatchMessage
51
- } from "./chunk-FMWSVLRM.js";
52
- import "./chunk-TOQPQB5Q.js";
50
+ } from "./chunk-FCLGYYTY.js";
51
+ import "./chunk-PJVKOZTR.js";
52
+ import {
53
+ ChannelAdapter
54
+ } from "./chunk-4GQ3I65A.js";
53
55
  import "./chunk-F3AICYO4.js";
54
- import "./chunk-L5KZXYJD.js";
56
+ import "./chunk-3ZO3MHZN.js";
55
57
  import {
56
58
  log
57
59
  } from "./chunk-GAK6PIBW.js";
@@ -1074,7 +1076,7 @@ async function handleMenuButton(interaction, adapter) {
1074
1076
  break;
1075
1077
  }
1076
1078
  case "m:doctor": {
1077
- const { runDoctorInline } = await import("./doctor-D3YZ6VHJ.js");
1079
+ const { runDoctorInline } = await import("./doctor-QQ3YZEYV.js");
1078
1080
  await runDoctorInline(interaction, adapter);
1079
1081
  break;
1080
1082
  }
@@ -2095,4 +2097,4 @@ ${notification.deepLink}`;
2095
2097
  export {
2096
2098
  DiscordAdapter
2097
2099
  };
2098
- //# sourceMappingURL=discord-4DE22BQC.js.map
2100
+ //# sourceMappingURL=discord-QKT3JMRW.js.map