web/src/server/services/git-service.ts
)
web/src/client/services/git-service.ts
web/src/server/routes/worktrees.ts
)
GET /api/worktrees
- List all worktrees with stats and follow mode statusPOST /api/worktrees
- Create new worktreeDELETE /api/worktrees/:branch
- Remove worktreePOST /api/worktrees/switch
- Switch branch and enable follow modePOST /api/worktrees/follow
- Enable/disable follow mode for a branchweb/src/server/routes/git.ts
)
GET /api/git/repo-info
- Get repository informationPOST /api/git/event
- Process git hook events (internal use)GET /api/git/follow
- Check follow mode status for a repositoryGET /api/git/notifications
- Get pending notificationschild_process.execFile
for security:
vibetunnel.followWorktree
post-checkout
: Detects branch switchespost-commit
: Detects new commitspost-merge
: Detects merge operationsvt git event
command
web/src/client/components/session-create-form.ts
)
web/src/client/components/worktree-manager.ts
)
vt
command:
vt git event
command:
POST /api/git/event
web/src/server/routes/worktrees.ts
):
web/src/client/services/git-service.ts
):
web/src/client/components/worktree-manager.ts
)
web/src/client/components/session-create-form.ts
)
web/src/client/components/session-create-form/git-utils.ts:100-103
)
${repoPath}-${branchSlug}
worktrees.test.ts
, git-hooks.test.ts
worktree-workflows.test.ts
worktrees.test.ts
- Route handlersgit-hooks.test.ts
- Hook installationsession-create-form.test.ts
- UI logicworktree-workflows.test.ts
- Full workflowsfollow-mode.test.ts
- Follow mode scenariosvibetunnel.followBranch
)${repoPath}-${branchSlug}