diff options
| author | Claude <noreply@anthropic.com> | 2026-05-25 05:01:05 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-05-25 05:01:05 +0000 |
| commit | 6890bafa65a309b540cbe1562c39df137f202369 (patch) | |
| tree | a6e08cf0ea814f08268a96802b5839c415e303c6 /internal/api/server.go | |
| parent | e766b4c3ef13181ec6adf90ec4abe9db0129fab1 (diff) | |
refactor(api): remove the natural-language elaborate REST endpoint (Phase 3)
Chatbots now elaborate tasks in-conversation and submit them via the chatbot
MCP server, so the POST /api/tasks/elaborate shell-out path is no longer needed.
Removes the route, handleElaborateTask, and the task-elaborate-only helpers
(buildElaboratePrompt, sanitizeElaboratedTask, readProjectContext,
appendRawNarrative, elaborateWith{Claude,Local,Gemini}, and the elaboratedTask/
elaboratedAgent types) plus their dedicated tests.
Shared helpers (extractJSON, claude/geminiBinaryPath, claude/geminiJSONResult,
elaborateTimeout, the per-IP limiter) are retained — the story-elaborate
endpoint and task-validate endpoint still use them. Stories themselves are
untouched here; their removal stays in the Phase 8 cleanup pass.
https://claude.ai/code/session_01SESwn7kQ7oP62trWw6pc39
Diffstat (limited to 'internal/api/server.go')
| -rw-r--r-- | internal/api/server.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/api/server.go b/internal/api/server.go index c9fadb9..6564280 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -133,7 +133,6 @@ func (s *Server) StartHub() { } func (s *Server) routes() { - s.mux.HandleFunc("POST /api/tasks/elaborate", s.handleElaborateTask) s.mux.HandleFunc("POST /api/tasks/validate", s.handleValidateTask) s.mux.HandleFunc("POST /api/tasks", s.handleCreateTask) s.mux.HandleFunc("GET /api/tasks", s.handleListTasks) |
