@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.
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-ab8wswhm.js} +3 -3
  4. package/dist/client/static/js/{CsvGrid-39m8pp1c.js → CsvGrid-czssywvz.js} +2 -2
  5. package/dist/client/static/js/{DocxView-vd99cv12.js → DocxView-ke0dwdmt.js} +3 -3
  6. package/dist/client/static/js/{DrawioView-6nq4412n.js → DrawioView-a1whhy84.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-cs51gszy.js → HtmlPreview-dr32dwjy.js} +1 -1
  8. package/dist/client/static/js/ImageView-zf4kh5wp.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-dncbzcea.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-btdx9yb9.js +1 -0
  11. package/dist/client/static/js/Modal-5cxfw2rv.js +60 -0
  12. package/dist/client/static/js/{PdfView-0zab721q.js → PdfView-2kdn91f9.js} +1 -1
  13. package/dist/client/static/js/SessionsView-vbn0nvx4.js +1 -0
  14. package/dist/client/static/js/{SheetView-2wdn5hkd.js → SheetView-ettr9pdw.js} +9 -9
  15. package/dist/client/static/js/{SvgPreview-fmrfxd7z.js → SvgPreview-hzcejjry.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-41scfh9v.js → abnfDiagram-O67JEVCF-kdmv4y72.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-qyrwaq0x.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-tszxy2g7.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-0ye36hhv.js} +5 -5
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-6bzaq8sd.js → classDiagram-v2-NBCMYWYE-szgk1shv.js} +6 -6
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-z3fhgcba.js → cose-bilkent-JH36ORCC-0s9s4mmv.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-664g28ze.js} +2 -2
  30. package/dist/client/static/js/{dagre-6A5THRUB-2a2f32dv.js → dagre-6A5THRUB-ga4rp1jx.js} +2 -2
  31. package/dist/client/static/js/{diagram-22UHCM2B-wgbyr6b7.js → diagram-22UHCM2B-aagj46ty.js} +15 -15
  32. package/dist/client/static/js/{diagram-3UASUU5V-5122b41x.js → diagram-3UASUU5V-20qk6whk.js} +2 -2
  33. package/dist/client/static/js/{diagram-ATOU4E4O-1gt9fr7e.js → diagram-ATOU4E4O-1vg1tfca.js} +2 -2
  34. package/dist/client/static/js/{diagram-CDSNMT55-v6hs59jb.js → diagram-CDSNMT55-90d6jrqs.js} +4 -4
  35. package/dist/client/static/js/{diagram-MLGK6HIB-yey2m5nm.js → diagram-MLGK6HIB-8je4z8m1.js} +2 -2
  36. package/dist/client/static/js/{diagram-MPIPVDR6-hg4f3q4d.js → diagram-MPIPVDR6-0kzpexsj.js} +2 -2
  37. package/dist/client/static/js/{dockerfile-56tfnp5r.js → dockerfile-5nrbr0ef.js} +1 -1
  38. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-2mhc9aar.js → ebnfDiagram-ZINNZB2B-47yg36zx.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-5hqp6r2d.js} +1 -1
  41. package/dist/client/static/js/{erDiagram-OPXOYQCR-1kysnby9.js → erDiagram-OPXOYQCR-bt9te7r0.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-500fcx2a.js +1 -0
  45. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4g65rpm.js → ganttDiagram-FUAMR5RP-kzc13swm.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-bjf8aa3j.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-jaf968hx.js → index-0kcnghxn.js} +4 -4
  52. package/dist/client/static/js/{index-8tzt0dek.js → index-11qn05g9.js} +2 -2
  53. package/dist/client/static/js/{index-sqyvj03y.js → index-1fmjhm2d.js} +9 -9
  54. package/dist/client/static/js/{index-42q5gg7t.js → index-24a40rw8.js} +1 -1
  55. package/dist/client/static/js/{index-np2rfq06.js → index-2dmew334.js} +2 -2
  56. package/dist/client/static/js/{index-wkxsypj1.js → index-2zhmmtye.js} +2 -2
  57. package/dist/client/static/js/{index-m62sf9wn.js → index-3x7cbxwq.js} +1 -1
  58. package/dist/client/static/js/{index-fg0ne74z.js → index-475dc6h9.js} +2 -2
  59. package/dist/client/static/js/{index-1mkn5fbf.js → index-4vtc4xct.js} +197 -197
  60. package/dist/client/static/js/{index-spnrx2c0.js → index-5srvxsht.js} +1 -1
  61. package/dist/client/static/js/{index-tz5ewsza.js → index-653x8zdq.js} +9 -9
  62. package/dist/client/static/js/index-6c1s0v4b.js +1 -0
  63. package/dist/client/static/js/{index-hgzf4ask.js → index-776n5n29.js} +5 -5
  64. package/dist/client/static/js/{index-a70sk36c.js → index-85jfn1fz.js} +2 -2
  65. package/dist/client/static/js/{index-yrwm437g.js → index-97sw4d9n.js} +2 -2
  66. package/dist/client/static/js/{index-csxnqgzw.js → index-9g2nzgpx.js} +6 -6
  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-db6s66jr.js → index-bkn6jtn1.js} +2 -2
  70. package/dist/client/static/js/{index-kt77dwsg.js → index-bq9f0mxp.js} +7 -7
  71. package/dist/client/static/js/{index-ndqtff48.js → index-ca6tmamh.js} +2 -2
  72. package/dist/client/static/js/index-cvm2ha01.js +1 -0
  73. package/dist/client/static/js/index-d11mbz2q.js +4 -0
  74. package/dist/client/static/js/{index-3kedv94b.js → index-dabnbvbc.js} +2 -2
  75. package/dist/client/static/js/{index-sg65xdey.js → index-enm77k5z.js} +2 -2
  76. package/dist/client/static/js/{index-nf4hq5tg.js → index-excgtjhx.js} +14 -14
  77. package/dist/client/static/js/{index-51rbgeh9.js → index-fb2fjndj.js} +5 -5
  78. package/dist/client/static/js/index-fen0x3qh.js +1 -0
  79. package/dist/client/static/js/{index-vs2y8gxr.js → index-fr6wsqk8.js} +2 -2
  80. package/dist/client/static/js/{index-xqz7bqcn.js → index-gwgh27h3.js} +87 -87
  81. package/dist/client/static/js/{index-2h7xh93h.js → index-h7agc069.js} +1 -1
  82. package/dist/client/static/js/{index-69mnn71v.js → index-hwv7bfxc.js} +2 -2
  83. package/dist/client/static/js/{index-461ga40v.js → index-hxy1sadd.js} +2 -2
  84. package/dist/client/static/js/{index-s7p2wdr1.js → index-jz4012t5.js} +1 -1
  85. package/dist/client/static/js/{index-gajpd90b.js → index-k9yf2txw.js} +2 -2
  86. package/dist/client/static/js/{index-dw9epydj.js → index-kj70d2q9.js} +2 -2
  87. package/dist/client/static/js/{index-7enfdvh0.js → index-krdz5vby.js} +2 -2
  88. package/dist/client/static/js/{index-42k78whj.js → index-kyr612aa.js} +1 -1
  89. package/dist/client/static/js/{index-fvphmwkf.js → index-m24sebb0.js} +2 -2
  90. package/dist/client/static/js/{index-d9sfavx1.js → index-mtav0rpf.js} +2 -2
  91. package/dist/client/static/js/{index-58z2hatp.js → index-n8r7r86r.js} +1 -1
  92. package/dist/client/static/js/index-pg87cgpy.js +2 -0
  93. package/dist/client/static/js/{index-r42f3r1p.js → index-q1a40v20.js} +2 -2
  94. package/dist/client/static/js/{index-jct0jryd.js → index-qccydkze.js} +2 -2
  95. package/dist/client/static/js/index-qmvstmvh.js +1 -0
  96. package/dist/client/static/js/{index-pn0ja904.js → index-r38e0rya.js} +2 -2
  97. package/dist/client/static/js/{index-92h38pwg.js → index-s4j2ghmx.js} +2 -2
  98. package/dist/client/static/js/index-sr14vwn5.js +2 -0
  99. package/dist/client/static/js/{index-z82nd2bd.js → index-sx83ans2.js} +2 -2
  100. package/dist/client/static/js/index-t6nqy2n5.css +1 -0
  101. package/dist/client/static/js/{index-fsa18ns9.js → index-twwsn91p.js} +2 -2
  102. package/dist/client/static/js/{index-nwbr15b3.js → index-v88m5sva.js} +2 -2
  103. package/dist/client/static/js/{index-qc3de995.js → index-vgcw01yk.js} +1 -1
  104. package/dist/client/static/js/{index-pr8wsq24.js → index-vn59zz0k.js} +2 -2
  105. package/dist/client/static/js/{index-hrez92pw.js → index-wf5j0009.js} +7 -7
  106. package/dist/client/static/js/{index-q3k8r0ms.js → index-wsy6y5em.js} +9 -9
  107. package/dist/client/static/js/{index-d201jvs9.js → index-xy0m8te9.js} +1 -1
  108. package/dist/client/static/js/index-y6zbkh4p.js +2 -0
  109. package/dist/client/static/js/{index-h1xbx74w.js → index-yfcy4cf6.js} +2 -2
  110. package/dist/client/static/js/{index-y5pkqrga.js → index-z5s9tmj8.js} +2 -2
  111. package/dist/client/static/js/{index-vs3g6njv.js → index-zr3965k9.js} +1 -1
  112. package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +1 -0
  113. package/dist/client/static/js/{infoDiagram-VRGFBTTK-7craq9x2.js → infoDiagram-VRGFBTTK-jy5zvvj8.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-pfky1nnf.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-mvaf7rfh.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-hw2xwe6e.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-hsw87hmq.js} +6 -6
  125. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-fsxysg6f.js → mindmap-definition-NLK3R4M7-wfe4d846.js} +7 -7
  126. package/dist/client/static/js/one-dark-pro-ckq5capv.js +1 -0
  127. package/dist/client/static/js/one-light-a908z398.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-cvnmxgst.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-0n3gz7sv.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-9qqh6xvv.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-5f3x3762.js} +1 -1
  144. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-828s1e5g.js → requirementDiagram-PLB6GJNP-a68bv6kh.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-qjhdt4b0.js} +1 -1
  147. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-34f3fyvg.js → sankeyDiagram-IPEJSGJF-ry7xcphh.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-mekzzhet.js} +21 -21
  150. package/dist/client/static/js/{sizeCapture-INFHLROL-gpcramga.js → sizeCapture-INFHLROL-pvc16ame.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-3ytxby83.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-c2zfp416.js} +1 -1
  155. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +8 -0
  156. package/dist/client/static/js/{timeline-definition-EJHVYXUP-sgchcs11.js → timeline-definition-EJHVYXUP-xtvv4za2.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-sz6b7bnv.js} +51 -51
  161. package/dist/client/static/js/{vennDiagram-UO4OBE2U-dncg96ej.js → vennDiagram-UO4OBE2U-56q0qs51.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-xvtyvde9.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-jcs20s84.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 +50 -20
  250. package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +172 -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
@@ -1,19 +1,19 @@
1
- import { useEffect, useRef } from 'preact/hooks';
2
1
  import { lazy } from 'preact/compat';
3
- import type { RefObject } from 'preact/compat';
2
+ import type { ReactNode, RefObject } from 'preact/compat';
4
3
  import { Group, Panel, type PanelImperativeHandle } from '@/client/components/layout/desktop-layout/resizer';
5
4
  import { PanelSuspense } from '@/client/components/layout/desktop-layout/PanelSuspense';
6
5
  import { ChatTimeline } from '@/client/components/workspace/chat-timeline/index';
7
- import { usePanelCatalog, usePanelSlotPlugins } from '@/client/components/workspace/plugin-panel/resolve';
8
6
  import { EditorPluginRail } from '@/client/components/workspace/editor/PluginRail';
9
- import { ActivityBar } from '@/client/components/layout/ActivityBar';
7
+ import { ActivityBar } from '@/client/components/layout/activity-bar';
10
8
  import { useEditorDrop, type EditorDropResult } from '@/client/hooks/editor/use-editor-drop';
11
9
  import { EditorDropOverlay } from '@/client/components/workspace/editor/EditorDropOverlay';
12
10
  import { ResizeHandle } from '@/client/components/layout/desktop-layout/ResizeHandle';
13
11
  import { RightColumn } from '@/client/components/layout/desktop-layout/RightColumn';
14
12
  import type { PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
15
- import { useAvailableWidth } from '@/client/hooks/workspace/available-width';
16
- import { readPanelWidths, useSnapResize } from '@/client/hooks/workspace/panel-resize';
13
+ import { usePanelPeek } from '@/client/hooks/workspace/panel-peek';
14
+ import { useChromeStyle } from '@/client/hooks/ui/chrome-style';
15
+ import { useRightPanelGeometry } from '@/client/hooks/workspace/right-panel-geometry';
16
+ import { readPanelWidths } from '@/client/hooks/workspace/panel-resize';
17
17
  import {
18
18
  HANDLE_WIDTH,
19
19
  MIN_EDITOR_PANEL_WIDTH,
@@ -21,7 +21,7 @@ import {
21
21
  type EditorWidthMode,
22
22
  type PanelWidths,
23
23
  } from '@/shared/lib/workspace/panel-widths';
24
- import { railShown, resolveWorkspacePanelWidths } from '@/shared/lib/workspace/workspace-panel-widths';
24
+ import { FLOATING_CARD_INSET_PX } from '@/shared/lib/workspace/floating-chrome';
25
25
 
26
26
  const Editor = lazy(() => import('@/client/components/workspace/editor/index').then((m) => ({ default: m.Editor })));
27
27
 
@@ -43,6 +43,8 @@ interface WorkspacePanelsProps {
43
43
  * collapsed columns is a column of marks that switches nothing.
44
44
  */
45
45
  showRightSide: boolean;
46
+ /** The side is running its close motion; its chrome stays until it lands. */
47
+ rightSideLeaving: boolean;
46
48
  /** A built-in view id or a plugin panel key (`plugin:<id>/<panel>`). */
47
49
  activeRightPanel: string;
48
50
  /** The `plugin:<id>` whose panel owns the editor column, or null. */
@@ -84,6 +86,8 @@ interface WorkspacePanelsProps {
84
86
  rightOpenRequest?: { panelKey: string; nonce: number } | null;
85
87
  /** The editor panel's corner control: put the editor column away. */
86
88
  onHideEditor: () => void;
89
+ /** Bring the sidebar back from full view (the chat title bar is collapsed there). */
90
+ onExpandSidebar?: () => void;
87
91
  onSessionTitle: (title: string | null) => void;
88
92
  onPanelWidths: (patch: PanelWidths) => void;
89
93
  /**
@@ -94,6 +98,10 @@ interface WorkspacePanelsProps {
94
98
  * owner of the flag is the one that has to explain the refusal.
95
99
  */
96
100
  onRightPanelSuppressed?: (suppressed: boolean | null) => void;
101
+ /** The session title bar, spanning the chat column's width. */
102
+ chatTopBar: ReactNode;
103
+ /** The controls bar, spanning the right panel's width. */
104
+ rightTopBar: ReactNode;
97
105
  }
98
106
 
99
107
  export function WorkspacePanels(props: WorkspacePanelsProps) {
@@ -104,6 +112,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
104
112
  editorPanelRef,
105
113
  showRightPanel,
106
114
  showRightSide,
115
+ rightSideLeaving,
107
116
  activeRightPanel,
108
117
  activeEditorPanelKey,
109
118
  onSelectEditorPanel,
@@ -130,92 +139,61 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
130
139
  rightNav,
131
140
  rightOpenRequest,
132
141
  onHideEditor,
142
+ onExpandSidebar,
133
143
  onSessionTitle,
134
144
  onPanelWidths,
135
145
  onRightPanelSuppressed,
146
+ chatTopBar,
147
+ rightTopBar,
136
148
  } = props;
137
149
 
138
- /**
139
- * Dropping a file opens it — but only over the CHAT or the EDITOR.
140
- *
141
- * The handlers sit on those two panels' own boxes, so a drop over the sidebar
142
- * or the right panel never reaches them: the event bubbles past to the window
143
- * and is ignored. A layout-wide target was the previous shape and it accepted
144
- * a drop over both of those, where "open this file" is not what the surface
145
- * means.
146
- *
147
- * `enabled` is gated on a workspace being active: a path resolves through the
148
- * server's allow-list, so a drop with no workspace can only be refused, and a
149
- * target that lights up to refuse is worse than one that stays dark.
150
- */
151
- const drop = useEditorDrop({ enabled: hasActiveContext, onResult: onDropResult });
150
+ // Drops open a file over the CHAT or the EDITOR only; with no workspace they
151
+ // can only be refused.
152
152
 
153
- // The group's own area: the base every stored fraction is a share of, and the
154
- // budget the chat floor is subtracted from. Measured through the group's
155
- // element, not a wrapper — the wrapper also spans the activity bar, which is
156
- // not area any panel may take.
157
- const groupRef = useRef<HTMLDivElement>(null);
158
- const available = useAvailableWidth(groupRef);
159
- // A panel follows the group instantly while the area or the width mode is
160
- // moving, instead of re-targeting its 200ms transition on every tick.
161
- const snapResize = useSnapResize(available, chatHidden);
162
-
163
- // ONE catalog for both kinds of panel. The list is memoised per render pass
164
- // and the components inside it are `lazy()` at module scope, so switching the
165
- // right panel toggles CSS visibility instead of unmounting: a view's state
166
- // (tree expansion, search results, terminal buffer) survives switches and no
167
- // panel re-fetches its data just because the user looked away.
168
- const catalog = usePanelCatalog();
169
- // A stored selection can name a view the user has just placed on the LEFT
170
- // rail — the right column then holds no such panel. Falling back to the first
171
- // view it does hold is what the phone's drawer already does, and it keeps a
172
- // move from leaving a "not available" notice in a column that has views. A
173
- // PANEL THAT DOES NOT EXIST still gets the notice, which is a different fact.
174
- const allPanels = usePanelCatalog('all');
175
- const movedToLeft = allPanels.some((panel) => panel.id === activeRightPanel && panel.side === 'left');
176
- const activePanel = catalog.find((panel) => panel.id === activeRightPanel) ?? (movedToLeft ? catalog[0] : undefined);
177
- const shownRightPanel = activePanel?.id ?? activeRightPanel;
178
- // The EDITOR column's plugin slot (`panel`): a takeover, so it has no tab in
179
- // the strip and this rail is its only switch. Empty until a plugin registers
180
- // one, which is why a Kabmo without one looks exactly as it did.
181
- const editorPlugins = usePanelSlotPlugins();
153
+ const drop = useEditorDrop({ enabled: hasActiveContext, onResult: onDropResult });
154
+ // Hover preview of the right rail; pointer state only (see `panel-peek`).
155
+ const peek = usePanelPeek({ dismissed: showRightPanel });
156
+ // The chrome style is the document attribute CSS paints from, so it is read
157
+ // here rather than threaded down as a prop: the floating shell is the one
158
+ // that keeps the controls bar on screen while the side it names is put away.
159
+ const floatingChrome = useChromeStyle() === 'floating';
160
+ // `rightSideLeaving` comes from the layout, which owns the side's presence:
161
+ // the controls bar itself needs the same flag to pin over the shrinking card.
182
162
 
183
- // The active view's own floor and defaults are read here and handed to the
184
- // resolver: a view that is switched off (or a plugin that has not loaded) has
185
- // no entry, and the right panel falls back to the editor's own floor — it
186
- // renders the notice, not a view.
163
+ // The column's geometry — width, card, catalog, and the rail's hover preview
164
+ // — is one decision, owned by one hook. See `right-panel-geometry.ts`.
165
+ const geometry = useRightPanelGeometry({
166
+ panelWidths,
167
+ editorWidthMode,
168
+ showEditor,
169
+ showRightPanel,
170
+ showRightSide,
171
+ chatHidden,
172
+ activeRightPanel,
173
+ rightNav,
174
+ preview: peek.peek?.side === 'right' ? peek.peek.view : null,
175
+ onSuppressed: onRightPanelSuppressed,
176
+ });
187
177
  const {
188
- editor: editorWidth,
189
- right: rightWidth,
190
- rightShown: rightPanelShown,
191
- rightSuppressed,
192
- editorMax: editorMaxSize,
193
- rightMax: rightMaxSize,
194
- rightMin: rightPanelMin,
178
+ groupRef,
179
+ available,
180
+ snapResize,
181
+ catalog,
182
+ editorPlugins,
183
+ activePanel,
184
+ shownRightPanel,
185
+ previewPanel,
186
+ previewShown,
187
+ editorWidth,
188
+ rightWidth,
189
+ rightPanelShown,
190
+ editorMaxSize,
195
191
  handleCount,
196
- } = resolveWorkspacePanelWidths({
197
- available,
198
- panelWidths,
199
- editorWidthMode,
200
- activeRightPanel: shownRightPanel,
201
- activePanel,
202
- showEditor,
203
- showRightPanel,
204
- chatHidden,
205
- });
206
-
207
- // The owner of the flag is the navbar's toggle, so the refusal travels up:
208
- // a click that changes nothing visible is the defect this exists to prevent.
209
- // `null` before the group is measured, so the first suppression of a load can
210
- // be told apart from a panel being taken away.
211
- useEffect(() => {
212
- // `0` is the pre-measurement area as much as `null` is: the observer reports
213
- // it on the first frame, and the resolver answers "fits" for both.
214
- onRightPanelSuppressed?.(available == null || available <= 0 ? null : rightSuppressed);
215
- }, [available, rightSuppressed, onRightPanelSuppressed]);
192
+ rightCard,
193
+ } = geometry;
216
194
 
217
195
  return (
218
- <div className="flex flex-1 overflow-hidden">
196
+ <div className="float-row float-row-inner flex flex-1 overflow-hidden">
219
197
  <Group
220
198
  orientation="horizontal"
221
199
  id="kabmo-layout"
@@ -226,7 +204,15 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
226
204
  // recomputes would otherwise rewrite the saved widths with the
227
205
  // clamped sizes they just derived from them.
228
206
  onPanelWidths(
229
- readPanelWidths({ editorPanelRef, rightPanelRef, available, chatHidden, editorWidthMode, shownRightPanel }),
207
+ readPanelWidths({
208
+ editorPanelRef,
209
+ rightPanelRef,
210
+ available,
211
+ chatHidden,
212
+ editorWidthMode,
213
+ shownRightPanel,
214
+ rightPanelOpen: rightPanelShown,
215
+ }),
230
216
  );
231
217
  }}
232
218
  >
@@ -240,21 +226,36 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
240
226
  available,
241
227
  reservedPx:
242
228
  (showEditor ? editorWidth : 0) +
243
- (rightPanelShown ? rightWidth : 0) +
229
+ (rightPanelShown ? rightWidth : rightCard.railVisible ? rightCard.width : 0) +
244
230
  handleCount * HANDLE_WIDTH,
245
231
  })}
