hyperframes 0.9.27 → 0.9.28-alpha.1

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 (261) hide show
  1. package/dist/{add-K5J5XWLL.js → add-YDZMFKR3.js} +14 -14
  2. package/dist/{agentPromptGenerator-PGIEEJLJ.js → agentPromptGenerator-AUXZZCIG.js} +7 -7
  3. package/dist/{animatedGifPrep-MLZOHCTS.js → animatedGifPrep-2DYVIBA4.js} +7 -7
  4. package/dist/api.js +39 -38
  5. package/dist/{asset-OS5AB3SQ.js → asset-JHM3VF72.js} +2 -2
  6. package/dist/{assetCataloger-DMVL5X2P.js → assetCataloger-2OB46SVM.js} +8 -8
  7. package/dist/{audio-23FMLVOJ.js → audio-T6YSLT2D.js} +25 -24
  8. package/dist/{auth-2DIXO5OO.js → auth-YSTRUKED.js} +4 -4
  9. package/dist/{autoUpdate-NP2CBKFP.js → autoUpdate-VYRYBZG6.js} +3 -3
  10. package/dist/{avatars-LULUZMLI.js → avatars-UU53IDAK.js} +16 -15
  11. package/dist/{backgroundChecks-3MXY6FNF.js → backgroundChecks-FNACAOZD.js} +4 -4
  12. package/dist/backgroundChecksWorker.js +4 -4
  13. package/dist/{batchRender-AL6DO5IA.js → batchRender-KWIPFU5Q.js} +4 -4
  14. package/dist/{beats-U4Q76QWK.js → beats-X2LCSMYD.js} +11 -11
  15. package/dist/{benchmark-QANZ2IRX.js → benchmark-4OB6M2FR.js} +11 -11
  16. package/dist/{billing-PX54B6T7.js → billing-DC6ODLSG.js} +16 -15
  17. package/dist/{browser-P36XPIWA.js → browser-PUJD4WCC.js} +8 -8
  18. package/dist/{bundleWithLocalizedFonts-QY6JAKLF.js → bundleWithLocalizedFonts-7HQEKW2H.js} +1 -1
  19. package/dist/{capture-ZZWXDUH2.js → capture-IGQR6HTG.js} +22 -22
  20. package/dist/{capture-S5DURUCT.js → capture-PUB5WBLQ.js} +3 -3
  21. package/dist/{captureCompositionFrame-VTN6VB5N.js → captureCompositionFrame-JT6HGVU7.js} +14 -14
  22. package/dist/{catalog-TTBH4Y6Z.js → catalog-5NC5EV6Z.js} +14 -14
  23. package/dist/{catch-up-M3CF57PU.js → catch-up-6RJNWB5I.js} +9 -9
  24. package/dist/{check-K7ZBDKBZ.js → check-FXZOPV3Y.js} +43 -44
  25. package/dist/{checkAudio-HZ3Z5BTZ.js → checkAudio-VSHZXO4J.js} +15 -15
  26. package/dist/{checkBrowser-TO5M2QL2.js → checkBrowser-EOSAXIHJ.js} +37 -37
  27. package/dist/{chunk-K6UG4VWT.js → chunk-2BSPL7YE.js} +3 -3
  28. package/dist/{chunk-5FWOWZAB.js → chunk-2Q3Y7CI3.js} +7 -7
  29. package/dist/{chunk-7JK2YE2G.js → chunk-36G3XDN6.js} +2 -2
  30. package/dist/chunk-37RCPDCR.js +173 -0
  31. package/dist/{chunk-FKSUSFRT.js → chunk-3BWFZFJK.js} +18 -18
  32. package/dist/{chunk-NFUXYBOR.js → chunk-3MYEF34S.js} +1 -1
  33. package/dist/{chunk-YU5QNJMA.js → chunk-3OKVZXTH.js} +2 -2
  34. package/dist/{chunk-ZUXES5HA.js → chunk-3Q7LAXFJ.js} +2 -2
  35. package/dist/{chunk-F24B2PLD.js → chunk-3T6BFAKZ.js} +1 -1
  36. package/dist/{chunk-FNSWA4FK.js → chunk-44LVKFXU.js} +1 -1
  37. package/dist/{chunk-M3UU4QRH.js → chunk-4J2J57RS.js} +3 -3
  38. package/dist/{chunk-JLUOG6S2.js → chunk-4OZVFZCO.js} +1 -1
  39. package/dist/{chunk-KUBXGMHI.js → chunk-4TU5M4WX.js} +28 -30
  40. package/dist/chunk-4UBGQTAT.js +387 -0
  41. package/dist/{chunk-LI2TX7SN.js → chunk-4XGKXBYH.js} +2 -2
  42. package/dist/{chunk-XZ2MQF7V.js → chunk-5ROYFGQT.js} +1 -1
  43. package/dist/{chunk-W5QBSRPF.js → chunk-5YDJTVOQ.js} +2 -2
  44. package/dist/{chunk-YNIADMNZ.js → chunk-63PVDQ6R.js} +2 -2
  45. package/dist/{chunk-L2GOO2UY.js → chunk-6ODX6SHY.js} +2 -2
  46. package/dist/{chunk-2WKG7HXZ.js → chunk-6RHKGQRA.js} +2 -2
  47. package/dist/{chunk-STQGPDO4.js → chunk-6UJOLK4G.js} +2 -2
  48. package/dist/{chunk-TKFKOWRI.js → chunk-7D4PARGG.js} +6 -6
  49. package/dist/{chunk-6PHVIKCJ.js → chunk-7GZ4E5ID.js} +4 -4
  50. package/dist/{chunk-MVJ7AX6W.js → chunk-7U2B7OF6.js} +1 -1
  51. package/dist/{chunk-V4Z37HFN.js → chunk-7XHVHBFV.js} +3 -3
  52. package/dist/{chunk-IOPIOX5K.js → chunk-AAENGP3S.js} +16 -66
  53. package/dist/{chunk-LMCFILEY.js → chunk-AHRX3FHF.js} +3 -3
  54. package/dist/{chunk-U5RXCKWJ.js → chunk-AJVYQVDB.js} +1 -1
  55. package/dist/{chunk-TRXIWZTM.js → chunk-ALCP5OEW.js} +1 -1
  56. package/dist/{chunk-6LCIO2YY.js → chunk-BP75ZLZ5.js} +2 -2
  57. package/dist/{chunk-5ZEBQO7Y.js → chunk-C6S2NYQ4.js} +4 -4
  58. package/dist/{chunk-TM6HH2VV.js → chunk-CE765XG3.js} +1 -1
  59. package/dist/{chunk-PBDBD4BY.js → chunk-CG65CRMP.js} +2 -2
  60. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  61. package/dist/{chunk-LLLNVEUF.js → chunk-COAB2OXQ.js} +1 -1
  62. package/dist/{chunk-5WI3VKQW.js → chunk-DFKD43CD.js} +3 -3
  63. package/dist/chunk-DGXKMYIX.js +343 -0
  64. package/dist/{chunk-Y67RJDEB.js → chunk-FF25S7ZC.js} +1 -1
  65. package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
  66. package/dist/{chunk-F4ROYQPH.js → chunk-FZUIGBYD.js} +3 -3
  67. package/dist/{chunk-CGUAZCPL.js → chunk-GNG7XNUY.js} +15 -15
  68. package/dist/{chunk-7VHSPFBH.js → chunk-GTZVTATR.js} +1 -1
  69. package/dist/{chunk-ZGIPMCML.js → chunk-GVBAVADJ.js} +1 -1
  70. package/dist/{chunk-DC5ZRTHD.js → chunk-HPR2BPFS.js} +2 -2
  71. package/dist/{chunk-IX3K55NA.js → chunk-HW325JBH.js} +4 -4
  72. package/dist/{chunk-HGHBQDM5.js → chunk-IADGTP5X.js} +3 -3
  73. package/dist/{chunk-OSDNRYQJ.js → chunk-IMSLXLUI.js} +1 -1
  74. package/dist/{chunk-GQTNVE7U.js → chunk-J5CDV66Q.js} +4 -4
  75. package/dist/chunk-JE2YBPC5.js +152 -0
  76. package/dist/{chunk-YSJKA52M.js → chunk-JHSHEJU7.js} +2 -2
  77. package/dist/{chunk-J237HI2F.js → chunk-JX4BEVC3.js} +29 -41
  78. package/dist/{chunk-BZFVS36G.js → chunk-KCRVZA7B.js} +1 -1
  79. package/dist/{chunk-NURN5W6M.js → chunk-KJ5QBEMN.js} +8 -6
  80. package/dist/{chunk-RVXE24LQ.js → chunk-L666J5OJ.js} +2 -2
  81. package/dist/{chunk-6NVZYXDT.js → chunk-LSSUDIEM.js} +5 -5
  82. package/dist/{chunk-6FHIR4KD.js → chunk-ME6L6GUF.js} +1 -1
  83. package/dist/{chunk-BJYCLZBQ.js → chunk-MEVLYDL2.js} +1 -1
  84. package/dist/{chunk-D5QT3ORV.js → chunk-MPC3L6A3.js} +1 -1
  85. package/dist/{chunk-TMYY4DV4.js → chunk-MWBRY5HN.js} +3 -3
  86. package/dist/{chunk-QTBRVJ6N.js → chunk-N5TVFPYQ.js} +1 -1
  87. package/dist/{chunk-5TD7HBR3.js → chunk-NHRLZESZ.js} +1 -1
  88. package/dist/{chunk-IIS57Z3R.js → chunk-NVNKKVDH.js} +2 -2
  89. package/dist/{chunk-QISOTHEQ.js → chunk-O2JZ6C3S.js} +7 -7
  90. package/dist/{chunk-WZTOPKVO.js → chunk-OJ5HAKL6.js} +7 -7
  91. package/dist/{chunk-5AULMCSV.js → chunk-OPGYOHU6.js} +2 -2
  92. package/dist/chunk-OUOZGJJF.js +538 -0
  93. package/dist/{chunk-V6EVV3XC.js → chunk-PSGS27VB.js} +2 -2
  94. package/dist/chunk-Q5JJDC2L.js +51 -0
  95. package/dist/{chunk-RYT22J4V.js → chunk-Q6TVZY36.js} +2 -2
  96. package/dist/chunk-QABQKJPY.js +3761 -0
  97. package/dist/{chunk-RSNZEWNW.js → chunk-QB2USW3R.js} +1 -1
  98. package/dist/{chunk-5PL4LZYF.js → chunk-QKAXPYTV.js} +12 -12
  99. package/dist/{chunk-4N3UVDIJ.js → chunk-QTDTCTGB.js} +6 -4
  100. package/dist/{chunk-SODLRBNC.js → chunk-R6PUBUA4.js} +1 -1
  101. package/dist/{chunk-NHJ5YUBZ.js → chunk-RERVXE6J.js} +2 -2
  102. package/dist/{chunk-GGDJLN5I.js → chunk-SCPMSSQW.js} +20 -0
  103. package/dist/{chunk-CZ43ZZFS.js → chunk-STTUDVAI.js} +1 -1
  104. package/dist/{chunk-QYPS3UYP.js → chunk-SXGLW3OW.js} +3 -3
  105. package/dist/{chunk-TCQKCUDA.js → chunk-TF7VWCJM.js} +1 -1
  106. package/dist/{chunk-NMOWXTCB.js → chunk-TLVXCOMV.js} +2 -2
  107. package/dist/{chunk-Z5THPTQ2.js → chunk-TYPFNWE6.js} +1 -1
  108. package/dist/{chunk-ZNTYIJ5K.js → chunk-UYVQDKGC.js} +1 -1
  109. package/dist/{chunk-DJVSNDF3.js → chunk-VSQ5NWCF.js} +3 -3
  110. package/dist/{chunk-6IMVGVA4.js → chunk-VYEPG2N6.js} +1 -1
  111. package/dist/{chunk-UPG4MMIA.js → chunk-W3XARNFW.js} +1 -1
  112. package/dist/{chunk-BZULWFMJ.js → chunk-W4DMQZL5.js} +2 -11
  113. package/dist/{chunk-ZDQNMNFE.js → chunk-WCPH2JRB.js} +9 -9
  114. package/dist/{chunk-QBNHYXV3.js → chunk-WFO2PDZD.js} +11 -9
  115. package/dist/{chunk-IYYZMZD2.js → chunk-WIJGRX5X.js} +1 -1
  116. package/dist/{chunk-SCNC7YPB.js → chunk-WOSVLHQH.js} +1 -1
  117. package/dist/{chunk-M457GQGR.js → chunk-WXEXQLVV.js} +216 -344
  118. package/dist/{chunk-IQKMIYLG.js → chunk-WYA575QX.js} +7 -5
  119. package/dist/{chunk-UXJAMAZK.js → chunk-XFE4R6I4.js} +1 -1
  120. package/dist/{chunk-3JFV42QB.js → chunk-XGRXNWDK.js} +3 -3
  121. package/dist/{chunk-V7Q4XKRJ.js → chunk-XHP3V4WH.js} +9 -5
  122. package/dist/{chunk-Q73OZV2V.js → chunk-XLX7TDCI.js} +17 -17
  123. package/dist/{chunk-YPRU66CC.js → chunk-XOON4QRF.js} +1 -1
  124. package/dist/{chunk-2SX2EOPM.js → chunk-YFDCU6X5.js} +6 -6
  125. package/dist/{chunk-VXWASGGT.js → chunk-YJBGA3W6.js} +2 -2
  126. package/dist/{chunk-OT2KF34N.js → chunk-YSIDK3VE.js} +12 -12
  127. package/dist/{chunk-INVBU7DY.js → chunk-ZMQYQHZU.js} +1 -1
  128. package/dist/{clean-LCQH4HFU.js → clean-5WXYKIWX.js} +22 -22
  129. package/dist/cli.js +69 -67
  130. package/dist/{cloud-QJMPTQ3N.js → cloud-TEJ6UVBU.js} +6 -5
  131. package/dist/{cloud-34YHQNNB.js → cloud-X2ZPQOFN.js} +4 -4
  132. package/dist/{cloudrun-T7VVPRDG.js → cloudrun-A7DU7DQE.js} +7 -7
  133. package/dist/{compare-5EBDE5ZT.js → compare-URG6E3VF.js} +35 -35
  134. package/dist/{compiler-ZSIKBZBR.js → compiler-J43BE6LC.js} +4 -4
  135. package/dist/{component-7TIFLFYC.js → component-BE2ZLBPY.js} +3 -3
  136. package/dist/{compositions-TLCEVGBC.js → compositions-DJPSPCYI.js} +13 -13
  137. package/dist/contract/LICENSE-Unicode.txt +39 -0
  138. package/dist/contract/path-policy.json +311 -0
  139. package/dist/contract/unicode-15.1.0.json +6179 -0
  140. package/dist/{curve-YABHYRHK.js → curve-I6CGCMG5.js} +12 -12
  141. package/dist/{cuts-UFRBSLDQ.js → cuts-TRTRMTCZ.js} +13 -13
  142. package/dist/{delete-5OABQGPL.js → delete-UMO7XCW3.js} +9 -8
  143. package/dist/{deploy-2OYZWP74.js → deploy-T2CETGFF.js} +6 -6
  144. package/dist/{describeProject-TX2WQLQ5.js → describeProject-AJ2SFRCN.js} +8 -8
  145. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-UZIF5XZW.js} +2 -2
  146. package/dist/{diff-2CKZ2QR7.js → diff-KCVI66ZW.js} +40 -39
  147. package/dist/{dist-EFXKPJJT.js → dist-4JHP47NU.js} +2 -2
  148. package/dist/{dist-O45G7NET.js → dist-AUYCAQMA.js} +14 -14
  149. package/dist/{dist-QRXJMFI7.js → dist-F3Y2XHZL.js} +3 -3
  150. package/dist/{doctor-Y436MAQR.js → doctor-UTIGHYSY.js} +12 -12
  151. package/dist/{energy-UKLKTH7A.js → energy-PJUDIY2I.js} +13 -13
  152. package/dist/{events-NKRFVAY3.js → events-HI2WDYGV.js} +4 -4
  153. package/dist/{events-MC5XLD2Z.js → events-P6Q6GB6K.js} +8 -8
  154. package/dist/{events-73W2IO3W.js → events-ZMFIRGW4.js} +15 -15
  155. package/dist/execute-AUPUAYPW.js +109 -0
  156. package/dist/{extract-ZG3MHNYX.js → extract-4RYOD7LZ.js} +16 -16
  157. package/dist/{face-CFBT42SW.js → face-X3DR3L7V.js} +14 -14
  158. package/dist/{feedback-QGDEE3RB.js → feedback-WOE25OSG.js} +15 -14
  159. package/dist/{ffmpeg-UXHRG3MW.js → ffmpeg-N3LZ7XBX.js} +7 -7
  160. package/dist/{figma-BD7RROGK.js → figma-VPG54R3O.js} +3 -3
  161. package/dist/fontLocalizeCli.js +13 -13
  162. package/dist/{frames-ZF756HF3.js → frames-VNQ5P43E.js} +14 -14
  163. package/dist/{generate-LEUO4VVQ.js → generate-ZCTFKNNW.js} +27 -26
  164. package/dist/{get-4BL6VXKX.js → get-K374EYQS.js} +9 -8
  165. package/dist/{gpuPolicy-K2JHXORZ.js → gpuPolicy-SAEOR4QY.js} +7 -7
  166. package/dist/{grade-compare-4UBZJQ7F.js → grade-compare-UHNGFSNR.js} +37 -37
  167. package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-5YD4N6HQ.js} +1 -1
  168. package/dist/{heifImagePrep-O2WGVMAP.js → heifImagePrep-R7NDS5FP.js} +8 -8
  169. package/dist/{help-M55BSV4I.js → help-6DADTB2R.js} +1 -1
  170. package/dist/{history-UIQBTMXZ.js → history-2K4FPC4P.js} +11 -11
  171. package/dist/hyperframes-player.global.js +1 -1
  172. package/dist/{info-X4VTZ7PT.js → info-7NZB6ZUO.js} +15 -15
  173. package/dist/{init-3Y5XMH6I.js → init-UVGSTDBD.js} +29 -29
  174. package/dist/{ink-QKIGMWUR.js → ink-3GBOCKAV.js} +13 -13
  175. package/dist/{inspect-BUKYJF6N.js → inspect-XWAQWM2Y.js} +34 -34
  176. package/dist/{installer-VPGNKCEU.js → installer-AJESSC5Y.js} +5 -5
  177. package/dist/{keyframes-6HO56WZG.js → keyframes-7C6LAP5V.js} +12 -15
  178. package/dist/{lambda-XDVNHACQ.js → lambda-Y2BEBCDQ.js} +13 -13
  179. package/dist/{layout-WELYAXO3.js → layout-Z35EOSYQ.js} +34 -34
  180. package/dist/{lint-6R3E6Q5V.js → lint-QU5JDQX3.js} +12 -12
  181. package/dist/{lintProject-5CBL7VFV.js → lintProject-Z6TG3Z34.js} +2 -2
  182. package/dist/{list-SIL4TALK.js → list-6KUDG4X7.js} +11 -10
  183. package/dist/{localPage-6VW25RGJ.js → localPage-SM5JBV4M.js} +7 -7
  184. package/dist/{login-3AFKZLIK.js → login-XCR35XUC.js} +8 -7
  185. package/dist/{logout-FJ444652.js → logout-AHGR3X5U.js} +6 -4
  186. package/dist/{look-RYLQYXNN.js → look-O452Y7XO.js} +13 -13
  187. package/dist/{manager-T4ZHIMMY.js → manager-GCFCVNYS.js} +8 -8
  188. package/dist/{measure-XUK4GNAC.js → measure-D54QYN6X.js} +11 -11
  189. package/dist/{media-treatment-SR5TX7CH.js → media-treatment-LPL2SZ7W.js} +15 -15
  190. package/dist/{media-use-3LOSIEZM.js → media-use-VL2EL53W.js} +9 -7
  191. package/dist/{models-5SPPZN2E.js → models-YFFUQ757.js} +11 -11
  192. package/dist/{motionShot-IFAFFPZF.js → motionShot-QHWXLUJM.js} +19 -19
  193. package/dist/{normalize-audio-LQDUTXFM.js → normalize-audio-72PTXCD7.js} +11 -11
  194. package/dist/oauth-KUPQUH6E.js +40 -0
  195. package/dist/{open-XX2L2YSZ.js → open-BLPP4OPX.js} +14 -14
  196. package/dist/{parakeetRunner-R5WK6AJN.js → parakeetRunner-3A66RNGS.js} +13 -13
  197. package/dist/{pipeline-NMCWG5AA.js → pipeline-BFMEIMNZ.js} +10 -10
  198. package/dist/plan-2MKSJEUW.js +88 -0
  199. package/dist/{play-Q2AYSHPW.js → play-KG2B7KMX.js} +26 -26
  200. package/dist/{preflight-WG2O5KUQ.js → preflight-YNGNNHZC.js} +8 -8
  201. package/dist/{present-AOU7HG3N.js → present-WGQEDRXJ.js} +21 -21
  202. package/dist/{preview-PMGF6AQB.js → preview-JM6GYVIL.js} +23 -23
  203. package/dist/{probe-SESDMQ4Q.js → probe-B5H6PBIG.js} +13 -13
  204. package/dist/{producer-TGF2N7GF.js → producer-QIHOQ53I.js} +1 -1
  205. package/dist/{projectConfig-UHYPGWD5.js → projectConfig-GJL2ZGOU.js} +7 -7
  206. package/dist/{publication-5KOANEHK.js → publication-BLLVTVD6.js} +3 -3
  207. package/dist/{publish-C3ARXH6D.js → publish-CYPJA7T7.js} +83 -23
  208. package/dist/{refresh-YY4K2RWR.js → refresh-TB4TNH7R.js} +4 -3
  209. package/dist/{remove-background-ZHAYTN7D.js → remove-background-MHKW4EBR.js} +11 -11
  210. package/dist/{render-UNWC5ZIO.js → render-F35USXZA.js} +45 -44
  211. package/dist/{render-XYWARHW5.js → render-RTPE3OBI.js} +316 -934
  212. package/dist/{render-TSV3XTQV.js → render-RUEXLOWE.js} +6 -6
  213. package/dist/{render-batch-ISMXAG7F.js → render-batch-QFGQD5FM.js} +6 -6
  214. package/dist/renderSetupWorker.js +2 -2
  215. package/dist/{resolver-ZWNLOG6O.js → resolver-HQIDF3TF.js} +5 -5
  216. package/dist/{reverse-Q76RJRN5.js → reverse-BEQHRYSZ.js} +1 -1
  217. package/dist/{run-UPKPPRV7.js → run-EVZGKUEX.js} +5 -4
  218. package/dist/{screenshotCapture-N6BXDAMK.js → screenshotCapture-4NDEWYCU.js} +8 -8
  219. package/dist/service-XCT7W4PQ.js +68 -0
  220. package/dist/share-KRKP6VYV.js +241 -0
  221. package/dist/{sherpa-5YE5FIOR.js → sherpa-MNU3ORFR.js} +12 -12
  222. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  223. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  224. package/dist/{skills-U4NHFYH4.js → skills-3R6EC5PV.js} +11 -11
  225. package/dist/{skillsUpdateCheck-XJA6VEZZ.js → skillsUpdateCheck-TRRXLL46.js} +4 -4
  226. package/dist/{snapshot-V4BSRUXI.js → snapshot-BYNK523M.js} +48 -50
  227. package/dist/{src-JVYKW7RE.js → src-EZMBCQBY.js} +12 -12
  228. package/dist/{src-FNXCLKWN.js → src-FZ4EJHOK.js} +6 -6
  229. package/dist/{start-TSIACBUA.js → start-FRPRXMEN.js} +25 -24
  230. package/dist/{staticProjectServer-NTSNYFWQ.js → staticProjectServer-FF6IBUD6.js} +19 -19
  231. package/dist/{status-53Z4YLQ7.js → status-QZ7PKGAJ.js} +20 -18
  232. package/dist/studio/assets/{codec-YP1ZxmPt.js → codec-DqodFzhT.js} +1 -1
  233. package/dist/studio/assets/{hyperframes-player-Cy3KqtCh.js → hyperframes-player-D03oERxc.js} +1 -1
  234. package/dist/studio/assets/{index-C4B6p8IF.js → index-9kcxLnm3.js} +1 -1
  235. package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
  236. package/dist/studio/assets/{index-BNTUBT5h.js → index-DuOvEv27.js} +184 -184
  237. package/dist/studio/assets/{pausedVideoDecoder-52lsHc7p.js → pausedVideoDecoder-pYFINB0c.js} +1 -1
  238. package/dist/studio/index.html +2 -2
  239. package/dist/{studio-api-2I44WB4P.js → studio-api-RBURPKYX.js} +14 -14
  240. package/dist/{studioServer-HSYYGQU3.js → studioServer-YZDNK3AO.js} +434 -83
  241. package/dist/{sync-B2HPDX37.js → sync-6MHJVU4M.js} +13 -13
  242. package/dist/{telemetry-L4KX6ADA.js → telemetry-CLB2O4ZK.js} +8 -8
  243. package/dist/{templates-MKR4FTPR.js → templates-HFQXIAO2.js} +19 -18
  244. package/dist/{timeline-VDFI4ABH.js → timeline-ORRCS7NO.js} +21 -21
  245. package/dist/{tokens-XYVGSKDY.js → tokens-OTBA5VQ3.js} +2 -2
  246. package/dist/{transcribe-3QGLLMEQ.js → transcribe-EMXH7CGF.js} +10 -10
  247. package/dist/{transcribe-A7QZYVNX.js → transcribe-PJIFWND6.js} +29 -28
  248. package/dist/{tts-HOZ6X3MD.js → tts-NANTORLP.js} +1 -1
  249. package/dist/{update-AWSCA73T.js → update-RT6R53XR.js} +12 -12
  250. package/dist/{updateCheck-ATDIIE24.js → updateCheck-LSLLTUFX.js} +3 -3
  251. package/dist/{upgrade-RJNDUCWP.js → upgrade-SSPKJYOW.js} +4 -4
  252. package/dist/{urlDownloader-RE6IIDWK.js → urlDownloader-FTYUJP2D.js} +6 -6
  253. package/dist/{validate-YWO6GA5Q.js → validate-SN2JDYNN.js} +28 -28
  254. package/dist/{video-RKEUBWJI.js → video-Z522PCEM.js} +8 -8
  255. package/dist/{voices-GESP52KZ.js → voices-AQWUK6GK.js} +24 -23
  256. package/dist/warmCheck.js +43 -44
  257. package/package.json +2 -1
  258. package/dist/chunk-63HHKYU2.js +0 -413
  259. package/dist/chunk-XDKEKXV4.js +0 -29
  260. package/dist/{destroy-YAMTVR2W.js → destroy-IWHFUGJL.js} +4 -4
  261. package/dist/{synthesize-MDW4ZWTN.js → synthesize-NJKCIPKW.js} +5 -5
