diff options
| author | soryu <soryu@soryu.co> | 2026-01-26 18:19:03 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-26 18:19:03 +0000 |
| commit | 4ae5035f3902cc7db6c3bf07fe7bf07489946cf3 (patch) | |
| tree | 33729aa8db73b98138adca1f7717d824c3d84405 /makima/src/db/models.rs | |
| parent | cb4f2fc40dbabb40de948512eee74c7e46264665 (diff) | |
| download | soryu-makima/task-task-e6b5334f-e6b5334f.tar.gz soryu-makima/task-task-e6b5334f-e6b5334f.zip | |
[WIP] Heartbeat checkpoint - 2026-01-26 18:19:03 UTCmakima/task-task-e6b5334f-e6b5334f
Diffstat (limited to 'makima/src/db/models.rs')
| -rw-r--r-- | makima/src/db/models.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs index 0c1d9f2..d6cc42a 100644 --- a/makima/src/db/models.rs +++ b/makima/src/db/models.rs @@ -1321,6 +1321,10 @@ pub struct Contract { /// phase outputs (like plans, requirements, etc.) before continuing. #[serde(default)] pub phase_guard: bool, + /// When true, tasks do not auto-execute completion actions and work stays in worktrees. + /// Used for local-only workflows where changes are managed manually. + #[serde(default)] + pub local_only: bool, pub version: i32, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, @@ -1417,6 +1421,9 @@ pub struct ContractSummary { pub status: String, /// Supervisor task ID for contract orchestration pub supervisor_task_id: Option<Uuid>, + /// When true, tasks do not auto-execute completion actions and work stays in worktrees. + #[serde(default)] + pub local_only: bool, pub file_count: i64, pub task_count: i64, pub repository_count: i64, @@ -1471,6 +1478,10 @@ pub struct CreateContractRequest { /// phase outputs before progressing to the next phase. #[serde(default)] pub phase_guard: Option<bool>, + /// Enable local-only mode for this contract. + /// When true, tasks do not auto-execute completion actions and work stays in worktrees. + #[serde(default)] + pub local_only: Option<bool>, } /// Request payload for updating a contract @@ -1492,6 +1503,10 @@ pub struct UpdateContractRequest { /// phase outputs before progressing to the next phase. #[serde(default)] pub phase_guard: Option<bool>, + /// Enable or disable local-only mode for this contract. + /// When true, tasks do not auto-execute completion actions and work stays in worktrees. + #[serde(default)] + pub local_only: Option<bool>, /// Version for optimistic locking pub version: Option<i32>, } |
