@openacp/cli 2026.327.2 → 2026.327.5

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 (42) hide show
  1. package/dist/{adapter-LC2QSDAS.js → adapter-JQFQ3JAO.js} +3 -3
  2. package/dist/{adapter-Y55NXX6I.js → adapter-UORRGHNH.js} +32 -8
  3. package/dist/adapter-UORRGHNH.js.map +1 -0
  4. package/dist/{chunk-TRXBJEZ5.js → chunk-32LVIEPW.js} +49 -19
  5. package/dist/chunk-32LVIEPW.js.map +1 -0
  6. package/dist/{chunk-UMT7RU77.js → chunk-HRKAXFWR.js} +2 -2
  7. package/dist/{chunk-36YQ44D7.js → chunk-P2G275VD.js} +2 -2
  8. package/dist/{chunk-HUWOFP2H.js → chunk-S3ZGPPXY.js} +3 -3
  9. package/dist/{chunk-LP45RCA4.js → chunk-XWDW3XBE.js} +338 -414
  10. package/dist/chunk-XWDW3XBE.js.map +1 -0
  11. package/dist/{chunk-3ASUU6WW.js → chunk-ZNSO2QVC.js} +2 -2
  12. package/dist/cli.js +60 -40
  13. package/dist/cli.js.map +1 -1
  14. package/dist/{config-editor-3IKBPZA7.js → config-editor-7PKW42GZ.js} +2 -2
  15. package/dist/{core-plugins-ROU4GPLT.js → core-plugins-Y5US6RED.js} +4 -4
  16. package/dist/index.d.ts +92 -93
  17. package/dist/index.js +35 -5
  18. package/dist/index.js.map +1 -1
  19. package/dist/{main-UVTZ46WP.js → main-3GF3EQTE.js} +8 -8
  20. package/dist/plugin-installer-QVJP6VKV.js +42 -0
  21. package/dist/plugin-installer-QVJP6VKV.js.map +1 -0
  22. package/dist/{setup-EYAFK2WI.js → setup-A7VPW46C.js} +8 -6
  23. package/dist/setup-A7VPW46C.js.map +1 -0
  24. package/dist/{slack-37ZWBDUI.js → slack-2XNWBOWH.js} +2 -2
  25. package/dist/{telegram-2ZCCCZIY.js → telegram-E65IWFBW.js} +2 -2
  26. package/package.json +1 -1
  27. package/dist/adapter-Y55NXX6I.js.map +0 -1
  28. package/dist/chunk-LP45RCA4.js.map +0 -1
  29. package/dist/chunk-TRXBJEZ5.js.map +0 -1
  30. package/dist/plugin-installer-GQ2P3Q3E.js +0 -23
  31. package/dist/plugin-installer-GQ2P3Q3E.js.map +0 -1
  32. package/dist/setup-EYAFK2WI.js.map +0 -1
  33. /package/dist/{adapter-LC2QSDAS.js.map → adapter-JQFQ3JAO.js.map} +0 -0
  34. /package/dist/{chunk-UMT7RU77.js.map → chunk-HRKAXFWR.js.map} +0 -0
  35. /package/dist/{chunk-36YQ44D7.js.map → chunk-P2G275VD.js.map} +0 -0
  36. /package/dist/{chunk-HUWOFP2H.js.map → chunk-S3ZGPPXY.js.map} +0 -0
  37. /package/dist/{chunk-3ASUU6WW.js.map → chunk-ZNSO2QVC.js.map} +0 -0
  38. /package/dist/{config-editor-3IKBPZA7.js.map → config-editor-7PKW42GZ.js.map} +0 -0
  39. /package/dist/{core-plugins-ROU4GPLT.js.map → core-plugins-Y5US6RED.js.map} +0 -0
  40. /package/dist/{main-UVTZ46WP.js.map → main-3GF3EQTE.js.map} +0 -0
  41. /package/dist/{slack-37ZWBDUI.js.map → slack-2XNWBOWH.js.map} +0 -0
  42. /package/dist/{telegram-2ZCCCZIY.js.map → telegram-E65IWFBW.js.map} +0 -0
@@ -100,7 +100,7 @@ function createSlackPlugin() {
100
100
  ctx.log.info("Slack disabled (missing botToken or appToken)");
101
101
  return;
102
102
  }
