hyperframes 0.9.8 → 0.9.9
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-KCOZUTMS.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -29
- package/dist/{asset-N3A7GB3E.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-KCKNENFH.js → audio-DDTYFS23.js} +26 -26
- package/dist/{auth-Y72WHJCW.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-RIKKG4N7.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-7TCK3SGH.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-JBG45ON2.js → billing-W224NIAM.js} +1 -1
- package/dist/{browser-4BF7NKPF.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-4W5XDIKM.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-H2Y2WRIA.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-NG6FULCN.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-HI5ICPRV.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-VKWAW4JW.js → chunk-2NGBIAUF.js} +19 -19
- package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-5D23BECZ.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-VLHCR3G2.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-ZJ5ZLU2I.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-GZZE2OJP.js → chunk-4W5X4S47.js} +9 -8
- package/dist/{chunk-6CEQCL6O.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-UQDO2L6F.js → chunk-62ATHBDS.js} +17 -14
- package/dist/{chunk-RPVL65M7.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-TLBSOI2R.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-QTEU6NL3.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-YXIXTFRO.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-4WJKSTDS.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-HVBQL3PZ.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-UUW654GD.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-RULCW25D.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-WY4J37EZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-2MUWGYXQ.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-UPN4UMT7.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-SBA4NG7Q.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-ZK3GFNHM.js → chunk-HUJMTTKR.js} +152 -26
- package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-TODLF56D.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
- package/dist/{chunk-W5VDIXYL.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-ZAOQWCZM.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-AC3TSGGG.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
- package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-X422IJKF.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-Y3RERZRQ.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-L3ZVUQGN.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-3LLFF6EE.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-CCFSUSAE.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-HFNB2CG3.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-VPOP4TU4.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-Q7ZXCZ6E.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-X5SWN5XJ.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-MJXAMRKF.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-F3ZHG5F4.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-4TWENQO7.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-X3LE5A2K.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-MYHKF3MS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-OP2BHWCQ.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-7ZNSFBKV.js → diff-46JK5ZCL.js} +156 -76
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-ABSXYNXY.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-X2OAWHME.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-4MDK4K7Q.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-26SWSHDR.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-JFIZSYMH.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-4O3Q3LOD.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-7J7AQJDY.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-CVTJDQIX.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-55J7UDDC.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-OZLUDUOS.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-CY2TRPRE.js → generate-BVJ5XNWP.js} +18 -18
- package/dist/{get-HJHSVKGK.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-JVTYF2T6.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-6WDI76YU.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-FIP5NGFC.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-WTGJE4QB.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-UYTDM56U.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-BTLAE3ZR.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-KIMJNTS4.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-74LK522L.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-CJ7P5NLO.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-RLIXTM56.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-IOJB746U.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-V3TMQEQV.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-GNVKQO3W.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-3QZIJFNX.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-7LUYTL2E.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MYDIYP5I.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-UDBHEIYA.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-UEJMPEPN.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-XH2XKNCL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-L5P4QXXH.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-XXEU7RTN.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-V6LNVTBH.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-JL4JSTSP.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-RLZ64COI.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-XAE2YCRZ.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-WCLJ4GPZ.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-JGOZUFKK.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-L4AWBUJJ.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-5FK3HCJ7.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-JT324RDD.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-5O33EGN2.js → start-5ZDH643Z.js} +19 -19
- package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-BT1zmedz.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CaOrmH_8.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-KKGBELBR.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-BT4WDK3B.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-77PW2F7B.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-RKJ63VIU.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-JATS65YH.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-FYBJBBP3.js → transcribe-WS2STSCJ.js} +23 -23
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-NU374MVC.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-VIWR25J6.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-3HM2XCH4.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-N3CZ437C.js +0 -5035
- package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -11,13 +11,23 @@ import {
|
|
|
11
11
|
reportArtifacts,
|
|
12
12
|
withProjectLock
|
|
13
13
|
} from "./chunk-KUXOAS4Z.js";
|
|
14
|
+
import {
|
|
15
|
+
collectProjectMedia,
|
|
16
|
+
mediaPath
|
|
17
|
+
} from "./chunk-UWYHZCEQ.js";
|
|
18
|
+
import {
|
|
19
|
+
captureArtifactRevision
|
|
20
|
+
} from "./chunk-H534266X.js";
|
|
21
|
+
import {
|
|
22
|
+
trackLintRun
|
|
23
|
+
} from "./chunk-BBP5KGYS.js";
|
|
14
24
|
import {
|
|
15
25
|
beginCheckSnapshots,
|
|
16
26
|
checkSnapshotDirectory,
|
|
17
27
|
finishCheckSnapshots,
|
|
18
28
|
preResolveHostileMediaProxies,
|
|
19
29
|
rectToBbox
|
|
20
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OYAZODSP.js";
|
|
21
31
|
import {
|
|
22
32
|
CONTENT_OVERLAP_HELD_ERROR_MS,
|
|
23
33
|
DEFAULT_MAX_STATIC_SEC,
|
|
@@ -38,48 +48,38 @@ import {
|
|
|
38
48
|
mergeSampleTimes,
|
|
39
49
|
parseAt,
|
|
40
50
|
readMotionSpec
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
collectProjectMedia,
|
|
44
|
-
mediaPath
|
|
45
|
-
} from "./chunk-L3ZVUQGN.js";
|
|
51
|
+
} from "./chunk-NX2X326Z.js";
|
|
46
52
|
import {
|
|
47
53
|
findingAtRoot,
|
|
48
54
|
findingElementKey,
|
|
49
55
|
formatFindingTimes,
|
|
50
56
|
groupSampledFindings
|
|
51
57
|
} from "./chunk-TQBQYO4L.js";
|
|
52
|
-
import {
|
|
53
|
-
captureArtifactRevision
|
|
54
|
-
} from "./chunk-UPN4UMT7.js";
|
|
55
|
-
import {
|
|
56
|
-
trackLintRun
|
|
57
|
-
} from "./chunk-4WJKSTDS.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveProject
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
recordArtifacts
|
|
63
|
-
} from "./chunk-UGUYWTWD.js";
|
|
60
|
+
} from "./chunk-6DKWOG7L.js";
|
|
64
61
|
import {
|
|
65
62
|
withRemainingBudget
|
|
66
63
|
} from "./chunk-YGGZ23BB.js";
|
|
64
|
+
import {
|
|
65
|
+
recordArtifacts
|
|
66
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
67
67
|
import {
|
|
68
68
|
BrowserCleanupError,
|
|
69
69
|
closeManagedBrowser,
|
|
70
70
|
onStopSignal,
|
|
71
71
|
registerBrowserSessionCleanup
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-BHL4KN3H.js";
|
|
73
73
|
import {
|
|
74
74
|
resolveLocalBrowserGpuMode
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-6UZLHLFP.js";
|
|
76
76
|
import {
|
|
77
77
|
trackCheckReport,
|
|
78
78
|
trackCommandFailure
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-2ROPUTCS.js";
|
|
80
80
|
import {
|
|
81
81
|
swallowedFlagUsageError
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-WWBEAKTO.js";
|
|
83
83
|
import {
|
|
84
84
|
defineCommand
|
|
85
85
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -96,14 +96,14 @@ import {
|
|
|
96
96
|
extractMediaMetadata,
|
|
97
97
|
findHdrAutoPromotion,
|
|
98
98
|
gradingKeepsSdr
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
100
100
|
import {
|
|
101
101
|
lintProject,
|
|
102
102
|
shouldBlockRender
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-XX77LLFJ.js";
|
|
104
104
|
import {
|
|
105
105
|
withMeta
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-TZBJEKKU.js";
|
|
107
107
|
import {
|
|
108
108
|
recordLastCheck
|
|
109
109
|
} from "./chunk-BLBMPEBX.js";
|
|
@@ -2362,7 +2362,7 @@ function resolveMotionSpec(projectDir) {
|
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
2364
|
async function runBrowserCheck(project, options, motion, deadline, prelaunched) {
|
|
2365
|
-
const module = await import("./checkBrowser-
|
|
2365
|
+
const module = await import("./checkBrowser-S66AHKW3.js");
|
|
2366
2366
|
return module.runBrowserCheck(project, options, motion, runAuditGrid, deadline, prelaunched);
|
|
2367
2367
|
}
|
|
2368
2368
|
var adoptedBrowser;
|
|
@@ -2376,7 +2376,7 @@ async function prelaunchBrowser(project, options) {
|
|
|
2376
2376
|
if (adopted) return adopted;
|
|
2377
2377
|
const html = await readFile(project.indexPath, "utf8").catch(() => void 0);
|
|
2378
2378
|
if (html === void 0) return void 0;
|
|
2379
|
-
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-
|
|
2379
|
+
const { prelaunchCompositionBrowser } = await import("./captureCompositionFrame-YMB3CKSP.js");
|
|
2380
2380
|
return prelaunchCompositionBrowser(html, options.browserGpuMode);
|
|
2381
2381
|
}
|
|
2382
2382
|
async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
@@ -2388,11 +2388,11 @@ async function writeSnapshot(projectDir, index, time, pngBase64) {
|
|
|
2388
2388
|
return relative(projectDir, path);
|
|
2389
2389
|
}
|
|
2390
2390
|
async function captureFindingFrames(project, options, requests, deadline) {
|
|
2391
|
-
const module = await import("./checkBrowser-
|
|
2391
|
+
const module = await import("./checkBrowser-S66AHKW3.js");
|
|
2392
2392
|
return module.captureFindingFrames(project, options, requests, deadline);
|
|
2393
2393
|
}
|
|
2394
2394
|
async function captureFindingCrops(project, options, requests, deadline) {
|
|
2395
|
-
const module = await import("./checkBrowser-
|
|
2395
|
+
const module = await import("./checkBrowser-S66AHKW3.js");
|
|
2396
2396
|
return module.captureFindingCrops(project, options, requests, deadline);
|
|
2397
2397
|
}
|
|
2398
2398
|
async function inspectProjectMedia(project, dependencies) {
|
|
@@ -2414,7 +2414,7 @@ function collectMedia(project) {
|
|
|
2414
2414
|
return collectProjectMedia(project.dir);
|
|
2415
2415
|
}
|
|
2416
2416
|
async function inspectAudio(project, media) {
|
|
2417
|
-
const module = await import("./checkAudio-
|
|
2417
|
+
const module = await import("./checkAudio-4NRQ3WGS.js");
|
|
2418
2418
|
return module.inspectAudio(project.dir, relative(project.dir, project.indexPath), media);
|
|
2419
2419
|
}
|
|
2420
2420
|
function audioCheckFailure(project, error) {
|
|
@@ -2488,7 +2488,7 @@ var DEFAULT_COMMAND_DEPENDENCIES = {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
},
|
|
2490
2490
|
async prepareMedia(project, options) {
|
|
2491
|
-
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-
|
|
2491
|
+
const { bundleWithLocalizedFonts } = await import("./bundleWithLocalizedFonts-K5CQPNIZ.js");
|
|
2492
2492
|
const html = await bundleWithLocalizedFonts(project.dir);
|
|
2493
2493
|
return (await preResolveHostileMediaProxies(project.dir, html, options.autoProxy)).files;
|
|
2494
2494
|
},
|
|
@@ -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-LR5NVYZT.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-5LOZWO2M.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W5AUD5OL.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-42TYQPES.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AVNF52HR.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BHL4KN3H.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -432,7 +432,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
432
432
|
}
|
|
433
433
|
async function probeMedia(inputPath) {
|
|
434
434
|
const isImage = inferInputKind(inputPath) === "image";
|
|
435
|
-
const engine = await import("./src-
|
|
435
|
+
const engine = await import("./src-RL6YEPTD.js");
|
|
436
436
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
437
437
|
if (isImage) {
|
|
438
438
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LTBBFLOM.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JHILL4BN.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/lambda/_dimensions.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-63GTSNMY.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|
|
@@ -7,32 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NNF6G2UH.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-S2UKSI3C.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-R7EKEIAK.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LV5SL4YW.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6KV3CMY2.js";
|
|
30
30
|
import {
|
|
31
31
|
readJsonFlag
|
|
32
32
|
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2ROPUTCS.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-W5AUD5OL.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7RM3TB62.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BXYB5NGT.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
keepVoice,
|
|
@@ -20,20 +20,22 @@ import {
|
|
|
20
20
|
publicVoices,
|
|
21
21
|
runJob,
|
|
22
22
|
senderScope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-4W5X4S47.js";
|
|
24
24
|
import {
|
|
25
25
|
Fix,
|
|
26
|
+
probeSeconds,
|
|
26
27
|
probeVideo,
|
|
27
28
|
projectOf,
|
|
28
29
|
round,
|
|
29
30
|
runFfmpeg,
|
|
30
31
|
videoClip
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A33GFLPY.js";
|
|
32
33
|
import {
|
|
33
34
|
defineCommand
|
|
34
35
|
} from "./chunk-DL4OD7IA.js";
|
|
35
36
|
|
|
36
37
|
// src/heygen/generate.ts
|
|
38
|
+
import { randomUUID } from "crypto";
|
|
37
39
|
import {
|
|
38
40
|
existsSync,
|
|
39
41
|
mkdirSync,
|
|
@@ -44,11 +46,13 @@ import {
|
|
|
44
46
|
writeFileSync
|
|
45
47
|
} from "fs";
|
|
46
48
|
import { tmpdir } from "os";
|
|
47
|
-
import { dirname, extname, join, relative, resolve } from "path";
|
|
49
|
+
import { basename, dirname, extname, join, relative, resolve } from "path";
|
|
48
50
|
var GENERATE_TYPES = [
|
|
49
51
|
"image",
|
|
50
52
|
"video",
|
|
53
|
+
"lipsync",
|
|
51
54
|
"avatar",
|
|
55
|
+
"cutout",
|
|
52
56
|
"voice",
|
|
53
57
|
"music"
|
|
54
58
|
];
|
|
@@ -157,16 +161,53 @@ var ROUTES = {
|
|
|
157
161
|
ledger: "video",
|
|
158
162
|
ext: [".mp4", ".mov", ".webm"]
|
|
159
163
|
},
|
|
164
|
+
lipsync: {
|
|
165
|
+
path: "/v3/lipsyncs",
|
|
166
|
+
start: (c, body, key, signal) => c.createLipsyncV3({ body, idempotencyKey: key, signal }),
|
|
167
|
+
status: (c, id, signal) => c.getLipsyncV3({ lipsync_id: id, signal }),
|
|
168
|
+
body: (r, media) => ({
|
|
169
|
+
video: media(need(r.video, "--video", "--video work/s01.mp4"), "video"),
|
|
170
|
+
audio: media(need(r.audio, "--audio", "--audio work/s01.mp3"), "audio"),
|
|
171
|
+
mode: "speed",
|
|
172
|
+
enable_dynamic_duration: false,
|
|
173
|
+
fps_mode: "cfr",
|
|
174
|
+
keep_the_same_format: true
|
|
175
|
+
}),
|
|
176
|
+
urls: ["video_url"],
|
|
177
|
+
ledger: "video",
|
|
178
|
+
ext: [".mp4"]
|
|
179
|
+
},
|
|
180
|
+
cutout: {
|
|
181
|
+
path: "/v3/background-removals",
|
|
182
|
+
start: (c, body, key, signal) => c.createBackgroundRemoval({
|
|
183
|
+
body: { ...body, request_id: key },
|
|
184
|
+
signal
|
|
185
|
+
}),
|
|
186
|
+
status: (c, id, signal) => c.getBackgroundRemoval({ job_id: id, signal }),
|
|
187
|
+
body: (r, media) => ({
|
|
188
|
+
video: media(need(r.video, "--video", "--video assets/presenter.mp4"), "video"),
|
|
189
|
+
layers: ["foreground"]
|
|
190
|
+
}),
|
|
191
|
+
urls: ["layers.foreground"],
|
|
192
|
+
ledger: "video",
|
|
193
|
+
ext: [".webm", ".mov"]
|
|
194
|
+
},
|
|
160
195
|
avatar: {
|
|
161
196
|
path: "/v3/videos",
|
|
162
197
|
start: (c, body, key, signal) => c.createVideo({ body, idempotencyKey: key, signal }),
|
|
163
198
|
status: (c, id, signal) => c.getVideoV3({ video_id: id, signal }),
|
|
164
199
|
body: (r, media) => ({
|
|
165
|
-
type: "
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
200
|
+
...r.avatar ? { type: "avatar", avatar_id: r.avatar } : {
|
|
201
|
+
type: "image",
|
|
202
|
+
image: media(need(r.photo, "--photo", "--photo assets/presenter.png"), "image"),
|
|
203
|
+
...r.prompt ? { motion_prompt: r.prompt } : {}
|
|
204
|
+
},
|
|
205
|
+
...r.audio ? { audio_asset_id: media(r.audio, "audio").asset_id } : {
|
|
206
|
+
script: need(r.script, "--script", '--script "What they say"'),
|
|
207
|
+
voice_id: need(r.voice, "--voice", "--voice <voice id or language>")
|
|
208
|
+
},
|
|
169
209
|
...r.aspect ? { aspect_ratio: r.aspect } : {},
|
|
210
|
+
resolution: "1080p",
|
|
170
211
|
output_format: "mp4"
|
|
171
212
|
}),
|
|
172
213
|
urls: ["video_url"],
|
|
@@ -252,6 +293,30 @@ function inline(work, masks = []) {
|
|
|
252
293
|
};
|
|
253
294
|
};
|
|
254
295
|
}
|
|
296
|
+
function assetsOf(r) {
|
|
297
|
+
if (r.type === "lipsync") return [r.video, r.audio];
|
|
298
|
+
if (r.type === "cutout") return [r.video];
|
|
299
|
+
return r.type === "avatar" && r.audio ? [r.audio] : [];
|
|
300
|
+
}
|
|
301
|
+
async function uploaded(paths) {
|
|
302
|
+
const ids = /* @__PURE__ */ new Map();
|
|
303
|
+
if (!paths.length) return ids;
|
|
304
|
+
const { createCloudClient } = await import("./cloud-Z3FNCC4T.js");
|
|
305
|
+
const { uploadAssetViaDirectUpload } = await import("./upload-L5TSWWIU.js");
|
|
306
|
+
const { getMimeType } = await import("./dist-CCPYPKOC.js");
|
|
307
|
+
const client = await createCloudClient();
|
|
308
|
+
for (const path of paths) {
|
|
309
|
+
const asset = await uploadAssetViaDirectUpload({
|
|
310
|
+
client,
|
|
311
|
+
bytes: new Uint8Array(readFileSync(path)),
|
|
312
|
+
filename: basename(path),
|
|
313
|
+
contentType: getMimeType(path),
|
|
314
|
+
idempotencyKey: randomUUID()
|
|
315
|
+
});
|
|
316
|
+
ids.set(path, asset.asset_id);
|
|
317
|
+
}
|
|
318
|
+
return ids;
|
|
319
|
+
}
|
|
255
320
|
function cutsInside(path, seconds) {
|
|
256
321
|
const info = probeVideo(path);
|
|
257
322
|
const clip = videoClip(info.path, 0, seconds, info);
|
|
@@ -375,6 +440,9 @@ function checkGuide(r) {
|
|
|
375
440
|
);
|
|
376
441
|
}
|
|
377
442
|
var VOICE_ID = /^[0-9a-f]{32}$/i;
|
|
443
|
+
async function voiceFor(r) {
|
|
444
|
+
return r.type === "voice" || r.type === "avatar" && !r.audio ? pickVoice(r) : void 0;
|
|
445
|
+
}
|
|
378
446
|
async function pickVoice(r) {
|
|
379
447
|
if (r.voice && VOICE_ID.test(r.voice)) return { voice_id: r.voice, name: r.voice };
|
|
380
448
|
if (!r.voice) {
|
|
@@ -422,11 +490,18 @@ async function generate(r, onWait, credits) {
|
|
|
422
490
|
const project = projectOf(dirname(out));
|
|
423
491
|
const work = mkdtempSync(join(tmpdir(), "hf-generate-"));
|
|
424
492
|
try {
|
|
425
|
-
const
|
|
426
|
-
const
|
|
493
|
+
const sources = assetsOf(r);
|
|
494
|
+
const ids = await uploaded(sources);
|
|
495
|
+
const local = inline(work, r.masks);
|
|
496
|
+
const body = route.body(
|
|
497
|
+
r,
|
|
498
|
+
(path, kind) => ids.has(path) ? { type: "asset_id", asset_id: ids.get(path) } : local(path, kind)
|
|
499
|
+
);
|
|
500
|
+
const sent = [...ids.values()].reduce((t, id) => t.replaceAll(id, ""), JSON.stringify(body));
|
|
501
|
+
const key = idempotencyKey(route.path, [...sources.map((p) => readFileSync(p)), sent]);
|
|
427
502
|
const job = await runJob(route, body, key, {
|
|
428
503
|
log: {
|
|
429
|
-
projectDir: project ??
|
|
504
|
+
projectDir: project ?? process.cwd(),
|
|
430
505
|
what: `generate ${r.type} ${relative(project ?? ".", out)}`
|
|
431
506
|
},
|
|
432
507
|
onWait: (j) => onWait?.(j.status),
|
|
@@ -489,7 +564,9 @@ async function generate(r, onWait, credits) {
|
|
|
489
564
|
...r.references?.length ? { references: r.references.map(describe) } : {},
|
|
490
565
|
...r.firstFrame ? { first_frame: describe(r.firstFrame) } : {},
|
|
491
566
|
...r.photo ? { photo: describe(r.photo) } : {},
|
|
567
|
+
...r.avatar ? { avatar: r.avatar } : {},
|
|
492
568
|
...r.audio ? { audio: describe(r.audio) } : {},
|
|
569
|
+
...r.video ? { video: describe(r.video) } : {},
|
|
493
570
|
...r.motion ? { motion: describe(r.motion) } : {},
|
|
494
571
|
...r.masks?.length ? { motion_masks: r.masks.map((m) => [...m.box, ...m.window ?? []]) } : {},
|
|
495
572
|
...r.voice ? { voice: r.voice } : {},
|
|
@@ -535,13 +612,17 @@ var VIDEO_768P_PER_S = 0.018;
|
|
|
535
612
|
var VIDEO_REF_768P_PER_S = 0.05;
|
|
536
613
|
var VIDEO_INCLUDED_IMAGES = 2;
|
|
537
614
|
var VIDEO_EXTRA_IMAGE = 0.02;
|
|
538
|
-
var HF_VIDEO_768P_PER_S =
|
|
539
|
-
var HF_VIDEO_REF_768P_PER_S =
|
|
540
|
-
var HF_VIDEO_EXTRA_IMAGE =
|
|
541
|
-
var HF_AVATAR_IV_PHOTO_PER_S =
|
|
615
|
+
var HF_VIDEO_768P_PER_S = 18;
|
|
616
|
+
var HF_VIDEO_REF_768P_PER_S = 50;
|
|
617
|
+
var HF_VIDEO_EXTRA_IMAGE = 20;
|
|
618
|
+
var HF_AVATAR_IV_PHOTO_PER_S = 1155 / 60;
|
|
619
|
+
var HF_AVATAR_IV_TWIN_PER_S = 2415 / 60;
|
|
620
|
+
var HF_LIPSYNC_SPEED_PER_S = 7;
|
|
542
621
|
var MUSIC_PER_TRACK = 0.08;
|
|
543
622
|
var AVATAR_IV_PER_MIN = 4.83;
|
|
544
623
|
var SCRIPT_WORDS_PER_S = 2;
|
|
624
|
+
var HF_TTS_PER_S = 1;
|
|
625
|
+
var SPEECH_CHARS_PER_S = { zh: 5, en: 15 };
|
|
545
626
|
function priceOf(r) {
|
|
546
627
|
switch (r.type) {
|
|
547
628
|
case "image": {
|
|
@@ -572,24 +653,44 @@ function priceOf(r) {
|
|
|
572
653
|
seconds * HF_VIDEO_768P_PER_S
|
|
573
654
|
);
|
|
574
655
|
}
|
|
656
|
+
case "lipsync": {
|
|
657
|
+
const seconds = r.video ? probeVideo(r.video).pictureDuration : 0;
|
|
658
|
+
return {
|
|
659
|
+
usd: null,
|
|
660
|
+
list: null,
|
|
661
|
+
credits: seconds * HF_LIPSYNC_SPEED_PER_S,
|
|
662
|
+
basis: `lipsync at speed, ${round(seconds, 2)} s at ${HF_LIPSYNC_SPEED_PER_S} credits a second`
|
|
663
|
+
};
|
|
664
|
+
}
|
|
575
665
|
case "avatar": {
|
|
576
666
|
const words = (r.script ?? "").split(/\s+/).filter(Boolean).length;
|
|
577
|
-
const seconds = Math.max(1, Math.floor(words / SCRIPT_WORDS_PER_S));
|
|
667
|
+
const seconds = r.audio ? probeSeconds(r.audio) : Math.max(1, Math.floor(words / SCRIPT_WORDS_PER_S));
|
|
578
668
|
return at(
|
|
579
669
|
Math.ceil(seconds * AVATAR_IV_PER_MIN) / 60,
|
|
580
|
-
`avatar video, about ${seconds} s from ${words} words at $4.83 a minute`,
|
|
581
|
-
seconds * HF_AVATAR_IV_PHOTO_PER_S
|
|
670
|
+
`avatar video, about ${round(seconds, 1)} s${r.audio ? "" : ` from ${words} words`} at $4.83 a minute`,
|
|
671
|
+
seconds * (r.avatar ? HF_AVATAR_IV_TWIN_PER_S : HF_AVATAR_IV_PHOTO_PER_S)
|
|
582
672
|
);
|
|
583
673
|
}
|
|
674
|
+
case "cutout":
|
|
675
|
+
return {
|
|
676
|
+
usd: null,
|
|
677
|
+
list: null,
|
|
678
|
+
credits: null,
|
|
679
|
+
basis: "background removal, not priced ahead"
|
|
680
|
+
};
|
|
584
681
|
case "music":
|
|
585
682
|
return at(MUSIC_PER_TRACK, "lyria-3-pro, $0.08 a track");
|
|
586
|
-
case "voice":
|
|
683
|
+
case "voice": {
|
|
684
|
+
const text = r.script ?? "";
|
|
685
|
+
const cjk = (text.match(new RegExp("\\p{Script=Han}", "gu")) ?? []).length;
|
|
686
|
+
const seconds = cjk / SPEECH_CHARS_PER_S.zh + (text.length - cjk) / SPEECH_CHARS_PER_S.en;
|
|
587
687
|
return {
|
|
588
688
|
usd: null,
|
|
589
689
|
list: null,
|
|
590
|
-
credits:
|
|
591
|
-
basis:
|
|
690
|
+
credits: seconds * HF_TTS_PER_S,
|
|
691
|
+
basis: `about ${round(seconds, 1)} s of speech at ${HF_TTS_PER_S} credit a second, an estimate: it is charged per character`
|
|
592
692
|
};
|
|
693
|
+
}
|
|
593
694
|
}
|
|
594
695
|
}
|
|
595
696
|
var creditsOf = (p) => p.credits === null ? null : Math.ceil(p.credits - 1e-9);
|
|
@@ -622,6 +723,18 @@ var examples = [
|
|
|
622
723
|
"The original's presenter re-shot clean, saying an 8 s stretch of the original voice",
|
|
623
724
|
'hyperframes media-use generate --type video --reference assets/presenter-clean.png --audio assets/s02-voice.m4a --motion assets/s02-original.mp4 --mask 110,615,390,165 --prompt "the woman talks to camera, seated, soft daylight" --seconds 8 --aspect 9:16 --out assets/s02-presenter.mp4'
|
|
624
725
|
],
|
|
726
|
+
[
|
|
727
|
+
"That shot's mouth redone to the exact voice, which stays as it is",
|
|
728
|
+
"hyperframes media-use generate --type lipsync --video assets/s02-presenter.mp4 --audio assets/s02-voice.mp3 --out assets/s02-lips.mp4"
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
"The presenter cut out of their room, on a transparent background",
|
|
732
|
+
"hyperframes media-use generate --type cutout --video assets/presenter.mp4 --out assets/presenter-cutout.webm"
|
|
733
|
+
],
|
|
734
|
+
[
|
|
735
|
+
"The person in a photo saying a finished voice, which stays as it is",
|
|
736
|
+
'hyperframes media-use generate --type avatar --photo assets/presenter.png --audio assets/vo.mp3 --prompt "seated, talks with both hands" --aspect 16:9 --out assets/host.mp4'
|
|
737
|
+
],
|
|
625
738
|
[
|
|
626
739
|
"The person in a photo saying a script in a chosen voice",
|
|
627
740
|
'hyperframes media-use generate --type avatar --photo assets/presenter.png --script "Hi, I am Ana" --voice <voice-id> --out assets/ana.mp4'
|
|
@@ -636,7 +749,7 @@ function repeated(raw, flag) {
|
|
|
636
749
|
var generate_default = defineCommand({
|
|
637
750
|
meta: {
|
|
638
751
|
name: "generate",
|
|
639
|
-
description: "Make new media on HeyGen: an image (edited from references), a video shot (from a first frame), a person speaking from a photo, a voice, or music. --plan prices it first"
|
|
752
|
+
description: "Make new media on HeyGen: an image (edited from references), a video shot (from a first frame), a shot's mouth redone to a voice, a person speaking from a photo, a voice, or music. --plan prices it first"
|
|
640
753
|
},
|
|
641
754
|
args: {
|
|
642
755
|
type: {
|
|
@@ -649,14 +762,21 @@ var generate_default = defineCommand({
|
|
|
649
762
|
description: "The project file to write, e.g. assets/plate.png",
|
|
650
763
|
required: true
|
|
651
764
|
},
|
|
652
|
-
prompt: {
|
|
765
|
+
prompt: {
|
|
766
|
+
type: "string",
|
|
767
|
+
description: "What it shows or sounds like (image, video, music); avatar: how a photo moves"
|
|
768
|
+
},
|
|
653
769
|
reference: {
|
|
654
770
|
type: "string",
|
|
655
771
|
description: "image: comma-separated pictures to edit from or follow; video: the person to show speaking"
|
|
656
772
|
},
|
|
657
773
|
audio: {
|
|
658
774
|
type: "string",
|
|
659
|
-
description: "video: speech the referenced person says
|
|
775
|
+
description: "video: speech the referenced person says (5\u201315 s), a reference the model re-paces; lipsync, avatar: the exact voice"
|
|
776
|
+
},
|
|
777
|
+
video: {
|
|
778
|
+
type: "string",
|
|
779
|
+
description: "lipsync: the shot whose mouth is redone; cutout: the shot cut out of its background"
|
|
660
780
|
},
|
|
661
781
|
motion: {
|
|
662
782
|
type: "string",
|
|
@@ -673,6 +793,10 @@ var generate_default = defineCommand({
|
|
|
673
793
|
},
|
|
674
794
|
"first-frame": { type: "string", description: "video: the picture the shot starts from" },
|
|
675
795
|
photo: { type: "string", description: "avatar: the person's photo" },
|
|
796
|
+
avatar: {
|
|
797
|
+
type: "string",
|
|
798
|
+
description: "avatar: the person's own HeyGen avatar look id, instead of --photo"
|
|
799
|
+
},
|
|
676
800
|
script: { type: "string", description: "avatar, voice: the words spoken" },
|
|
677
801
|
voice: {
|
|
678
802
|
type: "string",
|
|
@@ -716,10 +840,12 @@ var generate_default = defineCommand({
|
|
|
716
840
|
references: args.reference?.split(",").map((p) => p.trim()).filter(Boolean),
|
|
717
841
|
firstFrame: args["first-frame"],
|
|
718
842
|
audio: args.audio,
|
|
843
|
+
video: args.video,
|
|
719
844
|
motion: args.motion,
|
|
720
845
|
allowCuts: args["allow-cuts"],
|
|
721
846
|
masks: repeated(rawArgs, "--mask").map(parseMask),
|
|
722
847
|
photo: args.photo,
|
|
848
|
+
avatar: args.avatar,
|
|
723
849
|
script: args.script,
|
|
724
850
|
voice: args.voice,
|
|
725
851
|
seconds: num(args.seconds, "--seconds"),
|
|
@@ -728,7 +854,7 @@ var generate_default = defineCommand({
|
|
|
728
854
|
bpm: num(args.bpm, "--bpm"),
|
|
729
855
|
instrumental: !args.vocals
|
|
730
856
|
};
|
|
731
|
-
const voice =
|
|
857
|
+
const voice = await voiceFor(request);
|
|
732
858
|
if (voice) request.voice = voice.voice_id;
|
|
733
859
|
const price = priceOf(request);
|
|
734
860
|
const credits = creditsOf(price);
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PPMCILED.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W5AUD5OL.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XX77LLFJ.js";
|
|
24
24
|
import {
|
|
25
25
|
SPLIT_BOUNDARY_EPSILON_S,
|
|
26
26
|
readClipTiming,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import {
|
|
32
32
|
decodedUrlPath,
|
|
33
33
|
removeElementWithGsapCascade
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JHILL4BN.js";
|
|
35
35
|
import {
|
|
36
36
|
parseHTML
|
|
37
37
|
} from "./chunk-GWTIFRF5.js";
|