hyperframes 0.9.31 → 0.9.33

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 (302) hide show
  1. package/dist/{add-53MR45WI.js → add-GDXM36YQ.js} +18 -18
  2. package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-KPNDH2EI.js} +36 -19
  3. package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-SAKETEZ2.js} +11 -11
  4. package/dist/api.js +51 -46
  5. package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
  6. package/dist/{asset-Y3YAVXJ3.js → asset-KOJC72AQ.js} +2 -2
  7. package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-Q4ZFUI6G.js} +13 -13
  8. package/dist/{audio-TRDZQ2NW.js → audio-XZBBXKQC.js} +32 -30
  9. package/dist/{auth-MN66MWGN.js → auth-X45YSZGE.js} +4 -4
  10. package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-77XWQ564.js} +3 -3
  11. package/dist/{avatars-F2COSI7P.js → avatars-D3D22TI2.js} +20 -19
  12. package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-2L2RWFJ3.js} +4 -4
  13. package/dist/backgroundChecksWorker.js +5 -5
  14. package/dist/{batchRender-CI6OFGS5.js → batchRender-O7J47H2Z.js} +5 -5
  15. package/dist/{beats-GBCNB763.js → beats-6RVVU56H.js} +15 -15
  16. package/dist/{benchmark-AHHMJBDN.js → benchmark-D5JRNAVQ.js} +12 -12
  17. package/dist/{billing-HME22C5A.js → billing-WT4DGZII.js} +20 -19
  18. package/dist/{browser-VZTIOZI3.js → browser-2OR737P4.js} +9 -9
  19. package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
  20. package/dist/{capture-ZILHWIOF.js → capture-23X2CK56.js} +82 -39
  21. package/dist/{capture-NU2ZIXJB.js → capture-B34FTO6G.js} +4 -4
  22. package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-TPZKEVKN.js} +19 -19
  23. package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
  24. package/dist/{catalog-NVEGPXGE.js → catalog-ACHSYU5Z.js} +18 -18
  25. package/dist/{catch-up-W7ST5JSZ.js → catch-up-FGANS2BB.js} +12 -12
  26. package/dist/{check-BZ652RYH.js → check-DXK4L5WP.js} +54 -54
  27. package/dist/{checkAudio-5NVSRMGL.js → checkAudio-4ISYJED3.js} +20 -20
  28. package/dist/{checkBrowser-YN454IBU.js → checkBrowser-5ECMULMP.js} +47 -47
  29. package/dist/{chunk-Q7EIUAYK.js → chunk-23354HMA.js} +3 -3
  30. package/dist/{chunk-W4OMDRZF.js → chunk-2I4DQZLQ.js} +28 -8
  31. package/dist/{chunk-O4Z4D4KA.js → chunk-2KYLVWLO.js} +1 -1
  32. package/dist/{chunk-BJSUKOWW.js → chunk-2LMCARA5.js} +2 -2
  33. package/dist/{chunk-XB77LMOP.js → chunk-2QTGQGYA.js} +1 -1
  34. package/dist/{chunk-JULHFF3J.js → chunk-2RBQLV6B.js} +1 -1
  35. package/dist/{chunk-R5U5PFDJ.js → chunk-2TBW7UOF.js} +5177 -4970
  36. package/dist/{chunk-RCWPVC4M.js → chunk-3J32XVJ6.js} +2 -2
  37. package/dist/{chunk-CP4FVXKZ.js → chunk-45ZQI734.js} +2 -2
  38. package/dist/{chunk-LHBQW4GJ.js → chunk-4CHGNFCS.js} +23 -15
  39. package/dist/{chunk-RLYYA6IR.js → chunk-4DLYTSWQ.js} +15 -8
  40. package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
  41. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  42. package/dist/{chunk-ZSELEQI2.js → chunk-4US5QCXR.js} +408 -219
  43. package/dist/{chunk-CWOUPW5E.js → chunk-4WZU4FYS.js} +4 -4
  44. package/dist/{chunk-B7H5RCKP.js → chunk-5GYTBKZA.js} +2 -2
  45. package/dist/{chunk-4HSE3FWO.js → chunk-5RVPI6QL.js} +4 -4
  46. package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
  47. package/dist/{chunk-KAICKZZK.js → chunk-6QEEF5RR.js} +1 -1
  48. package/dist/{chunk-5Q3TTLGB.js → chunk-6RV2QY4K.js} +31 -31
  49. package/dist/{chunk-3SZ43GZG.js → chunk-6ZVUTYNB.js} +6 -6
  50. package/dist/{chunk-C4U6FRZH.js → chunk-76KUCQXD.js} +14 -11
  51. package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
  52. package/dist/{chunk-GRHBVTBK.js → chunk-7LTXT7ME.js} +11 -9
  53. package/dist/{chunk-RBECDLMQ.js → chunk-7UUUV4PN.js} +1 -1
  54. package/dist/{chunk-X3HQA3YE.js → chunk-A4VXOJZO.js} +10 -8
  55. package/dist/{chunk-OJSOH2LS.js → chunk-ADYMQM7T.js} +2 -2
  56. package/dist/{chunk-GSXHYLW4.js → chunk-AIC7T7CC.js} +2 -2
  57. package/dist/{chunk-MQOO5Z4U.js → chunk-B66UZ2YK.js} +9 -9
  58. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  59. package/dist/{chunk-T7PFJH2B.js → chunk-BBL6STGK.js} +2 -2
  60. package/dist/{chunk-5AMGFTMU.js → chunk-C2VZ7UPE.js} +18 -18
  61. package/dist/{chunk-CUORARXJ.js → chunk-CDI3CCAU.js} +7 -7
  62. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  63. package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
  64. package/dist/{chunk-OOEZ3FT3.js → chunk-CHM3QYLF.js} +3 -3
  65. package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
  66. package/dist/{chunk-DJVSNDF3.js → chunk-CNJLBAKM.js} +133 -22
  67. package/dist/chunk-DDDSTRHU.js +3890 -0
  68. package/dist/{chunk-AWL5M7BX.js → chunk-DGC2RIQE.js} +4 -4
  69. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  70. package/dist/{chunk-WSPGX2SM.js → chunk-DMZER7D5.js} +1 -1
  71. package/dist/{chunk-3DIYMOES.js → chunk-ERJBWDPM.js} +7 -7
  72. package/dist/{chunk-56MGA4FM.js → chunk-ETWXZQN5.js} +2 -2
  73. package/dist/{chunk-MMAPQWUP.js → chunk-EX533ULK.js} +2 -2
  74. package/dist/{chunk-HM3PIREE.js → chunk-EX7WPDFA.js} +2 -2
  75. package/dist/{chunk-MX3UCKZR.js → chunk-FRH3CPW5.js} +1 -1
  76. package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
  77. package/dist/{chunk-FKW5FP4C.js → chunk-G55YEL2L.js} +129 -89
  78. package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
  79. package/dist/{chunk-44VR2CWT.js → chunk-GHLLC6LJ.js} +2 -2
  80. package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
  81. package/dist/{chunk-BCMR6DE4.js → chunk-HEXTAQYG.js} +2 -2
  82. package/dist/{chunk-URXVZMSI.js → chunk-HMB3IAVP.js} +2 -2
  83. package/dist/{chunk-22PWPQVX.js → chunk-HPKW6UVW.js} +6 -6
  84. package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
  85. package/dist/{chunk-YJVJCNK4.js → chunk-I35B5RWZ.js} +3 -3
  86. package/dist/{chunk-SCWMPY3F.js → chunk-I3PA54IU.js} +1 -1
  87. package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
  88. package/dist/{chunk-CWN75OWQ.js → chunk-IYLGUQFR.js} +19 -7
  89. package/dist/chunk-JCJJCYCP.js +392 -0
  90. package/dist/{chunk-P7LZ2WSQ.js → chunk-JSVCF4A6.js} +4 -4
  91. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  92. package/dist/{chunk-OBRKDUCE.js → chunk-KIAY63AB.js} +38 -4
  93. package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
  94. package/dist/{chunk-6VNDEMSP.js → chunk-L6BFXQ6S.js} +8 -4
  95. package/dist/chunk-M3BJEZ7E.js +152 -0
  96. package/dist/{chunk-ZOOY4LEZ.js → chunk-MA35E5OY.js} +3 -3
  97. package/dist/{chunk-IHWNDG5C.js → chunk-MDBEAWP2.js} +3 -3
  98. package/dist/{chunk-TEOIEMTR.js → chunk-MDGNQWFN.js} +1 -1
  99. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  100. package/dist/{chunk-O7ZX5DHD.js → chunk-MP36L7OJ.js} +2 -2
  101. package/dist/{chunk-5LLDGJGZ.js → chunk-MVIUSNPZ.js} +1 -1
  102. package/dist/{chunk-IIMW46LC.js → chunk-N2C7WJDG.js} +1 -1
  103. package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
  104. package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
  105. package/dist/{chunk-AQJA7TAQ.js → chunk-NQFIMBXS.js} +2 -2
  106. package/dist/{chunk-G5DZZEQF.js → chunk-O2T6ZTLN.js} +1 -1
  107. package/dist/{chunk-RHUYVGFO.js → chunk-O5CNNVRY.js} +7 -7
  108. package/dist/{chunk-6WHOI52Z.js → chunk-OD7PLYYX.js} +8 -8
  109. package/dist/{chunk-K7JA32EI.js → chunk-PNP2BO3U.js} +2 -2
  110. package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
  111. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  112. package/dist/{chunk-SEVZKBMA.js → chunk-QWM3NY2E.js} +4 -4
  113. package/dist/{chunk-ZQYRP22G.js → chunk-R45WFVRA.js} +1 -1
  114. package/dist/{chunk-PGGMJW7B.js → chunk-RCB4SGTB.js} +35 -7
  115. package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
  116. package/dist/{chunk-5HVQV4H4.js → chunk-RGYOCAHC.js} +2 -2
  117. package/dist/{chunk-GFDXA5QO.js → chunk-ROXILOZ6.js} +2 -2
  118. package/dist/{chunk-G5S72X6Q.js → chunk-SIGASWB7.js} +4 -4
  119. package/dist/{chunk-J5LQW6VB.js → chunk-SOAQ3XXB.js} +2 -2
  120. package/dist/{chunk-RLQOYHXT.js → chunk-SUXEL7G4.js} +15 -15
  121. package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
  122. package/dist/{chunk-Q77TZ76B.js → chunk-SWPI27QV.js} +8 -8
  123. package/dist/{chunk-T54RTTFW.js → chunk-T3GSTIBS.js} +3 -3
  124. package/dist/chunk-TFBPCJPG.js +26 -0
  125. package/dist/{chunk-XDIHAX2C.js → chunk-U77L3ZQZ.js} +1 -1
  126. package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
  127. package/dist/{chunk-7XZS4PNM.js → chunk-UE2WSWNA.js} +1 -1
  128. package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
  129. package/dist/{chunk-KAHWO4XC.js → chunk-VKZSAAXZ.js} +3 -3
  130. package/dist/chunk-VQJLTYEK.js +453 -0
  131. package/dist/{chunk-5YYGPTBP.js → chunk-VZQXHYEI.js} +3 -3
  132. package/dist/{chunk-OZNJ2QD5.js → chunk-W2FSQBUR.js} +17 -17
  133. package/dist/{chunk-RVI665CP.js → chunk-W5PW26KE.js} +1 -1
  134. package/dist/{chunk-KKUBMYCY.js → chunk-WIMVXPYG.js} +12 -12
  135. package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
  136. package/dist/{chunk-OB6DVKHE.js → chunk-WYPRTHXQ.js} +2 -2
  137. package/dist/{chunk-ELWX6CAA.js → chunk-XDDBSGBD.js} +2 -2
  138. package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
  139. package/dist/{chunk-3OA75WJW.js → chunk-XFXCI4IP.js} +16 -9
  140. package/dist/{chunk-RJA64ACI.js → chunk-XQWWFIBR.js} +2 -2
  141. package/dist/{chunk-FK3KV32T.js → chunk-XSHJ37U3.js} +27 -24
  142. package/dist/{chunk-Y6RU3H6C.js → chunk-XUDJ5XSQ.js} +6 -6
  143. package/dist/{chunk-DFSAC4F4.js → chunk-XVVPEWNX.js} +1 -1
  144. package/dist/chunk-Y5DOT5NQ.js +57 -0
  145. package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
  146. package/dist/{chunk-L6ZLOJBI.js → chunk-YDG3OXH3.js} +3 -2
  147. package/dist/{chunk-SQ63BIR2.js → chunk-YNFHZ4RI.js} +3 -3
  148. package/dist/{chunk-5BIMSULZ.js → chunk-YSHUIQ3I.js} +2 -2
  149. package/dist/chunk-YTUPQTXA.js +560 -0
  150. package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
  151. package/dist/chunk-ZOAANTVI.js +193 -0
  152. package/dist/{clean-WYXHI2DO.js → clean-3IN64RHM.js} +31 -31
  153. package/dist/cli.js +71 -69
  154. package/dist/{cloud-X52P5AIE.js → cloud-LBUZBUP6.js} +4 -4
  155. package/dist/{cloud-TDXVUIUM.js → cloud-SVYXHFEG.js} +9 -8
  156. package/dist/{cloudrun-36IR6ZKU.js → cloudrun-PZOF2QGL.js} +8 -8
  157. package/dist/{compare-R2KXOV2I.js → compare-UOJ3LXQQ.js} +46 -46
  158. package/dist/{compiler-FRWUFIQC.js → compiler-5ZDHBKBQ.js} +9 -7
  159. package/dist/{component-TIBQY7KQ.js → component-EVIPLTTJ.js} +3 -3
  160. package/dist/{compositions-NQPORXIX.js → compositions-R4GG5FBO.js} +17 -17
  161. package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
  162. package/dist/contract/LICENSE-Unicode.txt +39 -0
  163. package/dist/contract/path-policy.json +311 -0
  164. package/dist/contract/unicode-15.1.0.json +6179 -0
  165. package/dist/{curve-DTLRPBSB.js → curve-LR3PSRW3.js} +16 -16
  166. package/dist/{cuts-73HKU767.js → cuts-DHCOBAFT.js} +17 -17
  167. package/dist/{delete-HIHA436T.js → delete-MMGGU3QP.js} +12 -11
  168. package/dist/deploy-SKIGUTM2.js +213 -0
  169. package/dist/{describeProject-4A5UXQ25.js → describeProject-L7HNTBPV.js} +12 -12
  170. package/dist/{destroy-4DOMPOYB.js → destroy-5HSMMDH7.js} +22 -18
  171. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
  172. package/dist/{diff-JPADFUMV.js → diff-KR7VKPYL.js} +48 -47
  173. package/dist/{dist-EFXKPJJT.js → dist-3MFNUZSN.js} +4 -4
  174. package/dist/{dist-KWXQYTRT.js → dist-HK3AZNNL.js} +22 -22
  175. package/dist/{dist-FKEKIXVL.js → dist-ZGYPFYOH.js} +4 -4
  176. package/dist/docs/rendering.md +2 -0
  177. package/dist/{doctor-3OO3CONL.js → doctor-G7VGNSA5.js} +18 -18
  178. package/dist/{energy-XFPN5YIL.js → energy-H7EEH6WO.js} +17 -17
  179. package/dist/{events-6ONCYFB5.js → events-5ATZCZTK.js} +4 -4
  180. package/dist/{events-QWPZT3EQ.js → events-ASG27IXP.js} +19 -19
  181. package/dist/{events-G2MME5LQ.js → events-YD6N7OPQ.js} +9 -9
  182. package/dist/execute-OAS454OB.js +109 -0
  183. package/dist/{extract-3EV72SMY.js → extract-645SENLA.js} +20 -20
  184. package/dist/{face-JZS6P3AT.js → face-WRT5XH4I.js} +19 -19
  185. package/dist/{feedback-JVWBHRQG.js → feedback-3LKLR5MV.js} +22 -17
  186. package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-PXKIZL2X.js} +11 -11
  187. package/dist/{figma-KPHTDMCQ.js → figma-RIEVJJBW.js} +3 -3
  188. package/dist/fontLocalizeCli.js +20 -20
  189. package/dist/{frames-KRVRJTKC.js → frames-OTB3J5W3.js} +19 -19
  190. package/dist/{generate-X2MYGFZX.js → generate-IUKCZW2D.js} +33 -32
  191. package/dist/{get-QM24BI7N.js → get-6WVQ7TBV.js} +12 -11
  192. package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-HXSVAEU4.js} +11 -11
  193. package/dist/{grade-compare-W5N5LH4X.js → grade-compare-TCAYHDEF.js} +47 -47
  194. package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
  195. package/dist/hangReport.js +1 -1
  196. package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-GXIMK4HK.js} +12 -12
  197. package/dist/{help-LWS4YWMO.js → help-RGOL5EJD.js} +2 -1
  198. package/dist/{history-SG34LBJY.js → history-XKPRGJGS.js} +15 -15
  199. package/dist/hyperframe.manifest.json +1 -1
  200. package/dist/hyperframe.runtime.iife.js +42 -42
  201. package/dist/hyperframes-player.global.js +1 -1
  202. package/dist/{info-2FC43IYB.js → info-EYBBC42V.js} +19 -19
  203. package/dist/{init-GKY5OKDV.js → init-F2FWPSMA.js} +36 -36
  204. package/dist/{ink-7UK6YCUY.js → ink-BWFERAAT.js} +17 -17
  205. package/dist/{inspect-ZB2NTNQA.js → inspect-74N7L3BW.js} +44 -44
  206. package/dist/{installer-GALVXWPC.js → installer-LOUR7G4R.js} +8 -8
  207. package/dist/{keyframes-LSP4FLHT.js → keyframes-WB5PTKFE.js} +15 -13
  208. package/dist/{lambda-3F32DRYF.js → lambda-JYCNXUKB.js} +20 -20
  209. package/dist/{layout-XPGS3QTX.js → layout-P52EVR24.js} +44 -44
  210. package/dist/{lint-Q5SO57RK.js → lint-SL55KAS2.js} +15 -15
  211. package/dist/{lintProject-5CBL7VFV.js → lintProject-46WU53VC.js} +4 -4
  212. package/dist/{list-FL5RYSFT.js → list-LN6CQH52.js} +14 -13
  213. package/dist/{localPage-IOHQETQT.js → localPage-L6OJU3UH.js} +12 -12
  214. package/dist/{login-D4TCWDDW.js → login-WTOAMDID.js} +8 -7
  215. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  216. package/dist/{look-G2BT4E4A.js → look-O6ESLJRP.js} +17 -17
  217. package/dist/{manager-F6WI43DQ.js → manager-CMEZWENF.js} +12 -12
  218. package/dist/{measure-VXQQHYMZ.js → measure-NEIXU53P.js} +11 -11
  219. package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-6CAQG7MU.js} +19 -19
  220. package/dist/{media-use-63LZFAID.js → media-use-IXJFMKU7.js} +16 -9
  221. package/dist/{models-MWUVU4CY.js → models-TZALWUEY.js} +15 -15
  222. package/dist/{motionShot-U4YDT7UV.js → motionShot-OQYK6G6M.js} +24 -24
  223. package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-43PJLOBY.js} +15 -15
  224. package/dist/oauth-SAVP2YM4.js +40 -0
  225. package/dist/{open-DRLXHOW2.js → open-EOX6QY4M.js} +20 -20
  226. package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-STHAXQAF.js} +19 -19
  227. package/dist/{pipeline-MAIRRYD6.js → pipeline-RRWZHFBQ.js} +14 -14
  228. package/dist/plan-JWUSMF4W.js +88 -0
  229. package/dist/{play-33A3EXX3.js → play-TUKTST32.js} +40 -34
  230. package/dist/{preflight-HSWMKB2Q.js → preflight-L42JKT6F.js} +12 -12
  231. package/dist/{present-HJIFEIDH.js → present-Z7HRDXPV.js} +34 -28
  232. package/dist/{preview-J6Z6RKMN.js → preview-HGTIRAV3.js} +31 -31
  233. package/dist/{probe-RA4VOGYY.js → probe-RXK44FY7.js} +17 -17
  234. package/dist/{producer-KWP2B4A5.js → producer-KJ2RZDJ3.js} +1 -1
  235. package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
  236. package/dist/{projectConfig-3YIGHLNE.js → projectConfig-K36NTJXP.js} +11 -11
  237. package/dist/{publication-QRUY2WJK.js → publication-OZWLT6K6.js} +6 -6
  238. package/dist/{publish-GV3I3GUL.js → publish-CRUTXNYM.js} +92 -30
  239. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  240. package/dist/{remove-background-UUITKXEQ.js → remove-background-R37HZPCG.js} +15 -15
  241. package/dist/{render-ZITQXHJP.js → render-EZMKBT7V.js} +57 -52
  242. package/dist/{render-NHVDJRFD.js → render-SU2XTMJL.js} +8 -8
  243. package/dist/{render-EC67XXR2.js → render-ZHCPCISN.js} +101 -937
  244. package/dist/{render-batch-RII4F3PD.js → render-batch-YIUOEAAL.js} +8 -8
  245. package/dist/renderSetupWorker.js +5 -5
  246. package/dist/{resolver-R3FXDZKS.js → resolver-DLCKRKQR.js} +8 -8
  247. package/dist/{reverse-2GJ5Y3WM.js → reverse-4FAVXIER.js} +1 -1
  248. package/dist/{run-24USN7TA.js → run-H4GVEJVS.js} +8 -6
  249. package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-CQF5FYVI.js} +14 -14
  250. package/dist/service-XDQOULGD.js +68 -0
  251. package/dist/share-CUCQALE7.js +274 -0
  252. package/dist/{sherpa-YIJR47GX.js → sherpa-WZNRQUVC.js} +18 -18
  253. package/dist/sherpaWorker.js +1 -1
  254. package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
  255. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  256. package/dist/skills/hyperframes-cli/references/preview-render.md +21 -0
  257. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
  258. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
  259. package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
  260. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
  261. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
  262. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
  263. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
  264. package/dist/{skills-DM3XC7RQ.js → skills-J52DBZAK.js} +12 -12
  265. package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
  266. package/dist/{snapshot-72RQQXHW.js → snapshot-ZIRQFDA7.js} +94 -69
  267. package/dist/{src-SPFGPZZQ.js → src-7BGBN6SS.js} +18 -18
  268. package/dist/{src-C43KUEBY.js → src-C3XYMTF4.js} +12 -10
  269. package/dist/{start-FSYSYLI7.js → start-QG2XNMYN.js} +31 -30
  270. package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
  271. package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-TWMEFK3T.js} +28 -28
  272. package/dist/{status-TE74GP4Q.js → status-3UPA5WPI.js} +26 -24
  273. package/dist/studio/assets/{codec-DXM4vA6G.js → codec-qz1-OXLj.js} +1 -1
  274. package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-2eG1zFX5.js} +1 -1
  275. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  276. package/dist/studio/assets/{index-Ob53qo6K.js → index-DDmhnfrS.js} +189 -189
  277. package/dist/studio/assets/{index-Bw4stQMm.js → index-DUveJ_YP.js} +1 -1
  278. package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
  279. package/dist/studio/index.html +2 -2
  280. package/dist/{studio-api-JAOHMYPG.js → studio-api-Z42OO4JJ.js} +22 -22
  281. package/dist/{studioServer-RHCPM4CN.js → studioServer-SMN3RMVL.js} +455 -71
  282. package/dist/{sync-UZJ7DOUA.js → sync-ONTI2WSI.js} +17 -17
  283. package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
  284. package/dist/{telemetry-TFOEA2PM.js → telemetry-RRXALB5D.js} +9 -9
  285. package/dist/{templates-2AHM5TZ3.js → templates-BHFOSD6F.js} +23 -22
  286. package/dist/{timeline-ZGV323MP.js → timeline-Z5IHY5TN.js} +28 -28
  287. package/dist/{tokens-ERUFEWUA.js → tokens-MZVEPARM.js} +2 -2
  288. package/dist/{transcribe-6HLYS7NV.js → transcribe-5IZS4BGW.js} +37 -36
  289. package/dist/{transcribe-M5UZ2XFG.js → transcribe-M5N3YZZU.js} +15 -15
  290. package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
  291. package/dist/{update-JDVI2XTM.js → update-EVPWBIKY.js} +14 -13
  292. package/dist/{updateCheck-GDTYPXKO.js → updateCheck-2UUEF6TC.js} +5 -3
  293. package/dist/{upgrade-SJKYBA4X.js → upgrade-DK45FD4K.js} +6 -4
  294. package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-3MPHIDSA.js} +10 -10
  295. package/dist/{validate-IUTHTA2N.js → validate-W27TQ367.js} +36 -36
  296. package/dist/{video-4BJ7WHI2.js → video-TI372QGV.js} +13 -13
  297. package/dist/{voices-UDSFBPZX.js → voices-FZV4PGT6.js} +30 -29
  298. package/dist/warmCheck.js +55 -55
  299. package/dist/warmCheckClient.js +1 -1
  300. package/package.json +2 -1
  301. package/dist/chunk-2X4PQEYM.js +0 -34
  302. package/dist/deploy-EB3FS2BT.js +0 -361