103
- const { SlackAdapter } = await import("./adapter-Y55NXX6I.js");
103
+ const { SlackAdapter } = await import("./adapter-UORRGHNH.js");
104
104
  adapter = new SlackAdapter(ctx.core, {
105
105
  ...config,
106
106
  enabled: true,
@@ -121,4 +121,4 @@ var slack_default = createSlackPlugin();
121
121
  export {
122
122
  slack_default
123
123
  };
124
- //# sourceMappingURL=chunk-3ASUU6WW.js.map
124
+ //# sourceMappingURL=chunk-ZNSO2QVC.js.map
package/dist/cli.js CHANGED
@@ -207,10 +207,10 @@ Shows all plugins registered in the plugin registry.
207
207
  `);
208
208
  return;
209
209
  }
210
- const os = await import("os");
211
- const path4 = await import("path");
210
+ const os3 = await import("os");
211
+ const path6 = await import("path");
212
212
  const { PluginRegistry } = await import("./plugin-registry-WB3DR67H.js");
213
- const registryPath = path4.join(os.homedir(), ".openacp", "plugins.json");
213
+ const registryPath = path6.join(os3.homedir(), ".openacp", "plugins.json");
214
214
  const registry = new PluginRegistry(registryPath);
215
215
  await registry.load();
216
216
  const plugins = registry.list();
@@ -321,10 +321,10 @@ async function cmdPlugin(args2 = []) {
321
321
  }
322
322
  }
323
323
  async function setPluginEnabled(name, enabled) {
324
- const os = await import("os");
325
- const path4 = await import("path");
324
+ const os3 = await import("os");
325
+ const path6 = await import("path");
326
326
  const { PluginRegistry } = await import("./plugin-registry-WB3DR67H.js");
327
- const registryPath = path4.join(os.homedir(), ".openacp", "plugins.json");
327
+ const registryPath = path6.join(os3.homedir(), ".openacp", "plugins.json");
328
328
  const registry = new PluginRegistry(registryPath);
329
329
  await registry.load();
330
330
  const entry = registry.get(name);
@@ -337,9 +337,9 @@ async function setPluginEnabled(name, enabled) {
337
337
  console.log(`Plugin ${name} ${enabled ? "enabled" : "disabled"}. Restart to apply.`);
338
338
  }
339
339
  async function configurePlugin(name) {
340
- const os = await import("os");
341
- const path4 = await import("path");
342
- const { corePlugins } = await import("./core-plugins-ROU4GPLT.js");
340
+ const os3 = await import("os");
341
+ const path6 = await import("path");
342
+ const { corePlugins } = await import("./core-plugins-Y5US6RED.js");
343
343
  const { SettingsManager } = await import("./settings-manager-MD2U4ZV2.js");
344
344
  const { createInstallContext } = await import("./install-context-XPWTFT3J.js");
345
345
  const plugin = corePlugins.find((p) => p.name === name);
@@ -347,7 +347,7 @@ async function configurePlugin(name) {
347
347
  console.error(`Plugin "${name}" not found.`);
348
348
  process.exit(1);
349
349
  }
350
- const basePath = path4.join(os.homedir(), ".openacp", "plugins");
350
+ const basePath = path6.join(os3.homedir(), ".openacp", "plugins");
351
351
  const settingsManager = new SettingsManager(basePath);
352
352
  const ctx = createInstallContext({ pluginName: name, settingsManager, basePath });
353
353
  if (plugin.configure) {
@@ -359,8 +359,8 @@ async function configurePlugin(name) {
359
359
  }
360
360
  }
361
361
  async function installPlugin(input) {
362
- const os = await import("os");
363
- const path4 = await import("path");
362
+ const os3 = await import("os");
363
+ const path6 = await import("path");
364
364
  const { execSync: execSync3 } = await import("child_process");
365
365
  const { getCurrentVersion: getCurrentVersion2 } = await import("./version-NQZBM5M7.js");
366
366
  const { SettingsManager } = await import("./settings-manager-MD2U4ZV2.js");
@@ -408,11 +408,11 @@ async function installPlugin(input) {
408
408
  }
409
409
  const installSpec = pkgVersion ? `${pkgName}@${pkgVersion}` : pkgName;
410
410
  console.log(`Installing ${installSpec}...`);
411
- const { corePlugins } = await import("./core-plugins-ROU4GPLT.js");
411
+ const { corePlugins } = await import("./core-plugins-Y5US6RED.js");
412
412
  const builtinPlugin = corePlugins.find((p) => p.name === pkgName);
413
- const basePath = path4.join(os.homedir(), ".openacp", "plugins");
413
+ const basePath = path6.join(os3.homedir(), ".openacp", "plugins");
414
414
  const settingsManager = new SettingsManager(basePath);
415
- const registryPath = path4.join(os.homedir(), ".openacp", "plugins.json");
415
+ const registryPath = path6.join(os3.homedir(), ".openacp", "plugins.json");
416
416
  const pluginRegistry = new PluginRegistry(registryPath);
417
417
  await pluginRegistry.load();
418
418
  if (builtinPlugin) {
@@ -431,8 +431,8 @@ async function installPlugin(input) {
431
431
  console.log(`\u2713 ${builtinPlugin.name} installed! Restart to activate.`);
432
432
  return;
433
433
  }
434
- const pluginsDir = path4.join(os.homedir(), ".openacp", "plugins");
435
- const nodeModulesDir = path4.join(pluginsDir, "node_modules");
434
+ const pluginsDir = path6.join(os3.homedir(), ".openacp", "plugins");
435
+ const nodeModulesDir = path6.join(pluginsDir, "node_modules");
436
436
  try {
437
437
  execSync3(`npm install ${installSpec} --prefix "${pluginsDir}" --save`, {
438
438
  stdio: "inherit",
@@ -444,7 +444,7 @@ async function installPlugin(input) {
444
444
  }
445
445
  const cliVersion = getCurrentVersion2();
446
446
  try {
447
- const installedPkgPath = path4.join(nodeModulesDir, pkgName, "package.json");
447
+ const installedPkgPath = path6.join(nodeModulesDir, pkgName, "package.json");
448
448
  const { readFileSync } = await import("fs");
449
449
  const installedPkg = JSON.parse(readFileSync(installedPkgPath, "utf-8"));
450
450
  const minVersion = installedPkg.engines?.openacp?.replace(/[>=^~\s]/g, "");
@@ -457,7 +457,7 @@ async function installPlugin(input) {
457
457
  `);
458
458
  }
