get-shit-done-dh 1.0.0 → 1.2.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 +16 -12
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -1991,6 +1991,13 @@ function uninstall(isGlobal, runtime = 'claude') {
1991
1991
  }
1992
1992
  }
1993
1993
  } else if (isCodebuddy) {
1994
+ const gsdCommandsDir = path.join(targetDir, 'commands', 'gsd');
1995
+ if (fs.existsSync(gsdCommandsDir)) {
1996
+ fs.rmSync(gsdCommandsDir, { recursive: true });
1997
+ removedCount++;
1998
+ console.log(` ${green}✓${reset} Removed commands/gsd/`);
1999
+ }
2000
+ // Also clean up legacy skills if present from older installs
1994
2001
  const skillsDir = path.join(targetDir, 'skills');
1995
2002
  if (fs.existsSync(skillsDir)) {
1996
2003
  let skillCount = 0;
@@ -2003,7 +2010,7 @@ function uninstall(isGlobal, runtime = 'claude') {
2003
2010
  }
2004
2011
  if (skillCount > 0) {
2005
2012
  removedCount++;
2006
- console.log(` ${green}✓${reset} Removed ${skillCount} CodeBuddy skills`);
2013
+ console.log(` ${green}✓${reset} Removed ${skillCount} legacy CodeBuddy skills`);
2007
2014
  }
2008
2015
  }
2009
2016
  } else {
@@ -2631,19 +2638,16 @@ function install(isGlobal, runtime = 'claude') {
2631
2638
  failures.push('skills/gsd-*');
2632
2639
  }
2633
2640
  } else if (isCodebuddy) {
2634
- const skillsDir = path.join(targetDir, 'skills');
2641
+ // CodeBuddy: install commands/gsd/ for slash command invocation via ~/.codebuddy/commands/
2635
2642
  const gsdSrc = path.join(src, 'commands', 'gsd');
2636
- copyCommandsAsCodebuddySkills(gsdSrc, skillsDir, 'gsd', isGlobal);
2637
- if (fs.existsSync(skillsDir)) {
2638
- const count = fs.readdirSync(skillsDir, { withFileTypes: true })
2639
- .filter(e => e.isDirectory() && e.name.startsWith('gsd-')).length;
2640
- if (count > 0) {
2641
- console.log(` ${green}✓${reset} Installed ${count} skills to skills/`);
2642
- } else {
2643
- failures.push('skills/gsd-*');
2644
- }
2643
+ const commandsDir = path.join(targetDir, 'commands');
2644
+ fs.mkdirSync(commandsDir, { recursive: true });
2645
+ const gsdCommandsDest = path.join(commandsDir, 'gsd');
2646
+ copyWithPathReplacement(gsdSrc, gsdCommandsDest, pathPrefix, runtime, true, isGlobal);
2647
+ if (verifyInstalled(gsdCommandsDest, 'commands/gsd')) {
2648
+ console.log(` ${green}✓${reset} Installed commands/gsd`);
2645
2649
  } else {
2646
- failures.push('skills/gsd-*');
2650
+ failures.push('commands/gsd');
2647
2651
  }
2648
2652
  } else {
2649
2653
  // Claude Code & Gemini: nested structure in commands/ directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-shit-done-dh",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code, OpenCode, Gemini and Codex by TÂCHES.",
5
5
  "bin": {
6
6
  "get-shit-done-dh": "bin/install.js"