@vgai/engine 0.5.22 → 0.5.24

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 (303) 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-seams.d.ts +5 -0
  28. package/dist/adapter/ingest/game-contract-seams.d.ts.map +1 -1
  29. package/dist/adapter/ingest/game-contract-seams.js +1 -0
  30. package/dist/adapter/ingest/game-contract.d.ts +22 -3
  31. package/dist/adapter/ingest/game-contract.d.ts.map +1 -1
  32. package/dist/adapter/ingest/game-contract.js +0 -3
  33. package/dist/adapter/ingest/scene-capture.d.ts +19 -23
  34. package/dist/adapter/ingest/scene-capture.d.ts.map +1 -1
  35. package/dist/adapter/ingest/scene-capture.js +143 -17
  36. package/dist/adapter/ingest/visible-capture-window.d.ts +34 -0
  37. package/dist/adapter/ingest/visible-capture-window.d.ts.map +1 -1
  38. package/dist/adapter/native-debug-module.d.ts +40 -5
  39. package/dist/adapter/native-debug-module.d.ts.map +1 -1
  40. package/dist/adapter/native-debug-module.js +36 -9
  41. package/dist/adapter/rapier-physics-adapter.d.ts +31 -1
  42. package/dist/adapter/rapier-physics-adapter.d.ts.map +1 -1
  43. package/dist/adapter/rapier-physics-adapter.js +50 -36
  44. package/dist/adapter/renderer-config.d.ts +2 -2
  45. package/dist/adapter/renderer-config.js +2 -2
  46. package/dist/adapter/root-adapter.d.ts +7 -7
  47. package/dist/adapter/root-adapter.js +4 -4
  48. package/dist/adapter/system-adapter.d.ts +45 -7
  49. package/dist/adapter/system-adapter.d.ts.map +1 -1
  50. package/dist/adapter/system-seam-contract.d.ts +3 -3
  51. package/dist/adapter/system-seam-contract.js +3 -3
  52. package/dist/adapter/system-slot.d.ts +168 -0
  53. package/dist/adapter/system-slot.d.ts.map +1 -0
  54. package/dist/adapter/system-slot.js +229 -0
  55. package/dist/adapter/transform.d.ts +11 -1
  56. package/dist/adapter/transform.d.ts.map +1 -1
  57. package/dist/ai/navigation.d.ts +17 -1
  58. package/dist/ai/navigation.d.ts.map +1 -1
  59. package/dist/ai/navigation.js +26 -5
  60. package/dist/animation/anim-graph-types.d.ts +11 -3
  61. package/dist/animation/anim-graph-types.d.ts.map +1 -1
  62. package/dist/animation/theatre-clock-binding.d.ts +4 -4
  63. package/dist/animation/theatre-clock-binding.js +4 -4
  64. package/dist/animation/xstate-animation-binding.d.ts.map +1 -1
  65. package/dist/animation/xstate-animation-binding.js +2 -2
  66. package/dist/animation/xstate-animation-meta.d.ts +13 -0
  67. package/dist/animation/xstate-animation-meta.d.ts.map +1 -1
  68. package/dist/animation/xstate-animation-meta.js +14 -0
  69. package/dist/asset-formats/index.d.ts +4 -7
  70. package/dist/asset-formats/index.d.ts.map +1 -1
  71. package/dist/asset-formats/index.js +4 -7
  72. package/dist/asset-formats/render-env.d.ts +5 -8
  73. package/dist/asset-formats/render-env.d.ts.map +1 -1
  74. package/dist/asset-formats/render-env.js +3 -6
  75. package/dist/asset-parse-error.d.ts +2 -5
  76. package/dist/asset-parse-error.d.ts.map +1 -1
  77. package/dist/asset-parse-error.js +2 -5
  78. package/dist/audio/bus-mixer.d.ts +101 -0
  79. package/dist/audio/bus-mixer.d.ts.map +1 -0
  80. package/dist/audio/bus-mixer.js +115 -0
  81. package/dist/core/frame-pacing.d.ts +1 -1
  82. package/dist/core/frame-pacing.js +2 -2
  83. package/dist/core/game-loop.d.ts +1 -3
  84. package/dist/core/game-loop.d.ts.map +1 -1
  85. package/dist/core/game-loop.js +1 -3
  86. package/dist/core/seeded-random.d.ts +1 -1
  87. package/dist/core/sim-clock.d.ts +5 -6
  88. package/dist/core/sim-clock.d.ts.map +1 -1
  89. package/dist/core/sim-clock.js +4 -5
  90. package/dist/core/types.d.ts +1 -3
  91. package/dist/core/types.d.ts.map +1 -1
  92. package/dist/defaults.d.ts +6 -14
  93. package/dist/defaults.d.ts.map +1 -1
  94. package/dist/defaults.js +6 -14
  95. package/dist/dev/register-render-vitals.d.ts +1 -4
  96. package/dist/dev/register-render-vitals.d.ts.map +1 -1
  97. package/dist/dev/register-render-vitals.js +1 -4
  98. package/dist/dev/render-debug-adapter.d.ts +2 -3
  99. package/dist/dev/render-debug-adapter.d.ts.map +1 -1
  100. package/dist/dev/render-debug-adapter.js +2 -3
  101. package/dist/dev/render-vitals.d.ts +3 -3
  102. package/dist/dev/render-vitals.js +3 -3
  103. package/dist/dev/webgl-frame-capture.d.ts +1 -1
  104. package/dist/dev/webgl-frame-capture.js +1 -1
  105. package/dist/index.d.ts +2 -5
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js +2 -4
  108. package/dist/input/host-pointer.d.ts +122 -0
  109. package/dist/input/host-pointer.d.ts.map +1 -0
  110. package/dist/input/host-pointer.js +160 -0
  111. package/dist/input/input-manager.d.ts +18 -5
  112. package/dist/input/input-manager.d.ts.map +1 -1
  113. package/dist/input/input-manager.js +33 -13
  114. package/dist/input/rebind-controller.d.ts.map +1 -1
  115. package/dist/input/rebind-controller.js +6 -8
  116. package/dist/input/schema.d.ts.map +1 -1
  117. package/dist/input/schema.js +56 -28
  118. package/dist/manifest/filename.d.ts.map +1 -1
  119. package/dist/manifest/filename.js +8 -12
  120. package/dist/manifest/load.d.ts +10 -10
  121. package/dist/manifest/load.d.ts.map +1 -1
  122. package/dist/manifest/load.js +9 -6
  123. package/dist/manifest/schema.d.ts +17 -21
  124. package/dist/manifest/schema.d.ts.map +1 -1
  125. package/dist/manifest/schema.js +45 -35
  126. package/dist/physics/collider-dimensions.d.ts +8 -12
  127. package/dist/physics/collider-dimensions.d.ts.map +1 -1
  128. package/dist/physics/collider-dimensions.js +8 -12
  129. package/dist/pixi/scene-capture.d.ts +11 -13
  130. package/dist/pixi/scene-capture.d.ts.map +1 -1
  131. package/dist/react/world-state.d.ts +1 -1
  132. package/dist/react/world-state.d.ts.map +1 -1
  133. package/dist/render/light-camera-factory.d.ts +5 -7
  134. package/dist/render/light-camera-factory.d.ts.map +1 -1
  135. package/dist/render/light-camera-factory.js +8 -11
  136. package/dist/render/material-factory.js +1 -1
  137. package/dist/render/render-batch-system.d.ts.map +1 -1
  138. package/dist/render/render-features.d.ts +17 -6
  139. package/dist/render/render-features.d.ts.map +1 -1
  140. package/dist/render/render-features.js +0 -28
  141. package/dist/runtime/create-runtime.d.ts +34 -25
  142. package/dist/runtime/create-runtime.d.ts.map +1 -1
  143. package/dist/runtime/create-runtime.js +218 -93
  144. package/dist/runtime/debug-bridge.d.ts +12 -0
  145. package/dist/runtime/debug-bridge.d.ts.map +1 -1
  146. package/dist/runtime/debug-bridge.js +4 -0
  147. package/dist/runtime/debug-registry.d.ts +95 -8
  148. package/dist/runtime/debug-registry.d.ts.map +1 -1
  149. package/dist/runtime/debug-registry.js +24 -3
  150. package/dist/runtime/dev-build.d.ts +2 -2
  151. package/dist/runtime/dev-build.js +2 -2
  152. package/dist/runtime/game-input-seams.d.ts +2 -2
  153. package/dist/runtime/game-input-seams.d.ts.map +1 -1
  154. package/dist/runtime/game.d.ts +102 -41
  155. package/dist/runtime/game.d.ts.map +1 -1
  156. package/dist/runtime/game.js +80 -54
  157. package/dist/runtime/mount-game.d.ts +0 -16
  158. package/dist/runtime/mount-game.d.ts.map +1 -1
  159. package/dist/runtime/mount-game.js +8 -39
  160. package/dist/runtime/mount-manifest.d.ts +22 -14
  161. package/dist/runtime/mount-manifest.d.ts.map +1 -1
  162. package/dist/runtime/mount-manifest.js +18 -18
  163. package/dist/runtime/playtest.d.ts +22 -0
  164. package/dist/runtime/playtest.d.ts.map +1 -0
  165. package/dist/runtime/playtest.js +12 -0
  166. package/dist/runtime/run-ticks-settled.d.ts +34 -0
  167. package/dist/runtime/run-ticks-settled.d.ts.map +1 -0
  168. package/dist/runtime/run-ticks-settled.js +59 -0
  169. package/dist/runtime/state-bridge.d.ts +2 -3
  170. package/dist/runtime/state-bridge.d.ts.map +1 -1
  171. package/dist/runtime/state-bridge.js +1 -0
  172. package/dist/setup/setup-audio.d.ts +12 -0
  173. package/dist/setup/setup-audio.d.ts.map +1 -1
  174. package/dist/setup/setup-audio.js +9 -10
  175. package/dist/setup/setup-renderer.d.ts +2 -25
  176. package/dist/setup/setup-renderer.d.ts.map +1 -1
  177. package/dist/setup/setup-renderer.js +2 -31
  178. package/dist/world3d-react/r3f-root-factory.d.ts +7 -7
  179. package/dist/world3d-react/r3f-root-factory.js +7 -7
  180. package/dist/world3d-react/rapier-physics-bridge.d.ts +9 -8
  181. package/dist/world3d-react/rapier-physics-bridge.d.ts.map +1 -1
  182. package/dist/world3d-react/rapier-physics-bridge.js +100 -48
  183. package/package.json +1 -1
  184. package/schemas/engine-capabilities.json +16 -14
  185. package/schemas/vgai-project.schema.json +35 -26
  186. package/src/adapter/adapter-module.ts +2 -4
  187. package/src/adapter/adapter-surface.ts +1 -1
  188. package/src/adapter/authoring.ts +19 -21
  189. package/src/adapter/binding.ts +468 -0
  190. package/src/adapter/colyseus-networking-adapter.ts +20 -5
  191. package/src/adapter/entrypoint-selection-readers.ts +66 -0
  192. package/src/adapter/entrypoint-selection-source.ts +1 -40
  193. package/src/adapter/finders/scenes-from-entrypoint-selection.ts +1 -48
  194. package/src/adapter/host-context.ts +45 -15
  195. package/src/adapter/index.ts +23 -11
  196. package/src/adapter/ingest/game-contract-seams.ts +1 -0
  197. package/src/adapter/ingest/game-contract.ts +22 -3
  198. package/src/adapter/ingest/scene-capture.ts +190 -39
  199. package/src/adapter/ingest/visible-capture-window.ts +35 -0
  200. package/src/adapter/native-debug-module.ts +66 -9
  201. package/src/adapter/rapier-physics-adapter.ts +76 -20
  202. package/src/adapter/renderer-config.ts +2 -2
  203. package/src/adapter/root-adapter.ts +7 -7
  204. package/src/adapter/system-adapter.ts +43 -8
  205. package/src/adapter/system-seam-contract.ts +3 -3
  206. package/src/adapter/system-slot.ts +291 -0
  207. package/src/adapter/transform.ts +18 -1
  208. package/src/ai/navigation.ts +30 -3
  209. package/src/animation/anim-graph-types.ts +11 -3
  210. package/src/animation/theatre-clock-binding.ts +4 -4
  211. package/src/animation/xstate-animation-binding.ts +2 -2
  212. package/src/animation/xstate-animation-meta.ts +16 -0
  213. package/src/asset-formats/index.ts +4 -7
  214. package/src/asset-formats/render-env.ts +3 -6
  215. package/src/asset-parse-error.ts +2 -5
  216. package/src/audio/bus-mixer.ts +161 -0
  217. package/src/core/frame-pacing.ts +2 -2
  218. package/src/core/game-loop.ts +1 -3
  219. package/src/core/seeded-random.ts +1 -1
  220. package/src/core/sim-clock.ts +5 -6
  221. package/src/core/types.ts +1 -3
  222. package/src/defaults.ts +6 -14
  223. package/src/dev/register-render-vitals.ts +1 -4
  224. package/src/dev/render-debug-adapter.ts +2 -3
  225. package/src/dev/render-vitals.ts +3 -3
  226. package/src/dev/webgl-frame-capture.ts +1 -1
  227. package/src/index.ts +2 -5
  228. package/src/input/host-pointer.ts +230 -0
  229. package/src/input/input-manager.ts +34 -13
  230. package/src/input/input-types.ts +1 -1
  231. package/src/input/rebind-controller.ts +6 -8
  232. package/src/input/schema.ts +216 -188
  233. package/src/manifest/filename.ts +8 -12
  234. package/src/manifest/load.ts +17 -13
  235. package/src/manifest/schema.ts +55 -47
  236. package/src/physics/collider-dimensions.ts +8 -12
  237. package/src/pixi/scene-capture.ts +12 -15
  238. package/src/react/world-state.tsx +1 -1
  239. package/src/render/light-camera-factory.ts +8 -11
  240. package/src/render/material-factory.ts +1 -1
  241. package/src/render/render-batch-system.ts +14 -6
  242. package/src/render/render-features.ts +17 -35
  243. package/src/runtime/create-runtime.ts +270 -108
  244. package/src/runtime/debug-bridge.ts +16 -0
  245. package/src/runtime/debug-registry.ts +121 -8
  246. package/src/runtime/dev-build.ts +2 -2
  247. package/src/runtime/game-input-seams.ts +2 -2
  248. package/src/runtime/game.ts +180 -80
  249. package/src/runtime/mount-game.ts +8 -56
  250. package/src/runtime/mount-manifest.ts +43 -34
  251. package/src/runtime/playtest.ts +22 -0
  252. package/src/runtime/run-ticks-settled.ts +72 -0
  253. package/src/runtime/state-bridge.ts +3 -3
  254. package/src/setup/setup-audio.ts +21 -11
  255. package/src/setup/setup-renderer.ts +2 -61
  256. package/src/world3d-react/r3f-root-factory.tsx +7 -7
  257. package/src/world3d-react/rapier-physics-bridge.tsx +107 -50
  258. package/dist/adapter/setup-three-root-adapter.d.ts +0 -86
  259. package/dist/adapter/setup-three-root-adapter.d.ts.map +0 -1
  260. package/dist/adapter/setup-three-root-adapter.js +0 -908
  261. package/dist/animation/clip-map.d.ts +0 -12
  262. package/dist/animation/clip-map.d.ts.map +0 -1
  263. package/dist/animation/clip-map.js +0 -31
  264. package/dist/asset-registry.d.ts +0 -38
  265. package/dist/asset-registry.d.ts.map +0 -1
  266. package/dist/asset-registry.js +0 -66
  267. package/dist/canvas-react/engine-bridge.d.ts +0 -45
  268. package/dist/canvas-react/engine-bridge.d.ts.map +0 -1
  269. package/dist/canvas-react/engine-bridge.js +0 -45
  270. package/dist/canvas-react/pixi-react-adapter.d.ts +0 -77
  271. package/dist/canvas-react/pixi-react-adapter.d.ts.map +0 -1
  272. package/dist/canvas-react/pixi-react-adapter.js +0 -294
  273. package/dist/canvas-react/world-context.d.ts +0 -98
  274. package/dist/canvas-react/world-context.d.ts.map +0 -1
  275. package/dist/canvas-react/world-context.js +0 -173
  276. package/dist/dev/debug-draw.d.ts +0 -24
  277. package/dist/dev/debug-draw.d.ts.map +0 -1
  278. package/dist/dev/debug-draw.js +0 -73
  279. package/dist/render/auto-batcher.d.ts +0 -34
  280. package/dist/render/auto-batcher.d.ts.map +0 -1
  281. package/dist/render/auto-batcher.js +0 -140
  282. package/dist/render/lod.d.ts +0 -13
  283. package/dist/render/lod.d.ts.map +0 -1
  284. package/dist/render/lod.js +0 -16
  285. package/dist/runtime/types.d.ts +0 -303
  286. package/dist/runtime/types.d.ts.map +0 -1
  287. package/dist/runtime/types.js +0 -1
  288. package/dist/world3d-react/engine-bridge.d.ts +0 -47
  289. package/dist/world3d-react/engine-bridge.d.ts.map +0 -1
  290. package/dist/world3d-react/engine-bridge.js +0 -73
  291. package/dist/world3d-react/r3f-adapter.d.ts +0 -58
  292. package/dist/world3d-react/r3f-adapter.d.ts.map +0 -1
  293. package/dist/world3d-react/r3f-adapter.js +0 -634
  294. package/dist/world3d-react/world-context.d.ts +0 -182
  295. package/dist/world3d-react/world-context.d.ts.map +0 -1
  296. package/dist/world3d-react/world-context.js +0 -235
  297. package/src/adapter/setup-three-root-adapter.ts +0 -1032
  298. package/src/animation/clip-map.ts +0 -34
  299. package/src/asset-registry.ts +0 -89
  300. package/src/dev/debug-draw.ts +0 -80
  301. package/src/render/auto-batcher.ts +0 -168
  302. package/src/render/lod.ts +0 -17
  303. package/src/runtime/types.ts +0 -328
