feat(git-tool): added git-tool package with 22 operations and safety guards

- Added new @oh-my-pi/pi-git-tool package with 22 git operations, safety guards, caching, and GitHub CLI integration.
- Added /wt slash command for git worktree management with create, list, merge, remove, spawn, and parallel operations.
- Added worktree library with collapse strategies (simple, merge-base, rebase) and session tracking for agent tasks.
- Added structured git tool with TypeBox schema exposing gitTool and createGitTool from SDK.
- Added safety policies blocking force push to protected branches and warning on destructive operations.
This commit is contained in:
can1357
2026-01-05 15:37:44 +01:00
parent 44b10b12d5
commit 56e760f2bc
65 changed files with 5545 additions and 12 deletions
+1
View File
@@ -41,6 +41,7 @@
"dependencies": {
"@oh-my-pi/pi-agent-core": "workspace:*",
"@oh-my-pi/pi-ai": "workspace:*",
"@oh-my-pi/pi-git-tool": "workspace:*",
"@oh-my-pi/pi-tui": "workspace:*",
"@openai/agents": "^0.3.7",
"@sinclair/typebox": "^0.34.46",