@cannbot-ai/install-helper 0.0.2-beta.20 → 0.0.2-beta.22

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/index.js CHANGED
@@ -48,6 +48,9 @@ function loadPluginsFromYaml() {
48
48
  }
49
49
  } catch {
50
50
  }
51
+ plugins.sort(
52
+ (a, b) => a.displayName.localeCompare(b.displayName, "zh-CN", { sensitivity: "base" })
53
+ );
51
54
  return plugins;
52
55
  }
53
56
  var PLUGIN_REGISTRY = loadPluginsFromYaml();
@@ -629,7 +632,7 @@ async function runWizard() {
629
632
  step = 2;
630
633
  break;
631
634
  }
632
- if (result === CANCEL || result === false) {
635
+ if (result === CANCEL) {
633
636
  return { language: config.language || "zh_CN", tool: selectedTool, level, plugins: [], confirmed: false };
634
637
  }
635
638
  updateConfig({ lastTool: selectedTool, lastLevel: level });
@@ -2847,7 +2850,7 @@ async function installCommand(names, options) {
2847
2850
  logger.blank();
2848
2851
  }
2849
2852
  }
2850
- async function installPlugins(pluginIds, tool, level, repoPath) {
2853
+ async function installPlugins(pluginIds, tool, level, repoPath, installPath, yes) {
2851
2854
  const results = [];
2852
2855
  const total = pluginIds.length;
2853
2856
  for (let i = 0; i < pluginIds.length; i++) {
@@ -2859,7 +2862,9 @@ async function installPlugins(pluginIds, tool, level, repoPath) {
2859
2862
  pluginId,
2860
2863
  tool,
2861
2864
  level,
2862
- repoPath
2865
+ repoPath,
2866
+ installPath,
2867
+ yes
2863
2868
  });
2864
2869
  if (result.success) {
2865
2870
  spinner.succeed(
@@ -3158,7 +3163,7 @@ function createCLI() {
3158
3163
  setLanguage(config.language);
3159
3164
  }
3160
3165
  const program2 = new Command();
3161
- program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.20");
3166
+ program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.22");
3162
3167
  program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
3163
3168
  await initCommand();
3164
3169
  });