246
232
  >
247
- <div className="relative w-full h-full" {...drop.dropProps} {...drop.captureDropProps} inert={chatHidden}>
248
- <EditorDropOverlay visible={drop.isDragging} />
249
- <ChatTimeline className="w-full h-full" appSettings={appSettings} onSessionTitle={onSessionTitle} />
233
+ <div data-float-stack className="relative flex h-full w-full flex-col">
234
+ {/* The title overlays the transcript; the timeline's top padding keeps messages below it.
235
+ The bar's SIBLING is the right side's controls card, drawn only while
236
+ the floating chrome has that side hidden: the title is the flex column
237
+ that gives way, so a long session name truncates before the card
238
+ instead of running under it. `z-30` beats the later grip (`z-10`) and rail (`z-20`). */}
239
+ <div className="chat-title-overlay pointer-events-none absolute inset-x-0 top-0 z-30 flex">
240
+ <div className="min-w-0 flex-1">{chatTopBar}</div>
241
+ {floatingChrome && !showRightSide && !rightSideLeaving ? (
242
+ <div data-float-right-bar="" className="presence-fade">
243
+ {rightTopBar}
244
+ </div>
245
+ ) : null}
246
+ </div>
247
+ <div data-editor-drop="" className="relative h-full min-h-0" {...drop.dropProps} {...drop.captureDropProps} inert={chatHidden}>
248
+ <EditorDropOverlay visible={drop.isDragging} />
249
+ <ChatTimeline className="float-chat w-full h-full" appSettings={appSettings} onSessionTitle={onSessionTitle} />
250
+ </div>
250
251
  </div>
