@cannbot-ai/install-helper 1.1.6-beta.1 → 1.1.6-beta.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/index.js CHANGED
@@ -849,7 +849,7 @@ var init_zh_CN = __esm({
849
849
  uninstall_type_skill: "\u5378\u8F7D Skills",
850
850
  uninstall_type_plugin: "\u5378\u8F7D Plugins",
851
851
  uninstall_checkbox_hint: "\u52FE\u9009=\u4FDD\u7559\uFF0C\u53D6\u6D88\u52FE\u9009=\u5378\u8F7D",
852
- uninstall_uncheck_all: "\u5168\u4E0D\u9009\uFF08\u6807\u8BB0\u5168\u90E8\u5378\u8F7D\uFF09",
852
+ uninstall_uncheck_all: "\u5378\u8F7D\u5168\u90E8",
853
853
  uninstall_confirm_count: "\u786E\u8BA4\u5378\u8F7D\uFF08{count} \u4E2A\u5C06\u5378\u8F7D\uFF09",
854
854
  uninstall_no_installed: "\u6CA1\u6709\u5DF2\u5B89\u88C5\u7684 Skills \u6216 Plugins",
855
855
  uninstall_no_installed_skills: "\u6CA1\u6709\u5DF2\u5B89\u88C5\u7684 Skills",
@@ -866,7 +866,7 @@ var init_zh_CN = __esm({
866
866
  uninstall_select_items: "\u7BA1\u7406\u5DF2\u5B89\u88C5\u7684 Skills\uFF08\u7A7A\u683C\u5207\u6362\uFF0C\u56DE\u8F66\u786E\u8BA4\uFF09",
867
867
  uninstall_select_plugins: "\u7BA1\u7406\u5DF2\u5B89\u88C5\u7684 Plugins\uFF08\u7A7A\u683C\u5207\u6362\uFF0C\u56DE\u8F66\u786E\u8BA4\uFF09",
868
868
  uninstall_select_category: "\u9009\u62E9\u8981\u7BA1\u7406\u7684 Skill \u7C7B\u522B",
869
- uninstall_uncheck_all_category: "\u5168\u4E0D\u9009\u5F53\u524D\u7C7B\u522B\uFF08\u6807\u8BB0\u5168\u90E8\u5378\u8F7D\uFF09",
869
+ uninstall_uncheck_all_category: "\u5378\u8F7D\u672C\u7C7B\u522B\u5168\u90E8",
870
870
  uninstall_continue_or_confirm: "\u5DF2\u6807\u8BB0 {count} \u4E2A\u5F85\u5378\u8F7D\uFF0C\u8BF7\u9009\u62E9\u64CD\u4F5C",
871
871
  uninstall_marked_count: "\u5DF2\u6807\u8BB0 {count} \u4E2A\u5F85\u5378\u8F7D",
872
872
  uninstall_uncategorized: "\u672A\u5206\u7C7B"
@@ -1071,7 +1071,7 @@ var init_en_US = __esm({
1071
1071
  uninstall_type_skill: "Uninstall Skills",
1072
1072
  uninstall_type_plugin: "Uninstall Plugins",
1073
1073
  uninstall_checkbox_hint: "Checked = keep, unchecked = uninstall",
1074
- uninstall_uncheck_all: "Uncheck all (mark all for uninstall)",
1074
+ uninstall_uncheck_all: "Uninstall all",
1075
1075
  uninstall_confirm_count: "Confirm uninstall ({count} will be removed)",
1076
1076
  uninstall_no_installed: "No installed Skills or Plugins",
1077
1077
  uninstall_no_installed_skills: "No installed Skills",
@@ -1088,7 +1088,7 @@ var init_en_US = __esm({
1088
1088
  uninstall_select_items: "Manage installed Skills (space to toggle, enter to confirm)",
1089
1089
  uninstall_select_plugins: "Manage installed Plugins (space to toggle, enter to confirm)",
1090
1090
  uninstall_select_category: "Select Skill category to manage",
1091
- uninstall_uncheck_all_category: "Uncheck all in this category (mark for uninstall)",
1091
+ uninstall_uncheck_all_category: "Uninstall all in this category",
1092
1092
  uninstall_continue_or_confirm: "{count} marked for uninstall, choose an action",
1093
1093
  uninstall_marked_count: "{count} marked for uninstall",
1094
1094
  uninstall_uncategorized: "Uncategorized"
@@ -3883,8 +3883,13 @@ async function interactiveSkillUnselect(tool, level) {
3883
3883
  if (selectedCategoryId === CANCEL) return "cancel";
3884
3884
  if (selectedCategoryId === UNSELECT_ALL) {
3885
3885
  keptSet = /* @__PURE__ */ new Set();
3886
- step = 0;
3887
- break;
3886
+ const toUninstall = [...installedSkills];
3887
+ const confirmed = await confirm({
3888
+ message: t("uninstall_confirm_prompt").replace("{count}", chalk5.bold(String(toUninstall.length))),
3889
+ default: false
3890
+ });
3891
+ if (!confirmed) return "cancel";
3892
+ return { toUninstall, toKeep: [] };
3888
3893
  }
3889
3894
  if (selectedCategoryId === "uninstall") {
3890
3895
  const toUninstall = installedSkills.filter((id) => !keptSet.has(id));