mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 01:41:21 +00:00
fix(inspector)!: retain context lifetimes across protocol ID reuse (#9471)
This commit is contained in:
1 parent
00a6524b9a
commit
9e78606e2b
9 files changed
+316
-44
No files matched your search
@@ -121,7 +121,18 @@ const javascriptRuntimeScriptSchema = z.strictObject({
|
||||
.describe(
|
||||
"Exact Inspector URL for an authorized file script, retained separately from its verified filesystem path.",
|
||||
),
|
||||
execution_context_key: z.string().nullable(),
|
||||
execution_context_key: z
|
||||
.string()
|
||||
.nullable()
|
||||
.describe(
|
||||
"Capture-local observed context lifetime associated with this script; null when no context creation was observed.",
|
||||
),
|
||||
execution_context_id: z
|
||||
.int()
|
||||
.nullable()
|
||||
.describe(
|
||||
"Numeric execution-context ID reported for the script, independent of whether its lifetime was observed.",
|
||||
),
|
||||
cdp_hash: z.string().nullable(),
|
||||
length: z
|
||||
.int()
|
||||
@@ -138,7 +149,17 @@ const javascriptRuntimeScriptSchema = z.strictObject({
|
||||
});
|
||||
|
||||
const javascriptRuntimeContextSchema = z.strictObject({
|
||||
context_key: z.string().min(1),
|
||||
context_key: z
|
||||
.string()
|
||||
.min(1)
|
||||
.describe(
|
||||
"Capture-local context lifetime key used to associate scripts with this observed context.",
|
||||
),
|
||||
execution_context_id: z
|
||||
.int()
|
||||
.describe(
|
||||
"Numeric execution-context ID reported by the protocol; IDs can be reused across lifetimes.",
|
||||
),
|
||||
state: z.enum(["created", "destroyed", "cleared"]),
|
||||
name: z.string().nullable(),
|
||||
origin: z.string().nullable(),
|
||||
|
||||
Reference in new issue
Block a user