@openacp/cli 0.6.0 → 0.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.
Files changed (54) hide show
  1. package/README.md +11 -2
  2. package/dist/{chunk-MHFCZGRW.js → chunk-2KJC3ILH.js} +13 -3
  3. package/dist/{chunk-MHFCZGRW.js.map → chunk-2KJC3ILH.js.map} +1 -1
  4. package/dist/{chunk-DWQKUECJ.js → chunk-4LFDEW22.js} +42 -4
  5. package/dist/chunk-4LFDEW22.js.map +1 -0
  6. package/dist/{chunk-Z46LGZ7R.js → chunk-4TR5Y3MP.js} +18 -1
  7. package/dist/chunk-4TR5Y3MP.js.map +1 -0
  8. package/dist/{chunk-IURZ4QHG.js → chunk-7QJS2XBD.js} +2 -1
  9. package/dist/chunk-7QJS2XBD.js.map +1 -0
  10. package/dist/{chunk-3WPG7GXA.js → chunk-GINCOFNW.js} +2 -2
  11. package/dist/{chunk-437NLISU.js → chunk-IMILOCR5.js} +2 -2
  12. package/dist/{chunk-5NBWM7P6.js → chunk-LGQYTK55.js} +5 -1
  13. package/dist/chunk-LGQYTK55.js.map +1 -0
  14. package/dist/{chunk-V2V767XI.js → chunk-R3UJUOXI.js} +842 -162
  15. package/dist/chunk-R3UJUOXI.js.map +1 -0
  16. package/dist/{chunk-YYQXWA62.js → chunk-TOZQ3JFN.js} +2 -2
  17. package/dist/{chunk-6Q7PZWCL.js → chunk-UB7XUO7C.js} +3 -3
  18. package/dist/{chunk-SPX7CKWV.js → chunk-ZCHNAM3B.js} +2 -2
  19. package/dist/cli.js +19 -19
  20. package/dist/{config-KF2MQWAP.js → config-AK2W3E67.js} +2 -2
  21. package/dist/{config-editor-OTODXUF7.js → config-editor-VIA7A72X.js} +4 -4
  22. package/dist/{config-registry-SNKA2EH2.js → config-registry-QQOJ2GQP.js} +2 -2
  23. package/dist/{daemon-U6UC7OM4.js → daemon-G27YZUWB.js} +3 -3
  24. package/dist/{discord-SLLKRUP7.js → discord-2DKRH45T.js} +16 -6
  25. package/dist/discord-2DKRH45T.js.map +1 -0
  26. package/dist/doctor-AN6AZ3PF.js +9 -0
  27. package/dist/{doctor-DB5PRQ6D.js → doctor-CHCYUTV5.js} +4 -4
  28. package/dist/index.d.ts +320 -3
  29. package/dist/index.js +18 -10
  30. package/dist/{main-M6RH3SS5.js → main-56SPFYW4.js} +16 -16
  31. package/dist/{menu-J5YVH665.js → menu-XR2GET2B.js} +2 -2
  32. package/dist/{setup-LI5CKYDK.js → setup-IPWJCIJM.js} +3 -3
  33. package/package.json +1 -1
  34. package/dist/chunk-5NBWM7P6.js.map +0 -1
  35. package/dist/chunk-DWQKUECJ.js.map +0 -1
  36. package/dist/chunk-IURZ4QHG.js.map +0 -1
  37. package/dist/chunk-V2V767XI.js.map +0 -1
  38. package/dist/chunk-Z46LGZ7R.js.map +0 -1
  39. package/dist/discord-SLLKRUP7.js.map +0 -1
  40. package/dist/doctor-SYWNJFYK.js +0 -9
  41. /package/dist/{chunk-3WPG7GXA.js.map → chunk-GINCOFNW.js.map} +0 -0
  42. /package/dist/{chunk-437NLISU.js.map → chunk-IMILOCR5.js.map} +0 -0
  43. /package/dist/{chunk-YYQXWA62.js.map → chunk-TOZQ3JFN.js.map} +0 -0
  44. /package/dist/{chunk-6Q7PZWCL.js.map → chunk-UB7XUO7C.js.map} +0 -0
  45. /package/dist/{chunk-SPX7CKWV.js.map → chunk-ZCHNAM3B.js.map} +0 -0
  46. /package/dist/{config-KF2MQWAP.js.map → config-AK2W3E67.js.map} +0 -0
  47. /package/dist/{config-editor-OTODXUF7.js.map → config-editor-VIA7A72X.js.map} +0 -0
  48. /package/dist/{config-registry-SNKA2EH2.js.map → config-registry-QQOJ2GQP.js.map} +0 -0
  49. /package/dist/{daemon-U6UC7OM4.js.map → daemon-G27YZUWB.js.map} +0 -0
  50. /package/dist/{doctor-DB5PRQ6D.js.map → doctor-AN6AZ3PF.js.map} +0 -0
  51. /package/dist/{doctor-SYWNJFYK.js.map → doctor-CHCYUTV5.js.map} +0 -0
  52. /package/dist/{main-M6RH3SS5.js.map → main-56SPFYW4.js.map} +0 -0
  53. /package/dist/{menu-J5YVH665.js.map → menu-XR2GET2B.js.map} +0 -0
  54. /package/dist/{setup-LI5CKYDK.js.map → setup-IPWJCIJM.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  expandHome
3
- } from "./chunk-DWQKUECJ.js";
3
+ } from "./chunk-4LFDEW22.js";
4
4
 
