@kabmo-labs/kabmo 0.59.0 → 0.60.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 +397 -397
- package/dist/client/static/js/{Body-jqq4654r.js → Body-p82s28sj.js} +3 -3
- package/dist/client/static/js/{CsvGrid-avw0taqb.js → CsvGrid-erc5mcvc.js} +2 -2
- package/dist/client/static/js/{DocxView-d221vr6g.js → DocxView-x3faj0jv.js} +3 -3
- package/dist/client/static/js/{DrawioView-gjsy7p01.js → DrawioView-t7fh3ens.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-949393v1.js → HtmlPreview-zy7x7jmm.js} +1 -1
- package/dist/client/static/js/ImageView-xc90jc1c.js +1 -0
- package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +2 -0
- package/dist/client/static/js/MergeDiffView-bng34cpr.js +1 -0
- package/dist/client/static/js/Modal-89jk7wff.js +60 -0
- package/dist/client/static/js/{PdfView-dzj2s6rj.js → PdfView-kqx472q7.js} +1 -1
- package/dist/client/static/js/SessionsView-6bpz1faj.js +1 -0
- package/dist/client/static/js/{SheetView-jpc178g5.js → SheetView-0n9fze50.js} +9 -9
- package/dist/client/static/js/{SvgPreview-94fap32p.js → SvgPreview-6xc6ts46.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-a6eyfzrj.js → abnfDiagram-O67JEVCF-2xdkkqwg.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-pgmyfncy.js → architectureDiagram-NJMV4G6O-ja8cx19z.js} +11 -11
- package/dist/client/static/js/{astro-ryr2ajmg.js → astro-yphdvdty.js} +1 -1
- package/dist/client/static/js/bash-bcbct9gc.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-rf51jyb2.js → blockDiagram-BEXU5L5S-ytf7s99c.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-0faj48jp.js → c4Diagram-YGBWAQC7-5a0kdx0z.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bvzsws8x.js → classDiagram-v2-NBCMYWYE-hd98dvjw.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-j1amnd3m.js → cose-bilkent-JH36ORCC-man3fqcj.js} +1 -1
- package/dist/client/static/js/cpp-a1q64mke.js +1 -0
- package/dist/client/static/js/css-b92azee8.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-f73w6zzz.js → cynefinDiagram-VND7K2PF-2f0kbbv2.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-a5vgvjsg.js → dagre-6A5THRUB-k7pyhgzn.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-6y9efamp.js → diagram-22UHCM2B-qx0afa2m.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-2mycy7xm.js → diagram-3UASUU5V-ydpe77sv.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-10zgjb66.js → diagram-ATOU4E4O-e63v984n.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-bewa52yf.js → diagram-CDSNMT55-8c765h3a.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-mh3b7gd3.js → diagram-MLGK6HIB-3pq0n7v8.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-gvdrbdm5.js → diagram-MPIPVDR6-638atzxz.js} +2 -2
- package/dist/client/static/js/{dockerfile-6bn19kg0.js → dockerfile-yehc914q.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2prre93c.js → ebnfDiagram-ZINNZB2B-3gv43zvm.js} +1 -1
- package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-9t6t9kc6.js → elk-276RUBZZ-6s5pggfc.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-etcggr5n.js → erDiagram-OPXOYQCR-x7cqyb89.js} +3 -3
- package/dist/client/static/js/{erlang-97ayje6m.js → erlang-p5c4n3t0.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7sn6nwjv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-cdc4mwhs.js → ganttDiagram-FUAMR5RP-g97te4v1.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-55d0fa7x.js → gitGraphDiagram-X574FWY7-sw4f94tc.js} +14 -14
- package/dist/client/static/js/graphql-8d8bn59j.js +1 -0
- package/dist/client/static/js/html-6hdrwtz2.js +1 -0
- package/dist/client/static/js/{index-5e4e18tg.js → index-025s3fp8.js} +2 -2
- package/dist/client/static/js/{index-pgy7ree5.js → index-0ze5bwvw.js} +5 -5
- package/dist/client/static/js/{index-f13ern5e.js → index-111bq6rs.js} +1 -1
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/index-2n2evsg0.js +2 -0
- package/dist/client/static/js/{index-trq7bdvk.js → index-37apvxgj.js} +2 -2
- package/dist/client/static/js/{index-6bsez5n6.js → index-43gmn7yb.js} +1 -1
- package/dist/client/static/js/index-4h2zkrk1.js +2 -0
- package/dist/client/static/js/{index-xe447cw3.js → index-4xbc0j7t.js} +1 -1
- package/dist/client/static/js/index-5nm8hm4k.js +2 -0
- package/dist/client/static/js/{index-mx5y9vt9.js → index-6qn9kygb.js} +7 -7
- package/dist/client/static/js/{index-jpvng27a.js → index-8zct30zd.js} +1 -1
- package/dist/client/static/js/{index-eggbcdwx.js → index-95jfphx5.js} +197 -197
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-8z9aqgf3.js → index-9pw441wc.js} +4 -4
- package/dist/client/static/js/{index-27gwghmp.js → index-9rz6kzsv.js} +1 -1
- package/dist/client/static/js/{index-y4cx8cqf.js → index-a145x0w2.js} +2 -2
- package/dist/client/static/js/{index-mhrkjbjq.js → index-bdtftrym.js} +2 -2
- package/dist/client/static/js/index-bjz54ht6.js +1 -0
- package/dist/client/static/js/{index-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-rw84kefb.js → index-bpcg34jp.js} +2 -2
- package/dist/client/static/js/{index-f6t91mpp.js → index-bqapt2e8.js} +1 -1
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/{index-fyt8m8ah.js → index-cf69bhjx.js} +2 -2
- package/dist/client/static/js/{index-yh7gngsh.js → index-cfvc1zpk.js} +2 -2
- package/dist/client/static/js/{index-nnwcbp2d.js → index-ddkjgv5h.js} +2 -2
- package/dist/client/static/js/{index-60cxxnpk.js → index-dekvtt2a.js} +87 -87
- package/dist/client/static/js/{index-ax8gaayq.js → index-dv01prse.js} +2 -2
- package/dist/client/static/js/{index-sg65xdey.js → index-enm77k5z.js} +2 -2
- package/dist/client/static/js/{index-nf4hq5tg.js → index-excgtjhx.js} +14 -14
- package/dist/client/static/js/{index-51rbgeh9.js → index-fb2fjndj.js} +5 -5
- package/dist/client/static/js/index-fnwaxc6r.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/index-h65zrhva.js +1 -0
- package/dist/client/static/js/{index-fr91ghwb.js → index-hgfyx8dt.js} +2 -2
- package/dist/client/static/js/{index-gcad7b6g.js → index-hwdkxe4n.js} +2 -2
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/index-hxsqw7sz.js +4 -0
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-c253x7vt.js → index-ja0ajnvq.js} +7 -7
- package/dist/client/static/js/{index-2f6afhze.js → index-jfqd838j.js} +2 -2
- package/dist/client/static/js/{index-d9sfavx1.js → index-mtav0rpf.js} +2 -2
- package/dist/client/static/js/{index-58z2hatp.js → index-n8r7r86r.js} +1 -1
- package/dist/client/static/js/{index-j1ksa4x2.js → index-pdgc9ccr.js} +1 -1
- package/dist/client/static/js/{index-s9ts6qbj.js → index-pdz6j2g2.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/{index-yg38s8t3.js → index-qkqkygrf.js} +1 -1
- package/dist/client/static/js/index-qkyy563e.js +1 -0
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- package/dist/client/static/js/{index-z82nd2bd.js → index-sx83ans2.js} +2 -2
- package/dist/client/static/js/index-t6nqy2n5.css +1 -0
- package/dist/client/static/js/{index-fsa18ns9.js → index-twwsn91p.js} +2 -2
- package/dist/client/static/js/{index-nwbr15b3.js → index-v88m5sva.js} +2 -2
- package/dist/client/static/js/{index-a5ecn5yx.js → index-vcq6zfxx.js} +6 -6
- package/dist/client/static/js/{index-3akjcs82.js → index-vec7m1yd.js} +2 -2
- package/dist/client/static/js/{index-mngpcca7.js → index-vejz38qt.js} +9 -9
- package/dist/client/static/js/{index-9rvjegmy.js → index-wrk99kks.js} +2 -2
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-pa70qj4p.js → index-ywp0sd1e.js} +1 -1
- package/dist/client/static/js/{index-njhrm5qa.js → index-z8k42dwz.js} +9 -9
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-9xph6cr5.js → infoDiagram-VRGFBTTK-pw2qaa27.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-3gshs3v8.js → ishikawaDiagram-OU5B5YK6-d13jhvxy.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-fa8x56mf.js → journeyDiagram-ZHPQQLJL-20gb8a04.js} +4 -4
- package/dist/client/static/js/json-7k70qbkj.js +1 -0
- package/dist/client/static/js/jsx-sndenqrc.js +1 -0
- package/dist/client/static/js/{julia-agc5kfvg.js → julia-rpd1y9vh.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-fybp2hh4.js → kanban-definition-PNTS6WVX-s78e158c.js} +5 -5
- package/dist/client/static/js/lua-djd3g9q5.js +1 -0
- package/dist/client/static/js/markdown-r2tpvxpn.js +1 -0
- package/dist/client/static/js/{mermaid.core-jjh5ggp0.js → mermaid.core-xbm27k28.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-gtfbg619.js → mindmap-definition-NLK3R4M7-6y7xe2zm.js} +7 -7
- package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +1 -0
- package/dist/client/static/js/one-light-47y6etng.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-1a51sbqv.js → pegDiagram-GJSIUBJH-dmvewetf.js} +1 -1
- package/dist/client/static/js/{perl-v5vbtzgf.js → perl-kmtz9dnv.js} +1 -1
- package/dist/client/static/js/{php-83qwy98t.js → php-bttrsbxy.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-zd9svyyn.js → pieDiagram-5QR66LMP-1q9e7rcm.js} +2 -2
- package/dist/client/static/js/properties-brn72zdk.js +1 -0
- package/dist/client/static/js/python-g9mghwgm.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-5gtw2m6s.js → quadrantDiagram-O4NWA36T-mvrem3n6.js} +4 -4
- package/dist/client/static/js/r-e247x4mw.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3ccwpfzz.js → railroadDiagram-XR7U4H2S-axttcfhw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-sasndrrp.js → requirementDiagram-PLB6GJNP-5qx7erta.js} +12 -12
- package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
- package/dist/client/static/js/{rust-n9z2c9m3.js → rust-b3ckax3e.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2ahb4sda.js → sankeyDiagram-IPEJSGJF-es87a3j6.js} +4 -4
- package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-bfj90kz1.js → sequenceDiagram-PO4LG4MO-dgpnjrtk.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-5tygxmtc.js → sizeCapture-INFHLROL-kyw0p86n.js} +1 -1
- package/dist/client/static/js/sql-0kar81jy.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-533xw76e.js → stateDiagram-v2-GCMORJYK-vnsbw8y9.js} +3 -3
- package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-gd3d04pk.js → swimlanes-2SLR337P-060q1rep.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-fvqvgqvg.js → timeline-definition-EJHVYXUP-8a3yqmx0.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +1 -0
- package/dist/client/static/js/typescript-bm89v3gk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-tm1f0m4x.js → usecaseDiagram-POWQR4AR-18sp73v7.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-2vdvv1hd.js → vennDiagram-UO4OBE2U-gf4y1r3s.js} +5 -5
- package/dist/client/static/js/{vue-y44m889c.js → vue-hyr58df9.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-7avcjznx.js → wardleyDiagram-VNRHLVJA-q0kwmbzh.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-g39y526n.js → xychartDiagram-PMCCYNJV-y0gpmg6m.js} +6 -6
- package/dist/client/static/js/yaml-kqqktdv1.js +1 -0
- package/package.json +4 -4
- package/src/client/borders.css +28 -15
- package/src/client/components/common/Modal.tsx +10 -2
- package/src/client/components/common/Toast.tsx +8 -3
- package/src/client/components/common/anchored-menu/index.tsx +10 -3
- package/src/client/components/common/command-palette/index.tsx +9 -3
- package/src/client/components/common/fullscreen-viewer/index.tsx +1 -1
- package/src/client/components/common/header-controls/index.test.tsx +40 -3
- package/src/client/components/common/header-controls/index.tsx +106 -56
- package/src/client/components/common/search-select/search-select.test.tsx +10 -1
- package/src/client/components/common/session-row/TrailingSlot.tsx +8 -1
- package/src/client/components/common/session-row/index.tsx +4 -0
- package/src/client/components/common/session-row/session-row.test.tsx +5 -0
- package/src/client/components/common/workspace-mark/index.test.tsx +67 -0
- package/src/client/components/common/workspace-mark/index.tsx +48 -0
- package/src/client/components/layout/ActivityBar.test.ts +1 -1
- package/src/client/components/layout/ActivityBarDrag.test.ts +1 -1
- package/src/client/components/layout/LeftActivityBar.test.ts +48 -3
- package/src/client/components/layout/LeftDock.tsx +33 -14
- package/src/client/components/layout/PanelButton.test.tsx +119 -0
- package/src/client/components/layout/PanelButton.tsx +2 -4
- package/src/client/components/layout/activity-bar/Row.tsx +125 -0
- package/src/client/components/layout/{ActivityBar.tsx → activity-bar/index.tsx} +81 -20
- package/src/client/components/layout/controls-bar/index.tsx +183 -0
- package/src/client/components/layout/desktop-layout/BarSlot.tsx +18 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.test.tsx +187 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +81 -64
- package/src/client/components/layout/desktop-layout/LeftRail.tsx +60 -0
- package/src/client/components/layout/desktop-layout/LeftTabsColumn.tsx +91 -0
- package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +19 -3
- package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +60 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +77 -28
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +114 -104
- package/src/client/components/layout/desktop-layout/index.tsx +48 -45
- package/src/client/components/layout/desktop-layout/resizer/index.tsx +25 -83
- package/src/client/components/layout/desktop-layout/resizer/panel-motion.ts +61 -0
- package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +40 -2
- package/src/client/components/layout/desktop-layout/resizer/separator.tsx +89 -0
- package/src/client/components/layout/left-bar/index.tsx +88 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +5 -2
- package/src/client/components/layout/session-sidebar/Footer.tsx +28 -11
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +167 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +2 -2
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +8 -3
- package/src/client/components/layout/session-sidebar/footer-host.test.tsx +133 -0
- package/src/client/components/layout/session-sidebar/modern/RevealRow.tsx +36 -5
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +5 -2
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -0
- package/src/client/components/layout/session-sidebar/modern/reveal-row.test.tsx +28 -1
- package/src/client/components/layout/session-title-bar/index.tsx +199 -0
- package/src/client/components/layout/top-bars.test.tsx +338 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +13 -2
- package/src/client/components/mobile/SessionSidebar.tsx +10 -8
- package/src/client/components/mobile/drawer-layout.test.tsx +67 -0
- package/src/client/components/mobile/drawer-strip.tsx +37 -14
- package/src/client/components/mobile/left-drawer-nav.test.tsx +19 -127
- package/src/client/components/settings/LazyModal.tsx +8 -2
- package/src/client/components/settings/Modal.tsx +6 -2
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +1 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +105 -0
- package/src/client/components/settings/categories/appearance-settings/groups.ts +3 -2
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +8 -1
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -25
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/editor/Tab.tsx +160 -0
- package/src/client/components/workspace/editor/Tabs.test.ts +40 -0
- package/src/client/components/workspace/editor/Tabs.tsx +52 -102
- package/src/client/components/workspace/editor/index.tsx +2 -0
- package/src/client/components/workspace/editor/props.ts +6 -0
- package/src/client/components/workspace/file-explorer/OutlineResize.test.tsx +225 -0
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +43 -3
- package/src/client/components/workspace/file-explorer/index.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/CloseButton.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +10 -1
- package/src/client/components/workspace/model-dropdown/Header.tsx +27 -20
- package/src/client/components/workspace/model-dropdown/Panel.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +18 -0
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +34 -4
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +48 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +163 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +18 -9
- package/src/client/components/workspace/search-panel/Body.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +205 -9
- package/src/client/floating.css +276 -0
- package/src/client/floating.test.ts +151 -0
- package/src/client/hooks/chat/timeline/session-pagination.ts +13 -9
- package/src/client/hooks/editor/use-outline-resize.ts +145 -0
- package/src/client/hooks/ui/border-style.test.ts +19 -7
- package/src/client/hooks/ui/border-style.ts +2 -3
- package/src/client/hooks/ui/chrome-style.test.ts +140 -0
- package/src/client/hooks/ui/chrome-style.ts +75 -0
- package/src/client/hooks/ui/media-query.ts +29 -0
- package/src/client/hooks/ui/presence.test.ts +104 -0
- package/src/client/hooks/ui/presence.ts +62 -0
- package/src/client/hooks/ui/style-attributes.test.ts +7 -6
- package/src/client/hooks/ui/surface-style.ts +2 -2
- package/src/client/hooks/ui/titlebar-inset.test.ts +56 -0
- package/src/client/hooks/ui/titlebar-inset.ts +31 -0
- package/src/client/hooks/workspace/available-width.ts +25 -1
- package/src/client/hooks/workspace/panel-peek.test.ts +124 -0
- package/src/client/hooks/workspace/panel-peek.ts +151 -0
- package/src/client/hooks/workspace/panel-rail.test.ts +86 -0
- package/src/client/hooks/workspace/panel-rail.ts +108 -0
- package/src/client/hooks/workspace/panel-resize.ts +8 -2
- package/src/client/hooks/workspace/rail-peek.test.ts +119 -0
- package/src/client/hooks/workspace/rail-peek.ts +68 -0
- package/src/client/hooks/workspace/right-panel-card.test.ts +71 -0
- package/src/client/hooks/workspace/right-panel-card.ts +69 -0
- package/src/client/hooks/workspace/right-panel-geometry.ts +172 -0
- package/src/client/hooks/workspace/right-side.ts +7 -0
- package/src/client/lib/desktop/titlebar.test.ts +6 -0
- package/src/client/lib/desktop/titlebar.ts +16 -0
- package/src/client/main.tsx +11 -0
- package/src/client/motion.test.ts +36 -0
- package/src/client/tailwind.css +67 -0
- package/src/server/lib/assets/shell-attributes.server.ts +14 -4
- package/src/server/lib/assets/shell-attributes.test.ts +35 -21
- package/src/server/lib/bundler/titlebar-css.test.ts +3 -2
- package/src/server/lib/realtime/topics/peer-relay.server.test.ts +19 -3
- package/src/server/lib/updates/omp.test.ts +40 -1
- package/src/server/lib/updates/omp.ts +29 -2
- package/src/server/plugins/ssr.ts +2 -0
- package/src/server/routes/settings/mcp.test.ts +16 -0
- package/src/server/routes/settings/mcp.ts +4 -0
- package/src/shared/lib/code/outline/resize.test.ts +57 -0
- package/src/shared/lib/code/outline/resize.ts +67 -0
- package/src/shared/lib/models/provider/glyph.test.ts +3 -1
- package/src/shared/lib/models/provider/glyph.ts +1 -0
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +103 -3
- package/src/shared/lib/omp/config/schema.test.ts +9 -0
- package/src/shared/lib/omp/config/schema.ts +8 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/theme/border-style.test.ts +12 -14
- package/src/shared/lib/theme/border-style.ts +25 -18
- package/src/shared/lib/theme/chrome-style.test.ts +31 -0
- package/src/shared/lib/theme/chrome-style.ts +74 -0
- package/src/shared/lib/theme/surface-style.test.ts +4 -5
- package/src/shared/lib/theme/surface-style.ts +6 -5
- package/src/shared/lib/ui/motion.ts +29 -0
- package/src/shared/lib/workspace/floating-chrome.ts +23 -0
- package/src/shared/lib/workspace/session-state/store.ts +3 -0
- package/src/shared/lib/workspace/workspace-panel-widths.test.ts +73 -0
- package/src/shared/lib/workspace/workspace-panel-widths.ts +79 -17
- package/src/shared/types/settings/state.ts +10 -9
- package/src/test-support/left-drawer-harness.test-util.ts +169 -0
- package/src/test-support/peer-harness.ts +44 -36
- package/dist/client/static/js/ImageView-pan9pqtm.js +0 -1
- package/dist/client/static/js/LayoutWrapper-p0qmghgt.js +0 -2
- package/dist/client/static/js/MergeDiffView-swt467g7.js +0 -1
- package/dist/client/static/js/Modal-4spmcn44.js +0 -60
- package/dist/client/static/js/SessionsView-b6szjdg5.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +0 -1
- package/dist/client/static/js/bash-zknkkwkw.js +0 -1
- package/dist/client/static/js/c-0w02jkxb.js +0 -1
- package/dist/client/static/js/cpp-p5b4vean.js +0 -1
- package/dist/client/static/js/css-9jzbvdyz.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7c2ncsw7.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +0 -1
- package/dist/client/static/js/graphql-xzykn0ba.js +0 -1
- package/dist/client/static/js/html-2zc3shky.js +0 -1
- package/dist/client/static/js/index-537m8a3x.js +0 -2
- package/dist/client/static/js/index-me0b6wkw.js +0 -1
- package/dist/client/static/js/index-mttx9327.css +0 -1
- package/dist/client/static/js/index-pe5f2gmn.js +0 -1
- package/dist/client/static/js/index-pzwf6hwe.js +0 -4
- package/dist/client/static/js/index-skvfxcd8.js +0 -1
- package/dist/client/static/js/index-sx2yz2wx.js +0 -1
- package/dist/client/static/js/index-wwyjzhgs.js +0 -2
- package/dist/client/static/js/index-y09de44h.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +0 -1
- package/dist/client/static/js/ini-62r3vxaf.js +0 -1
- package/dist/client/static/js/java-kacycary.js +0 -1
- package/dist/client/static/js/json-yrwpn6bd.js +0 -1
- package/dist/client/static/js/jsx-b40ag8q1.js +0 -1
- package/dist/client/static/js/lua-bk961f37.js +0 -1
- package/dist/client/static/js/markdown-b7rgzgd6.js +0 -1
- package/dist/client/static/js/one-dark-pro-vht9rv39.js +0 -1
- package/dist/client/static/js/one-light-arxc5whh.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +0 -1
- package/dist/client/static/js/properties-k8gbzggp.js +0 -1
- package/dist/client/static/js/python-343tspad.js +0 -1
- package/dist/client/static/js/r-ycdwmv8g.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +0 -1
- package/dist/client/static/js/sql-kwpd5w07.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xxmvdyg4.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +0 -1
- package/dist/client/static/js/typescript-4dchbnya.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +0 -1
- package/dist/client/static/js/xml-xs6qz3ya.js +0 -1
- package/dist/client/static/js/yaml-174nk5bn.js +0 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +0 -238
- package/src/client/components/layout/session-sidebar/Header.test.ts +0 -98
- package/src/client/components/layout/session-sidebar/Header.tsx +0 -60
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
import { afterEach, beforeEach, describe, expect, test } from 'bun:test';
|
|
16
16
|
import { executableStub } from '@/test-support/executable-stub';
|
|
17
|
+
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
|
|
17
18
|
import { tmpdir } from 'node:os';
|
|
18
|
-
import { join } from 'node:path';
|
|
19
|
+
import { delimiter, dirname, join } from 'node:path';
|
|
19
20
|
|
|
20
21
|
import { applyOmpUpdate, checkOmpUpdate } from '@/server/lib/updates/omp';
|
|
21
22
|
import { invalidateOmpCliCache } from '@kabmo-labs/kabmo-omp/cli';
|
|
@@ -24,12 +25,24 @@ import { invalidateOmpCliCache } from '@kabmo-labs/kabmo-omp/cli';
|
|
|
24
25
|
* compiled fixture is reused across runs and across answers. */
|
|
25
26
|
const STUB_SOURCE = `process.stdout.write(process.env.FAKE_OMP_VERSION_OUTPUT || '');`;
|
|
26
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Records the environment it received, then reports success. The question is
|
|
30
|
+
* whether the update child can resolve `omp` BY NAME, which is exactly what
|
|
31
|
+
* `omp update` does before it replaces anything.
|
|
32
|
+
*/
|
|
33
|
+
const UPDATE_ENV_STUB_SOURCE = `import { writeFileSync } from 'node:fs';
|
|
34
|
+
const log = process.env.FAKE_OMP_ENV_LOG;
|
|
35
|
+
if (log) writeFileSync(log, JSON.stringify({ which: Bun.which('omp') ?? null, path: process.env.PATH ?? '' }));
|
|
36
|
+
process.stdout.write('omp updated\\n');`;
|
|
37
|
+
|
|
27
38
|
/** The runner's own fetch, reached through `Bun` so a stub leaked onto the global cannot be mistaken for it. */
|
|
28
39
|
const originalFetch = Bun.fetch;
|
|
29
40
|
|
|
30
41
|
describe('omp update check', () => {
|
|
31
42
|
const realOverride = Bun.env.KABMO_OMP_BIN;
|
|
32
43
|
const realOutput = Bun.env.FAKE_OMP_VERSION_OUTPUT;
|
|
44
|
+
const realPath = Bun.env.PATH;
|
|
45
|
+
const realEnvLog = Bun.env.FAKE_OMP_ENV_LOG;
|
|
33
46
|
|
|
34
47
|
/**
|
|
35
48
|
* A stand-in binary: the check only reads `omp --version` from it.
|
|
@@ -63,6 +76,10 @@ describe('omp update check', () => {
|
|
|
63
76
|
else Bun.env.KABMO_OMP_BIN = realOverride;
|
|
64
77
|
if (realOutput === undefined) delete Bun.env.FAKE_OMP_VERSION_OUTPUT;
|
|
65
78
|
else Bun.env.FAKE_OMP_VERSION_OUTPUT = realOutput;
|
|
79
|
+
if (realPath === undefined) delete Bun.env.PATH;
|
|
80
|
+
else Bun.env.PATH = realPath;
|
|
81
|
+
if (realEnvLog === undefined) delete Bun.env.FAKE_OMP_ENV_LOG;
|
|
82
|
+
else Bun.env.FAKE_OMP_ENV_LOG = realEnvLog;
|
|
66
83
|
globalThis.fetch = originalFetch;
|
|
67
84
|
invalidateOmpCliCache();
|
|
68
85
|
});
|
|
@@ -81,6 +98,28 @@ describe('omp update check', () => {
|
|
|
81
98
|
await expect(applyOmpUpdate()).rejects.toThrow('omp binary not found');
|
|
82
99
|
});
|
|
83
100
|
|
|
101
|
+
test('the update child can resolve the binary it was launched from', async () => {
|
|
102
|
+
// A login-entry launch (launchd) hands the server this PATH, not the shell's.
|
|
103
|
+
const dir = mkdtempSync(join(tmpdir(), 'kabmo-omp-update-env-'));
|
|
104
|
+
const log = join(dir, 'env.json');
|
|
105
|
+
const stub = await executableStub(UPDATE_ENV_STUB_SOURCE, 'omp');
|
|
106
|
+
Bun.env.KABMO_OMP_BIN = stub;
|
|
107
|
+
Bun.env.FAKE_OMP_ENV_LOG = log;
|
|
108
|
+
Bun.env.PATH = '/usr/bin:/bin';
|
|
109
|
+
invalidateOmpCliCache();
|
|
110
|
+
|
|
111
|
+
try {
|
|
112
|
+
await applyOmpUpdate();
|
|
113
|
+
const seen = JSON.parse(readFileSync(log, 'utf8')) as { which: string | null; path: string };
|
|
114
|
+
// `omp update` locates its own install with which('omp'); the launcher's
|
|
115
|
+
// own directory must therefore lead the child PATH.
|
|
116
|
+
expect(seen.path.split(delimiter)[0]).toBe(dirname(stub));
|
|
117
|
+
if (process.platform !== 'win32') expect(seen.which).toBe(stub);
|
|
118
|
+
} finally {
|
|
119
|
+
rmSync(dir, { recursive: true, force: true });
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
84
123
|
test('compares the binary’s own version against the npm latest', async () => {
|
|
85
124
|
Bun.env.KABMO_OMP_BIN = await stubOmp('omp/18.6.0\n');
|
|
86
125
|
invalidateOmpCliCache();
|
|
@@ -14,12 +14,39 @@
|
|
|
14
14
|
* download, launcher retirement, verification — are omp's own.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { delimiter, dirname, resolve } from 'node:path';
|
|
18
|
+
|
|
17
19
|
import { invalidateOmpCliCache, resolveOmpBin } from '@kabmo-labs/kabmo-omp/cli';
|
|
20
|
+
import { childEnv } from '@kabmo-labs/kabmo-fs/child-env';
|
|
18
21
|
import { fetchNpmLatest, OMP_PACKAGE } from '@/server/lib/updates/npm';
|
|
19
22
|
import { pumpStream } from '@/server/lib/updates/install-steps';
|
|
20
23
|
import { isNewer } from '@kabmo-labs/kabmo-harness/update-job/semver';
|
|
24
|
+
import { withToolchainPath } from '@kabmo-labs/kabmo-sdk';
|
|
21
25
|
import type { UpdateTargetInfo } from '@kabmo-labs/kabmo-app-contracts/updates';
|
|
22
26
|
|
|
27
|
+
/**
|
|
28
|
+
* The environment an omp child gets.
|
|
29
|
+
*
|
|
30
|
+
* `omp update` resolves the install it is about to replace with
|
|
31
|
+
* `which('omp')`, not with `process.execPath`. A launchd/GUI start hands the
|
|
32
|
+
* server only `/usr/bin:/bin:/usr/sbin:/sbin`, so the absolute `bin` Kabmo
|
|
33
|
+
* spawned could not be found again by name — measured after a reboot as
|
|
34
|
+
* "Update failed: Could not resolve omp binary path in PATH" from the About
|
|
35
|
+
* modal, while the same update worked from a terminal (whose PATH has
|
|
36
|
+
* `~/.bun/bin`).
|
|
37
|
+
*
|
|
38
|
+
* The toolchain directories repair the inherited PATH; the binary's OWN
|
|
39
|
+
* directory is then put first so `which('omp')` picks this install even when
|
|
40
|
+
* another copy is also reachable. `childEnv` keeps the host credential out.
|
|
41
|
+
*/
|
|
42
|
+
function ompChildEnv(bin: string): Record<string, string | undefined> {
|
|
43
|
+
const env = withToolchainPath(childEnv({ PAGER: 'cat', FORCE_COLOR: '0' }), process.platform);
|
|
44
|
+
const self = dirname(resolve(bin));
|
|
45
|
+
const rest = (env.PATH ?? '').split(delimiter).filter((entry) => entry.length > 0 && entry !== self);
|
|
46
|
+
env.PATH = [self, ...rest].join(delimiter);
|
|
47
|
+
return env;
|
|
48
|
+
}
|
|
49
|
+
|
|
23
50
|
/** Runs a command, capturing stdout/stderr separately. Non-zero exits keep the captured output. */
|
|
24
51
|
async function runCapture(bin: string, args: string[], timeoutMs: number, maxBuffer: number): Promise<{ stdout: string; stderr: string; exitCode: number | null }> {
|
|
25
52
|
const proc = Bun.spawn({
|
|
@@ -29,7 +56,7 @@ async function runCapture(bin: string, args: string[], timeoutMs: number, maxBuf
|
|
|
29
56
|
stderr: 'pipe',
|
|
30
57
|
timeout: timeoutMs,
|
|
31
58
|
maxBuffer,
|
|
32
|
-
env:
|
|
59
|
+
env: ompChildEnv(bin),
|
|
33
60
|
});
|
|
34
61
|
const [stdout, stderr] = await Promise.all([
|
|
35
62
|
new Response(proc.stdout).text(),
|
|
@@ -132,7 +159,7 @@ export async function applyOmpUpdate(hooks: OmpUpdateHooks = {}): Promise<OmpUpd
|
|
|
132
159
|
stderr: 'pipe',
|
|
133
160
|
timeout: 300_000,
|
|
134
161
|
maxBuffer: 1024 * 1024 * 4,
|
|
135
|
-
env:
|
|
162
|
+
env: ompChildEnv(bin),
|
|
136
163
|
});
|
|
137
164
|
|
|
138
165
|
// Streamed, not buffered: `omp update` prints its stages as it goes, and the
|
|
@@ -26,6 +26,7 @@ import { applyShellDocumentFacts } from '@/server/lib/assets/shell-attributes.se
|
|
|
26
26
|
import { splitShellSettings } from '@/server/lib/assets/shell-settings.server';
|
|
27
27
|
import { SURFACE_STYLE_SETTING_KEY } from '@/shared/lib/theme/surface-style';
|
|
28
28
|
import { BORDER_STYLE_SETTING_KEY } from '@/shared/lib/theme/border-style';
|
|
29
|
+
import { CHROME_STYLE_SETTING_KEY } from '@/shared/lib/theme/chrome-style';
|
|
29
30
|
import { ICON_STYLE_SETTING_KEY } from '@/shared/lib/theme/icon-style';
|
|
30
31
|
import { windowChromeColor } from '@/shared/lib/theme/chrome';
|
|
31
32
|
import { THEME_CSS_ROUTE, customThemeStyleElement, serveThemeCss } from '@/server/lib/assets/theme-css.server';
|
|
@@ -307,6 +308,7 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
307
308
|
// frame and swaps, and a borderless one paints every separator first.
|
|
308
309
|
surfaceStyle: readSettingsBlob(settings)[SURFACE_STYLE_SETTING_KEY],
|
|
309
310
|
borderStyle: readSettingsBlob(settings)[BORDER_STYLE_SETTING_KEY],
|
|
311
|
+
chromeStyle: readSettingsBlob(settings)[CHROME_STYLE_SETTING_KEY],
|
|
310
312
|
iconStyle: readSettingsBlob(settings)[ICON_STYLE_SETTING_KEY],
|
|
311
313
|
chromeColor: chrome,
|
|
312
314
|
})
|
|
@@ -134,6 +134,22 @@ describe('MCP route write answers', () => {
|
|
|
134
134
|
expect(Object.keys(JSON.parse(fs.readFileSync(MCP_JSON, 'utf8')).mcpServers)).toEqual(['after']);
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
+
test('a hand-written platforms list survives a form save (omp 19.4.3)', async () => {
|
|
138
|
+
// Seed the file omp reads as a user would, then round-trip the item the
|
|
139
|
+
// panel holds: the form has no platforms control, and dropping the key on
|
|
140
|
+
// save would switch the server back on for every OS.
|
|
141
|
+
fs.writeFileSync(MCP_JSON, JSON.stringify({
|
|
142
|
+
mcpServers: { winonly: { command: 'bunx', args: ['x'], platforms: ['win32'] } },
|
|
143
|
+
}));
|
|
144
|
+
const listed = await (await call(mcpLoader, new Request(`${API}/mcp`))).json();
|
|
145
|
+
const item = listed.servers.find((entry: McpServerItem) => entry.name === 'winonly');
|
|
146
|
+
expect(item.platforms).toEqual(['win32']);
|
|
147
|
+
|
|
148
|
+
const res = await call(mcpAction, send('POST', { server: { ...item, timeout: 10 } }));
|
|
149
|
+
expect(res.status).toBe(200);
|
|
150
|
+
expect(JSON.parse(fs.readFileSync(MCP_JSON, 'utf8')).mcpServers.winonly.platforms).toEqual(['win32']);
|
|
151
|
+
});
|
|
152
|
+
|
|
137
153
|
test('a remote server writes type, url and headers — never env', async () => {
|
|
138
154
|
const res = await call(mcpAction, send('POST', {
|
|
139
155
|
server: {
|
|
@@ -89,6 +89,7 @@ interface McpNativePayloadSource {
|
|
|
89
89
|
timeout?: unknown;
|
|
90
90
|
requestIdFormat?: unknown;
|
|
91
91
|
instructions?: unknown;
|
|
92
|
+
platforms?: unknown;
|
|
92
93
|
auth?: unknown;
|
|
93
94
|
oauth?: unknown;
|
|
94
95
|
enabled?: unknown;
|
|
@@ -125,6 +126,9 @@ function toNativeServer(ui: McpNativePayloadSource): Record<string, unknown> {
|
|
|
125
126
|
if (typeof ui.timeout === 'number' && Number.isFinite(ui.timeout) && ui.timeout >= 0) nativeServer.timeout = ui.timeout;
|
|
126
127
|
if (ui.requestIdFormat === 'string' || ui.requestIdFormat === 'number') nativeServer.requestIdFormat = ui.requestIdFormat;
|
|
127
128
|
if (typeof ui.instructions === 'boolean') nativeServer.instructions = ui.instructions;
|
|
129
|
+
// omp 19.4.3: a `platforms` list limits the entry to those OSes. The form does
|
|
130
|
+
// not edit it, but it round-trips, so a hand-written list is not erased.
|
|
131
|
+
if (Array.isArray(ui.platforms) && ui.platforms.length > 0) nativeServer.platforms = ui.platforms.map(String);
|
|
128
132
|
const auth = credentialBlock(ui.auth);
|
|
129
133
|
if (auth) nativeServer.auth = auth;
|
|
130
134
|
const oauth = credentialBlock(ui.oauth);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The bounds behind the outline's vertical drag.
|
|
8
|
+
*
|
|
9
|
+
* Each case is a stored or dragged number that must not become a broken pane:
|
|
10
|
+
* a height above what the panel holds, a value from before the bounds existed,
|
|
11
|
+
* a panel that has not been measured yet (0), and a panel too short for the
|
|
12
|
+
* floor. The component's own test drives the pointer; this one pins the
|
|
13
|
+
* arithmetic both the pointer and the keyboard path share.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { describe, expect, test } from 'bun:test';
|
|
17
|
+
import {
|
|
18
|
+
OUTLINE_DEFAULT_HEIGHT,
|
|
19
|
+
OUTLINE_MAX_HEIGHT,
|
|
20
|
+
OUTLINE_MIN_HEIGHT,
|
|
21
|
+
OUTLINE_PANEL_RESERVE,
|
|
22
|
+
clampOutlineHeight,
|
|
23
|
+
outlineHeightCeiling,
|
|
24
|
+
} from '@/shared/lib/code/outline/resize';
|
|
25
|
+
|
|
26
|
+
describe('outlineHeightCeiling', () => {
|
|
27
|
+
test('is the panel minus its chrome, capped at the absolute maximum', () => {
|
|
28
|
+
expect(outlineHeightCeiling(OUTLINE_MAX_HEIGHT + OUTLINE_PANEL_RESERVE)).toBe(OUTLINE_MAX_HEIGHT);
|
|
29
|
+
expect(outlineHeightCeiling(700)).toBe(500);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
test('never falls below the floor, even in a panel that cannot hold it', () => {
|
|
33
|
+
expect(outlineHeightCeiling(220)).toBe(OUTLINE_MIN_HEIGHT);
|
|
34
|
+
expect(outlineHeightCeiling(0)).toBe(OUTLINE_MAX_HEIGHT);
|
|
35
|
+
expect(outlineHeightCeiling(Number.NaN)).toBe(OUTLINE_MAX_HEIGHT);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
describe('clampOutlineHeight', () => {
|
|
40
|
+
test('keeps a legal height', () => {
|
|
41
|
+
expect(clampOutlineHeight(300, 500)).toBe(300);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('raises below the floor and lowers above the ceiling', () => {
|
|
45
|
+
expect(clampOutlineHeight(10, 500)).toBe(OUTLINE_MIN_HEIGHT);
|
|
46
|
+
expect(clampOutlineHeight(900, 500)).toBe(500);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
test('an unknown value becomes the default instead of NaN in a style', () => {
|
|
50
|
+
expect(clampOutlineHeight(Number.NaN, 500)).toBe(OUTLINE_DEFAULT_HEIGHT);
|
|
51
|
+
expect(clampOutlineHeight(240.4, 500)).toBe(240);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('a ceiling below the floor still leaves a legal pane', () => {
|
|
55
|
+
expect(clampOutlineHeight(400, 1)).toBe(OUTLINE_MIN_HEIGHT);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Files panel's outline is a vertically resizable pane.
|
|
8
|
+
*
|
|
9
|
+
* The section used to cap its list at a constant (`max-h-48`): a file with ten
|
|
10
|
+
* declarations and one with the 500-row window got the same 12rem, and the
|
|
11
|
+
* reader could not trade tree space for outline space. The height is now a
|
|
12
|
+
* per-session value the reader drags, with bounds that keep the tree usable.
|
|
13
|
+
*
|
|
14
|
+
* The ceiling is derived from the PANEL, not the viewport: the outline lives
|
|
15
|
+
* inside a column that also holds a toolbar, its own header and the file tree,
|
|
16
|
+
* and a window-relative maximum would describe space this pane does not have.
|
|
17
|
+
* `OUTLINE_PANEL_RESERVE` is the chrome plus a minimum tree; past it the drag
|
|
18
|
+
* stops instead of squeezing the tree to nothing.
|
|
19
|
+
*
|
|
20
|
+
* Pure numbers so the drag, the keyboard step and the stored-value repair all
|
|
21
|
+
* clamp through the same function — a resize that stores 2 px must not render
|
|
22
|
+
* a 2 px pane after a reload, and a drag in a short panel must not reopen
|
|
23
|
+
* taller than the panel.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/** The height a session starts with, in px: ten visible rows at 11px. */
|
|
27
|
+
export const OUTLINE_DEFAULT_HEIGHT = 240;
|
|
28
|
+
|
|
29
|
+
/** Below this the list is a peek, not a map. */
|
|
30
|
+
export const OUTLINE_MIN_HEIGHT = 96;
|
|
31
|
+
|
|
32
|
+
/** An outline taller than this is a second editor, not a section. */
|
|
33
|
+
export const OUTLINE_MAX_HEIGHT = 640;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Space the rest of the Files panel keeps: the toolbar, the section's own
|
|
37
|
+
* header and padding, and a tree tall enough to still be a tree.
|
|
38
|
+
*/
|
|
39
|
+
export const OUTLINE_PANEL_RESERVE = 200;
|
|
40
|
+
|
|
41
|
+
/** One arrow key's step: enough to feel like a resize, small enough to aim. */
|
|
42
|
+
export const OUTLINE_KEYBOARD_STEP = 32;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The tallest body the panel can hold. A panel that has not been measured yet
|
|
46
|
+
* reports 0 (happy-dom, first render); that falls back to the absolute
|
|
47
|
+
* maximum instead of collapsing the pane to its floor.
|
|
48
|
+
*/
|
|
49
|
+
export function outlineHeightCeiling(panelHeight: number): number {
|
|
50
|
+
const panel = Number.isFinite(panelHeight) && panelHeight > 0
|
|
51
|
+
? panelHeight
|
|
52
|
+
: OUTLINE_MAX_HEIGHT + OUTLINE_PANEL_RESERVE;
|
|
53
|
+
return Math.max(
|
|
54
|
+
OUTLINE_MIN_HEIGHT,
|
|
55
|
+
Math.min(OUTLINE_MAX_HEIGHT, Math.round(panel - OUTLINE_PANEL_RESERVE)),
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A legal body height. Unknown values (a slot written by an older build, a
|
|
61
|
+
* cancelled gesture) become the default rather than `NaN` in a style.
|
|
62
|
+
*/
|
|
63
|
+
export function clampOutlineHeight(value: number, ceiling = OUTLINE_MAX_HEIGHT): number {
|
|
64
|
+
const max = Math.max(OUTLINE_MIN_HEIGHT, Math.min(OUTLINE_MAX_HEIGHT, ceiling));
|
|
65
|
+
if (!Number.isFinite(value)) return Math.min(OUTLINE_DEFAULT_HEIGHT, max);
|
|
66
|
+
return Math.min(max, Math.max(OUTLINE_MIN_HEIGHT, Math.round(value)));
|
|
67
|
+
}
|
|
@@ -29,7 +29,7 @@ const PROVIDER_IDS = [
|
|
|
29
29
|
'devin', 'firepass', 'fireworks', 'github-copilot', 'gitlab-duo', 'gitlab-duo-agent', 'gmi-cloud',
|
|
30
30
|
'google', 'google-antigravity', 'google-gemini-cli', 'google-vertex', 'groq', 'huggingface', 'kilo',
|
|
31
31
|
'kimi-code', 'kimi-code-global', 'litellm', 'llama.cpp', 'lm-studio', 'local', 'meta', 'minimax',
|
|
32
|
-
'minimax-code', 'minimax-code-cn', 'mistral', 'moonshot', 'muse-code', 'nanogpt', 'novita', 'nvidia',
|
|
32
|
+
'minimax-cn', 'minimax-code', 'minimax-code-cn', 'mistral', 'moonshot', 'muse-code', 'nanogpt', 'novita', 'nvidia',
|
|
33
33
|
'ollama', 'ollama-cloud', 'openai', 'openai-codex', 'opencode-go', 'opencode-zen', 'openrouter',
|
|
34
34
|
'qianfan', 'qwen-portal', 'refuseless', 'sakana',
|
|
35
35
|
'siliconflow', 'siliconflow-cn', 'singularityapi-dev', 'singularityapi-tech', 'stepfun', 'synthetic',
|
|
@@ -71,6 +71,8 @@ describe('resolveProviderGlyph', () => {
|
|
|
71
71
|
|
|
72
72
|
test('variants of one brand share that brand mark', () => {
|
|
73
73
|
expect(resolveProviderGlyph('minimax-code-cn')).toBe(resolveProviderGlyph('minimax'));
|
|
74
|
+
// omp 19.4.3's China-region PAYG provider shares MiniMax's mark.
|
|
75
|
+
expect(resolveProviderGlyph('minimax-cn')).toBe(resolveProviderGlyph('minimax'));
|
|
74
76
|
expect(resolveProviderGlyph('xiaomi-token-plan-ams')).toBe(resolveProviderGlyph('xiaomi'));
|
|
75
77
|
expect(resolveProviderGlyph('google-vertex')).toBe(resolveProviderGlyph('vertexai'));
|
|
76
78
|
expect(resolveProviderGlyph('openai-codex')).toBe(resolveProviderGlyph('codex'));
|
|
@@ -100,6 +100,7 @@ export const PROVIDER_GLYPH_ALIASES: Readonly<Record<string, string>> = {
|
|
|
100
100
|
metaai: 'metaai',
|
|
101
101
|
microsoftazure: 'azure',
|
|
102
102
|
minimax: 'minimax',
|
|
103
|
+
minimaxcn: 'minimax',
|
|
103
104
|
minimaxcode: 'minimax',
|
|
104
105
|
minimaxcodecn: 'minimax',
|
|
105
106
|
mistral: 'mistral',
|
|
@@ -55,10 +55,110 @@ describe('OMP_SCHEMA release rows (19.4.0+)', () => {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// The other two additions carry no `ui` block, so neither omp's panel nor
|
|
58
|
-
// this schema offers them
|
|
59
|
-
// schema stuck at 662 is one release behind the binary.
|
|
58
|
+
// this schema offers them.
|
|
60
59
|
expect(OMP_SCHEMA.entries['toolInterceptor.rules']).toBeUndefined();
|
|
61
60
|
expect(OMP_SCHEMA.entries['hindsight.mentalModelMaxTokens']).toBeUndefined();
|
|
62
|
-
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
test("19.4.2's exit gate, prewalk timeout, web-access and image-size rows are offered", () => {
|
|
64
|
+
// Measured against `omp config list --json` on 19.4.2: 669 keys, the same
|
|
65
|
+
// 669 the panel enumerates (this release adds no config-only key). The
|
|
66
|
+
// image row is a RENAME with an inverted default — `images.autoResize`
|
|
67
|
+
// (true) is gone in favour of `images.noAutoResize` (false) — so an old
|
|
68
|
+
// row would write a key the binary no longer reads.
|
|
69
|
+
const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
|
|
70
|
+
'images.noAutoResize': { type: 'boolean', tab: 'appearance', group: 'Images', default: false },
|
|
71
|
+
'input.confirmExit': { type: 'enum', tab: 'interaction', group: 'Input', default: 'off' },
|
|
72
|
+
'prewalk.escalateTimeoutMs': { type: 'number', tab: 'model', group: 'Prewalk', default: 1000 },
|
|
73
|
+
'providers.openaiExternalWebAccess': { type: 'boolean', tab: 'providers', group: 'Services', default: true },
|
|
74
|
+
};
|
|
75
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
76
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
77
|
+
expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
|
|
78
|
+
key,
|
|
79
|
+
entry: want,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
expect(OMP_SCHEMA.entries['input.confirmExit']?.values).toEqual(['off', 'double', 'confirm']);
|
|
83
|
+
expect(OMP_SCHEMA.entries['images.autoResize']).toBeUndefined();
|
|
84
|
+
|
|
85
|
+
// `secrets.enabled` moved from boolean/false to a three-value enum, and
|
|
86
|
+
// `auto` is now the default; the panel renders the schema's `values`.
|
|
87
|
+
const secrets = OMP_SCHEMA.entries['secrets.enabled'];
|
|
88
|
+
expect({ type: secrets?.type, default: secrets?.default, values: secrets?.values }).toEqual({
|
|
89
|
+
type: 'enum',
|
|
90
|
+
default: 'auto',
|
|
91
|
+
values: ['auto', 'on', 'off'],
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
test("19.4.3's input-gate, LSP, approval and subagent rows are offered", () => {
|
|
96
|
+
// Measured against `omp config list --json` on 19.4.3: 686 keys, of which
|
|
97
|
+
// 518 reach the panel. The `lsp.*` trio is gated upstream on a scope that
|
|
98
|
+
// Kabmo never edits (project settings), so `isConditionMet` treats those
|
|
99
|
+
// guards as always true — pinned in `schema.test.ts`.
|
|
100
|
+
const expected: Record<
|
|
101
|
+
string,
|
|
102
|
+
{ type: SchemaEntry['type']; tab: string; group: string; default: unknown; condition?: string }
|
|
103
|
+
> = {
|
|
104
|
+
'tui.titlePrefix': { type: 'string', tab: 'appearance', group: 'Display', default: '' },
|
|
105
|
+
'input.confirmClear': { type: 'enum', tab: 'interaction', group: 'Input', default: 'off' },
|
|
106
|
+
'input.confirmInterrupt': { type: 'boolean', tab: 'interaction', group: 'Input', default: false },
|
|
107
|
+
thinkingProgressUpdates: { type: 'boolean', tab: 'model', group: 'Thinking', default: false },
|
|
108
|
+
'providers.anthropic.cacheKeepalive': { type: 'boolean', tab: 'model', group: 'Retry & Fallback', default: false },
|
|
109
|
+
'live.sleepPrevention': { type: 'enum', tab: 'providers', group: 'Services', default: 'off' },
|
|
110
|
+
'tools.approvalKeys': { type: 'enum', tab: 'interaction', group: 'Approvals', default: 'default' },
|
|
111
|
+
'lsp.projectConfig': {
|
|
112
|
+
type: 'boolean',
|
|
113
|
+
tab: 'files',
|
|
114
|
+
group: 'LSP',
|
|
115
|
+
default: true,
|
|
116
|
+
condition: 'lspProjectConfigNotProject',
|
|
117
|
+
},
|
|
118
|
+
'lsp.localBinaries': {
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
tab: 'files',
|
|
121
|
+
group: 'LSP',
|
|
122
|
+
default: true,
|
|
123
|
+
condition: 'lspLocalBinariesNotProject',
|
|
124
|
+
},
|
|
125
|
+
'lsp.workspaceDiagnostics': {
|
|
126
|
+
type: 'boolean',
|
|
127
|
+
tab: 'files',
|
|
128
|
+
group: 'LSP',
|
|
129
|
+
default: true,
|
|
130
|
+
condition: 'lspWorkspaceDiagnosticsNotProject',
|
|
131
|
+
},
|
|
132
|
+
'task.peerMessaging': { type: 'boolean', tab: 'tasks', group: 'Subagents', default: true },
|
|
133
|
+
};
|
|
134
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
135
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
136
|
+
expect({
|
|
137
|
+
key,
|
|
138
|
+
entry: entry && {
|
|
139
|
+
type: entry.type,
|
|
140
|
+
tab: entry.ui.tab,
|
|
141
|
+
group: entry.ui.group,
|
|
142
|
+
default: entry.default,
|
|
143
|
+
...(want.condition ? { condition: entry.ui.condition } : {}),
|
|
144
|
+
},
|
|
145
|
+
}).toEqual({ key, entry: want });
|
|
146
|
+
}
|
|
147
|
+
expect(OMP_SCHEMA.entries['input.confirmClear']?.values).toEqual(['off', 'double', 'confirm']);
|
|
148
|
+
expect(OMP_SCHEMA.entries['live.sleepPrevention']?.values).toEqual(['off', 'idle', 'display']);
|
|
149
|
+
expect(OMP_SCHEMA.entries['tools.approvalKeys']?.values).toEqual(['default', 'strict']);
|
|
150
|
+
|
|
151
|
+
// Config-only additions move the source total but carry no `ui` block.
|
|
152
|
+
for (const key of [
|
|
153
|
+
'launch.ownerNotifications',
|
|
154
|
+
'eval.envPassthrough.names',
|
|
155
|
+
'eval.envPassthrough.prefixes',
|
|
156
|
+
'task.maxEffortByModel',
|
|
157
|
+
'mcp.allowedServers',
|
|
158
|
+
'mcp.acpServers',
|
|
159
|
+
]) {
|
|
160
|
+
expect(OMP_SCHEMA.entries[key]).toBeUndefined();
|
|
161
|
+
}
|
|
162
|
+
expect(OMP_SCHEMA.source).toContain('686 settings');
|
|
63
163
|
});
|
|
64
164
|
});
|
|
@@ -136,6 +136,15 @@ describe('isConditionMet', () => {
|
|
|
136
136
|
expect(isConditionMet('hasImageProtocol', {})).toBe(true);
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
+
test('omp 19.4.3 project-scope guards never hide a row from the user-scope writer', () => {
|
|
140
|
+
// Upstream hides these `lsp.*` rows when the settings view edits a project
|
|
141
|
+
// scope. Kabmo's `omp config set` has no scope flag (user file), so the
|
|
142
|
+
// rows are always settable and must render.
|
|
143
|
+
expect(isConditionMet('lspProjectConfigNotProject', {})).toBe(true);
|
|
144
|
+
expect(isConditionMet('lspLocalBinariesNotProject', {})).toBe(true);
|
|
145
|
+
expect(isConditionMet('lspWorkspaceDiagnosticsNotProject', {})).toBe(true);
|
|
146
|
+
});
|
|
147
|
+
|
|
139
148
|
test('the prediction-alternatives row follows composer predictions (omp 18.16.0)', () => {
|
|
140
149
|
// Upstream: `cfgComposerPredictionAlternatives` is gated on
|
|
141
150
|
// `cfgComposerPredictions.get(s) === true`. Falling through to the default
|
|
@@ -68,6 +68,14 @@ export function isConditionMet(condition: string | undefined, entries: Record<st
|
|
|
68
68
|
case 'macOS':
|
|
69
69
|
case 'hasImageProtocol':
|
|
70
70
|
return true;
|
|
71
|
+
// omp 19.4.3's `lsp.*` hardening rows are hidden upstream when the settings
|
|
72
|
+
// view is scoped to a PROJECT, because project settings cannot set them.
|
|
73
|
+
// Kabmo writes through `omp config set` with no scope flag (the user file),
|
|
74
|
+
// so the row is always settable here and must never disappear.
|
|
75
|
+
case 'lspProjectConfigNotProject':
|
|
76
|
+
case 'lspLocalBinariesNotProject':
|
|
77
|
+
case 'lspWorkspaceDiagnosticsNotProject':
|
|
78
|
+
return true;
|
|
71
79
|
default:
|
|
72
80
|
return true;
|
|
73
81
|
}
|
|
@@ -29,6 +29,7 @@ import { DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE } from '@/shared/lib/workspace/right-si
|
|
|
29
29
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
30
30
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
31
31
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
32
|
+
import { DEFAULT_CHROME_STYLE } from '@/shared/lib/theme/chrome-style';
|
|
32
33
|
import { DEFAULT_ICON_STYLE } from '@/shared/lib/theme/icon-style';
|
|
33
34
|
import { DEFAULT_TRAY_ICON_STYLE } from '@/shared/lib/theme/tray-icon-style';
|
|
34
35
|
import { EDITOR_DEFAULT_FONT_FAMILY } from '@/shared/lib/code/editor/typography';
|
|
@@ -70,6 +71,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
70
71
|
mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
71
72
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
72
73
|
surfaceStyle: DEFAULT_SURFACE_STYLE,
|
|
74
|
+
chromeStyle: DEFAULT_CHROME_STYLE,
|
|
73
75
|
borderStyle: DEFAULT_BORDER_STYLE,
|
|
74
76
|
iconStyle: DEFAULT_ICON_STYLE,
|
|
75
77
|
trayIconStyle: DEFAULT_TRAY_ICON_STYLE,
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
* The border style's contract.
|
|
8
8
|
*
|
|
9
9
|
* The rule that matters is the FALLBACK and the ABSENT state: a stored value
|
|
10
|
-
* this build cannot draw must resolve to `
|
|
11
|
-
*
|
|
12
|
-
* and `hairline` is exactly the state CSS paints with no attribute.
|
|
10
|
+
* this build cannot draw must resolve to `borderless` (the shipped default),
|
|
11
|
+
* while `hairline` is exactly the state CSS paints with no attribute.
|
|
13
12
|
*/
|
|
14
13
|
|
|
15
14
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -42,19 +41,18 @@ describe('resolveBorderStyle', () => {
|
|
|
42
41
|
expect(resolveBorderStyle('borderless')).toBe('borderless');
|
|
43
42
|
});
|
|
44
43
|
|
|
45
|
-
test('an unknown value lands on
|
|
44
|
+
test('an unknown value lands on borderless, never on a rule set that does not exist', () => {
|
|
46
45
|
expect(resolveBorderStyle('naked')).toBe(DEFAULT_BORDER_STYLE);
|
|
47
46
|
expect(resolveBorderStyle(undefined)).toBe(DEFAULT_BORDER_STYLE);
|
|
48
47
|
expect(resolveBorderStyle(null)).toBe(DEFAULT_BORDER_STYLE);
|
|
49
48
|
});
|
|
50
49
|
|
|
51
|
-
test('
|
|
52
|
-
// The
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
expect(DEFAULT_BORDER_STYLE).toBe('hairline');
|
|
50
|
+
test('a fresh install ships borderless, while the absent attribute stays hairline', () => {
|
|
51
|
+
// The shipped default is the look a fresh install gets; the ABSENT state is
|
|
52
|
+
// what CSS paints with no attribute. They diverge on purpose, so a writer
|
|
53
|
+
// that compared against the default would clear `borderless` and paint
|
|
54
|
+
// rules.
|
|
55
|
+
expect(DEFAULT_BORDER_STYLE).toBe('borderless');
|
|
58
56
|
expect(BORDER_STYLE_WITHOUT_ATTRIBUTE).toBe('hairline');
|
|
59
57
|
});
|
|
60
58
|
});
|
|
@@ -76,8 +74,8 @@ describe('the style table', () => {
|
|
|
76
74
|
|
|
77
75
|
test('the borderless copy promises exactly what the CSS removes', () => {
|
|
78
76
|
// The description is the contract a user reads: it says the separators go
|
|
79
|
-
// and
|
|
80
|
-
// split, this sentence is the thing that becomes a lie.
|
|
81
|
-
expect(BORDER_STYLE_COPY.borderless.description).toContain('
|
|
77
|
+
// and badges and controls keep their edges. If the CSS ever stops honouring
|
|
78
|
+
// that split, this sentence is the thing that becomes a lie.
|
|
79
|
+
expect(BORDER_STYLE_COPY.borderless.description).toContain('Badges, fields and switches keep their edge');
|
|
82
80
|
});
|
|
83
81
|
});
|
|
@@ -20,21 +20,28 @@
|
|
|
20
20
|
* `.glass-chrome` / `.glass-overlay` / `.glass-popover`. A setting cannot
|
|
21
21
|
* rewrite 403 files, so it has to OVERRIDE the utilities in one place.
|
|
22
22
|
*
|
|
23
|
-
* 2. **A
|
|
24
|
-
* first may vanish.** The
|
|
25
|
-
*
|
|
23
|
+
* 2. **A layout rule and a control's edge are different facts, and only the
|
|
24
|
+
* first may vanish.** The split is by SHAPE, not by the line's weight: a
|
|
25
|
+
* one-sided `border-t`/`-b`/`-l`/`-r`/`-x`/`-y` rule or a `divide-*` rule
|
|
26
|
+
* separates two regions, while the bare `border` utility closes a card, a
|
|
27
|
+
* chip, a badge or a field. `.border` is exempt in `borders.css`, so a
|
|
28
|
+
* badge keeps its outline in a borderless shell.
|
|
26
29
|
*
|
|
27
|
-
*
|
|
30
|
+
* The rung still decides how VISIBLE the line it would draw is, measured
|
|
31
|
+
* per class string:
|
|
32
|
+
*
|
|
33
|
+
* | Rung | Count | What it usually draws |
|
|
28
34
|
* |-------------|-------|------------------------------------------------------|
|
|
29
|
-
* | `/5`–`/12` | 175 | separators: `border-b` under a header, a column's `border-r
|
|
30
|
-
* | `/15` | 313 |
|
|
35
|
+
* | `/5`–`/12` | 175 | separators: `border-b` under a header, a column's `border-r` |
|
|
36
|
+
* | `/15` | 313 | a panel's outer edge and a chip's edge |
|
|
31
37
|
* | `/20` | 256 | a card's outline, a chip's outline, an input's edge |
|
|
32
38
|
* | `/25`–`/60` | 371 | interaction: hover, focus, focus-within, an active chip |
|
|
33
39
|
*
|
|
34
|
-
* So `borderless` clears `/5`–`/20` and keeps everything
|
|
35
|
-
* focus ring that no longer appears is a WCAG failure
|
|
36
|
-
* a field with no edge is not a calmer field — the
|
|
37
|
-
* by tag in `borders.css`, not by leaving their
|
|
40
|
+
* So `borderless` clears `/5`–`/20` on one-sided rules and keeps everything
|
|
41
|
+
* from `/25` up. A focus ring that no longer appears is a WCAG failure
|
|
42
|
+
* (`DESIGN.md` §7), and a field with no edge is not a calmer field — the
|
|
43
|
+
* form controls are exempted by tag in `borders.css`, not by leaving their
|
|
44
|
+
* rung painted.
|
|
38
45
|
*
|
|
39
46
|
* `border-dashed`, `border-error`/`-warning`/`-success`/`-info`, `ring-*`,
|
|
40
47
|
* `divide-*` and `.kabmo-checkbox` are deliberately untouched: a drop zone, a
|
|
@@ -50,7 +57,7 @@
|
|
|
50
57
|
export type BorderStyle = 'hairline' | 'borderless';
|
|
51
58
|
|
|
52
59
|
/** The style a fresh install — or any stored value this build cannot draw — resolves to. */
|
|
53
|
-
export const DEFAULT_BORDER_STYLE: BorderStyle = '
|
|
60
|
+
export const DEFAULT_BORDER_STYLE: BorderStyle = 'borderless';
|
|
54
61
|
|
|
55
62
|
/**
|
|
56
63
|
* The style CSS paints when `data-borders` is absent.
|
|
@@ -58,9 +65,9 @@ export const DEFAULT_BORDER_STYLE: BorderStyle = 'hairline';
|
|
|
58
65
|
* `hairline` is what every rule in `tailwind.css` already states, so its writer
|
|
59
66
|
* REMOVES the attribute rather than writing it: a document carrying
|
|
60
67
|
* `data-borders="hairline"` and a document carrying nothing are the same state.
|
|
61
|
-
* Kept as its own constant because it is NOT the default
|
|
62
|
-
*
|
|
63
|
-
*
|
|
68
|
+
* Kept as its own constant because it is deliberately NOT the shipped default
|
|
69
|
+
* (`borderless` is): every writer must compare against the state CSS actually
|
|
70
|
+
* paints, never against `DEFAULT_BORDER_STYLE`.
|
|
64
71
|
*/
|
|
65
72
|
export const BORDER_STYLE_WITHOUT_ATTRIBUTE: BorderStyle = 'hairline';
|
|
66
73
|
|
|
@@ -89,9 +96,9 @@ export function isBorderStyle(value: unknown): value is BorderStyle {
|
|
|
89
96
|
* The style to APPLY for a stored value.
|
|
90
97
|
*
|
|
91
98
|
* Anything this build cannot draw — a value from a newer build, a corrupted
|
|
92
|
-
* blob, `undefined` on
|
|
93
|
-
*
|
|
94
|
-
*
|
|
99
|
+
* blob, `undefined` on a fresh install — resolves to `borderless`, the shipped
|
|
100
|
+
* look. A stored `hairline` is still honoured: the fallback never rewrites a
|
|
101
|
+
* preference this build can draw.
|
|
95
102
|
*/
|
|
96
103
|
export function resolveBorderStyle(value: unknown): BorderStyle {
|
|
97
104
|
return isBorderStyle(value) ? value : DEFAULT_BORDER_STYLE;
|
|
@@ -116,7 +123,7 @@ export const BORDER_STYLE_COPY: Record<BorderStyle, BorderStyleCopy> = {
|
|
|
116
123
|
borderless: {
|
|
117
124
|
label: 'Borderless',
|
|
118
125
|
description:
|
|
119
|
-
'The rules between panels, columns
|
|
126
|
+
'The rules between panels, columns and rows are removed; spacing and the panel tints carry the structure. The chat transcript keeps its own rules. Badges, fields and switches keep their edge.',
|
|
120
127
|
caption: 'Rules off',
|
|
121
128
|
},
|
|
122
129
|
};
|