@cannbot-ai/install-helper 0.0.2-beta.20 → 0.0.2-beta.22
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 -4
- package/dist/index.js.map +1 -1
- 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 +2 -2
- package/dist/plugins.d/ops-direct-invoke.yml +1 -1
- package/dist/plugins.d/ops-registry-invoke.yml +1 -1
- package/dist/plugins.d/pypto-op-orchestrator.yml +2 -2
- package/dist/plugins.d/tilelang-op-orchestrator.yml +2 -2
- package/dist/plugins.d/torch-compile.yml +1 -1
- package/dist/plugins.d/triton-op-generator.yml +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,6 +48,9 @@ function loadPluginsFromYaml() {
|
|
|
48
48
|
}
|
|
49
49
|
} catch {
|
|
50
50
|
}
|
|
51
|
+
plugins.sort(
|
|
52
|
+
(a, b) => a.displayName.localeCompare(b.displayName, "zh-CN", { sensitivity: "base" })
|
|
53
|
+
);
|
|
51
54
|
return plugins;
|
|
52
55
|
}
|
|
53
56
|
var PLUGIN_REGISTRY = loadPluginsFromYaml();
|
|
@@ -629,7 +632,7 @@ async function runWizard() {
|
|
|
629
632
|
step = 2;
|
|
630
633
|
break;
|
|
631
634
|
}
|
|
632
|
-
if (result === CANCEL
|
|
635
|
+
if (result === CANCEL) {
|
|
633
636
|
return { language: config.language || "zh_CN", tool: selectedTool, level, plugins: [], confirmed: false };
|
|
634
637
|
}
|
|
635
638
|
updateConfig({ lastTool: selectedTool, lastLevel: level });
|
|
@@ -2847,7 +2850,7 @@ async function installCommand(names, options) {
|
|
|
2847
2850
|
logger.blank();
|
|
2848
2851
|
}
|
|
2849
2852
|
}
|
|
2850
|
-
async function installPlugins(pluginIds, tool, level, repoPath) {
|
|
2853
|
+
async function installPlugins(pluginIds, tool, level, repoPath, installPath, yes) {
|
|
2851
2854
|
const results = [];
|
|
2852
2855
|
const total = pluginIds.length;
|
|
2853
2856
|
for (let i = 0; i < pluginIds.length; i++) {
|
|
@@ -2859,7 +2862,9 @@ async function installPlugins(pluginIds, tool, level, repoPath) {
|
|
|
2859
2862
|
pluginId,
|
|
2860
2863
|
tool,
|
|
2861
2864
|
level,
|
|
2862
|
-
repoPath
|
|
2865
|
+
repoPath,
|
|
2866
|
+
installPath,
|
|
2867
|
+
yes
|
|
2863
2868
|
});
|
|
2864
2869
|
if (result.success) {
|
|
2865
2870
|
spinner.succeed(
|
|
@@ -3158,7 +3163,7 @@ function createCLI() {
|
|
|
3158
3163
|
setLanguage(config.language);
|
|
3159
3164
|
}
|
|
3160
3165
|
const program2 = new Command();
|
|
3161
|
-
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.
|
|
3166
|
+
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.22");
|
|
3162
3167
|
program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
|
|
3163
3168
|
await initCommand();
|
|
3164
3169
|
});
|