@@ -4,26 +4,9 @@ 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-ZQYRP22G.js";
11
- import {
12
- hasExplicitCompositionArg,
13
- resolveCompositionEntryArg
14
- } from "./chunk-G7PITEUH.js";
15
- import {
16
- parseEnumFlag
17
- } from "./chunk-2B2IMLUQ.js";
18
7
  import {
19
8
  maybePromptRenderFeedback
20
- } from "./chunk-IHWNDG5C.js";
21
- import {
22
- reportVariableIssues,
23
- resolveVariablesArg,
24
- validateVariablesAgainstProject
25
- } from "./chunk-K7JA32EI.js";
26
- import "./chunk-ZBAF6L74.js";
9
+ } from "./chunk-MDBEAWP2.js";
27
10
  import {
28
11
  RenderLockBusy,
29
12
  RenderLockStaleBreak,
@@ -32,23 +15,35 @@ import {
32
15
  describeRenderLockHolder,
33
16
  renderJobObservabilityTelemetryPayload,
34
17
  startRenderCpuSampler
35
- } from "./chunk-Q7EIUAYK.js";
36
- import {
37
- formatLintStartupMessage
38
- } from "./chunk-T6VQGCN3.js";
18
+ } from "./chunk-23354HMA.js";
39
19
  import {
40
20
  desktopHint
41
- } from "./chunk-5YYGPTBP.js";
21
+ } from "./chunk-VZQXHYEI.js";
42
22
  import {
43
23
  runEnvironmentChecks
44
- } from "./chunk-RCWPVC4M.js";
45
- import "./chunk-54FVSPRH.js";
24
+ } from "./chunk-3J32XVJ6.js";
46
25
  import {
47
- makeOutputFolder
48
- } from "./chunk-3S27CPV7.js";
26
+ executeRenderPlan,
27
+ renderLintContinuationHint,
28
+ runRenderLint
29
+ } from "./chunk-JCJJCYCP.js";
30
+ import "./chunk-T6VQGCN3.js";
31
+ import "./chunk-PNP2BO3U.js";
32
+ import {
33
+ createRenderPlan,
34
+ resolveBrowserGpuForCli
35
+ } from "./chunk-YTUPQTXA.js";
36
+ import "./chunk-G7PITEUH.js";
37
+ import "./chunk-2B2IMLUQ.js";
38
+ import {
39
+ deliveryFlagArgs
40
+ } from "./chunk-R45WFVRA.js";
41
+ import "./chunk-ZBAF6L74.js";
42
+ import "./chunk-ZIYXPDKY.js";
43
+ import "./chunk-3S27CPV7.js";
49
44
  import {
50
45
  createRenderCancellationScope
51
- } from "./chunk-DFSAC4F4.js";
46
+ } from "./chunk-XVVPEWNX.js";
52
47
  import {
53
48
  H264EncoderUnavailableError,
54
49
  chromeLaunchRemediation,
@@ -56,53 +51,45 @@ import {
56
51
  findFFmpeg,
57
52
  findFFprobe,
58
53
  getFFmpegInstallHint
59
- } from "./chunk-O7ZX5DHD.js";
54
+ } from "./chunk-MP36L7OJ.js";
60
55
  import {
61
56
  markRenderSucceeded,
62
57
  runPostRenderStep,
63
58
  runPostRenderStepAsync
64
- } from "./chunk-C5JKRCSG.js";
59
+ } from "./chunk-CHCMXYER.js";
65
60
  import {
66
61
  RenderQualityError,
67
62
  extractSafeRenderErrorCode
68
- } from "./chunk-ZSELEQI2.js";
69
- import "./chunk-JLUOG6S2.js";
70
- import "./chunk-T54RTTFW.js";
71
- import "./chunk-6VNDEMSP.js";
63
+ } from "./chunk-4US5QCXR.js";
72
64
  import "./chunk-X7MTZ4T2.js";
