hyperframes 0.8.224 → 0.8.226
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-JEPKJ2F4.js → add-3NBOSGKQ.js} +12 -12
- package/dist/{agentPromptGenerator-ZBNWLX5D.js → agentPromptGenerator-GQSDTAV5.js} +7 -7
- package/dist/{animatedGifPrep-43LLMTN5.js → animatedGifPrep-UXFFDGA7.js} +7 -7
- package/dist/api.js +23 -23
- package/dist/{asset-M6SH6PUW.js → asset-VQVAYC7E.js} +2 -2
- package/dist/{assetCataloger-BLQ7UVJ5.js → assetCataloger-C6KNE2IQ.js} +8 -8
- package/dist/{audio-J3QREJK4.js → audio-2KULGXHA.js} +17 -17
- package/dist/{auth-7TRCBCKA.js → auth-QNMLPJOW.js} +5 -5
- package/dist/{autoUpdate-WTFSYLTK.js → autoUpdate-VFQQ47UD.js} +2 -2
- package/dist/{backgroundChecks-YZW7AMMJ.js → backgroundChecks-SSQ2U3ZY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-LDZ6NO2X.js → batchRender-Y45PZC3Q.js} +3 -3
- package/dist/{beats-JWUADKHV.js → beats-YSJT4NUG.js} +10 -10
- package/dist/{benchmark-QOQZ7UGD.js → benchmark-6UOMMUXF.js} +9 -9
- package/dist/{billing-3GVNEE56.js → billing-WNOAP6KO.js} +4 -4
- package/dist/{browser-4HNCSPUR.js → browser-GM4ZTCRQ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-GTKHB45M.js → bundleWithLocalizedFonts-CUTSKVRK.js} +2 -2
- package/dist/{capture-5OYZNIOR.js → capture-J24XSJTZ.js} +17 -17
- package/dist/{capture-XSRWYHAM.js → capture-SZ65WG5Z.js} +3 -3
- package/dist/{captureCompositionFrame-4F7PPQKB.js → captureCompositionFrame-5UUXIOF2.js} +13 -12
- package/dist/{catalog-4FVQSID5.js → catalog-5EQFE3BC.js} +12 -12
- package/dist/{catch-up-KQVK2QZC.js → catch-up-ASBRKHDL.js} +5 -5
- package/dist/{check-3YHLB6FM.js → check-BA4SSXPY.js} +39 -38
- package/dist/{checkAudio-7ZSZVBSJ.js → checkAudio-TU4GPHIR.js} +10 -10
- package/dist/{checkBrowser-VX5CHNQS.js → checkBrowser-27SFNNPD.js} +33 -32
- package/dist/chunk-262C25DQ.js +31 -0
- package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
- package/dist/{chunk-2QQO3J3B.js → chunk-2IQONCMF.js} +7 -7
- package/dist/{chunk-OZMZFJDW.js → chunk-2JBCK6DX.js} +1 -1
- package/dist/{chunk-K3QT232E.js → chunk-35LAWHTD.js} +23 -6
- package/dist/{chunk-GLTSINRP.js → chunk-37PS2IPO.js} +1 -1
- package/dist/{chunk-2WVQ3CCN.js → chunk-3V3XMQEF.js} +1 -1
- package/dist/{chunk-7RTPHNOO.js → chunk-3XYDZQJF.js} +7 -4
- package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
- package/dist/{chunk-RR5QE7DB.js → chunk-4XYLQYUE.js} +18 -14
- package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
- package/dist/{chunk-F34GYYXO.js → chunk-5TXYCG4M.js} +6 -6
- package/dist/{chunk-BTK3T4HJ.js → chunk-5X65O5WM.js} +10 -3
- package/dist/{chunk-QOI46C6F.js → chunk-6AEHVBMX.js} +2 -2
- package/dist/{chunk-3ZDOAVZM.js → chunk-6CU2ZQGW.js} +147 -22
- package/dist/{chunk-L4ULTWCD.js → chunk-6EQSJ7MT.js} +1 -1
- package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
- package/dist/{chunk-HDPW7THH.js → chunk-76N526VX.js} +13 -13
- package/dist/{chunk-3NHCTTLP.js → chunk-7LUZ4RQX.js} +13 -13
- package/dist/{chunk-NFUR6NNT.js → chunk-7UKRCWBO.js} +310 -134
- package/dist/{chunk-GE4ABM5K.js → chunk-7WNPWUJP.js} +3 -3
- package/dist/{chunk-RU7KMDFL.js → chunk-A23K6P7L.js} +1 -1
- package/dist/{chunk-MOXNAVCW.js → chunk-ABNPD4NF.js} +1 -1
- package/dist/{chunk-THL3N377.js → chunk-AMTAKSKJ.js} +9 -9
- package/dist/{chunk-UCPEABYK.js → chunk-APCGOECM.js} +2 -2
- package/dist/{chunk-CGX4EOGT.js → chunk-B243Y7MM.js} +3 -3
- package/dist/{chunk-A25SCSOK.js → chunk-B52P2FU2.js} +1 -1
- package/dist/{chunk-2KDHJCH2.js → chunk-B7OI3WAR.js} +1 -1
- package/dist/{chunk-J7FVF73D.js → chunk-BD2CQDXP.js} +18 -18
- package/dist/{chunk-JMP52GTN.js → chunk-BJ3Q3XK7.js} +313 -149
- package/dist/{chunk-H6APAFKE.js → chunk-CRIVUWLA.js} +2 -2
- package/dist/{chunk-5KAGTSLY.js → chunk-CU3SVSKX.js} +5 -5
- package/dist/{chunk-ZLZXGJ63.js → chunk-DGQOBTFQ.js} +1 -1
- package/dist/{chunk-53JEHQBW.js → chunk-DW7W4J7D.js} +2 -2
- package/dist/{chunk-GQ2QER6M.js → chunk-EJEHDDVX.js} +1 -1
- package/dist/{chunk-35NDLXHZ.js → chunk-EQGBGOQQ.js} +9 -9
- package/dist/{chunk-JKLWWGE6.js → chunk-ETH6WXKZ.js} +1 -1
- package/dist/{chunk-F3CTUCFD.js → chunk-EYDV3MHA.js} +7 -7
- package/dist/{chunk-HIPW4JXL.js → chunk-GADKBSZ5.js} +2 -2
- package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
- package/dist/{chunk-X5BSSPC2.js → chunk-GUJ45PRX.js} +1 -1
- package/dist/chunk-HSXV7QPC.js +177 -0
- package/dist/{chunk-AMQFGICP.js → chunk-HYB3WSJL.js} +1 -1
- package/dist/{chunk-JIF347PW.js → chunk-JE5ZPFN2.js} +3 -3
- package/dist/{chunk-52B3AOIV.js → chunk-JIYNPDH6.js} +1 -1
- package/dist/{chunk-4ZAOAPWP.js → chunk-KQARKGEJ.js} +16 -11
- package/dist/{chunk-G45NYKSM.js → chunk-LVV5EUSO.js} +3 -3
- package/dist/{chunk-5N5FYE5K.js → chunk-MF6KVPWF.js} +3 -3
- package/dist/{chunk-6QIYQ43G.js → chunk-MWQNQA77.js} +2 -2
- package/dist/{chunk-F7T57BZZ.js → chunk-OMT75FQI.js} +3 -2
- package/dist/{chunk-VPMHRLJH.js → chunk-OQYGHP3E.js} +1 -1
- package/dist/{chunk-EQFDOQTG.js → chunk-OSCRZUEB.js} +1 -1
- package/dist/{chunk-E47ZWDMH.js → chunk-P7TDUSPH.js} +1 -1
- package/dist/{chunk-34GAW4GO.js → chunk-PCH3O6I6.js} +5 -5
- package/dist/{chunk-IYYQRNIZ.js → chunk-PHUTMTHB.js} +1 -1
- package/dist/{chunk-POOLZTMZ.js → chunk-PVBSCPZI.js} +3 -3
- package/dist/{chunk-MA5AQK7T.js → chunk-PWHOMCFB.js} +2 -2
- package/dist/{chunk-PKMAWQUI.js → chunk-PXSCN6X5.js} +4 -4
- package/dist/{chunk-HANNA5JJ.js → chunk-PZ6VVOOE.js} +1 -1
- package/dist/{chunk-JUF43Q7Q.js → chunk-QSWUM7WR.js} +3 -6
- package/dist/{chunk-O2VKGYSK.js → chunk-RBYSMHB7.js} +1 -1
- package/dist/{chunk-UZ5AWZCA.js → chunk-RKDMYKGL.js} +1 -1
- package/dist/{chunk-QK6ZNEBW.js → chunk-RRT5S42U.js} +1 -1
- package/dist/{chunk-SGMCQAYU.js → chunk-S4UDVFAN.js} +3 -3
- package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
- package/dist/{chunk-W7MJPKBJ.js → chunk-U6LQ4BTL.js} +1 -1
- package/dist/{chunk-VCJE7IMY.js → chunk-UIJLEBHQ.js} +1 -1
- package/dist/{chunk-ODJ2WBZX.js → chunk-UXHGYMX4.js} +1 -1
- package/dist/{chunk-VXRBPWVW.js → chunk-V2N747YM.js} +7 -7
- package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
- package/dist/{chunk-53TKUWDX.js → chunk-VB77RRT7.js} +1 -1
- package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
- package/dist/{chunk-E2ZY4GWH.js → chunk-WESIEW2M.js} +3 -25
- package/dist/{chunk-D4M37ATV.js → chunk-WGVREWKN.js} +2 -2
- package/dist/{chunk-FJ3KUOUZ.js → chunk-XCGPPU32.js} +1 -1
- package/dist/{chunk-2M6B2JKZ.js → chunk-XDTRM4OS.js} +4 -4
- package/dist/{chunk-JK2KNL6F.js → chunk-XH7SSJSQ.js} +1 -1
- package/dist/chunk-XINVBLXA.js +5030 -0
- package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
- package/dist/{chunk-BAXL3U3T.js → chunk-Y2NSHQVE.js} +2 -2
- package/dist/{chunk-NI35PAVN.js → chunk-YTQSLNIA.js} +1 -1
- package/dist/{chunk-LRS4FV5W.js → chunk-Z257R7TN.js} +1 -1
- package/dist/{chunk-ZGQC6IU7.js → chunk-ZI64CTVC.js} +1 -1
- package/dist/{chunk-Y5HVDK7X.js → chunk-ZJE2XWQC.js} +2 -2
- package/dist/{chunk-652ERUZD.js → chunk-ZNXUM4D2.js} +2 -2
- package/dist/{clean-SXEI6FT4.js → clean-X5VL4ILR.js} +17 -17
- package/dist/cli.js +57 -57
- package/dist/{cloud-SKN6FWAZ.js → cloud-4GUUYRD3.js} +4 -4
- package/dist/{cloudrun-RHPVVXCR.js → cloudrun-KPL32MBI.js} +4 -4
- package/dist/{compare-RTXF2NSK.js → compare-CVEB5SQC.js} +30 -29
- package/dist/{compiler-SKRY6FPA.js → compiler-RRTQNBUH.js} +4 -4
- package/dist/{component-2NPF5PA6.js → component-TZ2SIYOX.js} +3 -3
- package/dist/{compositions-AZRVHGBT.js → compositions-KRTRDV72.js} +12 -12
- package/dist/{curve-QSFEGBUH.js → curve-ZXUAGU4T.js} +11 -11
- package/dist/{cuts-6AWEJH2H.js → cuts-GY2K2CTK.js} +20 -15
- package/dist/{delete-NOHFVICL.js → delete-ZT4FCUX2.js} +6 -6
- package/dist/{deploy-UFRADJOA.js → deploy-DVKSQTC7.js} +1 -1
- package/dist/{describeProject-F43LI3YQ.js → describeProject-L4ZW5CI7.js} +8 -8
- package/dist/{diff-3WS6NMSE.js → diff-AFOP2B3Y.js} +89 -229
- package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
- package/dist/{dist-YEYUGCOR.js → dist-DPOLFG5U.js} +2 -2
- package/dist/{doctor-F4VJYQXC.js → doctor-Y7YVL34W.js} +11 -11
- package/dist/{energy-BN3QD6Y7.js → energy-YFLFELFX.js} +12 -12
- package/dist/{events-PZH4C7VA.js → events-C5QV2MQG.js} +3 -3
- package/dist/{events-5W7ETFWR.js → events-THASMGN6.js} +14 -14
- package/dist/{events-YJ3XSIPL.js → events-VL7JKI2K.js} +4 -4
- package/dist/{extract-S34DWGAD.js → extract-GTNBVQ63.js} +15 -19
- package/dist/{face-3SCJADG4.js → face-BSRKCB5W.js} +12 -12
- package/dist/{feedback-3K6NSKIC.js → feedback-MCQ2FKCC.js} +11 -11
- package/dist/{ffmpeg-2RBDDMHU.js → ffmpeg-3QNN3TQ5.js} +7 -7
- package/dist/{figma-NWAJYMAI.js → figma-IGXE3KWU.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{frames-6UARLPLK.js → frames-XIFLB5KC.js} +13 -13
- package/dist/{generate-KBVWFVXN.js → generate-55FZPR3J.js} +18 -18
- package/dist/{get-SEZZMLQ3.js → get-2MHD7XFA.js} +6 -6
- package/dist/{gpuPolicy-VIZAJ3GY.js → gpuPolicy-REJFNHWD.js} +7 -7
- package/dist/{grade-compare-PMAK4PJD.js → grade-compare-CM45H7CR.js} +31 -30
- package/dist/{heifImagePrep-6NYIR7WN.js → heifImagePrep-O3UZHGWR.js} +8 -8
- package/dist/{help-4UPSHWI2.js → help-V2GGIKP2.js} +1 -1
- package/dist/{history-VNAZEQDE.js → history-NUOQVUNY.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-OREET5PM.js → info-5CMRZEJA.js} +8 -8
- package/dist/{init-K7AEJBAL.js → init-JNL5R27I.js} +28 -28
- package/dist/ink-HGQUC6L3.js +148 -0
- package/dist/{inspect-STME5DNY.js → inspect-GGOCM324.js} +31 -30
- package/dist/{installer-NQA4KXRP.js → installer-BBY3T5MJ.js} +4 -4
- package/dist/{keyframes-JQWZ235Q.js → keyframes-2D4ZS6HE.js} +8 -8
- package/dist/{lambda-RJNLW2EO.js → lambda-TY2ZCPEN.js} +11 -11
- package/dist/{layout-MTZWBPNZ.js → layout-X5GT4O2L.js} +31 -30
- package/dist/{lint-AQWTSL75.js → lint-NVOUXE2L.js} +9 -9
- package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
- package/dist/{list-ZEBZ5DB5.js → list-CB4UDTID.js} +6 -6
- package/dist/{localPage-CQ3H4N2N.js → localPage-EYPZRIGY.js} +7 -7
- package/dist/{login-VHCZHENV.js → login-L7JTVKV5.js} +7 -7
- package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
- package/dist/{look-25TSRPSV.js → look-VHQA2JSS.js} +12 -12
- package/dist/{manager-57SX7D5G.js → manager-FGQKQMI7.js} +8 -8
- package/dist/{measure-Y2R3G5OJ.js → measure-5F7QZLO5.js} +12 -11
- package/dist/{media-treatment-3G2IVS64.js → media-treatment-RRFIZKSA.js} +14 -14
- package/dist/{media-use-LUAOZJNV.js → media-use-5YGFOFKI.js} +3 -3
- package/dist/{models-NT56FKRG.js → models-5B2RGGBT.js} +11 -11
- package/dist/{motionShot-P4NTFKYS.js → motionShot-JJBQLYCC.js} +16 -15
- package/dist/{normalize-audio-2DUTZ6QK.js → normalize-audio-LWTNZWDJ.js} +10 -10
- package/dist/{open-OATYOOR7.js → open-PGRJXREV.js} +12 -12
- package/dist/{parakeetRunner-UASHW3A4.js → parakeetRunner-OV4NSPB3.js} +12 -12
- package/dist/{pipeline-GGAYP5Q6.js → pipeline-HXGPFQZC.js} +10 -10
- package/dist/{play-GHXBJS3T.js → play-JONX6CIM.js} +21 -21
- package/dist/{preflight-6VOP3IOI.js → preflight-7OKMMUWG.js} +8 -8
- package/dist/{present-M7UYHVEZ.js → present-EHU52MSU.js} +17 -17
- package/dist/{preview-YWT5WA3W.js → preview-DCEIITM6.js} +19 -19
- package/dist/{probe-CQAGZJLP.js → probe-EA4N3WOT.js} +11 -11
- package/dist/{producer-OU2BCMLY.js → producer-FGAOUR7O.js} +1 -1
- package/dist/{projectConfig-UI4NZDN7.js → projectConfig-N3ZRVJKB.js} +6 -6
- package/dist/{publication-VPJZQCLA.js → publication-ZKY2LVN5.js} +2 -2
- package/dist/{publish-7RA2MK2M.js → publish-RZVDFTBX.js} +15 -15
- package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
- package/dist/{remove-background-A5KJUH6W.js → remove-background-V5UXYPJS.js} +11 -11
- package/dist/{render-EMW4I6C6.js → render-NEZLBRAY.js} +37 -35
- package/dist/{render-IYV73CG6.js → render-UJCPQXGB.js} +5 -5
- package/dist/{render-Z5IS4AUP.js → render-YZSDHP3U.js} +60 -27
- package/dist/{render-batch-IN2ZXPS7.js → render-batch-KPGYARDI.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-DIXFK5ZR.js → resolver-HWNPLSXK.js} +4 -4
- package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
- package/dist/{sherpa-SAY3I7PK.js → sherpa-HSBYKUQC.js} +11 -11
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
- package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
- package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
- package/dist/skills/media-use/scripts/resolve.mjs +11 -5
- package/dist/{skills-YWQ5XKH6.js → skills-CW23U675.js} +6 -6
- package/dist/{skillsUpdateCheck-ST5ZFEET.js → skillsUpdateCheck-LGBNNYLI.js} +3 -3
- package/dist/{snapshot-57YYYE5J.js → snapshot-RK7ED6DW.js} +47 -38
- package/dist/{src-LNSJHD25.js → src-KORQVG7O.js} +10 -6
- package/dist/{src-7MEBCSTP.js → src-ZDLQFZ4B.js} +9 -9
- package/dist/{staticProjectServer-TTJSAB2Q.js → staticProjectServer-TFWT5G2L.js} +18 -18
- package/dist/{status-FGXBUX2T.js → status-6WAZ5EBM.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-Bzcd9O2g.js → hyperframes-player-qeY0knUZ.js} +3 -3
- package/dist/studio/assets/{index-LW6kxYVF.js → index-B9O4nOYD.js} +1 -1
- package/dist/studio/assets/{index-CZI-XmnO.js → index-BhZkOhf2.js} +174 -174
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-57E36S5N.js → studio-api-OIZEPWHS.js} +10 -10
- package/dist/{studioServer-2AIRUNBA.js → studioServer-62MG7LJR.js} +50 -49
- package/dist/{sync-52GUXEYZ.js → sync-Q3XYLXTX.js} +12 -12
- package/dist/{telemetry-RVY6RSCD.js → telemetry-3YDPEGQK.js} +4 -4
- package/dist/{timeline-MMZF4AX3.js → timeline-VDLKFZZ7.js} +19 -19
- package/dist/{tokens-WGWCYFTY.js → tokens-ZZ4G2VKC.js} +2 -2
- package/dist/{transcribe-YYDHXRQW.js → transcribe-2D6UIVAE.js} +10 -10
- package/dist/{transcribe-6BF5FFPV.js → transcribe-OYRCZUZM.js} +22 -22
- package/dist/{updateCheck-AAR5LLUF.js → updateCheck-ZRG5DR74.js} +2 -2
- package/dist/{upgrade-Y7CIRL4B.js → upgrade-ZU6BHCTC.js} +2 -2
- package/dist/{urlDownloader-KZOD7EWX.js → urlDownloader-5WPUC6C6.js} +6 -6
- package/dist/{validate-K3PHAA2E.js → validate-OZRPF6YZ.js} +25 -24
- package/dist/{video-Z6EBVCAT.js → video-N2KXXYS3.js} +8 -8
- package/dist/warmCheck.js +39 -38
- package/package.json +1 -1
- package/dist/chunk-6UWSEXQ3.js +0 -5030
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
createCloudClient,
|
|
15
15
|
pollUntilTerminal,
|
|
16
16
|
reportApiError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XOFJZ3UG.js";
|
|
18
18
|
import {
|
|
19
19
|
uploadAssetViaDirectUpload,
|
|
20
20
|
uploadZipViaDirectUpload
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
stagePublishFiles,
|
|
32
32
|
stagedSize,
|
|
33
33
|
zipPublishFileMap
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-VUDMPRZN.js";
|
|
35
|
+
import "./chunk-53ZOVLGJ.js";
|
|
36
36
|
import {
|
|
37
37
|
compositionEntryErrorMessage,
|
|
38
38
|
parseCompositionEntryArg
|
|
@@ -46,15 +46,15 @@ import {
|
|
|
46
46
|
reportVariableIssues,
|
|
47
47
|
resolveVariablesArg,
|
|
48
48
|
validateVariablesAgainstProject
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RKDMYKGL.js";
|
|
50
50
|
import "./chunk-ZBAF6L74.js";
|
|
51
51
|
import {
|
|
52
52
|
downloadToFile
|
|
53
53
|
} from "./chunk-NO6F7CLR.js";
|
|
54
54
|
import {
|
|
55
55
|
resolveCloudBaseUrl
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-3ZWUNOTS.js";
|
|
57
|
+
import "./chunk-V4SD6HQ6.js";
|
|
58
58
|
import {
|
|
59
59
|
probeAudio
|
|
60
60
|
} from "./chunk-SWC3QIEH.js";
|
|
@@ -62,10 +62,14 @@ import {
|
|
|
62
62
|
findFFmpeg,
|
|
63
63
|
findFFprobe,
|
|
64
64
|
getFFmpegInstallHint
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-PZ6VVOOE.js";
|
|
66
66
|
import {
|
|
67
67
|
resolveProject
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OQYGHP3E.js";
|
|
69
|
+
import {
|
|
70
|
+
resolveDefaultFpsArg
|
|
71
|
+
} from "./chunk-WESIEW2M.js";
|
|
72
|
+
import "./chunk-GUJ45PRX.js";
|
|
69
73
|
import {
|
|
70
74
|
errorBox,
|
|
71
75
|
formatBytes,
|
|
@@ -73,11 +77,11 @@ import {
|
|
|
73
77
|
} from "./chunk-5LOZWO2M.js";
|
|
74
78
|
import "./chunk-EHZESMRB.js";
|
|
75
79
|
import "./chunk-A4ZTSQLW.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-YTQSLNIA.js";
|
|
81
|
+
import "./chunk-6AEHVBMX.js";
|
|
78
82
|
import "./chunk-PXVQOMKL.js";
|
|
79
83
|
import "./chunk-MCDNAIFF.js";
|
|
80
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-6NJVSTSY.js";
|
|
81
85
|
import {
|
|
82
86
|
defineCommand
|
|
83
87
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -86,17 +90,17 @@ import "./chunk-54HJ63Q2.js";
|
|
|
86
90
|
import {
|
|
87
91
|
c
|
|
88
92
|
} from "./chunk-2GICKZ3I.js";
|
|
89
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-7UKRCWBO.js";
|
|
90
94
|
import "./chunk-Z5J67X44.js";
|
|
91
95
|
import "./chunk-5S7W3TUO.js";
|
|
92
96
|
import "./chunk-D3MUHMFG.js";
|
|
93
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-3XYDZQJF.js";
|
|
94
98
|
import "./chunk-YWRUQ7XZ.js";
|
|
95
99
|
import {
|
|
96
100
|
parseAnimatedGifMetadata
|
|
97
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-XCGPPU32.js";
|
|
98
102
|
import "./chunk-MEJH7VEA.js";
|
|
99
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-XINVBLXA.js";
|
|
100
104
|
import "./chunk-VC76R6W2.js";
|
|
101
105
|
import "./chunk-OFQWTKPW.js";
|
|
102
106
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -108,13 +112,13 @@ import "./chunk-KGPLIH7B.js";
|
|
|
108
112
|
import "./chunk-LAGZGKKN.js";
|
|
109
113
|
import "./chunk-K4MJX7SR.js";
|
|
110
114
|
import "./chunk-WE42NVH7.js";
|
|
111
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-GR2T3BOX.js";
|
|
112
116
|
import "./chunk-HYRPH6LL.js";
|
|
113
117
|
import {
|
|
114
118
|
cleanAssetUrl,
|
|
115
119
|
isRemoteOrInlineUrl,
|
|
116
120
|
resolveLocalAssetCandidates
|
|
117
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-2GTFW4MK.js";
|
|
118
122
|
import "./chunk-CZGHFATT.js";
|
|
119
123
|
import {
|
|
120
124
|
readAuthoredDurationSeconds,
|
|
@@ -134,7 +138,7 @@ import "./chunk-WC4MTXGN.js";
|
|
|
134
138
|
import "./chunk-FBN2M2HK.js";
|
|
135
139
|
import {
|
|
136
140
|
withMeta
|
|
137
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-B7OI3WAR.js";
|
|
138
142
|
import "./chunk-BR2JQQC5.js";
|
|
139
143
|
import "./chunk-BLBMPEBX.js";
|
|
140
144
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -145,7 +149,7 @@ import {
|
|
|
145
149
|
} from "./chunk-66W5IWLO.js";
|
|
146
150
|
import "./chunk-J3RXEDR2.js";
|
|
147
151
|
import "./chunk-QBXDU24O.js";
|
|
148
|
-
import "./chunk-
|
|
152
|
+
import "./chunk-PWHOMCFB.js";
|
|
149
153
|
import {
|
|
150
154
|
normalizeErrorMessage
|
|
151
155
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -697,7 +701,7 @@ async function prepareEntryGifs(ctx, fileMap) {
|
|
|
697
701
|
if (!html || !/\.gif\b/i.test(html)) return;
|
|
698
702
|
const sourceAssets = entryGifSources(ctx, entryPath, html);
|
|
699
703
|
if (!sourceAssets) return;
|
|
700
|
-
const prep = ctx.opts.gifPrep ?? (await import("./src-
|
|
704
|
+
const prep = ctx.opts.gifPrep ?? (await import("./src-ZDLQFZ4B.js")).prepareAnimatedGifInputs;
|
|
701
705
|
const outputDir = mkdtempSync(join(tmpdir(), "hf-offload-gif-"));
|
|
702
706
|
ctx.tempFiles.push(outputDir);
|
|
703
707
|
const result = await prep(html, {
|
|
@@ -751,9 +755,10 @@ async function offloadHeavyMedia(projectDir, fileMap, opts) {
|
|
|
751
755
|
};
|
|
752
756
|
const urls = /* @__PURE__ */ new Map();
|
|
753
757
|
const report = [];
|
|
758
|
+
let referenced = /* @__PURE__ */ new Set();
|
|
754
759
|
try {
|
|
755
760
|
await prepareEntryGifs(ctx, fileMap);
|
|
756
|
-
|
|
761
|
+
referenced = referencedFiles(ctx.absDir, fileMap);
|
|
757
762
|
for (const [path, file] of [...fileMap].sort(([a], [b]) => a.localeCompare(b))) {
|
|
758
763
|
if (!referenced.has(path)) continue;
|
|
759
764
|
const item = await offloadFile(ctx, path, file);
|
|
@@ -767,8 +772,20 @@ async function offloadHeavyMedia(projectDir, fileMap, opts) {
|
|
|
767
772
|
}
|
|
768
773
|
if (urls.size > 0) rewriteReferences(ctx.absDir, fileMap, (key) => urls.get(key) ?? null);
|
|
769
774
|
dropReplacedFiles(fileMap, report, ctx.preparedGifSources, [...urls.values()]);
|
|
775
|
+
dropUnusedHeavyFiles(ctx, referenced, [...urls.values()]);
|
|
770
776
|
return report;
|
|
771
777
|
}
|
|
778
|
+
function dropUnusedHeavyFiles(ctx, referenced, assetUrls) {
|
|
779
|
+
const { fileMap } = ctx;
|
|
780
|
+
const withoutUrls = (text) => assetUrls.reduce((acc, url) => acc.replaceAll(url, ""), text);
|
|
781
|
+
const code = withoutUrls(scriptCode(fileMap));
|
|
782
|
+
const variables = ctx.opts.variablesText ?? "";
|
|
783
|
+
for (const [path, file] of [...fileMap]) {
|
|
784
|
+
if (referenced.has(path) || stagedSize(file) < OFFLOAD_MIN_BYTES) continue;
|
|
785
|
+
if (variables.includes(basename2(path))) continue;
|
|
786
|
+
if (!isStillMentioned(fileMap, path, code, withoutUrls)) fileMap.delete(path);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
772
789
|
function dropReplacedFiles(fileMap, report, preparedGifSources, assetUrls) {
|
|
773
790
|
const withoutUrls = (text) => assetUrls.reduce((acc, url) => acc.replaceAll(url, ""), text);
|
|
774
791
|
const code = withoutUrls(scriptCode(fileMap));
|
|
@@ -931,7 +948,10 @@ var render_default = defineCommand({
|
|
|
931
948
|
meta: { name: "render", description: "Render a HyperFrames composition in the cloud" },
|
|
932
949
|
args: {
|
|
933
950
|
dir: { type: "positional", required: false, description: "Project directory (default: .)" },
|
|
934
|
-
fps: {
|
|
951
|
+
fps: {
|
|
952
|
+
type: "string",
|
|
953
|
+
description: "Frames per second (1-240). Default: the composition's root data-fps, else 30."
|
|
954
|
+
},
|
|
935
955
|
quality: { type: "string", description: "draft | standard | high (default: standard)" },
|
|
936
956
|
format: { type: "string", description: "mp4 | webm | mov (default: mp4)" },
|
|
937
957
|
"page-motion-blur": {
|
|
@@ -1026,7 +1046,6 @@ var render_default = defineCommand({
|
|
|
1026
1046
|
// fallow-ignore-next-line complexity
|
|
1027
1047
|
async run({ args }) {
|
|
1028
1048
|
const asJson = Boolean(args.json);
|
|
1029
|
-
const fps = parseIntFlag(args.fps, { flag: "--fps", min: 1, max: 240 });
|
|
1030
1049
|
const quality = parseEnumFlag(args.quality, VALID_QUALITY, { flag: "--quality" });
|
|
1031
1050
|
const format = parseEnumFlag(args.format, VALID_FORMAT, { flag: "--format" });
|
|
1032
1051
|
const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
|
|
@@ -1047,6 +1066,11 @@ var render_default = defineCommand({
|
|
|
1047
1066
|
url: args.url
|
|
1048
1067
|
});
|
|
1049
1068
|
validateDryRunSource(project, args["dry-run"] ?? false);
|
|
1069
|
+
const fps = parseIntFlag(resolveCloudFpsArg(project, args.fps, args.composition), {
|
|
1070
|
+
flag: "--fps",
|
|
1071
|
+
min: 1,
|
|
1072
|
+
max: 240
|
|
1073
|
+
});
|
|
1050
1074
|
const aspectRatio = resolveAspectRatioForSubmit(
|
|
1051
1075
|
project,
|
|
1052
1076
|
args.composition,
|
|
@@ -1070,7 +1094,8 @@ var render_default = defineCommand({
|
|
|
1070
1094
|
project,
|
|
1071
1095
|
args.composition,
|
|
1072
1096
|
asJson,
|
|
1073
|
-
(file) => uploadAssetViaDirectUpload({ client, ...file })
|
|
1097
|
+
(file) => uploadAssetViaDirectUpload({ client, ...file }),
|
|
1098
|
+
variables && JSON.stringify(variables)
|
|
1074
1099
|
) : void 0;
|
|
1075
1100
|
const upload = await maybeUploadProject(
|
|
1076
1101
|
client,
|
|
@@ -1253,14 +1278,14 @@ function resolveVariablesAndValidateIfLocal(inline, filePath, strict, source, co
|
|
|
1253
1278
|
function summarizeLargestFiles(fileMap) {
|
|
1254
1279
|
return [...fileMap.entries()].map(([path, content]) => ({ path, size_bytes: stagedSize(content) })).sort((a, b) => b.size_bytes - a.size_bytes || a.path.localeCompare(b.path)).slice(0, LARGEST_FILE_COUNT);
|
|
1255
1280
|
}
|
|
1256
|
-
async function prepareLocalArchive(source, composition, asJson, upload) {
|
|
1281
|
+
async function prepareLocalArchive(source, composition, asJson, upload, variablesText) {
|
|
1257
1282
|
const project = resolveProject(source.dir);
|
|
1258
1283
|
if (!asJson) {
|
|
1259
1284
|
console.log("");
|
|
1260
1285
|
console.log(`${c.accent("\u25C6")} Zipping ${c.accent(project.name)}`);
|
|
1261
1286
|
}
|
|
1262
1287
|
const { fileMap, entryPath } = stageProjectFiles(project, composition);
|
|
1263
|
-
const offloaded = await offloadMedia(project, fileMap, entryPath, asJson, upload);
|
|
1288
|
+
const offloaded = await offloadMedia(project, fileMap, entryPath, asJson, upload, variablesText);
|
|
1264
1289
|
const onDiskBytes = [...fileMap.values()].filter((file) => !Buffer.isBuffer(file)).reduce((sum, file) => sum + stagedSize(file), 0);
|
|
1265
1290
|
const archive = onDiskBytes > DIRECT_UPLOAD_LIMIT_BYTES ? void 0 : zipPublishFileMap(new Map([...fileMap].map(([path, file]) => [path, readStaged(file)])));
|
|
1266
1291
|
const sizeBytes = archive?.buffer.byteLength ?? onDiskBytes;
|
|
@@ -1301,13 +1326,14 @@ function stageProjectFiles(project, composition) {
|
|
|
1301
1326
|
failCommand();
|
|
1302
1327
|
}
|
|
1303
1328
|
}
|
|
1304
|
-
async function offloadMedia(project, fileMap, entryPath, asJson, upload) {
|
|
1329
|
+
async function offloadMedia(project, fileMap, entryPath, asJson, upload, variablesText) {
|
|
1305
1330
|
let offloaded;
|
|
1306
1331
|
try {
|
|
1307
1332
|
offloaded = await offloadHeavyMedia(project.dir, fileMap, {
|
|
1308
1333
|
apiBaseUrl: resolveCloudBaseUrl(),
|
|
1309
1334
|
upload,
|
|
1310
1335
|
entryPath,
|
|
1336
|
+
variablesText,
|
|
1311
1337
|
onFile: (item) => (asJson ? console.error : console.log)(c.dim(` ${describeOffload(item, !upload)}`))
|
|
1312
1338
|
});
|
|
1313
1339
|
} catch (err) {
|
|
@@ -1324,6 +1350,12 @@ async function offloadMedia(project, fileMap, entryPath, asJson, upload) {
|
|
|
1324
1350
|
}
|
|
1325
1351
|
return offloaded;
|
|
1326
1352
|
}
|
|
1353
|
+
function resolveCloudFpsArg(source, fps, composition) {
|
|
1354
|
+
if (source.kind !== "dir") return fps;
|
|
1355
|
+
const { dir } = resolveProject(source.dir);
|
|
1356
|
+
const resolved = resolveDefaultFpsArg(fps, dir, resolvePath(dir, "index.html"), composition);
|
|
1357
|
+
return resolved !== void 0 && /^\d+$/.test(resolved) ? resolved : fps;
|
|
1358
|
+
}
|
|
1327
1359
|
function assertArchiveFits(sizeBytes, largestFiles) {
|
|
1328
1360
|
if (sizeBytes <= DIRECT_UPLOAD_LIMIT_BYTES) return;
|
|
1329
1361
|
errorBox(
|
|
@@ -1531,5 +1563,6 @@ export {
|
|
|
1531
1563
|
render_default as default,
|
|
1532
1564
|
examples,
|
|
1533
1565
|
resolveAspectRatioForSubmit,
|
|
1566
|
+
resolveCloudFpsArg,
|
|
1534
1567
|
validateDryRunSource
|
|
1535
1568
|
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveOutputResolutionFromSize
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HYB3WSJL.js";
|
|
10
10
|
import {
|
|
11
11
|
requireStack
|
|
12
12
|
} from "./chunk-JHOPRAJN.js";
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
loadProjectVariableSchema,
|
|
15
15
|
reportVariableIssues,
|
|
16
16
|
validateVariablesAgainstSchema
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RKDMYKGL.js";
|
|
18
18
|
import "./chunk-ZBAF6L74.js";
|
|
19
19
|
import {
|
|
20
20
|
errorBox
|
|
21
21
|
} from "./chunk-5LOZWO2M.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-2JBCK6DX.js";
|
|
23
23
|
import {
|
|
24
24
|
runWithConcurrencyLimit
|
|
25
25
|
} from "./chunk-JHOCK3DG.js";
|
|
@@ -27,9 +27,9 @@ import "./chunk-EHZESMRB.js";
|
|
|
27
27
|
import {
|
|
28
28
|
c
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-XCGPPU32.js";
|
|
31
31
|
import "./chunk-MEJH7VEA.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-XINVBLXA.js";
|
|
33
33
|
import "./chunk-VC76R6W2.js";
|
|
34
34
|
import "./chunk-OFQWTKPW.js";
|
|
35
35
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -25,9 +25,9 @@ import "./chunk-K4MJX7SR.js";
|
|
|
25
25
|
import "./chunk-WE42NVH7.js";
|
|
26
26
|
import {
|
|
27
27
|
lintProject
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GR2T3BOX.js";
|
|
29
29
|
import "./chunk-HYRPH6LL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-2GTFW4MK.js";
|
|
31
31
|
import "./chunk-CZGHFATT.js";
|
|
32
32
|
import "./chunk-C2KEGBR3.js";
|
|
33
33
|
import "./chunk-T5ELONXY.js";
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
resolveItemWithDependencies,
|
|
12
12
|
resolveItemsByTag,
|
|
13
13
|
unreachableRegistryMessage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B52P2FU2.js";
|
|
15
15
|
import "./chunk-JHOCK3DG.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-OSCRZUEB.js";
|
|
17
17
|
import "./chunk-AWDFDFI3.js";
|
|
18
18
|
import "./chunk-P6LJ4Y32.js";
|
|
19
19
|
import "./chunk-T2WJO4XM.js";
|
|
20
20
|
import "./chunk-WYKRGEDD.js";
|
|
21
21
|
import "./chunk-YWRUQ7XZ.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-XCGPPU32.js";
|
|
23
23
|
import "./chunk-MEJH7VEA.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-XINVBLXA.js";
|
|
25
25
|
import "./chunk-VC76R6W2.js";
|
|
26
26
|
import "./chunk-OFQWTKPW.js";
|
|
27
27
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -7,14 +7,14 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
analyzeTargets,
|
|
9
9
|
previewTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TFJSU4IV.js";
|
|
11
11
|
import "./chunk-CE7EQUBV.js";
|
|
12
12
|
import "./chunk-6A45RKAK.js";
|
|
13
13
|
import "./chunk-HBAUU3IK.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3ZWUNOTS.js";
|
|
15
|
+
import "./chunk-V4SD6HQ6.js";
|
|
16
16
|
import "./chunk-SWC3QIEH.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6NJVSTSY.js";
|
|
18
18
|
import "./chunk-2GICKZ3I.js";
|
|
19
19
|
import "./chunk-D3MUHMFG.js";
|
|
20
20
|
import "./chunk-HYRPH6LL.js";
|
|
@@ -17,31 +17,31 @@ import {
|
|
|
17
17
|
sherpaRuntimeLoadError,
|
|
18
18
|
sherpaUnsupportedReason,
|
|
19
19
|
transcribeWithSherpa
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZJE2XWQC.js";
|
|
21
21
|
import "./chunk-NO6F7CLR.js";
|
|
22
22
|
import "./chunk-Y65ZU7XY.js";
|
|
23
23
|
import "./chunk-6BEFEWFB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-PVBSCPZI.js";
|
|
25
25
|
import "./chunk-SWC3QIEH.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-RBYSMHB7.js";
|
|
27
|
+
import "./chunk-DGQOBTFQ.js";
|
|
28
28
|
import "./chunk-RZ6CXJ56.js";
|
|
29
29
|
import "./chunk-R4EWRIDL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-PZ6VVOOE.js";
|
|
31
31
|
import "./chunk-JZIEZCQM.js";
|
|
32
32
|
import "./chunk-UOFAE5RF.js";
|
|
33
33
|
import "./chunk-IR35BCLK.js";
|
|
34
34
|
import "./chunk-HU2SPFNG.js";
|
|
35
35
|
import "./chunk-A4ZTSQLW.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7UKRCWBO.js";
|
|
37
37
|
import "./chunk-Z5J67X44.js";
|
|
38
38
|
import "./chunk-5S7W3TUO.js";
|
|
39
39
|
import "./chunk-D3MUHMFG.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-3XYDZQJF.js";
|
|
41
41
|
import "./chunk-YWRUQ7XZ.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-XCGPPU32.js";
|
|
43
43
|
import "./chunk-MEJH7VEA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-XINVBLXA.js";
|
|
45
45
|
import "./chunk-VC76R6W2.js";
|
|
46
46
|
import "./chunk-OFQWTKPW.js";
|
|
47
47
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -53,9 +53,9 @@ import "./chunk-X6JUUQCM.js";
|
|
|
53
53
|
import "./chunk-KGPLIH7B.js";
|
|
54
54
|
import "./chunk-K4MJX7SR.js";
|
|
55
55
|
import "./chunk-WE42NVH7.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-GR2T3BOX.js";
|
|
57
57
|
import "./chunk-HYRPH6LL.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-2GTFW4MK.js";
|
|
59
59
|
import "./chunk-CZGHFATT.js";
|
|
60
60
|
import "./chunk-C2KEGBR3.js";
|
|
61
61
|
import "./chunk-T5ELONXY.js";
|
|
@@ -20,8 +20,7 @@ export const HEYGEN_BASE = "https://api.heygen.com/v3";
|
|
|
20
20
|
// in the clear, so it needs $HEYGEN_ALLOW_HTTP=1, the heygen CLI's own rule.
|
|
21
21
|
export function heygenBase() {
|
|
22
22
|
const host = process.env.HEYGEN_API_BASE?.trim().replace(/\/+$/, "");
|
|
23
|
-
if (!host)
|
|
24
|
-
return process.env.HYPERFRAMES_ENV === "dev" ? "https://api.dev.heygen.com/v3" : HEYGEN_BASE;
|
|
23
|
+
if (!host) return HEYGEN_BASE;
|
|
25
24
|
if (host.startsWith("http://") && process.env.HEYGEN_ALLOW_HTTP !== "1")
|
|
26
25
|
throw new Error(
|
|
27
26
|
`HEYGEN_API_BASE (${host}) uses HTTP, which sends the key in plaintext. Set HEYGEN_ALLOW_HTTP=1 to allow it.`,
|
|
@@ -138,14 +137,9 @@ function resolveCredential() {
|
|
|
138
137
|
}
|
|
139
138
|
const oauth = cred.oauth;
|
|
140
139
|
if (oauth?.access_token) {
|
|
141
|
-
const expectedClient =
|
|
142
|
-
process.env.HYPERFRAMES_OAUTH_CLIENT_ID ||
|
|
143
|
-
(process.env.HYPERFRAMES_ENV === "dev"
|
|
144
|
-
? "9QoaiwCZov9O0cAkC4OZbR4p"
|
|
145
|
-
: "Zg3LF4FCLoeJoGs2YqMtZ17g");
|
|
140
|
+
const expectedClient = process.env.HYPERFRAMES_OAUTH_CLIENT_ID || "Zg3LF4FCLoeJoGs2YqMtZ17g";
|
|
146
141
|
const expectedTokenEndpoint =
|
|
147
|
-
process.env.HYPERFRAMES_OAUTH_TOKEN_URL ||
|
|
148
|
-
`https://api2.${process.env.HYPERFRAMES_ENV === "dev" ? "dev." : ""}heygen.com/v1/oauth/token`;
|
|
142
|
+
process.env.HYPERFRAMES_OAUTH_TOKEN_URL || "https://api2.heygen.com/v1/oauth/token";
|
|
149
143
|
if (
|
|
150
144
|
!expectedClient ||
|
|
151
145
|
oauth.client_id !== expectedClient ||
|
|
@@ -89,24 +89,26 @@ test("heygenAuthHeaders tags OAuth requests as CLI traffic and with the media-us
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
test("development audio uses the
|
|
92
|
+
test("development audio uses its isolated store and the client and token host from the environment", () => {
|
|
93
93
|
withCleanHeygenEnv(() => {
|
|
94
94
|
const dir = mkdtempSync(join(tmpdir(), "hf-dev-cred-"));
|
|
95
95
|
try {
|
|
96
96
|
process.env.HYPERFRAMES_CONFIG_DIR = dir;
|
|
97
97
|
process.env.HYPERFRAMES_ENV = "dev";
|
|
98
|
+
process.env.HYPERFRAMES_OAUTH_CLIENT_ID = "fake-client";
|
|
99
|
+
process.env.HYPERFRAMES_OAUTH_TOKEN_URL = "https://auth.example.test/token";
|
|
98
100
|
mkdirSync(join(dir, "dev"));
|
|
99
101
|
writeFileSync(
|
|
100
102
|
join(dir, "dev", "credentials"),
|
|
101
103
|
JSON.stringify({
|
|
102
104
|
oauth: {
|
|
103
105
|
access_token: "dev-at",
|
|
104
|
-
client_id: "
|
|
105
|
-
token_endpoint: "https://
|
|
106
|
+
client_id: "fake-client",
|
|
107
|
+
token_endpoint: "https://auth.example.test/token",
|
|
106
108
|
},
|
|
107
109
|
}),
|
|
108
110
|
);
|
|
109
|
-
assert.equal(heygenBase(), "https://api.
|
|
111
|
+
assert.equal(heygenBase(), "https://api.heygen.com/v3");
|
|
110
112
|
assert.equal(heygenAuthHeaders().Authorization, "Bearer dev-at");
|
|
111
113
|
} finally {
|
|
112
114
|
rmSync(dir, { recursive: true, force: true });
|
|
@@ -169,18 +169,21 @@ export async function thesvgSearch(intent, ctx = {}) {
|
|
|
169
169
|
const hit = thesvgMatch(icons, entity);
|
|
170
170
|
if (!hit) return null;
|
|
171
171
|
// theSVG also ships mono, light/dark and wordmark variants; default is the full-color mark.
|
|
172
|
-
|
|
172
|
+
// A named variant the brand lacks is a miss, never the mark in its place.
|
|
173
|
+
const variant = ctx.variant || "default";
|
|
174
|
+
const route = hit.variants[variant];
|
|
175
|
+
if (!route) return null;
|
|
173
176
|
return {
|
|
174
177
|
url: `${THESVG_CDN}/public${route.startsWith("/") ? "" : "/"}${route}`,
|
|
175
178
|
ext: ".svg",
|
|
176
179
|
source: "search",
|
|
177
180
|
metadata: {
|
|
178
|
-
description: `${hit.title} logo (official mark)`,
|
|
181
|
+
description: `${hit.title} ${variant === "default" ? "logo (official mark)" : `logo (${variant})`}`,
|
|
179
182
|
provider: "thesvg",
|
|
180
183
|
provenance: {
|
|
181
184
|
entity,
|
|
182
185
|
slug: hit.slug,
|
|
183
|
-
variant
|
|
186
|
+
variant,
|
|
184
187
|
variants: Object.keys(hit.variants),
|
|
185
188
|
collection: hit.collection,
|
|
186
189
|
license: hit.license,
|
|
@@ -191,6 +194,7 @@ export async function thesvgSearch(intent, ctx = {}) {
|
|
|
191
194
|
}
|
|
192
195
|
|
|
193
196
|
export async function githubAvatarSearch(intent, ctx = {}) {
|
|
197
|
+
if (ctx.variant) return null; // an avatar or favicon is never a named variant
|
|
194
198
|
const entity = entityFrom(intent, ctx.entity);
|
|
195
199
|
const org = githubOrgFor(entity);
|
|
196
200
|
if (!org) return null;
|
|
@@ -213,6 +217,7 @@ export async function githubAvatarSearch(intent, ctx = {}) {
|
|
|
213
217
|
}
|
|
214
218
|
|
|
215
219
|
export async function faviconSearch(intent, ctx = {}) {
|
|
220
|
+
if (ctx.variant) return null;
|
|
216
221
|
const entity = entityFrom(intent, ctx.entity);
|
|
217
222
|
const domain = faviconDomainFor(entity);
|
|
218
223
|
const url = `https://icons.duckduckgo.com/ip3/${domain}.ico`;
|
|
@@ -296,3 +296,17 @@ test("thesvgSearch rejects a manifest redirect to a private host", async (t) =>
|
|
|
296
296
|
assert.equal(await thesvgSearch("vercel logo"), null);
|
|
297
297
|
assert.equal(seen.length, 1);
|
|
298
298
|
});
|
|
299
|
+
|
|
300
|
+
test("thesvgSearch returns the wordmark when asked, and a miss when the brand has none", async (t) => {
|
|
301
|
+
resetThesvgManifest();
|
|
302
|
+
t.mock.method(globalThis, "fetch", async () => json(ICONS));
|
|
303
|
+
const slack = await thesvgSearch("Slack logo", { variant: "wordmark" });
|
|
304
|
+
assert.match(slack.url, /\/icons\/slack\/wordmark\.svg$/);
|
|
305
|
+
assert.equal(slack.metadata.provenance.variant, "wordmark");
|
|
306
|
+
assert.equal(await thesvgSearch("Next.js logo", { variant: "wordmark" }), null);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
test("a named variant never falls through to an avatar or favicon", async () => {
|
|
310
|
+
assert.equal(await githubAvatarSearch("Slack logo", { variant: "wordmark" }), null);
|
|
311
|
+
assert.equal(await faviconSearch("Slack logo", { variant: "wordmark" }), null);
|
|
312
|
+
});
|
|
@@ -89,6 +89,7 @@ const { values: args } = parseArgs({
|
|
|
89
89
|
type: { type: "string", short: "t" },
|
|
90
90
|
intent: { type: "string", short: "i" },
|
|
91
91
|
entity: { type: "string", short: "e" },
|
|
92
|
+
variant: { type: "string" },
|
|
92
93
|
project: { type: "string", short: "p", default: "." },
|
|
93
94
|
adopt: { type: "boolean", default: false },
|
|
94
95
|
candidates: { type: "boolean", default: false },
|
|
@@ -124,6 +125,8 @@ Options:
|
|
|
124
125
|
--type, -t Media type (required)
|
|
125
126
|
--intent, -i What you need (required)
|
|
126
127
|
--entity, -e Entity name for cache matching (optional)
|
|
128
|
+
--variant With --type logo: the brand's other artwork, e.g. wordmark,
|
|
129
|
+
mono, light, dark (default: the full-colour mark)
|
|
127
130
|
--project, -p Project directory (default: .)
|
|
128
131
|
--adopt Adopt all existing assets/ files into the manifest
|
|
129
132
|
--candidates List reusable assets (project + global cache) for --type; no
|
|
@@ -153,6 +156,7 @@ Options:
|
|
|
153
156
|
const projectDir = resolve(args.project);
|
|
154
157
|
const type = args.type;
|
|
155
158
|
const intent = args.intent;
|
|
159
|
+
const variant = args.variant || null;
|
|
156
160
|
const entity = args.entity || null;
|
|
157
161
|
|
|
158
162
|
if (args.adopt) {
|
|
@@ -345,8 +349,9 @@ function localizeImportedRecord(record, localPath) {
|
|
|
345
349
|
}
|
|
346
350
|
|
|
347
351
|
async function run() {
|
|
348
|
-
// A forced provider bypasses reuse and pins the provider cascade
|
|
349
|
-
|
|
352
|
+
// A forced provider bypasses reuse and pins the provider cascade; so does a variant,
|
|
353
|
+
// since reuse is keyed on the intent and would hand back the default artwork.
|
|
354
|
+
const forced = !!args.provider || !!variant;
|
|
350
355
|
|
|
351
356
|
// 1. project manifest — exact-prompt match
|
|
352
357
|
const projectHit = forced ? null : findByPrompt(projectDir, intent, type);
|
|
@@ -422,6 +427,7 @@ async function run() {
|
|
|
422
427
|
const localOnly = args["local-only"];
|
|
423
428
|
const ctx = {
|
|
424
429
|
entity,
|
|
430
|
+
variant,
|
|
425
431
|
projectDir,
|
|
426
432
|
localOnly,
|
|
427
433
|
provider: args.provider,
|
|
@@ -582,10 +588,10 @@ async function run() {
|
|
|
582
588
|
...(searchResult.metadata?.transparent != null && {
|
|
583
589
|
transparent: searchResult.metadata.transparent,
|
|
584
590
|
}),
|
|
585
|
-
...(entity && { entity }),
|
|
591
|
+
...(entity && !variant && { entity }),
|
|
586
592
|
provenance: {
|
|
587
593
|
provider: searchResult.metadata?.provider || "unknown",
|
|
588
|
-
prompt: intent,
|
|
594
|
+
prompt: variant ? `${intent} [${variant}]` : intent,
|
|
589
595
|
// Keep auth method sparse for non-HeyGen providers.
|
|
590
596
|
...heygenAuthMethodFor(searchResult.metadata?.provider),
|
|
591
597
|
...searchResult.metadata?.provenance,
|
|
@@ -596,7 +602,7 @@ async function run() {
|
|
|
596
602
|
regenerateIndex(projectDir);
|
|
597
603
|
// Promote fetched assets into the global cache for reuse.
|
|
598
604
|
try {
|
|
599
|
-
cachePut(fullPath, record);
|
|
605
|
+
if (!variant) cachePut(fullPath, record);
|
|
600
606
|
} catch {
|
|
601
607
|
// promotion is best-effort; a resolve still succeeds locally
|
|
602
608
|
}
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-YTQSLNIA.js";
|
|
19
|
+
import "./chunk-6AEHVBMX.js";
|
|
20
20
|
import "./chunk-PXVQOMKL.js";
|
|
21
21
|
import {
|
|
22
22
|
diag
|
|
23
23
|
} from "./chunk-MCDNAIFF.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-6NJVSTSY.js";
|
|
25
25
|
import {
|
|
26
26
|
defineCommand
|
|
27
27
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
isCoreSkill,
|
|
44
44
|
presentSkills,
|
|
45
45
|
retiredSkillNotice
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-6EQSJ7MT.js";
|
|
47
47
|
import {
|
|
48
48
|
withMeta
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-B7OI3WAR.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-66W5IWLO.js";
|
|
61
61
|
import "./chunk-J3RXEDR2.js";
|
|
62
62
|
import "./chunk-QBXDU24O.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-PWHOMCFB.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-6EQSJ7MT.js";
|
|
13
|
+
import "./chunk-B7OI3WAR.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-ADVVQX4I.js";
|
|
|
18
18
|
import "./chunk-66W5IWLO.js";
|
|
19
19
|
import "./chunk-J3RXEDR2.js";
|
|
20
20
|
import "./chunk-QBXDU24O.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-PWHOMCFB.js";
|
|
22
22
|
import "./chunk-E63BDV4Z.js";
|
|
23
23
|
import "./chunk-G7VEYUZ2.js";
|
|
24
24
|
import "./chunk-XT6MXC7A.js";
|