@@ -4,51 +4,41 @@ 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
- deliveryFlagArgs,
9
- parseDeliveryFlags
10
- } from "./chunk-5TD7HBR3.js";
11
- import {
12
- hasExplicitCompositionArg,
13
- resolveCompositionEntryArg
14
- } from "./chunk-J3X2RZON.js";
15
- import {
16
- parseEnumFlag
17
- } from "./chunk-U46YQL7E.js";
18
7
  import {
19
8
  maybePromptRenderFeedback
20
- } from "./chunk-HGHBQDM5.js";
21
- import {
22
- reportVariableIssues,
23
- resolveVariablesArg,
24
- validateVariablesAgainstProject
25
- } from "./chunk-ZUXES5HA.js";
26
- import "./chunk-ZBAF6L74.js";
9
+ } from "./chunk-IADGTP5X.js";
27
10
  import {
28
- RenderLockBusy,
29
- RenderLockStaleBreak,
30
- RenderLockUnwritable,
31
- acquireRenderLock,
32
- describeRenderLockHolder,
33
11
  renderJobObservabilityTelemetryPayload,
34
12
  startRenderCpuSampler
35
- } from "./chunk-63HHKYU2.js";
36
- import {
37
- formatLintStartupMessage
38
- } from "./chunk-B4TLQLGI.js";
13
+ } from "./chunk-37RCPDCR.js";
39
14
  import {
40
15
  desktopHint
41
- } from "./chunk-VXWASGGT.js";
16
+ } from "./chunk-YJBGA3W6.js";
42
17
  import {
43
18
  runEnvironmentChecks
44
- } from "./chunk-QTBRVJ6N.js";
45
- import "./chunk-54FVSPRH.js";
19
+ } from "./chunk-N5TVFPYQ.js";
46
20
  import {
47
- makeOutputFolder
48
- } from "./chunk-3S27CPV7.js";
21
+ executeRenderPlan,
22
+ renderLintContinuationHint,
23
+ runRenderLint
24
+ } from "./chunk-4UBGQTAT.js";
25
+ import "./chunk-B4TLQLGI.js";
26
+ import "./chunk-3Q7LAXFJ.js";
27
+ import {
28
+ createRenderPlan,
29
+ resolveBrowserGpuForCli
30
+ } from "./chunk-OUOZGJJF.js";
31
+ import "./chunk-J3X2RZON.js";
32
+ import "./chunk-U46YQL7E.js";
33
+ import {
34
+ deliveryFlagArgs
35
+ } from "./chunk-NHRLZESZ.js";
36
+ import "./chunk-ZBAF6L74.js";
37
+ import "./chunk-54FVSPRH.js";
38
+ import "./chunk-3S27CPV7.js";
49
39
  import {
50
40
  createRenderCancellationScope
51
- } from "./chunk-D5QT3ORV.js";
41
+ } from "./chunk-MPC3L6A3.js";
52
42
  import {
53
43
  H264EncoderUnavailableError,
54
44
  chromeLaunchRemediation,
@@ -56,44 +46,39 @@ import {
56
46
  findFFmpeg,
57
47
  findFFprobe,
58
48
  getFFmpegInstallHint
59
- } from "./chunk-CZ43ZZFS.js";
49
+ } from "./chunk-STTUDVAI.js";
60
50
  import {
61
51
  markRenderSucceeded,
62
52
  runPostRenderStep,
63
53
  runPostRenderStepAsync
64
- } from "./chunk-C5JKRCSG.js";
54
+ } from "./chunk-CHCMXYER.js";
65
55
  import {
66
56
  RenderQualityError,
67
57
  extractSafeRenderErrorCode
68
- } from "./chunk-5PL4LZYF.js";
69
- import "./chunk-JLUOG6S2.js";
70
- import "./chunk-5AULMCSV.js";
71
- import "./chunk-IIS57Z3R.js";
58
+ } from "./chunk-QKAXPYTV.js";
72
59
  import "./chunk-X7MTZ4T2.js";
