mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
fix(inspector): preserve script identity and parse-failure facts
Fixes #6535 Fixes #6546
This commit is contained in:
@@ -115,6 +115,12 @@ export type JavaScriptRuntimeTargetList = z.infer<
|
||||
const javascriptRuntimeScriptSchema = z.strictObject({
|
||||
script_key: prefixedDigestSchema("v8_script"),
|
||||
location: javascriptRuntimeTargetLocationSchema,
|
||||
reported_url: z
|
||||
.string()
|
||||
.optional()
|
||||
.describe(
|
||||
"Exact Inspector URL for an authorized file script, retained separately from its verified filesystem path.",
|
||||
),
|
||||
execution_context_key: z.string().nullable(),
|
||||
cdp_hash: z.string().nullable(),
|
||||
length: z
|
||||
@@ -160,6 +166,13 @@ export const javascriptRuntimeObservationSchema = z.strictObject({
|
||||
scripts: z.strictObject({
|
||||
items: z.array(javascriptRuntimeScriptSchema),
|
||||
observed_total: z.int().min(0),
|
||||
parse_failed_total: z
|
||||
.int()
|
||||
.min(0)
|
||||
.optional()
|
||||
.describe(
|
||||
"Valid scriptFailedToParse events observed; absent in legacy snapshots.",
|
||||
),
|
||||
excluded: z.strictObject({
|
||||
unsupported_location: z.int().min(0),
|
||||
invalid_protocol_value: z.int().min(0),
|
||||
|
||||
Reference in New Issue
Block a user