mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-21 07:45:38 +00:00
Adds server.registerWorktreeManager({ create, remove?, restore? }) so external worktree tools such as Worktrunk can own Git worktree creation, removal, and restoration instead of overloading worktree.create.before.
Keeping worktree.create.before purely transformative preserves multi-plugin chaining, rollback, and the 30s hook budget, while giving manager operations a 120s budget matching git worktree commands. Paseo snapshots existing worktrees before create so managers cannot hijack pre-existing user worktrees, writes comparison-base and owning plugin metadata into paseo/worktree.json and the workspace record, saves refs/paseo/kept-commits before removal so restore stays safe, and falls back to built-in Git if a manager declines or is disabled.
7 lines
182 B
JSON
7 lines
182 B
JSON
{
|
|
"id": "worktrunk",
|
|
"name": "Worktrunk",
|
|
"description": "Manage Git worktrees and agent activity markers through Worktrunk (wt).",
|
|
"requirements": { "paseo": ">=0.16.0" }
|
|
}
|