@voltro/plugin-rooms 0.87.0 → 0.89.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 +272 -6
- package/THIRD-PARTY-NOTICES.md +1542 -368
- package/dist/actor.js +1 -2
- package/dist/apiBinding.js +1 -2
- package/dist/apiRegistryBinding.js +1 -2
- package/dist/apiReservations.js +3 -4
- package/dist/baselines.js +1 -2
- package/dist/bots.js +2 -3
- package/dist/catalog.js +1 -2
- package/dist/checkpointJson.js +1 -2
- package/dist/checkpointStore.js +13 -14
- package/dist/client.js +1 -2
- package/dist/clockSync.js +1 -2
- package/dist/collision.js +3 -4
- package/dist/commandDelivery.js +1 -2
- package/dist/commandRecord.js +1 -2
- package/dist/commandWithdrawal.js +1 -2
- package/dist/connection.js +1 -2
- package/dist/controlCarrier.js +1 -2
- package/dist/controlRegistry.js +1 -2
- package/dist/controlTarget.js +1 -2
- package/dist/controlTransport.js +1 -2
- package/dist/developmentBinding.js +1 -2
- package/dist/directory.js +3 -4
- package/dist/directoryProjection.js +1 -2
- package/dist/errors.js +1 -2
- package/dist/fixed32.js +1 -2
- package/dist/fixedCollision.js +1 -2
- package/dist/fixedCollision32.js +1 -2
- package/dist/fixedMath.js +1 -2
- package/dist/fixedRaw.js +1 -2
- package/dist/fixedSlabs.js +1 -2
- package/dist/fixedTrig.js +1 -2
- package/dist/fixedTrig32.js +1 -2
- package/dist/fixedVectors.js +1 -2
- package/dist/fixedVectors32.js +1 -2
- package/dist/fixedWide.js +1 -2
- package/dist/fixedWords.js +1 -2
- package/dist/gateway.js +1 -2
- package/dist/geometryActivation.js +1 -2
- package/dist/geometryActorInventory.js +1 -2
- package/dist/geometryAdminClient.js +1 -2
- package/dist/geometryAdminData.js +1 -2
- package/dist/geometryAdminFixtures.js +1 -2
- package/dist/geometryAdminPorts.js +1 -2
- package/dist/geometryAdminRpc.js +1 -2
- package/dist/geometryAdminRpcRoutes.js +1 -2
- package/dist/geometryAdminSchemas.js +1 -2
- package/dist/geometryAdministration.js +1 -2
- package/dist/geometryAdministrationPorts.js +1 -2
- package/dist/geometryApiBinding.js +1 -2
- package/dist/geometryAppStorage.js +1 -2
- package/dist/geometryArtifacts.js +1 -2
- package/dist/geometryAssetBundle.js +1 -2
- package/dist/geometryAssetClient.js +1 -2
- package/dist/geometryAssetData.js +1 -2
- package/dist/geometryAssetHttp.js +1 -2
- package/dist/geometryAssetPorts.js +1 -2
- package/dist/geometryAssetRpc.js +1 -2
- package/dist/geometryAssetRpcRoutes.js +1 -2
- package/dist/geometryAssetStorageGrant.js +1 -2
- package/dist/geometryBoxOverlap.js +1 -2
- package/dist/geometryCatalogueDigest.js +1 -2
- package/dist/geometryCellCoverage.js +1 -2
- package/dist/geometryCellLoader.js +1 -2
- package/dist/geometryChannel.js +1 -2
- package/dist/geometryChunkHttp.js +1 -2
- package/dist/geometryChunkLeases.js +1 -2
- package/dist/geometryClient.js +1 -2
- package/dist/geometryClientChunks.js +1 -2
- package/dist/geometryClientDelta.js +1 -2
- package/dist/geometryClientHttp.js +1 -2
- package/dist/geometryClientInterest.js +1 -2
- package/dist/geometryClientStatic.js +1 -2
- package/dist/geometryCms.js +1 -2
- package/dist/geometryCommitCoordinator.js +1 -2
- package/dist/geometryCompactionFixture.js +1 -2
- package/dist/geometryCompactionStrategies.js +1 -2
- package/dist/geometryConnectionClient.js +1 -2
- package/dist/geometryDerivationFixtures.js +1 -2
- package/dist/geometryDerivationStrategies.js +1 -2
- package/dist/geometryDigest.js +1 -2
- package/dist/geometryEditChannel.js +1 -2
- package/dist/geometryEditIngress.js +1 -2
- package/dist/geometryEdits.js +1 -2
- package/dist/geometryEnvelope.js +1 -2
- package/dist/geometryGridRaycast.js +1 -2
- package/dist/geometryGridSweep.js +1 -2
- package/dist/geometryHeightfield.js +1 -2
- package/dist/geometryHeightfieldRaycast.js +1 -2
- package/dist/geometryHeightfieldSweep.js +1 -2
- package/dist/geometryHeightfieldVolume.js +1 -2
- package/dist/geometryHost.js +2 -3
- package/dist/geometryHostDirectory.js +1 -2
- package/dist/geometryHostMutations.js +1 -2
- package/dist/geometryHostStreams.js +1 -2
- package/dist/geometryHttpBody.js +1 -2
- package/dist/geometryHttpRoutes.js +1 -2
- package/dist/geometryImportGltf.js +1 -2
- package/dist/geometryImportLdtk.js +1 -2
- package/dist/geometryImportPng.js +1 -2
- package/dist/geometryImportPublication.js +1 -2
- package/dist/geometryImportTiled.js +1 -2
- package/dist/geometryImportTiles.js +1 -2
- package/dist/geometryImportVox.js +1 -2
- package/dist/geometryImportedSource.js +1 -2
- package/dist/geometryInspectEndpoint.js +1 -2
- package/dist/geometryInspection.js +1 -2
- package/dist/geometryInstall.js +1 -2
- package/dist/geometryJournalArchiveData.js +1 -2
- package/dist/geometryJournalArchiveIndex.js +2 -3
- package/dist/geometryJournalArchiveTable.js +1 -2
- package/dist/geometryJournalCompaction.js +1 -2
- package/dist/geometryJournalPatch.js +1 -2
- package/dist/geometryJournalRetention.js +1 -2
- package/dist/geometryJournalRetentionSchemas.js +1 -2
- package/dist/geometryJournalRetentionSweep.js +1 -2
- package/dist/geometryJournalRetentionWorkflow.js +1 -2
- package/dist/geometryJournalRetentionWorkflowData.js +1 -2
- package/dist/geometryJournalStorage.js +1 -2
- package/dist/geometryLoader.js +1 -2
- package/dist/geometryManifest.js +1 -2
- package/dist/geometryManifestChannel.js +1 -2
- package/dist/geometryManifestClient.js +1 -2
- package/dist/geometryManifestData.js +1 -2
- package/dist/geometryManifestPorts.js +1 -2
- package/dist/geometryManifestPublication.js +1 -2
- package/dist/geometryManifestSource.js +1 -2
- package/dist/geometryMigrationJournal.js +1 -2
- package/dist/geometryMigrationStrategies.js +1 -2
- package/dist/geometryMigrations.js +1 -2
- package/dist/geometryNativeMetadata.js +1 -2
- package/dist/geometryPatch.js +1 -2
- package/dist/geometryPersistence.js +1 -2
- package/dist/geometryPersistenceCapture.js +1 -2
- package/dist/geometryPersistenceData.js +1 -2
- package/dist/geometryPersistencePorts.js +1 -2
- package/dist/geometryPlayerAdmission.js +1 -2
- package/dist/geometryPlayerEditOwner.js +1 -2
- package/dist/geometryPlayerEdits.js +1 -2
- package/dist/geometryPrepared.js +1 -2
- package/dist/geometryPrivacyFence.js +1 -2
- package/dist/geometryProceduralPublication.js +1 -2
- package/dist/geometryProceduralWorker.js +1 -2
- package/dist/geometryPublication.js +1 -2
- package/dist/geometryRayAlgebra.js +1 -2
- package/dist/geometryReadClient.js +1 -2
- package/dist/geometryReadPorts.js +1 -2
- package/dist/geometryReadRpc.js +1 -2
- package/dist/geometryReadRpcRoutes.js +1 -2
- package/dist/geometryReliablePublication.js +1 -2
- package/dist/geometryReloadPorts.js +1 -2
- package/dist/geometryReloadSource.js +1 -2
- package/dist/geometryRenderCache.js +1 -2
- package/dist/geometryRenderLod.js +1 -2
- package/dist/geometryRollback.js +1 -2
- package/dist/geometryRollbackCoordinator.js +2 -3
- package/dist/geometryRollbackPorts.js +1 -2
- package/dist/geometryRollbackSource.js +1 -2
- package/dist/geometryRollbackStore.js +1 -2
- package/dist/geometrySchemas.js +1 -2
- package/dist/geometryShapeRaycast.js +1 -2
- package/dist/geometryShapeSegments.js +1 -2
- package/dist/geometryShapes.js +1 -2
- package/dist/geometrySnapshot.js +1 -2
- package/dist/geometrySnapshotChannel.js +1 -2
- package/dist/geometrySnapshotClient.js +1 -2
- package/dist/geometrySnapshotPreparation.js +1 -2
- package/dist/geometrySnapshotServer.js +1 -2
- package/dist/geometrySqlOwner.js +1 -2
- package/dist/geometryStorage.js +1 -2
- package/dist/geometryStorageGrant.js +1 -2
- package/dist/geometryStorageIdentity.js +1 -2
- package/dist/geometryTileArtifact.js +1 -2
- package/dist/geometryTileCodec.js +1 -2
- package/dist/geometryTileCollision.js +1 -2
- package/dist/geometryTileNavigation.js +1 -2
- package/dist/geometryTileView.js +1 -2
- package/dist/geometryVersionActivation.js +1 -2
- package/dist/geometryVersionClient.js +1 -2
- package/dist/geometryVersionCompare.js +1 -2
- package/dist/geometryVersionMigration.js +1 -2
- package/dist/geometryVoxel.js +1 -2
- package/dist/geometryWorldEntitySubject.js +1 -2
- package/dist/geometryWorldExtent.js +1 -2
- package/dist/geometryWorldMetadata.js +1 -2
- package/dist/geometryWorldStrategyFixtures.js +1 -2
- package/dist/geometryWorldView.js +1 -2
- package/dist/host.js +1 -2
- package/dist/hostBinding.js +1 -2
- package/dist/hostCellObservation.js +1 -2
- package/dist/hostClientCapacity.js +1 -2
- package/dist/hostCommandScope.js +1 -2
- package/dist/hostController.js +2 -3
- package/dist/hostDeployment.js +1 -2
- package/dist/hostDrain.js +1 -2
- package/dist/hostDrainPorts.js +1 -2
- package/dist/hostDriver.js +1 -2
- package/dist/hostLane.js +1 -2
- package/dist/hostListener.js +1 -2
- package/dist/hostListenerBinding.js +1 -2
- package/dist/hostLoopObservation.js +1 -2
- package/dist/hostMetrics.js +1 -2
- package/dist/hostRegistryBinding.js +1 -2
- package/dist/hostSelection.js +1 -2
- package/dist/hostShutdown.js +1 -2
- package/dist/hostTurnObservation.js +1 -2
- package/dist/identities.js +1 -2
- package/dist/index.js +1 -2
- package/dist/inputReceipts.js +1 -2
- package/dist/inputRedundancy.js +1 -2
- package/dist/inspect.js +1 -2
- package/dist/lockstep.js +1 -2
- package/dist/lockstepAdmission.js +1 -2
- package/dist/lockstepAdmissionCodec.js +1 -2
- package/dist/lockstepAdmissionPorts.js +1 -2
- package/dist/lockstepClientSession.js +1 -2
- package/dist/lockstepDefinition.js +1 -2
- package/dist/lockstepHostLoop.js +1 -2
- package/dist/lockstepInitialAdmission.js +1 -2
- package/dist/lockstepInitialStrategyFixtures.js +1 -2
- package/dist/lockstepJournal.js +1 -2
- package/dist/lockstepJournalCodec.js +1 -2
- package/dist/lockstepJournalPorts.js +1 -2
- package/dist/lockstepJournalRebuild.js +1 -2
- package/dist/lockstepJournalRows.js +1 -2
- package/dist/lockstepMembers.js +1 -2
- package/dist/lockstepMessages.js +1 -2
- package/dist/lockstepOwnedRoom.js +1 -2
- package/dist/lockstepPolicies.js +1 -2
- package/dist/lockstepReact.js +1 -2
- package/dist/lockstepRecoveryTruth.js +1 -2
- package/dist/lockstepRosterConfig.js +1 -2
- package/dist/lockstepSeed.js +1 -2
- package/dist/lockstepSeedFixture.js +1 -2
- package/dist/lockstepServer.js +1 -2
- package/dist/lockstepServerConfig.js +1 -2
- package/dist/lockstepServerRoles.js +1 -2
- package/dist/lockstepServerStrategyFixtures.js +1 -2
- package/dist/lockstepStrategies.js +1 -2
- package/dist/lockstepStrategyFixtures.js +1 -2
- package/dist/lockstepTerminal.js +1 -2
- package/dist/lockstepTerminalPorts.js +1 -2
- package/dist/lockstepTransport.js +1 -2
- package/dist/lockstepTransportConfig.js +1 -2
- package/dist/lockstepWireRoster.js +1 -2
- package/dist/matchRoomProvider.js +1 -2
- package/dist/matchRooms.js +1 -2
- package/dist/membershipObserver.js +1 -2
- package/dist/moderation.js +1 -2
- package/dist/movementSpecials.js +1 -2
- package/dist/ownership.js +1 -2
- package/dist/ownershipWithdrawal.js +1 -2
- package/dist/pcg32.js +1 -2
- package/dist/ports.js +1 -2
- package/dist/quaternion.js +2 -3
- package/dist/react.js +1 -2
- package/dist/reaper.js +1 -2
- package/dist/reaperSchemas.js +1 -2
- package/dist/reaperWorkflow.js +1 -2
- package/dist/recovery.js +1 -2
- package/dist/recoverySeats.js +1 -2
- package/dist/replay.js +8 -9
- package/dist/replayPorts.js +1 -2
- package/dist/replayRecording.js +2 -3
- package/dist/replaySchema.js +1 -2
- package/dist/replayStorage.js +1 -2
- package/dist/reservationBatch.js +1 -2
- package/dist/reservationSchemas.js +1 -2
- package/dist/reservations.js +1 -2
- package/dist/reservePort.js +1 -2
- package/dist/resolvedOptions.js +1 -2
- package/dist/room.js +1 -2
- package/dist/roomAccessSweep.js +1 -2
- package/dist/roomAppCommandControl.js +1 -2
- package/dist/roomAuthoringStrategy.js +1 -2
- package/dist/roomErasure.js +1 -2
- package/dist/roomPoolRuntimeDefaults.js +1 -2
- package/dist/roomPoolSelection.js +1 -2
- package/dist/roomPoolTopology.js +1 -2
- package/dist/rpc.js +1 -2
- package/dist/rpcClient.js +1 -2
- package/dist/rpcRoutes.js +1 -2
- package/dist/runtime.js +2 -3
- package/dist/schemaHistory.js +1 -2
- package/dist/seatStore.js +1 -2
- package/dist/seatStrategyFixtures.js +1 -2
- package/dist/seatSubject.js +1 -2
- package/dist/seats.js +1 -2
- package/dist/serverSession.js +1 -2
- package/dist/serverSessionConfig.js +1 -2
- package/dist/sessionAdmission.js +1 -2
- package/dist/sidecarAdmission.js +1 -2
- package/dist/sidecarConfig.js +2 -3
- package/dist/sidecarConfigPublication.js +1 -2
- package/dist/sidecarHostListener.js +1 -2
- package/dist/sidecarIpc.js +1 -2
- package/dist/sidecarPeer.js +1 -2
- package/dist/sidecarProcessPort.js +1 -2
- package/dist/sidecarRuntime.js +1 -2
- package/dist/sidecarSelection.js +1 -2
- package/dist/sidecarWire.js +4 -5
- package/dist/sidecarWrites.js +1 -2
- package/dist/simulation.js +1 -2
- package/dist/simulationAuthoring.js +1 -2
- package/dist/simulationBytes.js +1 -2
- package/dist/simulationConformance.js +1 -2
- package/dist/simulationInputHistoryCapture.js +1 -2
- package/dist/simulationInputHistoryWire.js +1 -2
- package/dist/simulationOptionsWire.js +1 -2
- package/dist/simulationRecoveryWire.js +1 -2
- package/dist/simulationReplay.js +1 -2
- package/dist/simulationSnapshotWire.js +1 -2
- package/dist/simulationState.js +1 -2
- package/dist/snapshotBlob.js +2 -3
- package/dist/snapshotBlobCleanup.js +1 -2
- package/dist/snapshotBlobIndex.js +1 -2
- package/dist/snapshotBudget.js +1 -2
- package/dist/snapshotChain.js +1 -2
- package/dist/snapshotErasure.js +1 -2
- package/dist/snapshotInspection.js +1 -2
- package/dist/snapshotSegmentBlobs.js +1 -2
- package/dist/snapshotUploads.js +1 -2
- package/dist/socketTransport.js +1 -2
- package/dist/spatial.js +2 -3
- package/dist/spectatorPolicy.js +3 -4
- package/dist/spectatorProducer.js +2 -3
- package/dist/startFailureCause.js +1 -2
- package/dist/stateCodec.js +2 -3
- package/dist/strategyFixtures.js +1 -2
- package/dist/streamFraming.js +1 -2
- package/dist/streamTransport.js +1 -2
- package/dist/subjectAdmission.js +1 -2
- package/dist/subjectPrivacy.js +1 -2
- package/dist/subjectPrivacyBinding.js +1 -2
- package/dist/systemManifest.js +1 -2
- package/dist/tables.js +1 -2
- package/dist/testHarness.js +1 -2
- package/dist/testing.js +1 -2
- package/dist/testingPorts.js +1 -2
- package/dist/transform.js +4 -5
- package/dist/transform3d.js +1 -2
- package/dist/transformCollection.js +1 -2
- package/dist/transformCollection3d.js +1 -2
- package/dist/transformCollectionCore.js +2 -3
- package/dist/transformFrames.js +1 -2
- package/dist/transformPrediction3d.js +2 -3
- package/dist/transformRules.js +1 -2
- package/dist/transformSchemas.js +1 -2
- package/dist/transport.js +1 -2
- package/dist/transportAuthoring.js +1 -2
- package/dist/transportCleanup.js +1 -2
- package/dist/transportConformance.js +1 -2
- package/dist/transportConnector.js +1 -2
- package/dist/transportEndpoints.js +1 -2
- package/dist/viewProjection.js +1 -2
- package/dist/web.js +1 -2
- package/dist/webTransportClient.js +1 -2
- package/dist/wire.js +4 -5
- package/dist/withdrawalPort.js +1 -2
- package/dist/world.js +8 -9
- package/dist/worldActorReceipts.js +1 -2
- package/dist/worldActorTransferSnapshot.js +1 -2
- package/dist/worldAdmissionPending.js +1 -2
- package/dist/worldBoundaryCoordinator.js +1 -2
- package/dist/worldCatalog.js +3 -4
- package/dist/worldCellAllocation.js +2 -3
- package/dist/worldCellDestination.js +1 -2
- package/dist/worldCells.js +5 -6
- package/dist/worldChange.js +4 -5
- package/dist/worldClient.js +1 -2
- package/dist/worldClientControl.js +6 -7
- package/dist/worldClientPendingInput.js +1 -2
- package/dist/worldClientRpc.js +1 -2
- package/dist/worldClientRpcRoutes.js +1 -2
- package/dist/worldClientSchemas.js +1 -2
- package/dist/worldCommands.js +5 -6
- package/dist/worldData.js +3 -4
- package/dist/worldDefaultBinding.js +1 -2
- package/dist/worldDefaultGroupAdmission.js +1 -2
- package/dist/worldDefaultGroupAppServices.js +1 -2
- package/dist/worldDefaultGroupCompensation.js +1 -2
- package/dist/worldDefaultGroupContinuation.js +1 -2
- package/dist/worldDefaultGroupControl.js +1 -2
- package/dist/worldDefaultGroupMembers.js +1 -2
- package/dist/worldDefaultGroups.js +1 -2
- package/dist/worldDefaultPending.js +1 -2
- package/dist/worldDefaultService.js +1 -2
- package/dist/worldEntities.js +49 -50
- package/dist/worldEntityCodec.js +1 -2
- package/dist/worldEntityHandoffView.js +1 -2
- package/dist/worldGeometry.js +1 -2
- package/dist/worldGhostAdmission.js +1 -2
- package/dist/worldGhostDestination.js +3 -4
- package/dist/worldGhostGateway.js +1 -2
- package/dist/worldGhostHandshake.js +1 -2
- package/dist/worldGhostHost.js +1 -2
- package/dist/worldGhostIngress.js +1 -2
- package/dist/worldGhostNeighborhood.js +1 -2
- package/dist/worldGhostNeighbors.js +1 -2
- package/dist/worldGhostOutbound.js +1 -2
- package/dist/worldGhostPublisher.js +1 -2
- package/dist/worldGhostReceiver.js +1 -2
- package/dist/worldGhostSender.js +1 -2
- package/dist/worldGhostSocket.js +1 -2
- package/dist/worldGhostWire.js +3 -4
- package/dist/worldGroupCommand.js +1 -2
- package/dist/worldGroupDeadline.js +1 -2
- package/dist/worldGroupPreparation.js +1 -2
- package/dist/worldGroupReadyControl.js +8 -9
- package/dist/worldGroupSupervisor.js +3 -4
- package/dist/worldHandoffMetrics.js +1 -2
- package/dist/worldHandoffView.js +1 -2
- package/dist/worldHostSource.js +5 -6
- package/dist/worldInspectEndpoint.js +1 -2
- package/dist/worldInspection.js +1 -2
- package/dist/worldInstanceAdmission.js +1 -2
- package/dist/worldInstanceAllocation.js +1 -2
- package/dist/worldInstanceDestination.js +1 -2
- package/dist/worldInstanceExpiry.js +1 -2
- package/dist/worldInstanceExpirySupervisor.js +1 -2
- package/dist/worldInstanceLifecycle.js +1 -2
- package/dist/worldInstanceState.js +1 -2
- package/dist/worldInstances.js +1 -2
- package/dist/worldJoin.js +1 -2
- package/dist/worldLayers.js +6 -7
- package/dist/worldLeases.js +5 -6
- package/dist/worldManifest.js +1 -2
- package/dist/worldMovement.js +1 -2
- package/dist/worldPersistence.js +4 -5
- package/dist/worldProjection.js +6 -7
- package/dist/worldReact.js +1 -2
- package/dist/worldRecoveryActor.js +1 -2
- package/dist/worldReturnAnchor.js +1 -2
- package/dist/worldRoomHooks.js +5 -6
- package/dist/worldRoomPool.js +2 -3
- package/dist/worldRoomSteps.js +1 -2
- package/dist/worldSeatBinding.js +1 -2
- package/dist/worldSourceSeatPending.js +1 -2
- package/dist/worldStrategyFixtures.js +1 -2
- package/dist/worldTesting.js +1 -2
- package/dist/worldTransitionDefaults.js +1 -2
- package/dist/worldTransitionExecutor.js +9 -10
- package/dist/worldTransitionGroup.js +1 -2
- package/dist/worldTransitionPhysicalSteps.js +1 -2
- package/dist/worldTransitionResolver.js +8 -9
- package/dist/worldTransitionSeatGroup.js +1 -2
- package/dist/worldTransitionSeats.js +2 -3
- package/dist/worldTransitionState.js +1 -2
- package/dist/worldTransitions.js +8 -9
- package/package.json +10 -10
package/dist/hostDrain.js
CHANGED
|
@@ -8,7 +8,7 @@ import { captureRoomLockstepRecoveryOptions as m, readRoomLockstepRecoveryTruth
|
|
|
8
8
|
import { fenceRoomRecoverySeats as g } from "./recoverySeats.js";
|
|
9
9
|
import { and as _, eq as v, or as y } from "@voltro/database";
|
|
10
10
|
import { Effect as b } from "effect";
|
|
11
|
-
|
|
11
|
+
// src/hostDrain.ts
|
|
12
12
|
function x() {
|
|
13
13
|
throw new t({ detail: "Planned Host drain lacks matching process, fenced ownership or durable progress" });
|
|
14
14
|
}
|
|
@@ -148,5 +148,4 @@ var S = (e) => typeof e == "string" && e.length > 0 && e.length <= 191 && e.trim
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
//#endregion
|
|
152
151
|
export { l as RoomHostDrainPort, T as captureRoomHostDrainPolicy, A as dataStoreRoomHostDrain };
|
package/dist/hostDrainPorts.js
CHANGED
package/dist/hostDriver.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { RoomHostTurnObservation as t } from "./hostTurnObservation.js";
|
|
3
3
|
import { performance as n } from "node:perf_hooks";
|
|
4
4
|
import { availableParallelism as r } from "node:os";
|
|
5
|
-
|
|
5
|
+
// src/hostDriver.ts
|
|
6
6
|
var i = Object.freeze({ schedule: (e, t) => {
|
|
7
7
|
let n = setTimeout(t, e);
|
|
8
8
|
return () => clearTimeout(n);
|
|
@@ -175,5 +175,4 @@ var i = Object.freeze({ schedule: (e, t) => {
|
|
|
175
175
|
return l = Math.min(1, u / (r * 1e3 * o)), s = t, c = n, l;
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
|
-
//#endregion
|
|
179
178
|
export { o as RoomHostDriver, a as captureRoomHostDriverOptions, i as platformRoomHostTimer, s as roomProcessCpuSampler };
|
package/dist/hostLane.js
CHANGED
|
@@ -9,7 +9,7 @@ import { RoomHostDriver as l, captureRoomHostDriverOptions as u } from "./hostDr
|
|
|
9
9
|
import { hostRoomReserveService as d } from "./reservePort.js";
|
|
10
10
|
import { frameworkStartCause as f } from "./startFailureCause.js";
|
|
11
11
|
import { Effect as p, Layer as m } from "effect";
|
|
12
|
-
|
|
12
|
+
// src/hostLane.ts
|
|
13
13
|
var h = class extends Error {
|
|
14
14
|
stage;
|
|
15
15
|
retryCleanup;
|
|
@@ -284,5 +284,4 @@ var h = class extends Error {
|
|
|
284
284
|
}), e;
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
//#endregion
|
|
288
287
|
export { _ as RoomHostLane, h as RoomHostLaneStartFailure, g as RoomHostListenerBindFailure };
|
package/dist/hostListener.js
CHANGED
|
@@ -5,7 +5,7 @@ import { roomHostMetricsRoute as r } from "./hostMetrics.js";
|
|
|
5
5
|
import { Layer as i } from "effect";
|
|
6
6
|
import { awaitServerListening as a, bindBootListener as o, startRpcServer as s } from "@voltro/runtime";
|
|
7
7
|
import { RpcGroup as c } from "effect/rpc";
|
|
8
|
-
|
|
8
|
+
// src/hostListener.ts
|
|
9
9
|
var l = (l) => {
|
|
10
10
|
let u = Object.freeze({ ...l }), d = u.startupTimeoutMs ?? 1e4;
|
|
11
11
|
if (u.listener !== void 0 && u.port !== void 0 || u.listener === void 0 && (u.port === void 0 || !Number.isSafeInteger(u.port) || u.port < 0 || u.port > 65535) || !Number.isSafeInteger(d) || d < 1 || d > 2147483647 || typeof u.readiness != "function") throw new e({ detail: "Invalid Room listener configuration" });
|
|
@@ -75,5 +75,4 @@ var l = (l) => {
|
|
|
75
75
|
metricsPreviousToken: u.metricsPreviousToken
|
|
76
76
|
}), h;
|
|
77
77
|
};
|
|
78
|
-
//#endregion
|
|
79
78
|
export { l as runtimeRoomHostListener };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { createHash as t } from "node:crypto";
|
|
3
|
-
|
|
3
|
+
// src/hostListenerBinding.ts
|
|
4
4
|
var n = /* @__PURE__ */ new WeakMap(), r = (e) => t("sha256").update(e).digest("hex"), i = (e, t) => {
|
|
5
5
|
n.set(e, Object.freeze({
|
|
6
6
|
port: t.port,
|
|
@@ -15,5 +15,4 @@ var n = /* @__PURE__ */ new WeakMap(), r = (e) => t("sha256").update(e).digest("
|
|
|
15
15
|
let a = n.get(t);
|
|
16
16
|
if (!a || a.port !== i.port || a.host !== i.host || i.metricsToken !== void 0 && a.metricsDigest !== r(i.metricsToken) || a.metricsPreviousDigest !== (i.metricsPreviousToken === void 0 ? void 0 : r(i.metricsPreviousToken))) throw new e({ detail: "Room host provider did not apply its deployment to an owned runtime listener" });
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { o as assertRoomHostListenerDeployment, a as inheritRoomHostListener, i as registerRoomHostListener };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/hostLoopObservation.ts
|
|
2
2
|
var e = () => {
|
|
3
3
|
let e = performance.eventLoopUtilization;
|
|
4
4
|
if (typeof e != "function") throw Error("Event-loop utilization is unavailable");
|
|
@@ -86,5 +86,4 @@ var e = () => {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
//#endregion
|
|
90
89
|
export { t as RoomHostLoopObservation };
|
package/dist/hostMetrics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { captureWorldHandoffMetrics as t, worldHandoffDurationBuckets as n } from "./worldHandoffMetrics.js";
|
|
3
3
|
import { bearerMatches as r } from "@voltro/protocol/session";
|
|
4
|
-
|
|
4
|
+
// src/hostMetrics.ts
|
|
5
5
|
var i = (e) => e.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"").replaceAll("\n", "\\n"), a = (t) => {
|
|
6
6
|
if (typeof t != "string" || t.length < 32 || t.length > 512 || /[^A-Za-z0-9_-]/.test(t)) throw new e({ detail: "Room host metrics require a project-owned base64url credential of 32–512 characters" });
|
|
7
7
|
}, o = (e, o, s) => (a(e), s !== void 0 && a(s), Object.freeze({
|
|
@@ -52,5 +52,4 @@ var i = (e) => e.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"").replaceAll("\
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}));
|
|
55
|
-
//#endregion
|
|
56
55
|
export { o as roomHostMetricsRoute };
|
|
@@ -26,7 +26,7 @@ import { applicationRoomExternalWorkWithdrawal as Se } from "./commandWithdrawal
|
|
|
26
26
|
import { Effect as g, Option as Ce } from "effect";
|
|
27
27
|
import { ConnectionRegistry as we } from "@voltro/kv/connection";
|
|
28
28
|
import { HotStore as Te, layerRoutedHotRedis as Ee } from "@voltro/kv/hot";
|
|
29
|
-
|
|
29
|
+
// src/hostRegistryBinding.ts
|
|
30
30
|
function _(t) {
|
|
31
31
|
throw new e({ detail: t });
|
|
32
32
|
}
|
|
@@ -414,5 +414,4 @@ var v = (e, t) => Number.isSafeInteger(e) && e > 0 && e <= t ? e : _("Invalid re
|
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
|
-
//#endregion
|
|
418
417
|
export { y as defaultRoomsHostAcquire, b as registryRoomsHostBinder };
|
package/dist/hostSelection.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/hostSelection.ts
|
|
3
3
|
var t = (e, t) => [...e].filter((e) => e.ready && e.region === t && e.rooms < e.capacity).sort((e, t) => e.rooms / e.capacity - t.rooms / t.capacity || e.cpu - t.cpu || (e.id < t.id ? -1 : +(e.id > t.id)))[0] ?? null, n = (n, r, i = t) => {
|
|
4
4
|
let a;
|
|
5
5
|
try {
|
|
@@ -12,5 +12,4 @@ var t = (e, t) => [...e].filter((e) => e.ready && e.region === t && e.rooms < e.
|
|
|
12
12
|
if (!o) throw new e({ detail: "Room host strategy selected an ineligible host" });
|
|
13
13
|
return o;
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { t as leastLoadedRoomHostInRegion, n as resolveRoomHostSelection };
|
package/dist/hostShutdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
3
3
|
import { captureRoomHostDrainPolicy as n } from "./hostDrain.js";
|
|
4
4
|
import { performance as r } from "node:perf_hooks";
|
|
5
|
-
|
|
5
|
+
// src/hostShutdown.ts
|
|
6
6
|
var i = (r) => {
|
|
7
7
|
let i = t(r, [
|
|
8
8
|
"graceMs",
|
|
@@ -43,5 +43,4 @@ var i = (r) => {
|
|
|
43
43
|
await new Promise((e) => setTimeout(e, Math.min(100, Math.max(1, t - r.now()))));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { a as RoomsHostDrainDeadline, i as captureRoomHostShutdownPolicy, o as superviseRoomHostDrain };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { performance as t } from "node:perf_hooks";
|
|
3
|
-
|
|
3
|
+
// src/hostTurnObservation.ts
|
|
4
4
|
var n = class {
|
|
5
5
|
budgetMs;
|
|
6
6
|
now;
|
|
@@ -49,5 +49,4 @@ var n = class {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { n as RoomHostTurnObservation };
|
package/dist/identities.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/identities.ts
|
|
2
2
|
var e = "_voltro_room_seats", t = "_voltro_rooms", n = "_voltro_room_hosts", r = "_voltro_room_snapshots", i = "_voltro_room_outbox", a = "_voltro_room_snapshot_segments", o = "_voltro_room_subject_privacy", s = "_voltro_world_transitions", c = "_voltro_room_creations", l = "_voltro_room_lockstep_ticks";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { t as ROOMS_TABLE, r as ROOM_CHECKPOINTS_TABLE, i as ROOM_COMMANDS_TABLE, c as ROOM_CREATIONS_TABLE, n as ROOM_HOSTS_TABLE, l as ROOM_LOCKSTEP_TICKS_TABLE, e as ROOM_SEATS_TABLE, a as ROOM_SNAPSHOT_SEGMENTS_TABLE, o as ROOM_SUBJECT_PRIVACY_TABLE, s as WORLD_TRANSITIONS_TABLE };
|
package/dist/index.js
CHANGED
|
@@ -82,7 +82,7 @@ import { pluginInstanceName as Nt } from "@voltro/protocol";
|
|
|
82
82
|
import { Effect as Q } from "effect";
|
|
83
83
|
import { defineLicensedGamePlugin as Pt } from "@voltro/plugin-licensing/gate";
|
|
84
84
|
import { fileURLToPath as $ } from "node:url";
|
|
85
|
-
|
|
85
|
+
// src/index.ts
|
|
86
86
|
var Ft = (s = {}) => {
|
|
87
87
|
let c = Object.getOwnPropertyDescriptor(s, "hostWebTransport");
|
|
88
88
|
if (c && !("value" in c) || !c && "hostWebTransport" in s) throw new t({ detail: "Native host selection requires own data" });
|
|
@@ -228,5 +228,4 @@ var Ft = (s = {}) => {
|
|
|
228
228
|
geometryAdminControls: T
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
-
//#endregion
|
|
232
231
|
export { z as GeometryManifestPort, R as GeometryStaticReadGrantPort, me as GeometryVersionMigrationPort, l as RoomAppCommandPort, I as RoomCatalog, u as RoomCheckpointPort, d as RoomDirectoryPort, f as RoomErasurePort, p as RoomExternalWorkWithdrawalPort, m as RoomHostAdoptionPort, h as RoomHostControlPort, c as RoomHostDrainPort, g as RoomHostKickPort, Ge as RoomHostLane, Ke as RoomHostLaneStartFailure, qe as RoomHostListenerBindFailure, _ as RoomHostWithdrawalPort, ve as RoomKickInputSchema, ye as RoomKickReasonSchema, v as RoomReaperPort, y as RoomRecoveryPort, Pe as RoomReplayRecording, b as RoomReservePort, x as RoomSnapshotBlobPort, Fe as RoomSpectatorProducer, S as RoomSubjectPrivacyPort, xe as RoomsApiBindFailure, B as RoomsApiOwner, $e as RoomsHostBindFailure, Qe as RoomsHostDrainDeadline, et as RoomsHostOwner, tt as RoomsHostStartFailure, nt as RoomsHostStopFailure, C as WorldClientControlPort, Le as applicationRoomCommands, _t as applicationRoomExternalWorkWithdrawal, wt as bindRoomDirectoryProjection, ge as captureGeometryStreamManifest, E as captureRoomSnapshotEffectRunner, D as cleanupRoomCheckpointBlobs, O as cleanupRoomSnapshotUploads, fe as confirmRoomSessionAdmission, We as controllerRoomHostControlService, rt as controllerRoomHostWithdrawalLayer, it as controllerRoomHostWithdrawalService, St as dataStoreGeometryManifest, Ye as dataStoreRoomApiReservations, Ae as dataStoreRoomCheckpoints, Be as dataStoreRoomDirectory, A as dataStoreRoomErasure, Me as dataStoreRoomHostDrain, mt as dataStoreRoomReaper, ft as dataStoreRoomRecovery, He as dataStoreRoomReservations, M as dataStoreRoomSubjectPrivacy, Ne as defaultRoomSnapshotBudget, bt as defaultRoomsHostAcquire, At as developmentRoomsBinding, dt as directoryRoomControlTargetResolver, k as eraseRoomSnapshots, he as geometryManifestLayer, ze as leastLoadedRoomHostInRegion, L as loadRoomCatalog, Tt as makeRoomDirectoryProjection, ot as makeWorldTransitionResolver, Ie as matchRoomCreationKey, lt as openRegistryRoomControlClient, ut as openRegistryRoomControlServer, st as openRoomControlClient, ct as openRoomControlServer, N as readRoomSubjectPrivacyJournal, gt as registryRoomsApiBinder, xt as registryRoomsHostBinder, le as resolveRoomSeatTokenStrategies, Xe as roomApiReservationLayer, je as roomCheckpointLayer, V as roomCheckpointsTable, Re as roomCommandEpoch, H as roomCommandsTable, Et as roomControlSubjectResolver, U as roomCreationsTable, Ve as roomDirectoryLayer, j as roomErasureLayer, vt as roomExternalWorkWithdrawalLayer, W as roomHostsTable, G as roomLockstepTicksTable, be as roomModerationService, Ue as roomProcessCpuSampler, ht as roomReaperLayer, Z as roomReaperWorkflowExecutor, pt as roomRecoveryLayer, Dt as roomSeatSubjectIdentity, Ot as roomSeatSubjectResolver, K as roomSeatsTable, w as roomSnapshotBlobLayer, q as roomSnapshotSegmentsTable, ce as roomSubjectPrivacyLayer, J as roomSubjectPrivacyTable, o as roomsGeometryHttpRoute, Mt as roomsMatchRooms, Ft as roomsPlugin, s as roomsSystemContractManifest, Y as roomsTable, at as routedRoomHostWithdrawalService, kt as runRoomReaperWorkflow, Je as runtimeRoomHostListener, ue as signRoomSeat, Ct as sqlRoomsGeometry, yt as sqlRoomsSubjectPrivacyBinder, T as storageRoomSnapshotBlobs, Ze as timedRoomAdmission, jt as trustedRoomSeatSubject, F as validateRoomSchemaHistory, de as verifiedRoomSeatClaims };
|
package/dist/inputReceipts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { captureWorldTargetSeatBinding as t } from "./worldSeatBinding.js";
|
|
3
|
-
|
|
3
|
+
// src/inputReceipts.ts
|
|
4
4
|
function n() {
|
|
5
5
|
throw new e({ detail: "Invalid bounded Room input receipt" });
|
|
6
6
|
}
|
|
@@ -59,5 +59,4 @@ var r = (e) => !!e && typeof e == "object" && !Array.isArray(e) && [Object.proto
|
|
|
59
59
|
}
|
|
60
60
|
return Object.freeze(c.sort((e, t) => e.sessionId < t.sessionId ? -1 : +(e.sessionId > t.sessionId)));
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { s as captureRoomConsumedSeat, l as captureRoomInputReceipts, c as captureRoomSeatInputReceipt };
|
package/dist/inputRedundancy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BudgetExceeded as e, ProtocolError as t, RoomAuthoringError as n } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/inputRedundancy.ts
|
|
3
3
|
var r = Object.freeze({
|
|
4
4
|
inputRedundancy: 3,
|
|
5
5
|
maxInputHistoryBytes: 262144
|
|
@@ -51,5 +51,4 @@ var r = Object.freeze({
|
|
|
51
51
|
this.entries.splice(0), this.bytes = 0, this.lastSeq = null;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
//#endregion
|
|
55
54
|
export { i as RoomInputRedundancy, r as defaultRoomInputRedundancy };
|
package/dist/inspect.js
CHANGED
|
@@ -6,7 +6,7 @@ import { inspectRoomSnapshots as o } from "./snapshotInspection.js";
|
|
|
6
6
|
import { and as s, eq as c, gt as l, or as u } from "@voltro/database";
|
|
7
7
|
import { Effect as d, Result as f } from "effect";
|
|
8
8
|
import { parseReplicaSelection as p } from "@voltro/protocol/inspect";
|
|
9
|
-
|
|
9
|
+
// src/inspect.ts
|
|
10
10
|
var m = 50, h = (e) => {
|
|
11
11
|
if (typeof e != "string" || !e.trim() || e.length > 191) throw Error("Invalid directory identity");
|
|
12
12
|
return e;
|
|
@@ -234,5 +234,4 @@ var m = 50, h = (e) => {
|
|
|
234
234
|
})
|
|
235
235
|
}
|
|
236
236
|
];
|
|
237
|
-
//#endregion
|
|
238
237
|
export { S as roomsInspectEndpoints };
|
package/dist/lockstep.js
CHANGED
|
@@ -8,7 +8,7 @@ import { SimulationRunner as u, assertCapturedSimulation as d, captureSimulation
|
|
|
8
8
|
import { LockstepPolicyOwner as m, createLockstepPolicies as h } from "./lockstepPolicies.js";
|
|
9
9
|
import { repeatLastLockstepInput as g } from "./lockstepStrategies.js";
|
|
10
10
|
import { RoomLockstepClientSession as _, createRoomLockstepClientSession as v, isRoomLockstepClientSession as y } from "./lockstepClientSession.js";
|
|
11
|
-
|
|
11
|
+
// src/lockstep.ts
|
|
12
12
|
function b(e) {
|
|
13
13
|
throw new n({
|
|
14
14
|
room: "lockstep",
|
|
@@ -378,5 +378,4 @@ var x = (t, n) => {
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
}, E = (e, t, n, r) => new T(e, t, n, r);
|
|
381
|
-
//#endregion
|
|
382
381
|
export { T as LockstepClientSimulation, m as LockstepPolicyOwner, _ as RoomLockstepClientSession, C as captureLockstepClientOptions, S as captureLockstepClientPolicy, E as createLockstepClientSimulation, h as createLockstepPolicies, v as createRoomLockstepClientSession, y as isRoomLockstepClientSession, g as repeatLastLockstepInput, s as schemaSimulationHash };
|
|
@@ -11,7 +11,7 @@ import { createRoomLockstepAdmissionCodec as f, roomLockstepCreationProjection a
|
|
|
11
11
|
import { captureRoomLockstepRecoveryOptions as h, readRoomLockstepRecoveryTruth as g } from "./lockstepRecoveryTruth.js";
|
|
12
12
|
import { and as _, eq as v, or as y } from "@voltro/database";
|
|
13
13
|
import { Effect as b, Layer as x } from "effect";
|
|
14
|
-
|
|
14
|
+
// src/lockstepAdmission.ts
|
|
15
15
|
function S(t) {
|
|
16
16
|
throw new e({ detail: t });
|
|
17
17
|
}
|
|
@@ -258,5 +258,4 @@ var C = (e) => _(v("id", e.roomId), v("tenantId", e.tenantId)), w = (c, x, w) =>
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}, T = (e, t, n) => x.succeed(c, w(e, t, n));
|
|
261
|
-
//#endregion
|
|
262
261
|
export { c as RoomLockstepAdmissionPort, w as dataStoreRoomLockstepAdmission, T as roomLockstepAdmissionLayer };
|
|
@@ -6,7 +6,7 @@ import { assertCapturedSimulation as a } from "./simulation.js";
|
|
|
6
6
|
import { RoomInputCodec as o, RoomStateCodec as s } from "./stateCodec.js";
|
|
7
7
|
import { lockstepJournalIdentity as c } from "./lockstepJournalCodec.js";
|
|
8
8
|
import { createHash as l } from "node:crypto";
|
|
9
|
-
|
|
9
|
+
// src/lockstepAdmissionCodec.ts
|
|
10
10
|
function u(t) {
|
|
11
11
|
throw new e({ detail: t });
|
|
12
12
|
}
|
|
@@ -90,5 +90,4 @@ var d = (e) => l("sha256").update(JSON.stringify(e)).digest("hex"), f = (e) => n
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
};
|
|
93
|
-
//#endregion
|
|
94
93
|
export { p as captureRoomLockstepAdmissionEnvelope, h as createRoomLockstepAdmissionCodec, m as roomLockstepCreationProjection, f as sealRoomLockstepAdmission };
|
|
@@ -13,7 +13,7 @@ import { decodeRoomFrame as _, encodeRoomFrame as v } from "./wire.js";
|
|
|
13
13
|
import { roomCodecs as y } from "./web.js";
|
|
14
14
|
import { captureLockstepClientOptions as b, captureLockstepClientPolicy as x, createLockstepClientSimulation as S } from "./lockstep.js";
|
|
15
15
|
import { Result as C } from "effect";
|
|
16
|
-
|
|
16
|
+
// src/lockstepClientSession.ts
|
|
17
17
|
var w = /* @__PURE__ */ new WeakSet(), T = (e) => typeof e == "object" && !!e && w.has(e);
|
|
18
18
|
function E(e) {
|
|
19
19
|
throw new t({ detail: e });
|
|
@@ -574,5 +574,4 @@ var D = (e) => e === "left" || e === "kicked" || e === "faulted", O = (e, t) =>
|
|
|
574
574
|
if (e.length) throw AggregateError(e, "Lockstep client writes failed");
|
|
575
575
|
}
|
|
576
576
|
}, A = (e, t, n, r) => new k(e, t, n, r);
|
|
577
|
-
//#endregion
|
|
578
577
|
export { k as RoomLockstepClientSession, A as createRoomLockstepClientSession, T as isRoomLockstepClientSession };
|
|
@@ -6,7 +6,7 @@ import { assertCapturedSimulation as i } from "./simulation.js";
|
|
|
6
6
|
import { captureRoomLockstepServerOptions as a } from "./lockstepServerConfig.js";
|
|
7
7
|
import { captureLockstepMessages as o } from "./lockstepMessages.js";
|
|
8
8
|
import { defaultRoomBudgets as s, defaultRoomReconnectPolicy as c } from "./room.js";
|
|
9
|
-
|
|
9
|
+
// src/lockstepDefinition.ts
|
|
10
10
|
var l = /* @__PURE__ */ new WeakMap();
|
|
11
11
|
function u(t) {
|
|
12
12
|
throw new e({
|
|
@@ -144,5 +144,4 @@ var d = (e, t, n) => !Number.isSafeInteger(e) || e < t || e > n ? u("Invalid bou
|
|
|
144
144
|
});
|
|
145
145
|
return n(e, z), l.set(z, M), z;
|
|
146
146
|
};
|
|
147
|
-
//#endregion
|
|
148
147
|
export { f as captureLockstepRoomDefinition };
|
package/dist/lockstepHostLoop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BudgetExceeded as e, ProtocolError as t, RoomAuthoringError as n } from "./errors.js";
|
|
2
2
|
import { simulationOwnData as r } from "./simulationAuthoring.js";
|
|
3
3
|
import { createRoomLockstepServer as i } from "./lockstepServerRoles.js";
|
|
4
|
-
|
|
4
|
+
// src/lockstepHostLoop.ts
|
|
5
5
|
function a(e) {
|
|
6
6
|
throw new t({ detail: e });
|
|
7
7
|
}
|
|
@@ -239,5 +239,4 @@ var o = class {
|
|
|
239
239
|
return this.#s || this.#e.withdrawn;
|
|
240
240
|
}
|
|
241
241
|
}, s = (e, t, n, r, i, a = {}, s = {}) => new o(e, t, n, r, i, a, s);
|
|
242
|
-
//#endregion
|
|
243
242
|
export { o as RoomLockstepHostLoop, s as createRoomLockstepHostLoop };
|
|
@@ -3,7 +3,7 @@ import { unsignedWord as t } from "./fixedWords.js";
|
|
|
3
3
|
import { simulationOwnData as n, simulationSyncValue as r } from "./simulationAuthoring.js";
|
|
4
4
|
import { captureRoomLockstepWireRoster as i } from "./lockstepWireRoster.js";
|
|
5
5
|
import { captureLockstepJournalScope as a, lockstepJournalIdentity as o } from "./lockstepJournalCodec.js";
|
|
6
|
-
|
|
6
|
+
// src/lockstepInitialAdmission.ts
|
|
7
7
|
function s(t) {
|
|
8
8
|
throw new e({ detail: t });
|
|
9
9
|
}
|
|
@@ -63,5 +63,4 @@ var c = (e, t) => {
|
|
|
63
63
|
let n = r(t(c(e, !1)));
|
|
64
64
|
return typeof n == "boolean" ? n : s("Initial start strategy must return an actual synchronous boolean");
|
|
65
65
|
};
|
|
66
|
-
//#endregion
|
|
67
66
|
export { d as captureRoomLockstepInitialStrategies, l as firstFreeRoomLockstepPlayerId, f as resolveRoomLockstepInitialPlayerId, p as resolveRoomLockstepInitialStart, u as startFullRoomLockstepRoster };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { firstFreeRoomLockstepPlayerId as e, resolveRoomLockstepInitialPlayerId as t, resolveRoomLockstepInitialStart as n, startFullRoomLockstepRoster as r } from "./lockstepInitialAdmission.js";
|
|
2
2
|
import { Effect as i } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/lockstepInitialStrategyFixtures.ts
|
|
4
4
|
var a = {
|
|
5
5
|
roomId: "initial-fixture-room",
|
|
6
6
|
tenantId: "initial-fixture-tenant",
|
|
@@ -41,5 +41,4 @@ var a = {
|
|
|
41
41
|
expected: !0
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
//#endregion
|
|
45
44
|
export { o as lockstepInitialPlayerSlotFixture, s as lockstepInitialStartSlotFixture };
|
package/dist/lockstepJournal.js
CHANGED
|
@@ -12,7 +12,7 @@ import { createRoomLockstepAdmissionCodec as v } from "./lockstepAdmissionCodec.
|
|
|
12
12
|
import { captureRoomAdmittedSessionReader as y } from "./serverSession.js";
|
|
13
13
|
import { and as b, eq as x } from "@voltro/database";
|
|
14
14
|
import { Effect as S, Layer as C } from "effect";
|
|
15
|
-
|
|
15
|
+
// src/lockstepJournal.ts
|
|
16
16
|
function w(t) {
|
|
17
17
|
throw new e({ detail: t });
|
|
18
18
|
}
|
|
@@ -391,5 +391,4 @@ var T = (e) => b(x("id", e.roomId), x("tenantId", e.tenantId)), E = (c, C, E) =>
|
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
}, D = (e, t, n) => C.succeed(c, E(e, t, n));
|
|
394
|
-
//#endregion
|
|
395
394
|
export { c as RoomLockstepJournalPort, E as dataStoreRoomLockstepJournal, D as roomLockstepJournalLayer };
|
|
@@ -7,7 +7,7 @@ import { assertCapturedSimulation as o } from "./simulation.js";
|
|
|
7
7
|
import { RoomInputCodec as s, RoomStateCodec as c } from "./stateCodec.js";
|
|
8
8
|
import { Result as l } from "effect";
|
|
9
9
|
import { createHash as u } from "node:crypto";
|
|
10
|
-
|
|
10
|
+
// src/lockstepJournalCodec.ts
|
|
11
11
|
function d(t) {
|
|
12
12
|
throw new e({ detail: t });
|
|
13
13
|
}
|
|
@@ -250,5 +250,4 @@ var f = (e) => typeof e == "string" && e.length > 0 && e.length <= 191 && e.trim
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
};
|
|
253
|
-
//#endregion
|
|
254
253
|
export { C as appendRoomLockstepJournalTick, E as assembleRoomLockstepJournal, m as captureLockstepJournalArray, p as captureLockstepJournalScope, D as createLockstepJournalCodec, w as extendsRoomLockstepJournal, f as lockstepJournalIdentity, T as roomLockstepJournalHeader, S as sealRoomLockstepJournal };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Context as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/lockstepJournalPorts.ts
|
|
3
3
|
var t = (e, t) => [...e.initial.players, ...(e.joins ?? []).filter((e) => e.tick <= t)].sort((e, t) => e.slot - t.slot), n = class extends e.Service()("@voltro/RoomLockstepJournalPort") {};
|
|
4
|
-
//#endregion
|
|
5
4
|
export { n as RoomLockstepJournalPort, t as roomLockstepJournalRosterAt };
|
|
@@ -7,7 +7,7 @@ import { captureLockstepJournalScope as l, createLockstepJournalCodec as u, lock
|
|
|
7
7
|
import { captureRoomAdmittedSessionReader as f } from "./serverSession.js";
|
|
8
8
|
import { createRoomLockstepServer as p } from "./lockstepServerRoles.js";
|
|
9
9
|
import { Effect as m, Exit as h } from "effect";
|
|
10
|
-
|
|
10
|
+
// src/lockstepJournalRebuild.ts
|
|
11
11
|
var g = (t, n, o, f, p = () => void 0, g = () => void 0) => {
|
|
12
12
|
try {
|
|
13
13
|
i(t);
|
|
@@ -204,5 +204,4 @@ var g = (t, n, o, f, p = () => void 0, g = () => void 0) => {
|
|
|
204
204
|
return m.fail(new e({ detail: "Invalid SQL authority rebuild admission" }));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
//#endregion
|
|
208
207
|
export { v as rebuildRoomLockstepAuthorityFromSql, _ as rebuildRoomLockstepFromSql };
|
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { ROOM_LOCKSTEP_TICKS_TABLE as t } from "./identities.js";
|
|
3
3
|
import { assembleRoomLockstepJournal as n, roomLockstepJournalHeader as r } from "./lockstepJournalCodec.js";
|
|
4
4
|
import { and as i, eq as a, generateId as o } from "@voltro/database";
|
|
5
|
-
|
|
5
|
+
// src/lockstepJournalRows.ts
|
|
6
6
|
var s = (e) => i(a("tenantId", e.tenantId), a("roomId", e.roomId)), c = async (r, i, a) => {
|
|
7
7
|
let o = i.lockstepJournal;
|
|
8
8
|
if (o == null) return null;
|
|
@@ -53,5 +53,4 @@ var s = (e) => i(a("tenantId", e.tenantId), a("roomId", e.roomId)), c = async (r
|
|
|
53
53
|
skip: void 0,
|
|
54
54
|
projection: ["id"]
|
|
55
55
|
})).length > 0;
|
|
56
|
-
//#endregion
|
|
57
56
|
export { d as deleteLockstepJournalTicks, f as hasLockstepJournalTicks, u as insertLockstepJournalTick, c as readStoredLockstepJournal, l as storedLockstepJournalHeader };
|
package/dist/lockstepMembers.js
CHANGED
|
@@ -5,7 +5,7 @@ import { captureLockstepMessages as l } from "./lockstepMessages.js";
|
|
|
5
5
|
import { defaultRoomBudgets as u } from "./room.js";
|
|
6
6
|
import { captureRoomConsumedSeat as d } from "./inputReceipts.js";
|
|
7
7
|
import { captureLockstepJournalScope as f } from "./lockstepJournalCodec.js";
|
|
8
|
-
|
|
8
|
+
// src/lockstepMembers.ts
|
|
9
9
|
var p = /* @__PURE__ */ new WeakSet(), m = (e) => {
|
|
10
10
|
if (typeof e != "string" || !e.trim() || e.length > 191) throw new t({ detail: "Lockstep membership requires bounded own identity" });
|
|
11
11
|
return e;
|
|
@@ -127,5 +127,4 @@ var p = /* @__PURE__ */ new WeakSet(), m = (e) => {
|
|
|
127
127
|
this.withdraw();
|
|
128
128
|
}
|
|
129
129
|
}, g = (e) => typeof e == "object" && !!e && p.has(e);
|
|
130
|
-
//#endregion
|
|
131
130
|
export { h as RoomLockstepMemberOwner, g as isRoomLockstepMemberOwner };
|
package/dist/lockstepMessages.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
2
|
import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
3
3
|
import { RoomInputCodec as n } from "./stateCodec.js";
|
|
4
|
-
|
|
4
|
+
// src/lockstepMessages.ts
|
|
5
5
|
var r = (r) => {
|
|
6
6
|
if (!r || typeof r != "object" || Object.getPrototypeOf(r) !== Object.prototype) throw new e({
|
|
7
7
|
room: "lockstep",
|
|
@@ -43,5 +43,4 @@ var r = (r) => {
|
|
|
43
43
|
}
|
|
44
44
|
return Object.freeze(o);
|
|
45
45
|
};
|
|
46
|
-
//#endregion
|
|
47
46
|
export { r as captureLockstepMessages };
|
|
@@ -15,7 +15,7 @@ import { captureRoomLockstepTransportLimits as S } from "./lockstepTransportConf
|
|
|
15
15
|
import { createRoomLockstepTransportOwner as C } from "./lockstepTransport.js";
|
|
16
16
|
import { captureRoomLockstepInitialStrategies as w, resolveRoomLockstepInitialPlayerId as T, resolveRoomLockstepInitialStart as E } from "./lockstepInitialAdmission.js";
|
|
17
17
|
import { Effect as D, Result as O } from "effect";
|
|
18
|
-
|
|
18
|
+
// src/lockstepOwnedRoom.ts
|
|
19
19
|
var k = /* @__PURE__ */ new WeakSet(), A = (e) => typeof e == "object" && !!e && k.has(e);
|
|
20
20
|
function j(e) {
|
|
21
21
|
throw new t({ detail: e });
|
|
@@ -760,5 +760,4 @@ var M = (e, t, n = []) => {
|
|
|
760
760
|
}), r;
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
|
-
//#endregion
|
|
764
763
|
export { N as RoomLockstepOwnedRoom, A as isRoomLockstepOwnedRoom };
|
package/dist/lockstepPolicies.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
2
|
import { captureUint64Words as t, unsignedWord as n } from "./fixedWords.js";
|
|
3
3
|
import { simulationOwnData as r, simulationSyncValue as i } from "./simulationAuthoring.js";
|
|
4
|
-
|
|
4
|
+
// src/lockstepPolicies.ts
|
|
5
5
|
function a(t) {
|
|
6
6
|
throw new e({
|
|
7
7
|
room: "lockstep",
|
|
@@ -80,5 +80,4 @@ var o = (e, t) => !Number.isInteger(e) || e < t || e > 4096 ? a("Lockstep policy
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}, f = (e = {}, t = {}) => new d(e, t);
|
|
83
|
-
//#endregion
|
|
84
83
|
export { d as LockstepPolicyOwner, f as createLockstepPolicies, u as defaultLockstepDesync, c as defaultLockstepRefereeLag, l as defaultLockstepStallPolicy };
|
package/dist/lockstepReact.js
CHANGED
|
@@ -2,7 +2,7 @@ import { RoomAuthoringError as e } from "./errors.js";
|
|
|
2
2
|
import { simulationSyncValue as t } from "./simulationAuthoring.js";
|
|
3
3
|
import { isRoomLockstepClientSession as n } from "./lockstepClientSession.js";
|
|
4
4
|
import { useCallback as r, useMemo as i, useSyncExternalStore as a } from "react";
|
|
5
|
-
|
|
5
|
+
// src/lockstepReact.ts
|
|
6
6
|
var o = (t) => {
|
|
7
7
|
if (!n(t)) throw new e({
|
|
8
8
|
room: "lockstep-react",
|
|
@@ -43,5 +43,4 @@ var o = (t) => {
|
|
|
43
43
|
retryIntent: e.retryIntent.bind(e),
|
|
44
44
|
resendRetainedIntent: e.resendRetainedIntent.bind(e)
|
|
45
45
|
}), [e]));
|
|
46
|
-
//#endregion
|
|
47
46
|
export { l as useLocalInput, s as useLockstepRoom, c as useSimState };
|
|
@@ -7,7 +7,7 @@ import { createLockstepJournalCodec as a, sealRoomLockstepJournal as o } from ".
|
|
|
7
7
|
import { readStoredLockstepJournal as s } from "./lockstepJournalRows.js";
|
|
8
8
|
import { createRoomLockstepAdmissionCodec as c, sealRoomLockstepAdmission as l } from "./lockstepAdmissionCodec.js";
|
|
9
9
|
import { and as u, eq as d } from "@voltro/database";
|
|
10
|
-
|
|
10
|
+
// src/lockstepRecoveryTruth.ts
|
|
11
11
|
function f(t) {
|
|
12
12
|
throw new e({ detail: t });
|
|
13
13
|
}
|
|
@@ -117,5 +117,4 @@ var p = (e) => {
|
|
|
117
117
|
options: e.options
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
//#endregion
|
|
121
120
|
export { h as adoptRoomLockstepRecoveryTruth, p as captureRoomLockstepRecoveryOptions, m as readRoomLockstepRecoveryTruth };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
2
|
import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
3
|
-
|
|
3
|
+
// src/lockstepRosterConfig.ts
|
|
4
4
|
var n = (n = {}) => {
|
|
5
5
|
let r = t(n, [
|
|
6
6
|
"initialTick",
|
|
@@ -28,5 +28,4 @@ var n = (n = {}) => {
|
|
|
28
28
|
});
|
|
29
29
|
return Object.freeze(a);
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { n as captureLockstepRosterOptions };
|
package/dist/lockstepSeed.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { unsignedWord as t } from "./fixedWords.js";
|
|
3
3
|
import { randomBytes as n } from "node:crypto";
|
|
4
|
-
|
|
4
|
+
// src/lockstepSeed.ts
|
|
5
5
|
var r = () => n(4).readUInt32LE(), i = (n = r) => {
|
|
6
6
|
if (typeof n != "function") throw new e({ detail: "Lockstep seed slot requires its actual synchronous source" });
|
|
7
7
|
let i = n();
|
|
8
8
|
if (i instanceof Promise) throw i.catch(() => void 0), new e({ detail: "Lockstep seed slot cannot return asynchronous work" });
|
|
9
9
|
return t(i);
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { r as randomRoomLockstepSeed, i as resolveRoomLockstepSeed };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomRoomLockstepSeed as e, resolveRoomLockstepSeed as t } from "./lockstepSeed.js";
|
|
2
2
|
import { Effect as n } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/lockstepSeedFixture.ts
|
|
4
4
|
var r = {
|
|
5
5
|
kind: "slot",
|
|
6
6
|
defaultImplementation: e,
|
|
@@ -16,5 +16,4 @@ var r = {
|
|
|
16
16
|
expected: 42
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { r as lockstepSeedSlotFixture };
|
package/dist/lockstepServer.js
CHANGED
|
@@ -20,7 +20,7 @@ import { RoomLockstepHostLoop as E, createRoomLockstepHostLoop as D } from "./lo
|
|
|
20
20
|
import { RoomLockstepTransportOwner as O, createRoomLockstepTransportOwner as k } from "./lockstepTransport.js";
|
|
21
21
|
import { RoomLockstepOwnedRoom as A } from "./lockstepOwnedRoom.js";
|
|
22
22
|
import { Result as j } from "effect";
|
|
23
|
-
|
|
23
|
+
// src/lockstepServer.ts
|
|
24
24
|
function M(e) {
|
|
25
25
|
throw new t({ detail: e });
|
|
26
26
|
}
|
|
@@ -321,5 +321,4 @@ var P = (e, t) => t !== null && Object.keys(e).every((n) => t[n] === e[n]), F =
|
|
|
321
321
|
return n.sort((e, t) => e.tick - t.tick || e.playerId - t.playerId), Object.freeze(n);
|
|
322
322
|
}
|
|
323
323
|
}, L = (e, t, n = {}) => new I(e, t, n);
|
|
324
|
-
//#endregion
|
|
325
324
|
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 };
|
|
@@ -2,7 +2,7 @@ import { RoomAuthoringError as e } from "./errors.js";
|
|
|
2
2
|
import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
3
3
|
import { captureLockstepRosterOptions as n } from "./lockstepRosterConfig.js";
|
|
4
4
|
import { createLockstepPolicies as r, defaultLockstepStallPolicy as i } from "./lockstepPolicies.js";
|
|
5
|
-
|
|
5
|
+
// src/lockstepServerConfig.ts
|
|
6
6
|
function a(t) {
|
|
7
7
|
throw new e({
|
|
8
8
|
room: "lockstep",
|
|
@@ -97,5 +97,4 @@ var o = Object.freeze({
|
|
|
97
97
|
options: x
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
//#endregion
|
|
101
100
|
export { c as captureRoomLockstepServerOptions };
|