hyperframes 0.9.59 → 0.9.63

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-OBIEVDD7.js} +26 -27
  2. package/dist/{agentPromptGenerator-GCLJUGVE.js → agentPromptGenerator-KOFDIQGE.js} +15 -17
  3. package/dist/{animatedGifPrep-JPQZPZC4.js → animatedGifPrep-C4S7AVG7.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-FUQDWJ62.js} +15 -5
  8. package/dist/{assetCataloger-LMPPKPF6.js → assetCataloger-A5N6O4JB.js} +16 -18
  9. package/dist/{audio-FD2EBZ6D.js → audio-AFNZLDGT.js} +45 -45
  10. package/dist/{auth-JA7XH6NG.js → auth-N2G7ERXF.js} +4 -4
  11. package/dist/{autoUpdate-WKW2OMIY.js → autoUpdate-ZGC4CJIP.js} +4 -4
  12. package/dist/{avatars-Q7U6CO4X.js → avatars-ALJTTP5M.js} +23 -25
  13. package/dist/{backgroundChecks-H2SOS2CM.js → backgroundChecks-3S6MXDFU.js} +5 -5
  14. package/dist/backgroundChecksWorker.js +5 -5
  15. package/dist/{batchRender-75OLVMZY.js → batchRender-HZIXQY4N.js} +7 -9
  16. package/dist/{beats-R4EHWWJN.js → beats-2XU7WVQU.js} +16 -18
  17. package/dist/{benchmark-F5OHG3Q3.js → benchmark-SBZQIKED.js} +27 -27
  18. package/dist/{billing-LBRSBVXQ.js → billing-2DFCEQSM.js} +21 -23
  19. package/dist/{browser-CNTCFZOG.js → browser-336OZKWA.js} +13 -15
  20. package/dist/{bundleWithLocalizedFonts-RVF7AFP5.js → bundleWithLocalizedFonts-DMW5VAFU.js} +1 -1
  21. package/dist/{capture-CTRZEZTC.js → capture-AD5PYZ2O.js} +10 -12
  22. package/dist/{capture-DLYM3V5F.js → capture-Z3LNLS32.js} +43 -41
  23. package/dist/{captureCompositionFrame-2O2HP6SK.js → captureCompositionFrame-2BVCI3V2.js} +22 -24
  24. package/dist/{captureFile-W7ZDDBCD.js → captureFile-Z7HQDRC2.js} +4 -5
  25. package/dist/{catalog-6XL63LU3.js → catalog-OKCKRILJ.js} +28 -30
  26. package/dist/{catch-up-AOFQWE6O.js → catch-up-MP2BCTZH.js} +15 -17
  27. package/dist/{check-5V7K4RL6.js → check-FYG4RBOV.js} +62 -63
  28. package/dist/{checkAudio-4YUTDQSQ.js → checkAudio-3RKJELTT.js} +18 -20
  29. package/dist/{checkBrowser-BAWRZZZU.js → checkBrowser-R3KY4UR5.js} +52 -53
  30. package/dist/{chunk-EGZQX3UX.js → chunk-2SPQTJA2.js} +24 -22
  31. package/dist/{chunk-2ARKMOCD.js → chunk-2XKRMQJP.js} +6 -6
  32. package/dist/{chunk-MHF5F4FF.js → chunk-3GF72UPC.js} +74 -15
  33. package/dist/chunk-3HJX4F2S.js +39 -0
  34. package/dist/{chunk-KYXH4JWF.js → chunk-3KKKIHBJ.js} +18 -17
  35. package/dist/{chunk-QC35TPEE.js → chunk-3O2FM72C.js} +6 -6
  36. package/dist/{chunk-WDMSNDHS.js → chunk-3SMQ3AKQ.js} +297 -115
  37. package/dist/{chunk-MVA4OQL7.js → chunk-4KEONZJ2.js} +1 -1
  38. package/dist/{chunk-O733DEVT.js → chunk-4ORH2OXS.js} +1 -1
  39. package/dist/{chunk-VPPKUCSP.js → chunk-4SDNEKTL.js} +2 -2
  40. package/dist/{chunk-AEXDJU77.js → chunk-4T45V6GF.js} +1 -1
  41. package/dist/{chunk-CIXP5G7Z.js → chunk-5GUYYSVT.js} +1 -1
  42. package/dist/{chunk-ZQIMO52O.js → chunk-5RCXJH5B.js} +59 -24
  43. package/dist/{chunk-TVWDS5AT.js → chunk-5T2LNQAH.js} +46 -18
  44. package/dist/{chunk-XZ6THYIK.js → chunk-5YY4SRBH.js} +5 -5
  45. package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
  46. package/dist/{chunk-5T6HPV25.js → chunk-63CSQYYO.js} +2 -2
  47. package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
  48. package/dist/{chunk-N6QWL3E7.js → chunk-6HHKHDMW.js} +2 -2
  49. package/dist/{chunk-Z2U7ELGP.js → chunk-6KU6TCSS.js} +2 -2
  50. package/dist/{chunk-PSREPOJ4.js → chunk-6PANJZEW.js} +18 -14
  51. package/dist/{chunk-YMKCJRVK.js → chunk-7AYDKU2X.js} +1 -1
  52. package/dist/{chunk-PMKWTXHE.js → chunk-7CSPYOLI.js} +2 -2
  53. package/dist/{chunk-KQHDFVFF.js → chunk-7F3NOYSK.js} +2 -2
  54. package/dist/{chunk-ZMLZRMG7.js → chunk-7NHID6VP.js} +2 -2
  55. package/dist/{chunk-BMTT2T7M.js → chunk-7NMH22SY.js} +5 -5
  56. package/dist/{chunk-RDWGNSVI.js → chunk-7YB4BDX7.js} +2 -2
  57. package/dist/{chunk-RAOGN2HG.js → chunk-A65Q5P62.js} +1 -1
  58. package/dist/{chunk-JQ7BPN2R.js → chunk-ABK44JS4.js} +3 -3
  59. package/dist/{chunk-DSCMYTKJ.js → chunk-AQFSYY23.js} +3 -3
  60. package/dist/{chunk-PLOCYJ5U.js → chunk-B5TLZC2D.js} +11 -4
  61. package/dist/{chunk-EUVU5JS4.js → chunk-BGIRYNAW.js} +38 -11
  62. package/dist/{chunk-URHIQHDR.js → chunk-BGV5YKSM.js} +14 -12
  63. package/dist/{chunk-QVHDAS3L.js → chunk-BJLC2UEQ.js} +4 -4
  64. package/dist/{chunk-QHVE6AFU.js → chunk-BJMW2GYO.js} +1 -1
  65. package/dist/{chunk-LSGJY2FG.js → chunk-CDPVVNNZ.js} +1 -1
  66. package/dist/{chunk-HXFGAI6L.js → chunk-CLRASDLH.js} +16 -16
  67. package/dist/{chunk-CAMD2NBN.js → chunk-CSMWC336.js} +2 -2
  68. package/dist/{chunk-WRSGWDDB.js → chunk-CZYQR7VM.js} +9 -9
  69. package/dist/chunk-D37I36FY.js +21 -0
  70. package/dist/{chunk-6LGB4MVX.js → chunk-DEWY2KX4.js} +1 -1
  71. package/dist/{chunk-OV5OSN74.js → chunk-DG4VSBM3.js} +3 -3
  72. package/dist/{chunk-L456Q4KU.js → chunk-DJCBHKQ5.js} +1 -1
  73. package/dist/{chunk-SGQKP2JT.js → chunk-DN4KUTQ5.js} +2 -2
  74. package/dist/{chunk-RHFB457E.js → chunk-DVUC244G.js} +3 -3
  75. package/dist/{chunk-7Q4EGB3N.js → chunk-E6WYYM6K.js} +1 -1
  76. package/dist/chunk-EJINQHA6.js +113 -0
  77. package/dist/{chunk-T5QI7ZL2.js → chunk-EPWGATQN.js} +5 -5
  78. package/dist/{chunk-VXRTE7MZ.js → chunk-ERYGKPIR.js} +1 -1
  79. package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
  80. package/dist/{chunk-L4MXZHRB.js → chunk-FA6TQ22Y.js} +3 -3
  81. package/dist/{chunk-JLMMY3UI.js → chunk-FAYFXXVF.js} +2 -2
  82. package/dist/{chunk-JUUOYXWH.js → chunk-FEURVA3G.js} +2 -2
  83. package/dist/{chunk-PHYFZXOS.js → chunk-FLJ4S7NA.js} +2 -2
  84. package/dist/{chunk-LZWG4GCC.js → chunk-GGSE4SO2.js} +55 -125
  85. package/dist/chunk-GJPT5Q6H.js +112 -0
  86. package/dist/{chunk-C3NDLM4S.js → chunk-GPZIE45V.js} +2 -2
  87. package/dist/{chunk-6UAYOSE7.js → chunk-GRBYYKYT.js} +9 -9
  88. package/dist/{chunk-GYJ7AJXN.js → chunk-H4HYZUE3.js} +1 -1
  89. package/dist/{chunk-7YRZBB4C.js → chunk-H7FGALE4.js} +1 -1
  90. package/dist/{chunk-FQ26QE5N.js → chunk-HAFE7SZR.js} +1 -1
  91. package/dist/{chunk-TIZC4XKU.js → chunk-HAMPVCRY.js} +2 -2
  92. package/dist/{chunk-POFQOZOF.js → chunk-HF2A733B.js} +490 -224
  93. package/dist/{chunk-3DFEBAWJ.js → chunk-HGVBKNLQ.js} +2 -2
  94. package/dist/{chunk-4STRMCGD.js → chunk-HHM2JZLH.js} +4 -4
  95. package/dist/{chunk-PYRM3OAI.js → chunk-HJTCWQGF.js} +11 -13
  96. package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
  97. package/dist/{chunk-SC7SX2I3.js → chunk-HMY3GUJN.js} +4 -4
  98. package/dist/{chunk-3RTZ2UX7.js → chunk-HS7YBLZS.js} +1 -1
  99. package/dist/{chunk-B653JKWT.js → chunk-HY6N5K6U.js} +4 -4
  100. package/dist/{chunk-WI3FM54X.js → chunk-HZMDLKRP.js} +3 -3
  101. package/dist/{chunk-6ATP7YPZ.js → chunk-IBU2BW4H.js} +9 -4
  102. package/dist/{chunk-I5H2FPNP.js → chunk-ICP22AQY.js} +1 -1
  103. package/dist/{chunk-ORKZUTZW.js → chunk-IOWECUEU.js} +1 -1
  104. package/dist/{chunk-RKIF4EU7.js → chunk-IS45C2EI.js} +14 -14
  105. package/dist/{chunk-SXCM6VY3.js → chunk-IU6AC3WL.js} +1 -1
  106. package/dist/{chunk-FGJUVWAM.js → chunk-J2MAI47E.js} +1 -1
  107. package/dist/{chunk-K33E3YNK.js → chunk-J43NNMIX.js} +10 -10
  108. package/dist/{chunk-FC77MYAD.js → chunk-J4YDHNAH.js} +1 -1
  109. package/dist/{chunk-QKHW5NXL.js → chunk-JDKLF3AG.js} +2 -2
  110. package/dist/{chunk-PCHUX7Y5.js → chunk-JU4ZWNU6.js} +2 -2
  111. package/dist/{chunk-2LJPBYKI.js → chunk-KDLMUU3E.js} +1 -1
  112. package/dist/{chunk-OPIS2YMA.js → chunk-KIWGMFXC.js} +6 -6
  113. package/dist/{chunk-ISSG4PUD.js → chunk-LGIWC6KN.js} +3 -3
  114. package/dist/{chunk-YXX6CIHL.js → chunk-LKHH4BUW.js} +12 -1
  115. package/dist/{chunk-PDT6CBK2.js → chunk-LNDOTF7B.js} +8 -3
  116. package/dist/{chunk-BTXYXM2A.js → chunk-LYGIKJBA.js} +17 -17
  117. package/dist/{chunk-K2WLOTTF.js → chunk-LYTELQL2.js} +2 -4
  118. package/dist/chunk-MCTQEI6H.js +170 -0
  119. package/dist/{chunk-XXJBWKDS.js → chunk-MHS3RUAQ.js} +17 -17
  120. package/dist/{chunk-H3TD4VKX.js → chunk-MJBBKSKB.js} +1 -1
  121. package/dist/{chunk-ODLSLYJR.js → chunk-MTCVUAUK.js} +2 -2
  122. package/dist/{chunk-FFL5R2EZ.js → chunk-N5EZRITN.js} +4 -4
  123. package/dist/{chunk-65X2G57W.js → chunk-NEZVFC34.js} +4 -4
  124. package/dist/{chunk-J4OHC5FU.js → chunk-NK2UW3WR.js} +1 -1
  125. package/dist/{chunk-763UG5II.js → chunk-OOVT26AC.js} +8 -8
  126. package/dist/{chunk-JT7RXK2N.js → chunk-OW6MOJSR.js} +1 -1
  127. package/dist/{chunk-4VJQVTQI.js → chunk-PAHTZDMZ.js} +1 -1
  128. package/dist/chunk-PET4B6IL.js +159 -0
  129. package/dist/{chunk-7XOORL2Q.js → chunk-PJ22RPTH.js} +10 -10
  130. package/dist/{chunk-I6OSAVHD.js → chunk-PLI7YT5S.js} +7 -11
  131. package/dist/{chunk-6VY52EVW.js → chunk-PQ2OPPGP.js} +7 -3
  132. package/dist/{chunk-KK5Z5XQ3.js → chunk-PTGNUVCB.js} +3 -0
  133. package/dist/{chunk-HTISHNLA.js → chunk-Q7IOMZ5X.js} +1 -1
  134. package/dist/{chunk-TNFTRLLJ.js → chunk-QOLZBRLN.js} +3 -3
  135. package/dist/{chunk-WQGDE3L6.js → chunk-QUYSLXNP.js} +1 -1
  136. package/dist/{chunk-6R4MEYWD.js → chunk-QY42NK3T.js} +2 -2
  137. package/dist/{chunk-CC72LTIT.js → chunk-R5HNUPI5.js} +259 -230
  138. package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
  139. package/dist/{chunk-J3H6QDDY.js → chunk-RF3DT4CS.js} +1 -1
  140. package/dist/{chunk-3QMGLSKC.js → chunk-RHHPEUVM.js} +2 -2
  141. package/dist/{chunk-UBNJWS2H.js → chunk-RQ4YNYWE.js} +3 -3
  142. package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
  143. package/dist/{chunk-XXOEYRD5.js → chunk-S4X7H76F.js} +2 -2
  144. package/dist/{chunk-VFGFXE6J.js → chunk-SDIQEPAR.js} +1 -1
  145. package/dist/{chunk-D44MBZI6.js → chunk-SFIUSS3O.js} +2 -2
  146. package/dist/{chunk-OF7SQ77J.js → chunk-SIQGTRZ5.js} +1 -1
  147. package/dist/{chunk-AQIHV4PM.js → chunk-SKQWXQ7H.js} +2 -2
  148. package/dist/{chunk-QJ2BV7FM.js → chunk-SOIOB7FF.js} +9 -9
  149. package/dist/{chunk-GMIFMRWR.js → chunk-T25ZHQR2.js} +6 -6
  150. package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
  151. package/dist/{chunk-HLOJSBGC.js → chunk-TTRX7NM3.js} +9 -9
  152. package/dist/chunk-TZ6M2LEV.js +5101 -0
  153. package/dist/{chunk-6K6RIX2A.js → chunk-U4KLJXI4.js} +21 -6
  154. package/dist/{chunk-7CI5MLCC.js → chunk-UOWDVL6M.js} +26 -11
  155. package/dist/{chunk-OYKAS3J5.js → chunk-V7Z2JQRL.js} +3 -3
  156. package/dist/{chunk-UNB2DFR2.js → chunk-VHDT4EME.js} +3 -3
  157. package/dist/{chunk-RX67N2PU.js → chunk-VM2VBJRC.js} +31 -2
  158. package/dist/{chunk-LTOUXR3X.js → chunk-VSCJ76AM.js} +73 -75
  159. package/dist/{chunk-WTZT6FSK.js → chunk-VSS3OAZB.js} +1 -1
  160. package/dist/{chunk-TJGGLLQJ.js → chunk-VWI7V4Q5.js} +35 -16
  161. package/dist/{chunk-SO7FT7YA.js → chunk-WMKIO4OA.js} +33 -32
  162. package/dist/{chunk-THGJTFYB.js → chunk-WTO3A7ET.js} +86 -6
  163. package/dist/{chunk-YBYNBKCN.js → chunk-WTS245RC.js} +2 -2
  164. package/dist/{chunk-ECGNWHFE.js → chunk-XBHPFWRL.js} +88 -2
  165. package/dist/{chunk-KGPHUBBA.js → chunk-XFGC5XLR.js} +1 -1
  166. package/dist/{chunk-R3ONQOLE.js → chunk-XGKNDIBT.js} +11 -11
  167. package/dist/{chunk-DCRHNRUY.js → chunk-XQQRCWS5.js} +5 -5
  168. package/dist/{chunk-XWV6BOCG.js → chunk-XQQZ2G25.js} +5 -5
  169. package/dist/{chunk-WKE3WTIU.js → chunk-YB2ZJJFJ.js} +1 -1
  170. package/dist/{chunk-ZIYYSD6S.js → chunk-YN6UGKZE.js} +79 -40
  171. package/dist/{chunk-TIBFCGLT.js → chunk-YSWORAKY.js} +1 -1
  172. package/dist/{chunk-HY7FPTBD.js → chunk-YWNQOM4P.js} +2 -2
  173. package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
  174. package/dist/chunk-Z3BPDCRV.js +537 -0
  175. package/dist/{chunk-HYXQR5I3.js → chunk-Z55ASKZE.js} +1 -1
  176. package/dist/{chunk-4QSDXDLV.js → chunk-ZM3GP62D.js} +3 -3
  177. package/dist/{chunk-ELDZ6C3R.js → chunk-ZYODIJRG.js} +7 -3
  178. package/dist/{clean-Z5REUSNY.js → clean-QXAUIYBP.js} +36 -37
  179. package/dist/cli.js +74 -75
  180. package/dist/{cloud-QP5R6B6A.js → cloud-46NGVK4Q.js} +8 -9
  181. package/dist/{cloud-NJ7G3NF3.js → cloud-7B4YZT5U.js} +4 -4
  182. package/dist/{cloudrun-CPAZLNTW.js → cloudrun-CZGDPM57.js} +19 -12
  183. package/dist/{compare-T5CHD25P.js → compare-O2UN7HGD.js} +70 -92
  184. package/dist/{compiler-QVDXN4OS.js → compiler-ZGIAIJVE.js} +7 -9
  185. package/dist/{component-QMZ46KTE.js → component-ZIGH3VGE.js} +8 -10
  186. package/dist/{compositions-JHYYNBAK.js → compositions-W54S4VIU.js} +21 -23
  187. package/dist/{contactSheet-7SPGUTDV.js → contactSheet-ROUVWDRO.js} +5 -6
  188. package/dist/{curve-ON6QQY7T.js → curve-HBHRWPIE.js} +20 -22
  189. package/dist/{cuts-K4FOVP4E.js → cuts-YHNO7A5G.js} +21 -23
  190. package/dist/{delete-6WFQ3FC2.js → delete-WIW3WLKA.js} +26 -15
  191. package/dist/{deploy-UAZQ5PBA.js → deploy-ICQ2PLU5.js} +12 -13
  192. package/dist/{describeProject-7W6BN5A2.js → describeProject-OCXNHB5X.js} +15 -17
  193. package/dist/{destroy-4B4OVPHJ.js → destroy-UBSVUXYW.js} +12 -13
  194. package/dist/{deterministicFonts-VLIVGXUQ.js → deterministicFonts-JER4GPCM.js} +4 -5
  195. package/dist/{diff-ZSA37QQS.js → diff-43OCC2Y3.js} +57 -54
  196. package/dist/{dist-ACT5C6ME.js → dist-6EF2P3P7.js} +4 -4
  197. package/dist/{dist-VRYZIJFZ.js → dist-A65PCIEN.js} +5 -8
  198. package/dist/{dist-2O52E7QZ.js → dist-DRHXUWGQ.js} +25 -21
  199. package/dist/{doctor-RXQ2Y2YY.js → doctor-XVOTWU62.js} +23 -25
  200. package/dist/{dotEnv-RZ52L7X3.js → dotEnv-MWWLCN66.js} +11 -3
  201. package/dist/{energy-DRA3DCRO.js → energy-SGA245NF.js} +21 -23
  202. package/dist/{events-4SNBQE3M.js → events-6HPYERWI.js} +23 -25
  203. package/dist/{events-GA3YM3WT.js → events-LIZCRDAT.js} +5 -5
  204. package/dist/{events-AJNF2C3H.js → events-MMXXYK5J.js} +10 -12
  205. package/dist/{execute-6LTZRWE4.js → execute-3346FOCY.js} +49 -46
  206. package/dist/{extract-XZQN654B.js → extract-VDV6EY5E.js} +21 -23
  207. package/dist/{face-RKUNVSN3.js → face-EGKO7HYX.js} +22 -24
  208. package/dist/{feedback-AL7NPPMZ.js → feedback-KEX6YIDA.js} +62 -38
  209. package/dist/{ffmpeg-BEL7EZBA.js → ffmpeg-OIAPERTW.js} +14 -16
  210. package/dist/{figma-IZ3NH2KZ.js → figma-KANAV6Q6.js} +3 -3
  211. package/dist/fontLocalizeCli.js +26 -27
  212. package/dist/{frames-AYE53CSZ.js → frames-XBQNOQBU.js} +23 -25
  213. package/dist/{generate-BZ4EVVQI.js → generate-P4E5UIEY.js} +37 -39
  214. package/dist/{get-2GG4NSOK.js → get-R2FJMNJK.js} +26 -15
  215. package/dist/{gpuPolicy-W2ZGBXNG.js → gpuPolicy-AISTDFL2.js} +14 -16
  216. package/dist/{grade-compare-65NWHVXK.js → grade-compare-CE4RUMFU.js} +50 -51
  217. package/dist/hangReport.js +2 -2
  218. package/dist/{heifImagePrep-MRQ4KKDF.js → heifImagePrep-UQUW2OVF.js} +21 -22
  219. package/dist/{help-TEQWNNPI.js → help-SK6PGYI2.js} +1 -1
  220. package/dist/{history-MVNPETRW.js → history-DM5H55WQ.js} +23 -25
  221. package/dist/hyperframe.manifest.json +1 -1
  222. package/dist/hyperframe.runtime.iife.js +67 -67
  223. package/dist/hyperframes-player.global.js +1 -1
  224. package/dist/{info-NGNTHWYX.js → info-UBGKJ5XD.js} +23 -25
  225. package/dist/{init-H7SUGVZX.js → init-SGBCTXCE.js} +41 -43
  226. package/dist/{ink-CPZ4YZFM.js → ink-NWXEZQPJ.js} +21 -23
  227. package/dist/{inspect-GZBQ7XN7.js → inspect-B7VENILS.js} +53 -54
  228. package/dist/{installer-ZTHYVK4L.js → installer-GR5X6HMD.js} +8 -10
  229. package/dist/{keyframes-B52LQUOI.js → keyframes-VZSC75GL.js} +77 -28
  230. package/dist/{lambda-SZDQJMKA.js → lambda-KCTB2LV5.js} +32 -26
  231. package/dist/{layout-BOUOG2D2.js → layout-3HSW3SNT.js} +53 -54
  232. package/dist/{lint-H4OWI5JN.js → lint-Q6NRDYLG.js} +18 -20
  233. package/dist/{lintProject-P4EAXFU2.js → lintProject-N3UN6HEE.js} +4 -4
  234. package/dist/{list-VNEYACGL.js → list-5TAZKTS2.js} +27 -16
  235. package/dist/{localPage-ZP7WVA2N.js → localPage-X22Z5SDE.js} +15 -17
  236. package/dist/{login-RUDOUO5Z.js → login-TIPDZQXX.js} +6 -6
  237. package/dist/{logout-5ZO6ZNS3.js → logout-KQ7VU5M6.js} +2 -2
  238. package/dist/{look-G3NVPKXZ.js → look-VODDQOS6.js} +21 -23
  239. package/dist/{manager-NXH2NJC6.js → manager-B5HWXCKJ.js} +16 -18
  240. package/dist/{manager-KWNID2ZA.js → manager-C5S25OOK.js} +5 -5
  241. package/dist/{measure-5PVIZ2W2.js → measure-EPD4JLR7.js} +11 -11
  242. package/dist/{media-treatment-T5QJI4PQ.js → media-treatment-ZLWCSYMP.js} +29 -29
  243. package/dist/{media-use-RTN3SMVY.js → media-use-HELWSEKT.js} +12 -8
  244. package/dist/{models-J2CJ7EVX.js → models-OKVD2GZS.js} +20 -22
  245. package/dist/{motionShot-HU7P26WJ.js → motionShot-6HJBMGBW.js} +28 -30
  246. package/dist/{normalize-44E7R6T5.js → normalize-TBACWMEK.js} +4 -5
  247. package/dist/{normalize-audio-2YFTP2T6.js → normalize-audio-PKUJQYZZ.js} +20 -21
  248. package/dist/{open-RSCNUV6E.js → open-ZOXZI6MJ.js} +26 -28
  249. package/dist/{parakeetRunner-BUY25EIR.js → parakeetRunner-I3TPZNMG.js} +24 -26
  250. package/dist/{pipeline-A4RL5R5P.js → pipeline-IGYBW7NA.js} +20 -20
  251. package/dist/{plan-7WYNPILA.js → plan-K2WUQRA2.js} +31 -33
  252. package/dist/{play-UKHFNMYZ.js → play-QRRL526W.js} +47 -45
  253. package/dist/{preflight-2VFCT3PI.js → preflight-KTYLNVCB.js} +17 -19
  254. package/dist/{present-ZUGFCQOF.js → present-EX2TKGXD.js} +39 -40
  255. package/dist/{preview-BT2ZFYMC.js → preview-FXMD27D6.js} +50 -50
  256. package/dist/privateProjectFile-TTLLYWGC.js +65 -0
  257. package/dist/{probe-2CLEK2UT.js → probe-2QG66GKK.js} +21 -23
  258. package/dist/{producer-HCAMS55D.js → producer-QH7A62IS.js} +1 -1
  259. package/dist/{progress-5A4N7PTR.js → progress-PT3NAFVP.js} +5 -6
  260. package/dist/{projectConfig-2KJ2PXIM.js → projectConfig-ZX2IUY45.js} +11 -13
  261. package/dist/{publication-AR63EGJF.js → publication-SKR5UXQK.js} +6 -8
  262. package/dist/{publish-EGKYOJWV.js → publish-X2PMT5TT.js} +63 -42
  263. package/dist/receivedRecordFollow-K7DVCCUS.js +54 -0
  264. package/dist/{refresh-GYRLZ7DZ.js → refresh-CYSJHATJ.js} +2 -2
  265. package/dist/{remove-background-IQQPMM24.js → remove-background-5FVNHD45.js} +21 -21
  266. package/dist/{render-ROJ5X53T.js → render-CJDV7E5M.js} +128 -87
  267. package/dist/{render-HJRMJYTA.js → render-GPXJCWM4.js} +12 -13
  268. package/dist/{render-YNSZYEEK.js → render-KAABP77Y.js} +141 -114
  269. package/dist/{render-batch-MXYDIHRO.js → render-batch-JYPH5RA7.js} +12 -13
  270. package/dist/renderSetupWorker.js +9 -9
  271. package/dist/{resolver-SPLAVF76.js → resolver-NXCI42VM.js} +8 -10
  272. package/dist/{reverse-CE6OGBB7.js → reverse-TQTVHTEN.js} +1 -1
  273. package/dist/{run-YVNJJL26.js → run-3O3N737Q.js} +11 -12
  274. package/dist/{sam-2D3BUTL7.js → sam-O7Y2CCK3.js} +4 -4
  275. package/dist/{screenshotCapture-DRO7VMNI.js → screenshotCapture-V6VXB4AZ.js} +17 -19
  276. package/dist/{service-K65JYG4O.js → service-HBLZ3T4R.js} +22 -24
  277. package/dist/{share-CSVWF6SB.js → share-QBLF3RGF.js} +26 -28
  278. package/dist/{sherpa-JE6AFUEV.js → sherpa-UZXWHCV4.js} +23 -25
  279. package/dist/sherpaWorker.js +6 -7
  280. package/dist/{sites-QCGTWVNF.js → sites-R5F5FNAL.js} +6 -6
  281. package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
  282. package/dist/skills/media-use/audio/references/tts-to-captions.md +1 -1
  283. package/dist/skills/media-use/audio/references/tts.md +6 -6
  284. package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +143 -2
  285. package/dist/skills/media-use/audio/scripts/lib/tts.mjs +12 -2
  286. package/dist/skills/media-use/scripts/lib/candidates.mjs +3 -2
  287. package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
  288. package/dist/skills/media-use/scripts/lib/terminal-text.mjs +12 -0
  289. package/dist/skills/media-use/scripts/resolve.mjs +21 -15
  290. package/dist/{skills-L3BXM7VJ.js → skills-HVIJD32X.js} +15 -17
  291. package/dist/{skillsUpdateCheck-VUENI5OR.js → skillsUpdateCheck-DD2NM36O.js} +5 -5
  292. package/dist/{snapshot-GI2GWIF6.js → snapshot-JKKROVMI.js} +97 -84
  293. package/dist/{src-ZXZO5RCJ.js → src-BBT6W66H.js} +29 -30
  294. package/dist/{src-B646B52O.js → src-IQKTGPPV.js} +17 -19
  295. package/dist/{start-ZNGKXRNE.js → start-A4KULXY2.js} +43 -37
  296. package/dist/{state-7CJBWHXJ.js → state-5LE7AN6F.js} +5 -6
  297. package/dist/{staticProjectServer-46T6YTPF.js → staticProjectServer-WH2SJFSD.js} +33 -34
  298. package/dist/{status-7SWTPLVI.js → status-ZL2XQWMR.js} +23 -25
  299. package/dist/studio/assets/{hyperframes-player-bya4hgms.js → hyperframes-player-CUQxAJaE.js} +1 -1
  300. package/dist/studio/assets/{index--dcfSUzI.js → index-D3rdYBVx.js} +1 -1
  301. package/dist/studio/assets/{index-Bxh5lW0C.js → index-DSrTQv-k.js} +204 -204
  302. package/dist/studio/assets/{pausedVideoDecoder-BKym1jA6.js → pausedVideoDecoder-BWllfjF-.js} +1 -1
  303. package/dist/studio/index.html +1 -1
  304. package/dist/{studio-api-4XKM5HDR.js → studio-api-FNZ62P67.js} +25 -21
  305. package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
  306. package/dist/{studioServer-4TWRIZNU.js → studioServer-BBVHB7A6.js} +260 -117
  307. package/dist/subCompositionWorker.js +60 -54
  308. package/dist/{sync-R3K6LYB3.js → sync-UW6N6ORX.js} +21 -23
  309. package/dist/{synthesize-OZ3SJTOF.js → synthesize-NGU4DRKC.js} +10 -9
  310. package/dist/{system-LZ4PMOJD.js → system-PKL4Y4MX.js} +3 -3
  311. package/dist/{telemetry-WSBY25O3.js → telemetry-OJ2XS46A.js} +10 -12
  312. package/dist/{templates-ITP6ISAF.js → templates-GH4ZOTLA.js} +24 -26
  313. package/dist/{timeline-U7GJMYKV.js → timeline-MABFMT2U.js} +36 -37
  314. package/dist/{tokens-3YTSUU27.js → tokens-XE3K3AJF.js} +15 -5
  315. package/dist/{transcribe-QHHY5M3G.js → transcribe-IRYGXKOQ.js} +44 -46
  316. package/dist/{transcribe-ISCBYWN4.js → transcribe-TV5THKEM.js} +20 -22
  317. package/dist/{tts-24IJXIT2.js → tts-HRWZJFLJ.js} +20 -4
  318. package/dist/{update-SVEH2GOL.js → update-BLVL5JMT.js} +17 -19
  319. package/dist/{updateCheck-MDG7N7VO.js → updateCheck-5QADMRBP.js} +4 -4
  320. package/dist/{upgrade-6CGAI4OR.js → upgrade-CBB7FP3D.js} +8 -9
  321. package/dist/{urlDownloader-VPQTIGEH.js → urlDownloader-ZJ423NLB.js} +13 -15
  322. package/dist/{validate-QUB4KCEQ.js → validate-PASIFGBU.js} +41 -42
  323. package/dist/{video-PUGZ5UHS.js → video-3MS2DCXZ.js} +17 -19
  324. package/dist/{voices-4UO5AYLS.js → voices-TXV5K5WI.js} +34 -36
  325. package/dist/warmCheck.js +62 -63
  326. package/dist/warmCheckClient.js +2 -2
  327. package/package.json +1 -1
  328. package/dist/chunk-6VY6WTY5.js +0 -279
  329. package/dist/chunk-NI7JVGOE.js +0 -5083
  330. package/dist/chunk-NLN5NY3P.js +0 -34
  331. package/dist/chunk-UVZIABYZ.js +0 -40
  332. package/dist/chunk-VC76R6W2.js +0 -27