251
252
  </Panel>
252
- {showEditor && !chatHidden && <ResizeHandle />}
253
+ <ResizeHandle open={showEditor && !chatHidden} />
253
254
  <Panel
254
255
  panelRef={editorPanelRef}
255
256
  id="editor-panel"
256
257
  defaultSize={editorWidth}
257
- minSize={MIN_EDITOR_PANEL_WIDTH}
258
+ minSize={MIN_EDITOR_PANEL_WIDTH + FLOATING_CARD_INSET_PX}
258
259
  maxSize={editorMaxSize}
259
260
  collapsed={!showEditor}
260
261
  // With the chat collapsed the editor is the surface that takes the
@@ -268,7 +269,7 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
268
269
  filler={chatHidden}
269
270
  transitionMs={snapResize ? 0 : undefined}
270
271
  >
271
- <div className="flex w-full h-full" {...drop.dropProps} {...drop.captureDropProps}>
272
+ <div data-float-card="editor" className="flex w-full h-full" {...drop.dropProps} {...drop.captureDropProps}>
272
273
  <EditorDropOverlay visible={drop.isDragging} />
273
274
  <EditorPluginRail
274
275
  activeKey={activeEditorPanelKey}
@@ -296,24 +297,27 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
296
297
  onCopyPath={onCopyPath}
