feat: add porcelain worktree parser with listWorktrees and parseWorktreeListPorcelain

Introduce git worktree list --porcelain parsing following upstream opencode patterns. Exports listWorktrees() for full worktree enumeration with branch info alongside existing detectWorktreePath().

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-12 17:25:10 +09:00
parent 2210997c89
commit c9d30f8be3
3 changed files with 175 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export { HOOK_NAME, createStartWorkHook } from "./start-work-hook"
export { detectWorktreePath } from "./worktree-detector"
export { detectWorktreePath, listWorktrees, parseWorktreeListPorcelain } from "./worktree-detector"
export type { ParsedUserRequest } from "./parse-user-request"
export { parseUserRequest } from "./parse-user-request"