hyperframes 0.9.32 → 0.9.34

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 (303) hide show
  1. package/bin/hyperframes.mjs +10 -0
  2. package/dist/{add-HYI4YJC5.js → add-NBOJ2UA3.js} +18 -17
  3. package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-3JOLQXTX.js} +11 -11
  4. package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-VI5CFYCR.js} +10 -10
  5. package/dist/api.js +49 -48
  6. package/dist/{appHistory-WZIHFCPK.js → appHistory-535MKSWI.js} +2 -2
  7. package/dist/{asset-7FG3M3FQ.js → asset-NYULKN5A.js} +2 -2
  8. package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-AWJMEMX7.js} +12 -12
  9. package/dist/{audio-R6ZG62DU.js → audio-QN5YYFOA.js} +31 -30
  10. package/dist/{auth-IPDYZXOG.js → auth-LHUBRGIH.js} +4 -4
  11. package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-5M3JGEFS.js} +3 -3
  12. package/dist/{avatars-A45VFUZ4.js → avatars-DAB2KILV.js} +19 -18
  13. package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-3NQOCEDM.js} +4 -4
  14. package/dist/backgroundChecksWorker.js +4 -4
  15. package/dist/{batchRender-VBSYVQA7.js → batchRender-EPRIJZVT.js} +4 -4
  16. package/dist/{beats-UPJ3KANG.js → beats-ZCPQEIFG.js} +14 -14
  17. package/dist/{benchmark-2RWYJGL2.js → benchmark-7OVOBGQX.js} +11 -11
  18. package/dist/{billing-MD66MJTA.js → billing-7K6S23FP.js} +19 -18
  19. package/dist/{browser-JXCS62NX.js → browser-CP76THCA.js} +10 -9
  20. package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-MRCRI676.js} +1 -1
  21. package/dist/{capture-M6DT5WZT.js → capture-B4B72PIK.js} +4 -4
  22. package/dist/{capture-DJ4WRP62.js → capture-VAE27MNW.js} +51 -31
  23. package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-YAOQTG6R.js} +18 -18
  24. package/dist/{captureFile-Y2ZMB7HK.js → captureFile-P4BDKVJH.js} +2 -2
  25. package/dist/{catalog-GW45OWKU.js → catalog-TUZGNHN6.js} +18 -17
  26. package/dist/{catch-up-YKJQ4IYC.js → catch-up-GMUF3JXI.js} +11 -11
  27. package/dist/{check-7QTKMPGA.js → check-CHCV573Z.js} +51 -51
  28. package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-JJZN37WT.js} +19 -19
  29. package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-SK7GFN7U.js} +44 -44
  30. package/dist/{chunk-X6DWLN55.js → chunk-2HDVXVUA.js} +8 -4
  31. package/dist/{chunk-JMV63CNH.js → chunk-2JXJQ3ZQ.js} +2 -2
  32. package/dist/{chunk-6BI6URO2.js → chunk-2JZU6DYH.js} +5 -4
  33. package/dist/{chunk-SXOIG6VG.js → chunk-2OP5HU5S.js} +284 -192
  34. package/dist/{chunk-KRWPTZBY.js → chunk-3FQYFVWA.js} +99 -25
  35. package/dist/{chunk-G7NKYELQ.js → chunk-3K4THQHY.js} +4 -4
  36. package/dist/{chunk-SIRYW7SY.js → chunk-3P4OYIBA.js} +2 -2
  37. package/dist/{chunk-WTO4DHBH.js → chunk-3XJ42WUG.js} +1 -1
  38. package/dist/{chunk-XPT4GC6X.js → chunk-45IPAGED.js} +7 -7
  39. package/dist/{chunk-HWMNSWEA.js → chunk-4MVWA7NJ.js} +6 -6
  40. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  41. package/dist/{chunk-6MTSP2XE.js → chunk-4TQS6ZSL.js} +7 -7
  42. package/dist/{chunk-5GXMZIQZ.js → chunk-4WXLBRT5.js} +31 -22
  43. package/dist/{chunk-YIE5FU73.js → chunk-4Y4VYZRO.js} +37 -3
  44. package/dist/{chunk-K72X2YXR.js → chunk-52CUHVEA.js} +4 -4
  45. package/dist/{chunk-TLUDJLBN.js → chunk-55I56MXF.js} +1 -1
  46. package/dist/{chunk-2T7EDEKE.js → chunk-5QPYUTV3.js} +8 -8
  47. package/dist/{chunk-WLNQAJQC.js → chunk-5SXAEHZT.js} +2 -2
  48. package/dist/{chunk-77UB5EHM.js → chunk-5WK76INI.js} +1 -1
  49. package/dist/{chunk-5VN7ZXJR.js → chunk-5ZTB6QIJ.js} +3 -3
  50. package/dist/{chunk-ZIYXPDKY.js → chunk-65PFUPLX.js} +1 -1
  51. package/dist/{chunk-LHFBKUVY.js → chunk-6FP6HBG4.js} +2 -2
  52. package/dist/{chunk-YCTWMO3G.js → chunk-6HG3XABE.js} +1 -1
  53. package/dist/{chunk-LJMTEZOP.js → chunk-6K5KVYOQ.js} +16 -16
  54. package/dist/{chunk-34S7GYVK.js → chunk-6OYPVALW.js} +15 -8
  55. package/dist/{chunk-G2XAFJ2B.js → chunk-74PKHC3W.js} +1 -1
  56. package/dist/{chunk-N6Y645MX.js → chunk-7C6K5WFB.js} +1 -1
  57. package/dist/{chunk-M6FNCANA.js → chunk-7E5HPNMD.js} +1 -1
  58. package/dist/{chunk-CHJGVW5W.js → chunk-7YBRRU5W.js} +4 -11
  59. package/dist/{chunk-2NMBD5AH.js → chunk-7YOJPNDT.js} +1 -1
  60. package/dist/{chunk-GCJRV7LU.js → chunk-A2YCAF35.js} +23 -37
  61. package/dist/{chunk-E5S4QMX7.js → chunk-AG6L5CUE.js} +2 -2
  62. package/dist/{chunk-SVI2CJ6R.js → chunk-AOTAYP5E.js} +1 -1
  63. package/dist/{chunk-VB3JZKMN.js → chunk-ASORF7UJ.js} +31 -10
  64. package/dist/{chunk-XB7HE2R5.js → chunk-AUM475MS.js} +3 -3
  65. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  66. package/dist/{chunk-I3QXWJ7V.js → chunk-BDFD3C3V.js} +7 -7
  67. package/dist/{chunk-YAS347ZS.js → chunk-BLII22FU.js} +1 -1
  68. package/dist/{chunk-CMYUPVMI.js → chunk-BX4GM3IV.js} +2 -2
  69. package/dist/{chunk-D7NNNL2K.js → chunk-BZPRG5N5.js} +18 -18
  70. package/dist/{chunk-H4C3P2KV.js → chunk-C3TYMGWE.js} +3 -3
  71. package/dist/{chunk-6NNLDCX4.js → chunk-C62LSZVJ.js} +1 -1
  72. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  73. package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
  74. package/dist/{chunk-GBIASKIH.js → chunk-DH34XRVW.js} +1 -1
  75. package/dist/{chunk-6SNGKC6B.js → chunk-DLBFLOEU.js} +1 -1
  76. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  77. package/dist/{chunk-Z6X64P6C.js → chunk-DTM7HGP4.js} +6 -6
  78. package/dist/{chunk-2W4VQ3YZ.js → chunk-E53F4CP6.js} +2 -2
  79. package/dist/{chunk-3R2X2VKB.js → chunk-ECKXTBRB.js} +6 -4
  80. package/dist/{chunk-RCRUWNQ4.js → chunk-EDQF36I7.js} +3 -3
  81. package/dist/{chunk-GWSCUFGL.js → chunk-EWBLIDHD.js} +11 -9
  82. package/dist/{chunk-BMDABBHG.js → chunk-FEWHHDFA.js} +5 -17
  83. package/dist/{chunk-EBG5RCPM.js → chunk-FILLRGVO.js} +4 -4
  84. package/dist/{chunk-3HT3UGF2.js → chunk-FRY73NRV.js} +1 -1
  85. package/dist/{chunk-KAG5KXNO.js → chunk-FS4XHCSU.js} +1 -1
  86. package/dist/{chunk-GOMTMQRT.js → chunk-G6ME77PU.js} +1 -1
  87. package/dist/{chunk-GTHRXU37.js → chunk-GJB5VR44.js} +18 -18
  88. package/dist/{chunk-G6JLFSII.js → chunk-GXGGPZXD.js} +4 -4
  89. package/dist/chunk-H6323NVP.js +453 -0
  90. package/dist/chunk-HYTD4CIO.js +57 -0
  91. package/dist/{chunk-P7TCIUP2.js → chunk-I2GYLBJJ.js} +4 -4
  92. package/dist/{chunk-BA3EQ2KL.js → chunk-IVMYWHFE.js} +3 -3
  93. package/dist/{chunk-HDCVU64B.js → chunk-IX6BFRED.js} +3 -2
  94. package/dist/{chunk-W3HNLDK6.js → chunk-JJUVQYXL.js} +2 -2
  95. package/dist/{chunk-HXQDDCGY.js → chunk-JQATOGQQ.js} +2 -2
  96. package/dist/{chunk-2Z42EUHG.js → chunk-JVDYIUFD.js} +2 -2
  97. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  98. package/dist/{chunk-SFPIVVUE.js → chunk-K4TEEYGN.js} +2 -2
  99. package/dist/{chunk-KFXHBP2E.js → chunk-K5BPLZOP.js} +2 -2
  100. package/dist/{chunk-H7AJLEBR.js → chunk-K6EOKQ6J.js} +8 -8
  101. package/dist/{chunk-Y3YHDU7T.js → chunk-KCL77FXI.js} +1 -1
  102. package/dist/{chunk-PXDRW3QN.js → chunk-LB6VJTM4.js} +1 -1
  103. package/dist/{chunk-EXW2LV4K.js → chunk-LCQT4S43.js} +248 -62
  104. package/dist/chunk-M3BJEZ7E.js +152 -0
  105. package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
  106. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  107. package/dist/{chunk-M6LAGO6O.js → chunk-NAKQS3EJ.js} +3 -3
  108. package/dist/{chunk-TTSLKH63.js → chunk-NMMPHHN7.js} +3 -3
  109. package/dist/{chunk-UWMOMAYI.js → chunk-O2S5HR7Y.js} +49 -12
  110. package/dist/{chunk-D6BV6TTI.js → chunk-OKN7E77Z.js} +1 -1
  111. package/dist/{chunk-XH6LGDIB.js → chunk-PDE6XAIJ.js} +4 -4
  112. package/dist/{chunk-4FTJE22M.js → chunk-PNBWAA3E.js} +2 -2
  113. package/dist/{chunk-AOQRVS63.js → chunk-PVHNBJCI.js} +9 -7
  114. package/dist/{chunk-3PHCFSPD.js → chunk-PWSTB75B.js} +2 -2
  115. package/dist/{chunk-PVSRPNIV.js → chunk-PXWPBLEN.js} +2 -2
  116. package/dist/{chunk-IEEIPTDW.js → chunk-PYZVKGW5.js} +1 -1
  117. package/dist/{chunk-5FFYMVRD.js → chunk-Q2G4ERQU.js} +2 -2
  118. package/dist/{chunk-YMIEJZB6.js → chunk-QDSALYDV.js} +4 -4
  119. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  120. package/dist/{chunk-XDRSEU2I.js → chunk-R3C62AP3.js} +4 -4
  121. package/dist/{chunk-L72MPEM2.js → chunk-RJJ5NVSQ.js} +1 -1
  122. package/dist/{chunk-KXOKZJBZ.js → chunk-RSQTFDMS.js} +13 -13
  123. package/dist/{chunk-6RFCS4IU.js → chunk-RYJXT2AS.js} +9 -7
  124. package/dist/{chunk-GJUL3PRV.js → chunk-S3HTROSO.js} +3 -3
  125. package/dist/{chunk-AZ2QJETV.js → chunk-SAIPA3QY.js} +1 -1
  126. package/dist/{chunk-4CSZZXL6.js → chunk-SDBFTY6V.js} +3 -3
  127. package/dist/{chunk-TZH6HNZH.js → chunk-SG4OW2HV.js} +2 -2
  128. package/dist/{chunk-AWT5FHTN.js → chunk-T4YI2YLF.js} +1 -1
  129. package/dist/{chunk-TVQNABOI.js → chunk-T7O62YTY.js} +1 -1
  130. package/dist/chunk-TDOJW7Z2.js +5053 -0
  131. package/dist/{chunk-3367VNGK.js → chunk-TGGYHFTP.js} +2 -2
  132. package/dist/{chunk-NNOAOQLT.js → chunk-TGK7LUEV.js} +2 -2
  133. package/dist/chunk-TLU5DPES.js +560 -0
  134. package/dist/{chunk-LXIEKLAC.js → chunk-TOLY2QK2.js} +6 -6
  135. package/dist/chunk-UFKWSLJ5.js +392 -0
  136. package/dist/{chunk-PXY3JZP2.js → chunk-UGWY7PFQ.js} +2 -2
  137. package/dist/{chunk-REJ4NIBY.js → chunk-VJSKNQTM.js} +1 -1
  138. package/dist/{chunk-NXSKZE3C.js → chunk-VW35U2LJ.js} +2 -2
  139. package/dist/{chunk-JZIEZCQM.js → chunk-VZO3BUTW.js} +5 -12
  140. package/dist/{chunk-TFBPCJPG.js → chunk-W6AXNWGE.js} +1 -1
  141. package/dist/{chunk-262ADJJN.js → chunk-WC2XQ4NR.js} +1 -1
  142. package/dist/{chunk-WXOOAAT4.js → chunk-WLB2D2OJ.js} +36 -4
  143. package/dist/{chunk-P5E3RHW3.js → chunk-WWT32C2M.js} +3 -3
  144. package/dist/{chunk-ADP2GIBS.js → chunk-XEUTASNL.js} +2 -2
  145. package/dist/{chunk-MYFAVVA6.js → chunk-YCXNWQ3B.js} +32 -32
  146. package/dist/{chunk-JHX76QFC.js → chunk-YMTLKSXO.js} +1 -1
  147. package/dist/{chunk-KG3TONXU.js → chunk-Z222HDGC.js} +9 -9
  148. package/dist/chunk-Z3ZLN5VR.js +3890 -0
  149. package/dist/{chunk-EJPWGGPK.js → chunk-Z64I7KJZ.js} +5340 -5087
  150. package/dist/{chunk-LBQQNNRC.js → chunk-ZWLFWYHR.js} +1 -1
  151. package/dist/{clean-MJBET4EN.js → clean-N7RLS5LN.js} +29 -29
  152. package/dist/cli.js +70 -68
  153. package/dist/{cloud-Z4Q76MLS.js → cloud-4PO7BA26.js} +8 -7
  154. package/dist/{cloud-WEDQYHZE.js → cloud-W3DHH6EB.js} +4 -4
  155. package/dist/{cloudrun-2KGSRAKA.js → cloudrun-YIAPIPOG.js} +7 -7
  156. package/dist/{compare-MJKWQOD7.js → compare-GCWIIUGY.js} +43 -43
  157. package/dist/{compiler-ETXRTUQC.js → compiler-L3BJI43E.js} +8 -6
  158. package/dist/{component-PZGKEJ6L.js → component-C4VYDMZ4.js} +3 -3
  159. package/dist/{compositions-N3FEEWH7.js → compositions-5P4BZQJA.js} +16 -16
  160. package/dist/{contactSheet-HZMP42FZ.js → contactSheet-ROMTQQ6Y.js} +3 -3
  161. package/dist/contract/LICENSE-Unicode.txt +39 -0
  162. package/dist/contract/path-policy.json +311 -0
  163. package/dist/contract/unicode-15.1.0.json +6179 -0
  164. package/dist/{curve-MWABBM7Q.js → curve-IMXKUBAO.js} +15 -15
  165. package/dist/{cuts-BQFSSNY7.js → cuts-PRBLX5HH.js} +16 -16
  166. package/dist/{delete-HPHGJABK.js → delete-QYWDRFO3.js} +11 -10
  167. package/dist/{deploy-JY2QOB5F.js → deploy-DGEPSTOJ.js} +7 -7
  168. package/dist/{describeProject-S6AGYZWL.js → describeProject-WS4TR7VF.js} +11 -11
  169. package/dist/{destroy-AZK7J4IR.js → destroy-2KSDD4KU.js} +6 -6
  170. package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-D3HTAAN2.js} +3 -3
  171. package/dist/{diff-XDNFCAU4.js → diff-AAWRGZLX.js} +47 -46
  172. package/dist/{dist-6EE3Y4M7.js → dist-DJQRHSKZ.js} +4 -4
  173. package/dist/{dist-EYEYDD4F.js → dist-GJSMSEEL.js} +22 -18
  174. package/dist/{dist-TYGDYK56.js → dist-V2TLDLQL.js} +3 -3
  175. package/dist/{doctor-6IRSMKZD.js → doctor-CARXZUFN.js} +18 -18
  176. package/dist/{energy-VCJ2FJEF.js → energy-VMNGG2ND.js} +16 -16
  177. package/dist/{events-DNTIMCUM.js → events-4XIJRQIJ.js} +18 -18
  178. package/dist/{events-QQYBD7JM.js → events-LOPLHMOT.js} +4 -4
  179. package/dist/{events-M6A7BT3V.js → events-XX3DYSU4.js} +8 -8
  180. package/dist/execute-U7JKJERV.js +109 -0
  181. package/dist/{extract-X3IVXYHX.js → extract-KYFUTYDD.js} +19 -19
  182. package/dist/{face-MZHXKBDB.js → face-VQGUHRQL.js} +18 -18
  183. package/dist/{feedback-TAMGYFUO.js → feedback-UPWYWOQ3.js} +19 -18
  184. package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-RUOPT3JH.js} +10 -10
  185. package/dist/{figma-WMD7AR2S.js → figma-TO57RICW.js} +3 -3
  186. package/dist/fontLocalizeCli.js +16 -16
  187. package/dist/{frames-OU2UOLBU.js → frames-4Y3X474I.js} +18 -18
  188. package/dist/{generate-6F6QEFXW.js → generate-BPID6U7D.js} +32 -31
  189. package/dist/{get-VVDO7DXG.js → get-JIJ46VI5.js} +11 -10
  190. package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-5ZJNSR7D.js} +10 -10
  191. package/dist/{grade-compare-O6LY2U73.js → grade-compare-YTBW7C65.js} +44 -44
  192. package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-OL7KF7SH.js} +11 -11
  193. package/dist/{help-XLSTTDHR.js → help-QPV26QI5.js} +2 -1
  194. package/dist/{history-DBCCWBDG.js → history-7UVGTZT3.js} +14 -14
  195. package/dist/hyperframe.manifest.json +1 -1
  196. package/dist/hyperframe.runtime.iife.js +61 -61
  197. package/dist/hyperframes-player.global.js +1 -1
  198. package/dist/{info-E46BWAQ7.js → info-2VFXR7LJ.js} +18 -18
  199. package/dist/{init-23TG5W7S.js → init-JZ7CJQJE.js} +35 -35
  200. package/dist/{ink-6UFSNJRW.js → ink-SS7XOD7Y.js} +16 -16
  201. package/dist/{inspect-RKI6XACH.js → inspect-D5MBKDZZ.js} +41 -41
  202. package/dist/{installer-JWPK75BR.js → installer-UNC4BAFO.js} +7 -7
  203. package/dist/{keyframes-J65V5A2G.js → keyframes-7T2CVOM6.js} +14 -12
  204. package/dist/{lambda-RZSXXBJU.js → lambda-QVJFVSXL.js} +16 -16
  205. package/dist/{layout-RJQUOYWB.js → layout-5DF7VFWS.js} +41 -41
  206. package/dist/{lint-4TUHKKA2.js → lint-EWJHJKAI.js} +14 -14
  207. package/dist/{lintProject-R6RTBSCZ.js → lintProject-KBJU3L4C.js} +4 -4
  208. package/dist/{list-HOD2N4VS.js → list-DDLH5ZG5.js} +13 -12
  209. package/dist/{localPage-TC4NC3VL.js → localPage-MHAXFUGI.js} +11 -11
  210. package/dist/{login-NTOS3HKD.js → login-BJ4QUZT4.js} +8 -7
  211. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  212. package/dist/{look-GC63E2I7.js → look-HNK2K33N.js} +16 -16
  213. package/dist/{manager-FICBET24.js → manager-FFLFDJZ6.js} +11 -11
  214. package/dist/{manager-IAXYSRG5.js → manager-VLO3FZC4.js} +2 -1
  215. package/dist/{measure-WTQCSQ55.js → measure-SE346MGF.js} +11 -11
  216. package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-KYPDRIBT.js} +18 -18
  217. package/dist/{media-use-K75FDXJ3.js → media-use-OJZHSNTK.js} +21 -10
  218. package/dist/{models-JKOA542M.js → models-KWSHPDZ5.js} +15 -15
  219. package/dist/{motionShot-A3TYKTQU.js → motionShot-HEROABIE.js} +24 -24
  220. package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-ZD5W37ZO.js} +14 -14
  221. package/dist/oauth-SAVP2YM4.js +40 -0
  222. package/dist/{open-F6GI4TRA.js → open-7B6HT4EX.js} +19 -19
  223. package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-5AKE7TBH.js} +19 -19
  224. package/dist/{pipeline-7P7LGGQG.js → pipeline-UTVSWC4X.js} +13 -13
  225. package/dist/plan-SQ63IXQC.js +88 -0
  226. package/dist/{play-DYOZLKWX.js → play-NYBFE3GW.js} +32 -32
  227. package/dist/{preflight-VM4HSRBY.js → preflight-T23WHZP3.js} +12 -12
  228. package/dist/{present-IINIEZJC.js → present-FX22552Q.js} +26 -26
  229. package/dist/{preview-NJO2UXWJ.js → preview-ULBNMDXD.js} +63 -39
  230. package/dist/{probe-LQQHFX5Q.js → probe-62Z5C6VC.js} +16 -16
  231. package/dist/{producer-LH2SZHJ2.js → producer-X3KFL4QM.js} +1 -1
  232. package/dist/{projectConfig-BLACFLUW.js → projectConfig-JQ4IDYTU.js} +10 -10
  233. package/dist/{publication-NFF2BXIE.js → publication-YNIJIR6O.js} +5 -5
  234. package/dist/{publish-JST5Y4UR.js → publish-7TIGC7RV.js} +91 -31
  235. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  236. package/dist/{remove-background-WUBESLWN.js → remove-background-F3BD6WXD.js} +14 -14
  237. package/dist/{render-DA4V7CEE.js → render-BL6CAORF.js} +6 -6
  238. package/dist/{render-4KWUUC5H.js → render-CDWBVWJP.js} +91 -957
  239. package/dist/{render-R4VNR4E2.js → render-EOQOD2TJ.js} +54 -53
  240. package/dist/{render-batch-JMPG4RLT.js → render-batch-PDY2PXUZ.js} +6 -6
  241. package/dist/renderSetupWorker.js +5 -5
  242. package/dist/{resolver-PNIFIDIE.js → resolver-VBAVCFEP.js} +7 -7
  243. package/dist/{reverse-4NI7D2C3.js → reverse-3E6HUX5S.js} +1 -1
  244. package/dist/{run-FWBIBLYE.js → run-77Z3DLIP.js} +8 -7
  245. package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-XWWCRLGM.js} +13 -13
  246. package/dist/service-LJZQKQT6.js +68 -0
  247. package/dist/share-2CNP22KN.js +274 -0
  248. package/dist/{sherpa-W3BMN67E.js → sherpa-NPTMMQHQ.js} +18 -18
  249. package/dist/sherpaWorker.js +2 -1
  250. package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
  251. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +20 -3
  252. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +61 -3
  253. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  254. package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
  255. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  256. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
  257. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
  258. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +25 -6
  259. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
  260. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
  261. package/dist/skills/media-use/references/audio.md +2 -0
  262. package/dist/skills/media-use/references/operations.md +2 -1
  263. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
  264. package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
  265. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
  266. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +42 -18
  267. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
  268. package/dist/{skills-KQQVUFGO.js → skills-7MQBUOOX.js} +11 -11
  269. package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-JAUXRXRH.js} +4 -4
  270. package/dist/{snapshot-VIEJQAUB.js → snapshot-D7DROQPF.js} +61 -61
  271. package/dist/{src-HHPRCLEW.js → src-26DWEOAT.js} +11 -9
  272. package/dist/{src-MQU5F7GJ.js → src-LJIVCW6M.js} +15 -15
  273. package/dist/{start-ZBNNVFMU.js → start-DF3U2VIG.js} +30 -29
  274. package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-NYH6MQHZ.js} +25 -25
  275. package/dist/{status-RBZJYT7T.js → status-5Q43GUYF.js} +26 -23
  276. package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-OdIlx7W3.js} +1 -1
  277. package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-XtPxZL3k.js} +1 -1
  278. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  279. package/dist/studio/assets/{index-D1l7izdf.js → index-DTU1D-zj.js} +166 -166
  280. package/dist/studio/assets/{index-DFRbcd5J.js → index-DWZWPFkU.js} +1 -1
  281. package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-NVr8gRm5.js} +1 -1
  282. package/dist/studio/index.html +2 -2
  283. package/dist/{studio-api-EPZGLIWW.js → studio-api-ZYCEQPX2.js} +22 -18
  284. package/dist/{studioServer-YFQQ2ESJ.js → studioServer-W4RX3B7S.js} +451 -71
  285. package/dist/{sync-FRT55PVW.js → sync-LLH2GSSC.js} +16 -16
  286. package/dist/{synthesize-FR5KPBRP.js → synthesize-4A5ENXNO.js} +4 -3
  287. package/dist/{telemetry-HAPPFR7P.js → telemetry-RIQIM2PH.js} +8 -8
  288. package/dist/{templates-2IHYIWMA.js → templates-4HVTWNKO.js} +22 -21
  289. package/dist/{timeline-AY2F7BJF.js → timeline-ITIMTT27.js} +25 -25
  290. package/dist/{tokens-B3G257V3.js → tokens-ABTBM6UA.js} +2 -2
  291. package/dist/{transcribe-RJCILGPA.js → transcribe-6BA2MP2Y.js} +37 -36
  292. package/dist/{transcribe-EGQD32PT.js → transcribe-6LDBHZCZ.js} +14 -14
  293. package/dist/{tts-ZE776B4I.js → tts-P77F523Z.js} +1 -1
  294. package/dist/{update-XTFIGQKW.js → update-ODXFCK36.js} +13 -13
  295. package/dist/{updateCheck-M6YC52A4.js → updateCheck-E4U776B4.js} +5 -3
  296. package/dist/{upgrade-AKLIZKAO.js → upgrade-LSHVYMLH.js} +5 -5
  297. package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-PWQ2LDLE.js} +9 -9
  298. package/dist/{validate-YWSXJL54.js → validate-JHETNNBN.js} +33 -33
  299. package/dist/{video-I5DDNK3Y.js → video-D2D5YCDU.js} +12 -12
  300. package/dist/{voices-IBMJU73H.js → voices-34FMTOIX.js} +29 -28
  301. package/dist/warmCheck.js +51 -51
  302. package/package.json +2 -1
  303. package/dist/chunk-YAZQBB2S.js +0 -5049
@@ -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-Y3YHDU7T.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-XB7HE2R5.js";
21
- import {
22
- reportVariableIssues,
23
- resolveVariablesArg,
24
- validateVariablesAgainstProject
25
- } from "./chunk-TZH6HNZH.js";
26
- import "./chunk-ZBAF6L74.js";
9
+ } from "./chunk-AUM475MS.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-5VN7ZXJR.js";
36
- import {
37
- formatLintStartupMessage
38
- } from "./chunk-T6VQGCN3.js";
18
+ } from "./chunk-5ZTB6QIJ.js";
39
19
  import {
40
20
  desktopHint
41
- } from "./chunk-TTSLKH63.js";
21
+ } from "./chunk-NMMPHHN7.js";
42
22
  import {
43
23
  runEnvironmentChecks
44
- } from "./chunk-P5E3RHW3.js";
45
- import "./chunk-ZIYXPDKY.js";
24
+ } from "./chunk-WWT32C2M.js";
46
25
  import {
47
- makeOutputFolder
48
- } from "./chunk-3S27CPV7.js";
26
+ executeRenderPlan,
27
+ renderLintContinuationHint,
28
+ runRenderLint
29
+ } from "./chunk-UFKWSLJ5.js";
30
+ import "./chunk-T6VQGCN3.js";
31
+ import "./chunk-SG4OW2HV.js";
32
+ import {
33
+ createRenderPlan,
34
+ resolveBrowserGpuForCli
35
+ } from "./chunk-TLU5DPES.js";
36
+ import "./chunk-G7PITEUH.js";
37
+ import "./chunk-2B2IMLUQ.js";
38
+ import {
39
+ deliveryFlagArgs
40
+ } from "./chunk-KCL77FXI.js";
41
+ import "./chunk-ZBAF6L74.js";
42
+ import "./chunk-65PFUPLX.js";
43
+ import "./chunk-3S27CPV7.js";
49
44
  import {
50
45
  createRenderCancellationScope
51
- } from "./chunk-D6BV6TTI.js";
46
+ } from "./chunk-OKN7E77Z.js";
52
47
  import {
53
48
  H264EncoderUnavailableError,
54
49
  chromeLaunchRemediation,
@@ -56,52 +51,45 @@ import {
56
51
  findFFmpeg,
57
52
  findFFprobe,
58
53
  getFFmpegInstallHint
59
- } from "./chunk-5FFYMVRD.js";
54
+ } from "./chunk-Q2G4ERQU.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-SXOIG6VG.js";
69
- import "./chunk-4FTJE22M.js";
70
- import "./chunk-RCRUWNQ4.js";
71
- import "./chunk-X6DWLN55.js";
63
+ } from "./chunk-2OP5HU5S.js";
72
64
  import "./chunk-X7MTZ4T2.js";
73
- import "./chunk-BZ56MTDX.js";
65
+ import "./chunk-PNBWAA3E.js";
74
66
  import "./chunk-FI4I7CME.js";
67
+ import "./chunk-EDQF36I7.js";
68
+ import "./chunk-2HDVXVUA.js";
69
+ import "./chunk-BZ56MTDX.js";
75
70
  import {
76
71
  captureArtifactRevision
77
- } from "./chunk-ADP2GIBS.js";
78
- import "./chunk-2Z42EUHG.js";
72
+ } from "./chunk-XEUTASNL.js";
73
+ import "./chunk-JVDYIUFD.js";
79
74
  import "./chunk-X7MTZ4T2.js";
80
- import {
81
- loadProducer
82
- } from "./chunk-6NNLDCX4.js";
83
- import "./chunk-REJ4NIBY.js";
84
- import {
85
- resolveProject
86
- } from "./chunk-HDCVU64B.js";
75
+ import "./chunk-VJSKNQTM.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-BA3EQ2KL.js";
96
79
  import {
97
80
  resolveGsapVendorDir
98
- } from "./chunk-TVQNABOI.js";
99
- import "./chunk-WTO4DHBH.js";
81
+ } from "./chunk-T7O62YTY.js";
82
+ import {
83
+ loadProducer
84
+ } from "./chunk-C62LSZVJ.js";
85
+ import "./chunk-IX6BFRED.js";
86
+ import "./chunk-IVMYWHFE.js";
87
+ import "./chunk-3XJ42WUG.js";
100
88
  import "./chunk-3L2POG2J.js";