73
- import "./chunk-BZ56MTDX.js";
60
+ import "./chunk-4OZVFZCO.js";
74
61
  import "./chunk-FI4I7CME.js";
62
+ import "./chunk-OPGYOHU6.js";
63
+ import "./chunk-NVNKKVDH.js";
64
+ import "./chunk-BZ56MTDX.js";
75
65
  import {
76
- captureArtifactRevision
77
- } from "./chunk-XDKEKXV4.js";
78
- import "./chunk-7VHSPFBH.js";
66
+ alive,
67
+ captureArtifactRevision,
68
+ readHolder,
69
+ release
70
+ } from "./chunk-SCPMSSQW.js";
71
+ import "./chunk-GTZVTATR.js";
79
72
  import "./chunk-X7MTZ4T2.js";
80
- import {
81
- loadProducer
82
- } from "./chunk-RSNZEWNW.js";
83
- import "./chunk-GGDJLN5I.js";
84
- import {
85
- resolveProject
86
- } from "./chunk-ZNTYIJ5K.js";
87
73
  import {
88
74
  windowsChromeCrashRemediation
89
75
  } from "./chunk-262C25DQ.js";
90
76
  import {
91
- parseGifLoopArg,
92
- parseHlsSegmentSecondsArg,
93
- resolveBrowserTimeoutMsArg,
94
- resolveDefaultFpsArg
95
- } from "./chunk-M3UU4QRH.js";
96
- import "./chunk-U5RXCKWJ.js";
77
+ loadProducer
78
+ } from "./chunk-QB2USW3R.js";
79
+ import "./chunk-UYVQDKGC.js";
80
+ import "./chunk-4J2J57RS.js";
81
+ import "./chunk-AJVYQVDB.js";
97
82
  import "./chunk-3L2POG2J.js";
98
83
  import {
99
84
  recordRenderSuccess,
@@ -110,19 +95,15 @@ import {
110
95
  } from "./chunk-FGFVUKPP.js";
111
96
  import "./chunk-EHZESMRB.js";
112
97
  import {
113
- loadProjectConfig,
114
- readProjectConfigWithStatus,
115
98
  seedProjectAuthoringSkill
116
- } from "./chunk-IYYZMZD2.js";
99
+ } from "./chunk-WIJGRX5X.js";
117
100
  import "./chunk-XT7X6QCP.js";
118
101
  import "./chunk-FRBQ3FIM.js";
119
- import {
120
- normalizeSkillSlug
121
- } from "./chunk-HVW7ABXD.js";
122
- import "./chunk-6FHIR4KD.js";
102
+ import "./chunk-HVW7ABXD.js";
103
+ import "./chunk-ME6L6GUF.js";
123
104
  import "./chunk-JHOCK3DG.js";
124
- import "./chunk-3JFV42QB.js";
125
- import "./chunk-MVJ7AX6W.js";
105
+ import "./chunk-XGRXNWDK.js";
106
+ import "./chunk-7U2B7OF6.js";
126
107
  import "./chunk-AWDFDFI3.js";
127
108
  import "./chunk-P6LJ4Y32.js";
128
109
  import "./chunk-D3UCUI7G.js";
@@ -131,13 +112,12 @@ import {
131
112
  renderMotionBlurTelemetryPayload,
132
113
  trackRenderComplete,
133
114
  trackRenderError,
134
- trackRenderObservation,
135
- trackRenderPreflightRejected
136
- } from "./chunk-LI2TX7SN.js";
137
- import "./chunk-7JK2YE2G.js";
115
+ trackRenderObservation
116
+ } from "./chunk-4XGKXBYH.js";
117
+ import "./chunk-36G3XDN6.js";
138
118
  import "./chunk-PXVQOMKL.js";
139
119
  import "./chunk-MCDNAIFF.js";
140
- import "./chunk-LP7B3JLC.js";
120
+ import "./chunk-FID757D3.js";
141
121
  import {
142
122
  defineCommand
143
123
  } from "./chunk-DL4OD7IA.js";
@@ -153,57 +133,41 @@ import "./chunk-ZB2XGJSP.js";
153
133
  import {
154
134
  CaptureFailure,
155
135
  EXTRACT_CACHE_DIR_DISABLED_ALIASES,
156
- MAX_VP9_CPU_USED,
157
- MIN_VP9_CPU_USED,
158
- PRORES_PROFILES,
159
- REFERENCE_BACKGROUND_FIELD,
160
136
  audioFailureDiagnostics,
161
- isVideoFrameFormat,
162
- referenceBackgroundResult,
163
137
  sandboxDeniedRemediation
164
- } from "./chunk-V7Q4XKRJ.js";
138
+ } from "./chunk-XHP3V4WH.js";
165
139
  import "./chunk-Z5J67X44.js";
166
140
  import "./chunk-5S7W3TUO.js";
167
141
  import "./chunk-D3MUHMFG.js";
168
- import "./chunk-NHJ5YUBZ.js";
169
- import "./chunk-IEXRKKHC.js";
142
+ import "./chunk-RERVXE6J.js";
143
+ import {
144
+ createFileAtomically
145
+ } from "./chunk-IEXRKKHC.js";
170
146
  import "./chunk-3GXQPCJC.js";
