hyperframes 0.8.208 → 0.8.210

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 (213) hide show
  1. package/dist/{add-XMWRBMBR.js → add-36M7YRR4.js} +17 -16
  2. package/dist/{animatedGifPrep-6XURJIPV.js → animatedGifPrep-RZLTC77F.js} +8 -6
  3. package/dist/api.js +26 -20
  4. package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
  5. package/dist/{asset-I5GGEOB2.js → asset-HRGZ7ZCB.js} +2 -2
  6. package/dist/{assetCataloger-YBPXUNUP.js → assetCataloger-LN7RI2IC.js} +9 -7
  7. package/dist/{audio-GFJCHH5W.js → audio-ULOHC2KL.js} +31 -22
  8. package/dist/{auth-QOA55RYR.js → auth-K4ZULHQY.js} +4 -4
  9. package/dist/{autoUpdate-SPS4QPJU.js → autoUpdate-MUJ4WPP6.js} +4 -4
  10. package/dist/{backgroundChecks-HRJO7YK7.js → backgroundChecks-O6JST752.js} +5 -5
  11. package/dist/backgroundChecksWorker.js +5 -5
  12. package/dist/{batchRender-FBP3RKUF.js → batchRender-U742UVOD.js} +4 -4
  13. package/dist/{beats-VNGJ7F6W.js → beats-2CSE5WJD.js} +15 -12
  14. package/dist/{benchmark-NZ3N3MIV.js → benchmark-YJB2YKOE.js} +10 -10
  15. package/dist/{browser-BD5BKRJ5.js → browser-WJ5E7RYS.js} +7 -7
  16. package/dist/{bundleWithLocalizedFonts-WXVNPAWD.js → bundleWithLocalizedFonts-F5VQMFHZ.js} +3 -3
  17. package/dist/{capture-CXWXKWS5.js → capture-6OJDKKEZ.js} +26 -22
  18. package/dist/{capture-LMJ4TQRL.js → capture-IYV3OS5W.js} +3 -3
  19. package/dist/{captureCompositionFrame-ZKVCRYYU.js → captureCompositionFrame-7357PUMG.js} +15 -14
  20. package/dist/{catalog-WRXQSCAU.js → catalog-CZBK33QH.js} +18 -17
  21. package/dist/{catch-up-MDSPABFC.js → catch-up-7IJQ7AUR.js} +9 -8
  22. package/dist/{check-SIBBK5HA.js → check-ISUFX4DK.js} +46 -44
  23. package/dist/{checkAudio-QQBR4HR7.js → checkAudio-GAA2SY5E.js} +21 -12
  24. package/dist/{checkBrowser-4EBJLLIH.js → checkBrowser-JRADOMED.js} +39 -37
  25. package/dist/{chunk-Z5TGBEPJ.js → chunk-32BLIKEV.js} +1 -1
  26. package/dist/{chunk-P7WGVXR7.js → chunk-35HSGF46.js} +6 -6
  27. package/dist/{chunk-6WRN4WC6.js → chunk-36EOFTVG.js} +1 -1
  28. package/dist/{chunk-FFDYRJBE.js → chunk-3PTZ2TD4.js} +1 -1
  29. package/dist/{chunk-S4KHJERB.js → chunk-4A27M7CJ.js} +1 -1
  30. package/dist/{chunk-VYRJAQGC.js → chunk-57QUPSP2.js} +1 -1
  31. package/dist/{chunk-HUKQW4YE.js → chunk-5IWRGVAX.js} +2 -2
  32. package/dist/{chunk-SI7QCT2J.js → chunk-5PCT5DDF.js} +6 -6
  33. package/dist/{chunk-QWBVPWUI.js → chunk-5ZJGEQGS.js} +3 -1
  34. package/dist/{chunk-CP225S5H.js → chunk-7BOGLQFM.js} +5 -5
  35. package/dist/{chunk-MOEGCMKI.js → chunk-7J6LQ3SQ.js} +20 -0
  36. package/dist/chunk-7VZEOCUY.js +98 -0
  37. package/dist/{chunk-4LTBQEPD.js → chunk-A2H5EJZM.js} +2 -2
  38. package/dist/{chunk-NZ6G5YWZ.js → chunk-A45HCDG7.js} +2 -2
  39. package/dist/{chunk-MW2NQQ6Z.js → chunk-AG566TRI.js} +2 -2
  40. package/dist/{chunk-K4PHB3YQ.js → chunk-AZGVCQGO.js} +7 -3
  41. package/dist/{chunk-WNMVC3IT.js → chunk-BKXC5XHB.js} +1 -1
  42. package/dist/{chunk-S2OLTAEL.js → chunk-BN22WCAF.js} +2 -2
  43. package/dist/{chunk-J67FSI3Q.js → chunk-BW5WYF4N.js} +92 -27
  44. package/dist/{chunk-ULL3U6PV.js → chunk-BYZPLQSX.js} +1 -1
  45. package/dist/chunk-D3MUHMFG.js +16 -0
  46. package/dist/{chunk-4HT2L6W2.js → chunk-DHTWYTSV.js} +1 -1
  47. package/dist/{chunk-XUQYC5DD.js → chunk-DKJAK6JW.js} +5 -5
  48. package/dist/{chunk-LSMFOZ4F.js → chunk-DST7GU2Y.js} +2 -2
  49. package/dist/{chunk-EU7MVORF.js → chunk-E63BDV4Z.js} +10 -1
  50. package/dist/{chunk-6N7D2GUV.js → chunk-EQPXSSNG.js} +28 -24
  51. package/dist/{chunk-MBGM26P5.js → chunk-ERVBXEPZ.js} +1 -1
  52. package/dist/{chunk-MYO77JWR.js → chunk-EVTBRL37.js} +1 -1
  53. package/dist/{chunk-EGOXYG3M.js → chunk-EYGWMHXV.js} +2 -2
  54. package/dist/{chunk-DHQSDCWD.js → chunk-F7IWJMIO.js} +3 -2
  55. package/dist/{chunk-4KG3ESVO.js → chunk-FBIWJ3A4.js} +4 -4
  56. package/dist/{chunk-DXACKQ3F.js → chunk-FCIO4WSW.js} +3 -3
  57. package/dist/{chunk-43MW4SY7.js → chunk-FCXEVKFQ.js} +4 -4
  58. package/dist/{chunk-PKVA6MPV.js → chunk-FHIBBIEZ.js} +65 -204
  59. package/dist/{chunk-XG3IZV62.js → chunk-GKNTPIFD.js} +17 -9
  60. package/dist/{chunk-GHSO62LK.js → chunk-GNESG4XA.js} +4 -10
  61. package/dist/{chunk-G2A6RC5R.js → chunk-HD4KXG5U.js} +70 -49
  62. package/dist/{chunk-PWEOSJ3E.js → chunk-HKCIRH26.js} +3 -3
  63. package/dist/{chunk-B5MPMIKQ.js → chunk-HP7BXJFZ.js} +2 -2
  64. package/dist/{chunk-MPO25DQW.js → chunk-I3PNZDKR.js} +186 -153
  65. package/dist/chunk-I4H5JWND.js +205 -0
  66. package/dist/{chunk-ORFRUZPB.js → chunk-IMKBZEGT.js} +2 -2
  67. package/dist/{chunk-3O2E4Q66.js → chunk-J7A73K2B.js} +35 -22
  68. package/dist/{chunk-M4QZFUMW.js → chunk-JHNBF2HD.js} +1 -1
  69. package/dist/{chunk-XOFBXLMG.js → chunk-JLBJRJO6.js} +5 -3
  70. package/dist/{chunk-GMECXFAN.js → chunk-K4FVGVA6.js} +5 -2
  71. package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
  72. package/dist/{chunk-7CPI2DWL.js → chunk-KGAPL42S.js} +1 -1
  73. package/dist/{chunk-BKDQFOKK.js → chunk-KGG2PUZN.js} +91 -17
  74. package/dist/{chunk-OTXXDONS.js → chunk-LRE4GDFA.js} +3 -3
  75. package/dist/{chunk-EYEEZXLI.js → chunk-MA447PNF.js} +25 -17
  76. package/dist/{chunk-6JNSYFOH.js → chunk-MV3J6ZOP.js} +4 -4
  77. package/dist/{chunk-CSWCZA6V.js → chunk-NEKKA2DA.js} +2 -2
  78. package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
  79. package/dist/{chunk-4F5NRJ6M.js → chunk-OMLVCHNN.js} +2 -2
  80. package/dist/{chunk-6CWKORZO.js → chunk-P2L7NNHT.js} +27 -5
  81. package/dist/{chunk-FC4WT5FX.js → chunk-P327BIJR.js} +1 -14
  82. package/dist/{chunk-NEASABW6.js → chunk-P6EXMN5D.js} +1 -1
  83. package/dist/{chunk-VR3JLTZD.js → chunk-PCPMSUW6.js} +3 -3
  84. package/dist/{chunk-D2CE2J2A.js → chunk-PV4XID2A.js} +1 -1
  85. package/dist/{chunk-IL2TMC6F.js → chunk-QFXF5GXE.js} +21 -5
  86. package/dist/{chunk-VS4SK7BN.js → chunk-QI5TLQNW.js} +7 -7
  87. package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
  88. package/dist/{chunk-BLCKQPBE.js → chunk-QPX7FJP3.js} +1 -1
  89. package/dist/chunk-QRC7IVBC.js +4870 -0
  90. package/dist/{chunk-IIJVSCSH.js → chunk-QRWTVCGH.js} +18 -18
  91. package/dist/{chunk-56ANHX5U.js → chunk-QXUFQSSK.js} +1 -1
  92. package/dist/{chunk-KTWGVEN6.js → chunk-RIAWW4G2.js} +2 -2
  93. package/dist/{chunk-HTZJNQYI.js → chunk-RUW65P3N.js} +1 -1
  94. package/dist/{chunk-ENRFKCI6.js → chunk-TDEORHFN.js} +3 -3
  95. package/dist/{chunk-X6MCIK7L.js → chunk-TGFDRZTM.js} +29 -13
  96. package/dist/{chunk-U6KN6OIP.js → chunk-UA3YNZK6.js} +2 -2
  97. package/dist/{chunk-TNTGGDSD.js → chunk-UWEGMKKU.js} +1 -1
  98. package/dist/{chunk-SKKQMW5X.js → chunk-W3V5EOFA.js} +1 -1
  99. package/dist/{chunk-QP2MJYTJ.js → chunk-W4E3ZOWH.js} +1 -1
  100. package/dist/{chunk-7PAK7LZ5.js → chunk-WOFTAZSZ.js} +18 -20
  101. package/dist/{chunk-HZN7ICAF.js → chunk-WWQJYYAB.js} +3 -3
  102. package/dist/{chunk-PSOAGSNO.js → chunk-X2T5EOI7.js} +2 -2
  103. package/dist/{chunk-Q43YUROE.js → chunk-X6JUUQCM.js} +1 -1
  104. package/dist/chunk-XCIHCPJK.js +106 -0
  105. package/dist/{chunk-5HB4JM7H.js → chunk-XIUHHEBS.js} +5 -3
  106. package/dist/{chunk-EXAX37XR.js → chunk-Y65ZU7XY.js} +18 -13
  107. package/dist/{chunk-WABB4LZS.js → chunk-YBY2WVLC.js} +19 -2
  108. package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
  109. package/dist/{chunk-6DSYBW7Z.js → chunk-YRO3PXWU.js} +1 -85
  110. package/dist/{chunk-6PWQH77E.js → chunk-ZFVNYA3M.js} +1 -1
  111. package/dist/{chunk-GEO6THL3.js → chunk-ZRSQNF4A.js} +43 -30
  112. package/dist/{clean-6GX7WAEC.js → clean-NVBEXXIS.js} +25 -22
  113. package/dist/cli.js +56 -56
  114. package/dist/{cloud-6PFJKLNL.js → cloud-3T6HF7DT.js} +4 -4
  115. package/dist/{cloudrun-UGG3ZFH7.js → cloudrun-TXEEZGJ7.js} +5 -5
  116. package/dist/commands/layout-audit.browser.js +94 -4
  117. package/dist/{compare-P4EBOP4B.js → compare-Q42Z56P7.js} +38 -36
  118. package/dist/{compiler-PG4RKX6K.js → compiler-IL2PZJFH.js} +5 -3
  119. package/dist/{component-SQPMI3W7.js → component-2IWQZYCZ.js} +3 -3
  120. package/dist/{compositions-KRIHY3IY.js → compositions-3EZ3GBK2.js} +14 -12
  121. package/dist/{contactSheet-RYAE7Y5D.js → contactSheet-WG4HT5XP.js} +2 -2
  122. package/dist/{delete-T5TO4SV6.js → delete-2UBY2JTM.js} +10 -9
  123. package/dist/{deploy-AO6LQR5G.js → deploy-QTS2OM2H.js} +1 -1
  124. package/dist/{dist-6IMEDVMC.js → dist-73YTUT3W.js} +1 -1
  125. package/dist/{dist-23AAB5X2.js → dist-XF53LCKD.js} +4 -2
  126. package/dist/{doctor-QBUJQ655.js → doctor-FIXMXWE6.js} +21 -15
  127. package/dist/{events-J7CESLKQ.js → events-7WYSDXTE.js} +4 -4
  128. package/dist/{events-SIZO7YHI.js → events-NTZSSMBR.js} +5 -5
  129. package/dist/{feedback-74WOJ5PN.js → feedback-7SOB5GZC.js} +12 -12
  130. package/dist/{ffmpeg-AKUP6U2S.js → ffmpeg-PYY5FSIX.js} +10 -8
  131. package/dist/{figma-GGMYRR4Q.js → figma-DTWA3G22.js} +3 -3
  132. package/dist/fontLocalizeCli.js +11 -9
  133. package/dist/{get-PLKAI6JM.js → get-DMGUJPLP.js} +10 -9
  134. package/dist/{gpuPolicy-EYDAAPJF.js → gpuPolicy-KVYO4OU4.js} +8 -6
  135. package/dist/{grade-compare-UADJP4AV.js → grade-compare-NCYPJFLI.js} +39 -37
  136. package/dist/{heifImagePrep-KDF3OPOK.js → heifImagePrep-F7LFUYGC.js} +9 -7
  137. package/dist/{help-WSQQ555Q.js → help-I4RRBHCW.js} +2 -2
  138. package/dist/{history-VSQ2DQ3V.js → history-GVBBXZKQ.js} +11 -10
  139. package/dist/hyperframe.manifest.json +1 -1
  140. package/dist/hyperframe.runtime.iife.js +64 -64
  141. package/dist/hyperframes-player.global.js +1 -1
  142. package/dist/{info-MOQ4LRC3.js → info-UE2PY5AF.js} +9 -9
  143. package/dist/{init-EONQSZJG.js → init-4UGFGJQK.js} +39 -34
  144. package/dist/{inspect-OLCVLHOU.js → inspect-ZRREAUCB.js} +37 -35
  145. package/dist/{installer-GHISA75B.js → installer-ABXPRFIJ.js} +6 -5
  146. package/dist/{keyframes-DGQYCY24.js → keyframes-MFR4TYVR.js} +8 -8
  147. package/dist/{lambda-AMMWF2YH.js → lambda-E3Z6JCIB.js} +13 -11
  148. package/dist/{layout-R6CAPGRO.js → layout-IO7T5SSU.js} +37 -35
  149. package/dist/{lint-QZJEYPHD.js → lint-WYPQK5XA.js} +9 -9
  150. package/dist/{lintProject-W3YVHAGP.js → lintProject-KCN7MRBN.js} +1 -1
  151. package/dist/{list-KCJID4SP.js → list-7F2LXWOZ.js} +10 -9
  152. package/dist/{login-7HKBEPJS.js → login-TTMYCXN2.js} +7 -7
  153. package/dist/{logout-3IID4KXD.js → logout-QRSB4CNH.js} +3 -3
  154. package/dist/{manager-Z7W4GQGF.js → manager-LQXZTUTJ.js} +3 -3
  155. package/dist/{manager-6YSKJMVD.js → manager-OQ5J26ST.js} +11 -9
  156. package/dist/{media-treatment-E3DL6LEZ.js → media-treatment-ELB6WRA5.js} +17 -15
  157. package/dist/{models-URWI7YEG.js → models-D2FNIGNZ.js} +15 -13
  158. package/dist/{motionShot-27IXMDJK.js → motionShot-53VDDRIC.js} +22 -21
  159. package/dist/{normalize-audio-WGRLPR3P.js → normalize-audio-QHNCFWR2.js} +12 -9
  160. package/dist/{open-LQ35PLEN.js → open-3KMTT3AV.js} +18 -17
  161. package/dist/{parakeetRunner-XASVIDTI.js → parakeetRunner-T65S6FW3.js} +20 -17
  162. package/dist/{pipeline-GA7QVCHS.js → pipeline-DUVRZGIM.js} +15 -10
  163. package/dist/{play-RYZP77CI.js → play-27R6RBSK.js} +27 -24
  164. package/dist/{policies-PKLD4UW5.js → policies-NWIEUGGW.js} +1 -1
  165. package/dist/{preflight-HJFSJXXF.js → preflight-QB6NKBBL.js} +12 -10
  166. package/dist/{present-YBMLOWZV.js → present-RHV3FKI5.js} +21 -18
  167. package/dist/{preview-QIRKJCRV.js → preview-IAKIXYLN.js} +29 -27
  168. package/dist/{producer-524FDOLX.js → producer-F6PHB4M4.js} +1 -1
  169. package/dist/{projectConfig-IDQN5ZRW.js → projectConfig-MPHWYY5D.js} +10 -9
  170. package/dist/{publication-3X3IGSDO.js → publication-CBAEINEG.js} +4 -3
  171. package/dist/{publish-2BF7K6HX.js → publish-4A2A6V7Z.js} +20 -17
  172. package/dist/{refresh-3IRHJEQA.js → refresh-F7FUCXLX.js} +3 -3
  173. package/dist/{remove-background-EZBCEFT6.js → remove-background-3I7RZGVG.js} +15 -11
  174. package/dist/{render-TEEBI2UT.js → render-2HYATL32.js} +56 -57
  175. package/dist/{render-EFUA2A6A.js → render-BGPUHBFC.js} +6 -5
  176. package/dist/{render-JFMTAXHD.js → render-BSKLHCZ4.js} +67 -47
  177. package/dist/{render-batch-XTYNXVSW.js → render-batch-JD6C3BDD.js} +7 -6
  178. package/dist/renderSetupWorker.js +5 -5
  179. package/dist/{resolver-FZS6TN6B.js → resolver-SQYR7LII.js} +6 -5
  180. package/dist/{screenshotCapture-HOW4VSV6.js → screenshotCapture-HDRHY4NN.js} +2 -2
  181. package/dist/{sherpa-TQIAIKTH.js → sherpa-VXD3DAH4.js} +19 -16
  182. package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +2 -2
  183. package/dist/{skills-S6ZG5KKH.js → skills-B2SHEHWL.js} +7 -7
  184. package/dist/{skillsUpdateCheck-XC7JQL3F.js → skillsUpdateCheck-ST43UUPK.js} +5 -5
  185. package/dist/{snapshot-ERYZIM32.js → snapshot-USJYNKDM.js} +118 -75
  186. package/dist/{src-OL6RHPE4.js → src-5OX35WPG.js} +10 -8
  187. package/dist/{src-6XOMREMS.js → src-PX3VIS7K.js} +30 -9
  188. package/dist/{staticProjectServer-JYDDGPAH.js → staticProjectServer-ET7H5LMV.js} +22 -19
  189. package/dist/{status-DTP6ZYDU.js → status-QVDRHXW2.js} +3 -3
  190. package/dist/studio/assets/{hyperframes-player-5dRdMVOq.js → hyperframes-player-DUpxahTX.js} +1 -1
  191. package/dist/studio/assets/{index-ZqyQ91pm.js → index-B4dcZZAm.js} +1 -1
  192. package/dist/studio/assets/{index-Bu3mJUU2.js → index-CtrcjpbM.js} +5 -5
  193. package/dist/studio/assets/{index-CYbvOVp-.css → index-RUPGNyct.css} +1 -1
  194. package/dist/studio/index.html +2 -2
  195. package/dist/{studio-api-GRU4SHKD.js → studio-api-PLKYSG2X.js} +13 -10
  196. package/dist/{studioServer-OYPBEI5B.js → studioServer-CNUXGRFS.js} +65 -63
  197. package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
  198. package/dist/{telemetry-CPYINR63.js → telemetry-DGDEJLGL.js} +5 -5
  199. package/dist/{telemetry-6BPSGY5W.js → telemetry-EJS5PXH2.js} +2 -2
  200. package/dist/{timeline-RGK5BMPD.js → timeline-VCQC4TLM.js} +23 -20
  201. package/dist/{tokens-EX4BOWRW.js → tokens-AEOBCDW5.js} +2 -2
  202. package/dist/{transcribe-RI52JMVW.js → transcribe-COFCB3ZB.js} +25 -22
  203. package/dist/{transcribe-MK367I6A.js → transcribe-X6O5ZSGQ.js} +15 -12
  204. package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
  205. package/dist/{updateCheck-BIEJKQI4.js → updateCheck-BW7MDUXZ.js} +4 -4
  206. package/dist/{upgrade-ES3UUI7O.js → upgrade-QXOGA54H.js} +4 -4
  207. package/dist/{urlDownloader-XAGYSTAG.js → urlDownloader-QB3TBIQ5.js} +7 -5
  208. package/dist/{validate-A6GZHNEI.js → validate-AU2BZ7D7.js} +29 -27
  209. package/dist/{video-OEMGR3MN.js → video-GNNYAL5T.js} +9 -7
  210. package/dist/warmCheck.js +46 -44
  211. package/package.json +1 -1
  212. package/dist/chunk-BQMAPNDA.js +0 -4830
  213. package/dist/chunk-DKPNNYBZ.js +0 -44
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  resolveProject
9
- } from "./chunk-Z5TGBEPJ.js";
9
+ } from "./chunk-32BLIKEV.js";
10
10
  import {
11
11
  installPageFunctionGuard,
12
12
  resolveCliChromeGpuMode,
13
13
  seekCompositionTimeline,
14
14
  waitForRuntimeReady
15
- } from "./chunk-7PAK7LZ5.js";
16
- import {
17
- launchManagedBrowser,
18
- resolveManagedGpuMode
19
- } from "./chunk-X6MCIK7L.js";
15
+ } from "./chunk-WOFTAZSZ.js";
20
16
  import {
21
17
  pageNavigationTimeoutMs
22
- } from "./chunk-ENRFKCI6.js";
18
+ } from "./chunk-TDEORHFN.js";
23
19
  import {
24
20
  resolveCompositionViewportFromHtml
25
- } from "./chunk-ULL3U6PV.js";
21
+ } from "./chunk-BYZPLQSX.js";
22
+ import {
23
+ launchManagedBrowser,
24
+ resolveManagedGpuMode
25
+ } from "./chunk-TGFDRZTM.js";
26
26
  import {
27
27
  defineCommand
28
28
  } from "./chunk-S3S4TGEH.js";
