@voltro/plugin-rooms 0.0.0-stage → 0.87.0

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.
Files changed (495) hide show
  1. package/CHANGELOG.md +24329 -0
  2. package/LICENSE +61 -0
  3. package/README.md +9204 -2
  4. package/SECURITY.md +56 -0
  5. package/THIRD-PARTY-NOTICES.md +11322 -0
  6. package/dist/actor.js +1474 -0
  7. package/dist/apiBinding.js +678 -0
  8. package/dist/apiRegistryBinding.js +399 -0
  9. package/dist/apiReservations.js +433 -0
  10. package/dist/baselines.js +73 -0
  11. package/dist/bots.d.ts +1485 -0
  12. package/dist/bots.js +563 -0
  13. package/dist/catalog.js +80 -0
  14. package/dist/checkpointJson.js +24 -0
  15. package/dist/checkpointStore.js +386 -0
  16. package/dist/client.js +56 -0
  17. package/dist/clockSync.js +51 -0
  18. package/dist/collision.js +156 -0
  19. package/dist/commandDelivery.js +101 -0
  20. package/dist/commandRecord.js +11 -0
  21. package/dist/commandWithdrawal.js +183 -0
  22. package/dist/connection.js +497 -0
  23. package/dist/controlCarrier.js +375 -0
  24. package/dist/controlRegistry.js +79 -0
  25. package/dist/controlTarget.js +45 -0
  26. package/dist/controlTransport.js +574 -0
  27. package/dist/developmentBinding.js +113 -0
  28. package/dist/directory.js +323 -0
  29. package/dist/directoryProjection.js +117 -0
  30. package/dist/errors.d.ts +125 -0
  31. package/dist/errors.js +53 -0
  32. package/dist/fixed.d.ts +284 -0
  33. package/dist/fixed.js +10 -0
  34. package/dist/fixed32.js +134 -0
  35. package/dist/fixedCollision.js +60 -0
  36. package/dist/fixedCollision32.js +109 -0
  37. package/dist/fixedMath.js +56 -0
  38. package/dist/fixedRaw.js +11 -0
  39. package/dist/fixedSlabs.js +34 -0
  40. package/dist/fixedTrig.js +48 -0
  41. package/dist/fixedTrig32.js +38 -0
  42. package/dist/fixedVectors.js +113 -0
  43. package/dist/fixedVectors32.js +95 -0
  44. package/dist/fixedWide.js +50 -0
  45. package/dist/fixedWords.js +46 -0
  46. package/dist/gateway.js +57 -0
  47. package/dist/geometry-retention-app/rooms.geometryJournalRetention.workflow.server.tsx +4 -0
  48. package/dist/geometry-retention-app/rooms.geometryJournalRetention.workflow.tsx +14 -0
  49. package/dist/geometry-worker/worker.d.mts +2 -0
  50. package/dist/geometry-worker/worker.mjs +50 -0
  51. package/dist/geometry.d.ts +2249 -0
  52. package/dist/geometry.js +40 -0
  53. package/dist/geometryActivation.js +82 -0
  54. package/dist/geometryActorInventory.js +108 -0
  55. package/dist/geometryAdminClient.js +87 -0
  56. package/dist/geometryAdminData.js +32 -0
  57. package/dist/geometryAdminFixtures.js +50 -0
  58. package/dist/geometryAdminPorts.js +5 -0
  59. package/dist/geometryAdminRpc.js +58 -0
  60. package/dist/geometryAdminRpcRoutes.js +49 -0
  61. package/dist/geometryAdminSchemas.js +39 -0
  62. package/dist/geometryAdministration.js +190 -0
  63. package/dist/geometryAdministrationPorts.js +5 -0
  64. package/dist/geometryApiBinding.js +165 -0
  65. package/dist/geometryAppStorage.js +58 -0
  66. package/dist/geometryArtifacts.js +198 -0
  67. package/dist/geometryAssetBundle.js +117 -0
  68. package/dist/geometryAssetClient.js +25 -0
  69. package/dist/geometryAssetData.js +106 -0
  70. package/dist/geometryAssetHttp.js +123 -0
  71. package/dist/geometryAssetPorts.js +5 -0
  72. package/dist/geometryAssetRpc.js +30 -0
  73. package/dist/geometryAssetRpcRoutes.js +40 -0
  74. package/dist/geometryAssetStorageGrant.js +103 -0
  75. package/dist/geometryBoxOverlap.js +110 -0
  76. package/dist/geometryCatalogueDigest.js +111 -0
  77. package/dist/geometryCellCoverage.js +85 -0
  78. package/dist/geometryCellLoader.js +28 -0
  79. package/dist/geometryChannel.js +134 -0
  80. package/dist/geometryChunkHttp.js +54 -0
  81. package/dist/geometryChunkLeases.js +22 -0
  82. package/dist/geometryClient.d.ts +1429 -0
  83. package/dist/geometryClient.js +149 -0
  84. package/dist/geometryClientChunks.js +330 -0
  85. package/dist/geometryClientDelta.js +25 -0
  86. package/dist/geometryClientHttp.js +37 -0
  87. package/dist/geometryClientInterest.js +109 -0
  88. package/dist/geometryClientStatic.js +34 -0
  89. package/dist/geometryCms.d.ts +763 -0
  90. package/dist/geometryCms.js +217 -0
  91. package/dist/geometryCommitCoordinator.js +241 -0
  92. package/dist/geometryCompactionFixture.js +84 -0
  93. package/dist/geometryCompactionStrategies.js +38 -0
  94. package/dist/geometryConnectionClient.js +23 -0
  95. package/dist/geometryDerivationFixtures.js +141 -0
  96. package/dist/geometryDerivationStrategies.js +27 -0
  97. package/dist/geometryDigest.js +13 -0
  98. package/dist/geometryEditChannel.js +70 -0
  99. package/dist/geometryEditIngress.js +263 -0
  100. package/dist/geometryEdits.js +366 -0
  101. package/dist/geometryEnvelope.js +41 -0
  102. package/dist/geometryGridRaycast.js +92 -0
  103. package/dist/geometryGridSweep.js +92 -0
  104. package/dist/geometryHeightfield.js +166 -0
  105. package/dist/geometryHeightfieldRaycast.js +74 -0
  106. package/dist/geometryHeightfieldSweep.js +85 -0
  107. package/dist/geometryHeightfieldVolume.js +45 -0
  108. package/dist/geometryHost.js +322 -0
  109. package/dist/geometryHostDirectory.js +207 -0
  110. package/dist/geometryHostMutations.js +137 -0
  111. package/dist/geometryHostStreams.js +124 -0
  112. package/dist/geometryHttpBody.js +76 -0
  113. package/dist/geometryHttpRoutes.js +112 -0
  114. package/dist/geometryImportGltf.js +300 -0
  115. package/dist/geometryImportLdtk.js +54 -0
  116. package/dist/geometryImportPng.js +144 -0
  117. package/dist/geometryImportPublication.js +67 -0
  118. package/dist/geometryImportTiled.js +39 -0
  119. package/dist/geometryImportTiles.js +136 -0
  120. package/dist/geometryImportVox.js +130 -0
  121. package/dist/geometryImportedSource.js +101 -0
  122. package/dist/geometryInspectEndpoint.js +248 -0
  123. package/dist/geometryInspection.js +92 -0
  124. package/dist/geometryInstall.js +121 -0
  125. package/dist/geometryJournalArchiveData.js +21 -0
  126. package/dist/geometryJournalArchiveIndex.js +330 -0
  127. package/dist/geometryJournalArchiveTable.js +21 -0
  128. package/dist/geometryJournalCompaction.js +100 -0
  129. package/dist/geometryJournalPatch.js +47 -0
  130. package/dist/geometryJournalRetention.js +112 -0
  131. package/dist/geometryJournalRetentionSchemas.js +36 -0
  132. package/dist/geometryJournalRetentionSweep.js +112 -0
  133. package/dist/geometryJournalRetentionWorkflow.js +28 -0
  134. package/dist/geometryJournalRetentionWorkflowData.js +31 -0
  135. package/dist/geometryJournalStorage.js +148 -0
  136. package/dist/geometryLoader.js +118 -0
  137. package/dist/geometryManifest.js +113 -0
  138. package/dist/geometryManifestChannel.js +93 -0
  139. package/dist/geometryManifestClient.js +122 -0
  140. package/dist/geometryManifestData.js +49 -0
  141. package/dist/geometryManifestPorts.js +5 -0
  142. package/dist/geometryManifestPublication.js +109 -0
  143. package/dist/geometryManifestSource.js +68 -0
  144. package/dist/geometryMigrationJournal.js +14 -0
  145. package/dist/geometryMigrationStrategies.js +7 -0
  146. package/dist/geometryMigrations.js +323 -0
  147. package/dist/geometryNativeMetadata.js +52 -0
  148. package/dist/geometryPatch.js +170 -0
  149. package/dist/geometryPersistence.js +449 -0
  150. package/dist/geometryPersistenceCapture.js +69 -0
  151. package/dist/geometryPersistenceData.js +140 -0
  152. package/dist/geometryPersistencePorts.js +5 -0
  153. package/dist/geometryPlayerAdmission.js +34 -0
  154. package/dist/geometryPlayerEditOwner.js +265 -0
  155. package/dist/geometryPlayerEdits.js +49 -0
  156. package/dist/geometryPrepared.js +188 -0
  157. package/dist/geometryPrivacyFence.js +24 -0
  158. package/dist/geometryProceduralPublication.js +91 -0
  159. package/dist/geometryProceduralWorker.js +164 -0
  160. package/dist/geometryPublication.js +110 -0
  161. package/dist/geometryRayAlgebra.js +116 -0
  162. package/dist/geometryReadClient.js +157 -0
  163. package/dist/geometryReadPorts.js +5 -0
  164. package/dist/geometryReadRpc.js +27 -0
  165. package/dist/geometryReadRpcRoutes.js +47 -0
  166. package/dist/geometryReliablePublication.js +82 -0
  167. package/dist/geometryReloadPorts.js +46 -0
  168. package/dist/geometryReloadSource.js +278 -0
  169. package/dist/geometryRenderCache.js +165 -0
  170. package/dist/geometryRenderLod.js +102 -0
  171. package/dist/geometryRollback.js +125 -0
  172. package/dist/geometryRollbackCoordinator.js +203 -0
  173. package/dist/geometryRollbackPorts.js +46 -0
  174. package/dist/geometryRollbackSource.js +209 -0
  175. package/dist/geometryRollbackStore.js +198 -0
  176. package/dist/geometrySchemas.js +27 -0
  177. package/dist/geometryServer.d.ts +2766 -0
  178. package/dist/geometryServer.js +62 -0
  179. package/dist/geometryShapeRaycast.js +111 -0
  180. package/dist/geometryShapeSegments.js +34 -0
  181. package/dist/geometryShapes.js +223 -0
  182. package/dist/geometrySnapshot.js +76 -0
  183. package/dist/geometrySnapshotChannel.js +160 -0
  184. package/dist/geometrySnapshotClient.js +159 -0
  185. package/dist/geometrySnapshotPreparation.js +76 -0
  186. package/dist/geometrySnapshotServer.js +191 -0
  187. package/dist/geometrySqlOwner.js +21 -0
  188. package/dist/geometryStorage.js +127 -0
  189. package/dist/geometryStorageGrant.js +69 -0
  190. package/dist/geometryStorageIdentity.js +9 -0
  191. package/dist/geometryTileArtifact.js +10 -0
  192. package/dist/geometryTileCodec.js +194 -0
  193. package/dist/geometryTileCollision.js +96 -0
  194. package/dist/geometryTileNavigation.js +128 -0
  195. package/dist/geometryTileView.js +35 -0
  196. package/dist/geometryVersionActivation.js +114 -0
  197. package/dist/geometryVersionClient.js +238 -0
  198. package/dist/geometryVersionCompare.js +40 -0
  199. package/dist/geometryVersionMigration.js +106 -0
  200. package/dist/geometryVoxel.js +253 -0
  201. package/dist/geometryWorldEntitySubject.js +32 -0
  202. package/dist/geometryWorldExtent.js +12 -0
  203. package/dist/geometryWorldMetadata.js +38 -0
  204. package/dist/geometryWorldStrategyFixtures.js +127 -0
  205. package/dist/geometryWorldView.js +307 -0
  206. package/dist/host.js +128 -0
  207. package/dist/hostBinding.js +277 -0
  208. package/dist/hostCellObservation.js +114 -0
  209. package/dist/hostClientCapacity.js +90 -0
  210. package/dist/hostCommandScope.js +64 -0
  211. package/dist/hostController.js +3094 -0
  212. package/dist/hostDeployment.js +65 -0
  213. package/dist/hostDrain.js +152 -0
  214. package/dist/hostDrainPorts.js +5 -0
  215. package/dist/hostDriver.js +179 -0
  216. package/dist/hostLane.js +288 -0
  217. package/dist/hostListener.js +79 -0
  218. package/dist/hostListenerBinding.js +19 -0
  219. package/dist/hostLoopObservation.js +90 -0
  220. package/dist/hostMetrics.js +56 -0
  221. package/dist/hostRegistryBinding.js +418 -0
  222. package/dist/hostSelection.js +16 -0
  223. package/dist/hostShutdown.js +47 -0
  224. package/dist/hostTurnObservation.js +53 -0
  225. package/dist/identities.js +4 -0
  226. package/dist/index.d.ts +8632 -0
  227. package/dist/index.js +232 -0
  228. package/dist/inputReceipts.js +63 -0
  229. package/dist/inputRedundancy.js +55 -0
  230. package/dist/inspect.js +238 -0
  231. package/dist/lockstep.d.ts +436 -0
  232. package/dist/lockstep.js +382 -0
  233. package/dist/lockstepAdmission.js +262 -0
  234. package/dist/lockstepAdmissionCodec.js +94 -0
  235. package/dist/lockstepAdmissionPorts.js +5 -0
  236. package/dist/lockstepClientSession.js +578 -0
  237. package/dist/lockstepDefinition.js +148 -0
  238. package/dist/lockstepHostLoop.js +243 -0
  239. package/dist/lockstepInitialAdmission.js +67 -0
  240. package/dist/lockstepInitialStrategyFixtures.js +45 -0
  241. package/dist/lockstepJournal.js +395 -0
  242. package/dist/lockstepJournalCodec.js +254 -0
  243. package/dist/lockstepJournalPorts.js +5 -0
  244. package/dist/lockstepJournalRebuild.js +208 -0
  245. package/dist/lockstepJournalRows.js +57 -0
  246. package/dist/lockstepMembers.js +131 -0
  247. package/dist/lockstepMessages.js +47 -0
  248. package/dist/lockstepOwnedRoom.js +764 -0
  249. package/dist/lockstepPolicies.js +84 -0
  250. package/dist/lockstepReact.js +47 -0
  251. package/dist/lockstepRecoveryTruth.js +121 -0
  252. package/dist/lockstepRosterConfig.js +32 -0
  253. package/dist/lockstepSeed.js +12 -0
  254. package/dist/lockstepSeedFixture.js +20 -0
  255. package/dist/lockstepServer.d.ts +3897 -0
  256. package/dist/lockstepServer.js +325 -0
  257. package/dist/lockstepServerConfig.js +101 -0
  258. package/dist/lockstepServerRoles.js +403 -0
  259. package/dist/lockstepServerStrategyFixtures.js +33 -0
  260. package/dist/lockstepStrategies.js +6 -0
  261. package/dist/lockstepStrategyFixtures.js +137 -0
  262. package/dist/lockstepTerminal.js +90 -0
  263. package/dist/lockstepTerminalPorts.js +5 -0
  264. package/dist/lockstepTransport.js +773 -0
  265. package/dist/lockstepTransportConfig.js +32 -0
  266. package/dist/lockstepWireRoster.js +34 -0
  267. package/dist/matchRoomProvider.js +32 -0
  268. package/dist/matchRooms.js +19 -0
  269. package/dist/membershipObserver.js +47 -0
  270. package/dist/moderation.js +98 -0
  271. package/dist/movementSpecials.js +104 -0
  272. package/dist/ownership.js +17 -0
  273. package/dist/ownershipWithdrawal.js +18 -0
  274. package/dist/pcg32.js +96 -0
  275. package/dist/ports.d.ts +1241 -0
  276. package/dist/ports.js +11 -0
  277. package/dist/quaternion.js +70 -0
  278. package/dist/react.d.ts +406 -0
  279. package/dist/react.js +109 -0
  280. package/dist/reaper-app/rooms.reaper.workflow.server.tsx +5 -0
  281. package/dist/reaper-app/rooms.reaper.workflow.tsx +13 -0
  282. package/dist/reaper.js +243 -0
  283. package/dist/reaperSchemas.js +42 -0
  284. package/dist/reaperWorkflow.js +70 -0
  285. package/dist/recovery.js +189 -0
  286. package/dist/recoverySeats.js +26 -0
  287. package/dist/replay.d.ts +273 -0
  288. package/dist/replay.js +485 -0
  289. package/dist/replayPorts.js +5 -0
  290. package/dist/replayRecording.js +67 -0
  291. package/dist/replaySchema.js +157 -0
  292. package/dist/replayStorage.d.ts +149 -0
  293. package/dist/replayStorage.js +485 -0
  294. package/dist/reservationBatch.js +422 -0
  295. package/dist/reservationSchemas.js +17 -0
  296. package/dist/reservations.js +259 -0
  297. package/dist/reservePort.js +69 -0
  298. package/dist/resolvedOptions.js +4 -0
  299. package/dist/room.d.ts +1006 -0
  300. package/dist/room.js +284 -0
  301. package/dist/roomAccessSweep.js +95 -0
  302. package/dist/roomAppCommandControl.js +59 -0
  303. package/dist/roomAuthoringStrategy.js +17 -0
  304. package/dist/roomErasure.js +198 -0
  305. package/dist/roomPoolRuntimeDefaults.js +24 -0
  306. package/dist/roomPoolSelection.js +19 -0
  307. package/dist/roomPoolTopology.js +212 -0
  308. package/dist/rpc.d.ts +551 -0
  309. package/dist/rpc.js +112 -0
  310. package/dist/rpcClient.js +152 -0
  311. package/dist/rpcRoutes.js +28 -0
  312. package/dist/runtime.js +1123 -0
  313. package/dist/schemaHistory.js +98 -0
  314. package/dist/seatStore.js +151 -0
  315. package/dist/seatStrategyFixtures.js +52 -0
  316. package/dist/seatSubject.js +32 -0
  317. package/dist/seats.js +130 -0
  318. package/dist/serverSession.js +811 -0
  319. package/dist/serverSessionConfig.js +43 -0
  320. package/dist/sessionAdmission.js +53 -0
  321. package/dist/sidecarAdmission.js +103 -0
  322. package/dist/sidecarConfig.js +116 -0
  323. package/dist/sidecarConfigPublication.js +64 -0
  324. package/dist/sidecarHostListener.js +208 -0
  325. package/dist/sidecarIpc.js +205 -0
  326. package/dist/sidecarPeer.js +310 -0
  327. package/dist/sidecarProcessPort.js +28 -0
  328. package/dist/sidecarRuntime.js +168 -0
  329. package/dist/sidecarSelection.js +142 -0
  330. package/dist/sidecarWire.js +178 -0
  331. package/dist/sidecarWrites.js +163 -0
  332. package/dist/simulation.d.ts +391 -0
  333. package/dist/simulation.js +282 -0
  334. package/dist/simulationAuthoring.js +29 -0
  335. package/dist/simulationBytes.js +27 -0
  336. package/dist/simulationConformance.js +305 -0
  337. package/dist/simulationInputHistoryCapture.js +35 -0
  338. package/dist/simulationInputHistoryWire.js +193 -0
  339. package/dist/simulationOptionsWire.js +78 -0
  340. package/dist/simulationRecoveryWire.js +134 -0
  341. package/dist/simulationReplay.js +127 -0
  342. package/dist/simulationSnapshotWire.js +112 -0
  343. package/dist/simulationState.js +178 -0
  344. package/dist/snapshotBlob.js +126 -0
  345. package/dist/snapshotBlobCleanup.js +93 -0
  346. package/dist/snapshotBlobIndex.js +38 -0
  347. package/dist/snapshotBudget.js +80 -0
  348. package/dist/snapshotChain.js +185 -0
  349. package/dist/snapshotErasure.js +172 -0
  350. package/dist/snapshotInspection.js +105 -0
  351. package/dist/snapshotSegmentBlobs.js +58 -0
  352. package/dist/snapshotUploads.js +166 -0
  353. package/dist/socketTransport.js +253 -0
  354. package/dist/spatial.js +104 -0
  355. package/dist/spectatorPolicy.js +26 -0
  356. package/dist/spectatorProducer.js +89 -0
  357. package/dist/startFailureCause.js +4 -0
  358. package/dist/stateCodec.js +658 -0
  359. package/dist/strategies.d.ts +210 -0
  360. package/dist/strategies.js +8 -0
  361. package/dist/strategiesServer.d.ts +286 -0
  362. package/dist/strategiesServer.js +11 -0
  363. package/dist/strategyFixtures.js +182 -0
  364. package/dist/streamFraming.js +122 -0
  365. package/dist/streamTransport.js +266 -0
  366. package/dist/subjectAdmission.js +50 -0
  367. package/dist/subjectPrivacy.js +281 -0
  368. package/dist/subjectPrivacyBinding.js +90 -0
  369. package/dist/systemManifest.js +182 -0
  370. package/dist/tables.js +159 -0
  371. package/dist/testHarness.js +89 -0
  372. package/dist/testing.d.ts +3684 -0
  373. package/dist/testing.js +221 -0
  374. package/dist/testingPorts.js +271 -0
  375. package/dist/testingServer.d.ts +4060 -0
  376. package/dist/testingServer.js +18 -0
  377. package/dist/transform.d.ts +692 -0
  378. package/dist/transform.js +217 -0
  379. package/dist/transform3d.js +118 -0
  380. package/dist/transformCollection.js +24 -0
  381. package/dist/transformCollection3d.js +24 -0
  382. package/dist/transformCollectionCore.js +156 -0
  383. package/dist/transformFrames.js +121 -0
  384. package/dist/transformPrediction3d.js +127 -0
  385. package/dist/transformRules.js +123 -0
  386. package/dist/transformSchemas.js +20 -0
  387. package/dist/transport.js +32 -0
  388. package/dist/transportAuthoring.js +29 -0
  389. package/dist/transportCleanup.js +22 -0
  390. package/dist/transportConformance.js +124 -0
  391. package/dist/transportConnector.js +82 -0
  392. package/dist/transportEndpoints.js +38 -0
  393. package/dist/transportsServer.d.ts +5515 -0
  394. package/dist/transportsServer.js +6 -0
  395. package/dist/viewProjection.js +16 -0
  396. package/dist/web.d.ts +2286 -0
  397. package/dist/web.js +518 -0
  398. package/dist/webTransportClient.js +173 -0
  399. package/dist/wire.d.ts +992 -0
  400. package/dist/wire.js +492 -0
  401. package/dist/withdrawalPort.js +28 -0
  402. package/dist/world.d.ts +1894 -0
  403. package/dist/world.js +333 -0
  404. package/dist/worldActorReceipts.js +48 -0
  405. package/dist/worldActorTransferSnapshot.js +14 -0
  406. package/dist/worldAdmissionPending.js +8 -0
  407. package/dist/worldBoundaryCoordinator.js +148 -0
  408. package/dist/worldCatalog.js +81 -0
  409. package/dist/worldCellAllocation.js +203 -0
  410. package/dist/worldCellDestination.js +68 -0
  411. package/dist/worldCells.js +489 -0
  412. package/dist/worldChange.js +32 -0
  413. package/dist/worldClient.js +664 -0
  414. package/dist/worldClientControl.js +141 -0
  415. package/dist/worldClientPendingInput.js +16 -0
  416. package/dist/worldClientRpc.js +133 -0
  417. package/dist/worldClientRpcRoutes.js +43 -0
  418. package/dist/worldClientSchemas.js +28 -0
  419. package/dist/worldCommands.js +140 -0
  420. package/dist/worldData.js +42 -0
  421. package/dist/worldDefaultBinding.js +377 -0
  422. package/dist/worldDefaultGroupAdmission.js +82 -0
  423. package/dist/worldDefaultGroupAppServices.js +31 -0
  424. package/dist/worldDefaultGroupCompensation.js +109 -0
  425. package/dist/worldDefaultGroupContinuation.js +96 -0
  426. package/dist/worldDefaultGroupControl.js +72 -0
  427. package/dist/worldDefaultGroupMembers.js +85 -0
  428. package/dist/worldDefaultGroups.js +21 -0
  429. package/dist/worldDefaultPending.js +79 -0
  430. package/dist/worldDefaultService.js +245 -0
  431. package/dist/worldEntities.js +2980 -0
  432. package/dist/worldEntityCodec.js +21 -0
  433. package/dist/worldEntityHandoffView.js +154 -0
  434. package/dist/worldGeometry.js +170 -0
  435. package/dist/worldGhostAdmission.js +65 -0
  436. package/dist/worldGhostDestination.js +118 -0
  437. package/dist/worldGhostGateway.js +132 -0
  438. package/dist/worldGhostHandshake.js +108 -0
  439. package/dist/worldGhostHost.js +42 -0
  440. package/dist/worldGhostIngress.js +132 -0
  441. package/dist/worldGhostNeighborhood.js +70 -0
  442. package/dist/worldGhostNeighbors.js +86 -0
  443. package/dist/worldGhostOutbound.js +110 -0
  444. package/dist/worldGhostPublisher.js +216 -0
  445. package/dist/worldGhostReceiver.js +213 -0
  446. package/dist/worldGhostSender.js +146 -0
  447. package/dist/worldGhostSocket.js +78 -0
  448. package/dist/worldGhostWire.js +172 -0
  449. package/dist/worldGroupCommand.js +49 -0
  450. package/dist/worldGroupDeadline.js +115 -0
  451. package/dist/worldGroupPreparation.js +115 -0
  452. package/dist/worldGroupReadyControl.js +128 -0
  453. package/dist/worldGroupSupervisor.js +120 -0
  454. package/dist/worldHandoffMetrics.js +59 -0
  455. package/dist/worldHandoffView.js +100 -0
  456. package/dist/worldHostSource.js +69 -0
  457. package/dist/worldInspectEndpoint.js +250 -0
  458. package/dist/worldInspection.js +109 -0
  459. package/dist/worldInstanceAdmission.js +31 -0
  460. package/dist/worldInstanceAllocation.js +116 -0
  461. package/dist/worldInstanceDestination.js +64 -0
  462. package/dist/worldInstanceExpiry.js +282 -0
  463. package/dist/worldInstanceExpirySupervisor.js +88 -0
  464. package/dist/worldInstanceLifecycle.js +103 -0
  465. package/dist/worldInstanceState.js +52 -0
  466. package/dist/worldInstances.js +478 -0
  467. package/dist/worldJoin.js +56 -0
  468. package/dist/worldLayers.js +151 -0
  469. package/dist/worldLeases.js +78 -0
  470. package/dist/worldManifest.js +25 -0
  471. package/dist/worldMovement.js +63 -0
  472. package/dist/worldPersistence.js +134 -0
  473. package/dist/worldProjection.js +221 -0
  474. package/dist/worldReact.js +110 -0
  475. package/dist/worldRecoveryActor.js +35 -0
  476. package/dist/worldReturnAnchor.js +49 -0
  477. package/dist/worldRoomHooks.js +57 -0
  478. package/dist/worldRoomPool.js +27 -0
  479. package/dist/worldRoomSteps.js +133 -0
  480. package/dist/worldSeatBinding.js +36 -0
  481. package/dist/worldServer.d.ts +6936 -0
  482. package/dist/worldServer.js +48 -0
  483. package/dist/worldSourceSeatPending.js +9 -0
  484. package/dist/worldStrategyFixtures.js +164 -0
  485. package/dist/worldTesting.js +27 -0
  486. package/dist/worldTransitionDefaults.js +198 -0
  487. package/dist/worldTransitionExecutor.js +519 -0
  488. package/dist/worldTransitionGroup.js +113 -0
  489. package/dist/worldTransitionPhysicalSteps.js +40 -0
  490. package/dist/worldTransitionResolver.js +228 -0
  491. package/dist/worldTransitionSeatGroup.js +64 -0
  492. package/dist/worldTransitionSeats.js +260 -0
  493. package/dist/worldTransitionState.js +95 -0
  494. package/dist/worldTransitions.js +101 -0
  495. package/package.json +189 -4