73
- import "./chunk-BZ56MTDX.js";
65
+ import "./chunk-4FTJE22M.js";
74
66
  import "./chunk-FI4I7CME.js";
67
+ import "./chunk-T3GSTIBS.js";
68
+ import "./chunk-L6BFXQ6S.js";
69
+ import "./chunk-BZ56MTDX.js";
75
70
  import {
76
71
  captureArtifactRevision
77
- } from "./chunk-URXVZMSI.js";
78
- import "./chunk-RJA64ACI.js";
72
+ } from "./chunk-HMB3IAVP.js";
73
+ import "./chunk-XQWWFIBR.js";
79
74
  import "./chunk-X7MTZ4T2.js";
80
- import {
81
- loadProducer
82
- } from "./chunk-7XZS4PNM.js";
83
- import "./chunk-GGDJLN5I.js";
84
- import {
85
- resolveProject
86
- } from "./chunk-L6ZLOJBI.js";
75
+ import "./chunk-REJ4NIBY.js";
87
76
  import {
88
77
  windowsChromeCrashRemediation
89
78
  } from "./chunk-262C25DQ.js";
90
- import {
91
- parseGifLoopArg,
92
- parseHlsSegmentSecondsArg,
93
- resolveBrowserTimeoutMsArg,
94
- resolveDefaultFpsArg
95
- } from "./chunk-YJVJCNK4.js";
96
79
  import {
97
80
  resolveGsapVendorDir
98
- } from "./chunk-XB77LMOP.js";
99
- import "./chunk-O4Z4D4KA.js";
81
+ } from "./chunk-2QTGQGYA.js";
82
+ import {
83
+ loadProducer
84
+ } from "./chunk-UE2WSWNA.js";
85
+ import "./chunk-YDG3OXH3.js";
86
+ import "./chunk-I35B5RWZ.js";
87
+ import "./chunk-2KYLVWLO.js";
100
88
  import "./chunk-3L2POG2J.js";
101
89
  import {
102
90
  recordRenderSuccess,
103
91
  registerRenderOutput
104
- } from "./chunk-VPPJIWVG.js";
105
- import "./chunk-ALVXFXUG.js";
92
+ } from "./chunk-XDRSEU2I.js";
106
93
  import {
107
94
  errorBox,
108
95
  formatBytes,
@@ -111,37 +98,32 @@ import {
111
98
  formatScreenshotFallbackHint,
112
99
  resolvePrintedCaptureMode
113
100
  } from "./chunk-LIWK3MFR.js";
101
+ import "./chunk-WXOOAAT4.js";
114
102
  import "./chunk-EHZESMRB.js";
115
103
  import {
116
- loadProjectConfig,
117
- readProjectConfigWithStatus,
118
104
  seedProjectAuthoringSkill
119
- } from "./chunk-J5LQW6VB.js";
105
+ } from "./chunk-SOAQ3XXB.js";
120
106
  import "./chunk-XT7X6QCP.js";
121
- import "./chunk-FRBQ3FIM.js";
122
- import {
123
- normalizeSkillSlug
124
- } from "./chunk-HVW7ABXD.js";
125
- import "./chunk-RVI665CP.js";
107
+ import "./chunk-GBIASKIH.js";
108
+ import "./chunk-HVW7ABXD.js";
109
+ import "./chunk-W5PW26KE.js";
126
110
  import "./chunk-JHOCK3DG.js";
