summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-21 16:11:24 +0000
committersoryu <soryu@soryu.co>2026-01-21 16:11:24 +0000
commitf4bffa9c5d50ffecad36b4ae379c8c3b2da17de3 (patch)
treeb6fefd0affbc2bf530cac88d502b74e0f3667380
parent279888491d367ee6307fc4e2b5335355d2e13ba4 (diff)
downloadsoryu-f4bffa9c5d50ffecad36b4ae379c8c3b2da17de3.tar.gz
soryu-f4bffa9c5d50ffecad36b4ae379c8c3b2da17de3.zip
Register branch_task route in server router
Add POST /mesh/tasks/{id}/branch route for task branching endpoint. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
-rw-r--r--makima/src/server/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/makima/src/server/mod.rs b/makima/src/server/mod.rs
index 7e31285..dadfacd 100644
--- a/makima/src/server/mod.rs
+++ b/makima/src/server/mod.rs
@@ -111,6 +111,8 @@ pub fn make_router(state: SharedState) -> Router {
.route("/mesh/tasks/{id}/fork", post(mesh::fork_task))
.route("/mesh/tasks/{id}/checkpoints/{cid}/resume", post(mesh::resume_from_checkpoint))
.route("/mesh/tasks/{id}/checkpoints/{cid}/branch", post(mesh::branch_from_checkpoint))
+ // Task branching endpoint
+ .route("/mesh/tasks/{id}/branch", post(mesh::branch_task))
// Supervisor endpoints (for supervisor.sh)
.route("/mesh/supervisor/contracts/{contract_id}/tasks", get(mesh_supervisor::list_contract_tasks))
.route("/mesh/supervisor/contracts/{contract_id}/tree", get(mesh_supervisor::get_contract_tree))