opus version correction

This commit is contained in:
bastien
2026-04-03 18:08:21 +02:00
parent fa50c0f402
commit f8811fab37
24 changed files with 1005 additions and 1068 deletions
+18 -6
View File
@@ -9,21 +9,33 @@ CLAUDE="$HOME/.claude"
mkdir -p "$CLAUDE"
# Core config files
# Core config files (plain files — ln -sf handles these correctly)
ln -sf "$REPO/CLAUDE.md" "$CLAUDE/CLAUDE.md"
ln -sf "$REPO/settings.json" "$CLAUDE/settings.json"
# Agents and skills
ln -sf "$REPO/agents" "$CLAUDE/agents"
ln -sf "$REPO/skills" "$CLAUDE/skills"
# Agents and skills — must handle the case where target exists
# as a real directory (ln -sf would create a link INSIDE the dir
# instead of replacing it)
for item in agents skills lib; do
target="$CLAUDE/$item"
if [ -L "$target" ]; then
# Stale symlink from a previous run — remove before recreating
rm -f "$target"
elif [ -d "$target" ]; then
echo "⚠️ ~/.claude/$item is a real directory (not a symlink)."
echo " Rename or remove it, then re-run link.sh."
echo " Skipping $item to avoid data loss."
continue
fi
ln -sf "$REPO/$item" "$target"
done
# Hooks
mkdir -p "$CLAUDE/hooks"
ln -sf "$REPO/hooks/session-start.sh" "$CLAUDE/hooks/session-start.sh"
# GStack (submodule) — symlink from skills-external/ into ~/.claude/skills/
# GStack (submodule) — symlink into ~/.claude/skills/ (which points to repo/skills/)
# The submodule must be initialized first (done by install-plugins.sh)
mkdir -p "$CLAUDE/skills"
if [ -d "$REPO/skills-external/gstack" ]; then
ln -sf "$REPO/skills-external/gstack" "$CLAUDE/skills/gstack"
echo "✅ GStack symlinked from submodule"