hyperframes 0.9.66 → 0.9.68

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 (290) hide show
  1. package/dist/{add-Q4W2PAZ6.js → add-C4WVIZBM.js} +14 -14
  2. package/dist/{agentPromptGenerator-BZ77OPI4.js → agentPromptGenerator-6LLQYHZV.js} +9 -9
  3. package/dist/{animatedGifPrep-3UBRNEEA.js → animatedGifPrep-3VMWRGRQ.js} +9 -9
  4. package/dist/api.js +39 -39
  5. package/dist/{asset-ZRTGYYEN.js → asset-WIUPYC6I.js} +4 -4
  6. package/dist/{assetCataloger-GTSOUOBQ.js → assetCataloger-35EEYGRW.js} +10 -10
  7. package/dist/{audio-ZUW3RHEO.js → audio-X6U5EPJC.js} +24 -24
  8. package/dist/{auth-TE5FMKUT.js → auth-6YJJF7JO.js} +4 -4
  9. package/dist/{autoUpdate-6JGNDMLP.js → autoUpdate-5RW6OSP5.js} +4 -4
  10. package/dist/{avatars-BJEF4TZR.js → avatars-3TUWVA5L.js} +18 -18
  11. package/dist/{backgroundChecks-EN5XLRLY.js → backgroundChecks-NFDJJ3A7.js} +5 -5
  12. package/dist/backgroundChecksWorker.js +5 -5
  13. package/dist/{batchRender-EEMYIEYR.js → batchRender-RD2SC67M.js} +6 -5
  14. package/dist/{beats-IPGSP5BV.js → beats-SEZBR7ZB.js} +12 -12
  15. package/dist/{benchmark-GZOATIPM.js → benchmark-HIHHSXWJ.js} +14 -14
  16. package/dist/{billing-3LF2YYP7.js → billing-KOAEFBSV.js} +23 -19
  17. package/dist/{browser-2IH45NN6.js → browser-CMQWPJW3.js} +9 -9
  18. package/dist/{bundleWithLocalizedFonts-QV6WDOXF.js → bundleWithLocalizedFonts-54M62O3L.js} +1 -1
  19. package/dist/{capture-K75SADNY.js → capture-M627KANC.js} +19 -19
  20. package/dist/{capture-4SIGWC4Q.js → capture-WG3M26CA.js} +6 -6
  21. package/dist/{captureCompositionFrame-XVEPPU4X.js → captureCompositionFrame-2MMKTYGJ.js} +16 -16
  22. package/dist/{captureProxy-4K3J652A.js → captureProxy-ZKHJ6HRI.js} +1 -1
  23. package/dist/{catalog-6N22YQEE.js → catalog-PNNNRYGW.js} +14 -14
  24. package/dist/{catch-up-67LVADSA.js → catch-up-LV2JRFEP.js} +9 -9
  25. package/dist/{check-NYD3WGR2.js → check-MNVZU53N.js} +46 -46
  26. package/dist/{checkAudio-APZTSEHX.js → checkAudio-ZI7CKTSP.js} +13 -13
  27. package/dist/{checkBrowser-2UA6O65I.js → checkBrowser-ZFRZGSZO.js} +39 -38
  28. package/dist/{chunk-3B4WQYCW.js → chunk-2EF7PBIL.js} +5 -5
  29. package/dist/{chunk-7BREEOLQ.js → chunk-2J5U5T4U.js} +14 -14
  30. package/dist/{chunk-TIGMUHSL.js → chunk-2LA5EFA7.js} +1 -1
  31. package/dist/{chunk-6PGDI5NG.js → chunk-2QY74XCK.js} +851 -631
  32. package/dist/{chunk-OB56G4VA.js → chunk-2TSEYJEW.js} +2 -2
  33. package/dist/{chunk-TUJB74AE.js → chunk-2ZRRIDLB.js} +2 -2
  34. package/dist/{chunk-PJQVJSMG.js → chunk-33JUCUTM.js} +7 -2
  35. package/dist/{chunk-TMB4L4GG.js → chunk-35JN6DUV.js} +2 -2
  36. package/dist/{chunk-6PYUPO4M.js → chunk-3DU5M4RZ.js} +2 -2
  37. package/dist/{chunk-AI5KNXSL.js → chunk-3PXYJAP2.js} +5 -5
  38. package/dist/{chunk-N6VNR4YE.js → chunk-42D2JWAH.js} +1 -1
  39. package/dist/{chunk-5UOYRGKV.js → chunk-44YM6GQW.js} +2 -2
  40. package/dist/{chunk-NSADX4IV.js → chunk-4M5C3543.js} +2 -2
  41. package/dist/{chunk-OI5WGQE3.js → chunk-52ZPRSRR.js} +5 -5
  42. package/dist/{chunk-H6LFXHAV.js → chunk-5JFK2MZE.js} +2 -2
  43. package/dist/{chunk-NMASYQXY.js → chunk-667DGYQF.js} +2 -2
  44. package/dist/{chunk-UCQTLZDJ.js → chunk-6KS7MRXE.js} +2 -2
  45. package/dist/{chunk-EIION6EA.js → chunk-6YQL5U3X.js} +7 -3
  46. package/dist/{chunk-XKIXRSVB.js → chunk-7HTUIFCU.js} +3 -3
  47. package/dist/{chunk-A6O65H7G.js → chunk-7KOPWRBA.js} +3 -3
  48. package/dist/{chunk-LNOG6KKM.js → chunk-7YFT3XBE.js} +6 -6
  49. package/dist/{chunk-LIXAC5NE.js → chunk-A6MOPSB7.js} +10 -10
  50. package/dist/{chunk-CUOX3TDY.js → chunk-ACLEARJ5.js} +1 -1
  51. package/dist/{chunk-XEIVSW2F.js → chunk-APV4EGPC.js} +6 -6
  52. package/dist/{chunk-745HLQBA.js → chunk-AYE5S3LS.js} +1 -1
  53. package/dist/{chunk-JGKI7FHX.js → chunk-BBEPJIL6.js} +11 -12
  54. package/dist/{chunk-DPMEWIVZ.js → chunk-BDEXAT2A.js} +4 -4
  55. package/dist/{chunk-IUUEMVZV.js → chunk-BFR4Z6XZ.js} +2 -2
  56. package/dist/{chunk-2Z7IW5EY.js → chunk-BIS25FPH.js} +2 -2
  57. package/dist/{chunk-6QITYZN7.js → chunk-BQ42ZSDC.js} +2 -2
  58. package/dist/{chunk-L7BY2FDJ.js → chunk-BX4EUXTT.js} +13 -13
  59. package/dist/{chunk-TZ3EPV4B.js → chunk-C4KEZBFB.js} +1 -1
  60. package/dist/{chunk-2FEZFXKE.js → chunk-CHEMP247.js} +1 -1
  61. package/dist/{chunk-AI4MXYGK.js → chunk-CJAUHCIH.js} +1 -1
  62. package/dist/{chunk-AWOHPIKF.js → chunk-CJGEN3HQ.js} +9 -9
  63. package/dist/{chunk-U6ZR7GBQ.js → chunk-CJGFAAQM.js} +11 -7
  64. package/dist/{chunk-S73AVUHJ.js → chunk-CUQRPA5X.js} +1 -1
  65. package/dist/{chunk-TU2WFCGS.js → chunk-D4V3A66O.js} +1 -1
  66. package/dist/{chunk-X3JZA7KH.js → chunk-DN2WT7UF.js} +76 -45
  67. package/dist/{chunk-6QZNF3JF.js → chunk-DXPKV74K.js} +53 -60
  68. package/dist/{chunk-ESYW3LJU.js → chunk-ERM6VZH5.js} +2 -2
  69. package/dist/{chunk-XMKDDEX4.js → chunk-F266JN4O.js} +6 -6
  70. package/dist/{chunk-LAXD6VM7.js → chunk-F3W2XNVF.js} +6 -6
  71. package/dist/{chunk-OMFIMZZD.js → chunk-FGBIIVLD.js} +1 -1
  72. package/dist/{chunk-GXKCFOMR.js → chunk-GDPNIGCY.js} +1 -1
  73. package/dist/{chunk-MH46RGG6.js → chunk-GIICVK4I.js} +1 -1
  74. package/dist/{chunk-TXTVVIW7.js → chunk-GJCRUFVA.js} +1 -1
  75. package/dist/{chunk-CTDCYNVK.js → chunk-GLPWQEIS.js} +2 -2
  76. package/dist/{chunk-KDQRJHLU.js → chunk-HFMRAULK.js} +3 -3
  77. package/dist/{chunk-RF3DT4CS.js → chunk-HJXFRTK3.js} +1 -1
  78. package/dist/{chunk-5GUYYSVT.js → chunk-HY67LTYS.js} +1 -1
  79. package/dist/{chunk-K2NOQNNY.js → chunk-ID6NFBRJ.js} +1 -1
  80. package/dist/{chunk-JHPOKDZI.js → chunk-IUMEFOOG.js} +12 -12
  81. package/dist/{chunk-JDJ6BM5E.js → chunk-IWOK7S6W.js} +2 -2
  82. package/dist/{chunk-FLJ4S7NA.js → chunk-J3FUIWZX.js} +2 -2
  83. package/dist/{chunk-WMJ3PV37.js → chunk-JJOEC2AX.js} +1 -1
  84. package/dist/{chunk-BSY6ZHP6.js → chunk-JK5EXU2V.js} +1 -1
  85. package/dist/{chunk-MG7UJJCP.js → chunk-JL2QIL62.js} +2 -2
  86. package/dist/{chunk-R5C2CV7J.js → chunk-JLITKVAK.js} +3 -3
  87. package/dist/{chunk-WWQWDRKU.js → chunk-K3JLION2.js} +1 -1
  88. package/dist/{chunk-3BKNPN36.js → chunk-KI4QH2XR.js} +2 -2
  89. package/dist/{chunk-MEZAMIT6.js → chunk-KNHIVCWP.js} +8 -8
  90. package/dist/{chunk-YB2ZJJFJ.js → chunk-LMUPRQ3G.js} +1 -1
  91. package/dist/{chunk-DZ3JB4F3.js → chunk-MG3X2IGB.js} +2 -2
  92. package/dist/{chunk-ULE2EYEY.js → chunk-MHPVT4IR.js} +2 -2
  93. package/dist/{chunk-37SEGJEO.js → chunk-MI3L5IN2.js} +4 -4
  94. package/dist/{chunk-ROODLZY7.js → chunk-MK2V4GOX.js} +8 -8
  95. package/dist/{chunk-QSQNXAHE.js → chunk-MNWXPKEP.js} +1 -1
  96. package/dist/chunk-MOIJOTXX.js +25 -0
  97. package/dist/{chunk-WY6354ZO.js → chunk-MPYCCFGC.js} +5 -5
  98. package/dist/{chunk-CEHYC2UD.js → chunk-N2IQL7QC.js} +3 -3
  99. package/dist/{chunk-NOCU3FBX.js → chunk-N2NX5H6U.js} +3 -3
  100. package/dist/{chunk-4ORH2OXS.js → chunk-NKRVZC5S.js} +1 -1
  101. package/dist/{chunk-XTKNMYRR.js → chunk-NXTKZZGR.js} +1 -1
  102. package/dist/{chunk-XSARHJSW.js → chunk-OWWIJYV3.js} +1 -1
  103. package/dist/{chunk-2UIAN6N7.js → chunk-P63PBGBD.js} +2 -2
  104. package/dist/{chunk-ZY55U6ER.js → chunk-PDCJFCXJ.js} +74 -24
  105. package/dist/{chunk-7LQFVACU.js → chunk-PTDAEAQY.js} +1 -1
  106. package/dist/{chunk-KXCAIQE4.js → chunk-PXUG4MJS.js} +4 -4
  107. package/dist/{chunk-66D5BC5K.js → chunk-Q6ECHIJY.js} +2 -2
  108. package/dist/{chunk-ZHIAAYY2.js → chunk-QA2QMK2I.js} +2 -2
  109. package/dist/{chunk-2OSPWUGX.js → chunk-QEKCHUUA.js} +2 -2
  110. package/dist/{chunk-SITGBEFO.js → chunk-QFO7O6CB.js} +26 -23
  111. package/dist/{chunk-Y57R6C5U.js → chunk-QK2QVBVK.js} +2 -1
  112. package/dist/{chunk-Y4QE4LEB.js → chunk-QQMYKUIG.js} +1 -1
  113. package/dist/{chunk-FBOKUG5B.js → chunk-RAOIICTD.js} +10 -10
  114. package/dist/{chunk-SDIQEPAR.js → chunk-RWDZPTDG.js} +1 -1
  115. package/dist/{chunk-HMNDJPLQ.js → chunk-S6WLGGFS.js} +1 -1
  116. package/dist/{chunk-NK2UW3WR.js → chunk-SDOVSUQP.js} +1 -1
  117. package/dist/{chunk-KFWSPEDG.js → chunk-SEZ6YFNG.js} +1 -1
  118. package/dist/{chunk-ERYGKPIR.js → chunk-SMLMTEV6.js} +1 -1
  119. package/dist/{chunk-YMSOS6CF.js → chunk-TDLDZZNW.js} +1 -1
  120. package/dist/{chunk-FCNBAYZ6.js → chunk-TIAWLVUB.js} +3 -3
  121. package/dist/{chunk-74M47HVE.js → chunk-TQU327UC.js} +1 -1
  122. package/dist/{chunk-3WE4UZHN.js → chunk-TYBLBWNS.js} +1 -1
  123. package/dist/{chunk-M4ABCFJO.js → chunk-U42FMHXX.js} +3 -3
  124. package/dist/{chunk-W672RTMC.js → chunk-UECOOH6G.js} +4 -4
  125. package/dist/{chunk-EPBYIJPM.js → chunk-UV6U7GP5.js} +1 -1
  126. package/dist/{chunk-ZQPXWUCP.js → chunk-UZLN7NLA.js} +4 -4
  127. package/dist/{chunk-Y6A5LED6.js → chunk-V3KCLOPE.js} +5 -2
  128. package/dist/{chunk-FAJRDYFU.js → chunk-V7A3632C.js} +3 -3
  129. package/dist/{chunk-TQYHQKOK.js → chunk-VB3MY67J.js} +1 -1
  130. package/dist/{chunk-ZS2ROUIG.js → chunk-VBNZJYTW.js} +1 -1
  131. package/dist/{chunk-U3WUAVAX.js → chunk-VWSXDENA.js} +4 -4
  132. package/dist/{chunk-XNJEXXKC.js → chunk-W3H5NVS7.js} +2 -2
  133. package/dist/{chunk-LBFV45YF.js → chunk-WUNTVKJ5.js} +1 -1
  134. package/dist/{chunk-PXMEW6TM.js → chunk-WVAA6ZNR.js} +3 -3
  135. package/dist/{chunk-IXGZSANV.js → chunk-X5DKQC4C.js} +1 -1
  136. package/dist/{chunk-MKZ73C57.js → chunk-XBKJYNHG.js} +2 -2
  137. package/dist/{chunk-3ODOQWSB.js → chunk-XERF7LKH.js} +2 -2
  138. package/dist/chunk-XO4BTSA5.js +38 -0
  139. package/dist/{chunk-D5YHSTHZ.js → chunk-XTYAKH7L.js} +4 -4
  140. package/dist/chunk-Y2D2KZC2.js +5146 -0
  141. package/dist/{chunk-VM2VBJRC.js → chunk-Z67ELZGQ.js} +16 -0
  142. package/dist/{chunk-RHZE7BIX.js → chunk-ZBICCHYQ.js} +2 -2
  143. package/dist/{chunk-7CKKKBNM.js → chunk-ZDM7GFKC.js} +2 -2
  144. package/dist/{chunk-AAZF6D3Z.js → chunk-ZDPZZNLV.js} +2 -2
  145. package/dist/{chunk-7EOREMZI.js → chunk-ZZMOJL4C.js} +13 -13
  146. package/dist/{clean-73IDEWIJ.js → clean-TGMFBGYJ.js} +25 -24
  147. package/dist/cli.js +68 -68
  148. package/dist/{cloud-SOZPWTDL.js → cloud-7RGF4WQT.js} +7 -7
  149. package/dist/{cloud-P32MAEIJ.js → cloud-TMGC6QCF.js} +4 -4
  150. package/dist/{cloudrun-H5TW5T4R.js → cloudrun-S6OJKIV4.js} +7 -7
  151. package/dist/{compare-BQSDHPZ3.js → compare-UY4WUT4M.js} +41 -43
  152. package/dist/{compiler-WNVDGRBH.js → compiler-B5OKYH72.js} +4 -4
  153. package/dist/{component-WWICYJFN.js → component-UNC53NZD.js} +5 -5
  154. package/dist/{compositions-VEMHHQR6.js → compositions-IHZGRDPY.js} +15 -15
  155. package/dist/{curve-5SCSMYX4.js → curve-PY3IWSSS.js} +14 -14
  156. package/dist/{cuts-POUL3RQ5.js → cuts-QDZJTR4C.js} +15 -15
  157. package/dist/{delete-NVS5PXRM.js → delete-NWSVGHB6.js} +11 -11
  158. package/dist/{deploy-SPJ5OWAI.js → deploy-46ZFBV7W.js} +6 -6
  159. package/dist/{describeProject-KJGRR7FM.js → describeProject-FUNFO4CI.js} +10 -10
  160. package/dist/{destroy-CPLVCITS.js → destroy-MGSLIVVF.js} +6 -6
  161. package/dist/{diff-O2JUFV2N.js → diff-KV5MIGRD.js} +37 -37
  162. package/dist/{dist-DCRKIIL4.js → dist-CZNBPI6A.js} +11 -10
  163. package/dist/{dist-XRESUN6B.js → dist-XBACRUL3.js} +2 -2
  164. package/dist/{dist-TTOW2KVO.js → dist-ZJCX2EDP.js} +2 -2
  165. package/dist/{doctor-L5GGDS2F.js → doctor-Y2HSNKRA.js} +18 -18
  166. package/dist/{dotEnv-7P4XI4ID.js → dotEnv-3XMUX3U6.js} +3 -3
  167. package/dist/{energy-43JTPLLL.js → energy-7OXUOWH5.js} +15 -15
  168. package/dist/{events-XRO5CFTD.js → events-2NABTDY4.js} +5 -5
  169. package/dist/{events-K576EL47.js → events-C6EY6OJ5.js} +8 -8
  170. package/dist/{events-33NDGOZM.js → events-EFOWGVWG.js} +17 -17
  171. package/dist/{execute-EWZ3WK3L.js → execute-3ZQSB2IX.js} +29 -28
  172. package/dist/{extract-NW375CQM.js → extract-V36OHCDI.js} +15 -15
  173. package/dist/{face-IVXIPAO5.js → face-27NDWNOT.js} +11 -11
  174. package/dist/{face-AVVUVV5L.js → face-UJ22O2MN.js} +15 -15
  175. package/dist/{feedback-MS34KB74.js → feedback-K6BSCEV7.js} +17 -17
  176. package/dist/{ffmpeg-I376KCKD.js → ffmpeg-YNZQRQCJ.js} +9 -9
  177. package/dist/{figma-M37MXYPR.js → figma-LIWR7AJJ.js} +3 -3
  178. package/dist/fontLocalizeCli.js +14 -13
  179. package/dist/{frames-6VGAHZBO.js → frames-4CSSTFJP.js} +16 -16
  180. package/dist/{generate-TM7AOJ27.js → generate-4Q37PFXG.js} +29 -29
  181. package/dist/{get-2JAJO7AP.js → get-AV65OF23.js} +11 -11
  182. package/dist/{gpuPolicy-DEH3KKNF.js → gpuPolicy-Y6OVUHUV.js} +9 -9
  183. package/dist/{grade-compare-UN6MPWVF.js → grade-compare-MBA4VG7M.js} +36 -35
  184. package/dist/{hands-ANSG7WHU.js → hands-2I2HWDTL.js} +17 -17
  185. package/dist/hangReport.js +2 -2
  186. package/dist/{heifImagePrep-YC3ZMWUC.js → heifImagePrep-JC3TQ4IG.js} +10 -10
  187. package/dist/{help-63QQYCMJ.js → help-JOQIPFII.js} +1 -1
  188. package/dist/{history-DRSL755Q.js → history-TLE2CGTY.js} +13 -13
  189. package/dist/hyperframe.manifest.json +1 -1
  190. package/dist/hyperframe.runtime.iife.js +64 -64
  191. package/dist/hyperframes-player.global.js +1 -1
  192. package/dist/{info-UNIWLP7I.js → info-3HMZZAAV.js} +17 -17
  193. package/dist/{init-3W3XSGXC.js → init-Y7FGDZUZ.js} +31 -31
  194. package/dist/{ink-OXJJIEQ7.js → ink-K4JHETG5.js} +15 -15
  195. package/dist/{inspect-UOXP5ICV.js → inspect-STYYLKV6.js} +40 -39
  196. package/dist/{installer-OWZSFVV2.js → installer-SRPSC2X7.js} +4 -4
  197. package/dist/{keyframes-LNCXSQJ6.js → keyframes-S6RFXNAA.js} +15 -15
  198. package/dist/{lambda-3ZIM5NW2.js → lambda-YDA3ROVC.js} +15 -15
  199. package/dist/{launch-HOSRCHWS.js → launch-5UBQEKDH.js} +10 -10
  200. package/dist/{layout-MRBHBZEA.js → layout-LVDEEUDY.js} +40 -39
  201. package/dist/{lint-U4PINYKO.js → lint-4OELSC7I.js} +13 -13
  202. package/dist/{lintProject-55U44GOP.js → lintProject-FPQL3VUS.js} +2 -2
  203. package/dist/{list-AMH6UUTI.js → list-5TBQYNHD.js} +11 -11
  204. package/dist/{localPage-JJ56YNKB.js → localPage-NEVG3XFX.js} +9 -9
  205. package/dist/{login-U42SSWF4.js → login-IWDL4RDU.js} +14 -12
  206. package/dist/{logout-DQVPSI4E.js → logout-ZTTDB46G.js} +6 -6
  207. package/dist/{look-6VTGMGIF.js → look-J5XK73IV.js} +15 -15
  208. package/dist/{manager-PXRZQDDT.js → manager-AA3ZNHAP.js} +4 -4
  209. package/dist/{manager-GHP2QIUD.js → manager-SNMVD5EK.js} +10 -10
  210. package/dist/{measure-NC4LN7EZ.js → measure-COGDPBLB.js} +12 -12
  211. package/dist/{media-VKM5WFRK.js → media-PYSX3S7F.js} +10 -10
  212. package/dist/{media-treatment-VNZS2MIT.js → media-treatment-HR3X5LCP.js} +17 -17
  213. package/dist/{media-use-JOQWGBS5.js → media-use-RHUAYJ66.js} +10 -10
  214. package/dist/{models-S55TNWF7.js → models-Z6RV3WVR.js} +14 -14
  215. package/dist/{motionShot-OUOXFKUG.js → motionShot-DFOO4EQ3.js} +20 -20
  216. package/dist/{normalize-audio-GYTTK5QE.js → normalize-audio-DV3OPHTW.js} +11 -11
  217. package/dist/{oauth-RETRT7QD.js → oauth-EZ2ZQ4XR.js} +16 -1
  218. package/dist/{open-KGXPI4BY.js → open-UOR7EZ5U.js} +16 -16
  219. package/dist/{parakeetRunner-IXUUFPGG.js → parakeetRunner-DTHAZ5YS.js} +16 -16
  220. package/dist/{pipeline-UE2Y2ZRB.js → pipeline-IO437FLW.js} +12 -12
  221. package/dist/{plan-AD4FZA6N.js → plan-NJNZYLV3.js} +21 -21
  222. package/dist/{play-G6JYDYIH.js → play-S6G25SBX.js} +55 -47
  223. package/dist/{preflight-QNDXHMOT.js → preflight-WQQIKPKE.js} +12 -12
  224. package/dist/{present-OK7QMCLR.js → present-KTL4QWTR.js} +25 -20
  225. package/dist/{preview-XD7J2KHY.js → preview-T6HZZTTI.js} +23 -23
  226. package/dist/{privateProjectFile-2WJ6GPY6.js → privateProjectFile-EPXXPIEV.js} +2 -2
  227. package/dist/{probe-34RS6LVV.js → probe-QVXQWQGR.js} +15 -15
  228. package/dist/{producer-AX7EDIPJ.js → producer-7YJ4HGWN.js} +1 -1
  229. package/dist/{projectConfig-YBFY4W5A.js → projectConfig-ORBFL2ON.js} +6 -6
  230. package/dist/{publicNetwork-66HWFKYG.js → publicNetwork-RUALPHQQ.js} +1 -1
  231. package/dist/{publication-JPKV2ZQO.js → publication-CFIXSMO5.js} +2 -2
  232. package/dist/{publish-LRUVQX2E.js → publish-OLO5DOLH.js} +25 -24
  233. package/dist/{receivedRecordFollow-6MPKPG36.js → receivedRecordFollow-K2WHSMQL.js} +5 -5
  234. package/dist/{refresh-HFE7YV57.js → refresh-FYXJG2PX.js} +6 -6
  235. package/dist/{remove-background-TS4QUALS.js → remove-background-CGJDVLEN.js} +13 -13
  236. package/dist/{render-UQICTWO6.js → render-JF4YUCUQ.js} +43 -41
  237. package/dist/{render-PSUJ4UCJ.js → render-ODVFUS2P.js} +72 -60
  238. package/dist/{render-NYFK74KL.js → render-U7GWG4G2.js} +5 -5
  239. package/dist/{render-batch-57ZDTS7Z.js → render-batch-GFCU3E6Q.js} +5 -5
  240. package/dist/renderSetupWorker.js +6 -6
  241. package/dist/{resolver-3HJC4XU3.js → resolver-7HNGNUD3.js} +4 -4
  242. package/dist/{reverse-CIMYQVFI.js → reverse-R4GX3IZN.js} +1 -1
  243. package/dist/{run-EFRNU53Z.js → run-JRDVPXZK.js} +10 -10
  244. package/dist/{sam-O7Y2CCK3.js → sam-PHMZPQBM.js} +4 -4
  245. package/dist/{screenshotCapture-K63UAXO7.js → screenshotCapture-332Y4ROA.js} +11 -11
  246. package/dist/{service-EEEGLRHX.js → service-FB4AF4RM.js} +17 -17
  247. package/dist/{share-WQVRXWH4.js → share-YSLQ7PGY.js} +24 -23
  248. package/dist/{sherpa-BOHH3Q32.js → sherpa-7RMA3KRP.js} +15 -15
  249. package/dist/sherpaWorker.js +3 -3
  250. package/dist/skills/hyperframes/references/plugin-installation.md +1 -1
  251. package/dist/skills/hyperframes/scripts/plugin-cli.mjs +4 -4
  252. package/dist/{skills-KB7UH26E.js → skills-F5S4ISKO.js} +13 -13
  253. package/dist/{skillsUpdateCheck-ZDA5FPJB.js → skillsUpdateCheck-MAMDFQR5.js} +5 -5
  254. package/dist/{snapshot-HRR6LIPD.js → snapshot-3GN5M7A4.js} +45 -45
  255. package/dist/{snapshotHeldVideos-QGJBXBJM.js → snapshotHeldVideos-NNAZHPYK.js} +10 -10
  256. package/dist/{src-QOVNNDZN.js → src-SHRAI2Y4.js} +12 -11
  257. package/dist/{src-FCITTGFH.js → src-WKQLHMUG.js} +13 -9
  258. package/dist/{start-I7H5I3AS.js → start-XXU5LDBV.js} +27 -27
  259. package/dist/{staticProjectServer-XEZD7JZE.js → staticProjectServer-RBNNFU6T.js} +21 -20
  260. package/dist/{status-2GKACMVC.js → status-CTL4EWQC.js} +20 -20
  261. package/dist/studio/assets/{hyperframes-player-VGx6ow_e.js → hyperframes-player-Dl0dFOXO.js} +1 -1
  262. package/dist/studio/assets/{index-B8Xt_Oyw.js → index-DPzReVPd.js} +179 -179
  263. package/dist/studio/assets/{index-BH18TdX9.js → index-DbMtST5n.js} +1 -1
  264. package/dist/studio/assets/{pausedVideoDecoder-Bx3fGNkU.js → pausedVideoDecoder-CCAL8jtm.js} +1 -1
  265. package/dist/studio/index.html +1 -1
  266. package/dist/{studio-api-KQ7DR667.js → studio-api-2AOIQOEV.js} +11 -10
  267. package/dist/{studioServer-KAU2XZ4F.js → studioServer-R6ADUV52.js} +69 -69
  268. package/dist/subCompositionWorker.js +13 -18
  269. package/dist/{sync-3OJZRVPG.js → sync-C4DLMXLD.js} +15 -15
  270. package/dist/{synthesize-JECKYUGO.js → synthesize-W7KYX6CI.js} +2 -2
  271. package/dist/{system-PKL4Y4MX.js → system-V6IZXVU4.js} +3 -3
  272. package/dist/{telemetry-HIZZLE6W.js → telemetry-PCNSNJZE.js} +8 -8
  273. package/dist/{templates-35GCXKO2.js → templates-LPGMBERL.js} +17 -17
  274. package/dist/{textOverFace-Q4I3PREP.js → textOverFace-WYPZHM6O.js} +3 -3
  275. package/dist/{timeline-U2V63I7B.js → timeline-KTEBNLHM.js} +23 -22
  276. package/dist/{tokens-24TKAZCA.js → tokens-WP5ZRTJ3.js} +4 -4
  277. package/dist/{transcribe-M3JJZ27F.js → transcribe-463K32RT.js} +13 -13
  278. package/dist/{transcribe-YHGN4HEM.js → transcribe-L65PBQ4S.js} +32 -32
  279. package/dist/{tts-CDBXQSAQ.js → tts-DDVJVSD4.js} +3 -3
  280. package/dist/{update-4DIZ3YQQ.js → update-6HCOMJ7L.js} +14 -14
  281. package/dist/{updateCheck-F56HX6MZ.js → updateCheck-RFRITDJM.js} +4 -4
  282. package/dist/{upgrade-6WAFZ7WN.js → upgrade-BOQF5LPW.js} +5 -5
  283. package/dist/{urlDownloader-DNNB6UOI.js → urlDownloader-MNYASBMV.js} +8 -8
  284. package/dist/{validate-N5KPU4GC.js → validate-RZNELWBT.js} +30 -29
  285. package/dist/{video-T6YYFBNI.js → video-FEMS6YLC.js} +10 -10
  286. package/dist/{voices-OI37IYYG.js → voices-LADMSNKC.js} +27 -27
  287. package/dist/warmCheck.js +46 -46
  288. package/dist/warmCheckClient.js +2 -2
  289. package/package.json +1 -1
  290. package/dist/chunk-RAHYMZNU.js +0 -5146