101
89
  import {
102
90
  recordRenderSuccess,
103
91
  registerRenderOutput
104
- } from "./chunk-XDRSEU2I.js";
92
+ } from "./chunk-R3C62AP3.js";
105
93
  import {
106
94
  errorBox,
107
95
  formatBytes,
@@ -110,38 +98,32 @@ import {
110
98
  formatScreenshotFallbackHint,
111
99
  resolvePrintedCaptureMode
112
100
  } from "./chunk-LIWK3MFR.js";
113
- import "./chunk-WXOOAAT4.js";
101
+ import "./chunk-WLB2D2OJ.js";
114
102
  import "./chunk-EHZESMRB.js";
115
103
  import {
116
- loadProjectConfig,
117
- readProjectConfigWithStatus,
118
104
  seedProjectAuthoringSkill
119
- } from "./chunk-KFXHBP2E.js";
105
+ } from "./chunk-K5BPLZOP.js";
120
106
  import "./chunk-XT7X6QCP.js";
121
- import "./chunk-GBIASKIH.js";
122
- import {
123
- normalizeSkillSlug
124
- } from "./chunk-HVW7ABXD.js";
125
- import "./chunk-AWT5FHTN.js";
107
+ import "./chunk-DH34XRVW.js";
108
+ import "./chunk-HVW7ABXD.js";
109
+ import "./chunk-T4YI2YLF.js";
126
110
  import "./chunk-JHOCK3DG.js";
127
- import "./chunk-UWMOMAYI.js";
128
- import "./chunk-JMV63CNH.js";
111
+ import "./chunk-O2S5HR7Y.js";
112
+ import "./chunk-2JXJQ3ZQ.js";
129
113
  import "./chunk-AWDFDFI3.js";
130
114
  import "./chunk-P6LJ4Y32.js";
131
115
  import "./chunk-D3UCUI7G.js";
132
- import "./chunk-G2XAFJ2B.js";
116
+ import "./chunk-74PKHC3W.js";
133
117
  import {
134
- renderMotionBlurResult,
135
118
  renderMotionBlurTelemetryPayload,
136
119
  trackRenderComplete,
137
120
  trackRenderError,
138
- trackRenderObservation,
139
- trackRenderPreflightRejected
140
- } from "./chunk-2W4VQ3YZ.js";
141
- import "./chunk-PVSRPNIV.js";
121
+ trackRenderObservation
122
+ } from "./chunk-E53F4CP6.js";
123
+ import "./chunk-PXWPBLEN.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";
@@ -157,68 +139,47 @@ 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-EJPWGGPK.js";
144
+ } from "./chunk-Z64I7KJZ.js";
169
145
  import "./chunk-Z5J67X44.js";
170
146
  import "./chunk-5S7W3TUO.js";
171
147
  import "./chunk-D3MUHMFG.js";
172
- import "./chunk-YIE5FU73.js";
173
- import "./chunk-IEEIPTDW.js";
148
+ import "./chunk-4Y4VYZRO.js";
149
+ import "./chunk-PYZVKGW5.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-3367VNGK.js";
153
+ fpsToNumber
154
+ } from "./chunk-TGGYHFTP.js";
183
155
  import "./chunk-FXMKHHPO.js";
184
- import "./chunk-YAZQBB2S.js";
156
+ import "./chunk-TDOJW7Z2.js";
185
157
  import "./chunk-VC76R6W2.js";
186
158
  import "./chunk-HZTRKUKE.js";
187
159
  import "./chunk-RQVDTPGD.js";
188
- import "./chunk-BMDABBHG.js";
160
+ import "./chunk-FEWHHDFA.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-VB3JZKMN.js";
208
- import {
209
- collectSubCompositionSrcs
210
- } from "./chunk-WVRAFHJU.js";
172
+ import "./chunk-ASORF7UJ.js";
173
+ import "./chunk-K2Z6OXEI.js";
211
174
  import {
212
175
  FFMPEG_PATH_ENV
213
- } from "./chunk-KRWPTZBY.js";
176
+ } from "./chunk-3FQYFVWA.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-N7C7U3ZR.js";
182
+ } from "./chunk-M425BL2U.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-LHFBKUVY.js";
212
+ } from "./chunk-6FP6HBG4.js";
254
213
  import {
255
214
  normalizeErrorMessage
256
215
  } from "./chunk-E63BDV4Z.js";
