Add gated agent update planning, preserved handoff and Linux worker ports
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -91,6 +91,10 @@ fn tools() -> Vec<Tool> {
|
||||
"inventory.get_device",
|
||||
"Read stored inventory of one authorized device.",
|
||||
),
|
||||
tool::<Devices>(
|
||||
"updates.list_releases",
|
||||
"Read immutable signed agent release metadata for the authorized tenant; never approves or applies an update.",
|
||||
),
|
||||
tool::<Tenant>(
|
||||
"monitoring.get_health",
|
||||
"Stored presence and health; unknown is not healthy.",
|
||||
@@ -206,7 +210,20 @@ impl Adapter {
|
||||
}
|
||||
"operations.plan" => {
|
||||
let i: Plan = parse(args)?;
|
||||
crate::jobs::plan(&self.state, &p, i.tenant_id, i.input.resolve(i.tenant_id)?).await
|
||||
crate::jobs::plan_request(&self.state, &p, i.tenant_id, i.input).await
|
||||
}
|
||||
"updates.list_releases" => {
|
||||
let i: Devices = parse(args)?;
|
||||
crate::agent_updates::list_for(
|
||||
&self.state,
|
||||
&p,
|
||||
i.tenant_id,
|
||||
crate::pagination::PageQuery {
|
||||
cursor: i.cursor,
|
||||
limit: i.limit,
|
||||
},
|
||||
)
|
||||
.await
|
||||
}
|
||||
"operations.submit" => {
|
||||
let i: Submit = parse(args)?;
|
||||
|
||||
Reference in New Issue
Block a user