171
147
  import {
172
- DISTRIBUTED_FPS,
173
- formatRenderOutputTimestamp,
174
148
  fpsToFfmpegArg,
175
- fpsToNumber,
176
- isDistributedFps,
177
- parseFps
178
- } from "./chunk-RYT22J4V.js";
149
+ fpsToNumber
150
+ } from "./chunk-Q6TVZY36.js";
179
151
  import "./chunk-FXMKHHPO.js";
180
- import "./chunk-F24B2PLD.js";
152
+ import "./chunk-3T6BFAKZ.js";
181
153
  import "./chunk-VC76R6W2.js";
182
154
  import "./chunk-OFQWTKPW.js";
183
155
  import "./chunk-RQVDTPGD.js";
184
156
  import "./chunk-BMDABBHG.js";
185
157
  import {
186
- killOrphanedProcessesForRender
158
+ killOrphanedProcessesForRender,
159
+ processIdentity
187
160
  } from "./chunk-PV4XID2A.js";
188
- import {
189
- runRenderSetupWorker
190
- } from "./chunk-X6JUUQCM.js";
191
- import {
192
- hasDefinitiveEntryMismatch
193
- } from "./chunk-Q5X2B5WT.js";
161
+ import "./chunk-X6JUUQCM.js";
162
+ import "./chunk-Q5X2B5WT.js";
194
163
  import "./chunk-KGPLIH7B.js";
195
164
  import {
196
165
  bytesToMb
197
166
  } from "./chunk-FOZBANEN.js";
198
167
  import "./chunk-K4MJX7SR.js";
199
168
  import "./chunk-WE42NVH7.js";
200
- import {
201
- lintProject,
202
- shouldBlockRender
203
- } from "./chunk-DJVSNDF3.js";
204
- import {
205
- collectSubCompositionSrcs
206
- } from "./chunk-WVRAFHJU.js";
169
+ import "./chunk-VSQ5NWCF.js";
170
+ import "./chunk-WVRAFHJU.js";
207
171
  import {
208
172
  FFMPEG_PATH_ENV
209
173
  } from "./chunk-HYRPH6LL.js";
@@ -211,17 +175,17 @@ import "./chunk-FBN2M2HK.js";
211
175
  import "./chunk-6MKM2RVL.js";
212
176
  import {
213
177
  checkOutputResolutionCompatibility,
214
- isAspectAgnosticResolutionAlias,
215
- normalizeResolutionFlag,
216
178
  suggestMatchingPreset
217
- } from "./chunk-IOPIOX5K.js";
179
+ } from "./chunk-AAENGP3S.js";
218
180
  import "./chunk-FR7YBU3H.js";
219
181
  import "./chunk-DPVXBVLL.js";
220
182
  import "./chunk-GWTIFRF5.js";
221
183
  import "./chunk-2RY2LWAA.js";
222
184
  import "./chunk-WC4MTXGN.js";
223
185
  import "./chunk-EPQC3FGZ.js";
224
- import "./chunk-JOQR4AP6.js";
186
+ import {
187
+ hyperframesCacheDir
188
+ } from "./chunk-JOQR4AP6.js";
225
189
  import "./chunk-BR2JQQC5.js";