297
298
  onRevealInFiles={onRevealInFiles}
298
299
  onHidePanel={onHideEditor}
300
+ onExpandSidebar={onExpandSidebar}
299
301
  />
300
302
  </PanelSuspense>
301
303
  </div>
302
304
  </div>
303
305
  </Panel>
304
306
 
305
- {rightPanelShown && <ResizeHandle />}
307
+ <ResizeHandle open={rightPanelShown} />
306
308
  <RightColumn
307
309
  panelRef={rightPanelRef}
308
310
  transitionMs={snapResize ? 0 : undefined}
309
311
  open={rightPanelShown}
310
- width={rightWidth}
311
- minWidth={rightPanelMin}
312
- maxWidth={rightMaxSize}
312
+ width={rightCard.width}
313
+ minWidth={rightCard.minWidth}
314
+ maxWidth={rightCard.maxWidth}
313
315
  catalog={catalog}
314
316
  shownPanel={shownRightPanel}
315
317
  selectedPanel={activeRightPanel}
316
318
  activePanelFound={Boolean(activePanel)}
319
+ preview={previewShown && previewPanel ? previewPanel.id : null}
320
+ peek={peek}
317
321
  hasActiveContext={hasActiveContext}
318
322
  activeProjectPath={activeProjectPath}
319
323
  refreshKey={refreshKey}
