harness-evolver 0.7.0 → 0.7.1
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/bin/install.js +8 -3
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -78,13 +78,18 @@ function installForRuntime(runtimeDir, scope) {
|
|
|
78
78
|
const commandsDir = path.join(baseDir, "commands", "harness-evolver");
|
|
79
79
|
const agentsDir = path.join(baseDir, "agents");
|
|
80
80
|
|
|
81
|
-
// Skills → commands/harness-evolver/
|
|
81
|
+
// Skills → commands/harness-evolver/ as flat .md files
|
|
82
|
+
// Claude Code expects commands/name.md, not commands/name/SKILL.md
|
|
82
83
|
const skillsSource = path.join(PLUGIN_ROOT, "skills");
|
|
83
84
|
if (fs.existsSync(skillsSource)) {
|
|
85
|
+
fs.mkdirSync(commandsDir, { recursive: true });
|
|
84
86
|
for (const skill of fs.readdirSync(skillsSource, { withFileTypes: true })) {
|
|
85
87
|
if (skill.isDirectory()) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
const skillMd = path.join(skillsSource, skill.name, "SKILL.md");
|
|
89
|
+
if (fs.existsSync(skillMd)) {
|
|
90
|
+
fs.copyFileSync(skillMd, path.join(commandsDir, skill.name + ".md"));
|
|
91
|
+
console.log(` ${GREEN}✓${RESET} Installed command: harness-evolver:${skill.name}`);
|
|
92
|
+
}
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
}
|