From 1f853a39334cc80bb7a27142076c64ad0214c037 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 11:34:06 +0000 Subject: Advance stages of a contract --- makima/src/daemon/cli/supervisor.rs | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'makima/src/daemon/cli/supervisor.rs') diff --git a/makima/src/daemon/cli/supervisor.rs b/makima/src/daemon/cli/supervisor.rs index ebfb4bc..dc534b5 100644 --- a/makima/src/daemon/cli/supervisor.rs +++ b/makima/src/daemon/cli/supervisor.rs @@ -7,19 +7,19 @@ use uuid::Uuid; #[derive(Args, Debug, Clone)] pub struct SupervisorArgs { /// API URL - #[arg(long, env = "MAKIMA_API_URL", default_value = "http://localhost:8080", global = true)] + #[arg(long, env = "MAKIMA_API_URL", default_value = "http://localhost:8080")] pub api_url: String, /// API key for authentication - #[arg(long, env = "MAKIMA_API_KEY", global = true)] + #[arg(long, env = "MAKIMA_API_KEY")] pub api_key: String, /// Current task ID (optional) - #[arg(long, env = "MAKIMA_TASK_ID", global = true)] + #[arg(long, env = "MAKIMA_TASK_ID")] pub task_id: Option, /// Contract ID - #[arg(long, env = "MAKIMA_CONTRACT_ID", global = true)] + #[arg(long, env = "MAKIMA_CONTRACT_ID")] pub contract_id: Uuid, } @@ -181,3 +181,21 @@ pub struct AskArgs { #[arg(long, default_value = "3600")] pub timeout: i32, } + +/// Arguments for status command (get contract status including phase). +#[derive(Args, Debug)] +pub struct StatusArgs { + #[command(flatten)] + pub common: SupervisorArgs, +} + +/// Arguments for advance-phase command. +#[derive(Args, Debug)] +pub struct AdvancePhaseArgs { + #[command(flatten)] + pub common: SupervisorArgs, + + /// The phase to advance to (specify, plan, execute, review) + #[arg(index = 1)] + pub phase: String, +} -- cgit v1.2.3