From 4a733401501883af3e66e7edffbdacb0c44147a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=BCde?= Date: Thu, 14 May 2026 22:38:07 +0200 Subject: [PATCH] fmt --- hive-ag3nt/src/bin/hive-ag3nt.rs | 3 +-- hive-c0re/src/coordinator.rs | 3 +-- hive-sh4re/src/lib.rs | 13 ++++++++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/hive-ag3nt/src/bin/hive-ag3nt.rs b/hive-ag3nt/src/bin/hive-ag3nt.rs index b1556d1..f8a66f9 100644 --- a/hive-ag3nt/src/bin/hive-ag3nt.rs +++ b/hive-ag3nt/src/bin/hive-ag3nt.rs @@ -52,8 +52,7 @@ async fn main() -> Result<()> { check(&resp) } Cmd::Recv => { - let resp: AgentResponse = - client::request(&cli.socket, &AgentRequest::Recv).await?; + let resp: AgentResponse = client::request(&cli.socket, &AgentRequest::Recv).await?; render(&resp)?; check(&resp) } diff --git a/hive-c0re/src/coordinator.rs b/hive-c0re/src/coordinator.rs index c79e04d..48f0bcf 100644 --- a/hive-c0re/src/coordinator.rs +++ b/hive-c0re/src/coordinator.rs @@ -38,8 +38,7 @@ impl Coordinator { std::fs::create_dir_all(&agent_dir) .with_context(|| format!("create agent dir {}", agent_dir.display()))?; let socket_path = Self::socket_path(name); - let socket = - agent_server::start(name.to_owned(), socket_path, self.broker.clone()).await?; + let socket = agent_server::start(name.to_owned(), socket_path, self.broker.clone()).await?; self.agents.lock().unwrap().insert(name.to_owned(), socket); Ok(agent_dir) } diff --git a/hive-sh4re/src/lib.rs b/hive-sh4re/src/lib.rs index fed4176..1014293 100644 --- a/hive-sh4re/src/lib.rs +++ b/hive-sh4re/src/lib.rs @@ -108,12 +108,19 @@ pub const MANAGER_AGENT: &str = "manager"; #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(tag = "cmd", rename_all = "snake_case")] pub enum ManagerRequest { - Send { to: String, body: String }, + Send { + to: String, + body: String, + }, Recv, /// Spawn a sub-agent. Phase 5 will gate this on user approval. - Spawn { name: String }, + Spawn { + name: String, + }, /// Stop a sub-agent (graceful). - Kill { name: String }, + Kill { + name: String, + }, } #[derive(Debug, Clone, Serialize, Deserialize)]