127
- import "./chunk-PGGMJW7B.js";
128
- import "./chunk-C4U6FRZH.js";
111
+ import "./chunk-RCB4SGTB.js";
112
+ import "./chunk-76KUCQXD.js";
129
113
  import "./chunk-AWDFDFI3.js";
130
114
  import "./chunk-P6LJ4Y32.js";
131
115
  import "./chunk-D3UCUI7G.js";
132
- import "./chunk-F2GWIWHN.js";
116
+ import "./chunk-G2XAFJ2B.js";
133
117
  import {
134
- renderMotionBlurResult,
135
118
  renderMotionBlurTelemetryPayload,
136
119
  trackRenderComplete,
137
120
  trackRenderError,
138
- trackRenderObservation,
139
- trackRenderPreflightRejected
140
- } from "./chunk-OJSOH2LS.js";
141
- import "./chunk-5BIMSULZ.js";
121
+ trackRenderObservation
122
+ } from "./chunk-ADYMQM7T.js";
123
+ import "./chunk-YSHUIQ3I.js";
142
124
  import "./chunk-PXVQOMKL.js";
143
125
  import "./chunk-MCDNAIFF.js";
144
- import "./chunk-LP7B3JLC.js";
126
+ import "./chunk-DMW5SSUN.js";
145
127
  import {
146
128
  defineCommand
147
129
  } from "./chunk-DL4OD7IA.js";
@@ -151,74 +133,53 @@ import "./chunk-54HJ63Q2.js";
151
133
  import {
152
134
  c
153
135
  } from "./chunk-JCNPHRGX.js";
154
- import "./chunk-VEIGTKYZ.js";
155
- import "./chunk-EVMY7IPL.js";
136
+ import "./chunk-64F653HO.js";
156
137
  import "./chunk-ZB2XGJSP.js";
138
+ import "./chunk-EVMY7IPL.js";
157
139
  import {
158
140
  CaptureFailure,
159
141
  EXTRACT_CACHE_DIR_DISABLED_ALIASES,
160
- MAX_VP9_CPU_USED,
161
- MIN_VP9_CPU_USED,
162
- PRORES_PROFILES,
163
- REFERENCE_BACKGROUND_FIELD,
164
142
  audioFailureDiagnostics,
165
- isVideoFrameFormat,
166
- referenceBackgroundResult,
167
143
  sandboxDeniedRemediation
168
- } from "./chunk-R5U5PFDJ.js";
144
+ } from "./chunk-2TBW7UOF.js";
169
145
  import "./chunk-Z5J67X44.js";
170
146
  import "./chunk-5S7W3TUO.js";
171
147
  import "./chunk-D3MUHMFG.js";
172
- import "./chunk-OBRKDUCE.js";
173
- import "./chunk-IEXRKKHC.js";
148
+ import "./chunk-KIAY63AB.js";
149
+ import "./chunk-IEEIPTDW.js";
174
150
  import "./chunk-3GXQPCJC.js";
175
151
  import {
176
- DISTRIBUTED_FPS,
177
- formatRenderOutputTimestamp,
178
152
  fpsToFfmpegArg,
179
- fpsToNumber,
180
- isDistributedFps,
181
- parseFps
182
- } from "./chunk-HM3PIREE.js";
153
+ fpsToNumber
154
+ } from "./chunk-EX7WPDFA.js";
183
155
  import "./chunk-FXMKHHPO.js";
184
- import "./chunk-ELWX6CAA.js";
156
+ import "./chunk-XDDBSGBD.js";
185
157
  import "./chunk-VC76R6W2.js";
186
- import "./chunk-OFQWTKPW.js";
158
+ import "./chunk-HZTRKUKE.js";
187
159
  import "./chunk-RQVDTPGD.js";
188
160
  import "./chunk-BMDABBHG.js";
189
161
  import {
190
162
  killOrphanedProcessesForRender
191
163
  } from "./chunk-PV4XID2A.js";
192
- import {
193
- runRenderSetupWorker
194
- } from "./chunk-X6JUUQCM.js";
195
- import {
196
- hasDefinitiveEntryMismatch
197
- } from "./chunk-Q5X2B5WT.js";
164
+ import "./chunk-X6JUUQCM.js";
165
+ import "./chunk-Q5X2B5WT.js";
198
166
  import "./chunk-KGPLIH7B.js";
199
167
  import {
200
168
  bytesToMb
201
169
  } from "./chunk-FOZBANEN.js";
202
170
  import "./chunk-K4MJX7SR.js";
203
171
  import "./chunk-WE42NVH7.js";
204
- import {
205
- lintProject,
206
- shouldBlockRender
207
- } from "./chunk-DJVSNDF3.js";
208
- import {
209
- collectSubCompositionSrcs
210
- } from "./chunk-WVRAFHJU.js";
172
+ import "./chunk-CNJLBAKM.js";
173
+ import "./chunk-K2Z6OXEI.js";
211
174
  import {
212
175
  FFMPEG_PATH_ENV
213
- } from "./chunk-HYRPH6LL.js";
176
+ } from "./chunk-KRWPTZBY.js";
214
177
  import "./chunk-FBN2M2HK.js";
215
178
  import "./chunk-6MKM2RVL.js";
216
179
  import {
217
180
  checkOutputResolutionCompatibility,
218
- isAspectAgnosticResolutionAlias,
219
- normalizeResolutionFlag,
220
181
  suggestMatchingPreset
221
- } from "./chunk-IOPIOX5K.js";
182
+ } from "./chunk-N7C7U3ZR.js";
222
183
  import "./chunk-FR7YBU3H.js";
223
184
  import "./chunk-DPVXBVLL.js";
224
185
  import "./chunk-GWTIFRF5.js";
@@ -237,20 +198,18 @@ import {
237
198
  import {
238
199
  isDevMode
239
200
  } from "./chunk-ISN5GRYI.js";
240
- import "./chunk-GR2E54E6.js";
241
201
  import "./chunk-ADVVQX4I.js";
202
+ import "./chunk-GR2E54E6.js";
242
203
  import {
243
204
  failCommand,
244
- failUsage,
245
205
  requestCliExit,
246
- scheduleCliExit,
247
- setCommandExitCode
206
+ scheduleCliExit
248
207
  } from "./chunk-66W5IWLO.js";
249
208
  import "./chunk-CPHQTXP5.js";
250
209
  import "./chunk-QBXDU24O.js";
251
210
  import {
252
211
  VERSION
253
- } from "./chunk-CP4FVXKZ.js";
212
+ } from "./chunk-45ZQI734.js";
254
213
  import {
255
214
  normalizeErrorMessage
256
215
  } from "./chunk-E63BDV4Z.js";
@@ -260,484 +219,11 @@ import "./chunk-7KDQAD2W.js";
260
219
  import "./chunk-M2WBOQ2Q.js";
261
220
 
262
221
  // src/commands/render.ts
