feat: harden seat intent and expand HIL coverage

This commit is contained in:
vee
2026-08-02 05:20:38 +08:00
parent 4aded5c21d
commit 55d0d400cb
62 changed files with 53112 additions and 1748 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ function nextPath() {
}
async function readAuthStatus() {
const response = await fetch("/api/auth/status", { cache: "no-store" });
const response = await window.CognitiveAgentNetwork.request("/api/auth/status", { cache: "no-store" });
if (!response.ok) return;
const status = await response.json();
if (status.authenticated) window.location.replace(nextPath());
@@ -18,7 +18,7 @@ async function submitLogin(event) {
message.textContent = "";
try {
const response = await fetch("/api/auth/login", {
const response = await window.CognitiveAgentNetwork.request("/api/auth/login", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({