Phase 6b: vibec0re-styled dashboard on hive-c0re + agent web UI restyled

This commit is contained in:
müde 2026-05-14 23:43:20 +02:00
parent 6dbf4eedd7
commit 8cf5d72798
5 changed files with 266 additions and 13 deletions

View file

@ -10,6 +10,7 @@ mod approvals;
mod broker;
mod client;
mod coordinator;
mod dashboard;
mod lifecycle;
mod manager_server;
mod server;
@ -38,6 +39,9 @@ enum Cmd {
/// Path to the sqlite message store.
#[arg(long, default_value = "/var/lib/hyperhive/broker.sqlite")]
db: PathBuf,
/// Dashboard HTTP port.
#[arg(long, default_value_t = 7000)]
dashboard_port: u16,
},
/// Spawn a new agent container (`hive-agent-<name>`).
Spawn { name: String },
@ -69,9 +73,16 @@ async fn main() -> Result<()> {
Cmd::Serve {
hyperhive_flake,
db,
dashboard_port,
} => {
let coord = Arc::new(Coordinator::open(&db, hyperhive_flake)?);
manager_server::start(coord.clone())?;
let dash_coord = coord.clone();
tokio::spawn(async move {
if let Err(e) = dashboard::serve(dashboard_port, dash_coord).await {
tracing::error!(error = ?e, "dashboard failed");
}
});
server::serve(&cli.socket, coord).await
}
Cmd::Spawn { name } => {