@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.
- package/CHANGELOG.md +24329 -0
- package/LICENSE +61 -0
- package/README.md +9204 -2
- package/SECURITY.md +56 -0
- package/THIRD-PARTY-NOTICES.md +11322 -0
- package/dist/actor.js +1474 -0
- package/dist/apiBinding.js +678 -0
- package/dist/apiRegistryBinding.js +399 -0
- package/dist/apiReservations.js +433 -0
- package/dist/baselines.js +73 -0
- package/dist/bots.d.ts +1485 -0
- package/dist/bots.js +563 -0
- package/dist/catalog.js +80 -0
- package/dist/checkpointJson.js +24 -0
- package/dist/checkpointStore.js +386 -0
- package/dist/client.js +56 -0
- package/dist/clockSync.js +51 -0
- package/dist/collision.js +156 -0
- package/dist/commandDelivery.js +101 -0
- package/dist/commandRecord.js +11 -0
- package/dist/commandWithdrawal.js +183 -0
- package/dist/connection.js +497 -0
- package/dist/controlCarrier.js +375 -0
- package/dist/controlRegistry.js +79 -0
- package/dist/controlTarget.js +45 -0
- package/dist/controlTransport.js +574 -0
- package/dist/developmentBinding.js +113 -0
- package/dist/directory.js +323 -0
- package/dist/directoryProjection.js +117 -0
- package/dist/errors.d.ts +125 -0
- package/dist/errors.js +53 -0
- package/dist/fixed.d.ts +284 -0
- package/dist/fixed.js +10 -0
- package/dist/fixed32.js +134 -0
- package/dist/fixedCollision.js +60 -0
- package/dist/fixedCollision32.js +109 -0
- package/dist/fixedMath.js +56 -0
- package/dist/fixedRaw.js +11 -0
- package/dist/fixedSlabs.js +34 -0
- package/dist/fixedTrig.js +48 -0
- package/dist/fixedTrig32.js +38 -0
- package/dist/fixedVectors.js +113 -0
- package/dist/fixedVectors32.js +95 -0
- package/dist/fixedWide.js +50 -0
- package/dist/fixedWords.js +46 -0
- package/dist/gateway.js +57 -0
- package/dist/geometry-retention-app/rooms.geometryJournalRetention.workflow.server.tsx +4 -0
- package/dist/geometry-retention-app/rooms.geometryJournalRetention.workflow.tsx +14 -0
- package/dist/geometry-worker/worker.d.mts +2 -0
- package/dist/geometry-worker/worker.mjs +50 -0
- package/dist/geometry.d.ts +2249 -0
- package/dist/geometry.js +40 -0
- package/dist/geometryActivation.js +82 -0
- package/dist/geometryActorInventory.js +108 -0
- package/dist/geometryAdminClient.js +87 -0
- package/dist/geometryAdminData.js +32 -0
- package/dist/geometryAdminFixtures.js +50 -0
- package/dist/geometryAdminPorts.js +5 -0
- package/dist/geometryAdminRpc.js +58 -0
- package/dist/geometryAdminRpcRoutes.js +49 -0
- package/dist/geometryAdminSchemas.js +39 -0
- package/dist/geometryAdministration.js +190 -0
- package/dist/geometryAdministrationPorts.js +5 -0
- package/dist/geometryApiBinding.js +165 -0
- package/dist/geometryAppStorage.js +58 -0
- package/dist/geometryArtifacts.js +198 -0
- package/dist/geometryAssetBundle.js +117 -0
- package/dist/geometryAssetClient.js +25 -0
- package/dist/geometryAssetData.js +106 -0
- package/dist/geometryAssetHttp.js +123 -0
- package/dist/geometryAssetPorts.js +5 -0
- package/dist/geometryAssetRpc.js +30 -0
- package/dist/geometryAssetRpcRoutes.js +40 -0
- package/dist/geometryAssetStorageGrant.js +103 -0
- package/dist/geometryBoxOverlap.js +110 -0
- package/dist/geometryCatalogueDigest.js +111 -0
- package/dist/geometryCellCoverage.js +85 -0
- package/dist/geometryCellLoader.js +28 -0
- package/dist/geometryChannel.js +134 -0
- package/dist/geometryChunkHttp.js +54 -0
- package/dist/geometryChunkLeases.js +22 -0
- package/dist/geometryClient.d.ts +1429 -0
- package/dist/geometryClient.js +149 -0
- package/dist/geometryClientChunks.js +330 -0
- package/dist/geometryClientDelta.js +25 -0
- package/dist/geometryClientHttp.js +37 -0
- package/dist/geometryClientInterest.js +109 -0
- package/dist/geometryClientStatic.js +34 -0
- package/dist/geometryCms.d.ts +763 -0
- package/dist/geometryCms.js +217 -0
- package/dist/geometryCommitCoordinator.js +241 -0
- package/dist/geometryCompactionFixture.js +84 -0
- package/dist/geometryCompactionStrategies.js +38 -0
- package/dist/geometryConnectionClient.js +23 -0
- package/dist/geometryDerivationFixtures.js +141 -0
- package/dist/geometryDerivationStrategies.js +27 -0
- package/dist/geometryDigest.js +13 -0
- package/dist/geometryEditChannel.js +70 -0
- package/dist/geometryEditIngress.js +263 -0
- package/dist/geometryEdits.js +366 -0
- package/dist/geometryEnvelope.js +41 -0
- package/dist/geometryGridRaycast.js +92 -0
- package/dist/geometryGridSweep.js +92 -0
- package/dist/geometryHeightfield.js +166 -0
- package/dist/geometryHeightfieldRaycast.js +74 -0
- package/dist/geometryHeightfieldSweep.js +85 -0
- package/dist/geometryHeightfieldVolume.js +45 -0
- package/dist/geometryHost.js +322 -0
- package/dist/geometryHostDirectory.js +207 -0
- package/dist/geometryHostMutations.js +137 -0
- package/dist/geometryHostStreams.js +124 -0
- package/dist/geometryHttpBody.js +76 -0
- package/dist/geometryHttpRoutes.js +112 -0
- package/dist/geometryImportGltf.js +300 -0
- package/dist/geometryImportLdtk.js +54 -0
- package/dist/geometryImportPng.js +144 -0
- package/dist/geometryImportPublication.js +67 -0
- package/dist/geometryImportTiled.js +39 -0
- package/dist/geometryImportTiles.js +136 -0
- package/dist/geometryImportVox.js +130 -0
- package/dist/geometryImportedSource.js +101 -0
- package/dist/geometryInspectEndpoint.js +248 -0
- package/dist/geometryInspection.js +92 -0
- package/dist/geometryInstall.js +121 -0
- package/dist/geometryJournalArchiveData.js +21 -0
- package/dist/geometryJournalArchiveIndex.js +330 -0
- package/dist/geometryJournalArchiveTable.js +21 -0
- package/dist/geometryJournalCompaction.js +100 -0
- package/dist/geometryJournalPatch.js +47 -0
- package/dist/geometryJournalRetention.js +112 -0
- package/dist/geometryJournalRetentionSchemas.js +36 -0
- package/dist/geometryJournalRetentionSweep.js +112 -0
- package/dist/geometryJournalRetentionWorkflow.js +28 -0
- package/dist/geometryJournalRetentionWorkflowData.js +31 -0
- package/dist/geometryJournalStorage.js +148 -0
- package/dist/geometryLoader.js +118 -0
- package/dist/geometryManifest.js +113 -0
- package/dist/geometryManifestChannel.js +93 -0
- package/dist/geometryManifestClient.js +122 -0
- package/dist/geometryManifestData.js +49 -0
- package/dist/geometryManifestPorts.js +5 -0
- package/dist/geometryManifestPublication.js +109 -0
- package/dist/geometryManifestSource.js +68 -0
- package/dist/geometryMigrationJournal.js +14 -0
- package/dist/geometryMigrationStrategies.js +7 -0
- package/dist/geometryMigrations.js +323 -0
- package/dist/geometryNativeMetadata.js +52 -0
- package/dist/geometryPatch.js +170 -0
- package/dist/geometryPersistence.js +449 -0
- package/dist/geometryPersistenceCapture.js +69 -0
- package/dist/geometryPersistenceData.js +140 -0
- package/dist/geometryPersistencePorts.js +5 -0
- package/dist/geometryPlayerAdmission.js +34 -0
- package/dist/geometryPlayerEditOwner.js +265 -0
- package/dist/geometryPlayerEdits.js +49 -0
- package/dist/geometryPrepared.js +188 -0
- package/dist/geometryPrivacyFence.js +24 -0
- package/dist/geometryProceduralPublication.js +91 -0
- package/dist/geometryProceduralWorker.js +164 -0
- package/dist/geometryPublication.js +110 -0
- package/dist/geometryRayAlgebra.js +116 -0
- package/dist/geometryReadClient.js +157 -0
- package/dist/geometryReadPorts.js +5 -0
- package/dist/geometryReadRpc.js +27 -0
- package/dist/geometryReadRpcRoutes.js +47 -0
- package/dist/geometryReliablePublication.js +82 -0
- package/dist/geometryReloadPorts.js +46 -0
- package/dist/geometryReloadSource.js +278 -0
- package/dist/geometryRenderCache.js +165 -0
- package/dist/geometryRenderLod.js +102 -0
- package/dist/geometryRollback.js +125 -0
- package/dist/geometryRollbackCoordinator.js +203 -0
- package/dist/geometryRollbackPorts.js +46 -0
- package/dist/geometryRollbackSource.js +209 -0
- package/dist/geometryRollbackStore.js +198 -0
- package/dist/geometrySchemas.js +27 -0
- package/dist/geometryServer.d.ts +2766 -0
- package/dist/geometryServer.js +62 -0
- package/dist/geometryShapeRaycast.js +111 -0
- package/dist/geometryShapeSegments.js +34 -0
- package/dist/geometryShapes.js +223 -0
- package/dist/geometrySnapshot.js +76 -0
- package/dist/geometrySnapshotChannel.js +160 -0
- package/dist/geometrySnapshotClient.js +159 -0
- package/dist/geometrySnapshotPreparation.js +76 -0
- package/dist/geometrySnapshotServer.js +191 -0
- package/dist/geometrySqlOwner.js +21 -0
- package/dist/geometryStorage.js +127 -0
- package/dist/geometryStorageGrant.js +69 -0
- package/dist/geometryStorageIdentity.js +9 -0
- package/dist/geometryTileArtifact.js +10 -0
- package/dist/geometryTileCodec.js +194 -0
- package/dist/geometryTileCollision.js +96 -0
- package/dist/geometryTileNavigation.js +128 -0
- package/dist/geometryTileView.js +35 -0
- package/dist/geometryVersionActivation.js +114 -0
- package/dist/geometryVersionClient.js +238 -0
- package/dist/geometryVersionCompare.js +40 -0
- package/dist/geometryVersionMigration.js +106 -0
- package/dist/geometryVoxel.js +253 -0
- package/dist/geometryWorldEntitySubject.js +32 -0
- package/dist/geometryWorldExtent.js +12 -0
- package/dist/geometryWorldMetadata.js +38 -0
- package/dist/geometryWorldStrategyFixtures.js +127 -0
- package/dist/geometryWorldView.js +307 -0
- package/dist/host.js +128 -0
- package/dist/hostBinding.js +277 -0
- package/dist/hostCellObservation.js +114 -0
- package/dist/hostClientCapacity.js +90 -0
- package/dist/hostCommandScope.js +64 -0
- package/dist/hostController.js +3094 -0
- package/dist/hostDeployment.js +65 -0
- package/dist/hostDrain.js +152 -0
- package/dist/hostDrainPorts.js +5 -0
- package/dist/hostDriver.js +179 -0
- package/dist/hostLane.js +288 -0
- package/dist/hostListener.js +79 -0
- package/dist/hostListenerBinding.js +19 -0
- package/dist/hostLoopObservation.js +90 -0
- package/dist/hostMetrics.js +56 -0
- package/dist/hostRegistryBinding.js +418 -0
- package/dist/hostSelection.js +16 -0
- package/dist/hostShutdown.js +47 -0
- package/dist/hostTurnObservation.js +53 -0
- package/dist/identities.js +4 -0
- package/dist/index.d.ts +8632 -0
- package/dist/index.js +232 -0
- package/dist/inputReceipts.js +63 -0
- package/dist/inputRedundancy.js +55 -0
- package/dist/inspect.js +238 -0
- package/dist/lockstep.d.ts +436 -0
- package/dist/lockstep.js +382 -0
- package/dist/lockstepAdmission.js +262 -0
- package/dist/lockstepAdmissionCodec.js +94 -0
- package/dist/lockstepAdmissionPorts.js +5 -0
- package/dist/lockstepClientSession.js +578 -0
- package/dist/lockstepDefinition.js +148 -0
- package/dist/lockstepHostLoop.js +243 -0
- package/dist/lockstepInitialAdmission.js +67 -0
- package/dist/lockstepInitialStrategyFixtures.js +45 -0
- package/dist/lockstepJournal.js +395 -0
- package/dist/lockstepJournalCodec.js +254 -0
- package/dist/lockstepJournalPorts.js +5 -0
- package/dist/lockstepJournalRebuild.js +208 -0
- package/dist/lockstepJournalRows.js +57 -0
- package/dist/lockstepMembers.js +131 -0
- package/dist/lockstepMessages.js +47 -0
- package/dist/lockstepOwnedRoom.js +764 -0
- package/dist/lockstepPolicies.js +84 -0
- package/dist/lockstepReact.js +47 -0
- package/dist/lockstepRecoveryTruth.js +121 -0
- package/dist/lockstepRosterConfig.js +32 -0
- package/dist/lockstepSeed.js +12 -0
- package/dist/lockstepSeedFixture.js +20 -0
- package/dist/lockstepServer.d.ts +3897 -0
- package/dist/lockstepServer.js +325 -0
- package/dist/lockstepServerConfig.js +101 -0
- package/dist/lockstepServerRoles.js +403 -0
- package/dist/lockstepServerStrategyFixtures.js +33 -0
- package/dist/lockstepStrategies.js +6 -0
- package/dist/lockstepStrategyFixtures.js +137 -0
- package/dist/lockstepTerminal.js +90 -0
- package/dist/lockstepTerminalPorts.js +5 -0
- package/dist/lockstepTransport.js +773 -0
- package/dist/lockstepTransportConfig.js +32 -0
- package/dist/lockstepWireRoster.js +34 -0
- package/dist/matchRoomProvider.js +32 -0
- package/dist/matchRooms.js +19 -0
- package/dist/membershipObserver.js +47 -0
- package/dist/moderation.js +98 -0
- package/dist/movementSpecials.js +104 -0
- package/dist/ownership.js +17 -0
- package/dist/ownershipWithdrawal.js +18 -0
- package/dist/pcg32.js +96 -0
- package/dist/ports.d.ts +1241 -0
- package/dist/ports.js +11 -0
- package/dist/quaternion.js +70 -0
- package/dist/react.d.ts +406 -0
- package/dist/react.js +109 -0
- package/dist/reaper-app/rooms.reaper.workflow.server.tsx +5 -0
- package/dist/reaper-app/rooms.reaper.workflow.tsx +13 -0
- package/dist/reaper.js +243 -0
- package/dist/reaperSchemas.js +42 -0
- package/dist/reaperWorkflow.js +70 -0
- package/dist/recovery.js +189 -0
- package/dist/recoverySeats.js +26 -0
- package/dist/replay.d.ts +273 -0
- package/dist/replay.js +485 -0
- package/dist/replayPorts.js +5 -0
- package/dist/replayRecording.js +67 -0
- package/dist/replaySchema.js +157 -0
- package/dist/replayStorage.d.ts +149 -0
- package/dist/replayStorage.js +485 -0
- package/dist/reservationBatch.js +422 -0
- package/dist/reservationSchemas.js +17 -0
- package/dist/reservations.js +259 -0
- package/dist/reservePort.js +69 -0
- package/dist/resolvedOptions.js +4 -0
- package/dist/room.d.ts +1006 -0
- package/dist/room.js +284 -0
- package/dist/roomAccessSweep.js +95 -0
- package/dist/roomAppCommandControl.js +59 -0
- package/dist/roomAuthoringStrategy.js +17 -0
- package/dist/roomErasure.js +198 -0
- package/dist/roomPoolRuntimeDefaults.js +24 -0
- package/dist/roomPoolSelection.js +19 -0
- package/dist/roomPoolTopology.js +212 -0
- package/dist/rpc.d.ts +551 -0
- package/dist/rpc.js +112 -0
- package/dist/rpcClient.js +152 -0
- package/dist/rpcRoutes.js +28 -0
- package/dist/runtime.js +1123 -0
- package/dist/schemaHistory.js +98 -0
- package/dist/seatStore.js +151 -0
- package/dist/seatStrategyFixtures.js +52 -0
- package/dist/seatSubject.js +32 -0
- package/dist/seats.js +130 -0
- package/dist/serverSession.js +811 -0
- package/dist/serverSessionConfig.js +43 -0
- package/dist/sessionAdmission.js +53 -0
- package/dist/sidecarAdmission.js +103 -0
- package/dist/sidecarConfig.js +116 -0
- package/dist/sidecarConfigPublication.js +64 -0
- package/dist/sidecarHostListener.js +208 -0
- package/dist/sidecarIpc.js +205 -0
- package/dist/sidecarPeer.js +310 -0
- package/dist/sidecarProcessPort.js +28 -0
- package/dist/sidecarRuntime.js +168 -0
- package/dist/sidecarSelection.js +142 -0
- package/dist/sidecarWire.js +178 -0
- package/dist/sidecarWrites.js +163 -0
- package/dist/simulation.d.ts +391 -0
- package/dist/simulation.js +282 -0
- package/dist/simulationAuthoring.js +29 -0
- package/dist/simulationBytes.js +27 -0
- package/dist/simulationConformance.js +305 -0
- package/dist/simulationInputHistoryCapture.js +35 -0
- package/dist/simulationInputHistoryWire.js +193 -0
- package/dist/simulationOptionsWire.js +78 -0
- package/dist/simulationRecoveryWire.js +134 -0
- package/dist/simulationReplay.js +127 -0
- package/dist/simulationSnapshotWire.js +112 -0
- package/dist/simulationState.js +178 -0
- package/dist/snapshotBlob.js +126 -0
- package/dist/snapshotBlobCleanup.js +93 -0
- package/dist/snapshotBlobIndex.js +38 -0
- package/dist/snapshotBudget.js +80 -0
- package/dist/snapshotChain.js +185 -0
- package/dist/snapshotErasure.js +172 -0
- package/dist/snapshotInspection.js +105 -0
- package/dist/snapshotSegmentBlobs.js +58 -0
- package/dist/snapshotUploads.js +166 -0
- package/dist/socketTransport.js +253 -0
- package/dist/spatial.js +104 -0
- package/dist/spectatorPolicy.js +26 -0
- package/dist/spectatorProducer.js +89 -0
- package/dist/startFailureCause.js +4 -0
- package/dist/stateCodec.js +658 -0
- package/dist/strategies.d.ts +210 -0
- package/dist/strategies.js +8 -0
- package/dist/strategiesServer.d.ts +286 -0
- package/dist/strategiesServer.js +11 -0
- package/dist/strategyFixtures.js +182 -0
- package/dist/streamFraming.js +122 -0
- package/dist/streamTransport.js +266 -0
- package/dist/subjectAdmission.js +50 -0
- package/dist/subjectPrivacy.js +281 -0
- package/dist/subjectPrivacyBinding.js +90 -0
- package/dist/systemManifest.js +182 -0
- package/dist/tables.js +159 -0
- package/dist/testHarness.js +89 -0
- package/dist/testing.d.ts +3684 -0
- package/dist/testing.js +221 -0
- package/dist/testingPorts.js +271 -0
- package/dist/testingServer.d.ts +4060 -0
- package/dist/testingServer.js +18 -0
- package/dist/transform.d.ts +692 -0
- package/dist/transform.js +217 -0
- package/dist/transform3d.js +118 -0
- package/dist/transformCollection.js +24 -0
- package/dist/transformCollection3d.js +24 -0
- package/dist/transformCollectionCore.js +156 -0
- package/dist/transformFrames.js +121 -0
- package/dist/transformPrediction3d.js +127 -0
- package/dist/transformRules.js +123 -0
- package/dist/transformSchemas.js +20 -0
- package/dist/transport.js +32 -0
- package/dist/transportAuthoring.js +29 -0
- package/dist/transportCleanup.js +22 -0
- package/dist/transportConformance.js +124 -0
- package/dist/transportConnector.js +82 -0
- package/dist/transportEndpoints.js +38 -0
- package/dist/transportsServer.d.ts +5515 -0
- package/dist/transportsServer.js +6 -0
- package/dist/viewProjection.js +16 -0
- package/dist/web.d.ts +2286 -0
- package/dist/web.js +518 -0
- package/dist/webTransportClient.js +173 -0
- package/dist/wire.d.ts +992 -0
- package/dist/wire.js +492 -0
- package/dist/withdrawalPort.js +28 -0
- package/dist/world.d.ts +1894 -0
- package/dist/world.js +333 -0
- package/dist/worldActorReceipts.js +48 -0
- package/dist/worldActorTransferSnapshot.js +14 -0
- package/dist/worldAdmissionPending.js +8 -0
- package/dist/worldBoundaryCoordinator.js +148 -0
- package/dist/worldCatalog.js +81 -0
- package/dist/worldCellAllocation.js +203 -0
- package/dist/worldCellDestination.js +68 -0
- package/dist/worldCells.js +489 -0
- package/dist/worldChange.js +32 -0
- package/dist/worldClient.js +664 -0
- package/dist/worldClientControl.js +141 -0
- package/dist/worldClientPendingInput.js +16 -0
- package/dist/worldClientRpc.js +133 -0
- package/dist/worldClientRpcRoutes.js +43 -0
- package/dist/worldClientSchemas.js +28 -0
- package/dist/worldCommands.js +140 -0
- package/dist/worldData.js +42 -0
- package/dist/worldDefaultBinding.js +377 -0
- package/dist/worldDefaultGroupAdmission.js +82 -0
- package/dist/worldDefaultGroupAppServices.js +31 -0
- package/dist/worldDefaultGroupCompensation.js +109 -0
- package/dist/worldDefaultGroupContinuation.js +96 -0
- package/dist/worldDefaultGroupControl.js +72 -0
- package/dist/worldDefaultGroupMembers.js +85 -0
- package/dist/worldDefaultGroups.js +21 -0
- package/dist/worldDefaultPending.js +79 -0
- package/dist/worldDefaultService.js +245 -0
- package/dist/worldEntities.js +2980 -0
- package/dist/worldEntityCodec.js +21 -0
- package/dist/worldEntityHandoffView.js +154 -0
- package/dist/worldGeometry.js +170 -0
- package/dist/worldGhostAdmission.js +65 -0
- package/dist/worldGhostDestination.js +118 -0
- package/dist/worldGhostGateway.js +132 -0
- package/dist/worldGhostHandshake.js +108 -0
- package/dist/worldGhostHost.js +42 -0
- package/dist/worldGhostIngress.js +132 -0
- package/dist/worldGhostNeighborhood.js +70 -0
- package/dist/worldGhostNeighbors.js +86 -0
- package/dist/worldGhostOutbound.js +110 -0
- package/dist/worldGhostPublisher.js +216 -0
- package/dist/worldGhostReceiver.js +213 -0
- package/dist/worldGhostSender.js +146 -0
- package/dist/worldGhostSocket.js +78 -0
- package/dist/worldGhostWire.js +172 -0
- package/dist/worldGroupCommand.js +49 -0
- package/dist/worldGroupDeadline.js +115 -0
- package/dist/worldGroupPreparation.js +115 -0
- package/dist/worldGroupReadyControl.js +128 -0
- package/dist/worldGroupSupervisor.js +120 -0
- package/dist/worldHandoffMetrics.js +59 -0
- package/dist/worldHandoffView.js +100 -0
- package/dist/worldHostSource.js +69 -0
- package/dist/worldInspectEndpoint.js +250 -0
- package/dist/worldInspection.js +109 -0
- package/dist/worldInstanceAdmission.js +31 -0
- package/dist/worldInstanceAllocation.js +116 -0
- package/dist/worldInstanceDestination.js +64 -0
- package/dist/worldInstanceExpiry.js +282 -0
- package/dist/worldInstanceExpirySupervisor.js +88 -0
- package/dist/worldInstanceLifecycle.js +103 -0
- package/dist/worldInstanceState.js +52 -0
- package/dist/worldInstances.js +478 -0
- package/dist/worldJoin.js +56 -0
- package/dist/worldLayers.js +151 -0
- package/dist/worldLeases.js +78 -0
- package/dist/worldManifest.js +25 -0
- package/dist/worldMovement.js +63 -0
- package/dist/worldPersistence.js +134 -0
- package/dist/worldProjection.js +221 -0
- package/dist/worldReact.js +110 -0
- package/dist/worldRecoveryActor.js +35 -0
- package/dist/worldReturnAnchor.js +49 -0
- package/dist/worldRoomHooks.js +57 -0
- package/dist/worldRoomPool.js +27 -0
- package/dist/worldRoomSteps.js +133 -0
- package/dist/worldSeatBinding.js +36 -0
- package/dist/worldServer.d.ts +6936 -0
- package/dist/worldServer.js +48 -0
- package/dist/worldSourceSeatPending.js +9 -0
- package/dist/worldStrategyFixtures.js +164 -0
- package/dist/worldTesting.js +27 -0
- package/dist/worldTransitionDefaults.js +198 -0
- package/dist/worldTransitionExecutor.js +519 -0
- package/dist/worldTransitionGroup.js +113 -0
- package/dist/worldTransitionPhysicalSteps.js +40 -0
- package/dist/worldTransitionResolver.js +228 -0
- package/dist/worldTransitionSeatGroup.js +64 -0
- package/dist/worldTransitionSeats.js +260 -0
- package/dist/worldTransitionState.js +95 -0
- package/dist/worldTransitions.js +101 -0
- package/package.json +189 -4
package/dist/replay.d.ts
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { Result } from 'effect';
|
|
2
|
+
import { Schema } from 'effect';
|
|
3
|
+
import { YieldableError } from 'effect/Cause';
|
|
4
|
+
|
|
5
|
+
/** Captures the exact recorder/player budgets without starting a recording. */
|
|
6
|
+
export declare const captureRoomReplayLimits: (input?: Partial<RoomReplayLimits>) => RoomReplayLimits;
|
|
7
|
+
|
|
8
|
+
/** Archived data has unknown application types. Ordinary ReplayPlayer admission
|
|
9
|
+
* still checks the complete chain; the header alone never admits an archive. */
|
|
10
|
+
export declare const openArchivedReplay: (input: Uint8Array, config?: Partial<RoomReplayLimits>, options?: ReplaySchemaOptions) => Result.Result<ReplayPlayer<Schema.Codec<unknown>>, ProtocolError>;
|
|
11
|
+
|
|
12
|
+
export declare const openReplay: <S extends Schema.Codec<unknown, unknown>>(codec: RoomStateCodec<S>, bytes: Uint8Array, limits?: Partial<RoomReplayLimits>) => Result.Result<ReplayPlayer<S>, ProtocolError>;
|
|
13
|
+
|
|
14
|
+
declare class ProtocolError extends ProtocolError_base {
|
|
15
|
+
get message(): string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare const ProtocolError_base: Schema.Class<ProtocolError, Schema.TaggedStruct<"ProtocolError", {
|
|
19
|
+
readonly detail: Schema.String;
|
|
20
|
+
}>, YieldableError>;
|
|
21
|
+
|
|
22
|
+
/** Explicit render-clock turns only. No timer, RAF, network or simulation. */
|
|
23
|
+
export declare class ReplayPlayback<S extends Schema.Codec<unknown, unknown>> {
|
|
24
|
+
private positionMs;
|
|
25
|
+
private playing;
|
|
26
|
+
private rate;
|
|
27
|
+
private lastNow;
|
|
28
|
+
private readonly duration;
|
|
29
|
+
private readonly read;
|
|
30
|
+
constructor(player: ReplayPlayer<S>);
|
|
31
|
+
private clock;
|
|
32
|
+
private turn;
|
|
33
|
+
advance(nowMs: number): Result.Result<RoomReplaySnapshot<(S)["Type"]>, ProtocolError>;
|
|
34
|
+
play(nowMs: number): Result.Result<void, ProtocolError>;
|
|
35
|
+
pause(nowMs: number): Result.Result<void, ProtocolError>;
|
|
36
|
+
seek(atMs: number, nowMs: number): Result.Result<RoomReplaySnapshot<(S)["Type"]>, ProtocolError>;
|
|
37
|
+
setSpeed(speed: number, nowMs: number): Result.Result<void, ProtocolError>;
|
|
38
|
+
status(): RoomReplayPlaybackStatus;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Validates the entire chain once; seeking decodes from the preceding Full.
|
|
42
|
+
* A matching compiled codec is required, including for an archived schema. */
|
|
43
|
+
export declare class ReplayPlayer<S extends Schema.Codec<unknown, unknown>> {
|
|
44
|
+
private readonly codec;
|
|
45
|
+
private readonly records;
|
|
46
|
+
private readonly checkpoints;
|
|
47
|
+
private readonly checkpointEveryMs;
|
|
48
|
+
readonly metadata: RoomReplayMetadata;
|
|
49
|
+
readonly highlights: ReadonlyArray<RoomReplayHighlight>;
|
|
50
|
+
constructor(codec: RoomStateCodec<S>, input: Uint8Array, config?: Partial<RoomReplayLimits>);
|
|
51
|
+
seek(atMs: number): Result.Result<RoomReplaySnapshot<(S)["Type"]>, ProtocolError>;
|
|
52
|
+
/** Cuts the validated ordinary state stream at a preceding Full checkpoint.
|
|
53
|
+
* It preserves original ticks/epochs/patches, rebases only archive times and
|
|
54
|
+
* reports actual boundaries; no interpolated state or video is fabricated. */
|
|
55
|
+
clip(fromMs: number, toMs: number, config?: Partial<RoomReplayLimits>): Result.Result<RoomReplayClip, ProtocolError>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Caller supplies an authorized, already selected view outside the tick.
|
|
59
|
+
* The recorder owns memory only; it has no storage, transport or authority. */
|
|
60
|
+
export declare class ReplayRecorder<S extends Schema.Codec<unknown, unknown>> {
|
|
61
|
+
private readonly codec;
|
|
62
|
+
readonly limits: RoomReplayLimits;
|
|
63
|
+
private readonly description;
|
|
64
|
+
private readonly records;
|
|
65
|
+
private readonly markers;
|
|
66
|
+
private previous;
|
|
67
|
+
private checkpointAt;
|
|
68
|
+
private byteCount;
|
|
69
|
+
private sealed;
|
|
70
|
+
constructor(codec: RoomStateCodec<S>, limits?: Partial<RoomReplayLimits>);
|
|
71
|
+
append(snapshot: RoomReplaySnapshot<(S)["Type"]>): Result.Result<void, ProtocolError>;
|
|
72
|
+
/** Reuse one authorized group's already encoded wire frame. This is only
|
|
73
|
+
* codec/history admission; it does not authorize the supplied view. */
|
|
74
|
+
appendFrame(atMs: number, input: Uint8Array): Result.Result<void, ProtocolError>;
|
|
75
|
+
private commitFrame;
|
|
76
|
+
highlight(highlight: RoomReplayHighlight): Result.Result<void, ProtocolError>;
|
|
77
|
+
finish(): Result.Result<Uint8Array, ProtocolError>;
|
|
78
|
+
/** Erases this owner's retained memory; previously returned bytes remain caller-owned. */
|
|
79
|
+
clear(): void;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export declare interface ReplaySchemaOptions {
|
|
83
|
+
readonly maxDescriptionBytes?: number | undefined;
|
|
84
|
+
readonly maxSchemaNodes?: number | undefined;
|
|
85
|
+
readonly maxSchemaDepth?: number | undefined;
|
|
86
|
+
readonly codecLimits?: Partial<RoomCodecLimits> | undefined;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** Restores only descriptive binary shapes, never original author functions,
|
|
90
|
+
* refinements, simulation or authority. Recompilation must match every byte of
|
|
91
|
+
* the archived description; no alternate decoder or guessed layout is used. */
|
|
92
|
+
export declare const restoreReplayCodec: (description: string, options?: ReplaySchemaOptions) => Result.Result<RoomStateCodec<Schema.Codec<unknown>>, ProtocolError>;
|
|
93
|
+
|
|
94
|
+
declare interface RoomCodecLimits {
|
|
95
|
+
readonly maxBytes: number;
|
|
96
|
+
readonly maxCollectionLength: number;
|
|
97
|
+
readonly maxFieldId: number;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare interface RoomReplayClip {
|
|
101
|
+
readonly bytes: Uint8Array;
|
|
102
|
+
/** Actual source boundaries, including preceding Full checkpoint pre-roll. */
|
|
103
|
+
readonly fromMs: number;
|
|
104
|
+
readonly toMs: number;
|
|
105
|
+
readonly requestedFromMs: number;
|
|
106
|
+
readonly requestedToMs: number;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export declare interface RoomReplayHighlight {
|
|
110
|
+
readonly atMs: number;
|
|
111
|
+
readonly kind: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare interface RoomReplayLimits {
|
|
115
|
+
readonly maxBytes: number;
|
|
116
|
+
readonly maxFrameBytes: number;
|
|
117
|
+
readonly maxFrames: number;
|
|
118
|
+
readonly maxHighlights: number;
|
|
119
|
+
readonly maxSchemaBytes: number;
|
|
120
|
+
readonly maxDurationMs: number;
|
|
121
|
+
readonly checkpointEveryMs: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare interface RoomReplayMetadata {
|
|
125
|
+
readonly formatVersion: 1;
|
|
126
|
+
readonly schemaHash: number;
|
|
127
|
+
readonly schemaDescription: string;
|
|
128
|
+
readonly durationMs: number;
|
|
129
|
+
readonly frames: number;
|
|
130
|
+
readonly checkpoints: number;
|
|
131
|
+
readonly bytes: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare interface RoomReplayPlaybackStatus {
|
|
135
|
+
readonly positionMs: number;
|
|
136
|
+
readonly playing: boolean;
|
|
137
|
+
readonly speed: number;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare interface RoomReplaySnapshot<A> {
|
|
141
|
+
readonly atMs: number;
|
|
142
|
+
readonly tick: number;
|
|
143
|
+
readonly epoch: number;
|
|
144
|
+
readonly state: A;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare interface RoomSpectatorPolicy {
|
|
148
|
+
readonly delayMs: number;
|
|
149
|
+
readonly retentionMs: number;
|
|
150
|
+
readonly maxFrames: number;
|
|
151
|
+
readonly maxBytes: number;
|
|
152
|
+
readonly maxFrameBytes: number;
|
|
153
|
+
readonly checkpointEveryMs: number;
|
|
154
|
+
readonly maxDeliveryFrames: number;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** Input and channel schemas are not state schemas: sorted field names derive
|
|
158
|
+
* their binary order, while server state always requires explicit field IDs. */
|
|
159
|
+
declare class RoomStateCodec<S extends Schema.Codec<unknown, unknown>> {
|
|
160
|
+
readonly schema: S;
|
|
161
|
+
private readonly codec;
|
|
162
|
+
constructor(schema: S, config?: Partial<RoomCodecLimits>);
|
|
163
|
+
get schemaHash(): number;
|
|
164
|
+
get limits(): RoomCodecLimits;
|
|
165
|
+
/** Canonical binary layout, including quantization and static movement rules.
|
|
166
|
+
* This is descriptive data; it grants neither authority nor a schema loader. */
|
|
167
|
+
schemaDescription(): string;
|
|
168
|
+
fieldManifest(): ReadonlyArray<RoomStateField>;
|
|
169
|
+
transformRulesManifest(): ReadonlyArray<RoomStateTransformRules>;
|
|
170
|
+
full(state: (S)["Type"]): Result.Result<Uint8Array, ProtocolError>;
|
|
171
|
+
decodeFull(bytes: Uint8Array): Result.Result<(S)["Type"], ProtocolError>;
|
|
172
|
+
delta(state: (S)["Type"], baseline: (S)["Type"], includeUnchanged?: boolean): Result.Result<Uint8Array | null, ProtocolError>;
|
|
173
|
+
decodeDelta(bytes: Uint8Array, baseline: (S)["Type"]): Result.Result<(S)["Type"], ProtocolError>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare interface RoomStateField {
|
|
177
|
+
/** Parent scope is formed from field IDs, not mutable author field names. */
|
|
178
|
+
readonly scope: string;
|
|
179
|
+
readonly id: number;
|
|
180
|
+
readonly name: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare interface RoomStateTransformRules {
|
|
184
|
+
readonly scope: string;
|
|
185
|
+
readonly rules: TransformRules;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** One already-authorized view group's contiguous Full/Delta history. Feed and
|
|
189
|
+
* delivery happen outside ticks. This does not install a spectator or timer. */
|
|
190
|
+
export declare class SpectatorDelayBuffer<S extends Schema.Codec<unknown, unknown>> {
|
|
191
|
+
private readonly codec;
|
|
192
|
+
readonly limits: SpectatorDelayLimits;
|
|
193
|
+
private records;
|
|
194
|
+
private previous;
|
|
195
|
+
private checkpointAt;
|
|
196
|
+
private sequence;
|
|
197
|
+
private observedNow;
|
|
198
|
+
private cached;
|
|
199
|
+
constructor(codec: RoomStateCodec<S>, limits?: Partial<SpectatorDelayLimits>);
|
|
200
|
+
/** Exact selected-view layout; it grants no group/seat authority. */
|
|
201
|
+
schemaDescription(): string;
|
|
202
|
+
append(atMs: number, input: Uint8Array): Result.Result<void, ProtocolError>;
|
|
203
|
+
delivery(nowMs: number, after?: SpectatorDelayCursor): Result.Result<SpectatorDelayDelivery, ProtocolError>;
|
|
204
|
+
/** No previously returned frame or external peer is erased by this call. */
|
|
205
|
+
clear(): void;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** Opaque history position only; never a seat, credential or authorization. */
|
|
209
|
+
export declare interface SpectatorDelayCursor {
|
|
210
|
+
readonly sequence: number;
|
|
211
|
+
readonly tick: number;
|
|
212
|
+
readonly epoch: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export declare type SpectatorDelayDelivery = {
|
|
216
|
+
readonly kind: 'unavailable';
|
|
217
|
+
} | {
|
|
218
|
+
readonly kind: 'unchanged';
|
|
219
|
+
readonly cursor: SpectatorDelayCursor;
|
|
220
|
+
readonly atMs: number;
|
|
221
|
+
} | {
|
|
222
|
+
readonly kind: 'full';
|
|
223
|
+
readonly cursor: SpectatorDelayCursor;
|
|
224
|
+
readonly atMs: number;
|
|
225
|
+
readonly bytes: Uint8Array;
|
|
226
|
+
} | {
|
|
227
|
+
readonly kind: 'deltas';
|
|
228
|
+
readonly cursor: SpectatorDelayCursor;
|
|
229
|
+
readonly atMs: number;
|
|
230
|
+
readonly frames: ReadonlyArray<{
|
|
231
|
+
readonly atMs: number;
|
|
232
|
+
readonly bytes: Uint8Array;
|
|
233
|
+
}>;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export declare type SpectatorDelayLimits = RoomSpectatorPolicy;
|
|
237
|
+
|
|
238
|
+
declare type TransformRules = TransformRules2D | TransformRules3D;
|
|
239
|
+
|
|
240
|
+
declare interface TransformRules2D {
|
|
241
|
+
readonly bounds: {
|
|
242
|
+
readonly min: readonly [number, number];
|
|
243
|
+
readonly max: readonly [number, number];
|
|
244
|
+
};
|
|
245
|
+
readonly maxSpeed: number;
|
|
246
|
+
readonly maxAccel: number;
|
|
247
|
+
readonly precision: number;
|
|
248
|
+
readonly rotation?: {
|
|
249
|
+
readonly bits: number;
|
|
250
|
+
} | undefined;
|
|
251
|
+
readonly velocity?: 'send' | 'derive' | 'none' | undefined;
|
|
252
|
+
readonly interpolation: 'linear' | 'hermite' | 'none';
|
|
253
|
+
readonly extrapolateMs: number;
|
|
254
|
+
readonly teleportThreshold: number;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare interface TransformRules3D {
|
|
258
|
+
readonly bounds: {
|
|
259
|
+
readonly min: readonly [number, number, number];
|
|
260
|
+
readonly max: readonly [number, number, number];
|
|
261
|
+
};
|
|
262
|
+
readonly maxSpeed: number;
|
|
263
|
+
readonly maxAccel: number;
|
|
264
|
+
readonly precision: number;
|
|
265
|
+
readonly rotation?: {
|
|
266
|
+
readonly bits: number;
|
|
267
|
+
} | undefined;
|
|
268
|
+
readonly interpolation: 'linear' | 'hermite' | 'none';
|
|
269
|
+
readonly extrapolateMs: number;
|
|
270
|
+
readonly teleportThreshold: number;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export { }
|