@markusylisiurunen/tau 0.3.84 → 0.3.85
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/code_mode/runtime.js +7 -1
- package/dist/code_mode/runtime.js.map +1 -1
- package/dist/core/commands/registry.js +14 -0
- package/dist/core/commands/registry.js.map +1 -1
- package/dist/core/config/markdown_export.js +33 -0
- package/dist/core/config/markdown_export.js.map +1 -0
- package/dist/core/config/schema.js +26 -1
- package/dist/core/config/schema.js.map +1 -1
- package/dist/core/static/code_mode/sandbox_runner.mjs +1 -1
- package/dist/core/static/tau_docs/config-reference.md +38 -2
- package/dist/core/static/tau_docs/telegram.md +2 -2
- package/dist/core/static/tau_docs/tools.md +4 -0
- package/dist/core/static/tau_docs/tui.md +29 -1
- package/dist/core/telegram/adapter.js +7 -1
- package/dist/core/telegram/adapter.js.map +1 -1
- package/dist/core/telegram/cli.js +1 -0
- package/dist/core/telegram/cli.js.map +1 -1
- package/dist/core/telegram/runtime.js +1 -0
- package/dist/core/telegram/runtime.js.map +1 -1
- package/dist/core/tools/bash.js +8 -1
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/bash_jobs.js +35 -8
- package/dist/core/tools/bash_jobs.js.map +1 -1
- package/dist/core/tools/code.js +1 -1
- package/dist/core/tools/code.js.map +1 -1
- package/dist/core/utils/gemini_transcription.js +2 -0
- package/dist/core/utils/gemini_transcription.js.map +1 -1
- package/dist/core/utils/speech_to_text.js +2 -0
- package/dist/core/utils/speech_to_text.js.map +1 -1
- package/dist/core/utils/speech_to_text_keywords.js +22 -12
- package/dist/core/utils/speech_to_text_keywords.js.map +1 -1
- package/dist/core/version.js +2 -2
- package/dist/diff_tool/app/dist/assets/{angular-html-Dr923UVo.js → angular-html-B4L_MaLR.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{angular-ts-DOChuIbB.js → angular-ts-CiwufFbD.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{apl-Bs_bcAcm.js → apl-CQIDMP3F.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{astro-a4yvqyGV.js → astro-Wx66OLb0.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{blade-BD5OxwVc.js → blade-DXnqqGPA.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{c-CPWQkPLc.js → c-l21u3-A0.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{chapel-DaQatW92.js → chapel-BkgHWS0P.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{cobol-Dv7H5p9m.js → cobol-CwOiba0w.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{coffee-BUGvGi57.js → coffee-C8w28DlJ.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{cpp-fo_wPsB8.js → cpp-D3xqdgbc.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{crystal--pI-R_dD.js → crystal-CRf8LOyu.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{css-BssyxPkY.js → css-CUMR9Ly4.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{edge-CZ8t3-Ec.js → edge-BTpX8yJV.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{elixir-UZt0J7RJ.js → elixir-POGP-I52.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{elm-DIbchse0.js → elm-zOJVh2AE.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{erb-BOBhlFtI.js → erb-DiOEAgXb.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{git-rebase-BAOt70YV.js → git-rebase-BT97SYdA.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{glimmer-js-CEvU-NQC.js → glimmer-js-DpzhCjEm.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{glimmer-ts-BTMr7YQb.js → glimmer-ts-BuCtQrs9.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{glsl-BdwQytbZ.js → glsl-BzyoACHj.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{graphql-MVXf_Gip.js → graphql-Cv8BbLZF.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{hack-BKsyThYd.js → hack-EhdcMRwJ.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{haml-aYjo4kTQ.js → haml-azll0DD8.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{handlebars-CkBj5nNj.js → handlebars-BNlgXuhG.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{html-V_XLZjq3.js → html-Cjm-6UiB.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{html-derivative-CLtkZVT2.js → html-derivative-ClRNPLHI.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{http-nUN1ldGy.js → http-DQdgAxMO.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{hurl-BBwLfekr.js → hurl-Dfueh8st.js} +1 -1
- package/dist/diff_tool/app/dist/assets/index-BE36eeqv.js +341 -0
- package/dist/diff_tool/app/dist/assets/{java-DLkxtNEL.js → java-nAkSlFoj.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{javascript-CVr4Rx0e.js → javascript-D_g3Qche.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{jinja-BOSJTyD0.js → jinja-BMUjVEdk.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{jison-Di3-hBGP.js → jison-C_rh6-eB.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{json-D9C8xfZt.js → json-BFBj0_TJ.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{jsx-CUDhGSfU.js → jsx-BFei-Rhr.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{julia-CRy8R7YY.js → julia-CuJzjT53.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{just-tUqjHI43.js → just-CV_scKWn.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{latex-8_LCZmZN.js → latex-KeRkNfCN.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{liquid-CvGorueR.js → liquid-yRjsS-4e.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{lua-DR_7pVFC.js → lua-kI0a7Fbt.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{marko-sTN8ZOd5.js → marko-DmOJOGPk.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{mdc-xRsS5Ubl.js → mdc-CoqVCsIL.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{nginx-ypaVSshx.js → nginx-CK2uabuu.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{nim-DTc1FpAl.js → nim-qA7cxfB7.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{org-B7I2tEAw.js → org-Bvvp9H4m.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{perl-CTNhHvKx.js → perl-BP906Mcw.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{php-LzxyOsOP.js → php-Cjt0uedX.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{pug-D5FIy7qc.js → pug-C0sR7nAO.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{qml-CfdV5Js7.js → qml-DlptLuN4.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{r-CZ-EMZDs.js → r-W5eX4omH.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{razor-BhyBjPmN.js → razor-CAP1vL6a.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{regexp-iPvMX04S.js → regexp-Bq1e6fq0.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{rst-Dpp9DE6Q.js → rst-D7RYb7u-.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{ruby-CVyShlOK.js → ruby-Cz3579Sp.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{sas-DFmollAV.js → sas-Ca_Vq42s.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{scss-Di6lsIQE.js → scss-DgwMO34u.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{shellscript-CRHervLi.js → shellscript-YbQHq1wm.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{shellsession-CHP7Q5Ym.js → shellsession-BAksrqM_.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{soy-CNXyGE_T.js → soy-cyRcZwry.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{sql-DnPFF_uz.js → sql-D1vUUAMm.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{stata-CobN2W6n.js → stata-BxJk3dhl.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{surrealql-DqvGXHs7.js → surrealql-BpUiQ4ps.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{svelte-ChhfFBzQ.js → svelte-Bw_YhkU0.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{templ-DKi2U_4-.js → templ-57X6P_lM.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{tex-Cjl-M5D5.js → tex-iXK08Ufj.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{ts-tags-CV2veQhe.js → ts-tags-De-CHDIf.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{tsx-Dw0DYsvT.js → tsx-Cmjayk0u.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{twig-r46-w1o_.js → twig-7Lf4LdtX.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{typescript-QuYM-098.js → typescript-DlISvpw4.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{typst-B9jAU5LS.js → typst-hnqzVpPt.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{vue-CIrFiYWU.js → vue-DsAtRxeA.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{vue-html-bfczklzO.js → vue-html-BcUQi5W0.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{vue-vine-BmBCOwQI.js → vue-vine-CvEitBd4.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{xml-DYPsS0xh.js → xml-ouxdLlhn.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{xsl-DZFDwCkt.js → xsl-Cnt-8nJk.js} +1 -1
- package/dist/diff_tool/app/dist/assets/{yaml-9CQ32JJD.js → yaml-efQyCK3d.js} +1 -1
- package/dist/diff_tool/app/dist/index.html +1 -1
- package/dist/tui/listen_capture.js +1 -0
- package/dist/tui/listen_capture.js.map +1 -1
- package/dist/tui/markdown_export.js +74 -0
- package/dist/tui/markdown_export.js.map +1 -0
- package/dist/tui/session_chat_controller.js +55 -0
- package/dist/tui/session_chat_controller.js.map +1 -1
- package/package.json +12 -12
- package/dist/diff_tool/app/dist/assets/index-Dt2v7POE.js +0 -341
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./index-
|
|
1
|
+
import{t as e}from"./index-BE36eeqv.js";import{t}from"./java-nAkSlFoj.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-ouxdLlhn.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-Dt2v7POE.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-BE36eeqv.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};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>Tau diff tool</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BE36eeqv.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="./assets/index-DuML4oGc.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listen_capture.js","sourceRoot":"","sources":["../../src/tui/listen_capture.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAA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AC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { markdownExportConfigSchema, parseMarkdownExportUrl, } from "../core/config/markdown_export.js";
|
|
2
|
+
const MAX_RESPONSE_BYTES = 64 * 1024;
|
|
3
|
+
const REQUEST_TIMEOUT_MS = 30_000;
|
|
4
|
+
export async function exportMarkdown(options) {
|
|
5
|
+
const parsed = markdownExportConfigSchema.safeParse(options.config);
|
|
6
|
+
if (!parsed.success)
|
|
7
|
+
throw new Error("Invalid Markdown export configuration.");
|
|
8
|
+
const config = parsed.data;
|
|
9
|
+
const token = config.token ?? (config.tokenEnv ? options.env[config.tokenEnv]?.trim() : undefined);
|
|
10
|
+
if ((config.tokenEnv && token === undefined) || token === "") {
|
|
11
|
+
throw new Error("The Markdown export token environment variable is missing or empty.");
|
|
12
|
+
}
|
|
13
|
+
if (token !== undefined && !/^[\x21-\x7e]+$/.test(token)) {
|
|
14
|
+
throw new Error("Invalid Markdown export token.");
|
|
15
|
+
}
|
|
16
|
+
const signal = AbortSignal.any([options.signal, AbortSignal.timeout(REQUEST_TIMEOUT_MS)]);
|
|
17
|
+
let response;
|
|
18
|
+
try {
|
|
19
|
+
response = await fetch(config.url, {
|
|
20
|
+
method: "POST",
|
|
21
|
+
headers: {
|
|
22
|
+
"Content-Type": "application/json",
|
|
23
|
+
Accept: "application/json",
|
|
24
|
+
...(token !== undefined ? { Authorization: `Bearer ${token}` } : {}),
|
|
25
|
+
},
|
|
26
|
+
body: JSON.stringify({ version: 1, markdown: options.markdown }),
|
|
27
|
+
redirect: "error",
|
|
28
|
+
signal,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
throw new Error("Markdown export request failed or was cancelled. The service may have received it; Tau did not retry.");
|
|
33
|
+
}
|
|
34
|
+
if (response.status !== 201) {
|
|
35
|
+
await response.body?.cancel().catch(() => { });
|
|
36
|
+
throw new Error(`Markdown export returned HTTP ${response.status}; expected 201. Tau did not retry.`);
|
|
37
|
+
}
|
|
38
|
+
let result;
|
|
39
|
+
const reader = response.body?.getReader();
|
|
40
|
+
if (!reader)
|
|
41
|
+
throw new Error("Markdown export returned an empty response.");
|
|
42
|
+
try {
|
|
43
|
+
const chunks = [];
|
|
44
|
+
let bytes = 0;
|
|
45
|
+
for (;;) {
|
|
46
|
+
const { done, value } = await reader.read();
|
|
47
|
+
if (done)
|
|
48
|
+
break;
|
|
49
|
+
bytes += value.byteLength;
|
|
50
|
+
if (bytes > MAX_RESPONSE_BYTES)
|
|
51
|
+
throw new Error("Response too large.");
|
|
52
|
+
chunks.push(value);
|
|
53
|
+
}
|
|
54
|
+
result = JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
throw new Error("Markdown export returned an invalid or incomplete response. Tau did not retry.");
|
|
58
|
+
}
|
|
59
|
+
finally {
|
|
60
|
+
await reader.cancel().catch(() => { });
|
|
61
|
+
reader.releaseLock();
|
|
62
|
+
}
|
|
63
|
+
if (typeof result !== "object" ||
|
|
64
|
+
result === null ||
|
|
65
|
+
!("version" in result) ||
|
|
66
|
+
result.version !== 1 ||
|
|
67
|
+
!("url" in result) ||
|
|
68
|
+
typeof result.url !== "string" ||
|
|
69
|
+
!parseMarkdownExportUrl(result.url)) {
|
|
70
|
+
throw new Error("Markdown export requires a version 1 response with an HTTP(S) URL.");
|
|
71
|
+
}
|
|
72
|
+
return result.url;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=markdown_export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown_export.js","sourceRoot":"","sources":["../../src/tui/markdown_export.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAE3C,MAAM,kBAAkB,GAAG,EAAE,GAAG,IAAI,CAAC;AACrC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,c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,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACtC,MAAM,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IACD,IACE,OAAO,MAAM,KAAK,QAAQ;QAC1B,MAAM,KAAK,IAAI;QACf,CAAC,CAAC,SAAS,IAAI,MAAM,CAAC;QACtB,MAAM,CAAC,OAAO,KAAK,CAAC;QACpB,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC;QAClB,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;QAC9B,CAAC,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,EACnC,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;IACxF,CAAC;IACD,OAAO,MAAM,CAAC,GAAG,CAAC;AACpB,CAAC"}
|
|
@@ -28,6 +28,7 @@ import { formatDurationMs, formatFooterTokenCount, formatSessionCost, } from "./
|
|
|
28
28
|
import { copyTextToClipboard } from "./clipboard.js";
|
|
29
29
|
import { DOUBLE_PRESS_WINDOW_MS } from "./constants.js";
|
|
30
30
|
import { cleanupListenTempFile, createListenTempFilePath, createListenTranscription, deleteListenTempFile, getSpeechToTextApiKey, getSpeechToTextApiKeyErrorMessage, LISTEN_CAPTURE_START_TIMEOUT_MS, LISTEN_RECORDING_MIN_BYTES, readListenAudio, startListenAudioCapture, } from "./listen_capture.js";
|
|
31
|
+
import { exportMarkdown } from "./markdown_export.js";
|
|
31
32
|
import { createSdkDiffSnapshotDeps, createSdkToolExecutionBackend, } from "./session_tool_execution_backend.js";
|
|
32
33
|
import { runSpeechPlaybackTask } from "./speech_playback.js";
|
|
33
34
|
const TRANSCRIPTION_GUIDANCE = "Some or all of this message may have been transcribed from speech and may contain misheard words or other transcription errors.";
|
|
@@ -39,6 +40,7 @@ export class SessionChatController {
|
|
|
39
40
|
targetLabel;
|
|
40
41
|
configuredClientToolNames;
|
|
41
42
|
config;
|
|
43
|
+
markdownExportAbortController;
|
|
42
44
|
diffToolLauncher;
|
|
43
45
|
deps;
|
|
44
46
|
speechToTextDeps;
|
|
@@ -111,6 +113,7 @@ export class SessionChatController {
|
|
|
111
113
|
this.commandHandlers = {
|
|
112
114
|
help: () => this.showHelp(),
|
|
113
115
|
copyText: () => this.copyLastAssistantText(),
|
|
116
|
+
exportResponse: () => this.exportLastAssistantResponse(),
|
|
114
117
|
copyCode: () => this.copyLastAssistantCode(),
|
|
115
118
|
exit: () => options.onExit?.(),
|
|
116
119
|
newSession: () => this.createNewSession(),
|
|
@@ -155,6 +158,7 @@ export class SessionChatController {
|
|
|
155
158
|
}
|
|
156
159
|
async dispose() {
|
|
157
160
|
this.disposed = true;
|
|
161
|
+
this.markdownExportAbortController?.abort();
|
|
158
162
|
this.endListenPreview();
|
|
159
163
|
this.eventUnsubscribe?.();
|
|
160
164
|
this.ephemeralUnsubscribe?.();
|
|
@@ -2380,6 +2384,57 @@ export class SessionChatController {
|
|
|
2380
2384
|
}
|
|
2381
2385
|
return [...files];
|
|
2382
2386
|
}
|
|
2387
|
+
async exportLastAssistantResponse() {
|
|
2388
|
+
if (this.markdownExportAbortController) {
|
|
2389
|
+
this.view.showFooterNotice("response export already in progress", "default");
|
|
2390
|
+
return;
|
|
2391
|
+
}
|
|
2392
|
+
const config = this.config.markdownExport;
|
|
2393
|
+
if (!config) {
|
|
2394
|
+
this.view.addTranscriptNotice("markdown export is not configured", "error", [
|
|
2395
|
+
"Set markdownExport in the terminal client's global config.json.",
|
|
2396
|
+
]);
|
|
2397
|
+
return;
|
|
2398
|
+
}
|
|
2399
|
+
const entry = this.snapshot.messages.findLast((entry) => entry.state === "committed" &&
|
|
2400
|
+
isAssistantMessage(entry.message) &&
|
|
2401
|
+
(entry.message.stopReason === "stop" || entry.message.stopReason === "length"));
|
|
2402
|
+
if (!entry || !isAssistantMessage(entry.message)) {
|
|
2403
|
+
this.view.showFooterNotice("no completed response to export", "default");
|
|
2404
|
+
return;
|
|
2405
|
+
}
|
|
2406
|
+
const markdown = entry.message.content
|
|
2407
|
+
.filter((block) => block.type === "text")
|
|
2408
|
+
.map((block) => block.text)
|
|
2409
|
+
.join("\n");
|
|
2410
|
+
if (!markdown.trim()) {
|
|
2411
|
+
this.view.showFooterNotice("no response text to export", "default");
|
|
2412
|
+
return;
|
|
2413
|
+
}
|
|
2414
|
+
const abortController = new AbortController();
|
|
2415
|
+
this.markdownExportAbortController = abortController;
|
|
2416
|
+
this.view.showFooterNotice("exporting response", "default");
|
|
2417
|
+
try {
|
|
2418
|
+
const url = await exportMarkdown({
|
|
2419
|
+
config,
|
|
2420
|
+
markdown,
|
|
2421
|
+
env: this.deps.env.env(),
|
|
2422
|
+
signal: abortController.signal,
|
|
2423
|
+
});
|
|
2424
|
+
if (!this.disposed)
|
|
2425
|
+
this.view.addTranscriptNotice("response exported", "default", [url]);
|
|
2426
|
+
}
|
|
2427
|
+
catch (error) {
|
|
2428
|
+
if (!this.disposed) {
|
|
2429
|
+
this.view.addTranscriptNotice("failed to export response", "error", [
|
|
2430
|
+
error.message,
|
|
2431
|
+
]);
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
finally {
|
|
2435
|
+
this.markdownExportAbortController = undefined;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2383
2438
|
async copyLastAssistantText() {
|
|
2384
2439
|
await copyAssistantTextToClipboard({
|
|
2385
2440
|
view: this.view,
|