hyperframes 0.9.58 → 0.9.61
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/bin/hyperframes.mjs +3 -1
- package/dist/{add-JQUKPSEZ.js → add-LNPIKHAX.js} +33 -32
- package/dist/{agentPromptGenerator-3NEY7FPP.js → agentPromptGenerator-N3HL4JWM.js} +19 -20
- package/dist/{animatedGifPrep-VMUZ6IVJ.js → animatedGifPrep-SEPXIM4W.js} +24 -24
- package/dist/api.d.ts +8 -1
- package/dist/api.js +70 -69
- package/dist/{appHistory-JNI6IOR6.js → appHistory-ASGUPUUV.js} +6 -6
- package/dist/{asset-ZT3VXZ67.js → asset-3L2G3ROU.js} +17 -7
- package/dist/{assetCataloger-D2DV65BA.js → assetCataloger-3D75A6GI.js} +21 -22
- package/dist/{audio-LD5H2R5V.js → audio-U4W5ZWQ7.js} +54 -53
- package/dist/{auth-4FPYYMSH.js → auth-V4G5ZE3P.js} +4 -4
- package/dist/{autoUpdate-5ZKSFCG4.js → autoUpdate-QYKF3DDS.js} +6 -6
- package/dist/{avatars-DCLFE7VG.js → avatars-SB2XCDWJ.js} +31 -32
- package/dist/{backgroundChecks-UZA3F46H.js → backgroundChecks-KHBYRE6J.js} +16 -9
- package/dist/backgroundChecksWorker.js +9 -9
- package/dist/{batchRender-TAUW3CT2.js → batchRender-6S5GMICZ.js} +13 -14
- package/dist/{beats-X3LCR6OG.js → beats-7YLYCCMD.js} +21 -22
- package/dist/{benchmark-DNZQT3YQ.js → benchmark-IBX7ZWVU.js} +37 -35
- package/dist/{billing-4BFUAHWX.js → billing-EAHOGMQW.js} +28 -29
- package/dist/{browser-5J2MTDB6.js → browser-XKYRXDJW.js} +23 -24
- package/dist/{bundleWithLocalizedFonts-XWK47ZVF.js → bundleWithLocalizedFonts-ZFX7TSWT.js} +1 -1
- package/dist/{capture-TVYTKWTG.js → capture-4WKQKMXG.js} +38 -17
- package/dist/{capture-2YSVFKWV.js → capture-IBOCZ2MK.js} +56 -50
- package/dist/{captureCompositionFrame-L765HLCT.js → captureCompositionFrame-HZA3LNU3.js} +29 -30
- package/dist/{captureFile-DOCK42K3.js → captureFile-Z7HQDRC2.js} +4 -4
- package/dist/captureProxy-4K3J652A.js +23 -0
- package/dist/{catalog-CHGGRRQX.js → catalog-TSXQTLKM.js} +45 -43
- package/dist/{catch-up-OCFU6ZR3.js → catch-up-LD2B5CE3.js} +35 -29
- package/dist/{check-LWK4Z7FI.js → check-TEZKUD26.js} +72 -72
- package/dist/{checkAudio-R5ORBXBO.js → checkAudio-3GM74ZGV.js} +22 -23
- package/dist/{checkBrowser-6SH73T47.js → checkBrowser-OFH3I7Q6.js} +62 -62
- package/dist/{chunk-2WA62M3B.js → chunk-22B53HD3.js} +10 -5
- package/dist/{chunk-K2EJQ44S.js → chunk-2CNVJQKU.js} +1 -1
- package/dist/{chunk-XMT4MG6W.js → chunk-2H4SJSUS.js} +14 -14
- package/dist/{chunk-6RPKPL22.js → chunk-2SPQTJA2.js} +25 -23
- package/dist/{chunk-GIVMQDSK.js → chunk-32H642MS.js} +2 -2
- package/dist/chunk-3GF72UPC.js +256 -0
- package/dist/chunk-3HJX4F2S.js +39 -0
- package/dist/{chunk-VXE46PXX.js → chunk-3JVTHNDH.js} +1 -1
- package/dist/{chunk-H3LEOZVK.js → chunk-3ROFCQAW.js} +1 -1
- package/dist/{chunk-NLVIE7VN.js → chunk-3W2ORSFV.js} +4 -4
- package/dist/{chunk-4QPT3IEL.js → chunk-4AMOVEV7.js} +181 -59
- package/dist/{chunk-A4L7G74T.js → chunk-4EWS3KP3.js} +3 -3
- package/dist/{chunk-AJ7YRQS4.js → chunk-4ORH2OXS.js} +2 -2
- package/dist/{chunk-2GRCLLKU.js → chunk-4SDNEKTL.js} +4 -4
- package/dist/{chunk-CDNVZEGQ.js → chunk-4T45V6GF.js} +5 -2
- package/dist/{chunk-GDIBE57N.js → chunk-4ZLWEPK4.js} +2 -2
- package/dist/{chunk-CRPLPK6J.js → chunk-5F2ULLFW.js} +7 -7
- package/dist/{chunk-O5U3Y5DX.js → chunk-5GUYYSVT.js} +1 -1
- package/dist/{chunk-EOXNEA4Z.js → chunk-5RM7274K.js} +21 -9
- package/dist/{chunk-E4IR34CF.js → chunk-5T2LNQAH.js} +58 -20
- package/dist/{chunk-M5TTYUZM.js → chunk-5ZAM42GH.js} +6 -6
- package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
- package/dist/{chunk-A4YRESMH.js → chunk-63CSQYYO.js} +2 -2
- package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
- package/dist/{chunk-X3IVUSOX.js → chunk-6KU6TCSS.js} +3 -3
- package/dist/{chunk-DHVRVI7F.js → chunk-6NDSDQCR.js} +62 -27
- package/dist/{chunk-O4K22EFS.js → chunk-6OKMCIDU.js} +24 -14
- package/dist/{chunk-D3M5VOC5.js → chunk-6P7FLYOR.js} +55 -125
- package/dist/{chunk-JQZ5WP7L.js → chunk-6R22Y26Z.js} +1 -1
- package/dist/{chunk-2SJNGWSY.js → chunk-6X2CLRU7.js} +1 -1
- package/dist/{chunk-PYTF6VHF.js → chunk-6ZU654EU.js} +3 -3
- package/dist/{chunk-G3U5CUF3.js → chunk-73NC557V.js} +2 -2
- package/dist/{chunk-7WAWUQDQ.js → chunk-7463BOQJ.js} +4 -4
- package/dist/{chunk-4N3WOFP3.js → chunk-7AP5C4C2.js} +19 -19
- package/dist/{chunk-FFOFGL2O.js → chunk-7DMES2F3.js} +2 -2
- package/dist/{chunk-Y6CZFX5X.js → chunk-7GDEQJSL.js} +28 -19
- package/dist/{chunk-ECGNWHFE.js → chunk-A2ZUVULS.js} +88 -2
- package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
- package/dist/{chunk-TLGQQ324.js → chunk-ADQ7XZE5.js} +11 -9
- package/dist/{chunk-M3IHARIW.js → chunk-B5JWBMDR.js} +102 -40
- package/dist/{chunk-7ZHBY7T5.js → chunk-B5TLZC2D.js} +11 -4
- package/dist/{chunk-DH3M5X3Y.js → chunk-BAU3ASNM.js} +4 -4
- package/dist/{chunk-ELRE6LVJ.js → chunk-BHZZM2PK.js} +5 -5
- package/dist/chunk-BNH2IKGV.js +5101 -0
- package/dist/{chunk-ROESFEBP.js → chunk-BNO5RN55.js} +74 -66
- package/dist/{chunk-EWKJDXH6.js → chunk-C2GAAMZ3.js} +4 -4
- package/dist/{chunk-OMZSPAK5.js → chunk-C7IEAEKF.js} +1 -1
- package/dist/{chunk-ZFOV3R2L.js → chunk-CAAUQUCW.js} +23 -9
- package/dist/{chunk-CPDPSNSB.js → chunk-CPHK3XMF.js} +7 -7
- package/dist/{chunk-NJPLH762.js → chunk-CPLVXXRS.js} +4 -4
- package/dist/{chunk-AMS7Q7P7.js → chunk-CRX444MF.js} +22 -21
- package/dist/{chunk-4LZSNWFJ.js → chunk-CRZ7FUMI.js} +3 -3
- package/dist/{chunk-VI2LLFW6.js → chunk-CSWJCRDU.js} +2 -2
- package/dist/{chunk-37Y334MN.js → chunk-CT54FOTS.js} +18 -14
- package/dist/{chunk-CGODFJZ7.js → chunk-CYM53TWZ.js} +32 -18
- package/dist/chunk-D37I36FY.js +21 -0
- package/dist/{chunk-LO5USUM4.js → chunk-DD37XZVE.js} +1 -1
- package/dist/{chunk-OD7XWF5T.js → chunk-DWGDP537.js} +12 -6
- package/dist/chunk-EDH2DMXM.js +113 -0
- package/dist/{chunk-TAXMLPTE.js → chunk-ENKXJNKX.js} +2 -2
- package/dist/{chunk-UJTLTFB6.js → chunk-ERYGKPIR.js} +1 -1
- package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
- package/dist/{chunk-GVIJFPZV.js → chunk-FLJ4S7NA.js} +2 -2
- package/dist/{chunk-KYKQO4VN.js → chunk-FU62NEWC.js} +3 -3
- package/dist/{chunk-MPC3OODR.js → chunk-G7HO2FFX.js} +4 -4
- package/dist/chunk-GADMF4BL.js +170 -0
- package/dist/{chunk-DWFWF6IR.js → chunk-GNRC4L6F.js} +34 -242
- package/dist/{chunk-BSFTB6AM.js → chunk-GYPZTG46.js} +12 -6
- package/dist/{chunk-OL7RHRNJ.js → chunk-H4HYZUE3.js} +2 -2
- package/dist/{chunk-V3O4AFO3.js → chunk-H6Y4XOSP.js} +17 -15
- package/dist/{chunk-PGITR2WX.js → chunk-HAMPVCRY.js} +4 -4
- package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
- package/dist/{chunk-HFIVZJJD.js → chunk-HTHLFEO2.js} +1 -1
- package/dist/{chunk-SM5PNCDI.js → chunk-ICZWQNBR.js} +2 -2
- package/dist/{chunk-HTGJOOXE.js → chunk-IIXSSRUR.js} +4 -4
- package/dist/{chunk-GEOJA37C.js → chunk-ILKK6F5E.js} +3 -3
- package/dist/{chunk-IHXMN5YH.js → chunk-IOWECUEU.js} +2 -2
- package/dist/{chunk-SE4NOUB6.js → chunk-IT2YUKYY.js} +5 -5
- package/dist/chunk-IU6AC3WL.js +125 -0
- package/dist/{chunk-IGZQYMZA.js → chunk-J56ZJFSF.js} +303 -123
- package/dist/{chunk-5SGGOZNL.js → chunk-KBEC6VQS.js} +595 -206
- package/dist/{chunk-WEU6WLVT.js → chunk-KTY46LIH.js} +8 -4
- package/dist/chunk-KUJJJBV2.js +211 -0
- package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
- package/dist/{chunk-XYP4T6TQ.js → chunk-KYZEK7QF.js} +5 -5
- package/dist/{chunk-UGKUGYHD.js → chunk-L7MFHIG7.js} +5 -2
- package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
- package/dist/{chunk-SV72WLBE.js → chunk-LGIWC6KN.js} +28 -15
- package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
- package/dist/{chunk-VLFBOKZX.js → chunk-LTXZLTXW.js} +304 -234
- package/dist/{chunk-WJIWXHXK.js → chunk-LULZFFDN.js} +3 -3
- package/dist/{chunk-CGJIMWNU.js → chunk-LV2ETFC5.js} +5 -5
- package/dist/{chunk-DL6PEJWH.js → chunk-LYTELQL2.js} +2 -4
- package/dist/{chunk-W2OXNTHG.js → chunk-LZSSGF7G.js} +3 -3
- package/dist/chunk-MERWX4DZ.js +159 -0
- package/dist/{chunk-CVTIGS5K.js → chunk-MJBBKSKB.js} +1 -1
- package/dist/{chunk-5IUVWP3A.js → chunk-MPVJI4SE.js} +2 -2
- package/dist/{chunk-7WYJXKIG.js → chunk-MPX3FO4A.js} +5 -5
- package/dist/{chunk-ERDQIRUL.js → chunk-MQCIX6O2.js} +20 -10
- package/dist/{chunk-ZO5NHAF3.js → chunk-MTCVUAUK.js} +10 -4
- package/dist/{chunk-E26Z73S3.js → chunk-MTKXKULM.js} +2 -2
- package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
- package/dist/{chunk-FNXU56VT.js → chunk-NK2UW3WR.js} +1 -1
- package/dist/{chunk-PS7WBIPK.js → chunk-NOJRZCN3.js} +33 -18
- package/dist/{chunk-JOOKM2NC.js → chunk-NU7BEOCX.js} +3 -3
- package/dist/chunk-NY6E4272.js +112 -0
- package/dist/{chunk-JZVI2TMX.js → chunk-OBP5WNKP.js} +3 -3
- package/dist/{chunk-AM4Y3XMR.js → chunk-OGOR22GY.js} +4 -4
- package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
- package/dist/{chunk-DX5Y3L5B.js → chunk-OPUR2XQ2.js} +6 -6
- package/dist/{chunk-SYKUNH25.js → chunk-OW6MOJSR.js} +59 -7
- package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
- package/dist/{chunk-D2LSYXLW.js → chunk-PAHTZDMZ.js} +1 -1
- package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
- package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
- package/dist/{chunk-U5MILT4G.js → chunk-PPETKAEO.js} +1 -1
- package/dist/{chunk-ZLTB7ZCQ.js → chunk-PQ2OPPGP.js} +8 -4
- package/dist/chunk-PTGNUVCB.js +112 -0
- package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
- package/dist/{chunk-MYETYFDI.js → chunk-Q7IOMZ5X.js} +2 -2
- package/dist/{chunk-GRSZAGJB.js → chunk-R2LBMDYH.js} +2 -2
- package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
- package/dist/{chunk-VSM7OIG2.js → chunk-RDJOA5MM.js} +2 -2
- package/dist/{chunk-OEGWTN6N.js → chunk-RF3DT4CS.js} +1 -1
- package/dist/{chunk-WGHJUGNU.js → chunk-RJCQZMNI.js} +10 -10
- package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
- package/dist/{chunk-7ECPFKQV.js → chunk-RRI7NGQZ.js} +37 -13
- package/dist/{chunk-X3UXEB2U.js → chunk-RSYV6NNI.js} +2 -2
- package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
- package/dist/{chunk-QGQCWG7F.js → chunk-SCEBICAQ.js} +2 -2
- package/dist/{chunk-JKLWQUSV.js → chunk-SDIQEPAR.js} +1 -1
- package/dist/{chunk-3VMZQQUI.js → chunk-SIQGTRZ5.js} +1 -1
- package/dist/{chunk-N6PAWR5C.js → chunk-SQI2MWJE.js} +5 -5
- package/dist/{chunk-BSDUTNFX.js → chunk-SYMLVFQF.js} +1 -1
- package/dist/{chunk-XMAU5ZQX.js → chunk-TFAKFI3R.js} +1 -1
- package/dist/{chunk-SNKBI4YB.js → chunk-TJAFCC37.js} +9 -9
- package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
- package/dist/{chunk-4NNYYCJN.js → chunk-TRVWLAQ3.js} +25 -21
- package/dist/{chunk-UDLWVQ74.js → chunk-TTRX7NM3.js} +35 -21
- package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
- package/dist/{chunk-TLDIP7Y3.js → chunk-UEJMLVGW.js} +16 -17
- package/dist/{chunk-ZAWQJOTW.js → chunk-UX5KLSAJ.js} +74 -76
- package/dist/{chunk-O2BLY7PO.js → chunk-VJVTGSGW.js} +1 -1
- package/dist/{chunk-IE6BIB3L.js → chunk-VM2VBJRC.js} +34 -3
- package/dist/{chunk-AM6UYKVR.js → chunk-VNWPHKKI.js} +11 -11
- package/dist/{chunk-WQZQMADW.js → chunk-VRUVJTFW.js} +244 -28
- package/dist/{chunk-37VS6QY6.js → chunk-VSS3OAZB.js} +1 -1
- package/dist/{chunk-H7DTMLAR.js → chunk-VZM7AFUH.js} +39 -24
- package/dist/{chunk-WLNHZ2OM.js → chunk-W772ZFTE.js} +21 -6
- package/dist/{chunk-3GKGBYW3.js → chunk-WTO3A7ET.js} +120 -9
- package/dist/{chunk-ALD7JBPV.js → chunk-WTS245RC.js} +2 -2
- package/dist/{chunk-VBEDZGBW.js → chunk-WTUDKVWQ.js} +74 -19
- package/dist/{chunk-OPSGEOCO.js → chunk-WVCCSYZC.js} +53 -31
- package/dist/{chunk-ZCLC3KVY.js → chunk-X3NGTIE3.js} +1 -1
- package/dist/{chunk-RV3HR3BZ.js → chunk-XLG3JMSS.js} +9 -9
- package/dist/{chunk-ZYNNZ5DE.js → chunk-Y53Z2M77.js} +2 -2
- package/dist/{chunk-O2INZCGB.js → chunk-YB2ZJJFJ.js} +1 -1
- package/dist/{chunk-J6VYWZSO.js → chunk-YLC67YFR.js} +1 -1
- package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
- package/dist/chunk-Z3BPDCRV.js +537 -0
- package/dist/{chunk-I6V25IXG.js → chunk-Z55ASKZE.js} +2 -2
- package/dist/{chunk-EZJHKHWU.js → chunk-ZBDITGMP.js} +3 -3
- package/dist/{chunk-MSC5KBCE.js → chunk-ZGSGBGTB.js} +32 -24
- package/dist/{clean-6ODSABBF.js → clean-RJKQ23WH.js} +46 -46
- package/dist/cli.js +120 -77
- package/dist/{cloud-IMYQB5RC.js → cloud-R3NQSUTQ.js} +4 -4
- package/dist/{cloud-NTKLXMBS.js → cloud-VUR3ZO6O.js} +10 -10
- package/dist/{cloudrun-JNLDP33J.js → cloudrun-SZYAYV7N.js} +24 -16
- package/dist/{compare-VLYZ6ZS4.js → compare-AO5VJBJW.js} +79 -100
- package/dist/{compiler-7M2UCEWG.js → compiler-65SP7M2P.js} +9 -10
- package/dist/{component-KMUHKZ4R.js → component-WGTPAIKX.js} +23 -9
- package/dist/{compositions-ESLWNOMS.js → compositions-HWM6DNJA.js} +28 -29
- package/dist/{contactSheet-4YF7U6U7.js → contactSheet-ROUVWDRO.js} +7 -7
- package/dist/{curve-7RPSNRPE.js → curve-PLPTMDS4.js} +27 -28
- package/dist/{cuts-KBAAZSPS.js → cuts-T5GYTDUA.js} +28 -29
- package/dist/{delete-EP5Z7HKF.js → delete-6WE3N3VO.js} +33 -21
- package/dist/{deploy-MVR63JLD.js → deploy-GYY6CYQD.js} +14 -13
- package/dist/{describeProject-NBVZT5EN.js → describeProject-UQQ2GGIX.js} +19 -20
- package/dist/{destroy-DQKIT574.js → destroy-WSGREGAG.js} +14 -13
- package/dist/{deterministicFonts-LYBMXXBW.js → deterministicFonts-JER4GPCM.js} +7 -7
- package/dist/{diff-RI3FTMOZ.js → diff-JQBZUPKG.js} +305 -114
- package/dist/{dist-LRGTXDSM.js → dist-6EF2P3P7.js} +6 -5
- package/dist/{dist-G7VFX23I.js → dist-HF753IX4.js} +12 -10
- package/dist/{dist-TOOMD57O.js → dist-JRJHFP27.js} +24 -24
- package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
- package/dist/{doctor-43YNRCRB.js → doctor-SPJ5AJKX.js} +31 -32
- package/dist/{dotEnv-RZ52L7X3.js → dotEnv-7JWLJ2TG.js} +11 -3
- package/dist/{energy-YCH36KCC.js → energy-KPDVIZ5D.js} +28 -29
- package/dist/{events-VUR27EF6.js → events-4WAMG3JE.js} +15 -16
- package/dist/{events-6RJBITYN.js → events-P4223ZZZ.js} +30 -31
- package/dist/{events-JCPYG3CD.js → events-XON5I7VU.js} +9 -9
- package/dist/{execute-OXMKWIFI.js → execute-CN5FLBYU.js} +57 -53
- package/dist/{extract-XGD2RDEX.js → extract-ABSBKYYH.js} +29 -30
- package/dist/{face-XCNWNTGN.js → face-PLPQ5335.js} +29 -30
- package/dist/{feedback-JNFDVBFV.js → feedback-QPQ4G72X.js} +70 -44
- package/dist/{ffmpeg-YQLAJUEA.js → ffmpeg-F3XK57IP.js} +19 -20
- package/dist/{figma-XXGHYEB3.js → figma-S5CVANVZ.js} +3 -3
- package/dist/fontLocalizeCli.js +29 -29
- package/dist/{frames-PEMWFRRY.js → frames-F4QEQB4V.js} +30 -31
- package/dist/{generate-H5M4QSJR.js → generate-O3OPOCHP.js} +46 -47
- package/dist/{get-R6Y2OE5P.js → get-P7LQ7U22.js} +29 -17
- package/dist/{gpuPolicy-2WVDQYZA.js → gpuPolicy-JPRDRQWU.js} +18 -19
- package/dist/{grade-compare-KFXPZFDL.js → grade-compare-6UZ6SK4J.js} +61 -61
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-VLKYA5QZ.js → heifImagePrep-3PDFNYIE.js} +25 -25
- package/dist/{help-T3XUX5RI.js → help-DLOCAL7E.js} +1 -1
- package/dist/{history-QJPUCUUC.js → history-YIJVOGH7.js} +29 -30
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +14 -6
- package/dist/{info-556DHJHJ.js → info-FVYJNNQL.js} +33 -34
- package/dist/{init-P62TPWR3.js → init-V45K4VAG.js} +54 -53
- package/dist/{ink-SRN65OZH.js → ink-P72OB7L4.js} +28 -29
- package/dist/{inspect-U5FWQQFB.js → inspect-3W2IG3JF.js} +63 -59
- package/dist/{installer-3TNMANQV.js → installer-QGDTFTDU.js} +11 -12
- package/dist/{keyframes-FPGEFGCH.js → keyframes-57OPHIR2.js} +111 -49
- package/dist/{lambda-YJY2MYWL.js → lambda-EQZS7UMO.js} +40 -33
- package/dist/{layout-QIKSVA44.js → layout-KSWMO6MH.js} +63 -61
- package/dist/{lint-RD33ESM5.js → lint-WIYBGVF2.js} +23 -24
- package/dist/{lintProject-ZWLXB3A2.js → lintProject-N3UN6HEE.js} +6 -5
- package/dist/{list-FFO3WOB2.js → list-3FQAHEE2.js} +32 -20
- package/dist/{localPage-DHIBMNJH.js → localPage-G2QEA7JL.js} +19 -20
- package/dist/{login-IMFRQOEQ.js → login-C3U6WSHF.js} +10 -10
- package/dist/{logout-SLBKP67J.js → logout-525LWS6J.js} +5 -5
- package/dist/{look-ZZHJYSPC.js → look-U5LWOI4H.js} +28 -29
- package/dist/{manager-U4WEPCLV.js → manager-C5S25OOK.js} +7 -7
- package/dist/{manager-V4LGD4HB.js → manager-ZVYDWLHI.js} +21 -22
- package/dist/{measure-ZRBVN45B.js → measure-R2KZIHXT.js} +11 -11
- package/dist/{media-treatment-3I2CMQJZ.js → media-treatment-FAW5ZLT7.js} +37 -36
- package/dist/{media-use-2OYJ3CCN.js → media-use-CPTT2ZDE.js} +14 -10
- package/dist/{models-PRW7EWSV.js → models-53JHNGSL.js} +31 -32
- package/dist/{motionShot-VWILMLHQ.js → motionShot-K5ZHHHE6.js} +33 -34
- package/dist/{normalize-PGMS24I2.js → normalize-TBACWMEK.js} +4 -1
- package/dist/{normalize-audio-42XMF35K.js → normalize-audio-EOO2ORPP.js} +25 -25
- package/dist/{oauth-V3HSFZRE.js → oauth-E5QBYYTX.js} +2 -2
- package/dist/{open-D52MJZQA.js → open-3YABRCER.js} +34 -35
- package/dist/{parakeetRunner-ZR2JWQZH.js → parakeetRunner-TLZC2WAJ.js} +31 -32
- package/dist/{pipeline-W3H4JA6H.js → pipeline-LZ73CHLB.js} +27 -26
- package/dist/{plan-2HQOFJO7.js → plan-3QQZ57IC.js} +38 -39
- package/dist/{play-G5XDRDIZ.js → play-ESWP4SF2.js} +53 -50
- package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
- package/dist/{preflight-W2JDYF3T.js → preflight-7G5OBMAA.js} +22 -23
- package/dist/{present-CYMTHQFM.js → present-5ER4JKR5.js} +45 -44
- package/dist/{preview-DTQPQZTK.js → preview-62XOVSXM.js} +61 -60
- package/dist/privateProjectFile-6NPNZXK3.js +65 -0
- package/dist/{probe-WZJK3YQI.js → probe-CFOGEVFU.js} +28 -29
- package/dist/{producer-2BSMSO6I.js → producer-LLE32VVO.js} +1 -1
- package/dist/{progress-KRDVC24C.js → progress-PT3NAFVP.js} +6 -5
- package/dist/{projectConfig-BYRVYLCC.js → projectConfig-R54UDB5Y.js} +14 -15
- package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
- package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
- package/dist/{publication-UCFJLELD.js → publication-TOBV6M4Q.js} +8 -9
- package/dist/{publish-KXVPSWCO.js → publish-QVNH5PXC.js} +107 -76
- package/dist/receivedRecordFollow-U43DTVLP.js +54 -0
- package/dist/{refresh-2GVNKDQE.js → refresh-HK4YEHWC.js} +5 -5
- package/dist/{remove-background-O7BZNS3X.js → remove-background-XHE6JL35.js} +31 -30
- package/dist/{render-TYS3LCIQ.js → render-7JJ2DFEB.js} +16 -15
- package/dist/{render-QOWXGWQZ.js → render-GRZMK6ET.js} +143 -100
- package/dist/{render-DGAP4Q2Z.js → render-WK3D5VOW.js} +173 -138
- package/dist/{render-batch-TEQRGAUC.js → render-batch-KFEZFJXB.js} +20 -18
- package/dist/renderSetupWorker.js +23 -13
- package/dist/{resolver-RN2JGGQL.js → resolver-N4U52UK5.js} +11 -12
- package/dist/{reverse-FUARFEG2.js → reverse-6AOA3PXF.js} +1 -1
- package/dist/{run-V722HMUG.js → run-M2J3ZJ3W.js} +14 -14
- package/dist/runtimeVersion.js +6 -1
- package/dist/{sam-KHLM2DJA.js → sam-O7Y2CCK3.js} +5 -5
- package/dist/{screenshotCapture-4BB4LUMX.js → screenshotCapture-UXJZ7D3L.js} +21 -22
- package/dist/{service-ZPCHJY6B.js → service-DBNZZLPU.js} +31 -31
- package/dist/{share-PXUN7AH7.js → share-6P7S3USP.js} +36 -36
- package/dist/{sherpa-LT6Y7IGM.js → sherpa-CXEHEVAJ.js} +30 -31
- package/dist/sherpaWorker.js +6 -6
- package/dist/{sites-WWCABDSX.js → sites-R5F5FNAL.js} +9 -6
- package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
- package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
- 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/credit-limit.d.mts +1 -1
- package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
- 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-G63W5GD5.js → skills-RMIHFNI6.js} +21 -22
- package/dist/{skillsUpdateCheck-2T3JVDAA.js → skillsUpdateCheck-EHOSL2AC.js} +7 -7
- package/dist/{snapshot-EVSKTVDG.js → snapshot-DQK3P7TF.js} +114 -90
- package/dist/{src-K5FSMLTB.js → src-4INHWM6L.js} +29 -29
- package/dist/{src-R57EQQSI.js → src-BNSCFKOD.js} +25 -22
- package/dist/{start-XBCYKGBV.js → start-KPCEUG5K.js} +52 -45
- package/dist/{state-FO64CPYE.js → state-5LE7AN6F.js} +6 -5
- package/dist/{staticProjectServer-Q6VR7CXT.js → staticProjectServer-VCS4TOU2.js} +37 -37
- package/dist/{status-E5XIWRCQ.js → status-WBNQSG4H.js} +31 -32
- package/dist/studio/assets/hyperframes-player-Cm0hYGm2.js +573 -0
- package/dist/studio/assets/{index-D7ICtobF.js → index-BGrNWeLK.js} +199 -199
- package/dist/studio/assets/{index-ww7-RmuM.js → index-REqr_dLu.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-Dbe8Cmab.js → pausedVideoDecoder-DqLDSq8J.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GMJVYGET.js → studio-api-RAW4CIPR.js} +24 -24
- package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
- package/dist/{studioServer-MIQCMK6U.js → studioServer-5PWBZADN.js} +357 -163
- package/dist/subCompositionWorker.js +62 -55
- package/dist/{sync-WJOFN6VN.js → sync-PM2WLBUC.js} +28 -29
- package/dist/{synthesize-FXM7ZD6J.js → synthesize-NGU4DRKC.js} +24 -14
- package/dist/{system-DBUN5UDD.js → system-PKL4Y4MX.js} +3 -3
- package/dist/{telemetry-HZ4P4DMC.js → telemetry-4BST73P2.js} +15 -16
- package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
- package/dist/{templates-KFZZSSKW.js → templates-G3XOWYXG.js} +36 -31
- package/dist/{timeline-5M6DPCXF.js → timeline-E6ZXYGQR.js} +50 -46
- package/dist/{tokens-H4NPNRFR.js → tokens-KRHXM44C.js} +17 -7
- package/dist/{transcribe-6STI2ALX.js → transcribe-RJ3GOCJL.js} +56 -57
- package/dist/{transcribe-7PE5UH7J.js → transcribe-TKV3POYD.js} +26 -27
- package/dist/{tts-D7CLD3AD.js → tts-EPXRE275.js} +26 -10
- package/dist/{update-H3T3AVVG.js → update-TO7MLJCS.js} +23 -24
- package/dist/{updateCheck-TLCXUNBV.js → updateCheck-5AY447D5.js} +6 -6
- package/dist/{upgrade-BZVTMCQU.js → upgrade-BLZWWXYL.js} +11 -11
- package/dist/{urlDownloader-FJXNC3IM.js → urlDownloader-ME67HQ4O.js} +17 -18
- package/dist/{validate-WTRVCEL5.js → validate-SRBV5NFV.js} +53 -49
- package/dist/{video-TVO2U5F2.js → video-JPESR36I.js} +38 -34
- package/dist/{voices-F3EW43LX.js → voices-AECYKXGA.js} +43 -44
- package/dist/warmCheck.js +73 -73
- package/dist/warmCheckClient.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-23SG3B6M.js +0 -81
- package/dist/chunk-2RUCE54M.js +0 -5083
- package/dist/chunk-HFUI6LVF.js +0 -34
- package/dist/chunk-JOQR4AP6.js +0 -22
- package/dist/chunk-MK23FXLH.js +0 -21
- package/dist/chunk-SALNTRJA.js +0 -204
- package/dist/chunk-VC76R6W2.js +0 -27
- package/dist/chunk-Z642P33A.js +0 -270
- package/dist/studio/assets/hyperframes-player-B78JDyI_.js +0 -565
- package/dist/{chunk-7IMHPBSH.js → chunk-4NDSGKPO.js} +3 -3
- /package/dist/{chunk-YXX6CIHL.js → chunk-BWFNWEUO.js} +0 -0
|
@@ -15,12 +15,13 @@ import {
|
|
|
15
15
|
createPublicOnlyProfile,
|
|
16
16
|
isBlockedNetworkHost,
|
|
17
17
|
logRefusal,
|
|
18
|
+
pageServerDirectHost,
|
|
18
19
|
resolvePublicAddress,
|
|
19
20
|
startCaptureProxy
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PJQVJSMG.js";
|
|
21
22
|
import {
|
|
22
23
|
PREVIEW_FOR_ANOTHER_SITE_META
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BWFNWEUO.js";
|
|
24
25
|
import {
|
|
25
26
|
alphaDecoderFor,
|
|
26
27
|
pixelFormatHasAlpha,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
removeScratch,
|
|
37
38
|
renameWithRetry,
|
|
38
39
|
renameWithRetryAsync
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LYTELQL2.js";
|
|
40
41
|
import {
|
|
41
42
|
DISTRIBUTED_FPS,
|
|
42
43
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -66,7 +67,7 @@ import {
|
|
|
66
67
|
resolveAuthoredTimingWindow,
|
|
67
68
|
toFps,
|
|
68
69
|
validateVariables
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-MPVJI4SE.js";
|
|
70
71
|
import {
|
|
71
72
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
72
73
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -110,32 +111,31 @@ import {
|
|
|
110
111
|
sourceTimeAt,
|
|
111
112
|
timeAtSourceTime,
|
|
112
113
|
volumeSegmentSampleCount
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-BNH2IKGV.js";
|
|
114
115
|
import {
|
|
115
|
-
isPrivateFileUnder,
|
|
116
116
|
isSafePath,
|
|
117
|
-
isStudioPrivatePath
|
|
118
|
-
} from "./chunk-SALNTRJA.js";
|
|
119
|
-
import {
|
|
120
117
|
terminalText
|
|
121
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-3GF72UPC.js";
|
|
122
119
|
import {
|
|
123
120
|
browserPathFromEnv,
|
|
124
121
|
buildChromeLaunchEnv,
|
|
125
122
|
chromeMajorCeiling,
|
|
123
|
+
chromeSandboxArgs,
|
|
124
|
+
chromeSandboxEnabled,
|
|
126
125
|
compareBrowserVersionsDescending,
|
|
127
126
|
exceedsChromeCeiling,
|
|
128
127
|
isManagedChromeDir,
|
|
129
128
|
isPinnedHeadlessShell,
|
|
129
|
+
launchWithChromeSandboxFallback,
|
|
130
130
|
pickSharedShell
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-YWUE4CRU.js";
|
|
132
132
|
import {
|
|
133
133
|
resolveReferencedStart
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-TTRX7NM3.js";
|
|
135
135
|
import {
|
|
136
136
|
isWithinProjectRoot,
|
|
137
137
|
resolveProjectRelativeSrc
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-S35RUNXJ.js";
|
|
139
139
|
import {
|
|
140
140
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
141
141
|
getAvailableMemoryMb,
|
|
@@ -144,22 +144,27 @@ import {
|
|
|
144
144
|
hostCpuCount,
|
|
145
145
|
isLowMemorySystem,
|
|
146
146
|
usableCpuCount
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-5GUYYSVT.js";
|
|
148
148
|
import {
|
|
149
149
|
isPathInside
|
|
150
150
|
} from "./chunk-IH2C53YV.js";
|
|
151
151
|
import {
|
|
152
152
|
readCompositionVariables
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-4NDSGKPO.js";
|
|
154
154
|
import {
|
|
155
155
|
parseHTML
|
|
156
156
|
} from "./chunk-GWTIFRF5.js";
|
|
157
|
+
import {
|
|
158
|
+
isPrivateFileUnder,
|
|
159
|
+
isStudioPrivatePath
|
|
160
|
+
} from "./chunk-PTGNUVCB.js";
|
|
157
161
|
import {
|
|
158
162
|
withHyperframesBrowserMarker
|
|
159
163
|
} from "./chunk-4NTCQF3L.js";
|
|
160
164
|
import {
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
foreignWritablePath,
|
|
166
|
+
trustedCacheRoot
|
|
167
|
+
} from "./chunk-KUJJJBV2.js";
|
|
163
168
|
import {
|
|
164
169
|
fetchGoesThroughEnvProxy
|
|
165
170
|
} from "./chunk-QBXDU24O.js";
|
|
@@ -171,10 +176,11 @@ import {
|
|
|
171
176
|
FFMPEG_PATH_ENV,
|
|
172
177
|
FFPROBE_PATH_ENV,
|
|
173
178
|
SELF_CONTAINED_FORMATS,
|
|
179
|
+
assertLiteralMediaInput,
|
|
174
180
|
findFfBinary,
|
|
175
181
|
findTrustedExecutable,
|
|
176
182
|
mediaInputFormatArgs
|
|
177
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-VM2VBJRC.js";
|
|
178
184
|
|
|
179
185
|
// ../engine/src/services/referenceBackground.ts
|
|
180
186
|
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
@@ -1039,83 +1045,10 @@ function scanHtmlOpeningTags(html) {
|
|
|
1039
1045
|
|
|
1040
1046
|
// ../engine/src/services/browserManager.ts
|
|
1041
1047
|
import { execFileSync } from "child_process";
|
|
1042
|
-
import { existsSync
|
|
1048
|
+
import { existsSync, readdirSync } from "fs";
|
|
1043
1049
|
import { join as join3 } from "path";
|
|
1044
1050
|
import { homedir } from "os";
|
|
1045
1051
|
|
|
1046
|
-
// ../engine/src/services/chromeSandbox.ts
|
|
1047
|
-
import { existsSync, readFileSync } from "fs";
|
|
1048
|
-
var NO_SANDBOX_ARGS = ["--no-sandbox", "--disable-setuid-sandbox", "--no-zygote"];
|
|
1049
|
-
var SANDBOX_START_FAILURE = /No usable sandbox|Running as root without --no-sandbox|Failed to move to new namespace/;
|
|
1050
|
-
function readTrimmed(path) {
|
|
1051
|
-
try {
|
|
1052
|
-
return readFileSync(path, "utf8").trim();
|
|
1053
|
-
} catch {
|
|
1054
|
-
return void 0;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
var currentHost = () => ({
|
|
1058
|
-
platform: process.platform,
|
|
1059
|
-
env: process.env,
|
|
1060
|
-
uid: process.getuid?.(),
|
|
1061
|
-
exists: existsSync,
|
|
1062
|
-
read: readTrimmed
|
|
1063
|
-
});
|
|
1064
|
-
var SERVERLESS_OR_ORCHESTRATED_ENV = [
|
|
1065
|
-
"AWS_LAMBDA_FUNCTION_NAME",
|
|
1066
|
-
"AWS_EXECUTION_ENV",
|
|
1067
|
-
"K_SERVICE",
|
|
1068
|
-
"CLOUD_RUN_JOB",
|
|
1069
|
-
"KUBERNETES_SERVICE_HOST"
|
|
1070
|
-
];
|
|
1071
|
-
var CONTAINER_MARKERS = ["/.dockerenv", "/run/.containerenv"];
|
|
1072
|
-
var USERNS_BLOCKED_SYSCTLS = [
|
|
1073
|
-
["/proc/sys/kernel/apparmor_restrict_unprivileged_userns", "1"],
|
|
1074
|
-
["/proc/sys/kernel/unprivileged_userns_clone", "0"]
|
|
1075
|
-
];
|
|
1076
|
-
function linuxCannotSandbox({ env, uid, exists, read }) {
|
|
1077
|
-
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);
|
|
1078
|
-
}
|
|
1079
|
-
function chromeSandboxEnabled(host = currentHost()) {
|
|
1080
|
-
const override = host.env.HYPERFRAMES_CHROME_SANDBOX;
|
|
1081
|
-
if (override === "0" || override === "1") return override === "1";
|
|
1082
|
-
return host.platform !== "linux" || !linuxCannotSandbox(host);
|
|
1083
|
-
}
|
|
1084
|
-
function chromeSandboxArgs(sandbox = chromeSandboxEnabled()) {
|
|
1085
|
-
return sandbox ? [] : NO_SANDBOX_ARGS;
|
|
1086
|
-
}
|
|
1087
|
-
function withoutChromeSandbox(args) {
|
|
1088
|
-
return [...args.filter((arg) => !NO_SANDBOX_ARGS.includes(arg)), ...NO_SANDBOX_ARGS];
|
|
1089
|
-
}
|
|
1090
|
-
var sandboxRefused = false;
|
|
1091
|
-
var closedTargetRetries = 0;
|
|
1092
|
-
var warned = false;
|
|
1093
|
-
function chromeNamedSandboxFailure(error) {
|
|
1094
|
-
return error instanceof Error && SANDBOX_START_FAILURE.test(error.message);
|
|
1095
|
-
}
|
|
1096
|
-
function sandboxStartFailure(error) {
|
|
1097
|
-
return chromeNamedSandboxFailure(error) || error instanceof Error && error.name === "TargetCloseError";
|
|
1098
|
-
}
|
|
1099
|
-
async function launchWithChromeSandboxFallback(args, launch, platform = process.platform, env = process.env) {
|
|
1100
|
-
const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
|
|
1101
|
-
const sandboxRequired = env.HYPERFRAMES_CHROME_SANDBOX === "1";
|
|
1102
|
-
if (sandboxed && sandboxRefused && !sandboxRequired) return launch(withoutChromeSandbox(args));
|
|
1103
|
-
try {
|
|
1104
|
-
return await launch([...args]);
|
|
1105
|
-
} catch (error) {
|
|
1106
|
-
if (!sandboxed || sandboxRequired || !sandboxStartFailure(error)) throw error;
|
|
1107
|
-
const browser = await launch(withoutChromeSandbox(args));
|
|
1108
|
-
if (chromeNamedSandboxFailure(error) || ++closedTargetRetries >= 2) sandboxRefused = true;
|
|
1109
|
-
if (!warned) {
|
|
1110
|
-
warned = true;
|
|
1111
|
-
console.warn(
|
|
1112
|
-
"[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."
|
|
1113
|
-
);
|
|
1114
|
-
}
|
|
1115
|
-
return browser;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
1052
|
// ../engine/src/services/browserLeasePool.ts
|
|
1120
1053
|
function freezeFingerprint(fingerprint) {
|
|
1121
1054
|
return Object.freeze({
|
|
@@ -1362,17 +1295,19 @@ var GPU_PROBE_TIMEOUT_MS = 15e3;
|
|
|
1362
1295
|
async function probeHardwareWebGlInfo(ppt, options) {
|
|
1363
1296
|
let probeBrowser;
|
|
1364
1297
|
try {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1298
|
+
probeBrowser = await launchWithChromeSandboxFallback(options.args, (args) => {
|
|
1299
|
+
const launchOptions = {
|
|
1300
|
+
...ownedLaunchOptions(),
|
|
1301
|
+
headless: true,
|
|
1302
|
+
args: withHyperframesBrowserMarker(args),
|
|
1303
|
+
defaultViewport: { width: 64, height: 64 },
|
|
1304
|
+
executablePath: options.executablePath,
|
|
1305
|
+
env: buildChromeLaunchEnv(options.env),
|
|
1306
|
+
timeout: options.browserTimeout,
|
|
1307
|
+
waitForInitialPage: false
|
|
1308
|
+
};
|
|
1309
|
+
return options.probeLifecycle ? options.probeLifecycle.launch(ppt, launchOptions) : ppt.launch(launchOptions);
|
|
1310
|
+
});
|
|
1376
1311
|
return await rejectAfter(
|
|
1377
1312
|
readWebGlInfo(probeBrowser),
|
|
1378
1313
|
GPU_PROBE_TIMEOUT_MS,
|
|
@@ -1422,7 +1357,7 @@ function cachedHeadlessShellExecutable(hostPlatform = process.platform, hostArch
|
|
|
1422
1357
|
return CACHED_HEADLESS_SHELL_EXECUTABLES[`${hostPlatform}/${hostArch}`];
|
|
1423
1358
|
}
|
|
1424
1359
|
function findCachedHeadlessShell(baseDir) {
|
|
1425
|
-
if (!
|
|
1360
|
+
if (!existsSync(baseDir)) return void 0;
|
|
1426
1361
|
const executable = cachedHeadlessShellExecutable();
|
|
1427
1362
|
if (!executable) return void 0;
|
|
1428
1363
|
try {
|
|
@@ -1439,7 +1374,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1439
1374
|
}
|
|
1440
1375
|
function findSharedHeadlessShell(baseDir) {
|
|
1441
1376
|
const executable = cachedHeadlessShellExecutable();
|
|
1442
|
-
if (!executable || !
|
|
1377
|
+
if (!executable || !existsSync(baseDir)) return void 0;
|
|
1443
1378
|
try {
|
|
1444
1379
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1445
1380
|
const binary = join3(baseDir, version, ...executable);
|
|
@@ -1451,7 +1386,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1451
1386
|
}
|
|
1452
1387
|
function findManagedHeadlessShell(baseDir) {
|
|
1453
1388
|
const executable = cachedHeadlessShellExecutable();
|
|
1454
|
-
if (!executable || !
|
|
1389
|
+
if (!executable || !existsSync(baseDir)) return void 0;
|
|
1455
1390
|
try {
|
|
1456
1391
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1457
1392
|
const binary = version && join3(baseDir, version, ...executable);
|
|
@@ -1466,16 +1401,18 @@ function resolveHeadlessShellPath(config) {
|
|
|
1466
1401
|
}
|
|
1467
1402
|
const fromEnv = browserPathFromEnv();
|
|
1468
1403
|
if (fromEnv) {
|
|
1469
|
-
if (!
|
|
1404
|
+
if (!existsSync(fromEnv.path)) {
|
|
1470
1405
|
throw new Error(
|
|
1471
1406
|
`[BrowserManager] Chrome binary not found at ${fromEnv.name}="${fromEnv.path}". Run \`hyperframes browser ensure\` to re-download.`
|
|
1472
1407
|
);
|
|
1473
1408
|
}
|
|
1474
1409
|
return fromEnv.path;
|
|
1475
1410
|
}
|
|
1476
|
-
const
|
|
1411
|
+
const root = trustedCacheRoot();
|
|
1412
|
+
const ours = join3(root, "chrome", "chrome-headless-shell");
|
|
1477
1413
|
const shared = join3(homedir(), ".cache", "puppeteer", "chrome-headless-shell");
|
|
1478
|
-
|
|
1414
|
+
const trusted = (binary) => binary && !foreignWritablePath(binary, root) ? binary : void 0;
|
|
1415
|
+
return trusted(findManagedHeadlessShell(ours)) ?? findSharedHeadlessShell(shared) ?? trusted(findCachedHeadlessShell(ours));
|
|
1479
1416
|
}
|
|
1480
1417
|
function launchableBrowserPath(config) {
|
|
1481
1418
|
const path = resolveHeadlessShellPath(config);
|
|
@@ -1486,7 +1423,7 @@ function launchableBrowserPath(config) {
|
|
|
1486
1423
|
}
|
|
1487
1424
|
function resolveFullChromePath() {
|
|
1488
1425
|
const named = browserPathFromEnv();
|
|
1489
|
-
return named &&
|
|
1426
|
+
return named && existsSync(named.path) ? named.path : void 0;
|
|
1490
1427
|
}
|
|
1491
1428
|
var ENABLE_BROWSER_POOL = DEFAULT_CONFIG.enableBrowserPool;
|
|
1492
1429
|
var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -1652,10 +1589,9 @@ async function getPuppeteerOrNull() {
|
|
|
1652
1589
|
return null;
|
|
1653
1590
|
}
|
|
1654
1591
|
}
|
|
1655
|
-
function getHardwareGpuProbeArgs(platform) {
|
|
1592
|
+
function getHardwareGpuProbeArgs(platform, sandbox) {
|
|
1656
1593
|
return [
|
|
1657
|
-
|
|
1658
|
-
"--disable-setuid-sandbox",
|
|
1594
|
+
...chromeSandboxArgs(sandbox),
|
|
1659
1595
|
"--disable-dev-shm-usage",
|
|
1660
1596
|
"--enable-webgl",
|
|
1661
1597
|
"--ignore-gpu-blocklist",
|
|
@@ -1692,7 +1628,10 @@ async function probeAutoBrowserGpuMode(options) {
|
|
|
1692
1628
|
async function probeWebGlMode(ppt, options, env, label = "") {
|
|
1693
1629
|
try {
|
|
1694
1630
|
const info = await probeHardwareWebGlInfo(ppt, {
|
|
1695
|
-
args: getHardwareGpuProbeArgs(
|
|
1631
|
+
args: getHardwareGpuProbeArgs(
|
|
1632
|
+
options.platform ?? process.platform,
|
|
1633
|
+
options.sandbox ?? chromeSandboxEnabled()
|
|
1634
|
+
),
|
|
1696
1635
|
browserTimeout: options.browserTimeout ?? DEFAULT_CONFIG.browserTimeout,
|
|
1697
1636
|
executablePath: launchableBrowserPath({ chromePath: options.chromePath }),
|
|
1698
1637
|
probeLifecycle: options.probeLifecycle,
|
|
@@ -1802,7 +1741,7 @@ function createBrowserLaunchFingerprint(chromeArgs, config) {
|
|
|
1802
1741
|
protocolTimeoutMs: launchConfig.protocolTimeout,
|
|
1803
1742
|
requestedCaptureMode,
|
|
1804
1743
|
publicOnly: resolveRestrictPageNetwork() ? {
|
|
1805
|
-
pageServerHost: launchConfig.pageServerUrl &&
|
|
1744
|
+
pageServerHost: launchConfig.pageServerUrl && pageServerDirectHost(launchConfig.pageServerUrl)
|
|
1806
1745
|
} : void 0
|
|
1807
1746
|
};
|
|
1808
1747
|
}
|
|
@@ -2929,7 +2868,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
|
|
|
2929
2868
|
}
|
|
2930
2869
|
|
|
2931
2870
|
// ../engine/src/services/frameCapture.ts
|
|
2932
|
-
import { existsSync as
|
|
2871
|
+
import { existsSync as existsSync4, mkdirSync, writeFileSync } from "fs";
|
|
2933
2872
|
import { join as join7 } from "path";
|
|
2934
2873
|
|
|
2935
2874
|
// ../engine/src/services/renderFrameVideoHold.ts
|
|
@@ -5429,7 +5368,7 @@ import { execFile } from "child_process";
|
|
|
5429
5368
|
import { promisify } from "util";
|
|
5430
5369
|
|
|
5431
5370
|
// ../engine/src/utils/ffmpegBinaries.ts
|
|
5432
|
-
import { existsSync as
|
|
5371
|
+
import { existsSync as existsSync2 } from "fs";
|
|
5433
5372
|
import { dirname, join as join4 } from "path";
|
|
5434
5373
|
import { fileURLToPath } from "url";
|
|
5435
5374
|
function notFound(name, setting) {
|
|
@@ -5443,13 +5382,13 @@ function getFfprobeBinary() {
|
|
|
5443
5382
|
}
|
|
5444
5383
|
function assertConfiguredFfmpegBinariesExist() {
|
|
5445
5384
|
const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
|
|
5446
|
-
if (ffmpegPath && !
|
|
5385
|
+
if (ffmpegPath && !existsSync2(ffmpegPath)) {
|
|
5447
5386
|
throw new Error(
|
|
5448
5387
|
`[FFmpeg] FFmpeg binary not found at ${FFMPEG_PATH_ENV}="${ffmpegPath}". Install FFmpeg or unset the override.${pathEncodingHint(ffmpegPath)}`
|
|
5449
5388
|
);
|
|
5450
5389
|
}
|
|
5451
5390
|
const ffprobePath = process.env[FFPROBE_PATH_ENV]?.trim();
|
|
5452
|
-
if (ffprobePath && !
|
|
5391
|
+
if (ffprobePath && !existsSync2(ffprobePath)) {
|
|
5453
5392
|
throw new Error(
|
|
5454
5393
|
`[FFmpeg] FFprobe binary not found at ${FFPROBE_PATH_ENV}="${ffprobePath}". Install FFmpeg or unset the override.${pathEncodingHint(ffprobePath)}`
|
|
5455
5394
|
);
|
|
@@ -5492,26 +5431,48 @@ async function listFfmpeg(flag) {
|
|
|
5492
5431
|
}
|
|
5493
5432
|
|
|
5494
5433
|
// ../engine/src/utils/renderProvenance.ts
|
|
5495
|
-
import { readFileSync as
|
|
5434
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
5496
5435
|
import { createRequire } from "module";
|
|
5497
5436
|
import { dirname as dirname3, join as join6 } from "path";
|
|
5498
5437
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5499
5438
|
|
|
5500
5439
|
// ../engine/src/utils/ffprobe.ts
|
|
5501
5440
|
import { spawn as spawn3 } from "child_process";
|
|
5502
|
-
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync
|
|
5441
|
+
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync, rmSync, statSync } from "fs";
|
|
5503
5442
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5504
5443
|
import { tmpdir as tmpdir3 } from "os";
|
|
5505
5444
|
import { basename, join as join5 } from "path";
|
|
5506
5445
|
|
|
5507
5446
|
// ../engine/src/utils/urlInput.ts
|
|
5508
|
-
import { existsSync as
|
|
5447
|
+
import { existsSync as existsSync3 } from "fs";
|
|
5509
5448
|
var CA_BUNDLES = [
|
|
5510
5449
|
"/etc/pki/tls/certs/ca-bundle.crt",
|
|
5511
5450
|
"/etc/ssl/certs/ca-certificates.crt",
|
|
5512
5451
|
"/etc/ssl/cert.pem"
|
|
5513
5452
|
];
|
|
5514
5453
|
var RECONNECT_ARGS = ["-rw_timeout", "30000000", "-reconnect", "1", "-reconnect_delay_max", "2"];
|
|
5454
|
+
var contentAddressedUrls = /* @__PURE__ */ new Map();
|
|
5455
|
+
var withoutQuery = (url) => url.split(/[?#]/, 1)[0] ?? url;
|
|
5456
|
+
function declareContentAddressedUrl(url, sha256) {
|
|
5457
|
+
contentAddressedUrls.set(withoutQuery(url), sha256);
|
|
5458
|
+
}
|
|
5459
|
+
function contentAddressedSha256(url) {
|
|
5460
|
+
return contentAddressedUrls.get(withoutQuery(url));
|
|
5461
|
+
}
|
|
5462
|
+
var SCHEME = /^([a-z][a-z0-9+.-]+):/i;
|
|
5463
|
+
var PROXIED_PROTOCOLS = "http,https,tls,tcp,httpproxy";
|
|
5464
|
+
var ROUTES = /* @__PURE__ */ new Map([
|
|
5465
|
+
["file", "local"],
|
|
5466
|
+
["http", "proxy"],
|
|
5467
|
+
["https", "proxy"]
|
|
5468
|
+
]);
|
|
5469
|
+
function restrictedRoute(input) {
|
|
5470
|
+
const scheme = /^subfile,/i.test(input) ? "subfile" : SCHEME.exec(input)?.[1]?.toLowerCase();
|
|
5471
|
+
const route = scheme === void 0 ? "local" : ROUTES.get(scheme);
|
|
5472
|
+
if (!route)
|
|
5473
|
+
throw new Error(`[FFmpeg] a ${scheme}: input is not read with a restricted page network`);
|
|
5474
|
+
return route === "proxy" && /^https:/i.test(input) && contentAddressedSha256(input) ? "declared" : route;
|
|
5475
|
+
}
|
|
5515
5476
|
function selfContainedFormatArgs() {
|
|
5516
5477
|
return resolveRestrictPageNetwork() ? ["-format_whitelist", SELF_CONTAINED_FORMATS] : [];
|
|
5517
5478
|
}
|
|
@@ -5519,16 +5480,26 @@ function urlInputArgs(input, {
|
|
|
5519
5480
|
tool = "ffmpeg",
|
|
5520
5481
|
caBundles = CA_BUNDLES
|
|
5521
5482
|
} = {}) {
|
|
5522
|
-
|
|
5483
|
+
assertLiteralMediaInput(input);
|
|
5484
|
+
const mediaFormats = () => mediaInputFormatArgs(tool === "ffprobe" ? getFfprobeBinary() : getFfmpegBinary(), input);
|
|
5485
|
+
const restricted = resolveRestrictPageNetwork();
|
|
5486
|
+
const route = restricted ? restrictedRoute(input) : void 0;
|
|
5487
|
+
if (route === "proxy" && !/^https:\/\//i.test(input))
|
|
5488
|
+
return [
|
|
5489
|
+
...RECONNECT_ARGS,
|
|
5490
|
+
...networkRetryFor(tool),
|
|
5491
|
+
...proxiedLimits(),
|
|
5492
|
+
...PROXY_THAT_REACHES_NOTHING
|
|
5493
|
+
];
|
|
5523
5494
|
if (!/^https:\/\//i.test(input)) return mediaFormats();
|
|
5524
|
-
const caFile = caBundles.find((path) =>
|
|
5495
|
+
const caFile = caBundles.find((path) => existsSync3(path));
|
|
5525
5496
|
if (!caFile) {
|
|
5526
5497
|
throw new Error(
|
|
5527
5498
|
`[FFmpeg] cannot verify TLS for an https input: no CA bundle at ${caBundles.join(", ")}`
|
|
5528
5499
|
);
|
|
5529
5500
|
}
|
|
5530
|
-
const networkRetry = tool
|
|
5531
|
-
const renderServiceLimits =
|
|
5501
|
+
const networkRetry = networkRetryFor(tool);
|
|
5502
|
+
const renderServiceLimits = route === "proxy" ? [...proxiedLimits(), ...PROXY_THAT_REACHES_NOTHING] : restricted ? ["-protocol_whitelist", "https,tls,tcp", ...selfContainedFormatArgs()] : mediaFormats();
|
|
5532
5503
|
return [
|
|
5533
5504
|
"-tls_verify",
|
|
5534
5505
|
"1",
|
|
@@ -5539,6 +5510,30 @@ function urlInputArgs(input, {
|
|
|
5539
5510
|
...renderServiceLimits
|
|
5540
5511
|
];
|
|
5541
5512
|
}
|
|
5513
|
+
var networkRetryFor = (tool) => tool === "ffmpeg" ? ["-reconnect_on_network_error", "1"] : [];
|
|
5514
|
+
var proxiedLimits = () => [
|
|
5515
|
+
"-protocol_whitelist",
|
|
5516
|
+
PROXIED_PROTOCOLS,
|
|
5517
|
+
...selfContainedFormatArgs()
|
|
5518
|
+
];
|
|
5519
|
+
var PROXY_THAT_REACHES_NOTHING = ["-http_proxy", "http://127.0.0.1:9"];
|
|
5520
|
+
function withPublicOnlyProxy(args, inputAt) {
|
|
5521
|
+
if (!resolveRestrictPageNetwork()) return void 0;
|
|
5522
|
+
const proxied = inputAt.filter((at) => restrictedRoute(args[at]) === "proxy");
|
|
5523
|
+
return proxied.length === 0 ? void 0 : startProxyFor(args, proxied);
|
|
5524
|
+
}
|
|
5525
|
+
async function startProxyFor(args, proxied) {
|
|
5526
|
+
const { logRefusal: logRefusal2, startCaptureProxy: startCaptureProxy2 } = await import("./captureProxy-4K3J652A.js");
|
|
5527
|
+
const proxy = await startCaptureProxy2(null, logRefusal2);
|
|
5528
|
+
const out = [...args];
|
|
5529
|
+
for (const at of [...proxied].sort((a, b) => b - a)) {
|
|
5530
|
+
const flagAt = out[at - 1] === "-i" || out[at - 1] === "--" ? at - 1 : at;
|
|
5531
|
+
out.splice(flagAt, 0, ...proxiedLimits(), "-http_proxy", proxy.url);
|
|
5532
|
+
}
|
|
5533
|
+
const { no_proxy: _a, NO_PROXY: _b, ...env } = process.env;
|
|
5534
|
+
return { args: out, env: { ...env, http_proxy: proxy.url }, close: () => proxy.close() };
|
|
5535
|
+
}
|
|
5536
|
+
var ffmpegInputIndexes = (args) => args.flatMap((arg, at) => arg === "-i" && at + 1 < args.length ? [at + 1] : []);
|
|
5542
5537
|
function redactUrlQueriesInError(error) {
|
|
5543
5538
|
if (!(error instanceof Error)) return error;
|
|
5544
5539
|
const fields = error;
|
|
@@ -5758,8 +5753,8 @@ async function isNotImagePayload(filePath) {
|
|
|
5758
5753
|
var MAX_PLAYLIST_BYTES = 8 * 1024 * 1024;
|
|
5759
5754
|
var MAX_PLAYLIST_DEPTH = 8;
|
|
5760
5755
|
var HTTP_URL = /^https?:\/\//i;
|
|
5761
|
-
var
|
|
5762
|
-
var
|
|
5756
|
+
var COLON_IN_FIRST_SEGMENT = /^[^/\\?#]*:/;
|
|
5757
|
+
var FOLDER_CUT_AT_QUERY_OR_FRAGMENT = /[?#]/;
|
|
5763
5758
|
var MAX_HLS_LINE_BYTES = 4095;
|
|
5764
5759
|
var ATTRIBUTE_GAP = /[\t\n\v\f\r ,]/;
|
|
5765
5760
|
function hlsEntries(body) {
|
|
@@ -5819,9 +5814,10 @@ function playlistEntries(text) {
|
|
|
5819
5814
|
}
|
|
5820
5815
|
function entryLeavesFolder(entry, base, folder) {
|
|
5821
5816
|
if (HTTP_URL.test(entry)) return false;
|
|
5822
|
-
if (
|
|
5817
|
+
if (FOLDER_CUT_AT_QUERY_OR_FRAGMENT.test(base)) return true;
|
|
5823
5818
|
return [entry, percentDecoded(entry)].some((path) => {
|
|
5824
|
-
if (
|
|
5819
|
+
if (COLON_IN_FIRST_SEGMENT.test(path)) return true;
|
|
5820
|
+
if (isAbsolute(path) || path.startsWith("\\")) return true;
|
|
5825
5821
|
const inside = relative(folder, resolve(base, path));
|
|
5826
5822
|
return inside === ".." || inside.startsWith("../") || inside.startsWith("..\\") || isAbsolute(inside);
|
|
5827
5823
|
});
|
|
@@ -5914,6 +5910,7 @@ async function entryLeaves(entry, base, walk, depth) {
|
|
|
5914
5910
|
}
|
|
5915
5911
|
|
|
5916
5912
|
// ../engine/src/utils/runFfmpeg.ts
|
|
5913
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
5917
5914
|
import { spawn as spawn2 } from "child_process";
|
|
5918
5915
|
|
|
5919
5916
|
// ../engine/src/utils/processTracker.ts
|
|
@@ -6165,8 +6162,8 @@ function describeFfmpegFailure(result, timeoutMs) {
|
|
|
6165
6162
|
const signalOrRequestedStop = result.terminationReason === "exit" ? result.signal : result.terminationReason;
|
|
6166
6163
|
return signalOrRequestedStop ? `FFmpeg ended without an exit code (${signalOrRequestedStop}). ${error}` : error;
|
|
6167
6164
|
}
|
|
6168
|
-
function spawnFfmpeg(args) {
|
|
6169
|
-
const ffmpeg = spawn2(getFfmpegBinary(), args, { windowsHide: true });
|
|
6165
|
+
function spawnFfmpeg(args, env) {
|
|
6166
|
+
const ffmpeg = spawn2(getFfmpegBinary(), args, { windowsHide: true, ...env && { env } });
|
|
6170
6167
|
trackChildProcess(ffmpeg);
|
|
6171
6168
|
return ffmpeg;
|
|
6172
6169
|
}
|
|
@@ -6196,25 +6193,38 @@ var ABORTED_BEFORE_START = {
|
|
|
6196
6193
|
durationMs: 0,
|
|
6197
6194
|
terminationReason: "abort"
|
|
6198
6195
|
};
|
|
6196
|
+
var progressListener = new AsyncLocalStorage();
|
|
6197
|
+
function withFfmpegProgress(onProgress, work) {
|
|
6198
|
+
return progressListener.run(onProgress, work);
|
|
6199
|
+
}
|
|
6199
6200
|
async function runFfmpeg(args, opts) {
|
|
6200
6201
|
if (opts?.signal?.aborted) return { ...ABORTED_BEFORE_START };
|
|
6202
|
+
const onProgress = progressListener.getStore();
|
|
6203
|
+
const proxying = withPublicOnlyProxy(args, ffmpegInputIndexes(args));
|
|
6204
|
+
const routed = proxying && await proxying;
|
|
6201
6205
|
let framesWritten = 0;
|
|
6202
6206
|
let secondsWritten = 0;
|
|
6207
|
+
let managed;
|
|
6203
6208
|
const readStats = ffmpegStatsReader(({ frames = 0, seconds = 0 }) => {
|
|
6204
6209
|
if (frames <= framesWritten && seconds <= secondsWritten) return;
|
|
6205
6210
|
framesWritten = Math.max(frames, framesWritten);
|
|
6206
6211
|
secondsWritten = Math.max(seconds, secondsWritten);
|
|
6207
|
-
managed
|
|
6212
|
+
managed?.markActivity();
|
|
6213
|
+
onProgress?.();
|
|
6208
6214
|
});
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6215
|
+
try {
|
|
6216
|
+
managed = new ManagedChildProcess(spawnFfmpeg(routed?.args ?? args, routed?.env), {
|
|
6217
|
+
signal: opts?.signal,
|
|
6218
|
+
inactivityTimeoutMs: opts?.timeout ?? DEFAULT_TIMEOUT,
|
|
6219
|
+
onStderr: (chunk) => {
|
|
6220
|
+
readStats(chunk);
|
|
6221
|
+
opts?.onStderr?.(chunk);
|
|
6222
|
+
}
|
|
6223
|
+
});
|
|
6224
|
+
return toResult(await managed.wait());
|
|
6225
|
+
} finally {
|
|
6226
|
+
await routed?.close();
|
|
6227
|
+
}
|
|
6218
6228
|
}
|
|
6219
6229
|
|
|
6220
6230
|
// ../engine/src/utils/ffprobe.ts
|
|
@@ -6244,6 +6254,7 @@ function sanitizeFfprobeDiagnostic(stderr, filePath) {
|
|
|
6244
6254
|
if (redacted.length <= FFPROBE_ERROR_MAX_CHARS) return redacted;
|
|
6245
6255
|
return `\u2026${redacted.slice(-(FFPROBE_ERROR_MAX_CHARS - 1))}`;
|
|
6246
6256
|
}
|
|
6257
|
+
var REFUSED_TEXT_ART = /^\[(?:tty|bin|xbin|idf|adf) @ [^\]]*\] Format not on whitelist/m;
|
|
6247
6258
|
async function runFfprobe(filePath, argsWithoutInput, signal, stdoutOptions) {
|
|
6248
6259
|
if (filePath === "-") {
|
|
6249
6260
|
throw new Error('[FFmpeg] Refusing to probe "-": stdin is not a supported input path.');
|
|
@@ -6257,7 +6268,24 @@ async function runFfprobe(filePath, argsWithoutInput, signal, stdoutOptions) {
|
|
|
6257
6268
|
"--",
|
|
6258
6269
|
filePath
|
|
6259
6270
|
];
|
|
6271
|
+
const proxying = withPublicOnlyProxy(args, [args.length - 1]);
|
|
6272
|
+
const routed = proxying && await proxying;
|
|
6273
|
+
try {
|
|
6274
|
+
return await spawnFfprobe(
|
|
6275
|
+
command,
|
|
6276
|
+
routed?.args ?? args,
|
|
6277
|
+
routed?.env,
|
|
6278
|
+
filePath,
|
|
6279
|
+
signal,
|
|
6280
|
+
stdoutOptions
|
|
6281
|
+
);
|
|
6282
|
+
} finally {
|
|
6283
|
+
await routed?.close();
|
|
6284
|
+
}
|
|
6285
|
+
}
|
|
6286
|
+
async function spawnFfprobe(command, args, env, filePath, signal, stdoutOptions) {
|
|
6260
6287
|
const proc = spawn3(command, args, {
|
|
6288
|
+
...env && { env },
|
|
6261
6289
|
// Nothing is ever written to the child's stdin; leaving it as a pipe is
|
|
6262
6290
|
// what lets a stdin-reading invocation block indefinitely.
|
|
6263
6291
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -6303,6 +6331,7 @@ async function runFfprobe(filePath, argsWithoutInput, signal, stdoutOptions) {
|
|
|
6303
6331
|
throw outcome.error ?? new Error(outcome.stderr);
|
|
6304
6332
|
}
|
|
6305
6333
|
if (outcome.reason !== "exit" || outcome.exitCode !== 0) {
|
|
6334
|
+
if (REFUSED_TEXT_ART.test(outcome.stderr)) throw new TextArtMediaError();
|
|
6306
6335
|
const diagnostic = sanitizeFfprobeDiagnostic(outcome.stderr, filePath);
|
|
6307
6336
|
throw new Error(
|
|
6308
6337
|
`[FFmpeg] ffprobe ${outcome.reason} with code ${outcome.exitCode}: ${diagnostic}`
|
|
@@ -6379,18 +6408,14 @@ function isPngImageProbe(output) {
|
|
|
6379
6408
|
(stream) => stream.codec_type === "video" && stream.codec_name?.toLowerCase() === "png"
|
|
6380
6409
|
);
|
|
6381
6410
|
}
|
|
6382
|
-
var
|
|
6383
|
-
var withoutQuery = (url) => url.split(/[?#]/, 1)[0] ?? url;
|
|
6384
|
-
function declareContentAddressedUrl(url, sha256) {
|
|
6385
|
-
contentAddressedUrls.set(withoutQuery(url), sha256);
|
|
6386
|
-
}
|
|
6411
|
+
var withoutQuery2 = (url) => url.split(/[?#]/, 1)[0] ?? url;
|
|
6387
6412
|
var probeFactsUrls = /* @__PURE__ */ new Map();
|
|
6388
6413
|
function declareProbeFactsUrl(url, factsUrl) {
|
|
6389
|
-
probeFactsUrls.set(
|
|
6414
|
+
probeFactsUrls.set(withoutQuery2(url), factsUrl);
|
|
6390
6415
|
}
|
|
6391
6416
|
function mediaFileIdentity(filePath) {
|
|
6392
6417
|
if (/^https?:\/\//i.test(filePath)) {
|
|
6393
|
-
const sha256 =
|
|
6418
|
+
const sha256 = contentAddressedSha256(filePath);
|
|
6394
6419
|
return sha256 ? `sha256:${sha256}` : null;
|
|
6395
6420
|
}
|
|
6396
6421
|
try {
|
|
@@ -6421,7 +6446,7 @@ var PROBE_JSON_ARGS = ["-print_format", "json", "-show_format", "-show_streams"]
|
|
|
6421
6446
|
var storedFacts = /* @__PURE__ */ new Map();
|
|
6422
6447
|
function readStoredFacts(filePath) {
|
|
6423
6448
|
if (!/^https?:\/\//i.test(filePath)) return void 0;
|
|
6424
|
-
const factsUrl = probeFactsUrls.get(
|
|
6449
|
+
const factsUrl = probeFactsUrls.get(withoutQuery2(filePath));
|
|
6425
6450
|
if (!factsUrl) return void 0;
|
|
6426
6451
|
let facts = storedFacts.get(factsUrl);
|
|
6427
6452
|
if (!facts) {
|
|
@@ -6658,7 +6683,7 @@ function extractPngMetadataFromBuffer(buf) {
|
|
|
6658
6683
|
}
|
|
6659
6684
|
function extractStillImageMetadata(filePath) {
|
|
6660
6685
|
try {
|
|
6661
|
-
return extractPngMetadataFromBuffer(
|
|
6686
|
+
return extractPngMetadataFromBuffer(readFileSync(filePath));
|
|
6662
6687
|
} catch {
|
|
6663
6688
|
return null;
|
|
6664
6689
|
}
|
|
@@ -7182,7 +7207,7 @@ function resolveOwnVersionFrom(startDir) {
|
|
|
7182
7207
|
const candidate = join6(dir, "package.json");
|
|
7183
7208
|
let pkg;
|
|
7184
7209
|
try {
|
|
7185
|
-
pkg = JSON.parse(
|
|
7210
|
+
pkg = JSON.parse(readFileSync2(candidate, "utf8"));
|
|
7186
7211
|
} catch {
|
|
7187
7212
|
pkg = void 0;
|
|
7188
7213
|
}
|
|
@@ -7205,7 +7230,7 @@ function installedEngineVersion(fromDir) {
|
|
|
7205
7230
|
const path = createRequire(join6(fromDir, "index.js")).resolve(
|
|
7206
7231
|
"@hyperframes/engine/package.json"
|
|
7207
7232
|
);
|
|
7208
|
-
const pkg = JSON.parse(
|
|
7233
|
+
const pkg = JSON.parse(readFileSync2(path, "utf8"));
|
|
7209
7234
|
if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
|
|
7210
7235
|
return pkg.version;
|
|
7211
7236
|
} catch {
|
|
@@ -8274,7 +8299,7 @@ async function installMediaPageHooks(page, options) {
|
|
|
8274
8299
|
}
|
|
8275
8300
|
}
|
|
8276
8301
|
async function createCaptureSession(serverUrl, outputDir, options, onBeforeCapture = null, config) {
|
|
8277
|
-
if (!
|
|
8302
|
+
if (!existsSync4(outputDir)) mkdirSync(outputDir, { recursive: true });
|
|
8278
8303
|
const headlessShell = resolveHeadlessShellPath(config);
|
|
8279
8304
|
const isLinux = process.platform === "linux";
|
|
8280
8305
|
const forceScreenshot = config?.forceScreenshot ?? DEFAULT_CONFIG.forceScreenshot;
|
|
@@ -9556,7 +9581,7 @@ async function initializeSession(session) {
|
|
|
9556
9581
|
async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
|
|
9557
9582
|
try {
|
|
9558
9583
|
const diagnosticsDir = join7(session.outputDir, "diagnostics");
|
|
9559
|
-
if (!
|
|
9584
|
+
if (!existsSync4(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
|
|
9560
9585
|
const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
|
|
9561
9586
|
const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
|
|
9562
9587
|
if (pageScreenshotCanResolve) {
|
|
@@ -9710,6 +9735,22 @@ function addFrameRanges(target, ranges) {
|
|
|
9710
9735
|
for (let f = lo; f <= hi; f++) target.add(f);
|
|
9711
9736
|
}
|
|
9712
9737
|
}
|
|
9738
|
+
var STATIC_DEDUP_INELIGIBLE_CAUSES = {
|
|
9739
|
+
zero_duration: "unknown/zero duration",
|
|
9740
|
+
video: "video",
|
|
9741
|
+
canvas: "canvas/webgl",
|
|
9742
|
+
frame_source: "registered frame source",
|
|
9743
|
+
iframe: "iframe",
|
|
9744
|
+
no_gsap_tweens: "no GSAP tweens (non-GSAP animation)",
|
|
9745
|
+
css_animation: "running CSS/WAAPI animation",
|
|
9746
|
+
timeline_call: "tl.call() side effect (not seek-safe)",
|
|
9747
|
+
unresolvable_clip_start: "unresolvable clip start (reference expression)",
|
|
9748
|
+
frame_limit: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`,
|
|
9749
|
+
interval_limit: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
|
|
9750
|
+
};
|
|
9751
|
+
function describeIneligible(causes) {
|
|
9752
|
+
return causes.map((cause) => STATIC_DEDUP_INELIGIBLE_CAUSES[cause]).join("+");
|
|
9753
|
+
}
|
|
9713
9754
|
async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
9714
9755
|
const result = await page.evaluate(
|
|
9715
9756
|
(spatialProps, ignored) => {
|
|
@@ -9815,7 +9856,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9815
9856
|
hasNonGsapAnim,
|
|
9816
9857
|
tweenCount,
|
|
9817
9858
|
eligible: false,
|
|
9818
|
-
|
|
9859
|
+
causes: ["frame_limit"],
|
|
9860
|
+
reason: describeIneligible(["frame_limit"])
|
|
9819
9861
|
};
|
|
9820
9862
|
}
|
|
9821
9863
|
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
@@ -9828,7 +9870,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9828
9870
|
hasNonGsapAnim,
|
|
9829
9871
|
tweenCount,
|
|
9830
9872
|
eligible: false,
|
|
9831
|
-
|
|
9873
|
+
causes: ["interval_limit"],
|
|
9874
|
+
reason: describeIneligible(["interval_limit"])
|
|
9832
9875
|
};
|
|
9833
9876
|
}
|
|
9834
9877
|
const animatedRanges = [];
|
|
@@ -9844,17 +9887,17 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9844
9887
|
addFrameRanges(animated, animatedRanges);
|
|
9845
9888
|
addFrameRanges(spatialFrameSet, spatialRanges);
|
|
9846
9889
|
for (const f of await computeClipBoundaryFrames(page, fps)) animated.add(f);
|
|
9847
|
-
const
|
|
9848
|
-
if (!(duration > 0))
|
|
9849
|
-
if (hasVideo)
|
|
9850
|
-
if (hasCanvas)
|
|
9851
|
-
if (hasFrameSources)
|
|
9852
|
-
if (hasIframe)
|
|
9853
|
-
if (tweenCount === 0)
|
|
9854
|
-
if (hasNonGsapAnim)
|
|
9855
|
-
if (hasTimelineCall)
|
|
9856
|
-
if (hasUnresolvableClipStart)
|
|
9857
|
-
const eligible =
|
|
9890
|
+
const causes = [];
|
|
9891
|
+
if (!(duration > 0)) causes.push("zero_duration");
|
|
9892
|
+
if (hasVideo) causes.push("video");
|
|
9893
|
+
if (hasCanvas) causes.push("canvas");
|
|
9894
|
+
if (hasFrameSources) causes.push("frame_source");
|
|
9895
|
+
if (hasIframe) causes.push("iframe");
|
|
9896
|
+
if (tweenCount === 0) causes.push("no_gsap_tweens");
|
|
9897
|
+
if (hasNonGsapAnim) causes.push("css_animation");
|
|
9898
|
+
if (hasTimelineCall) causes.push("timeline_call");
|
|
9899
|
+
if (hasUnresolvableClipStart) causes.push("unresolvable_clip_start");
|
|
9900
|
+
const eligible = causes.length === 0;
|
|
9858
9901
|
const staticFrameSet = /* @__PURE__ */ new Set();
|
|
9859
9902
|
if (eligible) {
|
|
9860
9903
|
for (let f = 1; f < totalFrames; f++) {
|
|
@@ -9874,7 +9917,8 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9874
9917
|
hasNonGsapAnim,
|
|
9875
9918
|
tweenCount,
|
|
9876
9919
|
eligible,
|
|
9877
|
-
|
|
9920
|
+
causes,
|
|
9921
|
+
reason: eligible ? "eligible" : describeIneligible(causes)
|
|
9878
9922
|
};
|
|
9879
9923
|
}
|
|
9880
9924
|
var STATIC_VERIFY_REFERENCE_STRIDE = 24;
|
|
@@ -10162,6 +10206,7 @@ async function armFromSharedStaticDedup(session, sharedFrames, predicted, fps, l
|
|
|
10162
10206
|
const spot = pickStaticSpotCheck(frames, session.options.staticDedupFrameRange);
|
|
10163
10207
|
if (spot.size === 0) {
|
|
10164
10208
|
session.staticDedupSkipReason = "ineligible";
|
|
10209
|
+
session.staticDedupIneligibleCause = "no_static_frames";
|
|
10165
10210
|
logInitPhase("static-frame dedup: disabled (no shared static run in this session's frames)");
|
|
10166
10211
|
return;
|
|
10167
10212
|
}
|
|
@@ -10244,6 +10289,7 @@ async function armStaticDedupFrames(session, page, logInitPhase, sharedStaticFra
|
|
|
10244
10289
|
const stats = sharedStaticFrameStats ?? await computeStaticFrameSet(page, fps, session.options.hiddenElementIds);
|
|
10245
10290
|
if (!stats.eligible || stats.staticFrameSet.size === 0) {
|
|
10246
10291
|
session.staticDedupSkipReason = "ineligible";
|
|
10292
|
+
session.staticDedupIneligibleCause = stats.eligible ? "no_static_frames" : stats.causes.join("+");
|
|
10247
10293
|
logInitPhase(`static-frame dedup: disabled (${stats.reason})`);
|
|
10248
10294
|
return;
|
|
10249
10295
|
}
|
|
@@ -11010,7 +11056,7 @@ async function closeCaptureSession(session) {
|
|
|
11010
11056
|
session.isInitialized = false;
|
|
11011
11057
|
}
|
|
11012
11058
|
async function prepareCaptureSessionForReuse(session, outputDir, onBeforeCapture) {
|
|
11013
|
-
if (!
|
|
11059
|
+
if (!existsSync4(outputDir)) {
|
|
11014
11060
|
mkdirSync(outputDir, { recursive: true });
|
|
11015
11061
|
}
|
|
11016
11062
|
session.outputDir = outputDir;
|
|
@@ -11165,6 +11211,7 @@ function getCapturePerfSummary(session) {
|
|
|
11165
11211
|
staticDedupVerificationComparisons: session.staticDedupVerification?.stats.byteComparisons,
|
|
11166
11212
|
staticDedupVerificationElapsedMs: session.staticDedupVerification?.stats.elapsedMs,
|
|
11167
11213
|
staticDedupSkipReason: session.staticDedupSkipReason,
|
|
11214
|
+
staticDedupIneligibleCause: session.staticDedupIneligibleCause,
|
|
11168
11215
|
beginFrameNoDamage: session.beginFrameNoDamageCount,
|
|
11169
11216
|
beginFrameHasDamage: session.beginFrameHasDamageCount,
|
|
11170
11217
|
captureMode: session.captureMode,
|
|
@@ -11245,11 +11292,11 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
|
|
|
11245
11292
|
import {
|
|
11246
11293
|
closeSync,
|
|
11247
11294
|
copyFileSync,
|
|
11248
|
-
existsSync as
|
|
11295
|
+
existsSync as existsSync5,
|
|
11249
11296
|
ftruncateSync,
|
|
11250
11297
|
mkdirSync as mkdirSync2,
|
|
11251
11298
|
openSync,
|
|
11252
|
-
readFileSync as
|
|
11299
|
+
readFileSync as readFileSync3,
|
|
11253
11300
|
readdirSync as readdirSync3,
|
|
11254
11301
|
statSync as statSync2,
|
|
11255
11302
|
writeFileSync as writeFileSync2,
|
|
@@ -11886,7 +11933,7 @@ var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds })
|
|
|
11886
11933
|
async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
|
|
11887
11934
|
const startTime = Date.now();
|
|
11888
11935
|
const outputDir = dirname4(outputPath);
|
|
11889
|
-
if (!
|
|
11936
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11890
11937
|
const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
|
|
11891
11938
|
const frameCount = files.length;
|
|
11892
11939
|
if (frameCount === 0) {
|
|
@@ -11942,7 +11989,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
11942
11989
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
11943
11990
|
};
|
|
11944
11991
|
}
|
|
11945
|
-
const fileSize =
|
|
11992
|
+
const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
|
|
11946
11993
|
return {
|
|
11947
11994
|
success: true,
|
|
11948
11995
|
outputPath,
|
|
@@ -12085,7 +12132,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
12085
12132
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
12086
12133
|
};
|
|
12087
12134
|
}
|
|
12088
|
-
const fileSize =
|
|
12135
|
+
const fileSize = existsSync5(outputPath) ? statSync2(outputPath).size : 0;
|
|
12089
12136
|
return {
|
|
12090
12137
|
success: true,
|
|
12091
12138
|
outputPath,
|
|
@@ -12096,7 +12143,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
12096
12143
|
}
|
|
12097
12144
|
async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
|
|
12098
12145
|
const outputDir = dirname4(outputPath);
|
|
12099
|
-
if (!
|
|
12146
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
12100
12147
|
const outputExtension = extname(outputPath).toLowerCase();
|
|
12101
12148
|
const isWebm = outputExtension === ".webm";
|
|
12102
12149
|
const isMov = outputExtension === ".mov";
|
|
@@ -12171,7 +12218,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
12171
12218
|
if (outputDir.includes("%")) {
|
|
12172
12219
|
throw new Error(`[chunkEncoder] packageHls outputDir must not contain "%": ${outputDir}`);
|
|
12173
12220
|
}
|
|
12174
|
-
if (!
|
|
12221
|
+
if (!existsSync5(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
12175
12222
|
const hasAudio = audioPath !== null;
|
|
12176
12223
|
const args = hasAudio ? ["-i", videoPath, "-i", audioPath, "-map", "0:v:0", "-map", "1:a:0"] : ["-i", videoPath, "-map", "0:v:0"];
|
|
12177
12224
|
args.push(
|
|
@@ -12220,7 +12267,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
12220
12267
|
}
|
|
12221
12268
|
if (master !== void 0) {
|
|
12222
12269
|
try {
|
|
12223
|
-
const stripped = stripAudioOnlyVariants(
|
|
12270
|
+
const stripped = stripAudioOnlyVariants(readFileSync3(master, "utf-8"));
|
|
12224
12271
|
ftruncateSync(master, 0);
|
|
12225
12272
|
writeSync(master, stripped, 0, "utf-8");
|
|
12226
12273
|
} finally {
|
|
@@ -12318,7 +12365,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
12318
12365
|
// ../engine/src/services/streamingEncoder.ts
|
|
12319
12366
|
import { spawn as spawn5 } from "child_process";
|
|
12320
12367
|
import { once } from "events";
|
|
12321
|
-
import { existsSync as
|
|
12368
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
|
|
12322
12369
|
import { dirname as dirname5 } from "path";
|
|
12323
12370
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
12324
12371
|
let cursor = startFrame;
|
|
@@ -12477,7 +12524,7 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null, nvencPresets
|
|
|
12477
12524
|
} else {
|
|
12478
12525
|
const encoderName = codec === "h264" ? "libx264" : "libx265";
|
|
12479
12526
|
args.push("-c:v", encoderName, "-preset", preset);
|
|
12480
|
-
appendSoftwareEncoderThreadsArg(args, encoderName);
|
|
12527
|
+
appendSoftwareEncoderThreadsArg(args, encoderName, options.softwareEncoderThreads);
|
|
12481
12528
|
if (bitrate) args.push("-b:v", bitrate);
|
|
12482
12529
|
else args.push("-crf", String(quality));
|
|
12483
12530
|
const lockedGop = resolveLockedGopSize(options);
|
|
@@ -12596,7 +12643,7 @@ function spawnFfmpegStream(outputPath, args, {
|
|
|
12596
12643
|
checkFrame
|
|
12597
12644
|
}) {
|
|
12598
12645
|
const outputDir = dirname5(outputPath);
|
|
12599
|
-
if (!
|
|
12646
|
+
if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
12600
12647
|
const ffmpeg = spawn5(getFfmpegBinary(), args, {
|
|
12601
12648
|
stdio: ["pipe", "pipe", "pipe"],
|
|
12602
12649
|
// See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
|
|
@@ -12722,7 +12769,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12722
12769
|
}) ? "external_interruption" : void 0
|
|
12723
12770
|
};
|
|
12724
12771
|
}
|
|
12725
|
-
const fileSize =
|
|
12772
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
12726
12773
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12727
12774
|
},
|
|
12728
12775
|
getExitStatus: () => exitStatus,
|
|
@@ -12873,7 +12920,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12873
12920
|
}
|
|
12874
12921
|
|
|
12875
12922
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12876
|
-
import { copyFileSync as copyFileSync2, existsSync as
|
|
12923
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync10, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12877
12924
|
import { basename as basename3, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
|
|
12878
12925
|
|
|
12879
12926
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
@@ -12907,10 +12954,10 @@ function createConcurrencyLimit(limit) {
|
|
|
12907
12954
|
}
|
|
12908
12955
|
|
|
12909
12956
|
// ../engine/src/utils/assetRoots.ts
|
|
12910
|
-
import { existsSync as
|
|
12957
|
+
import { existsSync as existsSync7 } from "fs";
|
|
12911
12958
|
function isInsideAssetRoots(path, roots) {
|
|
12912
12959
|
if (roots.some((root) => isSafePath(root, path))) return true;
|
|
12913
|
-
return !
|
|
12960
|
+
return !existsSync7(path) && roots.some((root) => isWithinProjectRoot(root, path));
|
|
12914
12961
|
}
|
|
12915
12962
|
function isPrivateUnderAssetRoots(path, roots) {
|
|
12916
12963
|
const holders = roots.filter((root) => isSafePath(root, path));
|
|
@@ -12930,7 +12977,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
|
|
|
12930
12977
|
}
|
|
12931
12978
|
|
|
12932
12979
|
// ../engine/src/utils/alphaPlaneProbe.ts
|
|
12933
|
-
import { mkdtempSync as mkdtempSync3, readFileSync as
|
|
12980
|
+
import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync4, rmSync as rmSync2 } from "fs";
|
|
12934
12981
|
import { tmpdir as tmpdir4 } from "os";
|
|
12935
12982
|
import { join as join10 } from "path";
|
|
12936
12983
|
var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
|
|
@@ -12971,7 +13018,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
|
|
|
12971
13018
|
{ timeout: 3e4, signal }
|
|
12972
13019
|
);
|
|
12973
13020
|
if (!result.success) return void 0;
|
|
12974
|
-
return sampledRgbaAlphaIsFullyOpaque(
|
|
13021
|
+
return sampledRgbaAlphaIsFullyOpaque(readFileSync4(samplePath));
|
|
12975
13022
|
} catch {
|
|
12976
13023
|
return void 0;
|
|
12977
13024
|
} finally {
|
|
@@ -12979,7 +13026,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
|
|
|
12979
13026
|
}
|
|
12980
13027
|
}
|
|
12981
13028
|
function inputAlphaOpaqueWarning(src) {
|
|
12982
|
-
return `[hyperframes:render] WARNING: video src="${src}" declares an alpha channel but its first frames decode fully opaque. If it should be transparent, re-export it with an alpha pixel format and avoid remuxing afterward, which can drop the alpha while keeping the tag.
|
|
13029
|
+
return `[hyperframes:render] WARNING: video src="${terminalText(src)}" declares an alpha channel but its first frames decode fully opaque. If it should be transparent, re-export it with an alpha pixel format and avoid remuxing afterward, which can drop the alpha while keeping the tag.
|
|
12983
13030
|
`;
|
|
12984
13031
|
}
|
|
12985
13032
|
|
|
@@ -12988,7 +13035,7 @@ import {
|
|
|
12988
13035
|
closeSync as closeSync2,
|
|
12989
13036
|
createReadStream as createReadStream2,
|
|
12990
13037
|
createWriteStream,
|
|
12991
|
-
existsSync as
|
|
13038
|
+
existsSync as existsSync8,
|
|
12992
13039
|
fsyncSync,
|
|
12993
13040
|
linkSync,
|
|
12994
13041
|
mkdirSync as mkdirSync4,
|
|
@@ -13319,9 +13366,31 @@ function undiciTransport(lookup) {
|
|
|
13319
13366
|
}
|
|
13320
13367
|
return transport;
|
|
13321
13368
|
}
|
|
13369
|
+
var UNRESOLVED_HOST_CODES = /* @__PURE__ */ new Set(["ENOTFOUND", "EAI_AGAIN", "EAI_FAIL"]);
|
|
13370
|
+
function assertProxiedHostResolvesPublic(url, signal) {
|
|
13371
|
+
const hostname = new URL(url).hostname.replace(/^\[|\]$/g, "");
|
|
13372
|
+
return new Promise((resolvePromise, reject) => {
|
|
13373
|
+
const abort = () => reject(signal?.reason);
|
|
13374
|
+
if (signal?.aborted) return abort();
|
|
13375
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
13376
|
+
dns.lookup(hostname, { all: true }, (error, answers) => {
|
|
13377
|
+
signal?.removeEventListener("abort", abort);
|
|
13378
|
+
if (error) {
|
|
13379
|
+
return UNRESOLVED_HOST_CODES.has(error.code ?? "") ? resolvePromise() : reject(error);
|
|
13380
|
+
}
|
|
13381
|
+
if (answers.some((a) => isBlockedNetworkHost(a.address.split("%")[0]))) {
|
|
13382
|
+
return reject(nonPublicAddressError());
|
|
13383
|
+
}
|
|
13384
|
+
resolvePromise();
|
|
13385
|
+
});
|
|
13386
|
+
});
|
|
13387
|
+
}
|
|
13322
13388
|
var fetchPublic = async (url, init) => {
|
|
13323
13389
|
if (resolveRestrictPageNetwork()) return (await undiciTransport(capturePolicyLookup))(url, init);
|
|
13324
|
-
if (fetchGoesThroughEnvProxy())
|
|
13390
|
+
if (fetchGoesThroughEnvProxy()) {
|
|
13391
|
+
await assertProxiedHostResolvesPublic(url, init.signal);
|
|
13392
|
+
return fetch(url, init);
|
|
13393
|
+
}
|
|
13325
13394
|
return (await undiciTransport(publicOnlyLookup))(url, init);
|
|
13326
13395
|
};
|
|
13327
13396
|
var downloadFetch = fetchPublic;
|
|
@@ -14213,7 +14282,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
|
|
|
14213
14282
|
if (inFlight) {
|
|
14214
14283
|
return inFlight;
|
|
14215
14284
|
}
|
|
14216
|
-
if (!
|
|
14285
|
+
if (!existsSync8(destDir)) {
|
|
14217
14286
|
mkdirSync4(destDir, { recursive: true });
|
|
14218
14287
|
}
|
|
14219
14288
|
const filename = getFilenameFromUrl(url, validationScope);
|
|
@@ -14317,7 +14386,7 @@ import { createHash as createHash4 } from "crypto";
|
|
|
14317
14386
|
import {
|
|
14318
14387
|
chmodSync,
|
|
14319
14388
|
createReadStream as createReadStream3,
|
|
14320
|
-
existsSync as
|
|
14389
|
+
existsSync as existsSync9,
|
|
14321
14390
|
lstatSync as lstatSync2,
|
|
14322
14391
|
mkdirSync as mkdirSync5,
|
|
14323
14392
|
readdirSync as readdirSync5,
|
|
@@ -14386,7 +14455,7 @@ function hasFrameFiles(dir) {
|
|
|
14386
14455
|
function lookupCacheEntry(rootDir, input) {
|
|
14387
14456
|
const keyHash = computeCacheKey(input);
|
|
14388
14457
|
const dir = join12(rootDir, cacheEntryDirName(keyHash));
|
|
14389
|
-
const complete =
|
|
14458
|
+
const complete = existsSync9(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
14390
14459
|
return { entry: { dir, keyHash }, hit: complete };
|
|
14391
14460
|
}
|
|
14392
14461
|
function createPartialCacheEntryDir(entry) {
|
|
@@ -14404,7 +14473,7 @@ function isTargetExistsRenameError(err) {
|
|
|
14404
14473
|
return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
|
|
14405
14474
|
}
|
|
14406
14475
|
function adoptPublishedWinner(entry, partialDir) {
|
|
14407
|
-
if (!
|
|
14476
|
+
if (!existsSync9(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
|
|
14408
14477
|
removeDir(partialDir);
|
|
14409
14478
|
return { dir: entry.dir, published: true };
|
|
14410
14479
|
}
|
|
@@ -15276,7 +15345,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
15276
15345
|
const fps = fpsToNumber(normalizedFps);
|
|
15277
15346
|
const ffmpegFps = fpsToFfmpegArg(normalizedFps);
|
|
15278
15347
|
const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
|
|
15279
|
-
if (!
|
|
15348
|
+
if (!existsSync10(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
|
|
15280
15349
|
let metadata;
|
|
15281
15350
|
try {
|
|
15282
15351
|
metadata = await extractMediaMetadata(videoPath);
|
|
@@ -15917,11 +15986,11 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15917
15986
|
);
|
|
15918
15987
|
await assertDownloadedVideoIsMedia(videoPath, video.id, signal);
|
|
15919
15988
|
}
|
|
15920
|
-
if (!
|
|
15989
|
+
if (!existsSync10(videoPath)) {
|
|
15921
15990
|
if (!warnedSrcs.has(video.src)) {
|
|
15922
15991
|
warnedSrcs.add(video.src);
|
|
15923
15992
|
process.stderr.write(
|
|
15924
|
-
`[hyperframes:render] WARNING: video src="${video.src}" could not be resolved on disk (looked for ${videoPath}). The rendered output will show this video's first frame for the entire clip duration. If your <video> lives inside a sub-composition, prefer project-root-relative paths (e.g. src="assets/foo.mp4") over "../assets/foo.mp4".
|
|
15993
|
+
`[hyperframes:render] WARNING: video src="${terminalText(video.src)}" could not be resolved on disk (looked for ${terminalText(videoPath)}). The rendered output will show this video's first frame for the entire clip duration. If your <video> lives inside a sub-composition, prefer project-root-relative paths (e.g. src="assets/foo.mp4") over "../assets/foo.mp4".
|
|
15925
15994
|
`
|
|
15926
15995
|
);
|
|
15927
15996
|
}
|
|
@@ -16653,7 +16722,7 @@ var FrameLookupTable = class {
|
|
|
16653
16722
|
cleanup() {
|
|
16654
16723
|
for (const video of this.videos.values()) {
|
|
16655
16724
|
if (video.extracted.ownedByLookup) continue;
|
|
16656
|
-
if (
|
|
16725
|
+
if (existsSync10(video.extracted.outputDir)) {
|
|
16657
16726
|
rmSync5(video.extracted.outputDir, { recursive: true, force: true });
|
|
16658
16727
|
}
|
|
16659
16728
|
}
|
|
@@ -17200,7 +17269,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
17200
17269
|
}
|
|
17201
17270
|
|
|
17202
17271
|
// ../engine/src/services/audioMixer.ts
|
|
17203
|
-
import { closeSync as closeSync4, existsSync as
|
|
17272
|
+
import { closeSync as closeSync4, existsSync as existsSync12, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
17204
17273
|
import { join as join17, dirname as dirname10, isAbsolute as isAbsolute3, relative as relative3 } from "path";
|
|
17205
17274
|
|
|
17206
17275
|
// ../core/dist/audioFade.js
|
|
@@ -17237,7 +17306,7 @@ function clampFadesToDuration(fades, duration) {
|
|
|
17237
17306
|
|
|
17238
17307
|
// ../engine/src/services/aacEncode.ts
|
|
17239
17308
|
import { execFile as execFile3 } from "child_process";
|
|
17240
|
-
import { readFileSync as
|
|
17309
|
+
import { readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
|
|
17241
17310
|
import { dirname as dirname8, join as join14 } from "path";
|
|
17242
17311
|
var SAMPLE_RATE = 48e3;
|
|
17243
17312
|
var FRAME_SAMPLES = 1024;
|
|
@@ -17339,7 +17408,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
17339
17408
|
if (failed) return failed;
|
|
17340
17409
|
const joined = join14(dir, "joined.aac");
|
|
17341
17410
|
const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
|
|
17342
|
-
const segmentFrames = splitAdtsFrames(
|
|
17411
|
+
const segmentFrames = splitAdtsFrames(readFileSync5(path));
|
|
17343
17412
|
if (segmentFrames.length < keepTo) {
|
|
17344
17413
|
throw new Error(`AAC segment ${path} has ${segmentFrames.length} frames, needs ${keepTo}`);
|
|
17345
17414
|
}
|
|
@@ -17471,7 +17540,7 @@ function audioFailureDiagnostics(values) {
|
|
|
17471
17540
|
}
|
|
17472
17541
|
|
|
17473
17542
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
17474
|
-
import { readFileSync as
|
|
17543
|
+
import { readFileSync as readFileSync6, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
17475
17544
|
import { dirname as dirname9, join as join15 } from "path";
|
|
17476
17545
|
|
|
17477
17546
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
@@ -17594,7 +17663,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
17594
17663
|
if (!gainAt) return false;
|
|
17595
17664
|
let stagingDir;
|
|
17596
17665
|
try {
|
|
17597
|
-
const buffer =
|
|
17666
|
+
const buffer = readFileSync6(wavPath);
|
|
17598
17667
|
const layout = parseWavLayout(buffer);
|
|
17599
17668
|
if (!layout) return false;
|
|
17600
17669
|
scaleSamples(buffer, layout, gainAt);
|
|
@@ -17828,10 +17897,10 @@ function chainTailSeconds(chain, automation) {
|
|
|
17828
17897
|
// ../engine/src/services/audioFxRender.ts
|
|
17829
17898
|
import {
|
|
17830
17899
|
closeSync as closeSync3,
|
|
17831
|
-
existsSync as
|
|
17900
|
+
existsSync as existsSync11,
|
|
17832
17901
|
mkdtempSync as mkdtempSync4,
|
|
17833
17902
|
openSync as openSync3,
|
|
17834
|
-
readFileSync as
|
|
17903
|
+
readFileSync as readFileSync7,
|
|
17835
17904
|
readSync,
|
|
17836
17905
|
statSync as statSync6,
|
|
17837
17906
|
writeFileSync as writeFileSync6,
|
|
@@ -17933,7 +18002,7 @@ function readWavHeader(path) {
|
|
|
17933
18002
|
}
|
|
17934
18003
|
}
|
|
17935
18004
|
function readWav(path) {
|
|
17936
|
-
const buf =
|
|
18005
|
+
const buf = readFileSync7(path);
|
|
17937
18006
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") {
|
|
17938
18007
|
throw new AudioFxRenderError(`Not a WAV file: ${path}`);
|
|
17939
18008
|
}
|
|
@@ -18140,7 +18209,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
|
|
|
18140
18209
|
}
|
|
18141
18210
|
async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
18142
18211
|
if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
|
|
18143
|
-
if (!
|
|
18212
|
+
if (!existsSync11(inputWav)) {
|
|
18144
18213
|
throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
|
|
18145
18214
|
}
|
|
18146
18215
|
const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
|
|
@@ -18677,7 +18746,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
|
|
|
18677
18746
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
18678
18747
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18679
18748
|
const outputDir = dirname10(outputPath);
|
|
18680
|
-
if (!
|
|
18749
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18681
18750
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
18682
18751
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
18683
18752
|
const readsUrl = isHttpUrl(srcPath);
|
|
@@ -18823,7 +18892,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
18823
18892
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
18824
18893
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18825
18894
|
const outputDir = dirname10(outputPath);
|
|
18826
|
-
if (!
|
|
18895
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18827
18896
|
const args = [
|
|
18828
18897
|
"-f",
|
|
18829
18898
|
"lavfi",
|
|
@@ -18877,7 +18946,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18877
18946
|
};
|
|
18878
18947
|
}
|
|
18879
18948
|
const outputDir = dirname10(outputPath);
|
|
18880
|
-
if (!
|
|
18949
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18881
18950
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18882
18951
|
const filterParts = [];
|
|
18883
18952
|
tracks.forEach((track, i) => {
|
|
@@ -18986,7 +19055,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18986
19055
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18987
19056
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18988
19057
|
const outputDir = dirname10(outputPath);
|
|
18989
|
-
if (!
|
|
19058
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18990
19059
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18991
19060
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
18992
19061
|
return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
|
|
@@ -19213,7 +19282,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19213
19282
|
const failures = [];
|
|
19214
19283
|
const groupTracks = /* @__PURE__ */ new Map();
|
|
19215
19284
|
const groupMeta = /* @__PURE__ */ new Map();
|
|
19216
|
-
if (!
|
|
19285
|
+
if (!existsSync12(workDir)) mkdirSync7(workDir, { recursive: true });
|
|
19217
19286
|
const internalController = new AbortController();
|
|
19218
19287
|
const effectiveSignal = internalController.signal;
|
|
19219
19288
|
if (signal) {
|
|
@@ -19277,7 +19346,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19277
19346
|
return;
|
|
19278
19347
|
}
|
|
19279
19348
|
}
|
|
19280
|
-
if (!readInPlace && !
|
|
19349
|
+
if (!readInPlace && !existsSync12(srcPath)) {
|
|
19281
19350
|
failures.push({
|
|
19282
19351
|
stage: "source",
|
|
19283
19352
|
reason: "source_not_found",
|
|
@@ -19645,7 +19714,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
19645
19714
|
|
|
19646
19715
|
// ../engine/src/services/parallelCoordinator.ts
|
|
19647
19716
|
import { freemem } from "os";
|
|
19648
|
-
import { existsSync as
|
|
19717
|
+
import { existsSync as existsSync13, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
19649
19718
|
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
19650
19719
|
import { join as join19 } from "path";
|
|
19651
19720
|
import { getHeapStatistics } from "v8";
|
|
@@ -20143,7 +20212,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
20143
20212
|
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
|
|
20144
20213
|
const startTime = Date.now();
|
|
20145
20214
|
let framesCaptured = 0;
|
|
20146
|
-
if (!
|
|
20215
|
+
if (!existsSync13(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
20147
20216
|
let session = null;
|
|
20148
20217
|
let perf;
|
|
20149
20218
|
const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
|
|
@@ -20398,11 +20467,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
20398
20467
|
return results;
|
|
20399
20468
|
}
|
|
20400
20469
|
async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
20401
|
-
if (!
|
|
20470
|
+
if (!existsSync13(outputDir)) mkdirSync8(outputDir, { recursive: true });
|
|
20402
20471
|
let totalFrames = 0;
|
|
20403
20472
|
const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
|
|
20404
20473
|
for (const task of sortedTasks) {
|
|
20405
|
-
if (!
|
|
20474
|
+
if (!existsSync13(task.outputDir)) {
|
|
20406
20475
|
continue;
|
|
20407
20476
|
}
|
|
20408
20477
|
const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
|
|
@@ -20432,7 +20501,7 @@ function getSystemResources() {
|
|
|
20432
20501
|
// ../engine/src/services/fileServer.ts
|
|
20433
20502
|
import { Hono } from "hono";
|
|
20434
20503
|
import { serve } from "@hono/node-server";
|
|
20435
|
-
import { readFileSync as
|
|
20504
|
+
import { readFileSync as readFileSync8, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
|
|
20436
20505
|
import { join as join20, extname as extname3 } from "path";
|
|
20437
20506
|
import { hostname as machineName, networkInterfaces } from "os";
|
|
20438
20507
|
|
|
@@ -20496,7 +20565,7 @@ function readRegularFile(filePath) {
|
|
|
20496
20565
|
}
|
|
20497
20566
|
try {
|
|
20498
20567
|
if (!fstatSync(fd).isFile()) return null;
|
|
20499
|
-
return
|
|
20568
|
+
return readFileSync8(fd);
|
|
20500
20569
|
} finally {
|
|
20501
20570
|
closeSync5(fd);
|
|
20502
20571
|
}
|
|
@@ -20883,22 +20952,25 @@ async function launchHdrBrowser(width, height) {
|
|
|
20883
20952
|
"[HDR] Name a full Chrome in HYPERFRAMES_BROWSER_PATH: HDR capture does not start a cached browser."
|
|
20884
20953
|
);
|
|
20885
20954
|
}
|
|
20886
|
-
const
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20891
|
-
|
|
20892
|
-
|
|
20955
|
+
const launcher = ppt;
|
|
20956
|
+
const browser = await launchWithChromeSandboxFallback(
|
|
20957
|
+
buildHdrChromeArgs(width, height),
|
|
20958
|
+
(args) => launcher.launch({
|
|
20959
|
+
...ownedLaunchOptions(),
|
|
20960
|
+
headless: false,
|
|
20961
|
+
executablePath: chromePath,
|
|
20962
|
+
env: buildChromeLaunchEnv(),
|
|
20963
|
+
args: withHyperframesBrowserMarker(args)
|
|
20964
|
+
})
|
|
20965
|
+
);
|
|
20893
20966
|
const page = await browser.newPage();
|
|
20894
20967
|
await page.setViewport({ width, height });
|
|
20895
20968
|
return { browser, page };
|
|
20896
20969
|
}
|
|
20897
|
-
function buildHdrChromeArgs(width, height) {
|
|
20970
|
+
function buildHdrChromeArgs(width, height, sandbox = chromeSandboxEnabled()) {
|
|
20898
20971
|
return [
|
|
20899
20972
|
"--enable-unsafe-webgpu",
|
|
20900
|
-
|
|
20901
|
-
"--disable-setuid-sandbox",
|
|
20973
|
+
...chromeSandboxArgs(sandbox),
|
|
20902
20974
|
"--window-position=-10000,-10000",
|
|
20903
20975
|
`--window-size=${width},${height}`,
|
|
20904
20976
|
"--disable-background-timer-throttling",
|
|
@@ -20909,7 +20981,6 @@ function buildHdrChromeArgs(width, height) {
|
|
|
20909
20981
|
"--disable-component-update",
|
|
20910
20982
|
"--disable-default-apps",
|
|
20911
20983
|
"--disable-sync",
|
|
20912
|
-
"--no-zygote",
|
|
20913
20984
|
"--force-gpu-mem-available-mb=4096",
|
|
20914
20985
|
"--autoplay-policy=no-user-gesture-required"
|
|
20915
20986
|
];
|
|
@@ -20945,9 +21016,6 @@ export {
|
|
|
20945
21016
|
oneProcessOverPipe,
|
|
20946
21017
|
isOneProcessOverPipe,
|
|
20947
21018
|
sandboxDeniedRemediation,
|
|
20948
|
-
chromeSandboxEnabled,
|
|
20949
|
-
chromeSandboxArgs,
|
|
20950
|
-
launchWithChromeSandboxFallback,
|
|
20951
21019
|
BrowserLeasePool,
|
|
20952
21020
|
setHostHandlesSigint,
|
|
20953
21021
|
resolveHeadlessShellPath,
|
|
@@ -20996,7 +21064,9 @@ export {
|
|
|
20996
21064
|
getFfmpegBinary,
|
|
20997
21065
|
getFfprobeBinary,
|
|
20998
21066
|
assertConfiguredFfmpegBinariesExist,
|
|
21067
|
+
declareContentAddressedUrl,
|
|
20999
21068
|
urlInputArgs,
|
|
21069
|
+
withPublicOnlyProxy,
|
|
21000
21070
|
NOT_MEDIA_PAYLOAD,
|
|
21001
21071
|
NotMediaPayloadError,
|
|
21002
21072
|
fingerprintElementId,
|
|
@@ -21010,9 +21080,9 @@ export {
|
|
|
21010
21080
|
isExternalFfmpegInterruption,
|
|
21011
21081
|
formatFfmpegError,
|
|
21012
21082
|
describeFfmpegFailure,
|
|
21083
|
+
withFfmpegProgress,
|
|
21013
21084
|
runFfmpeg,
|
|
21014
21085
|
runFfprobe,
|
|
21015
|
-
declareContentAddressedUrl,
|
|
21016
21086
|
declareProbeFactsUrl,
|
|
21017
21087
|
PROBE_FACTS_VERSION,
|
|
21018
21088
|
buildProbeFactsText,
|