agentscape3d 1.0.0-beta.1 → 1.0.0-beta.2
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/README.md +23 -48
- package/dist/core.d.ts +68 -0
- package/dist/core.js +209 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +10 -229
- package/dist/index.js +192 -15462
- package/dist/index.js.map +1 -1
- package/package.json +11 -40
- package/cli.mjs +0 -27
- package/dist/AssetCompiler-CDFiElji.js +0 -2451
- package/dist/AssetCompiler-CDFiElji.js.map +0 -1
- package/dist/AssetInputContracts-Dy8iU4eT.js +0 -228
- package/dist/AssetInputContracts-Dy8iU4eT.js.map +0 -1
- package/dist/AssetRecipe-DmFpzxr-.js +0 -55
- package/dist/AssetRecipe-DmFpzxr-.js.map +0 -1
- package/dist/BrowserCodeWorker.js +0 -53615
- package/dist/KinematicHypothesisScreen-D-z6qgMB.js +0 -242
- package/dist/KinematicHypothesisScreen-D-z6qgMB.js.map +0 -1
- package/dist/SceneSerializer-DPVOyeRk.js +0 -353
- package/dist/SceneSerializer-DPVOyeRk.js.map +0 -1
- package/dist/StylePack-DNrdLeGI.js +0 -6314
- package/dist/StylePack-DNrdLeGI.js.map +0 -1
- package/dist/WorldArchive-pSBIGxLa.js +0 -420
- package/dist/WorldArchive-pSBIGxLa.js.map +0 -1
- package/dist/WorldIO-wsDfZGM4.js +0 -150
- package/dist/WorldIO-wsDfZGM4.js.map +0 -1
- package/dist/blankWorld-CBWbwJGj.js +0 -76
- package/dist/blankWorld-CBWbwJGj.js.map +0 -1
- package/dist/disposeObject3D-BQ9TyVC_.js +0 -54
- package/dist/disposeObject3D-BQ9TyVC_.js.map +0 -1
- package/dist/environments-DgH66NqV.js +0 -4220
- package/dist/environments-DgH66NqV.js.map +0 -1
- package/dist/gltfIO-B87nJaat.js +0 -10
- package/dist/gltfIO-B87nJaat.js.map +0 -1
- package/dist/grandUrbanBlock-Ob9pN-CB.js +0 -516
- package/dist/grandUrbanBlock-Ob9pN-CB.js.map +0 -1
- package/dist/magicCabin-D64fD1E2.js +0 -11024
- package/dist/magicCabin-D64fD1E2.js.map +0 -1
- package/dist/mcp.d.ts +0 -2
- package/dist/mcp.js +0 -1
- package/dist/monumentHall-BKbs0UOQ.js +0 -404
- package/dist/monumentHall-BKbs0UOQ.js.map +0 -1
- package/dist/node.d.ts +0 -16
- package/dist/node.js +0 -25
- package/dist/ruinedCourtyard-BoZxHldu.js +0 -697
- package/dist/ruinedCourtyard-BoZxHldu.js.map +0 -1
- package/dist/runtime/application/AgentTools.js +0 -25
- package/dist/runtime/application/README.md +0 -14
- package/dist/runtime/application/buildTaskObservation.js +0 -117
- package/dist/runtime/application/code-execution/AuthoringSandboxEntry.js +0 -46
- package/dist/runtime/application/code-execution/BrowserCodeExecutor.js +0 -35
- package/dist/runtime/application/code-execution/BrowserCodeWorker.js +0 -17
- package/dist/runtime/application/code-execution/RemoteAuthoringDocument.js +0 -72
- package/dist/runtime/application/createSession.js +0 -66
- package/dist/runtime/application/createWorldAuthoringContext.js +0 -400
- package/dist/runtime/application/generation/GenerationOrchestrator.js +0 -629
- package/dist/runtime/application/generation/GenerationRuntime.js +0 -214
- package/dist/runtime/application/generation/PromptHybridWorldOrchestrator.js +0 -285
- package/dist/runtime/application/native-scene/CodeProject.js +0 -119
- package/dist/runtime/application/native-scene/CodeProjectModules.js +0 -128
- package/dist/runtime/application/native-scene/NativeEnvironmentGeometry.js +0 -62
- package/dist/runtime/application/native-scene/NativeOverlayCheckpoint.js +0 -127
- package/dist/runtime/application/native-scene/NativeRenderDiscovery.js +0 -51
- package/dist/runtime/application/native-scene/NativeSceneHost.js +0 -164
- package/dist/runtime/application/native-scene/NativeSceneOverlay.js +0 -116
- package/dist/runtime/application/native-scene/NativeThreeModule.js +0 -16
- package/dist/runtime/application/object-forge/SceneObjectForge.js +0 -232
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetBuilder.js +0 -54
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetContract.js +0 -22
- package/dist/runtime/application/programmatic-assets/ThreeCodeAsset.js +0 -40
- package/dist/runtime/application/scene/CapabilityResolver.js +0 -79
- package/dist/runtime/application/scene/RequestWindow.js +0 -54
- package/dist/runtime/application/scene/SceneAgentTools.js +0 -21
- package/dist/runtime/application/scene/SceneContracts.js +0 -45
- package/dist/runtime/application/scene/SceneEditService.js +0 -144
- package/dist/runtime/application/scene/SceneFacade.js +0 -267
- package/dist/runtime/application/scene/SceneInteractionAdapters.js +0 -40
- package/dist/runtime/application/scene/SceneJobController.js +0 -229
- package/dist/runtime/application/scene/ScenePackage.js +0 -162
- package/dist/runtime/application/scene/ScenePersistence.js +0 -50
- package/dist/runtime/application/scene/SceneProject.js +0 -95
- package/dist/runtime/application/scene/SceneSkillNames.js +0 -5
- package/dist/runtime/application/scene/StarterScene.js +0 -56
- package/dist/runtime/application/scene/WorldArchive.js +0 -87
- package/dist/runtime/application/scene/WorldDirectory.js +0 -20
- package/dist/runtime/application/scene/WorldDocument.js +0 -74
- package/dist/runtime/application/scene/WorldIO.js +0 -103
- package/dist/runtime/application/scene/WorldStorage.js +0 -137
- package/dist/runtime/application/skills/SkillRegistry.js +0 -163
- package/dist/runtime/application/skills/packs/acceptanceSkills.js +0 -32
- package/dist/runtime/application/skills/packs/affordanceSkills.js +0 -36
- package/dist/runtime/application/skills/packs/assetSkills.js +0 -46
- package/dist/runtime/application/skills/packs/authoringSkills.js +0 -16
- package/dist/runtime/application/skills/packs/batchSkills.js +0 -22
- package/dist/runtime/application/skills/packs/codeSkills.js +0 -106
- package/dist/runtime/application/skills/packs/generationSkills.js +0 -45
- package/dist/runtime/application/skills/packs/interactionSkills.js +0 -46
- package/dist/runtime/application/skills/packs/recoverySkills.js +0 -80
- package/dist/runtime/application/skills/packs/sceneSkills.js +0 -24
- package/dist/runtime/application/skills/packs/spatialSkills.js +0 -35
- package/dist/runtime/application/skills/packs/verificationSkills.js +0 -14
- package/dist/runtime/application/skills/packs/worldSkills.js +0 -45
- package/dist/runtime/application/skills/registerCoreSkills.js +0 -31
- package/dist/runtime/application/skills/skillPrimitives.js +0 -4
- package/dist/runtime/application/tasks/CabinetCupTask.js +0 -76
- package/dist/runtime/application/tasks.jsonl +0 -67
- package/dist/runtime/application/world-authoring/AuthoringAssetProducer.js +0 -42
- package/dist/runtime/application/world-authoring/AuthoringDiff.js +0 -149
- package/dist/runtime/application/world-authoring/AuthoringDocument.js +0 -825
- package/dist/runtime/application/world-authoring/AuthoringExecutionHost.js +0 -109
- package/dist/runtime/application/world-authoring/AuthoringIdentity.js +0 -17
- package/dist/runtime/application/world-authoring/AuthoringModelResolver.js +0 -29
- package/dist/runtime/application/world-authoring/AuthoringPatch.js +0 -118
- package/dist/runtime/application/world-authoring/AuthoringPromotionController.js +0 -334
- package/dist/runtime/application/world-authoring/AuthoringPromotionSource.js +0 -126
- package/dist/runtime/application/world-authoring/AuthoringRevisionHistory.js +0 -144
- package/dist/runtime/application/world-authoring/HeadlessImageExport.js +0 -174
- package/dist/runtime/application/world-authoring/ModelRef.js +0 -62
- package/dist/runtime/apps/mcp-server/AUTHORING.md +0 -71
- package/dist/runtime/apps/mcp-server/AuthoringSandboxEntry.js +0 -1
- package/dist/runtime/apps/mcp-server/AuthoringSandboxWorker.mjs +0 -30
- package/dist/runtime/apps/mcp-server/BuildEnvironment.js +0 -17
- package/dist/runtime/apps/mcp-server/CodeExecutor.js +0 -71
- package/dist/runtime/apps/mcp-server/DEPLOYMENT-PC2.md +0 -42
- package/dist/runtime/apps/mcp-server/DockerBuildRunner.js +0 -66
- package/dist/runtime/apps/mcp-server/FileAssetRepository.js +0 -159
- package/dist/runtime/apps/mcp-server/HeadlessAssetIO.js +0 -8
- package/dist/runtime/apps/mcp-server/HeadlessGLTFLoader.js +0 -47
- package/dist/runtime/apps/mcp-server/HeadlessWorldHost.js +0 -132
- package/dist/runtime/apps/mcp-server/IsolatedAuthoringExecutor.js +0 -6
- package/dist/runtime/apps/mcp-server/PROGRAMMATIC-ASSETS.md +0 -116
- package/dist/runtime/apps/mcp-server/ProgrammaticAssets.js +0 -60
- package/dist/runtime/apps/mcp-server/README.md +0 -150
- package/dist/runtime/apps/mcp-server/RemoteAuthoringDocument.js +0 -1
- package/dist/runtime/apps/mcp-server/SandboxBundle.js +0 -13
- package/dist/runtime/apps/mcp-server/SessionManager.js +0 -80
- package/dist/runtime/apps/mcp-server/StudioBridgeHttp.js +0 -58
- package/dist/runtime/apps/mcp-server/StudioLiveBridge.js +0 -190
- package/dist/runtime/apps/mcp-server/TrustedAuthoringWorker.mjs +0 -16
- package/dist/runtime/apps/mcp-server/VALIDATION.md +0 -45
- package/dist/runtime/apps/mcp-server/acceptance-evidence.json +0 -332
- package/dist/runtime/apps/mcp-server/errorDiagnostics.js +0 -32
- package/dist/runtime/apps/mcp-server/examples/code-house.js +0 -24
- package/dist/runtime/apps/mcp-server/examples/procedural-assets.js +0 -37
- package/dist/runtime/apps/mcp-server/main.mjs +0 -56
- package/dist/runtime/apps/mcp-server/registerTools.js +0 -215
- package/dist/runtime/apps/mcp-server/sandbox/run.mjs +0 -23
- package/dist/runtime/apps/mcp-server/security.js +0 -21
- package/dist/runtime/apps/mcp-server/tasks.jsonl +0 -9
- package/dist/runtime/apps/server/CapabilityAdapterRegistry.js +0 -157
- package/dist/runtime/apps/server/README.md +0 -7
- package/dist/runtime/apps/server/WorldDiskStorage.js +0 -51
- package/dist/runtime/apps/server/openai-compatible-agent-gateway.mjs +0 -278
- package/dist/runtime/apps/server/tasks.jsonl +0 -10
- package/dist/runtime/foundation/EventBus.js +0 -18
- package/dist/runtime/foundation/JsonGateway.js +0 -47
- package/dist/runtime/foundation/PolicyEngine.js +0 -21
- package/dist/runtime/foundation/README.md +0 -7
- package/dist/runtime/foundation/TraceRecorder.js +0 -76
- package/dist/runtime/foundation/errors.js +0 -8
- package/dist/runtime/foundation/simulation/SimulationProfile.js +0 -143
- package/dist/runtime/foundation/version.js +0 -2
- package/dist/runtime/modules/agent/README.md +0 -11
- package/dist/runtime/modules/agent/ToolCallingAgent.js +0 -19
- package/dist/runtime/modules/agent/bootstrapWorld.js +0 -10
- package/dist/runtime/modules/agent/buildRecoveryProposals.js +0 -533
- package/dist/runtime/modules/agent/execution/AgentExecutionRules.js +0 -127
- package/dist/runtime/modules/agent/execution/AgentRunResults.js +0 -55
- package/dist/runtime/modules/agent/execution/AgentRunSession.js +0 -390
- package/dist/runtime/modules/agent/execution/AgentToolInvoker.js +0 -39
- package/dist/runtime/modules/agent/gateway/HttpLLMGateway.js +0 -19
- package/dist/runtime/modules/agent/prompt/index.js +0 -46
- package/dist/runtime/modules/agent/tasks.jsonl +0 -94
- package/dist/runtime/modules/artifact/ArtifactContentGate.js +0 -144
- package/dist/runtime/modules/artifact/ArtifactDescriptor.js +0 -280
- package/dist/runtime/modules/artifact/ArtifactImporter.js +0 -185
- package/dist/runtime/modules/artifact/ArtifactModule.js +0 -111
- package/dist/runtime/modules/artifact/ArtifactRegistry.js +0 -197
- package/dist/runtime/modules/artifact/IncrementalSha256.js +0 -129
- package/dist/runtime/modules/artifact/MemoryArtifactByteStore.js +0 -115
- package/dist/runtime/modules/artifact/README.md +0 -7
- package/dist/runtime/modules/artifact/storage/IndexedDbArtifactStore.js +0 -67
- package/dist/runtime/modules/artifact/tasks.jsonl +0 -31
- package/dist/runtime/modules/asset/AssetModule.js +0 -399
- package/dist/runtime/modules/asset/README.md +0 -54
- package/dist/runtime/modules/asset/loading/AssetLoader.js +0 -157
- package/dist/runtime/modules/asset/loading/GltfAssetLoader.js +0 -61
- package/dist/runtime/modules/asset/loading/builtins/BuiltinAssets.js +0 -95
- package/dist/runtime/modules/asset/loading/builtins/HouseDoor.js +0 -33
- package/dist/runtime/modules/asset/loading/builtins/IndustrialCabinet.js +0 -103
- package/dist/runtime/modules/asset/model/AssetInputContracts.js +0 -95
- package/dist/runtime/modules/asset/model/AssetRef.js +0 -12
- package/dist/runtime/modules/asset/model/MechanicalAssetDraft.js +0 -172
- package/dist/runtime/modules/asset/model/admission.js +0 -117
- package/dist/runtime/modules/asset/model/errors.js +0 -6
- package/dist/runtime/modules/asset/model/parts.js +0 -27
- package/dist/runtime/modules/asset/model/resourceBudget.js +0 -10
- package/dist/runtime/modules/asset/model/schema.js +0 -150
- package/dist/runtime/modules/asset/persistence/AssetManifestStore.js +0 -78
- package/dist/runtime/modules/asset/persistence/CompiledAssetStore.js +0 -84
- package/dist/runtime/modules/asset/persistence/LocalAssetLibrary.js +0 -86
- package/dist/runtime/modules/asset/persistence/LocalAssetLibraryStore.js +0 -81
- package/dist/runtime/modules/asset/production/AssetProductionPipeline.js +0 -272
- package/dist/runtime/modules/asset/production/AssetRecipe.js +0 -32
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenAdapter.js +0 -45
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenBundleAdapter.js +0 -590
- package/dist/runtime/modules/asset/production/compiler/AssetCompiler.js +0 -173
- package/dist/runtime/modules/asset/production/compiler/evidence/AnimationMotionEvidence.js +0 -124
- package/dist/runtime/modules/asset/production/compiler/evidence/StaticPanelEvidence.js +0 -56
- package/dist/runtime/modules/asset/production/compiler/gltfIO.js +0 -6
- package/dist/runtime/modules/asset/production/compiler/partGeometry.js +0 -74
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulatedCollisionPass.js +0 -63
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulationCandidatePass.js +0 -48
- package/dist/runtime/modules/asset/production/compiler/passes/AuthoringIntentPass.js +0 -16
- package/dist/runtime/modules/asset/production/compiler/passes/ColliderFallbackPass.js +0 -30
- package/dist/runtime/modules/asset/production/compiler/passes/CompileQualityPass.js +0 -75
- package/dist/runtime/modules/asset/production/compiler/passes/ExplicitDefinitionPass.js +0 -20
- package/dist/runtime/modules/asset/production/compiler/passes/GLTFInspectPass.js +0 -34
- package/dist/runtime/modules/asset/production/compiler/passes/GeometryPass.js +0 -32
- package/dist/runtime/modules/asset/production/compiler/passes/JointFramePass.js +0 -116
- package/dist/runtime/modules/asset/production/compiler/passes/KinematicEvidencePass.js +0 -84
- package/dist/runtime/modules/asset/production/compiler/passes/ManifestPass.js +0 -63
- package/dist/runtime/modules/asset/production/compiler/passes/NormalizeTransformPass.js +0 -16
- package/dist/runtime/modules/asset/production/compiler/passes/OptimizeGLBPass.js +0 -23
- package/dist/runtime/modules/asset/production/compiler/passes/PartColliderPass.js +0 -50
- package/dist/runtime/modules/asset/production/compiler/passes/PartGeometryEnrichmentPass.js +0 -60
- package/dist/runtime/modules/asset/production/compiler/passes/PartProposalPass.js +0 -93
- package/dist/runtime/modules/asset/production/compiler/passes/RemoteEnrichmentPass.js +0 -32
- package/dist/runtime/modules/asset/production/compiler/passes/ResourceBudgetPass.js +0 -55
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentMaterializePass.js +0 -203
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentationEvidencePass.js +0 -43
- package/dist/runtime/modules/asset/production/compiler/passes/SemanticHeuristicPass.js +0 -33
- package/dist/runtime/modules/asset/production/compiler/passes/StructurePass.js +0 -60
- package/dist/runtime/modules/asset/production/compiler/providers/HttpCompilerProvider.js +0 -23
- package/dist/runtime/modules/asset/production/verification/KinematicHypothesisScreen.js +0 -198
- package/dist/runtime/modules/asset/registry/AssetCatalog.js +0 -72
- package/dist/runtime/modules/asset/registry/AssetRegistry.js +0 -51
- package/dist/runtime/modules/asset/registry/manifests/index.js +0 -173
- package/dist/runtime/modules/asset/tasks.jsonl +0 -87
- package/dist/runtime/modules/generation/README.md +0 -9
- package/dist/runtime/modules/generation/connector/ConnectorArtifactClient.js +0 -45
- package/dist/runtime/modules/generation/connector/ConnectorCapabilityAdapter.js +0 -169
- package/dist/runtime/modules/generation/connector/ConnectorClient.js +0 -192
- package/dist/runtime/modules/generation/connector/ConnectorJobClient.js +0 -167
- package/dist/runtime/modules/generation/connector/ConnectorJobEventClient.js +0 -179
- package/dist/runtime/modules/generation/connector/ConnectorSession.js +0 -202
- package/dist/runtime/modules/generation/jobs/GenerationJobProjection.js +0 -239
- package/dist/runtime/modules/generation/jobs/GenerationJobReconciler.js +0 -99
- package/dist/runtime/modules/generation/jobs/GenerationJobStore.js +0 -91
- package/dist/runtime/modules/generation/jobs/GenerationJobTransportOverlay.js +0 -50
- package/dist/runtime/modules/generation/providers/ProviderRegistry.js +0 -304
- package/dist/runtime/modules/generation/tasks.jsonl +0 -35
- package/dist/runtime/modules/navigation/NavigationBackend.js +0 -17
- package/dist/runtime/modules/navigation/RecastNavigationBackend.js +0 -245
- package/dist/runtime/modules/physics/JoltPhysicsBackend.js +0 -850
- package/dist/runtime/modules/physics/PhysicsApiSurface.js +0 -651
- package/dist/runtime/modules/physics/PhysicsBackend.js +0 -88
- package/dist/runtime/modules/physics/RapierPhysicsBackend.js +0 -410
- package/dist/runtime/modules/rendering/README.md +0 -7
- package/dist/runtime/modules/rendering/RendererProbe.js +0 -153
- package/dist/runtime/modules/rendering/WebGpuPostFxPipeline.js +0 -140
- package/dist/runtime/modules/rendering/createRenderer.js +0 -76
- package/dist/runtime/modules/rendering/disposeObject3D.js +0 -34
- package/dist/runtime/modules/rendering/loadGaussianSplatVisual.js +0 -74
- package/dist/runtime/modules/rendering/style/StylePack.js +0 -34
- package/dist/runtime/modules/rendering/style/StyleSystem.js +0 -173
- package/dist/runtime/modules/rendering/tasks.jsonl +0 -7
- package/dist/runtime/modules/world/README.md +0 -13
- package/dist/runtime/modules/world/build/WorldBuilder.js +0 -170
- package/dist/runtime/modules/world/compiler/PipelineEngine.js +0 -32
- package/dist/runtime/modules/world/compiler/WorldAdmission.js +0 -43
- package/dist/runtime/modules/world/compiler/WorldBehaviorCompiler.js +0 -68
- package/dist/runtime/modules/world/compiler/WorldCompilation.js +0 -157
- package/dist/runtime/modules/world/compiler/WorldComposer.js +0 -201
- package/dist/runtime/modules/world/compiler/WorldPhysicsAdmission.js +0 -76
- package/dist/runtime/modules/world/compiler/WorldRecompiler.js +0 -356
- package/dist/runtime/modules/world/compiler/WorldRetry.js +0 -75
- package/dist/runtime/modules/world/compiler/createWorldPipeline.js +0 -379
- package/dist/runtime/modules/world/content/blankWorld.js +0 -35
- package/dist/runtime/modules/world/content/environments.js +0 -84
- package/dist/runtime/modules/world/content/grandUrbanBlock.js +0 -189
- package/dist/runtime/modules/world/content/magic-cabin/README.md +0 -28
- package/dist/runtime/modules/world/content/magic-cabin/affordances.js +0 -64
- package/dist/runtime/modules/world/content/magic-cabin/cabinContents.js +0 -7078
- package/dist/runtime/modules/world/content/magic-cabin/lighting.js +0 -26
- package/dist/runtime/modules/world/content/magic-cabin/materials.js +0 -20
- package/dist/runtime/modules/world/content/magicCabin.js +0 -190
- package/dist/runtime/modules/world/content/monumentHall.js +0 -154
- package/dist/runtime/modules/world/content/ruinedCourtyard.js +0 -196
- package/dist/runtime/modules/world/content/suzhouGarden/README.md +0 -141
- package/dist/runtime/modules/world/content/suzhouGarden/index.js +0 -137
- package/dist/runtime/modules/world/content/suzhouGarden/src/arch.js +0 -491
- package/dist/runtime/modules/world/content/suzhouGarden/src/buildings.js +0 -670
- package/dist/runtime/modules/world/content/suzhouGarden/src/core.js +0 -578
- package/dist/runtime/modules/world/content/suzhouGarden/src/lod.js +0 -127
- package/dist/runtime/modules/world/content/suzhouGarden/src/main.js +0 -642
- package/dist/runtime/modules/world/content/suzhouGarden/src/nature.js +0 -650
- package/dist/runtime/modules/world/content/suzhouGarden/src/rockery.js +0 -280
- package/dist/runtime/modules/world/content/suzhouGarden/src/sky.js +0 -242
- package/dist/runtime/modules/world/content/suzhouGarden/src/water.js +0 -215
- package/dist/runtime/modules/world/content/woodlandWorkshop.js +0 -192
- package/dist/runtime/modules/world/content/yuanmingyuan/README.md +0 -36
- package/dist/runtime/modules/world/content/yuanmingyuan/arch.js +0 -351
- package/dist/runtime/modules/world/content/yuanmingyuan/buildings.js +0 -490
- package/dist/runtime/modules/world/content/yuanmingyuan/core.js +0 -505
- package/dist/runtime/modules/world/content/yuanmingyuan/index.js +0 -101
- package/dist/runtime/modules/world/content/yuanmingyuan/nature.js +0 -435
- package/dist/runtime/modules/world/content/yuanmingyuan/sky.js +0 -169
- package/dist/runtime/modules/world/content/yuanmingyuan/water.js +0 -245
- package/dist/runtime/modules/world/errors.js +0 -9
- package/dist/runtime/modules/world/generated/GeneratedWorldCoordinates.js +0 -50
- package/dist/runtime/modules/world/generated/GeneratedWorldLoader.js +0 -297
- package/dist/runtime/modules/world/runtime/CommandHistory.js +0 -80
- package/dist/runtime/modules/world/runtime/ObjectStore.js +0 -31
- package/dist/runtime/modules/world/runtime/ObjectTransform.js +0 -62
- package/dist/runtime/modules/world/runtime/ObservedEntity.js +0 -37
- package/dist/runtime/modules/world/runtime/ProjectCapabilities.js +0 -207
- package/dist/runtime/modules/world/runtime/SceneSerializer.js +0 -246
- package/dist/runtime/modules/world/runtime/WorldAuthority.js +0 -41
- package/dist/runtime/modules/world/runtime/WorldCollisionSignature.js +0 -14
- package/dist/runtime/modules/world/runtime/WorldCommands.js +0 -502
- package/dist/runtime/modules/world/runtime/WorldObservation.js +0 -71
- package/dist/runtime/modules/world/runtime/WorldQueries.js +0 -340
- package/dist/runtime/modules/world/runtime/WorldRecovery.js +0 -78
- package/dist/runtime/modules/world/runtime/WorldRuntime.js +0 -649
- package/dist/runtime/modules/world/runtime/affordance/ObjectAffordances.js +0 -107
- package/dist/runtime/modules/world/runtime/affordance/WorldAffordances.js +0 -130
- package/dist/runtime/modules/world/runtime/behavior/BehaviorCompiler.js +0 -79
- package/dist/runtime/modules/world/runtime/behavior/ProjectStateMachine.js +0 -195
- package/dist/runtime/modules/world/runtime/behavior/RuleGraph.js +0 -70
- package/dist/runtime/modules/world/runtime/behavior/RuleRuntime.js +0 -115
- package/dist/runtime/modules/world/runtime/graph/SceneGraph.js +0 -216
- package/dist/runtime/modules/world/runtime/interaction/ArticulationRuntime.js +0 -214
- package/dist/runtime/modules/world/runtime/interaction/CarryCapability.js +0 -65
- package/dist/runtime/modules/world/runtime/interaction/CarryRuntime.js +0 -222
- package/dist/runtime/modules/world/runtime/interaction/InteractionApproach.js +0 -130
- package/dist/runtime/modules/world/runtime/interaction/InteractionContract.js +0 -57
- package/dist/runtime/modules/world/runtime/interaction/RecoveryRuntime.js +0 -123
- package/dist/runtime/modules/world/runtime/interaction/SettleRuntime.js +0 -120
- package/dist/runtime/modules/world/runtime/semantic/SemanticWorldView.js +0 -102
- package/dist/runtime/modules/world/runtime/simulation/SimulationClock.js +0 -89
- package/dist/runtime/modules/world/runtime/simulation/SimulationSession.js +0 -99
- package/dist/runtime/modules/world/runtime/simulation/ThermalSystem.js +0 -269
- package/dist/runtime/modules/world/runtime/spatial/SpatialSnapshot.js +0 -56
- package/dist/runtime/modules/world/runtime/spatial/ThreeBvhRuntime.js +0 -36
- package/dist/runtime/modules/world/runtime/systems/InteractionSystem.js +0 -728
- package/dist/runtime/modules/world/runtime/systems/LocomotionSystem.js +0 -269
- package/dist/runtime/modules/world/runtime/systems/NavigationSystem.js +0 -469
- package/dist/runtime/modules/world/runtime/systems/PhysicsSystem.js +0 -1657
- package/dist/runtime/modules/world/runtime/systems/RenderingSystem.js +0 -457
- package/dist/runtime/modules/world/runtime/systems/SpatialSystem.js +0 -284
- package/dist/runtime/modules/world/spec/WorldIR.js +0 -165
- package/dist/runtime/modules/world/spec/WorldIRToolSchema.js +0 -86
- package/dist/runtime/modules/world/spec/WorldPlannerProposal.js +0 -51
- package/dist/runtime/modules/world/spec/WorldRevision.js +0 -231
- package/dist/runtime/modules/world/spec/WorldSpec.js +0 -86
- package/dist/runtime/modules/world/tasks.jsonl +0 -530
- package/dist/runtime/modules/world/verification/ArticulationVerifier.js +0 -254
- package/dist/runtime/modules/world/verification/Finding.js +0 -105
- package/dist/runtime/modules/world/verification/InteractionEvidence.js +0 -69
- package/dist/runtime/modules/world/verification/RepairEngine.js +0 -49
- package/dist/runtime/modules/world/verification/WorldAcceptance.js +0 -158
- package/dist/runtime/modules/world/verification/WorldValidator.js +0 -65
- package/dist/runtime/package-lock.json +0 -6245
- package/dist/runtime/package.json +0 -91
- 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-Dudvovhu.js +0 -364
- package/dist/schema-Dudvovhu.js.map +0 -1
- package/dist/suzhouGarden-BCx_JeV5.js +0 -6159
- package/dist/suzhouGarden-BCx_JeV5.js.map +0 -1
- package/dist/woodlandWorkshop-BGNWPNdK.js +0 -484
- package/dist/woodlandWorkshop-BGNWPNdK.js.map +0 -1
- package/dist/yuanmingyuan-DAIb1msO.js +0 -4962
- package/dist/yuanmingyuan-DAIb1msO.js.map +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "agentscape",
|
|
3
|
-
"version": "2.0.0-dev.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"starter": "vite --open /starter/",
|
|
8
|
-
"test:starter": "vitest run tests/integration/starter-scene.test.js",
|
|
9
|
-
"test:browser:starter": "playwright test tests/browser/starter.spec.js",
|
|
10
|
-
"dev": "vite",
|
|
11
|
-
"generate:world-previews": "node dev/generate-world-previews.mjs",
|
|
12
|
-
"build": "vite build",
|
|
13
|
-
"preview": "vite preview",
|
|
14
|
-
"storybook": "storybook dev -p 6006",
|
|
15
|
-
"storybook:build": "storybook build",
|
|
16
|
-
"test": "vitest run --exclude tests/e2e/generated-cup-runtime-e2e.test.js",
|
|
17
|
-
"test:watch": "vitest",
|
|
18
|
-
"test:core": "node dev/test-group.mjs core",
|
|
19
|
-
"test:ui": "node dev/test-group.mjs ui",
|
|
20
|
-
"test:simulation": "node dev/test-group.mjs world",
|
|
21
|
-
"check": "npm run architecture:validate && npm run assets:validate && npm run world:viability && npm run typecheck && npm run test && npm run build",
|
|
22
|
-
"architecture:validate": "node dev/validate-repository-architecture.mjs && node dev/validate-domain-boundaries.mjs && node dev/validate-convergence.mjs && npm run planning:validate",
|
|
23
|
-
"planning:validate": "node dev/planning.mjs",
|
|
24
|
-
"planning:list": "node dev/planning.mjs --json",
|
|
25
|
-
"planning:ready": "node dev/planning.mjs --ready --json",
|
|
26
|
-
"assets:validate": "node dev/validate-assets.mjs",
|
|
27
|
-
"agent:gateway": "node apps/server/openai-compatible-agent-gateway.mjs",
|
|
28
|
-
"agent:probe": "node dev/scripts/probe-test-agent.mjs",
|
|
29
|
-
"test:asset": "vitest run tests/asset tests/integration/asset-production-pipeline.test.js",
|
|
30
|
-
"test:world": "vitest run tests/world tests/e2e --exclude tests/e2e/generated-cup-runtime-e2e.test.js",
|
|
31
|
-
"test:native-heavyworld": "vitest run tests/integration/native-heavyworld-acceptance.test.js tests/integration/world-preparation-cleanup.test.js tests/integration/world-storage.test.js",
|
|
32
|
-
"experiment:asset": "node dev/experiments/asset/001-real-glb-admission.mjs",
|
|
33
|
-
"experiment:world": "node dev/experiments/world/001-existing-assets-world.mjs",
|
|
34
|
-
"experiment:physics": "node dev/experiments/physics/002-physics-api-harness.mjs",
|
|
35
|
-
"physics:check": "node dev/experiments/physics/002-physics-api-harness.mjs",
|
|
36
|
-
"world:viability": "node dev/experiments/world/002-world-viability.mjs",
|
|
37
|
-
"acceptance:world": "node dev/acceptance/cabinetCup.mjs",
|
|
38
|
-
"test:agent": "vitest run tests/agent tests/e2e/agent-*",
|
|
39
|
-
"test:generation": "vitest run tests/generation tests/contracts tests/studio/generation-job-center-*",
|
|
40
|
-
"test:modal-e2e": "vitest run tests/e2e/generated-cup-runtime-e2e.test.js",
|
|
41
|
-
"test:studio": "vitest run tests/studio",
|
|
42
|
-
"test:observatory": "vitest run tests/observatory",
|
|
43
|
-
"typecheck": "tsc --noEmit && tsc -p sdk/typescript/tsconfig.json",
|
|
44
|
-
"test:artifact": "vitest run tests/artifact",
|
|
45
|
-
"test:browser": "playwright test",
|
|
46
|
-
"mcp:serve": "node apps/mcp-server/main.mjs",
|
|
47
|
-
"test:mcp": "vitest run tests/mcp",
|
|
48
|
-
"sdk:verify": "node dev/verify-sdk-install.mjs"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@dimforge/rapier3d-compat": "^0.20.0",
|
|
52
|
-
"@gltf-transform/core": "^4.4.2",
|
|
53
|
-
"@gltf-transform/extensions": "^4.4.2",
|
|
54
|
-
"@gltf-transform/functions": "^4.4.2",
|
|
55
|
-
"@modelcontextprotocol/node": "2.1.2",
|
|
56
|
-
"@modelcontextprotocol/server": "2.4.0",
|
|
57
|
-
"@recast-navigation/core": "^0.43.1",
|
|
58
|
-
"@recast-navigation/generators": "^0.43.1",
|
|
59
|
-
"@sparkjsdev/spark": "~2.1.0",
|
|
60
|
-
"es-module-lexer": "^2.3.2",
|
|
61
|
-
"jolt-physics": "1.1.0",
|
|
62
|
-
"quickjs-emscripten": "0.32.0",
|
|
63
|
-
"react": "^19.2.8",
|
|
64
|
-
"react-dom": "^19.2.8",
|
|
65
|
-
"rolldown": "1.2.8",
|
|
66
|
-
"sharp": "0.35.5",
|
|
67
|
-
"three": "0.186.0",
|
|
68
|
-
"three-gsmesh": "^0.0.3",
|
|
69
|
-
"three-mesh-bvh": "^0.9.1",
|
|
70
|
-
"zod": "4.6.7",
|
|
71
|
-
"zustand": "^5.0.15"
|
|
72
|
-
},
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"@modelcontextprotocol/client": "2.4.0",
|
|
75
|
-
"@playwright/test": "^1.63.0",
|
|
76
|
-
"@storybook/addon-a11y": "10.6.5",
|
|
77
|
-
"@storybook/addon-mcp": "10.6.5",
|
|
78
|
-
"@storybook/react-vite": "10.6.5",
|
|
79
|
-
"@types/react": "^19.2.18",
|
|
80
|
-
"@types/react-dom": "^19.2.7",
|
|
81
|
-
"@vitejs/plugin-react": "^6.1.1",
|
|
82
|
-
"storybook": "10.6.5",
|
|
83
|
-
"typescript": "^7.0.2",
|
|
84
|
-
"vite": "8.3.5",
|
|
85
|
-
"vitest": "5.0.3"
|
|
86
|
-
},
|
|
87
|
-
"overrides": {
|
|
88
|
-
"glob": "14.0.3",
|
|
89
|
-
"minimatch": "11.0.4"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/schema-Dudvovhu.js
DELETED
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4";
|
|
2
|
-
//#region ../../foundation/simulation/SimulationProfile.js
|
|
3
|
-
const positive = z.number().finite().positive().max(0xe8d4a51000);
|
|
4
|
-
const nonnegative = z.number().finite().min(0).max(0xe8d4a51000);
|
|
5
|
-
const temperature = z.number().finite().min(0).max(1e6);
|
|
6
|
-
const power = z.number().finite().min(-1e9).max(1e9);
|
|
7
|
-
const nodeId = z.string().regex(/^[A-Za-z][A-Za-z0-9_-]{0,63}$/);
|
|
8
|
-
const materialDefinitionSchema = z.object({
|
|
9
|
-
name: z.string().trim().min(1).max(80),
|
|
10
|
-
densityKgM3: positive,
|
|
11
|
-
specificHeatJkgK: positive,
|
|
12
|
-
conductivityWmK: nonnegative.optional(),
|
|
13
|
-
provenance: z.enum([
|
|
14
|
-
"authored",
|
|
15
|
-
"ai-estimated",
|
|
16
|
-
"reference"
|
|
17
|
-
]).default("authored")
|
|
18
|
-
}).strict();
|
|
19
|
-
const mass = z.discriminatedUnion("mode", [z.object({
|
|
20
|
-
mode: z.literal("explicit"),
|
|
21
|
-
massKg: positive
|
|
22
|
-
}).strict(), z.object({
|
|
23
|
-
mode: z.literal("density-volume"),
|
|
24
|
-
volumeM3: positive
|
|
25
|
-
}).strict()]);
|
|
26
|
-
const thermalDefinitionSchema = z.object({
|
|
27
|
-
mass,
|
|
28
|
-
initialTemperatureK: temperature.default(293.15),
|
|
29
|
-
heatPowerW: power.default(0),
|
|
30
|
-
ambientTemperatureK: temperature.default(293.15),
|
|
31
|
-
ambientConductanceWPerK: nonnegative.default(0),
|
|
32
|
-
contactConductanceWPerK: nonnegative.default(0)
|
|
33
|
-
}).strict();
|
|
34
|
-
const simulationProfileV1Schema = z.object({
|
|
35
|
-
schema: z.literal("agentscape.simulation-profile"),
|
|
36
|
-
schemaVersion: z.literal(1),
|
|
37
|
-
model: z.literal("lumped-thermal-v1"),
|
|
38
|
-
material: materialDefinitionSchema,
|
|
39
|
-
thermal: thermalDefinitionSchema
|
|
40
|
-
}).strict();
|
|
41
|
-
const simulationProfileV2Schema = z.object({
|
|
42
|
-
schema: z.literal("agentscape.simulation-profile"),
|
|
43
|
-
schemaVersion: z.literal(2),
|
|
44
|
-
model: z.literal("thermal-network-v1"),
|
|
45
|
-
nodes: z.array(z.object({
|
|
46
|
-
id: nodeId,
|
|
47
|
-
partName: z.union([z.literal("$root"), nodeId]),
|
|
48
|
-
material: materialDefinitionSchema,
|
|
49
|
-
thermal: thermalDefinitionSchema
|
|
50
|
-
}).strict()).min(1).max(32),
|
|
51
|
-
links: z.array(z.object({
|
|
52
|
-
from: nodeId,
|
|
53
|
-
to: nodeId,
|
|
54
|
-
conductanceWPerK: positive
|
|
55
|
-
}).strict()).max(96).default([])
|
|
56
|
-
}).strict().superRefine((profile, ctx) => {
|
|
57
|
-
const ids = /* @__PURE__ */ new Set(), parts = /* @__PURE__ */ new Set();
|
|
58
|
-
for (const node of profile.nodes) {
|
|
59
|
-
if (ids.has(node.id)) ctx.addIssue({
|
|
60
|
-
code: "custom",
|
|
61
|
-
message: "Duplicate thermal node ID: " + node.id
|
|
62
|
-
});
|
|
63
|
-
if (parts.has(node.partName)) ctx.addIssue({
|
|
64
|
-
code: "custom",
|
|
65
|
-
message: "Thermal nodes must have unique physical part names: " + node.partName
|
|
66
|
-
});
|
|
67
|
-
if (node.partName === "$root" !== (node.id === "root")) ctx.addIssue({
|
|
68
|
-
code: "custom",
|
|
69
|
-
message: "The physical root must use id \"root\" and partName \"$root\""
|
|
70
|
-
});
|
|
71
|
-
ids.add(node.id);
|
|
72
|
-
parts.add(node.partName);
|
|
73
|
-
}
|
|
74
|
-
if (!ids.has("root")) ctx.addIssue({
|
|
75
|
-
code: "custom",
|
|
76
|
-
message: "A root thermal node is required"
|
|
77
|
-
});
|
|
78
|
-
const edges = /* @__PURE__ */ new Set();
|
|
79
|
-
for (const link of profile.links) {
|
|
80
|
-
if (!ids.has(link.from) || !ids.has(link.to) || link.from === link.to) ctx.addIssue({
|
|
81
|
-
code: "custom",
|
|
82
|
-
message: "Thermal link references missing or identical nodes"
|
|
83
|
-
});
|
|
84
|
-
const key = [link.from, link.to].sort().join("|");
|
|
85
|
-
if (edges.has(key)) ctx.addIssue({
|
|
86
|
-
code: "custom",
|
|
87
|
-
message: "Duplicate thermal link: " + key
|
|
88
|
-
});
|
|
89
|
-
edges.add(key);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
const simulationProfileSchema = z.discriminatedUnion("schemaVersion", [simulationProfileV1Schema, simulationProfileV2Schema]);
|
|
93
|
-
const stateTemperature = z.number().finite().min(0).max(1e6);
|
|
94
|
-
const v1State = z.object({
|
|
95
|
-
schema: z.literal("agentscape.thermal-state"),
|
|
96
|
-
schemaVersion: z.literal(1),
|
|
97
|
-
temperatureK: stateTemperature,
|
|
98
|
-
heatPowerW: power
|
|
99
|
-
}).strict();
|
|
100
|
-
const v2State = z.object({
|
|
101
|
-
schema: z.literal("agentscape.thermal-state"),
|
|
102
|
-
schemaVersion: z.literal(2),
|
|
103
|
-
nodes: z.array(z.object({
|
|
104
|
-
id: nodeId,
|
|
105
|
-
temperatureK: stateTemperature,
|
|
106
|
-
heatPowerW: power
|
|
107
|
-
}).strict()).min(1).max(32)
|
|
108
|
-
}).strict().superRefine((state, ctx) => {
|
|
109
|
-
if (new Set(state.nodes.map((node) => node.id)).size !== state.nodes.length) ctx.addIssue({
|
|
110
|
-
code: "custom",
|
|
111
|
-
message: "Duplicate saved thermal node IDs"
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
const thermalStateSchema = z.discriminatedUnion("schemaVersion", [v1State, v2State]);
|
|
115
|
-
const properties = (material, thermal) => {
|
|
116
|
-
const massKg = thermal.mass.mode === "explicit" ? thermal.mass.massKg : material.densityKgM3 * thermal.mass.volumeM3;
|
|
117
|
-
const heatCapacityJPerK = massKg * material.specificHeatJkgK;
|
|
118
|
-
if (!Number.isFinite(massKg) || !Number.isFinite(heatCapacityJPerK) || massKg <= 0 || heatCapacityJPerK <= 0 || heatCapacityJPerK > 0xde0b6b3a7640000) throw Object.assign(/* @__PURE__ */ new RangeError("Thermal mass or heat capacity is not representable"), { code: "SIMULATION_PROFILE_INVALID" });
|
|
119
|
-
return {
|
|
120
|
-
massKg,
|
|
121
|
-
heatCapacityJPerK
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
function thermalDefinitions(input) {
|
|
125
|
-
const profile = simulationProfileSchema.parse(input);
|
|
126
|
-
return {
|
|
127
|
-
profile,
|
|
128
|
-
nodes: (profile.schemaVersion === 1 ? [{
|
|
129
|
-
id: "root",
|
|
130
|
-
partName: "$root",
|
|
131
|
-
material: profile.material,
|
|
132
|
-
thermal: profile.thermal
|
|
133
|
-
}] : profile.nodes).map((node) => ({
|
|
134
|
-
...node,
|
|
135
|
-
...properties(node.material, node.thermal)
|
|
136
|
-
})),
|
|
137
|
-
links: profile.schemaVersion === 2 ? profile.links : []
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function thermalProperties(input) {
|
|
141
|
-
const { profile, nodes } = thermalDefinitions(input);
|
|
142
|
-
const root = nodes.find((node) => node.id === "root");
|
|
143
|
-
return {
|
|
144
|
-
profile,
|
|
145
|
-
massKg: root.massKg,
|
|
146
|
-
heatCapacityJPerK: root.heatCapacityJPerK
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function validateSimulationProfile(input) {
|
|
150
|
-
if (input == null) return null;
|
|
151
|
-
return thermalDefinitions(input).profile;
|
|
152
|
-
}
|
|
153
|
-
function validateThermalStateForProfile(profileInput, stateInput) {
|
|
154
|
-
const { profile, nodes } = thermalDefinitions(profileInput);
|
|
155
|
-
const state = thermalStateSchema.parse(stateInput);
|
|
156
|
-
if (state.schemaVersion !== profile.schemaVersion) throw new Error("THERMAL_STATE_VERSION_MISMATCH");
|
|
157
|
-
if (state.schemaVersion === 2) {
|
|
158
|
-
const expected = new Set(nodes.map((node) => node.id));
|
|
159
|
-
if (state.nodes.length !== expected.size || state.nodes.some((node) => !expected.delete(node.id))) throw new Error("THERMAL_STATE_NODE_MISMATCH");
|
|
160
|
-
}
|
|
161
|
-
return state;
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region ../../foundation/errors.js
|
|
165
|
-
var AgentScapeError = class extends Error {
|
|
166
|
-
constructor(code, message, details = {}) {
|
|
167
|
-
super(message);
|
|
168
|
-
this.name = "AgentScapeError";
|
|
169
|
-
this.code = code;
|
|
170
|
-
this.details = details;
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region ../../modules/asset/model/errors.js
|
|
175
|
-
const Errors = {
|
|
176
|
-
assetNotFound: (id) => new AgentScapeError("ASSET_NOT_FOUND", "Unknown asset: " + id, { id }),
|
|
177
|
-
invalidManifest: (message, details) => new AgentScapeError("INVALID_MANIFEST", message, details)
|
|
178
|
-
};
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region ../../modules/asset/model/parts.js
|
|
181
|
-
const ROOT_PART = "$root";
|
|
182
|
-
function orderParts(parts = {}) {
|
|
183
|
-
const ordered = [];
|
|
184
|
-
const visiting = /* @__PURE__ */ new Set();
|
|
185
|
-
const visited = /* @__PURE__ */ new Set();
|
|
186
|
-
const visit = (name) => {
|
|
187
|
-
if (visited.has(name)) return;
|
|
188
|
-
if (visiting.has(name)) throw new Error(`Part hierarchy cycle: ${name}`);
|
|
189
|
-
const part = parts[name];
|
|
190
|
-
if (!part) throw new Error(`Unknown part: ${name}`);
|
|
191
|
-
visiting.add(name);
|
|
192
|
-
const parent = part.parent || "$root";
|
|
193
|
-
if (parent !== "$root") {
|
|
194
|
-
if (!parts[parent]) throw new Error(`Unknown parent part: ${parent}`);
|
|
195
|
-
if (parent === name) throw new Error(`Part cannot parent itself: ${name}`);
|
|
196
|
-
visit(parent);
|
|
197
|
-
}
|
|
198
|
-
visiting.delete(name);
|
|
199
|
-
visited.add(name);
|
|
200
|
-
ordered.push([name, part]);
|
|
201
|
-
};
|
|
202
|
-
Object.keys(parts).forEach(visit);
|
|
203
|
-
return ordered;
|
|
204
|
-
}
|
|
205
|
-
//#endregion
|
|
206
|
-
//#region ../../modules/asset/model/schema.js
|
|
207
|
-
const BODY_TYPES = /* @__PURE__ */ new Set([
|
|
208
|
-
"fixed",
|
|
209
|
-
"dynamic",
|
|
210
|
-
"kinematic"
|
|
211
|
-
]);
|
|
212
|
-
const SHAPES = /* @__PURE__ */ new Set([
|
|
213
|
-
"box",
|
|
214
|
-
"cylinder",
|
|
215
|
-
"capsule",
|
|
216
|
-
"convexHull"
|
|
217
|
-
]);
|
|
218
|
-
const ARTICULATION_ACTIONS = /* @__PURE__ */ new Set(["open", "close"]);
|
|
219
|
-
function validateInteractionContract(value, context = {}) {
|
|
220
|
-
if (value == null) return;
|
|
221
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) throw Errors.invalidManifest("interactionContract must be an object", context);
|
|
222
|
-
if (value.schema !== "agentscape.interaction-contract") throw Errors.invalidManifest("interactionContract.schema must be agentscape.interaction-contract", context);
|
|
223
|
-
if (value.schemaVersion !== 1) throw Errors.invalidManifest("interactionContract.schemaVersion must be 1", context);
|
|
224
|
-
if (value.entityId !== context.id) throw Errors.invalidManifest("interactionContract.entityId must match manifest id", context);
|
|
225
|
-
if (!Array.isArray(value.contracts)) throw Errors.invalidManifest("interactionContract.contracts must be an array", context);
|
|
226
|
-
const ids = /* @__PURE__ */ new Set();
|
|
227
|
-
for (const contract of value.contracts) {
|
|
228
|
-
if (!contract?.id || ids.has(contract.id)) throw Errors.invalidManifest("interactionContract contract ids must be unique", context);
|
|
229
|
-
ids.add(contract.id);
|
|
230
|
-
if (!contract.capability || !contract.action) throw Errors.invalidManifest("interactionContract contract requires capability and action", context);
|
|
231
|
-
if (!Array.isArray(contract.preconditions) || !Array.isArray(contract.effects)) throw Errors.invalidManifest("interactionContract contract requires preconditions and effects arrays", context);
|
|
232
|
-
if (!contract.verifierTarget?.type || contract.verifierTarget.type !== "articulation-state") throw Errors.invalidManifest("interactionContract verifierTarget must be articulation-state", context);
|
|
233
|
-
if (!Number.isFinite(contract.verifierTarget.target)) throw Errors.invalidManifest("interactionContract verifierTarget.target must be finite", context);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
function validateReceptacles(receptacles, context = {}) {
|
|
237
|
-
if (receptacles == null) return;
|
|
238
|
-
if (!Array.isArray(receptacles)) throw Errors.invalidManifest("Manifest receptacles must be an array", context);
|
|
239
|
-
const ids = /* @__PURE__ */ new Set();
|
|
240
|
-
for (const receptacle of receptacles) {
|
|
241
|
-
if (!receptacle?.id || typeof receptacle.id !== "string" || ids.has(receptacle.id)) throw Errors.invalidManifest("Receptacle ids must be unique non-empty strings", context);
|
|
242
|
-
ids.add(receptacle.id);
|
|
243
|
-
if (!Array.isArray(receptacle.localPosition) || receptacle.localPosition.length !== 3 || !receptacle.localPosition.every(Number.isFinite)) throw Errors.invalidManifest(`Receptacle ${receptacle.id} localPosition requires finite [3]`, context);
|
|
244
|
-
if (!Array.isArray(receptacle.size) || receptacle.size.length !== 3 || !receptacle.size.every((value) => Number.isFinite(value) && value > 0)) throw Errors.invalidManifest(`Receptacle ${receptacle.id} size requires positive finite [3]`, context);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function validateEmbodiment(embodiment, context = {}) {
|
|
248
|
-
if (!embodiment) return;
|
|
249
|
-
const anchor = embodiment.holdAnchor;
|
|
250
|
-
if (!anchor) return;
|
|
251
|
-
if (!Array.isArray(anchor.translation) || anchor.translation.length !== 3 || !anchor.translation.every(Number.isFinite)) throw Errors.invalidManifest("embodiment.holdAnchor.translation requires finite [3]", context);
|
|
252
|
-
if (anchor.rotation != null && (!Array.isArray(anchor.rotation) || anchor.rotation.length !== 4 || !anchor.rotation.every(Number.isFinite))) throw Errors.invalidManifest("embodiment.holdAnchor.rotation requires finite quaternion[4]", context);
|
|
253
|
-
}
|
|
254
|
-
function validatePhysics(physics, context = {}) {
|
|
255
|
-
if (!physics) return;
|
|
256
|
-
if (physics.body && !BODY_TYPES.has(physics.body)) throw Errors.invalidManifest(`Unsupported physics body: ${physics.body}`, context);
|
|
257
|
-
if (physics.carryable != null && typeof physics.carryable !== "boolean") throw Errors.invalidManifest("physics.carryable must be boolean", context);
|
|
258
|
-
if (physics.navigationObstacle != null && typeof physics.navigationObstacle !== "boolean") throw Errors.invalidManifest("physics.navigationObstacle must be boolean", context);
|
|
259
|
-
if (physics.ccd != null && typeof physics.ccd !== "boolean") throw Errors.invalidManifest("physics.ccd must be boolean", context);
|
|
260
|
-
if (physics.sensor != null && typeof physics.sensor !== "boolean") throw Errors.invalidManifest("physics.sensor must be boolean", context);
|
|
261
|
-
if (physics.collisionEvents != null && typeof physics.collisionEvents !== "boolean") throw Errors.invalidManifest("physics.collisionEvents must be boolean", context);
|
|
262
|
-
if (physics.canSleep != null && typeof physics.canSleep !== "boolean") throw Errors.invalidManifest("physics.canSleep must be boolean", context);
|
|
263
|
-
for (const key of ["lockTranslation", "lockRotation"]) if (physics[key] != null && (!Array.isArray(physics[key]) || physics[key].length !== 3 || !physics[key].every((value) => typeof value === "boolean"))) throw Errors.invalidManifest(`physics.${key} must be boolean[3]`, context);
|
|
264
|
-
if (physics.collision != null) {
|
|
265
|
-
if (!physics.collision || typeof physics.collision !== "object" || Array.isArray(physics.collision)) throw Errors.invalidManifest("physics.collision must be an object", context);
|
|
266
|
-
const { groups, collidesWith } = physics.collision;
|
|
267
|
-
if (!Array.isArray(groups) || groups.length === 0 || groups.some((value) => typeof value !== "string" || !value.trim())) throw Errors.invalidManifest("physics.collision.groups requires non-empty string[]", context);
|
|
268
|
-
if (new Set(groups).size !== groups.length) throw Errors.invalidManifest("physics.collision.groups must be unique", context);
|
|
269
|
-
if (!Array.isArray(collidesWith) || collidesWith.some((value) => typeof value !== "string" || !value.trim())) throw Errors.invalidManifest("physics.collision.collidesWith requires string[]", context);
|
|
270
|
-
if (new Set(collidesWith).size !== collidesWith.length) throw Errors.invalidManifest("physics.collision.collidesWith must be unique", context);
|
|
271
|
-
}
|
|
272
|
-
if (physics.mass != null && (!Number.isFinite(physics.mass) || physics.mass <= 0)) throw Errors.invalidManifest("physics.mass must be positive finite", context);
|
|
273
|
-
for (const key of [
|
|
274
|
-
"friction",
|
|
275
|
-
"restitution",
|
|
276
|
-
"linearDamping",
|
|
277
|
-
"angularDamping"
|
|
278
|
-
]) if (physics[key] != null && (!Number.isFinite(physics[key]) || physics[key] < 0)) throw Errors.invalidManifest(`physics.${key} must be finite and >= 0`, context);
|
|
279
|
-
if (physics.restitution != null && physics.restitution > 1) throw Errors.invalidManifest("physics.restitution must be <= 1", context);
|
|
280
|
-
if (physics.gravityScale != null && !Number.isFinite(physics.gravityScale)) throw Errors.invalidManifest("physics.gravityScale must be finite", context);
|
|
281
|
-
for (const collider of physics.colliders || []) {
|
|
282
|
-
if (!SHAPES.has(collider.shape)) throw Errors.invalidManifest(`Unsupported collider shape: ${collider.shape}`, context);
|
|
283
|
-
if (collider.translation && (collider.translation.length !== 3 || !collider.translation.every(Number.isFinite))) throw Errors.invalidManifest("Collider translation requires finite [3]", context);
|
|
284
|
-
if (collider.shape === "box" && (collider.halfExtents?.length !== 3 || !collider.halfExtents.every((v) => Number.isFinite(v) && v > 0))) throw Errors.invalidManifest("Box collider requires positive finite halfExtents[3]", context);
|
|
285
|
-
if (collider.shape === "cylinder" && (!Number.isFinite(collider.halfHeight) || collider.halfHeight <= 0 || !Number.isFinite(collider.radius) || collider.radius <= 0)) throw Errors.invalidManifest("Cylinder collider requires positive finite halfHeight and radius", context);
|
|
286
|
-
if (collider.shape === "capsule" && (!Number.isFinite(collider.halfHeight) || collider.halfHeight <= 0 || !Number.isFinite(collider.radius) || collider.radius <= 0)) throw Errors.invalidManifest("Capsule collider requires positive finite halfHeight and radius", context);
|
|
287
|
-
if (collider.shape === "convexHull" && (!Array.isArray(collider.vertices) || collider.vertices.length < 12 || collider.vertices.length % 3 !== 0 || !collider.vertices.every(Number.isFinite))) throw Errors.invalidManifest("Convex hull collider requires finite flat vertices[] with at least 4 points", context);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
function validateAssetManifest(manifest) {
|
|
291
|
-
if (!manifest || typeof manifest !== "object") throw Errors.invalidManifest("Manifest must be an object");
|
|
292
|
-
if (!manifest.id || typeof manifest.id !== "string") throw Errors.invalidManifest("Manifest requires string id");
|
|
293
|
-
if (!manifest.type || typeof manifest.type !== "string") throw Errors.invalidManifest("Manifest requires string type", { id: manifest.id });
|
|
294
|
-
if (manifest.capabilityLevel != null && ![
|
|
295
|
-
"visual",
|
|
296
|
-
"physical",
|
|
297
|
-
"interactive"
|
|
298
|
-
].includes(manifest.capabilityLevel)) throw Errors.invalidManifest("Invalid capability level");
|
|
299
|
-
if (manifest.capabilityLevel === "visual" && (manifest.physics || Object.keys(manifest.parts || {}).length || manifest.actions?.length || manifest.surfaces?.length)) throw Errors.invalidManifest("Visual assets cannot declare physical capabilities");
|
|
300
|
-
if (!Array.isArray(manifest.actions)) throw Errors.invalidManifest("Manifest actions must be an array", { id: manifest.id });
|
|
301
|
-
if (new Set(manifest.actions).size !== manifest.actions.length) throw Errors.invalidManifest("Manifest actions must be unique", { id: manifest.id });
|
|
302
|
-
if (![
|
|
303
|
-
"builtin",
|
|
304
|
-
"glb",
|
|
305
|
-
"compiled"
|
|
306
|
-
].includes(manifest.source?.kind)) throw Errors.invalidManifest("Manifest source.kind must be builtin, glb or compiled", { id: manifest.id });
|
|
307
|
-
if (manifest.source.kind === "glb" && !manifest.source.url) throw Errors.invalidManifest("GLB source requires url", { id: manifest.id });
|
|
308
|
-
if (manifest.source.kind === "compiled" && !manifest.source.key) throw Errors.invalidManifest("Compiled source requires key", { id: manifest.id });
|
|
309
|
-
validateInteractionContract(manifest.interactionContract, { id: manifest.id });
|
|
310
|
-
validatePhysics(manifest.physics, { id: manifest.id });
|
|
311
|
-
validateSimulationProfile(manifest.simulation);
|
|
312
|
-
if (manifest.simulation?.schemaVersion === 2) {
|
|
313
|
-
for (const node of manifest.simulation.nodes) if (node.partName !== "$root" && !Object.hasOwn(manifest.parts || {}, node.partName)) throw Errors.invalidManifest("Thermal node references an unknown physical part: " + node.partName, { id: manifest.id });
|
|
314
|
-
}
|
|
315
|
-
validateEmbodiment(manifest.embodiment, { id: manifest.id });
|
|
316
|
-
validateReceptacles(manifest.receptacles, { id: manifest.id });
|
|
317
|
-
for (const [name, part] of Object.entries(manifest.parts || {})) {
|
|
318
|
-
const context = {
|
|
319
|
-
id: manifest.id,
|
|
320
|
-
part: name
|
|
321
|
-
};
|
|
322
|
-
if (!part.node) throw Errors.invalidManifest(`Part ${name} requires node`, context);
|
|
323
|
-
if (part.actions && (!Array.isArray(part.actions) || new Set(part.actions).size !== part.actions.length)) throw Errors.invalidManifest(`Part ${name} actions must be a unique array`, context);
|
|
324
|
-
if (part.joint && ![
|
|
325
|
-
"revolute",
|
|
326
|
-
"prismatic",
|
|
327
|
-
"fixed"
|
|
328
|
-
].includes(part.joint.type)) throw Errors.invalidManifest(`Unsupported joint type: ${part.joint.type}`, context);
|
|
329
|
-
if (part.joint) {
|
|
330
|
-
if (part.joint.type === "fixed") {
|
|
331
|
-
if (part.joint.axis != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define axis`, context);
|
|
332
|
-
if (part.joint.limits != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define limits`, context);
|
|
333
|
-
if (part.joint.motor != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define motor`, context);
|
|
334
|
-
if (Object.keys(part.targets || {}).length) throw Errors.invalidManifest(`Part ${name} fixed joint must not define targets`, context);
|
|
335
|
-
} else if (!Array.isArray(part.joint.axis) || part.joint.axis.length !== 3 || !part.joint.axis.every(Number.isFinite) || Math.hypot(...part.joint.axis) < 1e-6) throw Errors.invalidManifest(`Part ${name} joint requires non-zero finite axis[3]`, context);
|
|
336
|
-
for (const anchor of ["parentAnchor", "childAnchor"]) if (!Array.isArray(part.joint[anchor]) || part.joint[anchor].length !== 3 || !part.joint[anchor].every(Number.isFinite)) throw Errors.invalidManifest(`Part ${name} joint requires finite ${anchor}[3]`, context);
|
|
337
|
-
}
|
|
338
|
-
if (part.joint?.limits && (part.joint.limits.length !== 2 || !part.joint.limits.every(Number.isFinite) || part.joint.limits[0] >= part.joint.limits[1])) throw Errors.invalidManifest(`Part ${name} joint requires ascending finite limits[2]`, context);
|
|
339
|
-
for (const [action, target] of Object.entries(part.targets || {})) {
|
|
340
|
-
if (!part.actions?.includes(action)) throw Errors.invalidManifest(`Part ${name} target ${action} requires matching action`, context);
|
|
341
|
-
if (!Number.isFinite(target)) throw Errors.invalidManifest(`Part ${name} target ${action} must be finite`, context);
|
|
342
|
-
if (!part.joint?.limits || target < part.joint.limits[0] || target > part.joint.limits[1]) throw Errors.invalidManifest(`Part ${name} target ${action} must be within joint limits`, context);
|
|
343
|
-
}
|
|
344
|
-
for (const action of part.actions || []) {
|
|
345
|
-
if (Number.isFinite(part.targets?.[action]) && (!part.joint || part.joint.type === "fixed" || !part.physics?.colliders?.length)) throw Errors.invalidManifest(`Part ${name} executable target ${action} requires a movable joint and colliders`, context);
|
|
346
|
-
if (ARTICULATION_ACTIONS.has(action) && (!part.joint || !part.physics?.colliders?.length || !Number.isFinite(part.targets?.[action]))) throw Errors.invalidManifest(`Part ${name} action ${action} requires physics, joint and explicit target`, context);
|
|
347
|
-
}
|
|
348
|
-
validatePhysics(part.physics, context);
|
|
349
|
-
}
|
|
350
|
-
try {
|
|
351
|
-
for (const [name, part] of orderParts(manifest.parts || {})) if ((part.parent || "$root") === name) throw new Error(`Part cannot parent itself: ${name}`);
|
|
352
|
-
} catch (error) {
|
|
353
|
-
throw Errors.invalidManifest(error.message, { id: manifest.id });
|
|
354
|
-
}
|
|
355
|
-
for (const action of manifest.actions.filter((action) => ARTICULATION_ACTIONS.has(action))) if (!Object.values(manifest.parts || {}).some((part) => part.actions?.includes(action) && Number.isFinite(part.targets?.[action]))) throw Errors.invalidManifest(`Top-level action ${action} requires an executable part target`, {
|
|
356
|
-
id: manifest.id,
|
|
357
|
-
action
|
|
358
|
-
});
|
|
359
|
-
return manifest;
|
|
360
|
-
}
|
|
361
|
-
//#endregion
|
|
362
|
-
export { Errors as a, thermalDefinitions as c, validateThermalStateForProfile as d, orderParts as i, thermalProperties as l, validatePhysics as n, AgentScapeError as o, ROOT_PART as r, simulationProfileSchema as s, validateAssetManifest as t, thermalStateSchema as u };
|
|
363
|
-
|
|
364
|
-
//# sourceMappingURL=schema-Dudvovhu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema-Dudvovhu.js","names":[],"sources":["../../../foundation/simulation/SimulationProfile.js","../../../foundation/errors.js","../../../modules/asset/model/errors.js","../../../modules/asset/model/parts.js","../../../modules/asset/model/schema.js"],"sourcesContent":["import * as z from 'zod/v4';\n\n// Versioned SI contracts shared by Asset admission and World simulation.\n// Material conductivity is descriptive metadata; interface conductance is a\n// separate, explicitly authored parameter, not a derived physical certainty.\nconst positive=z.number().finite().positive().max(1e12);\nconst nonnegative=z.number().finite().min(0).max(1e12);\nconst temperature=z.number().finite().min(0).max(1e6);\nconst power=z.number().finite().min(-1e9).max(1e9);\nconst nodeId=z.string().regex(/^[A-Za-z][A-Za-z0-9_-]{0,63}$/);\n\nexport const materialDefinitionSchema=z.object({\n name:z.string().trim().min(1).max(80),\n densityKgM3:positive,\n specificHeatJkgK:positive,\n conductivityWmK:nonnegative.optional(),\n provenance:z.enum(['authored','ai-estimated','reference']).default('authored')\n}).strict();\n\nconst mass=z.discriminatedUnion('mode',[\n z.object({mode:z.literal('explicit'),massKg:positive}).strict(),\n z.object({mode:z.literal('density-volume'),volumeM3:positive}).strict()\n]);\nexport const thermalDefinitionSchema=z.object({\n mass,\n initialTemperatureK:temperature.default(293.15),\n heatPowerW:power.default(0),\n ambientTemperatureK:temperature.default(293.15),\n ambientConductanceWPerK:nonnegative.default(0),\n contactConductanceWPerK:nonnegative.default(0)\n}).strict();\n\nexport const simulationProfileV1Schema=z.object({\n schema:z.literal('agentscape.simulation-profile'),\n schemaVersion:z.literal(1),\n model:z.literal('lumped-thermal-v1'),\n material:materialDefinitionSchema,\n thermal:thermalDefinitionSchema\n}).strict();\n\nexport const simulationProfileV2Schema=z.object({\n schema:z.literal('agentscape.simulation-profile'),\n schemaVersion:z.literal(2),\n model:z.literal('thermal-network-v1'),\n nodes:z.array(z.object({\n id:nodeId,\n partName:z.union([z.literal('$root'),nodeId]),\n material:materialDefinitionSchema,\n thermal:thermalDefinitionSchema\n }).strict()).min(1).max(32),\n links:z.array(z.object({\n from:nodeId,\n to:nodeId,\n conductanceWPerK:positive\n }).strict()).max(96).default([])\n}).strict().superRefine((profile,ctx)=>{\n const ids=new Set(),parts=new Set();\n for(const node of profile.nodes){\n if(ids.has(node.id))ctx.addIssue({code:'custom',message:'Duplicate thermal node ID: '+node.id});\n if(parts.has(node.partName))ctx.addIssue({code:'custom',message:'Thermal nodes must have unique physical part names: '+node.partName});\n if((node.partName==='$root') !== (node.id==='root'))\n ctx.addIssue({code:'custom',message:'The physical root must use id \"root\" and partName \"$root\"'});\n ids.add(node.id);parts.add(node.partName);\n }\n if(!ids.has('root'))ctx.addIssue({code:'custom',message:'A root thermal node is required'});\n const edges=new Set();\n for(const link of profile.links){\n if(!ids.has(link.from)||!ids.has(link.to)||link.from===link.to)\n ctx.addIssue({code:'custom',message:'Thermal link references missing or identical nodes'});\n const key=[link.from,link.to].sort().join('|');\n if(edges.has(key))ctx.addIssue({code:'custom',message:'Duplicate thermal link: '+key});\n edges.add(key);\n }\n});\n\nexport const simulationProfileSchema=z.discriminatedUnion('schemaVersion',[\n simulationProfileV1Schema,simulationProfileV2Schema\n]);\n\nconst stateTemperature=z.number().finite().min(0).max(1e6);\nconst v1State=z.object({\n schema:z.literal('agentscape.thermal-state'),schemaVersion:z.literal(1),\n temperatureK:stateTemperature,heatPowerW:power\n}).strict();\nconst v2State=z.object({\n schema:z.literal('agentscape.thermal-state'),schemaVersion:z.literal(2),\n nodes:z.array(z.object({\n id:nodeId,temperatureK:stateTemperature,heatPowerW:power\n }).strict()).min(1).max(32)\n}).strict().superRefine((state,ctx)=>{\n if(new Set(state.nodes.map(node=>node.id)).size!==state.nodes.length)\n ctx.addIssue({code:'custom',message:'Duplicate saved thermal node IDs'});\n});\nexport const thermalStateSchema=z.discriminatedUnion('schemaVersion',[v1State,v2State]);\n\nconst properties=(material,thermal)=>{\n const massKg=thermal.mass.mode==='explicit' ? thermal.mass.massKg\n : material.densityKgM3*thermal.mass.volumeM3;\n const heatCapacityJPerK=massKg*material.specificHeatJkgK;\n if(!Number.isFinite(massKg)||!Number.isFinite(heatCapacityJPerK)\n ||massKg<=0||heatCapacityJPerK<=0||heatCapacityJPerK>1e18)\n throw Object.assign(new RangeError('Thermal mass or heat capacity is not representable'),{\n code:'SIMULATION_PROFILE_INVALID'\n });\n return {massKg,heatCapacityJPerK};\n};\n\nexport function thermalDefinitions(input){\n const profile=simulationProfileSchema.parse(input);\n const nodes=profile.schemaVersion===1\n ? [{id:'root',partName:'$root',material:profile.material,thermal:profile.thermal}]\n : profile.nodes;\n return {\n profile,\n nodes:nodes.map(node=>({...node,...properties(node.material,node.thermal)})),\n links:profile.schemaVersion===2 ? profile.links : []\n };\n}\n\nexport function thermalProperties(input){\n const {profile,nodes}=thermalDefinitions(input);\n const root=nodes.find(node=>node.id==='root');\n return {profile,massKg:root.massKg,heatCapacityJPerK:root.heatCapacityJPerK};\n}\n\nexport function validateSimulationProfile(input){\n if(input == null)return null;\n return thermalDefinitions(input).profile;\n}\n\nexport function validateThermalStateForProfile(profileInput,stateInput) {\n const {profile,nodes}=thermalDefinitions(profileInput);\n const state=thermalStateSchema.parse(stateInput);\n if(state.schemaVersion!==profile.schemaVersion)\n throw new Error('THERMAL_STATE_VERSION_MISMATCH');\n if(state.schemaVersion===2){\n const expected=new Set(nodes.map(node=>node.id));\n if(state.nodes.length!==expected.size\n ||state.nodes.some(node=>!expected.delete(node.id)))\n throw new Error('THERMAL_STATE_NODE_MISMATCH');\n }\n return state;\n}\n","export class AgentScapeError extends Error {\r\n constructor(code, message, details = {}) {\r\n super(message);\r\n this.name = 'AgentScapeError';\r\n this.code = code;\r\n this.details = details;\n }\n}\n","import { AgentScapeError } from '../../../foundation/errors.js';\n\nexport const Errors = {\n assetNotFound: (id) => new AgentScapeError('ASSET_NOT_FOUND', 'Unknown asset: ' + id, { id }),\n invalidManifest: (message, details) => new AgentScapeError('INVALID_MANIFEST', message, details)\n};\n","export const ROOT_PART = '$root';\n\nexport function orderParts(parts = {}) {\n const ordered = [];\n const visiting = new Set();\n const visited = new Set();\n\n const visit = (name) => {\n if (visited.has(name)) return;\n if (visiting.has(name)) throw new Error(`Part hierarchy cycle: ${name}`);\n const part = parts[name];\n if (!part) throw new Error(`Unknown part: ${name}`);\n visiting.add(name);\n const parent = part.parent || ROOT_PART;\n if (parent !== ROOT_PART) {\n if (!parts[parent]) throw new Error(`Unknown parent part: ${parent}`);\n if (parent === name) throw new Error(`Part cannot parent itself: ${name}`);\n visit(parent);\n }\n visiting.delete(name);\n visited.add(name);\n ordered.push([name, part]);\n };\n\n Object.keys(parts).forEach(visit);\n return ordered;\n}\n","import { Errors } from './errors.js';\nimport { orderParts, ROOT_PART } from './parts.js';\nimport { validateSimulationProfile } from '../../../foundation/simulation/SimulationProfile.js';\n\nconst BODY_TYPES = new Set(['fixed', 'dynamic', 'kinematic']);\nconst SHAPES = new Set(['box', 'cylinder', 'capsule', 'convexHull']);\nconst ARTICULATION_ACTIONS = new Set(['open', 'close']);\n\nfunction validateInteractionContract(value, context = {}) {\n if (value == null) return;\n if (!value || typeof value !== 'object' || Array.isArray(value)) throw Errors.invalidManifest('interactionContract must be an object', context);\n if (value.schema !== 'agentscape.interaction-contract') throw Errors.invalidManifest('interactionContract.schema must be agentscape.interaction-contract', context);\n if (value.schemaVersion !== 1) throw Errors.invalidManifest('interactionContract.schemaVersion must be 1', context);\n if (value.entityId !== context.id) throw Errors.invalidManifest('interactionContract.entityId must match manifest id', context);\n if (!Array.isArray(value.contracts)) throw Errors.invalidManifest('interactionContract.contracts must be an array', context);\n const ids=new Set();\n for (const contract of value.contracts) {\n if (!contract?.id || ids.has(contract.id)) throw Errors.invalidManifest('interactionContract contract ids must be unique', context);\n ids.add(contract.id);\n if (!contract.capability || !contract.action) throw Errors.invalidManifest('interactionContract contract requires capability and action', context);\n if (!Array.isArray(contract.preconditions) || !Array.isArray(contract.effects)) throw Errors.invalidManifest('interactionContract contract requires preconditions and effects arrays', context);\n if (!contract.verifierTarget?.type || contract.verifierTarget.type !== 'articulation-state') throw Errors.invalidManifest('interactionContract verifierTarget must be articulation-state', context);\n if (!Number.isFinite(contract.verifierTarget.target)) throw Errors.invalidManifest('interactionContract verifierTarget.target must be finite', context);\n }\n}\n\n\nfunction validateReceptacles(receptacles, context = {}) {\n if (receptacles == null) return;\n if (!Array.isArray(receptacles)) throw Errors.invalidManifest('Manifest receptacles must be an array', context);\n const ids=new Set();\n for (const receptacle of receptacles) {\n if (!receptacle?.id || typeof receptacle.id !== 'string' || ids.has(receptacle.id)) throw Errors.invalidManifest('Receptacle ids must be unique non-empty strings', context);\n ids.add(receptacle.id);\n if (!Array.isArray(receptacle.localPosition) || receptacle.localPosition.length !== 3 || !receptacle.localPosition.every(Number.isFinite)) throw Errors.invalidManifest(`Receptacle ${receptacle.id} localPosition requires finite [3]`, context);\n if (!Array.isArray(receptacle.size) || receptacle.size.length !== 3 || !receptacle.size.every((value)=>Number.isFinite(value) && value > 0)) throw Errors.invalidManifest(`Receptacle ${receptacle.id} size requires positive finite [3]`, context);\n }\n}\n\nfunction validateEmbodiment(embodiment, context = {}) {\n if (!embodiment) return;\n const anchor = embodiment.holdAnchor;\n if (!anchor) return;\n if (!Array.isArray(anchor.translation) || anchor.translation.length !== 3 || !anchor.translation.every(Number.isFinite)) {\n throw Errors.invalidManifest('embodiment.holdAnchor.translation requires finite [3]', context);\n }\n if (anchor.rotation != null && (!Array.isArray(anchor.rotation) || anchor.rotation.length !== 4 || !anchor.rotation.every(Number.isFinite))) {\n throw Errors.invalidManifest('embodiment.holdAnchor.rotation requires finite quaternion[4]', context);\n }\n}\n\nexport function validatePhysics(physics, context = {}) {\n if (!physics) return;\n if (physics.body && !BODY_TYPES.has(physics.body)) throw Errors.invalidManifest(`Unsupported physics body: ${physics.body}`, context);\n if (physics.carryable != null && typeof physics.carryable !== 'boolean') throw Errors.invalidManifest('physics.carryable must be boolean', context);\n if (physics.navigationObstacle != null && typeof physics.navigationObstacle !== 'boolean') throw Errors.invalidManifest('physics.navigationObstacle must be boolean', context);\n if (physics.ccd != null && typeof physics.ccd !== 'boolean') throw Errors.invalidManifest('physics.ccd must be boolean', context);\n if (physics.sensor != null && typeof physics.sensor !== 'boolean') throw Errors.invalidManifest('physics.sensor must be boolean', context);\n if (physics.collisionEvents != null && typeof physics.collisionEvents !== 'boolean') throw Errors.invalidManifest('physics.collisionEvents must be boolean', context);\n if (physics.canSleep != null && typeof physics.canSleep !== 'boolean') throw Errors.invalidManifest('physics.canSleep must be boolean', context);\n for (const key of ['lockTranslation','lockRotation']) {\n if (physics[key] != null && (!Array.isArray(physics[key]) || physics[key].length !== 3 || !physics[key].every((value)=>typeof value === 'boolean'))) throw Errors.invalidManifest(`physics.${key} must be boolean[3]`, context);\n }\n if (physics.collision != null) {\n if (!physics.collision || typeof physics.collision !== 'object' || Array.isArray(physics.collision)) throw Errors.invalidManifest('physics.collision must be an object', context);\n const { groups, collidesWith } = physics.collision;\n if (!Array.isArray(groups) || groups.length === 0 || groups.some((value) => typeof value !== 'string' || !value.trim())) throw Errors.invalidManifest('physics.collision.groups requires non-empty string[]', context);\n if (new Set(groups).size !== groups.length) throw Errors.invalidManifest('physics.collision.groups must be unique', context);\n if (!Array.isArray(collidesWith) || collidesWith.some((value) => typeof value !== 'string' || !value.trim())) throw Errors.invalidManifest('physics.collision.collidesWith requires string[]', context);\n if (new Set(collidesWith).size !== collidesWith.length) throw Errors.invalidManifest('physics.collision.collidesWith must be unique', context);\n }\n if (physics.mass != null && (!Number.isFinite(physics.mass) || physics.mass <= 0)) throw Errors.invalidManifest('physics.mass must be positive finite', context);\n for (const key of ['friction','restitution','linearDamping','angularDamping']) {\n if (physics[key] != null && (!Number.isFinite(physics[key]) || physics[key] < 0)) throw Errors.invalidManifest(`physics.${key} must be finite and >= 0`, context);\n }\n if (physics.restitution != null && physics.restitution > 1) throw Errors.invalidManifest('physics.restitution must be <= 1', context);\n if (physics.gravityScale != null && !Number.isFinite(physics.gravityScale)) throw Errors.invalidManifest('physics.gravityScale must be finite', context);\n for (const collider of physics.colliders || []) {\n if (!SHAPES.has(collider.shape)) throw Errors.invalidManifest(`Unsupported collider shape: ${collider.shape}`, context);\n if (collider.translation && (collider.translation.length !== 3 || !collider.translation.every(Number.isFinite))) throw Errors.invalidManifest('Collider translation requires finite [3]', context);\n if (collider.shape === 'box' && (collider.halfExtents?.length !== 3 || !collider.halfExtents.every((v) => Number.isFinite(v) && v > 0))) throw Errors.invalidManifest('Box collider requires positive finite halfExtents[3]', context);\n if (collider.shape === 'cylinder' && (!Number.isFinite(collider.halfHeight) || collider.halfHeight <= 0 || !Number.isFinite(collider.radius) || collider.radius <= 0)) throw Errors.invalidManifest('Cylinder collider requires positive finite halfHeight and radius', context);\n if (collider.shape === 'capsule' && (!Number.isFinite(collider.halfHeight) || collider.halfHeight <= 0 || !Number.isFinite(collider.radius) || collider.radius <= 0)) throw Errors.invalidManifest('Capsule collider requires positive finite halfHeight and radius', context);\n if (collider.shape === 'convexHull' && (!Array.isArray(collider.vertices) || collider.vertices.length < 12 || collider.vertices.length % 3 !== 0 || !collider.vertices.every(Number.isFinite))) throw Errors.invalidManifest('Convex hull collider requires finite flat vertices[] with at least 4 points', context);\n }\n}\n\nexport function validateAssetManifest(manifest) {\n if (!manifest || typeof manifest !== 'object') throw Errors.invalidManifest('Manifest must be an object');\n if (!manifest.id || typeof manifest.id !== 'string') throw Errors.invalidManifest('Manifest requires string id');\n if (!manifest.type || typeof manifest.type !== 'string') throw Errors.invalidManifest('Manifest requires string type', { id: manifest.id });\n if (manifest.capabilityLevel != null && !['visual', 'physical', 'interactive'].includes(manifest.capabilityLevel)) throw Errors.invalidManifest('Invalid capability level');\n if (manifest.capabilityLevel === 'visual' && (manifest.physics || Object.keys(manifest.parts || {}).length || manifest.actions?.length || manifest.surfaces?.length)) throw Errors.invalidManifest('Visual assets cannot declare physical capabilities');\n if (!Array.isArray(manifest.actions)) throw Errors.invalidManifest('Manifest actions must be an array', { id: manifest.id });\n if (new Set(manifest.actions).size !== manifest.actions.length) throw Errors.invalidManifest('Manifest actions must be unique', { id: manifest.id });\n if (!['builtin', 'glb', 'compiled'].includes(manifest.source?.kind)) throw Errors.invalidManifest('Manifest source.kind must be builtin, glb or compiled', { id: manifest.id });\n if (manifest.source.kind === 'glb' && !manifest.source.url) throw Errors.invalidManifest('GLB source requires url', { id: manifest.id });\n if (manifest.source.kind === 'compiled' && !manifest.source.key) throw Errors.invalidManifest('Compiled source requires key', { id: manifest.id });\n validateInteractionContract(manifest.interactionContract, { id: manifest.id });\n validatePhysics(manifest.physics, { id: manifest.id });\n validateSimulationProfile(manifest.simulation);\n if(manifest.simulation?.schemaVersion===2){\n for(const node of manifest.simulation.nodes){\n if(node.partName!=='$root' && !Object.hasOwn(manifest.parts || {},node.partName))\n throw Errors.invalidManifest('Thermal node references an unknown physical part: '+node.partName,{id:manifest.id});\n }\n }\n validateEmbodiment(manifest.embodiment, { id: manifest.id });\n validateReceptacles(manifest.receptacles, { id: manifest.id });\n for (const [name, part] of Object.entries(manifest.parts || {})) {\n const context = { id: manifest.id, part: name };\n if (!part.node) throw Errors.invalidManifest(`Part ${name} requires node`, context);\n if (part.actions && (!Array.isArray(part.actions) || new Set(part.actions).size !== part.actions.length)) throw Errors.invalidManifest(`Part ${name} actions must be a unique array`, context);\n if (part.joint && !['revolute', 'prismatic', 'fixed'].includes(part.joint.type)) throw Errors.invalidManifest(`Unsupported joint type: ${part.joint.type}`, context);\n if (part.joint) {\n if (part.joint.type === 'fixed') {\n if (part.joint.axis != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define axis`, context);\n if (part.joint.limits != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define limits`, context);\n if (part.joint.motor != null) throw Errors.invalidManifest(`Part ${name} fixed joint must not define motor`, context);\n if (Object.keys(part.targets || {}).length) throw Errors.invalidManifest(`Part ${name} fixed joint must not define targets`, context);\n } else if (!Array.isArray(part.joint.axis) || part.joint.axis.length !== 3 || !part.joint.axis.every(Number.isFinite) || Math.hypot(...part.joint.axis) < 1e-6) throw Errors.invalidManifest(`Part ${name} joint requires non-zero finite axis[3]`, context);\n for (const anchor of ['parentAnchor','childAnchor']) {\n if (!Array.isArray(part.joint[anchor]) || part.joint[anchor].length !== 3 || !part.joint[anchor].every(Number.isFinite)) throw Errors.invalidManifest(`Part ${name} joint requires finite ${anchor}[3]`, context);\n }\n }\n if (part.joint?.limits && (part.joint.limits.length !== 2 || !part.joint.limits.every(Number.isFinite) || part.joint.limits[0] >= part.joint.limits[1])) throw Errors.invalidManifest(`Part ${name} joint requires ascending finite limits[2]`, context);\n for (const [action, target] of Object.entries(part.targets || {})) {\n if (!part.actions?.includes(action)) throw Errors.invalidManifest(`Part ${name} target ${action} requires matching action`, context);\n if (!Number.isFinite(target)) throw Errors.invalidManifest(`Part ${name} target ${action} must be finite`, context);\n if (!part.joint?.limits || target < part.joint.limits[0] || target > part.joint.limits[1]) throw Errors.invalidManifest(`Part ${name} target ${action} must be within joint limits`, context);\n }\n for (const action of part.actions || []) {\n if (Number.isFinite(part.targets?.[action]) && (!part.joint || part.joint.type === 'fixed' || !part.physics?.colliders?.length)) throw Errors.invalidManifest(`Part ${name} executable target ${action} requires a movable joint and colliders`, context);\n if (ARTICULATION_ACTIONS.has(action) && (!part.joint || !part.physics?.colliders?.length || !Number.isFinite(part.targets?.[action]))) throw Errors.invalidManifest(`Part ${name} action ${action} requires physics, joint and explicit target`, context);\n }\n validatePhysics(part.physics, context);\n }\n try {\n for (const [name, part] of orderParts(manifest.parts || {})) {\n if ((part.parent || ROOT_PART) === name) throw new Error(`Part cannot parent itself: ${name}`);\n }\n } catch (error) {\n throw Errors.invalidManifest(error.message, { id: manifest.id });\n }\n for (const action of manifest.actions.filter((action) => ARTICULATION_ACTIONS.has(action))) {\n const executable = Object.values(manifest.parts || {}).some((part) => part.actions?.includes(action) && Number.isFinite(part.targets?.[action]));\n if (!executable) throw Errors.invalidManifest(`Top-level action ${action} requires an executable part target`, { id: manifest.id, action });\n }\n return manifest;\n}\n"],"m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