From 78cb861412850889424ae7d5ae5cd952a2b90295 Mon Sep 17 00:00:00 2001 From: soryu Date: Mon, 2 Mar 2026 15:18:31 +0000 Subject: feat: move daemon reauth to daemons page, add contract-backed directive steps, rename Mesh to Exec (#84) * feat: soryu-co/soryu - makima: Rename Mesh to Exec in navigation * WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * WIP: heartbeat checkpoint * feat: soryu-co/soryu - makima: Add contract-backed steps to directive flow * WIP: heartbeat checkpoint --- makima/src/daemon/ws/protocol.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'makima/src/daemon/ws') diff --git a/makima/src/daemon/ws/protocol.rs b/makima/src/daemon/ws/protocol.rs index 834e139..bed5ffd 100644 --- a/makima/src/daemon/ws/protocol.rs +++ b/makima/src/daemon/ws/protocol.rs @@ -129,6 +129,19 @@ pub enum DaemonMessage { hostname: Option, }, + /// Reauth status update (response to TriggerReauth/SubmitAuthCode commands). + ReauthStatus { + #[serde(rename = "requestId")] + request_id: Uuid, + /// Status: "url_ready", "completed", "failed" + status: String, + /// OAuth login URL (present when status is "url_ready") + #[serde(rename = "loginUrl")] + login_url: Option, + /// Error message (present when status is "failed") + error: Option, + }, + // ========================================================================= // Merge Response Messages (sent by daemon after processing merge commands) // ========================================================================= @@ -787,6 +800,19 @@ pub enum DaemonCommand { /// Restart the daemon process. RestartDaemon, + /// Trigger OAuth re-authentication on this daemon. + TriggerReauth { + #[serde(rename = "requestId")] + request_id: Uuid, + }, + + /// Submit auth code for pending reauth. + SubmitAuthCode { + #[serde(rename = "requestId")] + request_id: Uuid, + code: String, + }, + /// Apply a patch to a task's worktree (for cross-daemon merge). /// Sent by server when routing MergePatchToSupervisor to the supervisor's daemon. ApplyPatchToWorktree { -- cgit v1.2.3