226
190
  import {
227
191
  readConfigFresh,
@@ -233,20 +197,18 @@ import {
233
197
  import {
234
198
  isDevMode
235
199
  } from "./chunk-ISN5GRYI.js";
236
- import "./chunk-GR2E54E6.js";
237
200
  import "./chunk-ADVVQX4I.js";
201
+ import "./chunk-GR2E54E6.js";
238
202
  import {
239
203
  failCommand,
240
- failUsage,
241
204
  requestCliExit,
242
- scheduleCliExit,
243
- setCommandExitCode
205
+ scheduleCliExit
244
206
  } from "./chunk-66W5IWLO.js";
245
207
  import "./chunk-PQYICV7O.js";
246
208
  import "./chunk-QBXDU24O.js";
247
209
  import {
248
210
  VERSION
249
- } from "./chunk-2WKG7HXZ.js";
211
+ } from "./chunk-6RHKGQRA.js";
250
212
  import {
251
213
  normalizeErrorMessage
252
214
  } from "./chunk-E63BDV4Z.js";
@@ -256,484 +218,11 @@ import "./chunk-7KDQAD2W.js";
256
218
  import "./chunk-M2WBOQ2Q.js";
257
219
 
258
220
  // src/commands/render.ts
259
- import { mkdtempSync, readdirSync, readFileSync as readFileSync4, statSync as statSync2, writeFileSync, rmSync } from "fs";
260
-
261
- // src/commands/render/plan.ts
262
- import { statSync } from "fs";
263
- import { dirname, join, resolve as resolve2 } from "path";
264
-
265
- // src/utils/catalogUsage.ts
266
- import { readFileSync } from "fs";
267
- import { isAbsolute, relative, resolve } from "path";
268
- var EMPTY = Object.freeze({
269
- installed: [],
270
- usedBlocks: [],
271
- manifestUnreadable: false
272
- });
273
- var UNREADABLE = Object.freeze({
274
- installed: [],
275
- usedBlocks: [],
276
- manifestUnreadable: true
277
- });
278
- var MAX_VISITED_FILES = 250;
279
- var MAX_HTML_BYTES = 20 * 1024 * 1024;
280
- var REGISTRY_ITEM_NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
281
- function reachableCompositions(projectDir, entryPath) {
282
- const seen = /* @__PURE__ */ new Set();
283
- const queue = [resolve(entryPath)];
284
- while (queue.length > 0 && seen.size < MAX_VISITED_FILES) {
285
- const current = queue.shift();
286
- if (seen.has(current)) continue;
287
- seen.add(current);
288
- let html;
289
- try {
290
- html = readFileSync(current, "utf-8");
291
- } catch {
292
- continue;
293
- }
294
- if (html.length > MAX_HTML_BYTES) continue;
295
- for (const src of collectSubCompositionSrcs(html)) {
296
- queue.push(resolve(projectDir, src));
297
- }
298
- }
299
- return seen;
300
- }
301
- function isReached(projectDir, target, reachable) {
302
- if (isAbsolute(target)) return false;
303
- const abs = resolve(projectDir, target);
304
- if (relative(projectDir, abs).startsWith("..")) return false;
305
- return reachable.has(abs);
306
- }
307
- function reportableNames(names) {
308
- return [...new Set(names.filter((name) => REGISTRY_ITEM_NAME.test(name)))].sort();
309
- }
310
- function summarizeCatalogUsage(projectDir, entryPath) {
311
- const { status, config } = readProjectConfigWithStatus(projectDir);
312
- if (status === "unreadable") return UNREADABLE;
313
- const items = config?.registryItems ?? [];
314
- if (items.length === 0) return EMPTY;
315
- const installed = reportableNames(items.map((item) => item.name));
316
- if (installed.length === 0) return EMPTY;
317
- const reachable = reachableCompositions(projectDir, entryPath);
318
- const usedBlocks = reportableNames(
319
- items.filter(
320
- (item) => item.type === "hyperframes:block" && isReached(projectDir, item.target, reachable)
321
- ).map((item) => item.name)
322
- );
323
- return { installed, usedBlocks, manifestUnreadable: false };
324
- }
325
-
326
- // src/commands/render/plan.ts
327
- var QUALITY_ALIASES = {
328
- draft: { quality: "draft" },
329
- standard: { quality: "standard" },
330
- high: { quality: "high" },
331
- looks: { quality: "standard", crf: 16 },
332
- delivery: { quality: "high" }
333
- };
334
- var RENDER_FORMATS = ["mp4", "webm", "mov", "png-sequence", "gif", "hls"];
335
- var VALID_FORMAT = new Set(RENDER_FORMATS);
336
- var RENDER_FORMAT_LABEL = "mp4, webm, mov, png-sequence, gif, or hls";
337
- var DEFAULT_HLS_SEGMENT_SECONDS = 4;
338
- var FORMAT_EXT = {
339
- mp4: ".mp4",
340
- webm: ".webm",
341
- mov: ".mov",
342
- "png-sequence": "",
343
- gif: ".gif",
344
- // Directory output, like png-sequence: playlists and .ts segments go inside.
345
- hls: ""
346
- };
347
- function formatFpsParseError(input, reason) {
348
- switch (reason) {
349
- case "empty":
350
- return "Frame rate must not be empty.";
351
- case "not-a-number":
352
- return `Got "${input}". Frame rate must be an integer (e.g. 30) or a rational (e.g. 30000/1001 for NTSC).`;
353
- case "non-positive":
354
- return `Got "${input}". Frame rate must be greater than zero.`;
355
- case "out-of-range":
356
- return `Got "${input}". Frame rate must be in the range 1\u2013240.`;
357
- case "invalid-fraction":
358
- return `Got "${input}". Rational frame rates must be two positive integers separated by '/' (e.g. 30000/1001).`;
359
- case "ambiguous-decimal":
360
- return `Got "${input}". Decimal frame rates are ambiguous \u2014 use the exact rational form instead (e.g. 30000/1001 for 29.97).`;
361
- }
362
- }
363
- function parseRenderFormat(input) {
364
- if (!VALID_FORMAT.has(input)) return void 0;
365
- return RENDER_FORMATS.find((format) => format === input);
366
- }
367
- function parseRenderRange(args, format, fps, hdr) {
368
- if (args.start === void 0 && args.end === void 0) return void 0;
369
- const seconds = (flag, raw) => {
370
- const parsed = raw.trim() === "" ? Number.NaN : Number(raw);
371
- if (!Number.isFinite(parsed) || parsed < 0) {
372
- errorBox(`Invalid ${flag}`, `Got "${raw}". Must be a number of seconds, 0 or more.`);
373
- failUsage();
374
- }
375
- return parsed;
376
- };
377
- const startSeconds = args.start === void 0 ? 0 : seconds("--start", args.start);
378
- const endSeconds = args.end === void 0 ? void 0 : seconds("--end", args.end);
379
- if (endSeconds !== void 0 && endSeconds <= startSeconds) {
380
- errorBox("Invalid range", `--end (${endSeconds}) must be after --start (${startSeconds}).`);
381
- failUsage();
382
- }
383
- const limit = rangeLimit(format, fps, hdr);
384
- if (limit) {
385
- errorBox(
386
- "A range renders what chunked renders can",
387
- limit,
388
- "Remove --start/--end to render the whole film."
389
- );
390
- failUsage();
391
- }
392
- return { startSeconds, endSeconds };
393
- }
394
- function rangeLimit(format, fps, hdr) {
395
- if (format !== "mp4") return `--start/--end render MP4 only, not ${format}.`;
396
- if (fps.den !== 1 || !isDistributedFps(fps.num)) {
397
- return `--start/--end need a whole frame rate in ${DISTRIBUTED_FPS.join(", ")}, not ${fps.num}/${fps.den}.`;
398
- }
399
- if (hdr) return "--start/--end render SDR only, not --hdr.";
400
- return void 0;
401
- }
402
- function positiveInteger(raw, title, message, min = 1) {
403
- const parsed = Number(raw);
404
- if (!Number.isInteger(parsed) || parsed < min) {
405
- errorBox(title, message);
406
- failUsage();
407
- }
408
- return parsed;
409
- }
410
- var HF_ENV_OVERRIDE_RE = /^(HF|HYPERFRAMES)_/;
411
- var MAX_REPORTED_ENV_OVERRIDES = 20;
412
- var CLI_INTERNAL_HF_ENV_KEYS = /* @__PURE__ */ new Set(["HF_SHADER_WORKER_ENTRY"]);
413
- function resolveHfEnvOverrides() {
414
- return Object.keys(process.env).filter((name) => HF_ENV_OVERRIDE_RE.test(name) && !CLI_INTERNAL_HF_ENV_KEYS.has(name)).sort().slice(0, MAX_REPORTED_ENV_OVERRIDES);
415
- }
416
- function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
417
- const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
418
- flag: "--page-motion-blur"
419
- });
420
- const hfEnvOverrides = resolveHfEnvOverrides();
421
- const hasExplicitComposition = hasExplicitCompositionArg(args.composition);
422
- const project = resolveProject(args.dir, { requireIndex: !hasExplicitComposition });
423
- const entryFile = resolveCompositionEntryArg(args.composition, project.dir, statSync);
424
- const renderTarget = entryFile ? resolve2(project.dir, entryFile) : project.indexPath;
425
- const fpsArg = resolveDefaultFpsArg(args.fps, project.dir, project.indexPath, entryFile);
426
- const fpsParse = parseFps(fpsArg ?? "30");
427
- if (!fpsParse.ok) {
428
- errorBox("Invalid fps", formatFpsParseError(fpsArg ?? "30", fpsParse.reason));
429
- failUsage();
430
- }
431
- let fps = fpsParse.value;
432
- const qualityRaw = args.quality ?? "looks";
433
- if (!(qualityRaw in QUALITY_ALIASES)) {
434
- errorBox(
435
- "Invalid quality",
436
- `Got "${qualityRaw}". Must be draft, looks, delivery, standard, or high.`
437
- );
438
- failUsage();
439
- }
440
- const qualityAlias = QUALITY_ALIASES[qualityRaw];
441
- const quality = qualityAlias.quality;
442
- const flagSkill = normalizeSkillSlug(args.skill);
443
- const projectConfigSkill = loadProjectConfig(project.dir).authoringSkill;
444
- const authoringSkill = flagSkill ?? projectConfigSkill;
445
- const invalidAuthoringSkill = typeof args.skill === "string" && args.skill.trim() !== "" && !flagSkill ? args.skill : void 0;
446
- const authoringSkillSource = flagSkill ? "flag" : projectConfigSkill ? "project-config" : void 0;
447
- const catalogUsage = summarizeCatalogUsage(project.dir, renderTarget);
448
- const formatRaw = args.format ?? "mp4";
449
- const format = parseRenderFormat(formatRaw);
450
- if (!format) {
451
- errorBox("Invalid format", `Got "${formatRaw}". Must be ${RENDER_FORMAT_LABEL}.`);
452
- failUsage();
453
- }
454
- let gifFpsCapped = false;
455
- if (format === "gif" && fpsToNumber(fps) > 30) {
456
- fps = { num: 30, den: 1 };
457
- gifFpsCapped = true;
458
- }
459
- const gifLoopParse = parseGifLoopArg(args["gif-loop"]);
460
- if (!gifLoopParse.ok) {
461
- errorBox("Invalid gif-loop", gifLoopParse.message);
462
- failUsage();
463
- }
464
- const gifLoop = gifLoopParse.value ?? (format === "gif" ? 0 : void 0);
465
- const hlsSegmentParse = parseHlsSegmentSecondsArg(args["hls-segment-seconds"]);
466
- if (!hlsSegmentParse.ok) {
467
- errorBox("Invalid hls-segment-seconds", hlsSegmentParse.message);
468
- failUsage();
469
- }
470
- const hlsSegmentSeconds = format === "hls" ? hlsSegmentParse.value ?? DEFAULT_HLS_SEGMENT_SECONDS : void 0;
471
- const videoFrameFormatRaw = args["video-frame-format"] ?? "auto";
472
- if (!isVideoFrameFormat(videoFrameFormatRaw)) {
473
- errorBox(
474
- "Invalid video-frame-format",
475
- `Got "${videoFrameFormatRaw}". Must be auto, jpg, or png.`
476
- );
477
- failUsage();
478
- }
479
- let outputResolution;
480
- let outputResolutionAspectAgnostic = false;
481
- if (args.resolution !== void 0) {
482
- outputResolution = normalizeResolutionFlag(args.resolution);
483
- if (!outputResolution) {
484
- errorBox(
485
- "Invalid resolution",
486
- `Got "${args.resolution}". Must be one of: landscape, portrait, landscape-4k, portrait-4k, square, square-4k, landscape-1440p, portrait-1440p, square-1440p (or aliases 1080p, 4k, uhd, 1440p, qhd, 1080p-square, square-1080p, 4k-square, 1440p-portrait, 1440p-square).`
487
- );
488
- failUsage();
489
- }
490
- outputResolutionAspectAgnostic = isAspectAgnosticResolutionAlias(args.resolution);
491
- if (args.hdr) {
492
- errorBox(
493
- "Conflicting flags",
494
- "--resolution cannot be combined with --hdr. The HDR pipeline composites at composition dimensions and does not yet support supersampling.",
495
- "Render in two passes: HDR at composition resolution, then upscale separately with ffmpeg."
496
- );
497
- failUsage();
498
- }
499
- }
500
- if (args.hdr && args.sdr) {
501
- errorBox("Conflicting flags", "--hdr and --sdr are mutually exclusive.");
502
- failUsage();
503
- }
504
- if (format === "hls" && args.hdr) {
505
- errorBox(
506
- "Unsupported HLS output",
507
- "--hdr cannot be combined with --format hls. HLS output is SDR only (H.264 + AAC in MPEG-TS); HDR10 would need fMP4 segments and HEVC.",
508
- "Render HDR to MP4, or drop --hdr."
509
- );
510
- failUsage();
511
- }
512
- if (format === "hls" && args.gpu) {
513
- errorBox(
514
- "Unsupported HLS output",
515
- "--gpu cannot be combined with --format hls. Fixed-length segments require the software encoder's forced-keyframe lock, which GPU encoders ignore.",
516
- "Re-run without --gpu."
517
- );
518
- failUsage();
519
- }
520
- const workers = args.workers != null && args.workers !== "auto" ? positiveInteger(
521
- args.workers,
522
- "Invalid workers",
523
- `Got "${args.workers}". Must be a positive number or "auto".`
524
- ) : void 0;
525
- const protocolTimeout = args["protocol-timeout"] != null ? positiveInteger(
526
- args["protocol-timeout"],
527
- "Invalid protocol-timeout",
528
- `Got "${args["protocol-timeout"]}". Must be a number >= 1000 (ms).`,
529
- 1e3
530
- ) : void 0;
531
- const playerReadyTimeout = args["player-ready-timeout"] != null ? positiveInteger(
532
- args["player-ready-timeout"],
533
- "Invalid player-ready-timeout",
534
- `Got "${args["player-ready-timeout"]}". Must be a number >= 1000 (ms).`,
535
- 1e3
536
- ) : void 0;
537
- const environment = {};
538
- if (args["page-side-compositing"] === false) environment.HF_PAGE_SIDE_COMPOSITING = "false";
539
- if (args["low-memory-mode"] != null) {
540
- environment.PRODUCER_LOW_MEMORY_MODE = args["low-memory-mode"] ? "true" : "false";
541
- }
542
- if (args["experimental-fast-capture"] != null) {
543
- environment.PRODUCER_EXPERIMENTAL_FAST_CAPTURE = args["experimental-fast-capture"] ? "true" : "false";
544
- }
545
- if (typeof args["frames-cache-dir"] === "string" && args["frames-cache-dir"].trim() !== "") {
546
- const raw = args["frames-cache-dir"].trim();
547
- const normalized = raw.toLowerCase();
548
- const isDisableAlias = EXTRACT_CACHE_DIR_DISABLED_ALIASES.includes(normalized);
549
- environment.HYPERFRAMES_EXTRACT_CACHE_DIR = isDisableAlias ? raw : resolve2(raw);
550
- }
551
- if (args["max-concurrent-renders"] != null) {
552
- const parsed = positiveInteger(
553
- args["max-concurrent-renders"],
554
- "Invalid max-concurrent-renders",
555
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
556
- );
557
- if (parsed > 10) {
558
- errorBox(
559
- "Invalid max-concurrent-renders",
560
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
561
- );
562
- failUsage();
563
- }
564
- environment.PRODUCER_MAX_CONCURRENT_RENDERS = String(parsed);
565
- }
566
- const batchPath = typeof args.batch === "string" && args.batch.trim() !== "" ? args.batch.trim() : void 0;
567
- if (batchPath && (args.variables != null || args["variables-file"] != null)) {
568
- errorBox(
569
- "Conflicting variables flags",
570
- "Use either --batch or --variables/--variables-file, not both."
571
- );
572
- failUsage();
573
- }
574
- if (!batchPath && args["batch-concurrency"] != null) {
575
- errorBox("Invalid batch-concurrency", "--batch-concurrency requires --batch.");
576
- failUsage();
577
- }
578
- if (!batchPath && args["batch-fail-fast"]) {
579
- errorBox("Invalid batch-fail-fast", "--batch-fail-fast requires --batch.");
580
- failUsage();
581
- }
582
- const batchConcurrency = args["batch-concurrency"] != null ? positiveInteger(
583
- args["batch-concurrency"],
584
- "Invalid batch-concurrency",
585
- `Got "${args["batch-concurrency"]}". Must be a positive integer.`
586
- ) : 1;
587
- const rendersDir = join(project.dir, "renders");
588
- const ext = FORMAT_EXT[format];
589
- const timestamp = formatRenderOutputTimestamp(now);
590
- const batchOutputTemplate = args.output ? args.output : join(rendersDir, `${project.name}_${timestamp}_{index}${ext}`);
591
- const outputPath = args.output ? resolve2(args.output) : join(rendersDir, `${project.name}_${timestamp}${ext}`);
592
- const useDocker = args.docker ?? false;
593
- const useGpu = args.gpu ?? false;
594
- const browserGpuMode = resolveBrowserGpuForCli(useDocker, args["browser-gpu"]);
595
- if (useDocker && args["browser-gpu"] === true) {
596
- errorBox(
597
- "Browser GPU is local-only",
598
- "--browser-gpu uses the host Chrome GPU backend. Docker mode keeps browser rendering deterministic and does not expose a cross-platform Chrome GPU backend.",
599
- "Run without --docker, or use --gpu for Docker GPU encoding where your Docker host supports GPU passthrough."
600
- );
601
- failUsage();
602
- }
603
- const videoBitrate = args["video-bitrate"]?.trim();
604
- if (args.crf != null && videoBitrate) {
605
- errorBox("Conflicting encoder settings", "Use either --crf or --video-bitrate, not both.");
606
- failUsage();
607
- }
608
- const crf = args.crf != null ? positiveInteger(
609
- args.crf,
610
- "Invalid crf",
611
- `Got "${args.crf}". Must be a non-negative integer.`,
612
- 0
613
- ) : format === "mov" || args["video-bitrate"] ? void 0 : "crf" in qualityAlias ? qualityAlias.crf : void 0;
614
- let vp9CpuUsed;
615
- if (args["vp9-cpu-used"] != null) {
616
- const parsed = Number(args["vp9-cpu-used"]);
617
- if (!Number.isInteger(parsed) || parsed < MIN_VP9_CPU_USED || parsed > MAX_VP9_CPU_USED) {
618
- errorBox(
619
- "Invalid vp9-cpu-used",
620
- `Got "${args["vp9-cpu-used"]}". Must be an integer between ${MIN_VP9_CPU_USED} and ${MAX_VP9_CPU_USED}.`
621
- );
622
- failUsage();
623
- }
624
- vp9CpuUsed = parsed;
625
- }
626
- if (args["video-bitrate"] != null && !videoBitrate) {
627
- errorBox(
628
- "Invalid video-bitrate",
629
- `Got "${args["video-bitrate"]}". Must be a non-empty bitrate such as "10M".`
630
- );
631
- failUsage();
632
- }
633
- if (format === "mov" && (crf !== void 0 || videoBitrate !== void 0)) {
634
- const flag = crf !== void 0 ? "--crf" : "--video-bitrate";
635
- errorBox(
636
- "Unsupported ProRes rate control",
637
- `${flag} does not apply to MOV. MOV rate is set by the ProRes profile; see --prores-profile.`,
638
- `Remove ${flag}, or choose MP4/WebM when you need CRF or target-bitrate control.`
639
- );
640
- failUsage();
641
- }
642
- const delivery = parseDeliveryFlags(args);
643
- const { proresProfile, ...mp4Delivery } = delivery;
644
- if (proresProfile !== void 0 && format !== "mov") {
645
- errorBox(
646
- "ProRes profile applies to MOV",
647
- `--prores-profile sets the ProRes profile of a MOV file, not ${format}.`,
648
- "Remove it, or render --format mov."
649
- );
650
- failUsage();
651
- }
652
- if (Object.keys(mp4Delivery).length > 0 && format !== "mp4") {
653
- errorBox(
654
- "Delivery options apply to MP4",
655
- "--keyframe-interval, --max-bitrate and --buffer-size set how the MP4 encoder delivers the file.",
656
- "Remove them, or render --format mp4."
657
- );
658
- failUsage();
659
- }
660
- const range = parseRenderRange(args, format, fps, args.hdr);
661
- const quiet = args.quiet ?? false;
662
- const batchJson = args.json ?? false;
663
- return Object.freeze({
664
- project,
665
- entryFile,
666
- renderTarget,
667
- fps,
668
- quality,
669
- authoringSkill,
670
- invalidAuthoringSkill,
671
- authoringSkillSource,
672
- catalogUsage,
673
- format,
674
- gifLoop,
675
- gifFpsCapped,
676
- hlsSegmentSeconds,
677
- videoFrameFormat: videoFrameFormatRaw,
678
- pageMotionBlur,
679
- outputResolution,
680
- outputResolutionAspectAgnostic,
681
- outputResolutionRaw: args.resolution,
682
- workers,
683
- protocolTimeout,
684
- playerReadyTimeout,
685
- pageNavigationTimeoutMs: resolveBrowserTimeoutMsArg(args["browser-timeout"]),
686
- batchPath,
687
- batchConcurrency,
688
- batchFailFast: args["batch-fail-fast"] ?? false,
689
- batchOutputTemplate,
690
- outputPath,
691
- useDocker,
692
- useGpu,
693
- browserGpuMode,
694
- quiet,
695
- lintVerbose: args["lint-verbose"] ?? false,
696
- debug: args.debug ?? false,
697
- resumeSegments: args.resume ?? false,
698
- keepSegments: args["keep-segments"] ?? false,
699
- bestEffort: args["best-effort"] ?? true,
700
- waitForRenderSlot: args.wait ?? true,
701
- batchJson,
702
- effectiveQuiet: quiet || batchJson,
703
- strictAll: args["strict-all"] ?? false,
704
- strictErrors: (args.strict ?? false) || (args["strict-all"] ?? false),
705
- crf,
706
- vp9CpuUsed,
707
- videoBitrate,
708
- ...delivery,
709
- range,
710
- hdrMode: args.sdr ? "force-sdr" : args.hdr ? "force-hdr" : "auto",
711
- pageSideCompositing: args["page-side-compositing"] !== false,
712
- experimentalFastCapture: args["experimental-fast-capture"] === true,
713
- variablesArg: args.variables,
714
- variablesFileArg: args["variables-file"],
715
- strictVariables: args["strict-variables"] ?? false,
716
- environment: Object.freeze(environment),
717
- hfEnvOverrides
718
- });
719
- }
720
- function applyRenderEnvironment(plan) {
721
- for (const [key, value] of Object.entries(plan.environment)) process.env[key] = value;
722
- }
723
- function renderOutputDirectory(plan) {
724
- return dirname(plan.outputPath);
725
- }
726
- function resolveBrowserGpuForCli(useDocker, browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
727
- if (useDocker) return "software";
728
- if (browserGpuArg === true) return "hardware";
729
- if (browserGpuArg === false) return "software";
730
- if (envMode === "hardware" || envMode === "software" || envMode === "auto") return envMode;
731
- return "auto";
732
- }
221
+ import { mkdtempSync, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync, writeFileSync as writeFileSync2, rmSync } from "fs";
733
222
 
