@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
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The ONE shape of a phone chrome row: the height, the notch and the window
8
+ * insets.
9
+ *
10
+ * Every full-screen phone surface is a title bar — the chat header, the two
11
+ * drawers, the model picker, the editor and the diff. Each of them used to state
12
+ * its own four declarations, and they had already drifted: the chat header and
13
+ * both drawers were `3.5rem`, while the editor and the diff were `3rem`, so
14
+ * opening a file moved the back control 8px up and made the row read as a
15
+ * different window. The model picker was a third case — a 36px strip holding a
16
+ * 28px close button, under a 49px tab strip, i.e. two rows where every other
17
+ * surface has one.
18
+ *
19
+ * The inset is `titlebarInsetLeft(titlebarPaddingLeft(...))`, not
20
+ * `titlebarPaddingLeft` alone: a native shell that does not report the PWA's
21
+ * `titlebar-area-x` (a WKWebView) draws its traffic lights over the page, and
22
+ * the resolved padding then sits UNDER them. `titlebarInsetLeft` is the shell's
23
+ * own report, which is what the desktop navbar and the session drawer already
24
+ * use — and a desktop shell window narrowed past the layout breakpoint renders
25
+ * this phone chrome, so it needs the same answer.
26
+ *
27
+ * The safe area is height AND padding because `box-sizing` is border-box
28
+ * globally: height alone pins the content to y=0 (controls under the status
29
+ * bar), padding alone is eaten out of the row.
30
+ */
31
+
32
+ import type { CSSProperties } from 'preact/compat';
33
+ import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
34
+ import { titlebarInsetLeft } from '@/client/lib/desktop/titlebar';
35
+
36
+ /** The row's height, notch included. */
37
+ export const PHONE_ROW_HEIGHT = 'calc(3.5rem + env(safe-area-inset-top, 0px))';
38
+
39
+ /**
40
+ * The full set of declarations a phone title bar carries.
41
+ *
42
+ * @param base the horizontal inset when no safe area and no shell applies.
43
+ * `0.75rem` is the app header's own `px-3`, so a surface that draws a control
44
+ * at the row's edge lines up with the hamburger above the chat.
45
+ */
46
+ export function phoneRowStyle(base = '0.75rem'): CSSProperties {
47
+ return {
48
+ height: PHONE_ROW_HEIGHT,
49
+ paddingTop: 'env(safe-area-inset-top, 0px)',
50
+ paddingLeft: titlebarInsetLeft(titlebarPaddingLeft(base, true)),
51
+ paddingRight: titlebarPaddingRight(base, true),
52
+ };
53
+ }
54
+
55
+ /**
56
+ * The same insets WITHOUT a height, for a full-screen frame that owns the whole
57
+ * viewport (`h-dvh`).
58
+ *
59
+ * A full-screen surface is not a row: giving it `PHONE_ROW_HEIGHT` would make
60
+ * the dialog 56px tall. What it does need is the notch and the shell's insets,
61
+ * because its FIRST row is the title bar — the model picker's harness strip, the
62
+ * editor's file row — and that row's controls would otherwise sit under the
63
+ * status bar and under a macOS window's traffic lights.
64
+ */
65
+ export function phoneFrameStyle(base = '0.75rem'): CSSProperties {
66
+ return {
67
+ paddingTop: 'env(safe-area-inset-top, 0px)',
68
+ paddingLeft: titlebarInsetLeft(titlebarPaddingLeft(base, true)),
69
+ paddingRight: titlebarPaddingRight(base, true),
70
+ };
71
+ }
@@ -0,0 +1,179 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The press state: ONE scale, stated once, on the whole control family.
8
+ *
9
+ * Before this rule, 13 buttons carried their own `active:scale-*` at four
10
+ * values (0.90 / 0.95 / 0.98, plus an `active:scale-98` Tailwind never emitted,
11
+ * so that control had no press state at all) while ~880 buttons answered a
12
+ * click with nothing at all. The value is a single fact, so a second copy in a
13
+ * component is the defect these specs guard: it is how one button ends up
14
+ * shrinking 5% beside a neighbour that shrinks 2%.
15
+ *
16
+ * A `<button>` is not the only control either. Counted across `src/client`
17
+ * (excluding specs): 15 interactive elements are not buttons — 9
18
+ * `div[role='button']`, 2 `div[role='tab']`, 1 `div[role='option']` and 3
19
+ * `<summary>`. The first version of this rule listed only `button` and
20
+ * `[role='button']`, so the panel strip's chip and the MCP disclosure answered a
21
+ * press with nothing (measured on the production build: both computed
22
+ * `scale: none` while held). The selector list is asserted below so a future
23
+ * control type cannot quietly fall outside it again.
24
+ *
25
+ * The rule is UNLAYERED on purpose. Tailwind's `transition-*` utilities set
26
+ * `transition-property` themselves, and a layered rule loses to them.
27
+ */
28
+
29
+ import { describe, expect, test } from 'bun:test';
30
+ import { Glob } from 'bun';
31
+ import { readClientCss } from '@/test-support/glass-css';
32
+
33
+ const read = readClientCss;
34
+
35
+ /** The declaration block of the rule starting at `at` (multi-line selectors included). */
36
+ function bodyAt(css: string, at: number): string {
37
+ const open = css.indexOf('{', at);
38
+ const close = css.indexOf('\n}', open);
39
+ return css.slice(open + 1, close);
40
+ }
41
+
42
+ /** The selector text of the rule that declares `scale: 0.97`, from its start. */
43
+ function pressSelector(css: string): string {
44
+ const at = css.indexOf(':not(:disabled):active {', css.indexOf('The press state'));
45
+ expect(at).toBeGreaterThan(-1);
46
+ const start = css.lastIndexOf('/*', at);
47
+ return css.slice(start, at + ':not(:disabled):active'.length);
48
+ }
49
+
50
+ describe('control press state', () => {
51
+ test('one scale, applied to every control family', async () => {
52
+ const css = await read('./tailwind.css');
53
+ const selector = pressSelector(css);
54
+
55
+ // Every family the app actually draws. Counted in `src/client` (specs
56
+ // excluded): 9 role=button, 2 role=tab, 1 role=option, 3 summary, plus the
57
+ // ordinary buttons, switches, menu rows and radios.
58
+ for (const family of [
59
+ 'button',
60
+ 'summary',
61
+ "[role='button']",
62
+ "[role='tab']",
63
+ "[role='option']",
64
+ "[role='menuitem']",
65
+ "[role='menuitemradio']",
66
+ "[role='menuitemcheckbox']",
67
+ "[role='radio']",
68
+ "[role='checkbox']",
69
+ "[role='switch']",
70
+ ]) {
71
+ expect({ family, listed: selector.includes(family) }).toEqual({ family, listed: true });
72
+ }
73
+
74
+ // Exactly one declaration of the value: a second rule for the same fact is
75
+ // how the values drift apart again.
76
+ expect([...css.matchAll(/\bscale:\s*0\.97;/g)]).toHaveLength(1);
77
+ });
78
+
79
+ test('a disabled control does not move', async () => {
80
+ const css = await read('./tailwind.css');
81
+ const selector = pressSelector(css);
82
+ // `:not(:disabled)` guards the whole list, so a disabled button cannot
83
+ // acknowledge a press. It never matches a non-form element, which is why
84
+ // the same list serves both.
85
+ expect(selector).toContain(':not(:disabled)');
86
+ expect(selector).not.toMatch(/(^|[^:])button:active/);
87
+ });
88
+
89
+ test('the scale transitions, and composes with a call site transform', async () => {
90
+ const css = await read('./tailwind.css');
91
+ const at = css.indexOf(' * ------------------------------------------------------------------------- */\n:is(button, summary');
92
+ expect(at).toBeGreaterThan(-1);
93
+ const body = bodyAt(css, at);
94
+
95
+ // `scale`, not `transform`: the individual property composes with whatever
96
+ // transform a call site sets instead of replacing it.
97
+ expect(body).toContain('scale');
98
+ // Literals, not `var(--tw-duration)`: measured in WebKit, a layered custom
99
+ // property never reaches a `<button>`, so the var form made the duration
100
+ // engine-dependent (0.12s there, 0.2s in Chromium).
101
+ expect(body).toContain('transition-duration: 120ms;');
102
+ expect(body).toContain('transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);');
103
+ expect(body).not.toContain('var(--tw-duration');
104
+ // The colour properties Tailwind's `transition-*` utilities animate are
105
+ // restated, because this unlayered rule replaces their property list.
106
+ for (const property of ['background-color', 'border-color', 'opacity', 'box-shadow']) {
107
+ expect(body).toContain(property);
108
+ }
109
+ });
110
+
111
+ test('reduced motion drops the easing, not the state', async () => {
112
+ const css = await read('./tailwind.css');
113
+ const at = css.indexOf('/* Same list MINUS `scale`');
114
+ expect(at).toBeGreaterThan(-1);
115
+ const block = css.slice(at, css.indexOf('\n}\n', at));
116
+ expect(block).toContain('transition-property:');
117
+ // `scale` stays OUT of the reduced list, so the press still lands.
118
+ expect(block).not.toContain('scale,');
119
+ });
120
+
121
+ test('a control containing the pressed control does not shrink with it', async () => {
122
+ const css = await read('./tailwind.css');
123
+ const at = css.indexOf(":is([role='button'], [role='option'], [role='menuitem']):has(");
124
+ expect(at).toBeGreaterThan(-1);
125
+
126
+ // Measured on the production build before this rule: a press on the model
127
+ // picker's favourite star scaled the ROW and the star, 0.97 x 0.97.
128
+ expect(bodyAt(css, at)).toContain('scale: none;');
129
+ });
130
+
131
+ test('a tab chip is the control that moves, not the button inside it', async () => {
132
+ const css = await read('./tailwind.css');
133
+
134
+ // The chip carries the fill, border and radius; its inner button is a bare
135
+ // hit area. Suppressing the chip made only the label twitch.
136
+ const inner = css.indexOf("[role='tab'] :is(button, [role='button']):not(:disabled):active");
137
+ expect(inner).toBeGreaterThan(-1);
138
+ expect(bodyAt(css, inner)).toContain('scale: none;');
139
+
140
+ // And the chip itself is NOT the guard's SUBJECT, or it would never move.
141
+ // (`[role='tab']` legitimately appears in the `:has()` argument: that is
142
+ // what detects a pressed inner tab.)
143
+ const guard = css.indexOf(":is([role='button'], [role='option'], [role='menuitem']):has(");
144
+ expect(guard).toBeGreaterThan(-1);
145
+ const subject = css.slice(guard, css.indexOf(':has(', guard));
146
+ expect(subject).not.toContain("[role='tab']");
147
+ });
148
+
149
+ test('a link styled as a control answers like one', async () => {
150
+ const css = await read('./tailwind.css');
151
+ const selector = pressSelector(css);
152
+
153
+ // 20 anchors ship; 10 are controls (wiki nav rows, external-link plates, the
154
+ // web-search chip, the About dialog's social rows, the update popup, the QR
155
+ // download). All were inert on press before this.
156
+ expect(selector).toContain('a[href]');
157
+
158
+ // Matched by exact class TOKEN, not substring: `flex-shrink-0` matches
159
+ // `[class*='flex']` but leaves an inline box, where `scale` is a no-op
160
+ // (measured: an inline anchor at `scale: 0.97` keeps its 42.48px width).
161
+ expect(selector).toContain("[class~='flex']");
162
+ expect(selector).not.toContain("[class*='flex']");
163
+ // The display list has to include every box type that can be transformed.
164
+ for (const token of ["[class~='inline-flex']", "[class~='block']", "[class~='inline-block']", "[class~='grid']"]) {
165
+ expect(selector).toContain(token);
166
+ }
167
+ });
168
+
169
+ test('no call site re-declares the press scale', async () => {
170
+ const offenders: string[] = [];
171
+ for await (const file of new Glob('src/client/**/*.tsx').scan('.')) {
172
+ const source = await Bun.file(file).text();
173
+ for (const match of source.matchAll(/active:scale-[^\s'"`}]+/g)) {
174
+ offenders.push(`${file}: ${match[0]}`);
175
+ }
176
+ }
177
+ expect(offenders).toEqual([]);
178
+ });
179
+ });
@@ -171,6 +171,21 @@
171
171
  background-color: color-mix(in srgb, var(--theme-ink) 40%, transparent);
172
172
  }
173
173
 
174
+ /* The gutter a centred dialog keeps from the viewport's edges.
175
+ *
176
+ * `p-4` is 16px on every surface, but a `viewport-fit: cover` phone draws its
177
+ * status bar and home indicator OVER the page — so a tall dialog's header sat
178
+ * under the notch and its footer under the indicator. Every dialog that can
179
+ * reach an edge takes this instead: the SAME 16px on a desktop (`env()` is 0
180
+ * there), the safe area where there is one. Stated once so the next dialog
181
+ * cannot ship a `p-4` that only looks right on a desk. */
182
+ .modal-safe {
183
+ padding-top: max(1rem, env(safe-area-inset-top, 0px));
184
+ padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
185
+ padding-left: max(1rem, env(safe-area-inset-left, 0px));
186
+ padding-right: max(1rem, env(safe-area-inset-right, 0px));
187
+ }
188
+
174
189
  [data-theme-variant='dark'] .modal-scrim {
175
190
  /* 58% black put the dialog at 1.01:1 against its own scrim — measured, the
176
191
  * panel disappeared into the veil. The veil's job is to recede, not to match:
@@ -1619,3 +1634,134 @@ html :is(span, div, p, a, li, td, th, h1, h2, h3, h4, h5, h6, label, strong, em,
1619
1634
  min-height: 44px;
1620
1635
  }
1621
1636
  }
1637
+
1638
+ /* ============================================================================
1639
+ * The press state: one scale, on every control.
1640
+ *
1641
+ * Every control in the app answers a HOVER (295 call sites) and a press only
1642
+ * sometimes: 13 buttons carried their own `active:scale-*` at four different
1643
+ * values — 0.90, 0.95, 0.98, and one `active:scale-98` that Tailwind never
1644
+ * emitted, so that button had no press state at all — while the remaining ~880
1645
+ * answered a click with nothing. A control that looks identical while held
1646
+ * reads as "the press did not land".
1647
+ *
1648
+ * Stated HERE rather than at 898 call sites: a second copy of the value is how
1649
+ * one control ends up shrinking 5% beside a neighbour that shrinks 2%. `scale`
1650
+ * is the individual property, not `transform`, so it composes with any
1651
+ * transform a call site already sets instead of replacing it.
1652
+ *
1653
+ * **0.97 is the number.** Measured as the smallest travel that is still visible
1654
+ * on the app's densest control: a 28px icon button moves 0.84px, where the
1655
+ * 0.98 the phone toolbar used moved 0.56px and read as nothing. 0.95 — the old
1656
+ * idiom, kept on the filled buttons — is a visible bounce on a full-width row,
1657
+ * and a row that detaches from both its edges while held is louder than the
1658
+ * click it acknowledges.
1659
+ *
1660
+ * **UNLAYERED, deliberately.** Tailwind's `transition-*` utilities set
1661
+ * `transition-property` themselves, so a layered rule loses to them at each of
1662
+ * the 264 buttons that carry one and the scale would snap instead of easing.
1663
+ * The property list therefore restates the colour properties those utilities
1664
+ * animate — nothing that transitions today stops transitioning.
1665
+ *
1666
+ * **A `<button>` is not the only control.** Counted across `src/client`: 15
1667
+ * interactive elements are NOT buttons — 9 `div[role='button']` (the settings
1668
+ * cards, the model row, the editor tabs), 2 `div[role='tab']` (the panel strip's
1669
+ * chip, the harness tabs), 1 `div[role='option']` (the composer picker's rows)
1670
+ * and 3 native `<summary>` (the settings disclosures). A button-only rule missed
1671
+ * all of them; measured on the production build, the Files panel's chip and the
1672
+ * MCP section's `<summary>` both computed `scale: none` while held. The list
1673
+ * below is the whole family, so a toggle answers a press whatever element it is.
1674
+ * `:not(:disabled)` is harmless on a non-form element (it never matches one),
1675
+ * so the same list serves both.
1676
+ *
1677
+ * **120ms and one easing, as literals.** `var(--tw-duration, …)` would have kept
1678
+ * `duration-200` authoritative on the two settings switches, but WebKit — the
1679
+ * macOS shell's WKWebView — drops a LAYERED custom property on `<button>`
1680
+ * (measured in WebKit: `.duration-200` reads `--tw-duration: ''` and
1681
+ * `transition-duration: 0.12s` on a button, `.2s` on a div; Chromium resolves
1682
+ * `.2s` on both). A duration that changes per engine is the same defect as a
1683
+ * scale that changes per component, so the value is stated once.
1684
+ *
1685
+ * `prefers-reduced-motion` drops the TRANSITION, not the state: an instant
1686
+ * 3% shrink is feedback, not motion, and a control that stops acknowledging a
1687
+ * press is worse than one that does it without easing.
1688
+ *
1689
+ * **A link styled as a button answers like one.** 20 `<a>` elements ship, and
1690
+ * 10 of them are controls — the wiki panel's nav rows, its external-link plates,
1691
+ * the web-search source chip, the About dialog's social rows, the update popup's
1692
+ * "release notes" button, the pairing QR download. All were inert on press.
1693
+ *
1694
+ * They are matched by a DISPLAY check, because `scale` does not apply to a
1695
+ * non-replaced `display: inline` box: measured in Chromium, an inline anchor
1696
+ * computes `scale: 0.97` and its rect does not move at all, so listing every
1697
+ * `<a>` would promise a press on 9 prose links that cannot show one. The
1698
+ * `:where(…)` guard keeps the list to boxes that can be transformed, matched by
1699
+ * exact class TOKEN (`[class~=…]`) — a substring match would accept
1700
+ * `flex-shrink-0`, which is still an inline box. A bare inline link keeps the
1701
+ * text colour transition it already had.
1702
+ * ------------------------------------------------------------------------- */
1703
+ :is(button, summary, [role='button'], [role='tab'], [role='option'], [role='menuitem'],
1704
+ [role='menuitemradio'], [role='menuitemcheckbox'], [role='radio'], [role='checkbox'],
1705
+ [role='switch'], a[href]:where([class~='flex'], [class~='inline-flex'], [class~='block'], [class~='inline-block'], [class~='grid'], [class~='inline-grid'])):not(:disabled) {
1706
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color,
1707
+ fill, stroke, opacity, box-shadow, transform, translate, scale, rotate;
1708
+ transition-duration: 120ms;
1709
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1710
+ }
1711
+
1712
+ :is(button, summary, [role='button'], [role='tab'], [role='option'], [role='menuitem'],
1713
+ [role='menuitemradio'], [role='menuitemcheckbox'], [role='radio'], [role='checkbox'],
1714
+ [role='switch'], a[href]:where([class~='flex'], [class~='inline-flex'], [class~='block'], [class~='inline-block'], [class~='grid'], [class~='inline-grid'])):not(:disabled):active {
1715
+ scale: 0.97;
1716
+ }
1717
+
1718
+ /* A control that CONTAINS the pressed control does not shrink with it.
1719
+ *
1720
+ * The model picker's row is a `role=button` div holding two real buttons (the
1721
+ * favourite star and the thinking cycle), and the panel strip's chip is a
1722
+ * `role=tab` div wrapping the tab button plus its close button. Both matched
1723
+ * the press rule, so a press on the inner control scaled the outer one too —
1724
+ * measured on the production build, `rowScale: 0.97` and `innerScale: 0.97`
1725
+ * from one press, a compounded 6% shrink of a 46px target inside a 498px row.
1726
+ * Only the control under the pointer answers a press.
1727
+ *
1728
+ * Specificity, not source order, is what makes this win: this selector is
1729
+ * (0,3,0) — `:is()` at (0,1,0) plus `:has()` taking its argument's `:active`
1730
+ * at (0,2,0) — against the press rule's (0,2,0).
1731
+ *
1732
+ * `[role='tab']` is deliberately NOT in this list. A panel chip is ONE control
1733
+ * whose inner button is its hit area (`flex-1`, no fill of its own), so
1734
+ * suppressing the chip made the label shrink inside a static background —
1735
+ * measured: chip `scale: none` with the inner button at `0.97`, a 2px text
1736
+ * twitch instead of a press. The chip carries the background, the border and
1737
+ * the radius, so the chip is what moves, and the rule below stops its inner
1738
+ * buttons from compounding on top of that. */
1739
+ :is([role='button'], [role='option'], [role='menuitem']):has(
1740
+ :is(button, [role='button'], [role='tab'], [role='option']):active
1741
+ ) {
1742
+ scale: none;
1743
+ }
1744
+
1745
+ /* A chip's inner buttons ride the chip's press, whichever one is under the
1746
+ * pointer (the select area, or the close button).
1747
+ *
1748
+ * `:not(:disabled)` is here for SPECIFICITY, not for its condition: the press
1749
+ * rule is (0,3,0), so this has to reach (0,4,0) to win. Measured before the
1750
+ * fix: `inner` computed `0.97` and squeezed the label inside a chip that was
1751
+ * not moving. */
1752
+ [role='tab'] :is(button, [role='button']):not(:disabled):active {
1753
+ scale: none;
1754
+ }
1755
+
1756
+ @media (prefers-reduced-motion: reduce) {
1757
+ /* Same list MINUS `scale`: the press still lands (an instant 3% shrink is
1758
+ * feedback, not motion) while every colour transition a call site already
1759
+ * asked for keeps running. Dropping the duration instead would make hover
1760
+ * and focus snap for a user who only asked for less movement. */
1761
+ :is(button, summary, [role='button'], [role='tab'], [role='option'], [role='menuitem'],
1762
+ [role='menuitemradio'], [role='menuitemcheckbox'], [role='radio'], [role='checkbox'],
1763
+ [role='switch']):not(:disabled) {
1764
+ transition-property: color, background-color, border-color, outline-color,
1765
+ text-decoration-color, fill, stroke, opacity, box-shadow, transform, translate, rotate;
1766
+ }
1767
+ }
@@ -84,13 +84,22 @@ describe('window-drag contract', () => {
84
84
  * the phone header's hamburger and wordmark sat UNDER the traffic lights.
85
85
  */
86
86
  test('the phone headers use the shell inset', () => {
87
+ // ONE module states it, and every phone title bar takes its row from there.
88
+ // Asserting the helper per file was the weaker form: a header could satisfy
89
+ // it while stating a different height, which is how the editor's row ended
90
+ // up 8px shorter than the chat header's.
91
+ expect(source('src/client/lib/ui/phone-row.ts')).toContain('titlebarInsetLeft(');
87
92
  for (const path of [
88
93
  'src/client/components/mobile/mobile-main-view/Header.tsx',
89
94
  'src/client/components/mobile/mobile-session-sidebar/Header.tsx',
90
95
  'src/client/components/mobile/mobile-right-sidebar/Chrome.tsx',
96
+ 'src/client/components/mobile/mobile-right-sidebar/Header.tsx',
97
+ 'src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx',
91
98
  ]) {
92
- expect(source(path)).toContain('titlebarInsetLeft(');
99
+ expect(source(path)).toContain('phoneRowStyle(');
93
100
  }
101
+ // A full-screen frame is not a row: it takes the insets without the height.
102
+ expect(source('src/client/components/workspace/model-dropdown/Fullscreen.tsx')).toContain('phoneFrameStyle(');
94
103
  });
95
104
 
96
105
  /**
@@ -123,7 +123,12 @@ describe('command classification sets', () => {
123
123
  // HTML form in 18.18.3): the agent parks on it exactly as it does on a
124
124
  // `select`, so a list without it leaves the frame unremembered and the
125
125
  // question unanswerable after a reload.
126
- expect(Object.keys(ANSWERABLE_UI_METHODS).sort()).toEqual(['ask', 'confirm', 'editor', 'input', 'select']);
126
+ //
127
+ // `form` is omp 19.1.0's `ui.formDialog`, which the `ask` tool now uses: the
128
+ // whole HTML form in ONE frame, answered by ONE `{ data }` reply. A list
129
+ // without it parks the run with nothing on screen, because neither the
130
+ // server nor the client half recognises the request.
131
+ expect(Object.keys(ANSWERABLE_UI_METHODS).sort()).toEqual(['ask', 'confirm', 'editor', 'form', 'input', 'select']);
127
132
  // Fire-and-forget methods must never block a turn waiting for a response.
128
133
  expect(ANSWERABLE_UI_METHODS.notify).toBeUndefined();
129
134
  expect(ANSWERABLE_UI_METHODS.cancel).toBeUndefined();
@@ -0,0 +1,155 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The submitted `data` object of a `form` dialog (omp 19.1.0).
8
+ *
9
+ * omp's RPC host now renders the `ask` tool's whole HTML form in ONE
10
+ * `method:"form"` frame and validates the reply against the form it parsed
11
+ * (`parseFormDialogResponse` in `modes/rpc/rpc-mode.ts`):
12
+ *
13
+ * - every key must name a control of the form;
14
+ * - a choice value must be an option `value` the control offered (a disabled
15
+ * option is refused outright), or — for a radio/checkbox group that offers
16
+ * "Other" — ONE free-text entry;
17
+ * - a checkbox group or `<select multiple>` takes an ARRAY, every other
18
+ * choice one string;
19
+ * - a text control takes a string (a number is accepted for `number`/`range`);
20
+ * - `required` fields must carry a value, and at least one field must carry
21
+ * an entry at all (an empty object throws).
22
+ *
23
+ * This module is that contract in one place, pure and testable: the card
24
+ * collects picks, and this turns them into the exact object omp accepts — or
25
+ * says which question is still unanswered, so Submit can stay disabled instead
26
+ * of sending a frame omp refuses.
27
+ */
28
+
29
+ import type { AskQuestion } from '@/shared/lib/chat/ask-form/types';
30
+
31
+ /** What the user picked for one question, by control name. */
32
+ export interface FormPick {
33
+ /** Option labels the user toggled on (choice controls only). */
34
+ selected: string[];
35
+ /** Typed answer — a text control's value, or a choice's "Other" text. */
36
+ text: string;
37
+ }
38
+
39
+ /** One control's contribution, or the reason there is none yet. */
40
+ export interface FormAnswer {
41
+ /** The control name (`AskQuestion.id`). */
42
+ name: string;
43
+ /** `string` for a single choice or text field, `string[]` for a group. */
44
+ value: string | string[];
45
+ /** The question that still has to be answered before this form can submit. */
46
+ missing?: string;
47
+ }
48
+
49
+ /** Whether a question takes an array (checkbox group or multi-select). */
50
+ export function isArrayQuestion(question: AskQuestion): boolean {
51
+ return question.multi === true && question.options.length > 1;
52
+ }
53
+
54
+ /** The option a picked label names, matching on label first and `value` second
55
+ * (a form may label a row differently from what it submits). */
56
+ function optionFor(question: AskQuestion, label: string): { value: string; disabled: boolean } | undefined {
57
+ const needle = label.trim();
58
+ const byLabel = question.options.find((option) => (option.label || option.value || '').trim() === needle);
59
+ const found = byLabel ?? question.options.find((option) => (option.value ?? '').trim() === needle);
60
+ return found ? { value: found.value ?? found.label, disabled: found.disabled === true } : undefined;
61
+ }
62
+
63
+ /**
64
+ * The submitted value of one question, or `undefined` when the user has not
65
+ * answered it.
66
+ *
67
+ * A choice's picks are mapped to the form's own `value` attributes — omp
68
+ * compares against those, never the visible label — and a disabled option is
69
+ * dropped rather than sent (omp refuses the whole frame for it).
70
+ */
71
+ export function answerForQuestion(question: AskQuestion, pick: FormPick | undefined): string | string[] | undefined {
72
+ const selected = pick?.selected ?? [];
73
+ const text = pick?.text.trim() ?? '';
74
+
75
+ if (question.kind === 'text') return text ? text : undefined;
76
+
77
+ const values: string[] = [];
78
+ for (const label of selected) {
79
+ const option = optionFor(question, label);
80
+ if (!option || option.disabled) continue;
81
+ if (!values.includes(option.value)) values.push(option.value);
82
+ }
83
+
84
+ if (isArrayQuestion(question)) {
85
+ // "Other" is an extra ENTRY in a group, never a replacement for it.
86
+ return text ? [...values, text] : values;
87
+ }
88
+ // A single choice submits ONE string: the typed answer stands in for the
89
+ // option, exactly as omp's `choiceValue` does for its "Other" row.
90
+ if (text) return text;
91
+ return values[0];
92
+ }
93
+
94
+ /**
95
+ * Every question's contribution, in form order.
96
+ *
97
+ * A question whose control is `required` and still empty carries `missing` so
98
+ * the card can name it; an unanswered optional control is omitted from the
99
+ * payload (omp treats an absent entry as "nothing checked").
100
+ */
101
+ export function formAnswers(questions: AskQuestion[], picks: Record<number, FormPick>): FormAnswer[] {
102
+ return questions.map((question, index) => {
103
+ const value = answerForQuestion(question, picks[index]);
104
+ const empty = value === undefined || (Array.isArray(value) && value.length === 0);
105
+ return {
106
+ name: question.id ?? '',
107
+ value: value ?? (isArrayQuestion(question) ? [] : ''),
108
+ ...(empty && question.required === true ? { missing: question.question } : {}),
109
+ };
110
+ });
111
+ }
112
+
113
+ /** The `data` object to send, or the first reason the form cannot be submitted.
114
+ *
115
+ * At least one entry is mandatory: omp throws on an empty object ("at least
116
+ * one field must carry the entry"), and a Submit that could only be refused is
117
+ * disabled instead. */
118
+ export function buildFormData(
119
+ questions: AskQuestion[],
120
+ picks: Record<number, FormPick>,
121
+ ): { data: Record<string, string | string[]> } | { missing: string } {
122
+ const answers = formAnswers(questions, picks);
123
+ const missing = answers.find((answer) => answer.missing !== undefined);
124
+ if (missing?.missing !== undefined) return { missing: missing.missing };
125
+
126
+ const data: Record<string, string | string[]> = {};
127
+ for (const answer of answers) {
128
+ if (!answer.name) continue;
129
+ const value = answer.value;
130
+ if (typeof value === 'string' ? value.trim() === '' : value.length === 0) continue;
131
+ data[answer.name] = value;
132
+ }
133
+ if (Object.keys(data).length === 0) return { missing: 'Answer at least one question.' };
134
+ return { data };
135
+ }
136
+
137
+ /** Answers omp already recorded, as picks, so a reloaded card shows them. */
138
+ export function picksFromAnswers(
139
+ questions: AskQuestion[],
140
+ recorded: (readonly string[] | null)[],
141
+ ): Record<number, FormPick> {
142
+ const picks: Record<number, FormPick> = {};
143
+ questions.forEach((question, index) => {
144
+ const parts = recorded[index];
145
+ if (!parts || parts.length === 0) return;
146
+ const labels: string[] = [];
147
+ const extra: string[] = [];
148
+ for (const part of parts) {
149
+ if (optionFor(question, part)) labels.push(part);
150
+ else extra.push(part);
151
+ }
152
+ picks[index] = { selected: labels, text: extra.join(', ') };
153
+ });
154
+ return picks;
155
+ }
@@ -41,6 +41,8 @@ export interface DraftField {
41
41
  /** Caption in force when the field appeared, and its section's legend. */
42
42
  caption: string;
43
43
  section: string;
44
+ /** The control carries `required`; omp refuses a form submission that leaves it empty. */
45
+ required: boolean;
44
46
  }
45
47
 
46
48
  /** Named fields, in document order, as the questions the card renders. */
@@ -54,6 +56,7 @@ export function toQuestions(fields: DraftField[]): AskQuestion[] {
54
56
  label: option.label || option.value,
55
57
  value: option.value,
56
58
  ...(option.checked ? { checked: true } : {}),
59
+ ...(option.disabled ? { disabled: true } : {}),
57
60
  }));
58
61
  if (
59
62
  field.kind === 'choice' &&
@@ -71,6 +74,7 @@ export function toQuestions(fields: DraftField[]): AskQuestion[] {
71
74
  multi: field.multi,
72
75
  kind: field.kind,
73
76
  recommended: field.kind === 'choice' && !field.multi && checked >= 0 ? checked : undefined,
77
+ ...(field.required ? { required: true } : {}),
74
78
  });
75
79
  }
76
80
  return questions;
@@ -93,6 +93,10 @@ export function parseAskForm(html: string): AskQuestion[] {
93
93
  const group = groups.get(key);
94
94
  if (group) {
95
95
  group.options.push(option);
96
+ // omp does the same (`group.field.required ||= required`): one member of
97
+ // the group marking it required is enough, and sending a group without
98
+ // its required pick is refused.
99
+ group.required ||= 'required' in attrs;
96
100
  return;
97
101
  }
98
102
  const field: DraftField = {
@@ -106,6 +110,7 @@ export function parseAskForm(html: string): AskQuestion[] {
106
110
  multiline: false,
107
111
  caption,
108
112
  section,
113
+ required: 'required' in attrs,
109
114
  };
110
115
  groups.set(key, field);
111
116
  addField(field);
@@ -122,6 +127,7 @@ export function parseAskForm(html: string): AskQuestion[] {
122
127
  multiline: false,
123
128
  caption,
124
129
  section,
130
+ required: 'required' in attrs,
125
131
  });
126
132
  };
127
133
 
@@ -156,6 +162,7 @@ export function parseAskForm(html: string): AskQuestion[] {
156
162
  multiline: false,
157
163
  caption,
158
164
  section,
165
+ required: 'required' in attrs,
159
166
  });
160
167
  };
161
168
 
@@ -309,6 +316,7 @@ export function parseAskForm(html: string): AskQuestion[] {
309
316
  multiline: true,
310
317
  caption,
311
318
  section,
319
+ required: 'required' in token.attrs,
312
320
  });
313
321
  index = close;
314
322
  continue;