From b0d0b4848b2fc8a44c2575e09a08b34aaf6e1484 Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 27 Jan 2026 01:25:29 +0000 Subject: Default to shared worktree and add worktree endpoint --- makima/src/db/repository.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makima/src/db/repository.rs') diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index de1712d..7c9154f 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -2152,7 +2152,7 @@ pub async fn create_contract_for_owner( let contract_type = req.contract_type.as_deref().unwrap_or("simple"); // Validate contract type - let valid_types = ["simple", "specification"]; + let valid_types = ["simple", "specification", "execute"]; if !valid_types.contains(&contract_type) { return Err(sqlx::Error::Protocol(format!( "Invalid contract_type '{}'. Must be one of: {}", @@ -2165,6 +2165,7 @@ pub async fn create_contract_for_owner( let (valid_phases, default_phase): (&[&str], &str) = match contract_type { "simple" => (&["plan", "execute"], "plan"), "specification" => (&["research", "specify", "plan", "execute", "review"], "research"), + "execute" => (&["execute"], "execute"), _ => (&["plan", "execute"], "plan"), }; -- cgit v1.2.3