hyperframes 0.9.59 → 0.9.61

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 (332) hide show
  1. package/dist/{add-C7J7HSLI.js → add-LNPIKHAX.js} +26 -27
  2. package/dist/{agentPromptGenerator-GCLJUGVE.js → agentPromptGenerator-N3HL4JWM.js} +15 -17
  3. package/dist/{animatedGifPrep-JPQZPZC4.js → animatedGifPrep-SEPXIM4W.js} +20 -21
  4. package/dist/api.d.ts +8 -1
  5. package/dist/api.js +58 -58
  6. package/dist/{appHistory-TQ6JAEP5.js → appHistory-ASGUPUUV.js} +5 -6
  7. package/dist/{asset-HQEPGBDJ.js → asset-3L2G3ROU.js} +15 -5
  8. package/dist/{assetCataloger-LMPPKPF6.js → assetCataloger-3D75A6GI.js} +16 -18
  9. package/dist/{audio-FD2EBZ6D.js → audio-U4W5ZWQ7.js} +45 -45
  10. package/dist/{auth-JA7XH6NG.js → auth-V4G5ZE3P.js} +4 -4
  11. package/dist/{autoUpdate-WKW2OMIY.js → autoUpdate-QYKF3DDS.js} +4 -4
  12. package/dist/{avatars-Q7U6CO4X.js → avatars-SB2XCDWJ.js} +23 -25
  13. package/dist/{backgroundChecks-H2SOS2CM.js → backgroundChecks-KHBYRE6J.js} +5 -5
  14. package/dist/backgroundChecksWorker.js +5 -5
  15. package/dist/{batchRender-75OLVMZY.js → batchRender-6S5GMICZ.js} +7 -9
  16. package/dist/{beats-R4EHWWJN.js → beats-7YLYCCMD.js} +16 -18
  17. package/dist/{benchmark-F5OHG3Q3.js → benchmark-IBX7ZWVU.js} +27 -27
  18. package/dist/{billing-LBRSBVXQ.js → billing-EAHOGMQW.js} +21 -23
  19. package/dist/{browser-CNTCFZOG.js → browser-XKYRXDJW.js} +13 -15
  20. package/dist/{bundleWithLocalizedFonts-RVF7AFP5.js → bundleWithLocalizedFonts-ZFX7TSWT.js} +1 -1
  21. package/dist/{capture-CTRZEZTC.js → capture-4WKQKMXG.js} +10 -12
  22. package/dist/{capture-DLYM3V5F.js → capture-IBOCZ2MK.js} +43 -41
  23. package/dist/{captureCompositionFrame-2O2HP6SK.js → captureCompositionFrame-HZA3LNU3.js} +22 -24
  24. package/dist/{captureFile-W7ZDDBCD.js → captureFile-Z7HQDRC2.js} +4 -5
  25. package/dist/{catalog-6XL63LU3.js → catalog-TSXQTLKM.js} +28 -30
  26. package/dist/{catch-up-AOFQWE6O.js → catch-up-LD2B5CE3.js} +15 -17
  27. package/dist/{check-5V7K4RL6.js → check-TEZKUD26.js} +62 -63
  28. package/dist/{checkAudio-4YUTDQSQ.js → checkAudio-3GM74ZGV.js} +18 -20
  29. package/dist/{checkBrowser-BAWRZZZU.js → checkBrowser-OFH3I7Q6.js} +52 -53
  30. package/dist/{chunk-6ATP7YPZ.js → chunk-22B53HD3.js} +9 -4
  31. package/dist/{chunk-7Q4EGB3N.js → chunk-2CNVJQKU.js} +1 -1
  32. package/dist/{chunk-7XOORL2Q.js → chunk-2H4SJSUS.js} +10 -10
  33. package/dist/{chunk-EGZQX3UX.js → chunk-2SPQTJA2.js} +24 -22
  34. package/dist/{chunk-HY7FPTBD.js → chunk-32H642MS.js} +2 -2
  35. package/dist/{chunk-MHF5F4FF.js → chunk-3GF72UPC.js} +74 -15
  36. package/dist/chunk-3HJX4F2S.js +39 -0
  37. package/dist/{chunk-7YRZBB4C.js → chunk-3ROFCQAW.js} +1 -1
  38. package/dist/{chunk-B653JKWT.js → chunk-3W2ORSFV.js} +4 -4
  39. package/dist/{chunk-R3ONQOLE.js → chunk-4AMOVEV7.js} +11 -11
  40. package/dist/{chunk-KQHDFVFF.js → chunk-4EWS3KP3.js} +2 -2
  41. package/dist/{chunk-O733DEVT.js → chunk-4ORH2OXS.js} +1 -1
  42. package/dist/{chunk-VPPKUCSP.js → chunk-4SDNEKTL.js} +2 -2
  43. package/dist/{chunk-AEXDJU77.js → chunk-4T45V6GF.js} +1 -1
  44. package/dist/{chunk-MVA4OQL7.js → chunk-4ZLWEPK4.js} +1 -1
  45. package/dist/{chunk-2ARKMOCD.js → chunk-5F2ULLFW.js} +6 -6
  46. package/dist/{chunk-CIXP5G7Z.js → chunk-5GUYYSVT.js} +1 -1
  47. package/dist/{chunk-JQ7BPN2R.js → chunk-5RM7274K.js} +3 -3
  48. package/dist/{chunk-TVWDS5AT.js → chunk-5T2LNQAH.js} +46 -18
  49. package/dist/{chunk-C3NDLM4S.js → chunk-5ZAM42GH.js} +2 -2
  50. package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
  51. package/dist/{chunk-5T6HPV25.js → chunk-63CSQYYO.js} +2 -2
  52. package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
  53. package/dist/{chunk-Z2U7ELGP.js → chunk-6KU6TCSS.js} +2 -2
  54. package/dist/{chunk-ZQIMO52O.js → chunk-6NDSDQCR.js} +59 -24
  55. package/dist/{chunk-65X2G57W.js → chunk-6OKMCIDU.js} +4 -4
  56. package/dist/{chunk-LZWG4GCC.js → chunk-6P7FLYOR.js} +55 -125
  57. package/dist/{chunk-FQ26QE5N.js → chunk-6R22Y26Z.js} +1 -1
  58. package/dist/{chunk-WQGDE3L6.js → chunk-6X2CLRU7.js} +1 -1
  59. package/dist/{chunk-OV5OSN74.js → chunk-6ZU654EU.js} +3 -3
  60. package/dist/{chunk-6LGB4MVX.js → chunk-73NC557V.js} +1 -1
  61. package/dist/{chunk-AQIHV4PM.js → chunk-7463BOQJ.js} +2 -2
  62. package/dist/{chunk-I6OSAVHD.js → chunk-7AP5C4C2.js} +7 -11
  63. package/dist/{chunk-JLMMY3UI.js → chunk-7DMES2F3.js} +2 -2
  64. package/dist/{chunk-RKIF4EU7.js → chunk-7GDEQJSL.js} +14 -14
  65. package/dist/{chunk-ECGNWHFE.js → chunk-A2ZUVULS.js} +88 -2
  66. package/dist/{chunk-OPIS2YMA.js → chunk-ADQ7XZE5.js} +6 -6
  67. package/dist/{chunk-ZIYYSD6S.js → chunk-B5JWBMDR.js} +79 -40
  68. package/dist/{chunk-PLOCYJ5U.js → chunk-B5TLZC2D.js} +11 -4
  69. package/dist/{chunk-UNB2DFR2.js → chunk-BAU3ASNM.js} +3 -3
  70. package/dist/{chunk-DSCMYTKJ.js → chunk-BHZZM2PK.js} +3 -3
  71. package/dist/chunk-BNH2IKGV.js +5101 -0
  72. package/dist/{chunk-SO7FT7YA.js → chunk-BNO5RN55.js} +33 -32
  73. package/dist/{chunk-TNFTRLLJ.js → chunk-C2GAAMZ3.js} +3 -3
  74. package/dist/{chunk-TIBFCGLT.js → chunk-C7IEAEKF.js} +1 -1
  75. package/dist/{chunk-EUVU5JS4.js → chunk-CAAUQUCW.js} +23 -9
  76. package/dist/{chunk-GMIFMRWR.js → chunk-CPHK3XMF.js} +6 -6
  77. package/dist/{chunk-SGQKP2JT.js → chunk-CPLVXXRS.js} +2 -2
  78. package/dist/{chunk-KYXH4JWF.js → chunk-CRX444MF.js} +18 -17
  79. package/dist/{chunk-6R4MEYWD.js → chunk-CRZ7FUMI.js} +2 -2
  80. package/dist/{chunk-I5H2FPNP.js → chunk-CSWJCRDU.js} +1 -1
  81. package/dist/{chunk-PSREPOJ4.js → chunk-CT54FOTS.js} +18 -14
  82. package/dist/{chunk-TJGGLLQJ.js → chunk-CYM53TWZ.js} +28 -14
  83. package/dist/chunk-D37I36FY.js +21 -0
  84. package/dist/{chunk-3RTZ2UX7.js → chunk-DD37XZVE.js} +1 -1
  85. package/dist/{chunk-QKHW5NXL.js → chunk-DWGDP537.js} +2 -2
  86. package/dist/chunk-EDH2DMXM.js +113 -0
  87. package/dist/{chunk-PCHUX7Y5.js → chunk-ENKXJNKX.js} +2 -2
  88. package/dist/{chunk-VXRTE7MZ.js → chunk-ERYGKPIR.js} +1 -1
  89. package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
  90. package/dist/{chunk-PHYFZXOS.js → chunk-FLJ4S7NA.js} +2 -2
  91. package/dist/{chunk-3DFEBAWJ.js → chunk-FU62NEWC.js} +2 -2
  92. package/dist/{chunk-PDT6CBK2.js → chunk-G7HO2FFX.js} +3 -3
  93. package/dist/chunk-GADMF4BL.js +170 -0
  94. package/dist/{chunk-HXFGAI6L.js → chunk-GNRC4L6F.js} +16 -16
  95. package/dist/{chunk-XZ6THYIK.js → chunk-GYPZTG46.js} +5 -5
  96. package/dist/{chunk-GYJ7AJXN.js → chunk-H4HYZUE3.js} +1 -1
  97. package/dist/{chunk-URHIQHDR.js → chunk-H6Y4XOSP.js} +14 -12
  98. package/dist/{chunk-TIZC4XKU.js → chunk-HAMPVCRY.js} +2 -2
  99. package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
  100. package/dist/{chunk-YMKCJRVK.js → chunk-HTHLFEO2.js} +1 -1
  101. package/dist/{chunk-RAOGN2HG.js → chunk-ICZWQNBR.js} +1 -1
  102. package/dist/{chunk-4STRMCGD.js → chunk-IIXSSRUR.js} +4 -4
  103. package/dist/{chunk-4QSDXDLV.js → chunk-ILKK6F5E.js} +3 -3
  104. package/dist/{chunk-ORKZUTZW.js → chunk-IOWECUEU.js} +1 -1
  105. package/dist/{chunk-T5QI7ZL2.js → chunk-IT2YUKYY.js} +5 -5
  106. package/dist/{chunk-SXCM6VY3.js → chunk-IU6AC3WL.js} +1 -1
  107. package/dist/{chunk-WDMSNDHS.js → chunk-J56ZJFSF.js} +285 -114
  108. package/dist/{chunk-POFQOZOF.js → chunk-KBEC6VQS.js} +426 -185
  109. package/dist/{chunk-ELDZ6C3R.js → chunk-KTY46LIH.js} +7 -3
  110. package/dist/{chunk-XXOEYRD5.js → chunk-KYZEK7QF.js} +2 -2
  111. package/dist/{chunk-N6QWL3E7.js → chunk-L7MFHIG7.js} +2 -2
  112. package/dist/{chunk-ISSG4PUD.js → chunk-LGIWC6KN.js} +3 -3
  113. package/dist/{chunk-CC72LTIT.js → chunk-LTXZLTXW.js} +180 -202
  114. package/dist/{chunk-WI3FM54X.js → chunk-LULZFFDN.js} +3 -3
  115. package/dist/{chunk-FFL5R2EZ.js → chunk-LV2ETFC5.js} +4 -4
  116. package/dist/{chunk-K2WLOTTF.js → chunk-LYTELQL2.js} +2 -4
  117. package/dist/{chunk-RHFB457E.js → chunk-LZSSGF7G.js} +3 -3
  118. package/dist/chunk-MERWX4DZ.js +159 -0
  119. package/dist/{chunk-H3TD4VKX.js → chunk-MJBBKSKB.js} +1 -1
  120. package/dist/{chunk-QHVE6AFU.js → chunk-MPVJI4SE.js} +1 -1
  121. package/dist/{chunk-BMTT2T7M.js → chunk-MPX3FO4A.js} +5 -5
  122. package/dist/{chunk-SC7SX2I3.js → chunk-MQCIX6O2.js} +4 -4
  123. package/dist/{chunk-ODLSLYJR.js → chunk-MTCVUAUK.js} +2 -2
  124. package/dist/{chunk-J4OHC5FU.js → chunk-NK2UW3WR.js} +1 -1
  125. package/dist/{chunk-7CI5MLCC.js → chunk-NOJRZCN3.js} +26 -11
  126. package/dist/{chunk-3QMGLSKC.js → chunk-NU7BEOCX.js} +2 -2
  127. package/dist/chunk-NY6E4272.js +112 -0
  128. package/dist/{chunk-L4MXZHRB.js → chunk-OBP5WNKP.js} +3 -3
  129. package/dist/{chunk-JUUOYXWH.js → chunk-OGOR22GY.js} +2 -2
  130. package/dist/{chunk-XWV6BOCG.js → chunk-OPUR2XQ2.js} +5 -5
  131. package/dist/{chunk-JT7RXK2N.js → chunk-OW6MOJSR.js} +1 -1
  132. package/dist/{chunk-4VJQVTQI.js → chunk-PAHTZDMZ.js} +1 -1
  133. package/dist/{chunk-FC77MYAD.js → chunk-PPETKAEO.js} +1 -1
  134. package/dist/{chunk-6VY52EVW.js → chunk-PQ2OPPGP.js} +7 -3
  135. package/dist/{chunk-KK5Z5XQ3.js → chunk-PTGNUVCB.js} +3 -0
  136. package/dist/{chunk-HTISHNLA.js → chunk-Q7IOMZ5X.js} +1 -1
  137. package/dist/{chunk-PMKWTXHE.js → chunk-R2LBMDYH.js} +2 -2
  138. package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
  139. package/dist/{chunk-ZMLZRMG7.js → chunk-RDJOA5MM.js} +2 -2
  140. package/dist/{chunk-J3H6QDDY.js → chunk-RF3DT4CS.js} +1 -1
  141. package/dist/{chunk-WRSGWDDB.js → chunk-RJCQZMNI.js} +9 -9
  142. package/dist/{chunk-QC35TPEE.js → chunk-RRI7NGQZ.js} +6 -6
  143. package/dist/{chunk-RDWGNSVI.js → chunk-RSYV6NNI.js} +2 -2
  144. package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
  145. package/dist/{chunk-KGPHUBBA.js → chunk-SCEBICAQ.js} +1 -1
  146. package/dist/{chunk-VFGFXE6J.js → chunk-SDIQEPAR.js} +1 -1
  147. package/dist/{chunk-OF7SQ77J.js → chunk-SIQGTRZ5.js} +1 -1
  148. package/dist/{chunk-QVHDAS3L.js → chunk-SQI2MWJE.js} +4 -4
  149. package/dist/{chunk-2LJPBYKI.js → chunk-SYMLVFQF.js} +1 -1
  150. package/dist/{chunk-QJ2BV7FM.js → chunk-TJAFCC37.js} +9 -9
  151. package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
  152. package/dist/{chunk-PYRM3OAI.js → chunk-TRVWLAQ3.js} +11 -13
  153. package/dist/{chunk-HLOJSBGC.js → chunk-TTRX7NM3.js} +9 -9
  154. package/dist/{chunk-763UG5II.js → chunk-UEJMLVGW.js} +8 -8
  155. package/dist/{chunk-LTOUXR3X.js → chunk-UX5KLSAJ.js} +73 -75
  156. package/dist/{chunk-L456Q4KU.js → chunk-VJVTGSGW.js} +1 -1
  157. package/dist/{chunk-RX67N2PU.js → chunk-VM2VBJRC.js} +31 -2
  158. package/dist/{chunk-K33E3YNK.js → chunk-VNWPHKKI.js} +10 -10
  159. package/dist/{chunk-XXJBWKDS.js → chunk-VRUVJTFW.js} +17 -17
  160. package/dist/{chunk-WTZT6FSK.js → chunk-VSS3OAZB.js} +1 -1
  161. package/dist/{chunk-6UAYOSE7.js → chunk-VZM7AFUH.js} +9 -9
  162. package/dist/{chunk-6K6RIX2A.js → chunk-W772ZFTE.js} +21 -6
  163. package/dist/{chunk-THGJTFYB.js → chunk-WTO3A7ET.js} +86 -6
  164. package/dist/{chunk-YBYNBKCN.js → chunk-WTS245RC.js} +2 -2
  165. package/dist/{chunk-UBNJWS2H.js → chunk-WTUDKVWQ.js} +3 -3
  166. package/dist/{chunk-BTXYXM2A.js → chunk-WVCCSYZC.js} +17 -17
  167. package/dist/{chunk-FGJUVWAM.js → chunk-X3NGTIE3.js} +1 -1
  168. package/dist/{chunk-DCRHNRUY.js → chunk-XLG3JMSS.js} +5 -5
  169. package/dist/{chunk-D44MBZI6.js → chunk-Y53Z2M77.js} +2 -2
  170. package/dist/{chunk-WKE3WTIU.js → chunk-YB2ZJJFJ.js} +1 -1
  171. package/dist/{chunk-LSGJY2FG.js → chunk-YLC67YFR.js} +1 -1
  172. package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
  173. package/dist/chunk-Z3BPDCRV.js +537 -0
  174. package/dist/{chunk-HYXQR5I3.js → chunk-Z55ASKZE.js} +1 -1
  175. package/dist/{chunk-OYKAS3J5.js → chunk-ZBDITGMP.js} +3 -3
  176. package/dist/{chunk-CAMD2NBN.js → chunk-ZGSGBGTB.js} +2 -2
  177. package/dist/{clean-Z5REUSNY.js → clean-RJKQ23WH.js} +36 -37
  178. package/dist/cli.js +74 -75
  179. package/dist/{cloud-NJ7G3NF3.js → cloud-R3NQSUTQ.js} +4 -4
  180. package/dist/{cloud-QP5R6B6A.js → cloud-VUR3ZO6O.js} +8 -9
  181. package/dist/{cloudrun-CPAZLNTW.js → cloudrun-SZYAYV7N.js} +19 -12
  182. package/dist/{compare-T5CHD25P.js → compare-AO5VJBJW.js} +70 -92
  183. package/dist/{compiler-QVDXN4OS.js → compiler-65SP7M2P.js} +7 -9
  184. package/dist/{component-QMZ46KTE.js → component-WGTPAIKX.js} +8 -10
  185. package/dist/{compositions-JHYYNBAK.js → compositions-HWM6DNJA.js} +21 -23
  186. package/dist/{contactSheet-7SPGUTDV.js → contactSheet-ROUVWDRO.js} +5 -6
  187. package/dist/{curve-ON6QQY7T.js → curve-PLPTMDS4.js} +20 -22
  188. package/dist/{cuts-K4FOVP4E.js → cuts-T5GYTDUA.js} +21 -23
  189. package/dist/{delete-6WFQ3FC2.js → delete-6WE3N3VO.js} +26 -15
  190. package/dist/{deploy-UAZQ5PBA.js → deploy-GYY6CYQD.js} +12 -13
  191. package/dist/{describeProject-7W6BN5A2.js → describeProject-UQQ2GGIX.js} +15 -17
  192. package/dist/{destroy-4B4OVPHJ.js → destroy-WSGREGAG.js} +12 -13
  193. package/dist/{deterministicFonts-VLIVGXUQ.js → deterministicFonts-JER4GPCM.js} +4 -5
  194. package/dist/{diff-ZSA37QQS.js → diff-JQBZUPKG.js} +57 -54
  195. package/dist/{dist-ACT5C6ME.js → dist-6EF2P3P7.js} +4 -4
  196. package/dist/{dist-VRYZIJFZ.js → dist-HF753IX4.js} +5 -8
  197. package/dist/{dist-2O52E7QZ.js → dist-JRJHFP27.js} +20 -21
  198. package/dist/{doctor-RXQ2Y2YY.js → doctor-SPJ5AJKX.js} +23 -25
  199. package/dist/{dotEnv-RZ52L7X3.js → dotEnv-7JWLJ2TG.js} +11 -3
  200. package/dist/{energy-DRA3DCRO.js → energy-KPDVIZ5D.js} +21 -23
  201. package/dist/{events-AJNF2C3H.js → events-4WAMG3JE.js} +10 -12
  202. package/dist/{events-4SNBQE3M.js → events-P4223ZZZ.js} +23 -25
  203. package/dist/{events-GA3YM3WT.js → events-XON5I7VU.js} +5 -5
  204. package/dist/{execute-6LTZRWE4.js → execute-CN5FLBYU.js} +49 -46
  205. package/dist/{extract-XZQN654B.js → extract-ABSBKYYH.js} +21 -23
  206. package/dist/{face-RKUNVSN3.js → face-PLPQ5335.js} +22 -24
  207. package/dist/{feedback-AL7NPPMZ.js → feedback-QPQ4G72X.js} +62 -38
  208. package/dist/{ffmpeg-BEL7EZBA.js → ffmpeg-F3XK57IP.js} +14 -16
  209. package/dist/{figma-IZ3NH2KZ.js → figma-S5CVANVZ.js} +3 -3
  210. package/dist/fontLocalizeCli.js +26 -27
  211. package/dist/{frames-AYE53CSZ.js → frames-F4QEQB4V.js} +23 -25
  212. package/dist/{generate-BZ4EVVQI.js → generate-O3OPOCHP.js} +37 -39
  213. package/dist/{get-2GG4NSOK.js → get-P7LQ7U22.js} +26 -15
  214. package/dist/{gpuPolicy-W2ZGBXNG.js → gpuPolicy-JPRDRQWU.js} +14 -16
  215. package/dist/{grade-compare-65NWHVXK.js → grade-compare-6UZ6SK4J.js} +50 -51
  216. package/dist/hangReport.js +2 -2
  217. package/dist/{heifImagePrep-MRQ4KKDF.js → heifImagePrep-3PDFNYIE.js} +21 -22
  218. package/dist/{help-TEQWNNPI.js → help-DLOCAL7E.js} +1 -1
  219. package/dist/{history-MVNPETRW.js → history-YIJVOGH7.js} +23 -25
  220. package/dist/hyperframe.manifest.json +1 -1
  221. package/dist/hyperframe.runtime.iife.js +64 -64
  222. package/dist/hyperframes-player.global.js +1 -1
  223. package/dist/{info-NGNTHWYX.js → info-FVYJNNQL.js} +23 -25
  224. package/dist/{init-H7SUGVZX.js → init-V45K4VAG.js} +41 -43
  225. package/dist/{ink-CPZ4YZFM.js → ink-P72OB7L4.js} +21 -23
  226. package/dist/{inspect-GZBQ7XN7.js → inspect-3W2IG3JF.js} +53 -54
  227. package/dist/{installer-ZTHYVK4L.js → installer-QGDTFTDU.js} +8 -10
  228. package/dist/{keyframes-B52LQUOI.js → keyframes-57OPHIR2.js} +77 -28
  229. package/dist/{lambda-SZDQJMKA.js → lambda-EQZS7UMO.js} +32 -26
  230. package/dist/{layout-BOUOG2D2.js → layout-KSWMO6MH.js} +53 -54
  231. package/dist/{lint-H4OWI5JN.js → lint-WIYBGVF2.js} +18 -20
  232. package/dist/{lintProject-P4EAXFU2.js → lintProject-N3UN6HEE.js} +4 -4
  233. package/dist/{list-VNEYACGL.js → list-3FQAHEE2.js} +27 -16
  234. package/dist/{localPage-ZP7WVA2N.js → localPage-G2QEA7JL.js} +15 -17
  235. package/dist/{login-RUDOUO5Z.js → login-C3U6WSHF.js} +6 -6
  236. package/dist/{logout-5ZO6ZNS3.js → logout-525LWS6J.js} +2 -2
  237. package/dist/{look-G3NVPKXZ.js → look-U5LWOI4H.js} +21 -23
  238. package/dist/{manager-KWNID2ZA.js → manager-C5S25OOK.js} +5 -5
  239. package/dist/{manager-NXH2NJC6.js → manager-ZVYDWLHI.js} +16 -18
  240. package/dist/{measure-5PVIZ2W2.js → measure-R2KZIHXT.js} +11 -11
  241. package/dist/{media-treatment-T5QJI4PQ.js → media-treatment-FAW5ZLT7.js} +29 -29
  242. package/dist/{media-use-RTN3SMVY.js → media-use-CPTT2ZDE.js} +12 -8
  243. package/dist/{models-J2CJ7EVX.js → models-53JHNGSL.js} +20 -22
  244. package/dist/{motionShot-HU7P26WJ.js → motionShot-K5ZHHHE6.js} +28 -30
  245. package/dist/{normalize-44E7R6T5.js → normalize-TBACWMEK.js} +4 -5
  246. package/dist/{normalize-audio-2YFTP2T6.js → normalize-audio-EOO2ORPP.js} +20 -21
  247. package/dist/{open-RSCNUV6E.js → open-3YABRCER.js} +26 -28
  248. package/dist/{parakeetRunner-BUY25EIR.js → parakeetRunner-TLZC2WAJ.js} +24 -26
  249. package/dist/{pipeline-A4RL5R5P.js → pipeline-LZ73CHLB.js} +20 -20
  250. package/dist/{plan-7WYNPILA.js → plan-3QQZ57IC.js} +31 -33
  251. package/dist/{play-UKHFNMYZ.js → play-ESWP4SF2.js} +44 -43
  252. package/dist/{preflight-2VFCT3PI.js → preflight-7G5OBMAA.js} +17 -19
  253. package/dist/{present-ZUGFCQOF.js → present-5ER4JKR5.js} +36 -37
  254. package/dist/{preview-BT2ZFYMC.js → preview-62XOVSXM.js} +50 -50
  255. package/dist/privateProjectFile-6NPNZXK3.js +65 -0
  256. package/dist/{probe-2CLEK2UT.js → probe-CFOGEVFU.js} +21 -23
  257. package/dist/{producer-HCAMS55D.js → producer-LLE32VVO.js} +1 -1
  258. package/dist/{progress-5A4N7PTR.js → progress-PT3NAFVP.js} +5 -6
  259. package/dist/{projectConfig-2KJ2PXIM.js → projectConfig-R54UDB5Y.js} +11 -13
  260. package/dist/{publication-AR63EGJF.js → publication-TOBV6M4Q.js} +6 -8
  261. package/dist/{publish-EGKYOJWV.js → publish-QVNH5PXC.js} +63 -42
  262. package/dist/receivedRecordFollow-U43DTVLP.js +54 -0
  263. package/dist/{refresh-GYRLZ7DZ.js → refresh-HK4YEHWC.js} +2 -2
  264. package/dist/{remove-background-IQQPMM24.js → remove-background-XHE6JL35.js} +21 -21
  265. package/dist/{render-HJRMJYTA.js → render-7JJ2DFEB.js} +12 -13
  266. package/dist/{render-ROJ5X53T.js → render-GRZMK6ET.js} +128 -87
  267. package/dist/{render-YNSZYEEK.js → render-WK3D5VOW.js} +141 -114
  268. package/dist/{render-batch-MXYDIHRO.js → render-batch-KFEZFJXB.js} +12 -13
  269. package/dist/renderSetupWorker.js +9 -9
  270. package/dist/{resolver-SPLAVF76.js → resolver-N4U52UK5.js} +8 -10
  271. package/dist/{reverse-CE6OGBB7.js → reverse-6AOA3PXF.js} +1 -1
  272. package/dist/{run-YVNJJL26.js → run-M2J3ZJ3W.js} +11 -12
  273. package/dist/{sam-2D3BUTL7.js → sam-O7Y2CCK3.js} +4 -4
  274. package/dist/{screenshotCapture-DRO7VMNI.js → screenshotCapture-UXJZ7D3L.js} +17 -19
  275. package/dist/{service-K65JYG4O.js → service-DBNZZLPU.js} +22 -24
  276. package/dist/{share-CSVWF6SB.js → share-6P7S3USP.js} +26 -28
  277. package/dist/{sherpa-JE6AFUEV.js → sherpa-CXEHEVAJ.js} +23 -25
  278. package/dist/sherpaWorker.js +6 -7
  279. package/dist/{sites-QCGTWVNF.js → sites-R5F5FNAL.js} +6 -6
  280. package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
  281. package/dist/skills/media-use/audio/references/tts-to-captions.md +1 -1
  282. package/dist/skills/media-use/audio/references/tts.md +6 -6
  283. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +143 -2
  284. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +12 -2
  285. package/dist/skills/media-use/scripts/lib/candidates.mjs +3 -2
  286. package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
  287. package/dist/skills/media-use/scripts/lib/terminal-text.mjs +12 -0
  288. package/dist/skills/media-use/scripts/resolve.mjs +21 -15
  289. package/dist/{skills-L3BXM7VJ.js → skills-RMIHFNI6.js} +15 -17
  290. package/dist/{skillsUpdateCheck-VUENI5OR.js → skillsUpdateCheck-EHOSL2AC.js} +5 -5
  291. package/dist/{snapshot-GI2GWIF6.js → snapshot-DQK3P7TF.js} +97 -84
  292. package/dist/{src-ZXZO5RCJ.js → src-4INHWM6L.js} +29 -30
  293. package/dist/{src-B646B52O.js → src-BNSCFKOD.js} +17 -19
  294. package/dist/{start-ZNGKXRNE.js → start-KPCEUG5K.js} +43 -37
  295. package/dist/{state-7CJBWHXJ.js → state-5LE7AN6F.js} +5 -6
  296. package/dist/{staticProjectServer-46T6YTPF.js → staticProjectServer-VCS4TOU2.js} +33 -34
  297. package/dist/{status-7SWTPLVI.js → status-WBNQSG4H.js} +23 -25
  298. package/dist/studio/assets/{hyperframes-player-bya4hgms.js → hyperframes-player-Cm0hYGm2.js} +1 -1
  299. package/dist/studio/assets/{index-Bxh5lW0C.js → index-BGrNWeLK.js} +199 -199
  300. package/dist/studio/assets/{index--dcfSUzI.js → index-REqr_dLu.js} +1 -1
  301. package/dist/studio/assets/{pausedVideoDecoder-BKym1jA6.js → pausedVideoDecoder-DqLDSq8J.js} +1 -1
  302. package/dist/studio/index.html +1 -1
  303. package/dist/{studio-api-4XKM5HDR.js → studio-api-RAW4CIPR.js} +20 -21
  304. package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
  305. package/dist/{studioServer-4TWRIZNU.js → studioServer-5PWBZADN.js} +260 -117
  306. package/dist/subCompositionWorker.js +60 -54
  307. package/dist/{sync-R3K6LYB3.js → sync-PM2WLBUC.js} +21 -23
  308. package/dist/{synthesize-OZ3SJTOF.js → synthesize-NGU4DRKC.js} +10 -9
  309. package/dist/{system-LZ4PMOJD.js → system-PKL4Y4MX.js} +3 -3
  310. package/dist/{telemetry-WSBY25O3.js → telemetry-4BST73P2.js} +10 -12
  311. package/dist/{templates-ITP6ISAF.js → templates-G3XOWYXG.js} +24 -26
  312. package/dist/{timeline-U7GJMYKV.js → timeline-E6ZXYGQR.js} +36 -37
  313. package/dist/{tokens-3YTSUU27.js → tokens-KRHXM44C.js} +15 -5
  314. package/dist/{transcribe-QHHY5M3G.js → transcribe-RJ3GOCJL.js} +44 -46
  315. package/dist/{transcribe-ISCBYWN4.js → transcribe-TKV3POYD.js} +20 -22
  316. package/dist/{tts-24IJXIT2.js → tts-EPXRE275.js} +20 -4
  317. package/dist/{update-SVEH2GOL.js → update-TO7MLJCS.js} +17 -19
  318. package/dist/{updateCheck-MDG7N7VO.js → updateCheck-5AY447D5.js} +4 -4
  319. package/dist/{upgrade-6CGAI4OR.js → upgrade-BLZWWXYL.js} +8 -9
  320. package/dist/{urlDownloader-VPQTIGEH.js → urlDownloader-ME67HQ4O.js} +13 -15
  321. package/dist/{validate-QUB4KCEQ.js → validate-SRBV5NFV.js} +41 -42
  322. package/dist/{video-PUGZ5UHS.js → video-JPESR36I.js} +17 -19
  323. package/dist/{voices-4UO5AYLS.js → voices-AECYKXGA.js} +34 -36
  324. package/dist/warmCheck.js +62 -63
  325. package/dist/warmCheckClient.js +2 -2
  326. package/package.json +1 -1
  327. package/dist/chunk-6VY6WTY5.js +0 -279
  328. package/dist/chunk-NI7JVGOE.js +0 -5083
  329. package/dist/chunk-NLN5NY3P.js +0 -34
  330. package/dist/chunk-UVZIABYZ.js +0 -40
  331. package/dist/chunk-VC76R6W2.js +0 -27
  332. /package/dist/{chunk-YXX6CIHL.js → chunk-BWFNWEUO.js} +0 -0
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-PJQVJSMG.js";
22
22
  import {
23
23
  PREVIEW_FOR_ANOTHER_SITE_META
24
- } from "./chunk-YXX6CIHL.js";
24
+ } from "./chunk-BWFNWEUO.js";
25
25
  import {
26
26
  alphaDecoderFor,
27
27
  pixelFormatHasAlpha,
@@ -37,7 +37,7 @@ import {
37
37
  removeScratch,
38
38
  renameWithRetry,
39
39
  renameWithRetryAsync
40
- } from "./chunk-K2WLOTTF.js";
40
+ } from "./chunk-LYTELQL2.js";
41
41
  import {
42
42
  DISTRIBUTED_FPS,
43
43
  HF_COLOR_GROUP_ATTR,
@@ -67,7 +67,7 @@ import {
67
67
  resolveAuthoredTimingWindow,
68
68
  toFps,
69
69
  validateVariables
70
- } from "./chunk-QHVE6AFU.js";
70
+ } from "./chunk-MPVJI4SE.js";
71
71
  import {
72
72
  AUDIO_GROUP_RENDER_ID_ATTR,
73
73
  AUTHORED_SOURCE_BEGIN,
@@ -111,30 +111,31 @@ import {
111
111
  sourceTimeAt,
112
112
  timeAtSourceTime,
113
113
  volumeSegmentSampleCount
114
- } from "./chunk-NI7JVGOE.js";
115
- import {
116
- isSafePath
117
- } from "./chunk-MHF5F4FF.js";
114
+ } from "./chunk-BNH2IKGV.js";
118
115
  import {
116
+ isSafePath,
119
117
  terminalText
120
- } from "./chunk-UVZIABYZ.js";
118
+ } from "./chunk-3GF72UPC.js";
121
119
  import {
122
120
  browserPathFromEnv,
123
121
  buildChromeLaunchEnv,
124
122
  chromeMajorCeiling,
123
+ chromeSandboxArgs,
124
+ chromeSandboxEnabled,
125
125
  compareBrowserVersionsDescending,
126
126
  exceedsChromeCeiling,
127
127
  isManagedChromeDir,
128
128
  isPinnedHeadlessShell,
129
+ launchWithChromeSandboxFallback,
129
130
  pickSharedShell
130
- } from "./chunk-6LU6JICP.js";
131
+ } from "./chunk-YWUE4CRU.js";
131
132
  import {
132
133
  resolveReferencedStart
133
- } from "./chunk-HLOJSBGC.js";
134
+ } from "./chunk-TTRX7NM3.js";
134
135
  import {
135
136
  isWithinProjectRoot,
136
137
  resolveProjectRelativeSrc
137
- } from "./chunk-6EMFSRTW.js";
138
+ } from "./chunk-S35RUNXJ.js";
138
139
  import {
139
140
  LOW_MEMORY_TOTAL_MB_THRESHOLD,
140
141
  getAvailableMemoryMb,
@@ -143,7 +144,7 @@ import {
143
144
  hostCpuCount,
144
145
  isLowMemorySystem,
145
146
  usableCpuCount
146
- } from "./chunk-CIXP5G7Z.js";
147
+ } from "./chunk-5GUYYSVT.js";
147
148
  import {
148
149
  isPathInside
149
150
  } from "./chunk-IH2C53YV.js";
