@reticlehq/core 2.14.0 → 3.2.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.
Files changed (148) hide show
  1. package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
  2. package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
  3. package/dist/artifacts/flow-composition.d.ts +30 -0
  4. package/dist/artifacts/flow-composition.js +19 -0
  5. package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +99 -3
  6. package/dist/{flow-constants.js → artifacts/flow-constants.js} +108 -4
  7. package/dist/artifacts/flow-mutation-target.d.ts +39 -0
  8. package/dist/artifacts/flow-mutation-target.js +89 -0
  9. package/dist/artifacts/flow-order.d.ts +30 -0
  10. package/dist/artifacts/flow-order.js +49 -0
  11. package/dist/artifacts/flow-select.d.ts +56 -0
  12. package/dist/artifacts/flow-select.js +56 -0
  13. package/dist/artifacts/flow-step-tool.d.ts +31 -0
  14. package/dist/artifacts/flow-step-tool.js +31 -0
  15. package/dist/artifacts/flow-types.d.ts +3736 -0
  16. package/dist/artifacts/flow-types.js +463 -0
  17. package/dist/artifacts/flow-unreached.d.ts +12 -0
  18. package/dist/artifacts/flow-unreached.js +24 -0
  19. package/dist/{impact.d.ts → artifacts/impact.d.ts} +271 -103
  20. package/dist/{impact.js → artifacts/impact.js} +75 -5
  21. package/dist/artifacts/journal.d.ts +218 -0
  22. package/dist/artifacts/journal.js +130 -0
  23. package/dist/artifacts/step-effect.d.ts +29 -0
  24. package/dist/artifacts/step-effect.js +28 -0
  25. package/dist/hooks/hook-events.d.ts +311 -0
  26. package/dist/hooks/hook-events.js +127 -0
  27. package/dist/hooks/hooks-entry.d.ts +9 -0
  28. package/dist/hooks/hooks-entry.js +9 -0
  29. package/dist/identity/brand.d.ts +102 -0
  30. package/dist/{brand.js → identity/brand.js} +7 -0
  31. package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
  32. package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
  33. package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
  34. package/dist/{document-identity.js → identity/document-identity.js} +4 -5
  35. package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
  36. package/dist/{source-constants.js → identity/source-constants.js} +4 -4
  37. package/dist/index.d.ts +57 -43
  38. package/dist/index.js +66 -45
  39. package/dist/onboarding.d.ts +114 -0
  40. package/dist/onboarding.js +141 -0
  41. package/dist/realm/registry.d.ts +212 -0
  42. package/dist/realm/registry.js +302 -0
  43. package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
  44. package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
  45. package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
  46. package/dist/{project-registry.js → registry/project-registry.js} +5 -5
  47. package/dist/schema/command-name.json +31 -0
  48. package/dist/schema/event-payloads.json +795 -0
  49. package/dist/schema/hello-message.json +70 -2
  50. package/dist/schema/reticle-message.json +70 -2
  51. package/dist/telemetry-entry.d.ts +1 -1
  52. package/dist/telemetry-entry.js +1 -1
  53. package/dist/telemetry-feedback.d.ts +15 -16
  54. package/dist/telemetry-feedback.js +11 -12
  55. package/dist/telemetry-license.d.ts +1 -1
  56. package/dist/telemetry-license.js +1 -1
  57. package/dist/telemetry-refusal.d.ts +11 -11
  58. package/dist/telemetry-refusal.js +7 -8
  59. package/dist/telemetry-session.d.ts +51 -59
  60. package/dist/telemetry-session.js +47 -55
  61. package/dist/telemetry.d.ts +306 -222
  62. package/dist/telemetry.js +112 -99
  63. package/dist/tour-entry.d.ts +10 -0
  64. package/dist/tour-entry.js +10 -0
  65. package/dist/tour.d.ts +125 -0
  66. package/dist/tour.js +165 -0
  67. package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
  68. package/dist/{consequence.js → verdict/consequence.js} +9 -31
  69. package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
  70. package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
  71. package/dist/{findings.js → verdict/findings.js} +103 -49
  72. package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
  73. package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
  74. package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
  75. package/dist/{intent.js → verdict/intent.js} +11 -22
  76. package/dist/verdict/revision.d.ts +44 -0
  77. package/dist/verdict/revision.js +53 -0
  78. package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
  79. package/dist/{run-context.js → verdict/run-context.js} +15 -36
  80. package/dist/{security.js → verdict/security.js} +12 -21
  81. package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
  82. package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
  83. package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +34 -13
  84. package/dist/{verified-constants.js → verdict/verified-constants.js} +34 -13
  85. package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
  86. package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
  87. package/dist/wire/channel.d.ts +46 -0
  88. package/dist/wire/channel.js +95 -0
  89. package/dist/{constants.d.ts → wire/constants/constants.d.ts} +179 -28
  90. package/dist/{constants.js → wire/constants/constants.js} +199 -28
  91. package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +23 -2
  92. package/dist/{session-constants.js → wire/constants/session-constants.js} +23 -2
  93. package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
  94. package/dist/{event-classification.js → wire/event-classification.js} +1 -1
  95. package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +72 -13
  96. package/dist/{event-payloads.js → wire/event-payloads.js} +23 -3
  97. package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
  98. package/dist/{event-priority.js → wire/event-priority.js} +2 -5
  99. package/dist/{global-press.js → wire/global-press.js} +1 -1
  100. package/dist/{messages.d.ts → wire/messages.d.ts} +240 -48
  101. package/dist/{messages.js → wire/messages.js} +68 -5
  102. package/dist/wire/narrow.d.ts +39 -0
  103. package/dist/wire/narrow.js +45 -0
  104. package/dist/{net.d.ts → wire/net.d.ts} +36 -13
  105. package/dist/{net.js → wire/net.js} +36 -13
  106. package/dist/wire/platform.d.ts +37 -0
  107. package/dist/wire/platform.js +36 -0
  108. package/dist/{redaction.js → wire/redaction.js} +12 -12
  109. package/dist/wire/snapshot-tree.d.ts +33 -0
  110. package/dist/wire/snapshot-tree.js +43 -0
  111. package/dist/wire/tool-names.d.ts +133 -0
  112. package/dist/wire/tool-names.js +142 -0
  113. package/dist/{toon.js → wire/toon.js} +1 -1
  114. package/dist/{types.d.ts → wire/types.d.ts} +77 -76
  115. package/dist/{types.js → wire/types.js} +4 -3
  116. package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
  117. package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
  118. package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
  119. package/dist/{notices.js → words/notices.js} +8 -12
  120. package/package.json +16 -7
  121. package/dist/brand.d.ts +0 -49
  122. package/dist/flow-types.d.ts +0 -1711
  123. package/dist/flow-types.js +0 -247
  124. package/dist/journal.d.ts +0 -122
  125. package/dist/journal.js +0 -57
  126. package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
  127. package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
  128. package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
  129. package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
  130. package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
  131. package/dist/{project-id.js → identity/project-id.js} +0 -0
  132. package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
  133. package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
  134. package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
  135. package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
  136. package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
  137. package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
  138. package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
  139. package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
  140. package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
  141. package/dist/{state-select.js → wire/state-select.js} +0 -0
  142. package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
  143. package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
  144. package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
  145. package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
  146. package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
  147. package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
  148. /package/dist/{upgrade.js → words/upgrade.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { EventType, PerfMetric } from './constants.js';
3
- import { BlindSpotKind } from './verified-constants.js';
4
- import { BrowserBrand } from './telemetry-feedback.js';
2
+ import { EventType, PerfMetric } from './constants/constants.js';
3
+ import { BlindSpotKind } from '../verdict/verified-constants.js';
4
+ import { BrowserBrand } from '../telemetry-feedback.js';
5
5
  import { HumanControlDataSchema, HumanMarkDataSchema } from './messages.js';
6
+ import { REQUEST_SHAPE_FIELD } from './net.js';
6
7
  /**
7
8
  * Per-event-type payload schemas — the typed replacement for the envelope's open `data` record.
8
9
  * The envelope (`ReticleEventSchema.data`) stays open on the wire so a richer SDK is never rejected
@@ -104,6 +105,7 @@ const netRequestSchema = z
104
105
  durationMs: z.number(),
105
106
  initiator: z.string(),
106
107
  urlRaw: z.string().optional(),
108
+ [REQUEST_SHAPE_FIELD]: z.string().optional(),
107
109
  })
108
110
  .passthrough();
109
111
  const consoleSchema = z.object({ message: z.string() }).passthrough();
@@ -182,6 +184,24 @@ export const EVENT_PAYLOAD_SCHEMAS = {
182
184
  * one, and a desktop webview has no brand to report.
183
185
  */
184
186
  brand: z.nativeEnum(BrowserBrand).optional(),
187
+ /**
188
+ * Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
189
+ *
190
+ * The SDK has always sent this and the server has always read it, but until now the field was
191
+ * not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
192
+ * generated `dist/schema/*.json` files. Anyone implementing this contract from the published
193
+ * schemas -- which is what a third-party realm does -- could not see that the field exists, let
194
+ * alone that the server depends on it.
195
+ *
196
+ * A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
197
+ * that does not exist yet has to be able to name itself, and an enum here would mean one
198
+ * unknown value fails the whole health report, taking visibility, focus and the heartbeat down
199
+ * with it. The wire says the field exists and is a string; which values mean something stays
200
+ * with the reader, where it already is.
201
+ */
202
+ runtime: z.string().optional(),
203
+ /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
204
+ engine: z.string().optional(),
185
205
  })
