hyperframes 0.9.52 → 0.9.53
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-Z6G2DLNE.js → add-TZFSLV5M.js} +21 -16
- package/dist/{agentPromptGenerator-RCTC2XXL.js → agentPromptGenerator-OPQZUVYC.js} +12 -17
- package/dist/{animatedGifPrep-X7KILCDI.js → animatedGifPrep-DEK4XZYT.js} +15 -16
- package/dist/api.js +46 -46
- package/dist/{asset-A3ENWWCU.js → asset-3BIBG7LB.js} +2 -2
- package/dist/{assetCataloger-TIMZTOYH.js → assetCataloger-R4NWWO4P.js} +13 -13
- package/dist/{audio-HMCUO2CV.js → audio-N3DHNT3F.js} +38 -31
- package/dist/{auth-NXR3QM4C.js → auth-CBF2DVRT.js} +5 -5
- package/dist/{autoUpdate-TY7P2Z4F.js → autoUpdate-UJB4MI4Z.js} +5 -3
- package/dist/{avatars-36MYJUPA.js → avatars-JVATTQYO.js} +21 -19
- package/dist/{backgroundChecks-EWWJEGF6.js → backgroundChecks-R7SFELIM.js} +6 -4
- package/dist/backgroundChecksWorker.js +6 -5
- package/dist/{batchRender-VKM4E7PI.js → batchRender-D4VO4OCF.js} +26 -7
- package/dist/{beats-Z4B4B4KM.js → beats-UCYZ7MKK.js} +14 -14
- package/dist/{benchmark-PLGO2THH.js → benchmark-3NMJO5DK.js} +31 -14
- package/dist/{billing-ZIXACCLR.js → billing-76JTGOHN.js} +18 -17
- package/dist/{browser-VZFBNASB.js → browser-5XXA4O25.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-XD2XDEQL.js → bundleWithLocalizedFonts-S7DIF43W.js} +1 -1
- package/dist/{capture-BAFLHNDI.js → capture-EV4G3SCY.js} +33 -34
- package/dist/{capture-GC4F54XT.js → capture-JHMVFAUS.js} +4 -4
- package/dist/{captureCompositionFrame-YBVEFKWM.js → captureCompositionFrame-3M3BFHZH.js} +19 -19
- package/dist/{catalog-LHOCJUO2.js → catalog-WVZJ6XYV.js} +21 -16
- package/dist/{catch-up-6FNQ6I7Q.js → catch-up-FQ5KCZIH.js} +11 -11
- package/dist/{check-S7T5LE6V.js → check-VTUVZWCF.js} +52 -49
- package/dist/{checkAudio-AKOI4AWK.js → checkAudio-FYRBXK22.js} +19 -19
- package/dist/{checkBrowser-NABXGNNM.js → checkBrowser-EJQEWSIH.js} +46 -43
- package/dist/{chunk-YXQA6MKA.js → chunk-2ODGEXNH.js} +4 -4
- package/dist/{chunk-7SZ7QQJ3.js → chunk-2ST2FAVH.js} +2 -2
- package/dist/{chunk-POGZYVM2.js → chunk-2YSQU74C.js} +9 -9
- package/dist/{chunk-H4S3WY2N.js → chunk-346RTE74.js} +1 -1
- package/dist/{chunk-Z46RV43W.js → chunk-35PKJPEI.js} +2 -2
- package/dist/{chunk-MQGRMXFN.js → chunk-365OGBQ2.js} +3 -3
- package/dist/chunk-3FHPYC6X.js +5069 -0
- package/dist/{chunk-6PXVXIC7.js → chunk-3FL7MKQH.js} +163 -60
- package/dist/{chunk-SQ64IEA7.js → chunk-3HQ4C4HI.js} +2 -2
- package/dist/{chunk-CDK23M57.js → chunk-43ILJV43.js} +11 -11
- package/dist/{chunk-RMO7KIFX.js → chunk-44OCDK5C.js} +4 -4
- package/dist/{chunk-APT2TSYC.js → chunk-47IXIEBQ.js} +1 -1
- package/dist/{chunk-FCNMU7LC.js → chunk-4FOHO7GC.js} +1 -1
- package/dist/{chunk-CQ5VQNOD.js → chunk-4KRID4YV.js} +1 -1
- package/dist/{chunk-MR7VKWYT.js → chunk-4KS3GL5I.js} +1 -1
- package/dist/{chunk-4Q2HYZZK.js → chunk-4TJGOQER.js} +58 -3
- package/dist/{chunk-YJFIGFON.js → chunk-562X3KBJ.js} +2 -2
- package/dist/chunk-5A75E4OT.js +72 -0
- package/dist/{chunk-XHUFLQGD.js → chunk-5CRHNVJW.js} +3 -3
- package/dist/{chunk-22EEGJLH.js → chunk-5JOYZGHQ.js} +82 -54
- package/dist/{chunk-NQ3NHCF6.js → chunk-5SMHNPMW.js} +2 -2
- package/dist/{chunk-24M5C5EQ.js → chunk-6CO6L3YP.js} +1 -1
- package/dist/{chunk-MP4TEYUJ.js → chunk-6EMFSRTW.js} +4 -1
- package/dist/{chunk-H4LCNEA2.js → chunk-6F4ZVQUX.js} +195 -128
- package/dist/{chunk-YRXIEP35.js → chunk-6RPLXBZJ.js} +89 -10
- package/dist/{chunk-7RLMDAUO.js → chunk-6T4PB35F.js} +2 -1
- package/dist/{chunk-VOJ3ICMF.js → chunk-7ELQHSEE.js} +1 -1
- package/dist/{chunk-NXDFCWF2.js → chunk-7FU5JCAK.js} +1 -1
- package/dist/{chunk-UFET7UTU.js → chunk-B3WRUPRS.js} +2 -2
- package/dist/{chunk-TI7JN55F.js → chunk-BCJJ64JG.js} +1 -1
- package/dist/{chunk-P27QDOID.js → chunk-BH5P5QZN.js} +4 -4
- package/dist/{chunk-RIHRYTNB.js → chunk-BQRJZDSM.js} +15 -15
- package/dist/{chunk-7GVHPY7W.js → chunk-BS36NRXV.js} +1 -1
- package/dist/{chunk-PRG42HNH.js → chunk-CBV4W4R3.js} +2 -2
- package/dist/{chunk-UX2KMUKC.js → chunk-CTHG3WLB.js} +9 -9
- package/dist/{chunk-MF53JVZ5.js → chunk-CYBOQOKO.js} +1 -1
- package/dist/{chunk-DPVXBVLL.js → chunk-DZWAYZG2.js} +6254 -6096
- package/dist/{chunk-AMWWQXTC.js → chunk-E3LZAM64.js} +5 -5
- package/dist/{chunk-B2ZZYISD.js → chunk-ECGNWHFE.js} +29 -6
- package/dist/{chunk-ZG6BVWQ7.js → chunk-ES273AD6.js} +3 -3
- package/dist/{chunk-R64WJS45.js → chunk-FH6KC5EF.js} +6 -6
- package/dist/{chunk-S5EMQAKL.js → chunk-FLPVKGBS.js} +2 -2
- package/dist/{chunk-HLXZFHEY.js → chunk-FM5JRUWL.js} +6 -6
- package/dist/{chunk-DE7Q2LWF.js → chunk-FQMP2KFS.js} +2 -2
- package/dist/{chunk-ZXMZSU5Y.js → chunk-FRM4EM52.js} +15 -15
- package/dist/chunk-FSBV6Z7E.js +351 -0
- package/dist/{chunk-U7ZCBWNM.js → chunk-FU2R6OVR.js} +3 -3
- package/dist/{chunk-4OHV7UZZ.js → chunk-FZNH7SCB.js} +1 -1
- package/dist/{chunk-O45HB74L.js → chunk-G5FNJQER.js} +31 -27
- package/dist/{chunk-G6QCHM2N.js → chunk-G7GTO4YP.js} +4 -4
- package/dist/{chunk-WN4W76IQ.js → chunk-GDWPLGHY.js} +1 -1
- package/dist/{chunk-UB44XZOI.js → chunk-GVUG5VDL.js} +1 -1
- package/dist/{chunk-YXR5MVBM.js → chunk-GZG2Z2O2.js} +2 -2
- package/dist/{chunk-7QM73IH2.js → chunk-H5K3FS4W.js} +4 -4
- package/dist/{chunk-MOTJT42J.js → chunk-HJ2YUPBF.js} +13 -1
- package/dist/{chunk-47MEWWCO.js → chunk-HY25JZQ2.js} +2 -2
- package/dist/{chunk-DONVZZLV.js → chunk-HYO4DIYT.js} +1 -1
- package/dist/{chunk-6NGJ55V5.js → chunk-HZ2CD6RL.js} +1 -1
- package/dist/{chunk-WPC2FKNB.js → chunk-I7NTTMET.js} +326 -114
- package/dist/{chunk-P37ZACC6.js → chunk-I7SJBRVT.js} +3 -3
- package/dist/{chunk-CIMOTEZB.js → chunk-IB5DXMAH.js} +4 -4
- package/dist/{chunk-MI54IK7G.js → chunk-IEESWUIQ.js} +11 -2
- package/dist/{chunk-6MKM2RVL.js → chunk-IH2C53YV.js} +460 -1
- package/dist/{chunk-GEIWJSWN.js → chunk-IH56MGAB.js} +10 -10
- package/dist/{chunk-6MYO2IHD.js → chunk-IHXMN5YH.js} +7 -0
- package/dist/{chunk-YHJOTCTV.js → chunk-IJYIIHGK.js} +10 -5
- package/dist/{chunk-L2KUIV56.js → chunk-ISVRNYE5.js} +1 -1
- package/dist/{chunk-QP7MQ43Y.js → chunk-IXUIJ7OL.js} +3 -3
- package/dist/chunk-JCFOSR7Z.js +181 -0
- package/dist/{chunk-HS7LT4PL.js → chunk-JNM4WG7C.js} +1 -1
- package/dist/{chunk-WSZJS4QC.js → chunk-KDDRDNEE.js} +60 -9
- package/dist/{chunk-UAU4SIOQ.js → chunk-KEZ7QIJN.js} +6 -6
- package/dist/{chunk-ZW6ZUKBB.js → chunk-KKO4PRB5.js} +1 -1
- package/dist/{chunk-M3BJEZ7E.js → chunk-KPFJGQ6M.js} +45 -12
- package/dist/{chunk-YPURY3MW.js → chunk-LKWN2F7O.js} +2 -2
- package/dist/{chunk-CIGQUDEV.js → chunk-N2YHCAFL.js} +50 -15
- package/dist/{chunk-Z2EKCD7H.js → chunk-NCPSUM5A.js} +1 -1
- package/dist/{chunk-64T46P7K.js → chunk-NVGB7L2M.js} +2 -2
- package/dist/{chunk-2MNSS7PH.js → chunk-OLVZAALP.js} +2 -2
- package/dist/{chunk-LZTBL7SR.js → chunk-OSKSTJNQ.js} +12 -2
- package/dist/{chunk-QUUZ2BGC.js → chunk-OUPWEFUM.js} +1 -1
- package/dist/{chunk-4QFWV5GQ.js → chunk-P2ZMVHTF.js} +2 -1
- package/dist/{chunk-T6VQGCN3.js → chunk-PPLFDG7N.js} +9 -5
- package/dist/{chunk-UBHBB3TB.js → chunk-PUT3NPVE.js} +43 -51
- package/dist/{chunk-IMNIW22F.js → chunk-PYOCEDTU.js} +2 -2
- package/dist/{chunk-E2KJT7JR.js → chunk-Q5P7YJXO.js} +2 -2
- package/dist/{chunk-42JBYXIQ.js → chunk-QBDT7Z5D.js} +38 -22
- package/dist/{chunk-3LIMD4YP.js → chunk-QBN2W4T3.js} +6 -8
- package/dist/{chunk-J45SCYTD.js → chunk-QXYR7LOO.js} +7 -7
- package/dist/{chunk-LNZHSISH.js → chunk-RH6UD7XI.js} +11 -11
- package/dist/{chunk-IZQDQ5AN.js → chunk-RUQ2VOD3.js} +3 -2
- package/dist/{chunk-ETXOQXWT.js → chunk-SH6PAYUD.js} +5 -5
- package/dist/{chunk-M6TIOPL5.js → chunk-SRPPNXGX.js} +3 -3
- package/dist/{chunk-LIPVGXPV.js → chunk-SXZMJ7QJ.js} +4 -4
- package/dist/{chunk-ZGWOCGSJ.js → chunk-T3QK3VKM.js} +1 -1
- package/dist/{chunk-DC7AOIHN.js → chunk-T5S7U5C6.js} +1 -1
- package/dist/{chunk-RULKJFRT.js → chunk-TQKX3TA3.js} +1 -1
- package/dist/{chunk-IB722ALN.js → chunk-TTP6JGIL.js} +2 -2
- package/dist/{chunk-DYYAFCZH.js → chunk-TWI33YJP.js} +1 -1
- package/dist/{chunk-5B425ZB3.js → chunk-UAOL5PRX.js} +1 -1
- package/dist/{chunk-L56WTLQP.js → chunk-VCHJV7ZT.js} +10 -9
- package/dist/{chunk-M425BL2U.js → chunk-VCKUDUPN.js} +1 -1
- package/dist/{chunk-UIIQA7DN.js → chunk-W6WVHIU7.js} +6 -3
- package/dist/{chunk-JJLPGVTA.js → chunk-WPG76RJZ.js} +1 -1
- package/dist/{chunk-VXX4S2PH.js → chunk-XBPLO6CY.js} +384 -94
- package/dist/{chunk-M4E7CMYS.js → chunk-XJTFSMZK.js} +2 -2
- package/dist/{chunk-X3IULMVV.js → chunk-XM7LOJBP.js} +1 -1
- package/dist/{chunk-HT4FWRIT.js → chunk-XZZF6YBS.js} +1 -1
- package/dist/{chunk-4FWR7OE3.js → chunk-Y6CLFCYX.js} +3 -3
- package/dist/{chunk-7VQ3RAKO.js → chunk-YF34MK67.js} +19 -16
- package/dist/{chunk-UX4HQHMS.js → chunk-YT3LRZA3.js} +12 -10
- package/dist/{chunk-MOR3H5FK.js → chunk-ZFCK46UR.js} +1 -1
- package/dist/{chunk-C66O6A2J.js → chunk-ZI3MSFSN.js} +2 -2
- package/dist/{chunk-2AZMG6DR.js → chunk-ZK6BC3JM.js} +4 -4
- package/dist/{chunk-TDQUQAW5.js → chunk-ZPPEZJVD.js} +97 -39
- package/dist/{chunk-I6SCA2ME.js → chunk-ZT7RB42S.js} +43 -21
- package/dist/{chunk-KUZTIMY3.js → chunk-ZV3RIHRN.js} +7 -7
- package/dist/{clean-Y6YIQRPM.js → clean-KEVJGNES.js} +29 -28
- package/dist/cli.js +67 -66
- package/dist/{cloud-5C5SCK4H.js → cloud-EBJZO6ZY.js} +5 -4
- package/dist/{cloud-A5U7YYNA.js → cloud-OR62JJDE.js} +4 -4
- package/dist/{cloudrun-EULFHQQL.js → cloudrun-HPYJTM5N.js} +9 -9
- package/dist/{compare-6XCTMUF3.js → compare-353XZU2M.js} +43 -41
- package/dist/{compiler-DUG4GFRI.js → compiler-KPDUYBA5.js} +8 -8
- package/dist/{component-JDQIZSAL.js → component-5DZDY74T.js} +3 -3
- package/dist/{compositions-HZDEOSRL.js → compositions-VBICZHMF.js} +27 -20
- package/dist/{curve-SE7ZAMI6.js → curve-KDRSQWHP.js} +18 -17
- package/dist/{cuts-AEFJGBFP.js → cuts-ABAQKTF4.js} +19 -18
- package/dist/{delete-EQUQ7Z2K.js → delete-BXURHIL4.js} +10 -7
- package/dist/{deploy-NSLC6BYZ.js → deploy-4TBYCBNI.js} +7 -7
- package/dist/{describeProject-FTJBPDL3.js → describeProject-K62TKQLI.js} +14 -14
- package/dist/{destroy-4O4T3KL3.js → destroy-FAJUHCW4.js} +6 -6
- package/dist/{deterministicFonts-QY4KNTOU.js → deterministicFonts-XZIQ4PNP.js} +3 -3
- package/dist/{diff-VJ3CS7YE.js → diff-4O7ZCBM5.js} +43 -41
- package/dist/{dist-MXWEGMRB.js → dist-AAGJ6SXG.js} +5 -5
- package/dist/{dist-MNFB4YKV.js → dist-D67752QW.js} +18 -18
- package/dist/{dist-2YJCNIWI.js → dist-F4T6FB7P.js} +6 -6
- package/dist/{doctor-RR7SNO6X.js → doctor-IEUIWBC5.js} +23 -18
- package/dist/{dotEnv-33RDHX7P.js → dotEnv-RZ52L7X3.js} +5 -4
- package/dist/{energy-PN23W2UJ.js → energy-BJQTVGBO.js} +19 -18
- package/dist/{events-4ECJEB2W.js → events-4UBI5WNS.js} +10 -10
- package/dist/{events-NR6UPBHG.js → events-D3NBN44E.js} +4 -4
- package/dist/{events-5OLO73VJ.js → events-M37XFHGJ.js} +21 -20
- package/dist/{execute-TS3BP65F.js → execute-JCLM27KS.js} +36 -36
- package/dist/{extract-GCZ5HSEN.js → extract-AYWY5PIN.js} +19 -18
- package/dist/{face-QKMYBRV3.js → face-TEHC6WYN.js} +20 -19
- package/dist/{feedback-3H43EK7N.js → feedback-JZDCB5N4.js} +42 -30
- package/dist/{ffmpeg-JRNM74WY.js → ffmpeg-JMPVMPDT.js} +15 -15
- package/dist/{figma-JGP2UGGU.js → figma-6MYT2VRV.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -21
- package/dist/{frames-OYSWKB3F.js → frames-NLFBDILH.js} +20 -19
- package/dist/{generate-TDXLUFMR.js → generate-YLPRVWHZ.js} +32 -30
- package/dist/{get-UB2MNBYO.js → get-APCR6ZJE.js} +10 -7
- package/dist/{gpuPolicy-6CTTH3NY.js → gpuPolicy-YXBUP4AF.js} +12 -12
- package/dist/{grade-compare-2DXT4RWV.js → grade-compare-VLWGCI4O.js} +43 -41
- package/dist/{gsapParser-L7TM3RGH.js → gsapParser-TSPNHW7F.js} +1 -1
- package/dist/hangReport.js +2 -1
- package/dist/{heifImagePrep-VDZVZ4G7.js → heifImagePrep-UC2AV5LU.js} +16 -17
- package/dist/{help-RGKY4DR4.js → help-YSBTU7WC.js} +1 -1
- package/dist/{history-AVDXYNAP.js → history-EPIGMZUN.js} +15 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-NGTQABZC.js → info-6SF6E2T3.js} +26 -20
- package/dist/{init-C3EARHDW.js → init-BXS47X5W.js} +40 -38
- package/dist/{ink-ISO3VXRQ.js → ink-BWKWSIKA.js} +19 -18
- package/dist/{inspect-V6MPU5I5.js → inspect-NUE2R2OF.js} +44 -41
- package/dist/{installer-FI6HT2FW.js → installer-T57TKMM6.js} +7 -7
- package/dist/{keyframes-PTJDE47Y.js → keyframes-WCRUYIOQ.js} +19 -15
- package/dist/{lambda-JTO5YD2I.js → lambda-L2YNMAL5.js} +18 -18
- package/dist/{layout-QMLEZP5T.js → layout-FXTXMDAL.js} +44 -41
- package/dist/{lint-6BWOQAW6.js → lint-IKRYTERJ.js} +23 -17
- package/dist/{lintProject-G4MXY4YA.js → lintProject-2NDIJLD2.js} +6 -6
- package/dist/{list-7E4VD7JA.js → list-BX5SCZEC.js} +10 -7
- package/dist/{localPage-BQOYZAOW.js → localPage-HY3VMEYU.js} +12 -12
- package/dist/{login-37MSZXCY.js → login-5IDR2M6C.js} +6 -5
- package/dist/{logout-QGNBUJKS.js → logout-MTWA4BBI.js} +2 -1
- package/dist/{look-5GXW3NVP.js → look-7R4YJNX7.js} +19 -18
- package/dist/{manager-TMKN4DX5.js → manager-DBMIO5YG.js} +2 -2
- package/dist/{manager-J2IRAOR7.js → manager-PHCAZFHT.js} +13 -13
- package/dist/{measure-23IL23BL.js → measure-7CJ4RKSY.js} +11 -11
- package/dist/{media-treatment-7ODBREPX.js → media-treatment-HEW3RMDV.js} +22 -21
- package/dist/{media-use-QJA6NB3V.js → media-use-S5IJPK5G.js} +11 -18
- package/dist/{models-2Z6SURXU.js → models-4UJY22Z3.js} +16 -16
- package/dist/{motionShot-CYS3L6FK.js → motionShot-FLZQ75TM.js} +23 -23
- package/dist/{normalize-audio-6YVF4LED.js → normalize-audio-AN3KKSSK.js} +16 -16
- package/dist/{open-WQ6NRHCN.js → open-AHPOLDBY.js} +26 -20
- package/dist/{parakeetRunner-R7KK6ZHD.js → parakeetRunner-4URDK3H4.js} +17 -17
- package/dist/{pipeline-HRCK2JQL.js → pipeline-O5UWLQDZ.js} +15 -15
- package/dist/{plan-FQNKACYR.js → plan-SUV7WBBJ.js} +25 -25
- package/dist/{play-UJZBNX2O.js → play-LHMMHUUN.js} +37 -33
- package/dist/{preflight-VIMLSE3I.js → preflight-FLSEP55G.js} +14 -14
- package/dist/{present-JIOVM3ZH.js → present-VEDXFFPZ.js} +31 -28
- package/dist/{preview-HCYGBEWR.js → preview-FXNPXOJL.js} +41 -33
- package/dist/privateProjectFile-NN7MTTEQ.js +50 -0
- package/dist/{probe-6YQA2ZZC.js → probe-P6LUMX34.js} +19 -18
- package/dist/{producer-JIM74BGL.js → producer-SWV2GP4I.js} +1 -1
- package/dist/{projectConfig-VPL64JBD.js → projectConfig-EPOIXMHL.js} +9 -9
- package/dist/{publicNetwork-F3ZXSVOD.js → publicNetwork-GW7SVP7N.js} +1 -1
- package/dist/{publication-ST3VFFWM.js → publication-SIGMWEK3.js} +5 -5
- package/dist/{publish-3TTCO4R4.js → publish-EVCYPK6H.js} +45 -32
- package/dist/{refresh-6ONVQ3WV.js → refresh-PIFEWEAL.js} +2 -1
- package/dist/{remove-background-XTICO22L.js → remove-background-AFXDE5YR.js} +16 -16
- package/dist/{render-MG5MX45D.js → render-BCKSDBLK.js} +8 -8
- package/dist/{render-PFBZJRAN.js → render-DFUMSKVQ.js} +65 -55
- package/dist/{render-WYDOZEZ5.js → render-MENZ6KS5.js} +82 -50
- package/dist/{render-batch-C3XGAQGX.js → render-batch-DPT67NDL.js} +8 -8
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-AGMKICJW.js → resolver-EE3255VM.js} +7 -7
- package/dist/{reverse-TV524NFW.js → reverse-TA73U7V6.js} +1 -1
- package/dist/{run-NQBD5RDR.js → run-Y2ISHW5P.js} +5 -4
- package/dist/{screenshotCapture-OUZMH7EQ.js → screenshotCapture-CEEBQ3FU.js} +14 -14
- package/dist/{service-UIHDIMFM.js → service-6P6QVFNF.js} +19 -18
- package/dist/{share-WD7MCA4I.js → share-Q25X6AIX.js} +24 -23
- package/dist/{sherpa-H67ZJICN.js → sherpa-PPSJ23WI.js} +16 -16
- package/dist/sherpaWorker.js +2 -2
- package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +3 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +95 -15
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +192 -2
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-7TUSQF6W.js → skills-PVJJ3R2V.js} +14 -13
- package/dist/{skillsUpdateCheck-HF6SQWRA.js → skillsUpdateCheck-L4TGSUN6.js} +6 -4
- package/dist/{snapshot-P7ZSTKED.js → snapshot-AIAJRR5C.js} +93 -54
- package/dist/{src-TQQ743H4.js → src-O5P56HIK.js} +20 -14
- package/dist/{src-H2EUJUV3.js → src-UEH4H4UY.js} +18 -19
- package/dist/{start-7ZTAKHD4.js → start-HY5WGCDN.js} +30 -28
- package/dist/{staticProjectServer-X4PARIVN.js → staticProjectServer-WNKXSUBZ.js} +28 -27
- package/dist/{status-ELQXIXIB.js → status-AFDHSUGG.js} +21 -20
- package/dist/studio/assets/{hyperframes-player-D7LhzIg1.js → hyperframes-player-z7r-N5fm.js} +2 -2
- package/dist/studio/assets/{index-CQ7o0CBU.js → index-2QPHxCxy.js} +1 -1
- package/dist/studio/assets/{index-D3WxJaqm.js → index-Dpo7Q_9-.js} +160 -160
- package/dist/studio/assets/index-Dv67Vrl6.js +74 -0
- package/dist/studio/assets/{pausedVideoDecoder-BVUmBgn0.js → pausedVideoDecoder-BarDYEAf.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OJEU24EG.js → studio-api-P72FA5XB.js} +18 -18
- package/dist/{studioServer-E5CLZC46.js → studioServer-RICH4NMX.js} +81 -70
- package/dist/{sync-VEJWMKDP.js → sync-J66DIXED.js} +19 -18
- package/dist/system-I5KGZTUG.js +1 -1
- package/dist/{telemetry-3U4UGQ5V.js → telemetry-KOOKPGMR.js} +10 -10
- package/dist/{templates-AUAOWIYA.js → templates-6DRGOTNH.js} +19 -18
- package/dist/{timeline-YO27AP66.js → timeline-UZX7366C.js} +29 -28
- package/dist/{tokens-UXLQGLVG.js → tokens-AU3BUE6U.js} +2 -2
- package/dist/{transcribe-I7MTUH4M.js → transcribe-CW5HK2OA.js} +33 -32
- package/dist/{transcribe-FZ3TE4FK.js → transcribe-OUTSVFRZ.js} +15 -15
- package/dist/{tts-3VHEX4RB.js → tts-X3MAUZ7E.js} +1 -1
- package/dist/{update-KBKSO3SH.js → update-KRYJ6ACJ.js} +15 -14
- package/dist/{updateCheck-MUYN55HR.js → updateCheck-WQVGQLCG.js} +5 -3
- package/dist/{upgrade-CRCX7CCK.js → upgrade-S54RPT3R.js} +6 -4
- package/dist/{urlDownloader-4EM6GLN4.js → urlDownloader-MASRYSQX.js} +11 -11
- package/dist/{validate-Y2KF2DU3.js → validate-4QVUHCYG.js} +36 -35
- package/dist/{video-HG6SINBD.js → video-AEGOEGSP.js} +13 -13
- package/dist/{voices-O4UHHFZS.js → voices-T4U7EU5X.js} +29 -27
- package/dist/warmCheck.js +52 -50
- package/dist/warmCheckClient.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-DQZRNGDS.js +0 -5069
- package/dist/chunk-IGLEPPTN.js +0 -24
- package/dist/chunk-L2U4ISSS.js +0 -93
- package/dist/studio/assets/index-BX3KHhGX.js +0 -71
- package/dist/{chunk-445BBSZS.js → chunk-UMRNTF3C.js} +3 -3
- package/dist/{synthesize-HOLHQCR2.js → synthesize-UKCQR7WW.js} +1 -1
|
@@ -5,12 +5,15 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
+
NonPublicHostError,
|
|
9
|
+
assertPublicHostname,
|
|
8
10
|
browserProxyArgs,
|
|
9
11
|
createPublicOnlyProfile,
|
|
10
12
|
isBlockedNetworkHost,
|
|
11
13
|
logRefusal,
|
|
14
|
+
resolvePublicAddress,
|
|
12
15
|
startCaptureProxy
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OSKSTJNQ.js";
|
|
14
17
|
import {
|
|
15
18
|
removeTreeBestEffort,
|
|
16
19
|
removeTreeBestEffortAsync
|
|
@@ -60,7 +63,7 @@ import {
|
|
|
60
63
|
resolveAuthoredTimingWindow,
|
|
61
64
|
toFps,
|
|
62
65
|
validateVariables
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-FU2R6OVR.js";
|
|
64
67
|
import {
|
|
65
68
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
66
69
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -104,7 +107,7 @@ import {
|
|
|
104
107
|
sourceTimeAt,
|
|
105
108
|
timeAtSourceTime,
|
|
106
109
|
volumeSegmentSampleCount
|
|
107
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-3FHPYC6X.js";
|
|
108
111
|
import {
|
|
109
112
|
isPrivateFileUnder,
|
|
110
113
|
isVcsOrSecretPath
|
|
@@ -120,11 +123,11 @@ import {
|
|
|
120
123
|
} from "./chunk-LEIR7IDJ.js";
|
|
121
124
|
import {
|
|
122
125
|
resolveReferencedStart
|
|
123
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-6F4ZVQUX.js";
|
|
124
127
|
import {
|
|
125
128
|
isWithinProjectRoot,
|
|
126
129
|
resolveProjectRelativeSrc
|
|
127
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-6EMFSRTW.js";
|
|
128
131
|
import {
|
|
129
132
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
130
133
|
getAvailableMemoryMb,
|
|
@@ -134,18 +137,12 @@ import {
|
|
|
134
137
|
isLowMemorySystem,
|
|
135
138
|
usableCpuCount
|
|
136
139
|
} from "./chunk-U3LWQGCD.js";
|
|
137
|
-
import {
|
|
138
|
-
FFMPEG_PATH_ENV,
|
|
139
|
-
FFPROBE_PATH_ENV,
|
|
140
|
-
findFfBinary,
|
|
141
|
-
findTrustedExecutable
|
|
142
|
-
} from "./chunk-IU5DC4HP.js";
|
|
143
140
|
import {
|
|
144
141
|
isPathInside
|
|
145
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-IH2C53YV.js";
|
|
146
143
|
import {
|
|
147
144
|
readCompositionVariables
|
|
148
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-VCKUDUPN.js";
|
|
149
146
|
import {
|
|
150
147
|
parseHTML
|
|
151
148
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -162,6 +159,12 @@ import {
|
|
|
162
159
|
describeWslGpuAccess,
|
|
163
160
|
detectWsl
|
|
164
161
|
} from "./chunk-7KDQAD2W.js";
|
|
162
|
+
import {
|
|
163
|
+
FFMPEG_PATH_ENV,
|
|
164
|
+
FFPROBE_PATH_ENV,
|
|
165
|
+
findFfBinary,
|
|
166
|
+
findTrustedExecutable
|
|
167
|
+
} from "./chunk-IU5DC4HP.js";
|
|
165
168
|
|
|
166
169
|
// ../engine/src/services/referenceBackground.ts
|
|
167
170
|
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
@@ -613,8 +616,21 @@ function resolvePageNavigationTimeout() {
|
|
|
613
616
|
const parsed = raw === void 0 || raw === "" ? NaN : Number(raw);
|
|
614
617
|
return Number.isFinite(parsed) ? parsed : DEFAULT_CONFIG.pageNavigationTimeout;
|
|
615
618
|
}
|
|
619
|
+
var RESTRICT_PAGE_NETWORK_ON = /* @__PURE__ */ new Set(["true", "1", "yes", "on"]);
|
|
620
|
+
var RESTRICT_PAGE_NETWORK_OFF = /* @__PURE__ */ new Set(["false", "0", "no", "off"]);
|
|
621
|
+
var warnedRestrictPageNetworkValue;
|
|
616
622
|
function resolveRestrictPageNetwork() {
|
|
617
|
-
|
|
623
|
+
const raw = process.env.PRODUCER_RESTRICT_PAGE_NETWORK ?? "";
|
|
624
|
+
const value = raw.trim().toLowerCase();
|
|
625
|
+
if (value === "" || RESTRICT_PAGE_NETWORK_OFF.has(value)) return false;
|
|
626
|
+
if (RESTRICT_PAGE_NETWORK_ON.has(value)) return true;
|
|
627
|
+
if (warnedRestrictPageNetworkValue !== raw) {
|
|
628
|
+
warnedRestrictPageNetworkValue = raw;
|
|
629
|
+
console.warn(
|
|
630
|
+
`[hyperframes] PRODUCER_RESTRICT_PAGE_NETWORK=${JSON.stringify(raw)} is neither true nor false; the render network stays restricted.`
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
return true;
|
|
618
634
|
}
|
|
619
635
|
function resolveConfig(overrides) {
|
|
620
636
|
const env = (key) => process.env[key];
|
|
@@ -5486,6 +5502,7 @@ var CA_BUNDLES = [
|
|
|
5486
5502
|
"/etc/ssl/cert.pem"
|
|
5487
5503
|
];
|
|
5488
5504
|
var RECONNECT_ARGS = ["-rw_timeout", "30000000", "-reconnect", "1", "-reconnect_delay_max", "2"];
|
|
5505
|
+
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";
|
|
5489
5506
|
function urlInputArgs(input, {
|
|
5490
5507
|
tool = "ffmpeg",
|
|
5491
5508
|
caBundles = CA_BUNDLES
|
|
@@ -5498,7 +5515,7 @@ function urlInputArgs(input, {
|
|
|
5498
5515
|
);
|
|
5499
5516
|
}
|
|
5500
5517
|
const networkRetry = tool === "ffmpeg" ? ["-reconnect_on_network_error", "1"] : [];
|
|
5501
|
-
const
|
|
5518
|
+
const renderServiceLimits = resolveRestrictPageNetwork() ? ["-protocol_whitelist", "https,tls,tcp", "-format_whitelist", SELF_CONTAINED_FORMATS] : [];
|
|
5502
5519
|
return [
|
|
5503
5520
|
"-tls_verify",
|
|
5504
5521
|
"1",
|
|
@@ -5506,7 +5523,7 @@ function urlInputArgs(input, {
|
|
|
5506
5523
|
caFile,
|
|
5507
5524
|
...RECONNECT_ARGS,
|
|
5508
5525
|
...networkRetry,
|
|
5509
|
-
...
|
|
5526
|
+
...renderServiceLimits
|
|
5510
5527
|
];
|
|
5511
5528
|
}
|
|
5512
5529
|
function redactUrlQueriesInError(error) {
|
|
@@ -12517,6 +12534,7 @@ import { pipeline } from "stream/promises";
|
|
|
12517
12534
|
|
|
12518
12535
|
// ../engine/src/utils/notMediaPayload.ts
|
|
12519
12536
|
import { createHash } from "crypto";
|
|
12537
|
+
import { constants } from "fs";
|
|
12520
12538
|
import { open as openFile } from "fs/promises";
|
|
12521
12539
|
import { dirname as dirname5, isAbsolute, relative, resolve as resolve2 } from "path";
|
|
12522
12540
|
var NOT_MEDIA_PAYLOAD = "NOT_MEDIA_PAYLOAD";
|
|
@@ -12558,17 +12576,36 @@ function byteOrderMarkLength(head) {
|
|
|
12558
12576
|
}
|
|
12559
12577
|
return 0;
|
|
12560
12578
|
}
|
|
12561
|
-
async function
|
|
12562
|
-
const
|
|
12579
|
+
async function readAt(fh, bytes, position) {
|
|
12580
|
+
const buf = Buffer.alloc(bytes);
|
|
12581
|
+
let filled = 0;
|
|
12582
|
+
while (filled < buf.length) {
|
|
12583
|
+
const { bytesRead } = await fh.read(buf, filled, buf.length - filled, position + filled);
|
|
12584
|
+
if (bytesRead === 0) break;
|
|
12585
|
+
filled += bytesRead;
|
|
12586
|
+
}
|
|
12587
|
+
return buf.subarray(0, filled);
|
|
12588
|
+
}
|
|
12589
|
+
var OPEN_WITHOUT_WAITING = constants.O_RDONLY | (constants.O_NONBLOCK ?? 0);
|
|
12590
|
+
async function openRegular(path) {
|
|
12591
|
+
const fh = await openFile(path, OPEN_WITHOUT_WAITING);
|
|
12592
|
+
try {
|
|
12593
|
+
const stats = await fh.stat();
|
|
12594
|
+
if (stats.isFile() || stats.isDirectory()) return fh;
|
|
12595
|
+
} catch (error) {
|
|
12596
|
+
await fh.close().catch(() => {
|
|
12597
|
+
});
|
|
12598
|
+
throw error;
|
|
12599
|
+
}
|
|
12600
|
+
await fh.close().catch(() => {
|
|
12601
|
+
});
|
|
12602
|
+
return null;
|
|
12603
|
+
}
|
|
12604
|
+
async function readHead(filePath) {
|
|
12605
|
+
const fh = await openRegular(filePath);
|
|
12606
|
+
if (!fh) return null;
|
|
12563
12607
|
try {
|
|
12564
|
-
|
|
12565
|
-
let filled = 0;
|
|
12566
|
-
while (filled < buf.length) {
|
|
12567
|
-
const { bytesRead } = await fh.read(buf, filled, buf.length - filled, filled);
|
|
12568
|
-
if (bytesRead === 0) break;
|
|
12569
|
-
filled += bytesRead;
|
|
12570
|
-
}
|
|
12571
|
-
return buf.subarray(0, filled);
|
|
12608
|
+
return await readAt(fh, SNIFF_BYTES, 0);
|
|
12572
12609
|
} finally {
|
|
12573
12610
|
await fh.close().catch(() => {
|
|
12574
12611
|
});
|
|
@@ -12585,7 +12622,8 @@ function startsWithDocumentByte(head) {
|
|
|
12585
12622
|
}
|
|
12586
12623
|
async function isNotMediaPayload(filePath) {
|
|
12587
12624
|
try {
|
|
12588
|
-
|
|
12625
|
+
const head = await readHead(filePath);
|
|
12626
|
+
return !head || startsWithDocumentByte(head) || await playlistLeavesItsFolder(filePath);
|
|
12589
12627
|
} catch {
|
|
12590
12628
|
return false;
|
|
12591
12629
|
}
|
|
@@ -12600,15 +12638,53 @@ var MAX_PLAYLIST_DEPTH = 8;
|
|
|
12600
12638
|
var HTTP_URL = /^https?:\/\//i;
|
|
12601
12639
|
var OTHER_SCHEME = /^[a-z][a-z0-9+.-]+:/i;
|
|
12602
12640
|
var DRIVE_PATH = /^[a-z]:[\\/]/i;
|
|
12641
|
+
var MAX_HLS_LINE_BYTES = 4095;
|
|
12642
|
+
var ATTRIBUTE_GAP = /[\t\n\v\f\r ,]/;
|
|
12643
|
+
function hlsEntries(body) {
|
|
12644
|
+
const names = /* @__PURE__ */ new Set();
|
|
12645
|
+
for (const raw of body.replaceAll("\0", "\n").split(/[\r\n]/)) {
|
|
12646
|
+
for (const whole of /* @__PURE__ */ new Set([raw, raw.slice(0, MAX_HLS_LINE_BYTES)])) {
|
|
12647
|
+
const line = whole.replace(/[\t\v\f ]+$/, "");
|
|
12648
|
+
const found = line.startsWith("#") ? attributeUris(line) : [line, line.trim()];
|
|
12649
|
+
for (const name of found) if (name) names.add(name);
|
|
12650
|
+
}
|
|
12651
|
+
}
|
|
12652
|
+
return [...names];
|
|
12653
|
+
}
|
|
12654
|
+
function attributeUris(line) {
|
|
12655
|
+
const uris = [];
|
|
12656
|
+
let at = line.indexOf(":") + 1;
|
|
12657
|
+
while (at > 0 && at < line.length) {
|
|
12658
|
+
while (at < line.length && ATTRIBUTE_GAP.test(line[at])) at++;
|
|
12659
|
+
const equals = line.indexOf("=", at);
|
|
12660
|
+
if (equals < 0) break;
|
|
12661
|
+
const [value, next] = attributeValue(line, equals + 1);
|
|
12662
|
+
if (line.slice(at, equals).toUpperCase() === "URI") uris.push(value);
|
|
12663
|
+
at = next;
|
|
12664
|
+
}
|
|
12665
|
+
return uris;
|
|
12666
|
+
}
|
|
12667
|
+
function attributeValue(line, at) {
|
|
12668
|
+
if (line[at] !== '"') {
|
|
12669
|
+
let end = at;
|
|
12670
|
+
while (end < line.length && !ATTRIBUTE_GAP.test(line[end])) end++;
|
|
12671
|
+
return [line.slice(at, end), end];
|
|
12672
|
+
}
|
|
12673
|
+
let value = "";
|
|
12674
|
+
let index = at + 1;
|
|
12675
|
+
for (; index < line.length && line[index] !== '"'; index++) {
|
|
12676
|
+
if (line[index] === "\\") {
|
|
12677
|
+
if (index + 1 >= line.length) break;
|
|
12678
|
+
index++;
|
|
12679
|
+
}
|
|
12680
|
+
value += line[index];
|
|
12681
|
+
}
|
|
12682
|
+
return [value, line[index] === '"' ? index + 1 : index];
|
|
12683
|
+
}
|
|
12684
|
+
var UTF8_BOM = "\xEF\xBB\xBF";
|
|
12603
12685
|
function playlistEntries(text) {
|
|
12604
|
-
const body = text.
|
|
12605
|
-
if (body.startsWith("#EXTM3U"))
|
|
12606
|
-
return body.split(/\r?\n/).flatMap((raw) => {
|
|
12607
|
-
const line = raw.trim();
|
|
12608
|
-
const uris = [...line.matchAll(/URI="([^"]*)"/gi)].map((match) => match[1]);
|
|
12609
|
-
return line && !line.startsWith("#") ? [line, ...uris] : uris;
|
|
12610
|
-
});
|
|
12611
|
-
}
|
|
12686
|
+
const body = (text.startsWith(UTF8_BOM) ? text.slice(UTF8_BOM.length) : text).trimStart();
|
|
12687
|
+
if (body.startsWith("#EXTM3U")) return hlsEntries(body);
|
|
12612
12688
|
if (/^ffconcat\s+version/i.test(body)) {
|
|
12613
12689
|
return body.split(/\r?\n/).flatMap((raw) => {
|
|
12614
12690
|
const match = /^\s*file\s+(.*)$/.exec(raw);
|
|
@@ -12622,49 +12698,89 @@ function playlistEntries(text) {
|
|
|
12622
12698
|
function entryLeavesFolder(entry, base, folder) {
|
|
12623
12699
|
if (HTTP_URL.test(entry)) return false;
|
|
12624
12700
|
if (OTHER_SCHEME.test(entry) && !DRIVE_PATH.test(entry)) return true;
|
|
12625
|
-
return [entry,
|
|
12701
|
+
return [entry, percentDecoded(entry)].some((path) => {
|
|
12626
12702
|
if (isAbsolute(path) || DRIVE_PATH.test(path) || path.startsWith("\\")) return true;
|
|
12627
12703
|
const inside = relative(folder, resolve2(base, path));
|
|
12628
12704
|
return inside === ".." || inside.startsWith("../") || inside.startsWith("..\\") || isAbsolute(inside);
|
|
12629
12705
|
});
|
|
12630
12706
|
}
|
|
12631
|
-
function
|
|
12707
|
+
function percentDecoded(value) {
|
|
12708
|
+
return value.replace(
|
|
12709
|
+
/%([0-9a-f]{2})/gi,
|
|
12710
|
+
(_escape, hex) => String.fromCharCode(Number.parseInt(hex, 16))
|
|
12711
|
+
);
|
|
12712
|
+
}
|
|
12713
|
+
var asBytes = (path) => Buffer.from(path).toString("latin1");
|
|
12714
|
+
async function playlistLeavesItsFolder(filePath, placedAt = filePath) {
|
|
12715
|
+
const placed = asBytes(resolve2(placedAt));
|
|
12716
|
+
const walk = { folder: dirname5(placed), seen: /* @__PURE__ */ new Set(), verdicts: /* @__PURE__ */ new Map() };
|
|
12632
12717
|
try {
|
|
12633
|
-
return
|
|
12718
|
+
return await listLeaves(asBytes(resolve2(filePath)), placed, walk, 0);
|
|
12634
12719
|
} catch {
|
|
12635
|
-
return
|
|
12720
|
+
return false;
|
|
12636
12721
|
}
|
|
12637
12722
|
}
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
return
|
|
12723
|
+
var MAX_ID3_TAGS = 16;
|
|
12724
|
+
function isId3Header(head) {
|
|
12725
|
+
return head.length >= 10 && head.toString("latin1", 0, 3) === "ID3" && head[3] !== 255 && head[4] !== 255 && head.subarray(6, 10).every((byte) => byte < 128);
|
|
12641
12726
|
}
|
|
12642
|
-
async function
|
|
12643
|
-
|
|
12644
|
-
|
|
12727
|
+
async function textStart(fh, first) {
|
|
12728
|
+
let offset = 0;
|
|
12729
|
+
let head = first;
|
|
12730
|
+
for (let tags = 0; tags <= MAX_ID3_TAGS; tags++) {
|
|
12731
|
+
if (!isId3Header(head)) return offset;
|
|
12732
|
+
const size = head[6] << 21 | head[7] << 14 | head[8] << 7 | head[9];
|
|
12733
|
+
offset += 10 + size + (head[5] & 16 ? 10 : 0);
|
|
12734
|
+
head = await readAt(fh, 10, offset);
|
|
12735
|
+
}
|
|
12736
|
+
return -1;
|
|
12737
|
+
}
|
|
12738
|
+
function startsAsPlaylist(head) {
|
|
12739
|
+
const text = head.toString("utf8").replace(/^\uFEFF/, "").trimStart();
|
|
12740
|
+
return text.startsWith("#EXTM3U") || /^ffconcat\s+version/i.test(text);
|
|
12645
12741
|
}
|
|
12646
|
-
async function
|
|
12742
|
+
async function readList(path) {
|
|
12743
|
+
const fh = await openRegular(Buffer.from(path, "latin1"));
|
|
12744
|
+
if (!fh) return true;
|
|
12647
12745
|
try {
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
if (
|
|
12651
|
-
|
|
12652
|
-
const body = await
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
}
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12746
|
+
const first = await readAt(fh, SNIFF_BYTES, 0);
|
|
12747
|
+
const start = await textStart(fh, first);
|
|
12748
|
+
if (start < 0) return true;
|
|
12749
|
+
if (!startsAsPlaylist(start === 0 ? first : await readAt(fh, SNIFF_BYTES, start))) return null;
|
|
12750
|
+
const body = await readAt(fh, MAX_PLAYLIST_BYTES + 1, start);
|
|
12751
|
+
return body.length > MAX_PLAYLIST_BYTES ? true : body.toString("latin1");
|
|
12752
|
+
} finally {
|
|
12753
|
+
await fh.close().catch(() => {
|
|
12754
|
+
});
|
|
12755
|
+
}
|
|
12756
|
+
}
|
|
12757
|
+
var isMissing = (error) => ["ENOENT", "ENOTDIR", "ENAMETOOLONG"].includes(
|
|
12758
|
+
error?.code ?? ""
|
|
12759
|
+
);
|
|
12760
|
+
async function listLeaves(readPath, path, walk, depth) {
|
|
12761
|
+
const text = await readList(readPath).catch(
|
|
12762
|
+
(error) => depth > 0 && !isMissing(error) ? true : null
|
|
12763
|
+
);
|
|
12764
|
+
if (text === null) return false;
|
|
12765
|
+
if (text === true || depth >= MAX_PLAYLIST_DEPTH) return true;
|
|
12766
|
+
if (walk.seen.has(path)) return false;
|
|
12767
|
+
walk.seen.add(path);
|
|
12768
|
+
for (const entry of playlistEntries(text) ?? []) {
|
|
12769
|
+
if (await entryLeaves(entry, dirname5(path), walk, depth)) return true;
|
|
12660
12770
|
}
|
|
12771
|
+
return false;
|
|
12661
12772
|
}
|
|
12662
|
-
async function entryLeaves(entry, base,
|
|
12663
|
-
if (entryLeavesFolder(entry, base, folder)) return true;
|
|
12773
|
+
async function entryLeaves(entry, base, walk, depth) {
|
|
12774
|
+
if (entryLeavesFolder(entry, base, walk.folder)) return true;
|
|
12664
12775
|
if (HTTP_URL.test(entry)) return false;
|
|
12665
|
-
for (const local of /* @__PURE__ */ new Set([entry,
|
|
12776
|
+
for (const local of /* @__PURE__ */ new Set([entry, percentDecoded(entry)])) {
|
|
12666
12777
|
const nested = resolve2(base, local);
|
|
12667
|
-
|
|
12778
|
+
let verdict = walk.verdicts.get(nested);
|
|
12779
|
+
if (verdict === void 0) {
|
|
12780
|
+
verdict = await listLeaves(nested, nested, walk, depth + 1);
|
|
12781
|
+
walk.verdicts.set(nested, verdict);
|
|
12782
|
+
}
|
|
12783
|
+
if (verdict) return true;
|
|
12668
12784
|
}
|
|
12669
12785
|
return false;
|
|
12670
12786
|
}
|
|
@@ -12720,6 +12836,18 @@ var UrlDownloadError = class extends Error {
|
|
|
12720
12836
|
telemetry;
|
|
12721
12837
|
locallyRetryable;
|
|
12722
12838
|
};
|
|
12839
|
+
var URL_NOT_PERMITTED = "Download URL is not permitted";
|
|
12840
|
+
var REDIRECT_NOT_PERMITTED = "Download redirect target is not permitted";
|
|
12841
|
+
function notPermittedError(redirect) {
|
|
12842
|
+
return new UrlDownloadError(
|
|
12843
|
+
"http_rejected",
|
|
12844
|
+
false,
|
|
12845
|
+
redirect ? REDIRECT_NOT_PERMITTED : URL_NOT_PERMITTED
|
|
12846
|
+
);
|
|
12847
|
+
}
|
|
12848
|
+
function isUrlNotPermittedError(error) {
|
|
12849
|
+
return error instanceof UrlDownloadError && (error.message === URL_NOT_PERMITTED || error.message === REDIRECT_NOT_PERMITTED);
|
|
12850
|
+
}
|
|
12723
12851
|
function classifyHttpFailure(status) {
|
|
12724
12852
|
const message = `HTTP ${status}`;
|
|
12725
12853
|
if (status === 404 || status === 410) {
|
|
@@ -12772,10 +12900,19 @@ function assertPublicHttpsUrl(url) {
|
|
|
12772
12900
|
if (parsed.protocol !== "https:") {
|
|
12773
12901
|
throw new Error(`[URLDownloader] Only HTTPS URLs are permitted in compositions`);
|
|
12774
12902
|
}
|
|
12775
|
-
if (isBlockedNetworkHost(parsed.hostname)) {
|
|
12903
|
+
if (isBlockedNetworkHost(parsed.hostname) || refusedByRestrictedNetwork(parsed.hostname)) {
|
|
12776
12904
|
throw new Error("[URLDownloader] URL targets a private/reserved address and is not permitted");
|
|
12777
12905
|
}
|
|
12778
12906
|
}
|
|
12907
|
+
function refusedByRestrictedNetwork(hostname) {
|
|
12908
|
+
if (!resolveRestrictPageNetwork()) return false;
|
|
12909
|
+
try {
|
|
12910
|
+
assertPublicHostname(hostname);
|
|
12911
|
+
return false;
|
|
12912
|
+
} catch {
|
|
12913
|
+
return true;
|
|
12914
|
+
}
|
|
12915
|
+
}
|
|
12779
12916
|
function getFilenameFromUrl(url, validationScope) {
|
|
12780
12917
|
const physicalIdentity = validationScope === "" ? url : `${url}\0${validationScope}`;
|
|
12781
12918
|
const hash = createHash2("md5").update(physicalIdentity).digest("hex").slice(0, 12);
|
|
@@ -12924,27 +13061,47 @@ async function acquireCachePathLock(localPath, timeoutMs, signal) {
|
|
|
12924
13061
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
12925
13062
|
var MAX_REDIRECTS = 5;
|
|
12926
13063
|
var NON_PUBLIC_ADDRESS_CODE = "HF_NON_PUBLIC_ADDRESS";
|
|
13064
|
+
function nonPublicAddressError() {
|
|
13065
|
+
return Object.assign(new Error("host resolves to a non-public address"), {
|
|
13066
|
+
code: NON_PUBLIC_ADDRESS_CODE
|
|
13067
|
+
});
|
|
13068
|
+
}
|
|
12927
13069
|
var publicOnlyLookup = (hostname, options, callback) => {
|
|
12928
13070
|
dns.lookup(hostname, { ...options, all: true }, (error, answers) => {
|
|
12929
13071
|
if (error) return callback(error, "", 0);
|
|
12930
13072
|
if (answers.length === 0 || answers.some((a) => isBlockedNetworkHost(a.address.split("%")[0]))) {
|
|
12931
|
-
|
|
12932
|
-
code: NON_PUBLIC_ADDRESS_CODE
|
|
12933
|
-
});
|
|
12934
|
-
return callback(refused, "", 0);
|
|
13073
|
+
return callback(nonPublicAddressError(), "", 0);
|
|
12935
13074
|
}
|
|
12936
13075
|
if (options.all) return callback(null, answers);
|
|
12937
13076
|
return callback(null, answers[0].address, answers[0].family);
|
|
12938
13077
|
});
|
|
12939
13078
|
};
|
|
12940
|
-
var
|
|
13079
|
+
var capturePolicyLookup = (hostname, options, callback) => {
|
|
13080
|
+
resolvePublicAddress(hostname).then(
|
|
13081
|
+
(address) => options.all ? callback(null, [{ address, family: 4 }]) : callback(null, address, 4),
|
|
13082
|
+
(error) => callback(
|
|
13083
|
+
error instanceof NonPublicHostError ? nonPublicAddressError() : error,
|
|
13084
|
+
"",
|
|
13085
|
+
0
|
|
13086
|
+
)
|
|
13087
|
+
);
|
|
13088
|
+
};
|
|
13089
|
+
var undiciTransports = /* @__PURE__ */ new Map();
|
|
13090
|
+
function undiciTransport(lookup) {
|
|
13091
|
+
let transport = undiciTransports.get(lookup);
|
|
13092
|
+
if (!transport) {
|
|
13093
|
+
transport = import("undici").then(({ Agent, fetch: undiciFetch }) => {
|
|
13094
|
+
const dispatcher = new Agent({ connect: { lookup } });
|
|
13095
|
+
return (target, options) => undiciFetch(target, { ...options, dispatcher });
|
|
13096
|
+
});
|
|
13097
|
+
undiciTransports.set(lookup, transport);
|
|
13098
|
+
}
|
|
13099
|
+
return transport;
|
|
13100
|
+
}
|
|
12941
13101
|
var fetchPublic = async (url, init) => {
|
|
13102
|
+
if (resolveRestrictPageNetwork()) return (await undiciTransport(capturePolicyLookup))(url, init);
|
|
12942
13103
|
if (fetchGoesThroughEnvProxy()) return fetch(url, init);
|
|
12943
|
-
|
|
12944
|
-
const dispatcher = new Agent({ connect: { lookup: publicOnlyLookup } });
|
|
12945
|
-
return (target, options) => undiciFetch(target, { ...options, dispatcher });
|
|
12946
|
-
});
|
|
12947
|
-
return (await undiciTransport)(url, init);
|
|
13104
|
+
return (await undiciTransport(publicOnlyLookup))(url, init);
|
|
12948
13105
|
};
|
|
12949
13106
|
var downloadFetch = fetchPublic;
|
|
12950
13107
|
function _setDownloadFetchForTests(replacement) {
|
|
@@ -12963,11 +13120,7 @@ function assertAllowedDownloadUrl(url, redirect) {
|
|
|
12963
13120
|
try {
|
|
12964
13121
|
assertPublicHttpsUrl(url);
|
|
12965
13122
|
} catch {
|
|
12966
|
-
throw
|
|
12967
|
-
"http_rejected",
|
|
12968
|
-
false,
|
|
12969
|
-
redirect ? "Download redirect target is not permitted" : "Download URL is not permitted"
|
|
12970
|
-
);
|
|
13123
|
+
throw notPermittedError(redirect);
|
|
12971
13124
|
}
|
|
12972
13125
|
}
|
|
12973
13126
|
async function cancelResponseBody(response) {
|
|
@@ -13004,11 +13157,7 @@ async function fetchWithValidatedRedirects(initialUrl, controller) {
|
|
|
13004
13157
|
headers: { "accept-encoding": "identity" }
|
|
13005
13158
|
}).catch((error) => {
|
|
13006
13159
|
if (!refusedNonPublicAddress(error)) throw error;
|
|
13007
|
-
throw
|
|
13008
|
-
"http_rejected",
|
|
13009
|
-
false,
|
|
13010
|
-
redirects > 0 ? "Download redirect target is not permitted" : "Download URL is not permitted"
|
|
13011
|
-
);
|
|
13160
|
+
throw notPermittedError(redirects > 0);
|
|
13012
13161
|
});
|
|
13013
13162
|
if (!REDIRECT_STATUSES.has(response.status)) return { response, finalUrl: currentUrl };
|
|
13014
13163
|
await cancelResponseBody(response);
|
|
@@ -13194,7 +13343,60 @@ function checksumMismatchError(source, status, telemetry) {
|
|
|
13194
13343
|
true
|
|
13195
13344
|
);
|
|
13196
13345
|
}
|
|
13197
|
-
|
|
13346
|
+
var DEFAULT_MAX_DOWNLOAD_BYTES = 20 * 1024 ** 3;
|
|
13347
|
+
var DEFAULT_MIN_DOWNLOAD_BYTES_PER_SEC = 32 * 1024;
|
|
13348
|
+
var THROUGHPUT_WINDOW_SECONDS = 60;
|
|
13349
|
+
function integerFromEnv(name, fallback, minimum) {
|
|
13350
|
+
const raw = process.env[name]?.trim();
|
|
13351
|
+
if (!raw || !/^\d+$/.test(raw)) return fallback;
|
|
13352
|
+
const value = Number(raw);
|
|
13353
|
+
return Number.isSafeInteger(value) && value >= minimum ? value : fallback;
|
|
13354
|
+
}
|
|
13355
|
+
var maxDownloadBytes = () => integerFromEnv("HYPERFRAMES_MAX_DOWNLOAD_BYTES", DEFAULT_MAX_DOWNLOAD_BYTES, 1);
|
|
13356
|
+
var minDownloadBytesPerSec = () => integerFromEnv("HYPERFRAMES_MIN_DOWNLOAD_BYTES_PER_SEC", DEFAULT_MIN_DOWNLOAD_BYTES_PER_SEC, 0);
|
|
13357
|
+
function isCompressedEncoding(contentEncoding) {
|
|
13358
|
+
const encoding = contentEncoding?.trim().toLowerCase();
|
|
13359
|
+
return Boolean(encoding) && encoding !== "identity";
|
|
13360
|
+
}
|
|
13361
|
+
function overByteLimitError(maxBytes, status, telemetry) {
|
|
13362
|
+
return new UrlDownloadError(
|
|
13363
|
+
"length_mismatch",
|
|
13364
|
+
false,
|
|
13365
|
+
`Download exceeded the ${maxBytes}-byte limit`,
|
|
13366
|
+
status,
|
|
13367
|
+
telemetry
|
|
13368
|
+
);
|
|
13369
|
+
}
|
|
13370
|
+
var ThroughputWindow = class {
|
|
13371
|
+
constructor(startedAtMs) {
|
|
13372
|
+
this.startedAtMs = startedAtMs;
|
|
13373
|
+
this.currentSecond = Math.floor(startedAtMs / 1e3);
|
|
13374
|
+
}
|
|
13375
|
+
startedAtMs;
|
|
13376
|
+
buckets = new Array(THROUGHPUT_WINDOW_SECONDS + 1).fill(0);
|
|
13377
|
+
bytesInWindow = 0;
|
|
13378
|
+
currentSecond;
|
|
13379
|
+
record(byteCount, nowMs) {
|
|
13380
|
+
this.advanceTo(nowMs);
|
|
13381
|
+
this.buckets[this.currentSecond % this.buckets.length] += byteCount;
|
|
13382
|
+
this.bytesInWindow += byteCount;
|
|
13383
|
+
}
|
|
13384
|
+
isBelow(minBytesPerSec, nowMs) {
|
|
13385
|
+
this.advanceTo(nowMs);
|
|
13386
|
+
return nowMs - this.startedAtMs >= THROUGHPUT_WINDOW_SECONDS * 1e3 && this.bytesInWindow < minBytesPerSec * THROUGHPUT_WINDOW_SECONDS;
|
|
13387
|
+
}
|
|
13388
|
+
advanceTo(nowMs) {
|
|
13389
|
+
const second = Math.floor(nowMs / 1e3);
|
|
13390
|
+
const expired = Math.min(second - this.currentSecond, this.buckets.length);
|
|
13391
|
+
for (let step = 1; step <= expired; step += 1) {
|
|
13392
|
+
const index = (this.currentSecond + step) % this.buckets.length;
|
|
13393
|
+
this.bytesInWindow -= this.buckets[index];
|
|
13394
|
+
this.buckets[index] = 0;
|
|
13395
|
+
}
|
|
13396
|
+
this.currentSecond = Math.max(second, this.currentSecond);
|
|
13397
|
+
}
|
|
13398
|
+
};
|
|
13399
|
+
async function fetchToPartial(url, partialPath, controller, options, onBodyBytes) {
|
|
13198
13400
|
const { response, finalUrl } = await fetchWithValidatedRedirects(url, controller);
|
|
13199
13401
|
const finalIdentity = safeDownloadUrlIdentity(finalUrl);
|
|
13200
13402
|
const rangeDisposition = classifyRangeDisposition(response);
|
|
@@ -13252,8 +13454,26 @@ async function fetchToPartial(url, partialPath, controller, options, onSizedBody
|
|
|
13252
13454
|
}
|
|
13253
13455
|
throw error;
|
|
13254
13456
|
}
|
|
13255
|
-
const
|
|
13256
|
-
|
|
13457
|
+
const responseTelemetry = { finalHost: finalIdentity.host, status: response.status };
|
|
13458
|
+
if (isCompressedEncoding(response.headers.get("content-encoding"))) {
|
|
13459
|
+
await cancelResponseBody(response);
|
|
13460
|
+
throw new UrlDownloadError(
|
|
13461
|
+
"http_rejected",
|
|
13462
|
+
false,
|
|
13463
|
+
"Download response is compressed; only identity Content-Encoding is accepted",
|
|
13464
|
+
response.status,
|
|
13465
|
+
responseTelemetry
|
|
13466
|
+
);
|
|
13467
|
+
}
|
|
13468
|
+
const maxBytes = maxDownloadBytes();
|
|
13469
|
+
if (declaredLength !== void 0 && declaredLength > maxBytes) {
|
|
13470
|
+
await cancelResponseBody(response);
|
|
13471
|
+
throw overByteLimitError(maxBytes, response.status, {
|
|
13472
|
+
...responseTelemetry,
|
|
13473
|
+
expectedBytes: declaredLength
|
|
13474
|
+
});
|
|
13475
|
+
}
|
|
13476
|
+
const expectedBytes = declaredLength;
|
|
13257
13477
|
let receivedBytes = 0;
|
|
13258
13478
|
const sha256 = createHash2("sha256");
|
|
13259
13479
|
const md5 = createHash2("md5");
|
|
@@ -13262,8 +13482,18 @@ async function fetchToPartial(url, partialPath, controller, options, onSizedBody
|
|
|
13262
13482
|
const inspector = new Transform({
|
|
13263
13483
|
transform(chunk, _encoding, callback) {
|
|
13264
13484
|
const bytes = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
13265
|
-
|
|
13485
|
+
onBodyBytes(bytes.length, declaredLength !== void 0);
|
|
13266
13486
|
receivedBytes += bytes.length;
|
|
13487
|
+
if (receivedBytes > maxBytes) {
|
|
13488
|
+
callback(
|
|
13489
|
+
overByteLimitError(maxBytes, response.status, {
|
|
13490
|
+
...responseTelemetry,
|
|
13491
|
+
expectedBytes,
|
|
13492
|
+
receivedBytes
|
|
13493
|
+
})
|
|
13494
|
+
);
|
|
13495
|
+
return;
|
|
13496
|
+
}
|
|
13267
13497
|
sha256.update(bytes);
|
|
13268
13498
|
md5.update(bytes);
|
|
13269
13499
|
if (prefixBytes < 1024) {
|
|
@@ -13418,12 +13648,34 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13418
13648
|
sizedBodyStarted = true;
|
|
13419
13649
|
armTimeout();
|
|
13420
13650
|
};
|
|
13651
|
+
const minBytesPerSec = minDownloadBytesPerSec();
|
|
13652
|
+
let throughput;
|
|
13653
|
+
let tooSlow = false;
|
|
13654
|
+
let floorCheckId;
|
|
13655
|
+
const checkThroughputFloor = () => {
|
|
13656
|
+
if (throughput?.isBelow(minBytesPerSec, Date.now())) {
|
|
13657
|
+
tooSlow = true;
|
|
13658
|
+
controller.abort();
|
|
13659
|
+
return;
|
|
13660
|
+
}
|
|
13661
|
+
floorCheckId = setTimeout(checkThroughputFloor, 1e3);
|
|
13662
|
+
};
|
|
13663
|
+
const onBodyBytes = (byteCount, sized) => {
|
|
13664
|
+
if (sized) extendTimeout();
|
|
13665
|
+
if (minBytesPerSec === 0) return;
|
|
13666
|
+
if (!throughput) {
|
|
13667
|
+
throughput = new ThroughputWindow(Date.now());
|
|
13668
|
+
floorCheckId = setTimeout(checkThroughputFloor, 1e3);
|
|
13669
|
+
}
|
|
13670
|
+
throughput.record(byteCount, Date.now());
|
|
13671
|
+
};
|
|
13421
13672
|
const identity = safeDownloadUrlIdentity(url);
|
|
13422
13673
|
try {
|
|
13423
13674
|
if (callerAborted) {
|
|
13424
13675
|
throw new UrlDownloadError("cancelled", false, "Download cancelled");
|
|
13425
13676
|
}
|
|
13426
|
-
const integrity = await fetchToPartial(url, partialPath, controller, options,
|
|
13677
|
+
const integrity = await fetchToPartial(url, partialPath, controller, options, onBodyBytes);
|
|
13678
|
+
clearTimeout(floorCheckId);
|
|
13427
13679
|
if (await playlistLeavesItsFolder(partialPath, localPath)) {
|
|
13428
13680
|
throw new UrlDownloadError(
|
|
13429
13681
|
"invalid_payload",
|
|
@@ -13502,6 +13754,21 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13502
13754
|
});
|
|
13503
13755
|
throw classified2;
|
|
13504
13756
|
}
|
|
13757
|
+
if (tooSlow) {
|
|
13758
|
+
const classified2 = new UrlDownloadError(
|
|
13759
|
+
"timeout",
|
|
13760
|
+
true,
|
|
13761
|
+
`Download too slow: under ${minBytesPerSec} bytes/s over the last ${THROUGHPUT_WINDOW_SECONDS}s`
|
|
13762
|
+
);
|
|
13763
|
+
emitDownloadTelemetry(options, {
|
|
13764
|
+
urlFingerprint: identity.urlFingerprint,
|
|
13765
|
+
initialHost: identity.host,
|
|
13766
|
+
attempt,
|
|
13767
|
+
outcome: "attempt_failed",
|
|
13768
|
+
failureKind: classified2.kind
|
|
13769
|
+
});
|
|
13770
|
+
throw classified2;
|
|
13771
|
+
}
|
|
13505
13772
|
const classified = classifyDownloadFailure(error);
|
|
13506
13773
|
emitDownloadTelemetry(options, {
|
|
13507
13774
|
urlFingerprint: identity.urlFingerprint,
|
|
@@ -13514,6 +13781,7 @@ async function runDownloadAttempt(url, localPath, timeoutMs, attempt, options, s
|
|
|
13514
13781
|
throw classified;
|
|
13515
13782
|
} finally {
|
|
13516
13783
|
clearTimeout(timeoutId);
|
|
13784
|
+
clearTimeout(floorCheckId);
|
|
13517
13785
|
signal?.removeEventListener("abort", onCallerAbort);
|
|
13518
13786
|
controller.abort();
|
|
13519
13787
|
rmSync3(attemptDir, { recursive: true, force: true });
|
|
@@ -13748,6 +14016,7 @@ function truncateUtf8(text, maxBytes) {
|
|
|
13748
14016
|
// ../engine/src/services/extractionCache.ts
|
|
13749
14017
|
import { createHash as createHash4, randomUUID as randomUUID3 } from "crypto";
|
|
13750
14018
|
import {
|
|
14019
|
+
chmodSync,
|
|
13751
14020
|
createReadStream as createReadStream3,
|
|
13752
14021
|
existsSync as existsSync9,
|
|
13753
14022
|
lstatSync as lstatSync2,
|
|
@@ -13761,6 +14030,14 @@ import {
|
|
|
13761
14030
|
import { join as join12 } from "path";
|
|
13762
14031
|
var COMPLETE_SENTINEL = ".hf-complete";
|
|
13763
14032
|
var GC_MARKER = ".hf-last-gc";
|
|
14033
|
+
function privateCacheRoot(root, uid = process.getuid?.()) {
|
|
14034
|
+
if (uid === void 0 || root !== defaultExtractCacheDir()) return root;
|
|
14035
|
+
mkdirSync5(root, { recursive: true, mode: 448 });
|
|
14036
|
+
const stat = lstatSync2(root);
|
|
14037
|
+
if (!stat.isDirectory() || stat.uid !== uid) return void 0;
|
|
14038
|
+
if ((stat.mode & 63) !== 0) chmodSync(root, 448);
|
|
14039
|
+
return root;
|
|
14040
|
+
}
|
|
13764
14041
|
var SCHEMA_PREFIX = "hfcache-v10-";
|
|
13765
14042
|
var KEY_HEX_CHARS = 16;
|
|
13766
14043
|
async function readContentSha256(path, signal) {
|
|
@@ -15451,11 +15728,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15451
15728
|
let cacheRootDir;
|
|
15452
15729
|
if (configuredCacheRootDir) {
|
|
15453
15730
|
try {
|
|
15454
|
-
|
|
15455
|
-
cacheRootDir
|
|
15731
|
+
cacheRootDir = privateCacheRoot(configuredCacheRootDir);
|
|
15732
|
+
if (cacheRootDir) mkdirSync6(cacheRootDir, { recursive: true });
|
|
15456
15733
|
} catch {
|
|
15734
|
+
cacheRootDir = void 0;
|
|
15735
|
+
}
|
|
15736
|
+
if (!cacheRootDir) {
|
|
15457
15737
|
process.stderr.write(
|
|
15458
|
-
`[hyperframes:render] WARNING: extraction cache dir ${configuredCacheRootDir} is not writable; caching disabled for this render
|
|
15738
|
+
`[hyperframes:render] WARNING: extraction cache dir ${configuredCacheRootDir} is not a writable directory of this user; caching disabled for this render
|
|
15459
15739
|
`
|
|
15460
15740
|
);
|
|
15461
15741
|
}
|
|
@@ -19176,6 +19456,13 @@ function formatWorkerFailure(result) {
|
|
|
19176
19456
|
const diagnostics = result.diagnostics.map(compactDiagnosticLine).join(" | ");
|
|
19177
19457
|
return `${base}; diagnostics: ${diagnostics}`;
|
|
19178
19458
|
}
|
|
19459
|
+
function formatPoolFailure(errors) {
|
|
19460
|
+
const causes = errors.filter((result) => result.failure?.kind !== "cancelled");
|
|
19461
|
+
const stopped = errors.length - causes.length;
|
|
19462
|
+
if (causes.length === 0 || stopped === 0) return errors.map(formatWorkerFailure).join("; ");
|
|
19463
|
+
const peers = stopped === 1 ? "1 other worker was" : `${stopped} other workers were`;
|
|
19464
|
+
return `${causes.map(formatWorkerFailure).join("; ")} (${peers} stopped after this failure)`;
|
|
19465
|
+
}
|
|
19179
19466
|
function computeWorkerSizing(totalFrames, requested, config) {
|
|
19180
19467
|
const cpuCount = usableCpuCount();
|
|
19181
19468
|
const totalMemoryMb = getSystemTotalMb();
|
|
@@ -19750,7 +20037,7 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
19750
20037
|
flagSilentWorkerExits(results);
|
|
19751
20038
|
const errors = results.filter((r) => r.failure || r.error);
|
|
19752
20039
|
if (errors.length > 0) {
|
|
19753
|
-
const errorMessages = errors
|
|
20040
|
+
const errorMessages = formatPoolFailure(errors);
|
|
19754
20041
|
const representative = failureHandler.firstFatalFailure() ?? errors.find((result) => result.failure)?.failure;
|
|
19755
20042
|
const workerDiagnostics = errors.flatMap((result) => result.failure?.workerDiagnostics ?? []);
|
|
19756
20043
|
throw new CaptureFailure({
|
|
@@ -19798,7 +20085,7 @@ function getSystemResources() {
|
|
|
19798
20085
|
// ../engine/src/services/fileServer.ts
|
|
19799
20086
|
import { Hono } from "hono";
|
|
19800
20087
|
import { serve } from "@hono/node-server";
|
|
19801
|
-
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants } from "fs";
|
|
20088
|
+
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants as constants2 } from "fs";
|
|
19802
20089
|
import { join as join20, extname as extname3 } from "path";
|
|
19803
20090
|
var MIME_TYPES = {
|
|
19804
20091
|
".html": "text/html; charset=utf-8",
|
|
@@ -19831,7 +20118,7 @@ var MIME_TYPES = {
|
|
|
19831
20118
|
function readRegularFile(filePath) {
|
|
19832
20119
|
let fd;
|
|
19833
20120
|
try {
|
|
19834
|
-
fd = openSync5(filePath,
|
|
20121
|
+
fd = openSync5(filePath, constants2.O_RDONLY | constants2.O_NONBLOCK);
|
|
19835
20122
|
} catch (error) {
|
|
19836
20123
|
if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ENOTDIR"))
|
|
19837
20124
|
return null;
|
|
@@ -20238,6 +20525,7 @@ export {
|
|
|
20238
20525
|
resolveExtractCacheDir,
|
|
20239
20526
|
explainDrawElementDisabled,
|
|
20240
20527
|
resolvePageNavigationTimeout,
|
|
20528
|
+
resolveRestrictPageNetwork,
|
|
20241
20529
|
resolveConfig,
|
|
20242
20530
|
shouldClampToScreenshotForConcreteGpu,
|
|
20243
20531
|
applyConcreteGpuScreenshotClamp,
|
|
@@ -20416,6 +20704,7 @@ export {
|
|
|
20416
20704
|
playlistLeavesItsFolder,
|
|
20417
20705
|
safeDownloadUrlIdentity,
|
|
20418
20706
|
writeUrlDownloadTelemetry,
|
|
20707
|
+
isUrlNotPermittedError,
|
|
20419
20708
|
assertPublicHttpsUrl,
|
|
20420
20709
|
_setDownloadFetchForTests,
|
|
20421
20710
|
fetchPublicHttpsBytes,
|
|
@@ -20423,6 +20712,7 @@ export {
|
|
|
20423
20712
|
downloadToTemp,
|
|
20424
20713
|
isHttpUrl,
|
|
20425
20714
|
mediaIdPathSegment,
|
|
20715
|
+
privateCacheRoot,
|
|
20426
20716
|
directorySizeBytes,
|
|
20427
20717
|
gcExtractionCache,
|
|
20428
20718
|
VIDEO_FRAME_FORMATS,
|