459
459
  }
460
- const pluginModule = await import(path4.join(nodeModulesDir, pkgName, installedPkg.main ?? "dist/index.js"));
460
+ const pluginModule = await import(path6.join(nodeModulesDir, pkgName, installedPkg.main ?? "dist/index.js"));
461
461
  const plugin = pluginModule.default;
462
462
  if (plugin?.install) {
463
463
  const ctx = createInstallContext({ pluginName: plugin.name ?? pkgName, settingsManager, basePath });
@@ -484,11 +484,11 @@ async function installPlugin(input) {
484
484
  }
485
485
  }
486
486
  async function uninstallPlugin(name, purge) {
487
- const os = await import("os");
488
- const path4 = await import("path");
487
+ const os3 = await import("os");
488
+ const path6 = await import("path");
489
489
  const fs4 = await import("fs");
490
490
  const { PluginRegistry } = await import("./plugin-registry-WB3DR67H.js");
491
- const registryPath = path4.join(os.homedir(), ".openacp", "plugins.json");
491
+ const registryPath = path6.join(os3.homedir(), ".openacp", "plugins.json");
492
492
  const registry = new PluginRegistry(registryPath);
493
493
  await registry.load();
494
494
  const entry = registry.get(name);
@@ -501,12 +501,12 @@ async function uninstallPlugin(name, purge) {
501
501
  process.exit(1);
502
502
  }
503
503
  try {
504
- const { corePlugins } = await import("./core-plugins-ROU4GPLT.js");
504
+ const { corePlugins } = await import("./core-plugins-Y5US6RED.js");
505
505
  const plugin = corePlugins.find((p) => p.name === name);
506
506
  if (plugin?.uninstall) {
507
507
  const { SettingsManager } = await import("./settings-manager-MD2U4ZV2.js");
508
508
  const { createInstallContext } = await import("./install-context-XPWTFT3J.js");
509
- const basePath = path4.join(os.homedir(), ".openacp", "plugins");
509
+ const basePath = path6.join(os3.homedir(), ".openacp", "plugins");
510
510
  const settingsManager = new SettingsManager(basePath);
511
511
  const ctx = createInstallContext({ pluginName: name, settingsManager, basePath });
512
512
  await plugin.uninstall(ctx, { purge });
@@ -514,7 +514,7 @@ async function uninstallPlugin(name, purge) {
514
514
  } catch {
515
515
  }
516
516
  if (purge) {
517
- const pluginDir = path4.join(os.homedir(), ".openacp", "plugins", name);
517
+ const pluginDir = path6.join(os3.homedir(), ".openacp", "plugins", name);
518
518
  fs4.rmSync(pluginDir, { recursive: true, force: true });
519
519
  }
520
520
  registry.remove(name);
@@ -1331,7 +1331,7 @@ the API for live updates. When stopped, edits config file directly.
1331
1331
  }
1332
1332
  return;
1333
1333
  }
1334
- const { runConfigEditor } = await import("./config-editor-3IKBPZA7.js");
1334
+ const { runConfigEditor } = await import("./config-editor-7PKW42GZ.js");
1335
1335
  const { ConfigManager } = await import("./config-I4FMCJGZ.js");
1336
1336
  const cm = new ConfigManager();
1337
1337
  if (!await cm.exists()) {
@@ -1380,9 +1380,9 @@ start fresh with the setup wizard. The daemon must be stopped first.
1380
1380
  const { uninstallAutoStart } = await import("./autostart-6JS565RY.js");
1381
1381
  uninstallAutoStart();
1382
1382
  const fs4 = await import("fs");
1383
- const os = await import("os");
1384
- const path4 = await import("path");
1385
- const openacpDir = path4.join(os.homedir(), ".openacp");
1383
+ const os3 = await import("os");
1384
+ const path6 = await import("path");
1385
+ const openacpDir = path6.join(os3.homedir(), ".openacp");
1386
1386
  fs4.rmSync(openacpDir, { recursive: true, force: true });
1387
1387
  console.log("Reset complete. Run `openacp` to set up again.");
1388
1388
  }
@@ -2115,19 +2115,34 @@ Tunnel Management:
2115
2115
  }
