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

@@ -14,11 +14,11 @@ After a GSD update wipes and reinstalls files, this command merges user's previo
Check for local patches directory:
```bash
# Global install
PATCHES_DIR="${HOME}/.claude/gsd-local-patches"
# Global install (path templated at install time)
PATCHES_DIR=~/.claude/gsd-local-patches
# Local install fallback
if [ ! -d "$PATCHES_DIR" ]; then
PATCHES_DIR="./.claude/gsd-local-patches"
PATCHES_DIR=./.claude/gsd-local-patches
fi
```