@kabmo-labs/kabmo 0.59.1 → 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.
Files changed (372) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +397 -397
  3. package/dist/client/static/js/{Body-5yedtmnk.js → Body-p82s28sj.js} +3 -3
  4. package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-erc5mcvc.js} +2 -2
  5. package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-x3faj0jv.js} +3 -3
  6. package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-t7fh3ens.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-zy7x7jmm.js} +1 -1
  8. package/dist/client/static/js/ImageView-xc90jc1c.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-bng34cpr.js +1 -0
  11. package/dist/client/static/js/Modal-89jk7wff.js +60 -0
  12. package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-kqx472q7.js} +1 -1
  13. package/dist/client/static/js/SessionsView-6bpz1faj.js +1 -0
  14. package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-0n9fze50.js} +9 -9
  15. package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-6xc6ts46.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-2xdkkqwg.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-fp6etjvt.js → architectureDiagram-NJMV4G6O-ja8cx19z.js} +11 -11
  19. package/dist/client/static/js/{astro-ryr2ajmg.js → astro-yphdvdty.js} +1 -1
  20. package/dist/client/static/js/bash-bcbct9gc.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-pespk9mt.js → blockDiagram-BEXU5L5S-ytf7s99c.js} +8 -8
  22. package/dist/client/static/js/c-fn9jz26e.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-rt4z91dx.js → c4Diagram-YGBWAQC7-5a0kdx0z.js} +5 -5
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-hd98dvjw.js} +6 -6
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-man3fqcj.js} +1 -1
  26. package/dist/client/static/js/cpp-a1q64mke.js +1 -0
  27. package/dist/client/static/js/css-b92azee8.js +1 -0
  28. package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +1 -0
  29. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-8endeh4p.js → cynefinDiagram-VND7K2PF-2f0kbbv2.js} +2 -2
  30. package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-k7pyhgzn.js} +2 -2
  31. package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-qx0afa2m.js} +15 -15
  32. package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-ydpe77sv.js} +2 -2
  33. package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-e63v984n.js} +2 -2
  34. package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-8c765h3a.js} +4 -4
  35. package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-3pq0n7v8.js} +2 -2
  36. package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-638atzxz.js} +2 -2
  37. package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-yehc914q.js} +1 -1
  38. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-3gv43zvm.js} +1 -1
  39. package/dist/client/static/js/{elixir-fyxw6d70.js → elixir-3nwnd9yw.js} +1 -1
  40. package/dist/client/static/js/{elk-276RUBZZ-wedtvz9y.js → elk-276RUBZZ-6s5pggfc.js} +1 -1
  41. package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-x7cqyb89.js} +3 -3
  42. package/dist/client/static/js/{erlang-97ayje6m.js → erlang-p5c4n3t0.js} +1 -1
  43. package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +1 -0
  44. package/dist/client/static/js/flowDiagram-KWPJA3E3-7sn6nwjv.js +1 -0
  45. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-g97te4v1.js} +5 -5
  46. package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +1 -0
  47. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-vcwmj4b3.js → gitGraphDiagram-X574FWY7-sw4f94tc.js} +14 -14
  48. package/dist/client/static/js/graphql-8d8bn59j.js +1 -0
  49. package/dist/client/static/js/html-6hdrwtz2.js +1 -0
  50. package/dist/client/static/js/{index-5e4e18tg.js → index-025s3fp8.js} +2 -2
  51. package/dist/client/static/js/{index-hgzf4ask.js → index-0ze5bwvw.js} +5 -5
  52. package/dist/client/static/js/{index-s7p2wdr1.js → index-111bq6rs.js} +1 -1
  53. package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
  54. package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
  55. package/dist/client/static/js/index-2n2evsg0.js +2 -0
  56. package/dist/client/static/js/{index-y5pkqrga.js → index-37apvxgj.js} +2 -2
  57. package/dist/client/static/js/{index-vs3g6njv.js → index-43gmn7yb.js} +1 -1
  58. package/dist/client/static/js/index-4h2zkrk1.js +2 -0
  59. package/dist/client/static/js/{index-42k78whj.js → index-4xbc0j7t.js} +1 -1
  60. package/dist/client/static/js/index-5nm8hm4k.js +2 -0
  61. package/dist/client/static/js/{index-kt77dwsg.js → index-6qn9kygb.js} +7 -7
  62. package/dist/client/static/js/{index-d201jvs9.js → index-8zct30zd.js} +1 -1
  63. package/dist/client/static/js/{index-1mkn5fbf.js → index-95jfphx5.js} +197 -197
  64. package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
  65. package/dist/client/static/js/{index-jaf968hx.js → index-9pw441wc.js} +4 -4
  66. package/dist/client/static/js/{index-m62sf9wn.js → index-9rz6kzsv.js} +1 -1
  67. package/dist/client/static/js/{index-y4cx8cqf.js → index-a145x0w2.js} +2 -2
  68. package/dist/client/static/js/{index-mhrkjbjq.js → index-bdtftrym.js} +2 -2
  69. package/dist/client/static/js/index-bjz54ht6.js +1 -0
  70. package/dist/client/static/js/{index-db6s66jr.js → index-bkn6jtn1.js} +2 -2
  71. package/dist/client/static/js/{index-dw9epydj.js → index-bpcg34jp.js} +2 -2
  72. package/dist/client/static/js/{index-spnrx2c0.js → index-bqapt2e8.js} +1 -1
  73. package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
  74. package/dist/client/static/js/{index-a70sk36c.js → index-cf69bhjx.js} +2 -2
  75. package/dist/client/static/js/{index-fg0ne74z.js → index-cfvc1zpk.js} +2 -2
  76. package/dist/client/static/js/{index-wkxsypj1.js → index-ddkjgv5h.js} +2 -2
  77. package/dist/client/static/js/{index-xqz7bqcn.js → index-dekvtt2a.js} +87 -87
  78. package/dist/client/static/js/{index-pr8wsq24.js → index-dv01prse.js} +2 -2
  79. package/dist/client/static/js/{index-sg65xdey.js → index-enm77k5z.js} +2 -2
  80. package/dist/client/static/js/{index-nf4hq5tg.js → index-excgtjhx.js} +14 -14
  81. package/dist/client/static/js/{index-51rbgeh9.js → index-fb2fjndj.js} +5 -5
  82. package/dist/client/static/js/index-fnwaxc6r.js +1 -0
  83. package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
  84. package/dist/client/static/js/index-h65zrhva.js +1 -0
  85. package/dist/client/static/js/{index-fvphmwkf.js → index-hgfyx8dt.js} +2 -2
  86. package/dist/client/static/js/{index-7enfdvh0.js → index-hwdkxe4n.js} +2 -2
  87. package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
  88. package/dist/client/static/js/index-hxsqw7sz.js +4 -0
  89. package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
  90. package/dist/client/static/js/{index-hrez92pw.js → index-ja0ajnvq.js} +7 -7
  91. package/dist/client/static/js/{index-3kedv94b.js → index-jfqd838j.js} +2 -2
  92. package/dist/client/static/js/{index-d9sfavx1.js → index-mtav0rpf.js} +2 -2
  93. package/dist/client/static/js/{index-58z2hatp.js → index-n8r7r86r.js} +1 -1
  94. package/dist/client/static/js/{index-2h7xh93h.js → index-pdgc9ccr.js} +1 -1
  95. package/dist/client/static/js/{index-gajpd90b.js → index-pdz6j2g2.js} +2 -2
  96. package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
  97. package/dist/client/static/js/{index-42q5gg7t.js → index-qkqkygrf.js} +1 -1
  98. package/dist/client/static/js/index-qkyy563e.js +1 -0
  99. package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
  100. package/dist/client/static/js/{index-z82nd2bd.js → index-sx83ans2.js} +2 -2
  101. package/dist/client/static/js/index-t6nqy2n5.css +1 -0
  102. package/dist/client/static/js/{index-fsa18ns9.js → index-twwsn91p.js} +2 -2
  103. package/dist/client/static/js/{index-nwbr15b3.js → index-v88m5sva.js} +2 -2
  104. package/dist/client/static/js/{index-csxnqgzw.js → index-vcq6zfxx.js} +6 -6
  105. package/dist/client/static/js/{index-pn0ja904.js → index-vec7m1yd.js} +2 -2
  106. package/dist/client/static/js/{index-sqyvj03y.js → index-vejz38qt.js} +9 -9
  107. package/dist/client/static/js/{index-r42f3r1p.js → index-wrk99kks.js} +2 -2
  108. package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
  109. package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
  110. package/dist/client/static/js/{index-qc3de995.js → index-ywp0sd1e.js} +1 -1
  111. package/dist/client/static/js/{index-tz5ewsza.js → index-z8k42dwz.js} +9 -9
  112. package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
  113. package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-pw2qaa27.js} +1 -1
  114. package/dist/client/static/js/ini-g6a5xsaw.js +1 -0
  115. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ncjty2re.js → ishikawaDiagram-OU5B5YK6-d13jhvxy.js} +3 -3
  116. package/dist/client/static/js/java-n596am4c.js +1 -0
  117. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-yx222bzt.js → journeyDiagram-ZHPQQLJL-20gb8a04.js} +4 -4
  118. package/dist/client/static/js/json-7k70qbkj.js +1 -0
  119. package/dist/client/static/js/jsx-sndenqrc.js +1 -0
  120. package/dist/client/static/js/{julia-agc5kfvg.js → julia-rpd1y9vh.js} +1 -1
  121. package/dist/client/static/js/{kanban-definition-PNTS6WVX-a2f84qmn.js → kanban-definition-PNTS6WVX-s78e158c.js} +5 -5
  122. package/dist/client/static/js/lua-djd3g9q5.js +1 -0
  123. package/dist/client/static/js/markdown-r2tpvxpn.js +1 -0
  124. package/dist/client/static/js/{mermaid.core-9vfwthw3.js → mermaid.core-xbm27k28.js} +6 -6
  125. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-6y7xe2zm.js} +7 -7
  126. package/dist/client/static/js/one-dark-pro-7bgqnyhm.js +1 -0
  127. package/dist/client/static/js/one-light-47y6etng.js +1 -0
  128. package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +1 -0
  129. package/dist/client/static/js/{pegDiagram-GJSIUBJH-77wxmp9g.js → pegDiagram-GJSIUBJH-dmvewetf.js} +1 -1
  130. package/dist/client/static/js/{perl-v5vbtzgf.js → perl-kmtz9dnv.js} +1 -1
  131. package/dist/client/static/js/{php-83qwy98t.js → php-bttrsbxy.js} +1 -1
  132. package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +1 -0
  133. package/dist/client/static/js/{pieDiagram-5QR66LMP-gvgfhez0.js → pieDiagram-5QR66LMP-1q9e7rcm.js} +2 -2
  134. package/dist/client/static/js/properties-brn72zdk.js +1 -0
  135. package/dist/client/static/js/python-g9mghwgm.js +1 -0
  136. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9zkbt5h8.js → quadrantDiagram-O4NWA36T-mvrem3n6.js} +4 -4
  137. package/dist/client/static/js/r-e247x4mw.js +1 -0
  138. package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +1 -0
  139. package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +1 -0
  140. package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +1 -0
  141. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +1 -0
  142. package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +1 -0
  143. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-w55bsyw6.js → railroadDiagram-XR7U4H2S-axttcfhw.js} +1 -1
  144. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-5qx7erta.js} +12 -12
  145. package/dist/client/static/js/{ruby-994n5j6e.js → ruby-dve3y59w.js} +1 -1
  146. package/dist/client/static/js/{rust-csv5f258.js → rust-b3ckax3e.js} +1 -1
  147. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-es87a3j6.js} +4 -4
  148. package/dist/client/static/js/{sass-p6g7qdv2.js → sass-emxqt5p2.js} +1 -1
  149. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nnta2hn0.js → sequenceDiagram-PO4LG4MO-dgpnjrtk.js} +21 -21
  150. package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-kyw0p86n.js} +1 -1
  151. package/dist/client/static/js/sql-0kar81jy.js +1 -0
  152. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3f2en220.js → stateDiagram-v2-GCMORJYK-vnsbw8y9.js} +3 -3
  153. package/dist/client/static/js/{svelte-bek3h1sz.js → svelte-dbsx1ehx.js} +1 -1
  154. package/dist/client/static/js/{swimlanes-2SLR337P-jgqt12z9.js → swimlanes-2SLR337P-060q1rep.js} +1 -1
  155. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-y77g9dq0.js +8 -0
  156. package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-8a3yqmx0.js} +6 -6
  157. package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +1 -0
  158. package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +1 -0
  159. package/dist/client/static/js/typescript-bm89v3gk.js +1 -0
  160. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-znkg9pkq.js → usecaseDiagram-POWQR4AR-18sp73v7.js} +51 -51
  161. package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-gf4y1r3s.js} +5 -5
  162. package/dist/client/static/js/{vue-y44m889c.js → vue-hyr58df9.js} +1 -1
  163. package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +1 -0
  164. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-77xz2d49.js → wardleyDiagram-VNRHLVJA-q0kwmbzh.js} +5 -5
  165. package/dist/client/static/js/xml-b7824nx0.js +1 -0
  166. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-40j1aqyf.js → xychartDiagram-PMCCYNJV-y0gpmg6m.js} +6 -6
  167. package/dist/client/static/js/yaml-kqqktdv1.js +1 -0
  168. package/package.json +4 -4
  169. package/src/client/borders.css +28 -15
  170. package/src/client/components/common/Modal.tsx +10 -2
  171. package/src/client/components/common/Toast.tsx +8 -3
  172. package/src/client/components/common/anchored-menu/index.tsx +10 -3
  173. package/src/client/components/common/command-palette/index.tsx +9 -3
  174. package/src/client/components/common/fullscreen-viewer/index.tsx +1 -1
  175. package/src/client/components/common/header-controls/index.test.tsx +40 -3
  176. package/src/client/components/common/header-controls/index.tsx +106 -56
  177. package/src/client/components/common/search-select/search-select.test.tsx +10 -1
  178. package/src/client/components/common/workspace-mark/index.test.tsx +67 -0
  179. package/src/client/components/common/workspace-mark/index.tsx +48 -0
  180. package/src/client/components/layout/ActivityBar.test.ts +1 -1
  181. package/src/client/components/layout/ActivityBarDrag.test.ts +1 -1
  182. package/src/client/components/layout/LeftActivityBar.test.ts +48 -3
  183. package/src/client/components/layout/LeftDock.tsx +33 -14
  184. package/src/client/components/layout/PanelButton.test.tsx +119 -0
  185. package/src/client/components/layout/PanelButton.tsx +2 -4
  186. package/src/client/components/layout/activity-bar/Row.tsx +125 -0
  187. package/src/client/components/layout/{ActivityBar.tsx → activity-bar/index.tsx} +81 -20
  188. package/src/client/components/layout/controls-bar/index.tsx +183 -0
  189. package/src/client/components/layout/desktop-layout/BarSlot.tsx +18 -0
  190. package/src/client/components/layout/desktop-layout/LeftColumn.test.tsx +187 -0
  191. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +81 -64
  192. package/src/client/components/layout/desktop-layout/LeftRail.tsx +60 -0
  193. package/src/client/components/layout/desktop-layout/LeftTabsColumn.tsx +91 -0
  194. package/src/client/components/layout/desktop-layout/ResizeHandle.tsx +19 -3
  195. package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +60 -0
  196. package/src/client/components/layout/desktop-layout/RightColumn.tsx +77 -28
  197. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +114 -104
  198. package/src/client/components/layout/desktop-layout/index.tsx +48 -45
  199. package/src/client/components/layout/desktop-layout/resizer/index.tsx +25 -83
  200. package/src/client/components/layout/desktop-layout/resizer/panel-motion.ts +61 -0
  201. package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +40 -2
  202. package/src/client/components/layout/desktop-layout/resizer/separator.tsx +89 -0
  203. package/src/client/components/layout/left-bar/index.tsx +88 -0
  204. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +5 -2
  205. package/src/client/components/layout/session-sidebar/Footer.tsx +28 -11
  206. package/src/client/components/layout/session-sidebar/FooterHost.tsx +167 -0
  207. package/src/client/components/layout/session-sidebar/SessionItem.tsx +2 -2
  208. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +8 -3
  209. package/src/client/components/layout/session-sidebar/footer-host.test.tsx +133 -0
  210. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +5 -2
  211. package/src/client/components/layout/session-title-bar/index.tsx +199 -0
  212. package/src/client/components/layout/top-bars.test.tsx +338 -0
  213. package/src/client/components/mobile/LayoutWrapper.tsx +13 -2
  214. package/src/client/components/mobile/SessionSidebar.tsx +10 -8
  215. package/src/client/components/mobile/drawer-layout.test.tsx +67 -0
  216. package/src/client/components/mobile/drawer-strip.tsx +37 -14
  217. package/src/client/components/mobile/left-drawer-nav.test.tsx +19 -127
  218. package/src/client/components/settings/LazyModal.tsx +8 -2
  219. package/src/client/components/settings/Modal.tsx +6 -2
  220. package/src/client/components/settings/apply-side-effects.ts +5 -0
  221. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +1 -0
  222. package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
  223. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +6 -5
  224. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +2 -2
  225. package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +105 -0
  226. package/src/client/components/settings/categories/appearance-settings/groups.ts +3 -2
  227. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  228. package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +2 -2
  229. package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
  230. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +2 -2
  231. package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +1 -1
  232. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
  233. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  234. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +8 -1
  235. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +8 -1
  236. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -2
  237. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -25
  238. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
  239. package/src/client/components/workspace/editor/Tab.tsx +160 -0
  240. package/src/client/components/workspace/editor/Tabs.test.ts +40 -0
  241. package/src/client/components/workspace/editor/Tabs.tsx +52 -102
  242. package/src/client/components/workspace/editor/index.tsx +2 -0
  243. package/src/client/components/workspace/editor/props.ts +6 -0
  244. package/src/client/components/workspace/file-explorer/OutlineResize.test.tsx +225 -0
  245. package/src/client/components/workspace/file-explorer/OutlineSection.tsx +43 -3
  246. package/src/client/components/workspace/file-explorer/index.tsx +1 -1
  247. package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
  248. package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
  249. package/src/client/components/workspace/panel-tabs/TabChip.tsx +48 -20
  250. package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +163 -0
  251. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +18 -9
  252. package/src/client/components/workspace/search-panel/Body.tsx +3 -3
  253. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  254. package/src/client/data/settings/omp-schema.json +205 -9
  255. package/src/client/floating.css +276 -0
  256. package/src/client/floating.test.ts +151 -0
  257. package/src/client/hooks/chat/timeline/session-pagination.ts +13 -9
  258. package/src/client/hooks/editor/use-outline-resize.ts +145 -0
  259. package/src/client/hooks/ui/border-style.test.ts +19 -7
  260. package/src/client/hooks/ui/border-style.ts +2 -3
  261. package/src/client/hooks/ui/chrome-style.test.ts +140 -0
  262. package/src/client/hooks/ui/chrome-style.ts +75 -0
  263. package/src/client/hooks/ui/media-query.ts +29 -0
  264. package/src/client/hooks/ui/presence.test.ts +104 -0
  265. package/src/client/hooks/ui/presence.ts +62 -0
  266. package/src/client/hooks/ui/style-attributes.test.ts +7 -6
  267. package/src/client/hooks/ui/surface-style.ts +2 -2
  268. package/src/client/hooks/ui/titlebar-inset.test.ts +56 -0
  269. package/src/client/hooks/ui/titlebar-inset.ts +31 -0
  270. package/src/client/hooks/workspace/available-width.ts +25 -1
  271. package/src/client/hooks/workspace/panel-peek.test.ts +124 -0
  272. package/src/client/hooks/workspace/panel-peek.ts +151 -0
  273. package/src/client/hooks/workspace/panel-rail.test.ts +86 -0
  274. package/src/client/hooks/workspace/panel-rail.ts +108 -0
  275. package/src/client/hooks/workspace/panel-resize.ts +8 -2
  276. package/src/client/hooks/workspace/rail-peek.test.ts +119 -0
  277. package/src/client/hooks/workspace/rail-peek.ts +68 -0
  278. package/src/client/hooks/workspace/right-panel-card.test.ts +71 -0
  279. package/src/client/hooks/workspace/right-panel-card.ts +69 -0
  280. package/src/client/hooks/workspace/right-panel-geometry.ts +172 -0
  281. package/src/client/hooks/workspace/right-side.ts +7 -0
  282. package/src/client/lib/desktop/titlebar.test.ts +6 -0
  283. package/src/client/lib/desktop/titlebar.ts +16 -0
  284. package/src/client/main.tsx +11 -0
  285. package/src/client/motion.test.ts +36 -0
  286. package/src/client/tailwind.css +67 -0
  287. package/src/server/lib/assets/shell-attributes.server.ts +14 -4
  288. package/src/server/lib/assets/shell-attributes.test.ts +35 -21
  289. package/src/server/lib/bundler/titlebar-css.test.ts +3 -2
  290. package/src/server/lib/realtime/topics/peer-relay.server.test.ts +19 -3
  291. package/src/server/lib/updates/omp.test.ts +40 -1
  292. package/src/server/lib/updates/omp.ts +29 -2
  293. package/src/server/plugins/ssr.ts +2 -0
  294. package/src/server/routes/settings/mcp.test.ts +16 -0
  295. package/src/server/routes/settings/mcp.ts +4 -0
  296. package/src/shared/lib/code/outline/resize.test.ts +57 -0
  297. package/src/shared/lib/code/outline/resize.ts +67 -0
  298. package/src/shared/lib/models/provider/glyph.test.ts +3 -1
  299. package/src/shared/lib/models/provider/glyph.ts +1 -0
  300. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +103 -3
  301. package/src/shared/lib/omp/config/schema.test.ts +9 -0
  302. package/src/shared/lib/omp/config/schema.ts +8 -0
  303. package/src/shared/lib/settings/defaults.ts +2 -0
  304. package/src/shared/lib/theme/border-style.test.ts +12 -14
  305. package/src/shared/lib/theme/border-style.ts +25 -18
  306. package/src/shared/lib/theme/chrome-style.test.ts +31 -0
  307. package/src/shared/lib/theme/chrome-style.ts +74 -0
  308. package/src/shared/lib/theme/surface-style.test.ts +4 -5
  309. package/src/shared/lib/theme/surface-style.ts +6 -5
  310. package/src/shared/lib/ui/motion.ts +29 -0
  311. package/src/shared/lib/workspace/floating-chrome.ts +23 -0
  312. package/src/shared/lib/workspace/session-state/store.ts +3 -0
  313. package/src/shared/lib/workspace/workspace-panel-widths.test.ts +73 -0
  314. package/src/shared/lib/workspace/workspace-panel-widths.ts +79 -17
  315. package/src/shared/types/settings/state.ts +10 -9
  316. package/src/test-support/left-drawer-harness.test-util.ts +169 -0
  317. package/src/test-support/peer-harness.ts +44 -36
  318. package/dist/client/static/js/ImageView-nc2n0w6s.js +0 -1
  319. package/dist/client/static/js/LayoutWrapper-j7786frq.js +0 -2
  320. package/dist/client/static/js/MergeDiffView-0rn5zsy5.js +0 -1
  321. package/dist/client/static/js/Modal-7ag7a9qq.js +0 -60
  322. package/dist/client/static/js/SessionsView-t9rhx472.js +0 -1
  323. package/dist/client/static/js/architecture-7GRP2DOG-bwn1drdz.js +0 -1
  324. package/dist/client/static/js/bash-zknkkwkw.js +0 -1
  325. package/dist/client/static/js/c-0w02jkxb.js +0 -1
  326. package/dist/client/static/js/cpp-p5b4vean.js +0 -1
  327. package/dist/client/static/js/css-9jzbvdyz.js +0 -1
  328. package/dist/client/static/js/cynefin-OW5HDTMX-jbc50ks8.js +0 -1
  329. package/dist/client/static/js/eventmodeling-NTZA5JFV-b37ey01t.js +0 -1
  330. package/dist/client/static/js/flowDiagram-KWPJA3E3-vd4z6bvy.js +0 -1
  331. package/dist/client/static/js/gitGraph-4MIJSDKK-mvqq7tcs.js +0 -1
  332. package/dist/client/static/js/graphql-xzykn0ba.js +0 -1
  333. package/dist/client/static/js/html-2zc3shky.js +0 -1
  334. package/dist/client/static/js/index-6vbra7p9.js +0 -1
  335. package/dist/client/static/js/index-9mgpbwfr.js +0 -1
  336. package/dist/client/static/js/index-c5401dqs.js +0 -4
  337. package/dist/client/static/js/index-dbsy29gn.js +0 -2
  338. package/dist/client/static/js/index-e39m185a.js +0 -2
  339. package/dist/client/static/js/index-fnaq8baz.js +0 -1
  340. package/dist/client/static/js/index-mttx9327.css +0 -1
  341. package/dist/client/static/js/index-n7bmqeqz.js +0 -1
  342. package/dist/client/static/js/index-skp6991n.js +0 -2
  343. package/dist/client/static/js/info-A6RAGUB7-zkv4crz7.js +0 -1
  344. package/dist/client/static/js/ini-62r3vxaf.js +0 -1
  345. package/dist/client/static/js/java-kacycary.js +0 -1
  346. package/dist/client/static/js/json-yrwpn6bd.js +0 -1
  347. package/dist/client/static/js/jsx-b40ag8q1.js +0 -1
  348. package/dist/client/static/js/lua-bk961f37.js +0 -1
  349. package/dist/client/static/js/markdown-b7rgzgd6.js +0 -1
  350. package/dist/client/static/js/one-dark-pro-7v4by00h.js +0 -1
  351. package/dist/client/static/js/one-light-5rfzh8p4.js +0 -1
  352. package/dist/client/static/js/packet-AYTQ26CC-dgpge627.js +0 -1
  353. package/dist/client/static/js/pie-WAS4IAKB-b8pgsqrd.js +0 -1
  354. package/dist/client/static/js/properties-k8gbzggp.js +0 -1
  355. package/dist/client/static/js/python-343tspad.js +0 -1
  356. package/dist/client/static/js/r-ycdwmv8g.js +0 -1
  357. package/dist/client/static/js/radar-RG4KPBEZ-fmfe5y27.js +0 -1
  358. package/dist/client/static/js/railroad-74A4TZTK-b5tks4ce.js +0 -1
  359. package/dist/client/static/js/railroad-abnf-HS5TGJTU-0sf4m0ze.js +0 -1
  360. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pjfy3pt7.js +0 -1
  361. package/dist/client/static/js/railroad-peg-WCYAUIDC-nr8ngt42.js +0 -1
  362. package/dist/client/static/js/sql-kwpd5w07.js +0 -1
  363. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-xx1z57df.js +0 -8
  364. package/dist/client/static/js/treeView-Q6P3EWNA-23r9fa68.js +0 -1
  365. package/dist/client/static/js/treemap-WGGIJYW6-mxxzdrj6.js +0 -1
  366. package/dist/client/static/js/typescript-4dchbnya.js +0 -1
  367. package/dist/client/static/js/wardley-WFR3VGLG-cbqtax1x.js +0 -1
  368. package/dist/client/static/js/xml-xs6qz3ya.js +0 -1
  369. package/dist/client/static/js/yaml-174nk5bn.js +0 -1
  370. package/src/client/components/layout/desktop-layout/TopNavbar.tsx +0 -238
  371. package/src/client/components/layout/session-sidebar/Header.test.ts +0 -98
  372. package/src/client/components/layout/session-sidebar/Header.tsx +0 -60