@@ -323,18 +327,24 @@ export function WorkspacePanels(props: WorkspacePanelsProps) {
323
327
  navStyle={rightNav}
324
328
  onSelectPanel={onChangeRightPanel}
325
329
  {...(rightOpenRequest ? { openRequest: rightOpenRequest } : {})}
330
+ topBar={rightPanelShown || rightSideLeaving ? rightTopBar : null}
331
+ rail={
332
+ rightCard.railVisible || rightSideLeaving ? (
333
+ <ActivityBar
334
+ side="right"
335
+ activePanel={shownRightPanel}
336
+ preview={previewShown && previewPanel ? previewPanel.id : null}
337
+ onChangePanel={onChangeRightPanel}
338
+ isPanelOpen={rightPanelShown}
339
+ hasActiveContext={hasActiveContext}
340
+ activeProjectPath={activeProjectPath}
341
+ onPeekIntent={(panel) => peek.intent('right', panel)}
342
+ onPeekIntentCancel={peek.cancelIntent}
343
+ />
344
+ ) : null
345
+ }
326
346
  />
327
347
  </Group>
328
-
329
- {/* The rail is how a view is CHOSEN, so it goes only where choosing one
330
- can still put something on screen: a rail beside a SUPPRESSED panel is
331
- a column of marks that switches nothing (and 44px the chat cannot
332
- spare). A panel closed by its own control is not suppressed — the rail
333
- is then the way back, and hiding it with the column left the column
334
- unreachable except through the navbar's chord. */}
335
- {railShown({ sideShown: showRightSide, nav: rightNav, rightSuppressed }) && (
336
- <ActivityBar side="right" activePanel={shownRightPanel} onChangePanel={onChangeRightPanel} isPanelOpen={rightPanelShown} hasActiveContext={hasActiveContext} activeProjectPath={activeProjectPath} />
337
- )}
338
348
  </div>
339
349
  );