@@ -35,17 +35,17 @@ import {
35
35
  } from "./chunk-ZTZA4UWZ.js";
36
36
  import {
37
37
  resolveNaturalMediaTimelineDuration
38
- } from "./chunk-BQMAPNDA.js";
38
+ } from "./chunk-QRC7IVBC.js";
39
39
  import {
40
40
  decodeWellFormedEscapes
41
41
  } from "./chunk-SE2MXV2N.js";
42
42
  import {
43
43
  printDeprecationNotice,
44
44
  withMeta
45
- } from "./chunk-U6KN6OIP.js";
45
+ } from "./chunk-UA3YNZK6.js";
46
46
  import {
47
47
  normalizeErrorMessage
48
- } from "./chunk-EU7MVORF.js";
48
+ } from "./chunk-E63BDV4Z.js";
49
49
 
50
50
  // src/commands/validate.ts
51
51
  import { existsSync, mkdtempSync, readFileSync, rmSync } from "fs";
@@ -248,7 +248,7 @@ function extractCompositionErrorsFromLint(lintResult) {
248
248
  async function localizeRemoteAssets(html) {
249
249
  let dir;
250
250
  try {
251
- const { loadProducer } = await import("./producer-524FDOLX.js");
251
+ const { loadProducer } = await import("./producer-F6PHB4M4.js");
252
252
  const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
253
253
  dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
254
254
  const assetDir = dir;
@@ -269,10 +269,10 @@ async function localizeRemoteAssets(html) {
269
269
  }
270
270
  async function validateInBrowser(project, opts) {
271
271
  const projectDir = project.dir;
272
- const { bundleToSingleHtml } = await import("./compiler-PG4RKX6K.js");
273
- const { ensureBrowser } = await import("./manager-Z7W4GQGF.js");
274
- const { serveStaticProjectHtml } = await import("./staticProjectServer-JYDDGPAH.js");
275
- const { lintProject } = await import("./lintProject-W3YVHAGP.js");
272
+ const { bundleToSingleHtml } = await import("./compiler-IL2PZJFH.js");
273
+ const { ensureBrowser } = await import("./manager-LQXZTUTJ.js");
274
+ const { serveStaticProjectHtml } = await import("./staticProjectServer-ET7H5LMV.js");
275
+ const { lintProject } = await import("./lintProject-KCN7MRBN.js");
276
276
  const lintResult = await lintProject(projectDir);
277
277
  const compositionErrors = extractCompositionErrorsFromLint(lintResult);
278
278
  const html = await bundleToSingleHtml(projectDir);
@@ -293,9 +293,9 @@ async function validateInBrowser(project, opts) {
293
293
  try {
294
294
  const browser = await ensureBrowser();
295
295
  const puppeteer = await import("puppeteer-core");
296
- const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-6XOMREMS.js");
296
+ const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-PX3VIS7K.js");
297
297
  const requestedGpuMode = resolveCliChromeGpuMode();
298
- const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-EYDAAPJF.js");
298
+ const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-KVYO4OU4.js");
299
299
  const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
300
300
  const requiresWebGpu = compositionRequiresWebGpu(html);
301
301
  const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
@@ -10,7 +10,7 @@ import {
10
10
  hasPreservedUnknownData,
11
11
  readStore,
12
12
  writeStore
13
- } from "./chunk-M4QZFUMW.js";
13
+ } from "./chunk-JHNBF2HD.js";
14
14
 
15
15
  // src/auth/user.ts
16
16
  function isUserInfoEmpty(u) {
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  runCancellableProcess,
9
9
  runRenderSetupWorker
10
- } from "./chunk-Q43YUROE.js";
10
+ } from "./chunk-X6JUUQCM.js";
11
11
  import {
12
12
  getFreeDiskMb
13
13
  } from "./chunk-QSFWGZG6.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-ERUQ3S6D.js";
19
19
  import {
20
20
  normalizeErrorMessage
21
- } from "./chunk-EU7MVORF.js";
21
+ } from "./chunk-E63BDV4Z.js";
22
22
 
23
23
  // src/browser/manager.ts
24
24
  import { execSync, spawnSync } from "child_process";
@@ -12,7 +12,7 @@ import {
12
12
  forceRefreshCredentials,
13
13
  resolveCloudAuthHeaders,
14
14
  resolveCloudBaseUrl
15
- } from "./chunk-VYRJAQGC.js";
15
+ } from "./chunk-57QUPSP2.js";
16
16
  import {
17
17
  errorBox
18
18
  } from "./chunk-K2FLNJVB.js";
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-QP2MJYTJ.js";
9
+ } from "./chunk-W4E3ZOWH.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-K2FLNJVB.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  DEFAULT_CONFIG,
18
18
  resolvePageNavigationTimeout
19
- } from "./chunk-MPO25DQW.js";
19
+ } from "./chunk-I3PNZDKR.js";
20
20
  import {
21
21
  parseFps
22
- } from "./chunk-QWBVPWUI.js";
22
+ } from "./chunk-5ZJGEQGS.js";
23
23
 
