fix: resolve installed gsd-tools in workflows (#354)

* fix: resolve installed gsd-tools in workflows

* chore: add changeset
This commit is contained in:
Colin Johnson
2026-05-26 18:56:21 -04:00
committed by GitHub
parent 47bba87d90
commit aaa19b0609
74 changed files with 450 additions and 143 deletions

View File

@@ -69,12 +69,15 @@ documents refreshed.
Load codebase mapping context:
```bash
# SDK resolution: prefer local gsd-tools.cjs, fail if local gsd-tools.cjs is missing (#3668)
# SDK resolution: prefer local gsd-tools.cjs, fall back to installed gsd-tools (#3668)
GSD_TOOLS="${RUNTIME_DIR:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/get-shit-done/bin/gsd-tools.cjs"
if [ -f "$GSD_TOOLS" ]; then
GSD_SDK="node $GSD_TOOLS"
elif command -v gsd-tools >/dev/null 2>&1; then
GSD_TOOLS="$(command -v gsd-tools)"
GSD_SDK="$GSD_TOOLS"
else
echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS." >&2
echo "ERROR: gsd-tools.cjs not found at $GSD_TOOLS and gsd-tools is not on PATH." >&2
echo "Run: npx -y @opengsd/get-shit-done-redux@latest --claude --local" >&2
exit 1
fi