feat(team-mode): add worktree manager (optional per-member isolation)

This commit is contained in:
YeonGyu-Kim
2026-04-18 02:04:49 +09:00
parent b00e22c2b8
commit f1268c0448
7 changed files with 282 additions and 0 deletions
@@ -3,3 +3,8 @@
- `MemberSchema` needs `.strict()` on the base shape so the discriminatedUnion rejects members that mix `category` and `subagent_type`.
- `backendType` and `isActive` defaults are part of the schema contract, so tests should use `toMatchObject` instead of exact object equality.
- The eligibility registry must preserve the plan strings verbatim, especially the hard-reject messages for Momus verification.
## Task 12 learnings
- `git worktree remove` can leave prunable entries behind, so pruning after removal keeps the repo index tidy.
- For testability, a tiny git command runner hook made git-unavailable coverage simpler than mocking Bun directly.
- Detached worktrees need unique temp paths in tests to avoid cross-run collisions.