fix: Worktree scripts use $(pwd) for project root

Scripts now correctly determine project root from current working
directory instead of calculating relative to script location.
This fixes the issue when scripts are called via ${CLAUDE_PLUGIN_ROOT}.

Also adds CLAUDE.md and CHANGELOG.md for development guidance.

Bumps version to 1.0.3.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-22 11:07:39 +02:00
parent 34b12c5742
commit 730e5d6061
8 changed files with 139 additions and 15 deletions

View File

@@ -4,9 +4,8 @@
set -e
# Get project root (parent of .auto-build)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Get project root from current working directory (where Claude Code is running)
PROJECT_ROOT="$(pwd)"
echo "========================================"
echo " Git Worktrees"