agentscape3d 1.0.0-beta.1 → 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 -21
- 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 +16 -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
package/dist/index.d.ts
CHANGED
|
@@ -1,229 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export interface MechanicalMotion {
|
|
12
|
-
id:string;node:string;type:'revolute'|'prismatic';axis:Vec3;limits:[number,number];open:number;
|
|
13
|
-
mass:number;friction:number;stiffness:number;damping:number;
|
|
14
|
-
}
|
|
15
|
-
export interface MechanicalDraft {
|
|
16
|
-
schema:'agentscape.mechanical-draft';schemaVersion:1;name:string;type:string;
|
|
17
|
-
components:MechanicalComponent[];motions:MechanicalMotion[];
|
|
18
|
-
}
|
|
19
|
-
export interface ReviewPhysics { body: 'fixed' | 'dynamic'; mass: number; friction: number; colliders?: Array<{shape:'box';halfExtents:Vec3;translation?:Vec3}> }
|
|
20
|
-
export interface InteractionReview { proposalId:string; confirmed:true; physics:ReviewPhysics; parts?: Array<{id:string;node:string;parent?:string;physics:ReviewPhysics;
|
|
21
|
-
joint:{type:'prismatic'|'revolute';axis:Vec3;parentAnchor:Vec3;childAnchor:Vec3;limits:[number,number];motor?:{stiffness:number;damping:number}}}> }
|
|
22
|
-
export interface GLBInput { kind:'glb';bytes:Uint8Array;name?:string;urdfBytes?:Uint8Array;review?:InteractionReview }
|
|
23
|
-
export interface KinematicHypothesis { id:string;source:'gltf-animation'|'static-geometry';node:string|null;nodeIndex:number;jointType:'revolute'|'prismatic';axisWorld:Vec3;pivotWorld:Vec3;limits:[number,number]|null;evidence:Record<string,unknown>;missing:string[];status:'candidate';executable:false;physicsVerified:false;functionVerified:false }
|
|
24
|
-
export interface KinematicEvidence { schema:'agentscape.kinematic-evidence';schemaVersion:1;hypotheses:KinematicHypothesis[];issues:Array<{code:string;[key:string]:unknown}>;limitations:string[];truncated?:boolean;evidenceSources:string[] }
|
|
25
|
-
export interface KinematicScreenResult { id:string;source:string;jointType:string;status:'simulation-passed'|'simulation-failed'|'blocked';mechanicalFeasible:boolean;physicsVerified:false;functionVerified:false;admission:'not-granted';assumptions?:Record<string,unknown>|null;trials?:Array<{target:number|null;status:'simulation-passed'|'simulation-failed'|'blocked';mechanicalFeasible:boolean;assumptions?:Record<string,unknown>;evidence?:Record<string,unknown>;diagnostics?:Array<{code:string}>}>;evidence?:Record<string,unknown>;diagnostics?:Array<{code:string}> }
|
|
26
|
-
export interface KinematicScreen { schema:'agentscape.kinematic-screen';schemaVersion:1;proposalId:string;sourceHash:string;results:KinematicScreenResult[];admission:'not-granted';interpretation:string }
|
|
27
|
-
export interface CapabilityProposal { schema:'agentscape.capability-proposal';schemaVersion:1;proposalId:string;sourceHash:string;urdfHash:string|null;compilerVersion:string;
|
|
28
|
-
physics:{body:null;mass:null;friction:null;colliders:unknown[]};kinematics:KinematicEvidence;
|
|
29
|
-
parts:Array<{id:string;node:string;parent?:string;joint:Record<string,unknown>;physics?:Record<string,unknown>;confidence?:number;executable:false;physicsVerified:false;missing:string[]}>;
|
|
30
|
-
operations:Array<{action:string;part?:string;executable:false;physicsVerified:false;requires:string}>;missing:string[];evidence:Record<string,unknown> }
|
|
31
|
-
export interface ModelInput { id: string; asset: string | AssetRecipe | MechanicalDraft | GLBInput | ThreeCodeInput; level?: CapabilityLevel; transform?: Transform; position?: Vec3 }
|
|
32
|
-
export interface Diagnostic { code: string; message: string; stage: string; retryable: boolean }
|
|
33
|
-
export type AdmissionStatus = 'ready' | 'provisional' | 'rejected';
|
|
34
|
-
export interface AdmissionLayer { status: AdmissionStatus; reasons: string[]; required: boolean }
|
|
35
|
-
export interface AssetAdmission { status: AdmissionStatus; reasons: string[]; layers: { provider: AdmissionLayer; compiler: AdmissionLayer; runtime: AdmissionLayer } }
|
|
36
|
-
export interface SceneResult<T = unknown> { schema: 'agentscape.scene-result'; schemaVersion: 1; operation: string; status: 'succeeded' | 'failed' | 'cancelled'; revision: number; id?: string; admission: AssetAdmission | null; verification: { status: 'not-requested' | 'verified' | 'unverified'; evidence: unknown }; diagnostics: Diagnostic[]; value: T }
|
|
37
|
-
export interface JobRef { id: string; status: 'running' | 'succeeded' | 'failed' | 'cancelled' }
|
|
38
|
-
export interface AffordancePhysics { registered: boolean; body: 'fixed' | 'dynamic' | 'kinematic' | null; currentBody: 'fixed' | 'dynamic' | 'kinematic' | null; mass: number | null; friction: number | null; colliderCount: number }
|
|
39
|
-
export interface AffordanceJoint { type: 'fixed' | 'revolute' | 'prismatic'; axis?: Vec3; limits?: [number, number]; parentAnchor?: Vec3; childAnchor?: Vec3; [key: string]: unknown }
|
|
40
|
-
export interface ArticulationState { id: string; partName: string; jointType: string; coordinate: number; target: number | null; error: number | null; tolerance: number; limits: [number, number] | null; localAxis: Vec3; coordinateReference: 'rest-zero-pose' }
|
|
41
|
-
export interface AffordanceAction {
|
|
42
|
-
action: string; parameters: Record<string, unknown>; execution: 'query' | 'editor' | 'interaction' | 'world-action' | 'project-action';
|
|
43
|
-
available: boolean | null; canApproach?:boolean; reason?: string | null; partName?: string; distance?: number; maxDistance?: number;
|
|
44
|
-
targetPosition?: Vec3; blocker?: Record<string, unknown>; joint?: AffordanceJoint; state?: ArticulationState | null;
|
|
45
|
-
contract?: { id: string; capability: string; action: string; target: { entityId: string; partName: string }; preconditions: unknown[]; effects: unknown[]; stateTransition: Record<string, unknown>; verifierTarget: Record<string, unknown> };
|
|
46
|
-
}
|
|
47
|
-
export interface SemanticCapability {
|
|
48
|
-
id:string; target:string; name:string; action:'invoke'; source:'asset'|'environment'|'project';
|
|
49
|
-
executor:'query'|'editor'|'interaction'|'world-action'|'project-action';
|
|
50
|
-
description:string; parameters:Record<string,unknown>; available:boolean|null;
|
|
51
|
-
partName?:string; reason?:string; canApproach?:boolean; verification:string;
|
|
52
|
-
capabilitySource?:'declared'|'physical-inference'; graspVerified?:false;
|
|
53
|
-
}
|
|
54
|
-
export interface ObjectAffordances {
|
|
55
|
-
schema: 'agentscape.object-affordances'; schemaVersion: 1; id: string; source: 'asset' | 'environment' | 'composite';
|
|
56
|
-
label: string; kind: string; position: Vec3; state: Record<string, unknown>;
|
|
57
|
-
physics?: AffordancePhysics;
|
|
58
|
-
actions: AffordanceAction[]; capabilities?:SemanticCapability[];
|
|
59
|
-
providers?:string[];stateProviders?:Record<string,Record<string,unknown>>;stateConflicts?:string[];
|
|
60
|
-
capabilityCandidates?:Array<{action:string;executable:false;reason:string;source:string}>;
|
|
61
|
-
evidenceKind: string; physicsVerified: false; pending: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface AffordanceListing { schema: string; total: number; entities: ObjectAffordances[] }
|
|
64
|
-
export type Edit = { type: 'add'; model: Omit<ModelInput, 'asset'> & { asset: string } } | { type: 'setTransform'; id: string; transform: Transform } | { type: 'remove'; id: string } | { type: 'replaceAsset'; id: string; asset: string; level?: CapabilityLevel };
|
|
65
|
-
export type PhysicalInteraction = { action: 'push' | 'drag'; actor: string; target: string; args: { direction: Vec3; distance: number; maxForce?: number } }
|
|
66
|
-
| { action: 'rotate'; actor: string; target: string; args: { axis: Vec3; angle: number; maxTorque?: number } }
|
|
67
|
-
| { action: 'slide'; actor: string; target: string; args: { part: string } & ({ target: number; distance?: never } | { distance: number; target?: never }) }
|
|
68
|
-
| { action: 'rotateJoint'; actor: string; target: string; args: { part: string } & ({ target: number; angle?: never } | { angle: number; target?: never }) };
|
|
69
|
-
export type Interaction = { action: 'invoke'; target: string; name: string; actor?: string; partName?: string; source?:'asset'|'environment'|'project'; args?: Record<string, unknown> } | { action: 'custom'; target: string; name: string; args?: Record<string, unknown>; actor?: string } | PhysicalInteraction | { action: 'navigate'; actor: string; position: Vec3 } | { action: 'pickup'; actor: string; target: string } | { action: 'place'; actor: string; target: string; surfaceId?: string } | { action: 'open' | 'close'; actor: string; target: string; partName?: string }
|
|
70
|
-
| { action: 'turn_on' | 'turn_off' | 'pull_out' | 'return'; actor: string; target: string }
|
|
71
|
-
| { action: 'write'; actor: string; target: string; args: { text: string } };
|
|
72
|
-
export interface SceneHandle {
|
|
73
|
-
registerEntity(definition: ProjectEntityDefinition): () => void;
|
|
74
|
-
registerAction(definition: ProjectActionDefinition): () => void;
|
|
75
|
-
registerStateMachine(definition: ProjectStateMachineDefinition): ProjectStateMachineHandle;
|
|
76
|
-
actors():{agents:Array<{id:string;position:Vec3|null}>;selected:string|null};
|
|
77
|
-
selectActor(actor:string):{agents:Array<{id:string;position:Vec3|null}>;selected:string|null};
|
|
78
|
-
prepareAsset(input:Omit<GLBInput,'review'>):Promise<CapabilityProposal>;
|
|
79
|
-
/** Temporary Rapier tests of source-bound hypotheses; never authorizes actions. */
|
|
80
|
-
screenAsset(input:Omit<GLBInput,'review'> & {proposalId:string;hypothesisIds?:string[]}):Promise<KinematicScreen>;
|
|
81
|
-
inspect(target: string, options?: { actor?: string }): ObjectAffordances | ProjectEntityObservation;
|
|
82
|
-
/** Object-only page in live insertion order. Restart after mutations; no global graph work. */
|
|
83
|
-
observe(options: { actor?: string; offset?: number; limit: number }): { schema: 'agentscape.scene-object-page'; schemaVersion: 1; revision: number; total: number; offset: number; nextOffset: number | null; objects: Array<{ id: string; type: string; asset: string; position: Vec3; state: Record<string, unknown>; transform: Transform; physicsRegistered: boolean }> };
|
|
84
|
-
observe(options?: { actor?: string }): { schema: string; schemaVersion: 1; revision: number; actors: ReturnType<SceneHandle['actors']>; style: Record<string, unknown> | null; affordances: AffordanceListing; project: { total: number; entities: ProjectEntityObservation[] }; objects: Array<{ id: string; type: string; asset: string; position: Vec3; state: Record<string, unknown>; transform: Transform; physicsRegistered: boolean }>; relations: unknown[] };
|
|
85
|
-
addModel(input: ModelInput, options?:{signal?:AbortSignal}): Promise<SceneResult>;
|
|
86
|
-
setTransform(input: { id: string; transform: Transform }): Promise<SceneResult>;
|
|
87
|
-
remove(input: { id: string }): Promise<SceneResult>;
|
|
88
|
-
replaceAsset(input: { id: string; asset: string; level?: CapabilityLevel }): Promise<SceneResult>;
|
|
89
|
-
apply(input: { requestId?: string; expectedRevision?: number; operations: Edit[] }): Promise<SceneResult>;
|
|
90
|
-
interact(input: Interaction): JobRef;
|
|
91
|
-
getJob(id: string): JobRef & { result: SceneResult | null };
|
|
92
|
-
waitJob(id: string): Promise<JobRef & { result: SceneResult | null }>;
|
|
93
|
-
cancelJob(id: string): JobRef & { cancellationRequested: boolean };
|
|
94
|
-
verify(criteria?: unknown[]): SceneResult;
|
|
95
|
-
save(): Promise<SceneResult>;
|
|
96
|
-
exportWorld(storage:WorldStorage,writer?:{write(data:Uint8Array):Promise<unknown>},options?:{name?:string;linked?:boolean;signal?:AbortSignal}):Promise<SceneResult<WorldBlockRef>>;
|
|
97
|
-
prepareWorld(storage:WorldStorage,root:WorldBlockRef,options?:{active?:'none'|'saved'|'bounded';maxActiveEntities?:number;signal?:AbortSignal}):Promise<PreparedWorld>;
|
|
98
|
-
importWorld(storage:WorldStorage,source:AsyncIterable<Uint8Array>,options?:{active?:'none'|'saved'|'bounded';maxActiveEntities?:number;signal?:AbortSignal}):Promise<SceneResult>;
|
|
99
|
-
setStyle(style: string | Record<string, unknown>, options?: { fallback?: 'reject' | 'declared' }): Promise<SceneResult>;
|
|
100
|
-
frame(timestamp: number): void; step(): unknown; close(): void;
|
|
101
|
-
}
|
|
102
|
-
export interface NativeSceneOptions {
|
|
103
|
-
scene: any; camera: any; renderer: any; three?: any; name?: string;
|
|
104
|
-
environmentId?: string; colliders?: Record<string, unknown>[]; navigationRoot?: any;
|
|
105
|
-
staticMeshes?: any[]; walkableMesh?: any; hostProjectId?: string; hostRevision?: string;
|
|
106
|
-
assetModule?: any; autoStart?: boolean; codeExecutor?: any; codeGLTFLoader?: any; assetBaseUrl?: string | null;
|
|
107
|
-
}
|
|
108
|
-
export interface NativeOverlayPrepared {
|
|
109
|
-
summary: unknown;
|
|
110
|
-
commit(): Promise<unknown>;
|
|
111
|
-
dispose(): void;
|
|
112
|
-
}
|
|
113
|
-
export interface NativeSceneHandle extends SceneHandle {
|
|
114
|
-
saveOverlay(storage: WorldStorage, options?: { name?: string; signal?: AbortSignal }): Promise<WorldBlockRef & {kind:'native-overlay'}>;
|
|
115
|
-
prepareOverlay(storage: WorldStorage, root: WorldBlockRef & {kind:'native-overlay'}, options?: {signal?:AbortSignal;active?:'saved'|'none'|'bounded';maxActiveEntities?:number}): Promise<NativeOverlayPrepared>;
|
|
116
|
-
restoreOverlay(storage: WorldStorage, root: WorldBlockRef & {kind:'native-overlay'}, options?: {signal?:AbortSignal;active?:'saved'|'none'|'bounded';maxActiveEntities?:number}): Promise<unknown>;
|
|
117
|
-
exportOverlay(storage: WorldStorage, root: WorldBlockRef & {kind:'native-overlay'}, writer: {write(bytes:Uint8Array):Promise<unknown>}, options?: {signal?:AbortSignal}): Promise<unknown>;
|
|
118
|
-
importOverlay(storage: WorldStorage, source: AsyncIterable<Uint8Array>, options?: {signal?:AbortSignal}): Promise<WorldBlockRef & {kind:'native-overlay'}>;
|
|
119
|
-
}
|
|
120
|
-
export interface NativeSceneSession {
|
|
121
|
-
scene: NativeSceneHandle & { native: { scene: any; renderer: any; camera: any; root: any };
|
|
122
|
-
capabilities: { mode: 'native-scene'; threeRevision: string; sourceConversion: false;
|
|
123
|
-
ownsRenderer: false; nativeProjectSave: false; nativeOverlayPersistence: boolean; environmentColliders: number; navigationRegistered: boolean } };
|
|
124
|
-
world: any;
|
|
125
|
-
close(): void;
|
|
126
|
-
}
|
|
127
|
-
/** Bind a trusted native scene. Save/import/style takeover are explicitly unsupported. */
|
|
128
|
-
export declare function attachNativeScene(options: NativeSceneOptions): Promise<NativeSceneSession>;
|
|
129
|
-
export interface NativeSceneCandidate { id: string; scene: any; camera: any; renderer: any; renders: number }
|
|
130
|
-
export declare function observeNativeRenderer(renderer: any): () => void;
|
|
131
|
-
export declare function listNativeScenes(): NativeSceneCandidate[];
|
|
132
|
-
export declare function subscribeNativeScenes(listener: (candidate: NativeSceneCandidate) => void): () => void;
|
|
133
|
-
export declare const AgentScape: { attach: typeof attachNativeScene; openProject: typeof openCodeProject; open(options?: { canvas?: string | HTMLElement; project?: unknown; bundle?: unknown; environment?: string; autoStart?: boolean; codeExecution?:CodeExecutionOptions }): Promise<SceneHandle> };
|
|
134
|
-
|
|
135
|
-
export interface ProjectEntityDefinition { id: string; label?: string; description?: string; object?: any; attachTo?:'runtime'; read?: () => Record<string, unknown> }
|
|
136
|
-
export interface ProjectActionContext { actor?: string; target: string; object: any; signal?: AbortSignal }
|
|
137
|
-
export interface ProjectActionDefinition {
|
|
138
|
-
target: string; name: string; description?: string; parameters?: Record<string, unknown>;
|
|
139
|
-
/** Default 60s; null disables automatic cancellation for long-running project actions. */
|
|
140
|
-
timeoutMs?:number|null;
|
|
141
|
-
execute(args: any, context: ProjectActionContext): unknown | Promise<unknown>;
|
|
142
|
-
available?(context: ProjectActionContext): boolean;
|
|
143
|
-
verify?(evidence: {args:any;before:Record<string,unknown>;after:Record<string,unknown>;value:unknown}, context:ProjectActionContext): boolean | {verified:boolean;[key:string]:unknown} | Promise<boolean | {verified:boolean;[key:string]:unknown}>;
|
|
144
|
-
}
|
|
145
|
-
export type MachineValue = string | number | boolean | null;
|
|
146
|
-
export interface MachineCondition {
|
|
147
|
-
field:string;op:'eq'|'ne'|'lt'|'lte'|'gt'|'gte';value?:MachineValue;other?:string;
|
|
148
|
-
}
|
|
149
|
-
export interface MachineEffect {field:string;op:'set'|'add';value:MachineValue}
|
|
150
|
-
export interface ProjectMachineTransition {
|
|
151
|
-
name:string;description?:string;expose?:boolean;when?:MachineCondition[];effects:MachineEffect[];
|
|
152
|
-
}
|
|
153
|
-
export interface ProjectMachineTimer {
|
|
154
|
-
field:string;rate:number;max:number;when?:MachineCondition[];onComplete?:string;
|
|
155
|
-
}
|
|
156
|
-
export interface ProjectStateMachineDefinition {
|
|
157
|
-
id:string;label?:string;description?:string;object?:any;attachTo?:'runtime';
|
|
158
|
-
initialState:Record<string,MachineValue>;transitions:ProjectMachineTransition[];
|
|
159
|
-
ranges?:Record<string,{min:number;max:number}>;timers?:ProjectMachineTimer[];
|
|
160
|
-
onChange?(next:Record<string,MachineValue>,previous:Record<string,MachineValue>,meta:{kind:string;name?:string;seconds?:number;completed?:string[]}):void;
|
|
161
|
-
verifyVisual?(state:Record<string,MachineValue>,context:{object:any;kind:string}):boolean;
|
|
162
|
-
}
|
|
163
|
-
export interface ProjectStateMachineHandle {
|
|
164
|
-
read():Record<string,MachineValue>;
|
|
165
|
-
advance(seconds:number):{changed:boolean;state:Record<string,MachineValue>;completed?:string[]};
|
|
166
|
-
dispose():void;
|
|
167
|
-
}
|
|
168
|
-
export interface CodeProjectMachineSnapshot {
|
|
169
|
-
schema:'agentscape.project-machine-state';schemaVersion:1;entities:Record<string,Record<string,MachineValue>>;
|
|
170
|
-
}
|
|
171
|
-
export interface ProjectEntityObservation {
|
|
172
|
-
schema:'agentscape.project-entity';schemaVersion:1;source:'project';id:string;label:string;description:string;state:Record<string,unknown>;physicsVerified:false;
|
|
173
|
-
actions:Array<{action:'custom';name:string;description:string;parameters:Record<string,unknown>;execution:'project-action';available:boolean;verification:'project-defined'|'unverified'}>;
|
|
174
|
-
capabilities?:SemanticCapability[];attachedTo?:'runtime';providers?:string[];stateProviders?:Record<string,Record<string,unknown>>;stateConflicts?:string[];
|
|
175
|
-
}
|
|
176
|
-
export interface CodeProject {
|
|
177
|
-
schema:'agentscape.code-project';schemaVersion:1;id:string;name:string;source:string;
|
|
178
|
-
resources?:Record<string,{mime:string;base64:string}>;state?:unknown;runtime?:unknown;
|
|
179
|
-
machines?:CodeProjectMachineSnapshot;integrity?:string;
|
|
180
|
-
}
|
|
181
|
-
export interface CodeProjectSession {
|
|
182
|
-
scene:SceneHandle & {native:NativeSceneSession['scene']['native'];capabilities:Record<string,unknown>};world:any;
|
|
183
|
-
frame(timestamp:number):void;save():Promise<SceneResult<CodeProject>>;close():void;
|
|
184
|
-
}
|
|
185
|
-
export declare function parseCodeProject(input:unknown,options?:{maxBytes?:number}):Promise<CodeProject>;
|
|
186
|
-
export declare function openCodeProject(options:{project:CodeProject|string;container?:HTMLElement|null;authorized?:boolean;autoStart?:boolean;maxBytes?:number;assetBaseUrl?:string}):Promise<CodeProjectSession>;
|
|
187
|
-
export declare function parseSceneProject(input: unknown): unknown;
|
|
188
|
-
export declare const recipeSchema: { parse(input: unknown): unknown };
|
|
189
|
-
export declare const assetPackageSchema: { parse(input: unknown): unknown };
|
|
190
|
-
export declare const stylePackSchema: { parse(input: unknown): unknown };
|
|
191
|
-
export declare const officialStylePacks: Readonly<Record<'realistic' | 'toon' | 'low-poly', Record<string, unknown>>>;
|
|
192
|
-
|
|
193
|
-
export interface WorldBlockRef { hash:string;bytes:number;kind?:string }
|
|
194
|
-
export interface WorldBlockBackend { read(hash:string,expectedBytes:number):Promise<Uint8Array>;write(hash:string,bytes:Uint8Array):Promise<void> }
|
|
195
|
-
export interface PreparedWorld { summary:{entities:number;assets:number;activeEntities:number;dormantEntities:number;environment:string};commit():Promise<unknown>;dispose():void }
|
|
196
|
-
export declare class WorldStorage {
|
|
197
|
-
constructor(backend:WorldBlockBackend);
|
|
198
|
-
put(bytes:Uint8Array,options?:{signal?:AbortSignal}):Promise<WorldBlockRef>;
|
|
199
|
-
read(ref:WorldBlockRef,options?:{signal?:AbortSignal}):Promise<Uint8Array>;
|
|
200
|
-
resource(ref:WorldBlockRef,options?:{signal?:AbortSignal}):AsyncIterable<Uint8Array>;
|
|
201
|
-
}
|
|
202
|
-
export declare class WorldDirectory implements WorldBlockBackend {
|
|
203
|
-
constructor(directory:FileSystemDirectoryHandle);
|
|
204
|
-
read(hash:string,expectedBytes:number):Promise<Uint8Array>;
|
|
205
|
-
write(hash:string,bytes:Uint8Array):Promise<void>;
|
|
206
|
-
}
|
|
207
|
-
export declare function blobChunks(blob:Blob,options?:{signal?:AbortSignal}):AsyncIterable<Uint8Array>;
|
|
208
|
-
|
|
209
|
-
export interface NativeOverlayHeadStore {
|
|
210
|
-
read():Promise<WorldBlockRef | null>;
|
|
211
|
-
publish(expected:WorldBlockRef | null,root:WorldBlockRef):Promise<WorldBlockRef>;
|
|
212
|
-
}
|
|
213
|
-
export declare class MemoryNativeOverlayHeadStore implements NativeOverlayHeadStore {
|
|
214
|
-
constructor();
|
|
215
|
-
read():Promise<WorldBlockRef | null>;
|
|
216
|
-
publish(expected:WorldBlockRef | null,root:WorldBlockRef):Promise<WorldBlockRef>;
|
|
217
|
-
}
|
|
218
|
-
export declare class IndexedDBNativeOverlayHeadStore implements NativeOverlayHeadStore {
|
|
219
|
-
constructor(options:{key:string;databaseName?:string});
|
|
220
|
-
read():Promise<WorldBlockRef | null>;
|
|
221
|
-
publish(expected:WorldBlockRef | null,root:WorldBlockRef):Promise<WorldBlockRef>;
|
|
222
|
-
}
|
|
223
|
-
export interface NativeOverlayCheckpoint {
|
|
224
|
-
readLatest():Promise<WorldBlockRef | null>;
|
|
225
|
-
saveLatest(options?:{name?:string;signal?:AbortSignal}):Promise<WorldBlockRef>;
|
|
226
|
-
restoreLatest(options?:{signal?:AbortSignal;active?:'saved'|'none'|'bounded';maxActiveEntities?:number}):Promise<WorldBlockRef | null>;
|
|
227
|
-
}
|
|
228
|
-
export declare function createNativeOverlayCheckpoint(scene:NativeSceneHandle,storage:WorldStorage,heads:NativeOverlayHeadStore):NativeOverlayCheckpoint;
|
|
229
|
-
export declare function openNativeOverlayCheckpoint(scene:NativeSceneHandle,storage:WorldStorage,heads:NativeOverlayHeadStore,options?:{restore?:boolean}):Promise<NativeOverlayCheckpoint>;
|
|
1
|
+
export { attach } from './core.js';
|
|
2
|
+
export type {
|
|
3
|
+
SemanticWorld, SemanticScene, SemanticObject3D, SemanticTarget,
|
|
4
|
+
SemanticAction, SemanticActionFn, SemanticActionContext, SemanticDefinition,
|
|
5
|
+
SemanticEntity, SemanticEvent, SemanticPlugin
|
|
6
|
+
} from './core.js';
|
|
7
|
+
export declare const AgentScape: {
|
|
8
|
+
readonly attach: typeof import('./core.js').attach;
|
|
9
|
+
readonly extend: typeof import('./core.js').attach;
|
|
10
|
+
};
|