734
223
  // src/commands/render/present.ts
735
224
  import { cpus } from "os";
736
- import { readFileSync as readFileSync2 } from "fs";
225
+ import { readFileSync } from "fs";
737
226
  async function presentRenderPlan(plan) {
738
227
  await presentRenderWarnings(plan);
739
228
  if (plan.effectiveQuiet || plan.batchPath) return;
@@ -781,7 +270,7 @@ function formatGpuModes(plan) {
781
270
  async function warnForSlideshow(plan) {
782
271
  try {
783
272
  const { slideshowIslandRegex } = await import("./slideshow-ARJR22W4.js");
784
- if (!slideshowIslandRegex("i").test(readFileSync2(plan.renderTarget, "utf8"))) return;
273
+ if (!slideshowIslandRegex("i").test(readFileSync(plan.renderTarget, "utf8"))) return;
785
274
  console.log(
786
275
  c.warn("\u26A0") + " This composition carries a slideshow island \u2014 `render` captures only the first scene, so the MP4 will be truncated to slide 1. Use " + c.accent("hyperframes present") + " for the deck; a linear main-line MP4 export is not yet available."
787
276
  );
@@ -790,6 +279,227 @@ async function warnForSlideshow(plan) {
790
279
  }
791
280
  }
792
281
 
282
+ // src/utils/renderLock.ts
283
+ import { existsSync as existsSync2 } from "fs";
284
+ import { dirname as dirname2 } from "path";
285
+
286
+ // src/utils/renderLockClaim.ts
287
+ import { chmodSync, existsSync, mkdirSync, unlinkSync as unlinkSync2 } from "fs";
288
+
289
+ // src/utils/renderLockOwners.ts
290
+ import { randomBytes } from "crypto";
291
+ import { readdirSync, readFileSync as readFileSync2, unlinkSync, writeFileSync } from "fs";
292
+ import { basename, dirname, join } from "path";
293
+ var markerPrefix = (lockPath) => `${basename(lockPath)}.owner-`;
294
+ var HELD_CODES = new Set(process.platform === "win32" ? ["EPERM", "EBUSY", "EACCES"] : ["EBUSY"]);
295
+ var UNREMOVABLE_CODES = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "EBUSY"]);
296
+ var errorCode = (error) => error.code ?? "";
297
+ function isHeldError(error) {
298
+ return HELD_CODES.has(errorCode(error));
299
+ }
300
+ function startToken(pid) {
301
+ return process.platform === "win32" ? null : processIdentity(pid);
302
+ }
303
+ function writeOwnerMarker(lockPath, owner) {
304
+ const name = `${markerPrefix(lockPath)}${owner.pid}-${randomBytes(6).toString("hex")}`;
305
+ const marker = join(dirname(lockPath), name);
306
+ writeFileSync(marker, JSON.stringify(owner), { flag: "wx" });
307
+ return marker;
308
+ }
309
+ function removeIfPresent(marker) {
310
+ try {
311
+ unlinkSync(marker);
312
+ } catch (error) {
313
+ if (!UNREMOVABLE_CODES.has(errorCode(error))) throw error;
314
+ }
315
+ }
316
+ function recordedIdentity(marker) {
317
+ try {
318
+ const owner = JSON.parse(readFileSync2(marker, "utf8"));
319
+ return typeof owner.identity === "string" ? owner.identity : null;
320
+ } catch {
321
+ return null;
322
+ }
323
+ }
324
+ function sameProcess(pid, identity) {
325
+ if (!Number.isInteger(pid) || pid <= 0 || !alive(pid)) return false;
326
+ const current = identity && startToken(pid);
327
+ return !identity || !current || current === identity;
328
+ }
329
+ function liveOtherOwners(lockPath, own) {
330
+ const dir = dirname(lockPath);
331
+ const prefix = markerPrefix(lockPath);
332
+ let live = 0;
333
+ for (const name of readdirSync(dir)) {
334
+ if (!name.startsWith(prefix)) continue;
335
+ const marker = join(dir, name);
336
+ if (marker === own) continue;
337
+ if (sameProcess(Number(name.slice(prefix.length).split("-")[0]), recordedIdentity(marker))) {
338
+ live += 1;
339
+ } else removeIfPresent(marker);
340
+ }
341
+ return live;
342
+ }
343
+
344
+ // src/utils/renderLockClaim.ts
345
+ var RenderLockStaleBreak = class extends Error {
346
+ constructor(breakPath) {
347
+ super(
348
+ `A render that was reclaiming the render slot stopped part way and left ${breakPath}. No render is using it: delete that file, then run the render again.`
349
+ );
350
+ this.breakPath = breakPath;
351
+ this.name = "RenderLockStaleBreak";
352
+ }
353
+ breakPath;
354
+ };
355
+ var RenderLockUnwritable = class extends Error {
356
+ constructor(dir, cause) {
357
+ super(
358
+ `This account cannot write to ${dir}, where renders take their turn. If accounts share HYPERFRAMES_CACHE_DIR, make the folder writable for all of them (chmod 777 ${dir}); otherwise unset HYPERFRAMES_CACHE_DIR.`,
359
+ { cause }
360
+ );
361
+ this.dir = dir;
362
+ this.name = "RenderLockUnwritable";
363
+ }
364
+ dir;
365
+ };
366
+ function ensureLockDir(dir) {
367
+ if (mkdirSync(dir, { recursive: true }) !== void 0 && process.platform !== "win32") {
368
+ chmodSync(dir, 511);
369
+ }
370
+ }
371
+ var holderAlive = (holder) => sameProcess(holder.pid, holder.identity);
372
+ var sameRecord = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.identity === b.identity;
373
+ function createExclusive(path, holder) {
374
+ try {
375
+ createFileAtomically(path, JSON.stringify(holder));
376
+ return true;
377
+ } catch (error) {
378
+ if (error.code === "EEXIST") return false;
379
+ throw error;
380
+ }
381
+ }
382
+ var writerAbsent = (file, lockPath, marker) => existsSync(file) && !readHolder(file) && liveOtherOwners(lockPath, marker) === 0;
383
+ async function takeOver(path, holder, observed, marker, beforeReplace) {
384
+ const breakPath = `${path}.break`;
385
+ if (!createExclusive(breakPath, holder)) {
386
+ const breaker = readHolder(breakPath);
387
+ if (breaker ? holderAlive(breaker) : !writerAbsent(breakPath, path, marker)) return false;
388
+ throw new RenderLockStaleBreak(breakPath);
389
+ }
390
+ try {
391
+ await beforeReplace?.();
392
+ const stillStale = observed ? sameRecord(readHolder(path), observed) : writerAbsent(path, path, marker);
393
+ if (stillStale) removeIfPresent(path);
394
+ return createExclusive(path, holder);
395
+ } finally {
396
+ if (sameRecord(readHolder(breakPath), holder)) unlinkSync2(breakPath);
397
+ }
398
+ }
399
+ async function claimSlot(path, holder, marker, beforeReplace) {
400
+ if (createExclusive(path, holder)) return true;
401
+ const current = readHolder(path);
402
+ if (current ? holderAlive(current) : !writerAbsent(path, path, marker)) return false;
403
+ return takeOver(path, holder, current, marker, beforeReplace);
404
+ }
405
+
406
+ // src/utils/renderLock.ts
407
+ var RenderLockBusy = class extends Error {
408
+ constructor(holder, path) {
409
+ super(`Another render is running (${describeRenderLockHolder(holder, Date.now())})`);
410
+ this.holder = holder;
411
+ this.path = path;
412
+ this.name = "RenderLockBusy";
413
+ }
414
+ holder;
415
+ path;
416
+ };
417
+ var POLL_MS = 1e3;
418
+ var renderLockPath = () => hyperframesCacheDir("locks", "render.lock");
419
+ function renderLockDisabled(env = process.env) {
420
+ const value = env.HYPERFRAMES_RENDER_LOCK?.trim().toLowerCase();
421
+ return value === "off" || value === "0" || value === "false";
422
+ }
423
+ function describeRenderLockHolder(holder, now) {
424
+ if (!holder) return "holder unknown";
425
+ const seconds = Math.max(0, Math.round((now - holder.startedAt) / 1e3));
426
+ const running = seconds >= 60 ? `${Math.floor(seconds / 60)}m ${seconds % 60}s` : `${seconds}s`;
427
+ return `pid ${holder.pid}, project ${holder.project}, running ${running}`;
428
+ }
429
+ function pause(ms, signal) {
430
+ return new Promise((resolve2, reject) => {
431
+ if (signal?.aborted) return reject(signal.reason);
432
+ const onAbort = () => {
433
+ clearTimeout(timer);
434
+ reject(signal?.reason);
435
+ };
436
+ const timer = setTimeout(() => {
437
+ signal?.removeEventListener("abort", onAbort);
438
+ resolve2();
439
+ }, ms);
440
+ signal?.addEventListener("abort", onAbort, { once: true });
441
+ });
442
+ }
443
+ var sameWaitTarget = (a, b) => a?.pid === b?.pid && a?.startedAt === b?.startedAt;
444
+ async function acquireRenderLock(options) {
445
+ if (renderLockDisabled(options.env)) return () => {
446
+ };
447
+ const contender = prepareContender(options);
448
+ let waitingBehind;
449
+ let retriedVanished = false;
450
+ for (; ; ) {
451
+ options.signal?.throwIfAborted();
452
+ const releaseSlot = await claimOnce(contender);
453
+ if (releaseSlot) return releaseSlot;
454
+ const { path } = contender;
455
+ const current = readHolder(path);
456
+ retriedVanished = !current && !existsSync2(path) && !retriedVanished;
457
+ if (retriedVanished) continue;
458
+ if (!options.wait) throw new RenderLockBusy(current, path);
459
+ if (waitingBehind === void 0 || !sameWaitTarget(waitingBehind, current)) {
460
+ waitingBehind = current;
461
+ options.onWait?.(current, path);
462
+ }
463
+ await pause(options.pollMs ?? POLL_MS, options.signal);
464
+ }
465
+ }
466
+ function prepareContender(options) {
467
+ const path = options.path ?? renderLockPath();
468
+ ensureLockDir(dirname2(path));
469
+ liveOtherOwners(path);
470
+ const pid = options.pid ?? process.pid;
471
+ const identity = startToken(pid);
472
+ return {
473
+ path,
474
+ holder: { pid, command: "render", startedAt: Date.now(), project: options.project, identity },
475
+ owner: { pid, identity },
476
+ claim: options.claim ?? ((lock, holder, marker) => claimSlot(lock, holder, marker, options.beforeReplace))
477
+ };
478
+ }
479
+ var notWritable = (error) => process.platform !== "win32" && ["EACCES", "EPERM"].includes(error.code ?? "");
480
+ async function claimOnce({ path, holder, owner, claim }) {
481
+ let marker;
482
+ try {
483
+ marker = writeOwnerMarker(path, owner);
484
+ } catch (error) {
485
+ throw notWritable(error) ? new RenderLockUnwritable(dirname2(path), error) : error;
486
+ }
487
+ let held = false;
488
+ try {
489
+ held = await claim(path, holder, marker);
490
+ } catch (error) {
491
+ if (notWritable(error)) throw new RenderLockUnwritable(dirname2(path), error);
492
+ if (!isHeldError(error)) throw error;
493
+ } finally {
494
+ if (!held) removeIfPresent(marker);
495
+ }
496
+ if (!held) return null;
497
+ return () => {
498
+ release(path, holder);
499
+ removeIfPresent(marker);
500
+ };
501
+ }
502
+
793
503
  // src/commands/render/renderSlot.ts
794
504
  async function acquireRenderSlot(plan, signal, lock = {}) {
795
505
  try {
@@ -820,337 +530,9 @@ async function acquireRenderSlot(plan, signal, lock = {}) {
820
530
  }
821
531
  }
822
532
 
823
- // src/commands/render/execute.ts
824
- import { readFileSync as readFileSync3 } from "fs";
825
- import { tmpdir } from "os";
826
-
827
- // src/ui/renderResult.ts
828
- function renderMachineResult(result, quiet) {
829
- if (quiet || process.stdout.isTTY || process.env.HYPERFRAMES_STDOUT_IS_TTY === "1") return;
830
- if (!(REFERENCE_BACKGROUND_FIELD in result)) return;
831
- const line = {
832
- version: 1,
833
- operation: "render",
834
- ...referenceBackgroundResult(result[REFERENCE_BACKGROUND_FIELD])
835
- };
836
- process.stdout.write(`@hf-result ${JSON.stringify(line)}
837
- `);
838
- }
839
-
840
- // src/commands/render/execute.ts
841
- function renderLintContinuationHint(strictErrors) {
842
- return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
843
- }
844
- function renderLintShouldAbort(strictErrors, strictAll, lintResult, definitiveEntryMismatch) {
845
- return definitiveEntryMismatch || shouldBlockRender(strictErrors, strictAll, lintResult.totalErrors, lintResult.totalWarnings);
846
- }
847
- async function executeRenderPlan(plan, dependencies, cancellation) {
848
- assertRenderActive(cancellation);
849
- applyRenderEnvironment(plan);
850
- if (!plan.batchPath) makeOutputFolder(renderOutputDirectory(plan));
851
- let batchModule;
852
- let preparedBatch;
853
- if (plan.batchPath) {
854
- batchModule = await import("./batchRender-AL6DO5IA.js");
855
- try {
856
- preparedBatch = batchModule.prepareBatchRender({
857
- batchPath: plan.batchPath,
858
- outputTemplate: plan.batchOutputTemplate,
859
- indexPath: plan.renderTarget,
860
- strictVariables: plan.strictVariables,
861
- quiet: plan.quiet || plan.batchJson,
862
- json: plan.batchJson
863
- });
864
- } catch (error) {
865
- batchModule.exitBatchRenderInputError(error);
866
- }
867
- }
868
- const variables = plan.batchPath ? void 0 : resolveVariablesArg(plan.variablesArg, plan.variablesFileArg);
869
- await runRenderLint(plan, lintProject, cancellation?.signal);
870
- assertRenderActive(cancellation);
871
- if (!plan.useDocker) await refuseLowDiskBeforeBrowserDownload(plan);
872
- const browserPath = plan.useDocker ? void 0 : await ensureRenderBrowser(plan, cancellation?.signal);
873
- assertRenderActive(cancellation);
874
- await runResolutionPreflight(plan, dependencies.checkResolution);
875
- assertRenderActive(cancellation);
876
- const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
877
- try {
878
- assertRenderActive(cancellation);
879
- await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
880
- batchModule,
881
- preparedBatch
882
- });
883
- } finally {
884
- releaseSlot?.();
885
- }
886
- }
887
- async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
888
- const { batchModule, preparedBatch } = batch;
889
- if (plan.batchPath && batchModule && preparedBatch) {
890
- await executeBatchRender(
891
- plan,
892
- browserPath,
893
- batchModule,
894
- preparedBatch,
895
- dependencies,
896
- cancellation
897
- );
898
- return;
899
- }
900
- reportSingleRenderNotes(plan, variables);
901
- const options = renderOptionsFromPlan(plan, browserPath, variables);
902
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
903
- const result = await execute(plan.project.dir, plan.outputPath, options, cancellation);
904
- renderMachineResult(result, plan.effectiveQuiet);
905
- }
906
- function reportSingleRenderNotes(plan, variables) {
907
- if (variables && Object.keys(variables).length > 0) {
908
- const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
909
- reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
910
- }
911
- if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.effectiveQuiet) {
912
- console.log(
913
- c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
914
- );
915
- }
916
- }
917
- function renderOptionsFromPlan(plan, browserPath, variables) {
918
- const options = {
919
- fps: plan.fps,
920
- quality: plan.quality,
921
- authoringSkill: plan.authoringSkill,
922
- authoringSkillSource: plan.authoringSkillSource,
923
- authoringSkillInvalid: plan.invalidAuthoringSkill,
924
- hfEnvOverrides: plan.hfEnvOverrides,
925
- catalogUsage: plan.catalogUsage,
926
- format: plan.format,
927
- gifLoop: plan.gifLoop,
928
- gifFpsCapped: plan.gifFpsCapped,
929
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
930
- workers: plan.workers,
931
- gpu: plan.useGpu,
932
- browserGpuMode: plan.browserGpuMode,
933
- hdrMode: plan.hdrMode,
934
- crf: plan.crf,
935
- vp9CpuUsed: plan.vp9CpuUsed,
936
- videoBitrate: plan.videoBitrate,
937
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
938
- range: plan.range,
939
- proresProfile: plan.proresProfile,
940
- maxBitrate: plan.maxBitrate,
941
- bufferSize: plan.bufferSize,
942
- videoFrameFormat: plan.videoFrameFormat,
943
- pageMotionBlur: plan.pageMotionBlur,
944
- quiet: plan.effectiveQuiet,
945
- browserPath,
946
- debug: plan.debug,
947
- resumeSegments: plan.resumeSegments,
948
- keepSegments: plan.keepSegments,
949
- bestEffort: plan.bestEffort,
950
- variables,
951
- entryFile: plan.entryFile,
952
- outputResolution: plan.outputResolution,
953
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
954
- outputResolutionRaw: plan.outputResolutionRaw,
955
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
956
- protocolTimeout: plan.protocolTimeout,
957
- playerReadyTimeout: plan.playerReadyTimeout,
958
- exitAfterComplete: true,
959
- manageDeParallelRouterBreaker: true
960
- };
961
- if (plan.useDocker) {
962
- options.pageSideCompositing = plan.pageSideCompositing;
963
- options.experimentalFastCapture = plan.experimentalFastCapture;
964
- }
965
- return options;
966
- }
967
- function assertRenderActive(cancellation) {
968
- cancellation?.checkAncestors();
969
- cancellation?.signal.throwIfAborted();
970
- }
971
- async function refuseLowDiskBeforeBrowserDownload(plan) {
972
- const { checkDisk } = await import("./preflight-WG2O5KUQ.js");
973
- await (await import("./manager-IAXYSRG5.js")).sweepKilledInstalls();
974
- const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
975
- const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
976
- if (low.length === 0) return;
977
- for (const check of low) errorBox(check.title ?? "Low disk space", check.detail, check.hint);
978
- failCommand();
979
- }
980
- async function ensureRenderBrowser(plan, signal) {
981
- const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
982
- let browserSpinner;
983
- try {
984
- if (plan.effectiveQuiet) {
985
- return (await ensureBrowser({ preferManagedChrome: true, signal })).executablePath;
986
- }
987
- const clack = await import("./prompts-RYVLXI7Q.js");
988
- browserSpinner = clack.spinner();
989
- browserSpinner.start("Checking browser...");
990
- const info = await ensureBrowser({
991
- preferManagedChrome: true,
992
- signal,
993
- onProgress: (downloaded, total) => {
994
- if (total <= 0) return;
995
- const pct = Math.floor(downloaded / total * 100);
996
- browserSpinner?.message(
997
- `Downloading Chrome... ${c.progress(pct + "%")} ${c.dim("(" + formatBytes(downloaded) + " / " + formatBytes(total) + ")")}`
998
- );
999
- }
1000
- });
1001
- browserSpinner.stop(c.dim(`Browser: ${info.source}`));
1002
- return info.executablePath;
1003
- } catch (error) {
1004
- browserSpinner?.stop(c.error("Browser not available"));
1005
- if (signal?.aborted) signal.throwIfAborted();
1006
- errorBox(
1007
- "Chrome not found",
1008
- normalizeErrorMessage(error),
1009
- "Run: npx hyperframes browser ensure"
1010
- );
1011
- failCommand();
1012
- }
1013
- }
1014
- async function runRenderLint(plan, runLint = lintProject, signal) {
1015
- const explicitEntry = plan.entryFile ? plan.renderTarget : void 0;
1016
- const lintResult = signal && runLint === lintProject ? await runRenderLintInOwnedProcess(plan.project.dir, explicitEntry, signal) : await runLint(plan.project.dir, explicitEntry);
1017
- if (lintResult.totalErrors === 0 && lintResult.totalWarnings === 0) return;
1018
- const definitiveEntryMismatch = hasDefinitiveEntryMismatch(lintResult);
1019
- const willAbort = renderLintShouldAbort(
1020
- plan.strictErrors,
1021
- plan.strictAll,
1022
- lintResult,
1023
- definitiveEntryMismatch
1024
- );
1025
- presentRenderLintFindings(lintResult, plan.effectiveQuiet, plan.lintVerbose || willAbort);
1026
- if (willAbort) {
1027
- presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch);
1028
- failCommand();
1029
- }
1030
- presentRenderLintContinuation(plan);
1031
- }
1032
- async function runRenderLintInOwnedProcess(projectDir, entryFile, signal) {
1033
- return runRenderSetupWorker(
1034
- "lint",
1035
- { projectDir, entryFile },
1036
- {
1037
- signal,
1038
- maxBufferBytes: 8 * 1024 * 1024
1039
- }
1040
- );
1041
- }
1042
- function presentRenderLintFindings(lintResult, quiet, lintVerbose) {
1043
- if (quiet) return;
1044
- console.log("");
1045
- for (const line of formatLintStartupMessage(
1046
- lintResult,
1047
- lintVerbose ? { kind: "verbose", options: { errorsFirst: true } } : { kind: "summary" }
1048
- ))
1049
- console.log(line);
1050
- }
1051
- function presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch) {
1052
- const mode = plan.strictAll ? "--strict-all" : "--strict";
1053
- const counts = `${lintResult.totalErrors} error(s), ${lintResult.totalWarnings} warning(s)`;
1054
- const findings = lintResult.results.flatMap((entry) => entry.result.findings);
1055
- const first = findings.find((finding) => finding.severity === "error") ?? findings[0];
1056
- errorBox(
1057
- definitiveEntryMismatch ? "Aborting render because the default index.html entry is blank." : `Aborting render due to lint issues in ${mode} mode: ${counts}`,
1058
- first ? `${first.code}: ${first.message}` : void 0,
1059
- "Run hyperframes lint for the full list."
1060
- );
1061
- }
1062
- function presentRenderLintContinuation(plan) {
1063
- if (plan.effectiveQuiet) return;
1064
- console.log(c.dim(renderLintContinuationHint(plan.strictErrors)));
1065
- console.log("");
1066
- }
1067
- async function runResolutionPreflight(plan, checkResolution) {
1068
- if (!plan.outputResolution) return;
1069
- let issue;
1070
- try {
1071
- issue = await checkResolution(readFileSync3(plan.renderTarget, "utf8"), plan.outputResolution, {
1072
- alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
1073
- hdrRequested: plan.hdrMode === "force-hdr",
1074
- aspectAgnostic: plan.outputResolutionAspectAgnostic
1075
- });
1076
- } catch {
1077
- }
1078
- if (!issue) return;
1079
- trackRenderPreflightRejected({ kind: issue.kind });
1080
- errorBox("Output resolution incompatible", issue.message);
1081
- failCommand();
1082
- }
1083
- function batchRowRenderOptions(plan, browserPath) {
1084
- const batchQuiet = plan.quiet || plan.batchJson;
1085
- return {
1086
- fps: plan.fps,
1087
- quality: plan.quality,
1088
- authoringSkill: plan.authoringSkill,
1089
- authoringSkillSource: plan.authoringSkillSource,
1090
- authoringSkillInvalid: plan.invalidAuthoringSkill,
1091
- hfEnvOverrides: plan.hfEnvOverrides,
1092
- catalogUsage: plan.catalogUsage,
1093
- format: plan.format,
1094
- gifLoop: plan.gifLoop,
1095
- gifFpsCapped: plan.gifFpsCapped,
1096
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
1097
- workers: plan.workers,
1098
- gpu: plan.useGpu,
1099
- browserGpuMode: plan.browserGpuMode,
1100
- hdrMode: plan.hdrMode,
1101
- crf: plan.crf,
1102
- vp9CpuUsed: plan.vp9CpuUsed,
1103
- videoBitrate: plan.videoBitrate,
1104
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
1105
- range: plan.range,
1106
- proresProfile: plan.proresProfile,
1107
- maxBitrate: plan.maxBitrate,
1108
- bufferSize: plan.bufferSize,
1109
- videoFrameFormat: plan.videoFrameFormat,
1110
- pageMotionBlur: plan.pageMotionBlur,
1111
- quiet: batchQuiet,
1112
- browserPath,
1113
- entryFile: plan.entryFile,
1114
- outputResolution: plan.outputResolution,
1115
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
1116
- outputResolutionRaw: plan.outputResolutionRaw,
1117
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
1118
- protocolTimeout: plan.protocolTimeout,
1119
- playerReadyTimeout: plan.playerReadyTimeout,
1120
- debug: plan.debug,
1121
- resumeSegments: plan.resumeSegments,
1122
- keepSegments: plan.keepSegments,
1123
- bestEffort: plan.bestEffort,
1124
- exitAfterComplete: false,
1125
- throwOnError: true,
1126
- skipFeedback: true,
1127
- desktopHint: false,
1128
- manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
1129
- };
1130
- }
1131
- async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
1132
- const batchQuiet = plan.quiet || plan.batchJson;
1133
- const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
1134
- const manifest = await batchModule.runBatchRender({
1135
- prepared: preparedBatch,
1136
- concurrency: plan.batchConcurrency,
1137
- failFast: plan.batchFailFast,
1138
- quiet: batchQuiet,
1139
- json: plan.batchJson,
1140
- renderOne: (row) => {
1141
- assertRenderActive(cancellation);
1142
- const options = { ...renderOptionsBase, variables: row.variables };
1143
- if (plan.useDocker) options.pageSideCompositing = plan.pageSideCompositing;
1144
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
1145
- return execute(plan.project.dir, row.outputPath, options, cancellation);
1146
- }
1147
- });
1148
- if (manifest.failed > 0) setCommandExitCode(1);
1149
- }
1150
-
1151
533
  // src/commands/render.ts
