Milestone 1.2: Register all four worktree tools #15

Merged
david merged 2 commits from issue-2 into main 2026-07-24 12:31:30 +00:00
Owner

Summary

Register all four git worktree tools with correct TypeBox schemas and placeholder implementations.

Changes

  • Added .pi/extensions/pi-worktree.ts with four tool registrations:
    • git_worktree_list — no params, lists linked worktrees
    • git_worktree_create — path, branch?, create_branch? params
    • git_worktree_switch — target param for switching cwd
    • git_worktree_remove — path param for removing worktrees
  • Each tool returns "Not implemented yet." placeholder response

Testing

  • All four tools registered with correct TypeBox schemas
  • Calling each tool returns a response (placeholder)
  • Extension loads without errors when pi starts (manual verification needed)

Checklist

  • Self-reviewed the diff
  • Code follows project conventions
  • Descriptive naming (no single-character variables)
## Summary Register all four git worktree tools with correct TypeBox schemas and placeholder implementations. ## Changes - Added `.pi/extensions/pi-worktree.ts` with four tool registrations: - `git_worktree_list` — no params, lists linked worktrees - `git_worktree_create` — path, branch?, create_branch? params - `git_worktree_switch` — target param for switching cwd - `git_worktree_remove` — path param for removing worktrees - Each tool returns "Not implemented yet." placeholder response ## Testing - [x] All four tools registered with correct TypeBox schemas - [x] Calling each tool returns a response (placeholder) - [ ] Extension loads without errors when pi starts (manual verification needed) ## Checklist - [ ] Self-reviewed the diff - [ ] Code follows project conventions - [ ] Descriptive naming (no single-character variables)
david added 2 commits 2026-07-24 08:48:07 +00:00
- Split Validation Checklist into verifiable docs vs deferred implementation checks (AGENTS.md)
- Correct README example output to match actual `git worktree list` format
- Add pi platform version requirement (`pi >= 0.5.0`) to Requirements section
- Add Testing Strategy section with unit, integration, and manual verification procedures (DESIGN.md)
- Document annotated `git worktree list` raw output format with parsing rules (DOMAIN.md)
- Add permission fail condition for `create` tool in Tool Behaviors table
Register git_worktree_list, git_worktree_create, git_worktree_switch,
and git_worktree_remove with correct TypeBox schemas. Each tool returns
'Not implemented yet.' as a placeholder response.
david force-pushed issue-2 from 3c3f33037d to 637003d70c 2026-07-24 12:30:24 +00:00 Compare
david merged commit dd2202f54c into main 2026-07-24 12:31:30 +00:00
david deleted branch issue-2 2026-07-24 12:31:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: david/pi-worktrees#15
No description provided.