hyperframes 0.9.30 → 0.9.31

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 (222) hide show
  1. package/dist/{add-JBBBMWP4.js → add-53MR45WI.js} +11 -11
  2. package/dist/{agentPromptGenerator-NJL6ZJQA.js → agentPromptGenerator-NXF7237H.js} +5 -5
  3. package/dist/{animatedGifPrep-AVZAMI2D.js → animatedGifPrep-XF6VJW22.js} +5 -5
  4. package/dist/api.js +26 -26
  5. package/dist/{asset-VFG5LF4B.js → asset-Y3YAVXJ3.js} +2 -2
  6. package/dist/{assetCataloger-WGNEAI5A.js → assetCataloger-DRLH2VFH.js} +6 -6
  7. package/dist/{audio-URYC7ND7.js → audio-TRDZQ2NW.js} +11 -11
  8. package/dist/{auth-E4ZBU47K.js → auth-MN66MWGN.js} +2 -2
  9. package/dist/{autoUpdate-CEYR6IHF.js → autoUpdate-KAIIQJBV.js} +2 -2
  10. package/dist/{avatars-ZPRQ3ZCD.js → avatars-F2COSI7P.js} +9 -9
  11. package/dist/{backgroundChecks-BL4XMMXE.js → backgroundChecks-36UG4V5N.js} +3 -3
  12. package/dist/backgroundChecksWorker.js +3 -3
  13. package/dist/{batchRender-FK7U2GUF.js → batchRender-CI6OFGS5.js} +3 -3
  14. package/dist/{beats-XK4QL74K.js → beats-GBCNB763.js} +7 -7
  15. package/dist/{benchmark-MABRDF7U.js → benchmark-AHHMJBDN.js} +8 -8
  16. package/dist/{billing-2CABBLDC.js → billing-HME22C5A.js} +10 -10
  17. package/dist/{browser-SHU4XK5O.js → browser-VZTIOZI3.js} +5 -5
  18. package/dist/{bundleWithLocalizedFonts-W7SSOXOO.js → bundleWithLocalizedFonts-XLFSHMET.js} +1 -1
  19. package/dist/{capture-VPWHIN5C.js → capture-NU2ZIXJB.js} +3 -3
  20. package/dist/{capture-CFESIHJR.js → capture-ZILHWIOF.js} +13 -12
  21. package/dist/{captureCompositionFrame-MT3CHQJ6.js → captureCompositionFrame-ZWVKRKLL.js} +12 -11
  22. package/dist/{catalog-BBPONQOO.js → catalog-NVEGPXGE.js} +11 -11
  23. package/dist/{catch-up-DEZVG3A5.js → catch-up-W7ST5JSZ.js} +6 -6
  24. package/dist/{check-LIC6DYFD.js → check-BZ652RYH.js} +38 -37
  25. package/dist/{checkAudio-RHF5CWWX.js → checkAudio-5NVSRMGL.js} +8 -8
  26. package/dist/{checkBrowser-LUHIFDJZ.js → checkBrowser-YN454IBU.js} +32 -31
  27. package/dist/{chunk-WCSEEQ5R.js → chunk-22PWPQVX.js} +3 -3
  28. package/dist/{chunk-HKWKMXAC.js → chunk-3DIYMOES.js} +4 -4
  29. package/dist/{chunk-NLKHXPTZ.js → chunk-3SZ43GZG.js} +3 -3
  30. package/dist/{chunk-KMGF6GJU.js → chunk-44VR2CWT.js} +2 -2
  31. package/dist/{chunk-V4ZFL2E2.js → chunk-4HSE3FWO.js} +3 -3
  32. package/dist/{chunk-6LCIO2YY.js → chunk-56MGA4FM.js} +1 -1
  33. package/dist/{chunk-VHOETOGT.js → chunk-5AMGFTMU.js} +15 -15
  34. package/dist/{chunk-YJYEKNJG.js → chunk-5BIMSULZ.js} +1 -1
  35. package/dist/{chunk-YZH2IWEE.js → chunk-5HVQV4H4.js} +2 -2
  36. package/dist/{chunk-4TCEF2I7.js → chunk-5LLDGJGZ.js} +1 -1
  37. package/dist/{chunk-EPOBJVVG.js → chunk-5Q3TTLGB.js} +20 -20
  38. package/dist/{chunk-P74B5H73.js → chunk-5YYGPTBP.js} +2 -2
  39. package/dist/{chunk-J7PDBGQM.js → chunk-6VNDEMSP.js} +2 -2
  40. package/dist/{chunk-TNZ2EF2Y.js → chunk-6WHOI52Z.js} +7 -7
  41. package/dist/{chunk-5RLMHG3E.js → chunk-7XZS4PNM.js} +1 -1
  42. package/dist/{chunk-AOPNJEQC.js → chunk-AQJA7TAQ.js} +2 -2
  43. package/dist/{chunk-UTU3HSJS.js → chunk-AWL5M7BX.js} +3 -3
  44. package/dist/{chunk-EBU7T3WZ.js → chunk-B7H5RCKP.js} +2 -2
  45. package/dist/{chunk-PGZSYDLZ.js → chunk-BCMR6DE4.js} +1 -1
  46. package/dist/{chunk-NFUXYBOR.js → chunk-BJSUKOWW.js} +1 -1
  47. package/dist/{chunk-MVJ7AX6W.js → chunk-C4U6FRZH.js} +1 -1
  48. package/dist/{chunk-SP5GQGP2.js → chunk-CP4FVXKZ.js} +2 -2
  49. package/dist/{chunk-AW2M5TZW.js → chunk-CUORARXJ.js} +5 -5
  50. package/dist/{chunk-XKSHWUIF.js → chunk-CWOUPW5E.js} +3 -3
  51. package/dist/{chunk-S3S3IHCR.js → chunk-DFSAC4F4.js} +1 -1
  52. package/dist/chunk-ELWX6CAA.js +5049 -0
  53. package/dist/{chunk-V4Z37HFN.js → chunk-FK3KV32T.js} +2 -2
  54. package/dist/{chunk-G3WGKT3B.js → chunk-FKW5FP4C.js} +40 -10
  55. package/dist/{chunk-GQNV4DG6.js → chunk-G5DZZEQF.js} +1 -1
  56. package/dist/{chunk-RZK5ZGVX.js → chunk-G5S72X6Q.js} +4 -4
  57. package/dist/{chunk-SPPSVPY7.js → chunk-GFDXA5QO.js} +2 -2
  58. package/dist/{chunk-AMZ22QP7.js → chunk-GRHBVTBK.js} +2 -2
  59. package/dist/{chunk-MKZ34726.js → chunk-GSXHYLW4.js} +2 -2
  60. package/dist/{chunk-RYT22J4V.js → chunk-HM3PIREE.js} +1 -1
  61. package/dist/{chunk-NBF7SU6Q.js → chunk-IHWNDG5C.js} +3 -3
  62. package/dist/{chunk-76MHB2H6.js → chunk-IIMW46LC.js} +1 -1
  63. package/dist/{chunk-IYYZMZD2.js → chunk-J5LQW6VB.js} +1 -1
  64. package/dist/{chunk-74PW4UVC.js → chunk-JULHFF3J.js} +1 -1
  65. package/dist/{chunk-CK3DD2MC.js → chunk-K7JA32EI.js} +1 -1
  66. package/dist/{chunk-HLRYLZFX.js → chunk-KAHWO4XC.js} +2 -2
  67. package/dist/{chunk-PVRJKEU5.js → chunk-KAICKZZK.js} +1 -1
  68. package/dist/{chunk-2II5FCVK.js → chunk-KKUBMYCY.js} +10 -10
  69. package/dist/{chunk-B23DUMZ4.js → chunk-L6ZLOJBI.js} +1 -1
  70. package/dist/{chunk-FJQGA6H6.js → chunk-LHBQW4GJ.js} +4 -4
  71. package/dist/{chunk-FNC3JNO7.js → chunk-MMAPQWUP.js} +1 -1
  72. package/dist/{chunk-YAKPBJOU.js → chunk-MQOO5Z4U.js} +5 -5
  73. package/dist/{chunk-MSL2BS73.js → chunk-MX3UCKZR.js} +1 -1
  74. package/dist/{chunk-LRDS7MG5.js → chunk-O4Z4D4KA.js} +1 -1
  75. package/dist/{chunk-Q7FX7HOX.js → chunk-O7ZX5DHD.js} +1 -1
  76. package/dist/{chunk-F4Z2UPAA.js → chunk-OB6DVKHE.js} +1 -1
  77. package/dist/{chunk-NHJ5YUBZ.js → chunk-OBRKDUCE.js} +1 -1
  78. package/dist/{chunk-NTNS5EFN.js → chunk-OJSOH2LS.js} +2 -2
  79. package/dist/{chunk-RCYKUNVZ.js → chunk-OOEZ3FT3.js} +2 -2
  80. package/dist/{chunk-7DMIAJD7.js → chunk-OZNJ2QD5.js} +12 -12
  81. package/dist/{chunk-OSDNRYQJ.js → chunk-P7LZ2WSQ.js} +9 -73
  82. package/dist/{chunk-3JFV42QB.js → chunk-PGGMJW7B.js} +2 -2
  83. package/dist/{chunk-WJPEMXI3.js → chunk-Q77TZ76B.js} +7 -7
  84. package/dist/{chunk-VMLPDIR6.js → chunk-Q7EIUAYK.js} +1 -1
  85. package/dist/{chunk-7GJKUOPX.js → chunk-R5U5PFDJ.js} +2 -2
  86. package/dist/{chunk-BJYCLZBQ.js → chunk-RBECDLMQ.js} +1 -1
  87. package/dist/{chunk-DYKBB5HB.js → chunk-RCWPVC4M.js} +1 -1
  88. package/dist/{chunk-BUYUJ3EV.js → chunk-RHUYVGFO.js} +7 -7
  89. package/dist/{chunk-YNRQTFYH.js → chunk-RJA64ACI.js} +2 -2
  90. package/dist/{chunk-5IAFM6M5.js → chunk-RLQOYHXT.js} +10 -10
  91. package/dist/{chunk-UPVM6UDG.js → chunk-RLYYA6IR.js} +9 -4
  92. package/dist/{chunk-6FHIR4KD.js → chunk-RVI665CP.js} +1 -1
  93. package/dist/{chunk-2YZ6GA4E.js → chunk-SCWMPY3F.js} +1 -1
  94. package/dist/{chunk-IX3K55NA.js → chunk-SEVZKBMA.js} +2 -2
  95. package/dist/{chunk-5QGDLMU3.js → chunk-SQ63BIR2.js} +2 -2
  96. package/dist/{chunk-HCC7XLD7.js → chunk-T54RTTFW.js} +2 -2
  97. package/dist/{chunk-LDTJCZZ2.js → chunk-T7PFJH2B.js} +2 -2
  98. package/dist/{chunk-QBRBXVCE.js → chunk-TEOIEMTR.js} +1 -1
  99. package/dist/{chunk-J4Z7LQKU.js → chunk-URXVZMSI.js} +2 -2
  100. package/dist/{chunk-2QUQKYOK.js → chunk-VPPJIWVG.js} +50 -20
  101. package/dist/{chunk-XVDXYUQJ.js → chunk-W4OMDRZF.js} +1 -1
  102. package/dist/{chunk-NZUUKNNZ.js → chunk-WSPGX2SM.js} +1 -1
  103. package/dist/{chunk-VPQXRTEW.js → chunk-X3HQA3YE.js} +2 -2
  104. package/dist/chunk-XB77LMOP.js +82 -0
  105. package/dist/{chunk-ZGQZTSP2.js → chunk-XDIHAX2C.js} +1 -1
  106. package/dist/{chunk-LMCFILEY.js → chunk-Y6RU3H6C.js} +2 -2
  107. package/dist/{chunk-AGHSWES2.js → chunk-YJVJCNK4.js} +3 -3
  108. package/dist/{chunk-WGVWW6O4.js → chunk-ZOOY4LEZ.js} +2 -2
  109. package/dist/{chunk-2NK3K7JL.js → chunk-ZQYRP22G.js} +1 -1
  110. package/dist/{chunk-JVAD6LD7.js → chunk-ZSELEQI2.js} +363 -347
  111. package/dist/{clean-AGQEPUBC.js → clean-WYXHI2DO.js} +16 -16
  112. package/dist/cli.js +61 -61
  113. package/dist/{cloud-H5HJH6SD.js → cloud-X52P5AIE.js} +4 -4
  114. package/dist/{cloudrun-7BR5FKOC.js → cloudrun-36IR6ZKU.js} +4 -4
  115. package/dist/{compare-YWZ6O2FL.js → compare-R2KXOV2I.js} +29 -28
  116. package/dist/{compiler-ZSIKBZBR.js → compiler-FRWUFIQC.js} +2 -2
  117. package/dist/{component-MX2PJOTA.js → component-TIBQY7KQ.js} +3 -3
  118. package/dist/{compositions-PLT4OLGR.js → compositions-NQPORXIX.js} +9 -9
  119. package/dist/{curve-BJYCZUEY.js → curve-DTLRPBSB.js} +9 -9
  120. package/dist/{cuts-TWAVF7WI.js → cuts-73HKU767.js} +10 -10
  121. package/dist/{delete-3KCBCPBD.js → delete-HIHA436T.js} +2 -2
  122. package/dist/{deploy-KWTMJNBL.js → deploy-EB3FS2BT.js} +1 -1
  123. package/dist/{describeProject-HZLM3B55.js → describeProject-4A5UXQ25.js} +6 -6
  124. package/dist/{diff-XC6IU3IY.js → diff-JPADFUMV.js} +27 -27
  125. package/dist/{dist-QRXJMFI7.js → dist-FKEKIXVL.js} +2 -2
  126. package/dist/{dist-M5WQQ6WE.js → dist-KWXQYTRT.js} +11 -9
  127. package/dist/{doctor-VRUSZ6GH.js → doctor-3OO3CONL.js} +9 -9
  128. package/dist/{energy-VNAAJYAW.js → energy-XFPN5YIL.js} +10 -10
  129. package/dist/{events-6WYNARX7.js → events-6ONCYFB5.js} +2 -2
  130. package/dist/{events-WZJTLFCQ.js → events-G2MME5LQ.js} +5 -5
  131. package/dist/{events-MR72RS47.js → events-QWPZT3EQ.js} +11 -11
  132. package/dist/{extract-MKOCZIFN.js → extract-3EV72SMY.js} +10 -10
  133. package/dist/{face-NIV5ZSUX.js → face-JZS6P3AT.js} +10 -10
  134. package/dist/{feedback-A4F4G5JO.js → feedback-JVWBHRQG.js} +6 -6
  135. package/dist/{ffmpeg-OAKTUK5S.js → ffmpeg-XDAITYSU.js} +5 -5
  136. package/dist/{figma-4WZIDYAD.js → figma-KPHTDMCQ.js} +3 -3
  137. package/dist/fontLocalizeCli.js +8 -8
  138. package/dist/{frames-DAKLRIWG.js → frames-KRVRJTKC.js} +11 -11
  139. package/dist/{generate-NRPHH4NJ.js → generate-X2MYGFZX.js} +19 -19
  140. package/dist/{get-ISXQCK3G.js → get-QM24BI7N.js} +2 -2
  141. package/dist/{gpuPolicy-SLVPAQK2.js → gpuPolicy-EFJJLHVV.js} +5 -5
  142. package/dist/{grade-compare-TVMAAZVC.js → grade-compare-W5N5LH4X.js} +30 -29
  143. package/dist/{heifImagePrep-BOIWW7FW.js → heifImagePrep-X5QRRVTV.js} +6 -6
  144. package/dist/{help-ZOYDS3YW.js → help-LWS4YWMO.js} +1 -1
  145. package/dist/{history-CLGGMJ7Z.js → history-SG34LBJY.js} +9 -9
  146. package/dist/hyperframe.manifest.json +1 -1
  147. package/dist/hyperframe.runtime.iife.js +67 -67
  148. package/dist/hyperframes-player.global.js +3 -3
  149. package/dist/{info-ZTFII4N4.js → info-2FC43IYB.js} +11 -11
  150. package/dist/{init-RCDPQKFA.js → init-GKY5OKDV.js} +25 -25
  151. package/dist/{ink-2ATPIDWC.js → ink-7UK6YCUY.js} +10 -10
  152. package/dist/{inspect-GDMUC5F6.js → inspect-ZB2NTNQA.js} +30 -29
  153. package/dist/{installer-VPGNKCEU.js → installer-GALVXWPC.js} +4 -4
  154. package/dist/{keyframes-EPAX446T.js → keyframes-LSP4FLHT.js} +8 -8
  155. package/dist/{lambda-HG6Y6KOH.js → lambda-3F32DRYF.js} +9 -9
  156. package/dist/{layout-KXBKGHOS.js → layout-XPGS3QTX.js} +30 -29
  157. package/dist/{lint-O62OPAW7.js → lint-Q5SO57RK.js} +8 -8
  158. package/dist/{list-4HWWKMM6.js → list-FL5RYSFT.js} +2 -2
  159. package/dist/{localPage-66UVNGQR.js → localPage-IOHQETQT.js} +5 -5
  160. package/dist/{login-2H4XMPUT.js → login-D4TCWDDW.js} +4 -4
  161. package/dist/{look-W6PV445D.js → look-G2BT4E4A.js} +10 -10
  162. package/dist/{manager-ML4OLLSM.js → manager-F6WI43DQ.js} +6 -6
  163. package/dist/{measure-CWOXQCGH.js → measure-VXQQHYMZ.js} +11 -11
  164. package/dist/{media-treatment-SDGXF2PK.js → media-treatment-ZXA3JZSL.js} +11 -11
  165. package/dist/{media-use-NWNX24MD.js → media-use-63LZFAID.js} +3 -3
  166. package/dist/{models-J2P2DLSA.js → models-MWUVU4CY.js} +9 -9
  167. package/dist/{motionShot-VQ2KFPMR.js → motionShot-U4YDT7UV.js} +15 -14
  168. package/dist/{normalize-audio-MABOG5XR.js → normalize-audio-T5QJWU4P.js} +8 -8
  169. package/dist/{open-KWTFPDML.js → open-DRLXHOW2.js} +11 -11
  170. package/dist/{parakeetRunner-GP47AAVT.js → parakeetRunner-5OHEB3XZ.js} +10 -10
  171. package/dist/{pipeline-5HUQFOCY.js → pipeline-MAIRRYD6.js} +8 -8
  172. package/dist/{play-6MSC2ZCU.js → play-33A3EXX3.js} +19 -19
  173. package/dist/{preflight-NTJMXUS2.js → preflight-HSWMKB2Q.js} +6 -6
  174. package/dist/{present-X5T75QS4.js → present-HJIFEIDH.js} +15 -15
  175. package/dist/{preview-7NW7RUET.js → preview-J6Z6RKMN.js} +26 -17
  176. package/dist/{probe-XTZVXTQ2.js → probe-RA4VOGYY.js} +10 -10
  177. package/dist/{producer-ZZROH3WZ.js → producer-KWP2B4A5.js} +1 -1
  178. package/dist/{projectConfig-UHYPGWD5.js → projectConfig-3YIGHLNE.js} +6 -6
  179. package/dist/{publication-5KOANEHK.js → publication-QRUY2WJK.js} +2 -2
  180. package/dist/{publish-3BBHK2NK.js → publish-GV3I3GUL.js} +8 -8
  181. package/dist/{remove-background-W7WMLL5C.js → remove-background-UUITKXEQ.js} +9 -9
  182. package/dist/{render-5G6745C3.js → render-EC67XXR2.js} +38 -31
  183. package/dist/{render-ZGCH2FZJ.js → render-NHVDJRFD.js} +5 -5
  184. package/dist/{render-ZIBXBMNI.js → render-ZITQXHJP.js} +20 -20
  185. package/dist/{render-batch-ONWJJ627.js → render-batch-RII4F3PD.js} +5 -5
  186. package/dist/{resolver-ZWNLOG6O.js → resolver-R3FXDZKS.js} +4 -4
  187. package/dist/{reverse-5YTLWWDZ.js → reverse-2GJ5Y3WM.js} +1 -1
  188. package/dist/{screenshotCapture-ZZE3GMOF.js → screenshotCapture-TEQVEBWB.js} +7 -6
  189. package/dist/{sherpa-7ISRANWA.js → sherpa-YIJR47GX.js} +9 -9
  190. package/dist/{skills-YMSZHKK4.js → skills-DM3XC7RQ.js} +8 -8
  191. package/dist/{skillsUpdateCheck-YJYYN5CH.js → skillsUpdateCheck-ZHVFEOEN.js} +3 -3
  192. package/dist/{snapshot-4MZGXL4A.js → snapshot-72RQQXHW.js} +36 -35
  193. package/dist/{src-NIMSUB4P.js → src-C43KUEBY.js} +4 -4
  194. package/dist/{src-CHPZUZZ3.js → src-SPFGPZZQ.js} +7 -7
  195. package/dist/{start-FPEBVENS.js → start-FSYSYLI7.js} +17 -17
  196. package/dist/{staticProjectServer-XZNME57Y.js → staticProjectServer-RHBRRGPK.js} +17 -17
  197. package/dist/{status-7TRDJU47.js → status-TE74GP4Q.js} +10 -10
  198. package/dist/studio/assets/{codec-B1UWDNJp.js → codec-DXM4vA6G.js} +1 -1
  199. package/dist/studio/assets/{hyperframes-player-DQd2VPm2.js → hyperframes-player-D_016Ubp.js} +1 -1
  200. package/dist/studio/assets/{index-B7CtVv8e.js → index-Bw4stQMm.js} +1 -1
  201. package/dist/studio/assets/{index-gkyTLE7n.js → index-Ob53qo6K.js} +118 -118
  202. package/dist/studio/assets/{pausedVideoDecoder-Bfv1WSlz.js → pausedVideoDecoder-vbdgaMqL.js} +1 -1
  203. package/dist/studio/index.html +1 -1
  204. package/dist/{studio-api-JKJXAELI.js → studio-api-JAOHMYPG.js} +11 -9
  205. package/dist/{studioServer-UCRCZOLS.js → studioServer-RHCPM4CN.js} +52 -48
  206. package/dist/{sync-E72XNR2G.js → sync-UZJ7DOUA.js} +10 -10
  207. package/dist/{telemetry-L5D3U4IO.js → telemetry-TFOEA2PM.js} +5 -5
  208. package/dist/{templates-O7HEL7HC.js → templates-2AHM5TZ3.js} +10 -10
  209. package/dist/{timeline-QTODTYKQ.js → timeline-ZGV323MP.js} +17 -17
  210. package/dist/{tokens-D7JYFE2K.js → tokens-ERUFEWUA.js} +2 -2
  211. package/dist/{transcribe-D2WFL2RO.js → transcribe-6HLYS7NV.js} +21 -21
  212. package/dist/{transcribe-FGVGCTEU.js → transcribe-M5UZ2XFG.js} +8 -8
  213. package/dist/{update-SCMEUTRM.js → update-JDVI2XTM.js} +9 -9
  214. package/dist/{updateCheck-KNTQDXMN.js → updateCheck-GDTYPXKO.js} +2 -2
  215. package/dist/{upgrade-V2BP5PAQ.js → upgrade-SJKYBA4X.js} +3 -3
  216. package/dist/{urlDownloader-4RWM3UH2.js → urlDownloader-2QCNXXUG.js} +4 -4
  217. package/dist/{validate-W3E6QVJ6.js → validate-IUTHTA2N.js} +24 -23
  218. package/dist/{video-KC4AFMAY.js → video-4BJ7WHI2.js} +6 -6
  219. package/dist/{voices-7N6QU3C6.js → voices-UDSFBPZX.js} +17 -17
  220. package/dist/warmCheck.js +38 -37
  221. package/package.json +1 -1
  222. package/dist/chunk-F24B2PLD.js +0 -5049