@@ -156,7 +157,7 @@ import {
156
157
  import {
157
158
  isPrivateFileUnder,
158
159
  isStudioPrivatePath
159
- } from "./chunk-KK5Z5XQ3.js";
160
+ } from "./chunk-PTGNUVCB.js";
160
161
  import {
161
162
  withHyperframesBrowserMarker
162
163
  } from "./chunk-4NTCQF3L.js";
@@ -175,10 +176,11 @@ import {
175
176
  FFMPEG_PATH_ENV,
176
177
  FFPROBE_PATH_ENV,
177
178
  SELF_CONTAINED_FORMATS,
179
+ assertLiteralMediaInput,
178
180
  findFfBinary,
179
181
  findTrustedExecutable,
180
182
  mediaInputFormatArgs
181
- } from "./chunk-RX67N2PU.js";
183
+ } from "./chunk-VM2VBJRC.js";
182
184
 
183
185
  // ../engine/src/services/referenceBackground.ts
184
186
  var REFERENCE_BACKGROUND_FIELD = "reference_background";
@@ -1043,83 +1045,10 @@ function scanHtmlOpeningTags(html) {
1043
1045
 
1044
1046
  // ../engine/src/services/browserManager.ts
1045
1047
  import { execFileSync } from "child_process";
1046
- import { existsSync as existsSync2, readdirSync } from "fs";
1048
+ import { existsSync, readdirSync } from "fs";
1047
1049
  import { join as join3 } from "path";
1048
1050
  import { homedir } from "os";
1049
1051
 
1050
- // ../engine/src/services/chromeSandbox.ts
1051
- import { existsSync, readFileSync } from "fs";
1052
- var NO_SANDBOX_ARGS = ["--no-sandbox", "--disable-setuid-sandbox", "--no-zygote"];
1053
- var SANDBOX_START_FAILURE = /No usable sandbox|Running as root without --no-sandbox|Failed to move to new namespace/;
1054
- function readTrimmed(path) {
1055
- try {
1056
- return readFileSync(path, "utf8").trim();
1057
- } catch {
1058
- return void 0;
1059
- }
1060
- }
1061
- var currentHost = () => ({
1062
- platform: process.platform,
1063
- env: process.env,
1064
- uid: process.getuid?.(),
1065
- exists: existsSync,
1066
- read: readTrimmed
1067
- });
1068
- var SERVERLESS_OR_ORCHESTRATED_ENV = [
1069
- "AWS_LAMBDA_FUNCTION_NAME",
1070
- "AWS_EXECUTION_ENV",
1071
- "K_SERVICE",
1072
- "CLOUD_RUN_JOB",
1073
- "KUBERNETES_SERVICE_HOST"
1074
- ];
1075
- var CONTAINER_MARKERS = ["/.dockerenv", "/run/.containerenv"];
1076
- var USERNS_BLOCKED_SYSCTLS = [
1077
- ["/proc/sys/kernel/apparmor_restrict_unprivileged_userns", "1"],
1078
- ["/proc/sys/kernel/unprivileged_userns_clone", "0"]
1079
- ];
1080
- function linuxCannotSandbox({ env, uid, exists, read }) {
1081
- return uid === 0 || SERVERLESS_OR_ORCHESTRATED_ENV.some((name) => !!env[name]) || CONTAINER_MARKERS.some((path) => exists(path)) || USERNS_BLOCKED_SYSCTLS.some(([path, blocked]) => read(path) === blocked);
1082
- }
1083
- function chromeSandboxEnabled(host = currentHost()) {
1084
- const override = host.env.HYPERFRAMES_CHROME_SANDBOX;
1085
- if (override === "0" || override === "1") return override === "1";
1086
- return host.platform !== "linux" || !linuxCannotSandbox(host);
1087
- }
1088
- function chromeSandboxArgs(sandbox = chromeSandboxEnabled()) {
1089
- return sandbox ? [] : NO_SANDBOX_ARGS;
1090
- }
1091
- function withoutChromeSandbox(args) {
1092
- return [...args.filter((arg) => !NO_SANDBOX_ARGS.includes(arg)), ...NO_SANDBOX_ARGS];
1093
- }
1094
- var sandboxRefused = false;
1095
- var closedTargetRetries = 0;
1096
- var warned = false;
1097
- function chromeNamedSandboxFailure(error) {
1098
- return error instanceof Error && SANDBOX_START_FAILURE.test(error.message);
1099
- }
1100
- function sandboxStartFailure(error) {
1101
- return chromeNamedSandboxFailure(error) || error instanceof Error && error.name === "TargetCloseError";
1102
- }
1103
- async function launchWithChromeSandboxFallback(args, launch, platform = process.platform, env = process.env) {
1104
- const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
1105
- const sandboxRequired = env.HYPERFRAMES_CHROME_SANDBOX === "1";
1106
- if (sandboxed && sandboxRefused && !sandboxRequired) return launch(withoutChromeSandbox(args));
1107
- try {
1108
- return await launch([...args]);
1109
- } catch (error) {
1110
- if (!sandboxed || sandboxRequired || !sandboxStartFailure(error)) throw error;
1111
- const browser = await launch(withoutChromeSandbox(args));
1112
- if (chromeNamedSandboxFailure(error) || ++closedTargetRetries >= 2) sandboxRefused = true;
1113
- if (!warned) {
1114
- warned = true;
1115
- console.warn(
1116
- "[hyperframes] Chrome could not start with its sandbox on this host (user namespaces are likely restricted), so it runs without it. Set HYPERFRAMES_CHROME_SANDBOX=0 to skip the sandboxed attempt."
1117
- );
1118
- }
1119
- return browser;
1120
- }
1121
- }
1122
-
1123
1052
  // ../engine/src/services/browserLeasePool.ts
1124
1053
  function freezeFingerprint(fingerprint) {
1125
1054
  return Object.freeze({
@@ -1366,17 +1295,19 @@ var GPU_PROBE_TIMEOUT_MS = 15e3;
1366
1295
  async function probeHardwareWebGlInfo(ppt, options) {
1367
1296
  let probeBrowser;
1368
1297
  try {
1369
- const launchOptions = {
1370
- ...ownedLaunchOptions(),
1371
- headless: true,
1372
- args: withHyperframesBrowserMarker(options.args),
1373
- defaultViewport: { width: 64, height: 64 },
1374
- executablePath: options.executablePath,
1375
- env: buildChromeLaunchEnv(options.env),
1376
- timeout: options.browserTimeout,
1377
- waitForInitialPage: false
1378
- };
1379
- probeBrowser = options.probeLifecycle ? await options.probeLifecycle.launch(ppt, launchOptions) : await ppt.launch(launchOptions);
1298
+ probeBrowser = await launchWithChromeSandboxFallback(options.args, (args) => {
1299
+ const launchOptions = {
1300
+ ...ownedLaunchOptions(),
1301
+ headless: true,
1302
+ args: withHyperframesBrowserMarker(args),
1303
+ defaultViewport: { width: 64, height: 64 },
1304
+ executablePath: options.executablePath,
1305
+ env: buildChromeLaunchEnv(options.env),
1306
+ timeout: options.browserTimeout,
1307
+ waitForInitialPage: false
1308
+ };
1309
+ return options.probeLifecycle ? options.probeLifecycle.launch(ppt, launchOptions) : ppt.launch(launchOptions);
1310
+ });
1380
1311
  return await rejectAfter(
1381
1312
  readWebGlInfo(probeBrowser),
1382
1313
  GPU_PROBE_TIMEOUT_MS,
@@ -1426,7 +1357,7 @@ function cachedHeadlessShellExecutable(hostPlatform = process.platform, hostArch
1426
1357
  return CACHED_HEADLESS_SHELL_EXECUTABLES[`${hostPlatform}/${hostArch}`];
1427
1358
  }
1428
1359
  function findCachedHeadlessShell(baseDir) {
1429
- if (!existsSync2(baseDir)) return void 0;
1360
+ if (!existsSync(baseDir)) return void 0;
1430
1361
  const executable = cachedHeadlessShellExecutable();
1431
1362
  if (!executable) return void 0;
1432
1363
  try {
@@ -1443,7 +1374,7 @@ function findCachedHeadlessShell(baseDir) {
1443
1374
  }
1444
1375
  function findSharedHeadlessShell(baseDir) {
1445
1376
  const executable = cachedHeadlessShellExecutable();
1446
- if (!executable || !existsSync2(baseDir)) return void 0;
1377
+ if (!executable || !existsSync(baseDir)) return void 0;
1447
1378
  try {
1448
1379
  return pickSharedShell(readdirSync(baseDir), (version) => {
1449
1380
  const binary = join3(baseDir, version, ...executable);
@@ -1455,7 +1386,7 @@ function findSharedHeadlessShell(baseDir) {
1455
1386
  }
1456
1387
  function findManagedHeadlessShell(baseDir) {
1457
1388
  const executable = cachedHeadlessShellExecutable();
1458
- if (!executable || !existsSync2(baseDir)) return void 0;
1389
+ if (!executable || !existsSync(baseDir)) return void 0;
1459
1390
  try {
1460
1391
  const version = readdirSync(baseDir).find(isManagedChromeDir);
1461
1392
  const binary = version && join3(baseDir, version, ...executable);
@@ -1470,7 +1401,7 @@ function resolveHeadlessShellPath(config) {
1470
1401
  }
1471
1402
  const fromEnv = browserPathFromEnv();
1472
1403
  if (fromEnv) {
1473
- if (!existsSync2(fromEnv.path)) {
1404
+ if (!existsSync(fromEnv.path)) {
1474
1405
  throw new Error(
1475
1406
  `[BrowserManager] Chrome binary not found at ${fromEnv.name}="${fromEnv.path}". Run \`hyperframes browser ensure\` to re-download.`
1476
1407
  );
@@ -1492,7 +1423,7 @@ function launchableBrowserPath(config) {
1492
1423
  }
1493
1424
  function resolveFullChromePath() {
1494
1425
  const named = browserPathFromEnv();
1495
- return named && existsSync2(named.path) ? named.path : void 0;
1426
+ return named && existsSync(named.path) ? named.path : void 0;
1496
1427
  }
1497
1428
  var ENABLE_BROWSER_POOL = DEFAULT_CONFIG.enableBrowserPool;
1498
1429
  var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
@@ -1658,10 +1589,9 @@ async function getPuppeteerOrNull() {
1658
1589
  return null;
1659
1590
  }
1660
1591
  }
1661
- function getHardwareGpuProbeArgs(platform) {
1592
+ function getHardwareGpuProbeArgs(platform, sandbox) {
1662
1593
  return [
1663
- "--no-sandbox",
1664
- "--disable-setuid-sandbox",
1594
+ ...chromeSandboxArgs(sandbox),
1665
1595
  "--disable-dev-shm-usage",
1666
1596
  "--enable-webgl",
1667
1597
  "--ignore-gpu-blocklist",
@@ -1698,7 +1628,10 @@ async function probeAutoBrowserGpuMode(options) {
1698
1628
  async function probeWebGlMode(ppt, options, env, label = "") {
1699
1629
  try {
1700
1630
  const info = await probeHardwareWebGlInfo(ppt, {
1701
- args: getHardwareGpuProbeArgs(options.platform ?? process.platform),
1631
+ args: getHardwareGpuProbeArgs(
1632
+ options.platform ?? process.platform,
1633
+ options.sandbox ?? chromeSandboxEnabled()
1634
+ ),
1702
1635
  browserTimeout: options.browserTimeout ?? DEFAULT_CONFIG.browserTimeout,
1703
1636
  executablePath: launchableBrowserPath({ chromePath: options.chromePath }),
1704
1637
  probeLifecycle: options.probeLifecycle,
@@ -2935,7 +2868,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
2935
2868
  }
2936
2869
 
2937
2870
  // ../engine/src/services/frameCapture.ts
2938
- import { existsSync as existsSync5, mkdirSync, writeFileSync } from "fs";
2871
+ import { existsSync as existsSync4, mkdirSync, writeFileSync } from "fs";
2939
2872
  import { join as join7 } from "path";
2940
2873
 
2941
2874
  // ../engine/src/services/renderFrameVideoHold.ts
@@ -5435,7 +5368,7 @@ import { execFile } from "child_process";
5435
5368
  import { promisify } from "util";
5436
5369
 
5437
5370
  // ../engine/src/utils/ffmpegBinaries.ts
5438
- import { existsSync as existsSync3 } from "fs";
5371
+ import { existsSync as existsSync2 } from "fs";
5439
5372
  import { dirname, join as join4 } from "path";
5440
5373
  import { fileURLToPath } from "url";
5441
5374
  function notFound(name, setting) {
@@ -5449,13 +5382,13 @@ function getFfprobeBinary() {
5449
5382
  }
5450
5383
  function assertConfiguredFfmpegBinariesExist() {
5451
5384
  const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
5452
- if (ffmpegPath && !existsSync3(ffmpegPath)) {
5385
+ if (ffmpegPath && !existsSync2(ffmpegPath)) {
5453
5386
  throw new Error(
5454
5387
  `[FFmpeg] FFmpeg binary not found at ${FFMPEG_PATH_ENV}="${ffmpegPath}". Install FFmpeg or unset the override.${pathEncodingHint(ffmpegPath)}`
5455
5388
  );
5456
5389
  }
5457
5390
  const ffprobePath = process.env[FFPROBE_PATH_ENV]?.trim();
5458
- if (ffprobePath && !existsSync3(ffprobePath)) {
5391
+ if (ffprobePath && !existsSync2(ffprobePath)) {
5459
5392
  throw new Error(
5460
5393
  `[FFmpeg] FFprobe binary not found at ${FFPROBE_PATH_ENV}="${ffprobePath}". Install FFmpeg or unset the override.${pathEncodingHint(ffprobePath)}`
5461
5394
  );
@@ -5498,20 +5431,20 @@ async function listFfmpeg(flag) {
5498
5431
  }
5499
5432
 
5500
5433
  // ../engine/src/utils/renderProvenance.ts
5501
- import { readFileSync as readFileSync3 } from "fs";
5434
+ import { readFileSync as readFileSync2 } from "fs";
5502
5435
  import { createRequire } from "module";
5503
5436
  import { dirname as dirname3, join as join6 } from "path";
5504
5437
  import { fileURLToPath as fileURLToPath2 } from "url";
5505
5438
 
5506
5439
  // ../engine/src/utils/ffprobe.ts
5507
5440
  import { spawn as spawn3 } from "child_process";
5508
- import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync } from "fs";
5441
+ import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync, rmSync, statSync } from "fs";
5509
5442
  import { StringDecoder as StringDecoder2 } from "string_decoder";
5510
5443
  import { tmpdir as tmpdir3 } from "os";
5511
5444
  import { basename, join as join5 } from "path";
5512
5445
 
5513
5446
  // ../engine/src/utils/urlInput.ts
5514
- import { existsSync as existsSync4 } from "fs";
5447
+ import { existsSync as existsSync3 } from "fs";
5515
5448
  var CA_BUNDLES = [
5516
5449
  "/etc/pki/tls/certs/ca-bundle.crt",
5517
5450
  "/etc/ssl/certs/ca-certificates.crt",
@@ -5547,7 +5480,8 @@ function urlInputArgs(input, {
5547
5480
  tool = "ffmpeg",
5548
5481
  caBundles = CA_BUNDLES
5549
5482
  } = {}) {
5550
- const mediaFormats = () => mediaInputFormatArgs(tool === "ffprobe" ? getFfprobeBinary() : getFfmpegBinary());
5483
+ assertLiteralMediaInput(input);
5484
+ const mediaFormats = () => mediaInputFormatArgs(tool === "ffprobe" ? getFfprobeBinary() : getFfmpegBinary(), input);
5551
5485
  const restricted = resolveRestrictPageNetwork();
5552
5486
  const route = restricted ? restrictedRoute(input) : void 0;
5553
5487
  if (route === "proxy" && !/^https:\/\//i.test(input))
@@ -5558,7 +5492,7 @@ function urlInputArgs(input, {
5558
5492
  ...PROXY_THAT_REACHES_NOTHING
5559
5493
  ];
5560
5494
  if (!/^https:\/\//i.test(input)) return mediaFormats();
5561
- const caFile = caBundles.find((path) => existsSync4(path));
5495
+ const caFile = caBundles.find((path) => existsSync3(path));
5562
5496
  if (!caFile) {
5563
5497
  throw new Error(
5564
5498
  `[FFmpeg] cannot verify TLS for an https input: no CA bundle at ${caBundles.join(", ")}`
@@ -5819,8 +5753,8 @@ async function isNotImagePayload(filePath) {
5819
5753
  var MAX_PLAYLIST_BYTES = 8 * 1024 * 1024;
5820
5754
  var MAX_PLAYLIST_DEPTH = 8;
5821
5755
  var HTTP_URL = /^https?:\/\//i;
5822
- var OTHER_SCHEME = /^[a-z][a-z0-9+.-]+:/i;
5823
- var DRIVE_PATH = /^[a-z]:[\\/]/i;
5756
+ var COLON_IN_FIRST_SEGMENT = /^[^/\\?#]*:/;
5757
+ var FOLDER_CUT_AT_QUERY_OR_FRAGMENT = /[?#]/;
5824
5758
  var MAX_HLS_LINE_BYTES = 4095;
5825
5759
  var ATTRIBUTE_GAP = /[\t\n\v\f\r ,]/;
5826
5760
  function hlsEntries(body) {
@@ -5880,9 +5814,10 @@ function playlistEntries(text) {
5880
5814
  }
5881
5815
  function entryLeavesFolder(entry, base, folder) {
5882
5816
  if (HTTP_URL.test(entry)) return false;
5883
- if (OTHER_SCHEME.test(entry) && !DRIVE_PATH.test(entry)) return true;
5817
+ if (FOLDER_CUT_AT_QUERY_OR_FRAGMENT.test(base)) return true;
5884
5818
  return [entry, percentDecoded(entry)].some((path) => {
5885
- if (isAbsolute(path) || DRIVE_PATH.test(path) || path.startsWith("\\")) return true;
5819
+ if (COLON_IN_FIRST_SEGMENT.test(path)) return true;
5820
+ if (isAbsolute(path) || path.startsWith("\\")) return true;
5886
5821
  const inside = relative(folder, resolve(base, path));
5887
5822
  return inside === ".." || inside.startsWith("../") || inside.startsWith("..\\") || isAbsolute(inside);
5888
5823
  });
@@ -6748,7 +6683,7 @@ function extractPngMetadataFromBuffer(buf) {
6748
6683
  }
6749
6684
  function extractStillImageMetadata(filePath) {
6750
6685
  try {
6751
- return extractPngMetadataFromBuffer(readFileSync2(filePath));
6686
+ return extractPngMetadataFromBuffer(readFileSync(filePath));
6752
6687
  } catch {
6753
6688
  return null;
6754
6689
  }
@@ -7272,7 +7207,7 @@ function resolveOwnVersionFrom(startDir) {
7272
7207
  const candidate = join6(dir, "package.json");
7273
7208
  let pkg;
7274
7209
  try {
7275
- pkg = JSON.parse(readFileSync3(candidate, "utf8"));
7210
+ pkg = JSON.parse(readFileSync2(candidate, "utf8"));
7276
7211
  } catch {
7277
7212
  pkg = void 0;
7278
7213
  }
@@ -7295,7 +7230,7 @@ function installedEngineVersion(fromDir) {
7295
7230
  const path = createRequire(join6(fromDir, "index.js")).resolve(
7296
7231
  "@hyperframes/engine/package.json"
7297
7232
  );
7298
- const pkg = JSON.parse(readFileSync3(path, "utf8"));
7233
+ const pkg = JSON.parse(readFileSync2(path, "utf8"));
7299
7234
  if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
7300
7235
  return pkg.version;
7301
7236
  } catch {
@@ -8364,7 +8299,7 @@ async function installMediaPageHooks(page, options) {
8364
8299
  }
8365
8300
  }
8366
8301
  async function createCaptureSession(serverUrl, outputDir, options, onBeforeCapture = null, config) {
8367
- if (!existsSync5(outputDir)) mkdirSync(outputDir, { recursive: true });
8302
+ if (!existsSync4(outputDir)) mkdirSync(outputDir, { recursive: true });
8368
8303
  const headlessShell = resolveHeadlessShellPath(config);
8369
8304
  const isLinux = process.platform === "linux";
8370
8305
  const forceScreenshot = config?.forceScreenshot ?? DEFAULT_CONFIG.forceScreenshot;
@@ -9646,7 +9581,7 @@ async function initializeSession(session) {
9646
9581
  async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
9647
9582
  try {
9648
9583
  const diagnosticsDir = join7(session.outputDir, "diagnostics");
9649
- if (!existsSync5(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
9584
+ if (!existsSync4(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
9650
9585
  const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
9651
9586
  const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
9652
9587
  if (pageScreenshotCanResolve) {
@@ -9800,6 +9735,22 @@ function addFrameRanges(target, ranges) {
9800
9735
  for (let f = lo; f <= hi; f++) target.add(f);
9801
9736
  }
9802
9737
  }
9738
+ var STATIC_DEDUP_INELIGIBLE_CAUSES = {
9739
+ zero_duration: "unknown/zero duration",
9740
+ video: "video",
9741
+ canvas: "canvas/webgl",
9742
+ frame_source: "registered frame source",
9743
+ iframe: "iframe",
9744
+ no_gsap_tweens: "no GSAP tweens (non-GSAP animation)",
9745
+ css_animation: "running CSS/WAAPI animation",
9746
+ timeline_call: "tl.call() side effect (not seek-safe)",
9747
+ unresolvable_clip_start: "unresolvable clip start (reference expression)",
9748
+ frame_limit: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`,
9749
+ interval_limit: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
9750
+ };
9751
+ function describeIneligible(causes) {
9752
+ return causes.map((cause) => STATIC_DEDUP_INELIGIBLE_CAUSES[cause]).join("+");
9753
+ }
9803
9754
  async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
9804
9755
  const result = await page.evaluate(
9805
9756
  (spatialProps, ignored) => {
@@ -9905,7 +9856,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
9905
9856
  hasNonGsapAnim,
9906
9857
  tweenCount,
9907
9858
  eligible: false,
9908
- reason: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`
9859
+ causes: ["frame_limit"],
9860
+ reason: describeIneligible(["frame_limit"])
9909
9861
  };
9910
9862
  }
9911
9863
  if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
@@ -9918,7 +9870,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
9918
9870
  hasNonGsapAnim,
9919
9871
  tweenCount,
9920
9872
  eligible: false,
9921
- reason: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
9873
+ causes: ["interval_limit"],
9874
+ reason: describeIneligible(["interval_limit"])
9922
9875
  };
9923
9876
  }
9924
9877
  const animatedRanges = [];
@@ -9934,17 +9887,17 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
9934
9887
  addFrameRanges(animated, animatedRanges);
9935
9888
  addFrameRanges(spatialFrameSet, spatialRanges);
9936
9889
  for (const f of await computeClipBoundaryFrames(page, fps)) animated.add(f);
9937
- const reasons = [];
9938
- if (!(duration > 0)) reasons.push("unknown/zero duration");
9939
- if (hasVideo) reasons.push("video");
9940
- if (hasCanvas) reasons.push("canvas/webgl");
9941
- if (hasFrameSources) reasons.push("registered frame source");
9942
- if (hasIframe) reasons.push("iframe");
9943
- if (tweenCount === 0) reasons.push("no GSAP tweens (non-GSAP animation)");
9944
- if (hasNonGsapAnim) reasons.push("running CSS/WAAPI animation");
9945
- if (hasTimelineCall) reasons.push("tl.call() side effect (not seek-safe)");
9946
- if (hasUnresolvableClipStart) reasons.push("unresolvable clip start (reference expression)");
9947
- const eligible = reasons.length === 0;
9890
+ const causes = [];
9891
+ if (!(duration > 0)) causes.push("zero_duration");
9892
+ if (hasVideo) causes.push("video");
9893
+ if (hasCanvas) causes.push("canvas");
9894
+ if (hasFrameSources) causes.push("frame_source");
9895
+ if (hasIframe) causes.push("iframe");
9896
+ if (tweenCount === 0) causes.push("no_gsap_tweens");
9897
+ if (hasNonGsapAnim) causes.push("css_animation");
9898
+ if (hasTimelineCall) causes.push("timeline_call");
9899
+ if (hasUnresolvableClipStart) causes.push("unresolvable_clip_start");
9900
+ const eligible = causes.length === 0;
9948
9901
  const staticFrameSet = /* @__PURE__ */ new Set();
9949
9902
  if (eligible) {
9950
9903
  for (let f = 1; f < totalFrames; f++) {
@@ -9964,7 +9917,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
9964
9917
  hasNonGsapAnim,
9965
9918
  tweenCount,
9966
9919
  eligible,
9967
- reason: eligible ? "eligible" : reasons.join("+")
9920
+ causes,
9921
+ reason: eligible ? "eligible" : describeIneligible(causes)
9968
9922
  };
9969
9923
  }
9970
9924
  var STATIC_VERIFY_REFERENCE_STRIDE = 24;
@@ -10252,6 +10206,7 @@ async function armFromSharedStaticDedup(session, sharedFrames, predicted, fps, l
10252
10206
  const spot = pickStaticSpotCheck(frames, session.options.staticDedupFrameRange);
10253
10207
  if (spot.size === 0) {
10254
10208
  session.staticDedupSkipReason = "ineligible";
10209
+ session.staticDedupIneligibleCause = "no_static_frames";
10255
10210
  logInitPhase("static-frame dedup: disabled (no shared static run in this session's frames)");
10256
10211
  return;
10257
10212
  }
@@ -10334,6 +10289,7 @@ async function armStaticDedupFrames(session, page, logInitPhase, sharedStaticFra
10334
10289
  const stats = sharedStaticFrameStats ?? await computeStaticFrameSet(page, fps, session.options.hiddenElementIds);
10335
10290
  if (!stats.eligible || stats.staticFrameSet.size === 0) {
10336
10291
  session.staticDedupSkipReason = "ineligible";
10292
+ session.staticDedupIneligibleCause = stats.eligible ? "no_static_frames" : stats.causes.join("+");
10337
10293
  logInitPhase(`static-frame dedup: disabled (${stats.reason})`);
10338
10294
  return;
10339
10295
  }
@@ -11100,7 +11056,7 @@ async function closeCaptureSession(session) {
11100
11056
  session.isInitialized = false;
11101
11057
  }
11102
11058
  async function prepareCaptureSessionForReuse(session, outputDir, onBeforeCapture) {
11103
- if (!existsSync5(outputDir)) {
11059
+ if (!existsSync4(outputDir)) {
11104
11060
  mkdirSync(outputDir, { recursive: true });
11105
11061
  }
11106
11062
  session.outputDir = outputDir;
@@ -11255,6 +11211,7 @@ function getCapturePerfSummary(session) {
11255
11211
  staticDedupVerificationComparisons: session.staticDedupVerification?.stats.byteComparisons,
11256
11212
  staticDedupVerificationElapsedMs: session.staticDedupVerification?.stats.elapsedMs,
11257
11213
  staticDedupSkipReason: session.staticDedupSkipReason,
11214
+ staticDedupIneligibleCause: session.staticDedupIneligibleCause,
11258
11215
  beginFrameNoDamage: session.beginFrameNoDamageCount,
11259
11216
  beginFrameHasDamage: session.beginFrameHasDamageCount,
11260
11217
  captureMode: session.captureMode,
@@ -11335,11 +11292,11 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
11335
11292
  import {
11336
11293
  closeSync,
11337
11294
  copyFileSync,
11338
- existsSync as existsSync6,
11295
+ existsSync as existsSync5,
11339
11296
  ftruncateSync,
11340
11297
  mkdirSync as mkdirSync2,
11341
11298
  openSync,
11342
- readFileSync as readFileSync4,
11299
+ readFileSync as readFileSync3,
11343
11300
  readdirSync as readdirSync3,
11344
11301
  statSync as statSync2,
11345
11302
  writeFileSync as writeFileSync2,
@@ -11976,7 +11933,7 @@ var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds })
11976
11933
  async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
11977
11934
  const startTime = Date.now();
11978
11935
  const outputDir = dirname4(outputPath);
11979
- if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
11936
+ if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
11980
11937
  const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
11981
11938
  const frameCount = files.length;
11982
11939
  if (frameCount === 0) {
@@ -12032,7 +11989,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
12032
11989
  failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
12033
11990
  };
12034
11991
  }
12035
- const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
11992
+ const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
12036
11993
  return {
12037
11994
  success: true,
12038
11995
  outputPath,
@@ -12175,7 +12132,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
12175
12132
  failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
12176
12133
  };
12177
12134
  }
12178
- const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
12135
+ const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
12179
12136
  return {
12180
12137
  success: true,
12181
12138
  outputPath,
@@ -12186,7 +12143,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
12186
12143
  }
12187
12144
  async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
12188
12145
  const outputDir = dirname4(outputPath);
12189
- if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
12146
+ if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
12190
12147
  const outputExtension = extname(outputPath).toLowerCase();
12191
12148
  const isWebm = outputExtension === ".webm";
12192
12149
  const isMov = outputExtension === ".mov";
@@ -12261,7 +12218,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
12261
12218
  if (outputDir.includes("%")) {
12262
12219
  throw new Error(`[chunkEncoder] packageHls outputDir must not contain "%": ${outputDir}`);
12263
12220
  }
12264
- if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
12221
+ if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
12265
12222
  const hasAudio = audioPath !== null;
12266
12223
  const args = hasAudio ? ["-i", videoPath, "-i", audioPath, "-map", "0:v:0", "-map", "1:a:0"] : ["-i", videoPath, "-map", "0:v:0"];
12267
12224
  args.push(
@@ -12310,7 +12267,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
12310
12267
  }
12311
12268
  if (master !== void 0) {
12312
12269
  try {
12313
- const stripped = stripAudioOnlyVariants(readFileSync4(master, "utf-8"));
12270
+ const stripped = stripAudioOnlyVariants(readFileSync3(master, "utf-8"));
12314
12271
  ftruncateSync(master, 0);
12315
12272
  writeSync(master, stripped, 0, "utf-8");
12316
12273
  } finally {
@@ -12408,7 +12365,7 @@ function quantizationTableError(buffer, start, end) {
12408
12365
  // ../engine/src/services/streamingEncoder.ts
12409
12366
  import { spawn as spawn5 } from "child_process";
12410
12367
  import { once } from "events";
12411
- import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
12368
+ import { existsSync as existsSync6, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
12412
12369
  import { dirname as dirname5 } from "path";
12413
12370
  function createFrameReorderBuffer(startFrame, endFrame) {
12414
12371
  let cursor = startFrame;
@@ -12567,7 +12524,7 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null, nvencPresets
12567
12524
  } else {
12568
12525
  const encoderName = codec === "h264" ? "libx264" : "libx265";
12569
12526
  args.push("-c:v", encoderName, "-preset", preset);
12570
- appendSoftwareEncoderThreadsArg(args, encoderName);
12527
+ appendSoftwareEncoderThreadsArg(args, encoderName, options.softwareEncoderThreads);
12571
12528
  if (bitrate) args.push("-b:v", bitrate);
12572
12529
  else args.push("-crf", String(quality));
12573
12530
  const lockedGop = resolveLockedGopSize(options);
@@ -12686,7 +12643,7 @@ function spawnFfmpegStream(outputPath, args, {
12686
12643
  checkFrame
12687
12644
  }) {
12688
12645
  const outputDir = dirname5(outputPath);
12689
- if (!existsSync7(outputDir)) mkdirSync3(outputDir, { recursive: true });
12646
+ if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
12690
12647
  const ffmpeg = spawn5(getFfmpegBinary(), args, {
12691
12648
  stdio: ["pipe", "pipe", "pipe"],
12692
12649
  // See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
@@ -12812,7 +12769,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
12812
12769
  }) ? "external_interruption" : void 0
12813
12770
  };
12814
12771
  }
12815
- const fileSize = existsSync7(outputPath) ? statSync3(outputPath).size : 0;
12772
+ const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
12816
12773
  return { success: true, durationMs, fileSize, drainWaitMs };
12817
12774
  },
12818
12775
  getExitStatus: () => exitStatus,
@@ -12963,7 +12920,7 @@ function isMemberGroupHidden(groupsById, el) {
12963
12920
  }
12964
12921
 
12965
12922
  // ../engine/src/services/videoFrameExtractor.ts
12966
- import { copyFileSync as copyFileSync2, existsSync as existsSync11, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
12923
+ import { copyFileSync as copyFileSync2, existsSync as existsSync10, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
12967
12924
  import { basename as basename3, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
12968
12925
 
12969
12926
  // ../engine/src/utils/concurrencyLimit.ts
@@ -12997,10 +12954,10 @@ function createConcurrencyLimit(limit) {
12997
12954
  }
12998
12955
 
12999
12956
  // ../engine/src/utils/assetRoots.ts
13000
- import { existsSync as existsSync8 } from "fs";
12957
+ import { existsSync as existsSync7 } from "fs";
13001
12958
  function isInsideAssetRoots(path, roots) {
13002
12959
  if (roots.some((root) => isSafePath(root, path))) return true;
13003
- return !existsSync8(path) && roots.some((root) => isWithinProjectRoot(root, path));
12960
+ return !existsSync7(path) && roots.some((root) => isWithinProjectRoot(root, path));
13004
12961
  }
13005
12962
  function isPrivateUnderAssetRoots(path, roots) {
13006
12963
  const holders = roots.filter((root) => isSafePath(root, path));
@@ -13020,7 +12977,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
13020
12977
  }
13021
12978
 
13022
12979
  // ../engine/src/utils/alphaPlaneProbe.ts
13023
- import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync5, rmSync as rmSync2 } from "fs";
12980
+ import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync4, rmSync as rmSync2 } from "fs";
13024
12981
  import { tmpdir as tmpdir4 } from "os";
13025
12982
  import { join as join10 } from "path";
13026
12983
  var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
@@ -13061,7 +13018,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
13061
13018
  { timeout: 3e4, signal }
13062
13019
  );
13063
13020
  if (!result.success) return void 0;
13064
- return sampledRgbaAlphaIsFullyOpaque(readFileSync5(samplePath));
13021
+ return sampledRgbaAlphaIsFullyOpaque(readFileSync4(samplePath));
13065
13022
  } catch {
13066
13023
  return void 0;
13067
13024
  } finally {
@@ -13078,7 +13035,7 @@ import {
13078
13035
  closeSync as closeSync2,
13079
13036
  createReadStream as createReadStream2,
13080
13037
  createWriteStream,
13081
- existsSync as existsSync9,
13038
+ existsSync as existsSync8,
13082
13039
  fsyncSync,
13083
13040
  linkSync,
13084
13041
  mkdirSync as mkdirSync4,
@@ -13409,9 +13366,31 @@ function undiciTransport(lookup) {
13409
13366
  }
13410
13367
  return transport;
13411
13368
  }
13369
+ var UNRESOLVED_HOST_CODES = /* @__PURE__ */ new Set(["ENOTFOUND", "EAI_AGAIN", "EAI_FAIL"]);
13370
+ function assertProxiedHostResolvesPublic(url, signal) {
13371
+ const hostname = new URL(url).hostname.replace(/^\[|\]$/g, "");
13372
+ return new Promise((resolvePromise, reject) => {
13373
+ const abort = () => reject(signal?.reason);
13374
+ if (signal?.aborted) return abort();
13375
+ signal?.addEventListener("abort", abort, { once: true });
13376
+ dns.lookup(hostname, { all: true }, (error, answers) => {
13377
+ signal?.removeEventListener("abort", abort);
13378
+ if (error) {
13379
+ return UNRESOLVED_HOST_CODES.has(error.code ?? "") ? resolvePromise() : reject(error);
13380
+ }
13381
+ if (answers.some((a) => isBlockedNetworkHost(a.address.split("%")[0]))) {
13382
+ return reject(nonPublicAddressError());
13383
+ }
13384
+ resolvePromise();
13385
+ });
13386
+ });
13387
+ }
13412
13388
  var fetchPublic = async (url, init) => {
13413
13389
  if (resolveRestrictPageNetwork()) return (await undiciTransport(capturePolicyLookup))(url, init);
13414
- if (fetchGoesThroughEnvProxy()) return fetch(url, init);
13390
+ if (fetchGoesThroughEnvProxy()) {
13391
+ await assertProxiedHostResolvesPublic(url, init.signal);
13392
+ return fetch(url, init);
13393
+ }
13415
13394
  return (await undiciTransport(publicOnlyLookup))(url, init);
13416
13395
  };
13417
13396
  var downloadFetch = fetchPublic;
@@ -14303,7 +14282,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
14303
14282
  if (inFlight) {
14304
14283
  return inFlight;
14305
14284
  }
14306
- if (!existsSync9(destDir)) {
14285
+ if (!existsSync8(destDir)) {
14307
14286
  mkdirSync4(destDir, { recursive: true });
14308
14287
  }
14309
14288
  const filename = getFilenameFromUrl(url, validationScope);
@@ -14407,7 +14386,7 @@ import { createHash as createHash4 } from "crypto";
14407
14386
  import {
14408
14387
  chmodSync,
14409
14388
  createReadStream as createReadStream3,
14410
- existsSync as existsSync10,
14389
+ existsSync as existsSync9,
14411
14390
  lstatSync as lstatSync2,
14412
14391
  mkdirSync as mkdirSync5,
14413
14392
  readdirSync as readdirSync5,
@@ -14476,7 +14455,7 @@ function hasFrameFiles(dir) {
14476
14455
  function lookupCacheEntry(rootDir, input) {
14477
14456
  const keyHash = computeCacheKey(input);
14478
14457
  const dir = join12(rootDir, cacheEntryDirName(keyHash));
14479
- const complete = existsSync10(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
14458
+ const complete = existsSync9(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
14480
14459
  return { entry: { dir, keyHash }, hit: complete };
14481
14460
  }
14482
14461
  function createPartialCacheEntryDir(entry) {
@@ -14494,7 +14473,7 @@ function isTargetExistsRenameError(err) {
14494
14473
  return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
14495
14474
  }
14496
14475
  function adoptPublishedWinner(entry, partialDir) {
14497
- if (!existsSync10(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
14476
+ if (!existsSync9(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
14498
14477
  removeDir(partialDir);
14499
14478
  return { dir: entry.dir, published: true };
14500
14479
  }
@@ -15366,7 +15345,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
15366
15345
  const fps = fpsToNumber(normalizedFps);
15367
15346
  const ffmpegFps = fpsToFfmpegArg(normalizedFps);
15368
15347
  const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
15369
- if (!existsSync11(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
15348
+ if (!existsSync10(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
15370
15349
  let metadata;
15371
15350
  try {
15372
15351
  metadata = await extractMediaMetadata(videoPath);
@@ -16007,7 +15986,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
16007
15986
  );
16008
15987
  await assertDownloadedVideoIsMedia(videoPath, video.id, signal);
16009
15988
  }
16010
- if (!existsSync11(videoPath)) {
15989
+ if (!existsSync10(videoPath)) {
16011
15990
  if (!warnedSrcs.has(video.src)) {
16012
15991
  warnedSrcs.add(video.src);
16013
15992
  process.stderr.write(
@@ -16743,7 +16722,7 @@ var FrameLookupTable = class {
16743
16722
  cleanup() {
16744
16723
  for (const video of this.videos.values()) {
16745
16724
  if (video.extracted.ownedByLookup) continue;
16746
- if (existsSync11(video.extracted.outputDir)) {
16725
+ if (existsSync10(video.extracted.outputDir)) {
16747
16726
  rmSync5(video.extracted.outputDir, { recursive: true, force: true });
16748
16727
  }
16749
16728
  }
@@ -17290,7 +17269,7 @@ async function queryElementStacking(page, nativeHdrIds) {
17290
17269
  }
17291
17270
 
17292
17271
  // ../engine/src/services/audioMixer.ts
17293
- import { closeSync as closeSync4, existsSync as existsSync13, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
17272
+ import { closeSync as closeSync4, existsSync as existsSync12, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
17294
17273
  import { join as join17, dirname as dirname10, isAbsolute as isAbsolute3, relative as relative3 } from "path";
17295
17274
 
17296
17275
  // ../core/dist/audioFade.js
@@ -17327,7 +17306,7 @@ function clampFadesToDuration(fades, duration) {
17327
17306
 
17328
17307
  // ../engine/src/services/aacEncode.ts
17329
17308
  import { execFile as execFile3 } from "child_process";
17330
- import { readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
17309
+ import { readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
17331
17310
  import { dirname as dirname8, join as join14 } from "path";
17332
17311
  var SAMPLE_RATE = 48e3;
17333
17312
  var FRAME_SAMPLES = 1024;
@@ -17429,7 +17408,7 @@ async function encodeAac(input, outputPath, totalDuration, {
17429
17408
  if (failed) return failed;
17430
17409
  const joined = join14(dir, "joined.aac");
17431
17410
  const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
17432
- const segmentFrames = splitAdtsFrames(readFileSync6(path));
17411
+ const segmentFrames = splitAdtsFrames(readFileSync5(path));
17433
17412
  if (segmentFrames.length < keepTo) {
17434
17413
  throw new Error(`AAC segment ${path} has ${segmentFrames.length} frames, needs ${keepTo}`);
17435
17414
  }
@@ -17561,7 +17540,7 @@ function audioFailureDiagnostics(values) {
17561
17540
  }
17562
17541
 
17563
17542
  // ../engine/src/services/audioVolumeEnvelope.ts
17564
- import { readFileSync as readFileSync7, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
17543
+ import { readFileSync as readFileSync6, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
17565
17544
  import { dirname as dirname9, join as join15 } from "path";
17566
17545
 
17567
17546
  // ../core/dist/runtime/mediaVolumeEnvelope.js
@@ -17684,7 +17663,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
17684
17663
  if (!gainAt) return false;
17685
17664
  let stagingDir;
17686
17665
  try {
17687
- const buffer = readFileSync7(wavPath);
17666
+ const buffer = readFileSync6(wavPath);
17688
17667
  const layout = parseWavLayout(buffer);
17689
17668
  if (!layout) return false;
17690
17669
  scaleSamples(buffer, layout, gainAt);
@@ -17918,10 +17897,10 @@ function chainTailSeconds(chain, automation) {
17918
17897
  // ../engine/src/services/audioFxRender.ts
17919
17898
  import {
17920
17899
  closeSync as closeSync3,
17921
- existsSync as existsSync12,
17900
+ existsSync as existsSync11,
17922
17901
  mkdtempSync as mkdtempSync4,
17923
17902
  openSync as openSync3,
17924
- readFileSync as readFileSync8,
17903
+ readFileSync as readFileSync7,
17925
17904
  readSync,
17926
17905
  statSync as statSync6,
17927
17906
  writeFileSync as writeFileSync6,
@@ -18023,7 +18002,7 @@ function readWavHeader(path) {
18023
18002
  }
18024
18003
  }
18025
18004
  function readWav(path) {
18026
- const buf = readFileSync8(path);
18005
+ const buf = readFileSync7(path);
18027
18006
  if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") {
18028
18007
  throw new AudioFxRenderError(`Not a WAV file: ${path}`);
18029
18008
  }
@@ -18230,7 +18209,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
18230
18209
  }
18231
18210
  async function applyAudioFxChain(inputWav, chain, outputWav, options) {
18232
18211
  if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
18233
- if (!existsSync12(inputWav)) {
18212
+ if (!existsSync11(inputWav)) {
18234
18213
  throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
18235
18214
  }
18236
18215
  const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
@@ -18767,7 +18746,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
18767
18746
  async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
18768
18747
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
18769
18748
  const outputDir = dirname10(outputPath);
18770
- if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
18749
+ if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
18771
18750
  const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
18772
18751
  const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
18773
18752
  const readsUrl = isHttpUrl(srcPath);
@@ -18913,7 +18892,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
18913
18892
  async function generateSilence(outputPath, duration, signal, config) {
18914
18893
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
18915
18894
  const outputDir = dirname10(outputPath);
18916
- if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
18895
+ if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
18917
18896
  const args = [
18918
18897
  "-f",
18919
18898
  "lavfi",
@@ -18967,7 +18946,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
18967
18946
  };
18968
18947
  }
18969
18948
  const outputDir = dirname10(outputPath);
18970
- if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
18949
+ if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
18971
18950
  const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
18972
18951
  const filterParts = [];
18973
18952
  tracks.forEach((track, i) => {
@@ -19076,7 +19055,7 @@ function groupNormalizeOptionUnsupported(stderr) {
19076
19055
  async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
19077
19056
  const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
19078
19057
  const outputDir = dirname10(outputPath);
19079
- if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
19058
+ if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
19080
19059
  const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
19081
19060
  const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
19082
19061
  return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
@@ -19303,7 +19282,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
19303
19282
  const failures = [];
19304
19283
  const groupTracks = /* @__PURE__ */ new Map();
19305
19284
  const groupMeta = /* @__PURE__ */ new Map();
19306
- if (!existsSync13(workDir)) mkdirSync7(workDir, { recursive: true });
19285
+ if (!existsSync12(workDir)) mkdirSync7(workDir, { recursive: true });
19307
19286
  const internalController = new AbortController();
19308
19287
  const effectiveSignal = internalController.signal;
19309
19288
  if (signal) {
@@ -19367,7 +19346,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
19367
19346
  return;
19368
19347
  }
19369
19348
  }
19370
- if (!readInPlace && !existsSync13(srcPath)) {
19349
+ if (!readInPlace && !existsSync12(srcPath)) {
19371
19350
  failures.push({
19372
19351
  stage: "source",
19373
19352
  reason: "source_not_found",
@@ -19735,7 +19714,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
19735
19714
 
19736
19715
  // ../engine/src/services/parallelCoordinator.ts
19737
19716
  import { freemem } from "os";
19738
- import { existsSync as existsSync14, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
19717
+ import { existsSync as existsSync13, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
19739
19718
  import { copyFile, readFile as readFile2 } from "fs/promises";
19740
19719
  import { join as join19 } from "path";
19741
19720
  import { getHeapStatistics } from "v8";
@@ -20233,7 +20212,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
20233
20212
  async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
20234
20213
  const startTime = Date.now();
20235
20214
  let framesCaptured = 0;
20236
- if (!existsSync14(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
20215
+ if (!existsSync13(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
20237
20216
  let session = null;
20238
20217
  let perf;
20239
20218
  const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
@@ -20488,11 +20467,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
20488
20467
  return results;
20489
20468
  }
20490
20469
  async function mergeWorkerFrames(workDir, tasks, outputDir) {
20491
- if (!existsSync14(outputDir)) mkdirSync8(outputDir, { recursive: true });
20470
+ if (!existsSync13(outputDir)) mkdirSync8(outputDir, { recursive: true });
20492
20471
  let totalFrames = 0;
20493
20472
  const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
20494
20473
  for (const task of sortedTasks) {
20495
- if (!existsSync14(task.outputDir)) {
20474
+ if (!existsSync13(task.outputDir)) {
20496
20475
  continue;
20497
20476
  }
20498
20477
  const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
@@ -20522,7 +20501,7 @@ function getSystemResources() {
20522
20501
  // ../engine/src/services/fileServer.ts
20523
20502
  import { Hono } from "hono";
20524
20503
  import { serve } from "@hono/node-server";
20525
- import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
20504
+ import { readFileSync as readFileSync8, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
20526
20505
  import { join as join20, extname as extname3 } from "path";
20527
20506
  import { hostname as machineName, networkInterfaces } from "os";
20528
20507
 
@@ -20586,7 +20565,7 @@ function readRegularFile(filePath) {
20586
20565
  }
20587
20566
  try {
20588
20567
  if (!fstatSync(fd).isFile()) return null;
20589
- return readFileSync9(fd);
20568
+ return readFileSync8(fd);
20590
20569
  } finally {
20591
20570
  closeSync5(fd);
20592
20571
  }
@@ -20973,22 +20952,25 @@ async function launchHdrBrowser(width, height) {
20973
20952
  "[HDR] Name a full Chrome in HYPERFRAMES_BROWSER_PATH: HDR capture does not start a cached browser."
20974
20953
  );
20975
20954
  }
20976
- const browser = await ppt.launch({
20977
- ...ownedLaunchOptions(),
20978
- headless: false,
20979
- executablePath: chromePath,
20980
- env: buildChromeLaunchEnv(),
20981
- args: withHyperframesBrowserMarker(buildHdrChromeArgs(width, height))
20982
- });
20955
+ const launcher = ppt;
20956
+ const browser = await launchWithChromeSandboxFallback(
20957
+ buildHdrChromeArgs(width, height),
20958
+ (args) => launcher.launch({
20959
+ ...ownedLaunchOptions(),
20960
+ headless: false,
20961
+ executablePath: chromePath,
20962
+ env: buildChromeLaunchEnv(),
20963
+ args: withHyperframesBrowserMarker(args)
20964
+ })
20965
+ );
20983
20966
  const page = await browser.newPage();
20984
20967
  await page.setViewport({ width, height });
20985
20968
  return { browser, page };
20986
20969
  }
20987
- function buildHdrChromeArgs(width, height) {
20970
+ function buildHdrChromeArgs(width, height, sandbox = chromeSandboxEnabled()) {
20988
20971
  return [
20989
20972
  "--enable-unsafe-webgpu",
20990
- "--no-sandbox",
20991
- "--disable-setuid-sandbox",
20973
+ ...chromeSandboxArgs(sandbox),
20992
20974
  "--window-position=-10000,-10000",
20993
20975
  `--window-size=${width},${height}`,
20994
20976
  "--disable-background-timer-throttling",
@@ -20999,7 +20981,6 @@ function buildHdrChromeArgs(width, height) {
20999
20981
  "--disable-component-update",
21000
20982
  "--disable-default-apps",
21001
20983
  "--disable-sync",
21002
- "--no-zygote",
21003
20984
  "--force-gpu-mem-available-mb=4096",
21004
20985
  "--autoplay-policy=no-user-gesture-required"
21005
20986
  ];
@@ -21035,9 +21016,6 @@ export {
21035
21016
  oneProcessOverPipe,
21036
21017
  isOneProcessOverPipe,
21037
21018
  sandboxDeniedRemediation,
21038
- chromeSandboxEnabled,
21039
- chromeSandboxArgs,
21040
- launchWithChromeSandboxFallback,
21041
21019
  BrowserLeasePool,
21042
21020
  setHostHandlesSigint,
21043
21021
  resolveHeadlessShellPath,