hyperframes 0.8.211 → 0.8.213

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 (220) hide show
  1. package/dist/{add-WERDY37C.js → add-GRJ6BQMO.js} +14 -13
  2. package/dist/{agentPromptGenerator-SEAPWYY5.js → agentPromptGenerator-2HTUGEKK.js} +6 -6
  3. package/dist/{animatedGifPrep-LC43PROA.js → animatedGifPrep-7KPZBZXD.js} +6 -6
  4. package/dist/api.js +18 -18
  5. package/dist/{asset-IVDQNYHP.js → asset-YVIFFWCU.js} +5 -4
  6. package/dist/{assetCataloger-PPE7M2WM.js → assetCataloger-IZW7LPCT.js} +7 -7
  7. package/dist/{audio-IJ22GXO6.js → audio-X7274SUF.js} +316 -210
  8. package/dist/{auth-FZMDHX2H.js → auth-II6SIDJD.js} +4 -4
  9. package/dist/{autoUpdate-EO6SFALF.js → autoUpdate-WJIT74BG.js} +4 -2
  10. package/dist/{backgroundChecks-YW5VIAYF.js → backgroundChecks-NMKJAES7.js} +5 -3
  11. package/dist/backgroundChecksWorker.js +5 -3
  12. package/dist/{batchRender-OOXYNZOT.js → batchRender-I7GRY73M.js} +8 -7
  13. package/dist/{beats-X7GRQA4J.js → beats-6VXALJZT.js} +15 -14
  14. package/dist/{benchmark-JGGBMRZO.js → benchmark-RLIRA74V.js} +19 -17
  15. package/dist/{browser-FQ5JPTME.js → browser-7T3JMNTR.js} +12 -10
  16. package/dist/{bundleWithLocalizedFonts-XA73ZJ4S.js → bundleWithLocalizedFonts-C2LP6QZZ.js} +2 -2
  17. package/dist/{capture-GUVCA5JQ.js → capture-OZFDTN4A.js} +48 -18
  18. package/dist/{capture-KKVB3MKM.js → capture-V4HWHG7C.js} +13 -10
  19. package/dist/{captureCompositionFrame-LNKWWCXE.js → captureCompositionFrame-WZAVXCRQ.js} +14 -13
  20. package/dist/{catalog-LKJEMEOC.js → catalog-UFC7JS4T.js} +18 -17
  21. package/dist/{catch-up-FA6KWX4S.js → catch-up-YBNKJDWJ.js} +8 -7
  22. package/dist/{check-6GIDKL6S.js → check-ESQJHRGA.js} +42 -41
  23. package/dist/{checkAudio-H3AUFC4M.js → checkAudio-OIIBWFBF.js} +26 -11
  24. package/dist/{checkBrowser-YWWF63S6.js → checkBrowser-WAWL6TKX.js} +35 -34
  25. package/dist/{chunk-KSNIYQRB.js → chunk-26AQTUU4.js} +5 -7
  26. package/dist/{chunk-B2B4MN3R.js → chunk-2GS2RUVI.js} +2 -2
  27. package/dist/{chunk-WNDTMINP.js → chunk-2WELGDXU.js} +3 -3
  28. package/dist/{chunk-OE5EHGDG.js → chunk-3OYLHBQZ.js} +1 -1
  29. package/dist/{chunk-U46JEU26.js → chunk-4645UHJF.js} +1 -0
  30. package/dist/{chunk-FI7SSV73.js → chunk-46HYDDZ5.js} +1 -1
  31. package/dist/{chunk-YPNBEBQ6.js → chunk-4BXPCS5B.js} +26 -19
  32. package/dist/{chunk-ABBVDJMG.js → chunk-53VXGZ3L.js} +2 -2
  33. package/dist/{chunk-66KMYUNO.js → chunk-5ODMV7X6.js} +2 -2
  34. package/dist/{chunk-MMJAHBH2.js → chunk-5SKC4G26.js} +4 -1
  35. package/dist/{chunk-J2JG4XGP.js → chunk-5ZBMHUY2.js} +4 -0
  36. package/dist/{chunk-YRO3PXWU.js → chunk-6CGYINE7.js} +97 -2
  37. package/dist/{chunk-JMD5HDPB.js → chunk-6ZLDIMPL.js} +2 -2
  38. package/dist/{chunk-3R5MYOJN.js → chunk-76T7KAYD.js} +2 -2
  39. package/dist/{chunk-OOA6C4AG.js → chunk-7I5N36JA.js} +2 -2
  40. package/dist/{chunk-CNU65QE2.js → chunk-7JWRVKN4.js} +9 -5
  41. package/dist/{chunk-CJ5QZRY7.js → chunk-7KBS6ZLB.js} +2 -2
  42. package/dist/{chunk-T2L2GJ4C.js → chunk-7LOVQRUJ.js} +7 -7
  43. package/dist/{chunk-FBN5AQJL.js → chunk-7TWX4Y7I.js} +3 -3
  44. package/dist/{chunk-VBC3DQFS.js → chunk-AJ3QW6RX.js} +12 -5
  45. package/dist/{chunk-FIC3E7IM.js → chunk-BE6XXZAR.js} +9 -9
  46. package/dist/{chunk-5MCR5DA5.js → chunk-BVHNFPRF.js} +5 -5
  47. package/dist/{chunk-PKWZG642.js → chunk-CLA4XSBO.js} +3 -3
  48. package/dist/{chunk-DAXKGMJL.js → chunk-D3Q2TABU.js} +5 -5
  49. package/dist/{chunk-AIY2Y5UY.js → chunk-DJFEYX23.js} +5 -5
  50. package/dist/{chunk-FVY2XRX4.js → chunk-DKEZSH6M.js} +2 -2
  51. package/dist/{chunk-LALLQUSK.js → chunk-DP5LF7GF.js} +2 -0
  52. package/dist/{chunk-Q52ISCT4.js → chunk-DQ26IA5P.js} +1 -1
  53. package/dist/{chunk-3WL7WU6K.js → chunk-ENE4IKFX.js} +19 -20
  54. package/dist/{chunk-JZVUSRZ5.js → chunk-EQ66MVWZ.js} +1 -1
  55. package/dist/{chunk-VWG7OQKU.js → chunk-EQGKUPBJ.js} +4 -1
  56. package/dist/{chunk-KZBBY72Q.js → chunk-F4EX52FU.js} +1 -1
  57. package/dist/{chunk-4JWKC3GH.js → chunk-FGIMC5I4.js} +5 -5
  58. package/dist/{chunk-CGAUUUDL.js → chunk-FHO3FXTW.js} +3 -3
  59. package/dist/chunk-FJ646TIT.js +201 -0
  60. package/dist/{chunk-77KGX4A3.js → chunk-FKFGGAXN.js} +50 -8
  61. package/dist/{chunk-VUEWZXZG.js → chunk-G6HUXX3L.js} +1 -1
  62. package/dist/{chunk-5YHQBCWH.js → chunk-G6OKQMJI.js} +12 -2
  63. package/dist/{chunk-VGKQFZCC.js → chunk-GNSNCIHF.js} +14 -14
  64. package/dist/{chunk-SXJJTFV4.js → chunk-H3I2VLLL.js} +16 -4
  65. package/dist/{chunk-UYEZTK4U.js → chunk-HPTFD6MO.js} +10 -10
  66. package/dist/{chunk-5KOZRJR7.js → chunk-HWHPYCBZ.js} +1 -1
  67. package/dist/{chunk-22OGII5H.js → chunk-I3G45TWG.js} +1 -1
  68. package/dist/{chunk-DMIFCIG6.js → chunk-IHYWP4V5.js} +1 -1
  69. package/dist/{chunk-5LITFBMY.js → chunk-ISMOBMWF.js} +35 -24
  70. package/dist/{chunk-DDRCX7P2.js → chunk-KL2UJXCY.js} +2 -2
  71. package/dist/{chunk-KDDO3UYI.js → chunk-KSMCX5EP.js} +3 -3
  72. package/dist/{chunk-UI7X4L4M.js → chunk-KVFOQ3EM.js} +2137 -2100
  73. package/dist/{chunk-472C35EW.js → chunk-KY67MTBH.js} +1 -1
  74. package/dist/{chunk-DPYI2HRJ.js → chunk-L34IH4SH.js} +5 -5
  75. package/dist/{chunk-AHPGAESX.js → chunk-L72RQ45A.js} +1 -1
  76. package/dist/{chunk-YWPCMOX4.js → chunk-LALMFSLB.js} +5 -5
  77. package/dist/{chunk-4D46TX6Q.js → chunk-LGDRKQKL.js} +1 -1
  78. package/dist/{chunk-DWIMUPFK.js → chunk-LTQXIYNL.js} +2 -2
  79. package/dist/{chunk-Z2UZAY2Q.js → chunk-LYON3VGF.js} +2 -2
  80. package/dist/{chunk-AQMGYRX6.js → chunk-MBSESQED.js} +1 -1
  81. package/dist/{chunk-ZPXXWUQ3.js → chunk-MFC2PE7D.js} +30 -4
  82. package/dist/{chunk-6J2G57BB.js → chunk-N3MOQTRS.js} +7 -7
  83. package/dist/chunk-N3ZAIZF3.js +4870 -0
  84. package/dist/{chunk-JLGVBK5M.js → chunk-N4XNRHFM.js} +18 -4
  85. package/dist/{chunk-3NIESDKN.js → chunk-NGJS5H5E.js} +1 -1
  86. package/dist/{chunk-DJ3H6EW3.js → chunk-NP4G4WPP.js} +10 -9
  87. package/dist/{chunk-RQNFW6YC.js → chunk-O63A26XQ.js} +8 -3
  88. package/dist/{chunk-XNFDDVJS.js → chunk-ONMTNYGR.js} +4 -1
  89. package/dist/{chunk-SJK64HHG.js → chunk-OWV36OJP.js} +5 -2
  90. package/dist/{chunk-4EO7DNRJ.js → chunk-PAZ7WUYZ.js} +2 -2
  91. package/dist/{chunk-K43XLAQV.js → chunk-Q55JNFDV.js} +3 -3
  92. package/dist/{chunk-CZCRSS3U.js → chunk-QHWVCKC5.js} +1 -1
  93. package/dist/{chunk-ORXLO64X.js → chunk-S2HWGG5O.js} +1 -1
  94. package/dist/{chunk-5AKWJHRJ.js → chunk-S3ZWVEGQ.js} +1 -1
  95. package/dist/chunk-SJGE5I5F.js +131 -0
  96. package/dist/{chunk-GSXA4YLV.js → chunk-STK62RL7.js} +1 -1
  97. package/dist/{chunk-B4KGJHTE.js → chunk-SZOCI3JJ.js} +2 -2
  98. package/dist/{chunk-PICG2XRD.js → chunk-TCCCAEZD.js} +2 -2
  99. package/dist/{chunk-KF6I5WA7.js → chunk-TDNPJHEQ.js} +15 -18
  100. package/dist/{chunk-BGC5S3OZ.js → chunk-TLXK5A2N.js} +49 -36
  101. package/dist/{chunk-6EN2LWOM.js → chunk-TWCICOCI.js} +1 -1
  102. package/dist/{chunk-NEQIJUV2.js → chunk-UBDO4EHA.js} +10 -1
  103. package/dist/{chunk-2QAR7ZNY.js → chunk-V2H5UABS.js} +3 -3
  104. package/dist/{chunk-3LACB6HG.js → chunk-VTX27LET.js} +3 -3
  105. package/dist/{chunk-3JYKWNFR.js → chunk-VVDHSRKD.js} +1 -1
  106. package/dist/{chunk-2RQZQJHV.js → chunk-WSEPFRJV.js} +1 -1
  107. package/dist/{chunk-K3LLHG6I.js → chunk-XNY2KI2Z.js} +1 -1
  108. package/dist/{chunk-ZNSKOXFW.js → chunk-Z65ZQYBW.js} +3 -3
  109. package/dist/{chunk-QVHC77IF.js → chunk-Z7QHOT65.js} +2 -2
  110. package/dist/{chunk-LAR5VTCN.js → chunk-ZGG53XZX.js} +5 -5
  111. package/dist/{chunk-67JTGRNM.js → chunk-ZSRNM6LP.js} +1 -1
  112. package/dist/{chunk-IEVU4FXB.js → chunk-ZTCILR3V.js} +3 -3
  113. package/dist/{clean-SVEOBRPM.js → clean-XBQ54UZX.js} +22 -21
  114. package/dist/cli.js +151 -82
  115. package/dist/{cloud-ADFJGIEH.js → cloud-E2GUGXXL.js} +4 -4
  116. package/dist/{cloudrun-BNY7Q5RK.js → cloudrun-IAPFT66T.js} +23 -20
  117. package/dist/commands/layout-audit.browser.js +7 -10
  118. package/dist/{compare-QC3T22KV.js → compare-2VPIOCLV.js} +45 -46
  119. package/dist/{compiler-4ITKK4XI.js → compiler-3ED6KJYN.js} +3 -3
  120. package/dist/{component-CNZCB3RY.js → component-IH2KSDNM.js} +6 -5
  121. package/dist/{compositions-UO32IP6Z.js → compositions-MIMF2GM3.js} +14 -13
  122. package/dist/{delete-RWTOSI24.js → delete-5H5EYSYK.js} +13 -11
  123. package/dist/{deploy-OKWS53NP.js → deploy-DMQT34K2.js} +5 -5
  124. package/dist/{destroy-4RL5VOXQ.js → destroy-BQ5R7LUF.js} +3 -3
  125. package/dist/{deterministicFonts-LKAGUNE5.js → deterministicFonts-2ISM3LMW.js} +1 -1
  126. package/dist/{dist-AEE3QTRB.js → dist-ANQ2CIIO.js} +2 -2
  127. package/dist/{dist-NCI6JOJZ.js → dist-OKQM7BQ3.js} +3 -1
  128. package/dist/{docs-UMIA66EZ.js → docs-6EM6FDNI.js} +5 -4
  129. package/dist/{doctor-SIF72ESZ.js → doctor-MTRZJQZZ.js} +12 -10
  130. package/dist/{events-S3VUTFEG.js → events-2GNMM2YS.js} +5 -3
  131. package/dist/{events-34PIVLZQ.js → events-TBKM6B5H.js} +8 -5
  132. package/dist/{feedback-VS4LRXHW.js → feedback-6NNSKXQP.js} +20 -19
  133. package/dist/{ffmpeg-YVQOKNV6.js → ffmpeg-622QCJLB.js} +6 -6
  134. package/dist/{figma-AF4JKDBA.js → figma-TFHZ3N5A.js} +3 -3
  135. package/dist/fontLocalizeCli.js +11 -11
  136. package/dist/{get-UQGCS6Q4.js → get-P6RA7MAU.js} +8 -7
  137. package/dist/{gpuPolicy-Q4B3D6PW.js → gpuPolicy-CK2XDEAM.js} +6 -6
  138. package/dist/{grade-compare-G34673XC.js → grade-compare-LK6U7OJD.js} +47 -45
  139. package/dist/{heifImagePrep-XD4DGOUS.js → heifImagePrep-3OXKQUEZ.js} +7 -7
  140. package/dist/{help-3QSD26IC.js → help-YENCFXYK.js} +11 -7
  141. package/dist/{history-6DC24UCF.js → history-V3E4UCMY.js} +15 -12
  142. package/dist/hyperframe.manifest.json +1 -1
  143. package/dist/hyperframe.runtime.iife.js +64 -64
  144. package/dist/hyperframes-player.global.js +1 -1
  145. package/dist/{info-6JUHWWJK.js → info-ZGKQMX3Z.js} +11 -10
  146. package/dist/{init-2DPX6U3J.js → init-D6PJI2TA.js} +38 -37
  147. package/dist/{inspect-Z55YUSXC.js → inspect-UCHLILOX.js} +33 -32
  148. package/dist/{installer-XVKYJU7S.js → installer-CV2OKJFW.js} +4 -4
  149. package/dist/{keyframes-YHF4AQIL.js → keyframes-2IJTDJ7K.js} +10 -9
  150. package/dist/{lambda-JITTS37E.js → lambda-GKZBKWTK.js} +32 -30
  151. package/dist/{layout-V5NYJXIX.js → layout-KKPRCTME.js} +33 -32
  152. package/dist/{lint-V4WMO7YL.js → lint-NAC6M4NT.js} +18 -15
  153. package/dist/{lintProject-EM7Y2ZRB.js → lintProject-MSATZIK7.js} +1 -1
  154. package/dist/{list-W7UCIYKA.js → list-QRMXOTNB.js} +11 -10
  155. package/dist/{live-LAHBXVK2.js → live-WWPFZQ74.js} +33 -7
  156. package/dist/{localPage-BLQFFIDF.js → localPage-KMXALM7A.js} +6 -6
  157. package/dist/{login-IX3MOREU.js → login-GBN5ZMEA.js} +11 -11
  158. package/dist/{logout-46NLNY2K.js → logout-C6P6ERZ3.js} +5 -5
  159. package/dist/{manager-WJOWZNHM.js → manager-GPDDRQIW.js} +8 -8
  160. package/dist/{media-treatment-XBO6EXL4.js → media-treatment-4Q7G27JJ.js} +44 -34
  161. package/dist/{media-use-3RFKY7XJ.js → media-use-ZRHFRO46.js} +1 -1
  162. package/dist/{models-P3NSHDQS.js → models-7KJF4LYJ.js} +27 -20
  163. package/dist/{motionShot-D4QMLTQP.js → motionShot-DQAX2QTZ.js} +17 -16
  164. package/dist/{normalize-audio-Q4VUR3QJ.js → normalize-audio-K7VCJQYJ.js} +30 -19
  165. package/dist/{open-LGKX534P.js → open-ZSBVR3KC.js} +17 -16
  166. package/dist/{parakeetRunner-FAOQMPS6.js → parakeetRunner-XXZHJYKO.js} +12 -12
  167. package/dist/{pipeline-2YONKZYC.js → pipeline-KNLOS5CL.js} +11 -11
  168. package/dist/{play-PJOUIY55.js → play-GQWF7MU5.js} +32 -34
  169. package/dist/{policies-UPNRQ7IW.js → policies-J5BWAZHM.js} +11 -10
  170. package/dist/{preflight-3PPM7QBU.js → preflight-UMKQ5C5W.js} +7 -7
  171. package/dist/{present-323D6OE2.js → present-X7BPH35M.js} +28 -30
  172. package/dist/{preview-E42QP2KX.js → preview-5Q7HPEOF.js} +25 -24
  173. package/dist/{producer-MTMNLJSC.js → producer-IXOPGETH.js} +1 -1
  174. package/dist/{progress-LMQ2DXM4.js → progress-X3QFO3FE.js} +4 -4
  175. package/dist/{projectConfig-5QRVB5KY.js → projectConfig-YGI5AINR.js} +6 -6
  176. package/dist/{prompts-P3IT5H36.js → prompts-VAO7RDKX.js} +2 -2
  177. package/dist/{publication-AUZLFOG5.js → publication-ZSDCS2ST.js} +2 -2
  178. package/dist/{publish-H5P7UHRV.js → publish-S2IIRPFZ.js} +18 -18
  179. package/dist/{refresh-4XRQS3N6.js → refresh-IYRGLHG5.js} +5 -5
  180. package/dist/{remove-background-T2RV476S.js → remove-background-F2WFDCNM.js} +22 -18
  181. package/dist/{render-4XEB3XWI.js → render-CHRSSQNM.js} +60 -58
  182. package/dist/{render-3FRGIWES.js → render-NVHUPEDG.js} +28 -27
  183. package/dist/{render-GJH7446R.js → render-WYBQO4SR.js} +11 -10
  184. package/dist/{render-batch-77X5453X.js → render-batch-SDGA2643.js} +12 -11
  185. package/dist/renderSetupWorker.js +1 -1
  186. package/dist/{resolver-DIUNK525.js → resolver-3W2OPVGC.js} +4 -4
  187. package/dist/{sam-FHJ7IL7T.js → sam-QA7JT7IM.js} +2 -1
  188. package/dist/{sherpa-SUS3YSEP.js → sherpa-HCPAOYGA.js} +11 -11
  189. package/dist/{sites-V42IFVTK.js → sites-MTLVMYJ6.js} +2 -2
  190. package/dist/{skills-YCGSIOCE.js → skills-KOVM4OP5.js} +17 -13
  191. package/dist/{skillsUpdateCheck-VCQIZGOL.js → skillsUpdateCheck-ISMQFMPY.js} +5 -3
  192. package/dist/{snapshot-H6R5PWNS.js → snapshot-K7LVZDHG.js} +340 -107
  193. package/dist/{src-ED5VCIRC.js → src-FUMXFZYG.js} +10 -10
  194. package/dist/{src-HHDLJV4L.js → src-QEFKMRH7.js} +11 -5
  195. package/dist/{state-D5SYQFCB.js → state-6QHNNHDA.js} +2 -2
  196. package/dist/{staticProjectServer-VY7QG5XH.js → staticProjectServer-MF57NBIU.js} +18 -18
  197. package/dist/{status-GEZNVPII.js → status-SLILCDBZ.js} +12 -7
  198. package/dist/studio/assets/{hyperframes-player-CzrqgMUX.js → hyperframes-player-Bb6n05RB.js} +1 -1
  199. package/dist/studio/assets/{index-B3SPHPi1.js → index-DOtf09XR.js} +1 -1
  200. package/dist/studio/assets/{index-k4nVfS2D.js → index-pq574E5O.js} +119 -119
  201. package/dist/studio/index.html +1 -1
  202. package/dist/{studio-api-TR5RPX57.js → studio-api-Y4S3W7XE.js} +10 -10
  203. package/dist/{studioServer-4SZLLQOV.js → studioServer-5LUZQOQV.js} +53 -52
  204. package/dist/{synthesize-QALK5SQR.js → synthesize-FQML2LN2.js} +2 -2
  205. package/dist/{telemetry-KGY7G3UR.js → telemetry-NTO4FJFN.js} +5 -4
  206. package/dist/{telemetry-7HUKOQ6X.js → telemetry-TJMB5BTF.js} +6 -5
  207. package/dist/{timeline-CGIKWCQI.js → timeline-CU6CIWYL.js} +31 -27
  208. package/dist/{tokens-AZALDJEK.js → tokens-7P4N2FWN.js} +5 -4
  209. package/dist/{transcribe-CTF5EIXJ.js → transcribe-FZ7JK6QS.js} +28 -25
  210. package/dist/{transcribe-V6K5547L.js → transcribe-TFDEQFMG.js} +10 -10
  211. package/dist/{tts-C2HBLFKK.js → tts-K5HRN6NQ.js} +17 -13
  212. package/dist/{updateCheck-5I563YLB.js → updateCheck-HUDVZHVM.js} +4 -2
  213. package/dist/{upgrade-GRPVQE7Z.js → upgrade-KP4RQZKY.js} +7 -6
  214. package/dist/{urlDownloader-EP6Q4WES.js → urlDownloader-5SHSHWMB.js} +5 -5
  215. package/dist/{validate-TVCDSQS3.js → validate-VWX423M4.js} +27 -26
  216. package/dist/{video-CFEIRKAE.js → video-K4L2YFU2.js} +10 -10
  217. package/dist/warmCheck.js +44 -43
  218. package/package.json +1 -1
  219. package/dist/chunk-FWKZ3O52.js +0 -4870
  220. package/dist/chunk-WQ6ZXHFQ.js +0 -133
