summaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 4af7325..35128d0 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -46,8 +46,6 @@ type Server struct {
logger *slog.Logger
mux *http.ServeMux
claudeBinPath string // path to claude binary; defaults to "claude"
- geminiBinPath string // path to gemini binary; defaults to "gemini"
- elaborateCmdPath string // overrides claudeBinPath; used in tests
validateCmdPath string // overrides claudeBinPath for validate; used in tests
scripts ScriptRegistry // optional; maps endpoint name → script path
workDir string // working directory injected into elaborate system prompt
@@ -113,7 +111,7 @@ func (s *Server) SetLLM(c *llm.Client) {
}
-func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Registry, logger *slog.Logger, claudeBinPath, geminiBinPath string) *Server {
+func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Registry, logger *slog.Logger, claudeBinPath string) *Server {
wd, _ := os.Getwd()
s := &Server{
ctx: context.Background(),
@@ -127,7 +125,6 @@ func NewServer(store *storage.DB, pool *executor.Pool, registry *executor.Regist
logger: logger,
mux: http.NewServeMux(),
claudeBinPath: claudeBinPath,
- geminiBinPath: geminiBinPath,
workDir: wd,
workspaceRoot: "/workspace",
}
@@ -175,16 +172,6 @@ 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)
- s.mux.HandleFunc("GET /api/stories/{id}/tasks", s.handleListStoryTasks)
- s.mux.HandleFunc("POST /api/stories/{id}/tasks", s.handleAddTaskToStory)
- s.mux.HandleFunc("PUT /api/stories/{id}/status", s.handleUpdateStoryStatus)
- s.mux.HandleFunc("POST /api/stories/{id}/ship", s.handleShipStory)
- s.mux.HandleFunc("GET /api/stories/{id}/deployment-status", s.handleStoryDeploymentStatus)
s.mux.HandleFunc("GET /api/health", s.handleHealth)
s.mux.HandleFunc("GET /api/version", s.handleVersion)
s.mux.HandleFunc("POST /api/webhooks/github", s.handleGitHubWebhook)