186
206
  .passthrough(),
187
207
  // The page called window.open — the clicked consequence may continue in a context the SDK cannot
@@ -8,10 +8,7 @@
8
8
  * First-come-first-dropped therefore spends the whole budget on churn and loses exactly the signal
9
9
  * the agent asked about.
10
10
  *
11
- * Measured on a react-admin renderer with a render loop: 11,138 events dropped in one window, and the
12
- * single IPC call under test was among them. The assertion came back `unknown` — honest, but blind.
13
- *
14
- * So over the cap we drop the high-volume/low-value kinds first and keep a reserve for these. The
11
+ * So over the cap the high-volume/low-value kinds drop first and these keep a reserve. The
15
12
  * reserve is bounded (see RATE_CAP_HIGH_VALUE_RESERVE_RATIO) — a flood of errors is still a flood,
16
13
  * and going unbounded here would just move the overload rather than shed it.
17
14
  */
@@ -1,4 +1,4 @@
1
- import { EventType } from './constants.js';
1
+ import { EventType } from './constants/constants.js';
2
2
  /**
3
3
  * Which events survive the bridge's rate cap.
4
4
  *
@@ -9,10 +9,7 @@ import { EventType } from './constants.js';
9
9
  * First-come-first-dropped therefore spends the whole budget on churn and loses exactly the signal
10
10
  * the agent asked about.
11
11
  *
12
- * Measured on a react-admin renderer with a render loop: 11,138 events dropped in one window, and the
13
- * single IPC call under test was among them. The assertion came back `unknown` — honest, but blind.
14
- *
15
- * So over the cap we drop the high-volume/low-value kinds first and keep a reserve for these. The
12
+ * So over the cap the high-volume/low-value kinds drop first and these keep a reserve. The
16
13
  * reserve is bounded (see RATE_CAP_HIGH_VALUE_RESERVE_RATIO) — a flood of errors is still a flood,
17
14
  * and going unbounded here would just move the overload rather than shed it.
18
15
  */
