hyperframes 0.8.221 → 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-7CVO7K6M.js → add-PBLOPJHC.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-OD74HKYZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-QCG2BTDC.js} +12 -11
- package/dist/api.d.ts +5 -3
- package/dist/api.js +38 -26
- package/dist/{asset-ZVKHSO3M.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-ZX5WZTDQ.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-7AH2C6PB.js} +153 -1160
- package/dist/{auth-2J6FP462.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-UR67LI4H.js} +12 -9
- package/dist/{beats-LRZOZUUQ.js → beats-ISWSYNN6.js} +54 -22
- package/dist/{benchmark-XJWLDTIL.js → benchmark-7JUATINH.js} +12 -11
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-STEVEWWA.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-VB5ID7HT.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-U3ZT3GNI.js → capture-LBEGVQTJ.js} +80 -38
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-5L3J4MZ4.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-SNUTPI57.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-MQCBMOKA.js} +47 -45
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-6VPMLIY6.js} +22 -21
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-SHUVFQ4S.js} +45 -39
- package/dist/{chunk-YKMFCE5B.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-TNQCXU37.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-3FGEDDSA.js} +27 -28
- package/dist/{chunk-HSHKLYDI.js → chunk-44IPXXSK.js} +7 -5
- package/dist/{chunk-TVT465RJ.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-ZBLSSWSE.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-M2F6VGCP.js → chunk-4XQQQ4KN.js} +85 -50
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-67CALYTU.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-6LE7K3YM.js} +17 -14
- package/dist/{chunk-Z7YQEDA5.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-I45R2REQ.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-L63FJVSC.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-A5WWEW6U.js} +2 -2
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-OPKSVV4G.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-625I5VBE.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-B6F33PUK.js} +6 -8
- package/dist/{chunk-AW7A27JM.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-322M35EB.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-6YW3FEHC.js → chunk-C466I3DT.js} +9 -8
- package/dist/{chunk-M2BCU4Y5.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-KQPP4NIZ.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-U6WH572X.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-XFMO3BEN.js → chunk-EHZESMRB.js} +18 -6
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-2ZNURTH5.js → chunk-EX75C5HT.js} +4459 -4312
- package/dist/{chunk-4ZM727AO.js → chunk-FKBWONRY.js} +5 -5
- package/dist/{chunk-YISDQ7YP.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-ZKPRJPWN.js → chunk-G5KX4X6W.js} +59 -59
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-LYZB5CJN.js → chunk-HT3D5AKG.js} +160 -19
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-SAKL7SZH.js → chunk-IQ7FABPU.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-TMK3MW7B.js → chunk-JO4LHFFP.js} +10 -10
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-YSZ4VMXI.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ROVRC3CG.js → chunk-KCDWRMTC.js} +5 -5
- package/dist/{chunk-74E7EHVH.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-KT2WLSX5.js} +19 -10
- package/dist/{chunk-OMLDAF44.js → chunk-KWYK65GR.js} +9 -8
- package/dist/{chunk-F6WHVEUS.js → chunk-LAIGIOEA.js} +5 -1
- package/dist/{chunk-3PJ3HVLG.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-XETZLYGW.js → chunk-M4UVOUWC.js} +2 -2
- package/dist/{chunk-DMCU2ELU.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-MYXFBIJO.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-MYNBV7WG.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-N6XKBBT5.js} +8 -8
- package/dist/{chunk-OOEOJPFY.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-ZOLKM3VZ.js → chunk-OL2C3ODS.js} +9 -9
- package/dist/{chunk-QLQVQQP6.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-MXVH6UW6.js → chunk-OWFSGDQS.js} +6 -57
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-5YT2KHPO.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-AZI2T2KO.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-IDWJJ7PP.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-QU5OYMTB.js} +140 -54
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-NQOCM4KQ.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-Y4GLFHO5.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-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-BQNTY7J5.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-SX7ESVCQ.js} +5 -29
- package/dist/{chunk-P6FGS4U6.js → chunk-UFYWGUUV.js} +6 -6
- package/dist/{chunk-GSCFMG4C.js → chunk-UGUWSAJT.js} +3 -3
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-XDTCPMR3.js → chunk-UQVAAEPQ.js} +2 -2
- 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-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/chunk-WGOIJN57.js +95 -0
- package/dist/{chunk-RVCWVOXM.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RVIMLJXC.js → chunk-WUXDIF5D.js} +60 -23
- package/dist/{chunk-QYUXDFJY.js → chunk-WWOHLNFO.js} +12 -10
- package/dist/{chunk-JGZUG5V4.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-O7WR4AHX.js → chunk-ZEKV5T3I.js} +14 -14
- package/dist/{clean-3NMJWZXK.js → clean-JZOPMJMV.js} +27 -26
- package/dist/cli.js +59 -56
- package/dist/{cloud-CB3NYNUR.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-LA2FKS2F.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-IQCFSC5Z.js} +37 -36
- package/dist/{compiler-SEQRWEEN.js → compiler-J7OZQIPD.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-FOC2CAZX.js} +18 -17
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-T4E53ELR.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-PUF2DW3H.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-VARV35QH.js → dist-24QQO5IL.js} +6 -6
- package/dist/{dist-B6C3DU6I.js → dist-XW7FATO6.js} +7 -6
- package/dist/{doctor-FVBU575B.js → doctor-4ZH7WFU6.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-RSPDI7FX.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-DZ5PRR6F.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-AALA3OA7.js → feedback-M5GZWDXP.js} +16 -15
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-27H6P7ZU.js} +13 -12
- package/dist/{figma-37R727XZ.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-L3VKJ6JF.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-Z4MM64HY.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-IM7Z7HWI.js} +41 -37
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-CXI2ZMUX.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQO6AWEQ.js → history-5P5YVP5H.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +72 -72
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-7CBHVXSG.js → info-5ZGNJJVA.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-NWIAEYSX.js} +35 -33
- package/dist/{inspect-VHDQL55M.js → inspect-HBLAVW5C.js} +38 -36
- package/dist/{installer-EJNLL6SV.js → installer-KVFTBZZ5.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-LFCLUY2R.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-RFWTTMLU.js} +19 -18
- package/dist/{layout-MOCEANRO.js → layout-WOG2Y5ND.js} +38 -36
- package/dist/{lint-HFXGSQKN.js → lint-7MALXMMF.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-6H64SX3V.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-QOOQ5YA2.js → localPage-IN36JVJU.js} +12 -11
- package/dist/{login-WAG7B4PM.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-34U5CEFB.js → manager-SFL6GLYX.js} +14 -12
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-3R6DYEAZ.js} +24 -23
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-M2F4WTAR.js → models-NNC53UPU.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-5BI5JFUP.js} +21 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-6Z2WN56Q.js} +15 -14
- package/dist/{open-BC5METIY.js → open-5NCEN6RC.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-DH3XKR3C.js} +19 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-CGEGQAPH.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-K37BN736.js} +28 -27
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-GVRYYIH5.js → preflight-CG7H3D5B.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-KQ53DOHA.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-V7CYHL6U.js} +26 -25
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-2PBHUE5O.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-WXCB5AZE.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-KG4UDZRM.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-MEQB543T.js} +22 -21
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-FSV5KQK3.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-O4S4SURS.js} +10 -9
- package/dist/{render-SR5RISLU.js → render-SQXZAGPQ.js} +160 -46
- package/dist/{render-3F6GQ5WW.js → render-SY4AXKXC.js} +40 -39
- package/dist/{render-batch-HV4W3PZM.js → render-batch-GTZQUB3H.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-BQZNCVJS.js} +8 -7
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-KH3PJAUG.js} +18 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- 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-FSGXQSHA.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-4BORZ3ED.js} +60 -47
- package/dist/{src-VMTQQUUP.js → src-6ZOFAM3F.js} +21 -14
- package/dist/{src-ROWFWCEN.js → src-D7AO7PGH.js} +12 -11
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-Q23A6XU2.js} +25 -24
- 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-BDE7dwov.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-D0jGq2dS.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-XVVJZ7YT.js} +24 -19
- package/dist/{studioServer-74ZBLNP2.js → studioServer-6HG3AMTW.js} +77 -114
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-3NDLZOPR.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-6477OWFA.js} +31 -26
- package/dist/{tokens-UFNPQVLS.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-HA4UGLKO.js} +17 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-ITVANIDK.js} +41 -23
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-VWHCESDD.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-7VG2RLP2.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-LM3FYHGG.js} +13 -12
- package/dist/warmCheck.js +47 -45
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- package/dist/studio/assets/hyperframes-player-B_wvwarc.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
jsonArg,
|
|
9
|
+
num,
|
|
10
|
+
roiArg,
|
|
11
|
+
runMeasure,
|
|
12
|
+
videoAndRoi,
|
|
13
|
+
videoArg
|
|
14
|
+
} from "./chunk-WGOIJN57.js";
|
|
15
|
+
import {
|
|
16
|
+
Fix,
|
|
17
|
+
frameAt,
|
|
18
|
+
round,
|
|
19
|
+
runFfmpeg
|
|
20
|
+
} from "./chunk-VJM6NX54.js";
|
|
21
|
+
import "./chunk-WWOHLNFO.js";
|
|
22
|
+
import {
|
|
23
|
+
defineCommand
|
|
24
|
+
} from "./chunk-DL4OD7IA.js";
|
|
25
|
+
import "./chunk-S3S4TGEH.js";
|
|
26
|
+
import "./chunk-2GICKZ3I.js";
|
|
27
|
+
import "./chunk-4XQQQ4KN.js";
|
|
28
|
+
import "./chunk-Z5J67X44.js";
|
|
29
|
+
import "./chunk-5S7W3TUO.js";
|
|
30
|
+
import "./chunk-D3MUHMFG.js";
|
|
31
|
+
import "./chunk-FKBWONRY.js";
|
|
32
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
33
|
+
import "./chunk-OWFSGDQS.js";
|
|
34
|
+
import "./chunk-MEJH7VEA.js";
|
|
35
|
+
import "./chunk-UQECNXFA.js";
|
|
36
|
+
import "./chunk-VC76R6W2.js";
|
|
37
|
+
import "./chunk-OFQWTKPW.js";
|
|
38
|
+
import "./chunk-RQVDTPGD.js";
|
|
39
|
+
import "./chunk-3GXQPCJC.js";
|
|
40
|
+
import "./chunk-TK7THLRO.js";
|
|
41
|
+
import "./chunk-FXMKHHPO.js";
|
|
42
|
+
import "./chunk-X6JUUQCM.js";
|
|
43
|
+
import "./chunk-KGPLIH7B.js";
|
|
44
|
+
import "./chunk-K4MJX7SR.js";
|
|
45
|
+
import "./chunk-WE42NVH7.js";
|
|
46
|
+
import "./chunk-HT3D5AKG.js";
|
|
47
|
+
import "./chunk-HYRPH6LL.js";
|
|
48
|
+
import "./chunk-AKMY4QVI.js";
|
|
49
|
+
import "./chunk-CZGHFATT.js";
|
|
50
|
+
import "./chunk-C2KEGBR3.js";
|
|
51
|
+
import "./chunk-T5ELONXY.js";
|
|
52
|
+
import "./chunk-FR7YBU3H.js";
|
|
53
|
+
import "./chunk-DPVXBVLL.js";
|
|
54
|
+
import "./chunk-GWTIFRF5.js";
|
|
55
|
+
import "./chunk-2RY2LWAA.js";
|
|
56
|
+
import "./chunk-EPQC3FGZ.js";
|
|
57
|
+
import "./chunk-WC4MTXGN.js";
|
|
58
|
+
import "./chunk-FBN2M2HK.js";
|
|
59
|
+
import "./chunk-K5GMPWMG.js";
|
|
60
|
+
import "./chunk-BR2JQQC5.js";
|
|
61
|
+
import "./chunk-BLBMPEBX.js";
|
|
62
|
+
import "./chunk-ISN5GRYI.js";
|
|
63
|
+
import "./chunk-SJGE5I5F.js";
|
|
64
|
+
import "./chunk-DP5LF7GF.js";
|
|
65
|
+
import "./chunk-J3RXEDR2.js";
|
|
66
|
+
import "./chunk-QBXDU24O.js";
|
|
67
|
+
import "./chunk-P5QGZMGC.js";
|
|
68
|
+
import "./chunk-E63BDV4Z.js";
|
|
69
|
+
import "./chunk-G7VEYUZ2.js";
|
|
70
|
+
import "./chunk-XT6MXC7A.js";
|
|
71
|
+
import "./chunk-7KDQAD2W.js";
|
|
72
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
73
|
+
|
|
74
|
+
// src/commands/measure/extract.ts
|
|
75
|
+
import { existsSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "fs";
|
|
76
|
+
import { tmpdir } from "os";
|
|
77
|
+
import { dirname, join, relative, resolve } from "path";
|
|
78
|
+
var examples = [
|
|
79
|
+
[
|
|
80
|
+
"A photo from the original at 3.2 s, cropped to its box",
|
|
81
|
+
"hyperframes measure extract original.mp4 --at 3.2 --roi 120,340,840,620 --out assets/photo.png"
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
"The original's whole soundtrack",
|
|
85
|
+
"hyperframes measure extract original.mp4 --out assets/sound.m4a"
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
"The talking head from 4.0 s to 9.5 s with its sound",
|
|
89
|
+
"hyperframes measure extract original.mp4 --from 4 --to 9.5 --roi 0,0,1080,1350 --audio --out assets/presenter.mp4"
|
|
90
|
+
]
|
|
91
|
+
];
|
|
92
|
+
var even = ([x, y, w, h]) => [x, y, w - w % 2, h - h % 2];
|
|
93
|
+
function projectOf(from) {
|
|
94
|
+
for (let dir = resolve(from); ; dir = dirname(dir)) {
|
|
95
|
+
if (existsSync(join(dir, "index.html"))) return dir;
|
|
96
|
+
if (dirname(dir) === dir) return null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async function record(out, type, provenance, duration) {
|
|
100
|
+
const project = projectOf(dirname(out));
|
|
101
|
+
if (!project) return null;
|
|
102
|
+
const { recordInPlace } = await import("./manifest-QSJYVERU.js");
|
|
103
|
+
const { regenerateIndex } = await import("./index-gen-OPMQ5WSN.js");
|
|
104
|
+
const rel = (p) => relative(project, p).split("\\").join("/");
|
|
105
|
+
const path = rel(out);
|
|
106
|
+
const from = String(provenance.from);
|
|
107
|
+
if (!rel(from).startsWith("..")) provenance = { ...provenance, from: rel(from) };
|
|
108
|
+
const entry = recordInPlace(project, {
|
|
109
|
+
type,
|
|
110
|
+
path,
|
|
111
|
+
source: "extracted",
|
|
112
|
+
description: `cut from the original ${String(provenance.window ?? provenance.at)}`,
|
|
113
|
+
...duration !== void 0 ? { duration } : {},
|
|
114
|
+
provenance
|
|
115
|
+
});
|
|
116
|
+
regenerateIndex(project);
|
|
117
|
+
return entry.id;
|
|
118
|
+
}
|
|
119
|
+
var crop = (roi) => `crop=${roi[2]}:${roi[3]}:${roi[0]}:${roi[1]}`;
|
|
120
|
+
async function cutStill(info, at, roi, out) {
|
|
121
|
+
const k = frameAt(at, info.fps);
|
|
122
|
+
const t = k / info.fps;
|
|
123
|
+
const { extractVideoFrameToBuffer } = await import("./snapshot-4BORZ3ED.js");
|
|
124
|
+
const png = await extractVideoFrameToBuffer(info.path, t);
|
|
125
|
+
if (!png)
|
|
126
|
+
throw new Fix(`no frame at ${round(t, 3)}s`, `pick a time before ${round(info.duration, 2)}s`);
|
|
127
|
+
const work = mkdtempSync(join(tmpdir(), "hf-extract-"));
|
|
128
|
+
try {
|
|
129
|
+
const full = join(work, "frame.png");
|
|
130
|
+
writeFileSync(full, png);
|
|
131
|
+
runFfmpeg(["-y", "-i", full, "-vf", crop(roi), "-frames:v", "1", out]);
|
|
132
|
+
} finally {
|
|
133
|
+
rmSync(work, { recursive: true, force: true });
|
|
134
|
+
}
|
|
135
|
+
return { at: round(t, 3), frame: k };
|
|
136
|
+
}
|
|
137
|
+
function cutClip(info, from, to, asked, out, opts = {}) {
|
|
138
|
+
const k0 = frameAt(from, info.fps);
|
|
139
|
+
const k1 = Math.min(info.frames, Math.ceil(to * info.fps - 1e-6));
|
|
140
|
+
if (k1 <= k0) throw new Fix("--to is not after --from", "--from 4 --to 9.5");
|
|
141
|
+
const roi = even(asked);
|
|
142
|
+
const [a, n] = [k0 / info.fps, k1 - k0];
|
|
143
|
+
const sound = Boolean(opts.audio && info.audio);
|
|
144
|
+
runFfmpeg([
|
|
145
|
+
...["-y", "-i", info.path],
|
|
146
|
+
...[
|
|
147
|
+
"-vf",
|
|
148
|
+
`trim=start_frame=${k0}:end_frame=${k1},setpts=PTS-STARTPTS,${crop(roi)},format=yuv420p`
|
|
149
|
+
],
|
|
150
|
+
...["-r", info.fpsText, "-c:v", "libx264", "-crf", String(opts.crf ?? 14), "-preset", "medium"],
|
|
151
|
+
...sound ? [
|
|
152
|
+
"-af",
|
|
153
|
+
`atrim=start=${a}:end=${k1 / info.fps},asetpts=PTS-STARTPTS`,
|
|
154
|
+
"-c:a",
|
|
155
|
+
"aac",
|
|
156
|
+
"-b:a",
|
|
157
|
+
"192k"
|
|
158
|
+
] : ["-an"],
|
|
159
|
+
...["-movflags", "+faststart", out]
|
|
160
|
+
]);
|
|
161
|
+
return {
|
|
162
|
+
window: [round(a, 3), round(k1 / info.fps, 3)],
|
|
163
|
+
frames: n,
|
|
164
|
+
duration: round(n / info.fps, 3),
|
|
165
|
+
roi,
|
|
166
|
+
audio: sound
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function cutSound(info, from, to, out) {
|
|
170
|
+
if (!info.audio) throw new Fix(`${info.path} has no sound`, "leave <audio> out of the rebuild");
|
|
171
|
+
const [a, b] = [Math.max(0, from), Math.min(info.duration, to)];
|
|
172
|
+
if (b <= a) throw new Fix("--to is not after --from", "--from 0 --to 12");
|
|
173
|
+
const codec = /\.wav$/i.test(out) ? ["-c:a", "pcm_s16le"] : /\.mp3$/i.test(out) ? ["-c:a", "libmp3lame", "-q:a", "2"] : ["-c:a", "aac", "-b:a", "256k"];
|
|
174
|
+
runFfmpeg(["-y", "-ss", String(a), "-i", info.path, "-t", String(b - a), "-vn", ...codec, out]);
|
|
175
|
+
return { window: [round(a, 3), round(b, 3)], duration: round(b - a, 3) };
|
|
176
|
+
}
|
|
177
|
+
var extract_default = defineCommand({
|
|
178
|
+
meta: {
|
|
179
|
+
name: "extract",
|
|
180
|
+
description: "Cut a still (--at) or a clip (--from/--to) out of a video, cropped to a region, as project media"
|
|
181
|
+
},
|
|
182
|
+
args: {
|
|
183
|
+
video: videoArg,
|
|
184
|
+
out: {
|
|
185
|
+
type: "string",
|
|
186
|
+
description: "The file to write: .png/.jpg for a still, .mp4 for a clip",
|
|
187
|
+
required: true
|
|
188
|
+
},
|
|
189
|
+
at: { type: "string", description: "A still of the frame shown at this second" },
|
|
190
|
+
from: { type: "string", description: "A clip's first second" },
|
|
191
|
+
to: { type: "string", description: "A clip's end second" },
|
|
192
|
+
audio: {
|
|
193
|
+
type: "boolean",
|
|
194
|
+
description: "Keep the clip's sound (default: picture only)",
|
|
195
|
+
default: false
|
|
196
|
+
},
|
|
197
|
+
crf: { type: "string", description: "Clip quality, lower is better (default 14)" },
|
|
198
|
+
roi: roiArg,
|
|
199
|
+
json: jsonArg
|
|
200
|
+
},
|
|
201
|
+
async run({ args }) {
|
|
202
|
+
await runMeasure(async () => {
|
|
203
|
+
const { info, roi: asked } = videoAndRoi(args.video, args.roi);
|
|
204
|
+
const out = resolve(String(args.out));
|
|
205
|
+
mkdirSync(dirname(out), { recursive: true });
|
|
206
|
+
if (/\.(m4a|aac|mp3|wav)$/i.test(out)) {
|
|
207
|
+
const sound = cutSound(
|
|
208
|
+
info,
|
|
209
|
+
num(args.from, "--from", 0),
|
|
210
|
+
num(args.to, "--to", info.duration),
|
|
211
|
+
out
|
|
212
|
+
);
|
|
213
|
+
const ledger2 = await record(
|
|
214
|
+
out,
|
|
215
|
+
"bgm",
|
|
216
|
+
{ provider: "original", from: info.path, window: sound.window },
|
|
217
|
+
sound.duration
|
|
218
|
+
);
|
|
219
|
+
return {
|
|
220
|
+
out,
|
|
221
|
+
kind: "sound",
|
|
222
|
+
...sound,
|
|
223
|
+
...ledger2 ? { ledger: ledger2 } : {},
|
|
224
|
+
place: {
|
|
225
|
+
"data-start": sound.window[0],
|
|
226
|
+
"data-duration": sound.duration,
|
|
227
|
+
note: "an <audio id> with this src"
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
const isClip = args.from !== void 0 || args.to !== void 0;
|
|
232
|
+
if (isClip === (args.at !== void 0))
|
|
233
|
+
throw new Fix(
|
|
234
|
+
"pass --at for a still, or --from and --to for a clip",
|
|
235
|
+
"--at 3.2, or --from 4 --to 9.5"
|
|
236
|
+
);
|
|
237
|
+
if (!isClip) {
|
|
238
|
+
if (!/\.(png|jpe?g|webp)$/i.test(out))
|
|
239
|
+
throw new Fix(`${out} is not a picture`, "--out assets/name.png");
|
|
240
|
+
const { at, frame: k } = await cutStill(info, num(args.at, "--at", 0), asked, out);
|
|
241
|
+
const ledger2 = await record(out, "image", {
|
|
242
|
+
provider: "original",
|
|
243
|
+
from: info.path,
|
|
244
|
+
at,
|
|
245
|
+
roi: asked
|
|
246
|
+
});
|
|
247
|
+
return {
|
|
248
|
+
out,
|
|
249
|
+
kind: "image",
|
|
250
|
+
at,
|
|
251
|
+
frame: k,
|
|
252
|
+
roi: asked,
|
|
253
|
+
...ledger2 ? { ledger: ledger2 } : {},
|
|
254
|
+
place: { left: asked[0], top: asked[1], width: asked[2], height: asked[3] }
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
if (!/\.(mp4|mov|webm)$/i.test(out))
|
|
258
|
+
throw new Fix(`${out} is not a video`, "--out assets/name.mp4");
|
|
259
|
+
const clip = cutClip(
|
|
260
|
+
info,
|
|
261
|
+
num(args.from, "--from", 0),
|
|
262
|
+
num(args.to, "--to", info.duration),
|
|
263
|
+
asked,
|
|
264
|
+
out,
|
|
265
|
+
{
|
|
266
|
+
audio: args.audio,
|
|
267
|
+
crf: num(args.crf, "--crf", 14)
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
const { window, duration, roi } = clip;
|
|
271
|
+
const askedEnd = num(args.to, "--to", info.duration);
|
|
272
|
+
const ledger = await record(
|
|
273
|
+
out,
|
|
274
|
+
"video",
|
|
275
|
+
{ provider: "original", from: info.path, window, roi, audio: clip.audio },
|
|
276
|
+
duration
|
|
277
|
+
);
|
|
278
|
+
return {
|
|
279
|
+
out,
|
|
280
|
+
kind: "clip",
|
|
281
|
+
window,
|
|
282
|
+
frames: clip.frames,
|
|
283
|
+
duration,
|
|
284
|
+
roi,
|
|
285
|
+
audio: clip.audio,
|
|
286
|
+
...askedEnd > info.duration + 0.5 / info.fps ? {
|
|
287
|
+
note: `--to ${askedEnd} is past the end; the clip stops at ${round(info.duration, 3)} s`
|
|
288
|
+
} : {},
|
|
289
|
+
...ledger ? { ledger } : {},
|
|
290
|
+
place: {
|
|
291
|
+
"data-start": window[0],
|
|
292
|
+
"data-duration": duration,
|
|
293
|
+
left: roi[0],
|
|
294
|
+
top: roi[1],
|
|
295
|
+
width: roi[2],
|
|
296
|
+
height: roi[3],
|
|
297
|
+
note: "a <video> clip at the original's time and box; muted unless it carries the film's sound"
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
export {
|
|
304
|
+
cutClip,
|
|
305
|
+
cutSound,
|
|
306
|
+
cutStill,
|
|
307
|
+
extract_default as default,
|
|
308
|
+
examples
|
|
309
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
FIT_MIN_FACES,
|
|
9
|
+
againstStart,
|
|
10
|
+
faceBoxes,
|
|
11
|
+
faceFit,
|
|
12
|
+
faceSummary
|
|
13
|
+
} from "./chunk-4JRFMRCQ.js";
|
|
14
|
+
import {
|
|
15
|
+
jsonArg,
|
|
16
|
+
num,
|
|
17
|
+
runMeasure,
|
|
18
|
+
videoArg,
|
|
19
|
+
window
|
|
20
|
+
} from "./chunk-WGOIJN57.js";
|
|
21
|
+
import "./chunk-NO6F7CLR.js";
|
|
22
|
+
import {
|
|
23
|
+
Fix,
|
|
24
|
+
probeVideo,
|
|
25
|
+
round
|
|
26
|
+
} from "./chunk-VJM6NX54.js";
|
|
27
|
+
import "./chunk-RZ6CXJ56.js";
|
|
28
|
+
import "./chunk-WWOHLNFO.js";
|
|
29
|
+
import "./chunk-A4ZTSQLW.js";
|
|
30
|
+
import {
|
|
31
|
+
defineCommand
|
|
32
|
+
} from "./chunk-DL4OD7IA.js";
|
|
33
|
+
import "./chunk-S3S4TGEH.js";
|
|
34
|
+
import "./chunk-2GICKZ3I.js";
|
|
35
|
+
import "./chunk-4XQQQ4KN.js";
|
|
36
|
+
import "./chunk-Z5J67X44.js";
|
|
37
|
+
import "./chunk-5S7W3TUO.js";
|
|
38
|
+
import "./chunk-D3MUHMFG.js";
|
|
39
|
+
import "./chunk-FKBWONRY.js";
|
|
40
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
41
|
+
import "./chunk-OWFSGDQS.js";
|
|
42
|
+
import "./chunk-MEJH7VEA.js";
|
|
43
|
+
import "./chunk-UQECNXFA.js";
|
|
44
|
+
import "./chunk-VC76R6W2.js";
|
|
45
|
+
import "./chunk-OFQWTKPW.js";
|
|
46
|
+
import "./chunk-RQVDTPGD.js";
|
|
47
|
+
import "./chunk-3GXQPCJC.js";
|
|
48
|
+
import "./chunk-TK7THLRO.js";
|
|
49
|
+
import "./chunk-FXMKHHPO.js";
|
|
50
|
+
import "./chunk-X6JUUQCM.js";
|
|
51
|
+
import "./chunk-KGPLIH7B.js";
|
|
52
|
+
import "./chunk-K4MJX7SR.js";
|
|
53
|
+
import "./chunk-WE42NVH7.js";
|
|
54
|
+
import "./chunk-HT3D5AKG.js";
|
|
55
|
+
import "./chunk-HYRPH6LL.js";
|
|
56
|
+
import "./chunk-AKMY4QVI.js";
|
|
57
|
+
import "./chunk-CZGHFATT.js";
|
|
58
|
+
import "./chunk-C2KEGBR3.js";
|
|
59
|
+
import "./chunk-T5ELONXY.js";
|
|
60
|
+
import "./chunk-FR7YBU3H.js";
|
|
61
|
+
import "./chunk-DPVXBVLL.js";
|
|
62
|
+
import "./chunk-GWTIFRF5.js";
|
|
63
|
+
import "./chunk-2RY2LWAA.js";
|
|
64
|
+
import "./chunk-EPQC3FGZ.js";
|
|
65
|
+
import "./chunk-WC4MTXGN.js";
|
|
66
|
+
import "./chunk-FBN2M2HK.js";
|
|
67
|
+
import "./chunk-K5GMPWMG.js";
|
|
68
|
+
import "./chunk-BR2JQQC5.js";
|
|
69
|
+
import "./chunk-BLBMPEBX.js";
|
|
70
|
+
import "./chunk-ISN5GRYI.js";
|
|
71
|
+
import "./chunk-SJGE5I5F.js";
|
|
72
|
+
import "./chunk-DP5LF7GF.js";
|
|
73
|
+
import "./chunk-J3RXEDR2.js";
|
|
74
|
+
import "./chunk-QBXDU24O.js";
|
|
75
|
+
import "./chunk-P5QGZMGC.js";
|
|
76
|
+
import "./chunk-E63BDV4Z.js";
|
|
77
|
+
import "./chunk-G7VEYUZ2.js";
|
|
78
|
+
import "./chunk-XT6MXC7A.js";
|
|
79
|
+
import "./chunk-7KDQAD2W.js";
|
|
80
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
81
|
+
|
|
82
|
+
// src/commands/measure/face.ts
|
|
83
|
+
var examples = [
|
|
84
|
+
[
|
|
85
|
+
"How big and where the presenter's face is in a shot",
|
|
86
|
+
"hyperframes measure face ref.mp4 --start 4 --end 9.5"
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
"The scale and x, y that put a generated clip's face on the original's face over 2-6 s",
|
|
90
|
+
"hyperframes measure face presenter.mp4 --against ref.mp4 --from 2 --to 6"
|
|
91
|
+
]
|
|
92
|
+
];
|
|
93
|
+
var face_default = defineCommand({
|
|
94
|
+
meta: {
|
|
95
|
+
name: "face",
|
|
96
|
+
description: "How big the face is and where, over a window: its box per sampled frame and whether a generated presenter can keep the likeness at that size"
|
|
97
|
+
},
|
|
98
|
+
args: {
|
|
99
|
+
video: videoArg,
|
|
100
|
+
start: {
|
|
101
|
+
type: "string",
|
|
102
|
+
description: "First second (default 0; with --against, 0 for a shot of its own and --from for a render as long as the original)"
|
|
103
|
+
},
|
|
104
|
+
end: {
|
|
105
|
+
type: "string",
|
|
106
|
+
description: "Last second (default: the end; with --against, --start plus the length of --from/--to)"
|
|
107
|
+
},
|
|
108
|
+
samples: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "Frames sampled, evenly, the last one included (default 8)"
|
|
111
|
+
},
|
|
112
|
+
cast: {
|
|
113
|
+
type: "boolean",
|
|
114
|
+
description: "The person is one face in a crowd: grade the smallest face (and look for faces down to 20 px)",
|
|
115
|
+
default: false
|
|
116
|
+
},
|
|
117
|
+
against: {
|
|
118
|
+
type: "string",
|
|
119
|
+
description: "The original video: print the GSAP scale and x, y (canvas pixels) that put this clip's face on the original's over --from/--to"
|
|
120
|
+
},
|
|
121
|
+
from: { type: "string", description: "With --against: the original's first second" },
|
|
122
|
+
to: { type: "string", description: "With --against: the original's last second" },
|
|
123
|
+
json: jsonArg
|
|
124
|
+
},
|
|
125
|
+
async run({ args }) {
|
|
126
|
+
await runMeasure(async () => {
|
|
127
|
+
const info = probeVideo(String(args.video));
|
|
128
|
+
const cast = args.cast === true;
|
|
129
|
+
const samples = Math.max(1, num(args.samples, "--samples", 8));
|
|
130
|
+
const opts = cast ? { minFace: 0 } : {};
|
|
131
|
+
if (args.against !== void 0) {
|
|
132
|
+
const ref = probeVideo(String(args.against));
|
|
133
|
+
const [a2, b2] = window(ref, args.from, args.to, ["--from", "--to"]);
|
|
134
|
+
const s = num(args.start, "--start", againstStart(info.duration, ref.duration, a2));
|
|
135
|
+
const e = Math.min(info.duration, s + (b2 - a2));
|
|
136
|
+
if (!(e > s))
|
|
137
|
+
throw new Fix(`--start ${s} is past this clip's end`, `--start 0 (or leave it out)`);
|
|
138
|
+
const [fo, fc] = [
|
|
139
|
+
await faceBoxes(ref, a2, b2, samples, opts),
|
|
140
|
+
await faceBoxes(info, s, e, samples, opts)
|
|
141
|
+
];
|
|
142
|
+
const rel = (f, t0) => f.map((x) => ({ t: x.t - t0, boxes: x.boxes }));
|
|
143
|
+
const fit = faceFit(rel(fo, a2), rel(fc, s), ref, info, cast);
|
|
144
|
+
return {
|
|
145
|
+
video: info.path,
|
|
146
|
+
against: ref.path,
|
|
147
|
+
window: [round(s, 3), round(e, 3)],
|
|
148
|
+
against_window: [a2, b2],
|
|
149
|
+
canvas: [ref.width, ref.height],
|
|
150
|
+
...fit,
|
|
151
|
+
...fit.transform === null ? {
|
|
152
|
+
note: `fewer than ${FIT_MIN_FACES} moments with a face in both: try a wider window or more --samples`
|
|
153
|
+
} : {},
|
|
154
|
+
reading: "gsap.set(clip, { scale, x, y }) on a clip element that fills the canvas (object-fit: cover) with the default transform origin (its centre); x, y and the faces' centre and height are in the canvas's (the original's) pixels, clip_face before the transform; residual is the median face-centre miss left after it, in face heights"
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
const [a, b] = window(info, args.start, args.end);
|
|
158
|
+
return {
|
|
159
|
+
video: info.path,
|
|
160
|
+
start: a,
|
|
161
|
+
end: b,
|
|
162
|
+
...faceSummary(await faceBoxes(info, a, b, samples, opts), cast),
|
|
163
|
+
reading: "face_height is the face's height over the frame's; boxes are x, y, w, h as shares of the frame"
|
|
164
|
+
};
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
face_default as default,
|
|
170
|
+
examples
|
|
171
|
+
};
|
|
@@ -4,21 +4,21 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
getDoctorSummary
|
|
9
|
-
} from "./chunk-NQOCM4KQ.js";
|
|
10
7
|
import {
|
|
11
8
|
getPublishApiBaseUrl,
|
|
12
9
|
publishProjectArchive
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import
|
|
16
|
-
|
|
10
|
+
} from "./chunk-B6F33PUK.js";
|
|
11
|
+
import "./chunk-UVF4U3ZF.js";
|
|
12
|
+
import {
|
|
13
|
+
getDoctorSummary
|
|
14
|
+
} from "./chunk-RKVKFXYB.js";
|
|
17
15
|
import {
|
|
18
16
|
confirm,
|
|
19
17
|
q,
|
|
20
18
|
spinner
|
|
21
19
|
} from "./chunk-26AQTUU4.js";
|
|
20
|
+
import "./chunk-VBCBHDIW.js";
|
|
21
|
+
import "./chunk-RWSVSCOP.js";
|
|
22
22
|
import {
|
|
23
23
|
feedbackEmail,
|
|
24
24
|
parseFeedbackSource
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
trackCatalogSearchMiss,
|
|
30
30
|
trackFeedbackComment,
|
|
31
31
|
trackRenderFeedback
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LAIGIOEA.js";
|
|
33
33
|
import {
|
|
34
34
|
shouldTrack
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-45UOXUUH.js";
|
|
36
36
|
import "./chunk-PXVQOMKL.js";
|
|
37
37
|
import "./chunk-EQGKUPBJ.js";
|
|
38
38
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -44,21 +44,22 @@ import "./chunk-54HJ63Q2.js";
|
|
|
44
44
|
import {
|
|
45
45
|
c
|
|
46
46
|
} from "./chunk-2GICKZ3I.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-OWFSGDQS.js";
|
|
48
|
+
import "./chunk-MEJH7VEA.js";
|
|
49
|
+
import "./chunk-UQECNXFA.js";
|
|
49
50
|
import "./chunk-VC76R6W2.js";
|
|
50
51
|
import "./chunk-OFQWTKPW.js";
|
|
51
52
|
import "./chunk-RQVDTPGD.js";
|
|
52
53
|
import "./chunk-TK7THLRO.js";
|
|
53
54
|
import "./chunk-FXMKHHPO.js";
|
|
54
55
|
import "./chunk-LAGZGKKN.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-C2KEGBR3.js";
|
|
57
|
+
import "./chunk-T5ELONXY.js";
|
|
57
58
|
import "./chunk-FR7YBU3H.js";
|
|
58
59
|
import "./chunk-DPVXBVLL.js";
|
|
59
60
|
import "./chunk-GWTIFRF5.js";
|
|
60
61
|
import "./chunk-2RY2LWAA.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-EPQC3FGZ.js";
|
|
62
63
|
import "./chunk-WC4MTXGN.js";
|
|
63
64
|
import "./chunk-FBN2M2HK.js";
|
|
64
65
|
import "./chunk-BR2JQQC5.js";
|
|
@@ -76,7 +77,7 @@ import {
|
|
|
76
77
|
import "./chunk-QBXDU24O.js";
|
|
77
78
|
import {
|
|
78
79
|
VERSION
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-P5QGZMGC.js";
|
|
80
81
|
import "./chunk-E63BDV4Z.js";
|
|
81
82
|
import "./chunk-G7VEYUZ2.js";
|
|
82
83
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -13,15 +13,16 @@ import {
|
|
|
13
13
|
getFFmpegInstallCommand,
|
|
14
14
|
getFFmpegInstallHint,
|
|
15
15
|
resolveH264EncoderMode
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-WWOHLNFO.js";
|
|
17
|
+
import "./chunk-4XQQQ4KN.js";
|
|
18
18
|
import "./chunk-Z5J67X44.js";
|
|
19
19
|
import "./chunk-5S7W3TUO.js";
|
|
20
20
|
import "./chunk-D3MUHMFG.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-FKBWONRY.js";
|
|
22
22
|
import "./chunk-YWRUQ7XZ.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-OWFSGDQS.js";
|
|
24
|
+
import "./chunk-MEJH7VEA.js";
|
|
25
|
+
import "./chunk-UQECNXFA.js";
|
|
25
26
|
import "./chunk-VC76R6W2.js";
|
|
26
27
|
import "./chunk-OFQWTKPW.js";
|
|
27
28
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -32,20 +33,20 @@ import "./chunk-X6JUUQCM.js";
|
|
|
32
33
|
import "./chunk-KGPLIH7B.js";
|
|
33
34
|
import "./chunk-K4MJX7SR.js";
|
|
34
35
|
import "./chunk-WE42NVH7.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-CZGHFATT.js";
|
|
36
|
+
import "./chunk-HT3D5AKG.js";
|
|
37
37
|
import {
|
|
38
38
|
FFMPEG_PATH_ENV,
|
|
39
39
|
FFPROBE_PATH_ENV
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-HYRPH6LL.js";
|
|
41
|
+
import "./chunk-AKMY4QVI.js";
|
|
42
|
+
import "./chunk-CZGHFATT.js";
|
|
43
|
+
import "./chunk-C2KEGBR3.js";
|
|
44
|
+
import "./chunk-T5ELONXY.js";
|
|
44
45
|
import "./chunk-FR7YBU3H.js";
|
|
45
46
|
import "./chunk-DPVXBVLL.js";
|
|
46
47
|
import "./chunk-GWTIFRF5.js";
|
|
47
48
|
import "./chunk-2RY2LWAA.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-EPQC3FGZ.js";
|
|
49
50
|
import "./chunk-WC4MTXGN.js";
|
|
50
51
|
import "./chunk-FBN2M2HK.js";
|
|
51
52
|
import "./chunk-QBXDU24O.js";
|
|
@@ -54,9 +54,9 @@ ${c.dim("either) \u2014 use the /figma skill in a Claude session for those.")}
|
|
|
54
54
|
var figma_default = defineCommand({
|
|
55
55
|
meta: { name: "figma", description: "Import figma assets, tokens, and components (REST)" },
|
|
56
56
|
subCommands: {
|
|
57
|
-
asset: () => import("./asset-
|
|
58
|
-
tokens: () => import("./tokens-
|
|
59
|
-
component: () => import("./component-
|
|
57
|
+
asset: () => import("./asset-KHXCO4OR.js").then((m) => m.default),
|
|
58
|
+
tokens: () => import("./tokens-ZUUNEDKT.js").then((m) => m.default),
|
|
59
|
+
component: () => import("./component-TRGBVFCI.js").then((m) => m.default)
|
|
60
60
|
},
|
|
61
61
|
async run({ args }) {
|
|
62
62
|
if (!args._?.[0]) console.log(HELP);
|
package/dist/fontLocalizeCli.js
CHANGED
|
@@ -4,26 +4,27 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-EX75C5HT.js";
|
|
8
|
+
import "./chunk-AKTI2SHL.js";
|
|
9
|
+
import "./chunk-JNQCM6CR.js";
|
|
10
10
|
import "./chunk-X7MTZ4T2.js";
|
|
11
11
|
import "./chunk-BZ56MTDX.js";
|
|
12
12
|
import {
|
|
13
13
|
injectDeterministicFontFaces
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QNW43LWB.js";
|
|
15
15
|
import "./chunk-FI4I7CME.js";
|
|
16
16
|
import "./chunk-G6OKQMJI.js";
|
|
17
17
|
import "./chunk-EVMY7IPL.js";
|
|
18
18
|
import "./chunk-7FMUTGOH.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-4XQQQ4KN.js";
|
|
20
20
|
import "./chunk-Z5J67X44.js";
|
|
21
21
|
import "./chunk-5S7W3TUO.js";
|
|
22
22
|
import "./chunk-D3MUHMFG.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-FKBWONRY.js";
|
|
24
24
|
import "./chunk-YWRUQ7XZ.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OWFSGDQS.js";
|
|
26
|
+
import "./chunk-MEJH7VEA.js";
|
|
27
|
+
import "./chunk-UQECNXFA.js";
|
|
27
28
|
import "./chunk-VC76R6W2.js";
|
|
28
29
|
import "./chunk-OFQWTKPW.js";
|
|
29
30
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -32,24 +33,24 @@ import "./chunk-TK7THLRO.js";
|
|
|
32
33
|
import "./chunk-FXMKHHPO.js";
|
|
33
34
|
import "./chunk-K4MJX7SR.js";
|
|
34
35
|
import "./chunk-WE42NVH7.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-HT3D5AKG.js";
|
|
37
|
+
import "./chunk-HYRPH6LL.js";
|
|
38
|
+
import "./chunk-AKMY4QVI.js";
|
|
36
39
|
import "./chunk-CZGHFATT.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-KSC4O2RY.js";
|
|
40
|
-
import "./chunk-NHA4NRBE.js";
|
|
40
|
+
import "./chunk-C2KEGBR3.js";
|
|
41
|
+
import "./chunk-T5ELONXY.js";
|
|
41
42
|
import "./chunk-FR7YBU3H.js";
|
|
42
43
|
import "./chunk-DPVXBVLL.js";
|
|
43
44
|
import "./chunk-GWTIFRF5.js";
|
|
44
45
|
import "./chunk-2RY2LWAA.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-EPQC3FGZ.js";
|
|
46
47
|
import "./chunk-WC4MTXGN.js";
|
|
47
48
|
import "./chunk-FBN2M2HK.js";
|
|
48
49
|
import "./chunk-QBXDU24O.js";
|
|
49
50
|
import {
|
|
50
51
|
PRODUCER_VERSION,
|
|
51
52
|
VERSION
|
|
52
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-P5QGZMGC.js";
|
|
53
54
|
import "./chunk-7KDQAD2W.js";
|
|
54
55
|
import "./chunk-3F2DTPBD.js";
|
|
55
56
|
import "./chunk-M2WBOQ2Q.js";
|