This commit is contained in:
müde 2026-05-14 22:38:07 +02:00
parent 17092961a2
commit 4a73340150
3 changed files with 12 additions and 7 deletions

View file

@ -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)]