@@ -1,4 +1,4 @@
1
- import { ActionType } from './constants.js';
1
+ import { ActionType } from './constants/constants.js';
2
2
  /**
3
3
  * The key a `press` sends when neither `text` nor `key` was named.
4
4
  *
@@ -10,13 +10,15 @@ 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";
14
+ readonly HARNESS: "harness";
13
15
  }>;
14
16
  text: z.ZodOptional<z.ZodString>;
15
17
  }, "strip", z.ZodTypeAny, {
16
- kind: "message" | "pause" | "resume" | "end" | "replay";
18
+ kind: "message" | "pause" | "resume" | "end" | "replay" | "sync" | "harness";
17
19
  text?: string | undefined;
18
20
  }, {
19
- kind: "message" | "pause" | "resume" | "end" | "replay";
21
+ kind: "message" | "pause" | "resume" | "end" | "replay" | "sync" | "harness";
20
22
  text?: string | undefined;
21
23
  }>;
22
24
  export type HumanControlData = z.infer<typeof HumanControlDataSchema>;
@@ -55,25 +57,25 @@ export declare const HumanMarkDataSchema: z.ZodObject<{
55
57
  /** Route/URL the mark was made on, so the agent can reproduce the context. */
56
58
  route: z.ZodOptional<z.ZodString>;
