@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,156 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The wire shapes both halves share.
8
+ *
9
+ * Nothing here names a GitHub field: a `Workflow Run` becomes a `RunRow` at the
10
+ * adapter's edge so the panel never re-derives a status from a raw response, and
11
+ * the server never sends one. `note` strings are sentences a reader can act on,
12
+ * which is why they travel rather than a code the panel would have to translate.
13
+ */
14
+
15
+ /** The RPC methods the app half calls. One place, so a typo is a compile error. */
16
+ export const RPC = {
17
+ list: 'list',
18
+ run: 'run',
19
+ log: 'log',
20
+ act: 'act',
21
+ } as const;
22
+
23
+ /** The four states a badge can be, after every host word is mapped. */
24
+ export type RunState = 'success' | 'failure' | 'pending' | 'neutral';
25
+
26
+ /** One workflow run, as the list draws it. */
27
+ export interface RunRow {
28
+ id: number;
29
+ /** The workflow's name, e.g. `Release`. */
30
+ name: string;
31
+ /** What this run was for: the commit subject or the event's title. */
32
+ title: string;
33
+ branch: string | null;
34
+ event: string;
35
+ /** GitHub's own word: `queued`, `in_progress`, `completed`, … */
36
+ status: string;
37
+ /** GitHub's own word: `success`, `failure`, … — null while in flight. */
38
+ conclusion: string | null;
39
+ state: RunState;
40
+ number: number;
41
+ attempt: number;
42
+ actor: string;
43
+ createdAt: string;
44
+ startedAt: string | null;
45
+ updatedAt: string;
46
+ url: string;
47
+ }
48
+
49
+ /** One page of runs, plus the sentences the panel must say out loud. */
50
+ export interface RunPage {
51
+ slug: string;
52
+ host: string;
53
+ authenticated: boolean;
54
+ branch: string;
55
+ status: string;
56
+ runs: RunRow[];
57
+ total: number | null;
58
+ /** The host returned a full page, so there may be more than these. */
59
+ truncated: boolean;
60
+ notes: string[];
61
+ }
62
+
63
+ /** One step of a job. */
64
+ export interface Step {
65
+ number: number;
66
+ name: string;
67
+ status: string;
68
+ conclusion: string | null;
69
+ state: RunState;
70
+ startedAt: string | null;
71
+ completedAt: string | null;
72
+ }
73
+
74
+ /** One job of a run. */
75
+ export interface Job {
76
+ id: number;
77
+ name: string;
78
+ status: string;
79
+ conclusion: string | null;
80
+ state: RunState;
81
+ startedAt: string | null;
82
+ completedAt: string | null;
83
+ runner: string | null;
84
+ labels: string[];
85
+ url: string | null;
86
+ steps: Step[];
87
+ }
88
+
89
+ /**
90
+ * Progress, computed from jobs and steps.
91
+ *
92
+ * There is no percentage in the API, so this is the honest denominator: jobs
93
+ * finished out of jobs known, and — for the one job in flight — its step count.
94
+ */
95
+ export interface RunProgress {
96
+ done: number;
97
+ total: number;
98
+ failing: number;
99
+ running: string | null;
100
+ runningStep: string | null;
101
+ }
102
+
103
+ export interface RunDetail {
104
+ run: RunRow;
105
+ jobs: Job[];
106
+ progress: RunProgress;
107
+ notes: string[];
108
+ }
109
+
110
+ export interface LogTail {
111
+ job: string;
112
+ text: string;
113
+ /** The bytes the host sent, before the tail was cut. */
114
+ bytes: number;
115
+ truncated: boolean;
116
+ }
117
+
118
+ export type RunVerb = 'cancel' | 'rerun' | 'rerun-failed';
119
+
120
+ export interface ActResult {
121
+ message: string;
122
+ }
123
+
124
+ /** What a read is narrowed to. Empty strings mean "not narrowed". */
125
+ export interface RunFilter {
126
+ branch: string;
127
+ status: string;
128
+ }
129
+
130
+ /** What the panel asks the server for. */
131
+ export interface ListInput {
132
+ root: string;
133
+ repo: string;
134
+ filter: RunFilter;
135
+ }
136
+
137
+ export interface RunInput {
138
+ root: string;
139
+ repo: string;
140
+ id: number;
141
+ }
142
+
143
+ export interface LogInput {
144
+ root: string;
145
+ repo: string;
146
+ jobId: number;
147
+ /** Bytes to keep from the end. Absent means the configured tail. */
148
+ tail?: number;
149
+ }
150
+
151
+ export interface ActInput {
152
+ root: string;
153
+ repo: string;
154
+ id: number;
155
+ verb: RunVerb;
156
+ }
@@ -0,0 +1,264 @@
1
+ /**
2
+ * @license
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ /**
7
+ * The adapter, over recorded bodies.
8
+ *
9
+ * A live host cannot be part of a test: it needs a credential, a network and a
10
+ * repository that does not change. What CAN be wrong is the mapping and the two
11
+ * requests a log costs, so both are driven through an injected `fetch`.
12
+ *
13
+ * The log cases are the load-bearing ones. GitHub answers the log endpoint with
14
+ * `302` to a signed blob URL, and that URL rejects the GitHub token
15
+ * (`401 InvalidAuthenticationInfo`, measured) — so the first request must not
16
+ * follow the redirect and the second must carry NO headers.
17
+ */
18
+
19
+ import { describe, expect, test } from 'bun:test';
20
+
21
+ import type { CacheEntry, JsonCache } from './http';
22
+ import { act, getRun, jobLog, listJobs, listRuns, type GithubContext } from './github';
23
+
24
+ function memoryCache(): JsonCache {
25
+ const store = new Map<string, CacheEntry>();
26
+ return {
27
+ read: async (url) => store.get(url),
28
+ write: async (entry) => {
29
+ store.set(entry.url, entry);
30
+ },
31
+ invalidate: async (prefix) => {
32
+ for (const url of [...store.keys()]) if (url.startsWith(prefix)) store.delete(url);
33
+ },
34
+ };
35
+ }
36
+
37
+ function context(overrides: Partial<GithubContext> = {}): GithubContext {
38
+ return {
39
+ apiBase: 'https://api.github.com',
40
+ slug: 'kabmo-labs/kabmo',
41
+ host: 'github.com',
42
+ token: 'tkn',
43
+ perPage: 30,
44
+ cache: memoryCache(),
45
+ ...overrides,
46
+ };
47
+ }
48
+
49
+ const RUN = {
50
+ id: 44733846020,
51
+ name: 'Release',
52
+ display_title: 'feat(chat): made the chat column width draggable',
53
+ head_branch: 'main',
54
+ event: 'push',
55
+ status: 'completed',
56
+ conclusion: 'failure',
57
+ run_number: 185,
58
+ run_attempt: 1,
59
+ actor: { login: 'rajebdev' },
60
+ created_at: '2026-11-20T12:12:28Z',
61
+ run_started_at: '2026-11-20T12:12:28Z',
62
+ updated_at: '2026-11-20T12:19:35Z',
63
+ html_url: 'https://github.com/kabmo-labs/kabmo/actions/runs/44733846020',
64
+ };
65
+
66
+ const JOB = {
67
+ id: 136280140782,
68
+ name: 'E2E specs / Chromium (2/4)',
69
+ status: 'completed',
70
+ conclusion: 'failure',
71
+ started_at: '2026-11-20T12:12:32Z',
72
+ completed_at: '2026-11-20T12:19:34Z',
73
+ runner_name: 'GitHub Actions 1000003380',
74
+ labels: ['ubuntu-latest'],
75
+ html_url: 'https://github.com/kabmo-labs/kabmo/actions/runs/44733846020/job/136280140782',
76
+ steps: [
77
+ { number: 1, name: 'Set up job', status: 'completed', conclusion: 'success' },
78
+ { number: 2, name: 'Run bun run test:e2e', status: 'completed', conclusion: 'failure' },
79
+ ],
80
+ };
81
+
82
+ function jsonResponse(body: unknown, status = 200, headers: Record<string, string> = {}): Response {
83
+ return new Response(JSON.stringify(body), {
84
+ status,
85
+ headers: { 'content-type': 'application/json', ...headers },
86
+ });
87
+ }
88
+
89
+ describe('listRuns', () => {
90
+ test('maps the rows and says the read was anonymous', async () => {
91
+ const fetchImpl = (async () =>
92
+ jsonResponse({ total_count: 591, workflow_runs: [RUN] })) as unknown as typeof fetch;
93
+ const result = await listRuns(context({ token: null, fetchImpl }), { branch: '', status: '' });
94
+ expect(result.ok).toBe(true);
95
+ if (!result.ok) return;
96
+ expect(result.total).toBe(591);
97
+ expect(result.authenticated).toBe(false);
98
+ expect(result.notes.join(' ')).toContain('anonymously');
99
+ expect(result.runs[0]).toMatchObject({
100
+ id: 44733846020,
101
+ name: 'Release',
102
+ branch: 'main',
103
+ state: 'failure',
104
+ number: 185,
105
+ attempt: 1,
106
+ actor: 'rajebdev',
107
+ });
108
+ });
109
+
110
+ test('a full page is reported as truncated, not as the whole list', async () => {
111
+ const runs = Array.from({ length: 30 }, (_, index) => ({ ...RUN, id: index + 1 }));
112
+ const fetchImpl = (async () =>
113
+ jsonResponse({ total_count: 591, workflow_runs: runs })) as unknown as typeof fetch;
114
+ const result = await listRuns(context({ fetchImpl }), { branch: '', status: '' });
115
+ expect(result.ok).toBe(true);
116
+ if (!result.ok) return;
117
+ expect(result.truncated).toBe(true);
118
+ expect(result.notes.join(' ')).toContain('GitHub has more');
119
+ });
120
+
121
+ test('the filter reaches the query string', async () => {
122
+ let seen = '';
123
+ const fetchImpl = (async (url: string) => {
124
+ seen = url;
125
+ return jsonResponse({ total_count: 0, workflow_runs: [] });
126
+ }) as unknown as typeof fetch;
127
+ await listRuns(context({ fetchImpl }), { branch: 'main', status: 'failure' });
128
+ expect(seen).toContain('branch=main');
129
+ expect(seen).toContain('status=failure');
130
+ expect(seen).toContain('per_page=30');
131
+ });
132
+
133
+ test('a refusal carries the sentence, not a bare status', async () => {
134
+ const fetchImpl = (async () =>
135
+ jsonResponse({ message: 'API rate limit exceeded' }, 403, {
136
+ 'x-ratelimit-remaining': '0',
137
+ 'x-ratelimit-reset': '1795181467',
138
+ })) as unknown as typeof fetch;
139
+ const result = await listRuns(context({ fetchImpl }), { branch: '', status: '' });
140
+ expect(result.ok).toBe(false);
141
+ if (!result.ok) expect(result.message).toContain('Rate limit reached');
142
+ });
143
+ });
144
+
145
+ describe('getRun / listJobs', () => {
146
+ test('a job carries its steps and their states', async () => {
147
+ const fetchImpl = (async () =>
148
+ jsonResponse({ total_count: 1, jobs: [JOB] })) as unknown as typeof fetch;
149
+ const result = await listJobs(context({ fetchImpl }), RUN.id);
150
+ expect(result.ok).toBe(true);
151
+ if (!result.ok) return;
152
+ expect(result.jobs[0]?.steps.map((step) => step.state)).toEqual(['success', 'failure']);
153
+ expect(result.jobs[0]?.state).toBe('failure');
154
+ });
155
+
156
+ test('a run that cannot be read is a sentence', async () => {
157
+ const fetchImpl = (async () => jsonResponse({ message: 'Not Found' }, 404)) as unknown as typeof fetch;
158
+ const result = await getRun(context({ fetchImpl }), 1);
159
+ expect(result.ok).toBe(false);
160
+ if (!result.ok) expect(result.message).toContain('404');
161
+ });
162
+ });
163
+
164
+ describe('jobLog', () => {
165
+ const LOG = '\uFEFF2026-11-20T12:12:32.9658834Z \u001b[31mfirst\u001b[0m\n2026-11-20T12:12:33Z second\n';
166
+
167
+ test('the redirect is followed manually, and the blob is fetched without the token', async () => {
168
+ const calls: Array<{ url: string; init?: RequestInit }> = [];
169
+ const fetchImpl = (async (url: string, init?: RequestInit) => {
170
+ calls.push({ url, init });
171
+ if (calls.length === 1) {
172
+ return new Response(null, { status: 302, headers: { location: 'https://blob.example/log' } });
173
+ }
174
+ return new Response(LOG, { status: 200 });
175
+ }) as unknown as typeof fetch;
176
+
177
+ const result = await jobLog(context({ fetchImpl }), 42, 4096);
178
+ expect(result.ok).toBe(true);
179
+ if (!result.ok) return;
180
+ expect(result.log.text).toBe('first\nsecond');
181
+ expect(calls[0]!.url).toContain('/actions/jobs/42/logs');
182
+ expect(calls[0]!.init?.redirect).toBe('manual');
183
+ expect((calls[0]!.init?.headers as Record<string, string>).authorization).toBe('Bearer tkn');
184
+ expect(calls[1]!.url).toBe('https://blob.example/log');
185
+ expect(calls[1]!.init).toBeUndefined();
186
+ });
187
+
188
+ test('without a token the refusal names the token instead of calling GitHub', async () => {
189
+ let called = 0;
190
+ const fetchImpl = (async () => {
191
+ called += 1;
192
+ return new Response('', { status: 200 });
193
+ }) as unknown as typeof fetch;
194
+ const result = await jobLog(context({ token: null, fetchImpl }), 42, 4096);
195
+ expect(called).toBe(0);
196
+ expect(result.ok).toBe(false);
197
+ if (!result.ok) expect(result.message).toContain('token');
198
+ });
199
+
200
+ test('the tail is cut from the end and says it was truncated', async () => {
201
+ const fetchImpl = (async (url: string) =>
202
+ url.includes('blob.example')
203
+ ? new Response(LOG, { status: 200 })
204
+ : new Response(null, { status: 302, headers: { location: 'https://blob.example/log' } })) as unknown as typeof fetch;
205
+ const result = await jobLog(context({ fetchImpl }), 42, 6);
206
+ expect(result.ok).toBe(true);
207
+ if (!result.ok) return;
208
+ expect(result.log.truncated).toBe(true);
209
+ expect(result.log.text.endsWith('second')).toBe(true);
210
+ });
211
+
212
+ test('a 403 from the API surfaces GitHub’s own message', async () => {
213
+ const fetchImpl = (async () =>
214
+ jsonResponse({ message: 'Must have admin rights to Repository.' }, 403)) as unknown as typeof fetch;
215
+ const result = await jobLog(context({ fetchImpl }), 42, 4096);
216
+ expect(result.ok).toBe(false);
217
+ if (!result.ok) expect(result.message).toContain('Must have admin rights');
218
+ });
219
+ });
220
+
221
+ describe('act', () => {
222
+ test('cancel posts to the cancel path and reports the acceptance', async () => {
223
+ let seen = '';
224
+ let method = '';
225
+ const fetchImpl = (async (url: string, init?: RequestInit) => {
226
+ seen = url;
227
+ method = init?.method ?? '';
228
+ return new Response(null, { status: 202 });
229
+ }) as unknown as typeof fetch;
230
+ const result = await act(context({ fetchImpl }), 7, 'cancel');
231
+ expect(seen).toContain('/actions/runs/7/cancel');
232
+ expect(method).toBe('POST');
233
+ expect(result.ok).toBe(true);
234
+ });
235
+
236
+ test('a 409 is GitHub’s sentence about a run that already finished', async () => {
237
+ const fetchImpl = (async () =>
238
+ jsonResponse({ message: 'Cannot cancel a workflow run that is completed.' }, 409)) as unknown as typeof fetch;
239
+ const result = await act(context({ fetchImpl }), 7, 'cancel');
240
+ expect(result.ok).toBe(false);
241
+ if (!result.ok) expect(result.message).toContain('Cannot cancel');
242
+ });
243
+
244
+ test('re-run failed jobs uses its own endpoint, not the whole-run one', async () => {
245
+ let seen = '';
246
+ const fetchImpl = (async (url: string) => {
247
+ seen = url;
248
+ return new Response(null, { status: 201 });
249
+ }) as unknown as typeof fetch;
250
+ await act(context({ fetchImpl }), 7, 'rerun-failed');
251
+ expect(seen.endsWith('/actions/runs/7/rerun-failed-jobs')).toBe(true);
252
+ });
253
+
254
+ test('without a token the verb is refused before the wire', async () => {
255
+ let called = 0;
256
+ const fetchImpl = (async () => {
257
+ called += 1;
258
+ return new Response(null, { status: 201 });
259
+ }) as unknown as typeof fetch;
260
+ const result = await act(context({ token: null, fetchImpl }), 7, 'rerun');
261
+ expect(called).toBe(0);
262
+ expect(result.ok).toBe(false);
263
+ });
264
+ });