fix: Symlink .auto-build-data/ and .claude/rules/ in worktrees
Worktrees now have symlinks to the main repo's: - .auto-build-data/ - specs, plans, status, memory - .claude/rules/ - auto-build patterns and learned memory This ensures /ab:build can detect PLANNING_COMPLETE status when running in worktree and continue with implementation. Also clarified in build.md that PLANNING_COMPLETE skips planning. Bumps version to 1.0.5. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
"name": "ab",
|
"name": "ab",
|
||||||
"source": "./plugin",
|
"source": "./plugin",
|
||||||
"description": "Spec-driven build orchestration with git worktree isolation and session memory",
|
"description": "Spec-driven build orchestration with git worktree isolation and session memory",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"keywords": ["build", "spec", "automation", "worktree", "qa"]
|
"keywords": ["build", "spec", "automation", "worktree", "qa"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
All notable changes to Auto-Build plugin.
|
All notable changes to Auto-Build plugin.
|
||||||
|
|
||||||
|
## [1.0.5] - 2024-12-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Worktree now creates symlinks to `.auto-build-data/` and `.claude/rules/` from main repo
|
||||||
|
- This ensures specs, plans, status, and memory are shared across worktrees
|
||||||
|
- `/ab:build` in worktree will correctly detect `PLANNING_COMPLETE` status and continue
|
||||||
|
|
||||||
|
### Improved
|
||||||
|
- Clarified in build.md that `PLANNING_COMPLETE` skips planning phase
|
||||||
|
|
||||||
## [1.0.4] - 2024-12-22
|
## [1.0.4] - 2024-12-22
|
||||||
|
|
||||||
### Improved
|
### Improved
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ab",
|
"name": "ab",
|
||||||
"description": "Auto-Build: Spec-driven build orchestration with worktree isolation and session memory",
|
"description": "Auto-Build: Spec-driven build orchestration with worktree isolation and session memory",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "ROA2WEB Team"
|
"name": "ROA2WEB Team"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,7 +71,11 @@ To work in the isolated worktree, you need a new session there.
|
|||||||
|
|
||||||
### 3. Planning Phase
|
### 3. Planning Phase
|
||||||
|
|
||||||
If status is `SPEC_COMPLETE`:
|
**If status is `PLANNING_COMPLETE`** (plan already exists):
|
||||||
|
- Skip directly to Implementation Loop (step 4)
|
||||||
|
- This happens when resuming in a worktree after plan was created in main repo
|
||||||
|
|
||||||
|
**If status is `SPEC_COMPLETE`**:
|
||||||
|
|
||||||
1. Load memory context (if exists):
|
1. Load memory context (if exists):
|
||||||
- Read `.auto-build-data/memory/patterns.json`
|
- Read `.auto-build-data/memory/patterns.json`
|
||||||
|
|||||||
@@ -66,6 +66,19 @@ fi
|
|||||||
echo "Creating worktree..."
|
echo "Creating worktree..."
|
||||||
git worktree add "$WORKTREE_PATH" "$BRANCH_NAME"
|
git worktree add "$WORKTREE_PATH" "$BRANCH_NAME"
|
||||||
|
|
||||||
|
# Create symlink to .auto-build-data/ from main repo
|
||||||
|
# This ensures specs, plans, and status are shared across worktrees
|
||||||
|
if [ -d "$PROJECT_ROOT/.auto-build-data" ]; then
|
||||||
|
echo "Creating symlink to .auto-build-data/..."
|
||||||
|
ln -s "$PROJECT_ROOT/.auto-build-data" "$WORKTREE_PATH/.auto-build-data"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Also symlink .claude/rules/ for memory access
|
||||||
|
if [ -d "$PROJECT_ROOT/.claude/rules" ]; then
|
||||||
|
mkdir -p "$WORKTREE_PATH/.claude"
|
||||||
|
ln -s "$PROJECT_ROOT/.claude/rules" "$WORKTREE_PATH/.claude/rules"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update registry
|
# Update registry
|
||||||
REGISTRY_FILE="$PROJECT_ROOT/.auto-build-data/worktrees/worktree-registry.json"
|
REGISTRY_FILE="$PROJECT_ROOT/.auto-build-data/worktrees/worktree-registry.json"
|
||||||
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|||||||
Reference in New Issue
Block a user