hyperframes 0.8.221 → 0.8.223
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-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
- package/dist/api.d.ts +5 -3
- package/dist/api.js +38 -26
- package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
- package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
- package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
- package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
- package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
- package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
- package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
- package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
- package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
- package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
- package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
- package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
- package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
- package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
- package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
- package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
- package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
- package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
- package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-Y4GLFHO5.js → chunk-RORIFIUW.js} +1 -1
- package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/chunk-SDBVVDBW.js +113 -0
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
- package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
- package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
- package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
- package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
- package/dist/chunk-VJM6NX54.js +250 -0
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/chunk-WGOIJN57.js +95 -0
- package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
- package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
- package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
- package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
- package/dist/cli.js +59 -56
- package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
- package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
- package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
- package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-DZ5PRR6F.js → events-Q3EBOW2Y.js} +2 -2
- package/dist/events-QO5G2VCC.js +221 -0
- package/dist/extract-Z6TLBM5B.js +309 -0
- package/dist/face-WI6BPPUG.js +171 -0
- package/dist/{feedback-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
- package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -72
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
- package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
- package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
- package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
- package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
- package/dist/{login-WAG7B4PM.js → login-32WGVGTM.js} +15 -9
- package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
- package/dist/look-ZWVE6JO3.js +180 -0
- package/dist/{manager-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
- package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
- package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
- package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
- package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
- package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
- package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
- package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
- package/dist/studio/assets/{index-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
- package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
- package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
- package/dist/warmCheck.js +47 -45
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
firstFrameColourArgs,
|
|
15
15
|
parseFirstFrameColour
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OWFSGDQS.js";
|
|
17
17
|
import {
|
|
18
18
|
findFfBinary
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HYRPH6LL.js";
|
|
20
20
|
|
|
21
21
|
// ../studio-server/dist/chunk-X73QTST2.js
|
|
22
22
|
import { execFile } from "child_process";
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
findFFmpeg,
|
|
9
|
+
findFFprobe,
|
|
10
|
+
getFFmpegInstallHint
|
|
11
|
+
} from "./chunk-WWOHLNFO.js";
|
|
12
|
+
|
|
13
|
+
// src/measure/media.ts
|
|
14
|
+
import { execFileSync } from "child_process";
|
|
15
|
+
import { existsSync, mkdirSync } from "fs";
|
|
16
|
+
import { join, resolve } from "path";
|
|
17
|
+
var MAX_BUFFER = 1 << 30;
|
|
18
|
+
var FFMPEG_QUIET = ["-nostdin", "-v", "error"];
|
|
19
|
+
var Fix = class extends Error {
|
|
20
|
+
constructor(problem, fix) {
|
|
21
|
+
super(problem);
|
|
22
|
+
this.fix = fix;
|
|
23
|
+
this.name = "Fix";
|
|
24
|
+
}
|
|
25
|
+
fix;
|
|
26
|
+
};
|
|
27
|
+
function ffmpegBin() {
|
|
28
|
+
const bin = findFFmpeg();
|
|
29
|
+
if (!bin) throw new Fix("ffmpeg is not installed", getFFmpegInstallHint());
|
|
30
|
+
return bin;
|
|
31
|
+
}
|
|
32
|
+
function ffprobeBin() {
|
|
33
|
+
const bin = findFFprobe();
|
|
34
|
+
if (!bin) throw new Fix("ffprobe is not installed", getFFmpegInstallHint());
|
|
35
|
+
return bin;
|
|
36
|
+
}
|
|
37
|
+
function runFfmpeg(args, input, cwd) {
|
|
38
|
+
return execFileSync(ffmpegBin(), [...FFMPEG_QUIET, ...args], {
|
|
39
|
+
maxBuffer: MAX_BUFFER,
|
|
40
|
+
windowsHide: true,
|
|
41
|
+
...input ? { input } : {},
|
|
42
|
+
...cwd ? { cwd } : {}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
var rate = (text) => {
|
|
46
|
+
const [a, b] = String(text ?? "0/1").split("/").map(Number);
|
|
47
|
+
return b ? (a ?? 0) / b : a ?? 0;
|
|
48
|
+
};
|
|
49
|
+
function probeVideo(path) {
|
|
50
|
+
if (!existsSync(path))
|
|
51
|
+
throw new Fix(`no file at ${path}`, "pass the video's path from the project folder");
|
|
52
|
+
let json;
|
|
53
|
+
try {
|
|
54
|
+
json = JSON.parse(
|
|
55
|
+
execFileSync(
|
|
56
|
+
ffprobeBin(),
|
|
57
|
+
["-v", "error", "-show_streams", "-show_format", "-of", "json", "--", path],
|
|
58
|
+
{ maxBuffer: MAX_BUFFER, windowsHide: true }
|
|
59
|
+
).toString()
|
|
60
|
+
);
|
|
61
|
+
} catch {
|
|
62
|
+
throw new Fix(`ffprobe cannot read ${path}`, "pass a video file (mp4, mov, webm)");
|
|
63
|
+
}
|
|
64
|
+
const streams = json.streams ?? [];
|
|
65
|
+
const video = streams.find((s) => s.codec_type === "video");
|
|
66
|
+
if (!video) throw new Fix(`${path} has no video stream`, "pass a video file, not audio");
|
|
67
|
+
const rotation = Math.abs(
|
|
68
|
+
Number(video.side_data_list?.find((d) => d.rotation !== void 0)?.rotation ?? 0) || Number(video.tags?.rotate ?? 0)
|
|
69
|
+
);
|
|
70
|
+
const turned = rotation % 180 === 90;
|
|
71
|
+
const fpsText = video.r_frame_rate && video.r_frame_rate !== "0/0" ? video.r_frame_rate : "30/1";
|
|
72
|
+
const fps = rate(fpsText);
|
|
73
|
+
const avg = rate(video.avg_frame_rate);
|
|
74
|
+
const duration = Number(json.format?.duration ?? video.duration ?? 0);
|
|
75
|
+
const counted = Number(video.nb_frames ?? 0);
|
|
76
|
+
const sound = streams.find((s) => s.codec_type === "audio");
|
|
77
|
+
const frames = counted > 0 ? counted : Math.round(duration * fps);
|
|
78
|
+
return {
|
|
79
|
+
path,
|
|
80
|
+
width: (turned ? video.height : video.width) ?? 0,
|
|
81
|
+
height: (turned ? video.width : video.height) ?? 0,
|
|
82
|
+
fps,
|
|
83
|
+
fpsText: fpsText.endsWith("/1") ? fpsText.slice(0, -2) : fpsText,
|
|
84
|
+
duration,
|
|
85
|
+
pictureDuration: Number(video.duration ?? 0) || frames / (avg || fps),
|
|
86
|
+
frames,
|
|
87
|
+
audio: Boolean(sound),
|
|
88
|
+
audioStart: Math.max(0, Number(sound?.start_time ?? 0) - Number(video.start_time ?? 0) || 0),
|
|
89
|
+
avgFps: avg || fps,
|
|
90
|
+
vfr: avg > 0 && Math.abs(avg - fps) / fps > 0.01,
|
|
91
|
+
hdr: /smpte2084|arib-std-b67/.test(video.color_transfer ?? ""),
|
|
92
|
+
codec: video.codec_name ?? ""
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function videoClip(path, start = 0, seconds, info = probeVideo(path)) {
|
|
96
|
+
return {
|
|
97
|
+
input: [
|
|
98
|
+
...start > 0 ? ["-ss", String(start)] : [],
|
|
99
|
+
"-i",
|
|
100
|
+
path,
|
|
101
|
+
...seconds !== void 0 ? ["-t", String(seconds)] : []
|
|
102
|
+
],
|
|
103
|
+
filters: [],
|
|
104
|
+
width: info.width,
|
|
105
|
+
height: info.height,
|
|
106
|
+
fps: info.fps
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function readClip(clip, opts = {}) {
|
|
110
|
+
const { roi, width = 0, gray = false, fps = 0, limit } = opts;
|
|
111
|
+
const filters = [...clip.filters];
|
|
112
|
+
if (fps) filters.push(`fps=${fps}`);
|
|
113
|
+
let [w, h] = [clip.width, clip.height];
|
|
114
|
+
if (roi) {
|
|
115
|
+
filters.push(`crop=${roi[2]}:${roi[3]}:${roi[0]}:${roi[1]}`);
|
|
116
|
+
[w, h] = [roi[2], roi[3]];
|
|
117
|
+
}
|
|
118
|
+
if (width && width !== w) {
|
|
119
|
+
const outH = Math.max(2, Math.round(h * width / w / 2) * 2);
|
|
120
|
+
filters.push(`scale=${width}:${outH}`);
|
|
121
|
+
[w, h] = [width, outH];
|
|
122
|
+
}
|
|
123
|
+
return decode(clip.input, filters, w, h, gray, limit);
|
|
124
|
+
}
|
|
125
|
+
function readFrameAt(info, t, opts = {}) {
|
|
126
|
+
const k = Math.min(info.frames - 1, frameAt(t, info.fps));
|
|
127
|
+
return readClip(
|
|
128
|
+
{ ...videoClip(info.path, 0, void 0, info), filters: [`select=eq(n\\,${k})`] },
|
|
129
|
+
{ ...opts, limit: 1 }
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
function readFrames(path, opts = {}) {
|
|
133
|
+
return readClip(videoClip(path, opts.start, opts.seconds), opts);
|
|
134
|
+
}
|
|
135
|
+
function decode(input, filters, w, h, gray = false, limit) {
|
|
136
|
+
const raw = runFfmpeg([
|
|
137
|
+
...input,
|
|
138
|
+
"-an",
|
|
139
|
+
"-vf",
|
|
140
|
+
[...filters, `format=${gray ? "gray" : "rgb24"}`].join(","),
|
|
141
|
+
...limit ? ["-frames:v", String(limit)] : [],
|
|
142
|
+
"-f",
|
|
143
|
+
"rawvideo",
|
|
144
|
+
"-"
|
|
145
|
+
]);
|
|
146
|
+
const size = w * h * (gray ? 1 : 3);
|
|
147
|
+
const frames = [];
|
|
148
|
+
for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
|
|
149
|
+
return { frames, w, h };
|
|
150
|
+
}
|
|
151
|
+
function grey(rgb) {
|
|
152
|
+
const out = new Uint8Array(rgb.length / 3);
|
|
153
|
+
for (let i = 0; i < out.length; i++)
|
|
154
|
+
out[i] = 77 * rgb[3 * i] + 150 * rgb[3 * i + 1] + 29 * rgb[3 * i + 2] >> 8;
|
|
155
|
+
return out;
|
|
156
|
+
}
|
|
157
|
+
function meanAbsDiff(a, b) {
|
|
158
|
+
let s = 0;
|
|
159
|
+
for (let i = 0; i < a.length; i++) s += Math.abs(a[i] - b[i]);
|
|
160
|
+
return s / (a.length || 1);
|
|
161
|
+
}
|
|
162
|
+
function writeImage(path, px, w, h, gray = false) {
|
|
163
|
+
const header = Buffer.from(`${gray ? "P5" : "P6"}
|
|
164
|
+
${w} ${h}
|
|
165
|
+
255
|
|
166
|
+
`);
|
|
167
|
+
runFfmpeg(
|
|
168
|
+
["-y", "-f", gray ? "pgm_pipe" : "ppm_pipe", "-i", "-", "-frames:v", "1", path],
|
|
169
|
+
Buffer.concat([header, Buffer.from(px.buffer, px.byteOffset, px.byteLength)])
|
|
170
|
+
);
|
|
171
|
+
return path;
|
|
172
|
+
}
|
|
173
|
+
var round = (n, d = 3) => Math.round(n * 10 ** d) / 10 ** d;
|
|
174
|
+
var ratioOf = (yours, ref, floor) => yours < floor && ref < floor ? 1 : yours / (ref || 1e-9);
|
|
175
|
+
function parseNumbers(text, flag) {
|
|
176
|
+
const out = String(text ?? "").split(",").filter((s) => s.trim() !== "").map(Number);
|
|
177
|
+
if (!out.length || out.some((n) => !Number.isFinite(n)))
|
|
178
|
+
throw new Fix(
|
|
179
|
+
`${flag} must be numbers separated by commas, got "${String(text)}"`,
|
|
180
|
+
`${flag} 1.2,3.4`
|
|
181
|
+
);
|
|
182
|
+
return out;
|
|
183
|
+
}
|
|
184
|
+
function parseRange(text, flag = "--range") {
|
|
185
|
+
const v = parseNumbers(text, flag);
|
|
186
|
+
if (v.length !== 2 || v[0] < 0 || v[1] <= v[0])
|
|
187
|
+
throw new Fix(
|
|
188
|
+
`${flag} must be start,end seconds with start < end, got "${String(text)}"`,
|
|
189
|
+
`${flag} 2.1,4.5`
|
|
190
|
+
);
|
|
191
|
+
return [v[0], v[1]];
|
|
192
|
+
}
|
|
193
|
+
function parseRoi(text, width, height) {
|
|
194
|
+
const v = parseNumbers(text, "--roi").map(Math.round);
|
|
195
|
+
if (v.length !== 4 || v[2] <= 0 || v[3] <= 0)
|
|
196
|
+
throw new Fix(
|
|
197
|
+
`--roi must be x,y,w,h with a positive size, got "${String(text)}"`,
|
|
198
|
+
"--roi 100,200,400,300"
|
|
199
|
+
);
|
|
200
|
+
const roi = [v[0], v[1], v[2], v[3]];
|
|
201
|
+
if (width && height && (roi[0] < 0 || roi[1] < 0 || roi[0] + roi[2] > width || roi[1] + roi[3] > height))
|
|
202
|
+
throw new Fix(
|
|
203
|
+
`--roi ${roi.join(",")} runs past the ${width}x${height} frame`,
|
|
204
|
+
`keep it inside 0,0,${width},${height}`
|
|
205
|
+
);
|
|
206
|
+
return roi;
|
|
207
|
+
}
|
|
208
|
+
function outDir(out, tool) {
|
|
209
|
+
const dir = typeof out === "string" && out ? resolve(out) : resolve(join(".hyperframes", tool));
|
|
210
|
+
mkdirSync(dir, { recursive: true });
|
|
211
|
+
return dir;
|
|
212
|
+
}
|
|
213
|
+
var frameAt = (t, fps) => Math.max(0, Math.floor((t + 5e-4) * fps + 1e-6));
|
|
214
|
+
var formatJson = (value) => JSON.stringify(value, null, 1).replace(/[[{][^[\]{}]*[\]}]/g, (m) => m.replace(/\n\s*/g, " "));
|
|
215
|
+
function pearson(a, b) {
|
|
216
|
+
const n = Math.min(a.length, b.length);
|
|
217
|
+
const ma = a.slice(0, n).reduce((s, v) => s + v, 0) / n;
|
|
218
|
+
const mb = b.slice(0, n).reduce((s, v) => s + v, 0) / n;
|
|
219
|
+
let [num, da, db] = [0, 0, 0];
|
|
220
|
+
for (let i = 0; i < n; i++) {
|
|
221
|
+
num += (a[i] - ma) * (b[i] - mb);
|
|
222
|
+
da += (a[i] - ma) ** 2;
|
|
223
|
+
db += (b[i] - mb) ** 2;
|
|
224
|
+
}
|
|
225
|
+
return da && db ? num / Math.sqrt(da * db) : null;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export {
|
|
229
|
+
Fix,
|
|
230
|
+
ffmpegBin,
|
|
231
|
+
runFfmpeg,
|
|
232
|
+
probeVideo,
|
|
233
|
+
videoClip,
|
|
234
|
+
readClip,
|
|
235
|
+
readFrameAt,
|
|
236
|
+
readFrames,
|
|
237
|
+
decode,
|
|
238
|
+
grey,
|
|
239
|
+
meanAbsDiff,
|
|
240
|
+
writeImage,
|
|
241
|
+
round,
|
|
242
|
+
ratioOf,
|
|
243
|
+
parseNumbers,
|
|
244
|
+
parseRange,
|
|
245
|
+
parseRoi,
|
|
246
|
+
outDir,
|
|
247
|
+
frameAt,
|
|
248
|
+
formatJson,
|
|
249
|
+
pearson
|
|
250
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Fix,
|
|
9
|
+
formatJson,
|
|
10
|
+
parseNumbers,
|
|
11
|
+
parseRoi,
|
|
12
|
+
probeVideo
|
|
13
|
+
} from "./chunk-VJM6NX54.js";
|
|
14
|
+
import {
|
|
15
|
+
c
|
|
16
|
+
} from "./chunk-2GICKZ3I.js";
|
|
17
|
+
import {
|
|
18
|
+
withMeta
|
|
19
|
+
} from "./chunk-K5GMPWMG.js";
|
|
20
|
+
import {
|
|
21
|
+
failCommand
|
|
22
|
+
} from "./chunk-DP5LF7GF.js";
|
|
23
|
+
import {
|
|
24
|
+
normalizeErrorMessage
|
|
25
|
+
} from "./chunk-E63BDV4Z.js";
|
|
26
|
+
|
|
27
|
+
// src/measure/command.ts
|
|
28
|
+
async function runMeasure(work) {
|
|
29
|
+
try {
|
|
30
|
+
console.log(formatJson(withMeta({ ok: true, ...await work() })));
|
|
31
|
+
} catch (err) {
|
|
32
|
+
const fix = err instanceof Fix ? err.fix : void 0;
|
|
33
|
+
console.log(
|
|
34
|
+
formatJson(
|
|
35
|
+
withMeta({ ok: false, error: normalizeErrorMessage(err), ...fix ? { fix } : {} })
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
if (process.stdout.isTTY) console.error(`${c.error("\u2717")} ${normalizeErrorMessage(err)}`);
|
|
39
|
+
failCommand();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var videoArg = {
|
|
43
|
+
type: "positional",
|
|
44
|
+
description: "The video file",
|
|
45
|
+
required: true
|
|
46
|
+
};
|
|
47
|
+
var roiArg = {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "Region x,y,w,h in the video's pixels (default: whole frame)"
|
|
50
|
+
};
|
|
51
|
+
var outArg = {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "Folder for pictures (default .hyperframes/measure/<op>)"
|
|
54
|
+
};
|
|
55
|
+
var jsonArg = {
|
|
56
|
+
type: "boolean",
|
|
57
|
+
description: "Accepted for symmetry; output is always JSON",
|
|
58
|
+
default: false
|
|
59
|
+
};
|
|
60
|
+
var compareWindowArgs = {
|
|
61
|
+
"compare-start": { type: "string", description: "Its window start (default: --start)" },
|
|
62
|
+
"compare-roi": { type: "string", description: "Its region (default: --roi)" }
|
|
63
|
+
};
|
|
64
|
+
function videoAndRoi(video, roi) {
|
|
65
|
+
const info = probeVideo(String(video));
|
|
66
|
+
return {
|
|
67
|
+
info,
|
|
68
|
+
roi: roi === void 0 ? [0, 0, info.width, info.height] : parseRoi(roi, info.width, info.height)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function num(value, flag, fallback) {
|
|
72
|
+
return value === void 0 ? fallback : parseNumbers(value, flag)[0];
|
|
73
|
+
}
|
|
74
|
+
function window(info, start, end, flags = ["--start", "--end"]) {
|
|
75
|
+
const a = num(start, flags[0], 0);
|
|
76
|
+
const b = Math.min(info.duration, num(end, flags[1], info.duration));
|
|
77
|
+
if (!(b > a))
|
|
78
|
+
throw new Fix(
|
|
79
|
+
`${flags[1]} ${b} is not after ${flags[0]} ${a}`,
|
|
80
|
+
`${flags[0]} 0 ${flags[1]} ${Math.min(6, info.duration)}`
|
|
81
|
+
);
|
|
82
|
+
return [a, b];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
runMeasure,
|
|
87
|
+
videoArg,
|
|
88
|
+
roiArg,
|
|
89
|
+
outArg,
|
|
90
|
+
jsonArg,
|
|
91
|
+
compareWindowArgs,
|
|
92
|
+
videoAndRoi,
|
|
93
|
+
num,
|
|
94
|
+
window
|
|
95
|
+
};
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
trackLintReport,
|
|
9
9
|
trackLintRuleStreak
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LAIGIOEA.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-45UOXUUH.js";
|
|
14
14
|
import {
|
|
15
15
|
LINT_RULE_COUNT,
|
|
16
16
|
LINT_RULE_GROUP_COUNTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HT3D5AKG.js";
|
|
18
18
|
|
|
19
19
|
// src/telemetry/lintStreaks.ts
|
|
20
20
|
import { createHash } from "crypto";
|
|
@@ -7,31 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ambiguousIssue,
|
|
9
9
|
loadBrowserScript
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6LE7K3YM.js";
|
|
11
11
|
import {
|
|
12
12
|
auditClipDurations,
|
|
13
13
|
shouldIgnoreHttpError,
|
|
14
14
|
shouldIgnoreRequestFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZEKV5T3I.js";
|
|
16
16
|
import {
|
|
17
17
|
serveStaticProjectHtml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-N6XKBBT5.js";
|
|
19
19
|
import {
|
|
20
20
|
STUDIO_PREVIEW_CAPTURE_MODE,
|
|
21
21
|
STUDIO_PREVIEW_MARK_META
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
artifactDirectory,
|
|
25
|
-
finishSnapshotRun
|
|
26
|
-
} from "./chunk-24F7TOW2.js";
|
|
22
|
+
} from "./chunk-G5KX4X6W.js";
|
|
27
23
|
import {
|
|
28
24
|
FfmpegUnavailableError,
|
|
29
25
|
decideMediaProxyEligibility,
|
|
30
26
|
getProxyCachePath,
|
|
31
27
|
proxyVariantFor,
|
|
32
28
|
resolveProxies,
|
|
33
|
-
scanProjectMediaCodecMap
|
|
34
|
-
|
|
29
|
+
scanProjectMediaCodecMap,
|
|
30
|
+
shouldPrewarmProxy
|
|
31
|
+
} from "./chunk-UFYWGUUV.js";
|
|
32
|
+
import {
|
|
33
|
+
artifactDirectory,
|
|
34
|
+
finishSnapshotRun
|
|
35
|
+
} from "./chunk-QU5OYMTB.js";
|
|
35
36
|
import {
|
|
36
37
|
AUDIT_SEEK_OPTIONS,
|
|
37
38
|
DEFAULT_ZOOM_PADDING_PX,
|
|
@@ -45,21 +46,21 @@ import {
|
|
|
45
46
|
seekCompositionTimeline,
|
|
46
47
|
seekInPage,
|
|
47
48
|
waitForPreferredSeekTarget
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-JO4LHFFP.js";
|
|
49
50
|
import {
|
|
50
51
|
findStageProxyBox
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PBPHKD56.js";
|
|
52
53
|
import {
|
|
53
54
|
resolveAutoProxy
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2GMHYOV3.js";
|
|
55
56
|
import {
|
|
56
57
|
BrowserCleanupError,
|
|
57
58
|
closeManagedBrowser,
|
|
58
59
|
onStopSignal
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-XZEHFUQF.js";
|
|
60
61
|
import {
|
|
61
62
|
injectTagsAtHeadStart
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-UQECNXFA.js";
|
|
63
64
|
import {
|
|
64
65
|
normalizeErrorMessage
|
|
65
66
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -497,7 +498,7 @@ async function preResolveHostileMediaProxies(projectDir, html, autoProxyOverride
|
|
|
497
498
|
return none;
|
|
498
499
|
}
|
|
499
500
|
const hostileEntries = Object.entries(codecMap).filter(
|
|
500
|
-
([, facts]) => decideMediaProxyEligibility(facts).eligible
|
|
501
|
+
([, facts]) => decideMediaProxyEligibility(facts).eligible && shouldPrewarmProxy(facts)
|
|
501
502
|
);
|
|
502
503
|
if (hostileEntries.length === 0) return none;
|
|
503
504
|
const startedAt = Date.now();
|
|
@@ -578,7 +579,7 @@ function proxyFailedDraft(message) {
|
|
|
578
579
|
return { code: "media_proxy_failed", severity: "warning", message, time: 0 };
|
|
579
580
|
}
|
|
580
581
|
async function loadCheckHtmlWithDeferredMedia(dir) {
|
|
581
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
582
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-4XWX2XPS.js");
|
|
582
583
|
return withCapturePreviewMark(await bundleWithLocalizedFonts(dir));
|
|
583
584
|
}
|
|
584
585
|
function withCapturePreviewMark(html) {
|
|
@@ -635,12 +636,12 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
635
636
|
const rootAnchor = await resolveRootAnchor(page);
|
|
636
637
|
deadline?.keepPartial(() => ({
|
|
637
638
|
runtimeFindings: dropFailedProxyEchoes(
|
|
638
|
-
keepBrokenImageAborts(drafts, /* @__PURE__ */ new Set()),
|
|
639
|
+
keepFailedNetworkChanges(keepBrokenImageAborts(drafts, /* @__PURE__ */ new Set()), /* @__PURE__ */ new Set()),
|
|
639
640
|
failedPaths
|
|
640
641
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
641
642
|
}));
|
|
642
643
|
const launchSettleMs = Date.now() - launchSettleStart;
|
|
643
|
-
const { analyzeClipMediaFit } = await import("./src-
|
|
644
|
+
const { analyzeClipMediaFit } = await import("./src-D7AO7PGH.js");
|
|
644
645
|
for (const entry of await auditClipDurations(page, analyzeClipMediaFit, options.timeout)) {
|
|
645
646
|
drafts.push({ code: "clip_media_fit", severity: entry.level, message: entry.text, time: 0 });
|
|
646
647
|
}
|
|
@@ -665,12 +666,16 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
665
666
|
const helper = await helperOpen?.catch(() => void 0);
|
|
666
667
|
const merged = helper ? mergeHelperDrafts(sampleLog, helper.sampleLog) : drafts;
|
|
667
668
|
const broken = await abortedImagesStillBroken(page, merged);
|
|
669
|
+
const unreachable = await networkChangesStillFailing(merged);
|
|
668
670
|
return {
|
|
669
671
|
...result,
|
|
670
672
|
timings: { ...result.timings, launchSettleMs },
|
|
671
673
|
renderReadyTimedOut: session.renderReadyTimedOut,
|
|
672
674
|
runtimeFindings: dropFailedProxyEchoes(
|
|
673
|
-
dropMotionBlurConsoleEcho(
|
|
675
|
+
dropMotionBlurConsoleEcho(
|
|
676
|
+
keepFailedNetworkChanges(keepBrokenImageAborts(merged, broken), unreachable),
|
|
677
|
+
blur
|
|
678
|
+
),
|
|
674
679
|
failedPaths
|
|
675
680
|
).map((draft) => runtimeFinding(draft, rootAnchor))
|
|
676
681
|
};
|
|
@@ -777,7 +782,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
777
782
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
778
783
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
779
784
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
780
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
785
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-4XWX2XPS.js");
|
|
781
786
|
return withCapturePreviewMark(
|
|
782
787
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
783
788
|
);
|
|
@@ -936,6 +941,9 @@ function wireRuntimeListeners(page, drafts, clock) {
|
|
|
936
941
|
});
|
|
937
942
|
wireNetworkListeners(page, drafts, clock);
|
|
938
943
|
}
|
|
944
|
+
function keepFailedNetworkChanges(drafts, failing) {
|
|
945
|
+
return drafts.filter((draft) => !draft.networkChanged || failing.has(draft.url ?? ""));
|
|
946
|
+
}
|
|
939
947
|
function keepBrokenImageAborts(drafts, broken) {
|
|
940
948
|
return drafts.filter((draft) => !draft.abortedImage || broken.has(draft.url ?? ""));
|
|
941
949
|
}
|
|
@@ -970,6 +978,26 @@ function decodedPath(url) {
|
|
|
970
978
|
}
|
|
971
979
|
}
|
|
972
980
|
var IMAGE_DECODE_CAP_MS = 5e3;
|
|
981
|
+
async function networkChangesStillFailing(drafts) {
|
|
982
|
+
const urls = [
|
|
983
|
+
...new Set(drafts.filter((draft) => draft.networkChanged).map((draft) => draft.url ?? ""))
|
|
984
|
+
];
|
|
985
|
+
const failing = await Promise.all(
|
|
986
|
+
urls.map(async (url) => {
|
|
987
|
+
try {
|
|
988
|
+
const response = await fetch(url, {
|
|
989
|
+
headers: { Range: "bytes=0-0" },
|
|
990
|
+
signal: AbortSignal.timeout(5e3)
|
|
991
|
+
});
|
|
992
|
+
await response.body?.cancel();
|
|
993
|
+
return response.status >= 400;
|
|
994
|
+
} catch {
|
|
995
|
+
return true;
|
|
996
|
+
}
|
|
997
|
+
})
|
|
998
|
+
);
|
|
999
|
+
return new Set(urls.filter((_, i) => failing[i]));
|
|
1000
|
+
}
|
|
973
1001
|
async function abortedImagesStillBroken(page, drafts) {
|
|
974
1002
|
const urls = drafts.filter((draft) => draft.abortedImage).map((draft) => draft.url ?? "");
|
|
975
1003
|
if (urls.length === 0) return /* @__PURE__ */ new Set();
|
|
@@ -1009,7 +1037,8 @@ function wireNetworkListeners(page, drafts, clock) {
|
|
|
1009
1037
|
message: `Failed to load ${urlPath(url)}: ${failure ?? "net::ERR_FAILED"}`,
|
|
1010
1038
|
...clock.now(),
|
|
1011
1039
|
url,
|
|
1012
|
-
abortedImage: failure === "net::ERR_ABORTED" && request.resourceType() === "image"
|
|
1040
|
+
abortedImage: failure === "net::ERR_ABORTED" && request.resourceType() === "image",
|
|
1041
|
+
networkChanged: failure === "net::ERR_NETWORK_CHANGED"
|
|
1013
1042
|
});
|
|
1014
1043
|
});
|
|
1015
1044
|
page.on("response", (response) => {
|
|
@@ -1123,7 +1152,13 @@ async function collectCraftFilm(page) {
|
|
|
1123
1152
|
return { soundSources: (isRecord(raw) ? numberValue(raw, "soundSources") : null) ?? 0 };
|
|
1124
1153
|
}
|
|
1125
1154
|
var CRAFT_PART_NUMBERS = ["key", "block", "opacity", "fontPx"];
|
|
1126
|
-
var CRAFT_PART_STRINGS = [
|
|
1155
|
+
var CRAFT_PART_STRINGS = [
|
|
1156
|
+
"selector",
|
|
1157
|
+
"blockSelector",
|
|
1158
|
+
"sourceFile",
|
|
1159
|
+
"text",
|
|
1160
|
+
"blockText"
|
|
1161
|
+
];
|
|
1127
1162
|
var CRAFT_RECT_NUMBERS = ["left", "top", "width", "height"];
|
|
1128
1163
|
function parseCraftTextPart(value) {
|
|
1129
1164
|
if (!isRecord(value)) return [];
|
|
@@ -2053,8 +2088,10 @@ export {
|
|
|
2053
2088
|
mergeHelperDrafts,
|
|
2054
2089
|
captureFindingCrops,
|
|
2055
2090
|
captureFindingFrames,
|
|
2091
|
+
keepFailedNetworkChanges,
|
|
2056
2092
|
keepBrokenImageAborts,
|
|
2057
2093
|
dropFailedProxyEchoes,
|
|
2094
|
+
networkChangesStillFailing,
|
|
2058
2095
|
createPageDriver,
|
|
2059
2096
|
collectSeekClock,
|
|
2060
2097
|
captureOverviewShot,
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getCachedGpuEncoder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
10
10
|
import {
|
|
11
11
|
runCancellableProcess
|
|
12
12
|
} from "./chunk-X6JUUQCM.js";
|
|
13
13
|
import {
|
|
14
14
|
findFfBinary,
|
|
15
15
|
getSkippedX86Binary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HYRPH6LL.js";
|
|
17
17
|
import {
|
|
18
18
|
detectWsl
|
|
19
19
|
} from "./chunk-7KDQAD2W.js";
|
|
@@ -188,18 +188,20 @@ function chromeLaunchRemediation(errorMessage) {
|
|
|
188
188
|
|
|
189
189
|
// src/browser/ffmpeg.ts
|
|
190
190
|
var H264EncoderUnavailableError = class extends Error {
|
|
191
|
-
constructor(hevcEncoderAvailable = false) {
|
|
192
|
-
super(
|
|
191
|
+
constructor(hevcEncoderAvailable = false, ffmpegPath) {
|
|
192
|
+
super(
|
|
193
|
+
`${ffmpegPath ?? "This FFmpeg build"} has no libx264 and no GPU H.264 encoder that works on this machine.`
|
|
194
|
+
);
|
|
193
195
|
this.hevcEncoderAvailable = hevcEncoderAvailable;
|
|
194
196
|
this.name = "H264EncoderUnavailableError";
|
|
195
197
|
}
|
|
196
198
|
hevcEncoderAvailable;
|
|
197
199
|
};
|
|
198
|
-
function resolveH264EncoderMode(ffmpegEncodersOutput, gpuRequested, usableGpu) {
|
|
200
|
+
function resolveH264EncoderMode(ffmpegEncodersOutput, gpuRequested, usableGpu, ffmpegPath) {
|
|
199
201
|
if (gpuRequested && usableGpu) return "gpu";
|
|
200
202
|
if (hasLibx264(ffmpegEncodersOutput)) return "software";
|
|
201
203
|
if (usableGpu) return "gpu";
|
|
202
|
-
throw new H264EncoderUnavailableError(/\blibx265\b/.test(ffmpegEncodersOutput));
|
|
204
|
+
throw new H264EncoderUnavailableError(/\blibx265\b/.test(ffmpegEncodersOutput), ffmpegPath);
|
|
203
205
|
}
|
|
204
206
|
function hasLibx264(ffmpegEncodersOutput) {
|
|
205
207
|
return /\blibx264\b/.test(ffmpegEncodersOutput);
|
|
@@ -211,7 +213,7 @@ async function detectH264EncoderModeForRender(ffmpegPath, gpuRequested, signal,
|
|
|
211
213
|
});
|
|
212
214
|
const needsGpu = gpuRequested || !hasLibx264(result.stdout);
|
|
213
215
|
const usableGpu = needsGpu && await probeGpu() !== null;
|
|
214
|
-
return resolveH264EncoderMode(result.stdout, gpuRequested, usableGpu);
|
|
216
|
+
return resolveH264EncoderMode(result.stdout, gpuRequested, usableGpu, ffmpegPath);
|
|
215
217
|
}
|
|
216
218
|
function findFFmpeg() {
|
|
217
219
|
return findFfBinary("ffmpeg", { configuredMustExist: true });
|
|
@@ -239,9 +241,9 @@ function getFFmpegInstallCommand() {
|
|
|
239
241
|
}
|
|
240
242
|
}
|
|
241
243
|
function getFFmpegInstallHint() {
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
return
|
|
244
|
+
const ignored = ["ffmpeg", "ffprobe"].filter((name) => !findFfBinary(name, { configuredMustExist: true })).map(getSkippedX86Binary).filter((path) => path !== void 0);
|
|
245
|
+
const note = ignored.map((path) => ` (ignored ${path}: x86_64 only, it cannot run on this Mac)`);
|
|
246
|
+
return installHint() + note.join("");
|
|
245
247
|
}
|
|
246
248
|
function installHint() {
|
|
247
249
|
const command = getFFmpegInstallCommand();
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveCaptureBrowserGpuMode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B5HFCGI7.js";
|
|
10
10
|
import {
|
|
11
11
|
explainChromeLaunchFailure,
|
|
12
12
|
inAgentSandbox,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
oneProcessOverPipe,
|
|
16
16
|
pipeLaunchClosedOnMac,
|
|
17
17
|
sandboxDeniedRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
19
19
|
import {
|
|
20
20
|
processIsAlive
|
|
21
21
|
} from "./chunk-KGPLIH7B.js";
|