effect-browser 0.0.0-reserved.0 → 0.2.0-beta.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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +804 -3
  3. package/dist/Association-BsSfBYVx.mjs +138 -0
  4. package/dist/Association-BsSfBYVx.mjs.map +1 -0
  5. package/dist/Bootstrap-B9UUXsvF.d.mts +183 -0
  6. package/dist/Bootstrap-CeQOWBy6.mjs +189 -0
  7. package/dist/Bootstrap-CeQOWBy6.mjs.map +1 -0
  8. package/dist/Bootstrap.d.mts +3 -0
  9. package/dist/Bootstrap.mjs +2 -0
  10. package/dist/Browser.d.mts +189 -0
  11. package/dist/Browser.mjs +14 -0
  12. package/dist/Browser.mjs.map +1 -0
  13. package/dist/BrowserData-CRuxEZcn.d.mts +492 -0
  14. package/dist/BrowserData.d.mts +3 -0
  15. package/dist/BrowserData.mjs +572 -0
  16. package/dist/BrowserData.mjs.map +1 -0
  17. package/dist/BrowserRuntime-Coz-5DYb.d.mts +143 -0
  18. package/dist/BrowserRuntime-DViKNUdD.mjs +5782 -0
  19. package/dist/BrowserRuntime-DViKNUdD.mjs.map +1 -0
  20. package/dist/BrowserRuntime.d.mts +3 -0
  21. package/dist/BrowserRuntime.mjs +2 -0
  22. package/dist/Capture.d.mts +54 -0
  23. package/dist/Capture.mjs +512 -0
  24. package/dist/Capture.mjs.map +1 -0
  25. package/dist/CaptureData-B5-mXlyq.mjs +180 -0
  26. package/dist/CaptureData-B5-mXlyq.mjs.map +1 -0
  27. package/dist/CaptureData.d.mts +157 -0
  28. package/dist/CaptureData.mjs +2 -0
  29. package/dist/Chromium.d.mts +85 -0
  30. package/dist/Chromium.mjs +387 -0
  31. package/dist/Chromium.mjs.map +1 -0
  32. package/dist/Errors.d.mts +106 -0
  33. package/dist/Errors.mjs +156 -0
  34. package/dist/Errors.mjs.map +1 -0
  35. package/dist/PageControl.d.mts +15 -0
  36. package/dist/PageControl.mjs +28 -0
  37. package/dist/PageControl.mjs.map +1 -0
  38. package/dist/PageControlAssociation-DabEg5AR.mjs +10 -0
  39. package/dist/PageControlAssociation-DabEg5AR.mjs.map +1 -0
  40. package/dist/Testing.d.mts +437 -0
  41. package/dist/Testing.mjs +1561 -0
  42. package/dist/Testing.mjs.map +1 -0
  43. package/dist/index.d.mts +10 -0
  44. package/dist/index.mjs +9 -0
  45. package/package.json +71 -5
@@ -0,0 +1,492 @@
1
+ import { BrowserError } from "./Errors.mjs";
2
+ import { Schema } from "effect";
3
+ //#region src/BrowserData.d.ts
4
+ declare const Identifier: Schema.NonEmptyString;
5
+ declare const PositiveInt: Schema.Int;
6
+ /** Portable basename only; never a local or remote filesystem path. */
7
+ declare const SafeFilename: Schema.NonEmptyString;
8
+ declare const Viewport_base: Schema.Class<Viewport, Schema.Struct<{
9
+ readonly width: Schema.Int;
10
+ readonly height: Schema.Int;
11
+ }>, {}>;
12
+ declare class Viewport extends Viewport_base {}
13
+ declare const Target_base: Schema.Class<Target, Schema.Struct<{
14
+ readonly generation: Schema.Natural;
15
+ readonly pageId: Schema.NonEmptyString;
16
+ readonly frameId: Schema.NonEmptyString;
17
+ }>, {}>;
18
+ /** Page/frame IDs are connection-local; targetId is a separate Chromium identity. */
19
+ declare class Target extends Target_base {}
20
+ declare const PageInfo_base: Schema.Class<PageInfo, Schema.Struct<{
21
+ readonly pageId: Schema.NonEmptyString;
22
+ readonly targetId: Schema.NonEmptyString;
23
+ readonly url: Schema.String;
24
+ readonly title: Schema.String;
25
+ readonly selected: Schema.Boolean;
26
+ }>, {}>;
27
+ declare class PageInfo extends PageInfo_base {}
28
+ declare const FrameInfo_base: Schema.Class<FrameInfo, Schema.Struct<{
29
+ readonly frameId: Schema.NonEmptyString;
30
+ readonly parentFrameId: Schema.NullOr<Schema.NonEmptyString>;
31
+ readonly url: Schema.String;
32
+ readonly name: Schema.String;
33
+ }>, {}>;
34
+ declare class FrameInfo extends FrameInfo_base {}
35
+ declare const SessionPhase: Schema.Literals<readonly ["acquiring", "open", "paused", "detached", "faulted", "uncertain", "closing", "closed"]>;
36
+ type SessionPhase = typeof SessionPhase.Type;
37
+ declare const SessionReason: Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed"]>;
38
+ type SessionReason = typeof SessionReason.Type;
39
+ declare const SessionStatus_base: Schema.Class<SessionStatus, Schema.Struct<{
40
+ readonly phase: Schema.Literals<readonly ["acquiring", "open", "paused", "detached", "faulted", "uncertain", "closing", "closed"]>;
41
+ readonly reason: Schema.NullOr<Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed"]>>;
42
+ readonly generation: Schema.Natural;
43
+ readonly busy: Schema.Boolean;
44
+ readonly unresolvedDispatch: Schema.Boolean;
45
+ }>, {}>;
46
+ /** Host-only admission evidence. Neither an admission token nor proof of remote termination. */
47
+ declare class SessionStatus extends SessionStatus_base {}
48
+ declare const BrowserDiagnostic_base: Schema.Class<BrowserDiagnostic, Schema.Struct<{
49
+ readonly reason: Schema.Literals<readonly ["expired", "callback-failure", "registration-failure", "native-failure", "disconnected", "popup-policy", "dialog-policy", "popup-overflow", "dialog-overflow", "cleanup-capacity", "handoff", "detached", "closed"]>;
50
+ readonly disposition: Schema.Literals<readonly ["pending", "confirmed", "not-dispatched", "unknown"]>;
51
+ readonly generation: Schema.Natural;
52
+ readonly monotonicNanos: Schema.BigInt;
53
+ }>, {}>;
54
+ /** Bounded host facts only: no target identity, page content, native exception or consumer cause. */
55
+ declare class BrowserDiagnostic extends BrowserDiagnostic_base {}
56
+ declare const BrowserDiagnostics_base: Schema.Class<BrowserDiagnostics, Schema.Struct<{
57
+ readonly records: Schema.$Array<typeof BrowserDiagnostic>;
58
+ readonly total: Schema.Natural;
59
+ readonly dropped: Schema.Natural;
60
+ readonly truncated: Schema.Boolean;
61
+ }>, {}>;
62
+ declare class BrowserDiagnostics extends BrowserDiagnostics_base {}
63
+ declare const ObservedControl_base: Schema.Class<ObservedControl, Schema.Struct<{
64
+ readonly elementId: Schema.NonEmptyString;
65
+ readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
66
+ readonly label: Schema.String;
67
+ readonly disabled: Schema.Boolean;
68
+ readonly checked: Schema.optionalKey<Schema.Boolean>;
69
+ readonly selected: Schema.optionalKey<Schema.Boolean>;
70
+ readonly inputType: Schema.optionalKey<Schema.String>;
71
+ readonly required: Schema.optionalKey<Schema.Boolean>;
72
+ /** Native select state. A select is never represented by one `selected` boolean. */
73
+ readonly multiple: Schema.optionalKey<Schema.Boolean>;
74
+ /** The issued select this native option belongs to, in the same observation. */
75
+ readonly selectElementId: Schema.optionalKey<Schema.NonEmptyString>;
76
+ /** Some choices could not be issued within this reading's shared control/value bounds. */
77
+ readonly optionsTruncated: Schema.optionalKey<Schema.Boolean>;
78
+ }>, {}>;
79
+ declare class ObservedControl extends ObservedControl_base {}
80
+ declare const ViewportEvidence_base: Schema.Class<ViewportEvidence, Schema.Struct<{
81
+ readonly width: Schema.Finite;
82
+ readonly height: Schema.Finite;
83
+ /** Text that crossed a viewport edge; only its lines on screen were kept. */
84
+ readonly clippedText: Schema.Natural;
85
+ /** Left out: another element is on top at the sampled point, or a box there paints over it. */
86
+ readonly coveredText: Schema.Natural;
87
+ /**
88
+ * Left out: something that takes no pointer events lies over it and the browser's own hit test
89
+ * could not settle whether it paints there, for example beneath another such box, in a child
90
+ * frame, or after too many such points in one reading.
91
+ */
92
+ readonly uncertainText: Schema.Natural;
93
+ /** Controls that intersect the viewport but cannot be reached there. */
94
+ readonly unreachableControls: Schema.Natural;
95
+ /** The traversal budget ran out first, so this reading is known to be incomplete. */
96
+ readonly exhausted: Schema.Boolean;
97
+ }>, {}>;
98
+ /**
99
+ * How a viewport reading was bounded and what it left out. These are counts, so they are safe
100
+ * to show a model. Visibility is geometry and hit-testing, never a pixel comparison: text is
101
+ * kept when its line boxes intersect the viewport and the browser finds its own element at a
102
+ * sampled point. Something that takes no pointer events is invisible to that test, so the
103
+ * browser is asked what is on top there with pointer events ignored: a box that paints at the
104
+ * point covers the text, and one that paints nothing there, such as an empty full-screen
105
+ * container, does not. Text that could not be settled that way is left out as uncertain.
106
+ */
107
+ declare class ViewportEvidence extends ViewportEvidence_base {}
108
+ /**
109
+ * Case-insensitive text a reading keeps. It is applied inside the page before any limit, so
110
+ * matching controls are not crowded out by earlier ones. It filters what is read; it never
111
+ * searches for, re-finds or substitutes a node.
112
+ */
113
+ declare const ReadingMatch: Schema.String;
114
+ declare const Observation_base: Schema.Class<Observation, Schema.Struct<{
115
+ readonly target: typeof Target;
116
+ readonly observationId: Schema.NonEmptyString;
117
+ readonly revision: Schema.Natural;
118
+ readonly scope: Schema.Literals<readonly ["document", "viewport"]>;
119
+ readonly match: Schema.optionalKey<Schema.String>;
120
+ readonly url: Schema.String;
121
+ readonly text: Schema.String;
122
+ readonly controls: Schema.$Array<typeof ObservedControl>;
123
+ readonly controlsTruncated: Schema.Boolean;
124
+ readonly textTruncated: Schema.Boolean;
125
+ readonly viewport: typeof ViewportEvidence;
126
+ }>, {}>;
127
+ /**
128
+ * Revision is admission fencing, not a claim of a complete DOM version or atomic snapshot. A
129
+ * `viewport` reading holds what is on screen and reachable, plus the bounded choices of its
130
+ * native selects. Those choices are not a claim that a closed dropdown's rows were visible.
131
+ * A `document` reading is the whole body, wherever it is. A reading with `match` keeps only
132
+ * matching text lines and controls, so what it leaves out is not evidence of absence. Nothing
133
+ * here carries a destination, a form or a field value.
134
+ */
135
+ declare class Observation extends Observation_base {}
136
+ declare const ObservedElement_base: Schema.Class<ObservedElement, Schema.Struct<{
137
+ readonly observationId: Schema.NonEmptyString;
138
+ readonly elementId: Schema.NonEmptyString;
139
+ }>, {}>;
140
+ declare class ObservedElement extends ObservedElement_base {}
141
+ declare const WaitForElementRequest_base: Schema.Class<WaitForElementRequest, Schema.Struct<{
142
+ readonly reference: typeof ObservedElement;
143
+ readonly state: Schema.Literals<readonly ["visible", "hidden", "enabled", "disabled"]>;
144
+ readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
145
+ }>, {}>;
146
+ /** Observe a condition of this exact node. A replacement never satisfies the reference. */
147
+ declare class WaitForElementRequest extends WaitForElementRequest_base {}
148
+ /** Issued option element IDs from one observed native select; never values, labels or indices. */
149
+ declare const SelectOptions: Schema.$Array<Schema.NonEmptyString>;
150
+ type SelectOptions = typeof SelectOptions.Type;
151
+ declare const PageSuspension_base: Schema.Class<PageSuspension, Schema.Struct<{
152
+ readonly pageId: Schema.NonEmptyString;
153
+ readonly targetId: Schema.NonEmptyString;
154
+ readonly suspensionId: Schema.NonEmptyString;
155
+ }>, {}>;
156
+ /** Live, connection-owned receipt. It is not a durable promise that remote clocks remain held. */
157
+ declare class PageSuspension extends PageSuspension_base {}
158
+ declare const PageExecutionState_base: Schema.Class<PageExecutionState, Schema.Struct<{
159
+ readonly pageId: Schema.NonEmptyString;
160
+ readonly targetId: Schema.NonEmptyString;
161
+ readonly state: Schema.Literals<readonly ["running", "suspended", "unknown"]>;
162
+ readonly suspensionId: Schema.optionalKey<Schema.NonEmptyString>;
163
+ }>, {}>;
164
+ declare class PageExecutionState extends PageExecutionState_base {}
165
+ declare const BrowserPolicy_base: Schema.Class<BrowserPolicy, Schema.Struct<{
166
+ readonly network: Schema.TaggedStruct<"Unrestricted", {}>;
167
+ readonly maxActions: Schema.Int;
168
+ readonly maxElapsedMillis: Schema.Int;
169
+ readonly maxReturnedBytes: Schema.Int;
170
+ }>, {}>;
171
+ /** Explicit opt-out: this integration does not claim whole-browser network containment. */
172
+ declare class BrowserPolicy extends BrowserPolicy_base {
173
+ /**
174
+ * Conservative bounds for trusted host code: 100 actions, five minutes, 2 MiB returned.
175
+ * The network choice is spelled out in the name because this runtime cannot prove a
176
+ * narrower one; override any bound, never the network.
177
+ */
178
+ static unrestricted(bounds?: Partial<Pick<BrowserPolicy, "maxActions" | "maxElapsedMillis" | "maxReturnedBytes">>): BrowserPolicy;
179
+ }
180
+ declare const TargetUrl: Schema.NonEmptyString;
181
+ declare const Selector: Schema.NonEmptyString;
182
+ declare const NavigateRequest_base: Schema.Class<NavigateRequest, Schema.Struct<{
183
+ readonly url: Schema.NonEmptyString;
184
+ readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
185
+ }>, {}>;
186
+ declare class NavigateRequest extends NavigateRequest_base {}
187
+ declare const StartNavigationRequest_base: Schema.Class<StartNavigationRequest, Schema.Struct<{
188
+ readonly url: Schema.NonEmptyString;
189
+ readonly timeoutMillis: Schema.optionalKey<Schema.Int>;
190
+ }>, {}>;
191
+ /**
192
+ * A navigation left in flight. `timeoutMillis` is how long the browser may take to reach
193
+ * DOMContentLoaded; omitted, it is the action timeout, as it is for `navigate`.
194
+ */
195
+ declare class StartNavigationRequest extends StartNavigationRequest_base {}
196
+ declare const ReadTextRequest_base: Schema.Class<ReadTextRequest, Schema.Struct<{
197
+ readonly selector: Schema.optionalKey<Schema.NonEmptyString>;
198
+ }>, {}>;
199
+ declare class ReadTextRequest extends ReadTextRequest_base {}
200
+ declare const ClickRequest_base: Schema.Class<ClickRequest, Schema.Struct<{
201
+ readonly selector: Schema.NonEmptyString;
202
+ }>, {}>;
203
+ declare class ClickRequest extends ClickRequest_base {}
204
+ declare const FillRequest_base: Schema.Class<FillRequest, Schema.Struct<{
205
+ readonly selector: Schema.NonEmptyString;
206
+ readonly value: Schema.String;
207
+ }>, {}>;
208
+ declare class FillRequest extends FillRequest_base {}
209
+ /**
210
+ * One observed control and the one state a form gives it: replacement text, the checked state a
211
+ * checkbox, radio or switch should end in (it is clicked only when it differs, and a native radio
212
+ * is never asked to clear itself), or issued option IDs of a native select from the same
213
+ * observation.
214
+ */
215
+ declare const FormField: Schema.Struct<{
216
+ readonly elementId: Schema.NonEmptyString;
217
+ readonly value: Schema.optionalKey<Schema.String>;
218
+ readonly checked: Schema.optionalKey<Schema.Boolean>;
219
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
220
+ }>;
221
+ type FormField = typeof FormField.Type;
222
+ declare const FillFormRequest_base: Schema.Class<FillFormRequest, Schema.Struct<{
223
+ readonly observationId: Schema.NonEmptyString;
224
+ readonly fields: Schema.$Array<Schema.Struct<{
225
+ readonly elementId: Schema.NonEmptyString;
226
+ readonly value: Schema.optionalKey<Schema.String>;
227
+ readonly checked: Schema.optionalKey<Schema.Boolean>;
228
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
229
+ }>>;
230
+ readonly submit: Schema.optionalKey<Schema.NonEmptyString>;
231
+ }>, {}>;
232
+ /** At most 32 distinct fields, and a submit control that is not one of them. */
233
+ declare class FillFormRequest extends FillFormRequest_base {}
234
+ /**
235
+ * Host choices about how a form proceeds. `verify` (default true) re-reads every field before
236
+ * submit and stops when one no longer holds what its own step left there. `settleMillis`
237
+ * (default 50, at most 5000; 0 skips it) is how long each dispatched step lets the page's own
238
+ * handlers run, after at least two rendered frames, before its result is read back.
239
+ */
240
+ declare const FillFormOptions: Schema.Struct<{
241
+ readonly verify: Schema.optionalKey<Schema.Boolean>;
242
+ readonly settleMillis: Schema.optionalKey<Schema.Int>;
243
+ }>;
244
+ type FillFormOptions = typeof FillFormOptions.Type;
245
+ declare const FormFieldResult_base: Schema.Class<FormFieldResult, Schema.Struct<{
246
+ readonly elementId: Schema.NonEmptyString;
247
+ readonly status: Schema.Literals<readonly ["set", "unchanged"]>;
248
+ }>, {}>;
249
+ /** `set` dispatched input; `unchanged` needed none, because a toggle already held its state. */
250
+ declare class FormFieldResult extends FormFieldResult_base {}
251
+ declare const FormStop_base: Schema.Class<FormStop, Schema.Struct<{
252
+ readonly stage: Schema.Literals<readonly ["field", "verify", "submit"]>;
253
+ readonly elementId: Schema.optionalKey<Schema.NonEmptyString>;
254
+ readonly error: typeof BrowserError;
255
+ }>, {}>;
256
+ /**
257
+ * Where a form stopped and why. `error.outcome` says whether this step itself was dispatched;
258
+ * nothing after it was. `elementId` names the control it stopped at, when there is one: a
259
+ * verification that could not read the form at all names none.
260
+ */
261
+ declare class FormStop extends FormStop_base {}
262
+ declare const FillFormResult_base: Schema.Class<FillFormResult, Schema.Struct<{
263
+ readonly fields: Schema.$Array<typeof FormFieldResult>;
264
+ readonly submitted: Schema.Boolean;
265
+ readonly url: Schema.NonEmptyString;
266
+ readonly stopped: Schema.optionalKey<typeof FormStop>;
267
+ }>, {}>;
268
+ /**
269
+ * What a form did, in order. `stopped` is present when it did not finish: the fields before it
270
+ * stay set, because a form is not a transaction. `submitted` is true only when the submit click
271
+ * completed; a stop at `submit` with an `unknown` outcome may have sent it.
272
+ */
273
+ declare class FillFormResult extends FillFormResult_base {}
274
+ declare const ScrollRequest_base: Schema.Class<ScrollRequest, Schema.Struct<{
275
+ readonly deltaX: Schema.Int;
276
+ readonly deltaY: Schema.Int;
277
+ }>, {}>;
278
+ declare class ScrollRequest extends ScrollRequest_base {}
279
+ declare const ViewportPoint_base: Schema.Class<ViewportPoint, Schema.Struct<{
280
+ readonly x: Schema.Finite;
281
+ readonly y: Schema.Finite;
282
+ }>, {}>;
283
+ /**
284
+ * CSS pixels in the main frame's viewport, the space Chromium dispatches pointer input in. It
285
+ * is not a document offset, a device pixel, or a coordinate inside a child frame.
286
+ */
287
+ declare class ViewportPoint extends ViewportPoint_base {}
288
+ declare const ViewportRect_base: Schema.Class<ViewportRect, Schema.Struct<{
289
+ readonly x: Schema.Finite;
290
+ readonly y: Schema.Finite;
291
+ readonly width: Schema.Finite;
292
+ readonly height: Schema.Finite;
293
+ }>, {}>;
294
+ /** A box in the viewport of the frame it was read from, in CSS pixels. */
295
+ declare class ViewportRect extends ViewportRect_base {}
296
+ declare const ControlFacts_base: Schema.Class<ControlFacts, Schema.Struct<{
297
+ readonly kind: Schema.Literals<readonly ["link", "button", "input", "select", "textarea", "other"]>;
298
+ readonly label: Schema.String;
299
+ readonly disabled: Schema.Boolean;
300
+ readonly checked: Schema.optionalKey<Schema.Boolean>;
301
+ readonly selected: Schema.optionalKey<Schema.Boolean>;
302
+ readonly required: Schema.optionalKey<Schema.Boolean>;
303
+ readonly multiple: Schema.optionalKey<Schema.Boolean>;
304
+ readonly editable: Schema.Boolean;
305
+ readonly inputType: Schema.optionalKey<Schema.String>;
306
+ readonly autocomplete: Schema.optionalKey<Schema.String>;
307
+ /** A resolved link target, or where this control submits its form. Absent when over-long. */
308
+ readonly destination: Schema.optionalKey<Schema.String>;
309
+ readonly formMethod: Schema.optionalKey<Schema.Literals<readonly ["get", "post", "dialog"]>>;
310
+ readonly box: typeof ViewportRect;
311
+ readonly placement: Schema.Literals<readonly ["inside", "partial", "outside"]>;
312
+ /** `self`: the browser finds this control at its visible centre. Not a pixel comparison. */
313
+ readonly hitTest: Schema.Literals<readonly ["self", "covered", "uncertain", "unsampled"]>;
314
+ /** Only then is `box` in the main frame's viewport, the space pointer input uses. */
315
+ readonly mainFrame: Schema.Boolean;
316
+ }>, {}>;
317
+ /**
318
+ * What a host needs to decide whether a control may be acted on. Host-only: a destination can
319
+ * carry a token, so none of this is part of the model-facing `Observation`. It never includes a
320
+ * field's value or any markup.
321
+ */
322
+ declare class ControlFacts extends ControlFacts_base {}
323
+ declare const Checkpoint_base: Schema.Class<Checkpoint, Schema.Struct<{
324
+ readonly target: typeof Target;
325
+ readonly revision: Schema.Natural;
326
+ readonly url: Schema.String;
327
+ readonly text: Schema.String;
328
+ readonly textTruncated: Schema.Boolean;
329
+ readonly controls: Schema.$Array<typeof ControlFacts>;
330
+ readonly controlsTruncated: Schema.Boolean;
331
+ readonly viewport: typeof ViewportEvidence;
332
+ readonly picture: Schema.optionalKey<Schema.Struct<{
333
+ readonly mediaType: Schema.Literal<"image/png">;
334
+ readonly bytes: Schema.Uint8Array;
335
+ }>>;
336
+ readonly documentChanged: Schema.Boolean;
337
+ readonly startedMonotonicNanos: Schema.BigInt;
338
+ readonly completedMonotonicNanos: Schema.BigInt;
339
+ }>, {}>;
340
+ /**
341
+ * Passive evidence for a recorder: what was on screen, and optionally a picture of it. It issues
342
+ * no element references and never replaces the observation an agent's tools act on, so
343
+ * inspecting, checkpointing and then acting on the inspected node all compose.
344
+ *
345
+ * It is host-only, because it carries control facts. Text and picture are read one after the
346
+ * other, never atomically: the interval says when, and `documentChanged` says the document was
347
+ * replaced in between, so the two may describe different documents.
348
+ */
349
+ declare class Checkpoint extends Checkpoint_base {}
350
+ /** Omitted bounds default at admission; `scope` defaults to the whole document. */
351
+ declare const ObservationOptions: Schema.Struct<{
352
+ readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
353
+ readonly maxControls: Schema.optionalKey<Schema.Int>;
354
+ readonly scope: Schema.optionalKey<Schema.Literals<readonly ["document", "viewport"]>>;
355
+ readonly match: Schema.optionalKey<Schema.String>;
356
+ }>;
357
+ type ObservationOptions = typeof ObservationOptions.Type;
358
+ /** A checkpoint always reads the viewport. `picture` adds a PNG of it, within the byte policy. */
359
+ declare const CheckpointOptions: Schema.Struct<{
360
+ readonly maxTextBytes: Schema.optionalKey<Schema.Int>;
361
+ readonly maxControls: Schema.optionalKey<Schema.Int>;
362
+ readonly picture: Schema.optionalKey<Schema.Boolean>;
363
+ }>;
364
+ type CheckpointOptions = typeof CheckpointOptions.Type;
365
+ declare const PointerMoveRequest_base: Schema.Class<PointerMoveRequest, Schema.Struct<{
366
+ readonly to: typeof ViewportPoint;
367
+ }>, {}>;
368
+ /** One native pointer move. Easing and pacing are the caller's: send the points you want. */
369
+ declare class PointerMoveRequest extends PointerMoveRequest_base {}
370
+ declare const HoverRequest_base: Schema.Class<HoverRequest, Schema.Struct<{
371
+ readonly selector: Schema.NonEmptyString;
372
+ }>, {}>;
373
+ /** Moves the pointer onto one exact element where it is. It never scrolls to reach it. */
374
+ declare class HoverRequest extends HoverRequest_base {}
375
+ declare const WheelRequest_base: Schema.Class<WheelRequest, Schema.Struct<{
376
+ readonly deltaX: Schema.Finite;
377
+ readonly deltaY: Schema.Finite;
378
+ readonly at: Schema.optionalKey<typeof ViewportPoint>;
379
+ }>, {}>;
380
+ /**
381
+ * One native wheel event where the pointer is, or at `at` after moving there first. The browser
382
+ * chooses what scrolls, exactly as it would for a person, so a nested scroll container under
383
+ * the pointer scrolls instead of the page.
384
+ */
385
+ declare class WheelRequest extends WheelRequest_base {}
386
+ /**
387
+ * The keys a `press` may name, spelled as the `KeyboardEvent.key` the page will see. The set is
388
+ * closed on purpose: a key name is parsed by the native engine, so none reaches it unreviewed.
389
+ */
390
+ declare const NamedKey: Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>;
391
+ type NamedKey = typeof NamedKey.Type;
392
+ declare const KeyModifier: Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>;
393
+ type KeyModifier = typeof KeyModifier.Type;
394
+ /** One key, down then up, with any modifiers held around it. */
395
+ declare const KeyStroke: Schema.Struct<{
396
+ readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
397
+ readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
398
+ }>;
399
+ type KeyStroke = typeof KeyStroke.Type;
400
+ declare const PressRequest_base: Schema.Class<PressRequest, Schema.Struct<{
401
+ readonly key: Schema.Union<readonly [Schema.Literals<readonly ["Enter", "Tab", "Backspace", "Delete", "Escape", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"]>, Schema.String]>;
402
+ readonly modifiers: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["Shift", "Control", "Alt", "Meta"]>>>;
403
+ readonly into: Schema.optionalKey<Schema.NonEmptyString>;
404
+ }>, {}>;
405
+ /**
406
+ * One real key stroke. It goes to whatever has focus in the page, exactly as it would for a
407
+ * person, unless `into` names the one element that must already have it. It never focuses that
408
+ * element, because that would hide a scripted focus inside a native-input operation: click it
409
+ * first.
410
+ */
411
+ declare class PressRequest extends PressRequest_base {}
412
+ declare const TypeRequest_base: Schema.Class<TypeRequest, Schema.Struct<{
413
+ readonly text: Schema.NonEmptyString;
414
+ readonly into: Schema.optionalKey<Schema.NonEmptyString>;
415
+ }>, {}>;
416
+ /**
417
+ * Text as the real key strokes that produce it, two native commands for each character, one
418
+ * after another under a single action timeout: send a long passage as several shorter runs.
419
+ * A character the US layout cannot produce is inserted as text, as an input method commits it,
420
+ * and raises no key events. Control characters are refused, so a line break can never press
421
+ * Enter from inside a run of text: a named key is always its own `press`. `into` works as it
422
+ * does for `PressRequest`: a guard on where the text lands, never a focus.
423
+ */
424
+ declare class TypeRequest extends TypeRequest_base {}
425
+ declare const InputReceipt_base: Schema.Class<InputReceipt, Schema.Struct<{
426
+ readonly target: typeof Target;
427
+ readonly kind: Schema.Literals<readonly ["pointer-move", "hover", "wheel", "press", "type"]>;
428
+ readonly position: Schema.NullOr<typeof ViewportPoint>;
429
+ readonly delta: Schema.optionalKey<Schema.Struct<{
430
+ readonly x: Schema.Finite;
431
+ readonly y: Schema.Finite;
432
+ }>>;
433
+ readonly startedMonotonicNanos: Schema.BigInt;
434
+ readonly completedMonotonicNanos: Schema.BigInt;
435
+ }>, {}>;
436
+ /**
437
+ * What native input was dispatched, where and when. `position` is the point this owner
438
+ * commanded, or null when it has not yet placed the pointer on this page. The interval is on
439
+ * the host monotonic clock that stamps `CapturedFrame.receivedMonotonicNanos`, so input and
440
+ * pixels share one timeline. A wheel event is dispatched, not awaited: the receipt does not
441
+ * claim the page finished scrolling, or that any frame shows it. A receipt never says which
442
+ * key was pressed or what was typed.
443
+ */
444
+ declare class InputReceipt extends InputReceipt_base {}
445
+ declare const ScreenshotRequest_base: Schema.Class<ScreenshotRequest, Schema.Struct<{
446
+ readonly fullPage: Schema.Boolean;
447
+ }>, {}>;
448
+ declare class ScreenshotRequest extends ScreenshotRequest_base {}
449
+ declare const NavigationResult_base: Schema.Class<NavigationResult, Schema.Struct<{
450
+ readonly url: Schema.NonEmptyString;
451
+ }>, {}>;
452
+ declare class NavigationResult extends NavigationResult_base {}
453
+ declare const ActionResult_base: Schema.Class<ActionResult, Schema.Struct<{
454
+ readonly url: Schema.NonEmptyString;
455
+ }>, {}>;
456
+ declare class ActionResult extends ActionResult_base {}
457
+ declare const TextResult_base: Schema.Class<TextResult, Schema.Struct<{
458
+ readonly text: Schema.String;
459
+ }>, {}>;
460
+ declare class TextResult extends TextResult_base {}
461
+ declare const ScreenshotResult_base: Schema.Class<ScreenshotResult, Schema.Struct<{
462
+ readonly mediaType: Schema.Literal<"image/png">;
463
+ readonly bytes: Schema.Uint8Array;
464
+ }>, {}>;
465
+ declare class ScreenshotResult extends ScreenshotResult_base {}
466
+ declare const InlineFile_base: Schema.Class<InlineFile, Schema.Struct<{
467
+ readonly name: Schema.NonEmptyString;
468
+ readonly mediaType: Schema.NonEmptyString;
469
+ readonly bytes: Schema.Uint8Array;
470
+ }>, {}>;
471
+ /** Small selection is in-memory by design: bytes the caller already holds, never a path. */
472
+ declare class InlineFile extends InlineFile_base {}
473
+ declare const InlineFiles: Schema.$Array<typeof InlineFile>;
474
+ declare const AutomationOptions: Schema.Struct<{
475
+ readonly actionTimeoutMillis: Schema.optionalKey<Schema.Int>;
476
+ /** Independent host-only checkpoint/control-facts allowance; normalized to 10,000 by the runtime. */
477
+ readonly maxHostReads: Schema.optionalKey<Schema.Int>;
478
+ readonly maxPages: Schema.optionalKey<Schema.Int>;
479
+ readonly initialPage: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
480
+ readonly targetId: Schema.NonEmptyString;
481
+ }>, Schema.Struct<{
482
+ readonly newPage: Schema.Literal<true>;
483
+ }>]>>;
484
+ readonly popupPolicy: Schema.optionalKey<Schema.Literals<readonly ["retain", "close", "pause"]>>;
485
+ readonly dialogPolicy: Schema.optionalKey<Schema.Literals<readonly ["dismiss", "pause"]>>;
486
+ readonly pageControl: Schema.optionalKey<Schema.Boolean>;
487
+ }>;
488
+ type AutomationOptions = typeof AutomationOptions.Type;
489
+ //#endregion
490
+ export { TypeRequest as $, ObservedControl as A, SafeFilename as B, KeyModifier as C, NavigationResult as D, NavigateRequest as E, PointerMoveRequest as F, Selector as G, ScreenshotResult as H, PositiveInt as I, SessionStatus as J, SessionPhase as K, PressRequest as L, PageExecutionState as M, PageInfo as N, Observation as O, PageSuspension as P, TextResult as Q, ReadTextRequest as R, InputReceipt as S, NamedKey as T, ScrollRequest as U, ScreenshotRequest as V, SelectOptions as W, Target as X, StartNavigationRequest as Y, TargetUrl as Z, FrameInfo as _, BrowserPolicy as a, WheelRequest as at, InlineFile as b, ClickRequest as c, FillFormRequest as d, Viewport as et, FillFormResult as f, FormStop as g, FormFieldResult as h, BrowserDiagnostics as i, WaitForElementRequest as it, ObservedElement as j, ObservationOptions as k, ControlFacts as l, FormField as m, AutomationOptions as n, ViewportPoint as nt, Checkpoint as o, FillRequest as p, SessionReason as q, BrowserDiagnostic as r, ViewportRect as rt, CheckpointOptions as s, ActionResult as t, ViewportEvidence as tt, FillFormOptions as u, HoverRequest as v, KeyStroke as w, InlineFiles as x, Identifier as y, ReadingMatch as z };
491
+ export {};
492
+ //# sourceMappingURL=BrowserData-CRuxEZcn.d.mts.map
@@ -0,0 +1,3 @@
1
+ import { $ as TypeRequest, A as ObservedControl, B as SafeFilename, C as KeyModifier, D as NavigationResult, E as NavigateRequest, F as PointerMoveRequest, G as Selector, H as ScreenshotResult, I as PositiveInt, J as SessionStatus, K as SessionPhase, L as PressRequest, M as PageExecutionState, N as PageInfo, O as Observation, P as PageSuspension, Q as TextResult, R as ReadTextRequest, S as InputReceipt, T as NamedKey, U as ScrollRequest, V as ScreenshotRequest, W as SelectOptions, X as Target, Y as StartNavigationRequest, Z as TargetUrl, _ as FrameInfo, a as BrowserPolicy, at as WheelRequest, b as InlineFile, c as ClickRequest, d as FillFormRequest, et as Viewport, f as FillFormResult, g as FormStop, h as FormFieldResult, i as BrowserDiagnostics, it as WaitForElementRequest, j as ObservedElement, k as ObservationOptions, l as ControlFacts, m as FormField, n as AutomationOptions, nt as ViewportPoint, o as Checkpoint, p as FillRequest, q as SessionReason, r as BrowserDiagnostic, rt as ViewportRect, s as CheckpointOptions, t as ActionResult, tt as ViewportEvidence, u as FillFormOptions, v as HoverRequest, w as KeyStroke, x as InlineFiles, y as Identifier, z as ReadingMatch } from "./BrowserData-CRuxEZcn.mjs";
2
+ export { ActionResult, AutomationOptions, BrowserDiagnostic, BrowserDiagnostics, BrowserPolicy, Checkpoint, CheckpointOptions, ClickRequest, ControlFacts, FillFormOptions, FillFormRequest, FillFormResult, FillRequest, FormField, FormFieldResult, FormStop, FrameInfo, HoverRequest, Identifier, InlineFile, InlineFiles, InputReceipt, KeyModifier, KeyStroke, NamedKey, NavigateRequest, NavigationResult, Observation, ObservationOptions, ObservedControl, ObservedElement, PageExecutionState, PageInfo, PageSuspension, PointerMoveRequest, PositiveInt, PressRequest, ReadTextRequest, ReadingMatch, SafeFilename, ScreenshotRequest, ScreenshotResult, ScrollRequest, SelectOptions, Selector, SessionPhase, SessionReason, SessionStatus, StartNavigationRequest, Target, TargetUrl, TextResult, TypeRequest, Viewport, ViewportEvidence, ViewportPoint, ViewportRect, WaitForElementRequest, WheelRequest };
3
+ export {};