package/dist/cli.js CHANGED
@@ -10,15 +10,18 @@ import {
10
10
  } from "./chunk-4VYPICIA.js";
11
11
  import {
12
12
  resolveExtraPositionals
13
- } from "./chunk-SJK64HHG.js";
13
+ } from "./chunk-OWV36OJP.js";
14
14
  import "./chunk-K4WKGXRC.js";
15
15
  import {
16
- isRenderSucceeded
17
- } from "./chunk-NEQIJUV2.js";
16
+ isRenderSucceeded,
17
+ isRunDelivered,
18
+ markCommandDelivered
19
+ } from "./chunk-UBDO4EHA.js";
18
20
  import {
19
21
  assertKnownFlags,
22
+ closestMatch,
20
23
  guardSwallowedFlagValues
21
- } from "./chunk-77KGX4A3.js";
24
+ } from "./chunk-FKFGGAXN.js";
22
25
  import {
23
26
  defineCommand
24
27
  } from "./chunk-DL4OD7IA.js";
@@ -29,6 +32,15 @@ import {
29
32
  import {
30
33
  getRunId
31
34
  } from "./chunk-54HJ63Q2.js";
35
+ import "./chunk-2GICKZ3I.js";
36
+ import {
37
+ isDevMode
38
+ } from "./chunk-ISN5GRYI.js";
39
+ import {
40
+ jsonErrorBody,
41
+ watchOutput,
42
+ writeJsonFailure
43
+ } from "./chunk-SJGE5I5F.js";
32
44
  import {
33
45
  CliResultSignal,
34
46
  CliRuntimeError,
@@ -38,15 +50,11 @@ import {
38
50
  outputWritten,
39
51
  registerRootExitCodeSanitizer,
40
52
  registerRootExitRequester
41
- } from "./chunk-LALLQUSK.js";
42
- import "./chunk-2GICKZ3I.js";
43
- import {
44
- isDevMode
45
- } from "./chunk-ISN5GRYI.js";
53
+ } from "./chunk-DP5LF7GF.js";
46
54
  import "./chunk-J3RXEDR2.js";
47
55
  import {
48
56
  VERSION
49
- } from "./chunk-DDRCX7P2.js";
57
+ } from "./chunk-KL2UJXCY.js";
50
58
  import "./chunk-G7VEYUZ2.js";
