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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user