@vgai/engine 0.5.22 → 0.5.23

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 (291) hide show
  1. package/README.md +6 -3
  2. package/dist/adapter/adapter-module.d.ts.map +1 -1
  3. package/dist/adapter/adapter-module.js +2 -4
  4. package/dist/adapter/adapter-surface.d.ts +1 -1
  5. package/dist/adapter/adapter-surface.js +1 -1
  6. package/dist/adapter/authoring.d.ts +19 -21
  7. package/dist/adapter/authoring.d.ts.map +1 -1
  8. package/dist/adapter/authoring.js +2 -2
  9. package/dist/adapter/binding.d.ts +341 -0
  10. package/dist/adapter/binding.d.ts.map +1 -0
  11. package/dist/adapter/binding.js +148 -0
  12. package/dist/adapter/colyseus-networking-adapter.d.ts.map +1 -1
  13. package/dist/adapter/colyseus-networking-adapter.js +23 -4
  14. package/dist/adapter/entrypoint-selection-readers.d.ts +24 -0
  15. package/dist/adapter/entrypoint-selection-readers.d.ts.map +1 -0
  16. package/dist/adapter/entrypoint-selection-readers.js +63 -0
  17. package/dist/adapter/entrypoint-selection-source.d.ts.map +1 -1
  18. package/dist/adapter/entrypoint-selection-source.js +1 -44
  19. package/dist/adapter/finders/scenes-from-entrypoint-selection.d.ts.map +1 -1
  20. package/dist/adapter/finders/scenes-from-entrypoint-selection.js +1 -52
  21. package/dist/adapter/host-context.d.ts +46 -15
  22. package/dist/adapter/host-context.d.ts.map +1 -1
  23. package/dist/adapter/host-context.js +2 -9
  24. package/dist/adapter/index.d.ts +11 -12
  25. package/dist/adapter/index.d.ts.map +1 -1
  26. package/dist/adapter/index.js +9 -10
  27. package/dist/adapter/ingest/game-contract.d.ts +0 -3
  28. package/dist/adapter/ingest/game-contract.d.ts.map +1 -1
  29. package/dist/adapter/ingest/game-contract.js +0 -3
  30. package/dist/adapter/ingest/scene-capture.d.ts +19 -23
  31. package/dist/adapter/ingest/scene-capture.d.ts.map +1 -1
  32. package/dist/adapter/ingest/scene-capture.js +143 -17
  33. package/dist/adapter/ingest/visible-capture-window.d.ts +34 -0
  34. package/dist/adapter/ingest/visible-capture-window.d.ts.map +1 -1
  35. package/dist/adapter/native-debug-module.d.ts +31 -5
  36. package/dist/adapter/native-debug-module.d.ts.map +1 -1
  37. package/dist/adapter/native-debug-module.js +25 -7
  38. package/dist/adapter/rapier-physics-adapter.d.ts +31 -1
  39. package/dist/adapter/rapier-physics-adapter.d.ts.map +1 -1
  40. package/dist/adapter/rapier-physics-adapter.js +50 -36
  41. package/dist/adapter/renderer-config.d.ts +2 -2
  42. package/dist/adapter/renderer-config.js +2 -2
  43. package/dist/adapter/root-adapter.d.ts +7 -7
  44. package/dist/adapter/root-adapter.js +4 -4
  45. package/dist/adapter/system-adapter.d.ts +45 -7
  46. package/dist/adapter/system-adapter.d.ts.map +1 -1
  47. package/dist/adapter/system-seam-contract.d.ts +3 -3
  48. package/dist/adapter/system-seam-contract.js +3 -3
  49. package/dist/adapter/system-slot.d.ts +168 -0
  50. package/dist/adapter/system-slot.d.ts.map +1 -0
  51. package/dist/adapter/system-slot.js +229 -0
  52. package/dist/adapter/transform.d.ts +11 -1
  53. package/dist/adapter/transform.d.ts.map +1 -1
  54. package/dist/ai/navigation.d.ts +17 -1
  55. package/dist/ai/navigation.d.ts.map +1 -1
  56. package/dist/ai/navigation.js +26 -5
  57. package/dist/animation/anim-graph-types.d.ts +11 -3
  58. package/dist/animation/anim-graph-types.d.ts.map +1 -1
  59. package/dist/animation/theatre-clock-binding.d.ts +4 -4
  60. package/dist/animation/theatre-clock-binding.js +4 -4
  61. package/dist/animation/xstate-animation-binding.d.ts.map +1 -1
  62. package/dist/animation/xstate-animation-binding.js +2 -2
  63. package/dist/animation/xstate-animation-meta.d.ts +13 -0
  64. package/dist/animation/xstate-animation-meta.d.ts.map +1 -1
  65. package/dist/animation/xstate-animation-meta.js +14 -0
  66. package/dist/asset-formats/index.d.ts +4 -7
  67. package/dist/asset-formats/index.d.ts.map +1 -1
  68. package/dist/asset-formats/index.js +4 -7
  69. package/dist/asset-formats/render-env.d.ts +5 -8
  70. package/dist/asset-formats/render-env.d.ts.map +1 -1
  71. package/dist/asset-formats/render-env.js +3 -6
  72. package/dist/asset-parse-error.d.ts +2 -5
  73. package/dist/asset-parse-error.d.ts.map +1 -1
  74. package/dist/asset-parse-error.js +2 -5
  75. package/dist/audio/bus-mixer.d.ts +101 -0
  76. package/dist/audio/bus-mixer.d.ts.map +1 -0
  77. package/dist/audio/bus-mixer.js +115 -0
  78. package/dist/core/frame-pacing.d.ts +1 -1
  79. package/dist/core/frame-pacing.js +2 -2
  80. package/dist/core/game-loop.d.ts +1 -3
  81. package/dist/core/game-loop.d.ts.map +1 -1
  82. package/dist/core/game-loop.js +1 -3
  83. package/dist/core/seeded-random.d.ts +1 -1
  84. package/dist/core/sim-clock.d.ts +5 -6
  85. package/dist/core/sim-clock.d.ts.map +1 -1
  86. package/dist/core/sim-clock.js +4 -5
  87. package/dist/core/types.d.ts +1 -3
  88. package/dist/core/types.d.ts.map +1 -1
  89. package/dist/defaults.d.ts +6 -14
  90. package/dist/defaults.d.ts.map +1 -1
  91. package/dist/defaults.js +6 -14
  92. package/dist/dev/register-render-vitals.d.ts +1 -4
  93. package/dist/dev/register-render-vitals.d.ts.map +1 -1
  94. package/dist/dev/register-render-vitals.js +1 -4
  95. package/dist/dev/render-debug-adapter.d.ts +2 -3
  96. package/dist/dev/render-debug-adapter.d.ts.map +1 -1
  97. package/dist/dev/render-debug-adapter.js +2 -3
  98. package/dist/dev/render-vitals.d.ts +3 -3
  99. package/dist/dev/render-vitals.js +3 -3
  100. package/dist/dev/webgl-frame-capture.d.ts +1 -1
  101. package/dist/dev/webgl-frame-capture.js +1 -1
  102. package/dist/index.d.ts +2 -5
  103. package/dist/index.d.ts.map +1 -1
  104. package/dist/index.js +2 -4
  105. package/dist/input/host-pointer.d.ts +122 -0
  106. package/dist/input/host-pointer.d.ts.map +1 -0
  107. package/dist/input/host-pointer.js +160 -0
  108. package/dist/input/input-manager.d.ts +18 -5
  109. package/dist/input/input-manager.d.ts.map +1 -1
  110. package/dist/input/input-manager.js +33 -13
  111. package/dist/input/rebind-controller.d.ts.map +1 -1
  112. package/dist/input/rebind-controller.js +6 -8
  113. package/dist/input/schema.d.ts.map +1 -1
  114. package/dist/input/schema.js +56 -28
  115. package/dist/manifest/filename.d.ts.map +1 -1
  116. package/dist/manifest/filename.js +8 -12
  117. package/dist/manifest/load.d.ts +10 -10
  118. package/dist/manifest/load.d.ts.map +1 -1
  119. package/dist/manifest/load.js +9 -6
  120. package/dist/manifest/schema.d.ts +17 -21
  121. package/dist/manifest/schema.d.ts.map +1 -1
  122. package/dist/manifest/schema.js +45 -35
  123. package/dist/physics/collider-dimensions.d.ts +8 -12
  124. package/dist/physics/collider-dimensions.d.ts.map +1 -1
  125. package/dist/physics/collider-dimensions.js +8 -12
  126. package/dist/pixi/scene-capture.d.ts +11 -13
  127. package/dist/pixi/scene-capture.d.ts.map +1 -1
  128. package/dist/react/world-state.d.ts +1 -1
  129. package/dist/react/world-state.d.ts.map +1 -1
  130. package/dist/render/light-camera-factory.d.ts +5 -7
  131. package/dist/render/light-camera-factory.d.ts.map +1 -1
  132. package/dist/render/light-camera-factory.js +8 -11
  133. package/dist/render/material-factory.js +1 -1
  134. package/dist/render/render-batch-system.d.ts.map +1 -1
  135. package/dist/render/render-features.d.ts +17 -6
  136. package/dist/render/render-features.d.ts.map +1 -1
  137. package/dist/render/render-features.js +0 -28
  138. package/dist/runtime/create-runtime.d.ts +34 -25
  139. package/dist/runtime/create-runtime.d.ts.map +1 -1
  140. package/dist/runtime/create-runtime.js +218 -93
  141. package/dist/runtime/debug-registry.d.ts +77 -8
  142. package/dist/runtime/debug-registry.d.ts.map +1 -1
  143. package/dist/runtime/debug-registry.js +3 -3
  144. package/dist/runtime/dev-build.d.ts +2 -2
  145. package/dist/runtime/dev-build.js +2 -2
  146. package/dist/runtime/game-input-seams.d.ts +2 -2
  147. package/dist/runtime/game-input-seams.d.ts.map +1 -1
  148. package/dist/runtime/game.d.ts +90 -41
  149. package/dist/runtime/game.d.ts.map +1 -1
  150. package/dist/runtime/game.js +80 -54
  151. package/dist/runtime/mount-game.d.ts +0 -16
  152. package/dist/runtime/mount-game.d.ts.map +1 -1
  153. package/dist/runtime/mount-game.js +8 -39
  154. package/dist/runtime/mount-manifest.d.ts +22 -14
  155. package/dist/runtime/mount-manifest.d.ts.map +1 -1
  156. package/dist/runtime/mount-manifest.js +18 -18
  157. package/dist/runtime/playtest.d.ts +22 -0
  158. package/dist/runtime/playtest.d.ts.map +1 -0
  159. package/dist/runtime/playtest.js +12 -0
  160. package/dist/runtime/state-bridge.d.ts +2 -3
  161. package/dist/runtime/state-bridge.d.ts.map +1 -1
  162. package/dist/runtime/state-bridge.js +1 -0
  163. package/dist/setup/setup-audio.d.ts +12 -0
  164. package/dist/setup/setup-audio.d.ts.map +1 -1
  165. package/dist/setup/setup-audio.js +9 -10
  166. package/dist/setup/setup-renderer.d.ts +2 -25
  167. package/dist/setup/setup-renderer.d.ts.map +1 -1
  168. package/dist/setup/setup-renderer.js +2 -31
  169. package/dist/world3d-react/r3f-root-factory.d.ts +7 -7
  170. package/dist/world3d-react/r3f-root-factory.js +7 -7
  171. package/dist/world3d-react/rapier-physics-bridge.d.ts +9 -8
  172. package/dist/world3d-react/rapier-physics-bridge.d.ts.map +1 -1
  173. package/dist/world3d-react/rapier-physics-bridge.js +100 -48
  174. package/package.json +1 -1
  175. package/schemas/engine-capabilities.json +16 -14
  176. package/schemas/vgai-project.schema.json +35 -26
  177. package/src/adapter/adapter-module.ts +2 -4
  178. package/src/adapter/adapter-surface.ts +1 -1
  179. package/src/adapter/authoring.ts +19 -21
  180. package/src/adapter/binding.ts +468 -0
  181. package/src/adapter/colyseus-networking-adapter.ts +20 -5
  182. package/src/adapter/entrypoint-selection-readers.ts +66 -0
  183. package/src/adapter/entrypoint-selection-source.ts +1 -40
  184. package/src/adapter/finders/scenes-from-entrypoint-selection.ts +1 -48
  185. package/src/adapter/host-context.ts +45 -15
  186. package/src/adapter/index.ts +23 -11
  187. package/src/adapter/ingest/game-contract.ts +0 -3
  188. package/src/adapter/ingest/scene-capture.ts +190 -39
  189. package/src/adapter/ingest/visible-capture-window.ts +35 -0
  190. package/src/adapter/native-debug-module.ts +43 -7
  191. package/src/adapter/rapier-physics-adapter.ts +76 -20
  192. package/src/adapter/renderer-config.ts +2 -2
  193. package/src/adapter/root-adapter.ts +7 -7
  194. package/src/adapter/system-adapter.ts +43 -8
  195. package/src/adapter/system-seam-contract.ts +3 -3
  196. package/src/adapter/system-slot.ts +291 -0
  197. package/src/adapter/transform.ts +18 -1
  198. package/src/ai/navigation.ts +30 -3
  199. package/src/animation/anim-graph-types.ts +11 -3
  200. package/src/animation/theatre-clock-binding.ts +4 -4
  201. package/src/animation/xstate-animation-binding.ts +2 -2
  202. package/src/animation/xstate-animation-meta.ts +16 -0
  203. package/src/asset-formats/index.ts +4 -7
  204. package/src/asset-formats/render-env.ts +3 -6
  205. package/src/asset-parse-error.ts +2 -5
  206. package/src/audio/bus-mixer.ts +161 -0
  207. package/src/core/frame-pacing.ts +2 -2
  208. package/src/core/game-loop.ts +1 -3
  209. package/src/core/seeded-random.ts +1 -1
  210. package/src/core/sim-clock.ts +5 -6
  211. package/src/core/types.ts +1 -3
  212. package/src/defaults.ts +6 -14
  213. package/src/dev/register-render-vitals.ts +1 -4
  214. package/src/dev/render-debug-adapter.ts +2 -3
  215. package/src/dev/render-vitals.ts +3 -3
  216. package/src/dev/webgl-frame-capture.ts +1 -1
  217. package/src/index.ts +2 -5
  218. package/src/input/host-pointer.ts +230 -0
  219. package/src/input/input-manager.ts +34 -13
  220. package/src/input/input-types.ts +1 -1
  221. package/src/input/rebind-controller.ts +6 -8
  222. package/src/input/schema.ts +216 -188
  223. package/src/manifest/filename.ts +8 -12
  224. package/src/manifest/load.ts +17 -13
  225. package/src/manifest/schema.ts +55 -47
  226. package/src/physics/collider-dimensions.ts +8 -12
  227. package/src/pixi/scene-capture.ts +12 -15
  228. package/src/react/world-state.tsx +1 -1
  229. package/src/render/light-camera-factory.ts +8 -11
  230. package/src/render/material-factory.ts +1 -1
  231. package/src/render/render-batch-system.ts +14 -6
  232. package/src/render/render-features.ts +17 -35
  233. package/src/runtime/create-runtime.ts +270 -108
  234. package/src/runtime/debug-registry.ts +84 -8
  235. package/src/runtime/dev-build.ts +2 -2
  236. package/src/runtime/game-input-seams.ts +2 -2
  237. package/src/runtime/game.ts +168 -80
  238. package/src/runtime/mount-game.ts +8 -56
  239. package/src/runtime/mount-manifest.ts +43 -34
  240. package/src/runtime/playtest.ts +22 -0
  241. package/src/runtime/state-bridge.ts +3 -3
  242. package/src/setup/setup-audio.ts +21 -11
  243. package/src/setup/setup-renderer.ts +2 -61
  244. package/src/world3d-react/r3f-root-factory.tsx +7 -7
  245. package/src/world3d-react/rapier-physics-bridge.tsx +107 -50
  246. package/dist/adapter/setup-three-root-adapter.d.ts +0 -86
  247. package/dist/adapter/setup-three-root-adapter.d.ts.map +0 -1
  248. package/dist/adapter/setup-three-root-adapter.js +0 -908
  249. package/dist/animation/clip-map.d.ts +0 -12
  250. package/dist/animation/clip-map.d.ts.map +0 -1
  251. package/dist/animation/clip-map.js +0 -31
  252. package/dist/asset-registry.d.ts +0 -38
  253. package/dist/asset-registry.d.ts.map +0 -1
  254. package/dist/asset-registry.js +0 -66
  255. package/dist/canvas-react/engine-bridge.d.ts +0 -45
  256. package/dist/canvas-react/engine-bridge.d.ts.map +0 -1
  257. package/dist/canvas-react/engine-bridge.js +0 -45
  258. package/dist/canvas-react/pixi-react-adapter.d.ts +0 -77
  259. package/dist/canvas-react/pixi-react-adapter.d.ts.map +0 -1
  260. package/dist/canvas-react/pixi-react-adapter.js +0 -294
  261. package/dist/canvas-react/world-context.d.ts +0 -98
  262. package/dist/canvas-react/world-context.d.ts.map +0 -1
  263. package/dist/canvas-react/world-context.js +0 -173
  264. package/dist/dev/debug-draw.d.ts +0 -24
  265. package/dist/dev/debug-draw.d.ts.map +0 -1
  266. package/dist/dev/debug-draw.js +0 -73
  267. package/dist/render/auto-batcher.d.ts +0 -34
  268. package/dist/render/auto-batcher.d.ts.map +0 -1
  269. package/dist/render/auto-batcher.js +0 -140
  270. package/dist/render/lod.d.ts +0 -13
  271. package/dist/render/lod.d.ts.map +0 -1
  272. package/dist/render/lod.js +0 -16
  273. package/dist/runtime/types.d.ts +0 -303
  274. package/dist/runtime/types.d.ts.map +0 -1
  275. package/dist/runtime/types.js +0 -1
  276. package/dist/world3d-react/engine-bridge.d.ts +0 -47
  277. package/dist/world3d-react/engine-bridge.d.ts.map +0 -1
  278. package/dist/world3d-react/engine-bridge.js +0 -73
  279. package/dist/world3d-react/r3f-adapter.d.ts +0 -58
  280. package/dist/world3d-react/r3f-adapter.d.ts.map +0 -1
  281. package/dist/world3d-react/r3f-adapter.js +0 -634
  282. package/dist/world3d-react/world-context.d.ts +0 -182
  283. package/dist/world3d-react/world-context.d.ts.map +0 -1
  284. package/dist/world3d-react/world-context.js +0 -235
  285. package/src/adapter/setup-three-root-adapter.ts +0 -1032
  286. package/src/animation/clip-map.ts +0 -34
  287. package/src/asset-registry.ts +0 -89
  288. package/src/dev/debug-draw.ts +0 -80
  289. package/src/render/auto-batcher.ts +0 -168
  290. package/src/render/lod.ts +0 -17
  291. package/src/runtime/types.ts +0 -328
@@ -5,17 +5,13 @@
5
5
  * shape is defined in absolute world units at creation time. Three.js meshes,
6
6
  * by contrast, scale visually for free via the normal Object3D hierarchy. To
7
7
  * keep the physical collider matching what's on screen, the LOADER must bake
8
- * the entity's composed WORLD scale (self × every transformed ancestor — see
9
- * T1.1's world-transform composition) into the collider's dimensions at
10
- * creation time.
8
+ * the entity's composed WORLD scale (self × every transformed ancestor) into
9
+ * the collider's dimensions at creation time.
11
10
  *
12
- * This is the ONE place that does that math, so both the runtime loader
13
- * (scene-loader.ts `createPhysicsBody`) and the editor's collider gizmo
14
- * (gizmo-registry.ts) agree on exactly the same numbers previously the
15
- * editor gizmo only rendered the entity's own live Object3D scale (via normal
16
- * Three.js parenting) while the Rapier body ignored scale entirely, so the
17
- * two silently agreed by coincidence for uniform scale and disagreed for
18
- * everything else.
11
+ * This is the ONE place that does that math, so every caller — the physics
12
+ * body creation path and the editor's collider gizmo alike — agrees on
13
+ * exactly the same numbers. Two copies silently agree by coincidence for
14
+ * uniform scale and disagree for everything else.
19
15
  *
20
16
  * Round colliders (ball/capsule) can only represent a uniform radius — Rapier
21
17
  * has no ellipsoid/elliptical-capsule shape. A non-uniform world scale on a
@@ -33,8 +29,8 @@ export interface ColliderWorldDimensions {
33
29
  }
34
30
  /**
35
31
  * Compute a collider's WORLD-space dimensions given the entity's composed
36
- * world scale (self × ancestors, per-axis, in the entity's own local frame
37
- * X/Y/Z order matches `SceneEntity.transform.scale`).
32
+ * world scale (self × ancestors, per-axis, in the entity's own local frame,
33
+ * in X/Y/Z order).
38
34
  *
39
35
  * @param collider - the entity's authored (unscaled) collider definition.
40
36
  * @param worldScale - composed world scale `[x, y, z]`.
@@ -1 +1 @@
1
- {"version":3,"file":"collider-dimensions.d.ts","sourceRoot":"","sources":["../../src/physics/collider-dimensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,kBAAkB,EAC5B,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7C,WAAW,EAAE,MAAM,GAClB,uBAAuB,CA4CzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACrD,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAItC"}
1
+ {"version":3,"file":"collider-dimensions.d.ts","sourceRoot":"","sources":["../../src/physics/collider-dimensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAMpE,MAAM,WAAW,uBAAuB;IACtC,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,kBAAkB,EAC5B,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC7C,WAAW,EAAE,MAAM,GAClB,uBAAuB,CA4CzB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EACrD,UAAU,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAItC"}
@@ -5,17 +5,13 @@
5
5
  * shape is defined in absolute world units at creation time. Three.js meshes,
6
6
  * by contrast, scale visually for free via the normal Object3D hierarchy. To
7
7
  * keep the physical collider matching what's on screen, the LOADER must bake
8
- * the entity's composed WORLD scale (self × every transformed ancestor — see
9
- * T1.1's world-transform composition) into the collider's dimensions at
10
- * creation time.
8
+ * the entity's composed WORLD scale (self × every transformed ancestor) into
9
+ * the collider's dimensions at creation time.
11
10
  *
12
- * This is the ONE place that does that math, so both the runtime loader
13
- * (scene-loader.ts `createPhysicsBody`) and the editor's collider gizmo
14
- * (gizmo-registry.ts) agree on exactly the same numbers previously the
15
- * editor gizmo only rendered the entity's own live Object3D scale (via normal
16
- * Three.js parenting) while the Rapier body ignored scale entirely, so the
17
- * two silently agreed by coincidence for uniform scale and disagreed for
18
- * everything else.
11
+ * This is the ONE place that does that math, so every caller — the physics
12
+ * body creation path and the editor's collider gizmo alike — agrees on
13
+ * exactly the same numbers. Two copies silently agree by coincidence for
14
+ * uniform scale and disagree for everything else.
19
15
  *
20
16
  * Round colliders (ball/capsule) can only represent a uniform radius — Rapier
21
17
  * has no ellipsoid/elliptical-capsule shape. A non-uniform world scale on a
@@ -27,8 +23,8 @@ import { DEFAULTS } from '../defaults';
27
23
  const UNIFORM_SCALE_EPSILON = 1e-4;
28
24
  /**
29
25
  * Compute a collider's WORLD-space dimensions given the entity's composed
30
- * world scale (self × ancestors, per-axis, in the entity's own local frame
31
- * X/Y/Z order matches `SceneEntity.transform.scale`).
26
+ * world scale (self × ancestors, per-axis, in the entity's own local frame,
27
+ * in X/Y/Z order).
32
28
  *
33
29
  * @param collider - the entity's authored (unscaled) collider definition.
34
30
  * @param worldScale - composed world scale `[x, y, z]`.
@@ -17,20 +17,18 @@
17
17
  * instance, so it is trapped; a game bundling its own pixi cannot be captured at
18
18
  * all, and its mount fails by name.
19
19
  */
20
- import { type VisibilityClock, type VisibleCaptureWindow } from '../adapter/ingest/visible-capture-window';
20
+ import { type CaptureWaitOptions } from '../adapter/ingest/visible-capture-window';
21
21
  /**
22
- * Options for {@link SceneCapture2DHandle.waitForCapture} — the same shape the
23
- * three lane's `CaptureWaitOptions` has, because it is the same wait. Passing a
24
- * bare number is `{ timeoutMs }`, which is what every existing caller does.
22
+ * Options for {@link SceneCapture2DHandle.waitForCapture} — the WAIT's options,
23
+ * not this lane's, so they carry no `2D` suffix and are not declared here.
24
+ * They configure `visible-capture-window.ts`'s window, which both surfaces
25
+ * share; this lane used to restate them field-for-field under a `2D` name.
26
+ * The suffix marks what a surface genuinely owns
27
+ * ({@link CapturedRuntime2D} is a Pixi stage/renderer/app, and stays), and a
28
+ * budget of visible milliseconds is not that. Passing a bare number is
29
+ * `{ timeoutMs }`, which is what every existing caller does.
25
30
  */
26
- export interface CaptureWait2DOptions {
27
- /** The capture window, in VISIBLE milliseconds (default 10s). */
28
- timeoutMs?: number | undefined;
29
- /** Injected in tests; defaults to the document's own visibility. */
30
- visibility?: VisibilityClock | undefined;
31
- /** Live view of the wait while it runs, `null` the moment it ends. */
32
- onWait?: ((wait: VisibleCaptureWindow | null) => void) | undefined;
33
- }
31
+ export type { CaptureWaitOptions };
34
32
  /** A live Pixi runtime captured from an external PixiJS game. */
