hyperframes 0.9.32 → 0.9.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/{add-HYI4YJC5.js → add-GDXM36YQ.js} +13 -13
  2. package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-KPNDH2EI.js} +7 -7
  3. package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-SAKETEZ2.js} +7 -7
  4. package/dist/api.js +39 -38
  5. package/dist/{asset-7FG3M3FQ.js → asset-KOJC72AQ.js} +2 -2
  6. package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-Q4ZFUI6G.js} +8 -8
  7. package/dist/{audio-R6ZG62DU.js → audio-XZBBXKQC.js} +25 -24
  8. package/dist/{auth-IPDYZXOG.js → auth-X45YSZGE.js} +4 -4
  9. package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-77XWQ564.js} +3 -3
  10. package/dist/{avatars-A45VFUZ4.js → avatars-D3D22TI2.js} +16 -15
  11. package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-2L2RWFJ3.js} +4 -4
  12. package/dist/backgroundChecksWorker.js +4 -4
  13. package/dist/{batchRender-VBSYVQA7.js → batchRender-O7J47H2Z.js} +3 -3
  14. package/dist/{beats-UPJ3KANG.js → beats-6RVVU56H.js} +11 -11
  15. package/dist/{benchmark-2RWYJGL2.js → benchmark-D5JRNAVQ.js} +10 -10
  16. package/dist/{billing-MD66MJTA.js → billing-WT4DGZII.js} +15 -14
  17. package/dist/{browser-JXCS62NX.js → browser-2OR737P4.js} +7 -7
  18. package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
  19. package/dist/{capture-DJ4WRP62.js → capture-23X2CK56.js} +44 -24
  20. package/dist/{capture-M6DT5WZT.js → capture-B34FTO6G.js} +3 -3
  21. package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-TPZKEVKN.js} +15 -15
  22. package/dist/{catalog-GW45OWKU.js → catalog-ACHSYU5Z.js} +13 -13
  23. package/dist/{catch-up-YKJQ4IYC.js → catch-up-FGANS2BB.js} +8 -8
  24. package/dist/{check-7QTKMPGA.js → check-DXK4L5WP.js} +44 -44
  25. package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-4ISYJED3.js} +15 -15
  26. package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-5ECMULMP.js} +37 -37
  27. package/dist/{chunk-5VN7ZXJR.js → chunk-23354HMA.js} +1 -1
  28. package/dist/{chunk-GCJRV7LU.js → chunk-2I4DQZLQ.js} +1 -1
  29. package/dist/{chunk-WTO4DHBH.js → chunk-2KYLVWLO.js} +1 -1
  30. package/dist/{chunk-3R2X2VKB.js → chunk-2LMCARA5.js} +1 -1
  31. package/dist/{chunk-TVQNABOI.js → chunk-2QTGQGYA.js} +1 -1
  32. package/dist/{chunk-TLUDJLBN.js → chunk-2RBQLV6B.js} +1 -1
  33. package/dist/{chunk-EJPWGGPK.js → chunk-2TBW7UOF.js} +5150 -4985
  34. package/dist/{chunk-P5E3RHW3.js → chunk-3J32XVJ6.js} +1 -1
  35. package/dist/{chunk-LHFBKUVY.js → chunk-45ZQI734.js} +2 -2
  36. package/dist/{chunk-G7NKYELQ.js → chunk-4CHGNFCS.js} +4 -4
  37. package/dist/{chunk-34S7GYVK.js → chunk-4DLYTSWQ.js} +15 -8
  38. package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
  39. package/dist/{chunk-SXOIG6VG.js → chunk-4US5QCXR.js} +231 -176
  40. package/dist/{chunk-XH6LGDIB.js → chunk-4WZU4FYS.js} +3 -3
  41. package/dist/{chunk-NNOAOQLT.js → chunk-5GYTBKZA.js} +2 -2
  42. package/dist/{chunk-K72X2YXR.js → chunk-5RVPI6QL.js} +4 -4
  43. package/dist/{chunk-M6FNCANA.js → chunk-6QEEF5RR.js} +1 -1
  44. package/dist/{chunk-MYFAVVA6.js → chunk-6RV2QY4K.js} +29 -29
  45. package/dist/{chunk-LXIEKLAC.js → chunk-6ZVUTYNB.js} +5 -5
  46. package/dist/{chunk-JMV63CNH.js → chunk-76KUCQXD.js} +1 -1
  47. package/dist/{chunk-GWSCUFGL.js → chunk-7LTXT7ME.js} +11 -9
  48. package/dist/{chunk-LBQQNNRC.js → chunk-7UUUV4PN.js} +1 -1
  49. package/dist/{chunk-6BI6URO2.js → chunk-A4VXOJZO.js} +4 -3
  50. package/dist/{chunk-2W4VQ3YZ.js → chunk-ADYMQM7T.js} +2 -2
  51. package/dist/{chunk-PXY3JZP2.js → chunk-AIC7T7CC.js} +2 -2
  52. package/dist/{chunk-KG3TONXU.js → chunk-B66UZ2YK.js} +9 -9
  53. package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
  54. package/dist/{chunk-SIRYW7SY.js → chunk-BBL6STGK.js} +2 -2
  55. package/dist/{chunk-GTHRXU37.js → chunk-C2VZ7UPE.js} +18 -18
  56. package/dist/{chunk-I3QXWJ7V.js → chunk-CDI3CCAU.js} +5 -5
  57. package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
  58. package/dist/{chunk-4CSZZXL6.js → chunk-CHM3QYLF.js} +3 -3
  59. package/dist/{chunk-VB3JZKMN.js → chunk-CNJLBAKM.js} +29 -8
  60. package/dist/chunk-DDDSTRHU.js +3890 -0
  61. package/dist/{chunk-GJUL3PRV.js → chunk-DGC2RIQE.js} +3 -3
  62. package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
  63. package/dist/{chunk-HXQDDCGY.js → chunk-DMZER7D5.js} +1 -1
  64. package/dist/{chunk-XPT4GC6X.js → chunk-ERJBWDPM.js} +6 -6
  65. package/dist/{chunk-NXSKZE3C.js → chunk-ETWXZQN5.js} +1 -1
  66. package/dist/{chunk-E5S4QMX7.js → chunk-EX533ULK.js} +1 -1
  67. package/dist/{chunk-3367VNGK.js → chunk-EX7WPDFA.js} +1 -1
  68. package/dist/{chunk-JHX76QFC.js → chunk-FRH3CPW5.js} +1 -1
  69. package/dist/{chunk-EXW2LV4K.js → chunk-G55YEL2L.js} +24 -24
  70. package/dist/{chunk-WLNQAJQC.js → chunk-GHLLC6LJ.js} +2 -2
  71. package/dist/{chunk-SFPIVVUE.js → chunk-HEXTAQYG.js} +1 -1
  72. package/dist/{chunk-ADP2GIBS.js → chunk-HMB3IAVP.js} +1 -1
  73. package/dist/{chunk-Z6X64P6C.js → chunk-HPKW6UVW.js} +6 -6
  74. package/dist/{chunk-BA3EQ2KL.js → chunk-I35B5RWZ.js} +3 -3
  75. package/dist/{chunk-2NMBD5AH.js → chunk-I3PA54IU.js} +1 -1
  76. package/dist/{chunk-AOQRVS63.js → chunk-IYLGUQFR.js} +7 -5
  77. package/dist/chunk-JCJJCYCP.js +392 -0
  78. package/dist/{chunk-G6JLFSII.js → chunk-JSVCF4A6.js} +4 -4
  79. package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
  80. package/dist/{chunk-YIE5FU73.js → chunk-KIAY63AB.js} +37 -3
  81. package/dist/{chunk-X6DWLN55.js → chunk-L6BFXQ6S.js} +7 -3
  82. package/dist/chunk-M3BJEZ7E.js +152 -0
  83. package/dist/{chunk-M6LAGO6O.js → chunk-MA35E5OY.js} +3 -3
  84. package/dist/{chunk-XB7HE2R5.js → chunk-MDBEAWP2.js} +3 -3
  85. package/dist/{chunk-3HT3UGF2.js → chunk-MDGNQWFN.js} +1 -1
  86. package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
  87. package/dist/{chunk-5FFYMVRD.js → chunk-MP36L7OJ.js} +1 -1
  88. package/dist/{chunk-YCTWMO3G.js → chunk-MVIUSNPZ.js} +1 -1
  89. package/dist/{chunk-6SNGKC6B.js → chunk-N2C7WJDG.js} +1 -1
  90. package/dist/{chunk-3PHCFSPD.js → chunk-NQFIMBXS.js} +2 -2
  91. package/dist/{chunk-AZ2QJETV.js → chunk-O2T6ZTLN.js} +1 -1
  92. package/dist/{chunk-2T7EDEKE.js → chunk-O5CNNVRY.js} +7 -7
  93. package/dist/{chunk-5GXMZIQZ.js → chunk-OD7PLYYX.js} +7 -7
  94. package/dist/{chunk-TZH6HNZH.js → chunk-PNP2BO3U.js} +1 -1
  95. package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
  96. package/dist/{chunk-P7TCIUP2.js → chunk-QWM3NY2E.js} +3 -3
  97. package/dist/{chunk-Y3YHDU7T.js → chunk-R45WFVRA.js} +1 -1
  98. package/dist/{chunk-UWMOMAYI.js → chunk-RCB4SGTB.js} +2 -2
  99. package/dist/{chunk-W3HNLDK6.js → chunk-RGYOCAHC.js} +2 -2
  100. package/dist/{chunk-CMYUPVMI.js → chunk-ROXILOZ6.js} +2 -2
  101. package/dist/{chunk-EBG5RCPM.js → chunk-SIGASWB7.js} +4 -4
  102. package/dist/{chunk-KFXHBP2E.js → chunk-SOAQ3XXB.js} +1 -1
  103. package/dist/{chunk-LJMTEZOP.js → chunk-SUXEL7G4.js} +15 -15
  104. package/dist/{chunk-6MTSP2XE.js → chunk-SWPI27QV.js} +7 -7
  105. package/dist/{chunk-RCRUWNQ4.js → chunk-T3GSTIBS.js} +2 -2
  106. package/dist/{chunk-L72MPEM2.js → chunk-U77L3ZQZ.js} +1 -1
  107. package/dist/{chunk-6NNLDCX4.js → chunk-UE2WSWNA.js} +1 -1
  108. package/dist/{chunk-YMIEJZB6.js → chunk-VKZSAAXZ.js} +2 -2
  109. package/dist/chunk-VQJLTYEK.js +453 -0
  110. package/dist/{chunk-TTSLKH63.js → chunk-VZQXHYEI.js} +2 -2
  111. package/dist/{chunk-D7NNNL2K.js → chunk-W2FSQBUR.js} +17 -17
  112. package/dist/{chunk-AWT5FHTN.js → chunk-W5PW26KE.js} +1 -1
  113. package/dist/{chunk-KXOKZJBZ.js → chunk-WIMVXPYG.js} +12 -12
  114. package/dist/{chunk-KAG5KXNO.js → chunk-WYPRTHXQ.js} +1 -1
  115. package/dist/{chunk-YAZQBB2S.js → chunk-XDDBSGBD.js} +1 -1
  116. package/dist/{chunk-6RFCS4IU.js → chunk-XFXCI4IP.js} +7 -5
  117. package/dist/{chunk-2Z42EUHG.js → chunk-XQWWFIBR.js} +1 -1
  118. package/dist/{chunk-H7AJLEBR.js → chunk-XSHJ37U3.js} +3 -3
  119. package/dist/{chunk-HWMNSWEA.js → chunk-XUDJ5XSQ.js} +2 -2
  120. package/dist/{chunk-D6BV6TTI.js → chunk-XVVPEWNX.js} +1 -1
  121. package/dist/chunk-Y5DOT5NQ.js +57 -0
  122. package/dist/{chunk-HDCVU64B.js → chunk-YDG3OXH3.js} +3 -2
  123. package/dist/{chunk-H4C3P2KV.js → chunk-YNFHZ4RI.js} +2 -2
  124. package/dist/{chunk-PVSRPNIV.js → chunk-YSHUIQ3I.js} +2 -2
  125. package/dist/chunk-YTUPQTXA.js +560 -0
  126. package/dist/{chunk-262ADJJN.js → chunk-ZOAANTVI.js} +1 -1
  127. package/dist/{clean-MJBET4EN.js → clean-3IN64RHM.js} +21 -21
  128. package/dist/cli.js +68 -66
  129. package/dist/{cloud-WEDQYHZE.js → cloud-LBUZBUP6.js} +4 -4
  130. package/dist/{cloud-Z4Q76MLS.js → cloud-SVYXHFEG.js} +6 -5
  131. package/dist/{cloudrun-2KGSRAKA.js → cloudrun-PZOF2QGL.js} +5 -5
  132. package/dist/{compare-MJKWQOD7.js → compare-UOJ3LXQQ.js} +35 -35
  133. package/dist/{compiler-ETXRTUQC.js → compiler-5ZDHBKBQ.js} +6 -4
  134. package/dist/{component-PZGKEJ6L.js → component-EVIPLTTJ.js} +3 -3
  135. package/dist/{compositions-N3FEEWH7.js → compositions-R4GG5FBO.js} +13 -13
  136. package/dist/contract/LICENSE-Unicode.txt +39 -0
  137. package/dist/contract/path-policy.json +311 -0
  138. package/dist/contract/unicode-15.1.0.json +6179 -0
  139. package/dist/{curve-MWABBM7Q.js → curve-LR3PSRW3.js} +12 -12
  140. package/dist/{cuts-BQFSSNY7.js → cuts-DHCOBAFT.js} +13 -13
  141. package/dist/{delete-HPHGJABK.js → delete-MMGGU3QP.js} +9 -8
  142. package/dist/{deploy-JY2QOB5F.js → deploy-SKIGUTM2.js} +7 -7
  143. package/dist/{describeProject-S6AGYZWL.js → describeProject-L7HNTBPV.js} +8 -8
  144. package/dist/{destroy-AZK7J4IR.js → destroy-5HSMMDH7.js} +6 -6
  145. package/dist/{diff-XDNFCAU4.js → diff-KR7VKPYL.js} +40 -39
  146. package/dist/{dist-6EE3Y4M7.js → dist-3MFNUZSN.js} +2 -2
  147. package/dist/{dist-EYEYDD4F.js → dist-HK3AZNNL.js} +13 -13
  148. package/dist/{dist-TYGDYK56.js → dist-ZGYPFYOH.js} +2 -2
  149. package/dist/{doctor-6IRSMKZD.js → doctor-G7VGNSA5.js} +12 -12
  150. package/dist/{energy-VCJ2FJEF.js → energy-H7EEH6WO.js} +13 -13
  151. package/dist/{events-QQYBD7JM.js → events-5ATZCZTK.js} +4 -4
  152. package/dist/{events-DNTIMCUM.js → events-ASG27IXP.js} +15 -15
  153. package/dist/{events-M6A7BT3V.js → events-YD6N7OPQ.js} +7 -7
  154. package/dist/execute-OAS454OB.js +109 -0
  155. package/dist/{extract-X3IVXYHX.js → extract-645SENLA.js} +16 -16
  156. package/dist/{face-MZHXKBDB.js → face-WRT5XH4I.js} +14 -14
  157. package/dist/{feedback-TAMGYFUO.js → feedback-3LKLR5MV.js} +15 -14
  158. package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-PXKIZL2X.js} +7 -7
  159. package/dist/{figma-WMD7AR2S.js → figma-RIEVJJBW.js} +3 -3
  160. package/dist/fontLocalizeCli.js +12 -12
  161. package/dist/{frames-OU2UOLBU.js → frames-OTB3J5W3.js} +14 -14
  162. package/dist/{generate-6F6QEFXW.js → generate-IUKCZW2D.js} +27 -26
  163. package/dist/{get-VVDO7DXG.js → get-6WVQ7TBV.js} +9 -8
  164. package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-HXSVAEU4.js} +7 -7
  165. package/dist/{grade-compare-O6LY2U73.js → grade-compare-TCAYHDEF.js} +37 -37
  166. package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-GXIMK4HK.js} +8 -8
  167. package/dist/{help-XLSTTDHR.js → help-RGOL5EJD.js} +2 -1
  168. package/dist/{history-DBCCWBDG.js → history-XKPRGJGS.js} +10 -10
  169. package/dist/hyperframe.manifest.json +1 -1
  170. package/dist/hyperframe.runtime.iife.js +42 -42
  171. package/dist/hyperframes-player.global.js +1 -1
  172. package/dist/{info-E46BWAQ7.js → info-EYBBC42V.js} +15 -15
  173. package/dist/{init-23TG5W7S.js → init-F2FWPSMA.js} +29 -29
  174. package/dist/{ink-6UFSNJRW.js → ink-BWFERAAT.js} +13 -13
  175. package/dist/{inspect-RKI6XACH.js → inspect-74N7L3BW.js} +34 -34
  176. package/dist/{installer-JWPK75BR.js → installer-LOUR7G4R.js} +4 -4
  177. package/dist/{keyframes-J65V5A2G.js → keyframes-WB5PTKFE.js} +13 -11
  178. package/dist/{lambda-RZSXXBJU.js → lambda-JYCNXUKB.js} +12 -12
  179. package/dist/{layout-RJQUOYWB.js → layout-P52EVR24.js} +34 -34
  180. package/dist/{lint-4TUHKKA2.js → lint-SL55KAS2.js} +12 -12
  181. package/dist/{lintProject-R6RTBSCZ.js → lintProject-46WU53VC.js} +2 -2
  182. package/dist/{list-HOD2N4VS.js → list-LN6CQH52.js} +11 -10
  183. package/dist/{localPage-TC4NC3VL.js → localPage-L6OJU3UH.js} +7 -7
  184. package/dist/{login-NTOS3HKD.js → login-WTOAMDID.js} +8 -7
  185. package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
  186. package/dist/{look-GC63E2I7.js → look-O6ESLJRP.js} +13 -13
  187. package/dist/{manager-FICBET24.js → manager-CMEZWENF.js} +8 -8
  188. package/dist/{measure-WTQCSQ55.js → measure-NEIXU53P.js} +11 -11
  189. package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-6CAQG7MU.js} +15 -15
  190. package/dist/{media-use-K75FDXJ3.js → media-use-IXJFMKU7.js} +9 -7
  191. package/dist/{models-JKOA542M.js → models-TZALWUEY.js} +11 -11
  192. package/dist/{motionShot-A3TYKTQU.js → motionShot-OQYK6G6M.js} +20 -20
  193. package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-43PJLOBY.js} +11 -11
  194. package/dist/oauth-SAVP2YM4.js +40 -0
  195. package/dist/{open-F6GI4TRA.js → open-EOX6QY4M.js} +13 -13
  196. package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-STHAXQAF.js} +13 -13
  197. package/dist/{pipeline-7P7LGGQG.js → pipeline-RRWZHFBQ.js} +10 -10
  198. package/dist/plan-JWUSMF4W.js +88 -0
  199. package/dist/{play-DYOZLKWX.js → play-TUKTST32.js} +25 -25
  200. package/dist/{preflight-VM4HSRBY.js → preflight-L42JKT6F.js} +8 -8
  201. package/dist/{present-IINIEZJC.js → present-Z7HRDXPV.js} +20 -20
  202. package/dist/{preview-NJO2UXWJ.js → preview-HGTIRAV3.js} +23 -23
  203. package/dist/{probe-LQQHFX5Q.js → probe-RXK44FY7.js} +13 -13
  204. package/dist/{producer-LH2SZHJ2.js → producer-KJ2RZDJ3.js} +1 -1
  205. package/dist/{projectConfig-BLACFLUW.js → projectConfig-K36NTJXP.js} +6 -6
  206. package/dist/{publication-NFF2BXIE.js → publication-OZWLT6K6.js} +2 -2
  207. package/dist/{publish-JST5Y4UR.js → publish-CRUTXNYM.js} +84 -24
  208. package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
  209. package/dist/{remove-background-WUBESLWN.js → remove-background-R37HZPCG.js} +11 -11
  210. package/dist/{render-R4VNR4E2.js → render-EZMKBT7V.js} +45 -44
  211. package/dist/{render-DA4V7CEE.js → render-SU2XTMJL.js} +5 -5
  212. package/dist/{render-4KWUUC5H.js → render-ZHCPCISN.js} +82 -948
  213. package/dist/{render-batch-JMPG4RLT.js → render-batch-YIUOEAAL.js} +5 -5
  214. package/dist/renderSetupWorker.js +2 -2
  215. package/dist/{resolver-PNIFIDIE.js → resolver-DLCKRKQR.js} +4 -4
  216. package/dist/{reverse-4NI7D2C3.js → reverse-4FAVXIER.js} +1 -1
  217. package/dist/{run-FWBIBLYE.js → run-H4GVEJVS.js} +5 -4
  218. package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-CQF5FYVI.js} +9 -9
  219. package/dist/service-XDQOULGD.js +68 -0
  220. package/dist/share-CUCQALE7.js +274 -0
  221. package/dist/{sherpa-W3BMN67E.js → sherpa-WZNRQUVC.js} +12 -12
  222. package/dist/skills/hyperframes-cli/SKILL.md +3 -3
  223. package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
  224. package/dist/{skills-KQQVUFGO.js → skills-J52DBZAK.js} +10 -10
  225. package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
  226. package/dist/{snapshot-VIEJQAUB.js → snapshot-ZIRQFDA7.js} +50 -50
  227. package/dist/{src-MQU5F7GJ.js → src-7BGBN6SS.js} +11 -11
  228. package/dist/{src-HHPRCLEW.js → src-C3XYMTF4.js} +6 -6
  229. package/dist/{start-ZBNNVFMU.js → start-QG2XNMYN.js} +25 -24
  230. package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-TWMEFK3T.js} +18 -18
  231. package/dist/{status-RBZJYT7T.js → status-3UPA5WPI.js} +19 -17
  232. package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-qz1-OXLj.js} +1 -1
  233. package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-2eG1zFX5.js} +1 -1
  234. package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
  235. package/dist/studio/assets/{index-D1l7izdf.js → index-DDmhnfrS.js} +166 -166
  236. package/dist/studio/assets/{index-DFRbcd5J.js → index-DUveJ_YP.js} +1 -1
  237. package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
  238. package/dist/studio/index.html +2 -2
  239. package/dist/{studio-api-EPZGLIWW.js → studio-api-Z42OO4JJ.js} +13 -13
  240. package/dist/{studioServer-YFQQ2ESJ.js → studioServer-SMN3RMVL.js} +437 -59
  241. package/dist/{sync-FRT55PVW.js → sync-ONTI2WSI.js} +13 -13
  242. package/dist/{telemetry-HAPPFR7P.js → telemetry-RRXALB5D.js} +7 -7
  243. package/dist/{templates-2IHYIWMA.js → templates-BHFOSD6F.js} +18 -17
  244. package/dist/{timeline-AY2F7BJF.js → timeline-Z5IHY5TN.js} +20 -20
  245. package/dist/{tokens-B3G257V3.js → tokens-MZVEPARM.js} +2 -2
  246. package/dist/{transcribe-RJCILGPA.js → transcribe-5IZS4BGW.js} +29 -28
  247. package/dist/{transcribe-EGQD32PT.js → transcribe-M5N3YZZU.js} +10 -10
  248. package/dist/{update-XTFIGQKW.js → update-EVPWBIKY.js} +11 -11
  249. package/dist/{updateCheck-M6YC52A4.js → updateCheck-2UUEF6TC.js} +5 -3
  250. package/dist/{upgrade-AKLIZKAO.js → upgrade-DK45FD4K.js} +4 -4
  251. package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-3MPHIDSA.js} +6 -6
  252. package/dist/{validate-YWSXJL54.js → validate-W27TQ367.js} +28 -28
  253. package/dist/{video-I5DDNK3Y.js → video-TI372QGV.js} +8 -8
  254. package/dist/{voices-IBMJU73H.js → voices-FZV4PGT6.js} +24 -23
  255. package/dist/warmCheck.js +44 -44
  256. package/package.json +2 -1