@@ -260,504 +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 parseChromaSubsamplingArg(args, format) {
421
- const raw = args["chroma-subsampling"] ?? "420";
422
- if (raw !== "420" && raw !== "444") {
423
- errorBox("Invalid chroma-subsampling", `Got "${raw}". Must be 420 or 444.`);
424
- failUsage();
425
- }
426
- if (raw === "420") return raw;
427
- const conflict = format !== "mp4" ? `--format ${format}` : args.gpu ? "--gpu" : args.hdr ? "--hdr" : void 0;
428
- if (conflict) {
429
- errorBox(
430
- "Unsupported 4:4:4 output",
431
- `--chroma-subsampling 444 cannot be combined with ${conflict}. 4:4:4 needs SDR MP4 from the software encoder (libx264).`,
432
- `Drop ${conflict}, or drop --chroma-subsampling 444.`
433
- );
434
- failUsage();
435
- }
436
- return raw;
437
- }
438
- function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
439
- const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
440
- flag: "--page-motion-blur"
441
- });
442
- const hfEnvOverrides = resolveHfEnvOverrides();
443
- const hasExplicitComposition = hasExplicitCompositionArg(args.composition);
444
- const project = resolveProject(args.dir, { requireIndex: !hasExplicitComposition });
445
- const entryFile = resolveCompositionEntryArg(args.composition, project.dir, statSync);
446
- const renderTarget = entryFile ? resolve2(project.dir, entryFile) : project.indexPath;
447
- const fpsArg = resolveDefaultFpsArg(args.fps, project.dir, project.indexPath, entryFile);
448
- const fpsParse = parseFps(fpsArg ?? "30");
449
- if (!fpsParse.ok) {
450
- errorBox("Invalid fps", formatFpsParseError(fpsArg ?? "30", fpsParse.reason));
451
- failUsage();
452
- }
453
- let fps = fpsParse.value;
454
- const qualityRaw = args.quality ?? "looks";
455
- if (!(qualityRaw in QUALITY_ALIASES)) {
456
- errorBox(
457
- "Invalid quality",
458
- `Got "${qualityRaw}". Must be draft, looks, delivery, standard, or high.`
459
- );
460
- failUsage();
461
- }
462
- const qualityAlias = QUALITY_ALIASES[qualityRaw];
463
- const quality = qualityAlias.quality;
464
- const flagSkill = normalizeSkillSlug(args.skill);
465
- const projectConfigSkill = loadProjectConfig(project.dir).authoringSkill;
466
- const authoringSkill = flagSkill ?? projectConfigSkill;
467
- const invalidAuthoringSkill = typeof args.skill === "string" && args.skill.trim() !== "" && !flagSkill ? args.skill : void 0;
468
- const authoringSkillSource = flagSkill ? "flag" : projectConfigSkill ? "project-config" : void 0;
469
- const catalogUsage = summarizeCatalogUsage(project.dir, renderTarget);
470
- const formatRaw = args.format ?? "mp4";
471
- const format = parseRenderFormat(formatRaw);
472
- if (!format) {
473
- errorBox("Invalid format", `Got "${formatRaw}". Must be ${RENDER_FORMAT_LABEL}.`);
474
- failUsage();
475
- }
476
- let gifFpsCapped = false;
477
- if (format === "gif" && fpsToNumber(fps) > 30) {
478
- fps = { num: 30, den: 1 };
479
- gifFpsCapped = true;
480
- }
481
- const gifLoopParse = parseGifLoopArg(args["gif-loop"]);
482
- if (!gifLoopParse.ok) {
483
- errorBox("Invalid gif-loop", gifLoopParse.message);
484
- failUsage();
485
- }
486
- const gifLoop = gifLoopParse.value ?? (format === "gif" ? 0 : void 0);
487
- const hlsSegmentParse = parseHlsSegmentSecondsArg(args["hls-segment-seconds"]);
488
- if (!hlsSegmentParse.ok) {
489
- errorBox("Invalid hls-segment-seconds", hlsSegmentParse.message);
490
- failUsage();
491
- }
492
- const hlsSegmentSeconds = format === "hls" ? hlsSegmentParse.value ?? DEFAULT_HLS_SEGMENT_SECONDS : void 0;
493
- const chromaSubsampling = parseChromaSubsamplingArg(args, format);
494
- const videoFrameFormatRaw = args["video-frame-format"] ?? "auto";
495
- if (!isVideoFrameFormat(videoFrameFormatRaw)) {
496
- errorBox(
497
- "Invalid video-frame-format",
498
- `Got "${videoFrameFormatRaw}". Must be auto, jpg, or png.`
499
- );
500
- failUsage();
501
- }
502
- let outputResolution;
503
- let outputResolutionAspectAgnostic = false;
504
- if (args.resolution !== void 0) {
505
- outputResolution = normalizeResolutionFlag(args.resolution);
506
- if (!outputResolution) {
507
- errorBox(
508
- "Invalid resolution",
509
- `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).`
510
- );
511
- failUsage();
512
- }
513
- outputResolutionAspectAgnostic = isAspectAgnosticResolutionAlias(args.resolution);
514
- if (args.hdr) {
515
- errorBox(
516
- "Conflicting flags",
517
- "--resolution cannot be combined with --hdr. The HDR pipeline composites at composition dimensions and does not yet support supersampling.",
518
- "Render in two passes: HDR at composition resolution, then upscale separately with ffmpeg."
519
- );
520
- failUsage();
521
- }
522
- }
523
- if (args.hdr && args.sdr) {
524
- errorBox("Conflicting flags", "--hdr and --sdr are mutually exclusive.");
525
- failUsage();
526
- }
527
- if (format === "hls" && args.hdr) {
528
- errorBox(
529
- "Unsupported HLS output",
530
- "--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.",
531
- "Render HDR to MP4, or drop --hdr."
532
- );
533
- failUsage();
534
- }
535
- if (format === "hls" && args.gpu) {
536
- errorBox(
537
- "Unsupported HLS output",
538
- "--gpu cannot be combined with --format hls. Fixed-length segments require the software encoder's forced-keyframe lock, which GPU encoders ignore.",
539
- "Re-run without --gpu."
540
- );
541
- failUsage();
542
- }
543
- const workers = args.workers != null && args.workers !== "auto" ? positiveInteger(
544
- args.workers,
545
- "Invalid workers",
546
- `Got "${args.workers}". Must be a positive number or "auto".`
547
- ) : void 0;
548
- const protocolTimeout = args["protocol-timeout"] != null ? positiveInteger(
549
- args["protocol-timeout"],
550
- "Invalid protocol-timeout",
551
- `Got "${args["protocol-timeout"]}". Must be a number >= 1000 (ms).`,
552
- 1e3
553
- ) : void 0;
554
- const playerReadyTimeout = args["player-ready-timeout"] != null ? positiveInteger(
555
- args["player-ready-timeout"],
556
- "Invalid player-ready-timeout",
557
- `Got "${args["player-ready-timeout"]}". Must be a number >= 1000 (ms).`,
558
- 1e3
559
- ) : void 0;
560
- const environment = {};
561
- if (args["page-side-compositing"] === false) environment.HF_PAGE_SIDE_COMPOSITING = "false";
562
- if (args["low-memory-mode"] != null) {
563
- environment.PRODUCER_LOW_MEMORY_MODE = args["low-memory-mode"] ? "true" : "false";
564
- }
565
- if (args["experimental-fast-capture"] != null) {
566
- environment.PRODUCER_EXPERIMENTAL_FAST_CAPTURE = args["experimental-fast-capture"] ? "true" : "false";
567
- }
568
- if (typeof args["frames-cache-dir"] === "string" && args["frames-cache-dir"].trim() !== "") {
569
- const raw = args["frames-cache-dir"].trim();
570
- const normalized = raw.toLowerCase();
571
- const isDisableAlias = EXTRACT_CACHE_DIR_DISABLED_ALIASES.includes(normalized);
572
- environment.HYPERFRAMES_EXTRACT_CACHE_DIR = isDisableAlias ? raw : resolve2(raw);
573
- }
574
- if (args["max-concurrent-renders"] != null) {
575
- const parsed = positiveInteger(
576
- args["max-concurrent-renders"],
577
- "Invalid max-concurrent-renders",
578
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
579
- );
580
- if (parsed > 10) {
581
- errorBox(
582
- "Invalid max-concurrent-renders",
583
- `Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
584
- );
585
- failUsage();
586
- }
587
- environment.PRODUCER_MAX_CONCURRENT_RENDERS = String(parsed);
588
- }
589
- const batchPath = typeof args.batch === "string" && args.batch.trim() !== "" ? args.batch.trim() : void 0;
590
- if (batchPath && (args.variables != null || args["variables-file"] != null)) {
591
- errorBox(
592
- "Conflicting variables flags",
593
- "Use either --batch or --variables/--variables-file, not both."
594
- );
595
- failUsage();
596
- }
597
- if (!batchPath && args["batch-concurrency"] != null) {
598
- errorBox("Invalid batch-concurrency", "--batch-concurrency requires --batch.");
599
- failUsage();
600
- }
601
- if (!batchPath && args["batch-fail-fast"]) {
602
- errorBox("Invalid batch-fail-fast", "--batch-fail-fast requires --batch.");
603
- failUsage();
604
- }
605
- const batchConcurrency = args["batch-concurrency"] != null ? positiveInteger(
606
- args["batch-concurrency"],
607
- "Invalid batch-concurrency",
608
- `Got "${args["batch-concurrency"]}". Must be a positive integer.`
609
- ) : 1;
610
- const rendersDir = join(project.dir, "renders");
611
- const ext = FORMAT_EXT[format];
612
- const timestamp = formatRenderOutputTimestamp(now);
613
- const batchOutputTemplate = args.output ? args.output : join(rendersDir, `${project.name}_${timestamp}_{index}${ext}`);
614
- const outputPath = args.output ? resolve2(args.output) : join(rendersDir, `${project.name}_${timestamp}${ext}`);
615
- const useDocker = args.docker ?? false;
616
- const useGpu = args.gpu ?? false;
617
- const browserGpuMode = resolveBrowserGpuForCli(useDocker, args["browser-gpu"]);
618
- if (useDocker && args["browser-gpu"] === true) {
619
- errorBox(
620
- "Browser GPU is local-only",
621
- "--browser-gpu uses the host Chrome GPU backend. Docker mode keeps browser rendering deterministic and does not expose a cross-platform Chrome GPU backend.",
622
- "Run without --docker, or use --gpu for Docker GPU encoding where your Docker host supports GPU passthrough."
623
- );
624
- failUsage();
625
- }
626
- const videoBitrate = args["video-bitrate"]?.trim();
627
- if (args.crf != null && videoBitrate) {
628
- errorBox("Conflicting encoder settings", "Use either --crf or --video-bitrate, not both.");
629
- failUsage();
630
- }
631
- const crf = args.crf != null ? positiveInteger(
632
- args.crf,
633
- "Invalid crf",
634
- `Got "${args.crf}". Must be a non-negative integer.`,
635
- 0
636
- ) : format === "mov" || args["video-bitrate"] ? void 0 : "crf" in qualityAlias ? qualityAlias.crf : void 0;
637
- let vp9CpuUsed;
638
- if (args["vp9-cpu-used"] != null) {
639
- const parsed = Number(args["vp9-cpu-used"]);
640
- if (!Number.isInteger(parsed) || parsed < MIN_VP9_CPU_USED || parsed > MAX_VP9_CPU_USED) {
641
- errorBox(
642
- "Invalid vp9-cpu-used",
643
- `Got "${args["vp9-cpu-used"]}". Must be an integer between ${MIN_VP9_CPU_USED} and ${MAX_VP9_CPU_USED}.`
644
- );
645
- failUsage();
646
- }
647
- vp9CpuUsed = parsed;
648
- }
649
- if (args["video-bitrate"] != null && !videoBitrate) {
650
- errorBox(
651
- "Invalid video-bitrate",
652
- `Got "${args["video-bitrate"]}". Must be a non-empty bitrate such as "10M".`
653
- );
654
- failUsage();
655
- }
656
- if (format === "mov" && (crf !== void 0 || videoBitrate !== void 0)) {
657
- const flag = crf !== void 0 ? "--crf" : "--video-bitrate";
658
- errorBox(
659
- "Unsupported ProRes rate control",
660
- `${flag} does not apply to MOV. MOV rate is set by the ProRes profile; see --prores-profile.`,
661
- `Remove ${flag}, or choose MP4/WebM when you need CRF or target-bitrate control.`
662
- );
663
- failUsage();
664
- }
665
- const delivery = parseDeliveryFlags(args);
666
- const { proresProfile, ...mp4Delivery } = delivery;
667
- if (proresProfile !== void 0 && format !== "mov") {
668
- errorBox(
669
- "ProRes profile applies to MOV",
670
- `--prores-profile sets the ProRes profile of a MOV file, not ${format}.`,
671
- "Remove it, or render --format mov."
672
- );
673
- failUsage();
674
- }
675
- if (Object.keys(mp4Delivery).length > 0 && format !== "mp4") {
676
- errorBox(
677
- "Delivery options apply to MP4",
678
- "--keyframe-interval, --max-bitrate and --buffer-size set how the MP4 encoder delivers the file.",
679
- "Remove them, or render --format mp4."
680
- );
681
- failUsage();
682
- }
683
- const range = parseRenderRange(args, format, fps, args.hdr);
684
- const quiet = args.quiet ?? false;
685
- const batchJson = args.json ?? false;
686
- return Object.freeze({
687
- project,
688
- entryFile,
689
- renderTarget,
690
- fps,
691
- quality,
692
- authoringSkill,
693
- invalidAuthoringSkill,
694
- authoringSkillSource,
695
- catalogUsage,
696
- format,
697
- gifLoop,
698
- gifFpsCapped,
699
- hlsSegmentSeconds,
700
- videoFrameFormat: videoFrameFormatRaw,
701
- pageMotionBlur,
702
- outputResolution,
703
- outputResolutionAspectAgnostic,
704
- outputResolutionRaw: args.resolution,
705
- workers,
706
- protocolTimeout,
707
- playerReadyTimeout,
708
- pageNavigationTimeoutMs: resolveBrowserTimeoutMsArg(args["browser-timeout"]),
709
- batchPath,
710
- batchConcurrency,
711
- batchFailFast: args["batch-fail-fast"] ?? false,
712
- batchOutputTemplate,
713
- outputPath,
714
- useDocker,
715
- useGpu,
716
- browserGpuMode,
717
- quiet,
718
- lintVerbose: args["lint-verbose"] ?? false,
719
- debug: args.debug ?? false,
720
- resumeSegments: args.resume ?? false,
721
- keepSegments: args["keep-segments"] ?? false,
722
- bestEffort: args["best-effort"] ?? true,
723
- waitForRenderSlot: args.wait ?? true,
724
- batchJson,
725
- effectiveQuiet: quiet || batchJson,
726
- strictAll: args["strict-all"] ?? false,
727
- strictErrors: (args.strict ?? false) || (args["strict-all"] ?? false),
728
- crf,
729
- vp9CpuUsed,
730
- videoBitrate,
731
- ...delivery,
732
- range,
733
- chromaSubsampling,
734
- hdrMode: args.sdr ? "force-sdr" : args.hdr ? "force-hdr" : "auto",
735
- pageSideCompositing: args["page-side-compositing"] !== false,
736
- experimentalFastCapture: args["experimental-fast-capture"] === true,
737
- variablesArg: args.variables,
738
- variablesFileArg: args["variables-file"],
739
- strictVariables: args["strict-variables"] ?? false,
740
- environment: Object.freeze(environment),
741
- hfEnvOverrides
742
- });
743
- }
744
- function applyRenderEnvironment(plan) {
745
- for (const [key, value] of Object.entries(plan.environment)) process.env[key] = value;
746
- }
747
- function renderOutputDirectory(plan) {
748
- return dirname(plan.outputPath);
749
- }
750
- function resolveBrowserGpuForCli(useDocker, browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
751
- if (useDocker) return "software";
752
- if (browserGpuArg === true) return "hardware";
753
- if (browserGpuArg === false) return "software";
754
- if (envMode === "hardware" || envMode === "software" || envMode === "auto") return envMode;
755
- return "auto";
756
- }
222
+ import { mkdtempSync, readdirSync, readFileSync as readFileSync2, statSync, writeFileSync, rmSync } from "fs";
757
223
 
758
224
  // src/commands/render/present.ts
759
225
  import { cpus } from "os";
760
- import { readFileSync as readFileSync2 } from "fs";
226
+ import { readFileSync } from "fs";
761
227
  async function presentRenderPlan(plan) {
762
228
  await presentRenderWarnings(plan);
763
229
  if (plan.effectiveQuiet || plan.batchPath) return;
@@ -805,7 +271,7 @@ function formatGpuModes(plan) {
805
271
  async function warnForSlideshow(plan) {
806
272
  try {
807
273
  const { slideshowIslandRegex } = await import("./slideshow-ARJR22W4.js");
808
- if (!slideshowIslandRegex("i").test(readFileSync2(plan.renderTarget, "utf8"))) return;
274
+ if (!slideshowIslandRegex("i").test(readFileSync(plan.renderTarget, "utf8"))) return;
809
275
  console.log(
810
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."
811
277
  );
@@ -844,341 +310,9 @@ async function acquireRenderSlot(plan, signal, lock = {}) {
844
310
  }
845
311
  }
846
312
 
847
- // src/commands/render/execute.ts
848
- import { readFileSync as readFileSync3 } from "fs";
849
- import { tmpdir } from "os";
850
-
851
- // src/ui/renderResult.ts
852
- function renderMachineResult(result, quiet) {
853
- if (quiet || process.stdout.isTTY || process.env.HYPERFRAMES_STDOUT_IS_TTY === "1") return;
854
- const hasBackground = REFERENCE_BACKGROUND_FIELD in result;
855
- if (!hasBackground && !result.motionBlur) return;
856
- const line = {
857
- version: 1,
858
- operation: "render",
859
- ...hasBackground ? referenceBackgroundResult(result[REFERENCE_BACKGROUND_FIELD]) : {},
860
- ...result.motionBlur ? { motion_blur: renderMotionBlurResult(result.motionBlur) } : {}
861
- };
862
- process.stdout.write(`@hf-result ${JSON.stringify(line)}
863
- `);
864
- }
865
-
866
- // src/commands/render/execute.ts
867
- function renderLintContinuationHint(strictErrors) {
868
- return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
869
- }
870
- function renderLintShouldAbort(strictErrors, strictAll, lintResult, definitiveEntryMismatch) {
871
- return definitiveEntryMismatch || shouldBlockRender(strictErrors, strictAll, lintResult.totalErrors, lintResult.totalWarnings);
872
- }
873
- async function executeRenderPlan(plan, dependencies, cancellation) {
874
- assertRenderActive(cancellation);
875
- applyRenderEnvironment(plan);
876
- if (!plan.batchPath) makeOutputFolder(renderOutputDirectory(plan));
877
- let batchModule;
878
- let preparedBatch;
879
- if (plan.batchPath) {
880
- batchModule = await import("./batchRender-VBSYVQA7.js");
881
- try {
882
- preparedBatch = batchModule.prepareBatchRender({
883
- batchPath: plan.batchPath,
884
- outputTemplate: plan.batchOutputTemplate,
885
- indexPath: plan.renderTarget,
886
- strictVariables: plan.strictVariables,
887
- quiet: plan.quiet || plan.batchJson,
888
- json: plan.batchJson
889
- });
890
- } catch (error) {
891
- batchModule.exitBatchRenderInputError(error);
892
- }
893
- }
894
- const variables = plan.batchPath ? void 0 : resolveVariablesArg(plan.variablesArg, plan.variablesFileArg);
895
- await runRenderLint(plan, lintProject, cancellation?.signal);
896
- assertRenderActive(cancellation);
897
- if (!plan.useDocker) await refuseLowDiskBeforeBrowserDownload(plan);
898
- const browserPath = plan.useDocker ? void 0 : await ensureRenderBrowser(plan, cancellation?.signal);
899
- assertRenderActive(cancellation);
900
- await runResolutionPreflight(plan, dependencies.checkResolution);
901
- assertRenderActive(cancellation);
902
- const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
903
- try {
904
- assertRenderActive(cancellation);
905
- await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
906
- batchModule,
907
- preparedBatch
908
- });
909
- } finally {
910
- releaseSlot?.();
911
- }
912
- }
913
- async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
914
- const { batchModule, preparedBatch } = batch;
915
- if (plan.batchPath && batchModule && preparedBatch) {
916
- await executeBatchRender(
917
- plan,
918
- browserPath,
919
- batchModule,
920
- preparedBatch,
921
- dependencies,
922
- cancellation
923
- );
924
- return;
925
- }
926
- reportSingleRenderNotes(plan, variables);
927
- const options = renderOptionsFromPlan(plan, browserPath, variables);
928
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
929
- const result = await execute(plan.project.dir, plan.outputPath, options, cancellation);
930
- renderMachineResult(result, plan.effectiveQuiet);
931
- }
932
- function reportSingleRenderNotes(plan, variables) {
933
- if (variables && Object.keys(variables).length > 0) {
934
- const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
935
- reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
936
- }
937
- if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.effectiveQuiet) {
938
- console.log(
939
- c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
940
- );
941
- }
942
- }
943
- function renderOptionsFromPlan(plan, browserPath, variables) {
944
- const options = {
945
- fps: plan.fps,
946
- quality: plan.quality,
947
- authoringSkill: plan.authoringSkill,
948
- authoringSkillSource: plan.authoringSkillSource,
949
- authoringSkillInvalid: plan.invalidAuthoringSkill,
950
- hfEnvOverrides: plan.hfEnvOverrides,
951
- catalogUsage: plan.catalogUsage,
952
- format: plan.format,
953
- gifLoop: plan.gifLoop,
954
- gifFpsCapped: plan.gifFpsCapped,
955
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
956
- workers: plan.workers,
957
- gpu: plan.useGpu,
958
- browserGpuMode: plan.browserGpuMode,
959
- hdrMode: plan.hdrMode,
960
- crf: plan.crf,
961
- vp9CpuUsed: plan.vp9CpuUsed,
962
- videoBitrate: plan.videoBitrate,
963
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
964
- range: plan.range,
965
- proresProfile: plan.proresProfile,
966
- maxBitrate: plan.maxBitrate,
967
- bufferSize: plan.bufferSize,
968
- videoFrameFormat: plan.videoFrameFormat,
969
- chromaSubsampling: plan.chromaSubsampling,
970
- pageMotionBlur: plan.pageMotionBlur,
971
- quiet: plan.effectiveQuiet,
972
- browserPath,
973
- debug: plan.debug,
974
- resumeSegments: plan.resumeSegments,
975
- keepSegments: plan.keepSegments,
976
- bestEffort: plan.bestEffort,
977
- variables,
978
- entryFile: plan.entryFile,
979
- outputResolution: plan.outputResolution,
980
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
981
- outputResolutionRaw: plan.outputResolutionRaw,
982
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
983
- protocolTimeout: plan.protocolTimeout,
984
- playerReadyTimeout: plan.playerReadyTimeout,
985
- exitAfterComplete: true,
986
- manageDeParallelRouterBreaker: true
987
- };
988
- if (plan.useDocker) {
989
- options.pageSideCompositing = plan.pageSideCompositing;
990
- options.experimentalFastCapture = plan.experimentalFastCapture;
991
- }
992
- return options;
993
- }
994
- function assertRenderActive(cancellation) {
995
- cancellation?.checkAncestors();
996
- cancellation?.signal.throwIfAborted();
997
- }
998
- async function refuseLowDiskBeforeBrowserDownload(plan) {
999
- const { checkDisk } = await import("./preflight-VM4HSRBY.js");
1000
- await (await import("./manager-IAXYSRG5.js")).sweepKilledInstalls();
1001
- const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
1002
- const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
1003
- if (low.length === 0) return;
1004
- for (const check of low) errorBox(check.title ?? "Low disk space", check.detail, check.hint);
1005
- failCommand();
1006
- }
1007
- async function ensureRenderBrowser(plan, signal) {
1008
- const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
1009
- let browserSpinner;
1010
- try {
1011
- if (plan.effectiveQuiet) {
1012
- return (await ensureBrowser({ preferManagedChrome: true, signal })).executablePath;
1013
- }
1014
- const clack = await import("./prompts-7VQEH645.js");
1015
- browserSpinner = clack.spinner();
1016
- browserSpinner.start("Checking browser...");
1017
- const info = await ensureBrowser({
1018
- preferManagedChrome: true,
1019
- signal,
1020
- onProgress: (downloaded, total) => {
1021
- if (total <= 0) return;
1022
- const pct = Math.floor(downloaded / total * 100);
1023
- browserSpinner?.message(
1024
- `Downloading Chrome... ${c.progress(pct + "%")} ${c.dim("(" + formatBytes(downloaded) + " / " + formatBytes(total) + ")")}`
1025
- );
1026
- }
1027
- });
1028
- browserSpinner.stop(c.dim(`Browser: ${info.source}`));
1029
- return info.executablePath;
1030
- } catch (error) {
1031
- browserSpinner?.stop(c.error("Browser not available"));
1032
- if (signal?.aborted) signal.throwIfAborted();
1033
- errorBox(
1034
- "Chrome not found",
1035
- normalizeErrorMessage(error),
1036
- "Run: npx hyperframes browser ensure"
1037
- );
1038
- failCommand();
1039
- }
1040
- }
1041
- async function runRenderLint(plan, runLint = lintProject, signal) {
1042
- const explicitEntry = plan.entryFile ? plan.renderTarget : void 0;
1043
- const lintResult = signal && runLint === lintProject ? await runRenderLintInOwnedProcess(plan.project.dir, explicitEntry, signal) : await runLint(plan.project.dir, explicitEntry);
1044
- if (lintResult.totalErrors === 0 && lintResult.totalWarnings === 0) return;
1045
- const definitiveEntryMismatch = hasDefinitiveEntryMismatch(lintResult);
1046
- const willAbort = renderLintShouldAbort(
1047
- plan.strictErrors,
1048
- plan.strictAll,
1049
- lintResult,
1050
- definitiveEntryMismatch
1051
- );
1052
- presentRenderLintFindings(lintResult, plan.effectiveQuiet, plan.lintVerbose || willAbort);
1053
- if (willAbort) {
1054
- presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch);
1055
- failCommand();
1056
- }
1057
- presentRenderLintContinuation(plan);
1058
- }
1059
- async function runRenderLintInOwnedProcess(projectDir, entryFile, signal) {
1060
- return runRenderSetupWorker(
1061
- "lint",
1062
- { projectDir, entryFile },
1063
- {
1064
- signal,
1065
- maxBufferBytes: 8 * 1024 * 1024
1066
- }
1067
- );
1068
- }
1069
- function presentRenderLintFindings(lintResult, quiet, lintVerbose) {
1070
- if (quiet) return;
1071
- console.log("");
1072
- for (const line of formatLintStartupMessage(
1073
- lintResult,
1074
- lintVerbose ? { kind: "verbose", options: { errorsFirst: true } } : { kind: "summary" }
1075
- ))
1076
- console.log(line);
1077
- }
1078
- function presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch) {
1079
- const mode = plan.strictAll ? "--strict-all" : "--strict";
1080
- const counts = `${lintResult.totalErrors} error(s), ${lintResult.totalWarnings} warning(s)`;
1081
- const findings = lintResult.results.flatMap((entry) => entry.result.findings);
1082
- const first = findings.find((finding) => finding.severity === "error") ?? findings[0];
1083
- errorBox(
1084
- definitiveEntryMismatch ? "Aborting render because the default index.html entry is blank." : `Aborting render due to lint issues in ${mode} mode: ${counts}`,
1085
- first ? `${first.code}: ${first.message}` : void 0,
1086
- "Run hyperframes lint for the full list."
1087
- );
1088
- }
1089
- function presentRenderLintContinuation(plan) {
1090
- if (plan.effectiveQuiet) return;
1091
- console.log(c.dim(renderLintContinuationHint(plan.strictErrors)));
1092
- console.log("");
1093
- }
1094
- async function runResolutionPreflight(plan, checkResolution) {
1095
- if (!plan.outputResolution) return;
1096
- let issue;
1097
- try {
1098
- issue = await checkResolution(readFileSync3(plan.renderTarget, "utf8"), plan.outputResolution, {
1099
- alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
1100
- hdrRequested: plan.hdrMode === "force-hdr",
1101
- aspectAgnostic: plan.outputResolutionAspectAgnostic
1102
- });
1103
- } catch {
1104
- }
1105
- if (!issue) return;
1106
- trackRenderPreflightRejected({ kind: issue.kind });
1107
- errorBox("Output resolution incompatible", issue.message);
1108
- failCommand();
1109
- }
1110
- function batchRowRenderOptions(plan, browserPath) {
1111
- const batchQuiet = plan.quiet || plan.batchJson;
1112
- return {
1113
- fps: plan.fps,
1114
- quality: plan.quality,
1115
- authoringSkill: plan.authoringSkill,
1116
- authoringSkillSource: plan.authoringSkillSource,
1117
- authoringSkillInvalid: plan.invalidAuthoringSkill,
1118
- hfEnvOverrides: plan.hfEnvOverrides,
1119
- catalogUsage: plan.catalogUsage,
1120
- format: plan.format,
1121
- gifLoop: plan.gifLoop,
1122
- gifFpsCapped: plan.gifFpsCapped,
1123
- hlsSegmentSeconds: plan.hlsSegmentSeconds,
1124
- workers: plan.workers,
1125
- gpu: plan.useGpu,
1126
- browserGpuMode: plan.browserGpuMode,
1127
- hdrMode: plan.hdrMode,
1128
- crf: plan.crf,
1129
- vp9CpuUsed: plan.vp9CpuUsed,
1130
- videoBitrate: plan.videoBitrate,
1131
- keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
1132
- range: plan.range,
1133
- proresProfile: plan.proresProfile,
1134
- maxBitrate: plan.maxBitrate,
1135
- bufferSize: plan.bufferSize,
1136
- videoFrameFormat: plan.videoFrameFormat,
1137
- chromaSubsampling: plan.chromaSubsampling,
1138
- pageMotionBlur: plan.pageMotionBlur,
1139
- quiet: batchQuiet,
1140
- browserPath,
1141
- entryFile: plan.entryFile,
1142
- outputResolution: plan.outputResolution,
1143
- outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
1144
- outputResolutionRaw: plan.outputResolutionRaw,
1145
- pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
1146
- protocolTimeout: plan.protocolTimeout,
1147
- playerReadyTimeout: plan.playerReadyTimeout,
1148
- debug: plan.debug,
1149
- resumeSegments: plan.resumeSegments,
1150
- keepSegments: plan.keepSegments,
1151
- bestEffort: plan.bestEffort,
1152
- exitAfterComplete: false,
1153
- throwOnError: true,
1154
- skipFeedback: true,
1155
- desktopHint: false,
1156
- manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
1157
- };
1158
- }
1159
- async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
1160
- const batchQuiet = plan.quiet || plan.batchJson;
1161
- const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
1162
- const manifest = await batchModule.runBatchRender({
1163
- prepared: preparedBatch,
1164
- concurrency: plan.batchConcurrency,
1165
- failFast: plan.batchFailFast,
1166
- quiet: batchQuiet,
1167
- json: plan.batchJson,
1168
- renderOne: (row) => {
1169
- assertRenderActive(cancellation);
1170
- const options = { ...renderOptionsBase, variables: row.variables };
1171
- if (plan.useDocker) options.pageSideCompositing = plan.pageSideCompositing;
1172
- const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
1173
- return execute(plan.project.dir, row.outputPath, options, cancellation);
1174
- }
1175
- });
1176
- if (manifest.failed > 0) setCommandExitCode(1);
1177
- }
1178
-
1179
313
  // src/commands/render.ts
1180
- import { freemem, tmpdir as tmpdir2 } from "os";
1181
- 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";
1182
316
  import { execFileSync as execFileSync2, spawn } from "child_process";
1183
317
 
1184
318
  // src/utils/webmAlphaCheck.ts
@@ -1944,11 +1078,11 @@ function dockerImageTag(version) {
1944
1078
  return `${DOCKER_IMAGE_PREFIX}:${version}`;
1945
1079
  }
1946
1080
  function resolveDockerfilePath() {
1947
- const builtPath = resolve3(__dirname, "docker", "Dockerfile.render");
1948
- 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");
1949
1083
  for (const p of [builtPath, devPath]) {
1950
1084
  try {
1951
- statSync2(p);
1085
+ statSync(p);
1952
1086
  return p;
1953
1087
  } catch {
1954
1088
  continue;
@@ -1976,8 +1110,8 @@ function ensureDockerImage(version, platform, quiet) {
1976
1110
  }
1977
1111
  if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
1978
1112
  const dockerfilePath = resolveDockerfilePath();
1979
- const tmpDir = mkdtempSync(join2(tmpdir2(), "hyperframes-docker-"));
1980
- writeFileSync(join2(tmpDir, "Dockerfile"), readFileSync4(dockerfilePath));
1113
+ const tmpDir = mkdtempSync(join(tmpdir(), "hyperframes-docker-"));
1114
+ writeFileSync(join(tmpDir, "Dockerfile"), readFileSync2(dockerfilePath));
1981
1115
  const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
1982
1116
  try {
1983
1117
  execFileSync2(
@@ -2048,12 +1182,12 @@ async function renderDocker(projectDir, outputPath, options) {
2048
1182
  errorBox(failure.title, failure.message, failure.hint);
2049
1183
  failCommand();
2050
1184
  }
2051
- const outputDir = dirname2(outputPath);
1185
+ const outputDir = dirname(outputPath);
2052
1186
  const outputFilename = basename(outputPath);
2053
1187
  const dockerArgs = buildDockerRunArgs({
2054
1188
  imageTag,
2055
- projectDir: resolve3(projectDir),
2056
- outputDir: resolve3(outputDir),
1189
+ projectDir: resolve(projectDir),
1190
+ outputDir: resolve(outputDir),
2057
1191
  outputFilename,
2058
1192
  platform,
2059
1193
  hostStdoutIsTty: process.stdout.isTTY === true,
@@ -2116,7 +1250,7 @@ async function renderDocker(projectDir, outputPath, options) {
2116
1250
  }
2117
1251
  const elapsed = Date.now() - startTime;
2118
1252
  const cpuUsage = cpu.stop();
2119
- markRenderSucceeded();
1253
+ if (!options.embedded) markRenderSucceeded();
2120
1254
  await runPostRenderStepAsync(
2121
1255
  "recordRenderSuccess",
2122
1256
  () => recordRenderSuccess(projectDir, outputPath, "completed", capture).then(() => {
@@ -2157,7 +1291,7 @@ async function renderDocker(projectDir, outputPath, options) {
2157
1291
  "warnIfWebmAlphaDropped",
2158
1292
  () => warnIfWebmAlphaDropped(outputPath, options.format, options.quiet)
2159
1293
  );
2160
- if (options.exitAfterComplete) scheduleCliExit();
1294
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2161
1295
  return { renderTimeMs: elapsed };
2162
1296
  }
2163
1297
  async function renderLocal(projectDir, outputPath, options, commandCancellation) {
@@ -2190,7 +1324,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2190
1324
  }
2191
1325
  const preflight = await runEnvironmentChecks({
2192
1326
  projectDir,
2193
- diskPaths: [tmpdir2(), dirname2(outputPath)],
1327
+ diskPaths: [tmpdir(), dirname(outputPath)],
2194
1328
  browserPath: options.browserPath,
2195
1329
  includeBrowser: true,
2196
1330
  includeDisk: true,
@@ -2375,7 +1509,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2375
1509
  job
2376
1510
  );
2377
1511
  }
2378
- markRenderSucceeded();
1512
+ if (!options.embedded) markRenderSucceeded();
2379
1513
  await runPostRenderStepAsync(
2380
1514
  "recordRenderSuccess",
2381
1515
  () => recordRenderSuccess(
@@ -2426,7 +1560,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
2426
1560
  })
2427
1561
  );
2428
1562
  }
2429
- if (options.exitAfterComplete) scheduleCliExit();
1563
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2430
1564
  const durationMs = job.perfSummary ? Math.round(job.perfSummary.compositionDurationSeconds * 1e3) : void 0;
2431
1565
  const outcome = job.outcome === "completed_with_warnings" ? "completed_with_warnings" : "completed";
2432
1566
  return {
@@ -2461,7 +1595,7 @@ async function renderRange(input) {
2461
1595
  } catch (error) {
2462
1596
  handleRenderError(error, options, input.startTime, input.cpu, false, "");
2463
1597
  }
2464
- markRenderSucceeded();
1598
+ if (!options.embedded) markRenderSucceeded();
2465
1599
  const elapsed = Date.now() - input.startTime;
2466
1600
  input.cpu.stop();
2467
1601
  printRenderComplete({
@@ -2472,7 +1606,7 @@ async function renderRange(input) {
2472
1606
  quiet: options.quiet,
2473
1607
  format: options.format
2474
1608
  });
2475
- if (options.exitAfterComplete) scheduleCliExit();
1609
+ if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
2476
1610
  return {
2477
1611
  renderTimeMs: elapsed,
2478
1612
  ...reference,
@@ -2944,13 +2078,13 @@ function trackRenderMetrics(job, elapsedMs, options, docker, cpuUsage) {
2944
2078
  }
2945
2079
  function readOutputFootprint(outputPath) {
2946
2080
  try {
2947
- const stat = statSync2(outputPath);
2081
+ const stat = statSync(outputPath);
2948
2082
  if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
2949
2083
  let total = 0;
2950
2084
  for (const entry of readdirSync(outputPath, { withFileTypes: true })) {
2951
2085
  if (!entry.isFile()) continue;
2952
2086
  try {
2953
- total += statSync2(join2(outputPath, entry.name)).size;
2087
+ total += statSync(join(outputPath, entry.name)).size;
2954
2088
  } catch {
2955
2089
  }
2956
2090
  }