@volter/game-editor 0.5.134 → 0.5.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/BUNDLED_NOTICES +22 -22
  2. package/catalog/entries/blender.json +2 -2
  3. package/catalog/entries/music.json +2 -2
  4. package/dist/.vite/manifest.json +2194 -2194
  5. package/dist/assets/{AssetBudgetPanel-DBREVH7K.js → AssetBudgetPanel-DHDxdcjI.js} +3 -3
  6. package/dist/assets/{AudioViewer-BfG1UANw.js → AudioViewer-BNZQHDg4.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-BUO8VIFd.js → CanvasBoardDocument-hKTAuRey.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-Cyi5VmpW.js → CanvasSceneViewport-C2K4aFsE.js} +1 -1
  9. package/dist/assets/{ColorInput-urXoYDcd.js → ColorInput-BiEIV7ay.js} +1 -1
  10. package/dist/assets/{ColorPicker-fsO53K3F.js → ColorPicker-tL7QuZuq.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-CDCx-hf_.js → EntityModelDocument-5D4_EJ1V.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-BBYZhvSA.js → EnvironmentAssetDocument-DGwonjpr.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-3YMetB-b.js → GameplaySessionTimeline-aU04h32D.js} +1 -1
  14. package/dist/assets/{ImageViewer-DvXVm5yL.js → ImageViewer-B_EV4B-Y.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-BWtsOURe.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-C9Mkxozv.js → JsonAssetDocument-CI-VEvHK.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-CblUPJ_-.js → LiveModuleDocument-A55_Ap0w.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-BiQlc5zQ.js → LutAssetDocument-C0D23zLT.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-BjdNPMXz.js → ModelAssetDocument-C2Iwdl51.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-B3TVSWs6.js → NonThreeAuthoringBootstrap-CcN-v_vU.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-BzWMEadR.js → Object3DDocumentToolbar-CmQ2FwOD.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-nrhxhWxf.js +2 -0
  23. package/dist/assets/{Object3DPreview-DKrmYZ2j.js → Object3DPreview-BdNrtrgI.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-DL4Uk-QM.js → OnlineAssetDetail-Bt3SSxk5.js} +1 -1
  25. package/dist/assets/{PlayBar-CRGQfcnV.js → PlayBar-IaADBOOU.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-BZR-t9h6.js → QuarksAssetDocument-DIruslou.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-_hNcHTPM.js → ReactCanvasControls-BpPOAB1i.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-DbaLtdxe.js → RootSelectionOverlay-Bha7b7g8.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-D5ttIEe-.js → ShaderAssetDocument-DvHNu5O2.js} +1 -1
  30. package/dist/assets/{ShadowEditor-DrodXLYb.js → ShadowEditor-LF5W34RB.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-B0gaMP54.js → SourceAssetViewer-CuinHm6v.js} +1 -1
  32. package/dist/assets/StageHost-C8sptoIR.js +2 -0
  33. package/dist/assets/{StoryPreviewMount-Dd_vJhm8.js → StoryPreviewMount-BMTtfMsu.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-y_Z0EIcX.js → ThreeBoardDocument-1LIOqdcA.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent--4LRLfuN.js → ThreeIsolationSceneContent-D-viEHX8.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-DESJToBG.js → ToolObject3DPreview-CoSjBUeM.js} +1 -1
  37. package/dist/assets/{Toolbar-CdoTE42L.js → Toolbar-BCviZ4hw.js} +1 -1
  38. package/dist/assets/{TransientHint-KoS0JmOy.js → TransientHint-xKLY44J3.js} +1 -1
  39. package/dist/assets/{VideoViewer-ClPX-MnP.js → VideoViewer-Ccuo8SbQ.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-IEeWeBgg.js → ViewportShadingMenu-2cP_H7Ma.js} +1 -1
  41. package/dist/assets/{active-ingest-D5MyeUO-.js → active-ingest-5EEDH3if.js} +2 -2
  42. package/dist/assets/{animation-clock-QSEFZjOZ.js → animation-clock-D9LB5smr.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-CIQ1NwlZ.js → animation-mixers.service-CpAQO3GY.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-DclbOIQU.js → animation-timeline.utility-BI25zuOA.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-B_RUb8LB.js → asset-budget-asset.menu-cpAHllXs.js} +1 -1
  46. package/dist/assets/{asset-budget.action-BVZkCIk9.js → asset-budget.action-D91HsFo6.js} +1 -1
  47. package/dist/assets/{asset-budget.document-BxZVPKFn.js → asset-budget.document-DKhAbxa-.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-BNvhZjmV.js → asset-budget.menu-Dv_hRhqg.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-X5GOGEx5.js → asset-editor-persistence-DvrmJ4jX.js} +1 -1
  50. package/dist/assets/{asset-loaders-F8EI8K4Y.js → asset-loaders-DmsTVRFA.js} +1 -1
  51. package/dist/assets/{asset-preview-Cl6-TRBJ.js → asset-preview-DVSFT7SS.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-CKCbQfPn.js → audio-unlock.service-D_hgqktK.js} +1 -1
  53. package/dist/assets/{audio.utility-DGMFI8Wt.js → audio.utility-BZi7S3On.js} +1 -1
  54. package/dist/assets/autoplay.service-t1c91HxR.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-2siMeodm.js → babylon-authoring-adapter-BJIGsMEZ.js} +1 -1
  56. package/dist/assets/{binding-resolver-Clp4dXl1.js → binding-resolver-yBwth89-.js} +2 -2
  57. package/dist/assets/blender-motion-worker-ECrqnoHW.js +1 -0
  58. package/dist/assets/{blender-node-editor.document-CQIYeO4U.js → blender-node-editor.document-DolFex2j.js} +1 -1
  59. package/dist/assets/{blender-properties-tab-DqqNZUGP.js → blender-properties-tab-Be5MXZig.js} +1 -1
  60. package/dist/assets/{blender-runtime-host-Dwdi6rRu.js → blender-runtime-host-BQ22-Fpm.js} +1 -1
  61. package/dist/assets/{blender-runtime-skin-Bd4w1lC7.js → blender-runtime-skin-DKHV6b2q.js} +43 -43
  62. package/dist/assets/{blender-runtime.document-DzBO4ST4.js → blender-runtime.document-L66K1h2q.js} +2 -2
  63. package/dist/assets/{blender-screenshot.menu-CkxyIS0r.js → blender-screenshot.menu-B_olV65B.js} +1 -1
  64. package/dist/assets/{blender-timeline.document-B1tyOGDy.js → blender-timeline.document-OeW12fJm.js} +1 -1
  65. package/dist/assets/{blender-uv-editor.document-9ZvlBYHd.js → blender-uv-editor.document-CCE1_Fjr.js} +1 -1
  66. package/dist/assets/{blender-version.status-D4M0ZmWc.js → blender-version.status-CcNWuPxA.js} +1 -1
  67. package/dist/assets/{blender.command-iGuVGF9p.js → blender.command-gGyT3A0Q.js} +1 -1
  68. package/dist/assets/{board-guides-CxSLXJuc.js → board-guides-CIhq0Sbd.js} +1 -1
  69. package/dist/assets/{bridge.command-B7LDeF0u.js → bridge.command-Du9l4KRx.js} +3 -3
  70. package/dist/assets/{browserAll-dZH4FGVs.js → browserAll-DEgvPd5A.js} +1 -1
  71. package/dist/assets/{build-player.document-Dnu4oIqU.js → build-player.document-yRmbh7W2.js} +1 -1
  72. package/dist/assets/{build-profiles.document-CVrNm6v9.js → build-profiles.document-D2MP3imJ.js} +1 -1
  73. package/dist/assets/{build-progress.status-P0RSr9My.js → build-progress.status-QY6WMyc4.js} +1 -1
  74. package/dist/assets/{build-session-BQkdRehF.js → build-session-DC5GZ3DQ.js} +1 -1
  75. package/dist/assets/{build.action-D-KSIYX6.js → build.action-B7wUwNnJ.js} +1 -1
  76. package/dist/assets/{build.command-DyKprFPn.js → build.command-BWsI5Ueg.js} +1 -1
  77. package/dist/assets/{build.header-cJKcpxbO.js → build.header-tZ0wvQLR.js} +1 -1
  78. package/dist/assets/{build.menu-C0GriW-y.js → build.menu-B5JhkoT1.js} +1 -1
  79. package/dist/assets/{build.service-czCQ8i_m.js → build.service-DU0G9SvZ.js} +1 -1
  80. package/dist/assets/{camera-B-6JYcrc.js → camera-B16bx30W.js} +1 -1
  81. package/dist/assets/{camera-runtime.inspector-CUxYlsOe.js → camera-runtime.inspector--8LumKgx.js} +1 -1
  82. package/dist/assets/{canvas-design-mount-B9fNsxCy.js → canvas-design-mount-DLpUud4y.js} +3 -3
  83. package/dist/assets/{canvas-entry-runtime-DMxmlXgn.js → canvas-entry-runtime-Btln7THA.js} +2 -2
  84. package/dist/assets/{canvas-preview-frames-CeSkpTOo.js → canvas-preview-frames-hUiRfTNo.js} +1 -1
  85. package/dist/assets/{canvas-story-capture.service-B0v6Hgsb.js → canvas-story-capture.service-D4Uk1AxK.js} +2 -2
  86. package/dist/assets/{capability-coverage-BnIBnsu6.js → capability-coverage-3wZkRo7W.js} +1 -1
  87. package/dist/assets/{collaboration-presence-DMUWVR-Y.js → collaboration-presence-CCL71T0o.js} +1 -1
  88. package/dist/assets/{collider-B3R33xSA.js → collider-CbxsgmWL.js} +1 -1
  89. package/dist/assets/{component-board.service-N2L18UE3.js → component-board.service-CXwworM0.js} +2 -2
  90. package/dist/assets/{component-board.service-BqyyULpE.js → component-board.service-ChMB-pU1.js} +2 -2
  91. package/dist/assets/{component-board.service-BOu_0moJ.js → component-board.service-CwevhTxY.js} +2 -2
  92. package/dist/assets/{component-contracts.service-SAYJL3m5.js → component-contracts.service-B3Yrn-qm.js} +1 -1
  93. package/dist/assets/{component-instance-root-Csn_jFKu.js → component-instance-root-DsmCGX40.js} +1 -1
  94. package/dist/assets/{component-verbs.command-DO3ErJvX.js → component-verbs.command-BXQ96Jx4.js} +1 -1
  95. package/dist/assets/{component-verbs.service-N2PkecVi.js → component-verbs.service-ByTx_24k.js} +1 -1
  96. package/dist/assets/{config-BfMPkgbX.js → config-CmlogGx1.js} +2 -2
  97. package/dist/assets/{configurations-CFU-Dhza.js → configurations-Dm-0m9Xo.js} +1 -1
  98. package/dist/assets/{connection.status-CADD42l1.js → connection.status-BXgUyNWa.js} +1 -1
  99. package/dist/assets/{constraints.inspector-DsPRZ_7o.js → constraints.inspector-29yLh17h.js} +1 -1
  100. package/dist/assets/{content-bounds-eP0tmLbj.js → content-bounds-CKyqwWXn.js} +1 -1
  101. package/dist/assets/{contract-system-adapters-B6e3eEm4.js → contract-system-adapters-kobU6S3P.js} +1 -1
  102. package/dist/assets/{coverage.service-CJzGwfqz.js → coverage.service-BxQTn5sd.js} +1 -1
  103. package/dist/assets/{create-runtime-BK5setuG.js → create-runtime-BGWCDacY.js} +1 -1
  104. package/dist/assets/{curve-CTOtUBlv.js → curve-BiV0q4A3.js} +1 -1
  105. package/dist/assets/{data-asset-Cet7XPkK.js → data-asset-DdXXV51u.js} +1 -1
  106. package/dist/assets/{data-ref-DR-Qzemy.js → data-ref-DtKM0ekt.js} +1 -1
  107. package/dist/assets/{debug-bridge-Cf3LI-DK.js → debug-bridge-jmCDlPiX.js} +1 -1
  108. package/dist/assets/{debug-registry-BOPmuIUp.js → debug-registry-Be63j2Mr.js} +1 -1
  109. package/dist/assets/{deferred-ingest-play-Cf5GxuCA.js → deferred-ingest-play-D1FWeSDi.js} +2 -2
  110. package/dist/assets/{design-time-canvas-mount-DrZEhuLt.js → design-time-canvas-mount-C2ZWDlkZ.js} +2 -2
  111. package/dist/assets/{design-time-layers-bDxNuQrn.js → design-time-layers-BQa8hlgL.js} +1 -1
  112. package/dist/assets/{design-time-mount.service-je1c-KMA.js → design-time-mount.service-CVJWtupB.js} +2 -2
  113. package/dist/assets/{design-time-mount.service-CpKFUnyD.js → design-time-mount.service-CvGlSAKG.js} +2 -2
  114. package/dist/assets/{design-time-react-mount-BA5iKaF-.js → design-time-react-mount-COx2oYkW.js} +1 -1
  115. package/dist/assets/{document-preview-three-gkEVqHtw.js → document-preview-three-CbIS_Aca.js} +1 -1
  116. package/dist/assets/{dom-authoring-adapter-Bj2xilqO.js → dom-authoring-adapter-tQBQ_1xs.js} +1 -1
  117. package/dist/assets/{draco3d-DvlGNNIt.js → draco3d-C_nv0vSu.js} +1 -1
  118. package/dist/assets/{edit-mode-audio.service-CmfXIYXD.js → edit-mode-audio.service-NlZIq_ZD.js} +1 -1
  119. package/dist/assets/{edit-mode-authoring-CL-UHzaJ.js → edit-mode-authoring-DbcZXYOM.js} +1 -1
  120. package/dist/assets/{edit-mode-networking.service-Bc8In_lI.js → edit-mode-networking.service-BYO3SvM8.js} +1 -1
  121. package/dist/assets/{editor-api-BYvld5jR.js → editor-api-DU9Nbpm5.js} +1 -1
  122. package/dist/assets/{editor-layers-CH7HhT0X.js → editor-layers-_Gcy52mS.js} +1 -1
  123. package/dist/assets/{editor-shell-store-amyZ1RI8.js → editor-shell-store-DcbczB-I.js} +1 -1
  124. package/dist/assets/{entity-object-3G5QPQLw.js → entity-object-hOX0jkMo.js} +1 -1
  125. package/dist/assets/{extend-DjlabNLr.js → extend-BFa8yX2b.js} +1 -1
  126. package/dist/assets/{fork-menu-B8yfLOUH.js → fork-menu-DnlFd3lk.js} +1 -1
  127. package/dist/assets/{frame-debugger-store-BV3FLhEY.js → frame-debugger-store-DvIUfGjd.js} +1 -1
  128. package/dist/assets/{game-contract-seams-BDgW-mIt.js → game-contract-seams-CB0AOLdl.js} +1 -1
  129. package/dist/assets/{game-css-scope-transform-DhJl2A8e.js → game-css-scope-transform-BePfCj3N.js} +1 -1
  130. package/dist/assets/{game-document.service-DAUO1T0i.js → game-document.service-Y4MCpEG2.js} +1 -1
  131. package/dist/assets/{game-eval.command-Cio3Dkxy.js → game-eval.command-DLlHsT-7.js} +1 -1
  132. package/dist/assets/{game-module-access-PdJNp8US.js → game-module-access-nUAwk1dj.js} +1 -1
  133. package/dist/assets/{game-network-BURPV4Ya.js → game-network-BNeDxziF.js} +3 -3
  134. package/dist/assets/{gameplay-export-D5hkueX8.js → gameplay-export-Bo-oK6Gq.js} +1 -1
  135. package/dist/assets/{gameplay-replay-Cv7zCCW5.js → gameplay-replay-0cZ9wkDO.js} +1 -1
  136. package/dist/assets/{gameplay.command-B1TFqBle.js → gameplay.command-rqy8cEAf.js} +1 -1
  137. package/dist/assets/{generation-jobs-BU0DwlfA.js → generation-jobs-DNAW8eNU.js} +1 -1
  138. package/dist/assets/{generation.service-BS-sYsoC.js → generation.service-CR9vGnlh.js} +1 -1
  139. package/dist/assets/{generations-CtI5Nfto.js → generations-gowHWx4e.js} +1 -1
  140. package/dist/assets/{generations.status-Bckm5TSn.js → generations.status-Dhp03MBg.js} +1 -1
  141. package/dist/assets/{hierarchy-marks-R3bbWFw8.js → hierarchy-marks-DYUvG4lt.js} +1 -1
  142. package/dist/assets/{hosted-asset-materialization-B0P9Dz4H.js → hosted-asset-materialization-ick1zhVG.js} +1 -1
  143. package/dist/assets/{index-CtcNtXoD.js → index-B0UXNGe3.js} +1 -1
  144. package/dist/assets/{index-DZsMLhE7.js → index-BJd--nme.js} +1 -1
  145. package/dist/assets/{index-CQI0xONY.js → index-BSF96KzC.js} +1 -1
  146. package/dist/assets/{index-DgwfPo6P.js → index-By7rtNst.js} +1 -1
  147. package/dist/assets/{index-cFAgtv_D.js → index-C6b9kkV0.js} +7 -7
  148. package/dist/assets/{index-BU18Vn_5.js → index-CIJAwE7l.js} +2 -2
  149. package/dist/assets/{index-BiGppEbl.js → index-Cq-3G_01.js} +1 -1
  150. package/dist/assets/{index-CItI0GWb.js → index-Cvqad4qf.js} +1 -1
  151. package/dist/assets/{index-D5LetU3U.js → index-DN_ydMe4.js} +1 -1
  152. package/dist/assets/{inference-diagnostics-BU6iwPab.js → inference-diagnostics-DNhFOXFZ.js} +1 -1
  153. package/dist/assets/{ingest-boot-viewport-0qgtwykF.js → ingest-boot-viewport-Di4Sb09a.js} +1 -1
  154. package/dist/assets/{ingest-siblings-DpZO2cN7.js → ingest-siblings-BmG05Dep.js} +1 -1
  155. package/dist/assets/{ingest-source-persistence-DM1yk0WC.js → ingest-source-persistence-Dz_7hVqh.js} +1 -1
  156. package/dist/assets/{ingest.service-Q6KfT5gU.js → ingest.service-BGGBXhbP.js} +1 -1
  157. package/dist/assets/{inspect-DTtq2ZaM.js → inspect-BRJFBB2z.js} +1 -1
  158. package/dist/assets/instances.command-q-B_dgED.js +1 -0
  159. package/dist/assets/{json-history-resource-Bzmw9S9j.js → json-history-resource-D4GYZYcB.js} +1 -1
  160. package/dist/assets/{layered-pick-DpPgGsmw.js → layered-pick-D1CaaJD4.js} +1 -1
  161. package/dist/assets/{light-CqdOel9A.js → light-DY_lN4WQ.js} +1 -1
  162. package/dist/assets/{live-project-verbs-Dk8dl25b.js → live-project-verbs-BVyxYNhA.js} +1 -1
  163. package/dist/assets/{machine.document-CkmCGbrt.js → machine.document-ChSDKagD.js} +1 -1
  164. package/dist/assets/{machines.finder-CmTp1FpN.js → machines.finder-zJZEKJbn.js} +1 -1
  165. package/dist/assets/{material-BeA_YaoR.js → material-DOuhah-I.js} +1 -1
  166. package/dist/assets/{material-factory-D8NblM4k.js → material-factory-DCAwUIMb.js} +1 -1
  167. package/dist/assets/{mesh-DcSKml6N.js → mesh-BBgqQ4tw.js} +1 -1
  168. package/dist/assets/{model-asset-sections.service-CslipfqH.js → model-asset-sections.service-D5_Qnu8F.js} +1 -1
  169. package/dist/assets/{model-inspection-BOADEfEi.js → model-inspection-Ce70HeHy.js} +1 -1
  170. package/dist/assets/{model-thumbnail-CtcWoVlh.js → model-thumbnail-oBpbFAcj.js} +1 -1
  171. package/dist/assets/{models.finder-CLSmgLM0.js → models.finder-DnEKW1nB.js} +1 -1
  172. package/dist/assets/{module-mode-CWaM_UjF.js → module-mode-Z2Pw8_cG.js} +2 -2
  173. package/dist/assets/{mount-canvas-ingest-root-h6iaPwvu.js → mount-canvas-ingest-root-q8qGzO0M.js} +2 -2
  174. package/dist/assets/{mount-dom-ingest-root-Dv9w9jVQ.js → mount-dom-ingest-root-mqtEmyUH.js} +2 -2
  175. package/dist/assets/{mount-ingest-root-BmowXjnM.js → mount-ingest-root-CnknLsAH.js} +2 -2
  176. package/dist/assets/{mount-manifest-DT-5TZIO.js → mount-manifest-RVw-dK1A.js} +1 -1
  177. package/dist/assets/{mount-three-ingest-root-yUA3l6cH.js → mount-three-ingest-root-B4T-Y3Qv.js} +1 -1
  178. package/dist/assets/{mounted-authoring-8UW6roGY.js → mounted-authoring-BW8axnm4.js} +1 -1
  179. package/dist/assets/{mounted-story-viewport-source-TLKhxhBG.js → mounted-story-viewport-source-bf12XIaz.js} +1 -1
  180. package/dist/assets/{native-debug-module-DCkYCR9b.js → native-debug-module-Be_Zu0XE.js} +1 -1
  181. package/dist/assets/{navigation-Bwy6QgMh.js → navigation-U-2TvMMp.js} +1 -1
  182. package/dist/assets/{navmesh.menu-D4slOhpR.js → navmesh.menu-Dwv0BlFc.js} +1 -1
  183. package/dist/assets/{navmesh.service-Bg26JytG.js → navmesh.service-D0WfDvfc.js} +1 -1
  184. package/dist/assets/network-observer.service-Bp4Pp-ZK.js +1 -0
  185. package/dist/assets/{network.utility-BDVzqEpk.js → network.utility-DqtzEO6P.js} +1 -1
  186. package/dist/assets/{object3d-document-session-registry-CYplHMV_.js → object3d-document-session-registry--r1BseN3.js} +2 -2
  187. package/dist/assets/{oid-transform-DuoR1Fev.js → oid-transform-i2EGkRgu.js} +1 -1
  188. package/dist/assets/{particles-Bmg7sImx.js → particles-B-kl7baZ.js} +1 -1
  189. package/dist/assets/{pixi-authoring-adapter-DYnS9D_i.js → pixi-authoring-adapter-B0XPfm9f.js} +1 -1
  190. package/dist/assets/{pixi-live-write-target-D98dSXxp.js → pixi-live-write-target-DKSUcwat.js} +1 -1
  191. package/dist/assets/{play.command-DuMFJnmM.js → play.command-ov-jkz3c.js} +2 -2
  192. package/dist/assets/{presentation-CtIeUSei.js → presentation-DHSxfQfh.js} +1 -1
  193. package/dist/assets/{product-DFXPvo0c.js → product-CCDSVopY.js} +1 -1
  194. package/dist/assets/{profiler.action-CRth9CZ2.js → profiler.action-CoEPogPx.js} +1 -1
  195. package/dist/assets/{profiler.menu-BTUS2V4D.js → profiler.menu-HOvnHzpD.js} +1 -1
  196. package/dist/assets/{profiler.utility-CXKvIhYY.js → profiler.utility-DArumoBa.js} +1 -1
  197. package/dist/assets/{project-authoring-session-olZausJQ.js → project-authoring-session-OdoqMUaI.js} +2 -2
  198. package/dist/assets/{properties-bone-constraints.inspector-B8eVEgQs.js → properties-bone-constraints.inspector-B6sFLmg_.js} +1 -1
  199. package/dist/assets/{properties-bone.inspector-DDci-SQy.js → properties-bone.inspector-Cq0j1Tg_.js} +1 -1
  200. package/dist/assets/{properties-collection.inspector-BOZGlg1E.js → properties-collection.inspector-DYMwSmQY.js} +1 -1
  201. package/dist/assets/{properties-constraints.inspector-BMDToNlw.js → properties-constraints.inspector-CX5gxqju.js} +1 -1
  202. package/dist/assets/{properties-data.inspector-hod6HyLu.js → properties-data.inspector-cL1TZwxI.js} +1 -1
  203. package/dist/assets/{properties-material.inspector-D2FogLXQ.js → properties-material.inspector-DU1wOJce.js} +1 -1
  204. package/dist/assets/{properties-modifiers.inspector-DF4mAZtE.js → properties-modifiers.inspector-CmO1PZIA.js} +1 -1
  205. package/dist/assets/{properties-object.inspector-Dipbo-p8.js → properties-object.inspector-CFvqMWdn.js} +1 -1
  206. package/dist/assets/{properties-output.inspector-PPp8EjRZ.js → properties-output.inspector-DC-O8hue.js} +1 -1
  207. package/dist/assets/{properties-particles.inspector-DmlfqDdO.js → properties-particles.inspector-DfWIbmzQ.js} +1 -1
  208. package/dist/assets/{properties-physics.inspector-BcINowSD.js → properties-physics.inspector-xx8ml3qs.js} +1 -1
  209. package/dist/assets/{properties-render.inspector-8-mITVWA.js → properties-render.inspector-C8Hq7knh.js} +1 -1
  210. package/dist/assets/{properties-scene.inspector-BpvZcTZw.js → properties-scene.inspector-CCGXsMCm.js} +1 -1
  211. package/dist/assets/{properties-texture.inspector-BnwyIBIi.js → properties-texture.inspector-CLWq44Va.js} +1 -1
  212. package/dist/assets/{properties-view-layer.inspector-Dp7dKGWs.js → properties-view-layer.inspector-Bpry4Iqh.js} +1 -1
  213. package/dist/assets/{properties-world.inspector-SCxCGP-9.js → properties-world.inspector-nHZ1JkkY.js} +1 -1
  214. package/dist/assets/{r3f-design-session-Byem_WS6.js → r3f-design-session-Cirrj19r.js} +2 -2
  215. package/dist/assets/{r3f-physics-binding-BVU-oj2D.js → r3f-physics-binding-DsYLHa6f.js} +1 -1
  216. package/dist/assets/{r3f-source-authoring-adapter-CSei_iBY.js → r3f-source-authoring-adapter-C0STpGb7.js} +1 -1
  217. package/dist/assets/{react-canvas-navigation-gztX6CTu.js → react-canvas-navigation-DijWKFG_.js} +1 -1
  218. package/dist/assets/{react-inspector.service-Cq8JEPik.js → react-inspector.service-CS-ZEU5N.js} +1 -1
  219. package/dist/assets/{react-story-board-qBLyzrh-.js → react-story-board-BMNsbya2.js} +1 -1
  220. package/dist/assets/{react-three-rapier.esm-BeiV2Wq-.js → react-three-rapier.esm-CN0eNYep.js} +1 -1
  221. package/dist/assets/{react-world-authoring-adapter-CUpkBtmp.js → react-world-authoring-adapter-4FofK2_S.js} +1 -1
  222. package/dist/assets/{realm-services-COQmdHaL.js → realm-services-CnW99EpW.js} +1 -1
  223. package/dist/assets/{reflection-probe-capture.inspector-CwNLXSyV.js → reflection-probe-capture.inspector-Dgy-8-1h.js} +1 -1
  224. package/dist/assets/{registry-C1p1_Rv2.js → registry-CmQvHjp6.js} +1 -1
  225. package/dist/assets/{relative-import-specifier-Cf0_BtCw.js → relative-import-specifier-Dk9yRpxL.js} +1 -1
  226. package/dist/assets/{render-env-Bmdv9fSE.js → render-env-O4VU4xhx.js} +1 -1
  227. package/dist/assets/{render-features-W58SVbbT.js → render-features-ChdWrVy0.js} +1 -1
  228. package/dist/assets/{render-settings-Vu9CpzBi.js → render-settings-BCZAvPJi.js} +1 -1
  229. package/dist/assets/{resolve-three-HpVkP48k.js → resolve-three-Dck88bio.js} +3 -3
  230. package/dist/assets/{root-seam-contract-BYKvnnTt.js → root-seam-contract-ChFKhMGt.js} +1 -1
  231. package/dist/assets/{run-selection-CaOq6qDl.js → run-selection-C6EqhdoA.js} +1 -1
  232. package/dist/assets/{scene-capture-CuukhQRd.js → scene-capture-Bui4ruWh.js} +1 -1
  233. package/dist/assets/{scene-document.service-D-7s2eUO.js → scene-document.service-DSdvp7Ce.js} +2 -2
  234. package/dist/assets/{scene-framing-DJll-un4.js → scene-framing-DPK5z1LB.js} +1 -1
  235. package/dist/assets/{seeded-random-3pTBWsgC.js → seeded-random-BJvC1dTR.js} +1 -1
  236. package/dist/assets/{setup-renderer-Cw8qdO25.js → setup-renderer-CwpGLiQN.js} +1 -1
  237. package/dist/assets/{source-object3d-authoring-adapter-CiV9hr_l.js → source-object3d-authoring-adapter-Bdq-N_ih.js} +1 -1
  238. package/dist/assets/{source-persistence-backend-BaUP8hOX.js → source-persistence-backend-wZj2Qj3g.js} +1 -1
  239. package/dist/assets/{stage-keyboard-CMvoZA6K.js → stage-keyboard-CNNJiLBS.js} +1 -1
  240. package/dist/assets/{stage-overlay-set-B493KEWu.js → stage-overlay-set-BKAbHMto.js} +1 -1
  241. package/dist/assets/{stage-presence-markers-Ddnu3AE3.js → stage-presence-markers-J7TV-MHA.js} +1 -1
  242. package/dist/assets/{stage-transform-tools-DHGdBZ3k.js → stage-transform-tools-B5kYo-6B.js} +1 -1
  243. package/dist/assets/{standard-viewport-dressing-GnJWRGe2.js → standard-viewport-dressing-DSi6qJFC.js} +1 -1
  244. package/dist/assets/{state-watch.action-BpOfeBco.js → state-watch.action-DTwXKaRA.js} +1 -1
  245. package/dist/assets/{state-watch.menu-04MPIYPm.js → state-watch.menu-BcV_iOZY.js} +1 -1
  246. package/dist/assets/{state-watch.utility-Cw3o3jfb.js → state-watch.utility-LiVERTu5.js} +1 -1
  247. package/dist/assets/{story-capture-B3A3XH7n.js → story-capture-Bp8iYZLe.js} +1 -1
  248. package/dist/assets/{story-documents-DQWzzviR.js → story-documents-f3Ug4YBp.js} +1 -1
  249. package/dist/assets/{story-documents.service-Dwri-cm5.js → story-documents.service-CO7oQCl7.js} +1 -1
  250. package/dist/assets/{story-documents.service-BDnAswhX.js → story-documents.service-XIecBTKZ.js} +1 -1
  251. package/dist/assets/{story-media-presence-D6g__A85.js → story-media-presence-CZDChC1Q.js} +1 -1
  252. package/dist/assets/{story-pixi-preview-Baqdw7IG.js → story-pixi-preview-DVY_KTxj.js} +1 -1
  253. package/dist/assets/{story-presentation-CYi1FGiu.js → story-presentation-CNwvXmP8.js} +1 -1
  254. package/dist/assets/{story-three-preview-yfz_G-RI.js → story-three-preview-EAGsWdvg.js} +2 -2
  255. package/dist/assets/{studio-environment-CH7uwg4C.js → studio-environment-DPyvNCMf.js} +1 -1
  256. package/dist/assets/{surface-state-CRaGXBZr.js → surface-state-DDvqISvA.js} +1 -1
  257. package/dist/assets/{syntactic-prop-specs-BlvAiMxq.js → syntactic-prop-specs-Xrvbz2vw.js} +1 -1
  258. package/dist/assets/{team-playtest.service-D3zqXyw5.js → team-playtest.service-ak53AQFu.js} +1 -1
  259. package/dist/assets/{three-DCkpVjka.js → three-CJgQeY1W.js} +1 -1
  260. package/dist/assets/{three-authoring-adapter-D-XUqED2.js → three-authoring-adapter-D-iyhWwy.js} +1 -1
  261. package/dist/assets/three-authoring.service-BphzI5K_.js +2 -0
  262. package/dist/assets/{three-ingest-runtime-CRvw31w9.js → three-ingest-runtime-BjO_n3E-.js} +1 -1
  263. package/dist/assets/{three-integration-C2QGqcqQ.js → three-integration-YGBUQAWW.js} +2 -2
  264. package/dist/assets/three-integration.service-CC5Hzqn_.js +1 -0
  265. package/dist/assets/{three-projection-core-B_fHSGZn.js → three-projection-core-BjkdjllS.js} +1 -1
  266. package/dist/assets/{three-state-BA8dTl-G.js → three-state-CvU5OXTi.js} +1 -1
  267. package/dist/assets/{three-story-capture.service-DwYgUcAh.js → three-story-capture.service-DikE7JrC.js} +2 -2
  268. package/dist/assets/{three-story-model-BN336fnz.js → three-story-model-aKieakmn.js} +1 -1
  269. package/dist/assets/{three-viewport-presentation-Ys4BApui.js → three-viewport-presentation-5zDCaTKw.js} +1 -1
  270. package/dist/assets/{transform-mode-request-CbLV1mru.js → transform-mode-request-05CQoTKg.js} +1 -1
  271. package/dist/assets/{transport-strip-BhBJrkWq.js → transport-strip-B0VIsVkq.js} +1 -1
  272. package/dist/assets/transport.header-CAvPxCpi.js +1 -0
  273. package/dist/assets/{tuples-DNF52fLz.js → tuples-BteMo3KQ.js} +1 -1
  274. package/dist/assets/{ui-board-document-B5MCtj21.js → ui-board-document-CB4DQEPW.js} +2 -2
  275. package/dist/assets/{user-data-ZZO3OVi6.js → user-data-DKfhN35w.js} +1 -1
  276. package/dist/assets/{utility-view-state-ChjloR5W.js → utility-view-state-DZ2ujJyw.js} +1 -1
  277. package/dist/assets/{viewport-door-BSOgAqjP.js → viewport-door-BrYqbiwp.js} +1 -1
  278. package/dist/assets/{viewport-root-presentation--xgH-spf.js → viewport-root-presentation-DqFPo19p.js} +1 -1
  279. package/dist/assets/{viewport-surface-status-BW-G364J.js → viewport-surface-status-BCnAK4lN.js} +1 -1
  280. package/dist/assets/{webworkerAll-D8rD5X1b.js → webworkerAll-Zn2-KQph.js} +1 -1
  281. package/dist/assets/{workspace-arrangement-BARx98O2.js → workspace-arrangement-BoYqL0C2.js} +1 -1
  282. package/dist/assets/{world-documents-D7cabN31.js → world-documents-CzkDHYwW.js} +1 -1
  283. package/dist/assets/{world-root-stage-binding-BxsYda3b.js → world-root-stage-binding-vmgZxCgc.js} +1 -1
  284. package/dist/assets/{xstate-animation-binding-CiReI46R.js → xstate-animation-binding-C3RIk_KM.js} +1 -1
  285. package/dist/assets/{xstate-animation-meta-CFb6s7O4.js → xstate-animation-meta-CWXGLmNW.js} +1 -1
  286. package/dist-node/cli.js +18 -18
  287. package/package.json +16 -16
  288. package/dist/assets/InspectorObjectPreview-CZvolDbt.js +0 -1
  289. package/dist/assets/Object3DDocumentViewport-CLewwxph.js +0 -2
  290. package/dist/assets/StageHost-CbSf3_pc.js +0 -2
  291. package/dist/assets/autoplay.service-BEcShHAE.js +0 -1
  292. package/dist/assets/instances.command--SU6F-l0.js +0 -1
  293. package/dist/assets/network-observer.service-CeaBZoKU.js +0 -1
  294. package/dist/assets/three-authoring.service-CoWSgwfm.js +0 -2
  295. package/dist/assets/three-integration.service-BYDiMYEc.js +0 -1
  296. package/dist/assets/transport.header-D_wid8TK.js +0 -1
