- Add pi-worktree-create.ts with pure validation/command-building functions - validateCreateWorktreeInput: checks path and branch name validity - validatePathDoesNotExist: refuses if target path exists (injectable for testing) - isCurrentBranch: prevents creating worktree on current branch - buildWorktreeAddCommand: builds correct git command with -b flag support - Full error messages match issue acceptance criteria exactly - 17 new tests covering all validation paths and edge cases |
||
|---|---|---|
| .. | ||
| pi-worktree-create.ts | ||
| pi-worktree-parser.ts | ||
| pi-worktree.test.ts | ||
| pi-worktree.ts | ||