@@ -8,13 +8,13 @@ import {
8
8
  auditClipDurations,
9
9
  shouldIgnoreHttpError,
10
10
  shouldIgnoreRequestFailure
11
- } from "./chunk-7BREEOLQ.js";
11
+ } from "./chunk-2J5U5T4U.js";
12
12
  import {
13
13
  projectLocalFile
14
- } from "./chunk-ZQPXWUCP.js";
14
+ } from "./chunk-UZLN7NLA.js";
15
15
  import {
16
16
  serveStaticProjectHtml
17
- } from "./chunk-AWOHPIKF.js";
17
+ } from "./chunk-CJGEN3HQ.js";
18
18
  import {
19
19
  AUDIT_SEEK_OPTIONS,
20
20
  DEFAULT_ZOOM_PADDING_PX,
@@ -28,10 +28,10 @@ import {
28
28
  seekCompositionTimeline,
29
29
  seekInPage,
30
30
  waitForPreferredSeekTarget
31
- } from "./chunk-7EOREMZI.js";
31
+ } from "./chunk-ZZMOJL4C.js";
32
32
  import {
33
33
  findStageProxyBox
34
- } from "./chunk-7LQFVACU.js";
34
+ } from "./chunk-PTDAEAQY.js";
35
35
  import {
36
36
  SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS,
37
37
  withRemainingBudget
@@ -45,7 +45,7 @@ import {
45
45
  resolveProxies,
46
46
  scanProjectMediaCodecMap,
47
47
  shouldPrewarmProxy
48
- } from "./chunk-X3JZA7KH.js";
48
+ } from "./chunk-DN2WT7UF.js";
49
49
  import {
50
50
  artifactDirectory,
51
51
  finishSnapshotRun
@@ -54,23 +54,23 @@ import {
54
54
  BrowserCleanupError,
55
55
  closeManagedBrowser,
56
56
  onStopSignal
57
- } from "./chunk-TUJB74AE.js";
57
+ } from "./chunk-2ZRRIDLB.js";
58
58
  import {
59
59
  resolveAutoProxy
60
- } from "./chunk-TXTVVIW7.js";
60
+ } from "./chunk-GJCRUFVA.js";
61
61
  import {
62
62
  projectFolder
63
63
  } from "./chunk-244FN6TG.js";
