hyperframes 0.9.53 → 0.9.54
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.
- package/dist/{add-TZFSLV5M.js → add-OVHVUHQR.js} +22 -22
- package/dist/{agentPromptGenerator-OPQZUVYC.js → agentPromptGenerator-L2B3HMHF.js} +11 -11
- package/dist/{animatedGifPrep-DEK4XZYT.js → animatedGifPrep-YMJH33FX.js} +12 -12
- package/dist/api.js +49 -48
- package/dist/{appHistory-DK2XI4EZ.js → appHistory-T3ZLA7QN.js} +4 -3
- package/dist/{asset-3BIBG7LB.js → asset-ORCN4EVH.js} +2 -2
- package/dist/{assetCataloger-R4NWWO4P.js → assetCataloger-X23VB66T.js} +12 -12
- package/dist/{audio-N3DHNT3F.js → audio-NHNXBUI2.js} +92 -70
- package/dist/{auth-CBF2DVRT.js → auth-DQDDXQFC.js} +5 -5
- package/dist/{autoUpdate-UJB4MI4Z.js → autoUpdate-LF7BJN34.js} +5 -5
- package/dist/{avatars-JVATTQYO.js → avatars-KFUMWRVX.js} +18 -18
- package/dist/{backgroundChecks-R7SFELIM.js → backgroundChecks-Y6RHADW6.js} +6 -6
- package/dist/backgroundChecksWorker.js +6 -6
- package/dist/{batchRender-D4VO4OCF.js → batchRender-CMG4SVBX.js} +4 -4
- package/dist/{beats-UCYZ7MKK.js → beats-JXZBK7JI.js} +14 -14
- package/dist/{benchmark-3NMJO5DK.js → benchmark-CLU6JUGY.js} +21 -20
- package/dist/{billing-76JTGOHN.js → billing-5GMYFDMC.js} +20 -20
- package/dist/{browser-5XXA4O25.js → browser-S4R6LZMF.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-S7DIF43W.js → bundleWithLocalizedFonts-SFUFSBEU.js} +1 -1
- package/dist/{capture-EV4G3SCY.js → capture-A3FLQIDI.js} +29 -29
- package/dist/{capture-JHMVFAUS.js → capture-NL7V23HG.js} +4 -4
- package/dist/{captureCompositionFrame-3M3BFHZH.js → captureCompositionFrame-R7GYVNTF.js} +17 -17
- package/dist/{captureFile-R5JZ7WRA.js → captureFile-LXMDM5TD.js} +3 -3
- package/dist/{catalog-WVZJ6XYV.js → catalog-42I7W7AU.js} +22 -22
- package/dist/{catch-up-FQ5KCZIH.js → catch-up-TFSQZQZD.js} +14 -13
- package/dist/{check-VTUVZWCF.js → check-CXRQZBLD.js} +52 -52
- package/dist/{checkAudio-FYRBXK22.js → checkAudio-AJUH6RU6.js} +17 -17
- package/dist/{checkBrowser-EJQEWSIH.js → checkBrowser-4BLSYI25.js} +45 -45
- package/dist/{chunk-HY25JZQ2.js → chunk-26RTKW2U.js} +2 -2
- package/dist/{chunk-KEZ7QIJN.js → chunk-2PASB3PC.js} +4 -4
- package/dist/{chunk-ES273AD6.js → chunk-32DAUKF5.js} +4 -4
- package/dist/{chunk-2ODGEXNH.js → chunk-3IHRXHJQ.js} +2 -2
- package/dist/{chunk-CBV4W4R3.js → chunk-3IUBSGD2.js} +2 -2
- package/dist/{chunk-IH56MGAB.js → chunk-3NPZZT2K.js} +9 -9
- package/dist/{chunk-UAOL5PRX.js → chunk-3NXY6O4X.js} +1 -1
- package/dist/{chunk-FU2R6OVR.js → chunk-4IUOWNDS.js} +1 -1
- package/dist/{chunk-FZNH7SCB.js → chunk-4NG5GSTO.js} +1 -1
- package/dist/{chunk-IB5DXMAH.js → chunk-4Q3Q4NFK.js} +4 -4
- package/dist/{chunk-ZV3RIHRN.js → chunk-4WK4O5FI.js} +5 -5
- package/dist/{chunk-N2YHCAFL.js → chunk-4ZFNNWUX.js} +10 -10
- package/dist/{chunk-OLVZAALP.js → chunk-5HJZGP54.js} +2 -2
- package/dist/{chunk-CTHG3WLB.js → chunk-5XLTJMCN.js} +4 -4
- package/dist/{chunk-GZG2Z2O2.js → chunk-63ESYLBY.js} +2 -2
- package/dist/{chunk-FLPVKGBS.js → chunk-6SRBTOGD.js} +3 -3
- package/dist/{chunk-TTP6JGIL.js → chunk-73UFPVUC.js} +2 -2
- package/dist/{chunk-KLIVZ5VG.js → chunk-75TCOXNT.js} +1 -1
- package/dist/{chunk-ZI3MSFSN.js → chunk-77U3646W.js} +2 -2
- package/dist/{chunk-NVGB7L2M.js → chunk-7RGWVZOS.js} +3 -3
- package/dist/{chunk-CYBOQOKO.js → chunk-7RI3U46M.js} +1 -1
- package/dist/{chunk-G7GTO4YP.js → chunk-7WRLK2K4.js} +2 -2
- package/dist/{chunk-LKWN2F7O.js → chunk-AROERRUJ.js} +2 -2
- package/dist/{chunk-HJ2YUPBF.js → chunk-ATKA5KHE.js} +3 -3
- package/dist/{chunk-NCPSUM5A.js → chunk-AU4ZBCR3.js} +1 -1
- package/dist/{chunk-HZ2CD6RL.js → chunk-AYESPEPQ.js} +1 -1
- package/dist/{chunk-4FOHO7GC.js → chunk-B5HSHXE2.js} +2 -2
- package/dist/{chunk-43ILJV43.js → chunk-B6AK5P2D.js} +8 -8
- package/dist/{chunk-PUT3NPVE.js → chunk-BBDWXUO3.js} +4 -4
- package/dist/{chunk-E3LZAM64.js → chunk-BDWLBCTG.js} +4 -4
- package/dist/{chunk-5SMHNPMW.js → chunk-BNONW4QT.js} +2 -2
- package/dist/{chunk-2YSQU74C.js → chunk-C7LNWZ7G.js} +5 -5
- package/dist/{chunk-GDWPLGHY.js → chunk-CAYQATCT.js} +1 -1
- package/dist/{chunk-ZPPEZJVD.js → chunk-CBCB6GPL.js} +17 -11
- package/dist/{chunk-U3LWQGCD.js → chunk-CIYNUD7Q.js} +1 -1
- package/dist/{chunk-3HQ4C4HI.js → chunk-CNZOKODL.js} +3 -3
- package/dist/{chunk-YF34MK67.js → chunk-CWXJZB44.js} +14 -14
- package/dist/{chunk-QXYR7LOO.js → chunk-D4EGZYDN.js} +8 -8
- package/dist/{chunk-KKO4PRB5.js → chunk-DOLVT6CH.js} +1 -1
- package/dist/{chunk-Q5P7YJXO.js → chunk-DVTRMGYG.js} +2 -2
- package/dist/{chunk-ZT7RB42S.js → chunk-DWDCE4PO.js} +16 -9
- package/dist/{chunk-I7SJBRVT.js → chunk-DXVK3NMV.js} +3 -3
- package/dist/{chunk-HD5RVDL6.js → chunk-E2DHBP6C.js} +1 -1
- package/dist/{chunk-IU5DC4HP.js → chunk-E7T5SMDK.js} +44 -15
- package/dist/{chunk-JNM4WG7C.js → chunk-E7X54BVP.js} +1 -1
- package/dist/{chunk-FQMP2KFS.js → chunk-EA5W2DWO.js} +2 -2
- package/dist/{chunk-4TJGOQER.js → chunk-EB4IWBBC.js} +3 -3
- package/dist/{chunk-346RTE74.js → chunk-EKANCN4D.js} +3 -3
- package/dist/{chunk-BCJJ64JG.js → chunk-EKCGL4MV.js} +1 -1
- package/dist/{chunk-2ST2FAVH.js → chunk-ELA3IV4P.js} +2 -2
- package/dist/{chunk-SZGQU7EB.js → chunk-ER22SVLT.js} +1 -1
- package/dist/{chunk-I2UMQAOQ.js → chunk-EXXIFMUX.js} +1 -1
- package/dist/{chunk-W6WVHIU7.js → chunk-EZQJFCWA.js} +2 -2
- package/dist/{chunk-562X3KBJ.js → chunk-F64VFCVC.js} +2 -2
- package/dist/{chunk-YT3LRZA3.js → chunk-F7B2YDPM.js} +7 -5
- package/dist/{chunk-SH6PAYUD.js → chunk-FICKJQU2.js} +5 -5
- package/dist/{chunk-6CO6L3YP.js → chunk-FUPEHRNT.js} +2 -2
- package/dist/{chunk-XBPLO6CY.js → chunk-GA6QR6LN.js} +286 -94
- package/dist/{chunk-BH5P5QZN.js → chunk-GEUM7NDY.js} +4 -4
- package/dist/{chunk-JCFOSR7Z.js → chunk-GIOLHGCC.js} +4 -4
- package/dist/{chunk-44OCDK5C.js → chunk-H2GJDFF6.js} +4 -4
- package/dist/{chunk-BS36NRXV.js → chunk-H5KHQ6KS.js} +1 -1
- package/dist/{chunk-TWI33YJP.js → chunk-H7DKHNBF.js} +1 -1
- package/dist/{chunk-G5FNJQER.js → chunk-IB6FFEDH.js} +26 -26
- package/dist/{chunk-NFRKPLTJ.js → chunk-IR2GEREV.js} +1 -1
- package/dist/{chunk-PCH55NAO.js → chunk-JAAIW4JR.js} +1 -1
- package/dist/{chunk-I7NTTMET.js → chunk-JRSBBFUU.js} +91 -73
- package/dist/{chunk-ISVRNYE5.js → chunk-JSYLOPVJ.js} +1 -1
- package/dist/{chunk-DE3JRSGT.js → chunk-KCF6Q54R.js} +1 -1
- package/dist/{chunk-ZK6BC3JM.js → chunk-KTLRJZFK.js} +6 -6
- package/dist/{chunk-XWK2RSD5.js → chunk-KWTTELUY.js} +2 -2
- package/dist/{chunk-GVUG5VDL.js → chunk-KYUCSRZU.js} +1 -1
- package/dist/{chunk-ZFCK46UR.js → chunk-LKWWY6WN.js} +1 -1
- package/dist/{chunk-XZZF6YBS.js → chunk-LRXARA5O.js} +1 -1
- package/dist/{chunk-5A75E4OT.js → chunk-MEGSQW2I.js} +1 -1
- package/dist/{chunk-UMRNTF3C.js → chunk-MPU2CRFV.js} +2 -2
- package/dist/{chunk-PYOCEDTU.js → chunk-N7M2SNAF.js} +1 -1
- package/dist/{chunk-365OGBQ2.js → chunk-NCLBKHCX.js} +2 -2
- package/dist/{chunk-4Y5IDZOJ.js → chunk-NKAW4RVE.js} +4 -4
- package/dist/{chunk-4KRID4YV.js → chunk-NKUUNSII.js} +1 -1
- package/dist/{chunk-35PKJPEI.js → chunk-NRGNEP3R.js} +1 -1
- package/dist/{chunk-T3QK3VKM.js → chunk-O6E5HSVF.js} +2 -2
- package/dist/{chunk-RCTY7VNK.js → chunk-O7TIBLSJ.js} +15 -101
- package/dist/{chunk-KPFJGQ6M.js → chunk-OIO7YMBP.js} +28 -30
- package/dist/{chunk-OUPWEFUM.js → chunk-ON3CGL3V.js} +1 -1
- package/dist/{chunk-5JOYZGHQ.js → chunk-OTWFSHYH.js} +3 -3
- package/dist/{chunk-7FU5JCAK.js → chunk-OWS4ZWEY.js} +1 -1
- package/dist/{chunk-N36NHUGP.js → chunk-P4YIRU76.js} +1 -1
- package/dist/{chunk-H5K3FS4W.js → chunk-PAA5FUUL.js} +3 -3
- package/dist/{chunk-3FL7MKQH.js → chunk-PLOVBMJF.js} +32 -27
- package/dist/chunk-PXLGDX2S.js +104 -0
- package/dist/{chunk-RH6UD7XI.js → chunk-Q3ESTCZH.js} +11 -11
- package/dist/{chunk-G55B5LP6.js → chunk-Q42L7V5T.js} +1 -1
- package/dist/{chunk-FRM4EM52.js → chunk-QGKRHG4Q.js} +15 -15
- package/dist/{chunk-SXZMJ7QJ.js → chunk-QKYGGUOQ.js} +4 -4
- package/dist/{chunk-WPG76RJZ.js → chunk-QONV77VI.js} +1 -1
- package/dist/{chunk-B3WRUPRS.js → chunk-RBBWUYMG.js} +4 -4
- package/dist/{chunk-Y6CLFCYX.js → chunk-RXSPJW77.js} +4 -4
- package/dist/{chunk-XM7LOJBP.js → chunk-RZJ7BHXB.js} +1 -1
- package/dist/{chunk-7RHN6N5F.js → chunk-SDFGDNWV.js} +1 -1
- package/dist/{chunk-FH6KC5EF.js → chunk-SOMX57XG.js} +3 -3
- package/dist/{chunk-QBDT7Z5D.js → chunk-SUG2AA33.js} +10 -10
- package/dist/{chunk-RUQ2VOD3.js → chunk-SULPT5X6.js} +52 -17
- package/dist/{chunk-7ELQHSEE.js → chunk-SVIA7POL.js} +1 -1
- package/dist/{chunk-FSBV6Z7E.js → chunk-SWAG64KW.js} +23 -7
- package/dist/{chunk-VCHJV7ZT.js → chunk-TM7D3NOR.js} +30 -12
- package/dist/{chunk-KCPIENND.js → chunk-TMV76KPG.js} +1 -1
- package/dist/{chunk-6F4ZVQUX.js → chunk-TRAPS5WB.js} +1 -1
- package/dist/{chunk-XJTFSMZK.js → chunk-TW4DB2NK.js} +2 -2
- package/dist/{chunk-5CRHNVJW.js → chunk-UZJ7Y7WU.js} +3 -3
- package/dist/{chunk-SRPPNXGX.js → chunk-VT2K6I4A.js} +3 -3
- package/dist/{chunk-IXUIJ7OL.js → chunk-WAAXVZIT.js} +3 -3
- package/dist/{chunk-4XETQ5LC.js → chunk-WPD7JH6F.js} +2 -2
- package/dist/{chunk-FM5JRUWL.js → chunk-WPSPW7SI.js} +6 -6
- package/dist/{chunk-TQKX3TA3.js → chunk-X6TDH2OM.js} +1 -1
- package/dist/chunk-XGEJPKRY.js +5069 -0
- package/dist/{chunk-47IXIEBQ.js → chunk-Y6UCMYJZ.js} +1 -1
- package/dist/{chunk-7PBJR7WI.js → chunk-YBLBI3O2.js} +1 -1
- package/dist/{chunk-KDDRDNEE.js → chunk-YNF3SH26.js} +1 -1
- package/dist/{chunk-6RPLXBZJ.js → chunk-YU5LSWA2.js} +1 -1
- package/dist/{chunk-BQRJZDSM.js → chunk-YUDWGRNZ.js} +14 -14
- package/dist/{chunk-4KS3GL5I.js → chunk-YVCPUVHV.js} +1 -1
- package/dist/{clean-KEVJGNES.js → clean-JK4VQMTH.js} +28 -28
- package/dist/cli.js +67 -67
- package/dist/{cloud-OR62JJDE.js → cloud-JZ2WKHQG.js} +4 -4
- package/dist/{cloud-EBJZO6ZY.js → cloud-LU4FVT33.js} +7 -7
- package/dist/{cloudrun-HPYJTM5N.js → cloudrun-QBXSGBGX.js} +6 -6
- package/dist/{compare-353XZU2M.js → compare-YE5BTDCG.js} +43 -43
- package/dist/{compiler-KPDUYBA5.js → compiler-QEA5UQRG.js} +5 -5
- package/dist/{component-5DZDY74T.js → component-MGT5ZJ4M.js} +3 -3
- package/dist/{compositions-VBICZHMF.js → compositions-7OF6FDCH.js} +19 -19
- package/dist/{contactSheet-O3FOOHOX.js → contactSheet-CCHQAZLA.js} +4 -4
- package/dist/{curve-KDRSQWHP.js → curve-JQLVUDXR.js} +16 -16
- package/dist/{cuts-ABAQKTF4.js → cuts-MCJP6LMJ.js} +17 -17
- package/dist/{delete-BXURHIL4.js → delete-PUYEW3RJ.js} +12 -12
- package/dist/{deploy-4TBYCBNI.js → deploy-M4XGMJM5.js} +7 -7
- package/dist/{describeProject-K62TKQLI.js → describeProject-P7CBZ6NW.js} +11 -11
- package/dist/{destroy-FAJUHCW4.js → destroy-6XJWSH2A.js} +6 -6
- package/dist/{deterministicFonts-XZIQ4PNP.js → deterministicFonts-OXGNMVJE.js} +3 -3
- package/dist/{diff-4O7ZCBM5.js → diff-BATSO64W.js} +44 -44
- package/dist/{dist-F4T6FB7P.js → dist-G6W7GKGP.js} +2 -2
- package/dist/{dist-D67752QW.js → dist-PC3EMMET.js} +15 -15
- package/dist/{dist-AAGJ6SXG.js → dist-T62DJJZX.js} +3 -3
- package/dist/{doctor-IEUIWBC5.js → doctor-ONTGSPYF.js} +20 -20
- package/dist/{energy-BJQTVGBO.js → energy-FNZICGW2.js} +17 -17
- package/dist/{events-M37XFHGJ.js → events-6TNBAVVY.js} +19 -19
- package/dist/{events-D3NBN44E.js → events-ENJZNXWG.js} +6 -6
- package/dist/{events-4UBI5WNS.js → events-LBHSU7C2.js} +10 -10
- package/dist/{execute-JCLM27KS.js → execute-RXTEBACV.js} +33 -33
- package/dist/{extract-AYWY5PIN.js → extract-F2CWTMLX.js} +17 -17
- package/dist/{face-TEHC6WYN.js → face-7HL4CP32.js} +18 -18
- package/dist/{feedback-JZDCB5N4.js → feedback-4NDDMECH.js} +22 -21
- package/dist/{ffmpeg-JMPVMPDT.js → ffmpeg-3LL345SO.js} +10 -10
- package/dist/{figma-6MYT2VRV.js → figma-474E54NB.js} +3 -3
- package/dist/fontLocalizeCli.js +17 -17
- package/dist/{frames-NLFBDILH.js → frames-EZWGM7QQ.js} +19 -19
- package/dist/{generate-YLPRVWHZ.js → generate-I75DZWDU.js} +32 -32
- package/dist/{get-APCR6ZJE.js → get-BHU6CBWO.js} +12 -12
- package/dist/{gpuPolicy-YXBUP4AF.js → gpuPolicy-6J2STCV2.js} +10 -10
- package/dist/{grade-compare-VLWGCI4O.js → grade-compare-D4TBMCBG.js} +42 -42
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-UC2AV5LU.js → heifImagePrep-VLYGRKSS.js} +13 -13
- package/dist/{help-YSBTU7WC.js → help-2CUXKYJ6.js} +1 -1
- package/dist/{history-EPIGMZUN.js → history-LVAVYTAN.js} +17 -17
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-6SF6E2T3.js → info-SUZOEH6L.js} +21 -21
- package/dist/{init-BXS47X5W.js → init-XI5QN3A6.js} +35 -35
- package/dist/{ink-BWKWSIKA.js → ink-OVDZOCQJ.js} +17 -17
- package/dist/{inspect-NUE2R2OF.js → inspect-INBCGPBD.js} +43 -43
- package/dist/{installer-T57TKMM6.js → installer-JNQKFCTN.js} +7 -7
- package/dist/{keyframes-WCRUYIOQ.js → keyframes-LYZJK4RH.js} +16 -16
- package/dist/{lambda-L2YNMAL5.js → lambda-DUDXZV6X.js} +15 -15
- package/dist/{layout-FXTXMDAL.js → layout-JKUJW6A4.js} +43 -43
- package/dist/{lint-IKRYTERJ.js → lint-NKDC7IJ2.js} +18 -18
- package/dist/{lintProject-2NDIJLD2.js → lintProject-5Z34NNS4.js} +2 -2
- package/dist/{list-BX5SCZEC.js → list-5HUMDJYL.js} +12 -12
- package/dist/{localPage-HY3VMEYU.js → localPage-RRBRFR4Y.js} +11 -11
- package/dist/{login-5IDR2M6C.js → login-C3SHKITR.js} +5 -5
- package/dist/{logout-MTWA4BBI.js → logout-CCATTNTL.js} +1 -1
- package/dist/{look-7R4YJNX7.js → look-3TX2U4BE.js} +17 -17
- package/dist/{manager-DBMIO5YG.js → manager-45VB2G5F.js} +4 -4
- package/dist/{manager-PHCAZFHT.js → manager-MOR255LW.js} +11 -11
- package/dist/{measure-7CJ4RKSY.js → measure-ZAKBHNGY.js} +11 -11
- package/dist/{media-treatment-HEW3RMDV.js → media-treatment-QJ35DSED.js} +19 -19
- package/dist/{media-use-S5IJPK5G.js → media-use-YBKHJVXL.js} +7 -6
- package/dist/{models-4UJY22Z3.js → models-OQHKG7B4.js} +15 -15
- package/dist/{motionShot-FLZQ75TM.js → motionShot-TWQTREFH.js} +21 -21
- package/dist/{normalize-audio-AN3KKSSK.js → normalize-audio-PXHPUOMD.js} +14 -14
- package/dist/{open-AHPOLDBY.js → open-TVGO5KVF.js} +22 -21
- package/dist/{parakeetRunner-4URDK3H4.js → parakeetRunner-MVJMZSIG.js} +18 -18
- package/dist/{pipeline-O5UWLQDZ.js → pipeline-4S5UE4O4.js} +13 -13
- package/dist/{plan-SUV7WBBJ.js → plan-AMBZUX55.js} +25 -25
- package/dist/{play-LHMMHUUN.js → play-KEAESNBM.js} +32 -32
- package/dist/{preflight-FLSEP55G.js → preflight-K3CM3W55.js} +13 -13
- package/dist/{present-VEDXFFPZ.js → present-42WDBGBA.js} +27 -27
- package/dist/{preview-FXNPXOJL.js → preview-KSHBU7ZR.js} +35 -34
- package/dist/{probe-P6LUMX34.js → probe-TMSXGCL4.js} +17 -17
- package/dist/{producer-SWV2GP4I.js → producer-KXRSJPJF.js} +1 -1
- package/dist/{projectConfig-EPOIXMHL.js → projectConfig-LOHNVOJG.js} +10 -10
- package/dist/{publication-SIGMWEK3.js → publication-LYPU7NTZ.js} +5 -5
- package/dist/{publish-EVCYPK6H.js → publish-PYZXDQJW.js} +27 -27
- package/dist/{refresh-PIFEWEAL.js → refresh-X5ZLKQO5.js} +1 -1
- package/dist/{remove-background-AFXDE5YR.js → remove-background-HVX52VOF.js} +14 -14
- package/dist/{render-DFUMSKVQ.js → render-57ZYQ53S.js} +53 -52
- package/dist/{render-MENZ6KS5.js → render-5KMA5P2U.js} +42 -41
- package/dist/{render-BCKSDBLK.js → render-CM4MCNVA.js} +6 -6
- package/dist/{render-batch-DPT67NDL.js → render-batch-URBBGOVC.js} +6 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-EE3255VM.js → resolver-UPUCU4XT.js} +7 -7
- package/dist/{reverse-TA73U7V6.js → reverse-UYS7KVE2.js} +1 -1
- package/dist/{run-Y2ISHW5P.js → run-4LNEWQLG.js} +9 -6
- package/dist/{screenshotCapture-CEEBQ3FU.js → screenshotCapture-IF5AO5XM.js} +13 -13
- package/dist/{service-6P6QVFNF.js → service-OEOC34BD.js} +17 -17
- package/dist/{share-Q25X6AIX.js → share-NS7CMVSU.js} +22 -22
- package/dist/{sherpa-PPSJ23WI.js → sherpa-QBTXL6JA.js} +17 -17
- package/dist/sherpaWorker.js +3 -3
- package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
- package/dist/skills/media-use/audio/references/requirements.md +7 -7
- package/dist/skills/media-use/audio/references/tts.md +6 -5
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +18 -72
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +51 -67
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-PVJJ3R2V.js → skills-S5U2MQAI.js} +14 -14
- package/dist/{skillsUpdateCheck-L4TGSUN6.js → skillsUpdateCheck-UZ7CZ6VC.js} +6 -6
- package/dist/{snapshot-AIAJRR5C.js → snapshot-YWFWQTAV.js} +70 -66
- package/dist/{src-UEH4H4UY.js → src-N2SMYJ44.js} +15 -15
- package/dist/{src-O5P56HIK.js → src-UQ3K3UW2.js} +17 -9
- package/dist/{start-HY5WGCDN.js → start-4IA5GG5D.js} +30 -30
- package/dist/{staticProjectServer-WNKXSUBZ.js → staticProjectServer-5JP25RRX.js} +26 -26
- package/dist/{status-AFDHSUGG.js → status-ITCKXFBF.js} +25 -25
- package/dist/studio/assets/{hyperframes-player-z7r-N5fm.js → hyperframes-player-Oju91F6x.js} +1 -1
- package/dist/studio/assets/{index-Dpo7Q_9-.js → index-B0VEzzD2.js} +154 -154
- package/dist/studio/assets/{index-2QPHxCxy.js → index-XEm_N45R.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-BarDYEAf.js → pausedVideoDecoder-p6zibxVM.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-P72FA5XB.js → studio-api-GENM2XVL.js} +15 -15
- package/dist/{studioServer-RICH4NMX.js → studioServer-SWR5Q3PD.js} +74 -72
- package/dist/{sync-J66DIXED.js → sync-CK6TTCXO.js} +17 -17
- package/dist/{synthesize-UKCQR7WW.js → synthesize-EXNEBJSY.js} +5 -5
- package/dist/{system-I5KGZTUG.js → system-JBPJHNTG.js} +3 -3
- package/dist/{telemetry-KOOKPGMR.js → telemetry-T4HQ6AKZ.js} +10 -10
- package/dist/{templates-6DRGOTNH.js → templates-7O7NOIUC.js} +21 -21
- package/dist/{timeline-UZX7366C.js → timeline-P2PLN53O.js} +26 -26
- package/dist/{tokens-AU3BUE6U.js → tokens-SPQN27VG.js} +2 -2
- package/dist/{transcribe-OUTSVFRZ.js → transcribe-SCZG6IM4.js} +14 -14
- package/dist/{transcribe-CW5HK2OA.js → transcribe-YJQ3DDDI.js} +36 -36
- package/dist/{tts-X3MAUZ7E.js → tts-5OAB5XX6.js} +1 -1
- package/dist/{update-KRYJ6ACJ.js → update-JYPZW35A.js} +16 -16
- package/dist/{updateCheck-WQVGQLCG.js → updateCheck-5M2JJTH3.js} +5 -5
- package/dist/{upgrade-S54RPT3R.js → upgrade-BP62FM6V.js} +8 -8
- package/dist/{urlDownloader-MASRYSQX.js → urlDownloader-WOZQCE6P.js} +9 -9
- package/dist/{validate-4QVUHCYG.js → validate-NEC5QLH7.js} +33 -33
- package/dist/{video-AEGOEGSP.js → video-XEEBISSO.js} +12 -12
- package/dist/{voices-T4U7EU5X.js → voices-GCHA27JA.js} +29 -29
- package/dist/warmCheck.js +52 -52
- package/dist/warmCheckClient.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-3FHPYC6X.js +0 -5069
- package/dist/privateProjectFile-NN7MTTEQ.js +0 -50
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
removeScratch,
|
|
34
34
|
renameWithRetry,
|
|
35
35
|
renameWithRetryAsync
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KCF6Q54R.js";
|
|
37
37
|
import {
|
|
38
38
|
DISTRIBUTED_FPS,
|
|
39
39
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
resolveAuthoredTimingWindow,
|
|
64
64
|
toFps,
|
|
65
65
|
validateVariables
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-4IUOWNDS.js";
|
|
67
67
|
import {
|
|
68
68
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
69
69
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -107,11 +107,12 @@ import {
|
|
|
107
107
|
sourceTimeAt,
|
|
108
108
|
timeAtSourceTime,
|
|
109
109
|
volumeSegmentSampleCount
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-XGEJPKRY.js";
|
|
111
111
|
import {
|
|
112
112
|
isPrivateFileUnder,
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
isSafePath,
|
|
114
|
+
isStudioPrivatePath
|
|
115
|
+
} from "./chunk-KWTTELUY.js";
|
|
115
116
|
import {
|
|
116
117
|
browserPathFromEnv,
|
|
117
118
|
buildChromeLaunchEnv,
|
|
@@ -123,7 +124,7 @@ import {
|
|
|
123
124
|
} from "./chunk-LEIR7IDJ.js";
|
|
124
125
|
import {
|
|
125
126
|
resolveReferencedStart
|
|
126
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-TRAPS5WB.js";
|
|
127
128
|
import {
|
|
128
129
|
isWithinProjectRoot,
|
|
129
130
|
resolveProjectRelativeSrc
|
|
@@ -136,7 +137,7 @@ import {
|
|
|
136
137
|
hostCpuCount,
|
|
137
138
|
isLowMemorySystem,
|
|
138
139
|
usableCpuCount
|
|
139
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-CIYNUD7Q.js";
|
|
140
141
|
import {
|
|
141
142
|
isPathInside
|
|
142
143
|
} from "./chunk-IH2C53YV.js";
|
|
@@ -164,7 +165,7 @@ import {
|
|
|
164
165
|
FFPROBE_PATH_ENV,
|
|
165
166
|
findFfBinary,
|
|
166
167
|
findTrustedExecutable
|
|
167
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-E7T5SMDK.js";
|
|
168
169
|
|
|
169
170
|
// ../engine/src/services/referenceBackground.ts
|
|
170
171
|
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
@@ -5503,6 +5504,9 @@ var CA_BUNDLES = [
|
|
|
5503
5504
|
];
|
|
5504
5505
|
var RECONNECT_ARGS = ["-rw_timeout", "30000000", "-reconnect", "1", "-reconnect_delay_max", "2"];
|
|
5505
5506
|
var SELF_CONTAINED_FORMATS = "mov,matroska,mxf,avi,mpeg,mpegts,mpegvideo,flv,asf,ogg,wav,mp3,aac,flac,aiff,gif,image2,png_pipe,jpeg_pipe,webp_pipe,bmp_pipe,tiff_pipe";
|
|
5507
|
+
function selfContainedFormatArgs() {
|
|
5508
|
+
return resolveRestrictPageNetwork() ? ["-format_whitelist", SELF_CONTAINED_FORMATS] : [];
|
|
5509
|
+
}
|
|
5506
5510
|
function urlInputArgs(input, {
|
|
5507
5511
|
tool = "ffmpeg",
|
|
5508
5512
|
caBundles = CA_BUNDLES
|
|
@@ -5515,7 +5519,7 @@ function urlInputArgs(input, {
|
|
|
5515
5519
|
);
|
|
5516
5520
|
}
|
|
5517
5521
|
const networkRetry = tool === "ffmpeg" ? ["-reconnect_on_network_error", "1"] : [];
|
|
5518
|
-
const renderServiceLimits = resolveRestrictPageNetwork() ? ["-protocol_whitelist", "https,tls,tcp",
|
|
5522
|
+
const renderServiceLimits = resolveRestrictPageNetwork() ? ["-protocol_whitelist", "https,tls,tcp", ...selfContainedFormatArgs()] : [];
|
|
5519
5523
|
return [
|
|
5520
5524
|
"-tls_verify",
|
|
5521
5525
|
"1",
|
|
@@ -12415,7 +12419,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12415
12419
|
}
|
|
12416
12420
|
|
|
12417
12421
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12418
|
-
import { copyFileSync as copyFileSync2, existsSync as
|
|
12422
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync11, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12419
12423
|
import { basename as basename2, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
|
|
12420
12424
|
|
|
12421
12425
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
@@ -12448,6 +12452,13 @@ function createConcurrencyLimit(limit) {
|
|
|
12448
12452
|
};
|
|
12449
12453
|
}
|
|
12450
12454
|
|
|
12455
|
+
// ../engine/src/utils/assetRoots.ts
|
|
12456
|
+
import { existsSync as existsSync8 } from "fs";
|
|
12457
|
+
function isInsideAssetRoots(path, roots) {
|
|
12458
|
+
if (roots.some((root) => isSafePath(root, path))) return true;
|
|
12459
|
+
return !existsSync8(path) && roots.some((root) => isWithinProjectRoot(root, path));
|
|
12460
|
+
}
|
|
12461
|
+
|
|
12451
12462
|
// ../engine/src/services/mediaTimelineWindow.ts
|
|
12452
12463
|
function isKnownInactiveTimelineWindow(element, resolvedStart) {
|
|
12453
12464
|
const duration = parseStrictFiniteTimingNumber(element.getAttribute("data-duration"));
|
|
@@ -12509,29 +12520,6 @@ function inputAlphaOpaqueWarning(src) {
|
|
|
12509
12520
|
`;
|
|
12510
12521
|
}
|
|
12511
12522
|
|
|
12512
|
-
// ../engine/src/utils/urlDownloader.ts
|
|
12513
|
-
import {
|
|
12514
|
-
closeSync as closeSync2,
|
|
12515
|
-
createReadStream as createReadStream2,
|
|
12516
|
-
createWriteStream,
|
|
12517
|
-
existsSync as existsSync8,
|
|
12518
|
-
fsyncSync,
|
|
12519
|
-
linkSync,
|
|
12520
|
-
mkdirSync as mkdirSync4,
|
|
12521
|
-
lstatSync,
|
|
12522
|
-
openSync as openSync2,
|
|
12523
|
-
readdirSync as readdirSync4,
|
|
12524
|
-
rmdirSync,
|
|
12525
|
-
rmSync as rmSync3,
|
|
12526
|
-
statSync as statSync5,
|
|
12527
|
-
unlinkSync
|
|
12528
|
-
} from "fs";
|
|
12529
|
-
import { createHash as createHash2, randomUUID as randomUUID2 } from "crypto";
|
|
12530
|
-
import dns from "dns";
|
|
12531
|
-
import { dirname as dirname6, extname as extname2, join as join11 } from "path";
|
|
12532
|
-
import { Readable, Transform } from "stream";
|
|
12533
|
-
import { pipeline } from "stream/promises";
|
|
12534
|
-
|
|
12535
12523
|
// ../engine/src/utils/notMediaPayload.ts
|
|
12536
12524
|
import { createHash } from "crypto";
|
|
12537
12525
|
import { constants } from "fs";
|
|
@@ -12605,13 +12593,51 @@ async function readHead(filePath) {
|
|
|
12605
12593
|
const fh = await openRegular(filePath);
|
|
12606
12594
|
if (!fh) return null;
|
|
12607
12595
|
try {
|
|
12608
|
-
|
|
12596
|
+
const { size } = await fh.stat();
|
|
12597
|
+
return { head: await readAt(fh, SNIFF_BYTES, 0), fileSize: size };
|
|
12609
12598
|
} finally {
|
|
12610
12599
|
await fh.close().catch(() => {
|
|
12611
12600
|
});
|
|
12612
12601
|
}
|
|
12613
12602
|
}
|
|
12614
|
-
|
|
12603
|
+
var FIRST_BOX_TYPES = /* @__PURE__ */ new Set([
|
|
12604
|
+
"ftyp",
|
|
12605
|
+
"styp",
|
|
12606
|
+
"free",
|
|
12607
|
+
"skip",
|
|
12608
|
+
"wide",
|
|
12609
|
+
"uuid",
|
|
12610
|
+
"pdin",
|
|
12611
|
+
"moov",
|
|
12612
|
+
"mdat",
|
|
12613
|
+
"moof"
|
|
12614
|
+
]);
|
|
12615
|
+
var BOX_TYPE = /^[\x21-\x7e\xa9][\x21-\x7e]{3}$/;
|
|
12616
|
+
function boxLength(head, offset) {
|
|
12617
|
+
const size = head.readUInt32BE(offset);
|
|
12618
|
+
if (size !== 1) return size >= 8 ? size : -1;
|
|
12619
|
+
if (offset + 16 > head.length) return -1;
|
|
12620
|
+
const largeSize = Number(head.readBigUInt64BE(offset + 8));
|
|
12621
|
+
return largeSize >= 16 ? largeSize : -1;
|
|
12622
|
+
}
|
|
12623
|
+
function boxEnd(head, offset, fileSize) {
|
|
12624
|
+
if (offset + 8 > head.length || !BOX_TYPE.test(head.toString("latin1", offset + 4, offset + 8))) {
|
|
12625
|
+
return -1;
|
|
12626
|
+
}
|
|
12627
|
+
if (head.readUInt32BE(offset) === 0) return fileSize;
|
|
12628
|
+
const length = boxLength(head, offset);
|
|
12629
|
+
return length >= 0 && offset + length <= fileSize ? offset + length : -1;
|
|
12630
|
+
}
|
|
12631
|
+
function opensWithMediaBox(head, fileSize) {
|
|
12632
|
+
if (!FIRST_BOX_TYPES.has(head.toString("latin1", 4, 8))) return false;
|
|
12633
|
+
let offset = boxEnd(head, 0, fileSize);
|
|
12634
|
+
while (offset >= 0 && offset < fileSize && offset + 16 <= head.length) {
|
|
12635
|
+
offset = boxEnd(head, offset, fileSize);
|
|
12636
|
+
}
|
|
12637
|
+
return offset >= 0;
|
|
12638
|
+
}
|
|
12639
|
+
function startsWithDocumentByte(head, fileSize) {
|
|
12640
|
+
if (opensWithMediaBox(head, fileSize)) return false;
|
|
12615
12641
|
for (let index = byteOrderMarkLength(head); index < head.length; index++) {
|
|
12616
12642
|
const byte = head[index];
|
|
12617
12643
|
if (byte === void 0) break;
|
|
@@ -12622,8 +12648,8 @@ function startsWithDocumentByte(head) {
|
|
|
12622
12648
|
}
|
|
12623
12649
|
async function isNotMediaPayload(filePath) {
|
|
12624
12650
|
try {
|
|
12625
|
-
const
|
|
12626
|
-
return !
|
|
12651
|
+
const sniffed = await readHead(filePath);
|
|
12652
|
+
return !sniffed || startsWithDocumentByte(sniffed.head, sniffed.fileSize) || await playlistLeavesItsFolder(filePath);
|
|
12627
12653
|
} catch {
|
|
12628
12654
|
return false;
|
|
12629
12655
|
}
|
|
@@ -12786,6 +12812,28 @@ async function entryLeaves(entry, base, walk, depth) {
|
|
|
12786
12812
|
}
|
|
12787
12813
|
|
|
12788
12814
|
// ../engine/src/utils/urlDownloader.ts
|
|
12815
|
+
import {
|
|
12816
|
+
closeSync as closeSync2,
|
|
12817
|
+
createReadStream as createReadStream2,
|
|
12818
|
+
createWriteStream,
|
|
12819
|
+
existsSync as existsSync9,
|
|
12820
|
+
fsyncSync,
|
|
12821
|
+
linkSync,
|
|
12822
|
+
mkdirSync as mkdirSync4,
|
|
12823
|
+
lstatSync,
|
|
12824
|
+
openSync as openSync2,
|
|
12825
|
+
readdirSync as readdirSync4,
|
|
12826
|
+
rmdirSync,
|
|
12827
|
+
rmSync as rmSync3,
|
|
12828
|
+
statSync as statSync5,
|
|
12829
|
+
statfsSync,
|
|
12830
|
+
unlinkSync
|
|
12831
|
+
} from "fs";
|
|
12832
|
+
import { createHash as createHash2, randomUUID as randomUUID2 } from "crypto";
|
|
12833
|
+
import dns from "dns";
|
|
12834
|
+
import { dirname as dirname6, extname as extname2, join as join11 } from "path";
|
|
12835
|
+
import { Readable, Transform } from "stream";
|
|
12836
|
+
import { pipeline } from "stream/promises";
|
|
12789
12837
|
var inFlightDownloads = /* @__PURE__ */ new Map();
|
|
12790
12838
|
var signalScopes = /* @__PURE__ */ new WeakMap();
|
|
12791
12839
|
var nextSignalScope = 1;
|
|
@@ -13343,7 +13391,10 @@ function checksumMismatchError(source, status, telemetry) {
|
|
|
13343
13391
|
true
|
|
13344
13392
|
);
|
|
13345
13393
|
}
|
|
13346
|
-
var DEFAULT_MAX_DOWNLOAD_BYTES =
|
|
13394
|
+
var DEFAULT_MAX_DOWNLOAD_BYTES = 8 * 1024 ** 3;
|
|
13395
|
+
var DEFAULT_MAX_DOWNLOAD_MS = 30 * 60 * 1e3;
|
|
13396
|
+
var DEFAULT_DOWNLOAD_MIN_FREE_BYTES = 512 * 1024 ** 2;
|
|
13397
|
+
var FREE_SPACE_CHECK_INTERVAL_BYTES = 4 * 1024 ** 2;
|
|
13347
13398
|
var DEFAULT_MIN_DOWNLOAD_BYTES_PER_SEC = 32 * 1024;
|
|
13348
13399
|
var THROUGHPUT_WINDOW_SECONDS = 60;
|
|
13349
13400
|
function integerFromEnv(name, fallback, minimum) {
|
|
@@ -13354,6 +13405,65 @@ function integerFromEnv(name, fallback, minimum) {
|
|
|
13354
13405
|
}
|
|
13355
13406
|
var maxDownloadBytes = () => integerFromEnv("HYPERFRAMES_MAX_DOWNLOAD_BYTES", DEFAULT_MAX_DOWNLOAD_BYTES, 1);
|
|
13356
13407
|
var minDownloadBytesPerSec = () => integerFromEnv("HYPERFRAMES_MIN_DOWNLOAD_BYTES_PER_SEC", DEFAULT_MIN_DOWNLOAD_BYTES_PER_SEC, 0);
|
|
13408
|
+
var maxDownloadMs = () => integerFromEnv("HYPERFRAMES_MAX_DOWNLOAD_MS", DEFAULT_MAX_DOWNLOAD_MS, 1);
|
|
13409
|
+
var downloadMinFreeBytes = () => integerFromEnv("HYPERFRAMES_DOWNLOAD_MIN_FREE_BYTES", DEFAULT_DOWNLOAD_MIN_FREE_BYTES, 0);
|
|
13410
|
+
function freeDiskBytes(path) {
|
|
13411
|
+
try {
|
|
13412
|
+
const stat = statfsSync(path);
|
|
13413
|
+
return stat.bavail * stat.bsize;
|
|
13414
|
+
} catch {
|
|
13415
|
+
return null;
|
|
13416
|
+
}
|
|
13417
|
+
}
|
|
13418
|
+
var unreceivedBytesByDevice = /* @__PURE__ */ new Map();
|
|
13419
|
+
var DiskHeadroomGuard = class {
|
|
13420
|
+
constructor(dir, minFreeBytes) {
|
|
13421
|
+
this.dir = dir;
|
|
13422
|
+
this.minFreeBytes = minFreeBytes;
|
|
13423
|
+
}
|
|
13424
|
+
dir;
|
|
13425
|
+
minFreeBytes;
|
|
13426
|
+
unreceivedBytes = 0;
|
|
13427
|
+
bytesSinceCheck = 0;
|
|
13428
|
+
device = 0;
|
|
13429
|
+
claim(declaredBytes) {
|
|
13430
|
+
if (this.minFreeBytes === 0) return true;
|
|
13431
|
+
this.device = statSync5(this.dir).dev;
|
|
13432
|
+
this.adjustUnreceived(declaredBytes);
|
|
13433
|
+
return this.keepsMinimum();
|
|
13434
|
+
}
|
|
13435
|
+
receive(byteCount) {
|
|
13436
|
+
if (this.minFreeBytes === 0) return true;
|
|
13437
|
+
this.adjustUnreceived(-Math.min(byteCount, this.unreceivedBytes));
|
|
13438
|
+
this.bytesSinceCheck += byteCount;
|
|
13439
|
+
if (this.bytesSinceCheck < FREE_SPACE_CHECK_INTERVAL_BYTES) return true;
|
|
13440
|
+
this.bytesSinceCheck = 0;
|
|
13441
|
+
return this.keepsMinimum();
|
|
13442
|
+
}
|
|
13443
|
+
release() {
|
|
13444
|
+
this.adjustUnreceived(-this.unreceivedBytes);
|
|
13445
|
+
}
|
|
13446
|
+
keepsMinimum() {
|
|
13447
|
+
const free = freeDiskBytes(this.dir);
|
|
13448
|
+
if (free === null) return true;
|
|
13449
|
+
return free - (unreceivedBytesByDevice.get(this.device) ?? 0) >= this.minFreeBytes;
|
|
13450
|
+
}
|
|
13451
|
+
adjustUnreceived(delta) {
|
|
13452
|
+
this.unreceivedBytes += delta;
|
|
13453
|
+
const total = (unreceivedBytesByDevice.get(this.device) ?? 0) + delta;
|
|
13454
|
+
if (total > 0) unreceivedBytesByDevice.set(this.device, total);
|
|
13455
|
+
else unreceivedBytesByDevice.delete(this.device);
|
|
13456
|
+
}
|
|
13457
|
+
};
|
|
13458
|
+
function lowDiskSpaceError(minFreeBytes, status, telemetry) {
|
|
13459
|
+
return new UrlDownloadError(
|
|
13460
|
+
"filesystem",
|
|
13461
|
+
false,
|
|
13462
|
+
`Download stopped: it would leave less than ${minFreeBytes} bytes free on the download volume`,
|
|
13463
|
+
status,
|
|
13464
|
+
telemetry
|
|
13465
|
+
);
|
|
13466
|
+
}
|
|
13357
13467
|
function isCompressedEncoding(contentEncoding) {
|
|
13358
13468
|
const encoding = contentEncoding?.trim().toLowerCase();
|
|
13359
13469
|
return Boolean(encoding) && encoding !== "identity";
|
|
@@ -13396,7 +13506,7 @@ var ThroughputWindow = class {
|
|
|
13396
13506
|
this.currentSecond = Math.max(second, this.currentSecond);
|
|
13397
13507
|
}
|
|
13398
13508
|
};
|
|
13399
|
-
async function fetchToPartial(url, partialPath, controller, options, onBodyBytes) {
|
|
13509
|
+
async function fetchToPartial(url, partialPath, controller, options, onBodyBytes, headroom) {
|
|
13400
13510
|
const { response, finalUrl } = await fetchWithValidatedRedirects(url, controller);
|
|
13401
13511
|
const finalIdentity = safeDownloadUrlIdentity(finalUrl);
|
|
13402
13512
|
const rangeDisposition = classifyRangeDisposition(response);
|
|
@@ -13473,6 +13583,13 @@ async function fetchToPartial(url, partialPath, controller, options, onBodyBytes
|
|
|
13473
13583
|
expectedBytes: declaredLength
|
|
13474
13584
|
});
|
|
13475
13585
|
}
|
|
13586
|
+
if (!headroom.claim(declaredLength ?? 0)) {
|
|
13587
|
+
await cancelResponseBody(response);
|
|
13588
|
+
throw lowDiskSpaceError(headroom.minFreeBytes, response.status, {
|
|
13589
|
+
...responseTelemetry,
|
|
13590
|
+
expectedBytes: declaredLength
|
|
13591
|
+
});
|
|
13592
|
+
}
|
|
13476
13593
|
const expectedBytes = declaredLength;
|
|
13477
13594
|
let receivedBytes = 0;
|
|
13478
13595
|
const sha256 = createHash2("sha256");
|
|
@@ -13494,6 +13611,16 @@ async function fetchToPartial(url, partialPath, controller, options, onBodyBytes
|
|
|
13494
13611
|
);
|
|
13495
13612
|
return;
|
|
13496
13613
|
}
|
|
13614
|
+
if (!headroom.receive(bytes.length)) {
|
|
13615
|
+
callback(
|
|
13616
|
+
lowDiskSpaceError(headroom.minFreeBytes, response.status, {
|
|
13617
|
+
...responseTelemetry,
|
|
13618
|
+
expectedBytes,
|
|
13619
|
+
receivedBytes
|
|
13620
|
+
})
|
|
13621
|
+
);
|
|
13622
|
+
return;
|
|
13623
|
+
}
|
|
13497
13624
|
sha256.update(bytes);
|
|
13498
13625
|
md5.update(bytes);
|
|
13499
13626
|
if (prefixBytes < 1024) {
|
|
@@ -13643,6 +13770,12 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13643
13770
|
}, timeoutMs);
|
|
13644
13771
|
};
|
|
13645
13772
|
armTimeout();
|
|
13773
|
+
const deadlineMs = maxDownloadMs();
|
|
13774
|
+
let pastDeadline = false;
|
|
13775
|
+
const deadlineId = setTimeout(() => {
|
|
13776
|
+
pastDeadline = true;
|
|
13777
|
+
controller.abort();
|
|
13778
|
+
}, deadlineMs);
|
|
13646
13779
|
let sizedBodyStarted = false;
|
|
13647
13780
|
const extendTimeout = () => {
|
|
13648
13781
|
sizedBodyStarted = true;
|
|
@@ -13670,11 +13803,20 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13670
13803
|
throughput.record(byteCount, Date.now());
|
|
13671
13804
|
};
|
|
13672
13805
|
const identity = safeDownloadUrlIdentity(url);
|
|
13806
|
+
const headroom = new DiskHeadroomGuard(attemptDir, downloadMinFreeBytes());
|
|
13673
13807
|
try {
|
|
13674
13808
|
if (callerAborted) {
|
|
13675
13809
|
throw new UrlDownloadError("cancelled", false, "Download cancelled");
|
|
13676
13810
|
}
|
|
13677
|
-
const integrity = await fetchToPartial(
|
|
13811
|
+
const integrity = await fetchToPartial(
|
|
13812
|
+
url,
|
|
13813
|
+
partialPath,
|
|
13814
|
+
controller,
|
|
13815
|
+
options,
|
|
13816
|
+
onBodyBytes,
|
|
13817
|
+
headroom
|
|
13818
|
+
);
|
|
13819
|
+
clearTimeout(deadlineId);
|
|
13678
13820
|
clearTimeout(floorCheckId);
|
|
13679
13821
|
if (await playlistLeavesItsFolder(partialPath, localPath)) {
|
|
13680
13822
|
throw new UrlDownloadError(
|
|
@@ -13728,48 +13870,30 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13728
13870
|
});
|
|
13729
13871
|
return localPath;
|
|
13730
13872
|
} catch (error) {
|
|
13873
|
+
let classified;
|
|
13731
13874
|
if (callerAborted) {
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
}
|
|
13742
|
-
if (timedOut) {
|
|
13743
|
-
const classified2 = new UrlDownloadError(
|
|
13875
|
+
classified = new UrlDownloadError("cancelled", false, "Download cancelled");
|
|
13876
|
+
} else if (pastDeadline) {
|
|
13877
|
+
classified = new UrlDownloadError(
|
|
13878
|
+
"timeout",
|
|
13879
|
+
false,
|
|
13880
|
+
`Download exceeded the ${deadlineMs / 1e3}s time limit`
|
|
13881
|
+
);
|
|
13882
|
+
} else if (timedOut) {
|
|
13883
|
+
classified = new UrlDownloadError(
|
|
13744
13884
|
"timeout",
|
|
13745
13885
|
true,
|
|
13746
13886
|
sizedBodyStarted ? `Download stalled: no data for ${timeoutMs / 1e3}s` : `Download timeout after ${timeoutMs / 1e3}s`
|
|
13747
13887
|
);
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
initialHost: identity.host,
|
|
13751
|
-
attempt,
|
|
13752
|
-
outcome: "attempt_failed",
|
|
13753
|
-
failureKind: classified2.kind
|
|
13754
|
-
});
|
|
13755
|
-
throw classified2;
|
|
13756
|
-
}
|
|
13757
|
-
if (tooSlow) {
|
|
13758
|
-
const classified2 = new UrlDownloadError(
|
|
13888
|
+
} else if (tooSlow) {
|
|
13889
|
+
classified = new UrlDownloadError(
|
|
13759
13890
|
"timeout",
|
|
13760
13891
|
true,
|
|
13761
13892
|
`Download too slow: under ${minBytesPerSec} bytes/s over the last ${THROUGHPUT_WINDOW_SECONDS}s`
|
|
13762
13893
|
);
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
initialHost: identity.host,
|
|
13766
|
-
attempt,
|
|
13767
|
-
outcome: "attempt_failed",
|
|
13768
|
-
failureKind: classified2.kind
|
|
13769
|
-
});
|
|
13770
|
-
throw classified2;
|
|
13894
|
+
} else {
|
|
13895
|
+
classified = classifyDownloadFailure(error);
|
|
13771
13896
|
}
|
|
13772
|
-
const classified = classifyDownloadFailure(error);
|
|
13773
13897
|
emitDownloadTelemetry(options, {
|
|
13774
13898
|
urlFingerprint: identity.urlFingerprint,
|
|
13775
13899
|
initialHost: identity.host,
|
|
@@ -13781,7 +13905,9 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13781
13905
|
throw classified;
|
|
13782
13906
|
} finally {
|
|
13783
13907
|
clearTimeout(timeoutId);
|
|
13908
|
+
clearTimeout(deadlineId);
|
|
13784
13909
|
clearTimeout(floorCheckId);
|
|
13910
|
+
headroom.release();
|
|
13785
13911
|
signal?.removeEventListener("abort", onCallerAbort);
|
|
13786
13912
|
controller.abort();
|
|
13787
13913
|
rmSync3(attemptDir, { recursive: true, force: true });
|
|
@@ -13914,7 +14040,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
|
|
|
13914
14040
|
if (inFlight) {
|
|
13915
14041
|
return inFlight;
|
|
13916
14042
|
}
|
|
13917
|
-
if (!
|
|
14043
|
+
if (!existsSync9(destDir)) {
|
|
13918
14044
|
mkdirSync4(destDir, { recursive: true });
|
|
13919
14045
|
}
|
|
13920
14046
|
const filename = getFilenameFromUrl(url, validationScope);
|
|
@@ -14018,7 +14144,7 @@ import { createHash as createHash4, randomUUID as randomUUID3 } from "crypto";
|
|
|
14018
14144
|
import {
|
|
14019
14145
|
chmodSync,
|
|
14020
14146
|
createReadStream as createReadStream3,
|
|
14021
|
-
existsSync as
|
|
14147
|
+
existsSync as existsSync10,
|
|
14022
14148
|
lstatSync as lstatSync2,
|
|
14023
14149
|
mkdirSync as mkdirSync5,
|
|
14024
14150
|
readdirSync as readdirSync5,
|
|
@@ -14087,7 +14213,7 @@ function hasFrameFiles(dir) {
|
|
|
14087
14213
|
function lookupCacheEntry(rootDir, input) {
|
|
14088
14214
|
const keyHash = computeCacheKey(input);
|
|
14089
14215
|
const dir = join12(rootDir, cacheEntryDirName(keyHash));
|
|
14090
|
-
const complete =
|
|
14216
|
+
const complete = existsSync10(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
14091
14217
|
return { entry: { dir, keyHash }, hit: complete };
|
|
14092
14218
|
}
|
|
14093
14219
|
function partialCacheEntryDir(entry) {
|
|
@@ -14098,7 +14224,7 @@ function isTargetExistsRenameError(err) {
|
|
|
14098
14224
|
return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
|
|
14099
14225
|
}
|
|
14100
14226
|
function adoptPublishedWinner(entry, partialDir) {
|
|
14101
|
-
if (!
|
|
14227
|
+
if (!existsSync10(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
|
|
14102
14228
|
removeDir(partialDir);
|
|
14103
14229
|
return { dir: entry.dir, published: true };
|
|
14104
14230
|
}
|
|
@@ -14328,6 +14454,12 @@ function tailFramesFromFinalFrame(input) {
|
|
|
14328
14454
|
return count > 0 ? count : null;
|
|
14329
14455
|
}
|
|
14330
14456
|
var DOWNLOAD_SUBDIR = "_downloads";
|
|
14457
|
+
async function assertDownloadedVideoIsMedia(path, videoId, signal) {
|
|
14458
|
+
await assertMediaPayload(path, videoId);
|
|
14459
|
+
const formatLimit = selfContainedFormatArgs();
|
|
14460
|
+
if (formatLimit.length === 0) return;
|
|
14461
|
+
await runFfprobe(path, [...formatLimit, "-show_entries", "format=format_name"], signal);
|
|
14462
|
+
}
|
|
14331
14463
|
var EXTRACT_CACHE_MIN_AGE_MS = 60 * 60 * 1e3;
|
|
14332
14464
|
var GC_STALENESS_MS = 24 * 60 * 60 * 1e3;
|
|
14333
14465
|
var SDR_TO_HDR_COLORSPACE_FILTER = "colorspace=all=bt2020:iall=bt709:range=tv";
|
|
@@ -14494,6 +14626,14 @@ function classifyVideoExtractionError(error) {
|
|
|
14494
14626
|
diagnostic
|
|
14495
14627
|
);
|
|
14496
14628
|
}
|
|
14629
|
+
if (error instanceof NotMediaPayloadError) {
|
|
14630
|
+
return new VideoSourceExtractionError(
|
|
14631
|
+
"invalid_media",
|
|
14632
|
+
false,
|
|
14633
|
+
"Video source is a text document, not media",
|
|
14634
|
+
diagnostic
|
|
14635
|
+
);
|
|
14636
|
+
}
|
|
14497
14637
|
if (lowered.includes("cancelled") || lowered.includes("aborted")) {
|
|
14498
14638
|
return new VideoSourceExtractionError(
|
|
14499
14639
|
"cancelled",
|
|
@@ -14955,7 +15095,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
14955
15095
|
const fps = fpsToNumber(normalizedFps);
|
|
14956
15096
|
const ffmpegFps = fpsToFfmpegArg(normalizedFps);
|
|
14957
15097
|
const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
|
|
14958
|
-
if (!
|
|
15098
|
+
if (!existsSync11(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
|
|
14959
15099
|
let metadata;
|
|
14960
15100
|
try {
|
|
14961
15101
|
metadata = await extractMediaMetadata(videoPath);
|
|
@@ -15570,6 +15710,16 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15570
15710
|
resolvedVideos.push({ video, videoPath: remoteUrl });
|
|
15571
15711
|
continue;
|
|
15572
15712
|
}
|
|
15713
|
+
const roots = options.assetRoots;
|
|
15714
|
+
if (!isHttpUrl(videoPath) && roots && !isInsideAssetRoots(videoPath, roots)) {
|
|
15715
|
+
errors.push({
|
|
15716
|
+
videoId: video.id,
|
|
15717
|
+
kind: "source_missing",
|
|
15718
|
+
retryable: false,
|
|
15719
|
+
error: `Video source is outside the project folder: ${video.src}`
|
|
15720
|
+
});
|
|
15721
|
+
continue;
|
|
15722
|
+
}
|
|
15573
15723
|
if (isHttpUrl(videoPath)) {
|
|
15574
15724
|
const downloadDir = join13(options.outputDir, DOWNLOAD_SUBDIR);
|
|
15575
15725
|
mkdirSync6(downloadDir, { recursive: true });
|
|
@@ -15581,8 +15731,9 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15581
15731
|
() => recordTransientRetries(1),
|
|
15582
15732
|
{ onTelemetry: writeUrlDownloadTelemetry }
|
|
15583
15733
|
);
|
|
15734
|
+
await assertDownloadedVideoIsMedia(videoPath, video.id, signal);
|
|
15584
15735
|
}
|
|
15585
|
-
if (!
|
|
15736
|
+
if (!existsSync11(videoPath)) {
|
|
15586
15737
|
if (!warnedSrcs.has(video.src)) {
|
|
15587
15738
|
warnedSrcs.add(video.src);
|
|
15588
15739
|
process.stderr.write(
|
|
@@ -16323,7 +16474,7 @@ var FrameLookupTable = class {
|
|
|
16323
16474
|
cleanup() {
|
|
16324
16475
|
for (const video of this.videos.values()) {
|
|
16325
16476
|
if (video.extracted.ownedByLookup) continue;
|
|
16326
|
-
if (
|
|
16477
|
+
if (existsSync11(video.extracted.outputDir)) {
|
|
16327
16478
|
rmSync5(video.extracted.outputDir, { recursive: true, force: true });
|
|
16328
16479
|
}
|
|
16329
16480
|
}
|
|
@@ -16870,7 +17021,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
16870
17021
|
}
|
|
16871
17022
|
|
|
16872
17023
|
// ../engine/src/services/audioMixer.ts
|
|
16873
|
-
import { closeSync as closeSync4, existsSync as
|
|
17024
|
+
import { closeSync as closeSync4, existsSync as existsSync13, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
16874
17025
|
import { join as join17, dirname as dirname9, isAbsolute as isAbsolute3, relative as relative3 } from "path";
|
|
16875
17026
|
|
|
16876
17027
|
// ../core/dist/audioFade.js
|
|
@@ -17498,7 +17649,7 @@ function chainTailSeconds(chain, automation) {
|
|
|
17498
17649
|
// ../engine/src/services/audioFxRender.ts
|
|
17499
17650
|
import {
|
|
17500
17651
|
closeSync as closeSync3,
|
|
17501
|
-
existsSync as
|
|
17652
|
+
existsSync as existsSync12,
|
|
17502
17653
|
mkdtempSync as mkdtempSync4,
|
|
17503
17654
|
openSync as openSync3,
|
|
17504
17655
|
readFileSync as readFileSync8,
|
|
@@ -17808,7 +17959,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
|
|
|
17808
17959
|
}
|
|
17809
17960
|
async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
17810
17961
|
if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
|
|
17811
|
-
if (!
|
|
17962
|
+
if (!existsSync12(inputWav)) {
|
|
17812
17963
|
throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
|
|
17813
17964
|
}
|
|
17814
17965
|
const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
|
|
@@ -18345,7 +18496,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
|
|
|
18345
18496
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
18346
18497
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18347
18498
|
const outputDir = dirname9(outputPath);
|
|
18348
|
-
if (!
|
|
18499
|
+
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18349
18500
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
18350
18501
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
18351
18502
|
const readsUrl = isHttpUrl(srcPath);
|
|
@@ -18491,7 +18642,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
18491
18642
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
18492
18643
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18493
18644
|
const outputDir = dirname9(outputPath);
|
|
18494
|
-
if (!
|
|
18645
|
+
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18495
18646
|
const args = [
|
|
18496
18647
|
"-f",
|
|
18497
18648
|
"lavfi",
|
|
@@ -18545,7 +18696,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18545
18696
|
};
|
|
18546
18697
|
}
|
|
18547
18698
|
const outputDir = dirname9(outputPath);
|
|
18548
|
-
if (!
|
|
18699
|
+
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18549
18700
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18550
18701
|
const filterParts = [];
|
|
18551
18702
|
tracks.forEach((track, i) => {
|
|
@@ -18654,7 +18805,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18654
18805
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18655
18806
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18656
18807
|
const outputDir = dirname9(outputPath);
|
|
18657
|
-
if (!
|
|
18808
|
+
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18658
18809
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18659
18810
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
18660
18811
|
return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
|
|
@@ -18881,7 +19032,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18881
19032
|
const failures = [];
|
|
18882
19033
|
const groupTracks = /* @__PURE__ */ new Map();
|
|
18883
19034
|
const groupMeta = /* @__PURE__ */ new Map();
|
|
18884
|
-
if (!
|
|
19035
|
+
if (!existsSync13(workDir)) mkdirSync7(workDir, { recursive: true });
|
|
18885
19036
|
const internalController = new AbortController();
|
|
18886
19037
|
const effectiveSignal = internalController.signal;
|
|
18887
19038
|
if (signal) {
|
|
@@ -18913,6 +19064,18 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18913
19064
|
audioSidecarUrl = config?.audioSidecarUrlByLocalPath?.get(srcPath);
|
|
18914
19065
|
srcPath = remoteUrl;
|
|
18915
19066
|
readInPlace = true;
|
|
19067
|
+
} else if (config?.assetRoots && !isInsideAssetRoots(srcPath, config.assetRoots)) {
|
|
19068
|
+
failures.push({
|
|
19069
|
+
stage: "source",
|
|
19070
|
+
reason: "source_not_found",
|
|
19071
|
+
owner: "user",
|
|
19072
|
+
retryable: false,
|
|
19073
|
+
elementId: element.id,
|
|
19074
|
+
detail: boundedDetail(
|
|
19075
|
+
`Audio element ${element.id} source is outside the project folder`
|
|
19076
|
+
)
|
|
19077
|
+
});
|
|
19078
|
+
return;
|
|
18916
19079
|
}
|
|
18917
19080
|
}
|
|
18918
19081
|
if (isHttpUrl(srcPath) && !readInPlace) {
|
|
@@ -18932,7 +19095,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18932
19095
|
return;
|
|
18933
19096
|
}
|
|
18934
19097
|
}
|
|
18935
|
-
if (!readInPlace && !
|
|
19098
|
+
if (!readInPlace && !existsSync13(srcPath)) {
|
|
18936
19099
|
failures.push({
|
|
18937
19100
|
stage: "source",
|
|
18938
19101
|
reason: "source_not_found",
|
|
@@ -19298,7 +19461,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19298
19461
|
|
|
19299
19462
|
// ../engine/src/services/parallelCoordinator.ts
|
|
19300
19463
|
import { freemem } from "os";
|
|
19301
|
-
import { existsSync as
|
|
19464
|
+
import { existsSync as existsSync14, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
19302
19465
|
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
19303
19466
|
import { join as join19 } from "path";
|
|
19304
19467
|
import { getHeapStatistics } from "v8";
|
|
@@ -19796,7 +19959,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
19796
19959
|
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
|
|
19797
19960
|
const startTime = Date.now();
|
|
19798
19961
|
let framesCaptured = 0;
|
|
19799
|
-
if (!
|
|
19962
|
+
if (!existsSync14(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
19800
19963
|
let session = null;
|
|
19801
19964
|
let perf;
|
|
19802
19965
|
const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
|
|
@@ -20051,11 +20214,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
20051
20214
|
return results;
|
|
20052
20215
|
}
|
|
20053
20216
|
async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
20054
|
-
if (!
|
|
20217
|
+
if (!existsSync14(outputDir)) mkdirSync8(outputDir, { recursive: true });
|
|
20055
20218
|
let totalFrames = 0;
|
|
20056
20219
|
const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
|
|
20057
20220
|
for (const task of sortedTasks) {
|
|
20058
|
-
if (!
|
|
20221
|
+
if (!existsSync14(task.outputDir)) {
|
|
20059
20222
|
continue;
|
|
20060
20223
|
}
|
|
20061
20224
|
const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
|
|
@@ -20087,6 +20250,27 @@ import { Hono } from "hono";
|
|
|
20087
20250
|
import { serve } from "@hono/node-server";
|
|
20088
20251
|
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants as constants2 } from "fs";
|
|
20089
20252
|
import { join as join20, extname as extname3 } from "path";
|
|
20253
|
+
|
|
20254
|
+
// ../engine/src/utils/loopbackOnly.ts
|
|
20255
|
+
function isOwnLoopbackHost(host, port) {
|
|
20256
|
+
const name = host?.toLowerCase();
|
|
20257
|
+
return name === `127.0.0.1:${port}` || name === `localhost:${port}` || name === `[::1]:${port}`;
|
|
20258
|
+
}
|
|
20259
|
+
var SAME_ORIGIN_FRAMING_HEADERS = {
|
|
20260
|
+
"Content-Security-Policy": "frame-ancestors 'self'",
|
|
20261
|
+
"X-Frame-Options": "SAMEORIGIN"
|
|
20262
|
+
};
|
|
20263
|
+
function answerOwnLoopbackHostOnly(app, boundPort) {
|
|
20264
|
+
app.use(async function refuseForeignHostAndFraming(c, next) {
|
|
20265
|
+
if (!isOwnLoopbackHost(c.req.header("host"), boundPort())) return c.text("Forbidden", 403);
|
|
20266
|
+
await next();
|
|
20267
|
+
for (const [name, value] of Object.entries(SAME_ORIGIN_FRAMING_HEADERS)) {
|
|
20268
|
+
c.res.headers.set(name, value);
|
|
20269
|
+
}
|
|
20270
|
+
});
|
|
20271
|
+
}
|
|
20272
|
+
|
|
20273
|
+
// ../engine/src/services/fileServer.ts
|
|
20090
20274
|
var MIME_TYPES = {
|
|
20091
20275
|
".html": "text/html; charset=utf-8",
|
|
20092
20276
|
".css": "text/css; charset=utf-8",
|
|
@@ -20135,11 +20319,11 @@ function readRegularFile(filePath) {
|
|
|
20135
20319
|
function resolveContainedPaths(projectDir, compiledDir, relativePath) {
|
|
20136
20320
|
const projectPath = join20(projectDir, relativePath);
|
|
20137
20321
|
if (!isWithinProjectRoot(projectDir, projectPath)) return null;
|
|
20138
|
-
if (isPrivateFileUnder(projectDir, projectPath,
|
|
20322
|
+
if (isPrivateFileUnder(projectDir, projectPath, isStudioPrivatePath)) return null;
|
|
20139
20323
|
if (!compiledDir) return { projectPath, compiledPath: null };
|
|
20140
20324
|
const compiledPath = join20(compiledDir, relativePath);
|
|
20141
20325
|
if (!isWithinProjectRoot(compiledDir, compiledPath)) return null;
|
|
20142
|
-
if (isPrivateFileUnder(compiledDir, compiledPath,
|
|
20326
|
+
if (isPrivateFileUnder(compiledDir, compiledPath, isStudioPrivatePath)) return null;
|
|
20143
20327
|
return { projectPath, compiledPath };
|
|
20144
20328
|
}
|
|
20145
20329
|
function createFileServer(options) {
|
|
@@ -20153,6 +20337,9 @@ function createFileServer(options) {
|
|
|
20153
20337
|
const headScripts = options.headScripts ?? [];
|
|
20154
20338
|
const bodyScripts = options.bodyScripts ?? [];
|
|
20155
20339
|
const app = new Hono();
|
|
20340
|
+
let listeningPort = -1;
|
|
20341
|
+
const boundToLoopbackOnly = ["127.0.0.1", "localhost", "::1"].includes(hostname);
|
|
20342
|
+
if (boundToLoopbackOnly) answerOwnLoopbackHostOnly(app, () => listeningPort);
|
|
20156
20343
|
app.get("/*", (c) => {
|
|
20157
20344
|
let requestPath = c.req.path;
|
|
20158
20345
|
if (requestPath === "/") requestPath = "/index.html";
|
|
@@ -20176,6 +20363,7 @@ function createFileServer(options) {
|
|
|
20176
20363
|
return new Promise((resolve3) => {
|
|
20177
20364
|
const server = serve({ fetch: app.fetch, port, hostname }, (info) => {
|
|
20178
20365
|
const actualPort = info.port;
|
|
20366
|
+
listeningPort = actualPort;
|
|
20179
20367
|
const url = `http://localhost:${actualPort}`;
|
|
20180
20368
|
resolve3({
|
|
20181
20369
|
url,
|
|
@@ -20696,6 +20884,7 @@ export {
|
|
|
20696
20884
|
HF_AUDIO_GROUP_TAG,
|
|
20697
20885
|
HF_AUDIO_GROUP_ATTR,
|
|
20698
20886
|
isSelfOrAncestorHidden,
|
|
20887
|
+
isInsideAssetRoots,
|
|
20699
20888
|
NOT_MEDIA_PAYLOAD,
|
|
20700
20889
|
NotMediaPayloadError,
|
|
20701
20890
|
fingerprintElementId,
|
|
@@ -20777,6 +20966,9 @@ export {
|
|
|
20777
20966
|
executeParallelCapture,
|
|
20778
20967
|
mergeWorkerFrames,
|
|
20779
20968
|
getSystemResources,
|
|
20969
|
+
isOwnLoopbackHost,
|
|
20970
|
+
SAME_ORIGIN_FRAMING_HEADERS,
|
|
20971
|
+
answerOwnLoopbackHostOnly,
|
|
20780
20972
|
createFileServer,
|
|
20781
20973
|
groupIntoLayers,
|
|
20782
20974
|
diffGpuParityFrames,
|