hyperframes 0.9.33 → 0.9.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/bin/hyperframes.mjs +10 -0
  2. package/dist/{add-GDXM36YQ.js → add-NBOJ2UA3.js} +16 -15
  3. package/dist/{agentPromptGenerator-KPNDH2EI.js → agentPromptGenerator-3JOLQXTX.js} +10 -10
  4. package/dist/{animatedGifPrep-SAKETEZ2.js → animatedGifPrep-VI5CFYCR.js} +9 -9
  5. package/dist/api.js +38 -38
  6. package/dist/{appHistory-WZIHFCPK.js → appHistory-535MKSWI.js} +2 -2
  7. package/dist/{asset-KOJC72AQ.js → asset-NYULKN5A.js} +2 -2
  8. package/dist/{assetCataloger-Q4ZFUI6G.js → assetCataloger-AWJMEMX7.js} +11 -11
  9. package/dist/{audio-XZBBXKQC.js → audio-QN5YYFOA.js} +19 -19
  10. package/dist/{auth-X45YSZGE.js → auth-LHUBRGIH.js} +2 -2
  11. package/dist/{autoUpdate-77XWQ564.js → autoUpdate-5M3JGEFS.js} +2 -2
  12. package/dist/{avatars-D3D22TI2.js → avatars-DAB2KILV.js} +13 -13
  13. package/dist/{backgroundChecks-2L2RWFJ3.js → backgroundChecks-3NQOCEDM.js} +3 -3
  14. package/dist/backgroundChecksWorker.js +3 -3
  15. package/dist/{batchRender-O7J47H2Z.js → batchRender-EPRIJZVT.js} +4 -4
  16. package/dist/{beats-6RVVU56H.js → beats-ZCPQEIFG.js} +11 -11
  17. package/dist/{benchmark-D5JRNAVQ.js → benchmark-7OVOBGQX.js} +9 -9
  18. package/dist/{billing-WT4DGZII.js → billing-7K6S23FP.js} +14 -14
  19. package/dist/{browser-2OR737P4.js → browser-CP76THCA.js} +8 -7
  20. package/dist/{bundleWithLocalizedFonts-VBET4RVR.js → bundleWithLocalizedFonts-MRCRI676.js} +1 -1
  21. package/dist/{capture-B34FTO6G.js → capture-B4B72PIK.js} +4 -4
  22. package/dist/{capture-23X2CK56.js → capture-VAE27MNW.js} +21 -21
  23. package/dist/{captureCompositionFrame-TPZKEVKN.js → captureCompositionFrame-YAOQTG6R.js} +16 -16
  24. package/dist/{captureFile-Y2ZMB7HK.js → captureFile-P4BDKVJH.js} +2 -2
  25. package/dist/{catalog-ACHSYU5Z.js → catalog-TUZGNHN6.js} +16 -15
  26. package/dist/{catch-up-FGANS2BB.js → catch-up-GMUF3JXI.js} +9 -9
  27. package/dist/{check-DXK4L5WP.js → check-CHCV573Z.js} +46 -46
  28. package/dist/{checkAudio-4ISYJED3.js → checkAudio-JJZN37WT.js} +13 -13
  29. package/dist/{checkBrowser-5ECMULMP.js → checkBrowser-SK7GFN7U.js} +39 -39
  30. package/dist/{chunk-L6BFXQ6S.js → chunk-2HDVXVUA.js} +3 -3
  31. package/dist/{chunk-76KUCQXD.js → chunk-2JXJQ3ZQ.js} +2 -2
  32. package/dist/{chunk-A4VXOJZO.js → chunk-2JZU6DYH.js} +3 -3
  33. package/dist/{chunk-4US5QCXR.js → chunk-2OP5HU5S.js} +62 -25
  34. package/dist/{chunk-KRWPTZBY.js → chunk-3FQYFVWA.js} +99 -25
  35. package/dist/{chunk-4CHGNFCS.js → chunk-3K4THQHY.js} +4 -4
  36. package/dist/{chunk-BBL6STGK.js → chunk-3P4OYIBA.js} +2 -2
  37. package/dist/{chunk-2KYLVWLO.js → chunk-3XJ42WUG.js} +1 -1
  38. package/dist/{chunk-ERJBWDPM.js → chunk-45IPAGED.js} +6 -6
  39. package/dist/{chunk-XUDJ5XSQ.js → chunk-4MVWA7NJ.js} +6 -6
  40. package/dist/{chunk-SWPI27QV.js → chunk-4TQS6ZSL.js} +7 -7
  41. package/dist/{chunk-OD7PLYYX.js → chunk-4WXLBRT5.js} +31 -22
  42. package/dist/{chunk-KIAY63AB.js → chunk-4Y4VYZRO.js} +3 -3
  43. package/dist/{chunk-5RVPI6QL.js → chunk-52CUHVEA.js} +3 -3
  44. package/dist/{chunk-2RBQLV6B.js → chunk-55I56MXF.js} +1 -1
  45. package/dist/{chunk-O5CNNVRY.js → chunk-5QPYUTV3.js} +8 -8
  46. package/dist/{chunk-GHLLC6LJ.js → chunk-5SXAEHZT.js} +2 -2
  47. package/dist/{chunk-77UB5EHM.js → chunk-5WK76INI.js} +1 -1
  48. package/dist/{chunk-23354HMA.js → chunk-5ZTB6QIJ.js} +3 -3
  49. package/dist/{chunk-ZIYXPDKY.js → chunk-65PFUPLX.js} +1 -1
  50. package/dist/{chunk-45ZQI734.js → chunk-6FP6HBG4.js} +2 -2
  51. package/dist/{chunk-MVIUSNPZ.js → chunk-6HG3XABE.js} +1 -1
  52. package/dist/{chunk-SUXEL7G4.js → chunk-6K5KVYOQ.js} +11 -11
  53. package/dist/{chunk-4DLYTSWQ.js → chunk-6OYPVALW.js} +1 -1
  54. package/dist/{chunk-G2XAFJ2B.js → chunk-74PKHC3W.js} +1 -1
  55. package/dist/{chunk-N6Y645MX.js → chunk-7C6K5WFB.js} +1 -1
  56. package/dist/{chunk-6QEEF5RR.js → chunk-7E5HPNMD.js} +1 -1
  57. package/dist/{chunk-CHJGVW5W.js → chunk-7YBRRU5W.js} +4 -11
  58. package/dist/{chunk-I3PA54IU.js → chunk-7YOJPNDT.js} +1 -1
  59. package/dist/{chunk-2I4DQZLQ.js → chunk-A2YCAF35.js} +23 -37
  60. package/dist/{chunk-EX533ULK.js → chunk-AG6L5CUE.js} +2 -2
  61. package/dist/{chunk-SVI2CJ6R.js → chunk-AOTAYP5E.js} +1 -1
  62. package/dist/{chunk-CNJLBAKM.js → chunk-ASORF7UJ.js} +2 -2
  63. package/dist/{chunk-MDBEAWP2.js → chunk-AUM475MS.js} +3 -3
  64. package/dist/{chunk-CDI3CCAU.js → chunk-BDFD3C3V.js} +7 -7
  65. package/dist/{chunk-YAS347ZS.js → chunk-BLII22FU.js} +1 -1
  66. package/dist/{chunk-ROXILOZ6.js → chunk-BX4GM3IV.js} +2 -2
  67. package/dist/{chunk-W2FSQBUR.js → chunk-BZPRG5N5.js} +14 -14
  68. package/dist/{chunk-YNFHZ4RI.js → chunk-C3TYMGWE.js} +3 -3
  69. package/dist/{chunk-UE2WSWNA.js → chunk-C62LSZVJ.js} +1 -1
  70. package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
  71. package/dist/{chunk-GBIASKIH.js → chunk-DH34XRVW.js} +1 -1
  72. package/dist/{chunk-N2C7WJDG.js → chunk-DLBFLOEU.js} +1 -1
  73. package/dist/{chunk-HPKW6UVW.js → chunk-DTM7HGP4.js} +3 -3
  74. package/dist/{chunk-ADYMQM7T.js → chunk-E53F4CP6.js} +2 -2
  75. package/dist/{chunk-2LMCARA5.js → chunk-ECKXTBRB.js} +6 -4
  76. package/dist/{chunk-T3GSTIBS.js → chunk-EDQF36I7.js} +3 -3
  77. package/dist/{chunk-7LTXT7ME.js → chunk-EWBLIDHD.js} +2 -2
  78. package/dist/{chunk-BMDABBHG.js → chunk-FEWHHDFA.js} +5 -17
  79. package/dist/{chunk-SIGASWB7.js → chunk-FILLRGVO.js} +4 -4
  80. package/dist/{chunk-MDGNQWFN.js → chunk-FRY73NRV.js} +1 -1
  81. package/dist/{chunk-WYPRTHXQ.js → chunk-FS4XHCSU.js} +1 -1
  82. package/dist/{chunk-GOMTMQRT.js → chunk-G6ME77PU.js} +1 -1
  83. package/dist/{chunk-C2VZ7UPE.js → chunk-GJB5VR44.js} +15 -15
  84. package/dist/{chunk-JSVCF4A6.js → chunk-GXGGPZXD.js} +2 -2
  85. package/dist/{chunk-VQJLTYEK.js → chunk-H6323NVP.js} +2 -2
  86. package/dist/{chunk-Y5DOT5NQ.js → chunk-HYTD4CIO.js} +1 -1
  87. package/dist/{chunk-QWM3NY2E.js → chunk-I2GYLBJJ.js} +4 -4
  88. package/dist/{chunk-I35B5RWZ.js → chunk-IVMYWHFE.js} +3 -3
  89. package/dist/{chunk-YDG3OXH3.js → chunk-IX6BFRED.js} +1 -1
  90. package/dist/{chunk-RGYOCAHC.js → chunk-JJUVQYXL.js} +2 -2
  91. package/dist/{chunk-DMZER7D5.js → chunk-JQATOGQQ.js} +2 -2
  92. package/dist/{chunk-XQWWFIBR.js → chunk-JVDYIUFD.js} +2 -2
  93. package/dist/{chunk-HEXTAQYG.js → chunk-K4TEEYGN.js} +2 -2
  94. package/dist/{chunk-SOAQ3XXB.js → chunk-K5BPLZOP.js} +2 -2
  95. package/dist/{chunk-XSHJ37U3.js → chunk-K6EOKQ6J.js} +7 -7
  96. package/dist/{chunk-R45WFVRA.js → chunk-KCL77FXI.js} +1 -1
  97. package/dist/{chunk-PXDRW3QN.js → chunk-LB6VJTM4.js} +1 -1
  98. package/dist/{chunk-G55YEL2L.js → chunk-LCQT4S43.js} +233 -47
  99. package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
  100. package/dist/{chunk-MA35E5OY.js → chunk-NAKQS3EJ.js} +2 -2
  101. package/dist/{chunk-VZQXHYEI.js → chunk-NMMPHHN7.js} +3 -3
  102. package/dist/{chunk-RCB4SGTB.js → chunk-O2S5HR7Y.js} +49 -12
  103. package/dist/{chunk-XVVPEWNX.js → chunk-OKN7E77Z.js} +1 -1
  104. package/dist/{chunk-4WZU4FYS.js → chunk-PDE6XAIJ.js} +4 -4
  105. package/dist/{chunk-4FTJE22M.js → chunk-PNBWAA3E.js} +2 -2
  106. package/dist/{chunk-IYLGUQFR.js → chunk-PVHNBJCI.js} +3 -3
  107. package/dist/{chunk-NQFIMBXS.js → chunk-PWSTB75B.js} +2 -2
  108. package/dist/{chunk-YSHUIQ3I.js → chunk-PXWPBLEN.js} +1 -1
  109. package/dist/{chunk-IEEIPTDW.js → chunk-PYZVKGW5.js} +1 -1
  110. package/dist/{chunk-MP36L7OJ.js → chunk-Q2G4ERQU.js} +2 -2
  111. package/dist/{chunk-VKZSAAXZ.js → chunk-QDSALYDV.js} +4 -4
  112. package/dist/{chunk-XDRSEU2I.js → chunk-R3C62AP3.js} +4 -4
  113. package/dist/{chunk-U77L3ZQZ.js → chunk-RJJ5NVSQ.js} +1 -1
  114. package/dist/{chunk-WIMVXPYG.js → chunk-RSQTFDMS.js} +11 -11
  115. package/dist/{chunk-XFXCI4IP.js → chunk-RYJXT2AS.js} +2 -2
  116. package/dist/{chunk-DGC2RIQE.js → chunk-S3HTROSO.js} +3 -3
  117. package/dist/{chunk-O2T6ZTLN.js → chunk-SAIPA3QY.js} +1 -1
  118. package/dist/{chunk-CHM3QYLF.js → chunk-SDBFTY6V.js} +3 -3
  119. package/dist/{chunk-PNP2BO3U.js → chunk-SG4OW2HV.js} +2 -2
  120. package/dist/{chunk-W5PW26KE.js → chunk-T4YI2YLF.js} +1 -1
  121. package/dist/{chunk-2QTGQGYA.js → chunk-T7O62YTY.js} +1 -1
  122. package/dist/chunk-TDOJW7Z2.js +5053 -0
  123. package/dist/{chunk-EX7WPDFA.js → chunk-TGGYHFTP.js} +2 -2
  124. package/dist/{chunk-5GYTBKZA.js → chunk-TGK7LUEV.js} +2 -2
  125. package/dist/{chunk-YTUPQTXA.js → chunk-TLU5DPES.js} +7 -7
  126. package/dist/{chunk-6ZVUTYNB.js → chunk-TOLY2QK2.js} +5 -5
  127. package/dist/{chunk-JCJJCYCP.js → chunk-UFKWSLJ5.js} +9 -9
  128. package/dist/{chunk-AIC7T7CC.js → chunk-UGWY7PFQ.js} +2 -2
  129. package/dist/{chunk-REJ4NIBY.js → chunk-VJSKNQTM.js} +1 -1
  130. package/dist/{chunk-ETWXZQN5.js → chunk-VW35U2LJ.js} +2 -2
  131. package/dist/{chunk-JZIEZCQM.js → chunk-VZO3BUTW.js} +5 -12
  132. package/dist/{chunk-TFBPCJPG.js → chunk-W6AXNWGE.js} +1 -1
  133. package/dist/{chunk-ZOAANTVI.js → chunk-WC2XQ4NR.js} +1 -1
  134. package/dist/{chunk-WXOOAAT4.js → chunk-WLB2D2OJ.js} +36 -4
  135. package/dist/{chunk-3J32XVJ6.js → chunk-WWT32C2M.js} +3 -3
  136. package/dist/{chunk-HMB3IAVP.js → chunk-XEUTASNL.js} +2 -2
  137. package/dist/{chunk-6RV2QY4K.js → chunk-YCXNWQ3B.js} +23 -23
  138. package/dist/{chunk-FRH3CPW5.js → chunk-YMTLKSXO.js} +1 -1
  139. package/dist/{chunk-B66UZ2YK.js → chunk-Z222HDGC.js} +6 -6
  140. package/dist/{chunk-DDDSTRHU.js → chunk-Z3ZLN5VR.js} +4 -4
  141. package/dist/{chunk-2TBW7UOF.js → chunk-Z64I7KJZ.js} +203 -115
  142. package/dist/{chunk-7UUUV4PN.js → chunk-ZWLFWYHR.js} +1 -1
  143. package/dist/{clean-3IN64RHM.js → clean-N7RLS5LN.js} +24 -24
  144. package/dist/cli.js +64 -64
  145. package/dist/{cloud-SVYXHFEG.js → cloud-4PO7BA26.js} +2 -2
  146. package/dist/{cloud-LBUZBUP6.js → cloud-W3DHH6EB.js} +4 -4
  147. package/dist/{cloudrun-PZOF2QGL.js → cloudrun-YIAPIPOG.js} +6 -6
  148. package/dist/{compare-UOJ3LXQQ.js → compare-GCWIIUGY.js} +38 -38
  149. package/dist/{compiler-5ZDHBKBQ.js → compiler-L3BJI43E.js} +5 -5
  150. package/dist/{component-EVIPLTTJ.js → component-C4VYDMZ4.js} +3 -3
  151. package/dist/{compositions-R4GG5FBO.js → compositions-5P4BZQJA.js} +13 -13
  152. package/dist/{contactSheet-HZMP42FZ.js → contactSheet-ROMTQQ6Y.js} +3 -3
  153. package/dist/{curve-LR3PSRW3.js → curve-IMXKUBAO.js} +13 -13
  154. package/dist/{cuts-DHCOBAFT.js → cuts-PRBLX5HH.js} +14 -14
  155. package/dist/{delete-MMGGU3QP.js → delete-QYWDRFO3.js} +4 -4
  156. package/dist/{deploy-SKIGUTM2.js → deploy-DGEPSTOJ.js} +2 -2
  157. package/dist/{describeProject-L7HNTBPV.js → describeProject-WS4TR7VF.js} +10 -10
  158. package/dist/{destroy-5HSMMDH7.js → destroy-2KSDD4KU.js} +2 -2
  159. package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-D3HTAAN2.js} +3 -3
  160. package/dist/{diff-KR7VKPYL.js → diff-AAWRGZLX.js} +35 -35
  161. package/dist/{dist-3MFNUZSN.js → dist-DJQRHSKZ.js} +3 -3
  162. package/dist/{dist-HK3AZNNL.js → dist-GJSMSEEL.js} +18 -14
  163. package/dist/{dist-ZGYPFYOH.js → dist-V2TLDLQL.js} +3 -3
  164. package/dist/{doctor-G7VGNSA5.js → doctor-CARXZUFN.js} +16 -16
  165. package/dist/{energy-H7EEH6WO.js → energy-VMNGG2ND.js} +14 -14
  166. package/dist/{events-ASG27IXP.js → events-4XIJRQIJ.js} +16 -16
  167. package/dist/{events-5ATZCZTK.js → events-LOPLHMOT.js} +2 -2
  168. package/dist/{events-YD6N7OPQ.js → events-XX3DYSU4.js} +6 -6
  169. package/dist/{execute-OAS454OB.js → execute-U7JKJERV.js} +28 -28
  170. package/dist/{extract-645SENLA.js → extract-KYFUTYDD.js} +14 -14
  171. package/dist/{face-WRT5XH4I.js → face-VQGUHRQL.js} +15 -15
  172. package/dist/{feedback-3LKLR5MV.js → feedback-UPWYWOQ3.js} +12 -12
  173. package/dist/{ffmpeg-PXKIZL2X.js → ffmpeg-RUOPT3JH.js} +9 -9
  174. package/dist/{figma-RIEVJJBW.js → figma-TO57RICW.js} +3 -3
  175. package/dist/fontLocalizeCli.js +13 -13
  176. package/dist/{frames-OTB3J5W3.js → frames-4Y3X474I.js} +16 -16
  177. package/dist/{generate-IUKCZW2D.js → generate-BPID6U7D.js} +25 -25
  178. package/dist/{get-6WVQ7TBV.js → get-JIJ46VI5.js} +4 -4
  179. package/dist/{gpuPolicy-HXSVAEU4.js → gpuPolicy-5ZJNSR7D.js} +9 -9
  180. package/dist/{grade-compare-TCAYHDEF.js → grade-compare-YTBW7C65.js} +37 -37
  181. package/dist/{heifImagePrep-GXIMK4HK.js → heifImagePrep-OL7KF7SH.js} +10 -10
  182. package/dist/{help-RGOL5EJD.js → help-QPV26QI5.js} +1 -1
  183. package/dist/{history-XKPRGJGS.js → history-7UVGTZT3.js} +12 -12
  184. package/dist/hyperframe.manifest.json +1 -1
  185. package/dist/hyperframe.runtime.iife.js +61 -61
  186. package/dist/hyperframes-player.global.js +1 -1
  187. package/dist/{info-EYBBC42V.js → info-2VFXR7LJ.js} +15 -15
  188. package/dist/{init-F2FWPSMA.js → init-JZ7CJQJE.js} +32 -32
  189. package/dist/{ink-BWFERAAT.js → ink-SS7XOD7Y.js} +14 -14
  190. package/dist/{inspect-74N7L3BW.js → inspect-D5MBKDZZ.js} +37 -37
  191. package/dist/{installer-LOUR7G4R.js → installer-UNC4BAFO.js} +7 -7
  192. package/dist/{keyframes-WB5PTKFE.js → keyframes-7T2CVOM6.js} +9 -9
  193. package/dist/{lambda-JYCNXUKB.js → lambda-QVJFVSXL.js} +15 -15
  194. package/dist/{layout-P52EVR24.js → layout-5DF7VFWS.js} +37 -37
  195. package/dist/{lint-SL55KAS2.js → lint-EWJHJKAI.js} +11 -11
  196. package/dist/{lintProject-46WU53VC.js → lintProject-KBJU3L4C.js} +3 -3
  197. package/dist/{list-LN6CQH52.js → list-DDLH5ZG5.js} +4 -4
  198. package/dist/{localPage-L6OJU3UH.js → localPage-MHAXFUGI.js} +10 -10
  199. package/dist/{login-WTOAMDID.js → login-BJ4QUZT4.js} +4 -4
  200. package/dist/{look-O6ESLJRP.js → look-HNK2K33N.js} +14 -14
  201. package/dist/{manager-CMEZWENF.js → manager-FFLFDJZ6.js} +10 -10
  202. package/dist/{manager-IAXYSRG5.js → manager-VLO3FZC4.js} +2 -1
  203. package/dist/{measure-NEIXU53P.js → measure-SE346MGF.js} +11 -11
  204. package/dist/{media-treatment-6CAQG7MU.js → media-treatment-KYPDRIBT.js} +15 -15
  205. package/dist/{media-use-IXJFMKU7.js → media-use-OJZHSNTK.js} +15 -6
  206. package/dist/{models-TZALWUEY.js → models-KWSHPDZ5.js} +14 -14
  207. package/dist/{motionShot-OQYK6G6M.js → motionShot-HEROABIE.js} +20 -20
  208. package/dist/{normalize-audio-43PJLOBY.js → normalize-audio-ZD5W37ZO.js} +11 -11
  209. package/dist/{open-EOX6QY4M.js → open-7B6HT4EX.js} +17 -17
  210. package/dist/{parakeetRunner-STHAXQAF.js → parakeetRunner-5AKE7TBH.js} +17 -17
  211. package/dist/{pipeline-RRWZHFBQ.js → pipeline-UTVSWC4X.js} +12 -12
  212. package/dist/{plan-JWUSMF4W.js → plan-SQ63IXQC.js} +22 -22
  213. package/dist/{play-TUKTST32.js → play-NYBFE3GW.js} +27 -27
  214. package/dist/{preflight-L42JKT6F.js → preflight-T23WHZP3.js} +11 -11
  215. package/dist/{present-Z7HRDXPV.js → present-FX22552Q.js} +21 -21
  216. package/dist/{preview-HGTIRAV3.js → preview-ULBNMDXD.js} +57 -33
  217. package/dist/{probe-RXK44FY7.js → probe-62Z5C6VC.js} +14 -14
  218. package/dist/{producer-KJ2RZDJ3.js → producer-X3KFL4QM.js} +1 -1
  219. package/dist/{projectConfig-K36NTJXP.js → projectConfig-JQ4IDYTU.js} +10 -10
  220. package/dist/{publication-OZWLT6K6.js → publication-YNIJIR6O.js} +5 -5
  221. package/dist/{publish-CRUTXNYM.js → publish-7TIGC7RV.js} +17 -17
  222. package/dist/{remove-background-R37HZPCG.js → remove-background-F3BD6WXD.js} +13 -13
  223. package/dist/{render-SU2XTMJL.js → render-BL6CAORF.js} +6 -6
  224. package/dist/{render-ZHCPCISN.js → render-CDWBVWJP.js} +43 -43
  225. package/dist/{render-EZMKBT7V.js → render-EOQOD2TJ.js} +31 -31
  226. package/dist/{render-batch-YIUOEAAL.js → render-batch-PDY2PXUZ.js} +6 -6
  227. package/dist/renderSetupWorker.js +4 -4
  228. package/dist/{resolver-DLCKRKQR.js → resolver-VBAVCFEP.js} +7 -7
  229. package/dist/{reverse-4FAVXIER.js → reverse-3E6HUX5S.js} +1 -1
  230. package/dist/{run-H4GVEJVS.js → run-77Z3DLIP.js} +4 -4
  231. package/dist/{screenshotCapture-CQF5FYVI.js → screenshotCapture-XWWCRLGM.js} +12 -12
  232. package/dist/{service-XDQOULGD.js → service-LJZQKQT6.js} +13 -13
  233. package/dist/{share-CUCQALE7.js → share-2CNP22KN.js} +16 -16
  234. package/dist/{sherpa-WZNRQUVC.js → sherpa-NPTMMQHQ.js} +16 -16
  235. package/dist/sherpaWorker.js +2 -1
  236. package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
  237. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +20 -3
  238. package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +61 -3
  239. package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
  240. package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
  241. package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
  242. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +25 -6
  243. package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
  244. package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
  245. package/dist/skills/media-use/references/audio.md +2 -0
  246. package/dist/skills/media-use/references/operations.md +2 -1
  247. package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
  248. package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
  249. package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
  250. package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +42 -18
  251. package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
  252. package/dist/{skills-J52DBZAK.js → skills-7MQBUOOX.js} +9 -9
  253. package/dist/{skillsUpdateCheck-26DJHBTC.js → skillsUpdateCheck-JAUXRXRH.js} +3 -3
  254. package/dist/{snapshot-ZIRQFDA7.js → snapshot-D7DROQPF.js} +49 -49
  255. package/dist/{src-C3XYMTF4.js → src-26DWEOAT.js} +10 -8
  256. package/dist/{src-7BGBN6SS.js → src-LJIVCW6M.js} +12 -12
  257. package/dist/{start-QG2XNMYN.js → start-DF3U2VIG.js} +23 -23
  258. package/dist/{staticProjectServer-TWMEFK3T.js → staticProjectServer-NYH6MQHZ.js} +24 -24
  259. package/dist/{status-3UPA5WPI.js → status-5Q43GUYF.js} +17 -16
  260. package/dist/studio/assets/{codec-qz1-OXLj.js → codec-OdIlx7W3.js} +1 -1
  261. package/dist/studio/assets/{hyperframes-player-2eG1zFX5.js → hyperframes-player-XtPxZL3k.js} +1 -1
  262. package/dist/studio/assets/{index-DDmhnfrS.js → index-DTU1D-zj.js} +83 -83
  263. package/dist/studio/assets/{index-DUveJ_YP.js → index-DWZWPFkU.js} +1 -1
  264. package/dist/studio/assets/{pausedVideoDecoder-CoHTKUjM.js → pausedVideoDecoder-NVr8gRm5.js} +1 -1
  265. package/dist/studio/index.html +1 -1
  266. package/dist/{studio-api-Z42OO4JJ.js → studio-api-ZYCEQPX2.js} +18 -14
  267. package/dist/{studioServer-SMN3RMVL.js → studioServer-W4RX3B7S.js} +67 -65
  268. package/dist/{sync-ONTI2WSI.js → sync-LLH2GSSC.js} +14 -14
  269. package/dist/{synthesize-FR5KPBRP.js → synthesize-4A5ENXNO.js} +4 -3
  270. package/dist/{telemetry-RRXALB5D.js → telemetry-RIQIM2PH.js} +6 -6
  271. package/dist/{templates-BHFOSD6F.js → templates-4HVTWNKO.js} +14 -14
  272. package/dist/{timeline-Z5IHY5TN.js → timeline-ITIMTT27.js} +22 -22
  273. package/dist/{tokens-MZVEPARM.js → tokens-ABTBM6UA.js} +2 -2
  274. package/dist/{transcribe-5IZS4BGW.js → transcribe-6BA2MP2Y.js} +30 -30
  275. package/dist/{transcribe-M5N3YZZU.js → transcribe-6LDBHZCZ.js} +13 -13
  276. package/dist/{tts-ZE776B4I.js → tts-P77F523Z.js} +1 -1
  277. package/dist/{update-EVPWBIKY.js → update-ODXFCK36.js} +11 -11
  278. package/dist/{updateCheck-2UUEF6TC.js → updateCheck-E4U776B4.js} +2 -2
  279. package/dist/{upgrade-DK45FD4K.js → upgrade-LSHVYMLH.js} +4 -4
  280. package/dist/{urlDownloader-3MPHIDSA.js → urlDownloader-PWQ2LDLE.js} +8 -8
  281. package/dist/{validate-W27TQ367.js → validate-JHETNNBN.js} +29 -29
  282. package/dist/{video-TI372QGV.js → video-D2D5YCDU.js} +11 -11
  283. package/dist/{voices-FZV4PGT6.js → voices-34FMTOIX.js} +23 -23
  284. package/dist/warmCheck.js +46 -46
  285. package/package.json +1 -1
  286. package/dist/chunk-XDDBSGBD.js +0 -5049
@@ -20,7 +20,7 @@ import {
20
20
  removeScratch,
21
21
  renameWithRetry,
22
22
  renameWithRetryAsync
23
- } from "./chunk-IEEIPTDW.js";
23
+ } from "./chunk-PYZVKGW5.js";
24
24
  import {
25
25
  DISTRIBUTED_FPS,
26
26
  HF_COLOR_GROUP_ATTR,
@@ -48,8 +48,9 @@ import {
48
48
  redactUrlQueryStrings,
49
49
  renderFrameIdForRenderId,
50
50
  resolveAuthoredTimingWindow,
51
- toFps
52
- } from "./chunk-EX7WPDFA.js";
51
+ toFps,
52
+ validateVariables
53
+ } from "./chunk-TGGYHFTP.js";
53
54
  import {
54
55
  AUDIO_GROUP_RENDER_ID_ATTR,
55
56
  AUTHORED_SOURCE_BEGIN,
@@ -92,7 +93,7 @@ import {
92
93
  sourceTimeAt,
93
94
  timeAtSourceTime,
94
95
  volumeSegmentSampleCount
95
- } from "./chunk-XDDBSGBD.js";
96
+ } from "./chunk-TDOJW7Z2.js";
96
97
  import {
97
98
  withHyperframesBrowserMarker
98
99
  } from "./chunk-K4MJX7SR.js";
