harness: unify hive-ag3nt + hive-m1nd into one binary picking role from HIVE_ROLE (#598)

This commit is contained in:
damocles 2026-05-31 03:21:06 +02:00
commit dcaf1838e1
6 changed files with 717 additions and 840 deletions

View file

@ -141,7 +141,7 @@ pub async fn write_mcp_config(socket: &Path) -> Result<PathBuf> {
let path = parent.join("claude-mcp-config.json");
let exe = std::env::current_exe()
.ok()
.map_or_else(|| "hive-ag3nt".into(), |p| p.display().to_string());
.map_or_else(|| "hive".into(), |p| p.display().to_string());
let body = mcp::render_claude_config(&exe, socket);
tokio::fs::write(&path, body).await?;
tracing::info!(path = %path.display(), "wrote claude MCP config");