Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/169de2bb-0655-4504-a270-8c0341c0d3dd Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
17 lines
652 B
JavaScript
17 lines
652 B
JavaScript
"use strict";
|
|
|
|
// ── Legacy security warning ───────────────────────────────────────
|
|
|
|
async function checkLegacySecurity() {
|
|
try {
|
|
var data = await apiFetch("/api/security/status");
|
|
if (data && (data.status === "legacy" || data.status === "unsealed")) {
|
|
_securityIsLegacy = true;
|
|
_securityStatus = data.status;
|
|
_securityWarningMessage = data.warning || "This machine may have a security issue. Please review your system security.";
|
|
}
|
|
} catch (_) {
|
|
// Non-fatal — silently ignore if the endpoint is unreachable
|
|
}
|
|
}
|