hyperframes 0.9.31 → 0.9.32

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 (275) hide show
  1. package/dist/{add-53MR45WI.js → add-HYI4YJC5.js} +16 -16
  2. package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-JAQNBEUZ.js} +35 -18
  3. package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-DVYRCZVR.js} +10 -10
  4. package/dist/api.js +40 -36
  5. package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
  6. package/dist/{asset-Y3YAVXJ3.js → asset-7FG3M3FQ.js} +2 -2
  7. package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-QDQZYHUC.js} +12 -12
  8. package/dist/{audio-TRDZQ2NW.js → audio-R6ZG62DU.js} +20 -19
  9. package/dist/{auth-MN66MWGN.js → auth-IPDYZXOG.js} +2 -2
  10. package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-GAEDDZRN.js} +2 -2
  11. package/dist/{avatars-F2COSI7P.js → avatars-A45VFUZ4.js} +14 -14
  12. package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-US74BS6V.js} +3 -3
  13. package/dist/backgroundChecksWorker.js +4 -4
  14. package/dist/{batchRender-CI6OFGS5.js → batchRender-VBSYVQA7.js} +5 -5
  15. package/dist/{beats-GBCNB763.js → beats-UPJ3KANG.js} +12 -12
  16. package/dist/{benchmark-AHHMJBDN.js → benchmark-2RWYJGL2.js} +10 -10
  17. package/dist/{billing-HME22C5A.js → billing-MD66MJTA.js} +15 -15
  18. package/dist/{browser-VZTIOZI3.js → browser-JXCS62NX.js} +7 -7
  19. package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-RAD7BNJF.js} +1 -1
  20. package/dist/{capture-ZILHWIOF.js → capture-DJ4WRP62.js} +52 -29
  21. package/dist/{capture-NU2ZIXJB.js → capture-M6DT5WZT.js} +4 -4
  22. package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-IRXG7ZFU.js} +17 -17
  23. package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
  24. package/dist/{catalog-NVEGPXGE.js → catalog-GW45OWKU.js} +16 -16
  25. package/dist/{catch-up-W7ST5JSZ.js → catch-up-YKJQ4IYC.js} +10 -10
  26. package/dist/{check-BZ652RYH.js → check-7QTKMPGA.js} +49 -49
  27. package/dist/{checkAudio-5NVSRMGL.js → checkAudio-7WHUYGUZ.js} +14 -14
  28. package/dist/{checkBrowser-YN454IBU.js → checkBrowser-USAOWTAF.js} +42 -42
  29. package/dist/chunk-262ADJJN.js +193 -0
  30. package/dist/{chunk-SCWMPY3F.js → chunk-2NMBD5AH.js} +1 -1
  31. package/dist/{chunk-RHUYVGFO.js → chunk-2T7EDEKE.js} +7 -7
  32. package/dist/{chunk-OJSOH2LS.js → chunk-2W4VQ3YZ.js} +2 -2
  33. package/dist/{chunk-RJA64ACI.js → chunk-2Z42EUHG.js} +2 -2
  34. package/dist/{chunk-HM3PIREE.js → chunk-3367VNGK.js} +2 -2
  35. package/dist/{chunk-RLYYA6IR.js → chunk-34S7GYVK.js} +1 -1
  36. package/dist/{chunk-TEOIEMTR.js → chunk-3HT3UGF2.js} +1 -1
  37. package/dist/{chunk-AQJA7TAQ.js → chunk-3PHCFSPD.js} +2 -2
  38. package/dist/{chunk-BJSUKOWW.js → chunk-3R2X2VKB.js} +2 -2
  39. package/dist/{chunk-OOEZ3FT3.js → chunk-4CSZZXL6.js} +3 -3
  40. package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
  41. package/dist/{chunk-O7ZX5DHD.js → chunk-5FFYMVRD.js} +2 -2
  42. package/dist/{chunk-6WHOI52Z.js → chunk-5GXMZIQZ.js} +8 -8
  43. package/dist/{chunk-Q7EIUAYK.js → chunk-5VN7ZXJR.js} +3 -3
  44. package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
  45. package/dist/{chunk-X3HQA3YE.js → chunk-6BI6URO2.js} +8 -7
  46. package/dist/{chunk-Q77TZ76B.js → chunk-6MTSP2XE.js} +8 -8
  47. package/dist/{chunk-7XZS4PNM.js → chunk-6NNLDCX4.js} +1 -1
  48. package/dist/{chunk-3OA75WJW.js → chunk-6RFCS4IU.js} +9 -4
  49. package/dist/{chunk-IIMW46LC.js → chunk-6SNGKC6B.js} +1 -1
  50. package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
  51. package/dist/{chunk-URXVZMSI.js → chunk-ADP2GIBS.js} +2 -2
  52. package/dist/{chunk-CWN75OWQ.js → chunk-AOQRVS63.js} +13 -3
  53. package/dist/{chunk-RVI665CP.js → chunk-AWT5FHTN.js} +1 -1
  54. package/dist/{chunk-G5DZZEQF.js → chunk-AZ2QJETV.js} +1 -1
  55. package/dist/{chunk-YJVJCNK4.js → chunk-BA3EQ2KL.js} +3 -3
  56. package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
  57. package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
  58. package/dist/{chunk-GFDXA5QO.js → chunk-CMYUPVMI.js} +2 -2
  59. package/dist/{chunk-DFSAC4F4.js → chunk-D6BV6TTI.js} +1 -1
  60. package/dist/{chunk-OZNJ2QD5.js → chunk-D7NNNL2K.js} +13 -13
  61. package/dist/{chunk-MMAPQWUP.js → chunk-E5S4QMX7.js} +2 -2
  62. package/dist/{chunk-G5S72X6Q.js → chunk-EBG5RCPM.js} +4 -4
  63. package/dist/{chunk-R5U5PFDJ.js → chunk-EJPWGGPK.js} +68 -26
  64. package/dist/{chunk-FKW5FP4C.js → chunk-EXW2LV4K.js} +114 -74
  65. package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
  66. package/dist/{chunk-P7LZ2WSQ.js → chunk-G6JLFSII.js} +2 -2
  67. package/dist/{chunk-LHBQW4GJ.js → chunk-G7NKYELQ.js} +23 -15
  68. package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
  69. package/dist/{chunk-W4OMDRZF.js → chunk-GCJRV7LU.js} +28 -8
  70. package/dist/{chunk-AWL5M7BX.js → chunk-GJUL3PRV.js} +4 -4
  71. package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
  72. package/dist/{chunk-5AMGFTMU.js → chunk-GTHRXU37.js} +15 -15
  73. package/dist/{chunk-GRHBVTBK.js → chunk-GWSCUFGL.js} +2 -2
  74. package/dist/{chunk-SQ63BIR2.js → chunk-H4C3P2KV.js} +3 -3
  75. package/dist/{chunk-FK3KV32T.js → chunk-H7AJLEBR.js} +26 -23
  76. package/dist/{chunk-L6ZLOJBI.js → chunk-HDCVU64B.js} +1 -1
  77. package/dist/{chunk-Y6RU3H6C.js → chunk-HWMNSWEA.js} +6 -6
  78. package/dist/{chunk-WSPGX2SM.js → chunk-HXQDDCGY.js} +1 -1
  79. package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
  80. package/dist/{chunk-CUORARXJ.js → chunk-I3QXWJ7V.js} +7 -7
  81. package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
  82. package/dist/{chunk-MX3UCKZR.js → chunk-JHX76QFC.js} +1 -1
  83. package/dist/{chunk-C4U6FRZH.js → chunk-JMV63CNH.js} +14 -11
  84. package/dist/{chunk-4HSE3FWO.js → chunk-K72X2YXR.js} +3 -3
  85. package/dist/{chunk-OB6DVKHE.js → chunk-KAG5KXNO.js} +2 -2
  86. package/dist/{chunk-J5LQW6VB.js → chunk-KFXHBP2E.js} +2 -2
  87. package/dist/{chunk-MQOO5Z4U.js → chunk-KG3TONXU.js} +6 -6
  88. package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
  89. package/dist/{chunk-KKUBMYCY.js → chunk-KXOKZJBZ.js} +10 -10
  90. package/dist/{chunk-XDIHAX2C.js → chunk-L72MPEM2.js} +1 -1
  91. package/dist/{chunk-RBECDLMQ.js → chunk-LBQQNNRC.js} +1 -1
  92. package/dist/{chunk-CP4FVXKZ.js → chunk-LHFBKUVY.js} +2 -2
  93. package/dist/{chunk-RLQOYHXT.js → chunk-LJMTEZOP.js} +10 -10
  94. package/dist/{chunk-3SZ43GZG.js → chunk-LXIEKLAC.js} +5 -5
  95. package/dist/{chunk-KAICKZZK.js → chunk-M6FNCANA.js} +1 -1
  96. package/dist/{chunk-ZOOY4LEZ.js → chunk-M6LAGO6O.js} +2 -2
  97. package/dist/{chunk-5Q3TTLGB.js → chunk-MYFAVVA6.js} +22 -22
  98. package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
  99. package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
  100. package/dist/{chunk-B7H5RCKP.js → chunk-NNOAOQLT.js} +2 -2
  101. package/dist/{chunk-56MGA4FM.js → chunk-NXSKZE3C.js} +2 -2
  102. package/dist/{chunk-RCWPVC4M.js → chunk-P5E3RHW3.js} +2 -2
  103. package/dist/{chunk-SEVZKBMA.js → chunk-P7TCIUP2.js} +4 -4
  104. package/dist/{chunk-5BIMSULZ.js → chunk-PVSRPNIV.js} +1 -1
  105. package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
  106. package/dist/{chunk-GSXHYLW4.js → chunk-PXY3JZP2.js} +2 -2
  107. package/dist/{chunk-T54RTTFW.js → chunk-RCRUWNQ4.js} +3 -3
  108. package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
  109. package/dist/{chunk-BCMR6DE4.js → chunk-SFPIVVUE.js} +2 -2
  110. package/dist/{chunk-T7PFJH2B.js → chunk-SIRYW7SY.js} +2 -2
  111. package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
  112. package/dist/{chunk-ZSELEQI2.js → chunk-SXOIG6VG.js} +186 -52
  113. package/dist/chunk-TFBPCJPG.js +26 -0
  114. package/dist/{chunk-JULHFF3J.js → chunk-TLUDJLBN.js} +1 -1
  115. package/dist/{chunk-5YYGPTBP.js → chunk-TTSLKH63.js} +3 -3
  116. package/dist/{chunk-XB77LMOP.js → chunk-TVQNABOI.js} +1 -1
  117. package/dist/{chunk-K7JA32EI.js → chunk-TZH6HNZH.js} +2 -2
  118. package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
  119. package/dist/{chunk-PGGMJW7B.js → chunk-UWMOMAYI.js} +35 -7
  120. package/dist/{chunk-DJVSNDF3.js → chunk-VB3JZKMN.js} +104 -14
  121. package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
  122. package/dist/{chunk-5HVQV4H4.js → chunk-W3HNLDK6.js} +2 -2
  123. package/dist/{chunk-44VR2CWT.js → chunk-WLNQAJQC.js} +2 -2
  124. package/dist/{chunk-O4Z4D4KA.js → chunk-WTO4DHBH.js} +1 -1
  125. package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
  126. package/dist/{chunk-6VNDEMSP.js → chunk-X6DWLN55.js} +3 -3
  127. package/dist/{chunk-IHWNDG5C.js → chunk-XB7HE2R5.js} +3 -3
  128. package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
  129. package/dist/{chunk-CWOUPW5E.js → chunk-XH6LGDIB.js} +4 -4
  130. package/dist/{chunk-3DIYMOES.js → chunk-XPT4GC6X.js} +6 -6
  131. package/dist/{chunk-ZQYRP22G.js → chunk-Y3YHDU7T.js} +1 -1
  132. package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
  133. package/dist/{chunk-ELWX6CAA.js → chunk-YAZQBB2S.js} +1 -1
  134. package/dist/{chunk-5LLDGJGZ.js → chunk-YCTWMO3G.js} +1 -1
  135. package/dist/{chunk-OBRKDUCE.js → chunk-YIE5FU73.js} +3 -3
  136. package/dist/{chunk-KAHWO4XC.js → chunk-YMIEJZB6.js} +3 -3
  137. package/dist/{chunk-22PWPQVX.js → chunk-Z6X64P6C.js} +3 -3
  138. package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
  139. package/dist/{clean-WYXHI2DO.js → clean-MJBET4EN.js} +26 -26
  140. package/dist/cli.js +64 -64
  141. package/dist/{cloud-X52P5AIE.js → cloud-WEDQYHZE.js} +4 -4
  142. package/dist/{cloud-TDXVUIUM.js → cloud-Z4Q76MLS.js} +3 -3
  143. package/dist/{cloudrun-36IR6ZKU.js → cloudrun-2KGSRAKA.js} +7 -7
  144. package/dist/{compare-R2KXOV2I.js → compare-MJKWQOD7.js} +41 -41
  145. package/dist/{compiler-FRWUFIQC.js → compiler-ETXRTUQC.js} +6 -6
  146. package/dist/{component-TIBQY7KQ.js → component-PZGKEJ6L.js} +3 -3
  147. package/dist/{compositions-NQPORXIX.js → compositions-N3FEEWH7.js} +14 -14
  148. package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
  149. package/dist/{curve-DTLRPBSB.js → curve-MWABBM7Q.js} +14 -14
  150. package/dist/{cuts-73HKU767.js → cuts-BQFSSNY7.js} +15 -15
  151. package/dist/{delete-HIHA436T.js → delete-HPHGJABK.js} +5 -5
  152. package/dist/deploy-JY2QOB5F.js +213 -0
  153. package/dist/{describeProject-4A5UXQ25.js → describeProject-S6AGYZWL.js} +11 -11
  154. package/dist/{destroy-4DOMPOYB.js → destroy-AZK7J4IR.js} +19 -15
  155. package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
  156. package/dist/{diff-JPADFUMV.js → diff-XDNFCAU4.js} +36 -36
  157. package/dist/{dist-EFXKPJJT.js → dist-6EE3Y4M7.js} +3 -3
  158. package/dist/{dist-KWXQYTRT.js → dist-EYEYDD4F.js} +18 -18
  159. package/dist/{dist-FKEKIXVL.js → dist-TYGDYK56.js} +4 -4
  160. package/dist/docs/rendering.md +2 -0
  161. package/dist/{doctor-3OO3CONL.js → doctor-6IRSMKZD.js} +16 -16
  162. package/dist/{energy-XFPN5YIL.js → energy-VCJ2FJEF.js} +15 -15
  163. package/dist/{events-QWPZT3EQ.js → events-DNTIMCUM.js} +17 -17
  164. package/dist/{events-G2MME5LQ.js → events-M6A7BT3V.js} +7 -7
  165. package/dist/{events-6ONCYFB5.js → events-QQYBD7JM.js} +2 -2
  166. package/dist/{extract-3EV72SMY.js → extract-X3IVXYHX.js} +15 -15
  167. package/dist/{face-JZS6P3AT.js → face-MZHXKBDB.js} +16 -16
  168. package/dist/{feedback-JVWBHRQG.js → feedback-TAMGYFUO.js} +15 -11
  169. package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-XWPYYYB6.js} +10 -10
  170. package/dist/{figma-KPHTDMCQ.js → figma-WMD7AR2S.js} +3 -3
  171. package/dist/fontLocalizeCli.js +17 -17
  172. package/dist/{frames-KRVRJTKC.js → frames-OU2UOLBU.js} +17 -17
  173. package/dist/{generate-X2MYGFZX.js → generate-6F6QEFXW.js} +26 -26
  174. package/dist/{get-QM24BI7N.js → get-VVDO7DXG.js} +5 -5
  175. package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-CVNSHXHJ.js} +10 -10
  176. package/dist/{grade-compare-W5N5LH4X.js → grade-compare-O6LY2U73.js} +40 -40
  177. package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
  178. package/dist/hangReport.js +1 -1
  179. package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-J6TILZTM.js} +11 -11
  180. package/dist/{help-LWS4YWMO.js → help-XLSTTDHR.js} +1 -1
  181. package/dist/{history-SG34LBJY.js → history-DBCCWBDG.js} +13 -13
  182. package/dist/hyperframes-player.global.js +1 -1
  183. package/dist/{info-2FC43IYB.js → info-E46BWAQ7.js} +16 -16
  184. package/dist/{init-GKY5OKDV.js → init-23TG5W7S.js} +33 -33
  185. package/dist/{ink-7UK6YCUY.js → ink-6UFSNJRW.js} +15 -15
  186. package/dist/{inspect-ZB2NTNQA.js → inspect-RKI6XACH.js} +40 -40
  187. package/dist/{installer-GALVXWPC.js → installer-JWPK75BR.js} +8 -8
  188. package/dist/{keyframes-LSP4FLHT.js → keyframes-J65V5A2G.js} +10 -10
  189. package/dist/{lambda-3F32DRYF.js → lambda-RZSXXBJU.js} +19 -19
  190. package/dist/{layout-XPGS3QTX.js → layout-RJQUOYWB.js} +40 -40
  191. package/dist/{lint-Q5SO57RK.js → lint-4TUHKKA2.js} +12 -12
  192. package/dist/{lintProject-5CBL7VFV.js → lintProject-R6RTBSCZ.js} +3 -3
  193. package/dist/{list-FL5RYSFT.js → list-HOD2N4VS.js} +5 -5
  194. package/dist/{localPage-IOHQETQT.js → localPage-TC4NC3VL.js} +11 -11
  195. package/dist/{login-D4TCWDDW.js → login-NTOS3HKD.js} +4 -4
  196. package/dist/{look-G2BT4E4A.js → look-GC63E2I7.js} +15 -15
  197. package/dist/{manager-F6WI43DQ.js → manager-FICBET24.js} +11 -11
  198. package/dist/{measure-VXQQHYMZ.js → measure-WTQCSQ55.js} +11 -11
  199. package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-KTZ6X2P2.js} +16 -16
  200. package/dist/{media-use-63LZFAID.js → media-use-K75FDXJ3.js} +10 -5
  201. package/dist/{models-MWUVU4CY.js → models-JKOA542M.js} +14 -14
  202. package/dist/{motionShot-U4YDT7UV.js → motionShot-A3TYKTQU.js} +20 -20
  203. package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-7JUM42YB.js} +12 -12
  204. package/dist/{open-DRLXHOW2.js → open-F6GI4TRA.js} +18 -18
  205. package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-6XIAKJLS.js} +17 -17
  206. package/dist/{pipeline-MAIRRYD6.js → pipeline-7P7LGGQG.js} +13 -13
  207. package/dist/{play-33A3EXX3.js → play-DYOZLKWX.js} +36 -30
  208. package/dist/{preflight-HSWMKB2Q.js → preflight-VM4HSRBY.js} +11 -11
  209. package/dist/{present-HJIFEIDH.js → present-IINIEZJC.js} +30 -24
  210. package/dist/{preview-J6Z6RKMN.js → preview-NJO2UXWJ.js} +25 -25
  211. package/dist/{probe-RA4VOGYY.js → probe-LQQHFX5Q.js} +15 -15
  212. package/dist/{producer-KWP2B4A5.js → producer-LH2SZHJ2.js} +1 -1
  213. package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
  214. package/dist/{projectConfig-3YIGHLNE.js → projectConfig-BLACFLUW.js} +11 -11
  215. package/dist/{publication-QRUY2WJK.js → publication-NFF2BXIE.js} +6 -6
  216. package/dist/{publish-GV3I3GUL.js → publish-JST5Y4UR.js} +19 -17
  217. package/dist/{remove-background-UUITKXEQ.js → remove-background-WUBESLWN.js} +14 -14
  218. package/dist/{render-EC67XXR2.js → render-4KWUUC5H.js} +75 -45
  219. package/dist/{render-NHVDJRFD.js → render-DA4V7CEE.js} +8 -8
  220. package/dist/{render-ZITQXHJP.js → render-R4VNR4E2.js} +34 -30
  221. package/dist/{render-batch-RII4F3PD.js → render-batch-JMPG4RLT.js} +8 -8
  222. package/dist/renderSetupWorker.js +4 -4
  223. package/dist/{resolver-R3FXDZKS.js → resolver-PNIFIDIE.js} +8 -8
  224. package/dist/{reverse-2GJ5Y3WM.js → reverse-4NI7D2C3.js} +1 -1
  225. package/dist/{run-24USN7TA.js → run-FWBIBLYE.js} +4 -3
  226. package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-KOLNFU7W.js} +13 -13
  227. package/dist/{sherpa-YIJR47GX.js → sherpa-W3BMN67E.js} +16 -16
  228. package/dist/sherpaWorker.js +1 -1
  229. package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
  230. package/dist/skills/hyperframes-cli/references/preview-render.md +1 -0
  231. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
  232. package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
  233. package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
  234. package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
  235. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
  236. package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
  237. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
  238. package/dist/{skills-DM3XC7RQ.js → skills-KQQVUFGO.js} +10 -10
  239. package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-VY5PS46S.js} +3 -3
  240. package/dist/{snapshot-72RQQXHW.js → snapshot-VIEJQAUB.js} +82 -57
  241. package/dist/{src-C43KUEBY.js → src-HHPRCLEW.js} +11 -9
  242. package/dist/{src-SPFGPZZQ.js → src-MQU5F7GJ.js} +15 -15
  243. package/dist/{start-FSYSYLI7.js → start-ZBNNVFMU.js} +24 -24
  244. package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
  245. package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-VPGZWJF4.js} +27 -27
  246. package/dist/{status-TE74GP4Q.js → status-RBZJYT7T.js} +17 -17
  247. package/dist/studio/assets/{codec-DXM4vA6G.js → codec-Bz1jsLs8.js} +1 -1
  248. package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-cdH5Sz_t.js} +1 -1
  249. package/dist/studio/assets/{index-Ob53qo6K.js → index-D1l7izdf.js} +176 -176
  250. package/dist/studio/assets/{index-Bw4stQMm.js → index-DFRbcd5J.js} +1 -1
  251. package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CgV8YB6S.js} +1 -1
  252. package/dist/studio/index.html +1 -1
  253. package/dist/{studio-api-JAOHMYPG.js → studio-api-EPZGLIWW.js} +18 -18
  254. package/dist/{studioServer-RHCPM4CN.js → studioServer-YFQQ2ESJ.js} +68 -62
  255. package/dist/{sync-UZJ7DOUA.js → sync-FRT55PVW.js} +15 -15
  256. package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
  257. package/dist/{telemetry-TFOEA2PM.js → telemetry-HAPPFR7P.js} +7 -7
  258. package/dist/{templates-2AHM5TZ3.js → templates-2IHYIWMA.js} +15 -15
  259. package/dist/{timeline-ZGV323MP.js → timeline-AY2F7BJF.js} +25 -25
  260. package/dist/{tokens-ERUFEWUA.js → tokens-B3G257V3.js} +2 -2
  261. package/dist/{transcribe-M5UZ2XFG.js → transcribe-EGQD32PT.js} +14 -14
  262. package/dist/{transcribe-6HLYS7NV.js → transcribe-RJCILGPA.js} +30 -30
  263. package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
  264. package/dist/{update-JDVI2XTM.js → update-XTFIGQKW.js} +12 -11
  265. package/dist/{updateCheck-GDTYPXKO.js → updateCheck-M6YC52A4.js} +2 -2
  266. package/dist/{upgrade-SJKYBA4X.js → upgrade-AKLIZKAO.js} +5 -3
  267. package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-57A7Q7FC.js} +9 -9
  268. package/dist/{validate-IUTHTA2N.js → validate-YWSXJL54.js} +32 -32
  269. package/dist/{video-4BJ7WHI2.js → video-I5DDNK3Y.js} +12 -12
  270. package/dist/{voices-UDSFBPZX.js → voices-IBMJU73H.js} +24 -24
  271. package/dist/warmCheck.js +50 -50
  272. package/dist/warmCheckClient.js +1 -1
  273. package/package.json +1 -1
  274. package/dist/chunk-2X4PQEYM.js +0 -34
  275. package/dist/deploy-EB3FS2BT.js +0 -361