263
- import { mkdtempSync, readdirSync, readFileSync as readFileSync4, statSync as statSync2, writeFileSync, rmSync } from "fs";
264
-
265
- // src/commands/render/plan.ts
266
- import { statSync } from "fs";
267
- import { dirname, join, resolve as resolve2 } from "path";
268
-
269
- // src/utils/catalogUsage.ts
270
- import { readFileSync } from "fs";
271
- import { isAbsolute, relative, resolve } from "path";
272
- var EMPTY = Object.freeze({
273
- installed: [],
274
- usedBlocks: [],
275
- manifestUnreadable: false
276
- });
277
- var UNREADABLE = Object.freeze({
278
- installed: [],
279
- usedBlocks: [],
280
- manifestUnreadable: true
281
- });
282
- var MAX_VISITED_FILES = 250;
283
- var MAX_HTML_BYTES = 20 * 1024 * 1024;
284
- var REGISTRY_ITEM_NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
285
- function reachableCompositions(projectDir, entryPath) {
286
- const seen = /* @__PURE__ */ new Set();
287
- const queue = [resolve(entryPath)];
288
- while (queue.length > 0 && seen.size < MAX_VISITED_FILES) {
289
- const current = queue.shift();
290
- if (seen.has(current)) continue;
291
- seen.add(current);
292
- let html;
293
- try {
294
- html = readFileSync(current, "utf-8");
295
- } catch {
296
- continue;
297
- }
298
- if (html.length > MAX_HTML_BYTES) continue;
299
- for (const src of collectSubCompositionSrcs(html)) {
300
- queue.push(resolve(projectDir, src));
301
- }
302
- }
303
- return seen;
304
- }
305
- function isReached(projectDir, target, reachable) {
306
- if (isAbsolute(target)) return false;
307
- const abs = resolve(projectDir, target);
308
- if (relative(projectDir, abs).startsWith("..")) return false;
309
- return reachable.has(abs);
310
- }
311
- function reportableNames(names) {
312
- return [...new Set(names.filter((name) => REGISTRY_ITEM_NAME.test(name)))].sort();
313
- }
314
- function summarizeCatalogUsage(projectDir, entryPath) {
315
- const { status, config } = readProjectConfigWithStatus(projectDir);
316
- if (status === "unreadable") return UNREADABLE;
317
- const items = config?.registryItems ?? [];
318
- if (items.length === 0) return EMPTY;
319
- const installed = reportableNames(items.map((item) => item.name));
320
- if (installed.length === 0) return EMPTY;
321
- const reachable = reachableCompositions(projectDir, entryPath);
322
- const usedBlocks = reportableNames(
323
- items.filter(
324
- (item) => item.type === "hyperframes:block" && isReached(projectDir, item.target, reachable)
325
- ).map((item) => item.name)
326
- );
327
- return { installed, usedBlocks, manifestUnreadable: false };
328
- }
329
-
330
- // src/commands/render/plan.ts
331
- var QUALITY_ALIASES = {
332
- draft: { quality: "draft" },
333
- standard: { quality: "standard" },
334
- high: { quality: "high" },
335
- looks: { quality: "standard", crf: 16 },
336
- delivery: { quality: "high" }
337
- };
338
- var RENDER_FORMATS = ["mp4", "webm", "mov", "png-sequence", "gif", "hls"];
339
- var VALID_FORMAT = new Set(RENDER_FORMATS);
340
- var RENDER_FORMAT_LABEL = "mp4, webm, mov, png-sequence, gif, or hls";
341
- var DEFAULT_HLS_SEGMENT_SECONDS = 4;
342
- var FORMAT_EXT = {
343
- mp4: ".mp4",
344
- webm: ".webm",
345
- mov: ".mov",
346
- "png-sequence": "",
347
- gif: ".gif",
348
- // Directory output, like png-sequence: playlists and .ts segments go inside.
349
- hls: ""
350
- };
351
- function formatFpsParseError(input, reason) {
352
- switch (reason) {
353
- case "empty":
354
- return "Frame rate must not be empty.";
355
- case "not-a-number":
356
- return `Got "${input}". Frame rate must be an integer (e.g. 30) or a rational (e.g. 30000/1001 for NTSC).`;
357
- case "non-positive":
358
- return `Got "${input}". Frame rate must be greater than zero.`;
359
- case "out-of-range":
360
- return `Got "${input}". Frame rate must be in the range 1\u2013240.`;
361
- case "invalid-fraction":
362
- return `Got "${input}". Rational frame rates must be two positive integers separated by '/' (e.g. 30000/1001).`;
363
- case "ambiguous-decimal":
364
- return `Got "${input}". Decimal frame rates are ambiguous \u2014 use the exact rational form instead (e.g. 30000/1001 for 29.97).`;
365
- }
366
- }
367
- function parseRenderFormat(input) {
368
- if (!VALID_FORMAT.has(input)) return void 0;
369
- return RENDER_FORMATS.find((format) => format === input);
370
- }
371
- function parseRenderRange(args, format, fps, hdr) {
372
- if (args.start === void 0 && args.end === void 0) return void 0;
373
- const seconds = (flag, raw) => {
374
- const parsed = raw.trim() === "" ? Number.NaN : Number(raw);
375
- if (!Number.isFinite(parsed) || parsed < 0) {
376
- errorBox(`Invalid ${flag}`, `Got "${raw}". Must be a number of seconds, 0 or more.`);
377
- failUsage();
378
- }
379
- return parsed;
380
- };
381
- const startSeconds = args.start === void 0 ? 0 : seconds("--start", args.start);
382
- const endSeconds = args.end === void 0 ? void 0 : seconds("--end", args.end);
383
- if (endSeconds !== void 0 && endSeconds <= startSeconds) {
384
- errorBox("Invalid range", `--end (${endSeconds}) must be after --start (${startSeconds}).`);
385
- failUsage();
386
- }
387
- const limit = rangeLimit(format, fps, hdr);
388
- if (limit) {
389
- errorBox(
390
- "A range renders what chunked renders can",
391
- limit,
392
- "Remove --start/--end to render the whole film."
393
- );
394
- failUsage();
395
- }
396
- return { startSeconds, endSeconds };
397
- }
398
- function rangeLimit(format, fps, hdr) {
399
- if (format !== "mp4") return `--start/--end render MP4 only, not ${format}.`;
400
- if (fps.den !== 1 || !isDistributedFps(fps.num)) {
401
- return `--start/--end need a whole frame rate in ${DISTRIBUTED_FPS.join(", ")}, not ${fps.num}/${fps.den}.`;
402
- }
403
- if (hdr) return "--start/--end render SDR only, not --hdr.";
404
- return void 0;
405
- }
406
- function positiveInteger(raw, title, message, min = 1) {
407
- const parsed = Number(raw);
408
- if (!Number.isInteger(parsed) || parsed < min) {
409
- errorBox(title, message);
410
- failUsage();
411
- }
412
- return parsed;
413
- }
414
- var HF_ENV_OVERRIDE_RE = /^(HF|HYPERFRAMES)_/;
415
- var MAX_REPORTED_ENV_OVERRIDES = 20;
416
- var CLI_INTERNAL_HF_ENV_KEYS = /* @__PURE__ */ new Set(["HF_SHADER_WORKER_ENTRY"]);
417
- function resolveHfEnvOverrides() {
418
- 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);
419
- }
420
- function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
421
- const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
422
- flag: "--page-motion-blur"
423
- });
424
- const hfEnvOverrides = resolveHfEnvOverrides();
425
- const hasExplicitComposition = hasExplicitCompositionArg(args.composition);
426
- const project = resolveProject(args.dir, { requireIndex: !hasExplicitComposition });
427
- const entryFile = resolveCompositionEntryArg(args.composition, project.dir, statSync);
428
- const renderTarget = entryFile ? resolve2(project.dir, entryFile) : project.indexPath;
429
- const fpsArg = resolveDefaultFpsArg(args.fps, project.dir, project.indexPath, entryFile);
430
- const fpsParse = parseFps(fpsArg ?? "30");
431
- if (!fpsParse.ok) {
432
- errorBox("Invalid fps", formatFpsParseError(fpsArg ?? "30", fpsParse.reason));
433
- failUsage();
434
- }
435
- let fps = fpsParse.value;
436
- const qualityRaw = args.quality ?? "looks";
437
- if (!(qualityRaw in QUALITY_ALIASES)) {
438
- errorBox(
439
- "Invalid quality",
440
- `Got "${qualityRaw}". Must be draft, looks, delivery, standard, or high.`
441
- );
442
- failUsage();
443
- }
444
- const qualityAlias = QUALITY_ALIASES[qualityRaw];
445
- const quality = qualityAlias.quality;
446
- const flagSkill = normalizeSkillSlug(args.skill);
447
- const projectConfigSkill = loadProjectConfig(project.dir).authoringSkill;
448
- const authoringSkill = flagSkill ?? projectConfigSkill;
449
- const invalidAuthoringSkill = typeof args.skill === "string" && args.skill.trim() !== "" && !flagSkill ? args.skill : void 0;
450
- const authoringSkillSource = flagSkill ? "flag" : projectConfigSkill ? "project-config" : void 0;
451
- const catalogUsage = summarizeCatalogUsage(project.dir, renderTarget);
452
- const formatRaw = args.format ?? "mp4";
453
- const format = parseRenderFormat(formatRaw);
454
- if (!format) {
455
- errorBox("Invalid format", `Got "${formatRaw}". Must be ${RENDER_FORMAT_LABEL}.`);
456
- failUsage();
457
- }
458
- let gifFpsCapped = false;
459
- if (format === "gif" && fpsToNumber(fps) > 30) {
460
- fps = { num: 30, den: 1 };
461
- gifFpsCapped = true;
462
- }
463
- const gifLoopParse = parseGifLoopArg(args["gif-loop"]);
464
- if (!gifLoopParse.ok) {
465
- errorBox("Invalid gif-loop", gifLoopParse.message);
466
- failUsage();
467
- }
468
- const gifLoop = gifLoopParse.value ?? (format === "gif" ? 0 : void 0);
469
- const hlsSegmentParse = parseHlsSegmentSecondsArg(args["hls-segment-seconds"]);
470
- if (!hlsSegmentParse.ok) {
471
- errorBox("Invalid hls-segment-seconds", hlsSegmentParse.message);
472
- failUsage();
473
- }
474
- const hlsSegmentSeconds = format === "hls" ? hlsSegmentParse.value ?? DEFAULT_HLS_SEGMENT_SECONDS : void 0;
475
- const videoFrameFormatRaw = args["video-frame-format"] ?? "auto";
476
- if (!isVideoFrameFormat(videoFrameFormatRaw)) {
477
- errorBox(
478
- "Invalid video-frame-format",
479
- `Got "${videoFrameFormatRaw}". Must be auto, jpg, or png.`
480
- );
481
- failUsage();
482
- }
483
- let outputResolution;
484
- let outputResolutionAspectAgnostic = false;
485
- if (args.resolution !== void 0) {
486
- outputResolution = normalizeResolutionFlag(args.resolution);
487
- if (!outputResolution) {
488
- errorBox(
489
- "Invalid resolution",
490
- `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).`
491
- );
492
- failUsage();
493
- }
494
- outputResolutionAspectAgnostic = isAspectAgnosticResolutionAlias(args.resolution);
495
- if (args.hdr) {
496
- errorBox(
497
- "Conflicting flags",
498
- "--resolution cannot be combined with --hdr. The HDR pipeline composites at composition dimensions and does not yet support supersampling.",
499
- "Render in two passes: HDR at composition resolution, then upscale separately with ffmpeg."
500
- );
501
- failUsage();
502
- }
503
- }
504
- if (args.hdr && args.sdr) {
505
- errorBox("Conflicting flags", "--hdr and --sdr are mutually exclusive.");
506
- failUsage();
507
- }
508
- if (format === "hls" && args.hdr) {
509
- errorBox(
510
- "Unsupported HLS output",
511
- "--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.",
512
- "Render HDR to MP4, or drop --hdr."
513
- );
514
- failUsage();
515
- }
516
- if (format === "hls" && args.gpu) {
517
- errorBox(
518
- "Unsupported HLS output",
519
- "--gpu cannot be combined with --format hls. Fixed-length segments require the software encoder's forced-keyframe lock, which GPU encoders ignore.",
520
- "Re-run without --gpu."
521
- );
522
- failUsage();
523
- }
524
- const workers = args.workers != null && args.workers !== "auto" ? positiveInteger(
525
- args.workers,
526
- "Invalid workers",
527
- `Got "${args.workers}". Must be a positive number or "auto".`
528
- ) : void 0;
529
- const protocolTimeout = args["protocol-timeout"] != null ? positiveInteger(
530
- args["protocol-timeout"],
531
- "Invalid protocol-timeout",
532
- `Got "${args["protocol-timeout"]}". Must be a number >= 1000 (ms).`,
533
- 1e3
534
- ) : void 0;
535
- const playerReadyTimeout = args["player-ready-timeout"] != null ? positiveInteger(
536
- args["player-ready-timeout"],
537
- "Invalid player-ready-timeout",
538
- `Got "${args["player-ready-timeout"]}". Must be a number >= 1000 (ms).`,
539
- 1e3
540
- ) : void 0;
541
- const environment = {};
542
- if (args["page-side-compositing"] === false) environment.HF_PAGE_SIDE_COMPOSITING = "false";
543
- if (args["low-memory-mode"] != null) {
544
- environment.PRODUCER_LOW_MEMORY_MODE = args["low-memory-mode"] ? "true" : "false";
545
- }
546
- if (args["experimental-fast-capture"] != null) {
547
- environment.PRODUCER_EXPERIMENTAL_FAST_CAPTURE = args["experimental-fast-capture"] ? "true" : "false";
548
- }
549
- if (typeof args["frames-cache-dir"] === "string" && args["frames-cache-dir"].trim() !== "") {
550
- const raw = args["frames-cache-dir"].trim();
551
- const normalized = raw.toLowerCase();
552
- const isDisableAlias = EXTRACT_CACHE_DIR_DISABLED_ALIASES.includes(normalized);
553
- environment.HYPERFRAMES_EXTRACT_CACHE_DIR = isDisableAlias ? raw : resolve2(raw);
554
- }
555
- if (args["max-concurrent-renders"] != null) {
556
- const parsed = positiveInteger(
557
- args["max-concurrent-renders"],
558
- "Invalid max-concurrent-renders",
559
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
560
- );
561
- if (parsed > 10) {
562
- errorBox(
563
- "Invalid max-concurrent-renders",
564
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
565
- );
566
- failUsage();
567
- }
568
- environment.PRODUCER_MAX_CONCURRENT_RENDERS = String(parsed);
569
- }
570
- const batchPath = typeof args.batch === "string" && args.batch.trim() !== "" ? args.batch.trim() : void 0;
571
- if (batchPath && (args.variables != null || args["variables-file"] != null)) {
572
- errorBox(
573
- "Conflicting variables flags",
574
- "Use either --batch or --variables/--variables-file, not both."
575
- );
576
- failUsage();
577
- }
578
- if (!batchPath && args["batch-concurrency"] != null) {
579
- errorBox("Invalid batch-concurrency", "--batch-concurrency requires --batch.");
580
- failUsage();
581
- }
582
- if (!batchPath && args["batch-fail-fast"]) {
583
- errorBox("Invalid batch-fail-fast", "--batch-fail-fast requires --batch.");
584
- failUsage();
585
- }
586
- const batchConcurrency = args["batch-concurrency"] != null ? positiveInteger(
587
- args["batch-concurrency"],
588
- "Invalid batch-concurrency",
589
- `Got "${args["batch-concurrency"]}". Must be a positive integer.`
590
- ) : 1;
591
- const rendersDir = join(project.dir, "renders");
592
- const ext = FORMAT_EXT[format];
593
- const timestamp = formatRenderOutputTimestamp(now);
594
- const batchOutputTemplate = args.output ? args.output : join(rendersDir, `${project.name}_${timestamp}_{index}${ext}`);
595
- const outputPath = args.output ? resolve2(args.output) : join(rendersDir, `${project.name}_${timestamp}${ext}`);
596
- const useDocker = args.docker ?? false;
597
- const useGpu = args.gpu ?? false;
598
- const browserGpuMode = resolveBrowserGpuForCli(useDocker, args["browser-gpu"]);
599
- if (useDocker && args["browser-gpu"] === true) {
600
- errorBox(
601
- "Browser GPU is local-only",
602
- "--browser-gpu uses the host Chrome GPU backend. Docker mode keeps browser rendering deterministic and does not expose a cross-platform Chrome GPU backend.",
603
- "Run without --docker, or use --gpu for Docker GPU encoding where your Docker host supports GPU passthrough."
604
- );
605
- failUsage();
606
- }
607
- const videoBitrate = args["video-bitrate"]?.trim();
608
- if (args.crf != null && videoBitrate) {
609
- errorBox("Conflicting encoder settings", "Use either --crf or --video-bitrate, not both.");
610
- failUsage();
611
- }
612
- const crf = args.crf != null ? positiveInteger(
613
- args.crf,
614
- "Invalid crf",
615
- `Got "${args.crf}". Must be a non-negative integer.`,
616
- 0
617
- ) : format === "mov" || args["video-bitrate"] ? void 0 : "crf" in qualityAlias ? qualityAlias.crf : void 0;
618
- let vp9CpuUsed;
619
- if (args["vp9-cpu-used"] != null) {
620
- const parsed = Number(args["vp9-cpu-used"]);
621
- if (!Number.isInteger(parsed) || parsed < MIN_VP9_CPU_USED || parsed > MAX_VP9_CPU_USED) {
622
- errorBox(
623
- "Invalid vp9-cpu-used",
624
- `Got "${args["vp9-cpu-used"]}". Must be an integer between ${MIN_VP9_CPU_USED} and ${MAX_VP9_CPU_USED}.`
625
- );
626
- failUsage();
627
- }
628
- vp9CpuUsed = parsed;
629
- }
630
- if (args["video-bitrate"] != null && !videoBitrate) {
631
- errorBox(
632
- "Invalid video-bitrate",
633
- `Got "${args["video-bitrate"]}". Must be a non-empty bitrate such as "10M".`
634
- );
635
- failUsage();
636
- }
637
- if (format === "mov" && (crf !== void 0 || videoBitrate !== void 0)) {
638
- const flag = crf !== void 0 ? "--crf" : "--video-bitrate";
639
- errorBox(
640
- "Unsupported ProRes rate control",
641
- `${flag} does not apply to MOV. MOV rate is set by the ProRes profile; see --prores-profile.`,
642
- `Remove ${flag}, or choose MP4/WebM when you need CRF or target-bitrate control.`
643
- );
644
- failUsage();
645
- }
646
- const delivery = parseDeliveryFlags(args);
647
- const { proresProfile, ...mp4Delivery } = delivery;
648
- if (proresProfile !== void 0 && format !== "mov") {
649
- errorBox(
650
- "ProRes profile applies to MOV",
651
- `--prores-profile sets the ProRes profile of a MOV file, not ${format}.`,
652
- "Remove it, or render --format mov."
653
- );
654
- failUsage();
655
- }
656
- if (Object.keys(mp4Delivery).length > 0 && format !== "mp4") {
657
- errorBox(
658
- "Delivery options apply to MP4",
659
- "--keyframe-interval, --max-bitrate and --buffer-size set how the MP4 encoder delivers the file.",
660
- "Remove them, or render --format mp4."
661
- );
662
- failUsage();
663
- }
664
- const range = parseRenderRange(args, format, fps, args.hdr);
665
- const quiet = args.quiet ?? false;
666
- const batchJson = args.json ?? false;
667
- return Object.freeze({
668
- project,
669
- entryFile,
670
- renderTarget,
671
- fps,
672
- quality,
673
- authoringSkill,
674
- invalidAuthoringSkill,
675
- authoringSkillSource,
676
- catalogUsage,
677
- format,
678
- gifLoop,
679
- gifFpsCapped,
680
- hlsSegmentSeconds,
681
- videoFrameFormat: videoFrameFormatRaw,
682
- pageMotionBlur,
683
- outputResolution,
684
- outputResolutionAspectAgnostic,
685
- outputResolutionRaw: args.resolution,
686
- workers,
687
- protocolTimeout,
688
- playerReadyTimeout,
689
- pageNavigationTimeoutMs: resolveBrowserTimeoutMsArg(args["browser-timeout"]),
690
- batchPath,
691
- batchConcurrency,
692
- batchFailFast: args["batch-fail-fast"] ?? false,
693
- batchOutputTemplate,
694
- outputPath,
695
- useDocker,
696
- useGpu,
697
- browserGpuMode,
698
- quiet,
699
- lintVerbose: args["lint-verbose"] ?? false,
700
- debug: args.debug ?? false,
701
- resumeSegments: args.resume ?? false,
702
- keepSegments: args["keep-segments"] ?? false,
703
- bestEffort: args["best-effort"] ?? true,
704
- waitForRenderSlot: args.wait ?? true,
705
- batchJson,
706
- effectiveQuiet: quiet || batchJson,
707
- strictAll: args["strict-all"] ?? false,
708
- strictErrors: (args.strict ?? false) || (args["strict-all"] ?? false),
709
- crf,
710
- vp9CpuUsed,
711
- videoBitrate,
712
- ...delivery,
713
- range,
714
- hdrMode: args.sdr ? "force-sdr" : args.hdr ? "force-hdr" : "auto",
715
- pageSideCompositing: args["page-side-compositing"] !== false,
716
- experimentalFastCapture: args["experimental-fast-capture"] === true,
717
- variablesArg: args.variables,
718
- variablesFileArg: args["variables-file"],
719
- strictVariables: args["strict-variables"] ?? false,
720
- environment: Object.freeze(environment),
721
- hfEnvOverrides
722
- });
723
- }
724
- function applyRenderEnvironment(plan) {
725
- for (const [key, value] of Object.entries(plan.environment)) process.env[key] = value;
726
- }
727
- function renderOutputDirectory(plan) {
728
- return dirname(plan.outputPath);
729
- }
730
- function resolveBrowserGpuForCli(useDocker, browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
731
- if (useDocker) return "software";
732
- if (browserGpuArg === true) return "hardware";
733
- if (browserGpuArg === false) return "software";
734
- if (envMode === "hardware" || envMode === "software" || envMode === "auto") return envMode;
735
- return "auto";
736
- }
222
+ import { mkdtempSync, readdirSync, readFileSync as readFileSync2, statSync, writeFileSync, rmSync } from "fs";
737
223
 