@@ -16,12 +16,12 @@ import {
16
16
  Semaphore,
17
17
  prepareHeifImageInputs,
18
18
  withMediaProbeSlot
19
- } from "./chunk-RCRUWNQ4.js";
19
+ } from "./chunk-T3GSTIBS.js";
20
20
  import {
21
21
  EncoderInterruptedError,
22
22
  encoderFailureError,
23
23
  prepareAnimatedGifInputs
24
- } from "./chunk-X6DWLN55.js";
24
+ } from "./chunk-L6BFXQ6S.js";
25
25
  import {
26
26
  openRangeEnd,
27
27
  parseEncoderOptions
@@ -187,9 +187,10 @@ import {
187
187
  videoAudioId,
188
188
  videoStartOnMediaTimeline,
189
189
  writeCapturedFrame
190
- } from "./chunk-EJPWGGPK.js";
190
+ } from "./chunk-2TBW7UOF.js";
191
191
  import {
192
192
  assignBundledRuntimeCompositionIds,
193
+ boundMediaSrc,
193
194
  emitMountedModuleScripts,
194
195
  emitRootCompositionVariableStyles,
195
196
  ensureExternalLinkTag,
@@ -199,7 +200,7 @@ import {
199
200
  parsesAsScript,
200
201
  prepareFlattenedInnerRoot,
201
202
  stripSdrPngColourTags
202
- } from "./chunk-YIE5FU73.js";
203
+ } from "./chunk-KIAY63AB.js";
203
204
  import {
204
205
  collectScratchLeftovers,
205
206
  createStagingDir,
@@ -228,7 +229,7 @@ import {
228
229
  redactTelemetryString,
229
230
  resolveAuthoredTimingWindow,
230
231
  toFps
231
- } from "./chunk-3367VNGK.js";
232
+ } from "./chunk-EX7WPDFA.js";
232
233
  import {
233
234
  COMPOSITION_SOURCE_URL,
234
235
  HF_COLOR_GRADING_ATTR,
@@ -263,20 +264,22 @@ import {
263
264
  sourceTimeAt,
264
265
  styleElementsFor,
265
266
  timeAtSourceTime
266
- } from "./chunk-YAZQBB2S.js";
267
+ } from "./chunk-XDDBSGBD.js";
267
268
  import {
268
269
  chromeMajorCeiling
269
270
  } from "./chunk-WE42NVH7.js";
270
271
  import {
271
272
  lintHyperframeHtml,
272
273
  resolveReferencedStart
273
- } from "./chunk-VB3JZKMN.js";
274
+ } from "./chunk-CNJLBAKM.js";
274
275
  import {
275
276
  isUnresolvedAssetPlaceholder,
277
+ namesAnotherNetworkRoot,
276
278
  readProjectFile,
277
279
  readTextFile,
280
+ resolveCompositionSrc,
278
281
  resolveProjectRelativeSrc
279
- } from "./chunk-WVRAFHJU.js";
282
+ } from "./chunk-K2Z6OXEI.js";
280
283
  import {
281
284
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
282
285
  getCgroupMemoryLimitMb,
@@ -316,7 +319,7 @@ import {
316
319
 
317
320
  // ../producer/src/services/renderOrchestrator.ts
318
321
  import {
319
- existsSync as existsSync21,
322
+ existsSync as existsSync20,
320
323
  mkdirSync as mkdirSync10,
321
324
  readdirSync as readdirSync6,
322
325
  rmSync as rmSync10,
@@ -460,7 +463,9 @@ function createConsoleLogger(level = "info") {
460
463
  }
461
464
  };
462
465
  }
463
- var defaultLogger = createConsoleLogger("info");
466
+ var defaultLogger = createConsoleLogger(
467
+ process.env.HF_DEBUG_RENDER === "1" ? "debug" : "info"
468
+ );
464
469
 
465
470
  // ../producer/src/services/fileServer.ts
466
471
  var readFileAsync = promisify(readFile);
@@ -1258,7 +1263,7 @@ function assertChromaSubsamplingSdr(config, hasHdrContent) {
1258
1263
  import {
1259
1264
  copyFileSync,
1260
1265
  cpSync,
1261
- existsSync as existsSync4,
1266
+ existsSync as existsSync3,
1262
1267
  mkdirSync,
1263
1268
  rmSync,
1264
1269
  symlinkSync,
@@ -1274,7 +1279,6 @@ import {
1274
1279
  relative as nodeRelative,
1275
1280
  isAbsolute as nodeIsAbsolute
1276
1281
  } from "path";
1277
- import { existsSync as existsSync3 } from "fs";
1278
1282
  import { fileURLToPath as fileURLToPath2 } from "url";
1279
1283
  var DEFAULT_RENDERS_DIR = process.env.PRODUCER_RENDERS_DIR ?? // fileURLToPath (not URL.pathname): on Windows .pathname is "/D:/..." which
1280
1284
  // resolves to a bogus renders dir.
@@ -1313,13 +1317,6 @@ function resolveRenderPaths(projectDir, outputPath, rendersDir = DEFAULT_RENDERS
1313
1317
  const absoluteOutputPath = nodeResolve(resolvedOutputPath);
1314
1318
  return { absoluteProjectDir, absoluteOutputPath };
1315
1319
  }
1316
- function resolveCompositionSrc(projectDir, src) {
1317
- const rooted = (value) => nodeResolve(projectDir, value.replace(/^(?:\.?[\\/])+/, ""));
1318
- const decoded = rooted(decodedUrlPath(src));
1319
- if (!isPathInside2(decoded, projectDir)) return null;
1320
- const raw = rooted(src);
1321
- return !existsSync3(decoded) && isPathInside2(raw, projectDir) && existsSync3(raw) ? raw : decoded;
1322
- }
1323
1320
 
1324
1321
  // ../producer/src/services/render/shared.ts
1325
1322
  var BROWSER_MEDIA_EPSILON = 1e-4;
@@ -1494,6 +1491,13 @@ var workerPhasesByJob = /* @__PURE__ */ new WeakMap();
1494
1491
  function forgetWorkerPhases(job) {
1495
1492
  workerPhasesByJob.delete(job);
1496
1493
  }
1494
+ var staticDedupActivityByJob = /* @__PURE__ */ new WeakMap();
1495
+ function noteStaticDedupActivity(job) {
1496
+ staticDedupActivityByJob.set(job, (staticDedupActivityByJob.get(job) ?? 0) + 1);
1497
+ }
1498
+ function staticDedupActivity(job) {
1499
+ return staticDedupActivityByJob.get(job) ?? 0;
1500
+ }
1497
1501
  function describeWorkerPhases(job) {
1498
1502
  const phases = workerPhasesByJob.get(job);
1499
1503
  if (!phases?.size) return void 0;
@@ -1527,7 +1531,7 @@ var materializePathModule = {
1527
1531
  isAbsolute
1528
1532
  };
1529
1533
  var materializeFileSystem = {
1530
- existsSync: existsSync4,
1534
+ existsSync: existsSync3,
1531
1535
  mkdirSync,
1532
1536
  symlinkSync,
1533
1537
  cpSync,
@@ -1807,12 +1811,12 @@ var RenderExecutionContext = class {
1807
1811
  };
1808
1812
 
1809
1813
  // ../producer/src/services/render/artifactTransaction.ts
1810
- import { closeSync as closeSync2, existsSync as existsSync6, fstatSync as fstatSync2, openSync as openSync2, readSync, readdirSync as readdirSync2, rmSync as rmSync3 } from "fs";
1814
+ import { closeSync as closeSync2, existsSync as existsSync5, fstatSync as fstatSync2, openSync as openSync2, readSync, readdirSync as readdirSync2, rmSync as rmSync3 } from "fs";
1811
1815
  import { basename as basename4, dirname as dirname4, extname as extname2, join as join5, resolve as resolve4 } from "path";
1812
1816
 
1813
1817
  // ../producer/src/services/render/renderDirOwner.ts
1814
1818
  import {
1815
- existsSync as existsSync5,
1819
+ existsSync as existsSync4,
1816
1820
  lstatSync,
1817
1821
  readFileSync as readFileSync2,
1818
1822
  readdirSync,
@@ -1886,7 +1890,7 @@ function newestWriteMs(path) {
1886
1890
  }
1887
1891
  function isAbandoned(dir, ownerlessIdleMs, now) {
1888
1892
  try {
1889
- if (!lstatSync(dir).isDirectory() || existsSync5(join4(dir, TRANSACTION_BACKUP))) return false;
1893
+ if (!lstatSync(dir).isDirectory() || existsSync4(join4(dir, TRANSACTION_BACKUP))) return false;
1890
1894
  const owner = ownerState(dir);
1891
1895
  if (owner === "gone") return true;
1892
1896
  return owner === "none" && ownerlessIdleMs !== void 0 && now - newestWriteMs(dir) >= ownerlessIdleMs;
@@ -1918,7 +1922,7 @@ function createRenderWorkDir(prefix, outputDir) {
1918
1922
 
1919
1923
  // ../producer/src/services/render/artifactTransaction.ts
1920
1924
  var defaultFileSystem = {
1921
- existsSync: existsSync6,
1925
+ existsSync: existsSync5,
1922
1926
  renameSync: (source, destination) => renameWithRetry(source, destination),
1923
1927
  rmSync: rmSync3
1924
1928
  };
@@ -2072,7 +2076,7 @@ var ArtifactTransaction = class {
2072
2076
  async assertDirectoryExpectation(expected, files) {
2073
2077
  for (const required of expected.requiredFiles ?? []) {
2074
2078
  const path = join5(this.stagingPath, required);
2075
- if (!existsSync6(path)) {
2079
+ if (!existsSync5(path)) {
2076
2080
  throw new Error(`Render artifact directory is missing ${required}: ${this.stagingPath}`);
2077
2081
  }
2078
2082
  assertReadableNonEmptyFile(path);
@@ -2321,7 +2325,7 @@ function replanAfterFailure(plan2, failure) {
2321
2325
  }
2322
2326
 
2323
2327
  // ../producer/src/services/render/stages/captureSegmentedStage.ts
2324
- import { existsSync as existsSync7, mkdirSync as mkdirSync3, rmSync as rmSync6, statSync as statSync3 } from "fs";
2328
+ import { existsSync as existsSync6, mkdirSync as mkdirSync3, rmSync as rmSync6, statSync as statSync3 } from "fs";
2325
2329
  import { join as join9 } from "path";
2326
2330
 
2327
2331
  // ../producer/src/services/render/perfSummary.ts
@@ -4591,7 +4595,7 @@ async function runCaptureStreamingStage(input) {
4591
4595
  const session = probeSession ?? await openSession();
4592
4596
  captureBeyondViewport = session.options.captureBeyondViewport;
4593
4597
  if (probeSession) {
4594
- prepareCaptureSessionForReuse(session, framesDir, videoInjector);
4598
+ await prepareCaptureSessionForReuse(session, framesDir, videoInjector);
4595
4599
  probeSession = null;
4596
4600
  }
4597
4601
  let riskSession = null;
@@ -4849,7 +4853,7 @@ async function captureSegmentToEncoder(ctx, segment) {
4849
4853
  path: segmentPath,
4850
4854
  // Recorded so resume can prove the file on disk is the one that
4851
4855
  // finished; absent only in unit tests, whose fake encoder writes none.
4852
- bytes: existsSync7(segmentPath) ? statSync3(segmentPath).size : 0
4856
+ bytes: existsSync6(segmentPath) ? statSync3(segmentPath).size : 0
4853
4857
  });
4854
4858
  return encodeResult;
4855
4859
  } finally {
@@ -4896,8 +4900,13 @@ function defaultSessionFactory(input) {
4896
4900
  };
4897
4901
  const session = probeSession ?? await openSession();
4898
4902
  if (probeSession) {
4899
- openSegmentedSessionReuse(input, probeSession, injector);
4903
+ const reused = probeSession;
4900
4904
  probeSession = null;
4905
+ await openSegmentedSessionReuse(input, reused, injector).catch(async (error) => {
4906
+ await closeCaptureSession(reused).catch(() => {
4907
+ });
4908
+ throw error;
4909
+ });
4901
4910
  }
4902
4911
  try {
4903
4912
  if (!session.isInitialized) await withinInitBudget(initializeSession(session), session);
@@ -4911,8 +4920,8 @@ function defaultSessionFactory(input) {
4911
4920
  }
4912
4921
  };
4913
4922
  }
4914
- function openSegmentedSessionReuse(input, session, injector) {
4915
- prepareCaptureSessionForReuse(session, input.framesDir, injector());
4923
+ async function openSegmentedSessionReuse(input, session, injector) {
4924
+ await prepareCaptureSessionForReuse(session, input.framesDir, injector());
4916
4925
  }
4917
4926
  async function openSegmentedSession(input, injector) {
4918
4927
  const captureCfg = input.cfg.forceScreenshot === input.plan.forceScreenshot ? input.cfg : { ...input.cfg, forceScreenshot: input.plan.forceScreenshot };
@@ -5831,7 +5840,7 @@ function trackSegmentFramePeak(frames, rootDir, onPeak) {
5831
5840
 
5832
5841
  // ../producer/src/services/render/segmentManifest.ts
5833
5842
  import { createHash as createHash2 } from "crypto";
5834
- import { existsSync as existsSync8, mkdirSync as mkdirSync6, readFileSync as readFileSync4, statSync as statSync5, writeFileSync as writeFileSync3 } from "fs";
5843
+ import { existsSync as existsSync7, mkdirSync as mkdirSync6, readFileSync as readFileSync4, statSync as statSync5, writeFileSync as writeFileSync3 } from "fs";
5835
5844
  import { join as join14 } from "path";
5836
5845
  var MANIFEST_FILENAME = "segments.json";
5837
5846
  function computeSegmentPlanHash(input) {
@@ -5878,7 +5887,7 @@ function isManifest(value) {
5878
5887
  }
5879
5888
  function readSegmentManifest(segmentDir) {
5880
5889
  const path = join14(segmentDir, MANIFEST_FILENAME);
5881
- if (!existsSync8(path)) return null;
5890
+ if (!existsSync7(path)) return null;
5882
5891
  try {
5883
5892
  const parsed = JSON.parse(readFileSync4(path, "utf-8"));
5884
5893
  return isManifest(parsed) ? parsed : null;
@@ -5907,7 +5916,7 @@ async function validateCompletedSegments(manifest, expectedHash, probeFrames) {
5907
5916
  const ok = /* @__PURE__ */ new Set();
5908
5917
  if (manifest.planHash !== expectedHash) return ok;
5909
5918
  for (const entry of manifest.completed) {
5910
- if (!existsSync8(entry.path)) continue;
5919
+ if (!existsSync7(entry.path)) continue;
5911
5920
  const size = statSync5(entry.path).size;
5912
5921
  if (size <= 0 || size !== entry.bytes) continue;
5913
5922
  const frames = await probeFrames(entry.path);
@@ -6265,26 +6274,26 @@ var STALL_POLL_MS = 5e3;
6265
6274
  function watchStall(phase, rule) {
6266
6275
  const detail = rule.detail ?? (() => void 0);
6267
6276
  let last = rule.progress();
6277
+ let lastActivity = rule.activity?.();
6268
6278
  let budgetMs = rule.firstProgressMs;
6269
6279
  const silence = createStallClock();
6270
6280
  const pollMs = Math.min(STALL_POLL_MS, rule.noProgressMs, rule.firstProgressMs);
6271
6281
  let attempt;
6272
6282
  let timer;
6273
6283
  let inTail = false;
6284
+ const activityMoved = () => {
6285
+ const activity = rule.activity?.();
6286
+ if (activity === lastActivity) return false;
6287
+ lastActivity = activity;
6288
+ return true;
6289
+ };
6274
6290
  const restartWindow = (ms) => {
6275
6291
  last = rule.progress();
6276
6292
  budgetMs = ms;
6277
6293
  silence.reset();
6278
6294
  };
6279
6295
  const tripped = new Promise((_, reject) => {
6280
- timer = setInterval(() => {
6281
- const current = rule.progress();
6282
- if (rule.complete?.() && !inTail) {
6283
- inTail = true;
6284
- return restartWindow(rule.tailMs ?? rule.noProgressMs);
6285
- }
6286
- if (current !== last) return restartWindow(rule.noProgressMs);
6287
- if (silence.idle(pollMs) < budgetMs) return;
6296
+ const trip = (current) => {
6288
6297
  const error = new RenderStageStalledError(phase, budgetMs, current, detail());
6289
6298
  if (attempt && !attempt.signal.aborted) {
6290
6299
  attempt.abort(error);
@@ -6292,6 +6301,16 @@ function watchStall(phase, rule) {
6292
6301
  }
6293
6302
  clearInterval(timer);
6294
6303
  reject(error);
6304
+ };
6305
+ timer = setInterval(() => {
6306
+ const current = rule.progress();
6307
+ if (rule.complete?.() && !inTail) {
6308
+ inTail = true;
6309
+ return restartWindow(rule.tailMs ?? rule.noProgressMs);
6310
+ }
6311
+ if (current !== last) return restartWindow(rule.noProgressMs);
6312
+ if (activityMoved()) return silence.reset();
6313
+ if (silence.idle(pollMs) >= budgetMs) trip(current);
6295
6314
  }, pollMs);
6296
6315
  });
6297
6316
  const openAttempt = (parent) => {
@@ -6465,23 +6484,23 @@ function countAuthoredTimedClips(html) {
6465
6484
  }
6466
6485
 
6467
6486
  // ../producer/src/services/render/stages/compileStage.ts
6468
- import { existsSync as existsSync12, writeFileSync as writeFileSync4 } from "fs";
6487
+ import { existsSync as existsSync11, writeFileSync as writeFileSync4 } from "fs";
6469
6488
  import { join as join17 } from "path";
6470
6489
 
6471
6490
  // ../producer/src/services/htmlCompiler.ts
6472
6491
  import { createHash as createHash4 } from "crypto";
6473
- import { createReadStream as createReadStream2, existsSync as existsSync11, mkdirSync as mkdirSync7, readFileSync as readFileSync6 } from "fs";
6492
+ import { createReadStream as createReadStream2, existsSync as existsSync10, mkdirSync as mkdirSync7, readFileSync as readFileSync6 } from "fs";
6474
6493
  import { join as join16, dirname as dirname6, resolve as resolve5, basename as basename5, relative as relative2, sep as sep2 } from "path";
6475
6494
 
6476
6495
  // ../producer/src/services/bundledScripts.ts
6477
- import { existsSync as existsSync9, readFileSync as readFileSync5 } from "fs";
6496
+ import { existsSync as existsSync8, readFileSync as readFileSync5 } from "fs";
6478
6497
  import { join as join15 } from "path";
6479
6498
  var GSAP_VENDOR_DIR_ENV = "HYPERFRAMES_GSAP_VENDOR_DIR";
6480
6499
  function bundledScript(url) {
6481
6500
  const dir = process.env[GSAP_VENDOR_DIR_ENV];
6482
6501
  if (!dir || url !== `${gsapCdnDist()}gsap.min.js`) return null;
6483
6502
  const file = join15(dir, "gsap.min.js");
6484
- return existsSync9(file) ? readFileSync5(file) : null;
6503
+ return existsSync8(file) ? readFileSync5(file) : null;
6485
6504
  }
6486
6505
 
6487
6506
  // ../producer/src/services/renderMediaCollector.ts
@@ -6631,7 +6650,7 @@ function getPositionEditsRenderScript() {
6631
6650
  }
6632
6651
 
6633
6652
  // ../producer/src/services/assetMediaType.ts
6634
- import { existsSync as existsSync10 } from "fs";
6653
+ import { existsSync as existsSync9 } from "fs";
6635
6654
  var ASSET_MEDIA_TYPE_MISMATCH = "ASSET_MEDIA_TYPE_MISMATCH";
6636
6655
  var AssetMediaTypeMismatchError = class extends Error {
6637
6656
  code = ASSET_MEDIA_TYPE_MISMATCH;
@@ -6697,7 +6716,7 @@ async function preflightCompositionAssetMediaTypes(input) {
6697
6716
  input.projectDir,
6698
6717
  input.compiledDir
6699
6718
  );
6700
- if (!existsSync10(resolvedPath)) continue;
6719
+ if (!existsSync9(resolvedPath)) continue;
6701
6720
  byPath.set(resolvedPath, [...byPath.get(resolvedPath) ?? [], reference]);
6702
6721
  }
6703
6722
  const mismatches = [];
@@ -6737,7 +6756,7 @@ async function preflightCompositionAssetMediaTypes(input) {
6737
6756
 
6738
6757
  // ../producer/src/services/htmlCompiler.ts
6739
6758
  function logRemoteDownloadTelemetry(event) {
6740
- defaultLogger.info("[Compiler] Remote asset download integrity", { ...event });
6759
+ defaultLogger.debug("[Compiler] Remote asset download integrity", { ...event });
6741
6760
  }
6742
6761
  var INFERRED_MEDIA_DURATION_ATTR = "data-hf-inferred-duration";
6743
6762
  function parseSubCompHtmlForValidity(html) {
@@ -6951,7 +6970,7 @@ async function resolveMediaDuration(src, mediaStart, playbackRate, baseDir, down
6951
6970
  let filePath = src;
6952
6971
  if (isHttpUrl(src)) {
6953
6972
  const remoteDir = join16(downloadDir, REMOTE_MEDIA_SUBDIR);
6954
- if (!existsSync11(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
6973
+ if (!existsSync10(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
6955
6974
  try {
6956
6975
  filePath = await downloadToTemp(src, remoteDir, void 0, void 0, void 0, {
6957
6976
  onTelemetry: logRemoteDownloadTelemetry
@@ -6963,8 +6982,11 @@ async function resolveMediaDuration(src, mediaStart, playbackRate, baseDir, down
6963
6982
  filePath = decodedUrlPath(src);
6964
6983
  if (!filePath.startsWith("/")) filePath = join16(baseDir, filePath);
6965
6984
  filePath = urlByAbsentLocalPath?.get(filePath) ?? filePath;
6985
+ if (!isHttpUrl(filePath) && namesAnotherNetworkRoot(baseDir, filePath)) {
6986
+ return { duration: null, resolvedPath: filePath };
6987
+ }
6966
6988
  }
6967
- if (!isHttpUrl(filePath) && !existsSync11(filePath)) {
6989
+ if (!isHttpUrl(filePath) && !existsSync10(filePath)) {
6968
6990
  return { duration: null, resolvedPath: filePath };
6969
6991
  }
6970
6992
  const withSrcContext = (error) => {
@@ -7313,7 +7335,7 @@ function inlineSubCompositions2(html, subCompositions, projectDir, variableOverr
7313
7335
  parseHtml: (htmlStr) => parseHTML(htmlStr).document,
7314
7336
  // Mirrors the preview bundler: a sub-composition's SIBLING assets resolve
7315
7337
  // against its own directory, project-root refs stay as authored.
7316
- assetExists: (path) => existsSync11(resolve5(projectDir, path)),
7338
+ assetExists: (path) => existsSync10(resolve5(projectDir, path)),
7317
7339
  // Preserve the authored root wrapper as a child of the host, matching
7318
7340
  // the preview bundler's shape (htmlBundler.ts's prepareFlattenedInnerRoot,
7319
7341
  // which the runtime compositionLoader mirrors with its own copy for the
@@ -7489,7 +7511,7 @@ ${safeText}
7489
7511
  //# sourceURL=${new URL(src).href}
7490
7512
  `;
7491
7513
  el.replaceWith(inlineScript);
7492
- defaultLogger.info(`[Compiler] Inlined CDN script: ${src}`);
7514
+ defaultLogger.debug(`[Compiler] Inlined CDN script: ${src}`);
7493
7515
  } else {
7494
7516
  if (download.reason instanceof ScriptIntegrityError) throw download.reason;
7495
7517
  defaultLogger.warn(
@@ -7509,7 +7531,7 @@ function collectExternalAssets(html, projectDir) {
7509
7531
  if (isPathInside2(absPath, absProjectDir)) {
7510
7532
  return null;
7511
7533
  }
7512
- if (!existsSync11(absPath)) return null;
7534
+ if (!existsSync10(absPath)) return null;
7513
7535
  const safeKey = toExternalAssetKey(absPath);
7514
7536
  externalAssets.set(safeKey, absPath);
7515
7537
  return safeKey;
@@ -7544,7 +7566,7 @@ function collectExternalAssets(html, projectDir) {
7544
7566
  if (rewritten !== style) el.setAttribute("style", rewritten);
7545
7567
  }
7546
7568
  if (externalAssets.size > 0) {
7547
- defaultLogger.info(
7569
+ defaultLogger.debug(
7548
7570
  `[Compiler] Found ${externalAssets.size} asset(s) outside project directory, will copy to render output`
7549
7571
  );
7550
7572
  }
@@ -7559,7 +7581,7 @@ var REMOTE_SOURCE_TAG_RE = /<source\b[^>]*?\bsrc\s*=\s*["'](https?:\/\/[^"']+)["
7559
7581
  var REMOTE_IMG_TAG_RE = /<img\b[^>]*?(?<![\w-])src\s*=\s*["'](https?:\/\/[^"']+)["'][^>]*>/gi;
7560
7582
  async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLabel, extraRewrite) {
7561
7583
  if (urlSet.size === 0) return { html, remoteMediaAssets: /* @__PURE__ */ new Map() };
7562
- if (!existsSync11(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
7584
+ if (!existsSync10(remoteDir)) mkdirSync7(remoteDir, { recursive: true });
7563
7585
  const urlToLocal = /* @__PURE__ */ new Map();
7564
7586
  await Promise.all(
7565
7587
  [...urlSet].map(async (url) => {
@@ -7591,7 +7613,7 @@ async function downloadAndRewriteUrls(urlSet, html, remoteDir, warnLabel, logLab
7591
7613
  result = result.replaceAll(`"${url}"`, `"${relPath}"`).replaceAll(`'${url}'`, `'${relPath}'`);
7592
7614
  if (extraRewrite) result = extraRewrite(result, url, relPath);
7593
7615
  }
7594
- defaultLogger.info(`[Compiler] ${logLabel} ${urlToLocal.size} to ${REMOTE_MEDIA_SUBDIR}/`);
7616
+ defaultLogger.debug(`[Compiler] ${logLabel} ${urlToLocal.size} to ${REMOTE_MEDIA_SUBDIR}/`);
7595
7617
  return { html: result, remoteMediaAssets };
7596
7618
  }
7597
7619
  async function localizeRemoteMediaSources(html, downloadDir) {
@@ -7728,7 +7750,7 @@ async function inlineExternalFontStylesheets(html) {
7728
7750
  ${fontFaceBlocks.join("\n")}
7729
7751
  </style>`;
7730
7752
  result = result.replace(fullMatch, inlineStyle);
7731
- defaultLogger.info("[Compiler] Inlined external @font-face rule(s)", {
7753
+ defaultLogger.debug("[Compiler] Inlined external @font-face rule(s)", {
7732
7754
  count: fontFaceBlocks.length,
7733
7755
  urlFingerprint: identity.urlFingerprint,
7734
7756
  host: identity.host
@@ -7742,13 +7764,13 @@ function projectStylesheetFontFamilies(html, projectDir) {
7742
7764
  const href = /\bhref=["']([^"']+)["']/i.exec(tag)?.[1];
7743
7765
  if (!href || /^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(href)) continue;
7744
7766
  const sheet = resolve5(projectDir, decodedUrlPath(href).replace(/^(?:\.?\/)+/, ""));
7745
- if (!isPathInside2(sheet, projectDir) || !existsSync11(sheet)) continue;
7767
+ if (!isPathInside2(sheet, projectDir) || !existsSync10(sheet)) continue;
7746
7768
  for (const face of extractFontFaceBlocks(readFileSync6(sheet, "utf8"))) {
7747
7769
  const family = /font-family\s*:\s*([^;}]+)/i.exec(face)?.[1]?.trim().replace(/^['"]|['"]$/g, "");
7748
7770
  const shipsFile = [...face.matchAll(LOCAL_FONTFACE_URL_RE)].some(([, url = ""]) => {
7749
7771
  const path = decodedUrlPath(url);
7750
7772
  const file = path.startsWith("/") ? resolve5(projectDir, `.${path}`) : resolve5(dirname6(sheet), path);
7751
- return isPathInside2(file, projectDir) && existsSync11(file);
7773
+ return isPathInside2(file, projectDir) && existsSync10(file);
7752
7774
  });
7753
7775
  if (family && shipsFile) families.push(family);
7754
7776
  }
@@ -7850,7 +7872,7 @@ async function embedLocalFontFaces(html, projectDir) {
7850
7872
  const font = await readLocalFont(absPath);
7851
7873
  if (font.kind === "file-backed") {
7852
7874
  fileBackedAbsolutePaths.add(absPath);
7853
- defaultLogger.info(
7875
+ defaultLogger.debug(
7854
7876
  `[Compiler] Kept large local font file-backed: ${localPath} (> ${(MAX_LOCAL_FONT_DATA_URI_BYTES / 1024 / 1024).toFixed(1)} MB)`
7855
7877
  );
7856
7878
  embeddedPaths.add(localPath);
@@ -7858,7 +7880,7 @@ async function embedLocalFontFaces(html, projectDir) {
7858
7880
  }
7859
7881
  dataUri = await toDataUri(font.buffer, ext, { compressToWoff2: false });
7860
7882
  dataUriByAbsolutePath.set(absPath, dataUri);
7861
- defaultLogger.info(
7883
+ defaultLogger.debug(
7862
7884
  `[Compiler] Embedded local font file: ${localPath} (${(font.buffer.length / 1024).toFixed(0)} KB \u2192 data URI)`
7863
7885
  );
7864
7886
  }
@@ -7886,14 +7908,17 @@ function renderGsapDist() {
7886
7908
  }
7887
7909
  function rewriteUnresolvableGsapToCdn(html, projectDir, compSrcPath) {
7888
7910
  let gsapDist;
7889
- const exists = (path) => existsSync11(resolve5(projectDir, path));
7911
+ const exists = (path) => {
7912
+ const file = resolve5(projectDir, path);
7913
+ return !namesAnotherNetworkRoot(projectDir, file) && existsSync10(file);
7914
+ };
7890
7915
  return html.replace(
7891
7916
  /(<script\b[^>]*\bsrc=["'])([^"']*gsap[^"']*\/dist\/([^"']+))(["'][^>]*>)/gi,
7892
7917
  (full, prefix, src, file, suffix) => {
7893
7918
  if (/^https?:\/\//i.test(src)) return full;
7894
7919
  if (exists(compSrcPath ? rewriteAssetPath(compSrcPath, src, exists) : src)) return full;
7895
7920
  gsapDist ??= renderGsapDist();
7896
- defaultLogger.info(`[Compiler] Rewriting missing gsap script: ${src} \u2192 ${gsapDist}${file}`);
7921
+ defaultLogger.debug(`[Compiler] Rewriting missing gsap script: ${src} \u2192 ${gsapDist}${file}`);
7897
7922
  return `${prefix}${gsapDist}${file}${suffix}`;
7898
7923
  }
7899
7924
  );
@@ -7903,7 +7928,7 @@ function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
7903
7928
  const entryPath = relative2(projectDir, htmlPath).replace(/\\/g, "/");
7904
7929
  if (!entryPath.includes("/")) return html;
7905
7930
  const { document: document2 } = parseHTML(html);
7906
- const assetExists = (path) => existsSync11(resolve5(projectDir, path));
7931
+ const assetExists = (path) => existsSync10(resolve5(projectDir, path));
7907
7932
  rewriteAssetPaths(
7908
7933
  document2.querySelectorAll("[src], [href], [srcset]"),
7909
7934
  entryPath,
@@ -7923,11 +7948,29 @@ function rebaseDirectEntryAssetPaths(html, projectDir, htmlPath) {
7923
7948
  }
7924
7949
  return document2.toString();
7925
7950
  }
7951
+ function bindVariableMediaSources(html, variables) {
7952
+ if (!html.includes("data-var-src")) return html;
7953
+ const { document: document2 } = parseHTML(html);
7954
+ const declared = {};
7955
+ for (const el of document2.querySelectorAll("[data-composition-variables]")) {
7956
+ Object.assign(declared, readDeclaredDefaults(el));
7957
+ }
7958
+ const values = { ...declared, ...variables };
7959
+ let changed = false;
7960
+ for (const el of document2.querySelectorAll("video[data-var-src], audio[data-var-src]")) {
7961
+ if (el.closest("[data-variable-values]")) continue;
7962
+ const src = boundMediaSrc(el, values);
7963
+ if (src === null || el.getAttribute("src") === src) continue;
7964
+ el.setAttribute("src", src);
7965
+ changed = true;
7966
+ }
7967
+ return changed ? document2.toString() : html;
7968
+ }
7926
7969
  async function compileForRender(projectDir, htmlPath, downloadDir, options = {}) {
7927
7970
  const entryHtml = rebaseDirectEntryAssetPaths(readTextFile(htmlPath), projectDir, htmlPath);
7928
- const rawHtml = normalizeCompositionSrcs(
7929
- rewriteUnresolvableGsapToCdn(entryHtml, projectDir),
7930
- projectDir
7971
+ const rawHtml = bindVariableMediaSources(
7972
+ normalizeCompositionSrcs(rewriteUnresolvableGsapToCdn(entryHtml, projectDir), projectDir),
7973
+ options.variables ?? {}
7931
7974
  );
7932
7975
  assertSubCompositionsUsable(rawHtml, projectDir);
7933
7976
  const probes = /* @__PURE__ */ new Map();
@@ -8011,7 +8054,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8011
8054
  timeoutMs: options.ffmpegProcessTimeout
8012
8055
  });
8013
8056
  if (preparedHeifImages.length > 0) {
8014
- defaultLogger.info(`[Compiler] Converted ${preparedHeifImages.length} HEIC image(s) to JPEG`);
8057
+ defaultLogger.debug(`[Compiler] Converted ${preparedHeifImages.length} HEIC image(s) to JPEG`);
8015
8058
  }
8016
8059
  const gifSourceAssets = new Map(remoteImageAssets);
8017
8060
  const {
@@ -8026,7 +8069,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8026
8069
  timeoutMs: options.ffmpegProcessTimeout
8027
8070
  });
8028
8071
  if (preparedGifs.length > 0) {
8029
- defaultLogger.info(`[Compiler] Prepared ${preparedGifs.length} animated GIF input(s) as WebM`);
8072
+ defaultLogger.debug(`[Compiler] Prepared ${preparedGifs.length} animated GIF input(s) as WebM`);
8030
8073
  }
8031
8074
  const embeddedHtml = await embedLocalFontFaces(htmlWithPreparedGifs, projectDir);
8032
8075
  const { html, externalAssets } = collectExternalAssets(embeddedHtml, projectDir);
@@ -8054,7 +8097,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
8054
8097
  for (const video of videos) {
8055
8098
  if (isHttpUrl(video.src)) continue;
8056
8099
  const videoPath = resolve5(projectDir, video.src);
8057
- if (advised.has(videoPath)) continue;
8100
+ if (advised.has(videoPath) || namesAnotherNetworkRoot(projectDir, videoPath)) continue;
8058
8101
  advised.add(videoPath);
8059
8102
  const reencode = `ffmpeg -i "${video.src}" -c:v libx264 -r 30 -g 30 -keyint_min 30 -movflags +faststart -c:a copy output.mp4`;
8060
8103
  (async () => {
@@ -8473,7 +8516,7 @@ function resolveEntryHtmlPath(input) {
8473
8516
  const rawEntry = readTextFile(htmlPath);
8474
8517
  if (entryFile === "index.html" || !isTemplateEntry(rawEntry)) return htmlPath;
8475
8518
  const projectIndexPath = join17(projectDir, "index.html");
8476
- if (!existsSync12(projectIndexPath)) {
8519
+ if (!existsSync11(projectIndexPath)) {
8477
8520
  throw new Error(
8478
8521
  `Template entry file "${entryFile}" requires a project index.html to extract its render shell.`
8479
8522
  );
@@ -8782,7 +8825,8 @@ async function runProbeStage(input) {
8782
8825
  height,
8783
8826
  needsAlpha,
8784
8827
  deviceScaleFactor,
8785
- subTimelineWaitMemo
8828
+ subTimelineWaitMemo,
8829
+ staticDedupMemo
8786
8830
  } = input;
8787
8831
  let { compiled } = input;
8788
8832
  const probeCfg = cfg.forceScreenshot === forceScreenshot ? cfg : { ...cfg, forceScreenshot };
@@ -8843,7 +8887,11 @@ async function runProbeStage(input) {
8843
8887
  motionBlur,
8844
8888
  pageMotionBlur: job.config.pageMotionBlur,
8845
8889
  requiresWebGpu: compositionRequiresWebGpu(compiled.html),
8846
- subTimelineWaitMemo
8890
+ subTimelineWaitMemo,
8891
+ staticDedupMemo,
8892
+ compositionHash: computeCompositionObservabilityHash(compiled.html),
8893
+ deferStaticDedup: true,
8894
+ onStaticDedupActivity: () => noteStaticDedupActivity(job)
8847
8895
  };
8848
8896
  const PROBE_MAX_ATTEMPTS = 2;
8849
8897
  for (let attempt = 1; attempt <= PROBE_MAX_ATTEMPTS; attempt++) {
@@ -9323,7 +9371,7 @@ function validateDistributedDuration(input) {
9323
9371
  }
9324
9372
 
9325
9373
  // ../producer/src/services/render/stages/extractVideosStage.ts
9326
- import { existsSync as existsSync13 } from "fs";
9374
+ import { existsSync as existsSync12 } from "fs";
9327
9375
  import { join as join19 } from "path";
9328
9376
 
9329
9377
  // ../producer/src/services/render/extractionFailureMetadata.ts
@@ -9580,7 +9628,7 @@ async function runExtractVideosStage(input) {
9580
9628
  const probeFailures = await Promise.all(
9581
9629
  composition.videos.map(async (v) => {
9582
9630
  const videoPath = resolveProjectRelativeSrc(v.src, projectDir, compiledDir);
9583
- if (!existsSync13(videoPath)) return null;
9631
+ if (!existsSync12(videoPath)) return null;
9584
9632
  try {
9585
9633
  const attempted = extractionPolicy.maxTransientRetries === 0 ? { result: await extractMediaMetadata(videoPath), retries: 0 } : await runVideoExtractionWithRetry(() => extractMediaMetadata(videoPath), {
9586
9634
  signal: abortSignal,
@@ -9618,7 +9666,7 @@ async function runExtractVideosStage(input) {
9618
9666
  const probed = await Promise.all(
9619
9667
  composition.images.map(async (img) => {
9620
9668
  const imgPath = resolveProjectRelativeSrc(img.src, projectDir, compiledDir);
9621
- if (!existsSync13(imgPath)) return null;
9669
+ if (!existsSync12(imgPath)) return null;
9622
9670
  const colorSpace = await probeColorSpaceSafely(imgPath, log);
9623
9671
  if (isHdrColorSpace(colorSpace)) {
9624
9672
  nativeHdrImageIds.add(img.id);
@@ -9738,7 +9786,7 @@ async function appendVideoAudioFromProbe(input) {
9738
9786
  videos.map(async (video) => {
9739
9787
  const path = isHttpUrl(video.src) ? video.src : resolveProjectRelativeSrc(video.src, projectDir, compiledDir);
9740
9788
  const readFrom = urlByAbsentLocalPath?.get(path) ?? path;
9741
- if (!isHttpUrl(readFrom) && !existsSync13(readFrom)) return null;
9789
+ if (!isHttpUrl(readFrom) && !existsSync12(readFrom)) return null;
9742
9790
  const metadata = await extractMediaMetadata(readFrom);
9743
9791
  const window2 = await resolveFinalFrameExtractionWindow(
9744
9792
  readFrom,
@@ -9758,7 +9806,7 @@ async function appendVideoAudioFromProbe(input) {
9758
9806
  }
9759
9807
 
9760
9808
  // ../producer/src/services/render/videoLayerPassthroughPlan.ts
9761
- import { existsSync as existsSync14 } from "fs";
9809
+ import { existsSync as existsSync13 } from "fs";
9762
9810
  var SAMPLES = 9;
9763
9811
  function inspectVideoLayout(id, w, h, time) {
9764
9812
  window.__hf?.seek?.(time);
@@ -9820,7 +9868,7 @@ async function planVideoLayerPassthrough(input) {
9820
9868
  const { video } = q;
9821
9869
  if (isHttpUrl(video.src)) return { reason: "remote_source" };
9822
9870
  const path = resolveProjectRelativeSrc(video.src, input.projectDir, input.compiledDir);
9823
- if (!existsSync14(path)) return { reason: "source_missing" };
9871
+ if (!existsSync13(path)) return { reason: "source_missing" };
9824
9872
  const layout = await probeVideoLayout(input.page, video.id, input.canvas, input.duration);
9825
9873
  if ("reason" in layout) return layout;
9826
9874
  const layer = await buildVideoLayerInput(
@@ -9835,11 +9883,11 @@ async function planVideoLayerPassthrough(input) {
9835
9883
  }
9836
9884
 
9837
9885
  // ../producer/src/services/render/stages/audioStage.ts
9838
- import { existsSync as existsSync16 } from "fs";
9886
+ import { existsSync as existsSync15 } from "fs";
9839
9887
  import { join as join22 } from "path";
9840
9888
 
9841
9889
  // ../producer/src/services/render/audioDeliveryLimit.ts
9842
- import { existsSync as existsSync15 } from "fs";
9890
+ import { existsSync as existsSync14 } from "fs";
9843
9891
  import { dirname as dirname8, join as join21 } from "path";
9844
9892
 
9845
9893
  // ../producer/src/services/render/audioPadTrim.ts
@@ -10322,7 +10370,7 @@ async function limitDeliveryPeaks(input, deps = {
10322
10370
  applyChain: applyAudioFxChain,
10323
10371
  encode: encodeAac,
10324
10372
  rename: renameWithRetry,
10325
- sourceExists: existsSync15
10373
+ sourceExists: existsSync14
10326
10374
  }) {
10327
10375
  const { audioPath, sourcePath, signal, timeoutMs } = input;
10328
10376
  if (!deps.sourceExists(sourcePath)) return { success: true };
@@ -10417,7 +10465,7 @@ async function runAudioStageScoped(input) {
10417
10465
  );
10418
10466
  audioLoweredDb = guard.loweredDb;
10419
10467
  input.log?.info("[audio] phases", { ...result.audioPhaseMs, guard: Date.now() - guardStart });
10420
- if (input.keepDeliverySource && !guard.sourceStale && existsSync16(pcmSourcePath)) {
10468
+ if (input.keepDeliverySource && !guard.sourceStale && existsSync15(pcmSourcePath)) {
10421
10469
  deliverySourcePath = pcmSourcePath;
10422
10470
  }
10423
10471
  }
@@ -10545,7 +10593,7 @@ async function mixAudioForDelivery(input, duration, pcmSourcePath) {
10545
10593
  }
10546
10594
 
10547
10595
  // ../producer/src/services/render/stages/captureStage.ts
10548
- import { existsSync as existsSync17, readdirSync as readdirSync4, statfsSync as statfsSync2 } from "fs";
10596
+ import { existsSync as existsSync16, readdirSync as readdirSync4, statfsSync as statfsSync2 } from "fs";
10549
10597
  import { join as join23 } from "path";
10550
10598
  function shouldAllowAdaptiveCaptureRetry(workerCount, _explicitlyConfigured) {
10551
10599
  return workerCount > 1;
@@ -10602,7 +10650,7 @@ function diskCaptureShortfallError(needBytes, freeBytes, framesDir, basis, remed
10602
10650
  }
10603
10651
  function measureCaptureFrameBytes(workDir, framesDir) {
10604
10652
  let total = sampleDirectoryBytes(framesDir);
10605
- if (!existsSync17(workDir)) return total;
10653
+ if (!existsSync16(workDir)) return total;
10606
10654
  for (const attempt of readdirSync4(workDir)) {
10607
10655
  if (/^retry-\d+-batch-\d+-worker-\d+$/.test(attempt)) {
10608
10656
  total += sampleDirectoryBytes(join23(workDir, attempt));
@@ -10784,7 +10832,7 @@ async function runSequentialDiskCapture(input, captureOptions, captureCfg, check
10784
10832
  captureBeyondViewport = session.options.captureBeyondViewport;
10785
10833
  try {
10786
10834
  if (probeSession) {
10787
- prepareCaptureSessionForReuse(session, framesDir, videoInjector);
10835
+ await prepareCaptureSessionForReuse(session, framesDir, videoInjector);
10788
10836
  probeSession = null;
10789
10837
  }
10790
10838
  await ensureSessionReady(session, {
@@ -10909,7 +10957,7 @@ async function captureSessionFrames(session, { input, rangeStart, rangeEnd, resu
10909
10957
  }
10910
10958
 
10911
10959
  // ../producer/src/services/render/stages/captureHdrStage.ts
10912
- import { existsSync as existsSync19, mkdirSync as mkdirSync8 } from "fs";
10960
+ import { existsSync as existsSync18, mkdirSync as mkdirSync8 } from "fs";
10913
10961
  import { join as join27 } from "path";
10914
10962
 
10915
10963
  // ../producer/src/services/hdrImageTransferCache.ts
@@ -11132,7 +11180,7 @@ import { Worker } from "worker_threads";
11132
11180
  import { fileURLToPath as fileURLToPath3, pathToFileURL } from "url";
11133
11181
  import { dirname as dirname9, join as join25 } from "path";
11134
11182
  import { createRequire } from "module";
11135
- import { existsSync as existsSync18 } from "fs";
11183
+ import { existsSync as existsSync17 } from "fs";
11136
11184
  import { cpus as cpus2 } from "os";
11137
11185
  function resolveWorkerEntry(explicit) {
11138
11186
  if (explicit && explicit.length > 0) {
@@ -11145,7 +11193,7 @@ function resolveWorkerEntry(explicit) {
11145
11193
  }
11146
11194
  const moduleDir = dirname9(fileURLToPath3(import.meta.url));
11147
11195
  const jsPath = join25(moduleDir, "shaderTransitionWorker.js");
11148
- if (existsSync18(jsPath)) return { path: jsPath, isTs: false };
11196
+ if (existsSync17(jsPath)) return { path: jsPath, isTs: false };
11149
11197
  const tsPath = join25(moduleDir, "shaderTransitionWorker.ts");
11150
11198
  return { path: tsPath, isTs: true };
11151
11199
  }
@@ -11706,7 +11754,7 @@ async function runCaptureHdrStage(input) {
11706
11754
  }
11707
11755
  const debugDumpEnabled = process.env.KEEP_TEMP === "1";
11708
11756
  const debugDumpDir = debugDumpEnabled ? join27(framesDir, "debug-composite") : null;
11709
- if (debugDumpDir && !existsSync19(debugDumpDir)) {
11757
+ if (debugDumpDir && !existsSync18(debugDumpDir)) {
11710
11758
  mkdirSync8(debugDumpDir, { recursive: true });
11711
11759
  }
11712
11760
  const compositeTransfer = resolveCompositeTransfer(hasHdrContent, effectiveHdr);
@@ -11863,7 +11911,7 @@ async function runCaptureHdrStage(input) {
11863
11911
  // ../producer/src/services/render/stages/encodeStage.ts
11864
11912
  import {
11865
11913
  copyFileSync as copyFileSync2,
11866
- existsSync as existsSync20,
11914
+ existsSync as existsSync19,
11867
11915
  mkdirSync as mkdirSync9,
11868
11916
  readdirSync as readdirSync5,
11869
11917
  readFileSync as readFileSync7,
@@ -11982,7 +12030,7 @@ async function encodeGifFromDir(framesDir, framePattern, outputPath, input) {
11982
12030
  const failure = await reencodeWithClearedWholeFrames(argsInput, run, startTime);
11983
12031
  if (failure) return failure;
11984
12032
  }
11985
- const fileSize = existsSync20(outputPath) ? statSync6(outputPath).size : 0;
12033
+ const fileSize = existsSync19(outputPath) ? statSync6(outputPath).size : 0;
11986
12034
  return {
11987
12035
  success: true,
11988
12036
  outputPath,
@@ -12143,7 +12191,7 @@ async function runEncodeStage(input) {
12143
12191
  const stage5Start = Date.now();
12144
12192
  if (isPngSequence) {
12145
12193
  const encoded = startEncodeProgress(job, "Writing PNG sequence", onProgress);
12146
- if (!existsSync20(outputPath)) mkdirSync9(outputPath, { recursive: true });
12194
+ if (!existsSync19(outputPath)) mkdirSync9(outputPath, { recursive: true });
12147
12195
  const captured = readdirSync5(framesDir).filter((name) => name.endsWith(".png")).sort();
12148
12196
  if (captured.length === 0) {
12149
12197
  throw new Error(
@@ -12154,7 +12202,7 @@ async function runEncodeStage(input) {
12154
12202
  const dst = join28(outputPath, formatExportFrameName(i, "png"));
12155
12203
  copyFileSync2(join28(framesDir, name), dst);
12156
12204
  });
12157
- if (hasAudio && audioOutputPath && existsSync20(audioOutputPath)) {
12205
+ if (hasAudio && audioOutputPath && existsSync19(audioOutputPath)) {
12158
12206
  copyFileSync2(audioOutputPath, join28(outputPath, MIXED_AUDIO_FILENAME));
12159
12207
  log.info(
12160
12208
  `[Render] png-sequence: ${MIXED_AUDIO_FILENAME} sidecar written to ${outputPath}/${MIXED_AUDIO_FILENAME}`
@@ -12542,7 +12590,7 @@ function findMissingFrameRanges(totalFrames, framesDir, frameExt) {
12542
12590
  let rangeStart = null;
12543
12591
  for (let frameIndex = 0; frameIndex < totalFrames; frameIndex++) {
12544
12592
  const framePath = join29(framesDir, formatCaptureFrameName(frameIndex, frameExt));
12545
- const missing = !existsSync21(framePath) || statSync7(framePath).size <= 8;
12593
+ const missing = !existsSync20(framePath) || statSync7(framePath).size <= 8;
12546
12594
  if (missing && rangeStart === null) {
12547
12595
  rangeStart = frameIndex;
12548
12596
  } else if (!missing && rangeStart !== null) {
@@ -12649,7 +12697,8 @@ function frameStallRule(job, totalFrames, probeStartupMs) {
12649
12697
  complete: () => (job.framesRendered ?? 0) >= totalFrames,
12650
12698
  tailMs: Math.max(TAIL_STALL_MS, noProgressMs),
12651
12699
  detail: () => describeWorkerPhases(job),
12652
- attemptOpened: () => forgetWorkerPhases(job)
12700
+ attemptOpened: () => forgetWorkerPhases(job),
12701
+ activity: () => staticDedupActivity(job)
12653
12702
  };
12654
12703
  }
12655
12704
  function isRecoverableParallelCaptureError(error) {
@@ -12674,7 +12723,7 @@ function countCapturedFrames(totalFrames, framesDir, frameExt) {
12674
12723
  let captured = 0;
12675
12724
  for (let frameIndex = 0; frameIndex < totalFrames; frameIndex++) {
12676
12725
  const framePath = join29(framesDir, formatCaptureFrameName(frameIndex, frameExt));
12677
- if (existsSync21(framePath)) captured++;
12726
+ if (existsSync20(framePath)) captured++;
12678
12727
  }
12679
12728
  return captured;
12680
12729
  }
@@ -13340,7 +13389,7 @@ async function executeRenderJob(job, projectDir, outputPath, progressSink, abort
13340
13389
  validateChromaSubsamplingConfig(job.config);
13341
13390
  const debugDir = resolveRenderDebugDir();
13342
13391
  const outputDir = dirname11(outputPath);
13343
- if (!existsSync21(outputDir)) mkdirSync10(outputDir, { recursive: true });
13392
+ if (!existsSync20(outputDir)) mkdirSync10(outputDir, { recursive: true });
13344
13393
  const workDir = job.config.debug ? join29(debugDir, job.id) : createRenderWorkDir(resolveRenderWorkDirPrefix(outputPath, job.id), outputDir);
13345
13394
  const pipelineStart = Date.now();
13346
13395
  const baseLog = job.config.logger ?? defaultLogger;
@@ -13482,7 +13531,7 @@ async function executeRenderPipeline(input) {
13482
13531
  job.startedAt = /* @__PURE__ */ new Date();
13483
13532
  assertNotAborted();
13484
13533
  assertConfiguredFfmpegBinariesExist();
13485
- if (!existsSync21(workDir)) mkdirSync10(workDir, { recursive: true });
13534
+ if (!existsSync20(workDir)) mkdirSync10(workDir, { recursive: true });
13486
13535
  if (job.config.debug) {
13487
13536
  log.info("[Render] Debug artifacts enabled", { workDir, logPath });
13488
13537
  }
@@ -13512,7 +13561,7 @@ async function executeRenderPipeline(input) {
13512
13561
  });
13513
13562
  const entryFile = job.config.entryFile || "index.html";
13514
13563
  const htmlPath = join29(projectDir, entryFile);
13515
- if (!existsSync21(htmlPath)) {
13564
+ if (!existsSync20(htmlPath)) {
13516
13565
  throw new Error(`Entry file not found: ${htmlPath}`);
13517
13566
  }
13518
13567
  assertNotAborted();
@@ -13604,6 +13653,7 @@ async function executeRenderPipeline(input) {
13604
13653
  (result) => Object.assign(job, result)
13605
13654
  );
13606
13655
  const subTimelineWaitMemo = {};
13656
+ const staticDedupMemo = {};
13607
13657
  const probeResult = await observeRenderStage(
13608
13658
  observability,
13609
13659
  "browser_probe",
@@ -13624,6 +13674,7 @@ async function executeRenderPipeline(input) {
13624
13674
  needsAlpha,
13625
13675
  deviceScaleFactor,
13626
13676
  subTimelineWaitMemo,
13677
+ staticDedupMemo,
13627
13678
  recordReferenceBackground
13628
13679
  }),
13629
13680
  // Browser probe is pre-capture; report `browser calibrating` so a
@@ -13856,7 +13907,7 @@ async function executeRenderPipeline(input) {
13856
13907
  throw new Error("File server failed to initialize before frame capture");
13857
13908
  }
13858
13909
  const framesDir = join29(workDir, "captured-frames");
13859
- if (!existsSync21(framesDir)) mkdirSync10(framesDir, { recursive: true });
13910
+ if (!existsSync20(framesDir)) mkdirSync10(framesDir, { recursive: true });
13860
13911
  updateJobStatus(job, "rendering", "Checking browser GPU", 25, onProgress, {
13861
13912
  code: "start_browsers"
13862
13913
  });
@@ -13915,6 +13966,9 @@ async function executeRenderPipeline(input) {
13915
13966
  videoMetadataHints,
13916
13967
  skipReadinessVideoIds: videoReadinessSkipIds,
13917
13968
  subTimelineWaitMemo,
13969
+ staticDedupMemo,
13970
+ compositionHash,
13971
+ onStaticDedupActivity: () => noteStaticDedupActivity(job),
13918
13972
  // Probe-resolved duration: drawElement self-verification derives its
13919
13973
  // sample frame indices from this so they land inside the drained range.
13920
13974
  compositionDurationSeconds: job.duration,
@@ -15261,7 +15315,7 @@ async function executeRenderPipeline(input) {
15261
15315
  })
15262
15316
  );
15263
15317
  const totalElapsed = Date.now() - pipelineStart;
15264
- const tmpPeakBytes = existsSync21(workDir) ? sampleDirectoryBytes(workDir) : 0;
15318
+ const tmpPeakBytes = existsSync20(workDir) ? sampleDirectoryBytes(workDir) : 0;
15265
15319
  recordTransientRetryObservability();
15266
15320
  observability.checkpoint("pipeline", "artifact validated", { totalElapsedMs: totalElapsed });
15267
15321
  const observabilitySummary = observability.summary({
@@ -15342,7 +15396,7 @@ async function executeRenderPipeline(input) {
15342
15396
  }
15343
15397
  }
15344
15398
  if (job.config.debug) {
15345
- if (!isPngSequence && !isHls && existsSync21(stagedOutputPath)) {
15399
+ if (!isPngSequence && !isHls && existsSync20(stagedOutputPath)) {
15346
15400
  const debugOutput = join29(workDir, `output${videoExt}`);
15347
15401
  copyFileSync3(stagedOutputPath, debugOutput);
15348
15402
  }
@@ -15843,7 +15897,7 @@ async function writeStitchedMp4(chunkPaths, outputPath, audioPath) {
15843
15897
  import {
15844
15898
  copyFileSync as copyFileSync4,
15845
15899
  cpSync as cpSync2,
15846
- existsSync as existsSync26,
15900
+ existsSync as existsSync25,
15847
15901
  linkSync,
15848
15902
  mkdirSync as mkdirSync14,
15849
15903
  rmSync as rmSync12,
@@ -15855,13 +15909,13 @@ import { extname as extname6, isAbsolute as isAbsolute2, join as join38, relativ
15855
15909
  import { join as join33 } from "path";
15856
15910
 
15857
15911
  // ../producer/src/services/distributed/chunkFrames.ts
15858
- import { existsSync as existsSync23, readdirSync as readdirSync7 } from "fs";
15912
+ import { existsSync as existsSync22, readdirSync as readdirSync7 } from "fs";
15859
15913
  import { extname as extname4, join as join32 } from "path";
15860
15914
 
15861
15915
  // ../producer/src/services/distributed/shared.ts
15862
15916
  import { execFile as execFileCallback } from "child_process";
15863
15917
  import { dirname as dirname13, join as join31 } from "path";
15864
- import { existsSync as existsSync22, readFileSync as readFileSync8 } from "fs";
15918
+ import { existsSync as existsSync21, readFileSync as readFileSync8 } from "fs";
15865
15919
  import { fileURLToPath as fileURLToPath5 } from "url";
15866
15920
  import { promisify as promisify2 } from "util";
15867
15921
  var PLAN_VIDEOS_META_RELATIVE_PATH = "meta/videos.json";
@@ -15873,7 +15927,7 @@ function isPlanAudioArtifactPath(path) {
15873
15927
  function resolvePlanAudioPath(planDir) {
15874
15928
  for (const name of [PLAN_AUDIO_RELATIVE_PATH, PLAN_AUDIO_LEGACY_RELATIVE_PATH]) {
15875
15929
  const candidate = join31(planDir, name);
15876
- if (existsSync22(candidate)) return candidate;
15930
+ if (existsSync21(candidate)) return candidate;
15877
15931
  }
15878
15932
  return null;
15879
15933
  }
@@ -16134,7 +16188,7 @@ function readProducerVersion() {
16134
16188
  let current = startDir;
16135
16189
  for (let i = 0; i < 10; i++) {
16136
16190
  const candidate = join31(current, "package.json");
16137
- if (existsSync22(candidate)) {
16191
+ if (existsSync21(candidate)) {
16138
16192
  try {
16139
16193
  const pkg = JSON.parse(readFileSync8(candidate, "utf-8"));
16140
16194
  if (pkg.name === "@hyperframes/producer" && typeof pkg.version === "string") {
@@ -16189,7 +16243,7 @@ function rebuildExtractedFramesFromPlanDir(planDir, videos, indexMode = "dense-v
16189
16243
  const result = [];
16190
16244
  for (const v of videos) {
16191
16245
  const outputDir = join32(planDir, "video-frames", mediaIdPathSegment(v.videoId));
16192
- if (!existsSync23(outputDir)) {
16246
+ if (!existsSync22(outputDir)) {
16193
16247
  throw new Error(
16194
16248
  `[renderChunk] planDir missing extracted video frames for ${JSON.stringify(v.videoId)}: ${outputDir} not present. plan() should have written frames here; the planDir is malformed.`
16195
16249
  );
@@ -16288,7 +16342,7 @@ async function extractDeferredVideoFramesForChunk(input) {
16288
16342
  const range = planned.get(video.videoId).deferredRange;
16289
16343
  const remoteUrl = remoteSources[range.sourcePath];
16290
16344
  const sourcePath = remoteUrl ?? join32(input.planDir, ...range.sourcePath.split("/"));
16291
- if (remoteUrl === void 0 && !existsSync23(sourcePath)) {
16345
+ if (remoteUrl === void 0 && !existsSync22(sourcePath)) {
16292
16346
  throw new RenderChunkValidationError(
16293
16347
  MISSING_PLAN_ARTIFACT,
16294
16348
  `[renderChunk] planDir is missing the source for video ${JSON.stringify(video.videoId)}: ${range.sourcePath}`
@@ -16481,7 +16535,7 @@ async function readPlanReferenceBackground(input) {
16481
16535
  }
16482
16536
 
16483
16537
  // ../producer/src/services/render/stages/freezePlan.ts
16484
- import { existsSync as existsSync24, mkdirSync as mkdirSync12, readFileSync as readFileSync9, readdirSync as readdirSync8, writeFileSync as writeFileSync7 } from "fs";
16538
+ import { existsSync as existsSync23, mkdirSync as mkdirSync12, readFileSync as readFileSync9, readdirSync as readdirSync8, writeFileSync as writeFileSync7 } from "fs";
16485
16539
  import { join as join35, relative as relative3, resolve as resolve7 } from "path";
16486
16540
 
16487
16541
  // ../producer/src/services/distributed/planProtocol.ts
@@ -16671,7 +16725,7 @@ function planFileSha256(absolutePath, digests) {
16671
16725
  return sha256;
16672
16726
  }
16673
16727
  async function prehashPlanFiles(dir, digests) {
16674
- if (!existsSync24(dir)) return;
16728
+ if (!existsSync23(dir)) return;
16675
16729
  for (const { absolutePath } of listPlanFiles(dir)) {
16676
16730
  if (!digests.has(absolutePath)) digests.set(absolutePath, await sha256FileAsync(absolutePath));
16677
16731
  }
@@ -16741,15 +16795,15 @@ function writePlanRemoteFiles(planDir, files) {
16741
16795
  }
16742
16796
  function readPlanRemoteFiles(planDir) {
16743
16797
  const path = join35(planDir, PLAN_REMOTE_FILES_RELATIVE_PATH);
16744
- return existsSync24(path) ? JSON.parse(readFileSync9(path, "utf-8")) : [];
16798
+ return existsSync23(path) ? JSON.parse(readFileSync9(path, "utf-8")) : [];
16745
16799
  }
16746
16800
  function recomputePlanHashFromPlanDir(planDir, digests) {
16747
16801
  const planJsonPath = join35(planDir, "plan.json");
16748
16802
  const encoderJsonPath = join35(planDir, "meta", "encoder.json");
16749
- if (!existsSync24(planJsonPath)) {
16803
+ if (!existsSync23(planJsonPath)) {
16750
16804
  throw new Error(`[freezePlan] plan.json missing: ${planJsonPath}`);
16751
16805
  }
16752
- if (!existsSync24(encoderJsonPath)) {
16806
+ if (!existsSync23(encoderJsonPath)) {
16753
16807
  throw new Error(`[freezePlan] meta/encoder.json missing: ${encoderJsonPath}`);
16754
16808
  }
16755
16809
  const planJson = JSON.parse(readFileSync9(planJsonPath, "utf-8"));
@@ -16779,11 +16833,11 @@ async function freezePlan(input) {
16779
16833
  hasAudio,
16780
16834
  digests
16781
16835
  } = input;
16782
- if (!existsSync24(planDir)) {
16836
+ if (!existsSync23(planDir)) {
16783
16837
  throw new Error(`[freezePlan] planDir does not exist: ${planDir}`);
16784
16838
  }
16785
16839
  const metaDir = join35(planDir, "meta");
16786
- if (!existsSync24(metaDir)) mkdirSync12(metaDir, { recursive: true });
16840
+ if (!existsSync23(metaDir)) mkdirSync12(metaDir, { recursive: true });
16787
16841
  writeFileSync7(
16788
16842
  join35(metaDir, "composition.json"),
16789
16843
  `${JSON.stringify(composition, null, 2)}
@@ -16860,7 +16914,7 @@ function applyRuntimeEnvSnapshot(snapshot, env = process.env) {
16860
16914
  }
16861
16915
 
16862
16916
  // ../producer/src/services/distributed/chunkAudio.ts
16863
- import { closeSync as closeSync5, existsSync as existsSync25, ftruncateSync, mkdirSync as mkdirSync13, openSync as openSync5, readFileSync as readFileSync10 } from "fs";
16917
+ import { closeSync as closeSync5, existsSync as existsSync24, ftruncateSync, mkdirSync as mkdirSync13, openSync as openSync5, readFileSync as readFileSync10 } from "fs";
16864
16918
  import { writeFileSync as writeFileSync8, writeSync } from "fs";
16865
16919
  import { join as join36 } from "path";
16866
16920
  function audioCutForChunk(grid, chunks, index, fps) {
@@ -16965,7 +17019,7 @@ async function writeChunkAudioSlices(input) {
16965
17019
  }
16966
17020
  function chunkAudioSource(planDir, chunkIndex, scratchPath) {
16967
17021
  const layoutPath = join36(planDir, SLICE_LAYOUT);
16968
- if (!existsSync25(layoutPath)) return resolvePlanAudioPath(planDir);
17022
+ if (!existsSync24(layoutPath)) return resolvePlanAudioPath(planDir);
16969
17023
  const layout = JSON.parse(readFileSync10(layoutPath, "utf-8"));
16970
17024
  const frame = readFileSync10(join36(planDir, SLICE_FRAME));
16971
17025
  const fd = openSync5(scratchPath, "w");
@@ -17529,7 +17583,7 @@ function createVideoSourceShipper(input) {
17529
17583
  let result = null;
17530
17584
  for (const root of stagedRel === null ? [input.workCompiledDir, input.projectDir] : []) {
17531
17585
  const rel = pathInside(root, srcPath);
17532
- if (rel !== null && (existsSync26(join38(input.planDir, "compiled", rel)) || input.isRemote(srcPath))) {
17586
+ if (rel !== null && (existsSync25(join38(input.planDir, "compiled", rel)) || input.isRemote(srcPath))) {
17533
17587
  result = ["compiled", ...rel.split(sep3)].join("/");
17534
17588
  break;
17535
17589
  }
@@ -17557,7 +17611,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
17557
17611
  useGpu: false,
17558
17612
  browserGpuMode: "software"
17559
17613
  });
17560
- if (!existsSync26(planDir)) mkdirSync14(planDir, { recursive: true });
17614
+ if (!existsSync25(planDir)) mkdirSync14(planDir, { recursive: true });
17561
17615
  const log = config.logger ?? defaultLogger;
17562
17616
  const sizeLimitBytes = options.executionPlanSizeLimitBytes ?? config.planDirSizeLimitBytes ?? PLAN_DIR_SIZE_LIMIT_BYTES;
17563
17617
  const abortSignal = config.abortSignal;
@@ -17588,7 +17642,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
17588
17642
  });
17589
17643
  const entryFile = config.entryFile ?? "index.html";
17590
17644
  const htmlPath = join38(projectDir, entryFile);
17591
- if (!existsSync26(htmlPath)) {
17645
+ if (!existsSync25(htmlPath)) {
17592
17646
  throw new Error(`[plan] entry file not found: ${htmlPath}`);
17593
17647
  }
17594
17648
  const workDir = join38(planDir, ".plan-work");
@@ -17707,7 +17761,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
17707
17761
  if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
17708
17762
  if (probeResult.probeSession) {
17709
17763
  try {
17710
- const { closeCaptureSession: closeCaptureSession2 } = await import("./src-HHPRCLEW.js");
17764
+ const { closeCaptureSession: closeCaptureSession2 } = await import("./src-C3XYMTF4.js");
17711
17765
  await closeCaptureSession2(probeResult.probeSession);
17712
17766
  } catch (err) {
17713
17767
  log.warn("[plan] probe session close failed", {
@@ -17816,15 +17870,15 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
17816
17870
  logPlanStage(log, "extract", stageStarted);
17817
17871
  const stagedVideoFrames = join38(compiledDir, "__hyperframes_video_frames");
17818
17872
  const videoFramesDst = join38(planDir, "video-frames");
17819
- if (existsSync26(videoFramesDst)) rmSync12(videoFramesDst, { recursive: true, force: true });
17873
+ if (existsSync25(videoFramesDst)) rmSync12(videoFramesDst, { recursive: true, force: true });
17820
17874
  const videoSourcesDir = join38(planDir, "video-sources");
17821
17875
  rmSync12(videoSourcesDir, { recursive: true, force: true });
17822
- if (existsSync26(stagedVideoFrames)) {
17876
+ if (existsSync25(stagedVideoFrames)) {
17823
17877
  renameWithRetry(stagedVideoFrames, videoFramesDst);
17824
17878
  } else {
17825
17879
  mkdirSync14(videoFramesDst, { recursive: true });
17826
17880
  }
17827
- if (existsSync26(finalCompiledDir)) rmSync12(finalCompiledDir, { recursive: true, force: true });
17881
+ if (existsSync25(finalCompiledDir)) rmSync12(finalCompiledDir, { recursive: true, force: true });
17828
17882
  renameWithRetry(compiledDir, finalCompiledDir);
17829
17883
  const shipVideoSource = createVideoSourceShipper({
17830
17884
  planDir,
@@ -17945,10 +17999,10 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
17945
17999
  applyDistributedAudioWarningPolicy(job, audioResult.audioError, audioResult.audioFailures, log);
17946
18000
  }
17947
18001
  const planAudioPath = join38(planDir, PLAN_AUDIO_RELATIVE_PATH);
17948
- if (audioResult?.hasAudio && existsSync26(audioResult.audioOutputPath)) {
18002
+ if (audioResult?.hasAudio && existsSync25(audioResult.audioOutputPath)) {
17949
18003
  renameWithRetry(audioResult.audioOutputPath, planAudioPath);
17950
18004
  }
17951
- if (chunksCarryAudio && existsSync26(planAudioPath)) {
18005
+ if (chunksCarryAudio && existsSync25(planAudioPath)) {
17952
18006
  if (options.sliceChunkAudio) {
17953
18007
  stageStarted = Date.now();
17954
18008
  await writeChunkAudioSlices({
@@ -18066,14 +18120,14 @@ async function plan(projectDir, config, planDir, options = {}) {
18066
18120
 
18067
18121
  // ../producer/src/services/distributed/renderChunk.ts
18068
18122
  import { randomBytes } from "crypto";
18069
- import { existsSync as existsSync29, mkdirSync as mkdirSync17, readFileSync as readFileSync12, readdirSync as readdirSync11, rmSync as rmSync15, writeFileSync as writeFileSync12 } from "fs";
18123
+ import { existsSync as existsSync28, mkdirSync as mkdirSync17, readFileSync as readFileSync12, readdirSync as readdirSync11, rmSync as rmSync15, writeFileSync as writeFileSync12 } from "fs";
18070
18124
  import { cpus as cpus3 } from "os";
18071
18125
  import { join as join42 } from "path";
18072
18126
 
18073
18127
  // ../producer/src/services/distributed/planV2.ts
18074
18128
  import {
18075
18129
  copyFileSync as copyFileSync6,
18076
- existsSync as existsSync28,
18130
+ existsSync as existsSync27,
18077
18131
  lstatSync as lstatSync3,
18078
18132
  mkdirSync as mkdirSync16,
18079
18133
  readFileSync as readFileSync11,
@@ -18088,7 +18142,7 @@ import { dirname as dirname15, isAbsolute as isAbsolute3, join as join41, relati
18088
18142
  // ../producer/src/services/distributed/planV2Publisher.ts
18089
18143
  import {
18090
18144
  copyFileSync as copyFileSync5,
18091
- existsSync as existsSync27,
18145
+ existsSync as existsSync26,
18092
18146
  linkSync as linkSync2,
18093
18147
  mkdirSync as mkdirSync15,
18094
18148
  rmSync as rmSync13,
@@ -18155,7 +18209,7 @@ var LocalPlanV2ArtifactPublisher = class {
18155
18209
  #linkFile;
18156
18210
  #committed = false;
18157
18211
  constructor(destinationDir, options = {}) {
18158
- if (existsSync27(destinationDir)) {
18212
+ if (existsSync26(destinationDir)) {
18159
18213
  throw new PlanV2IntegrityError(`output directory already exists: ${destinationDir}`);
18160
18214
  }
18161
18215
  this.destinationDir = destinationDir;
@@ -18172,7 +18226,7 @@ var LocalPlanV2ArtifactPublisher = class {
18172
18226
  );
18173
18227
  }
18174
18228
  const destinationPath = planV2BlobPath(this.temporaryDir, digest);
18175
- if (existsSync27(destinationPath)) return;
18229
+ if (existsSync26(destinationPath)) return;
18176
18230
  mkdirSync15(dirname14(destinationPath), { recursive: true });
18177
18231
  const stagingDir = createStagingDir(dirname14(destinationPath), ".plan-v2-blob-");
18178
18232
  const temporaryPath = join40(stagingDir, "blob");
@@ -18190,7 +18244,7 @@ var LocalPlanV2ArtifactPublisher = class {
18190
18244
  }
18191
18245
  async commitManifest(manifestBytes) {
18192
18246
  for (const digest of new Set(manifestDigests(manifestBytes))) {
18193
- if (!existsSync27(planV2BlobPath(this.temporaryDir, digest))) {
18247
+ if (!existsSync26(planV2BlobPath(this.temporaryDir, digest))) {
18194
18248
  throw new PlanV2IntegrityError(
18195
18249
  `cannot commit manifest before referenced blob is durable: ${digest}`
18196
18250
  );
@@ -18269,7 +18323,7 @@ function assertValidExtractionCacheCompleteSentinel(path) {
18269
18323
  }
18270
18324
  function validateExtractionCacheCompleteSentinels(executionPlanDir) {
18271
18325
  const videoRoot = join41(executionPlanDir, "video-frames");
18272
- if (!existsSync28(videoRoot)) return;
18326
+ if (!existsSync27(videoRoot)) return;
18273
18327
  for (const videoEntry of readdirSync10(videoRoot, { withFileTypes: true })) {
18274
18328
  if (!videoEntry.isDirectory()) continue;
18275
18329
  const videoDir = join41(videoRoot, videoEntry.name);
@@ -18370,7 +18424,7 @@ function parsePlanVideosJson2(value) {
18370
18424
  }
18371
18425
  function materializeExtractedVideoDirectories(planDir) {
18372
18426
  const videosPath = join41(planDir, PLAN_VIDEOS_META_RELATIVE_PATH);
18373
- if (!existsSync28(videosPath)) return;
18427
+ if (!existsSync27(videosPath)) return;
18374
18428
  const videos = parsePlanVideosJson2(readJsonFile(videosPath, PLAN_VIDEOS_META_RELATIVE_PATH));
18375
18429
  for (const video of videos.extracted) {
18376
18430
  mkdirSync16(resolveExtractedVideoOutputDir(planDir, video.videoId), { recursive: true });
@@ -18404,9 +18458,9 @@ function parseChunkSlices(value) {
18404
18458
  }
18405
18459
  function buildVideoChunkDependencies(executionPlanDir, dimensions) {
18406
18460
  const videoRoot = join41(executionPlanDir, "video-frames");
18407
- const hasExtractedFrames = existsSync28(videoRoot) && listFiles(videoRoot).length > 0;
18461
+ const hasExtractedFrames = existsSync27(videoRoot) && listFiles(videoRoot).length > 0;
18408
18462
  const videosPath = join41(executionPlanDir, PLAN_VIDEOS_META_RELATIVE_PATH);
18409
- if (!existsSync28(videosPath)) {
18463
+ if (!existsSync27(videosPath)) {
18410
18464
  return hasExtractedFrames ? { mode: "full-source-pack", dependencies: null } : { mode: "exact-rendered-frames", dependencies: /* @__PURE__ */ new Map() };
18411
18465
  }
18412
18466
  const chunksPath = join41(executionPlanDir, "meta", "chunks.json");
@@ -18463,7 +18517,7 @@ function computeManifestHash(manifest) {
18463
18517
  return sha256Hex(`${PLAN_V2_HASH_PREFIX}${canonicalJsonStringify(manifestPayload(manifest))}`);
18464
18518
  }
18465
18519
  function writeBlob(sourcePath, destinationPath) {
18466
- if (existsSync28(destinationPath)) return;
18520
+ if (existsSync27(destinationPath)) return;
18467
18521
  mkdirSync16(dirname15(destinationPath), { recursive: true });
18468
18522
  const temporaryDir = createStagingDir(dirname15(destinationPath), ".plan-v2-blob-");
18469
18523
  const temporaryPath = join41(temporaryDir, "blob");
@@ -18503,7 +18557,7 @@ async function putTasks(tasks) {
18503
18557
  }
18504
18558
  function buildPlanV2Publication(executionPlanDir, digests) {
18505
18559
  const executionPlanPath = join41(executionPlanDir, "plan.json");
18506
- if (!existsSync28(executionPlanPath)) {
18560
+ if (!existsSync27(executionPlanPath)) {
18507
18561
  throw new PlanV2IntegrityError(`execution plan is missing plan.json: ${executionPlanPath}`);
18508
18562
  }
18509
18563
  const executionPlanValue = readJsonFile(executionPlanPath, "execution plan.json");
@@ -18583,7 +18637,7 @@ function buildPlanV2Publication(executionPlanDir, digests) {
18583
18637
  };
18584
18638
  }
18585
18639
  function createPlanV2FromExecutionPlan(executionPlanDir, planV2Dir) {
18586
- if (existsSync28(planV2Dir)) {
18640
+ if (existsSync27(planV2Dir)) {
18587
18641
  throw new PlanV2IntegrityError(`output directory already exists: ${planV2Dir}`);
18588
18642
  }
18589
18643
  const publication = buildPlanV2Publication(executionPlanDir);
@@ -18669,7 +18723,7 @@ async function planV2WithPublisher(projectDir, config, publisher, options = {})
18669
18723
  }
18670
18724
  }
18671
18725
  async function planV2(projectDir, config, planV2Dir) {
18672
- if (existsSync28(planV2Dir)) {
18726
+ if (existsSync27(planV2Dir)) {
18673
18727
  throw new PlanV2IntegrityError(`output directory already exists: ${planV2Dir}`);
18674
18728
  }
18675
18729
  const publisher = new LocalPlanV2ArtifactPublisher(planV2Dir);
@@ -18823,7 +18877,7 @@ function parsePlanV2Manifest(value) {
18823
18877
  }
18824
18878
  function readPlanV2Manifest(planV2Dir) {
18825
18879
  const manifestPath = join41(planV2Dir, "plan.json");
18826
- if (!existsSync28(manifestPath)) {
18880
+ if (!existsSync27(manifestPath)) {
18827
18881
  throw new PlanV2IntegrityError(`missing v2 manifest: ${manifestPath}`);
18828
18882
  }
18829
18883
  const value = readJsonFile(manifestPath, "v2 manifest");
@@ -18842,7 +18896,7 @@ function listPlanV2ArtifactsForTarget(manifest, target) {
18842
18896
  }
18843
18897
  function verifyBlob(planV2Dir, artifact) {
18844
18898
  const sourcePath = planV2BlobPath(planV2Dir, artifact.sha256);
18845
- if (!existsSync28(sourcePath)) {
18899
+ if (!existsSync27(sourcePath)) {
18846
18900
  throw new PlanV2IntegrityError(`missing content-addressed artifact ${artifact.sha256}`);
18847
18901
  }
18848
18902
  const stats = statSync9(sourcePath);
@@ -18855,7 +18909,7 @@ function verifyBlob(planV2Dir, artifact) {
18855
18909
  return sourcePath;
18856
18910
  }
18857
18911
  function materializePlanV2Target(planV2Dir, target, destinationDir, options = {}) {
18858
- if (existsSync28(destinationDir)) {
18912
+ if (existsSync27(destinationDir)) {
18859
18913
  throw new PlanV2IntegrityError(`materialization destination already exists: ${destinationDir}`);
18860
18914
  }
18861
18915
  const manifest = readPlanV2Manifest(planV2Dir);
@@ -18920,7 +18974,7 @@ function validatePlanV2MaterializedTarget(planDir, expectedTarget) {
18920
18974
  }
18921
18975
  function readValidatedPlanV2Materialization(planDir, expectedTarget) {
18922
18976
  const markerPath = join41(planDir, PLAN_V2_MATERIALIZATION_MARKER);
18923
- if (!existsSync28(markerPath)) return null;
18977
+ if (!existsSync27(markerPath)) return null;
18924
18978
  const marker = readJsonFile(markerPath, "materialization marker");
18925
18979
  if (!isRecord3(marker) || !isRecord3(marker.manifest) || !isRecord3(marker.target)) {
18926
18980
  throw new PlanV2IntegrityError("malformed materialization marker");
@@ -18938,7 +18992,7 @@ function readValidatedPlanV2Materialization(planDir, expectedTarget) {
18938
18992
  for (const artifact of required) {
18939
18993
  if (Object.hasOwn(remoteSources, artifact.path)) continue;
18940
18994
  const path = join41(planDir, ...artifact.path.split("/"));
18941
- if (!existsSync28(path) || statSync9(path).size !== artifact.sizeBytes) {
18995
+ if (!existsSync27(path) || statSync9(path).size !== artifact.sizeBytes) {
18942
18996
  throw new PlanV2IntegrityError(
18943
18997
  `materialized artifact missing or truncated: ${artifact.path}`
18944
18998
  );
@@ -19088,7 +19142,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19088
19142
  const planJsonPath = join42(planDir, "plan.json");
19089
19143
  const encoderJsonPath = join42(planDir, "meta", "encoder.json");
19090
19144
  const chunksJsonPath = join42(planDir, "meta", "chunks.json");
19091
- if (!existsSync29(planJsonPath)) {
19145
+ if (!existsSync28(planJsonPath)) {
19092
19146
  throw new RenderChunkValidationError(
19093
19147
  MISSING_PLAN_ARTIFACT,
19094
19148
  `[renderChunk] planDir is missing required artifact: ${planJsonPath}`
@@ -19104,7 +19158,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19104
19158
  const v2Manifest = v2Materialization?.manifest ?? null;
19105
19159
  const remoteSources = v2Materialization?.remoteSources ?? {};
19106
19160
  for (const required of [encoderJsonPath, chunksJsonPath]) {
19107
- if (!existsSync29(required)) {
19161
+ if (!existsSync28(required)) {
19108
19162
  throw new RenderChunkValidationError(
19109
19163
  MISSING_PLAN_ARTIFACT,
19110
19164
  `[renderChunk] planDir is missing required artifact: ${required}`
@@ -19115,7 +19169,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19115
19169
  const chunks = JSON.parse(readFileSync12(chunksJsonPath, "utf-8"));
19116
19170
  const videosJsonPath = join42(planDir, PLAN_VIDEOS_META_RELATIVE_PATH);
19117
19171
  let planVideos = null;
19118
- if (existsSync29(videosJsonPath)) {
19172
+ if (existsSync28(videosJsonPath)) {
19119
19173
  try {
19120
19174
  planVideos = validatePlanVideosForChunk(JSON.parse(readFileSync12(videosJsonPath, "utf-8")));
19121
19175
  } catch (err) {
@@ -19146,7 +19200,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19146
19200
  const range = resolveChunkFrameRange(slice, chunkIndex, options?.frameRange);
19147
19201
  const framesInChunk = range.endFrame - range.startFrame;
19148
19202
  const compiledDir = join42(planDir, "compiled");
19149
- if (!existsSync29(compiledDir)) {
19203
+ if (!existsSync28(compiledDir)) {
19150
19204
  throw new RenderChunkValidationError(
19151
19205
  MISSING_PLAN_ARTIFACT,
19152
19206
  `[renderChunk] planDir missing compiled/ directory: ${compiledDir}`
@@ -19238,6 +19292,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19238
19292
  deferredVideos.filter((video) => remoteVideoIds.has(video.videoId))
19239
19293
  )
19240
19294
  });
19295
+ captureOptions.onStaticDedupActivity = () => noteStaticDedupActivity(job);
19241
19296
  const captureFrames = effectiveChunkFrames(framesInChunk, slice.captureCost);
19242
19297
  const chunkWorkerCount = resolveChunkCaptureWorkers(
19243
19298
  captureFrames,
@@ -19397,10 +19452,10 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
19397
19452
  const effectiveBitrate = encoder.crf != null ? void 0 : encoder.bitrate;
19398
19453
  const videoOnlyPath = encoder.chunksCarryAudio ? `${outputChunkPath}.video.mp4` : outputChunkPath;
19399
19454
  if (isPngSequence) {
19400
- if (!existsSync29(outputChunkPath)) mkdirSync17(outputChunkPath, { recursive: true });
19455
+ if (!existsSync28(outputChunkPath)) mkdirSync17(outputChunkPath, { recursive: true });
19401
19456
  } else {
19402
19457
  const outDir = join42(outputChunkPath, "..");
19403
- if (!existsSync29(outDir)) mkdirSync17(outDir, { recursive: true });
19458
+ if (!existsSync28(outDir)) mkdirSync17(outDir, { recursive: true });
19404
19459
  }
19405
19460
  const encodeInput = {
19406
19461
  job,
@@ -20290,7 +20345,7 @@ function renderRequestFromDistributedConfig(input) {
20290
20345
 
20291
20346
  // ../producer/src/server.ts
20292
20347
  import {
20293
- existsSync as existsSync32,
20348
+ existsSync as existsSync31,
20294
20349
  mkdirSync as mkdirSync19,
20295
20350
  statSync as statSync11,
20296
20351
  mkdtempSync as mkdtempSync2,
@@ -20308,7 +20363,7 @@ import { serve as serve2 } from "@hono/node-server";
20308
20363
 
20309
20364
  // ../producer/src/services/hyperframeLint.ts
20310
20365
  import {
20311
- existsSync as existsSync30,
20366
+ existsSync as existsSync29,
20312
20367
  readFileSync as readFileSync14,
20313
20368
  statSync as statSync10,
20314
20369
  openSync as openSync6,
@@ -20361,7 +20416,7 @@ function readEntryHtml(filePath) {
20361
20416
  }
20362
20417
  function readProjectEntryFile(projectDir, preferredEntryFile) {
20363
20418
  const absProjectDir = resolve9(projectDir);
20364
- if (!existsSync30(absProjectDir) || !statSync10(absProjectDir).isDirectory()) {
20419
+ if (!existsSync29(absProjectDir) || !statSync10(absProjectDir).isDirectory()) {
20365
20420
  return { error: `Project directory not found: ${absProjectDir}` };
20366
20421
  }
20367
20422
  const entryCandidates = [preferredEntryFile, "index.html", "src/index.html"].filter(
@@ -20430,7 +20485,7 @@ async function runHyperframeLint(prepared) {
20430
20485
  import { Worker as Worker2 } from "worker_threads";
20431
20486
  import { fileURLToPath as fileURLToPath6 } from "url";
20432
20487
  import { dirname as dirname16, join as join45 } from "path";
20433
- import { existsSync as existsSync31 } from "fs";
20488
+ import { existsSync as existsSync30 } from "fs";
20434
20489
  var DEFAULT_HEALTH_PORT = 9848;
20435
20490
  async function startHealthWorker(options = {}) {
20436
20491
  const log = options.logger ?? defaultLogger2();
@@ -20507,7 +20562,7 @@ function resolveWorkerEntry2() {
20507
20562
  const here = dirname16(fileURLToPath6(import.meta.url));
20508
20563
  const candidates = [join45(here, "healthWorkerThread.js"), join45(here, "healthWorkerThread.ts")];
20509
20564
  for (const candidate of candidates) {
20510
- if (existsSync31(candidate)) return candidate;
20565
+ if (existsSync30(candidate)) return candidate;
20511
20566
  }
20512
20567
  return void 0;
20513
20568
  }
@@ -20657,7 +20712,7 @@ function resolvePreparedRenderOutput(prepared, rendersDir, log) {
20657
20712
  const { input, cleanupProjectDir } = prepared;
20658
20713
  const absoluteOutputPath = resolveOutputPath(input.projectDir, input.outputPath, rendersDir, log);
20659
20714
  const outputDir = dirname17(absoluteOutputPath);
20660
- if (!existsSync32(outputDir)) mkdirSync19(outputDir, { recursive: true });
20715
+ if (!existsSync31(outputDir)) mkdirSync19(outputDir, { recursive: true });
20661
20716
  return { input, cleanupProjectDir, absoluteOutputPath };
20662
20717
  }
20663
20718
  function prepareRenderJob(prepared, rendersDir, log) {
@@ -20714,11 +20769,11 @@ function prepareProjectDirectory(projectDir, options) {
20714
20769
  const candidate = nonEmptyString(projectDir);
20715
20770
  if (!candidate) return null;
20716
20771
  const absProjectDir = resolve10(candidate);
20717
- if (!existsSync32(absProjectDir) || !statSync11(absProjectDir).isDirectory()) {
20772
+ if (!existsSync31(absProjectDir) || !statSync11(absProjectDir).isDirectory()) {
20718
20773
  return { error: `Project directory not found: ${absProjectDir}` };
20719
20774
  }
20720
20775
  const entry = options.entryFile || "index.html";
20721
- if (!existsSync32(resolve10(absProjectDir, entry))) {
20776
+ if (!existsSync31(resolve10(absProjectDir, entry))) {
20722
20777
  return { error: `Entry file "${entry}" not found in project directory: ${absProjectDir}` };
20723
20778
  }
20724
20779
  return { prepared: { input: { projectDir: absProjectDir, ...options } } };
@@ -20810,7 +20865,7 @@ function cleanupTempDir(dir, log) {
20810
20865
  }
20811
20866
  }
20812
20867
  function outputFileSize(path) {
20813
- return existsSync32(path) ? statSync11(path).size : 0;
20868
+ return existsSync31(path) ? statSync11(path).size : 0;
20814
20869
  }
20815
20870
  function createBlockingProgressReporter(log, requestId) {
20816
20871
  let lastLoggedPct = -10;
@@ -21121,7 +21176,7 @@ function createRenderHandlers(options = {}) {
21121
21176
  if (!artifact) {
21122
21177
  return c.json({ success: false, error: "Output artifact not found or expired" }, 404);
21123
21178
  }
21124
- if (!existsSync32(artifact.path)) {
21179
+ if (!existsSync31(artifact.path)) {
21125
21180
  store.delete(token);
21126
21181
  return c.json({ success: false, error: "Output artifact file missing" }, 404);
21127
21182
  }
@@ -21185,7 +21240,7 @@ function startServer(options = {}) {
21185
21240
  });
21186
21241
  async function shutdown(signal) {
21187
21242
  log.info(`Received ${signal}, shutting down`);
21188
- const { drainBrowserPool } = await import("./src-HHPRCLEW.js");
21243
+ const { drainBrowserPool } = await import("./src-C3XYMTF4.js");
21189
21244
  await drainBrowserPool().catch(() => {
21190
21245
  });
21191
21246
  const handle = await Promise.race([
@@ -21228,7 +21283,7 @@ import { join as join48 } from "path";
21228
21283
  // ../producer/src/services/distributed/assemble.ts
21229
21284
  import {
21230
21285
  cpSync as cpSync3,
21231
- existsSync as existsSync33,
21286
+ existsSync as existsSync32,
21232
21287
  mkdirSync as mkdirSync20,
21233
21288
  readFileSync as readFileSync15,
21234
21289
  readdirSync as readdirSync12,
@@ -21269,7 +21324,7 @@ async function assemble(planDir, chunkOutputs, audioPath, outputPath, options) {
21269
21324
  }
21270
21325
  const format = plan2.dimensions.format;
21271
21326
  const cfrEncoder = cfr ? readCfrEncoder(planDir, format) : null;
21272
- if (!existsSync33(dirname18(outputPath))) {
21327
+ if (!existsSync32(dirname18(outputPath))) {
21273
21328
  mkdirSync20(dirname18(outputPath), { recursive: true });
21274
21329
  }
21275
21330
  const workDir = createStagingDir(dirname18(outputPath), `${basename8(outputPath)}.assemble-work-`);
@@ -21293,7 +21348,7 @@ async function assemble(planDir, chunkOutputs, audioPath, outputPath, options) {
21293
21348
  try {
21294
21349
  const videoSources = cfrEncoder ? [await reencodeCfr(ctx, chunkPaths, cfrEncoder)] : chunkPaths;
21295
21350
  const finalPath = join47(workDir, `output.${format}`);
21296
- const audio = audioPath !== null && existsSync33(audioPath) ? audioPath : null;
21351
+ const audio = audioPath !== null && existsSync32(audioPath) ? audioPath : null;
21297
21352
  await writeJoined(ctx, videoSources, audio, finalPath);
21298
21353
  renameWithRetry(finalPath, outputPath);
21299
21354
  log.info("[assemble] stage timings", {
@@ -21311,7 +21366,7 @@ async function assemble(planDir, chunkOutputs, audioPath, outputPath, options) {
21311
21366
  });
21312
21367
  }
21313
21368
  }
21314
- const fileSize = existsSync33(outputPath) ? statSync12(outputPath).size : 0;
21369
+ const fileSize = existsSync32(outputPath) ? statSync12(outputPath).size : 0;
21315
21370
  return {
21316
21371
  ...referenceBackgroundResult(plan2[REFERENCE_BACKGROUND_FIELD]),
21317
21372
  outputPath,
@@ -21323,13 +21378,13 @@ async function assemble(planDir, chunkOutputs, audioPath, outputPath, options) {
21323
21378
  function readAssemblePlan(planDir, chunkPaths) {
21324
21379
  const planJsonPath = join47(planDir, "plan.json");
21325
21380
  const chunksJsonPath = join47(planDir, "meta", "chunks.json");
21326
- if (!existsSync33(planJsonPath)) {
21381
+ if (!existsSync32(planJsonPath)) {
21327
21382
  throw new Error(`[assemble] planDir missing plan.json: ${planJsonPath}`);
21328
21383
  }
21329
21384
  const plan2 = JSON.parse(readFileSync15(planJsonPath, "utf-8"));
21330
21385
  readPlanProtocolV1(plan2, DISTRIBUTED_RENDER_CAPABILITIES.roles.assembler);
21331
21386
  validatePlanV2MaterializedTarget(planDir, { role: "assembler" });
21332
- if (!existsSync33(chunksJsonPath)) {
21387
+ if (!existsSync32(chunksJsonPath)) {
21333
21388
  throw new Error(`[assemble] planDir missing meta/chunks.json: ${chunksJsonPath}`);
21334
21389
  }
21335
21390
  const chunks = JSON.parse(readFileSync15(chunksJsonPath, "utf-8"));
@@ -21344,7 +21399,7 @@ function readAssemblePlan(planDir, chunkPaths) {
21344
21399
  }
21345
21400
  }
21346
21401
  for (const path of chunkPaths.flat()) {
21347
- if (!existsSync33(path)) {
21402
+ if (!existsSync32(path)) {
21348
21403
  throw new Error(`[assemble] chunk path does not exist: ${path}`);
21349
21404
  }
21350
21405
  }
@@ -21483,7 +21538,7 @@ function planFormat(planDir) {
21483
21538
  }
21484
21539
  function lockedAudio(planDir) {
21485
21540
  const encoderJsonPath = join47(planDir, "meta", "encoder.json");
21486
- if (!existsSync33(encoderJsonPath)) return {};
21541
+ if (!existsSync32(encoderJsonPath)) return {};
21487
21542
  return JSON.parse(readFileSync15(encoderJsonPath, "utf-8"));
21488
21543
  }
21489
21544
  function readCfrEncoder(planDir, format) {
@@ -21493,7 +21548,7 @@ function readCfrEncoder(planDir, format) {
21493
21548
  );
21494
21549
  }
21495
21550
  const encoderJsonPath = join47(planDir, "meta", "encoder.json");
21496
- if (!existsSync33(encoderJsonPath)) {
21551
+ if (!existsSync32(encoderJsonPath)) {
21497
21552
  throw new Error(`[assemble] planDir missing meta/encoder.json: ${encoderJsonPath}`);
21498
21553
  }
21499
21554
  const encoderJson = JSON.parse(readFileSync15(encoderJsonPath, "utf-8"));
@@ -21505,7 +21560,7 @@ function readCfrEncoder(planDir, format) {
21505
21560
  return encoderJson;
21506
21561
  }
21507
21562
  function mergePngFrameDirs(chunkPaths, outputPath, totalFrames, audioPath, startTimeMs) {
21508
- if (existsSync33(outputPath)) rmSync18(outputPath, { recursive: true, force: true });
21563
+ if (existsSync32(outputPath)) rmSync18(outputPath, { recursive: true, force: true });
21509
21564
  mkdirSync20(outputPath, { recursive: true });
21510
21565
  let globalIdx = 0;
21511
21566
  for (const chunkDir of chunkPaths) {
@@ -21529,7 +21584,7 @@ function mergePngFrameDirs(chunkPaths, outputPath, totalFrames, audioPath, start
21529
21584
  `[assemble] png-sequence frame count mismatch: merged ${globalIdx} frames vs plan.totalFrames=${totalFrames}. Using on-disk count.`
21530
21585
  );
21531
21586
  }
21532
- if (audioPath !== null && existsSync33(audioPath)) {
21587
+ if (audioPath !== null && existsSync32(audioPath)) {
21533
21588
  const sidecar = join47(outputPath, MIXED_AUDIO_FILENAME);
21534
21589
  cpSync3(audioPath, sidecar);
21535
21590
  }