Phase 4: manager socket + manager_server with privileged tool surface
This commit is contained in:
parent
4f191b2e43
commit
aa67e5a481
6 changed files with 188 additions and 15 deletions
|
|
@ -10,6 +10,7 @@ mod broker;
|
|||
mod client;
|
||||
mod coordinator;
|
||||
mod lifecycle;
|
||||
mod manager_server;
|
||||
mod server;
|
||||
|
||||
use coordinator::Coordinator;
|
||||
|
|
@ -58,8 +59,9 @@ async fn main() -> Result<()> {
|
|||
let cli = Cli::parse();
|
||||
match cli.cmd {
|
||||
Cmd::Serve { agent_flake, db } => {
|
||||
let coord = Arc::new(Coordinator::open(&db)?);
|
||||
server::serve(&cli.socket, &agent_flake, coord).await
|
||||
let coord = Arc::new(Coordinator::open(&db, agent_flake)?);
|
||||
manager_server::start(coord.clone()).await?;
|
||||
server::serve(&cli.socket, coord).await
|
||||
}
|
||||
Cmd::Spawn { name } => {
|
||||
render(client::request(&cli.socket, HostRequest::Spawn { name }).await?)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue