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.
Files changed (387) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -48
  3. package/dist/core.d.ts +68 -0
  4. package/dist/core.js +209 -0
  5. package/dist/core.js.map +1 -0
  6. package/dist/index.d.ts +10 -229
  7. package/dist/index.js +192 -15462
  8. package/dist/index.js.map +1 -1
  9. package/package.json +16 -40
  10. package/cli.mjs +0 -27
  11. package/dist/AssetCompiler-CDFiElji.js +0 -2451
  12. package/dist/AssetCompiler-CDFiElji.js.map +0 -1
  13. package/dist/AssetInputContracts-Dy8iU4eT.js +0 -228
  14. package/dist/AssetInputContracts-Dy8iU4eT.js.map +0 -1
  15. package/dist/AssetRecipe-DmFpzxr-.js +0 -55
  16. package/dist/AssetRecipe-DmFpzxr-.js.map +0 -1
  17. package/dist/BrowserCodeWorker.js +0 -53615
  18. package/dist/KinematicHypothesisScreen-D-z6qgMB.js +0 -242
  19. package/dist/KinematicHypothesisScreen-D-z6qgMB.js.map +0 -1
  20. package/dist/SceneSerializer-DPVOyeRk.js +0 -353
  21. package/dist/SceneSerializer-DPVOyeRk.js.map +0 -1
  22. package/dist/StylePack-DNrdLeGI.js +0 -6314
  23. package/dist/StylePack-DNrdLeGI.js.map +0 -1
  24. package/dist/WorldArchive-pSBIGxLa.js +0 -420
  25. package/dist/WorldArchive-pSBIGxLa.js.map +0 -1
  26. package/dist/WorldIO-wsDfZGM4.js +0 -150
  27. package/dist/WorldIO-wsDfZGM4.js.map +0 -1
  28. package/dist/blankWorld-CBWbwJGj.js +0 -76
  29. package/dist/blankWorld-CBWbwJGj.js.map +0 -1
  30. package/dist/disposeObject3D-BQ9TyVC_.js +0 -54
  31. package/dist/disposeObject3D-BQ9TyVC_.js.map +0 -1
  32. package/dist/environments-DgH66NqV.js +0 -4220
  33. package/dist/environments-DgH66NqV.js.map +0 -1
  34. package/dist/gltfIO-B87nJaat.js +0 -10
  35. package/dist/gltfIO-B87nJaat.js.map +0 -1
  36. package/dist/grandUrbanBlock-Ob9pN-CB.js +0 -516
  37. package/dist/grandUrbanBlock-Ob9pN-CB.js.map +0 -1
  38. package/dist/magicCabin-D64fD1E2.js +0 -11024
  39. package/dist/magicCabin-D64fD1E2.js.map +0 -1
  40. package/dist/mcp.d.ts +0 -2
  41. package/dist/mcp.js +0 -1
  42. package/dist/monumentHall-BKbs0UOQ.js +0 -404
  43. package/dist/monumentHall-BKbs0UOQ.js.map +0 -1
  44. package/dist/node.d.ts +0 -16
  45. package/dist/node.js +0 -25
  46. package/dist/ruinedCourtyard-BoZxHldu.js +0 -697
  47. package/dist/ruinedCourtyard-BoZxHldu.js.map +0 -1
  48. package/dist/runtime/application/AgentTools.js +0 -25
  49. package/dist/runtime/application/README.md +0 -14
  50. package/dist/runtime/application/buildTaskObservation.js +0 -117
  51. package/dist/runtime/application/code-execution/AuthoringSandboxEntry.js +0 -46
  52. package/dist/runtime/application/code-execution/BrowserCodeExecutor.js +0 -35
  53. package/dist/runtime/application/code-execution/BrowserCodeWorker.js +0 -17
  54. package/dist/runtime/application/code-execution/RemoteAuthoringDocument.js +0 -72
  55. package/dist/runtime/application/createSession.js +0 -66
  56. package/dist/runtime/application/createWorldAuthoringContext.js +0 -400
  57. package/dist/runtime/application/generation/GenerationOrchestrator.js +0 -629
  58. package/dist/runtime/application/generation/GenerationRuntime.js +0 -214
  59. package/dist/runtime/application/generation/PromptHybridWorldOrchestrator.js +0 -285
  60. package/dist/runtime/application/native-scene/CodeProject.js +0 -119
  61. package/dist/runtime/application/native-scene/CodeProjectModules.js +0 -128
  62. package/dist/runtime/application/native-scene/NativeEnvironmentGeometry.js +0 -62
  63. package/dist/runtime/application/native-scene/NativeOverlayCheckpoint.js +0 -127
  64. package/dist/runtime/application/native-scene/NativeRenderDiscovery.js +0 -51
  65. package/dist/runtime/application/native-scene/NativeSceneHost.js +0 -164
  66. package/dist/runtime/application/native-scene/NativeSceneOverlay.js +0 -116
  67. package/dist/runtime/application/native-scene/NativeThreeModule.js +0 -16
  68. package/dist/runtime/application/object-forge/SceneObjectForge.js +0 -232
  69. package/dist/runtime/application/programmatic-assets/ProgrammaticAssetBuilder.js +0 -54
  70. package/dist/runtime/application/programmatic-assets/ProgrammaticAssetContract.js +0 -22
  71. package/dist/runtime/application/programmatic-assets/ThreeCodeAsset.js +0 -40
  72. package/dist/runtime/application/scene/CapabilityResolver.js +0 -79
  73. package/dist/runtime/application/scene/RequestWindow.js +0 -54
  74. package/dist/runtime/application/scene/SceneAgentTools.js +0 -21
  75. package/dist/runtime/application/scene/SceneContracts.js +0 -45
  76. package/dist/runtime/application/scene/SceneEditService.js +0 -144
  77. package/dist/runtime/application/scene/SceneFacade.js +0 -267
  78. package/dist/runtime/application/scene/SceneInteractionAdapters.js +0 -40
  79. package/dist/runtime/application/scene/SceneJobController.js +0 -229
  80. package/dist/runtime/application/scene/ScenePackage.js +0 -162
  81. package/dist/runtime/application/scene/ScenePersistence.js +0 -50
  82. package/dist/runtime/application/scene/SceneProject.js +0 -95
  83. package/dist/runtime/application/scene/SceneSkillNames.js +0 -5
  84. package/dist/runtime/application/scene/StarterScene.js +0 -56
  85. package/dist/runtime/application/scene/WorldArchive.js +0 -87
  86. package/dist/runtime/application/scene/WorldDirectory.js +0 -20
  87. package/dist/runtime/application/scene/WorldDocument.js +0 -74
  88. package/dist/runtime/application/scene/WorldIO.js +0 -103
  89. package/dist/runtime/application/scene/WorldStorage.js +0 -137
  90. package/dist/runtime/application/skills/SkillRegistry.js +0 -163
  91. package/dist/runtime/application/skills/packs/acceptanceSkills.js +0 -32
  92. package/dist/runtime/application/skills/packs/affordanceSkills.js +0 -36
  93. package/dist/runtime/application/skills/packs/assetSkills.js +0 -46
  94. package/dist/runtime/application/skills/packs/authoringSkills.js +0 -16
  95. package/dist/runtime/application/skills/packs/batchSkills.js +0 -22
  96. package/dist/runtime/application/skills/packs/codeSkills.js +0 -106
  97. package/dist/runtime/application/skills/packs/generationSkills.js +0 -45
  98. package/dist/runtime/application/skills/packs/interactionSkills.js +0 -46
  99. package/dist/runtime/application/skills/packs/recoverySkills.js +0 -80
  100. package/dist/runtime/application/skills/packs/sceneSkills.js +0 -24
  101. package/dist/runtime/application/skills/packs/spatialSkills.js +0 -35
  102. package/dist/runtime/application/skills/packs/verificationSkills.js +0 -14
  103. package/dist/runtime/application/skills/packs/worldSkills.js +0 -45
  104. package/dist/runtime/application/skills/registerCoreSkills.js +0 -31
  105. package/dist/runtime/application/skills/skillPrimitives.js +0 -4
  106. package/dist/runtime/application/tasks/CabinetCupTask.js +0 -76
  107. package/dist/runtime/application/tasks.jsonl +0 -67
  108. package/dist/runtime/application/world-authoring/AuthoringAssetProducer.js +0 -42
  109. package/dist/runtime/application/world-authoring/AuthoringDiff.js +0 -149
  110. package/dist/runtime/application/world-authoring/AuthoringDocument.js +0 -825
  111. package/dist/runtime/application/world-authoring/AuthoringExecutionHost.js +0 -109
  112. package/dist/runtime/application/world-authoring/AuthoringIdentity.js +0 -17
  113. package/dist/runtime/application/world-authoring/AuthoringModelResolver.js +0 -29
  114. package/dist/runtime/application/world-authoring/AuthoringPatch.js +0 -118
  115. package/dist/runtime/application/world-authoring/AuthoringPromotionController.js +0 -334
  116. package/dist/runtime/application/world-authoring/AuthoringPromotionSource.js +0 -126
  117. package/dist/runtime/application/world-authoring/AuthoringRevisionHistory.js +0 -144
  118. package/dist/runtime/application/world-authoring/HeadlessImageExport.js +0 -174
  119. package/dist/runtime/application/world-authoring/ModelRef.js +0 -62
  120. package/dist/runtime/apps/mcp-server/AUTHORING.md +0 -71
  121. package/dist/runtime/apps/mcp-server/AuthoringSandboxEntry.js +0 -1
  122. package/dist/runtime/apps/mcp-server/AuthoringSandboxWorker.mjs +0 -30
  123. package/dist/runtime/apps/mcp-server/BuildEnvironment.js +0 -17
  124. package/dist/runtime/apps/mcp-server/CodeExecutor.js +0 -71
  125. package/dist/runtime/apps/mcp-server/DEPLOYMENT-PC2.md +0 -42
  126. package/dist/runtime/apps/mcp-server/DockerBuildRunner.js +0 -66
  127. package/dist/runtime/apps/mcp-server/FileAssetRepository.js +0 -159
  128. package/dist/runtime/apps/mcp-server/HeadlessAssetIO.js +0 -8
  129. package/dist/runtime/apps/mcp-server/HeadlessGLTFLoader.js +0 -47
  130. package/dist/runtime/apps/mcp-server/HeadlessWorldHost.js +0 -132
  131. package/dist/runtime/apps/mcp-server/IsolatedAuthoringExecutor.js +0 -6
  132. package/dist/runtime/apps/mcp-server/PROGRAMMATIC-ASSETS.md +0 -116
  133. package/dist/runtime/apps/mcp-server/ProgrammaticAssets.js +0 -60
  134. package/dist/runtime/apps/mcp-server/README.md +0 -150
  135. package/dist/runtime/apps/mcp-server/RemoteAuthoringDocument.js +0 -1
  136. package/dist/runtime/apps/mcp-server/SandboxBundle.js +0 -13
  137. package/dist/runtime/apps/mcp-server/SessionManager.js +0 -80
  138. package/dist/runtime/apps/mcp-server/StudioBridgeHttp.js +0 -58
  139. package/dist/runtime/apps/mcp-server/StudioLiveBridge.js +0 -190
  140. package/dist/runtime/apps/mcp-server/TrustedAuthoringWorker.mjs +0 -16
  141. package/dist/runtime/apps/mcp-server/VALIDATION.md +0 -45
  142. package/dist/runtime/apps/mcp-server/acceptance-evidence.json +0 -332
  143. package/dist/runtime/apps/mcp-server/errorDiagnostics.js +0 -32
  144. package/dist/runtime/apps/mcp-server/examples/code-house.js +0 -24
  145. package/dist/runtime/apps/mcp-server/examples/procedural-assets.js +0 -37
  146. package/dist/runtime/apps/mcp-server/main.mjs +0 -56
  147. package/dist/runtime/apps/mcp-server/registerTools.js +0 -215
  148. package/dist/runtime/apps/mcp-server/sandbox/run.mjs +0 -23
  149. package/dist/runtime/apps/mcp-server/security.js +0 -21
  150. package/dist/runtime/apps/mcp-server/tasks.jsonl +0 -9
  151. package/dist/runtime/apps/server/CapabilityAdapterRegistry.js +0 -157
  152. package/dist/runtime/apps/server/README.md +0 -7
  153. package/dist/runtime/apps/server/WorldDiskStorage.js +0 -51
  154. package/dist/runtime/apps/server/openai-compatible-agent-gateway.mjs +0 -278
  155. package/dist/runtime/apps/server/tasks.jsonl +0 -10
  156. package/dist/runtime/foundation/EventBus.js +0 -18
  157. package/dist/runtime/foundation/JsonGateway.js +0 -47
  158. package/dist/runtime/foundation/PolicyEngine.js +0 -21
  159. package/dist/runtime/foundation/README.md +0 -7
  160. package/dist/runtime/foundation/TraceRecorder.js +0 -76
  161. package/dist/runtime/foundation/errors.js +0 -8
  162. package/dist/runtime/foundation/simulation/SimulationProfile.js +0 -143
  163. package/dist/runtime/foundation/version.js +0 -2
  164. package/dist/runtime/modules/agent/README.md +0 -11
  165. package/dist/runtime/modules/agent/ToolCallingAgent.js +0 -19
  166. package/dist/runtime/modules/agent/bootstrapWorld.js +0 -10
  167. package/dist/runtime/modules/agent/buildRecoveryProposals.js +0 -533
  168. package/dist/runtime/modules/agent/execution/AgentExecutionRules.js +0 -127
  169. package/dist/runtime/modules/agent/execution/AgentRunResults.js +0 -55
  170. package/dist/runtime/modules/agent/execution/AgentRunSession.js +0 -390
  171. package/dist/runtime/modules/agent/execution/AgentToolInvoker.js +0 -39
  172. package/dist/runtime/modules/agent/gateway/HttpLLMGateway.js +0 -19
  173. package/dist/runtime/modules/agent/prompt/index.js +0 -46
  174. package/dist/runtime/modules/agent/tasks.jsonl +0 -94
  175. package/dist/runtime/modules/artifact/ArtifactContentGate.js +0 -144
  176. package/dist/runtime/modules/artifact/ArtifactDescriptor.js +0 -280
  177. package/dist/runtime/modules/artifact/ArtifactImporter.js +0 -185
  178. package/dist/runtime/modules/artifact/ArtifactModule.js +0 -111
  179. package/dist/runtime/modules/artifact/ArtifactRegistry.js +0 -197
  180. package/dist/runtime/modules/artifact/IncrementalSha256.js +0 -129
  181. package/dist/runtime/modules/artifact/MemoryArtifactByteStore.js +0 -115
  182. package/dist/runtime/modules/artifact/README.md +0 -7
  183. package/dist/runtime/modules/artifact/storage/IndexedDbArtifactStore.js +0 -67
  184. package/dist/runtime/modules/artifact/tasks.jsonl +0 -31
  185. package/dist/runtime/modules/asset/AssetModule.js +0 -399
  186. package/dist/runtime/modules/asset/README.md +0 -54
  187. package/dist/runtime/modules/asset/loading/AssetLoader.js +0 -157
  188. package/dist/runtime/modules/asset/loading/GltfAssetLoader.js +0 -61
  189. package/dist/runtime/modules/asset/loading/builtins/BuiltinAssets.js +0 -95
  190. package/dist/runtime/modules/asset/loading/builtins/HouseDoor.js +0 -33
  191. package/dist/runtime/modules/asset/loading/builtins/IndustrialCabinet.js +0 -103
  192. package/dist/runtime/modules/asset/model/AssetInputContracts.js +0 -95
  193. package/dist/runtime/modules/asset/model/AssetRef.js +0 -12
  194. package/dist/runtime/modules/asset/model/MechanicalAssetDraft.js +0 -172
  195. package/dist/runtime/modules/asset/model/admission.js +0 -117
  196. package/dist/runtime/modules/asset/model/errors.js +0 -6
  197. package/dist/runtime/modules/asset/model/parts.js +0 -27
  198. package/dist/runtime/modules/asset/model/resourceBudget.js +0 -10
  199. package/dist/runtime/modules/asset/model/schema.js +0 -150
  200. package/dist/runtime/modules/asset/persistence/AssetManifestStore.js +0 -78
  201. package/dist/runtime/modules/asset/persistence/CompiledAssetStore.js +0 -84
  202. package/dist/runtime/modules/asset/persistence/LocalAssetLibrary.js +0 -86
  203. package/dist/runtime/modules/asset/persistence/LocalAssetLibraryStore.js +0 -81
  204. package/dist/runtime/modules/asset/production/AssetProductionPipeline.js +0 -272
  205. package/dist/runtime/modules/asset/production/AssetRecipe.js +0 -32
  206. package/dist/runtime/modules/asset/production/adapters/EmbodiedGenAdapter.js +0 -45
  207. package/dist/runtime/modules/asset/production/adapters/EmbodiedGenBundleAdapter.js +0 -590
  208. package/dist/runtime/modules/asset/production/compiler/AssetCompiler.js +0 -173
  209. package/dist/runtime/modules/asset/production/compiler/evidence/AnimationMotionEvidence.js +0 -124
  210. package/dist/runtime/modules/asset/production/compiler/evidence/StaticPanelEvidence.js +0 -56
  211. package/dist/runtime/modules/asset/production/compiler/gltfIO.js +0 -6
  212. package/dist/runtime/modules/asset/production/compiler/partGeometry.js +0 -74
  213. package/dist/runtime/modules/asset/production/compiler/passes/ArticulatedCollisionPass.js +0 -63
  214. package/dist/runtime/modules/asset/production/compiler/passes/ArticulationCandidatePass.js +0 -48
  215. package/dist/runtime/modules/asset/production/compiler/passes/AuthoringIntentPass.js +0 -16
  216. package/dist/runtime/modules/asset/production/compiler/passes/ColliderFallbackPass.js +0 -30
  217. package/dist/runtime/modules/asset/production/compiler/passes/CompileQualityPass.js +0 -75
  218. package/dist/runtime/modules/asset/production/compiler/passes/ExplicitDefinitionPass.js +0 -20
  219. package/dist/runtime/modules/asset/production/compiler/passes/GLTFInspectPass.js +0 -34
  220. package/dist/runtime/modules/asset/production/compiler/passes/GeometryPass.js +0 -32
  221. package/dist/runtime/modules/asset/production/compiler/passes/JointFramePass.js +0 -116
  222. package/dist/runtime/modules/asset/production/compiler/passes/KinematicEvidencePass.js +0 -84
  223. package/dist/runtime/modules/asset/production/compiler/passes/ManifestPass.js +0 -63
  224. package/dist/runtime/modules/asset/production/compiler/passes/NormalizeTransformPass.js +0 -16
  225. package/dist/runtime/modules/asset/production/compiler/passes/OptimizeGLBPass.js +0 -23
  226. package/dist/runtime/modules/asset/production/compiler/passes/PartColliderPass.js +0 -50
  227. package/dist/runtime/modules/asset/production/compiler/passes/PartGeometryEnrichmentPass.js +0 -60
  228. package/dist/runtime/modules/asset/production/compiler/passes/PartProposalPass.js +0 -93
  229. package/dist/runtime/modules/asset/production/compiler/passes/RemoteEnrichmentPass.js +0 -32
  230. package/dist/runtime/modules/asset/production/compiler/passes/ResourceBudgetPass.js +0 -55
  231. package/dist/runtime/modules/asset/production/compiler/passes/SegmentMaterializePass.js +0 -203
  232. package/dist/runtime/modules/asset/production/compiler/passes/SegmentationEvidencePass.js +0 -43
  233. package/dist/runtime/modules/asset/production/compiler/passes/SemanticHeuristicPass.js +0 -33
  234. package/dist/runtime/modules/asset/production/compiler/passes/StructurePass.js +0 -60
  235. package/dist/runtime/modules/asset/production/compiler/providers/HttpCompilerProvider.js +0 -23
  236. package/dist/runtime/modules/asset/production/verification/KinematicHypothesisScreen.js +0 -198
  237. package/dist/runtime/modules/asset/registry/AssetCatalog.js +0 -72
  238. package/dist/runtime/modules/asset/registry/AssetRegistry.js +0 -51
  239. package/dist/runtime/modules/asset/registry/manifests/index.js +0 -173
  240. package/dist/runtime/modules/asset/tasks.jsonl +0 -87
  241. package/dist/runtime/modules/generation/README.md +0 -9
  242. package/dist/runtime/modules/generation/connector/ConnectorArtifactClient.js +0 -45
  243. package/dist/runtime/modules/generation/connector/ConnectorCapabilityAdapter.js +0 -169
  244. package/dist/runtime/modules/generation/connector/ConnectorClient.js +0 -192
  245. package/dist/runtime/modules/generation/connector/ConnectorJobClient.js +0 -167
  246. package/dist/runtime/modules/generation/connector/ConnectorJobEventClient.js +0 -179
  247. package/dist/runtime/modules/generation/connector/ConnectorSession.js +0 -202
  248. package/dist/runtime/modules/generation/jobs/GenerationJobProjection.js +0 -239
  249. package/dist/runtime/modules/generation/jobs/GenerationJobReconciler.js +0 -99
  250. package/dist/runtime/modules/generation/jobs/GenerationJobStore.js +0 -91
  251. package/dist/runtime/modules/generation/jobs/GenerationJobTransportOverlay.js +0 -50
  252. package/dist/runtime/modules/generation/providers/ProviderRegistry.js +0 -304
  253. package/dist/runtime/modules/generation/tasks.jsonl +0 -35
  254. package/dist/runtime/modules/navigation/NavigationBackend.js +0 -17
  255. package/dist/runtime/modules/navigation/RecastNavigationBackend.js +0 -245
  256. package/dist/runtime/modules/physics/JoltPhysicsBackend.js +0 -850
  257. package/dist/runtime/modules/physics/PhysicsApiSurface.js +0 -651
  258. package/dist/runtime/modules/physics/PhysicsBackend.js +0 -88
  259. package/dist/runtime/modules/physics/RapierPhysicsBackend.js +0 -410
  260. package/dist/runtime/modules/rendering/README.md +0 -7
  261. package/dist/runtime/modules/rendering/RendererProbe.js +0 -153
  262. package/dist/runtime/modules/rendering/WebGpuPostFxPipeline.js +0 -140
  263. package/dist/runtime/modules/rendering/createRenderer.js +0 -76
  264. package/dist/runtime/modules/rendering/disposeObject3D.js +0 -34
  265. package/dist/runtime/modules/rendering/loadGaussianSplatVisual.js +0 -74
  266. package/dist/runtime/modules/rendering/style/StylePack.js +0 -34
  267. package/dist/runtime/modules/rendering/style/StyleSystem.js +0 -173
  268. package/dist/runtime/modules/rendering/tasks.jsonl +0 -7
  269. package/dist/runtime/modules/world/README.md +0 -13
  270. package/dist/runtime/modules/world/build/WorldBuilder.js +0 -170
  271. package/dist/runtime/modules/world/compiler/PipelineEngine.js +0 -32
  272. package/dist/runtime/modules/world/compiler/WorldAdmission.js +0 -43
  273. package/dist/runtime/modules/world/compiler/WorldBehaviorCompiler.js +0 -68
  274. package/dist/runtime/modules/world/compiler/WorldCompilation.js +0 -157
  275. package/dist/runtime/modules/world/compiler/WorldComposer.js +0 -201
  276. package/dist/runtime/modules/world/compiler/WorldPhysicsAdmission.js +0 -76
  277. package/dist/runtime/modules/world/compiler/WorldRecompiler.js +0 -356
  278. package/dist/runtime/modules/world/compiler/WorldRetry.js +0 -75
  279. package/dist/runtime/modules/world/compiler/createWorldPipeline.js +0 -379
  280. package/dist/runtime/modules/world/content/blankWorld.js +0 -35
  281. package/dist/runtime/modules/world/content/environments.js +0 -84
  282. package/dist/runtime/modules/world/content/grandUrbanBlock.js +0 -189
  283. package/dist/runtime/modules/world/content/magic-cabin/README.md +0 -28
  284. package/dist/runtime/modules/world/content/magic-cabin/affordances.js +0 -64
  285. package/dist/runtime/modules/world/content/magic-cabin/cabinContents.js +0 -7078
  286. package/dist/runtime/modules/world/content/magic-cabin/lighting.js +0 -26
  287. package/dist/runtime/modules/world/content/magic-cabin/materials.js +0 -20
  288. package/dist/runtime/modules/world/content/magicCabin.js +0 -190
  289. package/dist/runtime/modules/world/content/monumentHall.js +0 -154
  290. package/dist/runtime/modules/world/content/ruinedCourtyard.js +0 -196
  291. package/dist/runtime/modules/world/content/suzhouGarden/README.md +0 -141
  292. package/dist/runtime/modules/world/content/suzhouGarden/index.js +0 -137
  293. package/dist/runtime/modules/world/content/suzhouGarden/src/arch.js +0 -491
  294. package/dist/runtime/modules/world/content/suzhouGarden/src/buildings.js +0 -670
  295. package/dist/runtime/modules/world/content/suzhouGarden/src/core.js +0 -578
  296. package/dist/runtime/modules/world/content/suzhouGarden/src/lod.js +0 -127
  297. package/dist/runtime/modules/world/content/suzhouGarden/src/main.js +0 -642
  298. package/dist/runtime/modules/world/content/suzhouGarden/src/nature.js +0 -650
  299. package/dist/runtime/modules/world/content/suzhouGarden/src/rockery.js +0 -280
  300. package/dist/runtime/modules/world/content/suzhouGarden/src/sky.js +0 -242
  301. package/dist/runtime/modules/world/content/suzhouGarden/src/water.js +0 -215
  302. package/dist/runtime/modules/world/content/woodlandWorkshop.js +0 -192
  303. package/dist/runtime/modules/world/content/yuanmingyuan/README.md +0 -36
  304. package/dist/runtime/modules/world/content/yuanmingyuan/arch.js +0 -351
  305. package/dist/runtime/modules/world/content/yuanmingyuan/buildings.js +0 -490
  306. package/dist/runtime/modules/world/content/yuanmingyuan/core.js +0 -505
  307. package/dist/runtime/modules/world/content/yuanmingyuan/index.js +0 -101
  308. package/dist/runtime/modules/world/content/yuanmingyuan/nature.js +0 -435
  309. package/dist/runtime/modules/world/content/yuanmingyuan/sky.js +0 -169
  310. package/dist/runtime/modules/world/content/yuanmingyuan/water.js +0 -245
  311. package/dist/runtime/modules/world/errors.js +0 -9
  312. package/dist/runtime/modules/world/generated/GeneratedWorldCoordinates.js +0 -50
  313. package/dist/runtime/modules/world/generated/GeneratedWorldLoader.js +0 -297
  314. package/dist/runtime/modules/world/runtime/CommandHistory.js +0 -80
  315. package/dist/runtime/modules/world/runtime/ObjectStore.js +0 -31
  316. package/dist/runtime/modules/world/runtime/ObjectTransform.js +0 -62
  317. package/dist/runtime/modules/world/runtime/ObservedEntity.js +0 -37
  318. package/dist/runtime/modules/world/runtime/ProjectCapabilities.js +0 -207
  319. package/dist/runtime/modules/world/runtime/SceneSerializer.js +0 -246
  320. package/dist/runtime/modules/world/runtime/WorldAuthority.js +0 -41
  321. package/dist/runtime/modules/world/runtime/WorldCollisionSignature.js +0 -14
  322. package/dist/runtime/modules/world/runtime/WorldCommands.js +0 -502
  323. package/dist/runtime/modules/world/runtime/WorldObservation.js +0 -71
  324. package/dist/runtime/modules/world/runtime/WorldQueries.js +0 -340
  325. package/dist/runtime/modules/world/runtime/WorldRecovery.js +0 -78
  326. package/dist/runtime/modules/world/runtime/WorldRuntime.js +0 -649
  327. package/dist/runtime/modules/world/runtime/affordance/ObjectAffordances.js +0 -107
  328. package/dist/runtime/modules/world/runtime/affordance/WorldAffordances.js +0 -130
  329. package/dist/runtime/modules/world/runtime/behavior/BehaviorCompiler.js +0 -79
  330. package/dist/runtime/modules/world/runtime/behavior/ProjectStateMachine.js +0 -195
  331. package/dist/runtime/modules/world/runtime/behavior/RuleGraph.js +0 -70
  332. package/dist/runtime/modules/world/runtime/behavior/RuleRuntime.js +0 -115
  333. package/dist/runtime/modules/world/runtime/graph/SceneGraph.js +0 -216
  334. package/dist/runtime/modules/world/runtime/interaction/ArticulationRuntime.js +0 -214
  335. package/dist/runtime/modules/world/runtime/interaction/CarryCapability.js +0 -65
  336. package/dist/runtime/modules/world/runtime/interaction/CarryRuntime.js +0 -222
  337. package/dist/runtime/modules/world/runtime/interaction/InteractionApproach.js +0 -130
  338. package/dist/runtime/modules/world/runtime/interaction/InteractionContract.js +0 -57
  339. package/dist/runtime/modules/world/runtime/interaction/RecoveryRuntime.js +0 -123
  340. package/dist/runtime/modules/world/runtime/interaction/SettleRuntime.js +0 -120
  341. package/dist/runtime/modules/world/runtime/semantic/SemanticWorldView.js +0 -102
  342. package/dist/runtime/modules/world/runtime/simulation/SimulationClock.js +0 -89
  343. package/dist/runtime/modules/world/runtime/simulation/SimulationSession.js +0 -99
  344. package/dist/runtime/modules/world/runtime/simulation/ThermalSystem.js +0 -269
  345. package/dist/runtime/modules/world/runtime/spatial/SpatialSnapshot.js +0 -56
  346. package/dist/runtime/modules/world/runtime/spatial/ThreeBvhRuntime.js +0 -36
  347. package/dist/runtime/modules/world/runtime/systems/InteractionSystem.js +0 -728
  348. package/dist/runtime/modules/world/runtime/systems/LocomotionSystem.js +0 -269
  349. package/dist/runtime/modules/world/runtime/systems/NavigationSystem.js +0 -469
  350. package/dist/runtime/modules/world/runtime/systems/PhysicsSystem.js +0 -1657
  351. package/dist/runtime/modules/world/runtime/systems/RenderingSystem.js +0 -457
  352. package/dist/runtime/modules/world/runtime/systems/SpatialSystem.js +0 -284
  353. package/dist/runtime/modules/world/spec/WorldIR.js +0 -165
  354. package/dist/runtime/modules/world/spec/WorldIRToolSchema.js +0 -86
  355. package/dist/runtime/modules/world/spec/WorldPlannerProposal.js +0 -51
  356. package/dist/runtime/modules/world/spec/WorldRevision.js +0 -231
  357. package/dist/runtime/modules/world/spec/WorldSpec.js +0 -86
  358. package/dist/runtime/modules/world/tasks.jsonl +0 -530
  359. package/dist/runtime/modules/world/verification/ArticulationVerifier.js +0 -254
  360. package/dist/runtime/modules/world/verification/Finding.js +0 -105
  361. package/dist/runtime/modules/world/verification/InteractionEvidence.js +0 -69
  362. package/dist/runtime/modules/world/verification/RepairEngine.js +0 -49
  363. package/dist/runtime/modules/world/verification/WorldAcceptance.js +0 -158
  364. package/dist/runtime/modules/world/verification/WorldValidator.js +0 -65
  365. package/dist/runtime/package-lock.json +0 -6245
  366. package/dist/runtime/package.json +0 -91
  367. package/dist/runtime/public/assets/cabinet.glb +0 -0
  368. package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_diff_1k.jpg +0 -0
  369. package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_nor_gl_1k.jpg +0 -0
  370. package/dist/runtime/public/assets/grand-urban-block/concrete_pavement_diff_1k.jpg +0 -0
  371. package/dist/runtime/public/assets/grand-urban-block/urban_street_01_1k.hdr +0 -0
  372. package/dist/runtime/public/assets/monument-hall/marble_diff_1k.jpg +0 -0
  373. package/dist/runtime/public/assets/monument-hall/marble_nor_gl_1k.jpg +0 -0
  374. package/dist/runtime/public/assets/monument-hall/marble_rough_1k.jpg +0 -0
  375. package/dist/runtime/public/assets/monument-hall/solitude_interior_1k.hdr +0 -0
  376. package/dist/runtime/public/assets/ruined-courtyard/courtyard_1k.hdr +0 -0
  377. package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_diff_1k.jpg +0 -0
  378. package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_nor_gl_1k.jpg +0 -0
  379. package/dist/runtime/public/assets/ruined-courtyard/mossy_sandstone_diff_1k.jpg +0 -0
  380. package/dist/schema-Dudvovhu.js +0 -364
  381. package/dist/schema-Dudvovhu.js.map +0 -1
  382. package/dist/suzhouGarden-BCx_JeV5.js +0 -6159
  383. package/dist/suzhouGarden-BCx_JeV5.js.map +0 -1
  384. package/dist/woodlandWorkshop-BGNWPNdK.js +0 -484
  385. package/dist/woodlandWorkshop-BGNWPNdK.js.map +0 -1
  386. package/dist/yuanmingyuan-DAIb1msO.js +0 -4962
  387. package/dist/yuanmingyuan-DAIb1msO.js.map +0 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 AgentScape contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AgentScape contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,55 +1,30 @@
1
- # AgentScape TypeScript SDK
1
+ # AgentScape 3D Core
2
2
 
3
- 自由代码世界新增 `AgentScape.openProject({project,container,authorized:true})`,支持持续 Three.js 逻辑、Shader、自定义动作和项目代码/状态保存。生命周期与示例见 [Code Project](../../docs/modules/code-project.md)。本地示例为 `/examples/code-project/`,可直接导入 [多文件代码世界 JSON](../../examples/code-project/multifile-studio.json)。多文件项目使用 `entry` 指定入口,`source` 保存入口源码,`files` 保存其他 JS/GLSL/JSON/TXT 源码;相对 ESM 导入会在浏览器与 Node 中解析,`three` 导入共享宿主实例。动态 import 和 npm 裸导入请使用原有外部打包工具。
3
+ **agentscape3d** is a small, unrestricted semantic and action extension for host-owned Three.js scenes. It does not require Studio, a renderer, WorldRuntime, MCP, an AI provider, an approval workflow, a sandbox or a physics engine.
4
4
 
5
- Beta package for the AgentScape 3D world engine. After publication, install with `npm install agentscape3d@beta`. This prerelease is published under the `beta` dist-tag, so the unqualified installation command is reserved for future stable releases. Before publication, build with `node dev/build-sdk.mjs`, then verify the resulting `npm pack` tarball.
5
+ ~~~js
6
+ import * as THREE from 'three';
7
+ import { attach } from 'agentscape3d';
6
8
 
7
- ```js
8
- import { AgentScape } from 'agentscape3d';
9
- const world = await AgentScape.open({ canvas: '#app' });
10
- await world.addModel({ id: 'cup', asset: 'builtin://cup', position: [0, 0, 2] });
11
- const saved = await world.save();
12
- const reopened = await AgentScape.open({ bundle: saved.value });
13
- reopened.close();
14
- world.close();
15
- ```
9
+ const scene = new THREE.Scene();
10
+ const door = new THREE.Group();
11
+ scene.add(door);
12
+ const world = attach(scene);
13
+ world.register(door, {
14
+ id: 'door', type: 'custom-door',
15
+ read: () => ({ angle: door.rotation.y }),
16
+ actions: { open: () => { door.rotation.y = -Math.PI / 2; } }
17
+ });
18
+ await world.invoke('door', 'open');
19
+ world.dispose(); // Does not dispose the scene or door
20
+ ~~~
16
21
 
17
- `#app` is an HTML container with an explicit width and height. Rendering schedules automatically when a container is supplied. Headless hosts advance `step()` themselves. Interactions return jobs; query or await them with `getJob` / `waitJob`, and inspect their verification evidence separately.
22
+ The same API works on objects imported through GLTFLoader or created in JavaScript. Use world.use(plugin) for optional extensions; there are no automatically installed plugins.
18
23
 
19
- ## Embedding in an existing Three.js scene
24
+ Optional npm packages:
25
+ - **agentscape3d-engine**: legacy full WorldRuntime, physics, assets and the explicit MCP integration
26
+ - **agentscape3d-studio**: standalone Studio and static website
20
27
 
21
- Use `AgentScape.attach({scene,camera,renderer,walkableMesh,hostProjectId,hostRevision})` to mount a self-owned Runtime subtree without taking over the host renderer or loop. Call `session.scene.frame(timestamp)` in the host frame callback and `session.close()` to detach. Save only the AgentScape overlay with `session.scene.saveOverlay(storage)`; prepare and commit it with `prepareOverlay(storage,root)`. Use `WorldStorage` with `WorldDirectory` for durable content-addressed blocks. The host project remains responsible for its own source and rendering state. For reload-safe browser checkpoints, pair `WorldStorage(new WorldDirectory(await navigator.storage.getDirectory()))` with `IndexedDBNativeOverlayHeadStore({key})`; then `await openNativeOverlayCheckpoint(session.scene, storage, heads)` restores the latest verified overlay automatically, and `await checkpoint.saveLatest()` publishes a new head only after validation. See [the native integration guide](../../docs/native-threejs-integration.md).
28
+ See docs/sdk-packages.md and docs/semantic-core.md in the repository.
22
29
 
23
- The SDK defaults to `monument-hall`; other built-in IDs are resolved through the shared Studio catalog. Some environments require a browser DOM and reject headless Node. Studio preset furniture is not implicitly inserted into Scene Projects. Bundled assets include agent, cup, table and chair. Use await world.setStyle(ref) with builtin://realistic, builtin://toon or builtin://low-poly. Headless hosts validate and defer rendering. This SDK shares the application Scene service and does not maintain another object store.
24
-
25
- `npx agentscape3d starter new-directory` (or `agentscape starter new-directory`) scaffolds an empty destination. Install this SDK tarball and Vite in that directory, then `npm run dev`. No provider key or paid service is needed for built-in worlds. Python Connector SDK usage is unchanged.
26
-
27
- Code assets require an explicit execution configuration. Node selects the Node entry automatically; `agentscape3d/node` is also available. Docker is not an installation prerequisite.
28
-
29
- ```js
30
- const world = await AgentScape.open({codeExecution:{mode:'worker-wasm'}});
31
- await world.addModel({id:'cube',asset:{kind:'three-code',source:`
32
- export function createAsset(THREE) {
33
- const root = new THREE.Group();
34
- root.add(new THREE.Mesh(new THREE.BoxGeometry(1,1,1),
35
- new THREE.MeshStandardMaterial({color:'#ee8844'})));
36
- return root;
37
- }
38
- `}});
39
- const bundle = (await world.save()).value;
40
- world.close();
41
- ```
42
-
43
- Node `worker-wasm` runs synchronous source in QuickJS without host filesystem/network bindings. `trusted-local` requires `{mode:'trusted-local',authorized:true}` and runs ESM factories (including async factories) in a dedicated Worker. It has the host's privileges. Browser code execution currently supports this explicitly authorized trusted Worker mode; browser `worker-wasm` and `os-isolated` are rejected. Worker time/memory controls are reliability protection, not OS security isolation. `disabled` rejects code. Public services must use `os-isolated` (configured Docker backend) or `disabled`; no fallback occurs.
44
-
45
- An optional `definition` provides the existing programmatic Manifest contract (`id`, `type`, `label`, `actions`, `physics`, named `parts`, joints and interaction targets). Omit it for visual-only assets. Physical assets undergo compiler admission and runtime registration/actuation verification before insertion. Serializable Mesh/Group/Object3D, buffer geometry and Basic/Standard/Physical materials are supported; runtime callbacks, animations, material arrays and external texture references are not transported. Root transforms must be identity; place assets through `position`/`transform`.
46
-
47
- Use `addModel(input,{signal})` to cancel. Saved bundles embed versioned compiled assets and their physical definitions and restore without executing source. Build execution, admission and live interaction verification are separate results.
48
-
49
- `agentscape3d mcp` (or `agentscape mcp`) starts the local authenticated loopback MCP server. Set `AGENTSCAPE_MCP_TOKENS` to a JSON array such as `[{"identity":"local","token":"a-random-secret-at-least-32-characters"}]` using a freshly generated secret. The default backend is `worker-wasm`. Trusted execution additionally requires `AGENTSCAPE_CODE_EXECUTION=trusted-local` and `AGENTSCAPE_TRUSTED_CODE=1`. Public deployments set `AGENTSCAPE_PUBLIC_SERVICE=1` and configure `os-isolated`; the server rejects unsafe modes. The programmatic entry is `import {startServer} from 'agentscape3d/mcp'`.
50
-
51
- ## npm 发布门槛(维护者)
52
-
53
- 当前准备发布 `1.0.0-beta.1`,发布前不得假定 npm 已上线。正式发布前必须在项目根目录通过 `npm run check`、`npm run test:browser` 和 `npm run sdk:verify`,并确认 `git status` 干净、发布版本号未被占用、许可证及依赖清单完整。浏览器测试必须覆盖自动 Studio MCP 连接、手动配对、复杂物理资产创建和跨进程保存/恢复。
54
-
55
- 发布目标固定为官方 npm Registry (`https://registry.npmjs.org/`) 的公开 npm 包,避免将镜像缓存结果当作发布状态。维护者需拥有 `agentscape3d` 的发布权限,通过 `npm whoami --registry=https://registry.npmjs.org/` 检查认证,再从 `sdk/typescript` 目录使用 `npm pack --dry-run` 审阅归档。`npm publish --tag beta --access public --registry=https://registry.npmjs.org/` 仅在版本确定、全部验收通过且获得发布授权后执行;不要在自动测试中发布。初次发布后验证 `npm view agentscape3d dist-tags --json --registry=https://registry.npmjs.org/`,确认 `beta` 指向 `1.0.0-beta.1`,再在全新项目验证 `npm install agentscape3d@beta`。
30
+ Beta 2 changes the default package entry: the former all-in-one runtime moves to agentscape3d-engine. Install explicitly with npm install agentscape3d@beta three. Code executes with the permissions of the host JavaScript environment; Core does not impose or claim a security boundary.
package/dist/core.d.ts ADDED
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Framework-independent Three.js semantics. The scene and Object3D remain
3
+ * owned and rendered by the host application.
4
+ */
5
+ export interface SemanticObject3D {
6
+ readonly isObject3D: boolean;
7
+ readonly uuid?: string;
8
+ readonly name?: string;
9
+ readonly parent?: SemanticObject3D | null;
10
+ }
11
+ export interface SemanticScene extends SemanticObject3D {
12
+ readonly isScene: boolean;
13
+ }
14
+ export type SemanticTarget = string | SemanticObject3D;
15
+ export interface SemanticActionContext {
16
+ readonly object: SemanticObject3D;
17
+ readonly world: SemanticWorld;
18
+ readonly signal?: AbortSignal;
19
+ }
20
+ export type SemanticActionFn = (args: unknown, context: SemanticActionContext) => unknown | Promise<unknown>;
21
+ export type SemanticAction = SemanticActionFn | {
22
+ execute: SemanticActionFn;
23
+ description?: string;
24
+ available?: (context: SemanticActionContext) => boolean;
25
+ };
26
+ export interface SemanticDefinition {
27
+ id?: string;
28
+ type?: string;
29
+ label?: string;
30
+ description?: string;
31
+ properties?: unknown;
32
+ read?: () => unknown;
33
+ actions?: Record<string, SemanticAction>;
34
+ }
35
+ export interface SemanticEntity {
36
+ id: string;
37
+ name: string;
38
+ type: string;
39
+ label: string;
40
+ description: string;
41
+ properties: unknown;
42
+ attached: boolean;
43
+ state: unknown;
44
+ actions: Array<{ name: string; description: string; available: boolean }>;
45
+ }
46
+ export interface SemanticEvent {
47
+ type: 'entity.registered' | 'entity.unregistered' | 'action.registered' | 'action.unregistered' | 'action.invoked' | 'disposed';
48
+ id: string | null;
49
+ world: SemanticWorld;
50
+ }
51
+ export interface SemanticPlugin {
52
+ install(world: SemanticWorld, options?: unknown): void | (() => void) | { dispose(): void };
53
+ }
54
+ export interface SemanticWorld {
55
+ readonly scene: SemanticScene;
56
+ register(object: SemanticObject3D, definition?: SemanticDefinition): () => boolean;
57
+ unregister(target: SemanticTarget): boolean;
58
+ registerAction(target: SemanticTarget, name: string, action: SemanticAction): () => boolean;
59
+ getObject(target: SemanticTarget): SemanticObject3D | null;
60
+ inspect(target: SemanticTarget): SemanticEntity | null;
61
+ list(options?: { attachedOnly?: boolean }): SemanticEntity[];
62
+ invoke(target: SemanticTarget, name: string, args?: unknown, options?: { signal?: AbortSignal }): Promise<unknown>;
63
+ subscribe(listener: (event: SemanticEvent) => void): () => boolean;
64
+ use(plugin: SemanticPlugin | ((world: SemanticWorld, options?: unknown) => ReturnType<SemanticPlugin['install']>), options?: unknown): () => boolean;
65
+ dispose(): void;
66
+ }
67
+ /** Attach without renderer takeover, Studio, task compiler, MCP, permissions or sandbox. */
68
+ export declare function attach(scene: SemanticScene): SemanticWorld;
package/dist/core.js ADDED
@@ -0,0 +1,209 @@
1
+ // sdk/typescript/src/core.js
2
+ /**
3
+ * A framework-agnostic semantic extension for a user-owned Three.js scene.
4
+ * It never creates a renderer, starts a loop, rewrites Object3D or executes code.
5
+ * Policies, transports, persistence, physics and agent tooling belong to plugins.
6
+ */
7
+ const isObject = (object) => object?.isObject3D === true;
8
+ const fail = (message) => {
9
+ throw new TypeError(message);
10
+ };
11
+ function actionOf(value) {
12
+ if (typeof value === "function") return {
13
+ execute: value,
14
+ description: "",
15
+ available: null
16
+ };
17
+ if (!value || typeof value.execute !== "function") fail("Action requires a function or { execute }");
18
+ if (value.available != null && typeof value.available !== "function") fail("Action available must be a function");
19
+ return {
20
+ execute: value.execute,
21
+ description: value.description || "",
22
+ available: value.available || null
23
+ };
24
+ }
25
+ function parseActions(actions) {
26
+ if (actions == null) return /* @__PURE__ */ new Map();
27
+ if (typeof actions !== "object" || Array.isArray(actions)) fail("Actions must be a name-to-handler object");
28
+ const result = /* @__PURE__ */ new Map();
29
+ for (const [name, action] of Object.entries(actions)) {
30
+ if (!name.trim()) fail("Action name must be non-empty");
31
+ result.set(name, actionOf(action));
32
+ }
33
+ return result;
34
+ }
35
+ function inside(root, object) {
36
+ for (let current = object; current; current = current.parent) if (current === root) return true;
37
+ return false;
38
+ }
39
+ /**
40
+ * Attach semantic metadata and callable actions to an existing THREE.Scene.
41
+ * Native Three.js behavior and ownership remain entirely with the caller.
42
+ *
43
+ * @param {import('./core.d.ts').SemanticScene} scene
44
+ * @returns {import('./core.d.ts').SemanticWorld}
45
+ */
46
+ function attach(scene) {
47
+ if (!isObject(scene) || scene.isScene !== true) fail("attach(scene) requires a THREE.Scene");
48
+ const entries = /* @__PURE__ */ new Map();
49
+ const objects = /* @__PURE__ */ new WeakMap();
50
+ const listeners = /* @__PURE__ */ new Set();
51
+ const plugins = [];
52
+ let disposed = false;
53
+ const ensureOpen = () => {
54
+ if (disposed) throw new Error("SEMANTIC_WORLD_DISPOSED");
55
+ };
56
+ let world;
57
+ const find = (value) => typeof value === "string" ? entries.get(value) : objects.get(value);
58
+ const emit = (type, id) => {
59
+ for (const listener of [...listeners]) try {
60
+ listener({
61
+ type,
62
+ id,
63
+ world
64
+ });
65
+ } catch {}
66
+ };
67
+ const describe = (entry) => ({
68
+ id: entry.id,
69
+ name: entry.object.name || "",
70
+ type: entry.type,
71
+ label: entry.label,
72
+ description: entry.description,
73
+ properties: entry.properties,
74
+ attached: inside(scene, entry.object),
75
+ state: entry.read ? entry.read() : {},
76
+ actions: [...entry.actions].map(([name, action]) => ({
77
+ name,
78
+ description: action.description,
79
+ available: action.available ? Boolean(action.available({
80
+ object: entry.object,
81
+ world
82
+ })) : true
83
+ }))
84
+ });
85
+ function unregister(target) {
86
+ ensureOpen();
87
+ const entry = find(target);
88
+ if (!entry) return false;
89
+ entries.delete(entry.id);
90
+ objects.delete(entry.object);
91
+ emit("entity.unregistered", entry.id);
92
+ return true;
93
+ }
94
+ function register(object, definition = {}) {
95
+ ensureOpen();
96
+ if (!isObject(object)) fail("register(object) requires a THREE.Object3D");
97
+ if (!definition || typeof definition !== "object" || Array.isArray(definition)) fail("Invalid semantic definition");
98
+ const id = definition.id ?? object.uuid;
99
+ if (typeof id !== "string" || !id.trim()) fail("Entity id must be a non-empty string");
100
+ if (entries.has(id) || objects.has(object)) fail("SEMANTIC_ENTITY_CONFLICT");
101
+ if (definition.read != null && typeof definition.read !== "function") fail("Entity read must be a function");
102
+ const actions = parseActions(definition.actions);
103
+ const entry = {
104
+ id,
105
+ object,
106
+ type: definition.type || "",
107
+ label: definition.label || object.name || id,
108
+ description: definition.description || "",
109
+ properties: definition.properties ?? {},
110
+ read: definition.read || null,
111
+ actions
112
+ };
113
+ entries.set(id, entry);
114
+ objects.set(object, entry);
115
+ emit("entity.registered", id);
116
+ return () => entries.get(id) === entry && unregister(id);
117
+ }
118
+ function registerAction(target, name, value) {
119
+ ensureOpen();
120
+ const entry = find(target);
121
+ if (!entry) fail("SEMANTIC_ENTITY_NOT_FOUND");
122
+ if (typeof name !== "string" || !name.trim()) fail("Action name must be non-empty");
123
+ if (entry.actions.has(name)) fail("SEMANTIC_ACTION_CONFLICT");
124
+ const action = actionOf(value);
125
+ entry.actions.set(name, action);
126
+ emit("action.registered", entry.id);
127
+ return () => {
128
+ if (entries.get(entry.id) !== entry || entry.actions.get(name) !== action) return false;
129
+ entry.actions.delete(name);
130
+ emit("action.unregistered", entry.id);
131
+ return true;
132
+ };
133
+ }
134
+ async function invoke(target, name, args = {}, options = {}) {
135
+ ensureOpen();
136
+ const entry = find(target);
137
+ if (!entry) fail("SEMANTIC_ENTITY_NOT_FOUND");
138
+ const action = entry.actions.get(name);
139
+ if (!action) fail("SEMANTIC_ACTION_NOT_FOUND");
140
+ const context = {
141
+ object: entry.object,
142
+ world,
143
+ signal: options.signal
144
+ };
145
+ if (action.available && !action.available(context)) fail("SEMANTIC_ACTION_UNAVAILABLE");
146
+ const value = await action.execute(args, context);
147
+ emit("action.invoked", entry.id);
148
+ return value;
149
+ }
150
+ function uninstall(pluginEntry) {
151
+ if (!pluginEntry.active) return false;
152
+ pluginEntry.active = false;
153
+ plugins.splice(plugins.indexOf(pluginEntry), 1);
154
+ pluginEntry.teardown?.();
155
+ return true;
156
+ }
157
+ world = {
158
+ scene,
159
+ register,
160
+ unregister,
161
+ registerAction,
162
+ getObject(target) {
163
+ ensureOpen();
164
+ return find(target)?.object || null;
165
+ },
166
+ inspect(target) {
167
+ ensureOpen();
168
+ const entry = find(target);
169
+ return entry ? describe(entry) : null;
170
+ },
171
+ list({ attachedOnly = false } = {}) {
172
+ ensureOpen();
173
+ return [...entries.values()].filter((entry) => !attachedOnly || inside(scene, entry.object)).map(describe);
174
+ },
175
+ invoke,
176
+ subscribe(listener) {
177
+ ensureOpen();
178
+ if (typeof listener !== "function") fail("Listener must be a function");
179
+ listeners.add(listener);
180
+ return () => listeners.delete(listener);
181
+ },
182
+ use(plugin, options) {
183
+ ensureOpen();
184
+ const install = typeof plugin === "function" ? plugin : plugin?.install?.bind(plugin);
185
+ if (typeof install !== "function") fail("Plugin requires an install(world, options) function");
186
+ const result = install(world, options);
187
+ const entry = {
188
+ active: true,
189
+ teardown: typeof result === "function" ? result : result?.dispose?.bind(result)
190
+ };
191
+ plugins.push(entry);
192
+ return () => uninstall(entry);
193
+ },
194
+ dispose() {
195
+ if (disposed) return;
196
+ for (const entry of [...plugins].reverse()) try {
197
+ uninstall(entry);
198
+ } catch {}
199
+ for (const id of [...entries.keys()]) unregister(id);
200
+ disposed = true;
201
+ emit("disposed", null);
202
+ listeners.clear();
203
+ }
204
+ };
205
+ return world;
206
+ }
207
+ export { attach };
208
+
209
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","names":[],"sources":["../src/core.js"],"sourcesContent":["/**\n * A framework-agnostic semantic extension for a user-owned Three.js scene.\n * It never creates a renderer, starts a loop, rewrites Object3D or executes code.\n * Policies, transports, persistence, physics and agent tooling belong to plugins.\n */\nconst isObject = object => object?.isObject3D === true;\nconst fail = message => { throw new TypeError(message); };\n\nfunction actionOf(value) {\n if (typeof value === 'function') return { execute: value, description: '', available: null };\n if (!value || typeof value.execute !== 'function') fail('Action requires a function or { execute }');\n if (value.available != null && typeof value.available !== 'function') fail('Action available must be a function');\n return { execute: value.execute, description: value.description || '', available: value.available || null };\n}\n\nfunction parseActions(actions) {\n if (actions == null) return new Map();\n if (typeof actions !== 'object' || Array.isArray(actions)) fail('Actions must be a name-to-handler object');\n const result = new Map();\n for (const [name, action] of Object.entries(actions)) {\n if (!name.trim()) fail('Action name must be non-empty');\n result.set(name, actionOf(action));\n }\n return result;\n}\n\nfunction inside(root, object) {\n for (let current = object; current; current = current.parent) {\n if (current === root) return true;\n }\n return false;\n}\n\n/**\n * Attach semantic metadata and callable actions to an existing THREE.Scene.\n * Native Three.js behavior and ownership remain entirely with the caller.\n *\n * @param {import('./core.d.ts').SemanticScene} scene\n * @returns {import('./core.d.ts').SemanticWorld}\n */\nexport function attach(scene) {\n if (!isObject(scene) || scene.isScene !== true) fail('attach(scene) requires a THREE.Scene');\n const entries = new Map();\n const objects = new WeakMap();\n const listeners = new Set();\n const plugins = [];\n let disposed = false;\n const ensureOpen = () => { if (disposed) throw new Error('SEMANTIC_WORLD_DISPOSED'); };\n let world;\n\n const find = value => typeof value === 'string' ? entries.get(value) : objects.get(value);\n const emit = (type, id) => {\n for (const listener of [...listeners]) {\n try { listener({ type, id, world }); }\n catch { /* A plugin must not break its host scene. */ }\n }\n };\n const describe = entry => ({\n id: entry.id,\n name: entry.object.name || '',\n type: entry.type,\n label: entry.label,\n description: entry.description,\n properties: entry.properties,\n attached: inside(scene, entry.object),\n state: entry.read ? entry.read() : {},\n actions: [...entry.actions].map(([name, action]) => ({\n name,\n description: action.description,\n available: action.available ? Boolean(action.available({ object: entry.object, world })) : true\n }))\n });\n\n function unregister(target) {\n ensureOpen();\n const entry = find(target);\n if (!entry) return false;\n entries.delete(entry.id);\n objects.delete(entry.object);\n emit('entity.unregistered', entry.id);\n return true;\n }\n\n function register(object, definition = {}) {\n ensureOpen();\n if (!isObject(object)) fail('register(object) requires a THREE.Object3D');\n if (!definition || typeof definition !== 'object' || Array.isArray(definition)) fail('Invalid semantic definition');\n const id = definition.id ?? object.uuid;\n if (typeof id !== 'string' || !id.trim()) fail('Entity id must be a non-empty string');\n if (entries.has(id) || objects.has(object)) fail('SEMANTIC_ENTITY_CONFLICT');\n if (definition.read != null && typeof definition.read !== 'function') fail('Entity read must be a function');\n const actions = parseActions(definition.actions);\n const entry = {\n id, object,\n type: definition.type || '',\n label: definition.label || object.name || id,\n description: definition.description || '',\n properties: definition.properties ?? {},\n read: definition.read || null,\n actions\n };\n entries.set(id, entry);\n objects.set(object, entry);\n emit('entity.registered', id);\n return () => entries.get(id) === entry && unregister(id);\n }\n\n function registerAction(target, name, value) {\n ensureOpen();\n const entry = find(target);\n if (!entry) fail('SEMANTIC_ENTITY_NOT_FOUND');\n if (typeof name !== 'string' || !name.trim()) fail('Action name must be non-empty');\n if (entry.actions.has(name)) fail('SEMANTIC_ACTION_CONFLICT');\n const action = actionOf(value);\n entry.actions.set(name, action);\n emit('action.registered', entry.id);\n return () => {\n if (entries.get(entry.id) !== entry || entry.actions.get(name) !== action) return false;\n entry.actions.delete(name);\n emit('action.unregistered', entry.id);\n return true;\n };\n }\n\n async function invoke(target, name, args = {}, options = {}) {\n ensureOpen();\n const entry = find(target);\n if (!entry) fail('SEMANTIC_ENTITY_NOT_FOUND');\n const action = entry.actions.get(name);\n if (!action) fail('SEMANTIC_ACTION_NOT_FOUND');\n const context = { object: entry.object, world, signal: options.signal };\n if (action.available && !action.available(context)) fail('SEMANTIC_ACTION_UNAVAILABLE');\n const value = await action.execute(args, context);\n emit('action.invoked', entry.id);\n return value;\n }\n\n function uninstall(pluginEntry) {\n if (!pluginEntry.active) return false;\n pluginEntry.active = false;\n plugins.splice(plugins.indexOf(pluginEntry), 1);\n pluginEntry.teardown?.();\n return true;\n }\n\n world = {\n scene,\n register,\n unregister,\n registerAction,\n getObject(target) {\n ensureOpen();\n return find(target)?.object || null;\n },\n inspect(target) {\n ensureOpen();\n const entry = find(target);\n return entry ? describe(entry) : null;\n },\n list({ attachedOnly = false } = {}) {\n ensureOpen();\n return [...entries.values()].filter(entry => !attachedOnly || inside(scene, entry.object)).map(describe);\n },\n invoke,\n subscribe(listener) {\n ensureOpen();\n if (typeof listener !== 'function') fail('Listener must be a function');\n listeners.add(listener);\n return () => listeners.delete(listener);\n },\n use(plugin, options) {\n ensureOpen();\n const install = typeof plugin === 'function' ? plugin : plugin?.install?.bind(plugin);\n if (typeof install !== 'function') fail('Plugin requires an install(world, options) function');\n const result = install(world, options);\n const teardown = typeof result === 'function' ? result : result?.dispose?.bind(result);\n const entry = { active: true, teardown };\n plugins.push(entry);\n return () => uninstall(entry);\n },\n dispose() {\n if (disposed) return;\n for (const entry of [...plugins].reverse()) {\n try { uninstall(entry); } catch { /* Host scene disposal must remain reliable. */ }\n }\n for (const id of [...entries.keys()]) unregister(id);\n disposed = true;\n emit('disposed', null);\n listeners.clear();\n }\n };\n return world;\n}\n"],"mappings":";;;;;;AAKA,MAAM,YAAW,WAAU,QAAQ,eAAe;AAClD,MAAM,QAAO,YAAW;CAAE,MAAM,IAAI,UAAU,OAAO;AAAG;AAExD,SAAS,SAAS,OAAO;CACvB,IAAI,OAAO,UAAU,YAAY,OAAO;EAAE,SAAS;EAAO,aAAa;EAAI,WAAW;CAAK;CAC3F,IAAI,CAAC,SAAS,OAAO,MAAM,YAAY,YAAY,KAAK,2CAA2C;CACnG,IAAI,MAAM,aAAa,QAAQ,OAAO,MAAM,c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