pi-worktrees/.pi/extensions
David Kong 774e6005a3 feat: implement git_worktree_remove tool (Issue #5)
Add validation and error handling for removing linked worktrees:
- validateRemoveWorktreeInput() — validates path is non-empty
- isMainRepository() — refuses removal of main repo root
- hasUncommittedChanges() — checks git status --porcelain output
- buildWorktreeRemoveCommand() — builds git worktree remove args

Wire up createRemoveWorktreeTool with full validation pipeline:
1. Validate input parameters (path)
2. Check if target is the main repo — refuse with prune suggestion
3. Check for uncommitted changes — refuse with stash/commit message
4. Run git worktree remove <path>
5. Surface git errors with helpful suggestions
2026-07-25 07:23:30 +10:00
..
pi-worktree-create.ts Milestone 2.1: Implement git_worktree_create tool (#4) (#17) 2026-07-24 20:50:45 +00:00
pi-worktree-parser.ts Milestone 1.3: Implement git_worktree_list tool (#3) (#16) 2026-07-24 13:11:08 +00:00
pi-worktree-remove.test.ts feat: implement git_worktree_remove tool (Issue #5) 2026-07-25 07:23:30 +10:00
pi-worktree-remove.ts feat: implement git_worktree_remove tool (Issue #5) 2026-07-25 07:23:30 +10:00
pi-worktree.test.ts Milestone 2.1: Implement git_worktree_create tool (#4) (#17) 2026-07-24 20:50:45 +00:00
pi-worktree.ts feat: implement git_worktree_remove tool (Issue #5) 2026-07-25 07:23:30 +10:00