@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.
- package/README.md +53 -49
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +1157 -825
- package/dist/client/static/js/{Body-ab8wswhm.js → Body-z6kstvk6.js} +3 -3
- package/dist/client/static/js/{CsvGrid-czssywvz.js → CsvGrid-f73c0s4e.js} +2 -2
- package/dist/client/static/js/{DocxView-ke0dwdmt.js → DocxView-a1pb7nsb.js} +3 -3
- package/dist/client/static/js/{DrawioView-a1whhy84.js → DrawioView-r61gcg24.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-dr32dwjy.js → HtmlPreview-vt7j0b05.js} +1 -1
- package/dist/client/static/js/ImageView-4nhr5dtm.js +1 -0
- package/dist/client/static/js/LayoutWrapper-vwhy0vhj.js +2 -0
- package/dist/client/static/js/MergeDiffView-f4h9ss71.js +1 -0
- package/dist/client/static/js/Modal-cadmjkak.js +60 -0
- package/dist/client/static/js/{PdfView-2kdn91f9.js → PdfView-mppt2gkd.js} +1 -1
- package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
- package/dist/client/static/js/{SheetView-ettr9pdw.js → SheetView-5s9zfx9g.js} +9 -9
- package/dist/client/static/js/{SvgPreview-hzcejjry.js → SvgPreview-ff78xn3e.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-kdmv4y72.js → abnfDiagram-O67JEVCF-p29sh3w2.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-83w3kytq.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-qyrwaq0x.js → architectureDiagram-NJMV4G6O-nbpdyea3.js} +3 -3
- package/dist/client/static/js/{astro-yphdvdty.js → astro-qtfmc8x7.js} +1 -1
- package/dist/client/static/js/bash-wcy12qjx.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-tszxy2g7.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
- package/dist/client/static/js/c-vvantfth.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-0ye36hhv.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-szgk1shv.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-0s9s4mmv.js → cose-bilkent-JH36ORCC-k54mmydp.js} +1 -1
- package/dist/client/static/js/cpp-5x63r6g0.js +1 -0
- package/dist/client/static/js/css-j2j6f03w.js +1 -0
- package/dist/client/static/js/css-qk59j6rj.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-80z02zrj.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-664g28ze.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-ga4rp1jx.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-aagj46ty.js → diagram-22UHCM2B-197hemfa.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-20qk6whk.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-1vg1tfca.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-90d6jrqs.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-8je4z8m1.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-0kzpexsj.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
- package/dist/client/static/js/{dockerfile-5nrbr0ef.js → dockerfile-4nked309.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-47yg36zx.js → ebnfDiagram-ZINNZB2B-hvnkevqy.js} +1 -1
- package/dist/client/static/js/{elixir-3nwnd9yw.js → elixir-3jvh6v4k.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-5hqp6r2d.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-bt9te7r0.js → erDiagram-OPXOYQCR-ww453xcy.js} +5 -5
- package/dist/client/static/js/{erlang-p5c4n3t0.js → erlang-4fz73a1q.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-y9pq2709.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-e6v7513q.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-kzc13swm.js → ganttDiagram-FUAMR5RP-abc5wy70.js} +3 -3
- package/dist/client/static/js/gitGraph-4MIJSDKK-fzaf9azs.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-bjf8aa3j.js → gitGraphDiagram-X574FWY7-4acqzj2h.js} +7 -7
- package/dist/client/static/js/graphql-hpkvdvk7.js +1 -0
- package/dist/client/static/js/html-x12gb1wk.js +1 -0
- package/dist/client/static/js/{index-v88m5sva.js → index-0g82ph6h.js} +2 -2
- package/dist/client/static/js/{index-1fmjhm2d.js → index-0w1jzang.js} +5 -5
- package/dist/client/static/js/{index-kj70d2q9.js → index-1svt0cdw.js} +2 -2
- package/dist/client/static/js/{index-m24sebb0.js → index-1tb4py5v.js} +2 -2
- package/dist/client/static/js/index-2gt9krtj.js +4 -0
- package/dist/client/static/js/index-2x9m7s1a.js +1 -0
- package/dist/client/static/js/index-3fvqmz3m.js +4 -0
- package/dist/client/static/js/{index-k9yf2txw.js → index-42wvbkm5.js} +2 -2
- package/dist/client/static/js/index-477vtt51.js +2 -0
- package/dist/client/static/js/{index-ca6tmamh.js → index-4px56qaz.js} +2 -2
- package/dist/client/static/js/{index-excgtjhx.js → index-5anvw7xg.js} +36 -36
- package/dist/client/static/js/index-5nb9k2ph.js +1 -0
- package/dist/client/static/js/{index-97sw4d9n.js → index-615je3km.js} +2 -2
- package/dist/client/static/js/{index-jz4012t5.js → index-66qxrh5n.js} +1 -1
- package/dist/client/static/js/{index-a145x0w2.js → index-7kct1sz1.js} +2 -2
- package/dist/client/static/js/{index-hwv7bfxc.js → index-8e0d8y30.js} +2 -2
- package/dist/client/static/js/{index-s4j2ghmx.js → index-90bq56xw.js} +2 -2
- package/dist/client/static/js/{index-wsy6y5em.js → index-b1gzh60t.js} +11 -11
- package/dist/client/static/js/{index-10vzyga1.js → index-bypkmjrz.js} +2 -2
- package/dist/client/static/js/{index-n8r7r86r.js → index-c1vd63yd.js} +2 -2
- package/dist/client/static/js/index-c9f0hejv.js +3 -0
- package/dist/client/static/js/{index-2dmew334.js → index-cgqj15g0.js} +2 -2
- package/dist/client/static/js/{index-mtav0rpf.js → index-cts5re1t.js} +2 -2
- package/dist/client/static/js/index-dxc14kmm.js +1 -0
- package/dist/client/static/js/{index-krdz5vby.js → index-dxyjxhm1.js} +2 -2
- package/dist/client/static/js/{index-zr3965k9.js → index-edpyqz9f.js} +1 -1
- package/dist/client/static/js/{index-h7agc069.js → index-eesepb70.js} +2 -2
- package/dist/client/static/js/{index-r38e0rya.js → index-evh437bz.js} +2 -2
- package/dist/client/static/js/index-ey6v4t5b.js +1 -0
- package/dist/client/static/js/{index-025s3fp8.js → index-fsd7n336.js} +2 -2
- package/dist/client/static/js/{index-yfcy4cf6.js → index-h7a7fqag.js} +2 -2
- package/dist/client/static/js/{index-11qn05g9.js → index-hffgwnvz.js} +2 -2
- package/dist/client/static/js/index-j734ev6q.js +482 -0
- package/dist/client/static/js/{index-9g2nzgpx.js → index-jcbp1d9d.js} +6 -6
- package/dist/client/static/js/index-jg5h18sm.js +2 -0
- package/dist/client/static/js/{index-bq9f0mxp.js → index-jtdve6xw.js} +7 -7
- package/dist/client/static/js/{index-kyr612aa.js → index-k0bqrb1y.js} +1 -1
- package/dist/client/static/js/{index-bdtftrym.js → index-kegevd10.js} +2 -2
- package/dist/client/static/js/{index-fr6wsqk8.js → index-kqcfxkch.js} +2 -2
- package/dist/client/static/js/{index-sr14vwn5.js → index-kv1xnem9.js} +2 -2
- package/dist/client/static/js/{index-xy0m8te9.js → index-m54ctmxr.js} +1 -1
- package/dist/client/static/js/index-mgzbypt5.js +314 -0
- package/dist/client/static/js/{index-85jfn1fz.js → index-mh52531j.js} +2 -2
- package/dist/client/static/js/{index-776n5n29.js → index-mhz5ywa4.js} +5 -5
- package/dist/client/static/js/{index-3j2he86h.js → index-nnwdbg3t.js} +2 -2
- package/dist/client/static/js/{index-3x7cbxwq.js → index-nxd6z7f9.js} +2 -2
- package/dist/client/static/js/{index-dabnbvbc.js → index-pjrbt77c.js} +2 -2
- package/dist/client/static/js/index-r7h4pm42.js +2 -0
- package/dist/client/static/js/index-ratrdgc9.js +2 -0
- package/dist/client/static/js/{index-475dc6h9.js → index-rhmvh9w5.js} +2 -2
- package/dist/client/static/js/{index-twwsn91p.js → index-sqzjwy9h.js} +2 -2
- package/dist/client/static/js/{index-z5s9tmj8.js → index-tckzkw0f.js} +2 -2
- package/dist/client/static/js/index-tza9h3q6.css +1 -0
- package/dist/client/static/js/{index-qccydkze.js → index-vhjfr093.js} +2 -2
- package/dist/client/static/js/{index-653x8zdq.js → index-w0j96eyy.js} +8 -8
- package/dist/client/static/js/{index-24a40rw8.js → index-ws04kxy9.js} +1 -1
- package/dist/client/static/js/{index-a3bpmw2r.js → index-x1yqmzpr.js} +2 -2
- package/dist/client/static/js/{index-fb2fjndj.js → index-x2f7wykb.js} +6 -6
- package/dist/client/static/js/index-y8405hdg.js +10 -0
- package/dist/client/static/js/{index-sx83ans2.js → index-yxk7dgnb.js} +2 -2
- package/dist/client/static/js/{index-bkn6jtn1.js → index-zavecxak.js} +2 -2
- package/dist/client/static/js/{index-vn59zz0k.js → index-zg7q3kcb.js} +2 -2
- package/dist/client/static/js/{index-enm77k5z.js → index-zhn9vv3z.js} +2 -2
- package/dist/client/static/js/{index-vgcw01yk.js → index-zy963qbh.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-jy5zvvj8.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
- package/dist/client/static/js/ini-522adp5a.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-pfky1nnf.js → ishikawaDiagram-OU5B5YK6-38arfrx5.js} +2 -2
- package/dist/client/static/js/java-z0rgs7v6.js +1 -0
- package/dist/client/static/js/javascript-fv87f565.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-mvaf7rfh.js → journeyDiagram-ZHPQQLJL-kcwzjgtz.js} +4 -4
- package/dist/client/static/js/json-1czq1ped.js +1 -0
- package/dist/client/static/js/jsx-1fch2jyr.js +1 -0
- package/dist/client/static/js/{julia-rpd1y9vh.js → julia-pzzxbptm.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-hw2xwe6e.js → kanban-definition-PNTS6WVX-nmegwy9w.js} +15 -15
- package/dist/client/static/js/lua-nn8bpjev.js +1 -0
- package/dist/client/static/js/markdown-38tqrgkn.js +1 -0
- package/dist/client/static/js/{mermaid.core-hsw87hmq.js → mermaid.core-3aae27b9.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-wfe4d846.js → mindmap-definition-NLK3R4M7-zsaq4e65.js} +12 -12
- package/dist/client/static/js/one-dark-pro-trnff03z.js +1 -0
- package/dist/client/static/js/one-light-ck31ptqs.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-rwac7scq.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-cvnmxgst.js → pegDiagram-GJSIUBJH-2b6whj1p.js} +1 -1
- package/dist/client/static/js/{perl-kmtz9dnv.js → perl-zdkbbjd2.js} +1 -1
- package/dist/client/static/js/{php-bttrsbxy.js → php-ktaxff6g.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-gjz20apz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-0n3gz7sv.js → pieDiagram-5QR66LMP-y09ar7vz.js} +3 -3
- package/dist/client/static/js/properties-kncqeqhn.js +1 -0
- package/dist/client/static/js/python-gx8ggmyh.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-9qqh6xvv.js → quadrantDiagram-O4NWA36T-mapfzs06.js} +3 -3
- package/dist/client/static/js/r-x8rftkm3.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-akwdknab.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-m5v4rfhx.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-k2gmqcjb.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zdsfjf4.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-e98evqb6.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-5f3x3762.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-a68bv6kh.js → requirementDiagram-PLB6GJNP-2vb2gp3e.js} +3 -3
- package/dist/client/static/js/{ruby-dve3y59w.js → ruby-ytqv3pqz.js} +1 -1
- package/dist/client/static/js/{rust-qjhdt4b0.js → rust-6sddyxnt.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ry7xcphh.js → sankeyDiagram-IPEJSGJF-9jd8ebrn.js} +3 -3
- package/dist/client/static/js/{sass-emxqt5p2.js → sass-dvbra5b6.js} +1 -1
- package/dist/client/static/js/{scss-4j4t3r6y.js → scss-sy7w8916.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-mekzzhet.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-pvc16ame.js → sizeCapture-INFHLROL-q8w7ehgx.js} +1 -1
- package/dist/client/static/js/sql-99y0qnag.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-3ytxby83.js → stateDiagram-v2-GCMORJYK-4978hapr.js} +3 -3
- package/dist/client/static/js/{svelte-dbsx1ehx.js → svelte-xvs3fkza.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-c2zfp416.js → swimlanes-2SLR337P-eshg5fjy.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-914e28hd.js +8 -0
- package/dist/client/static/js/timeline-definition-EJHVYXUP-5h5q357k.js +120 -0
- package/dist/client/static/js/treeView-Q6P3EWNA-fkm3a7gx.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hm4ktxjf.js +1 -0
- package/dist/client/static/js/tsx-phngprp0.js +1 -0
- package/dist/client/static/js/typescript-m62a7zr2.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-sz6b7bnv.js → usecaseDiagram-POWQR4AR-4j69y3zx.js} +20 -20
- package/dist/client/static/js/vennDiagram-UO4OBE2U-pa9p5jpw.js +34 -0
- package/dist/client/static/js/{vue-hyr58df9.js → vue-p4g4avm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-3y2rvdmy.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-xvtyvde9.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
- package/dist/client/static/js/xml-59n0cjn6.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-jcs20s84.js → xychartDiagram-PMCCYNJV-8ng5m849.js} +4 -4
- package/dist/client/static/js/yaml-9fw908s4.js +1 -0
- package/dist/client/tailwindcss-oxide.linux-x64-gnu-c0fa36dv.node +0 -0
- package/dist/client/tailwindcss-oxide.linux-x64-musl-kr04sh0e.node +0 -0
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/app.tsx +2 -5
- package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +35 -52
- package/marketplace/plugins/command-runner/src/panel/Groups.tsx +6 -5
- package/marketplace/plugins/command-runner/src/panel/Header.tsx +18 -54
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +3 -7
- package/marketplace/plugins/command-runner/src/panel/Row.tsx +19 -38
- package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -4
- package/marketplace/plugins/git-forge/package.json +2 -2
- package/marketplace/plugins/git-forge/src/app.tsx +2 -0
- package/marketplace/plugins/git-forge/src/panel/Credential.tsx +8 -15
- package/marketplace/plugins/git-forge/src/panel/Header.tsx +35 -66
- package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +7 -13
- package/marketplace/plugins/git-forge/src/panel/List.tsx +28 -56
- package/marketplace/plugins/git-forge/src/panel/Row.tsx +7 -9
- package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +21 -31
- package/marketplace/plugins/git-forge/src/panel/Write.tsx +26 -40
- package/marketplace/plugins/git-forge/src/panel/index.tsx +0 -1
- package/marketplace/plugins/github-actions/package.json +2 -2
- package/marketplace/plugins/github-actions/src/app.tsx +2 -0
- package/marketplace/plugins/github-actions/src/panel/Actions.tsx +9 -17
- package/marketplace/plugins/github-actions/src/panel/LogView.tsx +4 -13
- package/marketplace/plugins/github-actions/src/panel/Row.tsx +4 -5
- package/marketplace/plugins/github-actions/src/panel/RunView.tsx +8 -15
- package/marketplace/plugins/github-actions/src/panel/index.test.tsx +3 -2
- package/marketplace/plugins/github-actions/src/panel/index.tsx +31 -37
- package/marketplace/plugins/kanban/package.json +2 -2
- package/marketplace/plugins/kanban/src/app.tsx +2 -0
- package/marketplace/plugins/kanban/src/panel/CardSheet.tsx +88 -98
- package/marketplace/plugins/kanban/src/panel/CardTile.tsx +6 -10
- package/marketplace/plugins/kanban/src/panel/StageColumn.tsx +22 -18
- package/marketplace/plugins/kanban/src/panel/StageSheet.tsx +59 -70
- package/marketplace/plugins/kanban/src/panel/index.tsx +37 -52
- package/marketplace/plugins/kanban/src/panel/use-board.ts +2 -0
- package/marketplace/plugins/session-info/package.json +2 -2
- package/marketplace/plugins/session-info/src/app.tsx +6 -3
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/KillConfirm.test.tsx +6 -4
- package/marketplace/plugins/stats/src/KillConfirm.tsx +26 -76
- package/marketplace/plugins/stats/src/ProcessTable.tsx +8 -6
- package/marketplace/plugins/stats/src/RefreshButton.tsx +7 -5
- package/marketplace/plugins/stats/src/app.tsx +11 -9
- package/package.json +10 -10
- package/src/cli/lib/commands/plugin.js +8 -5
- package/src/client/bootstrap.d.ts +5 -0
- package/src/client/chat-title-overlay.test.ts +53 -0
- package/src/client/components/auth/login-screen/index.tsx +31 -3
- package/src/client/components/common/SignOutButton.tsx +4 -5
- package/src/client/components/common/account-badge/index.tsx +31 -0
- package/src/client/components/common/footer-version/index.tsx +40 -0
- package/src/client/components/common/fullscreen-viewer/fullscreen-viewer.test.tsx +24 -0
- package/src/client/components/common/fullscreen-viewer/index.tsx +22 -31
- package/src/client/components/common/header-controls/MoreMenu.tsx +5 -56
- package/src/client/components/common/header-controls/index.test.tsx +2 -6
- package/src/client/components/common/header-controls/index.tsx +9 -25
- package/src/client/components/common/header-controls/phone-row.test.tsx +3 -16
- package/src/client/components/common/shell-update-button/index.tsx +2 -2
- package/src/client/components/common/zoom-pan-stage/index.tsx +54 -50
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -5
- package/src/client/components/layout/desktop-layout/index.tsx +2 -4
- package/src/client/components/layout/left-bar/index.tsx +25 -3
- package/src/client/components/layout/rail-toggle.test.tsx +112 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.accent.test.tsx +81 -0
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +11 -3
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +36 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +42 -61
- package/src/client/components/layout/session-sidebar/FooterHost.tsx +5 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +30 -10
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +4 -0
- package/src/client/components/layout/session-sidebar/modern/index.tsx +8 -1
- package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +25 -4
- package/src/client/components/layout/session-title-bar/index.tsx +13 -5
- package/src/client/components/layout/top-bars.test.tsx +4 -2
- package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
- package/src/client/components/mobile/RightSidebar.tsx +12 -3
- package/src/client/components/mobile/SessionSidebar.tsx +6 -2
- package/src/client/components/mobile/drawer-layout.test.tsx +7 -3
- package/src/client/components/mobile/drawer-strip.tsx +9 -2
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +29 -9
- package/src/client/components/mobile/mobile-main-view/Header.tsx +43 -12
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +12 -1
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +9 -2
- package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +1 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +9 -1
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +4 -2
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Footer.tsx +48 -46
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +18 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.test.tsx +4 -0
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +4 -6
- package/src/client/components/mobile/right-drawer-nav.test.tsx +53 -1
- package/src/client/components/settings/Band.tsx +5 -2
- package/src/client/components/settings/Modal.tsx +8 -5
- package/src/client/components/settings/Sidebar.tsx +5 -3
- package/src/client/components/settings/apply-side-effects.ts +5 -0
- package/src/client/components/settings/categories/AccountSettings.tsx +266 -0
- package/src/client/components/settings/categories/ProjectSettings.tsx +2 -0
- package/src/client/components/settings/categories/account-settings/Dialogs.tsx +223 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +3 -4
- package/src/client/components/settings/categories/appearance-settings/ChromeStyleSection.tsx +66 -39
- package/src/client/components/settings/categories/connect-settings/DeviceTable.tsx +7 -4
- package/src/client/components/settings/categories/project-settings/DetailsForm.tsx +14 -1
- package/src/client/components/settings/categories/project-settings/ProjectSharing.tsx +130 -0
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +5 -0
- package/src/client/components/settings/category-content.tsx +3 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +3 -1
- package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +2 -1
- package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +34 -0
- package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +9 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +4 -1
- package/src/client/components/workspace/editor/Tab.tsx +19 -26
- package/src/client/components/workspace/editor/Tabs.test.ts +13 -7
- package/src/client/components/workspace/git-panel/commit-modal/Header.tsx +1 -0
- package/src/client/components/workspace/git-panel/commit-modal/floating.test.ts +46 -0
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +4 -5
- package/src/client/components/workspace/panel-tabs/TabChip.tsx +40 -39
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -58
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +9 -9
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +14 -1
- package/src/client/components/workspace/panel-tabs/index.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +22 -5
- package/src/client/components/workspace/plugin-panel/chrome.test.tsx +89 -0
- package/src/client/components/workspace/plugin-panel/chrome.tsx +62 -0
- package/src/client/data/settings/omp-schema.json +40 -4
- package/src/client/floating-phone.test.ts +189 -0
- package/src/client/floating.css +205 -2
- package/src/client/floating.test.ts +43 -0
- package/src/client/glass.css +47 -0
- package/src/client/hooks/chat/omp/index.ts +6 -5
- package/src/client/hooks/chat/omp/prompt-send.test.ts +18 -0
- package/src/client/hooks/chat/omp/prompt-send.ts +26 -8
- package/src/client/hooks/chat/omp/session-list.tsx +20 -8
- package/src/client/hooks/chat/timeline/deferred-model.ts +13 -5
- package/src/client/hooks/chat/timeline/index.ts +2 -0
- package/src/client/hooks/chat/timeline/send-props.ts +14 -0
- package/src/client/hooks/chat/timeline/send-steer.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send-switch.test.ts +92 -0
- package/src/client/hooks/chat/timeline/send.test-util.ts +37 -7
- package/src/client/hooks/chat/timeline/send.test.ts +11 -2
- package/src/client/hooks/chat/timeline/send.ts +62 -42
- package/src/client/hooks/editor/image-generation.ts +24 -0
- package/src/client/hooks/editor/resolve-viewer.test.ts +26 -20
- package/src/client/hooks/editor/resolve-viewer.ts +14 -5
- package/src/client/hooks/editor/use-file-editor.test.ts +34 -0
- package/src/client/hooks/editor/use-file-editor.ts +6 -2
- package/src/client/hooks/settings/accounts.ts +162 -0
- package/src/client/hooks/ui/auth.ts +58 -3
- package/src/client/hooks/ui/border-style.test.ts +5 -4
- package/src/client/hooks/ui/border-style.ts +3 -2
- package/src/client/hooks/ui/mobile-chrome-style.ts +68 -0
- package/src/client/hooks/ui/navbar-controls.test.ts +1 -2
- package/src/client/hooks/ui/navbar-controls.ts +0 -3
- package/src/client/hooks/ui/zoom-gesture.ts +104 -0
- package/src/client/lib/desktop/titlebar.test.ts +21 -0
- package/src/client/lib/desktop/titlebar.ts +34 -0
- package/src/client/lib/plugins/bootstrap.test.ts +20 -0
- package/src/client/lib/plugins/bootstrap.tsx +10 -15
- package/src/client/lib/plugins/kit-components.test.tsx +119 -0
- package/src/client/lib/plugins/kit-components.tsx +79 -0
- package/src/client/lib/plugins/kit.ts +8 -0
- package/src/client/lib/plugins/slots.test.ts +34 -0
- package/src/client/lib/plugins/slots.ts +31 -4
- package/src/client/lib/plugins/stylesheets.ts +10 -11
- package/src/client/lib/ui/pinch.test.ts +74 -0
- package/src/client/lib/ui/pinch.ts +104 -0
- package/src/client/lib/ui/safe-area.test.ts +25 -0
- package/src/client/lib/ui/safe-area.ts +23 -0
- package/src/client/main.tsx +8 -1
- package/src/client/tailwind.css +54 -1
- package/src/server/index.ts +2 -0
- package/src/server/lib/assets/shell-attributes.server.ts +12 -4
- package/src/server/lib/assets/shell-attributes.test.ts +19 -18
- package/src/server/lib/auth/client-address.test.ts +2 -2
- package/src/server/lib/auth/guard.test.ts +2 -2
- package/src/server/lib/auth/guard.ts +81 -97
- package/src/server/lib/auth/handover-guard.test.ts +1 -1
- package/src/server/lib/auth/rate-limit.test.ts +2 -2
- package/src/server/lib/auth/token.test.ts +1 -1
- package/src/server/lib/auth/workspace-gate.server.ts +34 -0
- package/src/server/lib/bundler/css.test.ts +16 -0
- package/src/server/lib/connect/devices.server.test.ts +12 -0
- package/src/server/lib/connect/devices.server.ts +63 -19
- package/src/server/lib/connect/pairing.server.ts +5 -3
- package/src/server/lib/connect/status.server.ts +2 -2
- package/src/server/lib/db/schema.test.ts +3 -3
- package/src/server/lib/db/schema.ts +6 -0
- package/src/server/lib/harness/update-spawn.server.test.ts +97 -0
- package/src/server/lib/harness/update-spawn.server.ts +10 -0
- package/src/server/lib/models/provider-icon-override.server.test.ts +140 -0
- package/src/server/lib/models/provider-icon-override.server.ts +197 -0
- package/src/server/lib/models/provider-icon-store.server.ts +8 -0
- package/src/server/lib/models/provider-icon.server.ts +31 -6
- package/src/server/lib/omp/session/artifacts.server.test.ts +11 -7
- package/src/server/lib/omp/session/artifacts.server.ts +21 -17
- package/src/server/lib/panels/build.server.ts +19 -2
- package/src/server/lib/panels/css.server.test.ts +141 -0
- package/src/server/lib/panels/css.server.ts +255 -0
- package/src/server/lib/panels/plugin-ui-contract.test.ts +64 -0
- package/src/server/lib/panels/registry-stylesheet.server.test.ts +69 -0
- package/src/server/lib/panels/scan.server.ts +13 -7
- package/src/server/lib/panels/source-warnings.server.test.ts +65 -0
- package/src/server/lib/panels/source-warnings.server.ts +71 -0
- package/src/server/lib/realtime/topics/catalog.server.ts +3 -0
- package/src/server/lib/realtime/topics.server.ts +14 -0
- package/src/server/lib/sessions/last-opened-client.server.ts +1 -1
- package/src/server/lib/workspace/access.server.ts +108 -0
- package/src/server/lib/workspace/project-patch.server.ts +4 -2
- package/src/server/lib/workspace/register-folder.server.ts +19 -5
- package/src/server/lib/workspace/session-access.server.ts +55 -0
- package/src/server/lib/workspace/tenancy-schema.server.ts +40 -0
- package/src/server/plugins/ssr.ts +19 -3
- package/src/server/routes/accounts/index.ts +8 -0
- package/src/server/routes/accounts/management.test.ts +174 -0
- package/src/server/routes/accounts/management.ts +166 -0
- package/src/server/routes/auth/login.ts +22 -8
- package/src/server/routes/auth/logout.ts +1 -1
- package/src/server/routes/auth/password.ts +40 -33
- package/src/server/routes/auth/revoke.test.ts +1 -1
- package/src/server/routes/auth/revoke.ts +26 -8
- package/src/server/routes/auth/routes.test.ts +3 -3
- package/src/server/routes/auth/state.ts +14 -7
- package/src/server/routes/connect/devices.ts +7 -4
- package/src/server/routes/connect/pair.ts +4 -3
- package/src/server/routes/connect/status.ts +4 -2
- package/src/server/routes/connect/tunnels.ts +2 -1
- package/src/server/routes/folders/batch-delete.ts +12 -0
- package/src/server/routes/folders/clone.ts +7 -2
- package/src/server/routes/folders/create.ts +3 -1
- package/src/server/routes/folders/folder.ts +44 -4
- package/src/server/routes/folders/index.ts +3 -0
- package/src/server/routes/folders/shares.ts +62 -0
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/panels/build.ts +1 -1
- package/src/server/routes/panels/css.test.ts +22 -0
- package/src/server/routes/panels/css.ts +5 -7
- package/src/server/routes/realtime/ws.ts +16 -1
- package/src/server/routes/sessions/list.ts +3 -2
- package/src/server/routes/settings/projects.ts +46 -7
- package/src/server/routes/settings/provider-icon.ts +18 -0
- package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +2 -2
- package/src/shared/lib/chat/timeline/tool-render-mode.ts +6 -3
- package/src/shared/lib/icons/tint-hues.generated.ts +38 -37
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +27 -1
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
- package/src/shared/lib/realtime/protocol.ts +16 -0
- package/src/shared/lib/settings/defaults.ts +2 -1
- package/src/shared/lib/settings/sections.ts +1 -1
- package/src/shared/lib/theme/border-style.test.ts +11 -9
- package/src/shared/lib/theme/border-style.ts +7 -7
- package/src/shared/lib/theme/chrome-style.test.ts +15 -0
- package/src/shared/lib/theme/chrome-style.ts +16 -1
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/settings/state.ts +6 -5
- package/src/test-support/file-editor.test-util.ts +25 -6
- package/tsconfig.json +21 -0
- package/dist/client/static/js/ImageView-zf4kh5wp.js +0 -1
- package/dist/client/static/js/LayoutWrapper-dncbzcea.js +0 -2
- package/dist/client/static/js/MergeDiffView-btdx9yb9.js +0 -1
- package/dist/client/static/js/Modal-5cxfw2rv.js +0 -60
- package/dist/client/static/js/SessionsView-vbn0nvx4.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-sxrkxwbq.js +0 -1
- package/dist/client/static/js/bash-bcbct9gc.js +0 -1
- package/dist/client/static/js/c-fn9jz26e.js +0 -1
- package/dist/client/static/js/cpp-a1q64mke.js +0 -1
- package/dist/client/static/js/css-b92azee8.js +0 -1
- package/dist/client/static/js/css-sn00sq6v.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-g1xwa8b9.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-05p61bka.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-500fcx2a.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-z1yehwys.js +0 -1
- package/dist/client/static/js/graphql-8d8bn59j.js +0 -1
- package/dist/client/static/js/html-6hdrwtz2.js +0 -1
- package/dist/client/static/js/index-0kcnghxn.js +0 -4
- package/dist/client/static/js/index-2zhmmtye.js +0 -2
- package/dist/client/static/js/index-4vtc4xct.js +0 -481
- package/dist/client/static/js/index-5srvxsht.js +0 -2
- package/dist/client/static/js/index-6c1s0v4b.js +0 -1
- package/dist/client/static/js/index-cvm2ha01.js +0 -1
- package/dist/client/static/js/index-d11mbz2q.js +0 -4
- package/dist/client/static/js/index-fen0x3qh.js +0 -1
- package/dist/client/static/js/index-gwgh27h3.js +0 -314
- package/dist/client/static/js/index-hxy1sadd.js +0 -2
- package/dist/client/static/js/index-pg87cgpy.js +0 -2
- package/dist/client/static/js/index-q1a40v20.js +0 -3
- package/dist/client/static/js/index-qmvstmvh.js +0 -1
- package/dist/client/static/js/index-t6nqy2n5.css +0 -1
- package/dist/client/static/js/index-wf5j0009.js +0 -10
- package/dist/client/static/js/index-y6zbkh4p.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-dqyaxjc1.js +0 -1
- package/dist/client/static/js/ini-g6a5xsaw.js +0 -1
- package/dist/client/static/js/java-n596am4c.js +0 -1
- package/dist/client/static/js/javascript-zc1qnyyp.js +0 -1
- package/dist/client/static/js/json-7k70qbkj.js +0 -1
- package/dist/client/static/js/jsx-sndenqrc.js +0 -1
- package/dist/client/static/js/lua-djd3g9q5.js +0 -1
- package/dist/client/static/js/markdown-r2tpvxpn.js +0 -1
- package/dist/client/static/js/one-dark-pro-ckq5capv.js +0 -1
- package/dist/client/static/js/one-light-a908z398.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-7jxzax4z.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-wc9wxr7f.js +0 -1
- package/dist/client/static/js/properties-brn72zdk.js +0 -1
- package/dist/client/static/js/python-g9mghwgm.js +0 -1
- package/dist/client/static/js/r-e247x4mw.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-kwj5padj.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-h8sdx3w5.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2wmwx246.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-h4cdgw3y.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-q7m0tfd0.js +0 -1
- package/dist/client/static/js/sql-0kar81jy.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-9gm67sq4.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-xtvv4za2.js +0 -120
- package/dist/client/static/js/treeView-Q6P3EWNA-yv9640h3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-7kpzjg21.js +0 -1
- package/dist/client/static/js/tsx-gjxfjnbk.js +0 -1
- package/dist/client/static/js/typescript-bm89v3gk.js +0 -1
- package/dist/client/static/js/vennDiagram-UO4OBE2U-56q0qs51.js +0 -34
- package/dist/client/static/js/wardley-WFR3VGLG-mggay64p.js +0 -1
- package/dist/client/static/js/xml-b7824nx0.js +0 -1
- package/dist/client/static/js/yaml-kqqktdv1.js +0 -1
- package/src/server/lib/auth/client-address.ts +0 -89
- package/src/server/lib/auth/config.ts +0 -133
- package/src/server/lib/auth/rate-limit.ts +0 -146
- package/src/server/lib/auth/token.ts +0 -220
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
import { useCallback, useMemo, useState } from 'preact/hooks';
|
|
32
32
|
import { experimental_useSidebarThreads, usePanelInfo } from '@kabmo-labs/kabmo-ui';
|
|
33
|
+
import { Button, LoadingOverlay, PanelToolbar, ResultState, RetryButton, Segmented } from '@kabmo-labs/kabmo-ui/components';
|
|
33
34
|
|
|
34
35
|
import type { Card, CardSummary, ResolvedAgent, Stage } from '../protocol';
|
|
35
36
|
import { useBoard, type Lens } from './use-board';
|
|
@@ -123,36 +124,34 @@ export function KanbanPanel() {
|
|
|
123
124
|
[writes],
|
|
124
125
|
);
|
|
125
126
|
|
|
126
|
-
// The board is the plugin's only surface
|
|
127
|
+
// The board is the plugin's only surface. Its TITLE is the host's; every
|
|
128
|
+
// state therefore starts below that header instead of drawing another one.
|
|
127
129
|
if (board.isLoading) {
|
|
128
|
-
return <
|
|
130
|
+
return <LoadingOverlay label="Reading the board…" />;
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
if (board.error) {
|
|
132
134
|
return (
|
|
133
|
-
<
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</div>
|
|
135
|
+
<ResultState
|
|
136
|
+
tone="error"
|
|
137
|
+
title="Could not read the board."
|
|
138
|
+
description={board.error}
|
|
139
|
+
action={<RetryButton onClick={board.reload} />}
|
|
140
|
+
/>
|
|
140
141
|
);
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
if (!live) {
|
|
144
145
|
return (
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</button>
|
|
155
|
-
</div>
|
|
146
|
+
<ResultState
|
|
147
|
+
title="No board yet."
|
|
148
|
+
description="It will be created in this Kabmo's data directory."
|
|
149
|
+
action={
|
|
150
|
+
<Button variant="primary" onClick={() => void board.createBoard()}>
|
|
151
|
+
Create board
|
|
152
|
+
</Button>
|
|
153
|
+
}
|
|
154
|
+
/>
|
|
156
155
|
);
|
|
157
156
|
}
|
|
158
157
|
|
|
@@ -162,40 +161,26 @@ export function KanbanPanel() {
|
|
|
162
161
|
return (
|
|
163
162
|
<div class="flex h-full min-h-0 w-full bg-paper text-ink">
|
|
164
163
|
<div class="flex flex-col flex-1 min-w-0 min-h-0">
|
|
165
|
-
<
|
|
166
|
-
<span class="text-xs font-semibold">Kanban</span>
|
|
164
|
+
<PanelToolbar>
|
|
167
165
|
<span class="text-[10px] text-ink/40">{live.cards.length}</span>
|
|
168
|
-
<div class="flex items-center gap-1
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
166
|
+
<div class="ml-auto flex items-center gap-1">
|
|
167
|
+
<Segmented
|
|
168
|
+
value={board.lens}
|
|
169
|
+
options={(['all', 'workspace', 'unfiled'] as const).map((lens) => ({
|
|
170
|
+
value: lens,
|
|
171
|
+
label: lensLabel(lens, board.counts),
|
|
172
|
+
}))}
|
|
173
|
+
ariaLabel="Lens"
|
|
174
|
+
onChange={(lens) => board.setLens(lens as Lens)}
|
|
175
|
+
/>
|
|
176
|
+
<Button size="xs" onClick={() => setStagesOpen(true)}>
|
|
177
|
+
Stages…
|
|
178
|
+
</Button>
|
|
179
|
+
<Button size="xs" onClick={board.reload}>
|
|
180
|
+
Refresh
|
|
181
|
+
</Button>
|
|
183
182
|
</div>
|
|
184
|
-
|
|
185
|
-
type="button"
|
|
186
|
-
class="ml-auto rounded-md border border-ink/15 px-2 py-0.5 text-[10px] text-ink/70"
|
|
187
|
-
onClick={() => setStagesOpen(true)}
|
|
188
|
-
>
|
|
189
|
-
Stages…
|
|
190
|
-
</button>
|
|
191
|
-
<button
|
|
192
|
-
type="button"
|
|
193
|
-
class="rounded-md border border-ink/15 px-2 py-0.5 text-[10px] text-ink/70"
|
|
194
|
-
onClick={board.reload}
|
|
195
|
-
>
|
|
196
|
-
Refresh
|
|
197
|
-
</button>
|
|
198
|
-
</header>
|
|
183
|
+
</PanelToolbar>
|
|
199
184
|
|
|
200
185
|
{live.errors.length > 0 ? (
|
|
201
186
|
<ul class="px-2.5 py-1.5 border-b border-ink/10 flex flex-col gap-0.5">
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import { useCallback, useEffect, useMemo, useState } from 'preact/hooks';
|
|
20
20
|
import { useRpc, useRealtime, useSessionState, usePanelInfo } from '@kabmo-labs/kabmo-ui';
|
|
21
|
+
import { toast } from '@kabmo-labs/kabmo-ui/components';
|
|
21
22
|
|
|
22
23
|
import type { BoardRead, BoardSignal, CardSummary } from '../protocol';
|
|
23
24
|
|
|
@@ -111,6 +112,7 @@ export function useBoard(): BoardState {
|
|
|
111
112
|
if (outcome.ok) {
|
|
112
113
|
setSnapshot(outcome.value as BoardRead);
|
|
113
114
|
setError(null);
|
|
115
|
+
toast('Board created', 'success');
|
|
114
116
|
} else {
|
|
115
117
|
setError(outcome.error.message);
|
|
116
118
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "session-info",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Shows the active workspace and keeps a note per session.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"kabmo": {
|
|
8
8
|
"id": "session-info",
|
|
9
9
|
"name": "Session Info",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.4.0",
|
|
11
11
|
"description": "Shows the active workspace and keeps a note per session.",
|
|
12
12
|
"app": "dist/app.js",
|
|
13
13
|
"server": "dist/server.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
2
|
import { definePluginApp } from '@kabmo-labs/kabmo-sdk/app';
|
|
3
3
|
import { usePanelInfo, useSessionValue } from '@kabmo-labs/kabmo-ui';
|
|
4
|
-
import { Field, FieldList, Note, Panel, TextAreaField } from '@kabmo-labs/kabmo-ui/components';
|
|
4
|
+
import { Field, FieldList, Note, Panel, PanelBody, TextAreaField } from '@kabmo-labs/kabmo-ui/components';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The bundled example plugin.
|
|
@@ -39,7 +39,7 @@ function SessionInfoPanel() {
|
|
|
39
39
|
const note = useSessionValue('note');
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
|
-
<
|
|
42
|
+
<PanelBody>
|
|
43
43
|
<FieldList>
|
|
44
44
|
<Field label="workspace" value={info.workspacePath ?? 'none'} />
|
|
45
45
|
<Field label="session" value={info.sessionId ?? 'none'} />
|
|
@@ -55,7 +55,7 @@ function SessionInfoPanel() {
|
|
|
55
55
|
onInput={note.update}
|
|
56
56
|
/>
|
|
57
57
|
</div>
|
|
58
|
-
</
|
|
58
|
+
</PanelBody>
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -157,6 +157,9 @@ export default definePluginApp((app) => {
|
|
|
157
157
|
app.rightPanel({
|
|
158
158
|
id: 'info',
|
|
159
159
|
title: 'Session Info',
|
|
160
|
+
// The host draws the panel's title row; the editor takeover below keeps
|
|
161
|
+
// its own (`panel`, not `rightPanel`).
|
|
162
|
+
chrome: 'host',
|
|
160
163
|
component: SessionInfoPanel,
|
|
161
164
|
minWidth: 300,
|
|
162
165
|
defaultFraction: 0.35,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stats",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "CPU and RAM used by the omp stack — Kabmo, every omp child, the daemons and the shells.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"kabmo": {
|
|
8
8
|
"id": "stats",
|
|
9
9
|
"name": "Stats",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.6.0",
|
|
11
11
|
"description": "CPU and RAM used by the omp stack — Kabmo, every omp child, the daemons and the shells.",
|
|
12
12
|
"app": "dist/app.js",
|
|
13
13
|
"server": "dist/server.js",
|
|
@@ -118,9 +118,11 @@ describe('KillConfirm', () => {
|
|
|
118
118
|
|
|
119
119
|
test('Cancel holds focus on open, so Enter cannot kill anything', async () => {
|
|
120
120
|
const { container } = await dialogFor();
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
// The host shell (and the kit fallback) adds a header Close button, so the
|
|
122
|
+
// check names the control rather than assuming it is the first button.
|
|
123
|
+
const cancel = [...container.querySelectorAll('button')].find((button) => button.textContent === 'Cancel');
|
|
124
|
+
expect(cancel).toBeDefined();
|
|
125
|
+
expect(document.activeElement).toBe(cancel ?? null);
|
|
124
126
|
});
|
|
125
127
|
|
|
126
128
|
test('Escape cancels', async () => {
|
|
@@ -153,7 +155,7 @@ describe('KillConfirm', () => {
|
|
|
153
155
|
expect(calls.confirm).toBe(1);
|
|
154
156
|
|
|
155
157
|
const backdrop = container.querySelector('.fixed');
|
|
156
|
-
backdrop?.dispatchEvent(new window.MouseEvent('
|
|
158
|
+
backdrop?.dispatchEvent(new window.MouseEvent('click', { bubbles: true }));
|
|
157
159
|
expect(calls.cancel).toBe(1);
|
|
158
160
|
});
|
|
159
161
|
});
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* Three behaviours, each a correctness rule rather than polish:
|
|
15
15
|
*
|
|
16
|
-
* - **Cancel is focused first.** Enter on an accidental open must not kill.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* The trap is small on purpose: two buttons.
|
|
16
|
+
* - **Cancel is focused first.** Enter on an accidental open must not kill. The
|
|
17
|
+
* host's dialog shell owns Escape and the Tab trap; this file only chooses
|
|
18
|
+
* which control gets the initial focus.
|
|
20
19
|
* - **The panel's own refusal is shown here, inline.** The server answers
|
|
21
20
|
* `{ killed: false, reason }` for a pid it will not signal (a stale row, a
|
|
22
21
|
* foreign process); closing the dialog and dropping the sentence would leave
|
|
@@ -24,6 +23,7 @@
|
|
|
24
23
|
*/
|
|
25
24
|
|
|
26
25
|
import { useEffect, useRef } from 'preact/hooks';
|
|
26
|
+
import { Button, Dialog } from '@kabmo-labs/kabmo-ui/components';
|
|
27
27
|
|
|
28
28
|
import { formatBytes } from './format';
|
|
29
29
|
import type { ProcessRow } from './snapshot';
|
|
@@ -38,67 +38,36 @@ export interface KillConfirmProps {
|
|
|
38
38
|
onConfirm: () => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
const FOCUSABLE = 'button:not([disabled])';
|
|
42
|
-
|
|
43
41
|
export function KillConfirm({ row, pending, error, onCancel, onConfirm }: KillConfirmProps) {
|
|
44
42
|
const cancelRef = useRef<HTMLButtonElement>(null);
|
|
45
|
-
const dialogRef = useRef<HTMLDivElement>(null);
|
|
46
43
|
|
|
47
44
|
useEffect(() => {
|
|
48
45
|
cancelRef.current?.focus();
|
|
49
46
|
}, []);
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const targets = [...dialog.querySelectorAll<HTMLElement>(FOCUSABLE)];
|
|
62
|
-
if (targets.length === 0) return;
|
|
63
|
-
const first = targets[0];
|
|
64
|
-
const last = targets[targets.length - 1];
|
|
65
|
-
const active = document.activeElement;
|
|
66
|
-
if (event.shiftKey && (active === first || !dialog.contains(active))) {
|
|
67
|
-
event.preventDefault();
|
|
68
|
-
last.focus();
|
|
69
|
-
} else if (!event.shiftKey && (active === last || !dialog.contains(active))) {
|
|
70
|
-
event.preventDefault();
|
|
71
|
-
first.focus();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
window.addEventListener('keydown', onKeyDown);
|
|
75
|
-
return () => window.removeEventListener('keydown', onKeyDown);
|
|
76
|
-
}, [onCancel]);
|
|
48
|
+
const footer = (
|
|
49
|
+
<div class="flex items-center justify-end gap-2 px-4 py-3 border-t border-ink/10">
|
|
50
|
+
<Button ref={cancelRef} onClick={onCancel}>
|
|
51
|
+
Cancel
|
|
52
|
+
</Button>
|
|
53
|
+
<Button variant="danger" onClick={onConfirm} disabled={pending}>
|
|
54
|
+
{pending ? 'Stopping…' : 'Stop process'}
|
|
55
|
+
</Button>
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
77
58
|
|
|
78
59
|
return (
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
60
|
+
<Dialog
|
|
61
|
+
title={`Stop pid ${row.pid}?`}
|
|
62
|
+
onClose={onCancel}
|
|
63
|
+
maxWidthClass="max-w-sm"
|
|
64
|
+
footer={footer}
|
|
84
65
|
>
|
|
85
|
-
<div
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
aria-describedby="stats-kill-body"
|
|
91
|
-
class="w-full max-w-sm flex flex-col gap-3 rounded-lg border border-ink/15 bg-paper p-3 shadow-xl"
|
|
92
|
-
>
|
|
93
|
-
<div class="flex flex-col gap-1">
|
|
94
|
-
<h2 id="stats-kill-title" class="font-sans text-sm font-semibold text-ink">
|
|
95
|
-
Stop pid {row.pid}?
|
|
96
|
-
</h2>
|
|
97
|
-
<p id="stats-kill-body" class="font-sans text-xs text-ink/70">
|
|
98
|
-
{row.title}
|
|
99
|
-
{row.detail ? <span class="block font-mono text-[10px] text-ink/45">{row.detail}</span> : null}
|
|
100
|
-
</p>
|
|
101
|
-
</div>
|
|
66
|
+
<div class="flex flex-col gap-3 p-4">
|
|
67
|
+
<p class="font-sans text-xs text-ink/70">
|
|
68
|
+
{row.title}
|
|
69
|
+
{row.detail ? <span class="block font-mono text-[10px] text-ink/45">{row.detail}</span> : null}
|
|
70
|
+
</p>
|
|
102
71
|
|
|
103
72
|
<dl class="grid grid-cols-2 gap-1 font-mono text-[10px] text-ink/50">
|
|
104
73
|
<dt>memory</dt>
|
|
@@ -120,26 +89,7 @@ export function KillConfirm({ row, pending, error, onCancel, onConfirm }: KillCo
|
|
|
120
89
|
{error}
|
|
121
90
|
</p>
|
|
122
91
|
) : null}
|
|
123
|
-
|
|
124
|
-
<div class="flex items-center justify-end gap-2">
|
|
125
|
-
<button
|
|
126
|
-
ref={cancelRef}
|
|
127
|
-
type="button"
|
|
128
|
-
onClick={onCancel}
|
|
129
|
-
class="inline-flex items-center px-2.5 py-1.5 text-xs rounded border border-ink/15 text-ink hover:bg-ink/5"
|
|
130
|
-
>
|
|
131
|
-
Cancel
|
|
132
|
-
</button>
|
|
133
|
-
<button
|
|
134
|
-
type="button"
|
|
135
|
-
onClick={onConfirm}
|
|
136
|
-
disabled={pending}
|
|
137
|
-
class="inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs rounded border border-error/40 bg-error/10 font-semibold text-error transition-colors hover:bg-error/15 disabled:opacity-40 disabled:cursor-default"
|
|
138
|
-
>
|
|
139
|
-
{pending ? 'Stopping…' : 'Stop process'}
|
|
140
|
-
</button>
|
|
141
|
-
</div>
|
|
142
92
|
</div>
|
|
143
|
-
</
|
|
93
|
+
</Dialog>
|
|
144
94
|
);
|
|
145
|
-
}
|
|
95
|
+
}
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
import type { ComponentChildren } from 'preact';
|
|
33
|
+
import { IconButton } from '@kabmo-labs/kabmo-ui/components';
|
|
33
34
|
|
|
34
35
|
import { formatBytes, formatPercent } from './format';
|
|
35
36
|
import type { GroupSummary, ProcessRow, StatsSnapshot } from './sampler';
|
|
@@ -147,15 +148,16 @@ function ProcessRowView({
|
|
|
147
148
|
`kabmo stop` — the refusal is stated by omission, and the server
|
|
148
149
|
half refuses it too. */}
|
|
149
150
|
{row.pid === serverPid ? null : (
|
|
150
|
-
<
|
|
151
|
-
|
|
152
|
-
onClick={() => onRequestKill(row)}
|
|
153
|
-
aria-label={`Stop pid ${row.pid}`}
|
|
151
|
+
<IconButton
|
|
152
|
+
ariaLabel={`Stop pid ${row.pid}`}
|
|
154
153
|
title={`Stop pid ${row.pid}`}
|
|
155
|
-
|
|
154
|
+
variant="danger"
|
|
155
|
+
size="xs"
|
|
156
|
+
className="h-4 w-4 leading-none"
|
|
157
|
+
onClick={() => onRequestKill(row)}
|
|
156
158
|
>
|
|
157
159
|
×
|
|
158
|
-
</
|
|
160
|
+
</IconButton>
|
|
159
161
|
)}
|
|
160
162
|
</td>
|
|
161
163
|
</tr>
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
* second click cannot queue a second sample while the first is in flight.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
+
import { IconButton } from '@kabmo-labs/kabmo-ui/components';
|
|
23
|
+
|
|
22
24
|
interface RefreshButtonProps {
|
|
23
25
|
onRefresh: () => void;
|
|
24
26
|
refreshing: boolean;
|
|
@@ -28,13 +30,13 @@ interface RefreshButtonProps {
|
|
|
28
30
|
|
|
29
31
|
export function RefreshButton({ onRefresh, refreshing, className = '' }: RefreshButtonProps) {
|
|
30
32
|
return (
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
+
<IconButton
|
|
34
|
+
ariaLabel="Refresh stats"
|
|
33
35
|
onClick={onRefresh}
|
|
34
36
|
disabled={refreshing}
|
|
35
37
|
title="Take a sample now"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
size="sm"
|
|
39
|
+
className={className}
|
|
38
40
|
>
|
|
39
41
|
<svg
|
|
40
42
|
width="12"
|
|
@@ -53,6 +55,6 @@ export function RefreshButton({ onRefresh, refreshing, className = '' }: Refresh
|
|
|
53
55
|
<path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" />
|
|
54
56
|
<path d="M8 16H3v5" />
|
|
55
57
|
</svg>
|
|
56
|
-
</
|
|
58
|
+
</IconButton>
|
|
57
59
|
);
|
|
58
60
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
import { useEffect, useMemo, useState } from 'preact/hooks';
|
|
29
29
|
import { definePluginApp } from '@kabmo-labs/kabmo-sdk/app';
|
|
30
30
|
import { usePanelHost, useRealtime, useRpc } from '@kabmo-labs/kabmo-ui';
|
|
31
|
-
import { Empty, Note,
|
|
31
|
+
import { Empty, Note, PanelBody } from '@kabmo-labs/kabmo-ui/components';
|
|
32
32
|
|
|
33
33
|
import { KillConfirm } from './KillConfirm';
|
|
34
34
|
import { ProcessTable } from './ProcessTable';
|
|
@@ -127,7 +127,7 @@ function StatsPanel() {
|
|
|
127
127
|
|
|
128
128
|
if (!snapshot && serverDown) {
|
|
129
129
|
return (
|
|
130
|
-
<
|
|
130
|
+
<PanelBody>
|
|
131
131
|
<div class="flex flex-col gap-2 p-2">
|
|
132
132
|
<Note tone="error">The Stats server half is not running, so nothing is being measured.</Note>
|
|
133
133
|
<Note>
|
|
@@ -135,28 +135,28 @@ function StatsPanel() {
|
|
|
135
135
|
start loads it. If it is already running, check the plugin is enabled in Settings → Plugins Kabmo.
|
|
136
136
|
</Note>
|
|
137
137
|
</div>
|
|
138
|
-
</
|
|
138
|
+
</PanelBody>
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
if (!snapshot) {
|
|
143
143
|
return (
|
|
144
|
-
<
|
|
144
|
+
<PanelBody>
|
|
145
145
|
<Empty>Sampling the process table…</Empty>
|
|
146
|
-
</
|
|
146
|
+
</PanelBody>
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
if (!snapshot.probe.supported && snapshot.rows.length === 0) {
|
|
151
151
|
return (
|
|
152
|
-
<
|
|
152
|
+
<PanelBody>
|
|
153
153
|
<Note tone="error">{snapshot.error ?? `No process probe for ${snapshot.probe.name}.`}</Note>
|
|
154
|
-
</
|
|
154
|
+
</PanelBody>
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
return (
|
|
159
|
-
<
|
|
159
|
+
<PanelBody>
|
|
160
160
|
<div class="-m-3 p-2 flex flex-col">
|
|
161
161
|
<TotalsBar snapshot={snapshot} onRefresh={() => void refreshNow()} refreshing={refreshing} />
|
|
162
162
|
|
|
@@ -227,7 +227,7 @@ function StatsPanel() {
|
|
|
227
227
|
/>
|
|
228
228
|
) : null}
|
|
229
229
|
</div>
|
|
230
|
-
</
|
|
230
|
+
</PanelBody>
|
|
231
231
|
);
|
|
232
232
|
}
|
|
233
233
|
|
|
@@ -237,6 +237,8 @@ export default definePluginApp((app) => {
|
|
|
237
237
|
// The bar shows `<title> — <plugin name>`, so this is the half that names
|
|
238
238
|
// the VIEW: `Stats` here would read `Stats — Stats`.
|
|
239
239
|
title: 'Resources',
|
|
240
|
+
// The host draws the panel's title row.
|
|
241
|
+
chrome: 'host',
|
|
240
242
|
component: StatsPanel,
|
|
241
243
|
// Telemetry tables need room before they wrap — the same floor the
|
|
242
244
|
// Kabmo's own Context view takes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kabmo-labs/kabmo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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>",
|
|
@@ -104,23 +104,23 @@
|
|
|
104
104
|
"tailwindcss": "^4.1.14",
|
|
105
105
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
106
106
|
"yaml": "^2.9.1",
|
|
107
|
-
"@kabmo-labs/kabmo-acp": "1.
|
|
108
|
-
"@kabmo-labs/kabmo-app-contracts": "1.
|
|
109
|
-
"@kabmo-labs/kabmo-auth": "1.
|
|
107
|
+
"@kabmo-labs/kabmo-acp": "1.3.0",
|
|
108
|
+
"@kabmo-labs/kabmo-app-contracts": "1.3.0",
|
|
109
|
+
"@kabmo-labs/kabmo-auth": "1.1.0",
|
|
110
110
|
"@kabmo-labs/kabmo-bytes": "1.0.0",
|
|
111
|
-
"@kabmo-labs/kabmo-chat": "1.3.
|
|
111
|
+
"@kabmo-labs/kabmo-chat": "1.3.3",
|
|
112
112
|
"@kabmo-labs/kabmo-db": "1.0.0",
|
|
113
113
|
"@kabmo-labs/kabmo-format": "1.0.0",
|
|
114
114
|
"@kabmo-labs/kabmo-fs": "1.0.0",
|
|
115
115
|
"@kabmo-labs/kabmo-git": "1.0.0",
|
|
116
116
|
"@kabmo-labs/kabmo-guards": "1.0.0",
|
|
117
|
-
"@kabmo-labs/kabmo-harness": "1.1.
|
|
117
|
+
"@kabmo-labs/kabmo-harness": "1.1.3",
|
|
118
118
|
"@kabmo-labs/kabmo-http": "1.0.0",
|
|
119
119
|
"@kabmo-labs/kabmo-idle-reaper": "1.0.0",
|
|
120
120
|
"@kabmo-labs/kabmo-live-sessions": "1.0.0",
|
|
121
121
|
"@kabmo-labs/kabmo-mcp-contracts": "1.0.0",
|
|
122
122
|
"@kabmo-labs/kabmo-model-contracts": "1.0.0",
|
|
123
|
-
"@kabmo-labs/kabmo-omp": "1.
|
|
123
|
+
"@kabmo-labs/kabmo-omp": "1.5.0",
|
|
124
124
|
"@kabmo-labs/kabmo-paths": "1.0.0",
|
|
125
125
|
"@kabmo-labs/kabmo-platform": "1.0.0",
|
|
126
126
|
"@kabmo-labs/kabmo-process": "1.0.0",
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
"@kabmo-labs/kabmo-refresh-cadence": "1.0.0",
|
|
130
130
|
"@kabmo-labs/kabmo-rpc-lines": "1.0.0",
|
|
131
131
|
"@kabmo-labs/kabmo-runtime-flags": "1.0.0",
|
|
132
|
-
"@kabmo-labs/kabmo-sdk": "0.
|
|
132
|
+
"@kabmo-labs/kabmo-sdk": "0.6.0",
|
|
133
133
|
"@kabmo-labs/kabmo-session": "1.0.0",
|
|
134
|
-
"@kabmo-labs/kabmo-settings": "1.
|
|
135
|
-
"@kabmo-labs/kabmo-ui": "0.0
|
|
134
|
+
"@kabmo-labs/kabmo-settings": "1.2.0",
|
|
135
|
+
"@kabmo-labs/kabmo-ui": "0.1.0",
|
|
136
136
|
"@kabmo-labs/kabmo-workspace": "1.1.0",
|
|
137
137
|
"@kabmo-labs/kabmo-worktree": "1.0.0"
|
|
138
138
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import fs from 'node:fs';
|
|
14
14
|
import path from 'node:path';
|
|
15
15
|
|
|
16
|
-
import { error, fail, log, ok, printJson, isJson } from '@/cli/lib/output.js';
|
|
16
|
+
import { error, fail, log, ok, printJson, isJson, warn } from '@/cli/lib/output.js';
|
|
17
17
|
import { joinPath, resolvePath } from '@/cli/lib/path-utils.js';
|
|
18
18
|
import { buildPanelPlugin } from '@/server/lib/panels/build.server';
|
|
19
19
|
import { discoverPanelPlugins } from '@/server/lib/panels/registry.server';
|
|
@@ -61,6 +61,7 @@ async function build(dir, ctx) {
|
|
|
61
61
|
printJson({ dir: target, ...result });
|
|
62
62
|
} else if (result.status === 'built') {
|
|
63
63
|
ok(`Built ${manifest.id} (${manifest.app ?? ''}${manifest.server ? `, ${manifest.server}` : ''})`);
|
|
64
|
+
for (const warning of result.warnings ?? []) warn(`${manifest.id}: ${warning}`);
|
|
64
65
|
} else {
|
|
65
66
|
error(`${result.status}: ${result.reason}`);
|
|
66
67
|
}
|
|
@@ -212,22 +213,24 @@ async function scaffold(dir, ctx) {
|
|
|
212
213
|
|
|
213
214
|
const APP_TEMPLATE = `import { definePluginApp } from '@kabmo-labs/kabmo-sdk/app';
|
|
214
215
|
import { usePanelInfo } from '@kabmo-labs/kabmo-ui';
|
|
215
|
-
import {
|
|
216
|
+
import { PanelBody, Field, FieldList } from '@kabmo-labs/kabmo-ui/components';
|
|
216
217
|
|
|
217
218
|
function MyPanel() {
|
|
218
219
|
const info = usePanelInfo();
|
|
219
220
|
return (
|
|
220
|
-
<
|
|
221
|
+
<PanelBody>
|
|
221
222
|
<FieldList>
|
|
222
223
|
<Field label="session" value={info.sessionId ?? 'none'} />
|
|
223
224
|
<Field label="workspace" value={info.workspacePath ?? 'none'} />
|
|
224
225
|
</FieldList>
|
|
225
|
-
</
|
|
226
|
+
</PanelBody>
|
|
226
227
|
);
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
export default definePluginApp((app) => {
|
|
230
|
-
|
|
231
|
+
// \`chrome: 'host'\` makes the host draw this panel's title row, so every
|
|
232
|
+
// plugin's chrome is the same instead of each author's own header.
|
|
233
|
+
app.rightPanel({ id: 'main', title: 'My Panel', component: MyPanel, chrome: 'host' });
|
|
231
234
|
});
|
|
232
235
|
`;
|
|
233
236
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ThemePalette } from '@kabmo-labs/kabmo-app-contracts/theme';
|
|
2
|
+
import type { AccountSummary } from '@kabmo-labs/kabmo-auth/account';
|
|
2
3
|
|
|
3
4
|
export interface KabmoBootstrap {
|
|
4
5
|
initialIsMobile: boolean;
|
|
@@ -33,6 +34,10 @@ export interface KabmoBootstrap {
|
|
|
33
34
|
* while this fact was missing, and the only way to ask was a second request.
|
|
34
35
|
*/
|
|
35
36
|
authEnabled?: boolean;
|
|
37
|
+
/** The account this session belongs to, when authenticated. */
|
|
38
|
+
account?: AccountSummary | null;
|
|
39
|
+
/** How many sign-in accounts exist; drives the footer's version placement. */
|
|
40
|
+
accountCount?: number;
|
|
36
41
|
/**
|
|
37
42
|
* The Android shell's version, when this page was requested by the APK
|
|
38
43
|
* (`KabmoAndroid/<version>` in the User-Agent). Null in every browser.
|