@@ -11,21 +11,21 @@ import {
11
11
  iterateFontFamilyDeclarations,
12
12
  normalizeSystemFontPrimaryFamilies,
13
13
  resolveFontFamilyDeclarationFamilies
14
- } from "./chunk-JLUOG6S2.js";
14
+ } from "./chunk-4FTJE22M.js";
15
15
  import {
16
16
  Semaphore,
17
17
  prepareHeifImageInputs,
18
18
  withMediaProbeSlot
19
- } from "./chunk-T54RTTFW.js";
19
+ } from "./chunk-RCRUWNQ4.js";
20
20
  import {
21
21
  EncoderInterruptedError,
22
22
  encoderFailureError,
23
23
  prepareAnimatedGifInputs
24
- } from "./chunk-6VNDEMSP.js";
24
+ } from "./chunk-X6DWLN55.js";
25
25
  import {
26
26
  openRangeEnd,
27
27
  parseEncoderOptions
28
- } from "./chunk-VEIGTKYZ.js";
28
+ } from "./chunk-64F653HO.js";
29
29
  import {
30
30
  RENDER_TEMP_DIR,
31
31
  createStudioPositionSeekReapplyScript
@@ -139,6 +139,7 @@ import {
139
139
  isVideoPastTimelineEnd,
140
140
  keyframeIntervalToGopSize,
141
141
  measureVideoShownBoxes,
142
+ mediaIdPathSegment,
142
143
  mergeWorkerFrames,
143
144
  muxVideoWithAudio,
144
145
  normalizeObjectFit,
@@ -186,7 +187,7 @@ import {
186
187
  videoAudioId,
187
188
  videoStartOnMediaTimeline,
188
189
  writeCapturedFrame
189
- } from "./chunk-R5U5PFDJ.js";
190
+ } from "./chunk-EJPWGGPK.js";
190
191
  import {
191
192
  assignBundledRuntimeCompositionIds,
192
193
  emitMountedModuleScripts,
@@ -198,13 +199,13 @@ import {
198
199
  parsesAsScript,
199
200
  prepareFlattenedInnerRoot,
200
201
  stripSdrPngColourTags
201
- } from "./chunk-OBRKDUCE.js";
202
+ } from "./chunk-YIE5FU73.js";
202
203
  import {
203
204
  collectScratchLeftovers,
204
205
  createStagingDir,
205
206
  removeScratch,
206
207
  renameWithRetry
207
- } from "./chunk-IEXRKKHC.js";
208
+ } from "./chunk-IEEIPTDW.js";
208
209
  import {
209
210
  TRANSITIONS,
210
211
  convertTransfer,
@@ -227,7 +228,7 @@ import {
227
228
  redactTelemetryString,
228
229
  resolveAuthoredTimingWindow,
229
230
  toFps
230
- } from "./chunk-HM3PIREE.js";
231
+ } from "./chunk-3367VNGK.js";
231
232
  import {
232
233
  COMPOSITION_SOURCE_URL,
233
234
  HF_COLOR_GRADING_ATTR,
@@ -262,14 +263,14 @@ import {
262
263
  sourceTimeAt,
263
264
  styleElementsFor,
264
265
  timeAtSourceTime
265
- } from "./chunk-ELWX6CAA.js";
266
+ } from "./chunk-YAZQBB2S.js";
266
267
  import {
267
268
  chromeMajorCeiling
268
269
  } from "./chunk-WE42NVH7.js";