64
64
  import {
65
65
  DEFAULT_CONFIG
66
- } from "./chunk-ZY55U6ER.js";
66
+ } from "./chunk-PDCJFCXJ.js";
67
67
  import {
68
68
  STUDIO_PREVIEW_CAPTURE_MODE,
69
69
  STUDIO_PREVIEW_MARK_META
70
70
  } from "./chunk-LKHH4BUW.js";
71
71
  import {
72
72
  injectTagsAtHeadStart
73
- } from "./chunk-RAHYMZNU.js";
73
+ } from "./chunk-Y2D2KZC2.js";
74
74
  import {
75
75
  parseHTML
76
76
  } from "./chunk-GWTIFRF5.js";
@@ -1139,7 +1139,7 @@ function proxyFailedDraft(message) {
1139
1139
  return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
1140
1140
  }
1141
1141
  async function loadCheckHtmlWithDeferredMedia(dir) {
1142
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-QV6WDOXF.js");
1142
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-54M62O3L.js");
1143
1143
  return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
1144
1144
  }
1145
1145
  function withCapturePreviewMark(html) {
@@ -1212,7 +1212,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
1212
1212
  ).map((draft) => runtimeFinding(draft, rootAnchor))
1213
1213
  }));
1214
1214
  const launchSettleMs = Date.now() - launchSettleStart;
