@threenative/playtest 0.3.12 → 0.3.15

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,10 @@
1
1
  import { IPlaytestSetupRequest, JsonValue, IPlaytestBridgeDescription, IPlaytestBridgeReady, IPlaytestSampleRequest, IPlaytestObservationSnapshot } from '../protocol.js';
2
- import { e as IPlaytestScenario, f as IPlaytestArtifactRequest, k as IPlaytestPointer } from '../schema-base-C2pIQ165.js';
3
- import { q as IPlaytestSetupApplication, p as IPlaytestProtocolDiagnostic, o as IPlaytestObservations, n as IPlaytestFramebufferCoverageObservation, f as IPlaytestCaptureProvenance, h as IPlaytestDeviceMetricsObservation, b as IPlaytestDiagnostic, E as IAndroidAppState, F as IAndroidPointer, G as IAndroidPointerInjection, J as IAndroidDriver } from '../diagnostics-BPaaU6JB.js';
4
- export { K as AdbAndroidDriver, L as IAndroidDriverOptions, M as IAndroidLifecycleOperation, N as IAndroidTouchViewport, O as IPlaytestDeviceLifecycleObservation, Q as IPlaytestDeviceLifecyclePhase, R as IPlaytestDeviceLifecyclePhysics, S as IPlaytestDeviceLifecycleSteps, T as androidTouchBatches, U as discoverAdb, V as keyboardIsShown, W as parseAndroidConsole, X as parseAndroidTouchViewport, Y as rotatedTouchPosition, Z as tapCommand, _ as touchPositionForViewport, $ as touchRotationFromWindowDump, a0 as viewportPresentationCommands, a1 as viewportPresentationObserved, a2 as viewportRestoreCommands } from '../diagnostics-BPaaU6JB.js';
2
+ import { e as IPlaytestScenario, f as IPlaytestArtifactRequest, l as IPlaytestPointer } from '../schema-base-D8wNuOLE.js';
3
+ import { q as IPlaytestSetupApplication, p as IPlaytestProtocolDiagnostic, o as IPlaytestObservations, n as IPlaytestFramebufferCoverageObservation, f as IPlaytestCaptureProvenance, h as IPlaytestDeviceMetricsObservation, b as IPlaytestDiagnostic, E as IAndroidDriver, F as IAndroidAppState, G as IAndroidPointer, J as IAndroidPointerInjection } from '../diagnostics-BDWgOKJj.js';
4
+ export { K as AdbAndroidDriver, L as IAndroidDriverOptions, M as IAndroidLifecycleOperation, N as IAndroidTouchViewport, O as IPlaytestDeviceLifecycleObservation, Q as IPlaytestDeviceLifecyclePhase, R as IPlaytestDeviceLifecyclePhysics, S as IPlaytestDeviceLifecycleSteps, T as androidTouchBatches, U as discoverAdb, V as keyboardIsShown, W as parseAndroidConsole, X as parseAndroidTouchViewport, Y as rotatedTouchPosition, Z as tapCommand, _ as touchPositionForViewport, $ as touchRotationFromWindowDump, a0 as viewportPresentationCommands, a1 as viewportPresentationObserved, a2 as viewportRestoreCommands } from '../diagnostics-BDWgOKJj.js';
5
5
  import { Page } from 'playwright';
6
- import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport } from '../shared-D52a_m0V.js';
7
- export { e as IPlaytestFlagHelp, f as IPlaytestServerConfig, g as IRunStepSamples, M as ManagedServerError, P as PLAYTEST_FLAGS, h as PlaytestCliUsageError, i as advanceFixedStep, j as captureVisualSurface, k as failedDiagnosticsAssertion, l as formatUsage, p as parseStandalonePlaytestArgs, m as playtestStepDrivesMovement, w as withScenarioClock } from '../shared-D52a_m0V.js';
6
+ import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport } from '../shared-C6k3MGh2.js';
7
+ export { e as IPlaytestFlagHelp, f as IPlaytestServerConfig, g as IRunStepSamples, M as ManagedServerError, P as PLAYTEST_FLAGS, h as PlaytestCliUsageError, i as advanceFixedStep, j as captureVisualSurface, k as failedDiagnosticsAssertion, l as formatUsage, p as parseStandalonePlaytestArgs, m as playtestStepDrivesMovement, w as withScenarioClock } from '../shared-C6k3MGh2.js';
8
8
  import { ChildProcess } from 'node:child_process';
