refactor: replace symlink hooks with additionalDirectories for EE access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
centdix
2026-02-21 21:14:53 +00:00
co-authored by Claude Opus 4.5
parent dfad07881d
commit 0d5f42e89e
5 changed files with 22 additions and 99 deletions
+16
View File
@@ -84,4 +84,20 @@ if [ -d "$ee_repo" ]; then
elif [ -d "$ee_worktree_dir" ]; then
echo "EE worktree already exists at $ee_worktree_dir"
fi
# Point Claude Code additionalDirectories at the EE worktree
if [ -d "$ee_worktree_dir" ]; then
ee_rel=$(python3 -c "import os; print(os.path.relpath('$ee_worktree_dir', '$(pwd)'))" 2>/dev/null || echo "$ee_worktree_dir")
mkdir -p .claude
cat > .claude/settings.local.json <<EOFCLAUDE
{
"permissions": {
"additionalDirectories": [
"$ee_rel"
]
}
}
EOFCLAUDE
echo "Created .claude/settings.local.json with EE path: $ee_rel"
fi
fi