24
24
  // src/browser/windowsCrash.ts
25
25
  var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
@@ -5,22 +5,20 @@ var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
+ resolveCaptureBrowserGpuMode
9
+ } from "./chunk-A2H5EJZM.js";
10
+ import {
11
+ requestCliExit
12
+ } from "./chunk-JVBRJMOP.js";
13
+ import {
14
+ explainChromeLaunchFailure,
8
15
  inAgentSandbox,
9
16
  isOneProcessOverPipe,
10
17
  machServiceDenied,
11
18
  oneProcessOverPipe,
12
19
  pipeLaunchClosedOnMac,
13
20
  sandboxDeniedRemediation
14
- } from "./chunk-DKPNNYBZ.js";
15
- import {
16
- resolveCaptureBrowserGpuMode
17
- } from "./chunk-4LTBQEPD.js";
18
- import {
19
- requestCliExit
20
- } from "./chunk-JVBRJMOP.js";
21
- import {
22
- explainChromeLaunchFailure
23
- } from "./chunk-MPO25DQW.js";
21
+ } from "./chunk-I3PNZDKR.js";
24
22
  import {
25
23
  processIsAlive
26
24
  } from "./chunk-KGPLIH7B.js";
@@ -28,8 +26,9 @@ import {
28
26
  withHyperframesBrowserMarker
29
27
  } from "./chunk-K4MJX7SR.js";
