fix(quick): add gsd-sdk pre-flight check with install hint (#2334) (#2354)

Closes #2334

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-04-17 09:29:59 -04:00
committed by GitHub
parent d8b851346e
commit f8448a337b
2 changed files with 75 additions and 0 deletions

View File

@@ -124,6 +124,19 @@ If `$VALIDATE_MODE` only:
**Step 2: Initialize**
```bash
if ! command -v gsd-sdk &>/dev/null; then
echo "⚠ gsd-sdk not found in PATH — /gsd-quick requires it."
echo ""
echo "Install the GSD SDK:"
echo " npm install -g @gsd-build/sdk"
echo ""
echo "Or update GSD to get the latest packages:"
echo " /gsd-update"
exit 1
fi
```
```bash
INIT=$(gsd-sdk query init.quick "$DESCRIPTION")
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi