diff options
| author | soryu <soryu@soryu.co> | 2026-01-31 22:17:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-31 22:17:09 +0000 |
| commit | 3ea2c72e2c50c0d73614d9ac82f41508b6ab1ce4 (patch) | |
| tree | fbbd53c9e39d9af9dc0e92af5866dd9e3589bf2d /makima/src/daemon/api | |
| parent | c526f93aa4255cb581eeb3f7a495c1689683b0a2 (diff) | |
| download | soryu-3ea2c72e2c50c0d73614d9ac82f41508b6ab1ce4.tar.gz soryu-3ea2c72e2c50c0d73614d9ac82f41508b6ab1ce4.zip | |
Add auto_merge_local option for local-only contracts (#50)
When local_only=true on a contract, all completion actions are skipped.
This adds a new option auto_merge_local that, when enabled along with
local_only, will automatically merge completed task changes to the
master/main branch locally (without pushing or creating PRs).
Changes:
- Add auto_merge_local column to contracts table (migration)
- Add auto_merge_local field to Contract model and summary
- Update CreateContractRequest and UpdateContractRequest structs
- Update contract repository create/update functions
- Add auto_merge_local to WebSocket protocol StartTask command
- Pass auto_merge_local through spawn_task and run_task functions
- Modify task manager completion logic: if local_only=true AND
auto_merge_local=true, execute 'merge' completion action locally
- Update all server handlers to retrieve and pass auto_merge_local
- Add TypeScript types to frontend components
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/daemon/api')
| -rw-r--r-- | makima/src/daemon/api/contract.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/makima/src/daemon/api/contract.rs b/makima/src/daemon/api/contract.rs index 445d676..7c76b40 100644 --- a/makima/src/daemon/api/contract.rs +++ b/makima/src/daemon/api/contract.rs @@ -69,6 +69,8 @@ pub struct CreateContractRequest { #[serde(skip_serializing_if = "Option::is_none")] pub local_only: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] + pub auto_merge_local: Option<bool>, + #[serde(skip_serializing_if = "Option::is_none")] pub red_team_enabled: Option<bool>, #[serde(skip_serializing_if = "Option::is_none")] pub red_team_prompt: Option<String>, |