9
9
 
10
10
  /** The only seam between assertion orchestration and an application bridge. */
@@ -241,6 +241,225 @@ interface IBrowserPointerChange {
241
241
  }
242
242
  declare function reconcileBrowserPointers(previous: ReadonlyMap<number, Required<IPlaytestPointer>>, next: readonly IPlaytestPointer[]): IBrowserPointerChange[];
243
243
 
244
+ /** Shared parser and aggregation for browser pipeline censuses and native pipeline markers. */
245
+ declare const PIPELINE_CAPTURE_VERSION: 1;
246
+ declare const PIPELINE_EVENT_MARKER = "TN_PIPELINE_EVENT:";
247
+ type PipelineCaptureSource = "browser" | "native";
248
+ type PipelineCaptureKind = "compute" | "render";
249
+ type PipelineCaptureMode = "sync" | "async";
250
+ type PipelineCaptureStatus = "created" | "failed" | "pending";
251
+ interface IPipelineCaptureShader {
252
+ readonly bytes: number;
253
+ readonly hash: string;
254
+ }
255
+ interface IPipelineCaptureProvenance {
256
+ readonly material?: {
257
+ readonly id?: number;
258
+ readonly name?: string;
259
+ readonly type?: string;
260
+ };
261
+ readonly object?: {
262
+ readonly id?: number;
263
+ readonly name?: string;
264
+ readonly uuid?: string;
265
+ };
266
+ readonly unknown: boolean;
267
+ }
268
+ interface IPipelineCaptureEvent {
269
+ readonly sequence: number;
270
+ readonly programIdentity: string;
271
+ readonly pipelineIdentity: string;
272
+ readonly kind: PipelineCaptureKind;
273
+ readonly pass: string;
274
+ readonly mode: PipelineCaptureMode;
275
+ readonly status: PipelineCaptureStatus;
276
+ readonly vertex?: IPipelineCaptureShader;
277
+ readonly fragment?: IPipelineCaptureShader;
278
+ readonly compute?: IPipelineCaptureShader;
279
+ readonly provenance: IPipelineCaptureProvenance;
280
+ readonly reasons: readonly string[];
281
+ readonly startedMs: number;
282
+ readonly settledMs?: number;
283
+ readonly serviceMs?: number;
284
+ readonly promiseMs?: number;
285
+ readonly queueMs?: number;
286
+ readonly wallMs?: number;
287
+ readonly label?: string;
288
+ readonly error?: string;
289
+ readonly nodeBuilds?: number;
290
+ readonly beforeFirstPresent?: boolean;
291
+ readonly beforeWarmUpSettled?: boolean;
292
+ readonly afterWarmUpScope?: string;
293
+ }
294
+ interface IPipelineCaptureNodeBuild {
295
+ readonly provenance: IPipelineCaptureProvenance;
296
+ readonly startedMs: number;
297
+ readonly beforeFirstPresent?: boolean;
298
+ readonly beforeWarmUpSettled?: boolean;
299
+ readonly afterWarmUpScope?: string;
300
+ }
301
+ interface IPipelineCaptureCounts {
302
+ readonly lookups: number;
303
+ readonly creations: number;
304
+ readonly failures: number;
305
+ readonly pending: number;
306
+ readonly uniquePrograms: number;
307
+ readonly uniquePipelines: number;
308
+ readonly recordedEvents: number;
309
+ readonly droppedEvents: number;
310
+ readonly nodeBuilds?: number;
311
+ }
312
+ /**
313
+ * What ended the capture, and therefore what "complete" is allowed to mean.
314
+ *
315
+ * `finalized` is a process that exited: the host drained its compile pool and printed a final
316
+ * count. `checkpoint` is a live snapshot from a present, which is all a run ended by
317
+ * `am force-stop` can produce — every event up to that present is accounted for and nothing was
318
+ * still compiling, and the capture claims nothing about the run after it.
319
+ */
320
+ interface IPipelineCaptureBoundary {
321
+ readonly kind: "checkpoint" | "finalized";
322
+ readonly events: number;
323
+ readonly outstanding?: number;
324
+ readonly present?: number;
325
+ }
326
+ interface IPipelineCapture {
327
+ readonly version: number;
328
+ readonly source: PipelineCaptureSource;
329
+ readonly boundary?: IPipelineCaptureBoundary;
330
+ readonly complete: boolean;
331
+ readonly overflowed: boolean;
332
+ readonly backend?: Readonly<Record<string, unknown>>;
333
+ readonly clock?: Readonly<Record<string, unknown>>;
334
+ readonly build?: Readonly<Record<string, unknown>>;
335
+ readonly adapter?: Readonly<Record<string, unknown>>;
336
+ readonly firstPresent?: {
337
+ readonly boundaryMs: number;
338
+ readonly eventsSettled: number;
339
+ };
340
+ readonly warmUpSettled?: {
341
+ readonly boundaryMs: number;
342
+ readonly eventsSettled: number;
343
+ readonly nodeBuilds: number;
344
+ readonly renderPipelineCreations: number;
345
+ };
346
+ readonly warmUpScopes?: readonly {
347
+ readonly label: string;
348
+ readonly boundaryMs: number;
349
+ readonly eventsSettled: number;
350
+ readonly nodeBuilds: number;
351
+ readonly renderPipelineCreations: number;
352
+ readonly firstDraw?: {
353
+ readonly nodeBuilds: number;
354
+ readonly renderPipelineCreations: number;
355
+ };
356
+ }[];
357
+ readonly counts: IPipelineCaptureCounts;
358
+ readonly events: readonly IPipelineCaptureEvent[];
359
+ readonly nodeBuilds?: readonly IPipelineCaptureNodeBuild[];
360
+ readonly incompleteReasons: readonly string[];
361
+ }
362
+ interface IPipelinePassSummary {
363
+ readonly creations: number;
364
+ readonly failures: number;
365
+ readonly beforeFirstPresent: number;
366
+ /** Sum of observed device-call service durations; absent when the driver did not expose them. */
367
+ readonly serviceMs?: number;
368
+ readonly serviceSamples: number;
369
+ readonly pass: string;
370
+ }
371
+ interface IPipelineContributorSummary {
372
+ readonly afterWarmUpSettledCreations: number;
373
+ readonly afterWarmUpSettledNodeBuilds: number;
374
+ readonly creations: number;
375
+ readonly failures: number;
376
+ readonly label: string;
377
+ readonly nodeBuilds: number;
378
+ readonly sampleCount: number;
379
+ /** Sum of observed device-call service durations; absent when the driver did not expose them. */
380
+ readonly serviceMs?: number;
381
+ }
382
+ interface IPipelineProgramReasonSummary {
383
+ readonly creations: number;
384
+ readonly programIdentity: string;
385
+ readonly reasons: readonly string[];
386
+ }
387
+ interface IPipelineSizeTimePassSummary {
388
+ readonly meanBytes: number;
389
+ readonly meanServiceMs: number;
390
+ readonly pass: string;
391
+ readonly samples: number;
392
+ }
393
+ interface IPipelineSizeTimeSummary {
394
+ readonly byPass: readonly IPipelineSizeTimePassSummary[];
395
+ readonly samples: number;
396
+ readonly statement: string;
397
+ }
398
+ interface IPipelineWarmupSummary {
399
+ readonly afterFirstPresent: number;
400
+ readonly afterWarmUpSettled: number;
401
+ readonly beforeFirstPresent: number;
402
+ readonly eventsSettledAtFirstPresent?: number;
403
+ readonly eventsSettledAtWarmUpSettled?: number;
404
+ readonly nodeBuildsAfterWarmUpSettled?: number;
405
+ readonly renderPipelineCreationsAfterWarmUpSettled?: number;
406
+ /** Post-boundary work attributed to material contributors already observed during warm-up. */
407
+ readonly warmedNodeBuildsAfterWarmUpSettled?: number;
408
+ readonly warmedRenderPipelineCreationsAfterWarmUpSettled?: number;
409
+ readonly total: number;
410
+ readonly unreported: number;
411
+ readonly scopes: readonly {
412
+ readonly label: string;
413
+ readonly nodeBuilds: number;
414
+ readonly renderPipelineCreations: number;
415
+ readonly observed?: boolean;
416
+ }[];
417
+ }
418
+ interface IPipelineSummary {
419
+ readonly adapter?: Readonly<Record<string, unknown>>;
420
+ readonly boundary?: IPipelineCaptureBoundary;
421
+ readonly build?: Readonly<Record<string, unknown>>;
422
+ readonly complete: boolean;
423
+ readonly counts: IPipelineCaptureCounts;
424
+ readonly contributors: readonly IPipelineContributorSummary[];
425
+ readonly incompleteReasons: readonly string[];
426
+ readonly passTotals: readonly IPipelinePassSummary[];
427
+ readonly programReasons: readonly IPipelineProgramReasonSummary[];
428
+ readonly sizeTime: IPipelineSizeTimeSummary;
429
+ readonly source: PipelineCaptureSource;
430
+ readonly warmup: IPipelineWarmupSummary;
431
+ }
432
+ /** Parse a capture file, either as a JSON browser census or a native log containing markers. */
433
+ declare function parsePipelineCapture(input: string | unknown): IPipelineCapture;
434
+ /** Parse only native marker lines, preserving the same malformed-input contract as perf. */
435
+ declare function parsePipelineEventMarkers(text: string): IPipelineCaptureEvent[];
436
+ declare function summarizePipelineCapture(capture: IPipelineCapture): IPipelineSummary;
437
+ declare function formatPipelineSummary(summary: IPipelineSummary): string;
438
+
439
+ /**
440
+ * The one-minute load average and the core count of the machine that ran the report. Absolute
441
+ * milliseconds measured while more than half the cores are busy are somebody else's contention.
442
+ *
443
+ * This is the rule's one home: `scripts/engine-load-test/report.ts` imports it from here, because a
444
+ * package must not reach into `scripts/` and the benchmark lane must not keep a second copy that can
445
+ * drift from the verdict a playtest gives.
446
+ */
447
+ interface IPerfHostLoadReading {
448
+ readonly cores: number;
449
+ readonly load1: number;
450
+ }
451
+ interface IPerfHostLoad extends IPerfHostLoadReading {
452
+ readonly absolutes: "invalid-absolute" | "valid";
453
+ }
454
+ interface IPerfHostLoadSource {
455
+ cores(): number;
456
+ loadavg(): number[];
457
+ }
458
+ /** Absolutes are invalid once the one-minute load passes half the cores. */
459
+ declare function absolutesVerdict(reading: IPerfHostLoadReading): IPerfHostLoad["absolutes"];
460
+ /** Defaults to this machine; a spec passes a stub. */
461
+ declare function readHostLoad(source?: IPerfHostLoadSource): IPerfHostLoadReading;
462
+
244
463
  declare const ANDROID_TRANSPORT_CAPABILITIES: readonly ["browser.console", "browser.input", "browser.screenshot", "device.metrics", "runtime.diagnostics"];
