@volter/game-editor 0.5.127 → 0.5.129

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 (294) 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 +2206 -2206
  5. package/dist/assets/{AssetBudgetPanel-PD5Ly9CT.js → AssetBudgetPanel-zU9LQz7t.js} +3 -3
  6. package/dist/assets/{AudioViewer-Q40_cmYq.js → AudioViewer-BuIumvS8.js} +1 -1
  7. package/dist/assets/{CanvasBoardDocument-BBdEdhFm.js → CanvasBoardDocument-C_hhKnYC.js} +1 -1
  8. package/dist/assets/{CanvasSceneViewport-BJeFlMuc.js → CanvasSceneViewport-ksSPZOlc.js} +1 -1
  9. package/dist/assets/{ColorInput-Cad8L0Ed.js → ColorInput-CHpAb52O.js} +1 -1
  10. package/dist/assets/{ColorPicker-DFs5jze4.js → ColorPicker-Cj7n9Kxl.js} +1 -1
  11. package/dist/assets/{EntityModelDocument-CayVoiiM.js → EntityModelDocument-B7Ud_279.js} +1 -1
  12. package/dist/assets/{EnvironmentAssetDocument-CV3BXxtQ.js → EnvironmentAssetDocument-yGom_45-.js} +1 -1
  13. package/dist/assets/{GameplaySessionTimeline-DIJVApAB.js → GameplaySessionTimeline-Cd0MV73-.js} +1 -1
  14. package/dist/assets/{ImageViewer-gSGJ3OMb.js → ImageViewer-CcUUUXNJ.js} +1 -1
  15. package/dist/assets/InspectorObjectPreview-B90Vut8e.js +1 -0
  16. package/dist/assets/{JsonAssetDocument-P6W4QFdq.js → JsonAssetDocument-Cyahk092.js} +1 -1
  17. package/dist/assets/{LiveModuleDocument-Df4fCKjJ.js → LiveModuleDocument-CZgNwvQy.js} +1 -1
  18. package/dist/assets/{LutAssetDocument-BxMT39rJ.js → LutAssetDocument-BCbAd-Z6.js} +1 -1
  19. package/dist/assets/{ModelAssetDocument-iydZwJm6.js → ModelAssetDocument-DCPMNFPS.js} +1 -1
  20. package/dist/assets/{NonThreeAuthoringBootstrap-n7HSxNdt.js → NonThreeAuthoringBootstrap-Bj2wN899.js} +1 -1
  21. package/dist/assets/{Object3DDocumentToolbar-DPt8h35L.js → Object3DDocumentToolbar-CVPoo7Ba.js} +1 -1
  22. package/dist/assets/Object3DDocumentViewport-S-eokiOr.js +2 -0
  23. package/dist/assets/{Object3DPreview-BxyRQ29F.js → Object3DPreview-BVbUxKmH.js} +1 -1
  24. package/dist/assets/{OnlineAssetDetail-CqwqPoIr.js → OnlineAssetDetail-7a6_tNJk.js} +1 -1
  25. package/dist/assets/{PlayBar-BZ7mY6yG.js → PlayBar-Cmml9m77.js} +1 -1
  26. package/dist/assets/{QuarksAssetDocument-CGvZL9FT.js → QuarksAssetDocument-Cf6ov1uz.js} +1 -1
  27. package/dist/assets/{ReactCanvasControls-DAiX7h2-.js → ReactCanvasControls-DlFa-ACA.js} +1 -1
  28. package/dist/assets/{RootSelectionOverlay-CXVw9xAS.js → RootSelectionOverlay-BzYz2ob2.js} +1 -1
  29. package/dist/assets/{ShaderAssetDocument-CMrEhzOn.js → ShaderAssetDocument-BHIygP3B.js} +1 -1
  30. package/dist/assets/{ShadowEditor-5kAPELQ2.js → ShadowEditor-D19zHDYi.js} +1 -1
  31. package/dist/assets/{SourceAssetViewer-BNMvYZgb.js → SourceAssetViewer-IiFeRSfU.js} +1 -1
  32. package/dist/assets/{StageHost-Bg2tw0U7.js → StageHost-A77nKogt.js} +2 -2
  33. package/dist/assets/{StoryPreviewMount-D3R8uVtn.js → StoryPreviewMount-BznKUCNI.js} +1 -1
  34. package/dist/assets/{ThreeBoardDocument-B6eFjrJd.js → ThreeBoardDocument-CKCPXwDq.js} +2 -2
  35. package/dist/assets/{ThreeIsolationSceneContent-ChDzjYPl.js → ThreeIsolationSceneContent-C1beSjX3.js} +1 -1
  36. package/dist/assets/{ToolObject3DPreview-CHgTtmL3.js → ToolObject3DPreview-CwbFFjfw.js} +1 -1
  37. package/dist/assets/{Toolbar-DkvknKyY.js → Toolbar-9O701nY-.js} +1 -1
  38. package/dist/assets/{TransientHint-BfLb1fyi.js → TransientHint-0ES3rCAi.js} +1 -1
  39. package/dist/assets/{VideoViewer-B8RaJOtF.js → VideoViewer-mF9y5CJx.js} +1 -1
  40. package/dist/assets/{ViewportShadingMenu-B5j1MDef.js → ViewportShadingMenu-Bl09DInq.js} +1 -1
  41. package/dist/assets/{active-ingest-R_div-Oj.js → active-ingest-Lfx46SVT.js} +2 -2
  42. package/dist/assets/{animation-clock-OkUiSD6M.js → animation-clock-Bx0PQrFI.js} +1 -1
  43. package/dist/assets/{animation-mixers.service-DR98WDHt.js → animation-mixers.service-DBwnNdey.js} +1 -1
  44. package/dist/assets/{animation-timeline.utility-De6MGXwn.js → animation-timeline.utility-5scbZH3A.js} +1 -1
  45. package/dist/assets/{asset-budget-asset.menu-Kt7mAPah.js → asset-budget-asset.menu-BAsodLrT.js} +1 -1
  46. package/dist/assets/{asset-budget.action-gtj2M3e4.js → asset-budget.action-BxLOHl6M.js} +1 -1
  47. package/dist/assets/{asset-budget.document-DE_v7Mpa.js → asset-budget.document-gEs0TFUI.js} +1 -1
  48. package/dist/assets/{asset-budget.menu-C1PtQGYz.js → asset-budget.menu-DLKtNhbo.js} +1 -1
  49. package/dist/assets/{asset-editor-persistence-BrrBFKn0.js → asset-editor-persistence-DMRNecs7.js} +1 -1
  50. package/dist/assets/{asset-loaders-CUe2eH9D.js → asset-loaders-D6LJNA5m.js} +1 -1
  51. package/dist/assets/{asset-preview-BlwxJaQK.js → asset-preview-DPWGMtoN.js} +1 -1
  52. package/dist/assets/{audio-unlock.service-DTn3KONa.js → audio-unlock.service-zZPU9-cJ.js} +1 -1
  53. package/dist/assets/{audio.utility-BJnmxTTI.js → audio.utility-1ayYQ4bt.js} +1 -1
  54. package/dist/assets/autoplay.service-DWi0mQ06.js +1 -0
  55. package/dist/assets/{babylon-authoring-adapter-D1NipHtB.js → babylon-authoring-adapter-z6KoQamT.js} +1 -1
  56. package/dist/assets/{binding-resolver-Bpe3oTrY.js → binding-resolver--K9B2aXQ.js} +2 -2
  57. package/dist/assets/{blender-node-editor.document-MfNbaeLR.js → blender-node-editor.document-Cbl3oe-Y.js} +1 -1
  58. package/dist/assets/{blender-properties-tab-B779fz1Q.js → blender-properties-tab-BjcUgPFK.js} +1 -1
  59. package/dist/assets/{blender-runtime-host-CtCtgqOL.js → blender-runtime-host-BnaYnPbE.js} +3 -3
  60. package/dist/assets/{blender-runtime-skin-CKHCTsry.js → blender-runtime-skin-i6pRHo_x.js} +57 -53
  61. package/dist/assets/{blender-runtime.document-Ckdh3HKB.js → blender-runtime.document-iznL9OIR.js} +1 -1
  62. package/dist/assets/{blender-screenshot.menu-ChP92jI-.js → blender-screenshot.menu-DY45gH2v.js} +1 -1
  63. package/dist/assets/{blender-timeline.document-DdyfjgSk.js → blender-timeline.document-DzI6KOwi.js} +1 -1
  64. package/dist/assets/{blender-uv-editor.document-DU_1bKdH.js → blender-uv-editor.document-CQGNL-em.js} +1 -1
  65. package/dist/assets/{blender-version.status-BJq9fepS.js → blender-version.status-B-cFkEmZ.js} +1 -1
  66. package/dist/assets/{blender.command-6IlfjjJi.js → blender.command-DYVT6Brx.js} +1 -1
  67. package/dist/assets/{board-guides-DiAs0DMA.js → board-guides-BRZrEdtv.js} +1 -1
  68. package/dist/assets/{bridge.command-B9N3cMbg.js → bridge.command-BJz6FKqT.js} +3 -3
  69. package/dist/assets/{browserAll-D7Kd6srk.js → browserAll-Xq6kMmyy.js} +1 -1
  70. package/dist/assets/{build-player.document-Bl_0T2uA.js → build-player.document-G0EP4-cV.js} +1 -1
  71. package/dist/assets/{build-profiles.document-DNDwF9_Y.js → build-profiles.document-C0z4JBId.js} +1 -1
  72. package/dist/assets/{build-progress.status-Boink4g8.js → build-progress.status-ZvaZuR-0.js} +1 -1
  73. package/dist/assets/{build-session-CuhlmGcx.js → build-session-CymiRvjZ.js} +1 -1
  74. package/dist/assets/{build.action-CsMtOkDc.js → build.action-BBxTsXfE.js} +1 -1
  75. package/dist/assets/{build.command-bhhxJk4Q.js → build.command-DT_Zjx0J.js} +1 -1
  76. package/dist/assets/{build.header-xDNZZU34.js → build.header-CIpUEYXT.js} +1 -1
  77. package/dist/assets/{build.menu-BpjSystA.js → build.menu-BlTGELsH.js} +1 -1
  78. package/dist/assets/{build.service-BwluoAjv.js → build.service-AUScoZYu.js} +1 -1
  79. package/dist/assets/{camera-hh5_JQfV.js → camera-_xYhs96x.js} +1 -1
  80. package/dist/assets/{camera-runtime.inspector-CUI-ssDo.js → camera-runtime.inspector-CfU1WRe7.js} +1 -1
  81. package/dist/assets/{canvas-design-mount-CLCR9y6J.js → canvas-design-mount-B1zBhn_J.js} +3 -3
  82. package/dist/assets/{canvas-entry-runtime-hVYG6wMW.js → canvas-entry-runtime-Cg364i6A.js} +2 -2
  83. package/dist/assets/{canvas-preview-frames-DLO3eNyZ.js → canvas-preview-frames-BFU7tNhh.js} +1 -1
  84. package/dist/assets/{canvas-story-capture.service-B0_KeCoB.js → canvas-story-capture.service-5kd3Krkr.js} +2 -2
  85. package/dist/assets/{capability-coverage-Cchr0mQ3.js → capability-coverage-rUUpSzOn.js} +1 -1
  86. package/dist/assets/{collaboration-presence-Z5klZlI7.js → collaboration-presence-DVqUskAb.js} +1 -1
  87. package/dist/assets/{collider-D1_IIE-F.js → collider-BF-ZbxHV.js} +1 -1
  88. package/dist/assets/{component-board.service-LdfAanpB.js → component-board.service-BcwBF-zp.js} +2 -2
  89. package/dist/assets/{component-board.service-DRc9tSvn.js → component-board.service-Bd1jmbus.js} +2 -2
  90. package/dist/assets/{component-board.service-Jx7a2Yr-.js → component-board.service-C4T_W5t7.js} +2 -2
  91. package/dist/assets/{component-contracts.service-B_JKJT9K.js → component-contracts.service-Cft1sJ-Z.js} +1 -1
  92. package/dist/assets/{component-instance-root-0OmhquKK.js → component-instance-root-DktYaTot.js} +1 -1
  93. package/dist/assets/{component-verbs.command-BAVS6__0.js → component-verbs.command-DvuK_xvY.js} +1 -1
  94. package/dist/assets/{component-verbs.service-LM9zY1kI.js → component-verbs.service-DjMcC9H_.js} +1 -1
  95. package/dist/assets/{config-BUK1VABW.js → config-DlwXFlyt.js} +2 -2
  96. package/dist/assets/{configurations-N2mNw-tg.js → configurations-CNjdXyJJ.js} +1 -1
  97. package/dist/assets/{connection.status-BzJ3fGF_.js → connection.status-Cew-NIBU.js} +1 -1
  98. package/dist/assets/{constraints.inspector-DxF0WKoV.js → constraints.inspector-COs-kZwV.js} +1 -1
  99. package/dist/assets/{content-bounds-BZfH5RtN.js → content-bounds-CY_M6Fwr.js} +1 -1
  100. package/dist/assets/{contract-system-adapters-BN9ohs9e.js → contract-system-adapters-C1bKdaVk.js} +1 -1
  101. package/dist/assets/{coverage.service-CKeNuy0m.js → coverage.service-DyHGtZYc.js} +1 -1
  102. package/dist/assets/{create-runtime-DIhNSHgr.js → create-runtime-CYU9IW7x.js} +1 -1
  103. package/dist/assets/{curve-DqPAAyLA.js → curve-BF_LI3jO.js} +1 -1
  104. package/dist/assets/{data-asset-CUXIvdhH.js → data-asset-D71yCsQc.js} +1 -1
  105. package/dist/assets/{data-ref-u6lwt2bh.js → data-ref-DlKbKxgc.js} +1 -1
  106. package/dist/assets/{debug-bridge-0Ch5pR4P.js → debug-bridge-D1LqwyHH.js} +1 -1
  107. package/dist/assets/{debug-registry-D9oD7FHT.js → debug-registry-BFq6QR4G.js} +1 -1
  108. package/dist/assets/{deferred-ingest-play-DObJUzph.js → deferred-ingest-play-sqaLv2U9.js} +2 -2
  109. package/dist/assets/{design-time-canvas-mount-kTm3g37R.js → design-time-canvas-mount-Cyaec5o_.js} +2 -2
  110. package/dist/assets/{design-time-layers-Bf9v4K6S.js → design-time-layers-BmljBngv.js} +1 -1
  111. package/dist/assets/{design-time-mount.service-DnfuDkLV.js → design-time-mount.service-DaEQZipp.js} +2 -2
  112. package/dist/assets/{design-time-mount.service-DdoDO9db.js → design-time-mount.service-DkXbIUSV.js} +2 -2
  113. package/dist/assets/{design-time-react-mount-BKngZyGo.js → design-time-react-mount-DiJOqmix.js} +1 -1
  114. package/dist/assets/{document-preview-three-Bfn5CPiD.js → document-preview-three-BGSnBaa1.js} +1 -1
  115. package/dist/assets/{dom-authoring-adapter-CKolNcI_.js → dom-authoring-adapter-DeA4Bi4o.js} +1 -1
  116. package/dist/assets/{draco3d-BkMn9cW2.js → draco3d-Dt3Ei-m7.js} +1 -1
  117. package/dist/assets/{edit-mode-audio.service-BXgbsw-L.js → edit-mode-audio.service-CwOaP-3u.js} +1 -1
  118. package/dist/assets/{edit-mode-authoring-Bx6SGIjL.js → edit-mode-authoring-Cm2rEFlJ.js} +1 -1
  119. package/dist/assets/{edit-mode-networking.service-ZZETnS-m.js → edit-mode-networking.service-BC5B83fD.js} +1 -1
  120. package/dist/assets/{editor-api-MYo_NhPG.js → editor-api-B0Z7yvj8.js} +1 -1
  121. package/dist/assets/{editor-layers-BDej9Ofa.js → editor-layers-kBpG49pG.js} +1 -1
  122. package/dist/assets/{editor-shell-store-DmIN_bZc.js → editor-shell-store-C6VYP6ve.js} +1 -1
  123. package/dist/assets/{entity-object-sI9MDwQJ.js → entity-object-DiC6cpEd.js} +1 -1
  124. package/dist/assets/{extend-Ci0OsrQT.js → extend-DXDb7AYu.js} +1 -1
  125. package/dist/assets/{fork-menu-DBSCmy4Q.js → fork-menu-Cleuze1z.js} +1 -1
  126. package/dist/assets/{frame-debugger-store-BgELTeli.js → frame-debugger-store-B3YeiIrp.js} +1 -1
  127. package/dist/assets/{game-contract-seams-lha_cX4J.js → game-contract-seams-Cfyg896y.js} +1 -1
  128. package/dist/assets/{game-css-scope-transform-BsQrnJad.js → game-css-scope-transform-CWJpcOFq.js} +1 -1
  129. package/dist/assets/{game-document.service-CRVaHjov.js → game-document.service-Dhy_L2WU.js} +1 -1
  130. package/dist/assets/{game-eval.command-KKR6bdMi.js → game-eval.command-C14hkRIz.js} +1 -1
  131. package/dist/assets/{game-module-access-DYES1F1a.js → game-module-access-Cb0rgQXR.js} +1 -1
  132. package/dist/assets/{game-network-BtZZImhM.js → game-network-BuhrtQlJ.js} +3 -3
  133. package/dist/assets/{gameplay-export-NxNgfvAW.js → gameplay-export-BMmWR4qO.js} +1 -1
  134. package/dist/assets/{gameplay-replay-D4vTBXtR.js → gameplay-replay-Cgxltc0I.js} +1 -1
  135. package/dist/assets/{gameplay.command-C3NnXZz5.js → gameplay.command-BXkiGrY3.js} +1 -1
  136. package/dist/assets/{generation-jobs-B487f_2Z.js → generation-jobs-Dti-NsGT.js} +1 -1
  137. package/dist/assets/{generation.service--yjaC5qx.js → generation.service-CUqMO_sv.js} +1 -1
  138. package/dist/assets/{generations-B76X3pOw.js → generations-CEMzKgsY.js} +1 -1
  139. package/dist/assets/{generations.status-iHwft6E7.js → generations.status-ClObpAPX.js} +1 -1
  140. package/dist/assets/{hierarchy-marks-Bv3lFwvr.js → hierarchy-marks-BTgoMhKJ.js} +1 -1
  141. package/dist/assets/{hosted-asset-materialization-CI3cdlhz.js → hosted-asset-materialization-B1rqU0R3.js} +1 -1
  142. package/dist/assets/{index-jhDTJrJJ.js → index-9nYTVIws.js} +7 -7
  143. package/dist/assets/{index-CQ4zsFnG.js → index-BQhQTNuj.js} +2 -2
  144. package/dist/assets/{index-DmZJfzXE.js → index-BTj5ZDs3.js} +1 -1
  145. package/dist/assets/{index-p9CDkug5.js → index-BZ9SChD2.js} +1 -1
  146. package/dist/assets/{index-CECK_ODc.js → index-Bir3FN9S.js} +1 -1
  147. package/dist/assets/{index-hDH0MQtY.js → index-CfVh4Js-.js} +1 -1
  148. package/dist/assets/{index-jbVAkbCC.js → index-D8ZZhAux.js} +1 -1
  149. package/dist/assets/{index-CxM9SCDb.js → index-DmRQLG00.js} +1 -1
  150. package/dist/assets/{index-DM6wGhg6.js → index-L-eheuNN.js} +1 -1
  151. package/dist/assets/{inference-diagnostics-GzO30GlV.js → inference-diagnostics-71A-NHW0.js} +1 -1
  152. package/dist/assets/{ingest-boot-viewport-eEXoWb4H.js → ingest-boot-viewport-R_sgEesV.js} +1 -1
  153. package/dist/assets/{ingest-siblings-DFv3-ybn.js → ingest-siblings-Cw0Uh18c.js} +1 -1
  154. package/dist/assets/{ingest-source-persistence-DrtMONfa.js → ingest-source-persistence-DbuTxtMu.js} +1 -1
  155. package/dist/assets/{ingest.service-Aqr5ECGV.js → ingest.service-DLFH4vr0.js} +1 -1
  156. package/dist/assets/{inspect-CkG2Z66I.js → inspect-3o2qSIRq.js} +1 -1
  157. package/dist/assets/instances.command-BCLwTYAu.js +1 -0
  158. package/dist/assets/{json-history-resource-sg0Vzf4w.js → json-history-resource-C818aJwj.js} +1 -1
  159. package/dist/assets/{layered-pick-CEWefTxe.js → layered-pick-D9xs5s8q.js} +1 -1
  160. package/dist/assets/{light-BPEv67Pc.js → light-DmAkSp8r.js} +1 -1
  161. package/dist/assets/{live-project-verbs-CvPNGB8N.js → live-project-verbs-E-s8WH5m.js} +1 -1
  162. package/dist/assets/{machine.document-Byg4Akxw.js → machine.document-WaAig10j.js} +1 -1
  163. package/dist/assets/{machines.finder-Cu6MQ5CX.js → machines.finder-DOuT11sq.js} +1 -1
  164. package/dist/assets/{material-CCaJzzZ3.js → material-Dmhe3uX6.js} +1 -1
  165. package/dist/assets/{material-factory-BUMkjoYi.js → material-factory-D2dS8Frx.js} +1 -1
  166. package/dist/assets/{mesh-CK1UuqDd.js → mesh-C0P0KD9j.js} +1 -1
  167. package/dist/assets/{model-asset-sections.service-iifouDM7.js → model-asset-sections.service-DuN8nZyK.js} +1 -1
  168. package/dist/assets/{model-inspection-DYuFlISa.js → model-inspection-Dys9s7L6.js} +1 -1
  169. package/dist/assets/{model-thumbnail-DQh5eEm6.js → model-thumbnail-DXupO6bI.js} +1 -1
  170. package/dist/assets/{models.finder-DK7FBN-1.js → models.finder-DVEKCOHk.js} +1 -1
  171. package/dist/assets/{module-mode-IVU14VtJ.js → module-mode-BygBdatu.js} +2 -2
  172. package/dist/assets/{mount-canvas-ingest-root-CxkwEZ3U.js → mount-canvas-ingest-root-Cbgn79dS.js} +2 -2
  173. package/dist/assets/{mount-dom-ingest-root-CIxtLQlq.js → mount-dom-ingest-root-CXQpetbD.js} +2 -2
  174. package/dist/assets/{mount-ingest-root-0tfZf15A.js → mount-ingest-root-DUX3GfHM.js} +2 -2
  175. package/dist/assets/{mount-manifest-BjOZvESY.js → mount-manifest-CD7uLAam.js} +1 -1
  176. package/dist/assets/{mount-three-ingest-root-DohUuewD.js → mount-three-ingest-root-D5BUSuP1.js} +1 -1
  177. package/dist/assets/{mounted-authoring-MD8wY1MJ.js → mounted-authoring-CHg17ilK.js} +1 -1
  178. package/dist/assets/{mounted-story-viewport-source-CXQknMtQ.js → mounted-story-viewport-source-DWvv2V1k.js} +1 -1
  179. package/dist/assets/{native-debug-module-B7pExEZQ.js → native-debug-module-lQJX-160.js} +1 -1
  180. package/dist/assets/{navigation-oRKxBmNV.js → navigation-BVBawG9W.js} +1 -1
  181. package/dist/assets/{navmesh.menu-B9VhK5IV.js → navmesh.menu-CJDd0N9U.js} +1 -1
  182. package/dist/assets/{navmesh.service-CyG9vb7p.js → navmesh.service-3H_AsM8V.js} +1 -1
  183. package/dist/assets/network-observer.service-BgHgylkf.js +1 -0
  184. package/dist/assets/{network.utility-fKCL0zrN.js → network.utility-CFfOHPIO.js} +1 -1
  185. package/dist/assets/{object3d-document-session-registry-BGN2Zn49.js → object3d-document-session-registry-D6-Tfc82.js} +2 -2
  186. package/dist/assets/{oid-transform-CGuM6vZg.js → oid-transform-CS4vS_7K.js} +1 -1
  187. package/dist/assets/{particles-CZSrHj3_.js → particles-5E9qI-gh.js} +1 -1
  188. package/dist/assets/{pixi-authoring-adapter-BGdlVTc3.js → pixi-authoring-adapter-B7lzpOiN.js} +1 -1
  189. package/dist/assets/{pixi-live-write-target-Bwu1bYXf.js → pixi-live-write-target-B_0mlJ-W.js} +1 -1
  190. package/dist/assets/{play.command-DOGPaB4C.js → play.command-DXwe-naC.js} +2 -2
  191. package/dist/assets/{presentation-BaYyBBj2.js → presentation-CNsPSm6R.js} +1 -1
  192. package/dist/assets/{product-nDWAhddV.js → product-CGnkd6iD.js} +1 -1
  193. package/dist/assets/{profiler.action-BJHf2xQo.js → profiler.action-CJgUgLVa.js} +1 -1
  194. package/dist/assets/{profiler.menu-BNIQRpMB.js → profiler.menu-r7vS6Yo1.js} +1 -1
  195. package/dist/assets/{profiler.utility-SN9V1vO1.js → profiler.utility-CoHWXo_c.js} +1 -1
  196. package/dist/assets/{project-authoring-session-BTy053IX.js → project-authoring-session-CRVFBRc-.js} +2 -2
  197. package/dist/assets/{properties-bone-constraints.inspector-CYpu4a1I.js → properties-bone-constraints.inspector-CzmVcM5s.js} +1 -1
  198. package/dist/assets/{properties-bone.inspector-CoRR1NRF.js → properties-bone.inspector-BZmU33Jq.js} +1 -1
  199. package/dist/assets/{properties-collection.inspector-DbmGF5HE.js → properties-collection.inspector-D5E8xv7R.js} +1 -1
  200. package/dist/assets/{properties-constraints.inspector-DhDu-8JO.js → properties-constraints.inspector-m1I_6ZEe.js} +1 -1
  201. package/dist/assets/{properties-data.inspector-C9hizZ5U.js → properties-data.inspector-CHYtOay1.js} +1 -1
  202. package/dist/assets/{properties-material.inspector-xw768wuX.js → properties-material.inspector-DD3Id-bK.js} +1 -1
  203. package/dist/assets/{properties-modifiers.inspector-CunyZ4p0.js → properties-modifiers.inspector-DgFoyJ9g.js} +1 -1
  204. package/dist/assets/{properties-object.inspector-DhR_ipG7.js → properties-object.inspector-ZKMUDqDb.js} +1 -1
  205. package/dist/assets/{properties-output.inspector-DiR-D4kZ.js → properties-output.inspector-B_EiV17y.js} +1 -1
  206. package/dist/assets/{properties-particles.inspector-B3Wptqjp.js → properties-particles.inspector-Bp5t3sG5.js} +1 -1
  207. package/dist/assets/{properties-physics.inspector-DczZfTN-.js → properties-physics.inspector-BvJ6FjLW.js} +1 -1
  208. package/dist/assets/{properties-render.inspector-qjHCxhXs.js → properties-render.inspector-C0HhUqJV.js} +1 -1
  209. package/dist/assets/{properties-scene.inspector-B-5goJJ1.js → properties-scene.inspector-DvxB8SBY.js} +1 -1
  210. package/dist/assets/{properties-texture.inspector-xNjlzod3.js → properties-texture.inspector-DQK_N2p0.js} +1 -1
  211. package/dist/assets/{properties-view-layer.inspector-6onYZnR0.js → properties-view-layer.inspector-CQimDF5e.js} +1 -1
  212. package/dist/assets/{properties-world.inspector-CJzAraZh.js → properties-world.inspector-Cbyj1FX6.js} +1 -1
  213. package/dist/assets/{r3f-design-session-JBU21CBT.js → r3f-design-session-BSfF6B87.js} +2 -2
  214. package/dist/assets/{r3f-physics-binding-BQKS3eos.js → r3f-physics-binding-BNfJcrsE.js} +1 -1
  215. package/dist/assets/{r3f-source-authoring-adapter-CaPTplr2.js → r3f-source-authoring-adapter-CN3frg1s.js} +1 -1
  216. package/dist/assets/{react-canvas-navigation-CuOqbCmx.js → react-canvas-navigation-DdSNr1eV.js} +1 -1
  217. package/dist/assets/{react-inspector.service-Biw-7Aph.js → react-inspector.service-BbtT2HsV.js} +1 -1
  218. package/dist/assets/{react-story-board-BS4wtpbe.js → react-story-board-BT9vj0hE.js} +1 -1
  219. package/dist/assets/{react-three-rapier.esm-BPcU5vTr.js → react-three-rapier.esm-DE67kTw9.js} +1 -1
  220. package/dist/assets/{react-world-authoring-adapter-MA_K7IzV.js → react-world-authoring-adapter-CW_LKdTk.js} +1 -1
  221. package/dist/assets/{realm-services-Dir-FaGM.js → realm-services-NnoNrbsM.js} +1 -1
  222. package/dist/assets/{reflection-probe-capture.inspector-BzVk5nbq.js → reflection-probe-capture.inspector-DRvTQC2t.js} +1 -1
  223. package/dist/assets/{registry-BRpQODGg.js → registry-BYs8gLgr.js} +1 -1
  224. package/dist/assets/{relative-import-specifier-BFDgw6rr.js → relative-import-specifier-CAVq9YAo.js} +1 -1
  225. package/dist/assets/{render-env-g0xcT2gf.js → render-env-B5aBdPRW.js} +1 -1
  226. package/dist/assets/{render-features-ipsYrx5W.js → render-features-Dro8D2hp.js} +1 -1
  227. package/dist/assets/{render-settings-Blt3RlHC.js → render-settings-GZy83cAX.js} +1 -1
  228. package/dist/assets/{resolve-three-D7kJDkec.js → resolve-three-D2L9I0Oc.js} +3 -3
  229. package/dist/assets/{root-seam-contract-TccLSDcM.js → root-seam-contract-DhJmeQCY.js} +1 -1
  230. package/dist/assets/{run-selection-BwneJGDD.js → run-selection-BkQCgqx8.js} +1 -1
  231. package/dist/assets/{scene-capture-BbPvTNLW.js → scene-capture-D1HDHgUb.js} +1 -1
  232. package/dist/assets/{scene-document.service-EWLuGMAY.js → scene-document.service-CDkhd8nL.js} +2 -2
  233. package/dist/assets/{scene-framing-CXQ4WFCe.js → scene-framing-Bib_NZz8.js} +1 -1
  234. package/dist/assets/{seeded-random-CLC2hMDL.js → seeded-random-DfGQ6n66.js} +1 -1
  235. package/dist/assets/{setup-renderer-CwZuhttK.js → setup-renderer-ayLSJRHD.js} +1 -1
  236. package/dist/assets/{source-object3d-authoring-adapter-BRXDkWd8.js → source-object3d-authoring-adapter-B_kkT_oM.js} +1 -1
  237. package/dist/assets/{source-persistence-backend-BMcrOXF8.js → source-persistence-backend-CTvhQwDl.js} +1 -1
  238. package/dist/assets/{stage-keyboard-BoOvqz6F.js → stage-keyboard-BiNmyrcC.js} +1 -1
  239. package/dist/assets/{stage-overlay-set-9gaaWRc5.js → stage-overlay-set-DQLl2s9p.js} +1 -1
  240. package/dist/assets/{stage-presence-markers-B5tMBPb2.js → stage-presence-markers-DfVJAOvz.js} +1 -1
  241. package/dist/assets/{stage-transform-tools-CCzvYtKw.js → stage-transform-tools-D31L_IPe.js} +1 -1
  242. package/dist/assets/{standard-viewport-dressing-BVHhIJE1.js → standard-viewport-dressing-KeudiGw3.js} +1 -1
  243. package/dist/assets/{state-watch.action-BbRdD-Bw.js → state-watch.action-CPN044HT.js} +1 -1
  244. package/dist/assets/{state-watch.menu-D_JIVIMe.js → state-watch.menu-BflRXjsh.js} +1 -1
  245. package/dist/assets/{state-watch.utility-BE-P2r3A.js → state-watch.utility-Bqey3wQF.js} +1 -1
  246. package/dist/assets/{story-capture-BLl-A22X.js → story-capture-BzPUoVSA.js} +1 -1
  247. package/dist/assets/{story-documents-C441czJk.js → story-documents-B3tO-W0D.js} +1 -1
  248. package/dist/assets/{story-documents.service-CcG3J9jn.js → story-documents.service-BT7uy424.js} +1 -1
  249. package/dist/assets/{story-documents.service-DAAUrl6I.js → story-documents.service-ChxLJ279.js} +1 -1
  250. package/dist/assets/{story-media-presence-BR_BcVt0.js → story-media-presence-D_0fuO18.js} +1 -1
  251. package/dist/assets/{story-pixi-preview-CM_XAwSW.js → story-pixi-preview-DwHwBn93.js} +1 -1
  252. package/dist/assets/{story-presentation-CjP2otRK.js → story-presentation-CSAikKBj.js} +1 -1
  253. package/dist/assets/{story-three-preview-DUvRTcZc.js → story-three-preview-3zJJUEeK.js} +2 -2
  254. package/dist/assets/{studio-environment-D05pL7iQ.js → studio-environment-8rNw9hGx.js} +1 -1
  255. package/dist/assets/{surface-state-0xXAxq6X.js → surface-state-bfly5eRp.js} +1 -1
  256. package/dist/assets/{syntactic-prop-specs-wO7dY0s8.js → syntactic-prop-specs-mk2vEFn1.js} +1 -1
  257. package/dist/assets/{team-playtest.service-BPinahrE.js → team-playtest.service-BsPtBJdT.js} +1 -1
  258. package/dist/assets/{three-B_zMk3VF.js → three-Cq9i0Lo_.js} +1 -1
  259. package/dist/assets/{three-authoring-adapter-zwGjYwL0.js → three-authoring-adapter--CDtc-SE.js} +1 -1
  260. package/dist/assets/three-authoring.service-Ckj4Lbbp.js +2 -0
  261. package/dist/assets/{three-ingest-runtime-CSsXqTWC.js → three-ingest-runtime-CDzGhpUC.js} +1 -1
  262. package/dist/assets/{three-integration-CXNucx1z.js → three-integration-w-zCKW8J.js} +2 -2
  263. package/dist/assets/three-integration.service-CKxTNTnz.js +1 -0
  264. package/dist/assets/{three-projection-core-BPR7YFcJ.js → three-projection-core-CxFDvqEe.js} +1 -1
  265. package/dist/assets/{three-state-C_HLiIZD.js → three-state-BHy0drOJ.js} +1 -1
  266. package/dist/assets/{three-story-capture.service-735_vEsy.js → three-story-capture.service-D8JgsxaP.js} +2 -2
  267. package/dist/assets/{three-story-model-BEisRrzq.js → three-story-model-uufCdHEL.js} +1 -1
  268. package/dist/assets/{three-viewport-presentation-Cfs5MJTy.js → three-viewport-presentation-ChXzMJQZ.js} +1 -1
  269. package/dist/assets/{transform-mode-request-DsaxVuwS.js → transform-mode-request-BUc943em.js} +1 -1
  270. package/dist/assets/{transport-strip-BEEkMmqy.js → transport-strip-Q1C-g9BA.js} +1 -1
  271. package/dist/assets/transport.header-DMkwWnDF.js +1 -0
  272. package/dist/assets/{tuples-CeiD4z2j.js → tuples-DKGWjTy0.js} +1 -1
  273. package/dist/assets/{ui-board-document-DcTv9Oo_.js → ui-board-document-D-VnJE6m.js} +2 -2
  274. package/dist/assets/{user-data-W3aDNol1.js → user-data-BQR8TLTV.js} +1 -1
  275. package/dist/assets/{utility-view-state-IlWKtSFw.js → utility-view-state-CI8DUyub.js} +1 -1
  276. package/dist/assets/{viewport-door-C7l0uUHo.js → viewport-door-3sS8tuxh.js} +1 -1
  277. package/dist/assets/{viewport-root-presentation-DAw5nyWp.js → viewport-root-presentation-D1HAou7A.js} +1 -1
  278. package/dist/assets/{viewport-surface-status-gSFti1Lv.js → viewport-surface-status-QAiH2FdR.js} +1 -1
  279. package/dist/assets/{webworkerAll-Cf8x3KX0.js → webworkerAll-BsJisO83.js} +1 -1
  280. package/dist/assets/{workspace-arrangement-MmNy_T4o.js → workspace-arrangement-8FYR3_fQ.js} +1 -1
  281. package/dist/assets/{world-documents-BNdPRrgb.js → world-documents-BIjTeJpy.js} +1 -1
  282. package/dist/assets/{world-root-stage-binding-BMAxQSOR.js → world-root-stage-binding-dtFvIiVe.js} +1 -1
  283. package/dist/assets/{xstate-animation-binding-DZNqaKO9.js → xstate-animation-binding-DCEYnnM_.js} +1 -1
  284. package/dist/assets/{xstate-animation-meta-KfEE-v3f.js → xstate-animation-meta-SX2VmhFE.js} +1 -1
  285. package/dist-node/cli.js +16 -16
  286. package/package.json +16 -16
  287. package/dist/assets/InspectorObjectPreview-DpCK9AEo.js +0 -1
  288. package/dist/assets/Object3DDocumentViewport-DyqXdp2F.js +0 -2
  289. package/dist/assets/autoplay.service-D8gOha8F.js +0 -1
  290. package/dist/assets/instances.command-CnDpU3nG.js +0 -1
  291. package/dist/assets/network-observer.service-BN1u0-oM.js +0 -1
  292. package/dist/assets/three-authoring.service-D7a7tS8M.js +0 -2
  293. package/dist/assets/three-integration.service-_6xudYSC.js +0 -1
  294. package/dist/assets/transport.header-Ds1930r5.js +0 -1
