summaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-16 04:24:19 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-16 04:24:19 +0000
commitd75a231d8865d9b14fbe3d608c9aa1bffb7ed386 (patch)
tree1875147811c1cbf5b85260dc5fc5be8986902f68 /internal/api/server.go
parent16ff7ca46bfb4af44af488fa95bd3f8e981f4db2 (diff)
feat: add deployment status endpoint for tasks
Adds GET /api/tasks/{id}/deployment-status which checks whether the currently-deployed server binary includes the fix commits from the task's latest execution. Uses git merge-base --is-ancestor to compare commit hashes against the running version. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 65b0181..7988c4c 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -116,6 +116,7 @@ func (s *Server) routes() {
s.mux.HandleFunc("POST /api/scripts/{name}", s.handleScript)
s.mux.HandleFunc("GET /api/ws", s.handleWebSocket)
s.mux.HandleFunc("GET /api/workspaces", s.handleListWorkspaces)
+ s.mux.HandleFunc("GET /api/tasks/{id}/deployment-status", s.handleGetDeploymentStatus)
s.mux.HandleFunc("GET /api/health", s.handleHealth)
s.mux.Handle("GET /", http.FileServerFS(webui.Files))
}