From eeafe072bc6bb81459f7d087b48fc921afe9cc11 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 15 Jan 2026 03:26:28 +0000 Subject: Automatically derive repo URL and add notifications for input --- makima/src/bin/makima.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'makima/src/bin/makima.rs') diff --git a/makima/src/bin/makima.rs b/makima/src/bin/makima.rs index 649a8e7..35783dc 100644 --- a/makima/src/bin/makima.rs +++ b/makima/src/bin/makima.rs @@ -321,6 +321,18 @@ async fn run_supervisor( let result = client.supervisor_status(args.contract_id).await?; println!("{}", serde_json::to_string(&result.0)?); } + SupervisorCommand::Ask(args) => { + let client = ApiClient::new(args.common.api_url, args.common.api_key)?; + eprintln!("Asking user: {}...", args.question); + let choices = args + .choices + .map(|c| c.split(',').map(|s| s.trim().to_string()).collect()) + .unwrap_or_default(); + let result = client + .supervisor_ask(&args.question, choices, args.context, args.timeout) + .await?; + println!("{}", serde_json::to_string(&result.0)?); + } } Ok(()) -- cgit v1.2.3