From 15a46b0e8d6fc9b986bce6b17b471c4a29cc950c Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Sun, 22 Mar 2026 08:56:21 +0000 Subject: feat: Phase 5 — story elaboration endpoint, approve flow, branch creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- internal/api/server.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api/server.go') 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) -- cgit v1.2.3