@kabmo-labs/kabmo 0.45.1 → 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-eqmctwyq.js → CsvGrid-br4j001k.js} +2 -2
  4. package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-kmtkbmmw.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-za569srw.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-2m78d4jz.js → PdfView-p5z7c7eg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-t06h6zfx.js} +1 -1
  11. package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-agw459v2.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-b9rfy1h6.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.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-a5effrpz.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-3q2kf22c.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-mkw3jvf6.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.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-4w61hq3e.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-00hqsk9c.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.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-4xjp4rgh.js → elk-276RUBZZ-dsq91er5.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.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-1r1fn18p.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-zt5cwg83.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-x0kgnkv3.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-127se1a3.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-xgv501v0.js → index-5gf52a6d.js} +2 -2
  60. package/dist/client/static/js/{index-84vmdg3k.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-528x5x8c.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-tkfxnnr5.js → index-9d3n04vb.js} +2 -2
  67. package/dist/client/static/js/{index-ga6492qc.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-q36gq3yz.js → index-amys498v.js} +198 -198
  70. package/dist/client/static/js/{index-9zwtpazh.js → index-bafe7hmd.js} +2 -2
  71. package/dist/client/static/js/{index-mnh8nptt.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-2tmnqqzt.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-cza9mnxx.js → index-ex5dtdx2.js} +6 -6
  79. package/dist/client/static/js/{index-8ps5gdwz.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-bcpyxt97.js → index-j718pxb3.js} +2 -2
  86. package/dist/client/static/js/{index-0gmw2bt3.js → index-jkay7aw7.js} +2 -2
  87. package/dist/client/static/js/{index-ex3w7t7s.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-2zntn964.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-j50y0z44.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-snjtkfkq.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-m9s7r4z9.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-2gbfke1a.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-frqq7yen.js → index-x1fqhhpp.js} +64 -64
  103. package/dist/client/static/js/{index-mhnwyra0.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-zwx3vbf0.js → index-zedt16w7.js} +1 -1
  107. package/dist/client/static/js/{index-c7vbr57m.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-yd4zwrtv.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-7sjp09d4.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-qh9jk7qk.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-cjc8k0jk.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-vw0b7r0k.js → mermaid.core-hwhzw0wv.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.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-80ygdd29.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-6vgh7ntn.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-k5byajmm.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-qffrkk7g.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.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-a9jcfy2e.js → rust-1v8xbxn9.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.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-nywg1eq3.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.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-xzzv780w.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-n4q5ad13.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-j9pde7sa.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-ehnc0600.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.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-eegf1jpw.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-zkkqfyex.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-6ksvyzqv.js +0 -1
  307. package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
  308. package/dist/client/static/js/Modal-yv1718s1.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-hekt0qsb.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-252br0k2.js +0 -1
  322. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  323. package/dist/client/static/js/index-80qxk9hx.js +0 -1
  324. package/dist/client/static/js/index-9674dxb4.js +0 -1
  325. package/dist/client/static/js/index-9k4121z4.js +0 -4
  326. package/dist/client/static/js/index-b6454rme.js +0 -12
  327. package/dist/client/static/js/index-ck0fd3aj.js +0 -2
  328. package/dist/client/static/js/index-jdf1tks1.js +0 -2
  329. package/dist/client/static/js/index-q58e8x6j.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-axkq0m3s.js +0 -1
  339. package/dist/client/static/js/one-light-pncb08qd.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-253nz20y.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
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The two MINIATURES a navigation choice is drawn as, one per style.
8
+ *
9
+ * Extracted from `PanelNavSection` when the phone got its second drawer and the
10
+ * section would have crossed the 350-line ceiling. They are drawings only —
11
+ * tokens (`bg-ink/10`, `text-ink/40`) so they follow the palette — and each is
12
+ * the shape of a real column rather than an icon: "rail" and "tabs" are words
13
+ * the user has to translate into a picture they have seen.
14
+ */
15
+
16
+ /** A rail of marks beside a list — the desktop left column, and a phone drawer's chips. */
17
+ export function RailMiniature() {
18
+ return (
19
+ <span className="flex h-full gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
20
+ <span className="flex w-[9px] flex-col items-center gap-1 border-r border-ink/10 pr-1">
21
+ <span className="h-[5px] w-[5px] rounded-sm bg-ink/70" />
22
+ <span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
23
+ <span className="h-[5px] w-[5px] rounded-sm bg-ink/25" />
24
+ </span>
25
+ <span className="flex min-w-0 flex-1 flex-col gap-1">
26
+ <span className="h-[3px] w-[46%] rounded-full bg-ink/45" />
27
+ <span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
28
+ <span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
29
+ <span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
30
+ </span>
31
+ </span>
32
+ );
33
+ }
34
+
35
+ /** A strip of chips over a card grid — the browser-style column. */
36
+ export function TabsMiniature() {
37
+ return (
38
+ <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
39
+ <span className="flex items-center gap-1 border-b border-ink/10 pb-1">
40
+ <span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
41
+ <span className="h-[6px] w-[28%] rounded-sm bg-ink/70" />
42
+ <span className="h-[6px] w-[24%] rounded-sm border border-ink/20" />
43
+ </span>
44
+ <span className="flex gap-1">
45
+ <span className="h-[16px] w-[22%] rounded border border-ink/15" />
46
+ <span className="h-[16px] w-[22%] rounded border border-ink/15" />
47
+ <span className="h-[16px] w-[22%] rounded border border-ink/15" />
48
+ </span>
49
+ </span>
50
+ );
51
+ }
52
+
53
+ /** A drawer of chips over a long list — a phone drawer's classic chrome. */
54
+ export function ClassicDrawerMiniature() {
55
+ return (
56
+ <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
57
+ <span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
58
+ <span className="h-[6px] w-[16%] rounded-sm bg-ink/70" />
59
+ <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
60
+ <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
61
+ <span className="h-[6px] w-[16%] rounded-sm border border-ink/20" />
62
+ </span>
63
+ <span className="h-[3px] w-[62%] rounded-full bg-ink/25" />
64
+ <span className="h-[3px] w-[54%] rounded-full bg-ink/25" />
65
+ <span className="h-[3px] w-[40%] rounded-full bg-ink/20" />
66
+ </span>
67
+ );
68
+ }
69
+
70
+ /**
71
+ * A short strip over a card grid — a drawer with a home page.
72
+ *
73
+ * `pinned` draws the extra chip a column with an undeletable view leads with
74
+ * (the left drawer's session list), so the two phone cards differ in the fact
75
+ * that actually differs.
76
+ */
77
+ export function TabsDrawerMiniature({ pinned = false }: { pinned?: boolean }) {
78
+ return (
79
+ <span className="flex h-full flex-col gap-1 rounded-md border border-ink/10 bg-paper p-1" aria-hidden="true">
80
+ <span className="flex h-[7px] items-center gap-1 border-b border-ink/10 pb-1">
81
+ <span className="h-[6px] w-[6px] rounded-sm border border-ink/20" />
82
+ {pinned ? <span className="h-[6px] w-[20%] rounded-sm bg-ink/70" /> : null}
83
+ <span className={`h-[6px] rounded-sm ${pinned ? 'w-[18%]' : 'w-[24%]'} bg-ink/70`} />
84
+ <span className="h-[6px] w-[20%] rounded-sm border border-ink/20" />
85
+ </span>
86
+ <span className="flex gap-1">
87
+ <span className="h-[16px] w-[24%] rounded border border-ink/15" />
88
+ <span className="h-[16px] w-[24%] rounded border border-ink/15" />
89
+ <span className="h-[16px] w-[24%] rounded border border-ink/15" />
90
+ </span>
91
+ </span>
92
+ );
93
+ }
@@ -77,7 +77,7 @@ export function PairDialog({ code, error, busy, secondsLeft, onClose, onRetry }:
77
77
 
78
78
  return createPortal(
79
79
  <div
80
- className="fixed inset-0 z-[60] flex items-center justify-center bg-ink/40 p-4 backdrop-blur-[2px]"
80
+ className="fixed inset-0 z-[60] flex items-center justify-center bg-ink/40 modal-safe backdrop-blur-[2px]"
81
81
  onClick={onClose}
82
82
  >
83
83
  <div
@@ -57,7 +57,7 @@ export const McpImportModal: FunctionComponent<McpImportModalProps> = ({
57
57
  };
58
58
 
59
59
  return (
60
- <div className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center p-4 animate-in fade-in duration-150">
60
+ <div className="fixed inset-0 modal-scrim backdrop-blur-[2px] z-50 flex items-center justify-center modal-safe animate-in fade-in duration-150">
61
61
  <div className="glass-overlay w-full max-w-lg rounded-lg border border-ink/20 bg-paper text-ink p-5 shadow-2xl space-y-4 max-h-full overflow-y-auto scrollbar-overlay-container">
62
62
  <div className="flex items-center justify-between pb-3 border-b border-ink/10">
63
63
  <div className="flex items-center gap-2">
@@ -40,7 +40,7 @@ export function PermissionNotice({ canOpenSettings }: PermissionNoticeProps) {
40
40
  <button
41
41
  type="button"
42
42
  onClick={() => void openNotificationSettings()}
43
- className="px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] transition-all shadow-xs active:scale-95"
43
+ className="px-3 py-1.5 rounded-md border border-ink/20 bg-paper hover:bg-ink/5 text-ink font-medium text-[11px] transition-all shadow-xs"
44
44
  >
45
45
  Open system settings
46
46
  </button>
@@ -56,7 +56,7 @@ export function DeleteProviderModal({
56
56
 
57
57
  return (
58
58
  <div
59
- className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] p-4"
59
+ className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] modal-safe"
60
60
  onClick={isDeleting ? undefined : onClose}
61
61
  role="dialog"
62
62
  aria-modal="true"
@@ -79,7 +79,7 @@ export function LogoutProviderModal({ isOpen, provider, onClose, onSignedOut }:
79
79
 
80
80
  return (
81
81
  <div
82
- className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] p-4"
82
+ className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim backdrop-blur-[2px] modal-safe"
83
83
  onClick={busyId !== null ? undefined : onClose}
84
84
  role="dialog"
85
85
  aria-modal="true"
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The drilled screen a settings category is showing on a PHONE, published to
8
+ * the sheet's ONE header band.
9
+ *
10
+ * A category that is two panes on a desktop is two screens on a phone, and the
11
+ * sheet's category list is a third level. Each level used to draw its own back
12
+ * control and its own title band, and they STACKED: measured at 390x844 on
13
+ * Settings → Appearance → Palette, the sheet's band said "Appearance" with a
14
+ * chevron, a 35px bar under it said "‹ Appearance settings", and a third 64px
15
+ * band said "Palette" — 163px, ~19% of the screen, on three rows that each meant
16
+ * "go back", two of which did it.
17
+ *
18
+ * So there is ONE band (`Band.tsx`), owned by the sheet, and a category tells it
19
+ * what the current screen is called and how to leave it. The registration is
20
+ * cleared on unmount, so switching category cannot leave the previous
21
+ * category's back control in the band. Nothing registers on a desktop, where
22
+ * both panes are visible at once and the band keeps naming the category.
23
+ */
24
+
25
+ import { createContext } from 'preact';
26
+ import { useContext, useEffect, useMemo, useState } from 'preact/hooks';
27
+ import type { ComponentChildren } from 'preact';
28
+
29
+ /** One drilled screen, as the band needs to draw it. */
30
+ export interface SettingsDrill {
31
+ /** What this screen is called. */
32
+ label: string;
33
+ /** One line under the label, when the screen has its own. */
34
+ description?: string;
35
+ /** Leaves this screen for the one it was opened from. */
36
+ back: () => void;
37
+ /** Accessible name for that control — "Back to Appearance settings". */
38
+ backLabel: string;
39
+ }
40
+
41
+ /** The sheet's collector: a registration, or a clear. */
42
+ export type RegisterDrill = (drill: SettingsDrill | null) => void;
43
+
44
+ const DrillContext = createContext<RegisterDrill | null>(null);
45
+
46
+ /** Holds the drilled screen for one sheet. `children` is the whole sheet. */
47
+ export function SettingsDrillProvider({
48
+ register,
49
+ children,
50
+ }: {
51
+ register: RegisterDrill;
52
+ children: ComponentChildren;
53
+ }) {
54
+ return <DrillContext.Provider value={register}>{children}</DrillContext.Provider>;
55
+ }
56
+
57
+ /**
58
+ * Publish (or clear) this screen for as long as it is mounted.
59
+ *
60
+ * An EFFECT, not a render-time call: the setter writes the sheet's state, and a
61
+ * child writing its parent's state during render is the one thing Preact will
62
+ * not settle. The dependency list names the FIELDS rather than the object, so a
63
+ * caller building the literal inline does not re-register on every render.
64
+ */
65
+ export function useSettingsDrill(drill: SettingsDrill | null): void {
66
+ const register = useContext(DrillContext);
67
+ const label = drill?.label;
68
+ const description = drill?.description;
69
+ const back = drill?.back;
70
+ const backLabel = drill?.backLabel;
71
+ useEffect(() => {
72
+ if (!register) return;
73
+ if (!label || !back || !backLabel) {
74
+ register(null);
75
+ return;
76
+ }
77
+ register({ label, description, back, backLabel });
78
+ return () => register(null);
79
+ }, [register, label, description, back, backLabel]);
80
+ }
81
+
82
+ /**
83
+ * The band's source of truth.
84
+ *
85
+ * A hook rather than a component, because the sheet already owns its band's
86
+ * markup and only needs to know what to put in it. The setter is stable and
87
+ * skips a write that would not change the band, so a re-registering pane cannot
88
+ * loop.
89
+ */
90
+ export function useSettingsDrillState(): {
91
+ register: RegisterDrill;
92
+ drill: SettingsDrill | null;
93
+ } {
94
+ const [drill, setDrill] = useState<SettingsDrill | null>(null);
95
+ const register = useMemo<RegisterDrill>(
96
+ () => (next) =>
97
+ setDrill((current) => {
98
+ if (next === null) return current === null ? current : null;
99
+ if (
100
+ current &&
101
+ current.label === next.label &&
102
+ current.description === next.description &&
103
+ current.back === next.back &&
104
+ current.backLabel === next.backLabel
105
+ ) {
106
+ return current;
107
+ }
108
+ return next;
109
+ }),
110
+ [],
111
+ );
112
+ return { register, drill };
113
+ }
@@ -4,13 +4,18 @@
4
4
  */
5
5
 
6
6
  /**
7
- * The detail pane of a grouped settings category: the active group's name and
8
- * description in a fixed header, then the group's sections in one scroller.
7
+ * The detail pane of a grouped settings category: the group's sections in one
8
+ * scroller, under a header band on a DESKTOP only.
9
+ *
10
+ * The band is outside the scroller on a desktop on purpose — a reader five cards
11
+ * into the Editor group can still see which group they are in without scrolling
12
+ * back. A PHONE draws no band here: the sheet has one, and this pane's group name
13
+ * is what it names (`settings/drill.tsx`). Drawing it here as well produced
14
+ * three stacked bars on one screen (measured 64 + 35 + 64px on
15
+ * Settings → Appearance → Palette), two of which were a back control.
9
16
  *
10
- * The header is outside the scroller on purpose — a reader five cards into the
11
- * Editor group can still see which group they are in without scrolling back.
12
17
  * The sections are children, so each category keeps owning WHICH components a
13
- * group draws (its `Record<SectionId, …>`) while the frame is stated once.
18
+ * group draws while the frame is stated once.
14
19
  */
15
20
 
16
21
  import type { ComponentChildren } from 'preact';
@@ -25,7 +30,10 @@ interface GroupDetailProps {
25
30
  export function GroupDetail({ group, children }: GroupDetailProps) {
26
31
  return (
27
32
  <div className="flex-1 h-full overflow-hidden flex flex-col text-xs text-ink">
28
- <div className={`${SETTINGS_BAND} items-start flex-col justify-center px-3.5`} style={{ height: SETTINGS_BAND_HEIGHT }}>
33
+ <div
34
+ className={`${SETTINGS_BAND} hidden md:flex items-start flex-col justify-center px-3.5`}
35
+ style={{ height: SETTINGS_BAND_HEIGHT }}
36
+ >
29
37
  <span className="text-xs font-semibold text-ink/75">{group.label}</span>
30
38
  <p className="w-full text-[11px] text-ink/60 leading-snug mt-0.5 truncate">{group.description}</p>
31
39
  </div>
@@ -42,7 +42,15 @@ export function GroupSidebar<Id extends string>({
42
42
  }: GroupSidebarProps<Id>) {
43
43
  return (
44
44
  <div className="w-full md:w-64 md:border-r border-ink/10 h-full flex flex-col bg-paper/50 flex-shrink-0 select-none">
45
- <div className={`${SETTINGS_BAND} px-3.5 justify-between`} style={{ height: SETTINGS_BAND_HEIGHT }}>
45
+ {/* The count band is a DESKTOP fact: there it sits beside the detail
46
+ pane's title and closes the two-column seam. A phone already has the
47
+ sheet's band naming the category, and a second row saying "4 groups"
48
+ above a list of four groups is the same repeat the drilled panes lost
49
+ (measured: 163px of an 844px screen on three stacked bars). */}
50
+ <div
51
+ className={`${SETTINGS_BAND} hidden md:flex px-3.5 justify-between`}
52
+ style={{ height: SETTINGS_BAND_HEIGHT }}
53
+ >
46
54
  <span className="text-xs font-semibold text-ink">
47
55
  {groups.length} group{groups.length === 1 ? '' : 's'}
48
56
  </span>
@@ -3,8 +3,26 @@
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
5
 
6
+ /**
7
+ * Master-detail shell for the settings categories that are two panes on a
8
+ * desktop (providers, projects, agents, commands, MCP, skills, usage) and for
9
+ * the two that navigate by GROUP inside one category (`chats`,
10
+ * `appearance` — those draw `GroupSidebar` / `GroupDetail`).
11
+ *
12
+ * Both panes stay mounted at every width, so a pane's state — a half-typed
13
+ * form, a scroll position — survives the drill and the back.
14
+ *
15
+ * **The phone draws no chrome of its own.** It used to draw a 35px back bar
16
+ * under the sheet's band, and the pane under that drew a third band with the
17
+ * group's name: measured at 390x844 on Settings → Appearance → Palette, three
18
+ * rows (64 + 35 + 64px) each meant "go back", two of them doing it. The pane now
19
+ * REGISTERS its label and its way out with the sheet's single band
20
+ * (`settings/drill.tsx`), so the phone has one header and the back control is in
21
+ * the same place on every screen.
22
+ */
23
+
6
24
  import type { ComponentChildren } from 'preact';
7
- import { ChevronLeft } from 'lucide-preact';
25
+ import { useSettingsDrill } from '@/client/components/settings/drill';
8
26
  import type { SettingsPane } from '@/client/hooks/settings/master-detail';
9
27
 
10
28
  interface SettingsMasterDetailProps {
@@ -14,31 +32,45 @@ interface SettingsMasterDetailProps {
14
32
  /** The list pane (a settings sidebar). Owns its own `w-full md:w-64` width. */
15
33
  list: ComponentChildren;
16
34
  detail: ComponentChildren;
17
- /** Name of the list, shown on the phone's back bar. */
35
+ /** Name of the list, used for the back control's accessible name. */
18
36
  listLabel: string;
37
+ /**
38
+ * What the DETAIL pane is called on a phone, for the sheet's band. Defaults
39
+ * to `listLabel`: the pane is then named after the list it came from, which
40
+ * is honest for a CRUD list whose rows are all the same kind of thing. A
41
+ * grouped category passes the active group's label instead.
42
+ */
43
+ detailLabel?: string;
44
+ /** One line under that label, when the pane has one. */
45
+ detailDescription?: string;
19
46
  /** Extra classes for the root (e.g. a category-wide `text-xs`). */
20
47
  className?: string;
21
48
  }
22
49
 
23
- /**
24
- * Master-detail shell for the settings categories that are two panes on a
25
- * desktop (providers, projects, agents, commands, MCP, skills, usage) and for
26
- * the two that navigate by GROUP inside one category (`chats`,
27
- * `appearance` — those draw `GroupSidebar` / `GroupDetail`).
28
- *
29
- * Both panes stay mounted at every width, so a pane's state — a half-typed
30
- * form, a scroll position — survives the drill and the back. Only the phone
31
- * needs the extra bar: on `md` the two panes sit side by side exactly as
32
- * before and the bar is not rendered at all.
33
- */
34
50
  export function SettingsMasterDetail({
35
51
  pane,
36
52
  onBack,
37
53
  list,
38
54
  detail,
39
55
  listLabel,
56
+ detailLabel,
57
+ detailDescription,
40
58
  className = '',
41
59
  }: SettingsMasterDetailProps) {
60
+ // The sheet's band names the drilled pane, and its back control is the pane's
61
+ // own way out. Registered only while the detail is the screen on display, so
62
+ // the list keeps the band it had.
63
+ useSettingsDrill(
64
+ pane === 'detail'
65
+ ? {
66
+ label: detailLabel ?? listLabel,
67
+ description: detailDescription,
68
+ back: onBack,
69
+ backLabel: `Back to ${listLabel}`,
70
+ }
71
+ : null,
72
+ );
73
+
42
74
  return (
43
75
  <div className={`flex-1 flex flex-col md:flex-row h-full w-full min-w-0 overflow-hidden bg-paper text-ink ${className}`}>
44
76
  {/* `min-w-0` on both panes: a flex item's default `min-width: auto` is its
@@ -51,18 +83,6 @@ export function SettingsMasterDetail({
51
83
  </div>
52
84
 
53
85
  <div className={`${pane === 'detail' ? 'flex' : 'hidden'} md:flex flex-1 min-h-0 min-w-0 flex-col`}>
54
- <div className="md:hidden flex items-center px-2 py-1 border-b border-ink/10 bg-canvas flex-shrink-0">
55
- <button
56
- type="button"
57
- onClick={onBack}
58
- aria-label={`Back to ${listLabel}`}
59
- className="flex items-center gap-1 -ml-0.5 pl-0.5 pr-2 py-1 rounded-lg text-ink hover:bg-ink/5 active:bg-ink/10 transition-colors cursor-pointer"
60
- >
61
- <ChevronLeft size={18} />
62
- <span className="text-xs font-semibold truncate">{listLabel}</span>
63
- </button>
64
- </div>
65
-
66
86
  {detail}
67
87
  </div>
68
88
  </div>
@@ -53,7 +53,7 @@ export function MobileTurnJump({ turns, jumping, onJumpTurn }: MobileTurnJumpPro
53
53
  aria-label={`Jump to your message (${turns.length} turns)`}
54
54
  aria-busy={jumping}
55
55
  title="Jump to your message"
56
- className={`flex items-center justify-center w-9 h-9 rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all ${jumping ? 'animate-pulse' : 'hover:text-ink hover:bg-ink/5 active:scale-95'}`}
56
+ className={`flex items-center justify-center w-9 h-9 rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all ${jumping ? 'animate-pulse' : 'hover:text-ink hover:bg-ink/5'}`}
57
57
  >
58
58
  <ListOrdered size={16} />
59
59
  </button>
@@ -69,7 +69,7 @@ export function NewChatModal({
69
69
  };
70
70
 
71
71
  return (
72
- <div className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4">
72
+ <div className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe">
73
73
  <div
74
74
  className="glass-overlay bg-canvas border border-ink/15 rounded-xl shadow-xl w-full flex flex-col overflow-hidden"
75
75
  style={maximized ? MODAL_EXPANDED_STYLE : MODAL_DEFAULT_STYLE}
@@ -71,9 +71,13 @@ export function SystemNotice({ notice, source, isMobile = false }: SystemNoticeP
71
71
  // body underneath is the instruction omp injected.
72
72
  const reminderInfo = useMemo(() => {
73
73
  const envelope = unwrapXmlEnvelope(notice);
74
+ // omp 19.1.0 words the preview reminder around `resolve`/`reject` (a bash
75
+ // tool command) instead of `write xd://resolve`; both spellings reach this
76
+ // card, because a session recorded before the pin still carries the old one.
74
77
  const isNoticeLike =
75
78
  (envelope !== undefined && isReminderTag(envelope.tag))
76
79
  || notice.includes('xd://resolve')
80
+ || notice.includes('`resolve`')
77
81
  || notice.includes('`ast_edit` result');
78
82
  if (!isNoticeLike) return null;
79
83
 
@@ -22,7 +22,7 @@
22
22
  * section's children are only headings and cards.
23
23
  */
24
24
 
25
- import { afterAll, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
25
+ import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
26
26
  import { Window } from 'happy-dom';
27
27
  import { h, render } from 'preact';
28
28
  import { act } from 'preact/test-utils';
@@ -33,7 +33,7 @@ import type { ToolCallData } from '@/shared/types/chat';
33
33
 
34
34
  const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'HTMLInputElement', 'Event', 'MouseEvent', 'KeyboardEvent'] as const;
35
35
  const nativeGlobals: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
36
- let container: HTMLElement;
36
+ let container: HTMLElement | undefined;
37
37
 
38
38
  beforeAll(() => {
39
39
  const win = new Window({ url: 'http://localhost' });
@@ -52,6 +52,22 @@ afterAll(() => {
52
52
  }
53
53
  });
54
54
 
55
+ /**
56
+ * Unmount the tree each case mounted.
57
+ *
58
+ * A card subscribes to the router store and the per-session store, and a tree
59
+ * left mounted here kept re-rendering in a LATER file — with that file's window,
60
+ * or after this file's `afterAll` had already removed it. Bun reports the throw
61
+ * as "Unhandled error between tests" in a suite that names neither file
62
+ * (measured on the Windows gate: ten `list-slots` cases failed while the real
63
+ * error came from here).
64
+ */
65
+ afterEach(() => {
66
+ if (container) render(null, container);
67
+ container?.remove();
68
+ container = undefined;
69
+ });
70
+
55
71
  /**
56
72
  * The `card` style, pinned.
57
73
  *
@@ -70,18 +86,19 @@ function tool(id: string, intent: string | undefined, title = 'Bash'): ToolCallD
70
86
  }
71
87
 
72
88
  async function mount(tools: ToolCallData[]) {
73
- container = document.createElement('div');
74
- document.body.appendChild(container);
89
+ const host = document.createElement('div');
90
+ document.body.appendChild(host);
91
+ container = host;
75
92
  await act(async () => {
76
93
  render(
77
94
  h(SessionStateProvider, {
78
95
  sessionId: 'test',
79
96
  children: h(ToolCallingSection, { tools }),
80
97
  }),
81
- container,
98
+ host,
82
99
  );
83
100
  });
84
- return container;
101
+ return host;
85
102
  }
86
103
 
87
104
  /**
@@ -35,7 +35,7 @@ export function UndoConfirmModal({ content, isOmpSession, undoing, error, onClos
35
35
 
36
36
  return (
37
37
  <div
38
- className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 p-4"
38
+ className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe"
39
39
  onClick={undoing ? undefined : onClose}
40
40
  role="dialog"
41
41
  aria-modal="true"
@@ -67,12 +67,29 @@ export function AttachmentToolbar({ attachments, onFilesSelected, onRemove, mode
67
67
  header, the draft and the toolbar read as one panel. A hairline over
68
68
  a tinted strip made the composer look like three stacked bars. */}
69
69
  <div className="composer-attach-row flex items-center flex-wrap gap-1.5 px-3 py-2 text-ink/60">
70
+ {/* `px-2 py-1` is not decoration: it is the SAME inset the toolbar row's
71
+ leading chip (`ModelDropdown`'s trigger) uses, so the two rows' first
72
+ marks share one column. With `p-1` the paperclip's ink started at
73
+ 18.75px from the card's edge while the harness mark below it started
74
+ at 21.6px — a 3px staircase down the composer's left gutter (measured
75
+ at 1400x900, card 684px).
76
+
77
+ `justify-start` is what keeps that column on a touch screen: the
78
+ 44px floor from `.tap-target` widens this button past its content, and
79
+ a centred glyph slid 8.75px off the harness mark under the Pixel 7
80
+ profile. The extra hit area has to grow to the RIGHT of the glyph,
81
+ never around it. */}
70
82
  <button
71
83
  onClick={() => fileInputRef.current?.click()}
72
- className="tap-target flex items-center justify-center hover:bg-ink/5 p-1 rounded transition-colors text-ink/60 hover:text-ink shrink-0"
84
+ className="tap-target flex items-center justify-start hover:bg-ink/5 px-2 py-1 rounded transition-colors text-ink/60 hover:text-ink shrink-0"
73
85
  title="Attach file or image"
74
86
  >
75
- <Paperclip size={14} />
87
+ {/* `-ml-0.5` is the lucide art's own bearing, not a layout fix: the
88
+ paperclip's path starts 1.75px inside its 14px box (24-unit
89
+ viewBox, ink from 3), while the harness mark's viewBox is cropped
90
+ to its path and starts at 0. Without it the ink column read 22.75
91
+ vs 21. */}
92
+ <Paperclip size={14} className="-ml-0.5" />
76
93
  </button>
77
94
 
78
95
  {/* The compact composer's own placeholder. The textarea is not rendered
@@ -137,7 +137,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
137
137
  // such ancestor; the same reason `Toast`, `anchored-menu` and `diagram-viewer`
138
138
  // portal.
139
139
  return createPortal(
140
- <div className="fixed inset-0 z-[60] flex items-center justify-center modal-scrim p-4" onClick={onClose}>
140
+ <div className="fixed inset-0 z-[60] flex items-center justify-center modal-scrim modal-safe" onClick={onClose}>
141
141
  <div
142
142
  className="glass-overlay w-full max-w-lg overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-xl"
143
143
  onClick={(event) => event.stopPropagation()}
@@ -85,7 +85,7 @@ const ACTION_BASE =
85
85
  'tap-target flex items-center justify-center rounded-lg flex-shrink-0 cursor-pointer ' +
86
86
  'transition duration-150 ' +
87
87
  'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/50 ' +
88
- 'focus-visible:ring-offset-2 focus-visible:ring-offset-paper active:scale-95';
88
+ 'focus-visible:ring-offset-2 focus-visible:ring-offset-paper';
89
89
 
90
90
  /**
91
91
  * Bottom config row of the composer: model + thinking + access + plan/goal
@@ -1,6 +1,7 @@
1
1
  import { useCallback, useMemo } from 'preact/hooks';
2
2
  import { useSearchParams } from '@/client/lib/router/search-params';
3
- import { AskFramesContext, splitAskFrames, type AskFramesHandle } from '@/client/hooks/chat/timeline/ask-frames';
3
+ import { splitAskFrames } from '@/client/hooks/chat/timeline/ask-frames';
4
+ import { AskFramesContext, type AskFramesHandle } from '@/client/hooks/chat/timeline/ask-frames-context';
4
5
  import type { ExtensionUiDialogRequest } from '@/shared/types/omp/agent';
5
6
  import type { UserTurnRef } from '@/shared/types/chat';
6
7
  import type { ExtensionDialogResponse } from '@/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Lazy';
@@ -106,18 +107,13 @@ export function ChatTimeline({ className = '', appSettings = {}, onSessionTitle,
106
107
  // blocked on (an approval gate, an extension picker) has no card and keeps
107
108
  // the modal. It also waits for committed history: a replayed dialog has no
108
109
  // card to match yet, and deciding early flashed the modal and withdrew it.
109
- const { framesByTool, looseByTool, orphanAsks, modalRequest } = useMemo(
110
- () => splitAskFrames(localMessages, extensionDialogs, !sessionLoading),
111
- [localMessages, extensionDialogs, sessionLoading],
112
- );
110
+ const { framesByTool, looseByTool, orphanAsks, formByTool, modalRequest } = useMemo(() => splitAskFrames(localMessages, extensionDialogs, !sessionLoading), [localMessages, extensionDialogs, sessionLoading]);
113
111
  const respondToFrame = useCallback((request: ExtensionUiDialogRequest, response: ExtensionDialogResponse) => {
114
112
  void respondToExtensionUi(request, response);
115
113
  resolveExtensionDialog(request.id);
116
114
  }, [respondToExtensionUi, resolveExtensionDialog]);
117
- const askFrames = useMemo<AskFramesHandle>(
118
- () => ({ framesByTool, looseByTool, orphanAsks, respond: respondToFrame }),
119
- [framesByTool, looseByTool, orphanAsks, respondToFrame],
120
- );
115
+ // `formByTool` rides along: an ask card answers omp 19.1.0's whole-form dialog through this responder too.
116
+ const askFrames = useMemo<AskFramesHandle>(() => ({ framesByTool, looseByTool, orphanAsks, formByTool, respond: respondToFrame }), [framesByTool, looseByTool, orphanAsks, formByTool, respondToFrame]);
121
117
 
122
118
  const newChat = useNewChatOpen({ folders, sessionId, selectedFolderId, ...(activeHarness.harness ? { harness: activeHarness.harness } : {}) });
123
119
  const { pendingUndo, undoing, error: undoError, requestUndo: handleRequestUndo, closeUndoConfirm, confirmUndo } = useUndoConfirmation(handleUndo);
@@ -67,7 +67,7 @@ export function PlanReviewPanel({ proposal, deciding, error, onDecide, onDismiss
67
67
  .join('\n\n');
68
68
 
69
69
  return (
70
- <div className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim p-4">
70
+ <div className="fixed inset-0 z-[70] flex items-center justify-center modal-scrim modal-safe">
71
71
  <div className="glass-overlay flex h-[88vh] w-full max-w-5xl flex-col overflow-hidden rounded-xl border border-ink/15 bg-paper shadow-2xl">
72
72
  <div className="flex items-center justify-between border-b border-ink/10 px-4 py-3">
73
73
  <div className="flex min-w-0 items-center gap-2">