hyperframes 0.9.32 → 0.9.34
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/bin/hyperframes.mjs +10 -0
- package/dist/{add-HYI4YJC5.js → add-NBOJ2UA3.js} +18 -17
- package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-3JOLQXTX.js} +11 -11
- package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-VI5CFYCR.js} +10 -10
- package/dist/api.js +49 -48
- package/dist/{appHistory-WZIHFCPK.js → appHistory-535MKSWI.js} +2 -2
- package/dist/{asset-7FG3M3FQ.js → asset-NYULKN5A.js} +2 -2
- package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-AWJMEMX7.js} +12 -12
- package/dist/{audio-R6ZG62DU.js → audio-QN5YYFOA.js} +31 -30
- package/dist/{auth-IPDYZXOG.js → auth-LHUBRGIH.js} +4 -4
- package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-5M3JGEFS.js} +3 -3
- package/dist/{avatars-A45VFUZ4.js → avatars-DAB2KILV.js} +19 -18
- package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-3NQOCEDM.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-VBSYVQA7.js → batchRender-EPRIJZVT.js} +4 -4
- package/dist/{beats-UPJ3KANG.js → beats-ZCPQEIFG.js} +14 -14
- package/dist/{benchmark-2RWYJGL2.js → benchmark-7OVOBGQX.js} +11 -11
- package/dist/{billing-MD66MJTA.js → billing-7K6S23FP.js} +19 -18
- package/dist/{browser-JXCS62NX.js → browser-CP76THCA.js} +10 -9
- package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-MRCRI676.js} +1 -1
- package/dist/{capture-M6DT5WZT.js → capture-B4B72PIK.js} +4 -4
- package/dist/{capture-DJ4WRP62.js → capture-VAE27MNW.js} +51 -31
- package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-YAOQTG6R.js} +18 -18
- package/dist/{captureFile-Y2ZMB7HK.js → captureFile-P4BDKVJH.js} +2 -2
- package/dist/{catalog-GW45OWKU.js → catalog-TUZGNHN6.js} +18 -17
- package/dist/{catch-up-YKJQ4IYC.js → catch-up-GMUF3JXI.js} +11 -11
- package/dist/{check-7QTKMPGA.js → check-CHCV573Z.js} +51 -51
- package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-JJZN37WT.js} +19 -19
- package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-SK7GFN7U.js} +44 -44
- package/dist/{chunk-X6DWLN55.js → chunk-2HDVXVUA.js} +8 -4
- package/dist/{chunk-JMV63CNH.js → chunk-2JXJQ3ZQ.js} +2 -2
- package/dist/{chunk-6BI6URO2.js → chunk-2JZU6DYH.js} +5 -4
- package/dist/{chunk-SXOIG6VG.js → chunk-2OP5HU5S.js} +284 -192
- package/dist/{chunk-KRWPTZBY.js → chunk-3FQYFVWA.js} +99 -25
- package/dist/{chunk-G7NKYELQ.js → chunk-3K4THQHY.js} +4 -4
- package/dist/{chunk-SIRYW7SY.js → chunk-3P4OYIBA.js} +2 -2
- package/dist/{chunk-WTO4DHBH.js → chunk-3XJ42WUG.js} +1 -1
- package/dist/{chunk-XPT4GC6X.js → chunk-45IPAGED.js} +7 -7
- package/dist/{chunk-HWMNSWEA.js → chunk-4MVWA7NJ.js} +6 -6
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-6MTSP2XE.js → chunk-4TQS6ZSL.js} +7 -7
- package/dist/{chunk-5GXMZIQZ.js → chunk-4WXLBRT5.js} +31 -22
- package/dist/{chunk-YIE5FU73.js → chunk-4Y4VYZRO.js} +37 -3
- package/dist/{chunk-K72X2YXR.js → chunk-52CUHVEA.js} +4 -4
- package/dist/{chunk-TLUDJLBN.js → chunk-55I56MXF.js} +1 -1
- package/dist/{chunk-2T7EDEKE.js → chunk-5QPYUTV3.js} +8 -8
- package/dist/{chunk-WLNQAJQC.js → chunk-5SXAEHZT.js} +2 -2
- package/dist/{chunk-77UB5EHM.js → chunk-5WK76INI.js} +1 -1
- package/dist/{chunk-5VN7ZXJR.js → chunk-5ZTB6QIJ.js} +3 -3
- package/dist/{chunk-ZIYXPDKY.js → chunk-65PFUPLX.js} +1 -1
- package/dist/{chunk-LHFBKUVY.js → chunk-6FP6HBG4.js} +2 -2
- package/dist/{chunk-YCTWMO3G.js → chunk-6HG3XABE.js} +1 -1
- package/dist/{chunk-LJMTEZOP.js → chunk-6K5KVYOQ.js} +16 -16
- package/dist/{chunk-34S7GYVK.js → chunk-6OYPVALW.js} +15 -8
- package/dist/{chunk-G2XAFJ2B.js → chunk-74PKHC3W.js} +1 -1
- package/dist/{chunk-N6Y645MX.js → chunk-7C6K5WFB.js} +1 -1
- package/dist/{chunk-M6FNCANA.js → chunk-7E5HPNMD.js} +1 -1
- package/dist/{chunk-CHJGVW5W.js → chunk-7YBRRU5W.js} +4 -11
- package/dist/{chunk-2NMBD5AH.js → chunk-7YOJPNDT.js} +1 -1
- package/dist/{chunk-GCJRV7LU.js → chunk-A2YCAF35.js} +23 -37
- package/dist/{chunk-E5S4QMX7.js → chunk-AG6L5CUE.js} +2 -2
- package/dist/{chunk-SVI2CJ6R.js → chunk-AOTAYP5E.js} +1 -1
- package/dist/{chunk-VB3JZKMN.js → chunk-ASORF7UJ.js} +31 -10
- package/dist/{chunk-XB7HE2R5.js → chunk-AUM475MS.js} +3 -3
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-I3QXWJ7V.js → chunk-BDFD3C3V.js} +7 -7
- package/dist/{chunk-YAS347ZS.js → chunk-BLII22FU.js} +1 -1
- package/dist/{chunk-CMYUPVMI.js → chunk-BX4GM3IV.js} +2 -2
- package/dist/{chunk-D7NNNL2K.js → chunk-BZPRG5N5.js} +18 -18
- package/dist/{chunk-H4C3P2KV.js → chunk-C3TYMGWE.js} +3 -3
- package/dist/{chunk-6NNLDCX4.js → chunk-C62LSZVJ.js} +1 -1
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-CKJDY6EK.js → chunk-DC7AOIHN.js} +1 -1
- package/dist/{chunk-GBIASKIH.js → chunk-DH34XRVW.js} +1 -1
- package/dist/{chunk-6SNGKC6B.js → chunk-DLBFLOEU.js} +1 -1
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-Z6X64P6C.js → chunk-DTM7HGP4.js} +6 -6
- package/dist/{chunk-2W4VQ3YZ.js → chunk-E53F4CP6.js} +2 -2
- package/dist/{chunk-3R2X2VKB.js → chunk-ECKXTBRB.js} +6 -4
- package/dist/{chunk-RCRUWNQ4.js → chunk-EDQF36I7.js} +3 -3
- package/dist/{chunk-GWSCUFGL.js → chunk-EWBLIDHD.js} +11 -9
- package/dist/{chunk-BMDABBHG.js → chunk-FEWHHDFA.js} +5 -17
- package/dist/{chunk-EBG5RCPM.js → chunk-FILLRGVO.js} +4 -4
- package/dist/{chunk-3HT3UGF2.js → chunk-FRY73NRV.js} +1 -1
- package/dist/{chunk-KAG5KXNO.js → chunk-FS4XHCSU.js} +1 -1
- package/dist/{chunk-GOMTMQRT.js → chunk-G6ME77PU.js} +1 -1
- package/dist/{chunk-GTHRXU37.js → chunk-GJB5VR44.js} +18 -18
- package/dist/{chunk-G6JLFSII.js → chunk-GXGGPZXD.js} +4 -4
- package/dist/chunk-H6323NVP.js +453 -0
- package/dist/chunk-HYTD4CIO.js +57 -0
- package/dist/{chunk-P7TCIUP2.js → chunk-I2GYLBJJ.js} +4 -4
- package/dist/{chunk-BA3EQ2KL.js → chunk-IVMYWHFE.js} +3 -3
- package/dist/{chunk-HDCVU64B.js → chunk-IX6BFRED.js} +3 -2
- package/dist/{chunk-W3HNLDK6.js → chunk-JJUVQYXL.js} +2 -2
- package/dist/{chunk-HXQDDCGY.js → chunk-JQATOGQQ.js} +2 -2
- package/dist/{chunk-2Z42EUHG.js → chunk-JVDYIUFD.js} +2 -2
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-SFPIVVUE.js → chunk-K4TEEYGN.js} +2 -2
- package/dist/{chunk-KFXHBP2E.js → chunk-K5BPLZOP.js} +2 -2
- package/dist/{chunk-H7AJLEBR.js → chunk-K6EOKQ6J.js} +8 -8
- package/dist/{chunk-Y3YHDU7T.js → chunk-KCL77FXI.js} +1 -1
- package/dist/{chunk-PXDRW3QN.js → chunk-LB6VJTM4.js} +1 -1
- package/dist/{chunk-EXW2LV4K.js → chunk-LCQT4S43.js} +248 -62
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-N7C7U3ZR.js → chunk-M425BL2U.js} +22 -11
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-M6LAGO6O.js → chunk-NAKQS3EJ.js} +3 -3
- package/dist/{chunk-TTSLKH63.js → chunk-NMMPHHN7.js} +3 -3
- package/dist/{chunk-UWMOMAYI.js → chunk-O2S5HR7Y.js} +49 -12
- package/dist/{chunk-D6BV6TTI.js → chunk-OKN7E77Z.js} +1 -1
- package/dist/{chunk-XH6LGDIB.js → chunk-PDE6XAIJ.js} +4 -4
- package/dist/{chunk-4FTJE22M.js → chunk-PNBWAA3E.js} +2 -2
- package/dist/{chunk-AOQRVS63.js → chunk-PVHNBJCI.js} +9 -7
- package/dist/{chunk-3PHCFSPD.js → chunk-PWSTB75B.js} +2 -2
- package/dist/{chunk-PVSRPNIV.js → chunk-PXWPBLEN.js} +2 -2
- package/dist/{chunk-IEEIPTDW.js → chunk-PYZVKGW5.js} +1 -1
- package/dist/{chunk-5FFYMVRD.js → chunk-Q2G4ERQU.js} +2 -2
- package/dist/{chunk-YMIEJZB6.js → chunk-QDSALYDV.js} +4 -4
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-XDRSEU2I.js → chunk-R3C62AP3.js} +4 -4
- package/dist/{chunk-L72MPEM2.js → chunk-RJJ5NVSQ.js} +1 -1
- package/dist/{chunk-KXOKZJBZ.js → chunk-RSQTFDMS.js} +13 -13
- package/dist/{chunk-6RFCS4IU.js → chunk-RYJXT2AS.js} +9 -7
- package/dist/{chunk-GJUL3PRV.js → chunk-S3HTROSO.js} +3 -3
- package/dist/{chunk-AZ2QJETV.js → chunk-SAIPA3QY.js} +1 -1
- package/dist/{chunk-4CSZZXL6.js → chunk-SDBFTY6V.js} +3 -3
- package/dist/{chunk-TZH6HNZH.js → chunk-SG4OW2HV.js} +2 -2
- package/dist/{chunk-AWT5FHTN.js → chunk-T4YI2YLF.js} +1 -1
- package/dist/{chunk-TVQNABOI.js → chunk-T7O62YTY.js} +1 -1
- package/dist/chunk-TDOJW7Z2.js +5053 -0
- package/dist/{chunk-3367VNGK.js → chunk-TGGYHFTP.js} +2 -2
- package/dist/{chunk-NNOAOQLT.js → chunk-TGK7LUEV.js} +2 -2
- package/dist/chunk-TLU5DPES.js +560 -0
- package/dist/{chunk-LXIEKLAC.js → chunk-TOLY2QK2.js} +6 -6
- package/dist/chunk-UFKWSLJ5.js +392 -0
- package/dist/{chunk-PXY3JZP2.js → chunk-UGWY7PFQ.js} +2 -2
- package/dist/{chunk-REJ4NIBY.js → chunk-VJSKNQTM.js} +1 -1
- package/dist/{chunk-NXSKZE3C.js → chunk-VW35U2LJ.js} +2 -2
- package/dist/{chunk-JZIEZCQM.js → chunk-VZO3BUTW.js} +5 -12
- package/dist/{chunk-TFBPCJPG.js → chunk-W6AXNWGE.js} +1 -1
- package/dist/{chunk-262ADJJN.js → chunk-WC2XQ4NR.js} +1 -1
- package/dist/{chunk-WXOOAAT4.js → chunk-WLB2D2OJ.js} +36 -4
- package/dist/{chunk-P5E3RHW3.js → chunk-WWT32C2M.js} +3 -3
- package/dist/{chunk-ADP2GIBS.js → chunk-XEUTASNL.js} +2 -2
- package/dist/{chunk-MYFAVVA6.js → chunk-YCXNWQ3B.js} +32 -32
- package/dist/{chunk-JHX76QFC.js → chunk-YMTLKSXO.js} +1 -1
- package/dist/{chunk-KG3TONXU.js → chunk-Z222HDGC.js} +9 -9
- package/dist/chunk-Z3ZLN5VR.js +3890 -0
- package/dist/{chunk-EJPWGGPK.js → chunk-Z64I7KJZ.js} +5340 -5087
- package/dist/{chunk-LBQQNNRC.js → chunk-ZWLFWYHR.js} +1 -1
- package/dist/{clean-MJBET4EN.js → clean-N7RLS5LN.js} +29 -29
- package/dist/cli.js +70 -68
- package/dist/{cloud-Z4Q76MLS.js → cloud-4PO7BA26.js} +8 -7
- package/dist/{cloud-WEDQYHZE.js → cloud-W3DHH6EB.js} +4 -4
- package/dist/{cloudrun-2KGSRAKA.js → cloudrun-YIAPIPOG.js} +7 -7
- package/dist/{compare-MJKWQOD7.js → compare-GCWIIUGY.js} +43 -43
- package/dist/{compiler-ETXRTUQC.js → compiler-L3BJI43E.js} +8 -6
- package/dist/{component-PZGKEJ6L.js → component-C4VYDMZ4.js} +3 -3
- package/dist/{compositions-N3FEEWH7.js → compositions-5P4BZQJA.js} +16 -16
- package/dist/{contactSheet-HZMP42FZ.js → contactSheet-ROMTQQ6Y.js} +3 -3
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-MWABBM7Q.js → curve-IMXKUBAO.js} +15 -15
- package/dist/{cuts-BQFSSNY7.js → cuts-PRBLX5HH.js} +16 -16
- package/dist/{delete-HPHGJABK.js → delete-QYWDRFO3.js} +11 -10
- package/dist/{deploy-JY2QOB5F.js → deploy-DGEPSTOJ.js} +7 -7
- package/dist/{describeProject-S6AGYZWL.js → describeProject-WS4TR7VF.js} +11 -11
- package/dist/{destroy-AZK7J4IR.js → destroy-2KSDD4KU.js} +6 -6
- package/dist/{deterministicFonts-2ZPRAI3C.js → deterministicFonts-D3HTAAN2.js} +3 -3
- package/dist/{diff-XDNFCAU4.js → diff-AAWRGZLX.js} +47 -46
- package/dist/{dist-6EE3Y4M7.js → dist-DJQRHSKZ.js} +4 -4
- package/dist/{dist-EYEYDD4F.js → dist-GJSMSEEL.js} +22 -18
- package/dist/{dist-TYGDYK56.js → dist-V2TLDLQL.js} +3 -3
- package/dist/{doctor-6IRSMKZD.js → doctor-CARXZUFN.js} +18 -18
- package/dist/{energy-VCJ2FJEF.js → energy-VMNGG2ND.js} +16 -16
- package/dist/{events-DNTIMCUM.js → events-4XIJRQIJ.js} +18 -18
- package/dist/{events-QQYBD7JM.js → events-LOPLHMOT.js} +4 -4
- package/dist/{events-M6A7BT3V.js → events-XX3DYSU4.js} +8 -8
- package/dist/execute-U7JKJERV.js +109 -0
- package/dist/{extract-X3IVXYHX.js → extract-KYFUTYDD.js} +19 -19
- package/dist/{face-MZHXKBDB.js → face-VQGUHRQL.js} +18 -18
- package/dist/{feedback-TAMGYFUO.js → feedback-UPWYWOQ3.js} +19 -18
- package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-RUOPT3JH.js} +10 -10
- package/dist/{figma-WMD7AR2S.js → figma-TO57RICW.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -16
- package/dist/{frames-OU2UOLBU.js → frames-4Y3X474I.js} +18 -18
- package/dist/{generate-6F6QEFXW.js → generate-BPID6U7D.js} +32 -31
- package/dist/{get-VVDO7DXG.js → get-JIJ46VI5.js} +11 -10
- package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-5ZJNSR7D.js} +10 -10
- package/dist/{grade-compare-O6LY2U73.js → grade-compare-YTBW7C65.js} +44 -44
- package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-OL7KF7SH.js} +11 -11
- package/dist/{help-XLSTTDHR.js → help-QPV26QI5.js} +2 -1
- package/dist/{history-DBCCWBDG.js → history-7UVGTZT3.js} +14 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +61 -61
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-E46BWAQ7.js → info-2VFXR7LJ.js} +18 -18
- package/dist/{init-23TG5W7S.js → init-JZ7CJQJE.js} +35 -35
- package/dist/{ink-6UFSNJRW.js → ink-SS7XOD7Y.js} +16 -16
- package/dist/{inspect-RKI6XACH.js → inspect-D5MBKDZZ.js} +41 -41
- package/dist/{installer-JWPK75BR.js → installer-UNC4BAFO.js} +7 -7
- package/dist/{keyframes-J65V5A2G.js → keyframes-7T2CVOM6.js} +14 -12
- package/dist/{lambda-RZSXXBJU.js → lambda-QVJFVSXL.js} +16 -16
- package/dist/{layout-RJQUOYWB.js → layout-5DF7VFWS.js} +41 -41
- package/dist/{lint-4TUHKKA2.js → lint-EWJHJKAI.js} +14 -14
- package/dist/{lintProject-R6RTBSCZ.js → lintProject-KBJU3L4C.js} +4 -4
- package/dist/{list-HOD2N4VS.js → list-DDLH5ZG5.js} +13 -12
- package/dist/{localPage-TC4NC3VL.js → localPage-MHAXFUGI.js} +11 -11
- package/dist/{login-NTOS3HKD.js → login-BJ4QUZT4.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-GC63E2I7.js → look-HNK2K33N.js} +16 -16
- package/dist/{manager-FICBET24.js → manager-FFLFDJZ6.js} +11 -11
- package/dist/{manager-IAXYSRG5.js → manager-VLO3FZC4.js} +2 -1
- package/dist/{measure-WTQCSQ55.js → measure-SE346MGF.js} +11 -11
- package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-KYPDRIBT.js} +18 -18
- package/dist/{media-use-K75FDXJ3.js → media-use-OJZHSNTK.js} +21 -10
- package/dist/{models-JKOA542M.js → models-KWSHPDZ5.js} +15 -15
- package/dist/{motionShot-A3TYKTQU.js → motionShot-HEROABIE.js} +24 -24
- package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-ZD5W37ZO.js} +14 -14
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-F6GI4TRA.js → open-7B6HT4EX.js} +19 -19
- package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-5AKE7TBH.js} +19 -19
- package/dist/{pipeline-7P7LGGQG.js → pipeline-UTVSWC4X.js} +13 -13
- package/dist/plan-SQ63IXQC.js +88 -0
- package/dist/{play-DYOZLKWX.js → play-NYBFE3GW.js} +32 -32
- package/dist/{preflight-VM4HSRBY.js → preflight-T23WHZP3.js} +12 -12
- package/dist/{present-IINIEZJC.js → present-FX22552Q.js} +26 -26
- package/dist/{preview-NJO2UXWJ.js → preview-ULBNMDXD.js} +63 -39
- package/dist/{probe-LQQHFX5Q.js → probe-62Z5C6VC.js} +16 -16
- package/dist/{producer-LH2SZHJ2.js → producer-X3KFL4QM.js} +1 -1
- package/dist/{projectConfig-BLACFLUW.js → projectConfig-JQ4IDYTU.js} +10 -10
- package/dist/{publication-NFF2BXIE.js → publication-YNIJIR6O.js} +5 -5
- package/dist/{publish-JST5Y4UR.js → publish-7TIGC7RV.js} +91 -31
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-WUBESLWN.js → remove-background-F3BD6WXD.js} +14 -14
- package/dist/{render-DA4V7CEE.js → render-BL6CAORF.js} +6 -6
- package/dist/{render-4KWUUC5H.js → render-CDWBVWJP.js} +91 -957
- package/dist/{render-R4VNR4E2.js → render-EOQOD2TJ.js} +54 -53
- package/dist/{render-batch-JMPG4RLT.js → render-batch-PDY2PXUZ.js} +6 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-PNIFIDIE.js → resolver-VBAVCFEP.js} +7 -7
- package/dist/{reverse-4NI7D2C3.js → reverse-3E6HUX5S.js} +1 -1
- package/dist/{run-FWBIBLYE.js → run-77Z3DLIP.js} +8 -7
- package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-XWWCRLGM.js} +13 -13
- package/dist/service-LJZQKQT6.js +68 -0
- package/dist/share-2CNP22KN.js +274 -0
- package/dist/{sherpa-W3BMN67E.js → sherpa-NPTMMQHQ.js} +18 -18
- package/dist/sherpaWorker.js +2 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +5 -2
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +20 -3
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +61 -3
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/doctor-browser.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +6 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +12 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +25 -6
- package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +37 -12
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +54 -18
- package/dist/skills/media-use/references/audio.md +2 -0
- package/dist/skills/media-use/references/operations.md +2 -1
- package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +22 -31
- package/dist/skills/media-use/scripts/lib/tts-local-provider.mjs +16 -11
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +34 -78
- package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +42 -18
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -17
- package/dist/{skills-KQQVUFGO.js → skills-7MQBUOOX.js} +11 -11
- package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-JAUXRXRH.js} +4 -4
- package/dist/{snapshot-VIEJQAUB.js → snapshot-D7DROQPF.js} +61 -61
- package/dist/{src-HHPRCLEW.js → src-26DWEOAT.js} +11 -9
- package/dist/{src-MQU5F7GJ.js → src-LJIVCW6M.js} +15 -15
- package/dist/{start-ZBNNVFMU.js → start-DF3U2VIG.js} +30 -29
- package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-NYH6MQHZ.js} +25 -25
- package/dist/{status-RBZJYT7T.js → status-5Q43GUYF.js} +26 -23
- package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-OdIlx7W3.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-XtPxZL3k.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-D1l7izdf.js → index-DTU1D-zj.js} +166 -166
- package/dist/studio/assets/{index-DFRbcd5J.js → index-DWZWPFkU.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-NVr8gRm5.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-EPZGLIWW.js → studio-api-ZYCEQPX2.js} +22 -18
- package/dist/{studioServer-YFQQ2ESJ.js → studioServer-W4RX3B7S.js} +451 -71
- package/dist/{sync-FRT55PVW.js → sync-LLH2GSSC.js} +16 -16
- package/dist/{synthesize-FR5KPBRP.js → synthesize-4A5ENXNO.js} +4 -3
- package/dist/{telemetry-HAPPFR7P.js → telemetry-RIQIM2PH.js} +8 -8
- package/dist/{templates-2IHYIWMA.js → templates-4HVTWNKO.js} +22 -21
- package/dist/{timeline-AY2F7BJF.js → timeline-ITIMTT27.js} +25 -25
- package/dist/{tokens-B3G257V3.js → tokens-ABTBM6UA.js} +2 -2
- package/dist/{transcribe-RJCILGPA.js → transcribe-6BA2MP2Y.js} +37 -36
- package/dist/{transcribe-EGQD32PT.js → transcribe-6LDBHZCZ.js} +14 -14
- package/dist/{tts-ZE776B4I.js → tts-P77F523Z.js} +1 -1
- package/dist/{update-XTFIGQKW.js → update-ODXFCK36.js} +13 -13
- package/dist/{updateCheck-M6YC52A4.js → updateCheck-E4U776B4.js} +5 -3
- package/dist/{upgrade-AKLIZKAO.js → upgrade-LSHVYMLH.js} +5 -5
- package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-PWQ2LDLE.js} +9 -9
- package/dist/{validate-YWSXJL54.js → validate-JHETNNBN.js} +33 -33
- package/dist/{video-I5DDNK3Y.js → video-D2D5YCDU.js} +12 -12
- package/dist/{voices-IBMJU73H.js → voices-34FMTOIX.js} +29 -28
- package/dist/warmCheck.js +51 -51
- package/package.json +2 -1
- package/dist/chunk-YAZQBB2S.js +0 -5049
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
ErrDeviceAuthFailed,
|
|
13
13
|
ErrInvalidStore,
|
|
14
14
|
ErrLoginChanged,
|
|
15
|
-
ErrLoginExpired,
|
|
16
|
-
ErrNotConfigured,
|
|
17
15
|
ErrRefreshFailed,
|
|
18
16
|
ErrUnauthenticated,
|
|
19
17
|
assertOAuthIdentity,
|
|
@@ -25,7 +23,7 @@ import {
|
|
|
25
23
|
resolveClientId,
|
|
26
24
|
revokeEndpoint,
|
|
27
25
|
tokenEndpoint
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DMW5SSUN.js";
|
|
29
27
|
import {
|
|
30
28
|
c
|
|
31
29
|
} from "./chunk-JCNPHRGX.js";
|
|
@@ -36,6 +34,215 @@ import {
|
|
|
36
34
|
normalizeErrorMessage
|
|
37
35
|
} from "./chunk-E63BDV4Z.js";
|
|
38
36
|
|
|
37
|
+
// src/auth/pkce.ts
|
|
38
|
+
import { createHash, randomBytes } from "crypto";
|
|
39
|
+
var VERIFIER_BYTES = 64;
|
|
40
|
+
function generatePkcePair() {
|
|
41
|
+
const verifier = base64UrlEncode(randomBytes(VERIFIER_BYTES));
|
|
42
|
+
const challenge = base64UrlEncode(createHash("sha256").update(verifier).digest());
|
|
43
|
+
return { verifier, challenge, method: "S256" };
|
|
44
|
+
}
|
|
45
|
+
function generateState() {
|
|
46
|
+
return base64UrlEncode(randomBytes(32));
|
|
47
|
+
}
|
|
48
|
+
function base64UrlEncode(buf) {
|
|
49
|
+
return buf.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/auth/loopback.ts
|
|
53
|
+
import { timingSafeEqual } from "crypto";
|
|
54
|
+
import { createServer } from "http";
|
|
55
|
+
|
|
56
|
+
// src/auth/callbackPage.ts
|
|
57
|
+
var MARK_A = "M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z";
|
|
58
|
+
var MARK_B = "M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z";
|
|
59
|
+
var STYLE = `:root{color-scheme:light dark;--bg:#f2f0ed;--ink:#1d1b18;--ink2:#5d5a55;--tile:#dff3ea;--tile-ink:#087a54;--bad:#fbe6e1;--bad-ink:#b3402e;--btn:#1d1b18;--btn-ink:#f2f0ed;--panel:#0c0c0e;--panel-ink:#f4f1ec}
|
|
60
|
+
@media(prefers-color-scheme:dark){:root{--bg:#201e1b;--ink:#f6f4f1;--ink2:#b5b1aa;--tile:#1f3a2f;--tile-ink:#37de91;--bad:#3a2420;--bad-ink:#f08a78;--btn:#f6f4f1;--btn-ink:#201e1b}}
|
|
61
|
+
*{box-sizing:border-box}html,body{height:100%;margin:0}
|
|
62
|
+
body{background:var(--bg);color:var(--ink);font:400 15px/1.45 "TT Norms",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
|
|
63
|
+
.col{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 48px max(32px,min(7vw,96px))}
|
|
64
|
+
.brand{position:absolute;top:28px;left:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;letter-spacing:-.01em}
|
|
65
|
+
.tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tile);color:var(--tile-ink);margin-bottom:20px}
|
|
66
|
+
.bad .tile{background:var(--bad);color:var(--bad-ink)}
|
|
67
|
+
h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
|
|
68
|
+
p{margin:10px 0 0;color:var(--ink2);max-width:360px;text-wrap:pretty}
|
|
69
|
+
code{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink2)}
|
|
70
|
+
.panel{margin:14px;border-radius:24px;background:var(--panel);color:var(--panel-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
|
|
71
|
+
.panel b{font-size:26px;font-weight:600;letter-spacing:-.01em}
|
|
72
|
+
.panel small{color:rgb(244 241 236/.58);font-size:14px;margin-top:-10px}
|
|
73
|
+
.badge{position:relative}
|
|
74
|
+
.chk{display:none;position:absolute;right:-8px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#37de91;place-items:center}
|
|
75
|
+
.ok .chk{display:grid}
|
|
76
|
+
@media(max-width:760px){body{grid-template-columns:1fr;grid-template-rows:auto auto}.col{padding:84px 24px 32px}.brand{left:24px}.panel{min-height:300px;margin:12px}}`;
|
|
77
|
+
var CHECK = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"/></svg>';
|
|
78
|
+
var CROSS = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>';
|
|
79
|
+
var CHK = '<span class="chk"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#0e1a14" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg></span>';
|
|
80
|
+
function mark(width, height, id) {
|
|
81
|
+
const gradient = (suffix, x1, y1, x2, y2) => `<linearGradient id="${suffix}${id}" gradientUnits="userSpaceOnUse" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"><stop offset="0" stop-color="#06E3FA"/><stop offset="1" stop-color="#4FDB5E"/></linearGradient>`;
|
|
82
|
+
return `<svg viewBox="4 22 92 56" width="${width}" height="${height}" aria-hidden="true"><defs>${gradient("a", "48.57", "25", "44.78", "71.94")}${gradient("b", "54.83", "73.84", "72.1", "32.89")}</defs><path fill="url(#a${id})" d="${MARK_A}"/><path fill="url(#b${id})" d="${MARK_B}"/></svg>`;
|
|
83
|
+
}
|
|
84
|
+
function escapeHtml(s) {
|
|
85
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
86
|
+
}
|
|
87
|
+
function page(args) {
|
|
88
|
+
const detail = args.detail ? `<p><code>${escapeHtml(args.detail)}</code></p>` : "";
|
|
89
|
+
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(args.title)}</title><style>${STYLE}</style></head><body class="${args.ok ? "ok" : "bad"}"><main class="col"><div class="brand">${mark(38, 23, "c")}<span>HyperFrames</span></div><div class="tile">${args.ok ? CHECK : CROSS}</div><h1>${escapeHtml(args.title)}</h1><p>${escapeHtml(args.text)}</p>${detail}</main><aside class="panel"><div class="badge">${mark(96, 58, "p")}${CHK}</div><b>HyperFrames</b><small>by HeyGen</small></aside></body></html>`;
|
|
90
|
+
}
|
|
91
|
+
function connectedPage() {
|
|
92
|
+
return page({
|
|
93
|
+
ok: true,
|
|
94
|
+
title: "You're connected",
|
|
95
|
+
text: "Return to your terminal. You can close this tab."
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function failurePage(code, description) {
|
|
99
|
+
if (code === "access_denied") {
|
|
100
|
+
return page({
|
|
101
|
+
ok: false,
|
|
102
|
+
title: "Not authorized",
|
|
103
|
+
text: "Nothing was connected. Run the login again from your terminal."
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return page({
|
|
107
|
+
ok: false,
|
|
108
|
+
title: "Couldn't connect",
|
|
109
|
+
text: description || "Something went wrong on the way back. Run the login again from your terminal.",
|
|
110
|
+
detail: code
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// src/auth/loopback.ts
|
|
115
|
+
var CALLBACK_PATH = "/oauth/callback";
|
|
116
|
+
var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
117
|
+
async function startLoopback(opts) {
|
|
118
|
+
const timeoutMs = opts.timeoutMs ?? SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS;
|
|
119
|
+
const timeoutLabel = `${timeoutMs / 6e4} minutes`;
|
|
120
|
+
let resolveResult;
|
|
121
|
+
let rejectResult;
|
|
122
|
+
const result = new Promise((resolve, reject) => {
|
|
123
|
+
resolveResult = resolve;
|
|
124
|
+
rejectResult = reject;
|
|
125
|
+
});
|
|
126
|
+
let redirectUri = "";
|
|
127
|
+
const server = createServer(
|
|
128
|
+
(req, res) => handleRequest(req, res, opts.state, redirectUri, resolveResult, rejectResult)
|
|
129
|
+
);
|
|
130
|
+
await listen(server, opts.port ?? 0);
|
|
131
|
+
const address = server.address();
|
|
132
|
+
redirectUri = `http://127.0.0.1:${address.port}${CALLBACK_PATH}`;
|
|
133
|
+
let closed = false;
|
|
134
|
+
const close = async () => {
|
|
135
|
+
if (closed) return;
|
|
136
|
+
closed = true;
|
|
137
|
+
clearTimeout(timer);
|
|
138
|
+
server.closeAllConnections?.();
|
|
139
|
+
await new Promise((resolve) => server.close(() => resolve()));
|
|
140
|
+
};
|
|
141
|
+
const timer = setTimeout(() => {
|
|
142
|
+
rejectResult(new Error(`OAuth callback timed out after ${timeoutLabel}`));
|
|
143
|
+
void close();
|
|
144
|
+
}, timeoutMs);
|
|
145
|
+
result.finally(close).catch(() => {
|
|
146
|
+
});
|
|
147
|
+
return { result, redirectUri, timeoutLabel, close };
|
|
148
|
+
}
|
|
149
|
+
async function listen(server, port) {
|
|
150
|
+
await new Promise((resolve, reject) => {
|
|
151
|
+
server.once("error", reject);
|
|
152
|
+
server.listen(port, "127.0.0.1", () => {
|
|
153
|
+
server.off("error", reject);
|
|
154
|
+
resolve();
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function handleRequest(req, res, expectedState, redirectUri, resolveResult, rejectResult) {
|
|
159
|
+
if (req.method !== "GET") {
|
|
160
|
+
res.writeHead(405, { "content-type": "text/plain" }).end("Method Not Allowed");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
164
|
+
if (url.pathname !== CALLBACK_PATH) {
|
|
165
|
+
res.writeHead(404, { "content-type": "text/plain" }).end("Not Found");
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const params = url.searchParams;
|
|
169
|
+
const error = params.get("error");
|
|
170
|
+
if (error) {
|
|
171
|
+
const desc = params.get("error_description") ?? "";
|
|
172
|
+
respond(res, 400, failurePage(error, desc));
|
|
173
|
+
rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
const state = params.get("state");
|
|
177
|
+
if (!state || !stateMatches(state, expectedState)) {
|
|
178
|
+
respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
|
|
179
|
+
rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
const code = params.get("code");
|
|
183
|
+
if (!code) {
|
|
184
|
+
respond(
|
|
185
|
+
res,
|
|
186
|
+
400,
|
|
187
|
+
failurePage("missing_code", "Authorization code is missing from the redirect.")
|
|
188
|
+
);
|
|
189
|
+
rejectResult(new Error("OAuth redirect did not include `code`."));
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
respond(res, 200, connectedPage());
|
|
193
|
+
resolveResult({ code, redirectUri });
|
|
194
|
+
}
|
|
195
|
+
function stateMatches(actual, expected) {
|
|
196
|
+
const a = Buffer.from(actual, "utf8");
|
|
197
|
+
const b = Buffer.from(expected, "utf8");
|
|
198
|
+
if (a.length !== b.length) return false;
|
|
199
|
+
return timingSafeEqual(a, b);
|
|
200
|
+
}
|
|
201
|
+
function respond(res, status, body) {
|
|
202
|
+
res.writeHead(status, {
|
|
203
|
+
"content-type": "text/html; charset=utf-8",
|
|
204
|
+
"cache-control": "no-store",
|
|
205
|
+
// Tell the browser not to keep the TCP socket alive — otherwise
|
|
206
|
+
// `server.close()` blocks on the idle keep-alive timeout
|
|
207
|
+
// (Chrome ~5min). Combined with `server.closeAllConnections()`
|
|
208
|
+
// in `close()` this guarantees the CLI exits promptly after the
|
|
209
|
+
// user sees the success page.
|
|
210
|
+
connection: "close"
|
|
211
|
+
}).end(body);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// src/auth/browser.ts
|
|
215
|
+
import { appendFileSync } from "fs";
|
|
216
|
+
async function openBrowser(url) {
|
|
217
|
+
const log = process.env["HF_BROWSER_LOG"];
|
|
218
|
+
if (log) {
|
|
219
|
+
appendFileSync(log, `${url}
|
|
220
|
+
`);
|
|
221
|
+
return { opened: true };
|
|
222
|
+
}
|
|
223
|
+
if (process.env["BROWSER"] === "none" || process.env["HF_NO_BROWSER"] === "1") {
|
|
224
|
+
printManualInstructions(url);
|
|
225
|
+
return { opened: false };
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
const open = (await import("open")).default;
|
|
229
|
+
await open(url);
|
|
230
|
+
return { opened: true };
|
|
231
|
+
} catch (err) {
|
|
232
|
+
printManualInstructions(url, normalizeErrorMessage(err));
|
|
233
|
+
return { opened: false };
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function printManualInstructions(url, detail) {
|
|
237
|
+
if (detail) {
|
|
238
|
+
console.error(c.warn(`Could not open browser automatically (${detail}).`));
|
|
239
|
+
} else {
|
|
240
|
+
console.error(c.warn("Browser auto-open is disabled."));
|
|
241
|
+
}
|
|
242
|
+
console.error(`Open this URL manually to continue:
|
|
243
|
+
${c.accent(url)}`);
|
|
244
|
+
}
|
|
245
|
+
|
|
39
246
|
// src/auth/scrub.ts
|
|
40
247
|
var HEYGEN_KEY = /\b(hg|sk)_[A-Za-z0-9_-]{4,}/g;
|
|
41
248
|
var HEADER_LINE = /(authorization|x-api-key)[ \t]*[:=][ \t]*[^\r\n]+/gi;
|
|
@@ -177,38 +384,6 @@ function pickObject(obj, key) {
|
|
|
177
384
|
return v && typeof v === "object" && !Array.isArray(v) ? v : void 0;
|
|
178
385
|
}
|
|
179
386
|
|
|
180
|
-
// src/auth/browser.ts
|
|
181
|
-
import { appendFileSync } from "fs";
|
|
182
|
-
async function openBrowser(url) {
|
|
183
|
-
const log = process.env["HF_BROWSER_LOG"];
|
|
184
|
-
if (log) {
|
|
185
|
-
appendFileSync(log, `${url}
|
|
186
|
-
`);
|
|
187
|
-
return { opened: true };
|
|
188
|
-
}
|
|
189
|
-
if (process.env["BROWSER"] === "none" || process.env["HF_NO_BROWSER"] === "1") {
|
|
190
|
-
printManualInstructions(url);
|
|
191
|
-
return { opened: false };
|
|
192
|
-
}
|
|
193
|
-
try {
|
|
194
|
-
const open = (await import("open")).default;
|
|
195
|
-
await open(url);
|
|
196
|
-
return { opened: true };
|
|
197
|
-
} catch (err) {
|
|
198
|
-
printManualInstructions(url, normalizeErrorMessage(err));
|
|
199
|
-
return { opened: false };
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function printManualInstructions(url, detail) {
|
|
203
|
-
if (detail) {
|
|
204
|
-
console.error(c.warn(`Could not open browser automatically (${detail}).`));
|
|
205
|
-
} else {
|
|
206
|
-
console.error(c.warn("Browser auto-open is disabled."));
|
|
207
|
-
}
|
|
208
|
-
console.error(`Open this URL manually to continue:
|
|
209
|
-
${c.accent(url)}`);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
387
|
// src/auth/store.ts
|
|
213
388
|
import { promises as fs } from "fs";
|
|
214
389
|
import { dirname } from "path";
|
|
@@ -447,183 +622,6 @@ function looksLikeApiKey(s) {
|
|
|
447
622
|
return /^[!-~]+$/.test(s);
|
|
448
623
|
}
|
|
449
624
|
|
|
450
|
-
// src/auth/pkce.ts
|
|
451
|
-
import { createHash, randomBytes } from "crypto";
|
|
452
|
-
var VERIFIER_BYTES = 64;
|
|
453
|
-
function generatePkcePair() {
|
|
454
|
-
const verifier = base64UrlEncode(randomBytes(VERIFIER_BYTES));
|
|
455
|
-
const challenge = base64UrlEncode(createHash("sha256").update(verifier).digest());
|
|
456
|
-
return { verifier, challenge, method: "S256" };
|
|
457
|
-
}
|
|
458
|
-
function generateState() {
|
|
459
|
-
return base64UrlEncode(randomBytes(32));
|
|
460
|
-
}
|
|
461
|
-
function base64UrlEncode(buf) {
|
|
462
|
-
return buf.toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
// src/auth/loopback.ts
|
|
466
|
-
import { timingSafeEqual } from "crypto";
|
|
467
|
-
import { createServer } from "http";
|
|
468
|
-
|
|
469
|
-
// src/auth/callbackPage.ts
|
|
470
|
-
var MARK_A = "M10.1851 57.8021L33.1145 73.8313C36.2202 75.9978 41.5173 73.5433 42.4816 69.4984L51.7611 30.4271C52.7253 26.3822 48.5802 23.9277 44.4602 26.0942L13.917 42.1235C6.96677 45.7676 4.97564 54.1579 10.1851 57.8021Z";
|
|
471
|
-
var MARK_B = "M87.5129 57.5141L56.9696 73.5433C52.8371 75.7098 48.7046 73.2553 49.6688 69.2104L58.9483 30.1391C59.9125 26.0942 65.2097 23.6397 68.3154 25.8062L91.2447 41.8354C96.4668 45.4796 94.4631 53.8699 87.5129 57.5141Z";
|
|
472
|
-
var STYLE = `:root{color-scheme:light dark;--bg:#f2f0ed;--ink:#1d1b18;--ink2:#5d5a55;--tile:#dff3ea;--tile-ink:#087a54;--bad:#fbe6e1;--bad-ink:#b3402e;--btn:#1d1b18;--btn-ink:#f2f0ed;--panel:#0c0c0e;--panel-ink:#f4f1ec}
|
|
473
|
-
@media(prefers-color-scheme:dark){:root{--bg:#201e1b;--ink:#f6f4f1;--ink2:#b5b1aa;--tile:#1f3a2f;--tile-ink:#37de91;--bad:#3a2420;--bad-ink:#f08a78;--btn:#f6f4f1;--btn-ink:#201e1b}}
|
|
474
|
-
*{box-sizing:border-box}html,body{height:100%;margin:0}
|
|
475
|
-
body{background:var(--bg);color:var(--ink);font:400 15px/1.45 "TT Norms",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
|
|
476
|
-
.col{position:relative;display:flex;flex-direction:column;justify-content:center;padding:48px 32px 48px max(32px,min(7vw,96px))}
|
|
477
|
-
.brand{position:absolute;top:28px;left:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;letter-spacing:-.01em}
|
|
478
|
-
.tile{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--tile);color:var(--tile-ink);margin-bottom:20px}
|
|
479
|
-
.bad .tile{background:var(--bad);color:var(--bad-ink)}
|
|
480
|
-
h1{margin:0;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.02em;text-wrap:balance}
|
|
481
|
-
p{margin:10px 0 0;color:var(--ink2);max-width:360px;text-wrap:pretty}
|
|
482
|
-
code{font:500 13px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink2)}
|
|
483
|
-
.panel{margin:14px;border-radius:24px;background:var(--panel);color:var(--panel-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
|
|
484
|
-
.panel b{font-size:26px;font-weight:600;letter-spacing:-.01em}
|
|
485
|
-
.panel small{color:rgb(244 241 236/.58);font-size:14px;margin-top:-10px}
|
|
486
|
-
.badge{position:relative}
|
|
487
|
-
.chk{display:none;position:absolute;right:-8px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:#37de91;place-items:center}
|
|
488
|
-
.ok .chk{display:grid}
|
|
489
|
-
@media(max-width:760px){body{grid-template-columns:1fr;grid-template-rows:auto auto}.col{padding:84px 24px 32px}.brand{left:24px}.panel{min-height:300px;margin:12px}}`;
|
|
490
|
-
var CHECK = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"/></svg>';
|
|
491
|
-
var CROSS = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M6.5 6.5l11 11M17.5 6.5l-11 11"/></svg>';
|
|
492
|
-
var CHK = '<span class="chk"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#0e1a14" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m6 12.5 4 4 8-9"/></svg></span>';
|
|
493
|
-
function mark(width, height, id) {
|
|
494
|
-
const gradient = (suffix, x1, y1, x2, y2) => `<linearGradient id="${suffix}${id}" gradientUnits="userSpaceOnUse" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"><stop offset="0" stop-color="#06E3FA"/><stop offset="1" stop-color="#4FDB5E"/></linearGradient>`;
|
|
495
|
-
return `<svg viewBox="4 22 92 56" width="${width}" height="${height}" aria-hidden="true"><defs>${gradient("a", "48.57", "25", "44.78", "71.94")}${gradient("b", "54.83", "73.84", "72.1", "32.89")}</defs><path fill="url(#a${id})" d="${MARK_A}"/><path fill="url(#b${id})" d="${MARK_B}"/></svg>`;
|
|
496
|
-
}
|
|
497
|
-
function escapeHtml(s) {
|
|
498
|
-
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
499
|
-
}
|
|
500
|
-
function page(args) {
|
|
501
|
-
const detail = args.detail ? `<p><code>${escapeHtml(args.detail)}</code></p>` : "";
|
|
502
|
-
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${escapeHtml(args.title)}</title><style>${STYLE}</style></head><body class="${args.ok ? "ok" : "bad"}"><main class="col"><div class="brand">${mark(38, 23, "c")}<span>HyperFrames</span></div><div class="tile">${args.ok ? CHECK : CROSS}</div><h1>${escapeHtml(args.title)}</h1><p>${escapeHtml(args.text)}</p>${detail}</main><aside class="panel"><div class="badge">${mark(96, 58, "p")}${CHK}</div><b>HyperFrames</b><small>by HeyGen</small></aside></body></html>`;
|
|
503
|
-
}
|
|
504
|
-
function connectedPage() {
|
|
505
|
-
return page({
|
|
506
|
-
ok: true,
|
|
507
|
-
title: "You're connected",
|
|
508
|
-
text: "Return to your terminal. You can close this tab."
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
function failurePage(code, description) {
|
|
512
|
-
if (code === "access_denied") {
|
|
513
|
-
return page({
|
|
514
|
-
ok: false,
|
|
515
|
-
title: "Not authorized",
|
|
516
|
-
text: "Nothing was connected. Run the login again from your terminal."
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
return page({
|
|
520
|
-
ok: false,
|
|
521
|
-
title: "Couldn't connect",
|
|
522
|
-
text: description || "Something went wrong on the way back. Run the login again from your terminal.",
|
|
523
|
-
detail: code
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
// src/auth/loopback.ts
|
|
528
|
-
var CALLBACK_PATH = "/oauth/callback";
|
|
529
|
-
var SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
530
|
-
async function startLoopback(opts) {
|
|
531
|
-
const timeoutMs = opts.timeoutMs ?? SIGN_IN_WITH_CHECKOUT_TIMEOUT_MS;
|
|
532
|
-
const timeoutLabel = `${timeoutMs / 6e4} minutes`;
|
|
533
|
-
let resolveResult;
|
|
534
|
-
let rejectResult;
|
|
535
|
-
const result = new Promise((resolve, reject) => {
|
|
536
|
-
resolveResult = resolve;
|
|
537
|
-
rejectResult = reject;
|
|
538
|
-
});
|
|
539
|
-
let redirectUri = "";
|
|
540
|
-
const server = createServer(
|
|
541
|
-
(req, res) => handleRequest(req, res, opts.state, redirectUri, resolveResult, rejectResult)
|
|
542
|
-
);
|
|
543
|
-
await listen(server, opts.port ?? 0);
|
|
544
|
-
const address = server.address();
|
|
545
|
-
redirectUri = `http://127.0.0.1:${address.port}${CALLBACK_PATH}`;
|
|
546
|
-
let closed = false;
|
|
547
|
-
const close = async () => {
|
|
548
|
-
if (closed) return;
|
|
549
|
-
closed = true;
|
|
550
|
-
clearTimeout(timer);
|
|
551
|
-
server.closeAllConnections?.();
|
|
552
|
-
await new Promise((resolve) => server.close(() => resolve()));
|
|
553
|
-
};
|
|
554
|
-
const timer = setTimeout(() => {
|
|
555
|
-
rejectResult(new Error(`OAuth callback timed out after ${timeoutLabel}`));
|
|
556
|
-
void close();
|
|
557
|
-
}, timeoutMs);
|
|
558
|
-
result.finally(close).catch(() => {
|
|
559
|
-
});
|
|
560
|
-
return { result, redirectUri, timeoutLabel, close };
|
|
561
|
-
}
|
|
562
|
-
async function listen(server, port) {
|
|
563
|
-
await new Promise((resolve, reject) => {
|
|
564
|
-
server.once("error", reject);
|
|
565
|
-
server.listen(port, "127.0.0.1", () => {
|
|
566
|
-
server.off("error", reject);
|
|
567
|
-
resolve();
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
function handleRequest(req, res, expectedState, redirectUri, resolveResult, rejectResult) {
|
|
572
|
-
if (req.method !== "GET") {
|
|
573
|
-
res.writeHead(405, { "content-type": "text/plain" }).end("Method Not Allowed");
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
const url = new URL(req.url ?? "/", "http://127.0.0.1");
|
|
577
|
-
if (url.pathname !== CALLBACK_PATH) {
|
|
578
|
-
res.writeHead(404, { "content-type": "text/plain" }).end("Not Found");
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
const params = url.searchParams;
|
|
582
|
-
const error = params.get("error");
|
|
583
|
-
if (error) {
|
|
584
|
-
const desc = params.get("error_description") ?? "";
|
|
585
|
-
respond(res, 400, failurePage(error, desc));
|
|
586
|
-
rejectResult(new Error(`OAuth authorize returned error: ${error}${desc ? ` \u2014 ${desc}` : ""}`));
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
const state = params.get("state");
|
|
590
|
-
if (!state || !stateMatches(state, expectedState)) {
|
|
591
|
-
respond(res, 400, failurePage("invalid_state", "State parameter did not match."));
|
|
592
|
-
rejectResult(new Error("OAuth state mismatch \u2014 possible CSRF, aborting."));
|
|
593
|
-
return;
|
|
594
|
-
}
|
|
595
|
-
const code = params.get("code");
|
|
596
|
-
if (!code) {
|
|
597
|
-
respond(
|
|
598
|
-
res,
|
|
599
|
-
400,
|
|
600
|
-
failurePage("missing_code", "Authorization code is missing from the redirect.")
|
|
601
|
-
);
|
|
602
|
-
rejectResult(new Error("OAuth redirect did not include `code`."));
|
|
603
|
-
return;
|
|
604
|
-
}
|
|
605
|
-
respond(res, 200, connectedPage());
|
|
606
|
-
resolveResult({ code, redirectUri });
|
|
607
|
-
}
|
|
608
|
-
function stateMatches(actual, expected) {
|
|
609
|
-
const a = Buffer.from(actual, "utf8");
|
|
610
|
-
const b = Buffer.from(expected, "utf8");
|
|
611
|
-
if (a.length !== b.length) return false;
|
|
612
|
-
return timingSafeEqual(a, b);
|
|
613
|
-
}
|
|
614
|
-
function respond(res, status, body) {
|
|
615
|
-
res.writeHead(status, {
|
|
616
|
-
"content-type": "text/html; charset=utf-8",
|
|
617
|
-
"cache-control": "no-store",
|
|
618
|
-
// Tell the browser not to keep the TCP socket alive — otherwise
|
|
619
|
-
// `server.close()` blocks on the idle keep-alive timeout
|
|
620
|
-
// (Chrome ~5min). Combined with `server.closeAllConnections()`
|
|
621
|
-
// in `close()` this guarantees the CLI exits promptly after the
|
|
622
|
-
// user sees the success page.
|
|
623
|
-
connection: "close"
|
|
624
|
-
}).end(body);
|
|
625
|
-
}
|
|
626
|
-
|
|
627
625
|
// src/auth/oauth.ts
|
|
628
626
|
var REVOKE_TIMEOUT_MS = 5e3;
|
|
629
627
|
var MIN_EXPIRES_IN_SECONDS = 30;
|
|
@@ -984,6 +982,9 @@ async function persistOAuth(tokens, opts = {}) {
|
|
|
984
982
|
const oauth = opts.refreshed !== void 0 ? { ...existing.oauth, ...tokens, ...oauthIdentity() } : { ...tokens, ...oauthIdentity() };
|
|
985
983
|
await writeStore({ ...existing, oauth });
|
|
986
984
|
}
|
|
985
|
+
async function persistFreshOAuth(tokens) {
|
|
986
|
+
await persistOAuth(tokens);
|
|
987
|
+
}
|
|
987
988
|
async function persistVerifiedOAuthSession(tokens, user) {
|
|
988
989
|
let credentials = {};
|
|
989
990
|
try {
|
|
@@ -1139,131 +1140,6 @@ async function safeText2(res) {
|
|
|
1139
1140
|
}
|
|
1140
1141
|
}
|
|
1141
1142
|
|
|
1142
|
-
// src/auth/resolver.ts
|
|
1143
|
-
var ENV_CREDENTIAL_VAR = {
|
|
1144
|
-
env: "HEYGEN_API_KEY",
|
|
1145
|
-
env_alias: "HYPERFRAMES_API_KEY",
|
|
1146
|
-
env_oauth: "HEYGEN_ACCESS_TOKEN"
|
|
1147
|
-
};
|
|
1148
|
-
var envCredentialVar = (source) => source in ENV_CREDENTIAL_VAR ? ENV_CREDENTIAL_VAR[source] : void 0;
|
|
1149
|
-
var EXPIRY_SKEW_MS = 60 * 1e3;
|
|
1150
|
-
async function resolveCredential(opts = {}) {
|
|
1151
|
-
const now = (opts.now ?? (() => /* @__PURE__ */ new Date()))();
|
|
1152
|
-
const envKey = envApiKey();
|
|
1153
|
-
if (envKey && !heygenApiHost()) return envKey;
|
|
1154
|
-
const accessToken = headerSafeEnv(ENV_CREDENTIAL_VAR.env_oauth);
|
|
1155
|
-
if (accessToken) {
|
|
1156
|
-
return { type: "oauth", access_token: accessToken, source: "env_oauth", refreshable: false };
|
|
1157
|
-
}
|
|
1158
|
-
if (envKey && loginRefreshFailed) return envKey;
|
|
1159
|
-
return await fromStore(now, envKey);
|
|
1160
|
-
}
|
|
1161
|
-
async function fromStore(now, envKey) {
|
|
1162
|
-
const store = await readStore().catch((err) => {
|
|
1163
|
-
if (envKey) return null;
|
|
1164
|
-
throw err;
|
|
1165
|
-
});
|
|
1166
|
-
if (!store || store.source === "absent") {
|
|
1167
|
-
if (envKey) return envKey;
|
|
1168
|
-
throw ErrNotConfigured();
|
|
1169
|
-
}
|
|
1170
|
-
const { credentials, source } = store;
|
|
1171
|
-
const fileSource = source === "file_legacy" ? "file_legacy" : "file_json";
|
|
1172
|
-
const login = credentials.oauth && boundToThisClient(credentials.oauth) ? pickOAuth(credentials.oauth, now, fileSource) : null;
|
|
1173
|
-
return login ?? envKey ?? storedApiKey(credentials, fileSource);
|
|
1174
|
-
}
|
|
1175
|
-
function storedApiKey(credentials, source) {
|
|
1176
|
-
if (credentials.oauth) {
|
|
1177
|
-
assertOAuthIdentity(credentials.oauth);
|
|
1178
|
-
throw ErrLoginExpired();
|
|
1179
|
-
}
|
|
1180
|
-
if (credentials.api_key) return { type: "api_key", key: credentials.api_key, source };
|
|
1181
|
-
throw ErrNotConfigured();
|
|
1182
|
-
}
|
|
1183
|
-
function envApiKey() {
|
|
1184
|
-
const heygenEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env);
|
|
1185
|
-
if (heygenEnv) return { type: "api_key", key: heygenEnv, source: "env" };
|
|
1186
|
-
const hfEnv = headerSafeEnv(ENV_CREDENTIAL_VAR.env_alias);
|
|
1187
|
-
if (hfEnv) return { type: "api_key", key: hfEnv, source: "env_alias" };
|
|
1188
|
-
return void 0;
|
|
1189
|
-
}
|
|
1190
|
-
function heygenApiHost() {
|
|
1191
|
-
const mediaBase = process.env["HEYGEN_API_BASE"]?.trim();
|
|
1192
|
-
return [apiBaseUrl(), ...mediaBase ? [mediaBase] : []].every((base) => {
|
|
1193
|
-
try {
|
|
1194
|
-
const host = new URL(base).hostname;
|
|
1195
|
-
return host === "heygen.com" || host.endsWith(".heygen.com");
|
|
1196
|
-
} catch {
|
|
1197
|
-
return false;
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
function boundToThisClient(tokens) {
|
|
1202
|
-
try {
|
|
1203
|
-
assertOAuthIdentity(tokens);
|
|
1204
|
-
return true;
|
|
1205
|
-
} catch {
|
|
1206
|
-
return false;
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
var loginRefreshFailed = false;
|
|
1210
|
-
async function afterRefreshFailure(err, refreshToken) {
|
|
1211
|
-
if (!isAuthError(err)) throw err;
|
|
1212
|
-
if (err.code === "LOGIN_CHANGED" || err.code === "REFRESH_FAILED") {
|
|
1213
|
-
const stored = await readStore().catch(() => null);
|
|
1214
|
-
const current = stored?.credentials.oauth?.refresh_token;
|
|
1215
|
-
if (current && current !== refreshToken) {
|
|
1216
|
-
const next = await resolveCredential();
|
|
1217
|
-
if (next.type !== "oauth" || !next.refreshable) return next;
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
if (!err.refused && err.code !== "LOGIN_EXPIRED") throw err;
|
|
1221
|
-
const key = envApiKey();
|
|
1222
|
-
if (!key) throw err;
|
|
1223
|
-
loginRefreshFailed = true;
|
|
1224
|
-
return key;
|
|
1225
|
-
}
|
|
1226
|
-
function headerSafeEnv(name) {
|
|
1227
|
-
const value = process.env[name];
|
|
1228
|
-
if (value && !isHeaderSafe(value)) {
|
|
1229
|
-
throw ErrInvalidStore(`${name} contains control characters`);
|
|
1230
|
-
}
|
|
1231
|
-
return value;
|
|
1232
|
-
}
|
|
1233
|
-
async function tryResolveCredential(opts = {}) {
|
|
1234
|
-
try {
|
|
1235
|
-
return await resolveCredential(opts);
|
|
1236
|
-
} catch (err) {
|
|
1237
|
-
if (isAuthError(err) && err.code === "NOT_CONFIGURED") {
|
|
1238
|
-
return null;
|
|
1239
|
-
}
|
|
1240
|
-
throw err;
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
function pickOAuth(tokens, now, source) {
|
|
1244
|
-
const expiresAt = parseDate(tokens.expires_at);
|
|
1245
|
-
const expired = isTokenExpired(expiresAt, now);
|
|
1246
|
-
if (expired && !tokens.refresh_token) return null;
|
|
1247
|
-
const out = {
|
|
1248
|
-
type: "oauth",
|
|
1249
|
-
access_token: tokens.access_token,
|
|
1250
|
-
source,
|
|
1251
|
-
refreshable: expired && tokens.refresh_token !== void 0
|
|
1252
|
-
};
|
|
1253
|
-
if (tokens.refresh_token) out.refresh_token = tokens.refresh_token;
|
|
1254
|
-
if (expiresAt) out.expires_at = expiresAt;
|
|
1255
|
-
if (tokens.scope) out.scope = tokens.scope;
|
|
1256
|
-
return out;
|
|
1257
|
-
}
|
|
1258
|
-
function isTokenExpired(expiresAt, now) {
|
|
1259
|
-
return expiresAt !== void 0 && expiresAt.getTime() - EXPIRY_SKEW_MS < now.getTime();
|
|
1260
|
-
}
|
|
1261
|
-
function parseDate(s) {
|
|
1262
|
-
if (!s) return void 0;
|
|
1263
|
-
const d = new Date(s);
|
|
1264
|
-
return Number.isNaN(d.getTime()) ? void 0 : d;
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
1143
|
export {
|
|
1268
1144
|
apiBaseUrl,
|
|
1269
1145
|
AuthClient,
|
|
@@ -1280,11 +1156,7 @@ export {
|
|
|
1280
1156
|
startDeviceAuthorizationFlow,
|
|
1281
1157
|
refreshTokens,
|
|
1282
1158
|
revokeTokens,
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
resolveCredential,
|
|
1287
|
-
afterRefreshFailure,
|
|
1288
|
-
tryResolveCredential,
|
|
1289
|
-
isTokenExpired
|
|
1159
|
+
parseTokenResponse,
|
|
1160
|
+
persistFreshOAuth,
|
|
1161
|
+
persistVerifiedOAuthSession
|
|
1290
1162
|
};
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
KOKORO_PIP,
|
|
10
10
|
MUSICGEN_MODULES,
|
|
11
11
|
MUSICGEN_PIP
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AOTAYP5E.js";
|
|
13
13
|
import {
|
|
14
14
|
describeRejectedPythonOverride,
|
|
15
15
|
hasPythonModules
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7YBRRU5W.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WWT32C2M.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-JCNPHRGX.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Z64I7KJZ.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
runningInstall,
|
|
45
45
|
updateCommandFor,
|
|
46
46
|
withMeta
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6OYPVALW.js";
|
|
48
48
|
import {
|
|
49
49
|
CONFIG_PATH,
|
|
50
50
|
withFileLock
|
|
51
51
|
} from "./chunk-AWD2MWWL.js";
|
|
52
52
|
import {
|
|
53
53
|
VERSION
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6FP6HBG4.js";
|
|
55
55
|
import {
|
|
56
56
|
normalizeErrorMessage
|
|
57
57
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -249,7 +249,7 @@ function checkEnvironment() {
|
|
|
249
249
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
250
250
|
}
|
|
251
251
|
async function checkWhisper() {
|
|
252
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
252
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-FFLFDJZ6.js");
|
|
253
253
|
const result = findWhisper();
|
|
254
254
|
if (result) {
|
|
255
255
|
return { ok: true, detail: result.executablePath };
|