@@ -27,7 +27,7 @@ import {
27
27
  hyperframesCacheDir
28
28
  } from "./chunk-JOQR4AP6.js";
29
29
 
30
- // ../studio-server/dist/chunk-7TLLALWT.js
30
+ // ../studio-server/dist/chunk-U6UA4KU3.js
31
31
  import { randomUUID as randomUUID7 } from "crypto";
32
32
  import { mkdir as mkdir2, readdir as readdir4, rm as rm3, rmdir, stat as stat2, writeFile as writeFile2 } from "fs/promises";
33
33
  import {
@@ -2193,10 +2193,11 @@ var Engine = class {
2193
2193
  );
2194
2194
  }
2195
2195
  adoptMediaInBackground(files, sweptAt) {
2196
- let copied = Promise.resolve();
2196
+ let turn = Promise.resolve();
2197
2197
  for (const file of files) {
2198
- copied = copied.then(() => this.adopt(file, sweptAt));
2199
- this.adopting.set(file.path, copied);
2198
+ const adoption = this.adopt(file, sweptAt, turn);
2199
+ turn = adoption.firstTry;
2200
+ this.adopting.set(file.path, adoption);
2200
2201
  }
2201
2202
  this.saveAdopting();
2202
2203
  }
@@ -2206,29 +2207,56 @@ var Engine = class {
2206
2207
  mkdirSync5(this.home, { recursive: true });
2207
2208
  replaceFileAtomically(file, JSON.stringify([...this.adopting.keys()]), 420);
2208
2209
  }
