cleanup(#1177): unify manager socket path, remove dead manager-name branches, rename ensure_manager

This commit is contained in:
damocles 2026-06-03 20:32:43 +02:00 committed by mara
commit eb3c6cd0c4
8 changed files with 36 additions and 41 deletions

View file

@ -189,7 +189,7 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
let id = match coord
.approvals
.submit_kind(
hive_sh4re::MANAGER_AGENT,
MANAGER_AGENT,
hive_sh4re::ApprovalKind::UpdateMetaInputs,
&commit_ref,
description.as_deref(),
@ -206,7 +206,7 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
tracing::info!(%id, %label, "update_meta_inputs approval queued");
coord.emit_approval_added(
id,
hive_sh4re::MANAGER_AGENT,
MANAGER_AGENT,
"update_meta_inputs",
None,
None,
@ -215,10 +215,10 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
ManagerResponse::Ok
}
ManagerRequest::RequestSchedulePrompt(payload) => {
handle_request_schedule_prompt(coord, hive_sh4re::MANAGER_AGENT, payload)
handle_request_schedule_prompt(coord, MANAGER_AGENT, payload)
}
ManagerRequest::CancelSchedule { id, targets } => {
handle_cancel_schedule(coord, hive_sh4re::MANAGER_AGENT, *id, targets.as_deref())
handle_cancel_schedule(coord, MANAGER_AGENT, *id, targets.as_deref())
}
ManagerRequest::EditSchedule {
id,
@ -230,7 +230,7 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
targets_remove,
} => handle_edit_schedule(
coord,
hive_sh4re::MANAGER_AGENT,
MANAGER_AGENT,
*id,
body.clone(),
description.clone(),
@ -248,7 +248,7 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
},
},
ManagerRequest::FireScheduleNow { id } => {
handle_fire_schedule_now(coord, hive_sh4re::MANAGER_AGENT, *id).await
handle_fire_schedule_now(coord, MANAGER_AGENT, *id).await
}
ManagerRequest::GetLogs { agent, lines } => {
let n = lines.unwrap_or(50);