@fps-games/editor 0.2.1-beta.3 → 0.2.1-beta.4

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 (514) hide show
  1. package/dist/build-info.json +44 -44
  2. package/dist/editor-commands/capabilities/assets.d.ts +8 -0
  3. package/dist/editor-commands/capabilities/assets.d.ts.map +1 -0
  4. package/dist/{agent-bridge → editor-commands}/capabilities/assets.js +41 -41
  5. package/dist/editor-commands/capabilities/assets.js.map +1 -0
  6. package/dist/editor-commands/capabilities/editor-state.d.ts +5 -0
  7. package/dist/editor-commands/capabilities/editor-state.d.ts.map +1 -0
  8. package/dist/{agent-bridge → editor-commands}/capabilities/editor-state.js +22 -22
  9. package/dist/editor-commands/capabilities/editor-state.js.map +1 -0
  10. package/dist/editor-commands/capabilities/hierarchy.d.ts +4 -0
  11. package/dist/editor-commands/capabilities/hierarchy.d.ts.map +1 -0
  12. package/dist/{agent-bridge → editor-commands}/capabilities/hierarchy.js +5 -5
  13. package/dist/editor-commands/capabilities/hierarchy.js.map +1 -0
  14. package/dist/editor-commands/capabilities/host-lifecycle.d.ts +11 -0
  15. package/dist/editor-commands/capabilities/host-lifecycle.d.ts.map +1 -0
  16. package/dist/editor-commands/capabilities/host-lifecycle.js +149 -0
  17. package/dist/editor-commands/capabilities/host-lifecycle.js.map +1 -0
  18. package/dist/editor-commands/capabilities/prefabs.d.ts +5 -0
  19. package/dist/editor-commands/capabilities/prefabs.d.ts.map +1 -0
  20. package/dist/{agent-bridge → editor-commands}/capabilities/prefabs.js +93 -93
  21. package/dist/editor-commands/capabilities/prefabs.js.map +1 -0
  22. package/dist/editor-commands/capabilities/scene-objects.d.ts +8 -0
  23. package/dist/editor-commands/capabilities/scene-objects.d.ts.map +1 -0
  24. package/dist/editor-commands/capabilities/scene-objects.js +480 -0
  25. package/dist/editor-commands/capabilities/scene-objects.js.map +1 -0
  26. package/dist/editor-commands/capabilities/selection.d.ts +5 -0
  27. package/dist/editor-commands/capabilities/selection.d.ts.map +1 -0
  28. package/dist/editor-commands/capabilities/selection.js +60 -0
  29. package/dist/editor-commands/capabilities/selection.js.map +1 -0
  30. package/dist/editor-commands/capabilities/shadows.d.ts +5 -0
  31. package/dist/editor-commands/capabilities/shadows.d.ts.map +1 -0
  32. package/dist/{agent-bridge → editor-commands}/capabilities/shadows.js +74 -74
  33. package/dist/editor-commands/capabilities/shadows.js.map +1 -0
  34. package/dist/editor-commands/capabilities/transform.d.ts +5 -0
  35. package/dist/editor-commands/capabilities/transform.d.ts.map +1 -0
  36. package/dist/editor-commands/capabilities/transform.js +164 -0
  37. package/dist/editor-commands/capabilities/transform.js.map +1 -0
  38. package/dist/editor-commands/capabilities/ui-regions.d.ts +4 -0
  39. package/dist/editor-commands/capabilities/ui-regions.d.ts.map +1 -0
  40. package/dist/{agent-bridge → editor-commands}/capabilities/ui-regions.js +55 -57
  41. package/dist/editor-commands/capabilities/ui-regions.js.map +1 -0
  42. package/dist/editor-commands/capabilities/viewport.d.ts +5 -0
  43. package/dist/editor-commands/capabilities/viewport.d.ts.map +1 -0
  44. package/dist/{agent-bridge → editor-commands}/capabilities/viewport.js +100 -100
  45. package/dist/editor-commands/capabilities/viewport.js.map +1 -0
  46. package/dist/editor-commands/command-sources.d.ts +7 -0
  47. package/dist/editor-commands/command-sources.d.ts.map +1 -0
  48. package/dist/editor-commands/command-sources.js +34 -0
  49. package/dist/editor-commands/command-sources.js.map +1 -0
  50. package/dist/editor-commands/diagnostics.d.ts +12 -0
  51. package/dist/editor-commands/diagnostics.d.ts.map +1 -0
  52. package/dist/{agent-bridge → editor-commands}/diagnostics.js +4 -4
  53. package/dist/editor-commands/diagnostics.js.map +1 -0
  54. package/dist/{agent-bridge → editor-commands}/index.d.ts +1 -1
  55. package/dist/editor-commands/index.d.ts.map +1 -0
  56. package/dist/{agent-bridge → editor-commands}/index.js +1 -1
  57. package/dist/editor-commands/index.js.map +1 -0
  58. package/dist/editor-commands/register.d.ts +4 -0
  59. package/dist/editor-commands/register.d.ts.map +1 -0
  60. package/dist/{agent-bridge → editor-commands}/register.js +323 -286
  61. package/dist/editor-commands/register.js.map +1 -0
  62. package/dist/{agent-bridge → editor-commands}/shared.d.ts +80 -80
  63. package/dist/editor-commands/shared.d.ts.map +1 -0
  64. package/dist/{agent-bridge → editor-commands}/shared.js +29 -29
  65. package/dist/editor-commands/shared.js.map +1 -0
  66. package/dist/editor-commands/source-types.d.ts +110 -0
  67. package/dist/editor-commands/source-types.d.ts.map +1 -0
  68. package/dist/editor-commands/source-types.js.map +1 -0
  69. package/dist/editor-plugin-commands.d.ts +4 -0
  70. package/dist/editor-plugin-commands.d.ts.map +1 -0
  71. package/dist/editor-plugin-commands.js +18 -0
  72. package/dist/editor-plugin-commands.js.map +1 -0
  73. package/dist/index.d.ts +2 -2
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/index.js.map +1 -1
  77. package/dist/local-editor-commands.d.ts +2 -0
  78. package/dist/local-editor-commands.d.ts.map +1 -0
  79. package/dist/local-editor-commands.js +2 -0
  80. package/dist/local-editor-commands.js.map +1 -0
  81. package/dist/local-editor-harness.d.ts +35 -21
  82. package/dist/local-editor-harness.d.ts.map +1 -1
  83. package/dist/local-editor-harness.js +1721 -367
  84. package/dist/local-editor-harness.js.map +1 -1
  85. package/dist/local-editor-prefab-stage-transaction.d.ts +2 -1
  86. package/dist/local-editor-prefab-stage-transaction.d.ts.map +1 -1
  87. package/dist/local-editor-prefab-stage-transaction.js +6 -5
  88. package/dist/local-editor-prefab-stage-transaction.js.map +1 -1
  89. package/dist/local-editor-scene-view-interaction-runtime.d.ts.map +1 -1
  90. package/dist/local-editor-scene-view-interaction-runtime.js +2 -5
  91. package/dist/local-editor-scene-view-interaction-runtime.js.map +1 -1
  92. package/dist/playable-local-editor-entry.d.ts +10 -0
  93. package/dist/playable-local-editor-entry.d.ts.map +1 -1
  94. package/dist/playable-local-editor-entry.js +10 -2
  95. package/dist/playable-local-editor-entry.js.map +1 -1
  96. package/dist/playable-local-editor-host.d.ts +3 -32
  97. package/dist/playable-local-editor-host.d.ts.map +1 -1
  98. package/dist/playable-local-editor-host.js +6 -70
  99. package/dist/playable-local-editor-host.js.map +1 -1
  100. package/dist/playable-product-local-editor.d.ts +1 -2
  101. package/dist/playable-product-local-editor.d.ts.map +1 -1
  102. package/dist/playable-product-local-editor.js +0 -1
  103. package/dist/playable-product-local-editor.js.map +1 -1
  104. package/dist/playable-product-projection-preview.d.ts.map +1 -1
  105. package/dist/playable-product-projection-preview.js +1 -1
  106. package/dist/playable-product-projection-preview.js.map +1 -1
  107. package/dist/playable-product-scene-capabilities.d.ts +0 -2
  108. package/dist/playable-product-scene-capabilities.d.ts.map +1 -1
  109. package/dist/playable-product-scene-capabilities.js +33 -6
  110. package/dist/playable-product-scene-capabilities.js.map +1 -1
  111. package/dist/playable-runtime-babylon.d.ts +4 -0
  112. package/dist/playable-runtime-babylon.d.ts.map +1 -1
  113. package/dist/playable-runtime-babylon.js +4 -0
  114. package/dist/playable-runtime-babylon.js.map +1 -1
  115. package/dist/playable-sdk.d.ts +1 -1
  116. package/dist/playable-sdk.d.ts.map +1 -1
  117. package/dist/playable-sdk.js.map +1 -1
  118. package/dist/playable-standard-project.d.ts +0 -2
  119. package/dist/playable-standard-project.d.ts.map +1 -1
  120. package/dist/playable-standard-project.js +1 -2
  121. package/dist/playable-standard-project.js.map +1 -1
  122. package/dist/project-service-projection.d.ts +16 -0
  123. package/dist/project-service-projection.d.ts.map +1 -0
  124. package/dist/project-service-projection.js +67 -0
  125. package/dist/project-service-projection.js.map +1 -0
  126. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts +18 -0
  127. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.d.ts.map +1 -1
  128. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js +54 -18
  129. package/node_modules/@fps-games/babylon-renderer/dist/post-process/babylon-default-pipeline.js.map +1 -1
  130. package/node_modules/@fps-games/babylon-renderer/package.json +9 -9
  131. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts +1 -0
  132. package/node_modules/@fps-games/editor-babylon/dist/projection.d.ts.map +1 -1
  133. package/node_modules/@fps-games/editor-babylon/dist/projection.js +1 -1
  134. package/node_modules/@fps-games/editor-babylon/dist/projection.js.map +1 -1
  135. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.d.ts.map +1 -1
  136. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js +127 -13
  137. package/node_modules/@fps-games/editor-babylon/dist/selection-presentation-controller.js.map +1 -1
  138. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.d.ts.map +1 -1
  139. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js +66 -1
  140. package/node_modules/@fps-games/editor-babylon/dist/transform-gizmo-controller.js.map +1 -1
  141. package/node_modules/@fps-games/editor-babylon/package.json +6 -6
  142. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts +32 -0
  143. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.d.ts.map +1 -0
  144. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js +254 -0
  145. package/node_modules/@fps-games/editor-browser/dist/editor-command-service-client.js.map +1 -0
  146. package/node_modules/@fps-games/editor-browser/dist/index.d.ts +3 -1
  147. package/node_modules/@fps-games/editor-browser/dist/index.d.ts.map +1 -1
  148. package/node_modules/@fps-games/editor-browser/dist/index.js +2 -0
  149. package/node_modules/@fps-games/editor-browser/dist/index.js.map +1 -1
  150. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts +68 -0
  151. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.d.ts.map +1 -0
  152. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js +650 -0
  153. package/node_modules/@fps-games/editor-browser/dist/local-editor-command-center.js.map +1 -0
  154. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts +1 -0
  155. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.d.ts.map +1 -1
  156. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js +22 -0
  157. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-formal-surface-visibility.js.map +1 -1
  158. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts +8 -0
  159. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.d.ts.map +1 -1
  160. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js +117 -6
  161. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-controller.js.map +1 -1
  162. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts +14 -1
  163. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.d.ts.map +1 -1
  164. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js +100 -1
  165. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-hierarchy-view.js.map +1 -1
  166. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts +8 -1
  167. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.d.ts.map +1 -1
  168. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js +75 -2
  169. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-panels.js.map +1 -1
  170. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts +37 -12
  171. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.d.ts.map +1 -1
  172. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui-types.js.map +1 -1
  173. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts +25 -2
  174. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.d.ts.map +1 -1
  175. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js +332 -107
  176. package/node_modules/@fps-games/editor-browser/dist/local-editor-ui.js.map +1 -1
  177. package/node_modules/@fps-games/editor-browser/package.json +7 -7
  178. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts +107 -0
  179. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.d.ts.map +1 -0
  180. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js +1211 -0
  181. package/node_modules/@fps-games/editor-core/dist/editor-authoring-host.js.map +1 -0
  182. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts +34 -0
  183. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.d.ts.map +1 -0
  184. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js +260 -0
  185. package/node_modules/@fps-games/editor-core/dist/editor-command-capability-adapter.js.map +1 -0
  186. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts +9 -0
  187. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.d.ts.map +1 -0
  188. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js +14 -0
  189. package/node_modules/@fps-games/editor-core/dist/editor-command-composed-authority.js.map +1 -0
  190. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts +18 -0
  191. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.d.ts.map +1 -0
  192. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js +113 -0
  193. package/node_modules/@fps-games/editor-core/dist/editor-command-observability.js.map +1 -0
  194. package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts +82 -0
  195. package/node_modules/@fps-games/editor-core/dist/editor-command-system.d.ts.map +1 -0
  196. package/node_modules/@fps-games/editor-core/dist/editor-command-system.js +1098 -0
  197. package/node_modules/@fps-games/editor-core/dist/editor-command-system.js.map +1 -0
  198. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts +6 -7
  199. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.d.ts.map +1 -1
  200. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js +62 -103
  201. package/node_modules/@fps-games/editor-core/dist/editor-plugin-host.js.map +1 -1
  202. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts +30 -0
  203. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.d.ts.map +1 -0
  204. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js +540 -0
  205. package/node_modules/@fps-games/editor-core/dist/editor-service-gateway.js.map +1 -0
  206. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts +9 -0
  207. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.d.ts.map +1 -0
  208. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js +61 -0
  209. package/node_modules/@fps-games/editor-core/dist/editor-session-authority.js.map +1 -0
  210. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts +55 -0
  211. package/node_modules/@fps-games/editor-core/dist/editor-session.d.ts.map +1 -1
  212. package/node_modules/@fps-games/editor-core/dist/editor-session.js +247 -6
  213. package/node_modules/@fps-games/editor-core/dist/editor-session.js.map +1 -1
  214. package/node_modules/@fps-games/editor-core/dist/index.d.ts +6 -2
  215. package/node_modules/@fps-games/editor-core/dist/index.d.ts.map +1 -1
  216. package/node_modules/@fps-games/editor-core/dist/index.js +6 -2
  217. package/node_modules/@fps-games/editor-core/dist/index.js.map +1 -1
  218. package/node_modules/@fps-games/editor-core/package.json +6 -6
  219. package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts +0 -1
  220. package/node_modules/@fps-games/editor-forge-play/dist/index.d.ts.map +1 -1
  221. package/node_modules/@fps-games/editor-forge-play/dist/index.js +0 -1
  222. package/node_modules/@fps-games/editor-forge-play/dist/index.js.map +1 -1
  223. package/node_modules/@fps-games/editor-forge-play/package.json +2 -2
  224. package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts +2 -0
  225. package/node_modules/@fps-games/editor-playable-sdk/dist/bridge-command/protocol.d.ts.map +1 -1
  226. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.d.ts.map +1 -1
  227. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js +41 -1
  228. package/node_modules/@fps-games/editor-playable-sdk/dist/document/helpers.js.map +1 -1
  229. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts +27 -1
  230. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.d.ts.map +1 -1
  231. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play-types.js.map +1 -1
  232. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts +2 -0
  233. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.d.ts.map +1 -1
  234. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js +214 -7
  235. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/forge-play.js.map +1 -1
  236. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts +1 -0
  237. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.d.ts.map +1 -1
  238. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js +11 -3
  239. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/host-controller.js.map +1 -1
  240. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts +2 -4
  241. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.d.ts.map +1 -1
  242. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js +0 -1
  243. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/index.js.map +1 -1
  244. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.d.ts.map +1 -1
  245. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js +77 -31
  246. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/lifecycle.js.map +1 -1
  247. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts +8 -1
  248. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.d.ts.map +1 -1
  249. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/types.js.map +1 -1
  250. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts +21 -1
  251. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.d.ts.map +1 -1
  252. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js +90 -4
  253. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/asset-fields.js.map +1 -1
  254. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts +27 -1
  255. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.d.ts.map +1 -1
  256. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js +161 -1
  257. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/binding.js.map +1 -1
  258. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts +2 -2
  259. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.d.ts.map +1 -1
  260. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js +5 -92
  261. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/inspector.js.map +1 -1
  262. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts +7 -0
  263. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.d.ts.map +1 -1
  264. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js +26 -9
  265. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/scene-inspector.js.map +1 -1
  266. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts +9 -0
  267. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.d.ts.map +1 -1
  268. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js +19 -8
  269. package/node_modules/@fps-games/editor-playable-sdk/dist/material-binding/slot-inspector.js.map +1 -1
  270. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts +5 -0
  271. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.d.ts.map +1 -1
  272. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js +16 -4
  273. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/material-override-inspector.js.map +1 -1
  274. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts +9 -0
  275. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.d.ts.map +1 -1
  276. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js +12 -2
  277. package/node_modules/@fps-games/editor-playable-sdk/dist/prefab-stage/stage-inspector.js.map +1 -1
  278. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts +2 -1
  279. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.d.ts.map +1 -1
  280. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js +10 -5
  281. package/node_modules/@fps-games/editor-playable-sdk/dist/product/ground-decal.js.map +1 -1
  282. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts +1 -0
  283. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.d.ts.map +1 -1
  284. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js +1 -0
  285. package/node_modules/@fps-games/editor-playable-sdk/dist/product/index.js.map +1 -1
  286. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts +17 -82
  287. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.d.ts.map +1 -1
  288. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js +53 -57
  289. package/node_modules/@fps-games/editor-playable-sdk/dist/product/project-host-services.js.map +1 -1
  290. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.d.ts.map +1 -1
  291. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js +3 -2
  292. package/node_modules/@fps-games/editor-playable-sdk/dist/product/scene-session.js.map +1 -1
  293. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts +10 -0
  294. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.d.ts.map +1 -0
  295. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js +256 -0
  296. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-authoring-commands.js.map +1 -0
  297. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.d.ts.map +1 -1
  298. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js +7 -5
  299. package/node_modules/@fps-games/editor-playable-sdk/dist/product/standard-scene-assembly.js.map +1 -1
  300. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.d.ts.map +1 -1
  301. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js +8 -0
  302. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/client.js.map +1 -1
  303. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts +1 -0
  304. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.d.ts.map +1 -1
  305. package/node_modules/@fps-games/editor-playable-sdk/dist/scene-source/types.js.map +1 -1
  306. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js +134 -12
  307. package/node_modules/@fps-games/editor-playable-sdk/dist/upgrade-doctor/inspectors.js.map +1 -1
  308. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.d.ts.map +1 -1
  309. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js +47 -0
  310. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-scene-workflow.js.map +1 -1
  311. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts +27 -0
  312. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.d.ts.map +1 -0
  313. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js +592 -0
  314. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/editor-service-vite.js.map +1 -0
  315. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts +3 -1
  316. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.d.ts.map +1 -1
  317. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js +2 -1
  318. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/index.js.map +1 -1
  319. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.d.ts.map +1 -1
  320. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js +61 -6
  321. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/plugin.js.map +1 -1
  322. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts +0 -2
  323. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.d.ts.map +1 -1
  324. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js +1 -10
  325. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-adapter.js.map +1 -1
  326. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.d.ts.map +1 -1
  327. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js +21 -0
  328. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/product-authoring-api.js.map +1 -1
  329. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts +13 -0
  330. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.d.ts.map +1 -0
  331. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js +18 -0
  332. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-authoring-backend.js.map +1 -0
  333. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts +28 -0
  334. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.d.ts.map +1 -0
  335. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js +863 -0
  336. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/project-editor-service.js.map +1 -0
  337. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts +2 -0
  338. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.d.ts.map +1 -1
  339. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/types.js.map +1 -1
  340. package/node_modules/@fps-games/editor-playable-sdk/package.json +6 -6
  341. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts +1626 -0
  342. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.d.ts.map +1 -0
  343. package/node_modules/@fps-games/editor-protocol/dist/{agent-bridge.js → editor-command-capabilities.js} +766 -620
  344. package/node_modules/@fps-games/editor-protocol/dist/editor-command-capabilities.js.map +1 -0
  345. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts +69 -0
  346. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.d.ts.map +1 -0
  347. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js +22 -0
  348. package/node_modules/@fps-games/editor-protocol/dist/editor-command-trace.js.map +1 -0
  349. package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts +136 -0
  350. package/node_modules/@fps-games/editor-protocol/dist/editor-command.d.ts.map +1 -0
  351. package/node_modules/@fps-games/editor-protocol/dist/editor-command.js +2 -0
  352. package/node_modules/@fps-games/editor-protocol/dist/editor-command.js.map +1 -0
  353. package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts +225 -0
  354. package/node_modules/@fps-games/editor-protocol/dist/editor-service.d.ts.map +1 -0
  355. package/node_modules/@fps-games/editor-protocol/dist/editor-service.js +4 -0
  356. package/node_modules/@fps-games/editor-protocol/dist/editor-service.js.map +1 -0
  357. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts +6 -3
  358. package/node_modules/@fps-games/editor-protocol/dist/index.d.ts.map +1 -1
  359. package/node_modules/@fps-games/editor-protocol/dist/index.js +6 -3
  360. package/node_modules/@fps-games/editor-protocol/dist/index.js.map +1 -1
  361. package/node_modules/@fps-games/editor-protocol/package.json +2 -2
  362. package/node_modules/@fps-games/editor-tooling/package.json +3 -3
  363. package/node_modules/@fps-games/editor-ui/package.json +1 -1
  364. package/node_modules/@fps-games/playable-assets/package.json +1 -1
  365. package/node_modules/@fps-games/playable-contracts/package.json +1 -1
  366. package/node_modules/@fps-games/playable-rendering/package.json +2 -2
  367. package/node_modules/@fps-games/playable-runtime/package.json +12 -12
  368. package/node_modules/@fps-games/playable-runtime-data/package.json +4 -4
  369. package/node_modules/@fps-games/playable-scene/package.json +2 -2
  370. package/node_modules/@fps-games/plugin-api/package.json +1 -1
  371. package/node_modules/@fps-games/plugin-assets/dist/version.d.ts +1 -1
  372. package/node_modules/@fps-games/plugin-assets/dist/version.js +1 -1
  373. package/node_modules/@fps-games/plugin-assets/dist/version.js.map +1 -1
  374. package/node_modules/@fps-games/plugin-assets/package.json +6 -6
  375. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts +1 -0
  376. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.d.ts.map +1 -1
  377. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js +78 -4
  378. package/node_modules/@fps-games/plugin-hierarchy/dist/kernel.js.map +1 -1
  379. package/node_modules/@fps-games/plugin-hierarchy/dist/version.d.ts +1 -1
  380. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js +1 -1
  381. package/node_modules/@fps-games/plugin-hierarchy/dist/version.js.map +1 -1
  382. package/node_modules/@fps-games/plugin-hierarchy/package.json +5 -5
  383. package/node_modules/@fps-games/plugin-host/package.json +2 -2
  384. package/node_modules/@fps-games/plugin-markers/dist/version.d.ts +1 -1
  385. package/node_modules/@fps-games/plugin-markers/dist/version.js +1 -1
  386. package/node_modules/@fps-games/plugin-markers/dist/version.js.map +1 -1
  387. package/node_modules/@fps-games/plugin-markers/package.json +5 -5
  388. package/node_modules/@fps-games/plugin-materials/dist/version.d.ts +1 -1
  389. package/node_modules/@fps-games/plugin-materials/dist/version.js +1 -1
  390. package/node_modules/@fps-games/plugin-materials/dist/version.js.map +1 -1
  391. package/node_modules/@fps-games/plugin-materials/package.json +5 -5
  392. package/node_modules/@fps-games/plugin-rendering/dist/version.d.ts +1 -1
  393. package/node_modules/@fps-games/plugin-rendering/dist/version.js +1 -1
  394. package/node_modules/@fps-games/plugin-rendering/dist/version.js.map +1 -1
  395. package/node_modules/@fps-games/plugin-rendering/package.json +5 -5
  396. package/node_modules/@fps-games/plugin-scene/dist/version.d.ts +1 -1
  397. package/node_modules/@fps-games/plugin-scene/dist/version.js +1 -1
  398. package/node_modules/@fps-games/plugin-scene/dist/version.js.map +1 -1
  399. package/node_modules/@fps-games/plugin-scene/package.json +5 -5
  400. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.d.ts +1 -1
  401. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js +1 -1
  402. package/node_modules/@fps-games/plugin-shadow-map-experiment/dist/version.js.map +1 -1
  403. package/node_modules/@fps-games/plugin-shadow-map-experiment/package.json +5 -5
  404. package/node_modules/@fps-games/plugin-shadows/dist/version.d.ts +1 -1
  405. package/node_modules/@fps-games/plugin-shadows/dist/version.js +1 -1
  406. package/node_modules/@fps-games/plugin-shadows/dist/version.js.map +1 -1
  407. package/node_modules/@fps-games/plugin-shadows/package.json +7 -7
  408. package/package.json +23 -23
  409. package/dist/agent-bridge/capabilities/assets.d.ts +0 -8
  410. package/dist/agent-bridge/capabilities/assets.d.ts.map +0 -1
  411. package/dist/agent-bridge/capabilities/assets.js.map +0 -1
  412. package/dist/agent-bridge/capabilities/editor-state.d.ts +0 -5
  413. package/dist/agent-bridge/capabilities/editor-state.d.ts.map +0 -1
  414. package/dist/agent-bridge/capabilities/editor-state.js.map +0 -1
  415. package/dist/agent-bridge/capabilities/hierarchy.d.ts +0 -4
  416. package/dist/agent-bridge/capabilities/hierarchy.d.ts.map +0 -1
  417. package/dist/agent-bridge/capabilities/hierarchy.js.map +0 -1
  418. package/dist/agent-bridge/capabilities/host-lifecycle.d.ts +0 -11
  419. package/dist/agent-bridge/capabilities/host-lifecycle.d.ts.map +0 -1
  420. package/dist/agent-bridge/capabilities/host-lifecycle.js +0 -149
  421. package/dist/agent-bridge/capabilities/host-lifecycle.js.map +0 -1
  422. package/dist/agent-bridge/capabilities/prefabs.d.ts +0 -5
  423. package/dist/agent-bridge/capabilities/prefabs.d.ts.map +0 -1
  424. package/dist/agent-bridge/capabilities/prefabs.js.map +0 -1
  425. package/dist/agent-bridge/capabilities/scene-objects.d.ts +0 -8
  426. package/dist/agent-bridge/capabilities/scene-objects.d.ts.map +0 -1
  427. package/dist/agent-bridge/capabilities/scene-objects.js +0 -480
  428. package/dist/agent-bridge/capabilities/scene-objects.js.map +0 -1
  429. package/dist/agent-bridge/capabilities/selection.d.ts +0 -5
  430. package/dist/agent-bridge/capabilities/selection.d.ts.map +0 -1
  431. package/dist/agent-bridge/capabilities/selection.js +0 -60
  432. package/dist/agent-bridge/capabilities/selection.js.map +0 -1
  433. package/dist/agent-bridge/capabilities/shadows.d.ts +0 -5
  434. package/dist/agent-bridge/capabilities/shadows.d.ts.map +0 -1
  435. package/dist/agent-bridge/capabilities/shadows.js.map +0 -1
  436. package/dist/agent-bridge/capabilities/transform.d.ts +0 -5
  437. package/dist/agent-bridge/capabilities/transform.d.ts.map +0 -1
  438. package/dist/agent-bridge/capabilities/transform.js +0 -164
  439. package/dist/agent-bridge/capabilities/transform.js.map +0 -1
  440. package/dist/agent-bridge/capabilities/ui-regions.d.ts +0 -4
  441. package/dist/agent-bridge/capabilities/ui-regions.d.ts.map +0 -1
  442. package/dist/agent-bridge/capabilities/ui-regions.js.map +0 -1
  443. package/dist/agent-bridge/capabilities/viewport.d.ts +0 -5
  444. package/dist/agent-bridge/capabilities/viewport.d.ts.map +0 -1
  445. package/dist/agent-bridge/capabilities/viewport.js.map +0 -1
  446. package/dist/agent-bridge/capability-sources.d.ts +0 -7
  447. package/dist/agent-bridge/capability-sources.d.ts.map +0 -1
  448. package/dist/agent-bridge/capability-sources.js +0 -34
  449. package/dist/agent-bridge/capability-sources.js.map +0 -1
  450. package/dist/agent-bridge/diagnostics.d.ts +0 -12
  451. package/dist/agent-bridge/diagnostics.d.ts.map +0 -1
  452. package/dist/agent-bridge/diagnostics.js.map +0 -1
  453. package/dist/agent-bridge/index.d.ts.map +0 -1
  454. package/dist/agent-bridge/index.js.map +0 -1
  455. package/dist/agent-bridge/register.d.ts +0 -4
  456. package/dist/agent-bridge/register.d.ts.map +0 -1
  457. package/dist/agent-bridge/register.js.map +0 -1
  458. package/dist/agent-bridge/shared.d.ts.map +0 -1
  459. package/dist/agent-bridge/shared.js.map +0 -1
  460. package/dist/agent-bridge/source-types.d.ts +0 -110
  461. package/dist/agent-bridge/source-types.d.ts.map +0 -1
  462. package/dist/agent-bridge/source-types.js.map +0 -1
  463. package/dist/editor-plugin-agent-capabilities.d.ts +0 -4
  464. package/dist/editor-plugin-agent-capabilities.d.ts.map +0 -1
  465. package/dist/editor-plugin-agent-capabilities.js +0 -64
  466. package/dist/editor-plugin-agent-capabilities.js.map +0 -1
  467. package/dist/local-editor-agent-actions.d.ts +0 -43
  468. package/dist/local-editor-agent-actions.d.ts.map +0 -1
  469. package/dist/local-editor-agent-actions.js +0 -321
  470. package/dist/local-editor-agent-actions.js.map +0 -1
  471. package/dist/local-editor-agent-bridge-transport.d.ts +0 -129
  472. package/dist/local-editor-agent-bridge-transport.d.ts.map +0 -1
  473. package/dist/local-editor-agent-bridge-transport.js +0 -403
  474. package/dist/local-editor-agent-bridge-transport.js.map +0 -1
  475. package/dist/local-editor-agent-bridge.d.ts +0 -2
  476. package/dist/local-editor-agent-bridge.d.ts.map +0 -1
  477. package/dist/local-editor-agent-bridge.js +0 -2
  478. package/dist/local-editor-agent-bridge.js.map +0 -1
  479. package/dist/local-editor-agent-context.d.ts +0 -68
  480. package/dist/local-editor-agent-context.d.ts.map +0 -1
  481. package/dist/local-editor-agent-context.js +0 -716
  482. package/dist/local-editor-agent-context.js.map +0 -1
  483. package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts +0 -22
  484. package/node_modules/@fps-games/editor-core/dist/agent-bridge.d.ts.map +0 -1
  485. package/node_modules/@fps-games/editor-core/dist/agent-bridge.js +0 -106
  486. package/node_modules/@fps-games/editor-core/dist/agent-bridge.js.map +0 -1
  487. package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts +0 -17
  488. package/node_modules/@fps-games/editor-core/dist/agent-interaction.d.ts.map +0 -1
  489. package/node_modules/@fps-games/editor-core/dist/agent-interaction.js +0 -14
  490. package/node_modules/@fps-games/editor-core/dist/agent-interaction.js.map +0 -1
  491. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts +0 -23
  492. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.d.ts.map +0 -1
  493. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js +0 -47
  494. package/node_modules/@fps-games/editor-forge-play/dist/agent-transport.js.map +0 -1
  495. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts +0 -112
  496. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.d.ts.map +0 -1
  497. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js +0 -159
  498. package/node_modules/@fps-games/editor-playable-sdk/dist/local-harness/agent-descriptions.js.map +0 -1
  499. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts +0 -15
  500. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.d.ts.map +0 -1
  501. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js +0 -76
  502. package/node_modules/@fps-games/editor-playable-sdk/dist/vite/session-metadata.js.map +0 -1
  503. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts +0 -1622
  504. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.d.ts.map +0 -1
  505. package/node_modules/@fps-games/editor-protocol/dist/agent-bridge.js.map +0 -1
  506. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts +0 -68
  507. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.d.ts.map +0 -1
  508. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js +0 -23
  509. package/node_modules/@fps-games/editor-protocol/dist/agent-trace.js.map +0 -1
  510. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts +0 -187
  511. package/node_modules/@fps-games/editor-protocol/dist/agent.d.ts.map +0 -1
  512. package/node_modules/@fps-games/editor-protocol/dist/agent.js +0 -5
  513. package/node_modules/@fps-games/editor-protocol/dist/agent.js.map +0 -1
  514. /package/dist/{agent-bridge → editor-commands}/source-types.js +0 -0
