@threenative/playtest 0.3.5 → 0.3.8
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/capture.d.ts +1 -1
- package/dist/{diagnostics-BhS6v2n1.d.ts → diagnostics-BKg7C6Lf.d.ts} +36 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1058 -126
- package/dist/protocol.d.ts +73 -1
- package/dist/runner/cli.d.ts +3 -3
- package/dist/runner/cli.js +2107 -550
- package/dist/runner/index.d.ts +85 -10
- package/dist/runner/index.js +2084 -660
- package/dist/{schema-base-B5mr_Yr9.d.ts → schema-base-B26KSBoa.d.ts} +106 -0
- package/dist/{shared-DK12BZyS.d.ts → shared-Dg-3kiU8.d.ts} +22 -69
- package/dist/three/index.js +138 -25
- package/package.json +1 -1
package/dist/capture.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IToneMetrics, a as IPlaytestToneAssertion, b as IPlaytestRegionalToneObservation } from './schema-base-
|
|
1
|
+
import { I as IToneMetrics, a as IPlaytestToneAssertion, b as IPlaytestRegionalToneObservation } from './schema-base-B26KSBoa.js';
|
|
2
2
|
import './protocol.js';
|
|
3
3
|
|
|
4
4
|
declare const CAPTURE_GUARD_LIMITS: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as IPlaytestToneCaptureObservation, t as IPlaytestVisualRegionBounds, u as IPlaytestVisualRegionTarget, y as IPlaytestDiagnosticsAssertion } from './schema-base-
|
|
2
|
-
import { JsonValue, IPlaytestRenderChainObservation, IPlaytestSceneObservation, IPlaytestSceneNodesObservation, IPlaytestStartupTimeline } from './protocol.js';
|
|
1
|
+
import { x as IPlaytestToneCaptureObservation, t as IPlaytestVisualRegionBounds, u as IPlaytestVisualRegionTarget, y as IPlaytestDiagnosticsAssertion } from './schema-base-B26KSBoa.js';
|
|
2
|
+
import { JsonValue, IPlaytestRenderChainObservation, IPlaytestSceneObservation, IPlaytestSceneNodesObservation, IPlaytestSightLineObservation, IPlaytestStartupOffscreenBytes, IPlaytestStartupTimeline, IPlaytestStartupCoverObservation } from './protocol.js';
|
|
3
3
|
|
|
4
4
|
interface IAndroidDriverOptions {
|
|
5
5
|
activity: string;
|
|
@@ -629,6 +629,24 @@ interface IPlaytestVisualElementRegionObservation {
|
|
|
629
629
|
nonblankPixelRatio?: number;
|
|
630
630
|
rendered: boolean;
|
|
631
631
|
}
|
|
632
|
+
interface IPlaytestFootSlipObservation {
|
|
633
|
+
entity: string;
|
|
634
|
+
feet: string[];
|
|
635
|
+
label: string;
|
|
636
|
+
samples: Array<{
|
|
637
|
+
body: [number, number, number] | null;
|
|
638
|
+
feet: Array<[number, number, number] | null>;
|
|
639
|
+
}>;
|
|
640
|
+
}
|
|
641
|
+
/** One visible text node the page draws, with its colour and the colour composited behind it. */
|
|
642
|
+
interface IPlaytestHudAuditItem {
|
|
643
|
+
/** Effective backing colour, alpha-composited from the nearest ancestor up; alpha 0 sits on the canvas. */
|
|
644
|
+
background: [number, number, number, number];
|
|
645
|
+
color: [number, number, number, number];
|
|
646
|
+
fontSizePx: number;
|
|
647
|
+
selector: string;
|
|
648
|
+
text: string;
|
|
649
|
+
}
|
|
632
650
|
interface IPlaytestObservations {
|
|
633
651
|
tone?: IPlaytestToneCaptureObservation[];
|
|
634
652
|
animation?: unknown;
|
|
@@ -700,13 +718,27 @@ interface IPlaytestObservations {
|
|
|
700
718
|
/** Lights, materials, fog, background, camera framing and world extent, as the bridge found them. */
|
|
701
719
|
scene?: IPlaytestSceneObservation;
|
|
702
720
|
sceneNodes?: IPlaytestSceneNodesObservation[];
|
|
721
|
+
/** Per-tick world positions of the subject and its named feet over each footSlip step; a foot the walk did not find is null. */
|
|
722
|
+
footSlip?: IPlaytestFootSlipObservation[];
|
|
723
|
+
/** The camera-to-subject sight line as sampled during the run, when the scenario asserts it. */
|
|
724
|
+
sightLine?: {
|
|
725
|
+
entity: string;
|
|
726
|
+
samples: IPlaytestSightLineObservation[];
|
|
727
|
+
};
|
|
728
|
+
/** Visible page text and its colours, sampled after the last step when the scenario audits the HUD. */
|
|
729
|
+
hudAudit?: {
|
|
730
|
+
items: IPlaytestHudAuditItem[];
|
|
731
|
+
};
|
|
703
732
|
/** The startup observation the runner waited on, with the rule it resolved under. */
|
|
704
733
|
startup?: {
|
|
705
734
|
compileSettled?: boolean;
|
|
735
|
+
offscreenBytes?: IPlaytestStartupOffscreenBytes;
|
|
706
736
|
phase: string;
|
|
707
737
|
progress: number;
|
|
708
738
|
rule?: string;
|
|
709
739
|
timeline?: IPlaytestStartupTimeline;
|
|
740
|
+
/** The presented frames before readiness, when the scenario asserts `startup.steadyCover`. */
|
|
741
|
+
cover?: IPlaytestStartupCoverObservation;
|
|
710
742
|
};
|
|
711
743
|
resourceSeries?: Array<{
|
|
712
744
|
label: string;
|
|
@@ -736,6 +768,7 @@ interface IPlaytestObservations {
|
|
|
736
768
|
darkPixelRatio?: number;
|
|
737
769
|
height: number;
|
|
738
770
|
nonblankPixelRatio: number;
|
|
771
|
+
sharpness?: number;
|
|
739
772
|
width: number;
|
|
740
773
|
x: number;
|
|
741
774
|
y: number;
|
|
@@ -797,4 +830,4 @@ declare function playtestDiagnostic(code: PlaytestDiagnosticCode, message: strin
|
|
|
797
830
|
nextCommand?: string;
|
|
798
831
|
}): IPlaytestProtocolDiagnostic;
|
|
799
832
|
|
|
800
|
-
export {
|
|
833
|
+
export { touchRotationFromWindowDump as $, playtestDiagnostic as A, resolveDiagnosticsPolicy as B, summarizeDeviceMetrics as C, DEVICE_METRICS_CADENCE_MS as D, type IAndroidAppState as E, type IAndroidPointer as F, type IAndroidPointerInjection as G, HOT_START_TEMPERATURE_C as H, type IPlaytestReport as I, type IAndroidDriver as J, AdbAndroidDriver as K, type IAndroidDriverOptions as L, type IAndroidLifecycleOperation as M, type IAndroidTouchViewport as N, type IPlaytestDeviceLifecycleObservation as O, type PlaytestDeviceMeasurement as P, type IPlaytestDeviceLifecyclePhase as Q, type IPlaytestDeviceLifecyclePhysics as R, type IPlaytestDeviceLifecycleSteps as S, androidTouchBatches as T, discoverAdb as U, keyboardIsShown as V, parseAndroidConsole as W, parseAndroidTouchViewport as X, rotatedTouchPosition as Y, tapCommand as Z, touchPositionForViewport as _, type IPlaytestAssertionResult as a, viewportPresentationCommands as a0, viewportPresentationObserved as a1, viewportRestoreCommands as a2, type IPlaytestDiagnostic as b, DEVICE_METRICS_MAX_SAMPLES as c, DeviceMetricsError as d, DeviceMetricsRecorder as e, type IPlaytestCaptureProvenance as f, type IPlaytestDeviceBattery as g, type IPlaytestDeviceMetricsObservation as h, type IPlaytestDeviceMetricsSample as i, type IPlaytestDeviceMetricsVerdict as j, type IPlaytestDeviceThermal as k, type IPlaytestDiagnosticsPolicy as l, type IPlaytestFootSlipObservation as m, type IPlaytestFramebufferCoverageObservation as n, type IPlaytestObservations as o, type IPlaytestProtocolDiagnostic as p, type IPlaytestSetupApplication as q, type IPlaytestSetupRecord as r, type IPlaytestTrivialityOptOut as s, type IPlaytestVisualElementRegionObservation as t, type PlaytestDevicePowerRails as u, type PlaytestVec3 as v, parseDeviceBattery as w, parseDeviceCurrent as x, parseDevicePowerRails as y, parseDeviceThermal as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as IPlaytestStep, d as IPlaytestScenarioDiagnostic, e as IPlaytestScenario, P as PlaytestTarget } from './schema-base-
|
|
2
|
-
export { f as IPlaytestArtifactRequest, g as IPlaytestFramebufferCoverageAssertion, h as IPlaytestMedia, i as IPlaytestPathAssertion, j as IPlaytestPerformanceAssertion, k as IPlaytestPointer, l as IPlaytestRenderChainAssertion, m as IPlaytestResourceWait, n as IPlaytestSignalAssertion, o as IPlaytestStartupAssertion, a as IPlaytestToneAssertion, p as IPlaytestToneObservation, q as IPlaytestVisualAssertion, r as IPlaytestVisualElementRegion, s as IPlaytestVisualRegion, t as IPlaytestVisualRegionBounds, u as IPlaytestVisualRegionTarget, v as IPlaytestWheel, w as IPlaytestWorldRuntimeAssertion, I as IToneMetrics } from './schema-base-
|
|
3
|
-
import { I as IPlaytestReport, a as IPlaytestAssertionResult, b as IPlaytestDiagnostic } from './diagnostics-
|
|
4
|
-
export { D as DEVICE_METRICS_CADENCE_MS, c as DEVICE_METRICS_MAX_SAMPLES, d as DeviceMetricsError, e as DeviceMetricsRecorder, H as HOT_START_TEMPERATURE_C, f as IPlaytestCaptureProvenance, g as IPlaytestDeviceBattery, h as IPlaytestDeviceMetricsObservation, i as IPlaytestDeviceMetricsSample, j as IPlaytestDeviceMetricsVerdict, k as IPlaytestDeviceThermal, l as IPlaytestDiagnosticsPolicy, m as
|
|
5
|
-
export { IPlaytestBridgeDescription, IPlaytestBridgeReady, IPlaytestBridgeV1, IPlaytestCameraObservation, IPlaytestContactObservation, IPlaytestDeviceRequest, IPlaytestDeviceResponse, IPlaytestFogObservation, IPlaytestFramePassSample, IPlaytestGameplayObservation, IPlaytestLightObservation, IPlaytestObservationSnapshot, IPlaytestPerformanceObservation, IPlaytestRenderChainObservation, IPlaytestRuntimeDiagnosticsSample, IPlaytestSampleRequest, IPlaytestSceneObservation, IPlaytestSetupConfirmation, IPlaytestSetupRequest, IPlaytestStartupObservation, IPlaytestStartupTimeline, IPlaytestStrideObservation, IPlaytestWorldObservation, IPlaytestWorldRuntimeObservation, JsonValue, PLAYTEST_ADVANCE_TICK_BUDGET_MS, PLAYTEST_BRIDGE_GLOBAL, PLAYTEST_FRAME_PASS_KINDS, PLAYTEST_FROZEN_MARKER, PLAYTEST_PROTOCOL_LIMITS, PLAYTEST_PROTOCOL_VERSION, PLAYTEST_STARTUP_COMPILE_BUDGET_MS, PLAYTEST_STARTUP_READY_TIMEOUT_MS, PlaytestFramePassKind, assertJsonSafe, jsonByteLength } from './protocol.js';
|
|
1
|
+
import { c as IPlaytestStep, d as IPlaytestScenarioDiagnostic, e as IPlaytestScenario, P as PlaytestTarget } from './schema-base-B26KSBoa.js';
|
|
2
|
+
export { f as IPlaytestArtifactRequest, g as IPlaytestFramebufferCoverageAssertion, h as IPlaytestMedia, i as IPlaytestPathAssertion, j as IPlaytestPerformanceAssertion, k as IPlaytestPointer, l as IPlaytestRenderChainAssertion, m as IPlaytestResourceWait, n as IPlaytestSignalAssertion, o as IPlaytestStartupAssertion, a as IPlaytestToneAssertion, p as IPlaytestToneObservation, q as IPlaytestVisualAssertion, r as IPlaytestVisualElementRegion, s as IPlaytestVisualRegion, t as IPlaytestVisualRegionBounds, u as IPlaytestVisualRegionTarget, v as IPlaytestWheel, w as IPlaytestWorldRuntimeAssertion, I as IToneMetrics } from './schema-base-B26KSBoa.js';
|
|
3
|
+
import { I as IPlaytestReport, a as IPlaytestAssertionResult, b as IPlaytestDiagnostic } from './diagnostics-BKg7C6Lf.js';
|
|
4
|
+
export { D as DEVICE_METRICS_CADENCE_MS, c as DEVICE_METRICS_MAX_SAMPLES, d as DeviceMetricsError, e as DeviceMetricsRecorder, H as HOT_START_TEMPERATURE_C, f as IPlaytestCaptureProvenance, g as IPlaytestDeviceBattery, h as IPlaytestDeviceMetricsObservation, i as IPlaytestDeviceMetricsSample, j as IPlaytestDeviceMetricsVerdict, k as IPlaytestDeviceThermal, l as IPlaytestDiagnosticsPolicy, m as IPlaytestFootSlipObservation, n as IPlaytestFramebufferCoverageObservation, o as IPlaytestObservations, p as IPlaytestProtocolDiagnostic, q as IPlaytestSetupApplication, r as IPlaytestSetupRecord, s as IPlaytestTrivialityOptOut, t as IPlaytestVisualElementRegionObservation, P as PlaytestDeviceMeasurement, u as PlaytestDevicePowerRails, v as PlaytestVec3, w as parseDeviceBattery, x as parseDeviceCurrent, y as parseDevicePowerRails, z as parseDeviceThermal, A as playtestDiagnostic, B as resolveDiagnosticsPolicy, C as summarizeDeviceMetrics } from './diagnostics-BKg7C6Lf.js';
|
|
5
|
+
export { IPlaytestBridgeDescription, IPlaytestBridgeReady, IPlaytestBridgeV1, IPlaytestCameraObservation, IPlaytestContactObservation, IPlaytestDeviceRequest, IPlaytestDeviceResponse, IPlaytestFogObservation, IPlaytestFramePassSample, IPlaytestGameplayObservation, IPlaytestLightObservation, IPlaytestObservationSnapshot, IPlaytestPerformanceObservation, IPlaytestRenderChainObservation, IPlaytestRuntimeDiagnosticsSample, IPlaytestSampleRequest, IPlaytestSceneObservation, IPlaytestSetupConfirmation, IPlaytestSetupRequest, IPlaytestSightLineObservation, IPlaytestStartupObservation, IPlaytestStartupTimeline, IPlaytestStrideObservation, IPlaytestWorldObservation, IPlaytestWorldRuntimeObservation, JsonValue, PLAYTEST_ADVANCE_TICK_BUDGET_MS, PLAYTEST_BRIDGE_GLOBAL, PLAYTEST_FRAME_PASS_KINDS, PLAYTEST_FROZEN_MARKER, PLAYTEST_PROTOCOL_LIMITS, PLAYTEST_PROTOCOL_VERSION, PLAYTEST_STARTUP_COMPILE_BUDGET_MS, PLAYTEST_STARTUP_READY_TIMEOUT_MS, PlaytestFramePassKind, assertJsonSafe, jsonByteLength } from './protocol.js';
|
|
6
6
|
|
|
7
7
|
type PlaytestCapability = "browser.canvas" | "browser.console" | "browser.dom" | "browser.input" | "browser.network" | "browser.screenshot" | "browser.trace" | "camera.observe" | "device.metrics" | "entity.bounds" | "entity.observe" | "entity.setup" | "runtime.animation" | "runtime.audio" | "runtime.components" | "runtime.contacts" | "runtime.diagnostics" | "runtime.events" | "runtime.fixedStep" | "runtime.geometry" | "runtime.physics" | "runtime.network" | "runtime.performance" | "runtime.pipelineCensus" | "runtime.renderChain" | "runtime.renderOnly" | "runtime.resources" | "runtime.startup" | "runtime.state" | "runtime.tags" | "runtime.transitions" | "runtime.ui" | "runtime.world" | "scene.nodes" | "scene.observe";
|
|
8
8
|
interface IPlaytestCapabilityDescriptor {
|