51
59
  import "./chunk-XT6MXC7A.js";
52
60
  import "./chunk-7KDQAD2W.js";
@@ -100,7 +108,7 @@ function guardLeafFlags(cmd, path, ctx, rawArgs) {
100
108
  }
101
109
  async function reportCommandFailure(command2, err) {
102
110
  try {
103
- const { trackCommandFailure } = await import("./events-34PIVLZQ.js");
111
+ const { trackCommandFailure } = await import("./events-TBKM6B5H.js");
104
112
  trackCommandFailure(command2, err);
105
113
  } catch {
106
114
  }
@@ -116,14 +124,22 @@ async function loadSubcommand(command2, name) {
116
124
  async function resolveCommandUsage(root, argv2) {
117
125
  let command2 = root;
118
126
  let parent;
127
+ const path = [];
119
128
  for (const argument of argv2) {
120
129
  if (argument.startsWith("-")) break;
121
130
  const child = await loadSubcommand(command2, argument);
122
- if (!child) break;
131
+ if (!child)
132
+ return {
133
+ command: command2,
134
+ parent,
135
+ path,
136
+ unknownSubcommand: command2.subCommands ? argument : void 0
137
+ };
123
138
  parent = command2;
124
139
  command2 = child;
140
+ path.push(argument);
125
141
  }
126
- return { command: command2, parent };
142
+ return { command: command2, parent, path };
127
143
  }
128
144
 
129
145
  // src/utils/projectShortcut.ts
@@ -162,6 +178,10 @@ for (const stream of [process.stdout, process.stderr]) {
162
178
  }
163
179
  })();
