@kabmo-labs/kabmo 0.61.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (506) hide show
  1. package/README.md +53 -49
  2. package/dist/client/index.html +1 -1
  3. package/dist/client/index.js +1157 -825
  4. package/dist/client/static/js/{Body-ab8wswhm.js → Body-z6kstvk6.js} +3 -3
  5. package/dist/client/static/js/{CsvGrid-czssywvz.js → CsvGrid-f73c0s4e.js} +2 -2
  6. package/dist/client/static/js/{DocxView-ke0dwdmt.js → DocxView-a1pb7nsb.js} +3 -3
  7. package/dist/client/static/js/{DrawioView-a1whhy84.js → DrawioView-r61gcg24.js} +2 -2
  8. package/dist/client/static/js/{HtmlPreview-dr32dwjy.js → HtmlPreview-vt7j0b05.js} +1 -1
  9. package/dist/client/static/js/ImageView-4nhr5dtm.js +1 -0
  10. package/dist/client/static/js/LayoutWrapper-vwhy0vhj.js +2 -0
  11. package/dist/client/static/js/MergeDiffView-f4h9ss71.js +1 -0
  12. package/dist/client/static/js/Modal-cadmjkak.js +60 -0
  13. package/dist/client/static/js/{PdfView-2kdn91f9.js → PdfView-mppt2gkd.js} +1 -1
  14. package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
  15. package/dist/client/static/js/{SheetView-ettr9pdw.js → SheetView-5s9zfx9g.js} +9 -9
  16. package/dist/client/static/js/{SvgPreview-hzcejjry.js → SvgPreview-ff78xn3e.js} +1 -1
  17. package/dist/client/static/js/{abnfDiagram-O67JEVCF-kdmv4y72.js → abnfDiagram-O67JEVCF-p29sh3w2.js} +1 -1
  18. package/dist/client/static/js/architecture-7GRP2DOG-83w3kytq.js +1 -0
  19. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-qyrwaq0x.js → architectureDiagram-NJMV4G6O-nbpdyea3.js} +3 -3
  20. package/dist/client/static/js/{astro-yphdvdty.js → astro-qtfmc8x7.js} +1 -1
  21. package/dist/client/static/js/bash-wcy12qjx.js +1 -0
  22. package/dist/client/static/js/{blockDiagram-BEXU5L5S-tszxy2g7.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
  23. package/dist/client/static/js/c-vvantfth.js +1 -0
  24. package/dist/client/static/js/{c4Diagram-YGBWAQC7-0ye36hhv.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
  25. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-szgk1shv.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
  26. package/dist/client/static/js/{cose-bilkent-JH36ORCC-0s9s4mmv.js → cose-bilkent-JH36ORCC-k54mmydp.js} +1 -1
  27. package/dist/client/static/js/cpp-5x63r6g0.js +1 -0
  28. package/dist/client/static/js/css-j2j6f03w.js +1 -0
  29. package/dist/client/static/js/css-qk59j6rj.js +1 -0
  30. package/dist/client/static/js/cynefin-OW5HDTMX-80z02zrj.js +1 -0
  31. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-664g28ze.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
  32. package/dist/client/static/js/{dagre-6A5THRUB-ga4rp1jx.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
  33. package/dist/client/static/js/{diagram-22UHCM2B-aagj46ty.js → diagram-22UHCM2B-197hemfa.js} +11 -11
  34. package/dist/client/static/js/{diagram-3UASUU5V-20qk6whk.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
  35. package/dist/client/static/js/{diagram-ATOU4E4O-1vg1tfca.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
  36. package/dist/client/static/js/{diagram-CDSNMT55-90d6jrqs.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
  37. package/dist/client/static/js/{diagram-MLGK6HIB-8je4z8m1.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
  38. package/dist/client/static/js/{diagram-MPIPVDR6-0kzpexsj.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
  39. package/dist/client/static/js/{dockerfile-5nrbr0ef.js → dockerfile-4nked309.js} +1 -1
  40. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-47yg36zx.js → ebnfDiagram-ZINNZB2B-hvnkevqy.js} +1 -1
  41. package/dist/client/static/js/{elixir-3nwnd9yw.js → elixir-3jvh6v4k.js} +1 -1
  42. package/dist/client/static/js/{elk-276RUBZZ-5hqp6r2d.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
  43. package/dist/client/static/js/{erDiagram-OPXOYQCR-bt9te7r0.js → erDiagram-OPXOYQCR-ww453xcy.js} +5 -5
  44. package/dist/client/static/js/{erlang-p5c4n3t0.js → erlang-4fz73a1q.js} +1 -1
  45. package/dist/client/static/js/eventmodeling-NTZA5JFV-y9pq2709.js +1 -0
  46. package/dist/client/static/js/flowDiagram-KWPJA3E3-e6v7513q.js +1 -0
  47. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-kzc13swm.js → ganttDiagram-FUAMR5RP-abc5wy70.js} +3 -3
  48. package/dist/client/static/js/gitGraph-4MIJSDKK-fzaf9azs.js +1 -0
  49. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bjf8aa3j.js → gitGraphDiagram-X574FWY7-4acqzj2h.js} +7 -7
  50. package/dist/client/static/js/graphql-hpkvdvk7.js +1 -0
  51. package/dist/client/static/js/html-x12gb1wk.js +1 -0
  52. package/dist/client/static/js/{index-v88m5sva.js → index-0g82ph6h.js} +2 -2
  53. package/dist/client/static/js/{index-1fmjhm2d.js → index-0w1jzang.js} +5 -5
  54. package/dist/client/static/js/{index-kj70d2q9.js → index-1svt0cdw.js} +2 -2
  55. package/dist/client/static/js/{index-m24sebb0.js → index-1tb4py5v.js} +2 -2
  56. package/dist/client/static/js/index-2gt9krtj.js +4 -0
  57. package/dist/client/static/js/index-2x9m7s1a.js +1 -0
  58. package/dist/client/static/js/index-3fvqmz3m.js +4 -0
  59. package/dist/client/static/js/{index-k9yf2txw.js → index-42wvbkm5.js} +2 -2
  60. package/dist/client/static/js/index-477vtt51.js +2 -0
  61. package/dist/client/static/js/{index-ca6tmamh.js → index-4px56qaz.js} +2 -2
  62. package/dist/client/static/js/{index-excgtjhx.js → index-5anvw7xg.js} +36 -36
  63. package/dist/client/static/js/index-5nb9k2ph.js +1 -0
  64. package/dist/client/static/js/{index-97sw4d9n.js → index-615je3km.js} +2 -2
  65. package/dist/client/static/js/{index-jz4012t5.js → index-66qxrh5n.js} +1 -1
  66. package/dist/client/static/js/{index-a145x0w2.js → index-7kct1sz1.js} +2 -2
  67. package/dist/client/static/js/{index-hwv7bfxc.js → index-8e0d8y30.js} +2 -2
  68. package/dist/client/static/js/{index-s4j2ghmx.js → index-90bq56xw.js} +2 -2
  69. package/dist/client/static/js/{index-wsy6y5em.js → index-b1gzh60t.js} +11 -11
  70. package/dist/client/static/js/{index-10vzyga1.js → index-bypkmjrz.js} +2 -2
  71. package/dist/client/static/js/{index-n8r7r86r.js → index-c1vd63yd.js} +2 -2
  72. package/dist/client/static/js/index-c9f0hejv.js +3 -0
  73. package/dist/client/static/js/{index-2dmew334.js → index-cgqj15g0.js} +2 -2
  74. package/dist/client/static/js/{index-mtav0rpf.js → index-cts5re1t.js} +2 -2
  75. package/dist/client/static/js/index-dxc14kmm.js +1 -0
  76. package/dist/client/static/js/{index-krdz5vby.js → index-dxyjxhm1.js} +2 -2
  77. package/dist/client/static/js/{index-zr3965k9.js → index-edpyqz9f.js} +1 -1
  78. package/dist/client/static/js/{index-h7agc069.js → index-eesepb70.js} +2 -2
  79. package/dist/client/static/js/{index-r38e0rya.js → index-evh437bz.js} +2 -2
  80. package/dist/client/static/js/index-ey6v4t5b.js +1 -0
  81. package/dist/client/static/js/{index-025s3fp8.js → index-fsd7n336.js} +2 -2
  82. package/dist/client/static/js/{index-yfcy4cf6.js → index-h7a7fqag.js} +2 -2
  83. package/dist/client/static/js/{index-11qn05g9.js → index-hffgwnvz.js} +2 -2
  84. package/dist/client/static/js/index-j734ev6q.js +482 -0
  85. package/dist/client/static/js/{index-9g2nzgpx.js → index-jcbp1d9d.js} +6 -6
  86. package/dist/client/static/js/index-jg5h18sm.js +2 -0
  87. package/dist/client/static/js/{index-bq9f0mxp.js → index-jtdve6xw.js} +7 -7
  88. package/dist/client/static/js/{index-kyr612aa.js → index-k0bqrb1y.js} +1 -1
  89. package/dist/client/static/js/{index-bdtftrym.js → index-kegevd10.js} +2 -2
  90. package/dist/client/static/js/{index-fr6wsqk8.js → index-kqcfxkch.js} +2 -2
  91. package/dist/client/static/js/{index-sr14vwn5.js → index-kv1xnem9.js} +2 -2
  92. package/dist/client/static/js/{index-xy0m8te9.js → index-m54ctmxr.js} +1 -1
  93. package/dist/client/static/js/index-mgzbypt5.js +314 -0
  94. package/dist/client/static/js/{index-85jfn1fz.js → index-mh52531j.js} +2 -2
  95. package/dist/client/static/js/{index-776n5n29.js → index-mhz5ywa4.js} +5 -5
  96. package/dist/client/static/js/{index-3j2he86h.js → index-nnwdbg3t.js} +2 -2
  97. package/dist/client/static/js/{index-3x7cbxwq.js → index-nxd6z7f9.js} +2 -2
  98. package/dist/client/static/js/{index-dabnbvbc.js → index-pjrbt77c.js} +2 -2
  99. package/dist/client/static/js/index-r7h4pm42.js +2 -0
  100. package/dist/client/static/js/index-ratrdgc9.js +2 -0
  101. package/dist/client/static/js/{index-475dc6h9.js → index-rhmvh9w5.js} +2 -2
  102. package/dist/client/static/js/{index-twwsn91p.js → index-sqzjwy9h.js} +2 -2
  103. package/dist/client/static/js/{index-z5s9tmj8.js → index-tckzkw0f.js} +2 -2
  104. package/dist/client/static/js/index-tza9h3q6.css +1 -0
  105. package/dist/client/static/js/{index-qccydkze.js → index-vhjfr093.js} +2 -2
  106. package/dist/client/static/js/{index-653x8zdq.js → index-w0j96eyy.js} +8 -8
  107. package/dist/client/static/js/{index-24a40rw8.js → index-ws04kxy9.js} +1 -1
  108. package/dist/client/static/js/{index-a3bpmw2r.js → index-x1yqmzpr.js} +2 -2
  109. package/dist/client/static/js/{index-fb2fjndj.js → index-x2f7wykb.js} +6 -6
  110. package/dist/client/static/js/index-y8405hdg.js +10 -0
  111. package/dist/client/static/js/{index-sx83ans2.js → index-yxk7dgnb.js} +2 -2
  112. package/dist/client/static/js/{index-bkn6jtn1.js → index-zavecxak.js} +2 -2
  113. package/dist/client/static/js/{index-vn59zz0k.js → index-zg7q3kcb.js} +2 -2
  114. package/dist/client/static/js/{index-enm77k5z.js → index-zhn9vv3z.js} +2 -2
  115. package/dist/client/static/js/{index-vgcw01yk.js → index-zy963qbh.js} +1 -1
  116. package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
  117. package/dist/client/static/js/{infoDiagram-VRGFBTTK-jy5zvvj8.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
  118. package/dist/client/static/js/ini-522adp5a.js +1 -0
  119. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-pfky1nnf.js → ishikawaDiagram-OU5B5YK6-38arfrx5.js} +2 -2
  120. package/dist/client/static/js/java-z0rgs7v6.js +1 -0
  121. package/dist/client/static/js/javascript-fv87f565.js +1 -0
  122. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-mvaf7rfh.js → journeyDiagram-ZHPQQLJL-kcwzjgtz.js} +4 -4
  123. package/dist/client/static/js/json-1czq1ped.js +1 -0
  124. package/dist/client/static/js/jsx-1fch2jyr.js +1 -0
  125. package/dist/client/static/js/{julia-rpd1y9vh.js → julia-pzzxbptm.js} +1 -1
  126. package/dist/client/static/js/{kanban-definition-PNTS6WVX-hw2xwe6e.js → kanban-definition-PNTS6WVX-nmegwy9w.js} +15 -15
  127. package/dist/client/static/js/lua-nn8bpjev.js +1 -0
  128. package/dist/client/static/js/markdown-38tqrgkn.js +1 -0
  129. package/dist/client/static/js/{mermaid.core-hsw87hmq.js → mermaid.core-3aae27b9.js} +7 -7
  130. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-wfe4d846.js → mindmap-definition-NLK3R4M7-zsaq4e65.js} +12 -12
  131. package/dist/client/static/js/one-dark-pro-trnff03z.js +1 -0
  132. package/dist/client/static/js/one-light-ck31ptqs.js +1 -0
  133. package/dist/client/static/js/packet-AYTQ26CC-rwac7scq.js +1 -0
  134. package/dist/client/static/js/{pegDiagram-GJSIUBJH-cvnmxgst.js → pegDiagram-GJSIUBJH-2b6whj1p.js} +1 -1
  135. package/dist/client/static/js/{perl-kmtz9dnv.js → perl-zdkbbjd2.js} +1 -1
  136. package/dist/client/static/js/{php-bttrsbxy.js → php-ktaxff6g.js} +1 -1
  137. package/dist/client/static/js/pie-WAS4IAKB-gjz20apz.js +1 -0
  138. package/dist/client/static/js/{pieDiagram-5QR66LMP-0n3gz7sv.js → pieDiagram-5QR66LMP-y09ar7vz.js} +3 -3
  139. package/dist/client/static/js/properties-kncqeqhn.js +1 -0
  140. package/dist/client/static/js/python-gx8ggmyh.js +1 -0
  141. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9qqh6xvv.js → quadrantDiagram-O4NWA36T-mapfzs06.js} +3 -3
  142. package/dist/client/static/js/r-x8rftkm3.js +1 -0
  143. package/dist/client/static/js/radar-RG4KPBEZ-akwdknab.js +1 -0
  144. package/dist/client/static/js/railroad-74A4TZTK-m5v4rfhx.js +1 -0
  145. package/dist/client/static/js/railroad-abnf-HS5TGJTU-k2gmqcjb.js +1 -0
  146. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zdsfjf4.js +1 -0
  147. package/dist/client/static/js/railroad-peg-WCYAUIDC-e98evqb6.js +1 -0
  148. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-5f3x3762.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
  149. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-a68bv6kh.js → requirementDiagram-PLB6GJNP-2vb2gp3e.js} +3 -3
  150. package/dist/client/static/js/{ruby-dve3y59w.js → ruby-ytqv3pqz.js} +1 -1
  151. package/dist/client/static/js/{rust-qjhdt4b0.js → rust-6sddyxnt.js} +1 -1
  152. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ry7xcphh.js → sankeyDiagram-IPEJSGJF-9jd8ebrn.js} +3 -3
  153. package/dist/client/static/js/{sass-emxqt5p2.js → sass-dvbra5b6.js} +1 -1
  154. package/dist/client/static/js/{scss-4j4t3r6y.js → scss-sy7w8916.js} +1 -1
  155. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-mekzzhet.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
  156. package/dist/client/static/js/{sizeCapture-INFHLROL-pvc16ame.js → sizeCapture-INFHLROL-q8w7ehgx.js} +1 -1
  157. package/dist/client/static/js/sql-99y0qnag.js +1 -0
  158. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3ytxby83.js → stateDiagram-v2-GCMORJYK-4978hapr.js} +3 -3
  159. package/dist/client/static/js/{svelte-dbsx1ehx.js → svelte-xvs3fkza.js} +1 -1
  160. package/dist/client/static/js/{swimlanes-2SLR337P-c2zfp416.js → swimlanes-2SLR337P-eshg5fjy.js} +1 -1
  161. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-914e28hd.js +8 -0
  162. package/dist/client/static/js/timeline-definition-EJHVYXUP-5h5q357k.js +120 -0
  163. package/dist/client/static/js/treeView-Q6P3EWNA-fkm3a7gx.js +1 -0
  164. package/dist/client/static/js/treemap-WGGIJYW6-hm4ktxjf.js +1 -0
  165. package/dist/client/static/js/tsx-phngprp0.js +1 -0
  166. package/dist/client/static/js/typescript-m62a7zr2.js +1 -0
  167. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-sz6b7bnv.js → usecaseDiagram-POWQR4AR-4j69y3zx.js} +20 -20
  168. package/dist/client/static/js/vennDiagram-UO4OBE2U-pa9p5jpw.js +34 -0
  169. package/dist/client/static/js/{vue-hyr58df9.js → vue-p4g4avm3.js} +1 -1
  170. package/dist/client/static/js/wardley-WFR3VGLG-3y2rvdmy.js +1 -0
  171. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-xvtyvde9.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
  172. package/dist/client/static/js/xml-59n0cjn6.js +1 -0
  173. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-jcs20s84.js → xychartDiagram-PMCCYNJV-8ng5m849.js} +4 -4
  174. package/dist/client/static/js/yaml-9fw908s4.js +1 -0
  175. package/dist/client/tailwindcss-oxide.linux-x64-gnu-c0fa36dv.node +0 -0
  176. package/dist/client/tailwindcss-oxide.linux-x64-musl-kr04sh0e.node +0 -0
  177. package/marketplace/plugins/command-runner/package.json +2 -2
  178. package/marketplace/plugins/command-runner/src/app.tsx +2 -5
  179. package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +35 -52
  180. package/marketplace/plugins/command-runner/src/panel/Groups.tsx +6 -5
  181. package/marketplace/plugins/command-runner/src/panel/Header.tsx +18 -54
  182. package/marketplace/plugins/command-runner/src/panel/Output.tsx +3 -7
  183. package/marketplace/plugins/command-runner/src/panel/Row.tsx +19 -38
  184. package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -4
  185. package/marketplace/plugins/git-forge/package.json +2 -2
  186. package/marketplace/plugins/git-forge/src/app.tsx +2 -0
  187. package/marketplace/plugins/git-forge/src/panel/Credential.tsx +8 -15
  188. package/marketplace/plugins/git-forge/src/panel/Header.tsx +35 -66
  189. package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +7 -13
  190. package/marketplace/plugins/git-forge/src/panel/List.tsx +28 -56
  191. package/marketplace/plugins/git-forge/src/panel/Row.tsx +7 -9
  192. package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +21 -31
  193. package/marketplace/plugins/git-forge/src/panel/Write.tsx +26 -40
  194. package/marketplace/plugins/git-forge/src/panel/index.tsx +0 -1
  195. package/marketplace/plugins/github-actions/package.json +2 -2
  196. package/marketplace/plugins/github-actions/src/app.tsx +2 -0
  197. package/marketplace/plugins/github-actions/src/panel/Actions.tsx +9 -17
  198. package/marketplace/plugins/github-actions/src/panel/LogView.tsx +4 -13
  199. package/marketplace/plugins/github-actions/src/panel/Row.tsx +4 -5
  200. package/marketplace/plugins/github-actions/src/panel/RunView.tsx +8 -15
  201. package/marketplace/plugins/github-actions/src/panel/index.test.tsx +3 -2
  202. package/marketplace/plugins/github-actions/src/panel/index.tsx +31 -37
  203. package/marketplace/plugins/kanban/package.json +2 -2
  204. package/marketplace/plugins/kanban/src/app.tsx +2 -0
  205. package/marketplace/plugins/kanban/src/panel/CardSheet.tsx +88 -98
  206. package/marketplace/plugins/kanban/src/panel/CardTile.tsx +6 -10
  207. package/marketplace/plugins/kanban/src/panel/StageColumn.tsx +22 -18
  208. package/marketplace/plugins/kanban/src/panel/StageSheet.tsx +59 -70
  209. package/marketplace/plugins/kanban/src/panel/index.tsx +37 -52
  210. package/marketplace/plugins/kanban/src/panel/use-board.ts +2 -0
  211. package/marketplace/plugins/session-info/package.json +2 -2
  212. package/marketplace/plugins/session-info/src/app.tsx +6 -3
  213. package/marketplace/plugins/stats/package.json +2 -2
  214. package/marketplace/plugins/stats/src/KillConfirm.test.tsx +6 -4
  215. package/marketplace/plugins/stats/src/KillConfirm.tsx +26 -76
  216. package/marketplace/plugins/stats/src/ProcessTable.tsx +8 -6
  217. package/marketplace/plugins/stats/src/RefreshButton.tsx +7 -5
  218. package/marketplace/plugins/stats/src/app.tsx +11 -9
  219. package/package.json +10 -10
  220. package/src/cli/lib/commands/plugin.js +8 -5
  221. package/src/client/bootstrap.d.ts +5 -0
  222. package/src/client/chat-title-overlay.test.ts +53 -0
  223. package/src/client/components/auth/login-screen/index.tsx +31 -3
  224. package/src/client/components/common/SignOutButton.tsx +4 -5
  225. package/src/client/components/common/account-badge/index.tsx +31 -0
  226. package/src/client/components/common/footer-version/index.tsx +40 -0
  227. package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +24 -0
  228. package/src/client/components/common/fullscreen-viewer/index.tsx +22 -31
  229. package/src/client/components/common/header-controls/MoreMenu.tsx +5 -56
  230. package/src/client/components/common/header-controls/index.test.tsx +2 -6
  231. package/src/client/components/common/header-controls/index.tsx +9 -25
  232. package/src/client/components/common/header-controls/phone-row.test.tsx +3 -16
  233. package/src/client/components/common/shell-update-button/index.tsx +2 -2
  234. package/src/client/components/common/zoom-pan-stage/index.tsx +54 -50
  235. package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -5
  236. package/src/client/components/layout/desktop-layout/index.tsx +2 -4
  237. package/src/client/components/layout/left-bar/index.tsx +25 -3
  238. package/src/client/components/layout/rail-toggle.test.tsx +112 -0
  239. package/src/client/components/layout/session-sidebar/CategoryHeader.accent.test.tsx +81 -0
  240. package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +11 -3
  241. package/src/client/components/layout/session-sidebar/Footer.test.tsx +36 -0
  242. package/src/client/components/layout/session-sidebar/Footer.tsx +42 -61
  243. package/src/client/components/layout/session-sidebar/FooterHost.tsx +5 -1
  244. package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +30 -10
  245. package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +4 -0
  246. package/src/client/components/layout/session-sidebar/modern/index.tsx +8 -1
  247. package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +25 -4
  248. package/src/client/components/layout/session-title-bar/index.tsx +13 -5
  249. package/src/client/components/layout/top-bars.test.tsx +4 -2
  250. package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
  251. package/src/client/components/mobile/RightSidebar.tsx +12 -3
  252. package/src/client/components/mobile/SessionSidebar.tsx +6 -2
  253. package/src/client/components/mobile/drawer-layout.test.tsx +7 -3
  254. package/src/client/components/mobile/drawer-strip.tsx +9 -2
  255. package/src/client/components/mobile/mobile-main-view/Header.test.tsx +29 -9
  256. package/src/client/components/mobile/mobile-main-view/Header.tsx +43 -12
  257. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +12 -1
  258. package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
  259. package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +1 -0
  260. package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +9 -1
  261. package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +4 -2
  262. package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +1 -1
  263. package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +48 -46
  264. package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +18 -1
  265. package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +4 -0
  266. package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +4 -6
  267. package/src/client/components/mobile/right-drawer-nav.test.tsx +53 -1
  268. package/src/client/components/settings/Band.tsx +5 -2
  269. package/src/client/components/settings/Modal.tsx +8 -5
  270. package/src/client/components/settings/Sidebar.tsx +5 -3
  271. package/src/client/components/settings/apply-side-effects.ts +5 -0
  272. package/src/client/components/settings/categories/AccountSettings.tsx +266 -0
  273. package/src/client/components/settings/categories/ProjectSettings.tsx +2 -0
  274. package/src/client/components/settings/categories/account-settings/Dialogs.tsx +223 -0
  275. package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +3 -4
  276. package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +66 -39
  277. package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +7 -4
  278. package/src/client/components/settings/categories/project-settings/DetailsForm.tsx +14 -1
  279. package/src/client/components/settings/categories/project-settings/ProjectSharing.tsx +130 -0
  280. package/src/client/components/settings/categories/project-settings/SidebarList.tsx +5 -0
  281. package/src/client/components/settings/category-content.tsx +3 -0
  282. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +3 -1
  283. package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +2 -1
  284. package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +3 -1
  285. package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +1 -1
  286. package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -0
  287. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +9 -2
  288. package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
  289. package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +2 -1
  290. package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +34 -0
  291. package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
  292. package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +4 -1
  293. package/src/client/components/workspace/editor/Tab.tsx +19 -26
  294. package/src/client/components/workspace/editor/Tabs.test.ts +13 -7
  295. package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -0
  296. package/src/client/components/workspace/git-panel/commit-modal/floating.test.ts +46 -0
  297. package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -0
  298. package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +4 -5
  299. package/src/client/components/workspace/panel-tabs/TabChip.tsx +40 -39
  300. package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -58
  301. package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +9 -9
  302. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +14 -1
  303. package/src/client/components/workspace/panel-tabs/index.tsx +1 -1
  304. package/src/client/components/workspace/plugin-panel/catalog.tsx +22 -5
  305. package/src/client/components/workspace/plugin-panel/chrome.test.tsx +89 -0
  306. package/src/client/components/workspace/plugin-panel/chrome.tsx +62 -0
  307. package/src/client/data/settings/omp-schema.json +40 -4
  308. package/src/client/floating-phone.test.ts +189 -0
  309. package/src/client/floating.css +205 -2
  310. package/src/client/floating.test.ts +43 -0
  311. package/src/client/glass.css +47 -0
  312. package/src/client/hooks/chat/omp/index.ts +6 -5
  313. package/src/client/hooks/chat/omp/prompt-send.test.ts +18 -0
  314. package/src/client/hooks/chat/omp/prompt-send.ts +26 -8
  315. package/src/client/hooks/chat/omp/session-list.tsx +20 -8
  316. package/src/client/hooks/chat/timeline/deferred-model.ts +13 -5
  317. package/src/client/hooks/chat/timeline/index.ts +2 -0
  318. package/src/client/hooks/chat/timeline/send-props.ts +14 -0
  319. package/src/client/hooks/chat/timeline/send-steer.test.ts +11 -2
  320. package/src/client/hooks/chat/timeline/send-switch.test.ts +92 -0
  321. package/src/client/hooks/chat/timeline/send.test-util.ts +37 -7
  322. package/src/client/hooks/chat/timeline/send.test.ts +11 -2
  323. package/src/client/hooks/chat/timeline/send.ts +62 -42
  324. package/src/client/hooks/editor/image-generation.ts +24 -0
  325. package/src/client/hooks/editor/resolve-viewer.test.ts +26 -20
  326. package/src/client/hooks/editor/resolve-viewer.ts +14 -5
  327. package/src/client/hooks/editor/use-file-editor.test.ts +34 -0
  328. package/src/client/hooks/editor/use-file-editor.ts +6 -2
  329. package/src/client/hooks/settings/accounts.ts +162 -0
  330. package/src/client/hooks/ui/auth.ts +58 -3
  331. package/src/client/hooks/ui/border-style.test.ts +5 -4
  332. package/src/client/hooks/ui/border-style.ts +3 -2
  333. package/src/client/hooks/ui/mobile-chrome-style.ts +68 -0
  334. package/src/client/hooks/ui/navbar-controls.test.ts +1 -2
  335. package/src/client/hooks/ui/navbar-controls.ts +0 -3
  336. package/src/client/hooks/ui/zoom-gesture.ts +104 -0
  337. package/src/client/lib/desktop/titlebar.test.ts +21 -0
  338. package/src/client/lib/desktop/titlebar.ts +34 -0
  339. package/src/client/lib/plugins/bootstrap.test.ts +20 -0
  340. package/src/client/lib/plugins/bootstrap.tsx +10 -15
  341. package/src/client/lib/plugins/kit-components.test.tsx +119 -0
  342. package/src/client/lib/plugins/kit-components.tsx +79 -0
  343. package/src/client/lib/plugins/kit.ts +8 -0
  344. package/src/client/lib/plugins/slots.test.ts +34 -0
  345. package/src/client/lib/plugins/slots.ts +31 -4
  346. package/src/client/lib/plugins/stylesheets.ts +10 -11
  347. package/src/client/lib/ui/pinch.test.ts +74 -0
  348. package/src/client/lib/ui/pinch.ts +104 -0
  349. package/src/client/lib/ui/safe-area.test.ts +25 -0
  350. package/src/client/lib/ui/safe-area.ts +23 -0
  351. package/src/client/main.tsx +8 -1
  352. package/src/client/tailwind.css +54 -1
  353. package/src/server/index.ts +2 -0
  354. package/src/server/lib/assets/shell-attributes.server.ts +12 -4
  355. package/src/server/lib/assets/shell-attributes.test.ts +19 -18
  356. package/src/server/lib/auth/client-address.test.ts +2 -2
  357. package/src/server/lib/auth/guard.test.ts +2 -2
  358. package/src/server/lib/auth/guard.ts +81 -97
  359. package/src/server/lib/auth/handover-guard.test.ts +1 -1
  360. package/src/server/lib/auth/rate-limit.test.ts +2 -2
  361. package/src/server/lib/auth/token.test.ts +1 -1
  362. package/src/server/lib/auth/workspace-gate.server.ts +34 -0
  363. package/src/server/lib/bundler/css.test.ts +16 -0
  364. package/src/server/lib/connect/devices.server.test.ts +12 -0
  365. package/src/server/lib/connect/devices.server.ts +63 -19
  366. package/src/server/lib/connect/pairing.server.ts +5 -3
  367. package/src/server/lib/connect/status.server.ts +2 -2
  368. package/src/server/lib/db/schema.test.ts +3 -3
  369. package/src/server/lib/db/schema.ts +6 -0
  370. package/src/server/lib/harness/update-spawn.server.test.ts +97 -0
  371. package/src/server/lib/harness/update-spawn.server.ts +10 -0
  372. package/src/server/lib/models/provider-icon-override.server.test.ts +140 -0
  373. package/src/server/lib/models/provider-icon-override.server.ts +197 -0
  374. package/src/server/lib/models/provider-icon-store.server.ts +8 -0
  375. package/src/server/lib/models/provider-icon.server.ts +31 -6
  376. package/src/server/lib/omp/session/artifacts.server.test.ts +11 -7
  377. package/src/server/lib/omp/session/artifacts.server.ts +21 -17
  378. package/src/server/lib/panels/build.server.ts +19 -2
  379. package/src/server/lib/panels/css.server.test.ts +141 -0
  380. package/src/server/lib/panels/css.server.ts +255 -0
  381. package/src/server/lib/panels/plugin-ui-contract.test.ts +64 -0
  382. package/src/server/lib/panels/registry-stylesheet.server.test.ts +69 -0
  383. package/src/server/lib/panels/scan.server.ts +13 -7
  384. package/src/server/lib/panels/source-warnings.server.test.ts +65 -0
  385. package/src/server/lib/panels/source-warnings.server.ts +71 -0
  386. package/src/server/lib/realtime/topics/catalog.server.ts +3 -0
  387. package/src/server/lib/realtime/topics.server.ts +14 -0
  388. package/src/server/lib/sessions/last-opened-client.server.ts +1 -1
  389. package/src/server/lib/workspace/access.server.ts +108 -0
  390. package/src/server/lib/workspace/project-patch.server.ts +4 -2
  391. package/src/server/lib/workspace/register-folder.server.ts +19 -5
  392. package/src/server/lib/workspace/session-access.server.ts +55 -0
  393. package/src/server/lib/workspace/tenancy-schema.server.ts +40 -0
  394. package/src/server/plugins/ssr.ts +19 -3
  395. package/src/server/routes/accounts/index.ts +8 -0
  396. package/src/server/routes/accounts/management.test.ts +174 -0
  397. package/src/server/routes/accounts/management.ts +166 -0
  398. package/src/server/routes/auth/login.ts +22 -8
  399. package/src/server/routes/auth/logout.ts +1 -1
  400. package/src/server/routes/auth/password.ts +40 -33
  401. package/src/server/routes/auth/revoke.test.ts +1 -1
  402. package/src/server/routes/auth/revoke.ts +26 -8
  403. package/src/server/routes/auth/routes.test.ts +3 -3
  404. package/src/server/routes/auth/state.ts +14 -7
  405. package/src/server/routes/connect/devices.ts +7 -4
  406. package/src/server/routes/connect/pair.ts +4 -3
  407. package/src/server/routes/connect/status.ts +4 -2
  408. package/src/server/routes/connect/tunnels.ts +2 -1
  409. package/src/server/routes/folders/batch-delete.ts +12 -0
  410. package/src/server/routes/folders/clone.ts +7 -2
  411. package/src/server/routes/folders/create.ts +3 -1
  412. package/src/server/routes/folders/folder.ts +44 -4
  413. package/src/server/routes/folders/index.ts +3 -0
  414. package/src/server/routes/folders/shares.ts +62 -0
  415. package/src/server/routes/index.ts +2 -0
  416. package/src/server/routes/panels/build.ts +1 -1
  417. package/src/server/routes/panels/css.test.ts +22 -0
  418. package/src/server/routes/panels/css.ts +5 -7
  419. package/src/server/routes/realtime/ws.ts +16 -1
  420. package/src/server/routes/sessions/list.ts +3 -2
  421. package/src/server/routes/settings/projects.ts +46 -7
  422. package/src/server/routes/settings/provider-icon.ts +18 -0
  423. package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +2 -2
  424. package/src/shared/lib/chat/timeline/tool-render-mode.ts +6 -3
  425. package/src/shared/lib/icons/tint-hues.generated.ts +38 -37
  426. package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +27 -1
  427. package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
  428. package/src/shared/lib/realtime/protocol.ts +16 -0
  429. package/src/shared/lib/settings/defaults.ts +2 -1
  430. package/src/shared/lib/settings/sections.ts +1 -1
  431. package/src/shared/lib/theme/border-style.test.ts +11 -9
  432. package/src/shared/lib/theme/border-style.ts +7 -7
  433. package/src/shared/lib/theme/chrome-style.test.ts +15 -0
  434. package/src/shared/lib/theme/chrome-style.ts +16 -1
  435. package/src/shared/types/index.ts +1 -0
  436. package/src/shared/types/settings/state.ts +6 -5
  437. package/src/test-support/file-editor.test-util.ts +25 -6
  438. package/tsconfig.json +21 -0
  439. package/dist/client/static/js/ImageView-zf4kh5wp.js +0 -1
  440. package/dist/client/static/js/LayoutWrapper-dncbzcea.js +0 -2
  441. package/dist/client/static/js/MergeDiffView-btdx9yb9.js +0 -1
  442. package/dist/client/static/js/Modal-5cxfw2rv.js +0 -60
  443. package/dist/client/static/js/SessionsView-vbn0nvx4.js +0 -1
  444. package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +0 -1
  445. package/dist/client/static/js/bash-bcbct9gc.js +0 -1
  446. package/dist/client/static/js/c-fn9jz26e.js +0 -1
  447. package/dist/client/static/js/cpp-a1q64mke.js +0 -1
  448. package/dist/client/static/js/css-b92azee8.js +0 -1
  449. package/dist/client/static/js/css-sn00sq6v.js +0 -1
  450. package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +0 -1
  451. package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +0 -1
  452. package/dist/client/static/js/flowDiagram-KWPJA3E3-500fcx2a.js +0 -1
  453. package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +0 -1
  454. package/dist/client/static/js/graphql-8d8bn59j.js +0 -1
  455. package/dist/client/static/js/html-6hdrwtz2.js +0 -1
  456. package/dist/client/static/js/index-0kcnghxn.js +0 -4
  457. package/dist/client/static/js/index-2zhmmtye.js +0 -2
  458. package/dist/client/static/js/index-4vtc4xct.js +0 -481
  459. package/dist/client/static/js/index-5srvxsht.js +0 -2
  460. package/dist/client/static/js/index-6c1s0v4b.js +0 -1
  461. package/dist/client/static/js/index-cvm2ha01.js +0 -1
  462. package/dist/client/static/js/index-d11mbz2q.js +0 -4
  463. package/dist/client/static/js/index-fen0x3qh.js +0 -1
  464. package/dist/client/static/js/index-gwgh27h3.js +0 -314
  465. package/dist/client/static/js/index-hxy1sadd.js +0 -2
  466. package/dist/client/static/js/index-pg87cgpy.js +0 -2
  467. package/dist/client/static/js/index-q1a40v20.js +0 -3
  468. package/dist/client/static/js/index-qmvstmvh.js +0 -1
  469. package/dist/client/static/js/index-t6nqy2n5.css +0 -1
  470. package/dist/client/static/js/index-wf5j0009.js +0 -10
  471. package/dist/client/static/js/index-y6zbkh4p.js +0 -2
  472. package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +0 -1
  473. package/dist/client/static/js/ini-g6a5xsaw.js +0 -1
  474. package/dist/client/static/js/java-n596am4c.js +0 -1
  475. package/dist/client/static/js/javascript-zc1qnyyp.js +0 -1
  476. package/dist/client/static/js/json-7k70qbkj.js +0 -1
  477. package/dist/client/static/js/jsx-sndenqrc.js +0 -1
  478. package/dist/client/static/js/lua-djd3g9q5.js +0 -1
  479. package/dist/client/static/js/markdown-r2tpvxpn.js +0 -1
  480. package/dist/client/static/js/one-dark-pro-ckq5capv.js +0 -1
  481. package/dist/client/static/js/one-light-a908z398.js +0 -1
  482. package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +0 -1
  483. package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +0 -1
  484. package/dist/client/static/js/properties-brn72zdk.js +0 -1
  485. package/dist/client/static/js/python-g9mghwgm.js +0 -1
  486. package/dist/client/static/js/r-e247x4mw.js +0 -1
  487. package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +0 -1
  488. package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +0 -1
  489. package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +0 -1
  490. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +0 -1
  491. package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +0 -1
  492. package/dist/client/static/js/sql-0kar81jy.js +0 -1
  493. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +0 -8
  494. package/dist/client/static/js/timeline-definition-EJHVYXUP-xtvv4za2.js +0 -120
  495. package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +0 -1
  496. package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +0 -1
  497. package/dist/client/static/js/tsx-gjxfjnbk.js +0 -1
  498. package/dist/client/static/js/typescript-bm89v3gk.js +0 -1
  499. package/dist/client/static/js/vennDiagram-UO4OBE2U-56q0qs51.js +0 -34
  500. package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +0 -1
  501. package/dist/client/static/js/xml-b7824nx0.js +0 -1
  502. package/dist/client/static/js/yaml-kqqktdv1.js +0 -1
  503. package/src/server/lib/auth/client-address.ts +0 -89
  504. package/src/server/lib/auth/config.ts +0 -133
  505. package/src/server/lib/auth/rate-limit.ts +0 -146
  506. package/src/server/lib/auth/token.ts +0 -220
@@ -21,6 +21,7 @@
21
21
  */
22
22
 
23
23
  import { useEffect, useMemo, useState } from 'preact/hooks';
24
+ import { Button, Picker, Section, Sheet } from '@kabmo-labs/kabmo-ui/components';
24
25
  import { experimental_useSidebarThreadActions } from '@kabmo-labs/kabmo-ui';
25
26
 
26
27
  import { MAX_IMAGES, type AgentOrigin, type Card, type ResolvedAgent, type Stage } from '../protocol';
@@ -123,17 +124,35 @@ export function CardSheet(props: CardSheetProps) {
123
124
  const startDisabled = busy !== null || !card.workspace || !prompt.trim();
124
125
 
125
126
  return (
126
- <aside class="flex flex-col h-full min-h-0 w-full md:w-[420px] md:flex-none border-l border-ink/10 bg-paper">
127
- <header class="flex items-center gap-2 px-3 h-10 flex-none border-b border-ink/10">
128
- <span class="text-[10px] font-mono text-ink/45">{card.id}</span>
129
- <span class="text-xs text-ink/70 truncate">{stageLabel(stages, card.status)}</span>
130
- <span class="ml-auto text-[10px] font-mono text-ink/60">P{priority}</span>
131
- <button type="button" class="text-ink/50 hover:text-ink px-1" aria-label="Close" onClick={props.onClose}>
132
- ×
133
- </button>
134
- </header>
135
-
136
- <div class="flex-1 min-h-0 overflow-y-auto px-3 py-3 flex flex-col gap-3">
127
+ <Sheet
128
+ title={stageLabel(stages, card.status)}
129
+ meta={
130
+ <>
131
+ <span class="font-mono">{card.id}</span>
132
+ <span class="font-mono">P{priority}</span>
133
+ </>
134
+ }
135
+ onClose={props.onClose}
136
+ widthClass="md:w-[420px]"
137
+ footer={
138
+ <div class="flex w-full items-center gap-2">
139
+ <Button
140
+ variant="primary"
141
+ size="sm"
142
+ disabled={busy !== null}
143
+ onClick={() => void run('Card', () => props.onSave(patch(), card.updatedAt))}
144
+ >
145
+ {busy === 'Card' ? 'Saving…' : 'Save'}
146
+ </Button>
147
+ <div class="ml-auto">
148
+ <Button variant="danger" size="sm" disabled={busy !== null} onClick={() => void run('Delete', () => props.onDelete())}>
149
+ Delete
150
+ </Button>
151
+ </div>
152
+ </div>
153
+ }
154
+ >
155
+ <div class="px-3 py-3 flex flex-col gap-3">
137
156
  <label class="flex flex-col gap-1">
138
157
  <span class="text-[10px] uppercase font-mono text-ink/40">Title</span>
139
158
  <input
@@ -146,31 +165,30 @@ export function CardSheet(props: CardSheetProps) {
146
165
  <div class="flex gap-2">
147
166
  <label class="flex-1 flex flex-col gap-1">
148
167
  <span class="text-[10px] uppercase font-mono text-ink/40">Stage</span>
149
- <select
150
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
168
+ <Picker
151
169
  value={card.status}
152
- onChange={(event) => void run('Stage', () => props.onMove(event.currentTarget.value, card.updatedAt))}
153
- >
154
- {stages.map((entry) => (
155
- <option key={entry.id} value={entry.id}>
156
- {entry.label}
157
- </option>
158
- ))}
159
- </select>
170
+ options={stages.map((entry) => ({ value: entry.id, label: entry.label }))}
171
+ placeholder="Stage"
172
+ ariaLabel="Stage"
173
+ searchable={false}
174
+ allowEmpty={false}
175
+ onChange={(value) => void run('Stage', () => props.onMove(value, card.updatedAt))}
176
+ />
160
177
  </label>
161
178
  <label class="flex-1 flex flex-col gap-1">
162
179
  <span class="text-[10px] uppercase font-mono text-ink/40">Priority</span>
163
- <select
164
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
180
+ <Picker
165
181
  value={String(priority)}
166
- onChange={(event) => setPriority(Number(event.currentTarget.value))}
167
- >
168
- {['P0 urgent', 'P1 high', 'P2 medium', 'P3 low', 'P4 backlog'].map((label, index) => (
169
- <option key={label} value={String(index)}>
170
- {label}
171
- </option>
172
- ))}
173
- </select>
182
+ options={['P0 urgent', 'P1 high', 'P2 medium', 'P3 low', 'P4 backlog'].map((label, index) => ({
183
+ value: String(index),
184
+ label,
185
+ }))}
186
+ placeholder="Priority"
187
+ ariaLabel="Priority"
188
+ searchable={false}
189
+ allowEmpty={false}
190
+ onChange={(value) => setPriority(Number(value))}
191
+ />
174
192
  </label>
175
193
  </div>
176
194
 
@@ -197,38 +215,37 @@ export function CardSheet(props: CardSheetProps) {
197
215
  {card.task.images.length} of {MAX_IMAGES} images · images are attached when work starts
198
216
  </span>
199
217
 
200
- <fieldset class="flex flex-col gap-2 border-t border-ink/10 pt-3">
201
- <legend class="text-[10px] uppercase font-mono text-ink/40">Agent</legend>
218
+ <Section legend="Agent" className="border-t border-ink/10 pt-3">
202
219
  <div class="flex gap-2">
203
220
  <label class="flex-1 flex flex-col gap-1">
204
221
  <span class="text-[10px] text-ink/45">Harness · {originLabel(resolved.origin.harness, stage)}</span>
205
- <select
206
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
222
+ <Picker
207
223
  value={harness}
208
- onChange={(event) => setHarness(event.currentTarget.value)}
209
- >
210
- <option value="">inherit ({resolved.harness})</option>
211
- {catalogs.harnesses.map((entry) => (
212
- <option key={entry.id} value={entry.id}>
213
- {entry.label}
214
- </option>
215
- ))}
216
- </select>
224
+ options={[
225
+ { value: '', label: `inherit (${resolved.harness})` },
226
+ ...catalogs.harnesses.map((entry) => ({ value: entry.id, label: entry.label })),
227
+ ]}
228
+ placeholder="inherit"
229
+ ariaLabel={`Harness · ${originLabel(resolved.origin.harness, stage)}`}
230
+ searchable={false}
231
+ allowEmpty={false}
232
+ onChange={setHarness}
233
+ />
217
234
  </label>
218
235
  <label class="flex-1 flex flex-col gap-1">
219
236
  <span class="text-[10px] text-ink/45">Thinking · {originLabel(resolved.origin.thinking, stage)}</span>
220
- <select
221
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
237
+ <Picker
222
238
  value={thinking}
223
- onChange={(event) => setThinking(event.currentTarget.value)}
224
- >
225
- <option value="">inherit ({resolved.thinking ?? 'harness default'})</option>
226
- {thinkingLevels.map((level) => (
227
- <option key={level} value={level}>
228
- {level}
229
- </option>
230
- ))}
231
- </select>
239
+ options={[
240
+ { value: '', label: `inherit (${resolved.thinking ?? 'harness default'})` },
241
+ ...thinkingLevels.map((level) => ({ value: level, label: level })),
242
+ ]}
243
+ placeholder="inherit"
244
+ ariaLabel={`Thinking · ${originLabel(resolved.origin.thinking, stage)}`}
245
+ searchable={false}
246
+ allowEmpty={false}
247
+ onChange={setThinking}
248
+ />
232
249
  </label>
233
250
  </div>
234
251
  <p class="text-[10px] text-ink/40">
@@ -240,80 +257,53 @@ export function CardSheet(props: CardSheetProps) {
240
257
  Stage prompt: {resolved.prompt ? `${resolved.prompt.length} chars` : 'none'} ·{' '}
241
258
  {resolved.promptDelivery === 'appended' ? 'appended to omp’s system prompt' : 'prepended to the first turn'}
242
259
  </p>
243
- </fieldset>
260
+ </Section>
244
261
 
245
- <fieldset class="flex flex-col gap-2 border-t border-ink/10 pt-3">
246
- <legend class="text-[10px] uppercase font-mono text-ink/40">Session</legend>
262
+ <Section legend="Session" className="border-t border-ink/10 pt-3">
247
263
  {card.sessionId ? (
248
264
  <>
249
265
  <p class="text-[11px] font-mono text-ink/70">
250
266
  {card.sessionId.slice(0, 8)}… · {sessionState}
251
267
  </p>
252
268
  <div class="flex gap-2">
253
- <button
254
- type="button"
255
- class="rounded-md border border-ink/15 px-2 py-1 text-[11px] text-ink"
269
+ <Button
270
+ size="sm"
256
271
  onClick={() => {
257
272
  if (card.sessionId) actions.open(card.sessionId);
258
273
  }}
259
274
  >
260
275
  Open chat
261
- </button>
262
- <button
263
- type="button"
264
- class="rounded-md border border-ink/15 px-2 py-1 text-[11px] text-ink"
265
- disabled={busy !== null}
266
- onClick={() => void run('Unlink', () => props.onLinkSession(null))}
267
- >
276
+ </Button>
277
+ <Button size="sm" disabled={busy !== null} onClick={() => void run('Unlink', () => props.onLinkSession(null))}>
268
278
  Unlink
269
- </button>
279
+ </Button>
270
280
  </div>
271
281
  </>
272
282
  ) : (
273
283
  <div class="flex gap-2">
274
- <button
275
- type="button"
276
- class="rounded-md border border-ink/20 bg-ink/5 px-2 py-1 text-[11px] text-ink disabled:opacity-40"
284
+ <Button
285
+ size="sm"
286
+ variant="primary"
277
287
  disabled={startDisabled}
278
288
  title={card.workspace ? undefined : 'Pick a workspace first'}
279
289
  onClick={() => void run('Start work', () => props.onStartWork(card, resolved))}
280
290
  >
281
291
  {busy === 'Start work' ? 'Starting…' : 'Start work'}
282
- </button>
283
- <button
284
- type="button"
285
- class="rounded-md border border-ink/15 px-2 py-1 text-[11px] text-ink disabled:opacity-40"
292
+ </Button>
293
+ <Button
294
+ size="sm"
286
295
  disabled={!activeSessionId || busy !== null}
287
296
  onClick={() => void run('Link', () => props.onLinkSession(activeSessionId))}
288
297
  >
289
298
  Link this chat
290
- </button>
299
+ </Button>
291
300
  </div>
292
301
  )}
293
- </fieldset>
302
+ </Section>
294
303
 
295
304
  {error ? <p class="text-[11px] text-[var(--theme-error)]">{error}</p> : null}
296
305
  {notice ? <p class="text-[11px] text-ink/50">{notice}</p> : null}
297
306
  </div>
298
-
299
- <footer class="flex items-center gap-2 px-3 h-11 flex-none border-t border-ink/10">
300
- <button
301
- type="button"
302
- class="rounded-md border border-ink/20 bg-ink/5 px-2 py-1 text-[11px] text-ink disabled:opacity-40"
303
- disabled={busy !== null}
304
- onClick={() => void run('Card', () => props.onSave(patch(), card.updatedAt))}
305
- >
306
- {busy === 'Card' ? 'Saving…' : 'Save'}
307
- </button>
308
- <button
309
- type="button"
310
- class="ml-auto rounded-md border border-ink/15 px-2 py-1 text-[11px] text-[var(--theme-error)]"
311
- disabled={busy !== null}
312
- onClick={() => void run('Delete', () => props.onDelete())}
313
- >
314
- Delete
315
- </button>
316
- </footer>
317
- </aside>
307
+ </Sheet>
318
308
  );
319
309
  }
@@ -13,6 +13,7 @@
13
13
  * sheet is the detail.
14
14
  */
15
15
 
16
+ import { Card } from '@kabmo-labs/kabmo-ui/components';
16
17
  import type { CardSummary } from '../protocol';
17
18
 
18
19
  /** Priority as the tag a reader scans for: P0 is the loudest. */
@@ -58,18 +59,13 @@ export function CardTile({
58
59
  }: CardTileProps) {
59
60
  const session = sessionState === 'none' ? null : sessionState;
60
61
  return (
61
- <button
62
- type="button"
62
+ <Card
63
+ onClick={() => onOpen(card.id)}
63
64
  draggable
64
65
  onDragStart={() => onDragStart(card.id)}
65
66
  onDragEnd={onDragEnd}
66
- onClick={() => onOpen(card.id)}
67
- class={[
68
- 'w-full text-left rounded-lg border px-2.5 py-2 flex flex-col gap-1',
69
- 'bg-paper border-ink/10 hover:border-ink/25 transition-colors',
70
- dragging ? 'opacity-40' : '',
71
- ].join(' ')}
72
- aria-label={`${card.title} — ${priorityLabel(card.priority)}`}
67
+ className={`px-2.5 py-2 gap-1 ${dragging ? 'opacity-40' : ''}`}
68
+ ariaLabel={`${card.title} — ${priorityLabel(card.priority)}`}
73
69
  >
74
70
  <span class="flex items-center gap-2 min-w-0">
75
71
  <span class="text-[10px] font-mono text-ink/40 flex-none">{card.id}</span>
@@ -92,6 +88,6 @@ export function CardTile({
92
88
  {showWorkspace ? <span class="truncate">{workspaceLabel(card.workspace)}</span> : null}
93
89
  <span class="truncate">{promptPreview(card)}</span>
94
90
  </span>
95
- </button>
91
+ </Card>
96
92
  );
97
93
  }
@@ -11,6 +11,7 @@
11
11
  * renders what it is given, plus the "no cards" placeholder and the cap notice.
12
12
  */
13
13
 
14
+ import { ColumnHeader, IconButton } from '@kabmo-labs/kabmo-ui/components';
14
15
  import type { CardSummary, Stage } from '../protocol';
15
16
  import { CardTile } from './CardTile';
16
17
 
@@ -69,24 +70,27 @@ export function StageColumn({
69
70
  onDropOn(stage.id);
70
71
  }}
71
72
  >
72
- <header class="flex items-center gap-1.5 px-2.5 h-9 flex-none">
73
- <span class="text-xs font-medium text-ink truncate">{stage.label}</span>
74
- <span class="text-[11px] text-ink/45">{cards.length}</span>
75
- {stage.session ? (
76
- <span class="text-[9px] uppercase font-mono text-ink/35" title="Cards here run a chat session">
77
- session
78
- </span>
79
- ) : null}
80
- <button
81
- type="button"
82
- class="ml-auto text-ink/50 hover:text-ink px-1"
83
- title={`New card in ${stage.label}`}
84
- aria-label={`New card in ${stage.label}`}
85
- onClick={() => onAddCard(stage.id)}
86
- >
87
- +
88
- </button>
89
- </header>
73
+ <ColumnHeader
74
+ title={stage.label}
75
+ count={cards.length}
76
+ meta={
77
+ stage.session ? (
78
+ <span class="text-[9px] uppercase font-mono text-ink/35" title="Cards here run a chat session">
79
+ session
80
+ </span>
81
+ ) : null
82
+ }
83
+ actions={
84
+ <IconButton
85
+ ariaLabel={`New card in ${stage.label}`}
86
+ title={`New card in ${stage.label}`}
87
+ size="xs"
88
+ onClick={() => onAddCard(stage.id)}
89
+ >
90
+ +
91
+ </IconButton>
92
+ }
93
+ />
90
94
  <div class="flex-1 min-h-0 overflow-y-auto px-2 pb-2 flex flex-col gap-2">
91
95
  {cards.length === 0 ? (
92
96
  <p class="text-[11px] text-ink/35 text-center py-6 border border-dashed border-ink/10 rounded-lg">
@@ -17,6 +17,7 @@
17
17
  */
18
18
 
19
19
  import { useState } from 'preact/hooks';
20
+ import { Button, Checkbox, Picker, Section, Sheet } from '@kabmo-labs/kabmo-ui/components';
20
21
 
21
22
  import { MAX_PROMPT_CHARS, type AgentSpec, type Board, type Stage } from '../protocol';
22
23
  import type { Catalogs } from './catalogs';
@@ -95,32 +96,33 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
95
96
  };
96
97
 
97
98
  return (
98
- <aside class="flex flex-col h-full min-h-0 w-full md:w-[460px] md:flex-none border-l border-ink/10 bg-paper">
99
- <header class="flex items-center gap-2 px-3 h-10 flex-none border-b border-ink/10">
100
- <span class="text-xs font-medium text-ink">Stages</span>
101
- <span class="text-[10px] text-ink/45">a hidden stage with cards keeps showing</span>
102
- <button type="button" class="ml-auto text-ink/50 hover:text-ink px-1" aria-label="Close" onClick={onClose}>
103
- ×
104
- </button>
105
- </header>
106
-
107
- <div class="flex-1 min-h-0 overflow-y-auto px-3 py-3 flex flex-col gap-4">
108
- <fieldset class="flex flex-col gap-2">
109
- <legend class="text-[10px] uppercase font-mono text-ink/40">Board defaults</legend>
99
+ <Sheet
100
+ title="Stages"
101
+ onClose={onClose}
102
+ widthClass="md:w-[460px]"
103
+ footer={
104
+ <Button variant="primary" size="sm" disabled={busy} onClick={() => void save()}>
105
+ {busy ? 'Saving…' : 'Save'}
106
+ </Button>
107
+ }
108
+ >
109
+ <div class="px-3 py-3 flex flex-col gap-4">
110
+ <p class="text-[10px] text-ink/45">A hidden stage with cards keeps showing.</p>
111
+ <Section legend="Board defaults">
110
112
  <label class="flex flex-col gap-1">
111
113
  <span class="text-[10px] text-ink/45">Harness</span>
112
- <select
113
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
114
+ <Picker
114
115
  value={typeof defaults.harness === 'string' ? defaults.harness : ''}
115
- onChange={(event) => setDefaults({ ...defaults, harness: event.currentTarget.value || undefined })}
116
- >
117
- <option value="">host default (omp-rpc)</option>
118
- {catalogs.harnesses.map((entry) => (
119
- <option key={entry.id} value={entry.id}>
120
- {entry.label}
121
- </option>
122
- ))}
123
- </select>
116
+ options={[
117
+ { value: '', label: 'host default (omp-rpc)' },
118
+ ...catalogs.harnesses.map((entry) => ({ value: entry.id, label: entry.label })),
119
+ ]}
120
+ placeholder="host default (omp-rpc)"
121
+ ariaLabel="Board harness"
122
+ searchable={false}
123
+ allowEmpty={false}
124
+ onChange={(value) => setDefaults({ ...defaults, harness: value || undefined })}
125
+ />
124
126
  </label>
125
127
  <label class="flex flex-col gap-1">
126
128
  <span class="text-[10px] text-ink/45">System prompt every stage inherits</span>
@@ -131,13 +133,12 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
131
133
  onInput={(event) => setDefaults({ ...defaults, prompt: event.currentTarget.value || undefined })}
132
134
  />
133
135
  </label>
134
- </fieldset>
136
+ </Section>
135
137
 
136
138
  {drafts.map((stage) => {
137
139
  const spec = specOf(stage);
138
140
  return (
139
- <fieldset key={stage.id} class="flex flex-col gap-2 border-t border-ink/10 pt-3">
140
- <legend class="text-[10px] uppercase font-mono text-ink/40">{stage.id}</legend>
141
+ <Section key={stage.id} legend={stage.id} className="border-t border-ink/10 pt-3">
141
142
  <div class="flex gap-2 items-end">
142
143
  <label class="flex-1 flex flex-col gap-1">
143
144
  <span class="text-[10px] text-ink/45">Label</span>
@@ -151,24 +152,18 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
151
152
  />
152
153
  </label>
153
154
  <label class="flex items-center gap-1 text-[11px] text-ink/60">
154
- <input
155
- type="checkbox"
155
+ <Checkbox
156
156
  checked={stage.hidden}
157
- onChange={(event) => {
158
- const hidden = event.currentTarget.checked;
159
- edit(stage.id, (entry) => ({ ...entry, hidden }));
160
- }}
157
+ ariaLabel="hidden"
158
+ onChange={(hidden) => edit(stage.id, (entry) => ({ ...entry, hidden }))}
161
159
  />
162
160
  hidden
163
161
  </label>
164
162
  <label class="flex items-center gap-1 text-[11px] text-ink/60">
165
- <input
166
- type="checkbox"
163
+ <Checkbox
167
164
  checked={stage.session}
168
- onChange={(event) => {
169
- const session = event.currentTarget.checked;
170
- edit(stage.id, (entry) => ({ ...entry, session }));
171
- }}
165
+ ariaLabel="runs a session"
166
+ onChange={(session) => edit(stage.id, (entry) => ({ ...entry, session }))}
172
167
  />
173
168
  runs a session
174
169
  </label>
@@ -177,18 +172,18 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
177
172
  <div class="flex gap-2">
178
173
  <label class="flex-1 flex flex-col gap-1">
179
174
  <span class="text-[10px] text-ink/45">Harness</span>
180
- <select
181
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
175
+ <Picker
182
176
  value={spec.harness}
183
- onChange={(event) => setAgentField(stage.id, 'harness', event.currentTarget.value)}
184
- >
185
- <option value="">inherit</option>
186
- {catalogs.harnesses.map((entry) => (
187
- <option key={entry.id} value={entry.id}>
188
- {entry.label}
189
- </option>
190
- ))}
191
- </select>
177
+ options={[
178
+ { value: '', label: 'inherit' },
179
+ ...catalogs.harnesses.map((entry) => ({ value: entry.id, label: entry.label })),
180
+ ]}
181
+ placeholder="inherit"
182
+ ariaLabel="Stage harness"
183
+ searchable={false}
184
+ allowEmpty={false}
185
+ onChange={(value) => setAgentField(stage.id, 'harness', value)}
186
+ />
192
187
  </label>
193
188
  <label class="flex-1 flex flex-col gap-1">
194
189
  <span class="text-[10px] text-ink/45">Thinking</span>
@@ -201,16 +196,20 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
201
196
  </label>
202
197
  <label class="flex-1 flex flex-col gap-1">
203
198
  <span class="text-[10px] text-ink/45">Access</span>
204
- <select
205
- class="rounded-md border border-ink/15 bg-paper px-2 py-1 text-xs text-ink"
199
+ <Picker
206
200
  value={spec.access}
207
- onChange={(event) => setAgentField(stage.id, 'access', event.currentTarget.value)}
208
- >
209
- <option value="">inherit</option>
210
- <option value="always-ask">always-ask</option>
211
- <option value="write">write</option>
212
- <option value="yolo">yolo</option>
213
- </select>
201
+ options={[
202
+ { value: '', label: 'inherit' },
203
+ { value: 'always-ask', label: 'always-ask' },
204
+ { value: 'write', label: 'write' },
205
+ { value: 'yolo', label: 'yolo' },
206
+ ]}
207
+ placeholder="inherit"
208
+ ariaLabel="Access"
209
+ searchable={false}
210
+ allowEmpty={false}
211
+ onChange={(value) => setAgentField(stage.id, 'access', value)}
212
+ />
214
213
  </label>
215
214
  </div>
216
215
 
@@ -226,7 +225,7 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
226
225
  onInput={(event) => setAgentField(stage.id, 'prompt', event.currentTarget.value)}
227
226
  />
228
227
  </label>
229
- </fieldset>
228
+ </Section>
230
229
  );
231
230
  })}
232
231
 
@@ -234,16 +233,6 @@ export function StageSheet({ board, catalogs, onClose, onSave, onSaveDefaults }:
234
233
  {notice ? <p class="text-[11px] text-ink/50">{notice}</p> : null}
235
234
  </div>
236
235
 
237
- <footer class="flex items-center gap-2 px-3 h-11 flex-none border-t border-ink/10">
238
- <button
239
- type="button"
240
- class="rounded-md border border-ink/20 bg-ink/5 px-2 py-1 text-[11px] text-ink disabled:opacity-40"
241
- disabled={busy}
242
- onClick={() => void save()}
243
- >
244
- {busy ? 'Saving…' : 'Save'}
245
- </button>
246
- </footer>
247
- </aside>
236
+ </Sheet>
248
237
  );
249
238
  }