hyperframes 0.8.210 → 0.8.211

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 (245) hide show
  1. package/dist/{add-36M7YRR4.js → add-WERDY37C.js} +26 -23
  2. package/dist/{agentPromptGenerator-4NJ252MR.js → agentPromptGenerator-SEAPWYY5.js} +30 -1
  3. package/dist/{animatedGifPrep-RZLTC77F.js → animatedGifPrep-LC43PROA.js} +11 -10
  4. package/dist/api.js +25 -24
  5. package/dist/{appHistory-OHYU5ZBQ.js → appHistory-BCWH6XYH.js} +3 -3
  6. package/dist/{asset-HRGZ7ZCB.js → asset-IVDQNYHP.js} +10 -5
  7. package/dist/{assetCataloger-LN7RI2IC.js → assetCataloger-PPE7M2WM.js} +12 -11
  8. package/dist/{audio-ULOHC2KL.js → audio-IJ22GXO6.js} +33 -30
  9. package/dist/{auth-K4ZULHQY.js → auth-FZMDHX2H.js} +11 -6
  10. package/dist/{autoUpdate-MUJ4WPP6.js → autoUpdate-EO6SFALF.js} +10 -5
  11. package/dist/{backgroundChecks-O6JST752.js → backgroundChecks-YW5VIAYF.js} +8 -5
  12. package/dist/backgroundChecksWorker.js +9 -5
  13. package/dist/{batchRender-U742UVOD.js → batchRender-OOXYNZOT.js} +11 -7
  14. package/dist/{beats-2CSE5WJD.js → beats-X7GRQA4J.js} +21 -18
  15. package/dist/{benchmark-YJB2YKOE.js → benchmark-JGGBMRZO.js} +24 -21
  16. package/dist/{browser-WJ5E7RYS.js → browser-FQ5JPTME.js} +21 -18
  17. package/dist/{bundleWithLocalizedFonts-F5VQMFHZ.js → bundleWithLocalizedFonts-XA73ZJ4S.js} +7 -3
  18. package/dist/{capture-6OJDKKEZ.js → capture-GUVCA5JQ.js} +23 -23
  19. package/dist/{capture-IYV3OS5W.js → capture-KKVB3MKM.js} +11 -9
  20. package/dist/{captureCompositionFrame-7357PUMG.js → captureCompositionFrame-LNKWWCXE.js} +22 -18
  21. package/dist/{catalog-CZBK33QH.js → catalog-LKJEMEOC.js} +38 -35
  22. package/dist/{catch-up-7IJQ7AUR.js → catch-up-FA6KWX4S.js} +19 -16
  23. package/dist/{check-ISUFX4DK.js → check-6GIDKL6S.js} +57 -54
  24. package/dist/{checkAudio-GAA2SY5E.js → checkAudio-H3AUFC4M.js} +19 -15
  25. package/dist/{checkBrowser-JRADOMED.js → checkBrowser-YWWF63S6.js} +49 -46
  26. package/dist/{chunk-EYGWMHXV.js → chunk-22OGII5H.js} +4 -4
  27. package/dist/{chunk-J7A73K2B.js → chunk-24F7TOW2.js} +99 -44
  28. package/dist/{chunk-ZTZA4UWZ.js → chunk-2GICKZ3I.js} +4 -1
  29. package/dist/{chunk-U7CZBDMV.js → chunk-2P5DTXUN.js} +1 -1
  30. package/dist/{chunk-PCPMSUW6.js → chunk-2QAR7ZNY.js} +3 -3
  31. package/dist/{chunk-DROFHVQD.js → chunk-2RQZQJHV.js} +4 -4
  32. package/dist/{chunk-UIOZIIB7.js → chunk-32NEJ553.js} +1 -73
  33. package/dist/{chunk-57QUPSP2.js → chunk-3JYKWNFR.js} +1 -1
  34. package/dist/{chunk-7BOGLQFM.js → chunk-3LACB6HG.js} +4 -4
  35. package/dist/{chunk-BYZPLQSX.js → chunk-3NIESDKN.js} +1 -1
  36. package/dist/{chunk-X2T5EOI7.js → chunk-3R5MYOJN.js} +4 -4
  37. package/dist/{chunk-MA447PNF.js → chunk-3WL7WU6K.js} +13 -13
  38. package/dist/{chunk-5ZJGEQGS.js → chunk-472C35EW.js} +2 -2
  39. package/dist/{chunk-FBIWJ3A4.js → chunk-4D46TX6Q.js} +3 -3
  40. package/dist/{chunk-XIUHHEBS.js → chunk-4EO7DNRJ.js} +3 -3
  41. package/dist/{chunk-5PCT5DDF.js → chunk-4JWKC3GH.js} +5 -5
  42. package/dist/chunk-5766TK7Q.js +145 -0
  43. package/dist/{chunk-4A27M7CJ.js → chunk-5AKWJHRJ.js} +1 -1
  44. package/dist/{chunk-5IWRGVAX.js → chunk-5KOZRJR7.js} +2 -2
  45. package/dist/{chunk-BW5WYF4N.js → chunk-5LITFBMY.js} +105 -61
  46. package/dist/{chunk-TGFDRZTM.js → chunk-5MCR5DA5.js} +3 -3
  47. package/dist/{chunk-MNNK7RV5.js → chunk-5SWWIT7K.js} +2 -1
  48. package/dist/{chunk-KCLBO65Y.js → chunk-5YPMCCCA.js} +1 -1
  49. package/dist/{chunk-HP7BXJFZ.js → chunk-66KMYUNO.js} +2 -2
  50. package/dist/{chunk-DST7GU2Y.js → chunk-67JTGRNM.js} +1 -1
  51. package/dist/{chunk-36EOFTVG.js → chunk-6EN2LWOM.js} +1 -1
  52. package/dist/{chunk-35HSGF46.js → chunk-6J2G57BB.js} +11 -16
  53. package/dist/chunk-6LDHXB4Z.js +36 -0
  54. package/dist/{chunk-GDZA4ALG.js → chunk-77KGX4A3.js} +7 -4
  55. package/dist/chunk-7KDQAD2W.js +81 -0
  56. package/dist/{chunk-NQ2INEHX.js → chunk-A4ZTSQLW.js} +1 -1
  57. package/dist/{chunk-FCXEVKFQ.js → chunk-ABBVDJMG.js} +4 -4
  58. package/dist/{chunk-EVTBRL37.js → chunk-AIY2Y5UY.js} +3 -3
  59. package/dist/{chunk-W4E3ZOWH.js → chunk-AQMGYRX6.js} +2 -2
  60. package/dist/{chunk-JLBJRJO6.js → chunk-B2B4MN3R.js} +3 -3
  61. package/dist/{chunk-OMLVCHNN.js → chunk-B4KGJHTE.js} +3 -3
  62. package/dist/{chunk-ZRSQNF4A.js → chunk-BGC5S3OZ.js} +26 -24
  63. package/dist/{chunk-AF3L5JJX.js → chunk-CCLBOLYU.js} +1 -1
  64. package/dist/{chunk-WWQJYYAB.js → chunk-CGAUUUDL.js} +4 -4
  65. package/dist/{chunk-DGECWPTL.js → chunk-CJ5QZRY7.js} +2 -2
  66. package/dist/{chunk-ERVBXEPZ.js → chunk-CNU65QE2.js} +4 -4
  67. package/dist/{chunk-VQB7G5BM.js → chunk-CTZJSMGU.js} +1 -1
  68. package/dist/{chunk-IMKBZEGT.js → chunk-CZCRSS3U.js} +2 -2
  69. package/dist/{chunk-YBY2WVLC.js → chunk-DAXKGMJL.js} +3 -3
  70. package/dist/{chunk-AG566TRI.js → chunk-DDRCX7P2.js} +2 -2
  71. package/dist/{chunk-WOFTAZSZ.js → chunk-DJ3H6EW3.js} +11 -11
  72. package/dist/chunk-DL4OD7IA.js +21 -0
  73. package/dist/{chunk-I4H5JWND.js → chunk-DMIFCIG6.js} +1 -1
  74. package/dist/{chunk-KGG2PUZN.js → chunk-DPYI2HRJ.js} +4 -4
  75. package/dist/{chunk-6CSYCFQV.js → chunk-DW35FX4I.js} +1 -1
  76. package/dist/{chunk-LRE4GDFA.js → chunk-DWIMUPFK.js} +4 -4
  77. package/dist/{chunk-JHNBF2HD.js → chunk-FBN5AQJL.js} +2 -2
  78. package/dist/{chunk-BKXC5XHB.js → chunk-FI7SSV73.js} +1 -1
  79. package/dist/{chunk-HD4KXG5U.js → chunk-FIC3E7IM.js} +14 -13
  80. package/dist/{chunk-2R5ZKWSV.js → chunk-FLXZ4GZI.js} +1 -1
  81. package/dist/{chunk-QFXF5GXE.js → chunk-FVY2XRX4.js} +3 -3
  82. package/dist/chunk-FWKZ3O52.js +4870 -0
  83. package/dist/{chunk-QSFWGZG6.js → chunk-G7VEYUZ2.js} +16 -132
  84. package/dist/{chunk-UWEGMKKU.js → chunk-GSXA4YLV.js} +1 -1
  85. package/dist/{chunk-32BLIKEV.js → chunk-IEVU4FXB.js} +3 -3
  86. package/dist/{chunk-K2FLNJVB.js → chunk-J2JG4XGP.js} +1 -1
  87. package/dist/{chunk-WERLJGIC.js → chunk-J3RXEDR2.js} +17 -2
  88. package/dist/{chunk-JLCAHJUO.js → chunk-JMD5HDPB.js} +2 -2
  89. package/dist/{chunk-KGAPL42S.js → chunk-JZVUSRZ5.js} +1 -1
  90. package/dist/{chunk-BN22WCAF.js → chunk-K3LLHG6I.js} +2 -2
  91. package/dist/{chunk-RUW65P3N.js → chunk-K43XLAQV.js} +3 -3
  92. package/dist/{chunk-MV3J6ZOP.js → chunk-KDDO3UYI.js} +9 -9
  93. package/dist/{chunk-QI5TLQNW.js → chunk-KF6I5WA7.js} +10 -10
  94. package/dist/chunk-KSNIYQRB.js +1105 -0
  95. package/dist/{chunk-3PTZ2TD4.js → chunk-KUXOAS4Z.js} +1 -1
  96. package/dist/{chunk-NEKKA2DA.js → chunk-KZBBY72Q.js} +2 -2
  97. package/dist/{chunk-JVBRJMOP.js → chunk-LALLQUSK.js} +6 -2
  98. package/dist/{chunk-DKJAK6JW.js → chunk-LAR5VTCN.js} +7 -7
  99. package/dist/{chunk-66LREXGS.js → chunk-NEQIJUV2.js} +1 -1
  100. package/dist/{chunk-QIDN4ML5.js → chunk-NO6F7CLR.js} +1 -1
  101. package/dist/{chunk-QPX7FJP3.js → chunk-OE5EHGDG.js} +1 -1
  102. package/dist/{chunk-AZGVCQGO.js → chunk-OOA6C4AG.js} +2 -2
  103. package/dist/{chunk-RIJHDTM5.js → chunk-ORXLO64X.js} +1 -1
  104. package/dist/{chunk-FHIBBIEZ.js → chunk-PICG2XRD.js} +3 -3
  105. package/dist/{chunk-P2L7NNHT.js → chunk-PKWZG642.js} +3 -3
  106. package/dist/{chunk-W3V5EOFA.js → chunk-Q52ISCT4.js} +1 -1
  107. package/dist/{chunk-DHTWYTSV.js → chunk-QVHC77IF.js} +1 -1
  108. package/dist/{chunk-UA3YNZK6.js → chunk-RQNFW6YC.js} +9 -4
  109. package/dist/{chunk-ZA5TNF4R.js → chunk-SJK64HHG.js} +1 -1
  110. package/dist/{chunk-F7IWJMIO.js → chunk-SXJJTFV4.js} +4 -4
  111. package/dist/{chunk-TDEORHFN.js → chunk-T2L2GJ4C.js} +5 -5
  112. package/dist/{chunk-K4FVGVA6.js → chunk-T2WJO4XM.js} +1 -1
  113. package/dist/{chunk-P327BIJR.js → chunk-U46JEU26.js} +1 -1
  114. package/dist/{chunk-I3PNZDKR.js → chunk-UI7X4L4M.js} +151 -20
  115. package/dist/{chunk-GNESG4XA.js → chunk-VBC3DQFS.js} +3 -3
  116. package/dist/{chunk-EQPXSSNG.js → chunk-VGKQFZCC.js} +14 -14
  117. package/dist/{chunk-QXUFQSSK.js → chunk-VUEWZXZG.js} +1 -1
  118. package/dist/{chunk-ERUQ3S6D.js → chunk-WE42NVH7.js} +6 -1
  119. package/dist/{chunk-HKCIRH26.js → chunk-WNDTMINP.js} +5 -5
  120. package/dist/{chunk-SE2MXV2N.js → chunk-X4SBDDLS.js} +2 -1
  121. package/dist/{chunk-YIFEK3UD.js → chunk-XQ26I3PL.js} +1 -1
  122. package/dist/{chunk-QRWTVCGH.js → chunk-YPNBEBQ6.js} +18 -18
  123. package/dist/{chunk-GKNTPIFD.js → chunk-YWPCMOX4.js} +10 -10
  124. package/dist/{chunk-XCIHCPJK.js → chunk-YWRUQ7XZ.js} +3 -2
  125. package/dist/{chunk-A2H5EJZM.js → chunk-Z2UZAY2Q.js} +2 -2
  126. package/dist/{chunk-P6EXMN5D.js → chunk-ZCHULPJZ.js} +3 -3
  127. package/dist/{chunk-RIAWW4G2.js → chunk-ZE57TSS6.js} +2 -2
  128. package/dist/{chunk-FCIO4WSW.js → chunk-ZNSKOXFW.js} +3 -3
  129. package/dist/{chunk-A45HCDG7.js → chunk-ZPXXWUQ3.js} +2 -2
  130. package/dist/{clean-NVBEXXIS.js → clean-SVEOBRPM.js} +35 -32
  131. package/dist/cli.js +82 -67
  132. package/dist/{cloud-3T6HF7DT.js → cloud-ADFJGIEH.js} +11 -6
  133. package/dist/{cloudrun-TXEEZGJ7.js → cloudrun-BNY7Q5RK.js} +24 -18
  134. package/dist/{colors-HKWSZCGK.js → colors-HRL7QSVG.js} +5 -1
  135. package/dist/commands/layout-audit.browser.js +1 -1
  136. package/dist/commands/motion-signature.browser.js +11 -2
  137. package/dist/{compare-Q42Z56P7.js → compare-QC3T22KV.js} +47 -44
  138. package/dist/{compiler-IL2PZJFH.js → compiler-4ITKK4XI.js} +4 -4
  139. package/dist/{component-2IWQZYCZ.js → component-CNZCB3RY.js} +12 -7
  140. package/dist/{compositions-3EZ3GBK2.js → compositions-UO32IP6Z.js} +25 -22
  141. package/dist/{delete-2UBY2JTM.js → delete-RWTOSI24.js} +23 -17
  142. package/dist/{deploy-QTS2OM2H.js → deploy-OKWS53NP.js} +9 -5
  143. package/dist/{destroy-CGAZIL2C.js → destroy-4RL5VOXQ.js} +7 -3
  144. package/dist/{dist-XF53LCKD.js → dist-AEE3QTRB.js} +3 -3
  145. package/dist/{dist-73YTUT3W.js → dist-NCI6JOJZ.js} +2 -2
  146. package/dist/{docs-UEWLIP6D.js → docs-UMIA66EZ.js} +8 -3
  147. package/dist/{doctor-FIXMXWE6.js → doctor-SIF72ESZ.js} +23 -20
  148. package/dist/{events-NTZSSMBR.js → events-34PIVLZQ.js} +12 -10
  149. package/dist/{events-7WYSDXTE.js → events-S3VUTFEG.js} +12 -9
  150. package/dist/{feedback-7SOB5GZC.js → feedback-VS4LRXHW.js} +33 -28
  151. package/dist/{ffmpeg-PYY5FSIX.js → ffmpeg-YVQOKNV6.js} +12 -11
  152. package/dist/{figma-DTWA3G22.js → figma-AF4JKDBA.js} +10 -5
  153. package/dist/fontLocalizeCli.js +15 -13
  154. package/dist/{get-DMGUJPLP.js → get-UQGCS6Q4.js} +19 -15
  155. package/dist/{gpuPolicy-KVYO4OU4.js → gpuPolicy-Q4B3D6PW.js} +11 -10
  156. package/dist/{grade-compare-NCYPJFLI.js → grade-compare-G34673XC.js} +48 -45
  157. package/dist/hangReport.js +1 -0
  158. package/dist/{heifImagePrep-F7LFUYGC.js → heifImagePrep-XD4DGOUS.js} +12 -11
  159. package/dist/{help-I4RRBHCW.js → help-3QSD26IC.js} +6 -2
  160. package/dist/{history-GVBBXZKQ.js → history-6DC24UCF.js} +21 -18
  161. package/dist/hyperframe.manifest.json +1 -1
  162. package/dist/hyperframe.runtime.iife.js +51 -51
  163. package/dist/hyperframes-player.global.js +1 -1
  164. package/dist/{info-UE2PY5AF.js → info-6JUHWWJK.js} +20 -17
  165. package/dist/{init-4UGFGJQK.js → init-2DPX6U3J.js} +64 -57
  166. package/dist/{inspect-ZRREAUCB.js → inspect-Z55YUSXC.js} +47 -44
  167. package/dist/{installer-ABXPRFIJ.js → installer-XVKYJU7S.js} +7 -7
  168. package/dist/{keyframes-MFR4TYVR.js → keyframes-YHF4AQIL.js} +18 -15
  169. package/dist/{lambda-E3Z6JCIB.js → lambda-JITTS37E.js} +37 -31
  170. package/dist/{layout-IO7T5SSU.js → layout-V5NYJXIX.js} +47 -44
  171. package/dist/{lint-WYPQK5XA.js → lint-V4WMO7YL.js} +21 -18
  172. package/dist/{lintProject-KCN7MRBN.js → lintProject-EM7Y2ZRB.js} +2 -2
  173. package/dist/{list-7F2LXWOZ.js → list-W7UCIYKA.js} +20 -16
  174. package/dist/localPage-BLQFFIDF.js +56 -0
  175. package/dist/{login-TTMYCXN2.js → login-IX3MOREU.js} +15 -11
  176. package/dist/{logout-QRSB4CNH.js → logout-46NLNY2K.js} +10 -5
  177. package/dist/{manager-LQXZTUTJ.js → manager-IZIK7BHN.js} +7 -5
  178. package/dist/{manager-OQ5J26ST.js → manager-WJOWZNHM.js} +13 -12
  179. package/dist/{media-treatment-ELB6WRA5.js → media-treatment-XBO6EXL4.js} +29 -26
  180. package/dist/{media-use-JBN57JE3.js → media-use-3RFKY7XJ.js} +3 -2
  181. package/dist/{models-D2FNIGNZ.js → models-P3NSHDQS.js} +26 -21
  182. package/dist/{motionShot-53VDDRIC.js → motionShot-D4QMLTQP.js} +26 -22
  183. package/dist/{normalize-audio-QHNCFWR2.js → normalize-audio-Q4VUR3QJ.js} +22 -19
  184. package/dist/{open-3KMTT3AV.js → open-LGKX534P.js} +29 -26
  185. package/dist/{parakeetRunner-T65S6FW3.js → parakeetRunner-FAOQMPS6.js} +19 -18
  186. package/dist/{pipeline-DUVRZGIM.js → pipeline-2YONKZYC.js} +16 -15
  187. package/dist/{play-27R6RBSK.js → play-PJOUIY55.js} +43 -40
  188. package/dist/{policies-NWIEUGGW.js → policies-UPNRQ7IW.js} +10 -5
  189. package/dist/{preflight-QB6NKBBL.js → preflight-3PPM7QBU.js} +16 -14
  190. package/dist/{present-RHV3FKI5.js → present-323D6OE2.js} +37 -34
  191. package/dist/{preview-IAKIXYLN.js → preview-E42QP2KX.js} +47 -44
  192. package/dist/{producer-F6PHB4M4.js → producer-MTMNLJSC.js} +1 -1
  193. package/dist/{progress-PX3PVAIM.js → progress-LMQ2DXM4.js} +7 -3
  194. package/dist/{projectConfig-MPHWYY5D.js → projectConfig-5QRVB5KY.js} +11 -11
  195. package/dist/prompts-P3IT5H36.js +40 -0
  196. package/dist/{publication-CBAEINEG.js → publication-AUZLFOG5.js} +5 -5
  197. package/dist/{publish-4A2A6V7Z.js → publish-H5P7UHRV.js} +38 -27
  198. package/dist/{refresh-F7FUCXLX.js → refresh-4XRQS3N6.js} +10 -5
  199. package/dist/{remove-background-3I7RZGVG.js → remove-background-T2RV476S.js} +31 -26
  200. package/dist/{render-2HYATL32.js → render-3FRGIWES.js} +42 -38
  201. package/dist/{render-BSKLHCZ4.js → render-4XEB3XWI.js} +56 -53
  202. package/dist/{render-BGPUHBFC.js → render-GJH7446R.js} +14 -10
  203. package/dist/{render-batch-JD6C3BDD.js → render-batch-77X5453X.js} +14 -10
  204. package/dist/renderSetupWorker.js +10 -7
  205. package/dist/{resolver-SQYR7LII.js → resolver-DIUNK525.js} +7 -7
  206. package/dist/{sherpa-VXD3DAH4.js → sherpa-SUS3YSEP.js} +18 -17
  207. package/dist/sherpaWorker.js +1 -0
  208. package/dist/{sites-Q2S3DZY4.js → sites-V42IFVTK.js} +7 -3
  209. package/dist/{skills-B2SHEHWL.js → skills-YCGSIOCE.js} +17 -14
  210. package/dist/{skillsUpdateCheck-ST43UUPK.js → skillsUpdateCheck-VCQIZGOL.js} +8 -5
  211. package/dist/{snapshot-USJYNKDM.js → snapshot-H6R5PWNS.js} +55 -51
  212. package/dist/{src-5OX35WPG.js → src-ED5VCIRC.js} +13 -12
  213. package/dist/{src-PX3VIS7K.js → src-HHDLJV4L.js} +18 -9
  214. package/dist/{state-JPNCCXAV.js → state-D5SYQFCB.js} +2 -2
  215. package/dist/{staticProjectServer-ET7H5LMV.js → staticProjectServer-VY7QG5XH.js} +30 -23
  216. package/dist/{status-QVDRHXW2.js → status-GEZNVPII.js} +12 -8
  217. package/dist/studio/assets/{hyperframes-player-DUpxahTX.js → hyperframes-player-CzrqgMUX.js} +1 -1
  218. package/dist/studio/assets/{index-B4dcZZAm.js → index-B3SPHPi1.js} +1 -1
  219. package/dist/studio/assets/{index-CtrcjpbM.js → index-k4nVfS2D.js} +123 -123
  220. package/dist/studio/index.html +1 -1
  221. package/dist/{studio-api-PLKYSG2X.js → studio-api-TR5RPX57.js} +16 -14
  222. package/dist/{studioServer-CNUXGRFS.js → studioServer-4SZLLQOV.js} +71 -68
  223. package/dist/{synthesize-RVE7IUOJ.js → synthesize-QALK5SQR.js} +3 -3
  224. package/dist/{system-YD4AW5ZX.js → system-MVRF5UM2.js} +5 -3
  225. package/dist/{telemetry-DGDEJLGL.js → telemetry-7HUKOQ6X.js} +12 -10
  226. package/dist/{telemetry-EJS5PXH2.js → telemetry-KGY7G3UR.js} +9 -5
  227. package/dist/templates/blank/index.html +1 -1
  228. package/dist/{timeline-VCQC4TLM.js → timeline-CGIKWCQI.js} +37 -34
  229. package/dist/{tokens-AEOBCDW5.js → tokens-AZALDJEK.js} +11 -6
  230. package/dist/{transcribe-COFCB3ZB.js → transcribe-CTF5EIXJ.js} +34 -31
  231. package/dist/{transcribe-X6O5ZSGQ.js → transcribe-V6K5547L.js} +15 -14
  232. package/dist/{tts-AGMCPQXE.js → tts-C2HBLFKK.js} +14 -9
  233. package/dist/{updateCheck-BW7MDUXZ.js → updateCheck-5I563YLB.js} +7 -4
  234. package/dist/{upgrade-QXOGA54H.js → upgrade-GRPVQE7Z.js} +25 -12
  235. package/dist/{urlDownloader-QB3TBIQ5.js → urlDownloader-EP6Q4WES.js} +10 -9
  236. package/dist/{usage-HG4WMM7A.js → usage-772JV45U.js} +2 -1
  237. package/dist/{validate-AU2BZ7D7.js → validate-TVCDSQS3.js} +39 -36
  238. package/dist/{video-GNNYAL5T.js → video-CFEIRKAE.js} +17 -13
  239. package/dist/warmCheck.js +58 -54
  240. package/dist/warmCheckClient.js +1 -0
  241. package/package.json +1 -1
  242. package/dist/chunk-QRC7IVBC.js +0 -4870
  243. package/dist/chunk-WMQNIQDJ.js +0 -2057
  244. package/dist/dist-EWXJGN63.js +0 -129
  245. package/dist/localPage-V3HBGM3Z.js +0 -27