340
350
  }
@@ -4,7 +4,9 @@ import { LeftColumn } from '@/client/components/layout/desktop-layout/LeftColumn
4
4
  import { DesktopOverlays } from '@/client/components/layout/desktop-layout/DesktopOverlays';
5
5
  import { useFileTabs } from '@/client/hooks/workspace/file-tabs';
6
6
  import { useSessionState } from '@/client/hooks/workspace/session-state';
7
- import { TopNavbar } from '@/client/components/layout/desktop-layout/TopNavbar';
7
+ import { LeftBar } from '@/client/components/layout/left-bar';
8
+ import { SessionTitleBar } from '@/client/components/layout/session-title-bar';
9
+ import { ControlsBar } from '@/client/components/layout/controls-bar';
8
10
  import { WorkspacePanels } from '@/client/components/layout/desktop-layout/WorkspacePanels';
9
11
  import { WindowAura } from '@/client/components/layout/WindowAura';
10
12
  import { ShellNotice } from '@/client/components/layout/ShellNotice';
@@ -69,16 +71,13 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
69
71
  // column's own. Resolved through the width module so the resizer, the stored
70
72
  // width and the initial size cannot disagree.
71
73
  const leftDockMinWidth = resolveLeftDockMinWidth(leftView);
72
-
73
74
  const editorPanelRef = useRef<PanelImperativeHandle | null>(null);
