@kabmo-labs/kabmo 0.44.0 → 0.45.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 (253) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +1 -1
  3. package/dist/client/static/js/{CsvGrid-1t2q46rg.js → CsvGrid-z74weshk.js} +2 -2
  4. package/dist/client/static/js/{DocxView-301hxnwk.js → DocxView-dpe5x9ab.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-47bwea5t.js → DrawioView-ftzwjf8v.js} +2 -2
  6. package/dist/client/static/js/{ImageView-68zdx5ex.js → ImageView-vchn6wyq.js} +1 -1
  7. package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +2 -0
  8. package/dist/client/static/js/{Modal-fb9b4gq6.js → Modal-tteg7vtb.js} +18 -18
  9. package/dist/client/static/js/{PdfView-m64ksepp.js → PdfView-vjec8z3z.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-zyjwhpzm.js → SessionsView-g7z3fxbp.js} +1 -1
  11. package/dist/client/static/js/{SheetView-e88sqprx.js → SheetView-hhtfkdhe.js} +25 -25
  12. package/dist/client/static/js/{SvgPreview-hs9a713t.js → SvgPreview-48n3ex6p.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-fnr5kyqk.js → abnfDiagram-O67JEVCF-bpvzdara.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7v003363.js → architectureDiagram-NJMV4G6O-xw62cr7j.js} +3 -3
  16. package/dist/client/static/js/{astro-t9vjc0mc.js → astro-56b0as3q.js} +1 -1
  17. package/dist/client/static/js/bash-mevzaywf.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-k4mwbw3d.js → blockDiagram-BEXU5L5S-x3a6cgar.js} +4 -4
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-688zq6f4.js → c4Diagram-YGBWAQC7-katvaxbj.js} +2 -2
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-h0s16pxr.js → classDiagram-v2-NBCMYWYE-bjz4mqqh.js} +3 -3
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-qb2t8qq5.js → cose-bilkent-JH36ORCC-fsn80psf.js} +1 -1
  22. package/dist/client/static/js/cpp-wk9z0c5g.js +1 -0
  23. package/dist/client/static/js/css-3w3p9s67.js +1 -0
  24. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +1 -0
  25. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-syhtcr7b.js → cynefinDiagram-VND7K2PF-cfhbsnkm.js} +2 -2
  26. package/dist/client/static/js/{dagre-6A5THRUB-7wgbx6cm.js → dagre-6A5THRUB-j2wt7ns6.js} +2 -2
  27. package/dist/client/static/js/{diagram-22UHCM2B-951cmp5h.js → diagram-22UHCM2B-abrdj714.js} +8 -8
  28. package/dist/client/static/js/{diagram-3UASUU5V-mvdbqt7b.js → diagram-3UASUU5V-dbn15bxn.js} +1 -1
  29. package/dist/client/static/js/{diagram-ATOU4E4O-hkvdtgdm.js → diagram-ATOU4E4O-y79pwf7w.js} +3 -3
  30. package/dist/client/static/js/{diagram-CDSNMT55-bkkz35ca.js → diagram-CDSNMT55-f8ryt86n.js} +2 -2
  31. package/dist/client/static/js/{diagram-MLGK6HIB-z6pcrkc3.js → diagram-MLGK6HIB-ws7wn3q9.js} +1 -1
  32. package/dist/client/static/js/{diagram-MPIPVDR6-mkwf8j4m.js → diagram-MPIPVDR6-zmznrg13.js} +2 -2
  33. package/dist/client/static/js/{dockerfile-7gd570bm.js → dockerfile-qgc921kw.js} +1 -1
  34. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-trym26ts.js → ebnfDiagram-ZINNZB2B-y5q7hy1v.js} +1 -1
  35. package/dist/client/static/js/{elixir-z77c7tfn.js → elixir-12pgbgtq.js} +1 -1
  36. package/dist/client/static/js/{elk-276RUBZZ-gkhz67v6.js → elk-276RUBZZ-vddwbn6q.js} +1 -1
  37. package/dist/client/static/js/{erDiagram-OPXOYQCR-gkyr5cqs.js → erDiagram-OPXOYQCR-qdqcx4g4.js} +6 -6
  38. package/dist/client/static/js/{erlang-6vrvh2m6.js → erlang-811btv6p.js} +1 -1
  39. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +1 -0
  40. package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +1 -0
  41. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1qpme6ks.js → ganttDiagram-FUAMR5RP-763hk9rm.js} +1 -1
  42. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +1 -0
  43. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-wbg3kqak.js → gitGraphDiagram-X574FWY7-bgx1q5nw.js} +4 -4
  44. package/dist/client/static/js/graphql-027z8sc0.js +1 -0
  45. package/dist/client/static/js/html-fqda6wxx.js +1 -0
  46. package/dist/client/static/js/{index-ks23y2cd.js → index-03j5j1j0.js} +2 -2
  47. package/dist/client/static/js/{index-czedkbmb.js → index-05hx4ftf.js} +2 -2
  48. package/dist/client/static/js/index-0vk6v4y4.js +2 -0
  49. package/dist/client/static/js/{index-83pwa9c0.js → index-1nwwvv29.js} +1 -1
  50. package/dist/client/static/js/{index-31hntzse.js → index-228yzebd.js} +5 -5
  51. package/dist/client/static/js/{index-xf36nmbm.js → index-2b1wnvez.js} +2 -2
  52. package/dist/client/static/js/{index-6t21c6jt.js → index-34ff2vq6.js} +2 -2
  53. package/dist/client/static/js/{index-1923aj4g.js → index-3d21hpk7.js} +2 -2
  54. package/dist/client/static/js/{index-hfsvwfgw.js → index-3h2mr90j.js} +2 -2
  55. package/dist/client/static/js/{index-svmzgtcx.js → index-3sqndc9n.js} +2 -2
  56. package/dist/client/static/js/{index-6gyk52ff.js → index-47wn2gjx.js} +1 -1
  57. package/dist/client/static/js/{index-6ah5sj5y.js → index-4b5b6g0k.js} +1 -1
  58. package/dist/client/static/js/{index-53ysgsd2.js → index-5b2vsbcf.js} +1 -1
  59. package/dist/client/static/js/{index-qm92sf9w.js → index-5mrqfs82.js} +12 -12
  60. package/dist/client/static/js/{index-62ng8tkj.js → index-61j9qkck.js} +3 -3
  61. package/dist/client/static/js/index-6bm4pw90.css +1 -0
  62. package/dist/client/static/js/{index-fj4k07zt.js → index-6sqmhdyv.js} +2 -2
  63. package/dist/client/static/js/{index-gtkhz0hj.js → index-8dtp7mt0.js} +2 -2
  64. package/dist/client/static/js/index-a11ptyzf.js +1 -0
  65. package/dist/client/static/js/{index-nvevymac.js → index-acphtw1r.js} +2 -2
  66. package/dist/client/static/js/{index-pxm44qfd.js → index-cj39b26c.js} +1 -1
  67. package/dist/client/static/js/{index-wytdbvax.js → index-dgjerk4w.js} +3 -3
  68. package/dist/client/static/js/{index-ad4x44d6.js → index-dn6pqym4.js} +6 -6
  69. package/dist/client/static/js/{index-nr8s5xm9.js → index-ehg2ftnp.js} +2 -2
  70. package/dist/client/static/js/{index-jbkkwa2q.js → index-f51jxezc.js} +2 -2
  71. package/dist/client/static/js/index-f7paep2f.js +2 -0
  72. package/dist/client/static/js/{index-qkjx6521.js → index-f98dhbt4.js} +4 -4
  73. package/dist/client/static/js/{index-92n96mgd.js → index-fbct0jcf.js} +2 -2
  74. package/dist/client/static/js/{index-bjqz7swa.js → index-fqatn0vh.js} +1 -1
  75. package/dist/client/static/js/{index-tzdm1y3z.js → index-gcwmpfr4.js} +2 -2
  76. package/dist/client/static/js/{index-v5npdwy2.js → index-gmq5pbcv.js} +51 -51
  77. package/dist/client/static/js/{index-fbpc1wx6.js → index-gzafyqsr.js} +21 -21
  78. package/dist/client/static/js/{index-4y4hshcx.js → index-gzp4j2h5.js} +2 -2
  79. package/dist/client/static/js/{index-nqjd3hh5.js → index-h0rmkz9n.js} +2 -2
  80. package/dist/client/static/js/{index-8trggh1z.js → index-jpp0zm7t.js} +7 -7
  81. package/dist/client/static/js/{index-qf9x7yet.js → index-kg2sk8cf.js} +1 -1
  82. package/dist/client/static/js/{index-rpzxrr2d.js → index-mrw7qweg.js} +1 -1
  83. package/dist/client/static/js/{index-s8bktzpg.js → index-mwm8aptp.js} +1 -1
  84. package/dist/client/static/js/{index-c3v62nvt.js → index-n1ga63de.js} +2 -2
  85. package/dist/client/static/js/{index-22whvfdw.js → index-nzhwd6t3.js} +2 -2
  86. package/dist/client/static/js/{index-tr2pkfs6.js → index-p21mvqc2.js} +2 -2
  87. package/dist/client/static/js/{index-qsw5edtk.js → index-pfj3sd1n.js} +5 -5
  88. package/dist/client/static/js/{index-pysqpc5n.js → index-pxq4v81r.js} +2 -2
  89. package/dist/client/static/js/{index-07yh7qx0.js → index-q76jfb54.js} +1 -1
  90. package/dist/client/static/js/{index-6s4mrdew.js → index-qt9jc4ck.js} +2 -2
  91. package/dist/client/static/js/{index-ehacfgwm.js → index-r6e44vkx.js} +1 -1
  92. package/dist/client/static/js/{index-232nsp2c.js → index-szk3vk8h.js} +1 -1
  93. package/dist/client/static/js/{index-e6rm5xzj.js → index-t0yv1375.js} +1 -1
  94. package/dist/client/static/js/{index-n0matkz9.js → index-vgcm2g0g.js} +2 -2
  95. package/dist/client/static/js/{index-kwpaz891.js → index-vkerrwpa.js} +2 -2
  96. package/dist/client/static/js/{index-v7bcgh77.js → index-w57zbym7.js} +2 -2
  97. package/dist/client/static/js/{index-yfjvx4yf.js → index-wqrdgt1g.js} +2 -2
  98. package/dist/client/static/js/{index-barbpakv.js → index-x2wvq4ae.js} +2 -2
  99. package/dist/client/static/js/{index-3w845q50.js → index-x7rfmwg8.js} +2 -2
  100. package/dist/client/static/js/{index-cq98p2rb.js → index-xkwybnf3.js} +179 -179
  101. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +1 -0
  102. package/dist/client/static/js/{infoDiagram-VRGFBTTK-yebngg8c.js → infoDiagram-VRGFBTTK-e66pw8d9.js} +1 -1
  103. package/dist/client/static/js/ini-3cx6tmv4.js +1 -0
  104. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-kh4nqj6q.js → ishikawaDiagram-OU5B5YK6-ehc0q24d.js} +1 -1
  105. package/dist/client/static/js/java-zs6qh1dm.js +1 -0
  106. package/dist/client/static/js/javascript-b9mkygak.js +1 -0
  107. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-4khnf8x1.js → journeyDiagram-ZHPQQLJL-hye05qtd.js} +2 -2
  108. package/dist/client/static/js/jsx-gahhfczw.js +1 -0
  109. package/dist/client/static/js/{julia-svwxx41e.js → julia-mgsev9df.js} +1 -1
  110. package/dist/client/static/js/{kanban-definition-PNTS6WVX-snmq3wq4.js → kanban-definition-PNTS6WVX-vce614m8.js} +6 -6
  111. package/dist/client/static/js/lua-d8enp14s.js +1 -0
  112. package/dist/client/static/js/markdown-qetaj4vp.js +1 -0
  113. package/dist/client/static/js/{mermaid.core-yctw30sk.js → mermaid.core-gc79re5p.js} +7 -7
  114. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-atfv66wq.js → mindmap-definition-NLK3R4M7-ft1whaf5.js} +3 -3
  115. package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +1 -0
  116. package/dist/client/static/js/one-light-2b5w3ksh.js +1 -0
  117. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +1 -0
  118. package/dist/client/static/js/{pegDiagram-GJSIUBJH-hpbtxjht.js → pegDiagram-GJSIUBJH-2s4ykhaa.js} +1 -1
  119. package/dist/client/static/js/{perl-mr0ds2ex.js → perl-6n93vjsa.js} +1 -1
  120. package/dist/client/static/js/{php-5h3wt6tv.js → php-w23nmbtc.js} +1 -1
  121. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +1 -0
  122. package/dist/client/static/js/{pieDiagram-5QR66LMP-9zrtkdr2.js → pieDiagram-5QR66LMP-7h8dp0z3.js} +2 -2
  123. package/dist/client/static/js/properties-g6tpq003.js +1 -0
  124. package/dist/client/static/js/python-cy06fzhg.js +1 -0
  125. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-xq970vx1.js → quadrantDiagram-O4NWA36T-pteyxjxr.js} +2 -2
  126. package/dist/client/static/js/r-vw8berfv.js +1 -0
  127. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +1 -0
  128. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +1 -0
  129. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +1 -0
  130. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +1 -0
  131. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +1 -0
  132. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1g9jchbk.js → railroadDiagram-XR7U4H2S-68z9wdt0.js} +1 -1
  133. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ntt088y4.js → requirementDiagram-PLB6GJNP-c08nmey6.js} +3 -3
  134. package/dist/client/static/js/{ruby-nn836rtq.js → ruby-ag3b3t9t.js} +1 -1
  135. package/dist/client/static/js/{rust-eygk56y5.js → rust-ke5ec0w5.js} +1 -1
  136. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-95k8c5v6.js → sankeyDiagram-IPEJSGJF-2r3kvjs5.js} +3 -3
  137. package/dist/client/static/js/{sass-c2bk03e4.js → sass-x0eez0kp.js} +1 -1
  138. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-qfvxrwfa.js → sequenceDiagram-PO4LG4MO-ctjycd88.js} +6 -6
  139. package/dist/client/static/js/{sizeCapture-INFHLROL-0m7dc5nd.js → sizeCapture-INFHLROL-97ndea95.js} +1 -1
  140. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-femwcn7n.js → stateDiagram-v2-GCMORJYK-aqnmsb96.js} +3 -3
  141. package/dist/client/static/js/{svelte-bfy1rq5g.js → svelte-tg19by0f.js} +1 -1
  142. package/dist/client/static/js/{swimlanes-2SLR337P-5n1qq48r.js → swimlanes-2SLR337P-v50cx1nx.js} +1 -1
  143. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +8 -0
  144. package/dist/client/static/js/{timeline-definition-EJHVYXUP-vdsj18be.js → timeline-definition-EJHVYXUP-1ggrtdcj.js} +4 -4
  145. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +1 -0
  146. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +1 -0
  147. package/dist/client/static/js/tsx-3dzv8h6k.js +1 -0
  148. package/dist/client/static/js/typescript-44vs0wn4.js +1 -0
  149. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-psjbrprk.js → usecaseDiagram-POWQR4AR-ybcwhpzs.js} +19 -19
  150. package/dist/client/static/js/{vennDiagram-UO4OBE2U-4yn9kac9.js → vennDiagram-UO4OBE2U-p9ggrt07.js} +4 -4
  151. package/dist/client/static/js/{vue-0fwtgwj4.js → vue-mhj4sme0.js} +1 -1
  152. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +1 -0
  153. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-js0tbpca.js → wardleyDiagram-VNRHLVJA-v79nb9kx.js} +2 -2
  154. package/dist/client/static/js/xml-yvv5fn3k.js +1 -0
  155. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-svr38ygh.js → xychartDiagram-PMCCYNJV-43thqscz.js} +2 -2
  156. package/dist/client/static/js/yaml-avewh7n5.js +1 -0
  157. package/marketplace/marketplace.json +7 -0
  158. package/marketplace/plugins/github-actions/README.md +142 -0
  159. package/marketplace/plugins/github-actions/icon.svg +12 -0
  160. package/marketplace/plugins/github-actions/package.json +30 -0
  161. package/marketplace/plugins/github-actions/settings-schema.json +27 -0
  162. package/marketplace/plugins/github-actions/src/app.tsx +32 -0
  163. package/marketplace/plugins/github-actions/src/panel/Actions.tsx +105 -0
  164. package/marketplace/plugins/github-actions/src/panel/LogView.tsx +76 -0
  165. package/marketplace/plugins/github-actions/src/panel/Row.tsx +59 -0
  166. package/marketplace/plugins/github-actions/src/panel/RunView.tsx +197 -0
  167. package/marketplace/plugins/github-actions/src/panel/format.ts +74 -0
  168. package/marketplace/plugins/github-actions/src/panel/index.test.tsx +86 -0
  169. package/marketplace/plugins/github-actions/src/panel/index.tsx +256 -0
  170. package/marketplace/plugins/github-actions/src/panel/picker.test.tsx +68 -0
  171. package/marketplace/plugins/github-actions/src/panel/test-fixtures.ts +98 -0
  172. package/marketplace/plugins/github-actions/src/panel/test-harness.tsx +175 -0
  173. package/marketplace/plugins/github-actions/src/protocol.ts +156 -0
  174. package/marketplace/plugins/github-actions/src/server/github.test.ts +264 -0
  175. package/marketplace/plugins/github-actions/src/server/github.ts +309 -0
  176. package/marketplace/plugins/github-actions/src/server/http.test.ts +150 -0
  177. package/marketplace/plugins/github-actions/src/server/http.ts +202 -0
  178. package/marketplace/plugins/github-actions/src/server/json.ts +44 -0
  179. package/marketplace/plugins/github-actions/src/server/logtext.test.ts +84 -0
  180. package/marketplace/plugins/github-actions/src/server/logtext.ts +59 -0
  181. package/marketplace/plugins/github-actions/src/server/progress.test.ts +96 -0
  182. package/marketplace/plugins/github-actions/src/server/progress.ts +62 -0
  183. package/marketplace/plugins/github-actions/src/server/remote.ts +84 -0
  184. package/marketplace/plugins/github-actions/src/server/scope.ts +51 -0
  185. package/marketplace/plugins/github-actions/src/server/token.ts +84 -0
  186. package/marketplace/plugins/github-actions/src/server.ts +163 -0
  187. package/marketplace/plugins/github-actions/src/state.test.ts +55 -0
  188. package/marketplace/plugins/github-actions/src/state.ts +63 -0
  189. package/marketplace/plugins/github-actions/tsconfig.json +16 -0
  190. package/package.json +1 -1
  191. package/src/client/components/mobile/RightSidebar.tsx +164 -66
  192. package/src/client/components/mobile/header-titlebar.test.tsx +92 -0
  193. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +179 -0
  194. package/src/client/components/mobile/panel-chips.test.tsx +12 -0
  195. package/src/client/components/mobile/panel-chips.tsx +5 -1
  196. package/src/client/components/mobile/right-drawer-nav.test.tsx +258 -0
  197. package/src/client/components/settings/apply-side-effects.ts +6 -0
  198. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +123 -2
  199. package/src/client/components/workspace/panel-tabs/Home.tsx +14 -2
  200. package/src/client/components/workspace/panel-tabs/TabChip.tsx +173 -0
  201. package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +118 -0
  202. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +89 -102
  203. package/src/client/components/workspace/panel-tabs/index.tsx +9 -1
  204. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +63 -0
  205. package/src/client/hooks/workspace/panel-nav.test.ts +39 -1
  206. package/src/client/lib/ui/control-plate.ts +33 -0
  207. package/src/server/lib/bundler/titlebar-css.test.ts +5 -3
  208. package/src/shared/lib/settings/defaults.ts +2 -1
  209. package/src/shared/lib/workspace/panel-nav.test.ts +36 -0
  210. package/src/shared/lib/workspace/panel-nav.ts +43 -0
  211. package/src/shared/types/settings/state.ts +9 -1
  212. package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +0 -2
  213. package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +0 -1
  214. package/dist/client/static/js/bash-fjzhxy10.js +0 -1
  215. package/dist/client/static/js/cpp-9f6zkdd4.js +0 -1
  216. package/dist/client/static/js/css-y4y3qtsb.js +0 -1
  217. package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +0 -1
  218. package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +0 -1
  219. package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +0 -1
  220. package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +0 -1
  221. package/dist/client/static/js/graphql-amk52c95.js +0 -1
  222. package/dist/client/static/js/html-2y935m7r.js +0 -1
  223. package/dist/client/static/js/index-19ffgf9a.js +0 -2
  224. package/dist/client/static/js/index-204ae4vs.js +0 -2
  225. package/dist/client/static/js/index-n6fbd265.js +0 -1
  226. package/dist/client/static/js/index-sc7r305t.css +0 -1
  227. package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +0 -1
  228. package/dist/client/static/js/ini-kemnmt16.js +0 -1
  229. package/dist/client/static/js/java-caqpfm88.js +0 -1
  230. package/dist/client/static/js/javascript-zegm06a1.js +0 -1
  231. package/dist/client/static/js/jsx-bvterpm5.js +0 -1
  232. package/dist/client/static/js/lua-1hcfm8ya.js +0 -1
  233. package/dist/client/static/js/markdown-n6na4ykv.js +0 -1
  234. package/dist/client/static/js/one-dark-pro-c1vnxka7.js +0 -1
  235. package/dist/client/static/js/one-light-mbxx52p5.js +0 -1
  236. package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +0 -1
  237. package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +0 -1
  238. package/dist/client/static/js/properties-nxcks67c.js +0 -1
  239. package/dist/client/static/js/python-58p0gqn0.js +0 -1
  240. package/dist/client/static/js/r-eyn8en0g.js +0 -1
  241. package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +0 -1
  242. package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +0 -1
  243. package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +0 -1
  244. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +0 -1
  245. package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +0 -1
  246. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +0 -8
  247. package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +0 -1
  248. package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +0 -1
  249. package/dist/client/static/js/tsx-fnzxsv25.js +0 -1
  250. package/dist/client/static/js/typescript-0ppbqrb6.js +0 -1
  251. package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +0 -1
  252. package/dist/client/static/js/xml-v1ytr8qz.js +0 -1
  253. package/dist/client/static/js/yaml-txrqz62t.js +0 -1
