agentscape3d-engine 0.0.0-stage → 1.0.0-beta.3
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/LICENSE +21 -0
- package/README.md +19 -2
- package/cli.mjs +53 -0
- package/dist/ArticulationVerifier-BfGxXY8V.js +337 -0
- package/dist/ArticulationVerifier-BfGxXY8V.js.map +1 -0
- package/dist/AssetCompiler-BLj09iu1.js +2424 -0
- package/dist/AssetCompiler-BLj09iu1.js.map +1 -0
- package/dist/AssetModule-DME-XaFS.js +2637 -0
- package/dist/AssetModule-DME-XaFS.js.map +1 -0
- package/dist/AssetRecipe-g8dZBhgJ.js +298 -0
- package/dist/AssetRecipe-g8dZBhgJ.js.map +1 -0
- package/dist/BrowserCodeWorker.js +53856 -0
- package/dist/BrowserCodeWorker.js.map +1 -0
- package/dist/CarryCapability-CXwHU5ay.js +104 -0
- package/dist/CarryCapability-CXwHU5ay.js.map +1 -0
- package/dist/KinematicHypothesisScreen-C3TKiuYR.js +241 -0
- package/dist/KinematicHypothesisScreen-C3TKiuYR.js.map +1 -0
- package/dist/ObjectTransform-BlQUNK7c.js +61 -0
- package/dist/ObjectTransform-BlQUNK7c.js.map +1 -0
- package/dist/RapierPhysicsBackend-B2wQe_Vl.js +3259 -0
- package/dist/RapierPhysicsBackend-B2wQe_Vl.js.map +1 -0
- package/dist/RenderingSystem-WIr1ZuGu.js +1042 -0
- package/dist/RenderingSystem-WIr1ZuGu.js.map +1 -0
- package/dist/ScenePresentation-LsYiDxbm.js +152 -0
- package/dist/ScenePresentation-LsYiDxbm.js.map +1 -0
- package/dist/SceneProject-K7HH1s8o.js +2687 -0
- package/dist/SceneProject-K7HH1s8o.js.map +1 -0
- package/dist/SceneSerializer-zOzbX4jZ.js +932 -0
- package/dist/SceneSerializer-zOzbX4jZ.js.map +1 -0
- package/dist/SimulationProfile-DSYZbBLQ.js +165 -0
- package/dist/SimulationProfile-DSYZbBLQ.js.map +1 -0
- package/dist/StylePack-DcRa_kU0.js +88 -0
- package/dist/StylePack-DcRa_kU0.js.map +1 -0
- package/dist/WorldArchive-BiFGLt--.js +451 -0
- package/dist/WorldArchive-BiFGLt--.js.map +1 -0
- package/dist/WorldCommands-Debj7V4L.js +2207 -0
- package/dist/WorldCommands-Debj7V4L.js.map +1 -0
- package/dist/WorldIO-Ch8QBfKY.js +151 -0
- package/dist/WorldIO-Ch8QBfKY.js.map +1 -0
- package/dist/admission-CVEvsrdz.js +121 -0
- package/dist/admission-CVEvsrdz.js.map +1 -0
- package/dist/blankWorld-B0MW6g7q.js +75 -0
- package/dist/blankWorld-B0MW6g7q.js.map +1 -0
- package/dist/core.d.ts +68 -0
- package/dist/core.js +209 -0
- package/dist/core.js.map +1 -0
- package/dist/disposeObject3D-DIMzy0FA.js +128 -0
- package/dist/disposeObject3D-DIMzy0FA.js.map +1 -0
- package/dist/environments-HOe3sJXH.js +567 -0
- package/dist/environments-HOe3sJXH.js.map +1 -0
- package/dist/gltfIO-BzVKLyaL.js +339 -0
- package/dist/gltfIO-BzVKLyaL.js.map +1 -0
- package/dist/grandUrbanBlock-DRndRZjF.js +515 -0
- package/dist/grandUrbanBlock-DRndRZjF.js.map +1 -0
- package/dist/index.d.ts +345 -0
- package/dist/index.js +16952 -0
- package/dist/index.js.map +1 -0
- package/dist/magicCabin-CfBZjx2Q.js +11019 -0
- package/dist/magicCabin-CfBZjx2Q.js.map +1 -0
- package/dist/manifests-D0LwbJ36.js +866 -0
- package/dist/manifests-D0LwbJ36.js.map +1 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +1 -0
- package/dist/monumentHall-awZiGtda.js +403 -0
- package/dist/monumentHall-awZiGtda.js.map +1 -0
- package/dist/node.d.ts +16 -0
- package/dist/node.js +26 -0
- package/dist/parts-DrEcfJRl.js +37 -0
- package/dist/parts-DrEcfJRl.js.map +1 -0
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/ruinedCourtyard-DuF7NmUU.js +696 -0
- package/dist/ruinedCourtyard-DuF7NmUU.js.map +1 -0
- package/dist/runtime/application/AgentTools.js +28 -0
- package/dist/runtime/application/README.md +14 -0
- package/dist/runtime/application/agent/ProgressiveAgentTools.js +92 -0
- package/dist/runtime/application/agent/StudioMcpAllowlist.js +10 -0
- package/dist/runtime/application/agent/StudioProjectTools.js +18 -0
- package/dist/runtime/application/agent/TaskEvidence.js +199 -0
- package/dist/runtime/application/buildTaskObservation.js +117 -0
- package/dist/runtime/application/code-execution/AuthoringSandboxEntry.js +50 -0
- package/dist/runtime/application/code-execution/BrowserCodeExecutor.js +35 -0
- package/dist/runtime/application/code-execution/BrowserCodeWorker.js +17 -0
- package/dist/runtime/application/code-execution/RemoteAuthoringDocument.js +82 -0
- package/dist/runtime/application/createSession.js +66 -0
- package/dist/runtime/application/createWorldAuthoringContext.js +400 -0
- package/dist/runtime/application/generation/GenerationOrchestrator.js +630 -0
- package/dist/runtime/application/generation/GenerationRuntime.js +215 -0
- package/dist/runtime/application/generation/PromptHybridWorldOrchestrator.js +289 -0
- package/dist/runtime/application/native-scene/CodeProject.js +215 -0
- package/dist/runtime/application/native-scene/CodeProjectModules.js +143 -0
- package/dist/runtime/application/native-scene/ExampleWorldCatalog.js +35 -0
- package/dist/runtime/application/native-scene/NativeArticulation.js +53 -0
- package/dist/runtime/application/native-scene/NativeEditableRegistry.js +150 -0
- package/dist/runtime/application/native-scene/NativeEnvironmentGeometry.js +85 -0
- package/dist/runtime/application/native-scene/NativeLightingInspection.js +33 -0
- package/dist/runtime/application/native-scene/NativeMaterialInspection.js +52 -0
- package/dist/runtime/application/native-scene/NativeOverlayCheckpoint.js +127 -0
- package/dist/runtime/application/native-scene/NativePhysicsGeometry.js +64 -0
- package/dist/runtime/application/native-scene/NativeRenderDiscovery.js +51 -0
- package/dist/runtime/application/native-scene/NativeSceneHost.js +406 -0
- package/dist/runtime/application/native-scene/NativeSceneInspection.js +203 -0
- package/dist/runtime/application/native-scene/NativeSceneOverlay.js +116 -0
- package/dist/runtime/application/native-scene/NativeSceneQuery.js +123 -0
- package/dist/runtime/application/native-scene/NativeSceneReview.js +132 -0
- package/dist/runtime/application/native-scene/NativeThreeModule.js +16 -0
- package/dist/runtime/application/native-scene/SceneObserver.js +97 -0
- package/dist/runtime/application/native-scene/VisualCapturePolicy.js +4 -0
- package/dist/runtime/application/object-forge/SceneObjectForge.js +263 -0
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetBuilder.js +59 -0
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetContract.js +22 -0
- package/dist/runtime/application/programmatic-assets/ThreeCodeAsset.js +40 -0
- package/dist/runtime/application/scene/CapabilityResolver.js +90 -0
- package/dist/runtime/application/scene/NativeEditableContracts.js +18 -0
- package/dist/runtime/application/scene/RequestWindow.js +54 -0
- package/dist/runtime/application/scene/SceneAgentTools.js +21 -0
- package/dist/runtime/application/scene/SceneContracts.js +49 -0
- package/dist/runtime/application/scene/SceneEditService.js +154 -0
- package/dist/runtime/application/scene/SceneFacade.js +356 -0
- package/dist/runtime/application/scene/SceneInteractionAdapters.js +41 -0
- package/dist/runtime/application/scene/SceneJobController.js +320 -0
- package/dist/runtime/application/scene/SceneLifecycle.js +57 -0
- package/dist/runtime/application/scene/ScenePackage.js +173 -0
- package/dist/runtime/application/scene/ScenePersistence.js +50 -0
- package/dist/runtime/application/scene/SceneProject.js +95 -0
- package/dist/runtime/application/scene/SceneSkillNames.js +5 -0
- package/dist/runtime/application/scene/StarterScene.js +56 -0
- package/dist/runtime/application/scene/WorldArchive.js +89 -0
- package/dist/runtime/application/scene/WorldDirectory.js +20 -0
- package/dist/runtime/application/scene/WorldDocument.js +76 -0
- package/dist/runtime/application/scene/WorldIO.js +103 -0
- package/dist/runtime/application/scene/WorldStorage.js +155 -0
- package/dist/runtime/application/skills/SkillRegistry.js +193 -0
- package/dist/runtime/application/skills/packs/acceptanceSkills.js +32 -0
- package/dist/runtime/application/skills/packs/affordanceSkills.js +36 -0
- package/dist/runtime/application/skills/packs/assetSkills.js +46 -0
- package/dist/runtime/application/skills/packs/authoringSkills.js +16 -0
- package/dist/runtime/application/skills/packs/batchSkills.js +22 -0
- package/dist/runtime/application/skills/packs/codeSkills.js +106 -0
- package/dist/runtime/application/skills/packs/generationSkills.js +45 -0
- package/dist/runtime/application/skills/packs/interactionSkills.js +46 -0
- package/dist/runtime/application/skills/packs/recoverySkills.js +80 -0
- package/dist/runtime/application/skills/packs/sceneSkills.js +24 -0
- package/dist/runtime/application/skills/packs/spatialSkills.js +35 -0
- package/dist/runtime/application/skills/packs/verificationSkills.js +14 -0
- package/dist/runtime/application/skills/packs/worldSkills.js +45 -0
- package/dist/runtime/application/skills/registerCoreSkills.js +31 -0
- package/dist/runtime/application/skills/skillPrimitives.js +4 -0
- package/dist/runtime/application/tasks/CabinetCupTask.js +76 -0
- package/dist/runtime/application/tasks.jsonl +67 -0
- package/dist/runtime/application/world-authoring/AuthoringAssetProducer.js +42 -0
- package/dist/runtime/application/world-authoring/AuthoringDiff.js +149 -0
- package/dist/runtime/application/world-authoring/AuthoringDocument.js +825 -0
- package/dist/runtime/application/world-authoring/AuthoringExecutionHost.js +109 -0
- package/dist/runtime/application/world-authoring/AuthoringIdentity.js +17 -0
- package/dist/runtime/application/world-authoring/AuthoringModelResolver.js +29 -0
- package/dist/runtime/application/world-authoring/AuthoringPatch.js +118 -0
- package/dist/runtime/application/world-authoring/AuthoringPromotionController.js +334 -0
- package/dist/runtime/application/world-authoring/AuthoringPromotionSource.js +126 -0
- package/dist/runtime/application/world-authoring/AuthoringRevisionHistory.js +144 -0
- package/dist/runtime/application/world-authoring/HeadlessImageExport.js +92 -0
- package/dist/runtime/application/world-authoring/ModelRef.js +62 -0
- package/dist/runtime/application/world-authoring/SceneGLBExport.js +88 -0
- package/dist/runtime/apps/mcp-server/AUTHORING.md +71 -0
- package/dist/runtime/apps/mcp-server/AgentMcpCompat.js +68 -0
- package/dist/runtime/apps/mcp-server/AuthoringSandboxEntry.js +1 -0
- package/dist/runtime/apps/mcp-server/AuthoringSandboxWorker.mjs +30 -0
- package/dist/runtime/apps/mcp-server/BuildEnvironment.js +17 -0
- package/dist/runtime/apps/mcp-server/CodeExecutor.js +71 -0
- package/dist/runtime/apps/mcp-server/DEPLOYMENT-PC2.md +42 -0
- package/dist/runtime/apps/mcp-server/DockerBuildRunner.js +66 -0
- package/dist/runtime/apps/mcp-server/FileAssetRepository.js +159 -0
- package/dist/runtime/apps/mcp-server/HeadlessAssetIO.js +8 -0
- package/dist/runtime/apps/mcp-server/HeadlessGLTFLoader.js +47 -0
- package/dist/runtime/apps/mcp-server/HeadlessWorldHost.js +157 -0
- package/dist/runtime/apps/mcp-server/IsolatedAuthoringExecutor.js +6 -0
- package/dist/runtime/apps/mcp-server/PROGRAMMATIC-ASSETS.md +116 -0
- package/dist/runtime/apps/mcp-server/ProgrammaticAssets.js +60 -0
- package/dist/runtime/apps/mcp-server/README.md +269 -0
- package/dist/runtime/apps/mcp-server/RemoteAuthoringDocument.js +1 -0
- package/dist/runtime/apps/mcp-server/SandboxBundle.js +13 -0
- package/dist/runtime/apps/mcp-server/SessionManager.js +148 -0
- package/dist/runtime/apps/mcp-server/StudioBridgeHttp.js +75 -0
- package/dist/runtime/apps/mcp-server/StudioLiveBridge.js +246 -0
- package/dist/runtime/apps/mcp-server/StudioProjectToolContracts.js +58 -0
- package/dist/runtime/apps/mcp-server/TransferHttp.js +47 -0
- package/dist/runtime/apps/mcp-server/TransferLimits.js +6 -0
- package/dist/runtime/apps/mcp-server/TransferStore.js +134 -0
- package/dist/runtime/apps/mcp-server/TrustedAuthoringWorker.mjs +16 -0
- package/dist/runtime/apps/mcp-server/VALIDATION.md +45 -0
- package/dist/runtime/apps/mcp-server/acceptance-evidence.json +332 -0
- package/dist/runtime/apps/mcp-server/errorDiagnostics.js +32 -0
- package/dist/runtime/apps/mcp-server/examples/code-house.js +24 -0
- package/dist/runtime/apps/mcp-server/examples/procedural-assets.js +85 -0
- package/dist/runtime/apps/mcp-server/main.mjs +82 -0
- package/dist/runtime/apps/mcp-server/registerTools.js +274 -0
- package/dist/runtime/apps/mcp-server/sandbox/run.mjs +23 -0
- package/dist/runtime/apps/mcp-server/security.js +23 -0
- package/dist/runtime/apps/mcp-server/tasks.jsonl +9 -0
- package/dist/runtime/apps/server/CapabilityAdapterRegistry.js +157 -0
- package/dist/runtime/apps/server/README.md +7 -0
- package/dist/runtime/apps/server/WorldRepository.js +338 -0
- package/dist/runtime/apps/server/WorldRepositoryHttp.js +96 -0
- package/dist/runtime/apps/server/openai-compatible-agent-gateway.mjs +278 -0
- package/dist/runtime/apps/server/tasks.jsonl +10 -0
- package/dist/runtime/apps/shared/node/WorldDiskStorage.js +62 -0
- package/dist/runtime/foundation/EventBus.js +26 -0
- package/dist/runtime/foundation/JsonGateway.js +47 -0
- package/dist/runtime/foundation/PngRgba.js +99 -0
- package/dist/runtime/foundation/PolicyEngine.js +21 -0
- package/dist/runtime/foundation/README.md +7 -0
- package/dist/runtime/foundation/TraceRecorder.js +76 -0
- package/dist/runtime/foundation/errors.js +8 -0
- package/dist/runtime/foundation/simulation/SimulationProfile.js +143 -0
- package/dist/runtime/foundation/version.js +2 -0
- package/dist/runtime/modules/agent/README.md +11 -0
- package/dist/runtime/modules/agent/ToolCallingAgent.js +19 -0
- package/dist/runtime/modules/agent/bootstrapWorld.js +10 -0
- package/dist/runtime/modules/agent/buildRecoveryProposals.js +533 -0
- package/dist/runtime/modules/agent/execution/AgentExecutionRules.js +128 -0
- package/dist/runtime/modules/agent/execution/AgentRunResults.js +55 -0
- package/dist/runtime/modules/agent/execution/AgentRunSession.js +393 -0
- package/dist/runtime/modules/agent/execution/AgentToolInvoker.js +40 -0
- package/dist/runtime/modules/agent/gateway/HttpLLMGateway.js +19 -0
- package/dist/runtime/modules/agent/prompt/index.js +52 -0
- package/dist/runtime/modules/agent/tasks.jsonl +94 -0
- package/dist/runtime/modules/artifact/ArtifactContentGate.js +144 -0
- package/dist/runtime/modules/artifact/ArtifactDescriptor.js +280 -0
- package/dist/runtime/modules/artifact/ArtifactImporter.js +185 -0
- package/dist/runtime/modules/artifact/ArtifactModule.js +111 -0
- package/dist/runtime/modules/artifact/ArtifactRegistry.js +197 -0
- package/dist/runtime/modules/artifact/IncrementalSha256.js +129 -0
- package/dist/runtime/modules/artifact/MemoryArtifactByteStore.js +115 -0
- package/dist/runtime/modules/artifact/README.md +7 -0
- package/dist/runtime/modules/artifact/storage/IndexedDbArtifactStore.js +67 -0
- package/dist/runtime/modules/artifact/tasks.jsonl +31 -0
- package/dist/runtime/modules/asset/AssetModule.js +416 -0
- package/dist/runtime/modules/asset/README.md +67 -0
- package/dist/runtime/modules/asset/loading/AssetLoader.js +157 -0
- package/dist/runtime/modules/asset/loading/GltfAssetLoader.js +61 -0
- package/dist/runtime/modules/asset/loading/builtins/BuiltinAssets.js +95 -0
- package/dist/runtime/modules/asset/loading/builtins/HouseDoor.js +33 -0
- package/dist/runtime/modules/asset/loading/builtins/IndustrialCabinet.js +103 -0
- package/dist/runtime/modules/asset/model/AssetInputContracts.js +139 -0
- package/dist/runtime/modules/asset/model/AssetRef.js +12 -0
- package/dist/runtime/modules/asset/model/MechanicalAssetDraft.js +172 -0
- package/dist/runtime/modules/asset/model/ProceduralTextureContract.js +24 -0
- package/dist/runtime/modules/asset/model/admission.js +117 -0
- package/dist/runtime/modules/asset/model/errors.js +6 -0
- package/dist/runtime/modules/asset/model/parts.js +27 -0
- package/dist/runtime/modules/asset/model/resourceBudget.js +10 -0
- package/dist/runtime/modules/asset/model/schema.js +150 -0
- package/dist/runtime/modules/asset/persistence/AssetManifestStore.js +78 -0
- package/dist/runtime/modules/asset/persistence/CompiledAssetStore.js +84 -0
- package/dist/runtime/modules/asset/persistence/LocalAssetLibrary.js +86 -0
- package/dist/runtime/modules/asset/persistence/LocalAssetLibraryStore.js +81 -0
- package/dist/runtime/modules/asset/production/AssetProductionPipeline.js +272 -0
- package/dist/runtime/modules/asset/production/AssetRecipe.js +91 -0
- package/dist/runtime/modules/asset/production/ProceduralTexture.js +85 -0
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenAdapter.js +45 -0
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenBundleAdapter.js +590 -0
- package/dist/runtime/modules/asset/production/compiler/AssetCompiler.js +173 -0
- package/dist/runtime/modules/asset/production/compiler/evidence/AnimationMotionEvidence.js +124 -0
- package/dist/runtime/modules/asset/production/compiler/evidence/StaticPanelEvidence.js +56 -0
- package/dist/runtime/modules/asset/production/compiler/gltfIO.js +6 -0
- package/dist/runtime/modules/asset/production/compiler/partGeometry.js +74 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulatedCollisionPass.js +63 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulationCandidatePass.js +48 -0
- package/dist/runtime/modules/asset/production/compiler/passes/AuthoringIntentPass.js +16 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ColliderFallbackPass.js +30 -0
- package/dist/runtime/modules/asset/production/compiler/passes/CompileQualityPass.js +75 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ExplicitDefinitionPass.js +20 -0
- package/dist/runtime/modules/asset/production/compiler/passes/GLTFInspectPass.js +34 -0
- package/dist/runtime/modules/asset/production/compiler/passes/GeometryPass.js +32 -0
- package/dist/runtime/modules/asset/production/compiler/passes/JointFramePass.js +116 -0
- package/dist/runtime/modules/asset/production/compiler/passes/KinematicEvidencePass.js +84 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ManifestPass.js +63 -0
- package/dist/runtime/modules/asset/production/compiler/passes/NormalizeTransformPass.js +16 -0
- package/dist/runtime/modules/asset/production/compiler/passes/OptimizeGLBPass.js +23 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartColliderPass.js +50 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartGeometryEnrichmentPass.js +60 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartProposalPass.js +93 -0
- package/dist/runtime/modules/asset/production/compiler/passes/RemoteEnrichmentPass.js +32 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ResourceBudgetPass.js +55 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentMaterializePass.js +203 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentationEvidencePass.js +43 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SemanticHeuristicPass.js +33 -0
- package/dist/runtime/modules/asset/production/compiler/passes/StructurePass.js +60 -0
- package/dist/runtime/modules/asset/production/compiler/providers/HttpCompilerProvider.js +23 -0
- package/dist/runtime/modules/asset/production/verification/KinematicHypothesisScreen.js +198 -0
- package/dist/runtime/modules/asset/registry/AssetCatalog.js +72 -0
- package/dist/runtime/modules/asset/registry/AssetRegistry.js +51 -0
- package/dist/runtime/modules/asset/registry/manifests/index.js +173 -0
- package/dist/runtime/modules/asset/tasks.jsonl +87 -0
- package/dist/runtime/modules/generation/README.md +9 -0
- package/dist/runtime/modules/generation/connector/ConnectorArtifactClient.js +45 -0
- package/dist/runtime/modules/generation/connector/ConnectorCapabilityAdapter.js +169 -0
- package/dist/runtime/modules/generation/connector/ConnectorClient.js +192 -0
- package/dist/runtime/modules/generation/connector/ConnectorJobClient.js +167 -0
- package/dist/runtime/modules/generation/connector/ConnectorJobEventClient.js +179 -0
- package/dist/runtime/modules/generation/connector/ConnectorSession.js +202 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobProjection.js +239 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobReconciler.js +99 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobStore.js +91 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobTransportOverlay.js +50 -0
- package/dist/runtime/modules/generation/providers/ProviderRegistry.js +304 -0
- package/dist/runtime/modules/generation/tasks.jsonl +35 -0
- package/dist/runtime/modules/navigation/NavigationBackend.js +17 -0
- package/dist/runtime/modules/navigation/RecastNavigationBackend.js +263 -0
- package/dist/runtime/modules/physics/JoltPhysicsBackend.js +850 -0
- package/dist/runtime/modules/physics/PhysicsApiSurface.js +660 -0
- package/dist/runtime/modules/physics/PhysicsBackend.js +88 -0
- package/dist/runtime/modules/physics/RapierPhysicsBackend.js +414 -0
- package/dist/runtime/modules/rendering/README.md +7 -0
- package/dist/runtime/modules/rendering/RendererProbe.js +153 -0
- package/dist/runtime/modules/rendering/WebGpuPostFxPipeline.js +140 -0
- package/dist/runtime/modules/rendering/captureStill.js +54 -0
- package/dist/runtime/modules/rendering/createRenderer.js +76 -0
- package/dist/runtime/modules/rendering/disposeObject3D.js +37 -0
- package/dist/runtime/modules/rendering/loadGaussianSplatVisual.js +74 -0
- package/dist/runtime/modules/rendering/spatial/ThreeBvhRuntime.js +107 -0
- package/dist/runtime/modules/rendering/style/StylePack.js +34 -0
- package/dist/runtime/modules/rendering/style/StyleSystem.js +173 -0
- package/dist/runtime/modules/rendering/tasks.jsonl +7 -0
- package/dist/runtime/modules/world/README.md +13 -0
- package/dist/runtime/modules/world/build/WorldBuilder.js +170 -0
- package/dist/runtime/modules/world/compiler/PipelineEngine.js +32 -0
- package/dist/runtime/modules/world/compiler/WorldAdmission.js +43 -0
- package/dist/runtime/modules/world/compiler/WorldBehaviorCompiler.js +68 -0
- package/dist/runtime/modules/world/compiler/WorldCompilation.js +157 -0
- package/dist/runtime/modules/world/compiler/WorldComposer.js +201 -0
- package/dist/runtime/modules/world/compiler/WorldPhysicsAdmission.js +76 -0
- package/dist/runtime/modules/world/compiler/WorldRecompiler.js +356 -0
- package/dist/runtime/modules/world/compiler/WorldRetry.js +75 -0
- package/dist/runtime/modules/world/compiler/createWorldPipeline.js +379 -0
- package/dist/runtime/modules/world/content/blankWorld.js +35 -0
- package/dist/runtime/modules/world/content/environments.js +84 -0
- package/dist/runtime/modules/world/content/grandUrbanBlock.js +189 -0
- package/dist/runtime/modules/world/content/magic-cabin/README.md +28 -0
- package/dist/runtime/modules/world/content/magic-cabin/affordances.js +64 -0
- package/dist/runtime/modules/world/content/magic-cabin/cabinContents.js +7078 -0
- package/dist/runtime/modules/world/content/magic-cabin/lighting.js +26 -0
- package/dist/runtime/modules/world/content/magic-cabin/materials.js +20 -0
- package/dist/runtime/modules/world/content/magicCabin.js +190 -0
- package/dist/runtime/modules/world/content/monumentHall.js +154 -0
- package/dist/runtime/modules/world/content/ruinedCourtyard.js +196 -0
- package/dist/runtime/modules/world/content/suzhouGarden/README.md +141 -0
- package/dist/runtime/modules/world/content/suzhouGarden/index.js +137 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/arch.js +491 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/buildings.js +670 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/core.js +578 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/lod.js +127 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/main.js +642 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/nature.js +650 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/rockery.js +280 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/sky.js +242 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/water.js +215 -0
- package/dist/runtime/modules/world/content/woodlandWorkshop.js +192 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/README.md +36 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/arch.js +351 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/buildings.js +490 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/core.js +505 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/index.js +101 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/nature.js +435 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/sky.js +169 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/water.js +245 -0
- package/dist/runtime/modules/world/errors.js +9 -0
- package/dist/runtime/modules/world/generated/GeneratedWorldCoordinates.js +50 -0
- package/dist/runtime/modules/world/generated/GeneratedWorldLoader.js +297 -0
- package/dist/runtime/modules/world/runtime/CommandHistory.js +111 -0
- package/dist/runtime/modules/world/runtime/EntityCapabilityRegistry.js +165 -0
- package/dist/runtime/modules/world/runtime/NativeNavigationGeometry.js +84 -0
- package/dist/runtime/modules/world/runtime/NativePhysicsSnapshot.js +245 -0
- package/dist/runtime/modules/world/runtime/ObjectStore.js +31 -0
- package/dist/runtime/modules/world/runtime/ObjectTransform.js +62 -0
- package/dist/runtime/modules/world/runtime/ObservedEntity.js +37 -0
- package/dist/runtime/modules/world/runtime/ProjectCapabilities.js +240 -0
- package/dist/runtime/modules/world/runtime/SceneExtensions.js +36 -0
- package/dist/runtime/modules/world/runtime/ScenePresentation.js +101 -0
- package/dist/runtime/modules/world/runtime/SceneSerializer.js +281 -0
- package/dist/runtime/modules/world/runtime/WorldAuthority.js +41 -0
- package/dist/runtime/modules/world/runtime/WorldCollisionSignature.js +14 -0
- package/dist/runtime/modules/world/runtime/WorldCommands.js +503 -0
- package/dist/runtime/modules/world/runtime/WorldObservation.js +71 -0
- package/dist/runtime/modules/world/runtime/WorldQueries.js +340 -0
- package/dist/runtime/modules/world/runtime/WorldRecovery.js +78 -0
- package/dist/runtime/modules/world/runtime/WorldRuntime.js +806 -0
- package/dist/runtime/modules/world/runtime/affordance/ObjectAffordances.js +110 -0
- package/dist/runtime/modules/world/runtime/affordance/WorldAffordances.js +130 -0
- package/dist/runtime/modules/world/runtime/behavior/BehaviorCompiler.js +79 -0
- package/dist/runtime/modules/world/runtime/behavior/ProjectStateMachine.js +195 -0
- package/dist/runtime/modules/world/runtime/behavior/RuleGraph.js +70 -0
- package/dist/runtime/modules/world/runtime/behavior/RuleRuntime.js +115 -0
- package/dist/runtime/modules/world/runtime/graph/SceneGraph.js +390 -0
- package/dist/runtime/modules/world/runtime/interaction/ArticulationRuntime.js +214 -0
- package/dist/runtime/modules/world/runtime/interaction/CarryCapability.js +65 -0
- package/dist/runtime/modules/world/runtime/interaction/CarryRuntime.js +244 -0
- package/dist/runtime/modules/world/runtime/interaction/InteractionApproach.js +147 -0
- package/dist/runtime/modules/world/runtime/interaction/InteractionContract.js +57 -0
- package/dist/runtime/modules/world/runtime/interaction/ManipulationActions.js +7 -0
- package/dist/runtime/modules/world/runtime/interaction/NativePhysicalTarget.js +31 -0
- package/dist/runtime/modules/world/runtime/interaction/RecoveryRuntime.js +123 -0
- package/dist/runtime/modules/world/runtime/interaction/SettleRuntime.js +134 -0
- package/dist/runtime/modules/world/runtime/semantic/NativePhysicsState.js +89 -0
- package/dist/runtime/modules/world/runtime/semantic/SemanticWorldView.js +129 -0
- package/dist/runtime/modules/world/runtime/simulation/SimulationClock.js +89 -0
- package/dist/runtime/modules/world/runtime/simulation/SimulationSession.js +104 -0
- package/dist/runtime/modules/world/runtime/simulation/ThermalSystem.js +269 -0
- package/dist/runtime/modules/world/runtime/simulation/WorldTimeline.js +110 -0
- package/dist/runtime/modules/world/runtime/spatial/SpatialSnapshot.js +56 -0
- package/dist/runtime/modules/world/runtime/spatial/VisualMeshBounds.js +41 -0
- package/dist/runtime/modules/world/runtime/systems/AudioSystem.js +306 -0
- package/dist/runtime/modules/world/runtime/systems/Instrument.js +39 -0
- package/dist/runtime/modules/world/runtime/systems/InteractionSystem.js +806 -0
- package/dist/runtime/modules/world/runtime/systems/LocomotionSystem.js +281 -0
- package/dist/runtime/modules/world/runtime/systems/NavigationSystem.js +561 -0
- package/dist/runtime/modules/world/runtime/systems/PhysicsSystem.js +1752 -0
- package/dist/runtime/modules/world/runtime/systems/RenderingSystem.js +527 -0
- package/dist/runtime/modules/world/runtime/systems/SpatialSystem.js +402 -0
- package/dist/runtime/modules/world/spec/WorldIR.js +165 -0
- package/dist/runtime/modules/world/spec/WorldIRToolSchema.js +86 -0
- package/dist/runtime/modules/world/spec/WorldPlannerProposal.js +51 -0
- package/dist/runtime/modules/world/spec/WorldRevision.js +231 -0
- package/dist/runtime/modules/world/spec/WorldSpec.js +86 -0
- package/dist/runtime/modules/world/tasks.jsonl +530 -0
- package/dist/runtime/modules/world/verification/ArticulationVerifier.js +254 -0
- package/dist/runtime/modules/world/verification/Finding.js +105 -0
- package/dist/runtime/modules/world/verification/InteractionEvidence.js +73 -0
- package/dist/runtime/modules/world/verification/RepairEngine.js +49 -0
- package/dist/runtime/modules/world/verification/VisualLayoutAcceptance.js +58 -0
- package/dist/runtime/modules/world/verification/WorldAcceptance.js +176 -0
- package/dist/runtime/modules/world/verification/WorldValidator.js +67 -0
- package/dist/runtime/package-lock.json +16071 -0
- package/dist/runtime/package.json +106 -0
- package/dist/runtime/public/assets/cabinet.glb +0 -0
- package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/concrete_pavement_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/urban_street_01_1k.hdr +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_rough_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/solitude_interior_1k.hdr +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/courtyard_1k.hdr +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_sandstone_diff_1k.jpg +0 -0
- package/dist/schema-DT7K9NjP.js +165 -0
- package/dist/schema-DT7K9NjP.js.map +1 -0
- package/dist/suzhouGarden-Y3hny8j6.js +6150 -0
- package/dist/suzhouGarden-Y3hny8j6.js.map +1 -0
- package/dist/version-CHc-i8ch.js +5 -0
- package/dist/version-CHc-i8ch.js.map +1 -0
- package/dist/woodlandWorkshop-DsScU-cx.js +483 -0
- package/dist/woodlandWorkshop-DsScU-cx.js.map +1 -0
- package/dist/yuanmingyuan-DsFnPzzR.js +4955 -0
- package/dist/yuanmingyuan-DsFnPzzR.js.map +1 -0
- package/package.json +75 -4
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
// modules/artifact/IncrementalSha256.js
|
|
2
|
+
const K = new Uint32Array([
|
|
3
|
+
1116352408,
|
|
4
|
+
1899447441,
|
|
5
|
+
3049323471,
|
|
6
|
+
3921009573,
|
|
7
|
+
961987163,
|
|
8
|
+
1508970993,
|
|
9
|
+
2453635748,
|
|
10
|
+
2870763221,
|
|
11
|
+
3624381080,
|
|
12
|
+
310598401,
|
|
13
|
+
607225278,
|
|
14
|
+
1426881987,
|
|
15
|
+
1925078388,
|
|
16
|
+
2162078206,
|
|
17
|
+
2614888103,
|
|
18
|
+
3248222580,
|
|
19
|
+
3835390401,
|
|
20
|
+
4022224774,
|
|
21
|
+
264347078,
|
|
22
|
+
604807628,
|
|
23
|
+
770255983,
|
|
24
|
+
1249150122,
|
|
25
|
+
1555081692,
|
|
26
|
+
1996064986,
|
|
27
|
+
2554220882,
|
|
28
|
+
2821834349,
|
|
29
|
+
2952996808,
|
|
30
|
+
3210313671,
|
|
31
|
+
3336571891,
|
|
32
|
+
3584528711,
|
|
33
|
+
113926993,
|
|
34
|
+
338241895,
|
|
35
|
+
666307205,
|
|
36
|
+
773529912,
|
|
37
|
+
1294757372,
|
|
38
|
+
1396182291,
|
|
39
|
+
1695183700,
|
|
40
|
+
1986661051,
|
|
41
|
+
2177026350,
|
|
42
|
+
2456956037,
|
|
43
|
+
2730485921,
|
|
44
|
+
2820302411,
|
|
45
|
+
3259730800,
|
|
46
|
+
3345764771,
|
|
47
|
+
3516065817,
|
|
48
|
+
3600352804,
|
|
49
|
+
4094571909,
|
|
50
|
+
275423344,
|
|
51
|
+
430227734,
|
|
52
|
+
506948616,
|
|
53
|
+
659060556,
|
|
54
|
+
883997877,
|
|
55
|
+
958139571,
|
|
56
|
+
1322822218,
|
|
57
|
+
1537002063,
|
|
58
|
+
1747873779,
|
|
59
|
+
1955562222,
|
|
60
|
+
2024104815,
|
|
61
|
+
2227730452,
|
|
62
|
+
2361852424,
|
|
63
|
+
2428436474,
|
|
64
|
+
2756734187,
|
|
65
|
+
3204031479,
|
|
66
|
+
3329325298
|
|
67
|
+
]);
|
|
68
|
+
const INITIAL = new Uint32Array([
|
|
69
|
+
1779033703,
|
|
70
|
+
3144134277,
|
|
71
|
+
1013904242,
|
|
72
|
+
2773480762,
|
|
73
|
+
1359893119,
|
|
74
|
+
2600822924,
|
|
75
|
+
528734635,
|
|
76
|
+
1541459225
|
|
77
|
+
]);
|
|
78
|
+
const rotr = (x, n) => x >>> n | x << 32 - n;
|
|
79
|
+
const asBytes = (value) => {
|
|
80
|
+
if (value instanceof Uint8Array) return value;
|
|
81
|
+
if (value instanceof ArrayBuffer) return new Uint8Array(value);
|
|
82
|
+
if (ArrayBuffer.isView(value)) return new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
83
|
+
throw new TypeError("SHA-256 update requires Uint8Array or ArrayBuffer data");
|
|
84
|
+
};
|
|
85
|
+
var IncrementalSha256 = class {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.state = new Uint32Array(INITIAL);
|
|
88
|
+
this.buffer = /* @__PURE__ */ new Uint8Array(64);
|
|
89
|
+
this.bufferLength = 0;
|
|
90
|
+
this.bytesHashed = 0;
|
|
91
|
+
this.finished = false;
|
|
92
|
+
this.words = /* @__PURE__ */ new Uint32Array(64);
|
|
93
|
+
}
|
|
94
|
+
update(value) {
|
|
95
|
+
if (this.finished) throw new Error("SHA-256 digest is already finalized");
|
|
96
|
+
const bytes = asBytes(value);
|
|
97
|
+
if (!bytes.byteLength) return this;
|
|
98
|
+
if (!Number.isSafeInteger(this.bytesHashed + bytes.byteLength)) throw new Error("SHA-256 input exceeds safe byte count");
|
|
99
|
+
this.bytesHashed += bytes.byteLength;
|
|
100
|
+
let offset = 0;
|
|
101
|
+
if (this.bufferLength) {
|
|
102
|
+
const take = Math.min(64 - this.bufferLength, bytes.byteLength);
|
|
103
|
+
this.buffer.set(bytes.subarray(0, take), this.bufferLength);
|
|
104
|
+
this.bufferLength += take;
|
|
105
|
+
offset += take;
|
|
106
|
+
if (this.bufferLength === 64) {
|
|
107
|
+
this.#process(this.buffer, 0);
|
|
108
|
+
this.bufferLength = 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
while (offset + 64 <= bytes.byteLength) {
|
|
112
|
+
this.#process(bytes, offset);
|
|
113
|
+
offset += 64;
|
|
114
|
+
}
|
|
115
|
+
if (offset < bytes.byteLength) {
|
|
116
|
+
this.buffer.set(bytes.subarray(offset), 0);
|
|
117
|
+
this.bufferLength = bytes.byteLength - offset;
|
|
118
|
+
}
|
|
119
|
+
return this;
|
|
120
|
+
}
|
|
121
|
+
digestBytes() {
|
|
122
|
+
if (!this.finished) this.#finish();
|
|
123
|
+
const out = /* @__PURE__ */ new Uint8Array(32);
|
|
124
|
+
const view = new DataView(out.buffer);
|
|
125
|
+
for (let i = 0; i < 8; i++) view.setUint32(i * 4, this.state[i], false);
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
digestHex() {
|
|
129
|
+
return [...this.digestBytes()].map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
130
|
+
}
|
|
131
|
+
digestArtifactHash() {
|
|
132
|
+
return `sha256:${this.digestHex()}`;
|
|
133
|
+
}
|
|
134
|
+
#finish() {
|
|
135
|
+
const block = /* @__PURE__ */ new Uint8Array(128);
|
|
136
|
+
block.set(this.buffer.subarray(0, this.bufferLength), 0);
|
|
137
|
+
block[this.bufferLength] = 128;
|
|
138
|
+
const padLength = this.bufferLength < 56 ? 64 : 128;
|
|
139
|
+
const high = Math.floor(this.bytesHashed / 536870912) >>> 0;
|
|
140
|
+
const low = this.bytesHashed * 8 >>> 0;
|
|
141
|
+
const view = new DataView(block.buffer);
|
|
142
|
+
view.setUint32(padLength - 8, high, false);
|
|
143
|
+
view.setUint32(padLength - 4, low, false);
|
|
144
|
+
this.#process(block, 0);
|
|
145
|
+
if (padLength === 128) this.#process(block, 64);
|
|
146
|
+
this.finished = true;
|
|
147
|
+
this.bufferLength = 0;
|
|
148
|
+
}
|
|
149
|
+
#process(bytes, offset) {
|
|
150
|
+
const w = this.words;
|
|
151
|
+
for (let i = 0; i < 16; i++) {
|
|
152
|
+
const j = offset + i * 4;
|
|
153
|
+
w[i] = (bytes[j] << 24 | bytes[j + 1] << 16 | bytes[j + 2] << 8 | bytes[j + 3]) >>> 0;
|
|
154
|
+
}
|
|
155
|
+
for (let i = 16; i < 64; i++) {
|
|
156
|
+
const x = w[i - 15], y = w[i - 2];
|
|
157
|
+
const s0 = (rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3) >>> 0;
|
|
158
|
+
const s1 = (rotr(y, 17) ^ rotr(y, 19) ^ y >>> 10) >>> 0;
|
|
159
|
+
w[i] = w[i - 16] + s0 + w[i - 7] + s1 >>> 0;
|
|
160
|
+
}
|
|
161
|
+
let [a, b, c, d, e, f, g, h] = this.state;
|
|
162
|
+
for (let i = 0; i < 64; i++) {
|
|
163
|
+
const S1 = (rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25)) >>> 0;
|
|
164
|
+
const ch = (e & f ^ ~e & g) >>> 0;
|
|
165
|
+
const t1 = h + S1 + ch + K[i] + w[i] >>> 0;
|
|
166
|
+
const t2 = ((rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22)) >>> 0) + ((a & b ^ a & c ^ b & c) >>> 0) >>> 0;
|
|
167
|
+
h = g;
|
|
168
|
+
g = f;
|
|
169
|
+
f = e;
|
|
170
|
+
e = d + t1 >>> 0;
|
|
171
|
+
d = c;
|
|
172
|
+
c = b;
|
|
173
|
+
b = a;
|
|
174
|
+
a = t1 + t2 >>> 0;
|
|
175
|
+
}
|
|
176
|
+
this.state[0] = this.state[0] + a >>> 0;
|
|
177
|
+
this.state[1] = this.state[1] + b >>> 0;
|
|
178
|
+
this.state[2] = this.state[2] + c >>> 0;
|
|
179
|
+
this.state[3] = this.state[3] + d >>> 0;
|
|
180
|
+
this.state[4] = this.state[4] + e >>> 0;
|
|
181
|
+
this.state[5] = this.state[5] + f >>> 0;
|
|
182
|
+
this.state[6] = this.state[6] + g >>> 0;
|
|
183
|
+
this.state[7] = this.state[7] + h >>> 0;
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
function sha256ArtifactHash(chunks) {
|
|
187
|
+
const hash = new IncrementalSha256();
|
|
188
|
+
for (const chunk of chunks) hash.update(chunk);
|
|
189
|
+
return hash.digestArtifactHash();
|
|
190
|
+
}
|
|
191
|
+
// modules/world/content/environments.js
|
|
192
|
+
const ENVIRONMENTS = Object.freeze([
|
|
193
|
+
Object.freeze({
|
|
194
|
+
id: "suzhou-garden",
|
|
195
|
+
number: "世界 08",
|
|
196
|
+
title: "吴苑澄观 · 苏州园林",
|
|
197
|
+
headline: "探索程序化江南园林与山水建筑。",
|
|
198
|
+
description: "CNB wk/002 移植:亭台楼阁、太湖石、池水、植被、天气与观景点,原生 AgentScape Runtime。",
|
|
199
|
+
facts: [
|
|
200
|
+
"苏州园林",
|
|
201
|
+
"程序化建筑与山水",
|
|
202
|
+
"原生 Three.js Environment"
|
|
203
|
+
],
|
|
204
|
+
worldFirst: true,
|
|
205
|
+
rendererMode: "webgl-legacy",
|
|
206
|
+
load: () => import("./suzhouGarden-Y3hny8j6.js").then((module) => module.createSuzhouGardenEnvironment),
|
|
207
|
+
bootstrap: {
|
|
208
|
+
agent: [
|
|
209
|
+
0,
|
|
210
|
+
0,
|
|
211
|
+
65
|
|
212
|
+
],
|
|
213
|
+
table: [
|
|
214
|
+
5,
|
|
215
|
+
0,
|
|
216
|
+
68
|
|
217
|
+
],
|
|
218
|
+
cup: [
|
|
219
|
+
5.35,
|
|
220
|
+
1.05,
|
|
221
|
+
68
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
coffeeCorner: { table: [
|
|
225
|
+
5,
|
|
226
|
+
0,
|
|
227
|
+
68
|
|
228
|
+
] }
|
|
229
|
+
}),
|
|
230
|
+
Object.freeze({
|
|
231
|
+
id: "yuanmingyuan-western-mansions",
|
|
232
|
+
number: "世界 06",
|
|
233
|
+
title: "圆明园 · 西洋楼",
|
|
234
|
+
rendererMode: "webgl-legacy",
|
|
235
|
+
headline: "走进一座可被 AI 探索的历史园林。",
|
|
236
|
+
description: "程序化生成的大水法、海晏堂、远瀛观、湖泊与园林;原生接入 AgentScape Runtime。",
|
|
237
|
+
facts: [
|
|
238
|
+
"大型程序化世界",
|
|
239
|
+
"地形碰撞",
|
|
240
|
+
"原生 Three.js 环境"
|
|
241
|
+
],
|
|
242
|
+
worldFirst: true,
|
|
243
|
+
load: () => import("./yuanmingyuan-DsFnPzzR.js").then((module) => module.createYuanmingyuanEnvironment),
|
|
244
|
+
bootstrap: {
|
|
245
|
+
agent: [
|
|
246
|
+
0,
|
|
247
|
+
0,
|
|
248
|
+
62
|
|
249
|
+
],
|
|
250
|
+
table: [
|
|
251
|
+
3,
|
|
252
|
+
0,
|
|
253
|
+
62
|
|
254
|
+
],
|
|
255
|
+
cup: [
|
|
256
|
+
3.3,
|
|
257
|
+
1.1,
|
|
258
|
+
62
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
coffeeCorner: { table: [
|
|
262
|
+
3,
|
|
263
|
+
0,
|
|
264
|
+
62
|
|
265
|
+
] }
|
|
266
|
+
}),
|
|
267
|
+
Object.freeze({
|
|
268
|
+
id: "industrial-cabinet-lab",
|
|
269
|
+
number: "世界 00D",
|
|
270
|
+
title: "工业储物柜实验室",
|
|
271
|
+
headline: "操作真正带铰链和滑轨的复杂机械资产。",
|
|
272
|
+
description: "Three.js 程序化建模的钢制柜体,包含两扇独立柜门和两个抽屉。每个部件都由真实物理关节驱动。",
|
|
273
|
+
facts: [
|
|
274
|
+
"双旋转铰链",
|
|
275
|
+
"双滑动关节",
|
|
276
|
+
"Agent 交互验证"
|
|
277
|
+
],
|
|
278
|
+
worldFirst: true,
|
|
279
|
+
load: () => import("./blankWorld-B0MW6g7q.js").then((module) => () => module.createBlankWorld({ id: "industrial-cabinet-lab" })),
|
|
280
|
+
bootstrap: {
|
|
281
|
+
agent: [
|
|
282
|
+
-2,
|
|
283
|
+
0,
|
|
284
|
+
1.5
|
|
285
|
+
],
|
|
286
|
+
table: [
|
|
287
|
+
2.8,
|
|
288
|
+
0,
|
|
289
|
+
-2.1
|
|
290
|
+
],
|
|
291
|
+
cup: [
|
|
292
|
+
2.8,
|
|
293
|
+
1.1,
|
|
294
|
+
-2.1
|
|
295
|
+
],
|
|
296
|
+
assets: [{
|
|
297
|
+
assetId: "industrial_cabinet",
|
|
298
|
+
position: [
|
|
299
|
+
0,
|
|
300
|
+
0,
|
|
301
|
+
-2.5
|
|
302
|
+
],
|
|
303
|
+
instanceId: "industrial_cabinet_01"
|
|
304
|
+
}]
|
|
305
|
+
},
|
|
306
|
+
coffeeCorner: { table: [
|
|
307
|
+
2.8,
|
|
308
|
+
0,
|
|
309
|
+
-2.1
|
|
310
|
+
] }
|
|
311
|
+
}),
|
|
312
|
+
Object.freeze({
|
|
313
|
+
id: "magic-cabin",
|
|
314
|
+
number: "世界 05",
|
|
315
|
+
title: "魔女小屋 · 原版迁移",
|
|
316
|
+
headline: "走进原来的二层小屋。",
|
|
317
|
+
description: "原版线稿小屋:旋转楼梯、两层生活空间、门窗、书籍、魔法陈设与原地编辑。",
|
|
318
|
+
facts: [
|
|
319
|
+
"原版双层房屋",
|
|
320
|
+
"丰富物件交互",
|
|
321
|
+
"世界优先"
|
|
322
|
+
],
|
|
323
|
+
worldFirst: true,
|
|
324
|
+
cabin: true,
|
|
325
|
+
load: () => import("./magicCabin-CfBZjx2Q.js").then((module) => module.createMagicCabin),
|
|
326
|
+
bootstrap: {
|
|
327
|
+
agent: [
|
|
328
|
+
6,
|
|
329
|
+
0,
|
|
330
|
+
-5
|
|
331
|
+
],
|
|
332
|
+
table: [
|
|
333
|
+
7,
|
|
334
|
+
0,
|
|
335
|
+
2
|
|
336
|
+
],
|
|
337
|
+
cabinet: [
|
|
338
|
+
7,
|
|
339
|
+
0,
|
|
340
|
+
5
|
|
341
|
+
],
|
|
342
|
+
cup: [
|
|
343
|
+
7.35,
|
|
344
|
+
1.4,
|
|
345
|
+
2
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
coffeeCorner: {
|
|
349
|
+
table: [
|
|
350
|
+
7,
|
|
351
|
+
0,
|
|
352
|
+
2
|
|
353
|
+
],
|
|
354
|
+
cabinet: [
|
|
355
|
+
7,
|
|
356
|
+
0,
|
|
357
|
+
5
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
}),
|
|
361
|
+
Object.freeze({
|
|
362
|
+
id: "woodland-workshop",
|
|
363
|
+
number: "世界 04",
|
|
364
|
+
title: "林间工坊",
|
|
365
|
+
headline: "在世界里,开始创造。",
|
|
366
|
+
description: "开放式工坊与林间庭院。点选物体直接操作,按需打开构建与检查工具。",
|
|
367
|
+
facts: [
|
|
368
|
+
"世界优先交互",
|
|
369
|
+
"真实物理资产",
|
|
370
|
+
"开放式工坊"
|
|
371
|
+
],
|
|
372
|
+
worldFirst: true,
|
|
373
|
+
inlineEditors: [{
|
|
374
|
+
id: "board",
|
|
375
|
+
label: "告示板文字",
|
|
376
|
+
maxLength: 24
|
|
377
|
+
}, {
|
|
378
|
+
id: "sign",
|
|
379
|
+
label: "木牌文字",
|
|
380
|
+
maxLength: 12
|
|
381
|
+
}],
|
|
382
|
+
load: () => import("./woodlandWorkshop-DsScU-cx.js").then((module) => module.createWoodlandWorkshop),
|
|
383
|
+
bootstrap: {
|
|
384
|
+
agent: [
|
|
385
|
+
0,
|
|
386
|
+
0,
|
|
387
|
+
3
|
|
388
|
+
],
|
|
389
|
+
table: [
|
|
390
|
+
2.5,
|
|
391
|
+
0,
|
|
392
|
+
-3
|
|
393
|
+
],
|
|
394
|
+
cabinet: [
|
|
395
|
+
-3,
|
|
396
|
+
0,
|
|
397
|
+
-5
|
|
398
|
+
],
|
|
399
|
+
cup: [
|
|
400
|
+
2.85,
|
|
401
|
+
1.4,
|
|
402
|
+
-3
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
coffeeCorner: {
|
|
406
|
+
table: [
|
|
407
|
+
2.5,
|
|
408
|
+
0,
|
|
409
|
+
-3
|
|
410
|
+
],
|
|
411
|
+
cabinet: [
|
|
412
|
+
-3,
|
|
413
|
+
0,
|
|
414
|
+
-5
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
}),
|
|
418
|
+
Object.freeze({
|
|
419
|
+
id: "monument-hall",
|
|
420
|
+
number: "世界 01",
|
|
421
|
+
title: "纪念大厅",
|
|
422
|
+
headline: "为智能留出空间。",
|
|
423
|
+
description: "一个 32 × 24 米的纪念性空间,物理、导航与智能体行为共享同一个现实世界。",
|
|
424
|
+
facts: [
|
|
425
|
+
"RAPIER 物理引擎",
|
|
426
|
+
"RECAST / DETOUR 导航",
|
|
427
|
+
"智能体就绪资产"
|
|
428
|
+
],
|
|
429
|
+
load: () => import("./monumentHall-awZiGtda.js").then((module) => module.createMonumentHall),
|
|
430
|
+
bootstrap: {
|
|
431
|
+
agent: [
|
|
432
|
+
0,
|
|
433
|
+
0,
|
|
434
|
+
9
|
|
435
|
+
],
|
|
436
|
+
table: [
|
|
437
|
+
5.2,
|
|
438
|
+
0,
|
|
439
|
+
4.2
|
|
440
|
+
],
|
|
441
|
+
cabinet: [
|
|
442
|
+
-5.2,
|
|
443
|
+
0,
|
|
444
|
+
3.9
|
|
445
|
+
],
|
|
446
|
+
cup: [
|
|
447
|
+
5.55,
|
|
448
|
+
1.4,
|
|
449
|
+
4.2
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
coffeeCorner: {
|
|
453
|
+
table: [
|
|
454
|
+
4.8,
|
|
455
|
+
0,
|
|
456
|
+
4.2
|
|
457
|
+
],
|
|
458
|
+
cabinet: [
|
|
459
|
+
2.4,
|
|
460
|
+
0,
|
|
461
|
+
4.2
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
}),
|
|
465
|
+
Object.freeze({
|
|
466
|
+
id: "ruined-courtyard",
|
|
467
|
+
number: "世界 02",
|
|
468
|
+
title: "遗迹庭院",
|
|
469
|
+
headline: "穿行于记忆之间。",
|
|
470
|
+
description: "一个 36 × 30 米的露天遗迹,由破损拱廊、错层露台与再利用石材构成。",
|
|
471
|
+
facts: [
|
|
472
|
+
"多层级导航网格",
|
|
473
|
+
"物理遗迹场景",
|
|
474
|
+
"CC0 材质"
|
|
475
|
+
],
|
|
476
|
+
load: () => import("./ruinedCourtyard-DuF7NmUU.js").then((module) => module.createRuinedCourtyard),
|
|
477
|
+
bootstrap: {
|
|
478
|
+
agent: [
|
|
479
|
+
0,
|
|
480
|
+
0,
|
|
481
|
+
12
|
|
482
|
+
],
|
|
483
|
+
table: [
|
|
484
|
+
11.8,
|
|
485
|
+
1.2,
|
|
486
|
+
5.1
|
|
487
|
+
],
|
|
488
|
+
cabinet: [
|
|
489
|
+
-11.6,
|
|
490
|
+
.8,
|
|
491
|
+
-5.8
|
|
492
|
+
],
|
|
493
|
+
cup: [
|
|
494
|
+
12.1,
|
|
495
|
+
2.6,
|
|
496
|
+
5.1
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
coffeeCorner: {
|
|
500
|
+
table: [
|
|
501
|
+
10.5,
|
|
502
|
+
1.2,
|
|
503
|
+
3.5
|
|
504
|
+
],
|
|
505
|
+
cabinet: [
|
|
506
|
+
8.4,
|
|
507
|
+
1.2,
|
|
508
|
+
3.5
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
}),
|
|
512
|
+
Object.freeze({
|
|
513
|
+
id: "grand-urban-block",
|
|
514
|
+
number: "世界 03",
|
|
515
|
+
title: "大型城市街区",
|
|
516
|
+
headline: "一个会产生真实后果的城市街区。",
|
|
517
|
+
description: "一个 96 × 72 米的模块化城区,包含林荫大道、抬升街区、市民广场与长距离导航。",
|
|
518
|
+
facts: [
|
|
519
|
+
"96 × 72 米世界",
|
|
520
|
+
"实例化街道生活",
|
|
521
|
+
"分块导航"
|
|
522
|
+
],
|
|
523
|
+
load: () => import("./grandUrbanBlock-DRndRZjF.js").then((module) => module.createGrandUrbanBlock),
|
|
524
|
+
bootstrap: {
|
|
525
|
+
agent: [
|
|
526
|
+
0,
|
|
527
|
+
0,
|
|
528
|
+
-30
|
|
529
|
+
],
|
|
530
|
+
table: [
|
|
531
|
+
6,
|
|
532
|
+
.16,
|
|
533
|
+
5
|
|
534
|
+
],
|
|
535
|
+
cabinet: [
|
|
536
|
+
-6,
|
|
537
|
+
.16,
|
|
538
|
+
5
|
|
539
|
+
],
|
|
540
|
+
cup: [
|
|
541
|
+
6.35,
|
|
542
|
+
1.56,
|
|
543
|
+
5
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
coffeeCorner: {
|
|
547
|
+
table: [
|
|
548
|
+
6,
|
|
549
|
+
.16,
|
|
550
|
+
5
|
|
551
|
+
],
|
|
552
|
+
cabinet: [
|
|
553
|
+
3.4,
|
|
554
|
+
.16,
|
|
555
|
+
5
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
})
|
|
559
|
+
]);
|
|
560
|
+
const byId = new Map(ENVIRONMENTS.map((value) => [value.id, value]));
|
|
561
|
+
const BUILTIN_ENVIRONMENT_IDS = Object.freeze(ENVIRONMENTS.map((value) => value.id));
|
|
562
|
+
/** Strict lookup for Scene Project / SDK. Studio routes may use resolveEnvironment's fallback. */
|
|
563
|
+
const findEnvironment = (id) => byId.get(id) || null;
|
|
564
|
+
ENVIRONMENTS.find((value) => value.id === "suzhou-garden");
|
|
565
|
+
export { sha256ArtifactHash as a, IncrementalSha256 as i, ENVIRONMENTS as n, findEnvironment as r, BUILTIN_ENVIRONMENT_IDS as t };
|
|
566
|
+
|
|
567
|
+
//# sourceMappingURL=environments-HOe3sJXH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environments-HOe3sJXH.js","names":[],"sources":["../../../modules/artifact/IncrementalSha256.js","../../../modules/world/content/environments.js"],"sourcesContent":["const K=new Uint32Array([\n 0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,\n 0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,\n 0xe49b69c1,0xefbe4786,0x0fc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,\n 0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x06ca6351,0x14292967,\n 0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,\n 0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,\n 0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,\n 0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2\n]);\n\nconst INITIAL=new Uint32Array([\n 0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,\n 0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19\n]);\nconst rotr=(x,n)=>(x>>>n)|(x<<(32-n));\nconst asBytes=(value)=>{\n if (value instanceof Uint8Array) return value;\n if (value instanceof ArrayBuffer) return new Uint8Array(value);\n if (ArrayBuffer.isView(value)) return new Uint8Array(value.buffer,value.byteOffset,value.byteLength);\n throw new TypeError('SHA-256 update requires Uint8Array or ArrayBuffer data');\n};\n\nexport class IncrementalSha256 {\n constructor() {\n this.state=new Uint32Array(INITIAL);\n this.buffer=new Uint8Array(64);\n this.bufferLength=0;\n this.bytesHashed=0;\n this.finished=false;\n this.words=new Uint32Array(64);\n }\n\n update(value) {\n if (this.finished) throw new Error('SHA-256 digest is already finalized');\n const bytes=asBytes(value);\n if (!bytes.byteLength) return this;\n if (!Number.isSafeInteger(this.bytesHashed+bytes.byteLength)) throw new Error('SHA-256 input exceeds safe byte count');\n this.bytesHashed+=bytes.byteLength;\n let offset=0;\n if (this.bufferLength) {\n const take=Math.min(64-this.bufferLength,bytes.byteLength);\n this.buffer.set(bytes.subarray(0,take),this.bufferLength);\n this.bufferLength+=take;\n offset+=take;\n if (this.bufferLength===64) {\n this.#process(this.buffer,0);\n this.bufferLength=0;\n }\n }\n while (offset+64<=bytes.byteLength) {\n this.#process(bytes,offset);\n offset+=64;\n }\n if (offset<bytes.byteLength) {\n this.buffer.set(bytes.subarray(offset),0);\n this.bufferLength=bytes.byteLength-offset;\n }\n return this;\n }\n\n digestBytes() {\n if (!this.finished) this.#finish();\n const out=new Uint8Array(32);\n const view=new DataView(out.buffer);\n for (let i=0;i<8;i++) view.setUint32(i*4,this.state[i],false);\n return out;\n }\n\n digestHex() {\n return [...this.digestBytes()].map((byte)=>byte.toString(16).padStart(2,'0')).join('');\n }\n\n digestArtifactHash() { return `sha256:${this.digestHex()}`; }\n\n #finish() {\n const block=new Uint8Array(128);\n block.set(this.buffer.subarray(0,this.bufferLength),0);\n block[this.bufferLength]=0x80;\n const padLength=this.bufferLength<56?64:128;\n const high=Math.floor(this.bytesHashed/0x20000000)>>>0;\n const low=(this.bytesHashed*8)>>>0;\n const view=new DataView(block.buffer);\n view.setUint32(padLength-8,high,false);\n view.setUint32(padLength-4,low,false);\n this.#process(block,0);\n if (padLength===128) this.#process(block,64);\n this.finished=true;\n this.bufferLength=0;\n }\n\n #process(bytes,offset) {\n const w=this.words;\n for (let i=0;i<16;i++) {\n const j=offset+i*4;\n w[i]=((bytes[j]<<24)|(bytes[j+1]<<16)|(bytes[j+2]<<8)|bytes[j+3])>>>0;\n }\n for (let i=16;i<64;i++) {\n const x=w[i-15],y=w[i-2];\n const s0=(rotr(x,7)^rotr(x,18)^(x>>>3))>>>0;\n const s1=(rotr(y,17)^rotr(y,19)^(y>>>10))>>>0;\n w[i]=(w[i-16]+s0+w[i-7]+s1)>>>0;\n }\n let [a,b,c,d,e,f,g,h]=this.state;\n for (let i=0;i<64;i++) {\n const S1=(rotr(e,6)^rotr(e,11)^rotr(e,25))>>>0;\n const ch=((e&f)^((~e)&g))>>>0;\n const t1=(h+S1+ch+K[i]+w[i])>>>0;\n const S0=(rotr(a,2)^rotr(a,13)^rotr(a,22))>>>0;\n const maj=((a&b)^(a&c)^(b&c))>>>0;\n const t2=(S0+maj)>>>0;\n h=g; g=f; f=e; e=(d+t1)>>>0; d=c; c=b; b=a; a=(t1+t2)>>>0;\n }\n this.state[0]=(this.state[0]+a)>>>0;\n this.state[1]=(this.state[1]+b)>>>0;\n this.state[2]=(this.state[2]+c)>>>0;\n this.state[3]=(this.state[3]+d)>>>0;\n this.state[4]=(this.state[4]+e)>>>0;\n this.state[5]=(this.state[5]+f)>>>0;\n this.state[6]=(this.state[6]+g)>>>0;\n this.state[7]=(this.state[7]+h)>>>0;\n }\n}\n\nexport function sha256ArtifactHash(chunks) {\n const hash=new IncrementalSha256();\n for (const chunk of chunks) hash.update(chunk);\n return hash.digestArtifactHash();\n}\n","export const ENVIRONMENTS = Object.freeze([\n Object.freeze({\n id:'suzhou-garden',number:'世界 08',title:'吴苑澄观 · 苏州园林',\n headline:'探索程序化江南园林与山水建筑。',\n description:'CNB wk/002 移植:亭台楼阁、太湖石、池水、植被、天气与观景点,原生 AgentScape Runtime。',\n facts:['苏州园林','程序化建筑与山水','原生 Three.js Environment'],\n worldFirst:true,rendererMode:'webgl-legacy',\n load:()=>import('./suzhouGarden/index.js').then(module=>module.createSuzhouGardenEnvironment),\n bootstrap:{agent:[0,0,65],table:[5,0,68],cup:[5.35,1.05,68]},coffeeCorner:{table:[5,0,68]}\n }),\n Object.freeze({\n id:'yuanmingyuan-western-mansions',number:'世界 06',title:'圆明园 · 西洋楼',rendererMode:'webgl-legacy',\n headline:'走进一座可被 AI 探索的历史园林。',\n description:'程序化生成的大水法、海晏堂、远瀛观、湖泊与园林;原生接入 AgentScape Runtime。',\n facts:['大型程序化世界','地形碰撞','原生 Three.js 环境'],worldFirst:true,\n load:()=>import('./yuanmingyuan/index.js').then(module=>module.createYuanmingyuanEnvironment),\n bootstrap:{agent:[0,0,62],table:[3,0,62],cup:[3.3,1.1,62]},\n coffeeCorner:{table:[3,0,62]}\n }),\n Object.freeze({\n id:'industrial-cabinet-lab',number:'世界 00D',title:'工业储物柜实验室',\n headline:'操作真正带铰链和滑轨的复杂机械资产。',\n description:'Three.js 程序化建模的钢制柜体,包含两扇独立柜门和两个抽屉。每个部件都由真实物理关节驱动。',\n facts:['双旋转铰链','双滑动关节','Agent 交互验证'],worldFirst:true,\n load:()=>import('./blankWorld.js').then(module=>()=>module.createBlankWorld({id:'industrial-cabinet-lab'})),\n bootstrap:{\n agent:[-2,0,1.5],table:[2.8,0,-2.1],cup:[2.8,1.1,-2.1],\n assets:[{assetId:'industrial_cabinet',position:[0,0,-2.5],instanceId:'industrial_cabinet_01'}]\n },\n coffeeCorner:{table:[2.8,0,-2.1]}\n }),\n Object.freeze({\n id:'magic-cabin',number:'世界 05',title:'魔女小屋 · 原版迁移',headline:'走进原来的二层小屋。',\n description:'原版线稿小屋:旋转楼梯、两层生活空间、门窗、书籍、魔法陈设与原地编辑。',\n facts:['原版双层房屋','丰富物件交互','世界优先'],worldFirst:true,cabin:true,\n load:()=>import('./magicCabin.js').then(module=>module.createMagicCabin),\n bootstrap:{agent:[6,0,-5],table:[7,0,2],cabinet:[7,0,5],cup:[7.35,1.4,2]},\n coffeeCorner:{table:[7,0,2],cabinet:[7,0,5]}\n }),\n Object.freeze({\n id:'woodland-workshop', number:'世界 04', title:'林间工坊', headline:'在世界里,开始创造。',\n description:'开放式工坊与林间庭院。点选物体直接操作,按需打开构建与检查工具。',\n facts:['世界优先交互','真实物理资产','开放式工坊'],\n worldFirst:true,\n inlineEditors:[\n { id:'board', label:'告示板文字', maxLength:24 },\n { id:'sign', label:'木牌文字', maxLength:12 }\n ],\n load:()=>import('./woodlandWorkshop.js').then(module=>module.createWoodlandWorkshop),\n bootstrap:{agent:[0,0,3],table:[2.5,0,-3],cabinet:[-3,0,-5],cup:[2.85,1.4,-3]},\n coffeeCorner:{table:[2.5,0,-3],cabinet:[-3,0,-5]}\n }),\n Object.freeze({\n id:'monument-hall', number:'世界 01', title:'纪念大厅', headline:'为智能留出空间。',\n description:'一个 32 × 24 米的纪念性空间,物理、导航与智能体行为共享同一个现实世界。',\n facts:['RAPIER 物理引擎','RECAST / DETOUR 导航','智能体就绪资产'],\n load:()=>import('./monumentHall.js').then((module)=>module.createMonumentHall),\n bootstrap:{agent:[0,0,9],table:[5.2,0,4.2],cabinet:[-5.2,0,3.9],cup:[5.55,1.4,4.2]},\n coffeeCorner:{table:[4.8,0,4.2],cabinet:[2.4,0,4.2]}\n }),\n Object.freeze({\n id:'ruined-courtyard', number:'世界 02', title:'遗迹庭院', headline:'穿行于记忆之间。',\n description:'一个 36 × 30 米的露天遗迹,由破损拱廊、错层露台与再利用石材构成。',\n facts:['多层级导航网格','物理遗迹场景','CC0 材质'],\n load:()=>import('./ruinedCourtyard.js').then((module)=>module.createRuinedCourtyard),\n bootstrap:{agent:[0,0,12],table:[11.8,1.2,5.1],cabinet:[-11.6,.8,-5.8],cup:[12.1,2.6,5.1]},\n coffeeCorner:{table:[10.5,1.2,3.5],cabinet:[8.4,1.2,3.5]}\n }),\n Object.freeze({\n id:'grand-urban-block', number:'世界 03', title:'大型城市街区', headline:'一个会产生真实后果的城市街区。',\n description:'一个 96 × 72 米的模块化城区,包含林荫大道、抬升街区、市民广场与长距离导航。',\n facts:['96 × 72 米世界','实例化街道生活','分块导航'],\n load:()=>import('./grandUrbanBlock.js').then((module)=>module.createGrandUrbanBlock),\n bootstrap:{agent:[0,0,-30],table:[6,.16,5],cabinet:[-6,.16,5],cup:[6.35,1.56,5]},\n coffeeCorner:{table:[6,.16,5],cabinet:[3.4,.16,5]}\n })\n]);\n\nconst byId=new Map(ENVIRONMENTS.map((value)=>[value.id,value]));\nexport const BUILTIN_ENVIRONMENT_IDS=Object.freeze(ENVIRONMENTS.map((value)=>value.id));\n/** Strict lookup for Scene Project / SDK. Studio routes may use resolveEnvironment's fallback. */\nexport const findEnvironment=(id)=>byId.get(id)||null;\nexport const DEFAULT_ENVIRONMENT=ENVIRONMENTS.find(value=>value.id==='suzhou-garden');\nexport const resolveEnvironment=(id)=>byId.get(id)||DEFAULT_ENVIRONMENT;\n"],"mappings":";AAAA,MAAM,IAAE,IAAI,YAAY;CACtB;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAC7E;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;CAAW;AAC/E,CAAC;AAED,MAAM,UAAQ,IAAI,YAAY;CAC5B;CAAW;CAAW;CAAW;CACjC;CAAW;CAAW;CAAW;AACnC,CAAC;AACD,MAAM,QAAM,GAAE,MAAK,MAAI,IAAI,KAAI,KAAG;AAClC,MAAM,WAAS,UAAQ;CACrB,IAAI,iBAAiB,YAAY,OAAO;CACxC,IAAI,iBAAiB,aAAa,OAAO,IAAI,WAAW,KAAK;CAC7D,IAAI,YAAY,OAAO,KAAK,GAAG,OAAO,IAAI,WAAW,MAAM,QAAO,MAAM,YAAW,MAAM,UAAU;CACnG,MAAM,IAAI,UAAU,wDAAwD;AAC9E;AAEA,IAAa,oBAAb,MAA+B;CAC7B,cAAc;EACZ,KAAK,QA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