@kody-ade/kody-engine-lite 0.1.129 → 0.1.130
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 +14 -8
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -5551,7 +5551,8 @@ function loadToolDeclarations(projectDir) {
|
|
|
5551
5551
|
name,
|
|
5552
5552
|
detect: Array.isArray(v.detect) ? v.detect : [],
|
|
5553
5553
|
stages: Array.isArray(v.stages) ? v.stages : [],
|
|
5554
|
-
setup: typeof v.setup === "string" ? v.setup : ""
|
|
5554
|
+
setup: typeof v.setup === "string" ? v.setup : "",
|
|
5555
|
+
skill: typeof v.skill === "string" ? v.skill : void 0
|
|
5555
5556
|
};
|
|
5556
5557
|
});
|
|
5557
5558
|
} catch (err) {
|
|
@@ -5567,7 +5568,8 @@ function detectTools(declarations, projectDir) {
|
|
|
5567
5568
|
resolved.push({
|
|
5568
5569
|
name: decl.name,
|
|
5569
5570
|
stages: decl.stages,
|
|
5570
|
-
setup: decl.setup
|
|
5571
|
+
setup: decl.setup,
|
|
5572
|
+
skill: decl.skill
|
|
5571
5573
|
});
|
|
5572
5574
|
}
|
|
5573
5575
|
return resolved;
|
|
@@ -5583,12 +5585,14 @@ function runToolSetup(tools, projectDir) {
|
|
|
5583
5585
|
logger.warn(` \u26A0 ${tool.name} setup failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
5584
5586
|
}
|
|
5585
5587
|
}
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5588
|
+
if (tool.skill) {
|
|
5589
|
+
try {
|
|
5590
|
+
logger.info(` Installing skill: ${tool.skill}`);
|
|
5591
|
+
execSync3(`npx skills add ${tool.skill} --yes`, { cwd: projectDir, timeout: 6e4, stdio: "pipe" });
|
|
5592
|
+
logger.info(` \u2713 ${tool.name} skill installed`);
|
|
5593
|
+
} catch (err) {
|
|
5594
|
+
logger.warn(` \u26A0 ${tool.name} skill install failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
5595
|
+
}
|
|
5592
5596
|
}
|
|
5593
5597
|
}
|
|
5594
5598
|
}
|
|
@@ -8097,11 +8101,13 @@ Command and URL.
|
|
|
8097
8101
|
const toolsTemplate = `# Kody Tools Configuration
|
|
8098
8102
|
# Uncomment and configure tools that your project uses.
|
|
8099
8103
|
# The engine detects tools, runs setup commands, and installs matching skills from skills.sh.
|
|
8104
|
+
# Find skills at https://skills.sh
|
|
8100
8105
|
#
|
|
8101
8106
|
# playwright:
|
|
8102
8107
|
# detect: ["playwright.config.ts", "playwright.config.js"]
|
|
8103
8108
|
# stages: [verify]
|
|
8104
8109
|
# setup: "npx playwright install --with-deps chromium"
|
|
8110
|
+
# skill: "microsoft/playwright-cli@playwright-cli"
|
|
8105
8111
|
`;
|
|
8106
8112
|
fs8.writeFileSync(toolsYmlPath, toolsTemplate);
|
|
8107
8113
|
console.log(" \u2713 .kody/tools.yml (template created)");
|