@@ -107,7 +107,7 @@ export function nativeDebugBindingFromEntryModule(rootId, entryModule) {
107
107
  throw new Error(`Root "${rootId}" exports \`debug\`, but it is not an object.`);
108
108
  }
109
109
  const raw = entryModule['debug'];
110
- rejectUnknownKeys(raw, ['commands', 'state', 'input', 'events'], `Root "${rootId}" debug export`);
110
+ rejectUnknownKeys(raw, ['commands', 'state', 'input', 'events', 'settled'], `Root "${rootId}" debug export`);
111
111
  // A thunk table defers to install time (see {@link NativeTable}); a plain
112
112
  // record validates here, where the error can still name the export.
113
113
  const parseTable = (value, at) => {
@@ -132,7 +132,11 @@ export function nativeDebugBindingFromEntryModule(rootId, entryModule) {
132
132
  const state = parseTable(raw['state'], 'debug.state');
133
133
  const input = raw['input'] === undefined ? undefined : parseInput(raw['input']);
134
134
  const events = raw['events'] === undefined ? undefined : parseEvents(raw['events']);
135
- if (!commands && !state && !input && !events) {
135
+ const settled = raw['settled'];
136
+ if (settled !== undefined && typeof settled !== 'function') {
137
+ throw new Error('debug.settled must be a function returning a boolean.');
138
+ }
139
+ if (!commands && !state && !input && !events && !settled) {
136
140
  throw new Error(`Root "${rootId}" exports an empty \`debug\` object.`);
137
141
  }
138
142
  return {
@@ -142,6 +146,7 @@ export function nativeDebugBindingFromEntryModule(rootId, entryModule) {
142
146
  ...(state ? { state } : {}),
143
147
  ...(input ? { input } : {}),
144
148
  ...(events ? { events } : {}),
149
+ ...(settled ? { settled: settled } : {}),
145
150
  },
146
151
  };
147
152
  }
@@ -303,6 +308,10 @@ export function installNativeDebugBindings(game, bindings) {
303
308
  // subscription's disposer is deliberately dropped: it lives exactly as
304
309
  // long as this Game's registry does.
305
310
  binding.debug.events?.subscribe((event, detail) => root.emit(event, detail));
311
+ // The app's own between-worlds truth → the session's tick gate
312
+ // (`runTicksWhenSettled`). Same lifetime rule as the event subscription.
313
+ if (binding.debug.settled)
314
+ registry.registerWorldSettledProbe(binding.debug.settled);
306
315
  }
307
316
  }
308
317
  /**
@@ -326,12 +335,26 @@ export function nativeSystemsBindingFromEntryModule(rootId, entryModule, surface
326
335
  if (Object.keys(projection.bound).length === 0 && projection.empty.length === 0) {
327
336
  throw new Error(`Root "${rootId}" exports an empty \`systems\` object.`);
328
337
  }
329
- return { rootId, slots: projection.bound };
338
+ return { rootId, slots: projection.bound, absent: projection.empty };
330
339
  }
331
- /** Install every declared binding onto the mounted Game's game-scoped slot
332
- * table (`Game.installDeclaredSystemAdapters`), where the ordinary
333
- * `game.systemAdapters` merge picks them up ahead of any lingering component
334
- * registration for the same root. */
340
+ /**
341
+ * Install every declared binding onto the mounted Game's game-scoped slot
342
+ * table (`Game.installDeclaredSystemAdapters`), where the ordinary
343
+ * `game.systemAdapters` merge picks them up ahead of any lingering component
344
+ * registration for the same root.
345
+ *
346
+ * A root's ABSENCES travel the same call and install NOTHING — they are
347
+ * recorded, never bound, because the whole point of `absent()` is that no
348
+ * adapter exists to bind (see its comment: a marker, never a stub). They are
349
+ * recorded HERE rather than left on the binding alone so the answer is
350
+ * game-scoped, matching the registry every editor panel already reads: a
351
+ * `SystemAdapters` slot is filled by whichever root builds it, so "does this
352
+ * GAME have physics" cannot be answered one root at a time.
353
+ *
354
+ * A root that declares only absences therefore still calls through — skipping
355
+ * it on an empty `slots` map is what would drop exactly the games whose whole
356
+ * declaration is "I have none of these".
357
+ */
335
358
  export function installNativeSystemsBindings(game, bindings) {
336
359
  if (bindings.length === 0)
337
360
  return;
@@ -341,8 +364,12 @@ export function installNativeSystemsBindings(game, bindings) {
341
364
  'installDeclaredSystemAdapters.');
342
365
  }
343
366
  for (const binding of bindings) {
344
- if (Object.keys(binding.slots).length === 0)
367
+ if (Object.keys(binding.slots).length === 0 && binding.absent.length === 0)
345
368
  continue;
346
- install.call(game, binding.rootId, binding.slots);
369
+ install.call(game, binding.rootId, binding.slots, binding.absent.map((slot) => ({
370
+ rootId: binding.rootId,
371
+ slot: slot.slot,
372
+ reason: slot.evidence,
373
+ })));
347
374
  }
348
375
  }
