hyperframes 0.9.31 → 0.9.32
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-53MR45WI.js → add-HYI4YJC5.js} +16 -16
- package/dist/{agentPromptGenerator-NXF7237H.js → agentPromptGenerator-JAQNBEUZ.js} +35 -18
- package/dist/{animatedGifPrep-XF6VJW22.js → animatedGifPrep-DVYRCZVR.js} +10 -10
- package/dist/api.js +40 -36
- package/dist/{appHistory-DLDRURHW.js → appHistory-WZIHFCPK.js} +3 -3
- package/dist/{asset-Y3YAVXJ3.js → asset-7FG3M3FQ.js} +2 -2
- package/dist/{assetCataloger-DRLH2VFH.js → assetCataloger-QDQZYHUC.js} +12 -12
- package/dist/{audio-TRDZQ2NW.js → audio-R6ZG62DU.js} +20 -19
- package/dist/{auth-MN66MWGN.js → auth-IPDYZXOG.js} +2 -2
- package/dist/{autoUpdate-KAIIQJBV.js → autoUpdate-GAEDDZRN.js} +2 -2
- package/dist/{avatars-F2COSI7P.js → avatars-A45VFUZ4.js} +14 -14
- package/dist/{backgroundChecks-36UG4V5N.js → backgroundChecks-US74BS6V.js} +3 -3
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-CI6OFGS5.js → batchRender-VBSYVQA7.js} +5 -5
- package/dist/{beats-GBCNB763.js → beats-UPJ3KANG.js} +12 -12
- package/dist/{benchmark-AHHMJBDN.js → benchmark-2RWYJGL2.js} +10 -10
- package/dist/{billing-HME22C5A.js → billing-MD66MJTA.js} +15 -15
- package/dist/{browser-VZTIOZI3.js → browser-JXCS62NX.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-XLFSHMET.js → bundleWithLocalizedFonts-RAD7BNJF.js} +1 -1
- package/dist/{capture-ZILHWIOF.js → capture-DJ4WRP62.js} +52 -29
- package/dist/{capture-NU2ZIXJB.js → capture-M6DT5WZT.js} +4 -4
- package/dist/{captureCompositionFrame-ZWVKRKLL.js → captureCompositionFrame-IRXG7ZFU.js} +17 -17
- package/dist/{captureFile-O7JMINHC.js → captureFile-Y2ZMB7HK.js} +3 -3
- package/dist/{catalog-NVEGPXGE.js → catalog-GW45OWKU.js} +16 -16
- package/dist/{catch-up-W7ST5JSZ.js → catch-up-YKJQ4IYC.js} +10 -10
- package/dist/{check-BZ652RYH.js → check-7QTKMPGA.js} +49 -49
- package/dist/{checkAudio-5NVSRMGL.js → checkAudio-7WHUYGUZ.js} +14 -14
- package/dist/{checkBrowser-YN454IBU.js → checkBrowser-USAOWTAF.js} +42 -42
- package/dist/chunk-262ADJJN.js +193 -0
- package/dist/{chunk-SCWMPY3F.js → chunk-2NMBD5AH.js} +1 -1
- package/dist/{chunk-RHUYVGFO.js → chunk-2T7EDEKE.js} +7 -7
- package/dist/{chunk-OJSOH2LS.js → chunk-2W4VQ3YZ.js} +2 -2
- package/dist/{chunk-RJA64ACI.js → chunk-2Z42EUHG.js} +2 -2
- package/dist/{chunk-HM3PIREE.js → chunk-3367VNGK.js} +2 -2
- package/dist/{chunk-RLYYA6IR.js → chunk-34S7GYVK.js} +1 -1
- package/dist/{chunk-TEOIEMTR.js → chunk-3HT3UGF2.js} +1 -1
- package/dist/{chunk-AQJA7TAQ.js → chunk-3PHCFSPD.js} +2 -2
- package/dist/{chunk-BJSUKOWW.js → chunk-3R2X2VKB.js} +2 -2
- package/dist/{chunk-OOEZ3FT3.js → chunk-4CSZZXL6.js} +3 -3
- package/dist/{chunk-JLUOG6S2.js → chunk-4FTJE22M.js} +2 -2
- package/dist/{chunk-O7ZX5DHD.js → chunk-5FFYMVRD.js} +2 -2
- package/dist/{chunk-6WHOI52Z.js → chunk-5GXMZIQZ.js} +8 -8
- package/dist/{chunk-Q7EIUAYK.js → chunk-5VN7ZXJR.js} +3 -3
- package/dist/{chunk-VEIGTKYZ.js → chunk-64F653HO.js} +36 -9
- package/dist/{chunk-X3HQA3YE.js → chunk-6BI6URO2.js} +8 -7
- package/dist/{chunk-Q77TZ76B.js → chunk-6MTSP2XE.js} +8 -8
- package/dist/{chunk-7XZS4PNM.js → chunk-6NNLDCX4.js} +1 -1
- package/dist/{chunk-3OA75WJW.js → chunk-6RFCS4IU.js} +9 -4
- package/dist/{chunk-IIMW46LC.js → chunk-6SNGKC6B.js} +1 -1
- package/dist/{chunk-SWOAB4GM.js → chunk-77UB5EHM.js} +1 -1
- package/dist/{chunk-URXVZMSI.js → chunk-ADP2GIBS.js} +2 -2
- package/dist/{chunk-CWN75OWQ.js → chunk-AOQRVS63.js} +13 -3
- package/dist/{chunk-RVI665CP.js → chunk-AWT5FHTN.js} +1 -1
- package/dist/{chunk-G5DZZEQF.js → chunk-AZ2QJETV.js} +1 -1
- package/dist/{chunk-YJVJCNK4.js → chunk-BA3EQ2KL.js} +3 -3
- package/dist/{chunk-J3OVTOVC.js → chunk-CHJGVW5W.js} +15 -2
- package/dist/{chunk-TCQKCUDA.js → chunk-CKJDY6EK.js} +1 -1
- package/dist/{chunk-GFDXA5QO.js → chunk-CMYUPVMI.js} +2 -2
- package/dist/{chunk-DFSAC4F4.js → chunk-D6BV6TTI.js} +1 -1
- package/dist/{chunk-OZNJ2QD5.js → chunk-D7NNNL2K.js} +13 -13
- package/dist/{chunk-MMAPQWUP.js → chunk-E5S4QMX7.js} +2 -2
- package/dist/{chunk-G5S72X6Q.js → chunk-EBG5RCPM.js} +4 -4
- package/dist/{chunk-R5U5PFDJ.js → chunk-EJPWGGPK.js} +68 -26
- package/dist/{chunk-FKW5FP4C.js → chunk-EXW2LV4K.js} +114 -74
- package/dist/{chunk-F2GWIWHN.js → chunk-G2XAFJ2B.js} +2 -2
- package/dist/{chunk-P7LZ2WSQ.js → chunk-G6JLFSII.js} +2 -2
- package/dist/{chunk-LHBQW4GJ.js → chunk-G7NKYELQ.js} +23 -15
- package/dist/{chunk-FRBQ3FIM.js → chunk-GBIASKIH.js} +1 -1
- package/dist/{chunk-W4OMDRZF.js → chunk-GCJRV7LU.js} +28 -8
- package/dist/{chunk-AWL5M7BX.js → chunk-GJUL3PRV.js} +4 -4
- package/dist/{chunk-BIQJKM2O.js → chunk-GOMTMQRT.js} +1 -1
- package/dist/{chunk-5AMGFTMU.js → chunk-GTHRXU37.js} +15 -15
- package/dist/{chunk-GRHBVTBK.js → chunk-GWSCUFGL.js} +2 -2
- package/dist/{chunk-SQ63BIR2.js → chunk-H4C3P2KV.js} +3 -3
- package/dist/{chunk-FK3KV32T.js → chunk-H7AJLEBR.js} +26 -23
- package/dist/{chunk-L6ZLOJBI.js → chunk-HDCVU64B.js} +1 -1
- package/dist/{chunk-Y6RU3H6C.js → chunk-HWMNSWEA.js} +6 -6
- package/dist/{chunk-WSPGX2SM.js → chunk-HXQDDCGY.js} +1 -1
- package/dist/{chunk-OFQWTKPW.js → chunk-HZTRKUKE.js} +8 -2
- package/dist/{chunk-CUORARXJ.js → chunk-I3QXWJ7V.js} +7 -7
- package/dist/{chunk-IEXRKKHC.js → chunk-IEEIPTDW.js} +1 -1
- package/dist/{chunk-MX3UCKZR.js → chunk-JHX76QFC.js} +1 -1
- package/dist/{chunk-C4U6FRZH.js → chunk-JMV63CNH.js} +14 -11
- package/dist/{chunk-4HSE3FWO.js → chunk-K72X2YXR.js} +3 -3
- package/dist/{chunk-OB6DVKHE.js → chunk-KAG5KXNO.js} +2 -2
- package/dist/{chunk-J5LQW6VB.js → chunk-KFXHBP2E.js} +2 -2
- package/dist/{chunk-MQOO5Z4U.js → chunk-KG3TONXU.js} +6 -6
- package/dist/{chunk-HYRPH6LL.js → chunk-KRWPTZBY.js} +2 -5
- package/dist/{chunk-KKUBMYCY.js → chunk-KXOKZJBZ.js} +10 -10
- package/dist/{chunk-XDIHAX2C.js → chunk-L72MPEM2.js} +1 -1
- package/dist/{chunk-RBECDLMQ.js → chunk-LBQQNNRC.js} +1 -1
- package/dist/{chunk-CP4FVXKZ.js → chunk-LHFBKUVY.js} +2 -2
- package/dist/{chunk-RLQOYHXT.js → chunk-LJMTEZOP.js} +10 -10
- package/dist/{chunk-3SZ43GZG.js → chunk-LXIEKLAC.js} +5 -5
- package/dist/{chunk-KAICKZZK.js → chunk-M6FNCANA.js} +1 -1
- package/dist/{chunk-ZOOY4LEZ.js → chunk-M6LAGO6O.js} +2 -2
- package/dist/{chunk-5Q3TTLGB.js → chunk-MYFAVVA6.js} +22 -22
- package/dist/{chunk-XEPGN46Q.js → chunk-N6Y645MX.js} +1 -1
- package/dist/{chunk-IOPIOX5K.js → chunk-N7C7U3ZR.js} +7 -4
- package/dist/{chunk-B7H5RCKP.js → chunk-NNOAOQLT.js} +2 -2
- package/dist/{chunk-56MGA4FM.js → chunk-NXSKZE3C.js} +2 -2
- package/dist/{chunk-RCWPVC4M.js → chunk-P5E3RHW3.js} +2 -2
- package/dist/{chunk-SEVZKBMA.js → chunk-P7TCIUP2.js} +4 -4
- package/dist/{chunk-5BIMSULZ.js → chunk-PVSRPNIV.js} +1 -1
- package/dist/{chunk-5SDUQLZ3.js → chunk-PXDRW3QN.js} +1 -1
- package/dist/{chunk-GSXHYLW4.js → chunk-PXY3JZP2.js} +2 -2
- package/dist/{chunk-T54RTTFW.js → chunk-RCRUWNQ4.js} +3 -3
- package/dist/{chunk-GGDJLN5I.js → chunk-REJ4NIBY.js} +1 -1
- package/dist/{chunk-BCMR6DE4.js → chunk-SFPIVVUE.js} +2 -2
- package/dist/{chunk-T7PFJH2B.js → chunk-SIRYW7SY.js} +2 -2
- package/dist/{chunk-SHOE3UR6.js → chunk-SVI2CJ6R.js} +1 -1
- package/dist/{chunk-ZSELEQI2.js → chunk-SXOIG6VG.js} +186 -52
- package/dist/chunk-TFBPCJPG.js +26 -0
- package/dist/{chunk-JULHFF3J.js → chunk-TLUDJLBN.js} +1 -1
- package/dist/{chunk-5YYGPTBP.js → chunk-TTSLKH63.js} +3 -3
- package/dist/{chunk-XB77LMOP.js → chunk-TVQNABOI.js} +1 -1
- package/dist/{chunk-K7JA32EI.js → chunk-TZH6HNZH.js} +2 -2
- package/dist/{chunk-3F2DTPBD.js → chunk-UC4X6I35.js} +6 -0
- package/dist/{chunk-PGGMJW7B.js → chunk-UWMOMAYI.js} +35 -7
- package/dist/{chunk-DJVSNDF3.js → chunk-VB3JZKMN.js} +104 -14
- package/dist/{chunk-JHOPRAJN.js → chunk-VK3MQSA2.js} +11 -5
- package/dist/{chunk-5HVQV4H4.js → chunk-W3HNLDK6.js} +2 -2
- package/dist/{chunk-44VR2CWT.js → chunk-WLNQAJQC.js} +2 -2
- package/dist/{chunk-O4Z4D4KA.js → chunk-WTO4DHBH.js} +1 -1
- package/dist/{chunk-ALVXFXUG.js → chunk-WXOOAAT4.js} +27 -4
- package/dist/{chunk-6VNDEMSP.js → chunk-X6DWLN55.js} +3 -3
- package/dist/{chunk-IHWNDG5C.js → chunk-XB7HE2R5.js} +3 -3
- package/dist/{chunk-VPPJIWVG.js → chunk-XDRSEU2I.js} +14 -14
- package/dist/{chunk-CWOUPW5E.js → chunk-XH6LGDIB.js} +4 -4
- package/dist/{chunk-3DIYMOES.js → chunk-XPT4GC6X.js} +6 -6
- package/dist/{chunk-ZQYRP22G.js → chunk-Y3YHDU7T.js} +1 -1
- package/dist/{chunk-SWC3QIEH.js → chunk-YAS347ZS.js} +1 -1
- package/dist/{chunk-ELWX6CAA.js → chunk-YAZQBB2S.js} +1 -1
- package/dist/{chunk-5LLDGJGZ.js → chunk-YCTWMO3G.js} +1 -1
- package/dist/{chunk-OBRKDUCE.js → chunk-YIE5FU73.js} +3 -3
- package/dist/{chunk-KAHWO4XC.js → chunk-YMIEJZB6.js} +3 -3
- package/dist/{chunk-22PWPQVX.js → chunk-Z6X64P6C.js} +3 -3
- package/dist/{chunk-54FVSPRH.js → chunk-ZIYXPDKY.js} +2 -2
- package/dist/{clean-WYXHI2DO.js → clean-MJBET4EN.js} +26 -26
- package/dist/cli.js +64 -64
- package/dist/{cloud-X52P5AIE.js → cloud-WEDQYHZE.js} +4 -4
- package/dist/{cloud-TDXVUIUM.js → cloud-Z4Q76MLS.js} +3 -3
- package/dist/{cloudrun-36IR6ZKU.js → cloudrun-2KGSRAKA.js} +7 -7
- package/dist/{compare-R2KXOV2I.js → compare-MJKWQOD7.js} +41 -41
- package/dist/{compiler-FRWUFIQC.js → compiler-ETXRTUQC.js} +6 -6
- package/dist/{component-TIBQY7KQ.js → component-PZGKEJ6L.js} +3 -3
- package/dist/{compositions-NQPORXIX.js → compositions-N3FEEWH7.js} +14 -14
- package/dist/{contactSheet-PZXG3REG.js → contactSheet-HZMP42FZ.js} +4 -4
- package/dist/{curve-DTLRPBSB.js → curve-MWABBM7Q.js} +14 -14
- package/dist/{cuts-73HKU767.js → cuts-BQFSSNY7.js} +15 -15
- package/dist/{delete-HIHA436T.js → delete-HPHGJABK.js} +5 -5
- package/dist/deploy-JY2QOB5F.js +213 -0
- package/dist/{describeProject-4A5UXQ25.js → describeProject-S6AGYZWL.js} +11 -11
- package/dist/{destroy-4DOMPOYB.js → destroy-AZK7J4IR.js} +19 -15
- package/dist/{deterministicFonts-SKRN3TCP.js → deterministicFonts-2ZPRAI3C.js} +4 -4
- package/dist/{diff-JPADFUMV.js → diff-XDNFCAU4.js} +36 -36
- package/dist/{dist-EFXKPJJT.js → dist-6EE3Y4M7.js} +3 -3
- package/dist/{dist-KWXQYTRT.js → dist-EYEYDD4F.js} +18 -18
- package/dist/{dist-FKEKIXVL.js → dist-TYGDYK56.js} +4 -4
- package/dist/docs/rendering.md +2 -0
- package/dist/{doctor-3OO3CONL.js → doctor-6IRSMKZD.js} +16 -16
- package/dist/{energy-XFPN5YIL.js → energy-VCJ2FJEF.js} +15 -15
- package/dist/{events-QWPZT3EQ.js → events-DNTIMCUM.js} +17 -17
- package/dist/{events-G2MME5LQ.js → events-M6A7BT3V.js} +7 -7
- package/dist/{events-6ONCYFB5.js → events-QQYBD7JM.js} +2 -2
- package/dist/{extract-3EV72SMY.js → extract-X3IVXYHX.js} +15 -15
- package/dist/{face-JZS6P3AT.js → face-MZHXKBDB.js} +16 -16
- package/dist/{feedback-JVWBHRQG.js → feedback-TAMGYFUO.js} +15 -11
- package/dist/{ffmpeg-XDAITYSU.js → ffmpeg-XWPYYYB6.js} +10 -10
- package/dist/{figma-KPHTDMCQ.js → figma-WMD7AR2S.js} +3 -3
- package/dist/fontLocalizeCli.js +17 -17
- package/dist/{frames-KRVRJTKC.js → frames-OU2UOLBU.js} +17 -17
- package/dist/{generate-X2MYGFZX.js → generate-6F6QEFXW.js} +26 -26
- package/dist/{get-QM24BI7N.js → get-VVDO7DXG.js} +5 -5
- package/dist/{gpuPolicy-EFJJLHVV.js → gpuPolicy-CVNSHXHJ.js} +10 -10
- package/dist/{grade-compare-W5N5LH4X.js → grade-compare-O6LY2U73.js} +40 -40
- package/dist/{gsapParser-3H7ON3DO.js → gsapParser-L7TM3RGH.js} +49 -26
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-X5QRRVTV.js → heifImagePrep-J6TILZTM.js} +11 -11
- package/dist/{help-LWS4YWMO.js → help-XLSTTDHR.js} +1 -1
- package/dist/{history-SG34LBJY.js → history-DBCCWBDG.js} +13 -13
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-2FC43IYB.js → info-E46BWAQ7.js} +16 -16
- package/dist/{init-GKY5OKDV.js → init-23TG5W7S.js} +33 -33
- package/dist/{ink-7UK6YCUY.js → ink-6UFSNJRW.js} +15 -15
- package/dist/{inspect-ZB2NTNQA.js → inspect-RKI6XACH.js} +40 -40
- package/dist/{installer-GALVXWPC.js → installer-JWPK75BR.js} +8 -8
- package/dist/{keyframes-LSP4FLHT.js → keyframes-J65V5A2G.js} +10 -10
- package/dist/{lambda-3F32DRYF.js → lambda-RZSXXBJU.js} +19 -19
- package/dist/{layout-XPGS3QTX.js → layout-RJQUOYWB.js} +40 -40
- package/dist/{lint-Q5SO57RK.js → lint-4TUHKKA2.js} +12 -12
- package/dist/{lintProject-5CBL7VFV.js → lintProject-R6RTBSCZ.js} +3 -3
- package/dist/{list-FL5RYSFT.js → list-HOD2N4VS.js} +5 -5
- package/dist/{localPage-IOHQETQT.js → localPage-TC4NC3VL.js} +11 -11
- package/dist/{login-D4TCWDDW.js → login-NTOS3HKD.js} +4 -4
- package/dist/{look-G2BT4E4A.js → look-GC63E2I7.js} +15 -15
- package/dist/{manager-F6WI43DQ.js → manager-FICBET24.js} +11 -11
- package/dist/{measure-VXQQHYMZ.js → measure-WTQCSQ55.js} +11 -11
- package/dist/{media-treatment-ZXA3JZSL.js → media-treatment-KTZ6X2P2.js} +16 -16
- package/dist/{media-use-63LZFAID.js → media-use-K75FDXJ3.js} +10 -5
- package/dist/{models-MWUVU4CY.js → models-JKOA542M.js} +14 -14
- package/dist/{motionShot-U4YDT7UV.js → motionShot-A3TYKTQU.js} +20 -20
- package/dist/{normalize-audio-T5QJWU4P.js → normalize-audio-7JUM42YB.js} +12 -12
- package/dist/{open-DRLXHOW2.js → open-F6GI4TRA.js} +18 -18
- package/dist/{parakeetRunner-5OHEB3XZ.js → parakeetRunner-6XIAKJLS.js} +17 -17
- package/dist/{pipeline-MAIRRYD6.js → pipeline-7P7LGGQG.js} +13 -13
- package/dist/{play-33A3EXX3.js → play-DYOZLKWX.js} +36 -30
- package/dist/{preflight-HSWMKB2Q.js → preflight-VM4HSRBY.js} +11 -11
- package/dist/{present-HJIFEIDH.js → present-IINIEZJC.js} +30 -24
- package/dist/{preview-J6Z6RKMN.js → preview-NJO2UXWJ.js} +25 -25
- package/dist/{probe-RA4VOGYY.js → probe-LQQHFX5Q.js} +15 -15
- package/dist/{producer-KWP2B4A5.js → producer-LH2SZHJ2.js} +1 -1
- package/dist/{progress-TGYZ2TKQ.js → progress-IY6U35WH.js} +1 -1
- package/dist/{projectConfig-3YIGHLNE.js → projectConfig-BLACFLUW.js} +11 -11
- package/dist/{publication-QRUY2WJK.js → publication-NFF2BXIE.js} +6 -6
- package/dist/{publish-GV3I3GUL.js → publish-JST5Y4UR.js} +19 -17
- package/dist/{remove-background-UUITKXEQ.js → remove-background-WUBESLWN.js} +14 -14
- package/dist/{render-EC67XXR2.js → render-4KWUUC5H.js} +75 -45
- package/dist/{render-NHVDJRFD.js → render-DA4V7CEE.js} +8 -8
- package/dist/{render-ZITQXHJP.js → render-R4VNR4E2.js} +34 -30
- package/dist/{render-batch-RII4F3PD.js → render-batch-JMPG4RLT.js} +8 -8
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-R3FXDZKS.js → resolver-PNIFIDIE.js} +8 -8
- package/dist/{reverse-2GJ5Y3WM.js → reverse-4NI7D2C3.js} +1 -1
- package/dist/{run-24USN7TA.js → run-FWBIBLYE.js} +4 -3
- package/dist/{screenshotCapture-TEQVEBWB.js → screenshotCapture-KOLNFU7W.js} +13 -13
- package/dist/{sherpa-YIJR47GX.js → sherpa-W3BMN67E.js} +16 -16
- package/dist/sherpaWorker.js +1 -1
- package/dist/{sites-LILUBMRM.js → sites-QK3F4AUS.js} +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +15 -4
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +42 -6
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +17 -2
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +50 -4
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +11 -1
- package/dist/skills/media-use/scripts/lib/svg-sanitize.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +31 -0
- package/dist/{skills-DM3XC7RQ.js → skills-KQQVUFGO.js} +10 -10
- package/dist/{skillsUpdateCheck-ZHVFEOEN.js → skillsUpdateCheck-VY5PS46S.js} +3 -3
- package/dist/{snapshot-72RQQXHW.js → snapshot-VIEJQAUB.js} +82 -57
- package/dist/{src-C43KUEBY.js → src-HHPRCLEW.js} +11 -9
- package/dist/{src-SPFGPZZQ.js → src-MQU5F7GJ.js} +15 -15
- package/dist/{start-FSYSYLI7.js → start-ZBNNVFMU.js} +24 -24
- package/dist/{state-W3AS6O2J.js → state-7OIPR4BG.js} +1 -1
- package/dist/{staticProjectServer-RHBRRGPK.js → staticProjectServer-VPGZWJF4.js} +27 -27
- package/dist/{status-TE74GP4Q.js → status-RBZJYT7T.js} +17 -17
- package/dist/studio/assets/{codec-DXM4vA6G.js → codec-Bz1jsLs8.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D_016Ubp.js → hyperframes-player-cdH5Sz_t.js} +1 -1
- package/dist/studio/assets/{index-Ob53qo6K.js → index-D1l7izdf.js} +176 -176
- package/dist/studio/assets/{index-Bw4stQMm.js → index-DFRbcd5J.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-vbdgaMqL.js → pausedVideoDecoder-CgV8YB6S.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-JAOHMYPG.js → studio-api-EPZGLIWW.js} +18 -18
- package/dist/{studioServer-RHCPM4CN.js → studioServer-YFQQ2ESJ.js} +68 -62
- package/dist/{sync-UZJ7DOUA.js → sync-FRT55PVW.js} +15 -15
- package/dist/{synthesize-MDW4ZWTN.js → synthesize-FR5KPBRP.js} +4 -4
- package/dist/{telemetry-TFOEA2PM.js → telemetry-HAPPFR7P.js} +7 -7
- package/dist/{templates-2AHM5TZ3.js → templates-2IHYIWMA.js} +15 -15
- package/dist/{timeline-ZGV323MP.js → timeline-AY2F7BJF.js} +25 -25
- package/dist/{tokens-ERUFEWUA.js → tokens-B3G257V3.js} +2 -2
- package/dist/{transcribe-M5UZ2XFG.js → transcribe-EGQD32PT.js} +14 -14
- package/dist/{transcribe-6HLYS7NV.js → transcribe-RJCILGPA.js} +30 -30
- package/dist/{tts-IXX2HHHJ.js → tts-ZE776B4I.js} +1 -1
- package/dist/{update-JDVI2XTM.js → update-XTFIGQKW.js} +12 -11
- package/dist/{updateCheck-GDTYPXKO.js → updateCheck-M6YC52A4.js} +2 -2
- package/dist/{upgrade-SJKYBA4X.js → upgrade-AKLIZKAO.js} +5 -3
- package/dist/{urlDownloader-2QCNXXUG.js → urlDownloader-57A7Q7FC.js} +9 -9
- package/dist/{validate-IUTHTA2N.js → validate-YWSXJL54.js} +32 -32
- package/dist/{video-4BJ7WHI2.js → video-I5DDNK3Y.js} +12 -12
- package/dist/{voices-UDSFBPZX.js → voices-IBMJU73H.js} +24 -24
- package/dist/warmCheck.js +50 -50
- package/dist/warmCheckClient.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2X4PQEYM.js +0 -34
- package/dist/deploy-EB3FS2BT.js +0 -361
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
resolveItemWithDependencies,
|
|
12
12
|
resolveItemsByTag,
|
|
13
13
|
unreachableRegistryMessage
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AWT5FHTN.js";
|
|
15
15
|
import "./chunk-JHOCK3DG.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-JMV63CNH.js";
|
|
17
17
|
import "./chunk-AWDFDFI3.js";
|
|
18
18
|
import "./chunk-P6LJ4Y32.js";
|
|
19
19
|
import "./chunk-D3UCUI7G.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-G2XAFJ2B.js";
|
|
21
21
|
import "./chunk-JNHJX2BZ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-IEEIPTDW.js";
|
|
23
|
+
import "./chunk-3367VNGK.js";
|
|
24
24
|
import "./chunk-FXMKHHPO.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-YAZQBB2S.js";
|
|
26
26
|
import "./chunk-VC76R6W2.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-HZTRKUKE.js";
|
|
28
28
|
import "./chunk-RQVDTPGD.js";
|
|
29
29
|
import "./chunk-6MKM2RVL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-N7C7U3ZR.js";
|
|
31
31
|
import "./chunk-FR7YBU3H.js";
|
|
32
32
|
import "./chunk-DPVXBVLL.js";
|
|
33
33
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -23,7 +23,7 @@ var reverse_default = defineCommand({
|
|
|
23
23
|
description: "Open a reverse-any-video run (start)"
|
|
24
24
|
},
|
|
25
25
|
subCommands: {
|
|
26
|
-
start: () => import("./start-
|
|
26
|
+
start: () => import("./start-ZBNNVFMU.js").then((m) => m.default)
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
@@ -7,19 +7,20 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
analyzeTargets,
|
|
9
9
|
previewTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6RFCS4IU.js";
|
|
11
|
+
import "./chunk-CHJGVW5W.js";
|
|
11
12
|
import "./chunk-HBAUU3IK.js";
|
|
12
13
|
import "./chunk-PJNDSYJV.js";
|
|
13
14
|
import "./chunk-ZLDYDO64.js";
|
|
14
15
|
import "./chunk-7NDF2MO3.js";
|
|
15
16
|
import "./chunk-D3NWGOXW.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-YAS347ZS.js";
|
|
17
18
|
import "./chunk-JJ47LVJ7.js";
|
|
18
19
|
import "./chunk-D3UCUI7G.js";
|
|
19
20
|
import "./chunk-LP7B3JLC.js";
|
|
20
21
|
import "./chunk-JCNPHRGX.js";
|
|
21
22
|
import "./chunk-D3MUHMFG.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KRWPTZBY.js";
|
|
23
24
|
import "./chunk-JOQR4AP6.js";
|
|
24
25
|
import "./chunk-GR2E54E6.js";
|
|
25
26
|
import "./chunk-66W5IWLO.js";
|
|
@@ -9,40 +9,40 @@ import {
|
|
|
9
9
|
} from "./chunk-P36MALQF.js";
|
|
10
10
|
import {
|
|
11
11
|
screenshotOnceMore
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L72MPEM2.js";
|
|
13
13
|
import {
|
|
14
14
|
CaptureDirRefusedError,
|
|
15
15
|
ensureCaptureDirSync,
|
|
16
16
|
writeCaptureFileSync
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-77UB5EHM.js";
|
|
18
18
|
import {
|
|
19
19
|
waitForPageReady
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-G6JLFSII.js";
|
|
21
|
+
import "./chunk-TVQNABOI.js";
|
|
22
22
|
import {
|
|
23
23
|
isDegradableEvaluateTimeoutError
|
|
24
24
|
} from "./chunk-YGGZ23BB.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-EJPWGGPK.js";
|
|
26
26
|
import "./chunk-Z5J67X44.js";
|
|
27
27
|
import "./chunk-5S7W3TUO.js";
|
|
28
28
|
import "./chunk-D3MUHMFG.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-YIE5FU73.js";
|
|
30
|
+
import "./chunk-IEEIPTDW.js";
|
|
31
31
|
import "./chunk-3GXQPCJC.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-3367VNGK.js";
|
|
33
33
|
import "./chunk-FXMKHHPO.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YAZQBB2S.js";
|
|
35
35
|
import "./chunk-VC76R6W2.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-HZTRKUKE.js";
|
|
37
37
|
import "./chunk-RQVDTPGD.js";
|
|
38
38
|
import "./chunk-K4MJX7SR.js";
|
|
39
39
|
import "./chunk-WE42NVH7.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-VB3JZKMN.js";
|
|
41
41
|
import "./chunk-WVRAFHJU.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-KRWPTZBY.js";
|
|
43
43
|
import "./chunk-FBN2M2HK.js";
|
|
44
44
|
import "./chunk-6MKM2RVL.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-N7C7U3ZR.js";
|
|
46
46
|
import "./chunk-FR7YBU3H.js";
|
|
47
47
|
import "./chunk-DPVXBVLL.js";
|
|
48
48
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -17,49 +17,49 @@ import {
|
|
|
17
17
|
sherpaRuntimeLoadError,
|
|
18
18
|
sherpaUnsupportedReason,
|
|
19
19
|
transcribeWithSherpa
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-YMIEJZB6.js";
|
|
21
|
+
import "./chunk-PXDRW3QN.js";
|
|
22
22
|
import "./chunk-3S27CPV7.js";
|
|
23
23
|
import "./chunk-NL4RCLQF.js";
|
|
24
24
|
import "./chunk-6BEFEWFB.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-XH6LGDIB.js";
|
|
26
|
+
import "./chunk-YAS347ZS.js";
|
|
27
|
+
import "./chunk-D6BV6TTI.js";
|
|
28
|
+
import "./chunk-GCJRV7LU.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-5FFYMVRD.js";
|
|
33
33
|
import "./chunk-CDNVZEGQ.js";
|
|
34
34
|
import "./chunk-JZIEZCQM.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-
|
|
39
|
+
import "./chunk-EJPWGGPK.js";
|
|
40
40
|
import "./chunk-Z5J67X44.js";
|
|
41
41
|
import "./chunk-5S7W3TUO.js";
|
|
42
42
|
import "./chunk-D3MUHMFG.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-YIE5FU73.js";
|
|
44
|
+
import "./chunk-IEEIPTDW.js";
|
|
45
45
|
import "./chunk-3GXQPCJC.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-3367VNGK.js";
|
|
47
47
|
import "./chunk-FXMKHHPO.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-YAZQBB2S.js";
|
|
49
49
|
import "./chunk-VC76R6W2.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-HZTRKUKE.js";
|
|
51
51
|
import "./chunk-RQVDTPGD.js";
|
|
52
52
|
import "./chunk-PV4XID2A.js";
|
|
53
53
|
import "./chunk-X6JUUQCM.js";
|
|
54
54
|
import "./chunk-KGPLIH7B.js";
|
|
55
55
|
import "./chunk-K4MJX7SR.js";
|
|
56
56
|
import "./chunk-WE42NVH7.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-VB3JZKMN.js";
|
|
58
58
|
import "./chunk-WVRAFHJU.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-KRWPTZBY.js";
|
|
60
60
|
import "./chunk-FBN2M2HK.js";
|
|
61
61
|
import "./chunk-6MKM2RVL.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-N7C7U3ZR.js";
|
|
63
63
|
import "./chunk-FR7YBU3H.js";
|
|
64
64
|
import "./chunk-DPVXBVLL.js";
|
|
65
65
|
import "./chunk-GWTIFRF5.js";
|
package/dist/sherpaWorker.js
CHANGED
|
@@ -131,6 +131,7 @@ npx hyperframes render --docker # byte-identical
|
|
|
131
131
|
| `--keyframe-interval` | seconds, e.g. `2` | — | MP4 only. A keyframe at least every N seconds. |
|
|
132
132
|
| `--max-bitrate` | e.g. `8M` | — | MP4 only. Peak bitrate cap alongside the CRF/quality target. Not for WebM/MOV. |
|
|
133
133
|
| `--buffer-size` | e.g. `16M` | — | MP4 only. Buffer for `--max-bitrate` (default 2x it). Needs `--max-bitrate`. |
|
|
134
|
+
| `--chroma-subsampling` | 420, 444 | 420 | `444` keeps full-resolution colour for thin coloured text/UI (yuv444p, lossless PNG capture, slower). SDR MP4 + software encoder only; rejected with `--gpu`, `--hdr`, other formats. Many players cannot decode 4:4:4. |
|
|
134
135
|
| `--hdr` | flag | off | Force HDR output even with SDR sources. MP4 only. |
|
|
135
136
|
| `--sdr` | flag | off | Force SDR even with HDR sources. |
|
|
136
137
|
| `--workers` | number or `auto` | auto | Each worker spawns Chrome (~256 MB) |
|
|
@@ -64,9 +64,20 @@ function envFileText(path) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
// A
|
|
68
|
-
//
|
|
69
|
-
|
|
67
|
+
// A project .env may supply provider keys and harmless settings only, the same policy as the CLI. Everything
|
|
68
|
+
// else comes from the person's own environment: a project naming the HeyGen base (HEYGEN_API_BASE) would send their
|
|
69
|
+
// shell key to its host, and one setting HYPERFRAMES_PYTHON, NODE_OPTIONS, HYPERFRAMES_CONFIG_DIR or a credential
|
|
70
|
+
// file would choose the programs and the account these scripts use.
|
|
71
|
+
const PROJECT_ENV_KEYS = new Set([
|
|
72
|
+
"HEYGEN_API_KEY",
|
|
73
|
+
"HYPERFRAMES_API_KEY",
|
|
74
|
+
"ELEVENLABS_API_KEY",
|
|
75
|
+
"GEMINI_API_KEY",
|
|
76
|
+
"GOOGLE_API_KEY",
|
|
77
|
+
"HYPERFRAMES_TTS_CONCURRENCY",
|
|
78
|
+
"HYPERFRAMES_NO_TELEMETRY",
|
|
79
|
+
"DO_NOT_TRACK",
|
|
80
|
+
]);
|
|
70
81
|
|
|
71
82
|
// Walk up ≤5 dirs from startDir; load the first .env (shell env always wins).
|
|
72
83
|
export function loadEnvFromDir(startDir) {
|
|
@@ -87,7 +98,7 @@ export function loadEnvFromDir(startDir) {
|
|
|
87
98
|
const end = val.indexOf(q, 1);
|
|
88
99
|
val = end > 0 ? val.slice(1, end) : val.slice(1);
|
|
89
100
|
}
|
|
90
|
-
if (
|
|
101
|
+
if (PROJECT_ENV_KEYS.has(key) && !(key in process.env)) process.env[key] = val;
|
|
91
102
|
}
|
|
92
103
|
return;
|
|
93
104
|
}
|
|
@@ -233,32 +233,68 @@ test("loadEnvFromDir skips a .env folder and loads the .env file above it", () =
|
|
|
233
233
|
const root = mkdtempSync(join(tmpdir(), "heygen-env-"));
|
|
234
234
|
const project = join(root, "project");
|
|
235
235
|
mkdirSync(join(project, ".env"), { recursive: true });
|
|
236
|
-
writeFileSync(join(root, ".env"), "
|
|
236
|
+
writeFileSync(join(root, ".env"), "ELEVENLABS_API_KEY=from-parent\n");
|
|
237
|
+
const saved = process.env.ELEVENLABS_API_KEY;
|
|
238
|
+
delete process.env.ELEVENLABS_API_KEY;
|
|
237
239
|
try {
|
|
238
240
|
loadEnvFromDir(project);
|
|
239
|
-
assert.equal(process.env.
|
|
241
|
+
assert.equal(process.env.ELEVENLABS_API_KEY, "from-parent");
|
|
240
242
|
} finally {
|
|
241
|
-
delete process.env.
|
|
243
|
+
if (saved === undefined) delete process.env.ELEVENLABS_API_KEY;
|
|
244
|
+
else process.env.ELEVENLABS_API_KEY = saved;
|
|
242
245
|
rmSync(root, { recursive: true, force: true });
|
|
243
246
|
}
|
|
244
247
|
});
|
|
245
248
|
|
|
249
|
+
test("a project's .env supplies provider keys only, never programs, runtime options or another account", () => {
|
|
250
|
+
const keys = [
|
|
251
|
+
"ELEVENLABS_API_KEY",
|
|
252
|
+
"HYPERFRAMES_PYTHON",
|
|
253
|
+
"HYPERFRAMES_PARAKEET",
|
|
254
|
+
"NODE_OPTIONS",
|
|
255
|
+
"npm_config_registry",
|
|
256
|
+
"DYLD_INSERT_LIBRARIES",
|
|
257
|
+
"HYPERFRAMES_CONFIG_DIR",
|
|
258
|
+
"HEYGEN_ACCESS_TOKEN",
|
|
259
|
+
"HYPERFRAMES_CLI_ENTRY",
|
|
260
|
+
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
261
|
+
];
|
|
262
|
+
const saved = Object.fromEntries(keys.map((key) => [key, process.env[key]]));
|
|
263
|
+
for (const key of keys) delete process.env[key];
|
|
264
|
+
const project = mkdtempSync(join(tmpdir(), "heygen-env-"));
|
|
265
|
+
writeFileSync(join(project, ".env"), keys.map((key) => `${key}=/project/value`).join("\n"));
|
|
266
|
+
try {
|
|
267
|
+
loadEnvFromDir(project);
|
|
268
|
+
assert.equal(process.env.ELEVENLABS_API_KEY, "/project/value");
|
|
269
|
+
for (const key of keys.slice(1)) assert.equal(process.env[key], undefined, key);
|
|
270
|
+
} finally {
|
|
271
|
+
for (const key of keys) {
|
|
272
|
+
if (saved[key] === undefined) delete process.env[key];
|
|
273
|
+
else process.env[key] = saved[key];
|
|
274
|
+
}
|
|
275
|
+
rmSync(project, { recursive: true, force: true });
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
|
|
246
279
|
test("a project's .env cannot name the HeyGen base, so a shell key never leaves for its host", () => {
|
|
247
280
|
withCleanHeygenEnv(() => {
|
|
248
281
|
const project = mkdtempSync(join(tmpdir(), "heygen-env-"));
|
|
249
282
|
writeFileSync(
|
|
250
283
|
join(project, ".env"),
|
|
251
|
-
"HEYGEN_API_BASE=https://proxy.example.com\nHEYGEN_ALLOW_HTTP=1\
|
|
284
|
+
"HEYGEN_API_BASE=https://proxy.example.com\nHEYGEN_ALLOW_HTTP=1\nHYPERFRAMES_TTS_CONCURRENCY=3\n",
|
|
252
285
|
);
|
|
286
|
+
const savedConcurrency = process.env.HYPERFRAMES_TTS_CONCURRENCY;
|
|
287
|
+
delete process.env.HYPERFRAMES_TTS_CONCURRENCY;
|
|
253
288
|
try {
|
|
254
289
|
process.env.HEYGEN_API_KEY = "hg_shell_real";
|
|
255
290
|
loadEnvFromDir(project);
|
|
256
|
-
assert.equal(process.env.
|
|
291
|
+
assert.equal(process.env.HYPERFRAMES_TTS_CONCURRENCY, "3");
|
|
257
292
|
assert.equal(process.env.HEYGEN_API_BASE, undefined);
|
|
258
293
|
assert.equal(process.env.HEYGEN_ALLOW_HTTP, undefined);
|
|
259
294
|
assert.equal(heygenBase(), "https://api.heygen.com/v3");
|
|
260
295
|
} finally {
|
|
261
|
-
delete process.env.
|
|
296
|
+
if (savedConcurrency === undefined) delete process.env.HYPERFRAMES_TTS_CONCURRENCY;
|
|
297
|
+
else process.env.HYPERFRAMES_TTS_CONCURRENCY = savedConcurrency;
|
|
262
298
|
rmSync(project, { recursive: true, force: true });
|
|
263
299
|
}
|
|
264
300
|
});
|
|
@@ -62,13 +62,28 @@ export function pythonCommand() {
|
|
|
62
62
|
return cached;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
// `python -c` and `python -m` put the working directory first on sys.path, ahead of installed
|
|
66
|
+
// packages. Dropping that entry first keeps a project file named `pip`, `numpy` or any other
|
|
67
|
+
// imported module from running; `sys` is built into the interpreter.
|
|
68
|
+
const WITHOUT_WORKING_DIRECTORY =
|
|
69
|
+
"import sys\nif sys.path and sys.path[0] == '': del sys.path[0]\n";
|
|
70
|
+
|
|
71
|
+
function withoutWorkingDirectory(extraArgs) {
|
|
72
|
+
const [flag, value, ...rest] = extraArgs;
|
|
73
|
+
if (flag === "-c") return ["-c", WITHOUT_WORKING_DIRECTORY + value, ...rest];
|
|
74
|
+
if (flag !== "-m") return extraArgs;
|
|
75
|
+
const runModule = `import runpy\nrunpy.run_module(${JSON.stringify(value)}, run_name="__main__", alter_sys=True)\n`;
|
|
76
|
+
return ["-c", WITHOUT_WORKING_DIRECTORY + runModule, ...rest];
|
|
77
|
+
}
|
|
78
|
+
|
|
65
79
|
/**
|
|
66
80
|
* Build a `{ cmd, args }` for running Python 3 with `extraArgs`, using the
|
|
67
81
|
* resolved (or supplied) prefix. Keeps the launcher's `-3` (and any future
|
|
68
|
-
* prefix args) ahead of the caller's own arguments.
|
|
82
|
+
* prefix args) ahead of the caller's own arguments. Inline code and modules
|
|
83
|
+
* import only installed packages, never files in the working directory.
|
|
69
84
|
*/
|
|
70
85
|
export function pythonInvocation(extraArgs, prefix = pythonCommand()) {
|
|
71
|
-
return { cmd: prefix[0], args: [...prefix.slice(1), ...extraArgs] };
|
|
86
|
+
return { cmd: prefix[0], args: [...prefix.slice(1), ...withoutWorkingDirectory(extraArgs)] };
|
|
72
87
|
}
|
|
73
88
|
|
|
74
89
|
/** Test-only: clear the cached resolution so a test can re-probe. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { test } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
|
-
import {
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
4
|
+
import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4
5
|
import { tmpdir } from "node:os";
|
|
5
6
|
import { join } from "node:path";
|
|
6
7
|
import { defaultProbe, resolvePythonCommand, pythonInvocation } from "./python.mjs";
|
|
@@ -123,14 +124,59 @@ test("defaultProbe rejects a command that doesn't exist", () => {
|
|
|
123
124
|
assert.equal(defaultProbe("/nonexistent/hf-python", ["--version"]), false);
|
|
124
125
|
});
|
|
125
126
|
|
|
127
|
+
const DROP_CWD = "import sys\nif sys.path and sys.path[0] == '': del sys.path[0]\n";
|
|
128
|
+
|
|
126
129
|
test("pythonInvocation prepends the resolved prefix ahead of caller args", () => {
|
|
127
130
|
assert.deepEqual(pythonInvocation(["-c", "import x"], ["python"]), {
|
|
128
131
|
cmd: "python",
|
|
129
|
-
args: ["-c",
|
|
132
|
+
args: ["-c", `${DROP_CWD}import x`],
|
|
130
133
|
});
|
|
131
134
|
// The py launcher's -3 must stay ahead of the caller's own arguments.
|
|
132
|
-
assert.deepEqual(pythonInvocation(["-c", "import x"], ["py", "-3"]), {
|
|
135
|
+
assert.deepEqual(pythonInvocation(["-c", "import x", "arg"], ["py", "-3"]), {
|
|
133
136
|
cmd: "py",
|
|
134
|
-
args: ["-3", "-c",
|
|
137
|
+
args: ["-3", "-c", `${DROP_CWD}import x`, "arg"],
|
|
138
|
+
});
|
|
139
|
+
assert.deepEqual(pythonInvocation(["/abs/script.py", "--flag"], ["python"]), {
|
|
140
|
+
cmd: "python",
|
|
141
|
+
args: ["/abs/script.py", "--flag"],
|
|
135
142
|
});
|
|
136
143
|
});
|
|
144
|
+
|
|
145
|
+
test("pythonInvocation runs modules without the working directory on sys.path", () => {
|
|
146
|
+
const { args } = pythonInvocation(["-m", "pip", "install", "-q", "numpy"], ["python"]);
|
|
147
|
+
assert.deepEqual(args.slice(2), ["install", "-q", "numpy"]);
|
|
148
|
+
assert.equal(args[0], "-c");
|
|
149
|
+
assert.match(
|
|
150
|
+
args[1],
|
|
151
|
+
/^import sys\n.*\nimport runpy\nrunpy\.run_module\("pip", run_name="__main__", alter_sys=True\)\n$/s,
|
|
152
|
+
);
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
function hasPython3() {
|
|
156
|
+
return spawnSync("python3", ["--version"], { encoding: "utf-8" }).status === 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
test("a module planted in the working directory is never imported", { skip: !hasPython3() }, () => {
|
|
160
|
+
const project = mkdtempSync(join(tmpdir(), "hf-py-cwd-"));
|
|
161
|
+
try {
|
|
162
|
+
const marker = join(project, "ran");
|
|
163
|
+
writeFileSync(
|
|
164
|
+
join(project, "hf_probe_module.py"),
|
|
165
|
+
`open(${JSON.stringify(marker)}, "w").write("x")\n`,
|
|
166
|
+
);
|
|
167
|
+
writeFileSync(
|
|
168
|
+
join(project, "hf_probe_main.py"),
|
|
169
|
+
`open(${JSON.stringify(marker)}, "w").write("x")\n`,
|
|
170
|
+
);
|
|
171
|
+
const env = { ...process.env, PYTHONSAFEPATH: "" };
|
|
172
|
+
const inline = pythonInvocation(["-c", "import hf_probe_module"], ["python3"]);
|
|
173
|
+
assert.notEqual(spawnSync(inline.cmd, inline.args, { cwd: project, env }).status, 0);
|
|
174
|
+
const module = pythonInvocation(["-m", "hf_probe_main"], ["python3"]);
|
|
175
|
+
assert.notEqual(spawnSync(module.cmd, module.args, { cwd: project, env }).status, 0);
|
|
176
|
+
assert.equal(existsSync(marker), false);
|
|
177
|
+
const pip = pythonInvocation(["-m", "json.tool", "--help"], ["python3"]);
|
|
178
|
+
assert.equal(spawnSync(pip.cmd, pip.args, { cwd: project, env }).status, 0);
|
|
179
|
+
} finally {
|
|
180
|
+
rmSync(project, { recursive: true, force: true });
|
|
181
|
+
}
|
|
182
|
+
});
|
|
@@ -18,7 +18,7 @@ import { refuseUnderLimit } from "../../../scripts/lib/credit-limit.mjs";
|
|
|
18
18
|
import { spawn, spawnSync } from "node:child_process";
|
|
19
19
|
import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { tmpdir } from "node:os";
|
|
21
|
-
import { dirname, join } from "node:path";
|
|
21
|
+
import { dirname, isAbsolute, join } from "node:path";
|
|
22
22
|
import { heygenAuthHeaders, heygenCredential, heygenJSON, heygenMessage } from "./heygen.mjs";
|
|
23
23
|
import { pythonInvocation } from "./python.mjs";
|
|
24
24
|
import { synthesizeGemini } from "./gemini-tts.mjs";
|
|
@@ -146,6 +146,14 @@ export function resolveNpxCliPath(
|
|
|
146
146
|
return pathExists(besideNode) ? besideNode : null;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
// A HyperFrames CLI that launches this code hands over its own entry file, so `npx hyperframes`
|
|
150
|
+
// runs that same build with the same Node instead of whatever npx resolves from the project.
|
|
151
|
+
function launchingCliCommand(cmd, args, env = process.env) {
|
|
152
|
+
const entry = env.HYPERFRAMES_CLI_ENTRY;
|
|
153
|
+
if (cmd !== "npx" || args[0] !== "hyperframes" || !entry || !isAbsolute(entry)) return null;
|
|
154
|
+
return { cmd: process.execPath, args: [entry, ...args.slice(1).map((arg) => String(arg))] };
|
|
155
|
+
}
|
|
156
|
+
|
|
149
157
|
export function resolveSpawnCommand(
|
|
150
158
|
cmd,
|
|
151
159
|
args,
|
|
@@ -154,6 +162,8 @@ export function resolveSpawnCommand(
|
|
|
154
162
|
env = process.env,
|
|
155
163
|
pathExists = existsSync,
|
|
156
164
|
) {
|
|
165
|
+
const cli = launchingCliCommand(cmd, args, env);
|
|
166
|
+
if (cli) return { ...cli, opts: { stdio: "ignore", windowsHide: true, ...opts } };
|
|
157
167
|
if (cmd !== "npx" || platform !== "win32") {
|
|
158
168
|
return { cmd, args, opts: { stdio: "ignore", ...opts } };
|
|
159
169
|
}
|