164
180
  var argv = process.argv.slice(2);
181
+ if (argv[0] === "help") {
182
+ process.argv = [...process.argv.slice(0, 2), ...argv.slice(1), "--help"];
183
+ argv = process.argv.slice(2);
184
+ }
165
185
  var commandArg = argv[0];
166
186
  var rootVersionRequested = commandArg === "--version" || commandArg === "-V" || commandArg === void 0 && (argv.includes("--version") || argv.includes("-V"));
167
187
  if (rootVersionRequested) {
@@ -197,55 +217,55 @@ async function assertStudioWorkspaceBuilt() {
197
217
  });
198
218
  }
199
219
  var commandLoaders = {
200
- init: () => import("./init-2DPX6U3J.js").then((m) => m.default),
201
- add: () => import("./add-WERDY37C.js").then((m) => m.default),
202
- catalog: () => import("./catalog-LKJEMEOC.js").then((m) => m.default),
203
- "media-use": () => import("./media-use-3RFKY7XJ.js").then((m) => m.default),
204
- play: () => import("./play-PJOUIY55.js").then((m) => m.default),
205
- present: () => import("./present-323D6OE2.js").then((m) => m.default),
206
- preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-E42QP2KX.js").then((m) => m.default)),
207
- publish: () => import("./publish-H5P7UHRV.js").then((m) => m.default),
208
- open: () => import("./open-LGKX534P.js").then((m) => m.default),
209
- "catch-up": () => import("./catch-up-FA6KWX4S.js").then((m) => m.default),
210
- render: () => import("./render-4XEB3XWI.js").then((m) => m.default),
211
- lint: () => import("./lint-V4WMO7YL.js").then((m) => m.default),
212
- check: () => import("./check-6GIDKL6S.js").then((m) => m.default),
213
- beats: () => import("./beats-X7GRQA4J.js").then((m) => m.default),
214
- audio: () => import("./audio-IJ22GXO6.js").then((m) => m.default),
215
- "normalize-audio": () => import("./normalize-audio-Q4VUR3QJ.js").then((m) => m.default),
216
- inspect: () => import("./inspect-Z55YUSXC.js").then((m) => m.default),
217
- keyframes: () => import("./keyframes-YHF4AQIL.js").then((m) => m.default),
218
- layout: () => import("./layout-V5NYJXIX.js").then((m) => m.default),
219
- info: () => import("./info-6JUHWWJK.js").then((m) => m.default),
220
- compositions: () => import("./compositions-UO32IP6Z.js").then((m) => m.default),
221
- timeline: () => import("./timeline-CGIKWCQI.js").then((m) => m.default),
222
- history: () => import("./history-6DC24UCF.js").then((m) => m.default),
223
- benchmark: () => import("./benchmark-JGGBMRZO.js").then((m) => m.default),
224
- browser: () => import("./browser-FQ5JPTME.js").then((m) => m.default),
225
- "remove-background": () => import("./remove-background-T2RV476S.js").then((m) => m.default),
226
- transcribe: () => import("./transcribe-CTF5EIXJ.js").then((m) => m.default),
220
+ init: () => import("./init-D6PJI2TA.js").then((m) => m.default),
221
+ add: () => import("./add-GRJ6BQMO.js").then((m) => m.default),
222
+ catalog: () => import("./catalog-UFC7JS4T.js").then((m) => m.default),
223
+ "media-use": () => import("./media-use-ZRHFRO46.js").then((m) => m.default),
224
+ play: () => import("./play-GQWF7MU5.js").then((m) => m.default),
225
+ present: () => import("./present-X7BPH35M.js").then((m) => m.default),
226
+ preview: () => assertStudioWorkspaceBuilt().then(() => import("./preview-5Q7HPEOF.js").then((m) => m.default)),
227
+ publish: () => import("./publish-S2IIRPFZ.js").then((m) => m.default),
228
+ open: () => import("./open-ZSBVR3KC.js").then((m) => m.default),
229
+ "catch-up": () => import("./catch-up-YBNKJDWJ.js").then((m) => m.default),
230
+ render: () => import("./render-CHRSSQNM.js").then((m) => m.default),
231
+ lint: () => import("./lint-NAC6M4NT.js").then((m) => m.default),
232
+ check: () => import("./check-ESQJHRGA.js").then((m) => m.default),
233
+ beats: () => import("./beats-6VXALJZT.js").then((m) => m.default),
234
+ audio: () => import("./audio-X7274SUF.js").then((m) => m.default),
235
+ "normalize-audio": () => import("./normalize-audio-K7VCJQYJ.js").then((m) => m.default),
236
+ inspect: () => import("./inspect-UCHLILOX.js").then((m) => m.default),
237
+ keyframes: () => import("./keyframes-2IJTDJ7K.js").then((m) => m.default),
238
+ layout: () => import("./layout-KKPRCTME.js").then((m) => m.default),
239
+ info: () => import("./info-ZGKQMX3Z.js").then((m) => m.default),
240
+ compositions: () => import("./compositions-MIMF2GM3.js").then((m) => m.default),
241
+ timeline: () => import("./timeline-CU6CIWYL.js").then((m) => m.default),
242
+ history: () => import("./history-V3E4UCMY.js").then((m) => m.default),
243
+ benchmark: () => import("./benchmark-RLIRA74V.js").then((m) => m.default),
244
+ browser: () => import("./browser-7T3JMNTR.js").then((m) => m.default),
245
+ "remove-background": () => import("./remove-background-F2WFDCNM.js").then((m) => m.default),
246
+ transcribe: () => import("./transcribe-FZ7JK6QS.js").then((m) => m.default),
227
247
  usage: () => import("./usage-772JV45U.js").then((m) => m.default),
228
- models: () => import("./models-P3NSHDQS.js").then((m) => m.default),
229
- tts: () => import("./tts-C2HBLFKK.js").then((m) => m.default),
230
- docs: () => import("./docs-UMIA66EZ.js").then((m) => m.default),
231
- doctor: () => import("./doctor-SIF72ESZ.js").then((m) => m.default),
232
- clean: () => import("./clean-SVEOBRPM.js").then((m) => m.default),
233
- upgrade: () => import("./upgrade-GRPVQE7Z.js").then((m) => m.default),
234
- skills: () => import("./skills-YCGSIOCE.js").then((m) => m.default),
235
- feedback: () => import("./feedback-VS4LRXHW.js").then((m) => m.default),
236
- telemetry: () => import("./telemetry-KGY7G3UR.js").then((m) => m.default),
237
- events: () => import("./events-S3VUTFEG.js").then((m) => m.default),
238
- validate: () => import("./validate-TVCDSQS3.js").then((m) => m.default),
239
- snapshot: () => import("./snapshot-H6R5PWNS.js").then((m) => m.default),
240
- "media-treatment": () => import("./media-treatment-XBO6EXL4.js").then((m) => m.mediaTreatmentCommand),
241
- "grade-compare": () => import("./grade-compare-G34673XC.js").then((m) => m.default),
242
- compare: () => import("./compare-QC3T22KV.js").then((m) => m.default),
243
- capture: () => import("./capture-KKVB3MKM.js").then((m) => m.default),
244
- lambda: () => import("./lambda-JITTS37E.js").then((m) => m.default),
245
- cloudrun: () => import("./cloudrun-BNY7Q5RK.js").then((m) => m.default),
246
- cloud: () => import("./cloud-ADFJGIEH.js").then((m) => m.default),
247
- auth: () => import("./auth-FZMDHX2H.js").then((m) => m.default),
248
- figma: () => import("./figma-AF4JKDBA.js").then((m) => m.default)
248
+ models: () => import("./models-7KJF4LYJ.js").then((m) => m.default),
249
+ tts: () => import("./tts-K5HRN6NQ.js").then((m) => m.default),
250
+ docs: () => import("./docs-6EM6FDNI.js").then((m) => m.default),
251
+ doctor: () => import("./doctor-MTRZJQZZ.js").then((m) => m.default),
252
+ clean: () => import("./clean-XBQ54UZX.js").then((m) => m.default),
253
+ upgrade: () => import("./upgrade-KP4RQZKY.js").then((m) => m.default),
254
+ skills: () => import("./skills-KOVM4OP5.js").then((m) => m.default),
255
+ feedback: () => import("./feedback-6NNSKXQP.js").then((m) => m.default),
256
+ telemetry: () => import("./telemetry-NTO4FJFN.js").then((m) => m.default),
257
+ events: () => import("./events-2GNMM2YS.js").then((m) => m.default),
258
+ validate: () => import("./validate-VWX423M4.js").then((m) => m.default),
259
+ snapshot: () => import("./snapshot-K7LVZDHG.js").then((m) => m.default),
260
+ "media-treatment": () => import("./media-treatment-4Q7G27JJ.js").then((m) => m.mediaTreatmentCommand),
261
+ "grade-compare": () => import("./grade-compare-LK6U7OJD.js").then((m) => m.default),
262
+ compare: () => import("./compare-2VPIOCLV.js").then((m) => m.default),
263
+ capture: () => import("./capture-V4HWHG7C.js").then((m) => m.default),
264
+ lambda: () => import("./lambda-GKZBKWTK.js").then((m) => m.default),
265
+ cloudrun: () => import("./cloudrun-IAPFT66T.js").then((m) => m.default),
266
+ cloud: () => import("./cloud-E2GUGXXL.js").then((m) => m.default),
267
+ auth: () => import("./auth-II6SIDJD.js").then((m) => m.default),
268
+ figma: () => import("./figma-TFHZ3N5A.js").then((m) => m.default)
249
269
  };
