@cannbot-ai/install-helper 0.0.2-beta.11 → 0.0.2-beta.12

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
@@ -2807,7 +2807,7 @@ async function installCommand(names, options) {
2807
2807
  tool2 = validateTool(options.tool);
2808
2808
  } else {
2809
2809
  const detected = await selectToolWithDetection();
2810
- if (detected === "back") return;
2810
+ if (detected === "back" || detected === "cancel") return;
2811
2811
  tool2 = detected;
2812
2812
  }
2813
2813
  let step = 1;
@@ -2817,10 +2817,11 @@ async function installCommand(names, options) {
2817
2817
  const selectedSkills = await interactiveSkillSelect();
2818
2818
  if (selectedSkills === "back") {
2819
2819
  const redetected = await selectToolWithDetection();
2820
- if (redetected === "back") return;
2820
+ if (redetected === "back" || redetected === "cancel") return;
2821
2821
  tool2 = redetected;
2822
2822
  break;
2823
2823
  }
2824
+ if (selectedSkills === "cancel") return;
2824
2825
  if (selectedSkills.length === 0) {
2825
2826
  logger.info(t("install_no_skill_selected"));
2826
2827
  return;
@@ -2896,7 +2897,7 @@ async function installCommand(names, options) {
2896
2897
  tool = validateTool(options.tool);
2897
2898
  } else {
2898
2899
  const detected = await selectToolWithDetection();
2899
- if (detected === "back") return;
2900
+ if (detected === "back" || detected === "cancel") return;
2900
2901
  tool = detected;
2901
2902
  }
2902
2903
  const level = options.level ? validateLevel(options.level) : "project";
@@ -3133,7 +3134,7 @@ async function updateCommand(pluginNames, options) {
3133
3134
  tool = validateTool(options.tool);
3134
3135
  } else {
3135
3136
  const detected = await selectToolWithDetection();
3136
- if (detected === "back") return;
3137
+ if (detected === "back" || detected === "cancel") return;
3137
3138
  tool = detected;
3138
3139
  }
3139
3140
  const level = options.level ? validateLevel(options.level) : "project";
@@ -3295,7 +3296,7 @@ function createCLI() {
3295
3296
  setLanguage(config.language);
3296
3297
  }
3297
3298
  const program2 = new Command();
3298
- program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.11");
3299
+ program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.12");
3299
3300
  program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
3300
3301
  await initCommand();
3301
3302
  });