@@ -11,19 +11,19 @@ import {
11
11
  isHistoryId,
12
12
  openProjectHistory,
13
13
  readProjectHistory
14
- } from "./chunk-TVWDS5AT.js";
14
+ } from "./chunk-5T2LNQAH.js";
15
15
  import {
16
16
  resolveProject
17
- } from "./chunk-XXOEYRD5.js";
17
+ } from "./chunk-S4X7H76F.js";
18
18
  import {
19
19
  findPreviewServerForProject,
20
20
  studioApiUrl
21
- } from "./chunk-5IE5ZI66.js";
21
+ } from "./chunk-62UUXB3F.js";
22
22
  import {
23
23
  readRecord,
24
24
  removeRecord,
25
25
  writeRecord
26
- } from "./chunk-JT7RXK2N.js";
26
+ } from "./chunk-OW6MOJSR.js";
27
27
 
28
28
  // src/utils/historyOwner.ts
29
29
  import { randomUUID } from "crypto";
@@ -144,6 +144,13 @@ function previewOwner(route) {
144
144
  }
145
145
  };
146
146
  }
147
+ async function relistWrites(projectDir, entry) {
148
+ if (!entry?.files.length) return;
149
+ const { relistHistoryWrites } = await import("./receivedRecordFollow-K7DVCCUS.js");
150
+ await relistHistoryWrites(projectDir, entry).catch(
151
+ (error) => console.warn(`Could not update the received-files record: ${String(error)}`)
152
+ );
153
+ }
147
154
  async function directOwner(projectDir, ownerWaitMs = historyDeps.ownerWaitMs) {
148
155
  let turn = null;
149
156
  const history = await openProjectHistory({
@@ -171,8 +178,16 @@ async function directOwner(projectDir, ownerWaitMs = historyDeps.ownerWaitMs) {
171
178
  list: async () => history.list(),
172
179
  peek: async (point) => history.peek(point),
173
180
  blob: (hash) => history.readBlob(hash),
174
- undo: (id, who, mode) => history.undo(id, { who, ...mode && { mode } }),
175
- restore: (point, who) => history.restore(point, who),
181
+ undo: async (id, who, mode) => {
182
+ const undone = await history.undo(id, { who, ...mode && { mode } });
183
+ if (undone.ok) await relistWrites(projectDir, undone.entry);
184
+ return undone;
185
+ },
186
+ restore: async (point, who) => {
187
+ const restored = await history.restore(point, who);
188
+ await relistWrites(projectDir, restored);
189
+ return restored;
190
+ },
176
191
  pin: async (id, pinned) => history.pin(id, pinned),
177
192
  // Opening filed every earlier write; the turn's own writes are filed to it when the next open passes it.
178
193
  begin: async () => ({ id: randomUUID(), startedAt: historyDeps.now() }),
@@ -6,27 +6,30 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  formatLintStartupMessage
9
- } from "./chunk-H3TD4VKX.js";
9
+ } from "./chunk-MJBBKSKB.js";
10
10
  import {
11
11
  reportVariableIssues,
12
12
  resolveVariablesArg,
13
13
  validateVariablesAgainstProject
14
- } from "./chunk-C3NDLM4S.js";
14
+ } from "./chunk-GPZIE45V.js";
15
+ import {
16
+ outsideAssetsAllowed
17
+ } from "./chunk-GGSE4SO2.js";
15
18
  import {
16
19
  applyRenderEnvironment,
17
20
  renderOutputDirectory
18
- } from "./chunk-URHIQHDR.js";
21
+ } from "./chunk-BGV5YKSM.js";
19
22
  import {
20
23
  makeOutputFolder
21
24
  } from "./chunk-3S27CPV7.js";
