@threenative/playtest 0.3.11 → 0.3.13
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-BKg7C6Lf.d.ts → diagnostics-0g-Uyvds.d.ts} +2 -12
- package/dist/index.d.ts +14 -5
- package/dist/index.js +3625 -3796
- package/dist/protocol.d.ts +73 -1
- package/dist/protocol.js +13 -1
- package/dist/runner/cli.d.ts +3 -3
- package/dist/runner/cli.js +6946 -6968
- package/dist/runner/index.d.ts +231 -204
- package/dist/runner/index.js +10038 -10105
- package/dist/{schema-base-B26KSBoa.d.ts → schema-base-D8wNuOLE.d.ts} +26 -27
- package/dist/{shared-Dg-3kiU8.d.ts → shared-CRg0jlDU.d.ts} +11 -3
- package/package.json +2 -2
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-D8wNuOLE.js';
|
|
2
2
|
import './protocol.js';
|
|
3
3
|
|
|
4
4
|
declare const CAPTURE_GUARD_LIMITS: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as IPlaytestToneCaptureObservation, u as IPlaytestVisualRegionBounds, v as IPlaytestVisualRegionTarget, z as IPlaytestDiagnosticsAssertion } from './schema-base-D8wNuOLE.js';
|
|
2
2
|
import { JsonValue, IPlaytestRenderChainObservation, IPlaytestSceneObservation, IPlaytestSceneNodesObservation, IPlaytestSightLineObservation, IPlaytestStartupOffscreenBytes, IPlaytestStartupTimeline, IPlaytestStartupCoverObservation } from './protocol.js';
|
|
3
3
|
|
|
4
4
|
interface IAndroidDriverOptions {
|
|
@@ -600,7 +600,6 @@ interface IPlaytestReport {
|
|
|
600
600
|
trivialityOptOuts: IPlaytestTrivialityOptOut[];
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
type Vec3 = [number, number, number];
|
|
604
603
|
interface IPlaytestDiagnostic {
|
|
605
604
|
artifactPath?: string;
|
|
606
605
|
code: string;
|
|
@@ -680,11 +679,6 @@ interface IPlaytestObservations {
|
|
|
680
679
|
snapshot: unknown;
|
|
681
680
|
tick: number;
|
|
682
681
|
}>;
|
|
683
|
-
entityTransforms?: Record<string, {
|
|
684
|
-
halfExtents?: Vec3;
|
|
685
|
-
position?: Vec3;
|
|
686
|
-
scale?: Vec3;
|
|
687
|
-
}>;
|
|
688
682
|
framebufferCoverage?: IPlaytestFramebufferCoverageObservation;
|
|
689
683
|
/** The per-object geometry capture report, present only when the scenario requested one. */
|
|
690
684
|
geometry?: JsonValue;
|
|
@@ -692,10 +686,6 @@ interface IPlaytestObservations {
|
|
|
692
686
|
after?: unknown;
|
|
693
687
|
before?: unknown;
|
|
694
688
|
}>;
|
|
695
|
-
overlayNodes?: Record<string, {
|
|
696
|
-
after?: unknown;
|
|
697
|
-
before?: unknown;
|
|
698
|
-
}>;
|
|
699
689
|
network: Array<{
|
|
700
690
|
method: string;
|
|
701
691
|
url: string;
|
|
@@ -830,4 +820,4 @@ declare function playtestDiagnostic(code: PlaytestDiagnosticCode, message: strin
|
|
|
830
820
|
nextCommand?: string;
|
|
831
821
|
}): IPlaytestProtocolDiagnostic;
|
|
832
822
|
|
|
833
|
-
export { touchRotationFromWindowDump as $, playtestDiagnostic as A, resolveDiagnosticsPolicy as B, summarizeDeviceMetrics as C, DEVICE_METRICS_CADENCE_MS as D, type
|
|
823
|
+
export { touchRotationFromWindowDump as $, playtestDiagnostic as A, resolveDiagnosticsPolicy as B, summarizeDeviceMetrics as C, DEVICE_METRICS_CADENCE_MS as D, type IAndroidDriver as E, type IAndroidAppState as F, type IAndroidPointer as G, HOT_START_TEMPERATURE_C as H, type IPlaytestReport as I, type IAndroidPointerInjection 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,9 +1,11 @@
|
|
|
1
|
-
import { c as IPlaytestStep, d as IPlaytestScenarioDiagnostic, e as IPlaytestScenario
|
|
2
|
-
export { f as IPlaytestArtifactRequest, g as IPlaytestFramebufferCoverageAssertion, h as
|
|
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 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-
|
|
1
|
+
import { c as IPlaytestStep, d as IPlaytestScenarioDiagnostic, e as IPlaytestScenario } from './schema-base-D8wNuOLE.js';
|
|
2
|
+
export { f as IPlaytestArtifactRequest, g as IPlaytestFramebufferCoverageAssertion, h as IPlaytestGamepad, i as IPlaytestMedia, j as IPlaytestPathAssertion, k as IPlaytestPerformanceAssertion, l as IPlaytestPointer, m as IPlaytestRenderChainAssertion, n as IPlaytestResourceWait, o as IPlaytestSignalAssertion, p as IPlaytestStartupAssertion, a as IPlaytestToneAssertion, q as IPlaytestToneObservation, r as IPlaytestVisualAssertion, s as IPlaytestVisualElementRegion, t as IPlaytestVisualRegion, u as IPlaytestVisualRegionBounds, v as IPlaytestVisualRegionTarget, w as IPlaytestWheel, x as IPlaytestWorldRuntimeAssertion, I as IToneMetrics } from './schema-base-D8wNuOLE.js';
|
|
3
|
+
import { I as IPlaytestReport, a as IPlaytestAssertionResult, b as IPlaytestDiagnostic } from './diagnostics-0g-Uyvds.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-0g-Uyvds.js';
|
|
5
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
|
+
type PlaytestLane = "browser" | "android" | "desktop" | "ios";
|
|
8
|
+
|
|
7
9
|
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
10
|
interface IPlaytestCapabilityDescriptor {
|
|
9
11
|
description: string;
|
|
@@ -39,11 +41,18 @@ interface IPlaytestAssertionSchemaEntry {
|
|
|
39
41
|
fields: IPlaytestAssertionSchemaField[];
|
|
40
42
|
kind: keyof NonNullable<IPlaytestScenario["assert"]>;
|
|
41
43
|
observationPath: string;
|
|
44
|
+
/** Who measures `observationPath`: the game's bridge, or the harness host around the run. */
|
|
45
|
+
observationSource: "bridge" | "host";
|
|
42
46
|
requiredCapabilities: readonly PlaytestCapability[];
|
|
43
47
|
resultIdPrefix: string;
|
|
44
|
-
|
|
48
|
+
/** The lanes whose runner produces this evidence. A lane outside the list fails the assertion by name. */
|
|
49
|
+
supportedOn: readonly PlaytestLane[];
|
|
45
50
|
triviality: "not-applicable" | "reject-initial-value";
|
|
46
51
|
trivialityRationale: string;
|
|
52
|
+
/** What a device lane that lacks the evidence calls this assertion in its refusal; defaults to "<kind> assertions". */
|
|
53
|
+
unsupportedSubject?: string;
|
|
54
|
+
/** One extra sentence for the refusal, after the generic "run it on --target ..." advice. */
|
|
55
|
+
unsupportedHint?: string;
|
|
47
56
|
}
|
|
48
57
|
declare const PLAYTEST_ASSERTION_REGISTRY: readonly IPlaytestAssertionSchemaEntry[];
|
|
49
58
|
declare function requiredPlaytestCapabilities(scenario: IPlaytestScenario, target?: string): PlaytestCapability[];
|