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
|
@@ -5,11 +5,13 @@ import { createServer } from "node:http";
|
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import {
|
|
8
|
+
billingRefusal,
|
|
8
9
|
heygenAuthHeaders,
|
|
9
10
|
heygenAuthMethod,
|
|
10
11
|
heygenBase,
|
|
11
12
|
heygenCredential,
|
|
12
13
|
heygenJSON,
|
|
14
|
+
heygenMessage,
|
|
13
15
|
loadEnvFromDir,
|
|
14
16
|
} from "./heygen.mjs";
|
|
15
17
|
|
|
@@ -348,3 +350,34 @@ test("a base that isn't HeyGen's gets no stored or host OAuth credential, only a
|
|
|
348
350
|
}
|
|
349
351
|
});
|
|
350
352
|
});
|
|
353
|
+
|
|
354
|
+
test("a refused HyperFrames-plan call becomes one line with the billing command", () => {
|
|
355
|
+
const refused = (code) => ({
|
|
356
|
+
status: 402,
|
|
357
|
+
body: JSON.stringify({ error: { code, message: "raw" } }),
|
|
358
|
+
});
|
|
359
|
+
assert.equal(
|
|
360
|
+
heygenMessage(refused("hf_subscription_required")),
|
|
361
|
+
"This needs a HyperFrames plan. Run `npx hyperframes billing subscribe`: it opens the page and waits.",
|
|
362
|
+
);
|
|
363
|
+
assert.equal(
|
|
364
|
+
heygenMessage(refused("hf_usage_exhausted")),
|
|
365
|
+
"Out of HyperFrames credits. Run `npx hyperframes billing top-up`: it opens the page and waits.",
|
|
366
|
+
);
|
|
367
|
+
assert.match(
|
|
368
|
+
heygenMessage({ status: 403, body: JSON.stringify({ error: { code: "api_key_required" } }) }),
|
|
369
|
+
/Nothing was charged/,
|
|
370
|
+
);
|
|
371
|
+
// Every other failure keeps HeyGen's own words.
|
|
372
|
+
assert.equal(
|
|
373
|
+
billingRefusal({
|
|
374
|
+
status: 400,
|
|
375
|
+
body: JSON.stringify({ error: { code: "invalid_parameter", message: "bad voice" } }),
|
|
376
|
+
}),
|
|
377
|
+
null,
|
|
378
|
+
);
|
|
379
|
+
assert.equal(
|
|
380
|
+
heygenMessage({ status: 400, body: JSON.stringify({ error: { message: "bad voice" } }) }),
|
|
381
|
+
"bad voice",
|
|
382
|
+
);
|
|
383
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# HeyGen from the HyperFrames CLI
|
|
2
|
+
|
|
3
|
+
`media-use generate` and `transcribe --engine heygen` call HeyGen directly with the HyperFrames sign-in; they need no `heygen` CLI. Every paid call carries a key derived from what it asks, so running the same command again picks up the same job instead of paying twice (a failed or refused one is sent as a new job), and each job is logged in the project's `.hyperframes/heygen-jobs.jsonl`.
|
|
4
|
+
|
|
5
|
+
## Signing in
|
|
6
|
+
|
|
7
|
+
`npx hyperframes auth status` says what is signed in. The credential is read in this order: `HEYGEN_API_KEY`, `HYPERFRAMES_API_KEY`, a host app's `HEYGEN_ACCESS_TOKEN`, then `~/.hyperframes/credentials`, which `npx hyperframes auth login` writes. `heygen auth login` is a separate sign-in that only the `heygen` CLI reads.
|
|
8
|
+
|
|
9
|
+
| Credential | Pays with | Covers |
|
|
10
|
+
| -------------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------- |
|
|
11
|
+
| API key | API credits | everything below |
|
|
12
|
+
| Sign-in (OAuth) | the plan's allowance on subscription credits | avatar videos, video shots, images and voices; music and transcription take an API key |
|
|
13
|
+
| Inside the HyperFrames app | the app | whatever the app allows; nothing to set up |
|
|
14
|
+
|
|
15
|
+
A refusal names its fix: `api_key_required` needs an API key, `402` or `insufficient_credit` needs a top-up, `hf_usage_exhausted` means the plan's allowance is used up.
|
|
16
|
+
|
|
17
|
+
## Making media: `media-use generate`
|
|
18
|
+
|
|
19
|
+
Make it without quoting a price or asking for a budget; `--plan` only prints what a call would cost (`credits` is an estimate in HyperFrames credits), for your own planning; never pass it on. When the person names a credit limit, keep under it with `--max-credits` (SKILL.md, Credits). Make a piece again only for a fault you can name (a cut inside it, text in it, the wrong framing), once, never to chase a motion or look score; a `content_policy_violation` gets one reworded try. A failed or refused job also gets one more try, test calls included; then stop and ask the person, without saying what was spent or what another try costs.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# a still, edited from a reference picture: a clean plate with the words removed
|
|
23
|
+
npx hyperframes media-use generate --type image --reference assets/frame.png --prompt "the same shot with no text or logos" --out assets/plate.png --plan
|
|
24
|
+
# a shot of 5–15 s, starting from a first frame; longer shots are shots chained from each one's last frame
|
|
25
|
+
npx hyperframes media-use generate --type video --first-frame assets/s03-first.png --prompt "slow push in" --seconds 8 --out assets/s03.mp4
|
|
26
|
+
# a person re-shot from a still over one shot of the original (never across a cut), saying that shot's voice with lips
|
|
27
|
+
# in sync and moving as the guide (the original shot itself) does; --mask x,y,w,h[,a-b] (repeatable, the guide's
|
|
28
|
+
# pixels and seconds) blanks text in the guide, which HeyGen would copy
|
|
29
|
+
npx hyperframes media-use generate --type video --reference assets/person.png --audio assets/s02-voice.m4a --motion assets/s02-original.mp4 --mask 110,615,390,165,0.4-2.0 --prompt "talks to camera, seated" --seconds 8 --aspect 9:16 --out assets/s02-person.mp4
|
|
30
|
+
# the same for a person who does not speak: no --audio, the guide clip carries the motion
|
|
31
|
+
npx hyperframes media-use generate --type video --reference assets/person.png --motion assets/s05-original.mp4 --prompt "holds up a jar, smiles" --seconds 6 --aspect 9:16 --out assets/s05-person.mp4
|
|
32
|
+
# a person in a photo speaking a script in a HeyGen voice
|
|
33
|
+
npx hyperframes media-use generate --type avatar --photo assets/person.png --script "…" --voice <voice-id> --out assets/person.mp4
|
|
34
|
+
# a voice reading text
|
|
35
|
+
npx hyperframes media-use generate --type voice --script "…" --voice <voice-id> --out assets/vo.mp3
|
|
36
|
+
# music, 30, 60, 120 or 180 s (instrumental unless --vocals), trimmed to length in the composition
|
|
37
|
+
npx hyperframes media-use generate --type music --prompt "warm lo-fi, soft keys" --seconds 30 --bpm 90 --out assets/music.mp3
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The file lands at `--out` and the media ledger records it as generated, with the route, model, job, prompt and the files it was made from. Pictures and shots carry no text or logos: ask for clean plates and draw words in HyperFrames.
|
|
41
|
+
|
|
42
|
+
| Type | Model | Price |
|
|
43
|
+
| ------ | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| image | nano-banana-2 (default), or gpt-image-2.5 with `--model` | $0.067 an image; gpt-image-2.5 $0.036–0.053 by aspect, plus $0.0082 a reference after the first |
|
|
45
|
+
| video | heygen-video-1, 768p | $0.02 a second from a prompt or first frame; $0.05 a second with a reference picture, voice or guide clip, and the guide's seconds count too (1080p costs about twice) |
|
|
46
|
+
| avatar | talking photo | $4.83 a minute of speech |
|
|
47
|
+
| music | lyria-3-pro | $0.08 a track |
|
|
48
|
+
| voice | the voice's engine | charged per character, not priced ahead |
|
|
49
|
+
|
|
50
|
+
`--plan`'s `usd` is what an API key is charged (HeyGen rounds up to units of $1/60); its `credits` is what a HyperFrames plan charges, on the plan's own rates: a video shot's seconds and guide seconds, plus each picture past the first two. Voice ids come from `heygen voice list` or `npx hyperframes media-use resolve --type voice`; a cloned voice from `heygen voice clone create` (`operations.md`).
|
|
51
|
+
|
|
52
|
+
## Transcription: `transcribe --engine heygen`
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx hyperframes transcribe interview.mp4 --engine heygen --speakers
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Word times from HeyGen's speech model, each word with its speaker under `--speakers`, in the same `transcript.json` local engines write. It takes an API key. The local engines (`--engine auto`) are free and good for one clear voice; HeyGen is the better choice for several speakers, noise or music under the voice.
|
|
@@ -52,12 +52,15 @@ These have a local option AND a higher-quality HeyGen-CLI option. Run the local
|
|
|
52
52
|
one for free/offline; use the HeyGen CLI when quality matters. Showing the user
|
|
53
53
|
a **side-by-side** (local vs HeyGen) is the honest way to let them choose.
|
|
54
54
|
|
|
55
|
-
| Op
|
|
56
|
-
|
|
|
57
|
-
| Background removal
|
|
58
|
-
| Upscale
|
|
59
|
-
| Lipsync (dub)
|
|
60
|
-
| Translate
|
|
55
|
+
| Op | Local (free) | HeyGen CLI (quality) |
|
|
56
|
+
| ----------------------- | -------------------------------------------------- | --------------------------- |
|
|
57
|
+
| Background removal | `hyperframes remove-background in.png` (u2net) | `heygen background-removal` |
|
|
58
|
+
| Upscale | `realesrgan-ncnn-vulkan -i in.png -o out.png -s 4` | n/a |
|
|
59
|
+
| Lipsync (dub) | n/a | `heygen lipsync` |
|
|
60
|
+
| Translate | n/a | `heygen video-translate` |
|
|
61
|
+
| Clone a voice | n/a | `heygen voice clone create` |
|
|
62
|
+
| Text to video | n/a | `heygen video-agent create` |
|
|
63
|
+
| Clips from a long video | n/a | `heygen ai-clipping` |
|
|
61
64
|
|
|
62
65
|
After any op: `resolve --from out.ext --type <type>` to register the derived
|
|
63
66
|
asset (it records provenance and auto-promotes to the global cache).
|
|
@@ -52,9 +52,8 @@ in `references/operations.md`).
|
|
|
52
52
|
|
|
53
53
|
Local Kokoro (voice), mflux (image), and LTX (video) run on-device (free,
|
|
54
54
|
private, offline once cached). The `codex` CLI remains the ChatGPT-sub image
|
|
55
|
-
upsell.
|
|
56
|
-
a
|
|
57
|
-
allowance) so an agent-initiated `resolve --type video` confirms first.
|
|
55
|
+
upsell. Paid calls follow the Credits rule in `SKILL.md`: no prices unasked,
|
|
56
|
+
and a question only when a step won't fit.
|
|
58
57
|
|
|
59
58
|
To force a specific generator (e.g. a user says "make this image with codex"),
|
|
60
59
|
pass `--provider codex`: it pins resolution to that provider and skips the
|
|
@@ -74,15 +73,15 @@ tools are OPT-IN alternatives where they exist; install one to unlock its free,
|
|
|
74
73
|
private, on-device path instead of or ahead of HeyGen for that type. Only
|
|
75
74
|
`ffmpeg`/`ffprobe` are strictly required for the tool to run at all.
|
|
76
75
|
|
|
77
|
-
| Tool | Serves | Install
|
|
78
|
-
| ------------------ | ------------------------------------------------------------------------------------------ |
|
|
79
|
-
| `ffmpeg`/`ffprobe` | adopt probing, smart-grade signalstats, cut, duck bake, loudnorm | system package (`brew install ffmpeg`)
|
|
80
|
-
| `heygen` | catalog (bgm/image/icon) + TTS (voice) + avatar video — the HyperFrames-authenticated path | install through [verified HeyGen release instructions](https://developers.heygen.com/cli), then `npx hyperframes auth login` (helper needs >= v0.3.0)
|
|
81
|
-
| `mflux-generate` | local image gen (FLUX), best-for-RAM | `uv venv ~/.venvs/mflux && VIRTUAL_ENV=~/.venvs/mflux uv pip install mflux==0.9.6`
|
|
82
|
-
| `codex` | image gen upsell (ChatGPT sub) | Codex CLI, logged in via ChatGPT (owns its own auth)
|
|
83
|
-
| `parakeet-mlx` | local transcription (default ASR, best) on Apple Silicon | `uv venv ~/.venvs/parakeet && VIRTUAL_ENV=~/.venvs/parakeet uv pip install parakeet-mlx`
|
|
84
|
-
| `ltx-2-mlx` | local video gen | `git clone https://github.com/dgrauet/ltx-2-mlx && cd ltx-2-mlx && uv sync --all-extras`
|
|
85
|
-
| `npx hyperframes` | Kokoro TTS (voice), Parakeet or whisper.cpp (transcribe), remove-background | via the hyperframes CLI; Parakeet on macOS, Windows and glibc 2.32+ Linux: `npx hyperframes models install parakeet`; whisper.cpp is built on first use (Homebrew on macOS, else git+cmake) |
|
|
76
|
+
| Tool | Serves | Install |
|
|
77
|
+
| ------------------ | ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `ffmpeg`/`ffprobe` | adopt probing, smart-grade signalstats, cut, duck bake, loudnorm | system package (`brew install ffmpeg`) |
|
|
79
|
+
| `heygen` | catalog (bgm/image/icon) + TTS (voice) + avatar video — the HyperFrames-authenticated path | install through [verified HeyGen release instructions](https://developers.heygen.com/cli), then `npx hyperframes auth login` (helper needs >= v0.3.0) |
|
|
80
|
+
| `mflux-generate` | local image gen (FLUX), best-for-RAM | `uv venv ~/.venvs/mflux && VIRTUAL_ENV=~/.venvs/mflux uv pip install mflux==0.9.6` |
|
|
81
|
+
| `codex` | image gen upsell (ChatGPT sub) | Codex CLI, logged in via ChatGPT (owns its own auth) |
|
|
82
|
+
| `parakeet-mlx` | local transcription (default ASR, best) on Apple Silicon | `uv venv ~/.venvs/parakeet && VIRTUAL_ENV=~/.venvs/parakeet uv pip install parakeet-mlx` |
|
|
83
|
+
| `ltx-2-mlx` | local video gen | `git clone https://github.com/dgrauet/ltx-2-mlx && cd ltx-2-mlx && uv sync --all-extras` |
|
|
84
|
+
| `npx hyperframes` | Kokoro TTS (voice), Parakeet or whisper.cpp (transcribe), remove-background | via the hyperframes CLI; Kokoro needs Python 3.10+ with `pip install kokoro-onnx soundfile`; Parakeet on macOS, Windows and glibc 2.32+ Linux: `npx hyperframes models install parakeet`; whisper.cpp is built on first use (Homebrew on macOS, else git+cmake) |
|
|
86
85
|
|
|
87
86
|
The RAM-graded local-model shortlist + exact per-tier install/invoke lives in
|
|
88
87
|
the CLI's bundled media-use engine, not in the standalone skill. Without a tool on PATH, its provider
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function regenerateIndex(projectDir: string): void;
|
|
@@ -18,3 +18,24 @@ export function withReservedFileSync<T>(
|
|
|
18
18
|
ext: string,
|
|
19
19
|
populate: (reservation: Reservation) => T,
|
|
20
20
|
): T;
|
|
21
|
+
|
|
22
|
+
export interface MediaRecord {
|
|
23
|
+
id: string;
|
|
24
|
+
type: string;
|
|
25
|
+
path: string;
|
|
26
|
+
source: string;
|
|
27
|
+
description: string;
|
|
28
|
+
duration?: number;
|
|
29
|
+
provenance?: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
export function recordInPlace(
|
|
32
|
+
projectDir: string,
|
|
33
|
+
record: {
|
|
34
|
+
type: string;
|
|
35
|
+
path: string;
|
|
36
|
+
source: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
duration?: number;
|
|
39
|
+
provenance?: Record<string, unknown>;
|
|
40
|
+
},
|
|
41
|
+
): MediaRecord;
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-LAIGIOEA.js";
|
|
19
|
+
import "./chunk-45UOXUUH.js";
|
|
20
20
|
import "./chunk-PXVQOMKL.js";
|
|
21
21
|
import {
|
|
22
22
|
diag
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
isCoreSkill,
|
|
44
44
|
presentSkills,
|
|
45
45
|
retiredSkillNotice
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-A2KNKY4Z.js";
|
|
47
47
|
import {
|
|
48
48
|
withMeta
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-K5GMPWMG.js";
|
|
50
50
|
import "./chunk-BR2JQQC5.js";
|
|
51
51
|
import "./chunk-BLBMPEBX.js";
|
|
52
52
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
} from "./chunk-DP5LF7GF.js";
|
|
61
61
|
import "./chunk-J3RXEDR2.js";
|
|
62
62
|
import "./chunk-QBXDU24O.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-P5QGZMGC.js";
|
|
64
64
|
import "./chunk-E63BDV4Z.js";
|
|
65
65
|
import "./chunk-G7VEYUZ2.js";
|
|
66
66
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
printSkillsUpdateNotice,
|
|
10
10
|
refreshSkillsCache,
|
|
11
11
|
skillsCheckDue
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-A2KNKY4Z.js";
|
|
13
|
+
import "./chunk-K5GMPWMG.js";
|
|
14
14
|
import "./chunk-BR2JQQC5.js";
|
|
15
15
|
import "./chunk-BLBMPEBX.js";
|
|
16
16
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-SJGE5I5F.js";
|
|
|
18
18
|
import "./chunk-DP5LF7GF.js";
|
|
19
19
|
import "./chunk-J3RXEDR2.js";
|
|
20
20
|
import "./chunk-QBXDU24O.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-P5QGZMGC.js";
|
|
22
22
|
import "./chunk-E63BDV4Z.js";
|
|
23
23
|
import "./chunk-G7VEYUZ2.js";
|
|
24
24
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
findFFmpeg,
|
|
26
26
|
findFFprobe,
|
|
27
27
|
getFFmpegInstallHint
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WWOHLNFO.js";
|
|
29
29
|
import {
|
|
30
30
|
parseTimeoutMs,
|
|
31
31
|
pngDimensions,
|
|
@@ -34,31 +34,31 @@ import {
|
|
|
34
34
|
} from "./chunk-KUXOAS4Z.js";
|
|
35
35
|
import {
|
|
36
36
|
captureArtifactRevision
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-QNLHDYYO.js";
|
|
38
|
+
import "./chunk-NLWG5TU7.js";
|
|
39
39
|
import "./chunk-X7MTZ4T2.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveProject
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SNFVQDKE.js";
|
|
43
43
|
import {
|
|
44
44
|
serveStaticProjectHtml
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import "./chunk-ZLXWRYOO.js";
|
|
45
|
+
} from "./chunk-N6XKBBT5.js";
|
|
47
46
|
import "./chunk-X7MTZ4T2.js";
|
|
47
|
+
import "./chunk-OVINGNLQ.js";
|
|
48
48
|
import "./chunk-XUHOIDKG.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-G5KX4X6W.js";
|
|
50
|
+
import "./chunk-C466I3DT.js";
|
|
51
|
+
import "./chunk-KCDWRMTC.js";
|
|
51
52
|
import "./chunk-AW3XJY4S.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-UFYWGUUV.js";
|
|
54
|
+
import "./chunk-UQVAAEPQ.js";
|
|
53
55
|
import {
|
|
54
56
|
artifactDirectory,
|
|
55
57
|
finishSnapshotRun,
|
|
56
58
|
forgetRecordedArtifacts,
|
|
57
59
|
recordArtifacts,
|
|
58
60
|
retainSnapshotOutput
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-AXVTL7B6.js";
|
|
61
|
-
import "./chunk-QYRMR45H.js";
|
|
61
|
+
} from "./chunk-QU5OYMTB.js";
|
|
62
62
|
import "./chunk-ALVXFXUG.js";
|
|
63
63
|
import {
|
|
64
64
|
DEFAULT_ZOOM_SCALE,
|
|
@@ -70,37 +70,37 @@ import {
|
|
|
70
70
|
runFfmpegOnce,
|
|
71
71
|
seekCompositionTimelineOnly,
|
|
72
72
|
settleCompositionSeek
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-JO4LHFFP.js";
|
|
74
74
|
import "./chunk-HOTXWVVP.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-BN75GXZM.js";
|
|
76
|
+
import "./chunk-7LKEHM2R.js";
|
|
77
77
|
import "./chunk-5ZBMHUY2.js";
|
|
78
78
|
import "./chunk-EHSBBBR2.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-PBPHKD56.js";
|
|
80
80
|
import "./chunk-US4BCRYB.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-2GMHYOV3.js";
|
|
82
82
|
import "./chunk-XT7X6QCP.js";
|
|
83
83
|
import "./chunk-5YPMCCCA.js";
|
|
84
84
|
import "./chunk-HVW7ABXD.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-MUHOFRGW.js";
|
|
86
86
|
import {
|
|
87
87
|
runWithConcurrencyLimit
|
|
88
88
|
} from "./chunk-JHOCK3DG.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-IQ7FABPU.js";
|
|
90
|
+
import "./chunk-IJI2JNN7.js";
|
|
91
91
|
import "./chunk-AWDFDFI3.js";
|
|
92
92
|
import "./chunk-P6LJ4Y32.js";
|
|
93
93
|
import "./chunk-T2WJO4XM.js";
|
|
94
94
|
import "./chunk-W4DMQZL5.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-XZEHFUQF.js";
|
|
96
96
|
import {
|
|
97
97
|
resolveLocalBrowserGpuMode
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-B5HFCGI7.js";
|
|
99
99
|
import "./chunk-A4ZTSQLW.js";
|
|
100
100
|
import {
|
|
101
101
|
trackSnapshotRun
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import "./chunk-
|
|
102
|
+
} from "./chunk-LAIGIOEA.js";
|
|
103
|
+
import "./chunk-45UOXUUH.js";
|
|
104
104
|
import "./chunk-PXVQOMKL.js";
|
|
105
105
|
import "./chunk-EQGKUPBJ.js";
|
|
106
106
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -124,11 +124,11 @@ import {
|
|
|
124
124
|
extractMediaMetadata,
|
|
125
125
|
isHdrColorSpace,
|
|
126
126
|
sdrCanvasColourFilters
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
128
128
|
import "./chunk-Z5J67X44.js";
|
|
129
129
|
import "./chunk-5S7W3TUO.js";
|
|
130
130
|
import "./chunk-D3MUHMFG.js";
|
|
131
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-FKBWONRY.js";
|
|
132
132
|
import "./chunk-YWRUQ7XZ.js";
|
|
133
133
|
import {
|
|
134
134
|
createRuntimeStartTimeResolver,
|
|
@@ -137,13 +137,13 @@ import {
|
|
|
137
137
|
isClipVisibleAt,
|
|
138
138
|
isInClipWindow,
|
|
139
139
|
parseFirstFrameColour
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-OWFSGDQS.js";
|
|
141
141
|
import "./chunk-MEJH7VEA.js";
|
|
142
142
|
import {
|
|
143
143
|
readElementRateSpec,
|
|
144
144
|
sourceTimeAt,
|
|
145
145
|
timeAtSourceTime
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-UQECNXFA.js";
|
|
147
147
|
import "./chunk-VC76R6W2.js";
|
|
148
148
|
import "./chunk-OFQWTKPW.js";
|
|
149
149
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -163,10 +163,10 @@ import "./chunk-K4MJX7SR.js";
|
|
|
163
163
|
import "./chunk-WE42NVH7.js";
|
|
164
164
|
import {
|
|
165
165
|
lintProject
|
|
166
|
-
} from "./chunk-
|
|
167
|
-
import "./chunk-CZGHFATT.js";
|
|
166
|
+
} from "./chunk-HT3D5AKG.js";
|
|
168
167
|
import "./chunk-HYRPH6LL.js";
|
|
169
168
|
import "./chunk-AKMY4QVI.js";
|
|
169
|
+
import "./chunk-CZGHFATT.js";
|
|
170
170
|
import "./chunk-C2KEGBR3.js";
|
|
171
171
|
import {
|
|
172
172
|
topLevelElements,
|
|
@@ -183,7 +183,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
183
183
|
import "./chunk-FBN2M2HK.js";
|
|
184
184
|
import {
|
|
185
185
|
withMeta
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-K5GMPWMG.js";
|
|
187
187
|
import "./chunk-BR2JQQC5.js";
|
|
188
188
|
import "./chunk-BLBMPEBX.js";
|
|
189
189
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -198,7 +198,7 @@ import {
|
|
|
198
198
|
} from "./chunk-DP5LF7GF.js";
|
|
199
199
|
import "./chunk-J3RXEDR2.js";
|
|
200
200
|
import "./chunk-QBXDU24O.js";
|
|
201
|
-
import "./chunk-
|
|
201
|
+
import "./chunk-P5QGZMGC.js";
|
|
202
202
|
import {
|
|
203
203
|
atStep,
|
|
204
204
|
normalizeErrorMessage
|
|
@@ -1096,8 +1096,8 @@ function serveCapturePage(projectDir, html, proxy) {
|
|
|
1096
1096
|
async function captureSnapshots(projectDir, opts) {
|
|
1097
1097
|
const startedAt = performance.now();
|
|
1098
1098
|
const log = opts.log ?? ((message) => console.log(message));
|
|
1099
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
1100
|
-
const capture = await captureArtifactRevision(projectDir).catch(warnSnapshotsNotRecorded);
|
|
1099
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-4XWX2XPS.js");
|
|
1100
|
+
const capture = opts.record === false ? void 0 : await captureArtifactRevision(projectDir).catch(warnSnapshotsNotRecorded);
|
|
1101
1101
|
const invocation = randomUUID();
|
|
1102
1102
|
const artifacts = [];
|
|
1103
1103
|
const replaced = [];
|
|
@@ -1223,7 +1223,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1223
1223
|
let syncVideoFrameVisibility = null;
|
|
1224
1224
|
let extractMediaMetadata2 = null;
|
|
1225
1225
|
try {
|
|
1226
|
-
const engine = await import("./src-
|
|
1226
|
+
const engine = await import("./src-D7AO7PGH.js");
|
|
1227
1227
|
injectVideoFramesBatch = engine.injectVideoFramesBatch;
|
|
1228
1228
|
syncVideoFrameVisibility = engine.syncVideoFrameVisibility;
|
|
1229
1229
|
extractMediaMetadata2 = engine.extractMediaMetadata;
|
|
@@ -1515,7 +1515,7 @@ async function captureSnapshots(projectDir, opts) {
|
|
|
1515
1515
|
completed,
|
|
1516
1516
|
log
|
|
1517
1517
|
) : false;
|
|
1518
|
-
if (!recorded) {
|
|
1518
|
+
if (!recorded && opts.record !== false) {
|
|
1519
1519
|
const paths = [...replaced, ...artifacts.map((artifact) => artifact.image)];
|
|
1520
1520
|
if (paths.length > 0) await forgetRecordedArtifacts(projectDir, paths).catch(() => void 0);
|
|
1521
1521
|
}
|
|
@@ -1981,6 +1981,7 @@ ${c.error("\u2717")} Snapshot failed: ${msg}`);
|
|
|
1981
1981
|
export {
|
|
1982
1982
|
SNAPSHOT_IMAGE_NAME,
|
|
1983
1983
|
activeVideoAt,
|
|
1984
|
+
captureSnapshots,
|
|
1984
1985
|
clearEarlierStills,
|
|
1985
1986
|
clearedNote,
|
|
1986
1987
|
computeSnapshotTimes,
|
|
@@ -74,13 +74,13 @@ import {
|
|
|
74
74
|
spanFrameRange,
|
|
75
75
|
startServer,
|
|
76
76
|
validatePlanV2MaterializedTarget
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-EX75C5HT.js";
|
|
78
78
|
import {
|
|
79
79
|
prepareHeifImageInputs
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-AKTI2SHL.js";
|
|
81
81
|
import {
|
|
82
82
|
prepareAnimatedGifInputs
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-JNQCM6CR.js";
|
|
84
84
|
import "./chunk-X7MTZ4T2.js";
|
|
85
85
|
import "./chunk-BZ56MTDX.js";
|
|
86
86
|
import {
|
|
@@ -107,17 +107,17 @@ import {
|
|
|
107
107
|
isTransientBrowserError,
|
|
108
108
|
prepareCaptureSessionForReuse,
|
|
109
109
|
resolveConfig
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
111
111
|
import "./chunk-Z5J67X44.js";
|
|
112
112
|
import "./chunk-5S7W3TUO.js";
|
|
113
113
|
import "./chunk-D3MUHMFG.js";
|
|
114
|
-
import "./chunk-
|
|
114
|
+
import "./chunk-FKBWONRY.js";
|
|
115
115
|
import "./chunk-YWRUQ7XZ.js";
|
|
116
116
|
import {
|
|
117
117
|
quantizeTimeToFrame
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-OWFSGDQS.js";
|
|
119
119
|
import "./chunk-MEJH7VEA.js";
|
|
120
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-UQECNXFA.js";
|
|
121
121
|
import "./chunk-VC76R6W2.js";
|
|
122
122
|
import "./chunk-OFQWTKPW.js";
|
|
123
123
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -126,10 +126,10 @@ import "./chunk-TK7THLRO.js";
|
|
|
126
126
|
import "./chunk-FXMKHHPO.js";
|
|
127
127
|
import "./chunk-K4MJX7SR.js";
|
|
128
128
|
import "./chunk-WE42NVH7.js";
|
|
129
|
-
import "./chunk-
|
|
130
|
-
import "./chunk-CZGHFATT.js";
|
|
129
|
+
import "./chunk-HT3D5AKG.js";
|
|
131
130
|
import "./chunk-HYRPH6LL.js";
|
|
132
131
|
import "./chunk-AKMY4QVI.js";
|
|
132
|
+
import "./chunk-CZGHFATT.js";
|
|
133
133
|
import "./chunk-C2KEGBR3.js";
|
|
134
134
|
import "./chunk-T5ELONXY.js";
|
|
135
135
|
import "./chunk-FR7YBU3H.js";
|
|
@@ -256,11 +256,11 @@ import {
|
|
|
256
256
|
waitForImagesReady,
|
|
257
257
|
writeCapturedFrame,
|
|
258
258
|
writeUrlDownloadTelemetry
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
260
260
|
import "./chunk-Z5J67X44.js";
|
|
261
261
|
import "./chunk-5S7W3TUO.js";
|
|
262
262
|
import "./chunk-D3MUHMFG.js";
|
|
263
|
-
import "./chunk-
|
|
263
|
+
import "./chunk-FKBWONRY.js";
|
|
264
264
|
import {
|
|
265
265
|
collectScratchLeftovers,
|
|
266
266
|
removeScratch,
|
|
@@ -270,9 +270,9 @@ import {
|
|
|
270
270
|
import {
|
|
271
271
|
MEDIA_VISUAL_STYLE_PROPERTIES,
|
|
272
272
|
quantizeTimeToFrame
|
|
273
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-OWFSGDQS.js";
|
|
274
274
|
import "./chunk-MEJH7VEA.js";
|
|
275
|
-
import "./chunk-
|
|
275
|
+
import "./chunk-UQECNXFA.js";
|
|
276
276
|
import "./chunk-VC76R6W2.js";
|
|
277
277
|
import "./chunk-OFQWTKPW.js";
|
|
278
278
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -293,8 +293,7 @@ import {
|
|
|
293
293
|
import {
|
|
294
294
|
resolveReferencedDuration,
|
|
295
295
|
resolveReferencedStart
|
|
296
|
-
} from "./chunk-
|
|
297
|
-
import "./chunk-CZGHFATT.js";
|
|
296
|
+
} from "./chunk-HT3D5AKG.js";
|
|
298
297
|
import {
|
|
299
298
|
FFMPEG_PATH_ENV,
|
|
300
299
|
FFPROBE_PATH_ENV
|
|
@@ -302,6 +301,7 @@ import {
|
|
|
302
301
|
import {
|
|
303
302
|
resolveProjectRelativeSrc
|
|
304
303
|
} from "./chunk-AKMY4QVI.js";
|
|
304
|
+
import "./chunk-CZGHFATT.js";
|
|
305
305
|
import "./chunk-C2KEGBR3.js";
|
|
306
306
|
import "./chunk-T5ELONXY.js";
|
|
307
307
|
import "./chunk-FR7YBU3H.js";
|
|
@@ -7,27 +7,27 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
inProcessAnswer,
|
|
9
9
|
serveStaticProjectHtml
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-ZLXWRYOO.js";
|
|
10
|
+
} from "./chunk-N6XKBBT5.js";
|
|
12
11
|
import "./chunk-X7MTZ4T2.js";
|
|
12
|
+
import "./chunk-OVINGNLQ.js";
|
|
13
13
|
import "./chunk-XUHOIDKG.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-G5KX4X6W.js";
|
|
15
|
+
import "./chunk-C466I3DT.js";
|
|
16
|
+
import "./chunk-KCDWRMTC.js";
|
|
16
17
|
import "./chunk-AW3XJY4S.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-QYRMR45H.js";
|
|
18
|
+
import "./chunk-UFYWGUUV.js";
|
|
19
|
+
import "./chunk-UQVAAEPQ.js";
|
|
20
|
+
import "./chunk-QU5OYMTB.js";
|
|
21
21
|
import "./chunk-ALVXFXUG.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-PBPHKD56.js";
|
|
23
|
+
import "./chunk-2GMHYOV3.js";
|
|
24
24
|
import "./chunk-XT7X6QCP.js";
|
|
25
25
|
import "./chunk-5YPMCCCA.js";
|
|
26
26
|
import "./chunk-HVW7ABXD.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-MUHOFRGW.js";
|
|
28
28
|
import "./chunk-JHOCK3DG.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-IQ7FABPU.js";
|
|
30
|
+
import "./chunk-IJI2JNN7.js";
|
|
31
31
|
import "./chunk-AWDFDFI3.js";
|
|
32
32
|
import "./chunk-P6LJ4Y32.js";
|
|
33
33
|
import "./chunk-T2WJO4XM.js";
|
|
@@ -37,15 +37,15 @@ import "./chunk-WYKRGEDD.js";
|
|
|
37
37
|
import "./chunk-G6OKQMJI.js";
|
|
38
38
|
import "./chunk-EVMY7IPL.js";
|
|
39
39
|
import "./chunk-7FMUTGOH.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-4XQQQ4KN.js";
|
|
41
41
|
import "./chunk-Z5J67X44.js";
|
|
42
42
|
import "./chunk-5S7W3TUO.js";
|
|
43
43
|
import "./chunk-D3MUHMFG.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-FKBWONRY.js";
|
|
45
45
|
import "./chunk-YWRUQ7XZ.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-OWFSGDQS.js";
|
|
47
47
|
import "./chunk-MEJH7VEA.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-UQECNXFA.js";
|
|
49
49
|
import "./chunk-VC76R6W2.js";
|
|
50
50
|
import "./chunk-OFQWTKPW.js";
|
|
51
51
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -54,10 +54,10 @@ import "./chunk-TK7THLRO.js";
|
|
|
54
54
|
import "./chunk-FXMKHHPO.js";
|
|
55
55
|
import "./chunk-K4MJX7SR.js";
|
|
56
56
|
import "./chunk-WE42NVH7.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-CZGHFATT.js";
|
|
57
|
+
import "./chunk-HT3D5AKG.js";
|
|
59
58
|
import "./chunk-HYRPH6LL.js";
|
|
60
59
|
import "./chunk-AKMY4QVI.js";
|
|
60
|
+
import "./chunk-CZGHFATT.js";
|
|
61
61
|
import "./chunk-C2KEGBR3.js";
|
|
62
62
|
import "./chunk-T5ELONXY.js";
|
|
63
63
|
import "./chunk-FR7YBU3H.js";
|