controller: turn an archetype agent into a custom one
This commit is contained in:
parent
8a7f254c74
commit
0737798d78
1 changed files with 1008 additions and 44 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue