@threenative/playtest 0.3.3 → 0.3.4

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.
@@ -1,10 +1,59 @@
1
1
  import { IPlaytestObservationSnapshot, IPlaytestSetupRequest, JsonValue, IPlaytestBridgeDescription, IPlaytestBridgeReady, IPlaytestSampleRequest } from '../protocol.js';
2
- import { b as IPlaytestScenario, s as IPlaytestObservations, r as IPlaytestFramebufferCoverageObservation, j as IPlaytestCaptureProvenance, z as IPlaytestSetupApplication, l as IPlaytestDeviceMetricsObservation, e as IPlaytestDiagnostic, w as IPlaytestProtocolDiagnostic, i as IPlaytestArtifactRequest, v as IPlaytestPointer } from '../diagnostics-Bpy15z5f.js';
2
+ import { b as IPlaytestScenario, s as IPlaytestObservations, r as IPlaytestFramebufferCoverageObservation, j as IPlaytestCaptureProvenance, z as IPlaytestSetupApplication, l as IPlaytestDeviceMetricsObservation, e as IPlaytestDiagnostic, w as IPlaytestProtocolDiagnostic, i as IPlaytestArtifactRequest, v as IPlaytestPointer, _ as IAndroidAppState, $ as IAndroidPointer, a0 as IAndroidPointerInjection, a1 as IAndroidDriver } from '../diagnostics-BXhYI2sc.js';
3
+ export { a2 as AdbAndroidDriver, a3 as IAndroidDriverOptions, a4 as IAndroidLifecycleOperation, a5 as IAndroidTouchViewport, a6 as IPlaytestDeviceLifecycleObservation, a7 as IPlaytestDeviceLifecyclePhase, a8 as IPlaytestDeviceLifecyclePhysics, a9 as IPlaytestDeviceLifecycleSteps, aa as androidTouchBatches, ab as discoverAdb, ac as keyboardIsShown, ad as parseAndroidConsole, ae as parseAndroidTouchViewport, af as rotatedTouchPosition, ag as tapCommand, ah as touchPositionForViewport, ai as touchRotationFromWindowDump, aj as viewportPresentationCommands, ak as viewportPresentationObserved, al as viewportRestoreCommands } from '../diagnostics-BXhYI2sc.js';
3
4
  import { Page } from 'playwright';
4
- import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport } from '../shared-eFOF5bZO.js';
5
- export { e as IPlaytestFlagHelp, f as IPlaytestServerConfig, g as IRunStepSamples, M as ManagedServerError, P as PLAYTEST_FLAGS, h as PlaytestCliUsageError, i as failedDiagnosticsAssertion, j as formatUsage, p as parseStandalonePlaytestArgs } from '../shared-eFOF5bZO.js';
5
+ import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport } from '../shared-CHIDDJpp.js';
6
+ export { e as IPlaytestFlagHelp, f as IPlaytestServerConfig, g as IRunStepSamples, M as ManagedServerError, P as PLAYTEST_FLAGS, h as PlaytestCliUsageError, i as failedDiagnosticsAssertion, j as formatUsage, p as parseStandalonePlaytestArgs } from '../shared-CHIDDJpp.js';
6
7
  import { ChildProcess } from 'node:child_process';
7
8
 
9
+ /**
10
+ * The display half of the capture environment bake-in (abstraction report §2.10).
11
+ *
12
+ * The Layer-1/2/3 saga — headless black canvas, a Wayland session hanging Chromium at 120 s
13
+ * against 175 ms under X11, GPU starvation, blank captures — used to be solved by a wrapper
14
+ * every caller had to remember (`sh scripts/xvfb.sh`). The runner now owns the decision
15
+ * itself: pick a display strategy from the environment, strip the Wayland variables that
16
+ * send Chromium at the wrong windowing system, and provision a *private* Xvfb per run.
17
+ * `scripts/xvfb.sh` stays as a thin compatibility path over the same logic; it is no longer
18
+ * required for playtest runs.
19
+ *
20
+ * On Linux a private Xvfb is the DEFAULT, not the fallback, even when a live X display
21
+ * exists. A run that borrows the operator's desktop opens browser and host windows over
22
+ * whatever they are doing, and a long scenario sweep makes the machine unusable — so the
23
+ * display a run paints on is opt-in, through `TN_PLAYTEST_HOST_DISPLAY`. Opt in when the
24
+ * run genuinely needs the session's real GPU adapter (heavy TSL post chains have been
25
+ * observed falling back to SwiftShader under Xvfb) or when a human wants to watch it.
26
+ *
27
+ * Fail-closed applies here like everywhere else in this package: a run that needs pixels and
28
+ * cannot get a display errors naming the cause. It never falls through to a headless launch
29
+ * whose screenshots are SwiftShader blanks.
30
+ */
31
+ interface IDisplayStrategyHost {
32
+ kind: "host";
33
+ }
34
+ interface IDisplayStrategyExisting {
35
+ display: string;
36
+ kind: "existing";
37
+ }
38
+ interface IDisplayStrategyPrivateXvfb {
39
+ kind: "private-xvfb";
40
+ screen: string;
41
+ }
42
+ type IDisplayStrategy = IDisplayStrategyHost | IDisplayStrategyExisting | IDisplayStrategyPrivateXvfb;
43
+ interface IDisplayDecisionInput {
44
+ env: NodeJS.ProcessEnv;
45
+ /** Defaults to checking `/tmp/.X11-unix/X<n>` for the numbered display. */
46
+ displaySocketExists?: (display: string) => boolean;
47
+ platform: string;
48
+ }
49
+ /**
50
+ * Decide where the browser's pixels come from. On Linux that is a private Xvfb unless the
51
+ * caller asked for the session's display with `TN_PLAYTEST_HOST_DISPLAY`, and even then only
52
+ * when that display is actually live — a Wayland session never satisfies a run by itself,
53
+ * which is the hang measured at 120 s versus 175 ms.
54
+ */
55
+ declare function decideDisplayStrategy(input: IDisplayDecisionInput): IDisplayStrategy;
56
+
8
57
  declare function preflightDisplay(config: Pick<IStandalonePlaytestConfig, "headless">, scenario: Pick<IPlaytestScenario, "artifacts" | "assert" | "steps">, environment?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): IPlaytestDiagnostic | undefined;
9
58
  declare function buildReport(config: IStandalonePlaytestConfig, scenario: IPlaytestScenario, beforeSnapshot: IPlaytestObservationSnapshot | undefined, afterSnapshot: IPlaytestObservationSnapshot | undefined, consoleEntries: IRunnerConsoleEntry[], networkEntries: Array<{
10
59
  method: string;
@@ -16,7 +65,7 @@ declare function buildReport(config: IStandalonePlaytestConfig, scenario: IPlayt
16
65
  code: "TN_CAPTURE_BLANK";
17
66
  label: string;
18
67
  reason: string;
19
- } | undefined, movementSamples?: readonly IMovementSampleInterval[], setup?: IPlaytestSetupApplication | undefined, deviceMetrics?: IPlaytestDeviceMetricsObservation | undefined, movementBaselineSnapshot?: IPlaytestObservationSnapshot | undefined, startup?: IStandalonePlaytestReport["startup"]): IStandalonePlaytestReport;
68
+ } | undefined, movementSamples?: readonly IMovementSampleInterval[], setup?: IPlaytestSetupApplication | undefined, deviceMetrics?: IPlaytestDeviceMetricsObservation | undefined, movementBaselineSnapshot?: IPlaytestObservationSnapshot | undefined, startup?: IStandalonePlaytestReport["startup"], deviceLifecycle?: IPlaytestObservations["deviceLifecycle"]): IStandalonePlaytestReport;
20
69
 
21
70
  /** The only seam between assertion orchestration and an application bridge. */
22
71
  interface IBridgeTransport {
@@ -186,241 +235,6 @@ interface IBrowserPointerChange {
186
235
  }
187
236
  declare function reconcileBrowserPointers(previous: ReadonlyMap<number, Required<IPlaytestPointer>>, next: readonly IPlaytestPointer[]): IBrowserPointerChange[];
188
237
 
189
- interface IAndroidDriverOptions {
190
- activity: string;
191
- adbPath?: string;
192
- packageName: string;
193
- serial?: string;
194
- /** Android user id to target; when omitted, the device's current foreground user is detected. */
195
- user?: string;
196
- /**
197
- * The rotation between the touchscreen's raw axes and the frame the app draws in, when the
198
- * device cannot be asked.
199
- *
200
- * Normally this is read from the window — `dumpsys window`'s `mRotation`, inverted, and then
201
- * `dumpsys input`'s `SurfaceOrientation` and the `user_rotation` setting behind it. Those two
202
- * older sources are why this option exists: an orientation-locked game on a device whose
203
- * display never rotated reads 0 from both while its window is turned 90° from the panel, so an
204
- * injected touch lands somewhere else entirely and every input assertion fails for a reason
205
- * that has nothing to do with the game.
206
- *
207
- * Set explicitly to make such a run reproducible, and say so in the evidence. Fails closed on
208
- * anything but 0, 1, 2 or 3.
209
- */
210
- touchRotation?: number;
211
- }
212
- interface IAndroidDriver {
213
- captureConsole(): Promise<Array<{
214
- text: string;
215
- type: string;
216
- }>>;
217
- /** The device this driver is bound to, when it knows; reported next to its metric samples. */
218
- deviceSerial?(): string | undefined;
219
- isAlive(): Promise<boolean>;
220
- prepare(endpoint: string, mailboxRoot?: string, viewport?: {
221
- height: number;
222
- width: number;
223
- }): Promise<void>;
224
- readFile?(path: string): Promise<string | undefined>;
225
- removeFile?(path: string): Promise<void>;
226
- /** Raw adb passthrough, so the host can measure the device itself. Read-only probes only. */
227
- runAdb?(args: readonly string[]): Promise<string>;
228
- screenshot(path: string): Promise<void>;
229
- setPointers?(pointers: readonly IAndroidPointer[]): Promise<IAndroidPointerInjection>;
230
- startScreenRecording?(): Promise<void>;
231
- /** One OS tap in viewport pixels. Works on emulators and physical devices alike. */
232
- tap?(x: number, y: number): Promise<void>;
233
- /** Put the soft keyboard away, and report whether one was up. */
234
- hideKeyboard?(): Promise<boolean>;
235
- stop(): Promise<void>;
236
- stopScreenRecording?(path: string): Promise<void>;
237
- writeFile?(path: string, contents: string): Promise<void>;
238
- }
239
- interface IAndroidPointer {
240
- buttons?: number;
241
- id: number;
242
- x: number;
243
- y: number;
244
- }
245
- interface IAndroidPointerInjection {
246
- activeIds: number[];
247
- injection: "adb-emu-event-protocol-b";
248
- rotation: number;
249
- trackingIds: number[];
250
- }
251
- interface IAndroidTouchViewport {
252
- device: {
253
- height: number;
254
- width: number;
255
- };
256
- logical: {
257
- bottom: number;
258
- left: number;
259
- right: number;
260
- top: number;
261
- };
262
- orientation: number | undefined;
263
- physical: {
264
- bottom: number;
265
- left: number;
266
- right: number;
267
- top: number;
268
- };
269
- }
270
- declare class AdbAndroidDriver implements IAndroidDriver {
271
- private readonly options;
272
- private static readonly COVERAGE_VIDEO_PATH;
273
- private readonly adbPath;
274
- private screenrecord?;
275
- private screenrecordError?;
276
- private readonly touchSlots;
277
- private nextTrackingId;
278
- private rotation?;
279
- private touchViewport?;
280
- private readonly user?;
281
- private activeUser?;
282
- private viewportPresented;
283
- constructor(options: IAndroidDriverOptions);
284
- prepare(endpoint: string, mailboxRoot?: string, viewport?: {
285
- height: number;
286
- width: number;
287
- }): Promise<void>;
288
- private resolveUser;
289
- /**
290
- * Put the device into the scenario's viewport, and fail closed if it did not take.
291
- *
292
- * A silent failure here is the expensive one: the run continues, the touches arrive, the
293
- * assertions go red, and the report blames the game for a device that was never showing the
294
- * viewport the scenario asked for.
295
- */
296
- private presentViewport;
297
- tap(x: number, y: number): Promise<void>;
298
- /**
299
- * Dismiss the soft keyboard and wait for it to actually be gone.
300
- *
301
- * Measured on the physical Pixel 8: focusing a text field opens the IME, the WebView reflows
302
- * into the space left above it, and the page's centred menu rides up — so a coordinate computed
303
- * against the scenario's viewport now points at the keyboard. A tap there does not merely miss
304
- * the control; it types a character into the field it meant to submit.
305
- *
306
- * BACK is the dismissal the platform guarantees. The wait is the point: the reflow happens on
307
- * the next layout pass, and a click sent into the middle of it lands wherever the menu was
308
- * halfway through moving.
309
- */
310
- hideKeyboard(): Promise<boolean>;
311
- captureConsole(): Promise<Array<{
312
- text: string;
313
- type: string;
314
- }>>;
315
- screenshot(path: string): Promise<void>;
316
- startScreenRecording(): Promise<void>;
317
- stopScreenRecording(path: string): Promise<void>;
318
- isAlive(): Promise<boolean>;
319
- setPointers(pointers: readonly IAndroidPointer[]): Promise<IAndroidPointerInjection>;
320
- readFile(path: string): Promise<string | undefined>;
321
- removeFile(path: string): Promise<void>;
322
- stop(): Promise<void>;
323
- private readRotation;
324
- writeFile(path: string, contents: string): Promise<void>;
325
- deviceSerial(): string | undefined;
326
- /**
327
- * The device-metrics probes read `dumpsys`, `logcat` and sysfs through here. Deliberately a
328
- * thin passthrough rather than a metrics API: the parsing belongs to deviceMetrics.ts, which
329
- * is unit-tested against real captured device output.
330
- */
331
- runAdb(args: readonly string[]): Promise<string>;
332
- private adb;
333
- private waitForScreenRecorder;
334
- private abortScreenRecording;
335
- private serialArgs;
336
- }
337
- declare function parseAndroidConsole(output: string): Array<{
338
- text: string;
339
- type: string;
340
- }>;
341
- declare function parseAndroidTouchViewport(output: string): IAndroidTouchViewport;
342
- /** Map a normalized logical-display point to the raw touchscreen axes. */
343
- declare function touchPositionForViewport(x: number, y: number, viewport: IAndroidTouchViewport, rotationOverride?: number): [number, number];
344
- /**
345
- * Splits slot identity from coordinates into separate synced `adb emu event send` batches.
346
- *
347
- * The emulator console drops ABS_MT_POSITION_X/Y from any batch that also carries an
348
- * ABS_MT_TRACKING_ID: the command reports `OK` and the coordinates never reach the device, so
349
- * every contact lands at (0, 0) and a two-finger gesture reads as two touches in the same
350
- * screen half — the exact failure that made the simultaneous-touch proof unprovable.
351
- * Confirmed against `getevent -lt /dev/input/event2` on emulator 36.6.11 with the android-35
352
- * google_apis image. Identity goes first so a slot exists before it is positioned.
353
- */
354
- declare function androidTouchBatches(identity: readonly string[], positions: readonly string[]): string[][];
355
- /**
356
- * Confirm that Android reported the requested viewport, including the physical-size omission.
357
- *
358
- * @situation verify that an Android device presented the requested viewport
359
- * @situation accept the physical panel size when `wm size` omits its override line
360
- * @example viewportPresentationObserved(undefined, "1080x2400", { width: 1080, height: 2400 });
361
- */
362
- declare function viewportPresentationObserved(override: string | undefined, expected: string | undefined, physical: {
363
- height: number;
364
- width: number;
365
- }): boolean;
366
- /**
367
- * The touch rotation for the window `dumpsys window` just described, or `undefined`.
368
- *
369
- * `mRotation` says how far the window's content is turned from the panel's natural frame.
370
- * {@link rotatedTouchPosition} converts the other way — a point in that content back to the
371
- * panel's raw axes — so the value it needs is the inverse, and handing it `mRotation` directly
372
- * is a 180-degree error on either odd rotation.
373
- *
374
- * This is the source of truth because it describes the *window*. `dumpsys input`'s
375
- * `SurfaceOrientation` is absent on the emulator, and `user_rotation` is the user's preference:
376
- * an orientation-locked game on a device the user never turned reads 0 there while its window
377
- * is turned 90 degrees off the panel, so every injected touch lands somewhere else.
378
- */
379
- declare function touchRotationFromWindowDump(dump: string): number | undefined;
380
- /**
381
- * Make the device present a scenario's declared viewport, one device pixel per CSS pixel.
382
- *
383
- * A scenario's `viewport` is a declared test condition, and the browser target honours it by
384
- * sizing the window. Without the same courtesy here, a UI page lays out at whatever CSS viewport
385
- * the device's density happens to give — 914x411 on a 2400x1080 panel at 420dpi — and a step
386
- * that names a point in viewport pixels lands on whatever the device's own layout put there.
387
- * Nothing about that failure looks like a coordinate problem: the touch arrives, the host
388
- * hit-tests it honestly, and the control simply is not where the scenario said.
389
- *
390
- * Density 160 is the whole mechanism: it makes `devicePixelRatio` 1, so a viewport pixel, a CSS
391
- * pixel and a device pixel are the same pixel and the page lays out exactly as it does on web.
392
- * The size is written in the panel's natural frame, which is why it is transposed for the
393
- * portrait-natural devices every phone and emulator here happens to be.
394
- */
395
- declare function viewportPresentationCommands(viewport: {
396
- height: number;
397
- width: number;
398
- }, physical: {
399
- height: number;
400
- width: number;
401
- }): string[][];
402
- /**
403
- * One OS-level tap, in the display's current orientation.
404
- *
405
- * With the viewport presented, that orientation *is* the scenario's viewport and the coordinate
406
- * needs no rotation — which is the second reason to prefer this over the emulator's pointer
407
- * protocol. The first is that `adb emu event send` exists only on emulators, and a click step
408
- * that only works on an emulator is a click step that does not work.
409
- */
410
- declare function tapCommand(x: number, y: number): string[];
411
- /** Whether an input method window is on screen, from `dumpsys input_method`. */
412
- declare function keyboardIsShown(dump: string): boolean;
413
- /**
414
- * Undo the presentation.
415
- *
416
- * `reset` and never the numbers read beforehand: a run that crashed between reading and writing
417
- * would restore a size it had already replaced, and leave the device quietly wrong for whoever
418
- * measures on it next.
419
- */
420
- declare function viewportRestoreCommands(): string[][];
421
- declare function rotatedTouchPosition(x: number, y: number, rotation: number): [number, number];
422
- declare function discoverAdb(environment?: NodeJS.ProcessEnv): string;
423
-
424
238
  declare const ANDROID_TRANSPORT_CAPABILITIES: readonly ["browser.console", "browser.input", "browser.screenshot", "device.metrics", "runtime.diagnostics"];
425
239
  interface IDeviceMailbox {
426
240
  read(path: string): Promise<string | undefined>;
@@ -468,6 +282,7 @@ declare class DeviceMailboxTransport implements IDevicePlaytestTransport {
468
282
  private closed;
469
283
  private nextId;
470
284
  private nextOrder;
285
+ private readonly abandonedIds;
471
286
  private responseObserver?;
472
287
  constructor(mailbox: IDeviceMailbox, paths: IDeviceMailboxPaths, operationTimeoutMs?: number);
473
288
  setResponseObserver(observer: (observation: IDeviceResponseObservation) => void): void;
@@ -497,18 +312,25 @@ interface IAndroidPlaytestDependencies {
497
312
  transport?: IDevicePlaytestTransport;
498
313
  }
499
314
  interface IDevicePlaytestDriver {
315
+ /** Send the app behind HOME and wait until the device reports it unfocused. */
316
+ background?(): Promise<void>;
500
317
  captureConsole(): Promise<Array<{
501
318
  text: string;
502
319
  type: string;
503
320
  }>>;
504
321
  deviceSerial?(): string | undefined;
322
+ /** Bring the launched app back to the foreground without force-stopping it. */
323
+ foreground?(): Promise<void>;
505
324
  isAlive(): Promise<boolean>;
325
+ /** What the device says about the app right now; the lifecycle phases are read from this. */
326
+ lifecycleState?(): Promise<IAndroidAppState>;
506
327
  prepare(endpoint: string, mailboxRoot?: string, viewport?: {
507
328
  height: number;
508
329
  width: number;
509
330
  }): Promise<void>;
510
331
  readFile?(path: string): Promise<string | undefined>;
511
332
  removeFile?(path: string): Promise<void>;
333
+ rotate?(rotation: number): Promise<void>;
512
334
  runAdb?(args: readonly string[]): Promise<string>;
513
335
  screenshot(path: string): Promise<void>;
514
336
  setPointers?(pointers: readonly IAndroidPointer[]): Promise<IAndroidPointerInjection>;
@@ -563,6 +385,15 @@ declare class DesktopPlaytestDriver implements IDevicePlaytestDriver {
563
385
  isAlive(): Promise<boolean>;
564
386
  prepare(_endpoint: string, mailboxRoot?: string): Promise<void>;
565
387
  screenshot(path: string): Promise<void>;
388
+ /**
389
+ * Why a screenshot produced no file. The host's own lines are the only place that answer is
390
+ * written, and the request file's presence splits the failure in two: left behind means the host
391
+ * never looked, consumed means it read the request and the capture never landed. A bounded tail,
392
+ * never the whole log — a 40k-line dump is how a timeout becomes unreadable. The tail keeps the
393
+ * host's tagged lines and the entries classified as errors, because the root cause (an EGL
394
+ * failure, a texture that never arrived) is usually an untagged line the tag filter alone drops.
395
+ */
396
+ private describeScreenshotTimeout;
566
397
  stop(): Promise<void>;
567
398
  private recordOutput;
568
399
  private flushOutput;
@@ -795,4 +626,4 @@ interface IBrowserCaptureSession {
795
626
  */
796
627
  declare function withBrowserCapture<T>(config: IStandalonePlaytestConfig, capture: (session: IBrowserCaptureSession) => Promise<T>, signal?: AbortSignal): Promise<T>;
797
628
 
798
- export { ANDROID_TRANSPORT_CAPABILITIES, AdbAndroidDriver, DesktopPlaytestDriver, DeviceBridgeTransport, DeviceMailboxTransport, type IAndroidDriver, type IAndroidDriverOptions, type IAndroidPlaytestDependencies, type IAndroidPointer, type IAndroidPointerInjection, type IAndroidTouchViewport, type IBridgeTransport, type IBrowserCaptureSession, type IBrowserPointerChange, type IDesktopPlaytestDependencies, type IDesktopPlaytestDriverOptions, type IDeviceMailbox, type IDeviceMailboxPaths, type IDevicePlaytestDriver, type IDevicePlaytestTarget, type IDevicePlaytestTransport, type IDeviceResponseObservation, type IIosCommandOptions, type IIosDriverOptions, type IIosPlaytestDependencies, ILabeledPlaytestSample, IMovementSampleInterval, type IPipelineCapture, type IPipelineCaptureBoundary, type IPipelineCaptureCounts, type IPipelineCaptureEvent, type IPipelineCaptureProvenance, type IPipelineCaptureShader, type IPipelineContributorSummary, type IPipelinePassSummary, type IPipelineProgramReasonSummary, type IPipelineSizeTimePassSummary, type IPipelineSizeTimeSummary, type IPipelineSummary, type IPipelineWarmupSummary, type IPlaytestBridgeClient, type IRunIosCommand, IRunnerConsoleEntry, IStandalonePlaytestConfig, IStandalonePlaytestReport, type IStandalonePlaytestRunOptions, type IosTransportKind, LocalDeviceMailbox, PERFORMANCE_BROWSER_ARGS, PIPELINE_CAPTURE_VERSION, PIPELINE_EVENT_MARKER, type PipelineCaptureKind, type PipelineCaptureMode, type PipelineCaptureSource, type PipelineCaptureStatus, PlaytestBridgeError, PlaywrightTransport, STANDALONE_PLAYTEST_OBSERVATION_FIELDS, WEBGPU_BROWSER_ARGS, XcrunIosDriver, advanceFixedStep, advanceTimeoutMs, androidMailboxPaths, androidTouchBatches, batchArtifactDirectory, boundedTeardownStep, bridgeWaitTimeoutMs, buildReport, captureVisualSurface, connectPlaytestBridge, connectPlaytestBridgeTransport, deviceMailboxPaths, deviceTimeoutDiagnostic, discoverAdb, formatPipelineSummary, handlePlaytestSignal, initStandalonePlaytest, isRuntimeReadout, keyboardIsShown, openPageAndConnectBridge, pageLifecycleDiagnostic, parseAndroidConsole, parseAndroidTouchViewport, parseLaunchedPid, parsePipelineCapture, parsePipelineEventMarkers, playtestStepDrivesMovement, preflightDisplay, reconcileBrowserPointers, recordToScenario, requireAssertions, resolveBrowserArguments, resolveManagedServerCommand, resolveManagedServerConfig, rotatedTouchPosition, runAndroidPlaytest, runDesktopPlaytest, runDevicePlaytest, runIosPlaytest, runStandalonePlaytest, runStandalonePlaytests, softwareAdapterName, substituteManagedPort, summarizePipelineCapture, tapCommand, touchPositionForViewport, touchRotationFromWindowDump, validateDeviceEndpoint, viewportPresentationCommands, viewportPresentationObserved, viewportRestoreCommands, withBrowserCapture, writeCaptureProvenance, writeObservationArtifacts };
629
+ export { ANDROID_TRANSPORT_CAPABILITIES, DesktopPlaytestDriver, DeviceBridgeTransport, DeviceMailboxTransport, IAndroidAppState, IAndroidDriver, type IAndroidPlaytestDependencies, IAndroidPointer, IAndroidPointerInjection, type IBridgeTransport, type IBrowserCaptureSession, type IBrowserPointerChange, type IDesktopPlaytestDependencies, type IDesktopPlaytestDriverOptions, type IDeviceMailbox, type IDeviceMailboxPaths, type IDevicePlaytestDriver, type IDevicePlaytestTarget, type IDevicePlaytestTransport, type IDeviceResponseObservation, type IDisplayStrategy, type IIosCommandOptions, type IIosDriverOptions, type IIosPlaytestDependencies, ILabeledPlaytestSample, IMovementSampleInterval, type IPipelineCapture, type IPipelineCaptureBoundary, type IPipelineCaptureCounts, type IPipelineCaptureEvent, type IPipelineCaptureProvenance, type IPipelineCaptureShader, type IPipelineContributorSummary, type IPipelinePassSummary, type IPipelineProgramReasonSummary, type IPipelineSizeTimePassSummary, type IPipelineSizeTimeSummary, type IPipelineSummary, type IPipelineWarmupSummary, type IPlaytestBridgeClient, type IRunIosCommand, IRunnerConsoleEntry, IStandalonePlaytestConfig, IStandalonePlaytestReport, type IStandalonePlaytestRunOptions, type IosTransportKind, LocalDeviceMailbox, PERFORMANCE_BROWSER_ARGS, PIPELINE_CAPTURE_VERSION, PIPELINE_EVENT_MARKER, type PipelineCaptureKind, type PipelineCaptureMode, type PipelineCaptureSource, type PipelineCaptureStatus, PlaytestBridgeError, PlaywrightTransport, STANDALONE_PLAYTEST_OBSERVATION_FIELDS, WEBGPU_BROWSER_ARGS, XcrunIosDriver, advanceFixedStep, advanceTimeoutMs, androidMailboxPaths, batchArtifactDirectory, boundedTeardownStep, bridgeWaitTimeoutMs, buildReport, captureVisualSurface, connectPlaytestBridge, connectPlaytestBridgeTransport, decideDisplayStrategy, deviceMailboxPaths, deviceTimeoutDiagnostic, formatPipelineSummary, handlePlaytestSignal, initStandalonePlaytest, isRuntimeReadout, openPageAndConnectBridge, pageLifecycleDiagnostic, parseLaunchedPid, parsePipelineCapture, parsePipelineEventMarkers, playtestStepDrivesMovement, preflightDisplay, reconcileBrowserPointers, recordToScenario, requireAssertions, resolveBrowserArguments, resolveManagedServerCommand, resolveManagedServerConfig, runAndroidPlaytest, runDesktopPlaytest, runDevicePlaytest, runIosPlaytest, runStandalonePlaytest, runStandalonePlaytests, softwareAdapterName, substituteManagedPort, summarizePipelineCapture, validateDeviceEndpoint, withBrowserCapture, writeCaptureProvenance, writeObservationArtifacts };