harness-evolver 0.7.0 → 0.8.0

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 +13 -4
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -75,20 +75,29 @@ function installForRuntime(runtimeDir, scope) {
75
75
  ? path.join(process.cwd(), runtimeDir)
76
76
  : path.join(HOME, runtimeDir);
77
77
 
78
- const commandsDir = path.join(baseDir, "commands", "harness-evolver");
78
+ const skillsDir = path.join(baseDir, "skills");
79
79
  const agentsDir = path.join(baseDir, "agents");
80
80
 
81
- // Skills → commands/harness-evolver/
81
+ // Skills → ~/.claude/skills/<skill-name>/SKILL.md (proper skills format)
82
82
  const skillsSource = path.join(PLUGIN_ROOT, "skills");
83
83
  if (fs.existsSync(skillsSource)) {
84
84
  for (const skill of fs.readdirSync(skillsSource, { withFileTypes: true })) {
85
85
  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}`);
86
+ const src = path.join(skillsSource, skill.name);
87
+ const dest = path.join(skillsDir, "harness-evolver:" + skill.name);
88
+ copyDir(src, dest);
89
+ console.log(` ${GREEN}✓${RESET} Installed skill: harness-evolver:${skill.name}`);
88
90
  }
89
91
  }
90
92
  }
91
93
 
94
+ // Cleanup old commands/ install (from previous versions)
95
+ const oldCommandsDir = path.join(baseDir, "commands", "harness-evolver");
96
+ if (fs.existsSync(oldCommandsDir)) {
97
+ fs.rmSync(oldCommandsDir, { recursive: true, force: true });
98
+ console.log(` ${GREEN}✓${RESET} Cleaned up old commands/ directory`);
99
+ }
100
+
92
101
  // Agents → agents/
93
102
  const agentsSource = path.join(PLUGIN_ROOT, "agents");
94
103
  if (fs.existsSync(agentsSource)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-evolver",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Meta-Harness-style autonomous harness optimization for Claude Code",
5
5
  "author": "Raphael Valdetaro",
6
6
  "license": "MIT",