5
5
  // src/core/daemon.ts
6
6
  import { spawn } from "child_process";
@@ -169,4 +169,4 @@ export {
169
169
  clearRunning,
170
170
  shouldAutoStart
171
171
  };
172
- //# sourceMappingURL=chunk-YYQXWA62.js.map
172
+ //# sourceMappingURL=chunk-TOZQ3JFN.js.map
@@ -8,10 +8,10 @@ import {
8
8
  validateBotToken,
9
9
  validateChatId,
10
10
  validateDiscordToken
11
- } from "./chunk-MHFCZGRW.js";
11
+ } from "./chunk-2KJC3ILH.js";
12
12
  import {
13
13
  expandHome
14
- } from "./chunk-DWQKUECJ.js";
14
+ } from "./chunk-4LFDEW22.js";
15
15
 
16
16
  // src/core/config-editor.ts
17
17
  import { select, input } from "@inquirer/prompts";
@@ -706,4 +706,4 @@ function flattenToPaths(obj, prefix = "") {
706
706
  export {
707
707
  runConfigEditor
708
708
  };
709
- //# sourceMappingURL=chunk-6Q7PZWCL.js.map
709
+ //# sourceMappingURL=chunk-UB7XUO7C.js.map
@@ -3,7 +3,7 @@ import {
3
3
  ConfigSchema,
4
4
  applyMigrations,
5
5
  expandHome
6
- } from "./chunk-DWQKUECJ.js";
6
+ } from "./chunk-4LFDEW22.js";
7
7
 
8
8
  // src/core/doctor/index.ts
9
9
  import * as fs8 from "fs";
@@ -721,4 +721,4 @@ var DoctorEngine = class {
721
721
  export {
722
722
  DoctorEngine
723
723
  };
724
- //# sourceMappingURL=chunk-SPX7CKWV.js.map
724
+ //# sourceMappingURL=chunk-ZCHNAM3B.js.map
package/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  installPlugin,
4
4
  listPlugins,
5
5
  uninstallPlugin
6
- } from "./chunk-437NLISU.js";
7
- import "./chunk-DWQKUECJ.js";
6
+ } from "./chunk-IMILOCR5.js";
7
+ import "./chunk-4LFDEW22.js";
8
8
  import "./chunk-ESOPMQAY.js";
9
9
  import {
10
10
  apiCall,
@@ -771,8 +771,8 @@ Requires an existing config \u2014 run 'openacp' first to set up.
771
771
  return;
772
772
  }
773
773
  await checkAndPromptUpdate();
