vibe-splain 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/install.d.ts +1 -0
- package/dist/commands/install.js +78 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +72 -0
- package/dist/mcp/tools/get_file_context.d.ts +19 -0
- package/dist/mcp/tools/get_file_context.js +48 -0
- package/dist/mcp/tools/get_strategic_overview.d.ts +15 -0
- package/dist/mcp/tools/get_strategic_overview.js +45 -0
- package/dist/mcp/tools/get_wild_discoveries.d.ts +15 -0
- package/dist/mcp/tools/get_wild_discoveries.js +29 -0
- package/dist/mcp/tools/inspect_pillar.d.ts +19 -0
- package/dist/mcp/tools/inspect_pillar.js +37 -0
- package/dist/mcp/tools/mark_stale.d.ts +22 -0
- package/dist/mcp/tools/mark_stale.js +51 -0
- package/dist/mcp/tools/scan_project.d.ts +15 -0
- package/dist/mcp/tools/scan_project.js +66 -0
- package/dist/mcp/tools/write_decision_card.d.ts +57 -0
- package/dist/mcp/tools/write_decision_card.js +118 -0
- package/dist/ui/assets/abap-DsBKuouk.js +1 -0
- package/dist/ui/assets/actionscript-3-D_z4Izcz.js +1 -0
- package/dist/ui/assets/ada-727ZlQH0.js +1 -0
- package/dist/ui/assets/andromeeda-C3khCPGq.js +1 -0
- package/dist/ui/assets/angular-html-LfdN0zeE.js +1 -0
- package/dist/ui/assets/angular-ts-CKsD7JZE.js +1 -0
- package/dist/ui/assets/apache-Dn00JSTd.js +1 -0
- package/dist/ui/assets/apex-COJ4H7py.js +1 -0
- package/dist/ui/assets/apl-BBq3IX1j.js +1 -0
- package/dist/ui/assets/applescript-Bu5BbsvL.js +1 -0
- package/dist/ui/assets/ara-7O62HKoU.js +1 -0
- package/dist/ui/assets/arc-Bq1jVAKi.js +1 -0
- package/dist/ui/assets/architectureDiagram-3BPJPVTR-R4fhdlee.js +36 -0
- package/dist/ui/assets/asciidoc-BPT9niGB.js +1 -0
- package/dist/ui/assets/asm-Dhn9LcZ4.js +1 -0
- package/dist/ui/assets/astro-CqkE3fuf.js +1 -0
- package/dist/ui/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/ui/assets/awk-eg146-Ew.js +1 -0
- package/dist/ui/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/dist/ui/assets/ballerina-Du268qiB.js +1 -0
- package/dist/ui/assets/bat-fje9CFhw.js +1 -0
- package/dist/ui/assets/beancount-BwXTMy5W.js +1 -0
- package/dist/ui/assets/berry-3xVqZejG.js +1 -0
- package/dist/ui/assets/bibtex-xW4inM5L.js +1 -0
- package/dist/ui/assets/bicep-DHo0CJ0O.js +1 -0
- package/dist/ui/assets/blade-a8OxSdnT.js +1 -0
- package/dist/ui/assets/blockDiagram-GPEHLZMM-5XkEXQwI.js +132 -0
- package/dist/ui/assets/bsl-Dgyn0ogV.js +1 -0
- package/dist/ui/assets/c-C3t2pwGQ.js +1 -0
- package/dist/ui/assets/c4Diagram-AAUBKEIU-CVMRi7xO.js +10 -0
- package/dist/ui/assets/cadence-DNquZEk8.js +1 -0
- package/dist/ui/assets/cairo--RitsXJZ.js +1 -0
- package/dist/ui/assets/catppuccin-frappe-CD_QflpE.js +1 -0
- package/dist/ui/assets/catppuccin-latte-DRW-0cLl.js +1 -0
- package/dist/ui/assets/catppuccin-macchiato-C-_shW-Y.js +1 -0
- package/dist/ui/assets/catppuccin-mocha-LGGdnPYs.js +1 -0
- package/dist/ui/assets/channel-DskATRfv.js +1 -0
- package/dist/ui/assets/chunk-2J33WTMH-CjoczKe2.js +1 -0
- package/dist/ui/assets/chunk-4BX2VUAB-zlxS7kMe.js +1 -0
- package/dist/ui/assets/chunk-55IACEB6-u-aLoWTA.js +1 -0
- package/dist/ui/assets/chunk-727SXJPM-CPXGcGn3.js +206 -0
- package/dist/ui/assets/chunk-AQP2D5EJ-DSRK_fjR.js +231 -0
- package/dist/ui/assets/chunk-FMBD7UC4-BhHjdiID.js +15 -0
- package/dist/ui/assets/chunk-ND2GUHAM-Dt_b_VFL.js +1 -0
- package/dist/ui/assets/chunk-QZHKN3VN-ljd83veX.js +1 -0
- package/dist/ui/assets/clarity-BHOwM8T6.js +1 -0
- package/dist/ui/assets/classDiagram-4FO5ZUOK-C45wsrAC.js +1 -0
- package/dist/ui/assets/classDiagram-v2-Q7XG4LA2-C45wsrAC.js +1 -0
- package/dist/ui/assets/clojure-DxSadP1t.js +1 -0
- package/dist/ui/assets/cmake-DbXoA79R.js +1 -0
- package/dist/ui/assets/cobol-PTqiYgYu.js +1 -0
- package/dist/ui/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/ui/assets/codeql-sacFqUAJ.js +1 -0
- package/dist/ui/assets/coffee-dyiR41kL.js +1 -0
- package/dist/ui/assets/common-lisp-C7gG9l05.js +1 -0
- package/dist/ui/assets/coq-Dsg_Bt_b.js +1 -0
- package/dist/ui/assets/cose-bilkent-S5V4N54A-B47jq-Qy.js +1 -0
- package/dist/ui/assets/cpp-BksuvNSY.js +1 -0
- package/dist/ui/assets/crystal-DtDmRg-F.js +1 -0
- package/dist/ui/assets/csharp-D9R-vmeu.js +1 -0
- package/dist/ui/assets/css-BPhBrDlE.js +1 -0
- package/dist/ui/assets/csv-B0qRVHPH.js +1 -0
- package/dist/ui/assets/cue-DtFQj3wx.js +1 -0
- package/dist/ui/assets/cypher-m2LEI-9-.js +1 -0
- package/dist/ui/assets/cytoscape.esm-CUqq0XTU.js +331 -0
- package/dist/ui/assets/d-BoXegm-a.js +1 -0
- package/dist/ui/assets/dagre-BM42HDAG-B8S6fvC9.js +4 -0
- package/dist/ui/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/ui/assets/dart-B9wLZaAG.js +1 -0
- package/dist/ui/assets/dax-ClGRhx96.js +1 -0
- package/dist/ui/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/ui/assets/desktop-DEIpsLCJ.js +1 -0
- package/dist/ui/assets/diagram-2AECGRRQ-DdSf8QGx.js +43 -0
- package/dist/ui/assets/diagram-5GNKFQAL-DjNbvgIh.js +10 -0
- package/dist/ui/assets/diagram-KO2AKTUF-C_EbhXEU.js +3 -0
- package/dist/ui/assets/diagram-LMA3HP47-fkQGkC6F.js +24 -0
- package/dist/ui/assets/diagram-OG6HWLK6-ild2cowO.js +24 -0
- package/dist/ui/assets/diff-BgYniUM_.js +1 -0
- package/dist/ui/assets/docker-COcR7UxN.js +1 -0
- package/dist/ui/assets/dotenv-BjQB5zDj.js +1 -0
- package/dist/ui/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/ui/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/ui/assets/dream-maker-C-nORZOA.js +1 -0
- package/dist/ui/assets/edge-D5gP-w-T.js +1 -0
- package/dist/ui/assets/elixir-CLiX3zqd.js +1 -0
- package/dist/ui/assets/elm-CmHSxxaM.js +1 -0
- package/dist/ui/assets/emacs-lisp-BX77sIaO.js +1 -0
- package/dist/ui/assets/erDiagram-TEJ5UH35-Cx3ooJxy.js +85 -0
- package/dist/ui/assets/erb-BYTLMnw6.js +1 -0
- package/dist/ui/assets/erlang-B-DoSBHF.js +1 -0
- package/dist/ui/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/ui/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/ui/assets/fennel-bCA53EVm.js +1 -0
- package/dist/ui/assets/fish-w-ucz2PV.js +1 -0
- package/dist/ui/assets/flowDiagram-I6XJVG4X-BijjyFdb.js +162 -0
- package/dist/ui/assets/fluent-Dayu4EKP.js +1 -0
- package/dist/ui/assets/fortran-fixed-form-TqA4NnZg.js +1 -0
- package/dist/ui/assets/fortran-free-form-DKXYxT9g.js +1 -0
- package/dist/ui/assets/fsharp-XplgxFYe.js +1 -0
- package/dist/ui/assets/ganttDiagram-6RSMTGT7-BYSSlI1j.js +292 -0
- package/dist/ui/assets/gdresource-BHYsBjWJ.js +1 -0
- package/dist/ui/assets/gdscript-DfxzS6Rs.js +1 -0
- package/dist/ui/assets/gdshader-SKMF96pI.js +1 -0
- package/dist/ui/assets/genie-ajMbGru0.js +1 -0
- package/dist/ui/assets/gherkin--30QC5Em.js +1 -0
- package/dist/ui/assets/git-commit-i4q6IMui.js +1 -0
- package/dist/ui/assets/git-rebase-B-v9cOL2.js +1 -0
- package/dist/ui/assets/gitGraphDiagram-PVQCEYII-BeQbA8KU.js +106 -0
- package/dist/ui/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/ui/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/ui/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/ui/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/ui/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/ui/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/ui/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/ui/assets/gleam-B430Bg39.js +1 -0
- package/dist/ui/assets/glimmer-js-D-cwc0-E.js +1 -0
- package/dist/ui/assets/glimmer-ts-pgjy16dm.js +1 -0
- package/dist/ui/assets/glsl-DBO2IWDn.js +1 -0
- package/dist/ui/assets/gnuplot-CM8KxXT1.js +1 -0
- package/dist/ui/assets/go-B1SYOhNW.js +1 -0
- package/dist/ui/assets/graph-BlwPajkw.js +1 -0
- package/dist/ui/assets/graphql-cDcHW_If.js +1 -0
- package/dist/ui/assets/groovy-DkBy-JyN.js +1 -0
- package/dist/ui/assets/hack-D1yCygmZ.js +1 -0
- package/dist/ui/assets/haml-B2EZWmdv.js +1 -0
- package/dist/ui/assets/handlebars-BQGss363.js +1 -0
- package/dist/ui/assets/haskell-BILxekzW.js +1 -0
- package/dist/ui/assets/haxe-C5wWYbrZ.js +1 -0
- package/dist/ui/assets/hcl-HzYwdGDm.js +1 -0
- package/dist/ui/assets/hjson-T-Tgc4AT.js +1 -0
- package/dist/ui/assets/hlsl-ifBTmRxC.js +1 -0
- package/dist/ui/assets/houston-DnULxvSX.js +1 -0
- package/dist/ui/assets/html-C2L_23MC.js +1 -0
- package/dist/ui/assets/html-derivative-CSfWNPLT.js +1 -0
- package/dist/ui/assets/http-FRrOvY1W.js +1 -0
- package/dist/ui/assets/hxml-TIA70rKU.js +1 -0
- package/dist/ui/assets/hy-BMj5Y0dO.js +1 -0
- package/dist/ui/assets/imba-bv_oIlVt.js +1 -0
- package/dist/ui/assets/index-DCM2k-QB.js +149 -0
- package/dist/ui/assets/index-DeSCjOUR.js +350 -0
- package/dist/ui/assets/index-Xf-qrRKj.css +1 -0
- package/dist/ui/assets/infoDiagram-5YYISTIA-C_uVe1ld.js +2 -0
- package/dist/ui/assets/ini-BjABl1g7.js +1 -0
- package/dist/ui/assets/init-Gi6I4Gst.js +1 -0
- package/dist/ui/assets/ishikawaDiagram-YF4QCWOH-hzDmyxpo.js +70 -0
- package/dist/ui/assets/java-xI-RfyKK.js +1 -0
- package/dist/ui/assets/javascript-ySlJ1b_l.js +1 -0
- package/dist/ui/assets/jinja-DGy0s7-h.js +1 -0
- package/dist/ui/assets/jison-BqZprYcd.js +1 -0
- package/dist/ui/assets/journeyDiagram-JHISSGLW-B7NJ1JZJ.js +139 -0
- package/dist/ui/assets/json-BQoSv7ci.js +1 -0
- package/dist/ui/assets/json5-w8dY5SsB.js +1 -0
- package/dist/ui/assets/jsonc-TU54ms6u.js +1 -0
- package/dist/ui/assets/jsonl-DREVFZK8.js +1 -0
- package/dist/ui/assets/jsonnet-BfivnA6A.js +1 -0
- package/dist/ui/assets/jssm-P4WzXJd0.js +1 -0
- package/dist/ui/assets/jsx-BAng5TT0.js +1 -0
- package/dist/ui/assets/julia-BBuGR-5E.js +1 -0
- package/dist/ui/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/ui/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/ui/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/ui/assets/kanban-definition-UN3LZRKU-B6pVc1c6.js +89 -0
- package/dist/ui/assets/katex-C5jXJg4s.js +257 -0
- package/dist/ui/assets/kotlin-B5lbUyaz.js +1 -0
- package/dist/ui/assets/kusto-mebxcVVE.js +1 -0
- package/dist/ui/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/ui/assets/latex-C-cWTeAZ.js +1 -0
- package/dist/ui/assets/layout-Boy8vhSP.js +1 -0
- package/dist/ui/assets/lean-XBlWyCtg.js +1 -0
- package/dist/ui/assets/less-BfCpw3nA.js +1 -0
- package/dist/ui/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/ui/assets/linear-B_KCGlU8.js +1 -0
- package/dist/ui/assets/liquid-D3W5UaiH.js +1 -0
- package/dist/ui/assets/log-Cc5clBb7.js +1 -0
- package/dist/ui/assets/logo-IuBKFhSY.js +1 -0
- package/dist/ui/assets/lua-CvWAzNxB.js +1 -0
- package/dist/ui/assets/luau-Du5NY7AG.js +1 -0
- package/dist/ui/assets/make-Bvotw-X0.js +1 -0
- package/dist/ui/assets/markdown-UIAJJxZW.js +1 -0
- package/dist/ui/assets/marko-z0MBrx5-.js +1 -0
- package/dist/ui/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/ui/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/ui/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/ui/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/ui/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/ui/assets/matlab-D9-PGadD.js +1 -0
- package/dist/ui/assets/mdc-DB_EDNY_.js +1 -0
- package/dist/ui/assets/mdx-sdHcTMYB.js +1 -0
- package/dist/ui/assets/mermaid-Ci6OQyBP.js +1 -0
- package/dist/ui/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/ui/assets/min-light-CTRr51gU.js +1 -0
- package/dist/ui/assets/mindmap-definition-RKZ34NQL-Dmpnosj8.js +96 -0
- package/dist/ui/assets/mipsasm-BC5c_5Pe.js +1 -0
- package/dist/ui/assets/mojo-Tz6hzZYG.js +1 -0
- package/dist/ui/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/ui/assets/move-DB_GagMm.js +1 -0
- package/dist/ui/assets/narrat-DLbgOhZU.js +1 -0
- package/dist/ui/assets/nextflow-B0XVJmRM.js +1 -0
- package/dist/ui/assets/nginx-D_VnBJ67.js +1 -0
- package/dist/ui/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/ui/assets/nim-ZlGxZxc3.js +1 -0
- package/dist/ui/assets/nix-shcSOmrb.js +1 -0
- package/dist/ui/assets/nord-Ddv68eIx.js +1 -0
- package/dist/ui/assets/nushell-D4Tzg5kh.js +1 -0
- package/dist/ui/assets/objective-c-Deuh7S70.js +1 -0
- package/dist/ui/assets/objective-cpp-BUEGK8hf.js +1 -0
- package/dist/ui/assets/ocaml-BNioltXt.js +1 -0
- package/dist/ui/assets/one-dark-pro-GBQ2dnAY.js +1 -0
- package/dist/ui/assets/one-light-PoHY5YXO.js +1 -0
- package/dist/ui/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/ui/assets/pascal-JqZropPD.js +1 -0
- package/dist/ui/assets/perl-CHQXSrWU.js +1 -0
- package/dist/ui/assets/php-B5ebYQev.js +1 -0
- package/dist/ui/assets/pieDiagram-4H26LBE5-DWfhPrxk.js +30 -0
- package/dist/ui/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/ui/assets/plsql-LKU2TuZ1.js +1 -0
- package/dist/ui/assets/po-BFLt1xDp.js +1 -0
- package/dist/ui/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/ui/assets/polar-DKykz6zU.js +1 -0
- package/dist/ui/assets/postcss-B3ZDOciz.js +1 -0
- package/dist/ui/assets/powerquery-CSHBycmS.js +1 -0
- package/dist/ui/assets/powershell-BIEUsx6d.js +1 -0
- package/dist/ui/assets/prisma-B48N-Iqd.js +1 -0
- package/dist/ui/assets/prolog-BY-TUvya.js +1 -0
- package/dist/ui/assets/proto-zocC4JxJ.js +1 -0
- package/dist/ui/assets/pug-CM9l7STV.js +1 -0
- package/dist/ui/assets/puppet-Cza_XSSt.js +1 -0
- package/dist/ui/assets/purescript-Bg-kzb6g.js +1 -0
- package/dist/ui/assets/python-DhUJRlN_.js +1 -0
- package/dist/ui/assets/qml-D8XfuvdV.js +1 -0
- package/dist/ui/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/ui/assets/qss-DhMKtDLN.js +1 -0
- package/dist/ui/assets/quadrantDiagram-W4KKPZXB-C9C_4UTm.js +7 -0
- package/dist/ui/assets/r-CwjWoCRV.js +1 -0
- package/dist/ui/assets/racket-CzouJOBO.js +1 -0
- package/dist/ui/assets/raku-B1bQXN8T.js +1 -0
- package/dist/ui/assets/razor-CNLDkMZG.js +1 -0
- package/dist/ui/assets/red-bN70gL4F.js +1 -0
- package/dist/ui/assets/reg-5LuOXUq_.js +1 -0
- package/dist/ui/assets/regexp-DWJ3fJO_.js +1 -0
- package/dist/ui/assets/rel-DJlmqQ1C.js +1 -0
- package/dist/ui/assets/requirementDiagram-4Y6WPE33-Rti8bvFJ.js +84 -0
- package/dist/ui/assets/riscv-QhoSD0DR.js +1 -0
- package/dist/ui/assets/rose-pine-CmCqftbK.js +1 -0
- package/dist/ui/assets/rose-pine-dawn-Ds-gbosJ.js +1 -0
- package/dist/ui/assets/rose-pine-moon-CjDtw9vr.js +1 -0
- package/dist/ui/assets/rst-4NLicBqY.js +1 -0
- package/dist/ui/assets/ruby-DeZ3UC14.js +1 -0
- package/dist/ui/assets/rust-Be6lgOlo.js +1 -0
- package/dist/ui/assets/sankeyDiagram-5OEKKPKP-DKJ1CJ1F.js +40 -0
- package/dist/ui/assets/sas-BmTFh92c.js +1 -0
- package/dist/ui/assets/sass-BJ4Li9vH.js +1 -0
- package/dist/ui/assets/scala-DQVVAn-B.js +1 -0
- package/dist/ui/assets/scheme-BJGe-b2p.js +1 -0
- package/dist/ui/assets/scss-C31hgJw-.js +1 -0
- package/dist/ui/assets/sdbl-BLhTXw86.js +1 -0
- package/dist/ui/assets/sequenceDiagram-3UESZ5HK-BCJdo3Yk.js +162 -0
- package/dist/ui/assets/shaderlab-B7qAK45m.js +1 -0
- package/dist/ui/assets/shellscript-atvbtKCR.js +1 -0
- package/dist/ui/assets/shellsession-C_rIy8kc.js +1 -0
- package/dist/ui/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/ui/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/ui/assets/smalltalk-DkLiglaE.js +1 -0
- package/dist/ui/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/ui/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/ui/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/ui/assets/solidity-C1w2a3ep.js +1 -0
- package/dist/ui/assets/soy-C-lX7w71.js +1 -0
- package/dist/ui/assets/sparql-bYkjHRlG.js +1 -0
- package/dist/ui/assets/splunk-Cf8iN4DR.js +1 -0
- package/dist/ui/assets/sql-COK4E0Yg.js +1 -0
- package/dist/ui/assets/ssh-config-BknIz3MU.js +1 -0
- package/dist/ui/assets/stata-DorPZHa4.js +1 -0
- package/dist/ui/assets/stateDiagram-AJRCARHV-BxlCyIOF.js +1 -0
- package/dist/ui/assets/stateDiagram-v2-BHNVJYJU-cIykpKBe.js +1 -0
- package/dist/ui/assets/stylus-BeQkCIfX.js +1 -0
- package/dist/ui/assets/svelte-MSaWC3Je.js +1 -0
- package/dist/ui/assets/swift-BSxZ-RaX.js +1 -0
- package/dist/ui/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/ui/assets/system-verilog-C7L56vO4.js +1 -0
- package/dist/ui/assets/systemd-CUnW07Te.js +1 -0
- package/dist/ui/assets/talonscript-C1XDQQGZ.js +1 -0
- package/dist/ui/assets/tasl-CQjiPCtT.js +1 -0
- package/dist/ui/assets/tcl-DQ1-QYvQ.js +1 -0
- package/dist/ui/assets/templ-dwX3ZSMB.js +1 -0
- package/dist/ui/assets/terraform-BbSNqyBO.js +1 -0
- package/dist/ui/assets/tex-rYs2v40G.js +1 -0
- package/dist/ui/assets/timeline-definition-PNZ67QCA-BBlZb3oG.js +120 -0
- package/dist/ui/assets/tokyo-night-DBQeEorK.js +1 -0
- package/dist/ui/assets/toml-CB2ApiWb.js +1 -0
- package/dist/ui/assets/ts-tags-CipyTH0X.js +1 -0
- package/dist/ui/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/ui/assets/tsx-B6W0miNI.js +1 -0
- package/dist/ui/assets/turtle-BMR_PYu6.js +1 -0
- package/dist/ui/assets/twig-NC5TFiHP.js +1 -0
- package/dist/ui/assets/typescript-Dj6nwHGl.js +1 -0
- package/dist/ui/assets/typespec-BpWG_bgh.js +1 -0
- package/dist/ui/assets/typst-BVUVsWT6.js +1 -0
- package/dist/ui/assets/v-CAQ2eGtk.js +1 -0
- package/dist/ui/assets/vala-BFOHcciG.js +1 -0
- package/dist/ui/assets/vb-CdO5JTpU.js +1 -0
- package/dist/ui/assets/vennDiagram-CIIHVFJN-C-Nr9zGX.js +34 -0
- package/dist/ui/assets/verilog-CJaU5se_.js +1 -0
- package/dist/ui/assets/vesper-BEBZ7ncR.js +1 -0
- package/dist/ui/assets/vhdl-DYoNaHQp.js +1 -0
- package/dist/ui/assets/viml-m4uW47V2.js +1 -0
- package/dist/ui/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/ui/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/ui/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/ui/assets/vue-BuYVFjOK.js +1 -0
- package/dist/ui/assets/vue-html-xdeiXROB.js +1 -0
- package/dist/ui/assets/vyper-nyqBNV6O.js +1 -0
- package/dist/ui/assets/wardley-L42UT6IY-Bu2DsPJv.js +173 -0
- package/dist/ui/assets/wardleyDiagram-YWT4CUSO-Xlk_Tv4m.js +78 -0
- package/dist/ui/assets/wasm-C6j12Q_x.js +1 -0
- package/dist/ui/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/ui/assets/wenyan-7A4Fjokl.js +1 -0
- package/dist/ui/assets/wgsl-CB0Krxn9.js +1 -0
- package/dist/ui/assets/wikitext-DCE3LsBG.js +1 -0
- package/dist/ui/assets/wolfram-C3FkfJm5.js +1 -0
- package/dist/ui/assets/xml-e3z08dGr.js +1 -0
- package/dist/ui/assets/xsl-Dd0NUgwM.js +1 -0
- package/dist/ui/assets/xychartDiagram-2RQKCTM6-DF_rfRUs.js +7 -0
- package/dist/ui/assets/yaml-CVw76BM1.js +1 -0
- package/dist/ui/assets/zenscript-HnGAYVZD.js +1 -0
- package/dist/ui/assets/zig-BVz_zdnA.js +1 -0
- package/dist/ui/index.html +17 -0
- package/package.json +49 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import{s as zt,g as Lt,q as Tt,p as At,a as Xt,b as Et,_ as y,K as Yt,D as It,F as Q,l as et,I as Ft,e as Bt,z as Rt,c as V}from"./index-DeSCjOUR.js";import{p as Ot}from"./chunk-4BX2VUAB-zlxS7kMe.js";import{p as Wt}from"./wardley-L42UT6IY-Bu2DsPJv.js";var G=y((a,o)=>{const e=a<=1?a*100:a;if(e<0||e>100)throw new Error(`${o} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${a}`);return e},"toPercent"),E=y((a,o,e)=>({x:G(o,`${e} evolution`),y:G(a,`${e} visibility`)}),"toCoordinates"),tt=y(a=>{if(a){if(a==="+<>")return"bidirectional";if(a==="+<")return"backward";if(a==="+>")return"forward"}},"getFlowFromPort"),Dt=y(a=>{if(!(a!=null&&a.startsWith("+")))return{};const o=/^\+'([^']*)'/.exec(a),e=o==null?void 0:o[1];return a.includes("<>")?{flow:"bidirectional",label:e}:a.includes("<")?{flow:"backward",label:e}:a.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Gt=y((a,o)=>{if(Ot(a,o),a.size&&o.setSize(a.size.width,a.size.height),a.evolution){const e=a.evolution.stages.map(r=>r.secondName?`${r.name.trim()} / ${r.secondName.trim()}`:r.name.trim()),p=a.evolution.stages.filter(r=>r.boundary!==void 0).map(r=>r.boundary);o.updateAxes({stages:e,stageBoundaries:p})}if(a.anchors.forEach(e=>{const p=E(e.visibility,e.evolution,`Anchor "${e.name}"`);o.addNode(e.name,e.name,p.x,p.y,"anchor")}),a.components.forEach(e=>{var v;const p=E(e.visibility,e.evolution,`Component "${e.name}"`),r=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,m=(v=e.decorator)==null?void 0:v.strategy;o.addNode(e.name,e.name,p.x,p.y,"component",r,d,e.inertia,m)}),a.notes.forEach(e=>{const p=E(e.visibility,e.evolution,`Note "${e.text}"`);o.addNote(e.text,p.x,p.y)}),a.pipelines.forEach(e=>{const p=o.getNode(e.parent);if(!p||typeof p.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const r=p.y;o.startPipeline(e.parent),e.components.forEach(d=>{const m=`${e.parent}_${d.name}`,v=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,L=G(d.evolution,`Pipeline component "${d.name}" evolution`);o.addNode(m,d.name,L,r,"pipeline-component",v,g),o.addPipelineComponent(e.parent,m)})}),a.links.forEach(e=>{const p=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let r=tt(e.fromPort)??tt(e.toPort);const{flow:d,label:m}=Dt(e.arrow);!r&&d&&(r=d);const v=e.linkLabel,g=m??v;o.addLink(o.resolveNodeId(e.from),o.resolveNodeId(e.to),p,g,r)}),a.evolves.forEach(e=>{const p=o.getNode(e.component);if((p==null?void 0:p.y)!==void 0){const r=G(e.target,`Evolve target for "${e.component}"`);o.addTrend(e.component,r,p.y)}}),a.annotations.length>0){const e=a.annotations[0],p=E(e.x,e.y,"Annotations box");o.setAnnotationsBox(p.x,p.y)}a.annotation.forEach(e=>{const p=E(e.x,e.y,`Annotation ${e.number}`);o.addAnnotation(e.number,[{x:p.x,y:p.y}],e.text)}),a.accelerators.forEach(e=>{const p=E(e.x,e.y,`Accelerator "${e.name}"`);o.addAccelerator(e.name,p.x,p.y)}),a.deaccelerators.forEach(e=>{const p=E(e.x,e.y,`Deaccelerator "${e.name}"`);o.addDeaccelerator(e.name,p.x,p.y)})},"populateDb"),at={parser:{yy:void 0},parse:y(async a=>{var p;const o=await Wt("wardley",a);et.debug(o);const e=(p=at.parser)==null?void 0:p.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Gt(o,e)},"parse")},I,qt=(I=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(o){const e=this.nodes.get(o.id)??{id:o.id,label:o.label},p={...e,...o,className:o.className??e.className,labelOffsetX:o.labelOffsetX??e.labelOffsetX,labelOffsetY:o.labelOffsetY??e.labelOffsetY};this.nodes.set(o.id,p)}addLink(o){this.links.push(o)}addTrend(o){this.trends.set(o.nodeId,o)}startPipeline(o){this.pipelines.set(o,{nodeId:o,componentIds:[]});const e=this.nodes.get(o);e&&(e.isPipelineParent=!0)}addPipelineComponent(o,e){const p=this.pipelines.get(o);p&&p.componentIds.push(e);const r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(o){this.annotations.push(o)}addNote(o){this.notes.push(o)}addAccelerator(o){this.accelerators.push(o)}addDeaccelerator(o){this.deaccelerators.push(o)}setAnnotationsBox(o,e){this.annotationsBox={x:o,y:e}}setAxes(o){this.axes={...this.axes,...o}}setSize(o,e){this.size={width:o,height:e}}getNode(o){return this.nodes.get(o)}resolveNodeId(o){if(this.nodes.has(o))return o;for(const[e,p]of this.nodes)if(p.label===o)return e;return o}build(){const o=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);o.push(e)}return{nodes:o,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},y(I,"WardleyBuilder"),I),b=new qt;function rt(){return V()["wardley-beta"]}y(rt,"getConfig");function ot(a,o,e,p,r,d,m,v,g){b.addNode({id:a,label:o,x:e,y:p,className:r,labelOffsetX:d,labelOffsetY:m,inertia:v,sourceStrategy:g})}y(ot,"addNode");function st(a,o,e=!1,p,r){b.addLink({source:a,target:o,dashed:e,label:p,flow:r})}y(st,"addLink");function nt(a,o,e){b.addTrend({nodeId:a,targetX:o,targetY:e})}y(nt,"addTrend");function it(a,o,e){b.addAnnotation({number:a,coordinates:o,text:e})}y(it,"addAnnotation");function dt(a,o,e){b.addNote({text:a,x:o,y:e})}y(dt,"addNote");function lt(a,o,e){b.addAccelerator({name:a,x:o,y:e})}y(lt,"addAccelerator");function ct(a,o,e){b.addDeaccelerator({name:a,x:o,y:e})}y(ct,"addDeaccelerator");function pt(a,o){b.setAnnotationsBox(a,o)}y(pt,"setAnnotationsBox");function ht(a,o){b.setSize(a,o)}y(ht,"setSize");function xt(a){b.startPipeline(a)}y(xt,"startPipeline");function ft(a,o){b.addPipelineComponent(a,o)}y(ft,"addPipelineComponent");function gt(a){b.setAxes(a)}y(gt,"updateAxes");function ut(a){return b.getNode(a)}y(ut,"getNode");function yt(a){return b.resolveNodeId(a)}y(yt,"resolveNodeId");function mt(){return b.build()}y(mt,"getWardleyData");function wt(){b.clear(),Rt()}y(wt,"clear");var Ht={getConfig:rt,addNode:ot,addLink:st,addTrend:nt,addAnnotation:it,addNote:dt,addAccelerator:lt,addDeaccelerator:ct,setAnnotationsBox:pt,setSize:ht,startPipeline:xt,addPipelineComponent:ft,updateAxes:gt,getNode:ut,resolveNodeId:yt,getWardleyData:mt,clear:wt,setAccTitle:Et,getAccTitle:Xt,setDiagramTitle:At,getDiagramTitle:Tt,getAccDescription:Lt,setAccDescription:zt},jt=["Genesis","Custom Built","Product","Commodity"],Vt=y(()=>{var o,e,p,r,d,m,v,g,L,M,k,N;const{themeVariables:a}=V();return{backgroundColor:((o=a.wardley)==null?void 0:o.backgroundColor)??a.background??"#fff",axisColor:((e=a.wardley)==null?void 0:e.axisColor)??"#000",axisTextColor:((p=a.wardley)==null?void 0:p.axisTextColor)??a.primaryTextColor??"#222",gridColor:((r=a.wardley)==null?void 0:r.gridColor)??"rgba(100, 100, 100, 0.2)",componentFill:((d=a.wardley)==null?void 0:d.componentFill)??"#fff",componentStroke:((m=a.wardley)==null?void 0:m.componentStroke)??"#000",componentLabelColor:((v=a.wardley)==null?void 0:v.componentLabelColor)??a.primaryTextColor??"#222",linkStroke:((g=a.wardley)==null?void 0:g.linkStroke)??"#000",evolutionStroke:((L=a.wardley)==null?void 0:L.evolutionStroke)??"#dc3545",annotationStroke:((M=a.wardley)==null?void 0:M.annotationStroke)??"#000",annotationTextColor:((k=a.wardley)==null?void 0:k.annotationTextColor)??a.primaryTextColor??"#222",annotationFill:((N=a.wardley)==null?void 0:N.annotationFill)??a.background??"#fff"}},"getTheme"),_t=y(()=>{const a=V()["wardley-beta"];return{width:(a==null?void 0:a.width)??900,height:(a==null?void 0:a.height)??600,padding:(a==null?void 0:a.padding)??48,nodeRadius:(a==null?void 0:a.nodeRadius)??6,nodeLabelOffset:(a==null?void 0:a.nodeLabelOffset)??8,axisFontSize:(a==null?void 0:a.axisFontSize)??12,labelFontSize:(a==null?void 0:a.labelFontSize)??10,showGrid:(a==null?void 0:a.showGrid)??!1,useMaxWidth:(a==null?void 0:a.useMaxWidth)??!0}},"getConfigValues"),Zt=y((a,o,e,p)=>{var U,J;et.debug(`Rendering Wardley map
|
|
2
|
+
`+a);const r=_t(),d=Vt(),m=r.nodeRadius*1.6,v=p.db,g=v.getWardleyData(),L=v.getDiagramTitle(),M=((U=g.size)==null?void 0:U.width)??r.width,k=((J=g.size)==null?void 0:J.height)??r.height,N=Ft(o);N.selectAll("*").remove(),Bt(N,k,M,r.useMaxWidth),N.attr("viewBox",`0 0 ${M} ${k}`);const P=N.append("g").attr("class","wardley-map"),q=N.append("defs");q.append("marker").attr("id",`arrow-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${o}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${o}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),P.append("rect").attr("class","wardley-background").attr("width",M).attr("height",k).attr("fill",d.backgroundColor);const F=M-r.padding*2,B=k-r.padding*2;L&&P.append("text").attr("class","wardley-title").attr("x",M/2).attr("y",r.padding/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(L);const T=y(t=>r.padding+t/100*F,"projectX"),A=y(t=>k-r.padding-t/100*B,"projectY"),O=P.append("g").attr("class","wardley-axes");O.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",r.padding).attr("x2",r.padding).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const kt=g.axes.xLabel??"Evolution",bt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",r.padding+F/2).attr("y",k-r.padding/4).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(kt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",r.padding/3).attr("y",r.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${r.padding/3} ${r.padding+B/2})`).text(bt);const R=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:jt;if(R.length>0){const t=P.append("g").attr("class","wardley-stages"),n=g.axes.stageBoundaries,s=[];if(n&&n.length===R.length){let i=0;n.forEach(h=>{s.push({start:i,end:h}),i=h})}else{const i=1/R.length;R.forEach((h,l)=>{s.push({start:l*i,end:(l+1)*i})})}R.forEach((i,h)=>{const l=s[h],x=r.padding+l.start*F,f=r.padding+l.end*F,u=(x+f)/2;h>0&&t.append("line").attr("x1",x).attr("x2",x).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",u).attr("y",k-r.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",r.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(r.showGrid){const t=P.append("g").attr("class","wardley-grid");for(let n=1;n<4;n++){const s=n/4,i=r.padding+F*s;t.append("line").attr("x1",i).attr("x2",i).attr("y1",r.padding).attr("y2",k-r.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",r.padding).attr("x2",M-r.padding).attr("y1",k-r.padding-B*s).attr("y2",k-r.padding-B*s).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:T(t.x),y:A(t.y),node:t})}),g.pipelines.length>0){const t=P.append("g").attr("class","wardley-pipelines"),n=P.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(s=>{if(s.componentIds.length===0)return;const i=s.componentIds.map(f=>({id:f,pos:c.get(f),node:g.nodes.find(u=>u.id===f)})).filter(f=>f.pos&&f.node).sort((f,u)=>f.node.x-u.node.x);for(let f=0;f<i.length-1;f++){const u=i[f],w=i[f+1];n.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",u.pos.x).attr("y1",u.pos.y).attr("x2",w.pos.x).attr("y2",w.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let h=1/0,l=-1/0,x=0;if(s.componentIds.forEach(f=>{const u=c.get(f);u&&(h=Math.min(h,u.x),l=Math.max(l,u.x),x=u.y)}),h!==1/0&&l!==-1/0){const u=r.nodeRadius*4,w=x-u/2,S=c.get(s.nodeId);if(S){const z=(h+l)/2;S.x=z,S.y=w-m/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",h-15).attr("y",w).attr("width",l-h+15*2).attr("height",u).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=P.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const K=g.links.filter(t=>{if(!c.has(t.source)||!c.has(t.target))return!1;const n=Z.get(t.target);return!(n!=null&&n.has(t.source))});_.selectAll("line").data(K).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.x+l/f*h}).attr("y1",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.source).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x);return n.y+x/f*h}).attr("x2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.x+l/f*h}).attr("y2",t=>{const n=c.get(t.source),s=c.get(t.target),h=g.nodes.find(u=>u.id===t.target).isPipelineParent?m/Math.sqrt(2):r.nodeRadius,l=n.x-s.x,x=n.y-s.y,f=Math.sqrt(l*l+x*x);return s.y+x/f*h}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${o})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${o})`:null),_.selectAll("text").data(K.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=s.y-n.y,l=s.x-n.x,x=Math.sqrt(l*l+h*h),f=8,u=h/x;return i+u*f}).attr("y",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.y+s.y)/2,h=s.x-n.x,l=s.y-n.y,x=Math.sqrt(h*h+l*l),f=8,u=-h/x;return i+u*f}).attr("fill",d.axisTextColor).attr("font-size",r.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const n=c.get(t.source),s=c.get(t.target),i=(n.x+s.x)/2,h=(n.y+s.y)/2,l=s.x-n.x,x=s.y-n.y,f=Math.sqrt(l*l+x*x),u=8,w=x/f,S=-l/f,z=i+w*u,W=h+S*u;let Y=Math.atan2(x,l)*180/Math.PI;return(Y>90||Y<-90)&&(Y+=180),`rotate(${Y} ${z} ${W})`}).text(t=>t.label);const $t=P.append("g").attr("class","wardley-trends"),vt=g.trends.map(t=>{const n=c.get(t.nodeId);if(!n)return null;const s=T(t.targetX),i=A(t.targetY),h=s-n.x,l=i-n.y,x=Math.sqrt(h*h+l*l),f=r.nodeRadius+2,u=x>f?s-h/x*f:s,w=x>f?i-l/x*f:i;return{origin:n,targetX:s,targetY:i,adjustedX2:u,adjustedY2:w}}).filter(t=>t!==null);$t.selectAll("line").data(vt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${o})`);const C=P.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));C.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const X=C.filter(t=>t.sourceStrategy==="market");X.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",r.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=r.nodeRadius*.7,$=r.nodeRadius*1.2;if(X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),C.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-m/2).attr("y",t=>c.get(t.id).y-m/2).attr("width",m).attr("height",m).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),C.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y1",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y-s/2}).attr("x2",t=>{const n=c.get(t.id);let s=t.isPipelineParent?m/2+15:r.nodeRadius+15;return t.sourceStrategy&&(s+=r.nodeRadius+10),n.x+s}).attr("y2",t=>{const n=c.get(t.id),s=t.isPipelineParent?m:r.nodeRadius*2;return n.y+s/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),C.append("text").attr("x",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?n.x+t.labelOffsetX:n.x;let s=r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(s+=10);const i=t.labelOffsetX??s;return n.x+i}).attr("y",t=>{const n=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?n.y+t.labelOffsetY:n.y-3;let s=-r.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(s-=10);const i=t.labelOffsetY??s;return n.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",r.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=P.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(n=>{const s=n.coordinates.map(i=>({x:T(i.x),y:A(i.y)}));if(s.length>1)for(let i=0;i<s.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",s[i].x).attr("y1",s[i].y).attr("x2",s[i+1].x).attr("y2",s[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");s.forEach(i=>{const h=t.append("g").attr("class","wardley-annotation");h.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),h.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.number)})}),g.annotationsBox){let n=T(g.annotationsBox.x),s=A(g.annotationsBox.y);const i=10,h=16,l=11,x=t.append("g").attr("class","wardley-annotations-box"),f=[...g.annotations].filter(w=>w.text).sort((w,S)=>w.number-S.number),u=[];if(f.forEach((w,S)=>{const z=x.append("text").attr("x",n+i).attr("y",s+i+(S+1)*h).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${w.number}. ${w.text}`);u.push(z)}),u.length>0){let w=0,S=0;u.forEach(j=>{const D=j.node(),Nt=D.getComputedTextLength();w=Math.max(w,Nt);const Ct=D.getBBox();S=Math.max(S,Ct.height)});const z=w+i*2+105,W=f.length*h+i*2+S/2,Y=r.padding,Pt=M-r.padding-z,St=r.padding,Mt=k-r.padding-W;n=Math.max(Y,Math.min(n,Pt)),s=Math.max(St,Math.min(s,Mt)),u.forEach((j,D)=>{j.attr("x",n+i).attr("y",s+i+(D+1)*h)}),x.insert("rect","text").attr("x",n).attr("y",s).attr("width",z).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=P.append("g").attr("class","wardley-notes");g.notes.forEach(n=>{const s=T(n.x),i=A(n.y);t.append("text").attr("x",s).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.text)})}if(g.accelerators.length>0){const t=P.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(n=>{const s=T(n.x),i=A(n.y),h=60,l=30,x=20,f=`
|
|
3
|
+
M ${s} ${i-l/2}
|
|
4
|
+
L ${s+h-x} ${i-l/2}
|
|
5
|
+
L ${s+h-x} ${i-l/2-8}
|
|
6
|
+
L ${s+h} ${i}
|
|
7
|
+
L ${s+h-x} ${i+l/2+8}
|
|
8
|
+
L ${s+h-x} ${i+l/2}
|
|
9
|
+
L ${s} ${i+l/2}
|
|
10
|
+
Z
|
|
11
|
+
`;t.append("path").attr("d",f).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",s+h/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.name)})}if(g.deaccelerators.length>0){const t=P.append("g").attr("class","wardley-deaccelerators");g.deaccelerators.forEach(n=>{const s=T(n.x),i=A(n.y),h=60,l=30,x=20,f=`
|
|
12
|
+
M ${s+h} ${i-l/2}
|
|
13
|
+
L ${s+x} ${i-l/2}
|
|
14
|
+
L ${s+x} ${i-l/2-8}
|
|
15
|
+
L ${s} ${i}
|
|
16
|
+
L ${s+x} ${i+l/2+8}
|
|
17
|
+
L ${s+x} ${i+l/2}
|
|
18
|
+
L ${s+h} ${i+l/2}
|
|
19
|
+
Z
|
|
20
|
+
`;t.append("path").attr("d",f).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",s+h/2).attr("y",i+l/2+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(n.name)})}},"draw"),Kt={draw:Zt},Ut=y(({wardley:a}={})=>{const o=Yt(),e=It(),p=Q(o,e.themeVariables),r=Q(p.wardley,a);return`
|
|
21
|
+
.wardley-background {
|
|
22
|
+
fill: ${r.backgroundColor};
|
|
23
|
+
}
|
|
24
|
+
.wardley-axes line, .wardley-axes path {
|
|
25
|
+
stroke: ${r.axisColor};
|
|
26
|
+
}
|
|
27
|
+
.wardley-axis-label {
|
|
28
|
+
fill: ${r.axisTextColor};
|
|
29
|
+
}
|
|
30
|
+
.wardley-stage-label {
|
|
31
|
+
fill: ${r.axisTextColor};
|
|
32
|
+
}
|
|
33
|
+
.wardley-grid line {
|
|
34
|
+
stroke: ${r.gridColor};
|
|
35
|
+
}
|
|
36
|
+
.wardley-node circle {
|
|
37
|
+
fill: ${r.componentFill};
|
|
38
|
+
stroke: ${r.componentStroke};
|
|
39
|
+
}
|
|
40
|
+
.wardley-node-label {
|
|
41
|
+
fill: ${r.componentLabelColor};
|
|
42
|
+
}
|
|
43
|
+
.wardley-link {
|
|
44
|
+
stroke: ${r.linkStroke};
|
|
45
|
+
}
|
|
46
|
+
.wardley-link--dashed {
|
|
47
|
+
stroke-dasharray: 4 4;
|
|
48
|
+
}
|
|
49
|
+
.wardley-link-label {
|
|
50
|
+
fill: ${r.axisTextColor};
|
|
51
|
+
}
|
|
52
|
+
.wardley-trend line {
|
|
53
|
+
stroke: ${r.evolutionStroke};
|
|
54
|
+
}
|
|
55
|
+
.wardley-annotation-line {
|
|
56
|
+
stroke: ${r.annotationStroke};
|
|
57
|
+
}
|
|
58
|
+
.wardley-annotation circle {
|
|
59
|
+
fill: ${r.annotationFill};
|
|
60
|
+
stroke: ${r.annotationStroke};
|
|
61
|
+
}
|
|
62
|
+
.wardley-annotation text {
|
|
63
|
+
fill: ${r.annotationTextColor};
|
|
64
|
+
}
|
|
65
|
+
.wardley-annotations-box rect {
|
|
66
|
+
fill: ${r.annotationFill};
|
|
67
|
+
stroke: ${r.annotationStroke};
|
|
68
|
+
}
|
|
69
|
+
.wardley-annotations-box text {
|
|
70
|
+
fill: ${r.annotationTextColor};
|
|
71
|
+
}
|
|
72
|
+
.wardley-pipeline-box {
|
|
73
|
+
stroke: ${r.componentStroke};
|
|
74
|
+
}
|
|
75
|
+
.wardley-notes text {
|
|
76
|
+
fill: ${r.axisTextColor};
|
|
77
|
+
}
|
|
78
|
+
`},"styles"),ae={parser:at,db:Ht,renderer:Kt,styles:Ut};export{ae as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=Object.freeze(JSON.parse(`{"displayName":"WebAssembly","name":"wasm","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#instructions"},{"include":"#types"},{"include":"#modules"},{"include":"#constants"},{"include":"#invalid"}],"repository":{"comments":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.comment.wat"}},"comment":"Line comment","match":"(;;).*$","name":"comment.line.wat"},{"begin":"\\\\(;","beginCaptures":{"0":{"name":"punctuation.definition.comment.wat"}},"comment":"Block comment","end":";\\\\)","endCaptures":{"0":{"name":"punctuation.definition.comment.wat"}},"name":"comment.block.wat"}]},"constants":{"patterns":[{"comment":"Fixed-width SIMD","patterns":[{"captures":{"1":{"name":"support.type.wat"}},"comment":"Vector literal (i8x16) [simd]","match":"\\\\b(i8x16)(?:\\\\s+0x[0-9a-fA-F]{1,2}){16}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"comment":"Vector literal (i16x8) [simd]","match":"\\\\b(i16x8)(?:\\\\s+0x[0-9a-fA-F]{1,4}){8}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"comment":"Vector literal (i32x4) [simd]","match":"\\\\b(i32x4)(?:\\\\s+0x[0-9a-fA-F]{1,8}){4}\\\\b","name":"constant.numeric.vector.wat"},{"captures":{"1":{"name":"support.type.wat"}},"comment":"Vector literal (i64x2) [simd]","match":"\\\\b(i64x2)(?:\\\\s+0x[0-9a-fA-F]{1,16}){2}\\\\b","name":"constant.numeric.vector.wat"}]},{"comment":"MVP","patterns":[{"comment":"Floating point literal","match":"[+-]?\\\\b[0-9][0-9]*(?:\\\\.[0-9][0-9]*)?(?:[eE][+-]?[0-9]+)?\\\\b","name":"constant.numeric.float.wat"},{"comment":"Floating point hexadecimal literal","match":"[+-]?\\\\b0x([0-9a-fA-F]*\\\\.[0-9a-fA-F]+|[0-9a-fA-F]+\\\\.?)[Pp][+-]?[0-9]+\\\\b","name":"constant.numeric.float.wat"},{"comment":"Floating point infinity","match":"[+-]?\\\\binf\\\\b","name":"constant.numeric.float.wat"},{"comment":"Floating point literal (NaN)","match":"[+-]?\\\\bnan:0x[0-9a-fA-F][0-9a-fA-F]*\\\\b","name":"constant.numeric.float.wat"},{"comment":"Integer literal","match":"[+-]?\\\\b(?:0x[0-9a-fA-F][0-9a-fA-F]*|\\\\d[\\\\d]*)\\\\b","name":"constant.numeric.integer.wat"}]}]},"instructions":{"patterns":[{"comment":"Non-trapping float-to-int conversions","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Conversion instruction [nontrapping-float-to-int-conversions]","match":"\\\\b(i32|i64)\\\\.trunc_sat_f(?:32|64)_[su]\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"Sign-extension operators","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Numeric instruction (i32) [sign-extension-ops]","match":"\\\\b(i32)\\\\.(?:extend(?:8|16)_s)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Numeric instruction (i64) [sign-extension-ops]","match":"\\\\b(i64)\\\\.(?:extend(?:8|16|32)_s)\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"Bulk memory operations","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Memory instruction [bulk-memory-operations]","match":"\\\\b(memory)\\\\.(?:copy|fill|init|drop)\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"Fixed-width SIMD","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (v128) [simd]","match":"\\\\b(v128)\\\\.(?:const|and|or|xor|not|andnot|bitselect|load|store)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (i8x16) [simd]","match":"\\\\b(i8x16)\\\\.(?:shuffle|swizzle|splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane_[su]|add_saturate_[su]|sub_saturate_[su]|avgr_u|narrow_i16x8_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (i16x8) [simd]","match":"\\\\b(i16x8)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane_[su]|add_saturate_[su]|sub_saturate_[su]|avgr_u|load8x8_[su]|narrow_i32x4_[su]|widen_(low|high)_i8x16_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (i32x4) [simd]","match":"\\\\b(i32x4)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|eq|ne|lt_[su]|le_[su]|gt_[su]|ge_[su]|min_[su]|max_[su]|any_true|all_true|extract_lane|load16x4_[su]|trunc_sat_f32x4_[su]|widen_(low|high)_i16x8_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (i64x2) [simd]","match":"\\\\b(i64x2)\\\\.(?:splat|replace_lane|add|sub|mul|neg|shl|shr_[su]|extract_lane|load32x2_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (f32x4) [simd]","match":"\\\\b(f32x4)\\\\.(?:splat|replace_lane|add|sub|mul|neg|extract_lane|eq|ne|lt|le|gt|ge|abs|min|max|div|sqrt|convert_i32x4_[su])\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (f64x2) [simd]","match":"\\\\b(f64x2)\\\\.(?:splat|replace_lane|add|sub|mul|neg|extract_lane|eq|ne|lt|le|gt|ge|abs|min|max|div|sqrt)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (v8x16) [simd]","match":"\\\\b(v8x16)\\\\.(?:load_splat|shuffle|swizzle)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (v16x8) [simd]","match":"\\\\b(v16x8)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (v32x4) [simd]","match":"\\\\b(v32x4)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Vector instruction (v64x2) [simd]","match":"\\\\b(v64x2)\\\\.load_splat\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"Threads","patterns":[{"captures":{"1":{"name":"support.class.wat"},"2":{"name":"support.class.wat"},"3":{"name":"support.class.wat"},"4":{"name":"support.class.wat"}},"comment":"Atomic instruction (i32) [threads]","match":"\\\\b(i32)\\\\.(atomic)\\\\.(?:load(?:8_u|16_u)?|store(?:8|16)?|wait|(rmw)\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)|(rmw8|rmw16)\\\\.(?:add_u|sub_u|and_u|or_u|xor_u|xchg_u|cmpxchg_u))\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"},"2":{"name":"support.class.wat"},"3":{"name":"support.class.wat"},"4":{"name":"support.class.wat"}},"comment":"Atomic instruction (i64) [threads]","match":"\\\\b(i64)\\\\.(atomic)\\\\.(?:load(?:8_u|16_u|32_u)?|store(?:8|16|32)?|wait|(rmw)\\\\.(?:add|sub|and|or|xor|xchg|cmpxchg)|(rmw8|rmw16|rmw32)\\\\.(?:add_u|sub_u|and_u|or_u|xor_u|xchg_u|cmpxchg_u))\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Atomic instruction [threads]","match":"\\\\b(atomic)\\\\.(?:notify|fence)\\\\b","name":"keyword.operator.word.wat"},{"comment":"Shared modifier [threads]","match":"\\\\bshared\\\\b","name":"storage.modifier.wat"}]},{"comment":"Reference types","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Reference instruction [reference-types]","match":"\\\\b(ref)\\\\.(?:null|is_null|func|extern)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Table instruction [reference-types]","match":"\\\\b(table)\\\\.(?:get|size|grow|fill|init|copy)\\\\b","name":"keyword.operator.word.wat"},{"comment":"Type name [reference-types]","match":"\\\\b(?:externref|funcref|nullref)\\\\b","name":"entity.name.type.wat"}]},{"comment":"Tail Call","patterns":[{"comment":"Control instruction [tail-call]","match":"\\\\breturn_call(?:_indirect)?\\\\b","name":"keyword.control.wat"}]},{"comment":"Exception handling","patterns":[{"comment":"Control instruction [exception-handling]","match":"\\\\b(?:try|catch|throw|rethrow|br_on_exn)\\\\b","name":"keyword.control.wat"},{"comment":"Module element [exception-handling]","match":"(?<=\\\\()event\\\\b","name":"storage.type.wat"}]},{"comment":"Binaryen extensions","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Pseudo stack instruction [binaryen]","match":"\\\\b(i32|i64|f32|f64|externref|funcref|nullref|exnref)\\\\.(?:push|pop)\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"MVP","patterns":[{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Memory instruction (i32) [mvp]","match":"\\\\b(i32)\\\\.(?:load|load(?:8|16)(?:_[su])?|store(?:8|16)?)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Memory instruction (i64) [mvp]","match":"\\\\b(i64)\\\\.(?:load|load(?:8|16|32)(?:_[su])?|store(?:8|16|32)?)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Memory instruction (f32/f64) [mvp]","match":"\\\\b(f32|f64)\\\\.(?:load|store)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.memory.wat"}},"comment":"Memory instruction [mvp]","match":"\\\\b(memory)\\\\.(?:size|grow)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"entity.other.attribute-name.wat"}},"comment":"Memory instruction attribute [mvp]","match":"\\\\b(offset|align)=\\\\b"},{"captures":{"1":{"name":"support.class.local.wat"}},"comment":"Variable instruction (local) [mvp]","match":"\\\\b(local)\\\\.(?:get|set|tee)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.global.wat"}},"comment":"Variable instruction (global) [mvp]","match":"\\\\b(global)\\\\.(?:get|set)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Numeric instruction (i32/i64) [mvp]","match":"\\\\b(i32|i64)\\\\.(const|eqz|eq|ne|lt_[su]|gt_[su]|le_[su]|ge_[su]|clz|ctz|popcnt|add|sub|mul|div_[su]|rem_[su]|and|or|xor|shl|shr_[su]|rotl|rotr)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Numeric instruction (f32/f64) [mvp]","match":"\\\\b(f32|f64)\\\\.(const|eq|ne|lt|gt|le|ge|abs|neg|ceil|floor|trunc|nearest|sqrt|add|sub|mul|div|min|max|copysign)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Conversion instruction (i32) [mvp]","match":"\\\\b(i32)\\\\.(wrap_i64|trunc_(f32|f64)_[su]|reinterpret_f32)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Conversion instruction (i64) [mvp]","match":"\\\\b(i64)\\\\.(extend_i32_[su]|trunc_f(32|64)_[su]|reinterpret_f64)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Conversion instruction (f32) [mvp]","match":"\\\\b(f32)\\\\.(convert_i(32|64)_[su]|demote_f64|reinterpret_i32)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.type.wat"}},"comment":"Conversion instruction (f64) [mvp]","match":"\\\\b(f64)\\\\.(convert_i(32|64)_[su]|promote_f32|reinterpret_i64)\\\\b","name":"keyword.operator.word.wat"},{"comment":"Control instruction [mvp]","match":"\\\\b(?:unreachable|nop|block|loop|if|then|else|end|br|br_if|br_table|return|call|call_indirect)\\\\b","name":"keyword.control.wat"},{"comment":"Parametric instruction [mvp]","match":"\\\\b(?:drop|select)\\\\b","name":"keyword.operator.word.wat"}]},{"comment":"GC Instructions","patterns":[{"captures":{"1":{"name":"support.class.wat"}},"comment":"Reference Instructions [GC]","match":"\\\\b(ref)\\\\.(?:eq|test|cast)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Struct Instructions [GC]","match":"\\\\b(struct)\\\\.(?:new_canon|new_canon_default|get|get_s|get_u|set)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Array Instructions [GC]","match":"\\\\b(array)\\\\.(?:new_canon|new_canon_default|get|get_s|get_u|set|len|new_canon_fixed|new_canon_data|new_canon_elem)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"i31 Instructions [GC]","match":"\\\\b(i31)\\\\.(?:new|get_s|get_u)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Branch Instructions [GC]","match":"\\\\b(?:br_on_non_null|br_on_cast|br_on_cast_fail)\\\\b","name":"keyword.operator.word.wat"},{"captures":{"1":{"name":"support.class.wat"}},"comment":"Reference Instructions [GC]","match":"\\\\b(extern)\\\\.(?:internalize|externalize)\\\\b","name":"keyword.operator.word.wat"}]}]},"invalid":{"patterns":[{"match":"[^\\\\s()]+","name":"invalid.wat"}]},"modules":{"patterns":[{"comment":"Bulk memory operations","patterns":[{"captures":{"1":{"name":"storage.modifier.wat"}},"comment":"Passive modifier [bulk-memory-operations]","match":"(?<=\\\\(data)\\\\s+(passive)\\\\b"}]},{"comment":"MVP","patterns":[{"comment":"Module element [mvp]","match":"(?<=\\\\()(?:module|import|export|memory|data|table|elem|start|func|type|param|result|global|local)\\\\b","name":"storage.type.wat"},{"captures":{"1":{"name":"storage.modifier.wat"}},"comment":"Mutable global modifier [mvp]","match":"(?<=\\\\()\\\\s*(mut)\\\\b","name":"storage.modifier.wat"},{"captures":{"1":{"name":"entity.name.function.wat"}},"comment":"Function name [mvp]","match":"(?<=\\\\(func|\\\\(start|call|return_call|ref\\\\.func)\\\\s+(\\\\$[0-9A-Za-z!#$%&'*+\\\\-./:<=>?@\\\\\\\\^_\`|~]*)"},{"begin":"\\\\)\\\\s+(\\\\$[0-9A-Za-z!#$%&'*+\\\\-./:<=>?@\\\\\\\\^_\`|~]*)","beginCaptures":{"1":{"name":"entity.name.function.wat"}},"comment":"Function name(s) (elem) [mvp]","end":"\\\\)","patterns":[{"match":"(?<=\\\\s)\\\\$[0-9A-Za-z!#$%&'*+\\\\-./:<=>?@\\\\\\\\^_\`|~]*","name":"entity.name.function.wat"}]},{"captures":{"1":{"name":"support.type.function.wat"}},"comment":"Function type [mvp]","match":"(?<=\\\\(type)\\\\s+(\\\\$[0-9A-Za-z!#$%&'*+\\\\-./:<=>?@\\\\\\\\^_\`|~]*)"},{"comment":"Variable name or branch label [mvp]","match":"\\\\$[0-9A-Za-z!#$%&'*+\\\\-./:<=>?@\\\\\\\\^_\`|~]*\\\\b","name":"variable.other.wat"}]}]},"strings":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin"}},"comment":"String literal","end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end"}},"name":"string.quoted.double.wat","patterns":[{"match":"\\\\\\\\(n|t|\\\\\\\\|'|\\"|[0-9a-fA-F]{2})","name":"constant.character.escape.wat"}]},"types":{"patterns":[{"comment":"Fixed-width SIMD","patterns":[{"comment":"Type name [simd]","match":"\\\\bv128\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"Reference types","patterns":[{"comment":"Type name [reference-types]","match":"\\\\b(?:externref|funcref|nullref)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"Exception handling","patterns":[{"comment":"Type name [exception-handling]","match":"\\\\bexnref\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"MVP","patterns":[{"comment":"Type name [mvp]","match":"\\\\b(?:i32|i64|f32|f64)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"GC Types","patterns":[{"comment":"Type name [GC]","match":"\\\\b(?:i8|i16|ref|funcref|externref|anyref|eqref|i31ref|nullfuncref|nullexternref|structref|arrayref|nullref)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"GC Heap Types","patterns":[{"comment":"Type name [GC]","match":"\\\\b(?:type|func|extern|any|eq|nofunc|noextern|struct|array|none)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]},{"comment":"GC Structured and sub Types","patterns":[{"comment":"Type name [GC]","match":"\\\\b(?:struct|array|sub|final|rec|field|mut)\\\\b(?!\\\\.)","name":"entity.name.type.wat"}]}]}},"scopeName":"source.wat"}`)),e=[t];export{e as default};
|