57
59
  }, "strip", z.ZodTypeAny, {
58
- note: string;
59
60
  anchor: string;
60
- strategy: "testid" | "role" | "component" | "position";
61
+ note: string;
62
+ strategy: "role" | "testid" | "component" | "position";
63
+ label?: string | undefined;
61
64
  route?: string | undefined;
62
65
  source?: {
63
66
  file: string;
64
67
  line: number;
65
68
  } | undefined;
66
- label?: string | undefined;
67
69
  }, {
68
- note: string;
69
70
  anchor: string;
70
- strategy: "testid" | "role" | "component" | "position";
71
+ note: string;
72
+ strategy: "role" | "testid" | "component" | "position";
73
+ label?: string | undefined;
71
74
  route?: string | undefined;
72
75
  source?: {
73
76
  file: string;
74
77
  line: number;
75
78
  } | undefined;
76
- label?: string | undefined;
77
79
  }>;
78
80
  export type HumanMarkData = z.infer<typeof HumanMarkDataSchema>;
79
81
  /**
@@ -160,23 +162,23 @@ export declare const ReticleEventSchema: z.ZodObject<{
160
162
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
161
163
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
162
164
  }, "strip", z.ZodTypeAny, {
163
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
165
+ 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";
164
166
  t: number;
165
167
  sessionId: string;
166
168
  data: Record<string, unknown>;
167
169
  ref?: string | undefined;
168
- actionId?: string | undefined;
169
170
  seq?: number | undefined;
171
+ actionId?: string | undefined;
170
172
  attribution?: "window" | undefined;
171
173
  documentId?: string | undefined;
172
174
  editEpoch?: number | undefined;
173
175
  }, {
174
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
176
+ 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";
175
177
  t: number;
176
178
  sessionId: string;
177
179
  ref?: string | undefined;
178
- actionId?: string | undefined;
179
180
  seq?: number | undefined;
181
+ actionId?: string | undefined;
180
182
  attribution?: "window" | undefined;
181
183
  documentId?: string | undefined;
182
184
  editEpoch?: number | undefined;
@@ -186,7 +188,16 @@ export type ReticleEvent = z.infer<typeof ReticleEventSchema>;
186
188
  /** Browser announces itself to the bridge on connect. */
