cogpit 3.5.1 → 3.5.3

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.
Files changed (90) hide show
  1. package/dist/cli-runtime.js +39279 -35071
  2. package/dist/instance-worker.js +1206 -154
  3. package/dist/web/assets/AutomationsPanel-D7XmgTgZ.js +1 -0
  4. package/dist/web/assets/{CogpitBlock-ZgOubpsS.js → CogpitBlock-CiS2M1Q_.js} +16 -16
  5. package/dist/web/assets/CommandPaletteHost-Dj06VjlP.js +1 -0
  6. package/dist/web/assets/ConfigBrowser-DqQo1F4o.js +1 -0
  7. package/dist/web/assets/CrewPanel-DzLPmS6o.js +1 -0
  8. package/dist/web/assets/HighlightedEditor-DPrSCx1c.js +2 -0
  9. package/dist/web/assets/KeyboardShortcutsDialog-BdXPWBJw.js +1 -0
  10. package/dist/web/assets/MissionHome-CTcx5vR7.js +2 -0
  11. package/dist/web/assets/MobileFileChanges-Ngv9AlhR.js +1 -0
  12. package/dist/web/assets/PluginsDialog-CWRSNNll.js +1 -0
  13. package/dist/web/assets/PreviewPanel-CQcJIdef.js +1 -0
  14. package/dist/web/assets/ProjectFilesPanel-D5EKIBD7.js +4 -0
  15. package/dist/web/assets/ProjectSwitcherModal-BoSCOiv9.js +1 -0
  16. package/dist/web/assets/{TerminalOutput-DOX29EmA.js → TerminalOutput-DYZJD2WR.js} +3 -3
  17. package/dist/web/assets/ThemeSelectorModal-8sO11Ob-.js +1 -0
  18. package/dist/web/assets/WorkflowsPanel-qv6TkN7g.js +1 -0
  19. package/dist/web/assets/WorktreePanel-Dr82TWOP.js +1 -0
  20. package/dist/web/assets/{bash-Yzrsuije.js → bash-DgJyDXW6.js} +1 -1
  21. package/dist/web/assets/{c-BIGW1oBm.js → c-BG-tZi7o.js} +1 -1
  22. package/dist/web/assets/cpp-BzPMphJ4.js +1 -0
  23. package/dist/web/assets/{css-DPfMkruS.js → css-PZBBrkI0.js} +1 -1
  24. package/dist/web/assets/edition-ui-DQHX5fm4.js +2 -0
  25. package/dist/web/assets/github-dark-BQV5ugrc.js +1 -0
  26. package/dist/web/assets/github-light-Rcb2q3L5.js +1 -0
  27. package/dist/web/assets/{go-CxLEBnE3.js → go-BBr2UQCn.js} +1 -1
  28. package/dist/web/assets/{html-GMplVEZG.js → html-DOf0XnR2.js} +1 -1
  29. package/dist/web/assets/index-BGSPI7dK.js +1 -0
  30. package/dist/web/assets/index-BVmNox_3.js +504 -0
  31. package/dist/web/assets/index-CHtH7TlZ.js +2 -0
  32. package/dist/web/assets/index-DKDki7Rz.css +1 -0
  33. package/dist/web/assets/index-DU4gWgPu.js +3 -0
  34. package/dist/web/assets/{index-By5-_P50.js → index-zhwBlO_8.js} +4 -4
  35. package/dist/web/assets/{java-CylS5w8V.js → java-BTDmaRNO.js} +1 -1
  36. package/dist/web/assets/{javascript-wDzz0qaB.js → javascript-WyGyM1wV.js} +1 -1
  37. package/dist/web/assets/{json-Cp-IABpG.js → json-B8JryHcM.js} +1 -1
  38. package/dist/web/assets/{jsx-g9-lgVsj.js → jsx-8cLv2Six.js} +1 -1
  39. package/dist/web/assets/{kotlin-BdnUsdx6.js → kotlin-BQy537ds.js} +1 -1
  40. package/dist/web/assets/{markdown-Cvjx9yec.js → markdown-DX-TNHnc.js} +1 -1
  41. package/dist/web/assets/{php-aq0itWAE.js → php-47JHu45N.js} +1 -1
  42. package/dist/web/assets/{python-B6aJPvgy.js → python-B6Ihcp-E.js} +1 -1
  43. package/dist/web/assets/render.worker-DW0Lo4fc.js +154 -0
  44. package/dist/web/assets/ruby-BrGyNOch.js +1 -0
  45. package/dist/web/assets/{rust-B1yitclQ.js → rust-CxuBE0J8.js} +1 -1
  46. package/dist/web/assets/{scss-OYdSNvt2.js → scss-DxBkwadj.js} +1 -1
  47. package/dist/web/assets/session-parser.worker-DCsmYUeX.js +41 -0
  48. package/dist/web/assets/{sql-BLtJtn59.js → sql-BbONfI8K.js} +1 -1
  49. package/dist/web/assets/svelte-H3swLp47.js +1 -0
  50. package/dist/web/assets/{swift-D82vCrfD.js → swift-tEesUtni.js} +1 -1
  51. package/dist/web/assets/switch-gTnbAJaZ.js +1 -0
  52. package/dist/web/assets/{toml-vGWfd6FD.js → toml-Ms459DBw.js} +1 -1
  53. package/dist/web/assets/{tsx-COt5Ahok.js → tsx-D6116Ycy.js} +1 -1
  54. package/dist/web/assets/{typescript-BPQ3VLAy.js → typescript-BqvgUolh.js} +1 -1
  55. package/dist/web/assets/vendor-markdown-BEJ8yVzA.js +29 -0
  56. package/dist/web/assets/{vendor-ui-DQeMoSiV.js → vendor-ui-CKjyvB3_.js} +226 -191
  57. package/dist/web/assets/vue-CWSgrUPf.js +1 -0
  58. package/dist/web/assets/{xml-D2mA2LmW.js → xml-CdYS3kUe.js} +1 -1
  59. package/dist/web/assets/{yaml-Buea-lGh.js → yaml-Bopit2L3.js} +1 -1
  60. package/dist/web/index.html +4 -5
  61. package/package.json +1 -1
  62. package/dist/web/assets/CommandPaletteHost-Djn2jqYR.js +0 -1
  63. package/dist/web/assets/ConfigBrowser-CRwh8BXq.js +0 -1
  64. package/dist/web/assets/CrewPanel-BxPl5D7h.js +0 -1
  65. package/dist/web/assets/HighlightedEditor-D9A-dW2Z.js +0 -2
  66. package/dist/web/assets/KeyboardShortcutsDialog-L7rRhApI.js +0 -1
  67. package/dist/web/assets/MissionHome-zp7VebSO.js +0 -2
  68. package/dist/web/assets/MobileFileChanges-O-SvMq9F.js +0 -1
  69. package/dist/web/assets/PluginsDialog-CBOyfoUX.js +0 -1
  70. package/dist/web/assets/PreviewPanel-_pKuUaps.js +0 -1
  71. package/dist/web/assets/ProjectFilesPanel-BsbpTgWK.js +0 -4
  72. package/dist/web/assets/ProjectSwitcherModal-D4MzdPVH.js +0 -1
  73. package/dist/web/assets/ThemeSelectorModal-7CWXZB-z.js +0 -1
  74. package/dist/web/assets/WorkflowsPanel-aOz1o3kA.js +0 -1
  75. package/dist/web/assets/WorktreePanel-BFve9bpC.js +0 -1
  76. package/dist/web/assets/cpp-BRuaLJcg.js +0 -1
  77. package/dist/web/assets/edition-ui-CFxEM3WF.js +0 -2
  78. package/dist/web/assets/github-dark-DHJKELXO.js +0 -1
  79. package/dist/web/assets/github-light-DAi9KRSo.js +0 -1
  80. package/dist/web/assets/index-CPTFl4Qh.js +0 -498
  81. package/dist/web/assets/index-DjpYbGVZ.js +0 -2
  82. package/dist/web/assets/index-DmMg-zf3.js +0 -1
  83. package/dist/web/assets/index-hGMtuUNI.css +0 -1
  84. package/dist/web/assets/ruby-B0Tyh1qT.js +0 -1
  85. package/dist/web/assets/session-parser.worker-3tFlB6dy.js +0 -31
  86. package/dist/web/assets/svelte-DZMnMd3x.js +0 -1
  87. package/dist/web/assets/switch-DS7UyNS2.js +0 -1
  88. package/dist/web/assets/vendor-markdown-BE1gYnO9.js +0 -37
  89. package/dist/web/assets/vendor-shiki-DOn6sF-i.js +0 -144
  90. package/dist/web/assets/vue-DVfSmUF7.js +0 -1
