@openacp/cli 2026.41.2 → 2026.41.3

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/dist/cli.js CHANGED
@@ -23763,7 +23763,7 @@ function registerCategoryCommand(registry, core, category, commandName, notSuppo
23763
23763
  type: "menu",
23764
23764
  title: configOption.name,
23765
23765
  options: choices.map((c3) => ({
23766
- label: c3.value === configOption.currentValue ? `\u2705 ${c3.label}` : c3.label,
23766
+ label: c3.value === configOption.currentValue ? `\u2705 ${c3.name}` : c3.name,
23767
23767
  command: `/${commandName} ${c3.value}`,
23768
23768
  hint: c3.description
23769
23769
  }))
@@ -23791,7 +23791,7 @@ function registerCategoryCommand(registry, core, category, commandName, notSuppo
23791
23791
  if (response.configOptions) {
23792
23792
  session.configOptions = response.configOptions;
23793
23793
  }
23794
- return { type: "text", text: `${configOption.name} set to ${match.label}.` };
23794
+ return { type: "text", text: `${configOption.name} set to ${match.name}.` };
23795
23795
  } catch (err) {
23796
23796
  const msg = err instanceof Error ? err.message : String(err);
23797
23797
  return { type: "error", message: `\u26A0\uFE0F Failed to set ${commandName}: ${msg}` };
@@ -27195,7 +27195,7 @@ Shows all plugins registered in the plugin registry.
27195
27195
  }
27196
27196
  }
27197
27197
  async function cmdPlugin(args2 = [], instanceRoot) {
27198
- const subcommand = args2[1];
27198
+ const subcommand = args2[0];
27199
27199
  if (wantsHelp(args2) || !subcommand) {
27200
27200
  console.log(`
27201
27201
  \x1B[1mopenacp plugin\x1B[0m \u2014 Plugin management
@@ -27203,7 +27203,8 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27203
27203
  \x1B[1mUsage:\x1B[0m
27204
27204
  openacp plugin list List all plugins with status
27205
27205
  openacp plugin search <query> Search the plugin registry
27206
- openacp plugin add <package>[@version] Install a plugin package
27206
+ openacp plugin add <package>[@version] Install a plugin from npm
27207
+ openacp plugin add <dir> Install a plugin from local directory
27207
27208
  openacp plugin install <package> Alias for add
27208
27209
  openacp plugin remove <package> Remove a plugin package
27209
27210
  openacp plugin uninstall <package> Alias for remove (--purge to delete data)
@@ -27217,6 +27218,7 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27217
27218
  openacp plugin search telegram
27218
27219
  openacp plugin add @openacp/adapter-discord
27219
27220
  openacp plugin add translator@1.2.0
27221
+ openacp plugin add ./my-plugin Install from local directory
27220
27222
  openacp plugin enable @openacp/adapter-discord
27221
27223
  openacp plugin configure @openacp/adapter-discord
27222
27224
  openacp plugin remove @openacp/adapter-discord --purge
@@ -27225,15 +27227,15 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27225
27227
  }
27226
27228
  switch (subcommand) {
27227
27229
  case "list":
27228
- return cmdPlugins(args2.slice(1), instanceRoot);
27230
+ return cmdPlugins([], instanceRoot);
27229
27231
  case "search": {
27230
27232
  const { cmdPluginSearch: cmdPluginSearch2 } = await Promise.resolve().then(() => (init_plugin_search(), plugin_search_exports));
27231
- await cmdPluginSearch2(args2.slice(2));
27233
+ await cmdPluginSearch2(args2.slice(1));
27232
27234
  return;
27233
27235
  }
27234
27236
  case "add":
27235
27237
  case "install": {
27236
- const pkg = args2[2];
27238
+ const pkg = args2[1];
27237
27239
  if (!pkg) {
27238
27240
  console.error("Error: missing package name. Usage: openacp plugin add <package>");
27239
27241
  process.exit(1);
@@ -27243,7 +27245,7 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27243
27245
  }
27244
27246
  case "remove":
27245
27247
  case "uninstall": {
27246
- const pkg = args2[2];
27248
+ const pkg = args2[1];
27247
27249
  if (!pkg) {
27248
27250
  console.error("Error: missing package name. Usage: openacp plugin remove <package> [--purge]");
27249
27251
  process.exit(1);
@@ -27253,7 +27255,7 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27253
27255
  return;
27254
27256
  }
27255
27257
  case "enable": {
27256
- const name = args2[2];
27258
+ const name = args2[1];
27257
27259
  if (!name) {
27258
27260
  console.error("Error: missing plugin name. Usage: openacp plugin enable <name>");
27259
27261
  process.exit(1);
@@ -27262,7 +27264,7 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27262
27264
  return;
27263
27265
  }
27264
27266
  case "disable": {
27265
- const name = args2[2];
27267
+ const name = args2[1];
27266
27268
  if (!name) {
27267
27269
  console.error("Error: missing plugin name. Usage: openacp plugin disable <name>");
27268
27270
  process.exit(1);
@@ -27271,7 +27273,7 @@ async function cmdPlugin(args2 = [], instanceRoot) {
27271
27273
  return;
27272
27274
  }
27273
27275
  case "configure": {
27274
- const name = args2[2];
27276
+ const name = args2[1];
27275
27277
  if (!name) {
27276
27278
  console.error("Error: missing plugin name. Usage: openacp plugin configure <name>");
27277
27279
  process.exit(1);
@@ -28115,9 +28117,9 @@ Shows the version of the currently running daemon process.
28115
28117
  const choices = options.flatMap((o) => {
28116
28118
  if ("group" in o) {
28117
28119
  const groupOpts = o.options;
28118
- return groupOpts?.map((c3) => `${c3.value} (${c3.label})`) ?? [];
28120
+ return groupOpts?.map((c3) => `${c3.value} (${c3.name})`) ?? [];
28119
28121
  }
28120
- return [`${o.value} (${o.label})`];
28122
+ return [`${o.value} (${o.name})`];
28121
28123
  });
28122
28124
  console.log(` choices: ${choices.join(", ")}`);
28123
28125
  }