@volter/game-editor 0.5.142 → 0.5.143

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 (295) 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 +2129 -2129
  5. package/dist/assets/{AssetBudgetPanel-BK_Kg5_n.js → AssetBudgetPanel-BdiVftGG.js} +3 -3
  6. package/dist/assets/{AudioViewer-DcUL0rsj.js → AudioViewer-DjwTr_wg.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-DsOqoA42.js → CanvasBoardDocument-DK3MXhRp.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-sWKihRdy.js → CanvasSceneViewport-DOzblR0m.js} +1 -1
  9. package/dist/assets/{ColorInput-DLItcwnD.js → ColorInput-qITQn-_m.js} +1 -1
  10. package/dist/assets/{ColorPicker-T0mWSJvb.js → ColorPicker-DPs8654V.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-NhgPaDRz.js → EntityModelDocument-CNPGnGt3.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-pLuFtzE0.js → EnvironmentAssetDocument-oyIJfFdj.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-DHDAZHKd.js → GameplaySessionTimeline-f2tPMu4I.js} +1 -1
  14. package/dist/assets/{ImageViewer-Dz-w5I9z.js → ImageViewer-DO5Ve_Ox.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-CunxnDvP.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-BRQJhVn-.js → JsonAssetDocument-BuRyWHCE.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-ZbZWogpm.js → LiveModuleDocument-DSKvtvtv.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-Bqiprv51.js → LutAssetDocument-DpQ27fBd.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-Tr_5h4cp.js → ModelAssetDocument-PpCxnR1j.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-BWE-HDxB.js → NonThreeAuthoringBootstrap-mIzPFTqE.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-CBYkpS3f.js → Object3DDocumentToolbar-BtPLixcu.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-C1XieeeO.js +2 -0
  23. package/dist/assets/{Object3DPreview-BMbAWHRi.js → Object3DPreview-D3qGjLVE.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-xYK97ae5.js → OnlineAssetDetail-p4AlihvW.js} +1 -1
  25. package/dist/assets/{PlayBar-HWwce0-F.js → PlayBar-CPfTu06h.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-LQmsrsV3.js → QuarksAssetDocument-D6dGxxmU.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-avLn4SLd.js → ReactCanvasControls-DijwLcwS.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-C6vvYfUs.js → RootSelectionOverlay-CsD1aZs6.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-B6WBPMzb.js → ShaderAssetDocument-BEa81zNK.js} +1 -1
  30. package/dist/assets/{ShadowEditor-PrqNH7go.js → ShadowEditor-B7CJc6XL.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-Dsp_GcoS.js → SourceAssetViewer-Bwvyvl7B.js} +1 -1
  32. package/dist/assets/StageHost-CHeH7liy.js +2 -0
  33. package/dist/assets/{StoryPreviewMount-DWIfQjmM.js → StoryPreviewMount-CLfDAbBH.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-B3FqjhJo.js → ThreeBoardDocument-CBxxjARz.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent-BPgdmgcO.js → ThreeIsolationSceneContent-B7AvGnMj.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-CYjzINIU.js → ToolObject3DPreview-BgogY6xt.js} +1 -1
  37. package/dist/assets/{Toolbar-YMWsmOWT.js → Toolbar-DcpfyyCi.js} +1 -1
  38. package/dist/assets/{TransientHint-u9a54k-5.js → TransientHint-DzpkDjxN.js} +1 -1
  39. package/dist/assets/{VideoViewer-CARhfO8w.js → VideoViewer-uaulCUB7.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-DvBJqmuY.js → ViewportShadingMenu-BNortpJP.js} +1 -1
  41. package/dist/assets/{active-ingest-xHJ3iPnn.js → active-ingest-D93pvHUb.js} +2 -2
  42. package/dist/assets/{animation-clock-hJO0qDLe.js → animation-clock-gP0Omdq0.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-rZWYxLUR.js → animation-mixers.service-BnC2sPxd.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-o8Pyf1CR.js → animation-timeline.utility-_iveOjvf.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-BdY98g2A.js → asset-budget-asset.menu-BO6S6Clb.js} +1 -1
  46. package/dist/assets/{asset-budget.action-DCWkB_B2.js → asset-budget.action-BfPsEFA-.js} +1 -1
  47. package/dist/assets/{asset-budget.document-DuRsluNY.js → asset-budget.document-BPHPWfbm.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-B2MMYJIP.js → asset-budget.menu-BMn3dsDS.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-C-gURpGj.js → asset-editor-persistence-BE91v4hN.js} +1 -1
  50. package/dist/assets/{asset-loaders-DYC-l1kU.js → asset-loaders-p2V4yWeG.js} +1 -1
  51. package/dist/assets/{asset-preview-DEkvEBxj.js → asset-preview-BqIrR4Xy.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-DG6q4IBZ.js → audio-unlock.service-t0voeDQd.js} +1 -1
  53. package/dist/assets/{audio.utility-KYy5goj0.js → audio.utility-BtDV4l6L.js} +1 -1
  54. package/dist/assets/autoplay.service-BTr6K5DJ.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-Qr98gG6J.js → babylon-authoring-adapter-ys1eX0ED.js} +1 -1
  56. package/dist/assets/{binding-resolver-BKmJAnHI.js → binding-resolver-BWwofL-w.js} +2 -2
  57. package/dist/assets/{blender-node-editor.document-BBNl1MEx.js → blender-node-editor.document-BHsl001G.js} +1 -1
  58. package/dist/assets/{blender-properties-tab-CkCbqAZB.js → blender-properties-tab-uAaS_Exu.js} +1 -1
  59. package/dist/assets/{blender-runtime-host-BbvkFBVI.js → blender-runtime-host-BYZufdkP.js} +1 -1
  60. package/dist/assets/{blender-runtime-skin-XkUxG1nF.js → blender-runtime-skin-DuLZEmCx.js} +29 -29
  61. package/dist/assets/{blender-runtime.document-CXKSbMrA.js → blender-runtime.document-CfDUmwIa.js} +8 -8
  62. package/dist/assets/{blender-screenshot.menu-BUWbBflV.js → blender-screenshot.menu-qJZV-LS0.js} +1 -1
  63. package/dist/assets/{blender-timeline.document-FDw47tX9.js → blender-timeline.document-BwrXagJ6.js} +1 -1
  64. package/dist/assets/{blender-uv-editor.document-BnZgr7yh.js → blender-uv-editor.document-CSZoUDWM.js} +1 -1
  65. package/dist/assets/{blender-version.status-DtZC1ZWl.js → blender-version.status-BWDUK2l7.js} +1 -1
  66. package/dist/assets/{blender.command-DwlVWlu3.js → blender.command-B0s3Af-m.js} +1 -1
  67. package/dist/assets/{board-guides-BDt1DXyh.js → board-guides-5y4zeqX7.js} +1 -1
  68. package/dist/assets/{bridge.command-u0LgYfz-.js → bridge.command-DQfhUNFq.js} +3 -3
  69. package/dist/assets/{browserAll-BfjPE8R_.js → browserAll-Dbf4aGgB.js} +1 -1
  70. package/dist/assets/{build-player.document-o59wHyIW.js → build-player.document-Bd0u1g-Y.js} +1 -1
  71. package/dist/assets/{build-profiles.document-Bxyok6yZ.js → build-profiles.document-B7WkqaZ6.js} +1 -1
  72. package/dist/assets/{build-progress.status-CznZMxgz.js → build-progress.status-D2GyM7T5.js} +1 -1
  73. package/dist/assets/{build-session-CHF6pdTS.js → build-session-urvplcJ_.js} +1 -1
  74. package/dist/assets/{build.action-Chz0Qrtm.js → build.action-CY_qJBby.js} +1 -1
  75. package/dist/assets/{build.command-D94Ab-02.js → build.command-Bql81_76.js} +1 -1
  76. package/dist/assets/{build.header-C5FT1_tz.js → build.header-BWEm5PxX.js} +1 -1
  77. package/dist/assets/{build.menu--4uTV4EJ.js → build.menu-Drj27927.js} +1 -1
  78. package/dist/assets/{build.service-B2RJsSBc.js → build.service-UkGk8Uw_.js} +1 -1
  79. package/dist/assets/{camera-BP5zUr-x.js → camera-DjlldTcH.js} +1 -1
  80. package/dist/assets/{camera-runtime.inspector-DAOn2O45.js → camera-runtime.inspector-Brr2VKtr.js} +1 -1
  81. package/dist/assets/{canvas-design-mount-f1psr6zi.js → canvas-design-mount-qDZm4PWb.js} +3 -3
  82. package/dist/assets/{canvas-entry-runtime-BNKkUKUz.js → canvas-entry-runtime-C5mQcqUX.js} +2 -2
  83. package/dist/assets/{canvas-preview-frames--QBGWV8p.js → canvas-preview-frames-CKeTiNdf.js} +1 -1
  84. package/dist/assets/{canvas-story-capture.service-CjdZE_Nc.js → canvas-story-capture.service-DwdCXNcT.js} +2 -2
  85. package/dist/assets/{capability-coverage-DHlcB_NJ.js → capability-coverage-CNP_jAZY.js} +1 -1
  86. package/dist/assets/{collaboration-presence-6Qm6d2lo.js → collaboration-presence-DkEqt3Gz.js} +1 -1
  87. package/dist/assets/{collider-C7R2umDP.js → collider-bbRSmral.js} +1 -1
  88. package/dist/assets/{component-board.service-CHhoEaSV.js → component-board.service-07TWRm-7.js} +2 -2
  89. package/dist/assets/{component-board.service-DPwh4eNK.js → component-board.service-BgVIeVii.js} +2 -2
  90. package/dist/assets/{component-board.service-CQxbkyBZ.js → component-board.service-BtSG5scd.js} +2 -2
  91. package/dist/assets/{component-contracts.service-CjYVi6Tm.js → component-contracts.service-DjLxfaIH.js} +1 -1
  92. package/dist/assets/{component-instance-root-Tn61X_7Z.js → component-instance-root-MaXT-9eH.js} +1 -1
  93. package/dist/assets/{component-verbs.command-DOLahKnV.js → component-verbs.command-DAe5nFLA.js} +1 -1
  94. package/dist/assets/{component-verbs.service-CRA4XKmc.js → component-verbs.service-DdkUX8_s.js} +1 -1
  95. package/dist/assets/{config-CkaPMHMb.js → config-D6y2yi9i.js} +2 -2
  96. package/dist/assets/{configurations-2Svtw6qL.js → configurations-B3CK604j.js} +1 -1
  97. package/dist/assets/{connection.status-CK067nrJ.js → connection.status-BCz9SCph.js} +1 -1
  98. package/dist/assets/{constraints.inspector-DstMUoZq.js → constraints.inspector-ZPW1YgsY.js} +1 -1
  99. package/dist/assets/{content-bounds-YVICdCNy.js → content-bounds-CIrrm5u0.js} +1 -1
  100. package/dist/assets/{contract-system-adapters-DGSvuYKd.js → contract-system-adapters-Da68ESRl.js} +1 -1
  101. package/dist/assets/{coverage.service-CoFK38ZR.js → coverage.service-DtjtcbGO.js} +1 -1
  102. package/dist/assets/{create-runtime-BpI4bU0u.js → create-runtime-DYCcEzf_.js} +1 -1
  103. package/dist/assets/{curve-DKKlVD4D.js → curve-XZVLp9Px.js} +1 -1
  104. package/dist/assets/{data-asset-VnV8SP9z.js → data-asset-C9QeMYQ6.js} +1 -1
  105. package/dist/assets/{data-ref-C3bJM6eR.js → data-ref-Dwd_nMTi.js} +1 -1
  106. package/dist/assets/{debug-bridge-Dt0jlOEB.js → debug-bridge-CmGhy30u.js} +1 -1
  107. package/dist/assets/{debug-registry-CzOk-_B9.js → debug-registry-7glJb2_c.js} +1 -1
  108. package/dist/assets/{deferred-ingest-play-D9BvhZe1.js → deferred-ingest-play-CU5GjqVu.js} +2 -2
  109. package/dist/assets/{design-time-canvas-mount-Di8PG4_B.js → design-time-canvas-mount-DD8OYdJx.js} +2 -2
  110. package/dist/assets/{design-time-layers-DTSbNUpn.js → design-time-layers-C4EHX2H1.js} +1 -1
  111. package/dist/assets/{design-time-mount.service-DBZjhq0E.js → design-time-mount.service-Bex5nxbX.js} +2 -2
  112. package/dist/assets/{design-time-mount.service-Ctu51OJI.js → design-time-mount.service-C-E_So2G.js} +2 -2
  113. package/dist/assets/{design-time-react-mount-BGAlVY7c.js → design-time-react-mount-BfS83T5B.js} +1 -1
  114. package/dist/assets/{document-preview-three-Chm2djth.js → document-preview-three-Br2Q34Dm.js} +1 -1
  115. package/dist/assets/{dom-authoring-adapter-DQtDXsVk.js → dom-authoring-adapter-uYyXOnRm.js} +1 -1
  116. package/dist/assets/{draco3d-RLlIF__o.js → draco3d-DxNmfhHs.js} +1 -1
  117. package/dist/assets/{edit-mode-audio.service-B_iqGJgI.js → edit-mode-audio.service-DE_pn_MR.js} +1 -1
  118. package/dist/assets/{edit-mode-authoring-CpCwKmxw.js → edit-mode-authoring-8sn7p4nG.js} +1 -1
  119. package/dist/assets/{edit-mode-networking.service-hlvh-I30.js → edit-mode-networking.service-BXuBlovn.js} +1 -1
  120. package/dist/assets/{editor-api-DTK-Dzhg.js → editor-api-BNcg9nJy.js} +1 -1
  121. package/dist/assets/{editor-layers-Cr7_OURc.js → editor-layers-D3afd2Rj.js} +1 -1
  122. package/dist/assets/{editor-shell-store-02yQ59Xe.js → editor-shell-store-BNIOyldX.js} +1 -1
  123. package/dist/assets/{entity-object-BI6v1FBv.js → entity-object-DC80r4hW.js} +1 -1
  124. package/dist/assets/{extend-Dp46wu5_.js → extend-OjmwIbqx.js} +1 -1
  125. package/dist/assets/{fork-menu-B9DCMWGg.js → fork-menu-CPdiffHY.js} +1 -1
  126. package/dist/assets/{frame-debugger-store-D_j3N7qI.js → frame-debugger-store-CYTSL3AX.js} +1 -1
  127. package/dist/assets/{game-contract-seams-BJlyuEmz.js → game-contract-seams-WtNxnhc2.js} +1 -1
  128. package/dist/assets/{game-css-scope-transform-CP9qBDZL.js → game-css-scope-transform-C73qdewG.js} +1 -1
  129. package/dist/assets/{game-document.service-CHa3dUwK.js → game-document.service-CF7EnKbN.js} +1 -1
  130. package/dist/assets/{game-eval.command-CB7ao_pK.js → game-eval.command-BcAACfLM.js} +1 -1
  131. package/dist/assets/{game-module-access-BPKiG-Qf.js → game-module-access-CTzw5tN5.js} +1 -1
  132. package/dist/assets/{game-network-Bx7DaYNP.js → game-network-CbiXm5Hs.js} +3 -3
  133. package/dist/assets/{gameplay-export-DQZV_3Jt.js → gameplay-export-DSGl2k8q.js} +1 -1
  134. package/dist/assets/{gameplay-replay-VbrF8pHA.js → gameplay-replay-DCXlXrS2.js} +1 -1
  135. package/dist/assets/{gameplay.command-Jm3lfo6r.js → gameplay.command-YgXYsN_0.js} +1 -1
  136. package/dist/assets/{generation-jobs-D7p3x7Wz.js → generation-jobs-BEJk23Cn.js} +1 -1
  137. package/dist/assets/{generation.service-Ddb6kc9b.js → generation.service-Dt9gsKXC.js} +1 -1
  138. package/dist/assets/{generations-C12gZ_9u.js → generations-CqmkgtNO.js} +1 -1
  139. package/dist/assets/{generations.status-BH3SvTwM.js → generations.status-BULr7x14.js} +1 -1
  140. package/dist/assets/{hierarchy-marks-CttC7k4I.js → hierarchy-marks-Br83xItv.js} +1 -1
  141. package/dist/assets/{hosted-asset-materialization-F_emeF9w.js → hosted-asset-materialization-WupFrE9d.js} +1 -1
  142. package/dist/assets/{index-BqsqNI-Q.js → index-BVGC2p08.js} +1 -1
  143. package/dist/assets/{index-Cu3UcP7g.js → index-BliygjwA.js} +1 -1
  144. package/dist/assets/{index-C2GXej5w.js → index-C3IEVwzA.js} +7 -7
  145. package/dist/assets/{index-CFIS_eVm.js → index-CEmW3p1F.js} +1 -1
  146. package/dist/assets/{index-NpxPcVFJ.js → index-D6MeIqnu.js} +2 -2
  147. package/dist/assets/{index-DAnX8ncW.js → index-D6Q6Xs1B.js} +1 -1
  148. package/dist/assets/{index-iqPtSfBr.js → index-DoeV0FPm.js} +1 -1
  149. package/dist/assets/{index-DEzmNjef.js → index-WZhfg_YR.js} +1 -1
  150. package/dist/assets/{index-DTfaSYH-.js → index-tJevWYyz.js} +1 -1
  151. package/dist/assets/{inference-diagnostics-BSkERYeU.js → inference-diagnostics-NkV5meYv.js} +1 -1
  152. package/dist/assets/{ingest-boot-viewport-B-QFBJ6g.js → ingest-boot-viewport-BdEJB2uM.js} +1 -1
  153. package/dist/assets/{ingest-siblings-TkCRCUR2.js → ingest-siblings-DG94tSnt.js} +1 -1
  154. package/dist/assets/{ingest-source-persistence-DN9gOuDo.js → ingest-source-persistence-COuafLsy.js} +1 -1
  155. package/dist/assets/{ingest.service-DgsuOl-Y.js → ingest.service-pguAbjpd.js} +1 -1
  156. package/dist/assets/{inspect-GGdi3GBl.js → inspect-B9obej0m.js} +1 -1
  157. package/dist/assets/instances.command-C8fTOWWQ.js +1 -0
  158. package/dist/assets/{json-history-resource-DK3ag8SZ.js → json-history-resource-BZ-2HcB1.js} +1 -1
  159. package/dist/assets/{layered-pick-D77cWzxT.js → layered-pick-BOuHhOMD.js} +1 -1
  160. package/dist/assets/{light-DiamC2JI.js → light-BhobQdgv.js} +1 -1
  161. package/dist/assets/{live-project-verbs-DOqc6h6B.js → live-project-verbs-BzcIAa92.js} +1 -1
  162. package/dist/assets/{machine.document-C2l_mbNg.js → machine.document-C6KtiVU9.js} +1 -1
  163. package/dist/assets/{machines.finder-DqBxMHcq.js → machines.finder-C4YZxgo1.js} +1 -1
  164. package/dist/assets/{material-Cm1aagBR.js → material-CGLOFkhv.js} +1 -1
  165. package/dist/assets/{material-factory-CT91l-Ev.js → material-factory-B96Hx0uM.js} +1 -1
  166. package/dist/assets/{mesh-BodYg1_O.js → mesh-CXz1SjeE.js} +1 -1
  167. package/dist/assets/{model-asset-sections.service-D398OcWX.js → model-asset-sections.service-ByQd6kq8.js} +1 -1
  168. package/dist/assets/{model-inspection-BHqQizA4.js → model-inspection-vhAtpqOr.js} +1 -1
  169. package/dist/assets/{model-thumbnail-jXI7g9ER.js → model-thumbnail-DKy7aBw4.js} +1 -1
  170. package/dist/assets/{models.finder-LkuwJt6Z.js → models.finder-BQaOk9z2.js} +1 -1
  171. package/dist/assets/{module-mode-5iM4X5lF.js → module-mode-Bvwyb8ON.js} +2 -2
  172. package/dist/assets/{mount-canvas-ingest-root-DddJwDVE.js → mount-canvas-ingest-root-Q_xSSTn4.js} +2 -2
  173. package/dist/assets/{mount-dom-ingest-root-D-mEaGz2.js → mount-dom-ingest-root-cTeFpCss.js} +2 -2
  174. package/dist/assets/{mount-ingest-root-BgDl45i7.js → mount-ingest-root-CzxqWdcJ.js} +2 -2
  175. package/dist/assets/{mount-manifest-D9h72_q7.js → mount-manifest-DpGIVIqZ.js} +1 -1
  176. package/dist/assets/{mount-three-ingest-root-B-i4v5Ya.js → mount-three-ingest-root-DkATi7dX.js} +1 -1
  177. package/dist/assets/{mounted-authoring-BpgoynXg.js → mounted-authoring-_iXvG_-y.js} +1 -1
  178. package/dist/assets/{mounted-story-viewport-source-Bqq08qfZ.js → mounted-story-viewport-source-B3xRhvGK.js} +1 -1
  179. package/dist/assets/{native-debug-module-aC08xCgN.js → native-debug-module-sgSgwV_6.js} +1 -1
  180. package/dist/assets/{navigation-CAr9MQnP.js → navigation-C7N4F7fm.js} +1 -1
  181. package/dist/assets/{navmesh.menu-BfnXCMzh.js → navmesh.menu-GjmPbNmN.js} +1 -1
  182. package/dist/assets/{navmesh.service-9QqjjbWF.js → navmesh.service-C6OOgYOg.js} +1 -1
  183. package/dist/assets/network-observer.service-BYkKwX6g.js +1 -0
  184. package/dist/assets/{network.utility-CUDyuLEP.js → network.utility-DFVzAD3R.js} +1 -1
  185. package/dist/assets/{object3d-document-session-registry-vDnhy6lX.js → object3d-document-session-registry-yZYSi8a_.js} +2 -2
  186. package/dist/assets/{oid-transform-RLdqn59a.js → oid-transform-B2rTU5dE.js} +1 -1
  187. package/dist/assets/{particles-9EXp1_Pi.js → particles-WV7nuue8.js} +1 -1
  188. package/dist/assets/{pixi-authoring-adapter-gCRTOklw.js → pixi-authoring-adapter-DYxqfbtY.js} +1 -1
  189. package/dist/assets/{pixi-live-write-target-BcayVchp.js → pixi-live-write-target-BMM9gTYX.js} +1 -1
  190. package/dist/assets/{play.command-BnpSiUmx.js → play.command-Cw2b6MmY.js} +2 -2
  191. package/dist/assets/{presentation-D6_yw1nT.js → presentation-m9EXagyv.js} +1 -1
  192. package/dist/assets/{product-DIs-l3CO.js → product-DY3NaL48.js} +1 -1
  193. package/dist/assets/{profiler.action-CmUmiNSt.js → profiler.action-AlWZaom2.js} +1 -1
  194. package/dist/assets/{profiler.menu-D4S9vTgT.js → profiler.menu-C2HG4gW2.js} +1 -1
  195. package/dist/assets/{profiler.utility-CbCfMOpc.js → profiler.utility-xcXtWI8M.js} +1 -1
  196. package/dist/assets/{project-authoring-session-B7m5fapk.js → project-authoring-session-COpHfmqX.js} +2 -2
  197. package/dist/assets/{properties-bone-constraints.inspector-rBOIyHQ8.js → properties-bone-constraints.inspector-CYTy1c6d.js} +1 -1
  198. package/dist/assets/{properties-bone.inspector-CgI-JdRg.js → properties-bone.inspector-srx9O7Di.js} +1 -1
  199. package/dist/assets/{properties-collection.inspector-Dd94oxT7.js → properties-collection.inspector-Dz-z_Q4f.js} +1 -1
  200. package/dist/assets/{properties-constraints.inspector-42yDXt2c.js → properties-constraints.inspector-CU09Fq6P.js} +1 -1
  201. package/dist/assets/{properties-data.inspector-FhbaYJwl.js → properties-data.inspector-Cgt6CKvm.js} +1 -1
  202. package/dist/assets/{properties-material.inspector-BGUBjg_W.js → properties-material.inspector-jDhkNUDR.js} +1 -1
  203. package/dist/assets/{properties-modifiers.inspector-B3oGhvi7.js → properties-modifiers.inspector-bcEjEW5a.js} +1 -1
  204. package/dist/assets/{properties-object.inspector-CqWBSVON.js → properties-object.inspector-C7u_OCfm.js} +1 -1
  205. package/dist/assets/{properties-output.inspector-BZf7mteM.js → properties-output.inspector-CRJOBoRT.js} +1 -1
  206. package/dist/assets/{properties-particles.inspector-Bs53y1Sm.js → properties-particles.inspector-BQRy6PnC.js} +1 -1
  207. package/dist/assets/{properties-physics.inspector-CNUC8bl7.js → properties-physics.inspector-kcBc7wis.js} +1 -1
  208. package/dist/assets/{properties-render.inspector-By1QWQfv.js → properties-render.inspector-w2VKl5a0.js} +1 -1
  209. package/dist/assets/{properties-scene.inspector-DIXtsydv.js → properties-scene.inspector-DDZCO3Og.js} +1 -1
  210. package/dist/assets/{properties-texture.inspector-D479AUy3.js → properties-texture.inspector-Cz-imXaI.js} +1 -1
  211. package/dist/assets/{properties-view-layer.inspector-VaD770eE.js → properties-view-layer.inspector-Lnj3xdEk.js} +1 -1
  212. package/dist/assets/{properties-world.inspector-sfBNUA8n.js → properties-world.inspector-DyeshJEW.js} +1 -1
  213. package/dist/assets/{r3f-design-session-DlpToDaY.js → r3f-design-session-b0R___Ze.js} +2 -2
  214. package/dist/assets/{r3f-physics-binding-B6BtiPXD.js → r3f-physics-binding-BeHcRXcx.js} +1 -1
  215. package/dist/assets/{r3f-source-authoring-adapter-BEXkKajQ.js → r3f-source-authoring-adapter-DIKg1AbO.js} +1 -1
  216. package/dist/assets/{react-canvas-navigation-DqDUslGE.js → react-canvas-navigation-DBex6opA.js} +1 -1
  217. package/dist/assets/{react-inspector.service-Dz_MaoFT.js → react-inspector.service--CnSg1fP.js} +1 -1
  218. package/dist/assets/{react-story-board-DfgTHgRH.js → react-story-board-Bfwrt56k.js} +1 -1
  219. package/dist/assets/{react-three-rapier.esm-D0XnU-d2.js → react-three-rapier.esm-CWt9552l.js} +1 -1
  220. package/dist/assets/{react-world-authoring-adapter-4Vvo-2e6.js → react-world-authoring-adapter-Dh-F6SHg.js} +1 -1
  221. package/dist/assets/{realm-services-Da4zOGQS.js → realm-services-CSKI9wWm.js} +1 -1
  222. package/dist/assets/{reflection-probe-capture.inspector-C1bbnrCP.js → reflection-probe-capture.inspector-DTAmb51-.js} +1 -1
  223. package/dist/assets/{registry-Bsyj7dm8.js → registry-Djlt4lA_.js} +1 -1
  224. package/dist/assets/{relative-import-specifier-YRCfVsuM.js → relative-import-specifier-a5wd_Gs0.js} +1 -1
  225. package/dist/assets/{render-env-BRTFhCY7.js → render-env-DgCta-cM.js} +1 -1
  226. package/dist/assets/{render-features-bb8ubx0s.js → render-features-D9IRNSOg.js} +1 -1
  227. package/dist/assets/{render-settings-Fqf-jvIQ.js → render-settings-K5ykAjto.js} +1 -1
  228. package/dist/assets/{resolve-three-w4CIrUSm.js → resolve-three-QtDpVk2v.js} +3 -3
  229. package/dist/assets/{root-seam-contract-DmnuV-sF.js → root-seam-contract-BAJnkEp5.js} +1 -1
  230. package/dist/assets/{run-selection-Dr_bykfM.js → run-selection-BmhnFN7A.js} +1 -1
  231. package/dist/assets/{scene-capture-Bbzc8yKP.js → scene-capture-CPjMfWPb.js} +1 -1
  232. package/dist/assets/{scene-document.service-DYIG75Nq.js → scene-document.service-lXXx86ZY.js} +2 -2
  233. package/dist/assets/{scene-framing-B-_FP6Ut.js → scene-framing-DAsS4rid.js} +1 -1
  234. package/dist/assets/{seeded-random-6Boua3gU.js → seeded-random-BiOJCjoh.js} +1 -1
  235. package/dist/assets/{setup-renderer-BQyZA260.js → setup-renderer-BLHf2o5h.js} +1 -1
  236. package/dist/assets/{source-object3d-authoring-adapter-DL9de1Va.js → source-object3d-authoring-adapter-DCTt6xT1.js} +1 -1
  237. package/dist/assets/{source-persistence-backend-DewVkjlh.js → source-persistence-backend-BizSv5Yp.js} +1 -1
  238. package/dist/assets/{stage-keyboard-HJnRMUB0.js → stage-keyboard-9hdCldtL.js} +1 -1
  239. package/dist/assets/{stage-overlay-set-sWfIFF0c.js → stage-overlay-set-DK8sGIBe.js} +1 -1
  240. package/dist/assets/{stage-presence-markers-DO_0suOG.js → stage-presence-markers-Bu19oyb3.js} +1 -1
  241. package/dist/assets/{stage-transform-tools-BlKxngg6.js → stage-transform-tools-BWs1sSub.js} +1 -1
  242. package/dist/assets/{standard-viewport-dressing-BB3oarbU.js → standard-viewport-dressing-3h78wiJH.js} +1 -1
  243. package/dist/assets/{state-watch.action-EzcFvsFk.js → state-watch.action-X_hXCJzX.js} +1 -1
  244. package/dist/assets/{state-watch.menu-kxlh1uyM.js → state-watch.menu-B33dSJ7V.js} +1 -1
  245. package/dist/assets/{state-watch.utility-DOU5aewm.js → state-watch.utility-CS3p0R5B.js} +1 -1
  246. package/dist/assets/{story-capture-CR33MAlM.js → story-capture-BBg5pgKT.js} +1 -1
  247. package/dist/assets/{story-documents-BqtBYJU5.js → story-documents-q5m3c_wY.js} +1 -1
  248. package/dist/assets/{story-documents.service-PN__2Vwy.js → story-documents.service-BtNfViZy.js} +1 -1
  249. package/dist/assets/{story-documents.service-rQ_Ls1gK.js → story-documents.service-Dwsqu7bW.js} +1 -1
  250. package/dist/assets/{story-media-presence-C9WsqvF1.js → story-media-presence-hCARiVUc.js} +1 -1
  251. package/dist/assets/{story-pixi-preview-Ct670XW9.js → story-pixi-preview-CMwSxREi.js} +1 -1
  252. package/dist/assets/{story-presentation-Upbu0VNj.js → story-presentation--uk_0JJX.js} +1 -1
  253. package/dist/assets/{story-three-preview-CxTd9JLC.js → story-three-preview-lkPW7Mla.js} +2 -2
  254. package/dist/assets/{studio-environment-Cd4gZ19E.js → studio-environment-ByTLZM6a.js} +1 -1
  255. package/dist/assets/{surface-state-BC0XhEhr.js → surface-state-GPRTCWsc.js} +1 -1
  256. package/dist/assets/{syntactic-prop-specs-B6T1puzS.js → syntactic-prop-specs-BZ2T0Dju.js} +1 -1
  257. package/dist/assets/{team-playtest.service-fSMY4xMj.js → team-playtest.service-COi4KAFM.js} +1 -1
  258. package/dist/assets/{three-Dn9l05gu.js → three-B95eDXwg.js} +1 -1
  259. package/dist/assets/{three-authoring-adapter-CqVDkiLM.js → three-authoring-adapter-mRgWq9dH.js} +1 -1
  260. package/dist/assets/three-authoring.service-DYHH4MQS.js +2 -0
  261. package/dist/assets/{three-ingest-runtime-CFMYasF0.js → three-ingest-runtime-CSUpmThV.js} +1 -1
  262. package/dist/assets/{three-integration-Bh7cgwSw.js → three-integration-DPryzrWM.js} +2 -2
  263. package/dist/assets/three-integration.service-Bxn19GhH.js +1 -0
  264. package/dist/assets/{three-projection-core-Fgwnmm21.js → three-projection-core-C6Fuom2Z.js} +1 -1
  265. package/dist/assets/{three-state-gQo3EazJ.js → three-state-BjGdd42C.js} +1 -1
  266. package/dist/assets/{three-story-capture.service-jugeCDMf.js → three-story-capture.service-BguWqBuW.js} +2 -2
  267. package/dist/assets/{three-story-model-DDgoS41c.js → three-story-model-BcQRzfG1.js} +1 -1
  268. package/dist/assets/{three-viewport-presentation-DackTu4a.js → three-viewport-presentation-PE5VLtVN.js} +1 -1
  269. package/dist/assets/{transform-mode-request-Dlk8rujB.js → transform-mode-request-DrXkGR49.js} +1 -1
  270. package/dist/assets/{transport-strip-YFt7ZjmA.js → transport-strip-B9M8lv_7.js} +1 -1
  271. package/dist/assets/transport.header--skZwiFx.js +1 -0
  272. package/dist/assets/{tuples-BGWQyZrY.js → tuples-B5xEbsBJ.js} +1 -1
  273. package/dist/assets/{ui-board-document-wsRl7Yf9.js → ui-board-document-Bp7xB2i3.js} +2 -2
  274. package/dist/assets/{user-data-C7ZxvlAw.js → user-data-BCzozK6p.js} +1 -1
  275. package/dist/assets/{utility-view-state-DIdFDVi_.js → utility-view-state-LNjKjbXt.js} +1 -1
  276. package/dist/assets/{viewport-door-xlONSuW6.js → viewport-door-876vvdh-.js} +1 -1
  277. package/dist/assets/{viewport-root-presentation-CAuRhbzi.js → viewport-root-presentation-DjeK1HDN.js} +1 -1
  278. package/dist/assets/{viewport-surface-status-BZEtUgIK.js → viewport-surface-status-Cu-MsQ9Z.js} +1 -1
  279. package/dist/assets/{webworkerAll-lUo1f2sd.js → webworkerAll-Cby9Al9A.js} +1 -1
  280. package/dist/assets/{workspace-arrangement-Zhi2X4Jp.js → workspace-arrangement-DTpl9s7F.js} +1 -1
  281. package/dist/assets/{world-documents-D__7dXZa.js → world-documents-DYaA8YwM.js} +1 -1
  282. package/dist/assets/{world-root-stage-binding-l_c1d3oP.js → world-root-stage-binding-pOiqC5Pw.js} +1 -1
  283. package/dist/assets/{xstate-animation-binding-Bi9Vve8M.js → xstate-animation-binding-Dlgd2kK4.js} +1 -1
  284. package/dist/assets/{xstate-animation-meta-Bqeos4Cl.js → xstate-animation-meta-OTs0c50R.js} +1 -1
  285. package/dist-node/cli.js +16 -16
  286. package/package.json +16 -16
  287. package/dist/assets/InspectorObjectPreview-ujIlh9jg.js +0 -1
  288. package/dist/assets/Object3DDocumentViewport-eBsy48lc.js +0 -2
  289. package/dist/assets/StageHost-CguREjuZ.js +0 -2
  290. package/dist/assets/autoplay.service-DeZe2vAE.js +0 -1
  291. package/dist/assets/instances.command-B3MdRAev.js +0 -1
  292. package/dist/assets/network-observer.service-C4DDtQHI.js +0 -1
  293. package/dist/assets/three-authoring.service-DwTkH66T.js +0 -2
  294. package/dist/assets/three-integration.service-CVsHdd9k.js +0 -1
  295. package/dist/assets/transport.header-DuWl93MH.js +0 -1
