@kabmo-labs/kabmo 0.59.1 → 0.61.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-5yedtmnk.js → Body-ab8wswhm.js} +3 -3
- package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-czssywvz.js} +2 -2
- package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-ke0dwdmt.js} +3 -3
- package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-a1whhy84.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-dr32dwjy.js} +1 -1
- package/dist/client/static/js/ImageView-zf4kh5wp.js +1 -0
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +2 -0
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +1 -0
- package/dist/client/static/js/Modal-5cxfw2rv.js +60 -0
- package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-2kdn91f9.js} +1 -1
- package/dist/client/static/js/SessionsView-vbn0nvx4.js +1 -0
- package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-ettr9pdw.js} +9 -9
- package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-hzcejjry.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-kdmv4y72.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-fp6etjvt.js → architectureDiagram-NJMV4G6O-qyrwaq0x.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-pespk9mt.js → blockDiagram-BEXU5L5S-tszxy2g7.js} +8 -8
- package/dist/client/static/js/c-fn9jz26e.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-0ye36hhv.js} +5 -5
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-szgk1shv.js} +6 -6
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-0s9s4mmv.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-8endeh4p.js → cynefinDiagram-VND7K2PF-664g28ze.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-ga4rp1jx.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-aagj46ty.js} +15 -15
- package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-20qk6whk.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-1vg1tfca.js} +2 -2
- package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-90d6jrqs.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-8je4z8m1.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-0kzpexsj.js} +2 -2
- package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-5nrbr0ef.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-47yg36zx.js} +1 -1
- package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-wedtvz9y.js → elk-276RUBZZ-5hqp6r2d.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-bt9te7r0.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-500fcx2a.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-kzc13swm.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-vcwmj4b3.js → gitGraphDiagram-X574FWY7-bjf8aa3j.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-jaf968hx.js → index-0kcnghxn.js} +4 -4
- package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
- package/dist/client/static/js/{index-sqyvj03y.js → index-1fmjhm2d.js} +9 -9
- package/dist/client/static/js/{index-42q5gg7t.js → index-24a40rw8.js} +1 -1
- package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
- package/dist/client/static/js/{index-wkxsypj1.js → index-2zhmmtye.js} +2 -2
- package/dist/client/static/js/{index-m62sf9wn.js → index-3x7cbxwq.js} +1 -1
- package/dist/client/static/js/{index-fg0ne74z.js → index-475dc6h9.js} +2 -2
- package/dist/client/static/js/{index-1mkn5fbf.js → index-4vtc4xct.js} +197 -197
- package/dist/client/static/js/{index-spnrx2c0.js → index-5srvxsht.js} +1 -1
- package/dist/client/static/js/{index-tz5ewsza.js → index-653x8zdq.js} +9 -9
- package/dist/client/static/js/index-6c1s0v4b.js +1 -0
- package/dist/client/static/js/{index-hgzf4ask.js → index-776n5n29.js} +5 -5
- package/dist/client/static/js/{index-a70sk36c.js → index-85jfn1fz.js} +2 -2
- package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
- package/dist/client/static/js/{index-csxnqgzw.js → index-9g2nzgpx.js} +6 -6
- 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-db6s66jr.js → index-bkn6jtn1.js} +2 -2
- package/dist/client/static/js/{index-kt77dwsg.js → index-bq9f0mxp.js} +7 -7
- package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
- package/dist/client/static/js/index-cvm2ha01.js +1 -0
- package/dist/client/static/js/index-d11mbz2q.js +4 -0
- package/dist/client/static/js/{index-3kedv94b.js → index-dabnbvbc.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-fen0x3qh.js +1 -0
- package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
- package/dist/client/static/js/{index-xqz7bqcn.js → index-gwgh27h3.js} +87 -87
- package/dist/client/static/js/{index-2h7xh93h.js → index-h7agc069.js} +1 -1
- package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
- package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
- package/dist/client/static/js/{index-s7p2wdr1.js → index-jz4012t5.js} +1 -1
- package/dist/client/static/js/{index-gajpd90b.js → index-k9yf2txw.js} +2 -2
- package/dist/client/static/js/{index-dw9epydj.js → index-kj70d2q9.js} +2 -2
- package/dist/client/static/js/{index-7enfdvh0.js → index-krdz5vby.js} +2 -2
- package/dist/client/static/js/{index-42k78whj.js → index-kyr612aa.js} +1 -1
- package/dist/client/static/js/{index-fvphmwkf.js → index-m24sebb0.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-pg87cgpy.js +2 -0
- package/dist/client/static/js/{index-r42f3r1p.js → index-q1a40v20.js} +2 -2
- package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
- package/dist/client/static/js/index-qmvstmvh.js +1 -0
- package/dist/client/static/js/{index-pn0ja904.js → index-r38e0rya.js} +2 -2
- package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
- package/dist/client/static/js/index-sr14vwn5.js +2 -0
- 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-qc3de995.js → index-vgcw01yk.js} +1 -1
- package/dist/client/static/js/{index-pr8wsq24.js → index-vn59zz0k.js} +2 -2
- package/dist/client/static/js/{index-hrez92pw.js → index-wf5j0009.js} +7 -7
- package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
- package/dist/client/static/js/{index-d201jvs9.js → index-xy0m8te9.js} +1 -1
- package/dist/client/static/js/index-y6zbkh4p.js +2 -0
- package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
- package/dist/client/static/js/{index-y5pkqrga.js → index-z5s9tmj8.js} +2 -2
- package/dist/client/static/js/{index-vs3g6njv.js → index-zr3965k9.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-jy5zvvj8.js} +1 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-pfky1nnf.js} +3 -3
- package/dist/client/static/js/java-n596am4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.js → journeyDiagram-ZHPQQLJL-mvaf7rfh.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-a2f84qmn.js → kanban-definition-PNTS6WVX-hw2xwe6e.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-9vfwthw3.js → mermaid.core-hsw87hmq.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-wfe4d846.js} +7 -7
- package/dist/client/static/js/one-dark-pro-ckq5capv.js +1 -0
- package/dist/client/static/js/one-light-a908z398.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-77wxmp9g.js → pegDiagram-GJSIUBJH-cvnmxgst.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-gvgfhez0.js → pieDiagram-5QR66LMP-0n3gz7sv.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-9zkbt5h8.js → quadrantDiagram-O4NWA36T-9qqh6xvv.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-w55bsyw6.js → railroadDiagram-XR7U4H2S-5f3x3762.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-a68bv6kh.js} +12 -12
- package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
- package/dist/client/static/js/{rust-csv5f258.js → rust-qjhdt4b0.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-ry7xcphh.js} +4 -4
- package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nnta2hn0.js → sequenceDiagram-PO4LG4MO-mekzzhet.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-pvc16ame.js} +1 -1
- package/dist/client/static/js/sql-0kar81jy.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3f2en220.js → stateDiagram-v2-GCMORJYK-3ytxby83.js} +3 -3
- package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-jgqt12z9.js → swimlanes-2SLR337P-c2zfp416.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-xtvv4za2.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-znkg9pkq.js → usecaseDiagram-POWQR4AR-sz6b7bnv.js} +51 -51
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-56q0qs51.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-77xz2d49.js → wardleyDiagram-VNRHLVJA-xvtyvde9.js} +5 -5
- package/dist/client/static/js/xml-b7824nx0.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.js → xychartDiagram-PMCCYNJV-jcs20s84.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/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/WorkspaceHeader.tsx +5 -2
- 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/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +50 -20
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +172 -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-nc2n0w6s.js +0 -1
- package/dist/client/static/js/LayoutWrapper-j7786frq.js +0 -2
- package/dist/client/static/js/MergeDiffView-0rn5zsy5.js +0 -1
- package/dist/client/static/js/Modal-7ag7a9qq.js +0 -60
- package/dist/client/static/js/SessionsView-t9rhx472.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-vd4z6bvy.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-6vbra7p9.js +0 -1
- package/dist/client/static/js/index-9mgpbwfr.js +0 -1
- package/dist/client/static/js/index-c5401dqs.js +0 -4
- package/dist/client/static/js/index-dbsy29gn.js +0 -2
- package/dist/client/static/js/index-e39m185a.js +0 -2
- package/dist/client/static/js/index-fnaq8baz.js +0 -1
- package/dist/client/static/js/index-mttx9327.css +0 -1
- package/dist/client/static/js/index-n7bmqeqz.js +0 -1
- package/dist/client/static/js/index-skp6991n.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-7v4by00h.js +0 -1
- package/dist/client/static/js/one-light-5rfzh8p4.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-xx1z57df.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
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
* emitting `data-surface="classic"` here would make the server and the client
|
|
26
26
|
* disagree about the document's own state — and every CSS rule keys on the
|
|
27
27
|
* value, not on its absence. This is NOT the same test as `DEFAULT_*`: the
|
|
28
|
-
* defaults are `
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* defaults are `classic` / `color` / `borderless`, so the first must be
|
|
29
|
+
* omitted while the other two are emitted and the first frame already has its
|
|
30
|
+
* colour and its detached chrome.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
import type { ThemePalette } from '@kabmo-labs/kabmo-app-contracts/theme';
|
|
@@ -48,6 +48,11 @@ import {
|
|
|
48
48
|
BORDER_STYLE_WITHOUT_ATTRIBUTE,
|
|
49
49
|
resolveBorderStyle,
|
|
50
50
|
} from '@/shared/lib/theme/border-style';
|
|
51
|
+
import {
|
|
52
|
+
CHROME_ATTRIBUTE,
|
|
53
|
+
CHROME_STYLE_WITHOUT_ATTRIBUTE,
|
|
54
|
+
resolveChromeStyle,
|
|
55
|
+
} from '@/shared/lib/theme/chrome-style';
|
|
51
56
|
|
|
52
57
|
export interface ShellDocumentFacts {
|
|
53
58
|
palette: ThemePalette;
|
|
@@ -56,6 +61,8 @@ export interface ShellDocumentFacts {
|
|
|
56
61
|
surfaceStyle: unknown;
|
|
57
62
|
/** The stored hairline set, same rule. */
|
|
58
63
|
borderStyle: unknown;
|
|
64
|
+
/** The stored desktop chrome arrangement, same rule. */
|
|
65
|
+
chromeStyle?: unknown;
|
|
59
66
|
iconStyle: unknown;
|
|
60
67
|
/** The `<meta name="theme-color">` value for this request. */
|
|
61
68
|
chromeColor: string;
|
|
@@ -72,13 +79,16 @@ export function styleAttributes(
|
|
|
72
79
|
iconStyle: unknown,
|
|
73
80
|
palette?: ThemePalette,
|
|
74
81
|
borderStyle?: unknown,
|
|
82
|
+
chromeStyle?: unknown,
|
|
75
83
|
): string {
|
|
76
84
|
const surface = resolveSurfaceStyle(surfaceStyle);
|
|
77
85
|
const icon = resolveIconStyle(iconStyle);
|
|
78
86
|
const border = resolveBorderStyle(borderStyle);
|
|
87
|
+
const chrome = resolveChromeStyle(chromeStyle);
|
|
79
88
|
const parts: string[] = [];
|
|
80
89
|
if (surface !== SURFACE_STYLE_WITHOUT_ATTRIBUTE) parts.push(`${SURFACE_ATTRIBUTE}="${surface}"`);
|
|
81
90
|
if (border !== BORDER_STYLE_WITHOUT_ATTRIBUTE) parts.push(`${BORDER_ATTRIBUTE}="${border}"`);
|
|
91
|
+
if (chrome !== CHROME_STYLE_WITHOUT_ATTRIBUTE) parts.push(`${CHROME_ATTRIBUTE}="${chrome}"`);
|
|
82
92
|
if (icon !== ICON_STYLE_WITHOUT_ATTRIBUTE) parts.push(`${ICON_STYLE_ATTRIBUTE}="${icon}"`);
|
|
83
93
|
// The paper bucket is written for EVERY light palette, including the default
|
|
84
94
|
// one, because it is not a preference: without it the first frame paints the
|
|
@@ -99,7 +109,7 @@ export function applyShellDocumentFacts(html: string, facts: ShellDocumentFacts)
|
|
|
99
109
|
return html
|
|
100
110
|
.replace(
|
|
101
111
|
TEMPLATE_THEME,
|
|
102
|
-
`data-theme="${facts.palette.id}"${styleAttributes(facts.surfaceStyle, facts.iconStyle, facts.palette, facts.borderStyle)}`,
|
|
112
|
+
`data-theme="${facts.palette.id}"${styleAttributes(facts.surfaceStyle, facts.iconStyle, facts.palette, facts.borderStyle, facts.chromeStyle)}`,
|
|
103
113
|
)
|
|
104
114
|
.replace(TEMPLATE_VARIANT, `data-theme-variant="${facts.palette.variant}"`)
|
|
105
115
|
.replace(TEMPLATE_META, `<meta name="theme-color" content="${facts.chromeColor}" />`);
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
* The first frame's `<html>` attributes.
|
|
8
8
|
*
|
|
9
9
|
* The rule worth pinning is the ASYMMETRY: the palette is always written, and
|
|
10
|
-
* the
|
|
11
|
-
* paints with no attribute (`classic` / `monochrome`) — because the
|
|
12
|
-
* writers REMOVE the attribute for exactly those values, and a server
|
|
13
|
-
* emitted `data-surface="classic"` would leave a document the client thinks
|
|
14
|
-
* "explicitly classic" and a reload flipping between two spellings of the
|
|
15
|
-
* state. The shipped DEFAULTS (`
|
|
16
|
-
*
|
|
10
|
+
* the presentation styles are written only when they are not the style CSS
|
|
11
|
+
* paints with no attribute (`classic` / `monochrome` / `hairline`) — because the
|
|
12
|
+
* client's writers REMOVE the attribute for exactly those values, and a server
|
|
13
|
+
* that emitted `data-surface="classic"` would leave a document the client thinks
|
|
14
|
+
* is "explicitly classic" and a reload flipping between two spellings of the
|
|
15
|
+
* same state. The shipped DEFAULTS (`classic` / `color` / `borderless` /
|
|
16
|
+
* `floating`) therefore emit everything except the surface, so the first frame
|
|
17
|
+
* already has its colour, its detached chrome and its rules off.
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -38,29 +39,40 @@ const dark = THEMES.find((theme) => theme.variant === 'dark')!;
|
|
|
38
39
|
|
|
39
40
|
describe('styleAttributes', () => {
|
|
40
41
|
test('the styles CSS paints with no attribute add nothing', () => {
|
|
41
|
-
expect(styleAttributes('classic', 'monochrome')).toBe('');
|
|
42
|
+
expect(styleAttributes('classic', 'monochrome', undefined, 'hairline', 'classic')).toBe('');
|
|
42
43
|
});
|
|
43
44
|
|
|
44
|
-
test('the shipped defaults are emitted so the first frame is
|
|
45
|
-
const defaults = ' data-
|
|
45
|
+
test('the shipped defaults are emitted so the first frame is borderless and floating', () => {
|
|
46
|
+
const defaults = ' data-borders="borderless" data-chrome="floating" data-icon-style="color"';
|
|
46
47
|
expect(styleAttributes(undefined, undefined)).toBe(defaults);
|
|
47
48
|
expect(styleAttributes('nonsense', 'nonsense')).toBe(defaults);
|
|
48
|
-
expect(styleAttributes('
|
|
49
|
+
expect(styleAttributes('classic', 'color')).toBe(defaults);
|
|
49
50
|
});
|
|
50
51
|
|
|
51
52
|
test('each style contributes its own attribute independently', () => {
|
|
52
|
-
expect(styleAttributes('glass', 'monochrome')).toBe(
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
expect(styleAttributes('glass', 'monochrome', undefined, 'hairline', 'classic')).toBe(
|
|
54
|
+
' data-surface="glass"',
|
|
55
|
+
);
|
|
56
|
+
expect(styleAttributes('classic', 'color', undefined, 'hairline', 'classic')).toBe(
|
|
57
|
+
' data-icon-style="color"',
|
|
58
|
+
);
|
|
59
|
+
expect(styleAttributes('glass', 'color', undefined, 'hairline', 'classic')).toBe(
|
|
60
|
+
' data-surface="glass" data-icon-style="color"',
|
|
61
|
+
);
|
|
62
|
+
expect(styleAttributes('classic', 'color', undefined, 'borderless', 'floating')).toBe(
|
|
63
|
+
' data-borders="borderless" data-chrome="floating" data-icon-style="color"',
|
|
64
|
+
);
|
|
55
65
|
});
|
|
56
66
|
|
|
57
67
|
test('borderless is written, hairline is the absence of the attribute', () => {
|
|
58
68
|
// `hairline` IS what CSS paints with no attribute, so emitting
|
|
59
69
|
// `data-borders="hairline"` would make the served document disagree with
|
|
60
70
|
// the one the client's own writer produces.
|
|
61
|
-
expect(styleAttributes('classic', 'monochrome', undefined, 'hairline')).toBe('');
|
|
62
|
-
expect(styleAttributes('classic', 'monochrome', undefined, 'borderless')).toBe(
|
|
63
|
-
|
|
71
|
+
expect(styleAttributes('classic', 'monochrome', undefined, 'hairline', 'classic')).toBe('');
|
|
72
|
+
expect(styleAttributes('classic', 'monochrome', undefined, 'borderless', 'classic')).toBe(
|
|
73
|
+
' data-borders="borderless"',
|
|
74
|
+
);
|
|
75
|
+
expect(styleAttributes('glass', 'color', undefined, 'borderless', 'classic')).toBe(
|
|
64
76
|
' data-surface="glass" data-borders="borderless" data-icon-style="color"',
|
|
65
77
|
);
|
|
66
78
|
});
|
|
@@ -69,9 +81,11 @@ describe('styleAttributes', () => {
|
|
|
69
81
|
// Not a preference: without it the first frame paints the `deep` tone table
|
|
70
82
|
// on a `mid` paper, one step darker than the palette allows, and the client's
|
|
71
83
|
// `applyIconPaper` then visibly corrects it.
|
|
72
|
-
expect(styleAttributes('classic', 'monochrome', light)).toBe(
|
|
84
|
+
expect(styleAttributes('classic', 'monochrome', light, 'hairline', 'classic')).toBe(
|
|
85
|
+
' data-icon-paper="mid"',
|
|
86
|
+
);
|
|
73
87
|
// A dark palette has one band, so it states nothing.
|
|
74
|
-
expect(styleAttributes('classic', 'monochrome', dark)).toBe('');
|
|
88
|
+
expect(styleAttributes('classic', 'monochrome', dark, 'hairline', 'classic')).toBe('');
|
|
75
89
|
});
|
|
76
90
|
});
|
|
77
91
|
|
|
@@ -86,7 +100,7 @@ describe('applyShellDocumentFacts', () => {
|
|
|
86
100
|
});
|
|
87
101
|
|
|
88
102
|
expect(html).toContain(
|
|
89
|
-
`<html lang="en" data-theme="${light.id}" data-
|
|
103
|
+
`<html lang="en" data-theme="${light.id}" data-borders="borderless" data-chrome="floating" data-icon-style="color" data-icon-paper="mid" data-theme-variant="${light.variant}">`,
|
|
90
104
|
);
|
|
91
105
|
expect(html).toContain('<meta name="theme-color" content="#123456" />');
|
|
92
106
|
});
|
|
@@ -101,7 +115,7 @@ describe('applyShellDocumentFacts', () => {
|
|
|
101
115
|
});
|
|
102
116
|
|
|
103
117
|
expect(html).toContain(
|
|
104
|
-
`<html lang="en" data-theme="${light.id}" data-surface="glass" data-icon-style="color" data-icon-paper="mid" data-theme-variant="${light.variant}">`,
|
|
118
|
+
`<html lang="en" data-theme="${light.id}" data-surface="glass" data-borders="borderless" data-chrome="floating" data-icon-style="color" data-icon-paper="mid" data-theme-variant="${light.variant}">`,
|
|
105
119
|
);
|
|
106
120
|
});
|
|
107
121
|
|
|
@@ -60,8 +60,9 @@ describe('window-drag contract', () => {
|
|
|
60
60
|
*/
|
|
61
61
|
test('every title-bar header carries data-drag-region', () => {
|
|
62
62
|
for (const path of [
|
|
63
|
-
'src/client/components/layout/
|
|
64
|
-
'src/client/components/layout/session-
|
|
63
|
+
'src/client/components/layout/left-bar/index.tsx',
|
|
64
|
+
'src/client/components/layout/session-title-bar/index.tsx',
|
|
65
|
+
'src/client/components/layout/controls-bar/index.tsx',
|
|
65
66
|
'src/client/components/mobile/mobile-main-view/Header.tsx',
|
|
66
67
|
'src/client/components/mobile/mobile-session-sidebar/Header.tsx',
|
|
67
68
|
// The right drawer's chrome moved out of `RightSidebar` when that file
|
|
@@ -33,6 +33,10 @@ import {
|
|
|
33
33
|
} from '@/server/lib/realtime/hub.server';
|
|
34
34
|
import { attachPeerSession } from '@/server/lib/realtime/topics/peer-relay.server';
|
|
35
35
|
import { sessionDescriptor } from '@/server/lib/realtime/topics/session.server';
|
|
36
|
+
import { listInstanceRecords } from '@/server/lib/lifecycle/instance';
|
|
37
|
+
import { sessionLeasePath } from '@/server/lib/omp/session/ownership.server';
|
|
38
|
+
import { fileHolderPid } from '@kabmo-labs/kabmo-omp/session-runtime/lease-holder.server';
|
|
39
|
+
import { isProcessAlive, processParentPid } from '@kabmo-labs/kabmo-process/probe/identity';
|
|
36
40
|
import { sessionTopic } from '@/shared/lib/realtime/protocol';
|
|
37
41
|
import {
|
|
38
42
|
holdLeaseInForeignProcess,
|
|
@@ -197,7 +201,7 @@ describe('peer session relay', () => {
|
|
|
197
201
|
// matches the lease holder's PARENT against that record's pid — so the
|
|
198
202
|
// record names the pid the harness reports, not a guessed `1`.
|
|
199
203
|
const holder = await holdLeaseInForeignProcess(sessionId);
|
|
200
|
-
foreignChildren.push(holder.pid);
|
|
204
|
+
foreignChildren.push(holder.pid, holder.parentPid);
|
|
201
205
|
mkdirSync(join(roots.dataRoot, 'run'), { recursive: true });
|
|
202
206
|
writeFileSync(
|
|
203
207
|
join(roots.dataRoot, 'run', `${ownerServer.port}.json`),
|
|
@@ -206,7 +210,19 @@ describe('peer session relay', () => {
|
|
|
206
210
|
|
|
207
211
|
try {
|
|
208
212
|
const value = (await sessionDescriptor(sessionId).resolve(topic)) as { running?: boolean };
|
|
209
|
-
|
|
213
|
+
// The failure message carries every step the guard took: a passing
|
|
214
|
+
// resolve with an empty `ownerCalls` means the fetch, not the lookup.
|
|
215
|
+
const lease = sessionLeasePath(sessionId);
|
|
216
|
+
const holderPid = fileHolderPid(lease);
|
|
217
|
+
const parentPid = holderPid === null ? null : processParentPid(holderPid);
|
|
218
|
+
expect(ownerCalls, JSON.stringify({
|
|
219
|
+
holder,
|
|
220
|
+
self: process.pid,
|
|
221
|
+
holderPid,
|
|
222
|
+
parentPid,
|
|
223
|
+
parentAlive: parentPid === null ? null : isProcessAlive(parentPid),
|
|
224
|
+
records: listInstanceRecords().map((record) => ({ pid: record.pid, port: record.port })),
|
|
225
|
+
})).toEqual([`/api/agent/${sessionId}`]);
|
|
210
226
|
expect(value.running).toBe(true);
|
|
211
227
|
} finally {
|
|
212
228
|
ownerServer.stop(true);
|
|
@@ -229,7 +245,7 @@ describe('peer session relay', () => {
|
|
|
229
245
|
await waitUntil(() => peer !== null && peer.subscriptions.length === 0);
|
|
230
246
|
// Only NOW does the owner appear — after the first lookup found nothing.
|
|
231
247
|
const holder = await holdLeaseInForeignProcess(sessionId);
|
|
232
|
-
foreignChildren.push(holder.pid);
|
|
248
|
+
foreignChildren.push(holder.pid, holder.parentPid);
|
|
233
249
|
// The owner must be placeable once it claims the session: the guard
|
|
234
250
|
// matches the holder's PARENT against an instance record, so the record
|
|
235
251
|
// names the pid the harness reported rather than a guessed `1`.
|
|
@@ -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',
|