-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
epic:rest-apiEpic 3: REST API RoutesEpic 3: REST API RoutesmobilePPG Mobile projectPPG Mobile project
Description
Epic 3: REST API Routes — Issue 4/5
Source: 1-agent worktree — most complete with PR creation
Description
Worktree action endpoints for merge, kill, and PR creation.
Acceptance Criteria
-
POST /api/worktrees/:id/merge— callscore/operations/merge(squash/no-ff, force flag, cleanup) -
POST /api/worktrees/:id/kill— kill all agents in worktree -
POST /api/worktrees/:id/pr— create GitHub PR viaghCLI, store URL in manifest - Merge strategy configurable (squash default, no-ff option)
- Tests with mocked core functions
Dependencies
- Requires: Extract merge operation to core/operations/merge.ts #59 (merge operation), Extract kill operation to core/operations/kill.ts #61 (kill operation), Create ppg serve command and Fastify server scaffold #63 (server scaffold), Implement token auth system with hashing and rate limiting #64 (auth)
Files to Create/Modify
src/server/routes/worktrees.ts(new)src/server/routes/worktrees.test.ts(new)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
epic:rest-apiEpic 3: REST API RoutesEpic 3: REST API RoutesmobilePPG Mobile projectPPG Mobile project