@mastra/deployer-vercel 1.0.9 → 1.1.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 +44 -0
- package/LICENSE.md +15 -0
- package/dist/index.cjs +45 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -16
- package/dist/index.js.map +1 -1
- package/dist/studio/assets/GeistMonoVF-BHyMa335.woff +0 -0
- package/dist/studio/assets/InterVariable-H_M6nIbt.ttf +0 -0
- package/dist/studio/assets/TASAExplorerVF-FO8P5krV.woff2 +0 -0
- package/dist/studio/assets/abap-DsBKuouk.js +1 -0
- package/dist/studio/assets/actionscript-3-D_z4Izcz.js +1 -0
- package/dist/studio/assets/ada-727ZlQH0.js +1 -0
- package/dist/studio/assets/andromeeda-C3khCPGq.js +1 -0
- package/dist/studio/assets/angular-html-LfdN0zeE.js +1 -0
- package/dist/studio/assets/angular-ts-CKsD7JZE.js +1 -0
- package/dist/studio/assets/apache-Dn00JSTd.js +1 -0
- package/dist/studio/assets/apex-COJ4H7py.js +1 -0
- package/dist/studio/assets/apl-B4CMkyY2.js +1 -0
- package/dist/studio/assets/apl-BBq3IX1j.js +1 -0
- package/dist/studio/assets/applescript-Bu5BbsvL.js +1 -0
- package/dist/studio/assets/ara-7O62HKoU.js +1 -0
- package/dist/studio/assets/asciiarmor-Df11BRmG.js +1 -0
- package/dist/studio/assets/asciidoc-BPT9niGB.js +1 -0
- package/dist/studio/assets/asm-Dhn9LcZ4.js +1 -0
- package/dist/studio/assets/asn1-EdZsLKOL.js +1 -0
- package/dist/studio/assets/asterisk-B-8jnY81.js +1 -0
- package/dist/studio/assets/astro-CqkE3fuf.js +1 -0
- package/dist/studio/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/studio/assets/awk-eg146-Ew.js +1 -0
- package/dist/studio/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/dist/studio/assets/ballerina-Du268qiB.js +1 -0
- package/dist/studio/assets/bat-fje9CFhw.js +1 -0
- package/dist/studio/assets/beancount-BwXTMy5W.js +1 -0
- package/dist/studio/assets/berry-3xVqZejG.js +1 -0
- package/dist/studio/assets/bibtex-xW4inM5L.js +1 -0
- package/dist/studio/assets/bicep-DHo0CJ0O.js +1 -0
- package/dist/studio/assets/blade-a8OxSdnT.js +1 -0
- package/dist/studio/assets/brainfuck-C4LP7Hcl.js +1 -0
- package/dist/studio/assets/bsl-Dgyn0ogV.js +1 -0
- package/dist/studio/assets/c-C3t2pwGQ.js +1 -0
- package/dist/studio/assets/cadence-DNquZEk8.js +1 -0
- package/dist/studio/assets/cairo--RitsXJZ.js +1 -0
- package/dist/studio/assets/catppuccin-frappe-CD_QflpE.js +1 -0
- package/dist/studio/assets/catppuccin-latte-DRW-0cLl.js +1 -0
- package/dist/studio/assets/catppuccin-macchiato-C-_shW-Y.js +1 -0
- package/dist/studio/assets/catppuccin-mocha-LGGdnPYs.js +1 -0
- package/dist/studio/assets/chunk-REDZDNFN-DBtAJyUR.js +1 -0
- package/dist/studio/assets/clarity-BHOwM8T6.js +1 -0
- package/dist/studio/assets/clike-B9uivgTg.js +1 -0
- package/dist/studio/assets/clojure-BMjYHr_A.js +1 -0
- package/dist/studio/assets/clojure-DxSadP1t.js +1 -0
- package/dist/studio/assets/cmake-BQqOBYOt.js +1 -0
- package/dist/studio/assets/cmake-DbXoA79R.js +1 -0
- package/dist/studio/assets/cobol-CWcv1MsR.js +1 -0
- package/dist/studio/assets/cobol-PTqiYgYu.js +1 -0
- package/dist/studio/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/studio/assets/codeql-sacFqUAJ.js +1 -0
- package/dist/studio/assets/coffee-dyiR41kL.js +1 -0
- package/dist/studio/assets/coffeescript-S37ZYGWr.js +1 -0
- package/dist/studio/assets/common-lisp-C7gG9l05.js +1 -0
- package/dist/studio/assets/commonlisp-DBKNyK5s.js +1 -0
- package/dist/studio/assets/coq-Dsg_Bt_b.js +1 -0
- package/dist/studio/assets/cpp-BksuvNSY.js +1 -0
- package/dist/studio/assets/crystal-DtDmRg-F.js +1 -0
- package/dist/studio/assets/crystal-SjHAIU92.js +1 -0
- package/dist/studio/assets/csharp-D9R-vmeu.js +1 -0
- package/dist/studio/assets/css-BPhBrDlE.js +1 -0
- package/dist/studio/assets/css-BnMrqG3P.js +1 -0
- package/dist/studio/assets/csv-B0qRVHPH.js +1 -0
- package/dist/studio/assets/cue-DtFQj3wx.js +1 -0
- package/dist/studio/assets/cypher-C_CwsFkJ.js +1 -0
- package/dist/studio/assets/cypher-m2LEI-9-.js +1 -0
- package/dist/studio/assets/d-BoXegm-a.js +1 -0
- package/dist/studio/assets/d-pRatUO7H.js +1 -0
- package/dist/studio/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/studio/assets/dart-B9wLZaAG.js +1 -0
- package/dist/studio/assets/dax-ClGRhx96.js +1 -0
- package/dist/studio/assets/desktop-DEIpsLCJ.js +1 -0
- package/dist/studio/assets/diff-BgYniUM_.js +1 -0
- package/dist/studio/assets/diff-DbItnlRl.js +1 -0
- package/dist/studio/assets/docker-COcR7UxN.js +1 -0
- package/dist/studio/assets/dockerfile-BKs6k2Af.js +1 -0
- package/dist/studio/assets/dotenv-BjQB5zDj.js +1 -0
- package/dist/studio/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/studio/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/studio/assets/dream-maker-C-nORZOA.js +1 -0
- package/dist/studio/assets/dtd-DF_7sFjM.js +1 -0
- package/dist/studio/assets/dylan-DwRh75JA.js +1 -0
- package/dist/studio/assets/ebnf-CDyGwa7X.js +1 -0
- package/dist/studio/assets/ecl-Cabwm37j.js +1 -0
- package/dist/studio/assets/edge-D5gP-w-T.js +1 -0
- package/dist/studio/assets/eiffel-CnydiIhH.js +1 -0
- package/dist/studio/assets/elixir-CLiX3zqd.js +1 -0
- package/dist/studio/assets/elm-CmHSxxaM.js +1 -0
- package/dist/studio/assets/elm-vLlmbW-K.js +1 -0
- package/dist/studio/assets/emacs-lisp-BX77sIaO.js +1 -0
- package/dist/studio/assets/erb-BYTLMnw6.js +1 -0
- package/dist/studio/assets/erlang-B-DoSBHF.js +1 -0
- package/dist/studio/assets/erlang-BNw1qcRV.js +1 -0
- package/dist/studio/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/studio/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/studio/assets/factor-kuTfRLto.js +1 -0
- package/dist/studio/assets/fcl-Kvtd6kyn.js +1 -0
- package/dist/studio/assets/fennel-bCA53EVm.js +1 -0
- package/dist/studio/assets/fish-w-ucz2PV.js +1 -0
- package/dist/studio/assets/fluent-Dayu4EKP.js +1 -0
- package/dist/studio/assets/forth-Ffai-XNe.js +1 -0
- package/dist/studio/assets/fortran-DYz_wnZ1.js +1 -0
- package/dist/studio/assets/fortran-fixed-form-TqA4NnZg.js +1 -0
- package/dist/studio/assets/fortran-free-form-DKXYxT9g.js +1 -0
- package/dist/studio/assets/fsharp-XplgxFYe.js +1 -0
- package/dist/studio/assets/gas-Bneqetm1.js +1 -0
- package/dist/studio/assets/gdresource-BHYsBjWJ.js +1 -0
- package/dist/studio/assets/gdscript-DfxzS6Rs.js +1 -0
- package/dist/studio/assets/gdshader-SKMF96pI.js +1 -0
- package/dist/studio/assets/genie-ajMbGru0.js +1 -0
- package/dist/studio/assets/gherkin--30QC5Em.js +1 -0
- package/dist/studio/assets/gherkin-heZmZLOM.js +1 -0
- package/dist/studio/assets/git-commit-i4q6IMui.js +1 -0
- package/dist/studio/assets/git-rebase-B-v9cOL2.js +1 -0
- package/dist/studio/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/studio/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/studio/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/studio/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/studio/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/studio/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/studio/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/studio/assets/gleam-B430Bg39.js +1 -0
- package/dist/studio/assets/glimmer-js-D-cwc0-E.js +1 -0
- package/dist/studio/assets/glimmer-ts-pgjy16dm.js +1 -0
- package/dist/studio/assets/glsl-DBO2IWDn.js +1 -0
- package/dist/studio/assets/gnuplot-CM8KxXT1.js +1 -0
- package/dist/studio/assets/go-B1SYOhNW.js +1 -0
- package/dist/studio/assets/graphql-cDcHW_If.js +1 -0
- package/dist/studio/assets/groovy-D9Dt4D0W.js +1 -0
- package/dist/studio/assets/groovy-DkBy-JyN.js +1 -0
- package/dist/studio/assets/hack-D1yCygmZ.js +1 -0
- package/dist/studio/assets/haml-B2EZWmdv.js +1 -0
- package/dist/studio/assets/handlebars-BQGss363.js +1 -0
- package/dist/studio/assets/haskell-BILxekzW.js +1 -0
- package/dist/studio/assets/haskell-Cw1EW3IL.js +1 -0
- package/dist/studio/assets/haxe-C5wWYbrZ.js +1 -0
- package/dist/studio/assets/haxe-H-WmDvRZ.js +1 -0
- package/dist/studio/assets/hcl-HzYwdGDm.js +1 -0
- package/dist/studio/assets/hjson-T-Tgc4AT.js +1 -0
- package/dist/studio/assets/hlsl-ifBTmRxC.js +1 -0
- package/dist/studio/assets/houston-DnULxvSX.js +1 -0
- package/dist/studio/assets/html-C2L_23MC.js +1 -0
- package/dist/studio/assets/html-derivative-CSfWNPLT.js +1 -0
- package/dist/studio/assets/http-DBlCnlav.js +1 -0
- package/dist/studio/assets/http-FRrOvY1W.js +1 -0
- package/dist/studio/assets/hxml-TIA70rKU.js +1 -0
- package/dist/studio/assets/hy-BMj5Y0dO.js +1 -0
- package/dist/studio/assets/idl-BEugSyMb.js +1 -0
- package/dist/studio/assets/imba-bv_oIlVt.js +1 -0
- package/dist/studio/assets/index-1CIfQRPa.js +3 -0
- package/dist/studio/assets/index-AYBaNmoq.js +13 -0
- package/dist/studio/assets/index-B8WLnubh.js +1 -0
- package/dist/studio/assets/index-B9lWwBXQ.js +1 -0
- package/dist/studio/assets/index-BJ47Zsb5.js +1 -0
- package/dist/studio/assets/index-BbrxUzO8.js +1 -0
- package/dist/studio/assets/index-Bk2cWYRn.js +1 -0
- package/dist/studio/assets/index-C3zH8UNH.js +1 -0
- package/dist/studio/assets/index-C5Gn56O1.js +2 -0
- package/dist/studio/assets/index-CWOzX6bp.js +1 -0
- package/dist/studio/assets/index-CoMhsst-.js +1 -0
- package/dist/studio/assets/index-CoORZRmo.js +1 -0
- package/dist/studio/assets/index-DJtMwJXc.js +1 -0
- package/dist/studio/assets/index-DVi3DnAy.js +7 -0
- package/dist/studio/assets/index-DXQLCSe-.js +1 -0
- package/dist/studio/assets/index-DbViMdCi.js +1 -0
- package/dist/studio/assets/index-De8FQYWG.js +1 -0
- package/dist/studio/assets/index-Do6PzU9v.js +1 -0
- package/dist/studio/assets/index-yUiD89B4.js +1 -0
- package/dist/studio/assets/ini-BjABl1g7.js +1 -0
- package/dist/studio/assets/java-xI-RfyKK.js +1 -0
- package/dist/studio/assets/javascript-iXu5QeM3.js +1 -0
- package/dist/studio/assets/javascript-ySlJ1b_l.js +1 -0
- package/dist/studio/assets/jinja-DGy0s7-h.js +1 -0
- package/dist/studio/assets/jison-BqZprYcd.js +1 -0
- package/dist/studio/assets/json-BQoSv7ci.js +1 -0
- package/dist/studio/assets/json5-w8dY5SsB.js +1 -0
- package/dist/studio/assets/jsonc-TU54ms6u.js +1 -0
- package/dist/studio/assets/jsonl-DREVFZK8.js +1 -0
- package/dist/studio/assets/jsonnet-BfivnA6A.js +1 -0
- package/dist/studio/assets/jssm-P4WzXJd0.js +1 -0
- package/dist/studio/assets/jsx-BAng5TT0.js +1 -0
- package/dist/studio/assets/julia-BBuGR-5E.js +1 -0
- package/dist/studio/assets/julia-DuME0IfC.js +1 -0
- package/dist/studio/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/studio/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/studio/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/studio/assets/kotlin-B5lbUyaz.js +1 -0
- package/dist/studio/assets/kusto-mebxcVVE.js +1 -0
- package/dist/studio/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/studio/assets/latex-C-cWTeAZ.js +1 -0
- package/dist/studio/assets/lean-XBlWyCtg.js +1 -0
- package/dist/studio/assets/less-BfCpw3nA.js +1 -0
- package/dist/studio/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/studio/assets/liquid-D3W5UaiH.js +1 -0
- package/dist/studio/assets/livescript-BwQOo05w.js +1 -0
- package/dist/studio/assets/log-Cc5clBb7.js +1 -0
- package/dist/studio/assets/logo-IuBKFhSY.js +1 -0
- package/dist/studio/assets/lua-BgMRiT3U.js +1 -0
- package/dist/studio/assets/lua-CvWAzNxB.js +1 -0
- package/dist/studio/assets/luau-Du5NY7AG.js +1 -0
- package/dist/studio/assets/main-l-GkLRbZ.js +615 -0
- package/dist/studio/assets/make-Bvotw-X0.js +1 -0
- package/dist/studio/assets/markdown-UIAJJxZW.js +1 -0
- package/dist/studio/assets/marko-z0MBrx5-.js +1 -0
- package/dist/studio/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/studio/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/studio/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/studio/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/studio/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/studio/assets/mathematica-DTrFuWx2.js +1 -0
- package/dist/studio/assets/matlab-D9-PGadD.js +1 -0
- package/dist/studio/assets/mbox-CNhZ1qSd.js +1 -0
- package/dist/studio/assets/mdc-DB_EDNY_.js +1 -0
- package/dist/studio/assets/mdx-sdHcTMYB.js +1 -0
- package/dist/studio/assets/mermaid-Ci6OQyBP.js +1 -0
- package/dist/studio/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/studio/assets/min-light-CTRr51gU.js +1 -0
- package/dist/studio/assets/mipsasm-BC5c_5Pe.js +1 -0
- package/dist/studio/assets/mirc-CjQqDB4T.js +1 -0
- package/dist/studio/assets/mllike-BO34x3tv.js +1 -0
- package/dist/studio/assets/modelica-Dc1JOy9r.js +1 -0
- package/dist/studio/assets/mojo-Tz6hzZYG.js +1 -0
- package/dist/studio/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/studio/assets/move-DB_GagMm.js +1 -0
- package/dist/studio/assets/mscgen-BA5vi2Kp.js +1 -0
- package/dist/studio/assets/mumps-BT43cFF4.js +1 -0
- package/dist/studio/assets/narrat-DLbgOhZU.js +1 -0
- package/dist/studio/assets/nextflow-B0XVJmRM.js +1 -0
- package/dist/studio/assets/nginx-D_VnBJ67.js +1 -0
- package/dist/studio/assets/nginx-DdIZxoE0.js +1 -0
- package/dist/studio/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/studio/assets/nim-ZlGxZxc3.js +1 -0
- package/dist/studio/assets/nix-shcSOmrb.js +1 -0
- package/dist/studio/assets/nord-Ddv68eIx.js +1 -0
- package/dist/studio/assets/nsis-LdVXkNf5.js +1 -0
- package/dist/studio/assets/ntriples-BfvgReVJ.js +1 -0
- package/dist/studio/assets/nushell-D4Tzg5kh.js +1 -0
- package/dist/studio/assets/objective-c-Deuh7S70.js +1 -0
- package/dist/studio/assets/objective-cpp-BUEGK8hf.js +1 -0
- package/dist/studio/assets/ocaml-BNioltXt.js +1 -0
- package/dist/studio/assets/octave-Ck1zUtKM.js +1 -0
- package/dist/studio/assets/one-dark-pro-GBQ2dnAY.js +1 -0
- package/dist/studio/assets/one-light-PoHY5YXO.js +1 -0
- package/dist/studio/assets/oz-BzwKVEFT.js +1 -0
- package/dist/studio/assets/pascal--L3eBynH.js +1 -0
- package/dist/studio/assets/pascal-JqZropPD.js +1 -0
- package/dist/studio/assets/perl-CHQXSrWU.js +1 -0
- package/dist/studio/assets/perl-CdXCOZ3F.js +1 -0
- package/dist/studio/assets/php-B5ebYQev.js +1 -0
- package/dist/studio/assets/pig-CevX1Tat.js +1 -0
- package/dist/studio/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/studio/assets/plsql-LKU2TuZ1.js +1 -0
- package/dist/studio/assets/po-BFLt1xDp.js +1 -0
- package/dist/studio/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/studio/assets/polar-DKykz6zU.js +1 -0
- package/dist/studio/assets/postcss-B3ZDOciz.js +1 -0
- package/dist/studio/assets/powerquery-CSHBycmS.js +1 -0
- package/dist/studio/assets/powershell-BIEUsx6d.js +1 -0
- package/dist/studio/assets/powershell-CaxLzxiJ.js +1 -0
- package/dist/studio/assets/prisma-B48N-Iqd.js +1 -0
- package/dist/studio/assets/prolog-BY-TUvya.js +1 -0
- package/dist/studio/assets/properties-C78fOPTZ.js +1 -0
- package/dist/studio/assets/proto-zocC4JxJ.js +1 -0
- package/dist/studio/assets/protobuf-ChK-085T.js +1 -0
- package/dist/studio/assets/pug-CM9l7STV.js +1 -0
- package/dist/studio/assets/pug-DeIclll2.js +1 -0
- package/dist/studio/assets/puppet-Cza_XSSt.js +1 -0
- package/dist/studio/assets/puppet-DMA9R1ak.js +1 -0
- package/dist/studio/assets/purescript-Bg-kzb6g.js +1 -0
- package/dist/studio/assets/python-BuPzkPfP.js +1 -0
- package/dist/studio/assets/python-DhUJRlN_.js +1 -0
- package/dist/studio/assets/q-pXgVlZs6.js +1 -0
- package/dist/studio/assets/qml-D8XfuvdV.js +1 -0
- package/dist/studio/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/studio/assets/qss-DhMKtDLN.js +1 -0
- package/dist/studio/assets/r-B6wPVr8A.js +1 -0
- package/dist/studio/assets/r-CwjWoCRV.js +1 -0
- package/dist/studio/assets/racket-CzouJOBO.js +1 -0
- package/dist/studio/assets/raku-B1bQXN8T.js +1 -0
- package/dist/studio/assets/razor-CNLDkMZG.js +1 -0
- package/dist/studio/assets/red-bN70gL4F.js +1 -0
- package/dist/studio/assets/reg-5LuOXUq_.js +1 -0
- package/dist/studio/assets/regexp-DWJ3fJO_.js +1 -0
- package/dist/studio/assets/rel-DJlmqQ1C.js +1 -0
- package/dist/studio/assets/riscv-QhoSD0DR.js +1 -0
- package/dist/studio/assets/rose-pine-CmCqftbK.js +1 -0
- package/dist/studio/assets/rose-pine-dawn-Ds-gbosJ.js +1 -0
- package/dist/studio/assets/rose-pine-moon-CjDtw9vr.js +1 -0
- package/dist/studio/assets/rpm-CTu-6PCP.js +1 -0
- package/dist/studio/assets/rst-4NLicBqY.js +1 -0
- package/dist/studio/assets/ruby-B2Rjki9n.js +1 -0
- package/dist/studio/assets/ruby-DeZ3UC14.js +1 -0
- package/dist/studio/assets/rust-Be6lgOlo.js +1 -0
- package/dist/studio/assets/sas-B4kiWyti.js +1 -0
- package/dist/studio/assets/sas-BmTFh92c.js +1 -0
- package/dist/studio/assets/sass-BJ4Li9vH.js +1 -0
- package/dist/studio/assets/scala-DQVVAn-B.js +1 -0
- package/dist/studio/assets/scheme-BJGe-b2p.js +1 -0
- package/dist/studio/assets/scheme-C41bIUwD.js +1 -0
- package/dist/studio/assets/scss-C31hgJw-.js +1 -0
- package/dist/studio/assets/sdbl-BLhTXw86.js +1 -0
- package/dist/studio/assets/shaderlab-B7qAK45m.js +1 -0
- package/dist/studio/assets/shell-CjFT_Tl9.js +1 -0
- package/dist/studio/assets/shellscript-atvbtKCR.js +1 -0
- package/dist/studio/assets/shellsession-C_rIy8kc.js +1 -0
- package/dist/studio/assets/sieve-C3Gn_uJK.js +1 -0
- package/dist/studio/assets/simple-mode-GW_nhZxv.js +1 -0
- package/dist/studio/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/studio/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/studio/assets/smalltalk-CnHTOXQT.js +1 -0
- package/dist/studio/assets/smalltalk-DkLiglaE.js +1 -0
- package/dist/studio/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/studio/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/studio/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/studio/assets/solidity-C1w2a3ep.js +1 -0
- package/dist/studio/assets/solr-DehyRSwq.js +1 -0
- package/dist/studio/assets/soy-C-lX7w71.js +1 -0
- package/dist/studio/assets/sparql-DkYu6x3z.js +1 -0
- package/dist/studio/assets/sparql-bYkjHRlG.js +1 -0
- package/dist/studio/assets/splunk-Cf8iN4DR.js +1 -0
- package/dist/studio/assets/spreadsheet-BCZA_wO0.js +1 -0
- package/dist/studio/assets/sql-COK4E0Yg.js +1 -0
- package/dist/studio/assets/sql-D0XecflT.js +1 -0
- package/dist/studio/assets/ssh-config-BknIz3MU.js +1 -0
- package/dist/studio/assets/stata-DorPZHa4.js +1 -0
- package/dist/studio/assets/stex-C3f8Ysf7.js +1 -0
- package/dist/studio/assets/style-BM0szoAZ.css +1 -0
- package/dist/studio/assets/stylus-B533Al4x.js +1 -0
- package/dist/studio/assets/stylus-BeQkCIfX.js +1 -0
- package/dist/studio/assets/svelte-MSaWC3Je.js +1 -0
- package/dist/studio/assets/swift-BSxZ-RaX.js +1 -0
- package/dist/studio/assets/swift-BzpIVaGY.js +1 -0
- package/dist/studio/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/studio/assets/system-verilog-C7L56vO4.js +1 -0
- package/dist/studio/assets/systemd-CUnW07Te.js +1 -0
- package/dist/studio/assets/talonscript-C1XDQQGZ.js +1 -0
- package/dist/studio/assets/tasl-CQjiPCtT.js +1 -0
- package/dist/studio/assets/tcl-DQ1-QYvQ.js +1 -0
- package/dist/studio/assets/tcl-DVfN8rqt.js +1 -0
- package/dist/studio/assets/templ-dwX3ZSMB.js +1 -0
- package/dist/studio/assets/terraform-BbSNqyBO.js +1 -0
- package/dist/studio/assets/tex-rYs2v40G.js +1 -0
- package/dist/studio/assets/textile-CnDTJFAw.js +1 -0
- package/dist/studio/assets/tiddlywiki-DO-Gjzrf.js +1 -0
- package/dist/studio/assets/tiki-DGYXhP31.js +1 -0
- package/dist/studio/assets/token-6GSAFR2W-XRCSVUPZ-CJKKY7Xw.js +1 -0
- package/dist/studio/assets/token-util-NEHG7TUY-U7CX7GS4-CvzVQPbB.js +1 -0
- package/dist/studio/assets/tokyo-night-DBQeEorK.js +1 -0
- package/dist/studio/assets/toml-Bm5Em-hy.js +1 -0
- package/dist/studio/assets/toml-CB2ApiWb.js +1 -0
- package/dist/studio/assets/troff-wAsdV37c.js +1 -0
- package/dist/studio/assets/ts-tags-CipyTH0X.js +1 -0
- package/dist/studio/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/studio/assets/tsx-B6W0miNI.js +1 -0
- package/dist/studio/assets/ttcn-CfJYG6tj.js +1 -0
- package/dist/studio/assets/ttcn-cfg-B9xdYoR4.js +1 -0
- package/dist/studio/assets/turtle-B1tBg_DP.js +1 -0
- package/dist/studio/assets/turtle-BMR_PYu6.js +1 -0
- package/dist/studio/assets/twig-NC5TFiHP.js +1 -0
- package/dist/studio/assets/typescript-Dj6nwHGl.js +1 -0
- package/dist/studio/assets/typespec-BpWG_bgh.js +1 -0
- package/dist/studio/assets/typst-BVUVsWT6.js +1 -0
- package/dist/studio/assets/v-CAQ2eGtk.js +1 -0
- package/dist/studio/assets/vala-BFOHcciG.js +1 -0
- package/dist/studio/assets/vb-CdO5JTpU.js +1 -0
- package/dist/studio/assets/vb-CmGdzxic.js +1 -0
- package/dist/studio/assets/vbscript-BuJXcnF6.js +1 -0
- package/dist/studio/assets/velocity-D8B20fx6.js +1 -0
- package/dist/studio/assets/verilog-C6RDOZhf.js +1 -0
- package/dist/studio/assets/verilog-CJaU5se_.js +1 -0
- package/dist/studio/assets/vesper-BEBZ7ncR.js +1 -0
- package/dist/studio/assets/vhdl-DYoNaHQp.js +1 -0
- package/dist/studio/assets/vhdl-lSbBsy5d.js +1 -0
- package/dist/studio/assets/viml-m4uW47V2.js +1 -0
- package/dist/studio/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/studio/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/studio/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/studio/assets/vue-BuYVFjOK.js +1 -0
- package/dist/studio/assets/vue-html-xdeiXROB.js +1 -0
- package/dist/studio/assets/vyper-nyqBNV6O.js +1 -0
- package/dist/studio/assets/wasm-C6j12Q_x.js +1 -0
- package/dist/studio/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/studio/assets/webidl-ZXfAyPTL.js +1 -0
- package/dist/studio/assets/wenyan-7A4Fjokl.js +1 -0
- package/dist/studio/assets/wgsl-CB0Krxn9.js +1 -0
- package/dist/studio/assets/wikitext-DCE3LsBG.js +1 -0
- package/dist/studio/assets/wolfram-C3FkfJm5.js +1 -0
- package/dist/studio/assets/xml-e3z08dGr.js +1 -0
- package/dist/studio/assets/xquery-DzFWVndE.js +1 -0
- package/dist/studio/assets/xsl-Dd0NUgwM.js +1 -0
- package/dist/studio/assets/yacas-BJ4BC0dw.js +1 -0
- package/dist/studio/assets/yaml-CVw76BM1.js +1 -0
- package/dist/studio/assets/z80-Hz9HOZM7.js +1 -0
- package/dist/studio/assets/zenscript-HnGAYVZD.js +1 -0
- package/dist/studio/assets/zig-BVz_zdnA.js +1 -0
- package/dist/studio/index.html +51 -0
- package/dist/studio/mastra.svg +17 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added `studio` option to deploy Studio alongside your API. When enabled, Studio is served as static assets from Vercel's Edge CDN while the API stays in the serverless function. No function invocations are consumed for Studio requests. ([#13532](https://github.com/mastra-ai/mastra/pull/13532))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { VercelDeployer } from '@mastra/deployer-vercel';
|
|
11
|
+
|
|
12
|
+
new VercelDeployer({
|
|
13
|
+
studio: true,
|
|
14
|
+
});
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Fixed CMS features (Create an agent button, clone, edit, create scorer) not appearing in built output. The build command now writes package metadata so the studio can detect installed Mastra packages at runtime. ([#13163](https://github.com/mastra-ai/mastra/pull/13163))
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`504fc8b`](https://github.com/mastra-ai/mastra/commit/504fc8b9d0ddab717577ad3bf9c95ea4bd5377bd), [`f9c150b`](https://github.com/mastra-ai/mastra/commit/f9c150b7595ad05ad9cc9a11098e2944361e8c22), [`88de7e8`](https://github.com/mastra-ai/mastra/commit/88de7e8dfe4b7e1951a9e441bb33136e705ce24e), [`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0), [`3790c75`](https://github.com/mastra-ai/mastra/commit/3790c7578cc6a47d854eb12d89e6b1912867fe29), [`e7a235b`](https://github.com/mastra-ai/mastra/commit/e7a235be6472e0c870ed6c791ddb17c492dc188b), [`d51d298`](https://github.com/mastra-ai/mastra/commit/d51d298953967aab1f58ec965b644d109214f085), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d5f0d8d`](https://github.com/mastra-ai/mastra/commit/d5f0d8d6a03e515ddaa9b5da19b7e44b8357b07b), [`09c3b18`](https://github.com/mastra-ai/mastra/commit/09c3b1802ff14e243a8a8baea327440bc8cc2e32), [`b896379`](https://github.com/mastra-ai/mastra/commit/b8963791c6afa79484645fcec596a201f936b9a2), [`85c84eb`](https://github.com/mastra-ai/mastra/commit/85c84ebb78aebfcba9d209c8e152b16d7a00cb71), [`a89272a`](https://github.com/mastra-ai/mastra/commit/a89272a5d71939b9fcd284e6a6dc1dd091a6bdcf), [`ee9c8df`](https://github.com/mastra-ai/mastra/commit/ee9c8df644f19d055af5f496bf4942705f5a47b7), [`77b4a25`](https://github.com/mastra-ai/mastra/commit/77b4a254e51907f8ff3a3ba95596a18e93ae4b35), [`276246e`](https://github.com/mastra-ai/mastra/commit/276246e0b9066a1ea48bbc70df84dbe528daaf99), [`08ecfdb`](https://github.com/mastra-ai/mastra/commit/08ecfdbdad6fb8285deef86a034bdf4a6047cfca), [`5ca0767`](https://github.com/mastra-ai/mastra/commit/5ca0767eed8ce95aa95137039bb5c9f4d9804a26), [`d5f628c`](https://github.com/mastra-ai/mastra/commit/d5f628ca86c6f6f3ff1035d52f635df32dd81cab), [`524c0f3`](https://github.com/mastra-ai/mastra/commit/524c0f3c434c3d9d18f66338dcef383d6161b59c), [`c18a0e9`](https://github.com/mastra-ai/mastra/commit/c18a0e9cef1e4ca004b2963d35e4cfc031971eac), [`4bd21ea`](https://github.com/mastra-ai/mastra/commit/4bd21ea43d44d0a0427414fc047577f9f0aa3bec), [`115a7a4`](https://github.com/mastra-ai/mastra/commit/115a7a47db5e9896fec12ae6507501adb9ec89bf), [`22a48ae`](https://github.com/mastra-ai/mastra/commit/22a48ae2513eb54d8d79dad361fddbca97a155e8), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9311c17`](https://github.com/mastra-ai/mastra/commit/9311c17d7a0640d9c4da2e71b814dc67c57c6369), [`628d8c6`](https://github.com/mastra-ai/mastra/commit/628d8c6a1c063ef3521d1e8872d52b967cc571a1), [`7edf78f`](https://github.com/mastra-ai/mastra/commit/7edf78f80422c43e84585f08ba11df0d4d0b73c5), [`1c4221c`](https://github.com/mastra-ai/mastra/commit/1c4221cf6032ec98d0e094d4ee11da3e48490d96), [`d25b9ea`](https://github.com/mastra-ai/mastra/commit/d25b9eabd400167255a97b690ffbc4ee4097ded5), [`fe1ce5c`](https://github.com/mastra-ai/mastra/commit/fe1ce5c9211c03d561606fda95cbfe7df1d9a9b5), [`b03c0e0`](https://github.com/mastra-ai/mastra/commit/b03c0e0389a799523929a458b0509c9e4244d562), [`0a8366b`](https://github.com/mastra-ai/mastra/commit/0a8366b0a692fcdde56c4d526e4cf03c502ae4ac), [`85664e9`](https://github.com/mastra-ai/mastra/commit/85664e9fd857320fbc245e301f764f45f66f32a3), [`bc79650`](https://github.com/mastra-ai/mastra/commit/bc796500c6e0334faa158a96077e3fb332274869), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`3a3a59e`](https://github.com/mastra-ai/mastra/commit/3a3a59e8ffaa6a985fe3d9a126a3f5ade11a6724), [`122121c`](https://github.com/mastra-ai/mastra/commit/122121c872df5418a80c62ece0e313e37c54cb88), [`3108d4e`](https://github.com/mastra-ai/mastra/commit/3108d4e649c9fddbf03253a6feeb388a5fa9fa5a), [`0c33b2c`](https://github.com/mastra-ai/mastra/commit/0c33b2c9db537f815e1c59e2c898ffce2e395a79), [`191e5bd`](https://github.com/mastra-ai/mastra/commit/191e5bd29b82f5bda35243945790da7bc7b695c2), [`f77cd94`](https://github.com/mastra-ai/mastra/commit/f77cd94c44eabed490384e7d19232a865e13214c), [`e8135c7`](https://github.com/mastra-ai/mastra/commit/e8135c7e300dac5040670eec7eab896ac6092e30), [`daca48f`](https://github.com/mastra-ai/mastra/commit/daca48f0fb17b7ae0b62a2ac40cf0e491b2fd0b7), [`257d14f`](https://github.com/mastra-ai/mastra/commit/257d14faca5931f2e4186fc165b6f0b1f915deee), [`352f25d`](https://github.com/mastra-ai/mastra/commit/352f25da316b24cdd5b410fd8dddf6a8b763da2a), [`93477d0`](https://github.com/mastra-ai/mastra/commit/93477d0769b8a13ea5ed73d508d967fb23eaeed9), [`31c78b3`](https://github.com/mastra-ai/mastra/commit/31c78b3eb28f58a8017f1dcc795c33214d87feac), [`0bc0720`](https://github.com/mastra-ai/mastra/commit/0bc07201095791858087cc56f353fcd65e87ab54), [`36516ac`](https://github.com/mastra-ai/mastra/commit/36516aca1021cbeb42e74751b46a2614101f37c8), [`e947652`](https://github.com/mastra-ai/mastra/commit/e9476527fdecb4449e54570e80dfaf8466901254), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`ec248f6`](https://github.com/mastra-ai/mastra/commit/ec248f6b56e8a037c066c49b2178e2507471d988)]:
|
|
22
|
+
- @mastra/core@1.9.0
|
|
23
|
+
- @mastra/deployer@1.9.0
|
|
24
|
+
|
|
25
|
+
## 1.1.0-alpha.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- Added `studio` option to deploy Studio alongside your API. When enabled, Studio is served as static assets from Vercel's Edge CDN while the API stays in the serverless function. No function invocations are consumed for Studio requests. ([#13532](https://github.com/mastra-ai/mastra/pull/13532))
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { VercelDeployer } from '@mastra/deployer-vercel';
|
|
33
|
+
|
|
34
|
+
new VercelDeployer({
|
|
35
|
+
studio: true,
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Fixed CMS features (Create an agent button, clone, edit, create scorer) not appearing in built output. The build command now writes package metadata so the studio can detect installed Mastra packages at runtime. ([#13163](https://github.com/mastra-ai/mastra/pull/13163))
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`504fc8b`](https://github.com/mastra-ai/mastra/commit/504fc8b9d0ddab717577ad3bf9c95ea4bd5377bd), [`f9c150b`](https://github.com/mastra-ai/mastra/commit/f9c150b7595ad05ad9cc9a11098e2944361e8c22), [`88de7e8`](https://github.com/mastra-ai/mastra/commit/88de7e8dfe4b7e1951a9e441bb33136e705ce24e), [`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0), [`3790c75`](https://github.com/mastra-ai/mastra/commit/3790c7578cc6a47d854eb12d89e6b1912867fe29), [`e7a235b`](https://github.com/mastra-ai/mastra/commit/e7a235be6472e0c870ed6c791ddb17c492dc188b), [`d51d298`](https://github.com/mastra-ai/mastra/commit/d51d298953967aab1f58ec965b644d109214f085), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d5f0d8d`](https://github.com/mastra-ai/mastra/commit/d5f0d8d6a03e515ddaa9b5da19b7e44b8357b07b), [`09c3b18`](https://github.com/mastra-ai/mastra/commit/09c3b1802ff14e243a8a8baea327440bc8cc2e32), [`b896379`](https://github.com/mastra-ai/mastra/commit/b8963791c6afa79484645fcec596a201f936b9a2), [`85c84eb`](https://github.com/mastra-ai/mastra/commit/85c84ebb78aebfcba9d209c8e152b16d7a00cb71), [`a89272a`](https://github.com/mastra-ai/mastra/commit/a89272a5d71939b9fcd284e6a6dc1dd091a6bdcf), [`ee9c8df`](https://github.com/mastra-ai/mastra/commit/ee9c8df644f19d055af5f496bf4942705f5a47b7), [`77b4a25`](https://github.com/mastra-ai/mastra/commit/77b4a254e51907f8ff3a3ba95596a18e93ae4b35), [`276246e`](https://github.com/mastra-ai/mastra/commit/276246e0b9066a1ea48bbc70df84dbe528daaf99), [`08ecfdb`](https://github.com/mastra-ai/mastra/commit/08ecfdbdad6fb8285deef86a034bdf4a6047cfca), [`5ca0767`](https://github.com/mastra-ai/mastra/commit/5ca0767eed8ce95aa95137039bb5c9f4d9804a26), [`d5f628c`](https://github.com/mastra-ai/mastra/commit/d5f628ca86c6f6f3ff1035d52f635df32dd81cab), [`524c0f3`](https://github.com/mastra-ai/mastra/commit/524c0f3c434c3d9d18f66338dcef383d6161b59c), [`c18a0e9`](https://github.com/mastra-ai/mastra/commit/c18a0e9cef1e4ca004b2963d35e4cfc031971eac), [`4bd21ea`](https://github.com/mastra-ai/mastra/commit/4bd21ea43d44d0a0427414fc047577f9f0aa3bec), [`115a7a4`](https://github.com/mastra-ai/mastra/commit/115a7a47db5e9896fec12ae6507501adb9ec89bf), [`22a48ae`](https://github.com/mastra-ai/mastra/commit/22a48ae2513eb54d8d79dad361fddbca97a155e8), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9311c17`](https://github.com/mastra-ai/mastra/commit/9311c17d7a0640d9c4da2e71b814dc67c57c6369), [`628d8c6`](https://github.com/mastra-ai/mastra/commit/628d8c6a1c063ef3521d1e8872d52b967cc571a1), [`7edf78f`](https://github.com/mastra-ai/mastra/commit/7edf78f80422c43e84585f08ba11df0d4d0b73c5), [`1c4221c`](https://github.com/mastra-ai/mastra/commit/1c4221cf6032ec98d0e094d4ee11da3e48490d96), [`d25b9ea`](https://github.com/mastra-ai/mastra/commit/d25b9eabd400167255a97b690ffbc4ee4097ded5), [`fe1ce5c`](https://github.com/mastra-ai/mastra/commit/fe1ce5c9211c03d561606fda95cbfe7df1d9a9b5), [`b03c0e0`](https://github.com/mastra-ai/mastra/commit/b03c0e0389a799523929a458b0509c9e4244d562), [`0a8366b`](https://github.com/mastra-ai/mastra/commit/0a8366b0a692fcdde56c4d526e4cf03c502ae4ac), [`85664e9`](https://github.com/mastra-ai/mastra/commit/85664e9fd857320fbc245e301f764f45f66f32a3), [`bc79650`](https://github.com/mastra-ai/mastra/commit/bc796500c6e0334faa158a96077e3fb332274869), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`3a3a59e`](https://github.com/mastra-ai/mastra/commit/3a3a59e8ffaa6a985fe3d9a126a3f5ade11a6724), [`122121c`](https://github.com/mastra-ai/mastra/commit/122121c872df5418a80c62ece0e313e37c54cb88), [`3108d4e`](https://github.com/mastra-ai/mastra/commit/3108d4e649c9fddbf03253a6feeb388a5fa9fa5a), [`0c33b2c`](https://github.com/mastra-ai/mastra/commit/0c33b2c9db537f815e1c59e2c898ffce2e395a79), [`191e5bd`](https://github.com/mastra-ai/mastra/commit/191e5bd29b82f5bda35243945790da7bc7b695c2), [`f77cd94`](https://github.com/mastra-ai/mastra/commit/f77cd94c44eabed490384e7d19232a865e13214c), [`e8135c7`](https://github.com/mastra-ai/mastra/commit/e8135c7e300dac5040670eec7eab896ac6092e30), [`daca48f`](https://github.com/mastra-ai/mastra/commit/daca48f0fb17b7ae0b62a2ac40cf0e491b2fd0b7), [`257d14f`](https://github.com/mastra-ai/mastra/commit/257d14faca5931f2e4186fc165b6f0b1f915deee), [`352f25d`](https://github.com/mastra-ai/mastra/commit/352f25da316b24cdd5b410fd8dddf6a8b763da2a), [`93477d0`](https://github.com/mastra-ai/mastra/commit/93477d0769b8a13ea5ed73d508d967fb23eaeed9), [`31c78b3`](https://github.com/mastra-ai/mastra/commit/31c78b3eb28f58a8017f1dcc795c33214d87feac), [`0bc0720`](https://github.com/mastra-ai/mastra/commit/0bc07201095791858087cc56f353fcd65e87ab54), [`36516ac`](https://github.com/mastra-ai/mastra/commit/36516aca1021cbeb42e74751b46a2614101f37c8), [`e947652`](https://github.com/mastra-ai/mastra/commit/e9476527fdecb4449e54570e80dfaf8466901254), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`ec248f6`](https://github.com/mastra-ai/mastra/commit/ec248f6b56e8a037c066c49b2178e2507471d988)]:
|
|
44
|
+
- @mastra/core@1.9.0-alpha.0
|
|
45
|
+
- @mastra/deployer@1.9.0-alpha.0
|
|
46
|
+
|
|
3
47
|
## 1.0.9
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/LICENSE.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
Portions of this software are licensed as follows:
|
|
2
|
+
|
|
3
|
+
- All content that resides under any directory named "ee/" within this
|
|
4
|
+
repository, including but not limited to:
|
|
5
|
+
- `packages/core/src/auth/ee/`
|
|
6
|
+
- `packages/server/src/server/auth/ee/`
|
|
7
|
+
is licensed under the license defined in `ee/LICENSE`.
|
|
8
|
+
|
|
9
|
+
- All third-party components incorporated into the Mastra Software are
|
|
10
|
+
licensed under the original license provided by the owner of the
|
|
11
|
+
applicable component.
|
|
12
|
+
|
|
13
|
+
- Content outside of the above-mentioned directories or restrictions is
|
|
14
|
+
available under the "Apache License 2.0" as defined below.
|
|
15
|
+
|
|
1
16
|
# Apache License 2.0
|
|
2
17
|
|
|
3
18
|
Copyright (c) 2025 Kepler Software, Inc.
|
package/dist/index.cjs
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
var fs = require('fs');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var process = require('process');
|
|
6
|
+
var url = require('url');
|
|
6
7
|
var deployer = require('@mastra/deployer');
|
|
8
|
+
var build = require('@mastra/deployer/build');
|
|
7
9
|
var esm = require('fs-extra/esm');
|
|
8
10
|
|
|
11
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
9
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
13
|
|
|
11
14
|
var process__default = /*#__PURE__*/_interopDefault(process);
|
|
@@ -13,14 +16,31 @@ var process__default = /*#__PURE__*/_interopDefault(process);
|
|
|
13
16
|
// src/index.ts
|
|
14
17
|
var VercelDeployer = class extends deployer.Deployer {
|
|
15
18
|
vcConfigOverrides = {};
|
|
19
|
+
studio;
|
|
16
20
|
constructor(options = {}) {
|
|
17
21
|
super({ name: "VERCEL" });
|
|
18
22
|
this.outputDir = path.join(".vercel", "output", "functions", "index.func");
|
|
19
|
-
this.
|
|
23
|
+
this.studio = options.studio ?? false;
|
|
24
|
+
const { studio, ...overrides } = options;
|
|
25
|
+
this.vcConfigOverrides = { ...overrides };
|
|
20
26
|
}
|
|
21
27
|
async prepare(outputDirectory) {
|
|
22
28
|
await super.prepare(outputDirectory);
|
|
23
29
|
this.writeVercelJSON(path.join(outputDirectory, this.outputDir, "..", ".."));
|
|
30
|
+
if (this.studio) {
|
|
31
|
+
const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
|
|
32
|
+
const __dirname = path.dirname(__filename);
|
|
33
|
+
const studioSource = path.join(path.dirname(__dirname), "dist", "studio");
|
|
34
|
+
const staticDir = path.join(outputDirectory, ".vercel", "output", "static");
|
|
35
|
+
try {
|
|
36
|
+
await esm.copy(studioSource, staticDir, { overwrite: true });
|
|
37
|
+
} catch (err) {
|
|
38
|
+
throw new Error(
|
|
39
|
+
`Failed to copy studio assets from "${studioSource}" to "${staticDir}": ${err instanceof Error ? err.message : err}`
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
this.injectStudioConfig(staticDir);
|
|
43
|
+
}
|
|
24
44
|
}
|
|
25
45
|
getEntry() {
|
|
26
46
|
return `
|
|
@@ -45,19 +65,31 @@ export const OPTIONS = handle(app);
|
|
|
45
65
|
export const HEAD = handle(app);
|
|
46
66
|
`;
|
|
47
67
|
}
|
|
68
|
+
injectStudioConfig(staticDir) {
|
|
69
|
+
const indexPath = path.join(staticDir, "index.html");
|
|
70
|
+
let html = fs.readFileSync(indexPath, "utf-8");
|
|
71
|
+
html = build.injectStudioHtmlConfig(html, {
|
|
72
|
+
host: `window.location.hostname`,
|
|
73
|
+
port: `(window.location.port || (window.location.protocol === 'https:' ? '443' : '80'))`,
|
|
74
|
+
protocol: `window.location.protocol.replace(':', '')`,
|
|
75
|
+
apiPrefix: `'/api'`,
|
|
76
|
+
basePath: "",
|
|
77
|
+
hideCloudCta: `'true'`,
|
|
78
|
+
cloudApiEndpoint: `''`,
|
|
79
|
+
experimentalFeatures: `'false'`,
|
|
80
|
+
telemetryDisabled: `''`,
|
|
81
|
+
requestContextPresets: `''`
|
|
82
|
+
});
|
|
83
|
+
fs.writeFileSync(indexPath, html);
|
|
84
|
+
}
|
|
48
85
|
writeVercelJSON(outputDirectory) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
dest: "/"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
})
|
|
60
|
-
);
|
|
86
|
+
const routes = this.studio ? [
|
|
87
|
+
{ src: "/api/(.*)", dest: "/" },
|
|
88
|
+
{ src: "/health", dest: "/" },
|
|
89
|
+
{ handle: "filesystem" },
|
|
90
|
+
{ src: "/(.*)", dest: "/index.html", check: true }
|
|
91
|
+
] : [{ src: "/(.*)", dest: "/" }];
|
|
92
|
+
fs.writeFileSync(path.join(outputDirectory, "config.json"), JSON.stringify({ version: 3, routes }));
|
|
61
93
|
}
|
|
62
94
|
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
63
95
|
const result = await this._bundle(
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["Deployer","join","writeFileSync","process","move"],"mappings":";;;;;;;;;;;;;AAOO,IAAM,cAAA,GAAN,cAA6BA,iBAAA,CAAS;AAAA,EACnC,oBAAuC,EAAC;AAAA,EAEhD,WAAA,CAAY,OAAA,GAAiC,EAAC,EAAG;AAC/C,IAAA,KAAA,CAAM,EAAE,IAAA,EAAM,QAAA,EAAU,CAAA;AACxB,IAAA,IAAA,CAAK,SAAA,GAAYC,SAAA,CAAK,SAAA,EAAW,QAAA,EAAU,aAAa,YAAY,CAAA;AAGpE,IAAA,IAAA,CAAK,iBAAA,GAAoB,EAAE,GAAG,OAAA,EAAQ;AAAA,EACxC;AAAA,EAEA,MAAM,QAAQ,eAAA,EAAwC;AACpD,IAAA,MAAM,KAAA,CAAM,QAAQ,eAAe,CAAA;AAEnC,IAAA,IAAA,CAAK,gBAAgBA,SAAA,CAAK,eAAA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AA,EACF;AACF","file":"index.cjs","sourcesContent":["import { writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport process from 'node:process';\nimport { Deployer } from '@mastra/deployer';\nimport { move } from 'fs-extra/esm';\nimport type { VcConfig, VcConfigOverrides, VercelDeployerOptions } from './types';\n\nexport class VercelDeployer extends Deployer {\n private vcConfigOverrides: VcConfigOverrides = {};\n\n constructor(options: VercelDeployerOptions = {}) {\n super({ name: 'VERCEL' });\n this.outputDir = join('.vercel', 'output', 'functions', 'index.func');\n\n // Store all overrides centrally\n this.vcConfigOverrides = { ...options };\n }\n\n async prepare(outputDirectory: string): Promise<void> {\n await super.prepare(outputDirectory);\n\n this.writeVercelJSON(join(outputDirectory, this.outputDir, '..', '..'));\n }\n\n private getEntry(): string {\n return `\nimport { handle } from 'hono/vercel'\nimport { mastra } from '#mastra';\nimport { createHonoServer, getToolExports } from '#server';\nimport { tools } from '#tools';\nimport { scoreTracesWorkflow } from '@mastra/core/evals/scoreTraces';\n\nif (mastra.getStorage()) {\n mastra.__registerInternalWorkflow(scoreTracesWorkflow);\n}\n\nconst app = await createHonoServer(mastra, { tools: getToolExports(tools) });\n\nexport const GET = handle(app);\nexport const POST = handle(app);\nexport const PUT = handle(app);\nexport const DELETE = handle(app);\nexport const PATCH = handle(app);\nexport const OPTIONS = handle(app);\nexport const HEAD = handle(app);\n`;\n }\n\n private writeVercelJSON(outputDirectory: string) {\n writeFileSync(\n join(outputDirectory, 'config.json'),\n JSON.stringify({\n version: 3,\n routes: [\n {\n src: '/(.*)',\n dest: '/',\n },\n ],\n }),\n );\n }\n\n async bundle(\n entryFile: string,\n outputDirectory: string,\n { toolsPaths, projectRoot }: { toolsPaths: (string | string[])[]; projectRoot: string },\n ): Promise<void> {\n const result = await this._bundle(\n this.getEntry(),\n entryFile,\n { outputDirectory, projectRoot },\n toolsPaths,\n join(outputDirectory, this.outputDir),\n );\n\n const nodeVersion = process.version?.split('.')?.[0]?.replace('v', '') ?? '22';\n\n const vcConfig: VcConfig = {\n handler: 'index.mjs',\n launcherType: 'Nodejs',\n runtime: `nodejs${nodeVersion}.x`,\n shouldAddHelpers: true,\n };\n\n // Merge supported overrides\n const { maxDuration, memory, regions } = this.vcConfigOverrides;\n if (typeof maxDuration === 'number') vcConfig.maxDuration = maxDuration;\n if (typeof memory === 'number') vcConfig.memory = memory;\n if (Array.isArray(regions) && regions.length > 0) vcConfig.regions = regions;\n\n writeFileSync(join(outputDirectory, this.outputDir, '.vc-config.json'), JSON.stringify(vcConfig, null, 2));\n\n await move(join(outputDirectory, '.vercel', 'output'), join(process.cwd(), '.vercel', 'output'), {\n overwrite: true,\n });\n\n return result;\n }\n\n async deploy(): Promise<void> {\n this.logger?.info('Deploying to Vercel is deprecated. Please use the Vercel dashboard to deploy.');\n }\n\n async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {\n await super.lint(entryFile, outputDirectory, toolsPaths);\n\n const hasLibsql = (await this.deps.checkDependencies(['@mastra/libsql'])) === `ok`;\n\n if (hasLibsql) {\n this.logger.error(\n `Vercel Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency. \n\t\t\t\tUse other Mastra Storage options instead e.g @mastra/pg`,\n );\n process.exit(1);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["Deployer","join","fileURLToPath","dirname","copy","readFileSync","injectStudioHtmlConfig","writeFileSync","process","move"],"mappings":";;;;;;;;;;;;;;;;AASO,IAAM,cAAA,GAAN,cAA6BA,iBAAA,CAAS;AAAA,EACnC,oBAAuC,EAAC;AAAA,EACxC,MAAA;AAAA,EAER,WAAA,CAAY,OAAA,GAAiC,EAAC,EAAG;AAC/C,IAAA,KAAA,CAAM,EAAE,IAAA,EAAM,QAAA,EAAU,CAAA;AACxB,IAAA,IAAA,CAAK,SAAA,GAAYC,SAAA,CAAK,SAAA,EAAW,QAAA,EAAU,aAAa,YAAY,CAAA;AACpE,IAAA,IAAA,CAAK,MAAA,G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AA,CAAK,eAAA,EAAiB,SAAA,EAAW,QAAQ,CAAA,EAAGA,SAAA,CAAKO,wBAAA,CAAQ,GAAA,EAAI,EAAG,SAAA,EAAW,QAAQ,CAAA,EAAG;AAAA,MAC/F,SAAA,EAAW;AAAA,KACZ,CAAA;AAED,IAAA,OAAO,MAAA;AAAA,EACT;AAAA,EAEA,MAAM,MAAA,GAAwB;AAC5B,IAAA,IAAA,CAAK,MAAA,EAAQ,KAAK,+EAA+E,CAAA;AAAA,EACnG;AAAA,EAEA,MAAM,IAAA,CAAK,SAAA,EAAmB,eAAA,EAAyB,UAAA,EAAkD;AACvG,IAAA,MAAM,KAAA,CAAM,IAAA,CAAK,SAAA,EAAW,eAAA,EAAiB,UAAU,CAAA;AAEvD,IAAA,MAAM,SAAA,GAAa,MAAM,IAAA,CAAK,IAAA,CAAK,kBAAkB,CAAC,gBAAgB,CAAC,CAAA,KAAO,CAAA,EAAA,CAAA;AAE9E,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,IAAA,CAAK,MAAA,CAAO,KAAA;AAAA,QACV,CAAA;AAAA,2DAAA;AAAA,OAEF;AACA,MAAAA,wBAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,IAChB;AAAA,EACF;AACF","file":"index.cjs","sourcesContent":["import { readFileSync, writeFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport process from 'node:process';\nimport { fileURLToPath } from 'node:url';\nimport { Deployer } from '@mastra/deployer';\nimport { injectStudioHtmlConfig } from '@mastra/deployer/build';\nimport { copy, move } from 'fs-extra/esm';\nimport type { VcConfig, VcConfigOverrides, VercelDeployerOptions } from './types';\n\nexport class VercelDeployer extends Deployer {\n private vcConfigOverrides: VcConfigOverrides = {};\n private studio: boolean;\n\n constructor(options: VercelDeployerOptions = {}) {\n super({ name: 'VERCEL' });\n this.outputDir = join('.vercel', 'output', 'functions', 'index.func');\n this.studio = options.studio ?? false;\n\n const { studio, ...overrides } = options;\n this.vcConfigOverrides = { ...overrides };\n }\n\n async prepare(outputDirectory: string): Promise<void> {\n await super.prepare(outputDirectory);\n\n this.writeVercelJSON(join(outputDirectory, this.outputDir, '..', '..'));\n\n if (this.studio) {\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = dirname(__filename);\n\n const studioSource = join(dirname(__dirname), 'dist', 'studio');\n const staticDir = join(outputDirectory, '.vercel', 'output', 'static');\n\n try {\n await copy(studioSource, staticDir, { overwrite: true });\n } catch (err) {\n throw new Error(\n `Failed to copy studio assets from \"${studioSource}\" to \"${staticDir}\": ${err instanceof Error ? err.message : err}`,\n );\n }\n\n this.injectStudioConfig(staticDir);\n }\n }\n\n private getEntry(): string {\n return `\nimport { handle } from 'hono/vercel'\nimport { mastra } from '#mastra';\nimport { createHonoServer, getToolExports } from '#server';\nimport { tools } from '#tools';\nimport { scoreTracesWorkflow } from '@mastra/core/evals/scoreTraces';\n\nif (mastra.getStorage()) {\n mastra.__registerInternalWorkflow(scoreTracesWorkflow);\n}\n\nconst app = await createHonoServer(mastra, { tools: getToolExports(tools) });\n\nexport const GET = handle(app);\nexport const POST = handle(app);\nexport const PUT = handle(app);\nexport const DELETE = handle(app);\nexport const PATCH = handle(app);\nexport const OPTIONS = handle(app);\nexport const HEAD = handle(app);\n`;\n }\n\n private injectStudioConfig(staticDir: string) {\n const indexPath = join(staticDir, 'index.html');\n let html = readFileSync(indexPath, 'utf-8');\n\n /**\n * Use window.location expressions so the SPA constructs the correct same-origin endpoint.\n * Port uses a ternary: window.location.port is '' for default ports (80/443), and the SPA falls back to 4111 for empty strings, so we return the default port explicitly instead.\n */\n html = injectStudioHtmlConfig(html, {\n host: `window.location.hostname`,\n port: `(window.location.port || (window.location.protocol === 'https:' ? '443' : '80'))`,\n protocol: `window.location.protocol.replace(':', '')`,\n apiPrefix: `'/api'`,\n basePath: '',\n hideCloudCta: `'true'`,\n cloudApiEndpoint: `''`,\n experimentalFeatures: `'false'`,\n telemetryDisabled: `''`,\n requestContextPresets: `''`,\n });\n\n writeFileSync(indexPath, html);\n }\n\n private writeVercelJSON(outputDirectory: string) {\n const routes = this.studio\n ? [\n { src: '/api/(.*)', dest: '/' },\n { src: '/health', dest: '/' },\n { handle: 'filesystem' as const },\n { src: '/(.*)', dest: '/index.html', check: true },\n ]\n : [{ src: '/(.*)', dest: '/' }];\n\n writeFileSync(join(outputDirectory, 'config.json'), JSON.stringify({ version: 3, routes }));\n }\n\n async bundle(\n entryFile: string,\n outputDirectory: string,\n { toolsPaths, projectRoot }: { toolsPaths: (string | string[])[]; projectRoot: string },\n ): Promise<void> {\n const result = await this._bundle(\n this.getEntry(),\n entryFile,\n { outputDirectory, projectRoot },\n toolsPaths,\n join(outputDirectory, this.outputDir),\n );\n\n const nodeVersion = process.version?.split('.')?.[0]?.replace('v', '') ?? '22';\n\n const vcConfig: VcConfig = {\n handler: 'index.mjs',\n launcherType: 'Nodejs',\n runtime: `nodejs${nodeVersion}.x`,\n shouldAddHelpers: true,\n };\n\n // Merge supported overrides\n const { maxDuration, memory, regions } = this.vcConfigOverrides;\n if (typeof maxDuration === 'number') vcConfig.maxDuration = maxDuration;\n if (typeof memory === 'number') vcConfig.memory = memory;\n if (Array.isArray(regions) && regions.length > 0) vcConfig.regions = regions;\n\n writeFileSync(join(outputDirectory, this.outputDir, '.vc-config.json'), JSON.stringify(vcConfig, null, 2));\n\n await move(join(outputDirectory, '.vercel', 'output'), join(process.cwd(), '.vercel', 'output'), {\n overwrite: true,\n });\n\n return result;\n }\n\n async deploy(): Promise<void> {\n this.logger?.info('Deploying to Vercel is deprecated. Please use the Vercel dashboard to deploy.');\n }\n\n async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {\n await super.lint(entryFile, outputDirectory, toolsPaths);\n\n const hasLibsql = (await this.deps.checkDependencies(['@mastra/libsql'])) === `ok`;\n\n if (hasLibsql) {\n this.logger.error(\n `Vercel Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency. \n\t\t\t\tUse other Mastra Storage options instead e.g @mastra/pg`,\n );\n process.exit(1);\n }\n }\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { Deployer } from '@mastra/deployer';
|
|
|
2
2
|
import type { VercelDeployerOptions } from './types.js';
|
|
3
3
|
export declare class VercelDeployer extends Deployer {
|
|
4
4
|
private vcConfigOverrides;
|
|
5
|
+
private studio;
|
|
5
6
|
constructor(options?: VercelDeployerOptions);
|
|
6
7
|
prepare(outputDirectory: string): Promise<void>;
|
|
7
8
|
private getEntry;
|
|
9
|
+
private injectStudioConfig;
|
|
8
10
|
private writeVercelJSON;
|
|
9
11
|
bundle(entryFile: string, outputDirectory: string, { toolsPaths, projectRoot }: {
|
|
10
12
|
toolsPaths: (string | string[])[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAA+B,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAElF,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,OAAO,CAAC,iBAAiB,CAAyB;IAClD,OAAO,CAAC,MAAM,CAAU;gBAEZ,OAAO,GAAE,qBAA0B;IASzC,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBrD,OAAO,CAAC,QAAQ;IAwBhB,OAAO,CAAC,kBAAkB;IAwB1B,OAAO,CAAC,eAAe;IAajB,MAAM,CACV,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,EACvB,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE;QAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,GACtF,OAAO,CAAC,IAAI,CAAC;IAiCV,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAazG"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,39 @@
|
|
|
1
|
-
import { writeFileSync } from 'fs';
|
|
2
|
-
import { join } from 'path';
|
|
1
|
+
import { readFileSync, writeFileSync } from 'fs';
|
|
2
|
+
import { join, dirname } from 'path';
|
|
3
3
|
import process from 'process';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
4
5
|
import { Deployer } from '@mastra/deployer';
|
|
5
|
-
import {
|
|
6
|
+
import { injectStudioHtmlConfig } from '@mastra/deployer/build';
|
|
7
|
+
import { copy, move } from 'fs-extra/esm';
|
|
6
8
|
|
|
7
9
|
// src/index.ts
|
|
8
10
|
var VercelDeployer = class extends Deployer {
|
|
9
11
|
vcConfigOverrides = {};
|
|
12
|
+
studio;
|
|
10
13
|
constructor(options = {}) {
|
|
11
14
|
super({ name: "VERCEL" });
|
|
12
15
|
this.outputDir = join(".vercel", "output", "functions", "index.func");
|
|
13
|
-
this.
|
|
16
|
+
this.studio = options.studio ?? false;
|
|
17
|
+
const { studio, ...overrides } = options;
|
|
18
|
+
this.vcConfigOverrides = { ...overrides };
|
|
14
19
|
}
|
|
15
20
|
async prepare(outputDirectory) {
|
|
16
21
|
await super.prepare(outputDirectory);
|
|
17
22
|
this.writeVercelJSON(join(outputDirectory, this.outputDir, "..", ".."));
|
|
23
|
+
if (this.studio) {
|
|
24
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
25
|
+
const __dirname = dirname(__filename);
|
|
26
|
+
const studioSource = join(dirname(__dirname), "dist", "studio");
|
|
27
|
+
const staticDir = join(outputDirectory, ".vercel", "output", "static");
|
|
28
|
+
try {
|
|
29
|
+
await copy(studioSource, staticDir, { overwrite: true });
|
|
30
|
+
} catch (err) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
`Failed to copy studio assets from "${studioSource}" to "${staticDir}": ${err instanceof Error ? err.message : err}`
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
this.injectStudioConfig(staticDir);
|
|
36
|
+
}
|
|
18
37
|
}
|
|
19
38
|
getEntry() {
|
|
20
39
|
return `
|
|
@@ -39,19 +58,31 @@ export const OPTIONS = handle(app);
|
|
|
39
58
|
export const HEAD = handle(app);
|
|
40
59
|
`;
|
|
41
60
|
}
|
|
61
|
+
injectStudioConfig(staticDir) {
|
|
62
|
+
const indexPath = join(staticDir, "index.html");
|
|
63
|
+
let html = readFileSync(indexPath, "utf-8");
|
|
64
|
+
html = injectStudioHtmlConfig(html, {
|
|
65
|
+
host: `window.location.hostname`,
|
|
66
|
+
port: `(window.location.port || (window.location.protocol === 'https:' ? '443' : '80'))`,
|
|
67
|
+
protocol: `window.location.protocol.replace(':', '')`,
|
|
68
|
+
apiPrefix: `'/api'`,
|
|
69
|
+
basePath: "",
|
|
70
|
+
hideCloudCta: `'true'`,
|
|
71
|
+
cloudApiEndpoint: `''`,
|
|
72
|
+
experimentalFeatures: `'false'`,
|
|
73
|
+
telemetryDisabled: `''`,
|
|
74
|
+
requestContextPresets: `''`
|
|
75
|
+
});
|
|
76
|
+
writeFileSync(indexPath, html);
|
|
77
|
+
}
|
|
42
78
|
writeVercelJSON(outputDirectory) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
dest: "/"
|
|
51
|
-
}
|
|
52
|
-
]
|
|
53
|
-
})
|
|
54
|
-
);
|
|
79
|
+
const routes = this.studio ? [
|
|
80
|
+
{ src: "/api/(.*)", dest: "/" },
|
|
81
|
+
{ src: "/health", dest: "/" },
|
|
82
|
+
{ handle: "filesystem" },
|
|
83
|
+
{ src: "/(.*)", dest: "/index.html", check: true }
|
|
84
|
+
] : [{ src: "/(.*)", dest: "/" }];
|
|
85
|
+
writeFileSync(join(outputDirectory, "config.json"), JSON.stringify({ version: 3, routes }));
|
|
55
86
|
}
|
|
56
87
|
async bundle(entryFile, outputDirectory, { toolsPaths, projectRoot }) {
|
|
57
88
|
const result = await this._bundle(
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AASO,IAAM,cAAA,GAAN,cAA6B,QAAA,CAAS;AAAA,EACnC,oBAAuC,EAAC;AAAA,EACxC,MAAA;AAAA,EAER,WAAA,CAAY,OAAA,GAAiC,EAAC,EAAG;AAC/C,IAAA,KAAA,CAAM,EAAE,IAAA,EAAM,QAAA,EAAU,CAAA;AACxB,IAAA,IAAA,CAAK,SAAA,GAAY,IAAA,CAAK,SAAA,EAAW,QAAA,EAAU,aAAa,YAAY,CAAA;AACpE,IAAA,IAAA,CAAK,MAAA,GAAS,QAAQ,MAAA,IAAU,KAAA;AAEhC,IAAA,MAAM,EAAE,MAAA,EAAQ,GAAG,SAAA,EAAU,GAAI,OAAA;AACjC,IAAA,IAAA,CAAK,iBAAA,GAAoB,EAAE,GAAG,SAAA,EAAU;AAAA,EAC1C;AAAA,EAEA,MAAM,QAAQ,eAAA,EAAwC;AACpD,IAAA,MAAM,KAAA,CAAM,QAAQ,eAAe,CAAA;AAEnC,IAAA,IAAA,CAAK,gBAAgB,IAAA,CAAK,eAAA,EAAiB,KAAK,SAAA,EAAW,IAAA,EAAM,IAAI,CAAC,CAAA;AAEtE,IAAA,IAAI,KAAK,MAAA,EAAQ;AACf,MAAA,MAAM,UAAA,GAAa,aAAA,CAAc,MAAA,CAAA,IAAA,CAAY,GAAG,CAAA;AAChD,MAAA,MAAM,SAAA,GAAY,QAAQ,UAAU,C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AgB,CAAC,CAAA,KAAO,CAAA,EAAA,CAAA;AAE9E,IAAA,IAAI,SAAA,EAAW;AACb,MAAA,IAAA,CAAK,MAAA,CAAO,KAAA;AAAA,QACV,CAAA;AAAA,2DAAA;AAAA,OAEF;AACA,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,IAChB;AAAA,EACF;AACF","file":"index.js","sourcesContent":["import { readFileSync, writeFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport process from 'node:process';\nimport { fileURLToPath } from 'node:url';\nimport { Deployer } from '@mastra/deployer';\nimport { injectStudioHtmlConfig } from '@mastra/deployer/build';\nimport { copy, move } from 'fs-extra/esm';\nimport type { VcConfig, VcConfigOverrides, VercelDeployerOptions } from './types';\n\nexport class VercelDeployer extends Deployer {\n private vcConfigOverrides: VcConfigOverrides = {};\n private studio: boolean;\n\n constructor(options: VercelDeployerOptions = {}) {\n super({ name: 'VERCEL' });\n this.outputDir = join('.vercel', 'output', 'functions', 'index.func');\n this.studio = options.studio ?? false;\n\n const { studio, ...overrides } = options;\n this.vcConfigOverrides = { ...overrides };\n }\n\n async prepare(outputDirectory: string): Promise<void> {\n await super.prepare(outputDirectory);\n\n this.writeVercelJSON(join(outputDirectory, this.outputDir, '..', '..'));\n\n if (this.studio) {\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = dirname(__filename);\n\n const studioSource = join(dirname(__dirname), 'dist', 'studio');\n const staticDir = join(outputDirectory, '.vercel', 'output', 'static');\n\n try {\n await copy(studioSource, staticDir, { overwrite: true });\n } catch (err) {\n throw new Error(\n `Failed to copy studio assets from \"${studioSource}\" to \"${staticDir}\": ${err instanceof Error ? err.message : err}`,\n );\n }\n\n this.injectStudioConfig(staticDir);\n }\n }\n\n private getEntry(): string {\n return `\nimport { handle } from 'hono/vercel'\nimport { mastra } from '#mastra';\nimport { createHonoServer, getToolExports } from '#server';\nimport { tools } from '#tools';\nimport { scoreTracesWorkflow } from '@mastra/core/evals/scoreTraces';\n\nif (mastra.getStorage()) {\n mastra.__registerInternalWorkflow(scoreTracesWorkflow);\n}\n\nconst app = await createHonoServer(mastra, { tools: getToolExports(tools) });\n\nexport const GET = handle(app);\nexport const POST = handle(app);\nexport const PUT = handle(app);\nexport const DELETE = handle(app);\nexport const PATCH = handle(app);\nexport const OPTIONS = handle(app);\nexport const HEAD = handle(app);\n`;\n }\n\n private injectStudioConfig(staticDir: string) {\n const indexPath = join(staticDir, 'index.html');\n let html = readFileSync(indexPath, 'utf-8');\n\n /**\n * Use window.location expressions so the SPA constructs the correct same-origin endpoint.\n * Port uses a ternary: window.location.port is '' for default ports (80/443), and the SPA falls back to 4111 for empty strings, so we return the default port explicitly instead.\n */\n html = injectStudioHtmlConfig(html, {\n host: `window.location.hostname`,\n port: `(window.location.port || (window.location.protocol === 'https:' ? '443' : '80'))`,\n protocol: `window.location.protocol.replace(':', '')`,\n apiPrefix: `'/api'`,\n basePath: '',\n hideCloudCta: `'true'`,\n cloudApiEndpoint: `''`,\n experimentalFeatures: `'false'`,\n telemetryDisabled: `''`,\n requestContextPresets: `''`,\n });\n\n writeFileSync(indexPath, html);\n }\n\n private writeVercelJSON(outputDirectory: string) {\n const routes = this.studio\n ? [\n { src: '/api/(.*)', dest: '/' },\n { src: '/health', dest: '/' },\n { handle: 'filesystem' as const },\n { src: '/(.*)', dest: '/index.html', check: true },\n ]\n : [{ src: '/(.*)', dest: '/' }];\n\n writeFileSync(join(outputDirectory, 'config.json'), JSON.stringify({ version: 3, routes }));\n }\n\n async bundle(\n entryFile: string,\n outputDirectory: string,\n { toolsPaths, projectRoot }: { toolsPaths: (string | string[])[]; projectRoot: string },\n ): Promise<void> {\n const result = await this._bundle(\n this.getEntry(),\n entryFile,\n { outputDirectory, projectRoot },\n toolsPaths,\n join(outputDirectory, this.outputDir),\n );\n\n const nodeVersion = process.version?.split('.')?.[0]?.replace('v', '') ?? '22';\n\n const vcConfig: VcConfig = {\n handler: 'index.mjs',\n launcherType: 'Nodejs',\n runtime: `nodejs${nodeVersion}.x`,\n shouldAddHelpers: true,\n };\n\n // Merge supported overrides\n const { maxDuration, memory, regions } = this.vcConfigOverrides;\n if (typeof maxDuration === 'number') vcConfig.maxDuration = maxDuration;\n if (typeof memory === 'number') vcConfig.memory = memory;\n if (Array.isArray(regions) && regions.length > 0) vcConfig.regions = regions;\n\n writeFileSync(join(outputDirectory, this.outputDir, '.vc-config.json'), JSON.stringify(vcConfig, null, 2));\n\n await move(join(outputDirectory, '.vercel', 'output'), join(process.cwd(), '.vercel', 'output'), {\n overwrite: true,\n });\n\n return result;\n }\n\n async deploy(): Promise<void> {\n this.logger?.info('Deploying to Vercel is deprecated. Please use the Vercel dashboard to deploy.');\n }\n\n async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {\n await super.lint(entryFile, outputDirectory, toolsPaths);\n\n const hasLibsql = (await this.deps.checkDependencies(['@mastra/libsql'])) === `ok`;\n\n if (hasLibsql) {\n this.logger.error(\n `Vercel Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency. \n\t\t\t\tUse other Mastra Storage options instead e.g @mastra/pg`,\n );\n process.exit(1);\n }\n }\n}\n"]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=Object.freeze(JSON.parse('{"displayName":"ABAP","fileTypes":["abap","ABAP"],"foldingStartMarker":"/\\\\*\\\\*|\\\\{\\\\s*$","foldingStopMarker":"\\\\*\\\\*/|^\\\\s*\\\\}","name":"abap","patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"^\\\\*.*\\\\n?","name":"comment.line.full.abap"},{"captures":{"1":{"name":"punctuation.definition.comment.abap"}},"match":"\\".*\\\\n?","name":"comment.line.partial.abap"},{"match":"(?<![^\\\\s])##.*?(?=([\\\\.:,\\\\s]))","name":"comment.line.pragma.abap"},{"match":"(?i)(?<=(?:\\\\s|~|-))(?<=(?:->|=>))([a-z_\\\\/][a-z_0-9\\\\/]*)(?=\\\\s+(?:=|\\\\+=|-=|\\\\*=|\\\\/=|&&=|&=)\\\\s+)","name":"variable.other.abap"},{"match":"\\\\b[0-9]+(\\\\b|\\\\.|,)","name":"constant.numeric.abap"},{"match":"(?ix)(^|\\\\s+)((PUBLIC|PRIVATE|PROTECTED)\\\\sSECTION)(?=\\\\s+|:|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?<!\\\\\\\\)(\\\\|)(.*?)","beginCaptures":{"1":{"name":"constant.character.escape.abap"}},"end":"(?<!\\\\\\\\)(\\\\||(\\\\\\\\\\\\\\\\\\\\|))","endCaptures":{"1":{"name":"constant.character.escape.abap"}},"name":"string.interpolated.abap","patterns":[{"match":"({ )|( })","name":"constant.character.escape"},{"match":"\\\\\\\\\\\\|","name":"constant.character.escape.abap"},{"match":"(?ix)(?<=\\\\s)(align|alpha|case|country|currency|date|decimals|exponent|number|pad|sign|style|time|timestamp|timezone|width|xsd|zero)(?=\\\\s\\\\=)","name":"entity.name.property.stringtemplate.abap"},{"match":"(?ix)(?<=\\\\=\\\\s)(center|engineering|environment|in|iso|left|leftplus|leftspace|lower|no|out|raw|right|rightplus|rightspace|scale_preserving|scale_preserving_scientific|scientific|scientific_with_leading_zero|sign_as_postfix|simple|space|upper|user|yes)(?=\\\\s)","name":"entity.value.property.stringtemplate.abap"}]},{"begin":"\'","end":"\'","name":"string.quoted.single.abap","patterns":[{"match":"\'\'","name":"constant.character.escape.abap"}]},{"begin":"`","end":"`","name":"string.quoted.single.abap","patterns":[{"match":"``","name":"constant.character.escape.abap"}]},{"begin":"(?i)^\\\\s*(class)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.block.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","name":"meta.block.begin.implementation.abap","patterns":[{"match":"(?ix)(^|\\\\s+)(definition|implementation|public|inheriting\\\\s+from|final|deferred|abstract|shared\\\\s+memory\\\\s+enabled|(global|local)*\\\\s*friends|(create\\\\s+(public|protected|private))|for\\\\s+behavior\\\\s+of|for\\\\s+testing|risk\\\\s+level\\\\s+(critical|dangerous|harmless))|duration\\\\s(short|medium|long)(?=\\\\s+|\\\\.)","name":"storage.modifier.class.abap"},{"begin":"(?=[A-Za-z_][A-Za-z0-9_]*)","contentName":"entity.name.type.block.abap","end":"(?![A-Za-z0-9_])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?ix)^\\\\s*(method)\\\\s(?:([a-z_\\\\/][a-z_0-9\\\\/]*)~)?([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"},"3":{"name":"entity.name.function.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?ix)(?<=^|\\\\s)(BY\\\\s+DATABASE(\\\\s+PROCEDURE|\\\\s+FUNCTION|\\\\s+GRAPH\\\\s+WORKSPACE)|BY\\\\s+KERNEL\\\\s+MODULE)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?ix)(?<=^|\\\\s)(FOR\\\\s+(HDB|LLANG))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?ix)(?<=\\\\s)(OPTIONS\\\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\\\s+SYNTAX\\\\s+ERRORS))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"match":"(?ix)(?<=^|\\\\s)(LANGUAGE\\\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"},{"captures":{"1":{"name":"storage.modifier.method.abap"}},"match":"(?ix)(?<=\\\\s)(USING)\\\\s+([a-z_\\\\/][a-z_0-9\\\\/=\\\\>]*)+(?=\\\\s+|\\\\.)"},{"begin":"(?=[A-Za-z_][A-Za-z0-9_]*)","end":"(?![A-Za-z0-9_])","patterns":[{"include":"#generic_names"}]}]},{"begin":"(?ix)^\\\\s*(INTERFACE)\\\\s([a-z_\\\\/][a-z_0-9\\\\/]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?ix)(?<=^|\\\\s)(DEFERRED|PUBLIC)(?=\\\\s+|\\\\.)","name":"storage.modifier.method.abap"}]},{"begin":"(?ix)^\\\\s*(FORM)\\\\s([a-z_\\\\/][a-z_0-9\\\\/\\\\-\\\\?]*)","beginCaptures":{"1":{"name":"storage.type.block.abap"},"2":{"name":"entity.name.type.abap"}},"end":"\\\\s*\\\\.\\\\s*\\\\n?","patterns":[{"match":"(?ix)(?<=^|\\\\s)(USING|TABLES|CHANGING|RAISING|IMPLEMENTATION|DEFINITION)(?=\\\\s+|\\\\.)","name":"storage.modifier.form.abap"},{"include":"#abaptypes"},{"include":"#keywords_followed_by_braces"}]},{"match":"(?i)(endclass|endmethod|endform|endinterface)","name":"storage.type.block.end.abap"},{"match":"(?i)(<[A-Za-z_][A-Za-z0-9_]*>)","name":"variable.other.field.symbol.abap"},{"include":"#keywords"},{"include":"#abap_constants"},{"include":"#reserved_names"},{"include":"#operators"},{"include":"#builtin_functions"},{"include":"#abaptypes"},{"include":"#system_fields"},{"include":"#sql_functions"},{"include":"#sql_types"}],"repository":{"abap_constants":{"match":"(?ix)(?<=\\\\s)(initial|null|@?space|@?abap_true|@?abap_false|@?abap_undefined|table_line|\\n %_final|%_hints|%_predefined|col_background|col_group|col_heading|col_key|col_negative|col_normal|col_positive|col_total|\\n\\t\\t\\t\\tadabas|as400|db2|db6|hdb|oracle|sybase|mssqlnt|pos_low|pos_high)(?=\\\\s|\\\\.|,)","name":"constant.language.abap"},"abaptypes":{"patterns":[{"match":"(?ix)\\\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|decfloat|decfloat16|decfloat34|utclong|simple|int8|c|n|i|p|f|d|t|x)(?=\\\\s|\\\\.|,)","name":"support.type.abap"},{"match":"(?ix)\\\\s(TYPE|REF|TO|LIKE|LINE|OF|STRUCTURE|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\\\s|\\\\.|,)","name":"keyword.control.simple.abap"}]},"arithmetic_operator":{"match":"(?i)(?<=\\\\s)(\\\\+|\\\\-|\\\\*|\\\\*\\\\*|\\\\/|%|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\\\s)","name":"keyword.control.simple.abap"},"builtin_functions":{"match":"(?ix)(?<=\\\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\\\()","name":"entity.name.function.builtin.abap"},"comparison_operator":{"match":"(?i)(?<=\\\\s)(<|>|<\\\\=|>\\\\=|\\\\=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|o|z|m)(?=\\\\s)","name":"keyword.control.simple.abap"},"control_keywords":{"match":"(?ix)(^|\\\\s)(\\n\\t at|case|catch|continue|do|elseif|else|endat|endcase|endcatch|enddo|endif|\\n\\t endloop|endon|endtry|endwhile|if|loop|on|raise|try|while)(?=\\\\s|\\\\.|:)","name":"keyword.control.flow.abap"},"generic_names":{"match":"[A-Za-z_][A-Za-z0-9_]*"},"keywords":{"patterns":[{"include":"#main_keywords"},{"include":"#text_symbols"},{"include":"#control_keywords"},{"include":"#keywords_followed_by_braces"}]},"keywords_followed_by_braces":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"variable.other.abap"}},"match":"(?ix)\\\\b(data|value|field-symbol|final|reference|resumable)\\\\((<?[a-z_\\\\/][a-z_0-9\\\\/]*>?)\\\\)"},"logical_operator":{"match":"(?i)(?<=\\\\s)(not|or|and)(?=\\\\s)","name":"keyword.control.simple.abap"},"main_keywords":{"match":"(?ix)(?<=^|\\\\s)(\\nabap-source|\\nabstract|\\naccept|\\naccepting|\\naccess|\\naccording|\\naction|\\nactivation|\\nactual|\\nadd|\\nadd-corresponding|\\nadjacent|\\nafter|\\nalias|\\naliases|\\nall|\\nallocate|\\namdp|\\nanalysis|\\nanalyzer|\\nappend|\\nappending|\\napplication|\\narchive|\\narea|\\narithmetic|\\nas|\\nascending|\\nassert|\\nassign|\\nassigned|\\nassigning|\\nassociation|\\nasynchronous|\\nat|\\nattributes|\\nauthority|\\nauthority-check|\\nauthorization|\\nauto|\\nback|\\nbackground|\\nbackward|\\nbadi|\\nbase|\\nbefore|\\nbegin|\\nbehavior|\\nbetween|\\nbinary|\\nbit|\\nblank|\\nblanks|\\nblock|\\nblocks|\\nbound|\\nboundaries|\\nbounds|\\nboxed|\\nbreak|\\nbreak-point|\\nbuffer|\\nby|\\nbypassing|\\nbyte|\\nbyte-order|\\ncall|\\ncalling|\\ncast|\\ncasting|\\ncds|\\ncentered|\\nchange|\\nchanging|\\nchannels|\\nchar-to-hex|\\ncharacter|\\ncheck|\\ncheckbox|\\ncid|\\ncircular|\\nclass|\\nclass-data|\\nclass-events|\\nclass-method|\\nclass-methods|\\nclass-pool|\\ncleanup|\\nclear|\\nclient|\\nclients|\\nclock|\\nclone|\\nclose|\\ncnt|\\ncode|\\ncollect|\\ncolor|\\ncolumn|\\ncomment|\\ncomments|\\ncommit|\\ncommon|\\ncommunication|\\ncomparing|\\ncomponent|\\ncomponents|\\ncompression|\\ncompute|\\nconcatenate|\\ncond|\\ncondense|\\ncondition|\\nconnection|\\nconstant|\\nconstants|\\ncontext|\\ncontexts|\\ncontrol|\\ncontrols|\\nconv|\\nconversion|\\nconvert|\\ncopy|\\ncorresponding|\\ncount|\\ncountry|\\ncover|\\ncreate|\\ncurrency|\\ncurrent|\\ncursor|\\ncustomer-function|\\ndata|\\ndatabase|\\ndatainfo|\\ndataset|\\ndate|\\ndaylight|\\nddl|\\ndeallocate|\\ndecimals|\\ndeclarations|\\ndeep|\\ndefault|\\ndeferred|\\ndefine|\\ndelete|\\ndeleting|\\ndemand|\\ndescending|\\ndescribe|\\ndestination|\\ndetail|\\ndetermine|\\ndialog|\\ndid|\\ndirectory|\\ndiscarding|\\ndisplay|\\ndisplay-mode|\\ndistance|\\ndistinct|\\ndivide|\\ndivide-corresponding|\\ndummy|\\nduplicate|\\nduplicates|\\nduration|\\nduring|\\ndynpro|\\nedit|\\neditor-call|\\nempty|\\nenabled|\\nenabling|\\nencoding|\\nend|\\nend-enhancement-section|\\nend-of-definition|\\nend-of-page|\\nend-of-selection|\\nend-test-injection|\\nend-test-seam|\\nendenhancement|\\nendexec|\\nendfunction|\\nendian|\\nending|\\nendmodule|\\nendprovide|\\nendselect|\\nendwith|\\nenhancement|\\nenhancement-point|\\nenhancement-section|\\nenhancements|\\nentities|\\nentity|\\nentries|\\nentry|\\nenum|\\nequiv|\\nerrors|\\nescape|\\nescaping|\\nevent|\\nevents|\\nexact|\\nexcept|\\nexception|\\nexception-table|\\nexceptions|\\nexcluding|\\nexec|\\nexecute|\\nexists|\\nexit|\\nexit-command|\\nexpanding|\\nexplicit|\\nexponent|\\nexport|\\nexporting|\\nextended|\\nextension|\\nextract|\\nfail|\\nfailed|\\nfeatures|\\nfetch|\\nfield|\\nfield-groups|\\nfield-symbols|\\nfields|\\nfile|\\nfill|\\nfilter|\\nfilters|\\nfinal|\\nfind|\\nfirst|\\nfirst-line|\\nfixed-point|\\nflush|\\nfollowing|\\nfor|\\nformat|\\nforward|\\nfound|\\nframe|\\nframes|\\nfree|\\nfrom|\\nfull|\\nfunction|\\nfunction-pool|\\ngenerate|\\nget|\\ngiving|\\ngraph|\\ngroup|\\ngroups|\\nhandle|\\nhandler|\\nhashed|\\nhaving|\\nheader|\\nheaders|\\nheading|\\nhelp-id|\\nhelp-request|\\nhide|\\nhint|\\nhold|\\nhotspot|\\nicon|\\nid|\\nidentification|\\nidentifier|\\nignore|\\nignoring|\\nimmediately|\\nimplemented|\\nimplicit|\\nimport|\\nimporting|\\nin|\\ninactive|\\nincl|\\ninclude|\\nincludes|\\nincluding|\\nincrement|\\nindex|\\nindex-line|\\nindicators|\\ninfotypes|\\ninheriting|\\ninit|\\ninitial|\\ninitialization|\\ninner|\\ninput|\\ninsert|\\ninstance|\\ninstances|\\nintensified|\\ninterface|\\ninterface-pool|\\ninterfaces|\\ninternal|\\nintervals|\\ninto|\\ninverse|\\ninverted-date|\\nis|\\njob|\\njoin|\\nkeep|\\nkeeping|\\nkernel|\\nkey|\\nkeys|\\nkeywords|\\nkind|\\nlanguage|\\nlast|\\nlate|\\nlayout|\\nleading|\\nleave|\\nleft|\\nleft-justified|\\nlegacy|\\nlength|\\nlet|\\nlevel|\\nlevels|\\nlike|\\nline|\\nline-count|\\nline-selection|\\nline-size|\\nlinefeed|\\nlines|\\nlink|\\nlist|\\nlist-processing|\\nlistbox|\\nload|\\nload-of-program|\\nlocal|\\nlocale|\\nlock|\\nlocks|\\nlog-point|\\nlogical|\\nlower|\\nmapped|\\nmapping|\\nmargin|\\nmark|\\nmask|\\nmatch|\\nmatchcode|\\nmaximum|\\nmembers|\\nmemory|\\nmesh|\\nmessage|\\nmessage-id|\\nmessages|\\nmessaging|\\nmethod|\\nmethods|\\nmode|\\nmodif|\\nmodifier|\\nmodify|\\nmodule|\\nmove|\\nmove-corresponding|\\nmultiply|\\nmultiply-corresponding|\\nname|\\nnametab|\\nnative|\\nnested|\\nnesting|\\nnew|\\nnew-line|\\nnew-page|\\nnew-section|\\nnext|\\nno-display|\\nno-extension|\\nno-gap|\\nno-gaps|\\nno-grouping|\\nno-heading|\\nno-scrolling|\\nno-sign|\\nno-title|\\nno-zero|\\nnodes|\\nnon-unicode|\\nnon-unique|\\nnumber|\\nobject|\\nobjects|\\nobjmgr|\\nobligatory|\\noccurence|\\noccurences|\\noccurrence|\\noccurrences|\\noccurs|\\nof|\\noffset|\\non|\\nonly|\\nopen|\\noptional|\\noption|\\noptions|\\norder|\\nothers|\\nout|\\nouter|\\noutput|\\noutput-length|\\noverflow|\\noverlay|\\npack|\\npackage|\\npadding|\\npage|\\nparameter|\\nparameter-table|\\nparameters|\\npart|\\npartially|\\npcre|\\nperform|\\nperforming|\\npermissions|\\npf-status|\\nplaces|\\npool|\\nposition|\\npragmas|\\npreceding|\\nprecompiled|\\npreferred|\\npreserving|\\nprimary|\\nprint|\\nprint-control|\\nprivate|\\nprivileged|\\nprocedure|\\nprocess|\\nprogram|\\nproperty|\\nprotected|\\nprovide|\\npush|\\npushbutton|\\nput|\\nquery|\\nqueue-only|\\nqueueonly|\\nquickinfo|\\nradiobutton|\\nraising|\\nrange|\\nranges|\\nread|\\nread-only|\\nreceive|\\nreceived|\\nreceiving|\\nredefinition|\\nreduce|\\nref|\\nreference|\\nrefresh|\\nregex|\\nreject|\\nrenaming|\\nreplace|\\nreplacement|\\nreplacing|\\nreport|\\nreported|\\nrequest|\\nrequested|\\nrequired|\\nreserve|\\nreset|\\nresolution|\\nrespecting|\\nresponse|\\nrestore|\\nresult|\\nresults|\\nresumable|\\nresume|\\nretry|\\nreturn|\\nreturning|\\nright|\\nright-justified|\\nrollback|\\nrows|\\nrp-provide-from-last|\\nrun|\\nsap|\\nsap-spool|\\nsave|\\nsaving|\\nscan|\\nscreen|\\nscroll|\\nscroll-boundary|\\nscrolling|\\nsearch|\\nseconds|\\nsection|\\nselect|\\nselect-options|\\nselection|\\nselection-screen|\\nselection-set|\\nselection-sets|\\nselection-table|\\nselections|\\nsend|\\nseparate|\\nseparated|\\nsession|\\nset|\\nshared|\\nshift|\\nshortdump|\\nshortdump-id|\\nsign|\\nsimple|\\nsimulation|\\nsingle|\\nsize|\\nskip|\\nskipping|\\nsmart|\\nsome|\\nsort|\\nsortable|\\nsorted|\\nsource|\\nspecified|\\nsplit|\\nspool|\\nspots|\\nsql|\\nstable|\\nstamp|\\nstandard|\\nstart-of-selection|\\nstarting|\\nstate|\\nstatement|\\nstatements|\\nstatic|\\nstatics|\\nstatusinfo|\\nstep|\\nstep-loop|\\nstop|\\nstructure|\\nstructures|\\nstyle|\\nsubkey|\\nsubmatches|\\nsubmit|\\nsubroutine|\\nsubscreen|\\nsubstring|\\nsubtract|\\nsubtract-corresponding|\\nsuffix|\\nsum|\\nsummary|\\nsupplied|\\nsupply|\\nsuppress|\\nswitch|\\nsymbol|\\nsyntax-check|\\nsyntax-trace|\\nsystem-call|\\nsystem-exceptions|\\ntab|\\ntabbed|\\ntable|\\ntables|\\ntableview|\\ntabstrip|\\ntarget|\\ntask|\\ntasks|\\ntest|\\ntest-injection|\\ntest-seam|\\ntesting|\\ntext|\\ntextpool|\\nthen|\\nthrow|\\ntime|\\ntimes|\\ntitle|\\ntitlebar|\\nto|\\ntokens|\\ntop-lines|\\ntop-of-page|\\ntrace-file|\\ntrace-table|\\ntrailing|\\ntransaction|\\ntransfer|\\ntransformation|\\ntranslate|\\ntransporting|\\ntrmac|\\ntruncate|\\ntruncation|\\ntype|\\ntype-pool|\\ntype-pools|\\ntypes|\\nuline|\\nunassign|\\nunbounded|\\nunder|\\nunicode|\\nunion|\\nunique|\\nunit|\\nunix|\\nunpack|\\nuntil|\\nunwind|\\nup|\\nupdate|\\nupper|\\nuser|\\nuser-command|\\nusing|\\nutf-8|\\nuuid|\\nvalid|\\nvalidate|\\nvalue|\\nvalue-request|\\nvalues|\\nvary|\\nvarying|\\nversion|\\nvia|\\nvisible|\\nwait|\\nwhen|\\nwhere|\\nwindow|\\nwindows|\\nwith|\\nwith-heading|\\nwith-title|\\nwithout|\\nword|\\nwork|\\nworkspace|\\nwrite|\\nxml|\\nzone\\n\\t\\t \\t)(?=\\\\s|\\\\.|:|,)","name":"keyword.control.simple.abap"},"operators":{"patterns":[{"include":"#other_operator"},{"include":"#arithmetic_operator"},{"include":"#comparison_operator"},{"include":"#logical_operator"}]},"other_operator":{"match":"(?<=\\\\s)(&&|&|\\\\?=|\\\\+=|-=|\\\\/=|\\\\*=|&&=|&=)(?=\\\\s)","name":"keyword.control.simple.abap"},"reserved_names":{"match":"(?ix)(?<=\\\\s)(me|super)(?=\\\\s|\\\\.|,|->)","name":"constant.language.abap"},"sql_functions":{"match":"(?ix)(?<=\\\\s)(\\nabap_system_timezone|\\nabap_user_timezone|\\nabs|\\nadd_days|\\nadd_months|\\nallow_precision_loss|\\nas_geo_json|\\navg|\\nbintohex|\\ncast|\\nceil|\\ncoalesce|\\nconcat_with_space|\\nconcat|\\ncorr_spearman|\\ncorr|\\ncount|\\ncurrency_conversion|\\ndatn_add_days|\\ndatn_add_months|\\ndatn_days_between|\\ndats_add_days|\\ndats_add_months|\\ndats_days_between|\\ndats_from_datn|\\ndats_is_valid|\\ndats_tims_to_tstmp|\\ndats_to_datn|\\ndayname|\\ndays_between|\\ndense_rank|\\ndivision|\\ndiv|\\nextract_day|\\nextract_hour|\\nextract_minute|\\nextract_month|\\nextract_second|\\nextract_year|\\nfirst_value|\\nfloor|\\ngrouping|\\nhextobin|\\ninitcap|\\ninstr|\\nis_valid|\\nlag|\\nlast_value|\\nlead|\\nleft|\\nlength|\\nlike_regexpr|\\nlocate_regexpr_after|\\nlocate_regexpr|\\nlocate|\\nlower|\\nlpad|\\nltrim|\\nmax|\\nmedian|\\nmin|\\nmod|\\nmonthname|\\nntile|\\noccurrences_regexpr|\\nover|\\nproduct|\\nrank|\\nreplace_regexpr|\\nreplace|\\nrigth|\\nround|\\nrow_number|\\nrpad|\\nrtrim|\\nstddev|\\nstring_agg|\\nsubstring_regexpr|\\nsubstring|\\nsum|\\ntims_from_timn|\\ntims_is_valid|\\ntims_to_timn|\\nto_blob|\\nto_clob|\\ntstmp_add_seconds|\\ntstmp_current_utctimestamp|\\ntstmp_is_valid|\\ntstmp_seconds_between|\\ntstmp_to_dats|\\ntstmp_to_dst|\\ntstmp_to_tims|\\ntstmpl_from_utcl|\\ntstmpl_to_utcl|\\nunit_conversion|\\nupper|\\nutcl_add_seconds|\\nutcl_current|\\nutcl_seconds_between|\\nuuid|\\nvar|\\nweekday\\n )(?=\\\\()","name":"entity.name.function.sql.abap"},"sql_types":{"match":"(?ix)(?<=\\\\s)(char|clnt|cuky|curr|datn|dats|dec|decfloat16|decfloat34|fltp|int1|int2|int4|int8|lang|numc|quan|raw|sstring|timn|tims|unit|utclong)(?=\\\\s|\\\\(|\\\\))","name":"entity.name.type.sql.abap"},"system_fields":{"captures":{"1":{"name":"variable.language.abap"},"2":{"name":"variable.language.abap"}},"match":"(?ix)\\\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\\\.|\\\\s)"},"text_symbols":{"captures":{"1":{"name":"keyword.control.simple.abap"},"2":{"name":"constant.numeric.abap"}},"match":"(?ix)(?<=^|\\\\s)(text)-([A-Z0-9]{1,3})(?=\\\\s|\\\\.|:|,)"}},"scopeName":"source.abap"}')),e=[n];export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse(`{"displayName":"ActionScript","fileTypes":["as"],"name":"actionscript-3","patterns":[{"include":"#comments"},{"include":"#package"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"},{"include":"#import"},{"include":"#mxml"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"}],"repository":{"arithmetic_operators":{"match":"(\\\\+|\\\\-|/|%|(?<!:)\\\\*)","name":"keyword.operator.actionscript.3"},"array_access_operators":{"match":"(\\\\[|\\\\])","name":"keyword.operator.actionscript.3"},"class":{"begin":"(^|\\\\s+|;)(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(\\\\b(internal|public)\\\\b\\\\s+)?(\\\\b(dynamic|final|abstract)\\\\b\\\\s+)?(?=\\\\bclass\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"}},"end":"\\\\}","name":"meta.class.actionscript.3","patterns":[{"include":"#class_declaration"},{"include":"#metadata"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_operators"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"},{"include":"#object_literal"}]},"class_declaration":{"begin":"\\\\b(class)\\\\b\\\\s+([\\\\.\\\\w]+|\\\\*)","beginCaptures":{"1":{"name":"storage.type.class.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#implements"},{"include":"#comments"}]},"code_block":{"begin":"\\\\{","end":"\\\\}","name":"meta.code_block.actionscript.3","patterns":[{"include":"#code_block"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#variable_declaration"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#logical_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#control_keywords"},{"include":"#other_keywords"},{"include":"#use_namespace"},{"include":"#functions"},{"include":"#import"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","end":"\\\\*/","name":"comment.block.documentation.actionscript.3","patterns":[{"match":"@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\\\b","name":"keyword.other.documentation.actionscript.3.asdoc"}]},{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.actionscript.3"},{"match":"//.*","name":"comment.line.actionscript.3"}]},"control_keywords":{"match":"\\\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\\\b","name":"keyword.control.actionscript.3"},"dynamic_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"match":"(?<=:)\\\\s*(\\\\*)"},"escapes":{"match":"\\\\\\\\(x\\\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)","name":"constant.character.escape.actionscript.3"},"extends":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(extends)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*","name":"meta.extends.actionscript.3"},"function_arguments":{"begin":"\\\\(","end":"\\\\)","name":"meta.function_arguments.actionscript.3","patterns":[{"include":"#parameters"},{"include":"#comments"}]},"functions":{"begin":"\\\\b(function)\\\\b(?:\\\\s+\\\\b(get|set)\\\\b\\\\s+)?\\\\s*([a-zA-Z0-9_\\\\$]+\\\\b)?","beginCaptures":{"1":{"name":"storage.type.function.actionscript.3"},"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"entity.name.function.actionscript.3"}},"end":"($|;|(?=\\\\{))","name":"meta.function.actionscript.3","patterns":[{"include":"#function_arguments"},{"include":"#return_type"},{"include":"#comments"}]},"guess_constant":{"captures":{"1":{"name":"constant.other.actionscript.3"}},"comment":"Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.","match":"\\\\b([A-Z\\\\$][A-Z0-9_]+)\\\\b"},"guess_type":{"captures":{"1":{"name":"support.type.actionscript.3"}},"comment":"Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.","match":"\\\\b((?:[A-Za-z0-9_\\\\$]+\\\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_\\\\$]*)\\\\b"},"implements":{"captures":{"1":{"name":"keyword.other.actionscript.3"},"2":{"name":"entity.other.inherited-class.actionscript.3"},"3":{"name":"entity.other.inherited-class.actionscript.3"}},"match":"\\\\b(implements)\\\\b\\\\s+([\\\\.\\\\w]+)\\\\s*(?:,\\\\s*([\\\\.\\\\w]+))*\\\\s*","name":"meta.implements.actionscript.3"},"import":{"captures":{"2":{"name":"keyword.control.import.actionscript.3"},"3":{"name":"support.type.actionscript.3"}},"match":"(^|\\\\s+|;)\\\\b(import)\\\\b\\\\s+([A-Za-z0-9\\\\$_\\\\.]+(?:\\\\.\\\\*)?)\\\\s*(?=;|$)","name":"meta.import.actionscript.3"},"interface":{"begin":"(^|\\\\s+|;)(\\\\b(internal|public)\\\\b\\\\s+)?(?=\\\\binterface\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"}},"end":"\\\\}","name":"meta.interface.actionscript.3","patterns":[{"include":"#interface_declaration"},{"include":"#metadata"},{"include":"#functions"},{"include":"#comments"}]},"interface_declaration":{"begin":"\\\\b(interface)\\\\b\\\\s+([\\\\.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.interface.actionscript.3"},"2":{"name":"entity.name.class.actionscript.3"}},"end":"\\\\{","name":"meta.class_declaration.actionscript.3","patterns":[{"include":"#extends"},{"include":"#comments"}]},"language_constants":{"match":"\\\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\\\b","name":"constant.language.actionscript.3"},"language_variables":{"match":"\\\\b(super|this|arguments)\\\\b","name":"variable.language.actionscript.3"},"logical_operators":{"match":"(&|<|~|\\\\||>|\\\\^|!|\\\\?)","name":"keyword.operator.actionscript.3"},"metadata":{"begin":"\\\\[\\\\s*\\\\b(\\\\w+)\\\\b","beginCaptures":{"1":{"name":"keyword.other.actionscript.3"}},"end":"\\\\]","name":"meta.metadata_info.actionscript.3","patterns":[{"include":"#metadata_info"}]},"metadata_info":{"begin":"\\\\(","end":"\\\\)","patterns":[{"include":"#strings"},{"captures":{"1":{"name":"variable.parameter.actionscript.3"},"2":{"name":"keyword.operator.actionscript.3"}},"match":"(\\\\w+)\\\\s*(=)"}]},"method":{"begin":"(^|\\\\s+)((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?((\\\\w+)\\\\s+)?(?=\\\\bfunction\\\\b)","beginCaptures":{"3":{"name":"storage.modifier.actionscript.3"},"5":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"storage.modifier.actionscript.3"}},"end":"(?<=(;|\\\\}))","name":"meta.method.actionscript.3","patterns":[{"include":"#functions"},{"include":"#code_block"}]},"mxml":{"begin":"<!\\\\[CDATA\\\\[","end":"\\\\]\\\\]>","name":"meta.cdata.actionscript.3","patterns":[{"include":"#comments"},{"include":"#import"},{"include":"#metadata"},{"include":"#class"},{"include":"#namespace_declaration"},{"include":"#use_namespace"},{"include":"#class_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#other_keywords"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#other_operators"},{"include":"#arithmetic_operators"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#variable_declaration"}]},"namespace_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"3":{"name":"storage.modifier.actionscript.3"}},"match":"((\\\\w+)\\\\s+)?(namespace)\\\\s+(?:[A-Za-z0-9_\\\\$]+)","name":"meta.namespace_declaration.actionscript.3"},"numbers":{"match":"\\\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))((e|E)(\\\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\\\b","name":"constant.numeric.actionscript.3"},"object_literal":{"begin":"\\\\{","end":"\\\\}","name":"meta.object_literal.actionscript.3","patterns":[{"include":"#object_literal"},{"include":"#comments"},{"include":"#strings"},{"include":"#regexp"},{"include":"#numbers"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#primitive_functions"},{"include":"#language_constants"},{"include":"#language_variables"},{"include":"#guess_type"},{"include":"#guess_constant"},{"include":"#array_access_operators"},{"include":"#vector_creation_operators"},{"include":"#functions"}]},"other_keywords":{"match":"\\\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\\\b","name":"keyword.other.actionscript.3"},"other_operators":{"match":"(\\\\.|=)","name":"keyword.operator.actionscript.3"},"package":{"begin":"(^|\\\\s+)(package)\\\\b","beginCaptures":{"2":{"name":"keyword.other.actionscript.3"}},"end":"\\\\}","name":"meta.package.actionscript.3","patterns":[{"include":"#package_name"},{"include":"#variable_declaration"},{"include":"#method"},{"include":"#comments"},{"include":"#return_type"},{"include":"#import"},{"include":"#use_namespace"},{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#metadata"},{"include":"#class"},{"include":"#interface"},{"include":"#namespace_declaration"}]},"package_name":{"begin":"(?<=package)\\\\s+([\\\\w\\\\._]*)\\\\b","end":"\\\\{","name":"meta.package_name.actionscript.3"},"parameters":{"begin":"(\\\\.\\\\.\\\\.)?\\\\s*([A-Za-z\\\\_\\\\$][A-Za-z0-9_\\\\$]*)(?:\\\\s*(\\\\:)\\\\s*(?:(?:([A-Za-z\\\\$][A-Za-z0-9_\\\\$]+(?:\\\\.[A-Za-z\\\\$][A-Za-z0-9_\\\\$]+)*)(?:\\\\.<([A-Za-z\\\\$][A-Za-z0-9_\\\\$]+(?:\\\\.[A-Za-z\\\\$][A-Za-z0-9_\\\\$]+)*)>)?)|(\\\\*)))?(?:\\\\s*(=))?","beginCaptures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"variable.parameter.actionscript.3"},"3":{"name":"keyword.operator.actionscript.3"},"4":{"name":"support.type.actionscript.3"},"5":{"name":"support.type.actionscript.3"},"6":{"name":"support.type.actionscript.3"},"7":{"name":"keyword.operator.actionscript.3"}},"end":",|(?=\\\\))","patterns":[{"include":"#strings"},{"include":"#numbers"},{"include":"#language_constants"},{"include":"#comments"},{"include":"#primitive_types"},{"include":"#primitive_error_types"},{"include":"#dynamic_type"},{"include":"#guess_type"},{"include":"#guess_constant"}]},"primitive_error_types":{"captures":{"1":{"name":"support.class.error.actionscript.3"}},"match":"\\\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\\\b"},"primitive_functions":{"captures":{"1":{"name":"support.function.actionscript.3"}},"match":"\\\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\\\s*\\\\()"},"primitive_types":{"captures":{"1":{"name":"support.class.builtin.actionscript.3"}},"match":"\\\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\\\*(?<=a))\\\\b"},"regexp":{"begin":"(?<=[=(:,\\\\[]|^|return|&&|\\\\|\\\\||!)\\\\s*(/)(?![/*+{}?])","end":"$|(/)[igm]*","name":"string.regex.actionscript.3","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.actionscript.3"},{"match":"\\\\[(\\\\\\\\\\\\]|[^\\\\]])*\\\\]","name":"constant.character.class.actionscript.3"}]},"return_type":{"captures":{"1":{"name":"keyword.operator.actionscript.3"},"2":{"name":"support.type.actionscript.3"},"3":{"name":"support.type.actionscript.3"},"4":{"name":"support.type.actionscript.3"}},"match":"(\\\\:)\\\\s*(?:([A-Za-z\\\\$][A-Za-z0-9_\\\\$]+(?:\\\\.[A-Za-z\\\\$][A-Za-z0-9_\\\\$]+)*)(?:\\\\.<([A-Za-z\\\\$][A-Za-z0-9_\\\\$]+(?:\\\\.[A-Za-z\\\\$][A-Za-z0-9_\\\\$]+)*)>)?)|(\\\\*)"},"strings":{"patterns":[{"begin":"@\\"","end":"\\"","name":"string.quoted.verbatim.actionscript.3"},{"begin":"\\"","end":"\\"","name":"string.quoted.double.actionscript.3","patterns":[{"include":"#escapes"}]},{"begin":"'","end":"'","name":"string.quoted.single.actionscript.3","patterns":[{"include":"#escapes"}]}]},"use_namespace":{"captures":{"2":{"name":"keyword.other.actionscript.3"},"3":{"name":"keyword.other.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"}},"match":"(^|\\\\s+|;)(use\\\\s+)?(namespace)\\\\s+(\\\\w+)\\\\s*(;|$)"},"variable_declaration":{"captures":{"2":{"name":"storage.modifier.actionscript.3"},"4":{"name":"storage.modifier.actionscript.3"},"6":{"name":"storage.modifier.actionscript.3"},"7":{"name":"storage.modifier.actionscript.3"},"8":{"name":"keyword.operator.actionscript.3"}},"match":"((static)\\\\s+)?((\\\\w+)\\\\s+)?((static)\\\\s+)?(const|var)\\\\s+(?:[A-Za-z0-9_\\\\$]+)(?:\\\\s*(:))?","name":"meta.variable_declaration.actionscript.3"},"vector_creation_operators":{"match":"(<|>)","name":"keyword.operator.actionscript.3"}},"scopeName":"source.actionscript.3"}`)),t=[e];export{t as default};
|