@cannbot-ai/install-helper 0.0.2-beta.5 → 0.0.2-beta.6

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
@@ -630,7 +630,7 @@ function printBoxTitle(title, width = 65) {
630
630
  }
631
631
  function showOperationHints(isCheckbox = false) {
632
632
  if (isCheckbox) {
633
- console.log(` \u{1F4A1} \x1B[36m\u2191\u2193\x1B[0m \u79FB\u52A8 | \x1B[36m\u7A7A\u683C\x1B[0m \u52FE\u9009 | \x1B[36m\u23CE\x1B[0m \u786E\u8BA4
633
+ console.log(` \u{1F4A1} \x1B[36m\u2191\u2193\x1B[0m \u79FB\u52A8 | \x1B[36m\u7A7A\u683C\x1B[0m \u52FE\u9009 | \x1B[36m\u23CE\x1B[0m \u786E\u8BA4\uFF08\u4E0D\u9009\u6309\u56DE\u8F66\u53EF\u8FD4\u56DE\uFF09
634
634
  `);
635
635
  } else {
636
636
  console.log(` \u{1F4A1} \x1B[36m\u2191\u2193\x1B[0m \u79FB\u52A8 | \x1B[36m\u23CE\x1B[0m \u786E\u8BA4
@@ -909,9 +909,6 @@ async function stepPlugins(tool, level) {
909
909
  checked: false
910
910
  };
911
911
  });
912
- choices.push(new Separator("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
913
- choices.push({ name: "<- " + t("wizard_back"), value: BACK, checked: false });
914
- choices.push({ name: "x " + t("wizard_cancel"), value: CANCEL, checked: false });
915
912
  showOperationHints(true);
916
913
  const selected = await checkbox({
917
914
  message: t("wizard_select_plugins"),
@@ -921,13 +918,7 @@ async function stepPlugins(tool, level) {
921
918
  theme: checkboxTheme,
922
919
  pageSize: 15
923
920
  });
924
- if (selected.includes(CANCEL)) {
925
- return CANCEL;
926
- }
927
- if (selected.includes(BACK)) {
928
- return BACK;
929
- }
930
- const pluginIds = selected.filter((v) => v !== BACK && v !== CANCEL);
921
+ const pluginIds = selected;
931
922
  if (pluginIds.length === 0) {
932
923
  const action = await select({
933
924
  message: t("wizard_no_selection"),
@@ -1892,9 +1883,6 @@ async function interactiveSkillSelect() {
1892
1883
  checked: false
1893
1884
  };
1894
1885
  });
1895
- skillChoices.push(new Separator2("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
1896
- skillChoices.push({ name: "<- " + t("wizard_back"), value: BACK3, checked: false });
1897
- skillChoices.push({ name: "x " + t("wizard_cancel"), value: CANCEL3, checked: false });
1898
1886
  showOperationHints(true);
1899
1887
  const selectedSkills = await checkbox2({
1900
1888
  message: t("skill_select_items"),
@@ -1904,14 +1892,7 @@ async function interactiveSkillSelect() {
1904
1892
  theme: checkboxTheme,
1905
1893
  pageSize: 15
1906
1894
  });
1907
- if (selectedSkills.includes(CANCEL3)) {
1908
- return "cancel";
1909
- }
1910
- if (selectedSkills.includes(BACK3)) {
1911
- step = 0;
1912
- break;
1913
- }
1914
- const skillIds = selectedSkills.filter((v) => v !== BACK3 && v !== CANCEL3);
1895
+ const skillIds = selectedSkills;
1915
1896
  if (skillIds.length === 0) {
1916
1897
  const action = await select2({
1917
1898
  message: t("wizard_no_selection"),
@@ -2954,7 +2935,7 @@ function createCLI() {
2954
2935
  setLanguage(config.language);
2955
2936
  }
2956
2937
  const program2 = new Command();
2957
- program2.name("install-helper").description("Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.5");
2938
+ program2.name("install-helper").description("Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.6");
2958
2939
  program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
2959
2940
  await initCommand();
2960
2941
  });