@@ -1 +1 @@
1
- import{ab as a}from"./index-jhDTJrJJ.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-BtZZImhM.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-B7pExEZQ.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-D9oD7FHT.js";import"./contract-system-adapters-BN9ohs9e.js";import"./game-contract-seams-lha_cX4J.js";import"./seeded-random-CLC2hMDL.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-CvPNGB8N.js";import"./capability-coverage-Cchr0mQ3.js";import"./edit-mode-authoring-Bx6SGIjL.js";import"./json-history-resource-sg0Vzf4w.js";import"./binding-resolver-Bpe3oTrY.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-Dir-FaGM.js";import"./canvas-entry-runtime-hVYG6wMW.js";import"./three-ingest-runtime-CSsXqTWC.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-R_div-Oj.js";import"./ingest-source-persistence-DrtMONfa.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-DAw5nyWp.js";import"./mounted-authoring-MD8wY1MJ.js";import"./entity-object-sI9MDwQJ.js";import"./user-data-W3aDNol1.js";import"./workspace-arrangement-MmNy_T4o.js";import"./three-contract-Dkt6PmWY.js";import"./three-B_zMk3VF.js";import"./editor-layers-BDej9Ofa.js";import"./component-instance-root-0OmhquKK.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter-zwGjYwL0.js";import"./source-persistence-backend-BMcrOXF8.js";import"./three-projection-core-BPR7YFcJ.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-BQKS3eos.js";import"./deferred-ingest-play-DObJUzph.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-MA_K7IzV.js";import"./board-guides-DiAs0DMA.js";import"./relative-import-specifier-BFDgw6rr.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-CkG2Z66I.js";import"./inference-diagnostics-GzO30GlV.js";import"./writer-tw6EcuVO.js";import"./three-state-C_HLiIZD.js";import"./editor-shell-store-DmIN_bZc.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-C7l0uUHo.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-9nYTVIws.js";import{s as n,n as s}from"./command-results-CUQD49AB.js";import{g as m,a as p}from"./game-network-BuhrtQlJ.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-lQJX-160.js";import"./native-entry-surface-BE8LJNdu.js";import"./debug-registry-BFq6QR4G.js";import"./contract-system-adapters-C1bKdaVk.js";import"./game-contract-seams-Cfyg896y.js";import"./seeded-random-DfGQ6n66.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-E-s8WH5m.js";import"./capability-coverage-rUUpSzOn.js";import"./edit-mode-authoring-Cm2rEFlJ.js";import"./json-history-resource-C818aJwj.js";import"./binding-resolver--K9B2aXQ.js";import"./adapter-surface-Y37Nzcyw.js";import"./structural-signature-Dc7skRiy.js";import"./webgl-frame-capture-DdJkM2mi.js";import"./realm-services-NnoNrbsM.js";import"./canvas-entry-runtime-Cg364i6A.js";import"./three-ingest-runtime-CDzGhpUC.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-Lfx46SVT.js";import"./ingest-source-persistence-DbuTxtMu.js";import"./pixi-story-model-DNkfnWUV.js";import"./surface-content-Dg9Kkazf.js";import"./viewport-root-presentation-D1HAou7A.js";import"./mounted-authoring-CHg17ilK.js";import"./entity-object-DiC6cpEd.js";import"./user-data-BQR8TLTV.js";import"./workspace-arrangement-8FYR3_fQ.js";import"./three-contract-Dkt6PmWY.js";import"./three-Cq9i0Lo_.js";import"./editor-layers-kBpG49pG.js";import"./component-instance-root-DktYaTot.js";import"./viewport-editor-controls-BYaAZ_Ku.js";import"./three-authoring-adapter--CDtc-SE.js";import"./source-persistence-backend-CTvhQwDl.js";import"./three-projection-core-CxFDvqEe.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-BNfJcrsE.js";import"./deferred-ingest-play-sqaLv2U9.js";import"./rrweb-Cd2ifIRP.js";import"./react-world-authoring-adapter-CW_LKdTk.js";import"./board-guides-BRZrEdtv.js";import"./relative-import-specifier-CAVq9YAo.js";import"./story-arg-descriptors-Ek86ExX7.js";import"./inspect-3o2qSIRq.js";import"./inference-diagnostics-71A-NHW0.js";import"./writer-tw6EcuVO.js";import"./three-state-BHy0drOJ.js";import"./editor-shell-store-C6VYP6ve.js";import"./output-pass-HurwNl0G.js";import"./viewport-door-3sS8tuxh.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-jhDTJrJJ.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-9nYTVIws.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-jhDTJrJJ.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-DQh5eEm6.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-B487f_2Z.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-D05pL7iQ.js";import"./user-data-W3aDNol1.js";import"./workspace-arrangement-MmNy_T4o.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-9nYTVIws.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-DXupO6bI.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-Dti-NsGT.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-8rNw9hGx.js";import"./user-data-BQR8TLTV.js";import"./workspace-arrangement-8FYR3_fQ.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-jhDTJrJJ.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-9nYTVIws.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-jhDTJrJJ.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-B487f_2Z.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-9nYTVIws.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-Dti-NsGT.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-MmNy_T4o.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-8FYR3_fQ.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-jhDTJrJJ.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-9nYTVIws.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};