@@ -0,0 +1,163 @@
1
+ import type { KabmoPluginApi } from '@kabmo-labs/kabmo-sdk';
2
+
3
+ import {
4
+ RPC,
5
+ type ActInput,
6
+ type ActResult,
7
+ type ListInput,
8
+ type LogInput,
9
+ type LogTail,
10
+ type RunDetail,
11
+ type RunInput,
12
+ type RunPage,
13
+ type RunVerb,
14
+ } from './protocol';
15
+ import { act, getRun, jobLog, listJobs, listRuns, pageSize, type GithubContext } from './server/github';
16
+ import { kvCache, type JsonCache } from './server/http';
17
+ import { progressOf } from './server/progress';
18
+ import { isGithubHost, parseRemote } from './server/remote';
19
+ import { readOrigin, resolveScope } from './server/scope';
20
+ import { resolveToken } from './server/token';
21
+
22
+ /**
23
+ * The server half.
24
+ *
25
+ * Two decisions live here rather than in the adapter:
26
+ *
27
+ * - **A read is also a cache fill.** Every successful list fills the plugin's
28
+ * HTTP cache, so a second tab that asks the same question answers `304` — no
29
+ * extra request, no second source of truth.
30
+ * - **A write invalidates by prefix.** Cancel and re-run change the run, its jobs
31
+ * and the list that carried it — three cached URLs — so the whole
32
+ * `/actions/runs` prefix for the repository is dropped rather than enumerated.
33
+ */
34
+
35
+ interface Settings {
36
+ token: string;
37
+ apiBase: string;
38
+ perPage: number;
39
+ logTailKb: number;
40
+ }
41
+
42
+ export default function plugin(api: KabmoPluginApi) {
43
+ const cache: JsonCache = kvCache(api.storage.kv);
44
+
45
+ async function readSettings(): Promise<Settings> {
46
+ const values = await api.settings.read();
47
+ const number = (key: string, fallback: number): number => {
48
+ const value = values[key];
49
+ return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
50
+ };
51
+ return {
52
+ token: typeof values.token === 'string' ? values.token : '',
53
+ apiBase: typeof values.apiBase === 'string' ? values.apiBase : '',
54
+ perPage: pageSize(number('perPage', 30)),
55
+ logTailKb: Math.min(1024, Math.max(1, number('logTailKb', 64))),
56
+ };
57
+ }
58
+
59
+ /**
60
+ * Everything a read needs. A refusal is THROWN, because the host reports a
61
+ * thrown handler as `{ ok: false, error }` — the one shape the kit's `useRpc`
62
+ * surfaces as a failure. Returning a `{ ok: false }` value instead would reach
63
+ * the panel as a SUCCESS whose payload happens to describe an error, which is
64
+ * the exactly-wrong-but-plausible outcome this comment prevents.
65
+ */
66
+ async function contextFor(input: { root: string; repo: string }): Promise<GithubContext> {
67
+ const dir = resolveScope(input);
68
+ if (!dir) throw new Error('That repository path is outside the workspace root.');
69
+ const origin = readOrigin(dir);
70
+ if (!origin) {
71
+ throw new Error('This checkout has no `origin` remote. Add one with `git remote add origin <url>`.');
72
+ }
73
+ const settings = await readSettings();
74
+ const remote = parseRemote(origin, settings.apiBase);
75
+ if (!remote) throw new Error(`This plugin cannot read the remote \`${origin}\`.`);
76
+ if (!isGithubHost(remote.host)) {
77
+ throw new Error(`Actions is GitHub's: this checkout's remote is ${remote.host}.`);
78
+ }
79
+ const credential = resolveToken({ setting: settings.token, env: Bun.env, host: remote.host });
80
+ return {
81
+ apiBase: remote.apiBase,
82
+ slug: remote.slug,
83
+ host: remote.host,
84
+ token: credential.token,
85
+ perPage: settings.perPage,
86
+ cache,
87
+ };
88
+ }
89
+
90
+ /** One list read. */
91
+ async function readPage(input: ListInput): Promise<RunPage> {
92
+ const resolved = await contextFor(input);
93
+ const result = await listRuns(resolved, input.filter);
94
+ if (!result.ok) throw new Error(result.message);
95
+ return {
96
+ slug: resolved.slug,
97
+ host: resolved.host,
98
+ authenticated: result.authenticated,
99
+ branch: input.filter.branch,
100
+ status: input.filter.status,
101
+ runs: result.runs,
102
+ total: result.total,
103
+ truncated: result.truncated,
104
+ notes: result.notes,
105
+ };
106
+ }
107
+
108
+ api.rpc.register<ListInput, unknown>(RPC.list, {
109
+ handler: (input) => {
110
+ if (!input || typeof input.root !== 'string') throw new Error('A workspace root is required.');
111
+ return readPage({
112
+ root: input.root,
113
+ repo: typeof input.repo === 'string' ? input.repo : '.',
114
+ filter: {
115
+ branch: typeof input.filter?.branch === 'string' ? input.filter.branch : '',
116
+ status: typeof input.filter?.status === 'string' ? input.filter.status : '',
117
+ },
118
+ });
119
+ },
120
+ });
121
+
122
+ api.rpc.register<RunInput, unknown>(RPC.run, {
123
+ handler: async (input): Promise<RunDetail> => {
124
+ const resolved = await contextFor(input);
125
+ const run = await getRun(resolved, input.id);
126
+ if (!run.ok) throw new Error(run.message);
127
+ const jobs = await listJobs(resolved, input.id);
128
+ if (!jobs.ok) throw new Error(jobs.message);
129
+ return {
130
+ run: run.run,
131
+ jobs: jobs.jobs,
132
+ progress: progressOf(jobs.jobs),
133
+ notes: jobs.notes,
134
+ };
135
+ },
136
+ });
137
+
138
+ api.rpc.register<LogInput, unknown>(RPC.log, {
139
+ handler: async (input): Promise<LogTail> => {
140
+ const resolved = await contextFor(input);
141
+ const settings = await readSettings();
142
+ const cap = typeof input.tail === 'number' && input.tail > 0 ? input.tail : settings.logTailKb * 1024;
143
+ const log = await jobLog(resolved, input.jobId, cap);
144
+ if (!log.ok) throw new Error(log.message);
145
+ return log.log;
146
+ },
147
+ });
148
+
149
+ api.rpc.register<ActInput, unknown>(RPC.act, {
150
+ handler: async (input): Promise<ActResult> => {
151
+ const verbs: readonly RunVerb[] = ['cancel', 'rerun', 'rerun-failed'];
152
+ if (!verbs.includes(input.verb)) throw new Error(`Unknown verb "${String(input.verb)}".`);
153
+ const resolved = await contextFor(input);
154
+ const result = await act(resolved, input.id, input.verb);
155
+ if (!result.ok) throw new Error(result.message);
156
+ // The run, its jobs and the list all describe the state the verb changed.
157
+ await cache.invalidate(`/repos/${resolved.slug}/actions/`);
158
+ return { message: result.message };
159
+ },
160
+ });
161
+
162
+ api.log.info('github-actions server half loaded');
163
+ }
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The vocabulary. Every case here is a word GitHub actually sends, and the two
8
+ * failures this file exists to prevent are a real failure painted green and an
9
+ * unfinished run painted grey.
10
+ */
11
+
12
+ import { describe, expect, test } from 'bun:test';
13
+
14
+ import { stateOf, worstState } from './state';
15
+
16
+ describe('stateOf', () => {
17
+ test('a finished run reads its conclusion', () => {
18
+ expect(stateOf('completed', 'success')).toBe('success');
19
+ expect(stateOf('completed', 'failure')).toBe('failure');
20
+ expect(stateOf('completed', 'timed_out')).toBe('failure');
21
+ expect(stateOf('completed', 'action_required')).toBe('failure');
22
+ });
23
+
24
+ test('a skipped or cancelled job is not a pass', () => {
25
+ expect(stateOf('completed', 'skipped')).toBe('neutral');
26
+ expect(stateOf('completed', 'cancelled')).toBe('neutral');
27
+ expect(stateOf('completed', 'canceled')).toBe('neutral');
28
+ });
29
+
30
+ test('a run in flight is pending although its conclusion is null', () => {
31
+ expect(stateOf('in_progress', null)).toBe('pending');
32
+ expect(stateOf('queued', null)).toBe('pending');
33
+ expect(stateOf('waiting', null)).toBe('pending');
34
+ expect(stateOf('pending', null)).toBe('pending');
35
+ });
36
+
37
+ test('an unknown word is neutral, never failure and never success', () => {
38
+ expect(stateOf('completed', 'brand_new_conclusion')).toBe('neutral');
39
+ expect(stateOf('who_knows', null)).toBe('neutral');
40
+ expect(stateOf('', '')).toBe('neutral');
41
+ expect(stateOf(null, undefined)).toBe('neutral');
42
+ });
43
+ });
44
+
45
+ describe('worstState', () => {
46
+ test('one failing job fails the roll-up', () => {
47
+ expect(worstState(['success', 'success', 'failure'])).toBe('failure');
48
+ expect(worstState(['success', 'pending'])).toBe('pending');
49
+ expect(worstState(['success', 'neutral'])).toBe('neutral');
50
+ });
51
+
52
+ test('an empty list has no state at all', () => {
53
+ expect(worstState([])).toBeNull();
54
+ });
55
+ });
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * GitHub's vocabulary, mapped once, for both halves.
8
+ *
9
+ * A run, a job and a step all spell their progress as `status` plus
10
+ * `conclusion`, and a reader only ever needs four answers from them: passing,
11
+ * failing, still running, or something this panel cannot judge. The mapping is a
12
+ * table rather than a chain of `if`s because the word lists are enumerable and
13
+ * the host keeps adding to them.
14
+ *
15
+ * **A word nobody recognizes is `neutral`, never `failure`, and never
16
+ * `success`.** A new conclusion painted red over a run that may be fine is a
17
+ * false alarm; painted green it hides a real failure. `neutral` is the honest
18
+ * third answer, and the panel shows GitHub's own word beside it.
19
+ */
20
+
21
+ import type { RunState } from './protocol';
22
+
23
+ const WORDS: Readonly<Record<string, RunState>> = {
24
+ success: 'success',
25
+ neutral: 'neutral',
26
+ skipped: 'neutral',
27
+ cancelled: 'neutral',
28
+ canceled: 'neutral',
29
+ stale: 'neutral',
30
+ failure: 'failure',
31
+ timed_out: 'failure',
32
+ action_required: 'failure',
33
+ startup_failure: 'failure',
34
+ error: 'failure',
35
+ // Anything not finished is pending, whether the host says it with a status
36
+ // (`queued`, `in_progress`) or with a conclusion-shaped word (`pending`).
37
+ queued: 'pending',
38
+ in_progress: 'pending',
39
+ waiting: 'pending',
40
+ requested: 'pending',
41
+ pending: 'pending',
42
+ completed: 'neutral',
43
+ };
44
+
45
+ /** The state one run/job/step is in, from its two host fields. */
46
+ export function stateOf(status: string | null | undefined, conclusion: string | null | undefined): RunState {
47
+ const settled = (conclusion ?? '').trim().toLowerCase();
48
+ if (settled) return WORDS[settled] ?? 'neutral';
49
+ const live = (status ?? '').trim().toLowerCase();
50
+ if (!live) return 'neutral';
51
+ // A run in flight has no conclusion, and reading the empty conclusion as
52
+ // `neutral` would paint a grey badge over a job that has not started.
53
+ return WORDS[live] ?? 'neutral';
54
+ }
55
+
56
+ /** How bad a state is, for a roll-up. */
57
+ const RANK: Readonly<Record<RunState, number>> = { success: 0, neutral: 1, pending: 2, failure: 3 };
58
+
59
+ /** The worst of the given states, or null when there are none. */
60
+ export function worstState(states: readonly RunState[]): RunState | null {
61
+ if (states.length === 0) return null;
62
+ return states.reduce((worst, state) => (RANK[state] > RANK[worst] ? state : worst), states[0]!);
63
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "lib": ["ESNext", "DOM", "DOM.Iterable"],
7
+ "jsx": "react-jsx",
8
+ "jsxImportSource": "preact",
9
+ "strict": true,
10
+ "noEmit": true,
11
+ "skipLibCheck": true,
12
+ "types": [],
13
+ "allowArbitraryExtensions": true
14
+ },
15
+ "include": ["src"]
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kabmo-labs/kabmo",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Web console and diagnostic workbench for AI coding agents: Elysia + Preact on Bun.",
5
5
  "license": "MIT",
