mastra 1.0.0-beta.8 → 1.0.0
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 +541 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/index.d.ts.map +1 -1
- package/dist/analytics/index.js +1 -1
- package/dist/chunk-3MHPDBSK.js +203 -0
- package/dist/chunk-3MHPDBSK.js.map +1 -0
- package/dist/chunk-CIB5EGSF.js +2077 -0
- package/dist/chunk-CIB5EGSF.js.map +1 -0
- package/dist/commands/actions/build-project.d.ts +1 -0
- package/dist/commands/actions/build-project.d.ts.map +1 -1
- package/dist/commands/actions/init-project.d.ts.map +1 -1
- package/dist/commands/actions/migrate.d.ts +8 -0
- package/dist/commands/actions/migrate.d.ts.map +1 -0
- package/dist/commands/build/BuildBundler.d.ts +6 -1
- package/dist/commands/build/BuildBundler.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 +2 -2
- package/dist/commands/create/utils.d.ts +1 -1
- package/dist/commands/create/utils.d.ts.map +1 -1
- package/dist/commands/dev/DevBundler.d.ts.map +1 -1
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/init/mcp-docs-server-install.d.ts +3 -2
- package/dist/commands/init/mcp-docs-server-install.d.ts.map +1 -1
- package/dist/commands/init/utils.d.ts +2 -1
- package/dist/commands/init/utils.d.ts.map +1 -1
- package/dist/commands/migrate/MigrateBundler.d.ts +12 -0
- package/dist/commands/migrate/MigrateBundler.d.ts.map +1 -0
- package/dist/commands/migrate/migrate.d.ts +8 -0
- package/dist/commands/migrate/migrate.d.ts.map +1 -0
- package/dist/commands/studio/studio.d.ts +3 -0
- package/dist/commands/studio/studio.d.ts.map +1 -1
- package/dist/commands/utils.d.ts +7 -1
- package/dist/commands/utils.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +452 -143
- package/dist/index.js.map +1 -1
- package/dist/services/service.deps.d.ts.map +1 -1
- package/dist/studio/assets/abap-DfV8M9d-.js +1 -0
- package/dist/studio/assets/abnf-DM1r2G3v.js +1 -0
- package/dist/studio/assets/actionscript-CIGCphg-.js +1 -0
- package/dist/studio/assets/ada-C2mXeBS-.js +1 -0
- package/dist/studio/assets/agda-B8W9zMkM.js +1 -0
- package/dist/studio/assets/al-CxehYQrG.js +1 -0
- package/dist/studio/assets/antlr4-kXl49650.js +1 -0
- package/dist/studio/assets/apacheconf-CybKi65j.js +1 -0
- package/dist/studio/assets/apex-D2gF7hBx.js +1 -0
- package/dist/studio/assets/apl-CZfBPEhG.js +1 -0
- package/dist/studio/assets/applescript-DLjsIDtj.js +1 -0
- package/dist/studio/assets/aql-0N4zXyki.js +1 -0
- package/dist/studio/assets/arduino-B5w8mXk3.js +1 -0
- package/dist/studio/assets/arff-BANugw2P.js +1 -0
- package/dist/studio/assets/asciidoc-DqiN7SNp.js +1 -0
- package/dist/studio/assets/asm6502-PCJjJLJ5.js +1 -0
- package/dist/studio/assets/asmatmel-CdijEPDi.js +1 -0
- package/dist/studio/assets/aspnet-nKdzA2CT.js +1 -0
- package/dist/studio/assets/autohotkey-Pd_aeEby.js +1 -0
- package/dist/studio/assets/autoit-Dbn5fJzM.js +1 -0
- package/dist/studio/assets/avisynth-DUaLezP9.js +1 -0
- package/dist/studio/assets/avro-idl-DWJ5tQH0.js +1 -0
- package/dist/studio/assets/bash-Ba3hVtLQ.js +1 -0
- package/dist/studio/assets/basic-kuQpG__a.js +1 -0
- package/dist/studio/assets/batch-CsCJFmLs.js +1 -0
- package/dist/studio/assets/bbcode-BHDhTqRn.js +1 -0
- package/dist/studio/assets/bicep-kaXd2GgH.js +1 -0
- package/dist/studio/assets/birb-xrRX2kR9.js +1 -0
- package/dist/studio/assets/bison-B4wSBGq5.js +1 -0
- package/dist/studio/assets/bnf-VxXLx9E7.js +1 -0
- package/dist/studio/assets/brainfuck-C4kVhir7.js +1 -0
- package/dist/studio/assets/brightscript-ClOPFeWk.js +1 -0
- package/dist/studio/assets/bro-RsT5UxQF.js +1 -0
- package/dist/studio/assets/bsl-DoFfkoIj.js +1 -0
- package/dist/studio/assets/c-G6Y8AcGu.js +1 -0
- package/dist/studio/assets/cfscript-C8tTqPGW.js +1 -0
- package/dist/studio/assets/chaiscript-BeWV3cTT.js +1 -0
- package/dist/studio/assets/chunk-55VPMN3N-Ax1F4Y75-BfIl7yVW.js +1 -0
- package/dist/studio/assets/chunk-55VPMN3N-DjHZ-GjI.js +1 -0
- package/dist/studio/assets/cil-BdbnB_h3.js +1 -0
- package/dist/studio/assets/clike-BsPk7D-t.js +1 -0
- package/dist/studio/assets/clojure-CKmR3H2u.js +1 -0
- package/dist/studio/assets/cmake-BH4akvBx.js +1 -0
- package/dist/studio/assets/cobol-Cht1kwF7.js +1 -0
- package/dist/studio/assets/coffeescript-jR-vtyc6.js +1 -0
- package/dist/studio/assets/concurnas-BM_DO98B.js +1 -0
- package/dist/studio/assets/coq-QmEJ8KAz.js +1 -0
- package/dist/studio/assets/core-okBBdU_c.js +1 -0
- package/dist/studio/assets/cpp-DseG5X18.js +1 -0
- package/dist/studio/assets/crystal-D0ZFOL7M.js +1 -0
- package/dist/studio/assets/csharp-B541CBuk.js +1 -0
- package/dist/studio/assets/cshtml-IznfYgFX.js +1 -0
- package/dist/studio/assets/csp-DD7o8ZF2.js +1 -0
- package/dist/studio/assets/css-W1Pz-0-W.js +1 -0
- package/dist/studio/assets/css-extras-DZwSX13y.js +1 -0
- package/dist/studio/assets/csv-YwLLR6Mq.js +1 -0
- package/dist/studio/assets/cypher-FHbxeMX5.js +1 -0
- package/dist/studio/assets/d-Dfrj-eRT.js +1 -0
- package/dist/studio/assets/dart-LgjZI3s_.js +1 -0
- package/dist/studio/assets/dataweave-CcCfiJC9.js +1 -0
- package/dist/studio/assets/dax-x_bk3zMN.js +1 -0
- package/dist/studio/assets/dhall-C9MgYcV3.js +1 -0
- package/dist/studio/assets/diff-CSznuJXK.js +3 -0
- package/dist/studio/assets/django-D6lrCyss.js +1 -0
- package/dist/studio/assets/dns-zone-file-BaRqOqh0.js +1 -0
- package/dist/studio/assets/docker-BU2mcz0J.js +1 -0
- package/dist/studio/assets/dot-pzOaxtzh.js +1 -0
- package/dist/studio/assets/ebnf-JjKhBnB7.js +1 -0
- package/dist/studio/assets/editorconfig-BWCxsQ5c.js +1 -0
- package/dist/studio/assets/eiffel-DeOvAgYM.js +1 -0
- package/dist/studio/assets/ejs-GyVx4ZuV.js +1 -0
- package/dist/studio/assets/elixir-Bbs6O1UP.js +1 -0
- package/dist/studio/assets/elm-B4FtBi8-.js +1 -0
- package/dist/studio/assets/erb-vGrvkX7K.js +1 -0
- package/dist/studio/assets/erlang-B-LEKaJA.js +1 -0
- package/dist/studio/assets/etlua-Dh2y3a-O.js +1 -0
- package/dist/studio/assets/excel-formula-6JgtUPvd.js +1 -0
- package/dist/studio/assets/factor-B1iv87fG.js +1 -0
- package/dist/studio/assets/false-D5vJg3sX.js +1 -0
- package/dist/studio/assets/firestore-security-rules-Cl5iMbYw.js +1 -0
- package/dist/studio/assets/flow-DUqEyAaC.js +1 -0
- package/dist/studio/assets/fortran-BLz3_4NS.js +1 -0
- package/dist/studio/assets/fsharp-j8c-zB9q.js +1 -0
- package/dist/studio/assets/ftl-DHkPaZpO.js +1 -0
- package/dist/studio/assets/gap-CnYuFqLv.js +1 -0
- package/dist/studio/assets/gcode-D_yksHYz.js +1 -0
- package/dist/studio/assets/gdscript-B_l_wK6j.js +1 -0
- package/dist/studio/assets/gedcom-B_-hirTl.js +1 -0
- package/dist/studio/assets/gherkin-DWG0ZFNT.js +1 -0
- package/dist/studio/assets/git-gr740IRL.js +1 -0
- package/dist/studio/assets/glsl-BCA3XUqm.js +1 -0
- package/dist/studio/assets/gml-DVYmW_Tz.js +1 -0
- package/dist/studio/assets/gn-CbCqSCX8.js +1 -0
- package/dist/studio/assets/go-Bj8kN_ki.js +1 -0
- package/dist/studio/assets/go-module-BBMgyrD3.js +1 -0
- package/dist/studio/assets/graphql-DJWOy0t8.js +1 -0
- package/dist/studio/assets/groovy-Cl9A4wsg.js +1 -0
- package/dist/studio/assets/haml-BJst7sw4.js +1 -0
- package/dist/studio/assets/handlebars-C2YSBeFf.js +1 -0
- package/dist/studio/assets/haskell-w2By53g2.js +1 -0
- package/dist/studio/assets/haxe-DUHGVJSI.js +1 -0
- package/dist/studio/assets/hcl-BBhF1SzE.js +1 -0
- package/dist/studio/assets/hlsl-rAiMM230.js +1 -0
- package/dist/studio/assets/hoon-VybiDUli.js +1 -0
- package/dist/studio/assets/hpkp-BbnllfNa.js +1 -0
- package/dist/studio/assets/hsts-Bchvgfs7.js +1 -0
- package/dist/studio/assets/http-DTxN0gk8.js +1 -0
- package/dist/studio/assets/ichigojam-BaYqhQjt.js +1 -0
- package/dist/studio/assets/icon-snVwJvKz.js +1 -0
- package/dist/studio/assets/icu-message-format-J6LQIkDV.js +1 -0
- package/dist/studio/assets/idris-DIg3maPw.js +1 -0
- package/dist/studio/assets/iecst-DleA2Mbj.js +1 -0
- package/dist/studio/assets/ignore-CxQtdgm0.js +1 -0
- package/dist/studio/assets/index-4K-pxxPy.js +1 -0
- package/dist/studio/assets/index-BJZ0ZQVa.js +1 -0
- package/dist/studio/assets/index-BmXTYrPJ.js +1 -0
- package/dist/studio/assets/index-Bp7RvN78.js +1 -0
- package/dist/studio/assets/index-BrSXTzb2.js +1 -0
- package/dist/studio/assets/index-C3BMquXe.js +1 -0
- package/dist/studio/assets/index-CUT3lAmr.js +1 -0
- package/dist/studio/assets/index-Cco67RGn.js +1 -0
- package/dist/studio/assets/index-CqdrLq-r.js +1 -0
- package/dist/studio/assets/index-D-RAvI-W.js +1 -0
- package/dist/studio/assets/index-D7ZAhFOM.js +2 -0
- package/dist/studio/assets/index-DFAKVwWS.js +3 -0
- package/dist/studio/assets/index-D_0x6Gj3.js +1 -0
- package/dist/studio/assets/index-LxK4x1L2.js +13 -0
- package/dist/studio/assets/index-NQWXI5aE.js +1 -0
- package/dist/studio/assets/index-Xh70vNFd.js +7 -0
- package/dist/studio/assets/index-ZZ-x44wc.js +1 -0
- package/dist/studio/assets/index-ld4Jx3vU.js +1 -0
- package/dist/studio/assets/index-yUiD89B4.js +1 -0
- package/dist/studio/assets/inform7-CmIQhWlF.js +1 -0
- package/dist/studio/assets/ini-B6tCsjL2.js +1 -0
- package/dist/studio/assets/io-BrVpbNJD.js +1 -0
- package/dist/studio/assets/j-BXam7U0f.js +1 -0
- package/dist/studio/assets/java-C12HNyiY.js +1 -0
- package/dist/studio/assets/javadoc-C2JLdiMH.js +1 -0
- package/dist/studio/assets/javadoclike-CleVx-CO.js +1 -0
- package/dist/studio/assets/javascript-D7j1ZnXq.js +1 -0
- package/dist/studio/assets/javastacktrace-Bl4be2kn.js +1 -0
- package/dist/studio/assets/jexl-BjWF1nNg.js +1 -0
- package/dist/studio/assets/jolie-DX7xf-uh.js +1 -0
- package/dist/studio/assets/jq-B8GF_dQj.js +1 -0
- package/dist/studio/assets/js-extras-Brtz_Rlc.js +1 -0
- package/dist/studio/assets/js-templates-DwVWwgBq.js +1 -0
- package/dist/studio/assets/jsdoc-B0Y5YCun.js +1 -0
- package/dist/studio/assets/json-B32nfGH2.js +1 -0
- package/dist/studio/assets/json5-CaQ37-NN.js +1 -0
- package/dist/studio/assets/jsonp-vH7DMKx-.js +1 -0
- package/dist/studio/assets/jsstacktrace-CTXEw6MX.js +1 -0
- package/dist/studio/assets/jsx-CCLw13yd.js +1 -0
- package/dist/studio/assets/julia-D51AMUr5.js +1 -0
- package/dist/studio/assets/keepalived-gI14PziU.js +1 -0
- package/dist/studio/assets/keyman-BGouP8ob.js +1 -0
- package/dist/studio/assets/kotlin-Sr7Nh7LO.js +1 -0
- package/dist/studio/assets/kumir-Db40ADAz.js +1 -0
- package/dist/studio/assets/kusto-BG2y7kzC.js +1 -0
- package/dist/studio/assets/latex-DirpyATy.js +1 -0
- package/dist/studio/assets/latte-rpeO71xI.js +1 -0
- package/dist/studio/assets/less-D2yFyQcJ.js +1 -0
- package/dist/studio/assets/lilypond-CsVjlEdo.js +1 -0
- package/dist/studio/assets/liquid-Dg-QCDHP.js +1 -0
- package/dist/studio/assets/lisp-2TB502pr.js +1 -0
- package/dist/studio/assets/livescript-BgKhl81d.js +1 -0
- package/dist/studio/assets/llvm-AzbiXZYC.js +1 -0
- package/dist/studio/assets/log-XOM89erg.js +1 -0
- package/dist/studio/assets/lolcode-ary-P93f.js +1 -0
- package/dist/studio/assets/lua-DrVi-6T9.js +1 -0
- package/dist/studio/assets/magma-XlDy9mef.js +1 -0
- package/dist/studio/assets/main-CLufFnNm.js +571 -0
- package/dist/studio/assets/makefile-DTToXNb8.js +1 -0
- package/dist/studio/assets/markdown-CYkGqThn.js +1 -0
- package/dist/studio/assets/markup-CGKJLuQh.js +1 -0
- package/dist/studio/assets/markup-templating-CQTeSz_x.js +1 -0
- package/dist/studio/assets/matlab-DU7iWH3o.js +1 -0
- package/dist/studio/assets/maxscript-ClyOThgU.js +1 -0
- package/dist/studio/assets/mel-D1xw8xqB.js +1 -0
- package/dist/studio/assets/mermaid-D8bkMCmJ.js +1 -0
- package/dist/studio/assets/mizar-BEyOcCE0.js +1 -0
- package/dist/studio/assets/mongodb-D2Q5lO3u.js +1 -0
- package/dist/studio/assets/monkey-CVLgG4DU.js +1 -0
- package/dist/studio/assets/moonscript-aZA5-lVT.js +1 -0
- package/dist/studio/assets/n1ql-kJAj6YAG.js +1 -0
- package/dist/studio/assets/n4js-BMnnVf8S.js +1 -0
- package/dist/studio/assets/nand2tetris-hdl-DtdBLeU-.js +1 -0
- package/dist/studio/assets/naniscript-C3oCN029.js +1 -0
- package/dist/studio/assets/nasm-Dxk0LOuA.js +1 -0
- package/dist/studio/assets/neon-DTBpPlBj.js +1 -0
- package/dist/studio/assets/nevod-BgfzX1fP.js +1 -0
- package/dist/studio/assets/nginx-BXA4EeLd.js +1 -0
- package/dist/studio/assets/nim-CAiPX-Oo.js +1 -0
- package/dist/studio/assets/nix-yjy0Wss9.js +1 -0
- package/dist/studio/assets/nsis-B1gIhxO6.js +1 -0
- package/dist/studio/assets/objectivec-Diidf0kz.js +1 -0
- package/dist/studio/assets/ocaml-Cmbhpg1w.js +1 -0
- package/dist/studio/assets/opencl-3JTTgnGe.js +1 -0
- package/dist/studio/assets/openqasm-CiJ0o0qK.js +1 -0
- package/dist/studio/assets/oz-C0wVwc2X.js +1 -0
- package/dist/studio/assets/parigp-OEFhM-lq.js +1 -0
- package/dist/studio/assets/parser-S1Ikhm2W.js +1 -0
- package/dist/studio/assets/pascal-DVRoZFY6.js +1 -0
- package/dist/studio/assets/pascaligo-DCjdyE-r.js +1 -0
- package/dist/studio/assets/pcaxis-D6kdGvwG.js +1 -0
- package/dist/studio/assets/peoplecode-3oknHEtW.js +1 -0
- package/dist/studio/assets/perl-YOsZNVlu.js +1 -0
- package/dist/studio/assets/php-CF4aba8p.js +1 -0
- package/dist/studio/assets/php-extras-rbLTCv2v.js +1 -0
- package/dist/studio/assets/phpdoc-BaOJqgLc.js +1 -0
- package/dist/studio/assets/plsql-BwXhukci.js +1 -0
- package/dist/studio/assets/powerquery-Bi3eBVb_.js +1 -0
- package/dist/studio/assets/powershell-B-odv6x5.js +1 -0
- package/dist/studio/assets/processing-D4rGPvP7.js +1 -0
- package/dist/studio/assets/prolog-CeUmsoQM.js +1 -0
- package/dist/studio/assets/promql-CyTqIqm2.js +1 -0
- package/dist/studio/assets/properties-CjWDMcb1.js +1 -0
- package/dist/studio/assets/protobuf-DxnU9Woe.js +1 -0
- package/dist/studio/assets/psl-NCRvsbXg.js +1 -0
- package/dist/studio/assets/pug-Co9oFf0B.js +1 -0
- package/dist/studio/assets/puppet-CY5UVCWB.js +1 -0
- package/dist/studio/assets/pure-p15dlyR1.js +1 -0
- package/dist/studio/assets/purebasic-v8XnNsEa.js +1 -0
- package/dist/studio/assets/purescript-sbloJ76T.js +1 -0
- package/dist/studio/assets/python-Fcw8QHOM.js +1 -0
- package/dist/studio/assets/q-CUcHKkzH.js +1 -0
- package/dist/studio/assets/qml-BndvQrpl.js +1 -0
- package/dist/studio/assets/qore-DjMaUGrU.js +1 -0
- package/dist/studio/assets/qsharp-DhQgd273.js +1 -0
- package/dist/studio/assets/r-B6WFxvuB.js +1 -0
- package/dist/studio/assets/racket-CmZobDoE.js +1 -0
- package/dist/studio/assets/reason-D40s-ngO.js +1 -0
- package/dist/studio/assets/regex-B6qa3OhM.js +1 -0
- package/dist/studio/assets/rego-CcP9PBY9.js +1 -0
- package/dist/studio/assets/renpy-BmduRttO.js +1 -0
- package/dist/studio/assets/rest-DyXua7Fk.js +1 -0
- package/dist/studio/assets/rip-B8yXt4LM.js +1 -0
- package/dist/studio/assets/roboconf-Dhg5GfqI.js +1 -0
- package/dist/studio/assets/robotframework-UfMsafK5.js +1 -0
- package/dist/studio/assets/ruby-NSqmvL40.js +1 -0
- package/dist/studio/assets/rust-fnEmKVRH.js +1 -0
- package/dist/studio/assets/sas-gTU-AeqF.js +1 -0
- package/dist/studio/assets/sass-owdwDGPv.js +1 -0
- package/dist/studio/assets/scala-CzoVKu3V.js +1 -0
- package/dist/studio/assets/scheme-C5bZkcVj.js +1 -0
- package/dist/studio/assets/scss-DhYnBqUX.js +1 -0
- package/dist/studio/assets/shell-session-BrsnxsAq.js +1 -0
- package/dist/studio/assets/smali-DSr3YYem.js +1 -0
- package/dist/studio/assets/smalltalk-DmCnIwZS.js +1 -0
- package/dist/studio/assets/smarty-J3_yfzR0.js +1 -0
- package/dist/studio/assets/sml-DzRzpoXp.js +1 -0
- package/dist/studio/assets/solidity-BAFLzTkZ.js +1 -0
- package/dist/studio/assets/solution-file-CwL0PA3u.js +1 -0
- package/dist/studio/assets/soy-B5UEf2pC.js +1 -0
- package/dist/studio/assets/sparql-mn23WSPR.js +1 -0
- package/dist/studio/assets/splunk-spl-C5nRfFzP.js +1 -0
- package/dist/studio/assets/sqf-5hxBKYe1.js +1 -0
- package/dist/studio/assets/sql-fssSIz4H.js +1 -0
- package/dist/studio/assets/squirrel-Ds6tCN02.js +1 -0
- package/dist/studio/assets/stan-Ckwu7whq.js +1 -0
- package/dist/studio/assets/style-B2ZHD43y.css +1 -0
- package/dist/studio/assets/stylus-BTBlOGM3.js +1 -0
- package/dist/studio/assets/swift-CewYFHto.js +1 -0
- package/dist/studio/assets/systemd-HbM7FkR9.js +2 -0
- package/dist/studio/assets/t4-cs-DNQGFYp2.js +1 -0
- package/dist/studio/assets/t4-templating--3IINEEJ.js +1 -0
- package/dist/studio/assets/t4-vb-DxAOOjqa.js +1 -0
- package/dist/studio/assets/tap-fY5I5nE4.js +1 -0
- package/dist/studio/assets/tcl-MjtqI5MG.js +1 -0
- package/dist/studio/assets/textile-DVlUjyMQ.js +1 -0
- package/dist/studio/assets/token-6GSAFR2W-SPYPLMBM-C7CQhoj_.js +1 -0
- package/dist/studio/assets/token-6GSAFR2W-SPYPLMBM-ChURikIE-CaYdZIxq.js +1 -0
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-cGskxyUO.js +1 -0
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-hEay2AHp-BNG-nfjd.js +1 -0
- package/dist/studio/assets/toml-CX9o3XuX.js +1 -0
- package/dist/studio/assets/tremor-BzKdZn9i.js +1 -0
- package/dist/studio/assets/tsx-DcFRngaP.js +1 -0
- package/dist/studio/assets/tt2-41ciaAle.js +1 -0
- package/dist/studio/assets/turtle-3yFm17h9.js +1 -0
- package/dist/studio/assets/twig-CmrYMjPg.js +1 -0
- package/dist/studio/assets/typescript-CkxBytZ2.js +1 -0
- package/dist/studio/assets/typoscript-JwxTv3b9.js +1 -0
- package/dist/studio/assets/unrealscript-BX8VgDao.js +1 -0
- package/dist/studio/assets/uorazor-BKx-ZmIl.js +1 -0
- package/dist/studio/assets/uri-IUWGtbJT.js +1 -0
- package/dist/studio/assets/v-DRVsoDOt.js +1 -0
- package/dist/studio/assets/vala-CgWWFPVN.js +1 -0
- package/dist/studio/assets/vbnet-C4tciwmk.js +1 -0
- package/dist/studio/assets/velocity-BHxdLgez.js +1 -0
- package/dist/studio/assets/verilog-CqvmV1Uj.js +1 -0
- package/dist/studio/assets/vhdl-OPlee6-M.js +1 -0
- package/dist/studio/assets/vim-DJvs71l3.js +1 -0
- package/dist/studio/assets/visual-basic-C3nZMX2u.js +1 -0
- package/dist/studio/assets/warpscript-C3qAuUdD.js +1 -0
- package/dist/studio/assets/wasm-DeWE-rUi.js +1 -0
- package/dist/studio/assets/web-idl-N4flYsyr.js +1 -0
- package/dist/studio/assets/wiki-CQra4A4l.js +1 -0
- package/dist/studio/assets/wolfram-CZ3bkEwA.js +1 -0
- package/dist/studio/assets/wren-Ccd-rFO9.js +1 -0
- package/dist/studio/assets/xeora-DtXYJaMN.js +1 -0
- package/dist/studio/assets/xml-doc-Cwm6iNhJ.js +1 -0
- package/dist/studio/assets/xojo-Co9-NGdA.js +1 -0
- package/dist/studio/assets/xquery-DeBcoAKM.js +1 -0
- package/dist/studio/assets/yaml-BtLymCyg.js +1 -0
- package/dist/studio/assets/yang-CCnV4vOT.js +1 -0
- package/dist/studio/assets/zig-D4vwTtQB.js +1 -0
- package/dist/studio/index.html +47 -0
- package/dist/templates/dev.entry.js +1 -1
- package/dist/utils/dev-logger.d.ts +1 -1
- package/dist/utils/dev-logger.d.ts.map +1 -1
- package/dist/utils/mastra-packages.d.ts +6 -0
- package/dist/utils/mastra-packages.d.ts.map +1 -0
- package/package.json +19 -19
- package/dist/chunk-2NL6B7TW.js +0 -1999
- package/dist/chunk-2NL6B7TW.js.map +0 -1
- package/dist/chunk-TL3K64EI.js +0 -201
- package/dist/chunk-TL3K64EI.js.map +0 -1
- package/dist/playground/assets/abap-Ccw4_BPD.js +0 -1
- package/dist/playground/assets/abnf-qvJiZmjv.js +0 -1
- package/dist/playground/assets/actionscript-BjyhECg1.js +0 -1
- package/dist/playground/assets/ada-Ctq79OiS.js +0 -1
- package/dist/playground/assets/agda-C5QUp7D-.js +0 -1
- package/dist/playground/assets/al-DrPBkl24.js +0 -1
- package/dist/playground/assets/antlr4-BIICisI8.js +0 -1
- package/dist/playground/assets/apacheconf-DU6lGtUK.js +0 -1
- package/dist/playground/assets/apex-RS9Zyvpr.js +0 -1
- package/dist/playground/assets/apl-BfBhLa-T.js +0 -1
- package/dist/playground/assets/applescript-cOtGElOp.js +0 -1
- package/dist/playground/assets/aql-D534nPYc.js +0 -1
- package/dist/playground/assets/arduino-BdnIWIDX.js +0 -1
- package/dist/playground/assets/arff-BdH0X_Mu.js +0 -1
- package/dist/playground/assets/asciidoc-Brl0gVgw.js +0 -1
- package/dist/playground/assets/asm6502-o8TdnvAK.js +0 -1
- package/dist/playground/assets/asmatmel-Cqt2p2P7.js +0 -1
- package/dist/playground/assets/aspnet-DXPVA8E9.js +0 -1
- package/dist/playground/assets/autohotkey-BM1AoLqN.js +0 -1
- package/dist/playground/assets/autoit-DApv13wc.js +0 -1
- package/dist/playground/assets/avisynth-BuGRLyN-.js +0 -1
- package/dist/playground/assets/avro-idl-JOl-5nUa.js +0 -1
- package/dist/playground/assets/bash-BA-Kf_Vc.js +0 -1
- package/dist/playground/assets/basic-Dc1ADd52.js +0 -1
- package/dist/playground/assets/batch-C6Bmvpdh.js +0 -1
- package/dist/playground/assets/bbcode-DFlozAda.js +0 -1
- package/dist/playground/assets/bicep-DJYbr1X4.js +0 -1
- package/dist/playground/assets/birb-C23sUG4s.js +0 -1
- package/dist/playground/assets/bison-Ukd2k06G.js +0 -1
- package/dist/playground/assets/bnf-Dbxybaxl.js +0 -1
- package/dist/playground/assets/brainfuck-3Mo1thMN.js +0 -1
- package/dist/playground/assets/brightscript-BPg95Qt1.js +0 -1
- package/dist/playground/assets/bro-Cg38LzH5.js +0 -1
- package/dist/playground/assets/bsl-DU1qhNjZ.js +0 -1
- package/dist/playground/assets/c-DqjER1q6.js +0 -1
- package/dist/playground/assets/cfscript-DobezCpk.js +0 -1
- package/dist/playground/assets/chaiscript-C3vMFkem.js +0 -1
- package/dist/playground/assets/cil-CqPlkGup.js +0 -1
- package/dist/playground/assets/clike-CGQicO2I.js +0 -1
- package/dist/playground/assets/clojure-C7MlOfcG.js +0 -1
- package/dist/playground/assets/cmake-D0mDsRxt.js +0 -1
- package/dist/playground/assets/cobol-BxjN1JCI.js +0 -1
- package/dist/playground/assets/coffeescript-BrBrhrEK.js +0 -1
- package/dist/playground/assets/concurnas-xZnTSoNt.js +0 -1
- package/dist/playground/assets/coq-DqKEojW-.js +0 -1
- package/dist/playground/assets/core-H8P6dkPD.js +0 -8
- package/dist/playground/assets/cpp-D_6Y5CvF.js +0 -1
- package/dist/playground/assets/crystal-bGeweKyo.js +0 -1
- package/dist/playground/assets/csharp-uHi1z5QP.js +0 -1
- package/dist/playground/assets/cshtml-DeJG1E-w.js +0 -1
- package/dist/playground/assets/csp-DT0J3DwE.js +0 -1
- package/dist/playground/assets/css-CqaxF2Tc.js +0 -1
- package/dist/playground/assets/css-extras-De-GaDx3.js +0 -1
- package/dist/playground/assets/csv-rnf0F-NB.js +0 -1
- package/dist/playground/assets/cypher-BvZHoBxw.js +0 -1
- package/dist/playground/assets/d-BDK2Zdsf.js +0 -1
- package/dist/playground/assets/dart-cybJOlIO.js +0 -1
- package/dist/playground/assets/dataweave-CRVB9Jz4.js +0 -1
- package/dist/playground/assets/dax-vhexOql8.js +0 -1
- package/dist/playground/assets/dhall-mHAtxwed.js +0 -1
- package/dist/playground/assets/diff-CVp0-RZC.js +0 -3
- package/dist/playground/assets/django-CIzJTLMe.js +0 -1
- package/dist/playground/assets/dns-zone-file-C6OcX4iv.js +0 -1
- package/dist/playground/assets/docker-DOnc8Rtq.js +0 -1
- package/dist/playground/assets/dot-oOzUpLHR.js +0 -1
- package/dist/playground/assets/ebnf-B2cBEH2T.js +0 -1
- package/dist/playground/assets/editorconfig-DNJI6nXu.js +0 -1
- package/dist/playground/assets/eiffel-INdMi8oF.js +0 -1
- package/dist/playground/assets/ejs-CFdB5zol.js +0 -1
- package/dist/playground/assets/elixir-DXjUcEVK.js +0 -1
- package/dist/playground/assets/elm-BKsGmMAr.js +0 -1
- package/dist/playground/assets/erb-BFROcW8C.js +0 -1
- package/dist/playground/assets/erlang-lwvDET99.js +0 -1
- package/dist/playground/assets/etlua-B1F6FyOn.js +0 -1
- package/dist/playground/assets/excel-formula-C_Sg_vgq.js +0 -1
- package/dist/playground/assets/factor-DDb_4dr0.js +0 -1
- package/dist/playground/assets/false-DY_E3Owy.js +0 -1
- package/dist/playground/assets/firestore-security-rules-BJzIBon-.js +0 -1
- package/dist/playground/assets/flow-D0Z7kSFW.js +0 -1
- package/dist/playground/assets/fortran-e3YYDz1D.js +0 -1
- package/dist/playground/assets/fsharp-BnZLEXr6.js +0 -1
- package/dist/playground/assets/ftl-BhGq9u0v.js +0 -1
- package/dist/playground/assets/gap-CM8_WVjT.js +0 -1
- package/dist/playground/assets/gcode-ucTmQXiE.js +0 -1
- package/dist/playground/assets/gdscript-D0oJGAi5.js +0 -1
- package/dist/playground/assets/gedcom-CVv-QIQ8.js +0 -1
- package/dist/playground/assets/gherkin-DLVNP6j7.js +0 -1
- package/dist/playground/assets/git-B5Lq9dRD.js +0 -1
- package/dist/playground/assets/glsl-BJCQ0vQ9.js +0 -1
- package/dist/playground/assets/gml-C3M4LCnD.js +0 -1
- package/dist/playground/assets/gn-CdMM85Dc.js +0 -1
- package/dist/playground/assets/go-CXbeOeLa.js +0 -1
- package/dist/playground/assets/go-module-Bn8tNUT5.js +0 -1
- package/dist/playground/assets/graphql-bjDoGV28.js +0 -1
- package/dist/playground/assets/groovy-CcujS2Lz.js +0 -1
- package/dist/playground/assets/haml-H6Q3t8N_.js +0 -1
- package/dist/playground/assets/handlebars-BqhfCqPV.js +0 -1
- package/dist/playground/assets/haskell-CECkAAYY.js +0 -1
- package/dist/playground/assets/haxe-SYtG0ifV.js +0 -1
- package/dist/playground/assets/hcl-Nk5NXfuH.js +0 -1
- package/dist/playground/assets/hlsl-Cebo2viV.js +0 -1
- package/dist/playground/assets/hoon-BCxqhN92.js +0 -1
- package/dist/playground/assets/hpkp-BfzhLwn5.js +0 -1
- package/dist/playground/assets/hsts-gn1Rboim.js +0 -1
- package/dist/playground/assets/http-CVa4vYM2.js +0 -1
- package/dist/playground/assets/ichigojam-BrnPklm4.js +0 -1
- package/dist/playground/assets/icon-CLflcaAu.js +0 -1
- package/dist/playground/assets/icu-message-format-B13xrvsk.js +0 -1
- package/dist/playground/assets/idris-B7s5x65x.js +0 -1
- package/dist/playground/assets/iecst-CWkSY8sd.js +0 -1
- package/dist/playground/assets/ignore-Do44XWDj.js +0 -1
- package/dist/playground/assets/index--5DER5wk.js +0 -1
- package/dist/playground/assets/index-B59_bfa8.js +0 -1
- package/dist/playground/assets/index-B7c2hhfl.js +0 -3
- package/dist/playground/assets/index-B7yKwMcw.js +0 -1
- package/dist/playground/assets/index-BHU1jfZt.js +0 -1
- package/dist/playground/assets/index-C5eLG-BK.js +0 -1
- package/dist/playground/assets/index-C8jt85AG.js +0 -1167
- package/dist/playground/assets/index-C_nBypBx.js +0 -1
- package/dist/playground/assets/index-CjE_xNO-.js +0 -1
- package/dist/playground/assets/index-CtZrPC95.js +0 -1
- package/dist/playground/assets/index-CzEXPMsj.js +0 -13
- package/dist/playground/assets/index-DK4o-oPO.js +0 -1
- package/dist/playground/assets/index-DSTGHT9Q.js +0 -2
- package/dist/playground/assets/index-DpE02XB4.js +0 -1
- package/dist/playground/assets/index-DqXHBGiO.js +0 -1
- package/dist/playground/assets/index-EDWqAW_d.js +0 -1
- package/dist/playground/assets/index-F3h9ltvv.js +0 -7
- package/dist/playground/assets/index-eqZjAPYT.js +0 -1
- package/dist/playground/assets/inform7-A3Fb5cnP.js +0 -1
- package/dist/playground/assets/ini-CJE5MAb6.js +0 -1
- package/dist/playground/assets/io-SbC0PTdw.js +0 -1
- package/dist/playground/assets/j-DaJNfDKN.js +0 -1
- package/dist/playground/assets/java-DaaB8EHT.js +0 -1
- package/dist/playground/assets/javadoc-u2zi6Ok1.js +0 -1
- package/dist/playground/assets/javadoclike-DOyodK4l.js +0 -1
- package/dist/playground/assets/javascript-DcF3xwlS.js +0 -1
- package/dist/playground/assets/javastacktrace-D-ynEkGP.js +0 -1
- package/dist/playground/assets/jexl-PRQIbtSt.js +0 -1
- package/dist/playground/assets/jolie-2jut3sF5.js +0 -1
- package/dist/playground/assets/jq-_Y051p0q.js +0 -1
- package/dist/playground/assets/js-extras-CRekhP8s.js +0 -1
- package/dist/playground/assets/js-templates-DO7ovLLX.js +0 -1
- package/dist/playground/assets/jsdoc-DU6E7z56.js +0 -1
- package/dist/playground/assets/json-D4QDUmAq.js +0 -1
- package/dist/playground/assets/json5-D2CO6V26.js +0 -1
- package/dist/playground/assets/jsonp-BUPCDPFF.js +0 -1
- package/dist/playground/assets/jsstacktrace-DB49XhDB.js +0 -1
- package/dist/playground/assets/jsx-B-i0m8jY.js +0 -1
- package/dist/playground/assets/julia-NihUvpSs.js +0 -1
- package/dist/playground/assets/keepalived-dVRQavmZ.js +0 -1
- package/dist/playground/assets/keyman-JAvaGCuH.js +0 -1
- package/dist/playground/assets/kotlin-BNSxOVSG.js +0 -1
- package/dist/playground/assets/kumir-CNimxT1X.js +0 -1
- package/dist/playground/assets/kusto-22w0zj0q.js +0 -1
- package/dist/playground/assets/latex-Bsfn_fQo.js +0 -1
- package/dist/playground/assets/latte-BzvQMjsZ.js +0 -1
- package/dist/playground/assets/less-CceGCFmR.js +0 -1
- package/dist/playground/assets/lilypond-DGAQtJvx.js +0 -1
- package/dist/playground/assets/liquid-CiUgh5vU.js +0 -1
- package/dist/playground/assets/lisp-UzCtIAIW.js +0 -1
- package/dist/playground/assets/livescript-R-sBuH7_.js +0 -1
- package/dist/playground/assets/llvm-e4q_Qe0I.js +0 -1
- package/dist/playground/assets/log-DZwp54PD.js +0 -1
- package/dist/playground/assets/lolcode-BKStCWr5.js +0 -1
- package/dist/playground/assets/lua-XfQSHLtj.js +0 -1
- package/dist/playground/assets/magma-BhrMcuTF.js +0 -1
- package/dist/playground/assets/makefile-aWdfADPG.js +0 -1
- package/dist/playground/assets/markdown-C_AWr9CL.js +0 -1
- package/dist/playground/assets/markup-CJcAFpj4.js +0 -1
- package/dist/playground/assets/markup-templating-CQvkDDMh.js +0 -1
- package/dist/playground/assets/matlab-CkLVay79.js +0 -1
- package/dist/playground/assets/maxscript-PDHtoh4K.js +0 -1
- package/dist/playground/assets/mel-CXUELgW8.js +0 -1
- package/dist/playground/assets/mermaid-BscmcKOB.js +0 -1
- package/dist/playground/assets/mizar-CRahFD6Y.js +0 -1
- package/dist/playground/assets/mongodb-DfSBqwAX.js +0 -1
- package/dist/playground/assets/monkey-BnCZ4GBd.js +0 -1
- package/dist/playground/assets/moonscript-DMc-mJi1.js +0 -1
- package/dist/playground/assets/n1ql-CORf3Qjb.js +0 -1
- package/dist/playground/assets/n4js-BQJZJMNI.js +0 -1
- package/dist/playground/assets/nand2tetris-hdl-DWDiOuo1.js +0 -1
- package/dist/playground/assets/naniscript-ebr1X3Ux.js +0 -1
- package/dist/playground/assets/nasm-CpgqfZaP.js +0 -1
- package/dist/playground/assets/neon-D9c3aY_H.js +0 -1
- package/dist/playground/assets/nevod-BNT8F8tR.js +0 -1
- package/dist/playground/assets/nginx-DXWX1ZGM.js +0 -1
- package/dist/playground/assets/nim-DNDe1X41.js +0 -1
- package/dist/playground/assets/nix-B4mssHaN.js +0 -1
- package/dist/playground/assets/nsis-DcX4uWCf.js +0 -1
- package/dist/playground/assets/objectivec-BjrAKQhW.js +0 -1
- package/dist/playground/assets/ocaml-BpTxUSXV.js +0 -1
- package/dist/playground/assets/opencl-BEaoQ7CR.js +0 -1
- package/dist/playground/assets/openqasm-CVSYDUCs.js +0 -1
- package/dist/playground/assets/oz-on91WSaz.js +0 -1
- package/dist/playground/assets/parigp-CqZbKUZA.js +0 -1
- package/dist/playground/assets/parser-C6FXbjsM.js +0 -1
- package/dist/playground/assets/pascal-GtZlqqq-.js +0 -1
- package/dist/playground/assets/pascaligo-Dexv7IpQ.js +0 -1
- package/dist/playground/assets/pcaxis-XEsIPGou.js +0 -1
- package/dist/playground/assets/peoplecode-DITANtJp.js +0 -1
- package/dist/playground/assets/perl-C04uVCop.js +0 -1
- package/dist/playground/assets/php-CcWJTi6W.js +0 -1
- package/dist/playground/assets/php-extras-BPNecAjv.js +0 -1
- package/dist/playground/assets/phpdoc-CVrU6SEB.js +0 -1
- package/dist/playground/assets/plsql-PI5mwqA1.js +0 -1
- package/dist/playground/assets/powerquery-CnERaOJO.js +0 -1
- package/dist/playground/assets/powershell-DX7sV3yP.js +0 -1
- package/dist/playground/assets/processing-DmFrOZ48.js +0 -1
- package/dist/playground/assets/prolog-CT-unhC4.js +0 -1
- package/dist/playground/assets/promql-DCiPOUAL.js +0 -1
- package/dist/playground/assets/properties-BCuF7L-L.js +0 -1
- package/dist/playground/assets/protobuf-qbmcFkjR.js +0 -1
- package/dist/playground/assets/psl-Dy2Db5BA.js +0 -1
- package/dist/playground/assets/pug-BEkgWe_l.js +0 -1
- package/dist/playground/assets/puppet-Dob3WoNR.js +0 -1
- package/dist/playground/assets/pure-OcEv4bOZ.js +0 -1
- package/dist/playground/assets/purebasic-CczZE4NS.js +0 -1
- package/dist/playground/assets/purescript-DLadHaOn.js +0 -1
- package/dist/playground/assets/python-C5ywtuze.js +0 -1
- package/dist/playground/assets/q-BxMwzEk2.js +0 -1
- package/dist/playground/assets/qml-D_jNj7mK.js +0 -1
- package/dist/playground/assets/qore-DGEm_QaI.js +0 -1
- package/dist/playground/assets/qsharp-BBGCFnvc.js +0 -1
- package/dist/playground/assets/r-BqYiJ-bH.js +0 -1
- package/dist/playground/assets/racket-LbwK41Cx.js +0 -1
- package/dist/playground/assets/reason-ClFpKnX2.js +0 -1
- package/dist/playground/assets/regex-B1wC9yn2.js +0 -1
- package/dist/playground/assets/rego-CzKWLrOC.js +0 -1
- package/dist/playground/assets/renpy-CsjbSGJP.js +0 -1
- package/dist/playground/assets/rest-CqkcO3vN.js +0 -1
- package/dist/playground/assets/rip-tiYlyNDx.js +0 -1
- package/dist/playground/assets/roboconf-OkN86hrF.js +0 -1
- package/dist/playground/assets/robotframework-B7gR0q0Z.js +0 -1
- package/dist/playground/assets/ruby-AxkFCv2u.js +0 -1
- package/dist/playground/assets/rust-qgYKRvOc.js +0 -1
- package/dist/playground/assets/sas-By6hiuEe.js +0 -1
- package/dist/playground/assets/sass-Da_jILhd.js +0 -1
- package/dist/playground/assets/scala-C7azmRZ6.js +0 -1
- package/dist/playground/assets/scheme-DowouoeK.js +0 -1
- package/dist/playground/assets/scss-Bk6u1wfm.js +0 -1
- package/dist/playground/assets/shell-session-B5SLH7Q0.js +0 -1
- package/dist/playground/assets/smali-BxmKCLZw.js +0 -1
- package/dist/playground/assets/smalltalk-CXkijYVs.js +0 -1
- package/dist/playground/assets/smarty-BwrBNgZE.js +0 -1
- package/dist/playground/assets/sml-CJVypAd5.js +0 -1
- package/dist/playground/assets/solidity-CWhUMwX8.js +0 -1
- package/dist/playground/assets/solution-file-DuW7vQCA.js +0 -1
- package/dist/playground/assets/soy-C1GUCAOI.js +0 -1
- package/dist/playground/assets/sparql-Ey0BLol1.js +0 -1
- package/dist/playground/assets/splunk-spl-aJi9R7oa.js +0 -1
- package/dist/playground/assets/sqf-BUE9rdao.js +0 -1
- package/dist/playground/assets/sql-Bc6-TLGm.js +0 -1
- package/dist/playground/assets/squirrel-B2Hm4jrp.js +0 -1
- package/dist/playground/assets/stan-CZN53Ufg.js +0 -1
- package/dist/playground/assets/style-C1xMgJnB.css +0 -1
- package/dist/playground/assets/stylus-DNs1yvPq.js +0 -1
- package/dist/playground/assets/swift-C8awKCYq.js +0 -1
- package/dist/playground/assets/systemd-sEFR3EnB.js +0 -2
- package/dist/playground/assets/t4-cs-DP3W7gNM.js +0 -1
- package/dist/playground/assets/t4-templating-BA9bEDyT.js +0 -1
- package/dist/playground/assets/t4-vb-DCTXMMrv.js +0 -1
- package/dist/playground/assets/tap-DVhAt5W_.js +0 -1
- package/dist/playground/assets/tcl-Dy4vcc0B.js +0 -1
- package/dist/playground/assets/textile-BnvlpDZA.js +0 -1
- package/dist/playground/assets/toml-Cd-QPfIB.js +0 -1
- package/dist/playground/assets/tremor-1mrb_TrK.js +0 -1
- package/dist/playground/assets/tsx-C9BeoyIS.js +0 -1
- package/dist/playground/assets/tt2-CxBDgpSV.js +0 -1
- package/dist/playground/assets/turtle-x8hBC8c4.js +0 -1
- package/dist/playground/assets/twig-DAfCQ212.js +0 -1
- package/dist/playground/assets/typescript-FCeWKuWR.js +0 -1
- package/dist/playground/assets/typoscript-Bz05uSU2.js +0 -1
- package/dist/playground/assets/unrealscript-CBstM54o.js +0 -1
- package/dist/playground/assets/uorazor-BDbO__iv.js +0 -1
- package/dist/playground/assets/uri-n35lkAOK.js +0 -1
- package/dist/playground/assets/v-CPyYXJIF.js +0 -1
- package/dist/playground/assets/vala-Cy5BUPZk.js +0 -1
- package/dist/playground/assets/vbnet-B2QHPKmD.js +0 -1
- package/dist/playground/assets/velocity-D19KeWbI.js +0 -1
- package/dist/playground/assets/verilog-CWqWz3Uk.js +0 -1
- package/dist/playground/assets/vhdl-D3Hnijz5.js +0 -1
- package/dist/playground/assets/vim-ew4U1HTC.js +0 -1
- package/dist/playground/assets/visual-basic-DZQLmqVE.js +0 -1
- package/dist/playground/assets/warpscript-Bdybz_Aj.js +0 -1
- package/dist/playground/assets/wasm-BkGfnaYG.js +0 -1
- package/dist/playground/assets/web-idl-B2YYr96K.js +0 -1
- package/dist/playground/assets/wiki-YpNpbykZ.js +0 -1
- package/dist/playground/assets/wolfram-6Xg0Y6zn.js +0 -1
- package/dist/playground/assets/wren-DyjEuses.js +0 -1
- package/dist/playground/assets/xeora-5CMQvOYk.js +0 -1
- package/dist/playground/assets/xml-doc-hdVPTQHD.js +0 -1
- package/dist/playground/assets/xojo-CZu9JIdA.js +0 -1
- package/dist/playground/assets/xquery-DOKOVgf9.js +0 -1
- package/dist/playground/assets/yaml-DRJ_Vlis.js +0 -1
- package/dist/playground/assets/yang-DR2LMrnX.js +0 -1
- package/dist/playground/assets/zig-ByoUbZY0.js +0 -1
- package/dist/playground/index.html +0 -43
- /package/dist/{playground → studio}/assets/GeistMonoVF-BHyMa335.woff +0 -0
- /package/dist/{playground → studio}/assets/InterVariable-H_M6nIbt.ttf +0 -0
- /package/dist/{playground → studio}/assets/TASAExplorerVF-FO8P5krV.woff2 +0 -0
- /package/dist/{playground → studio}/assets/abap-DsBKuouk.js +0 -0
- /package/dist/{playground → studio}/assets/actionscript-3-D_z4Izcz.js +0 -0
- /package/dist/{playground → studio}/assets/ada-727ZlQH0.js +0 -0
- /package/dist/{playground → studio}/assets/andromeeda-C3khCPGq.js +0 -0
- /package/dist/{playground → studio}/assets/angular-html-LfdN0zeE.js +0 -0
- /package/dist/{playground → studio}/assets/angular-ts-CKsD7JZE.js +0 -0
- /package/dist/{playground → studio}/assets/apache-Dn00JSTd.js +0 -0
- /package/dist/{playground → studio}/assets/apex-COJ4H7py.js +0 -0
- /package/dist/{playground → studio}/assets/apl-B4CMkyY2.js +0 -0
- /package/dist/{playground → studio}/assets/apl-BBq3IX1j.js +0 -0
- /package/dist/{playground → studio}/assets/applescript-Bu5BbsvL.js +0 -0
- /package/dist/{playground → studio}/assets/ara-7O62HKoU.js +0 -0
- /package/dist/{playground → studio}/assets/asciiarmor-Df11BRmG.js +0 -0
- /package/dist/{playground → studio}/assets/asciidoc-BPT9niGB.js +0 -0
- /package/dist/{playground → studio}/assets/asm-Dhn9LcZ4.js +0 -0
- /package/dist/{playground → studio}/assets/asn1-EdZsLKOL.js +0 -0
- /package/dist/{playground → studio}/assets/asterisk-B-8jnY81.js +0 -0
- /package/dist/{playground → studio}/assets/astro-CqkE3fuf.js +0 -0
- /package/dist/{playground → studio}/assets/aurora-x-D-2ljcwZ.js +0 -0
- /package/dist/{playground → studio}/assets/awk-eg146-Ew.js +0 -0
- /package/dist/{playground → studio}/assets/ayu-dark-Cv9koXgw.js +0 -0
- /package/dist/{playground → studio}/assets/ballerina-Du268qiB.js +0 -0
- /package/dist/{playground → studio}/assets/bash-CefCgV5_.js +0 -0
- /package/dist/{playground → studio}/assets/basic-DBS9NaGG.js +0 -0
- /package/dist/{playground → studio}/assets/bat-fje9CFhw.js +0 -0
- /package/dist/{playground → studio}/assets/beancount-BwXTMy5W.js +0 -0
- /package/dist/{playground → studio}/assets/berry-3xVqZejG.js +0 -0
- /package/dist/{playground → studio}/assets/bibtex-xW4inM5L.js +0 -0
- /package/dist/{playground → studio}/assets/bicep-DHo0CJ0O.js +0 -0
- /package/dist/{playground → studio}/assets/blade-a8OxSdnT.js +0 -0
- /package/dist/{playground → studio}/assets/brainfuck-C4LP7Hcl.js +0 -0
- /package/dist/{playground → studio}/assets/bsl-Dgyn0ogV.js +0 -0
- /package/dist/{playground → studio}/assets/c-C3t2pwGQ.js +0 -0
- /package/dist/{playground → studio}/assets/c-kgVuzdLE.js +0 -0
- /package/dist/{playground → studio}/assets/cadence-DNquZEk8.js +0 -0
- /package/dist/{playground → studio}/assets/cairo--RitsXJZ.js +0 -0
- /package/dist/{playground → studio}/assets/catppuccin-frappe-CD_QflpE.js +0 -0
- /package/dist/{playground → studio}/assets/catppuccin-latte-DRW-0cLl.js +0 -0
- /package/dist/{playground → studio}/assets/catppuccin-macchiato-C-_shW-Y.js +0 -0
- /package/dist/{playground → studio}/assets/catppuccin-mocha-LGGdnPYs.js +0 -0
- /package/dist/{playground → studio}/assets/clarity-BHOwM8T6.js +0 -0
- /package/dist/{playground → studio}/assets/clike-B5tY_8Hg.js +0 -0
- /package/dist/{playground → studio}/assets/clike-B9uivgTg.js +0 -0
- /package/dist/{playground → studio}/assets/clojure-BMjYHr_A.js +0 -0
- /package/dist/{playground → studio}/assets/clojure-DxSadP1t.js +0 -0
- /package/dist/{playground → studio}/assets/cmake-BQqOBYOt.js +0 -0
- /package/dist/{playground → studio}/assets/cmake-DbXoA79R.js +0 -0
- /package/dist/{playground → studio}/assets/cobol-CWcv1MsR.js +0 -0
- /package/dist/{playground → studio}/assets/cobol-PTqiYgYu.js +0 -0
- /package/dist/{playground → studio}/assets/codeowners-Bp6g37R7.js +0 -0
- /package/dist/{playground → studio}/assets/codeql-sacFqUAJ.js +0 -0
- /package/dist/{playground → studio}/assets/coffee-dyiR41kL.js +0 -0
- /package/dist/{playground → studio}/assets/coffeescript-S37ZYGWr.js +0 -0
- /package/dist/{playground → studio}/assets/common-lisp-C7gG9l05.js +0 -0
- /package/dist/{playground → studio}/assets/commonlisp-DBKNyK5s.js +0 -0
- /package/dist/{playground → studio}/assets/coq-Dsg_Bt_b.js +0 -0
- /package/dist/{playground → studio}/assets/cpp-BdJVwJpi.js +0 -0
- /package/dist/{playground → studio}/assets/cpp-BksuvNSY.js +0 -0
- /package/dist/{playground → studio}/assets/crystal-DtDmRg-F.js +0 -0
- /package/dist/{playground → studio}/assets/crystal-SjHAIU92.js +0 -0
- /package/dist/{playground → studio}/assets/csharp-Cd5Udg29.js +0 -0
- /package/dist/{playground → studio}/assets/csharp-D9R-vmeu.js +0 -0
- /package/dist/{playground → studio}/assets/css-BPhBrDlE.js +0 -0
- /package/dist/{playground → studio}/assets/css-BnMrqG3P.js +0 -0
- /package/dist/{playground → studio}/assets/css-CF9HHZb0.js +0 -0
- /package/dist/{playground → studio}/assets/csv-B0qRVHPH.js +0 -0
- /package/dist/{playground → studio}/assets/cue-DtFQj3wx.js +0 -0
- /package/dist/{playground → studio}/assets/cypher-C_CwsFkJ.js +0 -0
- /package/dist/{playground → studio}/assets/cypher-m2LEI-9-.js +0 -0
- /package/dist/{playground → studio}/assets/d-BoXegm-a.js +0 -0
- /package/dist/{playground → studio}/assets/d-pRatUO7H.js +0 -0
- /package/dist/{playground → studio}/assets/dark-plus-C3mMm8J8.js +0 -0
- /package/dist/{playground → studio}/assets/dart-B9wLZaAG.js +0 -0
- /package/dist/{playground → studio}/assets/dax-ClGRhx96.js +0 -0
- /package/dist/{playground → studio}/assets/desktop-DEIpsLCJ.js +0 -0
- /package/dist/{playground → studio}/assets/diff-BgYniUM_.js +0 -0
- /package/dist/{playground → studio}/assets/diff-DbItnlRl.js +0 -0
- /package/dist/{playground → studio}/assets/docker-COcR7UxN.js +0 -0
- /package/dist/{playground → studio}/assets/dockerfile-BKs6k2Af.js +0 -0
- /package/dist/{playground → studio}/assets/dotenv-BjQB5zDj.js +0 -0
- /package/dist/{playground → studio}/assets/dracula-BzJJZx-M.js +0 -0
- /package/dist/{playground → studio}/assets/dracula-soft-BXkSAIEj.js +0 -0
- /package/dist/{playground → studio}/assets/dream-maker-C-nORZOA.js +0 -0
- /package/dist/{playground → studio}/assets/dtd-DF_7sFjM.js +0 -0
- /package/dist/{playground → studio}/assets/dylan-DwRh75JA.js +0 -0
- /package/dist/{playground → studio}/assets/ebnf-CDyGwa7X.js +0 -0
- /package/dist/{playground → studio}/assets/ecl-Cabwm37j.js +0 -0
- /package/dist/{playground → studio}/assets/edge-D5gP-w-T.js +0 -0
- /package/dist/{playground → studio}/assets/eiffel-CnydiIhH.js +0 -0
- /package/dist/{playground → studio}/assets/elixir-CLiX3zqd.js +0 -0
- /package/dist/{playground → studio}/assets/elm-CmHSxxaM.js +0 -0
- /package/dist/{playground → studio}/assets/elm-vLlmbW-K.js +0 -0
- /package/dist/{playground → studio}/assets/emacs-lisp-BX77sIaO.js +0 -0
- /package/dist/{playground → studio}/assets/erb-BYTLMnw6.js +0 -0
- /package/dist/{playground → studio}/assets/erlang-B-DoSBHF.js +0 -0
- /package/dist/{playground → studio}/assets/erlang-BNw1qcRV.js +0 -0
- /package/dist/{playground → studio}/assets/everforest-dark-BgDCqdQA.js +0 -0
- /package/dist/{playground → studio}/assets/everforest-light-C8M2exoo.js +0 -0
- /package/dist/{playground → studio}/assets/factor-kuTfRLto.js +0 -0
- /package/dist/{playground → studio}/assets/fcl-Kvtd6kyn.js +0 -0
- /package/dist/{playground → studio}/assets/fennel-bCA53EVm.js +0 -0
- /package/dist/{playground → studio}/assets/fish-w-ucz2PV.js +0 -0
- /package/dist/{playground → studio}/assets/fluent-Dayu4EKP.js +0 -0
- /package/dist/{playground → studio}/assets/forth-Ffai-XNe.js +0 -0
- /package/dist/{playground → studio}/assets/fortran-DYz_wnZ1.js +0 -0
- /package/dist/{playground → studio}/assets/fortran-fixed-form-TqA4NnZg.js +0 -0
- /package/dist/{playground → studio}/assets/fortran-free-form-DKXYxT9g.js +0 -0
- /package/dist/{playground → studio}/assets/fsharp-XplgxFYe.js +0 -0
- /package/dist/{playground → studio}/assets/gas-Bneqetm1.js +0 -0
- /package/dist/{playground → studio}/assets/gdresource-BHYsBjWJ.js +0 -0
- /package/dist/{playground → studio}/assets/gdscript-DfxzS6Rs.js +0 -0
- /package/dist/{playground → studio}/assets/gdshader-SKMF96pI.js +0 -0
- /package/dist/{playground → studio}/assets/genie-ajMbGru0.js +0 -0
- /package/dist/{playground → studio}/assets/gherkin--30QC5Em.js +0 -0
- /package/dist/{playground → studio}/assets/gherkin-heZmZLOM.js +0 -0
- /package/dist/{playground → studio}/assets/git-commit-i4q6IMui.js +0 -0
- /package/dist/{playground → studio}/assets/git-rebase-B-v9cOL2.js +0 -0
- /package/dist/{playground → studio}/assets/github-dark-DHJKELXO.js +0 -0
- /package/dist/{playground → studio}/assets/github-dark-default-Cuk6v7N8.js +0 -0
- /package/dist/{playground → studio}/assets/github-dark-dimmed-DH5Ifo-i.js +0 -0
- /package/dist/{playground → studio}/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -0
- /package/dist/{playground → studio}/assets/github-light-DAi9KRSo.js +0 -0
- /package/dist/{playground → studio}/assets/github-light-default-D7oLnXFd.js +0 -0
- /package/dist/{playground → studio}/assets/github-light-high-contrast-BfjtVDDH.js +0 -0
- /package/dist/{playground → studio}/assets/gleam-B430Bg39.js +0 -0
- /package/dist/{playground → studio}/assets/glimmer-js-D-cwc0-E.js +0 -0
- /package/dist/{playground → studio}/assets/glimmer-ts-pgjy16dm.js +0 -0
- /package/dist/{playground → studio}/assets/glsl-DBO2IWDn.js +0 -0
- /package/dist/{playground → studio}/assets/gnuplot-CM8KxXT1.js +0 -0
- /package/dist/{playground → studio}/assets/go-B1SYOhNW.js +0 -0
- /package/dist/{playground → studio}/assets/graphql-cDcHW_If.js +0 -0
- /package/dist/{playground → studio}/assets/groovy-D9Dt4D0W.js +0 -0
- /package/dist/{playground → studio}/assets/groovy-DkBy-JyN.js +0 -0
- /package/dist/{playground → studio}/assets/hack-D1yCygmZ.js +0 -0
- /package/dist/{playground → studio}/assets/haml-B2EZWmdv.js +0 -0
- /package/dist/{playground → studio}/assets/handlebars-BQGss363.js +0 -0
- /package/dist/{playground → studio}/assets/haskell-BILxekzW.js +0 -0
- /package/dist/{playground → studio}/assets/haskell-Cw1EW3IL.js +0 -0
- /package/dist/{playground → studio}/assets/haskell-Ds42Eazu.js +0 -0
- /package/dist/{playground → studio}/assets/haxe-C5wWYbrZ.js +0 -0
- /package/dist/{playground → studio}/assets/haxe-H-WmDvRZ.js +0 -0
- /package/dist/{playground → studio}/assets/hcl-HzYwdGDm.js +0 -0
- /package/dist/{playground → studio}/assets/hjson-T-Tgc4AT.js +0 -0
- /package/dist/{playground → studio}/assets/hlsl-ifBTmRxC.js +0 -0
- /package/dist/{playground → studio}/assets/houston-DnULxvSX.js +0 -0
- /package/dist/{playground → studio}/assets/html-C2L_23MC.js +0 -0
- /package/dist/{playground → studio}/assets/html-derivative-CSfWNPLT.js +0 -0
- /package/dist/{playground → studio}/assets/http-DBlCnlav.js +0 -0
- /package/dist/{playground → studio}/assets/http-FRrOvY1W.js +0 -0
- /package/dist/{playground → studio}/assets/hxml-TIA70rKU.js +0 -0
- /package/dist/{playground → studio}/assets/hy-BMj5Y0dO.js +0 -0
- /package/dist/{playground → studio}/assets/idl-BEugSyMb.js +0 -0
- /package/dist/{playground → studio}/assets/imba-bv_oIlVt.js +0 -0
- /package/dist/{playground/assets/index-yUiD89B4.js → studio/assets/index-C1OzXW5i-yUiD89B4.js} +0 -0
- /package/dist/{playground → studio}/assets/ini-BjABl1g7.js +0 -0
- /package/dist/{playground → studio}/assets/java-BxMbkJZ_.js +0 -0
- /package/dist/{playground → studio}/assets/java-xI-RfyKK.js +0 -0
- /package/dist/{playground → studio}/assets/javadoclike-myFApC35.js +0 -0
- /package/dist/{playground → studio}/assets/javascript-D8vYUPHd.js +0 -0
- /package/dist/{playground → studio}/assets/javascript-iXu5QeM3.js +0 -0
- /package/dist/{playground → studio}/assets/javascript-ySlJ1b_l.js +0 -0
- /package/dist/{playground → studio}/assets/jinja-DGy0s7-h.js +0 -0
- /package/dist/{playground → studio}/assets/jison-BqZprYcd.js +0 -0
- /package/dist/{playground → studio}/assets/json-BESjz4hO.js +0 -0
- /package/dist/{playground → studio}/assets/json-BQoSv7ci.js +0 -0
- /package/dist/{playground → studio}/assets/json5-w8dY5SsB.js +0 -0
- /package/dist/{playground → studio}/assets/jsonc-TU54ms6u.js +0 -0
- /package/dist/{playground → studio}/assets/jsonl-DREVFZK8.js +0 -0
- /package/dist/{playground → studio}/assets/jsonnet-BfivnA6A.js +0 -0
- /package/dist/{playground → studio}/assets/jssm-P4WzXJd0.js +0 -0
- /package/dist/{playground → studio}/assets/jsx-BAng5TT0.js +0 -0
- /package/dist/{playground → studio}/assets/jsx-CWP8P1mH.js +0 -0
- /package/dist/{playground → studio}/assets/julia-BBuGR-5E.js +0 -0
- /package/dist/{playground → studio}/assets/julia-DuME0IfC.js +0 -0
- /package/dist/{playground → studio}/assets/kanagawa-dragon-CkXjmgJE.js +0 -0
- /package/dist/{playground → studio}/assets/kanagawa-lotus-CfQXZHmo.js +0 -0
- /package/dist/{playground → studio}/assets/kanagawa-wave-DWedfzmr.js +0 -0
- /package/dist/{playground → studio}/assets/kotlin-B5lbUyaz.js +0 -0
- /package/dist/{playground → studio}/assets/kusto-mebxcVVE.js +0 -0
- /package/dist/{playground → studio}/assets/laserwave-DUszq2jm.js +0 -0
- /package/dist/{playground → studio}/assets/latex-C-cWTeAZ.js +0 -0
- /package/dist/{playground → studio}/assets/lean-XBlWyCtg.js +0 -0
- /package/dist/{playground → studio}/assets/less-BfCpw3nA.js +0 -0
- /package/dist/{playground → studio}/assets/light-plus-B7mTdjB0.js +0 -0
- /package/dist/{playground → studio}/assets/liquid-D3W5UaiH.js +0 -0
- /package/dist/{playground → studio}/assets/livescript-BwQOo05w.js +0 -0
- /package/dist/{playground → studio}/assets/log-Cc5clBb7.js +0 -0
- /package/dist/{playground → studio}/assets/logo-IuBKFhSY.js +0 -0
- /package/dist/{playground → studio}/assets/lua-BgMRiT3U.js +0 -0
- /package/dist/{playground → studio}/assets/lua-CvWAzNxB.js +0 -0
- /package/dist/{playground → studio}/assets/lua-DER4jxlW.js +0 -0
- /package/dist/{playground → studio}/assets/luau-Du5NY7AG.js +0 -0
- /package/dist/{playground → studio}/assets/make-Bvotw-X0.js +0 -0
- /package/dist/{playground → studio}/assets/markdown-UIAJJxZW.js +0 -0
- /package/dist/{playground → studio}/assets/marko-z0MBrx5-.js +0 -0
- /package/dist/{playground → studio}/assets/markup-BONeskWm.js +0 -0
- /package/dist/{playground → studio}/assets/markup-templating-BxAVv-bL.js +0 -0
- /package/dist/{playground → studio}/assets/material-theme-D5KoaKCx.js +0 -0
- /package/dist/{playground → studio}/assets/material-theme-darker-BfHTSMKl.js +0 -0
- /package/dist/{playground → studio}/assets/material-theme-lighter-B0m2ddpp.js +0 -0
- /package/dist/{playground → studio}/assets/material-theme-ocean-CyktbL80.js +0 -0
- /package/dist/{playground → studio}/assets/material-theme-palenight-Csfq5Kiy.js +0 -0
- /package/dist/{playground → studio}/assets/mathematica-DTrFuWx2.js +0 -0
- /package/dist/{playground → studio}/assets/matlab-D9-PGadD.js +0 -0
- /package/dist/{playground → studio}/assets/mbox-CNhZ1qSd.js +0 -0
- /package/dist/{playground → studio}/assets/mdc-DB_EDNY_.js +0 -0
- /package/dist/{playground → studio}/assets/mdx-sdHcTMYB.js +0 -0
- /package/dist/{playground → studio}/assets/mermaid-Ci6OQyBP.js +0 -0
- /package/dist/{playground → studio}/assets/min-dark-CafNBF8u.js +0 -0
- /package/dist/{playground → studio}/assets/min-light-CTRr51gU.js +0 -0
- /package/dist/{playground → studio}/assets/mipsasm-BC5c_5Pe.js +0 -0
- /package/dist/{playground → studio}/assets/mirc-CjQqDB4T.js +0 -0
- /package/dist/{playground → studio}/assets/mllike-BO34x3tv.js +0 -0
- /package/dist/{playground → studio}/assets/modelica-Dc1JOy9r.js +0 -0
- /package/dist/{playground → studio}/assets/mojo-Tz6hzZYG.js +0 -0
- /package/dist/{playground → studio}/assets/monokai-D4h5O-jR.js +0 -0
- /package/dist/{playground → studio}/assets/move-DB_GagMm.js +0 -0
- /package/dist/{playground → studio}/assets/mscgen-BA5vi2Kp.js +0 -0
- /package/dist/{playground → studio}/assets/mumps-BT43cFF4.js +0 -0
- /package/dist/{playground → studio}/assets/narrat-DLbgOhZU.js +0 -0
- /package/dist/{playground → studio}/assets/nextflow-B0XVJmRM.js +0 -0
- /package/dist/{playground → studio}/assets/nginx-D_VnBJ67.js +0 -0
- /package/dist/{playground → studio}/assets/nginx-DdIZxoE0.js +0 -0
- /package/dist/{playground → studio}/assets/night-owl-C39BiMTA.js +0 -0
- /package/dist/{playground → studio}/assets/nim-ZlGxZxc3.js +0 -0
- /package/dist/{playground → studio}/assets/nix-shcSOmrb.js +0 -0
- /package/dist/{playground → studio}/assets/nord-Ddv68eIx.js +0 -0
- /package/dist/{playground → studio}/assets/nsis-LdVXkNf5.js +0 -0
- /package/dist/{playground → studio}/assets/ntriples-BfvgReVJ.js +0 -0
- /package/dist/{playground → studio}/assets/nushell-D4Tzg5kh.js +0 -0
- /package/dist/{playground → studio}/assets/objective-c-Deuh7S70.js +0 -0
- /package/dist/{playground → studio}/assets/objective-cpp-BUEGK8hf.js +0 -0
- /package/dist/{playground → studio}/assets/ocaml-BNioltXt.js +0 -0
- /package/dist/{playground → studio}/assets/octave-Ck1zUtKM.js +0 -0
- /package/dist/{playground → studio}/assets/one-dark-pro-GBQ2dnAY.js +0 -0
- /package/dist/{playground → studio}/assets/one-light-PoHY5YXO.js +0 -0
- /package/dist/{playground → studio}/assets/oz-BzwKVEFT.js +0 -0
- /package/dist/{playground → studio}/assets/pascal--L3eBynH.js +0 -0
- /package/dist/{playground → studio}/assets/pascal-JqZropPD.js +0 -0
- /package/dist/{playground → studio}/assets/perl-CHQXSrWU.js +0 -0
- /package/dist/{playground → studio}/assets/perl-CdXCOZ3F.js +0 -0
- /package/dist/{playground → studio}/assets/php-B5ebYQev.js +0 -0
- /package/dist/{playground → studio}/assets/php-iTdQntIy.js +0 -0
- /package/dist/{playground → studio}/assets/pig-CevX1Tat.js +0 -0
- /package/dist/{playground → studio}/assets/plastic-3e1v2bzS.js +0 -0
- /package/dist/{playground → studio}/assets/plsql-LKU2TuZ1.js +0 -0
- /package/dist/{playground → studio}/assets/po-BFLt1xDp.js +0 -0
- /package/dist/{playground → studio}/assets/poimandres-CS3Unz2-.js +0 -0
- /package/dist/{playground → studio}/assets/polar-DKykz6zU.js +0 -0
- /package/dist/{playground → studio}/assets/postcss-B3ZDOciz.js +0 -0
- /package/dist/{playground → studio}/assets/powerquery-CSHBycmS.js +0 -0
- /package/dist/{playground → studio}/assets/powershell-BIEUsx6d.js +0 -0
- /package/dist/{playground → studio}/assets/powershell-CaxLzxiJ.js +0 -0
- /package/dist/{playground → studio}/assets/prisma-B48N-Iqd.js +0 -0
- /package/dist/{playground → studio}/assets/prolog-BY-TUvya.js +0 -0
- /package/dist/{playground → studio}/assets/properties-C78fOPTZ.js +0 -0
- /package/dist/{playground → studio}/assets/proto-zocC4JxJ.js +0 -0
- /package/dist/{playground → studio}/assets/protobuf-ChK-085T.js +0 -0
- /package/dist/{playground → studio}/assets/pug-CM9l7STV.js +0 -0
- /package/dist/{playground → studio}/assets/pug-DeIclll2.js +0 -0
- /package/dist/{playground → studio}/assets/puppet-Cza_XSSt.js +0 -0
- /package/dist/{playground → studio}/assets/puppet-DMA9R1ak.js +0 -0
- /package/dist/{playground → studio}/assets/purescript-Bg-kzb6g.js +0 -0
- /package/dist/{playground → studio}/assets/python-BuPzkPfP.js +0 -0
- /package/dist/{playground → studio}/assets/python-DhUJRlN_.js +0 -0
- /package/dist/{playground → studio}/assets/q-pXgVlZs6.js +0 -0
- /package/dist/{playground → studio}/assets/qml-D8XfuvdV.js +0 -0
- /package/dist/{playground → studio}/assets/qmldir-C8lEn-DE.js +0 -0
- /package/dist/{playground → studio}/assets/qss-DhMKtDLN.js +0 -0
- /package/dist/{playground → studio}/assets/r-B6wPVr8A.js +0 -0
- /package/dist/{playground → studio}/assets/r-CwjWoCRV.js +0 -0
- /package/dist/{playground → studio}/assets/racket-CzouJOBO.js +0 -0
- /package/dist/{playground → studio}/assets/raku-B1bQXN8T.js +0 -0
- /package/dist/{playground → studio}/assets/razor-CNLDkMZG.js +0 -0
- /package/dist/{playground → studio}/assets/red-bN70gL4F.js +0 -0
- /package/dist/{playground → studio}/assets/reg-5LuOXUq_.js +0 -0
- /package/dist/{playground → studio}/assets/regexp-DWJ3fJO_.js +0 -0
- /package/dist/{playground → studio}/assets/rel-DJlmqQ1C.js +0 -0
- /package/dist/{playground → studio}/assets/riscv-QhoSD0DR.js +0 -0
- /package/dist/{playground → studio}/assets/rose-pine-CmCqftbK.js +0 -0
- /package/dist/{playground → studio}/assets/rose-pine-dawn-Ds-gbosJ.js +0 -0
- /package/dist/{playground → studio}/assets/rose-pine-moon-CjDtw9vr.js +0 -0
- /package/dist/{playground → studio}/assets/rpm-CTu-6PCP.js +0 -0
- /package/dist/{playground → studio}/assets/rst-4NLicBqY.js +0 -0
- /package/dist/{playground → studio}/assets/ruby-B2Rjki9n.js +0 -0
- /package/dist/{playground → studio}/assets/ruby-DYsn9XfW.js +0 -0
- /package/dist/{playground → studio}/assets/ruby-DeZ3UC14.js +0 -0
- /package/dist/{playground → studio}/assets/rust-Be6lgOlo.js +0 -0
- /package/dist/{playground → studio}/assets/sas-B4kiWyti.js +0 -0
- /package/dist/{playground → studio}/assets/sas-BmTFh92c.js +0 -0
- /package/dist/{playground → studio}/assets/sass-BJ4Li9vH.js +0 -0
- /package/dist/{playground → studio}/assets/scala-DQVVAn-B.js +0 -0
- /package/dist/{playground → studio}/assets/scheme-BJGe-b2p.js +0 -0
- /package/dist/{playground → studio}/assets/scheme-C41bIUwD.js +0 -0
- /package/dist/{playground → studio}/assets/scheme-Cscf027c.js +0 -0
- /package/dist/{playground → studio}/assets/scss-C31hgJw-.js +0 -0
- /package/dist/{playground → studio}/assets/sdbl-BLhTXw86.js +0 -0
- /package/dist/{playground → studio}/assets/shaderlab-B7qAK45m.js +0 -0
- /package/dist/{playground → studio}/assets/shell-CjFT_Tl9.js +0 -0
- /package/dist/{playground → studio}/assets/shellscript-atvbtKCR.js +0 -0
- /package/dist/{playground → studio}/assets/shellsession-C_rIy8kc.js +0 -0
- /package/dist/{playground → studio}/assets/sieve-C3Gn_uJK.js +0 -0
- /package/dist/{playground → studio}/assets/simple-mode-GW_nhZxv.js +0 -0
- /package/dist/{playground → studio}/assets/slack-dark-BthQWCQV.js +0 -0
- /package/dist/{playground → studio}/assets/slack-ochin-DqwNpetd.js +0 -0
- /package/dist/{playground → studio}/assets/smalltalk-CnHTOXQT.js +0 -0
- /package/dist/{playground → studio}/assets/smalltalk-DkLiglaE.js +0 -0
- /package/dist/{playground → studio}/assets/snazzy-light-Bw305WKR.js +0 -0
- /package/dist/{playground → studio}/assets/solarized-dark-DXbdFlpD.js +0 -0
- /package/dist/{playground → studio}/assets/solarized-light-L9t79GZl.js +0 -0
- /package/dist/{playground → studio}/assets/solidity-C1w2a3ep.js +0 -0
- /package/dist/{playground → studio}/assets/solr-DehyRSwq.js +0 -0
- /package/dist/{playground → studio}/assets/soy-C-lX7w71.js +0 -0
- /package/dist/{playground → studio}/assets/sparql-DkYu6x3z.js +0 -0
- /package/dist/{playground → studio}/assets/sparql-bYkjHRlG.js +0 -0
- /package/dist/{playground → studio}/assets/splunk-Cf8iN4DR.js +0 -0
- /package/dist/{playground → studio}/assets/spreadsheet-BCZA_wO0.js +0 -0
- /package/dist/{playground → studio}/assets/sql-CJATM1Qp.js +0 -0
- /package/dist/{playground → studio}/assets/sql-COK4E0Yg.js +0 -0
- /package/dist/{playground → studio}/assets/sql-D0XecflT.js +0 -0
- /package/dist/{playground → studio}/assets/ssh-config-BknIz3MU.js +0 -0
- /package/dist/{playground → studio}/assets/stata-DorPZHa4.js +0 -0
- /package/dist/{playground → studio}/assets/stex-C3f8Ysf7.js +0 -0
- /package/dist/{playground → studio}/assets/stylus-B533Al4x.js +0 -0
- /package/dist/{playground → studio}/assets/stylus-BeQkCIfX.js +0 -0
- /package/dist/{playground → studio}/assets/svelte-MSaWC3Je.js +0 -0
- /package/dist/{playground → studio}/assets/swift-BSxZ-RaX.js +0 -0
- /package/dist/{playground → studio}/assets/swift-BzpIVaGY.js +0 -0
- /package/dist/{playground → studio}/assets/synthwave-84-CbfX1IO0.js +0 -0
- /package/dist/{playground → studio}/assets/system-verilog-C7L56vO4.js +0 -0
- /package/dist/{playground → studio}/assets/systemd-CUnW07Te.js +0 -0
- /package/dist/{playground → studio}/assets/t4-templating-B5EzSFYT.js +0 -0
- /package/dist/{playground → studio}/assets/talonscript-C1XDQQGZ.js +0 -0
- /package/dist/{playground → studio}/assets/tasl-CQjiPCtT.js +0 -0
- /package/dist/{playground → studio}/assets/tcl-DQ1-QYvQ.js +0 -0
- /package/dist/{playground → studio}/assets/tcl-DVfN8rqt.js +0 -0
- /package/dist/{playground → studio}/assets/templ-dwX3ZSMB.js +0 -0
- /package/dist/{playground → studio}/assets/terraform-BbSNqyBO.js +0 -0
- /package/dist/{playground → studio}/assets/tex-rYs2v40G.js +0 -0
- /package/dist/{playground → studio}/assets/textile-CnDTJFAw.js +0 -0
- /package/dist/{playground → studio}/assets/tiddlywiki-DO-Gjzrf.js +0 -0
- /package/dist/{playground → studio}/assets/tiki-DGYXhP31.js +0 -0
- /package/dist/{playground → studio}/assets/tokyo-night-DBQeEorK.js +0 -0
- /package/dist/{playground → studio}/assets/toml-Bm5Em-hy.js +0 -0
- /package/dist/{playground → studio}/assets/toml-CB2ApiWb.js +0 -0
- /package/dist/{playground → studio}/assets/troff-wAsdV37c.js +0 -0
- /package/dist/{playground → studio}/assets/ts-tags-CipyTH0X.js +0 -0
- /package/dist/{playground → studio}/assets/tsv-B_m7g4N7.js +0 -0
- /package/dist/{playground → studio}/assets/tsx-B6W0miNI.js +0 -0
- /package/dist/{playground → studio}/assets/ttcn-CfJYG6tj.js +0 -0
- /package/dist/{playground → studio}/assets/ttcn-cfg-B9xdYoR4.js +0 -0
- /package/dist/{playground → studio}/assets/turtle-B1tBg_DP.js +0 -0
- /package/dist/{playground → studio}/assets/turtle-BMR_PYu6.js +0 -0
- /package/dist/{playground → studio}/assets/turtle-Ro1R6Je7.js +0 -0
- /package/dist/{playground → studio}/assets/twig-NC5TFiHP.js +0 -0
- /package/dist/{playground → studio}/assets/typescript-CVO-8GEc.js +0 -0
- /package/dist/{playground → studio}/assets/typescript-Dj6nwHGl.js +0 -0
- /package/dist/{playground → studio}/assets/typespec-BpWG_bgh.js +0 -0
- /package/dist/{playground → studio}/assets/typst-BVUVsWT6.js +0 -0
- /package/dist/{playground → studio}/assets/v-CAQ2eGtk.js +0 -0
- /package/dist/{playground → studio}/assets/vala-BFOHcciG.js +0 -0
- /package/dist/{playground → studio}/assets/vb-CdO5JTpU.js +0 -0
- /package/dist/{playground → studio}/assets/vb-CmGdzxic.js +0 -0
- /package/dist/{playground → studio}/assets/vbnet-BhrUc4aD.js +0 -0
- /package/dist/{playground → studio}/assets/vbscript-BuJXcnF6.js +0 -0
- /package/dist/{playground → studio}/assets/velocity-D8B20fx6.js +0 -0
- /package/dist/{playground → studio}/assets/verilog-C6RDOZhf.js +0 -0
- /package/dist/{playground → studio}/assets/verilog-CJaU5se_.js +0 -0
- /package/dist/{playground → studio}/assets/vesper-BEBZ7ncR.js +0 -0
- /package/dist/{playground → studio}/assets/vhdl-DYoNaHQp.js +0 -0
- /package/dist/{playground → studio}/assets/vhdl-lSbBsy5d.js +0 -0
- /package/dist/{playground → studio}/assets/viml-m4uW47V2.js +0 -0
- /package/dist/{playground → studio}/assets/vitesse-black-Bkuqu6BP.js +0 -0
- /package/dist/{playground → studio}/assets/vitesse-dark-D0r3Knsf.js +0 -0
- /package/dist/{playground → studio}/assets/vitesse-light-CVO1_9PV.js +0 -0
- /package/dist/{playground → studio}/assets/vue-BuYVFjOK.js +0 -0
- /package/dist/{playground → studio}/assets/vue-html-xdeiXROB.js +0 -0
- /package/dist/{playground → studio}/assets/vyper-nyqBNV6O.js +0 -0
- /package/dist/{playground → studio}/assets/wasm-C6j12Q_x.js +0 -0
- /package/dist/{playground → studio}/assets/wasm-CG6Dc4jp.js +0 -0
- /package/dist/{playground → studio}/assets/webidl-ZXfAyPTL.js +0 -0
- /package/dist/{playground → studio}/assets/wenyan-7A4Fjokl.js +0 -0
- /package/dist/{playground → studio}/assets/wgsl-CB0Krxn9.js +0 -0
- /package/dist/{playground → studio}/assets/wikitext-DCE3LsBG.js +0 -0
- /package/dist/{playground → studio}/assets/wolfram-C3FkfJm5.js +0 -0
- /package/dist/{playground → studio}/assets/xml-e3z08dGr.js +0 -0
- /package/dist/{playground → studio}/assets/xquery-DzFWVndE.js +0 -0
- /package/dist/{playground → studio}/assets/xsl-Dd0NUgwM.js +0 -0
- /package/dist/{playground → studio}/assets/yacas-BJ4BC0dw.js +0 -0
- /package/dist/{playground → studio}/assets/yaml-CVw76BM1.js +0 -0
- /package/dist/{playground → studio}/assets/yaml-pHjxJgpq.js +0 -0
- /package/dist/{playground → studio}/assets/z80-Hz9HOZM7.js +0 -0
- /package/dist/{playground → studio}/assets/zenscript-HnGAYVZD.js +0 -0
- /package/dist/{playground → studio}/assets/zig-BVz_zdnA.js +0 -0
- /package/dist/{playground → studio}/favicon.ico +0 -0
- /package/dist/{playground → studio}/mastra.svg +0 -0
package/dist/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import { package_default, COMPONENTS, parseComponents, LLMProvider, parseLlmProvider, parseMcp, create, checkForPkgJson, getVersionTag, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService, createLogger, shouldSkipDotenvLoading, DepsService } from './chunk-
|
|
3
|
-
export { create } from './chunk-
|
|
4
|
-
import { PosthogAnalytics, setAnalytics } from './chunk-
|
|
5
|
-
export { PosthogAnalytics } from './chunk-
|
|
2
|
+
import { package_default, COMPONENTS, parseComponents, LLMProvider, parseLlmProvider, parseMcp, create, checkForPkgJson, getVersionTag, isGitInitialized, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService, createLogger, shouldSkipDotenvLoading, DepsService } from './chunk-CIB5EGSF.js';
|
|
3
|
+
export { create } from './chunk-CIB5EGSF.js';
|
|
4
|
+
import { PosthogAnalytics, setAnalytics } from './chunk-3MHPDBSK.js';
|
|
5
|
+
export { PosthogAnalytics } from './chunk-3MHPDBSK.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
|
-
import
|
|
7
|
+
import pc3 from 'picocolors';
|
|
8
8
|
import * as p2 from '@clack/prompts';
|
|
9
9
|
import fs, { existsSync, readFileSync } from 'fs';
|
|
10
|
-
import path, {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import path, { dirname, join } from 'path';
|
|
11
|
+
import { fileURLToPath } from 'url';
|
|
12
|
+
import { getServerOptions, normalizeStudioBase, FileService as FileService$2, getWatcherInputOptions, createWatcher } from '@mastra/deployer/build';
|
|
13
|
+
import { Bundler, IS_DEFAULT } from '@mastra/deployer/bundler';
|
|
14
|
+
import * as fsExtra from 'fs-extra';
|
|
15
|
+
import { copy } from 'fs-extra';
|
|
13
16
|
import { getDeployer, FileService as FileService$1 } from '@mastra/deployer';
|
|
14
17
|
import stripJsonComments from 'strip-json-comments';
|
|
15
|
-
import
|
|
16
|
-
import devcert from '@expo/devcert';
|
|
18
|
+
import process3 from 'process';
|
|
17
19
|
import { execa } from 'execa';
|
|
20
|
+
import { writeFile, mkdir } from 'fs/promises';
|
|
21
|
+
import devcert from '@expo/devcert';
|
|
18
22
|
import getPort from 'get-port';
|
|
19
|
-
import {
|
|
20
|
-
import { fileURLToPath } from 'url';
|
|
21
|
-
import * as fsExtra from 'fs-extra';
|
|
23
|
+
import { getPackageInfo } from 'local-pkg';
|
|
22
24
|
import { spawn } from 'child_process';
|
|
23
25
|
import { config } from 'dotenv';
|
|
24
26
|
import http from 'http';
|
|
@@ -406,7 +408,7 @@ async function initializeScorer(scorer, customPath) {
|
|
|
406
408
|
}
|
|
407
409
|
function showSuccessNote() {
|
|
408
410
|
p2.note(`
|
|
409
|
-
${
|
|
411
|
+
${pc3.green("To use: Add the Scorer to your workflow or agent!")}
|
|
410
412
|
`);
|
|
411
413
|
}
|
|
412
414
|
async function showInteractivePrompt(providedCustomDir) {
|
|
@@ -417,7 +419,7 @@ async function showInteractivePrompt(providedCustomDir) {
|
|
|
417
419
|
let customPath = providedCustomDir;
|
|
418
420
|
if (!providedCustomDir) {
|
|
419
421
|
const useCustomDir = await p2.confirm({
|
|
420
|
-
message: `Would you like to use a custom directory?${
|
|
422
|
+
message: `Would you like to use a custom directory?${pc3.gray("(Default: src/mastra/scorers)")}`,
|
|
421
423
|
initialValue: false
|
|
422
424
|
});
|
|
423
425
|
if (p2.isCancel(useCustomDir)) {
|
|
@@ -473,8 +475,21 @@ var addScorer = async (scorerName, args) => {
|
|
|
473
475
|
});
|
|
474
476
|
};
|
|
475
477
|
var BuildBundler = class extends Bundler {
|
|
476
|
-
|
|
478
|
+
studio;
|
|
479
|
+
constructor({ studio: studio2 } = {}) {
|
|
477
480
|
super("Build");
|
|
481
|
+
this.studio = studio2 ?? false;
|
|
482
|
+
this.platform = process.versions?.bun ? "neutral" : "node";
|
|
483
|
+
}
|
|
484
|
+
async getUserBundlerOptions(mastraEntryFile, outputDirectory) {
|
|
485
|
+
const bundlerOptions = await super.getUserBundlerOptions(mastraEntryFile, outputDirectory);
|
|
486
|
+
if (!bundlerOptions?.[IS_DEFAULT]) {
|
|
487
|
+
return bundlerOptions;
|
|
488
|
+
}
|
|
489
|
+
return {
|
|
490
|
+
...bundlerOptions,
|
|
491
|
+
externals: true
|
|
492
|
+
};
|
|
478
493
|
}
|
|
479
494
|
getEnvFiles() {
|
|
480
495
|
if (shouldSkipDotenvLoading()) {
|
|
@@ -491,6 +506,14 @@ var BuildBundler = class extends Bundler {
|
|
|
491
506
|
}
|
|
492
507
|
async prepare(outputDirectory) {
|
|
493
508
|
await super.prepare(outputDirectory);
|
|
509
|
+
if (this.studio) {
|
|
510
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
511
|
+
const __dirname2 = dirname(__filename2);
|
|
512
|
+
const studioServePath = join(outputDirectory, this.outputDir, "studio");
|
|
513
|
+
await copy(join(dirname(__dirname2), join("dist", "studio")), studioServePath, {
|
|
514
|
+
overwrite: true
|
|
515
|
+
});
|
|
516
|
+
}
|
|
494
517
|
}
|
|
495
518
|
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
496
519
|
return this._bundle(this.getEntry(), entryFile, { outputDirectory, projectRoot }, toolsPaths);
|
|
@@ -503,7 +526,7 @@ var BuildBundler = class extends Bundler {
|
|
|
503
526
|
import { createNodeServer, getToolExports } from '#server';
|
|
504
527
|
import { tools } from '#tools';
|
|
505
528
|
// @ts-ignore
|
|
506
|
-
await createNodeServer(mastra, { tools: getToolExports(tools) });
|
|
529
|
+
await createNodeServer(mastra, { tools: getToolExports(tools), studio: ${this.studio} });
|
|
507
530
|
|
|
508
531
|
if (mastra.getStorage()) {
|
|
509
532
|
// start storage init in the background
|
|
@@ -520,6 +543,7 @@ async function build({
|
|
|
520
543
|
dir: dir2,
|
|
521
544
|
tools,
|
|
522
545
|
root,
|
|
546
|
+
studio: studio2,
|
|
523
547
|
debug
|
|
524
548
|
}) {
|
|
525
549
|
const rootDir = root || process.cwd();
|
|
@@ -531,7 +555,7 @@ async function build({
|
|
|
531
555
|
const mastraEntryFile = fs3.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
532
556
|
const platformDeployer = await getDeployer(mastraEntryFile, outputDirectory);
|
|
533
557
|
if (!platformDeployer) {
|
|
534
|
-
const deployer = new BuildBundler();
|
|
558
|
+
const deployer = new BuildBundler({ studio: studio2 });
|
|
535
559
|
deployer.__setLogger(logger2);
|
|
536
560
|
const discoveredTools2 = deployer.getAllToolPaths(mastraDir, tools);
|
|
537
561
|
await deployer.prepare(outputDirectory);
|
|
@@ -540,7 +564,13 @@ async function build({
|
|
|
540
564
|
projectRoot: rootDir
|
|
541
565
|
});
|
|
542
566
|
logger2.info(`Build successful, you can now deploy the .mastra/output directory to your target platform.`);
|
|
543
|
-
|
|
567
|
+
if (studio2) {
|
|
568
|
+
logger2.info(
|
|
569
|
+
`To start the server with studio, run: MASTRA_STUDIO_PATH=.mastra/output/studio node .mastra/output/index.mjs`
|
|
570
|
+
);
|
|
571
|
+
} else {
|
|
572
|
+
logger2.info(`To start the server, run: node .mastra/output/index.mjs`);
|
|
573
|
+
}
|
|
544
574
|
return;
|
|
545
575
|
}
|
|
546
576
|
logger2.info("Deployer found, preparing deployer build...");
|
|
@@ -580,6 +610,7 @@ var buildProject = async (args) => {
|
|
|
580
610
|
dir: args?.dir,
|
|
581
611
|
root: args?.root,
|
|
582
612
|
tools: args?.tools ? args.tools.split(",") : [],
|
|
613
|
+
studio: args?.studio,
|
|
583
614
|
debug: args.debug
|
|
584
615
|
});
|
|
585
616
|
},
|
|
@@ -632,9 +663,10 @@ var initProject = async (args) => {
|
|
|
632
663
|
execution: async () => {
|
|
633
664
|
await checkForPkgJson();
|
|
634
665
|
const versionTag = await getVersionTag();
|
|
666
|
+
const skipGitInit = await isGitInitialized({ cwd: process.cwd() });
|
|
635
667
|
await checkAndInstallCoreDeps(Boolean(args?.example || args?.default), versionTag);
|
|
636
668
|
if (!Object.keys(args).length) {
|
|
637
|
-
const result = await interactivePrompt();
|
|
669
|
+
const result = await interactivePrompt({ skip: { gitInit: skipGitInit } });
|
|
638
670
|
await init({
|
|
639
671
|
...result,
|
|
640
672
|
llmApiKey: result?.llmApiKey,
|
|
@@ -863,15 +895,15 @@ function formatTable(scorers) {
|
|
|
863
895
|
const idWidth = Math.max(2, Math.max(...scorers.map((s) => s.id.length)));
|
|
864
896
|
const typeWidth = Math.max(4, Math.max(...scorers.map((s) => s.type.length)));
|
|
865
897
|
const descWidth = Math.max(11, Math.max(...scorers.map((s) => s.description.length)));
|
|
866
|
-
const header = `${
|
|
898
|
+
const header = `${pc3.bold("Name".padEnd(nameWidth))} \u2502 ${pc3.bold("ID".padEnd(idWidth))} \u2502 ${pc3.bold("Type".padEnd(typeWidth))} \u2502 ${pc3.bold("Description".padEnd(descWidth))}`;
|
|
867
899
|
const separator = "\u2500".repeat(nameWidth) + "\u2500\u253C\u2500" + "\u2500".repeat(idWidth) + "\u2500\u253C\u2500" + "\u2500".repeat(typeWidth) + "\u2500\u253C\u2500" + "\u2500".repeat(descWidth) + "\u2500";
|
|
868
900
|
const rows = scorers.map(
|
|
869
|
-
(scorer) => `${(scorer?.name ?? scorer?.id).padEnd(nameWidth)} \u2502 ${
|
|
901
|
+
(scorer) => `${(scorer?.name ?? scorer?.id).padEnd(nameWidth)} \u2502 ${pc3.dim(scorer.id.padEnd(idWidth))} \u2502 ${scorer.type.padEnd(typeWidth)} \u2502 ${pc3.dim(scorer.description.padEnd(descWidth))}`
|
|
870
902
|
);
|
|
871
903
|
return [header, separator, ...rows].join("\n");
|
|
872
904
|
}
|
|
873
905
|
function listAllScorers() {
|
|
874
|
-
p2.intro(
|
|
906
|
+
p2.intro(pc3.inverse(" Available Scorers "));
|
|
875
907
|
const groupedScorers = AVAILABLE_SCORERS.reduce(
|
|
876
908
|
(acc, scorer) => {
|
|
877
909
|
if (!acc[scorer.category]) {
|
|
@@ -883,7 +915,7 @@ function listAllScorers() {
|
|
|
883
915
|
{}
|
|
884
916
|
);
|
|
885
917
|
for (const [category, scorers] of Object.entries(groupedScorers)) {
|
|
886
|
-
p2.log.info(`${
|
|
918
|
+
p2.log.info(`${pc3.bold(pc3.cyan(formatCategoryName(category)))} Scorers:`);
|
|
887
919
|
p2.log.message(formatTable(scorers));
|
|
888
920
|
}
|
|
889
921
|
}
|
|
@@ -900,6 +932,241 @@ var listScorers = async (args) => {
|
|
|
900
932
|
origin: origin5
|
|
901
933
|
});
|
|
902
934
|
};
|
|
935
|
+
var MigrateBundler = class extends BuildBundler {
|
|
936
|
+
customEnvFile;
|
|
937
|
+
constructor(customEnvFile) {
|
|
938
|
+
super({ studio: false });
|
|
939
|
+
this.customEnvFile = customEnvFile;
|
|
940
|
+
}
|
|
941
|
+
getEnvFiles() {
|
|
942
|
+
if (shouldSkipDotenvLoading()) {
|
|
943
|
+
return Promise.resolve([]);
|
|
944
|
+
}
|
|
945
|
+
const possibleFiles = [".env.development", ".env.local", ".env"];
|
|
946
|
+
if (this.customEnvFile) {
|
|
947
|
+
possibleFiles.unshift(this.customEnvFile);
|
|
948
|
+
}
|
|
949
|
+
try {
|
|
950
|
+
const fileService = new FileService$2();
|
|
951
|
+
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
952
|
+
return Promise.resolve([envFile]);
|
|
953
|
+
} catch {
|
|
954
|
+
}
|
|
955
|
+
return Promise.resolve([]);
|
|
956
|
+
}
|
|
957
|
+
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
958
|
+
return this._bundle(this.getEntry(), entryFile, { outputDirectory, projectRoot }, toolsPaths);
|
|
959
|
+
}
|
|
960
|
+
getEntry() {
|
|
961
|
+
return `
|
|
962
|
+
import { mastra } from '#mastra';
|
|
963
|
+
|
|
964
|
+
async function runMigration() {
|
|
965
|
+
const storage = mastra.getStorage();
|
|
966
|
+
|
|
967
|
+
if (!storage) {
|
|
968
|
+
console.log(JSON.stringify({
|
|
969
|
+
success: false,
|
|
970
|
+
alreadyMigrated: false,
|
|
971
|
+
duplicatesRemoved: 0,
|
|
972
|
+
message: 'Storage not configured. Please configure storage in your Mastra instance.',
|
|
973
|
+
}));
|
|
974
|
+
process.exit(1);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
// Access the observability store directly from storage.stores
|
|
978
|
+
const observabilityStore = storage.stores?.observability;
|
|
979
|
+
|
|
980
|
+
if (!observabilityStore) {
|
|
981
|
+
console.log(JSON.stringify({
|
|
982
|
+
success: false,
|
|
983
|
+
alreadyMigrated: false,
|
|
984
|
+
duplicatesRemoved: 0,
|
|
985
|
+
message: 'Observability storage not configured. Migration not required.',
|
|
986
|
+
}));
|
|
987
|
+
process.exit(0);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
// Check if the store has a migrateSpans method
|
|
991
|
+
if (typeof observabilityStore.migrateSpans !== 'function') {
|
|
992
|
+
console.log(JSON.stringify({
|
|
993
|
+
success: false,
|
|
994
|
+
alreadyMigrated: false,
|
|
995
|
+
duplicatesRemoved: 0,
|
|
996
|
+
message: 'Migration not supported for this storage backend.',
|
|
997
|
+
}));
|
|
998
|
+
process.exit(1);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
try {
|
|
1002
|
+
// Run the migration - migrateSpans handles everything internally
|
|
1003
|
+
const result = await observabilityStore.migrateSpans();
|
|
1004
|
+
|
|
1005
|
+
console.log(JSON.stringify({
|
|
1006
|
+
success: result.success,
|
|
1007
|
+
alreadyMigrated: result.alreadyMigrated,
|
|
1008
|
+
duplicatesRemoved: result.duplicatesRemoved,
|
|
1009
|
+
message: result.message,
|
|
1010
|
+
}));
|
|
1011
|
+
|
|
1012
|
+
process.exit(result.success ? 0 : 1);
|
|
1013
|
+
} catch (error) {
|
|
1014
|
+
console.log(JSON.stringify({
|
|
1015
|
+
success: false,
|
|
1016
|
+
alreadyMigrated: false,
|
|
1017
|
+
duplicatesRemoved: 0,
|
|
1018
|
+
message: error instanceof Error ? error.message : 'Unknown error during migration',
|
|
1019
|
+
}));
|
|
1020
|
+
process.exit(1);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
runMigration();
|
|
1025
|
+
`;
|
|
1026
|
+
}
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
// src/commands/migrate/migrate.ts
|
|
1030
|
+
async function migrate({
|
|
1031
|
+
dir: dir2,
|
|
1032
|
+
root,
|
|
1033
|
+
env,
|
|
1034
|
+
debug,
|
|
1035
|
+
yes
|
|
1036
|
+
}) {
|
|
1037
|
+
const logger2 = createLogger(debug);
|
|
1038
|
+
const rootDir = root || process3.cwd();
|
|
1039
|
+
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(process3.cwd(), dir2) : join(process3.cwd(), "src", "mastra");
|
|
1040
|
+
const dotMastraPath = join(rootDir, ".mastra");
|
|
1041
|
+
p2.intro(pc3.cyan("Mastra Storage Migration"));
|
|
1042
|
+
if (!yes) {
|
|
1043
|
+
p2.log.warn(pc3.yellow("Warning: This migration will modify your database."));
|
|
1044
|
+
p2.log.message("Before proceeding, please ensure you have:");
|
|
1045
|
+
p2.log.message(" \u2022 Created a backup of your database");
|
|
1046
|
+
p2.log.message(" \u2022 Tested this migration in a non-production environment");
|
|
1047
|
+
const confirmed = await p2.confirm({
|
|
1048
|
+
message: "Have you backed up your database and are ready to proceed?",
|
|
1049
|
+
initialValue: false
|
|
1050
|
+
});
|
|
1051
|
+
if (p2.isCancel(confirmed) || !confirmed) {
|
|
1052
|
+
p2.log.info("Migration cancelled. Please back up your database before running this command.");
|
|
1053
|
+
p2.log.message(pc3.dim("Tip: Use --yes or -y to skip this prompt in CI/automation."));
|
|
1054
|
+
process3.exit(0);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
try {
|
|
1058
|
+
const fileService = new FileService$1();
|
|
1059
|
+
const entryFile = fileService.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
1060
|
+
const bundler = new MigrateBundler(env);
|
|
1061
|
+
bundler.__setLogger(logger2);
|
|
1062
|
+
logger2.info("Building project for migration...");
|
|
1063
|
+
await bundler.prepare(dotMastraPath);
|
|
1064
|
+
const discoveredTools = bundler.getAllToolPaths(mastraDir, []);
|
|
1065
|
+
await bundler.bundle(entryFile, dotMastraPath, {
|
|
1066
|
+
toolsPaths: discoveredTools,
|
|
1067
|
+
projectRoot: rootDir
|
|
1068
|
+
});
|
|
1069
|
+
logger2.info("Running migration...");
|
|
1070
|
+
logger2.info(pc3.dim("This may take a while for large tables."));
|
|
1071
|
+
logger2.info("");
|
|
1072
|
+
const loadedEnv = await bundler.loadEnvVars();
|
|
1073
|
+
const migrationProcess = execa(process3.execPath, [join(dotMastraPath, "output", "index.mjs")], {
|
|
1074
|
+
cwd: rootDir,
|
|
1075
|
+
env: {
|
|
1076
|
+
NODE_ENV: "production",
|
|
1077
|
+
MASTRA_DISABLE_STORAGE_INIT: "true",
|
|
1078
|
+
// Prevent MIGRATION_REQUIRED error during import
|
|
1079
|
+
...Object.fromEntries(loadedEnv)
|
|
1080
|
+
},
|
|
1081
|
+
stdio: ["inherit", "pipe", "pipe"],
|
|
1082
|
+
reject: false
|
|
1083
|
+
});
|
|
1084
|
+
let stdoutData = "";
|
|
1085
|
+
let stderrData = "";
|
|
1086
|
+
migrationProcess.stdout?.on("data", (data) => {
|
|
1087
|
+
stdoutData += data.toString();
|
|
1088
|
+
});
|
|
1089
|
+
migrationProcess.stderr?.on("data", (data) => {
|
|
1090
|
+
stderrData += data.toString();
|
|
1091
|
+
if (debug) {
|
|
1092
|
+
process3.stderr.write(data);
|
|
1093
|
+
}
|
|
1094
|
+
});
|
|
1095
|
+
const processResult = await migrationProcess;
|
|
1096
|
+
let result;
|
|
1097
|
+
try {
|
|
1098
|
+
const jsonMatch = stdoutData.match(/\{[^{}]*"success"[^{}]*\}/g);
|
|
1099
|
+
if (jsonMatch && jsonMatch.length > 0) {
|
|
1100
|
+
result = JSON.parse(jsonMatch[jsonMatch.length - 1]);
|
|
1101
|
+
}
|
|
1102
|
+
} catch {
|
|
1103
|
+
}
|
|
1104
|
+
if (result) {
|
|
1105
|
+
if (result.success) {
|
|
1106
|
+
if (result.alreadyMigrated) {
|
|
1107
|
+
logger2.info(pc3.green("\u2713 Migration already complete."));
|
|
1108
|
+
} else {
|
|
1109
|
+
logger2.info(pc3.green("\u2713 Migration completed successfully!"));
|
|
1110
|
+
if (result.duplicatesRemoved > 0) {
|
|
1111
|
+
logger2.info(` Removed ${result.duplicatesRemoved} duplicate entries.`);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
logger2.info(` ${result.message}`);
|
|
1115
|
+
} else {
|
|
1116
|
+
logger2.error(pc3.red("\u2717 Migration failed."));
|
|
1117
|
+
logger2.error(` ${result.message}`);
|
|
1118
|
+
process3.exit(1);
|
|
1119
|
+
}
|
|
1120
|
+
} else {
|
|
1121
|
+
if (processResult.exitCode !== 0) {
|
|
1122
|
+
logger2.error(pc3.red("\u2717 Migration failed."));
|
|
1123
|
+
if (stderrData) {
|
|
1124
|
+
logger2.error(stderrData);
|
|
1125
|
+
}
|
|
1126
|
+
if (stdoutData && !stdoutData.includes('"success"')) {
|
|
1127
|
+
logger2.error(stdoutData);
|
|
1128
|
+
}
|
|
1129
|
+
process3.exit(1);
|
|
1130
|
+
} else {
|
|
1131
|
+
logger2.info(pc3.green("\u2713 Migration completed."));
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
} catch (error) {
|
|
1135
|
+
if (error.code === "ERR_MODULE_NOT_FOUND" || error.message?.includes("Cannot find module")) {
|
|
1136
|
+
logger2.error(pc3.red("Error: Could not find Mastra entry file."));
|
|
1137
|
+
logger2.info("");
|
|
1138
|
+
logger2.info("Make sure you have a mastra directory with an index.ts or index.js file.");
|
|
1139
|
+
logger2.info(`Expected location: ${mastraDir}`);
|
|
1140
|
+
logger2.info("");
|
|
1141
|
+
logger2.info("You can specify a custom directory:");
|
|
1142
|
+
logger2.info(pc3.cyan(" npx mastra migrate --dir path/to/mastra"));
|
|
1143
|
+
} else {
|
|
1144
|
+
logger2.error(pc3.red(`Error: ${error.message}`));
|
|
1145
|
+
if (debug) {
|
|
1146
|
+
logger2.error(error);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
process3.exit(1);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
// src/commands/actions/migrate.ts
|
|
1154
|
+
var migrate2 = async (args) => {
|
|
1155
|
+
await analytics.trackCommandExecution({
|
|
1156
|
+
command: "mastra migrate",
|
|
1157
|
+
args: { ...args },
|
|
1158
|
+
execution: async () => {
|
|
1159
|
+
await migrate({
|
|
1160
|
+
dir: args?.dir,
|
|
1161
|
+
root: args?.root,
|
|
1162
|
+
env: args?.env,
|
|
1163
|
+
debug: args?.debug ?? false,
|
|
1164
|
+
yes: args?.yes ?? false
|
|
1165
|
+
});
|
|
1166
|
+
},
|
|
1167
|
+
origin: origin2
|
|
1168
|
+
});
|
|
1169
|
+
};
|
|
903
1170
|
var DevLogger = class {
|
|
904
1171
|
options;
|
|
905
1172
|
constructor(options = {}) {
|
|
@@ -911,96 +1178,96 @@ var DevLogger = class {
|
|
|
911
1178
|
}
|
|
912
1179
|
formatTime() {
|
|
913
1180
|
if (!this.options.timestamp) return "";
|
|
914
|
-
return
|
|
1181
|
+
return pc3.dim((/* @__PURE__ */ new Date()).toLocaleTimeString());
|
|
915
1182
|
}
|
|
916
1183
|
formatPrefix(text2, color2) {
|
|
917
1184
|
const time = this.formatTime();
|
|
918
|
-
const prefix =
|
|
1185
|
+
const prefix = pc3.bold(color2(text2));
|
|
919
1186
|
return time ? `${time} ${prefix}` : prefix;
|
|
920
1187
|
}
|
|
921
1188
|
info(message) {
|
|
922
|
-
const prefix = this.formatPrefix("\u25D0",
|
|
1189
|
+
const prefix = this.formatPrefix("\u25D0", pc3.cyan);
|
|
923
1190
|
console.info(`${prefix} ${message}`);
|
|
924
1191
|
}
|
|
925
1192
|
success(message) {
|
|
926
|
-
const prefix = this.formatPrefix("\u2713",
|
|
927
|
-
console.info(`${prefix} ${
|
|
1193
|
+
const prefix = this.formatPrefix("\u2713", pc3.green);
|
|
1194
|
+
console.info(`${prefix} ${pc3.green(message)}`);
|
|
928
1195
|
}
|
|
929
1196
|
warn(message) {
|
|
930
|
-
const prefix = this.formatPrefix("\u26A0",
|
|
931
|
-
console.info(`${prefix} ${
|
|
1197
|
+
const prefix = this.formatPrefix("\u26A0", pc3.yellow);
|
|
1198
|
+
console.info(`${prefix} ${pc3.yellow(message)}`);
|
|
932
1199
|
}
|
|
933
1200
|
error(message) {
|
|
934
|
-
const prefix = this.formatPrefix("\u2717",
|
|
935
|
-
console.info(`${prefix} ${
|
|
1201
|
+
const prefix = this.formatPrefix("\u2717", pc3.red);
|
|
1202
|
+
console.info(`${prefix} ${pc3.red(message)}`);
|
|
936
1203
|
}
|
|
937
1204
|
starting() {
|
|
938
|
-
const prefix = this.formatPrefix("\u25C7",
|
|
939
|
-
console.info(`${prefix} ${
|
|
1205
|
+
const prefix = this.formatPrefix("\u25C7", pc3.blue);
|
|
1206
|
+
console.info(`${prefix} ${pc3.blue("Starting Mastra dev server...")}`);
|
|
940
1207
|
}
|
|
941
|
-
ready(host, port, startTime, https) {
|
|
1208
|
+
ready(host, port, studioBasePath, startTime, https) {
|
|
942
1209
|
let protocol = "http";
|
|
943
1210
|
if (https && https.key && https.cert) {
|
|
944
1211
|
protocol = "https";
|
|
945
1212
|
}
|
|
946
1213
|
console.info("");
|
|
947
1214
|
const timing = startTime ? `${Date.now() - startTime} ms` : "XXX ms";
|
|
948
|
-
console.info(
|
|
1215
|
+
console.info(pc3.inverse(pc3.green(" mastra ")) + ` ${pc3.green(version)} ${pc3.gray("ready in")} ${timing}`);
|
|
949
1216
|
console.info("");
|
|
950
|
-
console.info(`${
|
|
951
|
-
console.info(`${
|
|
1217
|
+
console.info(`${pc3.dim("\u2502")} ${pc3.bold("Studio:")} ${pc3.cyan(`${protocol}://${host}:${port}${studioBasePath}`)}`);
|
|
1218
|
+
console.info(`${pc3.dim("\u2502")} ${pc3.bold("API:")} ${`${protocol}://${host}:${port}/api`}`);
|
|
952
1219
|
console.info("");
|
|
953
1220
|
}
|
|
954
1221
|
bundling() {
|
|
955
|
-
const prefix = this.formatPrefix("\u25D0",
|
|
956
|
-
console.info(`${prefix} ${
|
|
1222
|
+
const prefix = this.formatPrefix("\u25D0", pc3.magenta);
|
|
1223
|
+
console.info(`${prefix} ${pc3.magenta("Bundling...")}`);
|
|
957
1224
|
}
|
|
958
1225
|
bundleComplete() {
|
|
959
|
-
const prefix = this.formatPrefix("\u2713",
|
|
960
|
-
console.info(`${prefix} ${
|
|
1226
|
+
const prefix = this.formatPrefix("\u2713", pc3.green);
|
|
1227
|
+
console.info(`${prefix} ${pc3.green("Bundle complete")}`);
|
|
961
1228
|
}
|
|
962
1229
|
watching() {
|
|
963
1230
|
const time = this.formatTime();
|
|
964
|
-
const icon =
|
|
965
|
-
const message =
|
|
1231
|
+
const icon = pc3.dim("\u25EF");
|
|
1232
|
+
const message = pc3.dim("watching for file changes...");
|
|
966
1233
|
const fullMessage = `${icon} ${message}`;
|
|
967
1234
|
console.info(time ? `${time} ${fullMessage}` : fullMessage);
|
|
968
1235
|
}
|
|
969
1236
|
restarting() {
|
|
970
|
-
const prefix = this.formatPrefix("\u21BB",
|
|
971
|
-
console.info(`${prefix} ${
|
|
1237
|
+
const prefix = this.formatPrefix("\u21BB", pc3.blue);
|
|
1238
|
+
console.info(`${prefix} ${pc3.blue("Restarting server...")}`);
|
|
972
1239
|
}
|
|
973
1240
|
fileChange(file) {
|
|
974
|
-
const prefix = this.formatPrefix("\u26A1",
|
|
1241
|
+
const prefix = this.formatPrefix("\u26A1", pc3.cyan);
|
|
975
1242
|
const fileName = path.basename(file);
|
|
976
|
-
console.info(`${prefix} ${
|
|
1243
|
+
console.info(`${prefix} ${pc3.cyan("File changed:")} ${pc3.dim(fileName)}`);
|
|
977
1244
|
}
|
|
978
1245
|
// Enhanced error reporting
|
|
979
1246
|
serverError(error) {
|
|
980
1247
|
console.info("");
|
|
981
|
-
console.info(
|
|
1248
|
+
console.info(pc3.red(" \u2717 ") + pc3.bold(pc3.red("Server Error")));
|
|
982
1249
|
console.info("");
|
|
983
|
-
console.info(` ${
|
|
1250
|
+
console.info(` ${pc3.red("\u2502")} ${error}`);
|
|
984
1251
|
console.info("");
|
|
985
1252
|
}
|
|
986
1253
|
shutdown() {
|
|
987
1254
|
console.info("");
|
|
988
|
-
const prefix = this.formatPrefix("\u2713",
|
|
989
|
-
console.info(`${prefix} ${
|
|
1255
|
+
const prefix = this.formatPrefix("\u2713", pc3.green);
|
|
1256
|
+
console.info(`${prefix} ${pc3.green("Dev server stopped")}`);
|
|
990
1257
|
}
|
|
991
1258
|
envInfo(info) {
|
|
992
1259
|
console.info("");
|
|
993
|
-
console.info(` ${
|
|
994
|
-
console.info(` ${
|
|
995
|
-
console.info(` ${
|
|
1260
|
+
console.info(` ${pc3.dim("\u2502")} ${pc3.bold("Environment:")} ${pc3.cyan(info.env || "development")}`);
|
|
1261
|
+
console.info(` ${pc3.dim("\u2502")} ${pc3.bold("Root:")} ${pc3.dim(info.root)}`);
|
|
1262
|
+
console.info(` ${pc3.dim("\u2502")} ${pc3.bold("Port:")} ${pc3.cyan(info.port.toString())}`);
|
|
996
1263
|
}
|
|
997
1264
|
raw(message) {
|
|
998
1265
|
console.info(message);
|
|
999
1266
|
}
|
|
1000
1267
|
debug(message) {
|
|
1001
1268
|
if (process.env.DEBUG || process.env.MASTRA_DEBUG) {
|
|
1002
|
-
const prefix = this.formatPrefix("\u25E6",
|
|
1003
|
-
console.info(`${prefix} ${
|
|
1269
|
+
const prefix = this.formatPrefix("\u25E6", pc3.gray);
|
|
1270
|
+
console.info(`${prefix} ${pc3.gray(message)}`);
|
|
1004
1271
|
}
|
|
1005
1272
|
}
|
|
1006
1273
|
spinnerChars = ["\u25D0", "\u25D3", "\u25D1", "\u25D2"];
|
|
@@ -1015,16 +1282,48 @@ var DevLogger = class {
|
|
|
1015
1282
|
}
|
|
1016
1283
|
update(message) {
|
|
1017
1284
|
this.clearLine();
|
|
1018
|
-
const prefix = this.formatPrefix(this.getSpinnerChar(),
|
|
1285
|
+
const prefix = this.formatPrefix(this.getSpinnerChar(), pc3.cyan);
|
|
1019
1286
|
process.stdout.write(`${prefix} ${message}`);
|
|
1020
1287
|
}
|
|
1021
1288
|
};
|
|
1022
1289
|
var devLogger = new DevLogger();
|
|
1290
|
+
async function getResolvedVersion(packageName, specifiedVersion) {
|
|
1291
|
+
try {
|
|
1292
|
+
const packageInfo = await getPackageInfo(packageName);
|
|
1293
|
+
return packageInfo?.version ?? specifiedVersion;
|
|
1294
|
+
} catch {
|
|
1295
|
+
return specifiedVersion;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
async function getMastraPackages2(rootDir) {
|
|
1299
|
+
try {
|
|
1300
|
+
const packageJsonPath = join(rootDir, "package.json");
|
|
1301
|
+
const packageJsonContent = readFileSync(packageJsonPath, "utf-8");
|
|
1302
|
+
const packageJson = JSON.parse(packageJsonContent);
|
|
1303
|
+
const allDependencies = {
|
|
1304
|
+
...packageJson.dependencies ?? {},
|
|
1305
|
+
...packageJson.devDependencies ?? {}
|
|
1306
|
+
};
|
|
1307
|
+
const mastraDeps = Object.entries(allDependencies).filter(
|
|
1308
|
+
([name]) => name.startsWith("@mastra/") || name === "mastra"
|
|
1309
|
+
);
|
|
1310
|
+
const packages = await Promise.all(
|
|
1311
|
+
mastraDeps.map(async ([name, specifiedVersion]) => ({
|
|
1312
|
+
name,
|
|
1313
|
+
version: await getResolvedVersion(name, specifiedVersion)
|
|
1314
|
+
}))
|
|
1315
|
+
);
|
|
1316
|
+
return packages;
|
|
1317
|
+
} catch {
|
|
1318
|
+
return [];
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1023
1321
|
var DevBundler = class extends Bundler {
|
|
1024
1322
|
customEnvFile;
|
|
1025
1323
|
constructor(customEnvFile) {
|
|
1026
1324
|
super("Dev");
|
|
1027
1325
|
this.customEnvFile = customEnvFile;
|
|
1326
|
+
this.platform = process.versions?.bun ? "neutral" : "node";
|
|
1028
1327
|
}
|
|
1029
1328
|
getEnvFiles() {
|
|
1030
1329
|
if (shouldSkipDotenvLoading()) {
|
|
@@ -1044,27 +1343,22 @@ var DevBundler = class extends Bundler {
|
|
|
1044
1343
|
}
|
|
1045
1344
|
async prepare(outputDirectory) {
|
|
1046
1345
|
await super.prepare(outputDirectory);
|
|
1047
|
-
const
|
|
1048
|
-
const
|
|
1049
|
-
const
|
|
1050
|
-
await fsExtra.copy(join(dirname(
|
|
1346
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
1347
|
+
const __dirname2 = dirname(__filename2);
|
|
1348
|
+
const studioServePath = join(outputDirectory, this.outputDir, "studio");
|
|
1349
|
+
await fsExtra.copy(join(dirname(__dirname2), join("dist", "studio")), studioServePath, {
|
|
1051
1350
|
overwrite: true
|
|
1052
1351
|
});
|
|
1053
1352
|
}
|
|
1054
1353
|
async watch(entryFile, outputDirectory, toolsPaths) {
|
|
1055
|
-
const
|
|
1056
|
-
const
|
|
1354
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
1355
|
+
const __dirname2 = dirname(__filename2);
|
|
1057
1356
|
const envFiles = await this.getEnvFiles();
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
const bundlerOptions = await getBundlerOptions(entryFile, outputDirectory);
|
|
1061
|
-
sourcemapEnabled = !!bundlerOptions?.sourcemap;
|
|
1062
|
-
} catch (error) {
|
|
1063
|
-
this.logger.debug("Failed to get bundler options, sourcemap will be disabled", { error });
|
|
1064
|
-
}
|
|
1357
|
+
const bundlerOptions = await this.getUserBundlerOptions(entryFile, outputDirectory);
|
|
1358
|
+
const sourcemapEnabled = !!bundlerOptions?.sourcemap;
|
|
1065
1359
|
const inputOptions = await getWatcherInputOptions(
|
|
1066
1360
|
entryFile,
|
|
1067
|
-
|
|
1361
|
+
this.platform,
|
|
1068
1362
|
{
|
|
1069
1363
|
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development")
|
|
1070
1364
|
},
|
|
@@ -1073,7 +1367,6 @@ var DevBundler = class extends Bundler {
|
|
|
1073
1367
|
const toolsInputOptions = await this.listToolsInputOptions(toolsPaths);
|
|
1074
1368
|
const outputDir = join(outputDirectory, this.outputDir);
|
|
1075
1369
|
await this.writePackageJson(outputDir, /* @__PURE__ */ new Map(), {});
|
|
1076
|
-
const copyPublic = this.copyPublic.bind(this);
|
|
1077
1370
|
const watcher = await createWatcher(
|
|
1078
1371
|
{
|
|
1079
1372
|
...inputOptions,
|
|
@@ -1097,15 +1390,6 @@ var DevBundler = class extends Bundler {
|
|
|
1097
1390
|
}
|
|
1098
1391
|
}
|
|
1099
1392
|
},
|
|
1100
|
-
{
|
|
1101
|
-
name: "public-dir-watcher",
|
|
1102
|
-
buildStart() {
|
|
1103
|
-
this.addWatchFile(join(dirname(entryFile), "public"));
|
|
1104
|
-
},
|
|
1105
|
-
buildEnd() {
|
|
1106
|
-
return copyPublic(dirname(entryFile), outputDirectory);
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
1393
|
{
|
|
1110
1394
|
name: "tools-watcher",
|
|
1111
1395
|
async buildEnd() {
|
|
@@ -1126,7 +1410,7 @@ var DevBundler = class extends Bundler {
|
|
|
1126
1410
|
}
|
|
1127
1411
|
],
|
|
1128
1412
|
input: {
|
|
1129
|
-
index: join(
|
|
1413
|
+
index: join(__dirname2, "templates", "dev.entry.js"),
|
|
1130
1414
|
...toolsInputOptions
|
|
1131
1415
|
}
|
|
1132
1416
|
},
|
|
@@ -1178,10 +1462,7 @@ var restartAllActiveWorkflowRuns = async ({ host, port }) => {
|
|
|
1178
1462
|
}
|
|
1179
1463
|
}
|
|
1180
1464
|
};
|
|
1181
|
-
var startServer = async (dotMastraPath, {
|
|
1182
|
-
port,
|
|
1183
|
-
host
|
|
1184
|
-
}, env, startOptions = {}, errorRestartCount = 0) => {
|
|
1465
|
+
var startServer = async (dotMastraPath, { port, host, studioBasePath, publicDir }, env, startOptions = {}, errorRestartCount = 0) => {
|
|
1185
1466
|
let serverIsReady = false;
|
|
1186
1467
|
try {
|
|
1187
1468
|
serverStartTime = Date.now();
|
|
@@ -1200,15 +1481,21 @@ var startServer = async (dotMastraPath, {
|
|
|
1200
1481
|
if (startOptions.customArgs) {
|
|
1201
1482
|
commands.push(...startOptions.customArgs);
|
|
1202
1483
|
}
|
|
1203
|
-
commands.push("index.mjs");
|
|
1204
|
-
|
|
1205
|
-
|
|
1484
|
+
commands.push(join(dotMastraPath, "index.mjs"));
|
|
1485
|
+
const packagesFilePath = join(dotMastraPath, "..", "mastra-packages.json");
|
|
1486
|
+
await mkdir(dotMastraPath, { recursive: true });
|
|
1487
|
+
if (startOptions.mastraPackages) {
|
|
1488
|
+
await writeFile(packagesFilePath, JSON.stringify(startOptions.mastraPackages), "utf-8");
|
|
1489
|
+
}
|
|
1490
|
+
await mkdir(publicDir, { recursive: true });
|
|
1491
|
+
currentServerProcess = execa(process3.execPath, commands, {
|
|
1492
|
+
cwd: publicDir,
|
|
1206
1493
|
env: {
|
|
1207
1494
|
NODE_ENV: "production",
|
|
1208
1495
|
...Object.fromEntries(env),
|
|
1209
1496
|
MASTRA_DEV: "true",
|
|
1210
1497
|
PORT: port.toString(),
|
|
1211
|
-
|
|
1498
|
+
MASTRA_PACKAGES_FILE: packagesFilePath,
|
|
1212
1499
|
...startOptions?.https ? {
|
|
1213
1500
|
MASTRA_HTTPS_KEY: startOptions.https.key.toString("base64"),
|
|
1214
1501
|
MASTRA_HTTPS_CERT: startOptions.https.cert.toString("base64")
|
|
@@ -1228,16 +1515,16 @@ var startServer = async (dotMastraPath, {
|
|
|
1228
1515
|
if (currentServerProcess.stdout) {
|
|
1229
1516
|
currentServerProcess.stdout.on("data", (data) => {
|
|
1230
1517
|
const output = data.toString();
|
|
1231
|
-
if (!output.includes("Studio available") && !output.includes("\u{1F468}\u200D\u{1F4BB}") && !output.includes("Mastra API running on
|
|
1232
|
-
|
|
1518
|
+
if (!output.includes("Studio available") && !output.includes("\u{1F468}\u200D\u{1F4BB}") && !output.includes("Mastra API running on ")) {
|
|
1519
|
+
process3.stdout.write(output);
|
|
1233
1520
|
}
|
|
1234
1521
|
});
|
|
1235
1522
|
}
|
|
1236
1523
|
if (currentServerProcess.stderr) {
|
|
1237
1524
|
currentServerProcess.stderr.on("data", (data) => {
|
|
1238
1525
|
const output = data.toString();
|
|
1239
|
-
if (!output.includes("Studio available") && !output.includes("\u{1F468}\u200D\u{1F4BB}") && !output.includes("Mastra API running on
|
|
1240
|
-
|
|
1526
|
+
if (!output.includes("Studio available") && !output.includes("\u{1F468}\u200D\u{1F4BB}") && !output.includes("Mastra API running on ")) {
|
|
1527
|
+
process3.stderr.write(output);
|
|
1241
1528
|
}
|
|
1242
1529
|
});
|
|
1243
1530
|
}
|
|
@@ -1249,11 +1536,11 @@ var startServer = async (dotMastraPath, {
|
|
|
1249
1536
|
currentServerProcess.on("message", async (message) => {
|
|
1250
1537
|
if (message?.type === "server-ready") {
|
|
1251
1538
|
serverIsReady = true;
|
|
1252
|
-
devLogger.ready(host, port, serverStartTime, startOptions.https);
|
|
1539
|
+
devLogger.ready(host, port, studioBasePath, serverStartTime, startOptions.https);
|
|
1253
1540
|
devLogger.watching();
|
|
1254
1541
|
await restartAllActiveWorkflowRuns({ host, port });
|
|
1255
1542
|
try {
|
|
1256
|
-
await fetch(`http://${host}:${port}/__refresh`, {
|
|
1543
|
+
await fetch(`http://${host}:${port}${studioBasePath}/__refresh`, {
|
|
1257
1544
|
method: "POST",
|
|
1258
1545
|
headers: {
|
|
1259
1546
|
"Content-Type": "application/json"
|
|
@@ -1262,7 +1549,7 @@ var startServer = async (dotMastraPath, {
|
|
|
1262
1549
|
} catch {
|
|
1263
1550
|
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
1264
1551
|
try {
|
|
1265
|
-
await fetch(`http://${host}:${port}/__refresh`, {
|
|
1552
|
+
await fetch(`http://${host}:${port}${studioBasePath}/__refresh`, {
|
|
1266
1553
|
method: "POST",
|
|
1267
1554
|
headers: {
|
|
1268
1555
|
"Content-Type": "application/json"
|
|
@@ -1288,7 +1575,7 @@ var startServer = async (dotMastraPath, {
|
|
|
1288
1575
|
errorRestartCount++;
|
|
1289
1576
|
if (errorRestartCount > ON_ERROR_MAX_RESTARTS) {
|
|
1290
1577
|
devLogger.error(`Server failed to start after ${ON_ERROR_MAX_RESTARTS} error attempts. Giving up.`);
|
|
1291
|
-
|
|
1578
|
+
process3.exit(1);
|
|
1292
1579
|
}
|
|
1293
1580
|
devLogger.warn(
|
|
1294
1581
|
`Attempting to restart server after error... (Attempt ${errorRestartCount}/${ON_ERROR_MAX_RESTARTS})`
|
|
@@ -1297,7 +1584,9 @@ var startServer = async (dotMastraPath, {
|
|
|
1297
1584
|
dotMastraPath,
|
|
1298
1585
|
{
|
|
1299
1586
|
port,
|
|
1300
|
-
host
|
|
1587
|
+
host,
|
|
1588
|
+
studioBasePath,
|
|
1589
|
+
publicDir
|
|
1301
1590
|
},
|
|
1302
1591
|
env,
|
|
1303
1592
|
startOptions,
|
|
@@ -1307,15 +1596,12 @@ var startServer = async (dotMastraPath, {
|
|
|
1307
1596
|
}, 1e3);
|
|
1308
1597
|
}
|
|
1309
1598
|
};
|
|
1310
|
-
async function checkAndRestart(dotMastraPath, {
|
|
1311
|
-
port,
|
|
1312
|
-
host
|
|
1313
|
-
}, bundler, startOptions = {}) {
|
|
1599
|
+
async function checkAndRestart(dotMastraPath, { port, host, studioBasePath, publicDir }, bundler, startOptions = {}) {
|
|
1314
1600
|
if (isRestarting) {
|
|
1315
1601
|
return;
|
|
1316
1602
|
}
|
|
1317
1603
|
try {
|
|
1318
|
-
const response = await fetch(`http://${host}:${port}/__hot-reload-status`);
|
|
1604
|
+
const response = await fetch(`http://${host}:${port}${studioBasePath}/__hot-reload-status`);
|
|
1319
1605
|
if (response.ok) {
|
|
1320
1606
|
const status = await response.json();
|
|
1321
1607
|
if (status.disabled) {
|
|
@@ -1327,12 +1613,9 @@ async function checkAndRestart(dotMastraPath, {
|
|
|
1327
1613
|
devLogger.debug(`[Mastra Dev] - Could not check hot reload status: ${error}`);
|
|
1328
1614
|
}
|
|
1329
1615
|
devLogger.info("[Mastra Dev] - \u2705 Restarting server...");
|
|
1330
|
-
await rebundleAndRestart(dotMastraPath, { port, host }, bundler, startOptions);
|
|
1616
|
+
await rebundleAndRestart(dotMastraPath, { port, host, studioBasePath, publicDir }, bundler, startOptions);
|
|
1331
1617
|
}
|
|
1332
|
-
async function rebundleAndRestart(dotMastraPath, {
|
|
1333
|
-
port,
|
|
1334
|
-
host
|
|
1335
|
-
}, bundler, startOptions = {}) {
|
|
1618
|
+
async function rebundleAndRestart(dotMastraPath, { port, host, studioBasePath, publicDir }, bundler, startOptions = {}) {
|
|
1336
1619
|
if (isRestarting) {
|
|
1337
1620
|
return;
|
|
1338
1621
|
}
|
|
@@ -1345,13 +1628,15 @@ async function rebundleAndRestart(dotMastraPath, {
|
|
|
1345
1628
|
}
|
|
1346
1629
|
const env = await bundler.loadEnvVars();
|
|
1347
1630
|
for (const [key, value] of env.entries()) {
|
|
1348
|
-
|
|
1631
|
+
process3.env[key] = value;
|
|
1349
1632
|
}
|
|
1350
1633
|
await startServer(
|
|
1351
1634
|
join(dotMastraPath, "output"),
|
|
1352
1635
|
{
|
|
1353
1636
|
port,
|
|
1354
|
-
host
|
|
1637
|
+
host,
|
|
1638
|
+
studioBasePath,
|
|
1639
|
+
publicDir
|
|
1355
1640
|
},
|
|
1356
1641
|
env,
|
|
1357
1642
|
startOptions
|
|
@@ -1371,8 +1656,8 @@ async function dev({
|
|
|
1371
1656
|
https,
|
|
1372
1657
|
debug
|
|
1373
1658
|
}) {
|
|
1374
|
-
const rootDir = root ||
|
|
1375
|
-
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(
|
|
1659
|
+
const rootDir = root || process3.cwd();
|
|
1660
|
+
const mastraDir = dir2 ? dir2.startsWith("/") ? dir2 : join(process3.cwd(), dir2) : join(process3.cwd(), "src", "mastra");
|
|
1376
1661
|
const dotMastraPath = join(rootDir, ".mastra");
|
|
1377
1662
|
const fileService = new FileService$1();
|
|
1378
1663
|
const entryFile = fileService.getFirstExistingFile([join(mastraDir, "index.ts"), join(mastraDir, "index.js")]);
|
|
@@ -1381,11 +1666,12 @@ async function dev({
|
|
|
1381
1666
|
const discoveredTools = bundler.getAllToolPaths(mastraDir, tools ?? []);
|
|
1382
1667
|
const loadedEnv = await bundler.loadEnvVars();
|
|
1383
1668
|
for (const [key, value] of loadedEnv.entries()) {
|
|
1384
|
-
|
|
1669
|
+
process3.env[key] = value;
|
|
1385
1670
|
}
|
|
1386
1671
|
const serverOptions = await getServerOptions(entryFile, join(dotMastraPath, "output"));
|
|
1387
|
-
let portToUse = serverOptions?.port ??
|
|
1388
|
-
let hostToUse = serverOptions?.host ??
|
|
1672
|
+
let portToUse = serverOptions?.port ?? process3.env.PORT;
|
|
1673
|
+
let hostToUse = serverOptions?.host ?? process3.env.HOST ?? "localhost";
|
|
1674
|
+
const studioBasePathToUse = normalizeStudioBase(serverOptions?.studioBase ?? "/");
|
|
1389
1675
|
if (!portToUse || isNaN(Number(portToUse))) {
|
|
1390
1676
|
const portList = Array.from({ length: 21 }, (_, i) => 4111 + i);
|
|
1391
1677
|
portToUse = String(
|
|
@@ -1404,14 +1690,17 @@ async function dev({
|
|
|
1404
1690
|
const { key, cert } = await devcert.certificateFor(serverOptions?.host ?? "localhost");
|
|
1405
1691
|
httpsOptions = { key, cert };
|
|
1406
1692
|
}
|
|
1407
|
-
const
|
|
1693
|
+
const mastraPackages = await getMastraPackages2(rootDir);
|
|
1694
|
+
const startOptions = { inspect, inspectBrk, customArgs, https: httpsOptions, mastraPackages };
|
|
1408
1695
|
await bundler.prepare(dotMastraPath);
|
|
1409
1696
|
const watcher = await bundler.watch(entryFile, dotMastraPath, discoveredTools);
|
|
1410
1697
|
await startServer(
|
|
1411
1698
|
join(dotMastraPath, "output"),
|
|
1412
1699
|
{
|
|
1413
1700
|
port: Number(portToUse),
|
|
1414
|
-
host: hostToUse
|
|
1701
|
+
host: hostToUse,
|
|
1702
|
+
studioBasePath: studioBasePathToUse,
|
|
1703
|
+
publicDir: join(mastraDir, "public")
|
|
1415
1704
|
},
|
|
1416
1705
|
loadedEnv,
|
|
1417
1706
|
startOptions
|
|
@@ -1427,20 +1716,22 @@ async function dev({
|
|
|
1427
1716
|
dotMastraPath,
|
|
1428
1717
|
{
|
|
1429
1718
|
port: Number(portToUse),
|
|
1430
|
-
host: hostToUse
|
|
1719
|
+
host: hostToUse,
|
|
1720
|
+
studioBasePath: studioBasePathToUse,
|
|
1721
|
+
publicDir: join(mastraDir, "public")
|
|
1431
1722
|
},
|
|
1432
1723
|
bundler,
|
|
1433
1724
|
startOptions
|
|
1434
1725
|
);
|
|
1435
1726
|
}
|
|
1436
1727
|
});
|
|
1437
|
-
|
|
1728
|
+
process3.on("SIGINT", () => {
|
|
1438
1729
|
devLogger.shutdown();
|
|
1439
1730
|
if (currentServerProcess) {
|
|
1440
1731
|
currentServerProcess.kill();
|
|
1441
1732
|
}
|
|
1442
1733
|
watcher.close().catch(() => {
|
|
1443
|
-
}).finally(() =>
|
|
1734
|
+
}).finally(() => process3.exit(0));
|
|
1444
1735
|
});
|
|
1445
1736
|
}
|
|
1446
1737
|
|
|
@@ -1476,7 +1767,7 @@ async function start(options = {}) {
|
|
|
1476
1767
|
}
|
|
1477
1768
|
const commands = [];
|
|
1478
1769
|
commands.push("index.mjs");
|
|
1479
|
-
const server = spawn(
|
|
1770
|
+
const server = spawn(process.execPath, commands, {
|
|
1480
1771
|
cwd: outputPath,
|
|
1481
1772
|
stdio: ["inherit", "inherit", "pipe"],
|
|
1482
1773
|
env: {
|
|
@@ -1550,16 +1841,22 @@ var startProject = async (args) => {
|
|
|
1550
1841
|
origin: origin2
|
|
1551
1842
|
});
|
|
1552
1843
|
};
|
|
1553
|
-
|
|
1844
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
1845
|
+
var __dirname = dirname(__filename);
|
|
1846
|
+
async function studio(options = {
|
|
1847
|
+
serverHost: "localhost",
|
|
1848
|
+
serverPort: 4111,
|
|
1849
|
+
serverProtocol: "http"
|
|
1850
|
+
}) {
|
|
1554
1851
|
config({ path: [options.env || ".env.production", ".env"] });
|
|
1555
1852
|
try {
|
|
1556
|
-
const distPath = join(
|
|
1853
|
+
const distPath = join(__dirname, "studio");
|
|
1557
1854
|
if (!existsSync(distPath)) {
|
|
1558
|
-
logger.error(`Studio distribution not found at ${distPath}
|
|
1855
|
+
logger.error(`Studio distribution not found at ${distPath}.`);
|
|
1559
1856
|
process.exit(1);
|
|
1560
1857
|
}
|
|
1561
1858
|
const port = options.port || 3e3;
|
|
1562
|
-
const server = createServer(distPath);
|
|
1859
|
+
const server = createServer(distPath, options);
|
|
1563
1860
|
server.listen(port, () => {
|
|
1564
1861
|
logger.info(`Mastra Studio running on http://localhost:${port}`);
|
|
1565
1862
|
});
|
|
@@ -1578,16 +1875,19 @@ async function studio(options = {}) {
|
|
|
1578
1875
|
process.exit(1);
|
|
1579
1876
|
}
|
|
1580
1877
|
}
|
|
1581
|
-
var createServer = (builtStudioPath) => {
|
|
1582
|
-
const
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1878
|
+
var createServer = (builtStudioPath, options) => {
|
|
1879
|
+
const indexHtmlPath = join(builtStudioPath, "index.html");
|
|
1880
|
+
const basePath = "";
|
|
1881
|
+
let html = readFileSync(indexHtmlPath, "utf8").replaceAll("%%MASTRA_STUDIO_BASE_PATH%%", basePath).replace("%%MASTRA_SERVER_HOST%%", options.serverHost || "localhost").replace("%%MASTRA_SERVER_PORT%%", String(options.serverPort || 4111)).replace("%%MASTRA_SERVER_PROTOCOL%%", options.serverProtocol || "http");
|
|
1882
|
+
const server = http.createServer((req, res) => {
|
|
1883
|
+
const url = req.url || basePath;
|
|
1884
|
+
const isStaticAsset = url.includes("/assets/") || url.includes("/dist/assets/") || url.includes("/mastra.svg") || url.includes("/favicon.ico");
|
|
1885
|
+
if (!isStaticAsset) {
|
|
1886
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1887
|
+
return res.end(html);
|
|
1888
|
+
}
|
|
1889
|
+
return handler(req, res, {
|
|
1890
|
+
public: builtStudioPath
|
|
1591
1891
|
});
|
|
1592
1892
|
});
|
|
1593
1893
|
return server;
|
|
@@ -1607,7 +1907,7 @@ var origin2 = process.env.MASTRA_ANALYTICS_ORIGIN;
|
|
|
1607
1907
|
program.name("mastra").version(`${version}`, "-v, --version").addHelpText(
|
|
1608
1908
|
"before",
|
|
1609
1909
|
`
|
|
1610
|
-
${
|
|
1910
|
+
${pc3.bold(pc3.cyan("Mastra"))} is a typescript framework for building AI applications, agents, and workflows.
|
|
1611
1911
|
`
|
|
1612
1912
|
).action(() => {
|
|
1613
1913
|
program.help();
|
|
@@ -1619,7 +1919,11 @@ program.command("create [project-name]").description("Create a new Mastra projec
|
|
|
1619
1919
|
).option("-l, --llm <model-provider>", `Default model provider (${LLMProvider.join(", ")})`, parseLlmProvider).option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-n, --no-example", "Do not include example code").option("-t, --timeout [timeout]", "Configurable timeout for package installation, defaults to 60000 ms").option("-d, --dir <directory>", "Target directory for Mastra source code (default: src/)").option(
|
|
1620
1920
|
"-p, --project-name <string>",
|
|
1621
1921
|
"Project name that will be used in package.json and as the project directory name."
|
|
1622
|
-
).option(
|
|
1922
|
+
).option(
|
|
1923
|
+
"-m, --mcp <editor>",
|
|
1924
|
+
"MCP Server for code editor (cursor, cursor-global, windsurf, vscode, antigravity)",
|
|
1925
|
+
parseMcp
|
|
1926
|
+
).option(
|
|
1623
1927
|
"--template [template-name]",
|
|
1624
1928
|
"Create project from a template (use template name, public GitHub URL, or leave blank to select from list)"
|
|
1625
1929
|
).action(createProject);
|
|
@@ -1627,7 +1931,11 @@ program.command("init").description("Initialize Mastra in your project").option(
|
|
|
1627
1931
|
"-c, --components <components>",
|
|
1628
1932
|
`Comma-separated list of components (${COMPONENTS.join(", ")})`,
|
|
1629
1933
|
parseComponents
|
|
1630
|
-
).option("-l, --llm <model-provider>", `Default model provider (${LLMProvider.join(", ")})`, parseLlmProvider).option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-n, --no-example", "Do not include example code").option(
|
|
1934
|
+
).option("-l, --llm <model-provider>", `Default model provider (${LLMProvider.join(", ")})`, parseLlmProvider).option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-n, --no-example", "Do not include example code").option(
|
|
1935
|
+
"-m, --mcp <editor>",
|
|
1936
|
+
"MCP Server for code editor (cursor, cursor-global, windsurf, vscode, antigravity)",
|
|
1937
|
+
parseMcp
|
|
1938
|
+
).action(initProject);
|
|
1631
1939
|
program.command("lint").description("Lint your Mastra project").option("-d, --dir <path>", "Path to your Mastra folder").option("-r, --root <path>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").action(lintProject);
|
|
1632
1940
|
program.command("dev").description("Start mastra server").option("-d, --dir <dir>", "Path to your mastra folder").option("-r, --root <root>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("-e, --env <env>", "Custom env file to include in the dev server").option(
|
|
1633
1941
|
"-i, --inspect [host:port]",
|
|
@@ -1639,9 +1947,10 @@ program.command("dev").description("Start mastra server").option("-d, --dir <dir
|
|
|
1639
1947
|
"-c, --custom-args <args>",
|
|
1640
1948
|
"Comma-separated list of custom arguments to pass to the dev server. IE: --experimental-transform-types"
|
|
1641
1949
|
).option("-s, --https", "Enable local HTTPS").option("--debug", "Enable debug logs", false).action(startDevServer);
|
|
1642
|
-
program.command("build").description("Build your Mastra project").option("-d, --dir <path>", "Path to your Mastra Folder").option("-r, --root <path>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("--debug", "Enable debug logs", false).action(buildProject);
|
|
1950
|
+
program.command("build").description("Build your Mastra project").option("-d, --dir <path>", "Path to your Mastra Folder").option("-r, --root <path>", "Path to your root folder").option("-t, --tools <toolsDirs>", "Comma-separated list of paths to tool files to include").option("-s, --studio", "Bundle the studio UI with the build").option("--debug", "Enable debug logs", false).action(buildProject);
|
|
1643
1951
|
program.command("start").description("Start your built Mastra application").option("-d, --dir <path>", "Path to your built Mastra output directory (default: .mastra/output)").option("-e, --env <env>", "Custom env file to include in the start").action(startProject);
|
|
1644
|
-
program.command("studio").description("Start the Mastra studio").option("-p, --port <port>", "Port to run the studio on (default: 3000)").option("-e, --env <env>", "Custom env file to include in the studio").action(studio);
|
|
1952
|
+
program.command("studio").description("Start the Mastra studio").option("-p, --port <port>", "Port to run the studio on (default: 3000)").option("-e, --env <env>", "Custom env file to include in the studio").option("-h, --server-host <serverHost>", "Host of the Mastra API server (default: localhost)").option("-s, --server-port <serverPort>", "Port of the Mastra API server (default: 4111)").option("-x, --server-protocol <serverProtocol>", "Protocol of the Mastra API server (default: http)").action(studio);
|
|
1953
|
+
program.command("migrate").description("Run database migrations to update storage schema").option("-d, --dir <path>", "Path to your Mastra folder").option("-r, --root <path>", "Path to your root folder").option("-e, --env <env>", "Custom env file to include").option("--debug", "Enable debug logs", false).option("-y, --yes", "Skip confirmation prompt (for CI/automation)").action(migrate2);
|
|
1645
1954
|
var scorersCommand = program.command("scorers").description("Manage scorers for evaluating AI outputs");
|
|
1646
1955
|
scorersCommand.command("add [scorer-name]").description("Add a new scorer to your project").option("-d, --dir <path>", "Path to your Mastra directory (default: auto-detect)").action(addScorer);
|
|
1647
1956
|
scorersCommand.command("list").description("List available scorer templates").action(listScorers);
|