hyperframes 0.9.28-alpha.1 → 0.9.29

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