1152
- import { freemem, tmpdir as tmpdir2 } from "os";
1153
- import { resolve as resolve3, dirname as dirname2, join as join2, basename } from "path";
534
+ import { freemem, tmpdir } from "os";
535
+ import { resolve, dirname as dirname3, join as join2, basename as basename2 } from "path";
1154
536
  import { execFileSync as execFileSync2, spawn } from "child_process";
1155
537
 
1156
538
  // src/utils/webmAlphaCheck.ts
@@ -1910,11 +1292,11 @@ function dockerImageTag(version) {
1910
1292
  return `${DOCKER_IMAGE_PREFIX}:${version}`;
1911
1293
  }
1912
1294
  function resolveDockerfilePath() {
1913
- const builtPath = resolve3(__dirname, "docker", "Dockerfile.render");
1914
- const devPath = resolve3(__dirname, "..", "src", "docker", "Dockerfile.render");
1295
+ const builtPath = resolve(__dirname, "docker", "Dockerfile.render");
1296
+ const devPath = resolve(__dirname, "..", "src", "docker", "Dockerfile.render");
1915
1297
  for (const p of [builtPath, devPath]) {
1916
1298
  try {
1917
- statSync2(p);
1299
+ statSync(p);
1918
1300
  return p;
1919
1301
  } catch {
1920
1302
  continue;
@@ -1942,8 +1324,8 @@ function ensureDockerImage(version, platform, quiet) {
1942
1324
  }
1943
1325
  if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
1944
1326
  const dockerfilePath = resolveDockerfilePath();
1945
- const tmpDir = mkdtempSync(join2(tmpdir2(), "hyperframes-docker-"));
1946
- writeFileSync(join2(tmpDir, "Dockerfile"), readFileSync4(dockerfilePath));
1327
+ const tmpDir = mkdtempSync(join2(tmpdir(), "hyperframes-docker-"));
1328
+ writeFileSync2(join2(tmpDir, "Dockerfile"), readFileSync3(dockerfilePath));
1947
1329
  const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
1948
1330
  try {
1949
1331
  execFileSync2(
@@ -2014,12 +1396,12 @@ async function renderDocker(projectDir, outputPath, options) {
2014
1396
  errorBox(failure.title, failure.message, failure.hint);
2015
1397
  failCommand();
2016
1398
  }
2017
- const outputDir = dirname2(outputPath);
2018
- const outputFilename = basename(outputPath);
1399
+ const outputDir = dirname3(outputPath);
1400
+ const outputFilename = basename2(outputPath);
2019
1401
  const dockerArgs = buildDockerRunArgs({
2020
1402
  imageTag,
2021
- projectDir: resolve3(projectDir),
2022
- outputDir: resolve3(outputDir),
1403
+ projectDir: resolve(projectDir),
1404
+ outputDir: resolve(outputDir),
2023
1405
  outputFilename,
2024
1406
  platform,
2025
1407
  hostStdoutIsTty: process.stdout.isTTY === true,
@@ -2081,7 +1463,7 @@ async function renderDocker(projectDir, outputPath, options) {
2081
1463
  }
2082
1464
  const elapsed = Date.now() - startTime;
2083
1465
  const cpuUsage = cpu.stop();
2084
- markRenderSucceeded();
1466
+ if (!options.embedded) markRenderSucceeded();
2085
1467
  await runPostRenderStepAsync(
2086
1468
  "recordRenderSuccess",
2087
1469
  () => recordRenderSuccess(projectDir, outputPath, "completed", capture).then(() => {
@@ -2122,7 +1504,7 @@ async function renderDocker(projectDir, outputPath, options) {
2122
1504
  "warnIfWebmAlphaDropped",
2123
1505
  () => warnIfWebmAlphaDropped(outputPath, options.format, options.quiet)
2124
1506
  );
2125
- if (options.exitAfterComplete) scheduleCliExit();
1507
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2126
1508
  return { renderTimeMs: elapsed };
2127
1509
  }
2128
1510
  async function renderLocal(projectDir, outputPath, options, commandCancellation) {
@@ -2155,7 +1537,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2155
1537
  }
2156
1538
  const preflight = await runEnvironmentChecks({
2157
1539
  projectDir,
2158
- diskPaths: [tmpdir2(), dirname2(outputPath)],
1540
+ diskPaths: [tmpdir(), dirname3(outputPath)],
2159
1541
  browserPath: options.browserPath,
2160
1542
  includeBrowser: true,
2161
1543
  includeDisk: true,
@@ -2335,7 +1717,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2335
1717
  job
2336
1718
  );
2337
1719
  }
2338
- markRenderSucceeded();
1720
+ if (!options.embedded) markRenderSucceeded();
2339
1721
  await runPostRenderStepAsync(
2340
1722
  "recordRenderSuccess",
2341
1723
  () => recordRenderSuccess(
@@ -2386,7 +1768,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2386
1768
  })
2387
1769
  );
2388
1770
  }
2389
- if (options.exitAfterComplete) scheduleCliExit();
1771
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2390
1772
  const durationMs = job.perfSummary ? Math.round(job.perfSummary.compositionDurationSeconds * 1e3) : void 0;
2391
1773
  const outcome = job.outcome === "completed_with_warnings" ? "completed_with_warnings" : "completed";
2392
1774
  return {
@@ -2420,7 +1802,7 @@ async function renderRange(input) {
2420
1802
  } catch (error) {
2421
1803
  handleRenderError(error, options, input.startTime, input.cpu, false, "");
2422
1804
  }
2423
- markRenderSucceeded();
1805
+ if (!options.embedded) markRenderSucceeded();
2424
1806
  const elapsed = Date.now() - input.startTime;
2425
1807
  input.cpu.stop();
2426
1808
  printRenderComplete({
@@ -2431,7 +1813,7 @@ async function renderRange(input) {
2431
1813
  quiet: options.quiet,
2432
1814
  format: options.format
2433
1815
  });
2434
- if (options.exitAfterComplete) scheduleCliExit();
1816
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2435
1817
  return {
2436
1818
  renderTimeMs: elapsed,
2437
1819
  ...reference,
@@ -2903,13 +2285,13 @@ function trackRenderMetrics(job, elapsedMs, options, docker, cpuUsage) {
2903
2285
  }
2904
2286
  function readOutputFootprint(outputPath) {
2905
2287
  try {
2906
- const stat = statSync2(outputPath);
2288
+ const stat = statSync(outputPath);
2907
2289
  if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
2908
2290
  let total = 0;
2909
- for (const entry of readdirSync(outputPath, { withFileTypes: true })) {
2291
+ for (const entry of readdirSync2(outputPath, { withFileTypes: true })) {
2910
2292
  if (!entry.isFile()) continue;
2911
2293
  try {
2912
- total += statSync2(join2(outputPath, entry.name)).size;
2294
+ total += statSync(join2(outputPath, entry.name)).size;
2913
2295
  } catch {
2914
2296
  }
2915
2297
  }