@volter/game-editor 0.5.93 → 0.5.94

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 (296) hide show
  1. package/BUNDLED_NOTICES +22 -22
  2. package/catalog/entries/blender.json +2 -2
  3. package/catalog/entries/music.json +2 -2
  4. package/dist/.vite/manifest.json +2141 -2141
  5. package/dist/assets/{AssetBudgetPanel-CqH8eFqI.js → AssetBudgetPanel-C7VX6s0W.js} +3 -3
  6. package/dist/assets/{AudioViewer-D9cLnL2x.js → AudioViewer-_Xe78gWH.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-VJp9kXIl.js → CanvasBoardDocument-CH510S-1.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-DdIbRDvz.js → CanvasSceneViewport-BAV76QHT.js} +1 -1
  9. package/dist/assets/{ColorInput-BTlGF3dp.js → ColorInput-Q9EOPIUz.js} +1 -1
  10. package/dist/assets/{ColorPicker-DetzTdVS.js → ColorPicker-5LeDk-Q3.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-KBE9cE0B.js → EntityModelDocument-unR8Gz-F.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-CGphHTa4.js → EnvironmentAssetDocument-DpksBo1R.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-3O5-N0Mq.js → GameplaySessionTimeline-5eWmeryn.js} +1 -1
  14. package/dist/assets/{ImageViewer-CPaNjp2K.js → ImageViewer-DO0Ekvix.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-BDdu8_eg.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-DpuY20Xh.js → JsonAssetDocument-o9GmAsdM.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-DCUT8W_y.js → LiveModuleDocument-BWD3BRD5.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-88jyvqQL.js → LutAssetDocument-DyGMbNUY.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-C6aKVWOk.js → ModelAssetDocument-Cu3iz17t.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-B68s1sia.js → NonThreeAuthoringBootstrap-BSKmUNm7.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-D75tk2dW.js → Object3DDocumentToolbar-DQgrgZm-.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-BO8cQpfz.js +2 -0
  23. package/dist/assets/{Object3DPreview-lFm8pGJR.js → Object3DPreview-BiV2L22J.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-D-VEQl7S.js → OnlineAssetDetail-dzJ7zVGn.js} +1 -1
  25. package/dist/assets/{PlayBar-mfBxszI6.js → PlayBar-BNX3VDap.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-DsDNaZXY.js → QuarksAssetDocument-CNGkA04J.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-BO6VQ4VE.js → ReactCanvasControls-B8jYd9hF.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-BDhYO7vB.js → RootSelectionOverlay-bRZESSuF.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-C-JfqCOP.js → ShaderAssetDocument-Dz8nUQTd.js} +1 -1
  30. package/dist/assets/{ShadowEditor-BDCAcPPT.js → ShadowEditor-Cd42Vn5p.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-BMUvxLky.js → SourceAssetViewer-Dn123u21.js} +1 -1
  32. package/dist/assets/StageHost-Dl828r-D.js +2 -0
  33. package/dist/assets/{StoryPreviewMount-zuCAkhXk.js → StoryPreviewMount----1n4I9.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-Cb5ShRia.js → ThreeBoardDocument-Ddi3tJKU.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent-DEXiCMdL.js → ThreeIsolationSceneContent-DhRNK_Pk.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-DlXTrXSy.js → ToolObject3DPreview-BJ36CuMz.js} +1 -1
  37. package/dist/assets/{Toolbar-BcVhV4HO.js → Toolbar-ojOR9QqG.js} +1 -1
  38. package/dist/assets/{TransientHint-8hS698wl.js → TransientHint-zolL-usI.js} +1 -1
  39. package/dist/assets/{VideoViewer-C3zbvP1D.js → VideoViewer-D9cRMSvt.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-_NT1t1ki.js → ViewportShadingMenu-DFceZcoK.js} +1 -1
  41. package/dist/assets/{active-ingest-DmggGh3n.js → active-ingest-r1yywcPp.js} +2 -2
  42. package/dist/assets/{animation-clock-BeIuDISw.js → animation-clock-DxKi6_pi.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-ClnMefdL.js → animation-mixers.service-Cu6qOto6.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-wI1WPvyu.js → animation-timeline.utility-DRXtaPD-.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-Dl9OG8Fh.js → asset-budget-asset.menu-BY1GoDri.js} +1 -1
  46. package/dist/assets/{asset-budget.action-2KDAHN2u.js → asset-budget.action-B5KdCHk9.js} +1 -1
  47. package/dist/assets/{asset-budget.document-DoaC9QhG.js → asset-budget.document-DsMc1xZM.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-CEg_tRrU.js → asset-budget.menu-CcWUarRf.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-B97D2j9V.js → asset-editor-persistence-CC5GKsod.js} +1 -1
  50. package/dist/assets/{asset-loaders-DZpoMJMz.js → asset-loaders-B9eaxiOH.js} +1 -1
  51. package/dist/assets/{asset-preview-DV3GTIQp.js → asset-preview-D2owLI9l.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-DsLP5SwR.js → audio-unlock.service-BPU4OvYv.js} +1 -1
  53. package/dist/assets/{audio.utility-BxXUdxvc.js → audio.utility-CwJJPeQi.js} +1 -1
  54. package/dist/assets/autoplay.service-DXFk79y0.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-DOzhuS5E.js → babylon-authoring-adapter-CNsa_ojR.js} +1 -1
  56. package/dist/assets/{binding-resolver-BlBh8LwO.js → binding-resolver-DsCNzFA4.js} +2 -2
  57. package/dist/assets/{blender-node-editor.document-DvHMzTBg.js → blender-node-editor.document-dQgrelsI.js} +1 -1
  58. package/dist/assets/{blender-properties-tab-DRUdVFzY.js → blender-properties-tab-DrNsXzb1.js} +1 -1
  59. package/dist/assets/{blender-runtime-host-BByeSIlt.js → blender-runtime-host-Dmxej5C1.js} +1 -1
  60. package/dist/assets/{blender-runtime-skin-BgzfURUq.js → blender-runtime-skin-bwX7Nqhl.js} +1 -1
  61. package/dist/assets/{blender-runtime.document-D87p65XR.js → blender-runtime.document-C0zbN8eD.js} +1 -1
  62. package/dist/assets/{blender-screenshot.menu-DoZuxwnq.js → blender-screenshot.menu-ENgOvjqb.js} +1 -1
  63. package/dist/assets/{blender-timeline.document-WR5C1UGa.js → blender-timeline.document-BYGOuiA3.js} +1 -1
  64. package/dist/assets/{blender-uv-editor.document-fTHqxbQ0.js → blender-uv-editor.document-CHRiH3Xj.js} +1 -1
  65. package/dist/assets/{blender-version.status-C2QHqECl.js → blender-version.status-Cqoz2Xt3.js} +1 -1
  66. package/dist/assets/{blender.command-DGS-5fDC.js → blender.command-DKEefbj1.js} +1 -1
  67. package/dist/assets/{board-guides-b_JfsCO5.js → board-guides-FTLvkEFa.js} +1 -1
  68. package/dist/assets/{bridge.command-C8-Yd-JC.js → bridge.command-4jXTXHwg.js} +3 -3
  69. package/dist/assets/{browserAll-DM6xi90e.js → browserAll-DpiwdkXK.js} +1 -1
  70. package/dist/assets/{build-player.document-BW6tw_fH.js → build-player.document-Dl55zATx.js} +1 -1
  71. package/dist/assets/{build-profiles.document-DSMeMXxo.js → build-profiles.document-CGlu3XIb.js} +1 -1
  72. package/dist/assets/{build-progress.status-BeOlYvcH.js → build-progress.status-DyQBUPVM.js} +1 -1
  73. package/dist/assets/{build-session-jrsTLfm0.js → build-session-BfYk0ds_.js} +1 -1
  74. package/dist/assets/{build.action-TyqPgrOs.js → build.action-DyMCzYi6.js} +1 -1
  75. package/dist/assets/{build.command-CSbsgzp4.js → build.command-D0C90Slq.js} +1 -1
  76. package/dist/assets/{build.header-aN-vUtOe.js → build.header-CiilZdKw.js} +1 -1
  77. package/dist/assets/{build.menu-CeIF200u.js → build.menu-D1SH5hRL.js} +1 -1
  78. package/dist/assets/{build.service-CpvAEm48.js → build.service-BQmzlulw.js} +1 -1
  79. package/dist/assets/{camera-DQk7Jyi0.js → camera-CU0xLAwk.js} +1 -1
  80. package/dist/assets/{camera-runtime.inspector-ByloA_vO.js → camera-runtime.inspector-C4XW_KZ_.js} +1 -1
  81. package/dist/assets/{canvas-design-mount-DVWp3O_D.js → canvas-design-mount-ChRgv27V.js} +3 -3
  82. package/dist/assets/{canvas-entry-runtime-Ce7wP4vm.js → canvas-entry-runtime-H30RJRyu.js} +2 -2
  83. package/dist/assets/{canvas-preview-frames-CHeT2IAu.js → canvas-preview-frames-ChYPliVq.js} +1 -1
  84. package/dist/assets/{canvas-story-capture.service-C8vmQA9c.js → canvas-story-capture.service-DJ9dl1Mu.js} +2 -2
  85. package/dist/assets/{capability-coverage-O6aDzS_g.js → capability-coverage-DOavbLew.js} +1 -1
  86. package/dist/assets/{collaboration-presence-crxzmNq2.js → collaboration-presence-t7o0vi1M.js} +1 -1
  87. package/dist/assets/{collider-c4USWOsu.js → collider-DKLkJ7lA.js} +1 -1
  88. package/dist/assets/{component-board.service-BC-X4fpN.js → component-board.service-BW_MtjdI.js} +2 -2
  89. package/dist/assets/{component-board.service-CXaTAE3i.js → component-board.service-CWHaVL52.js} +2 -2
  90. package/dist/assets/{component-board.service-B9lXv1G_.js → component-board.service-D-uZS9b7.js} +2 -2
  91. package/dist/assets/{component-contracts.service-B7TyW4yG.js → component-contracts.service-DZQOWyYF.js} +1 -1
  92. package/dist/assets/{component-instance-root-C1Xyh79V.js → component-instance-root-DWnAyiCF.js} +1 -1
  93. package/dist/assets/{component-verbs.command-_1qrRMBb.js → component-verbs.command-DblE8n1e.js} +1 -1
  94. package/dist/assets/{component-verbs.service-DiGB6WpZ.js → component-verbs.service-DKMldHLz.js} +1 -1
  95. package/dist/assets/{config-b-yIYDNm.js → config-Da_2x7yp.js} +2 -2
  96. package/dist/assets/{configurations-Nuyn3MCc.js → configurations-Ba95Wh7h.js} +1 -1
  97. package/dist/assets/{connection.status-DsqpfunN.js → connection.status-BB95dUSR.js} +1 -1
  98. package/dist/assets/{constraints.inspector-D97NPk_2.js → constraints.inspector-CRXTzNEc.js} +1 -1
  99. package/dist/assets/{content-bounds-DetzUl3q.js → content-bounds-B_qOatak.js} +1 -1
  100. package/dist/assets/{contract-system-adapters-BOybM-Sv.js → contract-system-adapters-CgveZ5w6.js} +1 -1
  101. package/dist/assets/{coverage.service-C8DuZbAJ.js → coverage.service-Dr2w-xbV.js} +1 -1
  102. package/dist/assets/{create-runtime-C232YTVD.js → create-runtime-toc2PJNG.js} +1 -1
  103. package/dist/assets/{curve-DVwdpVlr.js → curve-BrQUXx3G.js} +1 -1
  104. package/dist/assets/{data-asset-DWShrZTd.js → data-asset-BOM8bxL-.js} +1 -1
  105. package/dist/assets/{data-ref-mlP7PknV.js → data-ref-CFdLBdys.js} +1 -1
  106. package/dist/assets/{debug-bridge-BgNHixNJ.js → debug-bridge-B69WpvC9.js} +1 -1
  107. package/dist/assets/{debug-registry-CS3ZmHpb.js → debug-registry-VvstjDrx.js} +1 -1
  108. package/dist/assets/{deferred-ingest-play-Br7lD74w.js → deferred-ingest-play-vdDuU6B0.js} +2 -2
  109. package/dist/assets/{design-time-canvas-mount-BxG0btu3.js → design-time-canvas-mount-BaEYQxSc.js} +2 -2
  110. package/dist/assets/{design-time-layers-C2fW3RP2.js → design-time-layers-DCgfvrVA.js} +1 -1
  111. package/dist/assets/{design-time-mount.service-CZpbFfg4.js → design-time-mount.service-B5BWrJCQ.js} +2 -2
  112. package/dist/assets/{design-time-mount.service-RwUW68DY.js → design-time-mount.service-DoQN0mkf.js} +2 -2
  113. package/dist/assets/{design-time-react-mount-DsV5z0NJ.js → design-time-react-mount-D4wSv6Dz.js} +1 -1
  114. package/dist/assets/{document-preview-three-Cw1dnqQJ.js → document-preview-three-Bzow1uvw.js} +1 -1
  115. package/dist/assets/{dom-authoring-adapter-CCGflNez.js → dom-authoring-adapter-B72PZJtq.js} +1 -1
  116. package/dist/assets/{draco3d-MAZHlZsV.js → draco3d-C-EhPO89.js} +1 -1
  117. package/dist/assets/{edit-mode-audio.service-ir8WvTus.js → edit-mode-audio.service-BI-Fc9nD.js} +1 -1
  118. package/dist/assets/{edit-mode-authoring-CFh9mf99.js → edit-mode-authoring-CRIZRixu.js} +1 -1
  119. package/dist/assets/{edit-mode-networking.service-KUb9s9m1.js → edit-mode-networking.service-Bad2bB3N.js} +1 -1
  120. package/dist/assets/{editor-api-Di5jF1jM.js → editor-api-CneTaB5M.js} +1 -1
  121. package/dist/assets/{editor-layers-JmP4C0fP.js → editor-layers-CAPby0Hv.js} +1 -1
  122. package/dist/assets/{editor-shell-store-BRBXaK6_.js → editor-shell-store-CQs9DVQJ.js} +1 -1
  123. package/dist/assets/{entity-object-FbYj5hy6.js → entity-object-zTQM9DN_.js} +1 -1
  124. package/dist/assets/{extend-B8RJQ5RF.js → extend-Bdq0io5w.js} +1 -1
  125. package/dist/assets/{fork-menu-Djl0ZpaE.js → fork-menu-yt5IHPcT.js} +1 -1
  126. package/dist/assets/{frame-debugger-store-CKHjhO2u.js → frame-debugger-store-DSAdYRfx.js} +1 -1
  127. package/dist/assets/{game-contract-seams-BfTLgo42.js → game-contract-seams-B_zl6uU9.js} +1 -1
  128. package/dist/assets/{game-css-scope-transform-Cj0iqoul.js → game-css-scope-transform-ZVhdpWnP.js} +1 -1
  129. package/dist/assets/{game-document.service-C240l1eg.js → game-document.service-BobnaxzD.js} +1 -1
  130. package/dist/assets/{game-eval.command-CE54gmgT.js → game-eval.command-4V0w1fNz.js} +1 -1
  131. package/dist/assets/{game-module-access-BvOoy6np.js → game-module-access-BQ3o3C0Q.js} +1 -1
  132. package/dist/assets/{game-network-C7J9j85F.js → game-network-BU6239o6.js} +3 -3
  133. package/dist/assets/{gameplay-export-BPVDdtiT.js → gameplay-export-C8950Le6.js} +1 -1
  134. package/dist/assets/{gameplay-replay-CMWloPvb.js → gameplay-replay-BJ1pJYXS.js} +1 -1
  135. package/dist/assets/{gameplay.command-BGYQD9oQ.js → gameplay.command-DgHGyZ4h.js} +1 -1
  136. package/dist/assets/{generation-jobs-BQRS91CG.js → generation-jobs-CcknS4pv.js} +1 -1
  137. package/dist/assets/{generation.service-DYDb6ud0.js → generation.service-BeDx1xJc.js} +1 -1
  138. package/dist/assets/{generations-J9oJcT7T.js → generations-PkqqpuzH.js} +1 -1
  139. package/dist/assets/{generations.status-7KG9Txty.js → generations.status-D1b31tOr.js} +1 -1
  140. package/dist/assets/{hierarchy-marks-DWnBwmhe.js → hierarchy-marks-GUZsksxj.js} +1 -1
  141. package/dist/assets/{hosted-asset-materialization-BRC2G7NT.js → hosted-asset-materialization-981czI5Y.js} +1 -1
  142. package/dist/assets/{index-EWucKHMo.js → index-14EpbzhC.js} +1 -1
  143. package/dist/assets/{index-BO3sy09K.js → index-4yacfVw5.js} +1 -1
  144. package/dist/assets/{index-BT8W9a7k.js → index-BFyEWcX2.js} +8 -8
  145. package/dist/assets/{index-DL2Takj5.js → index-Bd-fPqp1.js} +2 -2
  146. package/dist/assets/{index-BXMdqkmO.js → index-D0fspcqL.js} +1 -1
  147. package/dist/assets/{index-BvBIQ7OC.js → index-DSK8_SXt.js} +1 -1
  148. package/dist/assets/{index-BnDSegwv.js → index-DfMlDwlh.js} +1 -1
  149. package/dist/assets/{index--o2s6am1.js → index-rzDnGAEw.js} +1 -1
  150. package/dist/assets/{index-CIdT41XG.js → index-zAaww6ix.js} +1 -1
  151. package/dist/assets/{inference-diagnostics-C2jsr-K4.js → inference-diagnostics-C0WaA1x7.js} +1 -1
  152. package/dist/assets/{ingest-boot-viewport-DhLjnn8m.js → ingest-boot-viewport-DGmxHHrb.js} +1 -1
  153. package/dist/assets/{ingest-siblings-nIImQgug.js → ingest-siblings-Bk81x0z6.js} +1 -1
  154. package/dist/assets/{ingest-source-persistence-BSy_j1I6.js → ingest-source-persistence-Dk4bo3Sd.js} +1 -1
  155. package/dist/assets/{ingest.service-BRJsVkle.js → ingest.service-CrJ-KUL9.js} +1 -1
  156. package/dist/assets/{inspect-CewZ8N7e.js → inspect-BFReLad2.js} +1 -1
  157. package/dist/assets/instances.command-BcJ4mH4O.js +1 -0
  158. package/dist/assets/{json-history-resource-Kth9eAdl.js → json-history-resource-DOORsgaQ.js} +1 -1
  159. package/dist/assets/{layered-pick-Ba5bN3pV.js → layered-pick-DOpFeBlO.js} +1 -1
  160. package/dist/assets/{light-CELsbQVq.js → light-BIq_QpYD.js} +1 -1
  161. package/dist/assets/{live-project-verbs-puMj_ac5.js → live-project-verbs-CzP4gmX4.js} +1 -1
  162. package/dist/assets/{machine.document-PU1D7pGw.js → machine.document-DdfZLt3N.js} +1 -1
  163. package/dist/assets/{machines.finder-DC3vmPmt.js → machines.finder-CDnR1K1s.js} +1 -1
  164. package/dist/assets/{material-Dzm1eZh1.js → material-BjW_-YEJ.js} +1 -1
  165. package/dist/assets/{material-factory-BgBGneoy.js → material-factory-XpbBVUnr.js} +1 -1
  166. package/dist/assets/{mesh-BlgI7C6P.js → mesh-BfZresje.js} +1 -1
  167. package/dist/assets/{model-asset-sections.service-itY21Ju0.js → model-asset-sections.service-DFkR4R3M.js} +1 -1
  168. package/dist/assets/{model-inspection-CNvWXEly.js → model-inspection-56h14WYx.js} +1 -1
  169. package/dist/assets/{model-thumbnail-BOFnggyX.js → model-thumbnail-COjS8TOV.js} +1 -1
  170. package/dist/assets/{models.finder-t8DwGJSQ.js → models.finder-Bce_J9iL.js} +1 -1
  171. package/dist/assets/{module-mode-DlvLWvyZ.js → module-mode-CPf7Xm0H.js} +2 -2
  172. package/dist/assets/{mount-canvas-ingest-root-BQ7FEyTX.js → mount-canvas-ingest-root-C-pitVtq.js} +2 -2
  173. package/dist/assets/{mount-dom-ingest-root-DRIY0mwS.js → mount-dom-ingest-root-Cr_XDGgV.js} +2 -2
  174. package/dist/assets/{mount-ingest-root-BgFa-gMa.js → mount-ingest-root-Ctc5pwYE.js} +2 -2
  175. package/dist/assets/{mount-manifest-CNy0ulXi.js → mount-manifest-Nx7h8MNc.js} +1 -1
  176. package/dist/assets/{mount-three-ingest-root-02iAM15N.js → mount-three-ingest-root-w3obwrRP.js} +1 -1
  177. package/dist/assets/{mounted-authoring-B4MQTZte.js → mounted-authoring-CcGxkenJ.js} +1 -1
  178. package/dist/assets/{mounted-story-viewport-source-D1uicpwC.js → mounted-story-viewport-source-BXKDosoZ.js} +1 -1
  179. package/dist/assets/{native-debug-module-zuPnGFn7.js → native-debug-module-BydU22ga.js} +1 -1
  180. package/dist/assets/{navigation-DiBo4eih.js → navigation-CQmYDWUr.js} +1 -1
  181. package/dist/assets/{navmesh.menu-BfZu5XcC.js → navmesh.menu-Cxz_CrlL.js} +1 -1
  182. package/dist/assets/{navmesh.service-DqXGRph3.js → navmesh.service-BzY3qzVs.js} +1 -1
  183. package/dist/assets/network-observer.service-Dppy6Ilx.js +1 -0
  184. package/dist/assets/{network.utility-B9bsTu3h.js → network.utility-RsWh2HtM.js} +1 -1
  185. package/dist/assets/{object3d-document-session-registry-DOBWYBmc.js → object3d-document-session-registry-kGTrA1br.js} +2 -2
  186. package/dist/assets/{oid-transform-AhgVgFiI.js → oid-transform-Cbf9Vl9B.js} +1 -1
  187. package/dist/assets/{particles-CnyBA4U4.js → particles-CAO_ZwxM.js} +1 -1
  188. package/dist/assets/{pixi-authoring-adapter-HA__hq94.js → pixi-authoring-adapter-cUTjI2Fi.js} +1 -1
  189. package/dist/assets/{pixi-live-write-target-Bs9OTI_x.js → pixi-live-write-target-BQuGxmlr.js} +1 -1
  190. package/dist/assets/{play.command-SXE_KYU-.js → play.command-CMmjbQEZ.js} +2 -2
  191. package/dist/assets/{presentation-CrrrfvP9.js → presentation-BLEtEw4u.js} +1 -1
  192. package/dist/assets/{product-7prSWXZy.js → product-BZcLr5ye.js} +1 -1
  193. package/dist/assets/{profiler.action-Dd1_MPEk.js → profiler.action-DvT006fB.js} +1 -1
  194. package/dist/assets/{profiler.menu-CwZGsLvP.js → profiler.menu-DG6pWc8T.js} +1 -1
  195. package/dist/assets/{profiler.utility-CXhlEiq8.js → profiler.utility-BBaXJXzR.js} +1 -1
  196. package/dist/assets/{project-authoring-session-Dxi88QnW.js → project-authoring-session-6JT9luFO.js} +2 -2
  197. package/dist/assets/{properties-bone-constraints.inspector-DuDWHYs-.js → properties-bone-constraints.inspector-TBP_22BR.js} +1 -1
  198. package/dist/assets/{properties-bone.inspector-BCpk3uPl.js → properties-bone.inspector-D9YNgjTc.js} +1 -1
  199. package/dist/assets/{properties-collection.inspector-z8O9BBRd.js → properties-collection.inspector-DJ6u-fss.js} +1 -1
  200. package/dist/assets/{properties-constraints.inspector-4saiH8Ro.js → properties-constraints.inspector-BqaisUOb.js} +1 -1
  201. package/dist/assets/{properties-data.inspector-CVDOVZny.js → properties-data.inspector-CcmDY5E2.js} +1 -1
  202. package/dist/assets/{properties-material.inspector-DZtnbfCQ.js → properties-material.inspector-R46saHYE.js} +1 -1
  203. package/dist/assets/{properties-modifiers.inspector-PRa6MD_F.js → properties-modifiers.inspector-C68S-ChZ.js} +1 -1
  204. package/dist/assets/{properties-object.inspector-DFFp41qh.js → properties-object.inspector-DM_w8AOW.js} +1 -1
  205. package/dist/assets/{properties-output.inspector-CYJmwpKr.js → properties-output.inspector-fSc-juqN.js} +1 -1
  206. package/dist/assets/{properties-particles.inspector-BTB6ISve.js → properties-particles.inspector-CIT5hfhi.js} +1 -1
  207. package/dist/assets/{properties-physics.inspector-CwxYUTIE.js → properties-physics.inspector-SHk6WUvJ.js} +1 -1
  208. package/dist/assets/{properties-render.inspector-DUDAxNw2.js → properties-render.inspector-O0ldO7Zr.js} +1 -1
  209. package/dist/assets/{properties-scene.inspector-DNNmsuNN.js → properties-scene.inspector-Ci85gHWj.js} +1 -1
  210. package/dist/assets/{properties-texture.inspector-DD6bWfQ4.js → properties-texture.inspector-B-EH6rIW.js} +1 -1
  211. package/dist/assets/{properties-view-layer.inspector-CA235i54.js → properties-view-layer.inspector-BszoTOSA.js} +1 -1
  212. package/dist/assets/{properties-world.inspector-CdTyWS-3.js → properties-world.inspector-BoWdXUWA.js} +1 -1
  213. package/dist/assets/{r3f-design-session-mIAk6fZ_.js → r3f-design-session-Dul_kZo4.js} +2 -2
  214. package/dist/assets/{r3f-physics-binding-DivDhpIZ.js → r3f-physics-binding-Du5rtFoC.js} +1 -1
  215. package/dist/assets/{r3f-source-authoring-adapter-BU7HGqw5.js → r3f-source-authoring-adapter-Dn8nydrx.js} +1 -1
  216. package/dist/assets/{react-canvas-navigation-DqwQuzs1.js → react-canvas-navigation-BQa-T4MI.js} +1 -1
  217. package/dist/assets/{react-inspector.service-BO6zvtnm.js → react-inspector.service-m3uD-_5_.js} +1 -1
  218. package/dist/assets/{react-story-board-BIV6SjrH.js → react-story-board-CIHXdpjI.js} +1 -1
  219. package/dist/assets/{react-three-rapier.esm-cTqJ0Ab9.js → react-three-rapier.esm-BhDIIKZ0.js} +1 -1
  220. package/dist/assets/{react-world-authoring-adapter-C1Pf_Ti4.js → react-world-authoring-adapter-CU99D7zP.js} +1 -1
  221. package/dist/assets/{realm-services-CLLV-0p7.js → realm-services-CILJ6zey.js} +1 -1
  222. package/dist/assets/{reflection-probe-capture.inspector-B_A9WjRQ.js → reflection-probe-capture.inspector-AUEWKlrj.js} +1 -1
  223. package/dist/assets/{registry-hs8ynXgD.js → registry-BWcuPj29.js} +1 -1
  224. package/dist/assets/{relative-import-specifier-D8ICYdXp.js → relative-import-specifier-P8rMB-CK.js} +1 -1
  225. package/dist/assets/{render-env-CCwOJnKi.js → render-env-BB06tIsF.js} +1 -1
  226. package/dist/assets/{render-features-PxgXd53t.js → render-features-uEFcjQU0.js} +1 -1
  227. package/dist/assets/{render-settings-DoSjRl16.js → render-settings-Bb-m2kWa.js} +1 -1
  228. package/dist/assets/{resolve-three-CJYxqrQD.js → resolve-three-CD-7buTi.js} +3 -3
  229. package/dist/assets/{root-seam-contract-Hpt_EoHH.js → root-seam-contract-ByczBWZN.js} +1 -1
  230. package/dist/assets/{run-selection-B28D0dVZ.js → run-selection-BtRtlndq.js} +1 -1
  231. package/dist/assets/{scene-capture-BdnKEkty.js → scene-capture-BVZICU3j.js} +1 -1
  232. package/dist/assets/{scene-document.service-DNoSvWoe.js → scene-document.service-MD9RNIFc.js} +2 -2
  233. package/dist/assets/{scene-framing-B-Zvn5pm.js → scene-framing-DvchrQCR.js} +1 -1
  234. package/dist/assets/{seeded-random-BscHstMm.js → seeded-random-DZtqqRJ0.js} +1 -1
  235. package/dist/assets/{setup-renderer-D2Jvr2h9.js → setup-renderer-KGBMQDvQ.js} +1 -1
  236. package/dist/assets/{source-object3d-authoring-adapter-Dk4cjzFm.js → source-object3d-authoring-adapter-MR9l6cHu.js} +1 -1
  237. package/dist/assets/{source-persistence-backend-Bs_c6UA-.js → source-persistence-backend-4POQX0tD.js} +1 -1
  238. package/dist/assets/{stage-keyboard-DmoIXoIV.js → stage-keyboard-DNbcw6h7.js} +1 -1
  239. package/dist/assets/{stage-overlay-set-iu8AeZPy.js → stage-overlay-set-CVtktpvC.js} +1 -1
  240. package/dist/assets/{stage-presence-markers-B_QEEO-M.js → stage-presence-markers-COSonp3_.js} +1 -1
  241. package/dist/assets/{stage-transform-tools-B4_Vna3u.js → stage-transform-tools-CYag685W.js} +1 -1
  242. package/dist/assets/{standard-viewport-dressing-Cqc3upSK.js → standard-viewport-dressing-DQzqVp_M.js} +1 -1
  243. package/dist/assets/{state-watch.action-DwbqOYJb.js → state-watch.action-Dnzd5guY.js} +1 -1
  244. package/dist/assets/{state-watch.menu-C9pu3XfU.js → state-watch.menu-CIWLWLcz.js} +1 -1
  245. package/dist/assets/{state-watch.utility-SzNyBG5Z.js → state-watch.utility-_AOWUKQB.js} +1 -1
  246. package/dist/assets/{story-capture-RxFtvptE.js → story-capture-APz8rVoc.js} +1 -1
  247. package/dist/assets/{story-documents-RnpVbpMP.js → story-documents-DEkKcXq_.js} +1 -1
  248. package/dist/assets/{story-documents.service-DFbzVaKv.js → story-documents.service-C8IJVUwq.js} +1 -1
  249. package/dist/assets/{story-documents.service-C7UNDFG9.js → story-documents.service-CEwgn1G3.js} +1 -1
  250. package/dist/assets/{story-media-presence-D8aagE7-.js → story-media-presence-hGtZ_CRR.js} +1 -1
  251. package/dist/assets/{story-pixi-preview-DD5zQqGj.js → story-pixi-preview-i5D34z_-.js} +1 -1
  252. package/dist/assets/{story-presentation-DCpop4w8.js → story-presentation-Du2nHXiE.js} +1 -1
  253. package/dist/assets/{story-three-preview-CHq5WHPd.js → story-three-preview-CtqxaxRB.js} +2 -2
  254. package/dist/assets/{studio-environment-ChEwdjoc.js → studio-environment-Cg9kNcPo.js} +1 -1
  255. package/dist/assets/{surface-state-CFqL5gLs.js → surface-state-DApsrbwZ.js} +1 -1
  256. package/dist/assets/{syntactic-prop-specs-MmHU8Snh.js → syntactic-prop-specs-CgzZ-eM7.js} +1 -1
  257. package/dist/assets/{team-playtest.service-BMRamJM8.js → team-playtest.service-DqNVRue_.js} +1 -1
  258. package/dist/assets/{three-authoring-adapter-OKrj_Yfz.js → three-authoring-adapter-BcTvwi-3.js} +1 -1
  259. package/dist/assets/three-authoring.service-Bdpnig_-.js +2 -0
  260. package/dist/assets/{three-ingest-runtime-DhyHlcLT.js → three-ingest-runtime-C88LKOHV.js} +1 -1
  261. package/dist/assets/three-integration-DmB0aiQd.js +2 -0
  262. package/dist/assets/three-integration.service-BEyI-yAw.js +1 -0
  263. package/dist/assets/{three-projection-core-BQjGIfYP.js → three-projection-core-CX_RAg4u.js} +1 -1
  264. package/dist/assets/{three-state-BPIdxcKm.js → three-state-BB-aEdQ2.js} +1 -1
  265. package/dist/assets/{three-story-capture.service-qwUNAWlj.js → three-story-capture.service-DGN6D2x2.js} +2 -2
  266. package/dist/assets/{three-story-model-B6RT2tEb.js → three-story-model-B2prCCT6.js} +1 -1
  267. package/dist/assets/{three-HBDNjMxy.js → three-uwF5ndav.js} +1 -1
  268. package/dist/assets/{three-viewport-presentation-jvn1ownx.js → three-viewport-presentation-CA9LWfoO.js} +1 -1
  269. package/dist/assets/{transform-mode-request-DSr__Uu7.js → transform-mode-request-BIQ6hEzE.js} +1 -1
  270. package/dist/assets/{transport-strip-B3s-LzLC.js → transport-strip-BEHUSI3R.js} +1 -1
  271. package/dist/assets/transport.header-jnZvo4qn.js +1 -0
  272. package/dist/assets/{tuples-C31jYZT7.js → tuples-CgCEQ7dP.js} +1 -1
  273. package/dist/assets/{ui-board-document-Cfpw8u3U.js → ui-board-document-BdZSSAVU.js} +2 -2
  274. package/dist/assets/{user-data-CqubllMS.js → user-data-jSXWWKWi.js} +1 -1
  275. package/dist/assets/{utility-view-state-3zmxNFCA.js → utility-view-state-e_tiTwn-.js} +1 -1
  276. package/dist/assets/{viewport-door-BQlwQEp5.js → viewport-door-efEPPdOc.js} +1 -1
  277. package/dist/assets/{viewport-root-presentation-ds37zRH-.js → viewport-root-presentation-PkBZOfkd.js} +1 -1
  278. package/dist/assets/{viewport-surface-status-CVu88cZ8.js → viewport-surface-status-C9RXutbu.js} +1 -1
  279. package/dist/assets/{webworkerAll-DfTIWQX5.js → webworkerAll-vs8kAI8B.js} +1 -1
  280. package/dist/assets/{workspace-arrangement-B1xtK850.js → workspace-arrangement-CImWaUGK.js} +1 -1
  281. package/dist/assets/{world-documents-RmUr_mpg.js → world-documents-CuZ361ET.js} +1 -1
  282. package/dist/assets/{world-root-stage-binding-BAbAZClT.js → world-root-stage-binding-DWf76qw9.js} +1 -1
  283. package/dist/assets/{xstate-animation-binding-D46iVstj.js → xstate-animation-binding-BoDJcUiT.js} +1 -1
  284. package/dist/assets/{xstate-animation-meta-DoZp29qk.js → xstate-animation-meta-DmZNTMtV.js} +1 -1
  285. package/dist-node/cli.js +25 -17
  286. package/package.json +16 -16
  287. package/dist/assets/InspectorObjectPreview-CBddqApL.js +0 -1
  288. package/dist/assets/Object3DDocumentViewport-Cd1mOnu4.js +0 -2
  289. package/dist/assets/StageHost-B6npzI_N.js +0 -2
  290. package/dist/assets/autoplay.service-DIvQKM4s.js +0 -1
  291. package/dist/assets/instances.command-CLmaRUbS.js +0 -1
  292. package/dist/assets/network-observer.service-D25O4Z1u.js +0 -1
  293. package/dist/assets/three-authoring.service-DOFfbQ1i.js +0 -2
  294. package/dist/assets/three-integration-B_X1dRN3.js +0 -2
  295. package/dist/assets/three-integration.service-Ddy-s__9.js +0 -1
  296. package/dist/assets/transport.header-CrVGCDtt.js +0 -1