6
6
  "author": "Wijanarko Putra Rajeb <wijanarko.rajeb@gmail.com>",
@@ -1,11 +1,10 @@
1
- import { Suspense } from 'preact/compat';
2
- import { useCallback, useEffect } from 'preact/hooks';
3
- import { X } from 'lucide-preact';
1
+ import { useCallback, useEffect, useMemo, useRef } from 'preact/hooks';
4
2
  import { usePanelCatalog, type PanelBodyProps } from '@/client/components/workspace/plugin-panel/resolve';
5
- import { PanelHostProvider } from '@kabmo-labs/kabmo-ui';
6
3
  import { useGitStatus } from '@/client/hooks/workspace/git-status';
7
4
  import { useResolvedRepo } from '@/client/hooks/workspace/repo-scope';
8
5
  import { useSharedSessionState } from '@/client/hooks/workspace/session-state';
6
+ import { useSessionStateContext } from '@/client/hooks/workspace/session-state/context';
7
+ import { getSessionValue } from '@/shared/lib/workspace/session-state/store';
9
8
  import { useLeftDock } from '@/client/hooks/workspace/left-dock';
10
9
  import { SESSIONS_VIEW_ID } from '@/shared/lib/workspace/left-dock';
11
10
  import { phoneRightPanels } from '@/shared/lib/workspace/mobile-dock';
@@ -15,11 +14,17 @@ import {
15
14
  panelWantsSoftKeyboard,
16
15
  } from '@/client/components/workspace/terminal-panel/soft-keyboard';
17
16
  import { releaseSoftKeyboard } from '@/client/lib/ui/soft-keyboard';
18
- import { PanelChips } from '@/client/components/mobile/panel-chips';
17
+ import { PanelTabsColumn } from '@/client/components/workspace/panel-tabs';
18
+ import {
19
+ DrawerBody,
20
+ DrawerCloseAction,
21
+ DrawerHeader,
22
+ drawerStripProps,
23
+ } from '@/client/components/mobile/mobile-right-sidebar/Chrome';
24
+ import { usePanelTabs } from '@/client/hooks/workspace/panel-tabs';
25
+ import { useMobileRightPanelNav } from '@/client/hooks/workspace/mobile-right-panel-nav';
19
26
  import { VisibilityMenu } from '@/client/components/layout/VisibilityMenu';
20
27
  import { usePanelVisibilityMenu } from '@/client/hooks/workspace/panel-visibility-menu';
21
- import { titlebarPaddingLeft, titlebarPaddingRight } from '@/shared/lib/ui/titlebar';
22
- import { dragRegionProps, titlebarInsetLeft } from '@/client/lib/desktop/titlebar';
23
28
 