@@ -8,12 +8,12 @@ import {
8
8
  Semaphore,
9
9
  prepareHeifImageInputs,
10
10
  withMediaProbeSlot
11
- } from "./chunk-JLBJRJO6.js";
11
+ } from "./chunk-B2B4MN3R.js";
12
12
  import {
13
13
  EncoderInterruptedError,
14
14
  encoderFailureError,
15
15
  prepareAnimatedGifInputs
16
- } from "./chunk-XIUHHEBS.js";
16
+ } from "./chunk-4EO7DNRJ.js";
17
17
  import {
18
18
  GENERIC_FAMILIES,
19
19
  collectFontFamilyCustomProperties,
@@ -163,6 +163,7 @@ import {
163
163
  safeVideoExtractionSourceIdentity,
164
164
  sanitizeHdrAutoPromotionAsset,
165
165
  scaleProtocolTimeoutForComposition,
166
+ settleOnBrowserSafePort,
166
167
  shouldDisableBrowserPoolForParallelWorker,
167
168
  spawnStreamingEncoder,
168
169
  trackChildProcess,
@@ -170,7 +171,7 @@ import {
170
171
  verifyDiskDrawElementSamples,
171
172
  videoAudioId,
172
173
  writeCapturedFrame
173
- } from "./chunk-I3PNZDKR.js";
174
+ } from "./chunk-UI7X4L4M.js";
174
175
  import {
175
176
  assignBundledRuntimeCompositionIds,
176
177
  emitMountedModuleScripts,
@@ -182,12 +183,12 @@ import {
182
183
  parsesAsScript,
183
184
  prepareFlattenedInnerRoot,
184
185
  stripSdrPngColourTags
185
- } from "./chunk-GNESG4XA.js";
186
+ } from "./chunk-VBC3DQFS.js";
186
187
  import {
187
188
  collectScratchLeftovers,
188
189
  removeScratch,
189
190
  renameWithRetry
190
- } from "./chunk-XCIHCPJK.js";
191
+ } from "./chunk-YWRUQ7XZ.js";
191
192
  import {
192
193
  DISTRIBUTED_FPS,
193
194
  HF_VFX_ATTR,
@@ -203,7 +204,7 @@ import {
203
204
  parseVfxChain,
204
205
  resolveAuthoredTimingWindow,
205
206
  toFps
206
- } from "./chunk-5ZJGEQGS.js";
207
+ } from "./chunk-472C35EW.js";
207
208
  import {
208
209
  COMPOSITION_SOURCE_URL,
209
210
  HF_COLOR_GRADING_ATTR,
@@ -238,7 +239,7 @@ import {
238
239
  sourceTimeAt,
239
240
  styleElementsFor,
240
241
  timeAtSourceTime
241
- } from "./chunk-QRC7IVBC.js";
242
+ } from "./chunk-FWKZ3O52.js";
242
243
  import {
243
244
  TRANSITIONS,
244
245
  convertTransfer,
@@ -250,11 +251,11 @@ import {
250
251
  } from "./chunk-634HSJ3J.js";
251
252
  import {
252
253
  chromeMajorCeiling
253
- } from "./chunk-ERUQ3S6D.js";
254
+ } from "./chunk-WE42NVH7.js";
254
255
  import {
255
256
  lintHyperframeHtml,
256
257
  resolveReferencedStart
257
- } from "./chunk-P327BIJR.js";
258
+ } from "./chunk-U46JEU26.js";
258
259
  import {
259
260
  isUnresolvedAssetPlaceholder,
260
261
  readProjectFile,
@@ -276,7 +277,7 @@ import {
276
277
  rewriteAssetPaths,
277
278
  rewriteCssAssetUrls,
278
279
  rewriteInlineStyleAssetUrls
279
- } from "./chunk-SE2MXV2N.js";
280
+ } from "./chunk-X4SBDDLS.js";
280
281
  import {
281
282
  CANVAS_DIMENSIONS,
282
283
  HTML_BODY_CSS_HEIGHT_FIRST_RE,
@@ -295,7 +296,7 @@ import {
295
296
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
296
297
  getCgroupMemoryLimitMb,
297
298
  getSystemTotalMb
298
- } from "./chunk-UIOZIIB7.js";
299
+ } from "./chunk-32NEJ553.js";
299
300
 
