Watch
0
0
Fork
You've already forked hyperhive
0

move the review classifier, agent login and inference types into swarm-wire

This commit is contained in:
atlas 2026-10-18 08:58:13 +02:00 • committed by mara
commit 6ea13c02e3
44 changed files with 344 additions and 332 deletions

View file

@ -54,6 +54,7 @@ swarm-queue-client = { workspace = true, features = [
] }
# The spelling of the token the queue connection presents.
swarm-agent-verify.workspace = true
swarm-wire.workspace = true
# This agent's own queue secret, read from the store under its own certificate.
swarm-secret-client.workspace = true
# The directory an AGENTS.md edit is applied in, and the file it is written

View file

@ -16,7 +16,7 @@ use chrono::Utc;
use hive_claude::TokenUsage;
use rusqlite::{Connection, params};
use serde::{Deserialize, Serialize};
use swarm_queue_client::agent_inference::Source;
use swarm_wire::agent_inference::Source;
use tokio::sync::broadcast;
use crate::harness_state::{

View file

@ -6,7 +6,7 @@
use std::path::PathBuf;
use swarm_queue_client::agent_inference::Source;
use swarm_wire::agent_inference::Source;
/// Path to the `hyperhive-model` file. The harness only reads it, as the
/// fallback in [`local_model`]. Overridable via `HYPERHIVE_MODEL_FILE` for

View file

@ -33,9 +33,9 @@ use serde::Serialize;
use tokio::sync::broadcast;
use tokio::time::{Interval, MissedTickBehavior};
use swarm_queue_client::agent_inference::Effective;
use swarm_queue_client::agent_login::Login;
use swarm_queue_client::wanted::AgentState;
use swarm_wire::agent_inference::Effective;
use swarm_wire::agent_login::Login;
use crate::events::{Bus, BusEvent, LiveEvent, TurnState};
use crate::login::LoginState;
@ -337,8 +337,8 @@ mod tests {
use crate::events::{BusEvent, LiveEvent, TurnState};
use crate::login::LoginState;
use std::sync::Mutex;
use swarm_queue_client::agent_inference::{Effective, Source};
use swarm_queue_client::wanted::AgentState;
use swarm_wire::agent_inference::{Effective, Source};
use tokio::sync::broadcast;
use tokio::time::{Duration, Instant};
@ -495,7 +495,7 @@ mod tests {
..msg()
})
.expect("serialises");
let decoded: swarm_queue_client::agent_login::Login =
let decoded: swarm_wire::agent_login::Login =
serde_json::from_slice(&bytes).expect("decodes");
assert_eq!(
decoded.needs_login,

View file

@ -24,7 +24,8 @@
use std::time::Duration;
use swarm_queue_client::agent_inference::{AgentInference, Effort, Read, Source, read_own};
use swarm_queue_client::agent_inference::{Read, read_own};
use swarm_wire::agent_inference::{AgentInference, Effort, Source};
use crate::events::Bus;
use crate::harness_state::{configured_effort, configured_model, local_effort, local_model};

View file

@ -2,7 +2,7 @@
use axum::extract::State;
use serde::Serialize;
use swarm_queue_client::agent_inference::Source;
use swarm_wire::agent_inference::Source;
use crate::login::LoginState;
use crate::login_session::drop_if_finished;