774
- const { startDaemon, getPidPath } = await import("./daemon-U6UC7OM4.js");
775
- const { ConfigManager } = await import("./config-KF2MQWAP.js");
774
+ const { startDaemon, getPidPath } = await import("./daemon-G27YZUWB.js");
775
+ const { ConfigManager } = await import("./config-AK2W3E67.js");
776
776
  const cm = new ConfigManager();
777
777
  if (await cm.exists()) {
778
778
  await cm.load();
@@ -800,7 +800,7 @@ Sends a stop signal to the running OpenACP daemon process.
800
800
  `);
801
801
  return;
802
802
  }
803
- const { stopDaemon } = await import("./daemon-U6UC7OM4.js");
803
+ const { stopDaemon } = await import("./daemon-G27YZUWB.js");
804
804
  const result = await stopDaemon();
805
805
  if (result.stopped) {
806
806
  console.log(`OpenACP daemon stopped (was PID ${result.pid})`);
@@ -821,7 +821,7 @@ Shows whether the OpenACP daemon is running and its PID.
821
821
  `);
822
822
  return;
823
823
  }
824
- const { getStatus } = await import("./daemon-U6UC7OM4.js");
824
+ const { getStatus } = await import("./daemon-G27YZUWB.js");
825
825
  const status = getStatus();
826
826
  if (status.running) {
827
827
  console.log(`OpenACP is running (PID ${status.pid})`);
@@ -845,7 +845,7 @@ Log file location is configured in config (default: ~/.openacp/logs/).
845
845
  return;
846
846
  }
847
847
  const { spawn } = await import("child_process");
848
- const { ConfigManager, expandHome } = await import("./config-KF2MQWAP.js");
848
+ const { ConfigManager, expandHome } = await import("./config-AK2W3E67.js");
849
849
  const pathMod = await import("path");
850
850
  const cm = new ConfigManager();
851
851
  let logDir = "~/.openacp/logs";
@@ -915,7 +915,7 @@ the API for live updates. When stopped, edits config file directly.
915
915
  console.error("Usage: openacp config set <path> <value>");
916
916
  process.exit(1);
917
917
  }
918
- const { ConfigSchema } = await import("./config-KF2MQWAP.js");
918
+ const { ConfigSchema } = await import("./config-AK2W3E67.js");
919
919
  const topLevelKey = configPath.split(".")[0];
920
920
  const validConfigKeys = Object.keys(ConfigSchema.shape);
921
921
  if (!validConfigKeys.includes(topLevelKey)) {
@@ -947,7 +947,7 @@ the API for live updates. When stopped, edits config file directly.
947
947
  console.log("Note: restart required for this change to take effect.");
948
948
  }
949
949
  } else {
950
- const { ConfigManager: ConfigManager2 } = await import("./config-KF2MQWAP.js");
950
+ const { ConfigManager: ConfigManager2 } = await import("./config-AK2W3E67.js");
951
951
  const cm2 = new ConfigManager2();
952
952
  if (!await cm2.exists()) {
953
953
  console.error('No config found. Run "openacp" first to set up.');
@@ -960,8 +960,8 @@ the API for live updates. When stopped, edits config file directly.
960
960
  }
961
961
  return;
962
962
  }
963
- const { runConfigEditor } = await import("./config-editor-OTODXUF7.js");
964
- const { ConfigManager } = await import("./config-KF2MQWAP.js");
963
+ const { runConfigEditor } = await import("./config-editor-VIA7A72X.js");
964
+ const { ConfigManager } = await import("./config-AK2W3E67.js");
965
965
  const cm = new ConfigManager();
