hyperframes 0.8.222 → 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-6MPLIWVP.js → add-PBLOPJHC.js} +12 -12
- package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-OD74HKYZ.js} +7 -7
- package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-QCG2BTDC.js} +7 -7
- package/dist/api.d.ts +5 -3
- package/dist/api.js +32 -21
- package/dist/{asset-Y735VQV6.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-ZX5WZTDQ.js} +8 -8
- package/dist/{audio-VMMCGPOV.js → audio-7AH2C6PB.js} +145 -1153
- package/dist/{auth-BD5NHYRA.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4NR7RMT7.js → batchRender-UR67LI4H.js} +8 -8
- package/dist/{beats-PKEHQHBY.js → beats-ISWSYNN6.js} +10 -10
- package/dist/{benchmark-K55DDFHG.js → benchmark-7JUATINH.js} +8 -8
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-G2WFWJJ3.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-U3EEAPI6.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-24PIC3TZ.js → capture-LBEGVQTJ.js} +25 -25
- package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-5L3J4MZ4.js} +12 -12
- package/dist/{catalog-J3BU4TFW.js → catalog-SNUTPI57.js} +12 -12
- package/dist/{catch-up-LDGNMEGL.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-J6HG6EKE.js → check-MQCBMOKA.js} +40 -39
- package/dist/{checkAudio-MAX7JUYG.js → checkAudio-6VPMLIY6.js} +15 -15
- package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-SHUVFQ4S.js} +34 -33
- package/dist/{chunk-P5M3AXEP.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-7D2LTSNV.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-G675S644.js → chunk-3FGEDDSA.js} +26 -26
- package/dist/{chunk-D6LGD472.js → chunk-44IPXXSK.js} +6 -4
- package/dist/{chunk-FT3CNACL.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-NUE44RN2.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-AIXH3V5A.js → chunk-4XQQQ4KN.js} +3 -3
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-YEKJOA47.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-QOZPWIYV.js → chunk-6LE7K3YM.js} +16 -13
- package/dist/{chunk-DC26QLB7.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-CZOC7WY7.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-G2EY3MVW.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-OAXWHPNS.js → chunk-A5WWEW6U.js} +1 -1
- package/dist/{chunk-Y7IV5MAK.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-F6QV5N3A.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-K5UCRKUK.js → chunk-B6F33PUK.js} +2 -2
- package/dist/{chunk-HQDHMAUI.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-DNTPNSH5.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-BPIY5LB3.js → chunk-C466I3DT.js} +3 -3
- package/dist/{chunk-KEY2VA65.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-JQWITWVC.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-RRPO44PE.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-SKCS4SUZ.js → chunk-EX75C5HT.js} +13 -9
- package/dist/{chunk-3RXZZIDQ.js → chunk-FKBWONRY.js} +2 -2
- package/dist/{chunk-CVY6OIKN.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-WWT6ETQA.js → chunk-G5KX4X6W.js} +26 -26
- package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-VJVVWYP6.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-IGBOFU2Y.js → chunk-IQ7FABPU.js} +2 -2
- package/dist/{chunk-ZPTNLDOB.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-IB7UYGXR.js → chunk-JO4LHFFP.js} +9 -9
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-L55LAERP.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ZBNK6X5O.js → chunk-KCDWRMTC.js} +2 -2
- package/dist/{chunk-GOWU3NCE.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-7IH3RSSG.js → chunk-KT2WLSX5.js} +10 -10
- package/dist/{chunk-AOHG22HQ.js → chunk-KWYK65GR.js} +5 -5
- package/dist/{chunk-AN4USOFT.js → chunk-LAIGIOEA.js} +1 -1
- package/dist/{chunk-E5IIR67Q.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-GHEYGMKD.js → chunk-M4UVOUWC.js} +1 -1
- package/dist/{chunk-DIXTEVWQ.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/{chunk-EOUKB53E.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-6CFBFWLF.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-OROHGC7W.js → chunk-N6XKBBT5.js} +7 -7
- package/dist/{chunk-4VEXJTUT.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-42Q3VX34.js → chunk-OL2C3ODS.js} +5 -5
- package/dist/{chunk-ZLXWRYOO.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-BDZSH6P3.js → chunk-OWFSGDQS.js} +1 -1
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-6W3DY5BP.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-52VXA3SC.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-537WSYHU.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-XHD7RKEZ.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-WJYFJGYT.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-OQLYKDL5.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-Z5VQBRU2.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-EE7YWKDY.js → chunk-SX7ESVCQ.js} +4 -4
- package/dist/{chunk-AXVTL7B6.js → chunk-UFYWGUUV.js} +2 -2
- package/dist/{chunk-DSHFKKSZ.js → chunk-UGUWSAJT.js} +2 -2
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-QYRMR45H.js → chunk-UQVAAEPQ.js} +1 -1
- 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-WGOIJN57.js +95 -0
- package/dist/{chunk-GODT7QDZ.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RIGSGNDQ.js → chunk-WUXDIF5D.js} +20 -19
- package/dist/{chunk-5GSEM63G.js → chunk-WWOHLNFO.js} +1 -1
- package/dist/{chunk-L37AZWB2.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-FMKI7ZLM.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-YHL4CVTF.js → chunk-ZEKV5T3I.js} +13 -13
- package/dist/{clean-K6IM3LC4.js → clean-JZOPMJMV.js} +21 -21
- package/dist/cli.js +58 -55
- package/dist/{cloud-OV7EA4BJ.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-ZEMODIOP.js → cloudrun-LA2FKS2F.js} +5 -5
- package/dist/{compare-MJZ3D3HA.js → compare-IQCFSC5Z.js} +30 -30
- package/dist/{compiler-6KKETX77.js → compiler-J7OZQIPD.js} +4 -4
- package/dist/{component-EVXMYIP3.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-PZ7FQ7WN.js → compositions-FOC2CAZX.js} +13 -13
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-DL3XA4QV.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-VEYP3IP5.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
- package/dist/{dist-M77KFAYW.js → dist-XW7FATO6.js} +2 -2
- package/dist/{doctor-JM2WHH7Y.js → doctor-4ZH7WFU6.js} +11 -11
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-S7KVBRSL.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-GW5I5RCG.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-7OR5FVTX.js → feedback-M5GZWDXP.js} +12 -12
- package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-27H6P7ZU.js} +7 -7
- package/dist/{figma-444HKFX5.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-6UTF3225.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-Z4MM64HY.js} +7 -7
- package/dist/{grade-compare-UCTAYN3B.js → grade-compare-IM7Z7HWI.js} +34 -31
- package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-CXI2ZMUX.js} +8 -8
- package/dist/{help-HZR32XWP.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQ56MZIA.js → history-5P5YVP5H.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-RPIIP7RN.js → info-5ZGNJJVA.js} +7 -7
- package/dist/{init-ONAWKHFW.js → init-NWIAEYSX.js} +29 -28
- package/dist/{inspect-A75PYOWJ.js → inspect-HBLAVW5C.js} +31 -30
- package/dist/{installer-ISMCCFBZ.js → installer-KVFTBZZ5.js} +4 -4
- package/dist/{keyframes-2I75DP3O.js → keyframes-LFCLUY2R.js} +6 -6
- package/dist/{lambda-4QIHGPGJ.js → lambda-RFWTTMLU.js} +13 -13
- package/dist/{layout-GW7WE7RT.js → layout-WOG2Y5ND.js} +31 -30
- package/dist/{lint-OWP72OZQ.js → lint-7MALXMMF.js} +8 -8
- package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
- package/dist/{list-WVK7ZCPW.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-IQWHN7BH.js → localPage-IN36JVJU.js} +7 -7
- package/dist/{login-Q5CNHYWU.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-JCYVNEWH.js → manager-SFL6GLYX.js} +9 -8
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3R6DYEAZ.js} +16 -16
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-CFXKDYZ3.js → models-NNC53UPU.js} +11 -11
- package/dist/{motionShot-CWUEI4ZM.js → motionShot-5BI5JFUP.js} +15 -15
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-FASY33LR.js → normalize-audio-6Z2WN56Q.js} +8 -8
- package/dist/{open-KOVVESYN.js → open-5NCEN6RC.js} +11 -11
- package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-DH3XKR3C.js} +13 -12
- package/dist/{pipeline-C6EZVV43.js → pipeline-CGEGQAPH.js} +10 -10
- package/dist/{play-MZJI6SMH.js → play-K37BN736.js} +23 -23
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-K4SPUWXP.js → preflight-CG7H3D5B.js} +8 -8
- package/dist/{present-7L7ZTG7F.js → present-KQ53DOHA.js} +18 -18
- package/dist/{preview-QGDVMR3X.js → preview-V7CYHL6U.js} +21 -21
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-EJPNNY3E.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-EEF6OPXO.js → projectConfig-WXCB5AZE.js} +6 -6
- package/dist/{publication-5KF44AKQ.js → publication-KG4UDZRM.js} +2 -2
- package/dist/{publish-SSKWZ5TE.js → publish-MEQB543T.js} +16 -16
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-PCL6I5SZ.js → remove-background-FSV5KQK3.js} +11 -11
- package/dist/{render-DH4UA7KW.js → render-O4S4SURS.js} +6 -6
- package/dist/{render-UPRWOGLS.js → render-SQXZAGPQ.js} +37 -37
- package/dist/{render-DRWQ6F37.js → render-SY4AXKXC.js} +33 -33
- package/dist/{render-batch-EBW5WHB5.js → render-batch-GTZQUB3H.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZSZXNRFP.js → resolver-BQZNCVJS.js} +4 -4
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{sherpa-IKVUCBOW.js → sherpa-KH3PJAUG.js} +12 -11
- package/dist/skills/media-use/SKILL.md +20 -21
- 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-ZREHX3TU.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{snapshot-KPFLZNEL.js → snapshot-4BORZ3ED.js} +37 -36
- package/dist/{src-QRV3466B.js → src-6ZOFAM3F.js} +9 -9
- package/dist/{src-EPOGDJTT.js → src-D7AO7PGH.js} +6 -6
- package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-Q23A6XU2.js} +19 -19
- 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-C8VIUiGz.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-CVPNbydK.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-7WFZIIPL.js → studio-api-XVVJZ7YT.js} +15 -15
- package/dist/{studioServer-3XZTLI26.js → studioServer-6HG3AMTW.js} +49 -49
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-BMLI4TMC.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/{timeline-EDCDO2ZR.js → timeline-6477OWFA.js} +25 -21
- package/dist/{tokens-2ZFLFO3K.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-3WMH62HH.js → transcribe-HA4UGLKO.js} +11 -10
- package/dist/{transcribe-Y2LPBT7I.js → transcribe-ITVANIDK.js} +35 -18
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-5LFZGC3P.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-X7QVSEKP.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-VWHCESDD.js} +6 -6
- package/dist/{validate-26KQ5VX7.js → validate-7VG2RLP2.js} +24 -24
- package/dist/{video-BPKLZIJK.js → video-LM3FYHGG.js} +8 -8
- package/dist/warmCheck.js +40 -39
- package/package.json +1 -1
- package/dist/chunk-LL3VMDAC.js +0 -5013
- package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -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-ZAJQFY5Q.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) {
|
|
@@ -640,7 +641,7 @@ async function runBrowserCheck(project, options, motion, runGrid, deadline, prel
|
|
|
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
|
}
|
|
@@ -781,7 +782,7 @@ async function captureFindingCrops(project, options, requests, deadline) {
|
|
|
781
782
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
782
783
|
if (requests.length === 0) return { written: [], inspected: [] };
|
|
783
784
|
const inspector = requests.some((request) => request.inspect?.length) ? await prepareFindingInspector(project.dir, async (bundleOptions) => {
|
|
784
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
785
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-4XWX2XPS.js");
|
|
785
786
|
return withCapturePreviewMark(
|
|
786
787
|
await bundleWithLocalizedFonts(project.dir, void 0, bundleOptions)
|
|
787
788
|
);
|
|
@@ -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";
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2GMHYOV3.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OWFSGDQS.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SNFVQDKE.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JO4LHFFP.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BN75GXZM.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PBPHKD56.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XZEHFUQF.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
} from "./chunk-2GICKZ3I.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveNaturalMediaTimelineDuration
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UQECNXFA.js";
|
|
35
35
|
import {
|
|
36
36
|
decodeWellFormedEscapes
|
|
37
37
|
} from "./chunk-C2KEGBR3.js";
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-K5GMPWMG.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
252
252
|
async function localizeRemoteAssets(html) {
|
|
253
253
|
let dir;
|
|
254
254
|
try {
|
|
255
|
-
const { loadProducer } = await import("./producer-
|
|
255
|
+
const { loadProducer } = await import("./producer-UD32S7PX.js");
|
|
256
256
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
257
257
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
258
258
|
const assetDir = dir;
|
|
@@ -273,10 +273,10 @@ async function localizeRemoteAssets(html) {
|
|
|
273
273
|
}
|
|
274
274
|
async function validateInBrowser(project, opts) {
|
|
275
275
|
const projectDir = project.dir;
|
|
276
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
276
|
+
const { bundleToSingleHtml } = await import("./compiler-J7OZQIPD.js");
|
|
277
277
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
278
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
279
|
-
const { lintProject } = await import("./lintProject-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-Q23A6XU2.js");
|
|
279
|
+
const { lintProject } = await import("./lintProject-6H64SX3V.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
282
282
|
const html = await bundleToSingleHtml(projectDir);
|
|
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
|
|
|
297
297
|
try {
|
|
298
298
|
const browser = await ensureBrowser();
|
|
299
299
|
const puppeteer = await import("puppeteer-core");
|
|
300
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
300
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-D7AO7PGH.js");
|
|
301
301
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
302
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
302
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-Z4MM64HY.js");
|
|
303
303
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
304
304
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
305
305
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|