250
270
  process.argv = [
251
271
  ...process.argv.slice(0, 2),
@@ -266,6 +286,7 @@ var main = defineCommand({
266
286
  var cliCommandArg = process.argv[2];
267
287
  var command = cliCommandArg && cliCommandArg in subCommands ? cliCommandArg : "unknown";
268
288
  var hasJsonFlag = process.argv.includes("--json");
289
+ var jsonOutput = hasJsonFlag ? watchOutput() : void 0;
269
290
  var _flushSync;
270
291
  var _trackCliError;
271
292
  var _trackCommandResult;
@@ -274,7 +295,7 @@ var _printStalePinNotice;
274
295
  var _printSkillsUpdateNotice;
275
296
  var telemetryReady = Promise.resolve();
276
297
  if (!isHelp && command !== "telemetry" && command !== "events" && command !== "usage" && command !== "unknown") {
277
- telemetryReady = import("./telemetry-7HUKOQ6X.js").then((mod) => {
298
+ telemetryReady = import("./telemetry-TJMB5BTF.js").then((mod) => {
278
299
  _flushSync = mod.flushSync;
279
300
  _trackCliError = mod.trackCliError;
280
301
  _trackCommandResult = mod.trackCommandResult;
@@ -285,24 +306,24 @@ if (!isHelp && command !== "telemetry" && command !== "events" && command !== "u
285
306
  }
286
307
  if (!isHelp && command !== "upgrade" && command !== "events" && command !== "telemetry" && command !== "skills" && command !== "usage") {
287
308
  if (!hasJsonFlag) {
288
- import("./autoUpdate-EO6SFALF.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
309
+ import("./autoUpdate-WJIT74BG.js").then((mod) => mod.reportCompletedUpdate()).catch(() => {
289
310
  });
290
- import("./updateCheck-5I563YLB.js").then(async (mod) => {
311
+ import("./updateCheck-HUDVZHVM.js").then(async (mod) => {
291
312
  _printUpdateNotice = mod.printUpdateNotice;
292
313
  _printStalePinNotice = mod.printStalePinNotice;
293
314
  const result = mod.cachedUpdateCheck();
294
315
  if (result.updateAvailable) {
295
- const auto = await import("./autoUpdate-EO6SFALF.js").catch(() => null);
316
+ const auto = await import("./autoUpdate-WJIT74BG.js").catch(() => null);
296
317
  auto?.scheduleBackgroundInstall(result.latest, result.current);
297
318
  }
298
319
  }).catch(() => {
299
320
  });
300
321
  }
301
- import("./skillsUpdateCheck-VCQIZGOL.js").then((mod) => {
322
+ import("./skillsUpdateCheck-ISMQFMPY.js").then((mod) => {
302
323
  _printSkillsUpdateNotice = mod.printSkillsUpdateNotice;
303
324
  }).catch(() => {
304
325
  });
305
- import("./backgroundChecks-YW5VIAYF.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
326
+ import("./backgroundChecks-NMKJAES7.js").then((mod) => mod.launchBackgroundChecks()).catch(() => {
306
327
  });
307
328
  }
308
329
  var _appHistoryNotice = null;
@@ -319,6 +340,7 @@ async function finalizeCli(result) {
319
340
  if (finalized) return;
320
341
  finalized = true;
321
342
  const exitCode = isRenderSucceeded() ? 0 : result.exitCode;
343
+ if (exitCode === 0) markCommandDelivered();
322
344
  commandFailed ||= exitCode !== 0;
323
345
  await telemetryReady.catch(() => {
324
346
  });
@@ -329,6 +351,10 @@ async function finalizeCli(result) {
329
351
  durationMs: Date.now() - commandStart,
330
352
  runId
331
353
  });
354
+ if (result.kind !== "usage_error") printNotices();
355
+ process.exitCode = exitCode;
356
+ }
357
+ function printNotices() {
332
358
  if (!hasJsonFlag) {
333
359
  _printUpdateNotice?.();
334
360
  _printStalePinNotice?.();
@@ -336,7 +362,6 @@ async function finalizeCli(result) {
336
362
  _printSkillsUpdateNotice?.();
337
363
  if (_appHistoryNotice) process.stderr.write(`\u25C7 ${_appHistoryNotice}
338
364
  `);
339
- process.exitCode = exitCode;
340
365
  }
341
366
  registerRootExitRequester((exitCode) => {
342
367
  void finalizeCli({
@@ -380,7 +405,7 @@ function emitCliErrorEvent(kind, error) {
380
405
  }
381
406
  function reportPostRenderTerminationEvent(label, kind, error) {
382
407
  process.stderr.write(
383
- ` [hyperframes] Post-render ${label} (render already succeeded): ${error.message}
408
+ ` [hyperframes] Late ${label} (the command already delivered its result): ${error.message}
384
409
  `
385
410
  );
386
411
  emitCliErrorEvent(kind, error);
@@ -391,7 +416,7 @@ function exitAfterPostRenderTermination(label, kind, error) {
391
416
  process.exit(0);
392
417
  }
393
418
  function handleStreamEpipe() {
394
- if (!isRenderSucceeded()) commandFailed = true;
419
+ if (!isRunDelivered()) commandFailed = true;
395
420
  process.exit(0);
396
421
  }
397
422
  function commandSucceededForTelemetry() {
@@ -407,14 +432,14 @@ process.on("uncaughtException", (error) => {
407
432
  if (error.code === "EPIPE") {
408
433
  handleStreamEpipe();
409
434
  }
410
- if (isRenderSucceeded()) {
435
+ if (isRunDelivered()) {
411
436
  exitAfterPostRenderTermination("uncaughtException", "uncaught_exception", error);
412
437
  }
413
438
  exitAfterCliFailure("uncaught_exception", error);
414
439
  });
415
440
  process.on("unhandledRejection", (reason) => {
416
441
  const error = reason instanceof Error ? reason : new Error(String(reason));
417
- if (isRenderSucceeded()) {
442
+ if (isRunDelivered()) {
418
443
  reportPostRenderTerminationEvent("unhandledRejection", "unhandled_rejection", error);
419
444
  return;
420
445
  }
@@ -422,17 +447,52 @@ process.on("unhandledRejection", (reason) => {
422
447
  process.exitCode = 1;
423
448
  emitCliErrorEvent("unhandled_rejection", error);
424
449
  });
425
- async function showUsage(cmd, parent) {
426
- const { showUsage: impl } = await import("./help-3QSD26IC.js");
427
- return impl(cmd, parent);
450
+ async function showUsage(cmd, parent, print) {
451
+ const { showUsage: impl } = await import("./help-YENCFXYK.js");
452
+ return impl(cmd, parent, print);
453
+ }
454
+ async function unknownCommandError(requested) {
455
+ const word = requested.unknownSubcommand ?? "";
456
+ const group = ["hyperframes", ...requested.path].join(" ");
457
+ const declared = requested.command.subCommands;
458
+ const subCommands2 = typeof declared === "function" ? await declared() : await declared;
459
+ const match = closestMatch(word, Object.keys(subCommands2 ?? {}));
460
+ console.error(`Unknown command: ${word}`);
461
+ if (match) console.error(`Did you mean '${group} ${match}'?`);
462
+ console.error("");
463
+ await showUsage(requested.command, requested.parent, console.error);
464
+ return new CliUsageError(`Unknown command: ${word}`, {
465
+ presented: true,
466
+ code: "unknown_command",
467
+ hint: match ? `Did you mean '${group} ${match}'?` : void 0
468
+ });
469
+ }
470
+ function takesPositionals(command2) {
471
+ const args = command2.args;
472
+ return typeof args === "object" && args !== null && Object.values(args).some((arg) => arg.type === "positional");
428
473
  }
429
- async function showRequestedUsage() {
474
+ async function showRequestedUsage(print) {
430
475
  const requested = await resolveCommandUsage(main, argv);
431
- return showUsage(requested.command, requested.parent);
476
+ if (requested.unknownSubcommand && !takesPositionals(requested.command)) {
477
+ throw await unknownCommandError(requested);
478
+ }
479
+ return showUsage(requested.command, requested.parent, print);
480
+ }
481
+ async function rejectUnknownTopLevelCommand() {
482
+ const word = argv[0];
483
+ if (!word || word.startsWith("-") || Object.hasOwn(subCommands, word)) return;
484
+ throw await unknownCommandError({
485
+ command: main,
486
+ path: [],
487
+ unknownSubcommand: word
488
+ });
489
+ }
490
+ function isCittyError(error, code) {
491
+ return error instanceof Error && error.name === "CLIError" && error.code === code;
432
492
  }
433
493
  var CITTY_USAGE_CODES = /* @__PURE__ */ new Set(["EARG", "E_UNKNOWN_COMMAND", "E_NO_COMMAND"]);
434
494
  function isCittyUsageError(error) {
435
- return error instanceof Error && error.name === "CLIError" && CITTY_USAGE_CODES.has(String(error.code));
495
+ return [...CITTY_USAGE_CODES].some((code) => isCittyError(error, code));
436
496
  }
437
497
  function commandResultForError(error) {
438
498
  if (error instanceof CliResultSignal) return error.result;
@@ -442,17 +502,23 @@ function commandResultForError(error) {
442
502
  }
443
503
  async function executeCli() {
444
504
  let result = { exitCode: 0, kind: "success" };
505
+ let failure;
445
506
  try {
446
- if (isHelp) await showRequestedUsage();
447
- else await runCommand(main, { rawArgs: argv });
448
- } catch (error) {
507
+ if (isHelp) await showRequestedUsage(console.log);
508
+ else {
509
+ await rejectUnknownTopLevelCommand();
510
+ await runCommand(main, { rawArgs: argv });
511
+ }
512
+ } catch (caught) {
513
+ const error = isCittyError(caught, "E_UNKNOWN_COMMAND") ? await unknownCommandError(await resolveCommandUsage(main, argv)) : caught;
514
+ failure = error;
449
515
  result = commandResultForError(error);
450
516
  if (!(error instanceof CliResultSignal)) {
451
517
  commandFailed = true;
452
518
  await reportCommandFailure(command, error);
453
519
  const typed = error instanceof CliUsageError || error instanceof CliRuntimeError;
454
520
  const usage = error instanceof CliUsageError && !error.result.presented;
455
- if (usage && !error.hint) await showRequestedUsage();
521
+ if (usage && !error.hint) await showRequestedUsage(console.error);
456
522
  if (!typed || !error.result.presented) {
457
523
  console.error(error instanceof Error ? error.message : String(error));
458
524
  }
@@ -461,6 +527,9 @@ async function executeCli() {
461
527
  } finally {
462
528
  const pending = consumeCommandResult();
463
529
  if (pending.exitCode !== 0 || result.exitCode === 0) result = pending;
530
+ if (jsonOutput && result.exitCode !== 0 && !jsonOutput.wroteStdout()) {
531
+ writeJsonFailure(jsonErrorBody(failure, result, jsonOutput.stderrText()));
532
+ }
464
533
  await finalizeCli(result);
465
534
  }
466
535
  }
@@ -60,10 +60,10 @@ ${c.bold("AUTH:")}
60
60
  var cloud_default = defineCommand({
61
61
  meta: { name: "cloud", description: "Render HyperFrames compositions on the HeyGen cloud" },
62
62
  subCommands: {
63
- render: () => import("./render-3FRGIWES.js").then((m) => m.default),
64
- list: () => import("./list-W7UCIYKA.js").then((m) => m.default),
65
- get: () => import("./get-UQGCS6Q4.js").then((m) => m.default),
66
- delete: () => import("./delete-RWTOSI24.js").then((m) => m.default)
63
+ render: () => import("./render-NVHUPEDG.js").then((m) => m.default),
64
+ list: () => import("./list-QRMXOTNB.js").then((m) => m.default),
65
+ get: () => import("./get-P6RA7MAU.js").then((m) => m.default),
66
+ delete: () => import("./delete-5H5EYSYK.js").then((m) => m.default)
67
67
  },
68
68
  async run({ args }) {
69
69
  if (!args._?.[0]) console.log(HELP);
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  parseOutputResolutionFlag
9
- } from "./chunk-MMJAHBH2.js";
9
+ } from "./chunk-5SKC4G26.js";
10
10
  import {
11
11
  isMissingPackageError,
12
12
  missingPackageMessage
@@ -15,29 +15,25 @@ import {
15
15
  reportVariableIssues,
16
16
  resolveVariablesArg,
17
17
  validateVariablesAgainstProject
18
- } from "./chunk-CNU65QE2.js";
18
+ } from "./chunk-7JWRVKN4.js";
19
19
  import "./chunk-ZBAF6L74.js";
20
20
  import "./chunk-XFMO3BEN.js";
21
21
  import {
22
22
  defaultCloudFps
23
- } from "./chunk-AQMGYRX6.js";
24
- import "./chunk-J2JG4XGP.js";
23
+ } from "./chunk-MBSESQED.js";
24
+ import "./chunk-5ZBMHUY2.js";
25
25
  import {
26
26
  defineCommand
27
27
  } from "./chunk-DL4OD7IA.js";
28
28
  import "./chunk-S3S4TGEH.js";
29
- import {
30
- failCommand,
31
- failUsage
32
- } from "./chunk-LALLQUSK.js";
33
29
  import {
34
30
  c
35
31
  } from "./chunk-2GICKZ3I.js";
36
32
  import {
37
33
  DISTRIBUTED_FPS,
38
34
  isDistributedFps
39
- } from "./chunk-472C35EW.js";
40
- import "./chunk-FWKZ3O52.js";
35
+ } from "./chunk-KY67MTBH.js";
36
+ import "./chunk-N3ZAIZF3.js";
41
37
  import "./chunk-VC76R6W2.js";
42
38
  import "./chunk-OFQWTKPW.js";
43
39
  import "./chunk-RQVDTPGD.js";
@@ -51,6 +47,12 @@ import "./chunk-GWTIFRF5.js";
51
47
  import "./chunk-2RY2LWAA.js";
52
48
  import "./chunk-3422KMTD.js";
53
49
  import "./chunk-WC4MTXGN.js";
50
+ import "./chunk-SJGE5I5F.js";
51
+ import {
52
+ CliUsageError,
53
+ failCommand,
54
+ failUsage
55
+ } from "./chunk-DP5LF7GF.js";
54
56
  import "./chunk-J3RXEDR2.js";
55
57
  import {
56
58
  normalizeErrorMessage
@@ -267,7 +269,7 @@ var cloudrun_default = defineCommand({
267
269
  default:
268
270
  console.error(`${c.error("Unknown subcommand:")} ${subcommand}
269
271
  ${HELP}`);
270
- failCommand();
272
+ failUsage();
271
273
  }
272
274
  }
273
275
  });
@@ -456,7 +458,7 @@ async function runSites(args) {
456
458
  console.error(
457
459
  `[cloudrun sites] unknown verb "${String(args.target)}". Only "create" is supported.`
458
460
  );
459
- failCommand();
461
+ failUsage();
460
462
  }
461
463
  const projectDir = args.extra;
462
464
  if (!projectDir) {
@@ -485,7 +487,7 @@ function resolveCloudRunFps(args, projectDir, command) {
485
487
  console.error(
486
488
  `[cloudrun ${command}] --fps must be one of ${DISTRIBUTED_FPS.join(", ")}; got ${fps}.`
487
489
  );
488
- failCommand();
490
+ failUsage();
489
491
  }
490
492
  async function runRender(args) {
491
493
  const projectDir = args.target;
@@ -499,12 +501,13 @@ async function runRender(args) {
499
501
  const height = parsePositiveInt(args.height, "--height");
500
502
  if (width === void 0 || height === void 0) {
501
503
  console.error("[cloudrun render] --width and --height are required.");
502
- failCommand();
504
+ failUsage();
503
505
  }
504
506
  const fps = resolveCloudRunFps(args, projectDir, "render");
505
- const state = readState(args);
506
507
  const variables = resolveAndValidateVariables(args, resolve(projectDir));
507
508
  const config = buildRenderConfig(args, fps, width, height, variables);
509
+ const intervalMs = parsePositiveInt(args["wait-interval-ms"], "--wait-interval-ms") ?? 5e3;
510
+ const state = readState(args);
508
511
  const { renderToCloudRun, getRenderProgress } = await loadCloudRunAdapter();
509
512
  const handle = await renderToCloudRun({
510
513
  projectDir: resolve(projectDir),
@@ -528,7 +531,6 @@ async function runRender(args) {
528
531
  }
529
532
  return;
530
533
  }
531
- const intervalMs = parsePositiveInt(args["wait-interval-ms"], "--wait-interval-ms") ?? 5e3;
532
534
  let progress = await getRenderProgress({ executionName: handle.executionName });
533
535
  while (progress.status === "running") {
534
536
  await new Promise((r) => setTimeout(r, intervalMs));
@@ -581,9 +583,10 @@ async function runRenderBatch(args) {
581
583
  const height = parsePositiveInt(args.height, "--height");
582
584
  if (width === void 0 || height === void 0) {
583
585
  console.error("[cloudrun render-batch] --width and --height are required.");
584
- failCommand();
586
+ failUsage();
585
587
  }
586
588
  const fps = resolveCloudRunFps(args, projectDir, "render-batch");
589
+ buildRenderConfig(args, fps, width, height, void 0);
587
590
  if (!existsSync(resolve(batchPath))) {
588
591
  console.error(`[cloudrun render-batch] batch file not found: ${batchPath}`);
589
592
  failCommand();
@@ -603,8 +606,8 @@ async function runRenderBatch(args) {
603
606
  console.log(JSON.stringify(manifest, null, 2));
604
607
  return;
605
608
  }
606
- const state = readState(args);
607
609
  const maxConcurrent = parsePositiveInt(args["max-concurrent"], "--max-concurrent") ?? DEFAULT_BATCH_MAX_CONCURRENT;
610
+ const state = readState(args);
608
611
  const { deploySite, renderToCloudRun } = await loadCloudRunAdapter();
609
612
  const siteHandle = await deploySite({
610
613
  projectDir: resolve(projectDir),
@@ -754,7 +757,7 @@ function parsePositiveInt(raw, flagName) {
754
757
  const n = parseIntFlag(raw);
755
758
  if (n === void 0) return void 0;
756
759
  if (!Number.isInteger(n) || n < 1) {
757
- throw new Error(`[cloudrun] ${flagName} must be a positive integer; got ${n}`);
760
+ throw new CliUsageError(`[cloudrun] ${flagName} must be a positive integer; got ${n}`);
758
761
  }
759
762
  return n;
760
763
  }
@@ -762,7 +765,7 @@ function parseEnum(raw, allowed, errorPrefix, defaultValue) {
762
765
  if (raw === void 0 || raw === null || raw === "") return defaultValue;
763
766
  const s = String(raw);
764
767
  if (allowed.includes(s)) return s;
765
- throw new Error(`${errorPrefix} must be ${allowed.join("|")}; got ${s}`);
768
+ throw new CliUsageError(`${errorPrefix} must be ${allowed.join("|")}; got ${s}`);
766
769
  }
767
770
  var FORMATS = ["mp4", "mov", "png-sequence", "webm"];
768
771
  var CODECS = ["h264", "h265"];
@@ -196,16 +196,13 @@
196
196
  function isVisibleElement(element, opacityFloor, probeClipPath) {
197
197
  if (IGNORE_TAGS.has(element.tagName)) return false;
198
198
  if (hasIgnoreFlag(element)) return false;
199
- if (
200
- opacityFloor != null &&
201
- typeof element.checkVisibility === "function" &&
202
- !element.checkVisibility({
203
- opacityProperty: true,
204
- visibilityProperty: true,
205
- contentVisibilityAuto: true,
206
- })
207
- ) {
208
- return false;
199
+ if (typeof element.checkVisibility === "function") {
200
+ // Without a floor the plain call still drops content the page does not render, such as a closed <details>.
201
+ const options =
202
+ opacityFloor != null
203
+ ? { opacityProperty: true, visibilityProperty: true, contentVisibilityAuto: true }
204
+ : {};
205
+ if (!element.checkVisibility(options)) return false;
209
206
  }
210
207
  const style = getComputedStyle(element);
211
208
  if (