@cannbot-ai/install-helper 1.1.6-beta.7 → 1.1.6-beta.8
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 +9 -6
- package/dist/index.js.map +1 -1
- package/dist/locales/en_US.json +1 -1
- package/dist/locales/zh_CN.json +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -844,7 +844,7 @@ var init_zh_CN = __esm({
|
|
|
844
844
|
doctor_result_without_fix: "{warnings} \u4E2A\u8B66\u544A",
|
|
845
845
|
count_suffix: "\u4E2A",
|
|
846
846
|
try_prompt: "\u5E2E\u6211\u5F00\u53D1\u4E00\u4E2A Abs \u7B97\u5B50",
|
|
847
|
-
uninstall_interactive_title: "\u7BA1\u7406\u5DF2\u5B89\u88C5\u7684\u5185\u5BB9 \u2014 \
|
|
847
|
+
uninstall_interactive_title: "\u7BA1\u7406\u5DF2\u5B89\u88C5\u7684\u5185\u5BB9 \u2014 \u52FE\u9009\u8981\u5378\u8F7D\u7684\u9879",
|
|
848
848
|
uninstall_select_type: "\u9009\u62E9\u8981\u5378\u8F7D\u7684\u7C7B\u578B",
|
|
849
849
|
uninstall_type_skill: "\u5378\u8F7D Skills",
|
|
850
850
|
uninstall_type_plugin: "\u5378\u8F7D Plugins",
|
|
@@ -1067,7 +1067,7 @@ var init_en_US = __esm({
|
|
|
1067
1067
|
doctor_result_without_fix: "{warnings} warnings",
|
|
1068
1068
|
count_suffix: "",
|
|
1069
1069
|
try_prompt: "help me develop an Abs operator",
|
|
1070
|
-
uninstall_interactive_title: "Manage installed items \u2014
|
|
1070
|
+
uninstall_interactive_title: "Manage installed items \u2014 check to uninstall",
|
|
1071
1071
|
uninstall_select_type: "Select type to uninstall",
|
|
1072
1072
|
uninstall_type_skill: "Uninstall Skills",
|
|
1073
1073
|
uninstall_type_plugin: "Uninstall Plugins",
|
|
@@ -1463,24 +1463,27 @@ function scanInstalled() {
|
|
|
1463
1463
|
function verifyPluginFilesExist(configRoot, manifest, tool, level) {
|
|
1464
1464
|
const skillsDir = join5(configRoot, "skills");
|
|
1465
1465
|
const agentsDir = join5(configRoot, "agents");
|
|
1466
|
+
let hasAnyComponent = false;
|
|
1466
1467
|
if (manifest.installed_skills && manifest.installed_skills.length > 0) {
|
|
1467
1468
|
const hasAnySkill = manifest.installed_skills.some((skillId) => {
|
|
1468
1469
|
const skillPath = join5(skillsDir, skillId);
|
|
1469
1470
|
return existsSync5(skillPath);
|
|
1470
1471
|
});
|
|
1471
|
-
if (
|
|
1472
|
+
if (hasAnySkill) hasAnyComponent = true;
|
|
1472
1473
|
}
|
|
1473
1474
|
if (manifest.installed_agents && manifest.installed_agents.length > 0) {
|
|
1474
1475
|
const hasAnyAgent = manifest.installed_agents.some((agentId) => {
|
|
1475
1476
|
const agentPath = join5(agentsDir, agentId);
|
|
1476
1477
|
return existsSync5(agentPath);
|
|
1477
1478
|
});
|
|
1478
|
-
if (
|
|
1479
|
+
if (hasAnyAgent) hasAnyComponent = true;
|
|
1479
1480
|
}
|
|
1480
1481
|
const agentsFileName = getAgentsFileName(tool);
|
|
1481
1482
|
const configFilePath = level === "project" ? join5(configRoot, "..", agentsFileName) : join5(configRoot, agentsFileName);
|
|
1482
|
-
if (
|
|
1483
|
-
|
|
1483
|
+
if (existsSync5(configFilePath)) hasAnyComponent = true;
|
|
1484
|
+
const pluginManifestPath = join5(configRoot, `${manifest.team}-manifest.json`);
|
|
1485
|
+
if (existsSync5(pluginManifestPath)) hasAnyComponent = true;
|
|
1486
|
+
return hasAnyComponent;
|
|
1484
1487
|
}
|
|
1485
1488
|
var init_manifest = __esm({
|
|
1486
1489
|
"src/core/manifest.ts"() {
|