Watch
0
0
Fork
You've already forked hyperhive
0

controller: turn an archetype agent into a custom one

This commit is contained in:
atlas 2026-11-01 12:02:38 +01:00 • committed by mara
commit 0737798d78

View file

@ -73,6 +73,14 @@ pub struct AgentStatusRow {
/// `AppState::agent_login` — this reader sees the hive's bucket, and the
/// flag comes from the agent itself.
pub needs_login: Option<bool>,
/// The archetype the agent is built from; `None` for a custom agent. Always
/// `None` out of this reader, filled in by the `GET /api/agents/status`
/// handler from the `agent-archetype` bucket.
#[schema(
value_type = Option<Object>,
example = json!({"source": "hyperhive", "name": "reviewer"})
)]
pub archetype: Option<swarm_queue_client::agent_archetype::ArchetypeRef>,
}
/// A snapshot as retained by the bucket, with the hive it was published
@ -194,6 +202,7 @@ fn render(
config_pr: None,
wanted: None,
needs_login: None,
archetype: None,
},
})
.collect();
@ -239,6 +248,7 @@ fn row(
config_pr: None,
wanted: None,
needs_login: None,
archetype: None,
}
}