fix(browser): bound script metadata and preserve omissions

This commit is contained in:
morluto
2026-10-09 06:32:10 +08:00
parent 0a0174b9ac
commit faf209e50d
13 changed files with 541 additions and 15 deletions
+6
View File
@@ -15,3 +15,9 @@ export interface CapturedScript {
}
export type NetworkState = WebPageInspection["network"]["requests"][number];
/** Bounds retained CDP script identities independently from source text capture. */
export const CDP_CAPTURE_SCRIPT_METADATA_LIMITS = {
retainedBytes: 8 * 1024 * 1024,
scripts: 50_000,
} as const;