@series-inc/rundot-syncplay 6.0.0-rc.83 → 6.0.0-rc.84
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/core/src/physics/physics-profile-wasm-module.generated.mjs +1 -1
- package/core/src/physics/physics-wasm-module.generated.mjs +1 -1
- package/core/src/physics2d/physics2d-wasm-module.generated.mjs +1 -1
- package/dist/networked-client.d.ts +14 -3
- package/dist/networked-client.js +89 -56
- package/package.json +2 -2
|
@@ -36,7 +36,7 @@ export const physicsProfileWasmMetadata = Object.freeze({
|
|
|
36
36
|
"sourceHash": "dac3f2ab1dd7348052bbae1ba83c2ba6c6950e8cb5e86ada6de9a025bc541280",
|
|
37
37
|
"wasmSha256": "f08bddbc71c520ba0d7394b0fc33a38673cbeaffa00a079fe8d960941cd46105",
|
|
38
38
|
"artifact": "profile",
|
|
39
|
-
"packageVersion": "6.0.0-rc.
|
|
39
|
+
"packageVersion": "6.0.0-rc.84",
|
|
40
40
|
"compilerFlags": [
|
|
41
41
|
"-std=c++20",
|
|
42
42
|
"-O3",
|
|
@@ -36,7 +36,7 @@ export const physicsWasmMetadata = Object.freeze({
|
|
|
36
36
|
"sourceHash": "00c81d3088e594a61154d57b39f5f44e0ca42b43822946da0191c7cac27da7a0",
|
|
37
37
|
"wasmSha256": "29f5ee181a1b958577a76211015bd08dbbdfed9c074c15a40cf725430895baae",
|
|
38
38
|
"artifact": "production",
|
|
39
|
-
"packageVersion": "6.0.0-rc.
|
|
39
|
+
"packageVersion": "6.0.0-rc.84",
|
|
40
40
|
"compilerFlags": [
|
|
41
41
|
"-std=c++20",
|
|
42
42
|
"-O3",
|
|
@@ -50,7 +50,7 @@ export const physics2dWasmMetadata = Object.freeze({
|
|
|
50
50
|
"sourceHash": "c982f7b72b0494c8892d40b5fbf1a67ac94a7f20dea1f160abb888f4ccb313c0",
|
|
51
51
|
"wasmSha256": "49cb90541deed40f5fff1015bb578e13ec9a793d51931c1227e3e5a11bbfa3f7",
|
|
52
52
|
"artifact": "production",
|
|
53
|
-
"packageVersion": "6.0.0-rc.
|
|
53
|
+
"packageVersion": "6.0.0-rc.84",
|
|
54
54
|
"compilerFlags": [
|
|
55
55
|
"-std=c++20",
|
|
56
56
|
"-O3",
|
|
@@ -152,7 +152,10 @@ export interface NetworkedSyncplayClientOptions<State, Input, Checkpoint = unkno
|
|
|
152
152
|
* driving `pumpPaced`.
|
|
153
153
|
*/
|
|
154
154
|
readonly inputDelay?: NetworkedSyncplayClientInputDelayOptions;
|
|
155
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Monotonic-enough clock for RTT measurement, donor upload pacing and ephemeral coalescing. Default Date.now.
|
|
157
|
+
* NEVER used by the sim. The confirmation and resimulation duration stats do not read it: they measure host time.
|
|
158
|
+
*/
|
|
156
159
|
readonly now?: () => number;
|
|
157
160
|
readonly playerId?: string;
|
|
158
161
|
readonly secretCrypto?: SyncplaySecretBrowserCrypto;
|
|
@@ -199,9 +202,12 @@ export interface NetworkedSyncplayClientNetStats {
|
|
|
199
202
|
readonly inputDelayTicks: number;
|
|
200
203
|
readonly rollbacks: number;
|
|
201
204
|
readonly maxRollbackDepth: number;
|
|
202
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Host time in ms spent during the most recent rollback resimulation loop. Measured with performance.now() (or
|
|
207
|
+
* Date.now() where it does not exist), never with the `now` option.
|
|
208
|
+
*/
|
|
203
209
|
readonly lastResimulationDurationMs: number;
|
|
204
|
-
/** Cumulative
|
|
210
|
+
/** Cumulative host time in ms spent resimulating rolled-back frames. Measured as lastResimulationDurationMs. */
|
|
205
211
|
readonly accumulatedResimulationDurationMs: number;
|
|
206
212
|
/** Histogram counts of rollback depths binned into: [0 (predictions confirmed without rollback), 1-2, 3-4, 5-8, 9+]. */
|
|
207
213
|
readonly rollbackDepthHistogram: readonly [number, number, number, number, number];
|
|
@@ -221,7 +227,12 @@ export interface NetworkedSyncplayClientNetStats {
|
|
|
221
227
|
readonly recoveryPhase?: 'idle' | 'catching-up' | 'hydrating' | 'live';
|
|
222
228
|
readonly recoveryBacklogTicks?: number;
|
|
223
229
|
readonly lastSnapshotSelectedTick?: number;
|
|
230
|
+
/**
|
|
231
|
+
* Host time in ms spent applying the most recent confirmed-frame batch. Measured with performance.now() (or
|
|
232
|
+
* Date.now() where it does not exist), never with the `now` option.
|
|
233
|
+
*/
|
|
224
234
|
readonly lastConfirmationDurationMs?: number;
|
|
235
|
+
/** Cumulative host time in ms spent applying confirmed frames. Measured as lastConfirmationDurationMs. */
|
|
225
236
|
readonly accumulatedConfirmationDurationMs?: number;
|
|
226
237
|
readonly retainedSnapshots?: number;
|
|
227
238
|
readonly snapshotBufferCapacity?: number;
|
package/dist/networked-client.js
CHANGED
|
@@ -78,6 +78,10 @@ function createTokenBucket(capacity, tokensPerMs, now) {
|
|
|
78
78
|
* closed window of W ms holds at most TRANSFER_ENVELOPES_PER_TICK * (1 + W * tickRateHz / 1000) envelopes.
|
|
79
79
|
* The drain timer is armed only when the queue is not empty, for the time when the bucket next holds a token. It
|
|
80
80
|
* drains a paused or hidden page that never pumps.
|
|
81
|
+
* When the timer runs and the client clock did not move since the timer was armed, the timer sends what the bucket
|
|
82
|
+
* holds and does not arm again: a stepped test clock cannot refill the bucket. The next pump() or pumpPaced() drains
|
|
83
|
+
* the queue. Where the runtime gives `unref()` (Node), the timer is unref'd, so a pending drain does not keep the
|
|
84
|
+
* event loop alive.
|
|
81
85
|
*/
|
|
82
86
|
function createDonorUploadPacer(config) {
|
|
83
87
|
if (!Number.isFinite(config.tickRateHz) || config.tickRateHz <= 0) {
|
|
@@ -91,21 +95,30 @@ function createDonorUploadPacer(config) {
|
|
|
91
95
|
function armTimer() {
|
|
92
96
|
if (timer !== undefined || disposed || queue.length === 0)
|
|
93
97
|
return;
|
|
98
|
+
const armedAtMs = config.now();
|
|
94
99
|
timer = setTimeout(() => {
|
|
95
100
|
timer = undefined;
|
|
96
|
-
|
|
101
|
+
const clockMoved = config.now() !== armedAtMs;
|
|
102
|
+
if (drain() && clockMoved)
|
|
103
|
+
armTimer();
|
|
97
104
|
}, Math.max(1, bucket.msUntilToken()));
|
|
105
|
+
unrefTimer(timer);
|
|
98
106
|
}
|
|
99
|
-
|
|
107
|
+
/** Sends what the bucket allows. False when the pacer must not arm the timer: disposed, or the client cannot send. */
|
|
108
|
+
function drain() {
|
|
100
109
|
if (disposed || queue.length === 0 || !config.canSend())
|
|
101
|
-
return;
|
|
110
|
+
return false;
|
|
102
111
|
for (let text = queue[0]; text !== undefined && bucket.take(); text = queue[0]) {
|
|
103
112
|
queue.shift();
|
|
104
113
|
config.send(text);
|
|
105
114
|
if (disposed || !config.canSend())
|
|
106
|
-
return;
|
|
115
|
+
return false;
|
|
107
116
|
}
|
|
108
|
-
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
function flush() {
|
|
120
|
+
if (drain())
|
|
121
|
+
armTimer();
|
|
109
122
|
}
|
|
110
123
|
return {
|
|
111
124
|
enqueue(envelopes) {
|
|
@@ -125,6 +138,23 @@ function createDonorUploadPacer(config) {
|
|
|
125
138
|
},
|
|
126
139
|
};
|
|
127
140
|
}
|
|
141
|
+
/** Lets a pending timer not keep the event loop alive, where the runtime gives `unref()` (Node). */
|
|
142
|
+
function unrefTimer(handle) {
|
|
143
|
+
if (typeof handle !== 'object' || handle === null)
|
|
144
|
+
return;
|
|
145
|
+
const unref = handle.unref;
|
|
146
|
+
if (typeof unref === 'function')
|
|
147
|
+
unref.call(handle);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The monotonic clock of the host, for the CPU duration stats only: performance.now() where it exists, else
|
|
151
|
+
* Date.now(). The client option `now` can be a logical clock (a simulated match steps it), so it cannot measure CPU
|
|
152
|
+
* time.
|
|
153
|
+
*/
|
|
154
|
+
function hostDurationClockMs() {
|
|
155
|
+
const performanceClock = globalThis.performance;
|
|
156
|
+
return typeof performanceClock?.now === 'function' ? performanceClock.now() : Date.now();
|
|
157
|
+
}
|
|
128
158
|
/** Outbound ephemeral coalescing: at most one send per 50 ms (20 Hz), latest wins. */
|
|
129
159
|
const EPHEMERAL_MIN_SEND_INTERVAL_MS = 50;
|
|
130
160
|
function equalBytes(left, right) {
|
|
@@ -1611,7 +1641,7 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
1611
1641
|
const firstNewTick = frames.find((frame) => frame.tick > appliedThrough)?.tick;
|
|
1612
1642
|
const presentationWasLive = caughtUp;
|
|
1613
1643
|
const freshRoomFirstFrame = appliedThrough === -1 && firstNewTick === 0 && authorityTick === 0;
|
|
1614
|
-
const confirmStartMs =
|
|
1644
|
+
const confirmStartMs = hostDurationClockMs();
|
|
1615
1645
|
latestAuthorityTick = Math.max(latestAuthorityTick, authorityTick);
|
|
1616
1646
|
for (const frame of frames) {
|
|
1617
1647
|
if (frame.tick > appliedThrough) {
|
|
@@ -1667,7 +1697,7 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
1667
1697
|
}
|
|
1668
1698
|
batchRolledBack = true;
|
|
1669
1699
|
batchPredictedThroughBeforeRollback = predictedThrough;
|
|
1670
|
-
batchRollbackStartMs =
|
|
1700
|
+
batchRollbackStartMs = hostDurationClockMs();
|
|
1671
1701
|
session?.restoreToFrame(tick);
|
|
1672
1702
|
stepConfirmedOrPredictedRange(tick, tick + 1);
|
|
1673
1703
|
predictedThrough = tick + 1;
|
|
@@ -1741,7 +1771,7 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
1741
1771
|
stepConfirmedOrPredictedRange(appliedThrough + 1, targetPredictThrough);
|
|
1742
1772
|
}
|
|
1743
1773
|
predictedThrough = Math.max(appliedThrough + 1, targetPredictThrough);
|
|
1744
|
-
const duration = Math.max(0,
|
|
1774
|
+
const duration = Math.max(0, hostDurationClockMs() - batchRollbackStartMs);
|
|
1745
1775
|
lastResimulationDurationMs = duration;
|
|
1746
1776
|
accumulatedResimulationDurationMs += duration;
|
|
1747
1777
|
}
|
|
@@ -1754,7 +1784,7 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
1754
1784
|
}
|
|
1755
1785
|
timelineMinTick = pruneBeforeTick;
|
|
1756
1786
|
}
|
|
1757
|
-
const confirmDuration = Math.max(0,
|
|
1787
|
+
const confirmDuration = Math.max(0, hostDurationClockMs() - confirmStartMs);
|
|
1758
1788
|
lastConfirmationDurationMs = confirmDuration;
|
|
1759
1789
|
accumulatedConfirmationDurationMs += confirmDuration;
|
|
1760
1790
|
skipConfirmedOwnTicks();
|
|
@@ -1965,54 +1995,59 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
1965
1995
|
schemaHash,
|
|
1966
1996
|
...(requestConfigHash !== undefined ? { configHash: requestConfigHash } : {}),
|
|
1967
1997
|
};
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
if (upload === undefined)
|
|
1979
|
-
throw new Error('SYNCPLAY_DONOR_UPLOAD_TICK_RATE_INVALID');
|
|
1980
|
-
const runtimeBytes = active.getSnapshotBytes(snapshot.frame);
|
|
1981
|
-
const fields = {
|
|
1982
|
-
tick,
|
|
1983
|
-
sessionFrame: tick + 1,
|
|
1984
|
-
runtimeBytes: bytesToBase64(runtimeBytes),
|
|
1985
|
-
runtimeIdentity: active.schemaIdentity,
|
|
1986
|
-
sessionConfigDigest: schemaHash,
|
|
1987
|
-
stateChecksum: active.getWireStateChecksum(snapshot.frame),
|
|
1988
|
-
confirmedInputs: confirmedAtTick.map((input) => cloneCanonical(input)),
|
|
1989
|
-
...(confirmedSeatsAtTick !== undefined ? { confirmedSeats: confirmedSeatsAtTick } : {}),
|
|
1990
|
-
};
|
|
1991
|
-
const bytes = encodeDeterministicStateSnapshot(active.schemaIdentity.stateDigestDomain === 'syncplay.state-report/2'
|
|
1992
|
-
? { ...fields, v: 3, runtimePayloadChecksum: sha256Hex(runtimeBytes), witnesses: 1 }
|
|
1993
|
-
: { ...fields, v: 2 });
|
|
1994
|
-
donorTransferCounter += 1;
|
|
1995
|
-
lastSnapshotSelectedTick = tick;
|
|
1996
|
-
const transfer = createSnapshotTransferFromBytes(bytes, {
|
|
1997
|
-
identity: offerIdentity,
|
|
1998
|
-
frame: tick + 1,
|
|
1999
|
-
transferId: `donor:${slot}:${tick}:${donorTransferCounter}`,
|
|
2000
|
-
});
|
|
2001
|
-
let sequence = donorTransferCounter * 1000;
|
|
2002
|
-
options.transport.send(createDeterministicLocalAuthoritySnapshotOfferEnvelope(sequence++, transfer));
|
|
2003
|
-
const envelopes = [];
|
|
2004
|
-
for (let index = 0; index < transfer.chunks.length; index += 1) {
|
|
2005
|
-
envelopes.push(createDeterministicLocalAuthoritySnapshotChunkEnvelope(sequence++, transfer, index));
|
|
2006
|
-
}
|
|
2007
|
-
envelopes.push(createDeterministicLocalAuthoritySnapshotCompleteEnvelope(sequence++, transfer.transferId));
|
|
2008
|
-
upload.enqueue(envelopes);
|
|
1998
|
+
if (reportedTicks.includes(minTick)) {
|
|
1999
|
+
const tick = minTick;
|
|
2000
|
+
const snapshot = active.peekSnapshot(tick + 1);
|
|
2001
|
+
const confirmedAtTick = timeline[tick]?.inputs;
|
|
2002
|
+
const confirmedSeatsAtTick = timeline[tick]?.seats;
|
|
2003
|
+
if (snapshot !== undefined && confirmedAtTick !== undefined) {
|
|
2004
|
+
// A room without a valid tick rate has no upload budget: refuse with this reason before any donor state moves.
|
|
2005
|
+
const upload = donorUpload;
|
|
2006
|
+
if (upload === undefined) {
|
|
2007
|
+
sendSnapshotRefusal(minTick, minFrame, offerIdentity, 'SYNCPLAY_DONOR_UPLOAD_TICK_RATE_INVALID');
|
|
2009
2008
|
return;
|
|
2010
2009
|
}
|
|
2010
|
+
// A failure from here on is a donor failure, not an unavailable snapshot. It leaves this handler, so the
|
|
2011
|
+
// donor sends no refusal, and no refusal can follow the offer.
|
|
2012
|
+
const runtimeBytes = active.getSnapshotBytes(snapshot.frame);
|
|
2013
|
+
const fields = {
|
|
2014
|
+
tick,
|
|
2015
|
+
sessionFrame: tick + 1,
|
|
2016
|
+
runtimeBytes: bytesToBase64(runtimeBytes),
|
|
2017
|
+
runtimeIdentity: active.schemaIdentity,
|
|
2018
|
+
sessionConfigDigest: schemaHash,
|
|
2019
|
+
stateChecksum: active.getWireStateChecksum(snapshot.frame),
|
|
2020
|
+
confirmedInputs: confirmedAtTick.map((input) => cloneCanonical(input)),
|
|
2021
|
+
...(confirmedSeatsAtTick !== undefined ? { confirmedSeats: confirmedSeatsAtTick } : {}),
|
|
2022
|
+
};
|
|
2023
|
+
const bytes = encodeDeterministicStateSnapshot(active.schemaIdentity.stateDigestDomain === 'syncplay.state-report/2'
|
|
2024
|
+
? { ...fields, v: 3, runtimePayloadChecksum: sha256Hex(runtimeBytes), witnesses: 1 }
|
|
2025
|
+
: { ...fields, v: 2 });
|
|
2026
|
+
donorTransferCounter += 1;
|
|
2027
|
+
lastSnapshotSelectedTick = tick;
|
|
2028
|
+
const transfer = createSnapshotTransferFromBytes(bytes, {
|
|
2029
|
+
identity: offerIdentity,
|
|
2030
|
+
frame: tick + 1,
|
|
2031
|
+
transferId: `donor:${slot}:${tick}:${donorTransferCounter}`,
|
|
2032
|
+
});
|
|
2033
|
+
let sequence = donorTransferCounter * 1000;
|
|
2034
|
+
options.transport.send(createDeterministicLocalAuthoritySnapshotOfferEnvelope(sequence++, transfer));
|
|
2035
|
+
const envelopes = [];
|
|
2036
|
+
for (let index = 0; index < transfer.chunks.length; index += 1) {
|
|
2037
|
+
envelopes.push(createDeterministicLocalAuthoritySnapshotChunkEnvelope(sequence++, transfer, index));
|
|
2038
|
+
}
|
|
2039
|
+
envelopes.push(createDeterministicLocalAuthoritySnapshotCompleteEnvelope(sequence++, transfer.transferId));
|
|
2040
|
+
upload.enqueue(envelopes);
|
|
2041
|
+
return;
|
|
2011
2042
|
}
|
|
2012
2043
|
}
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2044
|
+
sendSnapshotRefusal(minTick, minFrame, offerIdentity, undefined);
|
|
2045
|
+
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Donor role: the one refusal for a request. A refusal without a reason means that the donor holds no snapshot
|
|
2048
|
+
* for the tick. A failure to build or send a snapshot is never a refusal.
|
|
2049
|
+
*/
|
|
2050
|
+
function sendSnapshotRefusal(minTick, minFrame, offerIdentity, reason) {
|
|
2016
2051
|
donorTransferCounter += 1;
|
|
2017
2052
|
const refusalTransferId = `donor:${slot}:${minTick}:unavailable:${donorTransferCounter}`;
|
|
2018
2053
|
const sequence = donorTransferCounter * 1000;
|
|
@@ -2028,9 +2063,7 @@ export function createNetworkedSyncplayClient(options) {
|
|
|
2028
2063
|
totalBytes: 0,
|
|
2029
2064
|
chunkChecksums: [],
|
|
2030
2065
|
unavailable: true,
|
|
2031
|
-
...(
|
|
2032
|
-
? { reason: buildFailure instanceof Error ? buildFailure.message : String(buildFailure) }
|
|
2033
|
-
: {}),
|
|
2066
|
+
...(reason !== undefined ? { reason } : {}),
|
|
2034
2067
|
},
|
|
2035
2068
|
}));
|
|
2036
2069
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@series-inc/rundot-syncplay",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.84",
|
|
4
4
|
"description": "Kinetix orchestration, rollback, replay, late-join, and deterministic networking for RUN.game",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
|
|
262
262
|
"test": "npm run test:core && npm run test:capability-restoration && npm run test:unit-control && npm run test:entity-registry",
|
|
263
263
|
"test:module-promotion": "node --expose-gc --import tsx --test tests/module-promotion.test.ts tests/module-docs.test.ts tests/module-bundle-budget.test.ts scripts/prove-module-promotion.test.mjs scripts/lib/proof-source-closure.test.mjs",
|
|
264
|
-
"test:core": "node --expose-gc --experimental-test-module-mocks --import tsx --test --test-concurrency=1 tests/canonical.test.ts tests/canonical-portability.test.ts tests/runtime-session.test.ts tests/kinetix-runtime-session.test.ts tests/runtime-support.test.ts tests/runtime-guards.test.ts tests/r3f-render-adapter.test.ts tests/snapshot-cost.test.ts tests/sdkSession.test.ts tests/input-authority.test.ts tests/session-wire.test.ts tests/runtime-room-metadata.test.ts tests/session-snapshot.test.ts tests/authority-room.test.ts tests/networked-client-snapshot.test.ts tests/runner.test.ts tests/testing.test.ts tests/browser-session.test.ts tests/secret-config.test.ts tests/secret-protocol.test.ts tests/secret-authority.test.ts tests/secret-client.test.ts tests/secret-holder-release.test.ts tests/seat-control-parity.test.ts tests/seat-control.test.ts tests/seat-control-runtime.test.ts tests/late-join-checksum.test.ts tests/late-join-input-backfill.test.ts tests/replay-scoring.test.ts tests/bot-backfill.test.ts tests/latency-simulation.test.ts tests/production-input-budget.test.ts tests/time-sync.test.ts tests/match-log.test.ts tests/spectator.test.ts tests/synctest.test.ts tests/instant-replay.test.ts tests/session-promotion.test.ts tests/entrypoints.test.ts tests/physics-profile-bundle.test.ts tests/physics-profile-init.test.ts tests/export-surface.test.ts tests/creator-facing-names.test.ts tests/module-seam.test.ts tests/module-contract-portability.test.ts tests/module-identity.test.ts tests/module-corpus.test.ts tests/component-model.test.ts tests/component-model-rollback.test.ts tests/component-model-integration.test.ts tests/actors-ai.test.ts tests/character-3d.test.ts tests/character-3d-certification.test.ts tests/combat-modules.test.ts tests/combat-modules-integration.test.ts tests/firearm.test.ts tests/gameplay-effects.test.ts tests/spatial-interaction.test.ts tests/stats-abilities.test.ts tests/inventory-equipment.test.ts tests/inventory-equipment-certification.test.ts tests/platformer-2d.test.ts tests/platformer-2d-certification.test.ts tests/module-promotion.test.ts tests/module-docs.test.ts tests/module-bundle-budget.test.ts tests/published-side-effects.test.ts tests/host-timing.test.ts tests/test-manifest.test.ts tests/coarse-region.test.ts tests/input-codec.test.ts tests/command-ingress.test.ts tests/session-reconfigure.test.ts tests/prediction-mode.test.ts tests/ephemeral-channel.test.ts tests/runner-surface.test.ts tests/runner-harness.test.ts tests/effects-adapter-bounds.test.ts tests/simulated-match-secrets.test.ts core/tests/core-boundary.test.mjs tests/math-core-parity.test.ts tests/periodic-math.test.ts tests/periodic-noise.test.ts tests/periodic-render.test.ts tests/periodic-grid.test.ts tests/physics-periodic-queries.test.ts tests/math-profile.test.ts tests/movement3d-kcc-unit-contract.test.ts tests/movement3d-static-ground.test.ts tests/physical-assembly.test.ts tests/physical-assembly-determinism.test.ts tests/physical-assembly-certification.test.ts tests/physical-assembly-multiplayer.test.ts tests/state-digest.test.ts tests/large-blob-state.test.ts tests/math-installation-order.test.ts tests/networked-blob-state.test.ts tests/networked-checksum-burst.test.ts tests/networked-runtime-commit.test.ts tests/physics-helper-motion-reads.test.ts tests/physics-unit-conversions.test.ts tests/portal-physics.test.ts tests/physics-checkpoint-capacity.test.ts tests/runner-cleanup.test.ts tests/runtime-release-outcome.test.ts tests/session-checkpoint-budget.test.ts tests/session-owned-cleanup.test.ts tests/history-retention-memory.test.ts tests/mobile-settings-recovery.test.ts tests/confirmed-frame-budget.test.ts tests/tool-owned-adapter.test.ts tests/tool-runtime-lifetime.test.ts tests/movement3d-revision1-baseline.test.ts tests/movement3d-revision1-corpus.test.ts tests/legacy-query-revision1-corpus.test.ts tests/physics-support-boundary.test.ts tests/kcc-corpus-encoding.test.ts tests/voxel-swept-quad-paint.test.ts tests/physics-support-artifact.test.ts tests/physics-si-pulley-runtime.test.ts tests/vehicle-2d.test.ts tests/vehicle-2d-rollback.test.ts tests/vehicle-state3d.test.ts tests/vehicle-state3d-artifact.test.ts tests/partner-rc22-codecs-units.test.ts tests/vehicle-acceptance-matrix.test.ts tests/vehicle-loose-debris.test.ts tests/partner-tarball-closure.test.ts tests/packed-exports.test.ts tests/extraction-fingerprint.test.mjs tests/physics-si-rope-gear-powertrain-runtime.test.ts tests/voxel-body-state.test.ts tests/voxel-carve-cell-sizes.test.ts tests/wreck-yard-d-features.test.ts tests/wreck-yard-regression.test.ts tests/wreck-yard-rc33-gaps.test.ts tests/wreck-yard-rc55-findings.test.ts tests/wreck-yard-rc59-findings.test.ts tests/wreck-yard-rc60-findings.test.ts tests/wreck-yard-rc62-findings.test.ts tests/stack-solver-momentum.test.ts tests/vite-plugin-wasm.test.ts tests/portal-parity-ratchet.test.ts tests/solver-storage-memory-guard.test.ts tests/query-index-parity.test.ts tests/query-index-maintenance.test.ts tests/query-index-churn.test.ts tests/query-index-drift.test.ts tests/query-index-rollback.test.ts tests/portal-render3d.test.ts tests/portal-view-budget.test.ts tests/portal-queries-inside.test.ts tests/portal-render-state.test.ts tests/portal-host-walls.test.ts tests/portal-queries.test.ts tests/portal-placement.test.ts tests/portal-proxies.test.ts tests/portal-a7.test.ts tests/portal-review.test.ts tests/portal-physics-gaps.test.ts tests/extraction.test.ts tests/plugin-lifecycle.test.ts tests/core-zero-io-boundary.test.ts tests/movement3d-revision3-standing.test.mjs tests/movement3d-revision3-recovery.test.mjs tests/coop-shaped-offline.test.ts tests/physics-debug-overlay.test.ts tests/collider-preparation.test.ts tests/navmesh-geometry-cooking.test.ts tests/presentation-ik.test.ts tests/lag-compensation-history.test.ts tests/js-hotpath-regression.test.ts tests/physics-materials-boundary.test.ts tests/physics-materials.test.ts tests/portal-moved-only-tracking.test.ts tests/starved-client-own-input.test.ts tests/connected-catchup-input.test.ts tests/engine-native-math.test.ts tests/body-activity-counts.test.ts tests/physics-wake-on-remove.test.ts tests/box3d-host-filter-ccd.test.ts tests/box3d-public-kcc-vehicle-route.test.ts tests/box3d-sleep-restore-identity.test.ts tests/box3d-support-substep-route.test.ts tests/box3d-backend-contact-materials.test.ts tests/box3d-backend-filter-rules.test.ts tests/box3d-backend-joint-records.test.ts tests/box3d-backend-six-dof.test.ts tests/box3d-checkpoint-continuation.test.ts tests/box3d-deformable-checkpoint.test.ts tests/box3d-deformable-cloth.test.ts tests/box3d-deformable-fracture.test.ts tests/box3d-deformable-particles.test.ts tests/box3d-deformable-rope.test.ts tests/box3d-deformable-sdf.test.ts tests/box3d-deformable-soft-body.test.ts tests/box3d-deformable-integrity.test.ts tests/box3d-deformable-world-registry.test.ts tests/box3d-support-rollback.test.ts tests/box3d-rollback-replay-sweep.test.ts tests/box3d-read-purity.test.ts tests/box3d-restore-forced-sleep.test.ts tests/box3d-wake-digest.test.ts tests/portal-slice-route.test.ts tests/box3d-multi-world-independence.test.ts tests/box3d-on-demand-contacts.test.ts tests/box3d-portal-clone-queries.test.ts tests/box3d-dense-ids-after-removal.test.ts tests/box3d-joint-read-restore.test.ts tests/box3d-joint-read-frame.test.ts tests/box3d-joint-reaction-getters.test.ts tests/box3d-recreated-body-events.test.ts tests/box3d-end-on-removal.test.ts tests/box3d-sensor-shape-pairs.test.ts tests/box3d-event-capacity.test.ts tests/box3d-shared-shape-events.test.ts tests/box3d-adapter-stay-rows.test.ts tests/box3d-step-reads-checked.test.ts tests/box3d-edit-keeps-sleep-time.test.ts tests/donor-transfer-pacing.test.ts tests/box3d-restore-exact-state.test.ts tests/box3d-failed-step-atomic.test.ts tests/box3d-failed-step-post-publication.test.ts tests/box3d-support-read-purity.test.ts tests/box3d-portal-step-exclusions.test.ts tests/box3d-filter-flags-after-removal.test.ts tests/physics-replace-body-key.test.ts tests/box3d-portal-clone-filters.test.ts tests/box3d-portal-plan-ids.test.ts tests/box3d-recreated-pair-closure.test.ts tests/box3d-edit-net-shape-events.test.ts tests/box3d-restored-world-options.test.ts tests/checkpoint-latest-frame-inputs.test.ts tests/frame-bound-reads.test.mjs tests/physics-edit-call-order.test.ts",
|
|
264
|
+
"test:core": "node --expose-gc --experimental-test-module-mocks --import tsx --test --test-concurrency=1 tests/canonical.test.ts tests/canonical-portability.test.ts tests/runtime-session.test.ts tests/kinetix-runtime-session.test.ts tests/runtime-support.test.ts tests/runtime-guards.test.ts tests/r3f-render-adapter.test.ts tests/snapshot-cost.test.ts tests/sdkSession.test.ts tests/input-authority.test.ts tests/session-wire.test.ts tests/runtime-room-metadata.test.ts tests/session-snapshot.test.ts tests/authority-room.test.ts tests/networked-client-snapshot.test.ts tests/runner.test.ts tests/testing.test.ts tests/browser-session.test.ts tests/secret-config.test.ts tests/secret-protocol.test.ts tests/secret-authority.test.ts tests/secret-client.test.ts tests/secret-holder-release.test.ts tests/seat-control-parity.test.ts tests/seat-control.test.ts tests/seat-control-runtime.test.ts tests/late-join-checksum.test.ts tests/late-join-input-backfill.test.ts tests/replay-scoring.test.ts tests/bot-backfill.test.ts tests/latency-simulation.test.ts tests/production-input-budget.test.ts tests/time-sync.test.ts tests/match-log.test.ts tests/spectator.test.ts tests/synctest.test.ts tests/instant-replay.test.ts tests/session-promotion.test.ts tests/entrypoints.test.ts tests/physics-profile-bundle.test.ts tests/physics-profile-init.test.ts tests/export-surface.test.ts tests/creator-facing-names.test.ts tests/module-seam.test.ts tests/module-contract-portability.test.ts tests/module-identity.test.ts tests/module-corpus.test.ts tests/component-model.test.ts tests/component-model-rollback.test.ts tests/component-model-integration.test.ts tests/actors-ai.test.ts tests/character-3d.test.ts tests/character-3d-certification.test.ts tests/combat-modules.test.ts tests/combat-modules-integration.test.ts tests/firearm.test.ts tests/gameplay-effects.test.ts tests/spatial-interaction.test.ts tests/stats-abilities.test.ts tests/inventory-equipment.test.ts tests/inventory-equipment-certification.test.ts tests/platformer-2d.test.ts tests/platformer-2d-certification.test.ts tests/module-promotion.test.ts tests/module-docs.test.ts tests/module-bundle-budget.test.ts tests/published-side-effects.test.ts tests/host-timing.test.ts tests/test-manifest.test.ts tests/coarse-region.test.ts tests/input-codec.test.ts tests/command-ingress.test.ts tests/session-reconfigure.test.ts tests/prediction-mode.test.ts tests/ephemeral-channel.test.ts tests/runner-surface.test.ts tests/runner-harness.test.ts tests/effects-adapter-bounds.test.ts tests/simulated-match-secrets.test.ts core/tests/core-boundary.test.mjs tests/math-core-parity.test.ts tests/periodic-math.test.ts tests/periodic-noise.test.ts tests/periodic-render.test.ts tests/periodic-grid.test.ts tests/physics-periodic-queries.test.ts tests/math-profile.test.ts tests/movement3d-kcc-unit-contract.test.ts tests/movement3d-static-ground.test.ts tests/physical-assembly.test.ts tests/physical-assembly-determinism.test.ts tests/physical-assembly-certification.test.ts tests/physical-assembly-multiplayer.test.ts tests/state-digest.test.ts tests/large-blob-state.test.ts tests/math-installation-order.test.ts tests/networked-blob-state.test.ts tests/networked-checksum-burst.test.ts tests/networked-runtime-commit.test.ts tests/physics-helper-motion-reads.test.ts tests/physics-unit-conversions.test.ts tests/portal-physics.test.ts tests/physics-checkpoint-capacity.test.ts tests/runner-cleanup.test.ts tests/runtime-release-outcome.test.ts tests/session-checkpoint-budget.test.ts tests/session-owned-cleanup.test.ts tests/history-retention-memory.test.ts tests/mobile-settings-recovery.test.ts tests/confirmed-frame-budget.test.ts tests/tool-owned-adapter.test.ts tests/tool-runtime-lifetime.test.ts tests/movement3d-revision1-baseline.test.ts tests/movement3d-revision1-corpus.test.ts tests/legacy-query-revision1-corpus.test.ts tests/physics-support-boundary.test.ts tests/kcc-corpus-encoding.test.ts tests/voxel-swept-quad-paint.test.ts tests/physics-support-artifact.test.ts tests/physics-si-pulley-runtime.test.ts tests/vehicle-2d.test.ts tests/vehicle-2d-rollback.test.ts tests/vehicle-state3d.test.ts tests/vehicle-state3d-artifact.test.ts tests/partner-rc22-codecs-units.test.ts tests/vehicle-acceptance-matrix.test.ts tests/vehicle-loose-debris.test.ts tests/partner-tarball-closure.test.ts tests/packed-exports.test.ts tests/extraction-fingerprint.test.mjs tests/physics-si-rope-gear-powertrain-runtime.test.ts tests/voxel-body-state.test.ts tests/voxel-carve-cell-sizes.test.ts tests/wreck-yard-d-features.test.ts tests/wreck-yard-regression.test.ts tests/wreck-yard-rc33-gaps.test.ts tests/wreck-yard-rc55-findings.test.ts tests/wreck-yard-rc59-findings.test.ts tests/wreck-yard-rc60-findings.test.ts tests/wreck-yard-rc62-findings.test.ts tests/stack-solver-momentum.test.ts tests/vite-plugin-wasm.test.ts tests/portal-parity-ratchet.test.ts tests/solver-storage-memory-guard.test.ts tests/query-index-parity.test.ts tests/query-index-maintenance.test.ts tests/query-index-churn.test.ts tests/query-index-drift.test.ts tests/query-index-rollback.test.ts tests/portal-render3d.test.ts tests/portal-view-budget.test.ts tests/portal-queries-inside.test.ts tests/portal-render-state.test.ts tests/portal-host-walls.test.ts tests/portal-queries.test.ts tests/portal-placement.test.ts tests/portal-proxies.test.ts tests/portal-a7.test.ts tests/portal-review.test.ts tests/portal-physics-gaps.test.ts tests/extraction.test.ts tests/plugin-lifecycle.test.ts tests/core-zero-io-boundary.test.ts tests/movement3d-revision3-standing.test.mjs tests/movement3d-revision3-recovery.test.mjs tests/coop-shaped-offline.test.ts tests/physics-debug-overlay.test.ts tests/collider-preparation.test.ts tests/navmesh-geometry-cooking.test.ts tests/presentation-ik.test.ts tests/lag-compensation-history.test.ts tests/js-hotpath-regression.test.ts tests/physics-materials-boundary.test.ts tests/physics-materials.test.ts tests/portal-moved-only-tracking.test.ts tests/starved-client-own-input.test.ts tests/connected-catchup-input.test.ts tests/engine-native-math.test.ts tests/body-activity-counts.test.ts tests/physics-wake-on-remove.test.ts tests/box3d-host-filter-ccd.test.ts tests/box3d-public-kcc-vehicle-route.test.ts tests/box3d-sleep-restore-identity.test.ts tests/box3d-support-substep-route.test.ts tests/box3d-backend-contact-materials.test.ts tests/box3d-backend-filter-rules.test.ts tests/box3d-backend-joint-records.test.ts tests/box3d-backend-six-dof.test.ts tests/box3d-checkpoint-continuation.test.ts tests/box3d-deformable-checkpoint.test.ts tests/box3d-deformable-cloth.test.ts tests/box3d-deformable-fracture.test.ts tests/box3d-deformable-particles.test.ts tests/box3d-deformable-rope.test.ts tests/box3d-deformable-sdf.test.ts tests/box3d-deformable-soft-body.test.ts tests/box3d-deformable-integrity.test.ts tests/box3d-deformable-world-registry.test.ts tests/box3d-support-rollback.test.ts tests/box3d-rollback-replay-sweep.test.ts tests/box3d-read-purity.test.ts tests/box3d-restore-forced-sleep.test.ts tests/box3d-wake-digest.test.ts tests/portal-slice-route.test.ts tests/box3d-multi-world-independence.test.ts tests/box3d-on-demand-contacts.test.ts tests/box3d-portal-clone-queries.test.ts tests/box3d-dense-ids-after-removal.test.ts tests/box3d-joint-read-restore.test.ts tests/box3d-joint-read-frame.test.ts tests/box3d-joint-reaction-getters.test.ts tests/box3d-recreated-body-events.test.ts tests/box3d-end-on-removal.test.ts tests/box3d-sensor-shape-pairs.test.ts tests/box3d-event-capacity.test.ts tests/box3d-shared-shape-events.test.ts tests/box3d-adapter-stay-rows.test.ts tests/box3d-step-reads-checked.test.ts tests/box3d-edit-keeps-sleep-time.test.ts tests/donor-transfer-pacing.test.ts tests/donor-snapshot-refusal.test.ts tests/donor-drain-timer.test.ts tests/client-duration-clock.test.ts tests/box3d-restore-exact-state.test.ts tests/box3d-failed-step-atomic.test.ts tests/box3d-failed-step-post-publication.test.ts tests/box3d-support-read-purity.test.ts tests/box3d-portal-step-exclusions.test.ts tests/box3d-filter-flags-after-removal.test.ts tests/physics-replace-body-key.test.ts tests/box3d-portal-clone-filters.test.ts tests/box3d-portal-plan-ids.test.ts tests/box3d-recreated-pair-closure.test.ts tests/box3d-edit-net-shape-events.test.ts tests/box3d-restored-world-options.test.ts tests/checkpoint-latest-frame-inputs.test.ts tests/frame-bound-reads.test.mjs tests/physics-edit-call-order.test.ts",
|
|
265
265
|
"test:sdk-contract": "node --import tsx --test tests/sdk-runtime-contract.test.ts",
|
|
266
266
|
"test:soak": "tsx --test tests/runtime-soak.test.ts",
|
|
267
267
|
"test:extended": "node --expose-gc --import tsx --test --test-concurrency=1 tests/performance-primitives.test.ts tests/js-hotpath-perf-guard.test.ts tests/portal-straddler-mesh-cost.test.ts tests/active-voxel-stack.test.ts && tsx --test tests/animation.test.ts tests/asset-cooking.test.ts tests/backend-proof-checksum-vectors.test.ts tests/bot-documents.test.ts tests/bot-primitives.test.ts tests/collision.test.ts tests/command-timeline.test.ts tests/config-bundle.test.ts tests/deterministic-primitives.test.ts tests/ecs-lite.test.ts tests/effects-adapter.test.ts tests/engine-runtime.test.ts tests/errors.test.ts tests/events.test.ts tests/input-button.test.ts tests/load-128-players.test.ts tests/math.test.ts tests/movement.test.ts tests/movement3d.test.ts tests/multiclient-authority.test.ts tests/navigation.test.ts tests/noise.test.ts tests/physics3d-geometry-limits.test.ts tests/physics3d-shared.test.ts tests/physics3d-static-memoization.test.ts tests/random.test.ts tests/rollback-history.test.ts tests/schema-artifacts.test.ts tests/schema-codegen.test.ts tests/schema-dsl-binary.test.ts tests/schema.test.ts tests/signals.test.ts tests/sparse-set.test.ts tests/static-checker.test.ts tests/system-lifecycle.test.ts tests/wire-canonical-sentinels.test.ts tests/ws-frame.test.ts tests/wreck-yard-defects.test.ts tests/wreck-yard-performance-harness.test.ts tests/wreck-yard-partner-verification-rc15.test.ts tests/yawed-crate-stack-settling.test.ts tests/tilted-crate-stack-settling.test.ts tests/query-index-cost.test.ts tests/wreck-yard-vehicle-batch.test.ts tests/engine-runtime-free-list.test.ts",
|