300
301
  // ../producer/src/services/renderOrchestrator.ts
301
302
  import {
@@ -1029,18 +1030,21 @@ function createFileServer(options) {
1029
1030
  return new Promise((resolve11, reject) => {
1030
1031
  const connections = /* @__PURE__ */ new Set();
1031
1032
  const server = serve({ fetch: app.fetch, port, hostname: "127.0.0.1" }, (info) => {
1032
- resolve11({
1033
- url: `http://localhost:${info.port}`,
1034
- port: info.port,
1035
- addPreHeadScript: (script) => {
1036
- preHeadScripts.push(script);
1037
- },
1038
- close: () => {
1039
- for (const socket of connections) socket.destroy();
1040
- connections.clear();
1041
- server.close();
1042
- }
1043
- });
1033
+ const bound = port === 0 ? settleOnBrowserSafePort(server, "127.0.0.1") : Promise.resolve(info.port);
1034
+ bound.then((boundPort) => {
1035
+ resolve11({
1036
+ url: `http://localhost:${boundPort}`,
1037
+ port: boundPort,
1038
+ addPreHeadScript: (script) => {
1039
+ preHeadScripts.push(script);
1040
+ },
1041
+ close: () => {
1042
+ for (const socket of connections) socket.destroy();
1043
+ connections.clear();
1044
+ server.close();
1045
+ }
1046
+ });
1047
+ }, reject);
1044
1048
  });
1045
1049
  server.on("connection", (socket) => {
1046
1050
  connections.add(socket);
@@ -1166,6 +1170,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
1166
1170
  var DEFAULT_RENDERS_DIR = process.env.PRODUCER_RENDERS_DIR ?? // fileURLToPath (not URL.pathname): on Windows .pathname is "/D:/..." which
1167
1171
  // resolves to a bogus renders dir.
1168
1172
  nodeResolve(fileURLToPath2(import.meta.url), "../../..", "renders");
1173
+ var LEADING_PARENT_SEGMENT_RE = /^\.\.(?:[\\/]|$)/;
1169
1174
  function isPathInside2(childPath, parentPath, options = {}) {
1170
1175
  const resolvePath = options.pathModule?.resolve ?? nodeResolve;
1171
1176
  const relativePath = options.pathModule?.relative ?? nodeRelative;
@@ -1174,7 +1179,7 @@ function isPathInside2(childPath, parentPath, options = {}) {
1174
1179
  const absParent = resolvePath(parentPath);
1175
1180
  if (absChild === absParent) return true;
1176
1181
  const rel = relativePath(absParent, absChild);
1177
- return rel !== "" && !rel.startsWith("..") && !isPathAbsolute(rel);
1182
+ return rel !== "" && !LEADING_PARENT_SEGMENT_RE.test(rel) && !isPathAbsolute(rel);
1178
1183
  }
1179
1184
  function toExternalAssetKey(absPath) {
1180
1185
  if (absPath.startsWith("hf-ext/")) return absPath;
@@ -6236,9 +6241,10 @@ function detectShaderTransitionUsage(html) {
6236
6241
  async function resolveMediaDuration(src, mediaStart, playbackRate, baseDir, downloadDir, tagName, elementIdentity, log, urlByAbsentLocalPath, probes) {
6237
6242
  let filePath = src;
6238
6243
  if (isHttpUrl(src)) {
6239
- if (!existsSync9(downloadDir)) mkdirSync5(downloadDir, { recursive: true });
6244
+ const remoteDir = join13(downloadDir, REMOTE_MEDIA_SUBDIR);
6245
+ if (!existsSync9(remoteDir)) mkdirSync5(remoteDir, { recursive: true });
6240
6246
  try {
6241
- filePath = await downloadToTemp(src, downloadDir, void 0, void 0, void 0, {
6247
+ filePath = await downloadToTemp(src, remoteDir, void 0, void 0, void 0, {
6242
6248
  onTelemetry: logRemoteDownloadTelemetry
6243
6249
  });
6244
6250
  } catch {
@@ -10944,7 +10950,7 @@ function videoEncoderOptions(input, engineCfg) {
10944
10950
  };
10945
10951
  }
10946
10952
  function canEncodeWhileCapturing(input, workerCount, cpuCount) {
10947
- return workerCount > 1 && workerCount < cpuCount && !input.isPngSequence && !input.isGif && !input.enableChunkedEncode && input.preset.codec === "h264" && !input.preset.hdr && input.job.config.useGpu !== true && input.captureImageFormat === "jpeg";
10953
+ return workerCount > 1 && workerCount < cpuCount && !input.isPngSequence && !input.isGif && !input.enableChunkedEncode && input.preset.codec === "h264" && !input.preset.hdr && input.captureImageFormat === "jpeg";
10948
10954
  }
10949
10955
  async function readLandedFrame(workerPath, mergedPath) {
10950
10956
  if (workerPath !== void 0) {
@@ -12062,6 +12068,11 @@ function resolveDeShortBand(args) {
12062
12068
  if (args.elementCountSource !== "live") return "unmeasured";
12063
12069
  return args.bandOpen ? "applied" : "skipped_elements";
12064
12070
  }
12071
+ function resolveDeSingleMinFrames(env) {
12072
+ const raw = env.HF_DE_SINGLE_MIN_FRAMES;
12073
+ const value = raw === void 0 || raw.trim() === "" ? 0 : Number(raw);
12074
+ return Number.isFinite(value) ? value : 0;
12075
+ }
12065
12076
  function shouldPreferSingleWorkerDrawElement(args) {
12066
12077
  return args.workerCount > 1 && args.useDrawElement && !args.deCompileGate && !args.forceScreenshot && outputUsesH264Pipeline(args.outputFormat) && args.minFrames > 0 && args.totalFrames >= args.minFrames && args.singleWorkerStreamingOk && !args.layeredOrEffectRoute && !args.supersampling && !args.probeDeGated && !args.experimentalParallelDeOptIn;
12067
12078
  }
@@ -12179,12 +12190,25 @@ function shouldSegmentCapture(args) {
12179
12190
  if (raw === "true") return true;
12180
12191
  return args.durationSeconds >= resolveSegmentedMinSeconds(args.env);
12181
12192
  }
12193
+ function isAppleGpuDiskCapture(args) {
12194
+ return args.platform === "darwin" && args.browserGpuMode === "hardware" && !args.layered && !args.parallelStream;
12195
+ }
12182
12196
  function shouldStreamParallelCapture(args) {
12183
12197
  return args.routerEnabled && args.workerCount > 1 && !args.useDrawElement && outputUsesH264Pipeline(args.outputFormat) && args.streamingOk && !args.layeredOrEffectRoute;
12184
12198
  }
12185
12199
  function shouldClampDefaultDrawElement(args) {
12186
12200
  return args.useDrawElement && !args.fastCaptureExplicitOptIn && (!args.useStreamingEncode || args.workerCount > 1) && !args.deParallelStreamVerified;
12187
12201
  }
12202
+ function calibrationCaptureConfig(cfg, env = process.env) {
12203
+ const parallelKeepsDrawElement = !shouldClampDefaultDrawElement({
12204
+ useDrawElement: cfg.useDrawElement,
12205
+ fastCaptureExplicitOptIn: env.PRODUCER_EXPERIMENTAL_FAST_CAPTURE === "true",
12206
+ useStreamingEncode: true,
12207
+ workerCount: 2,
12208
+ deParallelStreamVerified: env.HF_DE_PARALLEL_STREAM === "true"
12209
+ });
12210
+ return parallelKeepsDrawElement ? cfg : { ...cfg, useDrawElement: false };
12211
+ }
12188
12212
  function resolveCaptureForceScreenshotForPageSideCompositing(args) {
12189
12213
  return args.usePageSideCompositing ? true : args.forceScreenshot;
12190
12214
  }
@@ -12268,6 +12292,7 @@ async function executeRenderPipeline(input) {
12268
12292
  let captureCompositionHeight;
12269
12293
  let captureTotalFrames;
12270
12294
  const perfStages = {};
12295
+ let pendingAudio;
12271
12296
  const hdrDiagnostics = {
12272
12297
  videoExtractionFailures: 0,
12273
12298
  imageDecodeFailures: 0
@@ -12629,7 +12654,7 @@ async function executeRenderPipeline(input) {
12629
12654
  updateJobStatus(job, "preprocessing", "Processing audio tracks", 20, onProgress, {
12630
12655
  code: "process_audio"
12631
12656
  });
12632
- const audioResult = await observeRenderStage(
12657
+ const audioStage = observeRenderStage(
12633
12658
  observability,
12634
12659
  "audio_process",
12635
12660
  { audioCount: composition.audios.length },
@@ -12648,32 +12673,7 @@ async function executeRenderPipeline(input) {
12648
12673
  log
12649
12674
  })
12650
12675
  );
12651
- const { audioOutputPath, hasAudio } = audioResult;
12652
- perfStages.audioProcessMs = audioResult.audioProcessMs;
12653
- recordLimiterAttenuation(job, audioResult.audioLoweredDb);
12654
- if (audioResult.audioError) {
12655
- const audioFailures = audioResult.audioFailures ?? [];
12656
- const failureOwner = audioFailures.length === 0 ? void 0 : audioFailures.some((failure) => failure.owner === "system") ? "system" : "user";
12657
- const retryable = audioFailures.length === 0 ? void 0 : audioFailures.every((failure) => failure.retryable);
12658
- applyRenderWarningPolicy(
12659
- job,
12660
- [
12661
- {
12662
- code: "audio_processing_failed",
12663
- message: `Audio mix failed; output would be video-only: ${audioResult.audioError}`,
12664
- details: {
12665
- mediaType: "audio",
12666
- audioFailures: audioFailureDiagnostics(audioFailures),
12667
- failureReasons: [...new Set(audioFailures.map((failure) => failure.reason))],
12668
- failureStages: [...new Set(audioFailures.map((failure) => failure.stage))],
12669
- failureOwner,
12670
- retryable
12671
- }
12672
- }
12673
- ],
12674
- log
12675
- );
12676
- }
12676
+ pendingAudio = audioStage.catch(() => void 0);
12677
12677
  const stage4Start = Date.now();
12678
12678
  updateJobStatus(job, "rendering", "Starting frame capture", 25, onProgress, {
12679
12679
  code: "start_browsers"
@@ -12777,9 +12777,7 @@ async function executeRenderPipeline(input) {
12777
12777
  const hasHdrContent = Boolean(effectiveHdr && nativeHdrIds.size > 0);
12778
12778
  if (hasHdrContent) assertOutputScaleSupported(deviceScaleFactor, "hdr_layered");
12779
12779
  routePageMotionBlur = pageMotionBlurForRoute({ hasHdrContent, useLayeredComposite: false });
12780
- const deSingleMinFramesRaw = process.env.HF_DE_SINGLE_MIN_FRAMES;
12781
- const deSingleMinFramesNum = deSingleMinFramesRaw === void 0 || deSingleMinFramesRaw.trim() === "" ? 900 : Number(deSingleMinFramesRaw);
12782
- const deSingleMinFrames = Number.isFinite(deSingleMinFramesNum) ? deSingleMinFramesNum : 900;
12780
+ const deSingleMinFrames = resolveDeSingleMinFrames(process.env);
12783
12781
  const deShortBandMinFrames = envInt("HF_DE_SHORT_MIN_FRAMES", 250);
12784
12782
  const deShortBandMaxElements = envInt("HF_DE_SHORT_MAX_ELEMENTS", 2500);
12785
12783
  const {
@@ -12948,7 +12946,7 @@ async function executeRenderPipeline(input) {
12948
12946
  stagePhase: "calibrating"
12949
12947
  }),
12950
12948
  () => runCaptureCalibration({
12951
- cfg,
12949
+ cfg: calibrationCaptureConfig(cfg),
12952
12950
  fileServer: activeFileServer,
12953
12951
  workDir,
12954
12952
  log,
@@ -12984,10 +12982,28 @@ async function executeRenderPipeline(input) {
12984
12982
  deParallelRouterEligible
12985
12983
  });
12986
12984
  }
12985
+ const appleGpuDiskCapture = isAppleGpuDiskCapture({
12986
+ platform: process.platform,
12987
+ browserGpuMode: resolvedBrowserGpuMode,
12988
+ layered: shouldUseLayeredComposite({
12989
+ hasHdrContent,
12990
+ hasShaderTransitions: compiled.hasShaderTransitions && !isGif,
12991
+ isPngSequence
12992
+ }),
12993
+ parallelStream: isCaptureParallelStreamRouterEnabled(
12994
+ process.env,
12995
+ resolveParallelCaptureMode({
12996
+ platform: process.platform,
12997
+ headlessShellPath: resolveHeadlessShellPath(cfg),
12998
+ forceScreenshot: captureForceScreenshot,
12999
+ deviceScaleFactor: captureOptions.deviceScaleFactor
13000
+ })
13001
+ )
13002
+ });
12987
13003
  workerCount = resolveRenderWorkerCount(
12988
13004
  totalFrames,
12989
13005
  job.config.workers,
12990
- cfg,
13006
+ { ...cfg, appleGpuDiskCapture },
12991
13007
  compiled,
12992
13008
  log,
12993
13009
  captureCalibration?.estimate,
@@ -13347,6 +13363,33 @@ async function executeRenderPipeline(input) {
13347
13363
  }
13348
13364
  const effectiveQuality = job.config.crf ?? preset.quality;
13349
13365
  const effectiveBitrate = job.config.crf != null ? void 0 : job.config.videoBitrate;
13366
+ const audioResult = await audioStage;
13367
+ const { audioOutputPath, hasAudio } = audioResult;
13368
+ perfStages.audioProcessMs = audioResult.audioProcessMs;
13369
+ recordLimiterAttenuation(job, audioResult.audioLoweredDb);
13370
+ if (audioResult.audioError) {
13371
+ const audioFailures = audioResult.audioFailures ?? [];
13372
+ const failureOwner = audioFailures.length === 0 ? void 0 : audioFailures.some((failure) => failure.owner === "system") ? "system" : "user";
13373
+ const retryable = audioFailures.length === 0 ? void 0 : audioFailures.every((failure) => failure.retryable);
13374
+ applyRenderWarningPolicy(
13375
+ job,
13376
+ [
13377
+ {
13378
+ code: "audio_processing_failed",
13379
+ message: `Audio mix failed; output would be video-only: ${audioResult.audioError}`,
13380
+ details: {
13381
+ mediaType: "audio",
13382
+ audioFailures: audioFailureDiagnostics(audioFailures),
13383
+ failureReasons: [...new Set(audioFailures.map((failure) => failure.reason))],
13384
+ failureStages: [...new Set(audioFailures.map((failure) => failure.stage))],
13385
+ failureOwner,
13386
+ retryable
13387
+ }
13388
+ }
13389
+ ],
13390
+ log
13391
+ );
13392
+ }
13350
13393
  resetCaptureAttemptProgress(job);
13351
13394
  if (capturePlan.kind === "hdr_layered") {
13352
13395
  const layeredPlan = capturePlan;
@@ -14061,6 +14104,7 @@ async function executeRenderPipeline(input) {
14061
14104
  updateJobStatus(job, "complete", "Render complete", 100, onProgress);
14062
14105
  await eventPublisher.flush();
14063
14106
  } catch (caught) {
14107
+ await pendingAudio;
14064
14108
  const error = tooSlowError ?? caught;
14065
14109
  if (!tooSlowError && (error instanceof RenderCancelledError || executionSignal?.aborted)) {
14066
14110
  job.error = error instanceof Error ? error.message : "render_cancelled";
@@ -16368,7 +16412,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
16368
16412
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
16369
16413
  if (probeResult.probeSession) {
16370
16414
  try {
16371
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-PX3VIS7K.js");
16415
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-HHDLJV4L.js");
16372
16416
  await closeCaptureSession2(probeResult.probeSession);
16373
16417
  } catch (err) {
16374
16418
  log.warn("[plan] probe session close failed", {
@@ -18100,7 +18144,7 @@ function startServer(options = {}) {
18100
18144
  });
18101
18145
  async function shutdown(signal) {
18102
18146
  log.info(`Received ${signal}, shutting down`);
18103
- const { drainBrowserPool } = await import("./src-PX3VIS7K.js");
18147
+ const { drainBrowserPool } = await import("./src-HHDLJV4L.js");
18104
18148
  await drainBrowserPool().catch(() => {
18105
18149
  });
18106
18150
  const handle = await Promise.race([
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveCaptureBrowserGpuMode
9
- } from "./chunk-A2H5EJZM.js";
9
+ } from "./chunk-Z2UZAY2Q.js";
10
10
  import {
11
11
  requestCliExit
12
- } from "./chunk-JVBRJMOP.js";
12
+ } from "./chunk-LALLQUSK.js";
13
13
  import {
14
14
  explainChromeLaunchFailure,
15
15
  inAgentSandbox,
@@ -18,7 +18,7 @@ import {
18
18
  oneProcessOverPipe,
19
19
  pipeLaunchClosedOnMac,
20
20
  sandboxDeniedRemediation
21
- } from "./chunk-I3PNZDKR.js";
21
+ } from "./chunk-UI7X4L4M.js";
22
22
  import {
23
23
  processIsAlive
24
24
  } from "./chunk-KGPLIH7B.js";
@@ -45,7 +45,8 @@ function openBrowser(url, options = {}) {
45
45
  const args = buildBrowserArgs(url, options);
46
46
  const child = spawn(options.browserPath, args, {
47
47
  detached: true,
48
- stdio: "ignore"
48
+ stdio: "ignore",
49
+ windowsHide: false
49
50
  });
50
51
  child.on("error", () => {
51
52
  });
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  createFileAtomically
9
- } from "./chunk-NQ2INEHX.js";
9
+ } from "./chunk-A4ZTSQLW.js";
10
10
 
11
11
  // src/utils/writeNewFile.ts
12
12
  function writeNewFileSync(filePath, content) {
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  loadProducer
9
- } from "./chunk-4A27M7CJ.js";
9
+ } from "./chunk-5AKWJHRJ.js";
10
10
  import {
11
11
  resolveProjectRelativeSrc
12
12
  } from "./chunk-PBNWRWKA.js";
13
13
 
14
14
  // src/utils/projectMedia.ts
15
15
  async function collectProjectMedia(projectDir) {
16
- const { bundleToSingleHtml } = await import("./compiler-IL2PZJFH.js");
16
+ const { bundleToSingleHtml } = await import("./compiler-4ITKK4XI.js");
17
17
  const html = await bundleToSingleHtml(projectDir);
18
18
  const producer = await loadProducer();
19
19
  if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  setHostHandlesSigint
9
- } from "./chunk-I3PNZDKR.js";
9
+ } from "./chunk-UI7X4L4M.js";
10
10
  import {
11
11
  processAncestorSnapshot,
12
12
  processIdentity,
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  shouldTrack
9
- } from "./chunk-X2T5EOI7.js";
9
+ } from "./chunk-3R5MYOJN.js";
10
10
 
11
11
  // src/telemetry/renderObservability.ts
12
12
  function renderObservabilityTelemetryPayload(observability) {
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  getMimeType,
9
9
  injectMediaCodecMapIntoHtml
10
- } from "./chunk-HD4KXG5U.js";
10
+ } from "./chunk-FIC3E7IM.js";
11
11
  import {
12
12
  PROXY_VARIANT_CONFIG,
13
13
  ProxyCapacityError,
@@ -18,23 +18,26 @@ import {
18
18
  recordProxyRequest,
19
19
  resolveProxy,
20
20
  resolveProxyVariantRequest
21
- } from "./chunk-FHIBBIEZ.js";
21
+ } from "./chunk-PICG2XRD.js";
22
22
  import {
23
23
  findStageProxyBox
24
- } from "./chunk-BYZPLQSX.js";
24
+ } from "./chunk-3NIESDKN.js";
25
25
  import {
26
26
  resolveAutoProxy
27
- } from "./chunk-IMKBZEGT.js";
27
+ } from "./chunk-CZCRSS3U.js";
28
+ import {
29
+ listenOnBrowserSafePort
30
+ } from "./chunk-UI7X4L4M.js";
28
31
  import {
29
32
  stripSdrPngColourTags
30
- } from "./chunk-GNESG4XA.js";
33
+ } from "./chunk-VBC3DQFS.js";
31
34
  import {
32
35
  PREVIEW_PROXY_BOX_PARAM,
33
36
  parsePreviewProxyBox
34
- } from "./chunk-5ZJGEQGS.js";
37
+ } from "./chunk-472C35EW.js";
35
38
  import {
36
39
  decodeWellFormedEscapes
37
- } from "./chunk-SE2MXV2N.js";
40
+ } from "./chunk-X4SBDDLS.js";
38
41
 
39
42
  // src/utils/staticProjectServer.ts
40
43
  import { createServer, request as httpRequest } from "http";
@@ -253,15 +256,7 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
253
256
  res.writeHead(404);
254
257
  res.end();
255
258
  });
256
- const port = await new Promise((resolvePort, rejectPort) => {
257
- server.on("error", rejectPort);
258
- server.listen(0, "127.0.0.1", () => {
259
- const addr = server.address();
260
- const resolvedPort = typeof addr === "object" && addr ? addr.port : 0;
261
- if (!resolvedPort) rejectPort(new Error(bindErrorMessage));
262
- else resolvePort(resolvedPort);
263
- });
264
- }).catch((error) => {
259
+ const port = await listenOnBrowserSafePort(server, "127.0.0.1").then((bound) => bound || Promise.reject(new Error(bindErrorMessage))).catch((error) => {
265
260
  if (REFUSED_LISTEN.has(error.code ?? "")) return 0;
266
261
  throw error;
267
262
  });
@@ -0,0 +1,36 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+
8
+ // src/utils/hideChildConsoles.ts
9
+ import childProcess from "child_process";
10
+ import { syncBuiltinESMExports } from "module";
11
+ import { promisify } from "util";
12
+ var ENTRY_POINTS = ["spawn", "spawnSync", "exec", "execSync", "execFile", "execFileSync", "fork"];
13
+ function hidden(command, rest) {
14
+ const args = [...rest];
15
+ const at = args.findIndex((arg) => arg && typeof arg === "object" && !Array.isArray(arg));
16
+ if (at >= 0) {
17
+ args[at] = { windowsHide: true, ...args[at] };
18
+ } else {
19
+ const callback = args.findIndex((arg) => typeof arg === "function");
20
+ args.splice(callback < 0 ? args.length : callback, 0, { windowsHide: true });
21
+ }
22
+ return [command, ...args];
23
+ }
24
+ function hideChildConsoles(target = childProcess, platform = process.platform) {
25
+ if (platform !== "win32") return;
26
+ for (const name of ENTRY_POINTS) {
27
+ const original = target[name];
28
+ const wrapped = (command, ...rest) => original(...hidden(command, rest));
29
+ const custom = original[promisify.custom];
30
+ if (custom)
31
+ wrapped[promisify.custom] = (command, ...rest) => custom(...hidden(command, rest));
32
+ target[name] = wrapped;
33
+ }
34
+ if (target === childProcess) syncBuiltinESMExports();
35
+ }
36
+ hideChildConsoles();
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  CliUsageError
9
- } from "./chunk-JVBRJMOP.js";
9
+ } from "./chunk-LALLQUSK.js";
10
10
  import {
11
11
  c
12
- } from "./chunk-ZTZA4UWZ.js";
12
+ } from "./chunk-2GICKZ3I.js";
13
13
 
14
14
  // src/utils/reject-unknown-flags.ts
15
15
  var ALWAYS_KNOWN = /* @__PURE__ */ new Set(["help", "h", "version", "v", "json"]);
@@ -52,7 +52,7 @@ function unknownFlagIn(tok, known) {
52
52
  }
53
53
  return null;
54
54
  }
55
- function assertKnownFlags(cmd, rawArgs) {
55
+ function assertKnownFlags(cmd, rawArgs, path = "") {
56
56
  if (!Array.isArray(rawArgs)) return;
57
57
  const rawDef = cmd.args;
58
58
  const args = rawDef && typeof rawDef === "object" ? rawDef : void 0;
@@ -60,7 +60,10 @@ function assertKnownFlags(cmd, rawArgs) {
60
60
  for (const tok of rawArgs) {
61
61
  if (tok === "--") break;
62
62
  const bad = unknownFlagIn(tok, known);
63
- if (bad) throw new Error(`Unknown flag: ${bad}`);
63
+ if (bad) {
64
+ const hint = `Run 'hyperframes ${path ? `${path} ` : ""}--help' to see its flags.`;
65
+ throw new CliUsageError(`Unknown flag: ${bad}`, { hint });
66
+ }
64
67
  }
65
68
  }
66
69
  function stringValueFlagOwners(args, ignore) {
@@ -0,0 +1,81 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+
8
+ // ../engine/src/services/wslHost.ts
9
+ import { accessSync, constants, existsSync, readFileSync, statSync } from "fs";
10
+ import { platform, release } from "os";
11
+ function groupName(gid) {
12
+ try {
13
+ const line = readFileSync("/etc/group", "utf-8").split("\n").find((entry) => entry.split(":")[2] === String(gid));
14
+ return line?.split(":")[0] || String(gid);
15
+ } catch {
16
+ return String(gid);
17
+ }
18
+ }
19
+ var realHost = {
20
+ get platform() {
21
+ return platform();
22
+ },
23
+ get release() {
24
+ return release();
25
+ },
26
+ readProcVersion: () => readFileSync("/proc/version", "utf-8"),
27
+ renderNodeAccess: (path) => {
28
+ if (!existsSync(path)) return { state: "missing" };
29
+ try {
30
+ accessSync(path, constants.R_OK | constants.W_OK);
31
+ return { state: "read-write" };
32
+ } catch {
33
+ const gid = statSync(path, { throwIfNoEntry: false })?.gid ?? -1;
34
+ return {
35
+ state: "denied",
36
+ group: groupName(gid),
37
+ userInGroup: process.getgroups?.().includes(gid) ?? false
38
+ };
39
+ }
40
+ }
41
+ };
42
+ function detectWsl(host = realHost) {
43
+ if (host.platform !== "linux") return false;
44
+ try {
45
+ const osRelease = host.release.toLowerCase();
46
+ if (osRelease.includes("microsoft") || osRelease.includes("wsl")) return true;
47
+ const procVersion = host.readProcVersion().toLowerCase();
48
+ return procVersion.includes("microsoft") || procVersion.includes("wsl");
49
+ } catch {
50
+ return false;
51
+ }
52
+ }
53
+ var RENDER_NODE = "/dev/dri/renderD128";
54
+ var NATIVE_WINDOWS = "render from native Windows (project copied to a Windows drive, run from PowerShell), where Chrome uses the GPU through Direct3D.";
55
+ function describeWslGpuAccess(host = realHost) {
56
+ if (!detectWsl(host)) return null;
57
+ const access = host.renderNodeAccess(RENDER_NODE);
58
+ if (access.state === "denied" && !access.userInGroup) {
59
+ return [
60
+ ` Your Linux user cannot read and write ${RENDER_NODE} and is not in its group ("${access.group}"), which can stop Mesa from reaching the GPU.`,
61
+ ` Fix: run \`sudo usermod -aG ${access.group} $USER\`, then \`wsl --shutdown\` from Windows, reopen WSL and render again.`,
62
+ ` Or ${NATIVE_WINDOWS}`
63
+ ];
64
+ }
65
+ if (access.state === "denied") {
66
+ return [
67
+ ` Your Linux user is in the "${access.group}" group but still cannot read and write ${RENDER_NODE}; check its permissions with \`ls -l ${RENDER_NODE}\`.`,
68
+ ` Or ${NATIVE_WINDOWS}`
69
+ ];
70
+ }
71
+ const seen = access.state === "missing" ? "does not exist" : "is readable and writable";
72
+ return [
73
+ ` ${RENDER_NODE} ${seen}, so file permissions are not the cause.`,
74
+ ` To use the GPU, ${NATIVE_WINDOWS}`
75
+ ];
76
+ }
77
+
78
+ export {
79
+ detectWsl,
80
+ describeWslGpuAccess
81
+ };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  renameWithRetry
9
- } from "./chunk-XCIHCPJK.js";
9
+ } from "./chunk-YWRUQ7XZ.js";
10
10
  import {
11
11
  realpath
12
12
  } from "./chunk-OFQWTKPW.js";