1215
- const { analyzeClipMediaFit } = await import("./src-FCITTGFH.js");
1215
+ const { analyzeClipMediaFit } = await import("./src-WKQLHMUG.js");
1216
1216
  for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
1217
1217
  drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
1218
1218
  }
@@ -1355,7 +1355,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
1355
1355
  async function captureFindingFrames(project, options, requests, deadline) {
1356
1356
  if (requests.length === 0) return { written: [], inspected: [] };
1357
1357
  const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
1358
- const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-QV6WDOXF.js");
1358
+ const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-54M62O3L.js");
1359
1359
  return withCapturePreviewMark(
1360
1360
  await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
1361
1361
  );
@@ -8,7 +8,7 @@ import {
8
8
  round,
9
9
  runFfmpeg,
10
10
  sumOf
11
- } from "./chunk-66D5BC5K.js";
11
+ } from "./chunk-Q6ECHIJY.js";
12
12
 
13
13
  // src/measure/drawn.ts
14
14
  import { mkdtempSync, readFileSync, rmSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  hasPreservedUnknownData,
10
10
  readStore,
11
11
  writeStore
12
- } from "./chunk-U6ZR7GBQ.js";
12
+ } from "./chunk-CJGFAAQM.js";
13
13
  import {
14
14
  credentialPath
15
15
  } from "./chunk-DMW5SSUN.js";
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  DISTRIBUTED_FPS,
12
12
  isDistributedFps
