@reticlehq/core 2.13.1 → 3.1.0
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/artifacts-entry.d.ts +20 -0
- package/dist/artifacts/artifacts-entry.js +20 -0
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +97 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +103 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +7 -3
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +27 -4
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +122 -54
- package/dist/{impact.js → artifacts/impact.js} +30 -0
- package/dist/{journal.d.ts → artifacts/journal.d.ts} +50 -6
- package/dist/{journal.js → artifacts/journal.js} +38 -2
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +69 -42
- package/dist/index.js +78 -44
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +4 -5
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-message.json +1 -0
- package/dist/schema/event-payloads.json +791 -0
- package/dist/schema/event-type.json +1 -0
- package/dist/schema/hello-message.json +76 -2
- package/dist/schema/reticle-event.json +1 -0
- package/dist/schema/reticle-message.json +77 -2
- package/dist/telemetry-entry.d.ts +15 -0
- package/dist/telemetry-entry.js +15 -0
- package/dist/telemetry-feedback.d.ts +13 -14
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +49 -57
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +229 -198
- package/dist/telemetry.js +83 -98
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +35 -11
- package/dist/{consequence.js → verdict/consequence.js} +9 -22
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +149 -41
- package/dist/{findings.js → verdict/findings.js} +169 -48
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +22 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +23 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +41 -52
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +369 -93
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +36 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +36 -13
- package/dist/verdict/verify-progress.d.ts +129 -0
- package/dist/verdict/verify-progress.js +74 -0
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +124 -28
- package/dist/{constants.js → wire/constants/constants.js} +137 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +229 -17
- package/dist/{event-payloads.js → wire/event-payloads.js} +61 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/wire/global-press.d.ts +30 -0
- package/dist/wire/global-press.js +54 -0
- package/dist/{messages.d.ts → wire/messages.d.ts} +290 -38
- package/dist/{messages.js → wire/messages.js} +93 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +49 -10
- package/dist/{net.js → wire/net.js} +49 -10
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +30 -0
- package/dist/wire/redaction.js +274 -0
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +106 -66
- package/dist/{types.js → wire/types.js} +24 -4
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +24 -12
- package/dist/{notices.js → words/notices.js} +27 -12
- package/package.json +22 -5
- package/dist/flow-types.d.ts +0 -1473
- package/dist/flow-types.js +0 -195
- package/dist/redaction.js +0 -149
- /package/dist/{brand.js → identity/brand.js} +0 -0
- /package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- /package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- /package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- /package/dist/{project-id.js → identity/project-id.js} +0 -0
- /package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- /package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- /package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- /package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- /package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- /package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- /package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- /package/dist/{state-select.js → wire/state-select.js} +0 -0
- /package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- /package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- /package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- /package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- /package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- /package/dist/{upgrade.d.ts → words/upgrade.d.ts} +0 -0
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
|
@@ -10,13 +10,14 @@ export declare const HumanControlDataSchema: z.ZodObject<{
|
|
|
10
10
|
readonly END: "end";
|
|
11
11
|
readonly MESSAGE: "message";
|
|
12
12
|
readonly REPLAY: "replay";
|
|
13
|
+
readonly SYNC: "sync";
|
|
13
14
|
}>;
|
|
14
15
|
text: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
kind: "pause" | "resume" | "end" | "
|
|
17
|
+
kind: "message" | "pause" | "resume" | "end" | "replay" | "sync";
|
|
17
18
|
text?: string | undefined;
|
|
18
19
|
}, {
|
|
19
|
-
kind: "pause" | "resume" | "end" | "
|
|
20
|
+
kind: "message" | "pause" | "resume" | "end" | "replay" | "sync";
|
|
20
21
|
text?: string | undefined;
|
|
21
22
|
}>;
|
|
22
23
|
export type HumanControlData = z.infer<typeof HumanControlDataSchema>;
|
|
@@ -55,25 +56,25 @@ export declare const HumanMarkDataSchema: z.ZodObject<{
|
|
|
55
56
|
/** Route/URL the mark was made on, so the agent can reproduce the context. */
|
|
56
57
|
route: z.ZodOptional<z.ZodString>;
|
|
57
58
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
note: string;
|
|
59
59
|
anchor: string;
|
|
60
|
-
|
|
60
|
+
note: string;
|
|
61
|
+
strategy: "role" | "testid" | "component" | "position";
|
|
61
62
|
label?: string | undefined;
|
|
63
|
+
route?: string | undefined;
|
|
62
64
|
source?: {
|
|
63
65
|
file: string;
|
|
64
66
|
line: number;
|
|
65
67
|
} | undefined;
|
|
66
|
-
route?: string | undefined;
|
|
67
68
|
}, {
|
|
68
|
-
note: string;
|
|
69
69
|
anchor: string;
|
|
70
|
-
|
|
70
|
+
note: string;
|
|
71
|
+
strategy: "role" | "testid" | "component" | "position";
|
|
71
72
|
label?: string | undefined;
|
|
73
|
+
route?: string | undefined;
|
|
72
74
|
source?: {
|
|
73
75
|
file: string;
|
|
74
76
|
line: number;
|
|
75
77
|
} | undefined;
|
|
76
|
-
route?: string | undefined;
|
|
77
78
|
}>;
|
|
78
79
|
export type HumanMarkData = z.infer<typeof HumanMarkDataSchema>;
|
|
79
80
|
/**
|
|
@@ -109,6 +110,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
|
|
|
109
110
|
readonly STORAGE_CHANGE: "storage.change";
|
|
110
111
|
readonly PAGE_HEALTH: "page.health";
|
|
111
112
|
readonly CONTEXT_OPENED: "context.opened";
|
|
113
|
+
readonly DIALOG_OPENED: "dialog.opened";
|
|
112
114
|
readonly RENDER_COMMIT: "render.commit";
|
|
113
115
|
readonly FOCUS_CHANGE: "focus.change";
|
|
114
116
|
readonly FLOW_RECORDED: "flow.recorded";
|
|
@@ -159,7 +161,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
|
|
|
159
161
|
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
160
162
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
161
163
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "
|
|
164
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
163
165
|
t: number;
|
|
164
166
|
sessionId: string;
|
|
165
167
|
data: Record<string, unknown>;
|
|
@@ -170,7 +172,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
|
|
|
170
172
|
documentId?: string | undefined;
|
|
171
173
|
editEpoch?: number | undefined;
|
|
172
174
|
}, {
|
|
173
|
-
type: "
|
|
175
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
174
176
|
t: number;
|
|
175
177
|
sessionId: string;
|
|
176
178
|
ref?: string | undefined;
|
|
@@ -185,7 +187,16 @@ export type ReticleEvent = z.infer<typeof ReticleEventSchema>;
|
|
|
185
187
|
/** Browser announces itself to the bridge on connect. */
|
|
186
188
|
export declare const HelloMessageSchema: z.ZodObject<{
|
|
187
189
|
kind: z.ZodLiteral<"hello">;
|
|
188
|
-
|
|
190
|
+
/**
|
|
191
|
+
* The wire protocol this peer speaks.
|
|
192
|
+
*
|
|
193
|
+
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
194
|
+
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
195
|
+
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
196
|
+
*
|
|
197
|
+
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
198
|
+
*/
|
|
199
|
+
protocolVersion: z.ZodNumber;
|
|
189
200
|
sessionId: z.ZodString;
|
|
190
201
|
url: z.ZodString;
|
|
191
202
|
title: z.ZodString;
|
|
@@ -199,8 +210,103 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
199
210
|
adapters: z.ZodArray<z.ZodString, "many">;
|
|
200
211
|
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
201
212
|
token: z.ZodOptional<z.ZodString>;
|
|
213
|
+
/**
|
|
214
|
+
* What kind of surface this is: a browser document, a web page in somebody else's window, a
|
|
215
|
+
* native view tree, or no rendering surface at all. See platform.ts.
|
|
216
|
+
*
|
|
217
|
+
* ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
|
|
218
|
+
* browser document, so absence is not a gap -- it is the answer those connections would have
|
|
219
|
+
* given. This is the same convention five other fields on this message already use.
|
|
220
|
+
*
|
|
221
|
+
* It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
|
|
222
|
+
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
223
|
+
* which product you are.
|
|
224
|
+
*/
|
|
225
|
+
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
226
|
+
readonly WEB: "web";
|
|
227
|
+
readonly WEBVIEW: "webview";
|
|
228
|
+
readonly NATIVE: "native";
|
|
229
|
+
readonly SERVICE: "service";
|
|
230
|
+
}>>;
|
|
231
|
+
/**
|
|
232
|
+
* The channels this build can actually observe. See channel.ts.
|
|
233
|
+
*
|
|
234
|
+
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
235
|
+
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
236
|
+
* makes. Same convention as every other optional field on this message.
|
|
237
|
+
*
|
|
238
|
+
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
239
|
+
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
240
|
+
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
241
|
+
*/
|
|
242
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
243
|
+
readonly UI: "ui";
|
|
244
|
+
readonly NET: "net";
|
|
245
|
+
readonly STATE: "state";
|
|
246
|
+
readonly SIGNAL: "signal";
|
|
247
|
+
readonly LOG: "log";
|
|
248
|
+
readonly ROUTE: "route";
|
|
249
|
+
readonly STORAGE: "storage";
|
|
250
|
+
readonly TIME: "time";
|
|
251
|
+
readonly VISUAL: "visual";
|
|
252
|
+
}>, "many">>;
|
|
253
|
+
/**
|
|
254
|
+
* The commands this build can serve.
|
|
255
|
+
*
|
|
256
|
+
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
257
|
+
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
258
|
+
*/
|
|
259
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
260
|
+
/**
|
|
261
|
+
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
262
|
+
*
|
|
263
|
+
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
264
|
+
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
265
|
+
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
266
|
+
* reported as skewed on every call forever.
|
|
267
|
+
*
|
|
268
|
+
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
269
|
+
*/
|
|
270
|
+
contractParts: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
commands: z.ZodArray<z.ZodString, "many">;
|
|
272
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
273
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
events: string[];
|
|
276
|
+
commands: string[];
|
|
277
|
+
actions: string[];
|
|
278
|
+
}, {
|
|
279
|
+
events: string[];
|
|
280
|
+
commands: string[];
|
|
281
|
+
actions: string[];
|
|
282
|
+
}>>;
|
|
202
283
|
/** Whether the app has advertised a capability registry (reticle.describe). */
|
|
203
284
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
/**
|
|
286
|
+
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
287
|
+
*
|
|
288
|
+
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
289
|
+
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
290
|
+
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
291
|
+
* and on a drive that mutates state the action is not always repeatable.
|
|
292
|
+
*
|
|
293
|
+
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
294
|
+
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
295
|
+
*/
|
|
296
|
+
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
/**
|
|
298
|
+
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
299
|
+
*
|
|
300
|
+
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
301
|
+
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
302
|
+
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
303
|
+
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
304
|
+
* it already had.
|
|
305
|
+
*
|
|
306
|
+
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
307
|
+
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
308
|
+
*/
|
|
309
|
+
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
204
310
|
/**
|
|
205
311
|
* The version of the SDK in the page, so a version-skewed pair can SAY so.
|
|
206
312
|
*
|
|
@@ -233,27 +339,47 @@ export declare const HelloMessageSchema: z.ZodObject<{
|
|
|
233
339
|
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
234
340
|
}, "strip", z.ZodTypeAny, {
|
|
235
341
|
kind: "hello";
|
|
236
|
-
sessionId: string;
|
|
237
|
-
protocolVersion: 1;
|
|
238
342
|
url: string;
|
|
343
|
+
sessionId: string;
|
|
344
|
+
protocolVersion: number;
|
|
239
345
|
title: string;
|
|
240
346
|
adapters: string[];
|
|
241
347
|
projectId?: string | undefined;
|
|
242
348
|
token?: string | undefined;
|
|
349
|
+
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
350
|
+
channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
351
|
+
commands?: string[] | undefined;
|
|
352
|
+
contractParts?: {
|
|
353
|
+
events: string[];
|
|
354
|
+
commands: string[];
|
|
355
|
+
actions: string[];
|
|
356
|
+
} | undefined;
|
|
243
357
|
hasCapabilities?: boolean | undefined;
|
|
358
|
+
captureBodies?: boolean | undefined;
|
|
359
|
+
sourceMapping?: boolean | undefined;
|
|
244
360
|
sdkVersion?: string | undefined;
|
|
245
361
|
contract?: string | undefined;
|
|
246
362
|
redactKeys?: string[] | undefined;
|
|
247
363
|
}, {
|
|
248
364
|
kind: "hello";
|
|
249
|
-
sessionId: string;
|
|
250
|
-
protocolVersion: 1;
|
|
251
365
|
url: string;
|
|
366
|
+
sessionId: string;
|
|
367
|
+
protocolVersion: number;
|
|
252
368
|
title: string;
|
|
253
369
|
adapters: string[];
|
|
254
370
|
projectId?: string | undefined;
|
|
255
371
|
token?: string | undefined;
|
|
372
|
+
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
373
|
+
channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
374
|
+
commands?: string[] | undefined;
|
|
375
|
+
contractParts?: {
|
|
376
|
+
events: string[];
|
|
377
|
+
commands: string[];
|
|
378
|
+
actions: string[];
|
|
379
|
+
} | undefined;
|
|
256
380
|
hasCapabilities?: boolean | undefined;
|
|
381
|
+
captureBodies?: boolean | undefined;
|
|
382
|
+
sourceMapping?: boolean | undefined;
|
|
257
383
|
sdkVersion?: string | undefined;
|
|
258
384
|
contract?: string | undefined;
|
|
259
385
|
redactKeys?: string[] | undefined;
|
|
@@ -267,17 +393,17 @@ export declare const CommandMessageSchema: z.ZodObject<{
|
|
|
267
393
|
name: z.ZodString;
|
|
268
394
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
269
395
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
kind: "command";
|
|
271
396
|
id: string;
|
|
397
|
+
kind: "command";
|
|
272
398
|
name: string;
|
|
273
399
|
args: Record<string, unknown>;
|
|
274
400
|
sessionId?: string | undefined;
|
|
275
401
|
}, {
|
|
276
|
-
kind: "command";
|
|
277
402
|
id: string;
|
|
403
|
+
kind: "command";
|
|
278
404
|
name: string;
|
|
279
|
-
sessionId?: string | undefined;
|
|
280
405
|
args?: Record<string, unknown> | undefined;
|
|
406
|
+
sessionId?: string | undefined;
|
|
281
407
|
}>;
|
|
282
408
|
export type CommandMessage = z.infer<typeof CommandMessageSchema>;
|
|
283
409
|
/** Browser -> agent reply to a command. */
|
|
@@ -288,15 +414,15 @@ export declare const CommandResultSchema: z.ZodObject<{
|
|
|
288
414
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
289
415
|
error: z.ZodOptional<z.ZodString>;
|
|
290
416
|
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
id: string;
|
|
291
418
|
ok: boolean;
|
|
292
419
|
kind: "command_result";
|
|
293
|
-
id: string;
|
|
294
420
|
error?: string | undefined;
|
|
295
421
|
result?: unknown;
|
|
296
422
|
}, {
|
|
423
|
+
id: string;
|
|
297
424
|
ok: boolean;
|
|
298
425
|
kind: "command_result";
|
|
299
|
-
id: string;
|
|
300
426
|
error?: string | undefined;
|
|
301
427
|
result?: unknown;
|
|
302
428
|
}>;
|
|
@@ -332,6 +458,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
332
458
|
readonly STORAGE_CHANGE: "storage.change";
|
|
333
459
|
readonly PAGE_HEALTH: "page.health";
|
|
334
460
|
readonly CONTEXT_OPENED: "context.opened";
|
|
461
|
+
readonly DIALOG_OPENED: "dialog.opened";
|
|
335
462
|
readonly RENDER_COMMIT: "render.commit";
|
|
336
463
|
readonly FOCUS_CHANGE: "focus.change";
|
|
337
464
|
readonly FLOW_RECORDED: "flow.recorded";
|
|
@@ -382,7 +509,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
382
509
|
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
383
510
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
384
511
|
}, "strip", z.ZodTypeAny, {
|
|
385
|
-
type: "
|
|
512
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
386
513
|
t: number;
|
|
387
514
|
sessionId: string;
|
|
388
515
|
data: Record<string, unknown>;
|
|
@@ -393,7 +520,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
393
520
|
documentId?: string | undefined;
|
|
394
521
|
editEpoch?: number | undefined;
|
|
395
522
|
}, {
|
|
396
|
-
type: "
|
|
523
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
397
524
|
t: number;
|
|
398
525
|
sessionId: string;
|
|
399
526
|
ref?: string | undefined;
|
|
@@ -406,7 +533,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
406
533
|
}>;
|
|
407
534
|
}, "strip", z.ZodTypeAny, {
|
|
408
535
|
event: {
|
|
409
|
-
type: "
|
|
536
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
410
537
|
t: number;
|
|
411
538
|
sessionId: string;
|
|
412
539
|
data: Record<string, unknown>;
|
|
@@ -420,7 +547,7 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
420
547
|
kind: "event";
|
|
421
548
|
}, {
|
|
422
549
|
event: {
|
|
423
|
-
type: "
|
|
550
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
424
551
|
t: number;
|
|
425
552
|
sessionId: string;
|
|
426
553
|
ref?: string | undefined;
|
|
@@ -436,7 +563,16 @@ export declare const EventMessageSchema: z.ZodObject<{
|
|
|
436
563
|
export type EventMessage = z.infer<typeof EventMessageSchema>;
|
|
437
564
|
export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
438
565
|
kind: z.ZodLiteral<"hello">;
|
|
439
|
-
|
|
566
|
+
/**
|
|
567
|
+
* The wire protocol this peer speaks.
|
|
568
|
+
*
|
|
569
|
+
* A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
|
|
570
|
+
* as soon as anything else implements this: a peer one version behind is not incompatible, it is
|
|
571
|
+
* behind. The bridge accepts anything from the oldest version it still talks to up to its own.
|
|
572
|
+
*
|
|
573
|
+
* Out of range is still a hard door, with the diagnostics that already name which side is stale.
|
|
574
|
+
*/
|
|
575
|
+
protocolVersion: z.ZodNumber;
|
|
440
576
|
sessionId: z.ZodString;
|
|
441
577
|
url: z.ZodString;
|
|
442
578
|
title: z.ZodString;
|
|
@@ -450,8 +586,103 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
450
586
|
adapters: z.ZodArray<z.ZodString, "many">;
|
|
451
587
|
/** Optional browser/bridge pairing token. Required when the bridge configures one. */
|
|
452
588
|
token: z.ZodOptional<z.ZodString>;
|
|
589
|
+
/**
|
|
590
|
+
* What kind of surface this is: a browser document, a web page in somebody else's window, a
|
|
591
|
+
* native view tree, or no rendering surface at all. See platform.ts.
|
|
592
|
+
*
|
|
593
|
+
* ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
|
|
594
|
+
* browser document, so absence is not a gap -- it is the answer those connections would have
|
|
595
|
+
* given. This is the same convention five other fields on this message already use.
|
|
596
|
+
*
|
|
597
|
+
* It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
|
|
598
|
+
* verification wants the surface: the question being asked is what can be demanded of you, not
|
|
599
|
+
* which product you are.
|
|
600
|
+
*/
|
|
601
|
+
platform: z.ZodOptional<z.ZodNativeEnum<{
|
|
602
|
+
readonly WEB: "web";
|
|
603
|
+
readonly WEBVIEW: "webview";
|
|
604
|
+
readonly NATIVE: "native";
|
|
605
|
+
readonly SERVICE: "service";
|
|
606
|
+
}>>;
|
|
607
|
+
/**
|
|
608
|
+
* The channels this build can actually observe. See channel.ts.
|
|
609
|
+
*
|
|
610
|
+
* ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
|
|
611
|
+
* whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
|
|
612
|
+
* makes. Same convention as every other optional field on this message.
|
|
613
|
+
*
|
|
614
|
+
* A closed list rather than free strings, because the rule that refuses a claim reading an
|
|
615
|
+
* undeclared channel has to switch on these. Commands below are free strings for the opposite
|
|
616
|
+
* reason: nothing switches on them, and command names are already opaque on this wire.
|
|
617
|
+
*/
|
|
618
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
619
|
+
readonly UI: "ui";
|
|
620
|
+
readonly NET: "net";
|
|
621
|
+
readonly STATE: "state";
|
|
622
|
+
readonly SIGNAL: "signal";
|
|
623
|
+
readonly LOG: "log";
|
|
624
|
+
readonly ROUTE: "route";
|
|
625
|
+
readonly STORAGE: "storage";
|
|
626
|
+
readonly TIME: "time";
|
|
627
|
+
readonly VISUAL: "visual";
|
|
628
|
+
}>, "many">>;
|
|
629
|
+
/**
|
|
630
|
+
* The commands this build can serve.
|
|
631
|
+
*
|
|
632
|
+
* Absent means "assume the usual set". Present and missing a name means asking for it is a
|
|
633
|
+
* mistake somebody can be told about before they spend an action on it, rather than after.
|
|
634
|
+
*/
|
|
635
|
+
commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
636
|
+
/**
|
|
637
|
+
* The wire names this peer actually speaks, so compatibility can be judged name by name.
|
|
638
|
+
*
|
|
639
|
+
* The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
|
|
640
|
+
* and nothing else. An implementation that speaks part of the contract -- which is the right thing
|
|
641
|
+
* for anything that is not a browser to do -- can never produce a matching hash, and was therefore
|
|
642
|
+
* reported as skewed on every call forever.
|
|
643
|
+
*
|
|
644
|
+
* Absent means "compare the fingerprint", which is what a build predating this field does.
|
|
645
|
+
*/
|
|
646
|
+
contractParts: z.ZodOptional<z.ZodObject<{
|
|
647
|
+
commands: z.ZodArray<z.ZodString, "many">;
|
|
648
|
+
events: z.ZodArray<z.ZodString, "many">;
|
|
649
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
events: string[];
|
|
652
|
+
commands: string[];
|
|
653
|
+
actions: string[];
|
|
654
|
+
}, {
|
|
655
|
+
events: string[];
|
|
656
|
+
commands: string[];
|
|
657
|
+
actions: string[];
|
|
658
|
+
}>>;
|
|
453
659
|
/** Whether the app has advertised a capability registry (reticle.describe). */
|
|
454
660
|
hasCapabilities: z.ZodOptional<z.ZodBoolean>;
|
|
661
|
+
/**
|
|
662
|
+
* Whether this page records request/response bodies (`connect({ captureNetworkBodies: true })`).
|
|
663
|
+
*
|
|
664
|
+
* Announced so an assertion that can only be answered from a body is refused BEFORE the action is
|
|
665
|
+
* spent, rather than after. Reported from the field: an `act_and_wait` matched the right call and
|
|
666
|
+
* came back `verified: "no"` with "a matching call with no recorded body" — knowable in advance,
|
|
667
|
+
* and on a drive that mutates state the action is not always repeatable.
|
|
668
|
+
*
|
|
669
|
+
* ABSENT means unknown, never false. An SDK predating this field says nothing, and treating
|
|
670
|
+
* silence as "off" would refuse a clause every one of those sessions can satisfy.
|
|
671
|
+
*/
|
|
672
|
+
captureBodies: z.ZodOptional<z.ZodBoolean>;
|
|
673
|
+
/**
|
|
674
|
+
* Whether the build plugin's `data-reticle-source` stamp is switched OFF for this project.
|
|
675
|
+
*
|
|
676
|
+
* Announced for the same reason `captureBodies` is, and read by the same kind of rule: a verdict
|
|
677
|
+
* that cannot name a file and line needs to know WHY before it prescribes a fix. Without it, an
|
|
678
|
+
* app that disabled the stamp deliberately — which react-three-fiber apps must, and which `reticle
|
|
679
|
+
* init` now does for them automatically — was told on every red verdict to install a build plugin
|
|
680
|
+
* it already had.
|
|
681
|
+
*
|
|
682
|
+
* ABSENT means unknown, never false. An older SDK says nothing, and reading silence as "off"
|
|
683
|
+
* would suppress the honest gap for every app that simply has no source mapping at all.
|
|
684
|
+
*/
|
|
685
|
+
sourceMapping: z.ZodOptional<z.ZodBoolean>;
|
|
455
686
|
/**
|
|
456
687
|
* The version of the SDK in the page, so a version-skewed pair can SAY so.
|
|
457
688
|
*
|
|
@@ -484,27 +715,47 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
484
715
|
redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
716
|
}, "strip", z.ZodTypeAny, {
|
|
486
717
|
kind: "hello";
|
|
487
|
-
sessionId: string;
|
|
488
|
-
protocolVersion: 1;
|
|
489
718
|
url: string;
|
|
719
|
+
sessionId: string;
|
|
720
|
+
protocolVersion: number;
|
|
490
721
|
title: string;
|
|
491
722
|
adapters: string[];
|
|
492
723
|
projectId?: string | undefined;
|
|
493
724
|
token?: string | undefined;
|
|
725
|
+
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
726
|
+
channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
727
|
+
commands?: string[] | undefined;
|
|
728
|
+
contractParts?: {
|
|
729
|
+
events: string[];
|
|
730
|
+
commands: string[];
|
|
731
|
+
actions: string[];
|
|
732
|
+
} | undefined;
|
|
494
733
|
hasCapabilities?: boolean | undefined;
|
|
734
|
+
captureBodies?: boolean | undefined;
|
|
735
|
+
sourceMapping?: boolean | undefined;
|
|
495
736
|
sdkVersion?: string | undefined;
|
|
496
737
|
contract?: string | undefined;
|
|
497
738
|
redactKeys?: string[] | undefined;
|
|
498
739
|
}, {
|
|
499
740
|
kind: "hello";
|
|
500
|
-
sessionId: string;
|
|
501
|
-
protocolVersion: 1;
|
|
502
741
|
url: string;
|
|
742
|
+
sessionId: string;
|
|
743
|
+
protocolVersion: number;
|
|
503
744
|
title: string;
|
|
504
745
|
adapters: string[];
|
|
505
746
|
projectId?: string | undefined;
|
|
506
747
|
token?: string | undefined;
|
|
748
|
+
platform?: "native" | "web" | "webview" | "service" | undefined;
|
|
749
|
+
channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
|
|
750
|
+
commands?: string[] | undefined;
|
|
751
|
+
contractParts?: {
|
|
752
|
+
events: string[];
|
|
753
|
+
commands: string[];
|
|
754
|
+
actions: string[];
|
|
755
|
+
} | undefined;
|
|
507
756
|
hasCapabilities?: boolean | undefined;
|
|
757
|
+
captureBodies?: boolean | undefined;
|
|
758
|
+
sourceMapping?: boolean | undefined;
|
|
508
759
|
sdkVersion?: string | undefined;
|
|
509
760
|
contract?: string | undefined;
|
|
510
761
|
redactKeys?: string[] | undefined;
|
|
@@ -515,17 +766,17 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
515
766
|
name: z.ZodString;
|
|
516
767
|
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
517
768
|
}, "strip", z.ZodTypeAny, {
|
|
518
|
-
kind: "command";
|
|
519
769
|
id: string;
|
|
770
|
+
kind: "command";
|
|
520
771
|
name: string;
|
|
521
772
|
args: Record<string, unknown>;
|
|
522
773
|
sessionId?: string | undefined;
|
|
523
774
|
}, {
|
|
524
|
-
kind: "command";
|
|
525
775
|
id: string;
|
|
776
|
+
kind: "command";
|
|
526
777
|
name: string;
|
|
527
|
-
sessionId?: string | undefined;
|
|
528
778
|
args?: Record<string, unknown> | undefined;
|
|
779
|
+
sessionId?: string | undefined;
|
|
529
780
|
}>, z.ZodObject<{
|
|
530
781
|
kind: z.ZodLiteral<"command_result">;
|
|
531
782
|
id: z.ZodString;
|
|
@@ -533,15 +784,15 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
533
784
|
result: z.ZodOptional<z.ZodUnknown>;
|
|
534
785
|
error: z.ZodOptional<z.ZodString>;
|
|
535
786
|
}, "strip", z.ZodTypeAny, {
|
|
787
|
+
id: string;
|
|
536
788
|
ok: boolean;
|
|
537
789
|
kind: "command_result";
|
|
538
|
-
id: string;
|
|
539
790
|
error?: string | undefined;
|
|
540
791
|
result?: unknown;
|
|
541
792
|
}, {
|
|
793
|
+
id: string;
|
|
542
794
|
ok: boolean;
|
|
543
795
|
kind: "command_result";
|
|
544
|
-
id: string;
|
|
545
796
|
error?: string | undefined;
|
|
546
797
|
result?: unknown;
|
|
547
798
|
}>, z.ZodObject<{
|
|
@@ -574,6 +825,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
574
825
|
readonly STORAGE_CHANGE: "storage.change";
|
|
575
826
|
readonly PAGE_HEALTH: "page.health";
|
|
576
827
|
readonly CONTEXT_OPENED: "context.opened";
|
|
828
|
+
readonly DIALOG_OPENED: "dialog.opened";
|
|
577
829
|
readonly RENDER_COMMIT: "render.commit";
|
|
578
830
|
readonly FOCUS_CHANGE: "focus.change";
|
|
579
831
|
readonly FLOW_RECORDED: "flow.recorded";
|
|
@@ -624,7 +876,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
624
876
|
/** Event-type-specific payload. Kept open here; refined per observer at the edges. */
|
|
625
877
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
626
878
|
}, "strip", z.ZodTypeAny, {
|
|
627
|
-
type: "
|
|
879
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
628
880
|
t: number;
|
|
629
881
|
sessionId: string;
|
|
630
882
|
data: Record<string, unknown>;
|
|
@@ -635,7 +887,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
635
887
|
documentId?: string | undefined;
|
|
636
888
|
editEpoch?: number | undefined;
|
|
637
889
|
}, {
|
|
638
|
-
type: "
|
|
890
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
639
891
|
t: number;
|
|
640
892
|
sessionId: string;
|
|
641
893
|
ref?: string | undefined;
|
|
@@ -648,7 +900,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
648
900
|
}>;
|
|
649
901
|
}, "strip", z.ZodTypeAny, {
|
|
650
902
|
event: {
|
|
651
|
-
type: "
|
|
903
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
652
904
|
t: number;
|
|
653
905
|
sessionId: string;
|
|
654
906
|
data: Record<string, unknown>;
|
|
@@ -662,7 +914,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
662
914
|
kind: "event";
|
|
663
915
|
}, {
|
|
664
916
|
event: {
|
|
665
|
-
type: "
|
|
917
|
+
type: "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" | "signal" | "state.change" | "storage.change" | "page.health" | "context.opened" | "dialog.opened" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
|
|
666
918
|
t: number;
|
|
667
919
|
sessionId: string;
|
|
668
920
|
ref?: string | undefined;
|