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/server/state.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'makima/src/server/state.rs') diff --git a/makima/src/server/state.rs b/makima/src/server/state.rs index 02a2328..b3cf27d 100644 --- a/makima/src/server/state.rs +++ b/makima/src/server/state.rs @@ -256,6 +256,9 @@ pub enum DaemonCommand { /// Whether the contract is in local-only mode (skips automatic completion actions) #[serde(rename = "localOnly", default)] local_only: bool, + /// Task ID to share worktree with (supervisor's task ID). If Some, use that task's worktree instead of creating a new one. + #[serde(rename = "supervisorWorktreeTaskId", default, skip_serializing_if = "Option::is_none")] + supervisor_worktree_task_id: Option, }, /// Pause a running task PauseTask { @@ -451,6 +454,12 @@ pub enum DaemonCommand { task_id: Uuid, }, + /// Get worktree information (files, stats, branch) for a task + GetWorktreeInfo { + #[serde(rename = "taskId")] + task_id: Uuid, + }, + /// Create a git checkpoint (stage changes, commit, record stats) CreateCheckpoint { #[serde(rename = "taskId")] -- cgit v1.2.3