738
224
  // src/commands/render/present.ts
739
225
  import { cpus } from "os";
740
- import { readFileSync as readFileSync2 } from "fs";
226
+ import { readFileSync } from "fs";
741
227
  async function presentRenderPlan(plan) {
742
228
  await presentRenderWarnings(plan);
743
229
  if (plan.effectiveQuiet || plan.batchPath) return;
@@ -785,7 +271,7 @@ function formatGpuModes(plan) {
785
271
  async function warnForSlideshow(plan) {
786
272
  try {
787
273
  const { slideshowIslandRegex } = await import("./slideshow-ARJR22W4.js");
788
- if (!slideshowIslandRegex("i").test(readFileSync2(plan.renderTarget, "utf8"))) return;
274
+ if (!slideshowIslandRegex("i").test(readFileSync(plan.renderTarget, "utf8"))) return;
789
275
  console.log(
790
276
  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."
791
277
  );
@@ -824,339 +310,9 @@ async function acquireRenderSlot(plan, signal, lock = {}) {
824
310
  }
825
311
  }
826
312
 
827
- // src/commands/render/execute.ts
828
- import { readFileSync as readFileSync3 } from "fs";
829
- import { tmpdir } from "os";
830
-
831
- // src/ui/renderResult.ts
832
- function renderMachineResult(result, quiet) {
833
- if (quiet || process.stdout.isTTY || process.env.HYPERFRAMES_STDOUT_IS_TTY === "1") return;
834
- const hasBackground = REFERENCE_BACKGROUND_FIELD in result;
835
- if (!hasBackground && !result.motionBlur) return;
836
- const line = {
837
- version: 1,
838
- operation: "render",
839
- ...hasBackground ? referenceBackgroundResult(result[REFERENCE_BACKGROUND_FIELD]) : {},
840
- ...result.motionBlur ? { motion_blur: renderMotionBlurResult(result.motionBlur) } : {}
841
- };
842
- process.stdout.write(`@hf-result ${JSON.stringify(line)}
843
- `);
844
- }
845
-
846
- // src/commands/render/execute.ts
847
- function renderLintContinuationHint(strictErrors) {
848
- return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
849
- }
850
- function renderLintShouldAbort(strictErrors, strictAll, lintResult, definitiveEntryMismatch) {
851
- return definitiveEntryMismatch || shouldBlockRender(strictErrors, strictAll, lintResult.totalErrors, lintResult.totalWarnings);
852
- }
853
- async function executeRenderPlan(plan, dependencies, cancellation) {
854
- assertRenderActive(cancellation);
855
- applyRenderEnvironment(plan);
856
- if (!plan.batchPath) makeOutputFolder(renderOutputDirectory(plan));
857
- let batchModule;
858
- let preparedBatch;
859
- if (plan.batchPath) {
860
- batchModule = await import("./batchRender-CI6OFGS5.js");
861
- try {
862
- preparedBatch = batchModule.prepareBatchRender({
863
- batchPath: plan.batchPath,
864
- outputTemplate: plan.batchOutputTemplate,
865
- indexPath: plan.renderTarget,
866
- strictVariables: plan.strictVariables,
867
- quiet: plan.quiet || plan.batchJson,
868
- json: plan.batchJson
869
- });
870
- } catch (error) {
871
- batchModule.exitBatchRenderInputError(error);
872
- }
873
- }
874
- const variables = plan.batchPath ? void 0 : resolveVariablesArg(plan.variablesArg, plan.variablesFileArg);
875
- await runRenderLint(plan, lintProject, cancellation?.signal);
876
- assertRenderActive(cancellation);
877
- if (!plan.useDocker) await refuseLowDiskBeforeBrowserDownload(plan);
878
- const browserPath = plan.useDocker ? void 0 : await ensureRenderBrowser(plan, cancellation?.signal);
879
- assertRenderActive(cancellation);
880
- await runResolutionPreflight(plan, dependencies.checkResolution);
881
- assertRenderActive(cancellation);
882
- const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
883
- try {
884
- assertRenderActive(cancellation);
885
- await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
886
- batchModule,
887
- preparedBatch
888
- });
889
- } finally {
890
- releaseSlot?.();
891
- }
892
- }
893
- async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
894
- const { batchModule, preparedBatch } = batch;
895
- if (plan.batchPath && batchModule && preparedBatch) {
896
- await executeBatchRender(
897
- plan,
898
- browserPath,
899
- batchModule,
900
- preparedBatch,
901
- dependencies,
902
- cancellation
903
- );
904
- return;
905
- }
906
- reportSingleRenderNotes(plan, variables);
907
- const options = renderOptionsFromPlan(plan, browserPath, variables);
908
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
909
- const result = await execute(plan.project.dir, plan.outputPath, options, cancellation);
910
- renderMachineResult(result, plan.effectiveQuiet);
911
- }
912
- function reportSingleRenderNotes(plan, variables) {
913
- if (variables && Object.keys(variables).length > 0) {
914
- const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
915
- reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
916
- }
917
- if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.effectiveQuiet) {
918
- console.log(
919
- c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
920
- );
921
- }
922
- }
923
- function renderOptionsFromPlan(plan, browserPath, variables) {
924
- const options = {
925
- fps: plan.fps,
926
- quality: plan.quality,
927
- authoringSkill: plan.authoringSkill,
928
- authoringSkillSource: plan.authoringSkillSource,
929
- authoringSkillInvalid: plan.invalidAuthoringSkill,
930
- hfEnvOverrides: plan.hfEnvOverrides,
931
- catalogUsage: plan.catalogUsage,
932
- format: plan.format,
933
- gifLoop: plan.gifLoop,
934
- gifFpsCapped: plan.gifFpsCapped,
935
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
936
- workers: plan.workers,
937
- gpu: plan.useGpu,
938
- browserGpuMode: plan.browserGpuMode,
939
- hdrMode: plan.hdrMode,
940
- crf: plan.crf,
941
- vp9CpuUsed: plan.vp9CpuUsed,
942
- videoBitrate: plan.videoBitrate,
943
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
944
- range: plan.range,
945
- proresProfile: plan.proresProfile,
946
- maxBitrate: plan.maxBitrate,
947
- bufferSize: plan.bufferSize,
948
- videoFrameFormat: plan.videoFrameFormat,
949
- pageMotionBlur: plan.pageMotionBlur,
950
- quiet: plan.effectiveQuiet,
951
- browserPath,
952
- debug: plan.debug,
953
- resumeSegments: plan.resumeSegments,
954
- keepSegments: plan.keepSegments,
955
- bestEffort: plan.bestEffort,
956
- variables,
957
- entryFile: plan.entryFile,
958
- outputResolution: plan.outputResolution,
959
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
960
- outputResolutionRaw: plan.outputResolutionRaw,
961
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
962
- protocolTimeout: plan.protocolTimeout,
963
- playerReadyTimeout: plan.playerReadyTimeout,
964
- exitAfterComplete: true,
965
- manageDeParallelRouterBreaker: true
966
- };
967
- if (plan.useDocker) {
968
- options.pageSideCompositing = plan.pageSideCompositing;
969
- options.experimentalFastCapture = plan.experimentalFastCapture;
970
- }
971
- return options;
972
- }
973
- function assertRenderActive(cancellation) {
974
- cancellation?.checkAncestors();
975
- cancellation?.signal.throwIfAborted();
976
- }
977
- async function refuseLowDiskBeforeBrowserDownload(plan) {
978
- const { checkDisk } = await import("./preflight-HSWMKB2Q.js");
979
- await (await import("./manager-IAXYSRG5.js")).sweepKilledInstalls();
980
- const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
981
- const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
982
- if (low.length === 0) return;
983
- for (const check of low) errorBox(check.title ?? "Low disk space", check.detail, check.hint);
984
- failCommand();
985
- }
986
- async function ensureRenderBrowser(plan, signal) {
987
- const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
988
- let browserSpinner;
989
- try {
990
- if (plan.effectiveQuiet) {
991
- return (await ensureBrowser({ preferManagedChrome: true, signal })).executablePath;
992
- }
993
- const clack = await import("./prompts-7VQEH645.js");
994
- browserSpinner = clack.spinner();
995
- browserSpinner.start("Checking browser...");
996
- const info = await ensureBrowser({
997
- preferManagedChrome: true,
998
- signal,
999
- onProgress: (downloaded, total) => {
1000
- if (total <= 0) return;
1001
- const pct = Math.floor(downloaded / total * 100);
1002
- browserSpinner?.message(
1003
- `Downloading Chrome... ${c.progress(pct + "%")} ${c.dim("(" + formatBytes(downloaded) + " / " + formatBytes(total) + ")")}`
1004
- );
1005
- }
1006
- });
1007
- browserSpinner.stop(c.dim(`Browser: ${info.source}`));
1008
- return info.executablePath;
1009
- } catch (error) {
1010
- browserSpinner?.stop(c.error("Browser not available"));
1011
- if (signal?.aborted) signal.throwIfAborted();
1012
- errorBox(
1013
- "Chrome not found",
1014
- normalizeErrorMessage(error),
1015
- "Run: npx hyperframes browser ensure"
1016
- );
1017
- failCommand();
1018
- }
1019
- }
1020
- async function runRenderLint(plan, runLint = lintProject, signal) {
1021
- const explicitEntry = plan.entryFile ? plan.renderTarget : void 0;
1022
- const lintResult = signal && runLint === lintProject ? await runRenderLintInOwnedProcess(plan.project.dir, explicitEntry, signal) : await runLint(plan.project.dir, explicitEntry);
1023
- if (lintResult.totalErrors === 0 && lintResult.totalWarnings === 0) return;
1024
- const definitiveEntryMismatch = hasDefinitiveEntryMismatch(lintResult);
1025
- const willAbort = renderLintShouldAbort(
1026
- plan.strictErrors,
1027
- plan.strictAll,
1028
- lintResult,
1029
- definitiveEntryMismatch
1030
- );
1031
- presentRenderLintFindings(lintResult, plan.effectiveQuiet, plan.lintVerbose || willAbort);
1032
- if (willAbort) {
1033
- presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch);
1034
- failCommand();
1035
- }
1036
- presentRenderLintContinuation(plan);
1037
- }
1038
- async function runRenderLintInOwnedProcess(projectDir, entryFile, signal) {
1039
- return runRenderSetupWorker(
1040
- "lint",
1041
- { projectDir, entryFile },
1042
- {
1043
- signal,
1044
- maxBufferBytes: 8 * 1024 * 1024
1045
- }
1046
- );
1047
- }
1048
- function presentRenderLintFindings(lintResult, quiet, lintVerbose) {
1049
- if (quiet) return;
1050
- console.log("");
1051
- for (const line of formatLintStartupMessage(
1052
- lintResult,
1053
- lintVerbose ? { kind: "verbose", options: { errorsFirst: true } } : { kind: "summary" }
1054
- ))
1055
- console.log(line);
1056
- }
1057
- function presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch) {
1058
- const mode = plan.strictAll ? "--strict-all" : "--strict";
1059
- const counts = `${lintResult.totalErrors} error(s), ${lintResult.totalWarnings} warning(s)`;
1060
- const findings = lintResult.results.flatMap((entry) => entry.result.findings);
1061
- const first = findings.find((finding) => finding.severity === "error") ?? findings[0];
1062
- errorBox(
1063
- definitiveEntryMismatch ? "Aborting render because the default index.html entry is blank." : `Aborting render due to lint issues in ${mode} mode: ${counts}`,
1064
- first ? `${first.code}: ${first.message}` : void 0,
1065
- "Run hyperframes lint for the full list."
1066
- );
1067
- }
1068
- function presentRenderLintContinuation(plan) {
1069
- if (plan.effectiveQuiet) return;
1070
- console.log(c.dim(renderLintContinuationHint(plan.strictErrors)));
1071
- console.log("");
1072
- }
1073
- async function runResolutionPreflight(plan, checkResolution) {
1074
- if (!plan.outputResolution) return;
1075
- let issue;
1076
- try {
1077
- issue = await checkResolution(readFileSync3(plan.renderTarget, "utf8"), plan.outputResolution, {
1078
- alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
1079
- hdrRequested: plan.hdrMode === "force-hdr",
1080
- aspectAgnostic: plan.outputResolutionAspectAgnostic
1081
- });
1082
- } catch {
1083
- }
1084
- if (!issue) return;
1085
- trackRenderPreflightRejected({ kind: issue.kind });
1086
- errorBox("Output resolution incompatible", issue.message);
1087
- failCommand();
1088
- }
1089
- function batchRowRenderOptions(plan, browserPath) {
1090
- const batchQuiet = plan.quiet || plan.batchJson;
1091
- return {
1092
- fps: plan.fps,
1093
- quality: plan.quality,
1094
- authoringSkill: plan.authoringSkill,
1095
- authoringSkillSource: plan.authoringSkillSource,
1096
- authoringSkillInvalid: plan.invalidAuthoringSkill,
1097
- hfEnvOverrides: plan.hfEnvOverrides,
1098
- catalogUsage: plan.catalogUsage,
1099
- format: plan.format,
1100
- gifLoop: plan.gifLoop,
1101
- gifFpsCapped: plan.gifFpsCapped,
1102
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
1103
- workers: plan.workers,
1104
- gpu: plan.useGpu,
1105
- browserGpuMode: plan.browserGpuMode,
1106
- hdrMode: plan.hdrMode,
1107
- crf: plan.crf,
1108
- vp9CpuUsed: plan.vp9CpuUsed,
1109
- videoBitrate: plan.videoBitrate,
1110
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
1111
- range: plan.range,
1112
- proresProfile: plan.proresProfile,
1113
- maxBitrate: plan.maxBitrate,
1114
- bufferSize: plan.bufferSize,
1115
- videoFrameFormat: plan.videoFrameFormat,
1116
- pageMotionBlur: plan.pageMotionBlur,
1117
- quiet: batchQuiet,
1118
- browserPath,
1119
- entryFile: plan.entryFile,
1120
- outputResolution: plan.outputResolution,
1121
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
1122
- outputResolutionRaw: plan.outputResolutionRaw,
1123
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
1124
- protocolTimeout: plan.protocolTimeout,
1125
- playerReadyTimeout: plan.playerReadyTimeout,
1126
- debug: plan.debug,
1127
- resumeSegments: plan.resumeSegments,
1128
- keepSegments: plan.keepSegments,
1129
- bestEffort: plan.bestEffort,
1130
- exitAfterComplete: false,
1131
- throwOnError: true,
1132
- skipFeedback: true,
1133
- desktopHint: false,
1134
- manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
1135
- };
1136
- }
1137
- async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
1138
- const batchQuiet = plan.quiet || plan.batchJson;
1139
- const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
1140
- const manifest = await batchModule.runBatchRender({
1141
- prepared: preparedBatch,
1142
- concurrency: plan.batchConcurrency,
1143
- failFast: plan.batchFailFast,
1144
- quiet: batchQuiet,
1145
- json: plan.batchJson,
1146
- renderOne: (row) => {
1147
- assertRenderActive(cancellation);
1148
- const options = { ...renderOptionsBase, variables: row.variables };
1149
- if (plan.useDocker) options.pageSideCompositing = plan.pageSideCompositing;
1150
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
1151
- return execute(plan.project.dir, row.outputPath, options, cancellation);
1152
- }
1153
- });
1154
- if (manifest.failed > 0) setCommandExitCode(1);
1155
- }
1156
-
1157
313
  // src/commands/render.ts
