fix(install): template hook paths for OpenCode/Gemini runtimes (#585)

Hooks had hardcoded `.claude` paths that broke OpenCode users. The
installer now templates `.js` hooks with runtime-specific config dirs,
same as it already does for `.md` files. Also added `./.claude/`
replacement for local install paths in workflows.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-02-15 08:40:04 -06:00
parent 7b140c2dd2
commit 9a7bb22ea7
3 changed files with 47 additions and 11 deletions

View File

@@ -13,8 +13,9 @@ Detect whether GSD is installed locally or globally by checking both locations:
```bash
# Check local first (takes priority)
if [ -f "./.claude/get-shit-done/VERSION" ]; then
cat "./.claude/get-shit-done/VERSION"
# Paths templated at install time for runtime compatibility
if [ -f ./.claude/get-shit-done/VERSION ]; then
cat ./.claude/get-shit-done/VERSION
echo "LOCAL"
elif [ -f ~/.claude/get-shit-done/VERSION ]; then
cat ~/.claude/get-shit-done/VERSION
@@ -167,6 +168,7 @@ rm -f ./.claude/cache/gsd-update-check.json
```bash
rm -f ~/.claude/cache/gsd-update-check.json
```
(Paths are templated at install time for runtime compatibility)
</step>
<step name="display_result">