74
75
  const rightPanelRef = useRef<PanelImperativeHandle | null>(null);
75
76
  const leftPanelRef = useRef<PanelImperativeHandle | null>(null);
76
-
77
77
  // The workspace the session belongs to, its root, and whether one exists —
78
78
  // one hook, because a worktree session reading its folder's path is how the
79
79
  // panels ended up on the wrong checkout.
80
- const { folder: activeProjectFolder, path: activeProjectPath, hasActiveContext } = useActiveWorkspaceProject(folders, sessionId);
81
-
80
+ const { folder: activeFolder, path: activeProjectPath, hasActiveContext } = useActiveWorkspaceProject(folders, sessionId);
82
81
  // Opening a file must show the column (and the side it lives on). The hook
83
82
  // that owns that flag is built below, after the tab list exists — a tab is
84
83
  // one of the things that gives the column content — so the callback reaches
@@ -127,23 +126,14 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
127
126
  });
128
127
  rightSideRef.current = rightSide;
129
128
  const { showRightPanel, showEditor } = rightSide;
130
- const workspace = useWorkspacePanelsMode({ sessionId, revealPanel: rightSide.revealRightPanel, requestPanel: requestRightPanel });
129
+ useWorkspacePanelsMode({ sessionId, revealPanel: rightSide.revealRightPanel, requestPanel: requestRightPanel });
131
130
  // ONE flag for the whole side, read by the navbar's control AND by the rail:
132
131
  // a second "is anything visible" spelling would let the button read one state
133
132
  // while the rail draws another.
134
133
  const rightSideShown = !rightSide.hidden;
135
-
136
- /**
137
- * The editor's WIDTH mode (`compact` / `full`), entered from either toolbar.
138
- *
139
- * It collapses columns around the editor and is resolved here, not in the
140
- * panels, because the sidebar is a sibling of the whole workspace group: a
141
- * full view that left it standing would not be the width it promises.
142
- *
143
- * The mode is derived from `showEditor`, so closing the column returns the
144
- * chat and the sidebar without writing anything — reopening it comes back to
145
- * the width the user chose.
146
- */
134
+ // The editor's WIDTH mode (`compact` / `full`), entered from either toolbar.
135
+ // Resolved here because the sidebar is a sibling of the whole group, and
136
+ // derived from `showEditor`, so closing the column restores the widths.
147
137
  const editorView = useEditorViewLayout(showEditor);
148
138
  const sidebarOpen = showLeftPanel && !editorView.sidebarHidden;
149
139
 
@@ -170,18 +160,12 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
170
160
  toggleSide: rightSide.toggleRightSide,
171
161
  });
172
162
 
173
- /**
174
- * Ask for the sidebar (or put it away).
175
- *
176
- * Full view hides the sidebar, so asking for it must leave that mode —
177
- * otherwise the toggle flips a stored flag the layout is ignoring and the
178
- * click does nothing. `compact` is the mode that keeps the wider editor.
179
- */
163
+ // Ask for the sidebar (or put it away). Full view hides it, so asking for it
164
+ // must leave that mode first, or the click flips a flag the layout ignores.
180
165
  const handleToggleLeftPanel = (show: boolean) => {
181
166
  if (show) editorView.revealSidebar();
182
167
  setShowLeftPanel(show);
183
168
  };
184
-
185
169
  // The workspace shortcuts, from the shared keymap so the toggles' tooltips
186
170
  // name the bound chord. `⌘S` is absent: the editor owns it, and binding it
187
171
  // twice would save the file twice.
