* fix: bind identity and coverage to the producing rule Logical paths, container families, examined bytes, path-segment conventions, destination collisions, file-id leases, Mach-O CPU selection, and firmware cleanup now follow the observation that owns each rule. * fix: fail unmatched Mach-O slices and keep firmware roots independent A fat target whose architecture lipo did not list now stops before slice tools run. Chained fixups still count unread LC_DYLD_INFO rebase bytes, and a firmware cleanup failure no longer blocks the next workspace. * test: cover path identity and runtime families at the projection boundary NFC joins and segment conventions are now asserted by the path resolver, the Apple projection, and a real APK inventory instead of helper unit tests. * test: expect unread dyld rebase bytes in the Apple dispatch fixture The legacy LC_DYLD_INFO fixture keeps a rebase range this reader does not decode, so the public CLI and MCP check now requires that partial coverage beside the bind opcodes. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
26 lines
908 B
TypeScript
26 lines
908 B
TypeScript
import type { WebPageInspection } from "../domain/browserObservationSchemas.js";
|
|
|
|
export interface CapturedScript {
|
|
readonly scriptId: string;
|
|
readonly rawUrl: string;
|
|
readonly url: string;
|
|
readonly origin: string | null;
|
|
readonly hash: string | null;
|
|
readonly length: number | null;
|
|
readonly isModule: boolean | null;
|
|
readonly language: string | null;
|
|
readonly sourceMapUrl: string | null;
|
|
readonly sourceMapRawUrl: string | null;
|
|
readonly executionContextKey: string | null;
|
|
/** Frame observed when this script was parsed. Later context reuse does not move it. */
|
|
readonly frameId: string | null;
|
|
}
|
|
|
|
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;
|