@kabmo-labs/kabmo 0.45.0 → 0.46.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 (361) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +412 -412
  3. package/dist/client/static/js/{CsvGrid-z74weshk.js → CsvGrid-br4j001k.js} +2 -2
  4. package/dist/client/static/js/{DocxView-dpe5x9ab.js → DocxView-kmtkbmmw.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-ftzwjf8v.js → DrawioView-3df0g3jr.js} +2 -2
  6. package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
  8. package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
  9. package/dist/client/static/js/{PdfView-vjec8z3z.js → PdfView-p5z7c7eg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-g7z3fxbp.js → SessionsView-t06h6zfx.js} +1 -1
  11. package/dist/client/static/js/{SheetView-hhtfkdhe.js → SheetView-agw459v2.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-48n3ex6p.js → SvgPreview-b9rfy1h6.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-bpvzdara.js → abnfDiagram-O67JEVCF-wbnhzcnj.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-xw62cr7j.js → architectureDiagram-NJMV4G6O-t2sgevea.js} +3 -3
  16. package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
  17. package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-x3a6cgar.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
  19. package/dist/client/static/js/c-acmn1zc9.js +1 -0
  20. package/dist/client/static/js/{c4Diagram-YGBWAQC7-katvaxbj.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-bjz4mqqh.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-fsn80psf.js → cose-bilkent-JH36ORCC-c4tnh4mg.js} +1 -1
  23. package/dist/client/static/js/cpp-620mvjkk.js +1 -0
  24. package/dist/client/static/js/css-bt76kxbq.js +1 -0
  25. package/dist/client/static/js/css-drfs4n12.js +1 -0
  26. package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
  27. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-cfhbsnkm.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-j2wt7ns6.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-abrdj714.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-dbn15bxn.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-y79pwf7w.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-f8ryt86n.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-ws7wn3q9.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-zmznrg13.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-qgc921kw.js → dockerfile-00hqsk9c.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-y5q7hy1v.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.js} +1 -1
  37. package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
  38. package/dist/client/static/js/{elk-276RUBZZ-vddwbn6q.js → elk-276RUBZZ-dsq91er5.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-qdqcx4g4.js → erDiagram-OPXOYQCR-p7p13mbh.js} +9 -9
  40. package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
  41. package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
  42. package/dist/client/static/js/flowDiagram-KWPJA3E3-7b4w6phx.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-763hk9rm.js → ganttDiagram-FUAMR5RP-bwgnttyk.js} +4 -4
  44. package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
  45. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bgx1q5nw.js → gitGraphDiagram-X574FWY7-ca0gj5am.js} +13 -13
  46. package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
  47. package/dist/client/static/js/html-m0megrvb.js +1 -0
  48. package/dist/client/static/js/index-064vdkrs.js +2 -0
  49. package/dist/client/static/js/{index-w57zbym7.js → index-16sd19f0.js} +2 -2
  50. package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
  51. package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
  52. package/dist/client/static/js/{index-jpp0zm7t.js → index-29npynva.js} +19 -19
  53. package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
  54. package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
  55. package/dist/client/static/js/index-3bf7r7z4.js +12 -0
  56. package/dist/client/static/js/index-3qnjdjg2.js +1 -0
  57. package/dist/client/static/js/index-4bqssvt6.js +2 -0
  58. package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
  59. package/dist/client/static/js/{index-szk3vk8h.js → index-5gf52a6d.js} +2 -2
  60. package/dist/client/static/js/{index-fqatn0vh.js → index-5h8y54t6.js} +1 -1
  61. package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
  62. package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
  63. package/dist/client/static/js/{index-mwm8aptp.js → index-7055hdx1.js} +1 -1
  64. package/dist/client/static/js/index-8pksqzwq.js +1 -0
  65. package/dist/client/static/js/index-95kese1h.js +1 -0
  66. package/dist/client/static/js/{index-acphtw1r.js → index-9d3n04vb.js} +2 -2
  67. package/dist/client/static/js/{index-cj39b26c.js → index-aagt3382.js} +1 -1
  68. package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
  69. package/dist/client/static/js/{index-xkwybnf3.js → index-amys498v.js} +198 -198
  70. package/dist/client/static/js/{index-vkerrwpa.js → index-bafe7hmd.js} +2 -2
  71. package/dist/client/static/js/{index-34ff2vq6.js → index-bjv5ga2e.js} +2 -2
  72. package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
  73. package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
  74. package/dist/client/static/js/index-dpy3ewrn.css +1 -0
  75. package/dist/client/static/js/{index-61j9qkck.js → index-dr5hca5b.js} +3 -3
  76. package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
  77. package/dist/client/static/js/index-eqhjs1yv.js +4 -0
  78. package/dist/client/static/js/{index-x7rfmwg8.js → index-ex5dtdx2.js} +6 -6
  79. package/dist/client/static/js/{index-228yzebd.js → index-f7te27n5.js} +5 -5
  80. package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
  81. package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
  82. package/dist/client/static/js/index-gq5w5w8x.js +2 -0
  83. package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
  84. package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
  85. package/dist/client/static/js/{index-h0rmkz9n.js → index-j718pxb3.js} +2 -2
  86. package/dist/client/static/js/{index-3sqndc9n.js → index-jkay7aw7.js} +2 -2
  87. package/dist/client/static/js/{index-05hx4ftf.js → index-k5zfzgez.js} +2 -2
  88. package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
  89. package/dist/client/static/js/{index-3d21hpk7.js → index-ncpwteyt.js} +2 -2
  90. package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
  91. package/dist/client/static/js/{index-f7paep2f.js → index-pwe6chtp.js} +1 -1
  92. package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
  93. package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
  94. package/dist/client/static/js/{index-dn6pqym4.js → index-qn200x1b.js} +6 -6
  95. package/dist/client/static/js/index-red856x6.js +1 -0
  96. package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
  97. package/dist/client/static/js/{index-dgjerk4w.js → index-ta6gpcpw.js} +3 -3
  98. package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
  99. package/dist/client/static/js/{index-5b2vsbcf.js → index-twsbv1yn.js} +1 -1
  100. package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
  101. package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
  102. package/dist/client/static/js/{index-gmq5pbcv.js → index-x1fqhhpp.js} +64 -64
  103. package/dist/client/static/js/{index-p21mvqc2.js → index-y2z8nsvw.js} +2 -2
  104. package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
  105. package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
  106. package/dist/client/static/js/{index-mrw7qweg.js → index-zedt16w7.js} +1 -1
  107. package/dist/client/static/js/{index-r6e44vkx.js → index-zq0qxb17.js} +2 -2
  108. package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
  109. package/dist/client/static/js/{infoDiagram-VRGFBTTK-e66pw8d9.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
  110. package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
  111. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-ehc0q24d.js → ishikawaDiagram-OU5B5YK6-9jmeszag.js} +3 -3
  112. package/dist/client/static/js/java-jj41mty3.js +1 -0
  113. package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
  114. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-hye05qtd.js → journeyDiagram-ZHPQQLJL-0d7xe845.js} +5 -5
  115. package/dist/client/static/js/json-rnh2h17x.js +1 -0
  116. package/dist/client/static/js/jsx-4gecrt29.js +1 -0
  117. package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
  118. package/dist/client/static/js/{kanban-definition-PNTS6WVX-vce614m8.js → kanban-definition-PNTS6WVX-7p83rwdn.js} +5 -5
  119. package/dist/client/static/js/lua-zszaw2f7.js +1 -0
  120. package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
  121. package/dist/client/static/js/{mermaid.core-gc79re5p.js → mermaid.core-hwhzw0wv.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-ft1whaf5.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
  123. package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
  124. package/dist/client/static/js/one-light-e6r3vsz4.js +1 -0
  125. package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
  126. package/dist/client/static/js/{pegDiagram-GJSIUBJH-2s4ykhaa.js → pegDiagram-GJSIUBJH-kd8t53tx.js} +1 -1
  127. package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
  128. package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
  129. package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
  130. package/dist/client/static/js/{pieDiagram-5QR66LMP-7h8dp0z3.js → pieDiagram-5QR66LMP-h3x03f80.js} +3 -3
  131. package/dist/client/static/js/properties-rkptax7r.js +1 -0
  132. package/dist/client/static/js/python-qf1se1mj.js +1 -0
  133. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-pteyxjxr.js → quadrantDiagram-O4NWA36T-y2b1ncbg.js} +6 -6
  134. package/dist/client/static/js/r-ms0cygq2.js +1 -0
  135. package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
  136. package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
  137. package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
  138. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
  139. package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
  140. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-68z9wdt0.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-c08nmey6.js → requirementDiagram-PLB6GJNP-g5e9fk17.js} +10 -10
  142. package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
  143. package/dist/client/static/js/{rust-ke5ec0w5.js → rust-1v8xbxn9.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r3kvjs5.js → sankeyDiagram-IPEJSGJF-y9ht91gf.js} +4 -4
  145. package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
  146. package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
  147. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-ctjycd88.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-97ndea95.js → sizeCapture-INFHLROL-k6dhfxex.js} +1 -1
  149. package/dist/client/static/js/sql-hd42h8wx.js +1 -0
  150. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-aqnmsb96.js → stateDiagram-v2-GCMORJYK-y3akpsm4.js} +3 -3
  151. package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
  152. package/dist/client/static/js/{swimlanes-2SLR337P-v50cx1nx.js → swimlanes-2SLR337P-89081dr3.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-1ggrtdcj.js → timeline-definition-EJHVYXUP-tz6r8g3q.js} +6 -6
  155. package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
  156. package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
  157. package/dist/client/static/js/tsx-gx7td06z.js +1 -0
  158. package/dist/client/static/js/typescript-1a808spn.js +1 -0
  159. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ybcwhpzs.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9ggrt07.js → vennDiagram-UO4OBE2U-qdmjf6x3.js} +7 -7
  161. package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
  162. package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
  163. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-v79nb9kx.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
  164. package/dist/client/static/js/xml-3117mxd9.js +1 -0
  165. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-43thqscz.js → xychartDiagram-PMCCYNJV-d7n2av2t.js} +5 -5
  166. package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
  167. package/extensions/kabmo-modes/index.ts +1 -1
  168. package/extensions/kabmo-modes/parked.test.ts +2 -2
  169. package/extensions/kabmo-modes/parked.ts +10 -9
  170. package/extensions/kabmo-modes/plan.test.ts +4 -4
  171. package/extensions/kabmo-modes/plan.ts +6 -6
  172. package/extensions/kabmo-modes/session.ts +2 -2
  173. package/package.json +1 -1
  174. package/src/client/components/common/FolderPicker.tsx +1 -1
  175. package/src/client/components/common/Modal.tsx +8 -3
  176. package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
  177. package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
  178. package/src/client/components/common/PWAInstallButton.tsx +1 -1
  179. package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
  180. package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
  181. package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
  182. package/src/client/components/layout/desktop-layout/LeftColumn.tsx +15 -0
  183. package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
  184. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  185. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
  186. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  187. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  188. package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
  189. package/src/client/components/mobile/RightSidebar.tsx +27 -10
  190. package/src/client/components/mobile/SessionSidebar.tsx +112 -137
  191. package/src/client/components/mobile/drawer-strip.tsx +85 -0
  192. package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
  193. package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
  194. package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
  195. package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
  196. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
  197. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
  198. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
  199. package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
  200. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
  201. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
  202. package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
  203. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
  204. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
  205. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
  206. package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
  207. package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +96 -0
  208. package/src/client/components/settings/Band.test.tsx +83 -0
  209. package/src/client/components/settings/Band.tsx +96 -0
  210. package/src/client/components/settings/Modal.tsx +44 -69
  211. package/src/client/components/settings/apply-side-effects.ts +15 -4
  212. package/src/client/components/settings/band-height.test.tsx +16 -3
  213. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
  214. package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
  215. package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
  216. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  217. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  218. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
  219. package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
  220. package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
  221. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
  222. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  223. package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
  224. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
  225. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
  226. package/src/client/components/settings/drill.tsx +113 -0
  227. package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
  228. package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
  229. package/src/client/components/settings/master-detail/index.tsx +45 -25
  230. package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
  231. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
  232. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
  233. package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
  234. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  235. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
  236. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
  237. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
  238. package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
  239. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  240. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
  241. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
  242. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
  243. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
  244. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  245. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
  246. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
  247. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
  248. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
  249. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
  250. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
  251. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
  252. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
  253. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
  254. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
  255. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
  256. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
  257. package/src/client/components/workspace/diff-panel/index.tsx +1 -1
  258. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
  259. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  260. package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
  261. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  262. package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
  263. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
  264. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
  265. package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
  266. package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
  267. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
  268. package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
  269. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  270. package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
  271. package/src/client/data/settings/omp-schema.json +103 -42
  272. package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
  273. package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
  274. package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
  275. package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
  276. package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
  277. package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
  278. package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
  279. package/src/client/hooks/workspace/left-dock.ts +19 -0
  280. package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
  281. package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
  282. package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +283 -0
  283. package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
  284. package/src/client/hooks/workspace/panel-tabs.ts +19 -2
  285. package/src/client/lib/ui/phone-row.test.ts +52 -0
  286. package/src/client/lib/ui/phone-row.ts +71 -0
  287. package/src/client/press-state.test.ts +179 -0
  288. package/src/client/tailwind.css +146 -0
  289. package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
  290. package/src/server/lib/omp/rpc/constants.test.ts +6 -1
  291. package/src/shared/lib/chat/ask-form/data.ts +155 -0
  292. package/src/shared/lib/chat/ask-form/fields.ts +4 -0
  293. package/src/shared/lib/chat/ask-form/index.ts +8 -0
  294. package/src/shared/lib/chat/ask-form/types.ts +12 -0
  295. package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
  296. package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
  297. package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
  298. package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
  299. package/src/shared/lib/omp/dialog-methods.ts +6 -0
  300. package/src/shared/lib/omp/session/wait-idle.ts +7 -3
  301. package/src/shared/lib/settings/defaults.ts +3 -2
  302. package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
  303. package/src/shared/lib/workspace/panel-nav.ts +20 -9
  304. package/src/shared/types/omp/agent.ts +20 -3
  305. package/src/shared/types/settings/state.ts +17 -5
  306. package/dist/client/static/js/ImageView-vchn6wyq.js +0 -1
  307. package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +0 -2
  308. package/dist/client/static/js/Modal-tteg7vtb.js +0 -59
  309. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
  310. package/dist/client/static/js/bash-mevzaywf.js +0 -1
  311. package/dist/client/static/js/c-y1y6v00q.js +0 -1
  312. package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
  313. package/dist/client/static/js/css-3w3p9s67.js +0 -1
  314. package/dist/client/static/js/css-g85rwzty.js +0 -1
  315. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
  316. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
  317. package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +0 -1
  318. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
  319. package/dist/client/static/js/graphql-027z8sc0.js +0 -1
  320. package/dist/client/static/js/html-fqda6wxx.js +0 -1
  321. package/dist/client/static/js/index-0vk6v4y4.js +0 -2
  322. package/dist/client/static/js/index-47wn2gjx.js +0 -2
  323. package/dist/client/static/js/index-4b5b6g0k.js +0 -1
  324. package/dist/client/static/js/index-5mrqfs82.js +0 -12
  325. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  326. package/dist/client/static/js/index-a11ptyzf.js +0 -1
  327. package/dist/client/static/js/index-f98dhbt4.js +0 -4
  328. package/dist/client/static/js/index-kg2sk8cf.js +0 -1
  329. package/dist/client/static/js/index-q76jfb54.js +0 -1
  330. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
  331. package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
  332. package/dist/client/static/js/java-zs6qh1dm.js +0 -1
  333. package/dist/client/static/js/javascript-b9mkygak.js +0 -1
  334. package/dist/client/static/js/json-qn73s8xb.js +0 -1
  335. package/dist/client/static/js/jsx-gahhfczw.js +0 -1
  336. package/dist/client/static/js/lua-d8enp14s.js +0 -1
  337. package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
  338. package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +0 -1
  339. package/dist/client/static/js/one-light-2b5w3ksh.js +0 -1
  340. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
  341. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
  342. package/dist/client/static/js/properties-g6tpq003.js +0 -1
  343. package/dist/client/static/js/python-cy06fzhg.js +0 -1
  344. package/dist/client/static/js/r-vw8berfv.js +0 -1
  345. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
  346. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
  347. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
  348. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
  349. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
  350. package/dist/client/static/js/sql-bwnasywx.js +0 -1
  351. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +0 -8
  352. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
  353. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
  354. package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
  355. package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
  356. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
  357. package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
  358. package/dist/client/static/js/yaml-avewh7n5.js +0 -1
  359. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
  360. package/src/shared/lib/ui/safe-area.test.ts +0 -28
  361. package/src/shared/lib/ui/safe-area.ts +0 -42
@@ -1,6 +1,7 @@
1
1
  import { useMemo } from 'preact/hooks';
2
2
  import { AlertCircle, AlertTriangle, CheckCircle2, Cpu, Info, Server } from 'lucide-preact';
3
3
  import type { ToolCallData } from '@/shared/types';
4
+ import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
4
5
  import { FallbackOutput } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput';
5
6
  import { getToolInputAction } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input';
6
7
 
@@ -155,7 +156,11 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
155
156
  const details = (tool.details ?? {}) as Record<string, any>;
156
157
  const output = tool.output ?? '';
157
158
 
159
+ // omp 19.1.0 runs `lsp` as a bash tool command; its parsed arguments ride
160
+ // `details.toolCommands[].args` instead of `details.xdev.args`.
161
+ const commandArgs = soleToolCommand(tool)?.args;
158
162
  const isCapabilities =
163
+ commandArgs?.action === 'capabilities' ||
159
164
  details.xdev?.args?.action === 'capabilities' ||
160
165
  getToolInputAction(tool.input) === 'capabilities' ||
161
166
  output.includes('capabilities:');
@@ -1,6 +1,7 @@
1
1
  import { useMemo } from 'preact/hooks';
2
2
  import { Boxes, Braces } from 'lucide-preact';
3
3
  import type { ToolCallData } from '@/shared/types';
