@reticlehq/core 3.7.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/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- 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 +26 -0
- package/dist/artifacts/flow-types.d.ts +212 -2295
- package/dist/artifacts/flow-types.js +14 -2
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- 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 +104 -1665
- package/dist/artifacts/impact.js +38 -21
- package/dist/artifacts/journal.d.ts +15 -231
- package/dist/artifacts/journal.js +15 -2
- package/dist/artifacts/prompt-context.d.ts +7 -33
- package/dist/artifacts/prompt-context.js +15 -4
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/hud-entry.js +1 -1
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +23 -52
- package/dist/onboarding.js +20 -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 -101
- package/dist/schema/event-payloads.json +246 -108
- package/dist/schema/event-type.json +47 -48
- package/dist/schema/hello-message.json +150 -133
- package/dist/schema/reticle-event.json +98 -94
- package/dist/schema/reticle-message.json +338 -310
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +17 -91
- package/dist/telemetry-feedback.js +20 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +45 -624
- package/dist/telemetry-session.js +25 -12
- package/dist/telemetry-signals.d.ts +211 -86
- package/dist/telemetry-signals.js +100 -2
- package/dist/telemetry.d.ts +321 -1691
- package/dist/telemetry.js +72 -6
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +6 -37
- package/dist/verdict/instrumentation-coverage.js +15 -59
- package/dist/verdict/instrumentation-gap.d.ts +72 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +3 -2
- package/dist/verdict/predicate.js +107 -16
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +71 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +48 -2
- package/dist/verdict/security.js +185 -18
- package/dist/verdict/verification-run.d.ts +124 -1623
- package/dist/verdict/verification-run.js +37 -6
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +37 -1
- package/dist/wire/constants/event-types.js +35 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-env.d.ts +140 -0
- package/dist/wire/constants/reticle-env.js +140 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +173 -629
- package/dist/wire/event-payloads.js +107 -23
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +90 -713
- package/dist/wire/messages.js +19 -3
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +50 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +14 -8
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +92 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +102 -700
- 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 +7 -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: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
|
|
23
|
-
text?: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
kind: "message" | "harness" | "pause" | "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,128 +125,51 @@ 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";
|
|
182
132
|
readonly HUD_USED: "hud.used";
|
|
133
|
+
readonly MEDIA_STATE: "media.state";
|
|
134
|
+
readonly CANVAS_DIGEST: "canvas.digest";
|
|
183
135
|
}>;
|
|
184
136
|
sessionId: z.ZodString;
|
|
185
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
186
137
|
ref: z.ZodOptional<z.ZodString>;
|
|
187
|
-
/**
|
|
188
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
189
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
190
|
-
*/
|
|
191
138
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
192
|
-
/**
|
|
193
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
194
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
195
|
-
* carry neither.
|
|
196
|
-
*/
|
|
197
139
|
actionId: z.ZodOptional<z.ZodString>;
|
|
198
|
-
|
|
199
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
140
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
200
141
|
readonly WINDOW: "window";
|
|
201
142
|
}>>;
|
|
202
|
-
/**
|
|
203
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
204
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
205
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
206
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
207
|
-
*/
|
|
208
143
|
documentId: z.ZodOptional<z.ZodString>;
|
|
209
|
-
/**
|
|
210
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
211
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
212
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
213
|
-
*
|
|
214
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
215
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
216
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
217
|
-
*/
|
|
218
144
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
219
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
220
145
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
221
|
-
},
|
|
222
|
-
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";
|
|
223
|
-
data: Record<string, unknown>;
|
|
224
|
-
t: number;
|
|
225
|
-
sessionId: string;
|
|
226
|
-
seq?: number | undefined;
|
|
227
|
-
actionId?: string | undefined;
|
|
228
|
-
editEpoch?: number | undefined;
|
|
229
|
-
ref?: string | undefined;
|
|
230
|
-
attribution?: "window" | undefined;
|
|
231
|
-
documentId?: string | undefined;
|
|
232
|
-
}, {
|
|
233
|
-
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";
|
|
234
|
-
t: number;
|
|
235
|
-
sessionId: string;
|
|
236
|
-
seq?: number | undefined;
|
|
237
|
-
actionId?: string | undefined;
|
|
238
|
-
editEpoch?: number | undefined;
|
|
239
|
-
data?: Record<string, unknown> | undefined;
|
|
240
|
-
ref?: string | undefined;
|
|
241
|
-
attribution?: "window" | undefined;
|
|
242
|
-
documentId?: string | undefined;
|
|
243
|
-
}>;
|
|
146
|
+
}, z.core.$strip>;
|
|
244
147
|
export type ReticleEvent = z.infer<typeof ReticleEventSchema>;
|
|
245
148
|
/** Browser announces itself to the bridge on connect. */
|
|
246
149
|
export declare const HelloMessageSchema: z.ZodObject<{
|
|
247
150
|
kind: z.ZodLiteral<"hello">;
|
|
248
|
-
/**
|
|
249
|
-
* The wire protocol this peer speaks.
|
|
250
|
-
*
|
|
251
|
-
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
252
|
-
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
253
|
-
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
254
|
-
*
|
|
255
|
-
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
256
|
-
*/
|
|
257
151
|
protocolVersion: z.ZodNumber;
|
|
258
152
|
sessionId: z.ZodString;
|
|
259
153
|
url: z.ZodString;
|
|
260
154
|
title: z.ZodString;
|
|
261
|
-
/**
|
|
262
|
-
* Stable project identity stamped by the build plugin (e.g. "acme-web-9f3c1d"). Survives port
|
|
263
|
-
* changes, so session resolution can scope to the right app even when its dev server boots on a
|
|
264
|
-
* different port than usual. Optional for back-compat with v1.0 SDKs that don't send it; absent
|
|
265
|
-
* ⇒ resolution falls back to origin + recency.
|
|
266
|
-
*/
|
|
267
155
|
projectId: z.ZodOptional<z.ZodString>;
|
|
268
|
-
adapters: z.ZodArray<z.ZodString
|
|
269
|
-
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
156
|
+
adapters: z.ZodArray<z.ZodString>;
|
|
270
157
|
token: z.ZodOptional<z.ZodString>;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
281
|
-
* which product you are.
|
|
282
|
-
*/
|
|
283
|
-
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
158
|
+
env: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
readonly DEVELOPMENT: "development";
|
|
160
|
+
readonly PRODUCTION: "production";
|
|
161
|
+
}>>;
|
|
162
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
readonly OBSERVE: "observe";
|
|
164
|
+
readonly ACT: "act";
|
|
165
|
+
}>>;
|
|
166
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
284
167
|
readonly WEB: "web";
|
|
285
168
|
readonly WEBVIEW: "webview";
|
|
286
169
|
readonly NATIVE: "native";
|
|
287
170
|
readonly SERVICE: "service";
|
|
288
171
|
}>>;
|
|
289
|
-
|
|
290
|
-
* The channels this build can actually observe. See channel.ts.
|
|
291
|
-
*
|
|
292
|
-
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
293
|
-
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
294
|
-
* makes. Same convention as every other optional field on this message.
|
|
295
|
-
*
|
|
296
|
-
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
297
|
-
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
298
|
-
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
299
|
-
*/
|
|
300
|
-
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
172
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
301
173
|
readonly UI: "ui";
|
|
302
174
|
readonly NET: "net";
|
|
303
175
|
readonly STATE: "state";
|
|
@@ -307,141 +179,24 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
307
179
|
readonly STORAGE: "storage";
|
|
308
180
|
readonly TIME: "time";
|
|
309
181
|
readonly VISUAL: "visual";
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
* The commands this build can serve.
|
|
313
|
-
*
|
|
314
|
-
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
315
|
-
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
316
|
-
*/
|
|
317
|
-
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
318
|
-
/**
|
|
319
|
-
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
320
|
-
*
|
|
321
|
-
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
322
|
-
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
323
|
-
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
324
|
-
* reported as skewed on every call forever.
|
|
325
|
-
*
|
|
326
|
-
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
327
|
-
*/
|
|
182
|
+
}>>>;
|
|
183
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
184
|
contractParts: z.ZodOptional<z.ZodObject<{
|
|
329
|
-
commands: z.ZodArray<z.ZodString
|
|
330
|
-
events: z.ZodArray<z.ZodString
|
|
331
|
-
actions: z.ZodArray<z.ZodString
|
|
332
|
-
},
|
|
333
|
-
events: string[];
|
|
334
|
-
commands: string[];
|
|
335
|
-
actions: string[];
|
|
336
|
-
}, {
|
|
337
|
-
events: string[];
|
|
338
|
-
commands: string[];
|
|
339
|
-
actions: string[];
|
|
340
|
-
}>>;
|
|
341
|
-
/** 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>>;
|
|
342
189
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
-
/**
|
|
344
|
-
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
345
|
-
*
|
|
346
|
-
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
347
|
-
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
348
|
-
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
349
|
-
* and on a drive that mutates state the action is not always repeatable.
|
|
350
|
-
*
|
|
351
|
-
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
352
|
-
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
353
|
-
*/
|
|
354
190
|
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
-
/**
|
|
356
|
-
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
357
|
-
*
|
|
358
|
-
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
359
|
-
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
360
|
-
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
361
|
-
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
362
|
-
* it already had.
|
|
363
|
-
*
|
|
364
|
-
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
365
|
-
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
366
|
-
*/
|
|
367
191
|
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
* agrees on the protocol, connects fine, and then disagrees about tool behaviour — which surfaced
|
|
373
|
-
* as a bare `-32000` with nothing on either side naming a version. Supplied by the build plugin
|
|
374
|
-
* (which can read the installed package's version Node-side); absent means "unknown", never
|
|
375
|
-
* "matching", so a hand-wired connect is not falsely reported as in sync.
|
|
376
|
-
*/
|
|
192
|
+
instrumentation: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
readonly INSTALLED: "installed";
|
|
194
|
+
readonly INJECTED: "injected";
|
|
195
|
+
}>>;
|
|
377
196
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
378
|
-
/**
|
|
379
|
-
* The wire contract this SDK build speaks (see contract-fingerprint.ts) — DERIVED from core's
|
|
380
|
-
* vocabulary, so it moves only when a name on the wire genuinely changes.
|
|
381
|
-
*
|
|
382
|
-
* `sdkVersion` above answers "which release is this"; this answers the question that actually
|
|
383
|
-
* decides whether the pair works, and it answers it for the two cases a version cannot: a patch
|
|
384
|
-
* bump that changed nothing (equal here → stay quiet) and two different BUILDS of one version
|
|
385
|
-
* number, which is what a stale daemon or a cached npx install is (unequal here → say so).
|
|
386
|
-
*/
|
|
387
197
|
contract: z.ZodOptional<z.ZodString>;
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
*
|
|
391
|
-
* Sent so the DRIVEN path redacts them too: a request body captured by the daemon from the network
|
|
392
|
-
* stack never passes through the SDK, so an app-declared credential would otherwise reach the
|
|
393
|
-
* journal in cleartext on exactly the path the user cannot see. Literal names only — a pattern
|
|
394
|
-
* compiled from the wire would be a ReDoS surface, and the exemption list is never sent because it
|
|
395
|
-
* is the only part of the config that could REMOVE redaction. See `wireRedactionKeys`.
|
|
396
|
-
*/
|
|
397
|
-
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
398
|
-
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
kind: "hello";
|
|
400
|
-
url: string;
|
|
401
|
-
adapters: string[];
|
|
402
|
-
sessionId: string;
|
|
403
|
-
protocolVersion: number;
|
|
404
|
-
title: string;
|
|
405
|
-
projectId?: string | undefined;
|
|
406
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
407
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
408
|
-
token?: string | undefined;
|
|
409
|
-
commands?: string[] | undefined;
|
|
410
|
-
contractParts?: {
|
|
411
|
-
events: string[];
|
|
412
|
-
commands: string[];
|
|
413
|
-
actions: string[];
|
|
414
|
-
} | undefined;
|
|
415
|
-
hasCapabilities?: boolean | undefined;
|
|
416
|
-
captureBodies?: boolean | undefined;
|
|
417
|
-
sourceMapping?: boolean | undefined;
|
|
418
|
-
sdkVersion?: string | undefined;
|
|
419
|
-
contract?: string | undefined;
|
|
420
|
-
redactKeys?: string[] | undefined;
|
|
421
|
-
}, {
|
|
422
|
-
kind: "hello";
|
|
423
|
-
url: string;
|
|
424
|
-
adapters: string[];
|
|
425
|
-
sessionId: string;
|
|
426
|
-
protocolVersion: number;
|
|
427
|
-
title: string;
|
|
428
|
-
projectId?: string | undefined;
|
|
429
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
430
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
431
|
-
token?: string | undefined;
|
|
432
|
-
commands?: string[] | undefined;
|
|
433
|
-
contractParts?: {
|
|
434
|
-
events: string[];
|
|
435
|
-
commands: string[];
|
|
436
|
-
actions: string[];
|
|
437
|
-
} | undefined;
|
|
438
|
-
hasCapabilities?: boolean | undefined;
|
|
439
|
-
captureBodies?: boolean | undefined;
|
|
440
|
-
sourceMapping?: boolean | undefined;
|
|
441
|
-
sdkVersion?: string | undefined;
|
|
442
|
-
contract?: string | undefined;
|
|
443
|
-
redactKeys?: string[] | undefined;
|
|
444
|
-
}>;
|
|
198
|
+
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
199
|
+
}, z.core.$strip>;
|
|
445
200
|
export type HelloMessage = z.infer<typeof HelloMessageSchema>;
|
|
446
201
|
/** Agent -> browser request, routed by the bridge with a correlation id. */
|
|
447
202
|
/** Who sent a command: the Harness, or (when absent) the agent connected to the daemon. */
|
|
@@ -455,16 +210,11 @@ export declare const CommandMessageSchema: z.ZodObject<{
|
|
|
455
210
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
456
211
|
name: z.ZodString;
|
|
457
212
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
458
|
-
|
|
459
|
-
by: z.ZodOptional<z.ZodNativeEnum<{
|
|
213
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
460
214
|
readonly HARNESS: "harness";
|
|
461
215
|
}>>;
|
|
462
|
-
/**
|
|
463
|
-
* Set on a Harness command a model chose: the outward actions (`OutwardAction`) its journey asks
|
|
464
|
-
* for. The page presses no other outward control. Absent: not gated (an agent, a saved flow).
|
|
465
|
-
*/
|
|
466
216
|
outward: z.ZodOptional<z.ZodObject<{
|
|
467
|
-
allowed: z.ZodArray<z.
|
|
217
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
468
218
|
readonly INVITE: "invite";
|
|
469
219
|
readonly SEND: "send";
|
|
470
220
|
readonly SHARE: "share";
|
|
@@ -477,33 +227,9 @@ export declare const CommandMessageSchema: z.ZodObject<{
|
|
|
477
227
|
readonly CHANGE_ROLE: "change role";
|
|
478
228
|
readonly CREATE_KEY: "create key";
|
|
479
229
|
readonly CHANGE_STATE: "change state";
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
}, {
|
|
484
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
485
|
-
}>>;
|
|
486
|
-
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
kind: "command";
|
|
488
|
-
name: string;
|
|
489
|
-
id: string;
|
|
490
|
-
args: Record<string, unknown>;
|
|
491
|
-
by?: "harness" | undefined;
|
|
492
|
-
sessionId?: string | undefined;
|
|
493
|
-
outward?: {
|
|
494
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
495
|
-
} | undefined;
|
|
496
|
-
}, {
|
|
497
|
-
kind: "command";
|
|
498
|
-
name: string;
|
|
499
|
-
id: string;
|
|
500
|
-
by?: "harness" | undefined;
|
|
501
|
-
args?: Record<string, unknown> | undefined;
|
|
502
|
-
sessionId?: string | undefined;
|
|
503
|
-
outward?: {
|
|
504
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
505
|
-
} | undefined;
|
|
506
|
-
}>;
|
|
230
|
+
}>>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
507
233
|
export type CommandMessage = z.infer<typeof CommandMessageSchema>;
|
|
508
234
|
/** Browser -> agent reply to a command. */
|
|
509
235
|
export declare const CommandResultSchema: z.ZodObject<{
|
|
@@ -512,26 +238,14 @@ export declare const CommandResultSchema: z.ZodObject<{
|
|
|
512
238
|
ok: z.ZodBoolean;
|
|
513
239
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
514
240
|
error: z.ZodOptional<z.ZodString>;
|
|
515
|
-
},
|
|
516
|
-
kind: "command_result";
|
|
517
|
-
ok: boolean;
|
|
518
|
-
id: string;
|
|
519
|
-
error?: string | undefined;
|
|
520
|
-
result?: unknown;
|
|
521
|
-
}, {
|
|
522
|
-
kind: "command_result";
|
|
523
|
-
ok: boolean;
|
|
524
|
-
id: string;
|
|
525
|
-
error?: string | undefined;
|
|
526
|
-
result?: unknown;
|
|
527
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
528
242
|
export type CommandResult = z.infer<typeof CommandResultSchema>;
|
|
529
243
|
/** Browser -> bridge streamed observation. */
|
|
530
244
|
export declare const EventMessageSchema: z.ZodObject<{
|
|
531
245
|
kind: z.ZodLiteral<"event">;
|
|
532
246
|
event: z.ZodObject<{
|
|
533
247
|
t: z.ZodNumber;
|
|
534
|
-
type: z.
|
|
248
|
+
type: z.ZodEnum<{
|
|
535
249
|
readonly DOM_ADDED: "dom.added";
|
|
536
250
|
readonly DOM_REMOVED: "dom.removed";
|
|
537
251
|
readonly DOM_ATTR: "dom.attr";
|
|
@@ -567,156 +281,51 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
567
281
|
readonly BLIND_SPOT: "blind-spot";
|
|
568
282
|
readonly SDK_FAILED: "sdk.failed";
|
|
569
283
|
readonly NET_DETAIL: "net.detail";
|
|
284
|
+
readonly NET_RESPONSE_BODY: "net.response-body";
|
|
570
285
|
readonly HUMAN_CONTROL: "human.control";
|
|
571
286
|
readonly HUMAN_MARK: "human.mark";
|
|
572
287
|
readonly DOWNLOAD: "download";
|
|
573
288
|
readonly HUD_USED: "hud.used";
|
|
289
|
+
readonly MEDIA_STATE: "media.state";
|
|
290
|
+
readonly CANVAS_DIGEST: "canvas.digest";
|
|
574
291
|
}>;
|
|
575
292
|
sessionId: z.ZodString;
|
|
576
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
577
293
|
ref: z.ZodOptional<z.ZodString>;
|
|
578
|
-
/**
|
|
579
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
580
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
581
|
-
*/
|
|
582
294
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
583
|
-
/**
|
|
584
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
585
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
586
|
-
* carry neither.
|
|
587
|
-
*/
|
|
588
295
|
actionId: z.ZodOptional<z.ZodString>;
|
|
589
|
-
|
|
590
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
296
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
591
297
|
readonly WINDOW: "window";
|
|
592
298
|
}>>;
|
|
593
|
-
/**
|
|
594
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
595
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
596
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
597
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
598
|
-
*/
|
|
599
299
|
documentId: z.ZodOptional<z.ZodString>;
|
|
600
|
-
/**
|
|
601
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
602
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
603
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
604
|
-
*
|
|
605
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
606
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
607
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
608
|
-
*/
|
|
609
300
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
611
301
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
612
|
-
},
|
|
613
|
-
|
|
614
|
-
data: Record<string, unknown>;
|
|
615
|
-
t: number;
|
|
616
|
-
sessionId: string;
|
|
617
|
-
seq?: number | undefined;
|
|
618
|
-
actionId?: string | undefined;
|
|
619
|
-
editEpoch?: number | undefined;
|
|
620
|
-
ref?: string | undefined;
|
|
621
|
-
attribution?: "window" | undefined;
|
|
622
|
-
documentId?: string | undefined;
|
|
623
|
-
}, {
|
|
624
|
-
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";
|
|
625
|
-
t: number;
|
|
626
|
-
sessionId: string;
|
|
627
|
-
seq?: number | undefined;
|
|
628
|
-
actionId?: string | undefined;
|
|
629
|
-
editEpoch?: number | undefined;
|
|
630
|
-
data?: Record<string, unknown> | undefined;
|
|
631
|
-
ref?: string | undefined;
|
|
632
|
-
attribution?: "window" | undefined;
|
|
633
|
-
documentId?: string | undefined;
|
|
634
|
-
}>;
|
|
635
|
-
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
kind: "event";
|
|
637
|
-
event: {
|
|
638
|
-
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";
|
|
639
|
-
data: Record<string, unknown>;
|
|
640
|
-
t: number;
|
|
641
|
-
sessionId: string;
|
|
642
|
-
seq?: number | undefined;
|
|
643
|
-
actionId?: string | undefined;
|
|
644
|
-
editEpoch?: number | undefined;
|
|
645
|
-
ref?: string | undefined;
|
|
646
|
-
attribution?: "window" | undefined;
|
|
647
|
-
documentId?: string | undefined;
|
|
648
|
-
};
|
|
649
|
-
}, {
|
|
650
|
-
kind: "event";
|
|
651
|
-
event: {
|
|
652
|
-
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";
|
|
653
|
-
t: number;
|
|
654
|
-
sessionId: string;
|
|
655
|
-
seq?: number | undefined;
|
|
656
|
-
actionId?: string | undefined;
|
|
657
|
-
editEpoch?: number | undefined;
|
|
658
|
-
data?: Record<string, unknown> | undefined;
|
|
659
|
-
ref?: string | undefined;
|
|
660
|
-
attribution?: "window" | undefined;
|
|
661
|
-
documentId?: string | undefined;
|
|
662
|
-
};
|
|
663
|
-
}>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>;
|
|
664
304
|
export type EventMessage = z.infer<typeof EventMessageSchema>;
|
|
665
|
-
export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<
|
|
305
|
+
export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
666
306
|
kind: z.ZodLiteral<"hello">;
|
|
667
|
-
/**
|
|
668
|
-
* The wire protocol this peer speaks.
|
|
669
|
-
*
|
|
670
|
-
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
671
|
-
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
672
|
-
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
673
|
-
*
|
|
674
|
-
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
675
|
-
*/
|
|
676
307
|
protocolVersion: z.ZodNumber;
|
|
677
308
|
sessionId: z.ZodString;
|
|
678
309
|
url: z.ZodString;
|
|
679
310
|
title: z.ZodString;
|
|
680
|
-
/**
|
|
681
|
-
* Stable project identity stamped by the build plugin (e.g. "acme-web-9f3c1d"). Survives port
|
|
682
|
-
* changes, so session resolution can scope to the right app even when its dev server boots on a
|
|
683
|
-
* different port than usual. Optional for back-compat with v1.0 SDKs that don't send it; absent
|
|
684
|
-
* ⇒ resolution falls back to origin + recency.
|
|
685
|
-
*/
|
|
686
311
|
projectId: z.ZodOptional<z.ZodString>;
|
|
687
|
-
adapters: z.ZodArray<z.ZodString
|
|
688
|
-
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
312
|
+
adapters: z.ZodArray<z.ZodString>;
|
|
689
313
|
token: z.ZodOptional<z.ZodString>;
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
700
|
-
* which product you are.
|
|
701
|
-
*/
|
|
702
|
-
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
314
|
+
env: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
readonly DEVELOPMENT: "development";
|
|
316
|
+
readonly PRODUCTION: "production";
|
|
317
|
+
}>>;
|
|
318
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
readonly OBSERVE: "observe";
|
|
320
|
+
readonly ACT: "act";
|
|
321
|
+
}>>;
|
|
322
|
+
platform: z.ZodOptional<z.ZodEnum<{
|
|
703
323
|
readonly WEB: "web";
|
|
704
324
|
readonly WEBVIEW: "webview";
|
|
705
325
|
readonly NATIVE: "native";
|
|
706
326
|
readonly SERVICE: "service";
|
|
707
327
|
}>>;
|
|
708
|
-
|
|
709
|
-
* The channels this build can actually observe. See channel.ts.
|
|
710
|
-
*
|
|
711
|
-
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
712
|
-
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
713
|
-
* makes. Same convention as every other optional field on this message.
|
|
714
|
-
*
|
|
715
|
-
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
716
|
-
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
717
|
-
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
718
|
-
*/
|
|
719
|
-
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
328
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
720
329
|
readonly UI: "ui";
|
|
721
330
|
readonly NET: "net";
|
|
722
331
|
readonly STATE: "state";
|
|
@@ -726,156 +335,34 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
726
335
|
readonly STORAGE: "storage";
|
|
727
336
|
readonly TIME: "time";
|
|
728
337
|
readonly VISUAL: "visual";
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
* The commands this build can serve.
|
|
732
|
-
*
|
|
733
|
-
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
734
|
-
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
735
|
-
*/
|
|
736
|
-
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
737
|
-
/**
|
|
738
|
-
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
739
|
-
*
|
|
740
|
-
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
741
|
-
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
742
|
-
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
743
|
-
* reported as skewed on every call forever.
|
|
744
|
-
*
|
|
745
|
-
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
746
|
-
*/
|
|
338
|
+
}>>>;
|
|
339
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
747
340
|
contractParts: z.ZodOptional<z.ZodObject<{
|
|
748
|
-
commands: z.ZodArray<z.ZodString
|
|
749
|
-
events: z.ZodArray<z.ZodString
|
|
750
|
-
actions: z.ZodArray<z.ZodString
|
|
751
|
-
},
|
|
752
|
-
events: string[];
|
|
753
|
-
commands: string[];
|
|
754
|
-
actions: string[];
|
|
755
|
-
}, {
|
|
756
|
-
events: string[];
|
|
757
|
-
commands: string[];
|
|
758
|
-
actions: string[];
|
|
759
|
-
}>>;
|
|
760
|
-
/** 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>>;
|
|
761
345
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
-
/**
|
|
763
|
-
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
764
|
-
*
|
|
765
|
-
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
766
|
-
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
767
|
-
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
768
|
-
* and on a drive that mutates state the action is not always repeatable.
|
|
769
|
-
*
|
|
770
|
-
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
771
|
-
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
772
|
-
*/
|
|
773
346
|
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
774
|
-
/**
|
|
775
|
-
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
776
|
-
*
|
|
777
|
-
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
778
|
-
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
779
|
-
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
780
|
-
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
781
|
-
* it already had.
|
|
782
|
-
*
|
|
783
|
-
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
784
|
-
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
785
|
-
*/
|
|
786
347
|
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
* agrees on the protocol, connects fine, and then disagrees about tool behaviour — which surfaced
|
|
792
|
-
* as a bare `-32000` with nothing on either side naming a version. Supplied by the build plugin
|
|
793
|
-
* (which can read the installed package's version Node-side); absent means "unknown", never
|
|
794
|
-
* "matching", so a hand-wired connect is not falsely reported as in sync.
|
|
795
|
-
*/
|
|
348
|
+
instrumentation: z.ZodOptional<z.ZodEnum<{
|
|
349
|
+
readonly INSTALLED: "installed";
|
|
350
|
+
readonly INJECTED: "injected";
|
|
351
|
+
}>>;
|
|
796
352
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
797
|
-
/**
|
|
798
|
-
* The wire contract this SDK build speaks (see contract-fingerprint.ts) — DERIVED from core's
|
|
799
|
-
* vocabulary, so it moves only when a name on the wire genuinely changes.
|
|
800
|
-
*
|
|
801
|
-
* `sdkVersion` above answers "which release is this"; this answers the question that actually
|
|
802
|
-
* decides whether the pair works, and it answers it for the two cases a version cannot: a patch
|
|
803
|
-
* bump that changed nothing (equal here → stay quiet) and two different BUILDS of one version
|
|
804
|
-
* number, which is what a stale daemon or a cached npx install is (unequal here → say so).
|
|
805
|
-
*/
|
|
806
353
|
contract: z.ZodOptional<z.ZodString>;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
*
|
|
810
|
-
* Sent so the DRIVEN path redacts them too: a request body captured by the daemon from the network
|
|
811
|
-
* stack never passes through the SDK, so an app-declared credential would otherwise reach the
|
|
812
|
-
* journal in cleartext on exactly the path the user cannot see. Literal names only — a pattern
|
|
813
|
-
* compiled from the wire would be a ReDoS surface, and the exemption list is never sent because it
|
|
814
|
-
* is the only part of the config that could REMOVE redaction. See `wireRedactionKeys`.
|
|
815
|
-
*/
|
|
816
|
-
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
817
|
-
}, "strip", z.ZodTypeAny, {
|
|
818
|
-
kind: "hello";
|
|
819
|
-
url: string;
|
|
820
|
-
adapters: string[];
|
|
821
|
-
sessionId: string;
|
|
822
|
-
protocolVersion: number;
|
|
823
|
-
title: string;
|
|
824
|
-
projectId?: string | undefined;
|
|
825
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
826
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
827
|
-
token?: string | undefined;
|
|
828
|
-
commands?: string[] | undefined;
|
|
829
|
-
contractParts?: {
|
|
830
|
-
events: string[];
|
|
831
|
-
commands: string[];
|
|
832
|
-
actions: string[];
|
|
833
|
-
} | undefined;
|
|
834
|
-
hasCapabilities?: boolean | undefined;
|
|
835
|
-
captureBodies?: boolean | undefined;
|
|
836
|
-
sourceMapping?: boolean | undefined;
|
|
837
|
-
sdkVersion?: string | undefined;
|
|
838
|
-
contract?: string | undefined;
|
|
839
|
-
redactKeys?: string[] | undefined;
|
|
840
|
-
}, {
|
|
841
|
-
kind: "hello";
|
|
842
|
-
url: string;
|
|
843
|
-
adapters: string[];
|
|
844
|
-
sessionId: string;
|
|
845
|
-
protocolVersion: number;
|
|
846
|
-
title: string;
|
|
847
|
-
projectId?: string | undefined;
|
|
848
|
-
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
849
|
-
channels?: ("signal" | "net" | "state" | "route" | "visual" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
850
|
-
token?: string | undefined;
|
|
851
|
-
commands?: string[] | undefined;
|
|
852
|
-
contractParts?: {
|
|
853
|
-
events: string[];
|
|
854
|
-
commands: string[];
|
|
855
|
-
actions: string[];
|
|
856
|
-
} | undefined;
|
|
857
|
-
hasCapabilities?: boolean | undefined;
|
|
858
|
-
captureBodies?: boolean | undefined;
|
|
859
|
-
sourceMapping?: boolean | undefined;
|
|
860
|
-
sdkVersion?: string | undefined;
|
|
861
|
-
contract?: string | undefined;
|
|
862
|
-
redactKeys?: string[] | undefined;
|
|
863
|
-
}>, z.ZodObject<{
|
|
354
|
+
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
864
356
|
kind: z.ZodLiteral<"command">;
|
|
865
357
|
id: z.ZodString;
|
|
866
358
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
867
359
|
name: z.ZodString;
|
|
868
360
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
869
|
-
|
|
870
|
-
by: z.ZodOptional<z.ZodNativeEnum<{
|
|
361
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
871
362
|
readonly HARNESS: "harness";
|
|
872
363
|
}>>;
|
|
873
|
-
/**
|
|
874
|
-
* Set on a Harness command a model chose: the outward actions (`OutwardAction`) its journey asks
|
|
875
|
-
* for. The page presses no other outward control. Absent: not gated (an agent, a saved flow).
|
|
876
|
-
*/
|
|
877
364
|
outward: z.ZodOptional<z.ZodObject<{
|
|
878
|
-
allowed: z.ZodArray<z.
|
|
365
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
879
366
|
readonly INVITE: "invite";
|
|
880
367
|
readonly SEND: "send";
|
|
881
368
|
readonly SHARE: "share";
|
|
@@ -888,55 +375,19 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
888
375
|
readonly CHANGE_ROLE: "change role";
|
|
889
376
|
readonly CREATE_KEY: "create key";
|
|
890
377
|
readonly CHANGE_STATE: "change state";
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
|
|
894
|
-
}, {
|
|
895
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
896
|
-
}>>;
|
|
897
|
-
}, "strip", z.ZodTypeAny, {
|
|
898
|
-
kind: "command";
|
|
899
|
-
name: string;
|
|
900
|
-
id: string;
|
|
901
|
-
args: Record<string, unknown>;
|
|
902
|
-
by?: "harness" | undefined;
|
|
903
|
-
sessionId?: string | undefined;
|
|
904
|
-
outward?: {
|
|
905
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
906
|
-
} | undefined;
|
|
907
|
-
}, {
|
|
908
|
-
kind: "command";
|
|
909
|
-
name: string;
|
|
910
|
-
id: string;
|
|
911
|
-
by?: "harness" | undefined;
|
|
912
|
-
args?: Record<string, unknown> | undefined;
|
|
913
|
-
sessionId?: string | undefined;
|
|
914
|
-
outward?: {
|
|
915
|
-
allowed: ("invite" | "send" | "share" | "delete" | "pay" | "publish" | "revoke" | "transfer" | "sign out" | "change role" | "create key" | "change state")[];
|
|
916
|
-
} | undefined;
|
|
917
|
-
}>, z.ZodObject<{
|
|
378
|
+
}>>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
918
381
|
kind: z.ZodLiteral<"command_result">;
|
|
919
382
|
id: z.ZodString;
|
|
920
383
|
ok: z.ZodBoolean;
|
|
921
384
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
922
385
|
error: z.ZodOptional<z.ZodString>;
|
|
923
|
-
},
|
|
924
|
-
kind: "command_result";
|
|
925
|
-
ok: boolean;
|
|
926
|
-
id: string;
|
|
927
|
-
error?: string | undefined;
|
|
928
|
-
result?: unknown;
|
|
929
|
-
}, {
|
|
930
|
-
kind: "command_result";
|
|
931
|
-
ok: boolean;
|
|
932
|
-
id: string;
|
|
933
|
-
error?: string | undefined;
|
|
934
|
-
result?: unknown;
|
|
935
|
-
}>, z.ZodObject<{
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
936
387
|
kind: z.ZodLiteral<"event">;
|
|
937
388
|
event: z.ZodObject<{
|
|
938
389
|
t: z.ZodNumber;
|
|
939
|
-
type: z.
|
|
390
|
+
type: z.ZodEnum<{
|
|
940
391
|
readonly DOM_ADDED: "dom.added";
|
|
941
392
|
readonly DOM_REMOVED: "dom.removed";
|
|
942
393
|
readonly DOM_ATTR: "dom.attr";
|
|
@@ -972,97 +423,23 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
972
423
|
readonly BLIND_SPOT: "blind-spot";
|
|
973
424
|
readonly SDK_FAILED: "sdk.failed";
|
|
974
425
|
readonly NET_DETAIL: "net.detail";
|
|
426
|
+
readonly NET_RESPONSE_BODY: "net.response-body";
|
|
975
427
|
readonly HUMAN_CONTROL: "human.control";
|
|
976
428
|
readonly HUMAN_MARK: "human.mark";
|
|
977
429
|
readonly DOWNLOAD: "download";
|
|
978
430
|
readonly HUD_USED: "hud.used";
|
|
431
|
+
readonly MEDIA_STATE: "media.state";
|
|
432
|
+
readonly CANVAS_DIGEST: "canvas.digest";
|
|
979
433
|
}>;
|
|
980
434
|
sessionId: z.ZodString;
|
|
981
|
-
/** Stable element reference this event concerns, when applicable (e.g. "e7"). */
|
|
982
435
|
ref: z.ZodOptional<z.ZodString>;
|
|
983
|
-
/**
|
|
984
|
-
* Monotonic per-session sequence number stamped by the SDK. Gives events a total order independent
|
|
985
|
-
* of `t` (which can tie at millisecond resolution). Optional for back-compat with pre-2.2 SDKs.
|
|
986
|
-
*/
|
|
987
436
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
988
|
-
/**
|
|
989
|
-
* The action this event is attributed to, when one was active at observation time. Set together with
|
|
990
|
-
* `attribution` (the tier of that link). Optional: ambient events observed outside any action window
|
|
991
|
-
* carry neither.
|
|
992
|
-
*/
|
|
993
437
|
actionId: z.ZodOptional<z.ZodString>;
|
|
994
|
-
|
|
995
|
-
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
438
|
+
attribution: z.ZodOptional<z.ZodEnum<{
|
|
996
439
|
readonly WINDOW: "window";
|
|
997
440
|
}>>;
|
|
998
|
-
/**
|
|
999
|
-
* The document this was observed under. Minted once per real document; a full navigation replaces
|
|
1000
|
-
* both. Lets evidence from a superseded document be excluded rather than counted against an action
|
|
1001
|
-
* taken now. Optional for back-compat with SDKs that predate it, which is why absence is read as
|
|
1002
|
-
* "current" rather than "foreign" — see `isSameDocument`.
|
|
1003
|
-
*/
|
|
1004
441
|
documentId: z.ZodOptional<z.ZodString>;
|
|
1005
|
-
/**
|
|
1006
|
-
* The round of source edits this was observed under — a counter the SDK advances once per applied
|
|
1007
|
-
* hot update. A hot update replaces modules and re-renders INSIDE the same document, so
|
|
1008
|
-
* `documentId` cannot see it; this is the edit-shaped half of the same question.
|
|
1009
|
-
*
|
|
1010
|
-
* Optional, and absent while nothing has hot-updated, which is why absence is read as "current"
|
|
1011
|
-
* rather than "foreign" — see `isSameEditEpoch`. Most pages have no channel that could report an
|
|
1012
|
-
* update at all, so a stamp of `NO_EDITS_OBSERVED` would be wire spent on the word "unknown".
|
|
1013
|
-
*/
|
|
1014
442
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
1015
|
-
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
1016
443
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1017
|
-
},
|
|
1018
|
-
|
|
1019
|
-
data: Record<string, unknown>;
|
|
1020
|
-
t: number;
|
|
1021
|
-
sessionId: string;
|
|
1022
|
-
seq?: number | undefined;
|
|
1023
|
-
actionId?: string | undefined;
|
|
1024
|
-
editEpoch?: number | undefined;
|
|
1025
|
-
ref?: string | undefined;
|
|
1026
|
-
attribution?: "window" | undefined;
|
|
1027
|
-
documentId?: string | undefined;
|
|
1028
|
-
}, {
|
|
1029
|
-
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";
|
|
1030
|
-
t: number;
|
|
1031
|
-
sessionId: string;
|
|
1032
|
-
seq?: number | undefined;
|
|
1033
|
-
actionId?: string | undefined;
|
|
1034
|
-
editEpoch?: number | undefined;
|
|
1035
|
-
data?: Record<string, unknown> | undefined;
|
|
1036
|
-
ref?: string | undefined;
|
|
1037
|
-
attribution?: "window" | undefined;
|
|
1038
|
-
documentId?: string | undefined;
|
|
1039
|
-
}>;
|
|
1040
|
-
}, "strip", z.ZodTypeAny, {
|
|
1041
|
-
kind: "event";
|
|
1042
|
-
event: {
|
|
1043
|
-
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";
|
|
1044
|
-
data: Record<string, unknown>;
|
|
1045
|
-
t: number;
|
|
1046
|
-
sessionId: string;
|
|
1047
|
-
seq?: number | undefined;
|
|
1048
|
-
actionId?: string | undefined;
|
|
1049
|
-
editEpoch?: number | undefined;
|
|
1050
|
-
ref?: string | undefined;
|
|
1051
|
-
attribution?: "window" | undefined;
|
|
1052
|
-
documentId?: string | undefined;
|
|
1053
|
-
};
|
|
1054
|
-
}, {
|
|
1055
|
-
kind: "event";
|
|
1056
|
-
event: {
|
|
1057
|
-
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";
|
|
1058
|
-
t: number;
|
|
1059
|
-
sessionId: string;
|
|
1060
|
-
seq?: number | undefined;
|
|
1061
|
-
actionId?: string | undefined;
|
|
1062
|
-
editEpoch?: number | undefined;
|
|
1063
|
-
data?: Record<string, unknown> | undefined;
|
|
1064
|
-
ref?: string | undefined;
|
|
1065
|
-
attribution?: "window" | undefined;
|
|
1066
|
-
documentId?: string | undefined;
|
|
1067
|
-
};
|
|
1068
|
-
}>]>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
}, z.core.$strip>], "kind">;
|