hyperframes 0.9.59 → 0.9.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-C7J7HSLI.js → add-OBIEVDD7.js} +26 -27
- package/dist/{agentPromptGenerator-GCLJUGVE.js → agentPromptGenerator-KOFDIQGE.js} +15 -17
- package/dist/{animatedGifPrep-JPQZPZC4.js → animatedGifPrep-C4S7AVG7.js} +20 -21
- package/dist/api.d.ts +8 -1
- package/dist/api.js +58 -58
- package/dist/{appHistory-TQ6JAEP5.js → appHistory-ASGUPUUV.js} +5 -6
- package/dist/{asset-HQEPGBDJ.js → asset-FUQDWJ62.js} +15 -5
- package/dist/{assetCataloger-LMPPKPF6.js → assetCataloger-A5N6O4JB.js} +16 -18
- package/dist/{audio-FD2EBZ6D.js → audio-AFNZLDGT.js} +45 -45
- package/dist/{auth-JA7XH6NG.js → auth-N2G7ERXF.js} +4 -4
- package/dist/{autoUpdate-WKW2OMIY.js → autoUpdate-ZGC4CJIP.js} +4 -4
- package/dist/{avatars-Q7U6CO4X.js → avatars-ALJTTP5M.js} +23 -25
- package/dist/{backgroundChecks-H2SOS2CM.js → backgroundChecks-3S6MXDFU.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-75OLVMZY.js → batchRender-HZIXQY4N.js} +7 -9
- package/dist/{beats-R4EHWWJN.js → beats-2XU7WVQU.js} +16 -18
- package/dist/{benchmark-F5OHG3Q3.js → benchmark-SBZQIKED.js} +27 -27
- package/dist/{billing-LBRSBVXQ.js → billing-2DFCEQSM.js} +21 -23
- package/dist/{browser-CNTCFZOG.js → browser-336OZKWA.js} +13 -15
- package/dist/{bundleWithLocalizedFonts-RVF7AFP5.js → bundleWithLocalizedFonts-DMW5VAFU.js} +1 -1
- package/dist/{capture-CTRZEZTC.js → capture-AD5PYZ2O.js} +10 -12
- package/dist/{capture-DLYM3V5F.js → capture-Z3LNLS32.js} +43 -41
- package/dist/{captureCompositionFrame-2O2HP6SK.js → captureCompositionFrame-2BVCI3V2.js} +22 -24
- package/dist/{captureFile-W7ZDDBCD.js → captureFile-Z7HQDRC2.js} +4 -5
- package/dist/{catalog-6XL63LU3.js → catalog-OKCKRILJ.js} +28 -30
- package/dist/{catch-up-AOFQWE6O.js → catch-up-MP2BCTZH.js} +15 -17
- package/dist/{check-5V7K4RL6.js → check-FYG4RBOV.js} +62 -63
- package/dist/{checkAudio-4YUTDQSQ.js → checkAudio-3RKJELTT.js} +18 -20
- package/dist/{checkBrowser-BAWRZZZU.js → checkBrowser-R3KY4UR5.js} +52 -53
- package/dist/{chunk-EGZQX3UX.js → chunk-2SPQTJA2.js} +24 -22
- package/dist/{chunk-2ARKMOCD.js → chunk-2XKRMQJP.js} +6 -6
- package/dist/{chunk-MHF5F4FF.js → chunk-3GF72UPC.js} +74 -15
- package/dist/chunk-3HJX4F2S.js +39 -0
- package/dist/{chunk-KYXH4JWF.js → chunk-3KKKIHBJ.js} +18 -17
- package/dist/{chunk-QC35TPEE.js → chunk-3O2FM72C.js} +6 -6
- package/dist/{chunk-WDMSNDHS.js → chunk-3SMQ3AKQ.js} +297 -115
- package/dist/{chunk-MVA4OQL7.js → chunk-4KEONZJ2.js} +1 -1
- package/dist/{chunk-O733DEVT.js → chunk-4ORH2OXS.js} +1 -1
- package/dist/{chunk-VPPKUCSP.js → chunk-4SDNEKTL.js} +2 -2
- package/dist/{chunk-AEXDJU77.js → chunk-4T45V6GF.js} +1 -1
- package/dist/{chunk-CIXP5G7Z.js → chunk-5GUYYSVT.js} +1 -1
- package/dist/{chunk-ZQIMO52O.js → chunk-5RCXJH5B.js} +59 -24
- package/dist/{chunk-TVWDS5AT.js → chunk-5T2LNQAH.js} +46 -18
- package/dist/{chunk-XZ6THYIK.js → chunk-5YY4SRBH.js} +5 -5
- package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
- package/dist/{chunk-5T6HPV25.js → chunk-63CSQYYO.js} +2 -2
- package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
- package/dist/{chunk-N6QWL3E7.js → chunk-6HHKHDMW.js} +2 -2
- package/dist/{chunk-Z2U7ELGP.js → chunk-6KU6TCSS.js} +2 -2
- package/dist/{chunk-PSREPOJ4.js → chunk-6PANJZEW.js} +18 -14
- package/dist/{chunk-YMKCJRVK.js → chunk-7AYDKU2X.js} +1 -1
- package/dist/{chunk-PMKWTXHE.js → chunk-7CSPYOLI.js} +2 -2
- package/dist/{chunk-KQHDFVFF.js → chunk-7F3NOYSK.js} +2 -2
- package/dist/{chunk-ZMLZRMG7.js → chunk-7NHID6VP.js} +2 -2
- package/dist/{chunk-BMTT2T7M.js → chunk-7NMH22SY.js} +5 -5
- package/dist/{chunk-RDWGNSVI.js → chunk-7YB4BDX7.js} +2 -2
- package/dist/{chunk-RAOGN2HG.js → chunk-A65Q5P62.js} +1 -1
- package/dist/{chunk-JQ7BPN2R.js → chunk-ABK44JS4.js} +3 -3
- package/dist/{chunk-DSCMYTKJ.js → chunk-AQFSYY23.js} +3 -3
- package/dist/{chunk-PLOCYJ5U.js → chunk-B5TLZC2D.js} +11 -4
- package/dist/{chunk-EUVU5JS4.js → chunk-BGIRYNAW.js} +38 -11
- package/dist/{chunk-URHIQHDR.js → chunk-BGV5YKSM.js} +14 -12
- package/dist/{chunk-QVHDAS3L.js → chunk-BJLC2UEQ.js} +4 -4
- package/dist/{chunk-QHVE6AFU.js → chunk-BJMW2GYO.js} +1 -1
- package/dist/{chunk-LSGJY2FG.js → chunk-CDPVVNNZ.js} +1 -1
- package/dist/{chunk-HXFGAI6L.js → chunk-CLRASDLH.js} +16 -16
- package/dist/{chunk-CAMD2NBN.js → chunk-CSMWC336.js} +2 -2
- package/dist/{chunk-WRSGWDDB.js → chunk-CZYQR7VM.js} +9 -9
- package/dist/chunk-D37I36FY.js +21 -0
- package/dist/{chunk-6LGB4MVX.js → chunk-DEWY2KX4.js} +1 -1
- package/dist/{chunk-OV5OSN74.js → chunk-DG4VSBM3.js} +3 -3
- package/dist/{chunk-L456Q4KU.js → chunk-DJCBHKQ5.js} +1 -1
- package/dist/{chunk-SGQKP2JT.js → chunk-DN4KUTQ5.js} +2 -2
- package/dist/{chunk-RHFB457E.js → chunk-DVUC244G.js} +3 -3
- package/dist/{chunk-7Q4EGB3N.js → chunk-E6WYYM6K.js} +1 -1
- package/dist/chunk-EJINQHA6.js +113 -0
- package/dist/{chunk-T5QI7ZL2.js → chunk-EPWGATQN.js} +5 -5
- package/dist/{chunk-VXRTE7MZ.js → chunk-ERYGKPIR.js} +1 -1
- package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
- package/dist/{chunk-L4MXZHRB.js → chunk-FA6TQ22Y.js} +3 -3
- package/dist/{chunk-JLMMY3UI.js → chunk-FAYFXXVF.js} +2 -2
- package/dist/{chunk-JUUOYXWH.js → chunk-FEURVA3G.js} +2 -2
- package/dist/{chunk-PHYFZXOS.js → chunk-FLJ4S7NA.js} +2 -2
- package/dist/{chunk-LZWG4GCC.js → chunk-GGSE4SO2.js} +55 -125
- package/dist/chunk-GJPT5Q6H.js +112 -0
- package/dist/{chunk-C3NDLM4S.js → chunk-GPZIE45V.js} +2 -2
- package/dist/{chunk-6UAYOSE7.js → chunk-GRBYYKYT.js} +9 -9
- package/dist/{chunk-GYJ7AJXN.js → chunk-H4HYZUE3.js} +1 -1
- package/dist/{chunk-7YRZBB4C.js → chunk-H7FGALE4.js} +1 -1
- package/dist/{chunk-FQ26QE5N.js → chunk-HAFE7SZR.js} +1 -1
- package/dist/{chunk-TIZC4XKU.js → chunk-HAMPVCRY.js} +2 -2
- package/dist/{chunk-POFQOZOF.js → chunk-HF2A733B.js} +490 -224
- package/dist/{chunk-3DFEBAWJ.js → chunk-HGVBKNLQ.js} +2 -2
- package/dist/{chunk-4STRMCGD.js → chunk-HHM2JZLH.js} +4 -4
- package/dist/{chunk-PYRM3OAI.js → chunk-HJTCWQGF.js} +11 -13
- package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
- package/dist/{chunk-SC7SX2I3.js → chunk-HMY3GUJN.js} +4 -4
- package/dist/{chunk-3RTZ2UX7.js → chunk-HS7YBLZS.js} +1 -1
- package/dist/{chunk-B653JKWT.js → chunk-HY6N5K6U.js} +4 -4
- package/dist/{chunk-WI3FM54X.js → chunk-HZMDLKRP.js} +3 -3
- package/dist/{chunk-6ATP7YPZ.js → chunk-IBU2BW4H.js} +9 -4
- package/dist/{chunk-I5H2FPNP.js → chunk-ICP22AQY.js} +1 -1
- package/dist/{chunk-ORKZUTZW.js → chunk-IOWECUEU.js} +1 -1
- package/dist/{chunk-RKIF4EU7.js → chunk-IS45C2EI.js} +14 -14
- package/dist/{chunk-SXCM6VY3.js → chunk-IU6AC3WL.js} +1 -1
- package/dist/{chunk-FGJUVWAM.js → chunk-J2MAI47E.js} +1 -1
- package/dist/{chunk-K33E3YNK.js → chunk-J43NNMIX.js} +10 -10
- package/dist/{chunk-FC77MYAD.js → chunk-J4YDHNAH.js} +1 -1
- package/dist/{chunk-QKHW5NXL.js → chunk-JDKLF3AG.js} +2 -2
- package/dist/{chunk-PCHUX7Y5.js → chunk-JU4ZWNU6.js} +2 -2
- package/dist/{chunk-2LJPBYKI.js → chunk-KDLMUU3E.js} +1 -1
- package/dist/{chunk-OPIS2YMA.js → chunk-KIWGMFXC.js} +6 -6
- package/dist/{chunk-ISSG4PUD.js → chunk-LGIWC6KN.js} +3 -3
- package/dist/{chunk-YXX6CIHL.js → chunk-LKHH4BUW.js} +12 -1
- package/dist/{chunk-PDT6CBK2.js → chunk-LNDOTF7B.js} +8 -3
- package/dist/{chunk-BTXYXM2A.js → chunk-LYGIKJBA.js} +17 -17
- package/dist/{chunk-K2WLOTTF.js → chunk-LYTELQL2.js} +2 -4
- package/dist/chunk-MCTQEI6H.js +170 -0
- package/dist/{chunk-XXJBWKDS.js → chunk-MHS3RUAQ.js} +17 -17
- package/dist/{chunk-H3TD4VKX.js → chunk-MJBBKSKB.js} +1 -1
- package/dist/{chunk-ODLSLYJR.js → chunk-MTCVUAUK.js} +2 -2
- package/dist/{chunk-FFL5R2EZ.js → chunk-N5EZRITN.js} +4 -4
- package/dist/{chunk-65X2G57W.js → chunk-NEZVFC34.js} +4 -4
- package/dist/{chunk-J4OHC5FU.js → chunk-NK2UW3WR.js} +1 -1
- package/dist/{chunk-763UG5II.js → chunk-OOVT26AC.js} +8 -8
- package/dist/{chunk-JT7RXK2N.js → chunk-OW6MOJSR.js} +1 -1
- package/dist/{chunk-4VJQVTQI.js → chunk-PAHTZDMZ.js} +1 -1
- package/dist/chunk-PET4B6IL.js +159 -0
- package/dist/{chunk-7XOORL2Q.js → chunk-PJ22RPTH.js} +10 -10
- package/dist/{chunk-I6OSAVHD.js → chunk-PLI7YT5S.js} +7 -11
- package/dist/{chunk-6VY52EVW.js → chunk-PQ2OPPGP.js} +7 -3
- package/dist/{chunk-KK5Z5XQ3.js → chunk-PTGNUVCB.js} +3 -0
- package/dist/{chunk-HTISHNLA.js → chunk-Q7IOMZ5X.js} +1 -1
- package/dist/{chunk-TNFTRLLJ.js → chunk-QOLZBRLN.js} +3 -3
- package/dist/{chunk-WQGDE3L6.js → chunk-QUYSLXNP.js} +1 -1
- package/dist/{chunk-6R4MEYWD.js → chunk-QY42NK3T.js} +2 -2
- package/dist/{chunk-CC72LTIT.js → chunk-R5HNUPI5.js} +259 -230
- package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
- package/dist/{chunk-J3H6QDDY.js → chunk-RF3DT4CS.js} +1 -1
- package/dist/{chunk-3QMGLSKC.js → chunk-RHHPEUVM.js} +2 -2
- package/dist/{chunk-UBNJWS2H.js → chunk-RQ4YNYWE.js} +3 -3
- package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
- package/dist/{chunk-XXOEYRD5.js → chunk-S4X7H76F.js} +2 -2
- package/dist/{chunk-VFGFXE6J.js → chunk-SDIQEPAR.js} +1 -1
- package/dist/{chunk-D44MBZI6.js → chunk-SFIUSS3O.js} +2 -2
- package/dist/{chunk-OF7SQ77J.js → chunk-SIQGTRZ5.js} +1 -1
- package/dist/{chunk-AQIHV4PM.js → chunk-SKQWXQ7H.js} +2 -2
- package/dist/{chunk-QJ2BV7FM.js → chunk-SOIOB7FF.js} +9 -9
- package/dist/{chunk-GMIFMRWR.js → chunk-T25ZHQR2.js} +6 -6
- package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
- package/dist/{chunk-HLOJSBGC.js → chunk-TTRX7NM3.js} +9 -9
- package/dist/chunk-TZ6M2LEV.js +5101 -0
- package/dist/{chunk-6K6RIX2A.js → chunk-U4KLJXI4.js} +21 -6
- package/dist/{chunk-7CI5MLCC.js → chunk-UOWDVL6M.js} +26 -11
- package/dist/{chunk-OYKAS3J5.js → chunk-V7Z2JQRL.js} +3 -3
- package/dist/{chunk-UNB2DFR2.js → chunk-VHDT4EME.js} +3 -3
- package/dist/{chunk-RX67N2PU.js → chunk-VM2VBJRC.js} +31 -2
- package/dist/{chunk-LTOUXR3X.js → chunk-VSCJ76AM.js} +73 -75
- package/dist/{chunk-WTZT6FSK.js → chunk-VSS3OAZB.js} +1 -1
- package/dist/{chunk-TJGGLLQJ.js → chunk-VWI7V4Q5.js} +35 -16
- package/dist/{chunk-SO7FT7YA.js → chunk-WMKIO4OA.js} +33 -32
- package/dist/{chunk-THGJTFYB.js → chunk-WTO3A7ET.js} +86 -6
- package/dist/{chunk-YBYNBKCN.js → chunk-WTS245RC.js} +2 -2
- package/dist/{chunk-ECGNWHFE.js → chunk-XBHPFWRL.js} +88 -2
- package/dist/{chunk-KGPHUBBA.js → chunk-XFGC5XLR.js} +1 -1
- package/dist/{chunk-R3ONQOLE.js → chunk-XGKNDIBT.js} +11 -11
- package/dist/{chunk-DCRHNRUY.js → chunk-XQQRCWS5.js} +5 -5
- package/dist/{chunk-XWV6BOCG.js → chunk-XQQZ2G25.js} +5 -5
- package/dist/{chunk-WKE3WTIU.js → chunk-YB2ZJJFJ.js} +1 -1
- package/dist/{chunk-ZIYYSD6S.js → chunk-YN6UGKZE.js} +79 -40
- package/dist/{chunk-TIBFCGLT.js → chunk-YSWORAKY.js} +1 -1
- package/dist/{chunk-HY7FPTBD.js → chunk-YWNQOM4P.js} +2 -2
- package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
- package/dist/chunk-Z3BPDCRV.js +537 -0
- package/dist/{chunk-HYXQR5I3.js → chunk-Z55ASKZE.js} +1 -1
- package/dist/{chunk-4QSDXDLV.js → chunk-ZM3GP62D.js} +3 -3
- package/dist/{chunk-ELDZ6C3R.js → chunk-ZYODIJRG.js} +7 -3
- package/dist/{clean-Z5REUSNY.js → clean-QXAUIYBP.js} +36 -37
- package/dist/cli.js +74 -75
- package/dist/{cloud-QP5R6B6A.js → cloud-46NGVK4Q.js} +8 -9
- package/dist/{cloud-NJ7G3NF3.js → cloud-7B4YZT5U.js} +4 -4
- package/dist/{cloudrun-CPAZLNTW.js → cloudrun-CZGDPM57.js} +19 -12
- package/dist/{compare-T5CHD25P.js → compare-O2UN7HGD.js} +70 -92
- package/dist/{compiler-QVDXN4OS.js → compiler-ZGIAIJVE.js} +7 -9
- package/dist/{component-QMZ46KTE.js → component-ZIGH3VGE.js} +8 -10
- package/dist/{compositions-JHYYNBAK.js → compositions-W54S4VIU.js} +21 -23
- package/dist/{contactSheet-7SPGUTDV.js → contactSheet-ROUVWDRO.js} +5 -6
- package/dist/{curve-ON6QQY7T.js → curve-HBHRWPIE.js} +20 -22
- package/dist/{cuts-K4FOVP4E.js → cuts-YHNO7A5G.js} +21 -23
- package/dist/{delete-6WFQ3FC2.js → delete-WIW3WLKA.js} +26 -15
- package/dist/{deploy-UAZQ5PBA.js → deploy-ICQ2PLU5.js} +12 -13
- package/dist/{describeProject-7W6BN5A2.js → describeProject-OCXNHB5X.js} +15 -17
- package/dist/{destroy-4B4OVPHJ.js → destroy-UBSVUXYW.js} +12 -13
- package/dist/{deterministicFonts-VLIVGXUQ.js → deterministicFonts-JER4GPCM.js} +4 -5
- package/dist/{diff-ZSA37QQS.js → diff-43OCC2Y3.js} +57 -54
- package/dist/{dist-ACT5C6ME.js → dist-6EF2P3P7.js} +4 -4
- package/dist/{dist-VRYZIJFZ.js → dist-A65PCIEN.js} +5 -8
- package/dist/{dist-2O52E7QZ.js → dist-DRHXUWGQ.js} +25 -21
- package/dist/{doctor-RXQ2Y2YY.js → doctor-XVOTWU62.js} +23 -25
- package/dist/{dotEnv-RZ52L7X3.js → dotEnv-MWWLCN66.js} +11 -3
- package/dist/{energy-DRA3DCRO.js → energy-SGA245NF.js} +21 -23
- package/dist/{events-4SNBQE3M.js → events-6HPYERWI.js} +23 -25
- package/dist/{events-GA3YM3WT.js → events-LIZCRDAT.js} +5 -5
- package/dist/{events-AJNF2C3H.js → events-MMXXYK5J.js} +10 -12
- package/dist/{execute-6LTZRWE4.js → execute-3346FOCY.js} +49 -46
- package/dist/{extract-XZQN654B.js → extract-VDV6EY5E.js} +21 -23
- package/dist/{face-RKUNVSN3.js → face-EGKO7HYX.js} +22 -24
- package/dist/{feedback-AL7NPPMZ.js → feedback-KEX6YIDA.js} +62 -38
- package/dist/{ffmpeg-BEL7EZBA.js → ffmpeg-OIAPERTW.js} +14 -16
- package/dist/{figma-IZ3NH2KZ.js → figma-KANAV6Q6.js} +3 -3
- package/dist/fontLocalizeCli.js +26 -27
- package/dist/{frames-AYE53CSZ.js → frames-XBQNOQBU.js} +23 -25
- package/dist/{generate-BZ4EVVQI.js → generate-P4E5UIEY.js} +37 -39
- package/dist/{get-2GG4NSOK.js → get-R2FJMNJK.js} +26 -15
- package/dist/{gpuPolicy-W2ZGBXNG.js → gpuPolicy-AISTDFL2.js} +14 -16
- package/dist/{grade-compare-65NWHVXK.js → grade-compare-CE4RUMFU.js} +50 -51
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-MRQ4KKDF.js → heifImagePrep-UQUW2OVF.js} +21 -22
- package/dist/{help-TEQWNNPI.js → help-SK6PGYI2.js} +1 -1
- package/dist/{history-MVNPETRW.js → history-DM5H55WQ.js} +23 -25
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-NGNTHWYX.js → info-UBGKJ5XD.js} +23 -25
- package/dist/{init-H7SUGVZX.js → init-SGBCTXCE.js} +41 -43
- package/dist/{ink-CPZ4YZFM.js → ink-NWXEZQPJ.js} +21 -23
- package/dist/{inspect-GZBQ7XN7.js → inspect-B7VENILS.js} +53 -54
- package/dist/{installer-ZTHYVK4L.js → installer-GR5X6HMD.js} +8 -10
- package/dist/{keyframes-B52LQUOI.js → keyframes-VZSC75GL.js} +77 -28
- package/dist/{lambda-SZDQJMKA.js → lambda-KCTB2LV5.js} +32 -26
- package/dist/{layout-BOUOG2D2.js → layout-3HSW3SNT.js} +53 -54
- package/dist/{lint-H4OWI5JN.js → lint-Q6NRDYLG.js} +18 -20
- package/dist/{lintProject-P4EAXFU2.js → lintProject-N3UN6HEE.js} +4 -4
- package/dist/{list-VNEYACGL.js → list-5TAZKTS2.js} +27 -16
- package/dist/{localPage-ZP7WVA2N.js → localPage-X22Z5SDE.js} +15 -17
- package/dist/{login-RUDOUO5Z.js → login-TIPDZQXX.js} +6 -6
- package/dist/{logout-5ZO6ZNS3.js → logout-KQ7VU5M6.js} +2 -2
- package/dist/{look-G3NVPKXZ.js → look-VODDQOS6.js} +21 -23
- package/dist/{manager-NXH2NJC6.js → manager-B5HWXCKJ.js} +16 -18
- package/dist/{manager-KWNID2ZA.js → manager-C5S25OOK.js} +5 -5
- package/dist/{measure-5PVIZ2W2.js → measure-EPD4JLR7.js} +11 -11
- package/dist/{media-treatment-T5QJI4PQ.js → media-treatment-ZLWCSYMP.js} +29 -29
- package/dist/{media-use-RTN3SMVY.js → media-use-HELWSEKT.js} +12 -8
- package/dist/{models-J2CJ7EVX.js → models-OKVD2GZS.js} +20 -22
- package/dist/{motionShot-HU7P26WJ.js → motionShot-6HJBMGBW.js} +28 -30
- package/dist/{normalize-44E7R6T5.js → normalize-TBACWMEK.js} +4 -5
- package/dist/{normalize-audio-2YFTP2T6.js → normalize-audio-PKUJQYZZ.js} +20 -21
- package/dist/{open-RSCNUV6E.js → open-ZOXZI6MJ.js} +26 -28
- package/dist/{parakeetRunner-BUY25EIR.js → parakeetRunner-I3TPZNMG.js} +24 -26
- package/dist/{pipeline-A4RL5R5P.js → pipeline-IGYBW7NA.js} +20 -20
- package/dist/{plan-7WYNPILA.js → plan-K2WUQRA2.js} +31 -33
- package/dist/{play-UKHFNMYZ.js → play-QRRL526W.js} +47 -45
- package/dist/{preflight-2VFCT3PI.js → preflight-KTYLNVCB.js} +17 -19
- package/dist/{present-ZUGFCQOF.js → present-EX2TKGXD.js} +39 -40
- package/dist/{preview-BT2ZFYMC.js → preview-FXMD27D6.js} +50 -50
- package/dist/privateProjectFile-TTLLYWGC.js +65 -0
- package/dist/{probe-2CLEK2UT.js → probe-2QG66GKK.js} +21 -23
- package/dist/{producer-HCAMS55D.js → producer-QH7A62IS.js} +1 -1
- package/dist/{progress-5A4N7PTR.js → progress-PT3NAFVP.js} +5 -6
- package/dist/{projectConfig-2KJ2PXIM.js → projectConfig-ZX2IUY45.js} +11 -13
- package/dist/{publication-AR63EGJF.js → publication-SKR5UXQK.js} +6 -8
- package/dist/{publish-EGKYOJWV.js → publish-X2PMT5TT.js} +63 -42
- package/dist/receivedRecordFollow-K7DVCCUS.js +54 -0
- package/dist/{refresh-GYRLZ7DZ.js → refresh-CYSJHATJ.js} +2 -2
- package/dist/{remove-background-IQQPMM24.js → remove-background-5FVNHD45.js} +21 -21
- package/dist/{render-ROJ5X53T.js → render-CJDV7E5M.js} +128 -87
- package/dist/{render-HJRMJYTA.js → render-GPXJCWM4.js} +12 -13
- package/dist/{render-YNSZYEEK.js → render-KAABP77Y.js} +141 -114
- package/dist/{render-batch-MXYDIHRO.js → render-batch-JYPH5RA7.js} +12 -13
- package/dist/renderSetupWorker.js +9 -9
- package/dist/{resolver-SPLAVF76.js → resolver-NXCI42VM.js} +8 -10
- package/dist/{reverse-CE6OGBB7.js → reverse-TQTVHTEN.js} +1 -1
- package/dist/{run-YVNJJL26.js → run-3O3N737Q.js} +11 -12
- package/dist/{sam-2D3BUTL7.js → sam-O7Y2CCK3.js} +4 -4
- package/dist/{screenshotCapture-DRO7VMNI.js → screenshotCapture-V6VXB4AZ.js} +17 -19
- package/dist/{service-K65JYG4O.js → service-HBLZ3T4R.js} +22 -24
- package/dist/{share-CSVWF6SB.js → share-QBLF3RGF.js} +26 -28
- package/dist/{sherpa-JE6AFUEV.js → sherpa-UZXWHCV4.js} +23 -25
- package/dist/sherpaWorker.js +6 -7
- package/dist/{sites-QCGTWVNF.js → sites-R5F5FNAL.js} +6 -6
- package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
- package/dist/skills/media-use/audio/references/tts-to-captions.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +6 -6
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +143 -2
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +12 -2
- package/dist/skills/media-use/scripts/lib/candidates.mjs +3 -2
- package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/terminal-text.mjs +12 -0
- package/dist/skills/media-use/scripts/resolve.mjs +21 -15
- package/dist/{skills-L3BXM7VJ.js → skills-HVIJD32X.js} +15 -17
- package/dist/{skillsUpdateCheck-VUENI5OR.js → skillsUpdateCheck-DD2NM36O.js} +5 -5
- package/dist/{snapshot-GI2GWIF6.js → snapshot-JKKROVMI.js} +97 -84
- package/dist/{src-ZXZO5RCJ.js → src-BBT6W66H.js} +29 -30
- package/dist/{src-B646B52O.js → src-IQKTGPPV.js} +17 -19
- package/dist/{start-ZNGKXRNE.js → start-A4KULXY2.js} +43 -37
- package/dist/{state-7CJBWHXJ.js → state-5LE7AN6F.js} +5 -6
- package/dist/{staticProjectServer-46T6YTPF.js → staticProjectServer-WH2SJFSD.js} +33 -34
- package/dist/{status-7SWTPLVI.js → status-ZL2XQWMR.js} +23 -25
- package/dist/studio/assets/{hyperframes-player-bya4hgms.js → hyperframes-player-CUQxAJaE.js} +1 -1
- package/dist/studio/assets/{index--dcfSUzI.js → index-D3rdYBVx.js} +1 -1
- package/dist/studio/assets/{index-Bxh5lW0C.js → index-DSrTQv-k.js} +204 -204
- package/dist/studio/assets/{pausedVideoDecoder-BKym1jA6.js → pausedVideoDecoder-BWllfjF-.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-4XKM5HDR.js → studio-api-FNZ62P67.js} +25 -21
- package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
- package/dist/{studioServer-4TWRIZNU.js → studioServer-BBVHB7A6.js} +260 -117
- package/dist/subCompositionWorker.js +60 -54
- package/dist/{sync-R3K6LYB3.js → sync-UW6N6ORX.js} +21 -23
- package/dist/{synthesize-OZ3SJTOF.js → synthesize-NGU4DRKC.js} +10 -9
- package/dist/{system-LZ4PMOJD.js → system-PKL4Y4MX.js} +3 -3
- package/dist/{telemetry-WSBY25O3.js → telemetry-OJ2XS46A.js} +10 -12
- package/dist/{templates-ITP6ISAF.js → templates-GH4ZOTLA.js} +24 -26
- package/dist/{timeline-U7GJMYKV.js → timeline-MABFMT2U.js} +36 -37
- package/dist/{tokens-3YTSUU27.js → tokens-XE3K3AJF.js} +15 -5
- package/dist/{transcribe-QHHY5M3G.js → transcribe-IRYGXKOQ.js} +44 -46
- package/dist/{transcribe-ISCBYWN4.js → transcribe-TV5THKEM.js} +20 -22
- package/dist/{tts-24IJXIT2.js → tts-HRWZJFLJ.js} +20 -4
- package/dist/{update-SVEH2GOL.js → update-BLVL5JMT.js} +17 -19
- package/dist/{updateCheck-MDG7N7VO.js → updateCheck-5QADMRBP.js} +4 -4
- package/dist/{upgrade-6CGAI4OR.js → upgrade-CBB7FP3D.js} +8 -9
- package/dist/{urlDownloader-VPQTIGEH.js → urlDownloader-ZJ423NLB.js} +13 -15
- package/dist/{validate-QUB4KCEQ.js → validate-PASIFGBU.js} +41 -42
- package/dist/{video-PUGZ5UHS.js → video-3MS2DCXZ.js} +17 -19
- package/dist/{voices-4UO5AYLS.js → voices-TXV5K5WI.js} +34 -36
- package/dist/warmCheck.js +62 -63
- package/dist/warmCheckClient.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-6VY6WTY5.js +0 -279
- package/dist/chunk-NI7JVGOE.js +0 -5083
- package/dist/chunk-NLN5NY3P.js +0 -34
- package/dist/chunk-UVZIABYZ.js +0 -40
- package/dist/chunk-VC76R6W2.js +0 -27
|
@@ -20,8 +20,9 @@ import {
|
|
|
20
20
|
startCaptureProxy
|
|
21
21
|
} from "./chunk-PJQVJSMG.js";
|
|
22
22
|
import {
|
|
23
|
-
PREVIEW_FOR_ANOTHER_SITE_META
|
|
24
|
-
|
|
23
|
+
PREVIEW_FOR_ANOTHER_SITE_META,
|
|
24
|
+
serviceWorkerScriptFetch
|
|
25
|
+
} from "./chunk-LKHH4BUW.js";
|
|
25
26
|
import {
|
|
26
27
|
alphaDecoderFor,
|
|
27
28
|
pixelFormatHasAlpha,
|
|
@@ -37,7 +38,7 @@ import {
|
|
|
37
38
|
removeScratch,
|
|
38
39
|
renameWithRetry,
|
|
39
40
|
renameWithRetryAsync
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LYTELQL2.js";
|
|
41
42
|
import {
|
|
42
43
|
DISTRIBUTED_FPS,
|
|
43
44
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
resolveAuthoredTimingWindow,
|
|
68
69
|
toFps,
|
|
69
70
|
validateVariables
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-BJMW2GYO.js";
|
|
71
72
|
import {
|
|
72
73
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
73
74
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -111,30 +112,31 @@ import {
|
|
|
111
112
|
sourceTimeAt,
|
|
112
113
|
timeAtSourceTime,
|
|
113
114
|
volumeSegmentSampleCount
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import {
|
|
116
|
-
isSafePath
|
|
117
|
-
} from "./chunk-MHF5F4FF.js";
|
|
115
|
+
} from "./chunk-TZ6M2LEV.js";
|
|
118
116
|
import {
|
|
117
|
+
isSafePath,
|
|
119
118
|
terminalText
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-3GF72UPC.js";
|
|
121
120
|
import {
|
|
122
121
|
browserPathFromEnv,
|
|
123
122
|
buildChromeLaunchEnv,
|
|
124
123
|
chromeMajorCeiling,
|
|
124
|
+
chromeSandboxArgs,
|
|
125
|
+
chromeSandboxEnabled,
|
|
125
126
|
compareBrowserVersionsDescending,
|
|
126
127
|
exceedsChromeCeiling,
|
|
127
128
|
isManagedChromeDir,
|
|
128
129
|
isPinnedHeadlessShell,
|
|
130
|
+
launchWithChromeSandboxFallback,
|
|
129
131
|
pickSharedShell
|
|
130
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-YWUE4CRU.js";
|
|
131
133
|
import {
|
|
132
134
|
resolveReferencedStart
|
|
133
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-TTRX7NM3.js";
|
|
134
136
|
import {
|
|
135
137
|
isWithinProjectRoot,
|
|
136
138
|
resolveProjectRelativeSrc
|
|
137
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-S35RUNXJ.js";
|
|
138
140
|
import {
|
|
139
141
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
140
142
|
getAvailableMemoryMb,
|
|
@@ -143,7 +145,7 @@ import {
|
|
|
143
145
|
hostCpuCount,
|
|
144
146
|
isLowMemorySystem,
|
|
145
147
|
usableCpuCount
|
|
146
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-5GUYYSVT.js";
|
|
147
149
|
import {
|
|
148
150
|
isPathInside
|
|
149
151
|
} from "./chunk-IH2C53YV.js";
|
|
@@ -156,7 +158,7 @@ import {
|
|
|
156
158
|
import {
|
|
157
159
|
isPrivateFileUnder,
|
|
158
160
|
isStudioPrivatePath
|
|
159
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-PTGNUVCB.js";
|
|
160
162
|
import {
|
|
161
163
|
withHyperframesBrowserMarker
|
|
162
164
|
} from "./chunk-4NTCQF3L.js";
|
|
@@ -175,10 +177,11 @@ import {
|
|
|
175
177
|
FFMPEG_PATH_ENV,
|
|
176
178
|
FFPROBE_PATH_ENV,
|
|
177
179
|
SELF_CONTAINED_FORMATS,
|
|
180
|
+
assertLiteralMediaInput,
|
|
178
181
|
findFfBinary,
|
|
179
182
|
findTrustedExecutable,
|
|
180
183
|
mediaInputFormatArgs
|
|
181
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-VM2VBJRC.js";
|
|
182
185
|
|
|
183
186
|
// ../engine/src/services/referenceBackground.ts
|
|
184
187
|
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
@@ -1043,83 +1046,10 @@ function scanHtmlOpeningTags(html) {
|
|
|
1043
1046
|
|
|
1044
1047
|
// ../engine/src/services/browserManager.ts
|
|
1045
1048
|
import { execFileSync } from "child_process";
|
|
1046
|
-
import { existsSync
|
|
1049
|
+
import { existsSync, readdirSync } from "fs";
|
|
1047
1050
|
import { join as join3 } from "path";
|
|
1048
1051
|
import { homedir } from "os";
|
|
1049
1052
|
|
|
1050
|
-
// ../engine/src/services/chromeSandbox.ts
|
|
1051
|
-
import { existsSync, readFileSync } from "fs";
|
|
1052
|
-
var NO_SANDBOX_ARGS = ["--no-sandbox", "--disable-setuid-sandbox", "--no-zygote"];
|
|
1053
|
-
var SANDBOX_START_FAILURE = /No usable sandbox|Running as root without --no-sandbox|Failed to move to new namespace/;
|
|
1054
|
-
function readTrimmed(path) {
|
|
1055
|
-
try {
|
|
1056
|
-
return readFileSync(path, "utf8").trim();
|
|
1057
|
-
} catch {
|
|
1058
|
-
return void 0;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
var currentHost = () => ({
|
|
1062
|
-
platform: process.platform,
|
|
1063
|
-
env: process.env,
|
|
1064
|
-
uid: process.getuid?.(),
|
|
1065
|
-
exists: existsSync,
|
|
1066
|
-
read: readTrimmed
|
|
1067
|
-
});
|
|
1068
|
-
var SERVERLESS_OR_ORCHESTRATED_ENV = [
|
|
1069
|
-
"AWS_LAMBDA_FUNCTION_NAME",
|
|
1070
|
-
"AWS_EXECUTION_ENV",
|
|
1071
|
-
"K_SERVICE",
|
|
1072
|
-
"CLOUD_RUN_JOB",
|
|
1073
|
-
"KUBERNETES_SERVICE_HOST"
|
|
1074
|
-
];
|
|
1075
|
-
var CONTAINER_MARKERS = ["/.dockerenv", "/run/.containerenv"];
|
|
1076
|
-
var USERNS_BLOCKED_SYSCTLS = [
|
|
1077
|
-
["/proc/sys/kernel/apparmor_restrict_unprivileged_userns", "1"],
|
|
1078
|
-
["/proc/sys/kernel/unprivileged_userns_clone", "0"]
|
|
1079
|
-
];
|
|
1080
|
-
function linuxCannotSandbox({ env, uid, exists, read }) {
|
|
1081
|
-
return uid === 0 || SERVERLESS_OR_ORCHESTRATED_ENV.some((name) => !!env[name]) || CONTAINER_MARKERS.some((path) => exists(path)) || USERNS_BLOCKED_SYSCTLS.some(([path, blocked]) => read(path) === blocked);
|
|
1082
|
-
}
|
|
1083
|
-
function chromeSandboxEnabled(host = currentHost()) {
|
|
1084
|
-
const override = host.env.HYPERFRAMES_CHROME_SANDBOX;
|
|
1085
|
-
if (override === "0" || override === "1") return override === "1";
|
|
1086
|
-
return host.platform !== "linux" || !linuxCannotSandbox(host);
|
|
1087
|
-
}
|
|
1088
|
-
function chromeSandboxArgs(sandbox = chromeSandboxEnabled()) {
|
|
1089
|
-
return sandbox ? [] : NO_SANDBOX_ARGS;
|
|
1090
|
-
}
|
|
1091
|
-
function withoutChromeSandbox(args) {
|
|
1092
|
-
return [...args.filter((arg) => !NO_SANDBOX_ARGS.includes(arg)), ...NO_SANDBOX_ARGS];
|
|
1093
|
-
}
|
|
1094
|
-
var sandboxRefused = false;
|
|
1095
|
-
var closedTargetRetries = 0;
|
|
1096
|
-
var warned = false;
|
|
1097
|
-
function chromeNamedSandboxFailure(error) {
|
|
1098
|
-
return error instanceof Error && SANDBOX_START_FAILURE.test(error.message);
|
|
1099
|
-
}
|
|
1100
|
-
function sandboxStartFailure(error) {
|
|
1101
|
-
return chromeNamedSandboxFailure(error) || error instanceof Error && error.name === "TargetCloseError";
|
|
1102
|
-
}
|
|
1103
|
-
async function launchWithChromeSandboxFallback(args, launch, platform = process.platform, env = process.env) {
|
|
1104
|
-
const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
|
|
1105
|
-
const sandboxRequired = env.HYPERFRAMES_CHROME_SANDBOX === "1";
|
|
1106
|
-
if (sandboxed && sandboxRefused && !sandboxRequired) return launch(withoutChromeSandbox(args));
|
|
1107
|
-
try {
|
|
1108
|
-
return await launch([...args]);
|
|
1109
|
-
} catch (error) {
|
|
1110
|
-
if (!sandboxed || sandboxRequired || !sandboxStartFailure(error)) throw error;
|
|
1111
|
-
const browser = await launch(withoutChromeSandbox(args));
|
|
1112
|
-
if (chromeNamedSandboxFailure(error) || ++closedTargetRetries >= 2) sandboxRefused = true;
|
|
1113
|
-
if (!warned) {
|
|
1114
|
-
warned = true;
|
|
1115
|
-
console.warn(
|
|
1116
|
-
"[hyperframes] Chrome could not start with its sandbox on this host (user namespaces are likely restricted), so it runs without it. Set HYPERFRAMES_CHROME_SANDBOX=0 to skip the sandboxed attempt."
|
|
1117
|
-
);
|
|
1118
|
-
}
|
|
1119
|
-
return browser;
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
1053
|
// ../engine/src/services/browserLeasePool.ts
|
|
1124
1054
|
function freezeFingerprint(fingerprint) {
|
|
1125
1055
|
return Object.freeze({
|
|
@@ -1366,17 +1296,19 @@ var GPU_PROBE_TIMEOUT_MS = 15e3;
|
|
|
1366
1296
|
async function probeHardwareWebGlInfo(ppt, options) {
|
|
1367
1297
|
let probeBrowser;
|
|
1368
1298
|
try {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1299
|
+
probeBrowser = await launchWithChromeSandboxFallback(options.args, (args) => {
|
|
1300
|
+
const launchOptions = {
|
|
1301
|
+
...ownedLaunchOptions(),
|
|
1302
|
+
headless: true,
|
|
1303
|
+
args: withHyperframesBrowserMarker(args),
|
|
1304
|
+
defaultViewport: { width: 64, height: 64 },
|
|
1305
|
+
executablePath: options.executablePath,
|
|
1306
|
+
env: buildChromeLaunchEnv(options.env),
|
|
1307
|
+
timeout: options.browserTimeout,
|
|
1308
|
+
waitForInitialPage: false
|
|
1309
|
+
};
|
|
1310
|
+
return options.probeLifecycle ? options.probeLifecycle.launch(ppt, launchOptions) : ppt.launch(launchOptions);
|
|
1311
|
+
});
|
|
1380
1312
|
return await rejectAfter(
|
|
1381
1313
|
readWebGlInfo(probeBrowser),
|
|
1382
1314
|
GPU_PROBE_TIMEOUT_MS,
|
|
@@ -1426,7 +1358,7 @@ function cachedHeadlessShellExecutable(hostPlatform = process.platform, hostArch
|
|
|
1426
1358
|
return CACHED_HEADLESS_SHELL_EXECUTABLES[`${hostPlatform}/${hostArch}`];
|
|
1427
1359
|
}
|
|
1428
1360
|
function findCachedHeadlessShell(baseDir) {
|
|
1429
|
-
if (!
|
|
1361
|
+
if (!existsSync(baseDir)) return void 0;
|
|
1430
1362
|
const executable = cachedHeadlessShellExecutable();
|
|
1431
1363
|
if (!executable) return void 0;
|
|
1432
1364
|
try {
|
|
@@ -1443,7 +1375,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1443
1375
|
}
|
|
1444
1376
|
function findSharedHeadlessShell(baseDir) {
|
|
1445
1377
|
const executable = cachedHeadlessShellExecutable();
|
|
1446
|
-
if (!executable || !
|
|
1378
|
+
if (!executable || !existsSync(baseDir)) return void 0;
|
|
1447
1379
|
try {
|
|
1448
1380
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1449
1381
|
const binary = join3(baseDir, version, ...executable);
|
|
@@ -1455,7 +1387,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1455
1387
|
}
|
|
1456
1388
|
function findManagedHeadlessShell(baseDir) {
|
|
1457
1389
|
const executable = cachedHeadlessShellExecutable();
|
|
1458
|
-
if (!executable || !
|
|
1390
|
+
if (!executable || !existsSync(baseDir)) return void 0;
|
|
1459
1391
|
try {
|
|
1460
1392
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1461
1393
|
const binary = version && join3(baseDir, version, ...executable);
|
|
@@ -1470,7 +1402,7 @@ function resolveHeadlessShellPath(config) {
|
|
|
1470
1402
|
}
|
|
1471
1403
|
const fromEnv = browserPathFromEnv();
|
|
1472
1404
|
if (fromEnv) {
|
|
1473
|
-
if (!
|
|
1405
|
+
if (!existsSync(fromEnv.path)) {
|
|
1474
1406
|
throw new Error(
|
|
1475
1407
|
`[BrowserManager] Chrome binary not found at ${fromEnv.name}="${fromEnv.path}". Run \`hyperframes browser ensure\` to re-download.`
|
|
1476
1408
|
);
|
|
@@ -1492,7 +1424,7 @@ function launchableBrowserPath(config) {
|
|
|
1492
1424
|
}
|
|
1493
1425
|
function resolveFullChromePath() {
|
|
1494
1426
|
const named = browserPathFromEnv();
|
|
1495
|
-
return named &&
|
|
1427
|
+
return named && existsSync(named.path) ? named.path : void 0;
|
|
1496
1428
|
}
|
|
1497
1429
|
var ENABLE_BROWSER_POOL = DEFAULT_CONFIG.enableBrowserPool;
|
|
1498
1430
|
var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -1658,10 +1590,9 @@ async function getPuppeteerOrNull() {
|
|
|
1658
1590
|
return null;
|
|
1659
1591
|
}
|
|
1660
1592
|
}
|
|
1661
|
-
function getHardwareGpuProbeArgs(platform) {
|
|
1593
|
+
function getHardwareGpuProbeArgs(platform, sandbox) {
|
|
1662
1594
|
return [
|
|
1663
|
-
|
|
1664
|
-
"--disable-setuid-sandbox",
|
|
1595
|
+
...chromeSandboxArgs(sandbox),
|
|
1665
1596
|
"--disable-dev-shm-usage",
|
|
1666
1597
|
"--enable-webgl",
|
|
1667
1598
|
"--ignore-gpu-blocklist",
|
|
@@ -1698,7 +1629,10 @@ async function probeAutoBrowserGpuMode(options) {
|
|
|
1698
1629
|
async function probeWebGlMode(ppt, options, env, label = "") {
|
|
1699
1630
|
try {
|
|
1700
1631
|
const info = await probeHardwareWebGlInfo(ppt, {
|
|
1701
|
-
args: getHardwareGpuProbeArgs(
|
|
1632
|
+
args: getHardwareGpuProbeArgs(
|
|
1633
|
+
options.platform ?? process.platform,
|
|
1634
|
+
options.sandbox ?? chromeSandboxEnabled()
|
|
1635
|
+
),
|
|
1702
1636
|
browserTimeout: options.browserTimeout ?? DEFAULT_CONFIG.browserTimeout,
|
|
1703
1637
|
executablePath: launchableBrowserPath({ chromePath: options.chromePath }),
|
|
1704
1638
|
probeLifecycle: options.probeLifecycle,
|
|
@@ -2935,7 +2869,8 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
|
|
|
2935
2869
|
}
|
|
2936
2870
|
|
|
2937
2871
|
// ../engine/src/services/frameCapture.ts
|
|
2938
|
-
import { existsSync as
|
|
2872
|
+
import { existsSync as existsSync4, mkdirSync, writeFileSync } from "fs";
|
|
2873
|
+
import { availableParallelism } from "os";
|
|
2939
2874
|
import { join as join7 } from "path";
|
|
2940
2875
|
|
|
2941
2876
|
// ../engine/src/services/renderFrameVideoHold.ts
|
|
@@ -5435,7 +5370,7 @@ import { execFile } from "child_process";
|
|
|
5435
5370
|
import { promisify } from "util";
|
|
5436
5371
|
|
|
5437
5372
|
// ../engine/src/utils/ffmpegBinaries.ts
|
|
5438
|
-
import { existsSync as
|
|
5373
|
+
import { existsSync as existsSync2 } from "fs";
|
|
5439
5374
|
import { dirname, join as join4 } from "path";
|
|
5440
5375
|
import { fileURLToPath } from "url";
|
|
5441
5376
|
function notFound(name, setting) {
|
|
@@ -5449,13 +5384,13 @@ function getFfprobeBinary() {
|
|
|
5449
5384
|
}
|
|
5450
5385
|
function assertConfiguredFfmpegBinariesExist() {
|
|
5451
5386
|
const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
|
|
5452
|
-
if (ffmpegPath && !
|
|
5387
|
+
if (ffmpegPath && !existsSync2(ffmpegPath)) {
|
|
5453
5388
|
throw new Error(
|
|
5454
5389
|
`[FFmpeg] FFmpeg binary not found at ${FFMPEG_PATH_ENV}="${ffmpegPath}". Install FFmpeg or unset the override.${pathEncodingHint(ffmpegPath)}`
|
|
5455
5390
|
);
|
|
5456
5391
|
}
|
|
5457
5392
|
const ffprobePath = process.env[FFPROBE_PATH_ENV]?.trim();
|
|
5458
|
-
if (ffprobePath && !
|
|
5393
|
+
if (ffprobePath && !existsSync2(ffprobePath)) {
|
|
5459
5394
|
throw new Error(
|
|
5460
5395
|
`[FFmpeg] FFprobe binary not found at ${FFPROBE_PATH_ENV}="${ffprobePath}". Install FFmpeg or unset the override.${pathEncodingHint(ffprobePath)}`
|
|
5461
5396
|
);
|
|
@@ -5498,20 +5433,20 @@ async function listFfmpeg(flag) {
|
|
|
5498
5433
|
}
|
|
5499
5434
|
|
|
5500
5435
|
// ../engine/src/utils/renderProvenance.ts
|
|
5501
|
-
import { readFileSync as
|
|
5436
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
5502
5437
|
import { createRequire } from "module";
|
|
5503
5438
|
import { dirname as dirname3, join as join6 } from "path";
|
|
5504
5439
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5505
5440
|
|
|
5506
5441
|
// ../engine/src/utils/ffprobe.ts
|
|
5507
5442
|
import { spawn as spawn3 } from "child_process";
|
|
5508
|
-
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync
|
|
5443
|
+
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync, rmSync, statSync } from "fs";
|
|
5509
5444
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5510
5445
|
import { tmpdir as tmpdir3 } from "os";
|
|
5511
5446
|
import { basename, join as join5 } from "path";
|
|
5512
5447
|
|
|
5513
5448
|
// ../engine/src/utils/urlInput.ts
|
|
5514
|
-
import { existsSync as
|
|
5449
|
+
import { existsSync as existsSync3 } from "fs";
|
|
5515
5450
|
var CA_BUNDLES = [
|
|
5516
5451
|
"/etc/pki/tls/certs/ca-bundle.crt",
|
|
5517
5452
|
"/etc/ssl/certs/ca-certificates.crt",
|
|
@@ -5547,7 +5482,8 @@ function urlInputArgs(input, {
|
|
|
5547
5482
|
tool = "ffmpeg",
|
|
5548
5483
|
caBundles = CA_BUNDLES
|
|
5549
5484
|
} = {}) {
|
|
5550
|
-
|
|
5485
|
+
assertLiteralMediaInput(input);
|
|
5486
|
+
const mediaFormats = () => mediaInputFormatArgs(tool === "ffprobe" ? getFfprobeBinary() : getFfmpegBinary(), input);
|
|
5551
5487
|
const restricted = resolveRestrictPageNetwork();
|
|
5552
5488
|
const route = restricted ? restrictedRoute(input) : void 0;
|
|
5553
5489
|
if (route === "proxy" && !/^https:\/\//i.test(input))
|
|
@@ -5558,7 +5494,7 @@ function urlInputArgs(input, {
|
|
|
5558
5494
|
...PROXY_THAT_REACHES_NOTHING
|
|
5559
5495
|
];
|
|
5560
5496
|
if (!/^https:\/\//i.test(input)) return mediaFormats();
|
|
5561
|
-
const caFile = caBundles.find((path) =>
|
|
5497
|
+
const caFile = caBundles.find((path) => existsSync3(path));
|
|
5562
5498
|
if (!caFile) {
|
|
5563
5499
|
throw new Error(
|
|
5564
5500
|
`[FFmpeg] cannot verify TLS for an https input: no CA bundle at ${caBundles.join(", ")}`
|
|
@@ -5819,8 +5755,8 @@ async function isNotImagePayload(filePath) {
|
|
|
5819
5755
|
var MAX_PLAYLIST_BYTES = 8 * 1024 * 1024;
|
|
5820
5756
|
var MAX_PLAYLIST_DEPTH = 8;
|
|
5821
5757
|
var HTTP_URL = /^https?:\/\//i;
|
|
5822
|
-
var
|
|
5823
|
-
var
|
|
5758
|
+
var COLON_IN_FIRST_SEGMENT = /^[^/\\?#]*:/;
|
|
5759
|
+
var FOLDER_CUT_AT_QUERY_OR_FRAGMENT = /[?#]/;
|
|
5824
5760
|
var MAX_HLS_LINE_BYTES = 4095;
|
|
5825
5761
|
var ATTRIBUTE_GAP = /[\t\n\v\f\r ,]/;
|
|
5826
5762
|
function hlsEntries(body) {
|
|
@@ -5880,9 +5816,10 @@ function playlistEntries(text) {
|
|
|
5880
5816
|
}
|
|
5881
5817
|
function entryLeavesFolder(entry, base, folder) {
|
|
5882
5818
|
if (HTTP_URL.test(entry)) return false;
|
|
5883
|
-
if (
|
|
5819
|
+
if (FOLDER_CUT_AT_QUERY_OR_FRAGMENT.test(base)) return true;
|
|
5884
5820
|
return [entry, percentDecoded(entry)].some((path) => {
|
|
5885
|
-
if (
|
|
5821
|
+
if (COLON_IN_FIRST_SEGMENT.test(path)) return true;
|
|
5822
|
+
if (isAbsolute(path) || path.startsWith("\\")) return true;
|
|
5886
5823
|
const inside = relative(folder, resolve(base, path));
|
|
5887
5824
|
return inside === ".." || inside.startsWith("../") || inside.startsWith("..\\") || isAbsolute(inside);
|
|
5888
5825
|
});
|
|
@@ -6748,7 +6685,7 @@ function extractPngMetadataFromBuffer(buf) {
|
|
|
6748
6685
|
}
|
|
6749
6686
|
function extractStillImageMetadata(filePath) {
|
|
6750
6687
|
try {
|
|
6751
|
-
return extractPngMetadataFromBuffer(
|
|
6688
|
+
return extractPngMetadataFromBuffer(readFileSync(filePath));
|
|
6752
6689
|
} catch {
|
|
6753
6690
|
return null;
|
|
6754
6691
|
}
|
|
@@ -7272,7 +7209,7 @@ function resolveOwnVersionFrom(startDir) {
|
|
|
7272
7209
|
const candidate = join6(dir, "package.json");
|
|
7273
7210
|
let pkg;
|
|
7274
7211
|
try {
|
|
7275
|
-
pkg = JSON.parse(
|
|
7212
|
+
pkg = JSON.parse(readFileSync2(candidate, "utf8"));
|
|
7276
7213
|
} catch {
|
|
7277
7214
|
pkg = void 0;
|
|
7278
7215
|
}
|
|
@@ -7295,7 +7232,7 @@ function installedEngineVersion(fromDir) {
|
|
|
7295
7232
|
const path = createRequire(join6(fromDir, "index.js")).resolve(
|
|
7296
7233
|
"@hyperframes/engine/package.json"
|
|
7297
7234
|
);
|
|
7298
|
-
const pkg = JSON.parse(
|
|
7235
|
+
const pkg = JSON.parse(readFileSync2(path, "utf8"));
|
|
7299
7236
|
if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
|
|
7300
7237
|
return pkg.version;
|
|
7301
7238
|
} catch {
|
|
@@ -8364,7 +8301,7 @@ async function installMediaPageHooks(page, options) {
|
|
|
8364
8301
|
}
|
|
8365
8302
|
}
|
|
8366
8303
|
async function createCaptureSession(serverUrl, outputDir, options, onBeforeCapture = null, config) {
|
|
8367
|
-
if (!
|
|
8304
|
+
if (!existsSync4(outputDir)) mkdirSync(outputDir, { recursive: true });
|
|
8368
8305
|
const headlessShell = resolveHeadlessShellPath(config);
|
|
8369
8306
|
const isLinux = process.platform === "linux";
|
|
8370
8307
|
const forceScreenshot = config?.forceScreenshot ?? DEFAULT_CONFIG.forceScreenshot;
|
|
@@ -9646,7 +9583,7 @@ async function initializeSession(session) {
|
|
|
9646
9583
|
async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
|
|
9647
9584
|
try {
|
|
9648
9585
|
const diagnosticsDir = join7(session.outputDir, "diagnostics");
|
|
9649
|
-
if (!
|
|
9586
|
+
if (!existsSync4(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
|
|
9650
9587
|
const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
|
|
9651
9588
|
const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
|
|
9652
9589
|
if (pageScreenshotCanResolve) {
|
|
@@ -9800,6 +9737,22 @@ function addFrameRanges(target, ranges) {
|
|
|
9800
9737
|
for (let f = lo; f <= hi; f++) target.add(f);
|
|
9801
9738
|
}
|
|
9802
9739
|
}
|
|
9740
|
+
var STATIC_DEDUP_INELIGIBLE_CAUSES = {
|
|
9741
|
+
zero_duration: "unknown/zero duration",
|
|
9742
|
+
video: "video",
|
|
9743
|
+
canvas: "canvas/webgl",
|
|
9744
|
+
frame_source: "registered frame source",
|
|
9745
|
+
iframe: "iframe",
|
|
9746
|
+
no_gsap_tweens: "no GSAP tweens (non-GSAP animation)",
|
|
9747
|
+
css_animation: "running CSS/WAAPI animation",
|
|
9748
|
+
timeline_call: "tl.call() side effect (not seek-safe)",
|
|
9749
|
+
unresolvable_clip_start: "unresolvable clip start (reference expression)",
|
|
9750
|
+
frame_limit: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`,
|
|
9751
|
+
interval_limit: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
|
|
9752
|
+
};
|
|
9753
|
+
function describeIneligible(causes) {
|
|
9754
|
+
return causes.map((cause) => STATIC_DEDUP_INELIGIBLE_CAUSES[cause]).join("+");
|
|
9755
|
+
}
|
|
9803
9756
|
async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
9804
9757
|
const result = await page.evaluate(
|
|
9805
9758
|
(spatialProps, ignored) => {
|
|
@@ -9905,7 +9858,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9905
9858
|
hasNonGsapAnim,
|
|
9906
9859
|
tweenCount,
|
|
9907
9860
|
eligible: false,
|
|
9908
|
-
|
|
9861
|
+
causes: ["frame_limit"],
|
|
9862
|
+
reason: describeIneligible(["frame_limit"])
|
|
9909
9863
|
};
|
|
9910
9864
|
}
|
|
9911
9865
|
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
@@ -9918,7 +9872,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9918
9872
|
hasNonGsapAnim,
|
|
9919
9873
|
tweenCount,
|
|
9920
9874
|
eligible: false,
|
|
9921
|
-
|
|
9875
|
+
causes: ["interval_limit"],
|
|
9876
|
+
reason: describeIneligible(["interval_limit"])
|
|
9922
9877
|
};
|
|
9923
9878
|
}
|
|
9924
9879
|
const animatedRanges = [];
|
|
@@ -9934,17 +9889,17 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9934
9889
|
addFrameRanges(animated, animatedRanges);
|
|
9935
9890
|
addFrameRanges(spatialFrameSet, spatialRanges);
|
|
9936
9891
|
for (const f of await computeClipBoundaryFrames(page, fps)) animated.add(f);
|
|
9937
|
-
const
|
|
9938
|
-
if (!(duration > 0))
|
|
9939
|
-
if (hasVideo)
|
|
9940
|
-
if (hasCanvas)
|
|
9941
|
-
if (hasFrameSources)
|
|
9942
|
-
if (hasIframe)
|
|
9943
|
-
if (tweenCount === 0)
|
|
9944
|
-
if (hasNonGsapAnim)
|
|
9945
|
-
if (hasTimelineCall)
|
|
9946
|
-
if (hasUnresolvableClipStart)
|
|
9947
|
-
const eligible =
|
|
9892
|
+
const causes = [];
|
|
9893
|
+
if (!(duration > 0)) causes.push("zero_duration");
|
|
9894
|
+
if (hasVideo) causes.push("video");
|
|
9895
|
+
if (hasCanvas) causes.push("canvas");
|
|
9896
|
+
if (hasFrameSources) causes.push("frame_source");
|
|
9897
|
+
if (hasIframe) causes.push("iframe");
|
|
9898
|
+
if (tweenCount === 0) causes.push("no_gsap_tweens");
|
|
9899
|
+
if (hasNonGsapAnim) causes.push("css_animation");
|
|
9900
|
+
if (hasTimelineCall) causes.push("timeline_call");
|
|
9901
|
+
if (hasUnresolvableClipStart) causes.push("unresolvable_clip_start");
|
|
9902
|
+
const eligible = causes.length === 0;
|
|
9948
9903
|
const staticFrameSet = /* @__PURE__ */ new Set();
|
|
9949
9904
|
if (eligible) {
|
|
9950
9905
|
for (let f = 1; f < totalFrames; f++) {
|
|
@@ -9964,13 +9919,15 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9964
9919
|
hasNonGsapAnim,
|
|
9965
9920
|
tweenCount,
|
|
9966
9921
|
eligible,
|
|
9967
|
-
|
|
9922
|
+
causes,
|
|
9923
|
+
reason: eligible ? "eligible" : describeIneligible(causes)
|
|
9968
9924
|
};
|
|
9969
9925
|
}
|
|
9970
9926
|
var STATIC_VERIFY_REFERENCE_STRIDE = 24;
|
|
9971
9927
|
var STATIC_VERIFY_MAX_MS = 15e3;
|
|
9972
9928
|
var STATIC_VERIFY_HEADROOM = 1.5;
|
|
9973
9929
|
var STATIC_VERIFY_CEILING_MS = 6e4;
|
|
9930
|
+
var STATIC_VERIFY_MAX_PAGES = 4;
|
|
9974
9931
|
var STATIC_VERIFY_MIN_SCREENSHOT_CAP = 400;
|
|
9975
9932
|
var STATIC_VERIFY_SAMPLE_CAP_MULTIPLIER = 8;
|
|
9976
9933
|
var STATIC_VERIFY_MAX_GLOBAL_SAMPLE_FLOOR = STATIC_VERIFY_MIN_SCREENSHOT_CAP / STATIC_VERIFY_SAMPLE_CAP_MULTIPLIER;
|
|
@@ -10124,10 +10081,11 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
|
|
|
10124
10081
|
stats
|
|
10125
10082
|
});
|
|
10126
10083
|
if (plan.runs.length === 0) return finish("unprofitable");
|
|
10127
|
-
const
|
|
10084
|
+
const pages = Array.isArray(page) ? page : [page];
|
|
10085
|
+
const seekToFrame = async (target, frameIdx) => {
|
|
10128
10086
|
stats.seeks++;
|
|
10129
10087
|
const t = quantizeTimeToFrame(frameIdx / fps, fps);
|
|
10130
|
-
await
|
|
10088
|
+
await target.evaluate((tt) => {
|
|
10131
10089
|
const hf = window.__hf;
|
|
10132
10090
|
if (hf && typeof hf.seek === "function") hf.seek(tt, { suppressEvents: false });
|
|
10133
10091
|
}, t);
|
|
@@ -10138,7 +10096,7 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
|
|
|
10138
10096
|
Math.ceil(plan.predictedFrames / STATIC_VERIFY_REFERENCE_STRIDE) * 3 + plan.runs.length
|
|
10139
10097
|
);
|
|
10140
10098
|
let firstShotMs = 0;
|
|
10141
|
-
const seekCapture = async (frameIdx) => {
|
|
10099
|
+
const seekCapture = async (target, frameIdx) => {
|
|
10142
10100
|
const spent = now() - startedAt;
|
|
10143
10101
|
const budget = Math.max(
|
|
10144
10102
|
STATIC_VERIFY_MAX_MS,
|
|
@@ -10150,44 +10108,73 @@ async function verifyStaticFramesSafe(session, page, staticFrames, fps, sampleCo
|
|
|
10150
10108
|
if (spent >= budget) return "time_budget";
|
|
10151
10109
|
if (stats.screenshots >= hardCap) return "count_budget";
|
|
10152
10110
|
const shotStart = now();
|
|
10153
|
-
await seekToFrame(frameIdx);
|
|
10154
|
-
stats.screenshots
|
|
10155
|
-
const buf = await capture(
|
|
10111
|
+
await seekToFrame(target, frameIdx);
|
|
10112
|
+
const first = stats.screenshots++ === 0;
|
|
10113
|
+
const buf = await capture(target, session.options);
|
|
10156
10114
|
session.options.onStaticDedupActivity?.();
|
|
10157
|
-
if (
|
|
10115
|
+
if (first) firstShotMs = now() - shotStart;
|
|
10158
10116
|
return buf;
|
|
10159
10117
|
};
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10118
|
+
let next = 0;
|
|
10119
|
+
let budgetExit;
|
|
10120
|
+
let mismatchAt;
|
|
10121
|
+
let failed = false;
|
|
10122
|
+
const stopped = () => budgetExit !== void 0 || mismatchAt !== void 0 || failed;
|
|
10123
|
+
const verifyOn = async (target) => {
|
|
10124
|
+
while (!stopped() && next < plan.runs.length) {
|
|
10125
|
+
const run = plan.runs[next++];
|
|
10126
|
+
const anchorBuf = await seekCapture(target, run.anchor);
|
|
10127
|
+
if (typeof anchorBuf === "string") {
|
|
10128
|
+
budgetExit ??= finish(anchorBuf, run.a);
|
|
10129
|
+
return;
|
|
10130
|
+
}
|
|
10164
10131
|
stats.completedAnchors++;
|
|
10165
10132
|
for (const f of run.comparisons) {
|
|
10166
|
-
const cur = await seekCapture(f);
|
|
10167
|
-
if (typeof cur === "string")
|
|
10133
|
+
const cur = await seekCapture(target, f);
|
|
10134
|
+
if (typeof cur === "string") {
|
|
10135
|
+
budgetExit ??= finish(cur, f);
|
|
10136
|
+
return;
|
|
10137
|
+
}
|
|
10168
10138
|
stats.completedComparisons++;
|
|
10169
10139
|
stats.byteComparisons++;
|
|
10170
10140
|
if (!anchorBuf.equals(cur)) {
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
stats.unverifiedFrames = plan.predictedFrames;
|
|
10174
|
-
return finish("mismatch", f);
|
|
10141
|
+
mismatchAt ??= f;
|
|
10142
|
+
return;
|
|
10175
10143
|
}
|
|
10176
10144
|
}
|
|
10145
|
+
if (mismatchAt !== void 0 || failed) return;
|
|
10177
10146
|
stats.completedRuns++;
|
|
10178
10147
|
for (let frame = run.a; frame <= run.b; frame++) verifiedFrames.add(frame);
|
|
10179
10148
|
stats.verifiedFrames = verifiedFrames.size;
|
|
10180
10149
|
stats.unverifiedFrames = plan.predictedFrames - verifiedFrames.size;
|
|
10181
10150
|
}
|
|
10182
|
-
|
|
10183
|
-
|
|
10151
|
+
};
|
|
10152
|
+
const clearVerified = () => {
|
|
10184
10153
|
verifiedFrames.clear();
|
|
10185
10154
|
stats.verifiedFrames = 0;
|
|
10186
10155
|
stats.unverifiedFrames = plan.predictedFrames;
|
|
10187
|
-
|
|
10156
|
+
};
|
|
10157
|
+
try {
|
|
10158
|
+
const settled = await Promise.allSettled(
|
|
10159
|
+
pages.map(
|
|
10160
|
+
(target) => verifyOn(target).catch((error) => {
|
|
10161
|
+
failed = true;
|
|
10162
|
+
throw error;
|
|
10163
|
+
})
|
|
10164
|
+
)
|
|
10165
|
+
);
|
|
10166
|
+
if (settled.some((lane) => lane.status === "rejected")) {
|
|
10167
|
+
clearVerified();
|
|
10168
|
+
return finish("infrastructure");
|
|
10169
|
+
}
|
|
10170
|
+
if (mismatchAt !== void 0) {
|
|
10171
|
+
clearVerified();
|
|
10172
|
+
return finish("mismatch", mismatchAt);
|
|
10173
|
+
}
|
|
10174
|
+
return budgetExit ?? finish("verified");
|
|
10188
10175
|
} finally {
|
|
10189
|
-
await seekToFrame(0).catch(() => {
|
|
10190
|
-
});
|
|
10176
|
+
await Promise.all(pages.map((target) => seekToFrame(target, 0).catch(() => {
|
|
10177
|
+
})));
|
|
10191
10178
|
stats.elapsedMs = Math.max(0, now() - startedAt);
|
|
10192
10179
|
}
|
|
10193
10180
|
}
|
|
@@ -10252,6 +10239,7 @@ async function armFromSharedStaticDedup(session, sharedFrames, predicted, fps, l
|
|
|
10252
10239
|
const spot = pickStaticSpotCheck(frames, session.options.staticDedupFrameRange);
|
|
10253
10240
|
if (spot.size === 0) {
|
|
10254
10241
|
session.staticDedupSkipReason = "ineligible";
|
|
10242
|
+
session.staticDedupIneligibleCause = "no_static_frames";
|
|
10255
10243
|
logInitPhase("static-frame dedup: disabled (no shared static run in this session's frames)");
|
|
10256
10244
|
return;
|
|
10257
10245
|
}
|
|
@@ -10334,6 +10322,7 @@ async function armStaticDedupFrames(session, page, logInitPhase, sharedStaticFra
|
|
|
10334
10322
|
const stats = sharedStaticFrameStats ?? await computeStaticFrameSet(page, fps, session.options.hiddenElementIds);
|
|
10335
10323
|
if (!stats.eligible || stats.staticFrameSet.size === 0) {
|
|
10336
10324
|
session.staticDedupSkipReason = "ineligible";
|
|
10325
|
+
session.staticDedupIneligibleCause = stats.eligible ? "no_static_frames" : stats.causes.join("+");
|
|
10337
10326
|
logInitPhase(`static-frame dedup: disabled (${stats.reason})`);
|
|
10338
10327
|
return;
|
|
10339
10328
|
}
|
|
@@ -10383,14 +10372,26 @@ async function verifyOrShareStaticFrames(session, stats, logInitPhase) {
|
|
|
10383
10372
|
claim?.settle(shareableStaticFrames(shared));
|
|
10384
10373
|
}
|
|
10385
10374
|
}
|
|
10375
|
+
function staticVerificationPageCount() {
|
|
10376
|
+
const forced = Number(process.env.HF_STATIC_DEDUP_VERIFY_PAGES);
|
|
10377
|
+
if (Number.isInteger(forced) && forced >= 1) return forced;
|
|
10378
|
+
return Math.min(STATIC_VERIFY_MAX_PAGES, Math.max(1, availableParallelism()));
|
|
10379
|
+
}
|
|
10386
10380
|
async function verifyAndArmStaticDedup(session, stats, fps, samples, logInitPhase, onVerdict) {
|
|
10387
|
-
let
|
|
10381
|
+
let verificationPages = [];
|
|
10388
10382
|
let verdict;
|
|
10389
10383
|
try {
|
|
10390
|
-
|
|
10384
|
+
const opened = await Promise.allSettled(
|
|
10385
|
+
Array.from(
|
|
10386
|
+
{ length: staticVerificationPageCount() },
|
|
10387
|
+
() => createStaticVerificationPage(session)
|
|
10388
|
+
)
|
|
10389
|
+
);
|
|
10390
|
+
verificationPages = opened.flatMap((p) => p.status === "fulfilled" ? [p.value] : []);
|
|
10391
|
+
if (verificationPages.length === 0) throw new Error("no verification page opened");
|
|
10391
10392
|
verdict = await verifyStaticFramesSafe(
|
|
10392
10393
|
session,
|
|
10393
|
-
|
|
10394
|
+
verificationPages,
|
|
10394
10395
|
stats.staticFrameSet,
|
|
10395
10396
|
fps,
|
|
10396
10397
|
samples
|
|
@@ -10400,8 +10401,8 @@ async function verifyAndArmStaticDedup(session, stats, fps, samples, logInitPhas
|
|
|
10400
10401
|
logInitPhase("static-frame dedup: disabled (verification infrastructure failure)");
|
|
10401
10402
|
return;
|
|
10402
10403
|
} finally {
|
|
10403
|
-
await
|
|
10404
|
-
});
|
|
10404
|
+
await Promise.all(verificationPages.map((p) => p.close().catch(() => {
|
|
10405
|
+
})));
|
|
10405
10406
|
}
|
|
10406
10407
|
session.staticDedupVerification = verdict;
|
|
10407
10408
|
onVerdict(verdict);
|
|
@@ -11100,7 +11101,7 @@ async function closeCaptureSession(session) {
|
|
|
11100
11101
|
session.isInitialized = false;
|
|
11101
11102
|
}
|
|
11102
11103
|
async function prepareCaptureSessionForReuse(session, outputDir, onBeforeCapture) {
|
|
11103
|
-
if (!
|
|
11104
|
+
if (!existsSync4(outputDir)) {
|
|
11104
11105
|
mkdirSync(outputDir, { recursive: true });
|
|
11105
11106
|
}
|
|
11106
11107
|
session.outputDir = outputDir;
|
|
@@ -11255,6 +11256,7 @@ function getCapturePerfSummary(session) {
|
|
|
11255
11256
|
staticDedupVerificationComparisons: session.staticDedupVerification?.stats.byteComparisons,
|
|
11256
11257
|
staticDedupVerificationElapsedMs: session.staticDedupVerification?.stats.elapsedMs,
|
|
11257
11258
|
staticDedupSkipReason: session.staticDedupSkipReason,
|
|
11259
|
+
staticDedupIneligibleCause: session.staticDedupIneligibleCause,
|
|
11258
11260
|
beginFrameNoDamage: session.beginFrameNoDamageCount,
|
|
11259
11261
|
beginFrameHasDamage: session.beginFrameHasDamageCount,
|
|
11260
11262
|
captureMode: session.captureMode,
|
|
@@ -11335,11 +11337,11 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
|
|
|
11335
11337
|
import {
|
|
11336
11338
|
closeSync,
|
|
11337
11339
|
copyFileSync,
|
|
11338
|
-
existsSync as
|
|
11340
|
+
existsSync as existsSync5,
|
|
11339
11341
|
ftruncateSync,
|
|
11340
11342
|
mkdirSync as mkdirSync2,
|
|
11341
11343
|
openSync,
|
|
11342
|
-
readFileSync as
|
|
11344
|
+
readFileSync as readFileSync3,
|
|
11343
11345
|
readdirSync as readdirSync3,
|
|
11344
11346
|
statSync as statSync2,
|
|
11345
11347
|
writeFileSync as writeFileSync2,
|
|
@@ -11976,7 +11978,7 @@ var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds })
|
|
|
11976
11978
|
async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
|
|
11977
11979
|
const startTime = Date.now();
|
|
11978
11980
|
const outputDir = dirname4(outputPath);
|
|
11979
|
-
if (!
|
|
11981
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11980
11982
|
const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
|
|
11981
11983
|
const frameCount = files.length;
|
|
11982
11984
|
if (frameCount === 0) {
|
|
@@ -12032,7 +12034,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
12032
12034
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
12033
12035
|
};
|
|
12034
12036
|
}
|
|
12035
|
-
const fileSize =
|
|
12037
|
+
const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
|
|
12036
12038
|
return {
|
|
12037
12039
|
success: true,
|
|
12038
12040
|
outputPath,
|
|
@@ -12175,7 +12177,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
12175
12177
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
12176
12178
|
};
|
|
12177
12179
|
}
|
|
12178
|
-
const fileSize =
|
|
12180
|
+
const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
|
|
12179
12181
|
return {
|
|
12180
12182
|
success: true,
|
|
12181
12183
|
outputPath,
|
|
@@ -12186,7 +12188,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
12186
12188
|
}
|
|
12187
12189
|
async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
|
|
12188
12190
|
const outputDir = dirname4(outputPath);
|
|
12189
|
-
if (!
|
|
12191
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
12190
12192
|
const outputExtension = extname(outputPath).toLowerCase();
|
|
12191
12193
|
const isWebm = outputExtension === ".webm";
|
|
12192
12194
|
const isMov = outputExtension === ".mov";
|
|
@@ -12261,7 +12263,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
12261
12263
|
if (outputDir.includes("%")) {
|
|
12262
12264
|
throw new Error(`[chunkEncoder] packageHls outputDir must not contain "%": ${outputDir}`);
|
|
12263
12265
|
}
|
|
12264
|
-
if (!
|
|
12266
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
12265
12267
|
const hasAudio = audioPath !== null;
|
|
12266
12268
|
const args = hasAudio ? ["-i", videoPath, "-i", audioPath, "-map", "0:v:0", "-map", "1:a:0"] : ["-i", videoPath, "-map", "0:v:0"];
|
|
12267
12269
|
args.push(
|
|
@@ -12310,7 +12312,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
12310
12312
|
}
|
|
12311
12313
|
if (master !== void 0) {
|
|
12312
12314
|
try {
|
|
12313
|
-
const stripped = stripAudioOnlyVariants(
|
|
12315
|
+
const stripped = stripAudioOnlyVariants(readFileSync3(master, "utf-8"));
|
|
12314
12316
|
ftruncateSync(master, 0);
|
|
12315
12317
|
writeSync(master, stripped, 0, "utf-8");
|
|
12316
12318
|
} finally {
|
|
@@ -12408,7 +12410,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
12408
12410
|
// ../engine/src/services/streamingEncoder.ts
|
|
12409
12411
|
import { spawn as spawn5 } from "child_process";
|
|
12410
12412
|
import { once } from "events";
|
|
12411
|
-
import { existsSync as
|
|
12413
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
|
|
12412
12414
|
import { dirname as dirname5 } from "path";
|
|
12413
12415
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
12414
12416
|
let cursor = startFrame;
|
|
@@ -12567,7 +12569,7 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null, nvencPresets
|
|
|
12567
12569
|
} else {
|
|
12568
12570
|
const encoderName = codec === "h264" ? "libx264" : "libx265";
|
|
12569
12571
|
args.push("-c:v", encoderName, "-preset", preset);
|
|
12570
|
-
appendSoftwareEncoderThreadsArg(args, encoderName);
|
|
12572
|
+
appendSoftwareEncoderThreadsArg(args, encoderName, options.softwareEncoderThreads);
|
|
12571
12573
|
if (bitrate) args.push("-b:v", bitrate);
|
|
12572
12574
|
else args.push("-crf", String(quality));
|
|
12573
12575
|
const lockedGop = resolveLockedGopSize(options);
|
|
@@ -12686,7 +12688,7 @@ function spawnFfmpegStream(outputPath, args, {
|
|
|
12686
12688
|
checkFrame
|
|
12687
12689
|
}) {
|
|
12688
12690
|
const outputDir = dirname5(outputPath);
|
|
12689
|
-
if (!
|
|
12691
|
+
if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
12690
12692
|
const ffmpeg = spawn5(getFfmpegBinary(), args, {
|
|
12691
12693
|
stdio: ["pipe", "pipe", "pipe"],
|
|
12692
12694
|
// See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
|
|
@@ -12812,7 +12814,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12812
12814
|
}) ? "external_interruption" : void 0
|
|
12813
12815
|
};
|
|
12814
12816
|
}
|
|
12815
|
-
const fileSize =
|
|
12817
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
12816
12818
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12817
12819
|
},
|
|
12818
12820
|
getExitStatus: () => exitStatus,
|
|
@@ -12963,7 +12965,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12963
12965
|
}
|
|
12964
12966
|
|
|
12965
12967
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12966
|
-
import { copyFileSync as copyFileSync2, existsSync as
|
|
12968
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync10, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12967
12969
|
import { basename as basename3, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
|
|
12968
12970
|
|
|
12969
12971
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
@@ -12997,10 +12999,10 @@ function createConcurrencyLimit(limit) {
|
|
|
12997
12999
|
}
|
|
12998
13000
|
|
|
12999
13001
|
// ../engine/src/utils/assetRoots.ts
|
|
13000
|
-
import { existsSync as
|
|
13002
|
+
import { existsSync as existsSync7 } from "fs";
|
|
13001
13003
|
function isInsideAssetRoots(path, roots) {
|
|
13002
13004
|
if (roots.some((root) => isSafePath(root, path))) return true;
|
|
13003
|
-
return !
|
|
13005
|
+
return !existsSync7(path) && roots.some((root) => isWithinProjectRoot(root, path));
|
|
13004
13006
|
}
|
|
13005
13007
|
function isPrivateUnderAssetRoots(path, roots) {
|
|
13006
13008
|
const holders = roots.filter((root) => isSafePath(root, path));
|
|
@@ -13020,7 +13022,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
|
|
|
13020
13022
|
}
|
|
13021
13023
|
|
|
13022
13024
|
// ../engine/src/utils/alphaPlaneProbe.ts
|
|
13023
|
-
import { mkdtempSync as mkdtempSync3, readFileSync as
|
|
13025
|
+
import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync4, rmSync as rmSync2 } from "fs";
|
|
13024
13026
|
import { tmpdir as tmpdir4 } from "os";
|
|
13025
13027
|
import { join as join10 } from "path";
|
|
13026
13028
|
var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
|
|
@@ -13061,7 +13063,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
|
|
|
13061
13063
|
{ timeout: 3e4, signal }
|
|
13062
13064
|
);
|
|
13063
13065
|
if (!result.success) return void 0;
|
|
13064
|
-
return sampledRgbaAlphaIsFullyOpaque(
|
|
13066
|
+
return sampledRgbaAlphaIsFullyOpaque(readFileSync4(samplePath));
|
|
13065
13067
|
} catch {
|
|
13066
13068
|
return void 0;
|
|
13067
13069
|
} finally {
|
|
@@ -13078,7 +13080,7 @@ import {
|
|
|
13078
13080
|
closeSync as closeSync2,
|
|
13079
13081
|
createReadStream as createReadStream2,
|
|
13080
13082
|
createWriteStream,
|
|
13081
|
-
existsSync as
|
|
13083
|
+
existsSync as existsSync8,
|
|
13082
13084
|
fsyncSync,
|
|
13083
13085
|
linkSync,
|
|
13084
13086
|
mkdirSync as mkdirSync4,
|
|
@@ -13409,9 +13411,31 @@ function undiciTransport(lookup) {
|
|
|
13409
13411
|
}
|
|
13410
13412
|
return transport;
|
|
13411
13413
|
}
|
|
13414
|
+
var UNRESOLVED_HOST_CODES = /* @__PURE__ */ new Set(["ENOTFOUND", "EAI_AGAIN", "EAI_FAIL"]);
|
|
13415
|
+
function assertProxiedHostResolvesPublic(url, signal) {
|
|
13416
|
+
const hostname = new URL(url).hostname.replace(/^\[|\]$/g, "");
|
|
13417
|
+
return new Promise((resolvePromise, reject) => {
|
|
13418
|
+
const abort = () => reject(signal?.reason);
|
|
13419
|
+
if (signal?.aborted) return abort();
|
|
13420
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
13421
|
+
dns.lookup(hostname, { all: true }, (error, answers) => {
|
|
13422
|
+
signal?.removeEventListener("abort", abort);
|
|
13423
|
+
if (error) {
|
|
13424
|
+
return UNRESOLVED_HOST_CODES.has(error.code ?? "") ? resolvePromise() : reject(error);
|
|
13425
|
+
}
|
|
13426
|
+
if (answers.some((a) => isBlockedNetworkHost(a.address.split("%")[0]))) {
|
|
13427
|
+
return reject(nonPublicAddressError());
|
|
13428
|
+
}
|
|
13429
|
+
resolvePromise();
|
|
13430
|
+
});
|
|
13431
|
+
});
|
|
13432
|
+
}
|
|
13412
13433
|
var fetchPublic = async (url, init) => {
|
|
13413
13434
|
if (resolveRestrictPageNetwork()) return (await undiciTransport(capturePolicyLookup))(url, init);
|
|
13414
|
-
if (fetchGoesThroughEnvProxy())
|
|
13435
|
+
if (fetchGoesThroughEnvProxy()) {
|
|
13436
|
+
await assertProxiedHostResolvesPublic(url, init.signal);
|
|
13437
|
+
return fetch(url, init);
|
|
13438
|
+
}
|
|
13415
13439
|
return (await undiciTransport(publicOnlyLookup))(url, init);
|
|
13416
13440
|
};
|
|
13417
13441
|
var downloadFetch = fetchPublic;
|
|
@@ -14303,7 +14327,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
|
|
|
14303
14327
|
if (inFlight) {
|
|
14304
14328
|
return inFlight;
|
|
14305
14329
|
}
|
|
14306
|
-
if (!
|
|
14330
|
+
if (!existsSync8(destDir)) {
|
|
14307
14331
|
mkdirSync4(destDir, { recursive: true });
|
|
14308
14332
|
}
|
|
14309
14333
|
const filename = getFilenameFromUrl(url, validationScope);
|
|
@@ -14407,7 +14431,7 @@ import { createHash as createHash4 } from "crypto";
|
|
|
14407
14431
|
import {
|
|
14408
14432
|
chmodSync,
|
|
14409
14433
|
createReadStream as createReadStream3,
|
|
14410
|
-
existsSync as
|
|
14434
|
+
existsSync as existsSync9,
|
|
14411
14435
|
lstatSync as lstatSync2,
|
|
14412
14436
|
mkdirSync as mkdirSync5,
|
|
14413
14437
|
readdirSync as readdirSync5,
|
|
@@ -14476,7 +14500,7 @@ function hasFrameFiles(dir) {
|
|
|
14476
14500
|
function lookupCacheEntry(rootDir, input) {
|
|
14477
14501
|
const keyHash = computeCacheKey(input);
|
|
14478
14502
|
const dir = join12(rootDir, cacheEntryDirName(keyHash));
|
|
14479
|
-
const complete =
|
|
14503
|
+
const complete = existsSync9(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
14480
14504
|
return { entry: { dir, keyHash }, hit: complete };
|
|
14481
14505
|
}
|
|
14482
14506
|
function createPartialCacheEntryDir(entry) {
|
|
@@ -14494,7 +14518,7 @@ function isTargetExistsRenameError(err) {
|
|
|
14494
14518
|
return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
|
|
14495
14519
|
}
|
|
14496
14520
|
function adoptPublishedWinner(entry, partialDir) {
|
|
14497
|
-
if (!
|
|
14521
|
+
if (!existsSync9(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
|
|
14498
14522
|
removeDir(partialDir);
|
|
14499
14523
|
return { dir: entry.dir, published: true };
|
|
14500
14524
|
}
|
|
@@ -15366,7 +15390,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
15366
15390
|
const fps = fpsToNumber(normalizedFps);
|
|
15367
15391
|
const ffmpegFps = fpsToFfmpegArg(normalizedFps);
|
|
15368
15392
|
const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
|
|
15369
|
-
if (!
|
|
15393
|
+
if (!existsSync10(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
|
|
15370
15394
|
let metadata;
|
|
15371
15395
|
try {
|
|
15372
15396
|
metadata = await extractMediaMetadata(videoPath);
|
|
@@ -16007,7 +16031,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16007
16031
|
);
|
|
16008
16032
|
await assertDownloadedVideoIsMedia(videoPath, video.id, signal);
|
|
16009
16033
|
}
|
|
16010
|
-
if (!
|
|
16034
|
+
if (!existsSync10(videoPath)) {
|
|
16011
16035
|
if (!warnedSrcs.has(video.src)) {
|
|
16012
16036
|
warnedSrcs.add(video.src);
|
|
16013
16037
|
process.stderr.write(
|
|
@@ -16743,7 +16767,7 @@ var FrameLookupTable = class {
|
|
|
16743
16767
|
cleanup() {
|
|
16744
16768
|
for (const video of this.videos.values()) {
|
|
16745
16769
|
if (video.extracted.ownedByLookup) continue;
|
|
16746
|
-
if (
|
|
16770
|
+
if (existsSync10(video.extracted.outputDir)) {
|
|
16747
16771
|
rmSync5(video.extracted.outputDir, { recursive: true, force: true });
|
|
16748
16772
|
}
|
|
16749
16773
|
}
|
|
@@ -17290,7 +17314,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
17290
17314
|
}
|
|
17291
17315
|
|
|
17292
17316
|
// ../engine/src/services/audioMixer.ts
|
|
17293
|
-
import { closeSync as closeSync4, existsSync as
|
|
17317
|
+
import { closeSync as closeSync4, existsSync as existsSync12, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
17294
17318
|
import { join as join17, dirname as dirname10, isAbsolute as isAbsolute3, relative as relative3 } from "path";
|
|
17295
17319
|
|
|
17296
17320
|
// ../core/dist/audioFade.js
|
|
@@ -17327,7 +17351,7 @@ function clampFadesToDuration(fades, duration) {
|
|
|
17327
17351
|
|
|
17328
17352
|
// ../engine/src/services/aacEncode.ts
|
|
17329
17353
|
import { execFile as execFile3 } from "child_process";
|
|
17330
|
-
import { readFileSync as
|
|
17354
|
+
import { readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
|
|
17331
17355
|
import { dirname as dirname8, join as join14 } from "path";
|
|
17332
17356
|
var SAMPLE_RATE = 48e3;
|
|
17333
17357
|
var FRAME_SAMPLES = 1024;
|
|
@@ -17429,7 +17453,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
17429
17453
|
if (failed) return failed;
|
|
17430
17454
|
const joined = join14(dir, "joined.aac");
|
|
17431
17455
|
const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
|
|
17432
|
-
const segmentFrames = splitAdtsFrames(
|
|
17456
|
+
const segmentFrames = splitAdtsFrames(readFileSync5(path));
|
|
17433
17457
|
if (segmentFrames.length < keepTo) {
|
|
17434
17458
|
throw new Error(`AAC segment ${path} has ${segmentFrames.length} frames, needs ${keepTo}`);
|
|
17435
17459
|
}
|
|
@@ -17561,7 +17585,7 @@ function audioFailureDiagnostics(values) {
|
|
|
17561
17585
|
}
|
|
17562
17586
|
|
|
17563
17587
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
17564
|
-
import { readFileSync as
|
|
17588
|
+
import { readFileSync as readFileSync6, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
17565
17589
|
import { dirname as dirname9, join as join15 } from "path";
|
|
17566
17590
|
|
|
17567
17591
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
@@ -17684,7 +17708,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
17684
17708
|
if (!gainAt) return false;
|
|
17685
17709
|
let stagingDir;
|
|
17686
17710
|
try {
|
|
17687
|
-
const buffer =
|
|
17711
|
+
const buffer = readFileSync6(wavPath);
|
|
17688
17712
|
const layout = parseWavLayout(buffer);
|
|
17689
17713
|
if (!layout) return false;
|
|
17690
17714
|
scaleSamples(buffer, layout, gainAt);
|
|
@@ -17918,10 +17942,10 @@ function chainTailSeconds(chain, automation) {
|
|
|
17918
17942
|
// ../engine/src/services/audioFxRender.ts
|
|
17919
17943
|
import {
|
|
17920
17944
|
closeSync as closeSync3,
|
|
17921
|
-
existsSync as
|
|
17945
|
+
existsSync as existsSync11,
|
|
17922
17946
|
mkdtempSync as mkdtempSync4,
|
|
17923
17947
|
openSync as openSync3,
|
|
17924
|
-
readFileSync as
|
|
17948
|
+
readFileSync as readFileSync7,
|
|
17925
17949
|
readSync,
|
|
17926
17950
|
statSync as statSync6,
|
|
17927
17951
|
writeFileSync as writeFileSync6,
|
|
@@ -18023,7 +18047,7 @@ function readWavHeader(path) {
|
|
|
18023
18047
|
}
|
|
18024
18048
|
}
|
|
18025
18049
|
function readWav(path) {
|
|
18026
|
-
const buf =
|
|
18050
|
+
const buf = readFileSync7(path);
|
|
18027
18051
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") {
|
|
18028
18052
|
throw new AudioFxRenderError(`Not a WAV file: ${path}`);
|
|
18029
18053
|
}
|
|
@@ -18230,7 +18254,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
|
|
|
18230
18254
|
}
|
|
18231
18255
|
async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
18232
18256
|
if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
|
|
18233
|
-
if (!
|
|
18257
|
+
if (!existsSync11(inputWav)) {
|
|
18234
18258
|
throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
|
|
18235
18259
|
}
|
|
18236
18260
|
const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
|
|
@@ -18767,7 +18791,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
|
|
|
18767
18791
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
18768
18792
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18769
18793
|
const outputDir = dirname10(outputPath);
|
|
18770
|
-
if (!
|
|
18794
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18771
18795
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
18772
18796
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
18773
18797
|
const readsUrl = isHttpUrl(srcPath);
|
|
@@ -18913,7 +18937,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
18913
18937
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
18914
18938
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18915
18939
|
const outputDir = dirname10(outputPath);
|
|
18916
|
-
if (!
|
|
18940
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18917
18941
|
const args = [
|
|
18918
18942
|
"-f",
|
|
18919
18943
|
"lavfi",
|
|
@@ -18967,7 +18991,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18967
18991
|
};
|
|
18968
18992
|
}
|
|
18969
18993
|
const outputDir = dirname10(outputPath);
|
|
18970
|
-
if (!
|
|
18994
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18971
18995
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18972
18996
|
const filterParts = [];
|
|
18973
18997
|
tracks.forEach((track, i) => {
|
|
@@ -19076,7 +19100,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
19076
19100
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
19077
19101
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
19078
19102
|
const outputDir = dirname10(outputPath);
|
|
19079
|
-
if (!
|
|
19103
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
19080
19104
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
19081
19105
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
19082
19106
|
return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
|
|
@@ -19303,7 +19327,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19303
19327
|
const failures = [];
|
|
19304
19328
|
const groupTracks = /* @__PURE__ */ new Map();
|
|
19305
19329
|
const groupMeta = /* @__PURE__ */ new Map();
|
|
19306
|
-
if (!
|
|
19330
|
+
if (!existsSync12(workDir)) mkdirSync7(workDir, { recursive: true });
|
|
19307
19331
|
const internalController = new AbortController();
|
|
19308
19332
|
const effectiveSignal = internalController.signal;
|
|
19309
19333
|
if (signal) {
|
|
@@ -19367,7 +19391,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19367
19391
|
return;
|
|
19368
19392
|
}
|
|
19369
19393
|
}
|
|
19370
|
-
if (!readInPlace && !
|
|
19394
|
+
if (!readInPlace && !existsSync12(srcPath)) {
|
|
19371
19395
|
failures.push({
|
|
19372
19396
|
stage: "source",
|
|
19373
19397
|
reason: "source_not_found",
|
|
@@ -19735,7 +19759,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19735
19759
|
|
|
19736
19760
|
// ../engine/src/services/parallelCoordinator.ts
|
|
19737
19761
|
import { freemem } from "os";
|
|
19738
|
-
import { existsSync as
|
|
19762
|
+
import { existsSync as existsSync13, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
19739
19763
|
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
19740
19764
|
import { join as join19 } from "path";
|
|
19741
19765
|
import { getHeapStatistics } from "v8";
|
|
@@ -20233,7 +20257,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
20233
20257
|
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
|
|
20234
20258
|
const startTime = Date.now();
|
|
20235
20259
|
let framesCaptured = 0;
|
|
20236
|
-
if (!
|
|
20260
|
+
if (!existsSync13(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
20237
20261
|
let session = null;
|
|
20238
20262
|
let perf;
|
|
20239
20263
|
const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
|
|
@@ -20488,11 +20512,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
20488
20512
|
return results;
|
|
20489
20513
|
}
|
|
20490
20514
|
async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
20491
|
-
if (!
|
|
20515
|
+
if (!existsSync13(outputDir)) mkdirSync8(outputDir, { recursive: true });
|
|
20492
20516
|
let totalFrames = 0;
|
|
20493
20517
|
const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
|
|
20494
20518
|
for (const task of sortedTasks) {
|
|
20495
|
-
if (!
|
|
20519
|
+
if (!existsSync13(task.outputDir)) {
|
|
20496
20520
|
continue;
|
|
20497
20521
|
}
|
|
20498
20522
|
const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
|
|
@@ -20522,7 +20546,7 @@ function getSystemResources() {
|
|
|
20522
20546
|
// ../engine/src/services/fileServer.ts
|
|
20523
20547
|
import { Hono } from "hono";
|
|
20524
20548
|
import { serve } from "@hono/node-server";
|
|
20525
|
-
import { readFileSync as
|
|
20549
|
+
import { readFileSync as readFileSync8, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
|
|
20526
20550
|
import { join as join20, extname as extname3 } from "path";
|
|
20527
20551
|
import { hostname as machineName, networkInterfaces } from "os";
|
|
20528
20552
|
|
|
@@ -20586,7 +20610,7 @@ function readRegularFile(filePath) {
|
|
|
20586
20610
|
}
|
|
20587
20611
|
try {
|
|
20588
20612
|
if (!fstatSync(fd).isFile()) return null;
|
|
20589
|
-
return
|
|
20613
|
+
return readFileSync8(fd);
|
|
20590
20614
|
} finally {
|
|
20591
20615
|
closeSync5(fd);
|
|
20592
20616
|
}
|
|
@@ -20647,6 +20671,12 @@ function createFileServer(options) {
|
|
|
20647
20671
|
return c.text("Forbidden: unknown host", 403);
|
|
20648
20672
|
});
|
|
20649
20673
|
}
|
|
20674
|
+
app.use(async function refuseServiceWorkerScripts(c, next) {
|
|
20675
|
+
const serviceWorker = c.req.header("service-worker");
|
|
20676
|
+
if (!serviceWorkerScriptFetch({ serviceWorker, fetchDest: c.req.header("sec-fetch-dest") }))
|
|
20677
|
+
return next();
|
|
20678
|
+
return c.text("Forbidden", 403);
|
|
20679
|
+
});
|
|
20650
20680
|
app.get("/*", (c) => {
|
|
20651
20681
|
let requestPath = c.req.path;
|
|
20652
20682
|
if (requestPath === "/") requestPath = "/index.html";
|
|
@@ -20973,22 +21003,25 @@ async function launchHdrBrowser(width, height) {
|
|
|
20973
21003
|
"[HDR] Name a full Chrome in HYPERFRAMES_BROWSER_PATH: HDR capture does not start a cached browser."
|
|
20974
21004
|
);
|
|
20975
21005
|
}
|
|
20976
|
-
const
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
21006
|
+
const launcher = ppt;
|
|
21007
|
+
const browser = await launchWithChromeSandboxFallback(
|
|
21008
|
+
buildHdrChromeArgs(width, height),
|
|
21009
|
+
(args) => launcher.launch({
|
|
21010
|
+
...ownedLaunchOptions(),
|
|
21011
|
+
headless: false,
|
|
21012
|
+
executablePath: chromePath,
|
|
21013
|
+
env: buildChromeLaunchEnv(),
|
|
21014
|
+
args: withHyperframesBrowserMarker(args)
|
|
21015
|
+
})
|
|
21016
|
+
);
|
|
20983
21017
|
const page = await browser.newPage();
|
|
20984
21018
|
await page.setViewport({ width, height });
|
|
20985
21019
|
return { browser, page };
|
|
20986
21020
|
}
|
|
20987
|
-
function buildHdrChromeArgs(width, height) {
|
|
21021
|
+
function buildHdrChromeArgs(width, height, sandbox = chromeSandboxEnabled()) {
|
|
20988
21022
|
return [
|
|
20989
21023
|
"--enable-unsafe-webgpu",
|
|
20990
|
-
|
|
20991
|
-
"--disable-setuid-sandbox",
|
|
21024
|
+
...chromeSandboxArgs(sandbox),
|
|
20992
21025
|
"--window-position=-10000,-10000",
|
|
20993
21026
|
`--window-size=${width},${height}`,
|
|
20994
21027
|
"--disable-background-timer-throttling",
|
|
@@ -20999,7 +21032,6 @@ function buildHdrChromeArgs(width, height) {
|
|
|
20999
21032
|
"--disable-component-update",
|
|
21000
21033
|
"--disable-default-apps",
|
|
21001
21034
|
"--disable-sync",
|
|
21002
|
-
"--no-zygote",
|
|
21003
21035
|
"--force-gpu-mem-available-mb=4096",
|
|
21004
21036
|
"--autoplay-policy=no-user-gesture-required"
|
|
21005
21037
|
];
|
|
@@ -21035,9 +21067,6 @@ export {
|
|
|
21035
21067
|
oneProcessOverPipe,
|
|
21036
21068
|
isOneProcessOverPipe,
|
|
21037
21069
|
sandboxDeniedRemediation,
|
|
21038
|
-
chromeSandboxEnabled,
|
|
21039
|
-
chromeSandboxArgs,
|
|
21040
|
-
launchWithChromeSandboxFallback,
|
|
21041
21070
|
BrowserLeasePool,
|
|
21042
21071
|
setHostHandlesSigint,
|
|
21043
21072
|
resolveHeadlessShellPath,
|