feat(clients): sessions+registry+optimize+armor: close gaps, loud list truncation, shared Gemini adapter
sessions: operations get/list/cancel/delete/wait for engine, session, memory and serving profile; servingProfiles CRUD. registry: ListResult with truncated flag, v1alpha twins, gateway/policy operations, authz IAM, deny policy update, boundary patch/bindings. optimize: make_gemini_model over models::VertexModel (DirectModel removed), generateSyntheticData, online evaluator operations, trace/log writers. armor: SecurityAdmin for all SCC v2 methods (attack exposure excluded), documented agent threat categories, floor settings fixed to location global after live run. check_discovery.py of all four enforce coverage. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,13 +28,25 @@
|
||||
function get(path) {
|
||||
return fetch(path).then(function (res) { return res.json(); });
|
||||
}
|
||||
// A list that hit its cap says so loudly; it is never presented as complete.
|
||||
function banner(j) {
|
||||
var el = $("r-truncated");
|
||||
if (j && j.truncated === true) {
|
||||
el.textContent = "TRUNCATED: showing " + j.count + " of more than " + j.cap_items +
|
||||
" items (" + j.pages + " pages). Narrow the query or continue from the page token.";
|
||||
el.hidden = false;
|
||||
} else {
|
||||
el.hidden = true;
|
||||
el.textContent = "";
|
||||
}
|
||||
}
|
||||
function run(promise) {
|
||||
promise.then(function (j) { show(JSON.stringify(j, null, 2), false); })
|
||||
promise.then(function (j) { banner(j); show(JSON.stringify(j, null, 2), false); })
|
||||
.catch(function (e) { show(e.message, true); });
|
||||
}
|
||||
|
||||
$("r-list").addEventListener("click", function () {
|
||||
run(post("/agent/registry/list", { kind: $("r-kind").value }));
|
||||
run(post("/agent/registry/list", { kind: $("r-kind").value, version: $("r-version").value }));
|
||||
});
|
||||
$("r-search").addEventListener("click", function () {
|
||||
run(post("/agent/registry/search", { kind: $("r-kind").value, q: $("r-q").value }));
|
||||
@@ -47,6 +59,8 @@
|
||||
if (which === "gateways") run(post("/agent/registry/gateways/list"));
|
||||
else if (which === "policies") run(post("/agent/registry/policies/list"));
|
||||
else if (which === "identity") run(post("/agent/registry/identity", { engine_id: $("r-q").value }));
|
||||
else if (which.indexOf("ops-") === 0)
|
||||
run(post("/agent/registry/operations/list", { scope: which.substring(4) }));
|
||||
else if (which === "approvals") run(get("/agent/registry/approvals"));
|
||||
else run(get("/agent/registry/audit"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user