@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/roomAuthoringStrategy.ts
|
|
3
3
|
var t = (t, n, r, i, a = (e) => structuredClone(e)) => {
|
|
4
4
|
try {
|
|
5
5
|
if (typeof r != "function") throw Error("Missing strategy");
|
|
@@ -13,5 +13,4 @@ var t = (t, n, r, i, a = (e) => structuredClone(e)) => {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { t as roomAuthoringStrategy };
|
package/dist/roomErasure.js
CHANGED
|
@@ -6,7 +6,7 @@ import { captureRoomSnapshotBlobs as s, captureRoomSnapshotEffectRunner as c } f
|
|
|
6
6
|
import { eraseRoomSnapshots as l, readRoomSnapshotErasureJournal as u } from "./snapshotErasure.js";
|
|
7
7
|
import { and as d, eq as f } from "@voltro/database";
|
|
8
8
|
import { Effect as p, Layer as m } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/roomErasure.ts
|
|
10
10
|
var h = [
|
|
11
11
|
"fenced",
|
|
12
12
|
"owner-withdrawn",
|
|
@@ -194,5 +194,4 @@ var _ = (e) => typeof e == "string" && e.trim() && e.length <= 191 ? e : g("Inva
|
|
|
194
194
|
})));
|
|
195
195
|
} });
|
|
196
196
|
}, C = (e, t) => m.succeed(i, S(e, t));
|
|
197
|
-
//#endregion
|
|
198
197
|
export { S as dataStoreRoomErasure, x as readRoomErasureJournal, C as roomErasureLayer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/roomPoolRuntimeDefaults.ts
|
|
2
2
|
var e = /* @__PURE__ */ new WeakMap(), t = (t, n) => (e.set(n, e.get(t) ?? Object.freeze({
|
|
3
3
|
catchUp: t.maxCatchUpTicks !== void 0,
|
|
4
4
|
snapshot: t.snapshot?.everyMs !== void 0 || t.strategies?.snapshotPolicy !== void 0,
|
|
@@ -20,5 +20,4 @@ var e = /* @__PURE__ */ new WeakMap(), t = (t, n) => (e.set(n, e.get(t) ?? Objec
|
|
|
20
20
|
}, r = /* @__PURE__ */ new WeakMap(), i = (e, t) => {
|
|
21
21
|
r.set(t, r.get(e) ?? e.maxCatchUpTicks !== void 0);
|
|
22
22
|
}, a = (e, t) => t && r.get(e) === !1 ? t.maxCatchUpTicks : e.maxCatchUpTicks;
|
|
23
|
-
//#endregion
|
|
24
23
|
export { n as applyRoomPoolRuntimeDefaults, i as retainLockstepPoolOrigin, t as retainRoomPolicyOrigin, a as roomPoolLockstepCatchUp };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { resolveRoomPool as t } from "./roomPoolTopology.js";
|
|
3
3
|
import { resolveRoomHostSelection as n } from "./hostSelection.js";
|
|
4
|
-
|
|
4
|
+
// src/roomPoolSelection.ts
|
|
5
5
|
var r = (r, i, a, o, s, c, l) => {
|
|
6
6
|
let u = t(r, a, o, s, c), d = /* @__PURE__ */ new Set();
|
|
7
7
|
for (let t of i) {
|
|
@@ -15,5 +15,4 @@ var r = (r, i, a, o, s, c, l) => {
|
|
|
15
15
|
}), m = n(f, s, l === void 0 ? void 0 : (e, t) => l(e, t, p));
|
|
16
16
|
return m === null ? null : f.find((e) => e.id === m.id) ?? null;
|
|
17
17
|
};
|
|
18
|
-
//#endregion
|
|
19
18
|
export { r as resolveRoomPoolHostSelection };
|
package/dist/roomPoolTopology.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
3
3
|
import { roomHostTransportEndpoints as n } from "./transportEndpoints.js";
|
|
4
|
-
|
|
4
|
+
// src/roomPoolTopology.ts
|
|
5
5
|
var r = /* @__PURE__ */ new WeakSet();
|
|
6
6
|
function i() {
|
|
7
7
|
throw new e({ detail: "Room pools require complete unambiguous catalog ownership, bounded own configuration and tenant-isolated QA routing" });
|
|
@@ -208,5 +208,4 @@ var a = (e) => typeof e == "string" && /^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,95}$/.test
|
|
|
208
208
|
hibernate: n.defaults?.hibernate ?? r.hibernate
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
|
-
//#endregion
|
|
212
211
|
export { p as assertRoomPoolRecoveryTarget, f as captureAdmittedRoomPoolTopology, m as captureRoomPoolCatalog, u as captureRoomPoolTopology, d as resolveRoomPool, h as roomPoolHostedNames, _ as roomPoolPublicAddress, y as roomPoolRuntimeDefaults };
|
package/dist/rpc.js
CHANGED
|
@@ -11,7 +11,7 @@ import { geometryAssetUrlDescriptor as N } from "./geometryAssetRpc.js";
|
|
|
11
11
|
import { GeometryJournalRetentionWorkflowPayload as P, GeometryJournalRetentionWorkflowResult as F } from "./geometryJournalRetentionSchemas.js";
|
|
12
12
|
import { defineAction as I, defineQuery as L } from "@voltro/protocol";
|
|
13
13
|
import { Schema as R } from "effect";
|
|
14
|
-
|
|
14
|
+
// src/rpc.ts
|
|
15
15
|
var z = "@voltro/plugin-rooms", B = R.Union([
|
|
16
16
|
e,
|
|
17
17
|
t,
|
|
@@ -108,5 +108,4 @@ var z = "@voltro/plugin-rooms", B = R.Union([
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
];
|
|
111
|
-
//#endregion
|
|
112
111
|
export { z as BASE_NAME, e as BudgetExceeded, P as GeometryJournalRetentionWorkflowPayload, F as GeometryJournalRetentionWorkflowResult, n as ProtocolError, V as ReserveRoomInput, x as RoomReaperWorkflowPayload, S as RoomReaperWorkflowResult, v as RoomReservationSchema, B as RoomRpcError, y as RoomTransportEndpointsSchema, _ as WorldClientPendingInputSchema, m as WorldClientReceiptSchema, h as WorldClientRequestIdSchema, g as WorldClientTicketSchema, C as WorldJoinResultSchema, N as geometryAssetUrlDescriptor, d as geometryChunksDescriptor, f as geometryReloadDescriptor, p as geometryRollbackDescriptor, M as geometryStaticUrlDescriptor, G as leaveDescriptor, K as listDescriptor, U as reserveDescriptor, W as resumeDescriptor, q as roomsRpcClientImports, w as worldCancelDescriptor, T as worldCommitDescriptor, E as worldFollowDescriptor, D as worldJoinDescriptor, O as worldObserveDescriptor, k as worldPendingDescriptor, A as worldPrepareDescriptor, j as worldReservationDescriptor };
|
package/dist/rpcClient.js
CHANGED
|
@@ -8,7 +8,7 @@ import { BASE_NAME as o, ReserveRoomInput as s, leaveDescriptor as c, listDescri
|
|
|
8
8
|
import { worldClientReceipt as u, worldClientTicket as d } from "./worldClient.js";
|
|
9
9
|
import { pluginTag as f } from "@voltro/protocol";
|
|
10
10
|
import { Schema as p } from "effect";
|
|
11
|
-
|
|
11
|
+
// src/rpcClient.ts
|
|
12
12
|
var m = (t) => {
|
|
13
13
|
try {
|
|
14
14
|
let n = t && typeof t == "object" ? Object.getOwnPropertyDescriptor(t, "endpoints") : void 0;
|
|
@@ -148,5 +148,4 @@ var m = (t) => {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
//#endregion
|
|
152
151
|
export { b as listRooms, h as roomRpcReservations, w as worldRpcControls, y as worldRpcFollowerReservations, g as worldRpcJoin, C as worldRpcPending, v as worldRpcReservations };
|
package/dist/rpcRoutes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { leaveDescriptor as e, listDescriptor as t, reserveDescriptor as n, resumeDescriptor as r } from "./rpc.js";
|
|
2
|
-
|
|
2
|
+
// src/rpcRoutes.ts
|
|
3
3
|
var i = (i) => [
|
|
4
4
|
{
|
|
5
5
|
...n,
|
|
@@ -24,5 +24,4 @@ var i = (i) => [
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
];
|
|
27
|
-
//#endregion
|
|
28
27
|
export { i as roomsRpcRoutes };
|
package/dist/runtime.js
CHANGED
|
@@ -21,7 +21,7 @@ import { activateRoomGeometryChange as E, activateRoomGeometryVersion as D, bind
|
|
|
21
21
|
import { isRoomLockstepOwnedRoom as R } from "./lockstepOwnedRoom.js";
|
|
22
22
|
import { Effect as z, Result as B, Schema as V } from "effect";
|
|
23
23
|
import { createHash as H } from "node:crypto";
|
|
24
|
-
|
|
24
|
+
// src/runtime.ts
|
|
25
25
|
var U = (e) => H("sha256").update(e.bytes).update(m({
|
|
26
26
|
schemaHash: e.schemaHash,
|
|
27
27
|
schedules: e.schedules,
|
|
@@ -992,7 +992,7 @@ var U = (e) => H("sha256").update(e.bytes).update(m({
|
|
|
992
992
|
try {
|
|
993
993
|
for (let e of this.withdrawn.keys()) await this.finishWithdrawal(e);
|
|
994
994
|
await this.commitPending();
|
|
995
|
-
for (let [e, t] of this.rooms) t.mode
|
|
995
|
+
for (let [e, t] of this.rooms) t.mode !== "state-sync" || this.heldPublication.has(e) || this.terminal.has(e) || this.withdrawn.has(e) || this.drains.has(e) || this.pending.get(e)?.retire || await t.pumpGeometry();
|
|
996
996
|
let e = this.loopObservation.measure(() => this.host.advance((e) => !this.heldPublication.has(e))), t = [];
|
|
997
997
|
this.collectTerminal(), t.push(...await this.captureTerminal());
|
|
998
998
|
let r = this.host.activeRooms(), i = r.findIndex((e) => e.id === this.lastPeriodicRoom), a = i < 0 ? r : [...r.slice(i + 1), ...r.slice(0, i + 1)];
|
|
@@ -1119,5 +1119,4 @@ var U = (e) => H("sha256").update(e.bytes).update(m({
|
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
1121
|
};
|
|
1122
|
-
//#endregion
|
|
1123
1122
|
export { G as RoomRuntime };
|
package/dist/schemaHistory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/schemaHistory.ts
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
throw new e({
|
|
5
5
|
room: t,
|
|
@@ -94,5 +94,4 @@ var n = (e) => JSON.stringify([e.scope, e.id]), r = (e, r = {}) => {
|
|
|
94
94
|
})
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
|
-
//#endregion
|
|
98
97
|
export { i as advanceRoomSchemaHistory, r as validateRoomSchemaHistory };
|
package/dist/seatStore.js
CHANGED
|
@@ -6,7 +6,7 @@ import { captureRoomSeatInputReceipt as a } from "./inputReceipts.js";
|
|
|
6
6
|
import { WorldSourceSeatPending as o } from "./worldSourceSeatPending.js";
|
|
7
7
|
import { and as s, eq as c, gt as l } from "@voltro/database";
|
|
8
8
|
import { Effect as u } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/seatStore.ts
|
|
10
10
|
var d = (e) => s(c("roomId", e.roomId), c("sessionId", e.sessionId), c("tenantId", e.tenantId), c("subjectId", e.subjectId), c("epoch", e.epoch), c("nonce", e.nonce), c("role", e.role)), f = (t) => u.tryPromise({
|
|
11
11
|
try: t,
|
|
12
12
|
catch: (t) => t instanceof o ? t : new e({ detail: "Durable Rooms seat operation failed" })
|
|
@@ -147,5 +147,4 @@ var d = (e) => s(c("roomId", e.roomId), c("sessionId", e.sessionId), c("tenantId
|
|
|
147
147
|
eraseSubject: (e, t) => f(() => i.deleteMany(n, { where: s(c("tenantId", e), c("subjectId", t)) }))
|
|
148
148
|
});
|
|
149
149
|
};
|
|
150
|
-
//#endregion
|
|
151
150
|
export { m as consumeRoomSeatInTransaction, g as dataStoreRoomSeats, h as revalidateRoomSeatInTransaction };
|
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { resolveRoomSeatTokenStrategies as t, signRoomSeat as n, signRoomSeatWithStrategies as r, verifiedRoomSeatClaims as i } from "./seats.js";
|
|
3
3
|
import { Effect as a } from "effect";
|
|
4
4
|
import { randomBytes as o } from "node:crypto";
|
|
5
|
-
|
|
5
|
+
// src/seatStrategyFixtures.ts
|
|
6
6
|
var s = () => ({
|
|
7
7
|
roomId: "room",
|
|
8
8
|
sessionId: "seat",
|
|
@@ -48,5 +48,4 @@ var s = () => ({
|
|
|
48
48
|
expected: "framed"
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
//#endregion
|
|
52
51
|
export { d as roomSeatSignSlotFixture, f as roomSeatVerifySlotFixture };
|
package/dist/seatSubject.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e, RoomForbidden as t } from "./errors.js";
|
|
2
2
|
import { resolveIdentityAuthority as n } from "@voltro/protocol";
|
|
3
3
|
import { Effect as r } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/seatSubject.ts
|
|
5
5
|
var i = (e) => {
|
|
6
6
|
if (e.subjectId === null) return {
|
|
7
7
|
type: "anonymous",
|
|
@@ -28,5 +28,4 @@ var i = (e) => {
|
|
|
28
28
|
}, o.authority),
|
|
29
29
|
catch: () => new e({ detail: "Room seat authority resolution failed" })
|
|
30
30
|
}), (n) => n.kind === "resolved" ? r.succeed(n.subject) : n.kind === "vetoed" ? r.fail(new t({ roomId: a })) : r.fail(new e({ detail: "Room seat authority is unavailable" }))), o = (e = {}) => (t) => a(i(t), t.roomId, e), s = (e = {}) => (t) => a(t, "", e);
|
|
31
|
-
//#endregion
|
|
32
31
|
export { s as roomControlSubjectResolver, i as roomSeatSubjectIdentity, o as roomSeatSubjectResolver };
|
package/dist/seats.js
CHANGED
|
@@ -3,7 +3,7 @@ import { captureRoomSeatAttributes as r } from "./room.js";
|
|
|
3
3
|
import { Result as i, Schema as a } from "effect";
|
|
4
4
|
import { createHash as o } from "node:crypto";
|
|
5
5
|
import { MIN_SESSION_SECRET_LENGTH as s, signSession as c, verifySessionKeyed as l } from "@voltro/protocol/session";
|
|
6
|
-
|
|
6
|
+
// src/seats.ts
|
|
7
7
|
var u = a.Struct({
|
|
8
8
|
purpose: a.Literal("voltro.rooms.seat.v1"),
|
|
9
9
|
roomId: a.NonEmptyString,
|
|
@@ -126,5 +126,4 @@ var u = a.Struct({
|
|
|
126
126
|
if (Object.keys(d).some((e) => !f(e, c, o))) throw new e({ detail: "Room seat-token strategies changed the issued identity" });
|
|
127
127
|
return Uint8Array.from(s);
|
|
128
128
|
};
|
|
129
|
-
//#endregion
|
|
130
129
|
export { m as assertRoomSeatSecrets, y as resolveRoomSeatTokenStrategies, h as roomSeatTokenDigest, g as signRoomSeat, S as signRoomSeatWithStrategies, _ as verifiedRoomSeatClaims, v as verifyRoomSeat, x as verifyRoomSeatWithStrategy };
|
package/dist/serverSession.js
CHANGED
|
@@ -13,7 +13,7 @@ import { definedOnly as v } from "./resolvedOptions.js";
|
|
|
13
13
|
import { SpectatorDelayBuffer as y } from "./replay.js";
|
|
14
14
|
import { captureRoomSessionAdmissionEvidence as b } from "./sessionAdmission.js";
|
|
15
15
|
import { Effect as x, Result as S } from "effect";
|
|
16
|
-
|
|
16
|
+
// src/serverSession.ts
|
|
17
17
|
var C = 250, w = /* @__PURE__ */ new WeakSet(), T = class extends AggregateError {
|
|
18
18
|
releaseListeners;
|
|
19
19
|
constructor(e, t) {
|
|
@@ -807,5 +807,4 @@ var C = 250, w = /* @__PURE__ */ new WeakSet(), T = class extends AggregateError
|
|
|
807
807
|
write: (e, t, r) => F.call(n, e, t, r)
|
|
808
808
|
});
|
|
809
809
|
};
|
|
810
|
-
//#endregion
|
|
811
810
|
export { E as RoomServerSession, T as RoomServerSessionAcquisitionFailure, P as captureRoomAdmittedSessionReader, N as captureRoomLockstepSessionPort, I as captureRoomReliableChannelWriter };
|
|
@@ -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 { RoomBaselineRing as n } from "./baselines.js";
|
|
4
|
-
|
|
4
|
+
// src/serverSessionConfig.ts
|
|
5
5
|
function r(r, i) {
|
|
6
6
|
let a = {
|
|
7
7
|
maxPendingWrites: 16,
|
|
@@ -39,5 +39,4 @@ function r(r, i) {
|
|
|
39
39
|
maxBaselineAgeMs: c.maxBaselineAgeMs
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { r as captureRoomServerSessionLimits };
|
package/dist/sessionAdmission.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { Effect as t } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/sessionAdmission.ts
|
|
4
4
|
var n = (t) => {
|
|
5
5
|
let n = () => {
|
|
6
6
|
throw new e({ detail: "Room session admission evidence is invalid" });
|
|
@@ -49,5 +49,4 @@ var n = (t) => {
|
|
|
49
49
|
});
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
52
|
export { n as captureRoomSessionAdmissionEvidence, r as confirmRoomSessionAdmission };
|
package/dist/sidecarAdmission.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ProtocolError as e, RoomAuthoringError as t } from "./errors.js";
|
|
|
2
2
|
import { captureRoomTransportClock as n, captureRoomTransportDataMethod as r } from "./transportAuthoring.js";
|
|
3
3
|
import { decodeRoomFrame as i } from "./wire.js";
|
|
4
4
|
import { Result as a } from "effect";
|
|
5
|
-
|
|
5
|
+
// src/sidecarAdmission.ts
|
|
6
6
|
var o = (o, s) => {
|
|
7
7
|
let c = [
|
|
8
8
|
"verificationTimeoutMs",
|
|
@@ -99,5 +99,4 @@ var o = (o, s) => {
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
//#endregion
|
|
103
102
|
export { o as roomSidecarAdmission };
|
package/dist/sidecarConfig.js
CHANGED
|
@@ -2,7 +2,7 @@ import { RoomAuthoringError as e } from "./errors.js";
|
|
|
2
2
|
import { RoomSidecarWire as t } from "./sidecarWire.js";
|
|
3
3
|
import { isAbsolute as n, resolve as r } from "node:path";
|
|
4
4
|
import { isIP as i } from "node:net";
|
|
5
|
-
|
|
5
|
+
// src/sidecarConfig.ts
|
|
6
6
|
function a() {
|
|
7
7
|
throw new e({
|
|
8
8
|
room: "sidecar-config",
|
|
@@ -84,7 +84,7 @@ var o = (e, t, n = []) => {
|
|
|
84
84
|
"ackTimeoutMs",
|
|
85
85
|
"clock",
|
|
86
86
|
"bindConnection"
|
|
87
|
-
]), new t(n.wire),
|
|
87
|
+
]), new t(n.wire), n.bootId instanceof Uint8Array && n.bootId.byteLength === 16 || a();
|
|
88
88
|
let u = s(n.maxConnections, 65536), d = s(n.maxRetiredConnections, 1048576), f = s(n.maxPendingWrites, 4096);
|
|
89
89
|
(d < u || n.wire.maxQueuedBytes < n.wire.maxFrameBytes + 4 || n.wire.maxDatagramBytes > n.wire.maxFrameBytes || i.maxTotalPendingBytes < Math.max(n.wire.maxFrameBytes + 27, n.wire.maxReasonBytes + 24, 30) + 4 || i.writeTimeoutMs > s(n.ackTimeoutMs, 3e5)) && a(), c(r), new TextEncoder().encode(r).byteLength > 100 && a();
|
|
90
90
|
let p = {
|
|
@@ -112,5 +112,4 @@ var o = (e, t, n = []) => {
|
|
|
112
112
|
}, m = new TextEncoder().encode(JSON.stringify(p) + "\n");
|
|
113
113
|
return m.byteLength > 65536 && a(), m;
|
|
114
114
|
};
|
|
115
|
-
//#endregion
|
|
116
115
|
export { l as captureRoomSidecarNativeConfig, u as encodeRoomSidecarNativeConfig };
|
|
@@ -3,7 +3,7 @@ import { encodeRoomSidecarNativeConfig as n } from "./sidecarConfig.js";
|
|
|
3
3
|
import { dirname as r, join as i } from "node:path";
|
|
4
4
|
import { constants as a } from "node:fs";
|
|
5
5
|
import { lstat as o, open as s, realpath as c } from "node:fs/promises";
|
|
6
|
-
|
|
6
|
+
// src/sidecarConfigPublication.ts
|
|
7
7
|
var l = class extends Error {
|
|
8
8
|
cleanup;
|
|
9
9
|
constructor(e) {
|
|
@@ -60,5 +60,4 @@ var l = class extends Error {
|
|
|
60
60
|
throw new e({ detail: "Sidecar private configuration publication failed" });
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
63
|
export { l as RoomSidecarConfigPublicationFailure, u as publishRoomSidecarNativeConfig };
|
|
@@ -6,7 +6,7 @@ import { RoomHostListenerBindFailure as o } from "./hostLane.js";
|
|
|
6
6
|
import { inheritRoomHostListener as s } from "./hostListenerBinding.js";
|
|
7
7
|
import { roomSidecarAdmission as c } from "./sidecarAdmission.js";
|
|
8
8
|
import { RoomSidecarRuntimeAcquisitionFailure as l, openRoomSidecarRuntime as u } from "./sidecarRuntime.js";
|
|
9
|
-
|
|
9
|
+
// src/sidecarHostListener.ts
|
|
10
10
|
var d = (e, n) => {
|
|
11
11
|
if (!e || Object.getPrototypeOf(e) !== Object.prototype || Reflect.ownKeys(e).length !== n.length || n.some((t) => {
|
|
12
12
|
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
@@ -204,5 +204,4 @@ var d = (e, n) => {
|
|
|
204
204
|
} });
|
|
205
205
|
return s(C, f.fallback), C;
|
|
206
206
|
};
|
|
207
|
-
//#endregion
|
|
208
207
|
export { f as sidecarRoomHostListener };
|
package/dist/sidecarIpc.js
CHANGED
|
@@ -5,7 +5,7 @@ import { captureRoomSidecarProcessExit as a } from "./sidecarProcessPort.js";
|
|
|
5
5
|
import { isAbsolute as o, join as s, resolve as c } from "node:path";
|
|
6
6
|
import { createServer as l } from "node:net";
|
|
7
7
|
import { chmod as u, lstat as d, mkdir as f, mkdtemp as p, realpath as m, rm as h } from "node:fs/promises";
|
|
8
|
-
|
|
8
|
+
// src/sidecarIpc.ts
|
|
9
9
|
var g = class extends Error {
|
|
10
10
|
cleanup;
|
|
11
11
|
constructor(e) {
|
|
@@ -201,5 +201,4 @@ var g = class extends Error {
|
|
|
201
201
|
throw new e({ detail: "Sidecar IPC acquisition failed" });
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
//#endregion
|
|
205
204
|
export { g as RoomSidecarIpcAcquisitionError, _ as openRoomSidecarIpc };
|
package/dist/sidecarPeer.js
CHANGED
|
@@ -4,7 +4,7 @@ import { RoomLatestDatagram as i } from "./streamFraming.js";
|
|
|
4
4
|
import { RoomSidecarWire as a } from "./sidecarWire.js";
|
|
5
5
|
import { RoomSidecarWrites as o } from "./sidecarWrites.js";
|
|
6
6
|
import { Result as s } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/sidecarPeer.ts
|
|
8
8
|
var c = () => {
|
|
9
9
|
let e, t, n = new Promise((n, r) => {
|
|
10
10
|
e = n, t = r;
|
|
@@ -306,5 +306,4 @@ var c = () => {
|
|
|
306
306
|
}), e;
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
|
-
//#endregion
|
|
310
309
|
export { l as RoomSidecarPeer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/sidecarProcessPort.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
let n = () => {
|
|
5
5
|
throw new e({ detail: "Sidecar native exit observation is missing or malformed" });
|
|
@@ -24,5 +24,4 @@ var t = (t) => {
|
|
|
24
24
|
signal: s
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { t as captureRoomSidecarProcessExit };
|
package/dist/sidecarRuntime.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RoomSidecarConfigPublicationFailure as a, publishRoomSidecarNativeConfi
|
|
|
5
5
|
import { captureRoomSidecarProcessExit as s } from "./sidecarProcessPort.js";
|
|
6
6
|
import { RoomSidecarIpcAcquisitionError as c, openRoomSidecarIpc as l } from "./sidecarIpc.js";
|
|
7
7
|
import { join as u } from "node:path";
|
|
8
|
-
|
|
8
|
+
// src/sidecarRuntime.ts
|
|
9
9
|
var d = class extends Error {
|
|
10
10
|
cleanup;
|
|
11
11
|
constructor(e) {
|
|
@@ -164,5 +164,4 @@ var d = class extends Error {
|
|
|
164
164
|
throw R;
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
|
-
//#endregion
|
|
168
167
|
export { d as RoomSidecarRuntimeAcquisitionFailure, m as openRoomSidecarRuntime };
|
package/dist/sidecarSelection.js
CHANGED
|
@@ -3,7 +3,7 @@ import { RoomStreamFrameDecoder as t } from "./streamFraming.js";
|
|
|
3
3
|
import { RoomSidecarWire as n } from "./sidecarWire.js";
|
|
4
4
|
import { captureRoomSidecarNativeConfig as r } from "./sidecarConfig.js";
|
|
5
5
|
import { isAbsolute as i, join as a, resolve as o } from "node:path";
|
|
6
|
-
|
|
6
|
+
// src/sidecarSelection.ts
|
|
7
7
|
function s() {
|
|
8
8
|
throw new e({
|
|
9
9
|
room: "sidecar-selection",
|
|
@@ -138,5 +138,4 @@ var c = (e, t) => {
|
|
|
138
138
|
maintenance: { cadenceMs: 25 }
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
//#endregion
|
|
142
141
|
export { d as captureRoomSidecarHostSelection, f as developmentRoomSidecarSelection };
|
package/dist/sidecarWire.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BudgetExceeded as e, ProtocolError as t, RoomAuthoringError as n } from "./errors.js";
|
|
2
2
|
import { Result as r } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/sidecarWire.ts
|
|
4
4
|
function i() {
|
|
5
5
|
throw new t({ detail: "Malformed Room sidecar envelope" });
|
|
6
6
|
}
|
|
@@ -26,7 +26,7 @@ var a = (e) => !(e instanceof Uint8Array) || e.byteLength !== 16 ? i() : e, o =
|
|
|
26
26
|
encode(n) {
|
|
27
27
|
try {
|
|
28
28
|
let t = Object.getOwnPropertyDescriptor(n, "kind");
|
|
29
|
-
|
|
29
|
+
t && "value" in t || i();
|
|
30
30
|
let c, l, u;
|
|
31
31
|
switch (t.value) {
|
|
32
32
|
case "Ready":
|
|
@@ -46,7 +46,7 @@ var a = (e) => !(e instanceof Uint8Array) || e.byteLength !== 16 ? i() : e, o =
|
|
|
46
46
|
"lane",
|
|
47
47
|
"writeId",
|
|
48
48
|
"payload"
|
|
49
|
-
]), c = 3,
|
|
49
|
+
]), c = 3, n.kind === "Frame" && n.payload instanceof Uint8Array && n.payload.byteLength || i(), n.payload.byteLength > this.limits.maxFrameBytes) throw new e({
|
|
50
50
|
budget: "sidecarFrameBytes",
|
|
51
51
|
limit: this.limits.maxFrameBytes
|
|
52
52
|
});
|
|
@@ -69,7 +69,7 @@ var a = (e) => !(e instanceof Uint8Array) || e.byteLength !== 16 ? i() : e, o =
|
|
|
69
69
|
"connectionId",
|
|
70
70
|
"code",
|
|
71
71
|
"reason"
|
|
72
|
-
]), c = 5,
|
|
72
|
+
]), c = 5, n.kind === "Close" && typeof n.reason == "string" && n.reason.isWellFormed() || i(), u = new TextEncoder().encode(n.reason), u.byteLength > this.limits.maxReasonBytes) throw new e({
|
|
73
73
|
budget: "sidecarReasonBytes",
|
|
74
74
|
limit: this.limits.maxReasonBytes
|
|
75
75
|
});
|
|
@@ -174,5 +174,4 @@ var a = (e) => !(e instanceof Uint8Array) || e.byteLength !== 16 ? i() : e, o =
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
//#endregion
|
|
178
177
|
export { c as RoomSidecarWire };
|
package/dist/sidecarWrites.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BudgetExceeded as e, ProtocolError as t, RoomAuthoringError as n } from "./errors.js";
|
|
2
2
|
import { captureRoomTransportClock as r } from "./transportAuthoring.js";
|
|
3
|
-
|
|
3
|
+
// src/sidecarWrites.ts
|
|
4
4
|
var i = class {
|
|
5
5
|
id;
|
|
6
6
|
options;
|
|
@@ -159,5 +159,4 @@ var i = class {
|
|
|
159
159
|
}), e;
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
-
//#endregion
|
|
163
162
|
export { i as RoomSidecarWrites };
|
package/dist/simulation.js
CHANGED
|
@@ -10,7 +10,7 @@ import { SimulationSnapshotCodec as x, createSimulationSnapshotCodec as S } from
|
|
|
10
10
|
import { verifySimulationReplay as C } from "./simulationReplay.js";
|
|
11
11
|
import { SimulationRecoveryCodec as w, createSimulationRecoveryCodec as T } from "./simulationRecoveryWire.js";
|
|
12
12
|
import { nonAuthoritative as E } from "./room.js";
|
|
13
|
-
|
|
13
|
+
// src/simulation.ts
|
|
14
14
|
var D = /* @__PURE__ */ new WeakSet(), O = (e) => {
|
|
15
15
|
if (!e || typeof e != "object" || !D.has(e)) throw new t({
|
|
16
16
|
room: "simulation",
|
|
@@ -278,5 +278,4 @@ var A = (e) => {
|
|
|
278
278
|
})), this.#o = o, this.#s = s, this.#a = n, this.#i = r, a;
|
|
279
279
|
}
|
|
280
280
|
}, L = (e, t, n, r = {}) => new I(e, t, n, r);
|
|
281
|
-
//#endregion
|
|
282
281
|
export { p as SimulationInputHistoryCodec, d as SimulationOptionsCodec, w as SimulationRecoveryCodec, I as SimulationRunner, x as SimulationSnapshotCodec, O as assertCapturedSimulation, P as captureSimulationInputs, N as captureSimulationSnapshot, h as compareSimulationConformanceTraces, g as createSimulationConformanceCase, m as createSimulationInputHistoryCodec, f as createSimulationOptionsCodec, T as createSimulationRecoveryCodec, L as createSimulationRunner, S as createSimulationSnapshotCodec, c as createSimulationState, _ as decodeSimulationConformanceCase, A as defineSimulation, v as encodeSimulationConformanceCase, E as nonAuthoritative, M as prepareSimulationSnapshot, y as runSimulationConformanceTrace, l as schemaSimulationHash, b as simulationConformance, C as verifySimulationReplay };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/simulationAuthoring.ts
|
|
3
3
|
function t(t) {
|
|
4
4
|
throw new e({
|
|
5
5
|
room: "simulation",
|
|
@@ -25,5 +25,4 @@ var n = (e, n, r) => {
|
|
|
25
25
|
}
|
|
26
26
|
return e;
|
|
27
27
|
}, i = (e) => e instanceof Promise ? (Promise.prototype.then.call(e, void 0, () => void 0), t("Simulation init/step/hash/prediction callbacks must be synchronous")) : e;
|
|
28
|
-
//#endregion
|
|
29
28
|
export { r as freezeSimulationValue, n as simulationOwnData, i as simulationSyncValue };
|
package/dist/simulationBytes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BudgetExceeded as e, ProtocolError as t } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/simulationBytes.ts
|
|
3
3
|
function n(e) {
|
|
4
4
|
throw new t({ detail: e });
|
|
5
5
|
}
|
|
@@ -23,5 +23,4 @@ var r = Object.getPrototypeOf(Uint8Array.prototype), i = Object.getOwnPropertyDe
|
|
|
23
23
|
return n("Simulation byte storage changed during capture");
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { s as captureSimulationBytes };
|
|
@@ -9,7 +9,7 @@ import { createSimulationInputHistoryCodec as m } from "./simulationInputHistory
|
|
|
9
9
|
import { assertCapturedSimulation as h, createSimulationRunner as g } from "./simulation.js";
|
|
10
10
|
import { RoomInputCodec as _, RoomStateCodec as v } from "./stateCodec.js";
|
|
11
11
|
import { Result as y } from "effect";
|
|
12
|
-
|
|
12
|
+
// src/simulationConformance.ts
|
|
13
13
|
function b(e) {
|
|
14
14
|
throw new n({
|
|
15
15
|
room: "simulation-conformance",
|
|
@@ -301,5 +301,4 @@ var x = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), S = (e
|
|
|
301
301
|
comparisons: a.observations.length
|
|
302
302
|
});
|
|
303
303
|
};
|
|
304
|
-
//#endregion
|
|
305
304
|
export { L as compareSimulationConformanceTraces, w as createSimulationConformanceCase, k as decodeSimulationConformanceCase, O as encodeSimulationConformanceCase, P as runSimulationConformanceTrace, F as simulationConformance };
|
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { unsignedWord as t } from "./fixedWords.js";
|
|
3
3
|
import { simulationOwnData as n } from "./simulationAuthoring.js";
|
|
4
4
|
import { captureSimulationInputs as r } from "./simulation.js";
|
|
5
|
-
|
|
5
|
+
// src/simulationInputHistoryCapture.ts
|
|
6
6
|
function i(t) {
|
|
7
7
|
throw new e({ detail: t });
|
|
8
8
|
}
|
|
@@ -31,5 +31,4 @@ var a = (e, a, o, s, c, l = () => void 0, u = /* @__PURE__ */ new Map()) => {
|
|
|
31
31
|
}
|
|
32
32
|
return Object.freeze(f);
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { a as captureSimulationInputHistory };
|
|
@@ -6,7 +6,7 @@ import { captureSimulationInputHistory as o } from "./simulationInputHistoryCapt
|
|
|
6
6
|
import { assertCapturedSimulation as s } from "./simulation.js";
|
|
7
7
|
import { RoomInputCodec as c } from "./stateCodec.js";
|
|
8
8
|
import { Result as l } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/simulationInputHistoryWire.ts
|
|
10
10
|
var u = Object.freeze([
|
|
11
11
|
76,
|
|
12
12
|
83,
|
|
@@ -189,5 +189,4 @@ var m = class {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
}, h = (e, t = {}) => new m(e, t);
|
|
192
|
-
//#endregion
|
|
193
192
|
export { m as SimulationInputHistoryCodec, h as createSimulationInputHistoryCodec };
|
|
@@ -4,7 +4,7 @@ import { captureSimulationBytes as r } from "./simulationBytes.js";
|
|
|
4
4
|
import { assertCapturedSimulation as i } from "./simulation.js";
|
|
5
5
|
import { RoomInputCodec as a } from "./stateCodec.js";
|
|
6
6
|
import { Result as o } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/simulationOptionsWire.ts
|
|
8
8
|
var s = 12, c = (e, t) => {
|
|
9
9
|
if (Object.is(e, t)) return !0;
|
|
10
10
|
if (!e || !t || typeof e != "object" || typeof t != "object" || Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
@@ -74,5 +74,4 @@ var s = 12, c = (e, t) => {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
}, u = (e) => new l(e);
|
|
77
|
-
//#endregion
|
|
78
77
|
export { l as SimulationOptionsCodec, u as createSimulationOptionsCodec };
|
|
@@ -6,7 +6,7 @@ import { createSimulationSnapshotCodec as o } from "./simulationSnapshotWire.js"
|
|
|
6
6
|
import { assertCapturedSimulation as s, captureSimulationInputs as c } from "./simulation.js";
|
|
7
7
|
import { RoomInputCodec as l } from "./stateCodec.js";
|
|
8
8
|
import { Result as u } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/simulationRecoveryWire.ts
|
|
10
10
|
var d = 16, f = Object.freeze([
|
|
11
11
|
76,
|
|
12
12
|
83,
|
|
@@ -130,5 +130,4 @@ var m = (e, t, n, r, i) => !Number.isInteger(i) || i < 1 || i > 4096 ? p("Recove
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}, g = (e, t = {}) => new h(e, t);
|
|
133
|
-
//#endregion
|
|
134
133
|
export { h as SimulationRecoveryCodec, m as captureSimulationRecoveryContinuation, g as createSimulationRecoveryCodec };
|
package/dist/simulationReplay.js
CHANGED
|
@@ -4,7 +4,7 @@ import { freezeSimulationValue as i, simulationOwnData as a } from "./simulation
|
|
|
4
4
|
import { assertCapturedSimulation as o, captureSimulationInputs as s, captureSimulationSnapshot as c, createSimulationRunner as l } from "./simulation.js";
|
|
5
5
|
import { RoomInputCodec as u } from "./stateCodec.js";
|
|
6
6
|
import { Result as d } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/simulationReplay.ts
|
|
8
8
|
function f(e) {
|
|
9
9
|
throw new t({
|
|
10
10
|
room: "simulation",
|
|
@@ -123,5 +123,4 @@ var p = (t, p, m = {}) => {
|
|
|
123
123
|
hash: O.hash
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
|
-
//#endregion
|
|
127
126
|
export { p as verifySimulationReplay };
|
|
@@ -4,7 +4,7 @@ import { captureSimulationBytes as i } from "./simulationBytes.js";
|
|
|
4
4
|
import { assertCapturedSimulation as a, captureSimulationSnapshot as o } from "./simulation.js";
|
|
5
5
|
import { RoomInputCodec as s, RoomStateCodec as c } from "./stateCodec.js";
|
|
6
6
|
import { Result as l } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/simulationSnapshotWire.ts
|
|
8
8
|
var u = 44, d = Object.freeze([
|
|
9
9
|
76,
|
|
10
10
|
83,
|
|
@@ -108,5 +108,4 @@ var p = class {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
}, m = (e, t = {}) => new p(e, t);
|
|
111
|
-
//#endregion
|
|
112
111
|
export { p as SimulationSnapshotCodec, m as createSimulationSnapshotCodec };
|