refactor(#2569): rename hive-agent-sock to hive-core-agent-sock

This commit is contained in:
damocles 2026-07-20 21:58:28 +02:00
commit 795dd882bb
26 changed files with 184 additions and 161 deletions

View file

@ -25,7 +25,7 @@ pub(super) async fn post_send(
}
match super::broker_request(
&state.socket,
&hive_agent_sock::Request::OperatorMsg { body },
&hive_core_agent_sock::Request::OperatorMsg { body },
)
.await
{
@ -35,8 +35,10 @@ pub(super) async fn post_send(
// resulting `TurnStart` SSE event drives the terminal + the
// inbox row gets consumed by the time `TurnEnd` fires the
// existing turn-end refresh.
Ok(hive_agent_sock::Response::Ok) => (axum::http::StatusCode::OK, "ok").into_response(),
Ok(hive_agent_sock::Response::Err { message }) => error_response(
Ok(hive_core_agent_sock::Response::Ok) => {
(axum::http::StatusCode::OK, "ok").into_response()
}
Ok(hive_core_agent_sock::Response::Err { message }) => error_response(
StatusCode::INTERNAL_SERVER_ERROR,
&format!("send failed: {message}"),
),