966
966
  if (!await cm.exists()) {
967
967
  console.error('No config found. Run "openacp" first to set up.');
@@ -1000,7 +1000,7 @@ start fresh with the setup wizard. The daemon must be stopped first.
1000
1000
  `);
1001
1001
  return;
1002
1002
  }
1003
- const { getStatus } = await import("./daemon-U6UC7OM4.js");
1003
+ const { getStatus } = await import("./daemon-G27YZUWB.js");
1004
1004
  const status = getStatus();
1005
1005
  if (status.running) {
1006
1006
  console.error("OpenACP is running. Stop it first: openacp stop");
@@ -1220,7 +1220,7 @@ Fixable issues can be auto-repaired when not using --dry-run.
1220
1220
  process.exit(1);
1221
1221
  }
1222
1222
  const dryRun = args2.includes("--dry-run");
1223
- const { DoctorEngine } = await import("./doctor-SYWNJFYK.js");
1223
+ const { DoctorEngine } = await import("./doctor-AN6AZ3PF.js");
1224
1224
  const engine = new DoctorEngine({ dryRun });
1225
1225
  console.log("\n\u{1FA7A} OpenACP Doctor\n");
1226
1226
  const report = await engine.runAll();
@@ -1762,17 +1762,17 @@ async function cmdDefault(command2) {
1762
1762
  process.exit(1);
1763
1763
  }
1764
1764
  await checkAndPromptUpdate();
1765
- const { ConfigManager } = await import("./config-KF2MQWAP.js");
1765
+ const { ConfigManager } = await import("./config-AK2W3E67.js");
1766
1766
  const cm = new ConfigManager();
1767
1767
  if (!await cm.exists()) {
1768
- const { runSetup } = await import("./setup-LI5CKYDK.js");
1768
+ const { runSetup } = await import("./setup-IPWJCIJM.js");
1769
1769
  const shouldStart = await runSetup(cm);
1770
1770
  if (!shouldStart) process.exit(0);
1771
1771
  }
1772
1772
  await cm.load();
1773
1773
  const config = cm.get();
1774
1774
  if (!forceForeground && config.runMode === "daemon") {
1775
- const { startDaemon, getPidPath } = await import("./daemon-U6UC7OM4.js");
1775
+ const { startDaemon, getPidPath } = await import("./daemon-G27YZUWB.js");
1776
1776
  const result = startDaemon(getPidPath(), config.logging.logDir);
1777
1777
  if ("error" in result) {
1778
1778
  console.error(result.error);
@@ -1781,9 +1781,9 @@ async function cmdDefault(command2) {
1781
1781
  console.log(`OpenACP daemon started (PID ${result.pid})`);
1782
1782
  return;
1783
1783
  }
1784
- const { markRunning } = await import("./daemon-U6UC7OM4.js");
1784
+ const { markRunning } = await import("./daemon-G27YZUWB.js");
1785
1785
  markRunning();
1786
- const { startServer } = await import("./main-M6RH3SS5.js");
1786
+ const { startServer } = await import("./main-56SPFYW4.js");
1787
1787
  await startServer();
1788
1788
  }
1789
1789
 
@@ -1813,7 +1813,7 @@ var commands = {
1813
1813
  "agents": () => cmdAgents(args),
1814
1814
  "tunnel": () => cmdTunnel(args),
1815
1815
  "--daemon-child": async () => {
1816
- const { startServer } = await import("./main-M6RH3SS5.js");
1816
+ const { startServer } = await import("./main-56SPFYW4.js");
1817
1817
  await startServer();
1818
1818
  }
1819
1819
  };
@@ -3,7 +3,7 @@ import {
3
3
  ConfigSchema,
4
4
  PLUGINS_DIR,
5
5
  expandHome
6
- } from "./chunk-DWQKUECJ.js";
6
+ } from "./chunk-4LFDEW22.js";
7
7
  import "./chunk-ESOPMQAY.js";
8
8
  export {
9
9
  ConfigManager,
@@ -11,4 +11,4 @@ export {
11
11
  PLUGINS_DIR,
12
12
  expandHome
13
13
  };
14
- //# sourceMappingURL=config-KF2MQWAP.js.map
14
+ //# sourceMappingURL=config-AK2W3E67.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  runConfigEditor
3
- } from "./chunk-6Q7PZWCL.js";
3
+ } from "./chunk-UB7XUO7C.js";
4
4
  import "./chunk-PMGNLNSH.js";
5
- import "./chunk-MHFCZGRW.js";
5
+ import "./chunk-2KJC3ILH.js";
6
6
  import "./chunk-JKBFUAJK.js";
7
- import "./chunk-DWQKUECJ.js";
7
+ import "./chunk-4LFDEW22.js";
8
8
  import "./chunk-ESOPMQAY.js";
9
9
  export {
10
10
  runConfigEditor
11
11
  };
12
- //# sourceMappingURL=config-editor-OTODXUF7.js.map
12
+ //# sourceMappingURL=config-editor-VIA7A72X.js.map
@@ -5,7 +5,7 @@ import {
5
5
  getSafeFields,
6
6
  isHotReloadable,
7
7
  resolveOptions
8
- } from "./chunk-Z46LGZ7R.js";
8
+ } from "./chunk-4TR5Y3MP.js";
9
9
  export {
10
10
  CONFIG_REGISTRY,
11
11
  getConfigValue,
@@ -14,4 +14,4 @@ export {
14
14
  isHotReloadable,
15
15
  resolveOptions
16
16
  };
17
- //# sourceMappingURL=config-registry-SNKA2EH2.js.map
17
+ //# sourceMappingURL=config-registry-QQOJ2GQP.js.map
@@ -10,8 +10,8 @@ import {
10
10
  startDaemon,
11
11
  stopDaemon,
12
12
  writePidFile
13
- } from "./chunk-YYQXWA62.js";
14
- import "./chunk-DWQKUECJ.js";
13
+ } from "./chunk-TOZQ3JFN.js";
14
+ import "./chunk-4LFDEW22.js";
15
15
  import "./chunk-ESOPMQAY.js";
16
16
  export {
17
17
  clearRunning,
@@ -26,4 +26,4 @@ export {
26
26
  stopDaemon,
27
27
  writePidFile
28
28
  };
29
- //# sourceMappingURL=daemon-U6UC7OM4.js.map
29
+ //# sourceMappingURL=daemon-G27YZUWB.js.map
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  handleDoctor,
19
19
  handleDoctorButton
20
- } from "./chunk-3WPG7GXA.js";
20
+ } from "./chunk-GINCOFNW.js";
21
21
  import {
22
22
  buildActionKeyboard,
23
23
  detectAction,
@@ -45,9 +45,9 @@ import {
45
45
  import {
46
46
  ChannelAdapter,
47
47
  PRODUCT_GUIDE
48
- } from "./chunk-5NBWM7P6.js";
49
- import "./chunk-SPX7CKWV.js";
50
- import "./chunk-DWQKUECJ.js";
48
+ } from "./chunk-LGQYTK55.js";
49
+ import "./chunk-ZCHNAM3B.js";
50
+ import "./chunk-4LFDEW22.js";
51
51
  import {
52
52
  log
53
53
  } from "./chunk-ESOPMQAY.js";
@@ -1048,7 +1048,7 @@ async function handleMenuButton(interaction, adapter) {
1048
1048
  break;
1049
1049
  }
1050
1050
  case "m:doctor": {
1051
- const { runDoctorInline } = await import("./doctor-DB5PRQ6D.js");
1051
+ const { runDoctorInline } = await import("./doctor-CHCYUTV5.js");
1052
1052
  await runDoctorInline(interaction, adapter);
1053
1053
  break;
1054
1054
  }
@@ -1926,6 +1926,16 @@ var DiscordAdapter = class extends ChannelAdapter {
1926
1926
  }
1927
1927
  break;
1928
1928
  }
1929
+ case "system_message": {
1930
+ try {
1931
+ await this.sendQueue.enqueue(
1932
+ () => thread.send({ content: content.text }),
1933
+ { type: "other" }
1934
+ );
1935
+ } catch {
1936
+ }
1937
+ break;
1938
+ }
1929
1939
  }
1930
1940
  }
1931
1941
  // ─── sendPermissionRequest ────────────────────────────────────────────────
@@ -2031,4 +2041,4 @@ ${notification.deepLink}`;
2031
2041
  export {
2032
2042
  DiscordAdapter
2033
2043
  };
2034
- //# sourceMappingURL=discord-SLLKRUP7.js.map
2044
+ //# sourceMappingURL=discord-2DKRH45T.js.map