30
28
  import {
31
- normalizeErrorMessage
32
- } from "./chunk-EU7MVORF.js";
29
+ normalizeErrorMessage,
30
+ notePageCrash
31
+ } from "./chunk-E63BDV4Z.js";
33
32
 
34
33
  // src/browser/chromeTree.ts
35
34
  import { execFile } from "child_process";
@@ -132,6 +131,7 @@ var BrowserCleanupError = class extends AggregateError {
132
131
  var browsers = /* @__PURE__ */ new Set();
133
132
  var closing = /* @__PURE__ */ new WeakMap();
134
133
  var watchdogs = /* @__PURE__ */ new WeakMap();
134
+ var gracefulClose = /* @__PURE__ */ new WeakMap();
135
135
  var pending = /* @__PURE__ */ new Map();
136
136
  var diagnosing = /* @__PURE__ */ new Set();
137
137
  var sessionCleanups = /* @__PURE__ */ new Set();
@@ -260,6 +260,10 @@ async function launchOwnedBrowser(puppeteer, options) {
260
260
  browsers.add(browser);
261
261
  const watchdog = watchChromeTree(child, launchedAt);
262
262
  if (watchdog) watchdogs.set(browser, watchdog);
263
+ gracefulClose.set(browser, browser.close.bind(browser));
264
+ browser.close = () => closeManagedBrowser(browser);
265
+ const newPage = browser.newPage;
266
+ browser.newPage = async (...args) => closeOnRendererCrash(await newPage.apply(browser, args));
263
267
  child.once("exit", () => {
264
268
  browsers.delete(browser);
265
269
  destroyBrowserPipes(child);
@@ -271,6 +275,13 @@ async function launchOwnedBrowser(puppeteer, options) {
271
275
  pending.delete(launch);
272
276
  }
273
277
  }
278
+ function closeOnRendererCrash(page) {
279
+ page.once("error", () => {
280
+ notePageCrash();
281
+ page.close().catch(() => void 0);
282
+ });
283
+ return page;
284
+ }
274
285
  function untilLaunchOrAbort(launch, signal) {
275
286
  const aborted = new Promise((_, reject) => {
276
287
  if (signal.aborted) reject(signal.reason);
@@ -325,6 +336,9 @@ async function descendantsToReap(pid) {
325
336
  if (pid === void 0 || process.platform === "win32") return [];
326
337
  return chromeDescendants(pid).catch(() => []);
327
338
  }
339
+ function closeGracefully(browser) {
340
+ return (gracefulClose.get(browser) ?? (() => browser.close()))();
341
+ }
328
342
  async function closedWithoutKill(browser) {
329
343
  const child = browser.process();
330
344
  if (!child) throw new Error("A managed browser lost its owned process.");
@@ -338,7 +352,9 @@ async function closedWithoutKill(browser) {
338
352
  });
339
353
  try {
340
354
  await Promise.race([
341
- browser.close().catch((error) => console.warn("Browser close failed:", error)),
355
+ closeGracefully(browser).catch(
356
+ (error) => console.warn("Browser close failed:", error)
357
+ ),
342
358
  grace
343
359
  ]);
344
360
  const clean = child.exitCode !== null || child.signalCode !== null;
@@ -11,13 +11,13 @@ import {
11
11
  readConfig,
12
12
  readConfigFresh,
13
13
  writeConfig
14
- } from "./chunk-NEASABW6.js";
14
+ } from "./chunk-P6EXMN5D.js";
15
15
  import {
16
16
  isDevMode
17
17
  } from "./chunk-ISN5GRYI.js";
18
18
  import {
19
19
  VERSION
20
- } from "./chunk-MW2NQQ6Z.js";
20
+ } from "./chunk-AG566TRI.js";
21
21
 
22
22
  // src/utils/updateCheck.ts
23
23
  import { existsSync, readFileSync } from "fs";
@@ -11,7 +11,7 @@ import {
11
11
  DEFAULT_REGISTRY_URL,
12
12
  fetchItemManifest,
13
13
  fetchRegistryManifest
14
- } from "./chunk-HUKQW4YE.js";
14
+ } from "./chunk-5IWRGVAX.js";
15
15
 
16
16
  // src/registry/resolver.ts
17
17
  function defaultWarn(message) {
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  VERSION
9
- } from "./chunk-MW2NQQ6Z.js";
9
+ } from "./chunk-AG566TRI.js";
10
10
 
11
11
  // src/registry/compatibility.ts
12
12
  import { compareVersions } from "compare-versions";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-QWBVPWUI.js";
13
+ } from "./chunk-5ZJGEQGS.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-GWTIFRF5.js";
@@ -4,38 +4,36 @@ import { dirname as __hf_dirname } from "node:path";
4
4
  var require = __hf_createRequire(import.meta.url);
5
5
  var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
- import {
8
- launchManagedBrowser,
9
- resolveManagedGpuMode,
10
- rethrowAfterBrowserCleanup
11
- } from "./chunk-X6MCIK7L.js";
12
7
  import {
13
8
  gotoWhenSent
14
- } from "./chunk-MOEGCMKI.js";
9
+ } from "./chunk-7J6LQ3SQ.js";
15
10
  import {
16
11
  pageNavigationTimeoutMs,
17
12
  windowsChromeCrashRemediation
18
- } from "./chunk-ENRFKCI6.js";
19
- import {
20
- oneProcessOverPipe
21
- } from "./chunk-DKPNNYBZ.js";
13
+ } from "./chunk-TDEORHFN.js";
22
14
  import {
23
15
  resolveCompositionViewportFromHtml
24
- } from "./chunk-ULL3U6PV.js";
16
+ } from "./chunk-BYZPLQSX.js";
17
+ import {
18
+ launchManagedBrowser,
19
+ resolveManagedGpuMode,
20
+ rethrowAfterBrowserCleanup
21
+ } from "./chunk-TGFDRZTM.js";
25
22
  import {
26
23
  resolveLocalBrowserGpuMode,
27
24
  resolveLocalWebGpu
28
- } from "./chunk-4LTBQEPD.js";
25
+ } from "./chunk-A2H5EJZM.js";
29
26
  import {
30
27
  c
31
28
  } from "./chunk-ZTZA4UWZ.js";
