feat: add passive website reverse engineering

This commit is contained in:
N0zoM1z0
2026-07-14 12:27:13 +08:00
parent a699fdd6a5
commit 2c1ceabbf1
71 changed files with 5279 additions and 80 deletions
+10
View File
@@ -54,6 +54,7 @@ export const buildCapabilityInventory = (
policy: {
readonly processCaptureEnabled: boolean;
readonly evidenceFileRoots: number;
readonly browserObservationEnabled?: boolean;
},
) => {
const status = statusSchema.parse(sessionStatus);
@@ -97,6 +98,7 @@ const availabilityFor = (
policy: {
readonly processCaptureEnabled: boolean;
readonly evidenceFileRoots: number;
readonly browserObservationEnabled?: boolean;
},
): {
readonly reason: ToolAvailabilityReason;
@@ -113,6 +115,14 @@ const availabilityFor = (
reason: "policy_disabled",
remediation: "Configure or grant an evidence_read root.",
};
if (kind === "browser-provider")
return policy.browserObservationEnabled === true
? { reason: "available", remediation: null }
: {
reason: "policy_disabled",
remediation:
"Enable browser observation and configure exact CDP endpoint and page origins.",
};
if (kind === "session") return { reason: "available", remediation: null };
if (!targetOpen)
return {