@cannbot-ai/install-helper 0.0.2-beta.75 → 0.0.2-beta.77
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 +23 -20
- package/dist/index.js.map +1 -1
- package/dist/install.ps1 +22 -28
- package/dist/plugins.d/catlass-op-generator.yml +1 -1
- package/dist/plugins.d/model-infer-optimize.yml +1 -1
- package/dist/plugins.d/ops-code-reviewer.yml +1 -1
- package/dist/plugins.d/ops-direct-invoke-flash.yml +1 -1
- package/dist/plugins.d/ops-direct-invoke.yml +2 -2
- package/dist/plugins.d/ops-registry-invoke.yml +2 -2
- package/dist/plugins.d/triton-op-generator.yml +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -595,8 +595,8 @@ var embedded_plugins_default = [
|
|
|
595
595
|
"direct",
|
|
596
596
|
"kernel"
|
|
597
597
|
],
|
|
598
|
-
skills:
|
|
599
|
-
agents:
|
|
598
|
+
skills: 19,
|
|
599
|
+
agents: 4,
|
|
600
600
|
description: "Ascend C \u76F4\u8C03\u5168\u6D41\u7A0B\uFF1A\u73AF\u5883\u2192\u8BBE\u8BA1\u2192\u5F00\u53D1\u2192\u5BA1\u67E5\u2192\u6027\u80FD\u9A8C\u6536",
|
|
601
601
|
version: "1.2.2",
|
|
602
602
|
configFile: "AGENTS.md",
|
|
@@ -655,7 +655,7 @@ var embedded_plugins_default = [
|
|
|
655
655
|
"flash",
|
|
656
656
|
"kernel-flash"
|
|
657
657
|
],
|
|
658
|
-
skills:
|
|
658
|
+
skills: 7,
|
|
659
659
|
agents: 1,
|
|
660
660
|
description: "\u4ECE\u6570\u5B66\u516C\u5F0F\u6216\u4EE3\u7801\u7247\u6BB5\u5FEB\u901F\u6784\u5EFA\u5E76\u9A8C\u8BC1 Ascend NPU \u6838\u51FD\u6570",
|
|
661
661
|
version: "1.2.2",
|
|
@@ -699,8 +699,8 @@ var embedded_plugins_default = [
|
|
|
699
699
|
"ascendc-registry",
|
|
700
700
|
"registry"
|
|
701
701
|
],
|
|
702
|
-
skills:
|
|
703
|
-
agents:
|
|
702
|
+
skills: 26,
|
|
703
|
+
agents: 3,
|
|
704
704
|
description: "\u751F\u4EA7\u7EA7 ACLNN \u6CE8\u518C\u7B97\u5B50\u5168\u6D41\u7A0B\uFF1A\u4EE3\u7801\u2192UT/ST\u2192\u4E0A\u5E93",
|
|
705
705
|
version: "1.2.2",
|
|
706
706
|
configFile: "AGENTS.md",
|
|
@@ -772,7 +772,7 @@ var embedded_plugins_default = [
|
|
|
772
772
|
aliases: [
|
|
773
773
|
"catlass"
|
|
774
774
|
],
|
|
775
|
-
skills:
|
|
775
|
+
skills: 14,
|
|
776
776
|
agents: 3,
|
|
777
777
|
description: "Catlass \u6A21\u677F\u62FC\u88C5 GEMM/Matmul/Epilogue \u7B97\u5B50\u5F00\u53D1",
|
|
778
778
|
version: "1.2.2",
|
|
@@ -822,7 +822,7 @@ var embedded_plugins_default = [
|
|
|
822
822
|
"infer",
|
|
823
823
|
"inference"
|
|
824
824
|
],
|
|
825
|
-
skills:
|
|
825
|
+
skills: 12,
|
|
826
826
|
agents: 3,
|
|
827
827
|
description: "NPU \u6A21\u578B\u63A8\u7406\u7AEF\u5230\u7AEF\u4F18\u5316\uFF08\u5E76\u884C/KVCache/\u878D\u5408/\u91CF\u5316/\u56FE\u6A21\u5F0F/\u591A\u6D41/SuperKernel\uFF09",
|
|
828
828
|
version: "1.2.2",
|
|
@@ -958,7 +958,7 @@ var embedded_plugins_default = [
|
|
|
958
958
|
"triton"
|
|
959
959
|
],
|
|
960
960
|
skills: 6,
|
|
961
|
-
agents:
|
|
961
|
+
agents: 0,
|
|
962
962
|
description: "Triton-Ascend \u7B97\u5B50 6 \u9636\u6BB5\u81EA\u52A8\u751F\u6210\u4E0E\u4F18\u5316\uFF08\u63CF\u8FF0\u2192\u4EE3\u7801\u2192\u9A8C\u8BC1\u2192\u4F18\u5316\uFF09",
|
|
963
963
|
version: "1.2.2",
|
|
964
964
|
configFile: "AGENTS.md",
|
|
@@ -1022,7 +1022,7 @@ var embedded_plugins_default = [
|
|
|
1022
1022
|
"review"
|
|
1023
1023
|
],
|
|
1024
1024
|
skills: 5,
|
|
1025
|
-
agents:
|
|
1025
|
+
agents: 2,
|
|
1026
1026
|
description: "Ascend C \u7B97\u5B50\u4EE3\u7801 4 \u9636\u6BB5\u5168\u91CF\u68C0\u89C6\uFF08\u4E3B Agent \u7F16\u6392 + \u5B50 Agent \u5E76\u884C\u68C0\u89C6\uFF09",
|
|
1027
1027
|
version: "1.2.2",
|
|
1028
1028
|
configFile: "AGENTS.md",
|
|
@@ -1473,13 +1473,9 @@ function verifyPluginFilesExist(configRoot, manifest, tool, level) {
|
|
|
1473
1473
|
});
|
|
1474
1474
|
if (!hasAnyAgent) return false;
|
|
1475
1475
|
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
} else {
|
|
1480
|
-
agentsMdPath = join5(configRoot, "AGENTS.md");
|
|
1481
|
-
}
|
|
1482
|
-
if (!existsSync5(agentsMdPath)) return false;
|
|
1476
|
+
const agentsFileName = getAgentsFileName(tool);
|
|
1477
|
+
const configFilePath = level === "project" ? join5(configRoot, "..", agentsFileName) : join5(configRoot, agentsFileName);
|
|
1478
|
+
if (!existsSync5(configFilePath)) return false;
|
|
1483
1479
|
return true;
|
|
1484
1480
|
}
|
|
1485
1481
|
|
|
@@ -2869,7 +2865,7 @@ function writeCannbotManifest(configRoot, pluginId, version, level, tool, skills
|
|
|
2869
2865
|
brand_dir: configRoot,
|
|
2870
2866
|
install_time: (/* @__PURE__ */ new Date()).toISOString()
|
|
2871
2867
|
};
|
|
2872
|
-
const manifestPath = join11(configRoot,
|
|
2868
|
+
const manifestPath = join11(configRoot, `${pluginId}-manifest.json`);
|
|
2873
2869
|
writeFileSync2(manifestPath, JSON.stringify(manifest, null, 2), "utf-8");
|
|
2874
2870
|
return manifest;
|
|
2875
2871
|
}
|
|
@@ -3003,6 +2999,8 @@ async function installPlugin(opts) {
|
|
|
3003
2999
|
warnings: []
|
|
3004
3000
|
};
|
|
3005
3001
|
}
|
|
3002
|
+
}
|
|
3003
|
+
if (currentPlugin) {
|
|
3006
3004
|
backupInfo = createBackup(
|
|
3007
3005
|
configRoot,
|
|
3008
3006
|
opts.tool,
|
|
@@ -3163,7 +3161,7 @@ async function installPlugin(opts) {
|
|
|
3163
3161
|
}
|
|
3164
3162
|
|
|
3165
3163
|
// src/core/skill-installer.ts
|
|
3166
|
-
import { existsSync as existsSync14, mkdirSync as mkdirSync6, symlinkSync as symlinkSync2, unlinkSync as unlinkSync5, readdirSync as readdirSync4, rmSync as rmSync2, realpathSync as realpathSync2 } from "fs";
|
|
3164
|
+
import { existsSync as existsSync14, mkdirSync as mkdirSync6, symlinkSync as symlinkSync2, unlinkSync as unlinkSync5, readdirSync as readdirSync4, rmSync as rmSync2, realpathSync as realpathSync2, readlinkSync } from "fs";
|
|
3167
3165
|
import { join as join13, dirname as dirname6, isAbsolute } from "path";
|
|
3168
3166
|
import { select as select3, checkbox, Separator as Separator2 } from "@inquirer/prompts";
|
|
3169
3167
|
import chalk5 from "chalk";
|
|
@@ -3193,13 +3191,18 @@ async function installSkills(skillIds, tool, level, repoPath) {
|
|
|
3193
3191
|
const resolvedSource = realpathSync2(sourcePath);
|
|
3194
3192
|
if (isSymlink(targetPath)) {
|
|
3195
3193
|
try {
|
|
3196
|
-
const currentTarget =
|
|
3197
|
-
|
|
3194
|
+
const currentTarget = readlinkSync(targetPath);
|
|
3195
|
+
const normCurrent = currentTarget.replace(/\\/g, "/").toLowerCase();
|
|
3196
|
+
const normSource = resolvedSource.replace(/\\/g, "/").toLowerCase();
|
|
3197
|
+
if (normCurrent === normSource) {
|
|
3198
3198
|
results.push({ skillId, success: true });
|
|
3199
3199
|
installedIds.push(skillId);
|
|
3200
3200
|
continue;
|
|
3201
3201
|
}
|
|
3202
3202
|
} catch {
|
|
3203
|
+
results.push({ skillId, success: true });
|
|
3204
|
+
installedIds.push(skillId);
|
|
3205
|
+
continue;
|
|
3203
3206
|
}
|
|
3204
3207
|
}
|
|
3205
3208
|
if (existsSync14(targetPath) || isSymlink(targetPath)) {
|