35
33
  export interface CapturedRuntime2D {
36
34
  /** The game's root stage Container. */
@@ -59,7 +57,7 @@ export interface SceneCapture2DHandle {
59
57
  * frame the tab draws after it comes forward is trapped exactly as it would
60
58
  * have been at boot. Rejects only when the window is spent while VISIBLE.
61
59
  */
62
- waitForCapture(options?: number | CaptureWait2DOptions): Promise<CapturedRuntime2D>;
60
+ waitForCapture(options?: number | CaptureWaitOptions): Promise<CapturedRuntime2D>;
63
61
  getDrawCount(): number;
64
62
  /** Pause/resume the captured game's own ticker (loop-host gating). */
65
63
  setPaused(paused: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"scene-capture.d.ts","sourceRoot":"","sources":["../../src/pixi/scene-capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,0CAA0C,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,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,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,wEAAwE;IACxE,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC5C;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClF,YAAY,IAAI,MAAM,CAAC;IACvB,sEAAsE;IACtE,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,SAAS,IAAI,IAAI,CAAC;CACnB;AAMD,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CAChE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,OAAO,EACtB,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CAmFtB"}
@@ -18,9 +18,9 @@
18
18
  import { type PropsWithChildren } from 'react';
19
19
  import type { z } from 'zod';
20
20
  import type { RootStateObserver } from '../adapter';
21
+ import type { DebugCommandArgs } from '../runtime/debug-registry';
21
22
  import { type Equals, shallow } from '../runtime/frame-selector-cache';
22
23
  import type { Game } from '../runtime/game';
23
- import type { DebugCommandArgs } from '../runtime/types';
24
24
  /** Re-exported for convenience — the opt-in equality for selectors that
25
25
  * return a fresh object/array/tuple every call (default is `Object.is`). */
26
26
  export { shallow };
@@ -1 +1 @@
1
- {"version":3,"file":"world-state.d.ts","sourceRoot":"","sources":["../../src/react/world-state.tsx"],"names":[],"mappings":"AAAA;;;;;;;;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AE,QAAQ,GAAG,QAAQ,CAAA;CAAE,EACrE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAC/D,IAAI,CAeN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,YAAY,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CASxE"}
@@ -1,12 +1,10 @@
1
1
  /**
2
- * Shared light + camera factory (T1.13 DEFAULTS truth).
2
+ * Shared light + camera factory — the ONE place light/camera fallbacks are
3
+ * decided, and it decides them by READING `DEFAULTS.light`/`DEFAULTS.camera`.
3
4
  *
4
- * `createLight`/`createCamera` used to be duplicated verbatim between the
5
- * runtime loader (`scene-loader.ts`) and the editor preview
6
- * (`entity-factory.ts`)both hardcoded the same fallback literals (color
7
- * '#ffffff', fov 60, near 0.1, far 1000, etc.) that happened to agree with
8
- * `DEFAULTS.light`/`DEFAULTS.camera` by luck rather than by reading them. Any
9
- * edit to one copy (or to `DEFAULTS`) could silently diverge from the other.
5
+ * A second copy hardcoding the same literals (color '#ffffff', fov 60, near
6
+ * 0.1, far 1000) would agree by luck rather than by construction, and any
7
+ * edit to either copy or to `DEFAULTS` would silently diverge.
10
8
  *
11
9
  * This module is now the ONE place that builds a `THREE.Light`/`THREE.Camera`
12
10
  * from a `LightDescriptor`/`CameraDescriptor` descriptor, reading its fallbacks from
@@ -1 +1 @@
1
- {"version":3,"file":"light-camera-factory.d.ts","sourceRoot":"","sources":["../../src/render/light-camera-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAK9D,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,KAAK,CAAC,KAAK,CA8C7D;AAED,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAoBhE"}
1
+ {"version":3,"file":"light-camera-factory.d.ts","sourceRoot":"","sources":["../../src/render/light-camera-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAK9D,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,KAAK,CAAC,KAAK,CA8C7D;AAED,oEAAoE;AACpE,wBAAgB,YAAY,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAoBhE"}
@@ -1,12 +1,10 @@
1
1
  /**
2
- * Shared light + camera factory (T1.13 DEFAULTS truth).
2
+ * Shared light + camera factory — the ONE place light/camera fallbacks are
3
+ * decided, and it decides them by READING `DEFAULTS.light`/`DEFAULTS.camera`.
3
4
  *
4
- * `createLight`/`createCamera` used to be duplicated verbatim between the
5
- * runtime loader (`scene-loader.ts`) and the editor preview
6
- * (`entity-factory.ts`)both hardcoded the same fallback literals (color
7
- * '#ffffff', fov 60, near 0.1, far 1000, etc.) that happened to agree with
8
- * `DEFAULTS.light`/`DEFAULTS.camera` by luck rather than by reading them. Any
9
- * edit to one copy (or to `DEFAULTS`) could silently diverge from the other.
5
+ * A second copy hardcoding the same literals (color '#ffffff', fov 60, near
6
+ * 0.1, far 1000) would agree by luck rather than by construction, and any
7
+ * edit to either copy or to `DEFAULTS` would silently diverge.
10
8
  *
11
9
  * This module is now the ONE place that builds a `THREE.Light`/`THREE.Camera`
12
10
  * from a `LightDescriptor`/`CameraDescriptor` descriptor, reading its fallbacks from
@@ -21,10 +19,9 @@ import * as THREE from 'three';
21
19
  // `three/addons/*` alias (package.json `exports`: `"./addons/*":
22
20
  // "./examples/jsm/*"` — the identical file as
23
21
  // `three/examples/jsm/lights/RectAreaLightUniformsLib.js`) because a literal
24
- // `/examples/` specifier trips `engine-host-no-game-imports.test.ts`'s
25
- // game/editor-example guard (a same-substring false positive against this
26
- // repo's OWN `packages/editor/template/src/examples/` convention, unrelated
27
- // to three.js's addon folder naming).
22
+ // `/examples/` specifier trips this repo's game/editor-example import guard —
23
+ // a same-substring false positive against our own `src/examples/` convention,
24
+ // unrelated to three.js's addon folder naming.
28
25
  import { RectAreaLightUniformsLib } from 'three/addons/lights/RectAreaLightUniformsLib.js';
29
26
  import { DEFAULTS } from '../defaults';
30
27
  let rectAreaLightUniformsInitialized = false;
@@ -54,7 +54,7 @@ export function createMaterial(mat) {
54
54
  // R1c — every fallback below reads DEFAULTS.material.* instead of
55
55
  // duplicating its value as a bare literal, so DEFAULTS stays the single
56
56
  // source of truth for what an omitted field renders as (see
57
- // defaults-out-of-scope-consistency.test.ts / material-factory.test.ts's
57
+ // `material-factory.test.ts`'s
58
58
  // "omitted-field" locks, which fail if either copy drifts from the other).
59
59
  const dMat = DEFAULTS.material;
60
60
  const sideValue = mat.side ?? dMat.side;
@@ -1 +1 @@
1
- {"version":3,"file":"render-batch-system.d.ts","sourceRoot":"","sources":["../../src/render/render-batch-system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AA6FhE,qBAAa,iBAAiB;IAU1B,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,QAAQ;IAVlB,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,QAAQ,CAA6C;IAE7D,OAAO,CAAC,SAAS,CA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;CAiBjB"}
@@ -1,12 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
3
  * The render-feature registry — single source of truth for every togglable render
4
- * setting. The scene schema (`SceneEnvironment.rendering`, `SceneEntity.render`),
5
- * the cascade resolver (`resolveRenderSettings`), the editor UI, and the stats
6
- * overlay are all derived from this list, so "everything togglable" stays
7
- * consistent by construction (same posture as the component/material/instancer
8
- * registries). Adding a feature here gives it a schema field + cascade entry for
9
- * free..
4
+ * setting. The render-env schema (`asset-formats/render-env.ts`) and the cascade
5
+ * resolver (`resolveRenderSettings`) are both derived from this list, so
6
+ * "everything togglable" stays consistent by construction (same posture as the
7
+ * component/material/instancer registries).
8
+ *
9
+ * EVERY ENTRY HERE MUST HAVE A RUNTIME READER of its resolved value, and that is
10
+ * now enforced: `schema-reader-coverage.test.ts` derives its walk from this
11
+ * array, so adding a feature adds a described schema path that fails coverage
12
+ * until `schema-consumption-map.ts` names the file that reads it.
13
+ *
14
+ * Three entries were deleted when that enforcement first ran, having reached it
15
+ * with no reader at all: `autoBatch` (its only mention was a COMMENT in
16
+ * `render-batch-system.ts`, a class whose own header says nothing calls it),
17
+ * `lod`, and `backend` (which offered a `webgpu` option while
18
+ * `setup-renderer.ts` unconditionally constructs a `THREE.WebGLRenderer`). A
19
+ * toggle that changes nothing is worse than a missing one — it tells an author
20
+ * the engine has a dial it does not have.
10
21
  */
11
22
  export type RenderFeatureValue = boolean | number | string;
12
23
  export interface RenderFeature {
@@ -1 +1 @@
1
- {"version":3,"file":"render-features.d.ts","sourceRoot":"","sources":["../../src/render/render-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AAEH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,KAAK,EAAE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AK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,oFAAoF;IACpF,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAgDnD,CAAC;AAEF,kCAAkC;AAClC,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAEpE,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,CAAC,CAAC,UAAU,CAiBtF"}
@@ -1,14 +1,5 @@
1
1
  import { z } from 'zod';
2
2
  export const RENDER_FEATURES = [
3
- {
4
- key: 'autoBatch',
5
- label: 'Auto-batching',
6
- description: 'Automatically batch entities sharing geometry+material into one draw call (InstancedMesh/BatchedMesh) while keeping each Object3D as the handle. The headline perf win; opt out per-entity for custom-shader/skinned meshes.',
7
- kind: 'toggle',
8
- default: true,
9
- apply: 'live',
10
- perEntity: true,
11
- },
12
3
  {
13
4
  key: 'frustumCulling',
14
5
  label: 'Frustum culling',
@@ -18,15 +9,6 @@ export const RENDER_FEATURES = [
18
9
  apply: 'live',
19
10
  perEntity: true,
20
11
  },
21
- {
22
- key: 'lod',
23
- label: 'Level of detail',
24
- description: 'Distance-based geometry swap (LOD) for eligible entities.',
25
- kind: 'toggle',
26
- default: true,
27
- apply: 'live',
28
- perEntity: true,
29
- },
30
12
  {
31
13
  key: 'shadows',
32
14
  label: 'Shadows',
@@ -64,16 +46,6 @@ export const RENDER_FEATURES = [
64
46
  apply: 'reload',
65
47
  perEntity: false,
66
48
  },
67
- {
68
- key: 'backend',
69
- label: 'Renderer backend',
70
- description: 'GPU backend: auto picks WebGPU when available, else WebGL2. Applies on reload.',
71
- kind: 'enum',
72
- default: 'auto',
73
- apply: 'reload',
74
- perEntity: false,
75
- options: ['auto', 'webgl', 'webgpu'],
76
- },
77
49
  ];
78
50
  /** Map for O(1) lookup by key. */
79
51
  export const RENDER_FEATURE_BY_KEY = new Map(RENDER_FEATURES.map((f) => [f.key, f]));
@@ -1,16 +1,27 @@
1
+ import { type RootDeclaration } from '../adapter/binding';
1
2
  import type { DomHostContext } from '../adapter/host-context';
2
3
  import type { MountedPixiRoot, MountedReactRoot, MountedThreeRoot, RootAdapter } from '../adapter/root-adapter';
3
4
  import { type Game, type GameInternal, type RootInstance } from './game';
4
- import type { PlaytestContext } from './types';
5
+ import type { PlaytestContext } from './playtest';
5
6
  /**
6
7
  * Register a three world onto the Game shell. `opts.id` defaults to
7
8
  * `'main'`; multi-root callers pass an explicit id. This is the one
8
9
  * registration path for a three world, whatever its id.
9
10
  */
10
- export declare function registerThreeRoot(game: GameInternal, adapter: RootAdapter, mounted: MountedThreeRoot, opts?: {
11
- id?: string | undefined;
12
- pausable?: boolean | undefined;
13
- }): RootInstance;
11
+ export declare function registerThreeRoot(game: GameInternal, adapter: RootAdapter, mounted: MountedThreeRoot, opts?: RegisterRootOptions): RootInstance;
12
+ /** What every `register<Surface>Root` takes beyond the mount itself. */
13
+ export interface RegisterRootOptions {
14
+ readonly id?: string | undefined;
15
+ readonly pausable?: boolean | undefined;
16
+ /**
17
+ * The DECLARATION half of this root's binding, from the resolver that
18
+ * produced `adapter` (`adapter/binding.ts`). Absent for a bare harness
19
+ * registration or a `mountManifestRoots` caller who supplied an
20
+ * already-constructed adapter — see `RootInstance.binding` for why that
21
+ * legitimately yields `null` rather than a fabricated binding.
22
+ */
23
+ readonly declaration?: RootDeclaration | undefined;
24
+ }
14
25
  /**
15
26
  * Register a canvas world onto the Game shell — the pixi analog of
16
27
  * {@link registerThreeRoot}. `adapter` is the seam's own
@@ -18,10 +29,7 @@ export declare function registerThreeRoot(game: GameInternal, adapter: RootAdapt
18
29
  * (`AdapterHandle`, `runtime/game.ts`), so this passes through with zero cast.
19
30
  * `stage` is the one field every `MountedPixiRoot` actually carries.
20
31
  */
21
- export declare function registerPixiRoot(game: GameInternal, adapter: RootAdapter<'canvas'>, mounted: MountedPixiRoot, opts?: {
22
- id?: string | undefined;
23
- pausable?: boolean | undefined;
24
- }): RootInstance;
32
+ export declare function registerPixiRoot(game: GameInternal, adapter: RootAdapter<'canvas'>, mounted: MountedPixiRoot, opts?: RegisterRootOptions): RootInstance;
25
33
  /**
26
34
  * Register a React world onto the Game shell — the DOM
27
35
  * analog of {@link registerThreeRoot}/{@link registerPixiRoot}. A react
@@ -33,10 +41,7 @@ export declare function registerPixiRoot(game: GameInternal, adapter: RootAdapte
33
41
  * `registerPixiRoot`'s doc comment above) — `RootInstance.adapter` only
34
42
  * needs `.id`, so this passes through with zero cast.
35
43
  */
36
- export declare function registerReactRoot(game: GameInternal, adapter: RootAdapter<'dom'>, mounted: MountedReactRoot, container: HTMLElement, opts?: {
37
- id?: string | undefined;
38
- pausable?: boolean | undefined;
39
- }): RootInstance;
44
+ export declare function registerReactRoot(game: GameInternal, adapter: RootAdapter<'dom'>, mounted: MountedReactRoot, container: HTMLElement, opts?: RegisterRootOptions): RootInstance;
40
45
  /**
41
46
  * One world to mount in the universal host — the host-facing mirror of
42
47
  * `manifest/load.ts`'s `ResolvedAdapterRoot` (same identity and presentation
@@ -63,6 +68,14 @@ export interface RootMountSpecBase {
63
68
  * `input-router.ts`'s `resolveClaimingRoot`.
64
69
  */
65
70
  readonly hitTest?: ((x: number, y: number) => boolean) | undefined;
71
+ /**
72
+ * The DECLARATION half of this root's binding, from whoever resolved
73
+ * `adapter` — see `adapter/binding.ts`'s {@link RootDeclaration}. Carried on
74
+ * the spec because the resolver knows it and the host is the only one who
75
+ * can complete the binding (it needs `mounted`, which does not exist until
76
+ * this spec is mounted).
77
+ */
78
+ readonly declaration?: RootDeclaration | undefined;
66
79
  }
67
80
  export interface ThreeRootMountSpec extends RootMountSpecBase {
68
81
  readonly kind: 'three';
@@ -89,9 +102,8 @@ export interface PixiRootMountSpec extends RootMountSpecBase {
89
102
  * opaque mount with nothing to tick).
90
103
  *
91
104
  * Deliberately carries NO `firstParty: true` brand: that brand specifically
92
- * means "has a `.ctx: GameContext`" (`isFirstPartyMounted`,
93
- * `runtime/game.ts`) a react world has no Rapier/ComponentManager/
94
- * GameContext at all, so branding it first-party would be a type lie.
105
+ * a react world has no physics or component runtime at all, so branding it
106
+ * first-party would be a type lie.
95
107
  * `Game.registerRoot`'s "no state bridge" console warning explicitly exempts
96
108
  * `kind: 'dom'` (§7.1-15): a react world has no `observe` BY DESIGN — that
97
109
  * hook is scoped to `useRootObservation` (the ingested/foreign-world case),
@@ -125,7 +137,7 @@ export interface ReactRootAdapter extends RootAdapter<'dom'> {
125
137
  readonly id: string;
126
138
  mount(host: DomHostContext): Promise<MountedReactGame>;
127
139
  }
128
- /** WO-34, same reasoning as {@link PixiRootMountSpec} above: the seam's
140
+ /** Same reasoning as {@link PixiRootMountSpec} above: the seam's
129
141
  * `RootAdapter<'dom'>` is what a DOM root actually guarantees. */
130
142
  export interface ReactRootMountSpec extends RootMountSpecBase {
131
143
  readonly kind: 'dom';
@@ -149,9 +161,8 @@ export interface RootsRuntimeConfig {
149
161
  /**
150
162
  * Mirrors `ThreeHostContext.headless` (Node conformance tests — no GPU): skips
151
163
  * real `WebGLRenderer` construction for every three world in this
152
- * session (a stand-in renderer is used instead, exactly as
153
- * `SetupThreeRootAdapter.mount` already special-cases `host.headless`
154
- * internally). Pixijs roots are unaffected — Pixi already falls back to
164
+ * session (a stand-in renderer is used instead; adapters special-case
165
+ * `host.headless` themselves). Pixijs roots are unaffected — Pixi already falls back to
155
166
  * a 2D canvas renderer with no GPU. Never set `true` in a real host.
156
167
  */
157
168
  headless?: boolean | undefined;
@@ -200,11 +211,9 @@ export interface RootsRuntimeConfig {
200
211
  /**
201
212
  * Handle returned by createGameRuntime() for controlling the running game.
202
213
  *
203
- * This is the GENERIC host handle — it has no first-party concepts (no
204
- * `GameContext`, no `GameSetupFn`). First-party features (the live `GameContext`,
205
- * warm-restart hot reload) are reached through `game.defaultRoot.mounted`
206
- * and narrowed to `MountedSetupThreeRoot`
207
- * (the editor does this for HMR/physics-sync — those are inherently first-party).
214
+ * This is the GENERIC host handle — it has no first-party concepts. A
215
+ * root's own surface is reached through `game.defaultRoot.mounted`, typed
216
+ * as the mounted-root contract (`MountedRoot`).
208
217
  *
209
218
  * Root access is explicit through `game.roots`, `game.world(id)`, and
210
219
  * `game.defaultRoot`; the session does not project a surface-specific alias.
@@ -1 +1 @@
1
- {"version":3,"file":"create-runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/create-runtime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,cAAc,EAAoB,MAAM,yBAAyB,CAAC;AACnG,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAEhB,gBAAgB,EAChB,WAAW,EACZ,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAGL,KAAK,IAAI,EACT,KAAK,YAAY,EAEjB,KAAK,YAAY,EAClB,MAAM,QAAQ,CAAC;AAGhB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA0B/C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,gBAAgB,EACzB,IAAI,CAAC,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GACjE,YAAY,CAYd;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,WAAW,CAAC,QAAQ,CAAC,EAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC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