hyperframes 0.9.39 → 0.9.41
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-EPF7Q5LH.js → add-ZLTTHI7K.js} +14 -14
- package/dist/{agentPromptGenerator-5I5H7RT5.js → agentPromptGenerator-YCMRUTZL.js} +8 -8
- package/dist/{animatedGifPrep-4FJPUGZK.js → animatedGifPrep-WWAS7NDQ.js} +8 -8
- package/dist/api.js +35 -34
- package/dist/{asset-Y6ED44BL.js → asset-OPCU6AY6.js} +2 -2
- package/dist/{assetCataloger-RBXHXTRT.js → assetCataloger-JIBLDKEY.js} +9 -9
- package/dist/{audio-ZXV3V26D.js → audio-HVQ6ONM4.js} +19 -19
- package/dist/{auth-3PUCJISM.js → auth-ZMT4EKPR.js} +2 -2
- package/dist/{autoUpdate-3FBAOTZS.js → autoUpdate-RTVIDQLA.js} +2 -2
- package/dist/{avatars-TRTJL7G3.js → avatars-OXRTRNZJ.js} +12 -12
- package/dist/{backgroundChecks-AD63IABJ.js → backgroundChecks-LBCBXDRQ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-G5PRCRZ6.js → batchRender-IMRGTM7B.js} +3 -3
- package/dist/{beats-C7NQQPCE.js → beats-7EGD5U7Y.js} +11 -11
- package/dist/{benchmark-FZSXEOQ2.js → benchmark-UGWRUACK.js} +10 -10
- package/dist/{billing-DRPPJ3YD.js → billing-ZRYTSF6P.js} +13 -13
- package/dist/{browser-MCB5RDJX.js → browser-H3SAV2UG.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-DUWMRI2L.js → bundleWithLocalizedFonts-WR65LEMM.js} +1 -1
- package/dist/{capture-GIRFKWFA.js → capture-7OVAZUMD.js} +17 -17
- package/dist/{capture-JFIODHSM.js → capture-AJ4WNHMS.js} +3 -3
- package/dist/{captureCompositionFrame-EDC7GN63.js → captureCompositionFrame-G35HNTYF.js} +15 -15
- package/dist/{catalog-FNXA5YNX.js → catalog-UE3GMB3O.js} +14 -14
- package/dist/{catch-up-DMIXTHHW.js → catch-up-S2ZGZPQZ.js} +8 -8
- package/dist/{check-N6R5HDYR.js → check-XBIVSORY.js} +44 -43
- package/dist/{checkAudio-A7CLQOUT.js → checkAudio-YESHVMJW.js} +14 -13
- package/dist/{checkBrowser-6BHXXNPQ.js → checkBrowser-JBZYDZ4L.js} +37 -36
- package/dist/{chunk-A423M2GX.js → chunk-2X55POER.js} +1 -1
- package/dist/{chunk-DHW5MHVM.js → chunk-34XOUOHI.js} +1 -1
- package/dist/{chunk-ZY4OD7VP.js → chunk-3GDLNQPG.js} +1 -1
- package/dist/{chunk-X3D672WJ.js → chunk-3LAE6GEI.js} +7 -7
- package/dist/{chunk-UPRRMIY7.js → chunk-4AJH6INK.js} +1 -1
- package/dist/{chunk-WAY5TSVT.js → chunk-4IL73NIK.js} +1 -1
- package/dist/{chunk-YD5A2ARU.js → chunk-4IXXM2BW.js} +5 -5
- package/dist/chunk-4QFWV5GQ.js +59 -0
- package/dist/{chunk-73KYX3FT.js → chunk-4RHSFGHU.js} +2 -2
- package/dist/{chunk-EJ3PLUXI.js → chunk-4VLCBGZP.js} +2 -2
- package/dist/{chunk-QG2PTQ5Q.js → chunk-56DBU4UO.js} +13 -13
- package/dist/{chunk-JIEFYLQB.js → chunk-5JEK6KJA.js} +2 -2
- package/dist/{chunk-PV2SHAID.js → chunk-5OAV5BIV.js} +21 -21
- package/dist/{chunk-XVOP5KDL.js → chunk-5ORTI3P2.js} +2 -2
- package/dist/{chunk-H4GPL3AR.js → chunk-67IZHLZG.js} +5 -5
- package/dist/{chunk-PTAOILB2.js → chunk-6G6ZVSVT.js} +2 -2
- package/dist/{chunk-UNYPNSOJ.js → chunk-6OH32FNF.js} +1 -1
- package/dist/{chunk-4VB4NG7Q.js → chunk-6UQZ6XVP.js} +2 -2
- package/dist/{chunk-FLVHLNQN.js → chunk-7CLDXOEJ.js} +8 -4
- package/dist/{chunk-HFLGP2N4.js → chunk-7J55ACUK.js} +1 -1
- package/dist/{chunk-DCFA67GA.js → chunk-ACF3IF25.js} +2 -2
- package/dist/{chunk-M4FETH22.js → chunk-AGGWRA2L.js} +1 -1
- package/dist/{chunk-MWUYKLK2.js → chunk-AROFPNUT.js} +1 -1
- package/dist/{chunk-7YZZ3LMX.js → chunk-B2VVJWFB.js} +4 -4
- package/dist/{chunk-Z6UJRQ2E.js → chunk-BK2H5DFS.js} +14 -14
- package/dist/{chunk-YGG3ESNU.js → chunk-CMXTUJJX.js} +121 -23
- package/dist/{chunk-E5RZRG6T.js → chunk-CRBQ2PL2.js} +1 -1
- package/dist/{chunk-CJAYLJIZ.js → chunk-CUUVU5Q3.js} +24 -7
- package/dist/{chunk-D3MUHMFG.js → chunk-D54ZDCZR.js} +10 -0
- package/dist/{chunk-ALKIRXCH.js → chunk-DD5HWU2U.js} +7 -3
- package/dist/{chunk-JIGONWQU.js → chunk-DISXQDDW.js} +1 -1
- package/dist/{chunk-XTLTLVEO.js → chunk-DQS3K5UN.js} +2 -2
- package/dist/{chunk-6JE3ZVZI.js → chunk-E64WNPLL.js} +4 -4
- package/dist/{chunk-YCHJNTEL.js → chunk-ETR6IS2M.js} +11 -11
- package/dist/{chunk-UUIJRHMO.js → chunk-EVVZK4OS.js} +2 -2
- package/dist/{chunk-OFJYMQSV.js → chunk-F3PXN3KN.js} +1 -1
- package/dist/{chunk-TPHMGQZB.js → chunk-FB25AT5M.js} +1 -1
- package/dist/{chunk-VLUDAW5X.js → chunk-FX4SJ47X.js} +2 -2
- package/dist/{chunk-CY454EGG.js → chunk-G5ZQUXZ5.js} +1 -1
- package/dist/{chunk-ABHH72XJ.js → chunk-GA3QEPBN.js} +3 -3
- package/dist/{chunk-VP4OD5KI.js → chunk-GGT3FLBT.js} +2 -2
- package/dist/{chunk-FOZBANEN.js → chunk-GWTNXGIH.js} +1 -1
- package/dist/{chunk-YX7XMHLP.js → chunk-H3LGG3SX.js} +4 -4
- package/dist/{chunk-PD56FD7N.js → chunk-HC7XE6YX.js} +1 -1
- package/dist/{chunk-L2NIMKOH.js → chunk-HVEPDX7Q.js} +7 -7
- package/dist/{chunk-FBN2M2HK.js → chunk-HYMWSWKM.js} +10 -2
- package/dist/{chunk-JOZDGORN.js → chunk-IG3HJWHK.js} +2 -2
- package/dist/{chunk-2UXRHKWA.js → chunk-IH3QHHY7.js} +2 -2
- package/dist/{chunk-RFX7G7QC.js → chunk-IOHQ6DXN.js} +10 -8
- package/dist/{chunk-U5T7JC4R.js → chunk-IRIFTJA7.js} +6 -6
- package/dist/{chunk-GBHQIIW4.js → chunk-J3A5NWHB.js} +1 -1
- package/dist/{chunk-LGB64JGG.js → chunk-J4FJCGTK.js} +13 -55
- package/dist/chunk-JCSUCSWR.js +34 -0
- package/dist/{chunk-GOCDQNFH.js → chunk-KT3EGSKT.js} +2 -2
- package/dist/{chunk-VRR6FYUY.js → chunk-KXSMDXEA.js} +1 -1
- package/dist/{chunk-27RP4FZY.js → chunk-L3LNQTPS.js} +8 -8
- package/dist/{chunk-WE42NVH7.js → chunk-LEIR7IDJ.js} +102 -0
- package/dist/{chunk-3PQYPF36.js → chunk-LWDM6OWH.js} +3 -3
- package/dist/{chunk-7Y47MTVU.js → chunk-MPSJLRSA.js} +2 -2
- package/dist/{chunk-M7MXXRET.js → chunk-MQDS4LPD.js} +2 -2
- package/dist/{chunk-JWICDBCI.js → chunk-MU6QKZ6X.js} +3 -3
- package/dist/{chunk-JKEEGU3M.js → chunk-NZWA6FGR.js} +1 -1
- package/dist/{chunk-ZPCOLVTF.js → chunk-OAR3AI74.js} +1 -1
- package/dist/{chunk-VAUINYED.js → chunk-ODTUS6AE.js} +1 -1
- package/dist/{chunk-UPODO2HU.js → chunk-OERK3WNK.js} +1 -1
- package/dist/{chunk-AJCFMDFQ.js → chunk-OLKDBDIZ.js} +1 -1
- package/dist/{chunk-HKFXLCVW.js → chunk-PEDBKSSS.js} +1 -1
- package/dist/{chunk-WC6BPO2G.js → chunk-PJ4C2C5G.js} +2 -2
- package/dist/{chunk-VX2JJLY4.js → chunk-PV54Q2X5.js} +2 -2
- package/dist/{chunk-YNOBKT65.js → chunk-Q3DGNUB4.js} +8 -8
- package/dist/{chunk-7IVPSA4K.js → chunk-QE2G4RUL.js} +2 -2
- package/dist/{chunk-N7UUAKFP.js → chunk-QHWAMWNU.js} +2 -2
- package/dist/{chunk-ECCL3T3M.js → chunk-QJTSA43V.js} +2 -2
- package/dist/chunk-R7EOMPJP.js +5069 -0
- package/dist/{chunk-YWC7LMRZ.js → chunk-SBRTYSU2.js} +1 -1
- package/dist/{chunk-MK5CNS6Z.js → chunk-SKW7TLPC.js} +1 -1
- package/dist/{chunk-TWNQXV34.js → chunk-SSPV2ARK.js} +1 -1
- package/dist/{chunk-GH7QKRBB.js → chunk-T2CRLJYT.js} +2 -2
- package/dist/{chunk-QTO2LAX3.js → chunk-TIGPSI26.js} +1 -1
- package/dist/{chunk-OGSGFMKK.js → chunk-TLX7WLSM.js} +1 -1
- package/dist/{chunk-OX7IN5U2.js → chunk-UD7BBWGQ.js} +1 -1
- package/dist/{chunk-Y6NJN34R.js → chunk-UGPMQVIH.js} +22 -10
- package/dist/{chunk-XSZV7X7Y.js → chunk-UJUGBZI4.js} +1 -1
- package/dist/{chunk-Q4RX6D2H.js → chunk-ULPGXTB4.js} +1 -1
- package/dist/{chunk-VLG64TXW.js → chunk-UPJCNX6G.js} +2 -2
- package/dist/{chunk-6EHXBROO.js → chunk-UUDH3X5T.js} +115 -18
- package/dist/{chunk-J4JHA5KK.js → chunk-UVNHD2TI.js} +2 -2
- package/dist/{chunk-AU3IQ43F.js → chunk-V73CSRT2.js} +1 -1
- package/dist/{chunk-O2YUYQ5T.js → chunk-VYG6ULBX.js} +1 -1
- package/dist/{chunk-ZEGG7LH6.js → chunk-W5K3GT36.js} +4 -4
- package/dist/{chunk-7RC6WJRQ.js → chunk-WABXJFUL.js} +2 -2
- package/dist/{chunk-VQTDLM5E.js → chunk-WPAG45MZ.js} +2 -2
- package/dist/{chunk-K7TH53HI.js → chunk-WRB3YN3G.js} +4 -4
- package/dist/{chunk-KU6HKKSH.js → chunk-WXFBIZD3.js} +3 -3
- package/dist/{chunk-RFOD2LIS.js → chunk-X2BOYCXN.js} +1 -1
- package/dist/{chunk-WFWHPBXH.js → chunk-XJ3XAEM5.js} +1 -1
- package/dist/{chunk-L36GD43R.js → chunk-XY5OZASM.js} +11 -11
- package/dist/{chunk-JNHJX2BZ.js → chunk-YAROSZMP.js} +0 -1
- package/dist/{chunk-XRFGNYTK.js → chunk-YCWVZVLZ.js} +8 -36
- package/dist/{chunk-4PYV2WCX.js → chunk-YUFRNXZC.js} +1 -1
- package/dist/{chunk-XNMUNUOI.js → chunk-Z3SIFZWB.js} +232 -132
- package/dist/{chunk-MCEO5ADO.js → chunk-ZRMOQEXI.js} +3 -3
- package/dist/{clean-J4527G73.js → clean-RYDEBYSS.js} +21 -20
- package/dist/cli.js +71 -65
- package/dist/{cloud-UFYDCGO2.js → cloud-S36Y4ZMU.js} +4 -4
- package/dist/{cloudrun-V22QDCLM.js → cloudrun-4VHCME4N.js} +4 -4
- package/dist/{compare-PG5O3VMU.js → compare-L7UQRWU6.js} +34 -33
- package/dist/{compiler-CHG6MOG6.js → compiler-GVL4J5WM.js} +2 -2
- package/dist/{component-FIBAPSLU.js → component-UXO2SNYJ.js} +3 -3
- package/dist/{compositions-S2ACFEK3.js → compositions-NURJYGR3.js} +13 -13
- package/dist/{curve-6Q2UHCNL.js → curve-3TCSWJGM.js} +12 -12
- package/dist/{cuts-KEWJINAP.js → cuts-NDOOHBLU.js} +13 -13
- package/dist/{delete-SY36IJ5P.js → delete-7AUPWKJY.js} +2 -2
- package/dist/{deploy-SVZ4ZP77.js → deploy-HHBMY7X2.js} +2 -2
- package/dist/{describeProject-JWKAZF36.js → describeProject-NMYORSFV.js} +9 -9
- package/dist/{destroy-AULATPZF.js → destroy-R3L2S4QE.js} +2 -2
- package/dist/{diff-TSM62WEL.js → diff-DI3NLY2H.js} +32 -32
- package/dist/{dist-YNVYELIJ.js → dist-2QBEMWDQ.js} +2 -2
- package/dist/{dist-QWNNHDYG.js → dist-VHEH64LS.js} +13 -11
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/{doctor-XQYOC5ZB.js → doctor-QNXOEPOQ.js} +14 -14
- package/dist/{energy-BH4PNALP.js → energy-Y7T7O2E4.js} +13 -13
- package/dist/{events-O45JX52N.js → events-BYIIXNZQ.js} +4 -4
- package/dist/{events-ZOCLAUA3.js → events-PS75M7T5.js} +7 -7
- package/dist/{events-D6E4M2YR.js → events-XRTY2OIT.js} +15 -15
- package/dist/{execute-NXFQ5YDK.js → execute-MXDVU7KY.js} +26 -26
- package/dist/{extract-2IQW5CSF.js → extract-TA4HUEND.js} +13 -13
- package/dist/{face-DFF74UCY.js → face-OZVRHR3W.js} +13 -13
- package/dist/{feedback-CXL5W5RS.js → feedback-77SH3ISF.js} +20 -11
- package/dist/{ffmpeg-GQRDKJHR.js → ffmpeg-LHX32HR4.js} +8 -8
- package/dist/{figma-MX3Z2N3G.js → figma-7SWDAIDR.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -11
- package/dist/{frames-5UCV6BBN.js → frames-NT2QFFOW.js} +14 -14
- package/dist/{generate-G4AWRWNK.js → generate-XYAZORPS.js} +24 -24
- package/dist/{get-3GU6XDPT.js → get-IVJR3QXE.js} +2 -2
- package/dist/{gpuPolicy-B4DVHXOK.js → gpuPolicy-MQAEFTSB.js} +8 -8
- package/dist/{grade-compare-JTHTWPO2.js → grade-compare-5X3BOPMN.js} +35 -34
- package/dist/{heifImagePrep-R4IPVDVW.js → heifImagePrep-ALY7F4AO.js} +9 -9
- package/dist/{help-OU5VCJB6.js → help-XYDN2JSY.js} +1 -1
- package/dist/{history-CDY4EL62.js → history-KFFBIWJQ.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -72
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-WSAWF73H.js → info-2BG2W3VT.js} +15 -15
- package/dist/{init-A5UBCP2B.js → init-VQI2NV5N.js} +31 -31
- package/dist/{ink-AT5CIP6V.js → ink-736X4CLK.js} +13 -13
- package/dist/{inspect-MLI6KNL5.js → inspect-YTNPNP3N.js} +35 -34
- package/dist/{installer-KUUKUZIG.js → installer-AHIIKI4S.js} +4 -4
- package/dist/{keyframes-MCW5LJ3B.js → keyframes-Q32DRCGT.js} +10 -10
- package/dist/{lambda-3HCOCTN3.js → lambda-UT4UBKXF.js} +13 -13
- package/dist/{layout-HSGAFRQN.js → layout-ZEBKXSTJ.js} +35 -34
- package/dist/{lint-MSWAND2P.js → lint-EG6NKIYY.js} +10 -10
- package/dist/{list-T3HR2OFU.js → list-AHJ2WTAD.js} +2 -2
- package/dist/{localPage-RHYQ5KCC.js → localPage-7JNLMGJU.js} +8 -8
- package/dist/{login-R4VJ6L6S.js → login-DUL3D5SH.js} +4 -4
- package/dist/{look-7JMD6ZH2.js → look-MUUSNTC7.js} +13 -13
- package/dist/{manager-DLEEPJVW.js → manager-25RJ4IZN.js} +4 -4
- package/dist/{manager-PQJMDUJJ.js → manager-S6XGNTLZ.js} +9 -9
- package/dist/{measure-NM6CGR7M.js → measure-YBFOLOOI.js} +11 -11
- package/dist/{media-treatment-67BLRJVR.js → media-treatment-7L2ADETK.js} +15 -15
- package/dist/{media-use-3CJI42ZF.js → media-use-HOVQTVRJ.js} +3 -3
- package/dist/{models-JVEDZ2HR.js → models-QA42XWKZ.js} +12 -12
- package/dist/{motionShot-BFWNOKIA.js → motionShot-C4HYF2N2.js} +19 -19
- package/dist/{normalize-audio-TWKVBN7Y.js → normalize-audio-LEEGRCTZ.js} +11 -11
- package/dist/{open-3HDTT3O2.js → open-BYVZ523H.js} +14 -14
- package/dist/{parakeetRunner-ZHBLWJTB.js → parakeetRunner-GGVZZRTL.js} +14 -14
- package/dist/{pipeline-ITLABK4A.js → pipeline-XTWWNHAP.js} +11 -11
- package/dist/{plan-DE263KLO.js → plan-2OVWRJ26.js} +21 -21
- package/dist/{play-GU52523E.js → play-VK5T2OKN.js} +24 -23
- package/dist/{preflight-DVQBK24B.js → preflight-ZVGLVSEO.js} +11 -11
- package/dist/{present-VRFCLBZY.js → present-IIHEWIXB.js} +19 -18
- package/dist/{preview-GRNDINLF.js → preview-SGQQ7C7S.js} +21 -21
- package/dist/{probe-BEHMQQCK.js → probe-7UM7R4EA.js} +13 -13
- package/dist/{producer-BK3PEIWR.js → producer-L5O2ZMYI.js} +1 -1
- package/dist/{projectConfig-EGQ2EE4M.js → projectConfig-4VR63LJM.js} +7 -7
- package/dist/{publication-L64HQMUF.js → publication-LBYZIOXQ.js} +2 -2
- package/dist/{publish-E42C4GKI.js → publish-JBHJGBED.js} +37 -14
- package/dist/{remove-background-XLEQHMCY.js → remove-background-VRTTGA4H.js} +12 -12
- package/dist/{render-W4TKHFIW.js → render-GXEBF3A5.js} +5 -5
- package/dist/{render-V2CEGUQ7.js → render-SNISZG2V.js} +51 -33
- package/dist/{render-FGEFUUVX.js → render-VSWWXDU7.js} +39 -39
- package/dist/{render-batch-AAP46BN3.js → render-batch-JFAOERDV.js} +5 -5
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-QMZJ65AJ.js → resolver-ETRL57LD.js} +5 -5
- package/dist/{reverse-7KE7FBYW.js → reverse-7VP34HFN.js} +1 -1
- package/dist/{run-SIBZZM3T.js → run-GGMHXAKM.js} +3 -3
- package/dist/{screenshotCapture-KF4NGIFJ.js → screenshotCapture-MD2RWEFI.js} +10 -10
- package/dist/{service-AYPVIGF7.js → service-2D2SYTUA.js} +13 -13
- package/dist/{share-AYZARNAG.js → share-UHJJUVPI.js} +16 -16
- package/dist/{sherpa-M6ALW4SY.js → sherpa-QCIGQOHB.js} +13 -13
- package/dist/{skills-Y2FQIXT6.js → skills-EIHUAWMC.js} +10 -10
- package/dist/{skillsUpdateCheck-VYLXJ4FJ.js → skillsUpdateCheck-Q5KLVVSH.js} +3 -3
- package/dist/{snapshot-3HOUASTD.js → snapshot-YNKWKWKH.js} +41 -40
- package/dist/{src-6TRFDZH5.js → src-BBRN6W2Z.js} +16 -8
- package/dist/{src-FJXMCDNF.js → src-ERZXFV2D.js} +10 -10
- package/dist/{start-ZT75YMOL.js → start-6F4UUPAA.js} +22 -22
- package/dist/{staticProjectServer-TUCBY7A5.js → staticProjectServer-B2WYU27I.js} +21 -20
- package/dist/{status-4VZY4DCO.js → status-72F7SLYZ.js} +13 -13
- package/dist/studio/assets/{codec-CY6KnWXa.js → codec-B_mpbc4w.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-B9-CuG_h.js → hyperframes-player-Dvi3I_mv.js} +1 -1
- package/dist/studio/assets/{index-_pkzoYYF.js → index-B5ExwsOp.js} +146 -146
- package/dist/studio/assets/{index-Bjz2UaYv.js → index-BrFm9Y5k.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-Dr7nKUUu.js → pausedVideoDecoder-MHQ57yZ6.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BQAV2CHI.js → studio-api-IGEPL4XX.js} +13 -11
- package/dist/{studioServer-K3NK64XW.js → studioServer-MVMRIRQT.js} +60 -58
- package/dist/{sync-3TV5GVZC.js → sync-4D32ZXYZ.js} +13 -13
- package/dist/{system-W2ZTDOLV.js → system-BONOLEJX.js} +2 -2
- package/dist/{telemetry-WMZ4WMFW.js → telemetry-766JX734.js} +7 -7
- package/dist/{templates-BU7QA4UB.js → templates-ENGZMHOR.js} +13 -13
- package/dist/{timeline-WM6JCZAM.js → timeline-ADVNZQWQ.js} +23 -22
- package/dist/{tokens-326VSFFI.js → tokens-BGK6USZ4.js} +2 -2
- package/dist/{transcribe-FZ62PFGN.js → transcribe-AZVOD4DE.js} +27 -27
- package/dist/{transcribe-3AHFQNCK.js → transcribe-EBUWPUGH.js} +12 -12
- package/dist/{update-OQQPTHAC.js → update-BCQ65BJ4.js} +11 -11
- package/dist/{updateCheck-X7Y2FWCW.js → updateCheck-7VWOO5FP.js} +2 -2
- package/dist/{upgrade-NHBHKXKA.js → upgrade-GVVMZAWS.js} +3 -3
- package/dist/{urlDownloader-QMLPZQU3.js → urlDownloader-GVHIFG6F.js} +7 -7
- package/dist/{validate-764UASPF.js → validate-4SIJR3DE.js} +28 -27
- package/dist/{video-X77FX2Z2.js → video-C2HTIO5V.js} +9 -9
- package/dist/{voices-ETIV3GSU.js → voices-C4NRYW26.js} +22 -22
- package/dist/warmCheck.js +44 -43
- package/package.json +1 -1
- package/dist/chunk-7ORCP3DJ.js +0 -5053
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
videoStreamHasAlpha
|
|
14
14
|
} from "./chunk-5S7W3TUO.js";
|
|
15
15
|
import {
|
|
16
|
-
decodableAudioStream
|
|
17
|
-
|
|
16
|
+
decodableAudioStream,
|
|
17
|
+
misstatesPcmByteRate
|
|
18
|
+
} from "./chunk-D54ZDCZR.js";
|
|
18
19
|
import {
|
|
19
20
|
createStagingDir,
|
|
20
21
|
removeScratch,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
resolveAuthoredTimingWindow,
|
|
51
52
|
toFps,
|
|
52
53
|
validateVariables
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TIGPSI26.js";
|
|
54
55
|
import {
|
|
55
56
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
56
57
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -74,6 +75,7 @@ import {
|
|
|
74
75
|
fxAutomationTarget,
|
|
75
76
|
gainedVolume,
|
|
76
77
|
gainedVolumePoints,
|
|
78
|
+
htmlInCanvasForm,
|
|
77
79
|
injectScriptsIntoHtml,
|
|
78
80
|
isAudibleVideoElement,
|
|
79
81
|
isBentSegment,
|
|
@@ -93,18 +95,19 @@ import {
|
|
|
93
95
|
sourceTimeAt,
|
|
94
96
|
timeAtSourceTime,
|
|
95
97
|
volumeSegmentSampleCount
|
|
96
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-R7EOMPJP.js";
|
|
97
99
|
import {
|
|
98
100
|
withHyperframesBrowserMarker
|
|
99
101
|
} from "./chunk-K4MJX7SR.js";
|
|
100
102
|
import {
|
|
101
103
|
browserPathFromEnv,
|
|
104
|
+
buildChromeLaunchEnv,
|
|
102
105
|
chromeMajorCeiling,
|
|
103
106
|
compareBrowserVersionsDescending,
|
|
104
107
|
exceedsChromeCeiling,
|
|
105
108
|
isManagedChromeDir,
|
|
106
109
|
pickSharedShell
|
|
107
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LEIR7IDJ.js";
|
|
108
111
|
import {
|
|
109
112
|
resolveReferencedStart
|
|
110
113
|
} from "./chunk-TVSUPOOH.js";
|
|
@@ -122,8 +125,10 @@ import {
|
|
|
122
125
|
getAvailableMemoryMb,
|
|
123
126
|
getCgroupCpuLimit,
|
|
124
127
|
getSystemTotalMb,
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
hostCpuCount,
|
|
129
|
+
isLowMemorySystem,
|
|
130
|
+
usableCpuCount
|
|
131
|
+
} from "./chunk-HYMWSWKM.js";
|
|
127
132
|
import {
|
|
128
133
|
isPathInside
|
|
129
134
|
} from "./chunk-6MKM2RVL.js";
|
|
@@ -823,6 +828,7 @@ async function diagnoseChromeStartup(executablePath, args, options = {}) {
|
|
|
823
828
|
return await new Promise((resolve2) => {
|
|
824
829
|
let stderr = "";
|
|
825
830
|
const child = spawn(executablePath, startupArgs(args, profile), {
|
|
831
|
+
env: buildChromeLaunchEnv(options.env),
|
|
826
832
|
stdio: ["ignore", "ignore", "pipe"],
|
|
827
833
|
windowsHide: true
|
|
828
834
|
});
|
|
@@ -861,7 +867,7 @@ ${lines}`].filter(Boolean).join("\n")
|
|
|
861
867
|
removeTreeBestEffort(profile);
|
|
862
868
|
}
|
|
863
869
|
}
|
|
864
|
-
async function explainChromeLaunchFailure(error, executablePath, args, signal) {
|
|
870
|
+
async function explainChromeLaunchFailure(error, executablePath, args, { signal, env } = {}) {
|
|
865
871
|
if (!(error instanceof Error)) return error;
|
|
866
872
|
const { code, errno, syscall } = error;
|
|
867
873
|
if (code === "UNKNOWN" && syscall === "spawn")
|
|
@@ -870,7 +876,7 @@ async function explainChromeLaunchFailure(error, executablePath, args, signal) {
|
|
|
870
876
|
{ cause: error }
|
|
871
877
|
);
|
|
872
878
|
if (!executablePath) return error;
|
|
873
|
-
const diagnosis = await diagnoseChromeStartup(executablePath, args ?? [], { signal });
|
|
879
|
+
const diagnosis = await diagnoseChromeStartup(executablePath, args ?? [], { signal, env });
|
|
874
880
|
return new Error(`${error.message}
|
|
875
881
|
${diagnosis}`, { cause: error });
|
|
876
882
|
}
|
|
@@ -990,10 +996,83 @@ function scanHtmlOpeningTags(html) {
|
|
|
990
996
|
|
|
991
997
|
// ../engine/src/services/browserManager.ts
|
|
992
998
|
import { execSync } from "child_process";
|
|
993
|
-
import { existsSync, readdirSync, statSync } from "fs";
|
|
999
|
+
import { existsSync as existsSync2, readdirSync, statSync } from "fs";
|
|
994
1000
|
import { join as join3 } from "path";
|
|
995
1001
|
import { homedir } from "os";
|
|
996
1002
|
|
|
1003
|
+
// ../engine/src/services/chromeSandbox.ts
|
|
1004
|
+
import { existsSync, readFileSync } from "fs";
|
|
1005
|
+
var NO_SANDBOX_ARGS = ["--no-sandbox", "--disable-setuid-sandbox", "--no-zygote"];
|
|
1006
|
+
var SANDBOX_START_FAILURE = /No usable sandbox|Running as root without --no-sandbox|Failed to move to new namespace/;
|
|
1007
|
+
function readTrimmed(path) {
|
|
1008
|
+
try {
|
|
1009
|
+
return readFileSync(path, "utf8").trim();
|
|
1010
|
+
} catch {
|
|
1011
|
+
return void 0;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
var currentHost = () => ({
|
|
1015
|
+
platform: process.platform,
|
|
1016
|
+
env: process.env,
|
|
1017
|
+
uid: process.getuid?.(),
|
|
1018
|
+
exists: existsSync,
|
|
1019
|
+
read: readTrimmed
|
|
1020
|
+
});
|
|
1021
|
+
var SERVERLESS_OR_ORCHESTRATED_ENV = [
|
|
1022
|
+
"AWS_LAMBDA_FUNCTION_NAME",
|
|
1023
|
+
"AWS_EXECUTION_ENV",
|
|
1024
|
+
"K_SERVICE",
|
|
1025
|
+
"CLOUD_RUN_JOB",
|
|
1026
|
+
"KUBERNETES_SERVICE_HOST"
|
|
1027
|
+
];
|
|
1028
|
+
var CONTAINER_MARKERS = ["/.dockerenv", "/run/.containerenv"];
|
|
1029
|
+
var USERNS_BLOCKED_SYSCTLS = [
|
|
1030
|
+
["/proc/sys/kernel/apparmor_restrict_unprivileged_userns", "1"],
|
|
1031
|
+
["/proc/sys/kernel/unprivileged_userns_clone", "0"]
|
|
1032
|
+
];
|
|
1033
|
+
function linuxCannotSandbox({ env, uid, exists, read }) {
|
|
1034
|
+
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);
|
|
1035
|
+
}
|
|
1036
|
+
function chromeSandboxEnabled(host = currentHost()) {
|
|
1037
|
+
const override = host.env.HYPERFRAMES_CHROME_SANDBOX;
|
|
1038
|
+
if (override === "0" || override === "1") return override === "1";
|
|
1039
|
+
return host.platform !== "linux" || !linuxCannotSandbox(host);
|
|
1040
|
+
}
|
|
1041
|
+
function chromeSandboxArgs(sandbox = chromeSandboxEnabled()) {
|
|
1042
|
+
return sandbox ? [] : NO_SANDBOX_ARGS;
|
|
1043
|
+
}
|
|
1044
|
+
function withoutChromeSandbox(args) {
|
|
1045
|
+
return [...args.filter((arg) => !NO_SANDBOX_ARGS.includes(arg)), ...NO_SANDBOX_ARGS];
|
|
1046
|
+
}
|
|
1047
|
+
var sandboxRefused = false;
|
|
1048
|
+
var closedTargetRetries = 0;
|
|
1049
|
+
var warned = false;
|
|
1050
|
+
function chromeNamedSandboxFailure(error) {
|
|
1051
|
+
return error instanceof Error && SANDBOX_START_FAILURE.test(error.message);
|
|
1052
|
+
}
|
|
1053
|
+
function sandboxStartFailure(error) {
|
|
1054
|
+
return chromeNamedSandboxFailure(error) || error instanceof Error && error.name === "TargetCloseError";
|
|
1055
|
+
}
|
|
1056
|
+
async function launchWithChromeSandboxFallback(args, launch, platform = process.platform, env = process.env) {
|
|
1057
|
+
const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
|
|
1058
|
+
const sandboxRequired = env.HYPERFRAMES_CHROME_SANDBOX === "1";
|
|
1059
|
+
if (sandboxed && sandboxRefused && !sandboxRequired) return launch(withoutChromeSandbox(args));
|
|
1060
|
+
try {
|
|
1061
|
+
return await launch([...args]);
|
|
1062
|
+
} catch (error) {
|
|
1063
|
+
if (!sandboxed || sandboxRequired || !sandboxStartFailure(error)) throw error;
|
|
1064
|
+
const browser = await launch(withoutChromeSandbox(args));
|
|
1065
|
+
if (chromeNamedSandboxFailure(error) || ++closedTargetRetries >= 2) sandboxRefused = true;
|
|
1066
|
+
if (!warned) {
|
|
1067
|
+
warned = true;
|
|
1068
|
+
console.warn(
|
|
1069
|
+
"[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."
|
|
1070
|
+
);
|
|
1071
|
+
}
|
|
1072
|
+
return browser;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
997
1076
|
// ../engine/src/services/browserLeasePool.ts
|
|
998
1077
|
function freezeFingerprint(fingerprint) {
|
|
999
1078
|
return Object.freeze({
|
|
@@ -1252,7 +1331,7 @@ async function probeHardwareWebGlInfo(ppt, options) {
|
|
|
1252
1331
|
args: withHyperframesBrowserMarker(options.args),
|
|
1253
1332
|
defaultViewport: { width: 64, height: 64 },
|
|
1254
1333
|
executablePath: options.executablePath,
|
|
1255
|
-
env: options.env,
|
|
1334
|
+
env: buildChromeLaunchEnv(options.env),
|
|
1256
1335
|
timeout: options.browserTimeout,
|
|
1257
1336
|
waitForInitialPage: false
|
|
1258
1337
|
};
|
|
@@ -1314,7 +1393,7 @@ function isNonEmptyFile(path) {
|
|
|
1314
1393
|
}
|
|
1315
1394
|
}
|
|
1316
1395
|
function findCachedHeadlessShell(baseDir) {
|
|
1317
|
-
if (!
|
|
1396
|
+
if (!existsSync2(baseDir)) return void 0;
|
|
1318
1397
|
const executable = cachedHeadlessShellExecutable();
|
|
1319
1398
|
if (!executable) return void 0;
|
|
1320
1399
|
try {
|
|
@@ -1331,7 +1410,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1331
1410
|
}
|
|
1332
1411
|
function findSharedHeadlessShell(baseDir) {
|
|
1333
1412
|
const executable = cachedHeadlessShellExecutable();
|
|
1334
|
-
if (!executable || !
|
|
1413
|
+
if (!executable || !existsSync2(baseDir)) return void 0;
|
|
1335
1414
|
try {
|
|
1336
1415
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1337
1416
|
const binary = join3(baseDir, version, ...executable);
|
|
@@ -1343,7 +1422,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1343
1422
|
}
|
|
1344
1423
|
function findManagedHeadlessShell(baseDir) {
|
|
1345
1424
|
const executable = cachedHeadlessShellExecutable();
|
|
1346
|
-
if (!executable || !
|
|
1425
|
+
if (!executable || !existsSync2(baseDir)) return void 0;
|
|
1347
1426
|
try {
|
|
1348
1427
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1349
1428
|
const binary = version && join3(baseDir, version, ...executable);
|
|
@@ -1358,7 +1437,7 @@ function resolveHeadlessShellPath(config) {
|
|
|
1358
1437
|
}
|
|
1359
1438
|
const fromEnv = browserPathFromEnv();
|
|
1360
1439
|
if (fromEnv) {
|
|
1361
|
-
if (!
|
|
1440
|
+
if (!existsSync2(fromEnv.path)) {
|
|
1362
1441
|
throw new Error(
|
|
1363
1442
|
`[BrowserManager] Chrome binary not found at ${fromEnv.name}="${fromEnv.path}". Run \`hyperframes browser ensure\` to re-download.`
|
|
1364
1443
|
);
|
|
@@ -1401,7 +1480,7 @@ function resolveFullChromePath() {
|
|
|
1401
1480
|
join3(baseDir, version, "chrome-win64", "chrome.exe")
|
|
1402
1481
|
];
|
|
1403
1482
|
for (const binary of candidates) {
|
|
1404
|
-
if (
|
|
1483
|
+
if (existsSync2(binary)) return binary;
|
|
1405
1484
|
}
|
|
1406
1485
|
}
|
|
1407
1486
|
return void 0;
|
|
@@ -1421,6 +1500,7 @@ var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
|
1421
1500
|
function stripBeginFrameFlags(args) {
|
|
1422
1501
|
return args.filter((a) => !BEGINFRAME_ONLY_FLAGS.has(a));
|
|
1423
1502
|
}
|
|
1503
|
+
var WHOLE_TILE_RASTER_FLAG = "--disable-partial-raster";
|
|
1424
1504
|
var BeginFrameProbeTimeout = class extends Error {
|
|
1425
1505
|
};
|
|
1426
1506
|
var BEGINFRAME_PROBE_TIMEOUT_MS = 2e3;
|
|
@@ -1634,14 +1714,12 @@ var VULKAN_VARS_THAT_OVERRIDE_SWIFTSHADER = [
|
|
|
1634
1714
|
"VK_LOADER_DRIVERS_DISABLE"
|
|
1635
1715
|
];
|
|
1636
1716
|
function launchEnv(fingerprint) {
|
|
1637
|
-
if (fingerprint.withoutWaylandDisplay) return envWithoutWaylandDisplay();
|
|
1717
|
+
if (fingerprint.withoutWaylandDisplay) return buildChromeLaunchEnv(envWithoutWaylandDisplay());
|
|
1718
|
+
const env = buildChromeLaunchEnv();
|
|
1638
1719
|
const swiftShader = fingerprint.args.some(
|
|
1639
1720
|
(arg) => arg === "--use-angle=swiftshader" || arg === "--use-vulkan=swiftshader"
|
|
1640
1721
|
);
|
|
1641
|
-
|
|
1642
|
-
if (!swiftShader || overriding.length === 0) return void 0;
|
|
1643
|
-
const env = { ...process.env };
|
|
1644
|
-
for (const name of overriding) delete env[name];
|
|
1722
|
+
if (swiftShader) for (const name of VULKAN_VARS_THAT_OVERRIDE_SWIFTSHADER) delete env[name];
|
|
1645
1723
|
return env;
|
|
1646
1724
|
}
|
|
1647
1725
|
async function captureWithoutWaylandDisplay(resolvedMode) {
|
|
@@ -1742,24 +1820,30 @@ async function launchBrowser(fingerprint) {
|
|
|
1742
1820
|
const env = launchEnv(fingerprint);
|
|
1743
1821
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1744
1822
|
let browser;
|
|
1745
|
-
const launch = (args) =>
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1823
|
+
const launch = (args) => {
|
|
1824
|
+
let attempted = args;
|
|
1825
|
+
return launchWithChromeSandboxFallback(args, (launchArgs) => {
|
|
1826
|
+
attempted = launchArgs;
|
|
1827
|
+
return launchInsideSandbox(ppt, {
|
|
1828
|
+
...ownedLaunchOptions(),
|
|
1829
|
+
headless: true,
|
|
1830
|
+
args: withHyperframesBrowserMarker(launchArgs),
|
|
1831
|
+
defaultViewport: null,
|
|
1832
|
+
executablePath: fingerprint.executablePath,
|
|
1833
|
+
env,
|
|
1834
|
+
timeout: fingerprint.browserTimeoutMs,
|
|
1835
|
+
protocolTimeout: fingerprint.protocolTimeoutMs
|
|
1836
|
+
});
|
|
1837
|
+
}).catch(async (error) => {
|
|
1838
|
+
const remediation = process.platform === "darwin" && sandboxDeniedRemediation(error instanceof Error ? error.message : "");
|
|
1839
|
+
if (remediation) throw new Error(remediation, { cause: error });
|
|
1840
|
+
const defaults = await ppt.defaultArgs({
|
|
1841
|
+
headless: true,
|
|
1842
|
+
args: withHyperframesBrowserMarker(attempted)
|
|
1843
|
+
});
|
|
1844
|
+
throw await explainChromeLaunchFailure(error, fingerprint.executablePath, defaults, { env });
|
|
1760
1845
|
});
|
|
1761
|
-
|
|
1762
|
-
});
|
|
1846
|
+
};
|
|
1763
1847
|
const probe = (target, timeoutMs) => probeBeginFrameSupport(target, timeoutMs).catch((error) => ({
|
|
1764
1848
|
supported: true,
|
|
1765
1849
|
detail: `probe harness error ignored: ${error instanceof Error ? error.message : String(error)}`,
|
|
@@ -1793,7 +1877,7 @@ async function launchBrowser(fingerprint) {
|
|
|
1793
1877
|
`[BrowserManager] HeadlessExperimental.beginFrame probe failed after ${result.durationMs}ms: ${result.detail}; falling back to screenshot mode.`
|
|
1794
1878
|
);
|
|
1795
1879
|
captureMode = "screenshot";
|
|
1796
|
-
browser = await launch(stripBeginFrameFlags(
|
|
1880
|
+
browser = await launch([...stripBeginFrameFlags(fingerprint.args), WHOLE_TILE_RASTER_FLAG]);
|
|
1797
1881
|
}
|
|
1798
1882
|
}
|
|
1799
1883
|
return { browser, captureMode };
|
|
@@ -1880,8 +1964,7 @@ function buildChromeArgs(options, config) {
|
|
|
1880
1964
|
const browserGpuMode = gpuDisabled ? "software" : config?.browserGpuMode ?? DEFAULT_CONFIG.browserGpuMode;
|
|
1881
1965
|
const softwareWebGpu = usesSoftwareWebGpu(options.requiresWebGpu, config);
|
|
1882
1966
|
const chromeArgs = [
|
|
1883
|
-
|
|
1884
|
-
"--disable-setuid-sandbox",
|
|
1967
|
+
...chromeSandboxArgs(options.sandbox),
|
|
1885
1968
|
"--disable-dev-shm-usage",
|
|
1886
1969
|
softwareWebGpu ? `${CANVAS_DRAW_ELEMENT_FEATURE_FLAG},Vulkan` : CANVAS_DRAW_ELEMENT_FEATURE_FLAG,
|
|
1887
1970
|
"--enable-webgl",
|
|
@@ -1910,7 +1993,6 @@ function buildChromeArgs(options, config) {
|
|
|
1910
1993
|
"--disable-domain-reliability",
|
|
1911
1994
|
"--disable-print-preview",
|
|
1912
1995
|
"--no-pings",
|
|
1913
|
-
"--no-zygote",
|
|
1914
1996
|
// Memory — scale GPU budget to available system RAM
|
|
1915
1997
|
`--force-gpu-mem-available-mb=${getGpuMemBudgetMb()}`,
|
|
1916
1998
|
"--disk-cache-size=268435456",
|
|
@@ -1946,6 +2028,8 @@ function buildChromeArgs(options, config) {
|
|
|
1946
2028
|
"--disable-image-animation-resync",
|
|
1947
2029
|
"--enable-surface-synchronization"
|
|
1948
2030
|
);
|
|
2031
|
+
} else {
|
|
2032
|
+
chromeArgs.push(WHOLE_TILE_RASTER_FLAG);
|
|
1949
2033
|
}
|
|
1950
2034
|
if (gpuDisabled) {
|
|
1951
2035
|
chromeArgs.push("--disable-gpu");
|
|
@@ -2172,8 +2256,9 @@ async function detectGpuBackend(page) {
|
|
|
2172
2256
|
}, SOFTWARE_WEBGL_RENDERER_TOKENS);
|
|
2173
2257
|
}
|
|
2174
2258
|
async function injectDrawElementCanvas(page, width, height) {
|
|
2259
|
+
const form = await page.evaluate(htmlInCanvasForm) ?? "layoutsubtree";
|
|
2175
2260
|
await page.evaluate(
|
|
2176
|
-
({ w, h }) => {
|
|
2261
|
+
({ w, h, form: form2 }) => {
|
|
2177
2262
|
const root = document.querySelector("[data-composition-id]");
|
|
2178
2263
|
if (!root || document.getElementById("__hf_de_canvas")) return;
|
|
2179
2264
|
try {
|
|
@@ -2184,7 +2269,11 @@ async function injectDrawElementCanvas(page, width, height) {
|
|
|
2184
2269
|
if (!parent) throw new Error("drawElement: composition root has no parent node");
|
|
2185
2270
|
const canvas = document.createElement("canvas");
|
|
2186
2271
|
canvas.id = "__hf_de_canvas";
|
|
2187
|
-
canvas.setAttribute("layoutsubtree", "");
|
|
2272
|
+
if (form2 === "layoutsubtree") canvas.setAttribute("layoutsubtree", "");
|
|
2273
|
+
else {
|
|
2274
|
+
canvas.setAttribute("content", "drawable");
|
|
2275
|
+
root.setAttribute("drawable", "");
|
|
2276
|
+
}
|
|
2188
2277
|
canvas.width = w;
|
|
2189
2278
|
canvas.height = h;
|
|
2190
2279
|
canvas.style.cssText = "display:block;position:absolute;top:0;left:0;z-index:0";
|
|
@@ -2207,7 +2296,7 @@ async function injectDrawElementCanvas(page, width, height) {
|
|
|
2207
2296
|
return false;
|
|
2208
2297
|
};
|
|
2209
2298
|
},
|
|
2210
|
-
{ w: width, h: height }
|
|
2299
|
+
{ w: width, h: height, form }
|
|
2211
2300
|
);
|
|
2212
2301
|
}
|
|
2213
2302
|
async function captureDrawElementFrame(page, width, height, format = "jpeg", quality = 80, syncToPaintEvent = true) {
|
|
@@ -2805,7 +2894,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
|
|
|
2805
2894
|
}
|
|
2806
2895
|
|
|
2807
2896
|
// ../engine/src/services/frameCapture.ts
|
|
2808
|
-
import { existsSync as
|
|
2897
|
+
import { existsSync as existsSync5, mkdirSync, writeFileSync } from "fs";
|
|
2809
2898
|
import { join as join7 } from "path";
|
|
2810
2899
|
|
|
2811
2900
|
// ../engine/src/services/renderFrameVideoHold.ts
|
|
@@ -5264,7 +5353,7 @@ import { execFile } from "child_process";
|
|
|
5264
5353
|
import { promisify } from "util";
|
|
5265
5354
|
|
|
5266
5355
|
// ../engine/src/utils/ffmpegBinaries.ts
|
|
5267
|
-
import { existsSync as
|
|
5356
|
+
import { existsSync as existsSync3 } from "fs";
|
|
5268
5357
|
import { dirname, join as join4 } from "path";
|
|
5269
5358
|
import { fileURLToPath } from "url";
|
|
5270
5359
|
function notFound(name, setting) {
|
|
@@ -5278,13 +5367,13 @@ function getFfprobeBinary() {
|
|
|
5278
5367
|
}
|
|
5279
5368
|
function assertConfiguredFfmpegBinariesExist() {
|
|
5280
5369
|
const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
|
|
5281
|
-
if (ffmpegPath && !
|
|
5370
|
+
if (ffmpegPath && !existsSync3(ffmpegPath)) {
|
|
5282
5371
|
throw new Error(
|
|
5283
5372
|
`[FFmpeg] FFmpeg binary not found at ${FFMPEG_PATH_ENV}="${ffmpegPath}". Install FFmpeg or unset the override.${pathEncodingHint(ffmpegPath)}`
|
|
5284
5373
|
);
|
|
5285
5374
|
}
|
|
5286
5375
|
const ffprobePath = process.env[FFPROBE_PATH_ENV]?.trim();
|
|
5287
|
-
if (ffprobePath && !
|
|
5376
|
+
if (ffprobePath && !existsSync3(ffprobePath)) {
|
|
5288
5377
|
throw new Error(
|
|
5289
5378
|
`[FFmpeg] FFprobe binary not found at ${FFPROBE_PATH_ENV}="${ffprobePath}". Install FFmpeg or unset the override.${pathEncodingHint(ffprobePath)}`
|
|
5290
5379
|
);
|
|
@@ -5327,20 +5416,20 @@ async function listFfmpeg(flag) {
|
|
|
5327
5416
|
}
|
|
5328
5417
|
|
|
5329
5418
|
// ../engine/src/utils/renderProvenance.ts
|
|
5330
|
-
import { readFileSync as
|
|
5419
|
+
import { readFileSync as readFileSync3 } from "fs";
|
|
5331
5420
|
import { createRequire } from "module";
|
|
5332
5421
|
import { dirname as dirname2, join as join6 } from "path";
|
|
5333
5422
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5334
5423
|
|
|
5335
5424
|
// ../engine/src/utils/ffprobe.ts
|
|
5336
5425
|
import { spawn as spawn3 } from "child_process";
|
|
5337
|
-
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync, rmSync, statSync as statSync2 } from "fs";
|
|
5426
|
+
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync as statSync2 } from "fs";
|
|
5338
5427
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5339
5428
|
import { tmpdir as tmpdir3 } from "os";
|
|
5340
5429
|
import { basename, join as join5 } from "path";
|
|
5341
5430
|
|
|
5342
5431
|
// ../engine/src/utils/urlInput.ts
|
|
5343
|
-
import { existsSync as
|
|
5432
|
+
import { existsSync as existsSync4 } from "fs";
|
|
5344
5433
|
var CA_BUNDLES = [
|
|
5345
5434
|
"/etc/pki/tls/certs/ca-bundle.crt",
|
|
5346
5435
|
"/etc/ssl/certs/ca-certificates.crt",
|
|
@@ -5352,7 +5441,7 @@ function urlInputArgs(input, {
|
|
|
5352
5441
|
caBundles = CA_BUNDLES
|
|
5353
5442
|
} = {}) {
|
|
5354
5443
|
if (!/^https:\/\//i.test(input)) return [];
|
|
5355
|
-
const caFile = caBundles.find((path) =>
|
|
5444
|
+
const caFile = caBundles.find((path) => existsSync4(path));
|
|
5356
5445
|
if (!caFile) {
|
|
5357
5446
|
throw new Error(
|
|
5358
5447
|
`[FFmpeg] cannot verify TLS for an https input: no CA bundle at ${caBundles.join(", ")}`
|
|
@@ -6105,7 +6194,7 @@ function extractPngMetadataFromBuffer(buf) {
|
|
|
6105
6194
|
}
|
|
6106
6195
|
function extractStillImageMetadata(filePath) {
|
|
6107
6196
|
try {
|
|
6108
|
-
return extractPngMetadataFromBuffer(
|
|
6197
|
+
return extractPngMetadataFromBuffer(readFileSync2(filePath));
|
|
6109
6198
|
} catch {
|
|
6110
6199
|
return null;
|
|
6111
6200
|
}
|
|
@@ -6465,15 +6554,6 @@ async function probeAudioMetadata(filePath, signal) {
|
|
|
6465
6554
|
misstatedByteRate: misstatesPcmByteRate(audioStream)
|
|
6466
6555
|
};
|
|
6467
6556
|
}
|
|
6468
|
-
function misstatesPcmByteRate(stream) {
|
|
6469
|
-
const declared = Number(stream.bit_rate);
|
|
6470
|
-
const { channels, bits_per_sample: bits } = stream;
|
|
6471
|
-
const rate = Number(stream.sample_rate);
|
|
6472
|
-
if (!stream.codec_name?.startsWith("pcm_") || !declared || !channels || !bits || !rate) {
|
|
6473
|
-
return false;
|
|
6474
|
-
}
|
|
6475
|
-
return declared !== rate * channels * bits;
|
|
6476
|
-
}
|
|
6477
6557
|
function audioVideoStreamStarts(output) {
|
|
6478
6558
|
return (output?.streams ?? []).filter(
|
|
6479
6559
|
(s) => (s.codec_type === "audio" || s.codec_type === "video") && s.disposition?.attached_pic !== 1
|
|
@@ -6638,7 +6718,7 @@ function resolveOwnVersionFrom(startDir) {
|
|
|
6638
6718
|
const candidate = join6(dir, "package.json");
|
|
6639
6719
|
let pkg;
|
|
6640
6720
|
try {
|
|
6641
|
-
pkg = JSON.parse(
|
|
6721
|
+
pkg = JSON.parse(readFileSync3(candidate, "utf8"));
|
|
6642
6722
|
} catch {
|
|
6643
6723
|
pkg = void 0;
|
|
6644
6724
|
}
|
|
@@ -6661,7 +6741,7 @@ function installedEngineVersion(fromDir) {
|
|
|
6661
6741
|
const path = createRequire(join6(fromDir, "index.js")).resolve(
|
|
6662
6742
|
"@hyperframes/engine/package.json"
|
|
6663
6743
|
);
|
|
6664
|
-
const pkg = JSON.parse(
|
|
6744
|
+
const pkg = JSON.parse(readFileSync3(path, "utf8"));
|
|
6665
6745
|
if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
|
|
6666
6746
|
return pkg.version;
|
|
6667
6747
|
} catch {
|
|
@@ -7715,7 +7795,7 @@ async function installMediaPageHooks(page, options) {
|
|
|
7715
7795
|
}
|
|
7716
7796
|
}
|
|
7717
7797
|
async function createCaptureSession(serverUrl, outputDir, options, onBeforeCapture = null, config) {
|
|
7718
|
-
if (!
|
|
7798
|
+
if (!existsSync5(outputDir)) mkdirSync(outputDir, { recursive: true });
|
|
7719
7799
|
const headlessShell = resolveHeadlessShellPath(config);
|
|
7720
7800
|
const isLinux = process.platform === "linux";
|
|
7721
7801
|
const forceScreenshot = config?.forceScreenshot ?? DEFAULT_CONFIG.forceScreenshot;
|
|
@@ -8976,7 +9056,7 @@ async function initializeSession(session) {
|
|
|
8976
9056
|
async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
|
|
8977
9057
|
try {
|
|
8978
9058
|
const diagnosticsDir = join7(session.outputDir, "diagnostics");
|
|
8979
|
-
if (!
|
|
9059
|
+
if (!existsSync5(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
|
|
8980
9060
|
const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
|
|
8981
9061
|
const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
|
|
8982
9062
|
if (pageScreenshotCanResolve) {
|
|
@@ -10387,7 +10467,7 @@ async function closeCaptureSession(session) {
|
|
|
10387
10467
|
session.isInitialized = false;
|
|
10388
10468
|
}
|
|
10389
10469
|
async function prepareCaptureSessionForReuse(session, outputDir, onBeforeCapture) {
|
|
10390
|
-
if (!
|
|
10470
|
+
if (!existsSync5(outputDir)) {
|
|
10391
10471
|
mkdirSync(outputDir, { recursive: true });
|
|
10392
10472
|
}
|
|
10393
10473
|
session.outputDir = outputDir;
|
|
@@ -10622,11 +10702,11 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
|
|
|
10622
10702
|
import {
|
|
10623
10703
|
closeSync,
|
|
10624
10704
|
copyFileSync,
|
|
10625
|
-
existsSync as
|
|
10705
|
+
existsSync as existsSync6,
|
|
10626
10706
|
ftruncateSync,
|
|
10627
10707
|
mkdirSync as mkdirSync2,
|
|
10628
10708
|
openSync,
|
|
10629
|
-
readFileSync as
|
|
10709
|
+
readFileSync as readFileSync4,
|
|
10630
10710
|
readdirSync as readdirSync3,
|
|
10631
10711
|
statSync as statSync3,
|
|
10632
10712
|
writeFileSync as writeFileSync2,
|
|
@@ -10946,9 +11026,8 @@ function withEvenDimensionPad(vfChain, pixelFormat, width, height) {
|
|
|
10946
11026
|
}
|
|
10947
11027
|
|
|
10948
11028
|
// ../engine/src/services/softwareEncoderThreads.ts
|
|
10949
|
-
import { availableParallelism } from "os";
|
|
10950
11029
|
var X265_MAX_THREADS = 16;
|
|
10951
|
-
function appendSoftwareEncoderThreadsArg(args, encoder, parallelism =
|
|
11030
|
+
function appendSoftwareEncoderThreadsArg(args, encoder, parallelism = usableCpuCount()) {
|
|
10952
11031
|
const cap = encoder === "libx265" ? X265_MAX_THREADS : Infinity;
|
|
10953
11032
|
args.push("-threads", String(Math.min(cap, Math.max(1, Math.floor(parallelism)))));
|
|
10954
11033
|
}
|
|
@@ -11264,7 +11343,7 @@ var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds })
|
|
|
11264
11343
|
async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
|
|
11265
11344
|
const startTime = Date.now();
|
|
11266
11345
|
const outputDir = dirname3(outputPath);
|
|
11267
|
-
if (!
|
|
11346
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11268
11347
|
const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
|
|
11269
11348
|
const frameCount = files.length;
|
|
11270
11349
|
if (frameCount === 0) {
|
|
@@ -11320,7 +11399,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
11320
11399
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
11321
11400
|
};
|
|
11322
11401
|
}
|
|
11323
|
-
const fileSize =
|
|
11402
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
11324
11403
|
return {
|
|
11325
11404
|
success: true,
|
|
11326
11405
|
outputPath,
|
|
@@ -11463,7 +11542,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11463
11542
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
11464
11543
|
};
|
|
11465
11544
|
}
|
|
11466
|
-
const fileSize =
|
|
11545
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
11467
11546
|
return {
|
|
11468
11547
|
success: true,
|
|
11469
11548
|
outputPath,
|
|
@@ -11474,7 +11553,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11474
11553
|
}
|
|
11475
11554
|
async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
|
|
11476
11555
|
const outputDir = dirname3(outputPath);
|
|
11477
|
-
if (!
|
|
11556
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11478
11557
|
const outputExtension = extname(outputPath).toLowerCase();
|
|
11479
11558
|
const isWebm = outputExtension === ".webm";
|
|
11480
11559
|
const isMov = outputExtension === ".mov";
|
|
@@ -11549,7 +11628,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
11549
11628
|
if (outputDir.includes("%")) {
|
|
11550
11629
|
throw new Error(`[chunkEncoder] packageHls outputDir must not contain "%": ${outputDir}`);
|
|
11551
11630
|
}
|
|
11552
|
-
if (!
|
|
11631
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11553
11632
|
const hasAudio = audioPath !== null;
|
|
11554
11633
|
const args = hasAudio ? ["-i", videoPath, "-i", audioPath, "-map", "0:v:0", "-map", "1:a:0"] : ["-i", videoPath, "-map", "0:v:0"];
|
|
11555
11634
|
args.push(
|
|
@@ -11598,7 +11677,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
11598
11677
|
}
|
|
11599
11678
|
if (master !== void 0) {
|
|
11600
11679
|
try {
|
|
11601
|
-
const stripped = stripAudioOnlyVariants(
|
|
11680
|
+
const stripped = stripAudioOnlyVariants(readFileSync4(master, "utf-8"));
|
|
11602
11681
|
ftruncateSync(master, 0);
|
|
11603
11682
|
writeSync(master, stripped, 0, "utf-8");
|
|
11604
11683
|
} finally {
|
|
@@ -11696,7 +11775,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
11696
11775
|
// ../engine/src/services/streamingEncoder.ts
|
|
11697
11776
|
import { spawn as spawn5 } from "child_process";
|
|
11698
11777
|
import { once } from "events";
|
|
11699
|
-
import { existsSync as
|
|
11778
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as statSync4 } from "fs";
|
|
11700
11779
|
import { dirname as dirname4 } from "path";
|
|
11701
11780
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
11702
11781
|
let cursor = startFrame;
|
|
@@ -11974,7 +12053,7 @@ function spawnFfmpegStream(outputPath, args, {
|
|
|
11974
12053
|
checkFrame
|
|
11975
12054
|
}) {
|
|
11976
12055
|
const outputDir = dirname4(outputPath);
|
|
11977
|
-
if (!
|
|
12056
|
+
if (!existsSync7(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
11978
12057
|
const ffmpeg = spawn5(getFfmpegBinary(), args, {
|
|
11979
12058
|
stdio: ["pipe", "pipe", "pipe"],
|
|
11980
12059
|
// See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
|
|
@@ -12100,7 +12179,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12100
12179
|
}) ? "external_interruption" : void 0
|
|
12101
12180
|
};
|
|
12102
12181
|
}
|
|
12103
|
-
const fileSize =
|
|
12182
|
+
const fileSize = existsSync7(outputPath) ? statSync4(outputPath).size : 0;
|
|
12104
12183
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12105
12184
|
},
|
|
12106
12185
|
getExitStatus: () => exitStatus,
|
|
@@ -12251,9 +12330,8 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12251
12330
|
}
|
|
12252
12331
|
|
|
12253
12332
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12254
|
-
import { copyFileSync as copyFileSync2, existsSync as
|
|
12333
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync10, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12255
12334
|
import { basename as basename2, isAbsolute, join as join13, normalize, relative, win32 } from "path";
|
|
12256
|
-
import { cpus } from "os";
|
|
12257
12335
|
|
|
12258
12336
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
12259
12337
|
function createConcurrencyLimit(limit) {
|
|
@@ -12294,7 +12372,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
|
|
|
12294
12372
|
}
|
|
12295
12373
|
|
|
12296
12374
|
// ../engine/src/utils/alphaPlaneProbe.ts
|
|
12297
|
-
import { mkdtempSync as mkdtempSync3, readFileSync as
|
|
12375
|
+
import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync5, rmSync as rmSync2 } from "fs";
|
|
12298
12376
|
import { tmpdir as tmpdir4 } from "os";
|
|
12299
12377
|
import { join as join10 } from "path";
|
|
12300
12378
|
var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
|
|
@@ -12334,7 +12412,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
|
|
|
12334
12412
|
{ timeout: 3e4, signal }
|
|
12335
12413
|
);
|
|
12336
12414
|
if (!result.success) return void 0;
|
|
12337
|
-
return sampledRgbaAlphaIsFullyOpaque(
|
|
12415
|
+
return sampledRgbaAlphaIsFullyOpaque(readFileSync5(samplePath));
|
|
12338
12416
|
} catch {
|
|
12339
12417
|
return void 0;
|
|
12340
12418
|
} finally {
|
|
@@ -12351,7 +12429,7 @@ import {
|
|
|
12351
12429
|
closeSync as closeSync2,
|
|
12352
12430
|
createReadStream as createReadStream2,
|
|
12353
12431
|
createWriteStream,
|
|
12354
|
-
existsSync as
|
|
12432
|
+
existsSync as existsSync8,
|
|
12355
12433
|
fsyncSync,
|
|
12356
12434
|
linkSync,
|
|
12357
12435
|
mkdirSync as mkdirSync4,
|
|
@@ -13361,7 +13439,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
|
|
|
13361
13439
|
if (inFlight) {
|
|
13362
13440
|
return inFlight;
|
|
13363
13441
|
}
|
|
13364
|
-
if (!
|
|
13442
|
+
if (!existsSync8(destDir)) {
|
|
13365
13443
|
mkdirSync4(destDir, { recursive: true });
|
|
13366
13444
|
}
|
|
13367
13445
|
const filename = getFilenameFromUrl(url, validationScope);
|
|
@@ -13440,11 +13518,15 @@ var PLAIN_SEGMENT = /^(?!\.{1,2}$)[^/\\:]+$/;
|
|
|
13440
13518
|
var GENERATED_SUFFIX = /~[0-9a-f]{12}$/;
|
|
13441
13519
|
var READABLE_MAX_BYTES = 64;
|
|
13442
13520
|
function mediaIdPathSegment(id) {
|
|
13443
|
-
if (PLAIN_SEGMENT.test(id) && !GENERATED_SUFFIX.test(id)
|
|
13521
|
+
if (PLAIN_SEGMENT.test(id) && !GENERATED_SUFFIX.test(id) && survivesCaseAndUnicodeFoldingOnMacAndWindowsDisks(id))
|
|
13522
|
+
return id;
|
|
13444
13523
|
const readable = truncateUtf8(id.replace(/[/\\:]/g, "_"), READABLE_MAX_BYTES);
|
|
13445
13524
|
const digest = createHash2("sha256").update(id).digest("hex").slice(0, 12);
|
|
13446
13525
|
return `${readable}~${digest}`;
|
|
13447
13526
|
}
|
|
13527
|
+
function survivesCaseAndUnicodeFoldingOnMacAndWindowsDisks(id) {
|
|
13528
|
+
return id === id.toLowerCase() && id === id.normalize("NFC");
|
|
13529
|
+
}
|
|
13448
13530
|
function truncateUtf8(text, maxBytes) {
|
|
13449
13531
|
let bytes = 0;
|
|
13450
13532
|
let out = "";
|
|
@@ -13460,7 +13542,7 @@ function truncateUtf8(text, maxBytes) {
|
|
|
13460
13542
|
import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
|
|
13461
13543
|
import {
|
|
13462
13544
|
createReadStream as createReadStream3,
|
|
13463
|
-
existsSync as
|
|
13545
|
+
existsSync as existsSync9,
|
|
13464
13546
|
lstatSync as lstatSync2,
|
|
13465
13547
|
mkdirSync as mkdirSync5,
|
|
13466
13548
|
readdirSync as readdirSync5,
|
|
@@ -13521,7 +13603,7 @@ function hasFrameFiles(dir) {
|
|
|
13521
13603
|
function lookupCacheEntry(rootDir, input) {
|
|
13522
13604
|
const keyHash = computeCacheKey(input);
|
|
13523
13605
|
const dir = join12(rootDir, cacheEntryDirName(keyHash));
|
|
13524
|
-
const complete =
|
|
13606
|
+
const complete = existsSync9(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
13525
13607
|
return { entry: { dir, keyHash }, hit: complete };
|
|
13526
13608
|
}
|
|
13527
13609
|
function partialCacheEntryDir(entry) {
|
|
@@ -13532,7 +13614,7 @@ function isTargetExistsRenameError(err) {
|
|
|
13532
13614
|
return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
|
|
13533
13615
|
}
|
|
13534
13616
|
function adoptPublishedWinner(entry, partialDir) {
|
|
13535
|
-
if (!
|
|
13617
|
+
if (!existsSync9(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
|
|
13536
13618
|
removeDir(partialDir);
|
|
13537
13619
|
return { dir: entry.dir, published: true };
|
|
13538
13620
|
}
|
|
@@ -13768,10 +13850,13 @@ var SDR_TO_HDR_COLORSPACE_FILTER = "colorspace=all=bt2020:iall=bt709:range=tv";
|
|
|
13768
13850
|
var HDR_TO_SDR_ZSCALE_TRANSFORM_KEY = "hdr2sdr-hable-srgb";
|
|
13769
13851
|
var HDR_TO_SDR_VIDEOTOOLBOX_TRANSFORM_KEY = "hdr2sdr-videotoolbox-hdr";
|
|
13770
13852
|
var SDR_CANVAS_PASSTHROUGH_FILTER = "setparams=color_primaries=bt709:color_trc=iec61966-2-1";
|
|
13853
|
+
function shownBoxKey(box) {
|
|
13854
|
+
return box && `shown-${Math.ceil(box.width)}x${Math.ceil(box.height)}`;
|
|
13855
|
+
}
|
|
13771
13856
|
function halveToCoverScaleFilter(box) {
|
|
13772
13857
|
const fit = `max(${Math.ceil(box.width)}/iw\\,${Math.ceil(box.height)}/ih)`;
|
|
13773
13858
|
const halvings = `floor(log(1/${fit})/log(2))`;
|
|
13774
|
-
const side = (dim) => `if(
|
|
13859
|
+
const side = (dim) => `if(lte(${fit}\\,0.5)\\,2*ceil(${dim}/pow(2\\,${halvings})/2)\\,${dim})`;
|
|
13775
13860
|
return `scale=w=${side("iw")}:h=${side("ih")}:flags=area+accurate_rnd`;
|
|
13776
13861
|
}
|
|
13777
13862
|
var SDR_JPEG_AS_BT601_FULL_RANGE_FILTER = "scale=flags=neighbor+accurate_rnd,format=gbrp,scale=out_color_matrix=bt601:out_range=pc:flags=neighbor,format=yuv420p";
|
|
@@ -14212,7 +14297,7 @@ function undoTickRoundingOnTheSourceFrameGrid(seek, lead, sourceFps) {
|
|
|
14212
14297
|
`setpts=if(isnan(FR)\\,PTS\\,(${lead}+round(${sinceFileStart}*FR)/FR-${seek})/TB)`
|
|
14213
14298
|
];
|
|
14214
14299
|
}
|
|
14215
|
-
var EXTRACTION_SLOTS = Math.max(1, Math.floor(
|
|
14300
|
+
var EXTRACTION_SLOTS = Math.max(1, Math.floor(usableCpuCount() / 2));
|
|
14216
14301
|
var inExtractionSlot = createConcurrencyLimit(EXTRACTION_SLOTS);
|
|
14217
14302
|
var TAIL_PROBE_SLOTS = Math.max(1, Number(process.env.HF_TAIL_PROBE_SLOTS) || 16);
|
|
14218
14303
|
var inTailProbeSlot = createConcurrencyLimit(TAIL_PROBE_SLOTS);
|
|
@@ -14386,7 +14471,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
14386
14471
|
const fps = fpsToNumber(normalizedFps);
|
|
14387
14472
|
const ffmpegFps = fpsToFfmpegArg(normalizedFps);
|
|
14388
14473
|
const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
|
|
14389
|
-
if (!
|
|
14474
|
+
if (!existsSync10(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
|
|
14390
14475
|
let metadata;
|
|
14391
14476
|
try {
|
|
14392
14477
|
metadata = await extractMediaMetadata(videoPath);
|
|
@@ -15013,7 +15098,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15013
15098
|
{ onTelemetry: writeUrlDownloadTelemetry }
|
|
15014
15099
|
);
|
|
15015
15100
|
}
|
|
15016
|
-
if (!
|
|
15101
|
+
if (!existsSync10(videoPath)) {
|
|
15017
15102
|
if (!warnedSrcs.has(video.src)) {
|
|
15018
15103
|
warnedSrcs.add(video.src);
|
|
15019
15104
|
process.stderr.write(
|
|
@@ -15184,7 +15269,8 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15184
15269
|
format: work.format,
|
|
15185
15270
|
sdrToHdrTransfer: work.sdrToHdrTransfer,
|
|
15186
15271
|
toneMapHdrToSdr: work.hdrToSdrTransformKey !== void 0,
|
|
15187
|
-
finalFrameOnly: work.finalFrameOnly
|
|
15272
|
+
finalFrameOnly: work.finalFrameOnly,
|
|
15273
|
+
shownBox: options.shownBoxes?.get(work.video.id) ?? options.shownBox
|
|
15188
15274
|
};
|
|
15189
15275
|
}
|
|
15190
15276
|
function rehydratePublishedCache(work, target) {
|
|
@@ -15220,7 +15306,8 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15220
15306
|
const transformParts = [
|
|
15221
15307
|
work.sdrToHdrTransfer ? sdrToHdrTransformKey(work.sdrToHdrTransfer) : void 0,
|
|
15222
15308
|
work.hdrToSdrTransformKey,
|
|
15223
|
-
work.finalFrameOnly ? "final-frame" : void 0
|
|
15309
|
+
work.finalFrameOnly ? "final-frame" : void 0,
|
|
15310
|
+
shownBoxKey(options.shownBoxes?.get(work.video.id) ?? options.shownBox)
|
|
15224
15311
|
].filter((part) => part !== void 0);
|
|
15225
15312
|
const transform = transformParts.length > 0 ? transformParts.join("+") : void 0;
|
|
15226
15313
|
const lookup = lookupCacheEntry(cacheRootDir, {
|
|
@@ -15749,7 +15836,7 @@ var FrameLookupTable = class {
|
|
|
15749
15836
|
cleanup() {
|
|
15750
15837
|
for (const video of this.videos.values()) {
|
|
15751
15838
|
if (video.extracted.ownedByLookup) continue;
|
|
15752
|
-
if (
|
|
15839
|
+
if (existsSync10(video.extracted.outputDir)) {
|
|
15753
15840
|
rmSync5(video.extracted.outputDir, { recursive: true, force: true });
|
|
15754
15841
|
}
|
|
15755
15842
|
}
|
|
@@ -15969,6 +16056,10 @@ async function setVideoElementsVisibility(page, videoIds, visible) {
|
|
|
15969
16056
|
);
|
|
15970
16057
|
}
|
|
15971
16058
|
async function measureVideoShownBoxes(page, videoIds, times) {
|
|
16059
|
+
const ranges = await measureVideoShownBoxRanges(page, videoIds, times);
|
|
16060
|
+
return new Map(Array.from(ranges, ([id, range]) => [id, range.largest]));
|
|
16061
|
+
}
|
|
16062
|
+
async function measureVideoShownBoxRanges(page, videoIds, times) {
|
|
15972
16063
|
if (videoIds.length === 0 || times.length === 0) return /* @__PURE__ */ new Map();
|
|
15973
16064
|
const boxes = await page.evaluate(
|
|
15974
16065
|
async (ids, seekTimes, gradingAttr, gradingCanvasPrefix, groupAttr, groupTag) => {
|
|
@@ -15976,6 +16067,7 @@ async function measureVideoShownBoxes(page, videoIds, times) {
|
|
|
15976
16067
|
if (typeof hf?.seek !== "function") return [];
|
|
15977
16068
|
const waitForSeek = window.__hfWaitForSeekCompletion;
|
|
15978
16069
|
const largest = /* @__PURE__ */ new Map();
|
|
16070
|
+
const smallest = /* @__PURE__ */ new Map();
|
|
15979
16071
|
const fullSize = /* @__PURE__ */ new Set();
|
|
15980
16072
|
const gradedThroughGroup = (video) => {
|
|
15981
16073
|
const groupId = video.getAttribute(groupAttr);
|
|
@@ -15996,10 +16088,17 @@ async function measureVideoShownBoxes(page, videoIds, times) {
|
|
|
15996
16088
|
return;
|
|
15997
16089
|
}
|
|
15998
16090
|
const rect = video.getBoundingClientRect();
|
|
16091
|
+
const width = rect.width * window.devicePixelRatio;
|
|
16092
|
+
const height = rect.height * window.devicePixelRatio;
|
|
15999
16093
|
const box = largest.get(id) ?? { width: 0, height: 0 };
|
|
16000
|
-
box.width = Math.max(box.width,
|
|
16001
|
-
box.height = Math.max(box.height,
|
|
16094
|
+
box.width = Math.max(box.width, width);
|
|
16095
|
+
box.height = Math.max(box.height, height);
|
|
16002
16096
|
largest.set(id, box);
|
|
16097
|
+
if (width === 0 || height === 0) return;
|
|
16098
|
+
const least = smallest.get(id) ?? { width, height };
|
|
16099
|
+
least.width = Math.min(least.width, width);
|
|
16100
|
+
least.height = Math.min(least.height, height);
|
|
16101
|
+
smallest.set(id, least);
|
|
16003
16102
|
};
|
|
16004
16103
|
const pageHasCanvas = () => Array.from(document.querySelectorAll("canvas")).some(
|
|
16005
16104
|
(canvas) => !canvas.id.startsWith(gradingCanvasPrefix)
|
|
@@ -16010,9 +16109,10 @@ async function measureVideoShownBoxes(page, videoIds, times) {
|
|
|
16010
16109
|
if (pageHasCanvas()) return [];
|
|
16011
16110
|
for (const id of ids) measure(id);
|
|
16012
16111
|
}
|
|
16013
|
-
return Array.from(largest).filter(
|
|
16014
|
-
|
|
16015
|
-
|
|
16112
|
+
return Array.from(largest).filter(([id, box]) => !fullSize.has(id) && box.width > 0 && box.height > 0).map(([id, box]) => [
|
|
16113
|
+
id,
|
|
16114
|
+
{ largest: box, smallest: smallest.get(id) ?? box }
|
|
16115
|
+
]);
|
|
16016
16116
|
},
|
|
16017
16117
|
[...videoIds],
|
|
16018
16118
|
[...times],
|
|
@@ -16283,7 +16383,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
16283
16383
|
}
|
|
16284
16384
|
|
|
16285
16385
|
// ../engine/src/services/audioMixer.ts
|
|
16286
|
-
import { closeSync as closeSync4, existsSync as
|
|
16386
|
+
import { closeSync as closeSync4, existsSync as existsSync12, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
16287
16387
|
import { join as join17, dirname as dirname8, isAbsolute as isAbsolute2, relative as relative2 } from "path";
|
|
16288
16388
|
|
|
16289
16389
|
// ../engine/src/utils/notMediaPayload.ts
|
|
@@ -16398,12 +16498,9 @@ function clampFadesToDuration(fades, duration) {
|
|
|
16398
16498
|
return { fadeIn: fadeIn * scale, fadeOut: fadeOut * scale };
|
|
16399
16499
|
}
|
|
16400
16500
|
|
|
16401
|
-
// ../engine/src/services/audioMixer.ts
|
|
16402
|
-
import { cpus as cpus2 } from "os";
|
|
16403
|
-
|
|
16404
16501
|
// ../engine/src/services/aacEncode.ts
|
|
16405
16502
|
import { execFile as execFile3 } from "child_process";
|
|
16406
|
-
import { readFileSync as
|
|
16503
|
+
import { readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
|
|
16407
16504
|
import { dirname as dirname6, join as join14 } from "path";
|
|
16408
16505
|
var SAMPLE_RATE = 48e3;
|
|
16409
16506
|
var FRAME_SAMPLES = 1024;
|
|
@@ -16505,7 +16602,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
16505
16602
|
if (failed) return failed;
|
|
16506
16603
|
const joined = join14(dir, "joined.aac");
|
|
16507
16604
|
const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
|
|
16508
|
-
const segmentFrames = splitAdtsFrames(
|
|
16605
|
+
const segmentFrames = splitAdtsFrames(readFileSync6(path));
|
|
16509
16606
|
if (segmentFrames.length < keepTo) {
|
|
16510
16607
|
throw new Error(`AAC segment ${path} has ${segmentFrames.length} frames, needs ${keepTo}`);
|
|
16511
16608
|
}
|
|
@@ -16637,7 +16734,7 @@ function audioFailureDiagnostics(values) {
|
|
|
16637
16734
|
}
|
|
16638
16735
|
|
|
16639
16736
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
16640
|
-
import { readFileSync as
|
|
16737
|
+
import { readFileSync as readFileSync7, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
16641
16738
|
import { dirname as dirname7, join as join15 } from "path";
|
|
16642
16739
|
|
|
16643
16740
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
@@ -16760,7 +16857,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
16760
16857
|
if (!gainAt) return false;
|
|
16761
16858
|
let stagingDir;
|
|
16762
16859
|
try {
|
|
16763
|
-
const buffer =
|
|
16860
|
+
const buffer = readFileSync7(wavPath);
|
|
16764
16861
|
const layout = parseWavLayout(buffer);
|
|
16765
16862
|
if (!layout) return false;
|
|
16766
16863
|
scaleSamples(buffer, layout, gainAt);
|
|
@@ -16994,10 +17091,10 @@ function chainTailSeconds(chain, automation) {
|
|
|
16994
17091
|
// ../engine/src/services/audioFxRender.ts
|
|
16995
17092
|
import {
|
|
16996
17093
|
closeSync as closeSync3,
|
|
16997
|
-
existsSync as
|
|
17094
|
+
existsSync as existsSync11,
|
|
16998
17095
|
mkdtempSync as mkdtempSync4,
|
|
16999
17096
|
openSync as openSync3,
|
|
17000
|
-
readFileSync as
|
|
17097
|
+
readFileSync as readFileSync8,
|
|
17001
17098
|
readSync,
|
|
17002
17099
|
statSync as statSync7,
|
|
17003
17100
|
writeFileSync as writeFileSync6,
|
|
@@ -17099,7 +17196,7 @@ function readWavHeader(path) {
|
|
|
17099
17196
|
}
|
|
17100
17197
|
}
|
|
17101
17198
|
function readWav(path) {
|
|
17102
|
-
const buf =
|
|
17199
|
+
const buf = readFileSync8(path);
|
|
17103
17200
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") {
|
|
17104
17201
|
throw new AudioFxRenderError(`Not a WAV file: ${path}`);
|
|
17105
17202
|
}
|
|
@@ -17304,7 +17401,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
|
|
|
17304
17401
|
}
|
|
17305
17402
|
async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
17306
17403
|
if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
|
|
17307
|
-
if (!
|
|
17404
|
+
if (!existsSync11(inputWav)) {
|
|
17308
17405
|
throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
|
|
17309
17406
|
}
|
|
17310
17407
|
const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
|
|
@@ -17555,7 +17652,7 @@ function escapeExpressionCommas(expression) {
|
|
|
17555
17652
|
function legacyFilterScriptOptionIsUnsupported(stderr) {
|
|
17556
17653
|
return /filter_complex_script/i.test(stderr) && /(?:unrecognized option|option (?:was )?not found)/i.test(stderr);
|
|
17557
17654
|
}
|
|
17558
|
-
var inPrepareSlot = createConcurrencyLimit(Math.max(2, Math.floor(
|
|
17655
|
+
var inPrepareSlot = createConcurrencyLimit(Math.max(2, Math.floor(usableCpuCount() / 2)));
|
|
17559
17656
|
var inRemotePrepareSlot = createConcurrencyLimit(16);
|
|
17560
17657
|
var MAX_VOLUME_SEGMENTS = 32;
|
|
17561
17658
|
var VOLUME_SIMPLIFY_EPSILON = 5e-3;
|
|
@@ -17841,7 +17938,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
|
|
|
17841
17938
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
17842
17939
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
17843
17940
|
const outputDir = dirname8(outputPath);
|
|
17844
|
-
if (!
|
|
17941
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
17845
17942
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
17846
17943
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
17847
17944
|
const readsUrl = isHttpUrl(srcPath);
|
|
@@ -17987,7 +18084,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
17987
18084
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
17988
18085
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
17989
18086
|
const outputDir = dirname8(outputPath);
|
|
17990
|
-
if (!
|
|
18087
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
17991
18088
|
const args = [
|
|
17992
18089
|
"-f",
|
|
17993
18090
|
"lavfi",
|
|
@@ -18041,7 +18138,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18041
18138
|
};
|
|
18042
18139
|
}
|
|
18043
18140
|
const outputDir = dirname8(outputPath);
|
|
18044
|
-
if (!
|
|
18141
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18045
18142
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18046
18143
|
const filterParts = [];
|
|
18047
18144
|
tracks.forEach((track, i) => {
|
|
@@ -18150,7 +18247,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18150
18247
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18151
18248
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18152
18249
|
const outputDir = dirname8(outputPath);
|
|
18153
|
-
if (!
|
|
18250
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18154
18251
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18155
18252
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
18156
18253
|
return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
|
|
@@ -18377,7 +18474,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18377
18474
|
const failures = [];
|
|
18378
18475
|
const groupTracks = /* @__PURE__ */ new Map();
|
|
18379
18476
|
const groupMeta = /* @__PURE__ */ new Map();
|
|
18380
|
-
if (!
|
|
18477
|
+
if (!existsSync12(workDir)) mkdirSync7(workDir, { recursive: true });
|
|
18381
18478
|
const internalController = new AbortController();
|
|
18382
18479
|
const effectiveSignal = internalController.signal;
|
|
18383
18480
|
if (signal) {
|
|
@@ -18428,7 +18525,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18428
18525
|
return;
|
|
18429
18526
|
}
|
|
18430
18527
|
}
|
|
18431
|
-
if (!readInPlace && !
|
|
18528
|
+
if (!readInPlace && !existsSync12(srcPath)) {
|
|
18432
18529
|
failures.push({
|
|
18433
18530
|
stage: "source",
|
|
18434
18531
|
reason: "source_not_found",
|
|
@@ -18793,8 +18890,8 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18793
18890
|
}
|
|
18794
18891
|
|
|
18795
18892
|
// ../engine/src/services/parallelCoordinator.ts
|
|
18796
|
-
import {
|
|
18797
|
-
import { existsSync as
|
|
18893
|
+
import { freemem } from "os";
|
|
18894
|
+
import { existsSync as existsSync13, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
18798
18895
|
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
18799
18896
|
import { join as join19 } from "path";
|
|
18800
18897
|
import { getHeapStatistics } from "v8";
|
|
@@ -18913,7 +19010,7 @@ var MIN_WORKERS = 1;
|
|
|
18913
19010
|
var MAX_WORKER_DIAGNOSTIC_LINES = 8;
|
|
18914
19011
|
var ABSOLUTE_MAX_WORKERS = 24;
|
|
18915
19012
|
function defaultSafeMaxWorkers() {
|
|
18916
|
-
return Math.max(6, Math.min(16, Math.floor(
|
|
19013
|
+
return Math.max(6, Math.min(16, Math.floor(usableCpuCount() / 8)));
|
|
18917
19014
|
}
|
|
18918
19015
|
var MIN_FRAMES_PER_WORKER = 30;
|
|
18919
19016
|
function shouldDisableBrowserPoolForParallelWorker({
|
|
@@ -18953,7 +19050,7 @@ function formatWorkerFailure(result) {
|
|
|
18953
19050
|
return `${base}; diagnostics: ${diagnostics}`;
|
|
18954
19051
|
}
|
|
18955
19052
|
function computeWorkerSizing(totalFrames, requested, config) {
|
|
18956
|
-
const cpuCount =
|
|
19053
|
+
const cpuCount = usableCpuCount();
|
|
18957
19054
|
const totalMemoryMb = getSystemTotalMb();
|
|
18958
19055
|
const heapLimitMb = Math.round(getHeapStatistics().heap_size_limit / (1024 * 1024));
|
|
18959
19056
|
const appleDisk = config?.appleGpuDiskCapture === true;
|
|
@@ -19285,7 +19382,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
19285
19382
|
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
|
|
19286
19383
|
const startTime = Date.now();
|
|
19287
19384
|
let framesCaptured = 0;
|
|
19288
|
-
if (!
|
|
19385
|
+
if (!existsSync13(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
19289
19386
|
let session = null;
|
|
19290
19387
|
let perf;
|
|
19291
19388
|
const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
|
|
@@ -19540,11 +19637,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
19540
19637
|
return results;
|
|
19541
19638
|
}
|
|
19542
19639
|
async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
19543
|
-
if (!
|
|
19640
|
+
if (!existsSync13(outputDir)) mkdirSync8(outputDir, { recursive: true });
|
|
19544
19641
|
let totalFrames = 0;
|
|
19545
19642
|
const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
|
|
19546
19643
|
for (const task of sortedTasks) {
|
|
19547
|
-
if (!
|
|
19644
|
+
if (!existsSync13(task.outputDir)) {
|
|
19548
19645
|
continue;
|
|
19549
19646
|
}
|
|
19550
19647
|
const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
|
|
@@ -19564,7 +19661,7 @@ async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
|
19564
19661
|
}
|
|
19565
19662
|
function getSystemResources() {
|
|
19566
19663
|
return {
|
|
19567
|
-
cpuCores:
|
|
19664
|
+
cpuCores: hostCpuCount(),
|
|
19568
19665
|
totalMemoryMB: getSystemTotalMb(),
|
|
19569
19666
|
freeMemoryMB: Math.round(freemem() / (1024 * 1024)),
|
|
19570
19667
|
recommendedWorkers: calculateOptimalWorkers(1e3)
|
|
@@ -19574,7 +19671,7 @@ function getSystemResources() {
|
|
|
19574
19671
|
// ../engine/src/services/fileServer.ts
|
|
19575
19672
|
import { Hono } from "hono";
|
|
19576
19673
|
import { serve } from "@hono/node-server";
|
|
19577
|
-
import { readFileSync as
|
|
19674
|
+
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants } from "fs";
|
|
19578
19675
|
import { join as join20, extname as extname3 } from "path";
|
|
19579
19676
|
var MIME_TYPES = {
|
|
19580
19677
|
".html": "text/html; charset=utf-8",
|
|
@@ -19616,7 +19713,7 @@ function readRegularFile(filePath) {
|
|
|
19616
19713
|
}
|
|
19617
19714
|
try {
|
|
19618
19715
|
if (!fstatSync(fd).isFile()) return null;
|
|
19619
|
-
return
|
|
19716
|
+
return readFileSync9(fd);
|
|
19620
19717
|
} finally {
|
|
19621
19718
|
closeSync5(fd);
|
|
19622
19719
|
}
|
|
@@ -20079,6 +20176,7 @@ async function launchHdrBrowser(width, height) {
|
|
|
20079
20176
|
...ownedLaunchOptions(),
|
|
20080
20177
|
headless: false,
|
|
20081
20178
|
executablePath: chromePath,
|
|
20179
|
+
env: buildChromeLaunchEnv(),
|
|
20082
20180
|
args: withHyperframesBrowserMarker(buildHdrChromeArgs(width, height))
|
|
20083
20181
|
});
|
|
20084
20182
|
const page = await browser.newPage();
|
|
@@ -20135,6 +20233,7 @@ export {
|
|
|
20135
20233
|
oneProcessOverPipe,
|
|
20136
20234
|
isOneProcessOverPipe,
|
|
20137
20235
|
sandboxDeniedRemediation,
|
|
20236
|
+
launchWithChromeSandboxFallback,
|
|
20138
20237
|
BrowserLeasePool,
|
|
20139
20238
|
setHostHandlesSigint,
|
|
20140
20239
|
resolveHeadlessShellPath,
|
|
@@ -20334,6 +20433,7 @@ export {
|
|
|
20334
20433
|
hideVideoElements,
|
|
20335
20434
|
showVideoElements,
|
|
20336
20435
|
measureVideoShownBoxes,
|
|
20436
|
+
measureVideoShownBoxRanges,
|
|
20337
20437
|
queryVideoElementBounds,
|
|
20338
20438
|
queryElementStacking,
|
|
20339
20439
|
NOT_MEDIA_PAYLOAD,
|