269
270
  import {
270
271
  lintHyperframeHtml,
271
272
  resolveReferencedStart
272
- } from "./chunk-DJVSNDF3.js";
273
+ } from "./chunk-VB3JZKMN.js";
273
274
  import {
274
275
  isUnresolvedAssetPlaceholder,
275
276
  readProjectFile,
@@ -308,7 +309,7 @@ import {
308
309
  isAspectAgnosticResolutionAlias,
309
310
  normalizeResolutionFlag,
310
311
  suggestMatchingPreset
311
- } from "./chunk-IOPIOX5K.js";
312
+ } from "./chunk-N7C7U3ZR.js";
312
313
  import {
313
314
  parseHTML
314
315
  } from "./chunk-GWTIFRF5.js";
@@ -1226,6 +1227,33 @@ function resolveDeliveryEncoderOptions(config) {
1226
1227
  return { maxBitrate, bufferSize, ...gop };
1227
1228
  }
1228
1229
 
1230
+ // ../producer/src/services/render/chromaSubsampling.ts
1231
+ function validateChromaSubsamplingConfig(config) {
1232
+ if (config.chromaSubsampling !== "444") return;
1233
+ const format = config.format ?? "mp4";
1234
+ if (format !== "mp4") {
1235
+ throw new Error(
1236
+ `[Render] chromaSubsampling "444" supports format "mp4" only (got "${format}"). WebM, MOV and GIF use their own pixel formats, and HLS targets broad playback. Use --format mp4, or drop --chroma-subsampling 444.`
1237
+ );
1238
+ }
1239
+ if (config.hdrMode === "force-hdr") {
1240
+ throw new Error(
1241
+ `[Render] chromaSubsampling "444" is SDR only; HDR output stays 10-bit 4:2:0 H.265. Drop --hdr, or drop --chroma-subsampling 444.`
1242
+ );
1243
+ }
1244
+ if (config.useGpu === true) {
1245
+ throw new Error(
1246
+ `[Render] chromaSubsampling "444" requires the software encoder (libx264); GPU encoders do not reliably support 4:4:4. Re-run without --gpu.`
1247
+ );
1248
+ }
1249
+ }
1250
+ function assertChromaSubsamplingSdr(config, hasHdrContent) {
1251
+ if (config.chromaSubsampling !== "444" || !hasHdrContent) return;
1252
+ throw new Error(
1253
+ `[Render] chromaSubsampling "444" is SDR only, but this composition has HDR sources. Re-run with --sdr (hdrMode "force-sdr"), or drop --chroma-subsampling 444.`
1254
+ );
1255
+ }
1256
+
1229
1257
  // ../producer/src/services/render/shared.ts
