@kabmo-labs/kabmo 0.57.1 → 0.58.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 (570) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +540 -510
  3. package/dist/client/static/js/Body-ysmhxbvk.js +3 -0
  4. package/dist/client/static/js/{CsvGrid-563qmmmr.js → CsvGrid-w90pxyn2.js} +2 -2
  5. package/dist/client/static/js/{DocxView-5j69q3s0.js → DocxView-evxn6kaq.js} +2 -2
  6. package/dist/client/static/js/{DrawioView-gd6k3hvn.js → DrawioView-tmdevwf4.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-6gnktzzp.js → HtmlPreview-bpsn2z9p.js} +1 -1
  8. package/dist/client/static/js/ImageView-ssazqckj.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-qwpfq4dq.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-en6aazw8.js +1 -0
  11. package/dist/client/static/js/Modal-zjnhj9nb.js +60 -0
  12. package/dist/client/static/js/{PdfView-n1zq27td.js → PdfView-txxn6qff.js} +1 -1
  13. package/dist/client/static/js/SessionsView-eryjtmb2.js +1 -0
  14. package/dist/client/static/js/{SheetView-nes7j86v.js → SheetView-52b33e6f.js} +11 -11
  15. package/dist/client/static/js/{SvgPreview-vv0qzkt7.js → SvgPreview-hrk4pfm1.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-02g96sn6.js → abnfDiagram-O67JEVCF-at77sybc.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-v05ap4e3.js +1 -0
  18. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7qj2fpwt.js → architectureDiagram-NJMV4G6O-raw33jgg.js} +11 -11
  19. package/dist/client/static/js/{astro-asmathwv.js → astro-qha7sceh.js} +1 -1
  20. package/dist/client/static/js/bash-n5d0esqg.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-grdr1j2h.js → blockDiagram-BEXU5L5S-b6e90fbk.js} +7 -7
  22. package/dist/client/static/js/c-pk766wx0.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-7y980xpx.js → c4Diagram-YGBWAQC7-msg9y1c6.js} +2 -2
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-29ag4js1.js → classDiagram-v2-NBCMYWYE-jmrd1h8r.js} +5 -5
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-e5dvgehd.js → cose-bilkent-JH36ORCC-na65ebq3.js} +1 -1
  26. package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
  27. package/dist/client/static/js/css-q2k6afe3.js +1 -0
  28. package/dist/client/static/js/css-sp1cgdbr.js +1 -0
  29. package/dist/client/static/js/cynefin-OW5HDTMX-sqv0ze38.js +1 -0
  30. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-eq6fmx0b.js → cynefinDiagram-VND7K2PF-9xkkw71m.js} +2 -2
  31. package/dist/client/static/js/{dagre-6A5THRUB-xfhwp8ha.js → dagre-6A5THRUB-p59f19tv.js} +2 -2
  32. package/dist/client/static/js/{diagram-22UHCM2B-1bw6x6zt.js → diagram-22UHCM2B-2e2rcvn7.js} +14 -14
  33. package/dist/client/static/js/{diagram-3UASUU5V-076ej5n5.js → diagram-3UASUU5V-r9ds8vgr.js} +2 -2
  34. package/dist/client/static/js/{diagram-ATOU4E4O-cvf9fhdq.js → diagram-ATOU4E4O-jgwxv7v8.js} +3 -3
  35. package/dist/client/static/js/{diagram-CDSNMT55-hn1wdx54.js → diagram-CDSNMT55-20m35eqq.js} +5 -5
  36. package/dist/client/static/js/{diagram-MLGK6HIB-76gk27b5.js → diagram-MLGK6HIB-vt3kxt2m.js} +2 -2
  37. package/dist/client/static/js/{diagram-MPIPVDR6-0cbajhpx.js → diagram-MPIPVDR6-c47rgxf1.js} +2 -2
  38. package/dist/client/static/js/{dockerfile-7atfjhnf.js → dockerfile-gtcyey0q.js} +1 -1
  39. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-n0g3b9m2.js → ebnfDiagram-ZINNZB2B-aszw3xy3.js} +1 -1
  40. package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-w92v180e.js} +1 -1
  41. package/dist/client/static/js/{elk-276RUBZZ-f6wrjcv9.js → elk-276RUBZZ-gbvr3gry.js} +1 -1
  42. package/dist/client/static/js/{erDiagram-OPXOYQCR-jz622yrg.js → erDiagram-OPXOYQCR-1hqca8qe.js} +5 -5
  43. package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
  44. package/dist/client/static/js/eventmodeling-NTZA5JFV-t4dzf5s7.js +1 -0
  45. package/dist/client/static/js/flowDiagram-KWPJA3E3-c16xmjyv.js +1 -0
  46. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-2ex4nxyg.js → ganttDiagram-FUAMR5RP-07v22te5.js} +4 -4
  47. package/dist/client/static/js/gitGraph-4MIJSDKK-0jq8y0qd.js +1 -0
  48. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-38eyay6g.js → gitGraphDiagram-X574FWY7-y068jtz9.js} +18 -18
  49. package/dist/client/static/js/graphql-qx4tt6ze.js +1 -0
  50. package/dist/client/static/js/html-5e0g8664.js +1 -0
  51. package/dist/client/static/js/index-007sewcn.js +2 -0
  52. package/dist/client/static/js/{index-tksrpqkh.js → index-1e0rt7c6.js} +5 -5
  53. package/dist/client/static/js/index-1e710snk.js +1 -0
  54. package/dist/client/static/js/{index-8pqx5n2p.js → index-2s17netq.js} +2 -2
  55. package/dist/client/static/js/index-374xq5a4.js +1 -0
  56. package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
  57. package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
  58. package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
  59. package/dist/client/static/js/index-4ddgpqm0.css +1 -0
  60. package/dist/client/static/js/index-5g2j626a.js +1 -0
  61. package/dist/client/static/js/{index-rbkvw2xs.js → index-5hvt233n.js} +2 -2
  62. package/dist/client/static/js/{index-tdryzzy9.js → index-5xxbbzqa.js} +6 -6
  63. package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
  64. package/dist/client/static/js/{index-e4yj4kbe.js → index-7sq6cjt1.js} +12 -12
  65. package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
  66. package/dist/client/static/js/{index-q0k1am0g.js → index-80kx6dm6.js} +2 -2
  67. package/dist/client/static/js/index-8d8ce00v.js +2 -0
  68. package/dist/client/static/js/{index-63mk2qk6.js → index-94d416ee.js} +2 -2
  69. package/dist/client/static/js/{index-db7vsjkd.js → index-an7fq7f6.js} +1 -1
  70. package/dist/client/static/js/{index-zzggk17b.js → index-azz46nwc.js} +2 -2
  71. package/dist/client/static/js/index-c9aqx3ht.js +1 -0
  72. package/dist/client/static/js/index-cc7qbfvn.js +477 -0
  73. package/dist/client/static/js/{index-cwwg7k5f.js → index-cmjyet7w.js} +49 -49
  74. package/dist/client/static/js/{index-55v3qv04.js → index-cpp43af3.js} +22 -22
  75. package/dist/client/static/js/{index-jaxhfk9x.js → index-dxq1tbwm.js} +2 -2
  76. package/dist/client/static/js/index-e0kahttb.js +1 -0
  77. package/dist/client/static/js/index-e4nge3f4.js +1 -0
  78. package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
  79. package/dist/client/static/js/index-f27wvdky.js +4 -0
  80. package/dist/client/static/js/{index-zv8wrvha.js → index-f61c25vn.js} +3 -3
  81. package/dist/client/static/js/{index-g2e0m757.js → index-fe92hqmb.js} +8 -8
  82. package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
  83. package/dist/client/static/js/{index-ep99arz1.js → index-fv7nybnf.js} +2 -2
  84. package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
  85. package/dist/client/static/js/{index-xfnjwhan.js → index-gqrt766t.js} +91 -91
  86. package/dist/client/static/js/index-hb7a7m9m.js +1 -0
  87. package/dist/client/static/js/{index-zynbvm7x.js → index-j830qk07.js} +2 -2
  88. package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
  89. package/dist/client/static/js/{index-8444mec5.js → index-kzzvrqnv.js} +2 -2
  90. package/dist/client/static/js/{index-6z30g3ha.js → index-m5n0zsft.js} +2 -2
  91. package/dist/client/static/js/{index-1q934wfk.js → index-medk4f18.js} +2 -2
  92. package/dist/client/static/js/index-nptbz7sv.js +2 -0
  93. package/dist/client/static/js/index-qefssj0m.js +1 -0
  94. package/dist/client/static/js/{index-mpyd7qxj.js → index-r8d4bk86.js} +2 -2
  95. package/dist/client/static/js/{index-hge0y4vn.js → index-rqt8mem9.js} +2 -2
  96. package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
  97. package/dist/client/static/js/index-s4dpkds5.js +2 -0
  98. package/dist/client/static/js/index-s9k82stc.js +2 -0
  99. package/dist/client/static/js/index-skwem10a.js +2 -0
  100. package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
  101. package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
  102. package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
  103. package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
  104. package/dist/client/static/js/index-tv9rn2nd.js +2 -0
  105. package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
  106. package/dist/client/static/js/{index-60g0e74a.js → index-vny4ymjf.js} +1 -1
  107. package/dist/client/static/js/{index-4cff0zg2.js → index-vw8b29ek.js} +1 -1
  108. package/dist/client/static/js/{index-9gfn1a3h.js → index-wn28m9h7.js} +8 -8
  109. package/dist/client/static/js/index-wxqcnsrq.js +2 -0
  110. package/dist/client/static/js/index-xmg1x6zv.js +9 -0
  111. package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
  112. package/dist/client/static/js/{index-ewst55j2.js → index-zhgh7a31.js} +2 -2
  113. package/dist/client/static/js/index-zs7kw0be.js +4 -0
  114. package/dist/client/static/js/info-A6RAGUB7-szttx3v5.js +1 -0
  115. package/dist/client/static/js/{infoDiagram-VRGFBTTK-c55t0tvd.js → infoDiagram-VRGFBTTK-1x83h4k4.js} +2 -2
  116. package/dist/client/static/js/ini-bdk46a3d.js +1 -0
  117. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-r9kg5kg5.js → ishikawaDiagram-OU5B5YK6-et6z3c28.js} +3 -3
  118. package/dist/client/static/js/java-3g3925cf.js +1 -0
  119. package/dist/client/static/js/javascript-av46zx4c.js +1 -0
  120. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-zmmst4v8.js → journeyDiagram-ZHPQQLJL-sw669e7a.js} +4 -4
  121. package/dist/client/static/js/json-hdyzmffz.js +1 -0
  122. package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
  123. package/dist/client/static/js/{julia-d18zhpyp.js → julia-z14p8jsx.js} +1 -1
  124. package/dist/client/static/js/{kanban-definition-PNTS6WVX-3tt6sc9a.js → kanban-definition-PNTS6WVX-aqxg95kx.js} +6 -6
  125. package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
  126. package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
  127. package/dist/client/static/js/{mermaid.core-pkrs8zp5.js → mermaid.core-6cgqsgcf.js} +8 -8
  128. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b4c6gxg4.js → mindmap-definition-NLK3R4M7-530anpc4.js} +7 -7
  129. package/dist/client/static/js/one-dark-pro-9hnhtkpr.js +1 -0
  130. package/dist/client/static/js/one-light-2n5y8592.js +1 -0
  131. package/dist/client/static/js/packet-AYTQ26CC-401149bv.js +1 -0
  132. package/dist/client/static/js/{pegDiagram-GJSIUBJH-9jkat1mz.js → pegDiagram-GJSIUBJH-5zar6hvy.js} +1 -1
  133. package/dist/client/static/js/{perl-sns2qvmf.js → perl-1na2x6yd.js} +1 -1
  134. package/dist/client/static/js/{php-3q6v9eey.js → php-x75tt7w3.js} +1 -1
  135. package/dist/client/static/js/pie-WAS4IAKB-bgfv8tfz.js +1 -0
  136. package/dist/client/static/js/{pieDiagram-5QR66LMP-6pbchjh7.js → pieDiagram-5QR66LMP-3bx8syvw.js} +2 -2
  137. package/dist/client/static/js/properties-xk4dn00p.js +1 -0
  138. package/dist/client/static/js/python-7sgz05n4.js +1 -0
  139. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p9brea19.js → quadrantDiagram-O4NWA36T-yaarpr2e.js} +6 -6
  140. package/dist/client/static/js/r-w4qxm0pv.js +1 -0
  141. package/dist/client/static/js/radar-RG4KPBEZ-pw720590.js +1 -0
  142. package/dist/client/static/js/railroad-74A4TZTK-n2a30ngs.js +1 -0
  143. package/dist/client/static/js/railroad-abnf-HS5TGJTU-rn5rx9qt.js +1 -0
  144. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-t4yryhtd.js +1 -0
  145. package/dist/client/static/js/railroad-peg-WCYAUIDC-c4ebgvrr.js +1 -0
  146. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3cep8css.js → railroadDiagram-XR7U4H2S-ag41q4nt.js} +1 -1
  147. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-x1yjgsrr.js → requirementDiagram-PLB6GJNP-g8sr48h4.js} +12 -12
  148. package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-3h22qahv.js} +1 -1
  149. package/dist/client/static/js/{rust-yy8gekx8.js → rust-r27demr5.js} +1 -1
  150. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-23wzf4aj.js → sankeyDiagram-IPEJSGJF-t1wbd1hh.js} +4 -4
  151. package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
  152. package/dist/client/static/js/{scss-9wz47c6t.js → scss-c04ezwnn.js} +1 -1
  153. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-w4wr3zzr.js → sequenceDiagram-PO4LG4MO-407mjqty.js} +21 -21
  154. package/dist/client/static/js/{sizeCapture-INFHLROL-aabfesnr.js → sizeCapture-INFHLROL-w38zb9ky.js} +1 -1
  155. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-t0n288xw.js → stateDiagram-v2-GCMORJYK-4cvgymkc.js} +3 -3
  156. package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-egg3x4tw.js} +1 -1
  157. package/dist/client/static/js/{swimlanes-2SLR337P-1nnm0p7h.js → swimlanes-2SLR337P-w7ts2rzw.js} +1 -1
  158. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-v82nym6b.js +8 -0
  159. package/dist/client/static/js/{timeline-definition-EJHVYXUP-8pyssn0q.js → timeline-definition-EJHVYXUP-nq46nzy9.js} +7 -7
  160. package/dist/client/static/js/treeView-Q6P3EWNA-bxgt5yhm.js +1 -0
  161. package/dist/client/static/js/treemap-WGGIJYW6-hh3595m0.js +1 -0
  162. package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
  163. package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
  164. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-vveepvt6.js → usecaseDiagram-POWQR4AR-q144snzb.js} +45 -45
  165. package/dist/client/static/js/{vennDiagram-UO4OBE2U-tqyvmqxc.js → vennDiagram-UO4OBE2U-2wemak2p.js} +8 -8
  166. package/dist/client/static/js/{vue-e8e3q3hj.js → vue-d7p4wv35.js} +1 -1
  167. package/dist/client/static/js/wardley-WFR3VGLG-6bza7h1b.js +1 -0
  168. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-p8rs34em.js → wardleyDiagram-VNRHLVJA-bb2qvvgr.js} +5 -5
  169. package/dist/client/static/js/xml-mrk4xakv.js +1 -0
  170. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-pgnvxtps.js → xychartDiagram-PMCCYNJV-9dr05fdq.js} +6 -6
  171. package/dist/client/static/js/yaml-xaza6dra.js +1 -0
  172. package/package.json +6 -6
  173. package/src/client/bootstrap.d.ts +11 -0
  174. package/src/client/borders.css +3 -4
  175. package/src/client/components/auth/login-screen/index.tsx +1 -1
  176. package/src/client/components/common/ComposerPicker.tsx +1 -1
  177. package/src/client/components/common/CopyButton.tsx +1 -1
  178. package/src/client/components/common/FolderPicker.tsx +1 -1
  179. package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
  180. package/src/client/components/common/ViewportSelector.tsx +2 -2
  181. package/src/client/components/common/anchored-menu/index.tsx +11 -4
  182. package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
  183. package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
  184. package/src/client/components/common/checkbox/style.ts +1 -1
  185. package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
  186. package/src/client/components/common/file-icon/index.tsx +3 -3
  187. package/src/client/components/common/harness-glyph/index.tsx +4 -3
  188. package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
  189. package/src/client/components/common/image-viewer/index.tsx +2 -2
  190. package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
  191. package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
  192. package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
  193. package/src/client/components/common/server-control/Panel.tsx +1 -1
  194. package/src/client/components/common/server-control/Row.tsx +3 -3
  195. package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
  196. package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
  197. package/src/client/components/common/session-delete-modal/index.tsx +4 -4
  198. package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
  199. package/src/client/components/common/session-row/TrailingSlot.tsx +6 -2
  200. package/src/client/components/common/session-row/index.tsx +56 -2
  201. package/src/client/components/common/session-row/session-row.test.tsx +84 -3
  202. package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
  203. package/src/client/components/common/todo-row/index.tsx +1 -1
  204. package/src/client/components/common/window-controls/index.tsx +1 -1
  205. package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
  206. package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
  207. package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
  208. package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
  209. package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
  210. package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
  211. package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
  212. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +24 -3
  213. package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +20 -0
  214. package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
  215. package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
  216. package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
  217. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
  218. package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
  219. package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
  220. package/src/client/components/layout/update-popup/Actions.tsx +1 -1
  221. package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
  222. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
  223. package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
  224. package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
  225. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
  226. package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
  227. package/src/client/components/settings/Modal.tsx +8 -3
  228. package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
  229. package/src/client/components/settings/Sidebar.tsx +3 -3
  230. package/src/client/components/settings/apply-side-effects.test.ts +46 -0
  231. package/src/client/components/settings/apply-side-effects.ts +8 -0
  232. package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
  233. package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
  234. package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
  235. package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
  236. package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
  237. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
  238. package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
  239. package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
  240. package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
  241. package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
  242. package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
  243. package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
  244. package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
  245. package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
  246. package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
  247. package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
  248. package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
  249. package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
  250. package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
  251. package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
  252. package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
  253. package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
  254. package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
  255. package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
  256. package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
  257. package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
  258. package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
  259. package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
  260. package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
  261. package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
  262. package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
  263. package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
  264. package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
  265. package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
  266. package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
  267. package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
  268. package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
  269. package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
  270. package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
  271. package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
  272. package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
  273. package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
  274. package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
  275. package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
  276. package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
  277. package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
  278. package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
  279. package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
  280. package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
  281. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
  282. package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
  283. package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
  284. package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
  285. package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
  286. package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
  287. package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
  288. package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
  289. package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
  290. package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
  291. package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
  292. package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
  293. package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
  294. package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
  295. package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
  296. package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
  297. package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
  298. package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
  299. package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
  300. package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
  301. package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
  302. package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
  303. package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
  304. package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
  305. package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
  306. package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
  307. package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
  308. package/src/client/components/workspace/browser-panel/index.tsx +2 -2
  309. package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
  310. package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
  311. package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
  312. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
  313. package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
  314. package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +1 -0
  315. package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
  316. package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
  317. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
  318. package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +5 -0
  319. package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +81 -162
  320. package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
  321. package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
  322. package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +12 -8
  323. package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
  324. package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +12 -4
  325. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
  326. package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -0
  327. package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
  328. package/src/client/components/workspace/chat-timeline/UserTurn.test.tsx +24 -6
  329. package/src/client/components/workspace/chat-timeline/UserTurn.tsx +17 -4
  330. package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +18 -2
  331. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +66 -10
  332. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +103 -41
  333. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
  334. package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
  335. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +4 -2
  336. package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
  337. package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
  338. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +2 -2
  339. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +54 -35
  340. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.test.tsx +110 -0
  341. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +51 -32
  342. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +62 -0
  343. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +17 -5
  344. package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
  345. package/src/client/components/workspace/chat-timeline/chat-input/access-capability.test.tsx +151 -0
  346. package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +5 -0
  347. package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
  348. package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +1 -1
  349. package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
  350. package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.test.tsx +21 -5
  351. package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.tsx +100 -71
  352. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -9
  353. package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +83 -66
  354. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +3 -3
  355. package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +38 -17
  356. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
  357. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
  358. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
  359. package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
  360. package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
  361. package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
  362. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
  363. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
  364. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
  365. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
  366. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
  367. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
  368. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
  369. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
  370. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
  371. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
  372. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
  373. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
  374. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
  375. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
  376. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
  377. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
  378. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
  379. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +8 -4
  380. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
  381. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
  382. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
  383. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
  384. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +11 -3
  385. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
  386. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.tsx +2 -2
  387. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Compact.tsx +11 -6
  388. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +2 -2
  389. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Trace.tsx +2 -2
  390. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +37 -9
  391. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +35 -23
  392. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/parity.test.tsx +50 -2
  393. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/props.ts +2 -0
  394. package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
  395. package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
  396. package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
  397. package/src/client/components/workspace/diff-panel/index.tsx +3 -3
  398. package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
  399. package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
  400. package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
  401. package/src/client/components/workspace/editor/FilePane.tsx +6 -6
  402. package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
  403. package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
  404. package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
  405. package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
  406. package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
  407. package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
  408. package/src/client/components/workspace/editor/Tabs.tsx +6 -6
  409. package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
  410. package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
  411. package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
  412. package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
  413. package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
  414. package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
  415. package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
  416. package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
  417. package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
  418. package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
  419. package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
  420. package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
  421. package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
  422. package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
  423. package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
  424. package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
  425. package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
  426. package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
  427. package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
  428. package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
  429. package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
  430. package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
  431. package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
  432. package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
  433. package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
  434. package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
  435. package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
  436. package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
  437. package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
  438. package/src/client/components/workspace/plan-panel/index.tsx +2 -2
  439. package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
  440. package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
  441. package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
  442. package/src/client/components/workspace/search-panel/Body.tsx +2 -2
  443. package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
  444. package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
  445. package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
  446. package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
  447. package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
  448. package/src/client/components/workspace/usage-panel/index.tsx +3 -3
  449. package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
  450. package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
  451. package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
  452. package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
  453. package/src/client/data/settings/omp-schema.json +27 -7
  454. package/src/client/hooks/chat/timeline/access-ladder-wiring.test.ts +111 -0
  455. package/src/client/hooks/chat/timeline/access-ladder.test.ts +66 -0
  456. package/src/client/hooks/chat/timeline/access-ladder.ts +72 -0
  457. package/src/client/hooks/chat/timeline/access-mode.ts +11 -1
  458. package/src/client/hooks/chat/timeline/index.ts +4 -5
  459. package/src/client/hooks/chat/timeline/modes-contract.ts +10 -1
  460. package/src/client/hooks/chat/timeline/modes.ts +10 -2
  461. package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
  462. package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
  463. package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
  464. package/src/client/hooks/ui/border-style.test.ts +1 -2
  465. package/src/client/hooks/ui/theme.ts +23 -2
  466. package/src/client/main.tsx +7 -1
  467. package/src/client/tailwind-contrast.test.ts +22 -7
  468. package/src/client/tailwind.css +115 -18
  469. package/src/server/lib/assets/theme-css.server.test.ts +31 -1
  470. package/src/server/lib/assets/theme-css.server.ts +15 -1
  471. package/src/server/lib/harness/accounts.test.ts +5 -3
  472. package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
  473. package/src/server/lib/omp/session/delete.server.ts +4 -0
  474. package/src/server/lib/realtime/topics/session-data.server.ts +64 -1
  475. package/src/server/lib/realtime/topics/session-data.test.ts +189 -0
  476. package/src/server/lib/tray/runtime.server.ts +5 -0
  477. package/src/server/plugins/ssr.ts +16 -4
  478. package/src/server/routes/settings/root.ts +11 -0
  479. package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
  480. package/src/shared/lib/chat/orchestration/outcome-markdown.test.ts +57 -0
  481. package/src/shared/lib/chat/orchestration/outcome-markdown.ts +74 -0
  482. package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
  483. package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
  484. package/src/shared/lib/chat/todo/flat-list.ts +29 -0
  485. package/src/shared/lib/chat/todo/parser.ts +7 -53
  486. package/src/shared/lib/chat/todo/progress.test.ts +3 -3
  487. package/src/shared/lib/chat/todo/progress.ts +3 -3
  488. package/src/shared/lib/fs/git-status.test.ts +22 -22
  489. package/src/shared/lib/fs/git-status.ts +31 -31
  490. package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
  491. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
  492. package/src/shared/lib/settings/defaults.ts +1 -0
  493. package/src/shared/lib/theme/catalog.test.ts +42 -0
  494. package/src/shared/lib/theme/catalog.ts +66 -11
  495. package/src/shared/lib/theme/css.ts +25 -1
  496. package/src/shared/lib/theme/custom.test.ts +156 -0
  497. package/src/shared/lib/theme/custom.ts +260 -0
  498. package/src/shared/lib/theme/ink-scale.test.ts +83 -2
  499. package/src/shared/lib/theme/ink-scale.ts +74 -9
  500. package/src/shared/lib/theme/shell-palette.ts +3 -3
  501. package/src/shared/lib/theme/theme.test.ts +28 -13
  502. package/src/shared/types/settings/state.ts +11 -3
  503. package/tsconfig.json +6 -0
  504. package/dist/client/static/js/Body-p6zwk0nx.js +0 -3
  505. package/dist/client/static/js/ImageView-fkfq3fwv.js +0 -1
  506. package/dist/client/static/js/LayoutWrapper-mdb1qm26.js +0 -2
  507. package/dist/client/static/js/MergeDiffView-7kpjxcg9.js +0 -1
  508. package/dist/client/static/js/Modal-0p9cr2tn.js +0 -60
  509. package/dist/client/static/js/SessionsView-gptt0rq8.js +0 -1
  510. package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
  511. package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
  512. package/dist/client/static/js/c-20y64hcp.js +0 -1
  513. package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
  514. package/dist/client/static/js/css-9gak6bze.js +0 -1
  515. package/dist/client/static/js/css-ncvxaxt0.js +0 -1
  516. package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
  517. package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
  518. package/dist/client/static/js/flowDiagram-KWPJA3E3-5bvd5k2t.js +0 -1
  519. package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
  520. package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
  521. package/dist/client/static/js/html-p76eszt9.js +0 -1
  522. package/dist/client/static/js/index-28wv94gz.js +0 -2
  523. package/dist/client/static/js/index-3wgjtp2k.js +0 -9
  524. package/dist/client/static/js/index-7trfm17d.js +0 -2
  525. package/dist/client/static/js/index-ays8t3t3.js +0 -4
  526. package/dist/client/static/js/index-cxe75e06.js +0 -2
  527. package/dist/client/static/js/index-dmb1pykr.js +0 -1
  528. package/dist/client/static/js/index-fqc1snjw.js +0 -1
  529. package/dist/client/static/js/index-jsn2kedv.js +0 -1
  530. package/dist/client/static/js/index-n1xmkf2g.js +0 -2
  531. package/dist/client/static/js/index-pe4d9wht.js +0 -1
  532. package/dist/client/static/js/index-pjf5wak8.js +0 -2
  533. package/dist/client/static/js/index-sm8gpk3g.js +0 -4
  534. package/dist/client/static/js/index-st6a8q5z.js +0 -470
  535. package/dist/client/static/js/index-stmwbavz.js +0 -1
  536. package/dist/client/static/js/index-swaveqxg.css +0 -1
  537. package/dist/client/static/js/index-t82q5t6m.js +0 -1
  538. package/dist/client/static/js/index-t9zjfxvc.js +0 -1
  539. package/dist/client/static/js/index-tdbcp70z.js +0 -2
  540. package/dist/client/static/js/index-v38j2zxn.js +0 -2
  541. package/dist/client/static/js/index-x17y7xdr.js +0 -2
  542. package/dist/client/static/js/index-xrb4kjr3.js +0 -1
  543. package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
  544. package/dist/client/static/js/ini-kjcpgebh.js +0 -1
  545. package/dist/client/static/js/java-0bcyv1jt.js +0 -1
  546. package/dist/client/static/js/javascript-0mqgcvps.js +0 -1
  547. package/dist/client/static/js/json-xha2drny.js +0 -1
  548. package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
  549. package/dist/client/static/js/lua-njwwdj4s.js +0 -1
  550. package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
  551. package/dist/client/static/js/one-dark-pro-sstqnzcf.js +0 -1
  552. package/dist/client/static/js/one-light-6fpxxq2j.js +0 -1
  553. package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
  554. package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
  555. package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
  556. package/dist/client/static/js/python-fdwwjjhh.js +0 -1
  557. package/dist/client/static/js/r-4d2ygtfj.js +0 -1
  558. package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
  559. package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
  560. package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
  561. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
  562. package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
  563. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-cx3f29mq.js +0 -8
  564. package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
  565. package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
  566. package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
  567. package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
  568. package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
  569. package/dist/client/static/js/xml-8516fzfp.js +0 -1
  570. package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
@@ -46,31 +46,31 @@ const STOP_UI: Record<GoalContinuationStop, { badge: string; title: string; tone
46
46
  'max-turns': {
47
47
  badge: 'stopped',
48
48
  title: 'Automatic continuation stopped at the turn ceiling',
49
- tone: 'text-warning',
49
+ tone: 'text-warning-text',
50
50
  action: 'resume',
51
51
  },
52
52
  budget: {
53
53
  badge: 'budget',
54
54
  title: "Automatic continuation stopped: the goal's token budget is spent",
55
- tone: 'text-warning',
55
+ tone: 'text-warning-text',
56
56
  action: 'budget',
57
57
  },
58
58
  blocked: {
59
59
  badge: 'blocked',
60
60
  title: 'The auditor says this goal needs you before more work can help',
61
- tone: 'text-warning',
61
+ tone: 'text-warning-text',
62
62
  action: 'resume',
63
63
  },
64
64
  complete: {
65
65
  badge: 'done',
66
66
  title: 'The auditor judged the objective complete',
67
- tone: 'text-success',
67
+ tone: 'text-success-text',
68
68
  action: 'none',
69
69
  },
70
70
  'audit-failed': {
71
71
  badge: 'unchecked',
72
72
  title: 'The progress check could not run, so the loop stood down',
73
- tone: 'text-warning',
73
+ tone: 'text-warning-text',
74
74
  action: 'resume',
75
75
  },
76
76
  };
@@ -122,13 +122,13 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
122
122
  // The spinner covers both halves of "not idle": a streaming turn, and the
123
123
  // auditor Kabmo runs after it (`goal_evaluating`).
124
124
  const busy = running || evaluating;
125
- const tone = busy ? 'text-ink/45' : stopped ? STOP_UI[stop].tone : paused ? 'text-warning' : 'text-ink/45';
125
+ const tone = busy ? 'text-ink/45' : stopped ? STOP_UI[stop].tone : paused ? 'text-warning-text' : 'text-ink/45';
126
126
  const badge = paused
127
- ? 'bg-warning/10 text-warning'
127
+ ? 'bg-warning/10 text-warning-text'
128
128
  : stop === 'complete'
129
- ? 'bg-success/10 text-success'
129
+ ? 'bg-success/10 text-success-text'
130
130
  : stop
131
- ? 'bg-warning/10 text-warning'
131
+ ? 'bg-warning/10 text-warning-text'
132
132
  : 'bg-ink/8 text-ink/60';
133
133
 
134
134
  const tokens =
@@ -198,7 +198,7 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
198
198
  disabled={pending}
199
199
  aria-label="Raise the goal budget"
200
200
  title="Raise the budget: automatic continuation stopped when it ran out"
201
- className="flex shrink-0 items-center gap-1 rounded border border-warning/30 px-1.5 py-0.5 text-[10px] text-warning transition-colors hover:bg-warning/10 disabled:opacity-50"
201
+ className="flex shrink-0 items-center gap-1 rounded border border-warning/30 px-1.5 py-0.5 text-[10px] text-warning-text transition-colors hover:bg-warning/10 disabled:opacity-50"
202
202
  >
203
203
  <SlidersHorizontal size={10} />
204
204
  <span className="hidden @[480px]:inline">Raise budget</span>
@@ -219,7 +219,7 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
219
219
  : 'Pause — stop automatic continuation after the current turn'
220
220
  }
221
221
  className={`flex shrink-0 items-center gap-1 rounded border border-ink/15 px-1.5 py-0.5 text-[10px] transition-colors hover:bg-ink/5 disabled:opacity-50 ${
222
- paused || stopped ? 'text-warning border-warning/30 hover:bg-warning/10' : 'text-ink/70'
222
+ paused || stopped ? 'text-warning-text border-warning/30 hover:bg-warning/10' : 'text-ink/70'
223
223
  }`}
224
224
  >
225
225
  {paused || stopped ? <Play size={10} /> : <Pause size={10} />}
@@ -175,7 +175,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
175
175
  />
176
176
  <Stat label="Time" value={`${Math.round(goalRecord.timeUsedSeconds / 60)}m`} />
177
177
  </div>
178
- {error && <div className="text-error">{error}</div>}
178
+ {error && <div className="text-error-text">{error}</div>}
179
179
  <div className="flex flex-wrap items-center gap-2 pt-1">
180
180
  {goalRecord.status === 'paused' ? (
181
181
  <ActionButton onClick={() => void submit({ kind: 'resume' })} disabled={busy}>
@@ -209,7 +209,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
209
209
  type="button"
210
210
  onClick={() => void submit({ kind: 'drop' })}
211
211
  disabled={busy}
212
- className="ml-auto rounded border border-error/40 px-3 py-1.5 text-[11px] text-error transition-colors hover:bg-error/10 disabled:opacity-50"
212
+ className="ml-auto rounded border border-error/40 px-3 py-1.5 text-[11px] text-error-text transition-colors hover:bg-error/10 disabled:opacity-50"
213
213
  >
214
214
  Drop goal
215
215
  </button>
@@ -283,7 +283,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
283
283
  Let the agent interview me first — it asks one question per turn, then writes the objective itself.
284
284
  </span>
285
285
  </label>
286
- {error && <div className="text-[11.5px] text-error">{error}</div>}
286
+ {error && <div className="text-[11.5px] text-error-text">{error}</div>}
287
287
  <div className="flex justify-end gap-2 pt-1">
288
288
  <button
289
289
  type="button"
@@ -72,7 +72,7 @@ describe('SessionModeDropdown', () => {
72
72
  await act(async () => {
73
73
  (trigger as HTMLButtonElement).click();
74
74
  });
75
- const options = el.querySelectorAll('[role="option"]');
75
+ const options = document.body.querySelectorAll('[role="option"]');
76
76
  expect(options).toHaveLength(2);
77
77
  expect(options[0]?.getAttribute('aria-selected')).toBe('true');
78
78
 
@@ -80,7 +80,7 @@ describe('SessionModeDropdown', () => {
80
80
  (options[1] as HTMLButtonElement).click();
81
81
  });
82
82
  expect(picks).toEqual(['code']);
83
- expect(el.querySelector('[role="listbox"]')).toBeNull();
83
+ expect(document.body.querySelector('[role="listbox"]')).toBeNull();
84
84
  });
85
85
 
86
86
  test('a chat that has not spawned says "Mode", not an empty chip', async () => {
@@ -13,12 +13,15 @@
13
13
  * or a one-value ladder — and `ModeToggles` then keeps the Plan button.
14
14
  *
15
15
  * The popover mirrors `AccessDropdown`: a chip, a list, a check on the current
16
- * value, and dismissal on outside press.
16
+ * value, and dismissal on outside press. It is PORTALLED for the same reason:
17
+ * the chip lives in the composer's attachment row, and an `absolute left-0`
18
+ * panel ran past a phone's right edge (measured at 320px: 346px).
17
19
  */
18
20
 
19
- import { useRef, useState } from 'preact/hooks';
21
+ import { useCallback, useRef, useState } from 'preact/hooks';
20
22
  import { Check, ChevronDown, Layers } from 'lucide-preact';
21
- import { useOnClickOutside } from '@/client/hooks/ui/on-click-outside';
23
+ import { AnchoredMenu } from '@/client/components/common/anchored-menu';
24
+ import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
22
25
  import type { SessionModeState } from '@kabmo-labs/kabmo-harness/session-modes';
23
26
 
24
27
  export interface SessionModeDropdownProps {
@@ -32,8 +35,12 @@ export interface SessionModeDropdownProps {
32
35
 
33
36
  export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false }: SessionModeDropdownProps) {
34
37
  const [open, setOpen] = useState(false);
35
- const ref = useRef<HTMLDivElement>(null);
36
- useOnClickOutside(ref, () => setOpen(false));
38
+ const [anchor, setAnchor] = useState<AnchorRect | null>(null);
39
+ const triggerRef = useRef<HTMLButtonElement>(null);
40
+ const close = useCallback(() => {
41
+ setOpen(false);
42
+ setAnchor(null);
43
+ }, []);
37
44
 
38
45
  if (!mode || mode.values.length < 2) return null;
39
46
  const current = mode.values.find((choice) => choice.value === mode.currentValue);
@@ -42,11 +49,23 @@ export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false
42
49
  // a broken chip beside a working list.
43
50
  const label = current?.name ?? (mode.currentValue || 'Mode');
44
51
 
52
+ const toggle = () => {
53
+ if (open) {
54
+ close();
55
+ return;
56
+ }
57
+ const trigger = triggerRef.current;
58
+ if (!trigger) return;
59
+ setAnchor(anchorRectOf(trigger));
60
+ setOpen(true);
61
+ };
62
+
45
63
  return (
46
- <div className="relative" ref={ref}>
64
+ <div>
47
65
  <button
66
+ ref={triggerRef}
48
67
  type="button"
49
- onClick={() => setOpen((value) => !value)}
68
+ onClick={toggle}
50
69
  disabled={pending}
51
70
  aria-haspopup="listbox"
52
71
  aria-expanded={open}
@@ -58,35 +77,35 @@ export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false
58
77
  {!iconOnly && <span className="max-w-[9rem] truncate">{label}</span>}
59
78
  <ChevronDown size={11} className={`flex-shrink-0 text-ink/40 transition-transform ${open ? 'rotate-180' : ''}`} />
60
79
  </button>
61
- {open && (
62
- <div
63
- role="listbox"
64
- aria-label="Session mode"
65
- className="glass-popover absolute bottom-full left-0 mb-1 w-44 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs"
66
- >
67
- <div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">
68
- Session Mode
69
- </div>
70
- {mode.values.map((choice) => (
71
- <button
72
- key={choice.value}
73
- type="button"
74
- role="option"
75
- aria-selected={choice.value === mode.currentValue}
76
- onClick={() => {
77
- setOpen(false);
78
- onSelect(choice.value);
79
- }}
80
- className={`w-full text-left px-3 py-1.5 flex items-center justify-between gap-2 transition-colors hover:bg-ink/5 ${
81
- choice.value === mode.currentValue ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
82
- }`}
83
- >
84
- <span className="truncate">{choice.name}</span>
85
- {choice.value === mode.currentValue && <Check size={12} className="text-ink shrink-0" />}
86
- </button>
87
- ))}
80
+ <AnchoredMenu
81
+ anchor={open ? anchor : null}
82
+ role="listbox"
83
+ ariaLabel="Session mode"
84
+ className="w-44 max-w-[calc(100vw-1rem)] bg-paper border border-ink/20 rounded-md shadow-lg py-1 text-xs"
85
+ onClose={close}
86
+ >
87
+ <div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">
88
+ Session Mode
88
89
  </div>
89
- )}
90
+ {mode.values.map((choice) => (
91
+ <button
92
+ key={choice.value}
93
+ type="button"
94
+ role="option"
95
+ aria-selected={choice.value === mode.currentValue}
96
+ onClick={() => {
97
+ close();
98
+ onSelect(choice.value);
99
+ }}
100
+ className={`w-full text-left px-3 py-1.5 flex items-center justify-between gap-2 transition-colors hover:bg-ink/5 ${
101
+ choice.value === mode.currentValue ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
102
+ }`}
103
+ >
104
+ <span className="truncate">{choice.name}</span>
105
+ {choice.value === mode.currentValue && <Check size={12} className="text-ink shrink-0" />}
106
+ </button>
107
+ ))}
108
+ </AnchoredMenu>
90
109
  </div>
91
110
  );
92
111
  }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The thinking chip's list.
8
+ *
9
+ * The panel is PORTALLED (`AnchoredMenu`): this chip sits in the composer's
10
+ * bottom row beside the access control, and an `absolute left-0` panel there
11
+ * ran past a phone's right edge — measured at 320px, the access panel ended at
12
+ * 346. The test asserts the STRUCTURE (rows live in `document.body`, the panel
13
+ * is `fixed`) because a row-only assertion would stay green with the overflow
14
+ * restored.
15
+ */
16
+
17
+ import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
18
+ import { Window } from 'happy-dom';
19
+ import { h, render } from 'preact';
20
+ import { act } from 'preact/test-utils';
21
+ import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
22
+ import { ThinkingLevelDropdown } from '@/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown';
23
+
24
+ const mounted: HTMLElement[] = [];
25
+
26
+ beforeAll(() => {
27
+ installDomGlobals(new Window({ url: 'http://localhost' }));
28
+ });
29
+
30
+ afterEach(() => {
31
+ for (const host of mounted.splice(0)) {
32
+ render(null, host);
33
+ host.remove();
34
+ }
35
+ });
36
+
37
+ afterAll(() => {
38
+ restoreDomGlobals();
39
+ });
40
+
41
+ async function mount(node: h.JSX.Element): Promise<HTMLElement> {
42
+ const host = document.createElement('div');
43
+ document.body.appendChild(host);
44
+ await act(async () => {
45
+ render(node, host);
46
+ });
47
+ mounted.push(host);
48
+ return host;
49
+ }
50
+
51
+ describe('ThinkingLevelDropdown', () => {
52
+ test('opens a portalled listbox of the model’s levels', async () => {
53
+ const host = await mount(
54
+ h(ThinkingLevelDropdown, {
55
+ thinkingLevels: ['low', 'high'],
56
+ currentThinking: 'low',
57
+ onSelect: () => {},
58
+ }),
59
+ );
60
+
61
+ await act(async () => {
62
+ (host.querySelector('button') as HTMLButtonElement).click();
63
+ });
64
+
65
+ // Inside the row an absolute panel widened the scroll area; the portal keeps
66
+ // the list out of that layout and lets `placeMenu` clamp it.
67
+ expect(host.querySelector('[role="listbox"]')).toBeNull();
68
+ const listbox = document.body.querySelector('[role="listbox"]');
69
+ expect(listbox?.getAttribute('aria-label')).toBe('Thinking level');
70
+ expect(listbox?.className).toContain('fixed');
71
+ expect([...document.body.querySelectorAll('[role="option"]')].map((row) => row.textContent)).toEqual([
72
+ 'low',
73
+ 'high',
74
+ ]);
75
+ });
76
+
77
+ test('picking a level reports it and closes the list', async () => {
78
+ const picked: string[] = [];
79
+ const host = await mount(
80
+ h(ThinkingLevelDropdown, {
81
+ thinkingLevels: ['low', 'high'],
82
+ currentThinking: 'low',
83
+ onSelect: (level) => picked.push(level),
84
+ }),
85
+ );
86
+
87
+ await act(async () => {
88
+ (host.querySelector('button') as HTMLButtonElement).click();
89
+ });
90
+ await act(async () => {
91
+ (document.body.querySelectorAll('[role="option"]')[1] as HTMLButtonElement).click();
92
+ });
93
+
94
+ expect(picked).toEqual(['high']);
95
+ expect(document.body.querySelector('[role="listbox"]')).toBeNull();
96
+ });
97
+
98
+ test('stays disabled when the model exposes no levels', async () => {
99
+ const host = await mount(
100
+ h(ThinkingLevelDropdown, { thinkingLevels: [], currentThinking: 'Default', onSelect: () => {} }),
101
+ );
102
+
103
+ const trigger = host.querySelector('button') as HTMLButtonElement;
104
+ expect(trigger.disabled).toBe(true);
105
+ await act(async () => {
106
+ trigger.click();
107
+ });
108
+ expect(document.body.querySelector('[role="listbox"]')).toBeNull();
109
+ });
110
+ });
@@ -1,6 +1,7 @@
1
- import { useRef, useState } from 'preact/hooks';
1
+ import { useCallback, useRef, useState } from 'preact/hooks';
2
2
  import { Brain, Check, ChevronDown } from 'lucide-preact';
3
- import { useOnClickOutside } from '@/client/hooks/ui/on-click-outside';
3
+ import { AnchoredMenu } from '@/client/components/common/anchored-menu';
4
+ import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
4
5
 
5
6
  interface ThinkingLevelDropdownProps {
6
7
  thinkingLevels: string[];
@@ -12,19 +13,37 @@ interface ThinkingLevelDropdownProps {
12
13
 
13
14
  export function ThinkingLevelDropdown({ thinkingLevels, currentThinking, onSelect, iconOnly = false }: ThinkingLevelDropdownProps) {
14
15
  const [showThinking, setShowThinking] = useState(false);
15
- const thinkingRef = useRef<HTMLDivElement>(null);
16
+ const [anchor, setAnchor] = useState<AnchorRect | null>(null);
17
+ const triggerRef = useRef<HTMLButtonElement>(null);
16
18
  const listboxId = useRef(`thinking-listbox-${Math.random().toString(36).slice(2, 9)}`).current;
17
- useOnClickOutside(thinkingRef, () => setShowThinking(false));
19
+ const close = useCallback(() => {
20
+ setShowThinking(false);
21
+ setAnchor(null);
22
+ }, []);
23
+ // Portalled for the same measured reason as `AccessDropdown`: this chip sits
24
+ // in the composer's bottom row, whose rightmost controls leave no room for an
25
+ // `absolute left-0` panel on a phone. `placeMenu` clamps it to the viewport.
26
+ const toggle = () => {
27
+ if (showThinking) {
28
+ close();
29
+ return;
30
+ }
31
+ const trigger = triggerRef.current;
32
+ if (!trigger) return;
33
+ setAnchor(anchorRectOf(trigger));
34
+ setShowThinking(true);
35
+ };
18
36
 
19
37
  const handleSelect = (level: string) => {
20
- setShowThinking(false);
38
+ close();
21
39
  onSelect(level);
22
40
  };
23
41
 
24
42
  return (
25
- <div className="relative" ref={thinkingRef}>
43
+ <div>
26
44
  <button
27
- onClick={() => thinkingLevels.length > 0 && setShowThinking(!showThinking)}
45
+ ref={triggerRef}
46
+ onClick={toggle}
28
47
  disabled={thinkingLevels.length === 0}
29
48
  aria-label={`Thinking level: ${currentThinking}`}
30
49
  aria-haspopup="listbox"
@@ -37,31 +56,31 @@ export function ThinkingLevelDropdown({ thinkingLevels, currentThinking, onSelec
37
56
  {!iconOnly && <span className="whitespace-nowrap">{currentThinking}</span>}
38
57
  <ChevronDown size={11} className={`flex-shrink-0 text-ink/40 transition-transform ${showThinking ? 'rotate-180' : ''}`} />
39
58
  </button>
40
- {showThinking && thinkingLevels.length > 0 && (
41
- <div
42
- id={listboxId}
43
- role="listbox"
44
- aria-label="Thinking level"
45
- className="glass-popover absolute bottom-full left-0 mb-1 w-40 bg-paper border border-ink/20 rounded-md shadow-lg z-50 py-1 text-xs"
46
- >
47
- <div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">Thinking Level</div>
48
- {thinkingLevels.map(level => (
49
- <button
50
- key={level}
51
- type="button"
52
- role="option"
53
- aria-selected={currentThinking === level}
54
- onClick={() => handleSelect(level)}
55
- className={`w-full text-left px-3 py-1.5 flex items-center justify-between transition-colors hover:bg-ink/5 ${
56
- currentThinking === level ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
57
- }`}
58
- >
59
- <span>{level}</span>
60
- {currentThinking === level && <Check size={12} className="text-ink shrink-0" />}
61
- </button>
62
- ))}
63
- </div>
64
- )}
59
+ <AnchoredMenu
60
+ anchor={showThinking && thinkingLevels.length > 0 ? anchor : null}
61
+ id={listboxId}
62
+ role="listbox"
63
+ ariaLabel="Thinking level"
64
+ className="w-40 max-w-[calc(100vw-1rem)] bg-paper border border-ink/20 rounded-md shadow-lg py-1 text-xs"
65
+ onClose={close}
66
+ >
67
+ <div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">Thinking Level</div>
68
+ {thinkingLevels.map(level => (
69
+ <button
70
+ key={level}
71
+ type="button"
72
+ role="option"
73
+ aria-selected={currentThinking === level}
74
+ onClick={() => handleSelect(level)}
75
+ className={`w-full text-left px-3 py-1.5 flex items-center justify-between transition-colors hover:bg-ink/5 ${
76
+ currentThinking === level ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
77
+ }`}
78
+ >
79
+ <span>{level}</span>
80
+ {currentThinking === level && <Check size={12} className="text-ink shrink-0" />}
81
+ </button>
82
+ ))}
83
+ </AnchoredMenu>
65
84
  </div>
66
85
  );
67
86
  }
@@ -257,3 +257,65 @@ describe('composer toolbar Plan/Goal host', () => {
257
257
  expect(el.querySelectorAll(plan).length).toBe(0);
258
258
  });
259
259
  });
260
+
261
+ /**
262
+ * Access Control exists only where the agent can ASK.
263
+ *
264
+ * The three tiers answer `session/request_permission`; an agent that never
265
+ * sends one (measured: `jcode`, and `pi-acp` behind `pi`/`omo`) leaves every
266
+ * position of the chip inert, so the chip is not drawn — and with it the
267
+ * Plan/Goal cluster that shares the same `showAccess` gate.
268
+ */
269
+ describe('composer toolbar Access Control capability gate', () => {
270
+ const access = '[aria-label^="Access control:"]';
271
+ const plan = '[aria-label="Enter plan mode"]';
272
+
273
+ async function mountFor(harness: string): Promise<HTMLElement> {
274
+ container = document.createElement('div');
275
+ document.body.appendChild(container);
276
+ await act(async () => {
277
+ render(
278
+ h(ComposerToolbar, {
279
+ isMobile: false,
280
+ selectedModel: null,
281
+ onSelectModel: () => {},
282
+ thinkingLevels: [],
283
+ currentThinking: 'auto',
284
+ onSelectThinking: () => {},
285
+ isGenerating: false,
286
+ onSend: () => {},
287
+ sendDisabled: false,
288
+ showModel: false,
289
+ showThinking: false,
290
+ showAccess: true,
291
+ accessMode: 'always-ask',
292
+ onSelectAccess: () => {},
293
+ modes: MODES,
294
+ onOpenGoal: () => {},
295
+ harness,
296
+ }),
297
+ container,
298
+ );
299
+ });
300
+ return container;
301
+ }
302
+
303
+ test('draws the chip for a harness that raises approvals', async () => {
304
+ const el = await mountFor('claude');
305
+ expect(el.querySelectorAll(access).length).toBe(1);
306
+ expect(el.querySelectorAll(plan).length).toBe(1);
307
+ });
308
+
309
+ test('omits it for a harness that never asks', async () => {
310
+ const el = await mountFor('jcode');
311
+ expect(el.querySelectorAll(access).length).toBe(0);
312
+ expect(el.textContent).not.toContain('Always ask');
313
+ // Goal is Kabmo-owned and still runs on this agent, so the mode cluster
314
+ // stays: the approval capability gates the chip alone.
315
+ expect(el.querySelectorAll(plan).length).toBe(1);
316
+ });
317
+
318
+ test('omp keeps it: its own transports gate tools themselves', async () => {
319
+ expect((await mountFor('omp-rpc')).querySelectorAll(access).length).toBe(1);
320
+ });
321
+ });
@@ -7,6 +7,7 @@ import { ModeToggles } from '@/client/components/workspace/chat-timeline/chat-in
7
7
  import { PluginComposerActions } from '@/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots';
8
8
  import type { ComposerModes } from '@/client/components/workspace/chat-timeline/chat-input/modes-props';
9
9
  import { DEFAULT_APPROVAL_MODE, type ApprovalMode } from '@kabmo-labs/kabmo-omp/access-mode';
10
+ import { harnessRaisesApprovals } from '@kabmo-labs/kabmo-harness/catalog';
10
11
 
11
12
  export interface ComposerToolbarProps {
12
13
  isMobile: boolean;
@@ -55,7 +56,7 @@ export interface ComposerToolbarProps {
55
56
  onVoiceToggle?: () => void;
56
57
  /** The draft, handed to a plugin `composerAction` at render time. */
57
58
  text?: string;
58
- /** Which harness runs this chat, and whether the tab strip may change it. */
59
+ /** Which harness runs this chat, and whether the strip is drawn at all. */
59
60
  harness?: string;
60
61
  harnessEditable?: boolean;
61
62
  onSelectHarness?: (harness: string) => void;
@@ -143,6 +144,10 @@ export function ComposerToolbar({
143
144
  // comment above measured.
144
145
  const actionSize = isMobile ? 'w-8 h-8' : 'w-7 h-7';
145
146
  const iconSize = isMobile ? 14 : 12;
147
+ // An agent that never sends `session/request_permission` (measured: jcode,
148
+ // pi-acp behind `pi`/`omo`) has nothing for the three tiers to answer, so the
149
+ // chip is not drawn at all — see `harnessRaisesApprovals`.
150
+ const accessAvailable = showAccess && harnessRaisesApprovals(harness);
146
151
 
147
152
  return (
148
153
  <div
@@ -181,10 +186,17 @@ export function ComposerToolbar({
181
186
  />
182
187
  )}
183
188
 
184
- {(showModel || showThinking) && showAccess && <div className="w-[1px] h-3 bg-ink/10" />}
189
+ {(showModel || showThinking) && accessAvailable && <div className="w-[1px] h-3 bg-ink/10" />}
185
190
 
186
- {showAccess && onSelectAccess && (
187
- <AccessDropdown value={accessMode} onSelect={onSelectAccess} harness={harness} iconOnly={isMobile} />
191
+ {accessAvailable && onSelectAccess && (
192
+ <AccessDropdown
193
+ value={accessMode}
194
+ onSelect={onSelectAccess}
195
+ harness={harness}
196
+ iconOnly={isMobile}
197
+ ladder={modes?.accessLadder ?? null}
198
+ {...(modes?.onSelectSessionMode ? { onSelectLadder: modes.onSelectSessionMode } : {})}
199
+ />
188
200
  )}
189
201
 
190
202
  {/* On a narrow composer the mode toggles live in the row above (the
@@ -258,7 +270,7 @@ export function ComposerToolbar({
258
270
  hashed hue.
259
271
 
260
272
  `-text` is the palette's signal solved to 4.5:1 against paper and
261
- canvas; the raw `text-error`/`text-info` measures 2.73:1 and 1.94:1
273
+ canvas; the raw `text-error-text`/`text-info-text` measures 2.73:1 and 1.94:1
262
274
  on the worst palettes, under the 3:1 graphic floor for a 12px glyph.
263
275
  Monochrome still paints the pair ink — its pass is (0,5,1) and
264
276
  outranks the utility — so the hue survives only in the colour mode,
@@ -28,7 +28,7 @@ export function VoiceNotice({ status, error }: VoiceNoticeProps) {
28
28
 
29
29
  if (error) {
30
30
  return (
31
- <div className="flex items-start gap-1.5 bg-error/5 px-3 py-1.5 text-[11px] text-error">
31
+ <div className="flex items-start gap-1.5 bg-error/5 px-3 py-1.5 text-[11px] text-error-text">
32
32
  <AlertTriangle size={11} className="mt-0.5 shrink-0" />
33
33
  <span className="min-w-0 flex-1 break-words">{error}</span>
34
34
  </div>