@@ -233,6 +217,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
233
217
  return (
234
218
  <div
235
219
  data-testid="app-root"
220
+ data-desktop=""
236
221
  className="app-window relative flex flex-col h-screen w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas"
237
222
  >
238
223
  <WindowAura />
@@ -240,7 +225,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
240
225
 
241
226
  {/* Main Workspace: the resizable LEFT dock (rail + view, see
242
227
  `LeftColumn`) plus the right stack. */}
243
- <div className="flex flex-1 overflow-hidden">
228
+ <div className="float-row flex flex-1 overflow-hidden">
244
229
  <Group
245
230
  orientation="horizontal"
246
231
  id="kabmo-main"
@@ -256,9 +241,10 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
256
241
  navStyle={leftNav}
257
242
  view={leftView}
258
243
  onSelectView={(panel) => {
259
- // A rail click means "show this view" — never "toggle" it. A
260
- // toggle would hide the rail the user is aiming at, and the dock
261
- // has its own collapse control in the header.
244
+ // A programmatic selection (a drop, `omp:open-panel`) shows the
245
+ // view and opens the column. The RAIL's own toggle lives in
246
+ // `LeftColumn`: clicking the active mark collapsed the dock there,
247
+ // while a drop must not.
262
248
  setActiveLeftView(panel);
263
249
  if (!sidebarOpen) handleToggleLeftPanel(true);
264
250
  }}
@@ -274,26 +260,20 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
274
260
  onRefresh={handleRefreshWorkspace}
275
261
  onOpenFile={(file) => handleOpenFile(file as Parameters<typeof handleOpenFile>[0])}
276
262
  onMobileToggle={onMobileToggle}
263
+ topBar={
264
+ <LeftBar
265
+ showLeftPanel={sidebarOpen}
266
+ streamStatus={streamStatus}
267
+ onToggleLeftPanel={() => handleToggleLeftPanel(!sidebarOpen)}
268
+ />
269
+ }
277
270
  />
278
271
 
279
- {/* Right stack: top navbar + resizable workspace (the group's filler).
280
- The column IS the document's main content, so it carries the
281
- landmark: a screen reader could otherwise jump only between the
282
- sidebar's `aside` and the header's `nav`, with everything the app
283
- exists for unreachable by landmark. */}
272
+ {/* Right stack: the group's filler and the document's `main` landmark,
273
+ so the chat is reachable by landmark rather than only `aside`/`nav`. */}
284
274
  <Panel id="main-right-stack" filler minSize={0}>
285
275
  <main className="flex flex-col h-full">
286
276
  <PluginBootstrap workspacePath={activeProjectPath} />
287
- <TopNavbar
288
- sessionTitle={workspace.active ? activeProjectFolder?.name ?? null : sessionTitle}
289
- sessionId={sessionId}
290
- showLeftPanel={sidebarOpen}
291
- showRightSide={rightSideShown && rightPanel.sideVisible}
292
- streamStatus={streamStatus}
293
- onToggleRightSide={rightPanel.toggle}
294
- onToggleLeftPanel={() => handleToggleLeftPanel(!sidebarOpen)}
295
- sessionActions={workspace.active ? undefined : sessionActions}
296
- />
297
277
 
298
278
  <WorkspacePanels
299
279
  appSettings={appSettings}
@@ -302,6 +282,7 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
302
282
  editorPanelRef={editorPanelRef}
303
283
  showRightPanel={showRightPanel}
304
284
  showRightSide={rightSideShown}
285
+ rightSideLeaving={rightSide.leaving}
305
286
  rightNav={rightNav}
306
287
  rightOpenRequest={rightOpenRequest}
307
288
  activeRightPanel={activeRightPanel}
@@ -332,9 +313,31 @@ export function DesktopLayout({ sessionId, onMobileToggle, appSettings = {} }: D
332
313
  onChangeRightPanel={handleChangeRightPanel}
333
314
  onCloseRightPanel={rightSide.closeRightPanel}
334
315
  onHideEditor={rightSide.hideEditor}
316
+ onExpandSidebar={editorView.sidebarHidden ? () => handleToggleLeftPanel(true) : undefined}
335
317
  onSessionTitle={setSessionTitle}
336
318
  onPanelWidths={commitWidths}
337
319
  onRightPanelSuppressed={rightPanel.report}
320
+ chatTopBar={
321
+ <SessionTitleBar
322
+ sessionTitle={sessionTitle} folder={activeFolder}
323
+ sessionId={sessionId}
324
+ sessionActions={sessionActions}
325
+ streamStatus={streamStatus}
326
+ sidebarOpen={sidebarOpen}
327
+ leftBarVisible={sidebarOpen || /* the bar is collapsed with the chat */ editorView.chatHidden || (dock.enabled && leftNav === 'rail')}
328
+ onExpandSidebar={() => handleToggleLeftPanel(true)}
329
+ rightSideHidden={!rightSideShown}
330
+ onToggleRightSide={rightPanel.toggle}
331
+ />
332
+ }
333
+ rightTopBar={
334
+ <ControlsBar
335
+ sessionId={sessionId}
336
+ showRightSide={rightSideShown && rightPanel.sideVisible}
337
+ onToggleRightSide={rightPanel.toggle}
338
+ pinned={rightSide.leaving}
339
+ />
340
+ }
338
341
  />
339
342
  </main>
340
343
  </Panel>