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.
Files changed (2) hide show
  1. package/bin/install.js +8 -3
  2. 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
- copyDir(path.join(skillsSource, skill.name), path.join(commandsDir, skill.name));
87
- console.log(` ${GREEN}✓${RESET} Installed command: harness-evolver:${skill.name}`);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-evolver",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Meta-Harness-style autonomous harness optimization for Claude Code",
5
5
  "author": "Raphael Valdetaro",
6
6
  "license": "MIT",