@cannbot-ai/install-helper 0.0.2-beta.29 → 0.0.2-beta.30
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 +2 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -878,7 +878,7 @@ import { parse as parseYaml3 } from "yaml";
|
|
|
878
878
|
|
|
879
879
|
// src/core/scanner.ts
|
|
880
880
|
import { existsSync as existsSync5, readdirSync as readdirSync2, readFileSync as readFileSync5, statSync, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "fs";
|
|
881
|
-
import { join as join7, dirname as dirname3
|
|
881
|
+
import { join as join7, dirname as dirname3 } from "path";
|
|
882
882
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
883
883
|
import { parse as parseYaml2 } from "yaml";
|
|
884
884
|
var __filename3 = fileURLToPath3(import.meta.url);
|
|
@@ -1029,20 +1029,6 @@ function getCachePath() {
|
|
|
1029
1029
|
return join7(getCannbotConfigDir(), "scan-cache.json");
|
|
1030
1030
|
}
|
|
1031
1031
|
function scanDirectory(dirPath, repoPath, sourcePrefix, skills, seen) {
|
|
1032
|
-
const selfSkillMd = join7(dirPath, "SKILL.md");
|
|
1033
|
-
if (existsSync5(selfSkillMd)) {
|
|
1034
|
-
const frontmatter = parseFrontmatter(selfSkillMd);
|
|
1035
|
-
if (frontmatter && !seen.has(frontmatter.name)) {
|
|
1036
|
-
seen.add(frontmatter.name);
|
|
1037
|
-
skills.push({
|
|
1038
|
-
id: frontmatter.name,
|
|
1039
|
-
description: frontmatter.description,
|
|
1040
|
-
source: dirname3(relative(repoPath, dirPath)),
|
|
1041
|
-
filePath: selfSkillMd
|
|
1042
|
-
});
|
|
1043
|
-
}
|
|
1044
|
-
return;
|
|
1045
|
-
}
|
|
1046
1032
|
for (const entry of safeReaddir(dirPath)) {
|
|
1047
1033
|
const fullPath = join7(dirPath, entry);
|
|
1048
1034
|
if (EXCLUDE_DIRS.has(entry)) continue;
|
|
@@ -3228,7 +3214,7 @@ function createCLI() {
|
|
|
3228
3214
|
setLanguage(config.language);
|
|
3229
3215
|
}
|
|
3230
3216
|
const program2 = new Command();
|
|
3231
|
-
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.
|
|
3217
|
+
program2.name("install-helper").description("CANNBot Install Helper - Interactive installer for CANN operator development skills").version("0.0.2-beta.30");
|
|
3232
3218
|
program2.command("init", { isDefault: false }).description("Run interactive installation wizard").action(async () => {
|
|
3233
3219
|
await initCommand();
|
|
3234
3220
|
});
|