@kabmo-labs/kabmo 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/static/js/{CsvGrid-1t2q46rg.js → CsvGrid-z74weshk.js} +2 -2
- package/dist/client/static/js/{DocxView-301hxnwk.js → DocxView-dpe5x9ab.js} +5 -5
- package/dist/client/static/js/{DrawioView-47bwea5t.js → DrawioView-ftzwjf8v.js} +2 -2
- package/dist/client/static/js/{ImageView-68zdx5ex.js → ImageView-vchn6wyq.js} +1 -1
- package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +2 -0
- package/dist/client/static/js/{Modal-fb9b4gq6.js → Modal-tteg7vtb.js} +18 -18
- package/dist/client/static/js/{PdfView-m64ksepp.js → PdfView-vjec8z3z.js} +1 -1
- package/dist/client/static/js/{SessionsView-zyjwhpzm.js → SessionsView-g7z3fxbp.js} +1 -1
- package/dist/client/static/js/{SheetView-e88sqprx.js → SheetView-hhtfkdhe.js} +25 -25
- package/dist/client/static/js/{SvgPreview-hs9a713t.js → SvgPreview-48n3ex6p.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-fnr5kyqk.js → abnfDiagram-O67JEVCF-bpvzdara.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7v003363.js → architectureDiagram-NJMV4G6O-xw62cr7j.js} +3 -3
- package/dist/client/static/js/{astro-t9vjc0mc.js → astro-56b0as3q.js} +1 -1
- package/dist/client/static/js/bash-mevzaywf.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-k4mwbw3d.js → blockDiagram-BEXU5L5S-x3a6cgar.js} +4 -4
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-688zq6f4.js → c4Diagram-YGBWAQC7-katvaxbj.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-h0s16pxr.js → classDiagram-v2-NBCMYWYE-bjz4mqqh.js} +3 -3
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-qb2t8qq5.js → cose-bilkent-JH36ORCC-fsn80psf.js} +1 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +1 -0
- package/dist/client/static/js/css-3w3p9s67.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-syhtcr7b.js → cynefinDiagram-VND7K2PF-cfhbsnkm.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-7wgbx6cm.js → dagre-6A5THRUB-j2wt7ns6.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-951cmp5h.js → diagram-22UHCM2B-abrdj714.js} +8 -8
- package/dist/client/static/js/{diagram-3UASUU5V-mvdbqt7b.js → diagram-3UASUU5V-dbn15bxn.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-hkvdtgdm.js → diagram-ATOU4E4O-y79pwf7w.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-bkkz35ca.js → diagram-CDSNMT55-f8ryt86n.js} +2 -2
- package/dist/client/static/js/{diagram-MLGK6HIB-z6pcrkc3.js → diagram-MLGK6HIB-ws7wn3q9.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-mkwf8j4m.js → diagram-MPIPVDR6-zmznrg13.js} +2 -2
- package/dist/client/static/js/{dockerfile-7gd570bm.js → dockerfile-qgc921kw.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-trym26ts.js → ebnfDiagram-ZINNZB2B-y5q7hy1v.js} +1 -1
- package/dist/client/static/js/{elixir-z77c7tfn.js → elixir-12pgbgtq.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-gkhz67v6.js → elk-276RUBZZ-vddwbn6q.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-gkyr5cqs.js → erDiagram-OPXOYQCR-qdqcx4g4.js} +6 -6
- package/dist/client/static/js/{erlang-6vrvh2m6.js → erlang-811btv6p.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1qpme6ks.js → ganttDiagram-FUAMR5RP-763hk9rm.js} +1 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-wbg3kqak.js → gitGraphDiagram-X574FWY7-bgx1q5nw.js} +4 -4
- package/dist/client/static/js/graphql-027z8sc0.js +1 -0
- package/dist/client/static/js/html-fqda6wxx.js +1 -0
- package/dist/client/static/js/{index-ks23y2cd.js → index-03j5j1j0.js} +2 -2
- package/dist/client/static/js/{index-czedkbmb.js → index-05hx4ftf.js} +2 -2
- package/dist/client/static/js/index-0vk6v4y4.js +2 -0
- package/dist/client/static/js/{index-83pwa9c0.js → index-1nwwvv29.js} +1 -1
- package/dist/client/static/js/{index-31hntzse.js → index-228yzebd.js} +5 -5
- package/dist/client/static/js/{index-xf36nmbm.js → index-2b1wnvez.js} +2 -2
- package/dist/client/static/js/{index-6t21c6jt.js → index-34ff2vq6.js} +2 -2
- package/dist/client/static/js/{index-1923aj4g.js → index-3d21hpk7.js} +2 -2
- package/dist/client/static/js/{index-hfsvwfgw.js → index-3h2mr90j.js} +2 -2
- package/dist/client/static/js/{index-svmzgtcx.js → index-3sqndc9n.js} +2 -2
- package/dist/client/static/js/{index-6gyk52ff.js → index-47wn2gjx.js} +1 -1
- package/dist/client/static/js/{index-6ah5sj5y.js → index-4b5b6g0k.js} +1 -1
- package/dist/client/static/js/{index-53ysgsd2.js → index-5b2vsbcf.js} +1 -1
- package/dist/client/static/js/{index-qm92sf9w.js → index-5mrqfs82.js} +12 -12
- package/dist/client/static/js/{index-62ng8tkj.js → index-61j9qkck.js} +3 -3
- package/dist/client/static/js/index-6bm4pw90.css +1 -0
- package/dist/client/static/js/{index-fj4k07zt.js → index-6sqmhdyv.js} +2 -2
- package/dist/client/static/js/{index-gtkhz0hj.js → index-8dtp7mt0.js} +2 -2
- package/dist/client/static/js/index-a11ptyzf.js +1 -0
- package/dist/client/static/js/{index-nvevymac.js → index-acphtw1r.js} +2 -2
- package/dist/client/static/js/{index-pxm44qfd.js → index-cj39b26c.js} +1 -1
- package/dist/client/static/js/{index-wytdbvax.js → index-dgjerk4w.js} +3 -3
- package/dist/client/static/js/{index-ad4x44d6.js → index-dn6pqym4.js} +6 -6
- package/dist/client/static/js/{index-nr8s5xm9.js → index-ehg2ftnp.js} +2 -2
- package/dist/client/static/js/{index-jbkkwa2q.js → index-f51jxezc.js} +2 -2
- package/dist/client/static/js/index-f7paep2f.js +2 -0
- package/dist/client/static/js/{index-qkjx6521.js → index-f98dhbt4.js} +4 -4
- package/dist/client/static/js/{index-92n96mgd.js → index-fbct0jcf.js} +2 -2
- package/dist/client/static/js/{index-bjqz7swa.js → index-fqatn0vh.js} +1 -1
- package/dist/client/static/js/{index-tzdm1y3z.js → index-gcwmpfr4.js} +2 -2
- package/dist/client/static/js/{index-v5npdwy2.js → index-gmq5pbcv.js} +51 -51
- package/dist/client/static/js/{index-fbpc1wx6.js → index-gzafyqsr.js} +21 -21
- package/dist/client/static/js/{index-4y4hshcx.js → index-gzp4j2h5.js} +2 -2
- package/dist/client/static/js/{index-nqjd3hh5.js → index-h0rmkz9n.js} +2 -2
- package/dist/client/static/js/{index-8trggh1z.js → index-jpp0zm7t.js} +7 -7
- package/dist/client/static/js/{index-qf9x7yet.js → index-kg2sk8cf.js} +1 -1
- package/dist/client/static/js/{index-rpzxrr2d.js → index-mrw7qweg.js} +1 -1
- package/dist/client/static/js/{index-s8bktzpg.js → index-mwm8aptp.js} +1 -1
- package/dist/client/static/js/{index-c3v62nvt.js → index-n1ga63de.js} +2 -2
- package/dist/client/static/js/{index-22whvfdw.js → index-nzhwd6t3.js} +2 -2
- package/dist/client/static/js/{index-tr2pkfs6.js → index-p21mvqc2.js} +2 -2
- package/dist/client/static/js/{index-qsw5edtk.js → index-pfj3sd1n.js} +5 -5
- package/dist/client/static/js/{index-pysqpc5n.js → index-pxq4v81r.js} +2 -2
- package/dist/client/static/js/{index-07yh7qx0.js → index-q76jfb54.js} +1 -1
- package/dist/client/static/js/{index-6s4mrdew.js → index-qt9jc4ck.js} +2 -2
- package/dist/client/static/js/{index-ehacfgwm.js → index-r6e44vkx.js} +1 -1
- package/dist/client/static/js/{index-232nsp2c.js → index-szk3vk8h.js} +1 -1
- package/dist/client/static/js/{index-e6rm5xzj.js → index-t0yv1375.js} +1 -1
- package/dist/client/static/js/{index-n0matkz9.js → index-vgcm2g0g.js} +2 -2
- package/dist/client/static/js/{index-kwpaz891.js → index-vkerrwpa.js} +2 -2
- package/dist/client/static/js/{index-v7bcgh77.js → index-w57zbym7.js} +2 -2
- package/dist/client/static/js/{index-yfjvx4yf.js → index-wqrdgt1g.js} +2 -2
- package/dist/client/static/js/{index-barbpakv.js → index-x2wvq4ae.js} +2 -2
- package/dist/client/static/js/{index-3w845q50.js → index-x7rfmwg8.js} +2 -2
- package/dist/client/static/js/{index-cq98p2rb.js → index-xkwybnf3.js} +179 -179
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-yebngg8c.js → infoDiagram-VRGFBTTK-e66pw8d9.js} +1 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-kh4nqj6q.js → ishikawaDiagram-OU5B5YK6-ehc0q24d.js} +1 -1
- package/dist/client/static/js/java-zs6qh1dm.js +1 -0
- package/dist/client/static/js/javascript-b9mkygak.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-4khnf8x1.js → journeyDiagram-ZHPQQLJL-hye05qtd.js} +2 -2
- package/dist/client/static/js/jsx-gahhfczw.js +1 -0
- package/dist/client/static/js/{julia-svwxx41e.js → julia-mgsev9df.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-snmq3wq4.js → kanban-definition-PNTS6WVX-vce614m8.js} +6 -6
- package/dist/client/static/js/lua-d8enp14s.js +1 -0
- package/dist/client/static/js/markdown-qetaj4vp.js +1 -0
- package/dist/client/static/js/{mermaid.core-yctw30sk.js → mermaid.core-gc79re5p.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-atfv66wq.js → mindmap-definition-NLK3R4M7-ft1whaf5.js} +3 -3
- package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +1 -0
- package/dist/client/static/js/one-light-2b5w3ksh.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-hpbtxjht.js → pegDiagram-GJSIUBJH-2s4ykhaa.js} +1 -1
- package/dist/client/static/js/{perl-mr0ds2ex.js → perl-6n93vjsa.js} +1 -1
- package/dist/client/static/js/{php-5h3wt6tv.js → php-w23nmbtc.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-9zrtkdr2.js → pieDiagram-5QR66LMP-7h8dp0z3.js} +2 -2
- package/dist/client/static/js/properties-g6tpq003.js +1 -0
- package/dist/client/static/js/python-cy06fzhg.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-xq970vx1.js → quadrantDiagram-O4NWA36T-pteyxjxr.js} +2 -2
- package/dist/client/static/js/r-vw8berfv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1g9jchbk.js → railroadDiagram-XR7U4H2S-68z9wdt0.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ntt088y4.js → requirementDiagram-PLB6GJNP-c08nmey6.js} +3 -3
- package/dist/client/static/js/{ruby-nn836rtq.js → ruby-ag3b3t9t.js} +1 -1
- package/dist/client/static/js/{rust-eygk56y5.js → rust-ke5ec0w5.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-95k8c5v6.js → sankeyDiagram-IPEJSGJF-2r3kvjs5.js} +3 -3
- package/dist/client/static/js/{sass-c2bk03e4.js → sass-x0eez0kp.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-qfvxrwfa.js → sequenceDiagram-PO4LG4MO-ctjycd88.js} +6 -6
- package/dist/client/static/js/{sizeCapture-INFHLROL-0m7dc5nd.js → sizeCapture-INFHLROL-97ndea95.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-femwcn7n.js → stateDiagram-v2-GCMORJYK-aqnmsb96.js} +3 -3
- package/dist/client/static/js/{svelte-bfy1rq5g.js → svelte-tg19by0f.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-5n1qq48r.js → swimlanes-2SLR337P-v50cx1nx.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-vdsj18be.js → timeline-definition-EJHVYXUP-1ggrtdcj.js} +4 -4
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +1 -0
- package/dist/client/static/js/tsx-3dzv8h6k.js +1 -0
- package/dist/client/static/js/typescript-44vs0wn4.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-psjbrprk.js → usecaseDiagram-POWQR4AR-ybcwhpzs.js} +19 -19
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-4yn9kac9.js → vennDiagram-UO4OBE2U-p9ggrt07.js} +4 -4
- package/dist/client/static/js/{vue-0fwtgwj4.js → vue-mhj4sme0.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-js0tbpca.js → wardleyDiagram-VNRHLVJA-v79nb9kx.js} +2 -2
- package/dist/client/static/js/xml-yvv5fn3k.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-svr38ygh.js → xychartDiagram-PMCCYNJV-43thqscz.js} +2 -2
- package/dist/client/static/js/yaml-avewh7n5.js +1 -0
- package/marketplace/marketplace.json +7 -0
- package/marketplace/plugins/github-actions/README.md +142 -0
- package/marketplace/plugins/github-actions/icon.svg +12 -0
- package/marketplace/plugins/github-actions/package.json +30 -0
- package/marketplace/plugins/github-actions/settings-schema.json +27 -0
- package/marketplace/plugins/github-actions/src/app.tsx +32 -0
- package/marketplace/plugins/github-actions/src/panel/Actions.tsx +105 -0
- package/marketplace/plugins/github-actions/src/panel/LogView.tsx +76 -0
- package/marketplace/plugins/github-actions/src/panel/Row.tsx +59 -0
- package/marketplace/plugins/github-actions/src/panel/RunView.tsx +197 -0
- package/marketplace/plugins/github-actions/src/panel/format.ts +74 -0
- package/marketplace/plugins/github-actions/src/panel/index.test.tsx +86 -0
- package/marketplace/plugins/github-actions/src/panel/index.tsx +256 -0
- package/marketplace/plugins/github-actions/src/panel/picker.test.tsx +68 -0
- package/marketplace/plugins/github-actions/src/panel/test-fixtures.ts +98 -0
- package/marketplace/plugins/github-actions/src/panel/test-harness.tsx +175 -0
- package/marketplace/plugins/github-actions/src/protocol.ts +156 -0
- package/marketplace/plugins/github-actions/src/server/github.test.ts +264 -0
- package/marketplace/plugins/github-actions/src/server/github.ts +309 -0
- package/marketplace/plugins/github-actions/src/server/http.test.ts +150 -0
- package/marketplace/plugins/github-actions/src/server/http.ts +202 -0
- package/marketplace/plugins/github-actions/src/server/json.ts +44 -0
- package/marketplace/plugins/github-actions/src/server/logtext.test.ts +84 -0
- package/marketplace/plugins/github-actions/src/server/logtext.ts +59 -0
- package/marketplace/plugins/github-actions/src/server/progress.test.ts +96 -0
- package/marketplace/plugins/github-actions/src/server/progress.ts +62 -0
- package/marketplace/plugins/github-actions/src/server/remote.ts +84 -0
- package/marketplace/plugins/github-actions/src/server/scope.ts +51 -0
- package/marketplace/plugins/github-actions/src/server/token.ts +84 -0
- package/marketplace/plugins/github-actions/src/server.ts +163 -0
- package/marketplace/plugins/github-actions/src/state.test.ts +55 -0
- package/marketplace/plugins/github-actions/src/state.ts +63 -0
- package/marketplace/plugins/github-actions/tsconfig.json +16 -0
- package/package.json +1 -1
- package/src/client/components/mobile/RightSidebar.tsx +164 -66
- package/src/client/components/mobile/header-titlebar.test.tsx +92 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +179 -0
- package/src/client/components/mobile/panel-chips.test.tsx +12 -0
- package/src/client/components/mobile/panel-chips.tsx +5 -1
- package/src/client/components/mobile/right-drawer-nav.test.tsx +258 -0
- package/src/client/components/settings/apply-side-effects.ts +6 -0
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +123 -2
- package/src/client/components/workspace/panel-tabs/Home.tsx +14 -2
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +173 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +118 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +89 -102
- package/src/client/components/workspace/panel-tabs/index.tsx +9 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +63 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +39 -1
- package/src/client/lib/ui/control-plate.ts +33 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +5 -3
- package/src/shared/lib/settings/defaults.ts +2 -1
- package/src/shared/lib/workspace/panel-nav.test.ts +36 -0
- package/src/shared/lib/workspace/panel-nav.ts +43 -0
- package/src/shared/types/settings/state.ts +9 -1
- package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +0 -2
- package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +0 -1
- package/dist/client/static/js/bash-fjzhxy10.js +0 -1
- package/dist/client/static/js/cpp-9f6zkdd4.js +0 -1
- package/dist/client/static/js/css-y4y3qtsb.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +0 -1
- package/dist/client/static/js/graphql-amk52c95.js +0 -1
- package/dist/client/static/js/html-2y935m7r.js +0 -1
- package/dist/client/static/js/index-19ffgf9a.js +0 -2
- package/dist/client/static/js/index-204ae4vs.js +0 -2
- package/dist/client/static/js/index-n6fbd265.js +0 -1
- package/dist/client/static/js/index-sc7r305t.css +0 -1
- package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +0 -1
- package/dist/client/static/js/ini-kemnmt16.js +0 -1
- package/dist/client/static/js/java-caqpfm88.js +0 -1
- package/dist/client/static/js/javascript-zegm06a1.js +0 -1
- package/dist/client/static/js/jsx-bvterpm5.js +0 -1
- package/dist/client/static/js/lua-1hcfm8ya.js +0 -1
- package/dist/client/static/js/markdown-n6na4ykv.js +0 -1
- package/dist/client/static/js/one-dark-pro-c1vnxka7.js +0 -1
- package/dist/client/static/js/one-light-mbxx52p5.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +0 -1
- package/dist/client/static/js/properties-nxcks67c.js +0 -1
- package/dist/client/static/js/python-58p0gqn0.js +0 -1
- package/dist/client/static/js/r-eyn8en0g.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +0 -1
- package/dist/client/static/js/tsx-fnzxsv25.js +0 -1
- package/dist/client/static/js/typescript-0ppbqrb6.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +0 -1
- package/dist/client/static/js/xml-v1ytr8qz.js +0 -1
- package/dist/client/static/js/yaml-txrqz62t.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$e}from"./index-xf36nmbm.js";import{Da}from"./index-gtkhz0hj.js";import{_g}from"./index-jbkkwa2q.js";import{Pc}from"./index-barbpakv.js";var e=Object.freeze(JSON.parse('{"displayName":"GraphQL","fileTypes":["graphql","graphqls","gql","graphcool"],"name":"graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"captures":{"1":{"name":"keyword.operator.logical.graphql"}},"match":"\\\\s*(&)"},"graphql-arguments":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"end":"\\\\s*(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"name":"meta.arguments.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"end":"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)","endCaptures":{"3":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}]},{"include":"#literal-quasi-embedded"}]},"graphql-boolean-value":{"captures":{"1":{"name":"constant.language.boolean.graphql"}},"match":"\\\\s*\\\\b(true|false)\\\\b"},"graphql-colon":{"captures":{"1":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*(:)"},"graphql-comma":{"captures":{"1":{"name":"punctuation.comma.graphql"}},"match":"\\\\s*(,)"},"graphql-comment":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"match":"(\\\\s*)(#).*","name":"comment.line.graphql.js"},{"begin":"(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\"\\"\\")","name":"comment.line.graphql.js"},{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\")","name":"comment.line.graphql.js"}]},"graphql-description-docstring":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.graphql"},"graphql-description-singleline":{"match":"#(?=([^\\"]*\\"[^\\"]*\\")*[^\\"]*$).*$","name":"comment.line.number-sign.graphql"},"graphql-directive":{"applyEndPatternLast":1,"begin":"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-directive-definition":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.location.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"captures":{"2":{"name":"support.type.location.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)"}]},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}]},"graphql-enum":{"begin":"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}},"end":"(?<=})","name":"meta.enum.graphql","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}]},"graphql-enum-value":{"match":"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","name":"constant.character.enum.graphql"},"graphql-field":{"patterns":[{"captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)"},{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"captures":{"1":{"name":"constant.numeric.float.graphql"}},"match":"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)"},"graphql-fragment-definition":{"begin":"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?<=})","name":"meta.fragment.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-fragment-spread":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{"match":"\\\\s*"},"graphql-inline-fragment":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?"},{"begin":"\\\\s*(\\\\[)","captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"end":"\\\\s*(])(?:\\\\s*(!))?","name":"meta.type.list.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}]}]},"graphql-list-value":{"patterns":[{"begin":"\\\\s*+(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"meta.brace.square.graphql"}},"name":"meta.listvalues.graphql","patterns":[{"include":"#graphql-value"}]}]},"graphql-name":{"captures":{"1":{"name":"entity.name.function.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-null-value":{"captures":{"1":{"name":"constant.language.null.graphql"}},"match":"\\\\s*\\\\b(null)\\\\b"},"graphql-object-field":{"captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}},"match":"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)"},"graphql-object-value":{"patterns":[{"begin":"\\\\s*+(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"name":"meta.objectvalues.graphql","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}]}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"captures":{"1":{"name":"keyword.operation.graphql"}},"match":"\\\\s*\\\\b(query|mutation)\\\\b"},"graphql-scalar":{"captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}},"match":"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-scalar-type":{"captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?"},"graphql-schema":{"begin":"\\\\s*\\\\b(schema)\\\\b","beginCaptures":{"1":{"name":"keyword.schema.graphql"}},"end":"(?<=})","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"patterns":[{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}]},"graphql-selection-set":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.selectionset.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}]},"graphql-skip-newlines":{"match":"\\\\s*\\\\n"},"graphql-string-content":{"patterns":[{"match":"\\\\\\\\[\\"\'/\\\\\\\\bfnrt]","name":"constant.character.escape.graphql"},{"match":"\\\\\\\\u(\\\\h{4})","name":"constant.character.escape.graphql"}]},"graphql-string-value":{"begin":"\\\\s*+((\\"))","beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"contentName":"string.quoted.double.graphql","end":"\\\\s*+(?:((\\"))|(\\\\n))","endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}},"patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}]},"graphql-type-definition":{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}]},"graphql-type-interface":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?","captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"end":"(?=.)","name":"meta.type.interface.graphql","patterns":[{"begin":"\\\\s*\\\\b(implements)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.implements.graphql"}},"end":"\\\\s*(?=\\\\{)","patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}]},"graphql-type-object":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-union":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"applyEndPatternLast":1,"begin":"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-union-mark":{"captures":{"1":{"name":"punctuation.union.graphql"}},"match":"\\\\s*(\\\\|)"},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"applyEndPatternLast":1,"begin":"\\\\s(=)","beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"end":"(?=[\\\\n),])","patterns":[{"include":"#graphql-value"}]},"graphql-variable-definition":{"begin":"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"end":"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"name":"meta.variables.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-variable-definitions":{"begin":"\\\\s*(\\\\()","captures":{"1":{"name":"meta.brace.round.graphql"}},"end":"\\\\s*(\\\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-name":{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)"},"native-interpolation":{"begin":"\\\\s*(\\\\$\\\\{)","beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.substitution.end"}},"name":"native.interpolation","patterns":[{"include":"source.js"},{"include":"source.ts"},{"include":"source.js.jsx"},{"include":"source.tsx"}]}},"scopeName":"source.graphql","embeddedLangs":["javascript","typescript","jsx","tsx"],"aliases":["gql"]}')),Zf=[...$e,...Da,..._g,...Pc,e];
|
|
2
|
-
export{
|
|
1
|
+
import{ze}from"./index-2b1wnvez.js";import{Da}from"./index-8dtp7mt0.js";import{Qg}from"./index-f51jxezc.js";import{Uc}from"./index-x2wvq4ae.js";var e=Object.freeze(JSON.parse('{"displayName":"GraphQL","fileTypes":["graphql","graphqls","gql","graphcool"],"name":"graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"captures":{"1":{"name":"keyword.operator.logical.graphql"}},"match":"\\\\s*(&)"},"graphql-arguments":{"begin":"\\\\s*(\\\\()","beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"end":"\\\\s*(\\\\))","endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"name":"meta.arguments.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"end":"(?=\\\\s*(?:([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)|\\\\)))|\\\\s*(,)","endCaptures":{"3":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}]},{"include":"#literal-quasi-embedded"}]},"graphql-boolean-value":{"captures":{"1":{"name":"constant.language.boolean.graphql"}},"match":"\\\\s*\\\\b(true|false)\\\\b"},"graphql-colon":{"captures":{"1":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*(:)"},"graphql-comma":{"captures":{"1":{"name":"punctuation.comma.graphql"}},"match":"\\\\s*(,)"},"graphql-comment":{"patterns":[{"captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"match":"(\\\\s*)(#).*","name":"comment.line.graphql.js"},{"begin":"(\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\"\\"\\")","name":"comment.line.graphql.js"},{"begin":"(\\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}},"end":"(\\")","name":"comment.line.graphql.js"}]},"graphql-description-docstring":{"begin":"\\"\\"\\"","end":"\\"\\"\\"","name":"comment.block.graphql"},"graphql-description-singleline":{"match":"#(?=([^\\"]*\\"[^\\"]*\\")*[^\\"]*$).*$","name":"comment.line.number-sign.graphql"},"graphql-directive":{"applyEndPatternLast":1,"begin":"\\\\s*((@)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))","beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-directive-definition":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(directive)\\\\b\\\\s*(@[A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.location.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"captures":{"2":{"name":"support.type.location.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z]*)"}]},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}]},"graphql-enum":{"begin":"\\\\s*+\\\\b(enum)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}},"end":"(?<=})","name":"meta.enum.graphql","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}]},"graphql-enum-value":{"match":"\\\\s*(?!=\\\\b(true|false|null)\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","name":"constant.character.enum.graphql"},"graphql-field":{"patterns":[{"captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*(:)"},{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"captures":{"1":{"name":"constant.numeric.float.graphql"}},"match":"\\\\s*(-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?(([Ee])([-+])?[0-9]+)?)"},"graphql-fragment-definition":{"begin":"\\\\s*\\\\b(fragment)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?\\\\s*\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"},"3":{"name":"keyword.on.graphql"},"4":{"name":"support.type.graphql"}},"end":"(?<=})","name":"meta.fragment.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-fragment-spread":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?!\\\\bon\\\\b)([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{"match":"\\\\s*"},"graphql-inline-fragment":{"applyEndPatternLast":1,"begin":"\\\\s*(\\\\.\\\\.\\\\.)\\\\s*(?:\\\\b(on)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*))?","captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?:\\\\s*(!))?"},{"begin":"\\\\s*(\\\\[)","captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"end":"\\\\s*(])(?:\\\\s*(!))?","name":"meta.type.list.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}]}]},"graphql-list-value":{"patterns":[{"begin":"\\\\s*+(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"end":"\\\\s*(])","endCaptures":{"1":{"name":"meta.brace.square.graphql"}},"name":"meta.listvalues.graphql","patterns":[{"include":"#graphql-value"}]}]},"graphql-name":{"captures":{"1":{"name":"entity.name.function.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-null-value":{"captures":{"1":{"name":"constant.language.null.graphql"}},"match":"\\\\s*\\\\b(null)\\\\b"},"graphql-object-field":{"captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}},"match":"\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*))\\\\s*(:)"},"graphql-object-value":{"patterns":[{"begin":"\\\\s*+(\\\\{)","beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"name":"meta.objectvalues.graphql","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}]}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"captures":{"1":{"name":"keyword.operation.graphql"}},"match":"\\\\s*\\\\b(query|mutation)\\\\b"},"graphql-scalar":{"captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}},"match":"\\\\s*\\\\b(scalar)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},"graphql-scalar-type":{"captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}},"match":"\\\\s*\\\\b(Int|Float|String|Boolean|ID)\\\\b(?:\\\\s*(!))?"},"graphql-schema":{"begin":"\\\\s*\\\\b(schema)\\\\b","beginCaptures":{"1":{"name":"keyword.schema.graphql"}},"end":"(?<=})","patterns":[{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"patterns":[{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}]},"graphql-selection-set":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.selectionset.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}]},"graphql-skip-newlines":{"match":"\\\\s*\\\\n"},"graphql-string-content":{"patterns":[{"match":"\\\\\\\\[\\"\'/\\\\\\\\bfnrt]","name":"constant.character.escape.graphql"},{"match":"\\\\\\\\u(\\\\h{4})","name":"constant.character.escape.graphql"}]},"graphql-string-value":{"begin":"\\\\s*+((\\"))","beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"contentName":"string.quoted.double.graphql","end":"\\\\s*+(?:((\\"))|(\\\\n))","endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}},"patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}]},"graphql-type-definition":{"begin":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.graphql"}},"end":"(?=\\\\s*(([A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|(})))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}]},"graphql-type-interface":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(?:(extends?)?\\\\b\\\\s*\\\\b(type)|(interface)|(input))\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)?","captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"end":"(?=.)","name":"meta.type.interface.graphql","patterns":[{"begin":"\\\\s*\\\\b(implements)\\\\b\\\\s*","beginCaptures":{"1":{"name":"keyword.implements.graphql"}},"end":"\\\\s*(?=\\\\{)","patterns":[{"captures":{"1":{"name":"support.type.graphql"}},"match":"\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}]},"graphql-type-object":{"begin":"\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"end":"\\\\s*(})","endCaptures":{"1":{"name":"punctuation.operation.graphql"}},"name":"meta.type.object.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-union":{"applyEndPatternLast":1,"begin":"\\\\s*\\\\b(union)\\\\b\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"applyEndPatternLast":1,"begin":"\\\\s*(=)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)","captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}},"match":"\\\\s*(\\\\|)\\\\s*([A-Z_a-z][0-9A-Z_a-z]*)"}]},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}]},"graphql-union-mark":{"captures":{"1":{"name":"punctuation.union.graphql"}},"match":"\\\\s*(\\\\|)"},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"applyEndPatternLast":1,"begin":"\\\\s(=)","beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"end":"(?=[\\\\n),])","patterns":[{"include":"#graphql-value"}]},"graphql-variable-definition":{"begin":"\\\\s*(\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)(?=\\\\s*\\\\(|:)","beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"end":"(?=\\\\s*((\\\\$?[A-Z_a-z][0-9A-Z_a-z]*)\\\\s*([(:])|([)}])))|\\\\s*(,)","endCaptures":{"5":{"name":"punctuation.comma.graphql"}},"name":"meta.variables.graphql","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-variable-definitions":{"begin":"\\\\s*(\\\\()","captures":{"1":{"name":"meta.brace.round.graphql"}},"end":"\\\\s*(\\\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-name":{"captures":{"1":{"name":"variable.graphql"}},"match":"\\\\s*(\\\\$[A-Z_a-z][0-9A-Z_a-z]*)"},"native-interpolation":{"begin":"\\\\s*(\\\\$\\\\{)","beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"end":"(})","endCaptures":{"1":{"name":"keyword.other.substitution.end"}},"name":"native.interpolation","patterns":[{"include":"source.js"},{"include":"source.ts"},{"include":"source.js.jsx"},{"include":"source.tsx"}]}},"scopeName":"source.graphql","embeddedLangs":["javascript","typescript","jsx","tsx"],"aliases":["gql"]}')),ng=[...ze,...Da,...Qg,...Uc,e];
|
|
2
|
+
export{ng};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,n,o,i,ho,a,Us,e,s,m,jr,f,yo,Ea,Te,x,je,Se,_,mr,fr,At,sg,xt,zp,ts,ns,an,Ir,Jp,oc,ic}from"./index-cq98p2rb.js";import{yr}from"./index-czedkbmb.js";function oe(){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return crypto.randomUUID();return`t-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function ie(t){return JSON.stringify(t)}function de(t){let r=st(t);if(!x(r))return null;if(r.t==="ready"){if(typeof r.id!=="string"||typeof r.cwd!=="string")return null;let l=typeof r.replayBytes==="number"?r.replayBytes:0;return{...r,t:"ready",replayBytes:l}}if(r.t==="exit")return{t:"exit",exitCode:typeof r.exitCode==="number"?r.exitCode:null,signal:typeof r.signal==="string"?r.signal:null};if(r.t==="error"&&typeof r.message==="string")return{t:"error",code:at(r.code),message:r.message};return null}function pe(t){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/terminal/${encodeURIComponent(t)}/ws`}function at(t){return t==="capacity"||t==="cwd"||t==="shell"||t==="spawn"?t:"unknown"}function st(t){try{return JSON.parse(t)}catch{return null}}function fe(t){if(t.buffer instanceof ArrayBuffer)return t;return new Uint8Array(t)}var lt=500,ct=8000,ut=4;function be(t,r){let l=null,c=null,u=0,b=!1,p=!1,h=!1,v=null,R=[],E=0,k=null,O=()=>{let y=new WebSocket(pe(t));y.binaryType="arraybuffer",l=y,y.onopen=()=>{if(p)return;if(u=0,b=!0,r.onConnectionChange(!0),v)y.send(ie(v))},y.onmessage=(w)=>{if(p)return;if(w.data instanceof ArrayBuffer){S(new Uint8Array(w.data));return}if(typeof w.data!=="string")return;let D=de(w.data);if(D)M(D)},y.onclose=()=>{if(l=null,p)return;if(r.onConnectionChange(!1),h=!1,R=[],E=0,k=null,!b)return;if(u+=1,u>ut)return;let w=Math.min(lt*2**(u-1),ct);c=setTimeout(()=>{if(c=null,!p)O()},w)},y.onerror=()=>{}},M=(y)=>{if(y.t==="ready"){if(h=!0,k=y,E=y.replayBytes,R=[],r.onReady(y),E===0)P();return}if(y.t==="exit"){r.onExit(y.exitCode,y.signal);return}r.onError(y.code,y.message)},S=(y)=>{if(E<=0){r.onOutput(y);return}if(R.push(y),E-=y.length,E>0)return;P()},P=()=>{let y=k,w=R;if(k=null,R=[],E=0,!y)return;r.onReplay(w.length===1?w[0]:mt(w),y)};O();let A=(y)=>{let w=l;if(!w||w.readyState!==WebSocket.OPEN)return;w.send(ie(y))};return{attach(y,w,D,F,T){if(h)return;let g={t:"attach",cols:y,rows:w};if(D)g.root=D;if(F)g.repo=F;if(T)g.theme=T;v=g,A(g)},resize(y,w){A({t:"resize",cols:y,rows:w})},input(y){let w=l;if(!w||w.readyState!==WebSocket.OPEN)return;w.send(fe(y))},close(){A({t:"close"})},release(){if(p=!0,c!==null)clearTimeout(c),c=null;let y=l;if(l=null,!y)return;y.onopen=null,y.onmessage=null,y.onclose=null,y.onerror=null,y.close()}}}function mt(t){let r=0;for(let u of t)r+=u.length;let l=new Uint8Array(r),c=0;for(let u of t)l.set(u,c),c+=u.length;return l}function he(t){return{connect:t.visible||t.opened,persist:t.ready&&t.visible&&!t.opened}}function ye(t={}){let{sessionId:r,ready:l}=je(),[c,u]=_("terminal.id",""),[b,p]=_("terminal.opened",!1),h=he({visible:t.visible===!0,ready:l,opened:b}),[v,R]=n("connecting"),[E,k]=n(""),[O,M]=n(null),[S,P]=n(null),[A,y]=n(0),w=i(null),D=i(null),F=i(t.onOutput);F.current=t.onOutput;let T=i(t.onReplay);T.current=t.onReplay;let g=i(t.onRestart);g.current=t.onRestart;let L=i(t.root);L.current=t.root;let B=i(t.repo);B.current=t.repo;let X=i(t.theme);X.current=t.theme;let G=i(u);G.current=u;let H=i(null);o(()=>{if(!h.persist)return;p(!0)},[h.persist]),o(()=>{if(!h.connect||!l)return;if(Se(r,"terminal.id"))return;G.current(oe())},[h.connect,l,r]),o(()=>{if(!h.connect||!l||!c)return;R("connecting"),P(null),M(null);let I=be(c,{onReady(U){R("running"),k(U.shell),M(null)},onReplay(U,W){T.current?.(U,W)},onOutput(U){F.current?.(U)},onExit(U){R("exited"),M(U)},onError(U,W){R("error"),P(`${U}: ${W}`)},onConnectionChange(U){if(!U)R("connecting")}});w.current=I;let K=D.current;if(K)I.attach(K.cols,K.rows,L.current,B.current,X.current);return()=>{I.release(),w.current=null}},[h.connect,l,c,A]);let Y=a(()=>{w.current?.close(),g.current?.(),G.current(oe())},[]);o(()=>{if(!l)return;let I=t.root;if(!I)return;let K=`${I}\x00${t.repo??"."}`;if(H.current===null){H.current=K;return}if(H.current===K)return;H.current=K,Y()},[l,t.root,t.repo,Y]);let q=a((I,K)=>{D.current={cols:I,rows:K},w.current?.attach(I,K,L.current,B.current,X.current)},[]),J=a((I,K)=>{D.current={cols:I,rows:K},w.current?.resize(I,K)},[]),j=a((I)=>{w.current?.input(I)},[]),ne=a(()=>{y((I)=>I+1)},[]);return{status:v,shell:E,exitCode:O,error:S,attach:q,resize:J,input:j,restart:Y,reattach:ne}}var dt={name:"clipboard-copy",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]},ge=s(dt);var pt={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]},xe=s(pt);var ft={connecting:"CONNECTING",running:"LIVE",exited:"EXITED",error:"ERROR"},bt={connecting:"bg-warning/10 text-warning border-warning/20",running:"bg-success/10 text-success border-success/20",exited:"bg-ink/5 text-ink/60 border-ink/15",error:"bg-error/10 text-error border-error/20"};function we({status:t,exitCode:r,rootPath:l,activeRepo:c,onSelectRepo:u,repos:b,reposScanning:p,onRefreshRepos:h,shell:v,onRestart:R,tabsMode:E=!1}){let k=v?v.split("/").pop():"";return e(At,{left:e(d,{children:[e("div",{className:"flex items-center space-x-1.5",children:[e(Te,{size:14,className:"text-ink/80 flex-shrink-0"}),E?null:e("span",{className:"text-xs font-semibold tracking-wider text-ink uppercase",children:"Terminal"})]}),e("span",{className:`inline-flex items-center space-x-1 px-1.5 py-0.5 rounded text-[10px] font-mono border ${bt[t]}`,title:t==="exited"&&r!==null?`Shell exited with code ${r}`:void 0,children:[t==="connecting"&&e(m,{size:10,className:"animate-spin"}),e("span",{children:t==="exited"&&r!==null?`EXIT ${r}`:ft[t]})]}),e(yr,{rootPath:l,activeRepo:c,onSelectRepo:u,repos:b,scanning:p,onRefreshRepos:h}),e(sg,{label:"Kill this shell and start a new one",onClick:R,children:e(Ea,{size:14})})]}),right:k?e("span",{className:"hidden sm:block text-[10px] font-mono text-ink/40 flex-shrink-0",children:k}):void 0})}var ht=[{label:"bun build",cmd:"bun run build"},{label:"bun test",cmd:"bun test"},{label:"git status",cmd:"git status -s"},{label:"git diff",cmd:"git diff"},{label:"ls -la",cmd:"ls -la"},{label:"pwd",cmd:"pwd"},{label:"bun -v",cmd:"bun --version"}];function ve({onSelectCommand:t,disabled:r}){return e("div",{className:"flex flex-wrap items-center gap-1.5 px-3 py-1.5 bg-paper border-b border-ink/10 flex-shrink-0",children:[e("div",{className:"flex items-center space-x-1 text-[10px] font-mono text-ink/50 uppercase tracking-wider flex-shrink-0 select-none",children:[e(xe,{size:11,className:"text-warning"}),e("span",{children:"Quick:"})]}),ht.map((l)=>e("button",{type:"button",disabled:r,onClick:()=>t(l.cmd),className:"px-2 py-0.5 rounded text-[10px] font-mono bg-canvas hover:bg-ink/5 active:bg-ink/10 text-ink/80 hover:text-ink border border-ink/15 transition-all whitespace-nowrap disabled:opacity-40 cursor-pointer shadow-2xs",children:l.label},l.cmd))]})}var V=Object.freeze({ctrl:!1,alt:!1}),ae=[{id:"escape",label:"Esc",name:"Escape",sequence:"\x1B"},{id:"tab",label:"Tab",name:"Tab",sequence:"\t"},{id:"interrupt",label:"^C",name:"Ctrl+C — interrupt",sequence:"\x03"},{id:"left",label:"←",name:"Left arrow",csi:{prefix:"1",final:"D",application:"OD"}},{id:"up",label:"↑",name:"Up arrow",csi:{prefix:"1",final:"A",application:"OA"}},{id:"down",label:"↓",name:"Down arrow",csi:{prefix:"1",final:"B",application:"OB"}},{id:"right",label:"→",name:"Right arrow",csi:{prefix:"1",final:"C",application:"OC"}},{id:"home",label:"Home",name:"Home",csi:{prefix:"1",final:"H",application:"OH",terminfo:"\x1BOH"}},{id:"end",label:"End",name:"End",csi:{prefix:"1",final:"F",application:"OF",terminfo:"\x1BOF"}},{id:"pageUp",label:"PgUp",name:"Page up",csi:{prefix:"5",final:"~"}},{id:"pageDown",label:"PgDn",name:"Page down",csi:{prefix:"6",final:"~"}},{id:"delete",label:"Del",name:"Delete",csi:{prefix:"3",final:"~"}},{id:"shiftTab",label:"⇧Tab",name:"Shift+Tab",sequence:"\x1B[Z"},{id:"eof",label:"^D",name:"Ctrl+D — end of input",sequence:"\x04"},{id:"clear",label:"^L",name:"Ctrl+L — clear screen",sequence:"\f"}],se=[{id:"pipe",label:"|",name:"Pipe",sequence:"|"},{id:"tilde",label:"~",name:"Tilde",sequence:"~"},{id:"dollar",label:"$",name:"Dollar",sequence:"$"},{id:"asterisk",label:"*",name:"Asterisk",sequence:"*"},{id:"question",label:"?",name:"Question mark",sequence:"?"},{id:"underscore",label:"_",name:"Underscore",sequence:"_"},{id:"backslash",label:"\\",name:"Backslash",sequence:"\\"},{id:"slash",label:"/",name:"Slash",sequence:"/"},{id:"minus",label:"-",name:"Minus",sequence:"-"},{id:"equals",label:"=",name:"Equals",sequence:"="},{id:"plus",label:"+",name:"Plus",sequence:"+"},{id:"ampersand",label:"&",name:"Ampersand",sequence:"&"},{id:"semicolon",label:";",name:"Semicolon",sequence:";"},{id:"colon",label:":",name:"Colon",sequence:":"},{id:"comma",label:",",name:"Comma",sequence:","},{id:"dot",label:".",name:"Period",sequence:"."},{id:"at",label:"@",name:"At sign",sequence:"@"},{id:"percent",label:"%",name:"Percent",sequence:"%"},{id:"caret",label:"^",name:"Caret",sequence:"^"},{id:"hash",label:"#",name:"Hash",sequence:"#"},{id:"bang",label:"!",name:"Exclamation mark",sequence:"!"},{id:"parenOpen",label:"(",name:"Open parenthesis",sequence:"("},{id:"parenClose",label:")",name:"Close parenthesis",sequence:")"},{id:"bracketOpen",label:"[",name:"Open bracket",sequence:"["},{id:"bracketClose",label:"]",name:"Close bracket",sequence:"]"},{id:"braceOpen",label:"{",name:"Open brace",sequence:"{"},{id:"braceClose",label:"}",name:"Close brace",sequence:"}"},{id:"lessThan",label:"<",name:"Less than",sequence:"<"},{id:"greaterThan",label:">",name:"Greater than",sequence:">"},{id:"quote",label:"'",name:"Single quote",sequence:"'"},{id:"doubleQuote",label:'"',name:"Double quote",sequence:'"'},{id:"backtick",label:"`",name:"Backtick",sequence:"`"}],Ce={};for(let t of[...ae,...se])Ce[t.id]=t;function Re(t,r={}){let l=Ce[t];if(!l)return"";let c=r.modifiers??V;if(l.csi)return yt(l.csi,c,r.applicationCursorKeys??!1);let u=l.sequence??"";return c.alt?`\x1B${u}`:u}function yt(t,r,l){let c=gt(r);if(c!==null)return`\x1B[${t.prefix};${c}${t.final}`;if(t.terminfo)return t.terminfo;if(l&&t.application)return`\x1B${t.application}`;return`\x1B[${t.prefix==="1"?"":t.prefix}${t.final}`}function gt(t){let r=(t.alt?2:0)|(t.ctrl?4:0);return r===0?null:r+1}function ke(t,r){if(t.length!==1)return t;let l=t;if(r.ctrl)l=wt(l)??l;if(r.alt)l=`\x1B${l}`;return l}var Tt={"@":"\x00"," ":"\x00","":"\b","[":"\x1B","\\":"\x1C","]":"\x1D","^":"\x1E",_:"\x1F","?":""};function wt(t){if(t.length!==1)return null;let r=t.charCodeAt(0);if(r>=97&&r<=122)return String.fromCharCode(r-96);if(r>=65&&r<=90)return String.fromCharCode(r-64);return Tt[t]??null}var vt=[{modifier:"ctrl",label:"Ctrl",name:"Ctrl — applies to the next key"},{modifier:"alt",label:"Alt",name:"Alt / meta — applies to the next key"}],Q="flex items-center justify-center h-8 min-w-8 px-1.5 rounded border font-mono transition-colors cursor-pointer select-none disabled:opacity-40 disabled:cursor-default text-[11px] @[420px]:h-9 @[420px]:min-w-10 @[420px]:text-xs",Z="bg-canvas text-ink/80 border-ink/15 hover:text-ink hover:bg-ink/5 active:bg-ink/10",Ee="bg-ink text-canvas border-ink";function Me({modifiers:t,onToggleModifier:r,onKey:l,onCopy:c,onPaste:u,disabled:b}){let[p,h]=n(!1),[v,R]=n(null),E=t.ctrl||t.alt,k=(S)=>{R(S),setTimeout(()=>R((P)=>P===S?null:P),1500)},O=async()=>{k(await c()?"copied":"empty")},M=async()=>{if(!await u())k("pasteFailed")};return e("div",{className:"@container flex flex-col gap-1 px-2 py-1.5 border-t border-ink/10 bg-paper flex-shrink-0",onPointerDown:(S)=>S.preventDefault(),children:[e("div",{className:"flex flex-wrap items-center gap-1",children:[vt.map(({modifier:S,label:P,name:A})=>e("button",{type:"button",onClick:()=>r(S),"aria-pressed":t[S],title:A,"aria-label":A,className:`${Q} ${t[S]?Ee:Z}`,children:P},S)),E&&e("span",{className:"text-[10px] font-mono text-ink/50 px-0.5 whitespace-nowrap","aria-hidden":!0,children:"next"}),e("span",{className:"w-px h-5 bg-ink/15 flex-shrink-0","aria-hidden":!0}),e("button",{type:"button",onClick:O,disabled:b,title:v==="empty"?"Nothing selected":"Copy selection","aria-label":"Copy selection",className:`${Q} ${v==="empty"?"bg-warning/10 text-warning border-warning/30":Z}`,children:[v==="copied"?e(f,{size:13}):e(ge,{size:13}),e("span",{className:"pl-1",children:"Copy"})]}),e("button",{type:"button",onClick:M,disabled:b,title:v==="pasteFailed"?"Clipboard unavailable":"Paste into the shell","aria-label":"Paste into the shell",className:`${Q} ${v==="pasteFailed"?"bg-error/10 text-error border-error/30":Z}`,children:[e(yo,{size:13}),e("span",{className:"pl-1",children:"Paste"})]}),e("button",{type:"button",onClick:()=>h((S)=>!S),"aria-pressed":p,title:p?"Show control keys":"Show symbols","aria-label":p?"Show control keys":"Show symbols",className:`${Q} ml-auto ${p?Ee:Z}`,children:p?"ABC":"123"})]}),e("div",{className:"flex flex-wrap items-center gap-1",children:(p?se:ae).map((S)=>e("button",{type:"button",disabled:b,onClick:()=>l(S.id),title:S.name,"aria-label":S.name,className:`${Q} ${Z}`,children:S.label},S.id))})]})}function Ae(t){if(!t.startsWith("\x1B[M")||t.length<6)return{text:t};let r=new Uint8Array(t.length);for(let l=0;l<t.length;l+=1)r[l]=t.charCodeAt(l)&255;return{bytes:r}}function Fe(t){let r=an(t),{canvas:l,ink:c,paper:u}=r,b=(h)=>Ir(h,c,0.2),p=(h)=>Ir(l,c,h);return{background:"transparent",foreground:c,cursor:r.meta,cursorAccent:u,selectionBackground:p(0.28),selectionForeground:c,black:p(0.2),red:r.error,green:r.success,yellow:r.warning,blue:r.info,magenta:r.meta,cyan:Ir(r.info,r.success,0.5),white:p(0.75),brightBlack:p(0.5),brightRed:b(r.error),brightGreen:b(r.success),brightYellow:b(r.warning),brightBlue:b(r.info),brightMagenta:b(r.meta),brightCyan:b(Ir(r.info,r.success,0.5)),brightWhite:p(0.92)}}var ee="Fira Code",St="'FiraCode Nerd Font Mono', 'FiraCode Nerd Font', 'JetBrainsMono Nerd Font', 'JetBrainsMono NF', 'JetBrains Mono Nerd Font', 'Hack Nerd Font', 'MesloLGS NF', 'MesloLGM Nerd Font', 'CaskaydiaCove Nerd Font', 'SauceCodePro Nerd Font', 'Symbols Nerd Font Mono', 'Symbols Nerd Font', 'PowerlineSymbols'",Le="Kabmo Nerd Symbols",Ie=[ee,Le],te=`'${ee}', ${St}, '${Le}', Menlo, Monaco, 'Courier New', monospace`,z=12,Ct=16,Rt=1e4;function kt(t,r){return Math.max(1,t)*Math.max(1,r)*Ct}var Ne=kt(Rt,100);var Et=2000;async function Oe(){if(typeof document>"u"||!document.fonts?.load)return;let t=Promise.withResolvers(),r=setTimeout(t.resolve,Et);try{await Promise.race([document.fonts.load(`${z}px "${ee}"`).then(()=>{return},()=>{return}),t.promise])}finally{clearTimeout(r)}}function Pe(t){if(typeof document>"u"||!document.fonts)return()=>{};let r=new Set(Ie),l=(c)=>{if([...c.fontfaces].some((b)=>r.has(b.family.replace(/['"]/g,"").trim())))t()};return document.fonts.addEventListener("loadingdone",l),()=>document.fonts.removeEventListener("loadingdone",l)}var _e=2.5,Mt=1;function Ft(t,r){let l=t*0.8,c=t*0.2,u=Math.ceil(t*0.6),b=l,p=c,h=typeof document>"u"?null:document.createElement("canvas").getContext("2d");if(h){h.font=`${t}px ${r}`,u=Math.ceil(h.measureText("M").width)||u;let v=h.measureText("Mg");b=v.actualBoundingBoxAscent||l,p=v.actualBoundingBoxDescent||c}return{width:u,height:Math.ceil(b+p+_e+Mt),baseline:Math.round(b+_e)}}function De(t){let r=t.renderer;if(!r)return;r.measureFont=()=>Ft(t.options.fontSize??z,t.options.fontFamily??te),r.remeasureFont()}function Be(t){let r=t.renderer;if(!r||!t.wasmTerm)return;r.setFontSize(t.options.fontSize??z),r.resize(t.cols,t.rows),r.render(t.wasmTerm,!0,t.viewportY,t)}function Lt(t){let{cols:r,rows:l,attached:c,committed:u}=t;if(r<10||l<5)return{kind:"ignore"};if(!c)return{kind:"attach",cols:r,rows:l};if(r===u.cols&&l===u.rows)return{kind:"ignore"};return{kind:"change",cols:r,rows:l}}function Ke(t){let r={cols:0,rows:0},l=!1,c,u=()=>{if(!t.fit())return;let b=t.current();if(!b)return;let p=Lt({cols:b.cols,rows:b.rows,attached:l,committed:r});if(p.kind==="ignore")return;if(r={cols:p.cols,rows:p.rows},p.kind==="attach"){l=!0,t.onReady(p.cols,p.rows);return}t.onGridChange(p.cols,p.rows)};return{schedule(){clearTimeout(c),c=setTimeout(u,120)},restate(){r={cols:0,rows:0}},isAttached:()=>l,dispose(){clearTimeout(c),c=void 0}}}function Ue(t,r){if(r.type!=="keydown"||!r.shiftKey)return!1;if(r.key==="PageUp")return t.scrollPages(-1),!0;if(r.key==="PageDown")return t.scrollPages(1),!0;if(r.key==="Home")return t.scrollToTop(),!0;if(r.key==="End")return t.scrollToBottom(),!0;if(r.key==="ArrowUp")return t.scrollLines(-1),!0;if(r.key==="ArrowDown")return t.scrollLines(1),!0;return!1}function qe(t,r){let l=0,c=(b)=>{if(b.touches.length===1)l=b.touches[0].clientY},u=(b)=>{if(b.touches.length!==1)return;let p=l-b.touches[0].clientY;if(Math.abs(p)<16)return;r()?.scrollLines(Math.trunc(p/16)),l=b.touches[0].clientY};return t.addEventListener("touchstart",c,{passive:!0}),t.addEventListener("touchmove",u,{passive:!0}),()=>{t.removeEventListener("touchstart",c),t.removeEventListener("touchmove",u)}}function It(t){if(t.viewportY<=0&&!t.hasSelection&&!t.pointerHeld)return null;return t.scrollback-t.viewportY}function Nt(t){let r=t.scrollback-t.top;return r>0?r:null}function He(t){let r={pointerHeld:!1},l=()=>{r.pointerHeld=!0},c=()=>{r.pointerHeld=!1};return t.addEventListener("pointerdown",l,!0),globalThis.addEventListener("pointerup",c),globalThis.addEventListener("pointercancel",c),{get pointerHeld(){return r.pointerHeld},stop(){t.removeEventListener("pointerdown",l,!0),globalThis.removeEventListener("pointerup",c),globalThis.removeEventListener("pointercancel",c)}}}function $e(t,r,l){let c=It({scrollback:t.getScrollbackLength(),viewportY:t.getViewportY(),hasSelection:t.hasSelection(),pointerHeld:r.pointerHeld});if(l(),c===null)return;let u=Nt({scrollback:t.getScrollbackLength(),top:c});if(u===null)return;let b=u-t.getViewportY();if(b===0)return;try{t.scrollLines(-b)}catch{}}function Ge(t,r){let l=(c)=>{let u=r();if(!u)return;if(c.preventDefault(),c.clipboardData)c.clipboardData.setData("text/plain",u);else xt(u)};return t.addEventListener("copy",l),()=>t.removeEventListener("copy",l)}function Ye(t,r){let l=(c)=>{if(!c.ctrlKey||!c.shiftKey||c.altKey)return;if(c.code==="KeyC"){let u=r.getSelection();if(!u)return;c.preventDefault(),c.stopImmediatePropagation(),xt(u);return}if(c.code==="KeyV")c.preventDefault(),c.stopImmediatePropagation(),zp().then((u)=>{if(u)r.paste(u)})};return t.addEventListener("keydown",l,!0),()=>t.removeEventListener("keydown",l,!0)}function ze(t){if(ts()&&t.textarea)t.textarea.focus();else t.focus()}function Xe(t){if(ts())t.textarea?.focus()}function We(t,r){let l=(c)=>{if(c.target!==t||!ts())return;r.textarea?.focus()};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)}function _t(t,r,l){if(!l.width||!l.height)return null;return{cols:Math.max(2,Math.floor(t/l.width)),rows:Math.max(1,Math.floor(r/l.height))}}function Ve(t,r){let l=t;l.proposeDimensions=()=>{let c=r.element,u=r.renderer?.getMetrics();if(!c||!u)return;let b=getComputedStyle(c),p=(parseFloat(b.paddingLeft)||0)+(parseFloat(b.paddingRight)||0),h=(parseFloat(b.paddingTop)||0)+(parseFloat(b.paddingBottom)||0);return _t(c.clientWidth-p,c.clientHeight-h,u)??void 0}}function le(t,r,l,c,u){let b=new t.Terminal({cursorBlink:!0,cursorStyle:"block",fontSize:z,fontFamily:te,theme:Fe(c),scrollback:Ne,smoothScrollDuration:0,ghostty:r});if(b.open(l),De(b),b.clear(),l.clientWidth>0)Xe(b);let p=new t.FitAddon;b.loadAddon(p),Ve(p,b);let h={term:b,fitAddon:p,disposables:[]};return u(h),h}function ce(t){if(!t)return;for(let r of t.disposables)try{r.dispose()}catch{}try{t.fitAddon.dispose()}catch{}try{t.term.dispose()}catch{}}async function Qe(t,r,l,c){let u=await import("./ghostty-web-22pdvhta.js"),[b]=await Promise.all([u.Ghostty.load(),Oe()]);if(c())return null;let p=r,h=null,v=!1,R,E=null,k=!1,O=(T)=>{let{term:g}=T;g.attachCustomKeyEventHandler((L)=>Ue(g,L)),T.disposables.push({dispose:Ge(t,()=>g.getSelection())},{dispose:Ye(t,{getSelection:()=>g.getSelection(),paste:(L)=>g.paste(L)})},{dispose:We(t,g)},g.onScroll((L)=>l.onScrolledUpChange(L>0)),g.onData((L)=>{let B=Ae(L);if(B.bytes)l.onBinaryInput(B.bytes);else l.onInput(B.text)}),g.onResize(()=>{if(v)return;A.schedule()}))},M=()=>{if(k)return!1;if(t.clientWidth<=0||t.clientHeight<=0)return!1;let T=h?.term.renderer?.getMetrics();if(!T?.width||!T.height)return!1;try{return h?.fitAddon.fit(),!0}catch{return!1}},S=()=>{if(k)return;v=!1,M(),A.restate(),A.schedule()},P=(T,g,L)=>{let B=h?.term;if(!B)return;if(v=!0,B.cols!==g||B.rows!==L)B.resize(g,L);if(T.length===0){requestAnimationFrame(S);return}B.write(T,S)},A=Ke({current:()=>h?.term,fit:M,onReady:l.onReady,onGridChange:l.onGridChange}),y=He(t);h=le(u,b,t,p,O),M(),A.schedule();let w=new ResizeObserver(()=>{clearTimeout(R),R=setTimeout(()=>{M(),A.schedule()},35)});w.observe(t);let D=Pe(()=>{let T=h?.term;if(!T)return;Be(T),M(),A.schedule()}),F=qe(t,()=>h?.term??null);return E=requestAnimationFrame(()=>{M(),A.schedule()}),{write(T){let g=h?.term;if(!g)return;$e(g,y,()=>g.write(T))},writeReplay:P,reset(){let T=h?.term;if(!T)return;T.reset(),T.clear(),M()},focus(){let T=h?.term;if(T)ze(T)},applicationCursorKeys(){return h?.term.wasmTerm?.getMode(1,!1)??!1},getSelection(){return h?.term.getSelection()??""},paste(T){h?.term.paste(T)},scrollToBottom(){h?.term.scrollToBottom()},setTheme(T){if(k||T===p)return;p=T,ce(h),h=le(u,b,t,T,O),M()},dispose(){if(k=!0,E!==null)cancelAnimationFrame(E);clearTimeout(R),A.dispose(),D(),F(),y.stop(),w.disconnect(),ce(h),h=null}}}function Ze(){let t=null,r=!1;return{request(){if(t)t();else r=!0},attach(l){if(t=l,!r)return;r=!1,l()},detach(){t=null,r=!1}}}var ue=Us(({onInput:t,onBinaryInput:r,onGridChange:l,onReady:c,onReattach:u},b)=>{let{theme:p}=Jp(),h=i(null),v=i(null),[R,E]=n(!1),k=i(null);if(!k.current)k.current=Ze();let O=k.current,M=i(t);M.current=t;let S=i(r);S.current=r;let P=i(l);P.current=l;let A=i(c);A.current=c;let y=i(u);y.current=u;let w=i(p);w.current=p,o(()=>{let F=v.current;if(!F)return;F.setTheme(p),y.current?.()},[p]),ho(b,()=>({write(F){v.current?.write(F)},writeReplay(F,T,g){v.current?.writeReplay(F,T,g)},reset(){v.current?.reset()},focus(){O.request()},applicationCursorKeys(){return v.current?.applicationCursorKeys()??!1},getSelection(){return v.current?.getSelection()??""},paste(F){v.current?.paste(F)}}),[]);let D=a(()=>{v.current?.scrollToBottom(),E(!1)},[]);return o(()=>{let F=h.current;if(!F)return;let T=!1;return Qe(F,w.current,{onInput:(g)=>M.current(g),onBinaryInput:(g)=>S.current(g),onGridChange:(g,L)=>P.current(g,L),onReady:(g,L)=>A.current(g,L),onScrolledUpChange:E},()=>T).then((g)=>{if(!g)return;if(T){g.dispose();return}v.current=g,F.querySelector("textarea")?.setAttribute("data-terminal-input",""),O.attach(()=>v.current?.focus())}),()=>{T=!0,O.detach(),v.current?.dispose(),v.current=null}},[]),e("div",{className:"relative flex-1 w-full h-full overflow-hidden p-2",children:[e("div",{ref:h,"data-terminal-root":"",className:"kabmo-terminal w-full h-full cursor-text",style:{height:"100%",width:"100%"}}),R&&e("button",{type:"button",onClick:D,className:"absolute bottom-3 right-4 z-20 flex items-center space-x-1.5 px-2.5 py-1 bg-paper hover:bg-canvas text-ink border border-ink/20 rounded-full shadow-lg text-[11px] font-mono transition-all animate-fade-in cursor-pointer active:scale-95",title:"Scroll to latest output (Shift+End)",children:[e(jr,{size:12,className:"text-warning"}),e("span",{children:"Latest"})]})]})});ue.displayName="RealtimeTerminalView";var me=new TextEncoder;function br({className:t="",enabled:r=!0,rootPath:l,showHeader:c=!0,active:u=!0,tabsMode:b=!1}){let p=i(null),{isDark:h}=Jp(),v=ns(),R=i(null),E=oc(R),[k,O]=n(V),{activeRepo:M,setActiveRepo:S}=mr(l),{repos:P,scanning:A,rescan:y}=fr(l,r),w=i(null),D=i(k);D.current=k;let F=a((C)=>{p.current?.write(C)},[]);o(()=>{if(!u||!r){ic();return}p.current?.focus()},[u,r]);let T=a((C,N)=>{p.current?.writeReplay(C,N.replayCols,N.replayRows)},[]),g=a(()=>{p.current?.reset()},[]),{status:L,shell:B,exitCode:X,error:G,attach:H,resize:Y,input:q,restart:J,reattach:j}=ye({visible:u&&r,root:r?l:void 0,repo:M,theme:h?"dark":"light",onOutput:F,onReplay:T,onRestart:g}),ne=a((C,N)=>{w.current={cols:C,rows:N},H(C,N)},[H]),I=a((C,N)=>{let re=w.current;if(w.current={cols:C,rows:N},!re)return;Y(C,N)},[Y]),K=a((C)=>{let N=D.current,re=N.ctrl||N.alt,it=ke(C,N);if(re&&C.length===1)O(V);q(me.encode(it))},[q]),U=a((C)=>{O((N)=>({...N,[C]:!N[C]})),p.current?.focus()},[]),W=a((C)=>{let N=Re(C,{applicationCursorKeys:p.current?.applicationCursorKeys()??!1,modifiers:D.current});if(!N)return;q(me.encode(N)),O(V),p.current?.focus()},[q]),Je=a(async()=>{let C=p.current?.getSelection()??"";if(!C)return!1;return xt(C)},[]),et=a(async()=>{let C=await zp();if(C===null||C.length===0)return!1;return p.current?.paste(C),p.current?.focus(),!0},[]),tt=a((C)=>{q(C)},[q]),nt=a((C)=>{q(me.encode(`${C}\r`)),p.current?.focus()},[q]),rt=a(()=>{J()},[J]),ot=a(()=>{j()},[j]);if(!r)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${t}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});return e("div",{ref:R,className:`flex flex-col h-full w-full bg-paper text-ink overflow-hidden ${t}`,"aria-hidden":!u,style:E>0?{paddingBottom:E}:void 0,children:[c&&e(we,{status:L,exitCode:X,rootPath:l,activeRepo:M,onSelectRepo:S,repos:P,reposScanning:A,onRefreshRepos:y,shell:B,onRestart:rt,tabsMode:b}),e(ve,{onSelectCommand:nt,disabled:L!=="running"}),G&&e("div",{className:"px-3 py-1.5 border-b border-error/20 bg-error/5 text-[11px] font-mono text-error flex-shrink-0",children:G}),e("div",{className:"flex-1 w-full min-h-0 bg-canvas overflow-hidden",children:e(ue,{ref:p,onInput:K,onBinaryInput:tt,onReady:ne,onGridChange:I,onReattach:ot})}),v&&e(Me,{modifiers:k,onToggleModifier:U,onKey:W,onCopy:Je,onPaste:et,disabled:L!=="running"})]})}export{br as TerminalPanel};
|
|
1
|
+
import{d,n,o,i,yo,a,js,e,s,m,qr,f,ko,Ea,Te,x,Oe,Ce,_,fr,gr,At,dg,xt,qp,ts,ns,on,Sr,tm,lc,cc}from"./index-xkwybnf3.js";import{kr}from"./index-05hx4ftf.js";function oe(){if(typeof crypto<"u"&&typeof crypto.randomUUID==="function")return crypto.randomUUID();return`t-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function ie(t){return JSON.stringify(t)}function de(t){let r=st(t);if(!x(r))return null;if(r.t==="ready"){if(typeof r.id!=="string"||typeof r.cwd!=="string")return null;let l=typeof r.replayBytes==="number"?r.replayBytes:0;return{...r,t:"ready",replayBytes:l}}if(r.t==="exit")return{t:"exit",exitCode:typeof r.exitCode==="number"?r.exitCode:null,signal:typeof r.signal==="string"?r.signal:null};if(r.t==="error"&&typeof r.message==="string")return{t:"error",code:at(r.code),message:r.message};return null}function pe(t){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/terminal/${encodeURIComponent(t)}/ws`}function at(t){return t==="capacity"||t==="cwd"||t==="shell"||t==="spawn"?t:"unknown"}function st(t){try{return JSON.parse(t)}catch{return null}}function fe(t){if(t.buffer instanceof ArrayBuffer)return t;return new Uint8Array(t)}var lt=500,ct=8000,ut=4;function be(t,r){let l=null,c=null,u=0,b=!1,p=!1,h=!1,v=null,R=[],E=0,k=null,O=()=>{let y=new WebSocket(pe(t));y.binaryType="arraybuffer",l=y,y.onopen=()=>{if(p)return;if(u=0,b=!0,r.onConnectionChange(!0),v)y.send(ie(v))},y.onmessage=(w)=>{if(p)return;if(w.data instanceof ArrayBuffer){S(new Uint8Array(w.data));return}if(typeof w.data!=="string")return;let D=de(w.data);if(D)M(D)},y.onclose=()=>{if(l=null,p)return;if(r.onConnectionChange(!1),h=!1,R=[],E=0,k=null,!b)return;if(u+=1,u>ut)return;let w=Math.min(lt*2**(u-1),ct);c=setTimeout(()=>{if(c=null,!p)O()},w)},y.onerror=()=>{}},M=(y)=>{if(y.t==="ready"){if(h=!0,k=y,E=y.replayBytes,R=[],r.onReady(y),E===0)P();return}if(y.t==="exit"){r.onExit(y.exitCode,y.signal);return}r.onError(y.code,y.message)},S=(y)=>{if(E<=0){r.onOutput(y);return}if(R.push(y),E-=y.length,E>0)return;P()},P=()=>{let y=k,w=R;if(k=null,R=[],E=0,!y)return;r.onReplay(w.length===1?w[0]:mt(w),y)};O();let A=(y)=>{let w=l;if(!w||w.readyState!==WebSocket.OPEN)return;w.send(ie(y))};return{attach(y,w,D,F,T){if(h)return;let g={t:"attach",cols:y,rows:w};if(D)g.root=D;if(F)g.repo=F;if(T)g.theme=T;v=g,A(g)},resize(y,w){A({t:"resize",cols:y,rows:w})},input(y){let w=l;if(!w||w.readyState!==WebSocket.OPEN)return;w.send(fe(y))},close(){A({t:"close"})},release(){if(p=!0,c!==null)clearTimeout(c),c=null;let y=l;if(l=null,!y)return;y.onopen=null,y.onmessage=null,y.onclose=null,y.onerror=null,y.close()}}}function mt(t){let r=0;for(let u of t)r+=u.length;let l=new Uint8Array(r),c=0;for(let u of t)l.set(u,c),c+=u.length;return l}function he(t){return{connect:t.visible||t.opened,persist:t.ready&&t.visible&&!t.opened}}function ye(t={}){let{sessionId:r,ready:l}=Oe(),[c,u]=_("terminal.id",""),[b,p]=_("terminal.opened",!1),h=he({visible:t.visible===!0,ready:l,opened:b}),[v,R]=n("connecting"),[E,k]=n(""),[O,M]=n(null),[S,P]=n(null),[A,y]=n(0),w=i(null),D=i(null),F=i(t.onOutput);F.current=t.onOutput;let T=i(t.onReplay);T.current=t.onReplay;let g=i(t.onRestart);g.current=t.onRestart;let L=i(t.root);L.current=t.root;let B=i(t.repo);B.current=t.repo;let X=i(t.theme);X.current=t.theme;let G=i(u);G.current=u;let H=i(null);o(()=>{if(!h.persist)return;p(!0)},[h.persist]),o(()=>{if(!h.connect||!l)return;if(Ce(r,"terminal.id"))return;G.current(oe())},[h.connect,l,r]),o(()=>{if(!h.connect||!l||!c)return;R("connecting"),P(null),M(null);let I=be(c,{onReady(U){R("running"),k(U.shell),M(null)},onReplay(U,W){T.current?.(U,W)},onOutput(U){F.current?.(U)},onExit(U){R("exited"),M(U)},onError(U,W){R("error"),P(`${U}: ${W}`)},onConnectionChange(U){if(!U)R("connecting")}});w.current=I;let K=D.current;if(K)I.attach(K.cols,K.rows,L.current,B.current,X.current);return()=>{I.release(),w.current=null}},[h.connect,l,c,A]);let Y=a(()=>{w.current?.close(),g.current?.(),G.current(oe())},[]);o(()=>{if(!l)return;let I=t.root;if(!I)return;let K=`${I}\x00${t.repo??"."}`;if(H.current===null){H.current=K;return}if(H.current===K)return;H.current=K,Y()},[l,t.root,t.repo,Y]);let q=a((I,K)=>{D.current={cols:I,rows:K},w.current?.attach(I,K,L.current,B.current,X.current)},[]),J=a((I,K)=>{D.current={cols:I,rows:K},w.current?.resize(I,K)},[]),j=a((I)=>{w.current?.input(I)},[]),ne=a(()=>{y((I)=>I+1)},[]);return{status:v,shell:E,exitCode:O,error:S,attach:q,resize:J,input:j,restart:Y,reattach:ne}}var dt={name:"clipboard-copy",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]},ge=s(dt);var pt={name:"zap",size:24,node:[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]},xe=s(pt);var ft={connecting:"CONNECTING",running:"LIVE",exited:"EXITED",error:"ERROR"},bt={connecting:"bg-warning/10 text-warning border-warning/20",running:"bg-success/10 text-success border-success/20",exited:"bg-ink/5 text-ink/60 border-ink/15",error:"bg-error/10 text-error border-error/20"};function we({status:t,exitCode:r,rootPath:l,activeRepo:c,onSelectRepo:u,repos:b,reposScanning:p,onRefreshRepos:h,shell:v,onRestart:R,tabsMode:E=!1}){let k=v?v.split("/").pop():"";return e(At,{left:e(d,{children:[e("div",{className:"flex items-center space-x-1.5",children:[e(Te,{size:14,className:"text-ink/80 flex-shrink-0"}),E?null:e("span",{className:"text-xs font-semibold tracking-wider text-ink uppercase",children:"Terminal"})]}),e("span",{className:`inline-flex items-center space-x-1 px-1.5 py-0.5 rounded text-[10px] font-mono border ${bt[t]}`,title:t==="exited"&&r!==null?`Shell exited with code ${r}`:void 0,children:[t==="connecting"&&e(m,{size:10,className:"animate-spin"}),e("span",{children:t==="exited"&&r!==null?`EXIT ${r}`:ft[t]})]}),e(kr,{rootPath:l,activeRepo:c,onSelectRepo:u,repos:b,scanning:p,onRefreshRepos:h}),e(dg,{label:"Kill this shell and start a new one",onClick:R,children:e(Ea,{size:14})})]}),right:k?e("span",{className:"hidden sm:block text-[10px] font-mono text-ink/40 flex-shrink-0",children:k}):void 0})}var ht=[{label:"bun build",cmd:"bun run build"},{label:"bun test",cmd:"bun test"},{label:"git status",cmd:"git status -s"},{label:"git diff",cmd:"git diff"},{label:"ls -la",cmd:"ls -la"},{label:"pwd",cmd:"pwd"},{label:"bun -v",cmd:"bun --version"}];function ve({onSelectCommand:t,disabled:r}){return e("div",{className:"flex flex-wrap items-center gap-1.5 px-3 py-1.5 bg-paper border-b border-ink/10 flex-shrink-0",children:[e("div",{className:"flex items-center space-x-1 text-[10px] font-mono text-ink/50 uppercase tracking-wider flex-shrink-0 select-none",children:[e(xe,{size:11,className:"text-warning"}),e("span",{children:"Quick:"})]}),ht.map((l)=>e("button",{type:"button",disabled:r,onClick:()=>t(l.cmd),className:"px-2 py-0.5 rounded text-[10px] font-mono bg-canvas hover:bg-ink/5 active:bg-ink/10 text-ink/80 hover:text-ink border border-ink/15 transition-all whitespace-nowrap disabled:opacity-40 cursor-pointer shadow-2xs",children:l.label},l.cmd))]})}var V=Object.freeze({ctrl:!1,alt:!1}),ae=[{id:"escape",label:"Esc",name:"Escape",sequence:"\x1B"},{id:"tab",label:"Tab",name:"Tab",sequence:"\t"},{id:"interrupt",label:"^C",name:"Ctrl+C — interrupt",sequence:"\x03"},{id:"left",label:"←",name:"Left arrow",csi:{prefix:"1",final:"D",application:"OD"}},{id:"up",label:"↑",name:"Up arrow",csi:{prefix:"1",final:"A",application:"OA"}},{id:"down",label:"↓",name:"Down arrow",csi:{prefix:"1",final:"B",application:"OB"}},{id:"right",label:"→",name:"Right arrow",csi:{prefix:"1",final:"C",application:"OC"}},{id:"home",label:"Home",name:"Home",csi:{prefix:"1",final:"H",application:"OH",terminfo:"\x1BOH"}},{id:"end",label:"End",name:"End",csi:{prefix:"1",final:"F",application:"OF",terminfo:"\x1BOF"}},{id:"pageUp",label:"PgUp",name:"Page up",csi:{prefix:"5",final:"~"}},{id:"pageDown",label:"PgDn",name:"Page down",csi:{prefix:"6",final:"~"}},{id:"delete",label:"Del",name:"Delete",csi:{prefix:"3",final:"~"}},{id:"shiftTab",label:"⇧Tab",name:"Shift+Tab",sequence:"\x1B[Z"},{id:"eof",label:"^D",name:"Ctrl+D — end of input",sequence:"\x04"},{id:"clear",label:"^L",name:"Ctrl+L — clear screen",sequence:"\f"}],se=[{id:"pipe",label:"|",name:"Pipe",sequence:"|"},{id:"tilde",label:"~",name:"Tilde",sequence:"~"},{id:"dollar",label:"$",name:"Dollar",sequence:"$"},{id:"asterisk",label:"*",name:"Asterisk",sequence:"*"},{id:"question",label:"?",name:"Question mark",sequence:"?"},{id:"underscore",label:"_",name:"Underscore",sequence:"_"},{id:"backslash",label:"\\",name:"Backslash",sequence:"\\"},{id:"slash",label:"/",name:"Slash",sequence:"/"},{id:"minus",label:"-",name:"Minus",sequence:"-"},{id:"equals",label:"=",name:"Equals",sequence:"="},{id:"plus",label:"+",name:"Plus",sequence:"+"},{id:"ampersand",label:"&",name:"Ampersand",sequence:"&"},{id:"semicolon",label:";",name:"Semicolon",sequence:";"},{id:"colon",label:":",name:"Colon",sequence:":"},{id:"comma",label:",",name:"Comma",sequence:","},{id:"dot",label:".",name:"Period",sequence:"."},{id:"at",label:"@",name:"At sign",sequence:"@"},{id:"percent",label:"%",name:"Percent",sequence:"%"},{id:"caret",label:"^",name:"Caret",sequence:"^"},{id:"hash",label:"#",name:"Hash",sequence:"#"},{id:"bang",label:"!",name:"Exclamation mark",sequence:"!"},{id:"parenOpen",label:"(",name:"Open parenthesis",sequence:"("},{id:"parenClose",label:")",name:"Close parenthesis",sequence:")"},{id:"bracketOpen",label:"[",name:"Open bracket",sequence:"["},{id:"bracketClose",label:"]",name:"Close bracket",sequence:"]"},{id:"braceOpen",label:"{",name:"Open brace",sequence:"{"},{id:"braceClose",label:"}",name:"Close brace",sequence:"}"},{id:"lessThan",label:"<",name:"Less than",sequence:"<"},{id:"greaterThan",label:">",name:"Greater than",sequence:">"},{id:"quote",label:"'",name:"Single quote",sequence:"'"},{id:"doubleQuote",label:'"',name:"Double quote",sequence:'"'},{id:"backtick",label:"`",name:"Backtick",sequence:"`"}],Se={};for(let t of[...ae,...se])Se[t.id]=t;function Re(t,r={}){let l=Se[t];if(!l)return"";let c=r.modifiers??V;if(l.csi)return yt(l.csi,c,r.applicationCursorKeys??!1);let u=l.sequence??"";return c.alt?`\x1B${u}`:u}function yt(t,r,l){let c=gt(r);if(c!==null)return`\x1B[${t.prefix};${c}${t.final}`;if(t.terminfo)return t.terminfo;if(l&&t.application)return`\x1B${t.application}`;return`\x1B[${t.prefix==="1"?"":t.prefix}${t.final}`}function gt(t){let r=(t.alt?2:0)|(t.ctrl?4:0);return r===0?null:r+1}function ke(t,r){if(t.length!==1)return t;let l=t;if(r.ctrl)l=wt(l)??l;if(r.alt)l=`\x1B${l}`;return l}var Tt={"@":"\x00"," ":"\x00","":"\b","[":"\x1B","\\":"\x1C","]":"\x1D","^":"\x1E",_:"\x1F","?":""};function wt(t){if(t.length!==1)return null;let r=t.charCodeAt(0);if(r>=97&&r<=122)return String.fromCharCode(r-96);if(r>=65&&r<=90)return String.fromCharCode(r-64);return Tt[t]??null}var vt=[{modifier:"ctrl",label:"Ctrl",name:"Ctrl — applies to the next key"},{modifier:"alt",label:"Alt",name:"Alt / meta — applies to the next key"}],Q="flex items-center justify-center h-8 min-w-8 px-1.5 rounded border font-mono transition-colors cursor-pointer select-none disabled:opacity-40 disabled:cursor-default text-[11px] @[420px]:h-9 @[420px]:min-w-10 @[420px]:text-xs",Z="bg-canvas text-ink/80 border-ink/15 hover:text-ink hover:bg-ink/5 active:bg-ink/10",Ee="bg-ink text-canvas border-ink";function Me({modifiers:t,onToggleModifier:r,onKey:l,onCopy:c,onPaste:u,disabled:b}){let[p,h]=n(!1),[v,R]=n(null),E=t.ctrl||t.alt,k=(S)=>{R(S),setTimeout(()=>R((P)=>P===S?null:P),1500)},O=async()=>{k(await c()?"copied":"empty")},M=async()=>{if(!await u())k("pasteFailed")};return e("div",{className:"@container flex flex-col gap-1 px-2 py-1.5 border-t border-ink/10 bg-paper flex-shrink-0",onPointerDown:(S)=>S.preventDefault(),children:[e("div",{className:"flex flex-wrap items-center gap-1",children:[vt.map(({modifier:S,label:P,name:A})=>e("button",{type:"button",onClick:()=>r(S),"aria-pressed":t[S],title:A,"aria-label":A,className:`${Q} ${t[S]?Ee:Z}`,children:P},S)),E&&e("span",{className:"text-[10px] font-mono text-ink/50 px-0.5 whitespace-nowrap","aria-hidden":!0,children:"next"}),e("span",{className:"w-px h-5 bg-ink/15 flex-shrink-0","aria-hidden":!0}),e("button",{type:"button",onClick:O,disabled:b,title:v==="empty"?"Nothing selected":"Copy selection","aria-label":"Copy selection",className:`${Q} ${v==="empty"?"bg-warning/10 text-warning border-warning/30":Z}`,children:[v==="copied"?e(f,{size:13}):e(ge,{size:13}),e("span",{className:"pl-1",children:"Copy"})]}),e("button",{type:"button",onClick:M,disabled:b,title:v==="pasteFailed"?"Clipboard unavailable":"Paste into the shell","aria-label":"Paste into the shell",className:`${Q} ${v==="pasteFailed"?"bg-error/10 text-error border-error/30":Z}`,children:[e(ko,{size:13}),e("span",{className:"pl-1",children:"Paste"})]}),e("button",{type:"button",onClick:()=>h((S)=>!S),"aria-pressed":p,title:p?"Show control keys":"Show symbols","aria-label":p?"Show control keys":"Show symbols",className:`${Q} ml-auto ${p?Ee:Z}`,children:p?"ABC":"123"})]}),e("div",{className:"flex flex-wrap items-center gap-1",children:(p?se:ae).map((S)=>e("button",{type:"button",disabled:b,onClick:()=>l(S.id),title:S.name,"aria-label":S.name,className:`${Q} ${Z}`,children:S.label},S.id))})]})}function Ae(t){if(!t.startsWith("\x1B[M")||t.length<6)return{text:t};let r=new Uint8Array(t.length);for(let l=0;l<t.length;l+=1)r[l]=t.charCodeAt(l)&255;return{bytes:r}}function Fe(t){let r=on(t),{canvas:l,ink:c,paper:u}=r,b=(h)=>Sr(h,c,0.2),p=(h)=>Sr(l,c,h);return{background:"transparent",foreground:c,cursor:r.meta,cursorAccent:u,selectionBackground:p(0.28),selectionForeground:c,black:p(0.2),red:r.error,green:r.success,yellow:r.warning,blue:r.info,magenta:r.meta,cyan:Sr(r.info,r.success,0.5),white:p(0.75),brightBlack:p(0.5),brightRed:b(r.error),brightGreen:b(r.success),brightYellow:b(r.warning),brightBlue:b(r.info),brightMagenta:b(r.meta),brightCyan:b(Sr(r.info,r.success,0.5)),brightWhite:p(0.92)}}var ee="Fira Code",St="'FiraCode Nerd Font Mono', 'FiraCode Nerd Font', 'JetBrainsMono Nerd Font', 'JetBrainsMono NF', 'JetBrains Mono Nerd Font', 'Hack Nerd Font', 'MesloLGS NF', 'MesloLGM Nerd Font', 'CaskaydiaCove Nerd Font', 'SauceCodePro Nerd Font', 'Symbols Nerd Font Mono', 'Symbols Nerd Font', 'PowerlineSymbols'",Le="Kabmo Nerd Symbols",Ie=[ee,Le],te=`'${ee}', ${St}, '${Le}', Menlo, Monaco, 'Courier New', monospace`,z=12,Ct=16,Rt=1e4;function kt(t,r){return Math.max(1,t)*Math.max(1,r)*Ct}var Ne=kt(Rt,100);var Et=2000;async function Pe(){if(typeof document>"u"||!document.fonts?.load)return;let t=Promise.withResolvers(),r=setTimeout(t.resolve,Et);try{await Promise.race([document.fonts.load(`${z}px "${ee}"`).then(()=>{return},()=>{return}),t.promise])}finally{clearTimeout(r)}}function De(t){if(typeof document>"u"||!document.fonts)return()=>{};let r=new Set(Ie),l=(c)=>{if([...c.fontfaces].some((b)=>r.has(b.family.replace(/['"]/g,"").trim())))t()};return document.fonts.addEventListener("loadingdone",l),()=>document.fonts.removeEventListener("loadingdone",l)}var _e=2.5,Mt=1;function Ft(t,r){let l=t*0.8,c=t*0.2,u=Math.ceil(t*0.6),b=l,p=c,h=typeof document>"u"?null:document.createElement("canvas").getContext("2d");if(h){h.font=`${t}px ${r}`,u=Math.ceil(h.measureText("M").width)||u;let v=h.measureText("Mg");b=v.actualBoundingBoxAscent||l,p=v.actualBoundingBoxDescent||c}return{width:u,height:Math.ceil(b+p+_e+Mt),baseline:Math.round(b+_e)}}function Be(t){let r=t.renderer;if(!r)return;r.measureFont=()=>Ft(t.options.fontSize??z,t.options.fontFamily??te),r.remeasureFont()}function Ke(t){let r=t.renderer;if(!r||!t.wasmTerm)return;r.setFontSize(t.options.fontSize??z),r.resize(t.cols,t.rows),r.render(t.wasmTerm,!0,t.viewportY,t)}function Lt(t){let{cols:r,rows:l,attached:c,committed:u}=t;if(r<10||l<5)return{kind:"ignore"};if(!c)return{kind:"attach",cols:r,rows:l};if(r===u.cols&&l===u.rows)return{kind:"ignore"};return{kind:"change",cols:r,rows:l}}function Ue(t){let r={cols:0,rows:0},l=!1,c,u=()=>{if(!t.fit())return;let b=t.current();if(!b)return;let p=Lt({cols:b.cols,rows:b.rows,attached:l,committed:r});if(p.kind==="ignore")return;if(r={cols:p.cols,rows:p.rows},p.kind==="attach"){l=!0,t.onReady(p.cols,p.rows);return}t.onGridChange(p.cols,p.rows)};return{schedule(){clearTimeout(c),c=setTimeout(u,120)},restate(){r={cols:0,rows:0}},isAttached:()=>l,dispose(){clearTimeout(c),c=void 0}}}function qe(t,r){if(r.type!=="keydown"||!r.shiftKey)return!1;if(r.key==="PageUp")return t.scrollPages(-1),!0;if(r.key==="PageDown")return t.scrollPages(1),!0;if(r.key==="Home")return t.scrollToTop(),!0;if(r.key==="End")return t.scrollToBottom(),!0;if(r.key==="ArrowUp")return t.scrollLines(-1),!0;if(r.key==="ArrowDown")return t.scrollLines(1),!0;return!1}function He(t,r){let l=0,c=(b)=>{if(b.touches.length===1)l=b.touches[0].clientY},u=(b)=>{if(b.touches.length!==1)return;let p=l-b.touches[0].clientY;if(Math.abs(p)<16)return;r()?.scrollLines(Math.trunc(p/16)),l=b.touches[0].clientY};return t.addEventListener("touchstart",c,{passive:!0}),t.addEventListener("touchmove",u,{passive:!0}),()=>{t.removeEventListener("touchstart",c),t.removeEventListener("touchmove",u)}}function It(t){if(t.viewportY<=0&&!t.hasSelection&&!t.pointerHeld)return null;return t.scrollback-t.viewportY}function Nt(t){let r=t.scrollback-t.top;return r>0?r:null}function $e(t){let r={pointerHeld:!1},l=()=>{r.pointerHeld=!0},c=()=>{r.pointerHeld=!1};return t.addEventListener("pointerdown",l,!0),globalThis.addEventListener("pointerup",c),globalThis.addEventListener("pointercancel",c),{get pointerHeld(){return r.pointerHeld},stop(){t.removeEventListener("pointerdown",l,!0),globalThis.removeEventListener("pointerup",c),globalThis.removeEventListener("pointercancel",c)}}}function Ge(t,r,l){let c=It({scrollback:t.getScrollbackLength(),viewportY:t.getViewportY(),hasSelection:t.hasSelection(),pointerHeld:r.pointerHeld});if(l(),c===null)return;let u=Nt({scrollback:t.getScrollbackLength(),top:c});if(u===null)return;let b=u-t.getViewportY();if(b===0)return;try{t.scrollLines(-b)}catch{}}function Ye(t,r){let l=(c)=>{let u=r();if(!u)return;if(c.preventDefault(),c.clipboardData)c.clipboardData.setData("text/plain",u);else xt(u)};return t.addEventListener("copy",l),()=>t.removeEventListener("copy",l)}function ze(t,r){let l=(c)=>{if(!c.ctrlKey||!c.shiftKey||c.altKey)return;if(c.code==="KeyC"){let u=r.getSelection();if(!u)return;c.preventDefault(),c.stopImmediatePropagation(),xt(u);return}if(c.code==="KeyV")c.preventDefault(),c.stopImmediatePropagation(),qp().then((u)=>{if(u)r.paste(u)})};return t.addEventListener("keydown",l,!0),()=>t.removeEventListener("keydown",l,!0)}function Xe(t){if(ts()&&t.textarea)t.textarea.focus();else t.focus()}function We(t){if(ts())t.textarea?.focus()}function Ve(t,r){let l=(c)=>{if(c.target!==t||!ts())return;r.textarea?.focus()};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)}function _t(t,r,l){if(!l.width||!l.height)return null;return{cols:Math.max(2,Math.floor(t/l.width)),rows:Math.max(1,Math.floor(r/l.height))}}function Qe(t,r){let l=t;l.proposeDimensions=()=>{let c=r.element,u=r.renderer?.getMetrics();if(!c||!u)return;let b=getComputedStyle(c),p=(parseFloat(b.paddingLeft)||0)+(parseFloat(b.paddingRight)||0),h=(parseFloat(b.paddingTop)||0)+(parseFloat(b.paddingBottom)||0);return _t(c.clientWidth-p,c.clientHeight-h,u)??void 0}}function le(t,r,l,c,u){let b=new t.Terminal({cursorBlink:!0,cursorStyle:"block",fontSize:z,fontFamily:te,theme:Fe(c),scrollback:Ne,smoothScrollDuration:0,ghostty:r});if(b.open(l),Be(b),b.clear(),l.clientWidth>0)We(b);let p=new t.FitAddon;b.loadAddon(p),Qe(p,b);let h={term:b,fitAddon:p,disposables:[]};return u(h),h}function ce(t){if(!t)return;for(let r of t.disposables)try{r.dispose()}catch{}try{t.fitAddon.dispose()}catch{}try{t.term.dispose()}catch{}}async function Ze(t,r,l,c){let u=await import("./ghostty-web-22pdvhta.js"),[b]=await Promise.all([u.Ghostty.load(),Pe()]);if(c())return null;let p=r,h=null,v=!1,R,E=null,k=!1,O=(T)=>{let{term:g}=T;g.attachCustomKeyEventHandler((L)=>qe(g,L)),T.disposables.push({dispose:Ye(t,()=>g.getSelection())},{dispose:ze(t,{getSelection:()=>g.getSelection(),paste:(L)=>g.paste(L)})},{dispose:Ve(t,g)},g.onScroll((L)=>l.onScrolledUpChange(L>0)),g.onData((L)=>{let B=Ae(L);if(B.bytes)l.onBinaryInput(B.bytes);else l.onInput(B.text)}),g.onResize(()=>{if(v)return;A.schedule()}))},M=()=>{if(k)return!1;if(t.clientWidth<=0||t.clientHeight<=0)return!1;let T=h?.term.renderer?.getMetrics();if(!T?.width||!T.height)return!1;try{return h?.fitAddon.fit(),!0}catch{return!1}},S=()=>{if(k)return;v=!1,M(),A.restate(),A.schedule()},P=(T,g,L)=>{let B=h?.term;if(!B)return;if(v=!0,B.cols!==g||B.rows!==L)B.resize(g,L);if(T.length===0){requestAnimationFrame(S);return}B.write(T,S)},A=Ue({current:()=>h?.term,fit:M,onReady:l.onReady,onGridChange:l.onGridChange}),y=$e(t);h=le(u,b,t,p,O),M(),A.schedule();let w=new ResizeObserver(()=>{clearTimeout(R),R=setTimeout(()=>{M(),A.schedule()},35)});w.observe(t);let D=De(()=>{let T=h?.term;if(!T)return;Ke(T),M(),A.schedule()}),F=He(t,()=>h?.term??null);return E=requestAnimationFrame(()=>{M(),A.schedule()}),{write(T){let g=h?.term;if(!g)return;Ge(g,y,()=>g.write(T))},writeReplay:P,reset(){let T=h?.term;if(!T)return;T.reset(),T.clear(),M()},focus(){let T=h?.term;if(T)Xe(T)},applicationCursorKeys(){return h?.term.wasmTerm?.getMode(1,!1)??!1},getSelection(){return h?.term.getSelection()??""},paste(T){h?.term.paste(T)},scrollToBottom(){h?.term.scrollToBottom()},setTheme(T){if(k||T===p)return;p=T,ce(h),h=le(u,b,t,T,O),M()},dispose(){if(k=!0,E!==null)cancelAnimationFrame(E);clearTimeout(R),A.dispose(),D(),F(),y.stop(),w.disconnect(),ce(h),h=null}}}function Je(){let t=null,r=!1;return{request(){if(t)t();else r=!0},attach(l){if(t=l,!r)return;r=!1,l()},detach(){t=null,r=!1}}}var ue=js(({onInput:t,onBinaryInput:r,onGridChange:l,onReady:c,onReattach:u},b)=>{let{theme:p}=tm(),h=i(null),v=i(null),[R,E]=n(!1),k=i(null);if(!k.current)k.current=Je();let O=k.current,M=i(t);M.current=t;let S=i(r);S.current=r;let P=i(l);P.current=l;let A=i(c);A.current=c;let y=i(u);y.current=u;let w=i(p);w.current=p,o(()=>{let F=v.current;if(!F)return;F.setTheme(p),y.current?.()},[p]),yo(b,()=>({write(F){v.current?.write(F)},writeReplay(F,T,g){v.current?.writeReplay(F,T,g)},reset(){v.current?.reset()},focus(){O.request()},applicationCursorKeys(){return v.current?.applicationCursorKeys()??!1},getSelection(){return v.current?.getSelection()??""},paste(F){v.current?.paste(F)}}),[]);let D=a(()=>{v.current?.scrollToBottom(),E(!1)},[]);return o(()=>{let F=h.current;if(!F)return;let T=!1;return Ze(F,w.current,{onInput:(g)=>M.current(g),onBinaryInput:(g)=>S.current(g),onGridChange:(g,L)=>P.current(g,L),onReady:(g,L)=>A.current(g,L),onScrolledUpChange:E},()=>T).then((g)=>{if(!g)return;if(T){g.dispose();return}v.current=g,F.querySelector("textarea")?.setAttribute("data-terminal-input",""),O.attach(()=>v.current?.focus())}),()=>{T=!0,O.detach(),v.current?.dispose(),v.current=null}},[]),e("div",{className:"relative flex-1 w-full h-full overflow-hidden p-2",children:[e("div",{ref:h,"data-terminal-root":"",className:"kabmo-terminal w-full h-full cursor-text",style:{height:"100%",width:"100%"}}),R&&e("button",{type:"button",onClick:D,className:"absolute bottom-3 right-4 z-20 flex items-center space-x-1.5 px-2.5 py-1 bg-paper hover:bg-canvas text-ink border border-ink/20 rounded-full shadow-lg text-[11px] font-mono transition-all animate-fade-in cursor-pointer active:scale-95",title:"Scroll to latest output (Shift+End)",children:[e(qr,{size:12,className:"text-warning"}),e("span",{children:"Latest"})]})]})});ue.displayName="RealtimeTerminalView";var me=new TextEncoder;function pr({className:t="",enabled:r=!0,rootPath:l,showHeader:c=!0,active:u=!0,tabsMode:b=!1}){let p=i(null),{isDark:h}=tm(),v=ns(),R=i(null),E=lc(R),[k,O]=n(V),{activeRepo:M,setActiveRepo:S}=fr(l),{repos:P,scanning:A,rescan:y}=gr(l,r),w=i(null),D=i(k);D.current=k;let F=a((C)=>{p.current?.write(C)},[]);o(()=>{if(!u||!r){cc();return}p.current?.focus()},[u,r]);let T=a((C,N)=>{p.current?.writeReplay(C,N.replayCols,N.replayRows)},[]),g=a(()=>{p.current?.reset()},[]),{status:L,shell:B,exitCode:X,error:G,attach:H,resize:Y,input:q,restart:J,reattach:j}=ye({visible:u&&r,root:r?l:void 0,repo:M,theme:h?"dark":"light",onOutput:F,onReplay:T,onRestart:g}),ne=a((C,N)=>{w.current={cols:C,rows:N},H(C,N)},[H]),I=a((C,N)=>{let re=w.current;if(w.current={cols:C,rows:N},!re)return;Y(C,N)},[Y]),K=a((C)=>{let N=D.current,re=N.ctrl||N.alt,it=ke(C,N);if(re&&C.length===1)O(V);q(me.encode(it))},[q]),U=a((C)=>{O((N)=>({...N,[C]:!N[C]})),p.current?.focus()},[]),W=a((C)=>{let N=Re(C,{applicationCursorKeys:p.current?.applicationCursorKeys()??!1,modifiers:D.current});if(!N)return;q(me.encode(N)),O(V),p.current?.focus()},[q]),je=a(async()=>{let C=p.current?.getSelection()??"";if(!C)return!1;return xt(C)},[]),et=a(async()=>{let C=await qp();if(C===null||C.length===0)return!1;return p.current?.paste(C),p.current?.focus(),!0},[]),tt=a((C)=>{q(C)},[q]),nt=a((C)=>{q(me.encode(`${C}\r`)),p.current?.focus()},[q]),rt=a(()=>{J()},[J]),ot=a(()=>{j()},[j]);if(!r)return e("div",{className:`flex flex-col h-full bg-paper items-center justify-center text-ink/40 ${t}`,children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})});return e("div",{ref:R,className:`flex flex-col h-full w-full bg-paper text-ink overflow-hidden ${t}`,"aria-hidden":!u,style:E>0?{paddingBottom:E}:void 0,children:[c&&e(we,{status:L,exitCode:X,rootPath:l,activeRepo:M,onSelectRepo:S,repos:P,reposScanning:A,onRefreshRepos:y,shell:B,onRestart:rt,tabsMode:b}),e(ve,{onSelectCommand:nt,disabled:L!=="running"}),G&&e("div",{className:"px-3 py-1.5 border-b border-error/20 bg-error/5 text-[11px] font-mono text-error flex-shrink-0",children:G}),e("div",{className:"flex-1 w-full min-h-0 bg-canvas overflow-hidden",children:e(ue,{ref:p,onInput:K,onBinaryInput:tt,onReady:ne,onGridChange:I,onReattach:ot})}),v&&e(Me,{modifiers:k,onToggleModifier:U,onKey:W,onCopy:je,onPaste:et,disabled:L!=="running"})]})}export{pr as TerminalPanel};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,fn=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let d=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let e of m(a))if(!j.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0})}if(g)h.set(a,d);return d};var Tn=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var xn=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var
|
|
3
|
-
export{fn,Tn,xn,
|
|
2
|
+
var k=Object.create;var{getPrototypeOf:l,defineProperty:f,getOwnPropertyNames:m}=Object;var j=Object.prototype.hasOwnProperty;function n(a){return this[a]}var o,p,fn=(a,b,c)=>{var g=a!=null&&typeof a==="object";if(g){var h=b?o??=new WeakMap:p??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?k(l(a)):{};let d=b||!a||!a.__esModule||!j.call(a,"default")?f(c,"default",{value:a,enumerable:!0}):c;if(a&&typeof a==="object"||typeof a==="function"){for(let e of m(a))if(!j.call(d,e))f(d,e,{get:n.bind(a,e),enumerable:!0})}if(g)h.set(a,d);return d};var Tn=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var q=(a)=>a;function r(a,b){this[a]=q.bind(null,b)}var xn=(a,b)=>{for(var c in b)f(a,c,{get:b[c],enumerable:!0,configurable:!0,set:r.bind(b,c)})};var Ng=import.meta.require;
|
|
3
|
+
export{fn,Tn,xn,Ng};
|