diff options
| author | Claudomator Agent <agent@claudomator.local> | 2026-03-22 08:56:21 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator.local> | 2026-03-22 08:56:21 +0000 |
| commit | 15a46b0e8d6fc9b986bce6b17b471c4a29cc950c (patch) | |
| tree | 7e8bb8006131de8edacb3247e1411716ecd1f9d0 /internal/api/server.go | |
| parent | 2e0f3aaf2566db9979ca827b9d29884be8fbeee0 (diff) | |
feat: Phase 5 — story elaboration endpoint, approve flow, branch creation
- POST /api/stories/elaborate: runs Claude/Gemini against project LocalPath
to produce a structured story plan (name, branch_name, tasks, validation)
- POST /api/stories/approve: creates story + sequentially-wired tasks/subtasks
from the elaborate output and pushes the story branch to origin
- createStoryBranch helper: git checkout -b + push -u origin
- Tests: TestBuildStoryElaboratePrompt, TestHandleStoryApprove_WiresDepends
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/server.go')
| -rw-r--r-- | internal/api/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/server.go b/internal/api/server.go index 092ae3a..9e3cde4 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -138,6 +138,8 @@ func (s *Server) routes() { s.mux.HandleFunc("POST /api/projects", s.handleCreateProject) s.mux.HandleFunc("GET /api/projects/{id}", s.handleGetProject) s.mux.HandleFunc("PUT /api/projects/{id}", s.handleUpdateProject) + s.mux.HandleFunc("POST /api/stories/elaborate", s.handleElaborateStory) + s.mux.HandleFunc("POST /api/stories/approve", s.handleApproveStory) s.mux.HandleFunc("GET /api/stories", s.handleListStories) s.mux.HandleFunc("POST /api/stories", s.handleCreateStory) s.mux.HandleFunc("GET /api/stories/{id}", s.handleGetStory) |
