@threenative/playtest 0.3.1 → 0.3.3
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/dist/{diagnostics-f8464bJw.d.ts → diagnostics-Bpy15z5f.d.ts} +42 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +253 -49
- package/dist/protocol.d.ts +32 -1
- package/dist/protocol.js +2 -1
- package/dist/runner/cli.d.ts +2 -2
- package/dist/runner/cli.js +843 -312
- package/dist/runner/index.d.ts +19 -6
- package/dist/runner/index.js +602 -92
- package/dist/{shared-BGwYk5HG.d.ts → shared-eFOF5bZO.d.ts} +9 -1
- package/dist/three/index.js +4 -1
- package/package.json +1 -1
package/dist/runner/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
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';
|
|
3
3
|
import { Page } from 'playwright';
|
|
4
|
-
import { I as IStandalonePlaytestConfig, b as IRunnerConsoleEntry, c as ILabeledPlaytestSample, d as IMovementSampleInterval, a as IStandalonePlaytestReport } from '../shared-
|
|
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-
|
|
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';
|
|
6
6
|
import { ChildProcess } from 'node:child_process';
|
|
7
7
|
|
|
8
8
|
declare function preflightDisplay(config: Pick<IStandalonePlaytestConfig, "headless">, scenario: Pick<IPlaytestScenario, "artifacts" | "assert" | "steps">, environment?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): IPlaytestDiagnostic | undefined;
|
|
@@ -140,7 +140,7 @@ declare function pageLifecycleDiagnostic(error: unknown, lifecycle: IPageLifecyc
|
|
|
140
140
|
*/
|
|
141
141
|
declare function openPageAndConnectBridge(page: Page, config: IStandalonePlaytestConfig, scenario: IPlaytestScenario): Promise<IPlaytestBridgeClient | undefined>;
|
|
142
142
|
|
|
143
|
-
declare const STANDALONE_PLAYTEST_OBSERVATION_FIELDS: readonly ["components", "componentSeries", "console", "effectLogBefore", "framebufferCoverage", "hud", "network", "physicsDebugSeries", "performanceSeries", "pipelineCensus", "renderChain", "physicsDebugBefore", "resources", "resourceSeries", "runtimeDiagnostics", "runtimeDiagnosticsBefore", "runtimeObservations", "scene", "sceneNodes", "signals", "signalSeries", "startup", "visual"];
|
|
143
|
+
declare const STANDALONE_PLAYTEST_OBSERVATION_FIELDS: readonly ["components", "componentSeries", "console", "effectLogBefore", "framebufferCoverage", "geometry", "hud", "network", "physicsDebugSeries", "performanceSeries", "pipelineCensus", "renderChain", "physicsDebugBefore", "resources", "resourceSeries", "runtimeDiagnostics", "runtimeDiagnosticsBefore", "runtimeObservations", "scene", "sceneNodes", "signals", "signalSeries", "startup", "visual"];
|
|
144
144
|
|
|
145
145
|
declare function handlePlaytestSignal(teardown: (stopManagedServer: boolean) => Promise<void>, setExitCode?: (code: number) => void, exit?: (code: number) => void, target?: string, writeMessage?: (message: string) => void): Promise<void>;
|
|
146
146
|
declare function writeCaptureProvenance(artifactDirectory: string, provenance: IPlaytestCaptureProvenance): Promise<void>;
|
|
@@ -615,7 +615,6 @@ declare class XcrunIosDriver implements IDevicePlaytestDriver {
|
|
|
615
615
|
private prepareSimulator;
|
|
616
616
|
private prepareDevice;
|
|
617
617
|
private device;
|
|
618
|
-
private processName;
|
|
619
618
|
private mailboxPath;
|
|
620
619
|
}
|
|
621
620
|
declare function parseLaunchedPid(output: string): string;
|
|
@@ -782,4 +781,18 @@ declare function parsePipelineEventMarkers(text: string): IPipelineCaptureEvent[
|
|
|
782
781
|
declare function summarizePipelineCapture(capture: IPipelineCapture): IPipelineSummary;
|
|
783
782
|
declare function formatPipelineSummary(summary: IPipelineSummary): string;
|
|
784
783
|
|
|
785
|
-
|
|
784
|
+
interface IBrowserCaptureSession {
|
|
785
|
+
readonly bridge: IPlaytestBridgeClient;
|
|
786
|
+
readonly page: Page;
|
|
787
|
+
readonly provenance: IPlaytestCaptureProvenance;
|
|
788
|
+
readonly signal: AbortSignal;
|
|
789
|
+
/** Writes only nonblank PNGs inside the configured artifact directory. */
|
|
790
|
+
screenshot(label: string): Promise<string>;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Borrow an owned, ready browser for a custom capture and return every resource afterwards.
|
|
794
|
+
* This is not a scenario verdict: setup and readiness run, but steps/assertions do not.
|
|
795
|
+
*/
|
|
796
|
+
declare function withBrowserCapture<T>(config: IStandalonePlaytestConfig, capture: (session: IBrowserCaptureSession) => Promise<T>, signal?: AbortSignal): Promise<T>;
|
|
797
|
+
|
|
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 };
|