245
464
  interface IDeviceMailbox {
246
465
  read(path: string): Promise<string | undefined>;
@@ -325,11 +544,14 @@ declare function deviceTimeoutDiagnostic(diagnostic: IPlaytestProtocolDiagnostic
325
544
  declare function deviceMailboxPaths(root: string): IDeviceMailboxPaths;
326
545
  declare function validateDeviceEndpoint(value: string): URL;
327
546
 
547
+ /** The Android lane: an adb-backed driver handed to the shared device flow in `deviceRunner.ts`. */
328
548
  interface IAndroidPlaytestDependencies {
329
549
  abortSignal?: AbortSignal;
330
550
  driver?: IAndroidDriver;
331
551
  transport?: IDevicePlaytestTransport;
332
552
  }
553
+ declare function runAndroidPlaytest(config: IStandalonePlaytestConfig, dependencies?: IAndroidPlaytestDependencies): Promise<IStandalonePlaytestReport>;
554
+
333
555
  interface IDevicePlaytestDriver {
334
556
  readonly processId?: number;
335
557
  /** Send the app behind HOME and wait until the device reports it unfocused. */
@@ -370,7 +592,6 @@ interface IDevicePlaytestTarget {
370
592
  processName: string;
371
593
  transport?: IDevicePlaytestTransport;
372
594
  }
373
- declare function runAndroidPlaytest(config: IStandalonePlaytestConfig, dependencies?: IAndroidPlaytestDependencies): Promise<IStandalonePlaytestReport>;
374
595
  declare function runDevicePlaytest(config: IStandalonePlaytestConfig, target: IDevicePlaytestTarget): Promise<IStandalonePlaytestReport>;
375
596
 
376
597
  interface IDesktopPlaytestDriverOptions {
@@ -502,201 +723,6 @@ declare function runIosPlaytest(config: IStandalonePlaytestConfig, dependencies?
502
723
  declare function requireAssertions(value: IPlaytestScenario["assert"], scenarioPath: string): NonNullable<IPlaytestScenario["assert"]>;
503
724
  declare function recordToScenario(value: unknown, scenarioPath?: string, oracleValue?: unknown): IPlaytestScenario;
504
725
 
505
- /** Shared parser and aggregation for browser pipeline censuses and native pipeline markers. */
506
- declare const PIPELINE_CAPTURE_VERSION: 1;
507
- declare const PIPELINE_EVENT_MARKER = "TN_PIPELINE_EVENT:";
508
- type PipelineCaptureSource = "browser" | "native";
509
- type PipelineCaptureKind = "compute" | "render";
510
- type PipelineCaptureMode = "sync" | "async";
511
- type PipelineCaptureStatus = "created" | "failed" | "pending";
512
- interface IPipelineCaptureShader {
513
- readonly bytes: number;
514
- readonly hash: string;
515
- }
516
- interface IPipelineCaptureProvenance {
517
- readonly material?: {
518
- readonly id?: number;
519
- readonly name?: string;
520
- readonly type?: string;
521
- };
522
- readonly object?: {
523
- readonly id?: number;
524
- readonly name?: string;
525
- readonly uuid?: string;
526
- };
527
- readonly unknown: boolean;
528
- }
529
- interface IPipelineCaptureEvent {
530
- readonly sequence: number;
531
- readonly programIdentity: string;
532
- readonly pipelineIdentity: string;
533
- readonly kind: PipelineCaptureKind;
534
- readonly pass: string;
535
- readonly mode: PipelineCaptureMode;
536
- readonly status: PipelineCaptureStatus;
537
- readonly vertex?: IPipelineCaptureShader;
538
- readonly fragment?: IPipelineCaptureShader;
539
- readonly compute?: IPipelineCaptureShader;
540
- readonly provenance: IPipelineCaptureProvenance;
541
- readonly reasons: readonly string[];
542
- readonly startedMs: number;
543
- readonly settledMs?: number;
544
- readonly serviceMs?: number;
545
- readonly promiseMs?: number;
546
- readonly queueMs?: number;
547
- readonly wallMs?: number;
548
- readonly label?: string;
549
- readonly error?: string;
550
- readonly nodeBuilds?: number;
551
- readonly beforeFirstPresent?: boolean;
552
- readonly beforeWarmUpSettled?: boolean;
553
- readonly afterWarmUpScope?: string;
554
- }
555
- interface IPipelineCaptureNodeBuild {
556
- readonly provenance: IPipelineCaptureProvenance;
557
- readonly startedMs: number;
558
- readonly beforeFirstPresent?: boolean;
559
- readonly beforeWarmUpSettled?: boolean;
560
- readonly afterWarmUpScope?: string;
561
- }
562
- interface IPipelineCaptureCounts {
563
- readonly lookups: number;
564
- readonly creations: number;
565
- readonly failures: number;
566
- readonly pending: number;
567
- readonly uniquePrograms: number;
568
- readonly uniquePipelines: number;
569
- readonly recordedEvents: number;
570
- readonly droppedEvents: number;
571
- readonly nodeBuilds?: number;
572
- }
573
- /**
574
- * What ended the capture, and therefore what "complete" is allowed to mean.
575
- *
576
- * `finalized` is a process that exited: the host drained its compile pool and printed a final
577
- * count. `checkpoint` is a live snapshot from a present, which is all a run ended by
578
- * `am force-stop` can produce — every event up to that present is accounted for and nothing was
579
- * still compiling, and the capture claims nothing about the run after it.
580
- */
581
- interface IPipelineCaptureBoundary {
582
- readonly kind: "checkpoint" | "finalized";
583
- readonly events: number;
584
- readonly outstanding?: number;
585
- readonly present?: number;
586
- }
587
- interface IPipelineCapture {
588
- readonly version: number;
589
- readonly source: PipelineCaptureSource;
590
- readonly boundary?: IPipelineCaptureBoundary;
591
- readonly complete: boolean;
592
- readonly overflowed: boolean;
593
- readonly backend?: Readonly<Record<string, unknown>>;
594
- readonly clock?: Readonly<Record<string, unknown>>;
595
- readonly build?: Readonly<Record<string, unknown>>;
596
- readonly adapter?: Readonly<Record<string, unknown>>;
597
- readonly firstPresent?: {
598
- readonly boundaryMs: number;
599
- readonly eventsSettled: number;
600
- };
601
- readonly warmUpSettled?: {
602
- readonly boundaryMs: number;
603
- readonly eventsSettled: number;
604
- readonly nodeBuilds: number;
605
- readonly renderPipelineCreations: number;
606
- };
607
- readonly warmUpScopes?: readonly {
608
- readonly label: string;
609
- readonly boundaryMs: number;
610
- readonly eventsSettled: number;
611
- readonly nodeBuilds: number;
612
- readonly renderPipelineCreations: number;
613
- readonly firstDraw?: {
614
- readonly nodeBuilds: number;
615
- readonly renderPipelineCreations: number;
616
- };
617
- }[];
618
- readonly counts: IPipelineCaptureCounts;
619
- readonly events: readonly IPipelineCaptureEvent[];
620
- readonly nodeBuilds?: readonly IPipelineCaptureNodeBuild[];
621
- readonly incompleteReasons: readonly string[];
622
- }
623
- interface IPipelinePassSummary {
624
- readonly creations: number;
625
- readonly failures: number;
626
- readonly beforeFirstPresent: number;
627
- /** Sum of observed device-call service durations; absent when the driver did not expose them. */
628
- readonly serviceMs?: number;
629
- readonly serviceSamples: number;
630
- readonly pass: string;
631
- }
632
- interface IPipelineContributorSummary {
633
- readonly afterWarmUpSettledCreations: number;
634
- readonly afterWarmUpSettledNodeBuilds: number;
635
- readonly creations: number;
636
- readonly failures: number;
637
- readonly label: string;
638
- readonly nodeBuilds: number;
639
- readonly sampleCount: number;
640
- /** Sum of observed device-call service durations; absent when the driver did not expose them. */
641
- readonly serviceMs?: number;
642
- }
643
- interface IPipelineProgramReasonSummary {
644
- readonly creations: number;
645
- readonly programIdentity: string;
646
- readonly reasons: readonly string[];
647
- }
648
- interface IPipelineSizeTimePassSummary {
649
- readonly meanBytes: number;
650
- readonly meanServiceMs: number;
651
- readonly pass: string;
652
- readonly samples: number;
653
- }
654
- interface IPipelineSizeTimeSummary {
655
- readonly byPass: readonly IPipelineSizeTimePassSummary[];
656
- readonly samples: number;
657
- readonly statement: string;
658
- }
659
- interface IPipelineWarmupSummary {
660
- readonly afterFirstPresent: number;
661
- readonly afterWarmUpSettled: number;
662
- readonly beforeFirstPresent: number;
663
- readonly eventsSettledAtFirstPresent?: number;
664
- readonly eventsSettledAtWarmUpSettled?: number;
665
- readonly nodeBuildsAfterWarmUpSettled?: number;
666
- readonly renderPipelineCreationsAfterWarmUpSettled?: number;
667
- /** Post-boundary work attributed to material contributors already observed during warm-up. */
668
- readonly warmedNodeBuildsAfterWarmUpSettled?: number;
669
- readonly warmedRenderPipelineCreationsAfterWarmUpSettled?: number;
670
- readonly total: number;
671
- readonly unreported: number;
672
- readonly scopes: readonly {
673
- readonly label: string;
674
- readonly nodeBuilds: number;
675
- readonly renderPipelineCreations: number;
676
- readonly observed?: boolean;
677
- }[];
678
- }
679
- interface IPipelineSummary {
680
- readonly adapter?: Readonly<Record<string, unknown>>;
681
- readonly boundary?: IPipelineCaptureBoundary;
682
- readonly build?: Readonly<Record<string, unknown>>;
683
- readonly complete: boolean;
684
- readonly counts: IPipelineCaptureCounts;
685
- readonly contributors: readonly IPipelineContributorSummary[];
686
- readonly incompleteReasons: readonly string[];
687
- readonly passTotals: readonly IPipelinePassSummary[];
688
- readonly programReasons: readonly IPipelineProgramReasonSummary[];
689
- readonly sizeTime: IPipelineSizeTimeSummary;
690
- readonly source: PipelineCaptureSource;
691
- readonly warmup: IPipelineWarmupSummary;
692
- }
693
- /** Parse a capture file, either as a JSON browser census or a native log containing markers. */
694
- declare function parsePipelineCapture(input: string | unknown): IPipelineCapture;
695
- /** Parse only native marker lines, preserving the same malformed-input contract as perf. */
696
- declare function parsePipelineEventMarkers(text: string): IPipelineCaptureEvent[];
697
- declare function summarizePipelineCapture(capture: IPipelineCapture): IPipelineSummary;
698
- declare function formatPipelineSummary(summary: IPipelineSummary): string;
699
-
700
726
  interface IBrowserCaptureSession {
701
727
  readonly bridge: IPlaytestBridgeClient;
702
728
  /** Console errors collected from page creation through the custom capture callback. */
@@ -720,4 +746,4 @@ interface IBrowserCaptureSession {
720
746
  */
721
747
  declare function withBrowserCapture<T>(config: IStandalonePlaytestConfig, capture: (session: IBrowserCaptureSession) => Promise<T>, signal?: AbortSignal): Promise<T>;
722
748
 
723
- 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 IDeviceRequestContext, type IDeviceResponseObservation, type IDisplayStrategy, type IIosCommandOptions, type IIosDriverOptions, type IIosPlaytestDependencies, ILabeledPlaytestSample, IMovementSampleInterval, type IPipelineCapture, type IPipelineCaptureBoundary, type IPipelineCaptureCounts, type IPipelineCaptureEvent, type IPipelineCaptureNodeBuild, 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, PENDING_BRIDGE_OPERATIONS_GLOBAL, 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, advanceTimeoutMs, androidMailboxPaths, batchArtifactDirectory, boundedTeardownStep, bridgeWaitTimeoutMs, buildReport, connectPlaytestBridge, connectPlaytestBridgeTransport, decideDisplayStrategy, desktopConsoleType, deviceMailboxPaths, deviceTimeoutDiagnostic, formatPipelineSummary, handlePlaytestSignal, initStandalonePlaytest, isRuntimeReadout, openPageAndConnectBridge, pageLifecycleDiagnostic, parseLaunchedPid, parsePipelineCapture, parsePipelineEventMarkers, preflightDisplay, reconcileBrowserPointers, recordToScenario, requireAssertions, resolveBrowserArguments, resolveManagedServerCommand, resolveManagedServerConfig, runAndroidPlaytest, runDesktopPlaytest, runDevicePlaytest, runIosPlaytest, runStandalonePlaytest, runStandalonePlaytests, softwareAdapterName, substituteManagedPort, summarizePipelineCapture, validateDeviceEndpoint, withBrowserCapture, writeCaptureProvenance, writeObservationArtifacts };
749
+ 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 IDeviceRequestContext, type IDeviceResponseObservation, type IDisplayStrategy, type IIosCommandOptions, type IIosDriverOptions, type IIosPlaytestDependencies, ILabeledPlaytestSample, IMovementSampleInterval, type IPerfHostLoad, type IPerfHostLoadReading, type IPerfHostLoadSource, type IPipelineCapture, type IPipelineCaptureBoundary, type IPipelineCaptureCounts, type IPipelineCaptureEvent, type IPipelineCaptureNodeBuild, 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, PENDING_BRIDGE_OPERATIONS_GLOBAL, 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, absolutesVerdict, advanceTimeoutMs, androidMailboxPaths, batchArtifactDirectory, boundedTeardownStep, bridgeWaitTimeoutMs, buildReport, connectPlaytestBridge, connectPlaytestBridgeTransport, decideDisplayStrategy, desktopConsoleType, deviceMailboxPaths, deviceTimeoutDiagnostic, formatPipelineSummary, handlePlaytestSignal, initStandalonePlaytest, isRuntimeReadout, openPageAndConnectBridge, pageLifecycleDiagnostic, parseLaunchedPid, parsePipelineCapture, parsePipelineEventMarkers, preflightDisplay, readHostLoad, reconcileBrowserPointers, recordToScenario, requireAssertions, resolveBrowserArguments, resolveManagedServerCommand, resolveManagedServerConfig, runAndroidPlaytest, runDesktopPlaytest, runDevicePlaytest, runIosPlaytest, runStandalonePlaytest, runStandalonePlaytests, softwareAdapterName, substituteManagedPort, summarizePipelineCapture, validateDeviceEndpoint, withBrowserCapture, writeCaptureProvenance, writeObservationArtifacts };