13
- } from "./chunk-XSARHJSW.js";
13
+ } from "./chunk-OWWIJYV3.js";
14
14
  import {
15
15
  parseHTML
16
16
  } from "./chunk-GWTIFRF5.js";
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  findStageProxyBox
9
- } from "./chunk-7LQFVACU.js";
9
+ } from "./chunk-PTDAEAQY.js";
10
10
  import {
11
11
  documentFromAnotherSite,
12
12
  injectMediaCodecMapIntoHtml,
13
13
  proxyWorkFromAnotherSite
14
- } from "./chunk-6QZNF3JF.js";
14
+ } from "./chunk-DXPKV74K.js";
15
15
  import {
16
16
  PROXY_VARIANT_CONFIG,
17
17
  ProxyCapacityError,
@@ -22,20 +22,20 @@ import {
22
22
  recordProxyRequest,
23
23
  resolveProxy,
24
24
  resolveProxyVariantRequest
25
- } from "./chunk-X3JZA7KH.js";
25
+ } from "./chunk-DN2WT7UF.js";
26
26
  import {
27
27
  resolveAutoProxy
28
- } from "./chunk-TXTVVIW7.js";
28
+ } from "./chunk-GJCRUFVA.js";
29
29
  import {
30
30
  openRangeEnd
31
31
  } from "./chunk-LD6JONPV.js";