1158
- import { freemem, tmpdir as tmpdir2 } from "os";
1159
- import { resolve as resolve3, dirname as dirname2, join as join2, basename } from "path";
314
+ import { freemem, tmpdir } from "os";
315
+ import { resolve, dirname, join, basename } from "path";
1160
316
  import { execFileSync as execFileSync2, spawn } from "child_process";
1161
317
 
1162
318
  // src/utils/webmAlphaCheck.ts
@@ -1465,6 +621,7 @@ function buildDockerRunArgs(input) {
1465
621
  ...options.maxBitrate ? ["--max-bitrate", options.maxBitrate] : [],
1466
622
  ...options.bufferSize ? ["--buffer-size", options.bufferSize] : [],
1467
623
  ...options.videoFrameFormat && options.videoFrameFormat !== "auto" ? ["--video-frame-format", options.videoFrameFormat] : [],
624
+ ...options.chromaSubsampling === "444" ? ["--chroma-subsampling", "444"] : [],
1468
625
  ...options.pageMotionBlur !== void 0 ? ["--page-motion-blur", options.pageMotionBlur] : [],
1469
626
  ...options.quiet ? ["--quiet"] : [],
1470
627
  ...options.debug ? ["--debug"] : [],
@@ -1729,6 +886,11 @@ var render_default = defineCommand({
1729
886
  type: "string",
1730
887
  description: "libvpx-vp9 -cpu-used value for WebM encodes (-8 to 8). Higher is faster with a larger quality/size tradeoff. Env: PRODUCER_VP9_CPU_USED."
1731
888
  },
889
+ "chroma-subsampling": {
890
+ type: "string",
891
+ description: "MP4 chroma: 420 (default) or 444. 444 keeps full-resolution colour for thin coloured text and UI (yuv444p, lossless PNG capture, slower). Software encoder and SDR MP4 only; many players cannot decode 4:4:4.",
892
+ default: "420"
893
+ },
1732
894
  gpu: { type: "boolean", description: "Use GPU encoding", default: false },
1733
895
  "browser-gpu": {
1734
896
  type: "boolean",
@@ -1916,11 +1078,11 @@ function dockerImageTag(version) {
1916
1078
  return `${DOCKER_IMAGE_PREFIX}:${version}`;
1917
1079
  }
1918
1080
  function resolveDockerfilePath() {
1919
- const builtPath = resolve3(__dirname, "docker", "Dockerfile.render");
1920
- const devPath = resolve3(__dirname, "..", "src", "docker", "Dockerfile.render");
1081
+ const builtPath = resolve(__dirname, "docker", "Dockerfile.render");
1082
+ const devPath = resolve(__dirname, "..", "src", "docker", "Dockerfile.render");
1921
1083
  for (const p of [builtPath, devPath]) {
1922
1084
  try {
1923
- statSync2(p);
1085
+ statSync(p);
1924
1086
  return p;
1925
1087
  } catch {
1926
1088
  continue;
@@ -1948,8 +1110,8 @@ function ensureDockerImage(version, platform, quiet) {
1948
1110
  }
1949
1111
  if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
1950
1112
  const dockerfilePath = resolveDockerfilePath();
1951
- const tmpDir = mkdtempSync(join2(tmpdir2(), "hyperframes-docker-"));
1952
- writeFileSync(join2(tmpDir, "Dockerfile"), readFileSync4(dockerfilePath));
1113
+ const tmpDir = mkdtempSync(join(tmpdir(), "hyperframes-docker-"));
1114
+ writeFileSync(join(tmpDir, "Dockerfile"), readFileSync2(dockerfilePath));
1953
1115
  const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
1954
1116
  try {
1955
1117
  execFileSync2(
@@ -2020,12 +1182,12 @@ async function renderDocker(projectDir, outputPath, options) {
2020
1182
  errorBox(failure.title, failure.message, failure.hint);
2021
1183
  failCommand();
2022
1184
  }
2023
- const outputDir = dirname2(outputPath);
1185
+ const outputDir = dirname(outputPath);
2024
1186
  const outputFilename = basename(outputPath);
2025
1187
  const dockerArgs = buildDockerRunArgs({
2026
1188
  imageTag,
2027
- projectDir: resolve3(projectDir),
2028
- outputDir: resolve3(outputDir),
1189
+ projectDir: resolve(projectDir),
1190
+ outputDir: resolve(outputDir),
2029
1191
  outputFilename,
2030
1192
  platform,
2031
1193
  hostStdoutIsTty: process.stdout.isTTY === true,
@@ -2048,6 +1210,7 @@ async function renderDocker(projectDir, outputPath, options) {
2048
1210
  maxBitrate: options.maxBitrate,
2049
1211
  bufferSize: options.bufferSize,
2050
1212
  videoFrameFormat: options.videoFrameFormat,
1213
+ chromaSubsampling: options.chromaSubsampling,
2051
1214
  pageMotionBlur: options.pageMotionBlur,
2052
1215
  quiet: options.quiet,
2053
1216
  variables: options.variables,
@@ -2087,7 +1250,7 @@ async function renderDocker(projectDir, outputPath, options) {
2087
1250
  }
2088
1251
  const elapsed = Date.now() - startTime;
2089
1252
  const cpuUsage = cpu.stop();
2090
- markRenderSucceeded();
1253
+ if (!options.embedded) markRenderSucceeded();
2091
1254
  await runPostRenderStepAsync(
2092
1255
  "recordRenderSuccess",
2093
1256
  () => recordRenderSuccess(projectDir, outputPath, "completed", capture).then(() => {
@@ -2128,7 +1291,7 @@ async function renderDocker(projectDir, outputPath, options) {
2128
1291
  "warnIfWebmAlphaDropped",
2129
1292
  () => warnIfWebmAlphaDropped(outputPath, options.format, options.quiet)
2130
1293
  );
2131
- if (options.exitAfterComplete) scheduleCliExit();
1294
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2132
1295
  return { renderTimeMs: elapsed };
2133
1296
  }
2134
1297
  async function renderLocal(projectDir, outputPath, options, commandCancellation) {
@@ -2161,7 +1324,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2161
1324
  }
2162
1325
  const preflight = await runEnvironmentChecks({
2163
1326
  projectDir,
2164
- diskPaths: [tmpdir2(), dirname2(outputPath)],
1327
+ diskPaths: [tmpdir(), dirname(outputPath)],
2165
1328
  browserPath: options.browserPath,
2166
1329
  includeBrowser: true,
2167
1330
  includeDisk: true,
@@ -2289,6 +1452,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2289
1452
  maxBitrate: options.maxBitrate,
2290
1453
  bufferSize: options.bufferSize,
2291
1454
  videoFrameFormat: options.videoFrameFormat,
1455
+ chromaSubsampling: options.chromaSubsampling,
2292
1456
  pageMotionBlur: options.pageMotionBlur,
2293
1457
  variables: options.variables,
2294
1458
  entryFile: options.entryFile,
@@ -2345,7 +1509,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2345
1509
  job
2346
1510
  );
2347
1511
  }
2348
- markRenderSucceeded();
1512
+ if (!options.embedded) markRenderSucceeded();
2349
1513
  await runPostRenderStepAsync(
2350
1514
  "recordRenderSuccess",
2351
1515
  () => recordRenderSuccess(
@@ -2396,7 +1560,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2396
1560
  })
2397
1561
  );
2398
1562
  }
2399
- if (options.exitAfterComplete) scheduleCliExit();
1563
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2400
1564
  const durationMs = job.perfSummary ? Math.round(job.perfSummary.compositionDurationSeconds * 1e3) : void 0;
2401
1565
  const outcome = job.outcome === "completed_with_warnings" ? "completed_with_warnings" : "completed";
2402
1566
  return {
@@ -2431,7 +1595,7 @@ async function renderRange(input) {
2431
1595
  } catch (error) {
2432
1596
  handleRenderError(error, options, input.startTime, input.cpu, false, "");
2433
1597
  }
2434
- markRenderSucceeded();
1598
+ if (!options.embedded) markRenderSucceeded();
2435
1599
  const elapsed = Date.now() - input.startTime;
2436
1600
  input.cpu.stop();
2437
1601
  printRenderComplete({
@@ -2442,7 +1606,7 @@ async function renderRange(input) {
2442
1606
  quiet: options.quiet,
2443
1607
  format: options.format
2444
1608
  });
2445
- if (options.exitAfterComplete) scheduleCliExit();
1609
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2446
1610
  return {
2447
1611
  renderTimeMs: elapsed,
2448
1612
  ...reference,
@@ -2914,13 +2078,13 @@ function trackRenderMetrics(job, elapsedMs, options, docker, cpuUsage) {
2914
2078
  }
2915
2079
  function readOutputFootprint(outputPath) {
2916
2080
  try {
2917
- const stat = statSync2(outputPath);
2081
+ const stat = statSync(outputPath);
2918
2082
  if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
2919
2083
  let total = 0;
2920
2084
  for (const entry of readdirSync(outputPath, { withFileTypes: true })) {
2921
2085
  if (!entry.isFile()) continue;
2922
2086
  try {
2923
- total += statSync2(join2(outputPath, entry.name)).size;
2087
+ total += statSync(join(outputPath, entry.name)).size;
2924
2088
  } catch {
2925
2089
  }
2926
2090
  }