@threenative/playtest 0.3.4 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -2
- package/dist/capture.d.ts +23 -1
- package/dist/capture.js +92 -2
- package/dist/{diagnostics-BXhYI2sc.d.ts → diagnostics-BhS6v2n1.d.ts} +17 -748
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1693 -108
- package/dist/protocol.d.ts +43 -2
- package/dist/protocol.js +10 -1
- package/dist/runner/cli.d.ts +4 -2
- package/dist/runner/cli.js +11002 -8514
- package/dist/runner/index.d.ts +101 -83
- package/dist/runner/index.js +11928 -9916
- package/dist/schema-base-B5mr_Yr9.d.ts +844 -0
- package/dist/{shared-CHIDDJpp.d.ts → shared-DK12BZyS.d.ts} +171 -3
- package/dist/three/index.d.ts +9 -1
- package/dist/three/index.js +94 -27
- package/package.json +3 -2
package/dist/runner/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport, e as IPlaytestBridgeClient, f as IBridgeTransport } from '../shared-DK12BZyS.js';
|
|
2
|
+
export { g as IPlaytestFlagHelp, h as IPlaytestServerConfig, i as IRunStepSamples, M as ManagedServerError, P as PLAYTEST_FLAGS, j as PlaytestBridgeError, k as PlaytestCliUsageError, l as PlaywrightTransport, m as advanceFixedStep, n as advanceTimeoutMs, o as bridgeWaitTimeoutMs, p as captureVisualSurface, q as connectPlaytestBridge, r as connectPlaytestBridgeTransport, s as failedDiagnosticsAssertion, t as formatUsage, u as parseStandalonePlaytestArgs, v as playtestStepDrivesMovement } from '../shared-DK12BZyS.js';
|
|
3
|
+
import { e as IPlaytestScenario, f as IPlaytestArtifactRequest, k as IPlaytestPointer } from '../schema-base-B5mr_Yr9.js';
|
|
4
|
+
import { n as IPlaytestObservations, m as IPlaytestFramebufferCoverageObservation, f as IPlaytestCaptureProvenance, p as IPlaytestSetupApplication, h as IPlaytestDeviceMetricsObservation, b as IPlaytestDiagnostic, o as IPlaytestProtocolDiagnostic, C as IAndroidAppState, E as IAndroidPointer, F as IAndroidPointerInjection, G as IAndroidDriver } from '../diagnostics-BhS6v2n1.js';
|
|
5
|
+
export { J as AdbAndroidDriver, K as IAndroidDriverOptions, L as IAndroidLifecycleOperation, M as IAndroidTouchViewport, N as IPlaytestDeviceLifecycleObservation, O as IPlaytestDeviceLifecyclePhase, Q as IPlaytestDeviceLifecyclePhysics, R as IPlaytestDeviceLifecycleSteps, S as androidTouchBatches, T as discoverAdb, U as keyboardIsShown, V as parseAndroidConsole, W as parseAndroidTouchViewport, X as rotatedTouchPosition, Y as tapCommand, Z as touchPositionForViewport, _ as touchRotationFromWindowDump, $ as viewportPresentationCommands, a0 as viewportPresentationObserved, a1 as viewportRestoreCommands } from '../diagnostics-BhS6v2n1.js';
|
|
6
|
+
import { IPlaytestObservationSnapshot, JsonValue } from '../protocol.js';
|
|
7
7
|
import { ChildProcess } from 'node:child_process';
|
|
8
|
+
import { Page } from 'playwright';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* The display half of the capture environment bake-in (abstraction report §2.10).
|
|
@@ -42,15 +43,15 @@ interface IDisplayStrategyPrivateXvfb {
|
|
|
42
43
|
type IDisplayStrategy = IDisplayStrategyHost | IDisplayStrategyExisting | IDisplayStrategyPrivateXvfb;
|
|
43
44
|
interface IDisplayDecisionInput {
|
|
44
45
|
env: NodeJS.ProcessEnv;
|
|
45
|
-
/**
|
|
46
|
+
/** Availability override. By default, xdpyinfo verifies an authenticated X connection. */
|
|
46
47
|
displaySocketExists?: (display: string) => boolean;
|
|
47
48
|
platform: string;
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
51
|
* Decide where the browser's pixels come from. On Linux that is a private Xvfb unless the
|
|
51
52
|
* caller asked for the session's display with `TN_PLAYTEST_HOST_DISPLAY`, and even then only
|
|
52
|
-
* when
|
|
53
|
-
*
|
|
53
|
+
* when an X connection succeeds. An explicit host request fails rather than silently changing
|
|
54
|
+
* the display being measured. A Wayland session never satisfies a run by itself.
|
|
54
55
|
*/
|
|
55
56
|
declare function decideDisplayStrategy(input: IDisplayDecisionInput): IDisplayStrategy;
|
|
56
57
|
|
|
@@ -65,75 +66,7 @@ declare function buildReport(config: IStandalonePlaytestConfig, scenario: IPlayt
|
|
|
65
66
|
code: "TN_CAPTURE_BLANK";
|
|
66
67
|
label: string;
|
|
67
68
|
reason: string;
|
|
68
|
-
} | undefined, movementSamples?: readonly IMovementSampleInterval[], setup?: IPlaytestSetupApplication | undefined, deviceMetrics?: IPlaytestDeviceMetricsObservation | undefined, movementBaselineSnapshot?: IPlaytestObservationSnapshot | undefined, startup?: IStandalonePlaytestReport["startup"], deviceLifecycle?: IPlaytestObservations["deviceLifecycle"]): IStandalonePlaytestReport;
|
|
69
|
-
|
|
70
|
-
/** The only seam between assertion orchestration and an application bridge. */
|
|
71
|
-
interface IBridgeTransport {
|
|
72
|
-
readonly capabilities: readonly string[];
|
|
73
|
-
call<T>(method: string, argument?: unknown, timeoutMs?: number): Promise<T>;
|
|
74
|
-
close(): Promise<void>;
|
|
75
|
-
waitForBridge(timeoutMs: number): Promise<boolean>;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* The budget for one `advance` call: the round-trip allowance plus time for the ticks themselves.
|
|
79
|
-
*
|
|
80
|
-
* Every other bridge method is a request and a reply, so `operationTimeoutMs` fits. `advance` runs
|
|
81
|
-
* the game loop N times before replying, so its honest bound grows with N. Fixed at 5 s it failed
|
|
82
|
-
* `starter-game-over` — 600 ticks in one call — on a two-core runner, and reported it as
|
|
83
|
-
* `TN_PLAYTEST_OPERATION_TIMEOUT`, which reads as a hung page rather than a slow one.
|
|
84
|
-
*/
|
|
85
|
-
declare function advanceTimeoutMs(ticks: number, perTickMs?: number): number;
|
|
86
|
-
declare class PlaytestBridgeError extends Error {
|
|
87
|
-
readonly diagnostic: IPlaytestProtocolDiagnostic;
|
|
88
|
-
constructor(diagnostic: IPlaytestProtocolDiagnostic);
|
|
89
|
-
}
|
|
90
|
-
interface IPlaytestBridgeClient {
|
|
91
|
-
advance(ticks: number): Promise<void>;
|
|
92
|
-
applySetup(request: IPlaytestSetupRequest): Promise<void>;
|
|
93
|
-
close(): Promise<void>;
|
|
94
|
-
drainEvents(limit?: number): Promise<JsonValue[]>;
|
|
95
|
-
description: IPlaytestBridgeDescription;
|
|
96
|
-
/** Setup applied before the handshake released a held game, when the scenario declared setup. */
|
|
97
|
-
setupApplication?: IPlaytestSetupApplication;
|
|
98
|
-
/** Re-reads the bridge's readiness, including startup progress when it reports any. */
|
|
99
|
-
readiness(): Promise<IPlaytestBridgeReady>;
|
|
100
|
-
sample(request: IPlaytestSampleRequest): Promise<IPlaytestObservationSnapshot>;
|
|
101
|
-
}
|
|
102
|
-
declare class PlaywrightTransport implements IBridgeTransport {
|
|
103
|
-
private readonly page;
|
|
104
|
-
private readonly operationTimeoutMs;
|
|
105
|
-
readonly capabilities: readonly ["browser.canvas", "browser.console", "browser.dom", "browser.input", "browser.network", "browser.screenshot", "browser.trace", "runtime.diagnostics", "runtime.ui"];
|
|
106
|
-
constructor(page: Page, operationTimeoutMs?: number);
|
|
107
|
-
call<T>(method: string, argument?: unknown, timeoutMs?: number): Promise<T>;
|
|
108
|
-
close(): Promise<void>;
|
|
109
|
-
waitForBridge(timeoutMs: number): Promise<boolean>;
|
|
110
|
-
}
|
|
111
|
-
declare function connectPlaytestBridge(page: Page, scenario: IPlaytestScenario, timeoutMs?: number): Promise<IPlaytestBridgeClient | undefined>;
|
|
112
|
-
/**
|
|
113
|
-
* How long to wait for the page to install its playtest bridge.
|
|
114
|
-
*
|
|
115
|
-
* The bridge appears during application startup, not during a request/response round trip, so
|
|
116
|
-
* `operationTimeoutMs` is the wrong budget for it by construction — the same mistake, in the same
|
|
117
|
-
* direction, as timing a bulk `advance` with it. On a software-rendered two-core runner the
|
|
118
|
-
* scaffolded starter spends seconds in first-use compilation before the bridge exists, and the run
|
|
119
|
-
* was reported as `TN_PLAYTEST_BRIDGE_MISSING` with `frames: 0`: not a page without a bridge, a
|
|
120
|
-
* page that had not finished booting yet.
|
|
121
|
-
*
|
|
122
|
-
* One operation plus the startup budget, matching `advanceTimeoutMs`. A page that genuinely
|
|
123
|
-
* installs no bridge still fails with the same diagnostic, just later.
|
|
124
|
-
*/
|
|
125
|
-
declare function bridgeWaitTimeoutMs(operationMs?: number): number;
|
|
126
|
-
declare function connectPlaytestBridgeTransport(transport: IBridgeTransport, scenario: IPlaytestScenario, timeoutMs?: number, target?: string): Promise<IPlaytestBridgeClient | undefined>;
|
|
127
|
-
|
|
128
|
-
/** Capture the largest rendered canvas without composited DOM overlays. */
|
|
129
|
-
declare function captureVisualSurface(page: Page, artifactPath?: string): Promise<Buffer | undefined>;
|
|
130
|
-
/**
|
|
131
|
-
* The core bridge is installed before an async scene load completes, so its describe/ready
|
|
132
|
-
* handshake can finish one browser frame before the fixed-step loop starts. Retry only that
|
|
133
|
-
* exact startup race; a stopped loop that does not recover remains a runner failure.
|
|
134
|
-
*/
|
|
135
|
-
declare function advanceFixedStep(page: Page, bridge: Pick<IPlaytestBridgeClient, "advance">, ticks: number): Promise<void>;
|
|
136
|
-
declare function playtestStepDrivesMovement(step: IPlaytestScenario["steps"][number], hasHeldInput: boolean): boolean;
|
|
69
|
+
} | undefined, movementSamples?: readonly IMovementSampleInterval[], setup?: IPlaytestSetupApplication | undefined, deviceMetrics?: IPlaytestDeviceMetricsObservation | undefined, movementBaselineSnapshot?: IPlaytestObservationSnapshot | undefined, startup?: IStandalonePlaytestReport["startup"], deviceLifecycle?: IPlaytestObservations["deviceLifecycle"], tone?: IPlaytestObservations["tone"]): IStandalonePlaytestReport;
|
|
137
70
|
|
|
138
71
|
/**
|
|
139
72
|
* A published diagnostic that is unmistakably a *readout* rather than an error.
|
|
@@ -217,7 +150,7 @@ declare function runStandalonePlaytests(config: IStandalonePlaytestConfig): Prom
|
|
|
217
150
|
declare function batchArtifactDirectory(base: string, scenarioPath: string, index: number): string;
|
|
218
151
|
declare function resolveManagedServerConfig(config: IStandalonePlaytestConfig): Promise<IStandalonePlaytestConfig>;
|
|
219
152
|
|
|
220
|
-
declare const WEBGPU_BROWSER_ARGS: readonly ["--ozone-platform=x11", "--enable-unsafe-webgpu", "--disable-gpu-sandbox", "--ignore-gpu-blocklist", "--enable-features=Vulkan"];
|
|
153
|
+
declare const WEBGPU_BROWSER_ARGS: readonly ["--ozone-platform=x11", "--enable-unsafe-webgpu", "--disable-gpu-sandbox", "--ignore-gpu-blocklist", "--enable-features=Vulkan", ...string[]];
|
|
221
154
|
/** Allow performance probes to sample render work instead of Xvfb's compositor cadence. */
|
|
222
155
|
declare const PERFORMANCE_BROWSER_ARGS: readonly ["--disable-frame-rate-limit", "--disable-gpu-vsync"];
|
|
223
156
|
declare function resolveBrowserArguments(browserArgs: readonly string[] | undefined): string[];
|
|
@@ -252,9 +185,19 @@ interface IDeviceResponseObservation {
|
|
|
252
185
|
order: number;
|
|
253
186
|
requestId: string;
|
|
254
187
|
}
|
|
188
|
+
/** One outstanding mailbox request; large arguments retain only a bounded preview. */
|
|
189
|
+
interface IDeviceRequestContext {
|
|
190
|
+
argument?: JsonValue;
|
|
191
|
+
argumentTruncated?: boolean;
|
|
192
|
+
method: string;
|
|
193
|
+
order: number;
|
|
194
|
+
requestId: string;
|
|
195
|
+
timeoutMs: number;
|
|
196
|
+
}
|
|
255
197
|
interface IDevicePlaytestTransport extends IBridgeTransport {
|
|
256
198
|
start(): Promise<void>;
|
|
257
199
|
setResponseObserver?(observer: (observation: IDeviceResponseObservation) => void): void;
|
|
200
|
+
getPendingRequest?(): IDeviceRequestContext | undefined;
|
|
258
201
|
}
|
|
259
202
|
declare class DeviceBridgeTransport implements IDevicePlaytestTransport {
|
|
260
203
|
readonly capabilities: readonly ["browser.console", "browser.input", "browser.screenshot", "device.metrics", "runtime.diagnostics"];
|
|
@@ -282,10 +225,12 @@ declare class DeviceMailboxTransport implements IDevicePlaytestTransport {
|
|
|
282
225
|
private closed;
|
|
283
226
|
private nextId;
|
|
284
227
|
private nextOrder;
|
|
228
|
+
private pendingRequest?;
|
|
285
229
|
private readonly abandonedIds;
|
|
286
230
|
private responseObserver?;
|
|
287
231
|
constructor(mailbox: IDeviceMailbox, paths: IDeviceMailboxPaths, operationTimeoutMs?: number);
|
|
288
232
|
setResponseObserver(observer: (observation: IDeviceResponseObservation) => void): void;
|
|
233
|
+
getPendingRequest(): IDeviceRequestContext | undefined;
|
|
289
234
|
start(): Promise<void>;
|
|
290
235
|
call<T>(method: string, argument?: unknown, timeoutMs?: number): Promise<T>;
|
|
291
236
|
close(): Promise<void>;
|
|
@@ -312,6 +257,7 @@ interface IAndroidPlaytestDependencies {
|
|
|
312
257
|
transport?: IDevicePlaytestTransport;
|
|
313
258
|
}
|
|
314
259
|
interface IDevicePlaytestDriver {
|
|
260
|
+
readonly processId?: number;
|
|
315
261
|
/** Send the app behind HOME and wait until the device reports it unfocused. */
|
|
316
262
|
background?(): Promise<void>;
|
|
317
263
|
captureConsole(): Promise<Array<{
|
|
@@ -332,7 +278,7 @@ interface IDevicePlaytestDriver {
|
|
|
332
278
|
removeFile?(path: string): Promise<void>;
|
|
333
279
|
rotate?(rotation: number): Promise<void>;
|
|
334
280
|
runAdb?(args: readonly string[]): Promise<string>;
|
|
335
|
-
screenshot(path: string): Promise<void>;
|
|
281
|
+
screenshot(path: string, onRequestAccepted?: () => Promise<void>): Promise<void>;
|
|
336
282
|
setPointers?(pointers: readonly IAndroidPointer[]): Promise<IAndroidPointerInjection>;
|
|
337
283
|
tap?(x: number, y: number): Promise<void>;
|
|
338
284
|
hideKeyboard?(): Promise<boolean>;
|
|
@@ -358,6 +304,8 @@ interface IDesktopPlaytestDriverOptions {
|
|
|
358
304
|
cwd?: string;
|
|
359
305
|
env?: NodeJS.ProcessEnv;
|
|
360
306
|
executable: string;
|
|
307
|
+
/** Ask the host for the wall clock, the native counterpart of the browser's init script. */
|
|
308
|
+
liveClock?: boolean;
|
|
361
309
|
mailboxRoot?: string;
|
|
362
310
|
screenshotTimeoutMs?: number;
|
|
363
311
|
}
|
|
@@ -374,17 +322,32 @@ declare class LocalDeviceMailbox {
|
|
|
374
322
|
declare class DesktopPlaytestDriver implements IDevicePlaytestDriver {
|
|
375
323
|
private readonly options;
|
|
376
324
|
private child?;
|
|
325
|
+
private childClosed?;
|
|
377
326
|
private mailboxRoot?;
|
|
378
327
|
private readonly consoleEntries;
|
|
379
328
|
private readonly pendingOutput;
|
|
380
329
|
constructor(options: IDesktopPlaytestDriverOptions);
|
|
330
|
+
/** The child this driver owns; never inferred from a process-name search. */
|
|
331
|
+
get processId(): number | undefined;
|
|
381
332
|
captureConsole(): Promise<Array<{
|
|
382
333
|
text: string;
|
|
383
334
|
type: string;
|
|
384
335
|
}>>;
|
|
385
336
|
isAlive(): Promise<boolean>;
|
|
386
|
-
prepare(_endpoint: string, mailboxRoot?: string
|
|
387
|
-
|
|
337
|
+
prepare(_endpoint: string, mailboxRoot?: string, viewport?: {
|
|
338
|
+
height: number;
|
|
339
|
+
width: number;
|
|
340
|
+
}): Promise<void>;
|
|
341
|
+
/**
|
|
342
|
+
* Capture the running game to `path`, returning once the file is written.
|
|
343
|
+
*
|
|
344
|
+
* A deterministic native loop presents nothing between ticks, so the host's copy never happens
|
|
345
|
+
* on its own. `onRequestAccepted` is invoked exactly once, after the host has consumed the
|
|
346
|
+
* request file and therefore set its copy flag; the runner points it at the bridge's render-only
|
|
347
|
+
* operation so the host has a present to copy. It is absent when the bridge offers none, which
|
|
348
|
+
* leaves the pre-existing behavior.
|
|
349
|
+
*/
|
|
350
|
+
screenshot(path: string, onRequestAccepted?: () => Promise<void>): Promise<void>;
|
|
388
351
|
/**
|
|
389
352
|
* Why a screenshot produced no file. The host's own lines are the only place that answer is
|
|
390
353
|
* written, and the request file's presence splits the failure in two: left behind means the host
|
|
@@ -398,6 +361,7 @@ declare class DesktopPlaytestDriver implements IDevicePlaytestDriver {
|
|
|
398
361
|
private recordOutput;
|
|
399
362
|
private flushOutput;
|
|
400
363
|
}
|
|
364
|
+
declare function desktopConsoleType(stream: "stderr" | "stdout", line: string): string;
|
|
401
365
|
|
|
402
366
|
interface IDesktopPlaytestDependencies {
|
|
403
367
|
driver?: IDevicePlaytestDriver;
|
|
@@ -507,7 +471,17 @@ interface IPipelineCaptureEvent {
|
|
|
507
471
|
readonly wallMs?: number;
|
|
508
472
|
readonly label?: string;
|
|
509
473
|
readonly error?: string;
|
|
474
|
+
readonly nodeBuilds?: number;
|
|
475
|
+
readonly beforeFirstPresent?: boolean;
|
|
476
|
+
readonly beforeWarmUpSettled?: boolean;
|
|
477
|
+
readonly afterWarmUpScope?: string;
|
|
478
|
+
}
|
|
479
|
+
interface IPipelineCaptureNodeBuild {
|
|
480
|
+
readonly provenance: IPipelineCaptureProvenance;
|
|
481
|
+
readonly startedMs: number;
|
|
510
482
|
readonly beforeFirstPresent?: boolean;
|
|
483
|
+
readonly beforeWarmUpSettled?: boolean;
|
|
484
|
+
readonly afterWarmUpScope?: string;
|
|
511
485
|
}
|
|
512
486
|
interface IPipelineCaptureCounts {
|
|
513
487
|
readonly lookups: number;
|
|
@@ -518,6 +492,7 @@ interface IPipelineCaptureCounts {
|
|
|
518
492
|
readonly uniquePipelines: number;
|
|
519
493
|
readonly recordedEvents: number;
|
|
520
494
|
readonly droppedEvents: number;
|
|
495
|
+
readonly nodeBuilds?: number;
|
|
521
496
|
}
|
|
522
497
|
/**
|
|
523
498
|
* What ended the capture, and therefore what "complete" is allowed to mean.
|
|
@@ -547,8 +522,26 @@ interface IPipelineCapture {
|
|
|
547
522
|
readonly boundaryMs: number;
|
|
548
523
|
readonly eventsSettled: number;
|
|
549
524
|
};
|
|
525
|
+
readonly warmUpSettled?: {
|
|
526
|
+
readonly boundaryMs: number;
|
|
527
|
+
readonly eventsSettled: number;
|
|
528
|
+
readonly nodeBuilds: number;
|
|
529
|
+
readonly renderPipelineCreations: number;
|
|
530
|
+
};
|
|
531
|
+
readonly warmUpScopes?: readonly {
|
|
532
|
+
readonly label: string;
|
|
533
|
+
readonly boundaryMs: number;
|
|
534
|
+
readonly eventsSettled: number;
|
|
535
|
+
readonly nodeBuilds: number;
|
|
536
|
+
readonly renderPipelineCreations: number;
|
|
537
|
+
readonly firstDraw?: {
|
|
538
|
+
readonly nodeBuilds: number;
|
|
539
|
+
readonly renderPipelineCreations: number;
|
|
540
|
+
};
|
|
541
|
+
}[];
|
|
550
542
|
readonly counts: IPipelineCaptureCounts;
|
|
551
543
|
readonly events: readonly IPipelineCaptureEvent[];
|
|
544
|
+
readonly nodeBuilds?: readonly IPipelineCaptureNodeBuild[];
|
|
552
545
|
readonly incompleteReasons: readonly string[];
|
|
553
546
|
}
|
|
554
547
|
interface IPipelinePassSummary {
|
|
@@ -561,9 +554,12 @@ interface IPipelinePassSummary {
|
|
|
561
554
|
readonly pass: string;
|
|
562
555
|
}
|
|
563
556
|
interface IPipelineContributorSummary {
|
|
557
|
+
readonly afterWarmUpSettledCreations: number;
|
|
558
|
+
readonly afterWarmUpSettledNodeBuilds: number;
|
|
564
559
|
readonly creations: number;
|
|
565
560
|
readonly failures: number;
|
|
566
561
|
readonly label: string;
|
|
562
|
+
readonly nodeBuilds: number;
|
|
567
563
|
readonly sampleCount: number;
|
|
568
564
|
/** Sum of observed device-call service durations; absent when the driver did not expose them. */
|
|
569
565
|
readonly serviceMs?: number;
|
|
@@ -586,10 +582,23 @@ interface IPipelineSizeTimeSummary {
|
|
|
586
582
|
}
|
|
587
583
|
interface IPipelineWarmupSummary {
|
|
588
584
|
readonly afterFirstPresent: number;
|
|
585
|
+
readonly afterWarmUpSettled: number;
|
|
589
586
|
readonly beforeFirstPresent: number;
|
|
590
587
|
readonly eventsSettledAtFirstPresent?: number;
|
|
588
|
+
readonly eventsSettledAtWarmUpSettled?: number;
|
|
589
|
+
readonly nodeBuildsAfterWarmUpSettled?: number;
|
|
590
|
+
readonly renderPipelineCreationsAfterWarmUpSettled?: number;
|
|
591
|
+
/** Post-boundary work attributed to material contributors already observed during warm-up. */
|
|
592
|
+
readonly warmedNodeBuildsAfterWarmUpSettled?: number;
|
|
593
|
+
readonly warmedRenderPipelineCreationsAfterWarmUpSettled?: number;
|
|
591
594
|
readonly total: number;
|
|
592
595
|
readonly unreported: number;
|
|
596
|
+
readonly scopes: readonly {
|
|
597
|
+
readonly label: string;
|
|
598
|
+
readonly nodeBuilds: number;
|
|
599
|
+
readonly renderPipelineCreations: number;
|
|
600
|
+
readonly observed?: boolean;
|
|
601
|
+
}[];
|
|
593
602
|
}
|
|
594
603
|
interface IPipelineSummary {
|
|
595
604
|
readonly adapter?: Readonly<Record<string, unknown>>;
|
|
@@ -614,6 +623,15 @@ declare function formatPipelineSummary(summary: IPipelineSummary): string;
|
|
|
614
623
|
|
|
615
624
|
interface IBrowserCaptureSession {
|
|
616
625
|
readonly bridge: IPlaytestBridgeClient;
|
|
626
|
+
/** Console errors collected from page creation through the custom capture callback. */
|
|
627
|
+
readonly errors: readonly string[];
|
|
628
|
+
/** Complete console and page-error observations from page creation onward. */
|
|
629
|
+
readonly consoleEntries: readonly IRunnerConsoleEntry[];
|
|
630
|
+
/** Failed network requests from page creation onward. */
|
|
631
|
+
readonly networkEntries: readonly {
|
|
632
|
+
method: string;
|
|
633
|
+
url: string;
|
|
634
|
+
}[];
|
|
617
635
|
readonly page: Page;
|
|
618
636
|
readonly provenance: IPlaytestCaptureProvenance;
|
|
619
637
|
readonly signal: AbortSignal;
|
|
@@ -626,4 +644,4 @@ interface IBrowserCaptureSession {
|
|
|
626
644
|
*/
|
|
627
645
|
declare function withBrowserCapture<T>(config: IStandalonePlaytestConfig, capture: (session: IBrowserCaptureSession) => Promise<T>, signal?: AbortSignal): Promise<T>;
|
|
628
646
|
|
|
629
|
-
export { ANDROID_TRANSPORT_CAPABILITIES, DesktopPlaytestDriver, DeviceBridgeTransport, DeviceMailboxTransport, IAndroidAppState, IAndroidDriver, type IAndroidPlaytestDependencies, IAndroidPointer, IAndroidPointerInjection,
|
|
647
|
+
export { ANDROID_TRANSPORT_CAPABILITIES, DesktopPlaytestDriver, DeviceBridgeTransport, DeviceMailboxTransport, IAndroidAppState, IAndroidDriver, type IAndroidPlaytestDependencies, IAndroidPointer, IAndroidPointerInjection, 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, 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, STANDALONE_PLAYTEST_OBSERVATION_FIELDS, WEBGPU_BROWSER_ARGS, XcrunIosDriver, androidMailboxPaths, batchArtifactDirectory, boundedTeardownStep, buildReport, 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 };
|