@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
|
@@ -4,7 +4,7 @@ import { makeWorldGhostNeighborhood as n } from "./worldGhostNeighborhood.js";
|
|
|
4
4
|
import { captureWorldCatalog as r, worldCellAt as i } from "./world.js";
|
|
5
5
|
import { dataStoreWorldCells as a } from "./worldCells.js";
|
|
6
6
|
import { Effect as o } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/worldGhostNeighbors.ts
|
|
8
8
|
var s = (s, c) => {
|
|
9
9
|
let l = () => {
|
|
10
10
|
throw new e({ detail: "Ghost neighbor observation lost declared source ownership" });
|
|
@@ -82,5 +82,4 @@ var s = (s, c) => {
|
|
|
82
82
|
});
|
|
83
83
|
}).pipe(o.catchCause(() => o.fail(new e({ detail: "Ghost neighbor observation remains incomplete" })))) });
|
|
84
84
|
};
|
|
85
|
-
//#endregion
|
|
86
85
|
export { s as dataStoreWorldGhostNeighbors };
|
|
@@ -3,7 +3,7 @@ import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
|
3
3
|
import { captureWorldData as n } from "./worldData.js";
|
|
4
4
|
import { captureRoomTransportClock as r, captureRoomTransportDataMethod as i } from "./transportAuthoring.js";
|
|
5
5
|
import { RoomTransportCleanupFailure as a } from "./transportCleanup.js";
|
|
6
|
-
|
|
6
|
+
// src/worldGhostOutbound.ts
|
|
7
7
|
var o = (e) => {
|
|
8
8
|
let a = [
|
|
9
9
|
"carrier",
|
|
@@ -106,5 +106,4 @@ var o = (e) => {
|
|
|
106
106
|
status: () => u
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
//#endregion
|
|
110
109
|
export { o as captureRoomWorldGhostOutboundOptions, s as ownWorldGhostOutbound };
|
|
@@ -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 { captureWorldData as n } from "./worldData.js";
|
|
4
|
-
|
|
4
|
+
// src/worldGhostPublisher.ts
|
|
5
5
|
var r = () => new e({ detail: "Bounded World ghost publication remains incomplete" }), i = (e) => {
|
|
6
6
|
let i = [
|
|
7
7
|
"now",
|
|
@@ -212,5 +212,4 @@ var r = () => new e({ detail: "Bounded World ghost publication remains incomplet
|
|
|
212
212
|
})
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
-
//#endregion
|
|
216
215
|
export { i as makeWorldGhostPublisher };
|
|
@@ -4,7 +4,7 @@ import { worldActorCanonicalJson as n } from "./worldActorReceipts.js";
|
|
|
4
4
|
import { captureWorldActorTransferSnapshot as r } from "./worldActorTransferSnapshot.js";
|
|
5
5
|
import { Effect as i } from "effect";
|
|
6
6
|
import { createHash as a } from "node:crypto";
|
|
7
|
-
|
|
7
|
+
// src/worldGhostReceiver.ts
|
|
8
8
|
var o = () => new e({ detail: "Ghost receiver operation remains incomplete" }), s = (e, t) => {
|
|
9
9
|
if (!e || Object.getPrototypeOf(e) !== Object.prototype || Reflect.ownKeys(e).length !== t.length || t.some((t) => {
|
|
10
10
|
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
@@ -209,5 +209,4 @@ var o = () => new e({ detail: "Ghost receiver operation remains incomplete" }),
|
|
|
209
209
|
})
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
|
-
//#endregion
|
|
213
212
|
export { u as captureWorldGhostWithdrawal, d as makeWorldGhostReceiver };
|
package/dist/worldGhostSender.js
CHANGED
|
@@ -5,7 +5,7 @@ import { worldActorCanonicalJson as r } from "./worldActorReceipts.js";
|
|
|
5
5
|
import { captureWorldGhostWithdrawal as i } from "./worldGhostReceiver.js";
|
|
6
6
|
import { makeWorldGhostWireCodec as a } from "./worldGhostWire.js";
|
|
7
7
|
import { createHash as o } from "node:crypto";
|
|
8
|
-
|
|
8
|
+
// src/worldGhostSender.ts
|
|
9
9
|
var s = () => new e({ detail: "World ghost publication is unconfirmed; retry the exact retained frame" }), c = (e, c) => {
|
|
10
10
|
let l = [
|
|
11
11
|
"state",
|
|
@@ -142,5 +142,4 @@ var s = () => new e({ detail: "World ghost publication is unconfirmed; retry the
|
|
|
142
142
|
})
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
//#endregion
|
|
146
145
|
export { c as bindWorldGhostSender };
|
package/dist/worldGhostSocket.js
CHANGED
|
@@ -4,7 +4,7 @@ import { captureRoomTransportDataMethod as n } from "./transportAuthoring.js";
|
|
|
4
4
|
import { RoomTransportCleanupFailure as r } from "./transportCleanup.js";
|
|
5
5
|
import { openRoomSocketTransport as i } from "./socketTransport.js";
|
|
6
6
|
import { bindWorldGhostSender as a } from "./worldGhostSender.js";
|
|
7
|
-
|
|
7
|
+
// src/worldGhostSocket.ts
|
|
8
8
|
var o = () => new e({ detail: "Direct World ghost socket handshake remains incomplete" }), s = async (e, s, c) => {
|
|
9
9
|
let l = [
|
|
10
10
|
"carrier",
|
|
@@ -74,5 +74,4 @@ var o = () => new e({ detail: "Direct World ghost socket handshake remains incom
|
|
|
74
74
|
throw e;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
//#endregion
|
|
78
77
|
export { s as openWorldGhostSocket };
|
package/dist/worldGhostWire.js
CHANGED
|
@@ -3,7 +3,7 @@ import { captureWorldData as t } from "./worldData.js";
|
|
|
3
3
|
import { worldActorCanonicalJson as n } from "./worldActorReceipts.js";
|
|
4
4
|
import { roomWorldEntityCodec as r } from "./worldEntityCodec.js";
|
|
5
5
|
import { Result as i, Schema as a } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/worldGhostWire.ts
|
|
7
7
|
var o = "voltro-world-ghost/1", s = a.Struct({
|
|
8
8
|
tenantId: a.String,
|
|
9
9
|
worldId: a.String,
|
|
@@ -111,7 +111,7 @@ var u = (e, t) => {
|
|
|
111
111
|
"entity"
|
|
112
112
|
]), (r.schemaHash !== h.schemaHash || !Array.isArray(r.bytes) || !r.bytes.length || r.bytes.length > f || !r.bytes.every((e) => Number.isInteger(e) && e >= 0 && e <= 255)) && l();
|
|
113
113
|
let i = g(h.decodeFull(Uint8Array.from(r.bytes)));
|
|
114
|
-
|
|
114
|
+
i && i.id === n.capture.entityId || l();
|
|
115
115
|
let s = g(h.full(a.decodeUnknownSync(h.schema)(r.entity)));
|
|
116
116
|
return (s.length !== r.bytes.length || s.some((e, t) => e !== r.bytes[t])) && l(), {
|
|
117
117
|
frame: n,
|
|
@@ -149,7 +149,7 @@ var u = (e, t) => {
|
|
|
149
149
|
let { bytes: r, length: i, metadata: a } = y(e), o = a.baseSequence === 0 ? void 0 : n === void 0 ? l() : v(n);
|
|
150
150
|
o && o.frame.sequence !== a.baseSequence && l();
|
|
151
151
|
let s = r.subarray(8 + i), c = g(o ? h.decodeDelta(s, o.entity) : h.decodeFull(s));
|
|
152
|
-
|
|
152
|
+
c && c.id === a.entityId || l();
|
|
153
153
|
let u = g(h.full(c)), f = t({
|
|
154
154
|
sequence: a.sequence,
|
|
155
155
|
capture: {
|
|
@@ -168,5 +168,4 @@ var u = (e, t) => {
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
-
//#endregion
|
|
172
171
|
export { f as makeWorldGhostWireCodec, o as worldGhostWireLayout };
|
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { captureWorldData as t } from "./worldData.js";
|
|
3
3
|
import { worldGroupTransitionRequest as n } from "./worldCommands.js";
|
|
4
4
|
import { createHash as r } from "node:crypto";
|
|
5
|
-
|
|
5
|
+
// src/worldGroupCommand.ts
|
|
6
6
|
function i() {
|
|
7
7
|
throw new e({ detail: "World group command receipt is invalid" });
|
|
8
8
|
}
|
|
@@ -45,5 +45,4 @@ var a = (e, t) => {
|
|
|
45
45
|
waitUntil: o
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { s as captureWorldGroupCommand, u as captureWorldGroupCommandReceipt, c as worldGroupCommandKey, l as worldGroupCommandRequestId };
|
|
@@ -2,7 +2,7 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { captureWorldGroupCommand as t, captureWorldGroupCommandReceipt as n } from "./worldGroupCommand.js";
|
|
3
3
|
import { worldTransitionGroupFromRecords as r } from "./worldTransitionGroup.js";
|
|
4
4
|
import { Effect as i, Result as a } from "effect";
|
|
5
|
-
|
|
5
|
+
// src/worldGroupDeadline.ts
|
|
6
6
|
function o() {
|
|
7
7
|
throw new e({ detail: "World group deadline authority is incomplete or changed" });
|
|
8
8
|
}
|
|
@@ -111,5 +111,4 @@ var s = (e, t) => {
|
|
|
111
111
|
}));
|
|
112
112
|
} });
|
|
113
113
|
};
|
|
114
|
-
//#endregion
|
|
115
114
|
export { l as makeWorldGroupDeadline };
|
|
@@ -3,7 +3,7 @@ import { captureWorldData as t } from "./worldData.js";
|
|
|
3
3
|
import { captureWorldGroupCommand as n, worldGroupCommandRequestId as r } from "./worldGroupCommand.js";
|
|
4
4
|
import { worldTransitionGroupFromRecords as i } from "./worldTransitionGroup.js";
|
|
5
5
|
import { Effect as a } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/worldGroupPreparation.ts
|
|
7
7
|
function o() {
|
|
8
8
|
throw new e({ detail: "World group preparation authority is incomplete or changed" });
|
|
9
9
|
}
|
|
@@ -111,5 +111,4 @@ var s = (e, t) => {
|
|
|
111
111
|
status: (e, t) => w(e, t, (e) => u(() => y("status", e)).pipe(a.flatMap(() => C(e))))
|
|
112
112
|
});
|
|
113
113
|
};
|
|
114
|
-
//#endregion
|
|
115
114
|
export { f as makeWorldGroupPreparation };
|
|
@@ -3,15 +3,15 @@ import { captureRoomSessionAdmissionEvidence as t } from "./sessionAdmission.js"
|
|
|
3
3
|
import { worldTransitionGroupFromRecords as n } from "./worldTransitionGroup.js";
|
|
4
4
|
import { Subject as r } from "@voltro/protocol";
|
|
5
5
|
import { Effect as i, Schema as a } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/worldGroupReadyControl.ts
|
|
7
7
|
function o() {
|
|
8
8
|
throw new e({ detail: "World group ready control refused admission" });
|
|
9
9
|
}
|
|
10
10
|
var s = (e, t) => {
|
|
11
|
-
|
|
11
|
+
e && typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype || o();
|
|
12
12
|
for (let n of Reflect.ownKeys(e)) {
|
|
13
13
|
let r = Object.getOwnPropertyDescriptor(e, n);
|
|
14
|
-
|
|
14
|
+
typeof n == "string" && t.includes(n) && r?.enumerable && "value" in r || o();
|
|
15
15
|
}
|
|
16
16
|
}, c = (e, t = 191) => typeof e == "string" && e.length <= t && /^[A-Za-z0-9][A-Za-z0-9_.:-]*$/.test(e) ? e : o(), l = (e, t) => {
|
|
17
17
|
s(e, [
|
|
@@ -27,7 +27,7 @@ var s = (e, t) => {
|
|
|
27
27
|
return n.tenantId === t ? n : o();
|
|
28
28
|
}, u = (e, t) => {
|
|
29
29
|
let n = e && typeof e == "object" ? Object.getOwnPropertyDescriptor(e, t) : void 0;
|
|
30
|
-
return
|
|
30
|
+
return n && "value" in n && typeof n.value == "function" || o(), n.value.bind(e);
|
|
31
31
|
}, d = (t) => i.suspend(() => {
|
|
32
32
|
let n = t();
|
|
33
33
|
return i.isEffect(n) ? n : i.fail(new e({ detail: "World group ready control requires actual Effects" }));
|
|
@@ -48,7 +48,7 @@ var s = (e, t) => {
|
|
|
48
48
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = [];
|
|
49
49
|
for (let i = 0; i < e.length; i++) {
|
|
50
50
|
let a = Object.getOwnPropertyDescriptor(e, i);
|
|
51
|
-
|
|
51
|
+
a && "value" in a || o();
|
|
52
52
|
let u = a.value;
|
|
53
53
|
s(u, ["origin", "expectedSubject"]), s(u.expectedSubject, ["id", "kind"]);
|
|
54
54
|
let d = l(u.origin, m), f = u.expectedSubject;
|
|
@@ -77,11 +77,11 @@ var s = (e, t) => {
|
|
|
77
77
|
return d(() => i.gen(function* () {
|
|
78
78
|
yield* d(() => x(h, p));
|
|
79
79
|
let e = yield* T(p);
|
|
80
|
-
|
|
80
|
+
e.group?.requiresReadiness && e.subject?.id === g.id && e.subject.kind === g.kind && [
|
|
81
81
|
"switching",
|
|
82
82
|
"committed",
|
|
83
83
|
"settled"
|
|
84
|
-
].includes(e.phase)
|
|
84
|
+
].includes(e.phase) || o();
|
|
85
85
|
let r = w(yield* d(() => S(e, h)));
|
|
86
86
|
r.filter((e) => f(e.origin, p) && e.expectedSubject?.id === g.id && e.expectedSubject.kind === g.kind).length !== 1 && o();
|
|
87
87
|
let a = () => d(() => i.gen(function* () {
|
|
@@ -98,7 +98,7 @@ var s = (e, t) => {
|
|
|
98
98
|
}, c = (t) => {
|
|
99
99
|
if (!t.every((e) => (e.phase === "committed" || e.phase === "settled") && e.result !== null)) return null;
|
|
100
100
|
let n = t.find((e) => f(e.origin, p));
|
|
101
|
-
return
|
|
101
|
+
return n && n.id === e.id && n.subject?.id === g.id && n.subject.kind === g.kind && n.group?.key === e.group.key && n.group?.digest === e.group.digest || o(), n;
|
|
102
102
|
}, l = (e) => e.pipe(i.catchCause((e) => a().pipe(i.flatMap((t) => {
|
|
103
103
|
let n = c(t);
|
|
104
104
|
return n ? i.succeed(n) : i.failCause(e);
|
|
@@ -124,5 +124,4 @@ var s = (e, t) => {
|
|
|
124
124
|
}));
|
|
125
125
|
} });
|
|
126
126
|
};
|
|
127
|
-
//#endregion
|
|
128
127
|
export { p as makeWorldGroupReadyControl };
|
|
@@ -3,15 +3,15 @@ import { captureWorldData as t } from "./worldData.js";
|
|
|
3
3
|
import { captureWorldGroupCommandReceipt as n } from "./worldGroupCommand.js";
|
|
4
4
|
import { worldTransitionGroupFromRecords as r } from "./worldTransitionGroup.js";
|
|
5
5
|
import { Effect as i, Result as a } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/worldGroupSupervisor.ts
|
|
7
7
|
function o() {
|
|
8
8
|
throw new e({ detail: "World group supervisor requires complete bounded actual providers" });
|
|
9
9
|
}
|
|
10
10
|
var s = (e, t) => {
|
|
11
|
-
|
|
11
|
+
e && typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype && Reflect.ownKeys(e).length === t.length || o();
|
|
12
12
|
for (let n of Reflect.ownKeys(e)) {
|
|
13
13
|
let r = Object.getOwnPropertyDescriptor(e, n);
|
|
14
|
-
|
|
14
|
+
typeof n == "string" && t.includes(n) && r?.enumerable && "value" in r || o();
|
|
15
15
|
}
|
|
16
16
|
}, c = (e, t) => {
|
|
17
17
|
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
@@ -116,5 +116,4 @@ var s = (e, t) => {
|
|
|
116
116
|
S = !1;
|
|
117
117
|
}))))) });
|
|
118
118
|
};
|
|
119
|
-
//#endregion
|
|
120
119
|
export { u as makeWorldGroupSupervisor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { captureWorldData as e } from "./worldData.js";
|
|
2
|
-
|
|
2
|
+
// src/worldHandoffMetrics.ts
|
|
3
3
|
var t = Object.freeze([
|
|
4
4
|
10,
|
|
5
5
|
50,
|
|
@@ -55,5 +55,4 @@ var t = Object.freeze([
|
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
//#endregion
|
|
59
58
|
export { r as captureWorldHandoffMetrics, n as makeWorldHandoffMetrics, t as worldHandoffDurationBuckets };
|
package/dist/worldHandoffView.js
CHANGED
|
@@ -3,7 +3,7 @@ import { simulationOwnData as t } from "./simulationAuthoring.js";
|
|
|
3
3
|
import { captureWorldData as n } from "./worldData.js";
|
|
4
4
|
import { WorldClientRequestIdSchema as r } from "./worldClientSchemas.js";
|
|
5
5
|
import { Result as i, Schema as a } from "effect";
|
|
6
|
-
|
|
6
|
+
// src/worldHandoffView.ts
|
|
7
7
|
var o = () => new e({ detail: "World handoff presentation requires bounded actual delivered snapshots" }), s = (e) => {
|
|
8
8
|
let s = [
|
|
9
9
|
"maxBytes",
|
|
@@ -96,5 +96,4 @@ var o = () => new e({ detail: "World handoff presentation requires bounded actua
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
//#endregion
|
|
100
99
|
export { s as makeWorldHandoffView };
|
package/dist/worldHostSource.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/worldHostSource.ts
|
|
3
3
|
var t = (t) => {
|
|
4
4
|
let n = () => {
|
|
5
5
|
throw new e({ detail: "World Host source requires own recovery and optional transition observation capabilities" });
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
t && typeof t == "object" || n();
|
|
8
8
|
let r = Object.getOwnPropertyDescriptor(t, "handoffMetrics");
|
|
9
9
|
(r && (!("value" in r) || typeof r.value != "function") || !r && "handoffMetrics" in t) && n();
|
|
10
10
|
let i = Object.getOwnPropertyDescriptor(t, "recoverRoom");
|
|
11
|
-
|
|
11
|
+
i && "value" in i && typeof i.value == "function" || n();
|
|
12
12
|
let a = Object.getOwnPropertyDescriptor(t, "admitActorNeighbor");
|
|
13
13
|
(a && (!("value" in a) || typeof a.value != "function") || !a && "admitActorNeighbor" in t) && n();
|
|
14
14
|
let o = Object.getOwnPropertyDescriptor(t, "admitActorProjection");
|
|
@@ -20,9 +20,9 @@ var t = (t) => {
|
|
|
20
20
|
let l;
|
|
21
21
|
if (c?.value !== void 0) {
|
|
22
22
|
let e = c.value;
|
|
23
|
-
|
|
23
|
+
e && typeof e == "object" || n();
|
|
24
24
|
let t = Object.getOwnPropertyDescriptor(e, "observe");
|
|
25
|
-
|
|
25
|
+
t && "value" in t && typeof t.value == "function" || n();
|
|
26
26
|
let r = Object.getOwnPropertyDescriptor(e, "scanSourceTransitions");
|
|
27
27
|
(r && (!("value" in r) || typeof r.value != "function") || !r && "scanSourceTransitions" in e) && n();
|
|
28
28
|
let i = Object.getOwnPropertyDescriptor(e, "retainActorSnapshot");
|
|
@@ -65,5 +65,4 @@ var t = (t) => {
|
|
|
65
65
|
...l ? { transitions: l } : {}
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { t as captureRoomWorldEntitySource };
|
|
@@ -8,7 +8,7 @@ import { WORLD_CELLS_TABLE as c } from "./worldCells.js";
|
|
|
8
8
|
import { and as l, eq as u, gt as d, or as f } from "@voltro/database";
|
|
9
9
|
import { Effect as p, Result as m } from "effect";
|
|
10
10
|
import { parseReplicaSelection as h } from "@voltro/protocol/inspect";
|
|
11
|
-
|
|
11
|
+
// src/worldInspectEndpoint.ts
|
|
12
12
|
var g = (e) => {
|
|
13
13
|
if (typeof e != "string" || e.length === 0 || e.length > 191 || e.trim() !== e) throw Error("Invalid World inspection identity");
|
|
14
14
|
return e;
|
|
@@ -246,5 +246,4 @@ var g = (e) => {
|
|
|
246
246
|
})
|
|
247
247
|
};
|
|
248
248
|
};
|
|
249
|
-
//#endregion
|
|
250
249
|
export { y as roomsWorldInspectEndpoint };
|
package/dist/worldInspection.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorldTransitionPhaseSchema as e } from "./worldCommands.js";
|
|
2
2
|
import { Schema as t } from "effect";
|
|
3
|
-
|
|
3
|
+
// src/worldInspection.ts
|
|
4
4
|
var n = t.String.pipe(t.check(t.isMinLength(1)), t.check(t.isMaxLength(191)), t.check(t.makeFilter((e) => e.trim() === e))), r = t.Number.pipe(t.check(t.isInt()), t.check(t.isGreaterThanOrEqualTo(0)), t.check(t.makeFilter(Number.isSafeInteger))), i = r.pipe(t.check(t.isGreaterThan(0))), a = t.Number.pipe(t.check(t.isFinite())), o = t.Tuple([a, a]), s = t.Tuple([o, o]).pipe(t.check(t.makeFilter((e) => e[1][0] > e[0][0] && e[1][1] > e[0][1] && Number.isFinite(e[1][0] - e[0][0]) && Number.isFinite(e[1][1] - e[0][1])))), c = t.String.pipe(t.check(t.makeFilter((e) => Number.isFinite(Date.parse(e))))), l = t.Struct({
|
|
5
5
|
id: n,
|
|
6
6
|
bounds: s,
|
|
@@ -105,5 +105,4 @@ var n = t.String.pipe(t.check(t.isMinLength(1)), t.check(t.isMaxLength(191)), t.
|
|
|
105
105
|
}
|
|
106
106
|
return n.nextAfter === null || n.entries.length === 50 && n.nextAfter === n.entries.at(-1)?.id;
|
|
107
107
|
}))), h = (e) => t.decodeUnknownSync(m)(e);
|
|
108
|
-
//#endregion
|
|
109
108
|
export { m as WorldInspectionSchema, h as decodeWorldInspection };
|
|
@@ -2,7 +2,7 @@ import { WORLD_INSTANCES_TABLE as e } from "./worldInstanceState.js";
|
|
|
2
2
|
import { ProtocolError as t } from "./errors.js";
|
|
3
3
|
import { assertWorldRoomPool as n } from "./worldRoomPool.js";
|
|
4
4
|
import { and as r, eq as i } from "@voltro/database";
|
|
5
|
-
|
|
5
|
+
// src/worldInstanceAdmission.ts
|
|
6
6
|
var a = async (a, o, s, c) => {
|
|
7
7
|
let l = s.flatMap((e) => e.instances.filter((e) => e.room === o.name).map((t) => ({
|
|
8
8
|
world: e,
|
|
@@ -27,5 +27,4 @@ var a = async (a, o, s, c) => {
|
|
|
27
27
|
let m = (e) => e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : NaN, h = m(f.createdAt), g = m(f.expiresAt), _ = c();
|
|
28
28
|
if (!Number.isSafeInteger(h) || h < 0 || !Number.isSafeInteger(g) || g - h !== p.instance.ttlMs || !Number.isSafeInteger(_) || _ < h || _ >= g) return u();
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { a as assertWorldInstanceSeatAdmission };
|
|
@@ -5,7 +5,7 @@ import { captureWorldCatalog as r } from "./world.js";
|
|
|
5
5
|
import { assertWorldInstanceRecreation as i, dataStoreWorldInstances as a, worldInstanceCreationKey as o } from "./worldInstances.js";
|
|
6
6
|
import { and as s, eq as c } from "@voltro/database";
|
|
7
7
|
import { Effect as l } from "effect";
|
|
8
|
-
|
|
8
|
+
// src/worldInstanceAllocation.ts
|
|
9
9
|
function u() {
|
|
10
10
|
throw new e({ detail: "Instance allocation requires exact live Host publication" });
|
|
11
11
|
}
|
|
@@ -112,5 +112,4 @@ var d = (t) => l.suspend(() => {
|
|
|
112
112
|
}));
|
|
113
113
|
} });
|
|
114
114
|
};
|
|
115
|
-
//#endregion
|
|
116
115
|
export { p as dataStoreWorldInstanceAllocation };
|
|
@@ -4,7 +4,7 @@ import { worldTransitionRequest as n } from "./worldCommands.js";
|
|
|
4
4
|
import { captureWorldCatalog as r, worldCellAt as i } from "./world.js";
|
|
5
5
|
import { dataStoreWorldInstances as a } from "./worldInstances.js";
|
|
6
6
|
import { Effect as o } from "effect";
|
|
7
|
-
|
|
7
|
+
// src/worldInstanceDestination.ts
|
|
8
8
|
var s = (s, c) => {
|
|
9
9
|
let l = [
|
|
10
10
|
"tenantId",
|
|
@@ -60,5 +60,4 @@ var s = (s, c) => {
|
|
|
60
60
|
});
|
|
61
61
|
}).pipe(o.catchCause(() => o.fail(new e({ detail: "SQL instance destination remains unavailable" }))));
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
63
|
export { s as dataStoreWorldInstanceDestination };
|
|
@@ -11,7 +11,7 @@ import { WORLD_ENTITIES_TABLE as l } from "./worldEntities.js";
|
|
|
11
11
|
import { worldInstanceGroupKey as u } from "./worldInstances.js";
|
|
12
12
|
import { and as d, eq as f, gt as p, lte as m, neq as h } from "@voltro/database";
|
|
13
13
|
import { Effect as g } from "effect";
|
|
14
|
-
|
|
14
|
+
// src/worldInstanceExpiry.ts
|
|
15
15
|
function _() {
|
|
16
16
|
throw new t({ detail: "Instance expiry inventory requires current bounded SQL authority" });
|
|
17
17
|
}
|
|
@@ -278,5 +278,4 @@ var v = (e) => typeof e == "string" && /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,190}$/.tes
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
};
|
|
281
|
-
//#endregion
|
|
282
281
|
export { x as dataStoreWorldInstanceExpiry };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { captureWorldData as t } from "./worldData.js";
|
|
3
3
|
import { Effect as n } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/worldInstanceExpirySupervisor.ts
|
|
5
5
|
function r() {
|
|
6
6
|
throw new e({ detail: "Instance expiry supervisor requires bounded actual capabilities" });
|
|
7
7
|
}
|
|
@@ -84,5 +84,4 @@ var i = (e, t) => {
|
|
|
84
84
|
catch: () => new e({ detail: "Instance expiry supervision remains incomplete" })
|
|
85
85
|
})) });
|
|
86
86
|
};
|
|
87
|
-
//#endregion
|
|
88
87
|
export { o as makeWorldInstanceExpirySupervisor };
|
|
@@ -4,7 +4,7 @@ import { lockRoomReservationOwners as r } from "./hostClientCapacity.js";
|
|
|
4
4
|
import { assertWorldRoomPool as i } from "./worldRoomPool.js";
|
|
5
5
|
import "./worldEntities.js";
|
|
6
6
|
import { and as a, eq as o } from "@voltro/database";
|
|
7
|
-
|
|
7
|
+
// src/worldInstanceLifecycle.ts
|
|
8
8
|
var s = async (t, s, c, l, u) => {
|
|
9
9
|
let d = () => {
|
|
10
10
|
throw new n({ detail: "World instance lifecycle lost retained Room authority" });
|
|
@@ -99,5 +99,4 @@ var s = async (t, s, c, l, u) => {
|
|
|
99
99
|
u();
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
//#endregion
|
|
103
102
|
export { c as retireFailedWorldInstanceRoom, s as synchronizeWorldInstanceRoom };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { id as e, integer as t, table as n, text as r, timestamp as i } from "@voltro/database";
|
|
2
|
-
|
|
2
|
+
// src/worldInstanceState.ts
|
|
3
3
|
var a = "_voltro_world_instances", o = "_voltro_world_instance_scopes", s = "_voltro_world_instance_history", c = n(o, {
|
|
4
4
|
id: e({ prefix: "wiscope" }),
|
|
5
5
|
tenantId: r().maxLength(191),
|
|
@@ -48,5 +48,4 @@ var a = "_voltro_world_instances", o = "_voltro_world_instance_scopes", s = "_vo
|
|
|
48
48
|
u,
|
|
49
49
|
d
|
|
50
50
|
]);
|
|
51
|
-
//#endregion
|
|
52
51
|
export { a as WORLD_INSTANCES_TABLE, s as WORLD_INSTANCE_HISTORY_TABLE, o as WORLD_INSTANCE_SCOPES_TABLE, d as worldInstanceHistoryTable, c as worldInstanceScopesTable, f as worldInstanceTables, u as worldInstancesTable };
|
package/dist/worldInstances.js
CHANGED
|
@@ -8,7 +8,7 @@ import "./worldEntities.js";
|
|
|
8
8
|
import { and as l, eq as u, generateId as d, neq as f } from "@voltro/database";
|
|
9
9
|
import { Effect as p } from "effect";
|
|
10
10
|
import { createHash as m } from "node:crypto";
|
|
11
|
-
|
|
11
|
+
// src/worldInstances.ts
|
|
12
12
|
function h() {
|
|
13
13
|
throw new r({ detail: "World instance requires exact group and Room authority" });
|
|
14
14
|
}
|
|
@@ -474,5 +474,4 @@ var g = (e, t = 191) => typeof e == "string" && e.length <= t && /^[A-Za-z0-9][A
|
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
};
|
|
477
|
-
//#endregion
|
|
478
477
|
export { w as assertWorldInstanceRecreation, A as dataStoreWorldInstances, x as worldInstanceCreationKey, b as worldInstanceGroupKey };
|
package/dist/worldJoin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { captureWorldCatalog as t, worldSpawn as n } from "./world.js";
|
|
3
3
|
import { Effect as r } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/worldJoin.ts
|
|
5
5
|
var i = (t) => new e({ detail: t }), a = (a) => {
|
|
6
6
|
let { tenantId: o, entities: s, allocateCell: c, reserve: l } = a, u = t(a.worlds), d = (t, n) => t.pipe(r.mapError((t) => t instanceof e ? t : i(n)));
|
|
7
7
|
return Object.freeze({ join: (e, t) => r.gen(function* () {
|
|
@@ -52,5 +52,4 @@ var i = (t) => new e({ detail: t }), a = (a) => {
|
|
|
52
52
|
});
|
|
53
53
|
}) });
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { a as makeWorldJoin };
|
package/dist/worldLayers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomAuthoringError as e } from "./errors.js";
|
|
2
|
-
|
|
2
|
+
// src/worldLayers.ts
|
|
3
3
|
function t(t) {
|
|
4
4
|
throw new e({
|
|
5
5
|
room: "world",
|
|
@@ -9,10 +9,10 @@ function t(t) {
|
|
|
9
9
|
var n = (e, n = !1) => {
|
|
10
10
|
(!Number.isSafeInteger(e) || e < +!n) && t("Invalid World layer count");
|
|
11
11
|
}, r = (e, n) => {
|
|
12
|
-
|
|
12
|
+
typeof e == "object" && e && Object.getPrototypeOf(e) === Object.prototype || t("World layers require plain own data");
|
|
13
13
|
for (let r of Reflect.ownKeys(e)) {
|
|
14
14
|
let i = Object.getOwnPropertyDescriptor(e, r);
|
|
15
|
-
|
|
15
|
+
typeof r == "string" && n.includes(r) && i?.enumerable && "value" in i || t("Invalid World layer field");
|
|
16
16
|
}
|
|
17
17
|
}, i = (e) => {
|
|
18
18
|
r(e, [
|
|
@@ -29,7 +29,7 @@ var n = (e, n = !1) => {
|
|
|
29
29
|
let i = /* @__PURE__ */ new Set(), a = [];
|
|
30
30
|
for (let o = 0; o < e.layers.length; o++) {
|
|
31
31
|
let s = Object.getOwnPropertyDescriptor(e.layers, String(o));
|
|
32
|
-
|
|
32
|
+
s?.enumerable && "value" in s || t("World layer inventory must use own entries");
|
|
33
33
|
let c = s.value;
|
|
34
34
|
r(c, [
|
|
35
35
|
"layer",
|
|
@@ -103,11 +103,11 @@ var n = (e, n = !1) => {
|
|
|
103
103
|
"layer",
|
|
104
104
|
"wake",
|
|
105
105
|
"reason"
|
|
106
|
-
]), u.kind === "blocked") return
|
|
106
|
+
]), u.kind === "blocked") return [
|
|
107
107
|
"affinity-unavailable",
|
|
108
108
|
"capacity",
|
|
109
109
|
"layer-budget"
|
|
110
|
-
].includes(u.reason)
|
|
110
|
+
].includes(u.reason) && Reflect.ownKeys(u).length === 2 || t("Invalid World layer refusal"), Object.freeze({
|
|
111
111
|
kind: "blocked",
|
|
112
112
|
reason: u.reason
|
|
113
113
|
});
|
|
@@ -147,5 +147,4 @@ var n = (e, n = !1) => {
|
|
|
147
147
|
}
|
|
148
148
|
return Object.freeze(c);
|
|
149
149
|
};
|
|
150
|
-
//#endregion
|
|
151
150
|
export { c as defaultWorldLayerPolicy, l as resolveWorldLayerPolicy, u as worldLayerMaintenance };
|
package/dist/worldLeases.js
CHANGED
|
@@ -2,20 +2,20 @@ import { ProtocolError as e } from "./errors.js";
|
|
|
2
2
|
import { Effect as t, Option as n } from "effect";
|
|
3
3
|
import { randomUUID as r } from "node:crypto";
|
|
4
4
|
import { HotError as i } from "@voltro/kv/hot/contract";
|
|
5
|
-
|
|
5
|
+
// src/worldLeases.ts
|
|
6
6
|
var a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakSet(), s = (e) => a.get(e), c = (e) => typeof e == "object" && !!e && o.has(e);
|
|
7
7
|
function l() {
|
|
8
8
|
throw new e({ detail: "Invalid World transition lease admission" });
|
|
9
9
|
}
|
|
10
10
|
var u = (e) => typeof e == "string" && /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,190}$/.test(e) ? e : l(), d = (e) => {
|
|
11
|
-
|
|
11
|
+
e && Object.getPrototypeOf(e) === Object.prototype || l();
|
|
12
12
|
for (let t of Reflect.ownKeys(e)) {
|
|
13
13
|
let n = Object.getOwnPropertyDescriptor(e, t);
|
|
14
|
-
|
|
14
|
+
typeof t == "string" && [
|
|
15
15
|
"namespace",
|
|
16
16
|
"tenantId",
|
|
17
17
|
"ttlMs"
|
|
18
|
-
].includes(t)
|
|
18
|
+
].includes(t) && n?.enumerable && "value" in n || l();
|
|
19
19
|
}
|
|
20
20
|
let t = e.namespace, n = u(e.tenantId), r = e.ttlMs;
|
|
21
21
|
return (typeof t != "string" || !/^[A-Za-z0-9][A-Za-z0-9:_-]{0,95}$/.test(t) || !Number.isSafeInteger(r) || r <= 0) && l(), Object.freeze({
|
|
@@ -58,7 +58,7 @@ var u = (e) => typeof e == "string" && /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,190}$/.tes
|
|
|
58
58
|
verify: (r, i) => t.suspend(() => {
|
|
59
59
|
let a;
|
|
60
60
|
try {
|
|
61
|
-
a = y(r),
|
|
61
|
+
a = y(r), typeof i == "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(i) || l();
|
|
62
62
|
} catch {
|
|
63
63
|
return t.fail(new e({ detail: "Invalid World transition lease admission" }));
|
|
64
64
|
}
|
|
@@ -74,5 +74,4 @@ var u = (e) => typeof e == "string" && /^[A-Za-z0-9][A-Za-z0-9_.:-]{0,190}$/.tes
|
|
|
74
74
|
if (!t.connectionRegistry || typeof t.hotStore != "function") throw new e({ detail: "World transition leases require the app-owned registry and tenant HotStore" });
|
|
75
75
|
return f(await t.hotStore.bind(t)({ tenantId: r.tenantId }), r);
|
|
76
76
|
};
|
|
77
|
-
//#endregion
|
|
78
77
|
export { p as bindWorldTransitionLeases, c as isVerifiedWorldTransitionLease, f as makeWorldTransitionLeases, s as worldTransitionLeaseToken };
|
package/dist/worldManifest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/worldManifest.ts
|
|
2
2
|
var e = Object.freeze({
|
|
3
3
|
slots: Object.freeze({
|
|
4
4
|
onWorldChange: Object.freeze({
|
|
@@ -21,5 +21,4 @@ var e = Object.freeze({
|
|
|
21
21
|
}) }),
|
|
22
22
|
events: Object.freeze([])
|
|
23
23
|
});
|
|
24
|
-
//#endregion
|
|
25
24
|
export { e as worldSystemContractManifest };
|
package/dist/worldMovement.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProtocolError as e } from "./errors.js";
|
|
2
2
|
import { captureWorldData as t } from "./worldData.js";
|
|
3
|
-
|
|
3
|
+
// src/worldMovement.ts
|
|
4
4
|
function n() {
|
|
5
5
|
throw new e({ detail: "World movement requires finite positions in its acquired source cell" });
|
|
6
6
|
}
|
|
@@ -59,5 +59,4 @@ var r = (e) => {
|
|
|
59
59
|
constrain: u
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
|
-
//#endregion
|
|
63
62
|
export { a as makeWorldCellMovement };
|