phase 8 step 2: approval-gated spawn + dashboard spinner
This commit is contained in:
parent
a42fdb3a5c
commit
c59fa8541c
10 changed files with 382 additions and 90 deletions
|
|
@ -33,8 +33,9 @@ enum Cmd {
|
|||
Send { to: String, body: String },
|
||||
/// Pop one message from the manager's inbox.
|
||||
Recv,
|
||||
/// Spawn a sub-agent.
|
||||
Spawn { name: String },
|
||||
/// Submit a spawn request for the user to approve (creates a pending
|
||||
/// approval; on approval the host creates + starts the container).
|
||||
RequestSpawn { name: String },
|
||||
/// Kill a sub-agent.
|
||||
Kill { name: String },
|
||||
/// Submit a config commit on the agent's config repo for user approval.
|
||||
|
|
@ -67,7 +68,9 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
Cmd::Send { to, body } => one_shot(&cli.socket, ManagerRequest::Send { to, body }).await,
|
||||
Cmd::Recv => one_shot(&cli.socket, ManagerRequest::Recv).await,
|
||||
Cmd::Spawn { name } => one_shot(&cli.socket, ManagerRequest::Spawn { name }).await,
|
||||
Cmd::RequestSpawn { name } => {
|
||||
one_shot(&cli.socket, ManagerRequest::RequestSpawn { name }).await
|
||||
}
|
||||
Cmd::Kill { name } => one_shot(&cli.socket, ManagerRequest::Kill { name }).await,
|
||||
Cmd::RequestApplyCommit { agent, commit_ref } => {
|
||||
one_shot(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue