@kabmo-labs/kabmo 0.45.1 → 0.46.1

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 (369) 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-qdkmv8bj.js} +2 -2
  4. package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-k84ns803.js} +3 -3
  5. package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-r1n717f7.js} +2 -2
  6. package/dist/client/static/js/ImageView-jkrdrq8v.js +1 -0
  7. package/dist/client/static/js/LayoutWrapper-sh634350.js +2 -0
  8. package/dist/client/static/js/Modal-xe6h99jn.js +59 -0
  9. package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-ffg4mccg.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-cdcbsee9.js} +1 -1
  11. package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-89sscpz6.js} +19 -19
  12. package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-68c0ccbv.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-h3a5s259.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-983p0jgn.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-16pse5mh.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-mvnb00zt.js} +3 -3
  21. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-kmpd91xb.js} +7 -7
  22. package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-3ek5r5se.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-jkbh84zn.js} +1 -1
  28. package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-4fdc0sgn.js} +2 -2
  29. package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-hbk61nq9.js} +18 -18
  30. package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-hfpbr9qh.js} +1 -1
  31. package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-fn0nt71a.js} +3 -3
  32. package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-ssswxjeb.js} +4 -4
  33. package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-whnzxv6f.js} +2 -2
  34. package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-hk1chzxk.js} +2 -2
  35. package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-zmsj8r4g.js} +1 -1
  36. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-q1vkg5mr.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-kt98vg8j.js} +1 -1
  39. package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-ey3avsn9.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-7gvtpn3d.js +1 -0
  43. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-a9k1at43.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-gnekjfym.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-qt9jc4ck.js → index-19x11s5w.js} +2 -2
  49. package/dist/client/static/js/{index-0gmw2bt3.js → index-1ax52p0q.js} +2 -2
  50. package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
  51. package/dist/client/static/js/index-2a6qp9y6.js +2 -0
  52. package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
  53. package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
  54. package/dist/client/static/js/{index-bcpyxt97.js → index-3x7h2eqj.js} +2 -2
  55. package/dist/client/static/js/{index-q36gq3yz.js → index-4cag7w6k.js} +198 -198
  56. package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
  57. package/dist/client/static/js/{index-m9s7r4z9.js → index-5ka2tyf9.js} +3 -3
  58. package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
  59. package/dist/client/static/js/{index-frqq7yen.js → index-60v30k5h.js} +64 -64
  60. package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
  61. package/dist/client/static/js/{index-xgv501v0.js → index-65afr75v.js} +2 -2
  62. package/dist/client/static/js/index-83rkg916.js +2 -0
  63. package/dist/client/static/js/{index-ga6492qc.js → index-84fyq5a6.js} +1 -1
  64. package/dist/client/static/js/{index-2tmnqqzt.js → index-8g7q8mz4.js} +3 -3
  65. package/dist/client/static/js/{index-mnh8nptt.js → index-9vv7wr1n.js} +2 -2
  66. package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
  67. package/dist/client/static/js/{index-j50y0z44.js → index-amsa0tfs.js} +1 -1
  68. package/dist/client/static/js/index-atq9q1s7.js +1 -0
  69. package/dist/client/static/js/{index-8ps5gdwz.js → index-b2e5pwx7.js} +5 -5
  70. package/dist/client/static/js/{index-cza9mnxx.js → index-b5dfvget.js} +6 -6
  71. package/dist/client/static/js/{index-zwx3vbf0.js → index-bsr7wmj2.js} +1 -1
  72. package/dist/client/static/js/{index-ex3w7t7s.js → index-c9e417cs.js} +2 -2
  73. package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
  74. package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
  75. package/dist/client/static/js/index-dpy3ewrn.css +1 -0
  76. package/dist/client/static/js/index-dt6q3rws.js +12 -0
  77. package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
  78. package/dist/client/static/js/{index-127se1a3.js → index-e9cxje00.js} +19 -19
  79. package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
  80. package/dist/client/static/js/{index-c7vbr57m.js → index-fzngzhww.js} +2 -2
  81. package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
  82. package/dist/client/static/js/{index-x0kgnkv3.js → index-hgzntg2j.js} +2 -2
  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-9zwtpazh.js → index-kb14dhrx.js} +2 -2
  86. package/dist/client/static/js/{index-snjtkfkq.js → index-kbhrvep8.js} +6 -6
  87. package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
  88. package/dist/client/static/js/index-m4k054wz.js +4 -0
  89. package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
  90. package/dist/client/static/js/index-pavvxrsz.js +1 -0
  91. package/dist/client/static/js/index-q9ytjey8.js +1 -0
  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-e6any867.js → index-sa1675y0.js} +2 -2
  95. package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
  96. package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
  97. package/dist/client/static/js/index-vkqb4dnt.js +1 -0
  98. package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
  99. package/dist/client/static/js/{index-528x5x8c.js → index-wrcdc9vz.js} +1 -1
  100. package/dist/client/static/js/{index-2zntn964.js → index-x9r7zfp4.js} +2 -2
  101. package/dist/client/static/js/{index-mhnwyra0.js → index-xq5f3nxa.js} +2 -2
  102. package/dist/client/static/js/index-xwjbq003.js +2 -0
  103. package/dist/client/static/js/{index-2gbfke1a.js → index-yf93db65.js} +1 -1
  104. package/dist/client/static/js/{index-tkfxnnr5.js → index-ykm7a3cp.js} +2 -2
  105. package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
  106. package/dist/client/static/js/{index-84vmdg3k.js → index-z25ss7xj.js} +1 -1
  107. package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.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-r1p25738.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-afgrqdrt.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-hepa4wk7.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-jysft8ya.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-0m90b0s8.js} +7 -7
  122. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-x2rrzpvr.js} +8 -8
  123. package/dist/client/static/js/one-dark-pro-09d8p5vy.js +1 -0
  124. package/dist/client/static/js/one-light-g3ednt6p.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-z7vb7f1z.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-jqv6v4e6.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-w2h8yxrv.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-nd09yac3.js} +1 -1
  141. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-t61zxh5v.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-avnkhh0p.js} +1 -1
  144. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-2f7h2cmw.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-kfb5d7zd.js} +19 -19
  148. package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-amfg19se.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-k5hx7btx.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-wv3rp8kk.js} +1 -1
  153. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-6y8zdbm4.js +8 -0
  154. package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-0re95wtn.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-yrje14qp.js} +44 -44
  160. package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-jxkmrfy5.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-d3v2m9b1.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-9a1s1rjt.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 +16 -0
  183. package/src/client/components/layout/desktop-layout/RightColumn.test.tsx +204 -0
  184. package/src/client/components/layout/desktop-layout/RightColumn.tsx +52 -15
  185. package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
  186. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
  187. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  188. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  189. package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
  190. package/src/client/components/mobile/RightSidebar.tsx +31 -12
  191. package/src/client/components/mobile/SessionSidebar.tsx +112 -137
  192. package/src/client/components/mobile/drawer-strip.tsx +85 -0
  193. package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
  194. package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
  195. package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
  196. package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
  197. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
  198. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
  199. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
  200. package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
  201. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
  202. package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
  203. package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
  204. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
  205. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
  206. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
  207. package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
  208. package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +97 -0
  209. package/src/client/components/settings/Band.test.tsx +83 -0
  210. package/src/client/components/settings/Band.tsx +96 -0
  211. package/src/client/components/settings/Modal.tsx +44 -69
  212. package/src/client/components/settings/apply-side-effects.ts +15 -4
  213. package/src/client/components/settings/band-height.test.tsx +16 -3
  214. package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
  215. package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
  216. package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
  217. package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
  218. package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
  219. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
  220. package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
  221. package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
  222. package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
  223. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  224. package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
  225. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
  226. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
  227. package/src/client/components/settings/drill.tsx +113 -0
  228. package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
  229. package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
  230. package/src/client/components/settings/master-detail/index.tsx +45 -25
  231. package/src/client/components/workspace/chat-timeline/MessageList.test.ts +11 -0
  232. package/src/client/components/workspace/chat-timeline/MessageList.tsx +29 -21
  233. package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
  234. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
  235. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
  236. package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
  237. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  238. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
  239. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
  240. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
  241. package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
  242. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  243. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
  244. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
  245. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
  246. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
  247. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
  248. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
  249. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
  250. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
  251. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
  252. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
  253. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
  254. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
  255. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
  256. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
  257. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
  258. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
  259. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
  260. package/src/client/components/workspace/diff-panel/index.tsx +1 -1
  261. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
  262. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  263. package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
  264. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  265. package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
  266. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
  267. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
  268. package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
  269. package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
  270. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
  271. package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
  272. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  273. package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
  274. package/src/client/data/settings/omp-schema.json +103 -42
  275. package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
  276. package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
  277. package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
  278. package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
  279. package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
  280. package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
  281. package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
  282. package/src/client/hooks/chat/timeline/row-measure.ts +75 -0
  283. package/src/client/hooks/chat/timeline/row-window.test.ts +41 -21
  284. package/src/client/hooks/chat/timeline/row-window.ts +6 -24
  285. package/src/client/hooks/workspace/left-dock.ts +19 -0
  286. package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
  287. package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
  288. package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +286 -0
  289. package/src/client/hooks/workspace/panel-tabs-reveal.ts +174 -0
  290. package/src/client/hooks/workspace/panel-tabs.ts +22 -4
  291. package/src/client/hooks/workspace/session-state/index.test.tsx +145 -0
  292. package/src/client/hooks/workspace/session-state/index.ts +28 -16
  293. package/src/client/lib/ui/phone-row.test.ts +52 -0
  294. package/src/client/lib/ui/phone-row.ts +71 -0
  295. package/src/client/press-state.test.ts +179 -0
  296. package/src/client/tailwind.css +146 -0
  297. package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
  298. package/src/server/lib/omp/rpc/constants.test.ts +6 -1
  299. package/src/shared/lib/chat/ask-form/data.ts +155 -0
  300. package/src/shared/lib/chat/ask-form/fields.ts +4 -0
  301. package/src/shared/lib/chat/ask-form/index.ts +8 -0
  302. package/src/shared/lib/chat/ask-form/types.ts +12 -0
  303. package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
  304. package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
  305. package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
  306. package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
  307. package/src/shared/lib/omp/dialog-methods.ts +6 -0
  308. package/src/shared/lib/omp/session/wait-idle.ts +7 -3
  309. package/src/shared/lib/settings/defaults.ts +3 -2
  310. package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
  311. package/src/shared/lib/workspace/panel-nav.ts +20 -9
  312. package/src/shared/types/omp/agent.ts +20 -3
  313. package/src/shared/types/settings/state.ts +17 -5
  314. package/dist/client/static/js/ImageView-6ksvyzqv.js +0 -1
  315. package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
  316. package/dist/client/static/js/Modal-yv1718s1.js +0 -59
  317. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
  318. package/dist/client/static/js/bash-mevzaywf.js +0 -1
  319. package/dist/client/static/js/c-y1y6v00q.js +0 -1
  320. package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
  321. package/dist/client/static/js/css-3w3p9s67.js +0 -1
  322. package/dist/client/static/js/css-g85rwzty.js +0 -1
  323. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
  324. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
  325. package/dist/client/static/js/flowDiagram-KWPJA3E3-hekt0qsb.js +0 -1
  326. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
  327. package/dist/client/static/js/graphql-027z8sc0.js +0 -1
  328. package/dist/client/static/js/html-fqda6wxx.js +0 -1
  329. package/dist/client/static/js/index-252br0k2.js +0 -1
  330. package/dist/client/static/js/index-6bm4pw90.css +0 -1
  331. package/dist/client/static/js/index-80qxk9hx.js +0 -1
  332. package/dist/client/static/js/index-9674dxb4.js +0 -1
  333. package/dist/client/static/js/index-9k4121z4.js +0 -4
  334. package/dist/client/static/js/index-b6454rme.js +0 -12
  335. package/dist/client/static/js/index-ck0fd3aj.js +0 -2
  336. package/dist/client/static/js/index-jdf1tks1.js +0 -2
  337. package/dist/client/static/js/index-q58e8x6j.js +0 -1
  338. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
  339. package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
  340. package/dist/client/static/js/java-zs6qh1dm.js +0 -1
  341. package/dist/client/static/js/javascript-b9mkygak.js +0 -1
  342. package/dist/client/static/js/json-qn73s8xb.js +0 -1
  343. package/dist/client/static/js/jsx-gahhfczw.js +0 -1
  344. package/dist/client/static/js/lua-d8enp14s.js +0 -1
  345. package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
  346. package/dist/client/static/js/one-dark-pro-axkq0m3s.js +0 -1
  347. package/dist/client/static/js/one-light-pncb08qd.js +0 -1
  348. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
  349. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
  350. package/dist/client/static/js/properties-g6tpq003.js +0 -1
  351. package/dist/client/static/js/python-cy06fzhg.js +0 -1
  352. package/dist/client/static/js/r-vw8berfv.js +0 -1
  353. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
  354. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
  355. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
  356. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
  357. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
  358. package/dist/client/static/js/sql-bwnasywx.js +0 -1
  359. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-253nz20y.js +0 -8
  360. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
  361. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
  362. package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
  363. package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
  364. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
  365. package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
  366. package/dist/client/static/js/yaml-avewh7n5.js +0 -1
  367. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
  368. package/src/shared/lib/ui/safe-area.test.ts +0 -28
  369. package/src/shared/lib/ui/safe-area.ts +0 -42
@@ -21,6 +21,7 @@
21
21
 
22
22
  import type { ToolCallData } from '@/shared/types';
23
23
  import { isRecord } from '@/shared/lib/util/guards';
24
+ import { isSoleInvocation } from '@/shared/lib/chat/tool/tool-commands';
24
25
  import { parseProcUrl, procRequestOp } from '@/shared/lib/omp/session/proc';
25
26
  import { DEVICE_VERBS, PHASE_VERBS, TOOL_ALIASES, TOOL_VERBS, asString, pick, subjectFor, truncate } from '@/shared/lib/chat/timeline/tool-phrases';
26
27
 
@@ -49,7 +50,7 @@ function argsOf(tool: ToolActivity): Record<string, unknown> {
49
50
  return args;
50
51
  }
51
52
 
52
- /** Inner `xd://<device>` name carried by a write call, if any. */
53
+ /** The tool a bash TOOL COMMAND (omp 19.1.0) ran as the whole call, if any. */
53
54
  function xdDeviceOf(args: Record<string, unknown>, tool: ToolActivity): string | undefined {
54
55
  const candidate = pick(args, ['path', 'target']) ?? asString(tool.target) ?? asString(tool.command);
55
56
  if (!candidate || !candidate.startsWith('xd://')) return undefined;
@@ -57,6 +58,21 @@ function xdDeviceOf(args: Record<string, unknown>, tool: ToolActivity): string |
57
58
  return device || undefined;
58
59
  }
59
60
 
61
+ /**
62
+ * The tool a bash call IS, when the whole line is one tool command
63
+ * (`resolve "…"`, `lsp --help`). omp 19.1.0 replaced its `xd://` devices with
64
+ * these, so the activity phrase must name the wrapped tool — "Running bash"
65
+ * over a staged-proposal decision says nothing.
66
+ */
67
+ function toolCommandOf(tool: ToolActivity): string | undefined {
68
+ const dispatches = (tool as { details?: Record<string, unknown> }).details?.toolCommands;
69
+ if (!Array.isArray(dispatches) || dispatches.length !== 1) return undefined;
70
+ const dispatch = dispatches[0] as Record<string, unknown>;
71
+ if (dispatch?.mode !== 'execute' || typeof dispatch.tool !== 'string') return undefined;
72
+ const command = asString(tool.command) ?? pick(argsOf(tool), ['command']);
73
+ return isSoleInvocation(command, dispatch.tool) ? dispatch.tool : undefined;
74
+ }
75
+
60
76
  /** Inner device arguments: a `write xd://…` payload is JSON in `content`.
61
77
  * The transport keys are always dropped so the phrase never echoes the
62
78
  * device URL; prose payloads (resolve/reject/report_issue) surface their
@@ -103,6 +119,17 @@ export function describeToolActivity(tool: ToolActivity): string {
103
119
  return truncate(proc.id ? `${verb} ${proc.id}` : verb);
104
120
  }
105
121
 
122
+ // A sole tool command names its own tool: `resolve "…"` is a proposal
123
+ // decision, not a shell run.
124
+ const commanded = toolCommandOf(tool);
125
+ if (commanded) {
126
+ const verb = DEVICE_VERBS[commanded] ?? TOOL_VERBS[commanded] ?? `Running ${commanded}`;
127
+ const subject = subjectFor(commanded, args);
128
+ if (subject) return truncate(`${verb} ${subject}`);
129
+ if (intent) return truncate(intent);
130
+ return truncate(verb);
131
+ }
132
+
106
133
  const device = xdDeviceOf(args, tool);
107
134
  if (device) {
108
135
  const mcpTool = device.startsWith('mcp__') ? device.slice(5) : undefined;
@@ -0,0 +1,102 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * omp 19.1.0 runs rarely-used tools as bash TOOL COMMANDS and records each
8
+ * invocation on the result's `details.toolCommands[]`. A card must draw the
9
+ * wrapped tool's own panel when the call IS that invocation — a terminal
10
+ * console over a staged proposal's decision loses the decision — and must not
11
+ * when the line did more than one thing.
12
+ *
13
+ * `isSoleInvocation` mirrors omp's own rule, so the cases below are the ones
14
+ * that change the answer: a pipe, a redirect, a substitution, a compound
15
+ * separator, a background job, or a quoted `$`.
16
+ */
17
+
18
+ import { describe, expect, test } from 'bun:test';
19
+
20
+ import {
21
+ isSoleInvocation,
22
+ soleInnerDetails,
23
+ soleToolCommand,
24
+ toolCommandDispatches,
25
+ } from '@/shared/lib/chat/tool/tool-commands';
26
+ import type { ToolCallData } from '@/shared/types/chat';
27
+
28
+ function bashCall(command: string, toolCommands: unknown[]): ToolCallData {
29
+ return {
30
+ id: 'call-1',
31
+ type: 'bash',
32
+ title: 'bash',
33
+ name: 'bash',
34
+ input: { command },
35
+ details: { toolCommands },
36
+ } as ToolCallData;
37
+ }
38
+
39
+ const EXECUTE = { tool: 'resolve', mode: 'execute' as const, exitCode: 0, args: { reason: 'looks right' } };
40
+
41
+ describe('isSoleInvocation', () => {
42
+ test('accepts the bare command and its arguments', () => {
43
+ expect(isSoleInvocation('resolve "looks right"', 'resolve')).toBe(true);
44
+ expect(isSoleInvocation("propose migrate-importer", 'propose')).toBe(true);
45
+ expect(isSoleInvocation('lsp --help', 'lsp')).toBe(true);
46
+ });
47
+
48
+ test('rejects a line that runs anything else', () => {
49
+ expect(isSoleInvocation('resolve "x" | tail -1', 'resolve')).toBe(false);
50
+ expect(isSoleInvocation('resolve "x" && git status', 'resolve')).toBe(false);
51
+ expect(isSoleInvocation('resolve "x" > out.txt', 'resolve')).toBe(false);
52
+ expect(isSoleInvocation('echo hi; resolve "x"', 'resolve')).toBe(false);
53
+ expect(isSoleInvocation('resolve "x" &', 'resolve')).toBe(false);
54
+ expect(isSoleInvocation('resolve "$(cat reason)"', 'resolve')).toBe(false);
55
+ expect(isSoleInvocation('resolved "x"', 'resolve')).toBe(false);
56
+ });
57
+
58
+ test('a quoted separator or dollar is literal text, not a second command', () => {
59
+ expect(isSoleInvocation('resolve "one; two"', 'resolve')).toBe(true);
60
+ expect(isSoleInvocation("resolve 'a | b'", 'resolve')).toBe(true);
61
+ expect(isSoleInvocation('resolve "costs \\$5"', 'resolve')).toBe(true);
62
+ });
63
+ });
64
+
65
+ describe('toolCommandDispatches', () => {
66
+ test('reads only well-formed records', () => {
67
+ const tool = bashCall('resolve "x"', [EXECUTE, { tool: 'lsp' }, { tool: 'read', mode: 'help', exitCode: 0 }]);
68
+ expect(toolCommandDispatches(tool).map((dispatch) => dispatch.tool)).toEqual(['resolve', 'read']);
69
+ });
70
+
71
+ test('a result with no records reports none', () => {
72
+ expect(toolCommandDispatches({ ...bashCall('ls', []), details: {} } as ToolCallData)).toEqual([]);
73
+ });
74
+ });
75
+
76
+ describe('soleToolCommand', () => {
77
+ test('a single execute dispatch whose line is that command is the call', () => {
78
+ const tool = bashCall('resolve "looks right"', [EXECUTE]);
79
+ expect(soleToolCommand(tool)).toEqual({ dispatch: EXECUTE, args: { reason: 'looks right' } });
80
+ });
81
+
82
+ test('two dispatches mean a script, not one tool call', () => {
83
+ const tool = bashCall('resolve "x"; lsp diagnostics', [EXECUTE, { tool: 'lsp', mode: 'execute', exitCode: 0 }]);
84
+ expect(soleToolCommand(tool)).toBeUndefined();
85
+ });
86
+
87
+ test('a --help run is usage, not a result', () => {
88
+ const tool = bashCall('lsp --help', [{ tool: 'lsp', mode: 'help', exitCode: 0 }]);
89
+ expect(soleToolCommand(tool)).toBeUndefined();
90
+ });
91
+
92
+ test('a command line that also pipes is not the tool call', () => {
93
+ const tool = bashCall('resolve "x" | head -2', [EXECUTE]);
94
+ expect(soleToolCommand(tool)).toBeUndefined();
95
+ });
96
+
97
+ test('inner details of the wrapped tool are surfaced, and absent otherwise', () => {
98
+ const withInner = bashCall('resolve "x"', [{ ...EXECUTE, inner: { action: 'apply', reason: 'x' } }]);
99
+ expect(soleInnerDetails(withInner)).toEqual({ action: 'apply', reason: 'x' });
100
+ expect(soleInnerDetails(bashCall('resolve "x"', [EXECUTE]))).toBeUndefined();
101
+ });
102
+ });
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * A tool call that ran as a bash TOOL COMMAND (omp 19.1.0).
8
+ *
9
+ * omp replaced its `xd://` devices with tool commands: rarely-used tools are
10
+ * unmounted from the request and installed as bare commands of the embedded
11
+ * shell, so the model runs `resolve "reason"` or `lsp --help` through `bash`
12
+ * instead of writing to a virtual URL. Each invocation is recorded on the
13
+ * result's `details.toolCommands[]` — `{tool, mode, exitCode, args?, inner?}` —
14
+ * and the wrapped tool's own `details` ride `inner`.
15
+ *
16
+ * Two things a card needs from that:
17
+ *
18
+ * - `sole`: the bash call IS that tool's call, with no other command on the
19
+ * line. Then the card must draw the tool's own panel (`Resolve`, `Lsp`)
20
+ * instead of a terminal console, exactly as omp's own transcript does.
21
+ * - `dispatch`: the record itself, for a call that ran alongside other
22
+ * commands (a real shell script that happened to invoke one).
23
+ *
24
+ * The `sole` rule mirrors omp's `isSoleInvocation`: the line starts with the
25
+ * tool word, and nothing that would change what ran (a pipe, a redirect, a
26
+ * substitution, a background job, a compound separator) appears outside quotes.
27
+ */
28
+
29
+ import type { ToolCallData } from '@/shared/types/chat';
30
+
31
+ /** One record of `details.toolCommands`. */
32
+ export interface ToolCommandDispatch {
33
+ tool: string;
34
+ mode: 'help' | 'execute';
35
+ exitCode: number;
36
+ args?: Record<string, unknown>;
37
+ inner?: unknown;
38
+ }
39
+
40
+ /** Characters that make a shell line more than one bare command. */
41
+ const COMPOUND: Record<string, true> = {
42
+ ';': true, '&': true, '|': true, '<': true, '>': true,
43
+ '(': true, ')': true, '\n': true, '\r': true,
44
+ };
45
+
46
+ /** True when `command` is exactly one invocation of `tool`. */
47
+ export function isSoleInvocation(command: string | undefined, tool: string): boolean {
48
+ const line = command?.trim();
49
+ if (!line) return false;
50
+ if (line !== tool && !line.startsWith(`${tool} `) && !line.startsWith(`${tool}\t`)) return false;
51
+ let quote: '"' | "'" | undefined;
52
+ for (let index = 0; index < line.length; index += 1) {
53
+ const char = line[index] as string;
54
+ if (quote === "'") {
55
+ if (char === "'") quote = undefined;
56
+ continue;
57
+ }
58
+ if (char === '\\') {
59
+ index += 1;
60
+ continue;
61
+ }
62
+ if (quote === '"') {
63
+ if (char === '"') quote = undefined;
64
+ // A substitution inside double quotes still runs something else.
65
+ else if (char === '$' || char === '`') return false;
66
+ continue;
67
+ }
68
+ if (char === '"' || char === "'") quote = char;
69
+ else if (COMPOUND[char] === true) return false;
70
+ }
71
+ return true;
72
+ }
73
+
74
+ function isDispatch(value: unknown): value is ToolCommandDispatch {
75
+ if (!value || typeof value !== 'object') return false;
76
+ const record = value as Record<string, unknown>;
77
+ return (
78
+ typeof record.tool === 'string' &&
79
+ (record.mode === 'help' || record.mode === 'execute') &&
80
+ typeof record.exitCode === 'number'
81
+ );
82
+ }
83
+
84
+ /** Every tool-command dispatch recorded on a result, in invocation order. */
85
+ export function toolCommandDispatches(tool: ToolCallData): ToolCommandDispatch[] {
86
+ const raw = (tool.details as Record<string, unknown> | undefined)?.toolCommands;
87
+ if (!Array.isArray(raw)) return [];
88
+ return raw.filter(isDispatch);
89
+ }
90
+
91
+ /** The tool call's own command, from its arguments. */
92
+ function commandOf(tool: ToolCallData): string | undefined {
93
+ const input = tool.input;
94
+ if (typeof input === 'string') return input;
95
+ if (input && typeof input === 'object' && typeof (input as Record<string, unknown>).command === 'string') {
96
+ return (input as Record<string, unknown>).command as string;
97
+ }
98
+ return typeof tool.command === 'string' ? tool.command : undefined;
99
+ }
100
+
101
+ /**
102
+ * The tool command this call IS, or undefined.
103
+ *
104
+ * `sole` is the case a card must render as the wrapped tool: one execute
105
+ * dispatch whose command line is that invocation and nothing else. A `--help`
106
+ * dispatch is not one — it printed usage, not a result.
107
+ */
108
+ export function soleToolCommand(
109
+ tool: ToolCallData,
110
+ ): { dispatch: ToolCommandDispatch; args: Record<string, unknown> } | undefined {
111
+ const dispatches = toolCommandDispatches(tool);
112
+ if (dispatches.length !== 1) return undefined;
113
+ const dispatch = dispatches[0];
114
+ if (dispatch.mode !== 'execute') return undefined;
115
+ if (!isSoleInvocation(commandOf(tool), dispatch.tool)) return undefined;
116
+ return { dispatch, args: dispatch.args ?? {} };
117
+ }
118
+
119
+ /** The wrapped tool's own result details of a sole dispatch (`dispatch.inner`). */
120
+ export function soleInnerDetails(tool: ToolCallData): Record<string, unknown> | undefined {
121
+ const sole = soleToolCommand(tool);
122
+ const inner = sole?.dispatch.inner;
123
+ return inner && typeof inner === 'object' ? (inner as Record<string, unknown>) : undefined;
124
+ }
@@ -184,7 +184,9 @@ describe('OMP_SCHEMA release rows', () => {
184
184
  entry: want,
185
185
  });
186
186
  }
187
- expect(OMP_SCHEMA.entries['disassembler.backend']?.values).toEqual(['auto', 'ghidra', 'ida', 'none']);
187
+ // 19.1.0 adds `binja` between `ida` and `none`; Binary Ninja is never
188
+ // chosen by `auto`, so the option carries that in its own description.
189
+ expect(OMP_SCHEMA.entries['disassembler.backend']?.values).toEqual(['auto', 'ghidra', 'ida', 'binja', 'none']);
188
190
  expect(OMP_SCHEMA.entries['ida.enabled']).toBeUndefined();
189
191
  // `worktree.onExit` gained `force`, which removes every worktree without
190
192
  // asking; a stale ladder would hide the only uncoverable value.
@@ -219,4 +221,35 @@ describe('OMP_SCHEMA release rows', () => {
219
221
  expect({ key, credential: OMP_SCHEMA.entries[key]?.credential }).toEqual({ key, credential: true });
220
222
  }
221
223
  });
224
+
225
+ test("19.1.0's renamed and added rows are offered under their new ids", () => {
226
+ // The `xd://` DEVICES became tool commands, and the four switches that
227
+ // shaped them were renamed with them. A panel still writing `tools.xdev`
228
+ // would edit a key omp deletes on read (its own migration strips it), so
229
+ // the new ids are the only reachable ones.
230
+ const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
231
+ 'tools.commands': { type: 'boolean', tab: 'tools', group: 'Discovery & MCP', default: true },
232
+ 'tools.commandDocs': { type: 'enum', tab: 'tools', group: 'Discovery & MCP', default: 'catalog' },
233
+ 'mcp.shared': { type: 'boolean', tab: 'tools', group: 'Discovery & MCP', default: true },
234
+ 'mcp.idleStopMinutes': { type: 'number', tab: 'tools', group: 'Discovery & MCP', default: 5 },
235
+ 'pty.notify': { type: 'enum', tab: 'interaction', group: 'Notifications', default: 'on' },
236
+ 'edit.magic.model': { type: 'string', tab: 'files', group: 'Editing', default: undefined },
237
+ 'binja.installDir': { type: 'string', tab: 'tools', group: 'Binary Ninja', default: '' },
238
+ };
239
+ for (const [key, want] of Object.entries(expected)) {
240
+ const entry = OMP_SCHEMA.entries[key];
241
+ expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
242
+ key,
243
+ entry: want,
244
+ });
245
+ }
246
+ // The old ids are gone from omp's registry: a row for one is an editor
247
+ // whose write is refused.
248
+ for (const key of ['tools.xdev', 'tools.xdevDocs', 'tools.xdevInlineDevices', 'tools.xdevNotices', 'tui.completeScrollback']) {
249
+ expect(`${key}: ${String(OMP_SCHEMA.entries[key])}`).toBe(`${key}: undefined`);
250
+ }
251
+ // The new edit mode is a value of `edit.mode`, and a stale ladder would
252
+ // hide it from the panel's own dropdown.
253
+ expect(OMP_SCHEMA.entries['edit.mode']?.values).toContain('magic');
254
+ });
222
255
  });
@@ -35,6 +35,12 @@ export const ANSWERABLE_UI_METHODS: Record<string, true> = {
35
35
  input: true,
36
36
  editor: true,
37
37
  ask: true,
38
+ // omp 19.1.0 gave the RPC host a real `formDialog`, so the `ask` tool sends
39
+ // its whole HTML form as ONE `method:"form"` frame and parks on the reply.
40
+ // Without this entry neither half remembers the request: the server forgets
41
+ // what a reattaching client must answer, and the client never queues it, so
42
+ // the agent stays blocked with nothing on screen.
43
+ form: true,
38
44
  };
39
45
 
40
46
  /** True for a request method the agent is parked on. */
@@ -33,9 +33,13 @@ import { formatToolMs } from '@/shared/lib/chat/tool/labels';
33
33
  *
34
34
  * omp 19.0.0 cut the five-rung ladder (5 s / 10 s / 30 s / 60 s / 5 min) to two:
35
35
  * a first idle wait gets 5 s, every back-to-back one 4 minutes
36
- * (`WAIT_LADDER_MS` in `tools/wait.ts`). A session recorded before the pin
37
- * still names the old windows, so this list is a reference for the current pin
38
- * only — the window a result reports is always parsed from omp's sentence.
36
+ * (`WAIT_LADDER_MS` in `tools/wait.ts`). 19.1.0 skips the floor for JOB waits
37
+ * in a top-level interactive session — an early return there can only end its
38
+ * turn, one request more than blocking for the result — so the first job wait
39
+ * in a Kabmo chat already reports the 4-minute window. A session recorded
40
+ * before the pin still names the old windows, so this list is a reference for
41
+ * the current pin only: the window a result reports is always parsed from
42
+ * omp's sentence, never derived from the rung index.
39
43
  */
40
44
  export const WAIT_LADDER_MS = [5_000, 240_000] as const;
41
45
 
@@ -23,7 +23,7 @@ import { DEFAULT_THEME_ID } from '@/shared/lib/theme/catalog';
23
23
  import { DEFAULT_CHAT_WIDTH_MODE, DEFAULT_CUSTOM_CHAT_COLUMN_WIDTH } from '@/shared/lib/chat/timeline/width-mode';
24
24
  import { DEFAULT_TOOL_RENDER_MODE } from '@/shared/lib/chat/timeline/tool-render-mode';
25
25
  import { DEFAULT_SIDEBAR_STYLE } from '@/shared/lib/workspace/sidebar-style';
26
- import { DEFAULT_MOBILE_RIGHT_PANEL_NAV, DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
26
+ import { DEFAULT_MOBILE_PANEL_NAV, DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
27
27
  import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
28
28
  import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
29
29
  import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
@@ -59,7 +59,8 @@ export const DEFAULT_SETTINGS = {
59
59
  sidebarStyle: DEFAULT_SIDEBAR_STYLE,
60
60
  leftPanelNav: DEFAULT_PANEL_NAV,
61
61
  rightPanelNav: DEFAULT_PANEL_NAV,
62
- mobileRightPanelNav: DEFAULT_MOBILE_RIGHT_PANEL_NAV,
62
+ mobileLeftPanelNav: DEFAULT_MOBILE_PANEL_NAV,
63
+ mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
63
64
  composerStyle: DEFAULT_COMPOSER_STYLE,
64
65
  surfaceStyle: DEFAULT_SURFACE_STYLE,
65
66
  borderStyle: DEFAULT_BORDER_STYLE,
@@ -22,17 +22,17 @@
22
22
 
23
23
  import { describe, expect, test } from 'bun:test';
24
24
  import {
25
- DEFAULT_MOBILE_RIGHT_PANEL_NAV,
25
+ DEFAULT_MOBILE_PANEL_NAV,
26
26
  DEFAULT_PANEL_NAV,
27
- MOBILE_RIGHT_PANEL_NAVS,
28
- MOBILE_RIGHT_PANEL_NAV_KEY,
27
+ MOBILE_PANEL_NAVS,
28
+ MOBILE_PANEL_NAV_KEYS,
29
29
  PANEL_NAV_COPY,
30
30
  PANEL_NAV_SETTING_KEYS,
31
31
  PANEL_NAV_STYLES,
32
32
  isPanelNavSide,
33
33
  isPanelNavStyle,
34
- isMobileRightPanelNav,
35
- resolveMobileRightPanelNav,
34
+ isMobilePanelNav,
35
+ resolveMobilePanelNav,
36
36
  resolvePanelNav,
37
37
  } from '@/shared/lib/workspace/panel-nav';
38
38
  import {
@@ -166,33 +166,40 @@ describe('withPinnedTab', () => {
166
166
  });
167
167
  });
168
168
 
169
- describe('the phone drawer is its own axis', () => {
169
+ describe('the phone drawers are their own axis', () => {
170
170
  test('the shipped default is classic, so an upgrade rearranges nothing', () => {
171
- expect(DEFAULT_MOBILE_RIGHT_PANEL_NAV).toBe('classic');
171
+ expect(DEFAULT_MOBILE_PANEL_NAV).toBe('classic');
172
172
  });
173
173
 
174
174
  test('both styles resolve to themselves', () => {
175
- for (const style of MOBILE_RIGHT_PANEL_NAVS) {
176
- expect(resolveMobileRightPanelNav(style)).toBe(style);
175
+ for (const style of MOBILE_PANEL_NAVS) {
176
+ expect(resolveMobilePanelNav(style)).toBe(style);
177
177
  }
178
178
  });
179
179
 
180
180
  test('an unknown value falls back to classic, not to a renderer that is missing', () => {
181
181
  for (const value of ['rail', '', 'Classic', null, undefined, 0, {}, []]) {
182
- expect(resolveMobileRightPanelNav(value)).toBe(DEFAULT_MOBILE_RIGHT_PANEL_NAV);
182
+ expect(resolveMobilePanelNav(value)).toBe(DEFAULT_MOBILE_PANEL_NAV);
183
183
  }
184
184
  });
185
185
 
186
186
  test('the guard agrees with the resolver and refuses the desktop-only value', () => {
187
- expect(isMobileRightPanelNav('classic')).toBe(true);
188
- expect(isMobileRightPanelNav('tabs')).toBe(true);
187
+ expect(isMobilePanelNav('classic')).toBe(true);
188
+ expect(isMobilePanelNav('tabs')).toBe(true);
189
189
  // `rail` is the desktop's word; a phone has no rail to draw.
190
- expect(isMobileRightPanelNav('rail')).toBe(false);
191
- });
192
-
193
- test('the key is its own, so the phone cannot overwrite a desktop column', () => {
194
- expect(MOBILE_RIGHT_PANEL_NAV_KEY).toBe('mobileRightPanelNav');
195
- expect(PANEL_NAV_SETTING_KEYS.left).not.toBe(MOBILE_RIGHT_PANEL_NAV_KEY);
196
- expect(PANEL_NAV_SETTING_KEYS.right).not.toBe(MOBILE_RIGHT_PANEL_NAV_KEY);
190
+ expect(isMobilePanelNav('rail')).toBe(false);
191
+ });
192
+
193
+ test('each drawer has its OWN key, so one cannot overwrite the other', () => {
194
+ expect(MOBILE_PANEL_NAV_KEYS.left).toBe('mobileLeftPanelNav');
195
+ expect(MOBILE_PANEL_NAV_KEYS.right).toBe('mobileRightPanelNav');
196
+ // And neither can overwrite a desktop column: the four keys are distinct.
197
+ const all = [
198
+ PANEL_NAV_SETTING_KEYS.left,
199
+ PANEL_NAV_SETTING_KEYS.right,
200
+ MOBILE_PANEL_NAV_KEYS.left,
201
+ MOBILE_PANEL_NAV_KEYS.right,
202
+ ];
203
+ expect(new Set(all).size).toBe(4);
197
204
  });
198
205
  });
@@ -105,7 +105,7 @@ export const PANEL_NAV_SETTING_KEYS: Record<PanelNavSide, 'leftPanelNav' | 'righ
105
105
  };
106
106
 
107
107
  /**
108
- * How the PHONE's right drawer navigates its panel views.
108
+ * How a PHONE drawer navigates its panel views (`classic` | `tabs`).
109
109
  *
110
110
  * A separate axis from the desktop columns because a phone has no rail: there
111
111
  * is nowhere to put a 44px strip of marks beside a drawer that already IS the
@@ -118,31 +118,42 @@ export const PANEL_NAV_SETTING_KEYS: Record<PanelNavSide, 'leftPanelNav' | 'righ
118
118
  * views the user opened, a home page draws the catalog as cards, and the
119
119
  * drawer reopens on what was open rather than on the whole list.
120
120
  *
121
+ * ONE type for BOTH drawers, and two stored keys (`MOBILE_PANEL_NAV_KEYS`):
122
+ * the shape of the choice is the same fact, while which drawer it applies to
123
+ * is per side — the desktop columns are split the same way
124
+ * (`PANEL_NAV_SETTING_KEYS`).
125
+ *
121
126
  * **`classic` is the default**, like the desktop's `rail`: an upgrade
122
127
  * rearranges nothing, and a user who wants the drawer to behave like the
123
128
  * desktop column opts in.
124
129
  */
125
- export type MobileRightPanelNav = 'classic' | 'tabs';
130
+ export type MobilePanelNav = 'classic' | 'tabs';
126
131
 
127
132
  /** Every mobile style, in the order the settings control lists them. */
128
- export const MOBILE_RIGHT_PANEL_NAVS = ['classic', 'tabs'] as const;
133
+ export const MOBILE_PANEL_NAVS = ['classic', 'tabs'] as const;
129
134
 
130
- export const DEFAULT_MOBILE_RIGHT_PANEL_NAV: MobileRightPanelNav = 'classic';
135
+ export const DEFAULT_MOBILE_PANEL_NAV: MobilePanelNav = 'classic';
131
136
 
132
- export function isMobileRightPanelNav(value: unknown): value is MobileRightPanelNav {
137
+ export function isMobilePanelNav(value: unknown): value is MobilePanelNav {
133
138
  return value === 'classic' || value === 'tabs';
134
139
  }
135
140
 
136
141
  /** A stored value this build cannot draw resolves to the default. */
137
- export function resolveMobileRightPanelNav(value: unknown): MobileRightPanelNav {
138
- return isMobileRightPanelNav(value) ? value : DEFAULT_MOBILE_RIGHT_PANEL_NAV;
142
+ export function resolveMobilePanelNav(value: unknown): MobilePanelNav {
143
+ return isMobilePanelNav(value) ? value : DEFAULT_MOBILE_PANEL_NAV;
139
144
  }
140
145
 
141
146
  /**
142
- * The `app_settings` key the phone's choice lives under.
147
+ * The `app_settings` key each drawer's choice is stored under.
143
148
  *
144
149
  * `satisfies keyof SettingsState` at the reader, like every other key module:
145
150
  * the key and the field name must be the same string or the setting silently
146
151
  * never persists.
147
152
  */
148
- export const MOBILE_RIGHT_PANEL_NAV_KEY = 'mobileRightPanelNav' as const;
153
+ export const MOBILE_PANEL_NAV_KEYS: Record<
154
+ PanelNavSide,
155
+ 'mobileLeftPanelNav' | 'mobileRightPanelNav'
156
+ > = {
157
+ left: 'mobileLeftPanelNav',
158
+ right: 'mobileRightPanelNav',
159
+ };
@@ -229,7 +229,7 @@ export interface OmpAgentHandle extends OmpAgentState {
229
229
  }
230
230
 
231
231
  /** Frame `extension_ui_request` dari omp (ask dialog, approval, OAuth). */
232
- export type ExtensionUiDialogMethod = 'select' | 'confirm' | 'input' | 'editor' | 'ask';
232
+ export type ExtensionUiDialogMethod = 'select' | 'confirm' | 'input' | 'editor' | 'ask' | 'form';
233
233
 
234
234
  /** One question inside a grouped `ask` request (omp's `AskQuestion`). */
235
235
  export interface ExtensionAskQuestion {
@@ -247,7 +247,8 @@ export interface ExtensionUiDialogRequest {
247
247
  type: 'extension_ui_request';
248
248
  id: string;
249
249
  method: ExtensionUiDialogMethod;
250
- title: string;
250
+ /** The dialog's question. Absent on a `form` frame, which carries `html`. */
251
+ title?: string;
251
252
  options?: string[];
252
253
  /** Ids parallel to `options`, when the producer has them (ACP permission
253
254
  * requests). The dialog answers with the id, never the label. */
@@ -279,6 +280,15 @@ export interface ExtensionUiDialogRequest {
279
280
  * per question. Absent on every other method.
280
281
  */
281
282
  questions?: ExtensionAskQuestion[];
283
+ /**
284
+ * The whole HTML form of one `ui.formDialog` call, present only on
285
+ * `method: "form"`. omp 19.1.0 made this the RPC host's form surface, so the
286
+ * `ask` tool no longer walks its fields one dialog at a time: it sends the
287
+ * same `html` the tool call carries and expects the submitted data back in
288
+ * ONE `{ data }` response. `title` is absent — the form itself is the
289
+ * question, which is why the card matches this frame by its HTML.
290
+ */
291
+ html?: string;
282
292
  }
283
293
 
284
294
  export type IncomingExtensionUiRequest =
@@ -295,4 +305,11 @@ export type ExtensionDialogResponse =
295
305
  | { optionId: string }
296
306
  | { cancelled: true }
297
307
  /** One `ask` answer per question, in question order (grouped ask mode). */
298
- | { answers: { id: string; selectedOptions: string[]; customInput?: string }[] };
308
+ | { answers: { id: string; selectedOptions: string[]; customInput?: string }[] }
309
+ /**
310
+ * A `form` frame's submitted values, by control `name`. omp validates the
311
+ * object against the form it sent — an unknown key, a value no option
312
+ * carries, or a missing required field is refused with the field named — so
313
+ * this must carry exactly the controls' names and the values they offered.
314
+ */
315
+ | { data: Record<string, string | number | string[]> };
@@ -2,7 +2,7 @@ import type { ThemeId } from '@/shared/lib/theme/catalog';
2
2
  import type { ChatWidthMode } from '@/shared/lib/chat/timeline/width-mode';
3
3
  import type { ToolRenderMode } from '@/shared/lib/chat/timeline/tool-render-mode';
4
4
  import type { SidebarStyle } from '@/shared/lib/workspace/sidebar-style';
5
- import type { MobileRightPanelNav, PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
5
+ import type { MobilePanelNav, PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
6
6
  import type { ComposerStyle } from '@/shared/lib/chat/composer/style';
7
7
  import type { SurfaceStyle } from '@/shared/lib/theme/surface-style';
8
8
  import type { BorderStyle } from '@/shared/lib/theme/border-style';
@@ -194,9 +194,10 @@ export interface SettingsState {
194
194
  * already has; `tabs` is a browser-style strip of opened views over a home
195
195
  * page that draws the whole catalog as a card grid.
196
196
  *
197
- * **Independent of `rightPanelNav`**, and desktop-only: a phone has one drawer
198
- * per side and keeps its chip strip, so `mobile/**` never reads either value.
199
- * `rail` is the default so an upgrade rearranges nothing.
197
+ * **Independent of `rightPanelNav`**, and desktop-only: the phone's left
198
+ * drawer has its own axis (`mobileLeftPanelNav`), because a drawer is a screen
199
+ * with no rail to put beside it. `rail` is the default so an upgrade
200
+ * rearranges nothing.
200
201
  */
201
202
  leftPanelNav: PanelNavStyle;
202
203
  /**
@@ -208,6 +209,17 @@ export interface SettingsState {
208
209
  * the other. Desktop-only, like its left counterpart.
209
210
  */
210
211
  rightPanelNav: PanelNavStyle;
212
+ /**
213
+ * How the PHONE's LEFT drawer navigates its views (`classic` | `tabs`).
214
+ *
215
+ * Independent of `mobileRightPanelNav`, for the same reason the desktop
216
+ * columns are split: the left drawer is the session list plus placed panels,
217
+ * the right is a working set opened and closed all day, so one column's best
218
+ * shape is not the other's. Under `tabs` the session list is the PINNED first
219
+ * chip, exactly as it is on the desktop — a drawer with no way back to another
220
+ * chat is a dead end.
221
+ */
222
+ mobileLeftPanelNav: MobilePanelNav;
211
223
  /**
212
224
  * How the PHONE's right drawer navigates its views (`classic` | `tabs`).
213
225
  *
@@ -215,7 +227,7 @@ export interface SettingsState {
215
227
  * beside a drawer that already is the screen, so the choice is between "every
216
228
  * view is a chip" and "the strip holds what is open, over a home page".
217
229
  */
218
- mobileRightPanelNav: MobileRightPanelNav;
230
+ mobileRightPanelNav: MobilePanelNav;
219
231
  /**
220
232
  * How the chat composer is drawn (`classic` | `calm` | `console` | `stage`).
221
233
  * A PRESENTATION choice over one composer: every style renders the same
@@ -1 +0,0 @@
1
- import{e,m,Qr}from"./index-q36gq3yz.js";import{yi,Zc}from"./index-b6454rme.js";function g({source:t,name:r,revision:s=0}){let{url:i,loading:n,error:o}=Zc(t,s);if(o)return e(Qr,{name:r,message:o});if(n||!i)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading image…"})]});return e(yi,{src:i,name:r,className:"flex-1 min-h-0"})}export{g as ImageView};