@@ -0,0 +1 @@
1
+ import n from"./css-PZBBrkI0.js";import e from"./javascript-WyGyM1wV.js";import a from"./typescript-BqvgUolh.js";import s from"./json-B8JryHcM.js";import t from"./html-DOf0XnR2.js";const i=Object.freeze(JSON.parse('{"displayName":"HTML (Derivative)","injections":{"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)":{"patterns":[{"match":"<","name":"invalid.illegal.bad-angle-bracket.html"}]}},"name":"html-derivative","patterns":[{"include":"text.html.basic#core-minus-invalid"},{"begin":"(</?)(\\\\w[^<>\\\\s]*)(?<!/)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"end":"((?: ?/)?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"meta.tag.other.unrecognized.html.derivative","patterns":[{"include":"text.html.basic#attribute"}]}],"scopeName":"text.html.derivative","embeddedLangs":["html"]}'));var u=[...t,i];const m=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-vue","patterns":[{"include":"#vue-code-block"}],"repository":{"vue-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(vue)((\\\\s+|[,:?{])[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"4":{"name":"fenced_code.block.language.markdown"},"5":{"name":"fenced_code.block.language.attributes.markdown","patterns":[]}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"include":"text.html.vue"}]}},"scopeName":"markdown.vue.codeblock"}'));var r=[m];const c=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute","name":"vue-directives","patterns":[{"include":"text.html.vue#vue-directives"}],"scopeName":"vue.directives"}'));var l=[c];const o=Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["source.vue","text.html.markdown","text.html.derivative","text.pug"],"injectionSelector":"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block","name":"vue-interpolations","patterns":[{"include":"text.html.vue#vue-interpolations"}],"scopeName":"vue.interpolations"}'));var d=[o];const g=Object.freeze(JSON.parse(`{"fileTypes":[],"injectTo":["source.vue"],"injectionSelector":"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment","name":"vue-sfc-style-variable-injection","patterns":[{"include":"#vue-sfc-style-variable-injection"}],"repository":{"vue-sfc-style-variable-injection":{"begin":"\\\\b(v-bind)\\\\s*\\\\(","beginCaptures":{"1":{"name":"entity.name.function"}},"end":"\\\\)","name":"vue.sfc.style.variable.injection.v-bind","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html"}},"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.js"}]},{"include":"source.js"}]}},"scopeName":"vue.sfc.style.variable.injection","embeddedLangs":["javascript"]}`));var p=[...e,g];const b=Object.freeze(JSON.parse(`{"displayName":"Vue","name":"vue","patterns":[{"include":"#vue-comments"},{"include":"#self-closing-tag"},{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"patterns":[{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)md\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.markdown","patterns":[{"include":"text.html.markdown"}]}]},{"begin":"(?!template(?![-0-:A-Za-z]))([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)html\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"contentName":"text.html.derivative","end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)pug\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.pug","patterns":[{"include":"text.pug"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)stylus\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)postcss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)sass\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.sass","patterns":[{"include":"source.sass"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)css\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css","patterns":[{"include":"source.css"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)scss\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)less\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)js\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js","patterns":[{"include":"source.js"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)ts\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)tsx\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)coffee\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json","patterns":[{"include":"source.json"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)jsonc\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json.comments","patterns":[{"include":"source.json.comments"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)json5\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.json5","patterns":[{"include":"source.json5"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)yaml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.yaml","patterns":[{"include":"source.yaml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)toml\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.toml","patterns":[{"include":"source.toml"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)(g(?:ql|raphql))\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"source.graphql","patterns":[{"include":"source.graphql"}]}]},{"begin":"([-0-:A-Za-z]+)\\\\b(?=[^>]*\\\\blang\\\\s*=\\\\s*([\\"']?)vue\\\\b\\\\2)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text.html.vue","patterns":[{"include":"text.html.vue"}]}]},{"begin":"(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</template[>\\\\s])","name":"text.html.derivative","patterns":[{"include":"#html-stuff"}]}]},{"begin":"(script)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-script-tag-stuff"}]},{"begin":"(style)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#multi-line-style-tag-stuff"}]},{"begin":"([-0-:A-Za-z]+)","beginCaptures":{"1":{"name":"entity.name.tag.$1.html.vue"}},"end":"(</)(\\\\1)\\\\s*(?=>)","endCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</)","name":"text"}]}]}],"repository":{"html-stuff":{"patterns":[{"include":"#template-tag"},{"include":"text.html.derivative"},{"include":"text.html.basic"}]},"multi-line-script-tag-stuff":{"begin":"\\\\G","end":"(?=<\/script[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:tsx??|jsx|coffee)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?ts\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.ts","patterns":[{"include":"source.ts"}]},{"begin":"(?<=>)","name":"source.ts","patterns":[{"include":"source.ts"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?tsx\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)(?=[^\\\\n]*<\/script[>\\\\s])","end":"(?=<\/script[>\\\\s])","name":"source.tsx","patterns":[{"include":"source.tsx"}]},{"begin":"(?<=>)","name":"source.tsx","patterns":[{"include":"source.tsx"}],"while":"^(?!\\\\s*<\/script[>\\\\s])"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?jsx\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.js.jsx","patterns":[{"include":"source.js.jsx"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?coffee\\\\b)","end":"(?=<\/script[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.coffee","patterns":[{"include":"source.coffee"}]}]},{"begin":"(?<=>)","end":"(?=<\/script[>\\\\s])","name":"source.js","patterns":[{"include":"source.js"}]}]},"multi-line-style-tag-stuff":{"begin":"\\\\G","end":"(?=</style[>\\\\s])","patterns":[{"begin":"\\\\G(?!\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)","end":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?(?:scss|stylus|less|postcss)\\\\b)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?scss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.scss","patterns":[{"include":"source.css.scss"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?stylus\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.stylus","patterns":[{"include":"source.stylus"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?less\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css.less","patterns":[{"include":"source.css.less"}]}]},{"begin":"(?=\\\\blang\\\\s*=\\\\s*[\\"']?postcss\\\\b)","end":"(?=</style[>\\\\s])","patterns":[{"include":"#tag-stuff"},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.postcss","patterns":[{"include":"source.postcss"}]}]},{"begin":"(?<=>)","end":"(?=</style[>\\\\s])","name":"source.css","patterns":[{"include":"source.css"}]}]},"self-closing-tag":{"begin":"(<)([-0-:A-Za-z]+)(?=([^>]+/>))","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"self-closing-tag","patterns":[{"include":"#tag-stuff"}]},"tag-stuff":{"begin":"\\\\G","end":"(?=/>)|(>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.tag-stuff","patterns":[{"include":"#vue-directives"},{"include":"text.html.basic#attribute"}]},"template-tag":{"patterns":[{"include":"#template-tag-1"},{"include":"#template-tag-2"}]},"template-tag-1":{"begin":"(<)(template)\\\\b(>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"},"3":{"name":"punctuation.definition.tag.end.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#html-stuff"}]}]},"template-tag-2":{"begin":"(<)(template)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html.vue"},"2":{"name":"entity.name.tag.$2.html.vue"}},"end":"(/?>)","endCaptures":{"1":{"name":"punctuation.definition.tag.end.html.vue"}},"name":"meta.template-tag.start","patterns":[{"begin":"\\\\G","end":"(?=/>)|((</)(template)(?=[>\\\\s]))","endCaptures":{"2":{"name":"punctuation.definition.tag.begin.html.vue"},"3":{"name":"entity.name.tag.$3.html.vue"}},"name":"meta.template-tag.end","patterns":[{"include":"#tag-stuff"},{"include":"#html-stuff"}]}]},"vue-comments":{"patterns":[{"include":"#vue-comments-key-value"},{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.vue"}},"end":"-->","name":"comment.block.vue"}]},"vue-comments-key-value":{"begin":"(<!--)\\\\s*(@)([$\\\\w]+)(?=\\\\s)","beginCaptures":{"1":{"name":"punctuation.definition.comment.vue"},"2":{"name":"punctuation.definition.block.tag.comment.vue"},"3":{"name":"storage.type.class.comment.vue"}},"end":"(-->)","endCaptures":{"1":{"name":"punctuation.definition.comment.vue"}},"name":"comment.block.vue","patterns":[{"include":"source.json#value"}]},"vue-directives":{"patterns":[{"include":"#vue-directives-control"},{"include":"#vue-directives-generic-attr"},{"include":"#vue-directives-style-attr"},{"include":"#vue-directives-original"}]},"vue-directives-control":{"begin":"(?:(v-for)|(v-(?:if|else-if|else)))(?=[)/=>\\\\s])","beginCaptures":{"1":{"name":"keyword.control.loop.vue"},"2":{"name":"keyword.control.conditional.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.control.vue","patterns":[{"include":"#vue-directives-expression"}]},"vue-directives-expression":{"patterns":[{"begin":"(=)\\\\s*([\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"patterns":[{"begin":"(?<=([\\"'\`]))","end":"(?=\\\\1)","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]},{"begin":"(=)\\\\s*(?=[^\\"'\`])","beginCaptures":{"1":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?=([>\\\\s]|/>))","patterns":[{"begin":"(?=[^\\"'\`])","end":"(?=([>\\\\s]|/>))","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{"begin":"\\\\b(generic)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.generic.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"meta.type.parameters.vue","patterns":[{"include":"source.ts#comment"},{"match":"(?<![$_[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out)(?![$_[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"source.ts#type"},{"include":"source.ts#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{"begin":"(?:(v-[-\\\\w]+)(:)?|([.:])|(@)|(#))(?:(\\\\[)([^]]*)(])|([-\\\\w]+))?","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"},"3":{"name":"punctuation.attribute-shorthand.bind.html.vue"},"4":{"name":"punctuation.attribute-shorthand.event.html.vue"},"5":{"name":"punctuation.attribute-shorthand.slot.html.vue"},"6":{"name":"punctuation.separator.key-value.html.vue"},"7":{"name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]},"8":{"name":"punctuation.separator.key-value.html.vue"},"9":{"name":"entity.other.attribute-name.html.vue"}},"end":"(?=\\\\s*[^=\\\\s])","name":"meta.attribute.directive.vue","patterns":[{"1":{"name":"punctuation.separator.key-value.html.vue"},"2":{"name":"entity.other.attribute-name.html.vue"},"match":"(\\\\.)([-\\\\w]*)"},{"include":"#vue-directives-expression"}]},"vue-directives-style-attr":{"begin":"\\\\b(style)\\\\s*(=)","beginCaptures":{"1":{"name":"entity.other.attribute-name.html.vue"},"2":{"name":"punctuation.separator.key-value.html.vue"}},"end":"(?<=[\\"'])","name":"meta.attribute.style.vue","patterns":[{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.html.vue"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.html.vue"}},"name":"source.css.embedded.html.vue","patterns":[{"include":"source.css#comment-block"},{"include":"source.css#escapes"},{"include":"source.css#font-features"},{"match":"(?<![-\\\\w])--[-A-Z_a-z[^\\\\x00-\\\\x7F]](?:[-0-9A-Z_a-z[^\\\\x00-\\\\x7F]]|\\\\\\\\(?:\\\\h{1,6}|.))*","name":"variable.css"},{"begin":"(?<![-A-Za-z])(?=[-A-Za-z])","end":"$|(?![-A-Za-z])","name":"meta.property-name.css","patterns":[{"include":"source.css#property-names"}]},{"begin":"(:)\\\\s*","beginCaptures":{"1":{"name":"punctuation.separator.key-value.css"}},"contentName":"meta.property-value.css","end":"\\\\s*(;)|\\\\s*(?=[\\"'])","endCaptures":{"1":{"name":"punctuation.terminator.rule.css"}},"patterns":[{"include":"source.css#comment-block"},{"include":"source.css#property-values"}]},{"match":";","name":"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{"patterns":[{"begin":"(\\\\{\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.interpolation.begin.html.vue"}},"end":"(}})","endCaptures":{"1":{"name":"punctuation.definition.interpolation.end.html.vue"}},"name":"expression.embedded.vue","patterns":[{"begin":"\\\\G","end":"(?=}})","name":"source.ts.embedded.html.vue","patterns":[{"include":"source.ts#expression"}]}]}]}},"scopeName":"text.html.vue","embeddedLangs":["css","javascript","typescript","json","html","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],"embeddedLangsLazy":["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]}`));var x=[...n,...e,...a,...s,...t,...u,...r,...l,...d,...p,b];export{x as default};
@@ -1 +1 @@
1
- import e from"./java-CylS5w8V.js";const n=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"]}`)),a=[...e,n];export{a as x};
1
+ import e from"./java-BTDmaRNO.js";const n=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"]}`));var a=[...e,n];export{a as x};
@@ -1 +1 @@
1
- const e=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"]}`)),n=[e];export{n as default};
1
+ const e=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"]}`));var n=[e];export{n as default};
@@ -14,12 +14,11 @@
14
14
  .dark body { background: var(--canvas, #09090b); color: var(--foreground, #fafafa); }
15
15
  body { background: var(--canvas, #fafafa); color: var(--foreground, #09090b); }
16
16
  </style>
17
- <script type="module" crossorigin src="/assets/index-CPTFl4Qh.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-BVmNox_3.js"></script>
18
18
  <link rel="modulepreload" crossorigin href="/assets/vendor-react-gGw_S5I_.js">
19
- <link rel="modulepreload" crossorigin href="/assets/vendor-ui-DQeMoSiV.js">
20
- <link rel="modulepreload" crossorigin href="/assets/vendor-markdown-BE1gYnO9.js">
21
- <link rel="modulepreload" crossorigin href="/assets/vendor-shiki-DOn6sF-i.js">
22
- <link rel="stylesheet" crossorigin href="/assets/index-hGMtuUNI.css">
19
+ <link rel="modulepreload" crossorigin href="/assets/vendor-ui-CKjyvB3_.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/vendor-markdown-BEJ8yVzA.js">
21
+ <link rel="stylesheet" crossorigin href="/assets/index-DKDki7Rz.css">
23
22
  <script src="/theme-bootstrap.js"></script>
24
23
  </head>
25
24
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogpit",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Run Cogpit's local Claude Code, Codex, and GitHub Copilot CLI interface without installing it",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as ie,j as u,r as M}from"./vendor-react-gGw_S5I_.js";import{af as h,ag as Z,ah as ue,ai as he,aj as ge,ak as fe,al as ve,am as we,an as Ce,ao as Se,ap as je,aq as be,ar as ye,as as xe,at as ee,au as _,av as Pe,aw as Te,ax as Oe,ay as ke,az as Ne,aA as Fe,aB as Ee,U as Ie}from"./index-CPTFl4Qh.js";import{P as $e,l as Ae,m as te,S as Re,L as De,H as Le,n as He,o as Me,c as ne,G as Be,F as qe,p as Ge,q as Ke,r as ze,s as Ue,t as We,u as pe,v as ae,w as _e,x as Ve,y as Je,K as Xe,E as Qe,z as Ye,A as Ze,B as oe,D as et,I as tt,J as nt}from"./vendor-ui-DQeMoSiV.js";import"./vendor-shiki-DOn6sF-i.js";import"./vendor-markdown-BE1gYnO9.js";function a(t,e,s,c,l,m,d){return{id:t,label:e,icon:c,run:l,shortcut:m,description:d,value:`${e} ${s}`}}function V(...t){return t.filter(e=>e!==!1&&e!==void 0)}function at(t){const e=ie.c(40);let s,c,l,m,d,w,C,r,S,g,b,f,y,N,x;if(e[0]!==t){const $=V(a("home","Go to Mission Control","home overview dashboard",Le,t.onGoHome),a("mission-control",t.showMission?"Exit Mission Control":"Open Mission Control","live sessions blocked waiting answer everything at once",De,t.onToggleMissionControl,h("missionControl")),...(t.extraActions??[]).map(ot),a("new-session","Start a new session","project agent chat create",$e,t.onNewSession,h("newSession")),t.onDuplicateSession&&a("duplicate-session","Duplicate this session","copy fork clone branch thread",Ae,t.onDuplicateSession),t.canFocusComposer&&a("focus-composer","Focus message composer","chat prompt input",te,t.onFocusComposer,h("focusComposer")),t.onFindInConversation&&a("find-in-conversation","Find in conversation","search text transcript turns matches",Re,t.onFindInConversation,h("findInConversation"))),F=(t.projects??[]).slice(0,8).map(n=>a(`project-${n.dirName}`,n.shortName,`${n.path} ${n.dirName} project workspace`,He,()=>{var i;return(i=t.onOpenProject)==null?void 0:i.call(t,n.dirName)},void 0,`${n.path} · ${n.sessionCount} session${n.sessionCount===1?"":"s"}`)),E=(t.recentSessions??[]).slice(0,10).map(n=>{const v=(n.aiTitle||n.name||n.slug||n.lastUserMessage||n.firstUserMessage||n.sessionId).replace(/\s+/g," ").trim().slice(0,160)||n.sessionId,L=[n.projectShortName,n.gitBranch].filter(Boolean).join(" · ");return a(`session-${n.dirName}-${n.fileName}`,v,`${n.projectShortName} ${n.cwd??""} ${n.gitBranch??""} ${n.sessionId} recent thread conversation`,te,()=>{var q;return(q=t.onOpenSession)==null?void 0:q.call(t,n.dirName,n.fileName)},void 0,L)}),A=t.devices??[],I=A.length>1&&t.onSwitchDevice?A.slice(0,Z.length).map((n,i)=>a(`device-${n.id}`,n.isActive?`${n.name} (current)`:`Switch to ${n.name}`,`device machine host remote ${n.id}`,n.isLocal?Me:ne,()=>{var v;return(v=t.onSwitchDevice)==null?void 0:v.call(t,n.id)},h(Z[i]))):[],o=V(a("toggle-sidebar",t.showSidebar?"Hide session sidebar":"Show session sidebar","projects navigation panel",Ue,t.onToggleSidebar,h("toggleSidebar")),t.hasSession&&a("toggle-stats",t.showStats?"Hide session details":"Show session details","stats tokens usage panel",ze,t.onToggleStats,h("toggleStats")),t.onToggleProjectFiles&&a("project-files",t.showProjectFiles?"Close project files":"Open project files","browse edit save workspace source code",Ke,t.onToggleProjectFiles,h("projectFiles")),t.onToggleBrowser&&a("toggle-browser",t.showBrowser?"Hide browser":"Show browser","web page live view browse panel",Ge,t.onToggleBrowser),t.hasFileChanges&&a("toggle-file-changes",t.showFileChanges?"Hide file changes":"Show file changes","diff edits review panel",qe,t.onToggleFileChanges),t.supportsWorktrees&&t.canOpenTerminal&&a("toggle-worktrees",t.showWorktrees?"Hide worktrees":"Show worktrees","git branches panel",Be,t.onToggleWorktrees)),R=V(t.onOpenProjectInEditor&&a("open-project-editor","Open project in editor","code cursor vscode zed workspace",tt,t.onOpenProjectInEditor),t.onRevealProject&&a("reveal-project","Reveal project in file manager","finder explorer folder directory",et,t.onRevealProject),t.onCopyResumeCommand&&a("copy-resume-command","Copy resume command","cli claude codex copilot terminal clipboard continue session",oe,t.onCopyResumeCommand),t.onCopyProjectPath&&a("copy-project-path","Copy project path","workspace directory clipboard",oe,t.onCopyProjectPath),t.onOpenIntegratedTerminal&&a("integrated-terminal","New integrated terminal","embedded shell command line process panel",Ze,t.onOpenIntegratedTerminal,h("newIntegratedTerminal")),t.canOpenTerminal&&a("terminal","Open in system terminal","external shell command line app",Ye,t.onOpenTerminal,h("systemTerminal")),t.onTogglePreview&&a("preview","Toggle development preview","browser localhost dev server website",Qe,t.onTogglePreview,h("preview")),t.onOpenKeyboardShortcuts&&a("keyboard-shortcuts","Customize keyboard shortcuts","keybindings hotkeys settings",Xe,t.onOpenKeyboardShortcuts),t.onOpenConfig&&a("config",t.showConfig?"Close agent configuration":"Open agent configuration","skills commands claude settings files",Je,t.onOpenConfig),a("settings","Open Cogpit settings","preferences network",Ve,t.onOpenSettings),a("theme","Change theme & chat width","appearance light dark oled width narrow wide",_e,t.onOpenTheme,h("themeSelector")),a("expand","Expand all groups","conversation details",ae,t.onExpandAll,h("expandAll")),a("expand-payloads","Expand all tool payloads","raw input result diff conversation details",ae,t.onExpandToolPayloads,h("expandToolPayloads")),a("collapse","Collapse all","conversation groups payloads details",pe,t.onCollapseAll),t.onKillAll&&a("kill-all","Kill all agent processes","stop terminate halt everything runaway",We,t.onKillAll),t.onOpenDevices&&a("manage-devices","Manage devices…","remote machines hub hosts edit rename remove switch",nt,()=>{var n;return(n=t.onOpenDevices)==null?void 0:n.call(t,"manage")}),t.onOpenDevices&&a("add-device","Add device…","remote machine hub host connect pair new",ne,()=>{var n;return(n=t.onOpenDevices)==null?void 0:n.call(t,"add")})),k=[{value:"Navigation",items:$},...E.length>0?[{value:"Recent sessions",items:E}]:[],...F.length>0?[{value:"Projects",items:F}]:[],...I.length>0?[{value:"Devices",items:I}]:[],{value:"View",items:o},{value:"Tools",items:R}],D=function(i){t.onOpenChange(!1),i.run()};l=ve,y=t.open,N=t.onOpenChange,x="Command palette",w="Search for a Cogpit action to run.",C="max-w-xl",c=we,S="Search commands",g=!0,e[16]===Symbol.for("react.memo_cache_sentinel")?(b=u.jsx(Ce,{"aria-label":"Search commands",autoFocus:!0,placeholder:"Search commands..."}),e[16]=b):b=e[16],e[17]!==t.loadingNavigation?(f=t.loadingNavigation&&u.jsxs("div",{className:"motion-enter flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground",role:"status",children:[u.jsx(ue,{className:"size-3.5"}),"Loading projects and sessions..."]}),e[17]=t.loadingNavigation,e[18]=f):f=e[18],s=Se,m="max-h-[min(26rem,60vh)]",e[19]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx(je,{children:"No matching actions."}),e[19]=d):d=e[19],r=k.map(n=>u.jsx(he,{heading:n.value,children:n.items.map(i=>{const v=i.icon;return u.jsxs(ge,{value:i.value,onSelect:()=>D(i),children:[u.jsx(v,{"aria-hidden":"true"}),u.jsxs("span",{className:"min-w-0 flex-1",children:[u.jsx("span",{className:"block truncate",children:i.label}),i.description&&u.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:i.description})]}),i.shortcut&&u.jsx(fe,{children:i.shortcut})]},i.id)})},n.value)),e[0]=t,e[1]=s,e[2]=c,e[3]=l,e[4]=m,e[5]=d,e[6]=w,e[7]=C,e[8]=r,e[9]=S,e[10]=g,e[11]=b,e[12]=f,e[13]=y,e[14]=N,e[15]=x}else s=e[1],c=e[2],l=e[3],m=e[4],d=e[5],w=e[6],C=e[7],r=e[8],S=e[9],g=e[10],b=e[11],f=e[12],y=e[13],N=e[14],x=e[15];let P;e[20]!==s||e[21]!==m||e[22]!==d||e[23]!==r?(P=u.jsxs(s,{className:m,children:[d,r]}),e[20]=s,e[21]=m,e[22]=d,e[23]=r,e[24]=P):P=e[24];let T;e[25]!==c||e[26]!==P||e[27]!==S||e[28]!==g||e[29]!==b||e[30]!==f?(T=u.jsxs(c,{label:S,loop:g,children:[b,f,P]}),e[25]=c,e[26]=P,e[27]=S,e[28]=g,e[29]=b,e[30]=f,e[31]=T):T=e[31];let O;return e[32]!==l||e[33]!==w||e[34]!==C||e[35]!==T||e[36]!==y||e[37]!==N||e[38]!==x?(O=u.jsx(l,{open:y,onOpenChange:N,title:x,description:w,className:C,children:T}),e[32]=l,e[33]=w,e[34]=C,e[35]=T,e[36]=y,e[37]=N,e[38]=x,e[39]=O):O=e[39],O}function ot(t){return a(t.id,t.label,t.keywords,t.icon,t.onSelect)}async function se(t,e){const s=await Ie(t,{signal:e});if(!s.ok)throw new Error(`Request failed (${s.status})`);const c=await s.json();return Array.isArray(c)?c:[]}function dt(t){var J;const e=ie.c(51);let s,c,l,m,d,w;e[0]!==t?({open:l,currentProjectDirName:s,projectCwd:d,onProcessStarted:c,launchTerminalRequest:w,...m}=t,e[0]=t,e[1]=s,e[2]=c,e[3]=l,e[4]=m,e[5]=d,e[6]=w):(s=e[1],c=e[2],l=e[3],m=e[4],d=e[5],w=e[6]);const C=w===void 0?0:w,r=be();let S;e[7]===Symbol.for("react.memo_cache_sentinel")?(S=[],e[7]=S):S=e[7];const[g,b]=M.useState(S);let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[8]=f):f=e[8];const[y,N]=M.useState(f),[x,P]=M.useState(!1),T=M.useRef(0),O=ye();let $,F;e[9]!==O||e[10]!==l?($=()=>{if(!l)return;const j=new AbortController,B=Te();return P(!0),Promise.allSettled([se("/api/projects",j.signal),se(Oe({limit:"12",perProject:"3"},O),j.signal)]).then(me=>{const[X,Q]=me;if(j.signal.aborted)return;const Y=Q.status==="fulfilled"?Q.value:[];ke(Y,B),b(X.status==="fulfilled"?X.value:[]),N(Y),P(!1)}),()=>j.abort()},F=[l,O],e[9]=O,e[10]=l,e[11]=$,e[12]=F):($=e[11],F=e[12]),M.useEffect($,F);let E;e[13]!==g?(E=xe(g),e[13]=g,e[14]=E):E=e[14];const A=E;let I;e:{if(d){I=d;break e}if(!s){I=null;break e}let j;e[15]!==s||e[16]!==g?(j=((J=g.find(B=>B.dirName===s))==null?void 0:J.path)??null,e[15]=s,e[16]=g,e[17]=j):j=e[17],I=j}const o=I;let R;e[18]!==c||e[19]!==r||e[20]!==o?(R=()=>{if(!o)return;const j=r.spawnTerminal({cwd:o}),B=o.replace(/\/+$/,"").split("/").at(-1)||"Terminal";c({id:j,name:B,type:"terminal",status:"running",source:o})},e[18]=c,e[19]=r,e[20]=o,e[21]=R):R=e[21];const k=R;let D,n;e[22]!==k||e[23]!==C||e[24]!==r.status||e[25]!==o?(n=()=>{C<=T.current||!o||r.status!=="connected"||(T.current=C,k())},D=[k,C,r.status,o],e[22]=k,e[23]=C,e[24]=r.status,e[25]=o,e[26]=D,e[27]=n):(D=e[26],n=e[27]),M.useEffect(n,D);let i;e[28]!==s||e[29]!==o?(i={path:o,dirName:s},e[28]=s,e[29]=o,e[30]=i):i=e[30];const v=i;let L;e[31]!==v?(L=()=>Ne(v),e[31]=v,e[32]=L):L=e[32];const q=L;let G;e[33]!==v?(G=()=>Fe(v),e[33]=v,e[34]=G):G=e[34];const le=G,ce=!ee()&&_("hostFiles"),re=_("hostFiles")&&(!ee()||Pe());let K;e[35]!==o?(K=()=>{o&&Ee(o)},e[35]=o,e[36]=K):K=e[36];const de=K;let H;e[37]!==k||e[38]!==r.status||e[39]!==o?(H=o&&r.status==="connected"&&_("terminal")?k:void 0,e[37]=k,e[38]=r.status,e[39]=o,e[40]=H):H=e[40];const U=o&&re?q:void 0,W=o&&ce?le:void 0,p=o?de:void 0;let z;return e[41]!==x||e[42]!==l||e[43]!==m||e[44]!==y||e[45]!==A||e[46]!==H||e[47]!==U||e[48]!==W||e[49]!==p?(z=u.jsx(at,{...m,open:l,projects:A,recentSessions:y,loadingNavigation:x,onOpenIntegratedTerminal:H,onOpenProjectInEditor:U,onRevealProject:W,onCopyProjectPath:p}),e[41]=x,e[42]=l,e[43]=m,e[44]=y,e[45]=A,e[46]=H,e[47]=U,e[48]=W,e[49]=p,e[50]=z):z=e[50],z}export{dt as CommandPaletteHost};
@@ -1 +0,0 @@
1
- import{c as M,j as t,r as o}from"./vendor-react-gGw_S5I_.js";import{c2 as ye,c4 as Ce,J as F,z as ke,C as q,bF as X,T as ve,H as Z,be as ae,B as I,U as A,bO as Ne,bM as Se,bN as we,c5 as De,c6 as Te,c7 as Ee,c8 as V,c9 as Re,ca as ee,cb as Oe,Z as te,a5 as le,cc as Ie,a6 as ie,a7 as re,a9 as oe,aa as ce,ab as de,ac as ue,ad as me,ah as ze,L as Ae,M as Le,N as Be,O as $e,Q as Fe,Y as Me,m as Ge,I as ne,n as Pe,E as Ue,q as _e,cd as Ve}from"./index-CPTFl4Qh.js";import{aw as He,A as Ke,i as Je,a7 as Qe,ax as Ye,ab as We,ay as xe,p as fe,az as qe,aA as Xe,W as H,X as K,P as Ze,aB as he,aC as et,k as tt,a4 as nt,S as st,U as at}from"./vendor-ui-DQeMoSiV.js";import{H as lt}from"./HighlightedEditor-D9A-dW2Z.js";import"./vendor-shiki-DOn6sF-i.js";import"./vendor-markdown-BE1gYnO9.js";const it={agent:"bg-muted text-muted-foreground",skill:"bg-muted text-muted-foreground",command:"bg-muted text-muted-foreground",instructions:"bg-muted text-muted-foreground",settings:"bg-muted text-muted-foreground"},rt={agents:{subdir:"agents",fileType:"agent"},skills:{subdir:"skills",fileType:"skill"},commands:{subdir:"commands",fileType:"command"}},se=["instructions","agents","skills","commands","settings"],ot={instructions:{label:"Instructions",icon:Ye,color:"text-muted-foreground"},agents:{label:"Agents",icon:Qe,color:"text-muted-foreground"},skills:{label:"Skills",icon:Je,color:"text-muted-foreground"},commands:{label:"Commands",icon:Ke,color:"text-muted-foreground"},settings:{label:"Settings",icon:He,color:"text-muted-foreground"}};function J(l,e,i){const n=[];for(const s of l)s.type==="directory"&&s.children?n.push(...J(s.children,e,i)):s.type==="file"&&n.push({name:s.name,path:s.path,fileType:s.fileType||"unknown",description:s.description||"",scope:e,pluginName:i,readOnly:s.readOnly??e==="plugin",cli:s.cli,linkTarget:s.linkTarget});return n}function ct(l){const e={instructions:[],agents:[],skills:[],commands:[],settings:[]};for(const i of l){const n=J(i.items,i.scope,i.pluginName);for(const s of n)switch(s.fileType){case"instructions":e.instructions.push(s);break;case"agent":e.agents.push(s);break;case"skill":e.skills.push(s);break;case"command":e.commands.push(s);break;case"settings":default:e.settings.push(s)}}return e}function pe(l){const e=M.c(5),{scope:i,pluginName:n}=l;if(i==="plugin"&&n){let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(We,{"data-icon":"inline-start",className:"size-3"}),e[0]=r):r=e[0];let u;return e[1]!==n?(u=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-xs text-muted-foreground",children:[r,n]}),e[1]=n,e[2]=u):u=e[2],u}if(i==="project"){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-xs text-muted-foreground",children:[t.jsx(xe,{"data-icon":"inline-start",className:"size-3"}),"project"]}),e[3]=r):r=e[3],r}let s;return e[4]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-xs text-muted-foreground",children:[t.jsx(fe,{"data-icon":"inline-start",className:"size-3"}),"global"]}),e[4]=s):s=e[4],s}const dt=Object.fromEntries(ye().map(l=>[l.kind,Ce(l.kind)]));function ge(l){const e=M.c(10),{cli:i,variant:n}=l,s=n===void 0?"compact":n;if(!i)return null;if(i.length===0){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(qe,{"data-icon":"inline-start",className:"size-3"}),e[0]=m):m=e[0];const c=s==="full"&&"unlinked";let d;return e[1]!==c?(d=t.jsxs("span",{className:"flex shrink-0 items-center gap-1 text-xs text-warning",title:"Present in the shared source directory but not linked into any CLI",children:[m,c]}),e[1]=c,e[2]=d):d=e[2],d}let r;if(e[3]!==i||e[4]!==s){let m;e[6]!==s?(m=c=>{const d=dt[c];return t.jsx("span",{title:d.label,className:s==="full"?"flex h-5 items-center justify-center rounded border bg-muted px-1.5 text-xs font-medium text-muted-foreground":"flex size-5 items-center justify-center rounded border bg-muted text-xs font-medium text-muted-foreground",children:s==="full"?c:d.letter},c)},e[6]=s,e[7]=m):m=e[7],r=i.map(m),e[3]=i,e[4]=s,e[5]=r}else r=e[5];let u;return e[8]!==r?(u=t.jsx("span",{className:"flex items-center gap-0.5 shrink-0",children:r}),e[8]=r,e[9]=u):u=e[9],u}function je(l){const e=M.c(10),{linkTarget:i,variant:n,className:s}=l,r=n===void 0?"compact":n;if(!i)return null;let u;e[0]!==s?(u=F("flex min-w-0 shrink-0 items-center gap-1 text-info",s),e[0]=s,e[1]=u):u=e[1];const m=`Symlink → ${i}`;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(Xe,{"data-icon":"inline-start",className:"size-3 shrink-0"}),e[2]=c):c=e[2];let d;e[3]!==i||e[4]!==r?(d=r==="full"&&t.jsxs("span",{className:"truncate font-mono text-xs",children:["→ ",i]}),e[3]=i,e[4]=r,e[5]=d):d=e[5];let g;return e[6]!==u||e[7]!==m||e[8]!==d?(g=t.jsxs("span",{className:u,title:m,children:[c,d]}),e[6]=u,e[7]=m,e[8]=d,e[9]=g):g=e[9],g}function ut({globalDir:l,projectDir:e,fileType:i,onCreated:n,onCancel:s}){const[r,u]=o.useState(""),[m,c]=o.useState(e?"project":"global"),[d,g]=o.useState(!1),w=o.useRef(null),y=o.useId();o.useEffect(()=>{var x;(x=w.current)==null||x.focus()},[]);const k=m==="project"&&e?e:l,b=!!l&&!!e;async function S(){if(!(!r.trim()||!k)){g(!0);try{const x=await A("/api/config-browser/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({dir:k,fileType:i,name:r.trim()})});if(x.ok){const p=await x.json();n(p.path,i,m)}}finally{g(!1)}}}return t.jsxs(ke,{className:"gap-3 px-3 py-2",children:[b&&t.jsxs(q,{children:[t.jsx(X,{children:"Scope"}),t.jsxs(ve,{"aria-label":"File scope",value:[m],onValueChange:x=>{const p=x[0];(p==="global"||p==="project")&&c(p)},variant:"outline",size:"sm",spacing:0,className:"w-full",children:[t.jsxs(Z,{value:"global",className:"flex-1",children:[t.jsx(fe,{"data-icon":"inline-start"}),"Global"]}),t.jsxs(Z,{value:"project",className:"flex-1",children:[t.jsx(xe,{"data-icon":"inline-start"}),"Project"]})]})]}),t.jsxs(q,{children:[t.jsxs(X,{htmlFor:y,children:[i.charAt(0).toUpperCase()+i.slice(1)," name"]}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx(ae,{id:y,ref:w,type:"text",value:r,onChange:x=>u(x.target.value),onKeyDown:x=>{x.key==="Enter"&&S(),x.key==="Escape"&&s()},placeholder:`${i} name...`,className:"h-7 min-w-0 flex-1 text-xs",disabled:d}),t.jsx(I,{variant:"ghost",size:"icon-xs","aria-label":`Create ${i}`,onClick:()=>void S(),disabled:d||!r.trim()||!k,children:t.jsx(H,{"data-icon":"inline-start"})}),t.jsx(I,{variant:"ghost",size:"icon-xs","aria-label":"Cancel create",onClick:s,children:t.jsx(K,{"data-icon":"inline-start"})})]})]})]})}function mt(l){const e=M.c(50),{category:i,items:n,selectedPath:s,onSelect:r,onNewFile:u,onDeleteItem:m,onRenameItem:c,renamingPath:d,renameValue:g,onRenameValueChange:w,onRenameSubmit:y,onRenameCancel:k,creatingInCategory:b,onCreated:S,onCancelCreate:x}=l,p=ot[i],C=p.icon;if(n.length===0&&!u)return null;let N;e[0]!==p.color?(N=F("size-3.5",p.color),e[0]=p.color,e[1]=N):N=e[1];let v;e[2]!==C||e[3]!==N?(v=t.jsx(C,{"data-icon":"inline-start",className:N}),e[2]=C,e[3]=N,e[4]=v):v=e[4];let T;e[5]!==p.label?(T=t.jsx("span",{className:"flex-1 text-xs font-medium text-muted-foreground",children:p.label}),e[5]=p.label,e[6]=T):T=e[6];let E;e[7]!==n.length?(E=t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:n.length}),e[7]=n.length,e[8]=E):E=e[8];let f;e[9]!==i||e[10]!==u?(f=u&&t.jsxs(Ne,{children:[t.jsx(Se,{render:t.jsx(I,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover:opacity-100","aria-label":`New ${i.slice(0,-1)}`,onClick:u}),children:t.jsx(Ze,{"data-icon":"inline-start"})}),t.jsxs(we,{children:["New ",i.slice(0,-1)]})]}),e[9]=i,e[10]=u,e[11]=f):f=e[11];let D;e[12]!==v||e[13]!==T||e[14]!==E||e[15]!==f?(D=t.jsxs("div",{className:"group flex h-8 items-center gap-1.5 px-3",children:[v,T,E,f]}),e[12]=v,e[13]=T,e[14]=E,e[15]=f,e[16]=D):D=e[16];let z;if(e[17]!==n||e[18]!==m||e[19]!==k||e[20]!==c||e[21]!==y||e[22]!==w||e[23]!==r||e[24]!==g||e[25]!==d||e[26]!==s){let B;e[28]!==m||e[29]!==k||e[30]!==c||e[31]!==y||e[32]!==w||e[33]!==r||e[34]!==g||e[35]!==d||e[36]!==s?(B=j=>{const U=s===j.path;if(d===j.path)return t.jsxs("div",{className:"flex items-center gap-1 border-l-2 border-foreground/30 bg-accent px-3 py-1",children:[t.jsx(ae,{value:g,onChange:$=>w($.target.value),onKeyDown:$=>{$.key==="Enter"&&y(),$.key==="Escape"&&k()},autoFocus:!0,className:"h-7 min-w-0 flex-1 text-xs"}),t.jsx(I,{variant:"ghost",size:"icon-xs","aria-label":"Save name",onClick:y,disabled:!g.trim(),children:t.jsx(H,{"data-icon":"inline-start"})}),t.jsx(I,{variant:"ghost",size:"icon-xs","aria-label":"Cancel rename",onClick:k,children:t.jsx(K,{"data-icon":"inline-start"})})]},j.path);const G=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"truncate text-sm",children:j.name}),t.jsx(je,{linkTarget:j.linkTarget}),j.readOnly&&t.jsx(he,{className:"size-2.5 shrink-0 text-muted-foreground/40"})]}),j.description&&t.jsx("p",{className:"mt-0.5 truncate text-xs text-muted-foreground",children:j.description})]}),t.jsx(ge,{cli:j.cli}),t.jsx(pe,{scope:j.scope,pluginName:j.pluginName})]}),P=F("flex w-full items-center gap-2 border-l-2 px-3 py-2 text-left text-sm transition-colors",U?"border-foreground/30 bg-accent text-accent-foreground":"border-transparent text-muted-foreground hover:bg-accent hover:text-foreground");return!m||!c?t.jsx("button",{type:"button",className:P,onClick:()=>r(j),children:G},j.path):t.jsxs(De,{children:[t.jsx(Te,{render:t.jsx("button",{type:"button",className:P,onClick:()=>r(j)}),children:G}),t.jsx(Ee,{className:"min-w-36",children:j.readOnly?t.jsx(V,{children:t.jsx(Re,{children:"Read-only file"})}):t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(ee,{onClick:()=>c(j),children:"Rename"})}),t.jsx(Oe,{}),t.jsx(V,{children:t.jsx(ee,{variant:"destructive",onClick:()=>m(j),children:"Delete"})})]})})]},j.path)},e[28]=m,e[29]=k,e[30]=c,e[31]=y,e[32]=w,e[33]=r,e[34]=g,e[35]=d,e[36]=s,e[37]=B):B=e[37],z=n.map(B),e[17]=n,e[18]=m,e[19]=k,e[20]=c,e[21]=y,e[22]=w,e[23]=r,e[24]=g,e[25]=d,e[26]=s,e[27]=z}else z=e[27];let R;e[38]!==b||e[39]!==n.length?(R=n.length===0&&!b&&t.jsx("p",{className:"px-3 py-1 text-xs text-muted-foreground",children:"None configured"}),e[38]=b,e[39]=n.length,e[40]=R):R=e[40];let O;e[41]!==b||e[42]!==x||e[43]!==S?(O=b&&t.jsx(ut,{globalDir:b.globalDir,projectDir:b.projectDir,fileType:b.fileType,onCreated:S,onCancel:x}),e[41]=b,e[42]=x,e[43]=S,e[44]=O):O=e[44];let L;return e[45]!==D||e[46]!==z||e[47]!==R||e[48]!==O?(L=t.jsxs("section",{children:[D,z,R,O]}),e[45]=D,e[46]=z,e[47]=R,e[48]=O,e[49]=L):L=e[49],L}function xt({file:l,onDeleted:e,readOnly:i=!1}){const[n,s]=o.useState(null),[r,u]=o.useState(null),[m,c]=o.useState(!0),[d,g]=o.useState(!1),[w,y]=o.useState(!1),[k,b]=o.useState(!1),[S,x]=o.useState(!1),p=n!==null&&n!==r,C=i||l.readOnly;o.useEffect(()=>{c(!0),s(null),u(null),y(!1),b(!1),A(`/api/config-browser/file?path=${encodeURIComponent(l.path)}`).then(f=>f.json()).then(f=>{s(f.content??""),u(f.content??"")}).catch(()=>{s(""),u("")}).finally(()=>c(!1))},[l.path]);const N=o.useCallback(async()=>{if(!(!p||C)){g(!0);try{(await A("/api/config-browser/file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:l.path,content:n})})).ok&&(u(n),y(!0),setTimeout(()=>y(!1),2e3))}finally{g(!1)}}},[n,l.path,p,C]),v=o.useCallback(()=>{s(r)},[r]),T=o.useCallback(async()=>{if(!C){x(!0);try{(await A(`/api/config-browser/file?path=${encodeURIComponent(l.path)}`,{method:"DELETE"})).ok&&(b(!1),e())}catch{}finally{x(!1)}}},[l.path,C,e]);o.useEffect(()=>{function f(D){!C&&(D.metaKey||D.ctrlKey)&&D.key==="s"&&(D.preventDefault(),N())}return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[N,C]);function E(){return w?"Saved!":d?"Saving...":"Save"}return t.jsxs("div",{className:"flex flex-1 flex-col min-h-0 min-w-0",children:[t.jsxs("div",{className:"flex min-h-11 shrink-0 items-center gap-2 border-b bg-card px-4 py-2",children:[t.jsx(te,{variant:"outline",className:F("h-5 text-xs",it[l.fileType]||"bg-muted text-muted-foreground"),children:l.fileType}),t.jsx(pe,{scope:l.scope,pluginName:l.pluginName}),t.jsx(ge,{cli:l.cli,variant:"full"}),C&&t.jsxs(te,{variant:"outline",className:"h-5 bg-muted text-xs text-muted-foreground",children:[t.jsx(he,{"data-icon":"inline-start",className:"size-3"})," read-only"]}),p&&t.jsx("span",{className:"size-2 shrink-0 rounded-full bg-warning",title:"Unsaved changes"}),t.jsxs("div",{className:"flex items-center gap-2 ml-auto min-w-0",children:[t.jsx(je,{linkTarget:l.linkTarget,variant:"full"}),t.jsx("span",{className:"truncate font-mono text-xs text-muted-foreground",title:l.path,children:l.path})]})]}),m?t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground text-sm",children:"Loading..."}):t.jsxs("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:[t.jsx(lt,{value:n??"",onChange:s,readOnly:C,filePath:l.path}),!C&&t.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-t bg-card px-4 py-2",children:[t.jsxs(I,{size:"xs",onClick:N,disabled:!p||d,children:[t.jsx(H,{"data-icon":"inline-start"}),E()]}),t.jsxs(I,{variant:"outline",size:"xs",onClick:v,disabled:!p,children:[t.jsx(et,{"data-icon":"inline-start"}),"Discard"]}),t.jsx("div",{className:"flex-1"}),t.jsxs(le,{open:k,onOpenChange:b,children:[t.jsxs(Ie,{render:t.jsx(I,{variant:"outline",size:"xs"}),children:[t.jsx(tt,{"data-icon":"inline-start"}),"Delete"]}),t.jsxs(ie,{size:"sm",children:[t.jsxs(re,{children:[t.jsx(oe,{children:"Delete configuration file?"}),t.jsxs(ce,{children:['Delete "',l.name,'" permanently? This action cannot be undone.']})]}),t.jsxs(de,{children:[t.jsx(ue,{size:"sm",disabled:S,children:"Cancel"}),t.jsxs(me,{variant:"destructive",size:"sm",disabled:S,onClick:()=>void T(),children:[S&&t.jsx(ze,{"data-icon":"inline-start"}),S?"Deleting...":"Delete file"]})]})]})]})]})]})]})}function ft(){const l=M.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ae,{className:"border-0",children:t.jsxs(Le,{children:[t.jsx(Be,{variant:"icon",children:t.jsx(nt,{})}),t.jsx($e,{children:"Select a configuration file"}),t.jsx(Fe,{children:"Browse instructions, agents, skills, commands, and settings from the sidebar."})]})}),l[0]=e):e=l[0],e}function ht(l){return l.cli?l.cli.length>0?l.cli.join(" "):"unlinked":""}function pt(l,e){if(!e)return l;const i=e.toLowerCase();return l.filter(n=>[n.name,n.description,n.path,n.linkTarget??"",ht(n)].some(r=>r.toLowerCase().includes(i)))}const vt=o.memo(function({projectPath:e,initialFilePath:i}){var Y,W;const n=Me("configWrite"),[s,r]=o.useState([]),[u,m]=o.useState(!0),[c,d]=o.useState(null),[g,w]=o.useState(!1),[y,k]=o.useState(null),[b,S]=o.useState(""),[x,p]=o.useState(null),[C,N]=o.useState(""),[v,T]=o.useState(null),E=o.useRef(!1),f=o.useCallback(async()=>{if(!n){r([]),d(null),m(!1);return}m(!0);try{const a=e?`/api/config-browser/tree?cwd=${encodeURIComponent(e)}`:"/api/config-browser/tree",h=await A(a);if(h.ok){const _=await h.json();r(_.sections||[])}}finally{m(!1)}},[n,e]);o.useEffect(()=>{f()},[f]),o.useEffect(()=>{if(!i||u||E.current)return;const a=s.flatMap(h=>J(h.items,h.scope,h.pluginName)).find(h=>h.path===i);a&&(d(a),E.current=!0)},[i,u,s]);const D=ct(s),z=Object.fromEntries(se.map(a=>[a,pt(D[a],b)])),R=(Y=s.find(a=>a.scope==="global"))==null?void 0:Y.baseDir,O=(W=s.find(a=>a.scope==="project"))==null?void 0:W.baseDir,L=o.useCallback(a=>{d(a),w(!1),k(null)},[]),B=o.useCallback((a,h,_)=>{k(null),f(),d({path:a,name:a.split("/").pop()||"",fileType:h,readOnly:!1,scope:_,description:""})},[f]),j=o.useCallback(()=>{d(null),f()},[f]),U=o.useCallback(a=>{if(!n||!R&&!O)return;const h=rt[a];h&&k({category:a,globalDir:R?`${R}/${h.subdir}`:null,projectDir:O?`${O}/${h.subdir}`:null,fileType:h.fileType})},[n,R,O]),Q=o.useCallback(a=>{!n||a.readOnly||T(a)},[n]),G=o.useCallback(async()=>{if(!n||!v||v.readOnly)return;const a=v;T(null);try{(await A(`/api/config-browser/file?path=${encodeURIComponent(a.path)}`,{method:"DELETE"})).ok&&((c==null?void 0:c.path)===a.path&&d(null),f())}catch{}},[n,f,v,c]),P=o.useCallback(a=>{if(!n||a.readOnly)return;const h=a.name==="SKILL.md"?a.path.split("/").slice(-2,-1)[0]||a.name:a.name.replace(/\.[^.]+$/,"");p(a),N(h)},[n]),$=o.useCallback(async()=>{if(!(!n||!x||!C.trim()))try{const a=await A("/api/config-browser/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({oldPath:x.path,newName:C.trim()})});if(a.ok){const h=await a.json();p(null),N(""),await f(),h.newPath&&d({...x,path:h.newPath,name:h.newPath.split("/").pop()||x.name})}}catch{}},[n,x,C,f]),be=o.useCallback(()=>{p(null),N("")},[]);return n?t.jsxs("div",{className:"flex flex-1 min-h-0 min-w-0",children:[t.jsxs("div",{className:F("min-h-0 shrink-0 flex-col border-r bg-sidebar md:flex md:w-80",c&&!g?"hidden":"flex w-full"),children:[t.jsxs("div",{className:"flex h-11 items-center gap-2 border-b px-3",children:[t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Configuration"}),e&&t.jsx("span",{className:"ml-auto truncate text-xs text-muted-foreground",title:e,children:e.split("/").pop()})]}),t.jsx("div",{className:"border-b p-2",children:t.jsxs(Ge,{children:[t.jsx(ne,{children:t.jsx(st,{"data-icon":"inline-start"})}),t.jsx(Pe,{value:b,onChange:a=>S(a.target.value),placeholder:"Search configuration"}),b&&t.jsx(ne,{align:"inline-end",children:t.jsx(Ue,{size:"icon-xs","aria-label":"Clear search",onClick:()=>S(""),children:t.jsx(K,{"data-icon":"inline-start"})})})]})}),t.jsx(_e,{className:"flex-1",children:t.jsx("div",{className:"flex flex-col gap-1 py-2",children:u?t.jsx("div",{className:"flex flex-col gap-2 px-3 py-2","aria-label":"Loading configuration",children:Array.from({length:6},(a,h)=>t.jsx(Ve,{className:"h-8 w-full"},h))}):se.map(a=>{const h=a==="agents"||a==="skills"||a==="commands";return t.jsx(mt,{category:a,items:z[a],selectedPath:(c==null?void 0:c.path)??null,onSelect:L,onNewFile:n&&h?()=>U(a):void 0,onDeleteItem:n?Q:void 0,onRenameItem:n?P:void 0,renamingPath:(x==null?void 0:x.path)??null,renameValue:C,onRenameValueChange:N,onRenameSubmit:$,onRenameCancel:be,creatingInCategory:n&&(y==null?void 0:y.category)===a?y:null,onCreated:B,onCancelCreate:()=>k(null)},a)})})})]}),t.jsx("div",{className:F("min-h-0 min-w-0 flex-1 flex-col md:flex",c&&!g?"flex":"hidden"),children:c?t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"ghost",className:"min-h-11 shrink-0 justify-start md:hidden",onClick:()=>w(!0),children:[t.jsx(at,{"data-icon":"inline-start"}),"All configuration files"]}),t.jsx(xt,{file:c,onDeleted:j,readOnly:!n})]}):t.jsx(ft,{})}),t.jsx(le,{open:v!==null,onOpenChange:a=>{a||T(null)},children:t.jsxs(ie,{size:"sm",children:[t.jsxs(re,{children:[t.jsx(oe,{children:"Delete configuration file?"}),t.jsxs(ce,{children:['Delete "',v==null?void 0:v.name,'" permanently? This action cannot be undone.']})]}),t.jsxs(de,{children:[t.jsx(ue,{size:"sm",children:"Cancel"}),t.jsx(me,{variant:"destructive",size:"sm",onClick:()=>void G(),children:"Delete file"})]})]})})]}):t.jsx("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"Server configuration is available to administrators only."})});export{vt as ConfigBrowser};
@@ -1 +0,0 @@
1
- import{r as C,c as ue,j as n}from"./vendor-react-gGw_S5I_.js";import{U as ze,bz as it,bA as je,bB as jt,bC as yt,bD as Nt,B as te,L as rt,M as ct,N as It,O as dt,Q as ut,C as Ze,bE as Ct,bF as Qe,z as et,bG as kt,bH as St,q as ft,aK as Mt,bI as $t,bJ as Rt,bs as Tt,bK as At,aP as Ot,R as Et,D as Lt,h as _t,j as zt,k as Dt,J as oe,bL as Ft,bM as Pt,bN as Yt,bO as qt,bP as qe,$ as We,bQ as Wt,bp as Ht,bR as Ut,bS as Bt,bT as Ae,bU as Oe,b8 as Gt,Z as Kt,bV as Vt,bW as Xt,bX as Jt,bx as Zt}from"./index-CPTFl4Qh.js";import{S as Qt}from"./switch-DS7UyNS2.js";import{m as es,ag as ts,aa as ss,e as ns,ah as ht,ai as pt,P as os,a7 as as,$ as ls,C as De,aj as is,ak as rs,X as cs}from"./vendor-ui-DQeMoSiV.js";import"./vendor-shiki-DOn6sF-i.js";import"./vendor-markdown-BE1gYnO9.js";async function ke(t){if(t.ok)return t;const e=await t.json().catch(()=>null);throw new Error((e==null?void 0:e.error)||"Couldn't update crew chat.")}function Ee(t,e){return[...new Map([...t,...e].map(s=>[s.sequence,s])).values()].sort((s,r)=>s.sequence-r.sequence)}function ds(t){const[e,s]=C.useState(null),[r,i]=C.useState([]),[a,c]=C.useState(null),[o,f]=C.useState(!1),[g,h]=C.useState(!1),[l,w]=C.useState(!1),[u,x]=C.useState(new Set),p=C.useRef(0),m=C.useRef(null),y=C.useRef(!1),k=C.useRef(!1),b=C.useRef(new Set),M=C.useRef(!1),N=C.useRef(null),$=C.useCallback(async j=>{const L=++p.current;try{const I=N.current,S=await(await ke(await ze(`/api/crew-chat/${encodeURIComponent(t)}${I===null?"":`?after=${I}&limit=100`}`))).json();if(!j()||L!==p.current)return;s(R=>R&&JSON.stringify(R.members)===JSON.stringify(S.members)?{...S,members:R.members}:S),i(R=>Ee(R,S.messages)),N.current=S.nextCursor,M.current||(M.current=!0,w(S.hasMore)),c(null)}catch(I){j()&&L===p.current&&c(I instanceof Error?I.message:"Couldn't load crew chat.")}},[t]);it($,2e3);const _=C.useCallback(async j=>{var L;if(y.current)return!1;y.current=!0,f(!0),((L=m.current)==null?void 0:L.text)!==j&&(m.current={text:j,id:crypto.randomUUID()});try{const A=await(await ke(await je(`/api/crew-chat/${encodeURIComponent(t)}`,{text:j,commandId:m.current.id}))).json();return p.current++,i(S=>Ee(S,[A.message])),m.current=null,c(A.pending.length?"Message saved. Some members are unavailable; delivery will retry.":null),!0}catch(I){return c(I instanceof Error?I.message:"Couldn't send the message."),!1}finally{y.current=!1,f(!1)}},[t]),O=C.useCallback(async(j,L)=>{if(!b.current.has(j)){b.current.add(j),x(I=>new Set(I).add(j));try{await ke(await je(`/api/crew-chat/${encodeURIComponent(t)}`,{sessionId:j,listening:L},{method:"PATCH"})),p.current++,s(I=>I&&{...I,members:I.members.map(A=>A.sessionId===j?{...A,listening:L}:A)}),c(null)}catch(I){c(I instanceof Error?I.message:"Couldn't change listening.")}finally{b.current.delete(j),x(I=>{const A=new Set(I);return A.delete(j),A})}}},[t]),E=C.useCallback(async()=>{if(!(!r.length||k.current)){k.current=!0,h(!0);try{const L=await(await ke(await ze(`/api/crew-chat/${encodeURIComponent(t)}?before=${r[0].sequence}`))).json();i(I=>Ee(I,L.messages)),w(L.hasMore)}catch(j){c(j instanceof Error?j.message:"Couldn't load older messages.")}finally{k.current=!1,h(!1)}}},[r,t]);return{page:e,messages:r,error:a,posting:o,busyMembers:u,hasOlder:l,loadingOlder:g,post:_,setListening:O,older:E}}const us=[],fs=new Map;function hs(t){var He,Ue,Be,Ge,Ke,Ve,Xe;const e=ue.c(111),{rootId:s,kinds:r,active:i}=t,a=r===void 0?fs:r,c=i===void 0?!0:i,o=ds(s),[f,g]=C.useState(""),h=C.useRef(null),l=C.useRef(!0);let w;e[0]!==o.messages?(w=(He=o.messages.at(-1))==null?void 0:He.sequence,e[0]=o.messages,e[1]=w):w=e[1];const u=w,x=((Ue=o.page)==null?void 0:Ue.members)??us;let p;e[2]!==x?(p=jt(x),e[2]=x,e[3]=p):p=e[3];const m=p;let y;e[4]!==x||e[5]!==s?(y=yt(x,s),e[4]=x,e[5]=s,e[6]=y):y=e[6];const k=y;let b;e[7]!==x?(b=new Map(x.map(ms)),e[7]=x,e[8]=b):b=e[8];const M=b;let N;e[9]!==o.messages||e[10]!==s?(N=Nt(o.messages,s),e[9]=o.messages,e[10]=s,e[11]=N):N=e[11];const $=N;let _;e[12]!==c?(_=()=>{var K,B;c&&l.current&&((B=(K=h.current)==null?void 0:K.scrollIntoView)==null||B.call(K,{block:"end"}))},e[12]=c,e[13]=_):_=e[13];let O;e[14]!==c||e[15]!==u?(O=[c,u],e[14]=c,e[15]=u,e[16]=O):O=e[16],C.useEffect(_,O);let E;e[17]!==o||e[18]!==f?(E=async()=>{const K=f.trim();!K||o.posting||await o.post(K)&&(g(B=>B.trim()===K?"":B),l.current=!0)},e[17]=o,e[18]=f,e[19]=E):E=e[19];const j=E;let L;e[20]!==o.page||e[21]!==x?(L=o.page?`${x.filter(ps).length} listening · Members & mentions`:"Loading chat…",e[20]=o.page,e[21]=x,e[22]=L):L=e[22];let I;e[23]!==L?(I=n.jsx("summary",{className:"cursor-pointer text-xs text-muted-foreground",children:L}),e[23]=L,e[24]=I):I=e[24];let A;if(e[25]!==o||e[26]!==a||e[27]!==x||e[28]!==s||e[29]!==k){let K;e[31]!==o||e[32]!==a||e[33]!==s||e[34]!==k?(K=B=>{var Je;return n.jsxs(Ze,{orientation:"horizontal",className:"items-center gap-2",children:[n.jsx(Ct,{role:B.sessionId===s?"lead":"agent",sessionId:B.sessionId,kinds:a,tints:k,className:"size-5"}),n.jsxs(Qe,{className:"min-w-0 flex-1 items-baseline gap-1.5",htmlFor:`listen-${B.sessionId}`,"aria-label":`Listen for ${B.name}`,children:[n.jsx("span",{className:"truncate",children:B.name}),n.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:["@",B.handle]})]}),n.jsx(te,{variant:"ghost",size:"icon-xs",disabled:!((Je=o.page)!=null&&Je.canPost)||!B.canInteract,onClick:()=>g(ye=>`${ye}${ye&&!/\s$/.test(ye)?" ":""}@${B.handle} `),"aria-label":`Mention ${B.name}`,title:`Mention @${B.handle}`,className:"text-muted-foreground",children:n.jsx(ts,{"data-icon":"inline-start"})}),n.jsx(Qt,{id:`listen-${B.sessionId}`,size:"sm",checked:B.listening,disabled:!B.canInteract||o.busyMembers.has(B.sessionId),onCheckedChange:ye=>void o.setListening(B.sessionId,ye)})]},B.sessionId)},e[31]=o,e[32]=a,e[33]=s,e[34]=k,e[35]=K):K=e[35],A=x.map(K),e[25]=o,e[26]=a,e[27]=x,e[28]=s,e[29]=k,e[30]=A}else A=e[30];let S;e[36]!==A?(S=n.jsx(et,{className:"max-h-48 gap-2 overflow-y-auto py-2",children:A}),e[36]=A,e[37]=S):S=e[37];let R;e[38]===Symbol.for("react.memo_cache_sentinel")?(R=n.jsx("p",{className:"pb-1 text-xs text-muted-foreground",children:"Listening sends short notices while an agent works. @mentions send the full message, even when listening is off."}),e[38]=R):R=e[38];let F;e[39]!==I||e[40]!==S?(F=n.jsxs("details",{className:"shrink-0 border-b px-3 py-2",children:[I,S,R]}),e[39]=I,e[40]=S,e[41]=F):F=e[41];let P;e[42]===Symbol.for("react.memo_cache_sentinel")?(P=K=>{const B=K.target;l.current=B.scrollHeight-B.scrollTop-B.clientHeight<80},e[42]=P):P=e[42];let H;e[43]!==o?(H=o.hasOlder&&n.jsx("div",{className:"flex justify-center py-2",children:n.jsx(te,{variant:"ghost",size:"xs",disabled:o.loadingOlder,onClick:()=>void o.older(),children:o.loadingOlder?"Loading…":"Load earlier messages"})}),e[43]=o,e[44]=H):H=e[44];let D;e[45]!==o.messages.length||e[46]!==o.page?(D=o.page&&o.messages.length===0&&n.jsx(rt,{children:n.jsxs(ct,{children:[n.jsx(It,{variant:"icon",children:n.jsx(es,{})}),n.jsx(dt,{children:"Talk to the crew"}),n.jsx(ut,{children:"Share a discovery, ask a question, or tag someone for their input."})]})}),e[45]=o.messages.length,e[46]=o.page,e[47]=D):D=e[47];let Y;if(e[48]!==M||e[49]!==m||e[50]!==a||e[51]!==s||e[52]!==$||e[53]!==k){let K;e[55]!==M||e[56]!==m||e[57]!==a||e[58]!==s||e[59]!==k?(K=B=>n.jsxs(C.Fragment,{children:[B.day!==void 0&&n.jsx(kt,{day:B.day}),n.jsx(St,{run:B,members:M,handles:m,kinds:a,tints:k,rootId:s})]},B.messages[0].sequence),e[55]=M,e[56]=m,e[57]=a,e[58]=s,e[59]=k,e[60]=K):K=e[60],Y=$.map(K),e[48]=M,e[49]=m,e[50]=a,e[51]=s,e[52]=$,e[53]=k,e[54]=Y}else Y=e[54];let G;e[61]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx("div",{ref:h}),e[61]=G):G=e[61];let U;e[62]!==Y?(U=n.jsxs("div",{role:"log","aria-label":"Shared messages","aria-live":"polite","aria-relevant":"additions",className:"flex flex-col gap-4 px-3 py-3",children:[Y,G]}),e[62]=Y,e[63]=U):U=e[63];let z;e[64]!==H||e[65]!==D||e[66]!==U?(z=n.jsxs(ft,{className:"min-h-0 flex-1",onScrollCapture:P,children:[H,D,U]}),e[64]=H,e[65]=D,e[66]=U,e[67]=z):z=e[67];let q;e[68]!==j?(q=K=>{K.preventDefault(),j()},e[68]=j,e[69]=q):q=e[69];const W=!!o.error,V=`crew-chat-${s}`;let d;e[70]!==V?(d=n.jsx(Qe,{htmlFor:V,className:"sr-only",children:"Message the crew"}),e[70]=V,e[71]=d):d=e[71];const v=`crew-chat-${s}`,T=!((Be=o.page)!=null&&Be.canPost),X=!!o.error;let ae;e[72]===Symbol.for("react.memo_cache_sentinel")?(ae=K=>g(K.target.value),e[72]=ae):ae=e[72];let Z;e[73]!==j?(Z=K=>{K.key==="Enter"&&(K.metaKey||K.ctrlKey)&&!K.nativeEvent.isComposing&&(K.preventDefault(),j())},e[73]=j,e[74]=Z):Z=e[74];let Q;e[75]!==f||e[76]!==v||e[77]!==T||e[78]!==X||e[79]!==Z?(Q=n.jsx(Mt,{id:v,value:f,rows:3,maxLength:$t,placeholder:"Message the crew… use @ to tag an agent",disabled:T,"aria-invalid":X,onChange:ae,onKeyDown:Z}),e[75]=f,e[76]=v,e[77]=T,e[78]=X,e[79]=Z,e[80]=Q):Q=e[80];let ee;e[81]!==o.error?(ee=o.error&&n.jsx("p",{role:"alert",className:"text-xs text-destructive",children:o.error}),e[81]=o.error,e[82]=ee):ee=e[82];let se;e[83]!==W||e[84]!==d||e[85]!==Q||e[86]!==ee?(se=n.jsxs(Ze,{"data-invalid":W,children:[d,Q,ee]}),e[83]=W,e[84]=d,e[85]=Q,e[86]=ee,e[87]=se):se=e[87];const re=((Ge=o.page)==null?void 0:Ge.canPost)===!1?"You have read access to this crew.":"⌘ / Ctrl + Enter to send";let J;e[88]!==re?(J=n.jsx(Rt,{className:"flex-1",children:re}),e[88]=re,e[89]=J):J=e[89];let ce;e[90]!==((Ke=o.page)==null?void 0:Ke.canPost)||e[91]!==o.posting||e[92]!==f?(ce=!((Ve=o.page)!=null&&Ve.canPost)||!f.trim()||o.posting,e[90]=(Xe=o.page)==null?void 0:Xe.canPost,e[91]=o.posting,e[92]=f,e[93]=ce):ce=e[93];let pe;e[94]===Symbol.for("react.memo_cache_sentinel")?(pe=n.jsx(ss,{"data-icon":"inline-start"}),e[94]=pe):pe=e[94];const Te=o.posting?"Sending…":"Send";let ge;e[95]!==ce||e[96]!==Te?(ge=n.jsxs(te,{type:"submit",size:"sm",disabled:ce,children:[pe,Te]}),e[95]=ce,e[96]=Te,e[97]=ge):ge=e[97];let xe;e[98]!==J||e[99]!==ge?(xe=n.jsxs("div",{className:"flex items-center gap-2",children:[J,ge]}),e[98]=J,e[99]=ge,e[100]=xe):xe=e[100];let we;e[101]!==se||e[102]!==xe?(we=n.jsxs(et,{className:"gap-2",children:[se,xe]}),e[101]=se,e[102]=xe,e[103]=we):we=e[103];let be;e[104]!==q||e[105]!==we?(be=n.jsx("form",{className:"shrink-0 border-t p-3",onSubmit:q,children:we}),e[104]=q,e[105]=we,e[106]=be):be=e[106];let Ce;return e[107]!==F||e[108]!==z||e[109]!==be?(Ce=n.jsxs("section",{"aria-label":"Crew chat",className:"flex h-full min-h-0 flex-col",children:[F,z,be]}),e[107]=F,e[108]=z,e[109]=be,e[110]=Ce):Ce=e[110],Ce}function ps(t){return t.listening}function ms(t){return[t.sessionId,t]}const fe={working:"bg-success ring-2 ring-success/30","needs-you":"bg-warning",done:"bg-muted-foreground/50",failed:"bg-destructive",unreachable:"border border-muted-foreground/60"};function mt(t){const e=new Date(t),s=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return e.toDateString()===new Date().toDateString()?s:`${e.toLocaleDateString([],{month:"short",day:"numeric"})}, ${s}`}function he(t){if(t.status==="deferred")return"needs-you";switch(t.outcome){case"needs_input":return"needs-you";case"running":return"working";case"error":return"failed";case"unreachable":case"not_found":return"unreachable";default:return"done"}}function tt(t,e){var s,r;return{sessionId:t.sessionId,dirName:((s=t.address)==null?void 0:s.dirName)??"",fileName:((r=t.address)==null?void 0:r.fileName)??"",projectShortName:"",lastModified:t.lastActivityAt??"",lastActivityAt:t.lastActivityAt,size:0,cwd:t.cwd,customTitle:t.customTitle,aiTitle:t.aiTitle,firstUserMessage:t.firstUserMessage,...t.parentId&&{crew:{rootId:e,parentId:t.parentId,startedAt:t.startedAt??0,...t.name&&{name:t.name}}}}}function gs(t,e,s){var o;const r=((o=[...e.values()].find(f=>f.parentId===null))==null?void 0:o.sessionId)??t.sessionId,i=s[t.sessionId],a=tt(t,r);if(!t.parentId)return Tt(a,i);const c=e.get(t.parentId);return At(a,{customName:i,parent:c&&tt(c,r)})}function xs(t){const e=new Map;for(const a of t.members){if(!a.parentId)continue;const c=e.get(a.parentId);c?c.push(a):e.set(a.parentId,[a])}const s=[],r=new Set,i=(a,c)=>{var f;const o=[...e.get(a)??[]].sort((g,h)=>(g.startedAt??0)-(h.startedAt??0));for(const g of o)r.has(g.sessionId)||(r.add(g.sessionId),s.push({member:g,depth:c,children:((f=e.get(g.sessionId))==null?void 0:f.length)??0}),i(g.sessionId,c+1))};i(t.rootId,0);for(const a of t.members)a.parentId&&!r.has(a.sessionId)&&(r.add(a.sessionId),s.push({member:a,depth:0,children:0}));return s}function ws(t){const e=({member:s,pending:r})=>r.askedAt??(Date.parse(s.lastActivityAt??"")||0);return t.members.flatMap(s=>s.waiting.map(r=>({member:s,pending:r}))).sort((s,r)=>e(s)-e(r))}function bs(t){const e={size:0,working:0,needsYou:0,done:0,failed:0,unreachable:0,unreadResults:0};for(const s of t.members){if(!s.parentId)continue;e.size++;const r=he(s);r==="working"?e.working++:r==="needs-you"?e.needsYou++:r==="failed"?e.failed++:r==="unreachable"?e.unreachable++:e.done++,Re(s)&&e.unreadResults++}return e}function Re(t){return!!(t.result&&t.result.state!=="running"&&!t.result.acknowledged)}function Ie(t){const[e]=t.waiting;switch(he(t)){case"needs-you":return(e==null?void 0:e.kind)==="permission"?`Waiting on a permission · ${e.toolName}`:(e==null?void 0:e.kind)==="question"?"Asked a question":!e&&t.status==="deferred"?"Awaiting permission review":"Plan to review";case"working":return t.status==="tool_use"&&t.toolName?t.toolName:t.status==="thinking"?"Thinking":t.status==="compacting"?"Compacting":t.status==="awaiting_agents"?"Waiting on its agents":"Working";case"failed":return t.error?`Failed · ${t.error}`:"Failed";case"unreachable":return t.device?`${t.device.name} is not answering`:"Not found";default:return Re(t)?"Finished · result unread":"Finished"}}const le=196,ne=86,de=40,ve=12,vs=28,Me=6,st=8,me=10,js=6,$e=28,Fe=36;function gt(t){const e=he(t);return e==="working"||e==="needs-you"}function ys(t){const e={all:t.members.length,active:0,working:0,needsYou:0};for(const s of t.members){const r=he(s);r==="working"?e.working++:r==="needs-you"&&e.needsYou++}return e.active=e.working+e.needsYou,e}const nt=(t,e)=>(t.startedAt??0)-(e.startedAt??0)||t.sessionId.localeCompare(e.sessionId);function xt(t){const e=new Map(t.members.map(i=>[i.sessionId,i])),s=new Map,r=[];for(const i of t.members){const a=i.parentId&&i.sessionId!==t.rootId?e.get(i.parentId):void 0;if(!a){r.push(i);continue}const c=s.get(a.sessionId);c?c.push(i):s.set(a.sessionId,[i])}for(const i of s.values())i.sort(nt);return r.sort((i,a)=>+(a.sessionId===t.rootId)-+(i.sessionId===t.rootId)||nt(i,a)),{roots:r,childrenOf:s}}function Ns(t,e){if(e==="all")return new Set(t.members.map(i=>i.sessionId));const s=new Map(t.members.map(i=>[i.sessionId,i])),r=new Set;for(const i of t.members){if(!gt(i))continue;let a=i;for(;a&&!r.has(a.sessionId);)r.add(a.sessionId),a=a.sessionId===t.rootId||!a.parentId?void 0:s.get(a.parentId)}return r}function Is(t){const{roots:e,childrenOf:s}=xt(t),r=new Set;let i=0;const a=e.map(c=>({member:c,depth:0}));for(;a.length>0;){const{member:c,depth:o}=a.pop();if(!r.has(c.sessionId)){r.add(c.sessionId),i=Math.max(i,o);for(const f of s.get(c.sessionId)??[])a.push({member:f,depth:o+1})}}return i}function Cs(t){return(t+1)*le+t*de}function ks(t,e,s,{group:r=!1,stacked:i}={}){const{roots:a,childrenOf:c}=xt(t),o=Ns(t,e),f=N=>(c.get(N)??[]).filter($=>o.has($.sessionId)),g=(i==null?void 0:i.cardWidth)??le,h=[],l=[],w=[],u=new Set;let x=0,p=0;const m=N=>{const $={count:0,working:0,needsYou:0},_=new Set(u),O=[...f(N)];for(;O.length>0;){const E=O.pop();if(_.has(E.sessionId))continue;_.add(E.sessionId),$.count++;const j=he(E);j==="working"?$.working++:j==="needs-you"&&$.needsYou++,O.push(...f(E.sessionId))}return $},y=N=>f(N).filter($=>!u.has($.sessionId)),k=N=>y(N.sessionId).length===0||s.has(N.sessionId),b=(N,$,_)=>{u.add(N.sessionId);const O=y(N.sessionId),E=O.length>0&&s.has(N.sessionId),j=E?[]:O,L=r&&!i&&j.length>=st?j.filter(k):[],I=L.length>=st?L:[],A=new Set(I),S=j.filter(P=>!A.has(P)),R={member:N,depth:$,x:(_==null?void 0:_.x)??$*(i?$e:le+de),y:(_==null?void 0:_.y)??x+(S.length===0&&I.length>0?me:0),childCount:O.length,collapsed:E,hidden:E?m(N.sessionId):{count:0,working:0,needsYou:0},context:e==="active"&&!gt(N),grouped:!!_};if(h.push(R),p=Math.max(p,R.x+g+(i&&O.length>0?Fe:0)),i){x+=ne+ve;const P=j.map(H=>b(H,$+1));return P.length>0&&l.push({parentId:N.sessionId,path:Ms(R.x,R.y,P)}),R.y}if(E){const P=R.y+ne/2;l.push({parentId:N.sessionId,path:`M${R.x+le} ${P}H${R.x+le+de/2}`})}if(_)return R.y;if(j.length===0)return x+=ne+ve,R.y;const F=S.map(P=>b(P,$+1));return I.length>0&&F.push(M(N.sessionId,I,$+1)+me),l.push({parentId:N.sessionId,path:Ss(R.x+le,R.y,F)}),R.y},M=(N,$,_)=>{const O=Math.min(js,Math.max(2,Math.ceil(Math.sqrt($.length/1.5)))),E=Math.ceil($.length/O),j={parentId:N,x:_*(le+de),y:x,width:O*le+(O-1)*de+2*me,height:E*ne+(E-1)*ve+2*me};return w.push(j),$.forEach((L,I)=>b(L,_,{x:j.x+me+I%O*(le+de),y:j.y+me+Math.floor(I/O)*(ne+ve)})),p=Math.max(p,j.x+j.width),x+=j.height+ve,j.y};for(const N of a)!o.has(N.sessionId)||u.has(N.sessionId)||(h.length>0&&(x+=vs),b(N,0));return{orientation:i?"stacked":"across",cardWidth:g,nodes:h,edges:l,groups:w,width:p,height:Math.max(0,x-ve)}}function Ss(t,e,s){const r=e+ne/2,i=[`M${t} ${r}H${t+de}`];for(const a of s)a!==e&&i.push(wt(t,r,a+ne/2));return i.join("")}function wt(t,e,s){const r=t+de/2;return`M${r} ${e}V${s-Me}Q${r} ${s} ${r+Me} ${s}H${t+de}`}function Ms(t,e,s){return s.map(r=>bt(t,e,r)).join("")}function bt(t,e,s){const r=t+$e/2,i=s+ne/2;return`M${r} ${e+ne}V${i-Me}Q${r} ${i} ${r+Me} ${i}H${t+$e}`}function $s(t,e){const s=new Map(t.nodes.map(c=>[c.member.sessionId,c])),r=new Map(t.groups.map(c=>[c.parentId,c]));let i=e?s.get(e):void 0;const a=[];for(;i!=null&&i.member.parentId;){const c=i.member.parentId,o=s.get(c);if(!o||o.depth!==i.depth-1)break;if(t.orientation==="stacked"){a.unshift(bt(o.x,o.y,i.y)),i=o;continue}const f=o.x+le,g=o.y+ne/2,h=i.grouped?r.get(c):void 0,l=(h?h.y+me:i.y)+ne/2;a.unshift(l===g?`M${f} ${g}H${f+de}`:`M${f} ${g}H${f+de/2}${wt(f,g,l)}`),i=o}return a.length>0?a.join(""):null}const ie=14,Pe=.25,ot=1.5,Rs=.7,Se=1.2,Ts=56,As=900,Os=.85,Es=320,Le={all:new Set,active:new Set};function Ls(t){const[e,s]=Ot(Et("crew-map-filter"),"all"),r=e==="active"?"active":"all",[i,a]=C.useState({rootId:t,folds:Le}),c=C.useRef(new Map),o=i.rootId===t?i.folds:Le,f=C.useCallback(h=>a(l=>{const w=l.rootId===t?l.folds:Le,u=new Set(w[r]);return u.delete(h)||u.add(h),{rootId:t,folds:{...w,[r]:u}}}),[r,t]),g=C.useMemo(()=>({get current(){return c.current.get(t)??null},set current(h){c.current.set(t,h)}}),[t]);return{filter:r,setFilter:s,collapsed:o[r],toggle:f,viewport:g}}function _s(t){const e=ue.c(86),{crew:s,hereId:r,controls:i,kinds:a,nameOf:c,onOpen:o}=t,[f,g]=C.useState(!1),{filter:h,collapsed:l,toggle:w}=i;let u,x,p,m,y,k,b,M,N,$,_,O,E,j,L,I;if(e[0]!==l||e[1]!==i||e[2]!==s||e[3]!==f||e[4]!==h||e[5]!==r||e[6]!==a||e[7]!==c||e[8]!==o||e[9]!==w){let U;e[26]!==s.rootId?(U=v=>v.sessionId===s.rootId,e[26]=s.rootId,e[27]=U):U=e[27];const z=s.members.find(U);let q;e[28]!==l||e[29]!==i||e[30]!==s||e[31]!==h||e[32]!==r||e[33]!==a||e[34]!==c||e[35]!==w?(q=(v,T)=>n.jsx(Ps,{crew:s,collapsed:l,groups:!v,filter:h,hereId:r,kinds:a,nameOf:c,memory:v,onOpen:T,onToggle:w,onShowAll:()=>i.setFilter("all")}),e[28]=l,e[29]=i,e[30]=s,e[31]=h,e[32]=r,e[33]=a,e[34]=c,e[35]=w,e[36]=q):q=e[36],p=q,k="flex h-full min-h-0 flex-col";let W;e[37]!==i||e[38]!==s?(W=n.jsx(at,{crew:s,controls:i}),e[37]=i,e[38]=s,e[39]=W):W=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsx("span",{className:"flex-1"}),e[40]=V):V=e[40];let d;e[41]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":"Expand the map",title:"Expand the map",onClick:()=>g(!0),children:n.jsx(ns,{"data-icon":"inline-start"})}),e[41]=d):d=e[41],e[42]!==W?(b=n.jsxs("div",{className:"flex shrink-0 items-center gap-2 px-3 pb-2",children:[W,V,d]}),e[42]=W,e[43]=b):b=e[43],e[44]!==p||e[45]!==i.viewport||e[46]!==o?(M=p(i.viewport,o),e[44]=p,e[45]=i.viewport,e[46]=o,e[47]=M):M=e[47],x=Lt,I=f,y=g,u=_t,O=!0,E="flex h-[calc(100dvh-1rem)] w-[calc(100vw-1rem)] max-w-none flex-col gap-0 overflow-hidden p-0 sm:h-[calc(100dvh-4rem)] sm:w-[calc(100vw-4rem)] sm:max-w-none",e[48]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(zt,{className:"sr-only",children:"Crew map"}),L=n.jsx(Dt,{className:"sr-only",children:"Every session in this crew, from the one that started it."}),e[48]=j,e[49]=L):(j=e[48],L=e[49]),$="flex h-12 shrink-0 items-center gap-3 pl-4 pr-14",e[50]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(ht,{"aria-hidden":"true",className:"size-4 shrink-0 text-muted-foreground"}),e[50]=_):_=e[50],m="min-w-0 truncate text-sm font-medium",N=z?c(z):"Crew",e[0]=l,e[1]=i,e[2]=s,e[3]=f,e[4]=h,e[5]=r,e[6]=a,e[7]=c,e[8]=o,e[9]=w,e[10]=u,e[11]=x,e[12]=p,e[13]=m,e[14]=y,e[15]=k,e[16]=b,e[17]=M,e[18]=N,e[19]=$,e[20]=_,e[21]=O,e[22]=E,e[23]=j,e[24]=L,e[25]=I}else u=e[10],x=e[11],p=e[12],m=e[13],y=e[14],k=e[15],b=e[16],M=e[17],N=e[18],$=e[19],_=e[20],O=e[21],E=e[22],j=e[23],L=e[24],I=e[25];let A;e[51]!==m||e[52]!==N?(A=n.jsx("span",{className:m,children:N}),e[51]=m,e[52]=N,e[53]=A):A=e[53];let S;e[54]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx("span",{className:"flex-1"}),e[54]=S):S=e[54];let R;e[55]!==i||e[56]!==s?(R=n.jsx(at,{crew:s,controls:i}),e[55]=i,e[56]=s,e[57]=R):R=e[57];let F;e[58]!==A||e[59]!==R||e[60]!==$||e[61]!==_?(F=n.jsxs("header",{className:$,children:[_,A,S,R]}),e[58]=A,e[59]=R,e[60]=$,e[61]=_,e[62]=F):F=e[62];let P;e[63]!==o?(P=U=>{g(!1),o(U)},e[63]=o,e[64]=P):P=e[64];let H;e[65]!==p||e[66]!==P?(H=p(null,P),e[65]=p,e[66]=P,e[67]=H):H=e[67];let D;e[68]!==u||e[69]!==F||e[70]!==H||e[71]!==O||e[72]!==E||e[73]!==j||e[74]!==L?(D=n.jsxs(u,{showCloseButton:O,className:E,children:[j,L,F,H]}),e[68]=u,e[69]=F,e[70]=H,e[71]=O,e[72]=E,e[73]=j,e[74]=L,e[75]=D):D=e[75];let Y;e[76]!==x||e[77]!==y||e[78]!==D||e[79]!==I?(Y=n.jsx(x,{open:I,onOpenChange:y,children:D}),e[76]=x,e[77]=y,e[78]=D,e[79]=I,e[80]=Y):Y=e[80];let G;return e[81]!==k||e[82]!==b||e[83]!==M||e[84]!==Y?(G=n.jsxs("div",{className:k,children:[b,M,Y]}),e[81]=k,e[82]=b,e[83]=M,e[84]=Y,e[85]=G):G=e[85],G}function at(t){const e=ue.c(3),{crew:s,controls:r}=t;let i;if(e[0]!==r||e[1]!==s){const a=ys(s),c=[{id:"all",label:"All",count:a.all,hint:"Every session in the crew"},{id:"active",label:"Active",count:a.active,hint:"Sessions working or waiting on you, and the sessions that started them"}];i=n.jsx("div",{role:"radiogroup","aria-label":"Show on the map",className:"flex shrink-0 gap-0.5 rounded-full border bg-background p-0.5",children:c.map(o=>{const{id:f,label:g,count:h,hint:l}=o;return n.jsxs("button",{type:"button",role:"radio","aria-checked":r.filter===f,"aria-label":`${g}, ${vt(h)}`,title:l,onClick:()=>r.setFilter(f),className:oe("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",r.filter===f&&"bg-accent text-foreground"),children:[g,n.jsx("span",{className:"tabular-nums text-muted-foreground",children:h})]},f)})}),e[0]=r,e[1]=s,e[2]=i}else i=e[2];return i}function vt(t){return`${t} ${t===1?"session":"sessions"}`}function _e(t,e,s){return t.orientation==="stacked"?{scale:e,left:ie,top:ie}:{scale:e,left:Math.max(ie,(s.width-t.width*e)/2),top:Math.max(ie,Math.min((s.height-t.height*e)/2,s.height*.12))}}function zs(t,e,s){return{width:Math.max(s.width,e.left+t.width*e.scale+ie),height:Math.max(s.height,e.top+t.height*e.scale+Ts)}}function lt(t,e,{widthOnly:s=!1}={}){if(t.width===0||e.width===0)return 1;const r=(e.width-2*ie)/t.width,i=s?r:Math.min(r,(e.height-2*ie)/t.height);return Ye(i,Pe,1)}const Ye=(t,e,s)=>Math.min(s,Math.max(e,t));function Ds(t,e,s,r,i){var w;const a=new Map(e.layout.nodes.map(u=>[u.member.sessionId,u])),c=new Map(s.nodes.map(u=>[u.member.sessionId,u]));if(e.frame===r&&a.size===c.size&&s.nodes.every(u=>{const x=a.get(u.member.sessionId);return x!==void 0&&x.x===u.x&&x.y===u.y}))return null;const f=u=>({x:e.frame.left+u.x*e.frame.scale-t.left,y:e.frame.top+u.y*e.frame.scale-t.top}),g=i&&a.has(i)&&c.has(i)?i:(w=e.layout.nodes.filter(u=>c.has(u.member.sessionId)).map(u=>({node:u,screen:f(u)})).filter(({screen:u})=>u.y+ne*e.frame.scale>0&&u.x+e.layout.cardWidth*e.frame.scale>0).sort((u,x)=>u.screen.y-x.screen.y||u.screen.x-x.screen.x)[0])==null?void 0:w.node.member.sessionId;if(!g)return null;const h=f(a.get(g)),l=c.get(g);return{left:r.left+l.x*r.scale-h.x,top:r.top+l.y*r.scale-h.y}}function Fs(t,e,s,r){const i=new Map(t.nodes.map(x=>[x.member.sessionId,x])),a=e?i.get(e):void 0;if(!a)return{left:0,top:0};const{scale:c}=s,o=s.left+a.x*c,f=s.top+a.y*c,g=o+t.cardWidth*c,h=f+ne*c;if(g<=r.clientWidth&&h<=r.clientHeight)return{left:0,top:0};const l=a.member.parentId&&i.get(a.member.parentId)||a;let w=s.left+Math.min(l.x,a.x)*c-ie,u=s.top+Math.min(l.y,a.y)*c-ie;return g-w>r.clientWidth&&(w=o-ie),h-u>r.clientHeight&&(u=f-r.clientHeight/3),{left:Math.max(0,w),top:Math.max(0,u)}}function Ps({crew:t,collapsed:e,groups:s,filter:r,hereId:i,kinds:a,nameOf:c,memory:o,onOpen:f,onToggle:g,onShowAll:h}){const l=C.useRef(null),[w,u]=C.useState({width:0,height:0}),x=s&&w.width>=As,p=C.useMemo(()=>Is(t),[t]),m=w.width-2*ie,y=!s&&w.width>0&&Cs(p)*Os>m,k=y?Ye(m-p*$e-Fe,le,Es):le,b=C.useMemo(()=>ks(t,r,e,{group:x,...y&&{stacked:{cardWidth:k}}}),[t,r,e,x,y,k]),[M,N]=C.useState(()=>{var d;return((d=o==null?void 0:o.current)==null?void 0:d.frame)??{scale:1,left:ie,top:ie}}),[$,_]=C.useState(!1),O=C.useRef(null),E=C.useRef(null),j=C.useRef({left:0,top:0}),L=C.useRef(null),I=C.useRef(null),A=zs(b,M,w),{scale:S}=M;C.useLayoutEffect(()=>{const d=l.current;if(!d)return;const v=()=>u(X=>X.width===d.clientWidth&&X.height===d.clientHeight?X:{width:d.clientWidth,height:d.clientHeight});v();const T=new ResizeObserver(v);return T.observe(d),()=>T.disconnect()},[]);const R=C.useCallback(d=>{const v=l.current;o&&v&&(o.current={frame:d,left:v.scrollLeft,top:v.scrollTop})},[o]),F=C.useCallback((d,v)=>{O.current={frame:d,scroll:v},N(d)},[]),P=C.useCallback(d=>{const v=_e(d,Math.max(lt(d,w,{widthOnly:!0}),Rs),w);F(v,()=>{const T=l.current;return T?Fs(d,i,v,T):{left:0,top:0}})},[F,i,w]);C.useLayoutEffect(()=>{const d=l.current;if(w.width===0||!d)return;const v=L.current;if(v){if(v.filter!==r||v.layout.orientation!==b.orientation)P(b);else if(v.layout!==b){const T=Ds(j.current,v,b,M,E.current);T&&(d.scrollLeft=T.left,d.scrollTop=T.top,j.current={left:d.scrollLeft,top:d.scrollTop})}}else{const T=o==null?void 0:o.current;T?F(T.frame,()=>({left:T.left,top:T.top})):P(b)}E.current=null,L.current={layout:b,filter:r,frame:M}}),C.useLayoutEffect(()=>{const d=O.current,v=l.current;if(!d||!v||d.frame!==M)return;O.current=null;const{left:T,top:X}=d.scroll();v.scrollLeft=T,v.scrollTop=X,j.current={left:v.scrollLeft,top:v.scrollTop},R(M)});const H=C.useRef(i);C.useEffect(()=>{var d,v;H.current!==i&&(H.current=i,i&&((v=(d=l.current)==null?void 0:d.querySelector(`[data-crew-map-card="${CSS.escape(i)}"]`))==null||v.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})))},[i]);const D=C.useCallback((d,v)=>{var ce;const T=l.current,X=((ce=O.current)==null?void 0:ce.frame.scale)??S,ae=Ye(X*d,Pe,ot);if(!T||ae===X)return;const Z=T.getBoundingClientRect(),Q=v?v.clientX-Z.left:T.clientWidth/2,ee=v?v.clientY-Z.top:T.clientHeight/2,se=(T.scrollLeft+Q-M.left)/S,re=(T.scrollTop+ee-M.top)/S,J=_e(b,ae,w);F(J,()=>({left:J.left+se*J.scale-Q,top:J.top+re*J.scale-ee}))},[F,M.left,M.top,b,S,w]),Y=C.useRef(D);C.useLayoutEffect(()=>{Y.current=D}),C.useEffect(()=>{const d=l.current;if(!d)return;const v=T=>{!T.ctrlKey&&!T.metaKey||(T.preventDefault(),Y.current(Math.exp(-T.deltaY*.01),T))};return d.addEventListener("wheel",v,{passive:!1}),()=>d.removeEventListener("wheel",v)},[]);const G=d=>{const v=l.current;!v||d.pointerType!=="mouse"||d.button!==0||d.target.closest("button")||(I.current={pointerId:d.pointerId,x:d.clientX,y:d.clientY,left:v.scrollLeft,top:v.scrollTop},v.setPointerCapture(d.pointerId),_(!0))},U=d=>{const v=I.current,T=l.current;!v||!T||v.pointerId!==d.pointerId||(T.scrollLeft=v.left-(d.clientX-v.x),T.scrollTop=v.top-(d.clientY-v.y))},z=d=>{var v,T;((v=I.current)==null?void 0:v.pointerId)===d.pointerId&&(I.current=null,(T=l.current)==null||T.releasePointerCapture(d.pointerId),_(!1))},q=C.useMemo(()=>$s(b,i),[b,i]),W=b.nodes.length===0,V=b.orientation==="stacked"?b.cardWidth+Fe/2:le+de/2;return n.jsxs("div",{className:"relative min-h-0 flex-1 border-t",children:[n.jsx("div",{ref:l,role:"region","aria-label":"Crew map","data-crew-map-layout":b.orientation,onScroll:d=>{j.current={left:d.currentTarget.scrollLeft,top:d.currentTarget.scrollTop},O.current||R(M)},onPointerDown:G,onPointerMove:U,onPointerUp:z,onPointerCancel:z,onKeyDown:d=>{d.target===d.currentTarget&&(d.key==="+"||d.key==="="?D(Se):d.key==="-"&&D(1/Se))},tabIndex:-1,className:oe("absolute inset-0 overflow-auto overscroll-contain outline-none [touch-action:pan-x_pan-y]","bg-muted/30 bg-local bg-[radial-gradient(circle,var(--border)_1px,transparent_1px)] bg-size-[18px_18px]",$?"cursor-grabbing select-none":"cursor-grab"),children:W?n.jsxs(rt,{className:"h-full",children:[n.jsxs(ct,{children:[n.jsx(dt,{children:"Nothing is active"}),n.jsx(ut,{className:"text-xs",children:"No session in this crew is working or waiting on you."})]}),n.jsx(te,{variant:"outline",size:"xs",onClick:h,children:"Show all sessions"})]}):n.jsx("div",{className:"relative",style:{width:A.width,height:A.height},children:n.jsxs("div",{className:"absolute origin-top-left",style:{left:M.left,top:M.top,width:b.width,height:b.height,transform:`scale(${S})`},children:[b.groups.map(d=>n.jsx("div",{"aria-hidden":"true",className:"absolute rounded-xl border border-dashed border-muted-foreground/25 bg-muted/25",style:{left:d.x,top:d.y,width:d.width,height:d.height}},d.parentId)),n.jsxs("svg",{"aria-hidden":"true",width:b.width,height:b.height,className:"pointer-events-none absolute inset-0 overflow-visible",fill:"none",children:[b.edges.map(d=>n.jsx("path",{d:d.path,className:"stroke-muted-foreground/35",strokeWidth:1.25},d.parentId)),q&&n.jsx("path",{d:q,className:"stroke-foreground/55",strokeWidth:1.5})]}),n.jsx("ul",{"aria-label":"Sessions",className:"absolute inset-0",children:b.nodes.map(d=>n.jsx(Hs,{node:d,width:b.cardWidth,toggleLeft:V,here:d.member.sessionId===i,kind:a.get(d.member.sessionId),name:c(d.member),onOpen:f,onToggle:v=>{E.current=v,g(v)}},d.member.sessionId))})]})})}),!W&&n.jsxs("div",{className:"absolute bottom-2.5 right-2.5 flex items-center gap-0.5 rounded-lg border bg-popover p-0.5 shadow-sm",children:[n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":"Zoom out",title:"Zoom out",disabled:S<=Pe,onClick:()=>D(1/Se),children:n.jsx(pt,{"data-icon":"inline-start"})}),n.jsxs(te,{variant:"ghost",size:"xs","aria-label":"Actual size",title:"Actual size",className:"min-w-11 px-1 tabular-nums text-muted-foreground",onClick:()=>D(1/S),children:[Math.round(S*100),"%"]}),n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":"Zoom in",title:"Zoom in",disabled:S>=ot,onClick:()=>D(Se),children:n.jsx(os,{"data-icon":"inline-start"})}),n.jsx("span",{className:"mx-0.5 h-4 w-px bg-border","aria-hidden":"true"}),n.jsx(te,{variant:"ghost",size:"xs",title:"Fit the whole crew on screen",className:"px-1.5 text-muted-foreground",onClick:()=>F(_e(b,lt(b,w),w),()=>({left:0,top:0})),children:"Fit"})]})]})}const Ys={"needs-you":"border-warning/60 bg-[color-mix(in_oklch,var(--warning)_7%,var(--card))]",failed:"border-destructive/45",unreachable:"border-dashed"},qs={"needs-you":"text-warning",failed:"text-destructive"};function Ws(t){var s,r;const e=(s=t.pullRequests)==null?void 0:s.at(-1);return[t.model&&qe(t.model),(r=t.device)==null?void 0:r.name,e&&`#${e.number}`,t.lastActivityAt&&We(t.lastActivityAt)].filter(Boolean).join(" · ")}function Hs(t){const e=ue.c(75),{node:s,width:r,toggleLeft:i,here:a,kind:c,name:o,onOpen:f,onToggle:g}=t,{member:h}=s;let l;e[0]!==h?(l=he(h),e[0]=h,e[1]=l):l=e[1];const w=l;let u;e[2]!==h?(u=Ie(h),e[2]=h,e[3]=u):u=e[3];const x=u;let p;e[4]!==c?(p=c?Ft(c):as,e[4]=c,e[5]=p):p=e[5];const m=p;let y;e[6]!==h?(y=Ws(h),e[6]=h,e[7]=y):y=e[7];const k=y,b=s.context&&"shown because a session it started is active";let M;e[8]!==x||e[9]!==o||e[10]!==b?(M=[o,x,b].filter(Boolean),e[8]=x,e[9]=o,e[10]=b,e[11]=M):M=e[11];const N=M.join(", ");let $;e[12]!==s.x||e[13]!==s.y||e[14]!==r?($={left:s.x,top:s.y,width:r,height:ne},e[12]=s.x,e[13]=s.y,e[14]=r,e[15]=$):$=e[15];const _=h.sessionId,O=a?"true":void 0;let E;e[16]!==h||e[17]!==f?(E=()=>f(h),e[16]=h,e[17]=f,e[18]=E):E=e[18];const j=Ys[w],L=a&&"outline-solid outline-[1.5px] outline-offset-2 outline-foreground/70",I=s.context&&"opacity-60 hover:opacity-100 focus-visible:opacity-100";let A;e[19]!==j||e[20]!==L||e[21]!==I?(A=oe("flex size-full cursor-pointer flex-col justify-center gap-1 rounded-lg border bg-card px-2.5 py-2 text-left shadow-xs outline-none","transition-[border-color,opacity,box-shadow] hover:border-foreground/25 hover:shadow-sm focus-visible:ring-2 focus-visible:ring-ring",j,L,I),e[19]=j,e[20]=L,e[21]=I,e[22]=A):A=e[22];let S;e[23]!==N||e[24]!==h.sessionId||e[25]!==w||e[26]!==E||e[27]!==A||e[28]!==O?(S=n.jsx("button",{type:"button","data-crew-map-card":_,"data-crew-map-state":w,"aria-current":O,"aria-label":N,onClick:E,className:A}),e[23]=N,e[24]=h.sessionId,e[25]=w,e[26]=E,e[27]=A,e[28]=O,e[29]=S):S=e[29];let R;e[30]!==m?(R=n.jsx(m,{"aria-hidden":"true",className:"mt-[3px] size-3.5 shrink-0 text-muted-foreground"}),e[30]=m,e[31]=R):R=e[31];let F;e[32]!==o?(F=n.jsx("span",{className:"line-clamp-2 min-w-0 flex-1 text-[13px]/[18px] font-medium",children:o}),e[32]=o,e[33]=F):F=e[33];let P;e[34]!==R||e[35]!==F?(P=n.jsxs("span",{className:"flex min-w-0 items-start gap-1.5",children:[R,F]}),e[34]=R,e[35]=F,e[36]=P):P=e[36];const H=fe[w];let D;e[37]!==H?(D=oe("size-1.5 shrink-0 rounded-full",H),e[37]=H,e[38]=D):D=e[38];let Y;e[39]!==D?(Y=n.jsx("span",{className:D,"aria-hidden":"true"}),e[39]=D,e[40]=Y):Y=e[40];let G;e[41]!==h||e[42]!==w?(G=Re(h)?"text-warning":qs[w],e[41]=h,e[42]=w,e[43]=G):G=e[43];let U;e[44]!==G?(U=oe("min-w-0 truncate text-muted-foreground",G),e[44]=G,e[45]=U):U=e[45];let z;e[46]!==x||e[47]!==U?(z=n.jsx("span",{className:U,children:x}),e[46]=x,e[47]=U,e[48]=z):z=e[48];let q;e[49]!==Y||e[50]!==z?(q=n.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-xs",children:[Y,z]}),e[49]=Y,e[50]=z,e[51]=q):q=e[51];let W;e[52]!==a||e[53]!==k?(W=(k||a)&&n.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-[11.5px] tabular-nums text-muted-foreground/75",children:[n.jsx("span",{className:"min-w-0 flex-1 truncate",children:k}),a&&n.jsx("span",{className:"shrink-0 font-medium text-foreground/70",children:"You are here"})]}),e[52]=a,e[53]=k,e[54]=W):W=e[54];let V;e[55]!==S||e[56]!==P||e[57]!==q||e[58]!==W?(V=n.jsxs(Pt,{delay:700,render:S,children:[P,q,W]}),e[55]=S,e[56]=P,e[57]=q,e[58]=W,e[59]=V):V=e[59];let d;e[60]!==h||e[61]!==o?(d=n.jsx(Yt,{side:"left",align:"start",className:"max-w-72",children:n.jsx(Bs,{member:h,name:o})}),e[60]=h,e[61]=o,e[62]=d):d=e[62];let v;e[63]!==V||e[64]!==d?(v=n.jsxs(qt,{children:[V,d]}),e[63]=V,e[64]=d,e[65]=v):v=e[65];let T;e[66]!==o||e[67]!==s||e[68]!==g||e[69]!==i?(T=s.childCount>0&&n.jsx(Us,{node:s,name:o,left:i,onToggle:g}),e[66]=o,e[67]=s,e[68]=g,e[69]=i,e[70]=T):T=e[70];let X;return e[71]!==v||e[72]!==T||e[73]!==$?(X=n.jsxs("li",{className:"group/node absolute",style:$,children:[v,T]}),e[71]=v,e[72]=T,e[73]=$,e[74]=X):X=e[74],X}function Us(t){const e=ue.c(25),{node:s,name:r,left:i,onToggle:a}=t,{collapsed:c,hidden:o}=s;let f=null;o.needsYou>0?f="needs-you":o.working>0&&(f="working");let g;e[0]!==c||e[1]!==o.count||e[2]!==o.needsYou||e[3]!==o.working||e[4]!==r?(g=c?[`Show the ${vt(o.count)} under ${r}`,o.needsYou>0&&`${o.needsYou} waiting on you`,o.working>0&&`${o.working} working`].filter(Boolean).join(", "):`Fold the sessions under ${r}`,e[0]=c,e[1]=o.count,e[2]=o.needsYou,e[3]=o.working,e[4]=r,e[5]=g):g=e[5];const h=g,l=!c,w=c?void 0:"Fold";let u;e[6]!==s.member.sessionId||e[7]!==a?(u=()=>a(s.member.sessionId),e[6]=s.member.sessionId,e[7]=a,e[8]=u):u=e[8];const x=!c&&"opacity-0 group-hover/node:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100";let p;e[9]!==x?(p=oe("absolute z-10 flex h-5 min-w-5 -translate-x-1/2 -translate-y-1/2 cursor-pointer items-center justify-center gap-1 rounded-full border bg-card px-1.5 text-[11px] font-medium tabular-nums text-muted-foreground shadow-xs outline-none","transition-opacity hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",x),e[9]=x,e[10]=p):p=e[10];let m;e[11]!==i?(m={left:i,top:ne/2},e[11]=i,e[12]=m):m=e[12];let y;e[13]!==f||e[14]!==c||e[15]!==o.count?(y=c?n.jsxs(n.Fragment,{children:[f&&n.jsx("span",{className:oe("size-1.5 rounded-full",fe[f]),"aria-hidden":"true"}),"+",o.count]}):n.jsx(pt,{"aria-hidden":"true",className:"size-3"}),e[13]=f,e[14]=c,e[15]=o.count,e[16]=y):y=e[16];let k;return e[17]!==h||e[18]!==l||e[19]!==w||e[20]!==u||e[21]!==p||e[22]!==m||e[23]!==y?(k=n.jsx("button",{type:"button","aria-expanded":l,"aria-label":h,title:w,onClick:u,className:p,style:m,children:y}),e[17]=h,e[18]=l,e[19]=w,e[20]=u,e[21]=p,e[22]=m,e[23]=y,e[24]=k):k=e[24],k}function Bs(t){var u,x;const e=ue.c(35),{member:s,name:r}=t;let i;e[0]!==s.firstUserMessage?(i=(u=s.firstUserMessage)==null?void 0:u.replace(/\s+/g," ").trim(),e[0]=s.firstUserMessage,e[1]=i):i=e[1];const a=i;let c;e[2]!==s.cwd?(c=(x=s.cwd)==null?void 0:x.split(/[\\/]/).filter(Boolean).at(-1),e[2]=s.cwd,e[3]=c):c=e[3];const o=c;let f;if(e[4]!==o||e[5]!==s.device||e[6]!==s.model||e[7]!==s.startedAt||e[8]!==s.turnCount){if(f=[],s.model){let p;e[10]!==s.model?(p=qe(s.model),e[10]=s.model,e[11]=p):p=e[11];let m;e[12]!==p?(m=["Model",p],e[12]=p,e[13]=m):m=e[13],f.push(m)}if(s.device){let p;e[14]!==s.device.name?(p=["Device",s.device.name],e[14]=s.device.name,e[15]=p):p=e[15],f.push(p)}if(o){let p;e[16]!==o?(p=["Folder",o],e[16]=o,e[17]=p):p=e[17],f.push(p)}if(s.startedAt){let p;e[18]!==s.startedAt?(p=mt(s.startedAt),e[18]=s.startedAt,e[19]=p):p=e[19];let m;e[20]!==p?(m=["Started",p],e[20]=p,e[21]=m):m=e[21],f.push(m)}if(s.turnCount){const p=String(s.turnCount);let m;e[22]!==p?(m=["Turns",p],e[22]=p,e[23]=m):m=e[23],f.push(m)}e[4]=o,e[5]=s.device,e[6]=s.model,e[7]=s.startedAt,e[8]=s.turnCount,e[9]=f}else f=e[9];let g;e[24]!==r?(g=n.jsx("p",{className:"font-medium",children:r}),e[24]=r,e[25]=g):g=e[25];let h;e[26]!==r||e[27]!==a?(h=a&&a!==r&&n.jsx("p",{className:"line-clamp-3 text-muted-foreground",children:a}),e[26]=r,e[27]=a,e[28]=h):h=e[28];let l;e[29]!==f?(l=f.length>0&&n.jsx("dl",{className:"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5",children:f.map(Gs)}),e[29]=f,e[30]=l):l=e[30];let w;return e[31]!==g||e[32]!==h||e[33]!==l?(w=n.jsxs("div",{className:"flex flex-col gap-1.5 py-0.5",children:[g,h,l]}),e[31]=g,e[32]=h,e[33]=l,e[34]=w):w=e[34],w}function Gs(t){const[e,s]=t;return n.jsxs("div",{className:"contents",children:[n.jsx("dt",{className:"text-muted-foreground",children:e}),n.jsx("dd",{className:"truncate tabular-nums",children:s})]},e)}const Ks=4e3;function Vs(t){var p;const[e,s]=C.useState(null),[r,i]=C.useState(null),[a,c]=C.useState(new Set),o=(p=Wt())==null?void 0:p.refresh,f=C.useRef(t),g=C.useRef(new Set);C.useLayoutEffect(()=>(f.current=t,()=>{f.current=null}),[t]);const h=C.useCallback(async m=>{if(t)try{const y=await ze(`/api/session-crew/${encodeURIComponent(t)}`);if(!m())return;if(!y.ok){i(y.status===404?"This session is no longer available.":"Couldn't load the crew.");return}const k=await y.json();if(!m())return;s(b=>JSON.stringify(b)===JSON.stringify(k)?b:k),i(null)}catch{m()&&i("Couldn't load the crew.")}},[t]);it(t?h:null,Ks),C.useEffect(()=>{s(m=>m!=null&&m.members.some(y=>y.sessionId===t)?m:null),i(null),c(new Set)},[t]);const l=C.useCallback(async(m,y,k)=>{const b=`${t}:${m}`;if(g.current.has(b))return;const M=()=>f.current===t;g.current.add(b),c(N=>new Set(N).add(m));try{const N=await y();if(!M())return;if(!N.ok&&N.status!==404){i(k);return}o==null||o(),await h(M)}catch{M()&&i(k)}finally{g.current.delete(b),M()&&c(N=>{const $=new Set(N);return $.delete(m),$})}},[h,o,t]),w=C.useCallback((m,y,k)=>l(y,()=>je("/api/session-respond",{sessionId:m,requestId:y,...k}),"Couldn't send the answer."),[l]),u=C.useCallback((m,y)=>l(y,()=>je("/api/delegated-tasks",{sessionId:m,taskId:y,action:"ack"}),"Couldn't mark the result read."),[l]),x=C.useCallback(m=>l(m.sessionId,()=>{var y;return((y=m.result)==null?void 0:y.state)==="running"&&m.parentId?je("/api/delegated-tasks",{sessionId:m.parentId,taskId:m.result.taskId,action:"cancel"}):je("/api/stop-session",{sessionId:m.sessionId,cancelQueued:!0})},"Couldn't stop the session."),[l]);return{crew:e,error:r,busy:a,respond:w,markRead:u,stop:x}}const Xs=[{id:"all",label:"All"},{id:"working",label:"Working"},{id:"needs-you",label:"Need you"},{id:"done",label:"Done"}],Js={working:"bg-success shadow-[0_0_0_2px_color-mix(in_oklch,var(--success)_25%,transparent)]","needs-you":"bg-warning",done:"bg-muted-foreground/40",failed:"bg-destructive",unreachable:"border border-muted-foreground/50"};function fn(t){var U;const e=ue.c(40),{context:s,closePanel:r}=t,i=((U=s.session)==null?void 0:U.sessionId)??null,{crew:a,error:c,busy:o,respond:f,markRead:g,stop:h}=Vs(i),{names:l}=Ht(),[w,u]=C.useState("overview");let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=new Set,e[0]=x):x=e[0];const[p,m]=C.useState(x),y=Ls((a==null?void 0:a.rootId)??"");let k;e[1]!==(a==null?void 0:a.members)?(k=new Map(((a==null?void 0:a.members)??[]).map(Qs)),e[1]=a==null?void 0:a.members,e[2]=k):k=e[2];const b=k;let M;e[3]!==(a==null?void 0:a.members)?(M=new Map(((a==null?void 0:a.members)??[]).flatMap(Zs)),e[3]=a==null?void 0:a.members,e[4]=M):M=e[4];const N=M;let $;e[5]!==b||e[6]!==l?($=z=>gs(z,b,l),e[5]=b,e[6]=l,e[7]=$):$=e[7];const _=$;let O;e[8]!==s?(O=z=>{z.address&&z.device?Xt(Jt(z.address.dirName,z.address.fileName,z.device.id)):z.address&&s.openSession?s.openSession(z.address.dirName,z.address.fileName):Zt(z.sessionId)},e[8]=s,e[9]=O):O=e[9];const E=O;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=z=>m(q=>{const W=new Set(q);return W.delete(z)||W.add(z),W}),e[10]=j):j=e[10];const L=j;let I;e[11]!==b?(I=z=>{m(q=>{var v;const W=new Set(q),V=new Set;let d=z.parentId;for(;d&&!V.has(d);)V.add(d),W.delete(d),d=((v=b.get(d))==null?void 0:v.parentId)??null;return W}),requestAnimationFrame(()=>{var q;return(q=document.querySelector(`[data-crew-row="${z.sessionId}"]`))==null?void 0:q.scrollIntoView({block:"nearest",behavior:"smooth"})})},e[11]=b,e[12]=I):I=e[12];const A=I;let S,R,F;e[13]===Symbol.for("react.memo_cache_sentinel")?(R=n.jsx(ht,{"aria-hidden":"true",className:"size-4 text-muted-foreground"}),F=n.jsx("h2",{className:"text-sm font-medium",children:"Crew"}),S=n.jsx("div",{className:"flex-1"}),e[13]=S,e[14]=R,e[15]=F):(S=e[13],R=e[14],F=e[15]);let P;e[16]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(cs,{"data-icon":"inline-start"}),e[16]=P):P=e[16];let H;e[17]!==r?(H=n.jsxs("div",{className:"flex h-10 shrink-0 items-center gap-2 px-3",children:[R,F,S,n.jsx(te,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":"Close crew",children:P})]}),e[17]=r,e[18]=H):H=e[18];let D;e[19]!==c?(D=c&&n.jsx("p",{role:"alert",className:"px-3 pb-2 text-xs text-destructive",children:c}),e[19]=c,e[20]=D):D=e[20];let Y;e[21]!==o||e[22]!==p||e[23]!==a||e[24]!==c||e[25]!==N||e[26]!==y||e[27]!==g||e[28]!==_||e[29]!==E||e[30]!==f||e[31]!==A||e[32]!==i||e[33]!==h||e[34]!==w?(Y=a?n.jsxs(Ut,{value:w,onValueChange:u,className:"min-h-0 flex-1 grid-rows-[auto_minmax(0,1fr)]",children:[n.jsxs(Bt,{variant:"line",className:"mx-3 mb-1",children:[n.jsx(Ae,{value:"overview",children:"Overview"}),n.jsx(Ae,{value:"map",children:"Map"}),n.jsx(Ae,{value:"chat",children:"Chat"})]}),n.jsx(Oe,{value:"overview",className:"min-h-0",children:n.jsxs(ft,{className:"h-full min-h-0",children:[n.jsx(en,{crew:a,hereId:i,nameOf:_,onOpen:E,onReveal:A}),n.jsx(sn,{crew:a,busy:o,nameOf:_,onOpen:E,onRespond:f}),n.jsx(nn,{crew:a,hereId:i,busy:o,nameOf:_,onOpen:E,onMarkRead:g,onStop:h,collapsed:p,onToggle:L})]})}),n.jsx(Oe,{value:"map",className:"min-h-0",children:n.jsx(_s,{crew:a,hereId:i,controls:y,kinds:N,nameOf:_,onOpen:E})}),n.jsx(Oe,{value:"chat",keepMounted:!0,className:"min-h-0",children:n.jsx(hs,{rootId:a.rootId,kinds:N,active:w==="chat"},a.rootId)})]}):!c&&n.jsx("p",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Loading the crew…"}),e[21]=o,e[22]=p,e[23]=a,e[24]=c,e[25]=N,e[26]=y,e[27]=g,e[28]=_,e[29]=E,e[30]=f,e[31]=A,e[32]=i,e[33]=h,e[34]=w,e[35]=Y):Y=e[35];let G;return e[36]!==H||e[37]!==D||e[38]!==Y?(G=n.jsxs("aside",{"aria-label":"Crew",className:"flex size-full min-h-0 flex-col bg-canvas",children:[H,D,Y]}),e[36]=H,e[37]=D,e[38]=Y,e[39]=G):G=e[39],G}function Zs(t){return t.address?[[t.sessionId,Gt(t.address.dirName)]]:[]}function Qs(t){return[t.sessionId,t]}function en(t){var M;const e=ue.c(46),{crew:s,hereId:r,nameOf:i,onOpen:a,onReveal:c}=t;let o,f,g,h,l;if(e[0]!==s||e[1]!==r||e[2]!==i||e[3]!==a||e[4]!==c){let N;e[10]!==s.rootId?(N=S=>S.sessionId===s.rootId,e[10]=s.rootId,e[11]=N):N=e[11];const $=s.members.find(N),_=s.members.filter(tn);let O;e[12]!==s?(O=bs(s),e[12]=s,e[13]=O):O=e[13],l=O;const E=(M=_[0])==null?void 0:M.startedAt;o="Crew summary",f="border-b px-3 pb-3 pt-1";const j=$&&n.jsx("button",{type:"button",onClick:()=>a($),"aria-current":$.sessionId===r?"true":void 0,className:"min-w-0 flex-1 truncate rounded-sm text-left text-sm font-medium outline-none hover:underline focus-visible:ring-2 focus-visible:ring-ring",children:i($)}),L=l.size===1?"session":"sessions",I=E?` · since ${mt(E)}`:"";let A;e[14]!==L||e[15]!==I||e[16]!==l.size?(A=n.jsxs("span",{className:"shrink-0 text-xs tabular-nums text-muted-foreground",children:[l.size," ",L,I]}),e[14]=L,e[15]=I,e[16]=l.size,e[17]=A):A=e[17],e[18]!==A||e[19]!==j?(g=n.jsxs("div",{className:"flex items-baseline gap-2",children:[j,A]}),e[18]=A,e[19]=j,e[20]=g):g=e[20],h=_.length>0&&n.jsx("div",{"data-crew-strip":!0,className:"mt-2.5 grid grid-cols-[repeat(auto-fit,minmax(6px,1fr))] gap-[3px]",role:"list","aria-label":"One cell per session, in the order they were started",children:_.map(S=>{const R=he(S);return n.jsx("button",{type:"button",role:"listitem","data-crew-cell":R,title:`${i(S)}: ${Ie(S)}`,"aria-label":`${i(S)}: ${Ie(S)}`,onClick:()=>c(S),className:oe("h-2.5 rounded-[2px] outline-none focus-visible:ring-2 focus-visible:ring-ring",Js[R],S.sessionId===r&&"outline outline-[1.5px] outline-offset-2 outline-foreground")},S.sessionId)})}),e[0]=s,e[1]=r,e[2]=i,e[3]=a,e[4]=c,e[5]=o,e[6]=f,e[7]=g,e[8]=h,e[9]=l}else o=e[5],f=e[6],g=e[7],h=e[8],l=e[9];let w;e[21]!==l.working?(w=l.working>0&&n.jsx(Ne,{dot:fe.working,value:l.working,label:"working"}),e[21]=l.working,e[22]=w):w=e[22];let u;e[23]!==l.needsYou?(u=l.needsYou>0&&n.jsx(Ne,{dot:fe["needs-you"],value:l.needsYou,label:l.needsYou===1?"needs you":"need you"}),e[23]=l.needsYou,e[24]=u):u=e[24];let x;e[25]!==l.done?(x=l.done>0&&n.jsx(Ne,{dot:fe.done,value:l.done,label:"done"}),e[25]=l.done,e[26]=x):x=e[26];let p;e[27]!==l.failed?(p=l.failed>0&&n.jsx(Ne,{dot:fe.failed,value:l.failed,label:"failed"}),e[27]=l.failed,e[28]=p):p=e[28];let m;e[29]!==l.unreachable?(m=l.unreachable>0&&n.jsx(Ne,{dot:fe.unreachable,value:l.unreachable,label:"away"}),e[29]=l.unreachable,e[30]=m):m=e[30];let y;e[31]!==l.unreadResults?(y=l.unreadResults>0&&n.jsxs("span",{className:"ml-auto text-warning",children:[n.jsx("span",{className:"font-medium tabular-nums",children:l.unreadResults})," ",l.unreadResults===1?"result":"results"," unread"]}),e[31]=l.unreadResults,e[32]=y):y=e[32];let k;e[33]!==y||e[34]!==w||e[35]!==u||e[36]!==x||e[37]!==p||e[38]!==m?(k=n.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-3.5 gap-y-1 text-xs text-muted-foreground",children:[w,u,x,p,m,y]}),e[33]=y,e[34]=w,e[35]=u,e[36]=x,e[37]=p,e[38]=m,e[39]=k):k=e[39];let b;return e[40]!==o||e[41]!==k||e[42]!==f||e[43]!==g||e[44]!==h?(b=n.jsxs("section",{"aria-label":o,className:f,children:[g,h,k]}),e[40]=o,e[41]=k,e[42]=f,e[43]=g,e[44]=h,e[45]=b):b=e[45],b}function tn(t){return t.parentId!==null}function Ne(t){const e=ue.c(10),{dot:s,value:r,label:i}=t;let a;e[0]!==s?(a=oe("size-1.5 rounded-full",s),e[0]=s,e[1]=a):a=e[1];let c;e[2]!==a?(c=n.jsx("span",{className:a,"aria-hidden":"true"}),e[2]=a,e[3]=c):c=e[3];let o;e[4]!==r?(o=n.jsx("span",{className:"font-medium tabular-nums text-foreground",children:r}),e[4]=r,e[5]=o):o=e[5];let f;return e[6]!==i||e[7]!==c||e[8]!==o?(f=n.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c,o," ",i]}),e[6]=i,e[7]=c,e[8]=o,e[9]=f):f=e[9],f}function sn(t){const e=ue.c(6),{crew:s,busy:r,nameOf:i,onOpen:a,onRespond:c}=t,o=ws(s),[f,g]=C.useState(0);if(o.length===0)return null;const h=Math.min(f,o.length-1),{member:l,pending:w}=o[h],u=o[h+1];let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Needs you"}),e[0]=x):x=e[0];let p;e[1]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx("span",{className:"flex-1"}),e[1]=p):p=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx("span",{className:oe("size-1.5 shrink-0 rounded-full",fe["needs-you"]),"aria-hidden":"true"}),e[2]=m):m=e[2];const y=w.askedAt?`waiting ${We(new Date(w.askedAt).toISOString())}`:"waiting";let k;e[3]!==y?(k=n.jsx("span",{className:"ml-auto shrink-0 tabular-nums text-warning",children:y}),e[3]=y,e[4]=k):k=e[4];let b;return e[5]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(De,{"data-icon":"inline-end"}),e[5]=b):b=e[5],n.jsxs("section",{"aria-label":"Needs you",className:"border-b px-3 py-2.5",children:[n.jsxs("div",{className:"mb-2 flex items-center gap-2 text-xs text-muted-foreground",children:[x,n.jsx("span",{className:"tabular-nums",children:o.length}),p,o.length>1&&n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"tabular-nums",children:[h+1," of ",o.length]}),n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":"Previous request",disabled:h===0,onClick:()=>g(h-1),children:n.jsx(ls,{"data-icon":"inline-start"})}),n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":"Next request",disabled:h===o.length-1,onClick:()=>g(h+1),children:n.jsx(De,{"data-icon":"inline-start"})})]})]}),n.jsxs("div",{className:"flex flex-col gap-1.5",children:[n.jsxs("div",{className:"flex items-center gap-2 px-0.5 text-xs",children:[m,n.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:i(l)}),l.device&&n.jsx(Kt,{variant:"outline",children:l.device.name}),k]}),n.jsx(Vt,{sessionId:l.sessionId,pending:w,queued:0,responding:r.has(w.requestId),onRespond:(M,N)=>void c(l.sessionId,M,N),onOpen:()=>a(l)},w.requestId),n.jsxs(te,{variant:"ghost",size:"xs",className:"self-end text-muted-foreground",onClick:()=>a(l),children:["Open session",b]})]}),u&&n.jsxs("p",{className:"mt-2 truncate text-xs text-muted-foreground",children:["Next: ",n.jsx("span",{className:"font-medium text-foreground",children:i(u.member)})," ",Ie(u.member).toLowerCase()]})]})}function nn({crew:t,hereId:e,busy:s,nameOf:r,onOpen:i,onMarkRead:a,onStop:c,collapsed:o,onToggle:f}){const[g,h]=C.useState("all");let l=null;const w=xs(t).filter(({member:u,depth:x})=>{if(g!=="all"){const p=he(u);return g==="done"?p!=="working"&&p!=="needs-you":p===g}return l!==null&&x>l?!1:(l=o.has(u.sessionId)?x:null,!0)});return n.jsxs("section",{"aria-label":"Sessions",className:"px-1.5 py-2.5",children:[n.jsxs("div",{className:"mb-1.5 flex items-center gap-2 px-1.5",children:[n.jsx("h3",{className:"text-sm font-medium",children:"Sessions"}),n.jsx("span",{className:"flex-1"}),n.jsx("div",{role:"radiogroup","aria-label":"Show sessions",className:"flex gap-0.5",children:Xs.map(({id:u,label:x})=>n.jsx("button",{type:"button",role:"radio","aria-checked":g===u,onClick:()=>h(u),className:oe("rounded-full px-2 py-0.5 text-[11px] text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring",g===u&&"bg-accent text-foreground"),children:x},u))})]}),w.length===0?n.jsx("p",{className:"px-1.5 py-4 text-center text-xs text-muted-foreground",children:"No sessions here."}):n.jsx("ul",{className:"flex flex-col",children:w.map(u=>n.jsx(on,{row:u,here:u.member.sessionId===e,busy:s,name:r(u.member),onOpen:i,onMarkRead:a,onStop:c,collapsed:g==="all"?o.has(u.member.sessionId):void 0,onToggle:()=>f(u.member.sessionId)},u.member.sessionId))})]})}function on(t){var ce,pe;const e=ue.c(81),{row:s,here:r,busy:i,name:a,onOpen:c,onMarkRead:o,onStop:f,collapsed:g,onToggle:h}=t,{member:l,depth:w,children:u}=s;let x;e[0]!==l?(x=he(l),e[0]=l,e[1]=x):x=e[1];const p=x;let m;e[2]!==l?(m=Ie(l),e[2]=l,e[3]=m):m=e[3];const y=m;let k;e[4]!==l.pullRequests?(k=(ce=l.pullRequests)==null?void 0:ce.at(-1),e[4]=l.pullRequests,e[5]=k):k=e[5];const b=k;let M;e[6]!==l?(M=Re(l)&&l.result&&l.parentId,e[6]=l,e[7]=M):M=e[7];const N=M,$=(p==="working"||p==="needs-you")&&(!l.device||((pe=l.result)==null?void 0:pe.state)==="running"&&l.parentId!==null),_=l.sessionId,O=r?"bg-accent":"hover:bg-accent/60",E=w>0&&"border-l border-border/70";let j;e[8]!==O||e[9]!==E?(j=oe("group/crew relative flex items-start rounded-md",O,E),e[8]=O,e[9]=E,e[10]=j):j=e[10];const L=w>0?6+(w-1)*14:0;let I;e[11]!==L?(I={marginLeft:L},e[11]=L,e[12]=I):I=e[12];let A;e[13]!==u||e[14]!==g||e[15]!==a||e[16]!==h?(A=u>0&&g!==void 0&&n.jsx(te,{variant:"ghost",size:"icon-xs","aria-label":`${g?"Expand":"Collapse"} ${a}'s child sessions`,"aria-expanded":!g,onClick:h,children:n.jsx(De,{"data-icon":"inline-start",className:oe("transition-transform",!g&&"rotate-90")})}),e[13]=u,e[14]=g,e[15]=a,e[16]=h,e[17]=A):A=e[17];let S;e[18]!==A?(S=n.jsx("span",{className:"mt-1.5 flex w-6 shrink-0 justify-center",children:A}),e[18]=A,e[19]=S):S=e[19];let R;e[20]!==l||e[21]!==c?(R=()=>c(l),e[20]=l,e[21]=c,e[22]=R):R=e[22];const F=r?"true":void 0,P=`${a}, ${y}`,H=fe[p];let D;e[23]!==H?(D=oe("size-1.5 justify-self-center rounded-full",H),e[23]=H,e[24]=D):D=e[24];let Y;e[25]!==D?(Y=n.jsx("span",{className:D,"aria-hidden":"true"}),e[25]=D,e[26]=Y):Y=e[26];let G;e[27]!==a?(G=n.jsx("span",{className:"truncate",children:a}),e[27]=a,e[28]=G):G=e[28];let U;e[29]!==r?(U=r&&n.jsx("span",{className:"shrink-0 rounded-full border px-1.5 text-[10.5px] font-normal text-muted-foreground",children:"you are here"}),e[29]=r,e[30]=U):U=e[30];let z;e[31]!==G||e[32]!==U?(z=n.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-[12.5px] font-medium",children:[G,U]}),e[31]=G,e[32]=U,e[33]=z):z=e[33];let q;e[34]!==l.lastActivityAt?(q=l.lastActivityAt?We(l.lastActivityAt):"",e[34]=l.lastActivityAt,e[35]=q):q=e[35];let W;e[36]!==q?(W=n.jsx("span",{className:"text-[11px] tabular-nums text-muted-foreground/80",children:q}),e[36]=q,e[37]=W):W=e[37];const V=(p==="needs-you"||N)&&"text-warning",d=p==="failed"&&"text-destructive";let v;e[38]!==V||e[39]!==d?(v=oe("min-w-0 flex-1 truncate",V,d),e[38]=V,e[39]=d,e[40]=v):v=e[40];let T;e[41]!==y||e[42]!==v?(T=n.jsx("span",{className:v,children:y}),e[41]=y,e[42]=v,e[43]=T):T=e[43];let X;e[44]!==b?(X=b&&n.jsxs("span",{className:"shrink-0 rounded-full border px-1.5 text-[11px]",children:["#",b.number]}),e[44]=b,e[45]=X):X=e[45];let ae;e[46]!==l.device?(ae=l.device&&n.jsx("span",{className:"shrink-0",children:l.device.name}),e[46]=l.device,e[47]=ae):ae=e[47];let Z;e[48]!==u?(Z=u>0&&n.jsxs("span",{className:"shrink-0",children:[u," ",u===1?"session":"sessions"]}),e[48]=u,e[49]=Z):Z=e[49];let Q;e[50]!==l.model?(Q=l.model&&n.jsx("span",{className:"shrink-0 text-muted-foreground/70",children:qe(l.model)}),e[50]=l.model,e[51]=Q):Q=e[51];let ee;e[52]!==T||e[53]!==X||e[54]!==ae||e[55]!==Z||e[56]!==Q?(ee=n.jsxs("span",{className:"col-start-2 col-end-4 flex min-w-0 items-center gap-2 text-[11.5px] text-muted-foreground",children:[T,X,ae,Z,Q]}),e[52]=T,e[53]=X,e[54]=ae,e[55]=Z,e[56]=Q,e[57]=ee):ee=e[57];let se;e[58]!==R||e[59]!==F||e[60]!==P||e[61]!==Y||e[62]!==z||e[63]!==W||e[64]!==ee?(se=n.jsxs("button",{type:"button",onClick:R,"aria-current":F,"aria-label":P,className:"grid min-w-0 flex-1 grid-cols-[14px_minmax(0,1fr)_auto] items-center gap-x-2 gap-y-0.5 rounded-md px-2 py-1.5 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[Y,z,W,ee]}),e[58]=R,e[59]=F,e[60]=P,e[61]=Y,e[62]=z,e[63]=W,e[64]=ee,e[65]=se):se=e[65];let re;e[66]!==i||e[67]!==$||e[68]!==l||e[69]!==a||e[70]!==o||e[71]!==f||e[72]!==N?(re=(N||$)&&n.jsxs("div",{className:"absolute right-1.5 top-1 hidden gap-1 group-focus-within/crew:flex group-hover/crew:flex",children:[N&&l.result&&l.parentId&&n.jsx(te,{variant:"outline",size:"icon-xs",className:"bg-popover","aria-label":`Mark ${a}'s result read`,title:"Mark the result read",disabled:i.has(l.result.taskId),onClick:()=>void o(l.parentId,l.result.taskId),children:n.jsx(is,{"data-icon":"inline-start"})}),$&&n.jsx(te,{variant:"outline",size:"icon-xs",className:"bg-popover text-destructive","aria-label":`Stop ${a}`,title:"Stop this session",disabled:i.has(l.sessionId),onClick:()=>void f(l),children:n.jsx(rs,{"data-icon":"inline-start"})})]}),e[66]=i,e[67]=$,e[68]=l,e[69]=a,e[70]=o,e[71]=f,e[72]=N,e[73]=re):re=e[73];let J;return e[74]!==l.sessionId||e[75]!==I||e[76]!==S||e[77]!==se||e[78]!==re||e[79]!==j?(J=n.jsxs("li",{"data-crew-row":_,className:j,style:I,children:[S,se,re]}),e[74]=l.sessionId,e[75]=I,e[76]=S,e[77]=se,e[78]=re,e[79]=j,e[80]=J):J=e[80],J}export{fn as CrewPanel};
@@ -1,2 +0,0 @@
1
- import{c as G,r as H,j as i}from"./vendor-react-gGw_S5I_.js";import{V as M,W as P,J as X,X as z}from"./index-CPTFl4Qh.js";const F=2e5;function W(l){const e=G.c(32),{value:t,onChange:v,readOnly:f,filePath:E,ariaLabel:L,textareaRef:u,onKeyDown:S,onSelect:_}=l,p=M(),[h,N]=H.useState(null),d=H.useRef(null),m=H.useRef(null);let x;e[0]!==E?(x=P(E)??"markdown",e[0]=E,e[1]=x):x=e[1];const g=x,b=t.length>F;let j,k;e[2]!==p||e[3]!==g||e[4]!==b||e[5]!==t?(j=()=>{if(b){N(null);return}let r=!1;const I=setTimeout(()=>{z(t,g,p).then(A=>{r||N(A)})},80);return()=>{r=!0,clearTimeout(I)}},k=[t,g,p,b],e[2]=p,e[3]=g,e[4]=b,e[5]=t,e[6]=j,e[7]=k):(j=e[6],k=e[7]),H.useEffect(j,k);let R;e[8]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{d.current&&m.current&&(m.current.scrollTop=d.current.scrollTop,m.current.scrollLeft=d.current.scrollLeft)},e[8]=R):R=e[8];const D=R;let T;e[9]!==u?(T=r=>{d.current=r,u&&(u.current=r)},e[9]=u,e[10]=T):T=e[10];const y=T;let n;e[11]!==h||e[12]!==t?(n=h?h.map(J):i.jsx("code",{className:"text-foreground",children:t}),e[11]=h,e[12]=t,e[13]=n):n=e[13];let s;e[14]!==n?(s=i.jsx("pre",{ref:m,"aria-hidden":!0,className:"absolute inset-0 overflow-hidden font-mono text-[13px] leading-relaxed p-4 m-0 pointer-events-none whitespace-pre-wrap break-words",children:n}),e[14]=n,e[15]=s):s=e[15];let o;e[16]!==v?(o=r=>v(r.target.value),e[16]=v,e[17]=o):o=e[17];const C=f&&"cursor-default";let a;e[18]!==C?(a=X("absolute inset-0 w-full h-full resize-none bg-transparent font-mono text-[13px] leading-relaxed p-4 outline-none","text-transparent caret-foreground selection:bg-selection","scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border",C),e[18]=C,e[19]=a):a=e[19];let c;e[20]!==L||e[21]!==y||e[22]!==S||e[23]!==_||e[24]!==f||e[25]!==a||e[26]!==o||e[27]!==t?(c=i.jsx("textarea",{ref:y,"aria-label":L,value:t,onChange:o,onScroll:D,onKeyDown:S,onSelect:_,readOnly:f,spellCheck:!1,className:a,placeholder:"Empty file"}),e[20]=L,e[21]=y,e[22]=S,e[23]=_,e[24]=f,e[25]=a,e[26]=o,e[27]=t,e[28]=c):c=e[28];let w;return e[29]!==c||e[30]!==s?(w=i.jsxs("div",{className:"relative min-h-0 flex-1 bg-background",children:[s,c]}),e[29]=c,e[30]=s,e[31]=w):w=e[31],w}function J(l,e){return i.jsxs("span",{children:[l.map(K),`
2
- `]},e)}function K(l,e){return i.jsx("span",{style:{color:l.color},children:l.content},e)}export{W as H};
@@ -1 +0,0 @@
1
- import{c as q,j as t,r as k}from"./vendor-react-gGw_S5I_.js";import{D as F,g as $,K as T,e as Q,B as P,f as Y,r as _,h as H,i as M,j as U,k as J,l as V,I as W,m as X,n as Z,o as ee,A as te,p as se,q as ae,s as le,t as ne,u as re}from"./index-CPTFl4Qh.js";import{R as O,K as oe,S as ce}from"./vendor-ui-DQeMoSiV.js";import"./vendor-shiki-DOn6sF-i.js";import"./vendor-markdown-BE1gYnO9.js";const ie=new Set(["Alt","Control","Meta","Shift"]);function fe(e){const s=q.c(6),{open:f,onOpenChange:l}=e,x=f?"open":"closed";let a;s[0]!==x?(a=t.jsx(de,{},x),s[0]=x,s[1]=a):a=s[1];let r;return s[2]!==l||s[3]!==f||s[4]!==a?(r=t.jsx(F,{open:f,onOpenChange:l,children:a}),s[2]=l,s[3]=f,s[4]=a,s[5]=r):r=s[5],r}function de(){const e=q.c(45),[s,f]=k.useState(""),[l,x]=k.useState(null),[a,r]=k.useState(null),[B,G]=k.useState($);let E,I;e[0]!==l?(E=()=>{if(!l)return;const D=l,A=function(n){if(n.key==="Escape"){n.preventDefault(),n.stopPropagation(),x(null),r(null);return}if(ie.has(n.key))return;n.preventDefault(),n.stopPropagation();const c=le(n),p=ne(c,D);if(p){r(`Already assigned to “${p.label}”.`);return}re(D,c),G($()),x(null),r(null)};return window.addEventListener("keydown",A,!0),()=>window.removeEventListener("keydown",A,!0)},I=[l],e[0]=l,e[1]=E,e[2]=I):(E=e[1],I=e[2]),k.useEffect(E,I);let g,j,d,y,b,N,S,w,m,u,h;if(e[3]!==B||e[4]!==a||e[5]!==s||e[6]!==l){const D=s.trim().toLowerCase(),A=D?T.filter(i=>`${i.label} ${i.description} ${i.group}`.toLowerCase().includes(D)):T;j=H,S="max-w-2xl gap-0 overflow-hidden p-0",w=!1,e[18]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs(M,{className:"p-4 pb-3",children:[t.jsxs(U,{className:"flex items-center gap-2",children:[t.jsx(oe,{"data-icon":"inline-start","aria-hidden":"true",className:"size-4"}),"Keyboard shortcuts"]}),t.jsx(J,{children:"Click a shortcut, then press a new key combination. Changes are saved on this device."})]}),u=t.jsx(V,{}),e[18]=m,e[19]=u):(m=e[18],u=e[19]);let K;e[20]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(W,{children:t.jsx(ce,{"data-icon":"inline-start","aria-hidden":"true"})}),e[20]=K):K=e[20];let n;e[21]===Symbol.for("react.memo_cache_sentinel")?(n=i=>f(i.target.value),e[21]=n):n=e[21];let c;e[22]!==s?(c=t.jsxs(X,{className:"flex-1",children:[K,t.jsx(Z,{"aria-label":"Search keyboard shortcuts",value:s,onChange:n,placeholder:"Search shortcuts…"})]}),e[22]=s,e[23]=c):c=e[23];let p;e[24]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(P,{variant:"outline",size:"sm",onClick:()=>{ee(),G($()),r(null)},children:[t.jsx(O,{"data-icon":"inline-start"}),"Reset all"]}),e[24]=p):p=e[24],e[25]!==c?(h=t.jsxs("div",{className:"flex items-center gap-2 p-3",children:[c,p]}),e[25]=c,e[26]=h):h=e[26],e[27]!==a?(d=a&&t.jsx(te,{variant:"destructive",className:"mx-3 mb-2 w-auto",children:t.jsxs(se,{children:[a," Press another shortcut or Esc to cancel."]})}),e[27]=a,e[28]=d):d=e[28],g=ae,N="h-[min(28rem,60vh)]",y="flex flex-col gap-4 px-3 pb-4",b=Q.map(i=>{const L=A.filter(o=>o.group===i);return L.length===0?null:t.jsxs("section",{className:"flex flex-col gap-1",children:[t.jsx("h3",{className:"px-2 py-1 text-xs font-medium text-muted-foreground",children:i}),L.map(o=>{const z=l===o.command;return t.jsxs("div",{className:"flex min-h-12 items-center gap-3 rounded-md px-2 py-1.5 hover:bg-accent",children:[t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate text-sm",children:o.label}),t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:o.description})]}),t.jsx(P,{variant:z?"secondary":"outline",size:"sm",className:"min-w-28 font-mono text-xs",onClick:()=>{r(null),x(z?null:o.command)},"aria-label":`Change shortcut for ${o.label}`,children:z?"Press keys…":Y(B[o.command])}),t.jsx(P,{variant:"ghost",size:"icon-sm",onClick:()=>{_(o.command),G($()),r(null)},"aria-label":`Reset shortcut for ${o.label}`,children:t.jsx(O,{"data-icon":"inline-start"})})]},o.command)})]},i)}),e[3]=B,e[4]=a,e[5]=s,e[6]=l,e[7]=g,e[8]=j,e[9]=d,e[10]=y,e[11]=b,e[12]=N,e[13]=S,e[14]=w,e[15]=m,e[16]=u,e[17]=h}else g=e[7],j=e[8],d=e[9],y=e[10],b=e[11],N=e[12],S=e[13],w=e[14],m=e[15],u=e[16],h=e[17];let C;e[29]!==y||e[30]!==b?(C=t.jsx("div",{className:y,children:b}),e[29]=y,e[30]=b,e[31]=C):C=e[31];let v;e[32]!==g||e[33]!==C||e[34]!==N?(v=t.jsx(g,{className:N,children:C}),e[32]=g,e[33]=C,e[34]=N,e[35]=v):v=e[35];let R;return e[36]!==j||e[37]!==d||e[38]!==v||e[39]!==S||e[40]!==w||e[41]!==m||e[42]!==u||e[43]!==h?(R=t.jsxs(j,{className:S,showCloseButton:w,children:[m,u,h,d,v]}),e[36]=j,e[37]=d,e[38]=v,e[39]=S,e[40]=w,e[41]=m,e[42]=u,e[43]=h,e[44]=R):R=e[44],R}export{fe as KeyboardShortcutsDialog};