22
25
  import {
23
26
  renderMotionBlurResult,
24
27
  trackRenderPreflightRejected
25
- } from "./chunk-6ATP7YPZ.js";
28
+ } from "./chunk-IBU2BW4H.js";
26
29
  import {
27
30
  errorBox,
28
31
  formatBytes
29
- } from "./chunk-6VY52EVW.js";
32
+ } from "./chunk-PQ2OPPGP.js";
30
33
  import {
31
34
  c
32
35
  } from "./chunk-JCNPHRGX.js";
@@ -34,7 +37,7 @@ import {
34
37
  PRORES_PROFILES,
35
38
  REFERENCE_BACKGROUND_FIELD,
36
39
  referenceBackgroundResult
37
- } from "./chunk-CC72LTIT.js";
40
+ } from "./chunk-R5HNUPI5.js";
38
41
  import {
39
42
  runRenderSetupWorker
40
43
  } from "./chunk-Q4FVSYTD.js";
@@ -44,7 +47,7 @@ import {
44
47
  import {
45
48
  lintProject,
46
49
  shouldBlockRender
47
- } from "./chunk-HLOJSBGC.js";
50
+ } from "./chunk-TTRX7NM3.js";
48
51
  import {
49
52
  CliRuntimeError,
50
53
  failCommand,
@@ -87,7 +90,7 @@ async function executeRenderPlan(plan, dependencies, cancellation) {
87
90
  let batchModule;
88
91
  let preparedBatch;
89
92
  if (plan.batchPath) {
90
- batchModule = await import("./batchRender-75OLVMZY.js");
93
+ batchModule = await import("./batchRender-HZIXQY4N.js");
91
94
  try {
92
95
  preparedBatch = batchModule.prepareBatchRender({
93
96
  batchPath: plan.batchPath,
@@ -184,6 +187,8 @@ function renderOptionsFromPlan(plan, browserPath, variables) {
184
187
  resumeSegments: plan.resumeSegments,
185
188
  keepSegments: plan.keepSegments,
186
189
  bestEffort: plan.bestEffort,
190
+ includeOutsideScripts: plan.includeOutsideScripts,
191
+ refuseOutsideFiles: plan.refuseOutsideFiles ? true : void 0,
187
192
  variables,
188
193
  entryFile: plan.entryFile,
189
194
  outputResolution: plan.outputResolution,
@@ -206,8 +211,8 @@ function assertRenderActive(cancellation) {
206
211
  cancellation?.signal.throwIfAborted();
207
212
  }
208
213
  async function refuseLowDiskBeforeBrowserDownload(plan) {
209
- const { checkDisk } = await import("./preflight-2VFCT3PI.js");
210
- await (await import("./manager-KWNID2ZA.js")).sweepKilledInstalls();
214
+ const { checkDisk } = await import("./preflight-KTYLNVCB.js");
215
+ await (await import("./manager-C5S25OOK.js")).sweepKilledInstalls();
211
216
  const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
212
217
  const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
213
218
  if (low.length === 0) return;
@@ -215,7 +220,7 @@ async function refuseLowDiskBeforeBrowserDownload(plan) {
215
220
  failCommand();
216
221
  }
217
222
  async function ensureRenderBrowser(plan, signal) {
218
- const { ensureBrowser } = await import("./manager-KWNID2ZA.js");
223
+ const { ensureBrowser } = await import("./manager-C5S25OOK.js");
219
224
  let browserSpinner;
220
225
  try {
221
226
  if (plan.effectiveQuiet) {
@@ -356,6 +361,8 @@ function batchRowRenderOptions(plan, browserPath) {
356
361
  resumeSegments: plan.resumeSegments,
357
362
  keepSegments: plan.keepSegments,
358
363
  bestEffort: plan.bestEffort,
364
+ includeOutsideScripts: plan.includeOutsideScripts,
365
+ refuseOutsideFiles: plan.refuseOutsideFiles ? true : void 0,
359
366
  exitAfterComplete: false,
360
367
  throwOnError: true,
361
368
  skipFeedback: true,
@@ -363,9 +370,17 @@ function batchRowRenderOptions(plan, browserPath) {
363
370
  manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
364
371
  };
365
372
  }
373
+ function outsideAssetsAllowedOnceForEveryRow(plan) {
374
+ return outsideAssetsAllowed(
375
+ plan.project.dir,
376
+ plan.entryFile,
377
+ (line) => console.warn(c.warn(` ${line}`))
378
+ );
379
+ }
366
380
  async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
367
381
  const batchQuiet = plan.quiet || plan.batchJson;
368
382
  const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
383
+ renderOptionsBase.refuseOutsideFiles ??= !outsideAssetsAllowedOnceForEveryRow(plan);
369
384
  const manifest = await batchModule.runBatchRender({
370
385
  prepared: preparedBatch,
371
386
  concurrency: plan.batchConcurrency,
@@ -8,14 +8,14 @@ import {
8
8
  findFFmpeg,
9
9
  findFFprobe,
10
10
  getFFmpegInstallHint
11
- } from "./chunk-6R4MEYWD.js";
11
+ } from "./chunk-QY42NK3T.js";
12
12
  import {
13
13
  recordFolder
14
- } from "./chunk-JT7RXK2N.js";
14
+ } from "./chunk-OW6MOJSR.js";
15
15
  import {
16
16
  createStagingDir,
17
17
  renameWithRetry
18
- } from "./chunk-K2WLOTTF.js";
18
+ } from "./chunk-LYTELQL2.js";
19
19
 
20
20
  // src/measure/media.ts
21
21
  import { execFileSync } from "child_process";
@@ -12,15 +12,15 @@ import {
12
12
  ensureHfIds,
13
13
  mintHfId,
14
14
  walkCompositionDescendants
15
- } from "./chunk-I6OSAVHD.js";
15
+ } from "./chunk-PLI7YT5S.js";
16
16
  import {
17
17
  isAllowedHtmlAttribute,
18
18
  isSafeAttributeValue,
19
19
  sanitizeRichTextChildren
20
- } from "./chunk-QHVE6AFU.js";
20
+ } from "./chunk-BJMW2GYO.js";
21
21
  import {
22
22
  require_dist
23
- } from "./chunk-HLOJSBGC.js";
23
+ } from "./chunk-TTRX7NM3.js";
24
24
  import {
25
25
  SPLIT_BOUNDARY_EPSILON_S,
26
26
  readClipTiming,
@@ -143,6 +143,15 @@ function findTrustedExecutable(name) {
143
143
  }
144
144
  return void 0;
145
145
  }
146
+ var PATTERN_IMAGE2_EXPANDS = /%(?:\d*d|[%*?[\]{}])/;
147
+ var URL_SCHEME = /^[a-z][a-z0-9+.-]+:/i;
148
+ function assertLiteralMediaInput(input) {
149
+ const local = !URL_SCHEME.test(input) || /^file:/i.test(input);
150
+ if (!local || !PATTERN_IMAGE2_EXPANDS.test(input)) return;
151
+ throw new Error(
152
+ `[FFmpeg] refused media path "${input.split(/[\\/]/).pop()}": a "%" followed by a number and "d", another "%" or a wildcard would make ffmpeg read it as a pattern of other files. Rename the file or folder.`
153
+ );
154
+ }
146
155
  var FFMPEG_PATH_ENV = "HYPERFRAMES_FFMPEG_PATH";
147
156
  var FFPROBE_PATH_ENV = "HYPERFRAMES_FFPROBE_PATH";
148
157
  var ENV_BY_NAME = {
@@ -305,7 +314,8 @@ function demuxersFromListing(listing) {
305
314
  }
306
315
  var demuxerLists = /* @__PURE__ */ new Map();
307
316
  var listingOverride;
308
- function mediaInputFormatArgs(listingBinary) {
317
+ function mediaInputFormatArgs(listingBinary, input) {
318
+ assertLiteralMediaInput(input);
309
319
  let formats = demuxerLists.get(listingBinary);
310
320
  if (formats === void 0) {
311
321
  try {
@@ -325,17 +335,36 @@ function mediaInputFormatArgs(listingBinary) {
325
335
  }
326
336
  return ["-format_whitelist", formats];
327
337
  }
338
+ var OUT_TIME = /^out_time_(?:us|ms)=(\d+)$/;
339
+ function followFfmpegProgress(stream, onSeconds) {
340
+ let furthest = 0;
341
+ let lineTail = "";
342
+ stream.on("data", (chunk) => {
343
+ const lines = (lineTail + chunk.toString()).split("\n");
344
+ lineTail = lines.pop() ?? "";
345
+ for (const line of lines) {
346
+ const reached = OUT_TIME.exec(line.trim());
347
+ if (!reached) continue;
348
+ const seconds = Number(reached[1]) / 1e6;
349
+ if (seconds <= furthest) continue;
350
+ furthest = seconds;
351
+ onSeconds(seconds);
352
+ }
353
+ });
354
+ }
328
355
 
329
356
  export {
330
357
  pathEntries,
331
358
  trustedPathDirs,
332
359
  executableIn,
333
360
  findTrustedExecutable,
361
+ assertLiteralMediaInput,
334
362
  FFMPEG_PATH_ENV,
335
363
  FFPROBE_PATH_ENV,
336
364
  getSkippedX86Binary,
337
365
  findFfBinary,
338
366
  requireFfBinary,
339
367
  SELF_CONTAINED_FORMATS,
340
- mediaInputFormatArgs
368
+ mediaInputFormatArgs,
369
+ followFfmpegProgress
341
370
  };
@@ -7,33 +7,38 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeFirstFrameColour,
9
9
  probeMediaMetadata
10
- } from "./chunk-QJ2BV7FM.js";
10
+ } from "./chunk-SOIOB7FF.js";
11
11
  import {
12
- MEDIA_INPUT_ARGS,
13
- NOT_MEDIA
14
- } from "./chunk-6T4PB35F.js";
12
+ NOT_MEDIA,
13
+ mediaInputArgs
14
+ } from "./chunk-TRQDC2UC.js";
15
15
  import {
16
- isLinkFreeWithinProject
17
- } from "./chunk-THGJTFYB.js";
16
+ isLinkFreeWithinProject,
17
+ isProjectCacheFile,
18
+ readProjectCacheFile
19
+ } from "./chunk-WTO3A7ET.js";
18
20
  import {
19
21
  alphaDecoderFor
20
22
  } from "./chunk-5S7W3TUO.js";
23
+ import {
24
+ replaceFileAtomically
25
+ } from "./chunk-LYTELQL2.js";
21
26
  import {
22
27
  formatPreviewProxyBox,
23
28
  hdrToSdrToneMapFilter,
24
29
  isHeavyForPreview
25
- } from "./chunk-QHVE6AFU.js";
30
+ } from "./chunk-BJMW2GYO.js";
26
31
  import {
27
32
  mkdirWithinProject,
28
33
  realProjectRoot,
29
34
  realpath
30
- } from "./chunk-MHF5F4FF.js";
35
+ } from "./chunk-3GF72UPC.js";
31
36
  import {
32
37
  cleanAssetUrl,
33
38
  isRemoteOrInlineUrl,
34
39
  isUnresolvedAssetPlaceholder,
35
40
  resolveExistingLocalAsset
36
- } from "./chunk-6EMFSRTW.js";
41
+ } from "./chunk-S35RUNXJ.js";
37
42
  import {
38
43
  rewriteAssetPath
39
44
  } from "./chunk-IH2C53YV.js";
@@ -42,10 +47,11 @@ import {
42
47
  scanHtmlOpeningTags
43
48
  } from "./chunk-4NDSGKPO.js";
44
49
  import {
45
- findFfBinary
46
- } from "./chunk-RX67N2PU.js";
50
+ findFfBinary,
51
+ followFfmpegProgress
52
+ } from "./chunk-VM2VBJRC.js";
47
53
 
48
- // ../studio-server/dist/chunk-X3CGMR7Z.js
54
+ // ../studio-server/dist/chunk-I5ALID6M.js
49
55
  import { statSync } from "fs";
50
56
  import { sep } from "path";
51
57
  import { spawn } from "child_process";
@@ -273,37 +279,27 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
273
279
  return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
274
280
  }
275
281
 
276
- // ../studio-server/dist/chunk-TA7YLF2O.js
282
+ // ../studio-server/dist/chunk-UK23HXUP.js
277
283
  import { spawn as spawn2 } from "child_process";
278
284
  import { randomUUID } from "crypto";
279
285
  import {
280
- existsSync as existsSync4,
286
+ existsSync as existsSync2,
281
287
  mkdtempSync,
282
288
  renameSync,
283
289
  rmSync as rmSync2,
284
290
  unlinkSync as unlinkSync2,
285
291
  utimesSync,
286
- writeFileSync as writeFileSync2
292
+ writeFileSync
287
293
  } from "fs";
288
294
  import os, { availableParallelism, tmpdir, totalmem } from "os";
289
295
  import { basename as basename3, dirname as dirname4, extname as extname4, isAbsolute, join as join4, relative, resolve, sep as sep2 } from "path";
290
296
  import { existsSync, readdirSync, statSync as statSync2, unlinkSync } from "fs";
291
297
  import { dirname, extname, join } from "path";
292
298
  import { createHash } from "crypto";
293
- import {
294
- closeSync,
295
- createReadStream,
296
- existsSync as existsSync2,
297
- fstatSync,
298
- openSync,
299
- readFileSync,
300
- statSync as statSync22,
301
- writeFileSync
302
- } from "fs";
299
+ import { closeSync, createReadStream, fstatSync, openSync, readFileSync, statSync as statSync22 } from "fs";
303
300
  import { basename, dirname as dirname2, extname as extname2, join as join2 } from "path";
304
301
  import {
305
302
  closeSync as closeSync2,
306
- existsSync as existsSync3,
307
303
  openSync as openSync2,
308
304
  readdirSync as readdirSync2,
309
305
  readFileSync as readFileSync2,
@@ -471,17 +467,13 @@ function fastIndexPath(cachePath) {
471
467
  function contentIndexPath(cacheDir, contentKey) {
472
468
  return join2(cacheDir, `.content-${contentKey}`);
473
469
  }
474
- function readCopyIndex(indexPath) {
475
- try {
476
- const name = readFileSync(indexPath, "utf8").trim();
477
- const target = join2(dirname2(indexPath), name);
478
- return COPY_NAME.test(name) && existsSync2(target) ? target : null;
479
- } catch {
480
- return null;
481
- }
470
+ function readCopyIndex(projectDir, indexPath) {
471
+ const name = readProjectCacheFile(projectDir, indexPath, 256)?.toString("utf8").trim() ?? "";
472
+ const target = join2(dirname2(indexPath), name);
473
+ return COPY_NAME.test(name) && isProjectCacheFile(projectDir, target) ? target : null;
482
474
  }
483
475
  function writeCopyIndex(indexPath, copyPath) {
484
- writeFileSync(indexPath, basename(copyPath));
476
+ replaceFileAtomically(indexPath, basename(copyPath), 420);
485
477
  }
486
478
  var POLL_MS = 500;
487
479
  var UNREADABLE_LOCK_MS = 1e4;
@@ -537,16 +529,16 @@ function pause(ms, signal) {
537
529
  signal.addEventListener("abort", onAbort, { once: true });
538
530
  });
539
531
  }
540
- async function acquireCopyLock(cachePath, signal, stallMs) {
532
+ async function acquireCopyLock(cachePath, copyMade, signal, stallMs) {
541
533
  const lockPath = lockPathFor(cachePath);
542
534
  for (; ; ) {
543
535
  signal.throwIfAborted();
544
- if (existsSync3(cachePath)) return null;
536
+ if (copyMade(cachePath)) return null;
545
537
  try {
546
538
  const fd = openSync2(lockPath, "wx");
547
539
  writeSync(fd, String(process.pid));
548
540
  closeSync2(fd);
549
- if (!existsSync3(cachePath)) return () => rmSync(lockPath, { force: true });
541
+ if (!copyMade(cachePath)) return () => rmSync(lockPath, { force: true });
550
542
  rmSync(lockPath, { force: true });
551
543
  return null;
552
544
  } catch (err) {
@@ -617,6 +609,12 @@ var ProxyCapacityError = class extends ProxyTranscodeError {
617
609
  this.name = "ProxyCapacityError";
618
610
  }
619
611
  };
612
+ var StillPastEndError = class extends ProxyTranscodeError {
613
+ constructor() {
614
+ super("media still is past the end of the source", null, "");
615
+ this.name = "StillPastEndError";
616
+ }
617
+ };
620
618
  var ProxySourceOutsideProjectError = class extends ProxyTranscodeError {
621
619
  constructor() {
622
620
  super("media proxy source must be addressed through the project", null, "");
@@ -664,7 +662,7 @@ function getCanonicalProxyCachePath(source, variant, box, limitSeconds) {
664
662
  CACHE_DIR_NAME,
665
663
  `${key}${PROXY_VARIANT_CONFIG[variant].extension}`
666
664
  );
667
- return existsSync4(made) ? made : readCopyIndex(fastIndexPath(made)) ?? made;
665
+ return isProjectCacheFile(source.projectDir, made) ? made : readCopyIndex(source.projectDir, fastIndexPath(made)) ?? made;
668
666
  }
669
667
  function getProxyCachePath(projectDir, absoluteSourcePath, variant = "h264", box, limitSeconds) {
670
668
  return getCanonicalProxyCachePath(
@@ -890,11 +888,12 @@ function createPieceGate(size) {
890
888
  }
891
889
  };
892
890
  }
893
- async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, signal, gate, onDone = () => {
891
+ async function encodeInChunks(ranges, chunks, tempPath, encode, concat, signal, gate, onDone = () => {
894
892
  }) {
895
893
  const extension = extname4(tempPath);
896
- const pieces = ranges.map((_, index) => `${chunkPrefix}${index}${extension}`);
897
- const pending = ranges.flatMap((_, index) => existsSync4(pieces[index]) ? [] : [index]);
894
+ const pieces = ranges.map((_, index) => `${chunks.prefix}${index}${extension}`);
895
+ const madeAsPlainFile = (piece) => isProjectCacheFile(chunks.projectDir, piece);
896
+ const pending = ranges.flatMap((_, index) => madeAsPlainFile(pieces[index]) ? [] : [index]);
898
897
  let doneSeconds = 0;
899
898
  for (const [index, range] of ranges.entries()) {
900
899
  if (!pending.includes(index)) doneSeconds += range.lengthSeconds;
@@ -924,7 +923,7 @@ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, sig
924
923
  doneSeconds += range.lengthSeconds;
925
924
  onDone(doneSeconds);
926
925
  } finally {
927
- if (existsSync4(pieceTemp)) unlinkSync2(pieceTemp);
926
+ if (existsSync2(pieceTemp)) unlinkSync2(pieceTemp);
928
927
  }
929
928
  } finally {
930
929
  gate.release();
@@ -944,7 +943,7 @@ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, sig
944
943
  const listDir = mkdtempSync(join4(tmpdir(), "hf-proxy-join-"));
945
944
  try {
946
945
  const listPath = join4(listDir, "pieces.txt");
947
- writeFileSync2(
946
+ writeFileSync(
948
947
  listPath,
949
948
  pieces.map((piece) => `file '${piece.replace(/\\/g, "/").replace(/'/g, "'\\''")}'
950
949
  `).join("")
@@ -953,7 +952,7 @@ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, sig
953
952
  } finally {
954
953
  rmSync2(listDir, { recursive: true, force: true });
955
954
  }
956
- for (const piece of pieces) if (existsSync4(piece)) unlinkSync2(piece);
955
+ for (const piece of pieces) if (existsSync2(piece)) unlinkSync2(piece);
957
956
  }
958
957
  var KEYFRAME_EVERY_SECOND_ARGS = ["-force_key_frames", "expr:gte(t,n_forced*1)"];
959
958
  var H264_ARGS = [
@@ -1024,7 +1023,7 @@ async function buildVideoFilter(ffmpegPath, sourcePath, metadata, keepsAlpha, bo
1024
1023
  `format=${pixelFormat}`
1025
1024
  ].join(",") : [evenScale, `format=${pixelFormat}`].join(",");
1026
1025
  }
1027
- async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, limitSeconds, signal, onProgress, isBackground = () => false) {
1026
+ async function runFfmpeg(sourcePath, outputPath, chunks, variant, box, limitSeconds, signal, onProgress, isBackground = () => false) {
1028
1027
  const metadata = await probeMediaMetadata(sourcePath);
1029
1028
  if (metadata.probeError === NOT_MEDIA) throw new ProxyTranscodeError(NOT_MEDIA, null, "");
1030
1029
  const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true });
@@ -1054,7 +1053,7 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, limi
1054
1053
  "-nostats",
1055
1054
  ...range ? ["-ss", String(range.startSeconds)] : [],
1056
1055
  ...decoderArgs,
1057
- ...MEDIA_INPUT_ARGS,
1056
+ ...mediaInputArgs(sourcePath),
1058
1057
  "-i",
1059
1058
  sourcePath,
1060
1059
  ...streamArgs,
@@ -1082,7 +1081,7 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, limi
1082
1081
  }
1083
1082
  await encodeInChunks(
1084
1083
  ranges,
1085
- chunkPrefix,
1084
+ chunks,
1086
1085
  outputPath,
1087
1086
  encode,
1088
1087
  (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
@@ -1109,7 +1108,6 @@ function concatArgs(listPath, target, variant) {
1109
1108
  target
1110
1109
  ];
1111
1110
  }
1112
- var OUT_TIME = /^out_time_(?:us|ms)=(\d+)$/;
1113
1111
  function lowerPriorityUnlessExited(pid) {
1114
1112
  try {
1115
1113
  os.setPriority(pid, BACKGROUND_NICENESS);
@@ -1138,21 +1136,12 @@ function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress, background =
1138
1136
  timer.unref();
1139
1137
  };
1140
1138
  armStall();
1141
- let furthest = 0;
1142
- let lineTail = "";
1143
- proc.stdout?.on("data", (chunk) => {
1144
- const lines = (lineTail + chunk.toString()).split("\n");
1145
- lineTail = lines.pop() ?? "";
1146
- for (const line of lines) {
1147
- const reached = OUT_TIME.exec(line.trim());
1148
- if (!reached) continue;
1149
- const seconds = Number(reached[1]) / 1e6;
1150
- if (seconds <= furthest) continue;
1151
- furthest = seconds;
1139
+ if (proc.stdout) {
1140
+ followFfmpegProgress(proc.stdout, (seconds) => {
1152
1141
  armStall();
1153
1142
  onProgress?.(seconds);
1154
- }
1155
- });
1143
+ });
1144
+ }
1156
1145
  let stderrTail = "";
1157
1146
  proc.stderr?.on("data", (chunk) => {
1158
1147
  stderrTail = (stderrTail + chunk.toString()).slice(-STDERR_TAIL_MAX_CHARS);
@@ -1193,7 +1182,7 @@ function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress, background =
1193
1182
  async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath, variant, box, limitSeconds) {
1194
1183
  await acquireSlot(job);
1195
1184
  try {
1196
- if (existsSync4(cachePath)) return cachePath;
1185
+ if (isProjectCacheFile(projectDir, cachePath)) return cachePath;
1197
1186
  const cacheDir = dirname4(cachePath);
1198
1187
  mkdirWithinProject(projectDir, cacheDir);
1199
1188
  const contentIndex = contentIndexPath(
@@ -1206,29 +1195,34 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
1206
1195
  job.abandoned.signal
1207
1196
  )
1208
1197
  );
1209
- const sameContent = readCopyIndex(contentIndex);
1198
+ const sameContent = readCopyIndex(projectDir, contentIndex);
1210
1199
  if (sameContent) {
1211
1200
  writeCopyIndex(fastIndexPath(cachePath), sameContent);
1212
1201
  return sameContent;
1213
1202
  }
1203
+ const copyMade = (path) => isProjectCacheFile(projectDir, path);
1214
1204
  const release = await acquireCopyLock(
1215
1205
  cachePath,
1206
+ copyMade,
1216
1207
  job.abandoned.signal,
1217
1208
  TRANSCODE_STALL_MS
1218
1209
  ).catch((error) => {
1219
1210
  throw error instanceof CopyLockStalledError ? new ProxyTranscodeError(error.message, null, "") : error;
1220
1211
  });
1221
- if (!release) return cachePath;
1212
+ if (!release) {
1213
+ if (copyMade(cachePath)) return cachePath;
1214
+ throw new ProxyTranscodeError("the copy is not a plain file in the cache", null, "");
1215
+ }
1222
1216
  const tempPath = join4(cacheDir, `.tmp-${randomUUID()}-${basename3(cachePath)}`);
1223
1217
  try {
1224
- const chunkPrefix = join4(
1225
- cacheDir,
1226
- `${CHUNK_PREFIX}${basename3(cachePath, extname4(cachePath))}-`
1227
- );
1218
+ const chunks = {
1219
+ projectDir,
1220
+ prefix: join4(cacheDir, `${CHUNK_PREFIX}${basename3(cachePath, extname4(cachePath))}-`)
1221
+ };
1228
1222
  await runFfmpeg(
1229
1223
  absoluteSourcePath,
1230
1224
  tempPath,
1231
- chunkPrefix,
1225
+ chunks,
1232
1226
  variant,
1233
1227
  box,
1234
1228
  limitSeconds,
@@ -1241,7 +1235,7 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
1241
1235
  maintainProxyCache(cacheDir);
1242
1236
  return cachePath;
1243
1237
  } finally {
1244
- if (existsSync4(tempPath)) unlinkSync2(tempPath);
1238
+ if (existsSync2(tempPath)) unlinkSync2(tempPath);
1245
1239
  release();
1246
1240
  }
1247
1241
  } finally {
@@ -1259,7 +1253,7 @@ function retryProxyCopy(projectDir, absoluteSourcePath, variant, box) {
1259
1253
  }
1260
1254
  var proxyActivity = 0;
1261
1255
  function proxyActivityMark(projectDir) {
1262
- if (!existsSync4(projectDir)) return String(proxyActivity);
1256
+ if (!existsSync2(projectDir)) return String(proxyActivity);
1263
1257
  const cacheDir = join4(realpath(projectDir), CACHE_DIR_NAME) + sep2;
1264
1258
  for (const cachePath of inFlight.keys()) if (cachePath.startsWith(cacheDir)) return null;
1265
1259
  return String(proxyActivity);
@@ -1268,7 +1262,7 @@ async function resolveProxy(projectDir, absoluteSourcePath, variant = "h264", bo
1268
1262
  options.signal?.throwIfAborted();
1269
1263
  const source = canonicalizeProxySource(projectDir, absoluteSourcePath);
1270
1264
  const cachePath = getCanonicalProxyCachePath(source, variant, box, options.limitSeconds);
1271
- if (existsSync4(cachePath)) {
1265
+ if (isProjectCacheFile(source.projectDir, cachePath)) {
1272
1266
  markCacheEntryUsed(cachePath);
1273
1267
  maintainProxyCache(dirname4(cachePath));
1274
1268
  return cachePath;
@@ -1363,7 +1357,7 @@ function resolveStill(projectDir, absoluteSourcePath, atSeconds, box, startUncac
1363
1357
  const at = Math.max(0, Math.round(atSeconds * 10) / 10);
1364
1358
  const key = fastCopyKey(source.sourcePath, PROXY_PARAMS_VERSION, `still@${at}`, box);
1365
1359
  const cachePath = join4(source.projectDir, CACHE_DIR_NAME, `${key}${PROXY_STILL_EXTENSION}`);
1366
- if (existsSync4(cachePath)) {
1360
+ if (isProjectCacheFile(source.projectDir, cachePath)) {
1367
1361
  markCacheEntryUsed(cachePath);
1368
1362
  maintainProxyCache(dirname4(cachePath), void 0, cachePath);
1369
1363
  return Promise.resolve(cachePath);
@@ -1402,6 +1396,9 @@ async function makeStill(source, at, box, cachePath, signal) {
1402
1396
  if (!ffmpegPath) throw new FfmpegUnavailableError();
1403
1397
  const metadata = await probeMediaMetadata(source.sourcePath);
1404
1398
  if (metadata.probeError === NOT_MEDIA) throw new ProxyTranscodeError(NOT_MEDIA, null, "");
1399
+ if (metadata.durationSeconds !== void 0 && at > metadata.durationSeconds) {
1400
+ throw new StillPastEndError();
1401
+ }
1405
1402
  const filter = await buildVideoFilter(ffmpegPath, source.sourcePath, metadata, false, box);
1406
1403
  mkdirWithinProject(source.projectDir, dirname4(cachePath));
1407
1404
  const tempPath = join4(dirname4(cachePath), `.tmp-${randomUUID()}-${basename3(cachePath)}`);
@@ -1410,7 +1407,7 @@ async function makeStill(source, at, box, cachePath, signal) {
1410
1407
  "-y",
1411
1408
  "-ss",
1412
1409
  String(at),
1413
- ...MEDIA_INPUT_ARGS,
1410
+ ...mediaInputArgs(source.sourcePath),
1414
1411
  "-i",
1415
1412
  source.sourcePath,
1416
1413
  "-map",
@@ -1458,6 +1455,7 @@ export {
1458
1455
  ProxyTranscodeError,
1459
1456
  FfmpegUnavailableError,
1460
1457
  ProxyCapacityError,
1458
+ StillPastEndError,
1461
1459
  ProxyWaitTimeoutError,
1462
1460
  waitForProxy,
1463
1461
  getProxyCachePath,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Z5J67X44.js";
10
10
  import {
11
11
  createStagingDir
12
- } from "./chunk-K2WLOTTF.js";
12
+ } from "./chunk-LYTELQL2.js";
13
13
 
14
14
  // src/capture/captureFile.ts
15
15
  import { mkdirSync, realpathSync, renameSync, statSync, writeFileSync } from "fs";