fix(browser): require storage fingerprint approval

This commit is contained in:
morluto
2026-07-24 14:13:57 +00:00
parent 7b1e3bda00
commit f0069cbee4
11 changed files with 26 additions and 5 deletions
+7
View File
@@ -222,11 +222,18 @@ export const inspectWebPageInputSchema = z
websocket_shape_approved: z.boolean().default(false),
include_script_sources: z.boolean().default(false),
include_storage_keys: z.boolean().default(false),
include_storage_fingerprints: z.boolean().default(false),
limits: browserInspectionLimitsSchema.default(
DEFAULT_BROWSER_INSPECTION_LIMITS,
),
})
.superRefine((input, context) => {
if (input.include_storage_fingerprints && !input.include_storage_keys)
context.addIssue({
code: "custom",
path: ["include_storage_fingerprints"],
message: "Storage fingerprints require storage key capture",
});
if (
input.limits.max_script_source_bytes >
input.limits.max_total_script_source_bytes