@waishnav/devspace 1.0.0 → 1.0.2
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/LICENSE +21 -0
- package/README.md +104 -36
- package/dist/cli.js +5 -2
- package/dist/config.js +16 -7
- package/dist/db/client.js +10 -3
- package/dist/db/migrations.js +123 -0
- package/dist/db/schema.js +24 -1
- package/dist/oauth-provider.js +35 -64
- package/dist/oauth-store.js +138 -0
- package/dist/review-checkpoints.js +4 -4
- package/dist/server.js +38 -19
- package/dist/ui/.vite/manifest.json +281 -281
- package/dist/ui/assets/{angular-html-Di31D1W0.js → angular-html-Dj4LysSE.js} +1 -1
- package/dist/ui/assets/{angular-ts-BKuSFrBS.js → angular-ts-CxuC_FFh.js} +1 -1
- package/dist/ui/assets/{apl-DgqYbYoh.js → apl-RwuvNFFo.js} +1 -1
- package/dist/ui/assets/{astro-B19gi6Os.js → astro-ncoaUbsO.js} +1 -1
- package/dist/ui/assets/{blade-BKHjA4oS.js → blade-Dw8-Lzux.js} +1 -1
- package/dist/ui/assets/{c-FjyGimBn.js → c-Dpbbo_f2.js} +1 -1
- package/dist/ui/assets/{cobol-DlmtgjjX.js → cobol-4ddX3THy.js} +1 -1
- package/dist/ui/assets/{coffee-BlTKLwcf.js → coffee-Bn-a5KqK.js} +1 -1
- package/dist/ui/assets/{cpp-DtVUwoaa.js → cpp-DoRrlM_T.js} +1 -1
- package/dist/ui/assets/{crystal-C0TLGTHr.js → crystal-DiZfCxn-.js} +1 -1
- package/dist/ui/assets/{css-FssmIjiX.js → css-DiQoSjDH.js} +1 -1
- package/dist/ui/assets/{edge-_m-12TBz.js → edge-wEhCUoEt.js} +1 -1
- package/dist/ui/assets/{elixir-RKJED3b7.js → elixir-C3obhm0H.js} +1 -1
- package/dist/ui/assets/{elm-CzMSD9Oq.js → elm-DyTBfh1L.js} +1 -1
- package/dist/ui/assets/{erb-Cqpp-3vK.js → erb-f4TnXRuY.js} +1 -1
- package/dist/ui/assets/{git-rebase-DLS2r2oj.js → git-rebase-vhZbWNfp.js} +1 -1
- package/dist/ui/assets/{glimmer-js-B1t-JGK1.js → glimmer-js-BG7puL6Y.js} +1 -1
- package/dist/ui/assets/{glimmer-ts-CazygCNf.js → glimmer-ts-CNCfLLL1.js} +1 -1
- package/dist/ui/assets/{glsl-gBg2vKZ-.js → glsl-DhT76AL5.js} +1 -1
- package/dist/ui/assets/{graphql-C8u6MNtl.js → graphql-CJX08w8y.js} +1 -1
- package/dist/ui/assets/{hack-CgKuqejW.js → hack-DY4NGCCL.js} +1 -1
- package/dist/ui/assets/{haml-I5WU4_Rg.js → haml-DwSkmVcG.js} +1 -1
- package/dist/ui/assets/{handlebars-DGf6O3Q6.js → handlebars-CQ_1dEmi.js} +1 -1
- package/dist/ui/assets/{heavy-payload-Bp6srDbj.js → heavy-payload-2rGBiitA.js} +1 -1
- package/dist/ui/assets/{html-BrIuweS5.js → html-B_e3Njif.js} +1 -1
- package/dist/ui/assets/{html-derivative-CflP_1S6.js → html-derivative-_nHZ_Bk-.js} +1 -1
- package/dist/ui/assets/{http-qgGkv9Ds.js → http-CfcvPIru.js} +1 -1
- package/dist/ui/assets/{hurl-CantyQ5z.js → hurl-9vWDQIMO.js} +1 -1
- package/dist/ui/assets/{java-DqStxnBY.js → java-C4S5r6L5.js} +1 -1
- package/dist/ui/assets/{javascript-CJ1ZUMNM.js → javascript-BRwqbMMC.js} +1 -1
- package/dist/ui/assets/{jinja-Ta-y-8tW.js → jinja-DHxzMMc5.js} +1 -1
- package/dist/ui/assets/{jison-DZStAtdf.js → jison-B1DqeWXb.js} +1 -1
- package/dist/ui/assets/{json-Bfn_pgvS.js → json-DcFTkEdd.js} +1 -1
- package/dist/ui/assets/{jsx-CFi5D1JI.js → jsx-DgfmYa9f.js} +1 -1
- package/dist/ui/assets/{julia-CmuPb_FV.js → julia-3M8SJ8iF.js} +1 -1
- package/dist/ui/assets/{just-xoDaYyy4.js → just-UyH7_DNz.js} +1 -1
- package/dist/ui/assets/{latex-C7jbQT4s.js → latex-wUbha6EX.js} +1 -1
- package/dist/ui/assets/{liquid-DyVckOju.js → liquid-DqNTB9kN.js} +1 -1
- package/dist/ui/assets/{lua-CQGEo-kr.js → lua-DrEQ1QTW.js} +1 -1
- package/dist/ui/assets/{marko-CF3FIlcL.js → marko-B3GJw9Md.js} +1 -1
- package/dist/ui/assets/{mdc-DJfBh8KU.js → mdc-BnThk82m.js} +1 -1
- package/dist/ui/assets/{nginx-CmN5T-d3.js → nginx-B5IeSsOX.js} +1 -1
- package/dist/ui/assets/{nim-a_705mqZ.js → nim-BJraatnS.js} +1 -1
- package/dist/ui/assets/{perl-BFxFi55O.js → perl-BAhrR4gt.js} +1 -1
- package/dist/ui/assets/{php-C9Uf0Vo_.js → php-BKRCk_wX.js} +1 -1
- package/dist/ui/assets/{pug-DQIrtlYh.js → pug-B8gmSV7z.js} +1 -1
- package/dist/ui/assets/{qml-CpI_Asuw.js → qml-DKrxIjHR.js} +1 -1
- package/dist/ui/assets/{r-hYZdyIMH.js → r-YASBZvTH.js} +1 -1
- package/dist/ui/assets/{razor-CbXx350T.js → razor-P-XFZqh6.js} +1 -1
- package/dist/ui/assets/{regexp-BdfO5R2u.js → regexp-CCpiH6nO.js} +1 -1
- package/dist/ui/assets/{review-payload-CC-3-Lb9.js → review-payload-BLYwg6t8.js} +1 -1
- package/dist/ui/assets/{rst-CP6mAm3Y.js → rst-CFAzckbn.js} +1 -1
- package/dist/ui/assets/{ruby-8tjXzrRr.js → ruby-Dyp_Rx-S.js} +1 -1
- package/dist/ui/assets/{sas-rqWHY37U.js → sas-YkWZIXxT.js} +1 -1
- package/dist/ui/assets/{scss-aGYgGui9.js → scss-Cf89idGl.js} +1 -1
- package/dist/ui/assets/{shellscript-CYr5JWBI.js → shellscript-BFMb52q8.js} +1 -1
- package/dist/ui/assets/{shellsession-CO3ljRR7.js → shellsession-DuthW-5v.js} +1 -1
- package/dist/ui/assets/{soy-C4_rLmHV.js → soy-BohVVlJU.js} +1 -1
- package/dist/ui/assets/{sql-2jcbKHJ9.js → sql-CnK9R2Gt.js} +1 -1
- package/dist/ui/assets/{stata-Dbr0lM_v.js → stata-D-sV4Vbr.js} +1 -1
- package/dist/ui/assets/{surrealql-Cp0eMxMo.js → surrealql-ChAy0gHv.js} +1 -1
- package/dist/ui/assets/{svelte-BfsT9lcS.js → svelte-3HBVqG-H.js} +1 -1
- package/dist/ui/assets/{templ-BBOwNqeW.js → templ-BixlV4Cp.js} +1 -1
- package/dist/ui/assets/{tex-CPmn_RsX.js → tex-DWoJKHvD.js} +1 -1
- package/dist/ui/assets/{ts-tags-DMILlUz_.js → ts-tags-DLA8eH13.js} +1 -1
- package/dist/ui/assets/{tsx-CUP2Lfiz.js → tsx-BYWa5JUz.js} +1 -1
- package/dist/ui/assets/{twig-DEZ_7SDX.js → twig-CnY65vAo.js} +1 -1
- package/dist/ui/assets/{typescript-DhaMQEhQ.js → typescript-ByInUsro.js} +1 -1
- package/dist/ui/assets/{useFileDiffInstance-Bo6irrE6.js → useFileDiffInstance-Dg0pWcJV.js} +3 -3
- package/dist/ui/assets/{vue-CAaS6wtt.js → vue-Qngt2rkz.js} +1 -1
- package/dist/ui/assets/{vue-html-D3Etensv.js → vue-html-DDue9upr.js} +1 -1
- package/dist/ui/assets/{vue-vine-DNRKj0Lh.js → vue-vine-DBcAKsA6.js} +1 -1
- package/dist/ui/assets/workspace-app-DGD9R89D.css +1 -0
- package/dist/ui/assets/{workspace-app-BLeU1qC_.js → workspace-app-DuzpU4Hf.js} +6 -6
- package/dist/ui/assets/{xml-M-X6I2aP.js → xml-CRLR5jiL.js} +1 -1
- package/dist/ui/assets/{xsl-CR0ZlrL7.js → xsl-CmcwyXbm.js} +1 -1
- package/dist/ui/assets/{yaml-pI4xDDgj.js → yaml-Dpe6Eg-k.js} +1 -1
- package/dist/ui/workspace-app.html +2 -2
- package/dist/workspace-store.js +0 -50
- package/docs/chatgpt-coding-workflow.md +22 -22
- package/docs/configuration.md +13 -10
- package/docs/gotchas.md +5 -4
- package/package.json +3 -5
- package/scripts/dev-server.mjs +120 -0
- package/dist/ui/assets/workspace-app-8--oTbCd.css +0 -1
- package/scripts/build-release.mjs +0 -89
- package/scripts/ensure-native-deps.mjs +0 -29
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./workspace-app-
|
|
1
|
+
import{c as e}from"./workspace-app-DuzpU4Hf.js";import{t}from"./java-C4S5r6L5.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-CRLR5jiL.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{c as e}from"./workspace-app-BLeU1qC_.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{c as e}from"./workspace-app-DuzpU4Hf.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,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>DevSpace Diff</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/workspace-app-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="./assets/workspace-app-
|
|
7
|
+
<script type="module" crossorigin src="./assets/workspace-app-DuzpU4Hf.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="./assets/workspace-app-DGD9R89D.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<main id="app" class="shell">
|
package/dist/workspace-store.js
CHANGED
|
@@ -5,7 +5,6 @@ export class SqliteWorkspaceStore {
|
|
|
5
5
|
database;
|
|
6
6
|
constructor(stateDir) {
|
|
7
7
|
this.database = openDatabase(stateDir);
|
|
8
|
-
this.migrate();
|
|
9
8
|
}
|
|
10
9
|
createSession(input) {
|
|
11
10
|
const now = new Date().toISOString();
|
|
@@ -56,55 +55,6 @@ export class SqliteWorkspaceStore {
|
|
|
56
55
|
close() {
|
|
57
56
|
this.database.close();
|
|
58
57
|
}
|
|
59
|
-
migrate() {
|
|
60
|
-
this.database.sqlite.exec(`
|
|
61
|
-
create table if not exists workspace_sessions (
|
|
62
|
-
id text primary key,
|
|
63
|
-
root text not null,
|
|
64
|
-
status text not null default 'active',
|
|
65
|
-
mode text not null default 'checkout',
|
|
66
|
-
source_root text,
|
|
67
|
-
base_ref text,
|
|
68
|
-
base_sha text,
|
|
69
|
-
managed text not null default 'false',
|
|
70
|
-
created_at text not null,
|
|
71
|
-
last_used_at text not null
|
|
72
|
-
);
|
|
73
|
-
|
|
74
|
-
create index if not exists workspace_sessions_root_idx
|
|
75
|
-
on workspace_sessions(root, last_used_at desc);
|
|
76
|
-
|
|
77
|
-
create index if not exists workspace_sessions_status_idx
|
|
78
|
-
on workspace_sessions(status, last_used_at desc);
|
|
79
|
-
|
|
80
|
-
create table if not exists loaded_agent_files (
|
|
81
|
-
workspace_session_id text not null,
|
|
82
|
-
path text not null,
|
|
83
|
-
content_hash text not null,
|
|
84
|
-
content text not null,
|
|
85
|
-
loaded_at text not null,
|
|
86
|
-
last_seen_at text not null,
|
|
87
|
-
primary key (workspace_session_id, path),
|
|
88
|
-
foreign key (workspace_session_id)
|
|
89
|
-
references workspace_sessions(id)
|
|
90
|
-
on delete cascade
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
create index if not exists loaded_agent_files_path_idx
|
|
94
|
-
on loaded_agent_files(path);
|
|
95
|
-
`);
|
|
96
|
-
this.addColumnIfMissing("workspace_sessions", "mode", "text not null default 'checkout'");
|
|
97
|
-
this.addColumnIfMissing("workspace_sessions", "source_root", "text");
|
|
98
|
-
this.addColumnIfMissing("workspace_sessions", "base_ref", "text");
|
|
99
|
-
this.addColumnIfMissing("workspace_sessions", "base_sha", "text");
|
|
100
|
-
this.addColumnIfMissing("workspace_sessions", "managed", "text not null default 'false'");
|
|
101
|
-
}
|
|
102
|
-
addColumnIfMissing(table, column, definition) {
|
|
103
|
-
const columns = this.database.sqlite.prepare(`pragma table_info(${table})`).all();
|
|
104
|
-
if (columns.some((existingColumn) => existingColumn.name === column))
|
|
105
|
-
return;
|
|
106
|
-
this.database.sqlite.exec(`alter table ${table} add column ${column} ${definition}`);
|
|
107
|
-
}
|
|
108
58
|
}
|
|
109
59
|
export function createWorkspaceStore(stateDir) {
|
|
110
60
|
return new SqliteWorkspaceStore(stateDir);
|
|
@@ -14,8 +14,8 @@ ChatGPT should call `open_workspace` once for a project folder:
|
|
|
14
14
|
}
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
The result includes a `workspaceId`. All later file, search, edit,
|
|
18
|
-
shell calls should reuse that same `workspaceId`.
|
|
17
|
+
The result includes a `workspaceId`. All later file, search, edit, show-changes,
|
|
18
|
+
and shell calls should reuse that same `workspaceId`.
|
|
19
19
|
|
|
20
20
|
Do not reopen the same folder unless:
|
|
21
21
|
|
|
@@ -97,37 +97,37 @@ Set `DEVSPACE_SKILLS=0` to hide skills from workspace output.
|
|
|
97
97
|
|
|
98
98
|
## Tool Names
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
Short names are the default:
|
|
101
|
+
|
|
102
|
+
- `open_workspace`
|
|
103
|
+
- `read`
|
|
104
|
+
- `write`
|
|
105
|
+
- `edit`
|
|
106
|
+
- `bash`
|
|
107
|
+
|
|
108
|
+
By default, DevSpace also runs in `DEVSPACE_TOOL_MODE=minimal`, so dedicated
|
|
109
|
+
`grep`, `glob`, and `ls` tools are hidden. Use `bash` with command-line tools
|
|
110
|
+
such as `rg`, `find`, and `ls` for search and directory inspection.
|
|
111
|
+
|
|
112
|
+
Legacy names are available with `DEVSPACE_TOOL_NAMING=legacy`:
|
|
101
113
|
|
|
102
114
|
- `open_workspace`
|
|
103
115
|
- `read_file`
|
|
104
116
|
- `write_file`
|
|
105
117
|
- `edit_file`
|
|
106
|
-
- `grep_files`
|
|
107
|
-
- `find_files`
|
|
108
|
-
- `list_directory`
|
|
109
118
|
- `run_shell`
|
|
110
119
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
- `open_workspace`
|
|
114
|
-
- `read`
|
|
115
|
-
- `write`
|
|
116
|
-
- `edit`
|
|
117
|
-
- `grep`
|
|
118
|
-
- `glob`
|
|
119
|
-
- `ls`
|
|
120
|
-
- `bash`
|
|
120
|
+
Use `DEVSPACE_TOOL_MODE=full` to restore dedicated search and directory tools.
|
|
121
121
|
|
|
122
|
-
##
|
|
122
|
+
## Show Changes
|
|
123
123
|
|
|
124
|
-
By default, `DEVSPACE_WIDGETS=
|
|
124
|
+
By default, `DEVSPACE_WIDGETS=full`.
|
|
125
125
|
|
|
126
|
-
In that mode, DevSpace
|
|
127
|
-
|
|
126
|
+
In that mode, DevSpace attaches widget UI to the exposed workspace, file, edit,
|
|
127
|
+
and shell tools. The aggregate `show_changes` tool is not exposed by default.
|
|
128
128
|
|
|
129
|
-
Use `DEVSPACE_WIDGETS=off` to disable widget UI, or `DEVSPACE_WIDGETS=
|
|
130
|
-
|
|
129
|
+
Use `DEVSPACE_WIDGETS=off` to disable widget UI, or `DEVSPACE_WIDGETS=changes`
|
|
130
|
+
to expose the aggregate show-changes flow.
|
|
131
131
|
|
|
132
132
|
## Shell Use
|
|
133
133
|
|
package/docs/configuration.md
CHANGED
|
@@ -63,12 +63,15 @@ MCP clients discover metadata from:
|
|
|
63
63
|
|
|
64
64
|
| Value | Behavior |
|
|
65
65
|
| --- | --- |
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
66
|
+
| `short` | Default. Uses `read`, `edit`, `bash`, and related names. |
|
|
67
|
+
| `legacy` | Uses `read_file`, `edit_file`, `run_shell`, and related names. |
|
|
68
68
|
|
|
69
|
-
`DEVSPACE_TOOL_MODE
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
`DEVSPACE_TOOL_MODE` controls the tool surface.
|
|
70
|
+
|
|
71
|
+
| Value | Behavior |
|
|
72
|
+
| --- | --- |
|
|
73
|
+
| `minimal` | Default. Disables dedicated search and list tools. Clients use the shell tool with `rg`, `grep`, `find`, `ls`, or `tree` for inspection. |
|
|
74
|
+
| `full` | Enables dedicated `grep`, `glob`, and `ls` tools. |
|
|
72
75
|
|
|
73
76
|
## Widgets
|
|
74
77
|
|
|
@@ -76,8 +79,8 @@ minimal mode, clients use the shell tool with `rg`, `grep`, `find`, `ls`, or
|
|
|
76
79
|
|
|
77
80
|
| Value | Behavior |
|
|
78
81
|
| --- | --- |
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
82
|
+
| `full` | Default. Widget UI is attached to exposed workspace, file, edit, and shell tools. |
|
|
83
|
+
| `changes` | Enables the aggregate `show_changes` tool and attaches widget UI to `open_workspace` and `show_changes`. |
|
|
81
84
|
| `off` | Disables widget UI. |
|
|
82
85
|
|
|
83
86
|
## Skills
|
|
@@ -119,9 +122,9 @@ DEVSPACE_OAUTH_OWNER_TOKEN="$(openssl rand -base64 32)" \
|
|
|
119
122
|
DEVSPACE_ALLOWED_ROOTS="$HOME/personal,$HOME/work" \
|
|
120
123
|
DEVSPACE_PUBLIC_BASE_URL="https://devspace.example.com" \
|
|
121
124
|
DEVSPACE_WORKTREE_ROOT="$HOME/.devspace/worktrees" \
|
|
122
|
-
DEVSPACE_TOOL_MODE="
|
|
123
|
-
DEVSPACE_TOOL_NAMING="
|
|
124
|
-
DEVSPACE_WIDGETS="
|
|
125
|
+
DEVSPACE_TOOL_MODE="minimal" \
|
|
126
|
+
DEVSPACE_TOOL_NAMING="short" \
|
|
127
|
+
DEVSPACE_WIDGETS="full" \
|
|
125
128
|
npx @waishnav/devspace serve
|
|
126
129
|
```
|
|
127
130
|
|
package/docs/gotchas.md
CHANGED
|
@@ -204,11 +204,12 @@ If a skill appears in `open_workspace`, the model must read that skill's
|
|
|
204
204
|
|
|
205
205
|
## Review Card Does Not Appear
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
Per-tool widget cards are enabled by default with:
|
|
208
208
|
|
|
209
209
|
```bash
|
|
210
|
-
DEVSPACE_WIDGETS=
|
|
210
|
+
DEVSPACE_WIDGETS=full
|
|
211
211
|
```
|
|
212
212
|
|
|
213
|
-
The
|
|
214
|
-
clients may ignore ChatGPT Apps widget
|
|
213
|
+
The aggregate `show_changes` tool is only exposed with
|
|
214
|
+
`DEVSPACE_WIDGETS=changes`. Plain MCP clients may ignore ChatGPT Apps widget
|
|
215
|
+
metadata and only show text results.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waishnav/devspace",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Expose a secure local coding workspace through an MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/server.js",
|
|
@@ -23,11 +23,9 @@
|
|
|
23
23
|
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
24
24
|
"build": "npm run clean && npm run build:app && tsc -p tsconfig.build.json",
|
|
25
25
|
"build:app": "vite build",
|
|
26
|
-
"dev": "
|
|
26
|
+
"dev": "node scripts/dev-server.mjs",
|
|
27
27
|
"start": "node dist/cli.js serve",
|
|
28
|
-
"
|
|
29
|
-
"release:start": "node scripts/ensure-native-deps.mjs && node releases/current/dist/cli.js serve",
|
|
30
|
-
"test": "tsx src/config.test.ts && tsx src/roots.test.ts && tsx src/skills.test.ts && tsx src/workspaces.test.ts && tsx src/review-checkpoints.test.ts",
|
|
28
|
+
"test": "tsx src/config.test.ts && tsx src/roots.test.ts && tsx src/skills.test.ts && tsx src/workspaces.test.ts && tsx src/review-checkpoints.test.ts && tsx src/oauth-store.test.ts",
|
|
31
29
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
32
30
|
},
|
|
33
31
|
"keywords": [],
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { readdirSync, statSync, watch } from "node:fs";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const repoRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
|
|
7
|
+
const watchRoots = ["src"].map((entry) => join(repoRoot, entry));
|
|
8
|
+
const restartDelayMs = 750;
|
|
9
|
+
const crashDelayMs = 1500;
|
|
10
|
+
|
|
11
|
+
let child;
|
|
12
|
+
let restartTimer;
|
|
13
|
+
let stoppingForRestart = false;
|
|
14
|
+
let shuttingDown = false;
|
|
15
|
+
|
|
16
|
+
function log(message) {
|
|
17
|
+
console.error(`[devspace:dev] ${message}`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function start() {
|
|
21
|
+
stoppingForRestart = false;
|
|
22
|
+
child = spawn("npx", ["tsx", "src/cli.ts", "serve"], {
|
|
23
|
+
cwd: repoRoot,
|
|
24
|
+
env: process.env,
|
|
25
|
+
stdio: "inherit",
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
child.on("exit", (code, signal) => {
|
|
29
|
+
child = undefined;
|
|
30
|
+
if (shuttingDown) return;
|
|
31
|
+
if (stoppingForRestart) return;
|
|
32
|
+
|
|
33
|
+
log(`server exited (${signal ?? code ?? "unknown"}); restarting in ${crashDelayMs}ms`);
|
|
34
|
+
scheduleRestart(crashDelayMs);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function scheduleRestart(delayMs = restartDelayMs) {
|
|
39
|
+
clearTimeout(restartTimer);
|
|
40
|
+
restartTimer = setTimeout(restart, delayMs);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function restart() {
|
|
44
|
+
if (shuttingDown) return;
|
|
45
|
+
clearTimeout(restartTimer);
|
|
46
|
+
|
|
47
|
+
if (!child) {
|
|
48
|
+
start();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
stoppingForRestart = true;
|
|
53
|
+
child.once("exit", () => {
|
|
54
|
+
if (!shuttingDown) start();
|
|
55
|
+
});
|
|
56
|
+
child.kill("SIGTERM");
|
|
57
|
+
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
if (child && stoppingForRestart) child.kill("SIGKILL");
|
|
60
|
+
}, 3000).unref();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function watchDirectory(root) {
|
|
64
|
+
const watchers = [];
|
|
65
|
+
const seen = new Set();
|
|
66
|
+
|
|
67
|
+
function addDirectory(dir) {
|
|
68
|
+
if (seen.has(dir)) return;
|
|
69
|
+
seen.add(dir);
|
|
70
|
+
|
|
71
|
+
const watcher = watch(dir, (event, filename) => {
|
|
72
|
+
if (!filename) {
|
|
73
|
+
scheduleRestart();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const path = join(dir, filename.toString());
|
|
78
|
+
if (event === "rename") maybeAddDirectory(path);
|
|
79
|
+
scheduleRestart();
|
|
80
|
+
});
|
|
81
|
+
watchers.push(watcher);
|
|
82
|
+
|
|
83
|
+
for (const entry of readdirSync(dir)) {
|
|
84
|
+
maybeAddDirectory(join(dir, entry));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function maybeAddDirectory(path) {
|
|
89
|
+
try {
|
|
90
|
+
const stats = statSync(path);
|
|
91
|
+
if (stats.isDirectory()) addDirectory(path);
|
|
92
|
+
} catch {
|
|
93
|
+
// The file may have been deleted between the watch event and stat call.
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
addDirectory(root);
|
|
98
|
+
return watchers;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function shutdown() {
|
|
102
|
+
shuttingDown = true;
|
|
103
|
+
clearTimeout(restartTimer);
|
|
104
|
+
if (!child) return process.exit(0);
|
|
105
|
+
|
|
106
|
+
child.once("exit", () => process.exit(0));
|
|
107
|
+
child.kill("SIGTERM");
|
|
108
|
+
setTimeout(() => process.exit(1), 3000).unref();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
112
|
+
process.on(signal, shutdown);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
for (const root of watchRoots) {
|
|
116
|
+
watchDirectory(root);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
log("watching src; server restarts on changes and after crashes");
|
|
120
|
+
start();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);color:var(--color-text-primary,#f5f5f6);background:0 0}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*{box-sizing:border-box}html,body{background:0 0;margin:0;overflow:hidden}.shell{width:100%;padding:0;overflow:hidden}.empty,.tool-card{border:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 86%, transparent);background:color-mix(in srgb, var(--color-background-secondary,#28282d) 92%, transparent);width:100%;box-shadow:none;color:var(--color-text-primary,#f5f5f6);border-radius:8px}.empty{color:var(--color-text-secondary,#b6b6bd);font-size:var(--font-text-sm-size,13px);padding:14px 16px}.tool-header{width:100%;min-height:64px;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;grid-template-columns:38px minmax(0,1fr) auto 28px;align-items:center;gap:12px;padding:10px 12px 10px 14px;display:grid}.tool-header:hover:not(:disabled){background:color-mix(in srgb, var(--color-background-tertiary,#333338) 72%, transparent)}.tool-header:disabled{cursor:default}.tool-icon{border:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 55%, transparent);background:linear-gradient(180deg, color-mix(in srgb, var(--color-background-tertiary,#3a3a42) 72%, transparent), color-mix(in srgb, var(--color-background-primary,#17181c) 90%, transparent));width:38px;height:38px;color:var(--color-text-primary,#f5f5f6);border-radius:8px;place-items:center;display:grid}.icon-svg{width:19px;height:19px;display:block}.tool-main{gap:3px;min-width:0;display:grid}.tool-title{color:var(--color-text-primary,#f5f5f6);font-size:var(--font-text-sm-size,13px);font-weight:600}.tool-label{color:var(--color-text-secondary,#d6d6dc);font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);font-size:var(--font-text-sm-size,14px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stats{font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);font-size:var(--font-text-sm-size,13px);white-space:nowrap;align-items:center;gap:5px;display:inline-flex}.badge-group{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.badge{border:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 80%, transparent);background:color-mix(in srgb, var(--color-background-primary,#17181c) 42%, transparent);min-height:24px;color:var(--color-text-secondary,#d6d6dc);font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);font-size:var(--font-text-sm-size,12px);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 9px;display:inline-flex}.badge.success{border-color:color-mix(in srgb, var(--color-success-text,#6fda83) 44%, var(--color-border-primary,#3a3a40));color:var(--color-success-text,#6fda83)}.badge.muted{color:var(--color-text-tertiary,#a3a3aa)}.badge-icon{flex:none;width:13px;height:13px;display:block}.add{color:var(--color-success-text,#6fda83)}.remove{color:var(--color-danger-text,#ee7676)}.chevron{width:28px;height:28px;color:var(--color-text-tertiary,#a3a3aa);border-radius:7px;place-items:center;transition:background .14s,color .14s,transform .14s;display:grid}.tool-header:hover:not(:disabled) .chevron{background:color-mix(in srgb, var(--color-background-primary,#17181c) 58%, transparent);color:var(--color-text-primary,#f5f5f6)}.chevron .icon-svg{width:16px;height:16px}.chevron.expanded{transform:rotate(180deg)}.tool-body{border-top:1px solid var(--color-border-primary,#3a3a40);background:var(--color-background-primary,#18191d)}.review-header{grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:58px;padding:10px 12px 8px 14px;display:grid}.review-title-group{gap:3px;min-width:0;display:grid}.review-summary{border-top:1px solid var(--color-border-primary,#3a3a40);background:var(--color-background-primary,#18191d);display:grid}.review-actions,.review-diff-file-stats{align-items:center;gap:8px;display:flex}.review-empty{color:var(--color-text-secondary,#b7b7bf);font-size:var(--font-text-sm-size,13px)}.review-actions{border-top:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 72%, transparent);justify-content:flex-end;padding:10px 14px}.review-action{border:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 80%, transparent);background:color-mix(in srgb, var(--color-background-primary,#17181c) 36%, transparent);min-height:26px;color:var(--color-text-secondary,#d6d6dc);cursor:pointer;font:inherit;font-size:var(--font-text-sm-size,12px);border-radius:7px;padding:0 9px}.review-action:hover{background:color-mix(in srgb, var(--color-background-tertiary,#333338) 80%, transparent);color:var(--color-text-primary,#f5f5f6)}.review-diff{gap:8px;max-height:520px;padding:0 0 12px;display:grid;overflow:auto}.review-diff-files{gap:8px;padding:12px 14px 0;display:grid}.review-diff-file{border:1px solid color-mix(in srgb, var(--color-border-primary,#3a3a40) 80%, transparent);border-radius:8px;overflow:hidden}.review-diff-file-header{background:color-mix(in srgb, var(--color-background-secondary,#28282d) 88%, transparent);width:100%;min-height:34px;color:var(--color-text-primary,#f5f5f6);cursor:pointer;font:inherit;text-align:left;border:0;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 10px;display:grid}.review-diff-file-header:hover{background:color-mix(in srgb, var(--color-background-tertiary,#333338) 84%, transparent)}.review-diff-file-name,.review-diff-file-stats{font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);font-size:var(--font-text-sm-size,12px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.review-diff-file-stats{justify-content:flex-end;overflow:visible}.status{font-size:var(--font-text-sm-size,13px);padding:12px 14px}.status.muted{color:var(--color-text-secondary,#b7b7bf)}.status.error{color:var(--color-danger-text,#ee7676)}.pierre-diff,.pierre-file{--diffs-bg:var(--tool-payload-bg,var(--color-background-primary,#101114));--diffs-light-bg:var(--color-background-primary,#fff);--diffs-dark-bg:var(--tool-payload-bg,var(--color-background-primary,#101114));--diffs-font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);--diffs-header-font-family:var(--font-sans,ui-sans-serif, system-ui, sans-serif);--diffs-font-size:var(--font-text-sm-size,12px);--diffs-line-height:20px;border-bottom-right-radius:8px;border-bottom-left-radius:8px;max-height:420px;display:block;overflow:auto}.text-payload{max-height:420px;color:var(--color-text-secondary,#d6d6dc);font-family:var(--font-mono,ui-monospace, SFMono-Regular, monospace);font-size:var(--font-text-sm-size,12px);white-space:pre-wrap;word-break:break-word;margin:0;padding:12px 14px;line-height:1.55;overflow:auto}.text-payload.run_shell,.text-payload.bash{color:var(--color-text-primary,#f5f5f6);background:var(--color-background-primary,#101114)}@media (width<=520px){.tool-header{grid-template-columns:32px minmax(0,1fr) auto 18px;gap:8px;padding:8px}.tool-icon{width:32px;height:32px}}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { execFileSync } from "node:child_process";
|
|
2
|
-
import {
|
|
3
|
-
cpSync,
|
|
4
|
-
existsSync,
|
|
5
|
-
mkdirSync,
|
|
6
|
-
renameSync,
|
|
7
|
-
rmSync,
|
|
8
|
-
symlinkSync,
|
|
9
|
-
writeFileSync,
|
|
10
|
-
} from "node:fs";
|
|
11
|
-
import { basename, join, resolve } from "node:path";
|
|
12
|
-
import { fileURLToPath } from "node:url";
|
|
13
|
-
|
|
14
|
-
const repoRoot = resolve(fileURLToPath(new URL("..", import.meta.url)));
|
|
15
|
-
const releasesDir = join(repoRoot, "releases");
|
|
16
|
-
const currentLink = join(releasesDir, "current");
|
|
17
|
-
|
|
18
|
-
function run(command, args) {
|
|
19
|
-
execFileSync(command, args, {
|
|
20
|
-
cwd: repoRoot,
|
|
21
|
-
stdio: "inherit",
|
|
22
|
-
env: process.env,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function getGitShortSha() {
|
|
27
|
-
try {
|
|
28
|
-
return execFileSync("git", ["rev-parse", "--short", "HEAD"], {
|
|
29
|
-
cwd: repoRoot,
|
|
30
|
-
encoding: "utf8",
|
|
31
|
-
}).trim();
|
|
32
|
-
} catch {
|
|
33
|
-
return "nogit";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function getReleaseId() {
|
|
38
|
-
if (process.env.DEVSPACE_RELEASE_ID) return process.env.DEVSPACE_RELEASE_ID;
|
|
39
|
-
|
|
40
|
-
const timestamp = new Date()
|
|
41
|
-
.toISOString()
|
|
42
|
-
.replace(/[-:]/g, "")
|
|
43
|
-
.replace(/\.\d{3}Z$/, "Z");
|
|
44
|
-
|
|
45
|
-
return `${timestamp}-${getGitShortSha()}`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const releaseId = getReleaseId();
|
|
49
|
-
const releaseDir = join(releasesDir, releaseId);
|
|
50
|
-
const releaseDistDir = join(releaseDir, "dist");
|
|
51
|
-
const tmpLink = join(releasesDir, ".current-tmp");
|
|
52
|
-
|
|
53
|
-
if (existsSync(releaseDir)) {
|
|
54
|
-
throw new Error(`Release already exists: ${releaseDir}`);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
run("npm", ["run", "build"]);
|
|
58
|
-
|
|
59
|
-
mkdirSync(releasesDir, { recursive: true });
|
|
60
|
-
mkdirSync(releaseDir, { recursive: true });
|
|
61
|
-
cpSync(join(repoRoot, "dist"), releaseDistDir, { recursive: true });
|
|
62
|
-
writeFileSync(
|
|
63
|
-
join(releaseDir, "release.json"),
|
|
64
|
-
JSON.stringify(
|
|
65
|
-
{
|
|
66
|
-
id: releaseId,
|
|
67
|
-
createdAt: new Date().toISOString(),
|
|
68
|
-
gitCommit: getGitShortSha(),
|
|
69
|
-
},
|
|
70
|
-
null,
|
|
71
|
-
2,
|
|
72
|
-
) + "\n",
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
rmSync(tmpLink, { force: true, recursive: true });
|
|
76
|
-
try {
|
|
77
|
-
symlinkSync(releaseId, tmpLink, "dir");
|
|
78
|
-
renameSync(tmpLink, currentLink);
|
|
79
|
-
} catch (error) {
|
|
80
|
-
rmSync(tmpLink, { force: true, recursive: true });
|
|
81
|
-
rmSync(currentLink, { force: true, recursive: true });
|
|
82
|
-
cpSync(releaseDir, currentLink, { recursive: true });
|
|
83
|
-
const reason = error instanceof Error ? error.message : String(error);
|
|
84
|
-
console.warn(`Could not update releases/current as a symlink; copied release instead. ${reason}`);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
console.log(`Created release ${releaseId}`);
|
|
88
|
-
console.log(`Run it with: npm run release:start`);
|
|
89
|
-
console.log(`Current release points to: ${basename(releaseId)}`);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { execFileSync } from "node:child_process";
|
|
2
|
-
import { createRequire } from "node:module";
|
|
3
|
-
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
-
|
|
6
|
-
try {
|
|
7
|
-
const Database = require("better-sqlite3");
|
|
8
|
-
const db = new Database(":memory:");
|
|
9
|
-
db.close();
|
|
10
|
-
} catch (error) {
|
|
11
|
-
if (!isNativeModuleMismatch(error)) {
|
|
12
|
-
throw error;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const npmCli = process.env.npm_execpath;
|
|
16
|
-
if (!npmCli) {
|
|
17
|
-
throw new Error("better-sqlite3 must be rebuilt for this Node version. Run: npm rebuild better-sqlite3");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
console.error("Rebuilding better-sqlite3 for the active Node runtime...");
|
|
21
|
-
execFileSync(process.execPath, [npmCli, "rebuild", "better-sqlite3"], {
|
|
22
|
-
stdio: "inherit",
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function isNativeModuleMismatch(error) {
|
|
27
|
-
if (!(error instanceof Error)) return false;
|
|
28
|
-
return error.message.includes("NODE_MODULE_VERSION") || error.message.includes("ERR_DLOPEN_FAILED");
|
|
29
|
-
}
|