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
|
@@ -9,27 +9,30 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SNFVQDKE.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6XKBBT5.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JO4LHFFP.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
25
|
} from "./chunk-HOTXWVVP.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BN75GXZM.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XZEHFUQF.js";
|
|
33
|
+
import {
|
|
34
|
+
readJsonFileText
|
|
35
|
+
} from "./chunk-EHZESMRB.js";
|
|
33
36
|
import {
|
|
34
37
|
defineCommand
|
|
35
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -39,7 +42,7 @@ import {
|
|
|
39
42
|
import {
|
|
40
43
|
printDeprecationNotice,
|
|
41
44
|
withMeta
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-K5GMPWMG.js";
|
|
43
46
|
import {
|
|
44
47
|
failureMessage,
|
|
45
48
|
jsonFailure
|
|
@@ -50,7 +53,7 @@ import {
|
|
|
50
53
|
} from "./chunk-DP5LF7GF.js";
|
|
51
54
|
|
|
52
55
|
// src/commands/layout.ts
|
|
53
|
-
import { existsSync as existsSync2, readFileSync
|
|
56
|
+
import { existsSync as existsSync2, readFileSync } from "fs";
|
|
54
57
|
import { dirname, join as join2 } from "path";
|
|
55
58
|
import { fileURLToPath } from "url";
|
|
56
59
|
|
|
@@ -527,7 +530,7 @@ function collectSamplingTargets(assertions) {
|
|
|
527
530
|
}
|
|
528
531
|
|
|
529
532
|
// src/utils/motionSpec.ts
|
|
530
|
-
import { existsSync,
|
|
533
|
+
import { existsSync, readdirSync } from "fs";
|
|
531
534
|
import { basename, join } from "path";
|
|
532
535
|
function isObject(value) {
|
|
533
536
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -620,7 +623,7 @@ function findMotionSpec(projectDir) {
|
|
|
620
623
|
function readMotionSpec(path) {
|
|
621
624
|
let raw;
|
|
622
625
|
try {
|
|
623
|
-
raw = JSON.parse(
|
|
626
|
+
raw = JSON.parse(readJsonFileText(path));
|
|
624
627
|
} catch (err) {
|
|
625
628
|
return { ok: false, errors: [`could not read ${basename(path)}: ${err.message}`] };
|
|
626
629
|
}
|
|
@@ -706,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
706
709
|
});
|
|
707
710
|
}
|
|
708
711
|
async function bundleProjectHtml(projectDir) {
|
|
709
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-J7OZQIPD.js");
|
|
710
713
|
return bundleToSingleHtml(projectDir);
|
|
711
714
|
}
|
|
712
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -725,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
725
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
726
729
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
727
730
|
const puppeteer = await import("puppeteer-core");
|
|
728
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-D7AO7PGH.js");
|
|
729
732
|
const {
|
|
730
733
|
assertWebGpuAdapterAvailable,
|
|
731
734
|
compositionRequiresWebGpu,
|
|
732
735
|
resolveLocalBrowserGpuMode,
|
|
733
736
|
resolveLocalWebGpu
|
|
734
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-Z4MM64HY.js");
|
|
735
738
|
const html = await bundleProjectHtml(projectDir);
|
|
736
739
|
const server = await serveStaticProjectHtml(
|
|
737
740
|
projectDir,
|
|
@@ -801,7 +804,7 @@ async function runLayoutAudit(projectDir, opts) {
|
|
|
801
804
|
function loadBrowserScript(name) {
|
|
802
805
|
const candidates = [join2(__dirname, name), join2(__dirname, "commands", name)];
|
|
803
806
|
for (const candidate of candidates) {
|
|
804
|
-
if (existsSync2(candidate)) return
|
|
807
|
+
if (existsSync2(candidate)) return readFileSync(candidate, "utf-8");
|
|
805
808
|
}
|
|
806
809
|
throw new Error(`Missing browser script ${name}`);
|
|
807
810
|
}
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JNQCM6CR.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|
|
@@ -0,0 +1,312 @@
|
|
|
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
|
+
findCuts
|
|
9
|
+
} from "./chunk-OZM6VLD7.js";
|
|
10
|
+
import {
|
|
11
|
+
grey,
|
|
12
|
+
readClip,
|
|
13
|
+
round,
|
|
14
|
+
videoClip,
|
|
15
|
+
writeImage
|
|
16
|
+
} from "./chunk-VJM6NX54.js";
|
|
17
|
+
|
|
18
|
+
// src/measure/events.ts
|
|
19
|
+
var EVENT_W = 160;
|
|
20
|
+
var CUT_SHARE = 0.7;
|
|
21
|
+
var CUT_GRID = 4;
|
|
22
|
+
var HOLD_S = 0.3;
|
|
23
|
+
var STEP_MAX_S = 0.5;
|
|
24
|
+
var FLASH_FRAMES = 2;
|
|
25
|
+
var STRIP_MAX = 24;
|
|
26
|
+
var STRIP_W = 1200;
|
|
27
|
+
var WINDOW_GAP_S = 0.25;
|
|
28
|
+
var WINDOW_MAX_S = 1.5;
|
|
29
|
+
function cells(cols, rows, w, h) {
|
|
30
|
+
return Array.from({ length: rows * cols }, (_, i) => {
|
|
31
|
+
const [r, c] = [Math.floor(i / cols), i % cols];
|
|
32
|
+
return {
|
|
33
|
+
name: `r${r}c${c}`,
|
|
34
|
+
rect: [
|
|
35
|
+
Math.floor(c * w / cols),
|
|
36
|
+
Math.floor(r * h / rows),
|
|
37
|
+
Math.floor((c + 1) * w / cols),
|
|
38
|
+
Math.floor((r + 1) * h / rows)
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function diff(a, b, w, [x0, y0, x1, y1]) {
|
|
44
|
+
let s = 0;
|
|
45
|
+
for (let y = y0; y < y1; y++)
|
|
46
|
+
for (let x = x0; x < x1; x++) s += Math.abs(a[y * w + x] - b[y * w + x]);
|
|
47
|
+
return s / Math.max(1, (x1 - x0) * (y1 - y0));
|
|
48
|
+
}
|
|
49
|
+
function level(f, w, [x0, y0, x1, y1]) {
|
|
50
|
+
let [s, s2] = [0, 0];
|
|
51
|
+
for (let y = y0; y < y1; y++)
|
|
52
|
+
for (let x = x0; x < x1; x++) {
|
|
53
|
+
s += f[y * w + x];
|
|
54
|
+
s2 += f[y * w + x] ** 2;
|
|
55
|
+
}
|
|
56
|
+
const n = Math.max(1, (x1 - x0) * (y1 - y0));
|
|
57
|
+
return { mean: s / n, std: Math.sqrt(Math.max(0, s2 / n - (s / n) ** 2)) };
|
|
58
|
+
}
|
|
59
|
+
var changes = (g, w, rect) => g.map((f, i) => i ? diff(f, g[i - 1], w, rect) : 0);
|
|
60
|
+
function bursts(d) {
|
|
61
|
+
const q = d.slice(1).sort((a, b) => a - b);
|
|
62
|
+
const act = Math.max(2, 2 * (q[Math.floor(q.length / 4)] ?? 0));
|
|
63
|
+
const out = [];
|
|
64
|
+
for (let i = 1; i < d.length; i++) {
|
|
65
|
+
if (d[i] <= act) continue;
|
|
66
|
+
const last = out.at(-1);
|
|
67
|
+
if (last && i - last[1] <= 2) last[1] = i;
|
|
68
|
+
else out.push([i, i]);
|
|
69
|
+
}
|
|
70
|
+
return out;
|
|
71
|
+
}
|
|
72
|
+
function stills(d, fps) {
|
|
73
|
+
const q = d.slice(1).sort((a, b) => a - b);
|
|
74
|
+
const floor = Math.min(1.5, Math.max(0.5, 2 * (q[Math.floor(q.length / 10)] ?? 0)));
|
|
75
|
+
const out = [];
|
|
76
|
+
for (let i = 1, run = 0; i <= d.length; i++) {
|
|
77
|
+
if (i < d.length && d[i] <= floor) run++;
|
|
78
|
+
else {
|
|
79
|
+
if (run + 1 >= HOLD_S * fps) out.push([i - run - 1, run + 1]);
|
|
80
|
+
run = 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
function groups(items, near) {
|
|
86
|
+
const root = items.map((_, i) => i);
|
|
87
|
+
const find = (i) => root[i] === i ? i : root[i] = find(root[i]);
|
|
88
|
+
for (let i = 0; i < items.length; i++)
|
|
89
|
+
for (let j = i + 1; j < items.length; j++)
|
|
90
|
+
if (near(items[i], items[j])) root[find(i)] = find(j);
|
|
91
|
+
const out = /* @__PURE__ */ new Map();
|
|
92
|
+
items.forEach((it, i) => out.set(find(i), [...out.get(find(i)) ?? [], it]));
|
|
93
|
+
return [...out.values()];
|
|
94
|
+
}
|
|
95
|
+
function cutFrames(g, w, cutCells, thr) {
|
|
96
|
+
const d = cutCells.map((c) => changes(g, w, c.rect));
|
|
97
|
+
const hits = g.map((_, i) => i).filter((i) => i > 0 && d.filter((x) => x[i] >= thr).length >= CUT_SHARE * cutCells.length);
|
|
98
|
+
const cuts = [];
|
|
99
|
+
const flashes = [];
|
|
100
|
+
for (let k = 0; k < hits.length; k++) {
|
|
101
|
+
const [i, j] = [hits[k], hits[k + 1]];
|
|
102
|
+
const last = cuts.at(-1);
|
|
103
|
+
if (j !== void 0 && j - i <= FLASH_FRAMES && diff(g[j], g[i - 1], w, [0, 0, w, g[0].length / w]) < thr) {
|
|
104
|
+
flashes.push([i, j - 1]);
|
|
105
|
+
k++;
|
|
106
|
+
} else if (last && i === last[1] + 1)
|
|
107
|
+
last[1] = i;
|
|
108
|
+
else cuts.push([i, i]);
|
|
109
|
+
}
|
|
110
|
+
return { cuts, flashes, d };
|
|
111
|
+
}
|
|
112
|
+
function bursting(g, w, regions, skip, thr, fps) {
|
|
113
|
+
const settle = Math.round(HOLD_S * fps);
|
|
114
|
+
const steps = [];
|
|
115
|
+
const flashes = [];
|
|
116
|
+
const moves = [];
|
|
117
|
+
for (const [ci, c] of regions.entries()) {
|
|
118
|
+
const d = changes(g, w, c.rect);
|
|
119
|
+
for (const [a, b] of bursts(d)) {
|
|
120
|
+
if (skip(a, b)) continue;
|
|
121
|
+
const net = diff(g[b], g[a - 1], w, c.rect);
|
|
122
|
+
const peak = Math.max(...d.slice(a, b + 1));
|
|
123
|
+
const burst = { ci, c, a, b, net, peak };
|
|
124
|
+
if (b - a + 1 <= FLASH_FRAMES && peak >= 2 * thr && b + 1 < g.length && diff(g[b + 1], g[a - 1], w, c.rect) < thr) {
|
|
125
|
+
flashes.push(burst);
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
const was = diff(g[a - 1], g[Math.max(0, a - 1 - settle)], w, c.rect);
|
|
129
|
+
const now = diff(g[b], g[Math.min(g.length - 1, b + settle)], w, c.rect);
|
|
130
|
+
const step = net >= thr && b - a + 1 <= STEP_MAX_S * fps && Math.max(was, now) <= net / 3;
|
|
131
|
+
(step ? steps : moves).push(burst);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return { steps, flashes, moves };
|
|
135
|
+
}
|
|
136
|
+
function detectEvents(opts) {
|
|
137
|
+
const { info, start, end, roi, grid } = opts;
|
|
138
|
+
const thr = opts.thr ?? 5;
|
|
139
|
+
const fps = info.fps;
|
|
140
|
+
const whole = [0, 0, info.width, info.height];
|
|
141
|
+
const sameAsWhole = roi.every((v, i) => v === whole[i]);
|
|
142
|
+
const clip = videoClip(info.path, start, end - start, info);
|
|
143
|
+
const { frames: rgb, w, h } = readClip(clip, { roi, width: EVENT_W });
|
|
144
|
+
const g = rgb.map(grey);
|
|
145
|
+
const wholeG = sameAsWhole ? g : readClip(clip, { width: EVENT_W, gray: true }).frames;
|
|
146
|
+
const wholeH = wholeG[0] ? wholeG[0].length / EVENT_W : h;
|
|
147
|
+
const f0 = Math.ceil(start * fps - 1e-6);
|
|
148
|
+
const at = (i) => ({ frame: f0 + i, t: round((f0 + i) / fps, 3) });
|
|
149
|
+
if (g.length < 3) return { fps, frames: g.length, events: [], rgb, w, h, shown: [] };
|
|
150
|
+
const cutCells = cells(grid?.cols ?? CUT_GRID, grid?.rows ?? CUT_GRID, EVENT_W, wholeH);
|
|
151
|
+
const cut = cutFrames(wholeG, EVENT_W, cutCells, thr);
|
|
152
|
+
const real = new Set(
|
|
153
|
+
findCuts(wholeG).flatMap((c) => Array.from({ length: c.frames }, (_, i) => c.frame + i))
|
|
154
|
+
);
|
|
155
|
+
const alone = ([i, j]) => j === i && cut.cuts.every(([a, b]) => a === i && b === j || b < i - 3 || a > j + 3);
|
|
156
|
+
cut.cuts = cut.cuts.filter((c) => real.has(c[0]) || alone(c));
|
|
157
|
+
const single = { name: "roi", rect: [0, 0, w, h] };
|
|
158
|
+
const regions = grid ? cells(grid.cols, grid.rows, w, h) : [single];
|
|
159
|
+
const covered = (a, b) => [...cut.cuts, ...cut.flashes].some(([x, y]) => x <= b && a <= y);
|
|
160
|
+
const { steps, flashes, moves } = bursting(g, w, regions, covered, thr, fps);
|
|
161
|
+
const cols = grid?.cols ?? 1;
|
|
162
|
+
const touching = (s, o) => Math.abs(Math.floor(s.ci / cols) - Math.floor(o.ci / cols)) <= 1 && Math.abs(s.ci % cols - o.ci % cols) <= 1;
|
|
163
|
+
const overlap = (s, o) => s.a <= o.b + 2 && o.a <= s.b + 2;
|
|
164
|
+
const [kx, ky] = [roi[2] / w, roi[3] / h];
|
|
165
|
+
const event = (grp, type, size) => {
|
|
166
|
+
const [a, b] = [Math.min(...grp.map((s) => s.a)), Math.max(...grp.map((s) => s.b))];
|
|
167
|
+
const rect = [0, 1, 2, 3].map(
|
|
168
|
+
(k) => (k < 2 ? Math.min : Math.max)(...grp.map((s) => s.c.rect[k]))
|
|
169
|
+
);
|
|
170
|
+
const where = grid ? {
|
|
171
|
+
cells: [...new Set(grp.map((s) => s.c.name))].sort(),
|
|
172
|
+
roi: [
|
|
173
|
+
rect[0] * kx + roi[0],
|
|
174
|
+
rect[1] * ky + roi[1],
|
|
175
|
+
(rect[2] - rect[0]) * kx,
|
|
176
|
+
(rect[3] - rect[1]) * ky
|
|
177
|
+
].map(Math.round)
|
|
178
|
+
} : {};
|
|
179
|
+
return {
|
|
180
|
+
type,
|
|
181
|
+
...at(a),
|
|
182
|
+
frames: b - a + 1,
|
|
183
|
+
...where,
|
|
184
|
+
magnitude: round(size, 1),
|
|
185
|
+
before: a - 1,
|
|
186
|
+
after: b,
|
|
187
|
+
rect: grid ? rect : null
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const stepEvents = groups(steps, (s, o) => overlap(s, o) && touching(s, o)).map((grp) => {
|
|
191
|
+
const e = event(grp, "change", grp.reduce((m, s) => m + s.net, 0) / grp.length);
|
|
192
|
+
const box = e.rect ?? [0, 0, w, h];
|
|
193
|
+
const [was, now] = [level(g[e.before], w, box), level(g[e.after], w, box)];
|
|
194
|
+
const up = Math.abs(now.std - was.std) >= 2 ? now.std > was.std : now.mean > was.mean;
|
|
195
|
+
return { ...e, type: up ? "appear" : "disappear" };
|
|
196
|
+
});
|
|
197
|
+
const flashEvents = [
|
|
198
|
+
...groups(flashes, (s, o) => overlap(s, o) && touching(s, o)).map(
|
|
199
|
+
(grp) => event(grp, "flash", Math.max(...grp.map((s) => s.peak)))
|
|
200
|
+
),
|
|
201
|
+
...cut.flashes.map(([i, j]) => ({
|
|
202
|
+
type: "flash",
|
|
203
|
+
...at(i),
|
|
204
|
+
frames: j - i + 1,
|
|
205
|
+
magnitude: round(cut.d.reduce((m, d) => m + d[i], 0) / cut.d.length, 1),
|
|
206
|
+
before: i - 1,
|
|
207
|
+
after: i,
|
|
208
|
+
rect: null
|
|
209
|
+
}))
|
|
210
|
+
];
|
|
211
|
+
const moveEvents = groups(moves, overlap).map(
|
|
212
|
+
(grp) => event(grp, "change", Math.max(...grp.map((s) => s.peak)))
|
|
213
|
+
);
|
|
214
|
+
const cutEvents = cut.cuts.map(([i, j]) => ({
|
|
215
|
+
type: "cut",
|
|
216
|
+
...at(i),
|
|
217
|
+
...j > i ? { frames: j - i + 1 } : {},
|
|
218
|
+
magnitude: round(cut.d.reduce((m, d) => m + d[i], 0) / cut.d.length, 1),
|
|
219
|
+
before: i - 1,
|
|
220
|
+
after: j,
|
|
221
|
+
rect: null
|
|
222
|
+
}));
|
|
223
|
+
const still = changes(grid ? wholeG : g, EVENT_W, [0, 0, EVENT_W, grid ? wholeH : h]);
|
|
224
|
+
const held = stills(still, fps).map(([i, n]) => ({
|
|
225
|
+
type: "hold",
|
|
226
|
+
...at(i),
|
|
227
|
+
seconds: round(n / fps, 2)
|
|
228
|
+
}));
|
|
229
|
+
const weight = (e) => (e.cells?.length ?? 1) * (e.magnitude ?? 0);
|
|
230
|
+
const order = (x, y) => x.frame - y.frame;
|
|
231
|
+
const shown = [
|
|
232
|
+
...cutEvents,
|
|
233
|
+
...flashEvents,
|
|
234
|
+
...[...stepEvents].sort((x, y) => weight(y) - weight(x)),
|
|
235
|
+
...[...moveEvents].sort((x, y) => (y.magnitude ?? 0) - (x.magnitude ?? 0))
|
|
236
|
+
].slice(0, STRIP_MAX).sort(order);
|
|
237
|
+
const plain = ({ before: _b, after: _a, rect: _r, ...e }) => e;
|
|
238
|
+
const events = [...cutEvents, ...flashEvents, ...stepEvents, ...moveEvents].map(plain);
|
|
239
|
+
return { fps, frames: g.length, events: [...events, ...held].sort(order), rgb, w, h, shown };
|
|
240
|
+
}
|
|
241
|
+
function drawStrip(d, out) {
|
|
242
|
+
const { rgb, w, h, shown } = d;
|
|
243
|
+
const per = Math.max(1, Math.floor(STRIP_W / (2 * w + 12)));
|
|
244
|
+
const cw = per * (2 * w + 12);
|
|
245
|
+
const ch = Math.ceil(shown.length / per) * (h + 8);
|
|
246
|
+
const px = new Uint8Array(cw * ch * 3).fill(255);
|
|
247
|
+
shown.forEach((e, k) => {
|
|
248
|
+
const [ox, oy] = [k % per * (2 * w + 12), Math.floor(k / per) * (h + 8)];
|
|
249
|
+
[e.before, e.after].forEach((f, side) => {
|
|
250
|
+
const x0 = ox + side * (w + 2);
|
|
251
|
+
for (let y = 0; y < h; y++)
|
|
252
|
+
px.set(rgb[f].subarray(y * w * 3, (y + 1) * w * 3), ((oy + y) * cw + x0) * 3);
|
|
253
|
+
if (!e.rect) return;
|
|
254
|
+
const [rx0, ry0, rx1, ry1] = e.rect;
|
|
255
|
+
for (let y = ry0; y < ry1; y++)
|
|
256
|
+
for (let x = rx0; x < rx1; x++)
|
|
257
|
+
if (y === ry0 || y === ry1 - 1 || x === rx0 || x === rx1 - 1)
|
|
258
|
+
px.set([255, 0, 0], ((oy + y) * cw + x0 + x) * 3);
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
return writeImage(out, px, cw, ch);
|
|
262
|
+
}
|
|
263
|
+
function lookWindows(events, fps, onsets = []) {
|
|
264
|
+
const pad = 2 / fps;
|
|
265
|
+
const spans = events.filter((e) => e.type !== "hold").map((e) => {
|
|
266
|
+
const where = e.cells ? ` ${e.cells.join(",")}` : "";
|
|
267
|
+
const len = e.type === "flash" ? ` ${e.frames}f` : "";
|
|
268
|
+
return {
|
|
269
|
+
a: e.t - pad,
|
|
270
|
+
b: e.t + ((e.frames ?? 1) - 1) / fps + pad,
|
|
271
|
+
what: `${e.type}${where}${len}`,
|
|
272
|
+
frame: e.frame
|
|
273
|
+
};
|
|
274
|
+
}).sort((x, y) => x.a - y.a);
|
|
275
|
+
const out = [];
|
|
276
|
+
for (const s of spans) {
|
|
277
|
+
const last = out.at(-1);
|
|
278
|
+
if (last && s.a - last.end <= WINDOW_GAP_S && s.b - last.start <= WINDOW_MAX_S) {
|
|
279
|
+
last.end = Math.max(last.end, s.b);
|
|
280
|
+
last.what.push(s.what);
|
|
281
|
+
last.onset_frames.push(s.frame);
|
|
282
|
+
} else out.push({ start: s.a, end: s.b, what: [s.what], onset_frames: [s.frame] });
|
|
283
|
+
}
|
|
284
|
+
return out.map((wnd) => {
|
|
285
|
+
const hits = onsets.filter((t) => t >= wnd.start && t <= wnd.end);
|
|
286
|
+
return {
|
|
287
|
+
start: round(Math.max(0, wnd.start), 3),
|
|
288
|
+
end: round(wnd.end, 3),
|
|
289
|
+
what: wnd.what,
|
|
290
|
+
...hits.length ? { onsets: hits.map((t) => round(t, 3)) } : {},
|
|
291
|
+
onset_frames: [...new Set(wnd.onset_frames)].sort((x, y) => x - y)
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
function countEvents(events) {
|
|
296
|
+
const count = (type) => events.filter((e) => e.type === type).length;
|
|
297
|
+
return {
|
|
298
|
+
cut: count("cut"),
|
|
299
|
+
flash: count("flash"),
|
|
300
|
+
appear: count("appear"),
|
|
301
|
+
disappear: count("disappear"),
|
|
302
|
+
change: count("change"),
|
|
303
|
+
hold: count("hold")
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export {
|
|
308
|
+
detectEvents,
|
|
309
|
+
drawStrip,
|
|
310
|
+
lookWindows,
|
|
311
|
+
countEvents
|
|
312
|
+
};
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-D7AO7PGH.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
refreshIfNeeded
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VBCBHDIW.js";
|
|
10
10
|
import {
|
|
11
11
|
buildAuthHeaders,
|
|
12
12
|
envCredentialVar,
|
|
13
13
|
isTokenExpired,
|
|
14
14
|
tryResolveCredential
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RWSVSCOP.js";
|
|
16
16
|
import {
|
|
17
17
|
isAuthError,
|
|
18
18
|
oauthEnvironment
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P5QGZMGC.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7LKEHM2R.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-5ZBMHUY2.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OWFSGDQS.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-DP5LF7GF.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FKBWONRY.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OWFSGDQS.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HT3D5AKG.js";
|
|
24
24
|
import {
|
|
25
25
|
SPLIT_BOUNDARY_EPSILON_S,
|
|
26
26
|
readClipTiming,
|
|
@@ -4,36 +4,24 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
verifies
|
|
9
|
+
} from "./chunk-RZ6CXJ56.js";
|
|
7
10
|
import {
|
|
8
11
|
downloadFile
|
|
9
12
|
} from "./chunk-R4EWRIDL.js";
|
|
10
13
|
import {
|
|
11
14
|
findFFmpeg
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WWOHLNFO.js";
|
|
13
16
|
import {
|
|
14
17
|
stoppableExecFile
|
|
15
18
|
} from "./chunk-HU2SPFNG.js";
|
|
16
19
|
|
|
17
20
|
// src/whisper/manager.ts
|
|
18
21
|
import { execFileSync } from "child_process";
|
|
19
|
-
import { existsSync, mkdirSync, readdirSync, rmSync, statSync
|
|
22
|
+
import { existsSync, mkdirSync, readdirSync, rmSync, statSync } from "fs";
|
|
20
23
|
import { homedir, platform } from "os";
|
|
21
24
|
import { join } from "path";
|
|
22
|
-
|
|
23
|
-
// src/whisper/modelFile.ts
|
|
24
|
-
import { createHash } from "crypto";
|
|
25
|
-
import { createReadStream, statSync } from "fs";
|
|
26
|
-
async function sha256File(path) {
|
|
27
|
-
const hash = createHash("sha256");
|
|
28
|
-
for await (const chunk of createReadStream(path)) hash.update(chunk);
|
|
29
|
-
return hash.digest("hex");
|
|
30
|
-
}
|
|
31
|
-
async function verifies(path, file) {
|
|
32
|
-
if (statSync(path, { throwIfNoEntry: false })?.size !== file.bytes) return false;
|
|
33
|
-
return await sha256File(path) === file.sha256;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// src/whisper/manager.ts
|
|
37
25
|
var MODELS_DIR = join(homedir(), ".cache", "hyperframes", "whisper", "models");
|
|
38
26
|
var DEFAULT_MODEL = "small.en";
|
|
39
27
|
var WhisperUnavailableError = class extends Error {
|
|
@@ -259,7 +247,7 @@ async function ensureWhisper(options) {
|
|
|
259
247
|
async function ensureModel(model = DEFAULT_MODEL, options) {
|
|
260
248
|
const modelPath = join(MODELS_DIR, `ggml-${model}.bin`);
|
|
261
249
|
const pin = PINNED_MODELS.get(model);
|
|
262
|
-
const cachedBytes =
|
|
250
|
+
const cachedBytes = statSync(modelPath, { throwIfNoEntry: false })?.size;
|
|
263
251
|
if (cachedBytes !== void 0 && (!pin || cachedBytes === pin.bytes)) return modelPath;
|
|
264
252
|
mkdirSync(MODELS_DIR, { recursive: true });
|
|
265
253
|
rmSync(modelPath, { force: true });
|
|
@@ -284,8 +272,6 @@ function hasFFmpeg() {
|
|
|
284
272
|
}
|
|
285
273
|
|
|
286
274
|
export {
|
|
287
|
-
sha256File,
|
|
288
|
-
verifies,
|
|
289
275
|
MODELS_DIR,
|
|
290
276
|
DEFAULT_MODEL,
|
|
291
277
|
WhisperUnavailableError,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
typeDirPath,
|
|
21
21
|
updateRecord,
|
|
22
22
|
withFigmaErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2HBB5U52.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -229,7 +229,7 @@ var asset_default = defineCommand({
|
|
|
229
229
|
rendered > 0 ? `(${results.length} nodes, ${rendered} rendered in 1 figma request)` : `(${results.length} nodes, all reused from cache \u2014 no figma request)`
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
|
-
const { trackFigmaImport } = await import("./telemetry-
|
|
232
|
+
const { trackFigmaImport } = await import("./telemetry-VXPSJ3X3.js");
|
|
233
233
|
trackFigmaImport({
|
|
234
234
|
phase: "asset",
|
|
235
235
|
reused: results.every((r) => r.reused),
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-J3OVTOVC.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A5WWEW6U.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-K5GMPWMG.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-P5QGZMGC.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-SFL6GLYX.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|