2209
- async adopt(file, sweptAt, tries = 0) {
2210
+ /** A file still changing stays named until a whole copy of it lands; the next open retries it. */
2211
+ adopt(file, sweptAt, turn) {
2212
+ let asked = [];
2213
+ let wake = () => {
2214
+ };
2215
+ const tryOnce = async () => {
2216
+ const served = asked;
2217
+ asked = [];
2218
+ const tried = await this.tryAdopting(file, sweptAt);
2219
+ for (const answer of served) answer();
2220
+ return tried === "over";
2221
+ };
2222
+ const firstTry = turn.then(tryOnce);
2223
+ const ended = firstTry.then(async (done) => {
2224
+ for (let tries = 1; !done && !this.closing; tries += 1) {
2225
+ const ms = Math.min(SETTLE_MS * 2 ** tries, ADOPT_RETRY_AT_MOST_MS);
2226
+ if (!asked.length)
2227
+ await new Promise((retry) => {
2228
+ const timer = setTimeout(retry, ms);
2229
+ timer.unref?.();
2230
+ wake = () => {
2231
+ clearTimeout(timer);
2232
+ retry();
2233
+ };
2234
+ });
2235
+ done = this.closing !== void 0 || await tryOnce();
2236
+ }
2237
+ });
2238
+ const retryNow = () => {
2239
+ const next = new Promise((answer) => asked.push(answer));
2240
+ wake();
2241
+ return Promise.race([ended, next]);
2242
+ };
2243
+ return { firstTry, ended, retryNow };
2244
+ }
2245
+ async tryAdopting(file, sweptAt) {
2210
2246
  try {
2211
- if (this.whereFolder() !== "here") return;
2247
+ if (this.whereFolder() !== "here") return "over";
2212
2248
  const copied = await this.storeIfPresent(file.path);
2213
- await this.queue(async () => {
2214
- if (await this.recordAdopted(file, sweptAt, copied) === "changing")
2215
- return this.adoptLater(file, sweptAt, tries + 1);
2249
+ return await this.queue(async () => {
2250
+ if (await this.recordAdopted(file, sweptAt, copied) === "changing") return "changing";
2216
2251
  this.adopting.delete(file.path);
2217
2252
  this.saveAdopting();
2253
+ return "over";
2218
2254
  });
2219
2255
  } catch (error) {
2220
2256
  if (!(error instanceof HistoryClosedError)) this.options.onError?.(error);
2257
+ return "over";
2221
2258
  }
2222
2259
  }
2223
- /** A file still changing stays named until a whole copy of it lands; the next open retries it. */
2224
- adoptLater(file, sweptAt, tries) {
2225
- if (this.closing) return;
2226
- const timer = setTimeout(
2227
- () => void this.adopt(file, sweptAt, tries),
2228
- Math.min(SETTLE_MS * 2 ** tries, ADOPT_RETRY_AT_MOST_MS)
2229
- );
2230
- timer.unref?.();
2231
- }
2232
2260
  async recordAdopted(file, sweptAt, first) {
2233
2261
  if (typeof first === "string" || this.whereFolder() !== "here") return first;
2234
2262
  const kept = this.blobs.has(first.hash) || isUncopied(file.path, file.size);
@@ -2822,7 +2850,7 @@ var Engine = class {
2822
2850
  options.exclusive === true
2823
2851
  ),
2824
2852
  claim: async (who, label, paths, options = {}) => {
2825
- await Promise.all(paths.map((path) => this.adopting.get(this.logPath(path))));
2853
+ await Promise.all(paths.map((path) => this.adopting.get(this.logPath(path))?.retryNow()));
2826
2854
  return this.queue(() => this.claimNow(who, label, paths, options));
2827
2855
  },
2828
2856
  noteChange: (path) => {
@@ -2888,7 +2916,9 @@ var Engine = class {
2888
2916
  flush: () => this.queue(() => this.settleAll()),
2889
2917
  replacedAtPath: () => this.whereFolder() === "replaced",
2890
2918
  close: () => this.closing ??= (async () => {
2891
- await Promise.all(this.adopting.values());
2919
+ const owed = [...this.adopting.values()];
2920
+ for (const adoption of owed) void adoption.retryNow();
2921
+ await Promise.all(owed.map((adoption) => adoption.ended));
2892
2922
  if (this.notedTimer) clearTimeout(this.notedTimer);
2893
2923
  this.stopHearing?.();
2894
2924
  const settled = this.queue(() => this.settleAll());
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JJ47LVJ7.js";
16
16
  import {
17
17
  findFFmpeg
18
- } from "./chunk-Q7FX7HOX.js";
18
+ } from "./chunk-O7ZX5DHD.js";
19
19
  import {
20
20
  stoppableExecFile
21
21
  } from "./chunk-HU2SPFNG.js";
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  sherpaParakeetInstalled,
9
9
  sherpaUnsupportedReason
10
- } from "./chunk-HLRYLZFX.js";
10
+ } from "./chunk-KAHWO4XC.js";
11
11
  import {
12
12
  findParakeet
13
13
  } from "./chunk-JZIEZCQM.js";
@@ -27,7 +27,7 @@ import {
27
27
  rewritePinnedHyperframesText,
28
28
  rewriteProjectPinnedScripts,
29
29
  withMeta
30
- } from "./chunk-UPVM6UDG.js";
30
+ } from "./chunk-RLYYA6IR.js";
31
31
  import {
32
32
  setCommandExitCode
33
33
  } from "./chunk-66W5IWLO.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./chunk-CPHQTXP5.js";
37
37
  import {
38
38
  VERSION
39
- } from "./chunk-SP5GQGP2.js";
39
+ } from "./chunk-CP4FVXKZ.js";
40
40
 
41
41
  // src/commands/upgrade.ts
42
42
  import { execFileSync } from "child_process";
@@ -0,0 +1,82 @@
1
+ import { createRequire as __hf_createRequire } from "node:module";
2
+ import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
+ import { dirname as __hf_dirname } from "node:path";
4
+ var require = __hf_createRequire(import.meta.url);
5
+ var __filename = __hf_fileURLToPath(import.meta.url);
6
+ var __dirname = __hf_dirname(__filename);
7
+ import {
8
+ GSAP_CDN_VERSION,
9
+ gsapCdnDist
10
+ } from "./chunk-HM3PIREE.js";
11
+
12
+ // src/server/readBundleFile.ts
13
+ import { openSync, fstatSync, closeSync, statSync, readFileSync, constants } from "fs";
14
+ function readBundleFile(filePath) {
15
+ let fd;
16
+ try {
17
+ fd = openSync(filePath, constants.O_RDONLY | constants.O_NONBLOCK);
18
+ } catch (error) {
19
+ if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ENOTDIR"))
20
+ return null;
21
+ if (!statSync(filePath, { throwIfNoEntry: false })?.isFile()) return null;
22
+ throw error;
23
+ }
24
+ try {
25
+ if (!fstatSync(fd).isFile()) return null;
26
+ return readFileSync(fd);
27
+ } finally {
28
+ closeSync(fd);
29
+ }
30
+ }
31
+
32
+ // src/server/gsapVendor.ts
33
+ import { existsSync } from "fs";
34
+ import { createRequire } from "module";
35
+ import { dirname, join, resolve } from "path";
36
+ import { fileURLToPath } from "url";
37
+ var __dirname = dirname(fileURLToPath(import.meta.url));
38
+ var GSAP_VENDOR_FILES = /* @__PURE__ */ new Set([
39
+ "gsap.min.js",
40
+ "CustomEase.min.js",
41
+ "MotionPathPlugin.min.js"
42
+ ]);
43
+ function installedGsapDist() {
44
+ try {
45
+ const coreRequire = createRequire(resolve(__dirname, "..", "..", "..", "core", "package.json"));
46
+ return join(dirname(coreRequire.resolve("gsap/package.json")), "dist");
47
+ } catch {
48
+ return null;
49
+ }
50
+ }
51
+ function resolveGsapVendorDir() {
52
+ const vendored = join("vendor", "npm", `gsap@${GSAP_CDN_VERSION}`, "dist");
53
+ const candidates = [
54
+ resolve(__dirname, vendored),
55
+ // Running from source: the built CLI next door, then core's installed gsap.
56
+ resolve(__dirname, "..", "..", "dist", vendored),
57
+ installedGsapDist()
58
+ ];
59
+ for (const dir of candidates) {
60
+ if (!dir) continue;
61
+ if (!existsSync(join(dir, "gsap.min.js"))) continue;
62
+ const manifest = readBundleFile(join(dir, "..", "package.json"));
63
+ if (manifest && JSON.parse(manifest.toString("utf-8")).version !== GSAP_CDN_VERSION) continue;
64
+ return dir;
65
+ }
66
+ return null;
67
+ }
68
+ var CDN_DIST = gsapCdnDist();
69
+ function bundledGsapFor(url) {
70
+ if (!url.startsWith(CDN_DIST)) return null;
71
+ const file = url.slice(CDN_DIST.length);
72
+ const dir = GSAP_VENDOR_FILES.has(file) ? resolveGsapVendorDir() : null;
73
+ const body = dir ? readBundleFile(join(dir, file)) : null;
74
+ return body ? { body, contentType: "text/javascript; charset=utf-8" } : null;
75
+ }
76
+
77
+ export {
78
+ readBundleFile,
79
+ GSAP_VENDOR_FILES,
80
+ resolveGsapVendorDir,
81
+ bundledGsapFor
82
+ };
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  isTransientBrowserError
9
- } from "./chunk-7GJKUOPX.js";
9
+ } from "./chunk-R5U5PFDJ.js";
10
10
 
11
11
  // src/utils/screenshotOnceMore.ts
12
12
  async function screenshotOnceMore(shoot) {
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  probeAudioTrack
9
- } from "./chunk-NFUXYBOR.js";
9
+ } from "./chunk-BJSUKOWW.js";
10
10
  import {
11
11
  resolveWithinProject
12
12
  } from "./chunk-ALVXFXUG.js";