@@ -0,0 +1,325 @@
1
+ import { BudgetExceeded as e, ProtocolError as t, RoomAuthoringError as n } from "./errors.js";
2
+ import { unsignedWord as r } from "./fixedWords.js";
3
+ import { freezeSimulationValue as i, simulationOwnData as a } from "./simulationAuthoring.js";
4
+ import { captureSimulationBytes as o } from "./simulationBytes.js";
5
+ import { simulationValueCodec as s } from "./simulationState.js";
6
+ import { captureLockstepRosterOptions as c } from "./lockstepRosterConfig.js";
7
+ import { RoomInputCodec as l } from "./stateCodec.js";
8
+ import { RoomLockstepJournalPort as u } from "./lockstepJournalPorts.js";
9
+ import { RoomLockstepAdmissionPort as d } from "./lockstepAdmissionPorts.js";
10
+ import { RoomLockstepTerminalPort as f } from "./lockstepTerminalPorts.js";
11
+ import { RoomLockstepMemberOwner as p } from "./lockstepMembers.js";
12
+ import { captureRoomAdmittedSessionReader as m } from "./serverSession.js";
13
+ import { dataStoreRoomLockstepJournal as h, roomLockstepJournalLayer as g } from "./lockstepJournal.js";
14
+ import { rebuildRoomLockstepAuthorityFromSql as _, rebuildRoomLockstepFromSql as v } from "./lockstepJournalRebuild.js";
15
+ import { dataStoreRoomLockstepAdmission as y, roomLockstepAdmissionLayer as b } from "./lockstepAdmission.js";
16
+ import { dataStoreRoomLockstepTerminal as x, roomLockstepTerminalLayer as S } from "./lockstepTerminal.js";
17
+ import { RoomRuntime as C } from "./runtime.js";
18
+ import { RoomLockstepServer as w, createRoomLockstepServer as T } from "./lockstepServerRoles.js";
19
+ import { RoomLockstepHostLoop as E, createRoomLockstepHostLoop as D } from "./lockstepHostLoop.js";
20
+ import { RoomLockstepTransportOwner as O, createRoomLockstepTransportOwner as k } from "./lockstepTransport.js";
21
+ import { RoomLockstepOwnedRoom as A } from "./lockstepOwnedRoom.js";
22
+ import { Result as j } from "effect";
23
+ //#region src/lockstepServer.ts
24
+ function M(e) {
25
+ throw new t({ detail: e });
26
+ }
27
+ function N(e) {
28
+ throw new n({
29
+ room: "lockstep",
30
+ detail: e
31
+ });
32
+ }
33
+ var P = (e, t) => t !== null && Object.keys(e).every((n) => t[n] === e[n]), F = (e) => {
34
+ let t = 0, n = 0;
35
+ for (let r of e) r < 32 ? n = (n | 1 << r) >>> 0 : t = (t | 1 << r - 32) >>> 0;
36
+ return Object.freeze({
37
+ hi: t,
38
+ lo: n
39
+ });
40
+ }, I = class {
41
+ #e;
42
+ #t;
43
+ #n;
44
+ #r;
45
+ #i;
46
+ #a = !1;
47
+ #o = !1;
48
+ #s = /* @__PURE__ */ new Map();
49
+ #c = /* @__PURE__ */ new Map();
50
+ #l = /* @__PURE__ */ new Set();
51
+ #u = /* @__PURE__ */ new Set();
52
+ #d = /* @__PURE__ */ new Map();
53
+ #f = /* @__PURE__ */ new Map();
54
+ #p = 0;
55
+ #m = 0;
56
+ constructor(e, t, n = {}) {
57
+ let i = a(t, [
58
+ "roomId",
59
+ "tenantId",
60
+ "epoch"
61
+ ], [
62
+ "roomId",
63
+ "tenantId",
64
+ "epoch"
65
+ ]), o = (e) => typeof e == "string" && e.length > 0 && e.length <= 191 && e.trim() === e && !/[\u0000-\u001f\u007f]/.test(e) ? e : N("Invalid lockstep roster owner scope"), u = r(i.epoch);
66
+ u > 2147483647 && N("Lockstep epoch exceeds SQL ownership range"), this.#e = Object.freeze({
67
+ roomId: o(i.roomId),
68
+ tenantId: o(i.tenantId),
69
+ epoch: u
70
+ });
71
+ let d = c(n);
72
+ this.#t = d, this.#i = d.initialTick;
73
+ let f = Math.min(4096, d.maxPendingBytes * 7);
74
+ this.#n = new l(e, {
75
+ maxBytes: d.maxPendingBytes,
76
+ maxFieldId: f
77
+ }), this.#r = s(e, {
78
+ maxBytes: d.maxPendingBytes,
79
+ maxFieldId: f
80
+ }, !1, !0);
81
+ }
82
+ get tick() {
83
+ return this.#i;
84
+ }
85
+ get sealed() {
86
+ return this.#a;
87
+ }
88
+ metrics() {
89
+ return Object.freeze({
90
+ pendingInputs: this.#p,
91
+ pendingBytes: this.#m,
92
+ players: this.#s.size
93
+ });
94
+ }
95
+ work(e) {
96
+ if (this.#o) return M("Lockstep roster work cannot reenter admission, input, projection or privacy");
97
+ this.#o = !0;
98
+ try {
99
+ return e();
100
+ } finally {
101
+ this.#o = !1;
102
+ }
103
+ }
104
+ admit(e, t) {
105
+ return this.work(() => this.admitOwned(e, t));
106
+ }
107
+ admitAt(e, t) {
108
+ return this.work(() => {
109
+ let n = a(e, ["slot", "playerId"], ["slot", "playerId"]);
110
+ return !Number.isInteger(n.slot) || n.slot < 0 || n.slot > 63 ? M("Restored roster requires an actual bounded slot") : this.admitOwned(r(n.playerId), t, n.slot);
111
+ });
112
+ }
113
+ rebind(e) {
114
+ return this.work(() => {
115
+ let t = m(e), n = t.identity(), r = n ? this.#c.get(n.sessionId) : void 0, i = r === void 0 ? void 0 : this.#s.get(r);
116
+ return !this.#a || !n || !i || i.read.identity() !== null || n.roomId !== this.#e.roomId || n.tenantId !== this.#e.tenantId || n.epoch !== this.#e.epoch || n.subjectId !== i.evidence.subjectId || n.sessionId !== i.evidence.sessionId || t.inputSchemaHash() !== this.#n.schemaHash ? M("Reconnect requires the same retained withdrawn player with actual current admission") : (this.#s.set(i.player.slot, Object.freeze({
117
+ player: i.player,
118
+ evidence: n,
119
+ read: t
120
+ })), i.player);
121
+ });
122
+ }
123
+ seal() {
124
+ return this.work(() => this.sealOwned());
125
+ }
126
+ join(e, t, n) {
127
+ return this.work(() => {
128
+ if (!this.#a) return M("Late join requires a sealed roster");
129
+ let i = a(e, ["slot", "playerId"], ["slot", "playerId"]);
130
+ if (!Number.isInteger(i.slot) || i.slot < 0 || i.slot > 63) return M("Late join requires an actual bounded slot");
131
+ if (!Number.isSafeInteger(n) || n <= this.#i || n > 4294967295) return M("Late join tick must lie ahead of the consumed frontier");
132
+ this.#a = !1;
133
+ try {
134
+ let e = this.admitOwned(r(i.playerId), t, i.slot);
135
+ return this.#d.set(e.slot, n), e;
136
+ } finally {
137
+ this.#a = !0;
138
+ }
139
+ });
140
+ }
141
+ activeAt(e) {
142
+ return [...this.#s].filter(([t]) => (this.#d.get(t) ?? 0) <= e).sort((e, t) => e[0] - t[0]);
143
+ }
144
+ submit(e, t, n) {
145
+ return this.work(() => this.submitOwned(e, t, n));
146
+ }
147
+ next() {
148
+ return this.work(() => this.nextOwned());
149
+ }
150
+ consumeNext() {
151
+ return this.work(() => this.consumeNextOwned());
152
+ }
153
+ eraseSubject(e, t) {
154
+ return this.work(() => this.eraseSubjectOwned(e, t));
155
+ }
156
+ exportSubject(e, t) {
157
+ return this.work(() => this.exportSubjectOwned(e, t));
158
+ }
159
+ playerForSession(e) {
160
+ return this.work(() => {
161
+ let t = m(e).identity(), n = t ? this.#c.get(t.sessionId) : void 0, r = n === void 0 ? void 0 : this.#s.get(n);
162
+ return !this.#a || !r || !P(r.evidence, t) || !this.current(r) ? M("Lockstep player admission is no longer current") : r.player;
163
+ });
164
+ }
165
+ playersForSubject(e, t) {
166
+ return this.work(() => (this.privacyScope(e, t), Object.freeze([...this.#s.values()].filter((e) => e.evidence.subjectId === t).map((e) => e.player))));
167
+ }
168
+ withdraw() {
169
+ this.work(() => {
170
+ for (let e of [...this.#s.keys()]) this.removeSlot(e);
171
+ });
172
+ }
173
+ privacyScope(e, t) {
174
+ if (e !== this.#e.tenantId || typeof t != "string" || !t || t.length > 191) return M("Lockstep privacy scope does not match its Room owner");
175
+ }
176
+ current(e) {
177
+ return P(e.evidence, e.read.identity()) && e.read.inputSchemaHash() === this.#n.schemaHash;
178
+ }
179
+ admitOwned(t, n, i) {
180
+ if (r(t), this.#a) return M("Lockstep roster is sealed; late admission requires actual server snapshot integration");
181
+ let a = m(n), o = a.identity();
182
+ if (!o || o.roomId !== this.#e.roomId || o.tenantId !== this.#e.tenantId || o.epoch !== this.#e.epoch || a.inputSchemaHash() !== this.#n.schemaHash) return M("Lockstep requires the exact actual player admission and input layout");
183
+ if (this.#l.has(t) || this.#c.has(o.sessionId)) return M("Lockstep player/session identity is already assigned");
184
+ if (this.#u.size >= this.#t.maxPlayers) throw new e({
185
+ budget: "lockstepRosterSlots",
186
+ limit: this.#t.maxPlayers
187
+ });
188
+ let s = i ?? 0;
189
+ if (i === void 0) for (; this.#u.has(s);) s++;
190
+ if (this.#u.has(s)) return M("Lockstep player slot is already assigned");
191
+ let c = Object.freeze({
192
+ slot: s,
193
+ playerId: t
194
+ }), l = Object.freeze({
195
+ player: c,
196
+ evidence: o,
197
+ read: a
198
+ });
199
+ return this.#s.set(s, l), this.#c.set(o.sessionId, s), this.#l.add(t), this.#u.add(s), c;
200
+ }
201
+ sealOwned() {
202
+ if (this.#s.size === 0 || [...this.#s.values()].some((e) => !this.current(e))) return M("Cannot seal unavailable lockstep player admissions");
203
+ let e = Object.freeze([...this.#s.values()].map((e) => e.player));
204
+ return this.#a = !0, e;
205
+ }
206
+ submitOwned(t, n, a) {
207
+ if (!this.#a) return M("Lockstep input requires a sealed actual roster");
208
+ let s = m(t).identity(), c = s ? this.#c.get(s.sessionId) : void 0, l = c === void 0 ? void 0 : this.#s.get(c);
209
+ if (!l || !P(l.evidence, s) || !this.current(l)) return M("Lockstep player admission is no longer current");
210
+ if (r(n), !Array.isArray(a) || a.length < 1 || a.length > this.#t.maxBatchInputs || Reflect.ownKeys(a).length !== a.length + 1 || n > 4294967295 - a.length + 1) return M("Lockstep input batch exceeds dense/count/tick work");
211
+ let u = [], d = 0, f = 0, p = 0;
212
+ for (let t = 0; t < a.length; t++) {
213
+ let r = n + t;
214
+ if (r <= this.#i || r < (this.#d.get(l.player.slot) ?? 0)) {
215
+ f++;
216
+ continue;
217
+ }
218
+ if (r > this.#i + this.#t.maxFutureTicks) throw new e({
219
+ budget: "lockstepFutureTicks",
220
+ limit: this.#t.maxFutureTicks
221
+ });
222
+ let s = Object.getOwnPropertyDescriptor(a, String(t));
223
+ if (!s?.enumerable || !("value" in s)) return M("Lockstep input batch accessors refuse");
224
+ let c = o(s.value, this.#t.maxPendingBytes, "lockstepPendingBytes"), m = this.#f.get(r)?.get(l.player.slot);
225
+ if (m) {
226
+ if (c.length !== m.bytes.length || c.some((e, t) => e !== m.bytes[t])) return M("Conflicting lockstep intent for an admitted player tick");
227
+ d++;
228
+ continue;
229
+ }
230
+ if (this.#p + u.length + 1 > this.#t.maxPendingInputs) throw new e({
231
+ budget: "lockstepPendingInputs",
232
+ limit: this.#t.maxPendingInputs
233
+ });
234
+ if (p += c.length, this.#m + p > this.#t.maxPendingBytes) throw new e({
235
+ budget: "lockstepPendingBytes",
236
+ limit: this.#t.maxPendingBytes
237
+ });
238
+ let h = this.#n.decodeFull(c);
239
+ if (j.isFailure(h)) throw h.failure;
240
+ let g = i(this.#r.capture(h.success));
241
+ u.push({
242
+ tick: r,
243
+ pending: Object.freeze({
244
+ input: g,
245
+ bytes: c
246
+ })
247
+ });
248
+ }
249
+ for (let e of u) {
250
+ let t = this.#f.get(e.tick);
251
+ t || (t = /* @__PURE__ */ new Map(), this.#f.set(e.tick, t)), t.set(l.player.slot, e.pending);
252
+ }
253
+ return this.#p += u.length, this.#m += p, Object.freeze({
254
+ accepted: u.length,
255
+ duplicates: d,
256
+ expired: f
257
+ });
258
+ }
259
+ nextOwned() {
260
+ if (!this.#a) return M("Lockstep next input requires a sealed roster");
261
+ let e = r(this.#i + 1), t = this.activeAt(e);
262
+ if (!t.length) return Object.freeze({
263
+ _tag: "empty",
264
+ tick: e
265
+ });
266
+ let n = this.#f.get(e), a = [], o = [];
267
+ for (let [e, r] of t) {
268
+ let t = n?.get(e);
269
+ !t || !this.current(r) ? a.push(e) : o.push(Object.freeze({
270
+ playerId: r.player.playerId,
271
+ input: i(this.#r.capture(t.input))
272
+ }));
273
+ }
274
+ for (let [e, n] of t) !this.current(n) && !a.includes(e) && a.push(e);
275
+ return a.length ? Object.freeze({
276
+ _tag: "waiting",
277
+ tick: e,
278
+ waitingFor: F(a)
279
+ }) : Object.freeze({
280
+ _tag: "complete",
281
+ tick: e,
282
+ players: F(t.map(([e]) => e)),
283
+ inputs: Object.freeze(o)
284
+ });
285
+ }
286
+ consumeNextOwned() {
287
+ let e = this.nextOwned();
288
+ if (e._tag !== "complete") return e;
289
+ let t = this.#f.get(e.tick);
290
+ if (!t) return M("Lockstep pending matrix disappeared");
291
+ for (let e of t.values()) this.#p--, this.#m -= e.bytes.length;
292
+ return this.#f.delete(e.tick), this.#i = e.tick, e;
293
+ }
294
+ removeSlot(e) {
295
+ let t = this.#s.get(e);
296
+ if (t) {
297
+ for (let [t, n] of this.#f) {
298
+ let r = n.get(e);
299
+ r && (this.#p--, this.#m -= r.bytes.length, r.bytes.fill(0), n.delete(e)), n.size || this.#f.delete(t);
300
+ }
301
+ this.#s.delete(e), this.#c.delete(t.evidence.sessionId), this.#d.delete(e);
302
+ }
303
+ }
304
+ eraseSubjectOwned(e, t) {
305
+ this.privacyScope(e, t);
306
+ let n = [...this.#s.entries()].filter(([, e]) => e.evidence.subjectId === t).map(([e]) => e);
307
+ for (let e of n) this.removeSlot(e);
308
+ return n.length;
309
+ }
310
+ exportSubjectOwned(e, t) {
311
+ this.privacyScope(e, t);
312
+ let n = [];
313
+ for (let [e, r] of this.#s) if (r.evidence.subjectId === t) for (let [t, a] of this.#f) {
314
+ let o = a.get(e);
315
+ o && n.push(Object.freeze({
316
+ tick: t,
317
+ playerId: r.player.playerId,
318
+ input: i(this.#r.capture(o.input))
319
+ }));
320
+ }
321
+ return n.sort((e, t) => e.tick - t.tick || e.playerId - t.playerId), Object.freeze(n);
322
+ }
323
+ }, L = (e, t, n = {}) => new I(e, t, n);
324
+ //#endregion
325
+ export { d as RoomLockstepAdmissionPort, E as RoomLockstepHostLoop, I as RoomLockstepInputRoster, u as RoomLockstepJournalPort, p as RoomLockstepMemberOwner, A as RoomLockstepOwnedRoom, w as RoomLockstepServer, f as RoomLockstepTerminalPort, O as RoomLockstepTransportOwner, C as RoomRuntime, D as createRoomLockstepHostLoop, L as createRoomLockstepInputRoster, T as createRoomLockstepServer, k as createRoomLockstepTransportOwner, y as dataStoreRoomLockstepAdmission, h as dataStoreRoomLockstepJournal, x as dataStoreRoomLockstepTerminal, _ as rebuildRoomLockstepAuthorityFromSql, v as rebuildRoomLockstepFromSql, b as roomLockstepAdmissionLayer, g as roomLockstepJournalLayer, S as roomLockstepTerminalLayer };
@@ -0,0 +1,101 @@
1
+ import { RoomAuthoringError as e } from "./errors.js";
2
+ import { simulationOwnData as t } from "./simulationAuthoring.js";
3
+ import { captureLockstepRosterOptions as n } from "./lockstepRosterConfig.js";
4
+ import { createLockstepPolicies as r, defaultLockstepStallPolicy as i } from "./lockstepPolicies.js";
5
+ //#region src/lockstepServerConfig.ts
6
+ function a(t) {
7
+ throw new e({
8
+ room: "lockstep",
9
+ detail: t
10
+ });
11
+ }
12
+ var o = Object.freeze({
13
+ refereeLagTicks: 12,
14
+ hashEvery: 10,
15
+ hashHistoryTicks: 64,
16
+ maxQueuedTicks: 64,
17
+ maxQueuedInputBytes: 1048576,
18
+ maxPendingHashes: 256,
19
+ maxRefereeSteps: 8,
20
+ maxReplayTicks: 16,
21
+ maxReplayInputBytes: 1048576,
22
+ maxSnapshotBudgetBytes: 134217728,
23
+ maxRejectionAttempts: 64
24
+ }), s = Object.freeze({
25
+ refereeLagTicks: 4096,
26
+ hashEvery: 4096,
27
+ hashHistoryTicks: 4096,
28
+ maxQueuedTicks: 4096,
29
+ maxQueuedInputBytes: 16777216,
30
+ maxPendingHashes: 262144,
31
+ maxRefereeSteps: 4096,
32
+ maxReplayTicks: 4096,
33
+ maxReplayInputBytes: 16777216,
34
+ maxSnapshotBudgetBytes: 268435456,
35
+ maxRejectionAttempts: 65536
36
+ }), c = (e = {}) => {
37
+ let c = [
38
+ "maxPlayers",
39
+ "maxFutureTicks",
40
+ "maxBatchInputs",
41
+ "maxPendingInputs",
42
+ "maxPendingBytes"
43
+ ], l = t(e, [
44
+ ...c,
45
+ ...Object.keys(o),
46
+ "serverRole",
47
+ "onDesync",
48
+ "stallPolicy",
49
+ "strategies"
50
+ ], []), u = Object.hasOwn(l, "serverRole") ? l.serverRole : "relay";
51
+ if (u !== "relay" && u !== "referee" && u !== "full") return a("Invalid lockstep server role");
52
+ let d = { ...o };
53
+ for (let e of Object.keys(o)) {
54
+ let t = Object.hasOwn(l, e) ? l[e] : o[e];
55
+ if (!Number.isSafeInteger(t) || t < (e === "refereeLagTicks" ? 0 : 1) || t > s[e]) return a("Invalid bounded lockstep role work limit");
56
+ Object.defineProperty(d, e, {
57
+ value: t,
58
+ enumerable: !0
59
+ });
60
+ }
61
+ let f = Object.hasOwn(l, "onDesync") ? l.onDesync : "resync";
62
+ if (f !== "resync" && f !== "end" && f !== "flag" && typeof f != "function") return a("Invalid lockstep desync policy");
63
+ let p = t(Object.hasOwn(l, "strategies") ? l.strategies : {}, [
64
+ "refereeLag",
65
+ "stallPolicy",
66
+ "onDesync"
67
+ ], []);
68
+ if (typeof f == "function") {
69
+ if (Object.hasOwn(p, "onDesync")) return a("Configure desync through one actual callback or strategy slot");
70
+ p.onDesync = f;
71
+ }
72
+ let m = d.refereeLagTicks, h = i(Object.hasOwn(l, "stallPolicy") ? l.stallPolicy : {}), g = r({
73
+ refereeLagTicks: m,
74
+ stallPolicy: h,
75
+ onDesync: typeof f == "function" ? "resync" : f
76
+ }, p);
77
+ if (Object.defineProperty(d, "refereeLagTicks", {
78
+ value: g.refereeLagTicks,
79
+ enumerable: !0
80
+ }), d.refereeLagTicks >= d.maxQueuedTicks) return a("Referee queue must exceed its configured lag");
81
+ let _ = {};
82
+ for (let e of c) Object.hasOwn(l, e) && (_[e] = l[e]);
83
+ let { initialTick: v, ...y } = n(_), b = Object.freeze(p), x = Object.freeze({
84
+ ...d,
85
+ ...y,
86
+ refereeLagTicks: m,
87
+ serverRole: u,
88
+ stallPolicy: h,
89
+ onDesync: typeof f == "function" ? "resync" : f,
90
+ strategies: b
91
+ });
92
+ return Object.freeze({
93
+ role: u,
94
+ limits: Object.freeze(d),
95
+ roster: Object.freeze(y),
96
+ policies: g,
97
+ options: x
98
+ });
99
+ };
100
+ //#endregion
101
+ export { c as captureRoomLockstepServerOptions };