hyperframes 0.9.52 → 0.9.53
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-Z6G2DLNE.js → add-TZFSLV5M.js} +21 -16
- package/dist/{agentPromptGenerator-RCTC2XXL.js → agentPromptGenerator-OPQZUVYC.js} +12 -17
- package/dist/{animatedGifPrep-X7KILCDI.js → animatedGifPrep-DEK4XZYT.js} +15 -16
- package/dist/api.js +46 -46
- package/dist/{asset-A3ENWWCU.js → asset-3BIBG7LB.js} +2 -2
- package/dist/{assetCataloger-TIMZTOYH.js → assetCataloger-R4NWWO4P.js} +13 -13
- package/dist/{audio-HMCUO2CV.js → audio-N3DHNT3F.js} +38 -31
- package/dist/{auth-NXR3QM4C.js → auth-CBF2DVRT.js} +5 -5
- package/dist/{autoUpdate-TY7P2Z4F.js → autoUpdate-UJB4MI4Z.js} +5 -3
- package/dist/{avatars-36MYJUPA.js → avatars-JVATTQYO.js} +21 -19
- package/dist/{backgroundChecks-EWWJEGF6.js → backgroundChecks-R7SFELIM.js} +6 -4
- package/dist/backgroundChecksWorker.js +6 -5
- package/dist/{batchRender-VKM4E7PI.js → batchRender-D4VO4OCF.js} +26 -7
- package/dist/{beats-Z4B4B4KM.js → beats-UCYZ7MKK.js} +14 -14
- package/dist/{benchmark-PLGO2THH.js → benchmark-3NMJO5DK.js} +31 -14
- package/dist/{billing-ZIXACCLR.js → billing-76JTGOHN.js} +18 -17
- package/dist/{browser-VZFBNASB.js → browser-5XXA4O25.js} +11 -11
- package/dist/{bundleWithLocalizedFonts-XD2XDEQL.js → bundleWithLocalizedFonts-S7DIF43W.js} +1 -1
- package/dist/{capture-BAFLHNDI.js → capture-EV4G3SCY.js} +33 -34
- package/dist/{capture-GC4F54XT.js → capture-JHMVFAUS.js} +4 -4
- package/dist/{captureCompositionFrame-YBVEFKWM.js → captureCompositionFrame-3M3BFHZH.js} +19 -19
- package/dist/{catalog-LHOCJUO2.js → catalog-WVZJ6XYV.js} +21 -16
- package/dist/{catch-up-6FNQ6I7Q.js → catch-up-FQ5KCZIH.js} +11 -11
- package/dist/{check-S7T5LE6V.js → check-VTUVZWCF.js} +52 -49
- package/dist/{checkAudio-AKOI4AWK.js → checkAudio-FYRBXK22.js} +19 -19
- package/dist/{checkBrowser-NABXGNNM.js → checkBrowser-EJQEWSIH.js} +46 -43
- package/dist/{chunk-YXQA6MKA.js → chunk-2ODGEXNH.js} +4 -4
- package/dist/{chunk-7SZ7QQJ3.js → chunk-2ST2FAVH.js} +2 -2
- package/dist/{chunk-POGZYVM2.js → chunk-2YSQU74C.js} +9 -9
- package/dist/{chunk-H4S3WY2N.js → chunk-346RTE74.js} +1 -1
- package/dist/{chunk-Z46RV43W.js → chunk-35PKJPEI.js} +2 -2
- package/dist/{chunk-MQGRMXFN.js → chunk-365OGBQ2.js} +3 -3
- package/dist/chunk-3FHPYC6X.js +5069 -0
- package/dist/{chunk-6PXVXIC7.js → chunk-3FL7MKQH.js} +163 -60
- package/dist/{chunk-SQ64IEA7.js → chunk-3HQ4C4HI.js} +2 -2
- package/dist/{chunk-CDK23M57.js → chunk-43ILJV43.js} +11 -11
- package/dist/{chunk-RMO7KIFX.js → chunk-44OCDK5C.js} +4 -4
- package/dist/{chunk-APT2TSYC.js → chunk-47IXIEBQ.js} +1 -1
- package/dist/{chunk-FCNMU7LC.js → chunk-4FOHO7GC.js} +1 -1
- package/dist/{chunk-CQ5VQNOD.js → chunk-4KRID4YV.js} +1 -1
- package/dist/{chunk-MR7VKWYT.js → chunk-4KS3GL5I.js} +1 -1
- package/dist/{chunk-4Q2HYZZK.js → chunk-4TJGOQER.js} +58 -3
- package/dist/{chunk-YJFIGFON.js → chunk-562X3KBJ.js} +2 -2
- package/dist/chunk-5A75E4OT.js +72 -0
- package/dist/{chunk-XHUFLQGD.js → chunk-5CRHNVJW.js} +3 -3
- package/dist/{chunk-22EEGJLH.js → chunk-5JOYZGHQ.js} +82 -54
- package/dist/{chunk-NQ3NHCF6.js → chunk-5SMHNPMW.js} +2 -2
- package/dist/{chunk-24M5C5EQ.js → chunk-6CO6L3YP.js} +1 -1
- package/dist/{chunk-MP4TEYUJ.js → chunk-6EMFSRTW.js} +4 -1
- package/dist/{chunk-H4LCNEA2.js → chunk-6F4ZVQUX.js} +195 -128
- package/dist/{chunk-YRXIEP35.js → chunk-6RPLXBZJ.js} +89 -10
- package/dist/{chunk-7RLMDAUO.js → chunk-6T4PB35F.js} +2 -1
- package/dist/{chunk-VOJ3ICMF.js → chunk-7ELQHSEE.js} +1 -1
- package/dist/{chunk-NXDFCWF2.js → chunk-7FU5JCAK.js} +1 -1
- package/dist/{chunk-UFET7UTU.js → chunk-B3WRUPRS.js} +2 -2
- package/dist/{chunk-TI7JN55F.js → chunk-BCJJ64JG.js} +1 -1
- package/dist/{chunk-P27QDOID.js → chunk-BH5P5QZN.js} +4 -4
- package/dist/{chunk-RIHRYTNB.js → chunk-BQRJZDSM.js} +15 -15
- package/dist/{chunk-7GVHPY7W.js → chunk-BS36NRXV.js} +1 -1
- package/dist/{chunk-PRG42HNH.js → chunk-CBV4W4R3.js} +2 -2
- package/dist/{chunk-UX2KMUKC.js → chunk-CTHG3WLB.js} +9 -9
- package/dist/{chunk-MF53JVZ5.js → chunk-CYBOQOKO.js} +1 -1
- package/dist/{chunk-DPVXBVLL.js → chunk-DZWAYZG2.js} +6254 -6096
- package/dist/{chunk-AMWWQXTC.js → chunk-E3LZAM64.js} +5 -5
- package/dist/{chunk-B2ZZYISD.js → chunk-ECGNWHFE.js} +29 -6
- package/dist/{chunk-ZG6BVWQ7.js → chunk-ES273AD6.js} +3 -3
- package/dist/{chunk-R64WJS45.js → chunk-FH6KC5EF.js} +6 -6
- package/dist/{chunk-S5EMQAKL.js → chunk-FLPVKGBS.js} +2 -2
- package/dist/{chunk-HLXZFHEY.js → chunk-FM5JRUWL.js} +6 -6
- package/dist/{chunk-DE7Q2LWF.js → chunk-FQMP2KFS.js} +2 -2
- package/dist/{chunk-ZXMZSU5Y.js → chunk-FRM4EM52.js} +15 -15
- package/dist/chunk-FSBV6Z7E.js +351 -0
- package/dist/{chunk-U7ZCBWNM.js → chunk-FU2R6OVR.js} +3 -3
- package/dist/{chunk-4OHV7UZZ.js → chunk-FZNH7SCB.js} +1 -1
- package/dist/{chunk-O45HB74L.js → chunk-G5FNJQER.js} +31 -27
- package/dist/{chunk-G6QCHM2N.js → chunk-G7GTO4YP.js} +4 -4
- package/dist/{chunk-WN4W76IQ.js → chunk-GDWPLGHY.js} +1 -1
- package/dist/{chunk-UB44XZOI.js → chunk-GVUG5VDL.js} +1 -1
- package/dist/{chunk-YXR5MVBM.js → chunk-GZG2Z2O2.js} +2 -2
- package/dist/{chunk-7QM73IH2.js → chunk-H5K3FS4W.js} +4 -4
- package/dist/{chunk-MOTJT42J.js → chunk-HJ2YUPBF.js} +13 -1
- package/dist/{chunk-47MEWWCO.js → chunk-HY25JZQ2.js} +2 -2
- package/dist/{chunk-DONVZZLV.js → chunk-HYO4DIYT.js} +1 -1
- package/dist/{chunk-6NGJ55V5.js → chunk-HZ2CD6RL.js} +1 -1
- package/dist/{chunk-WPC2FKNB.js → chunk-I7NTTMET.js} +326 -114
- package/dist/{chunk-P37ZACC6.js → chunk-I7SJBRVT.js} +3 -3
- package/dist/{chunk-CIMOTEZB.js → chunk-IB5DXMAH.js} +4 -4
- package/dist/{chunk-MI54IK7G.js → chunk-IEESWUIQ.js} +11 -2
- package/dist/{chunk-6MKM2RVL.js → chunk-IH2C53YV.js} +460 -1
- package/dist/{chunk-GEIWJSWN.js → chunk-IH56MGAB.js} +10 -10
- package/dist/{chunk-6MYO2IHD.js → chunk-IHXMN5YH.js} +7 -0
- package/dist/{chunk-YHJOTCTV.js → chunk-IJYIIHGK.js} +10 -5
- package/dist/{chunk-L2KUIV56.js → chunk-ISVRNYE5.js} +1 -1
- package/dist/{chunk-QP7MQ43Y.js → chunk-IXUIJ7OL.js} +3 -3
- package/dist/chunk-JCFOSR7Z.js +181 -0
- package/dist/{chunk-HS7LT4PL.js → chunk-JNM4WG7C.js} +1 -1
- package/dist/{chunk-WSZJS4QC.js → chunk-KDDRDNEE.js} +60 -9
- package/dist/{chunk-UAU4SIOQ.js → chunk-KEZ7QIJN.js} +6 -6
- package/dist/{chunk-ZW6ZUKBB.js → chunk-KKO4PRB5.js} +1 -1
- package/dist/{chunk-M3BJEZ7E.js → chunk-KPFJGQ6M.js} +45 -12
- package/dist/{chunk-YPURY3MW.js → chunk-LKWN2F7O.js} +2 -2
- package/dist/{chunk-CIGQUDEV.js → chunk-N2YHCAFL.js} +50 -15
- package/dist/{chunk-Z2EKCD7H.js → chunk-NCPSUM5A.js} +1 -1
- package/dist/{chunk-64T46P7K.js → chunk-NVGB7L2M.js} +2 -2
- package/dist/{chunk-2MNSS7PH.js → chunk-OLVZAALP.js} +2 -2
- package/dist/{chunk-LZTBL7SR.js → chunk-OSKSTJNQ.js} +12 -2
- package/dist/{chunk-QUUZ2BGC.js → chunk-OUPWEFUM.js} +1 -1
- package/dist/{chunk-4QFWV5GQ.js → chunk-P2ZMVHTF.js} +2 -1
- package/dist/{chunk-T6VQGCN3.js → chunk-PPLFDG7N.js} +9 -5
- package/dist/{chunk-UBHBB3TB.js → chunk-PUT3NPVE.js} +43 -51
- package/dist/{chunk-IMNIW22F.js → chunk-PYOCEDTU.js} +2 -2
- package/dist/{chunk-E2KJT7JR.js → chunk-Q5P7YJXO.js} +2 -2
- package/dist/{chunk-42JBYXIQ.js → chunk-QBDT7Z5D.js} +38 -22
- package/dist/{chunk-3LIMD4YP.js → chunk-QBN2W4T3.js} +6 -8
- package/dist/{chunk-J45SCYTD.js → chunk-QXYR7LOO.js} +7 -7
- package/dist/{chunk-LNZHSISH.js → chunk-RH6UD7XI.js} +11 -11
- package/dist/{chunk-IZQDQ5AN.js → chunk-RUQ2VOD3.js} +3 -2
- package/dist/{chunk-ETXOQXWT.js → chunk-SH6PAYUD.js} +5 -5
- package/dist/{chunk-M6TIOPL5.js → chunk-SRPPNXGX.js} +3 -3
- package/dist/{chunk-LIPVGXPV.js → chunk-SXZMJ7QJ.js} +4 -4
- package/dist/{chunk-ZGWOCGSJ.js → chunk-T3QK3VKM.js} +1 -1
- package/dist/{chunk-DC7AOIHN.js → chunk-T5S7U5C6.js} +1 -1
- package/dist/{chunk-RULKJFRT.js → chunk-TQKX3TA3.js} +1 -1
- package/dist/{chunk-IB722ALN.js → chunk-TTP6JGIL.js} +2 -2
- package/dist/{chunk-DYYAFCZH.js → chunk-TWI33YJP.js} +1 -1
- package/dist/{chunk-5B425ZB3.js → chunk-UAOL5PRX.js} +1 -1
- package/dist/{chunk-L56WTLQP.js → chunk-VCHJV7ZT.js} +10 -9
- package/dist/{chunk-M425BL2U.js → chunk-VCKUDUPN.js} +1 -1
- package/dist/{chunk-UIIQA7DN.js → chunk-W6WVHIU7.js} +6 -3
- package/dist/{chunk-JJLPGVTA.js → chunk-WPG76RJZ.js} +1 -1
- package/dist/{chunk-VXX4S2PH.js → chunk-XBPLO6CY.js} +384 -94
- package/dist/{chunk-M4E7CMYS.js → chunk-XJTFSMZK.js} +2 -2
- package/dist/{chunk-X3IULMVV.js → chunk-XM7LOJBP.js} +1 -1
- package/dist/{chunk-HT4FWRIT.js → chunk-XZZF6YBS.js} +1 -1
- package/dist/{chunk-4FWR7OE3.js → chunk-Y6CLFCYX.js} +3 -3
- package/dist/{chunk-7VQ3RAKO.js → chunk-YF34MK67.js} +19 -16
- package/dist/{chunk-UX4HQHMS.js → chunk-YT3LRZA3.js} +12 -10
- package/dist/{chunk-MOR3H5FK.js → chunk-ZFCK46UR.js} +1 -1
- package/dist/{chunk-C66O6A2J.js → chunk-ZI3MSFSN.js} +2 -2
- package/dist/{chunk-2AZMG6DR.js → chunk-ZK6BC3JM.js} +4 -4
- package/dist/{chunk-TDQUQAW5.js → chunk-ZPPEZJVD.js} +97 -39
- package/dist/{chunk-I6SCA2ME.js → chunk-ZT7RB42S.js} +43 -21
- package/dist/{chunk-KUZTIMY3.js → chunk-ZV3RIHRN.js} +7 -7
- package/dist/{clean-Y6YIQRPM.js → clean-KEVJGNES.js} +29 -28
- package/dist/cli.js +67 -66
- package/dist/{cloud-5C5SCK4H.js → cloud-EBJZO6ZY.js} +5 -4
- package/dist/{cloud-A5U7YYNA.js → cloud-OR62JJDE.js} +4 -4
- package/dist/{cloudrun-EULFHQQL.js → cloudrun-HPYJTM5N.js} +9 -9
- package/dist/{compare-6XCTMUF3.js → compare-353XZU2M.js} +43 -41
- package/dist/{compiler-DUG4GFRI.js → compiler-KPDUYBA5.js} +8 -8
- package/dist/{component-JDQIZSAL.js → component-5DZDY74T.js} +3 -3
- package/dist/{compositions-HZDEOSRL.js → compositions-VBICZHMF.js} +27 -20
- package/dist/{curve-SE7ZAMI6.js → curve-KDRSQWHP.js} +18 -17
- package/dist/{cuts-AEFJGBFP.js → cuts-ABAQKTF4.js} +19 -18
- package/dist/{delete-EQUQ7Z2K.js → delete-BXURHIL4.js} +10 -7
- package/dist/{deploy-NSLC6BYZ.js → deploy-4TBYCBNI.js} +7 -7
- package/dist/{describeProject-FTJBPDL3.js → describeProject-K62TKQLI.js} +14 -14
- package/dist/{destroy-4O4T3KL3.js → destroy-FAJUHCW4.js} +6 -6
- package/dist/{deterministicFonts-QY4KNTOU.js → deterministicFonts-XZIQ4PNP.js} +3 -3
- package/dist/{diff-VJ3CS7YE.js → diff-4O7ZCBM5.js} +43 -41
- package/dist/{dist-MXWEGMRB.js → dist-AAGJ6SXG.js} +5 -5
- package/dist/{dist-MNFB4YKV.js → dist-D67752QW.js} +18 -18
- package/dist/{dist-2YJCNIWI.js → dist-F4T6FB7P.js} +6 -6
- package/dist/{doctor-RR7SNO6X.js → doctor-IEUIWBC5.js} +23 -18
- package/dist/{dotEnv-33RDHX7P.js → dotEnv-RZ52L7X3.js} +5 -4
- package/dist/{energy-PN23W2UJ.js → energy-BJQTVGBO.js} +19 -18
- package/dist/{events-4ECJEB2W.js → events-4UBI5WNS.js} +10 -10
- package/dist/{events-NR6UPBHG.js → events-D3NBN44E.js} +4 -4
- package/dist/{events-5OLO73VJ.js → events-M37XFHGJ.js} +21 -20
- package/dist/{execute-TS3BP65F.js → execute-JCLM27KS.js} +36 -36
- package/dist/{extract-GCZ5HSEN.js → extract-AYWY5PIN.js} +19 -18
- package/dist/{face-QKMYBRV3.js → face-TEHC6WYN.js} +20 -19
- package/dist/{feedback-3H43EK7N.js → feedback-JZDCB5N4.js} +42 -30
- package/dist/{ffmpeg-JRNM74WY.js → ffmpeg-JMPVMPDT.js} +15 -15
- package/dist/{figma-JGP2UGGU.js → figma-6MYT2VRV.js} +3 -3
- package/dist/fontLocalizeCli.js +20 -21
- package/dist/{frames-OYSWKB3F.js → frames-NLFBDILH.js} +20 -19
- package/dist/{generate-TDXLUFMR.js → generate-YLPRVWHZ.js} +32 -30
- package/dist/{get-UB2MNBYO.js → get-APCR6ZJE.js} +10 -7
- package/dist/{gpuPolicy-6CTTH3NY.js → gpuPolicy-YXBUP4AF.js} +12 -12
- package/dist/{grade-compare-2DXT4RWV.js → grade-compare-VLWGCI4O.js} +43 -41
- package/dist/{gsapParser-L7TM3RGH.js → gsapParser-TSPNHW7F.js} +1 -1
- package/dist/hangReport.js +2 -1
- package/dist/{heifImagePrep-VDZVZ4G7.js → heifImagePrep-UC2AV5LU.js} +16 -17
- package/dist/{help-RGKY4DR4.js → help-YSBTU7WC.js} +1 -1
- package/dist/{history-AVDXYNAP.js → history-EPIGMZUN.js} +15 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-NGTQABZC.js → info-6SF6E2T3.js} +26 -20
- package/dist/{init-C3EARHDW.js → init-BXS47X5W.js} +40 -38
- package/dist/{ink-ISO3VXRQ.js → ink-BWKWSIKA.js} +19 -18
- package/dist/{inspect-V6MPU5I5.js → inspect-NUE2R2OF.js} +44 -41
- package/dist/{installer-FI6HT2FW.js → installer-T57TKMM6.js} +7 -7
- package/dist/{keyframes-PTJDE47Y.js → keyframes-WCRUYIOQ.js} +19 -15
- package/dist/{lambda-JTO5YD2I.js → lambda-L2YNMAL5.js} +18 -18
- package/dist/{layout-QMLEZP5T.js → layout-FXTXMDAL.js} +44 -41
- package/dist/{lint-6BWOQAW6.js → lint-IKRYTERJ.js} +23 -17
- package/dist/{lintProject-G4MXY4YA.js → lintProject-2NDIJLD2.js} +6 -6
- package/dist/{list-7E4VD7JA.js → list-BX5SCZEC.js} +10 -7
- package/dist/{localPage-BQOYZAOW.js → localPage-HY3VMEYU.js} +12 -12
- package/dist/{login-37MSZXCY.js → login-5IDR2M6C.js} +6 -5
- package/dist/{logout-QGNBUJKS.js → logout-MTWA4BBI.js} +2 -1
- package/dist/{look-5GXW3NVP.js → look-7R4YJNX7.js} +19 -18
- package/dist/{manager-TMKN4DX5.js → manager-DBMIO5YG.js} +2 -2
- package/dist/{manager-J2IRAOR7.js → manager-PHCAZFHT.js} +13 -13
- package/dist/{measure-23IL23BL.js → measure-7CJ4RKSY.js} +11 -11
- package/dist/{media-treatment-7ODBREPX.js → media-treatment-HEW3RMDV.js} +22 -21
- package/dist/{media-use-QJA6NB3V.js → media-use-S5IJPK5G.js} +11 -18
- package/dist/{models-2Z6SURXU.js → models-4UJY22Z3.js} +16 -16
- package/dist/{motionShot-CYS3L6FK.js → motionShot-FLZQ75TM.js} +23 -23
- package/dist/{normalize-audio-6YVF4LED.js → normalize-audio-AN3KKSSK.js} +16 -16
- package/dist/{open-WQ6NRHCN.js → open-AHPOLDBY.js} +26 -20
- package/dist/{parakeetRunner-R7KK6ZHD.js → parakeetRunner-4URDK3H4.js} +17 -17
- package/dist/{pipeline-HRCK2JQL.js → pipeline-O5UWLQDZ.js} +15 -15
- package/dist/{plan-FQNKACYR.js → plan-SUV7WBBJ.js} +25 -25
- package/dist/{play-UJZBNX2O.js → play-LHMMHUUN.js} +37 -33
- package/dist/{preflight-VIMLSE3I.js → preflight-FLSEP55G.js} +14 -14
- package/dist/{present-JIOVM3ZH.js → present-VEDXFFPZ.js} +31 -28
- package/dist/{preview-HCYGBEWR.js → preview-FXNPXOJL.js} +41 -33
- package/dist/privateProjectFile-NN7MTTEQ.js +50 -0
- package/dist/{probe-6YQA2ZZC.js → probe-P6LUMX34.js} +19 -18
- package/dist/{producer-JIM74BGL.js → producer-SWV2GP4I.js} +1 -1
- package/dist/{projectConfig-VPL64JBD.js → projectConfig-EPOIXMHL.js} +9 -9
- package/dist/{publicNetwork-F3ZXSVOD.js → publicNetwork-GW7SVP7N.js} +1 -1
- package/dist/{publication-ST3VFFWM.js → publication-SIGMWEK3.js} +5 -5
- package/dist/{publish-3TTCO4R4.js → publish-EVCYPK6H.js} +45 -32
- package/dist/{refresh-6ONVQ3WV.js → refresh-PIFEWEAL.js} +2 -1
- package/dist/{remove-background-XTICO22L.js → remove-background-AFXDE5YR.js} +16 -16
- package/dist/{render-MG5MX45D.js → render-BCKSDBLK.js} +8 -8
- package/dist/{render-PFBZJRAN.js → render-DFUMSKVQ.js} +65 -55
- package/dist/{render-WYDOZEZ5.js → render-MENZ6KS5.js} +82 -50
- package/dist/{render-batch-C3XGAQGX.js → render-batch-DPT67NDL.js} +8 -8
- package/dist/renderSetupWorker.js +8 -8
- package/dist/{resolver-AGMKICJW.js → resolver-EE3255VM.js} +7 -7
- package/dist/{reverse-TV524NFW.js → reverse-TA73U7V6.js} +1 -1
- package/dist/{run-NQBD5RDR.js → run-Y2ISHW5P.js} +5 -4
- package/dist/{screenshotCapture-OUZMH7EQ.js → screenshotCapture-CEEBQ3FU.js} +14 -14
- package/dist/{service-UIHDIMFM.js → service-6P6QVFNF.js} +19 -18
- package/dist/{share-WD7MCA4I.js → share-Q25X6AIX.js} +24 -23
- package/dist/{sherpa-H67ZJICN.js → sherpa-PPSJ23WI.js} +16 -16
- package/dist/sherpaWorker.js +2 -2
- package/dist/skills/hyperframes-cli/references/cloud.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +3 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +95 -15
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +192 -2
- package/dist/skills/media-use/references/heygen.md +1 -1
- package/dist/{skills-7TUSQF6W.js → skills-PVJJ3R2V.js} +14 -13
- package/dist/{skillsUpdateCheck-HF6SQWRA.js → skillsUpdateCheck-L4TGSUN6.js} +6 -4
- package/dist/{snapshot-P7ZSTKED.js → snapshot-AIAJRR5C.js} +93 -54
- package/dist/{src-TQQ743H4.js → src-O5P56HIK.js} +20 -14
- package/dist/{src-H2EUJUV3.js → src-UEH4H4UY.js} +18 -19
- package/dist/{start-7ZTAKHD4.js → start-HY5WGCDN.js} +30 -28
- package/dist/{staticProjectServer-X4PARIVN.js → staticProjectServer-WNKXSUBZ.js} +28 -27
- package/dist/{status-ELQXIXIB.js → status-AFDHSUGG.js} +21 -20
- package/dist/studio/assets/{hyperframes-player-D7LhzIg1.js → hyperframes-player-z7r-N5fm.js} +2 -2
- package/dist/studio/assets/{index-CQ7o0CBU.js → index-2QPHxCxy.js} +1 -1
- package/dist/studio/assets/{index-D3WxJaqm.js → index-Dpo7Q_9-.js} +160 -160
- package/dist/studio/assets/index-Dv67Vrl6.js +74 -0
- package/dist/studio/assets/{pausedVideoDecoder-BVUmBgn0.js → pausedVideoDecoder-BarDYEAf.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OJEU24EG.js → studio-api-P72FA5XB.js} +18 -18
- package/dist/{studioServer-E5CLZC46.js → studioServer-RICH4NMX.js} +81 -70
- package/dist/{sync-VEJWMKDP.js → sync-J66DIXED.js} +19 -18
- package/dist/system-I5KGZTUG.js +1 -1
- package/dist/{telemetry-3U4UGQ5V.js → telemetry-KOOKPGMR.js} +10 -10
- package/dist/{templates-AUAOWIYA.js → templates-6DRGOTNH.js} +19 -18
- package/dist/{timeline-YO27AP66.js → timeline-UZX7366C.js} +29 -28
- package/dist/{tokens-UXLQGLVG.js → tokens-AU3BUE6U.js} +2 -2
- package/dist/{transcribe-I7MTUH4M.js → transcribe-CW5HK2OA.js} +33 -32
- package/dist/{transcribe-FZ3TE4FK.js → transcribe-OUTSVFRZ.js} +15 -15
- package/dist/{tts-3VHEX4RB.js → tts-X3MAUZ7E.js} +1 -1
- package/dist/{update-KBKSO3SH.js → update-KRYJ6ACJ.js} +15 -14
- package/dist/{updateCheck-MUYN55HR.js → updateCheck-WQVGQLCG.js} +5 -3
- package/dist/{upgrade-CRCX7CCK.js → upgrade-S54RPT3R.js} +6 -4
- package/dist/{urlDownloader-4EM6GLN4.js → urlDownloader-MASRYSQX.js} +11 -11
- package/dist/{validate-Y2KF2DU3.js → validate-4QVUHCYG.js} +36 -35
- package/dist/{video-HG6SINBD.js → video-AEGOEGSP.js} +13 -13
- package/dist/{voices-O4UHHFZS.js → voices-T4U7EU5X.js} +29 -27
- package/dist/warmCheck.js +52 -50
- package/dist/warmCheckClient.js +2 -1
- package/package.json +1 -1
- package/dist/chunk-DQZRNGDS.js +0 -5069
- package/dist/chunk-IGLEPPTN.js +0 -24
- package/dist/chunk-L2U4ISSS.js +0 -93
- package/dist/studio/assets/index-BX3KHhGX.js +0 -71
- package/dist/{chunk-445BBSZS.js → chunk-UMRNTF3C.js} +3 -3
- package/dist/{synthesize-HOLHQCR2.js → synthesize-UKCQR7WW.js} +1 -1
|
@@ -4,27 +4,28 @@ 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
|
-
createShareService
|
|
9
|
-
} from "./chunk-C66O6A2J.js";
|
|
10
7
|
import {
|
|
11
8
|
shareError
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import
|
|
9
|
+
} from "./chunk-4KRID4YV.js";
|
|
10
|
+
import {
|
|
11
|
+
createShareService
|
|
12
|
+
} from "./chunk-ZI3MSFSN.js";
|
|
13
|
+
import "./chunk-SH6PAYUD.js";
|
|
14
14
|
import {
|
|
15
15
|
q,
|
|
16
16
|
select
|
|
17
17
|
} from "./chunk-D2LIT7UR.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-KPFJGQ6M.js";
|
|
19
19
|
import "./chunk-BAWGEGKD.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-G7GTO4YP.js";
|
|
21
|
+
import "./chunk-ECGNWHFE.js";
|
|
21
22
|
import {
|
|
22
23
|
resolveProjectOrThrow
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GVUG5VDL.js";
|
|
24
25
|
import "./chunk-ZLTB7ZCQ.js";
|
|
25
26
|
import "./chunk-D3UCUI7G.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-3HQ4C4HI.js";
|
|
28
|
+
import "./chunk-T3QK3VKM.js";
|
|
28
29
|
import "./chunk-PXVQOMKL.js";
|
|
29
30
|
import "./chunk-MCDNAIFF.js";
|
|
30
31
|
import "./chunk-DMW5SSUN.js";
|
|
@@ -34,17 +35,17 @@ import {
|
|
|
34
35
|
import "./chunk-S3S4TGEH.js";
|
|
35
36
|
import "./chunk-54HJ63Q2.js";
|
|
36
37
|
import "./chunk-JCNPHRGX.js";
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-XBPLO6CY.js";
|
|
39
|
+
import "./chunk-OSKSTJNQ.js";
|
|
39
40
|
import "./chunk-Z5J67X44.js";
|
|
40
41
|
import "./chunk-5S7W3TUO.js";
|
|
41
42
|
import "./chunk-D54ZDCZR.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-PUT3NPVE.js";
|
|
43
44
|
import "./chunk-DE3JRSGT.js";
|
|
44
45
|
import "./chunk-3GXQPCJC.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-FU2R6OVR.js";
|
|
46
47
|
import "./chunk-FXMKHHPO.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-3FHPYC6X.js";
|
|
48
49
|
import "./chunk-VC76R6W2.js";
|
|
49
50
|
import "./chunk-XWK2RSD5.js";
|
|
50
51
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -52,14 +53,13 @@ import "./chunk-X6JUUQCM.js";
|
|
|
52
53
|
import "./chunk-KGPLIH7B.js";
|
|
53
54
|
import "./chunk-NFRKPLTJ.js";
|
|
54
55
|
import "./chunk-LEIR7IDJ.js";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-6F4ZVQUX.js";
|
|
57
|
+
import "./chunk-6EMFSRTW.js";
|
|
57
58
|
import "./chunk-U3LWQGCD.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-M425BL2U.js";
|
|
59
|
+
import "./chunk-IH2C53YV.js";
|
|
60
|
+
import "./chunk-VCKUDUPN.js";
|
|
61
61
|
import "./chunk-FR7YBU3H.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-DZWAYZG2.js";
|
|
63
63
|
import "./chunk-GWTIFRF5.js";
|
|
64
64
|
import "./chunk-2RY2LWAA.js";
|
|
65
65
|
import "./chunk-WC4MTXGN.js";
|
|
@@ -69,10 +69,10 @@ import "./chunk-JOQR4AP6.js";
|
|
|
69
69
|
import "./chunk-BR2JQQC5.js";
|
|
70
70
|
import "./chunk-AWD2MWWL.js";
|
|
71
71
|
import "./chunk-ISN5GRYI.js";
|
|
72
|
+
import "./chunk-GR2E54E6.js";
|
|
72
73
|
import {
|
|
73
74
|
jsonFailure
|
|
74
75
|
} from "./chunk-ADVVQX4I.js";
|
|
75
|
-
import "./chunk-GR2E54E6.js";
|
|
76
76
|
import {
|
|
77
77
|
CliUsageError,
|
|
78
78
|
setCommandExitCode
|
|
@@ -81,11 +81,12 @@ import {
|
|
|
81
81
|
isUnattended
|
|
82
82
|
} from "./chunk-CPHQTXP5.js";
|
|
83
83
|
import "./chunk-QBXDU24O.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-2ST2FAVH.js";
|
|
85
85
|
import "./chunk-E63BDV4Z.js";
|
|
86
86
|
import "./chunk-LW33P24U.js";
|
|
87
87
|
import "./chunk-XT6MXC7A.js";
|
|
88
88
|
import "./chunk-7KDQAD2W.js";
|
|
89
|
+
import "./chunk-IU5DC4HP.js";
|
|
89
90
|
import "./chunk-M2WBOQ2Q.js";
|
|
90
91
|
|
|
91
92
|
// src/commands/share.ts
|
|
@@ -17,36 +17,36 @@ import {
|
|
|
17
17
|
sherpaRuntimeLoadError,
|
|
18
18
|
sherpaUnsupportedReason,
|
|
19
19
|
transcribeWithSherpa
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B3WRUPRS.js";
|
|
21
21
|
import "./chunk-4Y5IDZOJ.js";
|
|
22
22
|
import "./chunk-YTHXSYYB.js";
|
|
23
23
|
import "./chunk-3S27CPV7.js";
|
|
24
24
|
import "./chunk-6BEFEWFB.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-Y6CLFCYX.js";
|
|
26
26
|
import "./chunk-KLIVZ5VG.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-JNM4WG7C.js";
|
|
28
|
+
import "./chunk-2ODGEXNH.js";
|
|
29
29
|
import "./chunk-RZ6CXJ56.js";
|
|
30
30
|
import "./chunk-R4EWRIDL.js";
|
|
31
31
|
import "./chunk-JJ47LVJ7.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-G7GTO4YP.js";
|
|
33
33
|
import "./chunk-CDNVZEGQ.js";
|
|
34
34
|
import "./chunk-7PBJR7WI.js";
|
|
35
35
|
import "./chunk-UOFAE5RF.js";
|
|
36
36
|
import "./chunk-IR35BCLK.js";
|
|
37
37
|
import "./chunk-HU2SPFNG.js";
|
|
38
38
|
import "./chunk-EHZESMRB.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-XBPLO6CY.js";
|
|
40
|
+
import "./chunk-OSKSTJNQ.js";
|
|
41
41
|
import "./chunk-Z5J67X44.js";
|
|
42
42
|
import "./chunk-5S7W3TUO.js";
|
|
43
43
|
import "./chunk-D54ZDCZR.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-PUT3NPVE.js";
|
|
45
45
|
import "./chunk-DE3JRSGT.js";
|
|
46
46
|
import "./chunk-3GXQPCJC.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-FU2R6OVR.js";
|
|
48
48
|
import "./chunk-FXMKHHPO.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-3FHPYC6X.js";
|
|
50
50
|
import "./chunk-VC76R6W2.js";
|
|
51
51
|
import "./chunk-XWK2RSD5.js";
|
|
52
52
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -54,14 +54,13 @@ import "./chunk-CNAOJ7XI.js";
|
|
|
54
54
|
import "./chunk-X6JUUQCM.js";
|
|
55
55
|
import "./chunk-KGPLIH7B.js";
|
|
56
56
|
import "./chunk-LEIR7IDJ.js";
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-6F4ZVQUX.js";
|
|
58
|
+
import "./chunk-6EMFSRTW.js";
|
|
59
59
|
import "./chunk-U3LWQGCD.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-M425BL2U.js";
|
|
60
|
+
import "./chunk-IH2C53YV.js";
|
|
61
|
+
import "./chunk-VCKUDUPN.js";
|
|
63
62
|
import "./chunk-FR7YBU3H.js";
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-DZWAYZG2.js";
|
|
65
64
|
import "./chunk-GWTIFRF5.js";
|
|
66
65
|
import "./chunk-2RY2LWAA.js";
|
|
67
66
|
import "./chunk-WC4MTXGN.js";
|
|
@@ -72,6 +71,7 @@ import "./chunk-QBXDU24O.js";
|
|
|
72
71
|
import "./chunk-E63BDV4Z.js";
|
|
73
72
|
import "./chunk-XT6MXC7A.js";
|
|
74
73
|
import "./chunk-7KDQAD2W.js";
|
|
74
|
+
import "./chunk-IU5DC4HP.js";
|
|
75
75
|
import "./chunk-M2WBOQ2Q.js";
|
|
76
76
|
export {
|
|
77
77
|
DecodeCancelled,
|
package/dist/sherpaWorker.js
CHANGED
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
import "./chunk-IR35BCLK.js";
|
|
19
19
|
import "./chunk-HU2SPFNG.js";
|
|
20
20
|
import "./chunk-KGPLIH7B.js";
|
|
21
|
-
import "./chunk-IU5DC4HP.js";
|
|
22
21
|
import "./chunk-3F2DTPBD.js";
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-5A75E4OT.js";
|
|
23
|
+
import "./chunk-IU5DC4HP.js";
|
|
24
24
|
import "./chunk-M2WBOQ2Q.js";
|
|
25
25
|
|
|
26
26
|
// src/whisper/sherpaWorker.ts
|
|
@@ -32,7 +32,7 @@ npx hyperframes auth refresh # force-refresh an OAuth token before a
|
|
|
32
32
|
npx hyperframes auth logout # clear the stored credential
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
Credential resolution order (first match wins): `HEYGEN_ACCESS_TOKEN` (an OAuth token a host app injects; never refreshed or saved), then the `hyperframes auth login` session in `~/.hyperframes/credentials` (refreshed when expired), then `HEYGEN_API_KEY`, then `HYPERFRAMES_API_KEY`, then a key saved with `auth login --api-key`. A signed-in session wins over an env key; the env key is used if HeyGen refuses to refresh the session or `HEYGEN_API_URL` points at a host app's gateway. `auth status` shows which one is in use; `auth logout` makes the env key win. `HYPERFRAMES_ENV=dev` selects the dev client, OAuth/API hosts and `~/.hyperframes/dev/credentials` together. `HYPERFRAMES_CONFIG_DIR` overrides the credentials root. `HEYGEN_API_URL` overrides the API host.
|
|
35
|
+
Credential resolution order (first match wins): `HEYGEN_ACCESS_TOKEN` (an OAuth token a host app injects; never refreshed or saved), then the `hyperframes auth login` session in `~/.hyperframes/credentials` (refreshed when expired), then `HEYGEN_API_KEY`, then `HYPERFRAMES_API_KEY`, then a key saved with `auth login --api-key`. A key that a received project's `.env` sets is used only when no login or key is saved, never in place of an expired session. A signed-in session wins over an env key; the env key is used if HeyGen refuses to refresh the session or `HEYGEN_API_URL` points at a host app's gateway. `auth status` shows which one is in use; `auth logout` makes the env key win. `HYPERFRAMES_ENV=dev` selects the dev client, OAuth/API hosts and `~/.hyperframes/dev/credentials` together. `HYPERFRAMES_CONFIG_DIR` overrides the credentials root. `HEYGEN_API_URL` overrides the API host.
|
|
36
36
|
|
|
37
37
|
## The render pipeline
|
|
38
38
|
|
|
@@ -67,8 +67,9 @@ project `.env` (auto-loaded, walks up ≤5 dirs) → an API key saved in
|
|
|
67
67
|
`Authorization: Bearer`; an API key as `X-Api-Key`; only OAuth includes
|
|
68
68
|
`X-HeyGen-Source: cli`. The server decides HyperFrames eligibility and charges;
|
|
69
69
|
explicit API keys use API billing. An expired or foreign OAuth session gives way
|
|
70
|
-
to an env key
|
|
71
|
-
a hint to run `npx hyperframes auth refresh
|
|
70
|
+
to an env key that a received project's `.env` did not set; without one it stops
|
|
71
|
+
rather than selecting a saved API key, with a hint to run `npx hyperframes auth refresh`
|
|
72
|
+
(or `auth login` for a session from another OAuth client).
|
|
72
73
|
|
|
73
74
|
```bash
|
|
74
75
|
# Only needed if you haven't run `npx hyperframes auth login`:
|
|
@@ -4,16 +4,16 @@ import { fetchMedia } from "../../../scripts/lib/media-fetch.mjs";
|
|
|
4
4
|
// usable source wins — a host gateway ($HEYGEN_API_BASE with its own
|
|
5
5
|
// $HEYGEN_API_KEY) → a host-injected OAuth $HEYGEN_ACCESS_TOKEN (Bearer) →
|
|
6
6
|
// the live login in ~/.hyperframes/credentials → $HEYGEN_API_KEY /
|
|
7
|
-
// $HYPERFRAMES_API_KEY
|
|
8
|
-
//
|
|
9
|
-
// never to the saved API key ($HYPERFRAMES_CONFIG_DIR overrides the dir).
|
|
7
|
+
// $HYPERFRAMES_API_KEY → the API key saved in ~/.hyperframes/credentials →
|
|
8
|
+
// a key from a nearby .env that came in with a received project. An expired login gives way to the person's own
|
|
9
|
+
// env key, never to the saved API key or a received .env key ($HYPERFRAMES_CONFIG_DIR overrides the dir).
|
|
10
10
|
// $HEYGEN_API_BASE moves every request to that host, as it does for the
|
|
11
11
|
// heygen CLI; plain HTTP needs $HEYGEN_ALLOW_HTTP=1, as there.
|
|
12
12
|
// Vendored so the skill ships standalone. Pure node.
|
|
13
13
|
|
|
14
|
-
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
14
|
+
import { lstatSync, mkdirSync, readFileSync, realpathSync, statSync, writeFileSync } from "node:fs";
|
|
15
15
|
import { homedir } from "node:os";
|
|
16
|
-
import { dirname, join, resolve } from "node:path";
|
|
16
|
+
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
17
17
|
|
|
18
18
|
export const HEYGEN_BASE = "https://api.heygen.com/v3";
|
|
19
19
|
|
|
@@ -79,6 +79,69 @@ const PROJECT_ENV_KEYS = new Set([
|
|
|
79
79
|
"DO_NOT_TRACK",
|
|
80
80
|
]);
|
|
81
81
|
|
|
82
|
+
const projectEnvValues = new Map();
|
|
83
|
+
let projectKeyNoted = false;
|
|
84
|
+
|
|
85
|
+
function isFile(path) {
|
|
86
|
+
try {
|
|
87
|
+
return statSync(path).isFile();
|
|
88
|
+
} catch {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// The CLI's received-files rule: a received-files record at or above `dir` that lists the file
|
|
94
|
+
// (by path or as the same file on disk), or that cannot be read, makes it received.
|
|
95
|
+
function recordFiles(root, ownFolder) {
|
|
96
|
+
const record = join(root, ".hyperframes", "received-files.json");
|
|
97
|
+
if (!ownFolder && !isFile(record)) return null;
|
|
98
|
+
try {
|
|
99
|
+
return { files: JSON.parse(readFileSync(record, "utf8")).files };
|
|
100
|
+
} catch (error) {
|
|
101
|
+
return ownFolder && ["ENOENT", "ENOTDIR"].includes(error.code) ? null : { files: undefined };
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function fileIdentity(path) {
|
|
106
|
+
try {
|
|
107
|
+
const stat = lstatSync(path, { bigint: true });
|
|
108
|
+
return stat.ino === 0n ? null : `${stat.dev}:${stat.ino}`;
|
|
109
|
+
} catch {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function listsEnvFile(files, root, start, envIdentity) {
|
|
115
|
+
if (!Array.isArray(files)) return true;
|
|
116
|
+
const key = relative(root, join(start, ".env")).split(sep).join("/").normalize("NFC");
|
|
117
|
+
return files.some((file) => {
|
|
118
|
+
const entry = String(file).normalize("NFC");
|
|
119
|
+
return (
|
|
120
|
+
entry === key || (envIdentity !== null && fileIdentity(join(root, entry)) === envIdentity)
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function receivedEnvFile(dir) {
|
|
126
|
+
let start;
|
|
127
|
+
try {
|
|
128
|
+
start = realpathSync(dir);
|
|
129
|
+
} catch {
|
|
130
|
+
start = resolve(dir);
|
|
131
|
+
}
|
|
132
|
+
const envIdentity = fileIdentity(join(dir, ".env"));
|
|
133
|
+
for (let root = start; ; root = dirname(root)) {
|
|
134
|
+
const record = recordFiles(root, root === start);
|
|
135
|
+
if (record && listsEnvFile(record.files, root, start, envIdentity)) return true;
|
|
136
|
+
if (dirname(root) === root) return false;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const receivedProjectKey = (name, key) => {
|
|
141
|
+
const set = projectEnvValues.get(name);
|
|
142
|
+
return set?.val === key && receivedEnvFile(set.dir);
|
|
143
|
+
};
|
|
144
|
+
|
|
82
145
|
// Walk up ≤5 dirs from startDir; load the first .env (shell env always wins).
|
|
83
146
|
export function loadEnvFromDir(startDir) {
|
|
84
147
|
let dir = resolve(startDir);
|
|
@@ -98,7 +161,10 @@ export function loadEnvFromDir(startDir) {
|
|
|
98
161
|
const end = val.indexOf(q, 1);
|
|
99
162
|
val = end > 0 ? val.slice(1, end) : val.slice(1);
|
|
100
163
|
}
|
|
101
|
-
if (PROJECT_ENV_KEYS.has(key) && !(key in process.env))
|
|
164
|
+
if (PROJECT_ENV_KEYS.has(key) && !(key in process.env)) {
|
|
165
|
+
process.env[key] = val;
|
|
166
|
+
projectEnvValues.set(key, { val, dir });
|
|
167
|
+
}
|
|
102
168
|
}
|
|
103
169
|
return;
|
|
104
170
|
}
|
|
@@ -108,7 +174,7 @@ export function loadEnvFromDir(startDir) {
|
|
|
108
174
|
}
|
|
109
175
|
}
|
|
110
176
|
|
|
111
|
-
// → { headers } | { expired: true } | null. Never throws.
|
|
177
|
+
// → { headers } | { expired: true, foreign? } | null. Never throws.
|
|
112
178
|
export function heygenCredential() {
|
|
113
179
|
const cred = resolveCredential();
|
|
114
180
|
return cred?.unreadable ? null : cred;
|
|
@@ -124,14 +190,25 @@ function resolveCredential() {
|
|
|
124
190
|
if (!heygenOwnBase()) return null;
|
|
125
191
|
const accessToken = process.env.HEYGEN_ACCESS_TOKEN;
|
|
126
192
|
if (accessToken) return { headers: { Authorization: `Bearer ${accessToken}` } };
|
|
127
|
-
const
|
|
193
|
+
const envNames = ["HEYGEN_API_KEY", "HYPERFRAMES_API_KEY"].filter((name) => process.env[name]);
|
|
194
|
+
const envName =
|
|
195
|
+
envNames.find((name) => !receivedProjectKey(name, process.env[name])) ?? envNames[0];
|
|
196
|
+
const envKey = envName && process.env[envName];
|
|
197
|
+
const fromProject = envName !== undefined && receivedProjectKey(envName, envKey);
|
|
128
198
|
const stored = storedCredential();
|
|
129
|
-
// A live login wins over an env key; an expired, foreign or unreadable store gives way to
|
|
199
|
+
// A live login wins over an env key; an expired, foreign or unreadable store gives way only to the person's own.
|
|
130
200
|
if (stored?.headers && "Authorization" in stored.headers) return stored;
|
|
131
|
-
|
|
201
|
+
if (!envKey || (fromProject && stored)) return stored;
|
|
202
|
+
if (fromProject && !projectKeyNoted) {
|
|
203
|
+
projectKeyNoted = true;
|
|
204
|
+
process.stderr.write(
|
|
205
|
+
`[hyperframes] Using ${envName} from this folder's .env: generated media goes to that key's HeyGen account.\n`,
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
return { headers: { "X-Api-Key": envKey } };
|
|
132
209
|
}
|
|
133
210
|
|
|
134
|
-
// The credential saved in ~/.hyperframes/credentials: { headers } | { expired: true } | { unreadable } | null.
|
|
211
|
+
// The credential saved in ~/.hyperframes/credentials: { headers } | { expired: true, foreign? } | { unreadable } | null.
|
|
135
212
|
function storedCredential() {
|
|
136
213
|
const root = process.env.HYPERFRAMES_CONFIG_DIR || join(homedir(), ".hyperframes");
|
|
137
214
|
const file = join(root, ...(process.env.HYPERFRAMES_ENV === "dev" ? ["dev"] : []), "credentials");
|
|
@@ -144,13 +221,12 @@ function storedCredential() {
|
|
|
144
221
|
if (!raw) return null;
|
|
145
222
|
if (!raw.startsWith("{")) return { headers: { "X-Api-Key": raw } };
|
|
146
223
|
|
|
147
|
-
// A malformed credentials file (partial write
|
|
148
|
-
// "no credential", not crash the engine at startup.
|
|
224
|
+
// A malformed credentials file (partial write) is unreadable, not a crash at startup.
|
|
149
225
|
let cred;
|
|
150
226
|
try {
|
|
151
227
|
cred = JSON.parse(raw);
|
|
152
228
|
} catch {
|
|
153
|
-
return
|
|
229
|
+
return { unreadable: { file, code: "not valid JSON" } };
|
|
154
230
|
}
|
|
155
231
|
const oauth = cred.oauth;
|
|
156
232
|
if (oauth?.access_token) {
|
|
@@ -162,7 +238,7 @@ function storedCredential() {
|
|
|
162
238
|
oauth.client_id !== expectedClient ||
|
|
163
239
|
oauth.token_endpoint !== expectedTokenEndpoint
|
|
164
240
|
)
|
|
165
|
-
return { expired: true };
|
|
241
|
+
return { expired: true, foreign: true };
|
|
166
242
|
const expired = oauth.expires_at && new Date(oauth.expires_at).getTime() - 60_000 < Date.now();
|
|
167
243
|
if (!expired) return { headers: { Authorization: `Bearer ${oauth.access_token}` } };
|
|
168
244
|
return { expired: true };
|
|
@@ -198,6 +274,10 @@ export function heygenAuthHeaders() {
|
|
|
198
274
|
throw new Error(
|
|
199
275
|
`HeyGen credentials at ${cred.unreadable.file} can't be read (${cred.unreadable.code}) — fix or remove that path, then run \`npx hyperframes auth login\``,
|
|
200
276
|
);
|
|
277
|
+
if (cred?.foreign)
|
|
278
|
+
throw new Error(
|
|
279
|
+
"The saved HeyGen login belongs to another OAuth client or environment — run `npx hyperframes auth login`",
|
|
280
|
+
);
|
|
201
281
|
if (cred?.expired)
|
|
202
282
|
throw new Error(
|
|
203
283
|
"HeyGen OAuth token expired — run `npx hyperframes auth refresh` (or `npx hyperframes auth login`)",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
|
-
import { mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { linkSync, mkdirSync, mkdtempSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { createServer } from "node:http";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join } from "node:path";
|
|
@@ -161,6 +161,196 @@ test("a live login wins over HEYGEN_API_KEY; an expired one gives way to it", ()
|
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
163
|
|
|
164
|
+
// Runs fn(dir, notes) with a temp credentials dir and a project whose .env sets name=key.
|
|
165
|
+
function withProjectEnv(key, received, fn, name = "HEYGEN_API_KEY") {
|
|
166
|
+
withCleanHeygenEnv(() => {
|
|
167
|
+
const dir = mkdtempSync(join(tmpdir(), "heygen-cred-"));
|
|
168
|
+
const project = mkdtempSync(join(tmpdir(), "heygen-env-"));
|
|
169
|
+
const write = process.stderr.write;
|
|
170
|
+
const notes = [];
|
|
171
|
+
process.stderr.write = (line) => notes.push(String(line));
|
|
172
|
+
try {
|
|
173
|
+
process.env.HYPERFRAMES_CONFIG_DIR = dir;
|
|
174
|
+
writeFileSync(join(project, ".env"), `${name}=${key}\n`);
|
|
175
|
+
if (received !== undefined) {
|
|
176
|
+
mkdirSync(join(project, ".hyperframes"));
|
|
177
|
+
writeFileSync(join(project, ".hyperframes", "received-files.json"), received);
|
|
178
|
+
}
|
|
179
|
+
loadEnvFromDir(project);
|
|
180
|
+
fn(dir, notes);
|
|
181
|
+
} finally {
|
|
182
|
+
process.stderr.write = write;
|
|
183
|
+
rmSync(dir, { recursive: true, force: true });
|
|
184
|
+
rmSync(project, { recursive: true, force: true });
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
test("a person's own project .env key stays ahead of the saved API key", () => {
|
|
190
|
+
withProjectEnv("hg_own", undefined, (dir, notes) => {
|
|
191
|
+
writeFileSync(join(dir, "credentials"), JSON.stringify({ api_key: "saved-wallet" }));
|
|
192
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_own" } });
|
|
193
|
+
assert.deepEqual(notes, []);
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
for (const [why, record] of [
|
|
198
|
+
["lists it", JSON.stringify({ files: [".env"] })],
|
|
199
|
+
["cannot be read", "{oops"],
|
|
200
|
+
]) {
|
|
201
|
+
test(`a received .env key gives way to the saved API key when the record ${why}`, () => {
|
|
202
|
+
withProjectEnv("hg_received", record, (dir) => {
|
|
203
|
+
writeFileSync(join(dir, "credentials"), JSON.stringify({ api_key: "saved-wallet" }));
|
|
204
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "saved-wallet" } });
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
for (const [receivedName, shellName] of [
|
|
210
|
+
["HEYGEN_API_KEY", "HYPERFRAMES_API_KEY"],
|
|
211
|
+
["HYPERFRAMES_API_KEY", "HEYGEN_API_KEY"],
|
|
212
|
+
]) {
|
|
213
|
+
test(`the shell's ${shellName} wins over a received .env's ${receivedName}, with or without a saved key`, () => {
|
|
214
|
+
withProjectEnv(
|
|
215
|
+
"hg_received",
|
|
216
|
+
JSON.stringify({ files: [".env"] }),
|
|
217
|
+
(dir) => {
|
|
218
|
+
process.env[shellName] = "hg_shell";
|
|
219
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_shell" } });
|
|
220
|
+
writeFileSync(join(dir, "credentials"), JSON.stringify({ api_key: "saved-wallet" }));
|
|
221
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_shell" } });
|
|
222
|
+
},
|
|
223
|
+
receivedName,
|
|
224
|
+
);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Loads a project .env with HEYGEN_API_KEY=hg_received and a saved key; arrange(root, project) places the record.
|
|
229
|
+
function receivedBy(arrange, load = (project) => project) {
|
|
230
|
+
return withCleanHeygenEnv(() => {
|
|
231
|
+
const root = mkdtempSync(join(tmpdir(), "heygen-rec-"));
|
|
232
|
+
const project = join(root, "real", "p");
|
|
233
|
+
mkdirSync(project, { recursive: true });
|
|
234
|
+
writeFileSync(join(project, ".env"), "HEYGEN_API_KEY=hg_received\n");
|
|
235
|
+
process.env.HYPERFRAMES_CONFIG_DIR = join(root, "cred");
|
|
236
|
+
mkdirSync(process.env.HYPERFRAMES_CONFIG_DIR);
|
|
237
|
+
writeFileSync(join(root, "cred", "credentials"), JSON.stringify({ api_key: "saved-wallet" }));
|
|
238
|
+
try {
|
|
239
|
+
arrange(root, project);
|
|
240
|
+
loadEnvFromDir(load(project, root));
|
|
241
|
+
return heygenCredential().headers["X-Api-Key"];
|
|
242
|
+
} finally {
|
|
243
|
+
rmSync(root, { recursive: true, force: true });
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
test(
|
|
249
|
+
"a received .env reached through a linked folder is still received",
|
|
250
|
+
{ skip: process.platform === "win32" },
|
|
251
|
+
() => {
|
|
252
|
+
const key = receivedBy(
|
|
253
|
+
(root, project) => {
|
|
254
|
+
mkdirSync(join(root, "real", ".hyperframes"));
|
|
255
|
+
writeFileSync(
|
|
256
|
+
join(root, "real", ".hyperframes", "received-files.json"),
|
|
257
|
+
JSON.stringify({ files: ["p/.env"] }),
|
|
258
|
+
);
|
|
259
|
+
symlinkSync(project, join(root, "link"));
|
|
260
|
+
},
|
|
261
|
+
(_project, root) => join(root, "link"),
|
|
262
|
+
);
|
|
263
|
+
assert.equal(key, "saved-wallet");
|
|
264
|
+
},
|
|
265
|
+
);
|
|
266
|
+
|
|
267
|
+
test("a received .env listed under another path to the same file is received", () => {
|
|
268
|
+
const key = receivedBy((_root, project) => {
|
|
269
|
+
mkdirSync(join(project, ".hyperframes"));
|
|
270
|
+
linkSync(join(project, ".env"), join(project, "copy.env"));
|
|
271
|
+
writeFileSync(
|
|
272
|
+
join(project, ".hyperframes", "received-files.json"),
|
|
273
|
+
JSON.stringify({ files: ["copy.env"] }),
|
|
274
|
+
);
|
|
275
|
+
});
|
|
276
|
+
assert.equal(key, "saved-wallet");
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
test("an unreadable record in the project's own folder counts its .env as received", () => {
|
|
280
|
+
const key = receivedBy((_root, project) => {
|
|
281
|
+
mkdirSync(join(project, ".hyperframes", "received-files.json"), { recursive: true });
|
|
282
|
+
});
|
|
283
|
+
assert.equal(key, "saved-wallet");
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
test("a received .env key still works with no saved credential, and is named once", () => {
|
|
287
|
+
withProjectEnv("hg_received", JSON.stringify({ files: [".env"] }), (_dir, notes) => {
|
|
288
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_received" } });
|
|
289
|
+
heygenCredential();
|
|
290
|
+
assert.deepEqual(notes, [
|
|
291
|
+
"[hyperframes] Using HEYGEN_API_KEY from this folder's .env: generated media goes to that key's HeyGen account.\n",
|
|
292
|
+
]);
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
for (const [why, oauth, state, hint] of [
|
|
297
|
+
[
|
|
298
|
+
"expired",
|
|
299
|
+
{ client_id: "Zg3LF4FCLoeJoGs2YqMtZ17g", expires_at: "2000-01-01T00:00:00Z" },
|
|
300
|
+
{ expired: true },
|
|
301
|
+
/OAuth token expired — run `npx hyperframes auth refresh`/,
|
|
302
|
+
],
|
|
303
|
+
[
|
|
304
|
+
"from another client",
|
|
305
|
+
{ client_id: "shared-heygen-client", expires_at: "2099-01-01T00:00:00Z" },
|
|
306
|
+
{ expired: true, foreign: true },
|
|
307
|
+
/another OAuth client or environment — run `npx hyperframes auth login`/,
|
|
308
|
+
],
|
|
309
|
+
]) {
|
|
310
|
+
test(`a received .env key never replaces a saved login that is ${why}`, () => {
|
|
311
|
+
withProjectEnv("hg_received", JSON.stringify({ files: [".env"] }), (dir, notes) => {
|
|
312
|
+
const login = {
|
|
313
|
+
token_endpoint: "https://api2.heygen.com/v1/oauth/token",
|
|
314
|
+
access_token: "at_login",
|
|
315
|
+
...oauth,
|
|
316
|
+
};
|
|
317
|
+
writeFileSync(join(dir, "credentials"), JSON.stringify({ oauth: login }));
|
|
318
|
+
assert.deepEqual(heygenCredential(), state);
|
|
319
|
+
assert.throws(() => heygenAuthHeaders(), hint);
|
|
320
|
+
assert.deepEqual(notes, []);
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
test("a malformed credentials file refuses a received .env key and says to fix that file", () => {
|
|
326
|
+
withProjectEnv("hg_received", JSON.stringify({ files: [".env"] }), (dir, notes) => {
|
|
327
|
+
writeFileSync(join(dir, "credentials"), "{not valid");
|
|
328
|
+
assert.equal(heygenCredential(), null);
|
|
329
|
+
assert.throws(() => heygenAuthHeaders(), /can't be read \(not valid JSON\)/);
|
|
330
|
+
assert.deepEqual(notes, []);
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
test("a person's own project .env key stands in for a malformed credentials file", () => {
|
|
335
|
+
withProjectEnv("hg_own", undefined, (dir) => {
|
|
336
|
+
writeFileSync(join(dir, "credentials"), "{not valid");
|
|
337
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_own" } });
|
|
338
|
+
});
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
test("a person's own project .env key stands in for a saved login that expired", () => {
|
|
342
|
+
withProjectEnv("hg_own", undefined, (dir) => {
|
|
343
|
+
const login = {
|
|
344
|
+
client_id: "Zg3LF4FCLoeJoGs2YqMtZ17g",
|
|
345
|
+
token_endpoint: "https://api2.heygen.com/v1/oauth/token",
|
|
346
|
+
access_token: "at_login",
|
|
347
|
+
expires_at: "2000-01-01T00:00:00Z",
|
|
348
|
+
};
|
|
349
|
+
writeFileSync(join(dir, "credentials"), JSON.stringify({ oauth: login }));
|
|
350
|
+
assert.deepEqual(heygenCredential(), { headers: { "X-Api-Key": "hg_own" } });
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
|
|
164
354
|
test("heygenAuthMethod returns api_key for an env API key, without tagging headers", () => {
|
|
165
355
|
withCleanHeygenEnv(() => {
|
|
166
356
|
process.env.HEYGEN_API_KEY = "hg_test";
|
|
@@ -222,7 +412,7 @@ test("an expired or foreign OAuth login never falls back to a saved API wallet",
|
|
|
222
412
|
credential.oauth.expires_at = "2099-01-01T00:00:00Z";
|
|
223
413
|
credential.oauth.client_id = "shared-heygen-client";
|
|
224
414
|
writeFileSync(join(dir, "credentials"), JSON.stringify(credential));
|
|
225
|
-
assert.deepEqual(heygenCredential(), { expired: true });
|
|
415
|
+
assert.deepEqual(heygenCredential(), { expired: true, foreign: true });
|
|
226
416
|
} finally {
|
|
227
417
|
rmSync(dir, { recursive: true, force: true });
|
|
228
418
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Signing in
|
|
6
6
|
|
|
7
|
-
`npx hyperframes auth status` says what is signed in. The credential is read in this order: a host app's `HEYGEN_ACCESS_TOKEN`, the session `npx hyperframes auth login` saved in `~/.hyperframes/credentials`, `HEYGEN_API_KEY`, `HYPERFRAMES_API_KEY`, then an API key saved with `auth login --api-key`. A signed-in session wins over an env key; the env key is used when HeyGen refuses to refresh the session. `heygen auth login` is a separate sign-in that only the `heygen` CLI reads.
|
|
7
|
+
`npx hyperframes auth status` says what is signed in. The credential is read in this order: a host app's `HEYGEN_ACCESS_TOKEN`, the session `npx hyperframes auth login` saved in `~/.hyperframes/credentials`, `HEYGEN_API_KEY`, `HYPERFRAMES_API_KEY`, then an API key saved with `auth login --api-key`. A key that a received project's `.env` sets is used only when no login or key is saved, never in place of an expired session. A signed-in session wins over an env key; the env key is used when HeyGen refuses to refresh the session. `heygen auth login` is a separate sign-in that only the `heygen` CLI reads.
|
|
8
8
|
|
|
9
9
|
| Credential | Pays with | Covers |
|
|
10
10
|
| -------------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------- |
|