2116
2116
 
2117
2117
  // src/cli/commands/onboard.ts
2118
+ import path3 from "path";
2119
+ import os from "os";
2120
+ var OPENACP_DIR = path3.join(os.homedir(), ".openacp");
2121
+ var PLUGINS_DATA_DIR = path3.join(OPENACP_DIR, "plugins", "data");
2122
+ var REGISTRY_PATH = path3.join(OPENACP_DIR, "plugins.json");
2118
2123
  async function cmdOnboard() {
2119
2124
  const { ConfigManager } = await import("./config-I4FMCJGZ.js");
2120
2125
  const cm = new ConfigManager();
2121
2126
  if (await cm.exists()) {
2122
- const { runReconfigure } = await import("./setup-EYAFK2WI.js");
2127
+ const { runReconfigure } = await import("./setup-A7VPW46C.js");
2123
2128
  await runReconfigure(cm);
2124
2129
  } else {
2125
- const { runSetup } = await import("./setup-EYAFK2WI.js");
2126
- await runSetup(cm, { skipRunMode: true });
2130
+ const { SettingsManager } = await import("./settings-manager-MD2U4ZV2.js");
2131
+ const { PluginRegistry } = await import("./plugin-registry-WB3DR67H.js");
2132
+ const settingsManager = new SettingsManager(PLUGINS_DATA_DIR);
2133
+ const pluginRegistry = new PluginRegistry(REGISTRY_PATH);
2134
+ await pluginRegistry.load();
2135
+ const { runSetup } = await import("./setup-A7VPW46C.js");
2136
+ await runSetup(cm, { skipRunMode: true, settingsManager, pluginRegistry });
2127
2137
  }
2128
2138
  }
2129
2139
 
2130
2140
  // src/cli/commands/default.ts