187
189
  export declare const HelloMessageSchema: z.ZodObject<{
188
190
  kind: z.ZodLiteral<"hello">;
189
- protocolVersion: z.ZodLiteral<1>;
191
+ /**
192
+ * The wire protocol this peer speaks.
193
+ *
194
+ * A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
195
+ * as soon as anything else implements this: a peer one version behind is not incompatible, it is
196
+ * behind. The bridge accepts anything from the oldest version it still talks to up to its own.
197
+ *
198
+ * Out of range is still a hard door, with the diagnostics that already name which side is stale.
199
+ */
200
+ protocolVersion: z.ZodNumber;
190
201
  sessionId: z.ZodString;
191
202
  url: z.ZodString;
192
203
  title: z.ZodString;
@@ -200,6 +211,76 @@ export declare const HelloMessageSchema: z.ZodObject<{
200
211
  adapters: z.ZodArray<z.ZodString, "many">;
201
212
  /** Optional browser/bridge pairing token. Required when the bridge configures one. */
202
213
  token: z.ZodOptional<z.ZodString>;
214
+ /**
215
+ * What kind of surface this is: a browser document, a web page in somebody else's window, a
216
+ * native view tree, or no rendering surface at all. See platform.ts.
217
+ *
218
+ * ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
219
+ * browser document, so absence is not a gap -- it is the answer those connections would have
220
+ * given. This is the same convention five other fields on this message already use.
221
+ *
222
+ * It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
223
+ * verification wants the surface: the question being asked is what can be demanded of you, not
224
+ * which product you are.
225
+ */
226
+ platform: z.ZodOptional<z.ZodNativeEnum<{
227
+ readonly WEB: "web";
228
+ readonly WEBVIEW: "webview";
229
+ readonly NATIVE: "native";
230
+ readonly SERVICE: "service";
231
+ }>>;
232
+ /**
233
+ * The channels this build can actually observe. See channel.ts.
234
+ *
235
+ * ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
236
+ * whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
237
+ * makes. Same convention as every other optional field on this message.
238
+ *
239
+ * A closed list rather than free strings, because the rule that refuses a claim reading an
240
+ * undeclared channel has to switch on these. Commands below are free strings for the opposite
241
+ * reason: nothing switches on them, and command names are already opaque on this wire.
242
+ */
243
+ channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
244
+ readonly UI: "ui";
245
+ readonly NET: "net";
246
+ readonly STATE: "state";
247
+ readonly SIGNAL: "signal";
248
+ readonly LOG: "log";
249
+ readonly ROUTE: "route";
250
+ readonly STORAGE: "storage";
251
+ readonly TIME: "time";
252
+ readonly VISUAL: "visual";
253
+ }>, "many">>;
254
+ /**
255
+ * The commands this build can serve.
256
+ *
257
+ * Absent means "assume the usual set". Present and missing a name means asking for it is a
258
+ * mistake somebody can be told about before they spend an action on it, rather than after.
259
+ */
260
+ commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
+ /**
262
+ * The wire names this peer actually speaks, so compatibility can be judged name by name.
263
+ *
264
+ * The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
265
+ * and nothing else. An implementation that speaks part of the contract -- which is the right thing
266
+ * for anything that is not a browser to do -- can never produce a matching hash, and was therefore
267
+ * reported as skewed on every call forever.
268
+ *
269
+ * Absent means "compare the fingerprint", which is what a build predating this field does.
270
+ */
271
+ contractParts: z.ZodOptional<z.ZodObject<{
272
+ commands: z.ZodArray<z.ZodString, "many">;
273
+ events: z.ZodArray<z.ZodString, "many">;
274
+ actions: z.ZodArray<z.ZodString, "many">;
275
+ }, "strip", z.ZodTypeAny, {
276
+ events: string[];
277
+ commands: string[];
278
+ actions: string[];
279
+ }, {
280
+ events: string[];
281
+ commands: string[];
282
+ actions: string[];
283
+ }>>;
203
284
  /** Whether the app has advertised a capability registry (reticle.describe). */
204
285
  hasCapabilities: z.ZodOptional<z.ZodBoolean>;
205
286
  /**
@@ -258,33 +339,49 @@ export declare const HelloMessageSchema: z.ZodObject<{
258
339
  */
259
340
  redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
341
  }, "strip", z.ZodTypeAny, {
261
- url: string;
262
342
  kind: "hello";
343
+ url: string;
263
344
  sessionId: string;
264
- protocolVersion: 1;
345
+ protocolVersion: number;
265
346
  title: string;
266
347
  adapters: string[];
267
348
  projectId?: string | undefined;
268
- sdkVersion?: string | undefined;
269
349
  token?: string | undefined;
350
+ platform?: "native" | "web" | "webview" | "service" | undefined;
351
+ channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
352
+ commands?: string[] | undefined;
353
+ contractParts?: {
354
+ events: string[];
355
+ commands: string[];
356
+ actions: string[];
357
+ } | undefined;
270
358
  hasCapabilities?: boolean | undefined;
271
359
  captureBodies?: boolean | undefined;
272
360
  sourceMapping?: boolean | undefined;
361
+ sdkVersion?: string | undefined;
273
362
  contract?: string | undefined;
274
363
  redactKeys?: string[] | undefined;
275
364
  }, {
276
- url: string;
277
365
  kind: "hello";
366
+ url: string;
278
367
  sessionId: string;
279
- protocolVersion: 1;
368
+ protocolVersion: number;
280
369
  title: string;
281
370
  adapters: string[];
282
371
  projectId?: string | undefined;
283
- sdkVersion?: string | undefined;
284
372
  token?: string | undefined;
373
+ platform?: "native" | "web" | "webview" | "service" | undefined;
374
+ channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
375
+ commands?: string[] | undefined;
376
+ contractParts?: {
377
+ events: string[];
378
+ commands: string[];
379
+ actions: string[];
380
+ } | undefined;
285
381
  hasCapabilities?: boolean | undefined;
286
382
  captureBodies?: boolean | undefined;
287
383
  sourceMapping?: boolean | undefined;
384
+ sdkVersion?: string | undefined;
288
385
  contract?: string | undefined;
289
386
  redactKeys?: string[] | undefined;
290
387
  }>;
