summaryrefslogtreecommitdiff
path: root/makima/src/db/repository.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-27 01:25:29 +0000
committersoryu <soryu@soryu.co>2026-01-27 01:25:40 +0000
commitb0d0b4848b2fc8a44c2575e09a08b34aaf6e1484 (patch)
treebd0dedfd8a3623d01f28ff590e97a028bc5456c5 /makima/src/db/repository.rs
parentb28345d15730ffbefe81244d06c06fe13c30b0ea (diff)
downloadsoryu-b0d0b4848b2fc8a44c2575e09a08b34aaf6e1484.tar.gz
soryu-b0d0b4848b2fc8a44c2575e09a08b34aaf6e1484.zip
Default to shared worktree and add worktree endpoint
Diffstat (limited to 'makima/src/db/repository.rs')
-rw-r--r--makima/src/db/repository.rs3
1 files changed, 2 insertions, 1 deletions
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"),
};