32
32
  import {
33
33
  SAME_ORIGIN_FRAMING_HEADERS,
34
34
  isOwnLoopbackHost
35
- } from "./chunk-ZY55U6ER.js";
35
+ } from "./chunk-PDCJFCXJ.js";
36
36
  import {
37
37
  listenOnBrowserSafePort
38
- } from "./chunk-PJQVJSMG.js";
38
+ } from "./chunk-33JUCUTM.js";
39
39
  import {
40
40
  getMimeType
41
41
  } from "./chunk-P2ZMVHTF.js";
@@ -45,14 +45,14 @@ import {
45
45
  } from "./chunk-LKHH4BUW.js";
46
46
  import {
47
47
  stripSdrPngColourTags
48
- } from "./chunk-JGKI7FHX.js";
48
+ } from "./chunk-BBEPJIL6.js";
49
49
  import {
50
50
  PREVIEW_PROXY_BOX_PARAM,
51
51
  parsePreviewProxyBox
52
- } from "./chunk-XSARHJSW.js";
52
+ } from "./chunk-OWWIJYV3.js";
53
53
  import {
54
54
  injectTagsAtHeadStart
55
- } from "./chunk-RAHYMZNU.js";
55
+ } from "./chunk-Y2D2KZC2.js";
56
56
  import {
57
57
  decodeWellFormedEscapes
58
58
  } from "./chunk-KZ5PV5TL.js";
@@ -30,6 +30,9 @@ import {
30
30
  import {
31
31
  c
32
32
  } from "./chunk-JCNPHRGX.js";
33
+ import {
34
+ terminalText
35
+ } from "./chunk-OGL5VQGT.js";
33
36
  import {
34
37
  failCommand
35
38
  } from "./chunk-U7M4SZUB.js";
@@ -112,6 +115,7 @@ function failurePage(code, description) {
112
115
  }
113
116
 
114
117
  // src/auth/loopback.ts
118
+ var STALE_SIGN_IN = "This page is from a different sign-in. Your terminal is still waiting: finish signing in from the newest sign-in tab.";
115
119
  var CALLBACK_PATH = "/oauth/callback";
116
120
  var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
117
121
  async function startLoopback(opts) {
@@ -166,17 +170,17 @@ function handleRequest(req, res, expectedState, redirectUri, resolveResult, reje
166
170
  return;
167
171
  }
168
172
  const params = url.searchParams;
173
+ const state = params.get("state");
174
+ if (!state || !stateMatches(state, expectedState)) {
175
+ respond(res, 400, failurePage("invalid_state", STALE_SIGN_IN));
176
+ return;
177
+ }
169
178
  const error = params.get("error");
170
179
  if (error) {
171
180
  const desc = params.get("error_description") ?? "";
172
181
  respond(res, 400, failurePage(error, desc));
173
- rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
174
- return;
175
- }
176
- const state = params.get("state");
177
- if (!state || !stateMatches(state, expectedState)) {
178
- respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
179
- rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
182
+ const shown = `${terminalText(error)}${desc ? ` \u2014 ${terminalText(desc)}` : ""}`;
183
+ rejectResult(new Error(`OAuth authorize returned error: ${shown}`));
180
184
  return;
181
185
  }
182
186
  const code = params.get("code");
@@ -8,7 +8,7 @@ import {
8
8
  ratioOf,
9
9
  readClip,
10
10
  round
11
- } from "./chunk-66D5BC5K.js";
11
+ } from "./chunk-Q6ECHIJY.js";
12
12
 
13
13
  // src/measure/look.ts
14
14
  var LOOK_FLOOR = { luma: 1, contrast: 1, saturation: 0.01 };
@@ -139,7 +139,7 @@ var competitorsOf = (name) => COMPETING_PROVIDER_KEYS.filter((group) => group.in
139
139
  (group) => group.filter((other) => other !== name && Boolean(process.env[other]))
140
140
  );
141
141
  async function untrustedEnvOrigin(dir) {
142
- const { receivedFiles, receivedRecordStatus } = await import("./privateProjectFile-2WJ6GPY6.js");
142
+ const { receivedFiles, receivedRecordStatus } = await import("./privateProjectFile-EPXXPIEV.js");
143
143
  if (receivedRecordStatus(dir) === "unchecked")
144
144
  return "a project whose origin could not be checked (too many folders to scan)";
145
145
  return receivedFiles(dir)(".env") ? "a received project" : null;
@@ -7,7 +7,10 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeFirstFrameColour,
9
9
  probeMediaMetadata
10
- } from "./chunk-AAZF6D3Z.js";
10
+ } from "./chunk-ZDPZZNLV.js";
11
+ import {
12
+ previewToken
13
+ } from "./chunk-HLVNKNSW.js";
11
14
  import {
12
15
  NOT_MEDIA,
13
16
  mediaInputArgs
@@ -27,7 +30,7 @@ import {
27
30
  formatPreviewProxyBox,
28
31
  hdrToSdrToneMapFilter,
29
32
  isHeavyForPreview
30
- } from "./chunk-XSARHJSW.js";
33
+ } from "./chunk-OWWIJYV3.js";
31
34
  import {
32
35
  mkdirWithinProject,
33
36
  realProjectRoot,
@@ -47,9 +50,10 @@ import {
47
50
  scanHtmlOpeningTags
48
51
  } from "./chunk-4NDSGKPO.js";
49
52
  import {
53
+ concatListInputArgs,
50
54
  findFfBinary,
51
55
  followFfmpegProgress
52
- } from "./chunk-VM2VBJRC.js";
56
+ } from "./chunk-Z67ELZGQ.js";
53
57
 
54
58
  // ../studio-server/dist/chunk-QTM3VNZG.js
55
59
  import { statSync } from "fs";
@@ -279,20 +283,12 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
279
283
  return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
280
284
  }
281
285
 
282
- // ../studio-server/dist/chunk-APOCIJIT.js
286
+ // ../studio-server/dist/chunk-ZQTRPHJN.js
283
287
  import { spawn as spawn2 } from "child_process";
