diffing 0.1.2 → 0.2.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/README.md +75 -3
- package/dist/cli-agent-Vbs-ePHv.mjs +443 -0
- package/dist/cli.mjs +422 -10
- package/dist/client/assets/{angular-html-BABKYppC.js → angular-html-fdYbuxHF.js} +1 -1
- package/dist/client/assets/{angular-ts-CtXLuOQb.js → angular-ts-D3iFqR-R.js} +1 -1
- package/dist/client/assets/{apl-DOi69evI.js → apl-MnBV-iQN.js} +1 -1
- package/dist/client/assets/{astro-J8Em2tfW.js → astro-BrpK01E7.js} +1 -1
- package/dist/client/assets/{blade-B_tOnqRD.js → blade-CGmyBuwD.js} +1 -1
- package/dist/client/assets/{c-C0tRZWSi.js → c-xQnwtG9Y.js} +1 -1
- package/dist/client/assets/{cobol-Dj_rkgIY.js → cobol-ypVzOIQu.js} +1 -1
- package/dist/client/assets/{coffee-C6Vq4BFF.js → coffee-CrtE1uj2.js} +1 -1
- package/dist/client/assets/{cpp-Cno48fgF.js → cpp-DLd4XEKA.js} +1 -1
- package/dist/client/assets/{crystal-C7tmDnU1.js → crystal-CJYvpLt_.js} +1 -1
- package/dist/client/assets/{css-0v4o-iNQ.js → css-DrX2B9os.js} +1 -1
- package/dist/client/assets/{edge-CvULxRem.js → edge-BsQYk9OW.js} +1 -1
- package/dist/client/assets/{elixir-vRTauEw-.js → elixir-DU_VfGYR.js} +1 -1
- package/dist/client/assets/{elm-fLFTu1xn.js → elm-W4eOLEDv.js} +1 -1
- package/dist/client/assets/{erb-CtItcikB.js → erb-D9FdIJ2e.js} +1 -1
- package/dist/client/assets/{git-rebase-5MeRBXZD.js → git-rebase-BtPCXjbS.js} +1 -1
- package/dist/client/assets/{glimmer-js-B7yA-u8_.js → glimmer-js-BVfUGMUb.js} +1 -1
- package/dist/client/assets/{glimmer-ts-B2g1OaHc.js → glimmer-ts-BZEaHDZL.js} +1 -1
- package/dist/client/assets/{glsl-CqNPWp5Y.js → glsl-CSiNDuwt.js} +1 -1
- package/dist/client/assets/{graphql-CF78KbfF.js → graphql-Crf08Rhb.js} +1 -1
- package/dist/client/assets/{hack-Dz8fQ8O9.js → hack-DUiQuO20.js} +1 -1
- package/dist/client/assets/{haml-3Gbl257r.js → haml-BtvVTDRG.js} +1 -1
- package/dist/client/assets/{handlebars-5UZnh5L7.js → handlebars-Bu_cdZA_.js} +1 -1
- package/dist/client/assets/{html-JOaQiIkL.js → html-C4cun3zD.js} +1 -1
- package/dist/client/assets/{html-derivative-GyX6oYy3.js → html-derivative-CQnD80KV.js} +1 -1
- package/dist/client/assets/{http-t6uVAxgS.js → http-DuOJF9Kg.js} +1 -1
- package/dist/client/assets/{hurl-OLQZpg0E.js → hurl-DgrdYsYh.js} +1 -1
- package/dist/client/assets/{index-CghVgrAF.js → index-CZZd7iTh.js} +99 -68
- package/dist/client/assets/index-CkC-EvWo.css +1 -0
- package/dist/client/assets/{java-BqL_yaya.js → java-D-vtFiv8.js} +1 -1
- package/dist/client/assets/{javascript-CxBNAxR5.js → javascript-CFYFXvdN.js} +1 -1
- package/dist/client/assets/{jinja-CuaK033Z.js → jinja-fZvIg2_s.js} +1 -1
- package/dist/client/assets/{jison-aL_w2vvo.js → jison-DEzxLq5g.js} +1 -1
- package/dist/client/assets/{json-Byruj-EC.js → json-QM4VBqMC.js} +1 -1
- package/dist/client/assets/{jsx-CosY06uG.js → jsx-DLzUM_cC.js} +1 -1
- package/dist/client/assets/{julia-u1y7fV63.js → julia-Dwt1SIpn.js} +1 -1
- package/dist/client/assets/{just-DS4T9P_K.js → just-Dwp-hLcL.js} +1 -1
- package/dist/client/assets/{latex-C9c2IWW4.js → latex-CMF1JViz.js} +1 -1
- package/dist/client/assets/{liquid-DcXQgkEV.js → liquid-czkpOZWY.js} +1 -1
- package/dist/client/assets/{lua-DWe0hUn1.js → lua-DE5PD0Vh.js} +1 -1
- package/dist/client/assets/{marko-CIW7o2up.js → marko-DHeEvZiW.js} +1 -1
- package/dist/client/assets/{mdc-DKjGzb4k.js → mdc-B941liUQ.js} +1 -1
- package/dist/client/assets/{nginx-CBXzDlkk.js → nginx-Pb9t8c-r.js} +1 -1
- package/dist/client/assets/{nim-CBf_vdee.js → nim-MMUvW_R1.js} +1 -1
- package/dist/client/assets/{perl-xC9qc39I.js → perl-DXwXRmuC.js} +1 -1
- package/dist/client/assets/{php-n4vnn5oz.js → php-D42kv59r.js} +1 -1
- package/dist/client/assets/{pug-Db536lA_.js → pug-v0iesski.js} +1 -1
- package/dist/client/assets/{qml-CrATLnNN.js → qml-spxQQ-ei.js} +1 -1
- package/dist/client/assets/{r-DBQ-dydl.js → r-CobWTBG9.js} +1 -1
- package/dist/client/assets/{razor-C_wvK1iP.js → razor-B-_Ww3MB.js} +1 -1
- package/dist/client/assets/{regexp-DowFj0Xd.js → regexp-BJMVs8R0.js} +1 -1
- package/dist/client/assets/{rst-rY4UPiwe.js → rst-BHcaWsY0.js} +1 -1
- package/dist/client/assets/{ruby-C4cISY4u.js → ruby-BCMT6kog.js} +1 -1
- package/dist/client/assets/{sas-ui1PNNkD.js → sas-DHfZnd3R.js} +1 -1
- package/dist/client/assets/{scss-BZrs95TC.js → scss-DjDsJvDO.js} +1 -1
- package/dist/client/assets/{shellscript-D9YVFS67.js → shellscript-B6qaIiU-.js} +1 -1
- package/dist/client/assets/{shellsession-DK7LMzYg.js → shellsession-ByCeir2b.js} +1 -1
- package/dist/client/assets/{soy-CNkc-Oji.js → soy-C6WpnMSF.js} +1 -1
- package/dist/client/assets/{sql-BvRdqBMa.js → sql-BIvSNLV_.js} +1 -1
- package/dist/client/assets/{stata-Bawjgtiz.js → stata-PG9iZ--I.js} +1 -1
- package/dist/client/assets/{surrealql-7v7lT5jp.js → surrealql-CmvCzG09.js} +1 -1
- package/dist/client/assets/{svelte-p7w_kluv.js → svelte-ChumG88s.js} +1 -1
- package/dist/client/assets/{templ-0Gi_yZZr.js → templ-CmzuRY_a.js} +1 -1
- package/dist/client/assets/{tex-nZ_J3lks.js → tex-DL8t-_eJ.js} +1 -1
- package/dist/client/assets/{ts-tags-CuG-Aj5j.js → ts-tags-BFfE0Egm.js} +1 -1
- package/dist/client/assets/{tsx-Cc7GNb_V.js → tsx-C1bFyHcE.js} +1 -1
- package/dist/client/assets/{twig-BBlmihVM.js → twig-DkIluZEQ.js} +1 -1
- package/dist/client/assets/{typescript-aiXwsZhm.js → typescript-Gc86Bc3j.js} +1 -1
- package/dist/client/assets/{vue-Cs5tk2kn.js → vue-C88JmL53.js} +1 -1
- package/dist/client/assets/{vue-html-BEI_B8Ml.js → vue-html-Cry4aksC.js} +1 -1
- package/dist/client/assets/{vue-vine-CpWdOkP4.js → vue-vine-zlDkA3Ui.js} +1 -1
- package/dist/client/assets/{xml-madLQSkS.js → xml-NvwpIFDy.js} +1 -1
- package/dist/client/assets/{xsl-CqZR37V9.js → xsl-CDjXvY9w.js} +1 -1
- package/dist/client/assets/{yaml-DHr9ndbK.js → yaml-Bh-LPjcH.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/mcp-DKlThflu.mjs +253 -0
- package/dist/server-lock-CAdqFSfl.mjs +691 -0
- package/package.json +1 -1
- package/dist/client/assets/index-CmfB2R-C.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./index-
|
|
1
|
+
import{t as e}from"./index-CZZd7iTh.js";import{t}from"./java-D-vtFiv8.js";var n=e({default:()=>i}),r=Object.freeze(JSON.parse(`{"displayName":"XML","name":"xml","patterns":[{"begin":"(<\\\\?)\\\\s*([-0-9A-Z_a-z]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"}},"end":"(\\\\?>)","name":"meta.tag.preprocessor.xml","patterns":[{"match":" ([-A-Za-z]+)","name":"entity.other.attribute-name.xml"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"begin":"(<!)(DOCTYPE)\\\\s+([:A-Z_a-z][-.0-:A-Z_a-z]*)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.doctype.xml"},"3":{"name":"variable.language.documentroot.xml"}},"end":"\\\\s*(>)","name":"meta.tag.sgml.doctype.xml","patterns":[{"include":"#internalSubset"}]},{"include":"#comments"},{"begin":"(<)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(?=(\\\\s[^>]*)?></\\\\2>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.xml"},"3":{"name":"entity.name.tag.namespace.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)(</)((?:([-0-9A-Z_a-z]+)(:))?([-0-:A-Z_a-z]+))(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"punctuation.definition.tag.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"entity.name.tag.namespace.xml"},"5":{"name":"punctuation.separator.namespace.xml"},"6":{"name":"entity.name.tag.localname.xml"},"7":{"name":"punctuation.definition.tag.xml"}},"name":"meta.tag.no-content.xml","patterns":[{"include":"#tagStuff"}]},{"begin":"(</?)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(/?>)","name":"meta.tag.xml","patterns":[{"include":"#tagStuff"}]},{"include":"#entity"},{"include":"#bare-ampersand"},{"begin":"<%@","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java-props.embedded.xml","patterns":[{"match":"page|include|taglib","name":"keyword.other.page-props.xml"}]},{"begin":"<%[!=]?(?!--)","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.xml"}},"end":"(?!--)%>","endCaptures":{"0":{"name":"punctuation.section.embedded.end.xml"}},"name":"source.java.embedded.xml","patterns":[{"include":"source.java"}]},{"begin":"<!\\\\[CDATA\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"]]>","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.unquoted.cdata.xml"}],"repository":{"EntityDecl":{"begin":"(<!)(ENTITY)\\\\s+(%\\\\s+)?([:A-Z_a-z][-.0-:A-Z_a-z]*)(\\\\s+(?:SYSTEM|PUBLIC)\\\\s+)?","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"keyword.other.entity.xml"},"3":{"name":"punctuation.definition.entity.xml"},"4":{"name":"variable.language.entity.xml"},"5":{"name":"keyword.other.entitytype.xml"}},"end":"(>)","patterns":[{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},"bare-ampersand":{"match":"&","name":"invalid.illegal.bad-ampersand.xml"},"comments":{"patterns":[{"begin":"<%--","captures":{"0":{"name":"punctuation.definition.comment.xml"},"end":"--%>","name":"comment.block.xml"}},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.xml"}},"end":"-->","name":"comment.block.xml","patterns":[{"begin":"--(?!>)","captures":{"0":{"name":"invalid.illegal.bad-comments-or-CDATA.xml"}}}]}]},"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"entity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(&)([:A-Z_a-z][-.0-:A-Z_a-z]*|#[0-9]+|#x\\\\h+)(;)","name":"constant.character.entity.xml"},"internalSubset":{"begin":"(\\\\[)","captures":{"1":{"name":"punctuation.definition.constant.xml"}},"end":"(])","name":"meta.internalsubset.xml","patterns":[{"include":"#EntityDecl"},{"include":"#parameterEntity"},{"include":"#comments"}]},"parameterEntity":{"captures":{"1":{"name":"punctuation.definition.constant.xml"},"3":{"name":"punctuation.definition.constant.xml"}},"match":"(%)([:A-Z_a-z][-.0-:A-Z_a-z]*)(;)","name":"constant.character.parameter-entity.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml","patterns":[{"include":"#entity"},{"include":"#bare-ampersand"}]},"tagStuff":{"patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":"(?:^|\\\\s+)(?:([-.\\\\w]+)((:)))?([-.:\\\\w]+)\\\\s*="},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]}},"scopeName":"text.xml","embeddedLangs":["java"]}`)),i=[...t,r];export{n,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./xml-
|
|
1
|
+
import{t as e}from"./xml-NvwpIFDy.js";var t=Object.freeze(JSON.parse(`{"displayName":"XSL","name":"xsl","patterns":[{"begin":"(<)(xsl)((:))(template)","captures":{"1":{"name":"punctuation.definition.tag.xml"},"2":{"name":"entity.name.tag.namespace.xml"},"3":{"name":"entity.name.tag.xml"},"4":{"name":"punctuation.separator.namespace.xml"},"5":{"name":"entity.name.tag.localname.xml"}},"end":"(>)","name":"meta.tag.xml.template","patterns":[{"captures":{"1":{"name":"entity.other.attribute-name.namespace.xml"},"2":{"name":"entity.other.attribute-name.xml"},"3":{"name":"punctuation.separator.namespace.xml"},"4":{"name":"entity.other.attribute-name.localname.xml"}},"match":" (?:([-0-9A-Z_a-z]+)((:)))?([-A-Za-z]+)"},{"include":"#doublequotedString"},{"include":"#singlequotedString"}]},{"include":"text.xml"}],"repository":{"doublequotedString":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.double.xml"},"singlequotedString":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.xml"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.xml"}},"name":"string.quoted.single.xml"}},"scopeName":"text.xml.xsl","embeddedLangs":["xml"]}`)),n=[...e,t];export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./index-CghVgrAF.js";var t=e({default:()=>n}),n=[Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`))];export{t as n,n as t};
|
|
1
|
+
import{t as e}from"./index-CZZd7iTh.js";var t=e({default:()=>n}),n=[Object.freeze(JSON.parse(`{"displayName":"YAML","fileTypes":["yaml","yml","rviz","reek","clang-format","yaml-tmlanguage","syntax","sublime-syntax"],"firstLineMatch":"^%YAML( ?1.\\\\d+)?","name":"yaml","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#directive"},{"match":"^---","name":"entity.other.document.begin.yaml"},{"match":"^\\\\.{3}","name":"entity.other.document.end.yaml"},{"include":"#node"}],"repository":{"block-collection":{"patterns":[{"include":"#block-sequence"},{"include":"#block-mapping"}]},"block-mapping":{"patterns":[{"include":"#block-pair"}]},"block-node":{"patterns":[{"include":"#prototype"},{"include":"#block-scalar"},{"include":"#block-collection"},{"include":"#flow-scalar-plain-out"},{"include":"#flow-node"}]},"block-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"1":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=\\\\?)|^ *(:)|(:)","endCaptures":{"1":{"name":"punctuation.separator.key-value.mapping.yaml"},"2":{"name":"invalid.illegal.expected-newline.yaml"}},"name":"meta.block-mapping.yaml","patterns":[{"include":"#block-node"}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S)([^:\\\\s]|:\\\\S|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},{"match":":(?=\\\\s|$)","name":"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{"begin":"(?:(\\\\|)|(>))([1-9])?([-+])?(.*\\\\n?)","beginCaptures":{"1":{"name":"keyword.control.flow.block-scalar.literal.yaml"},"2":{"name":"keyword.control.flow.block-scalar.folded.yaml"},"3":{"name":"constant.numeric.indentation-indicator.yaml"},"4":{"name":"storage.modifier.chomping-indicator.yaml"},"5":{"patterns":[{"include":"#comment"},{"match":".+","name":"invalid.illegal.expected-comment-or-newline.yaml"}]}},"end":"^(?=\\\\S)|(?!\\\\G)","patterns":[{"begin":"^( +)(?! )","end":"^(?!\\\\1|\\\\s*$)","name":"string.unquoted.block.yaml"}]},"block-sequence":{"match":"(-)(?!\\\\S)","name":"punctuation.definition.block.sequence.item.yaml"},"comment":{"begin":"(?:^([\\\\t ]*)|[\\\\t ]+)(?=#\\\\p{print}*$)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}},"end":"\\\\n","name":"comment.line.number-sign.yaml"}]},"directive":{"begin":"^%","beginCaptures":{"0":{"name":"punctuation.definition.directive.begin.yaml"}},"end":"(?=$|[\\\\t ]+($|#))","name":"meta.directive.yaml","patterns":[{"captures":{"1":{"name":"keyword.other.directive.yaml.yaml"},"2":{"name":"constant.numeric.yaml-version.yaml"}},"match":"\\\\G(YAML)[\\\\t ]+(\\\\d+\\\\.\\\\d+)"},{"captures":{"1":{"name":"keyword.other.directive.tag.yaml"},"2":{"name":"storage.type.tag-handle.yaml"},"3":{"name":"support.type.tag-prefix.yaml"}},"match":"\\\\G(TAG)(?:[\\\\t ]+(!(?:[-0-9A-Za-z]*!)?)(?:[\\\\t ]+(!(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])*|(?![]!,\\\\[{}])(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+))?)?"},{"captures":{"1":{"name":"support.other.directive.reserved.yaml"},"2":{"name":"string.unquoted.directive-name.yaml"},"3":{"name":"string.unquoted.directive-parameter.yaml"}},"match":"\\\\G(\\\\w+)(?:[\\\\t ]+(\\\\w+)(?:[\\\\t ]+(\\\\w+))?)?"},{"match":"\\\\S+","name":"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{"captures":{"1":{"name":"keyword.control.flow.alias.yaml"},"2":{"name":"punctuation.definition.alias.yaml"},"3":{"name":"variable.other.alias.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"((\\\\*))([^],/\\\\[{}\\\\s]+)([^],}\\\\s]\\\\S*)?"},"flow-collection":{"patterns":[{"include":"#flow-sequence"},{"include":"#flow-mapping"}]},"flow-mapping":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.mapping.begin.yaml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.mapping.end.yaml"}},"name":"meta.flow-mapping.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.mapping.yaml"},{"include":"#flow-pair"}]},"flow-node":{"patterns":[{"include":"#prototype"},{"include":"#flow-alias"},{"include":"#flow-collection"},{"include":"#flow-scalar"}]},"flow-pair":{"patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"punctuation.definition.key-value.begin.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.explicit.yaml","patterns":[{"include":"#prototype"},{"include":"#flow-pair"},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","beginCaptures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","patterns":[{"include":"#flow-value"}]}]},{"begin":"(?=(?:[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s])([^],:\\\\[{}\\\\s]|:[^],\\\\[{}\\\\s]|\\\\s+(?![#\\\\s]))*\\\\s*:(\\\\s|$))","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"meta.flow-pair.key.yaml","patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","beginCaptures":{"0":{"name":"entity.name.tag.yaml"}},"contentName":"entity.name.tag.yaml","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},{"include":"#flow-node"},{"begin":":(?=\\\\s|$|[],\\\\[{}])","captures":{"0":{"name":"punctuation.separator.key-value.mapping.yaml"}},"end":"(?=[],}])","name":"meta.flow-pair.yaml","patterns":[{"include":"#flow-value"}]}]},"flow-scalar":{"patterns":[{"include":"#flow-scalar-double-quoted"},{"include":"#flow-scalar-single-quoted"},{"include":"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.double.yaml","patterns":[{"match":"\\\\\\\\([ \\"/0LN\\\\\\\\_abefnprtv]|x\\\\d\\\\d|u\\\\d{4}|U\\\\d{8})","name":"constant.character.escape.yaml"},{"match":"\\\\\\\\\\\\n","name":"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{"patterns":[{"include":"#flow-scalar-plain-in-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?][^],\\\\[{}\\\\s]","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])","name":"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$)|\\\\s*:[],\\\\[{}]|\\\\s*[],\\\\[{}])"}]},"flow-scalar-plain-out":{"patterns":[{"include":"#flow-scalar-plain-out-implicit-type"},{"begin":"[^-\\\\]!\\"#%\\\\&'*,:>?@\\\\[\`{|}\\\\s]|[-:?]\\\\S","end":"(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))","name":"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{"patterns":[{"captures":{"1":{"name":"constant.language.null.yaml"},"2":{"name":"constant.language.boolean.yaml"},"3":{"name":"constant.numeric.integer.yaml"},"4":{"name":"constant.numeric.float.yaml"},"5":{"name":"constant.other.timestamp.yaml"},"6":{"name":"constant.language.value.yaml"},"7":{"name":"constant.language.merge.yaml"}},"match":"(?:(null|Null|NULL|~)|([Yy]|yes|Yes|YES|[Nn]|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)|([-+]?0b[01_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[_\\\\h]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)|([-+]?(?:[0-9][0-9_]*)?\\\\.[.0-9]*(?:[Ee][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*|[-+]?\\\\.(?:inf|Inf|INF)|\\\\.(?:nan|NaN|NAN))|(\\\\d{4}-\\\\d{2}-\\\\d{2}|\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}(?:[Tt]|[\\\\t ]+)\\\\d{1,2}:\\\\d{2}:\\\\d{2}(?:\\\\.\\\\d*)?(?:[\\\\t ]*Z|[-+]\\\\d{1,2}(?::\\\\d{1,2})?)?)|(=)|(<<))(?=\\\\s*$|\\\\s+#|\\\\s*:(\\\\s|$))"}]},"flow-scalar-single-quoted":{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"end":"'(?!')","endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}},"name":"string.quoted.single.yaml","patterns":[{"match":"''","name":"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.sequence.begin.yaml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.sequence.end.yaml"}},"name":"meta.flow-sequence.yaml","patterns":[{"include":"#prototype"},{"match":",","name":"punctuation.separator.sequence.yaml"},{"include":"#flow-pair"},{"include":"#flow-node"}]},"flow-value":{"patterns":[{"begin":"\\\\G(?![],}])","end":"(?=[],}])","name":"meta.flow-pair.value.yaml","patterns":[{"include":"#flow-node"}]}]},"node":{"patterns":[{"include":"#block-node"}]},"property":{"begin":"(?=[!\\\\&])","end":"(?!\\\\G)","name":"meta.property.yaml","patterns":[{"captures":{"1":{"name":"keyword.control.property.anchor.yaml"},"2":{"name":"punctuation.definition.anchor.yaml"},"3":{"name":"entity.name.type.anchor.yaml"},"4":{"name":"invalid.illegal.character.anchor.yaml"}},"match":"\\\\G((&))([^],/\\\\[{}\\\\s]+)(\\\\S+)?"},{"match":"\\\\G!(?:<(?:%\\\\h{2}|[]!#$\\\\&-;=?-\\\\[_a-z~])+>|(?:[-0-9A-Za-z]*!)?(?:%\\\\h{2}|[#$\\\\&-+\\\\--;=?-Z_a-z~])+|)(?=[\\\\t ]|$)","name":"storage.type.tag-handle.yaml"},{"match":"\\\\S+","name":"invalid.illegal.tag-handle.yaml"}]},"prototype":{"patterns":[{"include":"#comment"},{"include":"#property"}]}},"scopeName":"source.yaml","aliases":["yml"]}`))];export{t as n,n as t};
|
package/dist/client/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-CZZd7iTh.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CkC-EvWo.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { c as formatComments, n as readServerLock, o as formatPlanReview, t as isLockAlive } from "./server-lock-CAdqFSfl.mjs";
|
|
2
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/mcp.ts
|
|
6
|
+
/**
|
|
7
|
+
* MCP server exposing diffing's review handoff as cross-vendor tools, so any
|
|
8
|
+
* MCP-capable agent (Claude, Cursor, Codex, Gemini, …) can drive the same loop
|
|
9
|
+
* the CLI does. Launched via `diffing mcp` over stdio. The port is discovered
|
|
10
|
+
* per call from the per-repo lockfile, so the MCP server works whether it
|
|
11
|
+
* starts before or after the diffing web server.
|
|
12
|
+
*
|
|
13
|
+
* Client config (no port needed):
|
|
14
|
+
* { "mcpServers": { "diffing": { "command": "diffing", "args": ["mcp"] } } }
|
|
15
|
+
*/
|
|
16
|
+
/** Resolve the running server's base URL, throwing a tool-friendly error. */
|
|
17
|
+
function baseUrl() {
|
|
18
|
+
const lock = readServerLock();
|
|
19
|
+
if (!lock || !isLockAlive(lock)) throw new Error("No diffing server running for this repo. Start one with `diffing` in the repository, then retry.");
|
|
20
|
+
return `http://${lock.host === "0.0.0.0" || lock.host === "::" ? "127.0.0.1" : lock.host}:${lock.port}`;
|
|
21
|
+
}
|
|
22
|
+
function textResult(text, structuredContent) {
|
|
23
|
+
return {
|
|
24
|
+
content: [{
|
|
25
|
+
type: "text",
|
|
26
|
+
text
|
|
27
|
+
}],
|
|
28
|
+
...structuredContent ? { structuredContent } : {}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
async function startMcpServer() {
|
|
32
|
+
const server = new McpServer({
|
|
33
|
+
name: "diffing",
|
|
34
|
+
version: "0.1.0"
|
|
35
|
+
});
|
|
36
|
+
server.registerTool("await_review", {
|
|
37
|
+
title: "Await review",
|
|
38
|
+
description: "Block until the human clicks \"Send to agent\" in the diffing UI, then return the review comments as XML. Re-poll-safe: returns the next review batch.",
|
|
39
|
+
inputSchema: { timeoutSeconds: z.number().optional() }
|
|
40
|
+
}, async ({ timeoutSeconds }, extra) => {
|
|
41
|
+
const base = baseUrl();
|
|
42
|
+
const totalBudgetMs = (timeoutSeconds ?? 570) * 1e3;
|
|
43
|
+
const progressToken = extra?._meta?.progressToken;
|
|
44
|
+
let sinceRound = 0;
|
|
45
|
+
try {
|
|
46
|
+
sinceRound = (await fetch(`${base}/api/review/status`).then((r) => r.json())).round ?? 0;
|
|
47
|
+
} catch {}
|
|
48
|
+
const deadline = Date.now() + totalBudgetMs;
|
|
49
|
+
let cycle = 0;
|
|
50
|
+
while (Date.now() < deadline) {
|
|
51
|
+
const result = await (await fetch(`${base}/api/review/await?timeoutMs=25000&sinceRound=${sinceRound}`, { signal: extra?.signal })).json();
|
|
52
|
+
if (result.status === "released") return textResult(result.payload.commentXml, {
|
|
53
|
+
round: result.payload.round,
|
|
54
|
+
openCount: result.payload.openCount,
|
|
55
|
+
comments: result.payload.comments
|
|
56
|
+
});
|
|
57
|
+
sinceRound = result.round ?? sinceRound;
|
|
58
|
+
cycle += 1;
|
|
59
|
+
if (progressToken !== void 0) await extra?.sendNotification?.({
|
|
60
|
+
method: "notifications/progress",
|
|
61
|
+
params: {
|
|
62
|
+
progressToken,
|
|
63
|
+
progress: cycle,
|
|
64
|
+
message: "Waiting for the human to send their review…"
|
|
65
|
+
}
|
|
66
|
+
}).catch(() => {});
|
|
67
|
+
}
|
|
68
|
+
return textResult("No review was sent within the timeout. Call await_review again to keep waiting.");
|
|
69
|
+
});
|
|
70
|
+
server.registerTool("list_comments", {
|
|
71
|
+
title: "List comments",
|
|
72
|
+
description: "Fetch the current review comments as XML (and structured data). Set openOnly to skip resolved comments.",
|
|
73
|
+
inputSchema: { openOnly: z.boolean().optional() }
|
|
74
|
+
}, async ({ openOnly }) => {
|
|
75
|
+
const all = await fetch(`${baseUrl()}/api/comments`).then((r) => r.json());
|
|
76
|
+
const selected = openOnly ? all.filter((c) => c.status === "open") : all;
|
|
77
|
+
return textResult(formatComments(selected), { comments: selected });
|
|
78
|
+
});
|
|
79
|
+
server.registerTool("reply_to_comment", {
|
|
80
|
+
title: "Reply to comment",
|
|
81
|
+
description: "Post an agent reply to a review comment. Shows up in the diffing UI in real time.",
|
|
82
|
+
inputSchema: {
|
|
83
|
+
commentId: z.string(),
|
|
84
|
+
body: z.string(),
|
|
85
|
+
model: z.string().optional()
|
|
86
|
+
}
|
|
87
|
+
}, async ({ commentId, body, model }) => {
|
|
88
|
+
const res = await fetch(`${baseUrl()}/api/comments/${commentId}/replies`, {
|
|
89
|
+
method: "POST",
|
|
90
|
+
headers: { "Content-Type": "application/json" },
|
|
91
|
+
body: JSON.stringify({
|
|
92
|
+
body,
|
|
93
|
+
role: "agent",
|
|
94
|
+
model
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
if (res.status === 404) throw new Error(`Comment ${commentId} not found.`);
|
|
98
|
+
if (!res.ok) throw new Error(`Failed to reply: HTTP ${res.status}`);
|
|
99
|
+
return textResult(`Replied to ${commentId}.`);
|
|
100
|
+
});
|
|
101
|
+
server.registerTool("resolve_comment", {
|
|
102
|
+
title: "Resolve comment",
|
|
103
|
+
description: "Mark a review comment as resolved.",
|
|
104
|
+
inputSchema: { commentId: z.string() }
|
|
105
|
+
}, async ({ commentId }) => {
|
|
106
|
+
const res = await fetch(`${baseUrl()}/api/comments/${commentId}`, {
|
|
107
|
+
method: "PUT",
|
|
108
|
+
headers: { "Content-Type": "application/json" },
|
|
109
|
+
body: JSON.stringify({ status: "resolved" })
|
|
110
|
+
});
|
|
111
|
+
if (res.status === 404) throw new Error(`Comment ${commentId} not found.`);
|
|
112
|
+
if (!res.ok) throw new Error(`Failed to resolve: HTTP ${res.status}`);
|
|
113
|
+
return textResult(`Resolved ${commentId}.`);
|
|
114
|
+
});
|
|
115
|
+
server.registerTool("submit_plan", {
|
|
116
|
+
title: "Submit plan for review",
|
|
117
|
+
description: "Submit a markdown plan for the human to review in the diffing UI. Returns the plan id and review URL. Pass an existing planId to resubmit a revised version for another review round.",
|
|
118
|
+
inputSchema: {
|
|
119
|
+
title: z.string().optional(),
|
|
120
|
+
body: z.string(),
|
|
121
|
+
source: z.string().optional(),
|
|
122
|
+
model: z.string().optional(),
|
|
123
|
+
planId: z.string().optional()
|
|
124
|
+
}
|
|
125
|
+
}, async ({ title, body, source, model, planId }) => {
|
|
126
|
+
const base = baseUrl();
|
|
127
|
+
const res = await fetch(`${base}/api/plans`, {
|
|
128
|
+
method: "POST",
|
|
129
|
+
headers: { "Content-Type": "application/json" },
|
|
130
|
+
body: JSON.stringify({
|
|
131
|
+
id: planId,
|
|
132
|
+
title,
|
|
133
|
+
body,
|
|
134
|
+
source,
|
|
135
|
+
model
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
if (!res.ok) throw new Error(`Failed to submit plan: HTTP ${res.status}`);
|
|
139
|
+
const plan = await res.json();
|
|
140
|
+
return textResult(`Submitted plan ${plan.id} (v${plan.version}). The human can review it at ${base}/plan/${plan.id}. Call await_plan_review to block until they decide.`, {
|
|
141
|
+
planId: plan.id,
|
|
142
|
+
version: plan.version,
|
|
143
|
+
url: `${base}/plan/${plan.id}`
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
server.registerTool("await_plan_review", {
|
|
147
|
+
title: "Await plan review",
|
|
148
|
+
description: "Block until the human approves, rejects, or requests changes on a plan in the diffing UI, then return the verdict and inline comments as XML. Re-poll-safe.",
|
|
149
|
+
inputSchema: { timeoutSeconds: z.number().optional() }
|
|
150
|
+
}, async ({ timeoutSeconds }, extra) => {
|
|
151
|
+
const base = baseUrl();
|
|
152
|
+
const totalBudgetMs = (timeoutSeconds ?? 570) * 1e3;
|
|
153
|
+
const progressToken = extra?._meta?.progressToken;
|
|
154
|
+
let sinceRound = 0;
|
|
155
|
+
try {
|
|
156
|
+
sinceRound = (await fetch(`${base}/api/plan-review/status`).then((r) => r.json())).round ?? 0;
|
|
157
|
+
} catch {}
|
|
158
|
+
const deadline = Date.now() + totalBudgetMs;
|
|
159
|
+
let cycle = 0;
|
|
160
|
+
while (Date.now() < deadline) {
|
|
161
|
+
const result = await (await fetch(`${base}/api/plan-review/await?timeoutMs=25000&sinceRound=${sinceRound}`, { signal: extra?.signal })).json();
|
|
162
|
+
if (result.status === "released") return textResult(result.payload.reviewXml, {
|
|
163
|
+
round: result.payload.round,
|
|
164
|
+
planId: result.payload.planId,
|
|
165
|
+
decision: result.payload.decision,
|
|
166
|
+
decisionComment: result.payload.decisionComment,
|
|
167
|
+
openCommentCount: result.payload.openCommentCount,
|
|
168
|
+
plan: result.payload.plan
|
|
169
|
+
});
|
|
170
|
+
sinceRound = result.round ?? sinceRound;
|
|
171
|
+
cycle += 1;
|
|
172
|
+
if (progressToken !== void 0) await extra?.sendNotification?.({
|
|
173
|
+
method: "notifications/progress",
|
|
174
|
+
params: {
|
|
175
|
+
progressToken,
|
|
176
|
+
progress: cycle,
|
|
177
|
+
message: "Waiting for the human to review the plan…"
|
|
178
|
+
}
|
|
179
|
+
}).catch(() => {});
|
|
180
|
+
}
|
|
181
|
+
return textResult("No plan decision within the timeout. Call await_plan_review again to keep waiting.");
|
|
182
|
+
});
|
|
183
|
+
server.registerTool("list_plans", {
|
|
184
|
+
title: "List plans",
|
|
185
|
+
description: "Fetch all submitted plans with their current decision and open-comment counts.",
|
|
186
|
+
inputSchema: {}
|
|
187
|
+
}, async () => {
|
|
188
|
+
const all = await fetch(`${baseUrl()}/api/plans`).then((r) => r.json());
|
|
189
|
+
return textResult(all.map((p) => {
|
|
190
|
+
const open = (p.comments ?? []).filter((c) => c.status === "open").length;
|
|
191
|
+
return `${p.id} [${p.decision}] v${p.version} — ${open} open comment(s) — ${p.title}`;
|
|
192
|
+
}).join("\n") || "No plans submitted yet.", { plans: all });
|
|
193
|
+
});
|
|
194
|
+
server.registerTool("get_plan", {
|
|
195
|
+
title: "Get plan",
|
|
196
|
+
description: "Fetch a single plan as the <plan-review> XML (and structured data), including its decision and inline comments.",
|
|
197
|
+
inputSchema: { planId: z.string() }
|
|
198
|
+
}, async ({ planId }) => {
|
|
199
|
+
const res = await fetch(`${baseUrl()}/api/plans/${planId}`);
|
|
200
|
+
if (res.status === 404) throw new Error(`Plan ${planId} not found.`);
|
|
201
|
+
if (!res.ok) throw new Error(`Failed to fetch plan: HTTP ${res.status}`);
|
|
202
|
+
const plan = await res.json();
|
|
203
|
+
return textResult(formatPlanReview(plan), { plan });
|
|
204
|
+
});
|
|
205
|
+
/** Resolve which plan owns a comment id, for the reply/resolve tools. */
|
|
206
|
+
async function findPlanForComment(base, commentId) {
|
|
207
|
+
return (await fetch(`${base}/api/plans`).then((r) => r.json())).find((p) => (p.comments ?? []).some((c) => c.id === commentId)) ?? null;
|
|
208
|
+
}
|
|
209
|
+
server.registerTool("reply_to_plan_comment", {
|
|
210
|
+
title: "Reply to plan comment",
|
|
211
|
+
description: "Post an agent reply to a plan review comment. Shows up in the diffing UI in real time.",
|
|
212
|
+
inputSchema: {
|
|
213
|
+
commentId: z.string(),
|
|
214
|
+
body: z.string(),
|
|
215
|
+
model: z.string().optional()
|
|
216
|
+
}
|
|
217
|
+
}, async ({ commentId, body, model }) => {
|
|
218
|
+
const base = baseUrl();
|
|
219
|
+
const plan = await findPlanForComment(base, commentId);
|
|
220
|
+
if (!plan) throw new Error(`Plan comment ${commentId} not found.`);
|
|
221
|
+
const res = await fetch(`${base}/api/plans/${plan.id}/comments/${commentId}/replies`, {
|
|
222
|
+
method: "POST",
|
|
223
|
+
headers: { "Content-Type": "application/json" },
|
|
224
|
+
body: JSON.stringify({
|
|
225
|
+
body,
|
|
226
|
+
role: "agent",
|
|
227
|
+
model
|
|
228
|
+
})
|
|
229
|
+
});
|
|
230
|
+
if (!res.ok) throw new Error(`Failed to reply: HTTP ${res.status}`);
|
|
231
|
+
return textResult(`Replied to plan comment ${commentId}.`);
|
|
232
|
+
});
|
|
233
|
+
server.registerTool("resolve_plan_comment", {
|
|
234
|
+
title: "Resolve plan comment",
|
|
235
|
+
description: "Mark a plan review comment as resolved.",
|
|
236
|
+
inputSchema: { commentId: z.string() }
|
|
237
|
+
}, async ({ commentId }) => {
|
|
238
|
+
const base = baseUrl();
|
|
239
|
+
const plan = await findPlanForComment(base, commentId);
|
|
240
|
+
if (!plan) throw new Error(`Plan comment ${commentId} not found.`);
|
|
241
|
+
const res = await fetch(`${base}/api/plans/${plan.id}/comments/${commentId}`, {
|
|
242
|
+
method: "PUT",
|
|
243
|
+
headers: { "Content-Type": "application/json" },
|
|
244
|
+
body: JSON.stringify({ status: "resolved" })
|
|
245
|
+
});
|
|
246
|
+
if (!res.ok) throw new Error(`Failed to resolve: HTTP ${res.status}`);
|
|
247
|
+
return textResult(`Resolved plan comment ${commentId}.`);
|
|
248
|
+
});
|
|
249
|
+
const transport = new StdioServerTransport();
|
|
250
|
+
await server.connect(transport);
|
|
251
|
+
}
|
|
252
|
+
//#endregion
|
|
253
|
+
export { startMcpServer };
|