32
29
  import {
33
30
  assertWebGpuAdapterAvailable,
34
- compositionRequiresWebGpu
35
- } from "./chunk-MPO25DQW.js";
31
+ compositionRequiresWebGpu,
32
+ oneProcessOverPipe
33
+ } from "./chunk-I3PNZDKR.js";
36
34
  import {
37
35
  normalizeErrorMessage
38
- } from "./chunk-EU7MVORF.js";
36
+ } from "./chunk-E63BDV4Z.js";
39
37
 
40
38
  // src/capture/captureCompositionFrame.ts
41
39
  import { spawn } from "child_process";
@@ -140,7 +138,7 @@ async function waitForCompositionSettle(page, options) {
140
138
  console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
141
139
  });
142
140
  await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
143
- const { resolveConfig, waitForImagesReady } = await import("./src-6XOMREMS.js");
141
+ const { resolveConfig, waitForImagesReady } = await import("./src-PX3VIS7K.js");
144
142
  const imageTimeoutMs = resolveConfig().playerReadyTimeout;
145
143
  await waitForImagesReady(
146
144
  page,
@@ -189,7 +187,7 @@ async function installPageFunctionGuard(page) {
189
187
  async function openSettledCompositionPage(html, url, options) {
190
188
  const viewport = resolveCompositionViewportFromHtml(html);
191
189
  const requiresWebGpu = compositionRequiresWebGpu(html);
192
- const answer = (await import("./staticProjectServer-JYDDGPAH.js")).inProcessAnswer(url);
190
+ const answer = (await import("./staticProjectServer-ET7H5LMV.js")).inProcessAnswer(url);
193
191
  const noListen = answer !== void 0;
194
192
  let chromeBrowser;
195
193
  try {
@@ -200,7 +198,7 @@ async function openSettledCompositionPage(html, url, options) {
200
198
  options.onBrowserReady?.();
201
199
  const page = await chromeBrowser.newPage();
202
200
  await installPageFunctionGuard(page);
203
- const { installMediaRenderIdBridge } = await import("./src-6XOMREMS.js");
201
+ const { installMediaRenderIdBridge } = await import("./src-PX3VIS7K.js");
204
202
  await installMediaRenderIdBridge(page);
205
203
  await page.setViewport(viewport);
206
204
  if (answer) await answerPageInProcess(page, url, answer);
@@ -216,10 +214,10 @@ async function openSettledCompositionPage(html, url, options) {
216
214
  }
217
215
  async function launchCompositionBrowser(html, noListen, options) {
218
216
  const viewport = resolveCompositionViewportFromHtml(html);
219
- const { ensureBrowser, findSystemBrowser } = await import("./manager-Z7W4GQGF.js");
217
+ const { ensureBrowser, findSystemBrowser } = await import("./manager-LQXZTUTJ.js");
220
218
  const browser = await ensureBrowser({ signal: options.signal });
221
219
  const puppeteer = await import("puppeteer-core");
222
- const { buildChromeArgs } = await import("./src-6XOMREMS.js");
220
+ const { buildChromeArgs } = await import("./src-PX3VIS7K.js");
223
221
  const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
224
222
  const requiresWebGpu = compositionRequiresWebGpu(html);
225
223
  let softwareWebGpu = false;
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  refreshIfNeeded
9
- } from "./chunk-VYRJAQGC.js";
9
+ } from "./chunk-57QUPSP2.js";
10
10
  import {
11
11
  buildAuthHeaders,
12
12
  envCredentialVar,
13
13
  isAuthError,
14
14
  isTokenExpired,
15
15
  tryResolveCredential
16
- } from "./chunk-M4QZFUMW.js";
16
+ } from "./chunk-JHNBF2HD.js";
17
17
  import {
18
18
  rewriteSrcsetUrls
19
- } from "./chunk-BQMAPNDA.js";
19
+ } from "./chunk-QRC7IVBC.js";
20
20
  import {
21
21
  CSS_URL_RE,
22
22
  isNonRelativeUrl,
@@ -34,10 +34,10 @@ import {
34
34
  readConfig,
35
35
  telemetryRuntimeOverride,
36
36
  writeConfig
37
- } from "./chunk-NEASABW6.js";
37
+ } from "./chunk-P6EXMN5D.js";
38
38
  import {
39
39
  VERSION
40
- } from "./chunk-MW2NQQ6Z.js";
40
+ } from "./chunk-AG566TRI.js";
41
41
 
42
42
  // src/telemetry/transport.ts
43
43
  import { spawn } from "child_process";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-KGPLIH7B.js";
10
10
  import {
11
11
  normalizeErrorMessage
12
- } from "./chunk-EU7MVORF.js";
12
+ } from "./chunk-E63BDV4Z.js";
13
13
 
