hyperframes 0.9.40 → 0.9.42
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-CINIFM3A.js → add-PVPFYFWR.js} +14 -14
- package/dist/{agentPromptGenerator-VRVQ3VH5.js → agentPromptGenerator-QIMZTO5D.js} +8 -8
- package/dist/{animatedGifPrep-J2BG46YH.js → animatedGifPrep-X5USFLFI.js} +11 -7
- package/dist/api.js +37 -36
- package/dist/{appHistory-VOZOEPVK.js → appHistory-EAQ52L6X.js} +2 -2
- package/dist/{asset-BYUSN2UY.js → asset-OLENSTIE.js} +2 -2
- package/dist/{assetCataloger-7UA5NR7T.js → assetCataloger-VJATOUSB.js} +9 -9
- package/dist/{audio-UP4NI7ZS.js → audio-SMF3FNRY.js} +14 -14
- package/dist/{auth-DF3VJGPG.js → auth-IJYZGRVZ.js} +2 -2
- package/dist/{autoUpdate-KUI4A4XC.js → autoUpdate-YVVEXRSE.js} +2 -2
- package/dist/{avatars-SSEP4UB2.js → avatars-MSL7UJ64.js} +11 -11
- package/dist/{backgroundChecks-FPOGQLKV.js → backgroundChecks-SKGX7GNE.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-AOK23JS5.js → batchRender-C2EGSMHQ.js} +3 -3
- package/dist/{beats-MDO46DI7.js → beats-2CWCAPKW.js} +7 -7
- package/dist/{benchmark-BYAWKSMT.js → benchmark-Q3WKGMQQ.js} +8 -8
- package/dist/{billing-MJ2FSQBS.js → billing-DTOYQ5R2.js} +13 -13
- package/dist/{browser-LCKW2H2H.js → browser-FDRUHM3D.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-VXJ6DI5C.js → bundleWithLocalizedFonts-N6PX6WPL.js} +1 -1
- package/dist/{capture-2DFPOUKC.js → capture-OLD6MUVQ.js} +19 -19
- package/dist/{capture-ZY2HQ4JE.js → capture-WILR2NAA.js} +4 -4
- package/dist/{captureCompositionFrame-VWEMBANA.js → captureCompositionFrame-CJYFKZYF.js} +14 -14
- package/dist/{captureFile-MRDRPMNA.js → captureFile-B5SMYIB6.js} +2 -2
- package/dist/{catalog-XOP4FDBE.js → catalog-BGG77HK7.js} +14 -14
- package/dist/{catch-up-ENJJ6BRJ.js → catch-up-LSQX5YYD.js} +8 -8
- package/dist/{check-KP5HFH3Z.js → check-W5AYQG7Q.js} +45 -45
- package/dist/{checkAudio-7NR5ITUO.js → checkAudio-ENWHXBQQ.js} +10 -10
- package/dist/{checkBrowser-OUVQNC2B.js → checkBrowser-NXSZARNS.js} +38 -38
- package/dist/{chunk-WON7YJ26.js → chunk-2AMRYB3K.js} +1 -1
- package/dist/{chunk-PJJYSNCU.js → chunk-2CMUWGDP.js} +3 -3
- package/dist/{chunk-7LFQERBK.js → chunk-2ERBA45F.js} +1 -1
- package/dist/{chunk-GXSP4OXY.js → chunk-2NFWRLAI.js} +2 -2
- package/dist/{chunk-6EHXBROO.js → chunk-2NLGEZO2.js} +58 -19
- package/dist/{chunk-QOT4CBQH.js → chunk-2OEBLOKC.js} +2 -2
- package/dist/{chunk-2RU55JQF.js → chunk-2RK7CWEE.js} +1 -1
- package/dist/{chunk-HM576JJZ.js → chunk-2S7VBKVL.js} +4 -4
- package/dist/{chunk-GFO7RVL5.js → chunk-2SGMXRVW.js} +1 -1
- package/dist/{chunk-OSUUML2G.js → chunk-36OFSWMN.js} +1 -1
- package/dist/chunk-37NCCCVV.js +111 -0
- package/dist/{chunk-7ENTZPDT.js → chunk-3PPOHWG6.js} +2 -2
- package/dist/{chunk-NAV6JHXQ.js → chunk-3XROEV2T.js} +1 -1
- package/dist/{chunk-7PNEGTGQ.js → chunk-3Z5BDNQS.js} +3 -3
- package/dist/chunk-47JAY366.js +44 -0
- package/dist/{chunk-7XBH54XL.js → chunk-4LQH2H42.js} +2 -2
- package/dist/chunk-4QFWV5GQ.js +59 -0
- package/dist/{chunk-NKDCZZ56.js → chunk-55FOZZL4.js} +1 -1
- package/dist/{chunk-CHSVYMWX.js → chunk-76XYWTJF.js} +6 -2
- package/dist/{chunk-Y3KIYRKR.js → chunk-7DWGDF5O.js} +5 -5
- package/dist/{chunk-IAC6OXTH.js → chunk-7LH55FQU.js} +2 -2
- package/dist/{chunk-WHV5LYX2.js → chunk-AI7BGWQQ.js} +1 -1
- package/dist/{chunk-W4VUUHRX.js → chunk-B3HOHFTC.js} +11 -11
- package/dist/{chunk-BAZFOF4F.js → chunk-C3RW7LUY.js} +3 -3
- package/dist/{chunk-O56K66KH.js → chunk-CKHKLO66.js} +1 -1
- package/dist/{chunk-UNSTX2JK.js → chunk-COYSN3BZ.js} +43 -72
- package/dist/{chunk-MQ6L7EFK.js → chunk-D5PHHIR6.js} +6 -6
- package/dist/{chunk-Q2HLPZ3E.js → chunk-D6Z45XIV.js} +1 -1
- package/dist/{chunk-BHSQSWN6.js → chunk-DF5EKSIA.js} +1 -1
- package/dist/{chunk-7I4M4TZZ.js → chunk-DSOKEKOU.js} +2 -2
- package/dist/{chunk-XESQFKYS.js → chunk-EAV3UWJV.js} +22 -22
- package/dist/{chunk-H5LYLV57.js → chunk-EJFCDDNU.js} +3 -3
- package/dist/{chunk-X73RI4GQ.js → chunk-EUB2PYYJ.js} +1 -1
- package/dist/{chunk-FF6T5VPF.js → chunk-F3XIVMDU.js} +1 -1
- package/dist/{chunk-WYMQ5GX4.js → chunk-F52RMX7I.js} +2 -2
- package/dist/{chunk-W2UT7HGW.js → chunk-FCQX4P4A.js} +2 -2
- package/dist/{chunk-HEBFD6W5.js → chunk-FP3D7WA2.js} +2 -2
- package/dist/{chunk-ZEBDEOWL.js → chunk-G3JPQVAA.js} +4 -4
- package/dist/{chunk-3AYICWTZ.js → chunk-GQR4IMJS.js} +1 -1
- package/dist/{chunk-SZMNEXGZ.js → chunk-H6ZSMFBC.js} +2 -2
- package/dist/{chunk-FGIDITGG.js → chunk-HCXEKCOW.js} +188 -99
- package/dist/{chunk-R5OKQT4Y.js → chunk-HYTEVW4D.js} +3 -3
- package/dist/{chunk-IDWBFK2R.js → chunk-IBUD74YN.js} +2 -2
- package/dist/{chunk-B7GOS2BL.js → chunk-IIB4RKOO.js} +1 -1
- package/dist/{chunk-FPRP7VHC.js → chunk-IYLROLKC.js} +3 -3
- package/dist/chunk-J6MRFWGW.js +5069 -0
- package/dist/{chunk-7FR2H7Z2.js → chunk-JEFZ5T3L.js} +4 -4
- package/dist/{chunk-WWY4UHIQ.js → chunk-JZM4IYTK.js} +1 -1
- package/dist/{chunk-FUWRL2U7.js → chunk-KLJTYDE6.js} +1 -1
- package/dist/{chunk-DUF5XI6C.js → chunk-KNRBPQWD.js} +4 -4
- package/dist/{chunk-K3RMYCBY.js → chunk-KW2H7CPF.js} +3 -3
- package/dist/chunk-L3V2U3B7.js +34 -0
- package/dist/{chunk-5UUAM64Q.js → chunk-LB4SWKKT.js} +3 -3
- package/dist/{chunk-WE42NVH7.js → chunk-LEIR7IDJ.js} +102 -0
- package/dist/{chunk-GZ3RJIMT.js → chunk-LRAPJ2Z3.js} +10 -8
- package/dist/{chunk-A4JVQ2WS.js → chunk-LS4SHCI6.js} +1 -1
- package/dist/{chunk-5Q6Z5Q55.js → chunk-LZGTFAA7.js} +2 -2
- package/dist/{chunk-X5BRDEOM.js → chunk-MBOCWE3P.js} +13 -0
- package/dist/{chunk-IH7AT4IJ.js → chunk-MID6NR7Y.js} +2 -2
- package/dist/{chunk-KDF2ZKGV.js → chunk-MWCD72EP.js} +8 -8
- package/dist/{chunk-C7ETI3LF.js → chunk-NJL7AWMD.js} +34 -6
- package/dist/{chunk-OEXJEQ2Q.js → chunk-NLXIVOO4.js} +15 -15
- package/dist/{chunk-HMTQB5RY.js → chunk-NY3TN4NK.js} +13 -13
- package/dist/{chunk-OMOBBMMU.js → chunk-O32NKLL7.js} +2 -2
- package/dist/{chunk-SG47ZZKU.js → chunk-OA5UPXOT.js} +1 -1
- package/dist/{chunk-6AJG7TMS.js → chunk-OPJRCUK5.js} +3 -5
- package/dist/{chunk-6AAW6RSI.js → chunk-OQULQLBF.js} +1 -1
- package/dist/{chunk-3MYKWUPM.js → chunk-OT6L5A2C.js} +1 -1
- package/dist/{chunk-6HGM6EIZ.js → chunk-PIVPTSED.js} +2 -2
- package/dist/{chunk-QWTVUKML.js → chunk-PKR23IEK.js} +1 -1
- package/dist/{chunk-PXS43DO4.js → chunk-PX3WK4GO.js} +3 -3
- package/dist/{chunk-MILMDRQF.js → chunk-PYSZIWKB.js} +22 -10
- package/dist/{chunk-PSDEAVFP.js → chunk-Q7BIVJBN.js} +3 -3
- package/dist/{chunk-SZUO4O74.js → chunk-QAB7H2A2.js} +32 -9
- package/dist/{chunk-YGZ4MSTR.js → chunk-QE2G4RUL.js} +1 -1
- package/dist/{chunk-ELAEQWIM.js → chunk-QJ2HNOVM.js} +1 -1
- package/dist/{chunk-2KM2KZN7.js → chunk-QOQACWDO.js} +6 -6
- package/dist/{chunk-VY5MACX3.js → chunk-QPYRLL4G.js} +3 -3
- package/dist/{chunk-Z7VKBKC3.js → chunk-R2WSTO26.js} +1 -1
- package/dist/{chunk-TDFC3DJS.js → chunk-R5RYKJXM.js} +2 -2
- package/dist/{chunk-M7CDZ4QO.js → chunk-RASXOLWL.js} +5 -5
- package/dist/{chunk-FF5E2JSR.js → chunk-RXP6C4PA.js} +2 -2
- package/dist/{chunk-ZA7BJMAO.js → chunk-SCT6GWIX.js} +7 -7
- package/dist/{chunk-JDBN3VWJ.js → chunk-SDYE6O36.js} +1 -1
- package/dist/{chunk-WCSGSWKA.js → chunk-SI5EZFPE.js} +1 -1
- package/dist/{chunk-OFTNQTBB.js → chunk-SQO6K7DL.js} +1 -1
- package/dist/{chunk-YFC5II7G.js → chunk-SZGQU7EB.js} +24 -3
- package/dist/{chunk-XZ7SFEZ6.js → chunk-TI5OIHLU.js} +9 -35
- package/dist/{chunk-ANVDINSV.js → chunk-TPFKGC3K.js} +1 -1
- package/dist/{chunk-YNCH5ORY.js → chunk-TVU2LN3O.js} +1 -1
- package/dist/{chunk-GXCPNQVE.js → chunk-U52MVFYY.js} +2 -2
- package/dist/{chunk-WBLLTN3G.js → chunk-U6XXSW4T.js} +1 -1
- package/dist/{chunk-P2SE46A7.js → chunk-U76XF5M3.js} +90 -28
- package/dist/{chunk-TPTJJ5WX.js → chunk-U7BEIMDM.js} +3 -3
- package/dist/{chunk-35CWJAQB.js → chunk-UNGZUDSY.js} +3 -3
- package/dist/{chunk-PEKY7VW5.js → chunk-UWOTEN5M.js} +1 -1
- package/dist/{chunk-K7GNMXXH.js → chunk-VLR5SHKE.js} +3 -3
- package/dist/{chunk-ELH3JNUD.js → chunk-VUQKOT2H.js} +1 -1
- package/dist/{chunk-JUAD7OVP.js → chunk-WEUSJHRG.js} +2 -2
- package/dist/{chunk-VKU2QCUA.js → chunk-WHCWZVYT.js} +11 -11
- package/dist/{chunk-YROKK4GN.js → chunk-WRVQUCIT.js} +2 -2
- package/dist/{chunk-VXVDZFZL.js → chunk-YKGEUAG5.js} +1 -1
- package/dist/{chunk-I3ODDDS3.js → chunk-YKWXBWMC.js} +7 -7
- package/dist/{chunk-ZEFCUEQC.js → chunk-YRZHOWVU.js} +1 -1
- package/dist/{chunk-4HOPC7CB.js → chunk-YSXXCHAK.js} +1 -1
- package/dist/{chunk-2YW3IXOB.js → chunk-YZF2MCCQ.js} +1 -1
- package/dist/{chunk-J466WOMZ.js → chunk-ZBSZZKS3.js} +1 -1
- package/dist/{chunk-YC456XWL.js → chunk-ZRGFHCYF.js} +1 -1
- package/dist/{clean-6V25J7PR.js → clean-H2OTSR4C.js} +21 -21
- package/dist/cli.js +64 -64
- package/dist/{cloud-DDKS5TPQ.js → cloud-FLDTOMLP.js} +4 -4
- package/dist/{cloud-SXXNSICW.js → cloud-JIG76GAH.js} +2 -2
- package/dist/{cloudrun-FRHLSVF5.js → cloudrun-G4QTF662.js} +4 -4
- package/dist/{compare-SXFR6HQK.js → compare-MGSLRTS6.js} +37 -37
- package/dist/{compiler-RJT4R7PG.js → compiler-YRP76MBZ.js} +2 -2
- package/dist/{component-J5JMDDQQ.js → component-KNVAFI37.js} +3 -3
- package/dist/{compositions-RRSINF2E.js → compositions-PKCCDB2K.js} +11 -11
- package/dist/{contactSheet-3YTXO7U5.js → contactSheet-KS5QZYKO.js} +3 -3
- package/dist/{curve-PFD4ICD7.js → curve-NY4WYFAU.js} +11 -11
- package/dist/{cuts-WNAHOCXF.js → cuts-ASA3JFOQ.js} +12 -12
- package/dist/{delete-4UNVH752.js → delete-UL6ENR7H.js} +4 -4
- package/dist/{deploy-ZEQ3U3JZ.js → deploy-Y4QBJZ6H.js} +2 -2
- package/dist/{describeProject-MEPHUQ2G.js → describeProject-UACCDNWT.js} +8 -8
- package/dist/{destroy-24YRWO4T.js → destroy-4D4F3ZO2.js} +2 -2
- package/dist/{deterministicFonts-UDNPRDYM.js → deterministicFonts-TEZOZIED.js} +2 -2
- package/dist/{diff-IUDSLSYF.js → diff-SIYAISOM.js} +33 -33
- package/dist/{dist-QOMGEB5V.js → dist-LR5GJ5FN.js} +2 -2
- package/dist/{dist-Y236BC2V.js → dist-UK4LEEYP.js} +17 -16
- package/dist/{doctor-PN4B4NPJ.js → doctor-WPOQLSKK.js} +12 -12
- package/dist/{energy-DWEKGDMY.js → energy-XBPOWNQG.js} +12 -12
- package/dist/{events-CMEI7ZYJ.js → events-RW32OWJ3.js} +13 -13
- package/dist/{events-W77ICXZH.js → events-SNMOQWPL.js} +5 -5
- package/dist/{events-TW3F2CFA.js → events-WCQPGLGF.js} +2 -2
- package/dist/{execute-7GTLQ5A5.js → execute-NQIUYJJR.js} +30 -27
- package/dist/{extract-E3LJSSXG.js → extract-B6GLSKQD.js} +12 -12
- package/dist/{face-MJR47R2G.js → face-CHUPD3P2.js} +13 -13
- package/dist/{feedback-NVJF77N4.js → feedback-5K6OBADI.js} +21 -12
- package/dist/{ffmpeg-ZXUKTYNE.js → ffmpeg-TP4HQ6HA.js} +7 -7
- package/dist/{figma-QJFJIBCQ.js → figma-3HZU5QHV.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -12
- package/dist/{frames-LKJTBJKX.js → frames-7WXYL7SM.js} +14 -14
- package/dist/{generate-5QCVOOYL.js → generate-TNCO7TVJ.js} +23 -23
- package/dist/{get-FGKTI7LF.js → get-GDBAMMOT.js} +4 -4
- package/dist/{gpuPolicy-KACV56OI.js → gpuPolicy-HB6WGG2O.js} +7 -7
- package/dist/{grade-compare-E32SXZI3.js → grade-compare-ZSLOCFCO.js} +36 -36
- package/dist/{heifImagePrep-FW2PBVTL.js → heifImagePrep-OEVEJGGI.js} +12 -8
- package/dist/{help-QXYCL3OI.js → help-743LD2LL.js} +1 -1
- package/dist/{history-DIJXRVD4.js → history-SSJR4WYF.js} +11 -12
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-2NH2HFHS.js → info-JRJZJB3C.js} +13 -13
- package/dist/{init-TDAD5PFH.js → init-ZVORQQEV.js} +29 -29
- package/dist/{ink-B2QLMICZ.js → ink-CQQZCRCK.js} +12 -12
- package/dist/{inspect-QK2UELAR.js → inspect-RDVDB6VK.js} +36 -36
- package/dist/{installer-B22PSO7L.js → installer-4U3RIUQT.js} +6 -6
- package/dist/{keyframes-R65XF4ZF.js → keyframes-6WG4W5PA.js} +8 -8
- package/dist/{lambda-ISOYKJAE.js → lambda-XUIZE3IE.js} +12 -12
- package/dist/{layout-WNX47H5T.js → layout-4SJQC47M.js} +36 -36
- package/dist/{lint-6VV5W7MX.js → lint-G65N7CS2.js} +8 -8
- package/dist/{list-ASCOS7R4.js → list-W5MOGWU2.js} +4 -4
- package/dist/{localPage-OFOE3Z76.js → localPage-WVE6CSG6.js} +8 -8
- package/dist/{login-72E4IAY3.js → login-FFBUJDH5.js} +4 -4
- package/dist/{look-WU4BTUZV.js → look-MG4NOSAA.js} +12 -12
- package/dist/{manager-37JEHA7B.js → manager-25RJ4IZN.js} +2 -2
- package/dist/{manager-44JOXR64.js → manager-X624GNOX.js} +8 -8
- package/dist/{measure-T676OQ6X.js → measure-YVHJ5JCK.js} +11 -11
- package/dist/{media-treatment-ZMBEB72R.js → media-treatment-OUB6IV3L.js} +13 -13
- package/dist/{media-use-5TT4ODRL.js → media-use-L5NFAUJD.js} +3 -3
- package/dist/{models-CH2Y57QE.js → models-MDWYHZM3.js} +11 -11
- package/dist/{motionShot-5L7DSRVH.js → motionShot-RNPMBSTK.js} +18 -18
- package/dist/{normalize-audio-BFQMEMQU.js → normalize-audio-LYB5EBPG.js} +9 -10
- package/dist/{open-3JT6RB76.js → open-SKRLVSHT.js} +16 -16
- package/dist/{parakeetRunner-5YX7DGHI.js → parakeetRunner-P7QWHUUX.js} +13 -13
- package/dist/{pipeline-X3TJ4FFU.js → pipeline-ZSOXUBMP.js} +10 -10
- package/dist/{plan-U5IN4KCM.js → plan-AY5LML5J.js} +20 -20
- package/dist/{play-4F2JWLUS.js → play-KRUS44CS.js} +26 -25
- package/dist/{preflight-SUCCQA6E.js → preflight-H6R6BRIY.js} +9 -9
- package/dist/{present-GG6XMNGN.js → present-X6SPEAVS.js} +20 -19
- package/dist/{preview-U7O5AE6H.js → preview-EJ5RKQ6T.js} +22 -22
- package/dist/{probe-OLNWZPAR.js → probe-MDN4Z4YK.js} +12 -12
- package/dist/{producer-PROSAQ4G.js → producer-EV42W3WA.js} +1 -1
- package/dist/{projectConfig-LNZGBUHT.js → projectConfig-V2J4KDMJ.js} +9 -9
- package/dist/{publication-L45B2SRC.js → publication-NMKES2LT.js} +4 -4
- package/dist/{publish-NSAIYT5K.js → publish-RN2EFSW4.js} +41 -18
- package/dist/{remove-background-JPLC5RRF.js → remove-background-GMNDLIUE.js} +11 -11
- package/dist/{render-YAM4UR57.js → render-LWXMKOPY.js} +53 -35
- package/dist/{render-WXKMFGU7.js → render-MK6J4EE6.js} +5 -5
- package/dist/{render-GHWVNZDO.js → render-YU4CND2E.js} +44 -42
- package/dist/{render-batch-6YQRAYVI.js → render-batch-XWJCSVTL.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-7H5EU7OZ.js → resolver-UTP745MM.js} +6 -6
- package/dist/{reverse-6BB6EZNU.js → reverse-JCFSUS6E.js} +1 -1
- package/dist/{screenshotCapture-5ZRVBDOW.js → screenshotCapture-VYNS5DS7.js} +10 -10
- package/dist/{service-TWNQE2ZV.js → service-QXTVJJWP.js} +11 -11
- package/dist/{share-B6IQ2RQ2.js → share-7JCQNISA.js} +14 -14
- package/dist/{sherpa-6UIVWU4O.js → sherpa-URMLZWQ5.js} +12 -12
- package/dist/{skills-XVL75V4C.js → skills-YOAI5LWU.js} +8 -8
- package/dist/{skillsUpdateCheck-Q3YNHO67.js → skillsUpdateCheck-PPNYOFHU.js} +3 -3
- package/dist/{snapshot-5VIARFHF.js → snapshot-D3EUIPRJ.js} +47 -47
- package/dist/{src-J7AMNTAJ.js → src-NPNKI43D.js} +8 -6
- package/dist/{src-ZCS7ZTJD.js → src-UELRNQDE.js} +14 -11
- package/dist/{start-I6YUCUFO.js → start-FO7YCAHK.js} +21 -21
- package/dist/{staticProjectServer-V33FZRZK.js → staticProjectServer-P4IN7EVB.js} +23 -23
- package/dist/{status-YKZL6QBI.js → status-TJIUQ7UM.js} +13 -13
- package/dist/studio/assets/{codec-BPK_2CLL.js → codec-CKqLGYc6.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D7qTTDIp.js → hyperframes-player-DoEYqOIa.js} +1 -1
- package/dist/studio/assets/{index-CdA00Ybn.js → index-DLyQ91Ek.js} +166 -166
- package/dist/studio/assets/{index-QS-DuxAU.js → index-s9iqoWnr.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-Byzz98Gb.js → pausedVideoDecoder-B-ReRg6i.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-XHUVUKMT.js → studio-api-J3E5XKFX.js} +17 -16
- package/dist/{studioServer-T2AXTLZV.js → studioServer-TQTSD2GL.js} +66 -66
- package/dist/{sync-5ADGNCLV.js → sync-MVK2CEDO.js} +12 -12
- package/dist/{synthesize-7DD5JV36.js → synthesize-4WZGBE2D.js} +2 -2
- package/dist/{telemetry-XKYQ7ZY7.js → telemetry-SPKSMX53.js} +5 -5
- package/dist/{templates-CBUDSRR3.js → templates-LN35KOGT.js} +13 -13
- package/dist/{timeline-PWQYPOJH.js → timeline-TL55I5ZW.js} +21 -21
- package/dist/{tokens-IIG72TAJ.js → tokens-HWMGSCUI.js} +2 -2
- package/dist/{transcribe-OEKSCXNU.js → transcribe-M3RZA7RF.js} +26 -26
- package/dist/{transcribe-ZLCXV7IN.js → transcribe-PNZJBDYF.js} +10 -10
- package/dist/{tts-SOSATBP4.js → tts-UFA5UHA6.js} +1 -1
- package/dist/{update-LEXBXKSR.js → update-UNVM4CFJ.js} +10 -10
- package/dist/{updateCheck-T2CDSG4E.js → updateCheck-YCIYGSQ4.js} +2 -2
- package/dist/{upgrade-6Z5R46WY.js → upgrade-DOZUP7JR.js} +4 -4
- package/dist/{urlDownloader-HE5TQMD5.js → urlDownloader-EWUKAG7C.js} +6 -6
- package/dist/{validate-R75MRH3B.js → validate-YX233KFG.js} +28 -28
- package/dist/{video-V4EI7NSB.js → video-ZQCA2HAZ.js} +9 -9
- package/dist/{voices-MZL7K4IM.js → voices-L67GETVN.js} +21 -21
- package/dist/warmCheck.js +45 -45
- package/package.json +3 -3
- package/dist/chunk-CJAYLJIZ.js +0 -60
- package/dist/chunk-EQKDWQWR.js +0 -5053
- package/dist/chunk-HOIEN7O4.js +0 -31
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
removeScratch,
|
|
22
22
|
renameWithRetry,
|
|
23
23
|
renameWithRetryAsync
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MBOCWE3P.js";
|
|
25
25
|
import {
|
|
26
26
|
DISTRIBUTED_FPS,
|
|
27
27
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
resolveAuthoredTimingWindow,
|
|
52
52
|
toFps,
|
|
53
53
|
validateVariables
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-2RK7CWEE.js";
|
|
55
55
|
import {
|
|
56
56
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
57
57
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
fxAutomationTarget,
|
|
76
76
|
gainedVolume,
|
|
77
77
|
gainedVolumePoints,
|
|
78
|
+
htmlInCanvasForm,
|
|
78
79
|
injectScriptsIntoHtml,
|
|
79
80
|
isAudibleVideoElement,
|
|
80
81
|
isBentSegment,
|
|
@@ -94,18 +95,19 @@ import {
|
|
|
94
95
|
sourceTimeAt,
|
|
95
96
|
timeAtSourceTime,
|
|
96
97
|
volumeSegmentSampleCount
|
|
97
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-J6MRFWGW.js";
|
|
98
99
|
import {
|
|
99
100
|
withHyperframesBrowserMarker
|
|
100
101
|
} from "./chunk-K4MJX7SR.js";
|
|
101
102
|
import {
|
|
102
103
|
browserPathFromEnv,
|
|
104
|
+
buildChromeLaunchEnv,
|
|
103
105
|
chromeMajorCeiling,
|
|
104
106
|
compareBrowserVersionsDescending,
|
|
105
107
|
exceedsChromeCeiling,
|
|
106
108
|
isManagedChromeDir,
|
|
107
109
|
pickSharedShell
|
|
108
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-LEIR7IDJ.js";
|
|
109
111
|
import {
|
|
110
112
|
resolveReferencedStart
|
|
111
113
|
} from "./chunk-TVSUPOOH.js";
|
|
@@ -826,6 +828,7 @@ async function diagnoseChromeStartup(executablePath, args, options = {}) {
|
|
|
826
828
|
return await new Promise((resolve2) => {
|
|
827
829
|
let stderr = "";
|
|
828
830
|
const child = spawn(executablePath, startupArgs(args, profile), {
|
|
831
|
+
env: buildChromeLaunchEnv(options.env),
|
|
829
832
|
stdio: ["ignore", "ignore", "pipe"],
|
|
830
833
|
windowsHide: true
|
|
831
834
|
});
|
|
@@ -864,7 +867,7 @@ ${lines}`].filter(Boolean).join("\n")
|
|
|
864
867
|
removeTreeBestEffort(profile);
|
|
865
868
|
}
|
|
866
869
|
}
|
|
867
|
-
async function explainChromeLaunchFailure(error, executablePath, args, signal) {
|
|
870
|
+
async function explainChromeLaunchFailure(error, executablePath, args, { signal, env } = {}) {
|
|
868
871
|
if (!(error instanceof Error)) return error;
|
|
869
872
|
const { code, errno, syscall } = error;
|
|
870
873
|
if (code === "UNKNOWN" && syscall === "spawn")
|
|
@@ -873,7 +876,7 @@ async function explainChromeLaunchFailure(error, executablePath, args, signal) {
|
|
|
873
876
|
{ cause: error }
|
|
874
877
|
);
|
|
875
878
|
if (!executablePath) return error;
|
|
876
|
-
const diagnosis = await diagnoseChromeStartup(executablePath, args ?? [], { signal });
|
|
879
|
+
const diagnosis = await diagnoseChromeStartup(executablePath, args ?? [], { signal, env });
|
|
877
880
|
return new Error(`${error.message}
|
|
878
881
|
${diagnosis}`, { cause: error });
|
|
879
882
|
}
|
|
@@ -993,10 +996,83 @@ function scanHtmlOpeningTags(html) {
|
|
|
993
996
|
|
|
994
997
|
// ../engine/src/services/browserManager.ts
|
|
995
998
|
import { execSync } from "child_process";
|
|
996
|
-
import { existsSync, readdirSync, statSync } from "fs";
|
|
999
|
+
import { existsSync as existsSync2, readdirSync, statSync } from "fs";
|
|
997
1000
|
import { join as join3 } from "path";
|
|
998
1001
|
import { homedir } from "os";
|
|
999
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
|
+
|
|
1000
1076
|
// ../engine/src/services/browserLeasePool.ts
|
|
1001
1077
|
function freezeFingerprint(fingerprint) {
|
|
1002
1078
|
return Object.freeze({
|
|
@@ -1255,7 +1331,7 @@ async function probeHardwareWebGlInfo(ppt, options) {
|
|
|
1255
1331
|
args: withHyperframesBrowserMarker(options.args),
|
|
1256
1332
|
defaultViewport: { width: 64, height: 64 },
|
|
1257
1333
|
executablePath: options.executablePath,
|
|
1258
|
-
env: options.env,
|
|
1334
|
+
env: buildChromeLaunchEnv(options.env),
|
|
1259
1335
|
timeout: options.browserTimeout,
|
|
1260
1336
|
waitForInitialPage: false
|
|
1261
1337
|
};
|
|
@@ -1317,7 +1393,7 @@ function isNonEmptyFile(path) {
|
|
|
1317
1393
|
}
|
|
1318
1394
|
}
|
|
1319
1395
|
function findCachedHeadlessShell(baseDir) {
|
|
1320
|
-
if (!
|
|
1396
|
+
if (!existsSync2(baseDir)) return void 0;
|
|
1321
1397
|
const executable = cachedHeadlessShellExecutable();
|
|
1322
1398
|
if (!executable) return void 0;
|
|
1323
1399
|
try {
|
|
@@ -1334,7 +1410,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1334
1410
|
}
|
|
1335
1411
|
function findSharedHeadlessShell(baseDir) {
|
|
1336
1412
|
const executable = cachedHeadlessShellExecutable();
|
|
1337
|
-
if (!executable || !
|
|
1413
|
+
if (!executable || !existsSync2(baseDir)) return void 0;
|
|
1338
1414
|
try {
|
|
1339
1415
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1340
1416
|
const binary = join3(baseDir, version, ...executable);
|
|
@@ -1346,7 +1422,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1346
1422
|
}
|
|
1347
1423
|
function findManagedHeadlessShell(baseDir) {
|
|
1348
1424
|
const executable = cachedHeadlessShellExecutable();
|
|
1349
|
-
if (!executable || !
|
|
1425
|
+
if (!executable || !existsSync2(baseDir)) return void 0;
|
|
1350
1426
|
try {
|
|
1351
1427
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1352
1428
|
const binary = version && join3(baseDir, version, ...executable);
|
|
@@ -1361,7 +1437,7 @@ function resolveHeadlessShellPath(config) {
|
|
|
1361
1437
|
}
|
|
1362
1438
|
const fromEnv = browserPathFromEnv();
|
|
1363
1439
|
if (fromEnv) {
|
|
1364
|
-
if (!
|
|
1440
|
+
if (!existsSync2(fromEnv.path)) {
|
|
1365
1441
|
throw new Error(
|
|
1366
1442
|
`[BrowserManager] Chrome binary not found at ${fromEnv.name}="${fromEnv.path}". Run \`hyperframes browser ensure\` to re-download.`
|
|
1367
1443
|
);
|
|
@@ -1404,7 +1480,7 @@ function resolveFullChromePath() {
|
|
|
1404
1480
|
join3(baseDir, version, "chrome-win64", "chrome.exe")
|
|
1405
1481
|
];
|
|
1406
1482
|
for (const binary of candidates) {
|
|
1407
|
-
if (
|
|
1483
|
+
if (existsSync2(binary)) return binary;
|
|
1408
1484
|
}
|
|
1409
1485
|
}
|
|
1410
1486
|
return void 0;
|
|
@@ -1638,14 +1714,12 @@ var VULKAN_VARS_THAT_OVERRIDE_SWIFTSHADER = [
|
|
|
1638
1714
|
"VK_LOADER_DRIVERS_DISABLE"
|
|
1639
1715
|
];
|
|
1640
1716
|
function launchEnv(fingerprint) {
|
|
1641
|
-
if (fingerprint.withoutWaylandDisplay) return envWithoutWaylandDisplay();
|
|
1717
|
+
if (fingerprint.withoutWaylandDisplay) return buildChromeLaunchEnv(envWithoutWaylandDisplay());
|
|
1718
|
+
const env = buildChromeLaunchEnv();
|
|
1642
1719
|
const swiftShader = fingerprint.args.some(
|
|
1643
1720
|
(arg) => arg === "--use-angle=swiftshader" || arg === "--use-vulkan=swiftshader"
|
|
1644
1721
|
);
|
|
1645
|
-
|
|
1646
|
-
if (!swiftShader || overriding.length === 0) return void 0;
|
|
1647
|
-
const env = { ...process.env };
|
|
1648
|
-
for (const name of overriding) delete env[name];
|
|
1722
|
+
if (swiftShader) for (const name of VULKAN_VARS_THAT_OVERRIDE_SWIFTSHADER) delete env[name];
|
|
1649
1723
|
return env;
|
|
1650
1724
|
}
|
|
1651
1725
|
async function captureWithoutWaylandDisplay(resolvedMode) {
|
|
@@ -1746,24 +1820,30 @@ async function launchBrowser(fingerprint) {
|
|
|
1746
1820
|
const env = launchEnv(fingerprint);
|
|
1747
1821
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1748
1822
|
let browser;
|
|
1749
|
-
const launch = (args) =>
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
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 });
|
|
1764
1845
|
});
|
|
1765
|
-
|
|
1766
|
-
});
|
|
1846
|
+
};
|
|
1767
1847
|
const probe = (target, timeoutMs) => probeBeginFrameSupport(target, timeoutMs).catch((error) => ({
|
|
1768
1848
|
supported: true,
|
|
1769
1849
|
detail: `probe harness error ignored: ${error instanceof Error ? error.message : String(error)}`,
|
|
@@ -1884,8 +1964,7 @@ function buildChromeArgs(options, config) {
|
|
|
1884
1964
|
const browserGpuMode = gpuDisabled ? "software" : config?.browserGpuMode ?? DEFAULT_CONFIG.browserGpuMode;
|
|
1885
1965
|
const softwareWebGpu = usesSoftwareWebGpu(options.requiresWebGpu, config);
|
|
1886
1966
|
const chromeArgs = [
|
|
1887
|
-
|
|
1888
|
-
"--disable-setuid-sandbox",
|
|
1967
|
+
...chromeSandboxArgs(options.sandbox),
|
|
1889
1968
|
"--disable-dev-shm-usage",
|
|
1890
1969
|
softwareWebGpu ? `${CANVAS_DRAW_ELEMENT_FEATURE_FLAG},Vulkan` : CANVAS_DRAW_ELEMENT_FEATURE_FLAG,
|
|
1891
1970
|
"--enable-webgl",
|
|
@@ -1914,7 +1993,6 @@ function buildChromeArgs(options, config) {
|
|
|
1914
1993
|
"--disable-domain-reliability",
|
|
1915
1994
|
"--disable-print-preview",
|
|
1916
1995
|
"--no-pings",
|
|
1917
|
-
"--no-zygote",
|
|
1918
1996
|
// Memory — scale GPU budget to available system RAM
|
|
1919
1997
|
`--force-gpu-mem-available-mb=${getGpuMemBudgetMb()}`,
|
|
1920
1998
|
"--disk-cache-size=268435456",
|
|
@@ -2178,8 +2256,9 @@ async function detectGpuBackend(page) {
|
|
|
2178
2256
|
}, SOFTWARE_WEBGL_RENDERER_TOKENS);
|
|
2179
2257
|
}
|
|
2180
2258
|
async function injectDrawElementCanvas(page, width, height) {
|
|
2259
|
+
const form = await page.evaluate(htmlInCanvasForm) ?? "layoutsubtree";
|
|
2181
2260
|
await page.evaluate(
|
|
2182
|
-
({ w, h }) => {
|
|
2261
|
+
({ w, h, form: form2 }) => {
|
|
2183
2262
|
const root = document.querySelector("[data-composition-id]");
|
|
2184
2263
|
if (!root || document.getElementById("__hf_de_canvas")) return;
|
|
2185
2264
|
try {
|
|
@@ -2190,7 +2269,11 @@ async function injectDrawElementCanvas(page, width, height) {
|
|
|
2190
2269
|
if (!parent) throw new Error("drawElement: composition root has no parent node");
|
|
2191
2270
|
const canvas = document.createElement("canvas");
|
|
2192
2271
|
canvas.id = "__hf_de_canvas";
|
|
2193
|
-
canvas.setAttribute("layoutsubtree", "");
|
|
2272
|
+
if (form2 === "layoutsubtree") canvas.setAttribute("layoutsubtree", "");
|
|
2273
|
+
else {
|
|
2274
|
+
canvas.setAttribute("content", "drawable");
|
|
2275
|
+
root.setAttribute("drawable", "");
|
|
2276
|
+
}
|
|
2194
2277
|
canvas.width = w;
|
|
2195
2278
|
canvas.height = h;
|
|
2196
2279
|
canvas.style.cssText = "display:block;position:absolute;top:0;left:0;z-index:0";
|
|
@@ -2213,7 +2296,7 @@ async function injectDrawElementCanvas(page, width, height) {
|
|
|
2213
2296
|
return false;
|
|
2214
2297
|
};
|
|
2215
2298
|
},
|
|
2216
|
-
{ w: width, h: height }
|
|
2299
|
+
{ w: width, h: height, form }
|
|
2217
2300
|
);
|
|
2218
2301
|
}
|
|
2219
2302
|
async function captureDrawElementFrame(page, width, height, format = "jpeg", quality = 80, syncToPaintEvent = true) {
|
|
@@ -2811,7 +2894,7 @@ async function produceDrawElementFrameBatch(page, times, width, height, quality
|
|
|
2811
2894
|
}
|
|
2812
2895
|
|
|
2813
2896
|
// ../engine/src/services/frameCapture.ts
|
|
2814
|
-
import { existsSync as
|
|
2897
|
+
import { existsSync as existsSync5, mkdirSync, writeFileSync } from "fs";
|
|
2815
2898
|
import { join as join7 } from "path";
|
|
2816
2899
|
|
|
2817
2900
|
// ../engine/src/services/renderFrameVideoHold.ts
|
|
@@ -5270,7 +5353,7 @@ import { execFile } from "child_process";
|
|
|
5270
5353
|
import { promisify } from "util";
|
|
5271
5354
|
|
|
5272
5355
|
// ../engine/src/utils/ffmpegBinaries.ts
|
|
5273
|
-
import { existsSync as
|
|
5356
|
+
import { existsSync as existsSync3 } from "fs";
|
|
5274
5357
|
import { dirname, join as join4 } from "path";
|
|
5275
5358
|
import { fileURLToPath } from "url";
|
|
5276
5359
|
function notFound(name, setting) {
|
|
@@ -5284,13 +5367,13 @@ function getFfprobeBinary() {
|
|
|
5284
5367
|
}
|
|
5285
5368
|
function assertConfiguredFfmpegBinariesExist() {
|
|
5286
5369
|
const ffmpegPath = process.env[FFMPEG_PATH_ENV]?.trim();
|
|
5287
|
-
if (ffmpegPath && !
|
|
5370
|
+
if (ffmpegPath && !existsSync3(ffmpegPath)) {
|
|
5288
5371
|
throw new Error(
|
|
5289
5372
|
`[FFmpeg] FFmpeg binary not found at ${FFMPEG_PATH_ENV}="${ffmpegPath}". Install FFmpeg or unset the override.${pathEncodingHint(ffmpegPath)}`
|
|
5290
5373
|
);
|
|
5291
5374
|
}
|
|
5292
5375
|
const ffprobePath = process.env[FFPROBE_PATH_ENV]?.trim();
|
|
5293
|
-
if (ffprobePath && !
|
|
5376
|
+
if (ffprobePath && !existsSync3(ffprobePath)) {
|
|
5294
5377
|
throw new Error(
|
|
5295
5378
|
`[FFmpeg] FFprobe binary not found at ${FFPROBE_PATH_ENV}="${ffprobePath}". Install FFmpeg or unset the override.${pathEncodingHint(ffprobePath)}`
|
|
5296
5379
|
);
|
|
@@ -5333,20 +5416,20 @@ async function listFfmpeg(flag) {
|
|
|
5333
5416
|
}
|
|
5334
5417
|
|
|
5335
5418
|
// ../engine/src/utils/renderProvenance.ts
|
|
5336
|
-
import { readFileSync as
|
|
5419
|
+
import { readFileSync as readFileSync3 } from "fs";
|
|
5337
5420
|
import { createRequire } from "module";
|
|
5338
5421
|
import { dirname as dirname2, join as join6 } from "path";
|
|
5339
5422
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5340
5423
|
|
|
5341
5424
|
// ../engine/src/utils/ffprobe.ts
|
|
5342
5425
|
import { spawn as spawn3 } from "child_process";
|
|
5343
|
-
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";
|
|
5344
5427
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5345
5428
|
import { tmpdir as tmpdir3 } from "os";
|
|
5346
5429
|
import { basename, join as join5 } from "path";
|
|
5347
5430
|
|
|
5348
5431
|
// ../engine/src/utils/urlInput.ts
|
|
5349
|
-
import { existsSync as
|
|
5432
|
+
import { existsSync as existsSync4 } from "fs";
|
|
5350
5433
|
var CA_BUNDLES = [
|
|
5351
5434
|
"/etc/pki/tls/certs/ca-bundle.crt",
|
|
5352
5435
|
"/etc/ssl/certs/ca-certificates.crt",
|
|
@@ -5358,7 +5441,7 @@ function urlInputArgs(input, {
|
|
|
5358
5441
|
caBundles = CA_BUNDLES
|
|
5359
5442
|
} = {}) {
|
|
5360
5443
|
if (!/^https:\/\//i.test(input)) return [];
|
|
5361
|
-
const caFile = caBundles.find((path) =>
|
|
5444
|
+
const caFile = caBundles.find((path) => existsSync4(path));
|
|
5362
5445
|
if (!caFile) {
|
|
5363
5446
|
throw new Error(
|
|
5364
5447
|
`[FFmpeg] cannot verify TLS for an https input: no CA bundle at ${caBundles.join(", ")}`
|
|
@@ -6111,7 +6194,7 @@ function extractPngMetadataFromBuffer(buf) {
|
|
|
6111
6194
|
}
|
|
6112
6195
|
function extractStillImageMetadata(filePath) {
|
|
6113
6196
|
try {
|
|
6114
|
-
return extractPngMetadataFromBuffer(
|
|
6197
|
+
return extractPngMetadataFromBuffer(readFileSync2(filePath));
|
|
6115
6198
|
} catch {
|
|
6116
6199
|
return null;
|
|
6117
6200
|
}
|
|
@@ -6635,7 +6718,7 @@ function resolveOwnVersionFrom(startDir) {
|
|
|
6635
6718
|
const candidate = join6(dir, "package.json");
|
|
6636
6719
|
let pkg;
|
|
6637
6720
|
try {
|
|
6638
|
-
pkg = JSON.parse(
|
|
6721
|
+
pkg = JSON.parse(readFileSync3(candidate, "utf8"));
|
|
6639
6722
|
} catch {
|
|
6640
6723
|
pkg = void 0;
|
|
6641
6724
|
}
|
|
@@ -6658,7 +6741,7 @@ function installedEngineVersion(fromDir) {
|
|
|
6658
6741
|
const path = createRequire(join6(fromDir, "index.js")).resolve(
|
|
6659
6742
|
"@hyperframes/engine/package.json"
|
|
6660
6743
|
);
|
|
6661
|
-
const pkg = JSON.parse(
|
|
6744
|
+
const pkg = JSON.parse(readFileSync3(path, "utf8"));
|
|
6662
6745
|
if (pkg.name === "@hyperframes/engine" && typeof pkg.version === "string" && pkg.version)
|
|
6663
6746
|
return pkg.version;
|
|
6664
6747
|
} catch {
|
|
@@ -7712,7 +7795,7 @@ async function installMediaPageHooks(page, options) {
|
|
|
7712
7795
|
}
|
|
7713
7796
|
}
|
|
7714
7797
|
async function createCaptureSession(serverUrl, outputDir, options, onBeforeCapture = null, config) {
|
|
7715
|
-
if (!
|
|
7798
|
+
if (!existsSync5(outputDir)) mkdirSync(outputDir, { recursive: true });
|
|
7716
7799
|
const headlessShell = resolveHeadlessShellPath(config);
|
|
7717
7800
|
const isLinux = process.platform === "linux";
|
|
7718
7801
|
const forceScreenshot = config?.forceScreenshot ?? DEFAULT_CONFIG.forceScreenshot;
|
|
@@ -8973,7 +9056,7 @@ async function initializeSession(session) {
|
|
|
8973
9056
|
async function captureFrameErrorDiagnostics(session, frameIndex, time, error) {
|
|
8974
9057
|
try {
|
|
8975
9058
|
const diagnosticsDir = join7(session.outputDir, "diagnostics");
|
|
8976
|
-
if (!
|
|
9059
|
+
if (!existsSync5(diagnosticsDir)) mkdirSync(diagnosticsDir, { recursive: true });
|
|
8977
9060
|
const base = join7(diagnosticsDir, `frame-error-${frameIndex}`);
|
|
8978
9061
|
const pageScreenshotCanResolve = session.launchCaptureMode !== "beginframe";
|
|
8979
9062
|
if (pageScreenshotCanResolve) {
|
|
@@ -10384,7 +10467,7 @@ async function closeCaptureSession(session) {
|
|
|
10384
10467
|
session.isInitialized = false;
|
|
10385
10468
|
}
|
|
10386
10469
|
async function prepareCaptureSessionForReuse(session, outputDir, onBeforeCapture) {
|
|
10387
|
-
if (!
|
|
10470
|
+
if (!existsSync5(outputDir)) {
|
|
10388
10471
|
mkdirSync(outputDir, { recursive: true });
|
|
10389
10472
|
}
|
|
10390
10473
|
session.outputDir = outputDir;
|
|
@@ -10619,11 +10702,11 @@ function framePathsFromDirectory(outputDir, format, allowGaps = false) {
|
|
|
10619
10702
|
import {
|
|
10620
10703
|
closeSync,
|
|
10621
10704
|
copyFileSync,
|
|
10622
|
-
existsSync as
|
|
10705
|
+
existsSync as existsSync6,
|
|
10623
10706
|
ftruncateSync,
|
|
10624
10707
|
mkdirSync as mkdirSync2,
|
|
10625
10708
|
openSync,
|
|
10626
|
-
readFileSync as
|
|
10709
|
+
readFileSync as readFileSync4,
|
|
10627
10710
|
readdirSync as readdirSync3,
|
|
10628
10711
|
statSync as statSync3,
|
|
10629
10712
|
writeFileSync as writeFileSync2,
|
|
@@ -11260,7 +11343,7 @@ var secondsReader = (onSeconds) => onSeconds && ffmpegStatsReader(({ seconds })
|
|
|
11260
11343
|
async function encodeFramesFromDir(framesDir, framePattern, outputPath, options, signal, config, onFramesEncoded) {
|
|
11261
11344
|
const startTime = Date.now();
|
|
11262
11345
|
const outputDir = dirname3(outputPath);
|
|
11263
|
-
if (!
|
|
11346
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11264
11347
|
const files = readdirSync3(framesDir).filter((f) => f.match(/\.(jpg|jpeg|png)$/i));
|
|
11265
11348
|
const frameCount = files.length;
|
|
11266
11349
|
if (frameCount === 0) {
|
|
@@ -11316,7 +11399,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
11316
11399
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
11317
11400
|
};
|
|
11318
11401
|
}
|
|
11319
|
-
const fileSize =
|
|
11402
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
11320
11403
|
return {
|
|
11321
11404
|
success: true,
|
|
11322
11405
|
outputPath,
|
|
@@ -11459,7 +11542,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11459
11542
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
11460
11543
|
};
|
|
11461
11544
|
}
|
|
11462
|
-
const fileSize =
|
|
11545
|
+
const fileSize = existsSync6(outputPath) ? statSync3(outputPath).size : 0;
|
|
11463
11546
|
return {
|
|
11464
11547
|
success: true,
|
|
11465
11548
|
outputPath,
|
|
@@ -11470,7 +11553,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11470
11553
|
}
|
|
11471
11554
|
async function muxVideoWithAudio(videoPath, audioPath, outputPath, signal, config, fps, onSecondsWritten) {
|
|
11472
11555
|
const outputDir = dirname3(outputPath);
|
|
11473
|
-
if (!
|
|
11556
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11474
11557
|
const outputExtension = extname(outputPath).toLowerCase();
|
|
11475
11558
|
const isWebm = outputExtension === ".webm";
|
|
11476
11559
|
const isMov = outputExtension === ".mov";
|
|
@@ -11545,7 +11628,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
11545
11628
|
if (outputDir.includes("%")) {
|
|
11546
11629
|
throw new Error(`[chunkEncoder] packageHls outputDir must not contain "%": ${outputDir}`);
|
|
11547
11630
|
}
|
|
11548
|
-
if (!
|
|
11631
|
+
if (!existsSync6(outputDir)) mkdirSync2(outputDir, { recursive: true });
|
|
11549
11632
|
const hasAudio = audioPath !== null;
|
|
11550
11633
|
const args = hasAudio ? ["-i", videoPath, "-i", audioPath, "-map", "0:v:0", "-map", "1:a:0"] : ["-i", videoPath, "-map", "0:v:0"];
|
|
11551
11634
|
args.push(
|
|
@@ -11594,7 +11677,7 @@ async function packageHls(videoPath, audioPath, outputDir, options) {
|
|
|
11594
11677
|
}
|
|
11595
11678
|
if (master !== void 0) {
|
|
11596
11679
|
try {
|
|
11597
|
-
const stripped = stripAudioOnlyVariants(
|
|
11680
|
+
const stripped = stripAudioOnlyVariants(readFileSync4(master, "utf-8"));
|
|
11598
11681
|
ftruncateSync(master, 0);
|
|
11599
11682
|
writeSync(master, stripped, 0, "utf-8");
|
|
11600
11683
|
} finally {
|
|
@@ -11692,7 +11775,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
11692
11775
|
// ../engine/src/services/streamingEncoder.ts
|
|
11693
11776
|
import { spawn as spawn5 } from "child_process";
|
|
11694
11777
|
import { once } from "events";
|
|
11695
|
-
import { existsSync as
|
|
11778
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as statSync4 } from "fs";
|
|
11696
11779
|
import { dirname as dirname4 } from "path";
|
|
11697
11780
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
11698
11781
|
let cursor = startFrame;
|
|
@@ -11970,7 +12053,7 @@ function spawnFfmpegStream(outputPath, args, {
|
|
|
11970
12053
|
checkFrame
|
|
11971
12054
|
}) {
|
|
11972
12055
|
const outputDir = dirname4(outputPath);
|
|
11973
|
-
if (!
|
|
12056
|
+
if (!existsSync7(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
11974
12057
|
const ffmpeg = spawn5(getFfmpegBinary(), args, {
|
|
11975
12058
|
stdio: ["pipe", "pipe", "pipe"],
|
|
11976
12059
|
// See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
|
|
@@ -12096,7 +12179,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12096
12179
|
}) ? "external_interruption" : void 0
|
|
12097
12180
|
};
|
|
12098
12181
|
}
|
|
12099
|
-
const fileSize =
|
|
12182
|
+
const fileSize = existsSync7(outputPath) ? statSync4(outputPath).size : 0;
|
|
12100
12183
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12101
12184
|
},
|
|
12102
12185
|
getExitStatus: () => exitStatus,
|
|
@@ -12247,7 +12330,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12247
12330
|
}
|
|
12248
12331
|
|
|
12249
12332
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12250
|
-
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";
|
|
12251
12334
|
import { basename as basename2, isAbsolute, join as join13, normalize, relative, win32 } from "path";
|
|
12252
12335
|
|
|
12253
12336
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
@@ -12289,7 +12372,7 @@ function isKnownInactiveTimelineWindow(element, resolvedStart) {
|
|
|
12289
12372
|
}
|
|
12290
12373
|
|
|
12291
12374
|
// ../engine/src/utils/alphaPlaneProbe.ts
|
|
12292
|
-
import { mkdtempSync as mkdtempSync3, readFileSync as
|
|
12375
|
+
import { mkdtempSync as mkdtempSync3, readFileSync as readFileSync5, rmSync as rmSync2 } from "fs";
|
|
12293
12376
|
import { tmpdir as tmpdir4 } from "os";
|
|
12294
12377
|
import { join as join10 } from "path";
|
|
12295
12378
|
var BYTES_PER_SAMPLE_FRAME = 8 * 8 * 4;
|
|
@@ -12329,7 +12412,7 @@ async function probeInputAlphaPlane(videoPath, decoder, signal) {
|
|
|
12329
12412
|
{ timeout: 3e4, signal }
|
|
12330
12413
|
);
|
|
12331
12414
|
if (!result.success) return void 0;
|
|
12332
|
-
return sampledRgbaAlphaIsFullyOpaque(
|
|
12415
|
+
return sampledRgbaAlphaIsFullyOpaque(readFileSync5(samplePath));
|
|
12333
12416
|
} catch {
|
|
12334
12417
|
return void 0;
|
|
12335
12418
|
} finally {
|
|
@@ -12346,7 +12429,7 @@ import {
|
|
|
12346
12429
|
closeSync as closeSync2,
|
|
12347
12430
|
createReadStream as createReadStream2,
|
|
12348
12431
|
createWriteStream,
|
|
12349
|
-
existsSync as
|
|
12432
|
+
existsSync as existsSync8,
|
|
12350
12433
|
fsyncSync,
|
|
12351
12434
|
linkSync,
|
|
12352
12435
|
mkdirSync as mkdirSync4,
|
|
@@ -13356,7 +13439,7 @@ async function downloadToTemp(url, destDir, timeoutMs = 3e5, signal, onTransient
|
|
|
13356
13439
|
if (inFlight) {
|
|
13357
13440
|
return inFlight;
|
|
13358
13441
|
}
|
|
13359
|
-
if (!
|
|
13442
|
+
if (!existsSync8(destDir)) {
|
|
13360
13443
|
mkdirSync4(destDir, { recursive: true });
|
|
13361
13444
|
}
|
|
13362
13445
|
const filename = getFilenameFromUrl(url, validationScope);
|
|
@@ -13435,11 +13518,15 @@ var PLAIN_SEGMENT = /^(?!\.{1,2}$)[^/\\:]+$/;
|
|
|
13435
13518
|
var GENERATED_SUFFIX = /~[0-9a-f]{12}$/;
|
|
13436
13519
|
var READABLE_MAX_BYTES = 64;
|
|
13437
13520
|
function mediaIdPathSegment(id) {
|
|
13438
|
-
if (PLAIN_SEGMENT.test(id) && !GENERATED_SUFFIX.test(id)
|
|
13521
|
+
if (PLAIN_SEGMENT.test(id) && !GENERATED_SUFFIX.test(id) && survivesCaseAndUnicodeFoldingOnMacAndWindowsDisks(id))
|
|
13522
|
+
return id;
|
|
13439
13523
|
const readable = truncateUtf8(id.replace(/[/\\:]/g, "_"), READABLE_MAX_BYTES);
|
|
13440
13524
|
const digest = createHash2("sha256").update(id).digest("hex").slice(0, 12);
|
|
13441
13525
|
return `${readable}~${digest}`;
|
|
13442
13526
|
}
|
|
13527
|
+
function survivesCaseAndUnicodeFoldingOnMacAndWindowsDisks(id) {
|
|
13528
|
+
return id === id.toLowerCase() && id === id.normalize("NFC");
|
|
13529
|
+
}
|
|
13443
13530
|
function truncateUtf8(text, maxBytes) {
|
|
13444
13531
|
let bytes = 0;
|
|
13445
13532
|
let out = "";
|
|
@@ -13455,7 +13542,7 @@ function truncateUtf8(text, maxBytes) {
|
|
|
13455
13542
|
import { createHash as createHash3, randomUUID as randomUUID3 } from "crypto";
|
|
13456
13543
|
import {
|
|
13457
13544
|
createReadStream as createReadStream3,
|
|
13458
|
-
existsSync as
|
|
13545
|
+
existsSync as existsSync9,
|
|
13459
13546
|
lstatSync as lstatSync2,
|
|
13460
13547
|
mkdirSync as mkdirSync5,
|
|
13461
13548
|
readdirSync as readdirSync5,
|
|
@@ -13516,7 +13603,7 @@ function hasFrameFiles(dir) {
|
|
|
13516
13603
|
function lookupCacheEntry(rootDir, input) {
|
|
13517
13604
|
const keyHash = computeCacheKey(input);
|
|
13518
13605
|
const dir = join12(rootDir, cacheEntryDirName(keyHash));
|
|
13519
|
-
const complete =
|
|
13606
|
+
const complete = existsSync9(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
13520
13607
|
return { entry: { dir, keyHash }, hit: complete };
|
|
13521
13608
|
}
|
|
13522
13609
|
function partialCacheEntryDir(entry) {
|
|
@@ -13527,7 +13614,7 @@ function isTargetExistsRenameError(err) {
|
|
|
13527
13614
|
return code === "EEXIST" || code === "ENOTEMPTY" || code === "EPERM";
|
|
13528
13615
|
}
|
|
13529
13616
|
function adoptPublishedWinner(entry, partialDir) {
|
|
13530
|
-
if (!
|
|
13617
|
+
if (!existsSync9(join12(entry.dir, COMPLETE_SENTINEL)) || !hasFrameFiles(entry.dir)) return null;
|
|
13531
13618
|
removeDir(partialDir);
|
|
13532
13619
|
return { dir: entry.dir, published: true };
|
|
13533
13620
|
}
|
|
@@ -14384,7 +14471,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
14384
14471
|
const fps = fpsToNumber(normalizedFps);
|
|
14385
14472
|
const ffmpegFps = fpsToFfmpegArg(normalizedFps);
|
|
14386
14473
|
const videoOutputDir = outputDirOverride ?? join13(outputDir, mediaIdPathSegment(videoId));
|
|
14387
|
-
if (!
|
|
14474
|
+
if (!existsSync10(videoOutputDir)) mkdirSync6(videoOutputDir, { recursive: true });
|
|
14388
14475
|
let metadata;
|
|
14389
14476
|
try {
|
|
14390
14477
|
metadata = await extractMediaMetadata(videoPath);
|
|
@@ -15011,7 +15098,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15011
15098
|
{ onTelemetry: writeUrlDownloadTelemetry }
|
|
15012
15099
|
);
|
|
15013
15100
|
}
|
|
15014
|
-
if (!
|
|
15101
|
+
if (!existsSync10(videoPath)) {
|
|
15015
15102
|
if (!warnedSrcs.has(video.src)) {
|
|
15016
15103
|
warnedSrcs.add(video.src);
|
|
15017
15104
|
process.stderr.write(
|
|
@@ -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
|
}
|
|
@@ -16296,7 +16383,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
16296
16383
|
}
|
|
16297
16384
|
|
|
16298
16385
|
// ../engine/src/services/audioMixer.ts
|
|
16299
|
-
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";
|
|
16300
16387
|
import { join as join17, dirname as dirname8, isAbsolute as isAbsolute2, relative as relative2 } from "path";
|
|
16301
16388
|
|
|
16302
16389
|
// ../engine/src/utils/notMediaPayload.ts
|
|
@@ -16413,7 +16500,7 @@ function clampFadesToDuration(fades, duration) {
|
|
|
16413
16500
|
|
|
16414
16501
|
// ../engine/src/services/aacEncode.ts
|
|
16415
16502
|
import { execFile as execFile3 } from "child_process";
|
|
16416
|
-
import { readFileSync as
|
|
16503
|
+
import { readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
|
|
16417
16504
|
import { dirname as dirname6, join as join14 } from "path";
|
|
16418
16505
|
var SAMPLE_RATE = 48e3;
|
|
16419
16506
|
var FRAME_SAMPLES = 1024;
|
|
@@ -16515,7 +16602,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
16515
16602
|
if (failed) return failed;
|
|
16516
16603
|
const joined = join14(dir, "joined.aac");
|
|
16517
16604
|
const frames = segments.flatMap(({ path, keepFrom, keepTo }) => {
|
|
16518
|
-
const segmentFrames = splitAdtsFrames(
|
|
16605
|
+
const segmentFrames = splitAdtsFrames(readFileSync6(path));
|
|
16519
16606
|
if (segmentFrames.length < keepTo) {
|
|
16520
16607
|
throw new Error(`AAC segment ${path} has ${segmentFrames.length} frames, needs ${keepTo}`);
|
|
16521
16608
|
}
|
|
@@ -16647,7 +16734,7 @@ function audioFailureDiagnostics(values) {
|
|
|
16647
16734
|
}
|
|
16648
16735
|
|
|
16649
16736
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
16650
|
-
import { readFileSync as
|
|
16737
|
+
import { readFileSync as readFileSync7, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
16651
16738
|
import { dirname as dirname7, join as join15 } from "path";
|
|
16652
16739
|
|
|
16653
16740
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
@@ -16770,7 +16857,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
16770
16857
|
if (!gainAt) return false;
|
|
16771
16858
|
let stagingDir;
|
|
16772
16859
|
try {
|
|
16773
|
-
const buffer =
|
|
16860
|
+
const buffer = readFileSync7(wavPath);
|
|
16774
16861
|
const layout = parseWavLayout(buffer);
|
|
16775
16862
|
if (!layout) return false;
|
|
16776
16863
|
scaleSamples(buffer, layout, gainAt);
|
|
@@ -17004,10 +17091,10 @@ function chainTailSeconds(chain, automation) {
|
|
|
17004
17091
|
// ../engine/src/services/audioFxRender.ts
|
|
17005
17092
|
import {
|
|
17006
17093
|
closeSync as closeSync3,
|
|
17007
|
-
existsSync as
|
|
17094
|
+
existsSync as existsSync11,
|
|
17008
17095
|
mkdtempSync as mkdtempSync4,
|
|
17009
17096
|
openSync as openSync3,
|
|
17010
|
-
readFileSync as
|
|
17097
|
+
readFileSync as readFileSync8,
|
|
17011
17098
|
readSync,
|
|
17012
17099
|
statSync as statSync7,
|
|
17013
17100
|
writeFileSync as writeFileSync6,
|
|
@@ -17109,7 +17196,7 @@ function readWavHeader(path) {
|
|
|
17109
17196
|
}
|
|
17110
17197
|
}
|
|
17111
17198
|
function readWav(path) {
|
|
17112
|
-
const buf =
|
|
17199
|
+
const buf = readFileSync8(path);
|
|
17113
17200
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") {
|
|
17114
17201
|
throw new AudioFxRenderError(`Not a WAV file: ${path}`);
|
|
17115
17202
|
}
|
|
@@ -17314,7 +17401,7 @@ async function renderInSegments(openPage, inputWav, header, chain, outputWav, op
|
|
|
17314
17401
|
}
|
|
17315
17402
|
async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
17316
17403
|
if (enabledAudioFxNodes(chain).length === 0) return { path: inputWav, envelopeBaked: false };
|
|
17317
|
-
if (!
|
|
17404
|
+
if (!existsSync11(inputWav)) {
|
|
17318
17405
|
throw new AudioFxRenderError(`Audio FX input is missing: ${inputWav}`);
|
|
17319
17406
|
}
|
|
17320
17407
|
const limits = { ...DEFAULT_STREAMING_LIMITS, ...options.streaming };
|
|
@@ -17851,7 +17938,7 @@ var SIDECAR_WARM_UP_SECONDS = 1;
|
|
|
17851
17938
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
17852
17939
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
17853
17940
|
const outputDir = dirname8(outputPath);
|
|
17854
|
-
if (!
|
|
17941
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
17855
17942
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
17856
17943
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
17857
17944
|
const readsUrl = isHttpUrl(srcPath);
|
|
@@ -17997,7 +18084,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
17997
18084
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
17998
18085
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
17999
18086
|
const outputDir = dirname8(outputPath);
|
|
18000
|
-
if (!
|
|
18087
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18001
18088
|
const args = [
|
|
18002
18089
|
"-f",
|
|
18003
18090
|
"lavfi",
|
|
@@ -18051,7 +18138,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18051
18138
|
};
|
|
18052
18139
|
}
|
|
18053
18140
|
const outputDir = dirname8(outputPath);
|
|
18054
|
-
if (!
|
|
18141
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18055
18142
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18056
18143
|
const filterParts = [];
|
|
18057
18144
|
tracks.forEach((track, i) => {
|
|
@@ -18160,7 +18247,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18160
18247
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18161
18248
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18162
18249
|
const outputDir = dirname8(outputPath);
|
|
18163
|
-
if (!
|
|
18250
|
+
if (!existsSync12(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18164
18251
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18165
18252
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
18166
18253
|
return buildTrackInputFilter(track, i, volumeFilter, totalDuration, padMembers);
|
|
@@ -18387,7 +18474,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18387
18474
|
const failures = [];
|
|
18388
18475
|
const groupTracks = /* @__PURE__ */ new Map();
|
|
18389
18476
|
const groupMeta = /* @__PURE__ */ new Map();
|
|
18390
|
-
if (!
|
|
18477
|
+
if (!existsSync12(workDir)) mkdirSync7(workDir, { recursive: true });
|
|
18391
18478
|
const internalController = new AbortController();
|
|
18392
18479
|
const effectiveSignal = internalController.signal;
|
|
18393
18480
|
if (signal) {
|
|
@@ -18438,7 +18525,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18438
18525
|
return;
|
|
18439
18526
|
}
|
|
18440
18527
|
}
|
|
18441
|
-
if (!readInPlace && !
|
|
18528
|
+
if (!readInPlace && !existsSync12(srcPath)) {
|
|
18442
18529
|
failures.push({
|
|
18443
18530
|
stage: "source",
|
|
18444
18531
|
reason: "source_not_found",
|
|
@@ -18804,7 +18891,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
18804
18891
|
|
|
18805
18892
|
// ../engine/src/services/parallelCoordinator.ts
|
|
18806
18893
|
import { freemem } from "os";
|
|
18807
|
-
import { existsSync as
|
|
18894
|
+
import { existsSync as existsSync13, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
18808
18895
|
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
18809
18896
|
import { join as join19 } from "path";
|
|
18810
18897
|
import { getHeapStatistics } from "v8";
|
|
@@ -19295,7 +19382,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
19295
19382
|
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation, gate) {
|
|
19296
19383
|
const startTime = Date.now();
|
|
19297
19384
|
let framesCaptured = 0;
|
|
19298
|
-
if (!
|
|
19385
|
+
if (!existsSync13(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
19299
19386
|
let session = null;
|
|
19300
19387
|
let perf;
|
|
19301
19388
|
const needsSeparateBrowsers = shouldDisableBrowserPoolForParallelWorker({ parallel });
|
|
@@ -19550,11 +19637,11 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
19550
19637
|
return results;
|
|
19551
19638
|
}
|
|
19552
19639
|
async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
19553
|
-
if (!
|
|
19640
|
+
if (!existsSync13(outputDir)) mkdirSync8(outputDir, { recursive: true });
|
|
19554
19641
|
let totalFrames = 0;
|
|
19555
19642
|
const sortedTasks = [...tasks].sort((a, b) => a.startFrame - b.startFrame);
|
|
19556
19643
|
for (const task of sortedTasks) {
|
|
19557
|
-
if (!
|
|
19644
|
+
if (!existsSync13(task.outputDir)) {
|
|
19558
19645
|
continue;
|
|
19559
19646
|
}
|
|
19560
19647
|
const files = readdirSync6(task.outputDir).filter((f) => f.startsWith("frame_") && (f.endsWith(".jpg") || f.endsWith(".png"))).sort();
|
|
@@ -19584,7 +19671,7 @@ function getSystemResources() {
|
|
|
19584
19671
|
// ../engine/src/services/fileServer.ts
|
|
19585
19672
|
import { Hono } from "hono";
|
|
19586
19673
|
import { serve } from "@hono/node-server";
|
|
19587
|
-
import { readFileSync as
|
|
19674
|
+
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync8, constants } from "fs";
|
|
19588
19675
|
import { join as join20, extname as extname3 } from "path";
|
|
19589
19676
|
var MIME_TYPES = {
|
|
19590
19677
|
".html": "text/html; charset=utf-8",
|
|
@@ -19626,7 +19713,7 @@ function readRegularFile(filePath) {
|
|
|
19626
19713
|
}
|
|
19627
19714
|
try {
|
|
19628
19715
|
if (!fstatSync(fd).isFile()) return null;
|
|
19629
|
-
return
|
|
19716
|
+
return readFileSync9(fd);
|
|
19630
19717
|
} finally {
|
|
19631
19718
|
closeSync5(fd);
|
|
19632
19719
|
}
|
|
@@ -20089,6 +20176,7 @@ async function launchHdrBrowser(width, height) {
|
|
|
20089
20176
|
...ownedLaunchOptions(),
|
|
20090
20177
|
headless: false,
|
|
20091
20178
|
executablePath: chromePath,
|
|
20179
|
+
env: buildChromeLaunchEnv(),
|
|
20092
20180
|
args: withHyperframesBrowserMarker(buildHdrChromeArgs(width, height))
|
|
20093
20181
|
});
|
|
20094
20182
|
const page = await browser.newPage();
|
|
@@ -20145,6 +20233,7 @@ export {
|
|
|
20145
20233
|
oneProcessOverPipe,
|
|
20146
20234
|
isOneProcessOverPipe,
|
|
20147
20235
|
sandboxDeniedRemediation,
|
|
20236
|
+
launchWithChromeSandboxFallback,
|
|
20148
20237
|
BrowserLeasePool,
|
|
20149
20238
|
setHostHandlesSigint,
|
|
20150
20239
|
resolveHeadlessShellPath,
|