fix: resolve gsd-tools.cjs from repo-local installation before global fallback (#1425)

Probe <projectDir>/.claude/get-shit-done/bin/gsd-tools.cjs before falling back
to ~/.claude/get-shit-done/bin/gsd-tools.cjs, fixing MODULE_NOT_FOUND for
repo-local GSD installations. Also adds repo-local agent definition path.

Closes #1424

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
TÂCHES
2026-03-27 09:57:54 -06:00
committed by GitHub
parent 38c18ac68a
commit 1421dc07bc
5 changed files with 62 additions and 9 deletions

View File

@@ -71,6 +71,7 @@ vi.mock('./gsd-tools.js', () => ({
GSDToolsError: class extends Error {
name = 'GSDToolsError';
},
resolveGsdToolsPath: vi.fn().mockReturnValue('/mock/gsd-tools.cjs'),
}));
import { GSD } from './index.js';