@@ -0,0 +1,256 @@
1
+ import { EDITOR_COMMAND_BUILT_IN_METADATA, EDITOR_COMMAND_BUILT_IN_PRESENTATION, EDITOR_COMMAND_ID, EDITOR_COMMAND_SCHEMAS, EDITOR_COMMAND_SCHEMA_VERSION, } from '@fps-games/editor-protocol';
2
+ export function registerFpsGameEditorStandardAuthoringCommands(options) {
3
+ const unregister = [];
4
+ try {
5
+ unregister.push(options.host.registerCommand({
6
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.HIERARCHY_SCOPE_GET),
7
+ handler: (_input, context) => ({ ok: true, output: {
8
+ scopeKey: 'scene',
9
+ scopeType: 'scene',
10
+ revision: context.session.getState({ cloneDocuments: false }).documentRevision,
11
+ title: 'Scene',
12
+ readonly: false,
13
+ nodes: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).map(item => ({
14
+ id: item.id,
15
+ label: item.label,
16
+ parentId: item.parentId ?? null,
17
+ selectable: true,
18
+ canHaveChildren: true,
19
+ renamable: true,
20
+ deletable: true,
21
+ draggable: true,
22
+ })),
23
+ selectedIds: context.session.getSelection().selectedIds,
24
+ activeId: context.session.getSelection().activeId,
25
+ capabilities: {},
26
+ totalCount: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).length,
27
+ returnedCount: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).length,
28
+ } }),
29
+ }));
30
+ unregister.push(options.host.registerCommand({
31
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.SCENE_OBJECTS_LIST),
32
+ handler: (_input, context) => ({ ok: true, output: {
33
+ objects: context.session.getWorkingDocument().scene.gameObjects.map(summarizeGameObject),
34
+ } }),
35
+ }));
36
+ unregister.push(options.host.registerCommand({
37
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_RESOLVE, { activeId: 'objectId' }),
38
+ handler: (input, context) => resolveObject(context.session.getWorkingDocument(), input),
39
+ }));
40
+ unregister.push(options.host.registerCommand({
41
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.ASSET_LIBRARY_LIST),
42
+ handler: async (input) => {
43
+ const normalizedQuery = input.query?.trim().toLocaleLowerCase() ?? '';
44
+ const assets = [...await options.listAssets()]
45
+ .filter(asset => input.includeUnplaceable || asset.placeable !== false)
46
+ .filter(asset => !input.kind || asset.kind === input.kind)
47
+ .filter(asset => !normalizedQuery
48
+ || (asset.displayName ?? asset.assetId).toLocaleLowerCase().includes(normalizedQuery))
49
+ .slice(0, input.limit ?? 500)
50
+ .map(summarizeAsset);
51
+ return { ok: true, output: { assets, assetCount: assets.length } };
52
+ },
53
+ }));
54
+ unregister.push(options.host.registerCommand({
55
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE),
56
+ handler: (input, context) => applyPatchResult(context, options.sceneAssembly.createCreatePrimitivePatch(context.session.getWorkingDocument(), input), result => ({
57
+ createdId: result.createdId,
58
+ object: summarizeGameObject(context.session.getWorkingDocument().scene.gameObjects.find(object => object.id === result.createdId)),
59
+ selection: context.session.getSelection(),
60
+ })),
61
+ }));
62
+ unregister.push(options.host.registerCommand({
63
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_DELETE, { selectedIds: 'objectIds' }),
64
+ handler: (input, context) => applyPatchResult(context, options.sceneAssembly.createDeleteSubtreePatch(context.session.getWorkingDocument(), { ids: input.objectIds ?? (input.objectId ? [input.objectId] : []) }), result => ({
65
+ deletedIds: result.deletedIds ?? result.changedIds ?? [],
66
+ fallbackSelectionId: context.session.getSelection().activeId,
67
+ selection: context.session.getSelection(),
68
+ })),
69
+ }));
70
+ unregister.push(options.host.registerCommand({
71
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.TRANSFORM_MOVE, { activeId: 'objectId' }),
72
+ handler: (input, context) => {
73
+ const before = readObjectTransform(context.session.getWorkingDocument(), input.objectId);
74
+ if (!before)
75
+ return failure('object.notFound', `Scene object was not found: ${input.objectId}`);
76
+ const position = input.position ?? (input.offset ? {
77
+ x: before.position.x + input.offset.x,
78
+ y: before.position.y + input.offset.y,
79
+ z: before.position.z + input.offset.z,
80
+ } : null);
81
+ if (!position)
82
+ return failure('transform.invalidInput', 'Transform move requires position or offset.');
83
+ const document = options.sceneAssembly.patchGameObjectField(context.session.getWorkingDocument(), input.objectId, 'transform.position', position);
84
+ const after = readObjectTransform(document, input.objectId);
85
+ if (!after || JSON.stringify(after) === JSON.stringify(before)) {
86
+ return failure('transform.unchanged', `Transform did not change: ${input.objectId}`);
87
+ }
88
+ context.dispatch({ type: 'document.replace', document, label: `Move ${input.objectId}` });
89
+ return { ok: true, output: {
90
+ objectId: input.objectId,
91
+ before,
92
+ after,
93
+ selection: context.session.getSelection(),
94
+ } };
95
+ },
96
+ }));
97
+ unregister.push(options.host.registerCommand({
98
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.TRANSFORM_SET, { activeId: 'objectId' }),
99
+ handler: (input, context) => {
100
+ let document = context.session.getWorkingDocument();
101
+ const before = readObjectTransform(document, input.objectId);
102
+ if (!before)
103
+ return failure('object.notFound', `Scene object was not found: ${input.objectId}`);
104
+ for (const field of ['position', 'rotation', 'scale']) {
105
+ if (input[field]) {
106
+ document = options.sceneAssembly.patchGameObjectField(document, input.objectId, `transform.${field}`, input[field]);
107
+ }
108
+ }
109
+ const after = readObjectTransform(document, input.objectId);
110
+ if (!after || JSON.stringify(after) === JSON.stringify(before)) {
111
+ return failure('transform.unchanged', `Transform did not change: ${input.objectId}`);
112
+ }
113
+ context.dispatch({ type: 'document.replace', document, label: `Set transform on ${input.objectId}` });
114
+ return { ok: true, output: {
115
+ objectId: input.objectId,
116
+ before,
117
+ after,
118
+ selection: context.session.getSelection(),
119
+ } };
120
+ },
121
+ }));
122
+ unregister.push(options.host.registerCommand({
123
+ manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET),
124
+ handler: async (input, context) => {
125
+ const asset = [...await options.listAssets()].find(candidate => candidate.assetId === input.assetId);
126
+ if (!asset)
127
+ return failure('asset.notFound', `Asset was not found: ${input.assetId}`);
128
+ const result = options.sceneAssembly.addAssetLibraryItemToDocument(context.session.getWorkingDocument(), asset, toTransform(input));
129
+ context.dispatch({ type: 'document.replace', document: result.document, label: `Create ${result.gameObject.name ?? result.gameObject.id}` });
130
+ return { ok: true, output: {
131
+ assetId: input.assetId,
132
+ createdId: result.gameObject.id,
133
+ object: summarizeGameObject(result.gameObject),
134
+ selection: context.session.getSelection(),
135
+ focused: false,
136
+ status: `Created ${result.gameObject.name ?? result.gameObject.id}`,
137
+ } };
138
+ },
139
+ }));
140
+ }
141
+ catch (error) {
142
+ for (const dispose of unregister.splice(0).reverse())
143
+ dispose();
144
+ throw error;
145
+ }
146
+ return () => { for (const dispose of unregister.splice(0).reverse())
147
+ dispose(); };
148
+ }
149
+ function toTransform(input) {
150
+ if (!input.position && !input.rotation && !input.scale)
151
+ return undefined;
152
+ return {
153
+ position: input.position ?? { x: 0, y: 0, z: 0 },
154
+ rotation: input.rotation ?? { x: 0, y: 0, z: 0 },
155
+ scale: input.scale ?? { x: 1, y: 1, z: 1 },
156
+ };
157
+ }
158
+ function applyPatchResult(context, result, output) {
159
+ if (!result)
160
+ return failure('command.unavailable', 'The requested scene mutation is unavailable.');
161
+ context.dispatch({
162
+ type: 'document.patch', patch: result.patch, label: result.label,
163
+ ...(result.reprojectIds?.length ? { projectionImpact: { type: 'incremental', reprojectIds: result.reprojectIds } } : {}),
164
+ });
165
+ return { ok: true, output: output ? output(result) : {
166
+ changedIds: result.changedIds ?? result.deletedIds ?? [],
167
+ ...(result.createdId ? { createdId: result.createdId } : {}),
168
+ ...(result.selectId ? { selectId: result.selectId } : {}),
169
+ } };
170
+ }
171
+ function resolveObject(document, input) {
172
+ const query = input.objectId ?? input.name ?? input.path ?? input.query ?? '';
173
+ const normalized = query.trim().toLocaleLowerCase();
174
+ const exactId = document.scene.gameObjects.find(object => object.id === query);
175
+ const matches = exactId ? [exactId] : document.scene.gameObjects.filter(object => (object.name?.trim().toLocaleLowerCase() === normalized
176
+ || object.id.toLocaleLowerCase().includes(normalized)));
177
+ return { ok: true, output: {
178
+ objects: matches.map(summarizeGameObject),
179
+ resolvedObject: matches.length === 1 ? summarizeGameObject(matches[0]) : null,
180
+ ambiguous: matches.length > 1,
181
+ } };
182
+ }
183
+ function summarizeGameObject(object) {
184
+ return {
185
+ id: object.id,
186
+ label: object.name ?? object.id,
187
+ name: object.name ?? object.id,
188
+ parentId: object.parentId ?? null,
189
+ };
190
+ }
191
+ function summarizeAsset(asset) {
192
+ return {
193
+ assetId: asset.assetId,
194
+ ...(asset.guid ? { guid: asset.guid } : {}),
195
+ displayName: asset.displayName ?? asset.assetId,
196
+ kind: asset.kind,
197
+ type: asset.type,
198
+ ...(asset.category ? { category: asset.category } : {}),
199
+ placeable: asset.placeable !== false,
200
+ };
201
+ }
202
+ function canonicalManifest(id, selectionBinding) {
203
+ const metadata = EDITOR_COMMAND_BUILT_IN_METADATA[id];
204
+ const schema = EDITOR_COMMAND_SCHEMAS[id];
205
+ const presentation = EDITOR_COMMAND_BUILT_IN_PRESENTATION[id];
206
+ if (!metadata)
207
+ throw new Error(`Built-in Editor command metadata is missing: ${id}`);
208
+ return {
209
+ schemaVersion: EDITOR_COMMAND_SCHEMA_VERSION,
210
+ id,
211
+ version: 1,
212
+ title: metadata.title,
213
+ target: metadata.target,
214
+ access: metadata.access,
215
+ stability: metadata.stability,
216
+ inputSchema: schema.inputSchema,
217
+ outputSchema: schema.outputSchema,
218
+ effects: {
219
+ persistence: metadata.access === 'write' ? 'authoring' : 'none',
220
+ undoable: metadata.access === 'write',
221
+ idempotent: metadata.access === 'read',
222
+ },
223
+ presentation: {
224
+ category: metadata.category,
225
+ inputMode: hasCommandInputFields(schema.inputSchema) ? 'schema-form' : 'none',
226
+ ...(presentation?.aliases ? { aliases: presentation.aliases } : {}),
227
+ ...(presentation?.keywords ? { keywords: presentation.keywords } : {}),
228
+ ...(presentation?.examples ? { examples: presentation.examples } : {}),
229
+ ...(presentation?.shortcut ? { shortcut: presentation.shortcut } : {}),
230
+ ...(presentation?.menu ? { menu: presentation.menu } : {}),
231
+ ...(selectionBinding ? { selectionBinding } : {}),
232
+ },
233
+ };
234
+ }
235
+ function readObjectTransform(document, objectId) {
236
+ const object = document.scene.gameObjects.find(candidate => candidate.id === objectId);
237
+ const transform = (object?.components.find(component => component.type === 'Transform')
238
+ ?? object?.transform);
239
+ if (!transform || ('mode' in transform && transform.mode === 'matrix'))
240
+ return null;
241
+ return {
242
+ position: { ...transform.position },
243
+ rotation: { ...transform.rotation },
244
+ scale: { ...(transform.scale ?? { x: 1, y: 1, z: 1 }) },
245
+ };
246
+ }
247
+ function hasCommandInputFields(schema) {
248
+ const properties = schema.properties;
249
+ return !!properties && typeof properties === 'object' && !Array.isArray(properties)
250
+ && Object.keys(properties).length > 0;
251
+ }
252
+ function failure(code, message) {
253
+ const diagnostic = { severity: 'error', source: 'command', code, message };
254
+ return { ok: false, diagnostics: [diagnostic] };
255
+ }
256
+ //# sourceMappingURL=standard-authoring-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard-authoring-commands.js","sourceRoot":"","sources":["../../src/product/standard-authoring-commands.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gCAAgC,EAChC,oCAAoC,EACpC,iBAAiB,EACjB,sBAAsB,EACtB,6BAA6B,GAI9B,MAAM,4BAA4B,CAAC;AAqBpC,MAAM,UAAU,8CAA8C,CAK5D,OAAiG;IACjG,MAAM,UAAU,GAAsB,EAAE,CAAC;IACzC,IAAI,CAAC;QACH,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAiC;YAC3E,QAAQ,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC;YAClE,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;oBACjD,QAAQ,EAAE,OAAO;oBACjB,SAAS,EAAE,OAAO;oBAClB,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,gBAAgB;oBAC9E,KAAK,EAAE,OAAO;oBACd,QAAQ,EAAE,KAAK;oBACf,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;wBAChG,EAAE,EAAE,IAAI,CAAC,EAAE;wBACX,KAAK,EAAE,IAAI,CAAC,KAAK;wBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI;wBAC/B,UAAU,EAAE,IAAI;wBAChB,eAAe,EAAE,IAAI;wBACrB,SAAS,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IAC5C,MAAM,UAAU,GAA4B,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACpG,OAAO,EAAE,EAAE,EAAE,KAAc,EAAE,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAC3D,CAAC","sourcesContent":["import type { EditorAuthoringHost } from '@fps-games/editor-core';\nimport {\n EDITOR_COMMAND_BUILT_IN_METADATA,\n EDITOR_COMMAND_BUILT_IN_PRESENTATION,\n EDITOR_COMMAND_ID,\n EDITOR_COMMAND_SCHEMAS,\n EDITOR_COMMAND_SCHEMA_VERSION,\n type EditorCommandDiagnostic,\n type EditorCommandJsonObject,\n type EditorCommandManifest,\n} from '@fps-games/editor-protocol';\nimport type { EditorSceneAssetLibraryItem, EditorSceneDocument, EditorSceneGameObject } from '../document/index';\nimport type {\n FpsGameEditorStandardSceneAssembly,\n} from './standard-scene-assembly';\n\nexport interface FpsGameEditorStandardAuthoringCommandOptions<\n TDocument extends EditorSceneDocument<TGameObject>,\n TGameObject extends EditorSceneGameObject,\n TPatch,\n TAssetItem extends EditorSceneAssetLibraryItem,\n> {\n host: EditorAuthoringHost<TDocument, TPatch>;\n sceneAssembly: Pick<\n FpsGameEditorStandardSceneAssembly<TDocument, TGameObject, TPatch, TAssetItem, any>,\n 'getHierarchyItems' | 'createCreatePrimitivePatch' | 'createDeleteSubtreePatch'\n | 'patchGameObjectField' | 'addAssetLibraryItemToDocument'\n >;\n listAssets(): readonly TAssetItem[] | Promise<readonly TAssetItem[]>;\n}\n\nexport function registerFpsGameEditorStandardAuthoringCommands<\n TDocument extends EditorSceneDocument<TGameObject>,\n TGameObject extends EditorSceneGameObject,\n TPatch,\n TAssetItem extends EditorSceneAssetLibraryItem,\n>(options: FpsGameEditorStandardAuthoringCommandOptions<TDocument, TGameObject, TPatch, TAssetItem>): () => void {\n const unregister: Array<() => void> = [];\n try {\n unregister.push(options.host.registerCommand<Record<string, never>, unknown>({\n manifest: canonicalManifest(EDITOR_COMMAND_ID.HIERARCHY_SCOPE_GET),\n handler: (_input, context) => ({ ok: true, output: {\n scopeKey: 'scene',\n scopeType: 'scene',\n revision: context.session.getState({ cloneDocuments: false }).documentRevision,\n title: 'Scene',\n readonly: false,\n nodes: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).map(item => ({\n id: item.id,\n label: item.label,\n parentId: item.parentId ?? null,\n selectable: true,\n canHaveChildren: true,\n renamable: true,\n deletable: true,\n draggable: true,\n })),\n selectedIds: context.session.getSelection().selectedIds,\n activeId: context.session.getSelection().activeId,\n capabilities: {},\n totalCount: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).length,\n returnedCount: options.sceneAssembly.getHierarchyItems(context.session.getWorkingDocument()).length,\n } }),\n }));\n unregister.push(options.host.registerCommand<Record<string, never>, unknown>({\n manifest: canonicalManifest(EDITOR_COMMAND_ID.SCENE_OBJECTS_LIST),\n handler: (_input, context) => ({ ok: true, output: {\n objects: context.session.getWorkingDocument().scene.gameObjects.map(summarizeGameObject),\n } }),\n }));\n unregister.push(options.host.registerCommand<ResolveObjectInput, unknown>({\n manifest: canonicalManifest(\n EDITOR_COMMAND_ID.OBJECT_RESOLVE,\n { activeId: 'objectId' },\n ),\n handler: (input, context) => resolveObject(context.session.getWorkingDocument(), input),\n }));\n unregister.push(options.host.registerCommand<{ includeUnplaceable?: boolean; query?: string; kind?: string; limit?: number }, unknown>({\n manifest: canonicalManifest(EDITOR_COMMAND_ID.ASSET_LIBRARY_LIST),\n handler: async input => {\n const normalizedQuery = input.query?.trim().toLocaleLowerCase() ?? '';\n const assets = [...await options.listAssets()]\n .filter(asset => input.includeUnplaceable || asset.placeable !== false)\n .filter(asset => !input.kind || asset.kind === input.kind)\n .filter(asset => !normalizedQuery\n || (asset.displayName ?? asset.assetId).toLocaleLowerCase().includes(normalizedQuery))\n .slice(0, input.limit ?? 500)\n .map(summarizeAsset);\n return { ok: true, output: { assets, assetCount: assets.length } };\n },\n }));\n unregister.push(options.host.registerCommand<{ shape: 'cube' | 'sphere' | 'plane' | 'capsule'; parentId?: string; name?: string }, unknown>({\n manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_CREATE_PRIMITIVE),\n handler: (input, context) => applyPatchResult(context, options.sceneAssembly.createCreatePrimitivePatch(\n context.session.getWorkingDocument(), input,\n ), result => ({\n createdId: result.createdId!,\n object: summarizeGameObject(context.session.getWorkingDocument().scene.gameObjects.find(\n object => object.id === result.createdId,\n )!),\n selection: context.session.getSelection(),\n })),\n }));\n unregister.push(options.host.registerCommand<{ objectId?: string; objectIds?: string[] }, unknown>({\n manifest: canonicalManifest(\n EDITOR_COMMAND_ID.OBJECT_DELETE,\n { selectedIds: 'objectIds' },\n ),\n handler: (input, context) => applyPatchResult(context, options.sceneAssembly.createDeleteSubtreePatch(\n context.session.getWorkingDocument(), { ids: input.objectIds ?? (input.objectId ? [input.objectId] : []) },\n ), result => ({\n deletedIds: result.deletedIds ?? result.changedIds ?? [],\n fallbackSelectionId: context.session.getSelection().activeId,\n selection: context.session.getSelection(),\n })),\n }));\n unregister.push(options.host.registerCommand<TransformMoveInput, unknown>({\n manifest: canonicalManifest(\n EDITOR_COMMAND_ID.TRANSFORM_MOVE,\n { activeId: 'objectId' },\n ),\n handler: (input, context) => {\n const before = readObjectTransform(context.session.getWorkingDocument(), input.objectId);\n if (!before) return failure('object.notFound', `Scene object was not found: ${input.objectId}`);\n const position = input.position ?? (input.offset ? {\n x: before.position.x + input.offset.x,\n y: before.position.y + input.offset.y,\n z: before.position.z + input.offset.z,\n } : null);\n if (!position) return failure('transform.invalidInput', 'Transform move requires position or offset.');\n const document = options.sceneAssembly.patchGameObjectField(\n context.session.getWorkingDocument(),\n input.objectId,\n 'transform.position',\n position,\n );\n const after = readObjectTransform(document, input.objectId);\n if (!after || JSON.stringify(after) === JSON.stringify(before)) {\n return failure('transform.unchanged', `Transform did not change: ${input.objectId}`);\n }\n context.dispatch({ type: 'document.replace', document, label: `Move ${input.objectId}` });\n return { ok: true, output: {\n objectId: input.objectId,\n before,\n after,\n selection: context.session.getSelection(),\n } };\n },\n }));\n unregister.push(options.host.registerCommand<TransformSetInput, unknown>({\n manifest: canonicalManifest(\n EDITOR_COMMAND_ID.TRANSFORM_SET,\n { activeId: 'objectId' },\n ),\n handler: (input, context) => {\n let document = context.session.getWorkingDocument();\n const before = readObjectTransform(document, input.objectId);\n if (!before) return failure('object.notFound', `Scene object was not found: ${input.objectId}`);\n for (const field of ['position', 'rotation', 'scale'] as const) {\n if (input[field]) {\n document = options.sceneAssembly.patchGameObjectField(\n document,\n input.objectId,\n `transform.${field}`,\n input[field],\n );\n }\n }\n const after = readObjectTransform(document, input.objectId);\n if (!after || JSON.stringify(after) === JSON.stringify(before)) {\n return failure('transform.unchanged', `Transform did not change: ${input.objectId}`);\n }\n context.dispatch({ type: 'document.replace', document, label: `Set transform on ${input.objectId}` });\n return { ok: true, output: {\n objectId: input.objectId,\n before,\n after,\n selection: context.session.getSelection(),\n } };\n },\n }));\n unregister.push(options.host.registerCommand<CreateFromAssetInput, unknown>({\n manifest: canonicalManifest(EDITOR_COMMAND_ID.OBJECT_CREATE_FROM_ASSET),\n handler: async (input, context) => {\n const asset = [...await options.listAssets()].find(candidate => candidate.assetId === input.assetId);\n if (!asset) return failure('asset.notFound', `Asset was not found: ${input.assetId}`);\n const result = options.sceneAssembly.addAssetLibraryItemToDocument(\n context.session.getWorkingDocument(), asset, toTransform(input),\n );\n context.dispatch({ type: 'document.replace', document: result.document, label: `Create ${result.gameObject.name ?? result.gameObject.id}` });\n return { ok: true, output: {\n assetId: input.assetId,\n createdId: result.gameObject.id,\n object: summarizeGameObject(result.gameObject),\n selection: context.session.getSelection(),\n focused: false,\n status: `Created ${result.gameObject.name ?? result.gameObject.id}`,\n } };\n },\n }));\n } catch (error) {\n for (const dispose of unregister.splice(0).reverse()) dispose();\n throw error;\n }\n return () => { for (const dispose of unregister.splice(0).reverse()) dispose(); };\n}\n\ninterface Vector3 { x: number; y: number; z: number }\ninterface TransformMoveInput { objectId: string; position?: Vector3; offset?: Vector3 }\ninterface TransformSetInput { objectId: string; position?: Vector3; rotation?: Vector3; scale?: Vector3 }\ninterface CreateFromAssetInput { assetId: string; name?: string; position?: Vector3; rotation?: Vector3; scale?: Vector3 }\ninterface ResolveObjectInput {\n objectId?: string;\n name?: string;\n path?: string;\n type?: string;\n query?: string;\n}\n\nfunction toTransform(input: CreateFromAssetInput) {\n if (!input.position && !input.rotation && !input.scale) return undefined;\n return {\n position: input.position ?? { x: 0, y: 0, z: 0 },\n rotation: input.rotation ?? { x: 0, y: 0, z: 0 },\n scale: input.scale ?? { x: 1, y: 1, z: 1 },\n };\n}\n\ntype StandardAuthoringPatchResult<TPatch> = {\n patch: TPatch;\n label: string;\n changedIds?: string[];\n deletedIds?: string[];\n reprojectIds?: string[];\n createdId?: string;\n selectId?: string | null;\n};\n\nfunction applyPatchResult<TPatch>(\n context: { dispatch(command: any): unknown },\n result: StandardAuthoringPatchResult<TPatch> | null,\n output?: (result: StandardAuthoringPatchResult<TPatch>) => unknown,\n) {\n if (!result) return failure('command.unavailable', 'The requested scene mutation is unavailable.');\n context.dispatch({\n type: 'document.patch', patch: result.patch, label: result.label,\n ...(result.reprojectIds?.length ? { projectionImpact: { type: 'incremental', reprojectIds: result.reprojectIds } } : {}),\n });\n return { ok: true as const, output: output ? output(result) : {\n changedIds: result.changedIds ?? result.deletedIds ?? [],\n ...(result.createdId ? { createdId: result.createdId } : {}),\n ...(result.selectId ? { selectId: result.selectId } : {}),\n } };\n}\n\nfunction resolveObject<TDocument extends EditorSceneDocument>(document: TDocument, input: ResolveObjectInput) {\n const query = input.objectId ?? input.name ?? input.path ?? input.query ?? '';\n const normalized = query.trim().toLocaleLowerCase();\n const exactId = document.scene.gameObjects.find(object => object.id === query);\n const matches = exactId ? [exactId] : document.scene.gameObjects.filter(object => (\n object.name?.trim().toLocaleLowerCase() === normalized\n || object.id.toLocaleLowerCase().includes(normalized)\n ));\n return { ok: true as const, output: {\n objects: matches.map(summarizeGameObject),\n resolvedObject: matches.length === 1 ? summarizeGameObject(matches[0]!) : null,\n ambiguous: matches.length > 1,\n } };\n}\n\nfunction summarizeGameObject(object: EditorSceneGameObject) {\n return {\n id: object.id,\n label: object.name ?? object.id,\n name: object.name ?? object.id,\n parentId: object.parentId ?? null,\n };\n}\n\nfunction summarizeAsset(asset: EditorSceneAssetLibraryItem) {\n return {\n assetId: asset.assetId,\n ...(asset.guid ? { guid: asset.guid } : {}),\n displayName: asset.displayName ?? asset.assetId,\n kind: asset.kind,\n type: asset.type,\n ...(asset.category ? { category: asset.category } : {}),\n placeable: asset.placeable !== false,\n };\n}\n\nfunction canonicalManifest(\n id: keyof typeof EDITOR_COMMAND_SCHEMAS,\n selectionBinding?: NonNullable<EditorCommandManifest['presentation']>['selectionBinding'],\n): EditorCommandManifest {\n const metadata = EDITOR_COMMAND_BUILT_IN_METADATA[id];\n const schema = EDITOR_COMMAND_SCHEMAS[id];\n const presentation = EDITOR_COMMAND_BUILT_IN_PRESENTATION[id];\n if (!metadata) throw new Error(`Built-in Editor command metadata is missing: ${id}`);\n return {\n schemaVersion: EDITOR_COMMAND_SCHEMA_VERSION,\n id,\n version: 1,\n title: metadata.title,\n target: metadata.target,\n access: metadata.access,\n stability: metadata.stability,\n inputSchema: schema.inputSchema,\n outputSchema: schema.outputSchema,\n effects: {\n persistence: metadata.access === 'write' ? 'authoring' : 'none',\n undoable: metadata.access === 'write',\n idempotent: metadata.access === 'read',\n },\n presentation: {\n category: metadata.category,\n inputMode: hasCommandInputFields(schema.inputSchema) ? 'schema-form' : 'none',\n ...(presentation?.aliases ? { aliases: presentation.aliases } : {}),\n ...(presentation?.keywords ? { keywords: presentation.keywords } : {}),\n ...(presentation?.examples ? { examples: presentation.examples } : {}),\n ...(presentation?.shortcut ? { shortcut: presentation.shortcut } : {}),\n ...(presentation?.menu ? { menu: presentation.menu } : {}),\n ...(selectionBinding ? { selectionBinding } : {}),\n },\n };\n}\n\nfunction readObjectTransform<TDocument extends EditorSceneDocument>(\n document: TDocument,\n objectId: string,\n): { position: Vector3; rotation: Vector3; scale: Vector3 } | null {\n const object = document.scene.gameObjects.find(candidate => candidate.id === objectId);\n const transform = (object?.components.find(component => component.type === 'Transform')\n ?? (object as unknown as { transform?: unknown } | undefined)?.transform) as\n | { type: 'Transform'; mode?: 'trs'; position: Vector3; rotation: Vector3; scale?: Vector3 }\n | { position: Vector3; rotation: Vector3; scale?: Vector3 }\n | undefined;\n if (!transform || ('mode' in transform && transform.mode === ('matrix' as never))) return null;\n return {\n position: { ...transform.position },\n rotation: { ...transform.rotation },\n scale: { ...(transform.scale ?? { x: 1, y: 1, z: 1 }) },\n };\n}\n\nfunction hasCommandInputFields(schema: EditorCommandJsonObject): boolean {\n const properties = schema.properties;\n return !!properties && typeof properties === 'object' && !Array.isArray(properties)\n && Object.keys(properties).length > 0;\n}\n\nfunction failure(code: string, message: string) {\n const diagnostic: EditorCommandDiagnostic = { severity: 'error', source: 'command', code, message };\n return { ok: false as const, diagnostics: [diagnostic] };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"standard-scene-assembly.d.ts","sourceRoot":"","sources":["../../src/product/standard-scene-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EAEzB,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAIhC,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,uCAAuC,EA+BxC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAIL,uCAAuC,EACvC,oCAAoC,EAQpC,KAAK,sCAAsC,EAE5C,MAAM,uBAAuB,CAAC;AA0B/B,OAAO,EAiBL,KAAK,mCAAmC,E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E,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACtF,EACD,OAAO,EAAE,yCAAyC,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,GAAG,kCAAkC,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAuMpM"}
1
+ {"version":3,"file":"standard-scene-assembly.d.ts","sourceRoot":"","sources":["../../src/product/standard-scene-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EAEzB,4BAA4B,EAC5B,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAIhC,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,uCAAuC,EA6BxC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAIL,uCAAuC,EACvC,oCAAoC,EAOpC,KAAK,sCAAsC,EAE5C,MAAM,uBAAuB,CAAC;AA2B/B,OAAO,EAiBL,KAAK,mCAAmC,EACzC,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAIL,KAAK,+CAA+C,EAErD,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,KAAK,wCAAwC,EAG9C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,sCAAsC,EACtC,8BAA8B,EAY/B,MAAM,4BAA4B,CAAC;AAUpC,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAA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, assertEditorSceneMaterialAssetIntegrity, collectEditorSceneMaterialAssetBindingIds, createArtistMaterialInspectorSections, createEditorSceneAssetMeshInspectorSections, createEditorSceneMaterialBrowserAssetItems, deleteDefaultEditorSceneMaterialAsset, ensureDefaultEditorSceneMaterialAssets, ensureImportedEditorSceneMaterialDefaults, findEditorSceneMaterialAsset, formatEditorSceneMaterialSlotLabel, getArtistMaterialInspectorText, hasEditorSceneMaterialAsset, isEditorSceneArtistMaterialPatchPath, isEditorSceneMaterialBindingPath, normalizeEditorSceneMaterialAssetValue, parseEditorSceneDuplicateMaterialAssetValue, parseEditorSceneMaterialAssetFieldPath, readArtistMaterialInspectorLanguage, reconcileEditorSceneMaterialSlotReimportBindings, validateEditorSceneMaterialAssetFieldValue, collectEditorSceneChildMaterialSlots, createEditorSceneAssetMeshSelectionId, createTexturePickerControlOptions, findEditorSceneInspectorTextureAssetFromContext, getEditorSceneSlotSelectionKey, resolveEditorSceneAssetMeshSelectionTarget, isEditorSceneAssetMeshWritablePath, patchEditorSceneMaterialAssetField, } from '../material-binding/index.js';
3
- import { addEditorScenePrefabAsset, addEditorSceneMaterialAssetAndBindPrefabOverride, createEditorScenePrefabBrowserAssetItems, resolveEditorScenePrefabInstanceMarkers, resolveEditorScenePrefabStageMarkers, createEditorScenePrefabStageInspectorObject, createPrefabInstanceInspectorSection, normalizeEditorScenePrefabAssetFieldValue, normalizeEditorScenePrimitiveShape, patchEditorScenePrefabAssetField, replaceEditorScenePrefabAsset, validateEditorScenePrefabAssetFieldValue, } from '../prefab-stage/index.js';
2
+ import { addEditorSceneMaterialAsset, addEditorSceneMaterialAssetAndBind, assertEditorSceneMaterialAssetIntegrity, collectEditorSceneMaterialAssetBindingIds, createEditorSceneMaterialBrowserAssetItems, deleteDefaultEditorSceneMaterialAsset, ensureDefaultEditorSceneMaterialAssets, ensureImportedEditorSceneMaterialDefaults, findEditorSceneMaterialAsset, formatEditorSceneMaterialSlotLabel, getArtistMaterialInspectorText, hasEditorSceneMaterialAsset, isEditorSceneArtistMaterialPatchPath, isEditorSceneMaterialBindingPath, normalizeEditorSceneMaterialAssetValue, parseEditorSceneDuplicateMaterialAssetValue, parseEditorSceneMaterialAssetFieldPath, readArtistMaterialInspectorLanguage, reconcileEditorSceneMaterialSlotReimportBindings, validateEditorSceneMaterialAssetFieldValue, collectEditorSceneChildMaterialSlots, createEditorSceneAssetMeshSelectionId, createTexturePickerControlOptions, findEditorSceneInspectorTextureAssetFromContext, getEditorSceneSlotSelectionKey, resolveEditorSceneAssetMeshSelectionTarget, isEditorSceneAssetMeshWritablePath, patchEditorSceneMaterialAssetField, } from '../material-binding/index.js';
3
+ import sceneMaterialInspectorInternals from '../material-binding/scene-inspector.js';
4
+ import { addEditorScenePrefabAsset, addEditorSceneMaterialAssetAndBindPrefabOverride, createEditorScenePrefabBrowserAssetItems, resolveEditorScenePrefabInstanceMarkers, resolveEditorScenePrefabStageMarkers, createPrefabInstanceInspectorSection, normalizeEditorScenePrefabAssetFieldValue, normalizeEditorScenePrimitiveShape, patchEditorScenePrefabAssetField, replaceEditorScenePrefabAsset, validateEditorScenePrefabAssetFieldValue, } from '../prefab-stage/index.js';
5
+ import prefabStageInspectorInternals from '../prefab-stage/stage-inspector.js';
4
6
  import { createPlayableEditorSceneMarkerGraphFacade, isEditorSceneMarkerGameObject, } from '../marker-scene/index.js';
5
7
  import { createPlayableEditorSceneHierarchyFacade, createPlayableEditorSceneFieldMutationOptions, createPlayableEditorSceneObjectCommandFacade, collectEditorSceneSubtreeIdList, createEditorSceneGameObjectGuid, createUniqueEditorSceneGameObjectId, ensureEditorSceneGameObjectGuids, findEditorSceneGameObject, isEditorSceneCameraGameObject as isCameraGameObject, isEditorSceneLightGameObject as isLightGameObject, isEditorSceneProtectedSystemGameObject as isProtectedSystemGameObject, isEditorSceneProtectedSystemGameObjectId as isProtectedSystemGameObjectId, isEditorSceneRootTransformPath, isEditorSceneSelectableHierarchyId, normalizeEditorSceneRootTransformDocument, resolveEditorSceneRootContainerId, toEditorSceneLocalTransformForParent, } from '../session/index.js';
6
8
  import { createEditorSceneDocumentInspectorProperty, createEditorSceneDocumentInspectorSections, createPlayableEditorSceneInspectorMultiObject, createPlayableEditorSceneInspectorObject, createPlayableEditorSceneInspectorSections, createPlayableEditorSceneMarkerInspectorSection, createPlayableEditorSceneOutlineInspectorSection, createEditorSceneCameraInspectorSection, createEditorSceneLightInspectorSections, createEditorScenePlayableFieldInspectorExtraValidator, createEditorSceneRuntimeInspectorSectionsForDocument, createEditorSceneRuntimeInspectorSnapshot, normalizeEditorScenePlayableInspectorValue, validateEditorSceneFieldInspectorValue, } from '../inspector/index.js';
@@ -177,7 +179,7 @@ export function createFpsGameEditorStandardSceneAssembly(options) {
177
179
  addAssetLibraryItemToDocument: sessionFacade.addAssetLibraryItemToDocument,
178
180
  getInspectorObject: (document, targetId, context = {}) => createStandardInspectorObject(assembly, options, markerFacade, document, targetId, context, createDocumentInspectorProperty, findGameObject, extraValidators, feature),
179
181
  getInspectorMultiObject: (document, targetIds, activeId, context = {}) => createStandardMultiInspectorObject(document, targetIds, activeId, context, featureContributions),
180
- getPrefabStageInspectorObject: (document, descriptor, selectedItemId, context = {}) => createEditorScenePrefabStageInspectorObject(document, descriptor, selectedItemId, context, {
182
+ getPrefabStageInspectorObject: (document, descriptor, selectedItemId, context = {}) => prefabStageInspectorInternals.createEditorScenePrefabStageInspectorObjectWithCachedMaterialUsage(document, descriptor, selectedItemId, context, {
181
183
  createIdentityTransformComponent: createEditorSceneIdentityTransformComponent,
182
184
  mergeLightDefaults: mergeEditorSceneLightDefaults,
183
185
  defaultShadowMode: toPrefabShadowMode(options.getRenderingProfile().shadows.defaultMode),
@@ -339,7 +341,7 @@ function createStandardInspectorObject(assembly, options, markerFacade, document
339
341
  targetId,
340
342
  context,
341
343
  resolveAssetMeshSelectionTarget: resolveEditorSceneAssetMeshSelectionTarget,
342
- createAssetMeshInspectorSections: (targetDocument, target, targetContext) => createEditorSceneAssetMeshInspectorSections(targetDocument, target, targetContext),
344
+ createAssetMeshInspectorSections: (targetDocument, target, targetContext) => sceneMaterialInspectorInternals.createEditorSceneAssetMeshInspectorSectionsWithCachedUsage(targetDocument, target, targetContext),
343
345
  findGameObject,
344
346
  readNodeKind,
345
347
  isMarkerGameObject: isEditorSceneMarkerGameObject,
@@ -394,7 +396,7 @@ function createStandardInspectorObject(assembly, options, markerFacade, document
394
396
  createDocumentInspectorProperty,
395
397
  }) : null,
396
398
  createPrefabInstanceSection: () => createPrefabInstanceInspectorSection(targetDocument, gameObject),
397
- createMaterialSections: () => createArtistMaterialInspectorSections(targetDocument, gameObject, nodeKind, targetContext, {
399
+ createMaterialSections: () => sceneMaterialInspectorInternals.createArtistMaterialInspectorSectionsWithCachedUsage(targetDocument, gameObject, nodeKind, targetContext, {
398
400
  createDocumentInspectorProperty,
399
401
  }),
400
402
  createOutlineSection: () => createPlayableEditorSceneOutlineInspectorSection({