@kody-ade/kody-engine-lite 0.1.131 → 0.1.132
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/bin/cli.js +34 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -8143,12 +8143,45 @@ ${entries}
|
|
|
8143
8143
|
} else {
|
|
8144
8144
|
console.log(" \u25CB .kody/tools.yml (already exists, keeping)");
|
|
8145
8145
|
}
|
|
8146
|
+
console.log("\n\u2500\u2500 Skills \u2500\u2500");
|
|
8147
|
+
const installedSkillPaths = [];
|
|
8148
|
+
const detectedForSkills = detectToolsForBootstrap(cwd);
|
|
8149
|
+
const toolsWithSkills = detectedForSkills.filter((t) => t.skill);
|
|
8150
|
+
if (toolsWithSkills.length > 0) {
|
|
8151
|
+
for (const tool of toolsWithSkills) {
|
|
8152
|
+
try {
|
|
8153
|
+
console.log(` Installing: ${tool.skill}`);
|
|
8154
|
+
execFileSync4("npx", ["skills", "add", tool.skill, "--yes"], {
|
|
8155
|
+
cwd,
|
|
8156
|
+
encoding: "utf-8",
|
|
8157
|
+
timeout: 6e4,
|
|
8158
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
8159
|
+
});
|
|
8160
|
+
for (const dir of [".claude/skills", ".agents/skills"]) {
|
|
8161
|
+
const skillName = tool.skill.split("@").pop() ?? "";
|
|
8162
|
+
const skillPath = path7.join(dir, skillName);
|
|
8163
|
+
if (fs8.existsSync(path7.join(cwd, skillPath))) {
|
|
8164
|
+
installedSkillPaths.push(skillPath);
|
|
8165
|
+
}
|
|
8166
|
+
}
|
|
8167
|
+
console.log(` \u2713 ${tool.name} skill installed`);
|
|
8168
|
+
} catch {
|
|
8169
|
+
console.log(` \u2717 ${tool.name} skill install failed`);
|
|
8170
|
+
}
|
|
8171
|
+
}
|
|
8172
|
+
} else {
|
|
8173
|
+
console.log(" \u25CB No tool skills to install");
|
|
8174
|
+
}
|
|
8175
|
+
if (fs8.existsSync(path7.join(cwd, "skills-lock.json"))) {
|
|
8176
|
+
installedSkillPaths.push("skills-lock.json");
|
|
8177
|
+
}
|
|
8146
8178
|
console.log("\n\u2500\u2500 Git \u2500\u2500");
|
|
8147
8179
|
const filesToCommit = [
|
|
8148
8180
|
".kody/memory/architecture.md",
|
|
8149
8181
|
".kody/memory/conventions.md",
|
|
8150
8182
|
".kody/qa-guide.md",
|
|
8151
|
-
".kody/tools.yml"
|
|
8183
|
+
".kody/tools.yml",
|
|
8184
|
+
...installedSkillPaths
|
|
8152
8185
|
].filter((f) => fs8.existsSync(path7.join(cwd, f)));
|
|
8153
8186
|
for (const stage of STEP_STAGES) {
|
|
8154
8187
|
const stepFile = `.kody/steps/${stage}.md`;
|