@@ -25,6 +25,15 @@ import type { PhysicsAdapter } from './system-adapter';
25
25
  * `@react-three/rapier` pins for R3F worlds (0.19). Their `RigidBody` classes
26
26
  * are unrelated NOMINAL types, so a shared helper that named either one could
27
27
  * not serve both callers.
28
+ *
29
+ * FLIP CONDITION: `@react-three/rapier` pins its rapier EXACTLY (`0.19.2` as
30
+ * of its 2.2.0 — check `npm view @react-three/rapier dependencies`), so an
31
+ * override or engine bump to any OTHER rapier version forks the wasm instance
32
+ * that library initializes against and is refused. This structural split
33
+ * collapses only when the engine's own `@dimforge/rapier3d-compat` and
34
+ * `@react-three/rapier`'s exact pin agree on one version — at that point the
35
+ * two `RigidBody` types are one nominal type again and this interface can
36
+ * name it directly.
28
37
  */
29
38
  export interface RapierEditableBody {
30
39
  isFixed(): boolean;
@@ -57,7 +66,28 @@ export interface RapierEditableBody {
57
66
  * answered differently by each Rapier owner, and a caller that cannot answer
58
67
  * one honestly omits it.
59
68
  */
60
- export declare function createRapierBodyEditing(bodyFor: (nodeId: string) => RapierEditableBody | null | undefined): Pick<PhysicsAdapter, 'ownerOf' | 'freeze' | 'commit' | 'unfreeze'>;
69
+ /**
70
+ * What asking this Rapier owner about a node id actually yields.
71
+ *
72
+ * THE TWO NEGATIVE ANSWERS ARE DIFFERENT FACTS, and collapsing them into one
73
+ * `undefined` is what let `ownerOf` answer `'editor'` — "the editor drives this
74
+ * node's transform" — for an id this world has never heard of. `'no-body'` is a
75
+ * real measurement about a real node; `'unresolved'` is this implementer saying
76
+ * it cannot answer at all.
77
+ */
78
+ export type RapierBodyLookup = {
79
+ readonly kind: 'body';
80
+ readonly body: RapierEditableBody;
81
+ }
82
+ /** The node exists here and simply has no physics body. */
83
+ | {
84
+ readonly kind: 'no-body';
85
+ }
86
+ /** This world does not know this node id. */
87
+ | {
88
+ readonly kind: 'unresolved';
89
+ };
90
+ export declare function createRapierBodyEditing(lookup: (nodeId: string) => RapierBodyLookup): Pick<PhysicsAdapter, 'ownerOf' | 'freeze' | 'commit' | 'unfreeze'>;
61
91
  export declare function createRapierPhysicsAdapter(registry: PhysicsRegistry, physics: PhysicsContext | null | undefined,
62
92
  /**
63
93
  * The world's own `id → Object3D` map. Injected rather than derived here so
@@ -1 +1 @@
1
- {"version":3,"file":"rapier-physics-adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/rapier-physics-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,IAAI,OAAO,CAAC;IACnB,QAAQ,IAAI,MAAM,CAAC;IACnB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACjD,cAAc,CAAC,WAAW,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACxF,WAAW,CAAC,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9F;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,kBAAkB,GAAG,IAAI,GAAG,SAAS,GACjE,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,QAAQ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gBAAgB,GACxB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE;AAC9D,2DAA2D;GACzD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE;AAC9B,6CAA6C;GAC3C;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AAYpC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,gBAAgB,GAC3C,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC,CAiDpE;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS;AAC1C;;;;;GAKG;AACH,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,KAAK,CAAC,QAAQ,GAAG,IAAI,GACjD,cAAc,CAwEhB"}
@@ -10,34 +10,39 @@
10
10
  * through the `resolve` function its constructor is handed. Nothing above this
11
11
  * line — not the editor, not the seam — needs to know an `Object3D` exists.
12
12
  */
13
- /**
14
- * The four REQUIRED `PhysicsAdapter` members, over nothing but "which Rapier
15
- * body drives this node" — the `freeze → apply → unfreeze` protocol itself,
16
- * with no opinion about where the body came from.
17
- *
18
- * Split out of {@link createRapierPhysicsAdapter} (it is that function's own
19
- * `ownerOf`/`freeze`/`commit`/`unfreeze`, unchanged) because the FIRST-PARTY
20
- * mount is no longer the only Rapier in this engine: an R3F world does its
21
- * physics with `@react-three/rapier` inside the fiber tree, which owns its own
22
- * bodies and its own `Object3D` mapping, and reaches these same four verbs
23
- * through `world3d-react/rapier-physics-bridge.tsx`. The optional members
24
- * (`debugDraw`, `setDebugDrawEnabled`, `contactPoints`) are NOT here: each is
25
- * answered differently by each Rapier owner, and a caller that cannot answer
26
- * one honestly omits it.
27
- */
28
- export function createRapierBodyEditing(bodyFor) {
13
+ /** The refusal sentence for a protocol verb aimed at a node this world has
14
+ * never heard of named once so every verb says the same thing. */
15
+ function unresolvedNodeRefusal(operation, nodeId) {
16
+ return (`[RapierPhysicsAdapter] ${operation}: this world does not know node id "${nodeId}", so ` +
17
+ 'there is no body to drive. Refusing rather than reporting a completed write — gate on ' +
18
+ "ownerOf(id) !== 'unresolved' before driving physics from a game-scoped adapter.");
19
+ }
20
+ export function createRapierBodyEditing(lookup) {
29
21
  /** Saved body types while frozen, so unfreeze can restore them. */
30
22
  const frozen = new Map();
23
+ /** The body for a verb that must actually reach one, or `null` when this node
24
+ * genuinely has no physics. THROWS for an unknown id: the three verbs below
25
+ * return `void`, so a silent return is indistinguishable from a completed
26
+ * write, and `commit` in particular is a WRITE the caller believes landed. */
27
+ const bodyForWrite = (operation, nodeId) => {
28
+ const answer = lookup(nodeId);
29
+ if (answer.kind === 'unresolved')
30
+ throw new Error(unresolvedNodeRefusal(operation, nodeId));
31
+ return answer.kind === 'body' ? answer.body : null;
32
+ };
31
33
  return {
32
34
  ownerOf(nodeId) {
33
- const body = bodyFor(nodeId);
34
- if (!body)
35
+ const answer = lookup(nodeId);
36
+ if (answer.kind === 'unresolved')
37
+ return 'unresolved';
38
+ // A node with no body, and a FIXED body (which never moves on its own),
39
+ // are both transforms the editor drives.
40
+ if (answer.kind === 'no-body')
35
41
  return 'editor';
36
- // A fixed body never moves on its own → the editor owns its transform.
37
- return body.isFixed() ? 'editor' : 'physics';
42
+ return answer.body.isFixed() ? 'editor' : 'physics';
38
43
  },
39
44
  freeze(nodeId) {
40
- const body = bodyFor(nodeId);
45
+ const body = bodyForWrite('freeze', nodeId);
41
46
  if (!body || frozen.has(body))
42
47
  return;
43
48
  frozen.set(body, body.bodyType());
@@ -45,14 +50,14 @@ export function createRapierBodyEditing(bodyFor) {
45
50
  body.setBodyType(2 /* KinematicPositionBased */, true);
46
51
  },
47
52
  commit(nodeId, t) {
48
- const body = bodyFor(nodeId);
53
+ const body = bodyForWrite('commit', nodeId);
49
54
  if (!body)
50
55
  return;
51
56
  body.setTranslation({ x: t.position[0], y: t.position[1], z: t.position[2] }, true);
52
57
  body.setRotation({ x: t.rotation[0], y: t.rotation[1], z: t.rotation[2], w: t.rotation[3] }, true);
53
58
  },
54
59
  unfreeze(nodeId) {
55
- const body = bodyFor(nodeId);
60
+ const body = bodyForWrite('unfreeze', nodeId);
56
61
  if (!body)
57
62
  return;
58
63
  const prev = frozen.get(body);
@@ -114,22 +119,31 @@ resolve) {
114
119
  }
115
120
  return contactBuf.subarray(0, contactCount * 3);
116
121
  };
117
- /** The one place this adapter crosses from node id into Three's vocabulary. */
118
- const bodyFor = (nodeId) => {
119
- const o = resolve(nodeId);
120
- return o ? registry.get(o)?.body : undefined;
122
+ /** The one place this adapter crosses from node id into Three's vocabulary
123
+ * and the one place that can tell an UNKNOWN node from one with no body. */
124
+ const lookup = (nodeId) => {
125
+ const object = resolve(nodeId);
126
+ if (!object)
127
+ return { kind: 'unresolved' };
128
+ const body = registry.get(object)?.body;
129
+ return body ? { kind: 'body', body } : { kind: 'no-body' };
121
130
  };
122
- return {
123
- ...createRapierBodyEditing(bodyFor),
124
- debugDraw: () => physics?.debugMesh ?? null,
125
- setDebugDrawEnabled(enabled) {
126
- if (!physics)
127
- return;
131
+ const adapter = { ...createRapierBodyEditing(lookup) };
132
+ // The debug-draw and contact capabilities exist only where a physics CONTEXT
133
+ // does. They used to be attached unconditionally and then no-op internally:
134
+ // `setDebugDrawEnabled(true)` returned as if it had enabled something, and
135
+ // `contactPoints()` returned an empty view — "we looked and there are no
136
+ // contacts" — for a world with no simulation at all. Presence mirrors the
137
+ // capability, so `physics-debug.ts`'s existing `?.()` calls now see absence.
138
+ if (physics) {
139
+ adapter.debugDraw = () => physics.debugMesh;
140
+ adapter.setDebugDrawEnabled = (enabled) => {
128
141
  // Same two fields the in-game KeyP toggle flips — the adapter's render
129
142
  // system reads `debugEnabled` and feeds `debugRender()` into the mesh.
130
143
  physics.debugEnabled = enabled;
131
144
  physics.debugMesh.visible = enabled;
132
- },
133
- contactPoints: collectContactPoints,
134
- };
145
+ };
146
+ adapter.contactPoints = collectContactPoints;
147
+ }
148
+ return adapter;
135
149
  }
@@ -4,7 +4,7 @@
4
4
  * It lives in the ADAPTER SEAM, not in a surface entry, because `WorldRendererConfig` IS part of
5
5
  * the root contract: `MountedThreeRoot.rendererConfig` reports it (`./root-adapter.ts`) and
6
6
  * `./root-seam-contract.ts` already lists it as a contract field. The seam defines the shape; the
7
- * surface entries and the editor CONFORM to it — `world3d-react/r3f-adapter.tsx` is the declarer,
7
+ * surface entries and the editor CONFORM to it — `world3d-react/r3f-root-factory.tsx` is the declarer,
8
8
  * `runtime/create-runtime.ts` the host, `editor/src/components/ViewportPanel.tsx` the editor's
9
9
  * applier. Do NOT move it back under `world3d-react/`: nothing here touches react, and a core
10
10
  * adapter file reaching into a react entry is exactly what `react-core-import-ban.test.ts` forbids
@@ -77,7 +77,7 @@ export interface WorldRendererConfig {
77
77
  * Apply `config` to `renderer`, returning the restore function that puts back what was there.
78
78
  *
79
79
  * `three` is passed in rather than imported for values so the enum constants come from the HOST's
80
- * three instance — the same identity rule `r3f-adapter.tsx` follows for the scene and camera.
80
+ * three instance — the same identity rule `r3f-root-factory.tsx` follows for the scene and camera.
81
81
  */
82
82
  export declare function applyWorldRendererConfig(three: typeof THREE, renderer: THREE.WebGLRenderer, config: WorldRendererConfig): () => void;
83
83
  //# sourceMappingURL=renderer-config.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * It lives in the ADAPTER SEAM, not in a surface entry, because `WorldRendererConfig` IS part of
5
5
  * the root contract: `MountedThreeRoot.rendererConfig` reports it (`./root-adapter.ts`) and
6
6
  * `./root-seam-contract.ts` already lists it as a contract field. The seam defines the shape; the
7
- * surface entries and the editor CONFORM to it — `world3d-react/r3f-adapter.tsx` is the declarer,
7
+ * surface entries and the editor CONFORM to it — `world3d-react/r3f-root-factory.tsx` is the declarer,
8
8
  * `runtime/create-runtime.ts` the host, `editor/src/components/ViewportPanel.tsx` the editor's
9
9
  * applier. Do NOT move it back under `world3d-react/`: nothing here touches react, and a core
10
10
  * adapter file reaching into a react entry is exactly what `react-core-import-ban.test.ts` forbids
@@ -39,7 +39,7 @@
39
39
  * Apply `config` to `renderer`, returning the restore function that puts back what was there.
40
40
  *
41
41
  * `three` is passed in rather than imported for values so the enum constants come from the HOST's
42
- * three instance — the same identity rule `r3f-adapter.tsx` follows for the scene and camera.
42
+ * three instance — the same identity rule `r3f-root-factory.tsx` follows for the scene and camera.
43
43
  */
44
44
  export function applyWorldRendererConfig(three, renderer, config) {
45
45
  // A host that mounts a world WITHOUT rasterizing it hands the adapter a duck-typed renderer —
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * RootAdapter — the host ⇄ runtime contract. A ROOT is *anything that mounts*.
3
3
  *
4
- * This is the interface the host depends on. `GameSetupFn` is private to one
5
- * implementer (`SetupThreeRootAdapter`); first-party content and unmodified
6
- * external games are peer root adapters. A game is the manifest's complete
7
- * roots array, while each adapter owns exactly one root.
4
+ * This is the interface the host depends on. First-party content and
5
+ * unmodified external games are peer root adapters. A game is the
6
+ * manifest's complete roots array, while each adapter owns exactly one
7
+ * root.
8
8
  */
9
9
  import type { Container } from 'pixi.js';
10
10
  import type * as THREE from 'three';
@@ -125,8 +125,8 @@ export interface MountedReactRoot extends MountedRootBase {
125
125
  }
126
126
  /** Every kind of live, mounted world. */
127
127
  export type MountedRoot = MountedThreeRoot | MountedPixiRoot | MountedReactRoot;
128
- /** Map a {@link AdapterSurface} to its mounted-world shape (mirrors `NodeOf`/
129
- * `BodyOf`/`ColliderOf` in `ecs/behavior.ts`) — lets generic code over
128
+ /** Map a {@link AdapterSurface} to its mounted-world shape lets generic
129
+ * code over
130
130
  * `K extends AdapterSurface` name the right surface without a manual union. */
131
131
  export type MountedRootFor<K extends AdapterSurface> = K extends 'three' ? MountedThreeRoot : K extends 'canvas' ? MountedPixiRoot : K extends 'dom' ? MountedReactRoot : never;
132
132
  /**
@@ -155,7 +155,7 @@ export interface RootAdapter<K extends AdapterSurface = 'three'> {
155
155
  mount(host: HostContextFor<K>): Promise<MountedRootFor<K>>;
156
156
  }
157
157
  /**
158
- * One surface tag paired with an adapter typed FOR that surface (WO-34).
158
+ * One surface tag paired with an adapter typed FOR that surface.
159
159
  *
160
160
  * A resolver that turns a manifest root into a mountable
161
161
  * adapter handles every surface in one function, so its return type has to
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * RootAdapter — the host ⇄ runtime contract. A ROOT is *anything that mounts*.
3
3
  *
4
- * This is the interface the host depends on. `GameSetupFn` is private to one
5
- * implementer (`SetupThreeRootAdapter`); first-party content and unmodified
6
- * external games are peer root adapters. A game is the manifest's complete
7
- * roots array, while each adapter owns exactly one root.
4
+ * This is the interface the host depends on. First-party content and
5
+ * unmodified external games are peer root adapters. A game is the
6
+ * manifest's complete roots array, while each adapter owns exactly one
7
+ * root.
8
8
  */
9
9
  export {};
@@ -25,6 +25,21 @@ export type PhysicsColliderShape = {
25
25
  readonly type: 'capsule';
26
26
  readonly halfHeight: number;
27
27
  readonly radius: number;
28
+ }
29
+ /**
30
+ * A collider this seam has no plain-data projection for — a trimesh,
31
+ * heightfield, convex hull, cylinder, cone, …
32
+ *
33
+ * IT IS STILL A COLLIDER, and the body still has it. Implementations used to
34
+ * drop these from `colliders()` entirely, so a body whose only collider was a
35
+ * trimesh inspected as a body with NO physics at all. `kind` is the native
36
+ * shape's own name, so the inspector can say WHICH shape it cannot draw
37
+ * rather than implying nothing is there. Nothing may synthesize dimensions
38
+ * for one, and `previewCollider` refuses it.
39
+ */
40
+ | {
41
+ readonly type: 'unsupported';
42
+ readonly kind: string;
28
43
  };
29
44
  /** Plain-data projection of one native 3D physics collider. The owning
30
45
  * physics implementation keeps the actual collider; editor authoring only
@@ -231,12 +246,28 @@ export interface NetworkingAdapter {
231
246
  authority(nodeId: string): 'local' | 'remote' | 'server';
232
247
  /** Remote/server-authoritative nodes → inspect-only in the editor. */
233
248
  editable(nodeId: string): boolean;
234
- /** Current connection lifecycle state. */
235
- getConnectionState(): ConnectionState;
236
- /** The active room's identity, or `null` when not connected to a room. */
237
- getRoomInfo(): RoomInfo | null;
238
- /** Replication activity snapshot, for a live network inspector panel. */
239
- getReplicationStats(): ReplicationStats;
249
+ /**
250
+ * Optional capability: current connection lifecycle state.
251
+ *
252
+ * OPTIONAL for the same reason every other member here is — `'disconnected'`
253
+ * is a POSITIVE CLAIM about the link, and an implementer that never taught
254
+ * this adapter to read connection state has not made it. Absent ⇒ the
255
+ * inspector marks the section unsupported; it does not report a game as
256
+ * disconnected on the strength of nobody having looked.
257
+ */
258
+ getConnectionState?(): ConnectionState;
259
+ /**
260
+ * Optional capability: the active room's identity, or `null` when connected
261
+ * to no room. `null` is the ANSWER "there is no room", so absence of the
262
+ * accessor — "nothing here can tell you" — has to be a different thing.
263
+ */
264
+ getRoomInfo?(): RoomInfo | null;
265
+ /**
266
+ * Optional capability: replication activity snapshot, for a live network
267
+ * inspector panel. Zeroes are a measurement, not a default; an adapter with
268
+ * no counters omits this rather than reporting a quiet link.
269
+ */
270
+ getReplicationStats?(): ReplicationStats;
240
271
  /** Subscribe to changes in connection state / room / replication stats. */
241
272
  subscribe(cb: () => void): Unsubscribe;
242
273
  /** Optional capability: one plain-data (JSON-safe) snapshot of the
@@ -263,7 +294,7 @@ export interface NetworkingAdapter {
263
294
  * (e.g. read off its own room state). The editor consumes this for display —
264
295
  * a seat label — ONLY when a real implementer provides it, falling back to a
265
296
  * generic label otherwise. */
266
- getPlayerIdentity?(): NetPlayerIdentity;
297
+ getPlayerIdentity?(): NetPlayerIdentity | undefined;
267
298
  /** Optional capability, PAIRED with {@link getPlayerIdentity}: set the local
268
299
  * player's identity through the game's OWN multiplayer mechanism. The editor
269
300
  * renders an editable name field ONLY when a real implementer provides this
@@ -324,6 +355,13 @@ export interface NavCrowdAgentState {
324
355
  */
325
356
  export interface NavigationAdapter {
326
357
  hasNavMesh(): boolean;
358
+ /**
359
+ * `[]` means SEARCHED AND FOUND NO ROUTE — a fact about the level. An
360
+ * implementer with no navmesh to search, or whose query FAILED, THROWS
361
+ * instead; those are facts about the implementer, and collapsing all three
362
+ * into `[]` tells a caller the level is impassable when nobody looked.
363
+ * Gate on {@link hasNavMesh} where the first case is reachable.
364
+ */
327
365
  findPath(start: NavPoint, end: NavPoint): NavPoint[];
328
366
  debugMesh(scene: THREE.Scene): THREE.Object3D | null;
329
367
  /** (Re)build the navmesh from source meshes. Synchronous in the blessed
@@ -1 +1 @@
1
- {"version":3,"file":"system-adapter.d.ts","sourceRoot":"","sources":["../../src/adapter/system-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GACpF;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF;;0DAE0D;AAC1D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,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,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC"}
@@ -151,17 +151,17 @@ export declare const NETWORKING_ADAPTER_SHAPE: {
151
151
  readonly required: "operation";
152
152
  };
153
153
  readonly getConnectionState: {
154
- readonly optional: false;
154
+ readonly optional: true;
155
155
  readonly kind: "function";
156
156
  readonly required: "operation";
157
157
  };
158
158
  readonly getRoomInfo: {
159
- readonly optional: false;
159
+ readonly optional: true;
160
160
  readonly kind: "function";
161
161
  readonly required: "operation";
162
162
  };
163
163
  readonly getReplicationStats: {
164
- readonly optional: false;
164
+ readonly optional: true;
165
165
  readonly kind: "function";
166
166
  readonly required: "operation";
167
167
  };
@@ -37,9 +37,9 @@ export const NETWORKING_ADAPTER_SHAPE = defineSeamShape()({
37
37
  networkId: { optional: false, kind: 'function', required: 'operation' },
38
38
  authority: { optional: false, kind: 'function', required: 'operation' },
39
39
  editable: { optional: false, kind: 'function', required: 'operation' },
40
- getConnectionState: { optional: false, kind: 'function', required: 'operation' },
41
- getRoomInfo: { optional: false, kind: 'function', required: 'operation' },
42
- getReplicationStats: { optional: false, kind: 'function', required: 'operation' },
40
+ getConnectionState: { optional: true, kind: 'function', required: 'operation' },
41
+ getRoomInfo: { optional: true, kind: 'function', required: 'operation' },
42
+ getReplicationStats: { optional: true, kind: 'function', required: 'operation' },
43
43
  subscribe: { optional: false, kind: 'function', required: 'effect' },
44
44
  getStateSnapshot: { optional: true, kind: 'function', required: 'operation' },
45
45
  messageEvents: { optional: true, kind: 'function', required: 'operation' },