destroy verb: CLI + admin socket + dashboard button; purges state + approvals

This commit is contained in:
müde 2026-05-15 02:57:22 +02:00
parent c7b50aa5b7
commit b711296460
8 changed files with 92 additions and 4 deletions

View file

@ -85,6 +85,10 @@ async fn dispatch(req: &HostRequest, coord: &Coordinator) -> HostResponse {
coord.unregister_agent(name);
HostResponse::success()
}
HostRequest::Destroy { name } => {
actions::destroy(coord, name).await?;
HostResponse::success()
}
HostRequest::Rebuild { name } => {
tracing::info!(%name, "rebuild");
let agent_dir = coord.register_agent(name)?;