24
29
  interface MobileRightSidebarProps {
25
30
  enabled?: boolean;
@@ -56,6 +61,7 @@ export function MobileRightSidebar({
56
61
  // the user never asked for a search. Restoring the tab they left also keeps
57
62
  // the phone and the desktop on the same view.
58
63
  const [activeTab, setActiveTab] = useSharedSessionState<string>('layout.mobileRightPanel', DEFAULT_RIGHT_PANEL_TYPE);
64
+ const { sessionId } = useSessionStateContext();
59
65
  // ONE catalog, the same one the desktop bars read, and deliberately `all`:
60
66
  // a phone has ONE drawer, so a plugin panel the user placed on the left must
61
67
  // stay reachable here — reading only the right column would make placing a
@@ -73,6 +79,104 @@ export function MobileRightSidebar({
73
79
  // drawer that has views would be a wrong answer — the first view is drawn
74
80
  // instead, and the stored id is replaced on the next click.
75
81
  const activePanel = catalog.find((panel) => panel.id === activeTab) ?? catalog[0];
82
+
83
+ /**
84
+ * The chrome the drawer navigates with.
85
+ *
86
+ * `classic` is the strip of the whole catalog this drawer always had. `tabs`
87
+ * is the desktop's WORKING SET on a phone: the strip holds only opened views
88
+ * and a home page lists the rest, so a drawer that used to open on eleven
89
+ * chips opens on what the user was actually using. The set is the SAME key the
90
+ * desktop right column writes (`layout.rightPanelTabs`) — one working set
91
+ * across the layouts, which is why switching device does not lose the tabs.
92
+ */
93
+ const navStyle = useMobileRightPanelNav();
94
+ const tabsMode = navStyle === 'tabs';
95
+ const known = useMemo(() => new Set(catalog.map((panel) => panel.id)), [catalog]);
96
+ const tabsState = usePanelTabs('right', known, null);
97
+ const { open: openTab, tabs: openTabIds } = tabsState;
98
+ // Whether the session's blob actually holds a right-drawer view. Read through
99
+ // the store (not the hook's fallback), because "unset" and "set to the
100
+ // default" are different facts here.
101
+ const hasStoredTab = getSessionValue<string>(sessionId, 'layout.mobileRightPanel') !== undefined;
102
+
103
+ /**
104
+ * Every gesture that CHANGES the view must arm the soft keyboard before the
105
+ * terminal mounts (`soft-keyboard.ts`); the tap that opened the drawer arms it
106
+ * optimistically and the drawer releases it when another view lands. A card
107
+ * and a chip are both such a gesture, so both go through here rather than
108
+ * straight to the hook.
109
+ */
110
+ const arm = (id: string) => {
111
+ if (id !== activePanel?.id) armTerminalSoftKeyboard(id);
112
+ };
113
+
114
+ /**
115
+ * A tab change the DRAWER itself made — a chip, a card, a close — as opposed
116
+ * to one that arrived from outside.
117
+ *
118
+ * `layout.mobileRightPanel` is BOTH the mirror of the strip's selection and
119
+ * the slot an outside caller writes to ask for a view (`omp:open-panel`, the
120
+ * layout's own handler). The seed effect below cannot tell "the user just
121
+ * closed this tab" from "something asked for this view": a close writes
122
+ * `active` to the neighbour while `activeTab` is still one render behind, so
123
+ * the seed re-opened the tab that had just been closed — and an open did the
124
+ * same to the view the user was leaving. That is the reported "the active
125
+ * panel will not close, and the previous one comes back with the next one".
126
+ *
127
+ * The flag marks the commit that follows a gesture from here; the seed effect
128
+ * consumes it and skips exactly that one. A mount and an outside request
129
+ * never set it, so both still seed.
130
+ */
131
+ const ownGesture = useRef(false);
132
+ const tabHandle = {
133
+ ...tabsState,
134
+ select: (id: string) => {
135
+ ownGesture.current = true;
136
+ arm(id);
137
+ tabsState.select(id);
138
+ },
139
+ open: (id: string) => {
140
+ ownGesture.current = true;
141
+ arm(id);
142
+ tabsState.open(id);
143
+ },
144
+ close: (id: string) => {
145
+ ownGesture.current = true;
146
+ tabsState.close(id);
147
+ },
148
+ };
149
+ // The drawer is a SCREEN, so only the active view may be mounted and a delete
150
+ // of the whole set must not leave the last one behind it. `activeTab` stays
151
+ // the stored mirror: the layout's `omp:open-panel` writes it and the keyboard
152
+ // arming reads it.
153
+ useEffect(() => {
154
+ if (!tabsMode) return;
155
+ if (tabsState.active !== null && tabsState.active !== activeTab) setActiveTab(tabsState.active);
156
+ }, [tabsMode, tabsState.active, activeTab, setActiveTab]);
157
+ useEffect(() => {
158
+ if (!tabsMode || tabsState.home) return;
159
+ // A commit the drawer made ITSELF (a chip, a card, a close) is already the
160
+ // answer, not a request: re-seeding it would reopen the tab that was just
161
+ // closed, or the view the user is leaving. Only a commit that came from
162
+ // outside (the drawer mounting, `omp:open-panel` writing the key while the
163
+ // drawer is closed) seeds.
164
+ if (ownGesture.current) {
165
+ ownGesture.current = false;
166
+ return;
167
+ }
168
+ // A RESTORED selection is not a request, the same rule the desktop column
169
+ // follows: `layout.mobileRightPanel` falls back to `files`, so seeding from
170
+ // it unconditionally opened a Files tab on every fresh chat and the home
171
+ // page never appeared. Only a value the SESSION actually stores is adopted;
172
+ // a fresh drawer starts on its catalog.
173
+ if (!hasStoredTab) return;
174
+ // Only a view this drawer can DRAW becomes a tab; an id the catalog dropped
175
+ // (a panel moved to the left rail, a plugin unloaded) would be filtered
176
+ // straight back out and re-opened on the next render.
177
+ if (openTabIds.includes(activeTab) || !known.has(activeTab)) return;
178
+ openTab(activeTab);
179
+ }, [tabsMode, tabsState.home, hasStoredTab, activeTab, openTabIds, openTab, known]);
76
180
  // Same source the desktop activity bar uses — the Source Control view's own
77
181
  // repo pick, read shared so switching repos moves this dot too. Polls only
78
182
  // while this drawer is the mounted screen (the poll is visibility-gated).
@@ -125,48 +229,49 @@ export function MobileRightSidebar({
125
229
  layout: 'phone',
126
230
  };
127
231
 
232
+ /**
233
+ * The drawer's chrome, and the reason there are two shapes of it.
234
+ *
235
+ * `classic` has a HEADER because the header IS its navigation: the chip strip
236
+ * lives in it, so it must be tall enough to hold a 44px touch target and it
237
+ * has to say what the drawer is. `tabs` has no header at all — the strip above
238
+ * the body already names the view on every chip, and a second row stating
239
+ * "Panel" plus a close button cost 56px of a phone screen to repeat what the
240
+ * strip says. That is also what the desktop column does: under `tabs` the
241
+ * strip is the whole chrome.
242
+ *
243
+ * Two things the header carried survive its removal under `tabs`: the WINDOW
244
+ * contract (`data-drag-region`, the shell's traffic-light inset, the safe-area
245
+ * top) and the close control, which moves into the strip's trailing actions.
246
+ */
128
247
  return (
129
248
  <div className="flex flex-col h-full w-full bg-paper text-ink relative select-none">
249
+ {tabsMode ? null : (
250
+ <DrawerHeader
251
+ catalog={catalog}
252
+ activeId={activePanel?.id ?? activeTab}
253
+ onSelect={handleSelectTab}
254
+ hasGitChanges={hasGitChanges}
255
+ onClose={onClose}
256
+ menuProps={panelMenu.surfaceProps}
257
+ />
258
+ )}
130
259
 
131
- {/* Top Header & Tab Navigation Bar. It is the window's title bar while
132
- this drawer is the mounted screen: a desktop shell window narrowed
133
- past the layout breakpoint shows it, and without `data-drag-region`
134
- there is nothing left to move the window by. The chip strip inside is
135
- the `titlebar-no-drag` cluster. */}
136
- <div
137
- className="border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0 bg-canvas titlebar-drag-region select-none"
138
- {...dragRegionProps()}
139
- {...panelMenu.surfaceProps}
140
- style={{
141
- height: 'calc(3.5rem + env(safe-area-inset-top, 0px))',
142
- paddingTop: 'env(safe-area-inset-top, 0px)',
143
- paddingLeft: titlebarInsetLeft(titlebarPaddingLeft('0.75rem', true)),
144
- paddingRight: titlebarPaddingRight('0.75rem', true),
145
- }}
146
- >
147
-
148
- {/* The header is now a drag region, so its controls must say so —
149
- `app-region` inherits, and a control inside a drag region is a drag
150
- handle that swallows its own click on Windows. */}
151
- <div className="flex items-center min-w-0 titlebar-no-drag">
152
- <PanelChips
153
- panels={catalog}
154
- activeId={activePanel?.id ?? activeTab}
155
- onSelect={handleSelectTab}
156
- hasGitChanges={hasGitChanges}
157
- />
260
+ {tabsMode ? (
261
+ <div className="flex-1 min-h-0 flex flex-col">
262
+ <PanelTabsColumn
263
+ catalog={catalog}
264
+ tabs={tabHandle}
265
+ homeTitle="Panel kanan"
266
+ stripProps={drawerStripProps(panelMenu.surfaceProps)}
267
+ actions={<DrawerCloseAction onClose={onClose} />}
268
+ >
269
+ <div className="h-full w-full">
270
+ <DrawerBody panel={activePanel} body={mobileBody} />
271
+ </div>
272
+ </PanelTabsColumn>
158
273
  </div>
159
-
160
- <button
161
- type="button"
162
- onClick={onClose}
163
- className="p-1.5 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink transition-colors flex-shrink-0 ml-2 titlebar-no-drag"
164
- title="Close right sidebar"
165
- aria-label="Close right sidebar"
166
- >
167
- <X size={20} strokeWidth={1.8} />
168
- </button>
169
- </div>
274
+ ) : null}
170
275
 
171
276
  {panelMenu.anchor ? (
172
277
  <VisibilityMenu
@@ -181,28 +286,21 @@ export function MobileRightSidebar({
181
286
 
182
287
  {/* Main Tab Content — the same catalog entries the desktop stack draws,
183
288
  through the same `render`, so the two layouts cannot hand a view
184
- different props. The workspace gate below applies per VIEW, not to the
185
- whole drawer: a todo list and a plan both belong to the SESSION, not to
186
- the folder its cwd resolves to, so those stay reachable for a session
289
+ different props. The workspace gate applies per VIEW, not to the whole
290
+ drawer: a todo list and a plan both belong to the SESSION, not to the
291
+ folder its cwd resolves to, so those stay reachable for a session
187
292
  running outside every registered workspace. */}
188
- <div
189
- className="flex-1 min-h-0 overflow-hidden relative"
190
- style={{ paddingBottom: 'env(safe-area-inset-bottom, 0px)' }}
191
- >
192
- {activePanel ? (
193
- // A plugin component renders in the host's tree like any other view,
194
- // so it needs no workspace folder and no session: it reads whatever
195
- // the host published and draws what it can. Gating it here would hide
196
- // a panel that works.
197
- <Suspense fallback={<div className="h-full flex items-center justify-center text-ink/40"><span className="text-xs font-mono">Loading…</span></div>}>
198
- <PanelHostProvider value={mobileBody}>{activePanel.render(mobileBody)}</PanelHostProvider>
199
- </Suspense>
200
- ) : (
201
- <div className="h-full flex items-center justify-center text-ink/40">
202
- <span className="text-xs font-mono text-muted">No session selected</span>
203
- </div>
204
- )}
205
- </div>
293
+ {/* Under `tabs` the strip and the home page are the drawer's chrome, so the
294
+ body lives inside `PanelTabsColumn`; under `classic` the chip strip in
295
+ the header is that chrome and the body is the whole remaining screen. */}
296
+ {tabsMode ? null : (
297
+ <div
298
+ className="flex-1 min-h-0 overflow-hidden relative"
299
+ style={{ paddingBottom: 'env(safe-area-inset-bottom, 0px)' }}
300
+ >
301
+ <DrawerBody panel={activePanel} body={mobileBody} />
302
+ </div>
303
+ )}
206
304
 
207
305
  </div>
208
306
  );