@@ -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 — but they still move the source total, and a
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
- expect(OMP_SCHEMA.source).toContain('666 settings');
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 `hairline` (an upgrade that silently
11
- * removed every separator would be a regression wearing a new setting's name),
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 hairline, never on a rule set that does not exist', () => {
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('an upgrade keeps its separators: the default IS the absent state', () => {
52
- // The two constants coincide today, and that is the point rather than an
53
- // accident: an install that never chose a style must keep the ruled look it
54
- // shipped with. A later release may move the DEFAULT while leaving the
55
- // ABSENT state at `hairline`; this test then fails and must be re-decided
56
- // deliberately, not silently.
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 the controls keep their edges. If the CSS ever stops honouring that
80
- // split, this sentence is the thing that becomes a lie.
81
- expect(BORDER_STYLE_COPY.borderless.description).toContain('Fields and switches keep their edge');
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 hairline and a control's edge are different facts, and only the
24
- * first may vanish.** The rungs split cleanly by role, measured per class
25
- * string rather than by eye:
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
- * | Rung | Count | What it draws |
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`, a table row's rule |
30
- * | `/15` | 313 | BOTH: a panel's outer edge and a chip's edge |
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 from `/25` up. A
35
- * focus ring that no longer appears is a WCAG failure (`DESIGN.md` §7), and
36
- * a field with no edge is not a calmer field — the form controls are exempted
37
- * by tag in `borders.css`, not by leaving their rung painted.
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 = 'hairline';
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 in general — a later
62
- * release may make `borderless` the shipped default, and every comparison must
63
- * be against the state CSS actually paints.
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 an upgrade — resolves to `hairline`, which is the look
93
- * every existing install already has. An upgrade must not silently remove the
94
- * separators a user has been reading.
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, cards and rows are removed; spacing and the panel tints carry the structure. The chat transcript keeps its own rules. Fields and switches keep their edge.',
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
  };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ import { describe, expect, test } from 'bun:test';
7
+ import {
8
+ CHROME_STYLE_WITHOUT_ATTRIBUTE,
9
+ DEFAULT_CHROME_STYLE,
10
+ resolveChromeStyle,
11
+ } from '@/shared/lib/theme/chrome-style';
12
+
13
+ describe('chrome style', () => {
14
+ test('a value this build cannot draw falls to the shipping default', () => {
15
+ expect(resolveChromeStyle('floating')).toBe('floating');
16
+ expect(resolveChromeStyle('classic')).toBe('classic');
17
+ expect(resolveChromeStyle(undefined)).toBe(DEFAULT_CHROME_STYLE);
18
+ expect(resolveChromeStyle('nonsense')).toBe(DEFAULT_CHROME_STYLE);
19
+ });
20
+
21
+ test('classic is the state CSS paints with no attribute', () => {
22
+ // The writer removes the attribute for this value, so `:root` (classic)
23
+ // and a document carrying nothing are the same state.
24
+ expect(CHROME_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
25
+ });
26
+
27
+ test('a fresh install ships floating, while classic is the absent attribute', () => {
28
+ expect(DEFAULT_CHROME_STYLE).toBe('floating');
29
+ expect(CHROME_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
30
+ });
31
+ });
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * How the DESKTOP chrome is arranged, as ONE of two styles.
8
+ *
9
+ * This is a PRESENTATION choice over one shell:
10
+ *
11
+ * - `classic` — flat chrome. The app bar, session title bar and controls bar
12
+ * sit at the top of their columns, and the panels are flat surfaces, exactly
13
+ * as an upgrade expects.
14
+ * - `floating` — every chrome surface is its own card with a 1px border,
15
+ * 12px radius, gutter and shadow, while the chat timeline stays the ground.
16
+ * The pixels live in `src/client/floating.css`, keyed by `[data-chrome]`.
17
+ *
18
+ * The style reaches the document as `data-chrome` on `<html>`, never as a prop:
19
+ * the top bars, the panels and the footer are separate subtrees, and a prop
20
+ * would be one call site each. The CSS is scoped to `.app-window[data-desktop]`,
21
+ * so the phone (whose drawers already own the screen) is untouched.
22
+ *
23
+ * `classic` is what CSS paints with no attribute; `floating` is the shipped
24
+ * default, so a fresh install starts with its chrome as cards.
25
+ */
26
+
27
+ export type ChromeStyle = 'classic' | 'floating';
28
+
29
+ /** The style a fresh install — or any stored value this build cannot draw — resolves to. */
30
+ export const DEFAULT_CHROME_STYLE: ChromeStyle = 'floating';
31
+
32
+ /**
33
+ * The style CSS paints when `data-chrome` is absent. `classic` is the absence
34
+ * of the attribute, so a writer REMOVES it rather than writing `classic`. This
35
+ * is deliberately not the shipped default (`floating`).
36
+ */
37
+ export const CHROME_STYLE_WITHOUT_ATTRIBUTE: ChromeStyle = 'classic';
38
+
39
+ /** Document attribute carrying the style. Read by CSS only. */
40
+ export const CHROME_ATTRIBUTE = 'data-chrome';
41
+
42
+ /** `app_settings` key holding the style, in the `kabmo_settings` blob. */
43
+ export const CHROME_STYLE_SETTING_KEY = 'chromeStyle';
44
+
45
+ /** Every style, in the order the settings control lists them. */
46
+ export const CHROME_STYLES = ['classic', 'floating'] as const;
47
+
48
+ export function isChromeStyle(value: unknown): value is ChromeStyle {
49
+ return value === 'classic' || value === 'floating';
50
+ }
51
+
52
+ export function resolveChromeStyle(value: unknown): ChromeStyle {
53
+ return isChromeStyle(value) ? value : DEFAULT_CHROME_STYLE;
54
+ }
55
+
56
+ export interface ChromeStyleCopy {
57
+ label: string;
58
+ description: string;
59
+ caption: string;
60
+ }
61
+
62
+ export const CHROME_STYLE_COPY: Record<ChromeStyle, ChromeStyleCopy> = {
63
+ classic: {
64
+ label: 'Classic',
65
+ description: 'Flat chrome. The bars sit on the panel edges and every surface is one plane.',
66
+ caption: 'Flat · no gutters',
67
+ },
68
+ floating: {
69
+ label: 'Floating',
70
+ description:
71
+ 'Every chrome surface is its own card with a border, radius and gutter. The chat stays the ground.',
72
+ caption: 'Cards · 5px gutter',
73
+ },
74
+ };
@@ -8,9 +8,8 @@
8
8
  *
9
9
  * The rule that matters is the FALLBACK and the DEFAULT: a stored value this
10
10
  * build cannot draw must resolve to the shipped default, and that default
11
- * (`glass`) is deliberately NOT the style CSS paints with no attribute
12
- * (`classic`) — mixing the two would leave the setting on glass while the
13
- * document showed opaque panels.
11
+ * (`classic`) coincides with the style CSS paints with no attribute (`classic`),
12
+ * so a writer that compares against the default still clears the attribute.
14
13
  */
15
14
 
16
15
  import { describe, expect, test } from 'bun:test';
@@ -50,8 +49,8 @@ describe('resolveSurfaceStyle', () => {
50
49
  });
51
50
 
52
51
  describe('the style table', () => {
53
- test('a fresh install resolves to glass, while the absent attribute stays classic', () => {
54
- expect(DEFAULT_SURFACE_STYLE).toBe('glass');
52
+ test('a fresh install resolves to classic, which is also the absent attribute', () => {
53
+ expect(DEFAULT_SURFACE_STYLE).toBe('classic');
55
54
  expect(SURFACE_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
56
55
  expect(SURFACE_STYLES).toContain(DEFAULT_SURFACE_STYLE);
57
56
  });
@@ -14,11 +14,12 @@
14
14
  *
15
15
  * - `classic` — opaque paper over the palette's canvas. Rendered when the
16
16
  * attribute is ABSENT, which is why `SURFACE_STYLE_WITHOUT_ATTRIBUTE` is
17
- * `classic` and not the default: CSS states the opaque look once, in `:root`.
17
+ * `classic`: CSS states the opaque look once, in `:root`. The shipped
18
+ * default a fresh install resolves to.
18
19
  * - `glass` — one frosted plane over a palette-coloured aura, with the
19
20
  * panels above it as translucent tints. The plane owns the blur (a single
20
21
  * `backdrop-filter` per window), so the panel count does not decide the
21
- * frame budget. The DEFAULT a fresh install resolves to.
22
+ * frame budget.
22
23
  *
23
24
  * The style reaches the document as `data-surface` on `<html>`, never as a
24
25
  * prop: the sidebar, the navbar, the composer and every modal are separate
@@ -36,15 +37,15 @@ export type SurfaceStyle = 'classic' | 'glass';
36
37
  * The style a fresh install — or any stored value this build cannot draw —
37
38
  * resolves to.
38
39
  */
39
- export const DEFAULT_SURFACE_STYLE: SurfaceStyle = 'glass';
40
+ export const DEFAULT_SURFACE_STYLE: SurfaceStyle = 'classic';
40
41
 
41
42
  /**
42
43
  * The style CSS paints when `data-surface` is absent.
43
44
  *
44
45
  * Two facts, kept apart on purpose: the DEFAULT is what a fresh install picks,
45
46
  * while the ABSENT state is what `:root` in `tailwind.css` paints. They
46
- * coincide only before the default moved to `glass`; every writer must compare
47
- * against THIS constant when deciding whether the attribute can be omitted.
47
+ * coincide today, but every writer must still compare against THIS constant
48
+ * when deciding whether the attribute can be omitted.
48
49
  */
49
50
  export const SURFACE_STYLE_WITHOUT_ATTRIBUTE: SurfaceStyle = 'classic';
50
51
 
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The app's open/close motion, as numbers stated once.
8
+ *
9
+ * A panel and the overlay inside it used to state their own durations (200ms in
10
+ * the resizer, 150/200ms in dialog class names, 180ms in the toast policy), and
11
+ * a surface that changed one without the other read as a two-step animation.
12
+ * The CSS counterpart lives in `src/client/tailwind.css`; `motion.test.ts` keeps
13
+ * the two equal.
14
+ *
15
+ * The easing is the panel's own: fast out of the gate, settling at the end. It
16
+ * is also what makes a width transition read as a deliberate slide instead of
17
+ * a linear shrink.
18
+ */
19
+ export const PANEL_TRANSITION_MS = 200;
20
+
21
+ /** Width transition easing. Kept as one string so the panel and the CSS agree. */
22
+ export const PANEL_EASING = 'cubic-bezier(0.22, 1, 0.36, 1)';
23
+
24
+ /**
25
+ * Overlay enter and exit. Shorter than the panel on purpose: a menu or dialog
26
+ * that takes as long as a column slide feels stuck behind the click.
27
+ */
28
+ export const OVERLAY_ENTER_MS = 160;
29
+ export const OVERLAY_EXIT_MS = 160;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The floating chrome card's geometry, in pixels.
8
+ *
9
+ * The stylesheet states the same gutter as `--float-gutter`; these constants
10
+ * are what the panel arithmetic reserves around a view's body, so the CSS and
11
+ * the width solver cannot disagree (`floating.test.ts` pins the pair).
12
+ */
13
+
14
+ /** The gap between a floating card and the panel edge it sits in. */
15
+ export const FLOATING_GUTTER_PX = 5;
16
+
17
+ /**
18
+ * Everything a card takes out of its panel's outer box: one gutter (the card is
19
+ * `100% - gutter` wide, with half a gutter on each side) plus the card's own 1px
20
+ * border on each side. A 44px rail inside a 51px panel is exactly this much
21
+ * chrome plus the rail.
22
+ */
23
+ export const FLOATING_CARD_INSET_PX = FLOATING_GUTTER_PX + 2;
@@ -45,6 +45,9 @@
45
45
  * id and drops entries against those ids.
46
46
  * - files.expandedPaths string[]
47
47
  * - files.searchQuery string
48
+ * - files.outlineExpanded boolean — the Files panel's outline is open
49
+ * - files.outlineHeight number — that outline's body height in px, as
50
+ * dragged (clamped against the panel's height)
48
51
  * - browser.zoomLevel number
49
52
  * - userBrowser.history string[]
50
53
  * - userBrowser.historyIndex number
@@ -105,6 +105,54 @@ describe('resolveWorkspacePanelWidths and the right panel', () => {
105
105
  });
106
106
  });
107
107
 
108
+ describe('a rail hover preview', () => {
109
+ const base = {
110
+ panelWidths: {},
111
+ editorWidthMode: 'editor' as const,
112
+ activeRightPanel: 'files',
113
+ activePanel: { defaultWidth: 268, defaultFraction: 0.3, minWidth: 200 },
114
+ previewPanel: { id: 'resources', defaultWidth: 300, defaultFraction: 0.3, minWidth: 200 },
115
+ chatHidden: false,
116
+ available: 1023,
117
+ showEditor: false,
118
+ showRightPanel: false,
119
+ };
120
+
121
+ test('draws the previewed view at its own width, without opening the column', () => {
122
+ const resolved = resolveWorkspacePanelWidths({
123
+ ...base,
124
+ panelWidths: { right: { resources: { px: 280 } } },
125
+ });
126
+
127
+ expect(resolved.previewShown).toBe(true);
128
+ // The stored pick was never opened: no separator, no "shown" report, and
129
+ // nothing that could be mistaken for a persisted choice.
130
+ expect(resolved.rightShown).toBe(false);
131
+ expect(resolved.handleCount).toBe(0);
132
+ expect(resolved.rightSuppressed).toBe(false);
133
+ // The preview uses the HOVERED view's slot (280), not the selected one.
134
+ expect(resolved.right).toBe(280);
135
+ });
136
+
137
+ test('a preview that cannot fit simply does not happen — and is not a refusal', () => {
138
+ const resolved = resolveWorkspacePanelWidths({ ...base, available: 400 });
139
+
140
+ expect(resolved.previewShown).toBe(false);
141
+ expect(resolved.right).toBe(0);
142
+ expect(resolved.handleCount).toBe(0);
143
+ // "Suppressed" makes the toggle explain itself; a hover must stay silent.
144
+ expect(resolved.rightSuppressed).toBe(false);
145
+ });
146
+
147
+ test('an OPEN panel wins over a preview of the same render', () => {
148
+ const resolved = resolveWorkspacePanelWidths({ ...base, showRightPanel: true });
149
+
150
+ expect(resolved.previewShown).toBe(false);
151
+ expect(resolved.rightShown).toBe(true);
152
+ expect(resolved.right).toBeGreaterThanOrEqual(200);
153
+ });
154
+ });
155
+
108
156
  describe('railShown', () => {
109
157
  test('a panel closed by its own control keeps the rail, which is the way back', () => {
110
158
  // The regression this pins: the rail was rendered from `rightPanelShown`,
@@ -122,3 +170,28 @@ describe('railShown', () => {
122
170
  expect(railShown({ sideShown: true, nav: 'tabs', rightSuppressed: false })).toBe(false);
123
171
  });
124
172
  });
173
+
174
+ describe('floating chrome is reserved inside the panels', () => {
175
+ const base = {
176
+ panelWidths: {},
177
+ editorWidthMode: 'editor' as const,
178
+ activeRightPanel: 'files',
179
+ activePanel: { defaultWidth: 268, defaultFraction: 0.3, minWidth: 200 },
180
+ chatHidden: false,
181
+ available: 1023,
182
+ showEditor: true,
183
+ showRightPanel: true,
184
+ };
185
+
186
+ test('the right rail and card gutters lift the view floor and default', () => {
187
+ const resolved = resolveWorkspacePanelWidths({ ...base, rightChromeWidth: 58 });
188
+ // 44px rail + 6px gutter each side + the card's 1px borders.
189
+ expect(resolved.rightMin).toBe(200 + 58);
190
+ expect(resolved.right).toBeGreaterThanOrEqual(200 + 58);
191
+ });
192
+
193
+ test('the editor document keeps its 320px floor beside the card gutters', () => {
194
+ const resolved = resolveWorkspacePanelWidths({ ...base, editorChromeWidth: 14 });
195
+ expect(resolved.editor).toBeGreaterThanOrEqual(MIN_EDITOR_PANEL_WIDTH + 14);
196
+ });
197
+ });