284
- import { randomUUID } from "crypto";
285
- import {
286
- existsSync as existsSync2,
287
- mkdtempSync,
288
- renameSync,
289
- rmSync as rmSync2,
290
- unlinkSync as unlinkSync2,
291
- utimesSync,
292
- writeFileSync
293
- } from "fs";
294
- import os, { availableParallelism, tmpdir, totalmem } from "os";
295
- import { basename as basename3, dirname as dirname4, extname as extname4, isAbsolute, join as join4, relative, resolve, sep as sep2 } from "path";
288
+ import { createHmac, randomBytes, randomUUID } from "crypto";
289
+ import { existsSync as existsSync2, renameSync, rmSync as rmSync2, unlinkSync as unlinkSync2, utimesSync, writeFileSync } from "fs";
290
+ import os, { availableParallelism, totalmem } from "os";
291
+ import { basename as basename3, dirname as dirname4, extname as extname3, isAbsolute, join as join4, relative, resolve, sep as sep2 } from "path";
296
292
  import { existsSync, readdirSync, statSync as statSync2, unlinkSync } from "fs";
297
293
  import { dirname, extname, join } from "path";
298
294
  import { createHash } from "crypto";
@@ -307,7 +303,7 @@ import {
307
303
  statSync as statSync3,
308
304
  writeSync
309
305
  } from "fs";
310
- import { basename as basename2, dirname as dirname3, extname as extname3, join as join3 } from "path";
306
+ import { basename as basename2, dirname as dirname3, join as join3 } from "path";
311
307
  var DEFAULT_MAX_BYTES = 10 * 1024 * 1024 * 1024;
312
308
  var DEFAULT_STALE_TEMP_MS = 60 * 60 * 1e3;
313
309
  var DEFAULT_MIN_SWEEP_INTERVAL_MS = 5 * 60 * 1e3;
@@ -316,8 +312,8 @@ var PROXY_EXTENSIONS = /* @__PURE__ */ new Set([
316
312
  PROXY_STILL_EXTENSION
317
313
  ]);
318
314
  var TRANSCODER_PROXY_NAME = /^[0-9a-f]{64}\.\w+$/;
319
- var TRANSCODER_TEMP_NAME = /^\.tmp-[0-9a-f-]{36}-(?:\.part-[0-9a-f]{64}-\d+|[0-9a-f]{64})\.\w+$/;
320
- var TRANSCODER_PIECE_NAME = /^\.part-([0-9a-f]{64})-\d+(\.\w+)$/;
315
+ var TRANSCODER_TEMP_NAME = /^\.tmp-[0-9a-f-]{36}-(?:\.part-[0-9a-f]{64}-(?:[0-9a-f]{32}-)?\d+|[0-9a-f]{64})\.\w+$/;
316
+ var TRANSCODER_PIECE_NAME = /^\.part-([0-9a-f]{64})-([0-9a-f]{32}-)?\d+(\.\w+)$/;
321
317
  var STALE_PIECE_MS = 60 * 60 * 1e3;
322
318
  var lastSweepAt = /* @__PURE__ */ new Map();