@@ -1 +1 @@
1
- import{ab as a}from"./index-C2GXej5w.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-Bx7DaYNP.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-aC08xCgN.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-CzOk-_B9.js";import"./contract-system-adapters-DGSvuYKd.js";import"./game-contract-seams-BJlyuEmz.js";import"./seeded-random-6Boua3gU.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-DmeaOP4r.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-DzuOGwVB.js";import"./live-project-verbs-DOqc6h6B.js";import"./capability-coverage-DHlcB_NJ.js";import"./edit-mode-authoring-CpCwKmxw.js";import"./json-history-resource-DK3ag8SZ.js";import"./binding-resolver-BKmJAnHI.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-Da4zOGQS.js";import"./canvas-entry-runtime-BNKkUKUz.js";import"./three-ingest-runtime-CFMYasF0.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-xHJ3iPnn.js";import"./ingest-source-persistence-DN9gOuDo.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-CAuRhbzi.js";import"./mounted-authoring-BpgoynXg.js";import"./entity-object-BI6v1FBv.js";import"./user-data-C7ZxvlAw.js";import"./workspace-arrangement-Zhi2X4Jp.js";import"./three-contract-Dkt6PmWY.js";import"./three-Dn9l05gu.js";import"./editor-layers-Cr7_OURc.js";import"./component-instance-root-Tn61X_7Z.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-CqVDkiLM.js";import"./source-persistence-backend-DewVkjlh.js";import"./three-projection-core-Fgwnmm21.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-B6BtiPXD.js";import"./deferred-ingest-play-D9BvhZe1.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-4Vvo-2e6.js";import"./board-guides-BDt1DXyh.js";import"./relative-import-specifier-YRCfVsuM.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-GGdi3GBl.js";import"./inference-diagnostics-BSkERYeU.js";import"./writer-tw6EcuVO.js";import"./three-state-gQo3EazJ.js";import"./editor-shell-store-02yQ59Xe.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-xlONSuW6.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-C3IEVwzA.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-CbiXm5Hs.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-sgSgwV_6.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-7glJb2_c.js";import"./contract-system-adapters-Da68ESRl.js";import"./game-contract-seams-WtNxnhc2.js";import"./seeded-random-BiOJCjoh.js";import"./game-audio-BeCyd0Ha.js";import"./rapier-physics-adapter-CaZqWLu0.js";import"./events-156d8d12.esm-DmeaOP4r.js";import"./three.module-BLhyNg0e.js";import"./three.core-3arARmh6.js";import"./index-DzuOGwVB.js";import"./live-project-verbs-BzcIAa92.js";import"./capability-coverage-CNP_jAZY.js";import"./edit-mode-authoring-8sn7p4nG.js";import"./json-history-resource-BZ-2HcB1.js";import"./binding-resolver-BWwofL-w.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-CSKI9wWm.js";import"./canvas-entry-runtime-C5mQcqUX.js";import"./three-ingest-runtime-CSUpmThV.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-D93pvHUb.js";import"./ingest-source-persistence-COuafLsy.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-DjeK1HDN.js";import"./mounted-authoring-_iXvG_-y.js";import"./entity-object-DC80r4hW.js";import"./user-data-BCzozK6p.js";import"./workspace-arrangement-DTpl9s7F.js";import"./three-contract-Dkt6PmWY.js";import"./three-B95eDXwg.js";import"./editor-layers-D3afd2Rj.js";import"./component-instance-root-MaXT-9eH.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-mRgWq9dH.js";import"./source-persistence-backend-BizSv5Yp.js";import"./three-projection-core-C6Fuom2Z.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-BeHcRXcx.js";import"./deferred-ingest-play-CU5GjqVu.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-Dh-F6SHg.js";import"./board-guides-5y4zeqX7.js";import"./relative-import-specifier-a5wd_Gs0.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-B9obej0m.js";import"./inference-diagnostics-NkV5meYv.js";import"./writer-tw6EcuVO.js";import"./three-state-BjGdd42C.js";import"./editor-shell-store-BNIOyldX.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-876vvdh-.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-C2GXej5w.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-C3IEVwzA.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-C2GXej5w.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-jXI7g9ER.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-D7p3x7Wz.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-Cd4gZ19E.js";import"./user-data-C7ZxvlAw.js";import"./workspace-arrangement-Zhi2X4Jp.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-C3IEVwzA.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-DKy7aBw4.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-BEJk23Cn.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-ByTLZM6a.js";import"./user-data-BCzozK6p.js";import"./workspace-arrangement-DTpl9s7F.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-C2GXej5w.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-C3IEVwzA.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-C2GXej5w.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-D7p3x7Wz.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-C3IEVwzA.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-BEJk23Cn.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-Zhi2X4Jp.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-DTpl9s7F.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-C2GXej5w.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-C3IEVwzA.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{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-C2GXej5w.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-DmnuV-sF.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-C3IEVwzA.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-BAJnkEp5.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 +1 @@
1
- import{C as f,i as c,e as x,u as d}from"./extend-Dp46wu5_.js";import{A as z,a as B,c as D}from"./extend-Dp46wu5_.js";import{A as k}from"./index-NpxPcVFJ.js";import{r as s}from"./index-nmcBqr7Y.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-DzuOGwVB.js";import"./index-D_NuPfjr.js";import"./index-C2GXej5w.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";function A(){const t=s.useContext(f);return c(t.app instanceof k,"No Context found with `%s`. Make sure to wrap component with `%s`","Application","AppProvider"),t}function R(t){s.useMemo(()=>{x(t)},[t])}function T(t){const{app:p,isInitialised:n}=A();let e,o,i=!0,r;typeof t=="function"?e=t:(e=t.callback,o=t.context,i=t.isEnabled??!0,r=t.priority),c(),d(()=>{if(n){const a=p?.ticker,l=i,m=o,u=e;return i&&a&&a.add(e,o,r),()=>{l&&a?.remove(u,m)}}},[p?.ticker,e,o,i,n,r])}export{z as Application,B as applyProps,D as createRoot,x as extend,A as useApplication,R as useExtend,T as useTick};
1
+ import{C as f,i as c,e as x,u as d}from"./extend-OjmwIbqx.js";import{A as z,a as B,c as D}from"./extend-OjmwIbqx.js";import{A as k}from"./index-D6MeIqnu.js";import{r as s}from"./index-nmcBqr7Y.js";import"./jsx-runtime-DPjLkJKQ.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./index-DzuOGwVB.js";import"./index-D_NuPfjr.js";import"./index-C3IEVwzA.js";import"./index-CtzuWnCS.js";import"./index-CinJrH5C.js";import"./index-FUuS4qwW.js";import"./client-DNXj_opT.js";function A(){const t=s.useContext(f);return c(t.app instanceof k,"No Context found with `%s`. Make sure to wrap component with `%s`","Application","AppProvider"),t}function R(t){s.useMemo(()=>{x(t)},[t])}function T(t){const{app:p,isInitialised:n}=A();let e,o,i=!0,r;typeof t=="function"?e=t:(e=t.callback,o=t.context,i=t.isEnabled??!0,r=t.priority),c(),d(()=>{if(n){const a=p?.ticker,l=i,m=o,u=e;return i&&a&&a.add(e,o,r),()=>{l&&a?.remove(u,m)}}},[p?.ticker,e,o,i,n,r])}export{z as Application,B as applyProps,D as createRoot,x as extend,A as useApplication,R as useExtend,T as useTick};