4
+ import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
4
5
  import { tryParseJson } from '@/shared/lib/code/syntax-highlight';
5
6
  import { isRecord } from '@/shared/lib/util/guards';
6
7
  import { MarkdownRenderer } from '@/client/components/common/MarkdownRenderer';
@@ -90,19 +91,27 @@ function ObjectNode({ data }: { data: Record<string, unknown> }) {
90
91
  );
91
92
  }
92
93
 
93
- /** Panel untuk tool MCP — dipanggil agent sebagai `write xd://mcp__<tool>`
94
- * (argumen JSON di `input.content`) atau langsung bernama `mcp__<tool>`.
95
- * Argumen JSON dirender per key; value non-JSON sebagai markdown;
96
- * JSON list sebagai list. Output fallback ke FallbackOutput, atau per-key
97
- * bila hasilnya juga JSON object/list. */
94
+ /** Panel untuk tool MCP. Tiga bentuk pemanggilan, satu panel: `write xd://mcp__<tool>`
95
+ * (sesi sebelum 19.1.0), `mcp__<tool>` top-level, dan tool command
96
+ * (`bash` yang menjalankan `mcp__<tool> --flag …`, dengan argumen terurai di
97
+ * `details.toolCommands[].args`). Argumen dirender per key; value non-JSON
98
+ * sebagai markdown; JSON list sebagai list. Output fallback ke FallbackOutput,
99
+ * atau per-key bila hasilnya juga JSON object/list. */
98
100
  export function Mcp({ tool }: { tool: ToolCallData }) {
99
101
  const inputObj =
100
102
  typeof tool.input === 'object' && tool.input !== null ? (tool.input as Record<string, unknown>) : undefined;
101
103
 
104
+ const command = soleToolCommand(tool);
102
105
  const path = typeof inputObj?.path === 'string' ? inputObj.path : tool.target || '';
103
- const name = typeof tool.name === 'string' ? tool.name : '';
106
+ const name = command?.dispatch.tool ?? (typeof tool.name === 'string' ? tool.name : '');
104
107
  const device = (path ? path.replace(/^xd:\/\//, '') : name).replace(/^mcp__/, '');
105
- const content = typeof inputObj?.content === 'string' ? inputObj.content : '';
108
+ // A tool command's arguments were parsed against the tool's schema; the
109
+ // legacy `write` shape carries them as JSON text in `content`.
110
+ const content = command
111
+ ? JSON.stringify(command.args, null, 2)
112
+ : typeof inputObj?.content === 'string'
113
+ ? inputObj.content
114
+ : '';
106
115
 
107
116
  const parsedArgs = useMemo(() => (content ? tryParseJson(content) : { isValid: false }), [content]);
108
117
  const argsData = parsedArgs.isValid ? parsedArgs.data : undefined;
@@ -1,15 +1,27 @@
1
1
  import { CheckCircle2, FileText, XCircle } from 'lucide-preact';
2
2
  import type { ToolCallData } from '@/shared/types';
3
+ import { soleInnerDetails, soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
3
4
 
4
- /** Panel untuk tool `resolve` dan `reject` (AST proposal resolution via xd://resolve / xd://reject). */
5
+ /**
6
+ * Panel untuk `resolve` dan `reject` — keputusan atas staged proposal.
7
+ *
8
+ * Dua bentuk yang sama-sama harus tampil di sini: tool command omp 19.1.0
9
+ * (`bash` yang menjalankan `resolve "…"`, dengan hasil tool aslinya di
10
+ * `details.toolCommands[].inner`) dan pemanggilan tool langsung (tanpa `bash`
11
+ * aktif). Bentuk `write xd://resolve` yang lama tetap dibaca karena sesi yang
12
+ * tersimpan sebelum pin masih menyimpannya.
13
+ */
5
14
  export function Resolve({ tool }: { tool: ToolCallData }) {
6
15
  const details = (tool.details ?? {}) as Record<string, any>;
7
16
  const xdev = (details.xdev ?? {}) as Record<string, any>;
8
- const inner = (xdev.inner ?? {}) as Record<string, any>;
17
+ const command = soleToolCommand(tool);
18
+ const inner = (soleInnerDetails(tool) ?? xdev.inner ?? {}) as Record<string, any>;
19
+ const args = (command?.args ?? xdev.args ?? {}) as Record<string, any>;
9
20
  const input = typeof tool.input === 'object' && tool.input !== null ? (tool.input as Record<string, any>) : undefined;
21
+ const name = command?.dispatch.tool ?? tool.name;
10
22
 
11
23
  const isReject =
12
- tool.name === 'reject' ||
24
+ name === 'reject' ||
13
25
  tool.target?.includes('reject') ||
14
26
  xdev.tool === 'reject' ||
15
27
  inner.action === 'reject' ||
@@ -17,7 +29,7 @@ export function Resolve({ tool }: { tool: ToolCallData }) {
17
29
 
18
30
  const reason =
19
31
  inner.reason ||
20
- xdev.args?.reason ||
32
+ args.reason ||
21
33
  (typeof input?.content === 'string' ? input.content : '') ||
22
34
  (typeof tool.input === 'string' ? tool.input : '');
23
35
 
@@ -21,6 +21,7 @@
21
21
 
22
22
  import type { ToolCallData } from '@/shared/types/chat';
23
23
  import { procPathOf } from '@/shared/lib/omp/session/proc';
24
+ import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
24
25
 
25
26
  /** Legacy Kabmo/MOCK alias → canonical omp tool name. */
26
27
  export const TOOL_ALIASES: Record<string, string> = {
@@ -115,27 +116,29 @@ export function xdDevice(tool: ToolCallData): string | undefined {
115
116
  return path.slice('xd://'.length).split(/[/?#\s]/)[0].toLowerCase() || undefined;
116
117
  }
117
118
 
118
- /** The `xd://` path a READ names, if any — the device's documentation URL.
119
+ /** The documentation URL a READ names, if any.
119
120
  *
120
- * omp answers a read of `xd://` (the listing), `xd://<device>` and
121
- * `xd://<device>/<topic>` with `xdevDocs`, and its own reader draws all three as
122
- * an ordinary read — `xd://` has no read card there, unlike `proc://` and
123
- * `cfg://`. Dispatching by device instead sent it to the device's panel:
124
- * `read xd://lsp` drew the LSP diagnostics card and `read xd://mcp__…` the MCP
125
- * argument/result card, both over a page of prose. The write transport is the
126
- * opposite — `write xd://lsp` IS a call and must reach the device's panel.
121
+ * omp 19.1.0 moved tool doc topics from `xd://<tool>/<topic>` to
122
+ * `help://<tool>/<topic>` (and the device listing went with the devices). Both
123
+ * spellings are read: a session recorded before the pin still carries the old
124
+ * one, and its prose must not render as a code block.
127
125
  *
128
- * The FULL path is returned, not the device: `xd://eval/browser` is the browser
129
- * topic of the `eval` device, and `xdDevice` would report only `eval`. */
126
+ * omp's own reader draws all of them as an ordinary read — neither scheme has a
127
+ * read card, unlike `proc://` and `cfg://`. Dispatching by device instead sent
128
+ * it to the device's panel: `read xd://lsp` drew the LSP diagnostics card over
129
+ * a page of prose.
130
+ *
131
+ * The FULL path is returned, not the device: `help://eval/browser` is the
132
+ * browser topic of the `eval` tool, and `xdDevice` would report only `eval`. */
130
133
  export function xdDocPath(tool: ToolCallData): string | undefined {
131
134
  const raw = (tool.name || tool.type || '').toLowerCase();
132
135
  if ((TOOL_ALIASES[raw] ?? raw) !== 'read') return undefined;
133
136
  const input = inputRecord(tool);
134
137
  const path = typeof input?.path === 'string' ? input.path : tool.target ?? '';
135
- return path.startsWith('xd://') ? path : undefined;
138
+ return path.startsWith('xd://') || path.startsWith('help://') ? path : undefined;
136
139
  }
137
140
 
138
- /** True for a read of a `xd://` documentation URL. */
141
+ /** True for a read of a tool-documentation URL (`help://`, or `xd://` before 19.1.0). */
139
142
  export function isXdDocRead(tool: ToolCallData): boolean {
140
143
  return xdDocPath(tool) !== undefined;
141
144
  }
@@ -154,6 +157,19 @@ export function toolPanelKind(tool: ToolCallData): ToolPanelKind | null {
154
157
  if (procPathOf(tool)) return 'proc';
155
158
  if (isXdDocRead(tool)) return 'read';
156
159
 
160
+ // omp 19.1.0 runs rarely-used tools as bash commands: `resolve "reason"`,
161
+ // `lsp --help`, `ast_edit …`. When the call IS that invocation and nothing
162
+ // else, the wrapped tool names the panel — drawing a terminal console over a
163
+ // staged proposal's decision would lose the panel the decision lives on.
164
+ const sole = soleToolCommand(tool);
165
+ if (sole) {
166
+ // An MCP tool mounted as a command keeps its server/tool name, which is
167
+ // what the MCP panel draws.
168
+ if (sole.dispatch.tool.startsWith('mcp__')) return 'mcp';
169
+ const inner = DEVICE_KINDS[sole.dispatch.tool];
170
+ if (inner) return inner;
171
+ }
172
+
157
173
  const device = xdDevice(tool);
158
174
  if (device) {
159
175
  if (device.startsWith('mcp__')) return 'mcp';
@@ -165,3 +181,12 @@ export function toolPanelKind(tool: ToolCallData): ToolPanelKind | null {
165
181
  if (raw.startsWith('mcp__')) return 'mcp';
166
182
  return PANEL_KINDS[TOOL_ALIASES[raw] ?? raw] ?? null;
167
183
  }
184
+
185
+ /**
186
+ * The tool a call's panel should describe: the tool command it ran when that
187
+ * command is the whole call, else its own name. Used by the header, which
188
+ * otherwise says "Bash" over a staged proposal's approval.
189
+ */
190
+ export function effectiveToolName(tool: ToolCallData): string {
191
+ return soleToolCommand(tool)?.dispatch.tool ?? tool.name ?? tool.type ?? '';
192
+ }
@@ -156,10 +156,11 @@ export function toolCardHeader(tool: ToolCallData, toolKey: string): ToolCardHea
156
156
  * and a device call's target IS the URL.
157
157
  */
158
158
  export function toolCardSubtitle(tool: ToolCallData, header: ToolCardHeader): string | undefined {
159
- if (header.subtitle && (!header.subtitle.startsWith('xd://') || isXdDocRead(tool))) return header.subtitle;
159
+ const isDocUrl = (value: string) => value.startsWith('xd://') || value.startsWith('help://');
160
+ if (header.subtitle && (!isDocUrl(header.subtitle) || isXdDocRead(tool))) return header.subtitle;
160
161
  const target = resolveTargetFile(tool);
161
- if (target && !target.startsWith('xd://')) return target;
162
+ if (target && !isDocUrl(target)) return target;
162
163
  if (header.subtitle) return undefined;
163
- if (tool.detail && !tool.detail.startsWith('xd://')) return tool.detail;
164
+ if (tool.detail && !isDocUrl(tool.detail)) return tool.detail;
164
165
  return undefined;
165
166
  }
@@ -278,7 +278,7 @@ export function DiffPanel({
278
278
 
279
279
  {/* Discard Confirmation Modal */}
280
280
  {showDiscardConfirm && (
281
- <div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center p-4 backdrop-blur-xs">
281
+ <div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe backdrop-blur-xs">
282
282
  <div className="glass-overlay bg-paper rounded-lg shadow-xl p-4 w-full max-w-sm border border-ink/15">
283
283
  <h3 className="font-semibold text-ink mb-1.5 text-sm">Discard Changes?</h3>
284
284
  <p className="text-xs text-ink/70 mb-4">
@@ -33,7 +33,7 @@ export function SaveDeletedFileModal({ fileName, filePath, onClose, onConfirm }:
33
33
 
34
34
  return (
35
35
  <div
36
- className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4"
36
+ className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe"
37
37
  onClick={onClose}
38
38
  role="dialog"
39
39
  aria-modal="true"
@@ -43,7 +43,7 @@ interface ShellProps {
43
43
 
44
44
  function ArchiveDialogShell({ title, subject, error, busy, submitLabel, busyLabel, onSubmit, onCancel, children }: ShellProps) {
45
45
  return createPortal(
46
- <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
46
+ <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
47
47
  <form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
48
48
  <h3 className="font-semibold text-ink mb-1 text-sm">{title}</h3>
49
49
  <p className="text-[11px] text-ink/50 mb-3 break-words">{subject}</p>
@@ -35,7 +35,7 @@ interface NewFileModalProps {
35
35
  export function FileCreateModal({ folderPath, kind, value, error, isLoading, onChange, onCancel, onSubmit }: NewFileModalProps) {
36
36
  const label = kind === 'folder' ? 'Folder' : 'File';
37
37
  return createPortal(
38
- <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
38
+ <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
39
39
  <form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
40
40
  <h3 className="font-semibold text-ink mb-3 text-sm">New {label}</h3>
41
41
  <div className="flex items-center gap-1 mb-1 text-xs font-mono text-ink/50 min-w-0">
@@ -95,7 +95,7 @@ interface DeleteModalProps {
95
95
  export function FileDeleteModal({ fileName, displayName, isFolder, count = 1, isLoading, onCancel, onConfirm }: DeleteModalProps) {
96
96
  const multiple = count > 1;
97
97
  return createPortal(
98
- <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
98
+ <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
99
99
  <div className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
100
100
  <h3 className="font-semibold text-ink mb-2 text-sm">Delete {multiple ? `${count} Items` : isFolder ? 'Folder' : 'File'}</h3>
101
101
  <p className="text-xs text-ink/70 mb-4">
@@ -163,7 +163,7 @@ interface RenameModalProps {
163
163
  */
164
164
  export function FileRenameModal({ isFolder, renameValue, originalPath, displayName, error, isLoading, onChange, onCancel, onSubmit }: RenameModalProps) {
165
165
  return createPortal(
166
- <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
166
+ <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
167
167
  <form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
168
168
  <h3 className="font-semibold text-ink mb-3 text-sm">Rename {isFolder ? 'Folder' : 'File'}</h3>
169
169
  <input
@@ -220,7 +220,7 @@ interface HistoryModalProps {
220
220
  export function FileHistoryModal({ filePath, fetcherState, fetcherData, onClose }: HistoryModalProps) {
221
221
  const rows = fetcherData?.type === 'history' ? fetcherData.data : undefined;
222
222
  return createPortal(
223
- <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center p-4 backdrop-blur-sm">
223
+ <div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
224
224
  <div className="glass-overlay bg-paper rounded-lg shadow-xl w-full max-w-4xl border border-ink/10 flex flex-col max-h-[85vh]">
225
225
  <div className="flex items-center justify-between p-4 border-b border-ink/10">
226
226
  <h3 className="text-sm font-semibold text-ink flex items-center space-x-2">
@@ -7,7 +7,7 @@ export { GitCommitModal as GitOutputModal } from '@/client/components/workspace/
7
7
  function ModalShell({ children, onClose }: { children: ReactNode; onClose: () => void }) {
8
8
  return (
9
9
  <div
10
- className="fixed inset-0 z-50 modal-scrim flex items-center justify-center p-4"
10
+ className="fixed inset-0 z-50 modal-scrim flex items-center justify-center modal-safe"
11
11
  onClick={onClose}
12
12
  role="dialog"
13
13
  aria-modal="true"
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The picker's close control, drawn on whichever row the frame's first band is.
8
+ *
9
+ * The full-screen model picker used to own a header of its own — a 36px band
10
+ * containing the word "Model" and this `X`. That band sat above the harness
11
+ * strip, so the phone spent TWO chrome rows (85px of an 844px screen) on a
12
+ * surface whose whole job is to list models, and the word named the thing the
13
+ * user had just tapped. The control now rides the strip's trailing edge (or the
14
+ * search row when the picker offers no harness tabs), and the frame draws no
15
+ * header at all.
16
+ *
17
+ * One component for both rows, because the button has to look the same wherever
18
+ * the first band lands — a second `X` written inline is how the two would pick
19
+ * different sizes, which is exactly the drift the phone headers were fixed for.
20
+ */
21
+
22
+ import { X } from 'lucide-preact';
23
+ import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
24
+
25
+ export function PickerCloseButton({ onClose }: { onClose: () => void }) {
26
+ return (
27
+ <button
28
+ type="button"
29
+ onClick={onClose}
30
+ aria-label="Close"
31
+ // The phone header row's own box and glyph: the picker is a phone title
32
+ // bar, so its controls are the same 36px plate as the drawer's close.
33
+ className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink`}
34
+ >
35
+ <X size={CONTROL_GLYPH_PX.mobile} />
36
+ </button>
37
+ );
38
+ }
@@ -13,6 +13,14 @@
13
13
  * 390x844 phone: a 500px sheet left 344px of dead canvas above it and showed
14
14
  * ~7 model rows; the full screen shows 15.
15
15
  *
16
+ * **The frame draws NO header of its own.** It used to: a 36px band whose only
17
+ * content was the word "Model" and a 28px `X`, sitting above a 49px harness tab
18
+ * strip — two chrome rows where every other phone surface has one, and a label
19
+ * that named the thing the user had just tapped. The close control now rides the
20
+ * picker's own first row (the harness tabs, or the search field when the picker
21
+ * offers no tabs), which is what removes the second band without leaving the
22
+ * dialog undismissable: `ModelDropdownPanel` renders it into `headerActions`.
23
+ *
16
24
  * PORTALLED to `<body>`, not rendered in place. The composer card can become a
17
25
  * containing block for `position: fixed` through `backdrop-filter` (its own
18
26
  * `glass` style), a `transform`, or `contain: layout` — and then `inset-0`
@@ -21,26 +29,26 @@
21
29
  * from 1440x900 at (0,0) to 710x164 at the card's box.
22
30
  *
23
31
  * `100dvh`, not `100vh`: `vh` is the LARGEST viewport on a phone, so an overlay
24
- * sized from it runs under the browser chrome. The header carries
25
- * `env(safe-area-inset-top)` and the footer `…-bottom`, so neither the close
26
- * control nor the last model row sits under a notch or a home indicator.
32
+ * sized from it runs under the browser chrome. The frame carries the notch and
33
+ * the shell's insets (`phoneFrameStyle`), so the first row's close control is
34
+ * not under a status bar or a traffic light, and the bottom keeps
35
+ * `env(safe-area-inset-bottom)` so the last model row is not under the home
36
+ * indicator.
27
37
  */
28
38
 
29
39
  import { useRef } from 'preact/hooks';
30
40
  import type { ComponentChildren } from 'preact';
31
41
  import { createPortal } from 'preact/compat';
32
- import { X } from 'lucide-preact';
33
42
  import { useKeyboardInset } from '@/client/hooks/ui/keyboard-inset';
34
- import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
43
+ import { phoneFrameStyle } from '@/client/lib/ui/phone-row';
35
44
 
36
45
  interface ModelFullscreenProps {
37
46
  open: boolean;
38
- onClose: () => void;
39
47
  /** The picker's own card content — one tree, shared with the popover. */
40
48
  children: ComponentChildren;
41
49
  }
42
50
 
43
- export function ModelFullscreen({ open, onClose, children }: ModelFullscreenProps) {
51
+ export function ModelFullscreen({ open, children }: ModelFullscreenProps) {
44
52
  // The search field focuses the soft keyboard, which covers the bottom rows.
45
53
  // The inset is measured from THIS frame's own bottom edge, so it lifts by
46
54
  // exactly the overlap and lifts by nothing when the browser already shrank the
@@ -57,25 +65,8 @@ export function ModelFullscreen({ open, onClose, children }: ModelFullscreenProp
57
65
  aria-modal="true"
58
66
  aria-label="Select model"
59
67
  className="fixed inset-0 z-[70] flex h-dvh flex-col bg-paper text-xs"
68
+ style={phoneFrameStyle()}
60
69
  >
61
- <header
62
- className="flex flex-shrink-0 items-center justify-between border-b border-ink/10 bg-canvas"
63
- style={{
64
- paddingTop: 'env(safe-area-inset-top, 0px)',
65
- paddingLeft: titlebarPaddingLeft('0.75rem', true),
66
- paddingRight: titlebarPaddingRight('0.75rem', true),
67
- }}
68
- >
69
- <span className="py-2.5 text-[11px] font-semibold uppercase tracking-wider text-ink/50">Model</span>
70
- <button
71
- type="button"
72
- onClick={onClose}
73
- aria-label="Close"
74
- className="-mr-1 rounded-lg p-1.5 text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink"
75
- >
76
- <X size={16} />
77
- </button>
78
- </header>
79
70
  <div
80
71
  className="flex min-h-0 flex-1 flex-col"
81
72
  style={{
@@ -28,6 +28,7 @@
28
28
  * reason a tab is unavailable.
29
29
  */
30
30
 
31
+ import type { ComponentChildren } from 'preact';
31
32
  import { HarnessGlyph, HARNESS_GLYPH_SIZE } from '@/client/components/common/harness-glyph';
32
33
  import { harnessBadgeLabel } from '@/shared/lib/harness/catalog';
33
34
  import type { HarnessSummary } from '@/shared/types/harness';
@@ -42,6 +43,12 @@ interface HarnessTabsProps {
42
43
  onSelect: (harness: string) => void;
43
44
  /** Opens the settings page for a harness that needs install or login. */
44
45
  onFix?: (harness: string) => void;
46
+ /**
47
+ * Trailing controls on the strip's own row — the full-screen picker's close
48
+ * button. The strip is the frame's FIRST row, so a control here is what keeps
49
+ * the picker to one chrome band instead of a header plus a strip.
50
+ */
51
+ actions?: ComponentChildren;
45
52
  }
46
53
 
47
54
  export interface HarnessBlock {
@@ -174,7 +181,7 @@ function tabTone(isActive: boolean, blocked: boolean, editable: boolean): string
174
181
  return `text-ink/65 hover:bg-ink/5 hover:text-ink ${cursor}`;
175
182
  }
176
183
 
177
- export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: HarnessTabsProps) {
184
+ export function HarnessTabs({ harnesses, active, editable, onSelect, onFix, actions }: HarnessTabsProps) {
178
185
  if (harnesses.length === 0) return null;
179
186
  return (
180
187
  <div
@@ -183,15 +190,18 @@ export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: Ha
183
190
  // collapsed to 5px — the tabs were in the DOM and painted 1px tall
184
191
  // (measured: `elementFromPoint` on the first tab answered the row BELOW
185
192
  // it). The list scrolls inside itself; the strip must not.
186
- className="flex-none flex items-stretch gap-0.5 overflow-x-auto border-b border-ink/10 bg-canvas/40 px-1 pt-1 scrollbar-overlay-container"
187
- role="tablist"
188
- aria-label="Harness"
189
- // The one surface where a harness HUE is not decoration: with no label in
190
- // the tab, colour is the only thing separating `omp` (RPC) from `omp`
191
- // (ACP), so `icon-paint-css.ts` keeps these two marks painted even in
192
- // monochrome mode. The attribute is that rule's scope.
193
- data-harness-tabs=""
193
+ className="flex-none flex items-stretch border-b border-ink/10 bg-canvas/40"
194
194
  >
195
+ <div
196
+ className="flex min-w-0 flex-1 items-stretch gap-0.5 overflow-x-auto px-1 pt-1 scrollbar-overlay-container"
197
+ role="tablist"
198
+ aria-label="Harness"
199
+ // The one surface where a harness HUE is not decoration: with no label in
200
+ // the tab, colour is the only thing separating `omp` (RPC) from `omp`
201
+ // (ACP), so `icon-paint-css.ts` keeps these two marks painted even in
202
+ // monochrome mode. The attribute is that rule's scope.
203
+ data-harness-tabs=""
204
+ >
195
205
  {harnesses.map((summary) => {
196
206
  const state: HarnessTabState = {
197
207
  block: harnessBlock(summary),
@@ -285,6 +295,17 @@ export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: Ha
285
295
  </button>
286
296
  );
287
297
  })}
298
+ </div>
299
+
300
+ {/* The frame's trailing controls, on the strip's own row. `flex-none` so a
301
+ strip full of tabs never scrolls the close button away, and
302
+ `titlebar-no-drag` because the row above it is the window's handle in a
303
+ native shell. */}
304
+ {actions ? (
305
+ <div className="flex flex-none items-center gap-0.5 px-1.5 pb-1 titlebar-no-drag">
306
+ {actions}
307
+ </div>
308
+ ) : null}
288
309
  </div>
289
310
  );
290
311
  }
@@ -1,15 +1,23 @@
1
1
  import { Plus, Search, X } from 'lucide-preact';
2
+ import type { ComponentChildren } from 'preact';
2
3
 
3
4
  interface ModelDropdownHeaderProps {
4
5
  search: string;
5
6
  onSearchChange: (value: string) => void;
6
7
  onAddProvider?: () => void;
8
+ /**
9
+ * Trailing controls on the search row. The full-screen picker puts its close
10
+ * button here when it offers no harness tabs, so the frame never needs a
11
+ * header row of its own.
12
+ */
13
+ actions?: ComponentChildren;
7
14
  }
8
15
 
9
16
  export function ModelDropdownHeader({
10
17
  search,
11
18
  onSearchChange,
12
19
  onAddProvider,
20
+ actions,
13
21
  }: ModelDropdownHeaderProps) {
14
22
  return (
15
23
  <div className="flex flex-col border-b border-ink/10 bg-canvas/40">
@@ -23,27 +31,31 @@ export function ModelDropdownHeader({
23
31
  <span>Add new provider</span>
24
32
  </button>
25
33
 
26
- {/* Search Input */}
27
- <div className="p-2 flex items-center bg-canvas/60">
28
- <Search size={13} className="text-ink/40 mr-2 flex-shrink-0" />
29
- <input
30
- type="text"
31
- value={search}
32
- onChange={(e) => onSearchChange(e.currentTarget.value)}
33
- placeholder="Search models"
34
- className="bg-transparent border-none focus:outline-none w-full text-ink placeholder-ink/40 text-xs font-sans"
35
- autoFocus
36
- />
37
- {search && (
38
- <button
39
- type="button"
40
- onClick={() => onSearchChange('')}
41
- className="p-0.5 text-ink/40 hover:text-ink transition-colors cursor-pointer"
42
- title="Clear search"
43
- >
44
- <X size={12} />
45
- </button>
46
- )}
34
+ {/* Search Input. The trailing slot holds the picker's close control when
35
+ this row is the frame's first band. */}
36
+ <div className="flex items-center gap-1 p-2 bg-canvas/60">
37
+ <div className="flex min-w-0 flex-1 items-center">
38
+ <Search size={13} className="text-ink/40 mr-2 flex-shrink-0" />
39
+ <input
40
+ type="text"
41
+ value={search}
42
+ onChange={(e) => onSearchChange(e.currentTarget.value)}
43
+ placeholder="Search models"
44
+ className="bg-transparent border-none focus:outline-none w-full text-ink placeholder-ink/40 text-xs font-sans"
45
+ autoFocus
46
+ />
47
+ {search && (
48
+ <button
49
+ type="button"
50
+ onClick={() => onSearchChange('')}
51
+ className="p-0.5 text-ink/40 hover:text-ink transition-colors cursor-pointer"
52
+ title="Clear search"
53
+ >
54
+ <X size={12} />
55
+ </button>
56
+ )}
57
+ </div>
58
+ {actions ? <div className="flex flex-none items-center titlebar-no-drag">{actions}</div> : null}
47
59
  </div>
48
60
  </div>
49
61
  );
@@ -10,6 +10,7 @@ import type { PickerRow } from '@/client/components/workspace/model-dropdown/gro
10
10
  import { HarnessTabs } from '@/client/components/workspace/model-dropdown/HarnessTabs';
11
11
  import { usePopoverSize } from '@/client/components/workspace/model-dropdown/use-popover-size';
12
12
  import { ModelFullscreen } from '@/client/components/workspace/model-dropdown/Fullscreen';
13
+ import { PickerCloseButton } from '@/client/components/workspace/model-dropdown/CloseButton';
13
14
  import type { HarnessSummary } from '@/shared/types/harness';
14
15
 
15
16
  interface ModelDropdownPanelProps {
@@ -53,8 +54,15 @@ interface ModelDropdownPanelProps {
53
54
  unprobedHarness?: boolean;
54
55
  /** Why the active tab cannot run (auth, missing binary), in the agent's words. */
55
56
  harnessBlocked?: string;
56
- /** Dismiss the full-screen picker. Required on a phone, where it owns the screen. */
57
- onClose?: () => void;
57
+ /**
58
+ * Dismiss the picker.
59
+ *
60
+ * REQUIRED, not optional: the full-screen placement draws this as its close
61
+ * control, and an optional handler let a caller omit it and get an `X` that
62
+ * did nothing — a button that promises a dismissal it cannot perform. The
63
+ * popover closes through the click-outside guard and ignores it.
64
+ */
65
+ onClose: () => void;
58
66
  /** Take the whole screen instead of hanging beside the trigger. Decided ONCE
59
67
  * by the picker (`useFullscreenPicker`) and passed in, so the panel never
60
68
  * holds a second answer to the same question. */
@@ -151,7 +159,12 @@ export function ModelDropdownPanel({
151
159
  >
152
160
  {/* The harness tab strip sits ABOVE the search field: the tab changes
153
161
  what the list IS, so the search that follows applies to the list the
154
- tab selected. */}
162
+ tab selected.
163
+
164
+ In the full-screen placement the strip is the FRAME's first row, so
165
+ it carries the close control — the picker draws no header of its own.
166
+ A picker with no tabs (the New Chat preview) has no strip, and its
167
+ close control rides the search row instead. */}
155
168
  {harnesses.length > 0 && (
156
169
  <HarnessTabs
157
170
  harnesses={harnesses}
@@ -159,12 +172,14 @@ export function ModelDropdownPanel({
159
172
  editable={harnessEditable}
160
173
  onSelect={onSelectHarness ?? (() => {})}
161
174
  onFix={onFixHarness}
175
+ {...(fullscreen ? { actions: <PickerCloseButton onClose={onClose} /> } : {})}
162
176
  />
163
177
  )}
164
178
  <ModelDropdownHeader
165
179
  search={search}
166
180
  onSearchChange={onSearchChange}
167
181
  onAddProvider={onAddProvider}
182
+ {...(fullscreen && harnesses.length === 0 ? { actions: <PickerCloseButton onClose={onClose} /> } : {})}
168
183
  />
169
184
 
170
185
  {/* Scrollable Model Lists. Deliberately no top padding: Chrome's
@@ -291,7 +306,7 @@ export function ModelDropdownPanel({
291
306
  // `Fullscreen.tsx` states why each placement wins where it does, and why the
292
307
  // overlay must portal out of the composer's containing block.
293
308
  if (fullscreen) {
294
- return <ModelFullscreen open onClose={onClose ?? (() => {})}>{card}</ModelFullscreen>;
309
+ return <ModelFullscreen open>{card}</ModelFullscreen>;
295
310
  }
296
311
 
297
312
  return (