Commit graph

7 commits

Author SHA1 Message Date
David Kong
ce0a350181 Add .gitignore for planning files and remove them from tracking 2026-07-24 18:39:32 +10:00
David Kong
c71a81183e Fix code review issues: structured error returns, remove unused count, add JSDoc
- Replace throw Error() with { content, isError: true } in all execute functions and command handler
- Remove unused count field from WorktreeListResult interface
- Add JSDoc comments above all defineTool() calls
- Clarify task_plan.md subtask structure (001.1-001.3)
2026-07-24 18:31:12 +10:00
David Kong
618288aa79 Create extension file structure with tool scaffolding
- Add .pi/extensions/pi-worktree.ts with correct imports and default export
- Define WorktreeEntry, WorktreeListResult, WorktreeError types
- Register 4 tools: create, list, switch, remove (stubs)
- Register /worktree command (stub)
- Add helper function stubs: parseWorktreeList, pathExists, resolveWorktreeTarget
- Uses defineTool() and Type from pi SDK for type-safe registration
2026-07-24 18:16:00 +10:00
David Kong
37e6ab25c3 add DOMAIN.md file to initial commits 2026-07-24 12:45:32 +10:00
David Kong
13a2ec6581 initial commit 2026-07-24 12:36:57 +10:00
David Kong
3f7ccd0f34 Move docs into main/ subdirectory 2026-07-24 12:27:47 +10:00
David Kong
cd51baa2c1 Initial commit: extension docs and design plan 2026-07-24 12:16:00 +10:00