@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
@@ -23,7 +23,7 @@ import { useToolView } from '@/client/components/workspace/chat-timeline/tool-re
23
23
  import { toolToggleLabel } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label';
24
24
  import type { ToolRowProps } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/props';
25
25
 
26
- export const MinimalRow = memo(function MinimalRow({ tool, isOpen, onToggle, defaultExpanded = false }: ToolRowProps) {
26
+ export const MinimalRow = memo(function MinimalRow({ tool, isOpen, onToggle, defaultExpanded = false, isMobile = false }: ToolRowProps) {
27
27
  const view = useToolView(tool);
28
28
  const [internalOpen, setInternalOpen] = useState(defaultExpanded);
29
29
  const isExpanded = view.alwaysExpanded || (isOpen ?? internalOpen);
@@ -63,7 +63,7 @@ export const MinimalRow = memo(function MinimalRow({ tool, isOpen, onToggle, def
63
63
  {factsLine}
64
64
  </span>
65
65
  </button>
66
- <ToolRowActions tool={tool} isReminder={view.isReminder} />
66
+ <ToolRowActions tool={tool} isReminder={view.isReminder} isMobile={isMobile} />
67
67
  </div>
68
68
 
69
69
  {isExpanded && view.hasBody && (
@@ -25,7 +25,7 @@ import { useToolView } from '@/client/components/workspace/chat-timeline/tool-re
25
25
  import { toolToggleLabel } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label';
26
26
  import type { ToolRowProps } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/props';
27
27
 
28
- export const TraceRow = memo(function TraceRow({ tool, isOpen, onToggle, defaultExpanded = false }: ToolRowProps) {
28
+ export const TraceRow = memo(function TraceRow({ tool, isOpen, onToggle, defaultExpanded = false, isMobile = false }: ToolRowProps) {
29
29
  const view = useToolView(tool);
30
30
  const [internalOpen, setInternalOpen] = useState(defaultExpanded);
31
31
  const isExpanded = view.alwaysExpanded || (isOpen ?? internalOpen);
@@ -83,7 +83,7 @@ export const TraceRow = memo(function TraceRow({ tool, isOpen, onToggle, default
83
83
  )}
84
84
  </span>
85
85
  </button>
86
- <ToolRowActions tool={tool} isReminder={view.isReminder} />
86
+ <ToolRowActions tool={tool} isReminder={view.isReminder} isMobile={isMobile} />
87
87
  </div>
88
88
 
89
89
  {isExpanded && view.hasBody && (
@@ -117,6 +117,18 @@ const LONG_COMMAND_TOOL: ToolCallData = {
117
117
  output: '',
118
118
  } as ToolCallData;
119
119
 
120
+ /** `eval` names its cell in the TITLE (`input.title`) and has no subject, so
121
+ * the trailing group must still reach the right edge. */
122
+ const EVAL_TOOL: ToolCallData = {
123
+ id: 'tui-eval',
124
+ type: 'eval',
125
+ name: 'eval',
126
+ title: 'Eval',
127
+ status: 'success',
128
+ input: { code: '1 + 1', title: 'Run the suite' },
129
+ output: '2',
130
+ } as ToolCallData;
131
+
120
132
  async function mount(tools: ToolCallData[]): Promise<HTMLElement> {
121
133
  await act(async () => {
122
134
  render(
@@ -176,7 +188,7 @@ describe('the tui style', () => {
176
188
  test('the subject fills up to a flush-right outcome, facts and toggle', async () => {
177
189
  const el = await mount([LONG_COMMAND_TOOL]);
178
190
  const children = Array.from(head(el).children) as HTMLElement[];
179
- const subject = children.find((node) => node.className.includes('text-meta'));
191
+ const subject = children.find((node) => node.className.includes('text-meta-text'));
180
192
  if (!subject) throw new Error('no subject span in the head');
181
193
  // The subject fills the gap so the browser ellipsizes it at the trailing
182
194
  // group's edge; a shrinking box left that group short of the row's edge.
@@ -186,8 +198,24 @@ describe('the tui style', () => {
186
198
  expect(subject.textContent).toBe(LONG_COMMAND);
187
199
  expect(subject.textContent?.endsWith('…')).toBe(false);
188
200
  expect(subject.nextElementSibling?.textContent).toContain('[done]');
189
- // The toggle is pinned to the right edge, beside the facts.
190
- expect(children.at(-1)?.className).toContain('ml-auto');
201
+ // The outcome owns the auto margin, so the trailing group sits flush right.
202
+ const outcome = children.find((node) => node.textContent === '[done]');
203
+ if (!outcome) throw new Error('no outcome span in the head');
204
+ expect(outcome.className).toContain('ml-auto');
205
+ // A second auto margin would split the free space and park the outcome
206
+ // mid-row. The toggle glyph moved OUT of the head (the chip sits left of
207
+ // it), so uniqueness of the auto margin is the invariant, not its position.
208
+ expect(children.filter((node) => node.className.includes('ml-auto'))).toHaveLength(1);
209
+ });
210
+
211
+ test('a subject-less call (eval) still pins its outcome to the right edge', async () => {
212
+ const el = await mount([EVAL_TOOL]);
213
+ const children = Array.from(head(el).children) as HTMLElement[];
214
+ expect(children.some((node) => node.className.includes('text-meta-text'))).toBe(false);
215
+ const outcome = children.find((node) => node.textContent === '[done]');
216
+ if (!outcome) throw new Error('no outcome span in the head');
217
+ expect(outcome.className).toContain('ml-auto');
218
+ expect(children.filter((node) => node.className.includes('ml-auto'))).toHaveLength(1);
191
219
  });
192
220
 
193
221
  test('title and subject are different colours', async () => {
@@ -195,8 +223,8 @@ describe('the tui style', () => {
195
223
  const classes = headClasses(el);
196
224
  // The name is the accent, the subject the meta hue — the two halves of the
197
225
  // head must never render as one undifferentiated string.
198
- const title = classes.find((cls) => cls.includes('text-info'));
199
- const subject = classes.find((cls) => cls.includes('text-meta'));
226
+ const title = classes.find((cls) => cls.includes('text-info-text'));
227
+ const subject = classes.find((cls) => cls.includes('text-meta-text'));
200
228
  expect(title).toBeDefined();
201
229
  expect(subject).toBeDefined();
202
230
  expect(title).not.toBe(subject);
@@ -205,17 +233,17 @@ describe('the tui style', () => {
205
233
  test('the outcome colour follows the call state', async () => {
206
234
  const ok = await mount([OK_TOOL]);
207
235
  expect(head(ok).textContent).toContain('[done]');
208
- expect(headClasses(ok).some((cls) => cls.includes('text-success'))).toBe(true);
236
+ expect(headClasses(ok).some((cls) => cls.includes('text-success-text'))).toBe(true);
209
237
 
210
238
  render(null, container);
211
239
  const failed = await mount([FAILED_TOOL]);
212
240
  expect(head(failed).textContent).toContain('[failed]');
213
- expect(headClasses(failed).some((cls) => cls.includes('text-error'))).toBe(true);
241
+ expect(headClasses(failed).some((cls) => cls.includes('text-error-text'))).toBe(true);
214
242
 
215
243
  render(null, container);
216
244
  const running = await mount([RUNNING_TOOL]);
217
245
  expect(head(running).textContent).toContain('[running]');
218
- expect(headClasses(running).some((cls) => cls.includes('text-info'))).toBe(true);
246
+ expect(headClasses(running).some((cls) => cls.includes('text-info-text'))).toBe(true);
219
247
  });
220
248
 
221
249
  test('the collapsed line states the facts as terminal text', async () => {
@@ -253,7 +281,7 @@ describe('the tui style', () => {
253
281
  const text = row(el).textContent ?? '';
254
282
  expect(text).toContain('+2');
255
283
  expect(text).toContain('−1');
256
- const marks = Array.from(row(el).querySelectorAll('.text-success, .text-error')) as HTMLElement[];
284
+ const marks = Array.from(row(el).querySelectorAll('.text-success-text, .text-error-text')) as HTMLElement[];
257
285
  expect(marks.some((node) => node.textContent === '+2')).toBe(true);
258
286
  expect(marks.some((node) => node.textContent === '−1')).toBe(true);
259
287
  });
@@ -57,10 +57,10 @@ type TuiRunState = 'run' | 'ok' | 'error' | 'warn' | 'muted';
57
57
  * a terminal prints, and a run is the accent.
58
58
  */
59
59
  const STATE_COLOR: Record<TuiRunState, string> = {
60
- run: 'text-info',
61
- ok: 'text-success',
62
- error: 'text-error',
63
- warn: 'text-warning',
60
+ run: 'text-info-text',
61
+ ok: 'text-success-text',
62
+ error: 'text-error-text',
63
+ warn: 'text-warning-text',
64
64
  muted: 'text-ink/35',
65
65
  };
66
66
 
@@ -78,7 +78,7 @@ function FactText({ fact }: { fact: ToolFact }) {
78
78
  return (
79
79
  <>
80
80
  {fact.parts.map((part, index) => (
81
- <span key={`${part.label}-${index}`} className={part.tone === 'ok' ? 'text-success' : 'text-error'}>
81
+ <span key={`${part.label}-${index}`} className={part.tone === 'ok' ? 'text-success-text' : 'text-error-text'}>
82
82
  {part.label}
83
83
  </span>
84
84
  ))}
@@ -87,11 +87,11 @@ function FactText({ fact }: { fact: ToolFact }) {
87
87
  }
88
88
  const toneClass =
89
89
  fact.tone === 'ok'
90
- ? 'text-success'
90
+ ? 'text-success-text'
91
91
  : fact.tone === 'error'
92
- ? 'text-error'
92
+ ? 'text-error-text'
93
93
  : fact.tone === 'warn'
94
- ? 'text-warning'
94
+ ? 'text-warning-text'
95
95
  : 'text-ink/45';
96
96
  return <span className={toneClass}>{fact.label}</span>;
97
97
  }
@@ -115,7 +115,7 @@ function Facts({ facts, max = 4 }: { facts: ToolFact[]; max?: number }) {
115
115
  );
116
116
  }
117
117
 
118
- export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpanded = false }: ToolRowProps) {
118
+ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpanded = false, isMobile = false }: ToolRowProps) {
119
119
  const view = useToolView(tool);
120
120
  const [internalOpen, setInternalOpen] = useState(defaultExpanded);
121
121
  const isExpanded = view.alwaysExpanded || (isOpen ?? internalOpen);
@@ -152,7 +152,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
152
152
  {status.glyph}
153
153
  </span>
154
154
  <span className="sr-only">{status.word}</span>
155
- <span className="shrink-0 font-semibold text-info">{view.header.title}</span>
155
+ <span className="shrink-0 font-semibold text-info-text">{view.header.title}</span>
156
156
  {view.subtitle && (
157
157
  <>
158
158
  <span className="shrink-0 text-ink/25">:</span>
@@ -160,16 +160,21 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
160
160
  flush right; the browser ellipsizes it at that group's edge.
161
161
  The row must not pre-clip the text (a literal `…` sat far
162
162
  from `[done]` and left the group short of the row's edge). */}
163
- <span className="min-w-0 flex-1 truncate font-mono text-[10.5px] text-meta">{view.subtitle}</span>
163
+ <span className="min-w-0 flex-1 truncate font-mono text-[10.5px] text-meta-text">{view.subtitle}</span>
164
164
  </>
165
165
  )}
166
- <span className={`shrink-0 font-semibold ${tone}`}>{`[${status.word.toLowerCase()}]`}</span>
166
+ {/* `ml-auto` on the OUTCOME, not on the toggle: a subject-less call
167
+ (`eval` names its cell in the title, `todo`/`ask` have none) still
168
+ pins `[done]` and the facts to the right edge. With a subject
169
+ present, its `flex-1` already consumes the free space. Two auto
170
+ margins would SPLIT that space, parking the outcome mid-row. */}
171
+ <span className={`ml-auto shrink-0 font-semibold ${tone}`}>{`[${status.word.toLowerCase()}]`}</span>
167
172
  {facts.length > 0 && (
168
- // Facts are the LAST thing on the line and they clip as a unit, so a
169
- // long `exit 1 · 412 B` can never widen the row past the panel —
170
- // measured at 390 the unbounded group ran the section to 459/362.
171
- // The whole group carries the tooltip with every fact, so a clipped
172
- // tail is still recoverable.
173
+ // Facts end the HEAD (the chip and the toggle glyph follow it) and
174
+ // they clip as a unit, so a long `exit 1 · 412 B` can never widen
175
+ // the row past the panel — measured at 390 the unbounded group ran
176
+ // the section to 459/362. The whole group carries the tooltip with
177
+ // every fact, so a clipped tail is still recoverable.
173
178
  <span
174
179
  className="min-w-0 shrink truncate font-mono text-[10px]"
175
180
  title={facts.map((fact) => fact.label).join(' · ')}
@@ -178,13 +183,20 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
178
183
  <Facts facts={facts} max={HEAD_FACT_LIMIT} />
179
184
  </span>
180
185
  )}
181
- {canToggle && (
182
- <span className="ml-auto shrink-0 pl-1 text-ink/40" aria-hidden="true">
183
- {isExpanded ? '▾' : '▸'}
184
- </span>
185
- )}
186
186
  </button>
187
- <ToolRowActions tool={tool} isReminder={view.isReminder} />
187
+ <ToolRowActions tool={tool} isReminder={view.isReminder} isMobile={isMobile} />
188
+ {/* Pointer-only repeat of the head's toggle: the chip must sit LEFT of
189
+ the glyph, and a button cannot nest inside the row's own button. The
190
+ head still owns `aria-expanded`, so this span is hidden from AT. */}
191
+ {canToggle && (
192
+ <span
193
+ onClick={handleToggle}
194
+ aria-hidden="true"
195
+ className="shrink-0 cursor-pointer text-ink/40"
196
+ >
197
+ {isExpanded ? '▾' : '▸'}
198
+ </span>
199
+ )}
188
200
  </div>
189
201
 
190
202
  {isExpanded && view.hasBody && (
@@ -90,13 +90,13 @@ const ABORTED_TOOL: ToolCallData = {
90
90
  output: '',
91
91
  } as ToolCallData;
92
92
 
93
- async function mount(tools: ToolCallData[], style: string): Promise<HTMLElement> {
93
+ async function mount(tools: ToolCallData[], style: string, isMobile = false): Promise<HTMLElement> {
94
94
  primeKabmoSettings({ kabmo_settings: { toolRenderStyle: style } });
95
95
  await act(async () => {
96
96
  render(
97
97
  h(SessionStateProvider, {
98
98
  sessionId: `parity-${style}`,
99
- children: h(ToolCallingSection, { tools }),
99
+ children: h(ToolCallingSection, { tools, isMobile }),
100
100
  }),
101
101
  container,
102
102
  );
@@ -127,6 +127,54 @@ describe.each(['card', 'compact', 'trace', 'minimal', 'tui'])('style parity: %s'
127
127
  });
128
128
  });
129
129
 
130
+ describe('the full-output chip', () => {
131
+ test('sits left of the row toggle glyph in every style that draws one', async () => {
132
+ for (const [style, glyphOf] of [
133
+ ['card', (el: HTMLElement) => el.querySelector('.lucide-chevron-down')],
134
+ ['compact', (el: HTMLElement) => el.querySelector('.lucide-chevron-down')],
135
+ [
136
+ 'tui',
137
+ (el: HTMLElement) =>
138
+ Array.from(el.querySelectorAll('span')).find((node) => node.textContent === '▸'),
139
+ ],
140
+ ] as const) {
141
+ // Unmount first: preact reuses a same-type instance, so the mode hook
142
+ // would keep the style it read on the previous loop's first render.
143
+ render(null, container);
144
+ const el = await mount([ARTIFACT_TOOL], style);
145
+ expect(el.querySelector('[data-tool-section]')?.getAttribute('data-tool-style')).toBe(style);
146
+ const chip = el.querySelector('[aria-label="Read the full output"]') as HTMLElement;
147
+ const glyph = glyphOf(el) as HTMLElement | null | undefined;
148
+ expect(chip).not.toBeNull();
149
+ expect(glyph).toBeTruthy();
150
+ // Document order is the visual order on one flex line.
151
+ const nodes = Array.from(el.querySelectorAll('*'));
152
+ expect(nodes.indexOf(chip)).toBeLessThan(nodes.indexOf(glyph as Element));
153
+ }
154
+ });
155
+ });
156
+
157
+ describe('the full-output chip on mobile', () => {
158
+ test('drops the word in every style and keeps its accessible name', async () => {
159
+ for (const style of ['card', 'compact', 'trace', 'minimal', 'tui']) {
160
+ // Unmount first so the mode hook reads the style on a fresh render.
161
+ render(null, container);
162
+ const mobile = await mount([ARTIFACT_TOOL], style, true);
163
+ const chip = mobile.querySelector('[aria-label="Read the full output"]') as HTMLButtonElement;
164
+ expect(chip).not.toBeNull();
165
+ expect(chip.textContent?.trim()).toBe('');
166
+ expect(chip.querySelector('svg')).not.toBeNull();
167
+ expect(chip.getAttribute('title')).toContain('Read the full output');
168
+
169
+ render(null, container);
170
+ const desktop = await mount([ARTIFACT_TOOL], style);
171
+ expect(
172
+ desktop.querySelector('[aria-label="Read the full output"]')?.textContent,
173
+ ).toContain('Full output');
174
+ }
175
+ });
176
+ });
177
+
130
178
  describe('the trace node tone', () => {
131
179
  test('an aborted call takes the warning tone, not the muted one', async () => {
132
180
  const el = await mount([ABORTED_TOOL], 'trace');
@@ -19,4 +19,6 @@ export interface ToolRowProps {
19
19
  isOpen?: boolean;
20
20
  onToggle?: (toolId: string) => void;
21
21
  defaultExpanded?: boolean;
22
+ /** Phone layout: the row's out-of-body actions drop their text labels. */
23
+ isMobile?: boolean;
22
24
  }
@@ -58,8 +58,8 @@ export function RawJsonViewer({ data }: RawJsonViewerProps) {
58
58
  >
59
59
  {copied ? (
60
60
  <>
61
- <Check size={11} className="text-success" />
62
- <span className="text-success font-sans font-medium">Copied</span>
61
+ <Check size={11} className="text-success-text" />
62
+ <span className="text-success-text font-sans font-medium">Copied</span>
63
63
  </>
64
64
  ) : (
65
65
  <>
@@ -32,8 +32,8 @@ export function ConflictBanner({ markers, isBusy, error, onResolve, onDismissErr
32
32
  return (
33
33
  <div className="flex-shrink-0 border-b border-warning/30 bg-warning/5">
34
34
  <div className="flex items-center gap-2 px-3 py-1.5 flex-wrap">
35
- <AlertTriangle size={13} className="text-warning flex-shrink-0" />
36
- <span className="text-[11px] font-medium text-warning">Conflicted file</span>
35
+ <AlertTriangle size={13} className="text-warning-text flex-shrink-0" />
36
+ <span className="text-[11px] font-medium text-warning-text">Conflicted file</span>
37
37
 
38
38
  <div className="flex items-center gap-1.5 ml-auto flex-wrap">
39
39
  <button
@@ -67,7 +67,7 @@ export function ConflictBanner({ markers, isBusy, error, onResolve, onDismissErr
67
67
  </div>
68
68
 
69
69
  {error && (
70
- <div className="flex items-center gap-2 px-3 py-1 border-t border-error/25 bg-error/10 text-[10px] text-error">
70
+ <div className="flex items-center gap-2 px-3 py-1 border-t border-error/25 bg-error/10 text-[10px] text-error-text">
71
71
  <span className="min-w-0 flex-1 truncate" title={error}>{error}</span>
72
72
  <button
73
73
  type="button"
@@ -119,8 +119,8 @@ export function DiffToolbar({
119
119
  actions: [],
120
120
  children: (
121
121
  <div className="flex items-center space-x-1.5 text-[11px] font-mono pr-1.5 mr-0.5 @[440px]:mr-1 border-r border-ink/10">
122
- {additions > 0 && <span className="text-success font-semibold">+{additions}</span>}
123
- {deletions > 0 && <span className="text-error font-semibold">-{deletions}</span>}
122
+ {additions > 0 && <span className="text-success-text font-semibold">+{additions}</span>}
123
+ {deletions > 0 && <span className="text-error-text font-semibold">-{deletions}</span>}
124
124
  </div>
125
125
  ),
126
126
  });
@@ -249,7 +249,7 @@ export function DiffToolbar({
249
249
  title={copyLabel}
250
250
  aria-label={copyLabel}
251
251
  >
252
- {isCopied ? <Check size={13} className="text-success" /> : <Copy size={13} />}
252
+ {isCopied ? <Check size={13} className="text-success-text" /> : <Copy size={13} />}
253
253
  </button>
254
254
  ),
255
255
  });
@@ -212,7 +212,7 @@ export function DiffPanel({
212
212
  )}
213
213
 
214
214
  {actionError && !conflicted && (
215
- <div className="flex items-center gap-2 border-b border-error/25 bg-error/10 px-3 py-1.5 text-[11px] text-error flex-shrink-0">
215
+ <div className="flex items-center gap-2 border-b border-error/25 bg-error/10 px-3 py-1.5 text-[11px] text-error-text flex-shrink-0">
216
216
  <AlertCircle size={13} className="flex-shrink-0" />
217
217
  <span className="min-w-0 flex-1 truncate" title={actionError}>{actionError}</span>
218
218
  <button
@@ -239,8 +239,8 @@ export function DiffPanel({
239
239
  </div>
240
240
  ) : errorMessage ? (
241
241
  <div className="flex-1 flex flex-col items-center justify-center p-6 text-center space-y-2">
242
- <AlertCircle size={20} className="text-error" />
243
- <p className="text-xs text-error font-medium">{errorMessage}</p>
242
+ <AlertCircle size={20} className="text-error-text" />
243
+ <p className="text-xs text-error-text font-medium">{errorMessage}</p>
244
244
  <button
245
245
  onClick={() => void fetchDiff()}
246
246
  className="px-3 py-1 text-xs bg-ink/10 hover:bg-ink/15 text-ink rounded font-sans transition-colors cursor-pointer"
@@ -50,7 +50,7 @@ export function gitActionClusters({
50
50
  <button
51
51
  type="button"
52
52
  onClick={onDiscard}
53
- className={`${ACTION_CLASS} text-ink/50 hover:text-error hover:bg-error/10`}
53
+ className={`${ACTION_CLASS} text-ink/50 hover:text-error-text hover:bg-error/10`}
54
54
  title="Discard changes in this file"
55
55
  aria-label="Discard changes in this file"
56
56
  disabled={locked}
@@ -46,7 +46,7 @@ export function ConflictStrip({ diskMtimeMs, fileName, onReload, onKeepMine }: C
46
46
  role="alert"
47
47
  data-conflict-strip=""
48
48
  >
49
- <AlertTriangle size={13} className="text-warning flex-shrink-0 mt-0.5" />
49
+ <AlertTriangle size={13} className="text-warning-text flex-shrink-0 mt-0.5" />
50
50
  <div className="min-w-0 flex-1">
51
51
  <div className="font-medium">
52
52
  <span className="font-mono">{fileName}</span> changed on disk
@@ -66,7 +66,7 @@ export function ConflictStrip({ diskMtimeMs, fileName, onReload, onKeepMine }: C
66
66
  <button
67
67
  type="button"
68
68
  onClick={onKeepMine}
69
- className="px-2 py-1 rounded border border-warning/50 text-warning hover:bg-warning/10 transition-colors cursor-pointer"
69
+ className="px-2 py-1 rounded border border-warning/50 text-warning-text hover:bg-warning/10 transition-colors cursor-pointer"
70
70
  title="Write my buffer over the file on disk"
71
71
  >
72
72
  Keep mine
@@ -29,7 +29,7 @@ export function ExternalChangeStrip({ fileName, onReload, onKeepMine }: External
29
29
  role="status"
30
30
  data-external-change-strip=""
31
31
  >
32
- <RefreshCw size={13} className="text-info flex-shrink-0 mt-0.5" />
32
+ <RefreshCw size={13} className="text-info-text flex-shrink-0 mt-0.5" />
33
33
  <div className="min-w-0 flex-1">
34
34
  <div className="font-medium">
35
35
  <span className="font-mono">{fileName}</span> changed on disk.
@@ -50,7 +50,7 @@ export function ExternalChangeStrip({ fileName, onReload, onKeepMine }: External
50
50
  <button
51
51
  type="button"
52
52
  onClick={onKeepMine}
53
- className="px-2 py-1 rounded border border-info/50 text-info hover:bg-info/10 transition-colors cursor-pointer"
53
+ className="px-2 py-1 rounded border border-info/50 text-info-text hover:bg-info/10 transition-colors cursor-pointer"
54
54
  title="Keep my buffer; the next save writes it"
55
55
  >
56
56
  Keep mine
@@ -174,11 +174,11 @@ export function FilePane({
174
174
  a crowded row — the banner states the same fact where the user is
175
175
  looking, and names the one thing that is still possible. */}
176
176
  {missing && (
177
- <div className="flex items-start gap-2 px-3 py-2 border-b border-error/30 bg-error/10 text-error">
177
+ <div className="flex items-start gap-2 px-3 py-2 border-b border-error/30 bg-error/10 text-error-text">
178
178
  <AlertTriangle size={14} className="shrink-0 mt-0.5" />
179
179
  <div className="min-w-0">
180
180
  <div className="text-[11.5px] font-sans">This file was deleted from disk.</div>
181
- <div className="text-[11px] font-sans text-error/80">
181
+ <div className="text-[11px] font-sans text-error-text">
182
182
  The buffer is still here. Saving recreates the file — autosave is off until then.
183
183
  </div>
184
184
  </div>
@@ -203,11 +203,11 @@ export function FilePane({
203
203
  Save button is disabled, and a user who is not told why would read it
204
204
  as a broken file. */}
205
205
  {editor.handleMissing && (
206
- <div className="flex items-start gap-2 px-3 py-2 border-b border-warning/30 bg-warning/10 text-warning">
206
+ <div className="flex items-start gap-2 px-3 py-2 border-b border-warning/30 bg-warning/10 text-warning-text">
207
207
  <AlertTriangle size={14} className="shrink-0 mt-0.5" />
208
208
  <div className="min-w-0">
209
209
  <div className="text-[11.5px] font-sans">This file was opened by the system, not from a workspace.</div>
210
- <div className="text-[11px] font-sans text-warning/80">
210
+ <div className="text-[11px] font-sans text-warning-text">
211
211
  Its write permission ended with the last page load. Reopen the file from the OS to edit it again.
212
212
  </div>
213
213
  </div>
@@ -275,8 +275,8 @@ export function FilePane({
275
275
  // empty (or substituted) buffer, and the next save wrote it over the
276
276
  // real file.
277
277
  <div className="flex-1 flex flex-col items-center justify-center gap-2 px-6 text-center">
278
- <AlertTriangle size={20} className="text-error" />
279
- <span className="text-xs text-error font-sans">Could not read {activeFile.name}</span>
278
+ <AlertTriangle size={20} className="text-error-text" />
279
+ <span className="text-xs text-error-text font-sans">Could not read {activeFile.name}</span>
280
280
  <span className="text-[11px] text-ink/50 font-mono break-all">{editor.loadError}</span>
281
281
  </div>
282
282
  ) : pluginFileView && !editor.isImage ? (
@@ -140,7 +140,7 @@ export function FindWidget({ find }: FindWidgetProps) {
140
140
  placeholder="Find"
141
141
  aria-label="Find"
142
142
  className={`flex-1 min-w-0 bg-canvas border rounded px-2 py-1 font-mono text-xs focus:outline-none ${
143
- find.invalid ? 'border-error text-error' : 'border-ink/20 focus:border-ink text-ink'
143
+ find.invalid ? 'border-error text-error-text' : 'border-ink/20 focus:border-ink text-ink'
144
144
  }`}
145
145
  />
146
146
 
@@ -158,7 +158,7 @@ export function FindWidget({ find }: FindWidgetProps) {
158
158
  </ToggleButton>
159
159
 
160
160
  <span
161
- className={`font-mono text-[10px] whitespace-nowrap min-w-[52px] text-right ${find.invalid ? 'text-error' : 'text-ink/50'}`}
161
+ className={`font-mono text-[10px] whitespace-nowrap min-w-[52px] text-right ${find.invalid ? 'text-error-text' : 'text-ink/50'}`}
162
162
  aria-live="polite"
163
163
  >
164
164
  {status}
@@ -115,7 +115,7 @@ export function GoToLineModal({ lineCount, onGo, onClose }: GoToLineModalProps)
115
115
  <div className="text-[10px] text-ink/50 font-mono">line {resolved} (the last line)</div>
116
116
  ) : null}
117
117
  {value && resolved === null ? (
118
- <div className="text-[10px] text-error font-mono">Enter a line number</div>
118
+ <div className="text-[10px] text-error-text font-mono">Enter a line number</div>
119
119
  ) : null}
120
120
  </div>
121
121
  </Modal>
@@ -158,14 +158,14 @@ export function SaveAsModal({
158
158
  aria-label="File name"
159
159
  aria-invalid={!valid}
160
160
  className={`w-full bg-paper border rounded px-2 py-1 font-mono text-ink outline-none ${
161
- valid ? 'border-ink/20 focus:border-ink/40' : 'border-error text-error'
161
+ valid ? 'border-ink/20 focus:border-ink/40' : 'border-error text-error-text'
162
162
  }`}
163
163
  />
164
164
  </label>
165
165
  {!valid ? (
166
- <div className="text-[10px] text-error font-mono">Enter a file name without a path separator</div>
166
+ <div className="text-[10px] text-error-text font-mono">Enter a file name without a path separator</div>
167
167
  ) : null}
168
- {refusal ? <div className="text-[10px] text-error font-mono">{refusal}</div> : null}
168
+ {refusal ? <div className="text-[10px] text-error-text font-mono">{refusal}</div> : null}
169
169
  <div className="text-[10px] text-ink/40">
170
170
  The original file stays where it is, and its tab stays open.
171
171
  </div>
@@ -44,12 +44,12 @@ export function SaveDeletedFileModal({ fileName, filePath, onClose, onConfirm }:
44
44
  onClick={(e) => e.stopPropagation()}
45
45
  >
46
46
  <div className="flex items-center gap-3 px-4 py-3 border-b border-ink/10">
47
- <FileWarning size={16} className="text-error shrink-0" />
47
+ <FileWarning size={16} className="text-error-text shrink-0" />
48
48
  <h2 className="text-[13px] font-semibold text-ink">This file was deleted</h2>
49
49
  </div>
50
50
  <div className="px-4 py-4 space-y-3">
51
51
  <div className="rounded-lg border border-ink/10 bg-canvas/50 px-3 py-2">
52
- <div className="text-[12px] font-mono text-error line-through truncate">{fileName}</div>
52
+ <div className="text-[12px] font-mono text-error-text line-through truncate">{fileName}</div>
53
53
  <div className="text-[11px] font-mono text-ink/50 break-all mt-0.5">{filePath}</div>
54
54
  </div>
55
55
  <p className="text-[11.5px] leading-relaxed text-ink/60">
@@ -112,7 +112,7 @@ export function EditorStatusBar({
112
112
  // painted by the surface (`conflict-markers.ts`), but a reader who has
113
113
  // scrolled past them needs to know how many blocks are left.
114
114
  <span
115
- className="text-error font-semibold tabular-nums"
115
+ className="text-error-text font-semibold tabular-nums"
116
116
  title={`${conflicts} unresolved conflict${conflicts === 1 ? '' : 's'} — markers are highlighted in the file`}
117
117
  >
118
118
  ⚠ {conflicts} conflict{conflicts === 1 ? '' : 's'}
@@ -95,7 +95,7 @@ describe('EditorTabs missing-file decoration', () => {
95
95
 
96
96
  const gone = nameNode('gone.ts');
97
97
  expect(gone).not.toBeNull();
98
- expect(gone!.className).toContain('text-error');
98
+ expect(gone!.className).toContain('text-error-text');
99
99
  expect(gone!.className).toContain('line-through');
100
100
  });
101
101
 
@@ -104,7 +104,7 @@ describe('EditorTabs missing-file decoration', () => {
104
104
 
105
105
  const keep = nameNode('keep.ts');
106
106
  expect(keep).not.toBeNull();
107
- expect(keep!.className).not.toContain('text-error');
107
+ expect(keep!.className).not.toContain('text-error-text');
108
108
  expect(keep!.className).not.toContain('line-through');
109
109
  });
110
110
 
@@ -121,7 +121,7 @@ describe('EditorTabs missing-file decoration', () => {
121
121
 
122
122
  for (const name of ['keep.ts', 'gone.ts']) {
123
123
  const node = nameNode(name);
124
- expect(node!.className).not.toContain('text-error');
124
+ expect(node!.className).not.toContain('text-error-text');
125
125
  expect(node!.className).not.toContain('line-through');
126
126
  }
127
127
  });
@@ -139,14 +139,14 @@ export function EditorTabs({
139
139
  title={isMissing ? `${file.path} — file no longer exists` : file.path}
140
140
  >
141
141
  {isDiff ? (
142
- <GitCompare size={14} className={isActive ? 'text-info flex-shrink-0' : 'text-info/70 flex-shrink-0'} />
142
+ <GitCompare size={14} className={isActive ? 'text-info-text flex-shrink-0' : 'text-info-text flex-shrink-0'} />
143
143
  ) : (
144
- <FileIcon name={file.name} size={14} className={`flex-shrink-0${isActive || isMissing ? '' : ' opacity-60'}${isMissing ? ' text-error' : ''}`} />
144
+ <FileIcon name={file.name} size={14} className={`flex-shrink-0${isActive || isMissing ? '' : ' opacity-60'}${isMissing ? ' text-error-text' : ''}`} />
145
145
  )}
146
146
  {/* A deleted file keeps its tab (the buffer is still on screen),
147
147
  but the tab must SAY so: the name goes red and struck through,
148
148
  the one convention that reads as "this is gone" at a glance. */}
149
- <span className={`text-xs font-mono truncate flex-1${isMissing ? ' text-error line-through' : ''}`}>{file.name}</span>
149
+ <span className={`text-xs font-mono truncate flex-1${isMissing ? ' text-error-text line-through' : ''}`}>{file.name}</span>
150
150
  {statusInfo && (
151
151
  <span className={`px-1 text-[10px] font-mono font-bold rounded ${statusInfo.badgeBgClass}`}>
152
152
  {statusInfo.charStatus}
@@ -274,11 +274,11 @@ export function EditorTabs({
274
274
  className="flex items-center space-x-2 px-3 py-1.5 hover:bg-ink/5 cursor-pointer group"
275
275
  >
276
276
  {file.isDiff ? (
277
- <GitCompare size={14} className="text-info/80" />
277
+ <GitCompare size={14} className="text-info-text" />
278
278
  ) : (
279
- <FileIcon name={file.name} size={14} className={isMissing ? 'text-error' : 'opacity-60'} />
279
+ <FileIcon name={file.name} size={14} className={isMissing ? 'text-error-text' : 'opacity-60'} />
280
280
  )}
281
- <span className={`text-xs font-mono truncate flex-1 ${isMissing ? 'text-error line-through' : 'text-ink/80'}`}>{file.name}</span>
281
+ <span className={`text-xs font-mono truncate flex-1 ${isMissing ? 'text-error-text line-through' : 'text-ink/80'}`}>{file.name}</span>
282
282
  <TabCloseButton
283
283
  dirty={dirtyIds.has(file.id)}
284
284
  active={false}