@@ -298,14 +395,14 @@ export declare const CommandMessageSchema: z.ZodObject<{
298
395
  args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
299
396
  }, "strip", z.ZodTypeAny, {
300
397
  id: string;
301
- args: Record<string, unknown>;
302
- name: string;
303
398
  kind: "command";
399
+ name: string;
400
+ args: Record<string, unknown>;
304
401
  sessionId?: string | undefined;
305
402
  }, {
306
403
  id: string;
307
- name: string;
308
404
  kind: "command";
405
+ name: string;
309
406
  args?: Record<string, unknown> | undefined;
310
407
  sessionId?: string | undefined;
311
408
  }>;
@@ -413,23 +510,23 @@ export declare const EventMessageSchema: z.ZodObject<{
413
510
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
414
511
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
415
512
  }, "strip", z.ZodTypeAny, {
416
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
513
+ 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";
417
514
  t: number;
418
515
  sessionId: string;
419
516
  data: Record<string, unknown>;
420
517
  ref?: string | undefined;
421
- actionId?: string | undefined;
422
518
  seq?: number | undefined;
519
+ actionId?: string | undefined;
423
520
  attribution?: "window" | undefined;
424
521
  documentId?: string | undefined;
425
522
  editEpoch?: number | undefined;
426
523
  }, {
427
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
524
+ 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";
428
525
  t: number;
429
526
  sessionId: string;
430
527
  ref?: string | undefined;
431
- actionId?: string | undefined;
432
528
  seq?: number | undefined;
529
+ actionId?: string | undefined;
433
530
  attribution?: "window" | undefined;
434
531
  documentId?: string | undefined;
435
532
  editEpoch?: number | undefined;
@@ -437,13 +534,13 @@ export declare const EventMessageSchema: z.ZodObject<{
437
534
  }>;
438
535
  }, "strip", z.ZodTypeAny, {
439
536
  event: {
440
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
537
+ 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";
441
538
  t: number;
442
539
  sessionId: string;
443
540
  data: Record<string, unknown>;
444
541
  ref?: string | undefined;
445
- actionId?: string | undefined;
446
542
  seq?: number | undefined;
543
+ actionId?: string | undefined;
447
544
  attribution?: "window" | undefined;
448
545
  documentId?: string | undefined;
449
546
  editEpoch?: number | undefined;
@@ -451,12 +548,12 @@ export declare const EventMessageSchema: z.ZodObject<{
451
548
  kind: "event";
452
549
  }, {
453
550
  event: {
454
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
551
+ 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";
455
552
  t: number;
456
553
  sessionId: string;
457
554
  ref?: string | undefined;
458
- actionId?: string | undefined;
459
555
  seq?: number | undefined;
556
+ actionId?: string | undefined;
460
557
  attribution?: "window" | undefined;
461
558
  documentId?: string | undefined;
462
559
  editEpoch?: number | undefined;
@@ -467,7 +564,16 @@ export declare const EventMessageSchema: z.ZodObject<{
467
564
  export type EventMessage = z.infer<typeof EventMessageSchema>;
468
565
  export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
469
566
  kind: z.ZodLiteral<"hello">;
470
- protocolVersion: z.ZodLiteral<1>;
567
+ /**
568
+ * The wire protocol this peer speaks.
569
+ *
570
+ * A RANGE, not a fixed number. An exact match is right while both halves ship together and wrong
571
+ * as soon as anything else implements this: a peer one version behind is not incompatible, it is
572
+ * behind. The bridge accepts anything from the oldest version it still talks to up to its own.
573
+ *
574
+ * Out of range is still a hard door, with the diagnostics that already name which side is stale.
575
+ */
576
+ protocolVersion: z.ZodNumber;
471
577
  sessionId: z.ZodString;
472
578
  url: z.ZodString;
473
579
  title: z.ZodString;
@@ -481,6 +587,76 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
481
587
  adapters: z.ZodArray<z.ZodString, "many">;
482
588
  /** Optional browser/bridge pairing token. Required when the bridge configures one. */
483
589
  token: z.ZodOptional<z.ZodString>;
590
+ /**
591
+ * What kind of surface this is: a browser document, a web page in somebody else's window, a
592
+ * native view tree, or no rendering surface at all. See platform.ts.
593
+ *
594
+ * ABSENT MEANS `web`, never "unknown". Everything that connected before this field existed was a
595
+ * browser document, so absence is not a gap -- it is the answer those connections would have
596
+ * given. This is the same convention five other fields on this message already use.
597
+ *
598
+ * It is deliberately not the shell name. Electron and Tauri are two shells and one surface, and
599
+ * verification wants the surface: the question being asked is what can be demanded of you, not
600
+ * which product you are.
601
+ */
602
+ platform: z.ZodOptional<z.ZodNativeEnum<{
603
+ readonly WEB: "web";
604
+ readonly WEBVIEW: "webview";
605
+ readonly NATIVE: "native";
606
+ readonly SERVICE: "service";
607
+ }>>;
608
+ /**
609
+ * The channels this build can actually observe. See channel.ts.
610
+ *
611
+ * ABSENT MEANS "everything", not "nothing" -- an SDK built before this field existed watched
612
+ * whatever it watched, and reading its silence as "observes nothing" would refuse every claim it
613
+ * makes. Same convention as every other optional field on this message.
614
+ *
615
+ * A closed list rather than free strings, because the rule that refuses a claim reading an
616
+ * undeclared channel has to switch on these. Commands below are free strings for the opposite
617
+ * reason: nothing switches on them, and command names are already opaque on this wire.
618
+ */
619
+ channels: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
620
+ readonly UI: "ui";
621
+ readonly NET: "net";
622
+ readonly STATE: "state";
623
+ readonly SIGNAL: "signal";
624
+ readonly LOG: "log";
625
+ readonly ROUTE: "route";
626
+ readonly STORAGE: "storage";
627
+ readonly TIME: "time";
628
+ readonly VISUAL: "visual";
629
+ }>, "many">>;
630
+ /**
631
+ * The commands this build can serve.
632
+ *
633
+ * Absent means "assume the usual set". Present and missing a name means asking for it is a
634
+ * mistake somebody can be told about before they spend an action on it, rather than after.
635
+ */
636
+ commands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
637
+ /**
638
+ * The wire names this peer actually speaks, so compatibility can be judged name by name.
639
+ *
640
+ * The fingerprint beside it is a hash over the whole vocabulary: it can say "same" or "different"
641
+ * and nothing else. An implementation that speaks part of the contract -- which is the right thing
642
+ * for anything that is not a browser to do -- can never produce a matching hash, and was therefore
643
+ * reported as skewed on every call forever.
644
+ *
645
+ * Absent means "compare the fingerprint", which is what a build predating this field does.
646
+ */
647
+ contractParts: z.ZodOptional<z.ZodObject<{
648
+ commands: z.ZodArray<z.ZodString, "many">;
649
+ events: z.ZodArray<z.ZodString, "many">;
650
+ actions: z.ZodArray<z.ZodString, "many">;
651
+ }, "strip", z.ZodTypeAny, {
652
+ events: string[];
653
+ commands: string[];
654
+ actions: string[];
655
+ }, {
656
+ events: string[];
657
+ commands: string[];
658
+ actions: string[];
659
+ }>>;
484
660
  /** Whether the app has advertised a capability registry (reticle.describe). */
485
661
  hasCapabilities: z.ZodOptional<z.ZodBoolean>;
486
662
  /**
@@ -539,33 +715,49 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
539
715
  */
540
716
  redactKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
717
  }, "strip", z.ZodTypeAny, {
542
- url: string;
543
718
  kind: "hello";
719
+ url: string;
544
720
  sessionId: string;
545
- protocolVersion: 1;
721
+ protocolVersion: number;
546
722
  title: string;
547
723
  adapters: string[];
548
724
  projectId?: string | undefined;
549
- sdkVersion?: string | undefined;
550
725
  token?: string | undefined;
726
+ platform?: "native" | "web" | "webview" | "service" | undefined;
727
+ channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
728
+ commands?: string[] | undefined;
729
+ contractParts?: {
730
+ events: string[];
731
+ commands: string[];
732
+ actions: string[];
733
+ } | undefined;
551
734
  hasCapabilities?: boolean | undefined;
552
735
  captureBodies?: boolean | undefined;
553
736
  sourceMapping?: boolean | undefined;
737
+ sdkVersion?: string | undefined;
554
738
  contract?: string | undefined;
555
739
  redactKeys?: string[] | undefined;
556
740
  }, {
557
- url: string;
558
741
  kind: "hello";
742
+ url: string;
559
743
  sessionId: string;
560
- protocolVersion: 1;
744
+ protocolVersion: number;
561
745
  title: string;
562
746
  adapters: string[];
563
747
  projectId?: string | undefined;
564
- sdkVersion?: string | undefined;
565
748
  token?: string | undefined;
749
+ platform?: "native" | "web" | "webview" | "service" | undefined;
750
+ channels?: ("visual" | "signal" | "net" | "state" | "route" | "ui" | "log" | "storage" | "time")[] | undefined;
751
+ commands?: string[] | undefined;
752
+ contractParts?: {
753
+ events: string[];
754
+ commands: string[];
755
+ actions: string[];
756
+ } | undefined;
566
757
  hasCapabilities?: boolean | undefined;
567
758
  captureBodies?: boolean | undefined;
568
759
  sourceMapping?: boolean | undefined;
760
+ sdkVersion?: string | undefined;
569
761
  contract?: string | undefined;
570
762
  redactKeys?: string[] | undefined;
571
763
  }>, z.ZodObject<{
@@ -576,14 +768,14 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
576
768
  args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
577
769
  }, "strip", z.ZodTypeAny, {
578
770
  id: string;
579
- args: Record<string, unknown>;
580
- name: string;
581
771
  kind: "command";
772
+ name: string;
773
+ args: Record<string, unknown>;
582
774
  sessionId?: string | undefined;
583
775
  }, {
584
776
  id: string;
585
- name: string;
586
777
  kind: "command";
778
+ name: string;
587
779
  args?: Record<string, unknown> | undefined;
588
780
  sessionId?: string | undefined;
589
781
  }>, z.ZodObject<{
@@ -685,23 +877,23 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
685
877
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
686
878
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
687
879
  }, "strip", z.ZodTypeAny, {
688
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
880
+ 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";
689
881
  t: number;
690
882
  sessionId: string;
691
883
  data: Record<string, unknown>;
692
884
  ref?: string | undefined;
693
- actionId?: string | undefined;
694
885
  seq?: number | undefined;
886
+ actionId?: string | undefined;
695
887
  attribution?: "window" | undefined;
696
888
  documentId?: string | undefined;
697
889
  editEpoch?: number | undefined;
698
890
  }, {
699
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
891
+ 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";
700
892
  t: number;
701
893
  sessionId: string;
702
894
  ref?: string | undefined;
703
- actionId?: string | undefined;
704
895
  seq?: number | undefined;
896
+ actionId?: string | undefined;
705
897
  attribution?: "window" | undefined;
706
898
  documentId?: string | undefined;
707
899
  editEpoch?: number | undefined;
@@ -709,13 +901,13 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
709
901
  }>;
710
902
  }, "strip", z.ZodTypeAny, {
711
903
  event: {
712
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
904
+ 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";
713
905
  t: number;
714
906
  sessionId: string;
715
907
  data: Record<string, unknown>;
716
908
  ref?: string | undefined;
717
- actionId?: string | undefined;
718
909
  seq?: number | undefined;
910
+ actionId?: string | undefined;
719
911
  attribution?: "window" | undefined;
720
912
  documentId?: string | undefined;
721
913
  editEpoch?: number | undefined;
@@ -723,12 +915,12 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
723
915
  kind: "event";
724
916
  }, {
725
917
  event: {
726
- 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" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
918
+ 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";
727
919
  t: number;
728
920
  sessionId: string;
729
921
  ref?: string | undefined;
730
- actionId?: string | undefined;
731
922
  seq?: number | undefined;
923
+ actionId?: string | undefined;
732
924
  attribution?: "window" | undefined;
733
925
  documentId?: string | undefined;
734
926
  editEpoch?: number | undefined;