hyperframes 0.9.55 → 0.9.56
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-2LZ5XA27.js → add-KW7OTOWF.js} +19 -19
- package/dist/{agentPromptGenerator-RSFEFNFL.js → agentPromptGenerator-NNXUWNU4.js} +11 -11
- package/dist/{animatedGifPrep-AX4MK2QD.js → animatedGifPrep-6ATQHQON.js} +12 -12
- package/dist/api.js +40 -39
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-XYQJVHR2.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-WTFR2Z5Q.js → assetCataloger-DENJPUBH.js} +12 -12
- package/dist/{audio-U2OIHTUI.js → audio-LB7HQYPJ.js} +21 -21
- package/dist/{auth-DXESNULL.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-DWT4YYU2.js → autoUpdate-ITCP2JDM.js} +2 -2
- package/dist/{avatars-EL5RBI4P.js → avatars-2K2C74EQ.js} +15 -14
- package/dist/{backgroundChecks-T2DL425O.js → backgroundChecks-UOTBCWPN.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-HU756KUO.js → beats-TG6ZB3XH.js} +10 -10
- package/dist/{benchmark-HBNCPXH5.js → benchmark-RU5MLZHE.js} +16 -16
- package/dist/{billing-LGHM3LC7.js → billing-VB5PYYSN.js} +15 -15
- package/dist/{browser-XIFUT5OB.js → browser-VSQRY5GG.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-JPPBCCVV.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-ZY7G3QSM.js → capture-M4FL7MWI.js} +22 -22
- package/dist/{capture-B6DSZD2P.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-2WRG6SNW.js → captureCompositionFrame-XF67Q6YK.js} +17 -17
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-CUEOQ4PJ.js → catalog-24EGH662.js} +19 -19
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-BAYJTXAL.js → catch-up-L23HGDLB.js} +13 -13
- package/dist/{check-KGXBQPRZ.js → check-F4HQVV2M.js} +50 -48
- package/dist/{checkAudio-6PI7DJLP.js → checkAudio-6DT3ONR7.js} +13 -13
- package/dist/{checkBrowser-4SGXUL27.js → checkBrowser-S7P4X7QV.js} +40 -40
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-FMYXLRJN.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-EXEX7TSU.js → chunk-43CQTZGB.js} +11 -12
- package/dist/{chunk-ND5SQJAB.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-J424KJXV.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KHEOHL5O.js → chunk-4WSJ5MUN.js} +1 -1
- package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
- package/dist/chunk-56T2OGYR.js +5085 -0
- package/dist/{chunk-TMLKMCZK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-CHQWDBUM.js → chunk-5ZDNSYTO.js} +8 -13
- package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-PCNNMAUX.js → chunk-6LONEKJR.js} +211 -155
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-AHXRYOTC.js → chunk-6XRXUMFG.js} +1 -1
- package/dist/{chunk-W2GXQ3CR.js → chunk-7DKWEIH4.js} +9 -9
- package/dist/{chunk-QGQYMSYM.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OYEGPK3Q.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/{chunk-4ZQG3Z3J.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-3USMIMBB.js → chunk-APCVZGU6.js} +395 -109
- package/dist/{chunk-NUGAYGT3.js → chunk-B6BWLFAF.js} +1 -1
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-JS7UI73E.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-E7GHBT2M.js → chunk-BPYNILOZ.js} +4 -4
- package/dist/{chunk-XFSZ3IXC.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-32IRBM3V.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-KVYHRUZX.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-FLQT2FVH.js → chunk-BW4H55SU.js} +1 -1
- package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
- package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
- package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
- package/dist/{chunk-6EG3W5AD.js → chunk-CLRHKYOK.js} +5 -5
- package/dist/{chunk-MDOMSEK2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-NISP57R3.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-MO5NTFSC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-5LSMAWK5.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-TFVIXR6V.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-OWQWMQTY.js → chunk-CZCZ5YXT.js} +1 -1
- package/dist/{chunk-7DJCG5ED.js → chunk-D3WRRPHI.js} +5 -5
- package/dist/{chunk-LGYCWN3Q.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-K2VFTUAA.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-XLQUCTC2.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-HLDUHLYO.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-QX4TZ2RK.js → chunk-GTC2STHN.js} +72 -54
- package/dist/{chunk-X4KIL5BW.js → chunk-HCQXGGVY.js} +14 -14
- package/dist/{chunk-OOWZ6M75.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-TN3WGE3L.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-NFLH3TQ5.js → chunk-ICDGP335.js} +13 -10
- package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
- package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
- package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
- package/dist/{chunk-6BGTTCKN.js → chunk-IRZUZ32B.js} +3 -3
- package/dist/{chunk-RBOKZ5ED.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-BOEEHWDX.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-VPX4GVGQ.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-TEA4ZEHB.js → chunk-L5CBCPUH.js} +7 -7
- package/dist/{chunk-JVA3SAGB.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-NHNFBLBM.js → chunk-LK7F7P2X.js} +5 -2
- package/dist/{chunk-WQGQCSRY.js → chunk-LRQEIKFT.js} +4 -4
- package/dist/{chunk-2LQJHVI7.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-KD33HZPP.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-FLHL32SV.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-UCLUH5AG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-NMQCIUBE.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-CRRVULYR.js → chunk-PCKKKICA.js} +15 -3
- package/dist/{chunk-TPLO6NJI.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-4S53OP2C.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-BMJGWQ5X.js → chunk-PHAZT6EB.js} +1 -1
- package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
- package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
- package/dist/{chunk-DQHFS4AE.js → chunk-Q2TT62RQ.js} +3 -3
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-2XZ76TF4.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-5BWIBP2F.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-NFNYYBD6.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-3ANC4SO2.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-FPRHOB5W.js → chunk-RFULFCYW.js} +2 -2
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-PLFOZIEH.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-QWBJABCA.js → chunk-T5HYPGST.js} +3 -3
- package/dist/{chunk-OM2WIZOR.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-QQLVSUO7.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-OAV5ESA6.js → chunk-UIMXEY4U.js} +4 -4
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKZ5FGV7.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-YY7ZJHL3.js → chunk-VCSQLM36.js} +4 -4
- package/dist/{chunk-MWTOYGIJ.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-ZLG2E7GC.js → chunk-W4AR7UZH.js} +1 -1
- package/dist/{chunk-TULCSCC4.js → chunk-WFB4XPJR.js} +9 -9
- package/dist/{chunk-UHE44FC4.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-GKOF2RS3.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-27YDEBOP.js → chunk-WUY74LHU.js} +1 -1
- package/dist/{chunk-3WG7IC5Z.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-RIAH7WEL.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-NCSBBZQ5.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-EUJSQHIL.js → chunk-XLP34AJR.js} +1 -1
- package/dist/{chunk-FOKS5HQ2.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-UHVB2TVW.js → chunk-YFWFCKKF.js} +149 -129
- package/dist/{chunk-N4CJSWTO.js → chunk-YOMFN6HH.js} +1 -1
- package/dist/{chunk-UV3I2TND.js → chunk-YQSVPHOS.js} +26 -36
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/{chunk-YSN6HPD3.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KG24ATFM.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-SXRW77YG.js → clean-VB6BH3FV.js} +23 -23
- package/dist/cli.js +64 -64
- package/dist/{cloud-PUCWVAS2.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-SXXONVD6.js → cloudrun-VKBARVVT.js} +11 -9
- package/dist/{compare-K65FNAEA.js → compare-SE55PMC3.js} +39 -39
- package/dist/{compiler-QISQISFV.js → compiler-WK7ABGRW.js} +5 -5
- package/dist/{component-YYCDOLP2.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-LCQTIYIU.js → compositions-ZZWLQNDQ.js} +20 -19
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-T7JAY3EM.js → curve-4RQQKZ2K.js} +15 -14
- package/dist/{cuts-E54SOAWH.js → cuts-M3QU2CBE.js} +16 -15
- package/dist/{delete-GLQNSOWH.js → delete-5ZZNPK5G.js} +5 -5
- package/dist/{deploy-SPMSEG67.js → deploy-VR5SQP4U.js} +5 -3
- package/dist/{describeProject-YPTJWL3O.js → describeProject-NU5BVVIA.js} +11 -11
- package/dist/{destroy-FMAAH4KQ.js → destroy-FFS62PAW.js} +5 -3
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-OT5SHVFD.js → diff-NQGTF6GR.js} +52 -47
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-RYTNYHMF.js → dist-APXZ5EN2.js} +2 -2
- package/dist/{dist-EO7BILWH.js → dist-B7IBHWIW.js} +16 -14
- package/dist/{doctor-L4SNKUBM.js → doctor-FATJGTPD.js} +15 -15
- package/dist/{energy-AXQGYZF6.js → energy-PHDK6SKL.js} +16 -15
- package/dist/{events-EBA6KHJV.js → events-25VQ2O66.js} +7 -7
- package/dist/{events-7QP5H6PW.js → events-OIWXSBZA.js} +21 -19
- package/dist/{events-5T25R4EH.js → events-RXVHG2NT.js} +2 -2
- package/dist/{execute-PTHC7Y5Q.js → execute-MKP4Z573.js} +31 -31
- package/dist/{extract-76UPXPJC.js → extract-YYNYXPOC.js} +16 -15
- package/dist/{face-YZON2N2E.js → face-JSTMFQRM.js} +17 -16
- package/dist/{feedback-KAYKPPHI.js → feedback-PY6LMZCX.js} +16 -16
- package/dist/{ffmpeg-T3KK5XKT.js → ffmpeg-KLIB55FK.js} +10 -10
- package/dist/{figma-NJ6CAJGV.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -16
- package/dist/{frames-KNR4CSB4.js → frames-BLZCBXO7.js} +18 -17
- package/dist/{generate-ISCPAKHT.js → generate-DMVEKZEV.js} +27 -26
- package/dist/{get-X7QNC3PE.js → get-3WZDQ5YM.js} +5 -5
- package/dist/{gpuPolicy-ZXN5S3HE.js → gpuPolicy-TT6UCOLQ.js} +10 -10
- package/dist/{grade-compare-XD3IONCL.js → grade-compare-F5DJ53XH.js} +41 -39
- package/dist/{heifImagePrep-EFBHDH4Z.js → heifImagePrep-UV23RWOG.js} +13 -13
- package/dist/{help-VUFIY5X4.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-OM3MHRB2.js → history-UOZ4RDEZ.js} +17 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -76
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-G64344ST.js → info-A6KSO64E.js} +16 -16
- package/dist/{init-2N6SDLZB.js → init-OQU46K3Q.js} +46 -42
- package/dist/{ink-T5BJE4D2.js → ink-HGRKLGII.js} +16 -15
- package/dist/{inspect-6I4YSARX.js → inspect-BKENKUXF.js} +38 -38
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-PT3H7WHD.js → keyframes-UDQGWKPW.js} +10 -10
- package/dist/{lambda-NEQXIHUM.js → lambda-SHXQFHLE.js} +19 -19
- package/dist/{layout-FRWUKOGX.js → layout-CJAVQ4D3.js} +38 -38
- package/dist/{lint-GXPONOPU.js → lint-RAPNYPWS.js} +11 -11
- package/dist/{lintProject-J4YTLKPW.js → lintProject-JZRM7UKH.js} +2 -2
- package/dist/{list-JO7WSM6Y.js → list-4BKFMJQN.js} +5 -5
- package/dist/{localPage-XDWFSE4K.js → localPage-BJW2TP77.js} +11 -11
- package/dist/{login-XMFEIEXG.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-U77ADJ4V.js → look-V2I6BGUY.js} +16 -15
- package/dist/{manager-RNMX2WTR.js → manager-OS2FYJI5.js} +11 -11
- package/dist/{manager-ZRETV4LQ.js → manager-WQWU5VJ4.js} +2 -2
- package/dist/{measure-JNJAPVVN.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-MFNKKPM7.js → media-treatment-CS7BVMJW.js} +16 -16
- package/dist/{media-use-ZKHL2IN2.js → media-use-W3DGCKFB.js} +3 -3
- package/dist/{models-PGO2ERAU.js → models-ZOGYW2SC.js} +15 -15
- package/dist/{motionShot-AG4LR5Q5.js → motionShot-IMRI7W7T.js} +21 -21
- package/dist/{normalize-audio-FO3JCPD3.js → normalize-audio-HXTFAZUK.js} +11 -11
- package/dist/{open-ZI6KK3GM.js → open-LJDQ37KV.js} +21 -20
- package/dist/{parakeetRunner-CBO3HRL6.js → parakeetRunner-CKMSKDH6.js} +17 -17
- package/dist/{pipeline-VWVNH5ZC.js → pipeline-ZNCYOTUH.js} +13 -13
- package/dist/{plan-UHZYW3K2.js → plan-NCFS5T6W.js} +23 -23
- package/dist/{play-IVTXE4JW.js → play-5UZDFFXJ.js} +34 -28
- package/dist/{preflight-QJNKKMPE.js → preflight-H5XYFKFF.js} +12 -12
- package/dist/{present-NB6DAJ6K.js → present-EFXUFT5Y.js} +58 -43
- package/dist/{preview-FIWAZ5PX.js → preview-RV7ALGDQ.js} +30 -29
- package/dist/{probe-VQJOUG65.js → probe-UB6DM2Q3.js} +16 -15
- package/dist/{producer-NP6X5UBL.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-UVA26HJW.js → projectConfig-EUH5DILC.js} +11 -11
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-MRQ2K62E.js → publish-225GB7R4.js} +21 -21
- package/dist/{remove-background-RG6DCWOW.js → remove-background-W2RLEQHJ.js} +14 -14
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-XWBMMSC5.js → render-WMWCCMWI.js} +61 -49
- package/dist/{render-6B7YPN7H.js → render-Y3JKWEN4.js} +33 -33
- package/dist/{render-batch-Y3RRNDNJ.js → render-batch-GK6CDHKN.js} +9 -8
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K6VAEZVH.js → resolver-5CRZD5XB.js} +8 -8
- package/dist/{reverse-5RDRLKAP.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-OQK3QU4I.js → run-FQ76QNES.js} +4 -4
- package/dist/{screenshotCapture-VDITRAK2.js → screenshotCapture-R6VE66NR.js} +13 -13
- package/dist/{service-C3UT4LYP.js → service-P3IKHZFC.js} +14 -14
- package/dist/{share-JU3IDHUV.js → share-BU4VQL3B.js} +17 -17
- package/dist/{sherpa-Z2Z4XLXV.js → sherpa-44GLXY3A.js} +16 -16
- package/dist/sherpaWorker.js +3 -1
- package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/format.md +11 -2
- package/dist/skills/hyperframes/references/overlays.md +1 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
- package/dist/skills/hyperframes-cli/SKILL.md +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
- package/dist/{skills-24YEOJGP.js → skills-H4OZQ6VR.js} +10 -10
- package/dist/{skillsUpdateCheck-5R4JJ27G.js → skillsUpdateCheck-U3XZX7UE.js} +3 -3
- package/dist/{snapshot-T4REEKFX.js → snapshot-FJQVXBFB.js} +53 -51
- package/dist/{src-RMJVAEKT.js → src-O6BHCR4O.js} +15 -15
- package/dist/{src-EKGFNTTY.js → src-PAM5LJ6K.js} +9 -9
- package/dist/{start-E5RIH3KS.js → start-R7CYOQ5S.js} +25 -24
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-LEM5W3S5.js → staticProjectServer-4X2OSUN4.js} +25 -25
- package/dist/{status-CSHJWWOP.js → status-VN3FAN4M.js} +15 -15
- package/dist/studio/assets/{hyperframes-player-BroIQA4E.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-Be7DZynj.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-CiF0D62S.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-RXcvblHS.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-COJYCMRI.js → studio-api-V3TMIWFB.js} +16 -14
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-62ZTBLFM.js → studioServer-GY2ZTR2E.js} +85 -73
- package/dist/{sync-CLRYHWYE.js → sync-2V3JYCDE.js} +16 -15
- package/dist/{synthesize-Z2H32QPU.js → synthesize-TQELPMS5.js} +3 -3
- package/dist/{telemetry-DWA36DFX.js → telemetry-KMRZ3IJV.js} +7 -7
- package/dist/{templates-LXMQR35F.js → templates-EEFY4FPS.js} +125 -33
- package/dist/{timeline-LMKTDKRT.js → timeline-HSRGYZ3Q.js} +23 -23
- package/dist/{tokens-VJ765KFG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-TICRK4IY.js → transcribe-CNIQYQ52.js} +31 -30
- package/dist/{transcribe-3WASFP7Z.js → transcribe-GFFWRWK3.js} +13 -13
- package/dist/{tts-5YJV6UXX.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-Q26QGCBW.js → update-BDMPUNNA.js} +12 -12
- package/dist/{updateCheck-7R4S46TT.js → updateCheck-43UZ2USJ.js} +2 -2
- package/dist/{upgrade-76TFHAGI.js → upgrade-Z5B57UWL.js} +5 -5
- package/dist/{urlDownloader-AE4UQI5A.js → urlDownloader-KDZ76BKM.js} +9 -9
- package/dist/{validate-BEYREWEL.js → validate-UQKZNR5K.js} +30 -30
- package/dist/{video-47AVLNWM.js → video-VR4363OG.js} +12 -12
- package/dist/{voices-5O6OAL6H.js → voices-GUWAM3TH.js} +25 -24
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import "../../../scripts/lib/windows-exe-search.mjs";
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { existsSync, mkdirSync, openSync, closeSync, rmSync } from "node:fs";
|
|
17
|
+
import { homedir } from "node:os";
|
|
17
18
|
import { join } from "node:path";
|
|
18
19
|
import { downloadTo, searchSounds } from "./heygen.mjs";
|
|
19
20
|
import { agentWritePath } from "./media-record.mjs";
|
|
@@ -164,7 +165,9 @@ export function generateBgmDetached({
|
|
|
164
165
|
const script = musicgenScript({ prompt, abs, targetS, seedS });
|
|
165
166
|
const { cmd, args } = pythonInvocation(["-c", script]);
|
|
166
167
|
rmSync(abs, { force: true });
|
|
167
|
-
|
|
168
|
+
// transformers reads "facebook/musicgen-small" as a folder when one exists in the working
|
|
169
|
+
// directory, so the model is never looked up in the project.
|
|
170
|
+
const proc = spawn(cmd, args, { cwd: homedir(), detached: true, stdio: ["ignore", fd, fd] });
|
|
168
171
|
proc.unref();
|
|
169
172
|
closeSync(fd);
|
|
170
173
|
return {
|
|
@@ -1,6 +1,15 @@
|
|
|
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 {
|
|
5
|
+
existsSync,
|
|
6
|
+
mkdirSync,
|
|
7
|
+
mkdtempSync,
|
|
8
|
+
readFileSync,
|
|
9
|
+
realpathSync,
|
|
10
|
+
rmSync,
|
|
11
|
+
writeFileSync,
|
|
12
|
+
} from "node:fs";
|
|
4
13
|
import { join } from "node:path";
|
|
5
14
|
import { tmpdir } from "node:os";
|
|
6
15
|
import { appendRecord } from "../../../scripts/lib/manifest.mjs";
|
|
@@ -17,6 +26,58 @@ import {
|
|
|
17
26
|
|
|
18
27
|
const dbfs = (linear) => 20 * Math.log10(linear);
|
|
19
28
|
|
|
29
|
+
// fails without the fix: MusicGen started in the project, and transformers reads
|
|
30
|
+
// "facebook/musicgen-small" as a folder when the working directory has one.
|
|
31
|
+
test(
|
|
32
|
+
"local MusicGen starts in the home folder, so a project folder named like the model is never read",
|
|
33
|
+
{ skip: process.platform === "win32" ? "the stand-in python is an sh script" : false },
|
|
34
|
+
async () => {
|
|
35
|
+
const root = mkdtempSync(join(tmpdir(), "bgm-musicgen-cwd-"));
|
|
36
|
+
try {
|
|
37
|
+
const home = join(root, "home");
|
|
38
|
+
const project = join(root, "project");
|
|
39
|
+
mkdirSync(home);
|
|
40
|
+
mkdirSync(join(project, "facebook", "musicgen-small"), { recursive: true });
|
|
41
|
+
const python = join(root, "python");
|
|
42
|
+
const record = join(root, "record");
|
|
43
|
+
writeFileSync(
|
|
44
|
+
python,
|
|
45
|
+
`#!/bin/sh\ncase "$*" in --version) echo "Python 3.12.0";; *from_pretrained*) printf '%s' "$PWD" > "${record}";; esac\nexit 0\n`,
|
|
46
|
+
{ mode: 0o755 },
|
|
47
|
+
);
|
|
48
|
+
const bgm = new URL("./bgm.mjs", import.meta.url).href;
|
|
49
|
+
const ran = spawnSync(
|
|
50
|
+
process.execPath,
|
|
51
|
+
[
|
|
52
|
+
"--input-type=module",
|
|
53
|
+
"-e",
|
|
54
|
+
`const { generateBgmDetached } = await import(${JSON.stringify(bgm)});
|
|
55
|
+
const meta = generateBgmDetached({ prompt: "calm", durationS: 5, hyperframesDir: process.cwd(), hasVoice: false });
|
|
56
|
+
console.log(JSON.stringify(meta));`,
|
|
57
|
+
],
|
|
58
|
+
{
|
|
59
|
+
cwd: project,
|
|
60
|
+
encoding: "utf8",
|
|
61
|
+
env: {
|
|
62
|
+
...process.env,
|
|
63
|
+
HOME: home,
|
|
64
|
+
HYPERFRAMES_PYTHON: python,
|
|
65
|
+
GEMINI_API_KEY: "",
|
|
66
|
+
GOOGLE_API_KEY: "",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
);
|
|
70
|
+
assert.equal(ran.status, 0, ran.stderr);
|
|
71
|
+
assert.equal(JSON.parse(ran.stdout).provider, "musicgen", ran.stdout);
|
|
72
|
+
for (let i = 0; i < 50 && !existsSync(record); i++)
|
|
73
|
+
await new Promise((r) => setTimeout(r, 100));
|
|
74
|
+
assert.equal(readFileSync(record, "utf8"), realpathSync(home));
|
|
75
|
+
} finally {
|
|
76
|
+
rmSync(root, { recursive: true, force: true });
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
|
|
20
81
|
test("BGM under narration is a bed near -18 dB", () => {
|
|
21
82
|
assert.equal(bgmDefaultVolume(true), BGM_BED_VOLUME);
|
|
22
83
|
assert.equal(BGM_BED_VOLUME, 0.12);
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import "../../../scripts/lib/windows-exe-search.mjs";
|
|
19
19
|
import { spawnSync } from "node:child_process";
|
|
20
|
+
import { resolve } from "node:path";
|
|
20
21
|
|
|
21
22
|
// Accept only an interpreter whose `--version` reports Python 3, as the CLI's
|
|
22
23
|
// `validatePythonOverride()` does. Exit status alone would take a Python 2
|
|
@@ -45,7 +46,9 @@ export function resolvePythonCommand(
|
|
|
45
46
|
probe = defaultProbe,
|
|
46
47
|
env = process.env,
|
|
47
48
|
) {
|
|
48
|
-
|
|
49
|
+
// A path with a folder in it means the caller's folder, so it still names the same file when a
|
|
50
|
+
// child runs elsewhere, as MusicGen does; a bare name keeps its PATH lookup.
|
|
51
|
+
const override = env.HYPERFRAMES_PYTHON && withFolder(env.HYPERFRAMES_PYTHON);
|
|
49
52
|
if (override && probe(override, ["--version"])) return [override];
|
|
50
53
|
const candidates =
|
|
51
54
|
platform === "win32" ? [["python3"], ["python"], ["py", "-3"]] : [["python3"], ["python"]];
|
|
@@ -55,6 +58,11 @@ export function resolvePythonCommand(
|
|
|
55
58
|
return candidates[0];
|
|
56
59
|
}
|
|
57
60
|
|
|
61
|
+
/** `value` made absolute against the working folder when it names a folder, as is otherwise. */
|
|
62
|
+
function withFolder(value) {
|
|
63
|
+
return /[\\/]/.test(value) ? resolve(value) : value;
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
let cached = null;
|
|
59
67
|
|
|
60
68
|
/** Cached `resolvePythonCommand()` — probing spawns, so resolve at most once. */
|
|
@@ -4,6 +4,7 @@ import { spawnSync } from "node:child_process";
|
|
|
4
4
|
import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
6
|
import { join } from "node:path";
|
|
7
|
+
import { resolve } from "node:path";
|
|
7
8
|
import { defaultProbe, resolvePythonCommand, pythonInvocation } from "./python.mjs";
|
|
8
9
|
|
|
9
10
|
// Regression: on Windows a standard python.org install has no `python3.exe`
|
|
@@ -180,3 +181,18 @@ test("a module planted in the working directory is never imported", { skip: !has
|
|
|
180
181
|
rmSync(project, { recursive: true, force: true });
|
|
181
182
|
}
|
|
182
183
|
});
|
|
184
|
+
|
|
185
|
+
// fails without the fix: a relative HYPERFRAMES_PYTHON was probed in the caller's folder but run
|
|
186
|
+
// from wherever the child started, so MusicGen, which starts in the home folder, could not find it.
|
|
187
|
+
test("a HYPERFRAMES_PYTHON with a folder in it means the caller's folder; a bare name keeps PATH lookup", () => {
|
|
188
|
+
const probed = [];
|
|
189
|
+
const probe = (cmd) => (probed.push(cmd), true);
|
|
190
|
+
assert.deepEqual(
|
|
191
|
+
resolvePythonCommand("linux", probe, { HYPERFRAMES_PYTHON: "./venv/bin/python" }),
|
|
192
|
+
[resolve("venv/bin/python")],
|
|
193
|
+
);
|
|
194
|
+
assert.deepEqual(probed, [resolve("venv/bin/python")]);
|
|
195
|
+
assert.deepEqual(resolvePythonCommand("linux", probe, { HYPERFRAMES_PYTHON: "python3.12" }), [
|
|
196
|
+
"python3.12",
|
|
197
|
+
]);
|
|
198
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
2
|
-
import { extname, join } from "node:path";
|
|
1
|
+
import { existsSync, readFileSync, realpathSync, statSync } from "node:fs";
|
|
2
|
+
import { extname, isAbsolute, join, relative } from "node:path";
|
|
3
3
|
import { rankMediaRows } from "./media-search.mjs";
|
|
4
4
|
|
|
5
5
|
const LIB_DIR =
|
|
@@ -80,6 +80,31 @@ export function extensionForBundledSfxFile(filename) {
|
|
|
80
80
|
return extname(filename) || ".mp3";
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
const INDEX_FILE_PREFIX = "skills/media-use/audio/assets/sfx/";
|
|
84
|
+
const AUDIO_FILE_NAME =
|
|
85
|
+
/^[A-Za-z0-9][A-Za-z0-9_-]*(?:\.[A-Za-z0-9_-]+)*\.(?:mp3|wav|ogg|m4a|aac|flac)$/i;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Map a media index row's `file` to an audio file inside the bundled SFX folder, or null.
|
|
89
|
+
* The only accepted form is `skills/media-use/audio/assets/sfx/<name>` with a plain audio
|
|
90
|
+
* file name; the result must still be a regular file inside the folder after realpath.
|
|
91
|
+
*/
|
|
92
|
+
export function bundledSfxAssetPath(file, libraryDir = LIB_DIR) {
|
|
93
|
+
if (typeof file !== "string" || !file.startsWith(INDEX_FILE_PREFIX)) return null;
|
|
94
|
+
const name = file.slice(INDEX_FILE_PREFIX.length);
|
|
95
|
+
if (!AUDIO_FILE_NAME.test(name)) return null;
|
|
96
|
+
try {
|
|
97
|
+
const root = realpathSync(libraryDir);
|
|
98
|
+
const asset = realpathSync(join(root, name));
|
|
99
|
+
const inside = relative(root, asset);
|
|
100
|
+
if (!inside || inside.startsWith("..") || isAbsolute(inside)) return null;
|
|
101
|
+
if (!AUDIO_FILE_NAME.test(inside) || !statSync(asset).isFile()) return null;
|
|
102
|
+
return asset;
|
|
103
|
+
} catch {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
83
108
|
export const bundledSfxProvider = {
|
|
84
109
|
async search(intent, ctx = {}) {
|
|
85
110
|
const libraryDir = ctx.libraryDir || LIB_DIR;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { strict as assert } from "node:assert";
|
|
2
|
-
import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { mkdtempSync, mkdirSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { test } from "node:test";
|
|
6
6
|
import {
|
|
7
7
|
BUNDLED_SFX_RECOVERY_COMMAND,
|
|
8
8
|
BundledSfxAssetsError,
|
|
9
|
+
bundledSfxAssetPath,
|
|
9
10
|
bundledSfxProvider,
|
|
10
11
|
extensionForBundledSfxFile,
|
|
11
12
|
inspectBundledSfxAssets,
|
|
@@ -137,3 +138,41 @@ test("literal ids outrank distinct ids with the same stem", () => {
|
|
|
137
138
|
["cats", "cat"],
|
|
138
139
|
);
|
|
139
140
|
});
|
|
141
|
+
|
|
142
|
+
test("media index files map only to regular audio files inside the bundled SFX folder", (t) => {
|
|
143
|
+
const root = mkdtempSync(join(tmpdir(), "media-use-sfx-paths-"));
|
|
144
|
+
t.after(() => rmSync(root, { recursive: true, force: true }));
|
|
145
|
+
const libraryDir = join(root, "sfx");
|
|
146
|
+
mkdirSync(join(libraryDir, "folder.mp3"), { recursive: true });
|
|
147
|
+
writeFileSync(join(libraryDir, "chime.mp3"), "chime");
|
|
148
|
+
writeFileSync(join(libraryDir, "notes.txt"), "notes");
|
|
149
|
+
writeFileSync(join(root, "outside.mp3"), "outside");
|
|
150
|
+
symlinkSync(join(root, "outside.mp3"), join(libraryDir, "escape.mp3"));
|
|
151
|
+
const prefix = "skills/media-use/audio/assets/sfx/";
|
|
152
|
+
|
|
153
|
+
assert.equal(
|
|
154
|
+
bundledSfxAssetPath(`${prefix}chime.mp3`, libraryDir),
|
|
155
|
+
realpathSync(join(libraryDir, "chime.mp3")),
|
|
156
|
+
);
|
|
157
|
+
for (const file of [
|
|
158
|
+
"/etc/hosts",
|
|
159
|
+
"../../.ssh/id_ed25519",
|
|
160
|
+
"chime.mp3",
|
|
161
|
+
"./chime.mp3",
|
|
162
|
+
"skills/media-use/audio/assets/sfx",
|
|
163
|
+
`${prefix}../../../../.ssh/id_ed25519`,
|
|
164
|
+
`${prefix}../outside.mp3`,
|
|
165
|
+
`${prefix}/chime.mp3`,
|
|
166
|
+
`${prefix}.\\chime.mp3`,
|
|
167
|
+
`${prefix}sub/chime.mp3`,
|
|
168
|
+
`${prefix}notes.txt`,
|
|
169
|
+
`${prefix}missing.mp3`,
|
|
170
|
+
`${prefix}folder.mp3`,
|
|
171
|
+
`${prefix}escape.mp3`,
|
|
172
|
+
`${prefix}${join(libraryDir, "chime.mp3")}`,
|
|
173
|
+
"skills\\media-use\\audio\\assets\\sfx\\chime.mp3",
|
|
174
|
+
7,
|
|
175
|
+
]) {
|
|
176
|
+
assert.equal(bundledSfxAssetPath(file, libraryDir), null, String(file));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
@@ -1,36 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { join
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const MEDIA_VECTOR_DIMENSIONS = 384;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
// The index ships inside the CLI (dist/catalog-artifact, or registry/catalog-artifact in a
|
|
8
|
+
// source checkout), so it always describes the SFX files of this same release.
|
|
9
|
+
const BUNDLED_MEDIA_VECTORS = [
|
|
10
|
+
join(import.meta.dirname, "..", "..", "..", "..", "catalog-artifact", "media-vectors.json"),
|
|
11
|
+
join(
|
|
12
|
+
import.meta.dirname,
|
|
13
|
+
"..",
|
|
14
|
+
"..",
|
|
15
|
+
"..",
|
|
16
|
+
"..",
|
|
17
|
+
"..",
|
|
18
|
+
"registry",
|
|
19
|
+
"catalog-artifact",
|
|
20
|
+
"media-vectors.json",
|
|
21
|
+
),
|
|
22
|
+
].find((candidate) => existsSync(candidate));
|
|
23
|
+
|
|
24
|
+
function isMediaVectorRow(row) {
|
|
9
25
|
return (
|
|
10
|
-
|
|
11
|
-
|
|
26
|
+
!!row &&
|
|
27
|
+
typeof row === "object" &&
|
|
28
|
+
typeof row.id === "string" &&
|
|
29
|
+
typeof row.kind === "string" &&
|
|
30
|
+
typeof row.title === "string" &&
|
|
31
|
+
typeof row.description === "string" &&
|
|
32
|
+
Array.isArray(row.tags) &&
|
|
33
|
+
row.tags.every((tag) => typeof tag === "string") &&
|
|
34
|
+
typeof row.file === "string" &&
|
|
35
|
+
(row.duration === undefined ||
|
|
36
|
+
(typeof row.duration === "number" && Number.isFinite(row.duration) && row.duration >= 0))
|
|
12
37
|
);
|
|
13
38
|
}
|
|
14
39
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
function indexProblem(metadata) {
|
|
41
|
+
if (!metadata || typeof metadata !== "object") return "not an object";
|
|
42
|
+
if (metadata.dimensions !== MEDIA_VECTOR_DIMENSIONS) {
|
|
43
|
+
return `expected ${MEDIA_VECTOR_DIMENSIONS} dimensions, got ${metadata.dimensions}`;
|
|
44
|
+
}
|
|
45
|
+
const { names, rows } = metadata;
|
|
46
|
+
if (!Array.isArray(names) || !Array.isArray(rows) || names.length !== rows.length) {
|
|
47
|
+
return "names and rows do not line up";
|
|
48
|
+
}
|
|
49
|
+
if (rows.some((row, index) => !isMediaVectorRow(row) || row.id !== names[index])) {
|
|
50
|
+
return "a row is malformed or out of order";
|
|
24
51
|
}
|
|
25
|
-
|
|
26
|
-
return
|
|
52
|
+
const revision = createHash("sha256").update(JSON.stringify(rows)).digest("hex");
|
|
53
|
+
if (metadata.metadataRevision !== revision) return "rows do not match metadataRevision";
|
|
54
|
+
return null;
|
|
27
55
|
}
|
|
28
56
|
|
|
29
|
-
export function mediaVectorRows(
|
|
30
|
-
|
|
31
|
-
if (!existsSync(metadataPath)) return [];
|
|
57
|
+
export function mediaVectorRows(metadataPath = BUNDLED_MEDIA_VECTORS) {
|
|
58
|
+
if (!metadataPath || !existsSync(metadataPath)) return [];
|
|
32
59
|
const metadata = JSON.parse(readFileSync(metadataPath, "utf8"));
|
|
33
|
-
|
|
60
|
+
const problem = indexProblem(metadata);
|
|
61
|
+
if (problem) throw new Error(`media index ${metadataPath} is invalid: ${problem}`);
|
|
62
|
+
return metadata.rows;
|
|
34
63
|
}
|
|
35
64
|
|
|
36
65
|
export { rankMediaRowsWithVectors } from "./media-search.mjs";
|
|
@@ -1,11 +1,49 @@
|
|
|
1
1
|
import { strict as assert } from "node:assert";
|
|
2
|
-
import {
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
3
4
|
import { tmpdir } from "node:os";
|
|
4
5
|
import { join } from "node:path";
|
|
5
6
|
import { test } from "node:test";
|
|
7
|
+
import { bundledSfxAssetPath } from "./bundled-sfx-provider.mjs";
|
|
6
8
|
import { mediaVectorRows } from "./local-media-search.mjs";
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
const SHIPPED_INDEX = join(
|
|
11
|
+
import.meta.dirname,
|
|
12
|
+
"..",
|
|
13
|
+
"..",
|
|
14
|
+
"..",
|
|
15
|
+
"..",
|
|
16
|
+
"..",
|
|
17
|
+
"registry",
|
|
18
|
+
"catalog-artifact",
|
|
19
|
+
"media-vectors.json",
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
function shippedIndex() {
|
|
23
|
+
return JSON.parse(readFileSync(SHIPPED_INDEX, "utf8"));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function writeIndex(t, metadata) {
|
|
27
|
+
const dir = mkdtempSync(join(tmpdir(), "hf-media-index-"));
|
|
28
|
+
t.after(() => rmSync(dir, { recursive: true, force: true }));
|
|
29
|
+
const path = join(dir, "media-vectors.json");
|
|
30
|
+
writeFileSync(path, JSON.stringify(metadata));
|
|
31
|
+
return path;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function withRevision(metadata) {
|
|
35
|
+
const metadataRevision = createHash("sha256").update(JSON.stringify(metadata.rows)).digest("hex");
|
|
36
|
+
return { ...metadata, metadataRevision };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
test("the bundled media index validates and every row names a bundled SFX file", () => {
|
|
40
|
+
const rows = mediaVectorRows();
|
|
41
|
+
assert.equal(rows.length, shippedIndex().rows.length);
|
|
42
|
+
assert.ok(rows.length > 0);
|
|
43
|
+
for (const row of rows) assert.ok(bundledSfxAssetPath(row.file), row.file);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
test("a media index in the user's cache folder is never read", (t) => {
|
|
9
47
|
const cache = mkdtempSync(join(tmpdir(), "hf-cache-"));
|
|
10
48
|
const prior = process.env.HYPERFRAMES_CACHE_DIR;
|
|
11
49
|
process.env.HYPERFRAMES_CACHE_DIR = cache;
|
|
@@ -17,7 +55,38 @@ test("media vectors are read from the cache folder's catalog when HYPERFRAMES_CA
|
|
|
17
55
|
mkdirSync(join(cache, "catalog"));
|
|
18
56
|
writeFileSync(
|
|
19
57
|
join(cache, "catalog", "media-vectors.json"),
|
|
20
|
-
JSON.stringify({
|
|
58
|
+
JSON.stringify({
|
|
59
|
+
rows: [{ id: "hosts", kind: "sfx", file: "/etc/hosts" }],
|
|
60
|
+
}),
|
|
21
61
|
);
|
|
22
|
-
assert.deepEqual(mediaVectorRows(),
|
|
62
|
+
assert.deepEqual(mediaVectorRows(), shippedIndex().rows);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test("an index whose rows do not match its metadata revision is refused", (t) => {
|
|
66
|
+
const metadata = shippedIndex();
|
|
67
|
+
metadata.rows[0] = { ...metadata.rows[0], file: "/etc/hosts" };
|
|
68
|
+
assert.throws(() => mediaVectorRows(writeIndex(t, metadata)), /metadataRevision/);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test("an index with the wrong dimensions or malformed rows is refused", (t) => {
|
|
72
|
+
const base = shippedIndex();
|
|
73
|
+
assert.throws(
|
|
74
|
+
() => mediaVectorRows(writeIndex(t, { ...base, dimensions: 3072 })),
|
|
75
|
+
/384 dimensions/,
|
|
76
|
+
);
|
|
77
|
+
const badRow = withRevision({
|
|
78
|
+
...base,
|
|
79
|
+
rows: [{ ...base.rows[0], file: 7 }, ...base.rows.slice(1)],
|
|
80
|
+
});
|
|
81
|
+
assert.throws(() => mediaVectorRows(writeIndex(t, badRow)), /malformed or out of order/);
|
|
82
|
+
const reordered = withRevision({ ...base, rows: [...base.rows].reverse() });
|
|
83
|
+
assert.throws(() => mediaVectorRows(writeIndex(t, reordered)), /malformed or out of order/);
|
|
84
|
+
assert.throws(
|
|
85
|
+
() => mediaVectorRows(writeIndex(t, { ...base, names: base.names.slice(1) })),
|
|
86
|
+
/do not line up/,
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
test("a missing media index has no rows", () => {
|
|
91
|
+
assert.deepEqual(mediaVectorRows(join(tmpdir(), "hf-no-such-index", "media-vectors.json")), []);
|
|
23
92
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execFileSync } from "node:child_process";
|
|
2
2
|
import { existsSync, unlinkSync } from "node:fs";
|
|
3
|
-
import { tmpdir } from "node:os";
|
|
3
|
+
import { homedir, tmpdir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { describeDownload, probeSpecs } from "./specs.mjs";
|
|
6
6
|
import { buildArgv, selectModel, selectModelLadder } from "./local-models.mjs";
|
|
@@ -61,7 +61,9 @@ export async function ltxVideoGenerate(
|
|
|
61
61
|
argv.shift();
|
|
62
62
|
|
|
63
63
|
try {
|
|
64
|
+
// The runner reads a model id as a folder when one exists in its working directory.
|
|
64
65
|
execFn(bin, argv, {
|
|
66
|
+
cwd: homedir(),
|
|
65
67
|
encoding: "utf8",
|
|
66
68
|
timeout: 1_800_000,
|
|
67
69
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { test } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
|
-
import { tmpdir } from "node:os";
|
|
4
|
+
import { homedir, tmpdir } from "node:os";
|
|
5
5
|
import { ltxVideoGenerate } from "./ltx-video-provider.mjs";
|
|
6
6
|
|
|
7
7
|
const fittingSpecs = { availableRamMB: 20000, gpu: { present: true } };
|
|
@@ -103,6 +103,21 @@ test("successful generation returns the generated MP4 result", async () => {
|
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
+
// fails without the fix: the runner started in the project, and it reads a model id such as
|
|
107
|
+
// dgrauet/ltx-2.3-mlx-q4 as a folder when the working directory has one.
|
|
108
|
+
test("the runner starts in the home folder, so a project folder named like the model is never read", async () => {
|
|
109
|
+
const calls = [];
|
|
110
|
+
await ltxVideoGenerate(
|
|
111
|
+
"waves",
|
|
112
|
+
{ specs: fittingSpecs },
|
|
113
|
+
(...call) => calls.push(call),
|
|
114
|
+
() => true,
|
|
115
|
+
);
|
|
116
|
+
const [, argv, opts] = calls[1];
|
|
117
|
+
assert.match(argv.join(" "), /--model dgrauet\//);
|
|
118
|
+
assert.equal(opts.cwd, homedir());
|
|
119
|
+
});
|
|
120
|
+
|
|
106
121
|
test("generate failure returns null instead of throwing", async (t) => {
|
|
107
122
|
t.mock.method(console, "error", () => {});
|
|
108
123
|
let calls = 0;
|
|
@@ -59,6 +59,7 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
BUNDLED_SFX_RECOVERY_COMMAND,
|
|
61
61
|
BundledSfxAssetsError,
|
|
62
|
+
bundledSfxAssetPath,
|
|
62
63
|
inspectBundledSfxAssets,
|
|
63
64
|
} from "./lib/bundled-sfx-provider.mjs";
|
|
64
65
|
import {
|
|
@@ -68,11 +69,7 @@ import {
|
|
|
68
69
|
scoreMatch,
|
|
69
70
|
} from "./lib/sfx-provider.mjs";
|
|
70
71
|
import { writeSfxCredit } from "./lib/openverse.mjs";
|
|
71
|
-
import {
|
|
72
|
-
fetchMediaVectors,
|
|
73
|
-
mediaVectorRows,
|
|
74
|
-
rankMediaRowsWithVectors,
|
|
75
|
-
} from "./lib/local-media-search.mjs";
|
|
72
|
+
import { mediaVectorRows, rankMediaRowsWithVectors } from "./lib/local-media-search.mjs";
|
|
76
73
|
|
|
77
74
|
const INGEST_TYPES = listTypes();
|
|
78
75
|
const DEFAULT_EXT = {
|
|
@@ -468,21 +465,14 @@ async function run() {
|
|
|
468
465
|
try {
|
|
469
466
|
searchResult = await runCapability(type, "search", intent, ctx);
|
|
470
467
|
if (!searchResult && type === "sfx" && !args.provider && !localOnly) {
|
|
471
|
-
const registry =
|
|
472
|
-
process.env.HYPERFRAMES_REGISTRY ||
|
|
473
|
-
"https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry";
|
|
474
468
|
try {
|
|
475
|
-
await fetchMediaVectors(registry);
|
|
476
469
|
const ranked = await rankMediaRowsWithVectors(
|
|
477
470
|
intent,
|
|
478
471
|
mediaVectorRows().filter((row) => row.kind === "sfx"),
|
|
479
472
|
);
|
|
480
473
|
const row = ranked.rows[0];
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
: [];
|
|
484
|
-
const localPath = candidates.find((candidate) => existsSync(candidate));
|
|
485
|
-
if (row && localPath) {
|
|
474
|
+
const localPath = row ? bundledSfxAssetPath(row.file) : null;
|
|
475
|
+
if (localPath) {
|
|
486
476
|
searchResult = {
|
|
487
477
|
localPath,
|
|
488
478
|
ext: extname(localPath),
|
|
@@ -73,8 +73,10 @@ const outPath = resolve(
|
|
|
73
73
|
// just PATH) is what keeps a user who followed the install docs verbatim from
|
|
74
74
|
// silently falling through to whisper. Returns the runner path, or null.
|
|
75
75
|
function resolveParakeet() {
|
|
76
|
+
// An override with a folder in it means the caller's folder; the runner itself starts elsewhere.
|
|
77
|
+
const override = process.env.HYPERFRAMES_PARAKEET;
|
|
76
78
|
for (const p of [
|
|
77
|
-
|
|
79
|
+
override && /[\\/]/.test(override) ? resolve(override) : override,
|
|
78
80
|
join(homedir(), ".venvs", "parakeet", "bin", "parakeet-mlx"),
|
|
79
81
|
]) {
|
|
80
82
|
if (p && existsSync(p)) return p;
|
|
@@ -106,13 +108,27 @@ function report(engine, wordCount) {
|
|
|
106
108
|
);
|
|
107
109
|
}
|
|
108
110
|
|
|
111
|
+
// parakeet-mlx reads a model id as a folder when one exists in its working directory, so it runs in
|
|
112
|
+
// the home folder. A model written as a relative path (./ or ../) still means the caller's folder.
|
|
113
|
+
function modelFor(model, cwd = process.cwd()) {
|
|
114
|
+
return /^\.\.?[\\/]/.test(model) ? resolve(cwd, model) : model;
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
function runParakeet(runner) {
|
|
110
118
|
const workDir = mkdtempSync(join(tmpdir(), "media-use-asr-"));
|
|
111
119
|
try {
|
|
112
120
|
execFileSync(
|
|
113
121
|
runner,
|
|
114
|
-
[
|
|
115
|
-
|
|
122
|
+
[
|
|
123
|
+
inputPath,
|
|
124
|
+
"--model",
|
|
125
|
+
modelFor(args.model),
|
|
126
|
+
"--output-format",
|
|
127
|
+
"json",
|
|
128
|
+
"--output-dir",
|
|
129
|
+
workDir,
|
|
130
|
+
],
|
|
131
|
+
{ cwd: homedir(), stdio: ["ignore", "pipe", "pipe"], timeout: 1_800_000 },
|
|
116
132
|
);
|
|
117
133
|
const jsonPath = join(workDir, `${basename(inputPath, extname(inputPath))}.json`);
|
|
118
134
|
if (!existsSync(jsonPath)) throw new Error("parakeet produced no JSON");
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
mkdirSync,
|
|
7
7
|
mkdtempSync,
|
|
8
8
|
readFileSync,
|
|
9
|
+
realpathSync,
|
|
9
10
|
rmSync,
|
|
10
11
|
writeFileSync,
|
|
11
12
|
} from "node:fs";
|
|
@@ -17,6 +18,65 @@ import { fileURLToPath } from "node:url";
|
|
|
17
18
|
// The stub stands in for the `hyperframes` CLI the caller hands over in HYPERFRAMES_CLI_ENTRY,
|
|
18
19
|
// run as `transcribe <in> --dir <dir> ...`: it records its args, writes the CLI's flat array and
|
|
19
20
|
// prints the CLI's --json line naming `cliEngine`.
|
|
21
|
+
// fails without the fix: parakeet-mlx started in the project, and it reads the default model id
|
|
22
|
+
// mlx-community/parakeet-tdt-0.6b-v3 as a folder when the working directory has one.
|
|
23
|
+
test(
|
|
24
|
+
"parakeet-mlx starts in the home folder; a ./ model path still means the caller's folder",
|
|
25
|
+
{ skip: process.platform === "win32" ? "the stand-in runner is an sh script" : false },
|
|
26
|
+
() => {
|
|
27
|
+
const root = mkdtempSync(join(tmpdir(), "media-use-parakeet-cwd-"));
|
|
28
|
+
try {
|
|
29
|
+
const home = join(root, "home");
|
|
30
|
+
const project = join(root, "project");
|
|
31
|
+
mkdirSync(home);
|
|
32
|
+
mkdirSync(join(project, "mlx-community", "parakeet-tdt-0.6b-v3"), { recursive: true });
|
|
33
|
+
const runner = join(root, "parakeet-mlx");
|
|
34
|
+
const record = join(root, "record");
|
|
35
|
+
writeFileSync(
|
|
36
|
+
runner,
|
|
37
|
+
`#!/bin/sh\nprintf '%s\\n' "$PWD" "$3" > "${record}"\n` +
|
|
38
|
+
`printf '{"text":"a","sentences":[]}' > "$7/in.json"\n`,
|
|
39
|
+
);
|
|
40
|
+
chmodSync(runner, 0o755);
|
|
41
|
+
writeFileSync(join(project, "in.wav"), "");
|
|
42
|
+
const script = fileURLToPath(new URL("./transcribe.mjs", import.meta.url));
|
|
43
|
+
const run = (extra = [], parakeet = runner) => {
|
|
44
|
+
execFileSync(
|
|
45
|
+
process.execPath,
|
|
46
|
+
[script, "--input", "in.wav", "--engine", "parakeet", ...extra],
|
|
47
|
+
{
|
|
48
|
+
cwd: project,
|
|
49
|
+
encoding: "utf8",
|
|
50
|
+
env: {
|
|
51
|
+
...process.env,
|
|
52
|
+
HOME: home,
|
|
53
|
+
HYPERFRAMES_PARAKEET: parakeet,
|
|
54
|
+
HYPERFRAMES_MEDIA_HOME: join(root, "media"),
|
|
55
|
+
HYPERFRAMES_NO_TELEMETRY: "1",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
);
|
|
59
|
+
return readFileSync(record, "utf8").trimEnd().split("\n");
|
|
60
|
+
};
|
|
61
|
+
assert.deepEqual(run(), [realpathSync(home), "mlx-community/parakeet-tdt-0.6b-v3"]);
|
|
62
|
+
assert.deepEqual(run(["--model", "./models/mine"]), [
|
|
63
|
+
realpathSync(home),
|
|
64
|
+
join(realpathSync(project), "models", "mine"),
|
|
65
|
+
]);
|
|
66
|
+
// A runner override written relative to the project still names the project's copy.
|
|
67
|
+
writeFileSync(join(project, "parakeet-mlx"), readFileSync(runner));
|
|
68
|
+
chmodSync(join(project, "parakeet-mlx"), 0o755);
|
|
69
|
+
rmSync(runner);
|
|
70
|
+
assert.deepEqual(run([], "./parakeet-mlx"), [
|
|
71
|
+
realpathSync(home),
|
|
72
|
+
"mlx-community/parakeet-tdt-0.6b-v3",
|
|
73
|
+
]);
|
|
74
|
+
} finally {
|
|
75
|
+
rmSync(root, { recursive: true, force: true });
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
);
|
|
79
|
+
|
|
20
80
|
function runScript(engine, cliEngine) {
|
|
21
81
|
const root = mkdtempSync(join(tmpdir(), "media-use-transcribe-"));
|
|
22
82
|
try {
|