mastra 0.15.1 → 0.16.0-alpha.1
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/CHANGELOG.md +50 -0
- package/README.md +13 -102
- package/dist/{chunk-2HSDVDKZ.js → chunk-GK64AJRT.js} +35 -73
- package/dist/chunk-GK64AJRT.js.map +1 -0
- package/dist/commands/actions/build-project.d.ts.map +1 -1
- package/dist/commands/actions/start-dev-server.d.ts.map +1 -1
- package/dist/commands/build/build.d.ts +2 -1
- package/dist/commands/build/build.d.ts.map +1 -1
- package/dist/commands/create/create.js +1 -1
- package/dist/commands/dev/dev.d.ts +2 -1
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/init/init.d.ts.map +1 -1
- package/dist/commands/init/utils.d.ts +1 -6
- package/dist/commands/init/utils.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -19
- package/dist/index.js.map +1 -1
- package/dist/playground/assets/{abap-24zuTgRW.js → abap-BeVh9wYO.js} +1 -1
- package/dist/playground/assets/{abnf-XSiD4cXk.js → abnf-bc6-zRBf.js} +1 -1
- package/dist/playground/assets/{actionscript-CEkK8-L1.js → actionscript-pHiBktI4.js} +1 -1
- package/dist/playground/assets/{ada-D-KW9d4U.js → ada-DlqMzlgX.js} +1 -1
- package/dist/playground/assets/{agda-B-lCJsYZ.js → agda-BFUhsrMT.js} +1 -1
- package/dist/playground/assets/{al-BA3W_phv.js → al-INk3pxPI.js} +1 -1
- package/dist/playground/assets/{antlr4-Cb2YpOUy.js → antlr4-kAP5KEYn.js} +1 -1
- package/dist/playground/assets/{apacheconf-YAWRuptx.js → apacheconf-BOeH4NG7.js} +1 -1
- package/dist/playground/assets/{apex-rnl1vjMx.js → apex-D6q20pyJ.js} +1 -1
- package/dist/playground/assets/{apl-BCRABYWP.js → apl-R9PgwjWx.js} +1 -1
- package/dist/playground/assets/{applescript-CTQMclKB.js → applescript-xpKbRWNx.js} +1 -1
- package/dist/playground/assets/{aql-CllZ-SAg.js → aql-B4po4gKh.js} +1 -1
- package/dist/playground/assets/{arduino-bmpnsbaS.js → arduino-CSW4W7a3.js} +1 -1
- package/dist/playground/assets/{arff-BDNc991x.js → arff-CkcO4DdF.js} +1 -1
- package/dist/playground/assets/{asciidoc-D3c3unMB.js → asciidoc-DhfiCxEg.js} +1 -1
- package/dist/playground/assets/{asm6502-BwYECdIc.js → asm6502-CLUCCjqj.js} +1 -1
- package/dist/playground/assets/{asmatmel-Cfv2Sa-x.js → asmatmel-C9VaW0TA.js} +1 -1
- package/dist/playground/assets/{aspnet-eyx9CPvN.js → aspnet-Cdd13xaq.js} +1 -1
- package/dist/playground/assets/{autohotkey-mToaEExe.js → autohotkey-CdgCuO2Q.js} +1 -1
- package/dist/playground/assets/{autoit-q16MH8jq.js → autoit-DFOPUzSO.js} +1 -1
- package/dist/playground/assets/{avisynth-A4ue-qS0.js → avisynth-Bdia89Xe.js} +1 -1
- package/dist/playground/assets/{avro-idl-CrKejSHo.js → avro-idl-CnJPAewv.js} +1 -1
- package/dist/playground/assets/{bash-BEtN7dqe.js → bash-yDDkoNFa.js} +1 -1
- package/dist/playground/assets/{basic-Bci5LIzX.js → basic-VANOpJci.js} +1 -1
- package/dist/playground/assets/{batch-BAlYAfF6.js → batch-CDoii6MZ.js} +1 -1
- package/dist/playground/assets/{bbcode-CmLSKqp4.js → bbcode-CZS3ESoo.js} +1 -1
- package/dist/playground/assets/{bicep-CB01YL5V.js → bicep-CZJOmbZ6.js} +1 -1
- package/dist/playground/assets/{birb-CCiPAefH.js → birb-CU1tWhC_.js} +1 -1
- package/dist/playground/assets/{bison-hnRN_nS1.js → bison-DBGGThIu.js} +1 -1
- package/dist/playground/assets/{bnf-B5IMhx6N.js → bnf-DKBzDIfO.js} +1 -1
- package/dist/playground/assets/{brainfuck-DAQkbg3n.js → brainfuck-Aq6YF_5u.js} +1 -1
- package/dist/playground/assets/{brightscript-WFGMuxAX.js → brightscript-CH-vfh9S.js} +1 -1
- package/dist/playground/assets/{bro-K32K04Ir.js → bro-BfxaKX_p.js} +1 -1
- package/dist/playground/assets/{bsl-D1p0afEQ.js → bsl-UGTI_hDL.js} +1 -1
- package/dist/playground/assets/{c-CBy4z3dp.js → c-BMxj2Tyh.js} +1 -1
- package/dist/playground/assets/{cfscript-D9dpI3Gz.js → cfscript-D6fJCg08.js} +1 -1
- package/dist/playground/assets/{chaiscript-BvrAItto.js → chaiscript-BCheiFLf.js} +1 -1
- package/dist/playground/assets/{cil-DnnzrMVY.js → cil-BVih9k7R.js} +1 -1
- package/dist/playground/assets/{clike-DZFAFy3m.js → clike-DhFXulhW.js} +1 -1
- package/dist/playground/assets/{clojure-DIgBo0n1.js → clojure-CLiU7PJY.js} +1 -1
- package/dist/playground/assets/{cmake-B-3cT2QA.js → cmake-Cn8H3Be_.js} +1 -1
- package/dist/playground/assets/{cobol-PNJWotW7.js → cobol-CdJvU9V7.js} +1 -1
- package/dist/playground/assets/{coffeescript-Kr7i2Tg-.js → coffeescript-DAoRk3OH.js} +1 -1
- package/dist/playground/assets/{concurnas-DLazFXSM.js → concurnas-BB4Mo4-a.js} +1 -1
- package/dist/playground/assets/{coq-BkCGS7x5.js → coq-BdSVWrQC.js} +1 -1
- package/dist/playground/assets/{core-BG7cmEir.js → core-_CW086h8.js} +1 -1
- package/dist/playground/assets/{cpp-KqIYjleM.js → cpp-jazXWyhl.js} +1 -1
- package/dist/playground/assets/{crystal-CBdhe_01.js → crystal-C6sZzoQs.js} +1 -1
- package/dist/playground/assets/{csharp-DlgOqxT7.js → csharp-E5LEJ_Dh.js} +1 -1
- package/dist/playground/assets/{cshtml-C3M5hTEQ.js → cshtml-ZItlVSDW.js} +1 -1
- package/dist/playground/assets/{csp-DT-QwR_1.js → csp-D2cRXZqo.js} +1 -1
- package/dist/playground/assets/{css-BO2DtU7-.js → css-BFBZCEaG.js} +1 -1
- package/dist/playground/assets/{css-extras-nDt23l9V.js → css-extras-BCidnJcx.js} +1 -1
- package/dist/playground/assets/{csv-C_j45PF9.js → csv-CHVe0ypk.js} +1 -1
- package/dist/playground/assets/{cypher-dWHPoJbO.js → cypher-D7UY7Xq0.js} +1 -1
- package/dist/playground/assets/{d-DDuZv01r.js → d-KYHDwIB7.js} +1 -1
- package/dist/playground/assets/{dart-DC0VROJc.js → dart-5pEwPiAn.js} +1 -1
- package/dist/playground/assets/{dataweave-Dw8xWsV2.js → dataweave-2A9x7JBV.js} +1 -1
- package/dist/playground/assets/{dax-ByDaEm6t.js → dax-B5F6LTt0.js} +1 -1
- package/dist/playground/assets/{dhall-4SpXt-vL.js → dhall-CIJUzRlp.js} +1 -1
- package/dist/playground/assets/{diff-2kXMywQ4.js → diff-D6Wl9krM.js} +1 -1
- package/dist/playground/assets/{django-DyOp5Rwg.js → django-BB0PUsOM.js} +1 -1
- package/dist/playground/assets/{dns-zone-file-BiGWp-HX.js → dns-zone-file-DUwY_2F2.js} +1 -1
- package/dist/playground/assets/{docker-CAgRxTMn.js → docker-CMx9_iSG.js} +1 -1
- package/dist/playground/assets/{dot-8e6NmRKU.js → dot-kbMAsqX7.js} +1 -1
- package/dist/playground/assets/{ebnf-BxSI_fh2.js → ebnf-ebYDd0sk.js} +1 -1
- package/dist/playground/assets/{editorconfig-CaqHE7rQ.js → editorconfig-D-vaGu6j.js} +1 -1
- package/dist/playground/assets/{eiffel-Ctc1HvIY.js → eiffel-BxvSLMmD.js} +1 -1
- package/dist/playground/assets/{ejs-yZPh67eF.js → ejs-Z8ViVb8a.js} +1 -1
- package/dist/playground/assets/{elixir-BNXxuL73.js → elixir-Bu2vTUUv.js} +1 -1
- package/dist/playground/assets/{elm-B3CvBHYv.js → elm-Dx1u8KX9.js} +1 -1
- package/dist/playground/assets/{erb-C0T17kT0.js → erb-B5spGQcx.js} +1 -1
- package/dist/playground/assets/{erlang-CoyezpMC.js → erlang-sBg4pIlZ.js} +1 -1
- package/dist/playground/assets/{etlua-uPA8Abpm.js → etlua-DIxVICdf.js} +1 -1
- package/dist/playground/assets/{excel-formula-CqqUOCIc.js → excel-formula-Ca9LI-7L.js} +1 -1
- package/dist/playground/assets/{factor-BuFoUrPv.js → factor-CLmTTBeZ.js} +1 -1
- package/dist/playground/assets/{false-DPmeaWdq.js → false-CJfyAx3h.js} +1 -1
- package/dist/playground/assets/{firestore-security-rules-Dy4A2xhI.js → firestore-security-rules-D7RLQfET.js} +1 -1
- package/dist/playground/assets/{flow-YlWPQqTY.js → flow-D1rRV-C2.js} +1 -1
- package/dist/playground/assets/{fortran-BMFquBwk.js → fortran-DA4FFCKs.js} +1 -1
- package/dist/playground/assets/{fsharp-DKa76psD.js → fsharp-Bsc0AZkI.js} +1 -1
- package/dist/playground/assets/{ftl-Fm5Iao5M.js → ftl-eQ3TUB0-.js} +1 -1
- package/dist/playground/assets/{gap-kX3CPfPO.js → gap-BG8HpDy-.js} +1 -1
- package/dist/playground/assets/{gcode-KvK6gIER.js → gcode-CLDHUGPT.js} +1 -1
- package/dist/playground/assets/{gdscript-BZPGeoKn.js → gdscript-DBuEendT.js} +1 -1
- package/dist/playground/assets/{gedcom-DtIT3aVj.js → gedcom-CokOCLjC.js} +1 -1
- package/dist/playground/assets/{gherkin-DpzqYTJU.js → gherkin-BrOY3WUa.js} +1 -1
- package/dist/playground/assets/{git-CpDjx7Yu.js → git-C6WRIHFA.js} +1 -1
- package/dist/playground/assets/{glsl-CDqlUDhM.js → glsl-DDIbdctQ.js} +1 -1
- package/dist/playground/assets/{gml-CexMCaEK.js → gml-DQNpqqRD.js} +1 -1
- package/dist/playground/assets/{gn-_WmtGH7F.js → gn-DagNMSah.js} +1 -1
- package/dist/playground/assets/{go-module-C_ZL_-S5.js → go-module-BiJnBaQg.js} +1 -1
- package/dist/playground/assets/{go-Cer5OQf9.js → go-wUV9ceel.js} +1 -1
- package/dist/playground/assets/{graphql-BAsjzh7A.js → graphql-COT_xzaB.js} +1 -1
- package/dist/playground/assets/{groovy-11tW5lOi.js → groovy-DttoMMyd.js} +1 -1
- package/dist/playground/assets/{haml-DcPgXuGx.js → haml-CeVyB6jn.js} +1 -1
- package/dist/playground/assets/{handlebars-iW_Oiihi.js → handlebars-D2_WbdmV.js} +1 -1
- package/dist/playground/assets/{haskell-CnmHaFYj.js → haskell-BL6lVmya.js} +1 -1
- package/dist/playground/assets/{haxe-CgsNHZxP.js → haxe-D2VIZe7V.js} +1 -1
- package/dist/playground/assets/{hcl-CJuWXPxP.js → hcl-BjDr52dg.js} +1 -1
- package/dist/playground/assets/{hlsl-BPMM1mVW.js → hlsl-D-fQ8Wer.js} +1 -1
- package/dist/playground/assets/{hoon-cyhABnjs.js → hoon-evUgU5ci.js} +1 -1
- package/dist/playground/assets/{hpkp-KiQCqS7D.js → hpkp-Dl3XSjpI.js} +1 -1
- package/dist/playground/assets/{hsts-UQ25pCeY.js → hsts-DMnunA2S.js} +1 -1
- package/dist/playground/assets/{http-Coa7aHPz.js → http-BDbezoge.js} +1 -1
- package/dist/playground/assets/{ichigojam-BUKE-GoW.js → ichigojam-H-vpa6rN.js} +1 -1
- package/dist/playground/assets/{icon-DgOJpXar.js → icon-JH63V6er.js} +1 -1
- package/dist/playground/assets/{icu-message-format-BV6qINmd.js → icu-message-format-DV8gn9NY.js} +1 -1
- package/dist/playground/assets/{idris-Cgy0wWDA.js → idris-D4_01pEI.js} +1 -1
- package/dist/playground/assets/{iecst-Db1-ZBam.js → iecst-D4ucjg6m.js} +1 -1
- package/dist/playground/assets/{ignore-KhNOIBQX.js → ignore-DIncI5_y.js} +1 -1
- package/dist/playground/assets/index-D37DDP_2.js +1070 -0
- package/dist/playground/assets/index-DYAHee2R.js +13 -0
- package/dist/playground/assets/{inform7-IFD31-mo.js → inform7-CluasQqA.js} +1 -1
- package/dist/playground/assets/{ini-CY3w99wE.js → ini-BDSiPm61.js} +1 -1
- package/dist/playground/assets/{io-CjvxIUAZ.js → io-BWOtIkv0.js} +1 -1
- package/dist/playground/assets/{j-D9OwnKKR.js → j-DHU_96rO.js} +1 -1
- package/dist/playground/assets/{java-Bam9xjsW.js → java-BGX5Qz_G.js} +1 -1
- package/dist/playground/assets/{javadoc-BRDyRyq7.js → javadoc-CrisBBvy.js} +1 -1
- package/dist/playground/assets/{javadoclike-w8MAwbBX.js → javadoclike-DsKbX_TE.js} +1 -1
- package/dist/playground/assets/{javascript-Dl-syXYU.js → javascript-pMkJ9TnX.js} +1 -1
- package/dist/playground/assets/{javastacktrace-BQhimbix.js → javastacktrace-BDe7CAui.js} +1 -1
- package/dist/playground/assets/{jexl-DZD0RSno.js → jexl-6qvsm5K0.js} +1 -1
- package/dist/playground/assets/{jolie-Bk0eb4vt.js → jolie-CsTQLHtr.js} +1 -1
- package/dist/playground/assets/{jq-CXtPmmhd.js → jq-qXtlr9ZB.js} +1 -1
- package/dist/playground/assets/{js-extras-Cyg9Hfcb.js → js-extras-Bdfkam9i.js} +1 -1
- package/dist/playground/assets/{js-templates-CgjxakgE.js → js-templates-DuBPPypw.js} +1 -1
- package/dist/playground/assets/{jsdoc-qJ2xCfVV.js → jsdoc-D_s3XyYE.js} +1 -1
- package/dist/playground/assets/{json-dnSKDZKe.js → json-Drj7ag6x.js} +1 -1
- package/dist/playground/assets/{json5-110Z-4nT.js → json5-CKbfZ2m-.js} +1 -1
- package/dist/playground/assets/{jsonp-WY_1vze6.js → jsonp-D5pJuVtU.js} +1 -1
- package/dist/playground/assets/{jsstacktrace-D89gz0oX.js → jsstacktrace-BTwBo2I7.js} +1 -1
- package/dist/playground/assets/{jsx-BfTW77sn.js → jsx-CsAaGFt-.js} +1 -1
- package/dist/playground/assets/{julia-CVSWvd4Q.js → julia-bMxZKAAH.js} +1 -1
- package/dist/playground/assets/{keepalived-BpocQjnB.js → keepalived-B5zK3xPx.js} +1 -1
- package/dist/playground/assets/{keyman-C4j5_9KH.js → keyman-DJdJ8FU3.js} +1 -1
- package/dist/playground/assets/{kotlin-BMdfSed0.js → kotlin-DSO5UI4a.js} +1 -1
- package/dist/playground/assets/{kumir-l3k3jUTz.js → kumir-Bc7JXabl.js} +1 -1
- package/dist/playground/assets/{kusto-BY9PlOwI.js → kusto-CekWY9HE.js} +1 -1
- package/dist/playground/assets/{latex-B46gGowb.js → latex-BPa9NjOi.js} +1 -1
- package/dist/playground/assets/{latte-1pjQ1rML.js → latte-H8YfYxti.js} +1 -1
- package/dist/playground/assets/{less-DZv3dtQG.js → less-CMBJz-zr.js} +1 -1
- package/dist/playground/assets/{lilypond-5ukumnJv.js → lilypond-C9K2xp-J.js} +1 -1
- package/dist/playground/assets/{liquid-b6gS3b59.js → liquid-imv9N8iU.js} +1 -1
- package/dist/playground/assets/{lisp-DBheMgpv.js → lisp-BKejkINC.js} +1 -1
- package/dist/playground/assets/{livescript-Bh2Hp1Mq.js → livescript-BgjwYbTD.js} +1 -1
- package/dist/playground/assets/{llvm-CkJ6OUKn.js → llvm-DKbR_sHV.js} +1 -1
- package/dist/playground/assets/{log-CMXNEQGN.js → log-DQpomHLF.js} +1 -1
- package/dist/playground/assets/{lolcode-B_jDCqxD.js → lolcode-ByD2sy4O.js} +1 -1
- package/dist/playground/assets/{lua-DDrSUSri.js → lua-7RpJWQcA.js} +1 -1
- package/dist/playground/assets/{magma-Bl-DyhjN.js → magma-D6QrM_bi.js} +1 -1
- package/dist/playground/assets/{makefile-CsTVT63a.js → makefile-DwOLzIra.js} +1 -1
- package/dist/playground/assets/{markdown-CD1c-nTG.js → markdown-DRkB8bZ-.js} +1 -1
- package/dist/playground/assets/{markup-BBJPAZ8P.js → markup-CwLOI5_s.js} +1 -1
- package/dist/playground/assets/{markup-templating-Euro3TZE.js → markup-templating-BbgXhMmb.js} +1 -1
- package/dist/playground/assets/{matlab-CrLeCvR4.js → matlab-BWWJDLvM.js} +1 -1
- package/dist/playground/assets/{maxscript-Cl7MRi_p.js → maxscript-Bk65HfnH.js} +1 -1
- package/dist/playground/assets/{mel-DymVYhMc.js → mel-BlV1PMgZ.js} +1 -1
- package/dist/playground/assets/{mermaid-t_8zTZV9.js → mermaid-spZDb7FE.js} +1 -1
- package/dist/playground/assets/{mizar-Cj1dlcZf.js → mizar-08nMZjrP.js} +1 -1
- package/dist/playground/assets/{mongodb-CfXlYvpQ.js → mongodb-BnVg3UbX.js} +1 -1
- package/dist/playground/assets/{monkey-C7d4a1Ee.js → monkey-CRpKwccu.js} +1 -1
- package/dist/playground/assets/{moonscript-BC-sBPzz.js → moonscript-BzdnPok6.js} +1 -1
- package/dist/playground/assets/{n1ql-DkPE_KHg.js → n1ql-DZmVp6R_.js} +1 -1
- package/dist/playground/assets/{n4js-CZSfSUeP.js → n4js-sL02SVWk.js} +1 -1
- package/dist/playground/assets/{nand2tetris-hdl-C6Z63MS5.js → nand2tetris-hdl-DKVCSp6b.js} +1 -1
- package/dist/playground/assets/{naniscript-CYM6bRSN.js → naniscript-BTTsKhPU.js} +1 -1
- package/dist/playground/assets/{nasm-BwBCWY-U.js → nasm-D3GkTc2V.js} +1 -1
- package/dist/playground/assets/{neon--hKmRb8X.js → neon-DogQL_p2.js} +1 -1
- package/dist/playground/assets/{nevod-DbkLzINM.js → nevod-CnHPr1Ml.js} +1 -1
- package/dist/playground/assets/{nginx-C5aEASV-.js → nginx-CHr9YSXh.js} +1 -1
- package/dist/playground/assets/{nim-CYkNg4_n.js → nim-BfLV_TrH.js} +1 -1
- package/dist/playground/assets/{nix-BQshxmJA.js → nix-BdSkzbLY.js} +1 -1
- package/dist/playground/assets/{nsis-Dvi4L-b-.js → nsis-CabA7aqN.js} +1 -1
- package/dist/playground/assets/{objectivec-CKA9KosY.js → objectivec-BbytJVwh.js} +1 -1
- package/dist/playground/assets/{ocaml-gEPuOleU.js → ocaml-DuAKwJTW.js} +1 -1
- package/dist/playground/assets/{opencl-CMwYY-TT.js → opencl-CVwfb9m6.js} +1 -1
- package/dist/playground/assets/{openqasm-UUrjwOEb.js → openqasm-B1RmJZJM.js} +1 -1
- package/dist/playground/assets/{oz-DQKKl5vs.js → oz-BRds7xws.js} +1 -1
- package/dist/playground/assets/{parigp-CJW1oytk.js → parigp-aKwbmZfe.js} +1 -1
- package/dist/playground/assets/{parser-D0Js-VuP.js → parser-B4nYxiGi.js} +1 -1
- package/dist/playground/assets/{pascal-7gov4t7M.js → pascal-fvdAvizw.js} +1 -1
- package/dist/playground/assets/{pascaligo-BB61fDxi.js → pascaligo-Dgd8-wAU.js} +1 -1
- package/dist/playground/assets/{pcaxis-BeQH9-ai.js → pcaxis-CGfHRdK8.js} +1 -1
- package/dist/playground/assets/{peoplecode-C86KC00e.js → peoplecode-CjQAQWA4.js} +1 -1
- package/dist/playground/assets/{perl-C0F6ZqPy.js → perl-DLz7_ETf.js} +1 -1
- package/dist/playground/assets/{php-B0NXLB-g.js → php-DW3xtft_.js} +1 -1
- package/dist/playground/assets/{php-extras-DYchE3pz.js → php-extras-C3tujuom.js} +1 -1
- package/dist/playground/assets/{phpdoc-CGtIETX3.js → phpdoc-Dwx5qUcW.js} +1 -1
- package/dist/playground/assets/{plsql-ccv2lLdy.js → plsql-IxxMebL2.js} +1 -1
- package/dist/playground/assets/{powerquery-DmInIMEt.js → powerquery-Cm-kRFVv.js} +1 -1
- package/dist/playground/assets/{powershell-2kdPAKZU.js → powershell-BbKqpZgB.js} +1 -1
- package/dist/playground/assets/{processing-BJPOGzVP.js → processing-ClTvPQgI.js} +1 -1
- package/dist/playground/assets/{prolog-DatgSjkj.js → prolog-4t6l26pC.js} +1 -1
- package/dist/playground/assets/{promql-C0yURe3p.js → promql-BzxAkgEP.js} +1 -1
- package/dist/playground/assets/{properties-KSYVLMdV.js → properties-Do_adEt9.js} +1 -1
- package/dist/playground/assets/{protobuf-DlF48zRr.js → protobuf-BMu4qteV.js} +1 -1
- package/dist/playground/assets/{psl-Be979Bx4.js → psl-DhK_zZFE.js} +1 -1
- package/dist/playground/assets/{pug-DSjzi154.js → pug-D6u54t0o.js} +1 -1
- package/dist/playground/assets/{puppet-BdHRd-rS.js → puppet-B2VtngUT.js} +1 -1
- package/dist/playground/assets/{pure-CA88tQtT.js → pure-BGHW50o9.js} +1 -1
- package/dist/playground/assets/{purebasic-3sKQxFTR.js → purebasic-BEVT_NtP.js} +1 -1
- package/dist/playground/assets/{purescript-4eegQWUm.js → purescript-B_2XNZmo.js} +1 -1
- package/dist/playground/assets/{python-DR5EIizJ.js → python-DsOV0ZxY.js} +1 -1
- package/dist/playground/assets/{q-DR8sog7K.js → q-DaBl6Tn9.js} +1 -1
- package/dist/playground/assets/{qml-RP14oVw-.js → qml-C6-s5iRC.js} +1 -1
- package/dist/playground/assets/{qore-DMLXjGV3.js → qore-DDbySqFZ.js} +1 -1
- package/dist/playground/assets/{qsharp-D4GrZsIn.js → qsharp-D6gHiRyA.js} +1 -1
- package/dist/playground/assets/{r-C3Q86mla.js → r-DfN8wHkH.js} +1 -1
- package/dist/playground/assets/{racket-C5lL4IxO.js → racket-BD3rm2uQ.js} +1 -1
- package/dist/playground/assets/{reason-DmNQG0VS.js → reason-C0OgfHev.js} +1 -1
- package/dist/playground/assets/{regex-C7tDwZby.js → regex-CwRHu-qf.js} +1 -1
- package/dist/playground/assets/{rego-D-uewyXt.js → rego-CIDysNoZ.js} +1 -1
- package/dist/playground/assets/{renpy-DPPS_AFP.js → renpy-gGnAZobJ.js} +1 -1
- package/dist/playground/assets/{rest-BWsEi4r9.js → rest-BWbZe4fM.js} +1 -1
- package/dist/playground/assets/{rip-CyeMvPFK.js → rip-B-6CLTEZ.js} +1 -1
- package/dist/playground/assets/{roboconf-CGRlB49B.js → roboconf-bfiwMI_z.js} +1 -1
- package/dist/playground/assets/{robotframework-Dh24TWLp.js → robotframework-BEWF3d6M.js} +1 -1
- package/dist/playground/assets/{ruby-BnNsypI8.js → ruby-BZHM-l1c.js} +1 -1
- package/dist/playground/assets/{rust-ByuFNsjs.js → rust-B4MbAIK2.js} +1 -1
- package/dist/playground/assets/{sas-BUGthKyL.js → sas-BgTju6ie.js} +1 -1
- package/dist/playground/assets/{sass-L0W2Ku8b.js → sass-DmxKqTPW.js} +1 -1
- package/dist/playground/assets/{scala-L37wpayk.js → scala-DO1tcH4S.js} +1 -1
- package/dist/playground/assets/{scheme-DcwmuI4_.js → scheme-CTN8O8h3.js} +1 -1
- package/dist/playground/assets/{scss-aeqUhw96.js → scss-C7_g7ZUN.js} +1 -1
- package/dist/playground/assets/{shell-session-DHP-Fn8S.js → shell-session-CYuWdWUa.js} +1 -1
- package/dist/playground/assets/{smali-BzI7pHlv.js → smali-BMdf76M3.js} +1 -1
- package/dist/playground/assets/{smalltalk-DzLk0q7H.js → smalltalk-CqnUnhnK.js} +1 -1
- package/dist/playground/assets/{smarty-zWm0miv-.js → smarty-C16vBj9e.js} +1 -1
- package/dist/playground/assets/{sml-Btg8OBkr.js → sml-DsRtcMBb.js} +1 -1
- package/dist/playground/assets/{solidity-ewpGpEYM.js → solidity-C4VR-uAi.js} +1 -1
- package/dist/playground/assets/{solution-file-D4nhLjH2.js → solution-file-54OIUEFV.js} +1 -1
- package/dist/playground/assets/{soy-B1rvKrjf.js → soy-BN_0aSaf.js} +1 -1
- package/dist/playground/assets/{sparql-BoUZP27i.js → sparql-0HNFG_LO.js} +1 -1
- package/dist/playground/assets/{splunk-spl-CHcZHN0X.js → splunk-spl-BshoDF6X.js} +1 -1
- package/dist/playground/assets/{sqf-CCdYd1QK.js → sqf-in6AW-6g.js} +1 -1
- package/dist/playground/assets/{sql-Czi9vyV1.js → sql-Cx68n1WT.js} +1 -1
- package/dist/playground/assets/{squirrel-DDGbUrsA.js → squirrel-BLvosXX5.js} +1 -1
- package/dist/playground/assets/{stan-D6uyGhJk.js → stan-C4FRtvbb.js} +1 -1
- package/dist/playground/assets/style-D4Qdw4ns.css +1 -0
- package/dist/playground/assets/{stylus-DhGxEK3L.js → stylus-CdjcxVsh.js} +1 -1
- package/dist/playground/assets/{swift-DocWJvhV.js → swift-CrnfwH-_.js} +1 -1
- package/dist/playground/assets/{systemd-BW7O126m.js → systemd-CqFXrTw0.js} +1 -1
- package/dist/playground/assets/{t4-cs-7AYKtHmL.js → t4-cs-4lbo24Gk.js} +1 -1
- package/dist/playground/assets/{t4-templating-D-cYZnHX.js → t4-templating-DCUWL9S2.js} +1 -1
- package/dist/playground/assets/{t4-vb-Bp2YjzMH.js → t4-vb-CT_9VyNP.js} +1 -1
- package/dist/playground/assets/{tap-Xg--D3ut.js → tap-jpQRQYDR.js} +1 -1
- package/dist/playground/assets/{tcl-B8ehoc80.js → tcl-BAq5hu1g.js} +1 -1
- package/dist/playground/assets/{textile-B_RIjpT5.js → textile-DACOdKkk.js} +1 -1
- package/dist/playground/assets/{toml-C_c1NWFa.js → toml-CrAxnvu3.js} +1 -1
- package/dist/playground/assets/{tremor-oXSmmGAK.js → tremor-S0FYfXp4.js} +1 -1
- package/dist/playground/assets/{tsx-DK1w9jLS.js → tsx-JEf1Jz4Q.js} +1 -1
- package/dist/playground/assets/{tt2-qf-3EqpJ.js → tt2-CnHGXHXh.js} +1 -1
- package/dist/playground/assets/{turtle-BiHmZvFu.js → turtle-tbyHfZ8d.js} +1 -1
- package/dist/playground/assets/{twig-BZnMKa5k.js → twig-BA_0IMhb.js} +1 -1
- package/dist/playground/assets/{typescript-OjYsPUtR.js → typescript-DPJm1p2Z.js} +1 -1
- package/dist/playground/assets/{typoscript-AJcav8Lb.js → typoscript-Bdpc5Oxs.js} +1 -1
- package/dist/playground/assets/{unrealscript-Dycvf77r.js → unrealscript-6jIWtm7n.js} +1 -1
- package/dist/playground/assets/{uorazor-f4q5__zS.js → uorazor-BOEaf2xT.js} +1 -1
- package/dist/playground/assets/{uri-BAKcqKJX.js → uri-DU408NbV.js} +1 -1
- package/dist/playground/assets/{v-Cd6-mBxv.js → v-0BSYWUJO.js} +1 -1
- package/dist/playground/assets/{vala-C6nfXzKp.js → vala-LdQfScnG.js} +1 -1
- package/dist/playground/assets/{vbnet-BLI9u44K.js → vbnet-CrQC2PTx.js} +1 -1
- package/dist/playground/assets/{velocity-CMrS8by1.js → velocity-DF683JjC.js} +1 -1
- package/dist/playground/assets/{verilog-4YHe0cVz.js → verilog-CFCnJ5V1.js} +1 -1
- package/dist/playground/assets/{vhdl-B3CAq63t.js → vhdl-D-XdeEl1.js} +1 -1
- package/dist/playground/assets/{vim-BDGmYp28.js → vim-CdjqpykQ.js} +1 -1
- package/dist/playground/assets/{visual-basic-CV0OTkp5.js → visual-basic-CyO6M8Yn.js} +1 -1
- package/dist/playground/assets/{warpscript-DQsnUeF4.js → warpscript-BqP6PVmh.js} +1 -1
- package/dist/playground/assets/{wasm-jSd19EPP.js → wasm-C33NIyKR.js} +1 -1
- package/dist/playground/assets/{web-idl-DDqsG_TK.js → web-idl-gbc_RGVF.js} +1 -1
- package/dist/playground/assets/{wiki-BJy2yYr9.js → wiki-76tnlQI5.js} +1 -1
- package/dist/playground/assets/{wolfram-BX3lfdBc.js → wolfram-9sWCTyDZ.js} +1 -1
- package/dist/playground/assets/{wren-lE8oivn1.js → wren-D0Eeyo1v.js} +1 -1
- package/dist/playground/assets/{xeora-B0ar6f1H.js → xeora-BGSd0LxL.js} +1 -1
- package/dist/playground/assets/{xml-doc-CRdQbaYA.js → xml-doc-BzjM0M_Z.js} +1 -1
- package/dist/playground/assets/{xojo-DGQBWk8x.js → xojo-C9kAlVSu.js} +1 -1
- package/dist/playground/assets/{xquery-abyPLMd2.js → xquery-CNrYbVsf.js} +1 -1
- package/dist/playground/assets/{yaml-BbmD-xiu.js → yaml-Cs7l_osE.js} +1 -1
- package/dist/playground/assets/{yang-vJGGthtJ.js → yang-DVQNXSWo.js} +1 -1
- package/dist/playground/assets/{zig-lek4eF-n.js → zig-OWOZw6E5.js} +1 -1
- package/dist/playground/index.html +2 -2
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/chunk-2HSDVDKZ.js.map +0 -1
- package/dist/playground/assets/index-4QJh5siJ.js +0 -13
- package/dist/playground/assets/index-DC6QEaiT.js +0 -1031
- package/dist/playground/assets/style-R7_he_hy.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.16.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Create unified Sidebar component to use on Playground and Cloud ([#8655](https://github.com/mastra-ai/mastra/pull/8655))
|
|
12
|
+
|
|
13
|
+
- Use only zod validation in dynamic form ([#8802](https://github.com/mastra-ai/mastra/pull/8802))
|
|
14
|
+
|
|
15
|
+
- Add support for --debug options to build/dev commands to add more logging ([#8792](https://github.com/mastra-ai/mastra/pull/8792))
|
|
16
|
+
|
|
17
|
+
- Add div wrapper around entity tables to fix table vertical position ([#8758](https://github.com/mastra-ai/mastra/pull/8758))
|
|
18
|
+
|
|
19
|
+
- Customize AITraces type to seamlessly work on Cloud too ([#8759](https://github.com/mastra-ai/mastra/pull/8759))
|
|
20
|
+
|
|
21
|
+
- Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
|
|
22
|
+
|
|
23
|
+
- Improve README ([#8819](https://github.com/mastra-ai/mastra/pull/8819))
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`ca5a01f`](https://github.com/mastra-ai/mastra/commit/ca5a01f0dd4dabdbfde3beeaf92c7333e0f9bb39), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`dfe856f`](https://github.com/mastra-ai/mastra/commit/dfe856f7f60ff4765b75930e7b5d82dd0f0f7d89), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`e0e1cf1`](https://github.com/mastra-ai/mastra/commit/e0e1cf1e37b9dc61099ab331a6d386e44b816310)]:
|
|
26
|
+
- @mastra/core@0.21.0-alpha.1
|
|
27
|
+
- @mastra/deployer@0.21.0-alpha.1
|
|
28
|
+
|
|
29
|
+
## 0.15.2-alpha.0
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Use model-router in create-mastra starter template ([#8631](https://github.com/mastra-ai/mastra/pull/8631))
|
|
34
|
+
|
|
35
|
+
- Fix typo in playground causing semantic recall to always be false when enabled. ([#8640](https://github.com/mastra-ai/mastra/pull/8640))
|
|
36
|
+
|
|
37
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
|
|
38
|
+
|
|
39
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
|
|
40
|
+
|
|
41
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
|
|
42
|
+
|
|
43
|
+
- Refactor EntryList component and Scorer and Observability pages ([#8652](https://github.com/mastra-ai/mastra/pull/8652))
|
|
44
|
+
|
|
45
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [[`0fb6616`](https://github.com/mastra-ai/mastra/commit/0fb66169600ed2a3dc1297b1bfa8a7693ebb6e3c), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`1dbd76a`](https://github.com/mastra-ai/mastra/commit/1dbd76aff29cc764d3a1ac7bb01172fe59cb5992), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04)]:
|
|
48
|
+
- @mastra/deployer@0.21.0-alpha.0
|
|
49
|
+
- @mastra/core@0.21.0-alpha.0
|
|
50
|
+
- @mastra/loggers@0.10.16-alpha.0
|
|
51
|
+
- @mastra/mcp@0.13.5-alpha.0
|
|
52
|
+
|
|
3
53
|
## 0.15.1
|
|
4
54
|
|
|
5
55
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,120 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mastra CLI
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Mastra is
|
|
5
|
+
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
It includes everything you need to go from early prototypes to production-ready applications. Mastra integrates with frontend and backend frameworks like React, Next.js, and Node, or you can deploy it anywhere as a standalone server. It's the easiest way to build, tune, and scale reliable AI products.
|
|
8
|
+
|
|
9
|
+
`mastra` is Mastra's CLI package and allows you to:
|
|
8
10
|
|
|
9
11
|
- Create a new project
|
|
10
12
|
- Spin up the Mastra dev server
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
## Installing the Mastra CLI
|
|
14
|
-
|
|
15
|
-
```bash copy
|
|
16
|
-
npm i -g mastra
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Commands
|
|
20
|
-
|
|
21
|
-
### Init
|
|
22
|
-
|
|
23
|
-
`mastra init` is used for initializing a new project.
|
|
24
|
-
|
|
25
|
-
This creates a mastra directory under `src` containing an `index.ts` entrypoint and an `agent` directory containing two sample agents.
|
|
26
|
-
|
|
27
|
-
```text
|
|
28
|
-
project-root/
|
|
29
|
-
├── src/
|
|
30
|
-
├── app/
|
|
31
|
-
└── mastra/
|
|
32
|
-
├── agents/
|
|
33
|
-
│ └── agents.ts
|
|
34
|
-
└── index.ts
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Dev
|
|
38
|
-
|
|
39
|
-
`mastra dev`
|
|
40
|
-
|
|
41
|
-
This spins up a local development server that hosts `REST` endpoints for all agents and workflows. It also has a chat interface for testing them.
|
|
42
|
-
|
|
43
|
-
The server is useful for testing and developing agents, workflows, and integrations without needing to deploy your application.
|
|
44
|
-
|
|
45
|
-
The server is available at `http://localhost:3000`.
|
|
46
|
-
|
|
47
|
-
### Build
|
|
48
|
-
|
|
49
|
-
`mastra build`
|
|
50
|
-
|
|
51
|
-
This command builds your Mastra project for deployment to different environments. The build process:
|
|
52
|
-
|
|
53
|
-
1. Reads your Mastra configuration
|
|
54
|
-
2. Generates optimized files for your target environment
|
|
55
|
-
3. Outputs them to a build directory
|
|
13
|
+
- Build your Mastra project so that you can deploy it anywhere
|
|
56
14
|
|
|
57
|
-
|
|
15
|
+
## Usage
|
|
58
16
|
|
|
59
|
-
|
|
60
|
-
--dir Directory containing Mastra files (default: src/mastra)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Example usage:
|
|
17
|
+
After installing `mastra` globally you can use it anywhere.
|
|
64
18
|
|
|
65
19
|
```bash
|
|
66
|
-
|
|
67
|
-
mastra build
|
|
68
|
-
|
|
69
|
-
# Build from custom directory
|
|
70
|
-
mastra build --dir path/to/mastra
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
The build output is determined by your Mastra instance's deployer configuration:
|
|
74
|
-
|
|
75
|
-
```typescript
|
|
76
|
-
const mastra = new Mastra({
|
|
77
|
-
deployer: {
|
|
78
|
-
type: 'HONO', // Target environment (HONO, EXPRESS, NEXT)
|
|
79
|
-
// Environment-specific options
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### Lint
|
|
85
|
-
|
|
86
|
-
`mastra lint`
|
|
87
|
-
|
|
88
|
-
Validates your Mastra project structure and code.
|
|
89
|
-
|
|
90
|
-
Options:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
--root Path to your root folder
|
|
94
|
-
--tools Comma-separated list of paths to tool files to include
|
|
20
|
+
npm i -g mastra
|
|
95
21
|
```
|
|
96
22
|
|
|
97
|
-
|
|
23
|
+
If you prefer to not install packages globally, you can use `npx`:
|
|
98
24
|
|
|
99
25
|
```bash
|
|
100
|
-
|
|
101
|
-
mastra lint
|
|
26
|
+
npx mastra
|
|
102
27
|
```
|
|
103
28
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
This CLI collects anonymous usage data (no personal/sensitive info) to help improve Mastra. This includes:
|
|
107
|
-
|
|
108
|
-
- Commands used
|
|
109
|
-
- Command execution time
|
|
110
|
-
- Error occurrences
|
|
111
|
-
- System information (OS, Node version)
|
|
112
|
-
|
|
113
|
-
To opt-out:
|
|
114
|
-
|
|
115
|
-
1. Add `MASTRA_TELEMETRY_DISABLED=1` to commands
|
|
116
|
-
|
|
117
|
-
## Local development
|
|
29
|
+
## Commands
|
|
118
30
|
|
|
119
|
-
|
|
120
|
-
2. Run `pnpm i` to install deps
|
|
31
|
+
Find all available commands in the [CLI commands reference](https://mastra.ai/reference/cli/mastra).
|
|
@@ -40,10 +40,13 @@ function getPackageManager() {
|
|
|
40
40
|
}
|
|
41
41
|
return "npm";
|
|
42
42
|
}
|
|
43
|
-
var logger =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
var logger = createLogger(false);
|
|
44
|
+
function createLogger(debug = false) {
|
|
45
|
+
return new PinoLogger({
|
|
46
|
+
name: "Mastra CLI",
|
|
47
|
+
level: debug ? "debug" : "info"
|
|
48
|
+
});
|
|
49
|
+
}
|
|
47
50
|
|
|
48
51
|
// src/utils/clone-template.ts
|
|
49
52
|
var exec = util.promisify(child_process.exec);
|
|
@@ -523,56 +526,23 @@ var FileService = class {
|
|
|
523
526
|
|
|
524
527
|
// src/commands/init/utils.ts
|
|
525
528
|
var exec2 = util.promisify(child_process.exec);
|
|
526
|
-
var
|
|
527
|
-
switch (llmProvider) {
|
|
528
|
-
default:
|
|
529
|
-
return "latest";
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
var getAISDKPackage = (llmProvider) => {
|
|
533
|
-
switch (llmProvider) {
|
|
534
|
-
case "openai":
|
|
535
|
-
return "@ai-sdk/openai";
|
|
536
|
-
case "anthropic":
|
|
537
|
-
return "@ai-sdk/anthropic";
|
|
538
|
-
case "groq":
|
|
539
|
-
return "@ai-sdk/groq";
|
|
540
|
-
case "google":
|
|
541
|
-
return "@ai-sdk/google";
|
|
542
|
-
case "cerebras":
|
|
543
|
-
return "@ai-sdk/cerebras";
|
|
544
|
-
case "mistral":
|
|
545
|
-
return "@ai-sdk/mistral";
|
|
546
|
-
default:
|
|
547
|
-
return "@ai-sdk/openai";
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
var getProviderImportAndModelItem = (llmProvider) => {
|
|
551
|
-
let providerImport = "";
|
|
552
|
-
let modelItem = "";
|
|
529
|
+
var getModelIdentifier = (llmProvider) => {
|
|
553
530
|
if (llmProvider === "openai") {
|
|
554
|
-
|
|
555
|
-
modelItem = `openai('gpt-4o-mini')`;
|
|
531
|
+
return `'openai/gpt-4o-mini'`;
|
|
556
532
|
} else if (llmProvider === "anthropic") {
|
|
557
|
-
|
|
558
|
-
modelItem = `anthropic('claude-3-5-sonnet-20241022')`;
|
|
533
|
+
return `'anthropic/claude-3-5-sonnet-20241022'`;
|
|
559
534
|
} else if (llmProvider === "groq") {
|
|
560
|
-
|
|
561
|
-
modelItem = `groq('llama-3.3-70b-versatile')`;
|
|
535
|
+
return `'groq/llama-3.3-70b-versatile'`;
|
|
562
536
|
} else if (llmProvider === "google") {
|
|
563
|
-
|
|
564
|
-
modelItem = `google('gemini-2.5-pro')`;
|
|
537
|
+
return `'google/gemini-2.5-pro'`;
|
|
565
538
|
} else if (llmProvider === "cerebras") {
|
|
566
|
-
|
|
567
|
-
modelItem = `cerebras('llama-3.3-70b')`;
|
|
539
|
+
return `'cerebras/llama-3.3-70b'`;
|
|
568
540
|
} else if (llmProvider === "mistral") {
|
|
569
|
-
|
|
570
|
-
modelItem = `mistral('mistral-medium-2508')`;
|
|
541
|
+
return `'mistral/mistral-medium-2508'`;
|
|
571
542
|
}
|
|
572
|
-
return { providerImport, modelItem };
|
|
573
543
|
};
|
|
574
544
|
async function writeAgentSample(llmProvider, destPath, addExampleTool) {
|
|
575
|
-
const
|
|
545
|
+
const modelString = getModelIdentifier(llmProvider);
|
|
576
546
|
const instructions = `
|
|
577
547
|
You are a helpful weather assistant that provides accurate weather information and can help planning activities based on the weather.
|
|
578
548
|
|
|
@@ -588,7 +558,6 @@ async function writeAgentSample(llmProvider, destPath, addExampleTool) {
|
|
|
588
558
|
${addExampleTool ? "Use the weatherTool to fetch current weather data." : ""}
|
|
589
559
|
`;
|
|
590
560
|
const content = `
|
|
591
|
-
${providerImport}
|
|
592
561
|
import { Agent } from '@mastra/core/agent';
|
|
593
562
|
import { Memory } from '@mastra/memory';
|
|
594
563
|
import { LibSQLStore } from '@mastra/libsql';
|
|
@@ -597,7 +566,7 @@ ${addExampleTool ? `import { weatherTool } from '../tools/weather-tool';` : ""}
|
|
|
597
566
|
export const weatherAgent = new Agent({
|
|
598
567
|
name: 'Weather Agent',
|
|
599
568
|
instructions: \`${instructions}\`,
|
|
600
|
-
model: ${
|
|
569
|
+
model: ${modelString},
|
|
601
570
|
${addExampleTool ? "tools: { weatherTool }," : ""}
|
|
602
571
|
memory: new Memory({
|
|
603
572
|
storage: new LibSQLStore({
|
|
@@ -1119,7 +1088,6 @@ var checkForPkgJson = async () => {
|
|
|
1119
1088
|
|
|
1120
1089
|
// src/commands/init/init.ts
|
|
1121
1090
|
var s = p2.spinner();
|
|
1122
|
-
var exec3 = util.promisify(child_process.exec);
|
|
1123
1091
|
var init = async ({
|
|
1124
1092
|
directory,
|
|
1125
1093
|
addExample = false,
|
|
@@ -1167,12 +1135,6 @@ var init = async ({
|
|
|
1167
1135
|
}
|
|
1168
1136
|
}
|
|
1169
1137
|
const key = await getAPIKey(llmProvider || "openai");
|
|
1170
|
-
const aiSdkPackage = getAISDKPackage(llmProvider);
|
|
1171
|
-
const aiSdkPackageVersion = getAISDKPackageVersion(llmProvider);
|
|
1172
|
-
const depsService = new DepsService();
|
|
1173
|
-
const pm = depsService.packageManager;
|
|
1174
|
-
const installCommand = getPackageManagerAddCommand(pm);
|
|
1175
|
-
await exec3(`${pm} ${installCommand} ${aiSdkPackage}@${aiSdkPackageVersion}`);
|
|
1176
1138
|
if (configureEditorWithDocsMCP) {
|
|
1177
1139
|
await installMastraDocsMCPServer({
|
|
1178
1140
|
editor: configureEditorWithDocsMCP,
|
|
@@ -1199,10 +1161,10 @@ var init = async ({
|
|
|
1199
1161
|
return { success: false };
|
|
1200
1162
|
}
|
|
1201
1163
|
};
|
|
1202
|
-
var
|
|
1164
|
+
var exec3 = util.promisify(child_process.exec);
|
|
1203
1165
|
var execWithTimeout = async (command, timeoutMs) => {
|
|
1204
1166
|
try {
|
|
1205
|
-
const promise =
|
|
1167
|
+
const promise = exec3(command, { killSignal: "SIGTERM" });
|
|
1206
1168
|
if (!timeoutMs) {
|
|
1207
1169
|
return await promise;
|
|
1208
1170
|
}
|
|
@@ -1297,9 +1259,9 @@ var createMastraProject = async ({
|
|
|
1297
1259
|
const installCommand = getPackageManagerAddCommand(pm);
|
|
1298
1260
|
s2.message("Initializing project structure");
|
|
1299
1261
|
try {
|
|
1300
|
-
await
|
|
1301
|
-
await
|
|
1302
|
-
await
|
|
1262
|
+
await exec3(`npm init -y`);
|
|
1263
|
+
await exec3(`npm pkg set type="module"`);
|
|
1264
|
+
await exec3(`npm pkg set engines.node=">=20.9.0"`);
|
|
1303
1265
|
const depsService = new DepsService();
|
|
1304
1266
|
await depsService.addScriptsToPackageJson({
|
|
1305
1267
|
dev: "mastra dev",
|
|
@@ -1314,9 +1276,9 @@ var createMastraProject = async ({
|
|
|
1314
1276
|
s2.stop("Project structure created");
|
|
1315
1277
|
s2.start(`Installing ${pm} dependencies`);
|
|
1316
1278
|
try {
|
|
1317
|
-
await
|
|
1318
|
-
await
|
|
1319
|
-
await
|
|
1279
|
+
await exec3(`${pm} ${installCommand} zod@^3`);
|
|
1280
|
+
await exec3(`${pm} ${installCommand} typescript @types/node --save-dev`);
|
|
1281
|
+
await exec3(`echo '{
|
|
1320
1282
|
"compilerOptions": {
|
|
1321
1283
|
"target": "ES2022",
|
|
1322
1284
|
"module": "ES2022",
|
|
@@ -1359,14 +1321,14 @@ var createMastraProject = async ({
|
|
|
1359
1321
|
s2.stop("Mastra dependencies installed");
|
|
1360
1322
|
s2.start("Adding .gitignore");
|
|
1361
1323
|
try {
|
|
1362
|
-
await
|
|
1363
|
-
await
|
|
1364
|
-
await
|
|
1365
|
-
await
|
|
1366
|
-
await
|
|
1367
|
-
await
|
|
1368
|
-
await
|
|
1369
|
-
await
|
|
1324
|
+
await exec3(`echo output.txt >> .gitignore`);
|
|
1325
|
+
await exec3(`echo node_modules >> .gitignore`);
|
|
1326
|
+
await exec3(`echo dist >> .gitignore`);
|
|
1327
|
+
await exec3(`echo .mastra >> .gitignore`);
|
|
1328
|
+
await exec3(`echo .env.development >> .gitignore`);
|
|
1329
|
+
await exec3(`echo .env >> .gitignore`);
|
|
1330
|
+
await exec3(`echo *.db >> .gitignore`);
|
|
1331
|
+
await exec3(`echo *.db-* >> .gitignore`);
|
|
1370
1332
|
} catch (error) {
|
|
1371
1333
|
throw new Error(`Failed to create .gitignore: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
1372
1334
|
}
|
|
@@ -1597,6 +1559,6 @@ async function createFromTemplate(args2) {
|
|
|
1597
1559
|
}
|
|
1598
1560
|
}
|
|
1599
1561
|
|
|
1600
|
-
export { DepsService, FileService, checkAndInstallCoreDeps, checkForPkgJson, create, init, interactivePrompt, logger };
|
|
1601
|
-
//# sourceMappingURL=chunk-
|
|
1602
|
-
//# sourceMappingURL=chunk-
|
|
1562
|
+
export { DepsService, FileService, checkAndInstallCoreDeps, checkForPkgJson, create, createLogger, init, interactivePrompt, logger };
|
|
1563
|
+
//# sourceMappingURL=chunk-GK64AJRT.js.map
|
|
1564
|
+
//# sourceMappingURL=chunk-GK64AJRT.js.map
|