323
319
  function positiveEnvNumber(name, fallback) {
@@ -347,8 +343,10 @@ function isLeftoverName(name) {
347
343
  function leftoverIsDead(cacheDir, name, modifiedAt, protectedPaths, now, staleTempMs) {
348
344
  const piece = TRANSCODER_PIECE_NAME.exec(name);
349
345
  if (!piece) return now - modifiedAt >= staleTempMs;
350
- const copyIsRunning = protectedPaths.has(join(cacheDir, `${piece[1]}${piece[2]}`));
351
- return !copyIsRunning && now - modifiedAt >= STALE_PIECE_MS;
346
+ const taggedForThisVersion = piece[2] !== void 0;
347
+ const copyIsRunning = taggedForThisVersion && protectedPaths.has(join(cacheDir, `${piece[1]}${piece[3]}`));
348
+ const ageEvenIfFutureDated = Math.abs(now - modifiedAt);
349
+ return !copyIsRunning && ageEvenIfFutureDated >= STALE_PIECE_MS;
352
350
  }
353
351
  function readCacheInventory(cacheDir, protectedPaths, now, staleTempMs) {
354
352
  const entries = [];
@@ -488,15 +486,21 @@ var CopyLockStalledError = class extends Error {
488
486
  this.name = "CopyLockStalledError";
489
487
  }
490
488
  };
491
- function lastActivityMs(cachePath, lockPath) {
489
+ function changedNoLaterThanFirstSeen(sightings, file, mtimeMs) {
490
+ const earlier = sightings.get(file);
491
+ const seenAt = earlier?.mtimeMs === mtimeMs ? earlier.seenAt : Date.now();
492
+ sightings.set(file, { mtimeMs, seenAt });
493
+ return Math.min(mtimeMs, seenAt);
494
+ }
495
+ function lastActivityMs(cachePath, lockPath, unguessablePieceName, sightings) {
492
496
  const name = basename2(cachePath);
493
- const stem = basename2(cachePath, extname3(cachePath));
494
- const mine = (file) => file === basename2(lockPath) || file.startsWith(".tmp-") && (file.endsWith(`-${name}`) || file.includes(`-.part-${stem}-`)) || file.startsWith(`.part-${stem}-`);
497
+ const isPiece = (file) => unguessablePieceName !== void 0 && (file.startsWith(unguessablePieceName) || file.startsWith(".tmp-") && file.includes(`-${unguessablePieceName}`));
498
+ const mine = (file) => file === basename2(lockPath) || file.startsWith(".tmp-") && file.endsWith(`-${name}`) || isPiece(file);
495
499
  let newest = 0;
496
500
  for (const file of readdirSync2(dirname3(cachePath))) {
497
501
  if (!mine(file)) continue;
498
502
  const changed = statSync3(join3(dirname3(cachePath), file), { throwIfNoEntry: false })?.mtimeMs;
499
- newest = Math.max(newest, changed ?? 0);
503
+ newest = Math.max(newest, changedNoLaterThanFirstSeen(sightings, file, changed ?? 0));
500
504
  }
501
505
  return newest;
502
506
  }
@@ -529,8 +533,9 @@ function pause(ms, signal) {
529
533
  signal.addEventListener("abort", onAbort, { once: true });
530
534
  });
531
535
  }
532
- async function acquireCopyLock(cachePath, copyMade, signal, stallMs) {
536
+ async function acquireCopyLock(cachePath, copyMade, signal, stallMs, unguessablePieceName) {
533
537
  const lockPath = lockPathFor(cachePath);
538
+ const sightings = /* @__PURE__ */ new Map();
534
539
  for (; ; ) {
535
540
  signal.throwIfAborted();
536
541
  if (copyMade(cachePath)) return null;
@@ -545,7 +550,7 @@ async function acquireCopyLock(cachePath, copyMade, signal, stallMs) {
545
550
  if (err.code !== "EEXIST") throw err;
546
551
  }
547
552
  if (!ownerIsAlive(lockPath)) rmSync(lockPath, { force: true });
548
- else if (Date.now() - lastActivityMs(cachePath, lockPath) > stallMs)
553
+ else if (Date.now() - lastActivityMs(cachePath, lockPath, unguessablePieceName, sightings) > stallMs)
549
554
  throw new CopyLockStalledError(basename2(cachePath), stallMs);
550
555
  else await pause(POLL_MS, signal);
551
556
  }
@@ -570,7 +575,26 @@ var TRANSCODE_STALL_MS = boundedEnvInteger(
570
575
  );
571
576
  var PROXY_CHUNK_SECONDS = 15;
572
577
  var CHUNK_PREFIX = ".part-";
578
+ var UNSIGNED_PIECE_SECRET = randomBytes(32).toString("hex");
579
+ var warnedNoPieceToken = false;
580
+ function pieceSecret() {
581
+ const token = previewToken();
582
+ if (token) return token;
583
+ if (!warnedNoPieceToken) {
584
+ warnedNoPieceToken = true;
585
+ console.warn(
586
+ "[media-proxy] no preview token could be read, so a stopped copy restarts from its first piece after Studio restarts"
587
+ );
588
+ }
589
+ return UNSIGNED_PIECE_SECRET;
590
+ }
591
+ function unguessablePiecePrefix(cacheDir, stem) {
592
+ const tag = createHmac("sha256", pieceSecret()).update(`proxy-piece
593
+ ${stem}`).digest("hex").slice(0, 32);
594
+ return join4(cacheDir, `${CHUNK_PREFIX}${stem}-${tag}-`);
595
+ }
573
596
  var CONCAT_TIMEOUT_MS = 2 * 60 * 1e3;
597
+ var JOIN_FROM_CACHE_FOLDER = process.platform !== "win32";
574
598
  var FAILURE_CACHE_TTL_MS = 60 * 1e3;
575
599
  var PROXY_PENDING_RETRY_AFTER_SECONDS = 2;
576
600
  var ENVIRONMENT_FAILURE_TTL_MS = 5 * PROXY_PENDING_RETRY_AFTER_SECONDS * 1e3;
@@ -890,7 +914,7 @@ function createPieceGate(size) {
890
914
  }
891
915
  async function encodeInChunks(ranges, chunks, tempPath, encode, concat, signal, gate, onDone = () => {
892
916
  }) {
893
- const extension = extname4(tempPath);
917
+ const extension = extname3(tempPath);
894
918
  const pieces = ranges.map((_, index) => `${chunks.prefix}${index}${extension}`);
895
919
  const madeAsPlainFile = (piece) => isProjectCacheFile(chunks.projectDir, piece);
896
920
  const pending = ranges.flatMap((_, index) => madeAsPlainFile(pieces[index]) ? [] : [index]);
@@ -940,17 +964,16 @@ async function encodeInChunks(ranges, chunks, tempPath, encode, concat, signal,
940
964
  )
941
965
  );
942
966
  if (failure !== void 0) throw failure;
943
- const listDir = mkdtempSync(join4(tmpdir(), "hf-proxy-join-"));
967
+ const listPath = join4(dirname4(tempPath), `${basename3(tempPath, extension)}.txt`);
944
968
  try {
945
- const listPath = join4(listDir, "pieces.txt");
946
969
  writeFileSync(
947
970
  listPath,
948
- pieces.map((piece) => `file '${piece.replace(/\\/g, "/").replace(/'/g, "'\\''")}'
971
+ pieces.map((piece) => JOIN_FROM_CACHE_FOLDER ? basename3(piece) : piece.replace(/\\/g, "/")).map((piece) => `file '${piece.replace(/'/g, "'\\''")}'
949
972
  `).join("")
950
973
  );
951
974
  await concat(listPath, tempPath);
952
975
  } finally {
953
- rmSync2(listDir, { recursive: true, force: true });
976
+ rmSync2(listPath, { force: true });
954
977
  }
955
978
  for (const piece of pieces) if (existsSync2(piece)) unlinkSync2(piece);
956
979
  }
@@ -1084,7 +1107,18 @@ async function runFfmpeg(sourcePath, outputPath, chunks, variant, box, limitSeco
1084
1107
  chunks,
1085
1108
  outputPath,
1086
1109
  encode,
1087
- (listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
1110
+ (listPath, target) => {
1111
+ const cwd = JOIN_FROM_CACHE_FOLDER ? dirname4(listPath) : void 0;
1112
+ return spawnFfmpeg(
1113
+ ffmpegPath,
1114
+ concatArgs(cwd ? basename3(listPath) : listPath, target, variant),
1115
+ CONCAT_TIMEOUT_MS,
1116
+ signal,
1117
+ void 0,
1118
+ false,
1119
+ cwd
1120
+ );
1121
+ },
1088
1122
  signal,
1089
1123
  gate,
1090
1124
  (doneSeconds) => onProgress({ doneSeconds, totalSeconds })
@@ -1096,12 +1130,7 @@ async function runFfmpeg(sourcePath, outputPath, chunks, variant, box, limitSeco
1096
1130
  function concatArgs(listPath, target, variant) {
1097
1131
  return [
1098
1132
  "-y",
1099
- "-f",
1100
- "concat",
1101
- "-safe",
1102
- "0",
1103
- "-i",
1104
- listPath,
1133
+ ...concatListInputArgs(listPath),
1105
1134
  "-c",
1106
1135
  "copy",
1107
1136
  ...variant === "h264" ? ["-movflags", "+faststart"] : [],
@@ -1115,10 +1144,11 @@ function lowerPriorityUnlessExited(pid) {
1115
1144
  return;
1116
1145
  }
1117
1146
  }
1118
- function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress, background = false) {
1147
+ function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress, background = false, cwd) {
1119
1148
  return new Promise((resolvePromise, reject) => {
1120
1149
  signal.throwIfAborted();
1121
1150
  const proc = spawn2(ffmpegPath, args, {
1151
+ cwd,
1122
1152
  stdio: ["ignore", "pipe", "pipe"],
1123
1153
  killSignal: "SIGKILL",
1124
1154
  signal,
@@ -1201,11 +1231,16 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
1201
1231
  return sameContent;
1202
1232
  }
1203
1233
  const copyMade = (path) => isProjectCacheFile(projectDir, path);
1234
+ const chunks = {
1235
+ projectDir,
1236
+ prefix: unguessablePiecePrefix(cacheDir, basename3(cachePath, extname3(cachePath)))
1237
+ };
1204
1238
  const release = await acquireCopyLock(
1205
1239
  cachePath,
1206
1240
  copyMade,
1207
1241
  job.abandoned.signal,
1208
- TRANSCODE_STALL_MS
1242
+ TRANSCODE_STALL_MS,
1243
+ basename3(chunks.prefix)
1209
1244
  ).catch((error) => {
1210
1245
  throw error instanceof CopyLockStalledError ? new ProxyTranscodeError(error.message, null, "") : error;
1211
1246
  });
@@ -1215,10 +1250,6 @@ async function transcodeToCache(job, projectDir, absoluteSourcePath, cachePath,
1215
1250
  }
1216
1251
  const tempPath = join4(cacheDir, `.tmp-${randomUUID()}-${basename3(cachePath)}`);
1217
1252
  try {
1218
- const chunks = {
1219
- projectDir,
1220
- prefix: join4(cacheDir, `${CHUNK_PREFIX}${basename3(cachePath, extname4(cachePath))}-`)
1221
- };
1222
1253
  await runFfmpeg(
1223
1254
  absoluteSourcePath,
1224
1255
  tempPath,