@@ -1 +1 @@
1
- import{ab as a}from"./index-cFAgtv_D.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-BURPV4Ya.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-DCkYCR9b.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-BOPmuIUp.js";import"./contract-system-adapters-B6e3eEm4.js";import"./game-contract-seams-BDgW-mIt.js";import"./seeded-random-3pTBWsgC.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-Dk8dl25b.js";import"./capability-coverage-BnIBnsu6.js";import"./edit-mode-authoring-CL-UHzaJ.js";import"./json-history-resource-Bzmw9S9j.js";import"./binding-resolver-Clp4dXl1.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-COQmdHaL.js";import"./canvas-entry-runtime-DMxmlXgn.js";import"./three-ingest-runtime-CRvw31w9.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-D5MyeUO-.js";import"./ingest-source-persistence-DM1yk0WC.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation--xgH-spf.js";import"./mounted-authoring-8UW6roGY.js";import"./entity-object-3G5QPQLw.js";import"./user-data-ZZO3OVi6.js";import"./workspace-arrangement-BARx98O2.js";import"./three-contract-Dkt6PmWY.js";import"./three-DCkpVjka.js";import"./editor-layers-CH7HhT0X.js";import"./component-instance-root-Csn_jFKu.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-D-XUqED2.js";import"./source-persistence-backend-BaUP8hOX.js";import"./three-projection-core-B_fHSGZn.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-BVU-oj2D.js";import"./deferred-ingest-play-Cf5GxuCA.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-CUpkBtmp.js";import"./board-guides-CxSLXJuc.js";import"./relative-import-specifier-Cf0_BtCw.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-DTtq2ZaM.js";import"./inference-diagnostics-BU6iwPab.js";import"./writer-tw6EcuVO.js";import"./three-state-BA8dTl-G.js";import"./editor-shell-store-amyZ1RI8.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-BSOgAqjP.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-C6b9kkV0.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-BNeDxziF.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-Be_Zu0XE.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-Be63j2Mr.js";import"./contract-system-adapters-kobU6S3P.js";import"./game-contract-seams-CB0AOLdl.js";import"./seeded-random-BJvC1dTR.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-BVyxYNhA.js";import"./capability-coverage-3wZkRo7W.js";import"./edit-mode-authoring-DbcZXYOM.js";import"./json-history-resource-D4GYZYcB.js";import"./binding-resolver-yBwth89-.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-CnW99EpW.js";import"./canvas-entry-runtime-Btln7THA.js";import"./three-ingest-runtime-BjO_n3E-.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-5EEDH3if.js";import"./ingest-source-persistence-Dz_7hVqh.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-DqFPo19p.js";import"./mounted-authoring-BW8axnm4.js";import"./entity-object-hOX0jkMo.js";import"./user-data-DKfhN35w.js";import"./workspace-arrangement-BoYqL0C2.js";import"./three-contract-Dkt6PmWY.js";import"./three-CJgQeY1W.js";import"./editor-layers-_Gcy52mS.js";import"./component-instance-root-DsmCGX40.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-D-iyhWwy.js";import"./source-persistence-backend-wZj2Qj3g.js";import"./three-projection-core-BjkdjllS.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-DsYLHa6f.js";import"./deferred-ingest-play-D1FWeSDi.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-4FofK2_S.js";import"./board-guides-CIhq0Sbd.js";import"./relative-import-specifier-Dk9yRpxL.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-BRJFBB2z.js";import"./inference-diagnostics-DNhFOXFZ.js";import"./writer-tw6EcuVO.js";import"./three-state-CvU5OXTi.js";import"./editor-shell-store-DcbczB-I.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-BrYqbiwp.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-cFAgtv_D.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-C6b9kkV0.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-cFAgtv_D.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-CtcWoVlh.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-BU0DwlfA.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-CH7uwg4C.js";import"./user-data-ZZO3OVi6.js";import"./workspace-arrangement-BARx98O2.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-C6b9kkV0.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-oBpbFAcj.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-DNAW8eNU.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-DPyvNCMf.js";import"./user-data-DKfhN35w.js";import"./workspace-arrangement-BoYqL0C2.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-cFAgtv_D.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-C6b9kkV0.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-cFAgtv_D.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-BU0DwlfA.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-C6b9kkV0.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-DNAW8eNU.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-BARx98O2.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-BoYqL0C2.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-cFAgtv_D.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-C6b9kkV0.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};