@cannbot-ai/install-helper 0.0.2-beta.3 → 0.0.2-beta.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.
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 \u9009\u62E9 | \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
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
@@ -918,10 +918,15 @@ async function stepPlugins(tool, level) {
918
918
  choices,
919
919
  loop: false,
920
920
  instructions: false,
921
- theme: checkboxTheme
921
+ theme: checkboxTheme,
922
+ pageSize: 15
922
923
  });
923
- if (selected.includes(BACK)) return BACK;
924
- if (selected.includes(CANCEL)) return CANCEL;
924
+ if (selected.includes(CANCEL)) {
925
+ return CANCEL;
926
+ }
927
+ if (selected.includes(BACK)) {
928
+ return BACK;
929
+ }
925
930
  const pluginIds = selected.filter((v) => v !== BACK && v !== CANCEL);
926
931
  if (pluginIds.length === 0) {
927
932
  const action = await select({
@@ -1856,7 +1861,8 @@ async function interactiveSkillSelect() {
1856
1861
  message: t("skill_select_category"),
1857
1862
  choices: categoryChoices,
1858
1863
  loop: false,
1859
- theme: selectTheme
1864
+ theme: selectTheme,
1865
+ pageSize: 15
1860
1866
  });
1861
1867
  if (selectedCategoryId === BACK3) return "back";
1862
1868
  if (selectedCategoryId === CANCEL3) return "cancel";
@@ -1895,13 +1901,16 @@ async function interactiveSkillSelect() {
1895
1901
  choices: skillChoices,
1896
1902
  loop: false,
1897
1903
  instructions: false,
1898
- theme: checkboxTheme
1904
+ theme: checkboxTheme,
1905
+ pageSize: 15
1899
1906
  });
1907
+ if (selectedSkills.includes(CANCEL3)) {
1908
+ return "cancel";
1909
+ }
1900
1910
  if (selectedSkills.includes(BACK3)) {
1901
1911
  step = 0;
1902
1912
  break;
1903
1913
  }
1904
- if (selectedSkills.includes(CANCEL3)) return "cancel";
1905
1914
  const skillIds = selectedSkills.filter((v) => v !== BACK3 && v !== CANCEL3);
1906
1915
  if (skillIds.length === 0) {
1907
1916
  const action = await select2({
@@ -2945,7 +2954,7 @@ function createCLI() {
2945
2954
  setLanguage(config.language);
2946
2955
  }
2947
2956
  const program2 = new Command();
2948
- program2.name("install-helper").description("Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.3");
2957
+ program2.name("install-helper").description("Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.5");
2949
2958
  program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
2950
2959
  await initCommand();
2951
2960
  });