2141
+ import path4 from "path";
2142
+ import os2 from "os";
2143
+ var OPENACP_DIR2 = path4.join(os2.homedir(), ".openacp");
2144
+ var PLUGINS_DATA_DIR2 = path4.join(OPENACP_DIR2, "plugins", "data");
2145
+ var REGISTRY_PATH2 = path4.join(OPENACP_DIR2, "plugins.json");
2131
2146
  async function cmdDefault(command2) {
2132
2147
  const forceForeground = command2 === "--foreground";
2133
2148
  if (command2 && !command2.startsWith("-")) {
@@ -2161,8 +2176,13 @@ async function cmdDefault(command2) {
2161
2176
  const { ConfigManager } = await import("./config-I4FMCJGZ.js");
2162
2177
  const cm = new ConfigManager();
2163
2178
  if (!await cm.exists()) {
2164
- const { runSetup } = await import("./setup-EYAFK2WI.js");
2165
- const shouldStart = await runSetup(cm);
2179
+ const { SettingsManager } = await import("./settings-manager-MD2U4ZV2.js");
2180
+ const { PluginRegistry } = await import("./plugin-registry-WB3DR67H.js");
2181
+ const settingsManager = new SettingsManager(PLUGINS_DATA_DIR2);
2182
+ const pluginRegistry = new PluginRegistry(REGISTRY_PATH2);
2183
+ await pluginRegistry.load();
2184
+ const { runSetup } = await import("./setup-A7VPW46C.js");
2185
+ const shouldStart = await runSetup(cm, { settingsManager, pluginRegistry });
2166
2186
  if (!shouldStart) process.exit(0);
2167
2187
  }
2168
2188
  await cm.load();
@@ -2179,13 +2199,13 @@ async function cmdDefault(command2) {
2179
2199
  }
2180
2200
  const { markRunning } = await import("./daemon-PXO5QPCR.js");
2181
2201
  markRunning();
2182
- const { startServer } = await import("./main-UVTZ46WP.js");
2202
+ const { startServer } = await import("./main-3GF3EQTE.js");
2183
2203
  await startServer();
2184
2204
  }
2185
2205
 
2186
2206
  // src/cli/commands/dev.ts
2187
2207
  import fs3 from "fs";
2188
- import path3 from "path";
2208
+ import path5 from "path";
2189
2209
  async function cmdDev(args2 = []) {
2190
2210
  if (wantsHelp(args2)) {
2191
2211
  console.log(`
@@ -2212,12 +2232,12 @@ async function cmdDev(args2 = []) {
2212
2232
  console.error("Error: missing plugin path. Usage: openacp dev <plugin-path>");
2213
2233
  process.exit(1);
2214
2234
  }
2215
- const pluginPath = path3.resolve(pluginPathArg);
2235
+ const pluginPath = path5.resolve(pluginPathArg);
2216
2236
  if (!fs3.existsSync(pluginPath)) {
2217
2237
  console.error(`Error: plugin path does not exist: ${pluginPath}`);
2218
2238
  process.exit(1);
2219
2239
  }
2220
- const tsconfigPath = path3.join(pluginPath, "tsconfig.json");
2240
+ const tsconfigPath = path5.join(pluginPath, "tsconfig.json");
2221
2241
  const hasTsconfig = fs3.existsSync(tsconfigPath);
2222
2242
  if (hasTsconfig) {
2223
2243
  console.log("Compiling plugin TypeScript...");
@@ -2253,7 +2273,7 @@ async function cmdDev(args2 = []) {
2253
2273
  process.env.OPENACP_DEBUG = "1";
2254
2274
  }
2255
2275
  process.env.OPENACP_DEV_LOOP = "1";
2256
- const { startServer } = await import("./main-UVTZ46WP.js");
2276
+ const { startServer } = await import("./main-3GF3EQTE.js");
2257
2277
  await startServer({ devPluginPath: pluginPath, noWatch });
2258
2278
  }
2259
2279
 
@@ -2286,7 +2306,7 @@ var commands = {
2286
2306
  "onboard": () => cmdOnboard(),
2287
2307
  "dev": () => cmdDev(args),
2288
2308
  "--daemon-child": async () => {
2289
- const { startServer } = await import("./main-UVTZ46WP.js");
2309
+ const { startServer } = await import("./main-3GF3EQTE.js");
2290
2310
  await startServer();
2291
2311
  }
2292
2312
  };