14
14
  // src/renderSetupWorkerLifecycle.ts
15
15
  var RENDER_SETUP_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
@@ -0,0 +1,106 @@
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
+ // ../core/dist/removeScratch.js
9
+ import { AsyncLocalStorage } from "async_hooks";
10
+ import { rmSync } from "fs";
11
+ var collecting = new AsyncLocalStorage();
12
+ function removeScratch(path) {
13
+ try {
14
+ rmSync(path, { recursive: true, force: true });
15
+ } catch {
16
+ collecting.getStore()?.push(path);
17
+ }
18
+ }
19
+ async function collectScratchLeftovers(run, report) {
20
+ const left = [];
21
+ try {
22
+ return await collecting.run(left, run);
23
+ } finally {
24
+ report(left);
25
+ }
26
+ }
27
+
28
+ // ../core/dist/renameWithRetry.js
29
+ import { copyFileSync, renameSync } from "fs";
30
+ import { copyFile, rename } from "fs/promises";
31
+ var RETRYABLE = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY"]);
32
+ var BACKOFF_MS = [10, 20, 40, 80, 160, 320, 640];
33
+ function isRetryable(error, platform) {
34
+ if (platform !== "win32")
35
+ return false;
36
+ return RETRYABLE.has(error?.code ?? "");
37
+ }
38
+ function nextStep(error, attempt, options, platform) {
39
+ if (!isRetryable(error, platform))
40
+ return "throw";
41
+ if (attempt < BACKOFF_MS.length)
42
+ return "wait";
43
+ return options.copyFallback ? "copy" : "throw";
44
+ }
45
+ function sleepSync(ms) {
46
+ Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
47
+ }
48
+ function renameWithRetry(from, to, options = {}) {
49
+ const doRename = options.rename ?? renameSync;
50
+ const doCopy = options.copy ?? copyFileSync;
51
+ const platform = options.platform ?? process.platform;
52
+ for (let attempt = 0; ; attempt++) {
53
+ try {
54
+ doRename(from, to);
55
+ return;
56
+ } catch (error) {
57
+ const step = nextStep(error, attempt, options, platform);
58
+ if (step === "throw")
59
+ throw error;
60
+ if (step === "wait") {
61
+ sleepSync(BACKOFF_MS[attempt]);
62
+ continue;
63
+ }
64
+ try {
65
+ doCopy(from, to);
66
+ } catch {
67
+ throw error;
68
+ }
69
+ removeScratch(from);
70
+ return;
71
+ }
72
+ }
73
+ }
74
+ async function renameWithRetryAsync(from, to, options = {}) {
75
+ const doRename = options.rename ?? rename;
76
+ const doCopy = options.copy ?? copyFile;
77
+ const platform = options.platform ?? process.platform;
78
+ for (let attempt = 0; ; attempt++) {
79
+ try {
80
+ await doRename(from, to);
81
+ return;
82
+ } catch (error) {
83
+ const step = nextStep(error, attempt, options, platform);
84
+ if (step === "throw")
85
+ throw error;
86
+ if (step === "wait") {
87
+ await new Promise((resolve) => setTimeout(resolve, BACKOFF_MS[attempt]));
88
+ continue;
89
+ }
90
+ try {
91
+ await doCopy(from, to);
92
+ } catch {
93
+ throw error;
94
+ }
95
+ removeScratch(from);
96
+ return;
97
+ }
98
+ }
99
+ }
100
+
101
+ export {
102
+ removeScratch,
103
+ collectScratchLeftovers,
104
+ renameWithRetry,
105
+ renameWithRetryAsync
106
+ };
@@ -7,12 +7,14 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  DEFAULT_VP9_CPU_USED,
9
9
  isHttpUrl,
10
- renameWithRetry,
11
10
  runFfmpeg
12
- } from "./chunk-MPO25DQW.js";
11
+ } from "./chunk-I3PNZDKR.js";
12
+ import {
13
+ renameWithRetry
14
+ } from "./chunk-XCIHCPJK.js";
13
15
  import {
14
16
  parseAnimatedGifMetadata
15
- } from "./chunk-QWBVPWUI.js";
17
+ } from "./chunk-5ZJGEQGS.js";
16
18
  import {
17
19
  parseHTML
18
20
  } from "./chunk-GWTIFRF5.js";
@@ -159,24 +159,29 @@ function loadInstalled(dir, name) {
159
159
  }
160
160
  function pinnedPackageBesideCli(name, cliUrl = import.meta.url) {
161
161
  const req = createRequire(cliUrl);
162
- try {
163
- let entry;
162
+ const pinnedFolder = (req.resolve.paths(name) ?? []).find(
163
+ (dir) => hasPinnedVersion(join(dir, name), name)
164
+ );
165
+ if (pinnedFolder === void 0) return null;
166
+ const copy = realpathSync(join(pinnedFolder, name));
167
+ const inside = (resolve) => {
164
168
  try {
165
- entry = realpathSync(req.resolve(name));
169
+ const entry2 = realpathSync(resolve());
170
+ return entry2.startsWith(copy + sep) ? entry2 : null;
166
171
  } catch {
167
- const copy2 = (req.resolve.paths(name) ?? []).map((dir) => join(dir, name)).find((dir) => existsSync(join(dir, "package.json")));
168
- return copy2 && hasPinnedVersion(copy2, name) ? { resolution: "package", path: realpathSync(copy2) } : null;
172
+ return null;
169
173
  }
170
- const copy = (req.resolve.paths(name) ?? []).map((dir) => join(dir, name)).find((dir) => existsSync(dir) && entry.startsWith(realpathSync(dir) + sep));
171
- if (!copy) return null;
172
- return hasPinnedVersion(copy, name) ? { resolution: "entry", path: entry } : null;
173
- } catch {
174
- return null;
175
- }
174
+ };
175
+ const entry = inside(() => createRequire(join(copy, "package.json")).resolve(name)) ?? inside(() => req.resolve(copy));
176
+ return entry ? { resolution: "entry", path: entry } : { resolution: "package", path: copy };
176
177
  }
