@reticlehq/core 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +3 -4
package/dist/wire/messages.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Live-control: the narrowed payload of a HUMAN_CONTROL event. The server safeParses
|
|
4
4
|
* `event.data` against this at the inbound boundary (unknown → narrowed; never `any`).
|
|
5
5
|
*/
|
|
6
6
|
export declare const HumanControlDataSchema: z.ZodObject<{
|
|
7
|
-
kind: z.
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
8
|
readonly PAUSE: "pause";
|
|
9
9
|
readonly RESUME: "resume";
|
|
10
10
|
readonly END: "end";
|
|
@@ -18,13 +18,7 @@ export declare const HumanControlDataSchema: z.ZodObject<{
|
|
|
18
18
|
readonly HARNESS_LINK: "harness-link";
|
|
19
19
|
}>;
|
|
20
20
|
text: z.ZodOptional<z.ZodString>;
|
|
21
|
-
},
|
|
22
|
-
kind: "pause" | "message" | "harness" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
|
|
23
|
-
text?: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
kind: "pause" | "message" | "harness" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
|
|
26
|
-
text?: string | undefined;
|
|
27
|
-
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
28
22
|
export type HumanControlData = z.infer<typeof HumanControlDataSchema>;
|
|
29
23
|
/**
|
|
30
24
|
* The narrowed payload of a HUD_USED event: a control pressed, or where the HUD now sits.
|
|
@@ -34,16 +28,16 @@ export type HumanControlData = z.infer<typeof HumanControlDataSchema>;
|
|
|
34
28
|
*/
|
|
35
29
|
export declare const HudUseDataSchema: z.ZodObject<{
|
|
36
30
|
control: z.ZodOptional<z.ZodString>;
|
|
37
|
-
toggle: z.ZodOptional<z.
|
|
31
|
+
toggle: z.ZodOptional<z.ZodEnum<{
|
|
38
32
|
readonly ON: "on";
|
|
39
33
|
readonly OFF: "off";
|
|
40
34
|
}>>;
|
|
41
|
-
view: z.ZodOptional<z.
|
|
35
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
42
36
|
readonly BUBBLE: "bubble";
|
|
43
37
|
readonly COLLAPSED: "collapsed";
|
|
44
38
|
readonly EXPANDED: "expanded";
|
|
45
39
|
}>>;
|
|
46
|
-
panel: z.ZodOptional<z.
|
|
40
|
+
panel: z.ZodOptional<z.ZodEnum<{
|
|
47
41
|
readonly CHAT: "chat";
|
|
48
42
|
readonly FLOWS: "flows";
|
|
49
43
|
readonly NOTES: "notes";
|
|
@@ -53,29 +47,13 @@ export declare const HudUseDataSchema: z.ZodObject<{
|
|
|
53
47
|
readonly ACCOUNT: "account";
|
|
54
48
|
readonly NONE: "none";
|
|
55
49
|
}>>;
|
|
56
|
-
/** A rail slide that became the visible one. Its shape is checked where it is counted. */
|
|
57
50
|
slide: z.ZodOptional<z.ZodString>;
|
|
58
|
-
|
|
59
|
-
prompt: z.ZodOptional<z.ZodNativeEnum<{
|
|
51
|
+
prompt: z.ZodOptional<z.ZodEnum<{
|
|
60
52
|
readonly RAIL: "rail";
|
|
61
53
|
readonly HARNESS: "harness";
|
|
62
54
|
readonly HEADER: "header";
|
|
63
55
|
}>>;
|
|
64
|
-
},
|
|
65
|
-
control?: string | undefined;
|
|
66
|
-
toggle?: "on" | "off" | undefined;
|
|
67
|
-
view?: "expanded" | "bubble" | "collapsed" | undefined;
|
|
68
|
-
panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
69
|
-
slide?: string | undefined;
|
|
70
|
-
prompt?: "harness" | "rail" | "header" | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
control?: string | undefined;
|
|
73
|
-
toggle?: "on" | "off" | undefined;
|
|
74
|
-
view?: "expanded" | "bubble" | "collapsed" | undefined;
|
|
75
|
-
panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
76
|
-
slide?: string | undefined;
|
|
77
|
-
prompt?: "harness" | "rail" | "header" | undefined;
|
|
78
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
79
57
|
export type HudUseData = z.infer<typeof HudUseDataSchema>;
|
|
80
58
|
/**
|
|
81
59
|
* Human review: the narrowed payload of a HUMAN_MARK event. A human flagged a mistake pinned to an
|
|
@@ -90,48 +68,19 @@ export type HudUseData = z.infer<typeof HudUseDataSchema>;
|
|
|
90
68
|
export declare const HumanMarkDataSchema: z.ZodObject<{
|
|
91
69
|
note: z.ZodString;
|
|
92
70
|
anchor: z.ZodString;
|
|
93
|
-
strategy: z.
|
|
71
|
+
strategy: z.ZodEnum<{
|
|
94
72
|
readonly TESTID: "testid";
|
|
95
73
|
readonly COMPONENT: "component";
|
|
96
74
|
readonly ROLE: "role";
|
|
97
75
|
readonly POSITION: "position";
|
|
98
76
|
}>;
|
|
99
|
-
/** Human-legible element label (role + accessible name / text), to show the agent what was flagged. */
|
|
100
77
|
label: z.ZodOptional<z.ZodString>;
|
|
101
|
-
/** Source file:line stamped by the framework's compiler/plugin, when available. */
|
|
102
78
|
source: z.ZodOptional<z.ZodObject<{
|
|
103
79
|
file: z.ZodString;
|
|
104
80
|
line: z.ZodNumber;
|
|
105
|
-
},
|
|
106
|
-
file: string;
|
|
107
|
-
line: number;
|
|
108
|
-
}, {
|
|
109
|
-
file: string;
|
|
110
|
-
line: number;
|
|
111
|
-
}>>;
|
|
112
|
-
/** Route/URL the mark was made on, so the agent can reproduce the context. */
|
|
81
|
+
}, z.core.$strip>>;
|
|
113
82
|
route: z.ZodOptional<z.ZodString>;
|
|
114
|
-
},
|
|
115
|
-
anchor: string;
|
|
116
|
-
note: string;
|
|
117
|
-
strategy: "testid" | "role" | "component" | "position";
|
|
118
|
-
route?: string | undefined;
|
|
119
|
-
label?: string | undefined;
|
|
120
|
-
source?: {
|
|
121
|
-
file: string;
|
|
122
|
-
line: number;
|
|
123
|
-
} | undefined;
|
|
124
|
-
}, {
|
|
125
|
-
anchor: string;
|
|
126
|
-
note: string;
|
|
127
|
-
strategy: "testid" | "role" | "component" | "position";
|
|
128
|
-
route?: string | undefined;
|
|
129
|
-
label?: string | undefined;
|
|
130
|
-
source?: {
|
|
131
|
-
file: string;
|
|
132
|
-
line: number;
|
|
133
|
-
} | undefined;
|
|
134
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
135
84
|
export type HumanMarkData = z.infer<typeof HumanMarkDataSchema>;
|
|
136
85
|
/**
|
|
137
86
|
* A normalized observation pushed from the browser into the ring buffer.
|
|
@@ -140,7 +89,7 @@ export type HumanMarkData = z.infer<typeof HumanMarkDataSchema>;
|
|
|
140
89
|
*/
|
|
141
90
|
export declare const ReticleEventSchema: z.ZodObject<{
|
|
142
91
|
t: z.ZodNumber;
|
|
143
|
-
type: z.
|
|
92
|
+
type: z.ZodEnum<{
|
|
144
93
|
readonly DOM_ADDED: "dom.added";
|
|
145
94
|
readonly DOM_REMOVED: "dom.removed";
|
|
146
95
|
readonly DOM_ATTR: "dom.attr";
|
|
@@ -176,6 +125,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
|
|
|
176
125
|
readonly BLIND_SPOT: "blind-spot";
|
|
177
126
|
readonly SDK_FAILED: "sdk.failed";
|
|
178
127
|
readonly NET_DETAIL: "net.detail";
|
|
128
|
+
readonly NET_RESPONSE_BODY: "net.response-body";
|
|
179
129
|
readonly HUMAN_CONTROL: "human.control";
|
|
180
130
|
readonly HUMAN_MARK: "human.mark";
|
|
181
131
|
readonly DOWNLOAD: "download";
|
|
@@ -184,138 +134,42 @@ export declare const ReticleEventSchema: z.ZodObject<{
|
|
|
184
134
|
readonly CANVAS_DIGEST: "canvas.digest";
|
|
185
135
|
}>;
|
|
186
136
|
sessionId: z.ZodString;
|
|
187
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
188
137
|
ref: z.ZodOptional<z.ZodString>;
|
|
189
|
-
/**
|
|
190
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
191
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
192
|
-
*/
|
|
193
138
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
194
|
-
/**
|
|
195
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
196
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
197
|
-
* carry neither.
|
|
198
|
-
*/
|
|
199
139
|
actionId: z.ZodOptional<z.ZodString>;
|
|
200
|
-
|
|
201
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
140
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
202
141
|
readonly WINDOW: "window";
|
|
203
142
|
}>>;
|
|
204
|
-
/**
|
|
205
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
206
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
207
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
208
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
209
|
-
*/
|
|
210
143
|
documentId: z.ZodOptional<z.ZodString>;
|
|
211
|
-
/**
|
|
212
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
213
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
214
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
215
|
-
*
|
|
216
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
217
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
218
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
219
|
-
*/
|
|
220
144
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
221
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
222
145
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
223
|
-
},
|
|
224
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
225
|
-
data: Record<string, unknown>;
|
|
226
|
-
t: number;
|
|
227
|
-
sessionId: string;
|
|
228
|
-
seq?: number | undefined;
|
|
229
|
-
actionId?: string | undefined;
|
|
230
|
-
editEpoch?: number | undefined;
|
|
231
|
-
ref?: string | undefined;
|
|
232
|
-
attribution?: "window" | undefined;
|
|
233
|
-
documentId?: string | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
236
|
-
t: number;
|
|
237
|
-
sessionId: string;
|
|
238
|
-
seq?: number | undefined;
|
|
239
|
-
actionId?: string | undefined;
|
|
240
|
-
editEpoch?: number | undefined;
|
|
241
|
-
data?: Record<string, unknown> | undefined;
|
|
242
|
-
ref?: string | undefined;
|
|
243
|
-
attribution?: "window" | undefined;
|
|
244
|
-
documentId?: string | undefined;
|
|
245
|
-
}>;
|
|
146
|
+
}, z.core.$strip>;
|
|
246
147
|
export type ReticleEvent = z.infer<typeof ReticleEventSchema>;
|
|
247
148
|
/** Browser announces itself to the bridge on connect. */
|
|
248
149
|
export declare const HelloMessageSchema: z.ZodObject<{
|
|
249
150
|
kind: z.ZodLiteral<"hello">;
|
|
250
|
-
/**
|
|
251
|
-
* The wire protocol this peer speaks.
|
|
252
|
-
*
|
|
253
|
-
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
254
|
-
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
255
|
-
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
256
|
-
*
|
|
257
|
-
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
258
|
-
*/
|
|
259
151
|
protocolVersion: z.ZodNumber;
|
|
260
152
|
sessionId: z.ZodString;
|
|
261
153
|
url: z.ZodString;
|
|
262
154
|
title: z.ZodString;
|
|
263
|
-
/**
|
|
264
|
-
* Stable project identity stamped by the build plugin (e.g. "acme-web-9f3c1d"). Survives port
|
|
265
|
-
* changes, so session resolution can scope to the right app even when its dev server boots on a
|
|
266
|
-
* different port than usual. Optional for back-compat with v1.0 SDKs that don't send it; absent
|
|
267
|
-
* ⇒ resolution falls back to origin + recency.
|
|
268
|
-
*/
|
|
269
155
|
projectId: z.ZodOptional<z.ZodString>;
|
|
270
|
-
adapters: z.ZodArray<z.ZodString
|
|
271
|
-
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
156
|
+
adapters: z.ZodArray<z.ZodString>;
|
|
272
157
|
token: z.ZodOptional<z.ZodString>;
|
|
273
|
-
|
|
274
|
-
* Where this page runs. ABSENT MEANS `development`: every SDK before this field was a dev build.
|
|
275
|
-
* The bridge accepts `production` only with a session nonce, never with the pairing token.
|
|
276
|
-
*/
|
|
277
|
-
env: z.ZodOptional<z.ZodNativeEnum<{
|
|
158
|
+
env: z.ZodOptional<z.ZodEnum<{
|
|
278
159
|
readonly DEVELOPMENT: "development";
|
|
279
160
|
readonly PRODUCTION: "production";
|
|
280
161
|
}>>;
|
|
281
|
-
|
|
282
|
-
* What a drive may do here: `observe` or `act`. Absent means `act` in development. The bridge
|
|
283
|
-
* refuses a production HELLO without it, and a page can only narrow what its nonce granted.
|
|
284
|
-
*/
|
|
285
|
-
scope: z.ZodOptional<z.ZodNativeEnum<{
|
|
162
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
286
163
|
readonly OBSERVE: "observe";
|
|
287
164
|
readonly ACT: "act";
|
|
288
165
|
}>>;
|
|
289
|
-
|
|
290
|
-
* What kind of surface this is: a browser document, a web page in somebody else's window, a
|
|
291
|
-
* native view tree, or no rendering surface at all. See platform.ts.
|
|
292
|
-
*
|
|
293
|
-
* ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
|
|
294
|
-
* browser document, so absence is not a gap -- it is the answer those connections would have
|
|
295
|
-
* given. This is the same convention five other fields on this message already use.
|
|
296
|
-
*
|
|
297
|
-
* It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
|
|
298
|
-
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
299
|
-
* which product you are.
|
|
300
|
-
*/
|
|
301
|
-
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
166
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
302
167
|
readonly WEB: "web";
|
|
303
168
|
readonly WEBVIEW: "webview";
|
|
304
169
|
readonly NATIVE: "native";
|
|
305
170
|
readonly SERVICE: "service";
|
|
306
171
|
}>>;
|
|
307
|
-
|
|
308
|
-
* The channels this build can actually observe. See channel.ts.
|
|
309
|
-
*
|
|
310
|
-
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
311
|
-
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
312
|
-
* makes. Same convention as every other optional field on this message.
|
|
313
|
-
*
|
|
314
|
-
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
315
|
-
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
316
|
-
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
317
|
-
*/
|
|
318
|
-
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
172
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
319
173
|
readonly UI: "ui";
|
|
320
174
|
readonly NET: "net";
|
|
321
175
|
readonly STATE: "state";
|
|
@@ -325,155 +179,24 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
325
179
|
readonly STORAGE: "storage";
|
|
326
180
|
readonly TIME: "time";
|
|
327
181
|
readonly VISUAL: "visual";
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
* The commands this build can serve.
|
|
331
|
-
*
|
|
332
|
-
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
333
|
-
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
334
|
-
*/
|
|
335
|
-
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
336
|
-
/**
|
|
337
|
-
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
338
|
-
*
|
|
339
|
-
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
340
|
-
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
341
|
-
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
342
|
-
* reported as skewed on every call forever.
|
|
343
|
-
*
|
|
344
|
-
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
345
|
-
*/
|
|
182
|
+
}>>>;
|
|
183
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
346
184
|
contractParts: z.ZodOptional<z.ZodObject<{
|
|
347
|
-
commands: z.ZodArray<z.ZodString
|
|
348
|
-
events: z.ZodArray<z.ZodString
|
|
349
|
-
actions: z.ZodArray<z.ZodString
|
|
350
|
-
},
|
|
351
|
-
commands: string[];
|
|
352
|
-
events: string[];
|
|
353
|
-
actions: string[];
|
|
354
|
-
}, {
|
|
355
|
-
commands: string[];
|
|
356
|
-
events: string[];
|
|
357
|
-
actions: string[];
|
|
358
|
-
}>>;
|
|
359
|
-
/** Whether the app has advertised a capability registry (reticle.describe). */
|
|
185
|
+
commands: z.ZodArray<z.ZodString>;
|
|
186
|
+
events: z.ZodArray<z.ZodString>;
|
|
187
|
+
actions: z.ZodArray<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
360
189
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
-
/**
|
|
362
|
-
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
363
|
-
*
|
|
364
|
-
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
365
|
-
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
366
|
-
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
367
|
-
* and on a drive that mutates state the action is not always repeatable.
|
|
368
|
-
*
|
|
369
|
-
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
370
|
-
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
371
|
-
*/
|
|
372
190
|
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
-
/**
|
|
374
|
-
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
375
|
-
*
|
|
376
|
-
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
377
|
-
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
378
|
-
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
379
|
-
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
380
|
-
* it already had.
|
|
381
|
-
*
|
|
382
|
-
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
383
|
-
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
384
|
-
*/
|
|
385
191
|
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
386
|
-
|
|
387
|
-
* Who put the SDK in this page: `installed` by the app, or `injected` from outside by a hosted
|
|
388
|
-
* verifier. ABSENT means `installed`. See `HelloInstrumentation`.
|
|
389
|
-
*/
|
|
390
|
-
instrumentation: z.ZodOptional<z.ZodNativeEnum<{
|
|
192
|
+
instrumentation: z.ZodOptional<z.ZodEnum<{
|
|
391
193
|
readonly INSTALLED: "installed";
|
|
392
194
|
readonly INJECTED: "injected";
|
|
393
195
|
}>>;
|
|
394
|
-
/**
|
|
395
|
-
* The version of the SDK in the page, so a version-skewed pair can SAY so.
|
|
396
|
-
*
|
|
397
|
-
* `protocolVersion` only catches an incompatible wire format. A 2.2.1 SDK against a 2.4.0 daemon
|
|
398
|
-
* agrees on the protocol, connects fine, and then disagrees about tool behaviour — which surfaced
|
|
399
|
-
* as a bare `-32000` with nothing on either side naming a version. Supplied by the build plugin
|
|
400
|
-
* (which can read the installed package's version Node-side); absent means "unknown", never
|
|
401
|
-
* "matching", so a hand-wired connect is not falsely reported as in sync.
|
|
402
|
-
*/
|
|
403
196
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
404
|
-
/**
|
|
405
|
-
* The wire contract this SDK build speaks (see contract-fingerprint.ts) — DERIVED from core's
|
|
406
|
-
* vocabulary, so it moves only when a name on the wire genuinely changes.
|
|
407
|
-
*
|
|
408
|
-
* `sdkVersion` above answers "which release is this"; this answers the question that actually
|
|
409
|
-
* decides whether the pair works, and it answers it for the two cases a version cannot: a patch
|
|
410
|
-
* bump that changed nothing (equal here → stay quiet) and two different BUILDS of one version
|
|
411
|
-
* number, which is what a stale daemon or a cached npx install is (unequal here → say so).
|
|
412
|
-
*/
|
|
413
197
|
contract: z.ZodOptional<z.ZodString>;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
*
|
|
417
|
-
* Sent so the DRIVEN path redacts them too: a request body captured by the daemon from the network
|
|
418
|
-
* stack never passes through the SDK, so an app-declared credential would otherwise reach the
|
|
419
|
-
* journal in cleartext on exactly the path the user cannot see. Literal names only — a pattern
|
|
420
|
-
* compiled from the wire would be a ReDoS surface, and the exemption list is never sent because it
|
|
421
|
-
* is the only part of the config that could REMOVE redaction. See `wireRedactionKeys`.
|
|
422
|
-
*/
|
|
423
|
-
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
424
|
-
}, "strip", z.ZodTypeAny, {
|
|
425
|
-
kind: "hello";
|
|
426
|
-
url: string;
|
|
427
|
-
sessionId: string;
|
|
428
|
-
protocolVersion: number;
|
|
429
|
-
title: string;
|
|
430
|
-
adapters: string[];
|
|
431
|
-
scope?: "observe" | "act" | undefined;
|
|
432
|
-
env?: "development" | "production" | undefined;
|
|
433
|
-
projectId?: string | undefined;
|
|
434
|
-
token?: string | undefined;
|
|
435
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
436
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
437
|
-
commands?: string[] | undefined;
|
|
438
|
-
contractParts?: {
|
|
439
|
-
commands: string[];
|
|
440
|
-
events: string[];
|
|
441
|
-
actions: string[];
|
|
442
|
-
} | undefined;
|
|
443
|
-
hasCapabilities?: boolean | undefined;
|
|
444
|
-
captureBodies?: boolean | undefined;
|
|
445
|
-
sourceMapping?: boolean | undefined;
|
|
446
|
-
instrumentation?: "installed" | "injected" | undefined;
|
|
447
|
-
sdkVersion?: string | undefined;
|
|
448
|
-
contract?: string | undefined;
|
|
449
|
-
redactKeys?: string[] | undefined;
|
|
450
|
-
}, {
|
|
451
|
-
kind: "hello";
|
|
452
|
-
url: string;
|
|
453
|
-
sessionId: string;
|
|
454
|
-
protocolVersion: number;
|
|
455
|
-
title: string;
|
|
456
|
-
adapters: string[];
|
|
457
|
-
scope?: "observe" | "act" | undefined;
|
|
458
|
-
env?: "development" | "production" | undefined;
|
|
459
|
-
projectId?: string | undefined;
|
|
460
|
-
token?: string | undefined;
|
|
461
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
462
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
463
|
-
commands?: string[] | undefined;
|
|
464
|
-
contractParts?: {
|
|
465
|
-
commands: string[];
|
|
466
|
-
events: string[];
|
|
467
|
-
actions: string[];
|
|
468
|
-
} | undefined;
|
|
469
|
-
hasCapabilities?: boolean | undefined;
|
|
470
|
-
captureBodies?: boolean | undefined;
|
|
471
|
-
sourceMapping?: boolean | undefined;
|
|
472
|
-
instrumentation?: "installed" | "injected" | undefined;
|
|
473
|
-
sdkVersion?: string | undefined;
|
|
474
|
-
contract?: string | undefined;
|
|
475
|
-
redactKeys?: string[] | undefined;
|
|
476
|
-
}>;
|
|
198
|
+
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
477
200
|
export type HelloMessage = z.infer<typeof HelloMessageSchema>;
|
|
478
201
|
/** Agent -> browser request, routed by the bridge with a correlation id. */
|
|
479
202
|
/** Who sent a command: the Harness, or (when absent) the agent connected to the daemon. */
|
|
@@ -487,16 +210,11 @@ export declare const CommandMessageSchema: z.ZodObject<{
|
|
|
487
210
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
488
211
|
name: z.ZodString;
|
|
489
212
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
490
|
-
|
|
491
|
-
by: z.ZodOptional<z.ZodNativeEnum<{
|
|
213
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
492
214
|
readonly HARNESS: "harness";
|
|
493
215
|
}>>;
|
|
494
|
-
/**
|
|
495
|
-
* Set on a Harness command a model chose: the outward actions (`OutwardAction`) its journey asks
|
|
496
|
-
* for. The page presses no other outward control. Absent: not gated (an agent, a saved flow).
|
|
497
|
-
*/
|
|
498
216
|
outward: z.ZodOptional<z.ZodObject<{
|
|
499
|
-
allowed: z.ZodArray<z.
|
|
217
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
500
218
|
readonly INVITE: "invite";
|
|
501
219
|
readonly SEND: "send";
|
|
502
220
|
readonly SHARE: "share";
|
|
@@ -509,33 +227,9 @@ export declare const CommandMessageSchema: z.ZodObject<{
|
|
|
509
227
|
readonly CHANGE_ROLE: "change role";
|
|
510
228
|
readonly CREATE_KEY: "create key";
|
|
511
229
|
readonly CHANGE_STATE: "change state";
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
}, {
|
|
516
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
517
|
-
}>>;
|
|
518
|
-
}, "strip", z.ZodTypeAny, {
|
|
519
|
-
name: string;
|
|
520
|
-
kind: "command";
|
|
521
|
-
id: string;
|
|
522
|
-
args: Record<string, unknown>;
|
|
523
|
-
by?: "harness" | undefined;
|
|
524
|
-
sessionId?: string | undefined;
|
|
525
|
-
outward?: {
|
|
526
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
527
|
-
} | undefined;
|
|
528
|
-
}, {
|
|
529
|
-
name: string;
|
|
530
|
-
kind: "command";
|
|
531
|
-
id: string;
|
|
532
|
-
by?: "harness" | undefined;
|
|
533
|
-
args?: Record<string, unknown> | undefined;
|
|
534
|
-
sessionId?: string | undefined;
|
|
535
|
-
outward?: {
|
|
536
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
537
|
-
} | undefined;
|
|
538
|
-
}>;
|
|
230
|
+
}>>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
539
233
|
export type CommandMessage = z.infer<typeof CommandMessageSchema>;
|
|
540
234
|
/** Browser -> agent reply to a command. */
|
|
541
235
|
export declare const CommandResultSchema: z.ZodObject<{
|
|
@@ -544,26 +238,14 @@ export declare const CommandResultSchema: z.ZodObject<{
|
|
|
544
238
|
ok: z.ZodBoolean;
|
|
545
239
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
546
240
|
error: z.ZodOptional<z.ZodString>;
|
|
547
|
-
},
|
|
548
|
-
ok: boolean;
|
|
549
|
-
kind: "command_result";
|
|
550
|
-
id: string;
|
|
551
|
-
error?: string | undefined;
|
|
552
|
-
result?: unknown;
|
|
553
|
-
}, {
|
|
554
|
-
ok: boolean;
|
|
555
|
-
kind: "command_result";
|
|
556
|
-
id: string;
|
|
557
|
-
error?: string | undefined;
|
|
558
|
-
result?: unknown;
|
|
559
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
560
242
|
export type CommandResult = z.infer<typeof CommandResultSchema>;
|
|
561
243
|
/** Browser -> bridge streamed observation. */
|
|
562
244
|
export declare const EventMessageSchema: z.ZodObject<{
|
|
563
245
|
kind: z.ZodLiteral<"event">;
|
|
564
246
|
event: z.ZodObject<{
|
|
565
247
|
t: z.ZodNumber;
|
|
566
|
-
type: z.
|
|
248
|
+
type: z.ZodEnum<{
|
|
567
249
|
readonly DOM_ADDED: "dom.added";
|
|
568
250
|
readonly DOM_REMOVED: "dom.removed";
|
|
569
251
|
readonly DOM_ATTR: "dom.attr";
|
|
@@ -599,6 +281,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
599
281
|
readonly BLIND_SPOT: "blind-spot";
|
|
600
282
|
readonly SDK_FAILED: "sdk.failed";
|
|
601
283
|
readonly NET_DETAIL: "net.detail";
|
|
284
|
+
readonly NET_RESPONSE_BODY: "net.response-body";
|
|
602
285
|
readonly HUMAN_CONTROL: "human.control";
|
|
603
286
|
readonly HUMAN_MARK: "human.mark";
|
|
604
287
|
readonly DOWNLOAD: "download";
|
|
@@ -607,166 +290,42 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
607
290
|
readonly CANVAS_DIGEST: "canvas.digest";
|
|
608
291
|
}>;
|
|
609
292
|
sessionId: z.ZodString;
|
|
610
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
611
293
|
ref: z.ZodOptional<z.ZodString>;
|
|
612
|
-
/**
|
|
613
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
614
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
615
|
-
*/
|
|
616
294
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
617
|
-
/**
|
|
618
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
619
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
620
|
-
* carry neither.
|
|
621
|
-
*/
|
|
622
295
|
actionId: z.ZodOptional<z.ZodString>;
|
|
623
|
-
|
|
624
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
296
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
625
297
|
readonly WINDOW: "window";
|
|
626
298
|
}>>;
|
|
627
|
-
/**
|
|
628
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
629
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
630
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
631
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
632
|
-
*/
|
|
633
299
|
documentId: z.ZodOptional<z.ZodString>;
|
|
634
|
-
/**
|
|
635
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
636
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
637
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
638
|
-
*
|
|
639
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
640
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
641
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
642
|
-
*/
|
|
643
300
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
644
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
645
301
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
data: Record<string, unknown>;
|
|
649
|
-
t: number;
|
|
650
|
-
sessionId: string;
|
|
651
|
-
seq?: number | undefined;
|
|
652
|
-
actionId?: string | undefined;
|
|
653
|
-
editEpoch?: number | undefined;
|
|
654
|
-
ref?: string | undefined;
|
|
655
|
-
attribution?: "window" | undefined;
|
|
656
|
-
documentId?: string | undefined;
|
|
657
|
-
}, {
|
|
658
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
659
|
-
t: number;
|
|
660
|
-
sessionId: string;
|
|
661
|
-
seq?: number | undefined;
|
|
662
|
-
actionId?: string | undefined;
|
|
663
|
-
editEpoch?: number | undefined;
|
|
664
|
-
data?: Record<string, unknown> | undefined;
|
|
665
|
-
ref?: string | undefined;
|
|
666
|
-
attribution?: "window" | undefined;
|
|
667
|
-
documentId?: string | undefined;
|
|
668
|
-
}>;
|
|
669
|
-
}, "strip", z.ZodTypeAny, {
|
|
670
|
-
kind: "event";
|
|
671
|
-
event: {
|
|
672
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
673
|
-
data: Record<string, unknown>;
|
|
674
|
-
t: number;
|
|
675
|
-
sessionId: string;
|
|
676
|
-
seq?: number | undefined;
|
|
677
|
-
actionId?: string | undefined;
|
|
678
|
-
editEpoch?: number | undefined;
|
|
679
|
-
ref?: string | undefined;
|
|
680
|
-
attribution?: "window" | undefined;
|
|
681
|
-
documentId?: string | undefined;
|
|
682
|
-
};
|
|
683
|
-
}, {
|
|
684
|
-
kind: "event";
|
|
685
|
-
event: {
|
|
686
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
687
|
-
t: number;
|
|
688
|
-
sessionId: string;
|
|
689
|
-
seq?: number | undefined;
|
|
690
|
-
actionId?: string | undefined;
|
|
691
|
-
editEpoch?: number | undefined;
|
|
692
|
-
data?: Record<string, unknown> | undefined;
|
|
693
|
-
ref?: string | undefined;
|
|
694
|
-
attribution?: "window" | undefined;
|
|
695
|
-
documentId?: string | undefined;
|
|
696
|
-
};
|
|
697
|
-
}>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>;
|
|
698
304
|
export type EventMessage = z.infer<typeof EventMessageSchema>;
|
|
699
|
-
export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<
|
|
305
|
+
export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
700
306
|
kind: z.ZodLiteral<"hello">;
|
|
701
|
-
/**
|
|
702
|
-
* The wire protocol this peer speaks.
|
|
703
|
-
*
|
|
704
|
-
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
705
|
-
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
706
|
-
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
707
|
-
*
|
|
708
|
-
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
709
|
-
*/
|
|
710
307
|
protocolVersion: z.ZodNumber;
|
|
711
308
|
sessionId: z.ZodString;
|
|
712
309
|
url: z.ZodString;
|
|
713
310
|
title: z.ZodString;
|
|
714
|
-
/**
|
|
715
|
-
* Stable project identity stamped by the build plugin (e.g. "acme-web-9f3c1d"). Survives port
|
|
716
|
-
* changes, so session resolution can scope to the right app even when its dev server boots on a
|
|
717
|
-
* different port than usual. Optional for back-compat with v1.0 SDKs that don't send it; absent
|
|
718
|
-
* ⇒ resolution falls back to origin + recency.
|
|
719
|
-
*/
|
|
720
311
|
projectId: z.ZodOptional<z.ZodString>;
|
|
721
|
-
adapters: z.ZodArray<z.ZodString
|
|
722
|
-
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
312
|
+
adapters: z.ZodArray<z.ZodString>;
|
|
723
313
|
token: z.ZodOptional<z.ZodString>;
|
|
724
|
-
|
|
725
|
-
* Where this page runs. ABSENT MEANS `development`: every SDK before this field was a dev build.
|
|
726
|
-
* The bridge accepts `production` only with a session nonce, never with the pairing token.
|
|
727
|
-
*/
|
|
728
|
-
env: z.ZodOptional<z.ZodNativeEnum<{
|
|
314
|
+
env: z.ZodOptional<z.ZodEnum<{
|
|
729
315
|
readonly DEVELOPMENT: "development";
|
|
730
316
|
readonly PRODUCTION: "production";
|
|
731
317
|
}>>;
|
|
732
|
-
|
|
733
|
-
* What a drive may do here: `observe` or `act`. Absent means `act` in development. The bridge
|
|
734
|
-
* refuses a production HELLO without it, and a page can only narrow what its nonce granted.
|
|
735
|
-
*/
|
|
736
|
-
scope: z.ZodOptional<z.ZodNativeEnum<{
|
|
318
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
737
319
|
readonly OBSERVE: "observe";
|
|
738
320
|
readonly ACT: "act";
|
|
739
321
|
}>>;
|
|
740
|
-
|
|
741
|
-
* What kind of surface this is: a browser document, a web page in somebody else's window, a
|
|
742
|
-
* native view tree, or no rendering surface at all. See platform.ts.
|
|
743
|
-
*
|
|
744
|
-
* ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
|
|
745
|
-
* browser document, so absence is not a gap -- it is the answer those connections would have
|
|
746
|
-
* given. This is the same convention five other fields on this message already use.
|
|
747
|
-
*
|
|
748
|
-
* It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
|
|
749
|
-
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
750
|
-
* which product you are.
|
|
751
|
-
*/
|
|
752
|
-
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
322
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
753
323
|
readonly WEB: "web";
|
|
754
324
|
readonly WEBVIEW: "webview";
|
|
755
325
|
readonly NATIVE: "native";
|
|
756
326
|
readonly SERVICE: "service";
|
|
757
327
|
}>>;
|
|
758
|
-
|
|
759
|
-
* The channels this build can actually observe. See channel.ts.
|
|
760
|
-
*
|
|
761
|
-
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
762
|
-
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
763
|
-
* makes. Same convention as every other optional field on this message.
|
|
764
|
-
*
|
|
765
|
-
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
766
|
-
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
767
|
-
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
768
|
-
*/
|
|
769
|
-
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
328
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
770
329
|
readonly UI: "ui";
|
|
771
330
|
readonly NET: "net";
|
|
772
331
|
readonly STATE: "state";
|
|
@@ -776,170 +335,34 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
776
335
|
readonly STORAGE: "storage";
|
|
777
336
|
readonly TIME: "time";
|
|
778
337
|
readonly VISUAL: "visual";
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
* The commands this build can serve.
|
|
782
|
-
*
|
|
783
|
-
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
784
|
-
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
785
|
-
*/
|
|
786
|
-
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
787
|
-
/**
|
|
788
|
-
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
789
|
-
*
|
|
790
|
-
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
791
|
-
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
792
|
-
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
793
|
-
* reported as skewed on every call forever.
|
|
794
|
-
*
|
|
795
|
-
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
796
|
-
*/
|
|
338
|
+
}>>>;
|
|
339
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
797
340
|
contractParts: z.ZodOptional<z.ZodObject<{
|
|
798
|
-
commands: z.ZodArray<z.ZodString
|
|
799
|
-
events: z.ZodArray<z.ZodString
|
|
800
|
-
actions: z.ZodArray<z.ZodString
|
|
801
|
-
},
|
|
802
|
-
commands: string[];
|
|
803
|
-
events: string[];
|
|
804
|
-
actions: string[];
|
|
805
|
-
}, {
|
|
806
|
-
commands: string[];
|
|
807
|
-
events: string[];
|
|
808
|
-
actions: string[];
|
|
809
|
-
}>>;
|
|
810
|
-
/** Whether the app has advertised a capability registry (reticle.describe). */
|
|
341
|
+
commands: z.ZodArray<z.ZodString>;
|
|
342
|
+
events: z.ZodArray<z.ZodString>;
|
|
343
|
+
actions: z.ZodArray<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
811
345
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
812
|
-
/**
|
|
813
|
-
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
814
|
-
*
|
|
815
|
-
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
816
|
-
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
817
|
-
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
818
|
-
* and on a drive that mutates state the action is not always repeatable.
|
|
819
|
-
*
|
|
820
|
-
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
821
|
-
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
822
|
-
*/
|
|
823
346
|
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
-
/**
|
|
825
|
-
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
826
|
-
*
|
|
827
|
-
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
828
|
-
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
829
|
-
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
830
|
-
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
831
|
-
* it already had.
|
|
832
|
-
*
|
|
833
|
-
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
834
|
-
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
835
|
-
*/
|
|
836
347
|
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
837
|
-
|
|
838
|
-
* Who put the SDK in this page: `installed` by the app, or `injected` from outside by a hosted
|
|
839
|
-
* verifier. ABSENT means `installed`. See `HelloInstrumentation`.
|
|
840
|
-
*/
|
|
841
|
-
instrumentation: z.ZodOptional<z.ZodNativeEnum<{
|
|
348
|
+
instrumentation: z.ZodOptional<z.ZodEnum<{
|
|
842
349
|
readonly INSTALLED: "installed";
|
|
843
350
|
readonly INJECTED: "injected";
|
|
844
351
|
}>>;
|
|
845
|
-
/**
|
|
846
|
-
* The version of the SDK in the page, so a version-skewed pair can SAY so.
|
|
847
|
-
*
|
|
848
|
-
* `protocolVersion` only catches an incompatible wire format. A 2.2.1 SDK against a 2.4.0 daemon
|
|
849
|
-
* agrees on the protocol, connects fine, and then disagrees about tool behaviour — which surfaced
|
|
850
|
-
* as a bare `-32000` with nothing on either side naming a version. Supplied by the build plugin
|
|
851
|
-
* (which can read the installed package's version Node-side); absent means "unknown", never
|
|
852
|
-
* "matching", so a hand-wired connect is not falsely reported as in sync.
|
|
853
|
-
*/
|
|
854
352
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
855
|
-
/**
|
|
856
|
-
* The wire contract this SDK build speaks (see contract-fingerprint.ts) — DERIVED from core's
|
|
857
|
-
* vocabulary, so it moves only when a name on the wire genuinely changes.
|
|
858
|
-
*
|
|
859
|
-
* `sdkVersion` above answers "which release is this"; this answers the question that actually
|
|
860
|
-
* decides whether the pair works, and it answers it for the two cases a version cannot: a patch
|
|
861
|
-
* bump that changed nothing (equal here → stay quiet) and two different BUILDS of one version
|
|
862
|
-
* number, which is what a stale daemon or a cached npx install is (unequal here → say so).
|
|
863
|
-
*/
|
|
864
353
|
contract: z.ZodOptional<z.ZodString>;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
*
|
|
868
|
-
* Sent so the DRIVEN path redacts them too: a request body captured by the daemon from the network
|
|
869
|
-
* stack never passes through the SDK, so an app-declared credential would otherwise reach the
|
|
870
|
-
* journal in cleartext on exactly the path the user cannot see. Literal names only — a pattern
|
|
871
|
-
* compiled from the wire would be a ReDoS surface, and the exemption list is never sent because it
|
|
872
|
-
* is the only part of the config that could REMOVE redaction. See `wireRedactionKeys`.
|
|
873
|
-
*/
|
|
874
|
-
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
875
|
-
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
kind: "hello";
|
|
877
|
-
url: string;
|
|
878
|
-
sessionId: string;
|
|
879
|
-
protocolVersion: number;
|
|
880
|
-
title: string;
|
|
881
|
-
adapters: string[];
|
|
882
|
-
scope?: "observe" | "act" | undefined;
|
|
883
|
-
env?: "development" | "production" | undefined;
|
|
884
|
-
projectId?: string | undefined;
|
|
885
|
-
token?: string | undefined;
|
|
886
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
887
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
888
|
-
commands?: string[] | undefined;
|
|
889
|
-
contractParts?: {
|
|
890
|
-
commands: string[];
|
|
891
|
-
events: string[];
|
|
892
|
-
actions: string[];
|
|
893
|
-
} | undefined;
|
|
894
|
-
hasCapabilities?: boolean | undefined;
|
|
895
|
-
captureBodies?: boolean | undefined;
|
|
896
|
-
sourceMapping?: boolean | undefined;
|
|
897
|
-
instrumentation?: "installed" | "injected" | undefined;
|
|
898
|
-
sdkVersion?: string | undefined;
|
|
899
|
-
contract?: string | undefined;
|
|
900
|
-
redactKeys?: string[] | undefined;
|
|
901
|
-
}, {
|
|
902
|
-
kind: "hello";
|
|
903
|
-
url: string;
|
|
904
|
-
sessionId: string;
|
|
905
|
-
protocolVersion: number;
|
|
906
|
-
title: string;
|
|
907
|
-
adapters: string[];
|
|
908
|
-
scope?: "observe" | "act" | undefined;
|
|
909
|
-
env?: "development" | "production" | undefined;
|
|
910
|
-
projectId?: string | undefined;
|
|
911
|
-
token?: string | undefined;
|
|
912
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
913
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
914
|
-
commands?: string[] | undefined;
|
|
915
|
-
contractParts?: {
|
|
916
|
-
commands: string[];
|
|
917
|
-
events: string[];
|
|
918
|
-
actions: string[];
|
|
919
|
-
} | undefined;
|
|
920
|
-
hasCapabilities?: boolean | undefined;
|
|
921
|
-
captureBodies?: boolean | undefined;
|
|
922
|
-
sourceMapping?: boolean | undefined;
|
|
923
|
-
instrumentation?: "installed" | "injected" | undefined;
|
|
924
|
-
sdkVersion?: string | undefined;
|
|
925
|
-
contract?: string | undefined;
|
|
926
|
-
redactKeys?: string[] | undefined;
|
|
927
|
-
}>, z.ZodObject<{
|
|
354
|
+
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
928
356
|
kind: z.ZodLiteral<"command">;
|
|
929
357
|
id: z.ZodString;
|
|
930
358
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
931
359
|
name: z.ZodString;
|
|
932
360
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
933
|
-
|
|
934
|
-
by: z.ZodOptional<z.ZodNativeEnum<{
|
|
361
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
935
362
|
readonly HARNESS: "harness";
|
|
936
363
|
}>>;
|
|
937
|
-
/**
|
|
938
|
-
* Set on a Harness command a model chose: the outward actions (`OutwardAction`) its journey asks
|
|
939
|
-
* for. The page presses no other outward control. Absent: not gated (an agent, a saved flow).
|
|
940
|
-
*/
|
|
941
364
|
outward: z.ZodOptional<z.ZodObject<{
|
|
942
|
-
allowed: z.ZodArray<z.
|
|
365
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
943
366
|
readonly INVITE: "invite";
|
|
944
367
|
readonly SEND: "send";
|
|
945
368
|
readonly SHARE: "share";
|
|
@@ -952,55 +375,19 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
952
375
|
readonly CHANGE_ROLE: "change role";
|
|
953
376
|
readonly CREATE_KEY: "create key";
|
|
954
377
|
readonly CHANGE_STATE: "change state";
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
|
|
958
|
-
}, {
|
|
959
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
960
|
-
}>>;
|
|
961
|
-
}, "strip", z.ZodTypeAny, {
|
|
962
|
-
name: string;
|
|
963
|
-
kind: "command";
|
|
964
|
-
id: string;
|
|
965
|
-
args: Record<string, unknown>;
|
|
966
|
-
by?: "harness" | undefined;
|
|
967
|
-
sessionId?: string | undefined;
|
|
968
|
-
outward?: {
|
|
969
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
970
|
-
} | undefined;
|
|
971
|
-
}, {
|
|
972
|
-
name: string;
|
|
973
|
-
kind: "command";
|
|
974
|
-
id: string;
|
|
975
|
-
by?: "harness" | undefined;
|
|
976
|
-
args?: Record<string, unknown> | undefined;
|
|
977
|
-
sessionId?: string | undefined;
|
|
978
|
-
outward?: {
|
|
979
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
980
|
-
} | undefined;
|
|
981
|
-
}>, z.ZodObject<{
|
|
378
|
+
}>>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
982
381
|
kind: z.ZodLiteral<"command_result">;
|
|
983
382
|
id: z.ZodString;
|
|
984
383
|
ok: z.ZodBoolean;
|
|
985
384
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
986
385
|
error: z.ZodOptional<z.ZodString>;
|
|
987
|
-
},
|
|
988
|
-
ok: boolean;
|
|
989
|
-
kind: "command_result";
|
|
990
|
-
id: string;
|
|
991
|
-
error?: string | undefined;
|
|
992
|
-
result?: unknown;
|
|
993
|
-
}, {
|
|
994
|
-
ok: boolean;
|
|
995
|
-
kind: "command_result";
|
|
996
|
-
id: string;
|
|
997
|
-
error?: string | undefined;
|
|
998
|
-
result?: unknown;
|
|
999
|
-
}>, z.ZodObject<{
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1000
387
|
kind: z.ZodLiteral<"event">;
|
|
1001
388
|
event: z.ZodObject<{
|
|
1002
389
|
t: z.ZodNumber;
|
|
1003
|
-
type: z.
|
|
390
|
+
type: z.ZodEnum<{
|
|
1004
391
|
readonly DOM_ADDED: "dom.added";
|
|
1005
392
|
readonly DOM_REMOVED: "dom.removed";
|
|
1006
393
|
readonly DOM_ATTR: "dom.attr";
|
|
@@ -1036,6 +423,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
1036
423
|
readonly BLIND_SPOT: "blind-spot";
|
|
1037
424
|
readonly SDK_FAILED: "sdk.failed";
|
|
1038
425
|
readonly NET_DETAIL: "net.detail";
|
|
426
|
+
readonly NET_RESPONSE_BODY: "net.response-body";
|
|
1039
427
|
readonly HUMAN_CONTROL: "human.control";
|
|
1040
428
|
readonly HUMAN_MARK: "human.mark";
|
|
1041
429
|
readonly DOWNLOAD: "download";
|
|
@@ -1044,91 +432,14 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
1044
432
|
readonly CANVAS_DIGEST: "canvas.digest";
|
|
1045
433
|
}>;
|
|
1046
434
|
sessionId: z.ZodString;
|
|
1047
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
1048
435
|
ref: z.ZodOptional<z.ZodString>;
|
|
1049
|
-
/**
|
|
1050
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
1051
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
1052
|
-
*/
|
|
1053
436
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
-
/**
|
|
1055
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
1056
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
1057
|
-
* carry neither.
|
|
1058
|
-
*/
|
|
1059
437
|
actionId: z.ZodOptional<z.ZodString>;
|
|
1060
|
-
|
|
1061
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
438
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
1062
439
|
readonly WINDOW: "window";
|
|
1063
440
|
}>>;
|
|
1064
|
-
/**
|
|
1065
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
1066
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
1067
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
1068
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
1069
|
-
*/
|
|
1070
441
|
documentId: z.ZodOptional<z.ZodString>;
|
|
1071
|
-
/**
|
|
1072
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
1073
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
1074
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
1075
|
-
*
|
|
1076
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
1077
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
1078
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
1079
|
-
*/
|
|
1080
442
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
1081
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
1082
443
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
data: Record<string, unknown>;
|
|
1086
|
-
t: number;
|
|
1087
|
-
sessionId: string;
|
|
1088
|
-
seq?: number | undefined;
|
|
1089
|
-
actionId?: string | undefined;
|
|
1090
|
-
editEpoch?: number | undefined;
|
|
1091
|
-
ref?: string | undefined;
|
|
1092
|
-
attribution?: "window" | undefined;
|
|
1093
|
-
documentId?: string | undefined;
|
|
1094
|
-
}, {
|
|
1095
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
1096
|
-
t: number;
|
|
1097
|
-
sessionId: string;
|
|
1098
|
-
seq?: number | undefined;
|
|
1099
|
-
actionId?: string | undefined;
|
|
1100
|
-
editEpoch?: number | undefined;
|
|
1101
|
-
data?: Record<string, unknown> | undefined;
|
|
1102
|
-
ref?: string | undefined;
|
|
1103
|
-
attribution?: "window" | undefined;
|
|
1104
|
-
documentId?: string | undefined;
|
|
1105
|
-
}>;
|
|
1106
|
-
}, "strip", z.ZodTypeAny, {
|
|
1107
|
-
kind: "event";
|
|
1108
|
-
event: {
|
|
1109
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
1110
|
-
data: Record<string, unknown>;
|
|
1111
|
-
t: number;
|
|
1112
|
-
sessionId: string;
|
|
1113
|
-
seq?: number | undefined;
|
|
1114
|
-
actionId?: string | undefined;
|
|
1115
|
-
editEpoch?: number | undefined;
|
|
1116
|
-
ref?: string | undefined;
|
|
1117
|
-
attribution?: "window" | undefined;
|
|
1118
|
-
documentId?: string | undefined;
|
|
1119
|
-
};
|
|
1120
|
-
}, {
|
|
1121
|
-
kind: "event";
|
|
1122
|
-
event: {
|
|
1123
|
-
type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "field.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download" | "hud.used" | "media.state" | "canvas.digest";
|
|
1124
|
-
t: number;
|
|
1125
|
-
sessionId: string;
|
|
1126
|
-
seq?: number | undefined;
|
|
1127
|
-
actionId?: string | undefined;
|
|
1128
|
-
editEpoch?: number | undefined;
|
|
1129
|
-
data?: Record<string, unknown> | undefined;
|
|
1130
|
-
ref?: string | undefined;
|
|
1131
|
-
attribution?: "window" | undefined;
|
|
1132
|
-
documentId?: string | undefined;
|
|
1133
|
-
};
|
|
1134
|
-
}>]>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
}, z.core.$strip>], "kind">;
|