@@ -14,7 +14,7 @@ import {
14
14
  MAX_AUDIO_GAIN_DB,
15
15
  formatAudioGain,
16
16
  isAudibleVideoElement
17
- } from "./chunk-F24B2PLD.js";
17
+ } from "./chunk-ELWX6CAA.js";
18
18
  import {
19
19
  findFfBinary
20
20
  } from "./chunk-HYRPH6LL.js";
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
6
6
  var __dirname = __hf_dirname(__filename);
7
7
  import {
8
8
  readCompositionFps
9
- } from "./chunk-LRDS7MG5.js";
9
+ } from "./chunk-O4Z4D4KA.js";
10
10
  import {
11
11
  errorBox
12
12
  } from "./chunk-LIWK3MFR.js";
13
13
  import {
14
14
  DEFAULT_CONFIG,
15
15
  resolvePageNavigationTimeout
16
- } from "./chunk-7GJKUOPX.js";
16
+ } from "./chunk-R5U5PFDJ.js";
17
17
  import {
18
18
  parseFps
19
- } from "./chunk-RYT22J4V.js";
19
+ } from "./chunk-HM3PIREE.js";
20
20
  import {
21
21
  failUsage
22
22
  } from "./chunk-66W5IWLO.js";
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-ZLDYDO64.js";
11
11
  import {
12
12
  readProjectConfig
13
- } from "./chunk-IYYZMZD2.js";
13
+ } from "./chunk-J5LQW6VB.js";
14
14
  import {
15
15
  normalizeSkillSlug
16
16
  } from "./chunk-HVW7ABXD.js";
17
17
  import {
18
18
  trackBillingCheckoutReturnRefused
19
- } from "./chunk-NTNS5EFN.js";
19
+ } from "./chunk-OJSOH2LS.js";
20
20
 
21
21
  // src/heygen/plan.ts
22
22
  import { randomUUID } from "crypto";
@@ -11,7 +11,7 @@ import {
11
11
  PRORES_PROFILE_NAMES,
12
12
  appendRateCapArgs,
13
13
  isProresProfile
14
- } from "./chunk-7GJKUOPX.js";
14
+ } from "./chunk-R5U5PFDJ.js";
15
15
  import {
16
16
  failUsage
17
17
  } from "./chunk-66W5IWLO.js";