177
178
  function hasPinnedVersion(copy, name) {
178
- const manifest = readFileSync(join(copy, "package.json"), "utf-8");
179
- return JSON.parse(manifest).version === PINNED_PACKAGES[name];
179
+ try {
180
+ const manifest = readFileSync(join(copy, "package.json"), "utf-8");
181
+ return JSON.parse(manifest).version === PINNED_PACKAGES[name];
182
+ } catch {
183
+ return false;
184
+ }
180
185
  }
181
186
  function loadBesideCli(name, cliUrl = import.meta.url) {
182
187
  const copy = pinnedPackageBesideCli(name, cliUrl);
@@ -11,8 +11,10 @@ import {
11
11
  failUsage
12
12
  } from "./chunk-JVBRJMOP.js";
13
13
  import {
14
- appendRateCapArgs
15
- } from "./chunk-MPO25DQW.js";
14
+ PRORES_PROFILE_NAMES,
15
+ appendRateCapArgs,
16
+ isProresProfile
17
+ } from "./chunk-I3PNZDKR.js";
16
18
 
17
19
  // src/utils/deliveryFlags.ts
18
20
  var deliveryFlagArgs = {
@@ -27,6 +29,10 @@ var deliveryFlagArgs = {
27
29
  "buffer-size": {
28
30
  type: "string",
29
31
  description: "Buffer for --max-bitrate, such as 16M (default: twice --max-bitrate)."
32
+ },
33
+ "prores-profile": {
34
+ type: "string",
35
+ description: `MOV ProRes profile: ${PRORES_PROFILE_NAMES.join(", ")} (default 4444, keeps alpha; the others drop it).`
30
36
  }
31
37
  };
32
38
  function parseDeliveryFlags(args) {
@@ -45,6 +51,17 @@ function parseDeliveryFlags(args) {
45
51
  }
46
52
  values.keyframeIntervalSeconds = seconds;
47
53
  }
54
+ const profile = args["prores-profile"]?.trim();
55
+ if (profile !== void 0) {
56
+ if (!isProresProfile(profile)) {
57
+ errorBox(
58
+ "Invalid prores-profile",
59
+ `Got "${profile}". Must be one of ${PRORES_PROFILE_NAMES.join(", ")}.`
60
+ );
61
+ failUsage();
62
+ }
63
+ values.proresProfile = profile;
64
+ }
48
65
  if (maxBitrate !== void 0) values.maxBitrate = maxBitrate;
49
66
  if (bufferSize !== void 0) values.bufferSize = bufferSize;
50
67
  try {
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  replaceFileAtomically
9
- } from "./chunk-EOVYQ3IG.js";
9
+ } from "./chunk-NQ2INEHX.js";
10
10
  import {
11
11
  realpath
12
12
  } from "./chunk-OFQWTKPW.js";