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
|
@@ -7,24 +7,25 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
ensureDOMParser
|
|
9
9
|
} from "./chunk-ZBAF6L74.js";
|
|
10
|
-
import {
|
|
11
|
-
JsonFlagReadError,
|
|
12
|
-
inlineJsonHint,
|
|
13
|
-
readJsonFlagText
|
|
14
|
-
} from "./chunk-XFMO3BEN.js";
|
|
15
10
|
import {
|
|
16
11
|
errorBox
|
|
17
12
|
} from "./chunk-5ZBMHUY2.js";
|
|
13
|
+
import {
|
|
14
|
+
JsonFlagReadError,
|
|
15
|
+
inlineJsonHint,
|
|
16
|
+
readJsonFlagText,
|
|
17
|
+
unreadableJsonHint
|
|
18
|
+
} from "./chunk-EHZESMRB.js";
|
|
18
19
|
import {
|
|
19
20
|
c
|
|
20
21
|
} from "./chunk-2GICKZ3I.js";
|
|
21
22
|
import {
|
|
22
23
|
formatVariableValidationIssue,
|
|
23
24
|
validateVariables
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OWFSGDQS.js";
|
|
25
26
|
import {
|
|
26
27
|
extractCompositionMetadata
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T5ELONXY.js";
|
|
28
29
|
import {
|
|
29
30
|
failCommand,
|
|
30
31
|
failUsage
|
|
@@ -76,7 +77,7 @@ function variablesErrorMessage(error) {
|
|
|
76
77
|
case "read-error":
|
|
77
78
|
return {
|
|
78
79
|
title: "Could not read the variables JSON",
|
|
79
|
-
message: `${error.path}: ${error.cause}`
|
|
80
|
+
message: `${error.path}: ${error.cause}${unreadableJsonHint("--variables", error.path)}`
|
|
80
81
|
};
|
|
81
82
|
case "parse-error":
|
|
82
83
|
return {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-45UOXUUH.js";
|
|
12
12
|
import {
|
|
13
13
|
redactTelemetryString
|
|
14
14
|
} from "./chunk-TK7THLRO.js";
|
|
@@ -312,6 +312,10 @@ function trackRenderComplete(props) {
|
|
|
312
312
|
speed_ratio: props.speedRatio,
|
|
313
313
|
capture_avg_ms: props.captureAvgMs,
|
|
314
314
|
capture_p50_ms: props.captureP50Ms,
|
|
315
|
+
capture_seek_avg_ms: props.captureSeekAvgMs,
|
|
316
|
+
capture_before_capture_avg_ms: props.captureBeforeCaptureAvgMs,
|
|
317
|
+
capture_screenshot_avg_ms: props.captureScreenshotAvgMs,
|
|
318
|
+
encoder_wait_avg_ms: props.encoderWaitAvgMs,
|
|
315
319
|
video_count: props.videoCount,
|
|
316
320
|
capture_peak_ms: props.capturePeakMs,
|
|
317
321
|
peak_memory_mb: props.peakMemoryMb,
|
|
@@ -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-PBPHKD56.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T5ELONXY.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/lambda/_dimensions.ts
|
|
15
15
|
import { readFileSync } from "fs";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-44IPXXSK.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LV5AVW6U.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RZ6CXJ56.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
8
|
+
// ../core/dist/gsapCdn.js
|
|
9
|
+
var GSAP_CDN_VERSION = "3.15.0";
|
|
10
|
+
var GSAP_CDN_BASE_URL = "https://cdn.jsdelivr.net/npm";
|
|
11
|
+
var GSAP_BASE_URL_META = "hyperframes-gsap-base-url";
|
|
12
|
+
function isLoopbackHost(hostname) {
|
|
13
|
+
return hostname === "localhost" || hostname === "[::1]" || /^127\.\d+\.\d+\.\d+$/.test(hostname);
|
|
14
|
+
}
|
|
15
|
+
function normalizeGsapBaseUrl(baseUrl) {
|
|
16
|
+
const value = baseUrl?.trim();
|
|
17
|
+
if (!value)
|
|
18
|
+
return GSAP_CDN_BASE_URL;
|
|
19
|
+
if (!/^https?:\/\//i.test(value) || !URL.canParse(value) || /[?#]/.test(value)) {
|
|
20
|
+
throw new Error("GSAP base URL must be an absolute HTTP(S) URL without a query or fragment");
|
|
21
|
+
}
|
|
22
|
+
const url = new URL(value);
|
|
23
|
+
if (url.username || url.password) {
|
|
24
|
+
throw new Error("GSAP base URL must not contain credentials");
|
|
25
|
+
}
|
|
26
|
+
if (url.protocol === "http:" && !isLoopbackHost(url.hostname)) {
|
|
27
|
+
throw new Error("GSAP base URL must use HTTPS unless it points at this machine");
|
|
28
|
+
}
|
|
29
|
+
return url.href.replace(/\/+$/, "");
|
|
30
|
+
}
|
|
31
|
+
function normalizeGsapLocalRoot(root) {
|
|
32
|
+
const value = root.trim();
|
|
33
|
+
if (!/^\/(?![/\\])/.test(value) || /[?#\\]/.test(value)) {
|
|
34
|
+
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
35
|
+
}
|
|
36
|
+
const origin = "http://local.invalid";
|
|
37
|
+
const url = new URL(value, origin);
|
|
38
|
+
const path = url.pathname.replace(/\/+$/, "");
|
|
39
|
+
if (url.origin !== origin || !path) {
|
|
40
|
+
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
41
|
+
}
|
|
42
|
+
return path;
|
|
43
|
+
}
|
|
44
|
+
function gsapCdnDist(gsapVersion, baseUrl) {
|
|
45
|
+
const version = gsapVersion && /^\d+(\.\d+)*$/.test(gsapVersion) ? gsapVersion : GSAP_CDN_VERSION;
|
|
46
|
+
if (baseUrl?.trim().startsWith("/")) {
|
|
47
|
+
const root = normalizeGsapLocalRoot(baseUrl);
|
|
48
|
+
return `${version === GSAP_CDN_VERSION ? root : GSAP_CDN_BASE_URL}/gsap@${version}/dist/`;
|
|
49
|
+
}
|
|
50
|
+
return `${normalizeGsapBaseUrl(baseUrl)}/gsap@${version}/dist/`;
|
|
51
|
+
}
|
|
52
|
+
function motionPathPluginUrl(gsapVersion, baseUrl) {
|
|
53
|
+
return `${gsapCdnDist(gsapVersion, baseUrl)}MotionPathPlugin.min.js`;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
GSAP_CDN_VERSION,
|
|
58
|
+
GSAP_BASE_URL_META,
|
|
59
|
+
normalizeGsapBaseUrl,
|
|
60
|
+
normalizeGsapLocalRoot,
|
|
61
|
+
gsapCdnDist,
|
|
62
|
+
motionPathPluginUrl
|
|
63
|
+
};
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-G5KX4X6W.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,26 +18,26 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UFYWGUUV.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PBPHKD56.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2GMHYOV3.js";
|
|
28
28
|
import {
|
|
29
29
|
listenOnBrowserSafePort
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
31
31
|
import {
|
|
32
32
|
stripSdrPngColourTags
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FKBWONRY.js";
|
|
34
34
|
import {
|
|
35
35
|
PREVIEW_PROXY_BOX_PARAM,
|
|
36
36
|
parsePreviewProxyBox
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OWFSGDQS.js";
|
|
38
38
|
import {
|
|
39
39
|
decodeWellFormedEscapes
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-C2KEGBR3.js";
|
|
41
41
|
|
|
42
42
|
// src/utils/staticProjectServer.ts
|
|
43
43
|
import { createServer, request as httpRequest } from "http";
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SNFVQDKE.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_HISTORY_ROOT,
|
|
12
12
|
HistoryBusyError,
|
|
13
13
|
MAX_WINDOW_IDLE_MS,
|
|
14
14
|
openProjectHistory,
|
|
15
15
|
readProjectHistory
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QU5OYMTB.js";
|
|
17
17
|
import {
|
|
18
18
|
findPreviewServerForProject,
|
|
19
19
|
studioApiUrl
|
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
pageUrl
|
|
9
|
+
} from "./chunk-EF735J3K.js";
|
|
10
|
+
import {
|
|
11
|
+
Fix
|
|
12
|
+
} from "./chunk-VJM6NX54.js";
|
|
13
|
+
import {
|
|
14
|
+
refreshIfNeeded,
|
|
15
|
+
resolveCloudAuthHeaders,
|
|
16
|
+
resolveCloudBaseUrl
|
|
17
|
+
} from "./chunk-VBCBHDIW.js";
|
|
18
|
+
import {
|
|
19
|
+
AuthClient,
|
|
20
|
+
buildAuthHeaders,
|
|
21
|
+
resolveCredential
|
|
22
|
+
} from "./chunk-RWSVSCOP.js";
|
|
23
|
+
import {
|
|
24
|
+
configDir
|
|
25
|
+
} from "./chunk-VLA6UJGH.js";
|
|
26
|
+
|
|
27
|
+
// src/heygen/v3.ts
|
|
28
|
+
import { createHash } from "crypto";
|
|
29
|
+
import { appendFileSync, existsSync, mkdirSync, readFileSync } from "fs";
|
|
30
|
+
import { join } from "path";
|
|
31
|
+
var RUNNING = /* @__PURE__ */ new Set(["pending", "processing", "queued", "running", "waiting", "in_progress"]);
|
|
32
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
33
|
+
function idempotencyKey(route, parts) {
|
|
34
|
+
const h = createHash("sha256").update(route);
|
|
35
|
+
for (const p of parts) h.update(p).update("\0");
|
|
36
|
+
return `hf-${h.digest("hex").slice(0, 40)}`;
|
|
37
|
+
}
|
|
38
|
+
var Refused = class extends Fix {
|
|
39
|
+
status = 0;
|
|
40
|
+
};
|
|
41
|
+
var KEEPS_KEY = /* @__PURE__ */ new Set([401, 403, 408, 409, 425, 429]);
|
|
42
|
+
var failedKeysFile = () => join(configDir(), "heygen-failed-keys");
|
|
43
|
+
var noSignIn = () => {
|
|
44
|
+
throw new Fix("no HeyGen sign-in on this machine", "npx hyperframes auth login");
|
|
45
|
+
};
|
|
46
|
+
async function jobSender() {
|
|
47
|
+
const credential = await resolveCredential().then(refreshIfNeeded).catch(noSignIn);
|
|
48
|
+
const who = credential.type === "api_key" ? credential.key : await new AuthClient().getCurrentUser(credential).then(
|
|
49
|
+
(user) => user.username ?? user.email,
|
|
50
|
+
() => void 0
|
|
51
|
+
);
|
|
52
|
+
const scope = who ? createHash("sha256").update(`${resolveCloudBaseUrl()}\0${who}`).digest("hex").slice(0, 16) : null;
|
|
53
|
+
return { auth: buildAuthHeaders(credential), scope };
|
|
54
|
+
}
|
|
55
|
+
function failedKeys(scope) {
|
|
56
|
+
const file = failedKeysFile();
|
|
57
|
+
const lines = existsSync(file) ? readFileSync(file, "utf8").split("\n") : [];
|
|
58
|
+
return new Set(
|
|
59
|
+
lines.filter((l) => l.startsWith(`${scope} `)).map((l) => l.slice(scope.length + 1))
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function markFailed(key, scope) {
|
|
63
|
+
if (!scope) return;
|
|
64
|
+
mkdirSync(configDir(), { recursive: true });
|
|
65
|
+
appendFileSync(failedKeysFile(), `${scope} ${key}
|
|
66
|
+
`);
|
|
67
|
+
}
|
|
68
|
+
function liveKey(key, scope) {
|
|
69
|
+
const failed = scope ? failedKeys(scope) : /* @__PURE__ */ new Set();
|
|
70
|
+
let sent = key;
|
|
71
|
+
for (let n = 1; failed.has(sent); n++) sent = `${key}-${n}`;
|
|
72
|
+
return sent;
|
|
73
|
+
}
|
|
74
|
+
function refusal(status, body, estimate) {
|
|
75
|
+
const err = isRecord(body) && isRecord(body.error) ? body.error : isRecord(body) ? body : {};
|
|
76
|
+
const code = String(err.code ?? err.failure_code ?? "");
|
|
77
|
+
const message = String(err.message ?? err.failure_message ?? "").slice(0, 300);
|
|
78
|
+
const url = typeof err.url === "string" ? err.url : void 0;
|
|
79
|
+
const given = Number(err.needed_credits) || void 0;
|
|
80
|
+
const needed = given ?? (estimate || void 0);
|
|
81
|
+
const needs = given ? `${given} in total` : needed ? `about ${needed} in total` : "more";
|
|
82
|
+
const balance = err.balance === void 0 ? "" : `, balance ${String(err.balance)}`;
|
|
83
|
+
if (/hf_subscription_required/i.test(code))
|
|
84
|
+
return new Refused(
|
|
85
|
+
`this is a HyperFrames Pro feature; nothing was charged. Run \`npx hyperframes billing subscribe\`: it opens the page and waits`,
|
|
86
|
+
`Subscribe: ${url ?? pageUrl("plans", { needed })}`
|
|
87
|
+
);
|
|
88
|
+
if (/hf_usage_exhausted/i.test(code))
|
|
89
|
+
return new Refused(
|
|
90
|
+
`out of HyperFrames credits (this step needs ${needs}${balance}); nothing was charged. Run \`npx hyperframes billing top-up${needed ? ` --needed ${needed}` : ""}\`: it opens the page and waits`,
|
|
91
|
+
`Add credits: ${url ?? pageUrl("credits", { needed })}`
|
|
92
|
+
);
|
|
93
|
+
if (/api_key_required/i.test(code))
|
|
94
|
+
return new Refused(
|
|
95
|
+
"this HeyGen feature is not available with this sign-in yet; nothing was charged",
|
|
96
|
+
"continue without this step"
|
|
97
|
+
);
|
|
98
|
+
if (status === 401 || status === 403)
|
|
99
|
+
return new Refused(
|
|
100
|
+
`HeyGen refused the credential (${status}${message ? `: ${message}` : ""})`,
|
|
101
|
+
"npx hyperframes auth login"
|
|
102
|
+
);
|
|
103
|
+
if (status === 402 || /insufficient|credit|usage_exhausted|quota/i.test(code))
|
|
104
|
+
return new Refused(
|
|
105
|
+
`HeyGen says there is not enough credit (${code || status})`,
|
|
106
|
+
"top up at https://app.heygen.com, or sign in with npx hyperframes auth login to use the plan's allowance"
|
|
107
|
+
);
|
|
108
|
+
if (/content_policy/i.test(code))
|
|
109
|
+
return new Refused(
|
|
110
|
+
`HeyGen declined the content: ${message || code}`,
|
|
111
|
+
"reword the prompt once without the flagged part"
|
|
112
|
+
);
|
|
113
|
+
return new Refused(
|
|
114
|
+
`HeyGen ${status}${code ? ` ${code}` : ""}: ${message || "request refused"}`,
|
|
115
|
+
"fix the request it names, then run again"
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
async function call(method, route, body, key, estimate, auth) {
|
|
119
|
+
const headers = {
|
|
120
|
+
...auth ?? await resolveCloudAuthHeaders().catch(noSignIn),
|
|
121
|
+
accept: "application/json"
|
|
122
|
+
};
|
|
123
|
+
if (body !== void 0) headers["content-type"] = "application/json";
|
|
124
|
+
if (key) headers["Idempotency-Key"] = key;
|
|
125
|
+
let res;
|
|
126
|
+
try {
|
|
127
|
+
res = await fetch(`${resolveCloudBaseUrl()}${route}`, {
|
|
128
|
+
method,
|
|
129
|
+
headers,
|
|
130
|
+
...body !== void 0 ? { body: JSON.stringify(body) } : {},
|
|
131
|
+
signal: AbortSignal.timeout(method === "POST" ? 18e4 : 3e4)
|
|
132
|
+
});
|
|
133
|
+
} catch (err) {
|
|
134
|
+
throw new Fix(
|
|
135
|
+
`no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
|
|
136
|
+
"run the same command again: it resumes the same job"
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
const value = await res.json().catch(() => null);
|
|
140
|
+
if (res.status >= 500 || value === null)
|
|
141
|
+
throw new Fix(
|
|
142
|
+
`HeyGen ${res.status} for ${route} with no readable answer`,
|
|
143
|
+
"run the same command again: it resumes the same job"
|
|
144
|
+
);
|
|
145
|
+
if (!res.ok) {
|
|
146
|
+
const refused = refusal(res.status, value, estimate);
|
|
147
|
+
refused.status = res.status;
|
|
148
|
+
throw refused;
|
|
149
|
+
}
|
|
150
|
+
const data = isRecord(value) && isRecord(value.data) ? value.data : value;
|
|
151
|
+
if (!isRecord(data))
|
|
152
|
+
throw new Fix(`HeyGen answered ${route} with no job`, "run the same command again");
|
|
153
|
+
const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id;
|
|
154
|
+
return {
|
|
155
|
+
...data,
|
|
156
|
+
id: typeof id === "string" ? id : "",
|
|
157
|
+
status: String(data.status ?? (id ? "pending" : "completed"))
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function log(entry, record) {
|
|
161
|
+
if (!entry.projectDir) return;
|
|
162
|
+
const dir = join(entry.projectDir, ".hyperframes");
|
|
163
|
+
mkdirSync(dir, { recursive: true });
|
|
164
|
+
appendFileSync(
|
|
165
|
+
join(dir, "heygen-jobs.jsonl"),
|
|
166
|
+
`${JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), what: entry.what, ...record })}
|
|
167
|
+
`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
171
|
+
const started = Date.now();
|
|
172
|
+
const { auth, scope } = await jobSender();
|
|
173
|
+
const sent = liveKey(key, scope);
|
|
174
|
+
let job;
|
|
175
|
+
try {
|
|
176
|
+
job = await call("POST", route, body, sent, opts.credits, auth);
|
|
177
|
+
} catch (err) {
|
|
178
|
+
if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
|
|
179
|
+
throw err;
|
|
180
|
+
}
|
|
181
|
+
if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
182
|
+
while (RUNNING.has(job.status.toLowerCase())) {
|
|
183
|
+
if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
|
|
184
|
+
throw new Fix(
|
|
185
|
+
`HeyGen job ${job.id} is still ${job.status}`,
|
|
186
|
+
"run the same command again later: it picks up this job"
|
|
187
|
+
);
|
|
188
|
+
opts.onWait?.(job);
|
|
189
|
+
await new Promise((r) => setTimeout(r, opts.intervalMs ?? 5e3));
|
|
190
|
+
job = await call("GET", pollRoute(job.id));
|
|
191
|
+
}
|
|
192
|
+
if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
193
|
+
if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
|
|
194
|
+
markFailed(sent, scope);
|
|
195
|
+
throw refusal(422, {
|
|
196
|
+
error: { code: job.failure_code ?? job.status, message: job.failure_message ?? "" }
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
return job;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
idempotencyKey,
|
|
204
|
+
runJob
|
|
205
|
+
};
|
|
@@ -11,34 +11,34 @@ import {
|
|
|
11
11
|
findSyncPartner,
|
|
12
12
|
readLinkTiming,
|
|
13
13
|
syncOffsetFrames
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AW3XJY4S.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7LKEHM2R.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4XQQQ4KN.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OWFSGDQS.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UQECNXFA.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveReferencedDuration,
|
|
37
37
|
resolveReferencedStart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HT3D5AKG.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveAuthoredAssetFile
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-AKMY4QVI.js";
|
|
42
42
|
import {
|
|
43
43
|
compositionOriginSeconds,
|
|
44
44
|
cutToHostSlots,
|
|
@@ -48,12 +48,12 @@ import {
|
|
|
48
48
|
readPlaybackRate,
|
|
49
49
|
resolveMediaDuration,
|
|
50
50
|
resolveMediaStartSeconds
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-C2KEGBR3.js";
|
|
52
52
|
import {
|
|
53
53
|
isSubCompositionHost,
|
|
54
54
|
topLevelElements,
|
|
55
55
|
trackKindOf
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-T5ELONXY.js";
|
|
57
57
|
|
|
58
58
|
// src/timeline/describeProject.ts
|
|
59
59
|
import { readFileSync, realpathSync, statSync } from "fs";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G5KX4X6W.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FKBWONRY.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UQECNXFA.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -4,6 +4,9 @@ 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
|
+
gsapCdnDist
|
|
9
|
+
} from "./chunk-MEJH7VEA.js";
|
|
7
10
|
import {
|
|
8
11
|
HF_COLOR_CURVE_LUT_SIZE,
|
|
9
12
|
HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS,
|
|
@@ -22,7 +25,7 @@ import {
|
|
|
22
25
|
resolveNaturalMediaTimelineDuration,
|
|
23
26
|
resolveTimedImageDurationSeconds,
|
|
24
27
|
unitFloatToByte
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UQECNXFA.js";
|
|
26
29
|
import {
|
|
27
30
|
COLOR_GROUP_ATTR,
|
|
28
31
|
COLOR_GROUP_TAG,
|
|
@@ -36,7 +39,7 @@ import {
|
|
|
36
39
|
parseStartExpression,
|
|
37
40
|
resolveMediaStartSeconds,
|
|
38
41
|
sameInstant
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-C2KEGBR3.js";
|
|
40
43
|
import {
|
|
41
44
|
CANVAS_DIMENSIONS,
|
|
42
45
|
isCompositionElement,
|
|
@@ -44,7 +47,7 @@ import {
|
|
|
44
47
|
isTextElement,
|
|
45
48
|
keyframesToGsapAnimations,
|
|
46
49
|
serializeGsapAnimations
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-T5ELONXY.js";
|
|
48
51
|
import {
|
|
49
52
|
parseHTML
|
|
50
53
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -159,54 +162,6 @@ function getStageStyles(resolution = "portrait") {
|
|
|
159
162
|
return `position: relative; width: ${width}px; height: ${height}px; overflow: hidden; background: #000;`;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
|
-
// ../core/dist/gsapCdn.js
|
|
163
|
-
var GSAP_CDN_VERSION = "3.15.0";
|
|
164
|
-
var GSAP_CDN_BASE_URL = "https://cdn.jsdelivr.net/npm";
|
|
165
|
-
var GSAP_BASE_URL_META = "hyperframes-gsap-base-url";
|
|
166
|
-
function isLoopbackHost(hostname) {
|
|
167
|
-
return hostname === "localhost" || hostname === "[::1]" || /^127\.\d+\.\d+\.\d+$/.test(hostname);
|
|
168
|
-
}
|
|
169
|
-
function normalizeGsapBaseUrl(baseUrl) {
|
|
170
|
-
const value = baseUrl?.trim();
|
|
171
|
-
if (!value)
|
|
172
|
-
return GSAP_CDN_BASE_URL;
|
|
173
|
-
if (!/^https?:\/\//i.test(value) || !URL.canParse(value) || /[?#]/.test(value)) {
|
|
174
|
-
throw new Error("GSAP base URL must be an absolute HTTP(S) URL without a query or fragment");
|
|
175
|
-
}
|
|
176
|
-
const url = new URL(value);
|
|
177
|
-
if (url.username || url.password) {
|
|
178
|
-
throw new Error("GSAP base URL must not contain credentials");
|
|
179
|
-
}
|
|
180
|
-
if (url.protocol === "http:" && !isLoopbackHost(url.hostname)) {
|
|
181
|
-
throw new Error("GSAP base URL must use HTTPS unless it points at this machine");
|
|
182
|
-
}
|
|
183
|
-
return url.href.replace(/\/+$/, "");
|
|
184
|
-
}
|
|
185
|
-
function normalizeGsapLocalRoot(root) {
|
|
186
|
-
const value = root.trim();
|
|
187
|
-
if (!/^\/(?![/\\])/.test(value) || /[?#\\]/.test(value)) {
|
|
188
|
-
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
189
|
-
}
|
|
190
|
-
const origin = "http://local.invalid";
|
|
191
|
-
const url = new URL(value, origin);
|
|
192
|
-
const path = url.pathname.replace(/\/+$/, "");
|
|
193
|
-
if (url.origin !== origin || !path) {
|
|
194
|
-
throw new Error("GSAP local root must be a same-origin path such as /vendor/npm");
|
|
195
|
-
}
|
|
196
|
-
return path;
|
|
197
|
-
}
|
|
198
|
-
function gsapCdnDist(gsapVersion, baseUrl) {
|
|
199
|
-
const version = gsapVersion && /^\d+(\.\d+)*$/.test(gsapVersion) ? gsapVersion : GSAP_CDN_VERSION;
|
|
200
|
-
if (baseUrl?.trim().startsWith("/")) {
|
|
201
|
-
const root = normalizeGsapLocalRoot(baseUrl);
|
|
202
|
-
return `${version === GSAP_CDN_VERSION ? root : GSAP_CDN_BASE_URL}/gsap@${version}/dist/`;
|
|
203
|
-
}
|
|
204
|
-
return `${normalizeGsapBaseUrl(baseUrl)}/gsap@${version}/dist/`;
|
|
205
|
-
}
|
|
206
|
-
function motionPathPluginUrl(gsapVersion, baseUrl) {
|
|
207
|
-
return `${gsapCdnDist(gsapVersion, baseUrl)}MotionPathPlugin.min.js`;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
165
|
// ../core/dist/templates/constants.js
|
|
211
166
|
var GSAP_CDN = `${gsapCdnDist()}gsap.min.js`;
|
|
212
167
|
var BASE_STYLES = `* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -5944,12 +5899,6 @@ export {
|
|
|
5944
5899
|
isDistributedFps,
|
|
5945
5900
|
generateBaseHtml,
|
|
5946
5901
|
getStageStyles,
|
|
5947
|
-
GSAP_CDN_VERSION,
|
|
5948
|
-
GSAP_BASE_URL_META,
|
|
5949
|
-
normalizeGsapBaseUrl,
|
|
5950
|
-
normalizeGsapLocalRoot,
|
|
5951
|
-
gsapCdnDist,
|
|
5952
|
-
motionPathPluginUrl,
|
|
5953
5902
|
GSAP_CDN,
|
|
5954
5903
|
BASE_STYLES,
|
|
5955
5904
|
ELEMENT_BASE_STYLES,
|