@@ -106,7 +107,7 @@ import {
106
107
  } from "./chunk-WE42NVH7.js";
107
108
  import {
108
109
  resolveReferencedStart
109
- } from "./chunk-CNJLBAKM.js";
110
+ } from "./chunk-ASORF7UJ.js";
110
111
  import {
111
112
  isWithinProjectRoot,
112
113
  resolveProjectRelativeSrc
@@ -115,7 +116,7 @@ import {
115
116
  FFMPEG_PATH_ENV,
116
117
  FFPROBE_PATH_ENV,
117
118
  findFfBinary
118
- } from "./chunk-KRWPTZBY.js";
119
+ } from "./chunk-3FQYFVWA.js";
119
120
  import {
120
121
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
121
122
  getAvailableMemoryMb,
@@ -126,6 +127,9 @@ import {
126
127
  import {
127
128
  isPathInside
128
129
  } from "./chunk-6MKM2RVL.js";
130
+ import {
131
+ readCompositionVariables
132
+ } from "./chunk-M425BL2U.js";
129
133
  import {
130
134
  parseHTML
131
135
  } from "./chunk-GWTIFRF5.js";
@@ -2802,7 +2806,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
2802
2806
 
2803
2807
  // ../engine/src/services/frameCapture.ts
2804
2808
  import { existsSync as existsSync4, mkdirSync, writeFileSync } from "fs";
2805
- import { join as join6 } from "path";
2809
+ import { join as join7 } from "path";
2806
2810
 
2807
2811
  // ../engine/src/services/renderFrameVideoHold.ts
2808
2812
  function holdRenderFrameVideos(ids, renderIdAttr) {
@@ -5261,11 +5265,16 @@ import { promisify } from "util";
5261
5265
 
5262
5266
  // ../engine/src/utils/ffmpegBinaries.ts
5263
5267
  import { existsSync as existsSync2 } from "fs";
5268
+ import { dirname, join as join4 } from "path";
5269
+ import { fileURLToPath } from "url";
5270
+ function notFound(name, setting) {
5271
+ return join4(dirname(fileURLToPath(import.meta.url)), `${name}-not-found-set-${setting}`, name);
5272
+ }
5264
5273
  function getFfmpegBinary() {
5265
- return findFfBinary("ffmpeg") ?? "ffmpeg";
5274
+ return findFfBinary("ffmpeg") ?? notFound("ffmpeg", FFMPEG_PATH_ENV);
5266
5275
  }
5267
5276
  function getFfprobeBinary() {
5268
- return findFfBinary("ffprobe") ?? "ffprobe";
5277
+ return findFfBinary("ffprobe") ?? notFound("ffprobe", FFPROBE_PATH_ENV);
5269
5278
  }
5270
5279
  function assertConfiguredFfmpegBinariesExist() {
5271
5280
  const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
@@ -5320,15 +5329,15 @@ async function listFfmpeg(flag) {
5320
5329
  // ../engine/src/utils/renderProvenance.ts
5321
5330
  import { readFileSync as readFileSync2 } from "fs";
5322
5331
  import { createRequire } from "module";
5323
- import { dirname, join as join5 } from "path";
5324
- import { fileURLToPath } from "url";
5332
+ import { dirname as dirname2, join as join6 } from "path";
5333
+ import { fileURLToPath as fileURLToPath2 } from "url";
5325
5334
 
5326
5335
  // ../engine/src/utils/ffprobe.ts
5327
5336
  import { spawn as spawn3 } from "child_process";
5328
5337
  import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync, rmSync, statSync as statSync2 } from "fs";
5329
5338
  import { StringDecoder as StringDecoder2 } from "string_decoder";
5330
5339
  import { tmpdir as tmpdir3 } from "os";
5331
- import { basename, join as join4 } from "path";
5340
+ import { basename, join as join5 } from "path";
5332
5341
 
5333
5342
  // ../engine/src/utils/urlInput.ts
5334
5343
  import { existsSync as existsSync3 } from "fs";
@@ -6144,8 +6153,8 @@ function parseSampleAspectRatio(value) {
6144
6153
  async function probeDecodedAlphaPlane(filePath, decoder) {
6145
6154
  let probeDir;
6146
6155
  try {
6147
- probeDir = mkdtempSync2(join4(tmpdir3(), "hf-decoded-alpha-"));
6148
- const framePath = join4(probeDir, "frame.nut");
6156
+ probeDir = mkdtempSync2(join5(tmpdir3(), "hf-decoded-alpha-"));
6157
+ const framePath = join5(probeDir, "frame.nut");
6149
6158
  const decoded = await runFfmpeg(
6150
6159
  [
6151
6160
  "-v",
@@ -6626,7 +6635,7 @@ var MAX_WALK_DEPTH = 12;
6626
6635
  function resolveOwnVersionFrom(startDir) {
6627
6636
  let dir = startDir;
6628
6637
  for (let depth = 0; depth < MAX_WALK_DEPTH; depth++) {
6629
- const candidate = join5(dir, "package.json");
6638
+ const candidate = join6(dir, "package.json");
6630
6639
  let pkg;
6631
6640
  try {
6632
6641
  pkg = JSON.parse(readFileSync2(candidate, "utf8"));
@@ -6638,7 +6647,7 @@ function resolveOwnVersionFrom(startDir) {
6638
6647
  reportUnresolved(`found ${pkg.name} at ${candidate} but it declares no version`);
6639
6648
  return UNRESOLVED_VERSION;
6640
6649
  }
6641
- const parent = dirname(dir);
6650
+ const parent = dirname2(dir);
6642
6651
  if (parent === dir) break;
6643
6652
  dir = parent;
6644
6653
  }
@@ -6649,7 +6658,7 @@ function resolveOwnVersionFrom(startDir) {
6649
6658
  }
6650
6659
  function installedEngineVersion(fromDir) {
6651
6660
  try {
6652
- const path = createRequire(join5(fromDir, "index.js")).resolve(
6661
+ const path = createRequire(join6(fromDir, "index.js")).resolve(
6653
6662
  "@hyperframes/engine/package.json"
6654
6663
  );
6655
6664
  const pkg = JSON.parse(readFileSync2(path, "utf8"));
@@ -6666,7 +6675,7 @@ function reportUnresolved(reason) {
6666
6675
  }
6667
6676
  function readEngineVersion() {
6668
6677
  try {
6669
- return resolveOwnVersionFrom(dirname(fileURLToPath(import.meta.url)));
6678
+ return resolveOwnVersionFrom(dirname2(fileURLToPath2(import.meta.url)));
6670
6679
  } catch {
6671
6680
  reportUnresolved("import.meta.url is not a file URL");
6672
6681
  return UNRESOLVED_VERSION;
@@ -6873,6 +6882,77 @@ async function sampleProcessRss(pids, exec = defaultExec(), platform = process.p
6873
6882
  }
6874
6883
  }
6875
6884
 
6885
+ // ../engine/src/services/variablesCheck.ts
6886
+ var MAX_ISSUES = 10;
6887
+ var MAX_ID_CHARS = 64;
6888
+ var VariablesInvalidError = class extends Error {
6889
+ code = "VARIABLES_INVALID";
6890
+ // The producer server reads these off the error for the wire envelope.
6891
+ owner = "user";
6892
+ retryable = false;
6893
+ publicMetadata;
6894
+ constructor(issues) {
6895
+ const shown = issues.slice(0, MAX_ISSUES);
6896
+ super(describeIssue(issues[0]));
6897
+ this.name = "VariablesInvalidError";
6898
+ this.publicMetadata = { issues: shown, total: issues.length };
6899
+ }
6900
+ };
6901
+ function describeIssue(issue) {
6902
+ switch (issue.kind) {
6903
+ case "undeclared":
6904
+ return `Variable "${issue.variableId}" is not declared in data-composition-variables.`;
6905
+ case "type-mismatch":
6906
+ return `Variable "${issue.variableId}" expected ${issue.expected}, got ${issue.actual}.`;
6907
+ case "enum-out-of-range":
6908
+ return `Variable "${issue.variableId}" is not one of its declared options.`;
6909
+ case "declarations-unreadable":
6910
+ return "The page's data-composition-variables could not be read, so the variables cannot be checked.";
6911
+ default:
6912
+ return issue;
6913
+ }
6914
+ }
6915
+ function boundedId(id) {
6916
+ return Array.from(id.slice(0, MAX_ID_CHARS), (ch) => {
6917
+ const code = ch.charCodeAt(0);
6918
+ return code < 32 || code === 127 ? "?" : ch;
6919
+ }).join("");
6920
+ }
6921
+ function toIssue(issue) {
6922
+ const variableId = boundedId(issue.variableId);
6923
+ switch (issue.kind) {
6924
+ case "undeclared":
6925
+ return { kind: "undeclared", variableId };
6926
+ case "type-mismatch":
6927
+ return { kind: "type-mismatch", variableId, expected: issue.expected, actual: issue.actual };
6928
+ case "enum-out-of-range":
6929
+ return { kind: "enum-out-of-range", variableId };
6930
+ }
6931
+ }
6932
+ function variablesIssues(overrides, sources) {
6933
+ if (Object.keys(overrides).length === 0) return [];
6934
+ if (sources === null) return [{ kind: "declarations-unreadable" }];
6935
+ const read = sources.map(readCompositionVariables);
6936
+ const byId = new Map(read.flatMap((r) => r.declarations).map((decl) => [decl.id, decl]));
6937
+ const issues = validateVariables(overrides, [...byId.values()]).map(toIssue);
6938
+ if (read.every((r) => r.complete)) return issues;
6939
+ return issues.map(
6940
+ (issue) => issue.kind === "undeclared" ? { kind: "declarations-unreadable" } : issue
6941
+ );
6942
+ }
6943
+ async function readDeclaredVariableSources(page) {
6944
+ const sources = await page.evaluate(
6945
+ `window.__hyperframes?.getDeclaredVariableSources?.() ?? null`
6946
+ );
6947
+ return Array.isArray(sources) && sources.every((s) => typeof s === "string") ? sources : null;
6948
+ }
6949
+ async function assertVariablesMatchPage(page, overrides) {
6950
+ const values = overrides ?? {};
6951
+ if (Object.keys(values).length === 0) return;
6952
+ const [first, ...rest] = variablesIssues(values, await readDeclaredVariableSources(page));
6953
+ if (first) throw new VariablesInvalidError([first, ...rest]);
6954
+ }
6955
+
6876
6956
  // ../engine/src/services/captureFailure.ts
6877
6957
  var CaptureFailure = class extends Error {
6878
6958
  kind;
@@ -8629,6 +8709,11 @@ async function describeThrowSite(client, details, projectScripts) {
8629
8709
  }
8630
8710
  return ` [thrown at: ${where}]`;
8631
8711
  }
8712
+ async function checkStrictVariables(session) {
8713
+ if (!session.options.strictVariables) return;
8714
+ await assertVariablesMatchPage(session.page, session.options.variables);
8715
+ session.strictVariablesChecked = true;
8716
+ }
8632
8717
  async function initializeSession(session) {
8633
8718
  const { page, serverUrl } = session;
8634
8719
  page.on("console", (msg) => {
@@ -8739,6 +8824,7 @@ async function initializeSession(session) {
8739
8824
  const pageReadyTimeout = session.config?.playerReadyTimeout ?? DEFAULT_CONFIG.playerReadyTimeout;
8740
8825
  await pollHfReady(page, pageReadyTimeout);
8741
8826
  logInitPhase("pollHfReady complete");
8827
+ await checkStrictVariables(session);
8742
8828
  await waitForSubCompositionTimelines(session, page, pageReadyTimeout);
8743
8829
  logInitPhase(`pollSubCompositionTimelines complete (${session.subTimelineWaitOutcome})`);
8744
8830
  assertVfxIntact(session);
@@ -8835,6 +8921,7 @@ async function initializeSession(session) {
8835
8921
  const pageReadyTimeout = session.config?.playerReadyTimeout ?? DEFAULT_CONFIG.playerReadyTimeout;
8836
8922
  await pollHfReady(page, pageReadyTimeout);
8837
8923
  logInitPhase("pollHfReady complete");
8924
+ await checkStrictVariables(session);
8838
8925
  await waitForSubCompositionTimelines(session, page, pageReadyTimeout);
8839
8926
  logInitPhase(`pollSubCompositionTimelines complete (${session.subTimelineWaitOutcome})`);
8840
8927
  assertVfxIntact(session);
@@ -8888,9 +8975,9 @@ async function initializeSession(session) {
8888
8975
  }
8889
8976
  async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
8890
8977
  try {
8891
- const diagnosticsDir = join6(session.outputDir, "diagnostics");
8978
+ const diagnosticsDir = join7(session.outputDir, "diagnostics");
8892
8979
  if (!existsSync4(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
8893
- const base = join6(diagnosticsDir, `frame-error-${frameIndex}`);
8980
+ const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
8894
8981
  const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
8895
8982
  if (pageScreenshotCanResolve) {
8896
8983
  await session.page.screenshot({ path: `${base}.png`, type: "png", fullPage: true });
@@ -10060,7 +10147,7 @@ function frameFileExtension(format) {
10060
10147
  }
10061
10148
  function writeCapturedFrame(session, fileIndex, buffer) {
10062
10149
  const ext = frameFileExtension(session.options.format);
10063
- const framePath = join6(session.outputDir, `frame_${String(fileIndex).padStart(6, "0")}.${ext}`);
10150
+ const framePath = join7(session.outputDir, `frame_${String(fileIndex).padStart(6, "0")}.${ext}`);
10064
10151
  writeFileSync(framePath, buffer);
10065
10152
  return framePath;
10066
10153
  }
@@ -10482,10 +10569,10 @@ function quietRuntimeDetail(text) {
10482
10569
 
10483
10570
  // ../engine/src/services/extractedFrameIndex.ts
10484
10571
  import { readdirSync as readdirSync2 } from "fs";
10485
- import { join as join7 } from "path";
10572
+ import { join as join8 } from "path";
10486
10573
  var FRAME_FILENAME_PREFIX = "frame_";
10487
10574
  function frameSequencePath(dir, framePattern) {
10488
- return join7(dir.replaceAll("%", "%%"), framePattern);
10575
+ return join8(dir.replaceAll("%", "%%"), framePattern);
10489
10576
  }
10490
10577
  var ExtractedFrameSequenceError = class extends Error {
10491
10578
  constructor(message) {
@@ -10515,7 +10602,7 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
10515
10602
  `Duplicate extracted frame index ${index}: ${indexed.get(index)} and ${file}`
10516
10603
  );
10517
10604
  }
10518
- indexed.set(index, join7(outputDir, file));
10605
+ indexed.set(index, join8(outputDir, file));
10519
10606
  }
10520
10607
  if (allowGaps) return new Map([...indexed].sort(([a], [b]) => a - b));
10521
10608
  const ordered = /* @__PURE__ */ new Map();
@@ -10545,7 +10632,7 @@ import {
10545
10632
  writeFileSync as writeFileSync2,
10546
10633
  writeSync
10547
10634
  } from "fs";
10548
- import { join as join8, dirname as dirname2, extname, resolve } from "path";
10635
+ import { join as join9, dirname as dirname3, extname, resolve } from "path";
10549
10636
 
10550
10637
  // ../engine/src/utils/gpuEncoder.ts
10551
10638
  import { spawn as spawn4 } from "child_process";
@@ -11176,7 +11263,7 @@ function frameReadFailure(stderr, framePattern, startNumber, framesRead, frameCo
11176
11263
  var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds }) => seconds !== void 0 && onSeconds(seconds));
11177
11264
  async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
11178
11265
  const startTime = Date.now();
11179
- const outputDir = dirname2(outputPath);
11266
+ const outputDir = dirname3(outputPath);
11180
11267
  if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
11181
11268
  const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
11182
11269
  const frameCount = files.length;
@@ -11251,7 +11338,7 @@ function buildConcatArgs(concatListPath, outputPath) {
11251
11338
  var concatListSeq = 0;
11252
11339
  function writeConcatList(dir, inputPaths) {
11253
11340
  concatListSeq += 1;
11254
- const listPath = join8(dir, `concat-list-${process.pid}-${concatListSeq}.txt`);
11341
+ const listPath = join9(dir, `concat-list-${process.pid}-${concatListSeq}.txt`);
11255
11342
  const body = inputPaths.map((p) => `file '${resolve(p).replace(/'/g, "'\\''")}'`).join("\n");
11256
11343
  writeFileSync2(listPath, body, "utf-8");
11257
11344
  return listPath;
@@ -11261,8 +11348,8 @@ async function concatVideoFiles(inputPaths, outputPath, signal, config) {
11261
11348
  if (firstInput === void 0) {
11262
11349
  return { success: false, error: "concatVideoFiles: no inputs", externalInterruption: false };
11263
11350
  }
11264
- mkdirSync2(dirname2(outputPath), { recursive: true });
11265
- const listPath = writeConcatList(dirname2(firstInput), inputPaths);
11351
+ mkdirSync2(dirname3(outputPath), { recursive: true });
11352
+ const listPath = writeConcatList(dirname3(firstInput), inputPaths);
11266
11353
  const encodeTimeout = config?.ffmpegEncodeTimeout ?? DEFAULT_CONFIG.ffmpegEncodeTimeout;
11267
11354
  const result = await runFfmpeg(buildConcatArgs(listPath, outputPath), {
11268
11355
  signal,
@@ -11294,8 +11381,8 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
11294
11381
  }
11295
11382
  const chunkSize = Math.max(30, Math.floor(chunkSizeFrames));
11296
11383
  const chunkCount = Math.ceil(files.length / chunkSize);
11297
- mkdirSync2(dirname2(outputPath), { recursive: true });
11298
- const chunkDir = createStagingDir(dirname2(outputPath), "chunk-encode-");
11384
+ mkdirSync2(dirname3(outputPath), { recursive: true });
11385
+ const chunkDir = createStagingDir(dirname3(outputPath), "chunk-encode-");
11299
11386
  const chunkPaths = [];
11300
11387
  for (let i = 0; i < chunkCount; i++) {
11301
11388
  if (signal?.aborted) {
@@ -11311,7 +11398,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
11311
11398
  const startNumber = i * chunkSize;
11312
11399
  const framesInChunk = Math.min(chunkSize, files.length - startNumber);
11313
11400
  const ext = outputPath.endsWith(".webm") ? ".webm" : outputPath.endsWith(".mov") ? ".mov" : ".mp4";
11314
- const chunkPath = join8(chunkDir, `chunk_${String(i).padStart(4, "0")}${ext}`);
11401
+ const chunkPath = join9(chunkDir, `chunk_${String(i).padStart(4, "0")}${ext}`);
11315
11402
  const inputPath = frameSequencePath(framesDir, framePattern);
11316
11403
  const inputArgs = [
11317
11404
  "-framerate",
@@ -11386,7 +11473,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
11386
11473
  };
11387
11474
  }
11388
11475
  async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
11389
- const outputDir = dirname2(outputPath);
11476
+ const outputDir = dirname3(outputPath);
11390
11477
  if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
11391
11478
  const outputExtension = extname(outputPath).toLowerCase();
11392
11479
  const isWebm = outputExtension === ".webm";
@@ -11483,14 +11570,14 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
11483
11570
  "-master_pl_name",
11484
11571
  HLS_MASTER_PLAYLIST,
11485
11572
  "-hls_segment_filename",
11486
- join8(outputDir, "%v_%05d.ts"),
11573
+ join9(outputDir, "%v_%05d.ts"),
11487
11574
  // Without these the mpegts muxer starts the stream at PTS 1.4 s.
11488
11575
  "-muxdelay",
11489
11576
  "0",
11490
11577
  "-muxpreload",
11491
11578
  "0"
11492
11579
  );
11493
- args.push("-y", join8(outputDir, "%v.m3u8"));
11580
+ args.push("-y", join9(outputDir, "%v.m3u8"));
11494
11581
  const processTimeout = options.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
11495
11582
  const result = await runFfmpeg(args, { signal, timeout: processTimeout });
11496
11583
  if (signal?.aborted) {
@@ -11502,7 +11589,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
11502
11589
  };
11503
11590
  }
11504
11591
  if (result.success && hasAudio) {
11505
- const masterPath = join8(outputDir, HLS_MASTER_PLAYLIST);
11592
+ const masterPath = join9(outputDir, HLS_MASTER_PLAYLIST);
11506
11593
  let master;
11507
11594
  try {
11508
11595
  master = openSync(masterPath, "r+", 384);
@@ -11610,7 +11697,7 @@ function quantizationTableError(buffer, start, end) {
11610
11697
  import { spawn as spawn5 } from "child_process";
11611
11698
  import { once } from "events";
11612
11699
  import { existsSync as existsSync6, mkdirSync as mkdirSync3, statSync as statSync4 } from "fs";
11613
- import { dirname as dirname3 } from "path";
11700
+ import { dirname as dirname4 } from "path";
11614
11701
  function createFrameReorderBuffer(startFrame, endFrame) {
11615
11702
  let cursor = startFrame;
11616
11703
  let aborted = null;
@@ -11886,7 +11973,7 @@ function spawnFfmpegStream(outputPath, args, {
11886
11973
  config,
11887
11974
  checkFrame
11888
11975
  }) {
11889
- const outputDir = dirname3(outputPath);
11976
+ const outputDir = dirname4(outputPath);
11890
11977
  if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
11891
11978
  const ffmpeg = spawn5(getFfmpegBinary(), args, {
11892
11979
  stdio: ["pipe", "pipe", "pipe"],
@@ -12165,7 +12252,7 @@ function isMemberGroupHidden(groupsById, el) {
12165
12252
 
12166
12253
  // ../engine/src/services/videoFrameExtractor.ts
12167
12254
  import { copyFileSync as copyFileSync2, existsSync as existsSync9, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
12168
- import { basename as basename2, isAbsolute, join as join12, normalize, relative, win32 } from "path";
12255
+ import { basename as basename2, isAbsolute, join as join13, normalize, relative, win32 } from "path";
12169
12256
  import { cpus } from "os";
12170
12257
 
12171
12258
  // ../engine/src/utils/concurrencyLimit.ts
@@ -12209,7 +12296,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
12209
12296
  // ../engine/src/utils/alphaPlaneProbe.ts
12210
12297
  import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync4, rmSync as rmSync2 } from "fs";
12211
12298
  import { tmpdir as tmpdir4 } from "os";
12212
- import { join as join9 } from "path";
12299
+ import { join as join10 } from "path";
12213
12300
  var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
12214
12301
  var MAX_SAMPLE_BYTES = BYTES_PER_SAMPLE_FRAME * 3;
12215
12302
  function sampledRgbaAlphaIsFullyOpaque(buf) {
@@ -12224,8 +12311,8 @@ function sampledRgbaAlphaIsFullyOpaque(buf) {
12224
12311
  async function probeInputAlphaPlane(videoPath, decoder, signal) {
12225
12312
  let probeDir;
12226
12313
  try {
12227
- probeDir = mkdtempSync3(join9(tmpdir4(), "hf-alpha-probe-"));
12228
- const samplePath = join9(probeDir, "alpha.raw");
12314
+ probeDir = mkdtempSync3(join10(tmpdir4(), "hf-alpha-probe-"));
12315
+ const samplePath = join10(probeDir, "alpha.raw");
12229
12316
  const result = await runFfmpeg(
12230
12317
  [
12231
12318
  "-v",
@@ -12324,7 +12411,7 @@ function isBlockedNetworkHost(hostname) {
12324
12411
  }
12325
12412
 
12326
12413
  // ../engine/src/utils/urlDownloader.ts
12327
- import { dirname as dirname4, extname as extname2, join as join10 } from "path";
12414
+ import { dirname as dirname5, extname as extname2, join as join11 } from "path";
12328
12415
  import { Readable, Transform } from "stream";
12329
12416
  import { pipeline } from "stream/promises";
12330
12417
  var inFlightDownloads = /* @__PURE__ */ new Map();
@@ -12475,7 +12562,7 @@ function removeCacheLockDirectoryIfEmpty(lockPath) {
12475
12562
  }
12476
12563
  function releaseOwnedCachePathLock(lockPath, owner) {
12477
12564
  try {
12478
- rmdirSync(join10(lockPath, owner));
12565
+ rmdirSync(join11(lockPath, owner));
12479
12566
  } catch (error) {
12480
12567
  if (error.code === "ENOENT") return;
12481
12568
  throw error;
@@ -12516,12 +12603,12 @@ async function acquireCachePathLock(localPath, timeoutMs, signal) {
12516
12603
  if (createdLock) {
12517
12604
  const owner = `${CACHE_LOCK_OWNER_PREFIX}${randomUUID2()}`;
12518
12605
  try {
12519
- mkdirSync4(join10(lockPath, owner));
12606
+ mkdirSync4(join11(lockPath, owner));
12520
12607
  const entries = readdirSync4(lockPath);
12521
12608
  if (entries.length === 1 && entries[0] === owner) {
12522
12609
  return () => releaseOwnedCachePathLock(lockPath, owner);
12523
12610
  }
12524
- rmdirSync(join10(lockPath, owner));
12611
+ rmdirSync(join11(lockPath, owner));
12525
12612
  removeCacheLockDirectoryIfEmpty(lockPath);
12526
12613
  continue;
12527
12614
  } catch (error) {
@@ -12539,7 +12626,7 @@ async function acquireCachePathLock(localPath, timeoutMs, signal) {
12539
12626
  if (Date.now() - observedLock.stats.mtimeMs > CACHE_LOCK_STALE_MS) {
12540
12627
  if (observedLock.owner) {
12541
12628
  try {
12542
- rmdirSync(join10(lockPath, observedLock.owner));
12629
+ rmdirSync(join11(lockPath, observedLock.owner));
12543
12630
  } catch (error) {
12544
12631
  if (error.code === "ENOENT") continue;
12545
12632
  throw error;
@@ -12547,7 +12634,7 @@ async function acquireCachePathLock(localPath, timeoutMs, signal) {
12547
12634
  removeCacheLockDirectoryIfEmpty(lockPath);
12548
12635
  continue;
12549
12636
  }
12550
- const reclaimPath = join10(lockPath, CACHE_LOCK_RECLAIM_NAME);
12637
+ const reclaimPath = join11(lockPath, CACHE_LOCK_RECLAIM_NAME);
12551
12638
  try {
12552
12639
  mkdirSync4(reclaimPath);
12553
12640
  } catch (error) {
@@ -13031,8 +13118,8 @@ function emitDownloadTelemetry(options, event) {
13031
13118
  }
13032
13119
  }
13033
13120
  async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, signal) {
13034
- const attemptDir = createStagingDir(dirname4(localPath), ".hf-download-");
13035
- const partialPath = join10(attemptDir, "payload");
13121
+ const attemptDir = createStagingDir(dirname5(localPath), ".hf-download-");
13122
+ const partialPath = join11(attemptDir, "payload");
13036
13123
  const controller = new AbortController();
13037
13124
  let timedOut = false;
13038
13125
  let callerAborted = signal?.aborted ?? false;
@@ -13278,7 +13365,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
13278
13365
  mkdirSync4(destDir, { recursive: true });
13279
13366
  }
13280
13367
  const filename = getFilenameFromUrl(url, validationScope);
13281
- const localPath = join10(destDir, filename);
13368
+ const localPath = join11(destDir, filename);
13282
13369
  const downloadPromise = (async () => {
13283
13370
  const cacheStartedAt = Date.now();
13284
13371
  const reused = await reuseOrInvalidateCachedFile(
@@ -13382,7 +13469,7 @@ import {
13382
13469
  utimesSync,
13383
13470
  writeFileSync as writeFileSync3
13384
13471
  } from "fs";
13385
- import { join as join11 } from "path";
13472
+ import { join as join12 } from "path";
13386
13473
  var COMPLETE_SENTINEL = ".hf-complete";
13387
13474
  var GC_MARKER = ".hf-last-gc";
13388
13475
  var SCHEMA_PREFIX = "hfcache-v10-";
@@ -13433,8 +13520,8 @@ function hasFrameFiles(dir) {
13433
13520
  }
13434
13521
  function lookupCacheEntry(rootDir, input) {
13435
13522
  const keyHash = computeCacheKey(input);
13436
- const dir = join11(rootDir, cacheEntryDirName(keyHash));
13437
- const complete = existsSync8(join11(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
13523
+ const dir = join12(rootDir, cacheEntryDirName(keyHash));
13524
+ const complete = existsSync8(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
13438
13525
  return { entry: { dir, keyHash }, hit: complete };
13439
13526
  }
13440
13527
  function partialCacheEntryDir(entry) {
@@ -13445,13 +13532,13 @@ function isTargetExistsRenameError(err) {
13445
13532
  return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
13446
13533
  }
13447
13534
  function adoptPublishedWinner(entry, partialDir) {
13448
- if (!existsSync8(join11(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
13535
+ if (!existsSync8(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
13449
13536
  removeDir(partialDir);
13450
13537
  return { dir: entry.dir, published: true };
13451
13538
  }
13452
13539
  function publishCacheEntry(entry, partialDir) {
13453
13540
  try {
13454
- writeFileSync3(join11(partialDir, COMPLETE_SENTINEL), "", "utf-8");
13541
+ writeFileSync3(join12(partialDir, COMPLETE_SENTINEL), "", "utf-8");
13455
13542
  } catch {
13456
13543
  return { dir: partialDir, published: false };
13457
13544
  }
@@ -13482,7 +13569,7 @@ function touchCacheDir(dir) {
13482
13569
  } catch {
13483
13570
  }
13484
13571
  try {
13485
- utimesSync(join11(dir, COMPLETE_SENTINEL), now, now);
13572
+ utimesSync(join12(dir, COMPLETE_SENTINEL), now, now);
13486
13573
  } catch {
13487
13574
  }
13488
13575
  }
@@ -13511,7 +13598,7 @@ function directorySizeBytes(path) {
13511
13598
  return 0;
13512
13599
  }
13513
13600
  for (const child of children) {
13514
- const childPath = join11(path, child);
13601
+ const childPath = join12(path, child);
13515
13602
  try {
13516
13603
  const stat = lstatSync2(childPath);
13517
13604
  if (stat.isDirectory()) {
@@ -13540,7 +13627,7 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
13540
13627
  }
13541
13628
  let lastUseMs = dirStat.mtimeMs;
13542
13629
  try {
13543
- lastUseMs = statSync6(join11(dir, COMPLETE_SENTINEL)).mtimeMs;
13630
+ lastUseMs = statSync6(join12(dir, COMPLETE_SENTINEL)).mtimeMs;
13544
13631
  } catch {
13545
13632
  }
13546
13633
  return { dir, size: directorySizeBytes(dir), lastUseMs, ageMs: now - lastUseMs };
@@ -13550,14 +13637,14 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
13550
13637
  }
13551
13638
  function gcSweepDue(rootDir, maxAgeMs) {
13552
13639
  try {
13553
- return Date.now() - statSync6(join11(rootDir, GC_MARKER)).mtimeMs > maxAgeMs;
13640
+ return Date.now() - statSync6(join12(rootDir, GC_MARKER)).mtimeMs > maxAgeMs;
13554
13641
  } catch {
13555
13642
  return true;
13556
13643
  }
13557
13644
  }
13558
13645
  function markGcSweep(rootDir) {
13559
13646
  try {
13560
- writeFileSync3(join11(rootDir, GC_MARKER), "", "utf-8");
13647
+ writeFileSync3(join12(rootDir, GC_MARKER), "", "utf-8");
13561
13648
  } catch {
13562
13649
  }
13563
13650
  }
@@ -13572,7 +13659,7 @@ function gcExtractionCache(rootDir, opts) {
13572
13659
  for (const child of readdirSync5(rootDir, { withFileTypes: true })) {
13573
13660
  if (!child.isDirectory() || !isCacheLikeChild(child.name)) continue;
13574
13661
  const entry = collectGcEntry(
13575
- join11(rootDir, child.name),
13662
+ join12(rootDir, child.name),
13576
13663
  child.name,
13577
13664
  now,
13578
13665
  opts.minAgeMs,
@@ -14298,7 +14385,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
14298
14385
  const normalizedFps = toFps(options.fps);
14299
14386
  const fps = fpsToNumber(normalizedFps);
14300
14387
  const ffmpegFps = fpsToFfmpegArg(normalizedFps);
14301
- const videoOutputDir = outputDirOverride ?? join12(outputDir, mediaIdPathSegment(videoId));
14388
+ const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
14302
14389
  if (!existsSync9(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
14303
14390
  let metadata;
14304
14391
  try {
@@ -14859,7 +14946,7 @@ function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
14859
14946
  for (let i = 0; i < frameCount; i += 1) {
14860
14947
  const sourceFrame = superset.framePaths.get(member.offsetFrames + i);
14861
14948
  if (!sourceFrame) throw new Error(`superset frame ${member.offsetFrames + i} missing`);
14862
- linkOrCopyFrame(sourceFrame, join12(outputDir, frameFileName(i + 1, work.format)));
14949
+ linkOrCopyFrame(sourceFrame, join13(outputDir, frameFileName(i + 1, work.format)));
14863
14950
  }
14864
14951
  return extractedFramesFromDirectory(work, outputDir, work.videoPath, fps);
14865
14952
  }
@@ -14915,7 +15002,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
14915
15002
  continue;
14916
15003
  }
14917
15004
  if (isHttpUrl(videoPath)) {
14918
- const downloadDir = join12(options.outputDir, DOWNLOAD_SUBDIR);
15005
+ const downloadDir = join13(options.outputDir, DOWNLOAD_SUBDIR);
14919
15006
  mkdirSync6(downloadDir, { recursive: true });
14920
15007
  videoPath = await downloadToTemp(
14921
15008
  videoPath,
@@ -14952,7 +15039,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
14952
15039
  }
14953
15040
  breakdown.resolveMs = Date.now() - phase1Start;
14954
15041
  const contentKeyedDirs = [
14955
- join12(options.outputDir, DOWNLOAD_SUBDIR),
15042
+ join13(options.outputDir, DOWNLOAD_SUBDIR),
14956
15043
  ...options.contentKeyedDirs ?? []
14957
15044
  ];
14958
15045
  const cacheKeyInputs = resolvedVideos.map(({ video, videoPath }) => {
@@ -15160,7 +15247,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15160
15247
  async function extractDirectMiss(miss, maxTransientRetries = options.maxTransientRetries ?? 0) {
15161
15248
  const { work, cacheTarget } = miss;
15162
15249
  if (!cacheTarget) {
15163
- const outputDir = join12(options.outputDir, mediaIdPathSegment(work.video.id));
15250
+ const outputDir = join13(options.outputDir, mediaIdPathSegment(work.video.id));
15164
15251
  const attempted2 = await runVideoExtractionWithRetry(
15165
15252
  () => extractVideoFramesRange(
15166
15253
  work.videoPath,
@@ -15226,7 +15313,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15226
15313
  const tailFrames = Math.min(expectedFrames, Math.ceil(fps));
15227
15314
  if (expectedFrames <= tailFrames) return null;
15228
15315
  const deferred = (totalFrames) => {
15229
- const outputDir = join12(options.outputDir, mediaIdPathSegment(work.video.id));
15316
+ const outputDir = join13(options.outputDir, mediaIdPathSegment(work.video.id));
15230
15317
  mkdirSync6(outputDir, { recursive: true });
15231
15318
  return {
15232
15319
  videoId: work.video.id,
@@ -15263,7 +15350,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15263
15350
  const totalFrames = firstTailFrame + storedTailFrames;
15264
15351
  return totalFrames <= expectedFrames * 0.6 ? null : deferred(totalFrames);
15265
15352
  }
15266
- const probeDir = join12(options.outputDir, `${mediaIdPathSegment(work.video.id)}.tail-probe`);
15353
+ const probeDir = join13(options.outputDir, `${mediaIdPathSegment(work.video.id)}.tail-probe`);
15267
15354
  try {
15268
15355
  const tail2 = await extractVideoFramesRange(
15269
15356
  work.videoPath,
@@ -15302,7 +15389,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15302
15389
  return sliceSupersetMember(
15303
15390
  member,
15304
15391
  superset,
15305
- join12(options.outputDir, mediaIdPathSegment(work.video.id)),
15392
+ join13(options.outputDir, mediaIdPathSegment(work.video.id)),
15306
15393
  fps,
15307
15394
  configuredFps
15308
15395
  );
@@ -15319,7 +15406,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
15319
15406
  async function executeSupersetGroup(group) {
15320
15407
  const first = group.members[0]?.miss.work;
15321
15408
  if (!first) return [];
15322
- const tempDir = cacheRootDir ? join12(cacheRootDir, `${group.groupId}.partial-${process.pid}`) : join12(options.outputDir, group.groupId);
15409
+ const tempDir = cacheRootDir ? join13(cacheRootDir, `${group.groupId}.partial-${process.pid}`) : join13(options.outputDir, group.groupId);
15323
15410
  try {
15324
15411
  rmSync5(tempDir, { recursive: true, force: true });
15325
15412
  const superset = await extractVideoFramesRange(
@@ -16197,7 +16284,7 @@ async function queryElementStacking(page, nativeHdrIds) {
16197
16284
 
16198
16285
  // ../engine/src/services/audioMixer.ts
16199
16286
  import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
16200
- import { join as join16, dirname as dirname7, isAbsolute as isAbsolute2, relative as relative2 } from "path";
16287
+ import { join as join17, dirname as dirname8, isAbsolute as isAbsolute2, relative as relative2 } from "path";
16201
16288
 
16202
16289
  // ../engine/src/utils/notMediaPayload.ts
16203
16290
  import { createHash as createHash4 } from "crypto";
@@ -16317,7 +16404,7 @@ import { cpus as cpus2 } from "os";
16317
16404
  // ../engine/src/services/aacEncode.ts
16318
16405
  import { execFile as execFile3 } from "child_process";
16319
16406
  import { readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
16320
- import { dirname as dirname5, join as join13 } from "path";
16407
+ import { dirname as dirname6, join as join14 } from "path";
16321
16408
  var SAMPLE_RATE = 48e3;
16322
16409
  var FRAME_SAMPLES = 1024;
16323
16410
  var MIN_SEGMENT_SECONDS = 60;
@@ -16385,11 +16472,11 @@ async function encodeAac(input, outputPath, totalDuration, {
16385
16472
  if (!await supportsSettsDuration()) {
16386
16473
  return encodeInOnePass(input, outputPath, { signal, timeout, filter });
16387
16474
  }
16388
- const dir = createStagingDir(dirname5(outputPath), ".aac-segments-");
16475
+ const dir = createStagingDir(dirname6(outputPath), ".aac-segments-");
16389
16476
  try {
16390
16477
  const segments = planSegments(totalDuration, count).map((segment, k) => ({
16391
16478
  ...segment,
16392
- path: join13(dir, `${k}.aac`)
16479
+ path: join14(dir, `${k}.aac`)
16393
16480
  }));
16394
16481
  const results = await Promise.all(
16395
16482
  segments.map(
@@ -16416,7 +16503,7 @@ async function encodeAac(input, outputPath, totalDuration, {
16416
16503
  );
16417
16504
  const failed = results.find((result) => !result.success);
16418
16505
  if (failed) return failed;
16419
- const joined = join13(dir, "joined.aac");
16506
+ const joined = join14(dir, "joined.aac");
16420
16507
  const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
16421
16508
  const segmentFrames = splitAdtsFrames(readFileSync5(path));
16422
16509
  if (segmentFrames.length < keepTo) {
@@ -16551,7 +16638,7 @@ function audioFailureDiagnostics(values) {
16551
16638
 
16552
16639
  // ../engine/src/services/audioVolumeEnvelope.ts
16553
16640
  import { readFileSync as readFileSync6, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
16554
- import { dirname as dirname6, join as join14 } from "path";
16641
+ import { dirname as dirname7, join as join15 } from "path";
16555
16642
 
16556
16643
  // ../core/dist/runtime/mediaVolumeEnvelope.js
16557
16644
  function normaliseEnvelope(keyframes, trackStart, baseVolume) {
@@ -16677,8 +16764,8 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
16677
16764
  const layout = parseWavLayout(buffer);
16678
16765
  if (!layout) return false;
16679
16766
  scaleSamples(buffer, layout, gainAt);
16680
- stagingDir = createStagingDir(dirname6(wavPath), ".hf-volume-");
16681
- const tempPath = join14(stagingDir, "audio.wav");
16767
+ stagingDir = createStagingDir(dirname7(wavPath), ".hf-volume-");
16768
+ const tempPath = join15(stagingDir, "audio.wav");
16682
16769
  writeFileSync5(tempPath, buffer, { flag: "wx" });
16683
16770
  renameWithRetry(tempPath, wavPath);
16684
16771
  return true;
@@ -16917,7 +17004,7 @@ import {
16917
17004
  writeSync as writeSync2
16918
17005
  } from "fs";
16919
17006
  import { tmpdir as tmpdir5 } from "os";
16920
- import { join as join15 } from "path";
17007
+ import { join as join16 } from "path";
16921
17008
  import { pathToFileURL } from "url";
16922
17009
 
16923
17010
  // ../core/dist/generated/audio-fx-runtime-inline.js
@@ -17274,7 +17361,7 @@ var fxChromeArgs = () => fxBrowserArgs ??= buildChromeArgs(
17274
17361
  { browserGpuMode: "software" }
17275
17362
  );
17276
17363
  async function withFxBrowser(options, body) {
17277
- const hostDir = mkdtempSync4(join15(tmpdir5(), "hf-fx-host-"));
17364
+ const hostDir = mkdtempSync4(join16(tmpdir5(), "hf-fx-host-"));
17278
17365
  let lease = null;
17279
17366
  try {
17280
17367
  if (options.signal?.aborted) {
@@ -17296,7 +17383,7 @@ async function withFxBrowser(options, body) {
17296
17383
  async function openFxPage(browser, hostDir) {
17297
17384
  const page = await browser.newPage();
17298
17385
  try {
17299
- const hostPage = join15(hostDir, "audio-fx.html");
17386
+ const hostPage = join16(hostDir, "audio-fx.html");
17300
17387
  writeFileSync6(hostPage, "<!doctype html><meta charset=utf-8><title>audio fx</title>");
17301
17388
  await page.goto(pathToFileURL(hostPage).href, {
17302
17389
  waitUntil: "domcontentloaded"
@@ -17753,7 +17840,7 @@ var FAIL_ON_READ_ERROR_INSTEAD_OF_ENDING_THERE = ["-xerror"];
17753
17840
  var SIDECAR_WARM_UP_SECONDS = 1;
17754
17841
  async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
17755
17842
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
17756
- const outputDir = dirname7(outputPath);
17843
+ const outputDir = dirname8(outputPath);
17757
17844
  if (!existsSync11(outputDir)) mkdirSync7(outputDir, { recursive: true });
17758
17845
  const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
17759
17846
  const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
@@ -17768,7 +17855,7 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
17768
17855
  const loopDuration = (metadata?.durationSeconds ?? 0) - mediaStart;
17769
17856
  if (options?.loop && loopDuration > 0 && sourceDuration > loopDuration) {
17770
17857
  const cycleDir = createStagingDir(outputDir, ".audio-loop-");
17771
- const cyclePath = join16(cycleDir, "cycle.wav");
17858
+ const cyclePath = join17(cycleDir, "cycle.wav");
17772
17859
  try {
17773
17860
  const cycle = await extractAudioSegment(
17774
17861
  srcPath,
@@ -17899,7 +17986,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
17899
17986
  }
17900
17987
  async function generateSilence(outputPath, duration, signal, config) {
17901
17988
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
17902
- const outputDir = dirname7(outputPath);
17989
+ const outputDir = dirname8(outputPath);
17903
17990
  if (!existsSync11(outputDir)) mkdirSync7(outputDir, { recursive: true });
17904
17991
  const args = [
17905
17992
  "-f",
@@ -17953,7 +18040,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
17953
18040
  failures: result2.failure ? [result2.failure] : void 0
17954
18041
  };
17955
18042
  }
17956
- const outputDir = dirname7(outputPath);
18043
+ const outputDir = dirname8(outputPath);
17957
18044
  if (!existsSync11(outputDir)) mkdirSync7(outputDir, { recursive: true });
17958
18045
  const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
17959
18046
  const filterParts = [];
@@ -17971,7 +18058,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
17971
18058
  const inputs = [];
17972
18059
  tracks.forEach((track) => inputs.push("-i", track.srcPath));
17973
18060
  const scriptDir = createStagingDir(outputDir, ".filter-complex-");
17974
- const scriptPath = join16(scriptDir, "graph.txt");
18061
+ const scriptPath = join17(scriptDir, "graph.txt");
17975
18062
  const fd = openSync4(scriptPath, "wx", 384);
17976
18063
  try {
17977
18064
  writeFileSync7(fd, buildFilterComplex(ignoreAutomation, useNormalize2));
@@ -18062,7 +18149,7 @@ function groupNormalizeOptionUnsupported(stderr) {
18062
18149
  }
18063
18150
  async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
18064
18151
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
18065
- const outputDir = dirname7(outputPath);
18152
+ const outputDir = dirname8(outputPath);
18066
18153
  if (!existsSync11(outputDir)) mkdirSync7(outputDir, { recursive: true });
18067
18154
  const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
18068
18155
  const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
@@ -18082,7 +18169,7 @@ async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, sign
18082
18169
  );
18083
18170
  const filterComplex = [...inputFilters, mixFilter].join(";");
18084
18171
  const scriptDir = createStagingDir(outputDir, ".group-filter-complex-");
18085
- const scriptPath = join16(scriptDir, "graph.txt");
18172
+ const scriptPath = join17(scriptDir, "graph.txt");
18086
18173
  const fd = openSync4(scriptPath, "wx", 384);
18087
18174
  try {
18088
18175
  writeFileSync7(fd, filterComplex);
@@ -18161,7 +18248,7 @@ async function sumInSlices(tracks, scratchDir, totalDuration, signal, config) {
18161
18248
  let degradedAutomation = false;
18162
18249
  for (let at = 0; at < tracks.length; at += MAX_MIX_INPUTS) {
18163
18250
  const id = `sum-${at / MAX_MIX_INPUTS}`;
18164
- const slicePath = join16(scratchDir, `${id}-slice.wav`);
18251
+ const slicePath = join17(scratchDir, `${id}-slice.wav`);
18165
18252
  const slice = await mixGroupMembersFlat(
18166
18253
  tracks.slice(at, at + MAX_MIX_INPUTS),
18167
18254
  slicePath,
@@ -18175,7 +18262,7 @@ async function sumInSlices(tracks, scratchDir, totalDuration, signal, config) {
18175
18262
  running = wavTrack(id, slicePath);
18176
18263
  continue;
18177
18264
  }
18178
- const foldedPath = join16(scratchDir, `${id}.wav`);
18265
+ const foldedPath = join17(scratchDir, `${id}.wav`);
18179
18266
  const folded = await mixGroupMembersFlat(
18180
18267
  [running, wavTrack(`${id}-slice`, slicePath)],
18181
18268
  foldedPath,
@@ -18195,8 +18282,8 @@ async function mixGroupMembers(memberTracks, outputPath, totalDuration, signal,
18195
18282
  if (memberTracks.length <= MAX_MIX_INPUTS) {
18196
18283
  return mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config);
18197
18284
  }
18198
- mkdirSync7(dirname7(outputPath), { recursive: true });
18199
- const scratchDir = createStagingDir(dirname7(outputPath), ".mix-batches-");
18285
+ mkdirSync7(dirname8(outputPath), { recursive: true });
18286
+ const scratchDir = createStagingDir(dirname8(outputPath), ".mix-batches-");
18200
18287
  try {
18201
18288
  const summed = await sumInSlices(memberTracks, scratchDir, totalDuration, signal, config);
18202
18289
  if (!summed.success) return summed;
@@ -18210,8 +18297,8 @@ async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config)
18210
18297
  if (tracks.length <= MAX_MIX_INPUTS) {
18211
18298
  return mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, config);
18212
18299
  }
18213
- mkdirSync7(dirname7(outputPath), { recursive: true });
18214
- const scratchDir = createStagingDir(dirname7(outputPath), ".mix-batches-");
18300
+ mkdirSync7(dirname8(outputPath), { recursive: true });
18301
+ const scratchDir = createStagingDir(dirname8(outputPath), ".mix-batches-");
18215
18302
  try {
18216
18303
  const summed = await sumInSlices(tracks, scratchDir, totalDuration, signal, config);
18217
18304
  if (!summed.success) {
@@ -18241,12 +18328,12 @@ async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config)
18241
18328
  }
18242
18329
  }
18243
18330
  async function mixThroughFloatSum(tracks, masterChain, outputPath, workDir, totalDuration, signal, config) {
18244
- const sumPath = join16(workDir, "master-sum.wav");
18331
+ const sumPath = join17(workDir, "master-sum.wav");
18245
18332
  const mixStart = Date.now();
18246
18333
  const sum = await mixAudioTracks(tracks, sumPath, totalDuration, signal, config);
18247
18334
  if (!sum.success) return { ...sum, outputPath };
18248
18335
  const masterStart = Date.now();
18249
- const encoderInput = masterChain ? (await applyAudioFxChain(sumPath, masterChain, join16(workDir, "master-fx.wav"), {
18336
+ const encoderInput = masterChain ? (await applyAudioFxChain(sumPath, masterChain, join17(workDir, "master-fx.wav"), {
18250
18337
  trackId: "master",
18251
18338
  signal
18252
18339
  })).path : sumPath;
@@ -18391,7 +18478,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18391
18478
  }
18392
18479
  let audioSrcPath = srcPath;
18393
18480
  if (element.type === "video") {
18394
- const extractedPath = join16(workDir, `${mediaIdPathSegment(element.id)}-extracted.wav`);
18481
+ const extractedPath = join17(workDir, `${mediaIdPathSegment(element.id)}-extracted.wav`);
18395
18482
  const extractResult = await extractAudioSegment(
18396
18483
  srcPath,
18397
18484
  extractedPath,
@@ -18419,7 +18506,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18419
18506
  }
18420
18507
  audioSrcPath = extractedPath;
18421
18508
  } else {
18422
- const trimmedPath = join16(workDir, `${mediaIdPathSegment(element.id)}-trimmed.wav`);
18509
+ const trimmedPath = join17(workDir, `${mediaIdPathSegment(element.id)}-trimmed.wav`);
18423
18510
  const prepResult = await extractAudioSegment(
18424
18511
  srcPath,
18425
18512
  trimmedPath,
@@ -18471,7 +18558,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18471
18558
  const fxResult = await applyAudioFxChain(
18472
18559
  audioSrcPath,
18473
18560
  chain,
18474
- join16(workDir, `${mediaIdPathSegment(element.id)}-fx.wav`),
18561
+ join17(workDir, `${mediaIdPathSegment(element.id)}-fx.wav`),
18475
18562
  {
18476
18563
  trackId: element.id,
18477
18564
  signal: effectiveSignal,
@@ -18594,7 +18681,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18594
18681
  const meta = groupMeta.get(groupId);
18595
18682
  if (!meta) continue;
18596
18683
  const pathId = safePathSegment(groupId, groupIndex);
18597
- const groupWavPath = join16(workDir, `group-${pathId}.wav`);
18684
+ const groupWavPath = join17(workDir, `group-${pathId}.wav`);
18598
18685
  try {
18599
18686
  const subMix = await mixGroupMembers(
18600
18687
  memberTracks,
@@ -18627,7 +18714,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18627
18714
  const fxResult = await applyAudioFxChain(
18628
18715
  groupSrcPath,
18629
18716
  chain,
18630
- join16(workDir, `group-${pathId}-fx.wav`),
18717
+ join17(workDir, `group-${pathId}-fx.wav`),
18631
18718
  {
18632
18719
  trackId: groupId,
18633
18720
  signal: effectiveSignal,
@@ -18709,21 +18796,21 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
18709
18796
  import { cpus as cpus3, freemem } from "os";
18710
18797
  import { existsSync as existsSync12, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
18711
18798
  import { copyFile, readFile as readFile2 } from "fs/promises";
18712
- import { join as join18 } from "path";
18799
+ import { join as join19 } from "path";
18713
18800
  import { getHeapStatistics } from "v8";
18714
18801
 
18715
18802
  // ../engine/src/utils/psnr.ts
18716
18803
  import { execFile as execFile4 } from "child_process";
18717
18804
  import { mkdtemp, rm, writeFile } from "fs/promises";
18718
18805
  import { tmpdir as tmpdir6 } from "os";
18719
- import { join as join17 } from "path";
18806
+ import { join as join18 } from "path";
18720
18807
  import { promisify as promisify3 } from "util";
18721
18808
  async function psnrDb(a, b) {
18722
18809
  const execFileP = promisify3(execFile4);
18723
- const dir = await mkdtemp(join17(tmpdir6(), "hf-de-verify-"));
18810
+ const dir = await mkdtemp(join18(tmpdir6(), "hf-de-verify-"));
18724
18811
  try {
18725
- const pa = join17(dir, "a.jpg");
18726
- const pb = join17(dir, "b.jpg");
18812
+ const pa = join18(dir, "a.jpg");
18813
+ const pb = join18(dir, "b.jpg");
18727
18814
  await Promise.all([writeFile(pa, a), writeFile(pb, b)]);
18728
18815
  const { stderr } = await execFileP(
18729
18816
  getFfmpegBinary(),
@@ -18960,7 +19047,7 @@ function distributeFrames(totalFrames, workerCount, workDir, rangeStart = 0) {
18960
19047
  workerId: i,
18961
19048
  startFrame,
18962
19049
  endFrame,
18963
- outputDir: join18(workDir, `worker-${i}`),
19050
+ outputDir: join19(workDir, `worker-${i}`),
18964
19051
  outputFrameOffset: rangeStart
18965
19052
  });
18966
19053
  }
@@ -18974,7 +19061,7 @@ function distributeFramesInterleaved(totalFrames, workerCount, workDir, rangeSta
18974
19061
  startFrame: rangeStart + i,
18975
19062
  endFrame: rangeStart + totalFrames,
18976
19063
  frameStride: workerCount,
18977
- outputDir: join18(workDir, `worker-${i}`),
19064
+ outputDir: join19(workDir, `worker-${i}`),
18978
19065
  outputFrameOffset: rangeStart
18979
19066
  });
18980
19067
  }
@@ -19189,7 +19276,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
19189
19276
  for (const idx of selectVerifySampleIndicesForTask(truths.keys(), task)) {
19190
19277
  const truth = truths.get(idx);
19191
19278
  if (!truth) continue;
19192
- const framePath = join18(task.outputDir, `frame_${String(idx - offset).padStart(6, "0")}.${ext}`);
19279
+ const framePath = join19(task.outputDir, `frame_${String(idx - offset).padStart(6, "0")}.${ext}`);
19193
19280
  const db = await psnrForDiskSample(framePath, truth, task.workerId, idx);
19194
19281
  if (db === null) continue;
19195
19282
  assertDiskSampleAboveFloor(db, verifyMinDb, idx, task.workerId);
@@ -19462,8 +19549,8 @@ async function mergeWorkerFrames(workDir, tasks, outputDir) {
19462
19549
  }
19463
19550
  const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
19464
19551
  const copyTasks = files.map(async (file) => {
19465
- const sourcePath = join18(task.outputDir, file);
19466
- const targetPath = join18(outputDir, file);
19552
+ const sourcePath = join19(task.outputDir, file);
19553
+ const targetPath = join19(outputDir, file);
19467
19554
  try {
19468
19555
  await renameWithRetryAsync(sourcePath, targetPath);
19469
19556
  } catch {
@@ -19488,7 +19575,7 @@ function getSystemResources() {
19488
19575
  import { Hono } from "hono";
19489
19576
  import { serve } from "@hono/node-server";
19490
19577
  import { readFileSync as readFileSync8, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants } from "fs";
19491
- import { join as join19, extname as extname3 } from "path";
19578
+ import { join as join20, extname as extname3 } from "path";
19492
19579
  var MIME_TYPES = {
19493
19580
  ".html": "text/html; charset=utf-8",
19494
19581
  ".css": "text/css; charset=utf-8",
@@ -19535,10 +19622,10 @@ function readRegularFile(filePath) {
19535
19622
  }
19536
19623
  }
19537
19624
  function resolveContainedPaths(projectDir, compiledDir, relativePath) {
19538
- const projectPath = join19(projectDir, relativePath);
19625
+ const projectPath = join20(projectDir, relativePath);
19539
19626
  if (!isWithinProjectRoot(projectDir, projectPath)) return null;
19540
19627
  if (!compiledDir) return { projectPath, compiledPath: null };
19541
- const compiledPath = join19(compiledDir, relativePath);
19628
+ const compiledPath = join20(compiledDir, relativePath);
19542
19629
  if (!isWithinProjectRoot(compiledDir, compiledPath)) return null;
19543
19630
  return { projectPath, compiledPath };
19544
19631
  }
@@ -20129,6 +20216,7 @@ export {
20129
20216
  cloneCaptureWarnings,
20130
20217
  installMediaRenderIdBridge,
20131
20218
  createChromeMemorySampler,
20219
+ VariablesInvalidError,
20132
20220
  CaptureFailure,
20133
20221
  classifyCaptureFailure,
20134
20222
  isTransientBrowserError,