@@ -1 +1 @@
1
- import{ab as a}from"./index-BT8W9a7k.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-C7J9j85F.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-OZVqp6xS.js";import"./index-Da9JhEvW.js";import"./native-debug-module-zuPnGFn7.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-CS3ZmHpb.js";import"./contract-system-adapters-BOybM-Sv.js";import"./game-contract-seams-BfTLgo42.js";import"./seeded-random-BscHstMm.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-bQE2NA0D.js";import"./live-project-verbs-puMj_ac5.js";import"./capability-coverage-O6aDzS_g.js";import"./edit-mode-authoring-CFh9mf99.js";import"./json-history-resource-Kth9eAdl.js";import"./binding-resolver-BlBh8LwO.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-CLLV-0p7.js";import"./canvas-entry-runtime-Ce7wP4vm.js";import"./three-ingest-runtime-DhyHlcLT.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./relative-path-guard-GiM7Lsz8.js";import"./react-root-BHA-cdrW.js";import"./editor-presentation-activity-CqJH4G9t.js";import"./active-ingest-DmggGh3n.js";import"./ingest-source-persistence-BSy_j1I6.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-ds37zRH-.js";import"./mounted-authoring-B4MQTZte.js";import"./entity-object-FbYj5hy6.js";import"./user-data-CqubllMS.js";import"./workspace-arrangement-B1xtK850.js";import"./three-contract-Dkt6PmWY.js";import"./three-HBDNjMxy.js";import"./editor-layers-JmP4C0fP.js";import"./component-instance-root-C1Xyh79V.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-OKrj_Yfz.js";import"./source-persistence-backend-Bs_c6UA-.js";import"./three-projection-core-BQjGIfYP.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./r3f-physics-binding-DivDhpIZ.js";import"./deferred-ingest-play-Br7lD74w.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-C1Pf_Ti4.js";import"./board-guides-b_JfsCO5.js";import"./relative-import-specifier-D8ICYdXp.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-CewZ8N7e.js";import"./inference-diagnostics-C2jsr-K4.js";import"./writer-tw6EcuVO.js";import"./three-state-BPIdxcKm.js";import"./editor-shell-store-BRBXaK6_.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-BQlwQEp5.js";import"./game-surface-defaults-D8S4cRxi.js";const Le="workspace.command",Ue={"list-gameplay-state":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{providers:e.providers()}}:p()?{ok:!0,data:{providers:[]}}:s()}},"inspect-gameplay-state":{derivedRefresh:"if-content-changed",handle:e=>{const t=a().debug;if(!t)return p()?{ok:!0,data:{state:null}}:s();const r=e.keys;try{const o={};if(r&&r.length>0)for(const i of r)o[i]=t.state(i);else Object.assign(o,t.stateAll());return{ok:!0,data:{state:o}}}catch(o){return n(o)}}},"list-debug-commands":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{commands:e.commands()}}:p()?{ok:!0,data:{commands:[]}}:s()}},"invoke-debug-command":{derivedRefresh:"always",handle:async e=>{const t=a().debug;if(!t)return p()?{ok:!1,error:`debug: no command registered under "${e.name}" — this game exposes no debug adapter`,data:{code:"DEBUG_COMMAND_NOT_REGISTERED",registered:[]}}:s();try{return{ok:!0,data:{result:await t.invoke(e.name,e.args??[])}}}catch(r){return n(r)}}},"inject-input":{derivedRefresh:"none",handle:e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before injecting input"};let r;try{r=t.getInputTarget(e.worldId)}catch(o){return n(o)}if(!r)return{ok:!1,error:"this play session has no input door: no root entry exports `debug.input`"};try{if(e.kind==="action"){const i=e.atTick;return typeof i=="number"?(r.scheduleActionAtTick(i,e.action,e.value),{ok:!0,data:{scheduled:!0,tick:i}}):{ok:!0,data:r.setVirtualAction(e.action,e.value)}}const o=e.sourceId;switch(e.kind){case"axis":r.injectAxis(o,e.value);break;case"vector2":r.injectVector2(o,e.value);break;case"pointerDelta":r.injectPointerDelta(o,e.value);break;case"pointerPosition":r.injectPointerPosition(o,e.value);break;default:return{ok:!1,error:`unknown injection kind "${e.kind}"`}}return{ok:!0,data:{delivered:!0}}}catch(o){return n(o)}}},"set-time-scale":{derivedRefresh:"none",handle:e=>{const t=m();return t?(t.loop.timeScale=e.timeScale,{ok:!0,data:{timeScale:t.loop.timeScale}}):{ok:!1,error:"not in play mode — start play before setting time-scale"}}},"set-seed":{derivedRefresh:"none",handle:e=>{const t=m();return t?t.determinismDeclared?t.random?(t.random.reseed(e.seed),{ok:!0,data:{seed:t.random.seed}}):{ok:!1,error:"this play session has no first-party ctx.random to reseed"}:{ok:!1,error:"this project's manifest does not declare determinism.seededRandom — play.seed.set has no documented contract to reseed against (D15)",data:{code:"DETERMINISM_NOT_DECLARED"}}:{ok:!1,error:"not in play mode — start play before setting the seed"}}},"run-ticks":{derivedRefresh:"none",handle:async e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before running ticks"};if(!t.runTicks)return{ok:!1,error:"this play session has no first-party Game to run ticks on",data:{code:"RUN_TICKS_UNAVAILABLE"}};try{const r=e.n,o=e.render;return t.runTicksSettled?await t.runTicksSettled(r,o?{render:o}:void 0):t.runTicks(r,o?{render:o}:void 0),{ok:!0}}catch(r){return n(r)}}}};export{Ue as commands,Le as point};
1
+ import{ab as a}from"./index-BFyEWcX2.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-BU6239o6.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-OZVqp6xS.js";import"./index-Da9JhEvW.js";import"./native-debug-module-BydU22ga.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-VvstjDrx.js";import"./contract-system-adapters-CgveZ5w6.js";import"./game-contract-seams-B_zl6uU9.js";import"./seeded-random-DZtqqRJ0.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-CYeuVCYr.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-bQE2NA0D.js";import"./live-project-verbs-CzP4gmX4.js";import"./capability-coverage-DOavbLew.js";import"./edit-mode-authoring-CRIZRixu.js";import"./json-history-resource-DOORsgaQ.js";import"./binding-resolver-DsCNzFA4.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-CILJ6zey.js";import"./canvas-entry-runtime-H30RJRyu.js";import"./three-ingest-runtime-C88LKOHV.js";import"./EffectComposer-BEAt0PtQ.js";import"./CopyShader-BzTUYzf6.js";import"./ShaderPass-DTnDQXm0.js";import"./Pass-D1MRT672.js";import"./CSS3DRenderer-BsAqfavI.js";import"./relative-path-guard-GiM7Lsz8.js";import"./react-root-BHA-cdrW.js";import"./editor-presentation-activity-CqJH4G9t.js";import"./active-ingest-r1yywcPp.js";import"./ingest-source-persistence-Dk4bo3Sd.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-PkBZOfkd.js";import"./mounted-authoring-CcGxkenJ.js";import"./entity-object-zTQM9DN_.js";import"./user-data-jSXWWKWi.js";import"./workspace-arrangement-CImWaUGK.js";import"./three-contract-Dkt6PmWY.js";import"./three-uwF5ndav.js";import"./editor-layers-CAPby0Hv.js";import"./component-instance-root-DWnAyiCF.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-BcTvwi-3.js";import"./source-persistence-backend-4POQX0tD.js";import"./three-projection-core-CX_RAg4u.js";import"./body-marks-C1LxJtQb.js";import"./user-data-CODoGZqA.js";import"./object-marks-BnvSuCTt.js";import"./structural-ids-BOo2BRoY.js";import"./object3d-authoring-subject-XccsO0xG.js";import"./r3f-physics-binding-Du5rtFoC.js";import"./deferred-ingest-play-vdDuU6B0.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-CU99D7zP.js";import"./board-guides-FTLvkEFa.js";import"./relative-import-specifier-P8rMB-CK.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-BFReLad2.js";import"./inference-diagnostics-C0WaA1x7.js";import"./writer-tw6EcuVO.js";import"./three-state-BB-aEdQ2.js";import"./editor-shell-store-CQs9DVQJ.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-efEPPdOc.js";import"./game-surface-defaults-D8S4cRxi.js";const Le="workspace.command",Ue={"list-gameplay-state":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{providers:e.providers()}}:p()?{ok:!0,data:{providers:[]}}:s()}},"inspect-gameplay-state":{derivedRefresh:"if-content-changed",handle:e=>{const t=a().debug;if(!t)return p()?{ok:!0,data:{state:null}}:s();const r=e.keys;try{const o={};if(r&&r.length>0)for(const i of r)o[i]=t.state(i);else Object.assign(o,t.stateAll());return{ok:!0,data:{state:o}}}catch(o){return n(o)}}},"list-debug-commands":{derivedRefresh:"if-content-changed",handle:()=>{const e=a().debug;return e?{ok:!0,data:{commands:e.commands()}}:p()?{ok:!0,data:{commands:[]}}:s()}},"invoke-debug-command":{derivedRefresh:"always",handle:async e=>{const t=a().debug;if(!t)return p()?{ok:!1,error:`debug: no command registered under "${e.name}" — this game exposes no debug adapter`,data:{code:"DEBUG_COMMAND_NOT_REGISTERED",registered:[]}}:s();try{return{ok:!0,data:{result:await t.invoke(e.name,e.args??[])}}}catch(r){return n(r)}}},"inject-input":{derivedRefresh:"none",handle:e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before injecting input"};let r;try{r=t.getInputTarget(e.worldId)}catch(o){return n(o)}if(!r)return{ok:!1,error:"this play session has no input door: no root entry exports `debug.input`"};try{if(e.kind==="action"){const i=e.atTick;return typeof i=="number"?(r.scheduleActionAtTick(i,e.action,e.value),{ok:!0,data:{scheduled:!0,tick:i}}):{ok:!0,data:r.setVirtualAction(e.action,e.value)}}const o=e.sourceId;switch(e.kind){case"axis":r.injectAxis(o,e.value);break;case"vector2":r.injectVector2(o,e.value);break;case"pointerDelta":r.injectPointerDelta(o,e.value);break;case"pointerPosition":r.injectPointerPosition(o,e.value);break;default:return{ok:!1,error:`unknown injection kind "${e.kind}"`}}return{ok:!0,data:{delivered:!0}}}catch(o){return n(o)}}},"set-time-scale":{derivedRefresh:"none",handle:e=>{const t=m();return t?(t.loop.timeScale=e.timeScale,{ok:!0,data:{timeScale:t.loop.timeScale}}):{ok:!1,error:"not in play mode — start play before setting time-scale"}}},"set-seed":{derivedRefresh:"none",handle:e=>{const t=m();return t?t.determinismDeclared?t.random?(t.random.reseed(e.seed),{ok:!0,data:{seed:t.random.seed}}):{ok:!1,error:"this play session has no first-party ctx.random to reseed"}:{ok:!1,error:"this project's manifest does not declare determinism.seededRandom — play.seed.set has no documented contract to reseed against (D15)",data:{code:"DETERMINISM_NOT_DECLARED"}}:{ok:!1,error:"not in play mode — start play before setting the seed"}}},"run-ticks":{derivedRefresh:"none",handle:async e=>{const t=m();if(!t)return{ok:!1,error:"not in play mode — start play before running ticks"};if(!t.runTicks)return{ok:!1,error:"this play session has no first-party Game to run ticks on",data:{code:"RUN_TICKS_UNAVAILABLE"}};try{const r=e.n,o=e.render;return t.runTicksSettled?await t.runTicksSettled(r,o?{render:o}:void 0):t.runTicks(r,o?{render:o}:void 0),{ok:!0}}catch(r){return n(r)}}}};export{Ue as commands,Le as point};
@@ -1 +1 @@
1
- import{a3 as l,a4 as a,ac as c}from"./index-BT8W9a7k.js";const g={version:1,jobs:[]};let u=g,i=null,s=0,o=!1;const r=new Set;function w(e,n=null){u=e,i=n,s++;for(const d of r)d()}function J(){return u}function v(){return i}function E(){return s}function y(e){return r.add(e),()=>r.delete(e)}function p(e){return e.status==="queued"||e.status==="running"}function h(e){return!p(e)&&(!e.readAt||Date.parse(e.readAt)<Date.parse(e.updatedAt))}function b(e){return e.filter(h).length}async function t(){try{const e=await fetch("/__editor/generations");w(await l(e,"Generation activity request failed"))}catch(e){i=e instanceof Error?e.message:String(e),s++;for(const n of r)n()}}async function G(){if(!o){o=!0;try{const e=await fetch("/__editor/generations/reconcile",{method:"POST"});a(e,"Generation reconciliation failed"),await t()}finally{o=!1}}}async function _(e){const n=await c(e.poll.tool,e.poll.input);if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);return await t(),await f(e.id),n.data}async function S(e){if(!e.accept)throw new Error("This completed generation has no project asset to add.");const n=await c(e.accept.tool,e.accept.input,{confirm:!0});if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);await t(),await f(e.id)}async function f(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}/read`,{method:"POST"});a(n,"Mark generation read failed"),await t()}async function T(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}`,{method:"DELETE"});a(n,"Forget generation job failed"),await t()}function A(){t();const e=window.setInterval(()=>void t(),2e3);return()=>{window.clearInterval(e)}}export{b as a,p as b,S as c,v as d,h as e,T as f,J as g,A as h,_ as i,E as j,f as m,G as p,t as r,y as s};
1
+ import{a3 as l,a4 as a,ac as c}from"./index-BFyEWcX2.js";const g={version:1,jobs:[]};let u=g,i=null,s=0,o=!1;const r=new Set;function w(e,n=null){u=e,i=n,s++;for(const d of r)d()}function J(){return u}function v(){return i}function E(){return s}function y(e){return r.add(e),()=>r.delete(e)}function p(e){return e.status==="queued"||e.status==="running"}function h(e){return!p(e)&&(!e.readAt||Date.parse(e.readAt)<Date.parse(e.updatedAt))}function b(e){return e.filter(h).length}async function t(){try{const e=await fetch("/__editor/generations");w(await l(e,"Generation activity request failed"))}catch(e){i=e instanceof Error?e.message:String(e),s++;for(const n of r)n()}}async function G(){if(!o){o=!0;try{const e=await fetch("/__editor/generations/reconcile",{method:"POST"});a(e,"Generation reconciliation failed"),await t()}finally{o=!1}}}async function _(e){const n=await c(e.poll.tool,e.poll.input);if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);return await t(),await f(e.id),n.data}async function S(e){if(!e.accept)throw new Error("This completed generation has no project asset to add.");const n=await c(e.accept.tool,e.accept.input,{confirm:!0});if(!n.ok)throw new Error(n.error.message);if(n.generationWarning)throw new Error(n.generationWarning);await t(),await f(e.id)}async function f(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}/read`,{method:"POST"});a(n,"Mark generation read failed"),await t()}async function T(e){const n=await fetch(`/__editor/generations/${encodeURIComponent(e)}`,{method:"DELETE"});a(n,"Forget generation job failed"),await t()}function A(){t();const e=window.setInterval(()=>void t(),2e3);return()=>{window.clearInterval(e)}}export{b as a,p as b,S as c,v as d,h as e,T as f,J as g,A as h,_ as i,E as j,f as m,G as p,t as r,y as s};
@@ -1 +1 @@
1
- import{jn as K,jo as Q,fc as I,dN as O,h2 as E,jp as Y,jq as A,aN as X,a6 as g,h4 as Z,fo as H,jr as ee,js as te,jt as w,ju as ne,jv as re,jw as oe,jx as ae,jy as se,jz as ie,bv as le,aL as h,hV as ce,eB as P,hF as R,bQ as B,Z as de,a7 as _,gi as ue,jA as me,jB as pe,jC as ge,g$ as ve,jD as fe,b7 as he,jE as xe,f6 as je,ad as ye,f8 as Ne}from"./index-BT8W9a7k.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ce}from"./model-thumbnail-BOFnggyX.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as z,f as M,i as Ee,b as F,p as Se,r as J,d as ke,e as Te,m as $e,h as be,j as Ae,a as we}from"./generation-jobs-BQRS91CG.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-ChEwdjoc.js";import"./user-data-CqubllMS.js";import"./workspace-arrangement-B1xtK850.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function L(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function U(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function De(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function q(e){return(e.outputPaths??[]).map(n=>{const r=K.find(o=>n.startsWith(`${o}/`)),a=r?Q(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(De(n))??"file",url:a}})}function D(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function C(e){const n=Oe(e);if(n)return n;const r=q(e);if(r.length===0)return D(e.label,64);const a=r[0],o=Ie(a.path);return r.length>1?o?`${o} · ${r.length} files`:`${r.length} files`:Ge.test(a.name)?o?`${o}/${a.name}`:D(e.label,64):a.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function Oe(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,a=r.prompt;if(typeof a=="string"&&a.trim().length>0)return a.trim();for(const o of Object.values(r)){const l=W(o,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function _e(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function ze(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function Me(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const a=Math.floor(r/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}const S="generation:",Fe="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:qe,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:Fe,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Le(){u.useSyncExternalStore(O,E),u.useSyncExternalStore(Y,A,A);const e=ee(),[n,r]=u.useState(""),a=n.trim().toLowerCase(),o=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>a?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(a)):!0),l=new Map;for(const i of o){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(g,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>Z(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),o.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Ue({job:e,result:n,documentId:r,active:a}){u.useSyncExternalStore(O,E),u.useSyncExternalStore(te,w,w);const o=ne(e.poll.tool,e,n);if(!o)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=o.Component;return t.jsx(re,{file:o.file,children:t.jsx(l,{tool:o.tool,contributionId:o.id,client:ie(),surfaces:oe,account:se(),play:ae(),documentId:r,active:a,job:e,result:n})})}function qe({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),a=e.startsWith(S)?e.slice(S.length):e,o=r.find(d=>d.id===a),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,p]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),p(null);try{i(await Ee(d))}catch(N){p(N instanceof Error?N.message:String(N))}finally{m(!1)}};if(u.useEffect(()=>{o&&y(o)},[o?.id,o?.status]),!o)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const b=s??(j(o)==="save-failed"?`Could not save into the project: ${o.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":o.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[o.provider," · ",o.operation]}),t.jsx("h2",{className:"volter-tool-title",children:o.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(o)]," · ",Je(o.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(g,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(o),children:c?"Refreshing…":"Refresh"}),U(o,s)&&t.jsx(g,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),p(null),z(o).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),o.message&&t.jsx("div",{className:"volter-tool-status",children:o.message}),b&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:b}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Ue,{job:o,result:l,documentId:e,active:n})}),o.outputPaths&&o.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),o.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),L(o)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(g,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),M(o.id).then(()=>H(e)).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const a=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(g,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:a}):a}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ce(e.url)?t.jsx(pe,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(_,{icon:e.kind==="model"?ge:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(g,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Qe({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",a=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...a?{icon:t.jsx(_,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Ye({job:e,busy:n,error:r,run:a}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[U(e,r)&&t.jsx(g,{size:"compact",variant:"primary",disabled:n,onClick:()=>a(()=>z(e)),children:n?"Saving…":"Retry save"}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),L(e)&&t.jsx(g,{size:"compact",variant:"ghost",disabled:n,onClick:()=>a(()=>M(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:a}){const o=j(e),l=q(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const p=fe(he(s.name));if(p)return()=>xe(s.url,p)};return t.jsxs("article",{className:"volter-generation-card","data-state":o,"aria-busy":F(e),"aria-label":C(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Qe,{job:e,state:o}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:C(e),children:C(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":o,children:[$[o],o==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[_e(e.billing),ze(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",Me(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||o==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(o==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Ye,{job:e,busy:n,error:r,run:a})]})]})}function Ze(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[a,o]=u.useState({}),l=e.filter(F).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,p)=>{r(s),o(v=>{const f={...v};return delete f[s],f});try{await p()}catch(v){const f=v instanceof Error?v.message:String(v);o(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:a[s.id]??null,run:p=>void c(s.id,p)},s.id))})]})}const kt="workspace.service",He="generation";function et(){const e=we(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[be(),je({...ye.generations,order:15,Content:Ze,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ne({id:He,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const a=x().jobs.find(o=>o.id===r.id);return a?V(a):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
1
+ import{jn as K,jo as Q,fc as I,dN as O,h2 as E,jp as Y,jq as A,aN as X,a6 as g,h4 as Z,fo as H,jr as ee,js as te,jt as w,ju as ne,jv as re,jw as oe,jx as ae,jy as se,jz as ie,bv as le,aL as h,hV as ce,eB as P,hF as R,bQ as B,Z as de,a7 as _,gi as ue,jA as me,jB as pe,jC as ge,g$ as ve,jD as fe,b7 as he,jE as xe,f6 as je,ad as ye,f8 as Ne}from"./index-BFyEWcX2.js";import{a as t}from"./jsx-runtime-DPjLkJKQ.js";import{r as u}from"./index-nmcBqr7Y.js";import{m as Ce}from"./model-thumbnail-COjS8TOV.js";import"./index-CtzuWnCS.js";import{s as T,g as x,c as z,f as M,i as Ee,b as F,p as Se,r as J,d as ke,e as Te,m as $e,h as be,j as Ae,a as we}from"./generation-jobs-CcknS4pv.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";import"./renderer-ownership-BovSEcLv.js";import"./studio-environment-Cg9kNcPo.js";import"./user-data-jSXWWKWi.js";import"./workspace-arrangement-CImWaUGK.js";import"./KTX2Loader-CaqVE6nY.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./GLTFLoader-KeoruJgS.js";import"./BufferGeometryUtils-B22h7jo4.js";import"./environment-Dg-YaLsA.js";import"./RoomEnvironment-BkknvS_I.js";import"./EXRLoader-CITMBvGd.js";import"./HDRLoader-BTGuGhVo.js";function j(e){switch(e.status){case"queued":return"queued";case"running":return"running";case"failed":return"failed";case"cancelled":return"cancelled";default:return e.acceptedAt?"ready":e.accept?e.pollError?"save-failed":"saving":"no-asset"}}function L(e){const n=j(e);return n!=="queued"&&n!=="running"&&n!=="saving"}function U(e,n){return e.status==="succeeded"&&!!e.accept&&!e.acceptedAt&&!!(e.pollError??n)}const $={queued:"Queued",running:"Running",saving:"Saving","save-failed":"Couldn't save",ready:"In project","no-asset":"No file",failed:"Failed",cancelled:"Cancelled"},Re=new Map([...["png","jpg","jpeg","webp","gif","avif","svg","bmp"].map(e=>[e,"image"]),...["mp4","webm","ogv","mov","m4v"].map(e=>[e,"video"]),...["mp3","wav","ogg","oga","m4a","flac","aac"].map(e=>[e,"audio"]),...["glb","gltf","fbx","obj","stl","ply","dae","3ds","usdz","spz"].map(e=>[e,"model"])]);function De(e){const n=e.slice(e.lastIndexOf("/")+1).toLowerCase(),r=n.lastIndexOf(".");return r>0?n.slice(r+1):""}function q(e){return(e.outputPaths??[]).map(n=>{const r=K.find(o=>n.startsWith(`${o}/`)),a=r?Q(r,n.slice(r.length+1)):null;return{path:n,name:n.slice(n.lastIndexOf("/")+1),kind:Re.get(De(n))??"file",url:a}})}function D(e,n){const r=e.trim();return r.length<=n?r:`${r.slice(0,n-1).trimEnd()}…`}function C(e){const n=Oe(e);if(n)return n;const r=q(e);if(r.length===0)return D(e.label,64);const a=r[0],o=Ie(a.path);return r.length>1?o?`${o} · ${r.length} files`:`${r.length} files`:Ge.test(a.name)?o?`${o}/${a.name}`:D(e.label,64):a.name}const Ge=/^(image|video|audio|model|panorama|output)(-\d+)?\./;function Ie(e){const n=e.split("/").slice(-2,-1)[0];return n?/^[0-9a-f]{8,}$/i.test(n)||/^[0-9a-f-]{16,}$/i.test(n)?null:n:null}function Oe(e){const n=e.accept?.input;if(!n||typeof n!="object")return null;const r=n.outputName;return typeof r=="string"&&r.trim().length>0?r.trim():null}function Pe(e){for(const n of[e.accept?.input,e.poll.input]){const r=W(n,0);if(r)return r}return null}function W(e,n){if(n>3||typeof e!="object"||e===null)return null;const r=e,a=r.prompt;if(typeof a=="string"&&a.trim().length>0)return a.trim();for(const o of Object.values(r)){const l=W(o,n+1);if(l)return l}return null}function G(e){return e.operation}function Be(e){return e.mode==="managed"?"Volter subscription":e.mode==="direct"?"Your provider key":"Mock"}function _e(e){return e.route==="mock"?"Free · mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Credit estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)}`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"USD estimate unavailable"}function ze(e){return e.route==="mock"?!0:e.route==="managed"?e.settledCredits!==void 0:e.settledAmount!==void 0}function Me(e){const n=Math.floor((Date.now()-Date.parse(e))/6e4);if(!Number.isFinite(n)||n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);if(r<24)return`${r}h ago`;const a=Math.floor(r/24);return a<7?`${a}d ago`:`${Math.floor(a/7)}w ago`}const S="generation:",Fe="generation:create";function Je(e){return e.route==="mock"?"Free mock":e.route==="managed"?e.settledCredits!==void 0?`${e.settledCredits} credits settled`:e.estimatedCredits!==void 0?`Up to ${e.estimatedCredits} credits`:"Volter subscription · estimate unavailable":e.settledAmount!==void 0?`$${e.settledAmount.toFixed(3)} settled`:e.estimatedAmount!==void 0?`Up to $${e.estimatedAmount.toFixed(3)}`:"BYOK · estimate unavailable"}function V(e){return I({id:`${S}${e.id}`,title:e.label,kind:"generation",workspaceRole:"authored-subject",provenance:{origin:`${e.provider}:${e.externalId}`},Content:qe,closeable:!0,presentation:()=>({kind:"generation",id:e.id})})}function k(){return I({id:Fe,title:"Create Asset",kind:"generation",workspaceRole:"workspace-task",provenance:{origin:"registered generation tools"},Content:Le,closeable:!0,presentation:()=>({kind:"generation",id:"create"})})}function Le(){u.useSyncExternalStore(O,E),u.useSyncExternalStore(Y,A,A);const e=ee(),[n,r]=u.useState(""),a=n.trim().toLowerCase(),o=E().filter(i=>i.point==="workspace.document"&&i.tool?.generation?.role==="submit").filter(i=>a?[i.title,i.tool?.generation?.provider,i.tool?.summary,i.tool?.description].filter(Boolean).some(c=>String(c).toLowerCase().includes(a)):!0),l=new Map;for(const i of o){const c=i.tool?.generation?.provider??"other";l.set(c,[...l.get(c)??[],i])}return t.jsxs("div",{className:"volter-tool-page","data-testid":"generation-create-catalog",children:[t.jsxs("header",{className:"volter-tool-header",children:[t.jsx("div",{className:"volter-tool-eyebrow",children:"Installed provider extensions"}),t.jsx("h2",{className:"volter-tool-title",children:"Create an asset"}),t.jsxs("p",{className:"volter-tool-description",children:["Choose a native provider operation. Mock, managed, and BYOK execution remain explicit in the operation you open. Current default: ",e.preferredRoute,"."]})]}),t.jsx(X,{type:"search","aria-label":"Search generation tools",placeholder:"Search operations or providers…",value:n,onChange:i=>r(i.target.value)}),[...l.entries()].map(([i,c])=>t.jsxs("section",{className:"volter-tool-card",children:[t.jsx("h3",{className:"volter-tool-section-title",children:i}),t.jsx("div",{className:"volter-generation-create-grid",children:c.map(m=>t.jsxs(g,{variant:"ghost",className:"volter-generation-create-card",onClick:()=>Z(m.id),children:[t.jsx("strong",{children:m.title}),t.jsx("span",{children:m.tool?.summary})]},m.id))})]},i)),o.length===0&&t.jsx("div",{className:"volter-generation-document-empty",children:"No installed generation operation matches this search."})]})}function Ue({job:e,result:n,documentId:r,active:a}){u.useSyncExternalStore(O,E),u.useSyncExternalStore(te,w,w);const o=ne(e.poll.tool,e,n);if(!o)return t.jsx("pre",{className:"volter-generation-native-result",children:JSON.stringify(n,null,2)});const l=o.Component;return t.jsx(re,{file:o.file,children:t.jsx(l,{tool:o.tool,contributionId:o.id,client:ie(),surfaces:oe,account:se(),play:ae(),documentId:r,active:a,job:e,result:n})})}function qe({documentId:e,active:n}){const{jobs:r}=u.useSyncExternalStore(T,x,x),a=e.startsWith(S)?e.slice(S.length):e,o=r.find(d=>d.id===a),[l,i]=u.useState(),[c,m]=u.useState(!1),[s,p]=u.useState(null),[v,f]=u.useState(!1),y=async d=>{m(!0),p(null);try{i(await Ee(d))}catch(N){p(N instanceof Error?N.message:String(N))}finally{m(!1)}};if(u.useEffect(()=>{o&&y(o)},[o?.id,o?.status]),!o)return t.jsx("div",{className:"volter-generation-document-empty",children:"This generation is no longer in project activity."});const b=s??(j(o)==="save-failed"?`Could not save into the project: ${o.pollError}`:null);return t.jsxs("div",{className:"volter-generation-document","data-status":o.status,children:[t.jsxs("header",{className:"volter-generation-document-header",children:[t.jsxs("div",{children:[t.jsxs("div",{className:"volter-tool-eyebrow",children:[o.provider," · ",o.operation]}),t.jsx("h2",{className:"volter-tool-title",children:o.label}),t.jsxs("div",{className:"volter-generation-job-meta",children:[$[j(o)]," · ",Je(o.billing)]})]}),t.jsxs("div",{className:"volter-tool-actions",children:[t.jsx(g,{size:"compact",variant:"ghost",disabled:c,onClick:()=>void y(o),children:c?"Refreshing…":"Refresh"}),U(o,s)&&t.jsx(g,{size:"compact",variant:"primary",disabled:v,onClick:()=>{f(!0),p(null),z(o).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:v?"Saving…":"Retry save"})]})]}),o.message&&t.jsx("div",{className:"volter-tool-status",children:o.message}),b&&t.jsx("div",{className:"volter-tool-status","data-tone":"error",role:"alert",children:b}),t.jsx("section",{className:"volter-generation-result","aria-label":"Generation result",children:l===void 0?t.jsx("div",{className:"volter-generation-document-empty",children:c?"Loading provider result…":"No provider result is available yet."}):t.jsx(Ue,{job:o,result:l,documentId:e,active:n})}),o.outputPaths&&o.outputPaths.length>0&&t.jsxs("section",{className:"volter-generation-output-paths",children:[t.jsx("strong",{children:"Project assets"}),o.outputPaths.map(d=>t.jsx("code",{children:d},d))]}),L(o)&&t.jsx("div",{className:"volter-generation-document-footer",children:t.jsx(g,{size:"compact",variant:"ghost",disabled:v,onClick:()=>{f(!0),M(o.id).then(()=>H(e)).catch(d=>p(d instanceof Error?d.message:String(d))).finally(()=>f(!1))},children:"Remove from activity"})})]})}function We({output:e,onOpen:n}){const r=e.url;if(r&&e.kind==="image"){const a=t.jsx("img",{className:"volter-generation-output-media",src:r,alt:e.name,loading:"lazy"});return n?t.jsx(g,{variant:"ghost",className:"volter-generation-output-open",onClick:n,"aria-label":`Open ${e.name}`,children:a}):a}return r&&e.kind==="video"?t.jsx("video",{className:"volter-generation-output-media",src:r,controls:!0,preload:"metadata",playsInline:!0,title:e.name}):r&&e.kind==="audio"?t.jsxs("div",{className:"volter-generation-output-audio",children:[t.jsx(me,{url:r,name:e.name}),t.jsx("audio",{src:r,controls:!0,preload:"metadata",title:e.name})]}):e.url&&e.kind==="model"&&Ce(e.url)?t.jsx(pe,{url:e.url}):t.jsxs("div",{className:"volter-generation-output-file",children:[t.jsx(_,{icon:e.kind==="model"?ge:ve}),t.jsx(h,{variant:"caption",tone:"muted",children:e.name}),n&&t.jsx(g,{size:"compact",variant:"ghost",onClick:n,children:"Open file"})]})}const Ve={queued:"loading",running:"loading",saving:"loading","save-failed":"error",ready:"success","no-asset":"neutral",failed:"error",cancelled:"neutral"},Ke={queued:e=>e.queuePosition===void 0?"Waiting for the provider to start.":`Position ${e.queuePosition} in the provider queue.`,running:e=>e.message??"The provider is working on it.",saving:()=>"Downloading the finished output into this project.","save-failed":e=>e.pollError??"The finished output could not be saved.",ready:()=>"Saved into this project.","no-asset":()=>"The operation finished without a file this project can hold.",failed:e=>e.message??"The provider reported a failure.",cancelled:()=>"This generation was cancelled."};function Qe({job:e,state:n}){const r=n==="queued"||n==="running"||n==="saving",a=n==="failed"||n==="save-failed";return t.jsxs("div",{className:"volter-generation-state-media","data-state":n,children:[t.jsx(P,{compact:!0,tone:Ve[n],...a?{icon:t.jsx(_,{icon:ue})}:{},title:$[n],description:Ke[n](e)}),r&&t.jsx("progress",{className:"volter-generation-progress","aria-label":`${e.label} progress`,...n==="running"&&e.progress!==void 0?{value:e.progress,max:1}:{}})]})}function Ye({job:e,busy:n,error:r,run:a}){return t.jsxs("div",{className:"volter-generation-card-actions",children:[U(e,r)&&t.jsx(g,{size:"compact",variant:"primary",disabled:n,onClick:()=>a(()=>z(e)),children:n?"Saving…":"Retry save"}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>V(e),children:"Details"}),L(e)&&t.jsx(g,{size:"compact",variant:"ghost",disabled:n,onClick:()=>a(()=>M(e.id)),children:"Remove"})]})}function Xe({job:e,busy:n,error:r,run:a}){const o=j(e),l=q(e),i=Pe(e),c=Te(e),m=s=>{if(!s.url)return;const p=fe(he(s.name));if(p)return()=>xe(s.url,p)};return t.jsxs("article",{className:"volter-generation-card","data-state":o,"aria-busy":F(e),"aria-label":C(e),onClickCapture:()=>{c&&$e(e.id).catch(s=>{de.warn(`Could not mark generation as seen: ${s instanceof Error?s.message:String(s)}`,"generations")})},children:[t.jsx("div",{className:"volter-generation-card-media","data-outputs":Math.min(l.length,4),children:l.length===0?t.jsx(Qe,{job:e,state:o}):l.map(s=>t.jsx("div",{className:"volter-generation-output",title:s.path,children:t.jsx(We,{output:s,onOpen:m(s)})},s.path))}),t.jsxs("div",{className:"volter-generation-card-body",children:[t.jsxs("div",{className:"volter-generation-card-heading",children:[t.jsx(h,{variant:"label",truncate:!0,title:C(e),children:C(e)}),t.jsxs(R,{className:"volter-generation-chip","data-state":o,children:[$[o],o==="running"&&e.progress!==void 0?` · ${Math.round(e.progress*100)}%`:""]}),c&&t.jsx(R,{className:"volter-generation-chip","data-state":"new",children:"New"})]}),t.jsxs(h,{variant:"caption",tone:"muted",truncate:!0,title:G(e),children:[e.provider," · ",G(e)]}),t.jsxs(h,{variant:"caption",tone:"dim",children:[_e(e.billing),ze(e.billing)?"":" (est.)"," · ",Be(e)," ·"," ",Me(e.updatedAt)]}),i&&t.jsx("p",{className:"volter-generation-card-prompt",title:i,children:i}),(r??e.pollError)&&t.jsx(B,{tone:r||o==="save-failed"?"error":"warning",className:"volter-generation-card-alert",children:r??(o==="save-failed"?`Could not save into the project: ${e.pollError}`:`Polling will retry: ${e.pollError}`)}),t.jsx(Ye,{job:e,busy:n,error:r,run:a})]})]})}function Ze(){const{jobs:e}=u.useSyncExternalStore(T,x,x),[n,r]=u.useState(null),[a,o]=u.useState({}),l=e.filter(F).length,i=e.filter(s=>j(s)==="saving").length,c=async(s,p)=>{r(s),o(v=>{const f={...v};return delete f[s],f});try{await p()}catch(v){const f=v instanceof Error?v.message:String(v);o(y=>({...y,[s]:f}))}finally{r(null)}},m=ke();return t.jsxs("div",{className:"volter-generation-gallery",children:[t.jsxs(le,{label:"Generations",compact:!0,className:"volter-generation-gallery-bar",children:[t.jsx(h,{variant:"label",children:"Generations"}),t.jsxs(h,{variant:"caption",tone:"muted",children:[e.length," ",e.length===1?"generation":"generations",l>0?` · ${l} running`:"",i>0?` · ${i} saving`:""]}),t.jsx(ce,{}),t.jsx(g,{size:"compact",variant:"ghost",onClick:()=>void Se().then(J),children:"Refresh"}),t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})]}),m&&t.jsx(B,{tone:"error",className:"volter-generation-gallery-alert",children:m}),e.length===0?t.jsx(P,{className:"volter-generation-gallery-empty",title:"No generated assets yet",description:"Preview generated images, video, audio and models here. Create an asset to get started.",action:t.jsx(g,{size:"compact",variant:"primary",onClick:()=>k(),children:"New asset"})}):t.jsx("section",{className:"volter-generation-grid","aria-label":"Generated assets",children:e.map(s=>t.jsx(Xe,{job:s,busy:n===s.id,error:a[s.id]??null,run:p=>void c(s.id,p)},s.id))})]})}const kt="workspace.service",He="generation";function et(){const e=we(x().jobs);return e>0?{count:e,severity:"info"}:null}function Tt(){const e=[be(),je({...ye.generations,order:15,Content:Ze,badge:et,subscribeBadge:T,badgeSnapshot:Ae,visibleByDefault:!1,closeable:!0}),Ne({id:He,owner:"@volter/editor-game/generation",open:(n,r)=>{if(r.id==="create")return k();const a=x().jobs.find(o=>o.id===r.id);return a?V(a):null},settle:J})];return()=>{for(const n of e)n()}}export{kt as point,Tt as start};
@@ -1 +1 @@
1
- import{dZ as p,u as o,x as n,c6 as e,v as l,w as t,c4 as d,e1 as c}from"./index-BT8W9a7k.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const u=d(["queued","running","succeeded","failed","cancelled"]),g=p("route",[o({route:n("mock")}).strict(),o({route:n("managed"),estimatedCredits:e().nonnegative().optional(),settledCredits:e().nonnegative().optional()}).strict(),o({route:n("byok"),currency:n("USD"),estimatedAmount:e().nonnegative().optional(),settledAmount:e().nonnegative().optional()}).strict()]),r=o({tool:t().min(1),input:c()}).strict(),v=o({id:t().min(1),provider:t().min(1),externalId:t().min(1),label:t().min(1),operation:t().min(1),mode:d(["mock","direct","managed"]),status:u,createdAt:t().datetime(),updatedAt:t().datetime(),progress:e().min(0).max(1).optional(),providerStatus:t().optional(),queuePosition:e().int().nonnegative().optional(),message:t().optional(),lastPolledAt:t().datetime().optional(),lastProviderChangeAt:t().datetime().optional(),pollError:t().optional(),pollErrorAt:t().datetime().optional(),pollFailureCount:e().int().nonnegative().optional(),nextPollAt:t().datetime().optional(),billing:g,poll:r,cancel:r.optional(),accept:r.optional(),acceptedAt:t().datetime().optional(),readAt:t().datetime().optional(),provenanceOperationId:t().optional(),outputPaths:l(t()).optional()}).strict(),k=o({version:n(1),jobs:l(v)}).strict();function y(m,s){if(m!=="managed")return{};const{estimatedCredits:i,settledCredits:a}=s;return i===void 0&&a===void 0?{}:{billing:{route:"managed",...i===void 0?{}:{estimatedCredits:i},...a===void 0?{}:{settledCredits:a}}}}export{g as GenerationBillingSchema,v as GenerationJobSchema,u as GenerationJobStatusSchema,k as GenerationJobsDocumentSchema,y as managedBilling};
1
+ import{dZ as p,u as o,x as n,c6 as e,v as l,w as t,c4 as d,e1 as c}from"./index-BFyEWcX2.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const u=d(["queued","running","succeeded","failed","cancelled"]),g=p("route",[o({route:n("mock")}).strict(),o({route:n("managed"),estimatedCredits:e().nonnegative().optional(),settledCredits:e().nonnegative().optional()}).strict(),o({route:n("byok"),currency:n("USD"),estimatedAmount:e().nonnegative().optional(),settledAmount:e().nonnegative().optional()}).strict()]),r=o({tool:t().min(1),input:c()}).strict(),v=o({id:t().min(1),provider:t().min(1),externalId:t().min(1),label:t().min(1),operation:t().min(1),mode:d(["mock","direct","managed"]),status:u,createdAt:t().datetime(),updatedAt:t().datetime(),progress:e().min(0).max(1).optional(),providerStatus:t().optional(),queuePosition:e().int().nonnegative().optional(),message:t().optional(),lastPolledAt:t().datetime().optional(),lastProviderChangeAt:t().datetime().optional(),pollError:t().optional(),pollErrorAt:t().datetime().optional(),pollFailureCount:e().int().nonnegative().optional(),nextPollAt:t().datetime().optional(),billing:g,poll:r,cancel:r.optional(),accept:r.optional(),acceptedAt:t().datetime().optional(),readAt:t().datetime().optional(),provenanceOperationId:t().optional(),outputPaths:l(t()).optional()}).strict(),k=o({version:n(1),jobs:l(v)}).strict();function y(m,s){if(m!=="managed")return{};const{estimatedCredits:i,settledCredits:a}=s;return i===void 0&&a===void 0?{}:{billing:{route:"managed",...i===void 0?{}:{estimatedCredits:i},...a===void 0?{}:{settledCredits:a}}}}export{g as GenerationBillingSchema,v as GenerationJobSchema,u as GenerationJobStatusSchema,k as GenerationJobsDocumentSchema,y as managedBilling};
@@ -1 +1 @@
1
- import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a6 as r,r as a,ad as i}from"./index-BT8W9a7k.js";import{r as u}from"./index-nmcBqr7Y.js";import"./index-CtzuWnCS.js";import{s as c,g as o,a as p,b as m}from"./generation-jobs-BQRS91CG.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";const I="workspace.status",$="Generations",C="left",T=24;function U(){const{jobs:e}=u.useSyncExternalStore(c,o,o),n=p(e),t=e.filter(m).length;return s.jsxs(r,{type:"button",variant:"ghost",size:"compact",className:"volter-status-action","data-testid":"status-generations","aria-label":`Generations, ${n} unseen, ${t} running`,title:`${n} unseen generation results, ${t} running — open Generations`,onClick:()=>a().workspace.showUtility(i.generations.id),children:["Generations · ",n,t>0?` · ${t} running`:""]})}export{C as align,U as default,T as order,I as point,$ as title};
1
+ import{a as s}from"./jsx-runtime-DPjLkJKQ.js";import{a6 as r,r as a,ad as i}from"./index-BFyEWcX2.js";import{r as u}from"./index-nmcBqr7Y.js";import"./index-CtzuWnCS.js";import{s as c,g as o,a as p,b as m}from"./generation-jobs-CcknS4pv.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";import"./index-D_NuPfjr.js";import"./index-CinJrH5C.js";const I="workspace.status",$="Generations",C="left",T=24;function U(){const{jobs:e}=u.useSyncExternalStore(c,o,o),n=p(e),t=e.filter(m).length;return s.jsxs(r,{type:"button",variant:"ghost",size:"compact",className:"volter-status-action","data-testid":"status-generations","aria-label":`Generations, ${n} unseen, ${t} running`,title:`${n} unseen generation results, ${t} running — open Generations`,onClick:()=>a().workspace.showUtility(i.generations.id),children:["Generations · ",n,t>0?` · ${t} running`:""]})}export{C as align,U as default,T as order,I as point,$ as title};
@@ -1 +1 @@
1
- import{g as n}from"./workspace-arrangement-B1xtK850.js";function r(t){const o=n(t,"volterComponentRoot");return typeof o=="string"&&o?o:void 0}function i(t){return n(t,"volterBuiltInternal")===!0}export{r as c,i};
1
+ import{g as n}from"./workspace-arrangement-CImWaUGK.js";function r(t){const o=n(t,"volterComponentRoot");return typeof o=="string"&&o?o:void 0}function i(t){return n(t,"volterBuiltInternal")===!0}export{r as c,i};
@@ -1,2 +1,2 @@
1
- import{kE as E,w as l,u as y,kF as P,v as b,b3 as T}from"./index-BT8W9a7k.js";import{i as x}from"./relative-path-guard-GiM7Lsz8.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=".volter/assets.json",k=y({key:l().min(1),license:l().min(1).optional(),sourceHash:l().regex(/^sha256-[a-f0-9]{64}$/,'sourceHash must be "sha256-<64 hex>"').optional(),materializedAt:l().datetime()}).strict(),O=E(l().min(1),k);function z(e){if(!/^[a-f0-9]{64}$/.test(e))throw new Error(`Not a sha256 digest, refusing to record it as a sourceHash: ${e}`);return`sha256-${e}`}function m(e){const t=e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"");if(!t)throw new Error("An asset ledger path cannot be empty.");if(!x(t))throw new Error(`An asset ledger path cannot escape the project: ${e}`);return t}function _(e){return O.parse(e)}function D(e){if(e==null||e.trim()==="")return{};let t;try{t=JSON.parse(e)}catch(s){throw new Error(`${d} is not valid JSON: ${String(s)}`)}return _(t)}function I(e,t,s){const r=m(t),n=k.parse(s),a={...e,[r]:n},i={};for(const u of Object.keys(a).sort())i[u]=a[u];return i}function M(e){const t={};for(const s of Object.keys(e).sort())t[s]=e[s];return`${JSON.stringify(t,null,2)}
1
+ import{kE as E,w as l,u as y,kF as P,v as b,b3 as T}from"./index-BFyEWcX2.js";import{i as x}from"./relative-path-guard-GiM7Lsz8.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";const d=".volter/assets.json",k=y({key:l().min(1),license:l().min(1).optional(),sourceHash:l().regex(/^sha256-[a-f0-9]{64}$/,'sourceHash must be "sha256-<64 hex>"').optional(),materializedAt:l().datetime()}).strict(),O=E(l().min(1),k);function z(e){if(!/^[a-f0-9]{64}$/.test(e))throw new Error(`Not a sha256 digest, refusing to record it as a sourceHash: ${e}`);return`sha256-${e}`}function m(e){const t=e.replaceAll("\\","/").replace(/^\.\//,"").replace(/^\/+/,"");if(!t)throw new Error("An asset ledger path cannot be empty.");if(!x(t))throw new Error(`An asset ledger path cannot escape the project: ${e}`);return t}function _(e){return O.parse(e)}function D(e){if(e==null||e.trim()==="")return{};let t;try{t=JSON.parse(e)}catch(s){throw new Error(`${d} is not valid JSON: ${String(s)}`)}return _(t)}function I(e,t,s){const r=m(t),n=k.parse(s),a={...e,[r]:n},i={};for(const u of Object.keys(a).sort())i[u]=a[u];return i}function M(e){const t={};for(const s of Object.keys(e).sort())t[s]=e[s];return`${JSON.stringify(t,null,2)}
2
2
  `}function U(e,t,s){const r=globalThis.navigator?.locks;return r?r.request(`volter:${e}:${P(t)}`,s):s()}const H=1e4,N=15;function j(){return globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random()}`}async function R(e,t,s={}){const r=s.staleAfterMs??H,n=s.retryDelayMs??N,a=s.now??Date.now,i=s.sleep??(o=>new Promise(c=>setTimeout(c,o))),u=s.token??j;for(;;){const o=JSON.stringify({at:a(),owner:s.owner??"unknown",token:u()});if(await e.createIfAbsent(o))try{return await t()}finally{await e.removeIfHeldBy(o)}const c=await e.read();if(c!==null){if(a()-B(c)>r){await e.removeIfHeldBy(c);continue}await i(n)}}}function B(e){try{const t=JSON.parse(e);return typeof t.at=="number"?t.at:0}catch{return 0}}function F(){const e=new Map;return(t,s)=>{const n=(e.get(t)??Promise.resolve()).then(s,s),a=n.then(()=>{},()=>{});return e.set(t,a),a.then(()=>{e.get(t)===a&&e.delete(t)}),n}}async function S(e){return await e.exists(d)?D(await e.read(d)):{}}async function J(e,t){await e.write(d,M(t))}const f=`${d}.lock`,C=F(),A=new WeakMap;let $=0;function K(e){const t=A.get(e);if(t!==void 0)return t;$+=1;const s=`${e.id}#${$}`;return A.set(e,s),s}async function W(e,t){const s={key:t.key,...t.license?{license:t.license}:{},...t.sourceSha256?{sourceHash:z(t.sourceSha256)}:{},materializedAt:t.materializedAt??new Date().toISOString()};await C(K(e),()=>R({createIfAbsent:r=>e.writeIfAbsent(f,r),read:async()=>await e.exists(f)?e.read(f):null,removeIfHeldBy:r=>U(e.id,f,async()=>{await e.exists(f)&&await e.read(f)===r&&await e.remove(f)})},async()=>{const r=await S(e);await J(e,I(r,m(t.destPath),s))},{owner:e.id}))}const G=y({key:l().regex(/^[^:]+:.+$/,'An asset key must be "source:id"'),dest:l().min(1),sha256:l().regex(/^[a-f0-9]{64}$/,"A pack entry must pin the sha256 of its bytes as 64 lowercase hex digits")}).strict(),Y=y({packs:E(l().min(1),b(G))}).strict();function q(e){return Y.parse(e)}function V(e){const t=[],s=new Map;for(const[r,n]of Object.entries(e.packs))for(const a of n){const i=s.get(a.dest);if(i!==void 0)throw new Error(`Two packs declare the same destination "${a.dest}": "${i}" and "${r}".`);s.set(a.dest,r),t.push({...a,pack:r})}return t}const w="asset-manifest.json",v="https://volter-asset-library.aaron-0ed.workers.dev";function L(e){return(e.baseUrl??v).replace(/\/+$/,"")}function Q(e){return e.signal?{signal:e.signal}:{}}async function X(e,t={}){const s=L(t),r=await fetch(`${s}/v1/assets/${encodeURIComponent(e)}`,Q(t));if(!r.ok)return null;const n=await r.json();return!n||typeof n!="object"||!Array.isArray(n.files)?null:n}function Z(e,t,s,r){return`${L(e?{baseUrl:e}:{})}/v1/assets/${encodeURIComponent(t)}/files/${s}`}async function he(e,t={}){const s=await ee(e),r={declared:s.length,materialized:[],alreadyPresent:[],failed:[]};if(s.length===0)return r;const n=await S(e);for(const a of s){if(t.signal?.aborted)break;if(n[m(a.dest)]&&await e.exists(a.dest)){r.alreadyPresent.push(a),t.onProgress?.(a,"already-present");continue}try{await te(e,a,t),r.materialized.push(a),t.onProgress?.(a,"materialized")}catch(i){r.failed.push({entry:a,reason:i instanceof Error?i.message:String(i)}),t.onProgress?.(a,"failed")}}return r}async function ee(e){if(!await e.exists(w))return[];const t=await e.read(w);let s;try{s=JSON.parse(t)}catch(r){throw new Error(`${w} is not valid JSON: ${r instanceof Error?r.message:String(r)}`)}return V(q(s))}async function te(e,t,s){const r=await se(t,s);await e.write(t.dest,r.bytes),await W(e,{destPath:t.dest,key:t.key,license:r.license,sourceSha256:t.sha256})}async function se(e,t={}){const s=e.key.indexOf(":");if(s<0)throw new Error(`Malformed asset key "${e.key}" (expected "source:id").`);const r=e.key.slice(0,s),n=e.key.slice(s+1);if(r!=="local")throw new Error(`Asset key "${e.key}": only the "local" (cloud-hosted) source can be materialized from the cloud worker.`);const a=t.baseUrl??v,i=t.signal?{baseUrl:a,signal:t.signal}:{baseUrl:a},u=await X(n,i);if(!u)throw new Error(`"${e.key}" is not hosted by the cloud asset library.`);const o=u.files[0];if(!o)throw new Error(`"${e.key}" has no files in the cloud library.`);if(o.dependencies.length>0)throw new Error(`"${e.key}" has ${o.dependencies.length} dependency file(s) — a pack entry names exactly one destination file.`);if(o.main.sha256!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: the cloud library reports sha256:${o.main.sha256} but ${w} pins sha256:${e.sha256}. Nothing was fetched or written; the pin is only re-cut by a reviewed change to the declaration.`);const c=Z(a,n,0),h=await fetch(c,t.signal?{signal:t.signal}:{});if(!h.ok)throw new Error(`${c} returned ${h.status} ${h.statusText}.`);const p=new Uint8Array(await h.arrayBuffer()),g=await T(p);if(g!==e.sha256)throw new Error(`"${e.key}" → ${e.dest}: ${c} delivered sha256:${g} but the declaration pins sha256:${e.sha256}. Nothing was written.`);return{bytes:p,license:u.license}}export{w as ASSET_MANIFEST_PATH,se as fetchVerifiedPackEntry,he as materializeDeclaredAssetPacks};
@@ -1 +1 @@
1
- import{e as f}from"./extend-B8RJQ5RF.js";import"./jsx-runtime-DPjLkJKQ.js";import{C as p}from"./index-DL2Takj5.js";import{r as a}from"./index-nmcBqr7Y.js";const s="object";class m{constructor(e){const t=e[s];if(!(t instanceof p))throw new Error(`PixiPrimitive: \`object\` must be a PIXI.Container (got ${t===null?"null":typeof t}). This element adopts an object the game already owns; it does not create one.`);return Object.defineProperty(t,s,{configurable:!0,enumerable:!1,get:()=>t,set:()=>{}}),t}}f({VolterAdopted:m});const b="pixiVolterAdopted";function d(o){const{object:e,children:t,...r}=o;if(a.useRef(e).current!==e)throw new Error("PixiPrimitive: `object` changed on a mounted element. The adopted container IS this element's instance, so it cannot be swapped; give the element a `key` derived from the object instead, so React remounts it.");a.useLayoutEffect(()=>()=>P(e),[e]);const i={[s]:e};for(const[u,c]of Object.entries(r))c!==void 0&&(i[u]=c);return a.createElement(b,i,t)}function P(o){const e=o,t=Object.getOwnPropertyDescriptor(o,"destroy");let r=!0;const n=()=>{r&&(r=!1,t===void 0?delete e.destroy:Object.defineProperty(o,"destroy",t))};Object.defineProperty(o,"destroy",{configurable:!0,enumerable:!1,writable:!0,value:function(){n(),this.removeFromParent()}}),queueMicrotask(n)}function l(o,e){e.parent!==o&&o.addChild(e)}const g=Object.freeze(Object.defineProperty({__proto__:null,PixiPrimitive:d,adoptNow:l},Symbol.toStringTag,{value:"Module"})),h=Object.freeze(Object.defineProperty({__proto__:null,PixiPrimitive:d,adoptNow:l},Symbol.toStringTag,{value:"Module"}));export{h as i,g as p};
1
+ import{e as f}from"./extend-Bdq0io5w.js";import"./jsx-runtime-DPjLkJKQ.js";import{C as p}from"./index-Bd-fPqp1.js";import{r as a}from"./index-nmcBqr7Y.js";const s="object";class m{constructor(e){const t=e[s];if(!(t instanceof p))throw new Error(`PixiPrimitive: \`object\` must be a PIXI.Container (got ${t===null?"null":typeof t}). This element adopts an object the game already owns; it does not create one.`);return Object.defineProperty(t,s,{configurable:!0,enumerable:!1,get:()=>t,set:()=>{}}),t}}f({VolterAdopted:m});const b="pixiVolterAdopted";function d(o){const{object:e,children:t,...r}=o;if(a.useRef(e).current!==e)throw new Error("PixiPrimitive: `object` changed on a mounted element. The adopted container IS this element's instance, so it cannot be swapped; give the element a `key` derived from the object instead, so React remounts it.");a.useLayoutEffect(()=>()=>P(e),[e]);const i={[s]:e};for(const[u,c]of Object.entries(r))c!==void 0&&(i[u]=c);return a.createElement(b,i,t)}function P(o){const e=o,t=Object.getOwnPropertyDescriptor(o,"destroy");let r=!0;const n=()=>{r&&(r=!1,t===void 0?delete e.destroy:Object.defineProperty(o,"destroy",t))};Object.defineProperty(o,"destroy",{configurable:!0,enumerable:!1,writable:!0,value:function(){n(),this.removeFromParent()}}),queueMicrotask(n)}function l(o,e){e.parent!==o&&o.addChild(e)}const g=Object.freeze(Object.defineProperty({__proto__:null,PixiPrimitive:d,adoptNow:l},Symbol.toStringTag,{value:"Module"})),h=Object.freeze(Object.defineProperty({__proto__:null,PixiPrimitive:d,adoptNow:l},Symbol.toStringTag,{value:"Module"}));export{h as i,g as p};
@@ -1 +1 @@
1
- import{A as H,a as r,b as D,c as O,C as i,D as o,H as t,N as m,d as p,P as I,e as N,R as d,S as n,f as U,g as C,h as c,W as M,i as h,j as G,k as g,l as y,m as V,n as f,o as K,p as Y,q as B,s as F}from"./index-BT8W9a7k.js";import{createRootBinding as u}from"./binding-Bmxqznjk.js";import{MOUNTED_CANVAS_SURFACE_SHAPE as x,MOUNTED_DOM_SURFACE_SHAPE as l,MOUNTED_ROOT_BASE_SHAPE as L,MOUNTED_THREE_SURFACE_SHAPE as b,ROOT_ADAPTER_SHAPE as j,ROOT_STATE_OBSERVER_SHAPE as k}from"./root-seam-contract-Hpt_EoHH.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";export{H as AUDIO_ADAPTER_SHAPE,r as AUTHORING_ADAPTER_SHAPE,D as AUTHORING_PROVIDER_KEYS,O as AUTHORING_PROVIDER_SHAPES,i as CAMERA_ADAPTER_SHAPE,o as DEBUG_ADAPTER_SHAPE,t as HIERARCHY_PROVIDER_SHAPE,x as MOUNTED_CANVAS_SURFACE_SHAPE,l as MOUNTED_DOM_SURFACE_SHAPE,L as MOUNTED_ROOT_BASE_SHAPE,b as MOUNTED_THREE_SURFACE_SHAPE,m as NAVIGATION_ADAPTER_SHAPE,p as NETWORKING_ADAPTER_SHAPE,I as PHYSICS_2D_ADAPTER_SHAPE,N as PHYSICS_ADAPTER_SHAPE,d as RENDER_DEBUG_ADAPTER_SHAPE,j as ROOT_ADAPTER_SHAPE,k as ROOT_STATE_OBSERVER_SHAPE,n as SEAM_PROOF_STAGES,U as SYSTEM_ADAPTERS_SHAPE,C as SYSTEM_PROVIDER_SHAPES,c as SeamEvidenceLedger,M as WRITE_ANCHOR_KINDS,u as createRootBinding,h as defineSeamShape,G as displayKeyedPhysics,g as emptyWriteAnchorKindCounts,y as gradeSeamCarrier,V as gradeSeamEvidence,f as inspectSeamShape,K as measureAuthoringProviders,Y as nodeKeyedPhysics,B as physicsOwnerOf,F as seamStageAtLeast};
1
+ import{A as H,a as r,b as D,c as O,C as i,D as o,H as t,N as m,d as p,P as I,e as N,R as d,S as n,f as U,g as C,h as c,W as M,i as h,j as G,k as g,l as y,m as V,n as f,o as K,p as Y,q as B,s as F}from"./index-BFyEWcX2.js";import{createRootBinding as u}from"./binding-Bmxqznjk.js";import{MOUNTED_CANVAS_SURFACE_SHAPE as x,MOUNTED_DOM_SURFACE_SHAPE as l,MOUNTED_ROOT_BASE_SHAPE as L,MOUNTED_THREE_SURFACE_SHAPE as b,ROOT_ADAPTER_SHAPE as j,ROOT_STATE_OBSERVER_SHAPE as k}from"./root-seam-contract-ByczBWZN.js";import"./index-nmcBqr7Y.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-D_NuPfjr.js";import"./jsx-runtime-DPjLkJKQ.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";export{H as AUDIO_ADAPTER_SHAPE,r as AUTHORING_ADAPTER_SHAPE,D as AUTHORING_PROVIDER_KEYS,O as AUTHORING_PROVIDER_SHAPES,i as CAMERA_ADAPTER_SHAPE,o as DEBUG_ADAPTER_SHAPE,t as HIERARCHY_PROVIDER_SHAPE,x as MOUNTED_CANVAS_SURFACE_SHAPE,l as MOUNTED_DOM_SURFACE_SHAPE,L as MOUNTED_ROOT_BASE_SHAPE,b as MOUNTED_THREE_SURFACE_SHAPE,m as NAVIGATION_ADAPTER_SHAPE,p as NETWORKING_ADAPTER_SHAPE,I as PHYSICS_2D_ADAPTER_SHAPE,N as PHYSICS_ADAPTER_SHAPE,d as RENDER_DEBUG_ADAPTER_SHAPE,j as ROOT_ADAPTER_SHAPE,k as ROOT_STATE_OBSERVER_SHAPE,n as SEAM_PROOF_STAGES,U as SYSTEM_ADAPTERS_SHAPE,C as SYSTEM_PROVIDER_SHAPES,c as SeamEvidenceLedger,M as WRITE_ANCHOR_KINDS,u as createRootBinding,h as defineSeamShape,G as displayKeyedPhysics,g as emptyWriteAnchorKindCounts,y as gradeSeamCarrier,V as gradeSeamEvidence,f as inspectSeamShape,K as measureAuthoringProviders,Y as nodeKeyedPhysics,B as physicsOwnerOf,F as seamStageAtLeast};