1230
1258
  import {
1231
1259
  copyFileSync,
@@ -1330,6 +1358,10 @@ function writeCompiledArtifacts(compiled, workDir, includeSummary) {
1330
1358
  writeFileSync(join3(compileDir, "index.html"), compiled.html, "utf-8");
1331
1359
  for (const [srcPath, html] of compiled.subCompositions) {
1332
1360
  const outPath = join3(compileDir, srcPath);
1361
+ if (!isPathInside2(outPath, compileDir)) {
1362
+ console.warn(`[Render] Skipping sub-composition with unsafe path: ${srcPath}`);
1363
+ continue;
1364
+ }
1333
1365
  mkdirSync(dirname2(outPath), { recursive: true });
1334
1366
  writeFileSync(outPath, html, "utf-8");
1335
1367
  }
@@ -1591,7 +1623,7 @@ function materializeExtractedFramesForCompiledDir(extracted, compiledDir, option
1591
1623
  for (const ext of extracted) {
1592
1624
  const resolvedOut = pathModule.resolve(ext.outputDir);
1593
1625
  if (isPathInside2(resolvedOut, resolvedCompiledDir, { pathModule })) continue;
1594
- const linkPath = pathModule.join(compiledFrameRoot, ext.videoId);
1626
+ const linkPath = pathModule.join(compiledFrameRoot, mediaIdPathSegment(ext.videoId));
1595
1627
  if (!fileSystem.existsSync(linkPath)) {
1596
1628
  fileSystem.mkdirSync(pathModule.dirname(linkPath), { recursive: true });
1597
1629
  stageExtractedFrameDir(
@@ -5584,7 +5616,7 @@ async function extractDeferredFrames(input) {
5584
5616
  const shown = shownDeferredFrameIndexes(input, input.frames, input.fps);
5585
5617
  return Promise.all(
5586
5618
  deferred.map(async (video) => {
5587
- const outputDir = join11(input.outputRoot, video.videoId);
5619
+ const outputDir = join11(input.outputRoot, mediaIdPathSegment(video.videoId));
5588
5620
  const indexes = [...shown.get(video.videoId) ?? []].sort((a, b) => a - b);
5589
5621
  if (indexes.length === 0) {
5590
5622
  return { ...video, outputDir, framePaths: /* @__PURE__ */ new Map(), ownedByLookup: false };
@@ -7786,7 +7818,7 @@ async function readLocalFont(absPath) {
7786
7818
  return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
7787
7819
  }
7788
7820
  async function embedLocalFontFaces(html, projectDir) {
7789
- const { fontToDataUri: toDataUri } = await import("./deterministicFonts-SKRN3TCP.js");
7821
+ const { fontToDataUri: toDataUri } = await import("./deterministicFonts-2ZPRAI3C.js");
7790
7822
  const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
7791
7823
  const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
7792
7824
  let result = html;
@@ -8461,6 +8493,14 @@ function resolveEntryHtmlPath(input) {
8461
8493
  log.info("Extracted standalone entry from index.html host context", { entryFile });
8462
8494
  return wrapperPath;
8463
8495
  }
8496
+ function applyChroma444Gate(cfg, chromaSubsampling, gate, log) {
8497
+ if (!cfg.useDrawElement || chromaSubsampling !== "444") return gate;
8498
+ cfg.useDrawElement = false;
8499
+ log.info(
8500
+ "[Render] Fast capture: chromaSubsampling 444 captures lossless PNG frames, so disabling drawElementImage for this render. Capture uses the platform's baseline route."
8501
+ );
8502
+ return "chroma_444";
8503
+ }
8464
8504
  async function runCompileStage(input) {
8465
8505
  const {
8466
8506
  projectDir,
@@ -8512,6 +8552,7 @@ async function runCompileStage(input) {
8512
8552
  "[Render] Fast capture: composition uses shader transitions, so disabling drawElementImage so page-side compositing stays available."
8513
8553
  );
8514
8554
  }
8555
+ deCompileGate = applyChroma444Gate(cfg, job.config.chromaSubsampling, deCompileGate, log);
8515
8556
  if (!cfg.useDrawElement && cfg.pageSideCompositingAutoDisabled) {
8516
8557
  cfg.enablePageSideCompositing = true;
8517
8558
  cfg.pageSideCompositingAutoDisabled = false;
@@ -8599,11 +8640,19 @@ function isActionableProbeFailure(line) {
8599
8640
 
8600
8641
  // ../producer/src/services/render/captureImageFormat.ts
8601
8642
  function resolveCaptureImageFormat(input) {
8602
- return input.needsAlpha || input.motionBlur ? "png" : "jpeg";
8643
+ return input.needsAlpha || input.motionBlur || input.chromaSubsampling === "444" ? "png" : "jpeg";
8603
8644
  }
8604
8645
  function resolveCaptureJpegQuality(quality) {
8605
8646
  return quality === "draft" ? 80 : 100;
8606
8647
  }
8648
+ function resolveCaptureSurface(input, quality) {
8649
+ const format = resolveCaptureImageFormat(input);
8650
+ return {
8651
+ format,
8652
+ quality: format === "png" ? void 0 : resolveCaptureJpegQuality(quality),
8653
+ transparent: input.needsAlpha
8654
+ };
8655
+ }
8607
8656
 
8608
8657
  // ../producer/src/services/render/stages/probeStage.ts
8609
8658
  var FRAME_BOUNDARY_EPSILON = 1e-3;
@@ -8780,15 +8829,15 @@ async function runProbeStage(input) {
8780
8829
  });
8781
8830
  assertNotAborted();
8782
8831
  const motionBlur = job.config.motionBlur;
8783
- const captureFormat = resolveCaptureImageFormat({ needsAlpha, motionBlur });
8784
8832
  const captureOpts = {
8785
8833
  recordReferenceBackground: input.recordReferenceBackground,
8786
8834
  width,
8787
8835
  height,
8788
8836
  fps: job.config.fps,
8789
- format: captureFormat,
8790
- transparent: needsAlpha,
8791
- quality: captureFormat === "png" ? void 0 : resolveCaptureJpegQuality(job.config.quality),
8837
+ ...resolveCaptureSurface(
8838
+ { needsAlpha, motionBlur, chromaSubsampling: job.config.chromaSubsampling },
8839
+ job.config.quality
8840
+ ),
8792
8841
  variables: job.config.variables,
8793
8842
  deviceScaleFactor,
8794
8843
  motionBlur,
@@ -12583,13 +12632,20 @@ function resetCaptureAttemptProgress(job) {
12583
12632
  job.framesRendered = 0;
12584
12633
  }
12585
12634
  var FIRST_FRAME_STALL_MS = 3e5;
12635
+ var FIRST_FRAME_STARTUP_FACTOR = 2;
12636
+ var FIRST_FRAME_STALL_CEILING_MS = 9e5;
12586
12637
  var TAIL_STALL_MS = FIRST_FRAME_STALL_MS;
12587
- function frameStallRule(job, totalFrames) {
12638
+ function firstFrameWindowMs(probeStartupMs) {
12639
+ const fromStartup = (probeStartupMs ?? 0) * FIRST_FRAME_STARTUP_FACTOR;
12640
+ if (!Number.isFinite(fromStartup)) return FIRST_FRAME_STALL_MS;
12641
+ return Math.max(FIRST_FRAME_STALL_MS, Math.min(FIRST_FRAME_STALL_CEILING_MS, fromStartup));
12642
+ }
12643
+ function frameStallRule(job, totalFrames, probeStartupMs) {
12588
12644
  const noProgressMs = resolveCaptureStallTimeoutMs();
12589
12645
  return {
12590
12646
  progress: () => job.framesRendered ?? 0,
12591
12647
  noProgressMs,
12592
- firstProgressMs: Math.max(FIRST_FRAME_STALL_MS, noProgressMs),
12648
+ firstProgressMs: Math.max(firstFrameWindowMs(probeStartupMs), noProgressMs),
12593
12649
  complete: () => (job.framesRendered ?? 0) >= totalFrames,
12594
12650
  tailMs: Math.max(TAIL_STALL_MS, noProgressMs),
12595
12651
  detail: () => describeWorkerPhases(job),
@@ -13281,6 +13337,7 @@ function resolveRenderDebugDir() {
13281
13337
  async function executeRenderJob(job, projectDir, outputPath, progressSink, abortSignal, assertRenderActive) {
13282
13338
  validateHlsRenderConfig(job.config);
13283
13339
  validateDeliveryEncoderConfig(job.config);
13340
+ validateChromaSubsamplingConfig(job.config);
13284
13341
  const debugDir = resolveRenderDebugDir();
13285
13342
  const outputDir = dirname11(outputPath);
13286
13343
  if (!existsSync21(outputDir)) mkdirSync10(outputDir, { recursive: true });
@@ -13818,18 +13875,28 @@ async function executeRenderPipeline(input) {
13818
13875
  forceScreenshot: captureForceScreenshot
13819
13876
  });
13820
13877
  const videoCaptureBeyondViewport = resolveVideoCaptureBeyondViewport(composition.videos.length);
13821
- const captureImageFormat = resolveCaptureImageFormat({
13822
- needsAlpha,
13823
- motionBlur: job.config.motionBlur
13824
- });
13878
+ const captureSurface = resolveCaptureSurface(
13879
+ {
13880
+ needsAlpha,
13881
+ motionBlur: job.config.motionBlur,
13882
+ chromaSubsampling: job.config.chromaSubsampling
13883
+ },
13884
+ job.config.quality
13885
+ );
13886
+ if (job.config.chromaSubsampling === "444") {
13887
+ log.info("[Render] Capture: png (chromaSubsampling 444, lossless)");
13888
+ }
13825
13889
  const captureOptions = {
13826
13890
  width,
13827
13891
  height,
13828
13892
  fps: job.config.fps,
13829
- format: videoLayer ? "png" : captureImageFormat,
13830
- transparent: needsAlpha || videoLayer !== void 0,
13831
- ...videoLayer ? { hiddenElementIds: [videoLayer.videoId] } : {},
13832
- quality: captureImageFormat === "png" ? void 0 : resolveCaptureJpegQuality(job.config.quality),
13893
+ ...captureSurface,
13894
+ ...videoLayer ? {
13895
+ format: "png",
13896
+ quality: void 0,
13897
+ transparent: true,
13898
+ hiddenElementIds: [videoLayer.videoId]
13899
+ } : {},
13833
13900
  variables: job.config.variables,
13834
13901
  deviceScaleFactor,
13835
13902
  motionBlur: job.config.motionBlur,
@@ -13936,6 +14003,7 @@ async function executeRenderPipeline(input) {
13936
14003
  );
13937
14004
  const nativeHdrIds = /* @__PURE__ */ new Set([...nativeHdrVideoIds, ...nativeHdrImageIds]);
13938
14005
  const hasHdrContent = Boolean(effectiveHdr && nativeHdrIds.size > 0);
14006
+ assertChromaSubsamplingSdr(job.config, hasHdrContent);
13939
14007
  if (hasHdrContent) assertOutputScaleSupported(deviceScaleFactor, "hdr_layered");
13940
14008
  routePageMotionBlur = pageMotionBlurForRoute({ hasHdrContent, useLayeredComposite: false });
13941
14009
  const deSingleMinFrames = resolveDeSingleMinFrames(process.env);
@@ -14518,7 +14586,9 @@ async function executeRenderPipeline(input) {
14518
14586
  usePageSideCompositing: capturePlan.usePageSideCompositing,
14519
14587
  hasHdrContent: capturePlan.hasHdrContent,
14520
14588
  hasShaderTransitions: compiled.hasShaderTransitions,
14521
- isPngSequence
14589
+ isPngSequence,
14590
+ captureImageFormat: captureOptions.format ?? "jpeg",
14591
+ chromaSubsampling: job.config.chromaSubsampling ?? "420"
14522
14592
  });
14523
14593
  const encoderHdr = hasHdrContent ? effectiveHdr : void 0;
14524
14594
  const presetFormat = outputFormat === "webm" || outputFormat === "mov" ? outputFormat : "mp4";
@@ -14526,7 +14596,8 @@ async function executeRenderPipeline(input) {
14526
14596
  job.config.quality,
14527
14597
  presetFormat,
14528
14598
  encoderHdr,
14529
- job.config.proresProfile
14599
+ job.config.proresProfile,
14600
+ job.config.chromaSubsampling
14530
14601
  );
14531
14602
  if (job.config.crf != null && job.config.videoBitrate) {
14532
14603
  log.warn(
@@ -14608,7 +14679,7 @@ async function executeRenderPipeline(input) {
14608
14679
  onProgress
14609
14680
  });
14610
14681
  },
14611
- { stall: frameStallRule(job, totalFrames) }
14682
+ { stall: frameStallRule(job, totalFrames, perfStages.browserProbeMs) }
14612
14683
  );
14613
14684
  lastBrowserConsole = hdrRes.lastBrowserConsole;
14614
14685
  layeredCaptureWarnings.push(...hdrRes.warnings);
@@ -15060,7 +15131,7 @@ async function executeRenderPipeline(input) {
15060
15131
  interleaveFrames: overlap !== null,
15061
15132
  openAttempt
15062
15133
  }),
15063
- { stall: frameStallRule(job, totalFrames) }
15134
+ { stall: frameStallRule(job, totalFrames, perfStages.browserProbeMs) }
15064
15135
  );
15065
15136
  let captureRes;
15066
15137
  try {
@@ -16117,7 +16188,7 @@ function frameNumberFromFileName(name) {
16117
16188
  function rebuildExtractedFramesFromPlanDir(planDir, videos, indexMode = "dense-v1") {
16118
16189
  const result = [];
16119
16190
  for (const v of videos) {
16120
- const outputDir = join32(planDir, "video-frames", v.videoId);
16191
+ const outputDir = join32(planDir, "video-frames", mediaIdPathSegment(v.videoId));
16121
16192
  if (!existsSync23(outputDir)) {
16122
16193
  throw new Error(
16123
16194
  `[renderChunk] planDir missing extracted video frames for ${JSON.stringify(v.videoId)}: ${outputDir} not present. plan() should have written frames here; the planDir is malformed.`
@@ -17636,7 +17707,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
17636
17707
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
17637
17708
  if (probeResult.probeSession) {
17638
17709
  try {
17639
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-C43KUEBY.js");
17710
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-HHPRCLEW.js");
17640
17711
  await closeCaptureSession2(probeResult.probeSession);
17641
17712
  } catch (err) {
17642
17713
  log.warn("[plan] probe session close failed", {
@@ -18214,7 +18285,7 @@ function isExtractionCacheCompleteSentinelPath(path) {
18214
18285
  }
18215
18286
  function resolveExtractedVideoOutputDir(planDir, videoId) {
18216
18287
  const videoRoot = resolve8(planDir, "video-frames");
18217
- const outputDir = resolve8(videoRoot, videoId);
18288
+ const outputDir = resolve8(videoRoot, mediaIdPathSegment(videoId));
18218
18289
  if (outputDir === videoRoot || !outputDir.startsWith(`${videoRoot}${sep4}`)) {
18219
18290
  throw new PlanV2IntegrityError(`unsafe extracted video id: ${JSON.stringify(videoId)}`);
18220
18291
  }
@@ -19436,7 +19507,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19436
19507
  openAttempt,
19437
19508
  verifyFirstSession: forceScreenshot || !verifyInWorker ? void 0 : verifyFirstWorker
19438
19509
  }),
19439
- { stall: frameStallRule(job, framesInChunk) }
19510
+ { stall: frameStallRule(job, framesInChunk, void 0) }
19440
19511
  ).catch(async (captureError) => {
19441
19512
  await overlap.current?.abort();
19442
19513
  overlap.current = null;
@@ -19850,6 +19921,13 @@ function validateDistributedRenderConfig(config) {
19850
19921
  `distributed mode supports only ${ALLOWED_HDR_MODES.join(", ")}; got ${String(config.hdrMode)}`
19851
19922
  );
19852
19923
  }
19924
+ const chromaSubsampling = config.chromaSubsampling;
19925
+ if (chromaSubsampling !== void 0 && chromaSubsampling !== "420") {
19926
+ throw new InvalidConfigError(
19927
+ "config.chromaSubsampling",
19928
+ `distributed mode encodes 4:2:0 only; got ${String(chromaSubsampling)}`
19929
+ );
19930
+ }
19853
19931
  if (config.variables !== void 0) {
19854
19932
  validateVariablesPayload(config.variables);
19855
19933
  }
@@ -20033,6 +20111,7 @@ function assertRequestOptionScalars(options) {
20033
20111
  assertOptionalEnum(options, "proresProfile", PRORES_PROFILE_NAMES);
20034
20112
  assertOptionalEnum(options, "strictness", ["strict", "best-effort"]);
20035
20113
  assertOptionalEnum(options, "hdrMode", ["auto", "force-hdr", "force-sdr"]);
20114
+ assertOptionalEnum(options, "chromaSubsampling", ["420", "444"]);
20036
20115
  assertOptionalEnum(options, "pageMotionBlur", ["off"]);
20037
20116
  if (options.videoFrameFormat !== void 0 && !isVideoFrameFormat(options.videoFrameFormat)) {
20038
20117
  throw new Error("Render request videoFrameFormat is invalid");
@@ -20121,6 +20200,11 @@ function distributedConfigFromRequest(request, runtime = {}) {
20121
20200
  if (options.hdrMode === "force-hdr") {
20122
20201
  throw new Error("Distributed render does not support force-hdr");
20123
20202
  }
20203
+ if (options.chromaSubsampling === "444") {
20204
+ throw new Error(
20205
+ "Distributed render does not support chromaSubsampling 444: chunk workers and the assemble encode 4:2:0"
20206
+ );
20207
+ }
20124
20208
  return {
20125
20209
  fps: distributedFps(options.fps),
20126
20210
  width: distributed.width,
@@ -20493,7 +20577,15 @@ function parseRenderOptions(body) {
20493
20577
  const format = parseServerFormat(body.format);
20494
20578
  const outputDynamicRange = parseServerOutputDynamicRange(body.outputDynamicRange) ?? fromRenderHdrMode(parseLegacyServerHdrMode(body.hdrMode));
20495
20579
  const encoder = parseEncoderOptions(body, format ?? "mp4");
20496
- const { crf, videoBitrate, videoFrameFormat, keyframeIntervalSeconds, maxBitrate, bufferSize } = encoder.ok ? encoder.options : {};
20580
+ const {
20581
+ crf,
20582
+ videoBitrate,
20583
+ videoFrameFormat,
20584
+ keyframeIntervalSeconds,
20585
+ maxBitrate,
20586
+ bufferSize,
20587
+ chromaSubsampling
20588
+ } = encoder.ok ? encoder.options : {};
20497
20589
  const { variables, outputResolution, outputResolutionAspectAgnostic } = parseRenderOverrides(body);
20498
20590
  return {
20499
20591
  outputPath,
@@ -20506,6 +20598,7 @@ function parseRenderOptions(body) {
20506
20598
  keyframeIntervalSeconds,
20507
20599
  maxBitrate,
20508
20600
  bufferSize,
20601
+ chromaSubsampling,
20509
20602
  useGpu,
20510
20603
  debug,
20511
20604
  forceScreenshot,
@@ -20545,6 +20638,7 @@ function buildRenderJobConfig(input, outputPath, log) {
20545
20638
  keyframeIntervalSeconds: input.keyframeIntervalSeconds,
20546
20639
  maxBitrate: input.maxBitrate,
20547
20640
  bufferSize: input.bufferSize,
20641
+ chromaSubsampling: input.chromaSubsampling,
20548
20642
  useGpu: input.useGpu,
20549
20643
  debug: input.debug,
20550
20644
  strictness: input.strictness,
@@ -20566,12 +20660,25 @@ function resolvePreparedRenderOutput(prepared, rendersDir, log) {
20566
20660
  if (!existsSync32(outputDir)) mkdirSync19(outputDir, { recursive: true });
20567
20661
  return { input, cleanupProjectDir, absoluteOutputPath };
20568
20662
  }
20663
+ function prepareRenderJob(prepared, rendersDir, log) {
20664
+ try {
20665
+ const output = resolvePreparedRenderOutput(prepared, rendersDir, log);
20666
+ const job = createRenderJob(buildRenderJobConfig(output.input, output.absoluteOutputPath, log));
20667
+ return { ...output, job };
20668
+ } catch (error) {
20669
+ cleanupTempDir(prepared.cleanupProjectDir, log);
20670
+ return { error: error instanceof Error ? error.message : String(error) };
20671
+ }
20672
+ }
20569
20673
  function validateRenderOverrides(body) {
20570
20674
  const encoder = parseEncoderOptions(body, parseServerFormat(body.format) ?? "mp4");
20571
20675
  if (!encoder.ok) return encoder.error;
20572
20676
  if (body.maxRenderMs !== void 0 && (typeof body.maxRenderMs !== "number" || !Number.isInteger(body.maxRenderMs) || body.maxRenderMs < 0)) {
20573
20677
  return "maxRenderMs must be a non-negative integer number of milliseconds";
20574
20678
  }
20679
+ if (typeof body.workers === "number" && (!Number.isInteger(body.workers) || body.workers < 1)) {
20680
+ return "workers must be a positive integer";
20681
+ }
20575
20682
  if (body.variables !== void 0 && !isPlainObject2(body.variables)) {
20576
20683
  return 'variables must be a JSON object keyed by variable id (e.g. {"title":"Hello"})';
20577
20684
  }
@@ -20586,6 +20693,9 @@ function validateRenderOverrides(body) {
20586
20693
  if (outputDynamicRange !== void 0 && legacyHdrMode !== void 0 && outputDynamicRange !== fromRenderHdrMode(legacyHdrMode)) {
20587
20694
  return "outputDynamicRange and legacy hdrMode must describe the same output policy";
20588
20695
  }
20696
+ if (body.chromaSubsampling === "444" && outputDynamicRange === "hdr") {
20697
+ return 'chromaSubsampling "444" is SDR only, not outputDynamicRange "hdr"';
20698
+ }
20589
20699
  return validateOutputResolutionOverride(body);
20590
20700
  }
20591
20701
  function validateOutputResolutionOverride(body) {
@@ -20849,11 +20959,11 @@ function createRenderHandlers(options = {}) {
20849
20959
  if ("error" in preparedResult) {
20850
20960
  return c.json({ success: false, requestId, error: preparedResult.error }, 400);
20851
20961
  }
20852
- const { input, cleanupProjectDir, absoluteOutputPath } = resolvePreparedRenderOutput(
20853
- preparedResult.prepared,
20854
- rendersDir,
20855
- log
20856
- );
20962
+ const preparedJob = prepareRenderJob(preparedResult.prepared, rendersDir, log);
20963
+ if ("error" in preparedJob) {
20964
+ return c.json({ success: false, requestId, error: preparedJob.error }, 400);
20965
+ }
20966
+ const { job, input, cleanupProjectDir, absoluteOutputPath } = preparedJob;
20857
20967
  const release = await renderSemaphore.acquire();
20858
20968
  log.info("render started", {
20859
20969
  requestId,
@@ -20861,7 +20971,6 @@ function createRenderHandlers(options = {}) {
20861
20971
  fps: input.fps,
20862
20972
  quality: input.quality
20863
20973
  });
20864
- const job = createRenderJob(buildRenderJobConfig(input, absoluteOutputPath, log));
20865
20974
  try {
20866
20975
  await executeRenderJob(
20867
20976
  job,
@@ -20929,13 +21038,20 @@ function createRenderHandlers(options = {}) {
20929
21038
  const t0 = Date.now();
20930
21039
  const prepared = await prepareSseRenderRequest(c, stream, requestId);
20931
21040
  if (!prepared) return;
20932
- const { input, cleanupProjectDir, absoluteOutputPath } = resolvePreparedRenderOutput(
20933
- prepared,
20934
- rendersDir,
20935
- log
20936
- );
21041
+ const preparedJob = prepareRenderJob(prepared, rendersDir, log);
21042
+ if ("error" in preparedJob) {
21043
+ await stream.writeSSE({
21044
+ data: JSON.stringify({
21045
+ type: "error",
21046
+ requestId,
21047
+ error: preparedJob.error,
21048
+ stage: "validation"
21049
+ })
21050
+ });
21051
+ return;
21052
+ }
21053
+ const { job, input, cleanupProjectDir, absoluteOutputPath } = preparedJob;
20937
21054
  log.info("render-stream started", { requestId, projectDir: input.projectDir });
20938
- const job = createRenderJob(buildRenderJobConfig(input, absoluteOutputPath, log));
20939
21055
  const abortController = new AbortController();
20940
21056
  const onRequestAbort = () => abortController.abort(new RenderCancelledError("request_aborted"));
20941
21057
  c.req.raw.signal.addEventListener("abort", onRequestAbort, { once: true });
@@ -20979,7 +21095,8 @@ function createRenderHandlers(options = {}) {
20979
21095
  videoDurationSeconds: job.duration ?? null,
20980
21096
  outcome: job.outcome ?? "completed",
20981
21097
  warnings: job.warnings,
20982
- perf: job.perfSummary ?? null
21098
+ perf: job.perfSummary ?? null,
21099
+ producerVersion: readProducerVersion()
20983
21100
  })
20984
21101
  });
20985
21102
  } catch (error) {
@@ -21024,9 +21141,26 @@ function createRenderHandlers(options = {}) {
21024
21141
  });
21025
21142
  return { render, renderStream, lint, health, outputs, queue };
21026
21143
  }
21144
+ function isCrossOriginBrowserRequest(c) {
21145
+ const fetchSite = c.req.header("sec-fetch-site");
21146
+ if (fetchSite) return fetchSite !== "same-origin" && fetchSite !== "none";
21147
+ const origin = c.req.header("origin");
21148
+ if (!origin) return false;
21149
+ try {
21150
+ return new URL(origin).host !== c.req.header("host");
21151
+ } catch {
21152
+ return true;
21153
+ }
21154
+ }
21027
21155
  function createProducerApp(options = {}) {
21028
21156
  const app = new Hono2();
21029
21157
  const handlers = createRenderHandlers(options);
21158
+ app.post("*", async (c, next) => {
21159
+ if (isCrossOriginBrowserRequest(c)) {
21160
+ return c.json({ success: false, error: "Cross-origin requests are not allowed" }, 403);
21161
+ }
21162
+ await next();
21163
+ });
21030
21164
  app.get("/health", handlers.health);
21031
21165
  app.post("/render", handlers.render);
21032
21166
  app.post("/render/stream", handlers.renderStream);
@@ -21051,7 +21185,7 @@ function startServer(options = {}) {
21051
21185
  });
21052
21186
  async function shutdown(signal) {
21053
21187
  log.info(`Received ${signal}, shutting down`);
21054
- const { drainBrowserPool } = await import("./src-C43KUEBY.js");
21188
+ const { drainBrowserPool } = await import("./src-HHPRCLEW.js");
21055
21189
  await drainBrowserPool().catch(() => {
21056
21190
  });
21057
21191
  const handle = await Promise.race([
@@ -0,0 +1,26 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ isPrivateProjectFile,
9
+ realFilePath
10
+ } from "./chunk-WXOOAAT4.js";
11
+
12
+ // src/utils/privateProjectFile.ts
13
+ import { relative } from "path";
14
+ var ENV_FILE = /^\.env([._-].*|rc)?$/;
15
+ function isEnvOrGitPath(path) {
16
+ const segments = path.toLowerCase().split(/[\\/]/);
17
+ return segments.includes(".git") || ENV_FILE.test(segments.at(-1) ?? "");
18
+ }
19
+ function isPrivateCompositionFile(projectDir, filePath) {
20
+ return isEnvOrGitPath(relative(projectDir, filePath)) || isEnvOrGitPath(relative(realFilePath(projectDir), realFilePath(filePath))) || isPrivateProjectFile(projectDir, filePath);
21
+ }
22
+
23
+ export {
24
+ isEnvOrGitPath,
25
+ isPrivateCompositionFile
26
+ };
@@ -8,7 +8,7 @@ import {
8
8
  round,
9
9
  runFfmpeg,
10
10
  sumOf
11
- } from "./chunk-SCWMPY3F.js";
11
+ } from "./chunk-2NMBD5AH.js";
12
12
 
13
13
  // src/measure/drawn.ts
14
14
  import { mkdtempSync, readFileSync, rmSync } from "fs";
@@ -12,13 +12,13 @@ import {
12
12
  removeRecord,
13
13
  seenPath,
14
14
  writeRecord
15
- } from "./chunk-54FVSPRH.js";
15
+ } from "./chunk-ZIYXPDKY.js";
16
16
  import {
17
17
  createProjectConfig
18
- } from "./chunk-J5LQW6VB.js";
18
+ } from "./chunk-KFXHBP2E.js";
19
19
  import {
20
20
  isHyperframesProject
21
- } from "./chunk-HM3PIREE.js";
21
+ } from "./chunk-3367VNGK.js";
22
22
  import {
23
23
  isCI
24
24
  } from "./chunk-CPHQTXP5.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  GSAP_CDN_VERSION,
9
9
  gsapCdnDist
10
- } from "./chunk-HM3PIREE.js";
10
+ } from "./chunk-3367VNGK.js";
11
11
 
12
12
  // src/server/readBundleFile.ts
13
13
  import { openSync, fstatSync, closeSync, statSync, readFileSync, constants } from "fs";
@@ -22,10 +22,10 @@ import {
22
22
  import {
23
23
  formatVariableValidationIssue,
24
24
  validateVariables
25
- } from "./chunk-HM3PIREE.js";
25
+ } from "./chunk-3367VNGK.js";
26
26
  import {
27
27
  extractCompositionMetadata
28
- } from "./chunk-IOPIOX5K.js";
28
+ } from "./chunk-N7C7U3ZR.js";
29
29
  import {
30
30
  failCommand,
31
31
  failUsage
@@ -35,3 +35,9 @@ function hideChildConsoles(target = childProcess, platform = process.platform) {
35
35
  if (target === childProcess) syncBuiltinESMExports();
36
36
  }
37
37
  hideChildConsoles();
38
+
39
+ // src/utils/windowsExeSearch.ts
40
+ function skipWorkingDirectoryInExeSearch(env = process.env, platform = process.platform) {
41
+ if (platform === "win32") env.NoDefaultCurrentDirectoryInExePath ??= "1";
42
+ }
43
+ skipWorkingDirectoryInExeSearch();