@kabmo-labs/kabmo 0.60.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-p82s28sj.js → Body-z6kstvk6.js} +3 -3
- package/dist/client/static/js/{CsvGrid-erc5mcvc.js → CsvGrid-f73c0s4e.js} +2 -2
- package/dist/client/static/js/{DocxView-x3faj0jv.js → DocxView-a1pb7nsb.js} +3 -3
- package/dist/client/static/js/{DrawioView-t7fh3ens.js → DrawioView-r61gcg24.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-zy7x7jmm.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-kqx472q7.js → PdfView-mppt2gkd.js} +1 -1
- package/dist/client/static/js/SessionsView-vvsaw9f0.js +1 -0
- package/dist/client/static/js/{SheetView-0n9fze50.js → SheetView-5s9zfx9g.js} +9 -9
- package/dist/client/static/js/{SvgPreview-6xc6ts46.js → SvgPreview-ff78xn3e.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-2xdkkqwg.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-ja8cx19z.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-ytf7s99c.js → blockDiagram-BEXU5L5S-t8xbexa6.js} +6 -6
- package/dist/client/static/js/c-vvantfth.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-5a0kdx0z.js → c4Diagram-YGBWAQC7-9fwf2zxk.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-hd98dvjw.js → classDiagram-v2-NBCMYWYE-nbapgqbs.js} +4 -4
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-man3fqcj.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-2f0kbbv2.js → cynefinDiagram-VND7K2PF-qdg32wah.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-k7pyhgzn.js → dagre-6A5THRUB-qzshg1vs.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-qx0afa2m.js → diagram-22UHCM2B-197hemfa.js} +11 -11
- package/dist/client/static/js/{diagram-3UASUU5V-ydpe77sv.js → diagram-3UASUU5V-236gnjr6.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-e63v984n.js → diagram-ATOU4E4O-vjgpyaaq.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-8c765h3a.js → diagram-CDSNMT55-ywvzcx7z.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-3pq0n7v8.js → diagram-MLGK6HIB-9ey7ev7j.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-638atzxz.js → diagram-MPIPVDR6-vrqbb6r7.js} +2 -2
- package/dist/client/static/js/{dockerfile-yehc914q.js → dockerfile-4nked309.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-3gv43zvm.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-6s5pggfc.js → elk-276RUBZZ-nej6yy1c.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-x7cqyb89.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-g97te4v1.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-sw4f94tc.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-vejz38qt.js → index-0w1jzang.js} +5 -5
- package/dist/client/static/js/{index-bpcg34jp.js → index-1svt0cdw.js} +2 -2
- package/dist/client/static/js/{index-hgfyx8dt.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-pdz6j2g2.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-111bq6rs.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-hwdkxe4n.js → index-dxyjxhm1.js} +2 -2
- package/dist/client/static/js/{index-43gmn7yb.js → index-edpyqz9f.js} +1 -1
- package/dist/client/static/js/{index-pdgc9ccr.js → index-eesepb70.js} +2 -2
- package/dist/client/static/js/{index-vec7m1yd.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-vcq6zfxx.js → index-jcbp1d9d.js} +6 -6
- package/dist/client/static/js/index-jg5h18sm.js +2 -0
- package/dist/client/static/js/{index-6qn9kygb.js → index-jtdve6xw.js} +7 -7
- package/dist/client/static/js/{index-4xbc0j7t.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-2n2evsg0.js → index-kv1xnem9.js} +2 -2
- package/dist/client/static/js/{index-8zct30zd.js → index-m54ctmxr.js} +1 -1
- package/dist/client/static/js/index-mgzbypt5.js +314 -0
- package/dist/client/static/js/{index-cf69bhjx.js → index-mh52531j.js} +2 -2
- package/dist/client/static/js/{index-0ze5bwvw.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-9rz6kzsv.js → index-nxd6z7f9.js} +2 -2
- package/dist/client/static/js/{index-jfqd838j.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-cfvc1zpk.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-37apvxgj.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-z8k42dwz.js → index-w0j96eyy.js} +8 -8
- package/dist/client/static/js/{index-qkqkygrf.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-dv01prse.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-ywp0sd1e.js → index-zy963qbh.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-t7pbg7rt.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-pw2qaa27.js → infoDiagram-VRGFBTTK-9pe7w3r5.js} +2 -2
- package/dist/client/static/js/ini-522adp5a.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-d13jhvxy.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-20gb8a04.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-s78e158c.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-xbm27k28.js → mermaid.core-3aae27b9.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-6y7xe2zm.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-dmvewetf.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-1q9e7rcm.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-mvrem3n6.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-axttcfhw.js → railroadDiagram-XR7U4H2S-70qy7qdh.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-5qx7erta.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-b3ckax3e.js → rust-6sddyxnt.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-es87a3j6.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-dgpnjrtk.js → sequenceDiagram-PO4LG4MO-w7z84f80.js} +7 -7
- package/dist/client/static/js/{sizeCapture-INFHLROL-kyw0p86n.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-vnsbw8y9.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-060q1rep.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-18sp73v7.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-q0kwmbzh.js → wardleyDiagram-VNRHLVJA-hjddd656.js} +3 -3
- package/dist/client/static/js/xml-59n0cjn6.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-y0gpmg6m.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 -37
- package/src/client/components/workspace/panel-tabs/TabStrip.connected.test.tsx +76 -49
- 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-xc90jc1c.js +0 -1
- package/dist/client/static/js/LayoutWrapper-wyqe98kf.js +0 -2
- package/dist/client/static/js/MergeDiffView-bng34cpr.js +0 -1
- package/dist/client/static/js/Modal-89jk7wff.js +0 -60
- package/dist/client/static/js/SessionsView-6bpz1faj.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-7sn6nwjv.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-4h2zkrk1.js +0 -2
- package/dist/client/static/js/index-5nm8hm4k.js +0 -2
- package/dist/client/static/js/index-95jfphx5.js +0 -481
- package/dist/client/static/js/index-9pw441wc.js +0 -4
- package/dist/client/static/js/index-bjz54ht6.js +0 -1
- package/dist/client/static/js/index-bqapt2e8.js +0 -2
- package/dist/client/static/js/index-ddkjgv5h.js +0 -2
- package/dist/client/static/js/index-dekvtt2a.js +0 -314
- package/dist/client/static/js/index-fnwaxc6r.js +0 -1
- package/dist/client/static/js/index-h65zrhva.js +0 -1
- package/dist/client/static/js/index-hxsqw7sz.js +0 -4
- package/dist/client/static/js/index-hxy1sadd.js +0 -2
- package/dist/client/static/js/index-ja0ajnvq.js +0 -10
- package/dist/client/static/js/index-qkyy563e.js +0 -1
- package/dist/client/static/js/index-t6nqy2n5.css +0 -1
- package/dist/client/static/js/index-wrk99kks.js +0 -3
- 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-7bgqnyhm.js +0 -1
- package/dist/client/static/js/one-light-47y6etng.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-y77g9dq0.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-8a3yqmx0.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-gf4y1r3s.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
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* `GET/POST/DELETE /api/folders/:folderId/shares` — collaborator management.
|
|
8
|
+
*
|
|
9
|
+
* Only the owner may change the list. Recipients get the workspace through the
|
|
10
|
+
* sidebar query; no session or file is copied, because both accounts read the
|
|
11
|
+
* same directory.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { json, NO_STORE_HEADERS } from '@kabmo-labs/kabmo-http';
|
|
15
|
+
import type { ActionFunctionArgs, LoaderFunctionArgs } from '@kabmo-labs/kabmo-http';
|
|
16
|
+
import { methodNotAllowed, parseJsonBody } from '@/server/lib/route-adapter';
|
|
17
|
+
import { getDb } from '@/server/db.server';
|
|
18
|
+
import { authenticatedAccount } from '@/server/lib/auth/guard';
|
|
19
|
+
import { getAccount } from '@kabmo-labs/kabmo-auth/server/accounts';
|
|
20
|
+
import { folderShares, ownedFolderRow } from '@/server/lib/workspace/access.server';
|
|
21
|
+
import { emitRealtimeSignal } from '@kabmo-labs/kabmo-realtime-signals';
|
|
22
|
+
|
|
23
|
+
function forbidden(): Response {
|
|
24
|
+
return json({ error: 'Only the owner can share this workspace' }, { status: 403, headers: NO_STORE_HEADERS });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export async function loader({ request, params }: LoaderFunctionArgs) {
|
|
28
|
+
const db = await getDb();
|
|
29
|
+
const accountId = authenticatedAccount(request)?.id ?? 'root';
|
|
30
|
+
const folderId = Number(params.folderId);
|
|
31
|
+
if (!Number.isFinite(folderId) || !(await ownedFolderRow(db, accountId, folderId))) return forbidden();
|
|
32
|
+
return json({ shares: await folderShares(db, folderId) }, { headers: NO_STORE_HEADERS });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export async function action({ request, params }: ActionFunctionArgs) {
|
|
36
|
+
if (request.method !== 'POST' && request.method !== 'DELETE') return methodNotAllowed({ request, params });
|
|
37
|
+
const db = await getDb();
|
|
38
|
+
const accountId = authenticatedAccount(request)?.id ?? 'root';
|
|
39
|
+
const folderId = Number(params.folderId);
|
|
40
|
+
if (!Number.isFinite(folderId) || !(await ownedFolderRow(db, accountId, folderId))) return forbidden();
|
|
41
|
+
|
|
42
|
+
if (request.method === 'DELETE') {
|
|
43
|
+
const target = params.accountId;
|
|
44
|
+
if (!target) return json({ error: 'accountId is required' }, { status: 400, headers: NO_STORE_HEADERS });
|
|
45
|
+
await db.run('DELETE FROM workspace_folder_shares WHERE folder_id = ? AND account_id = ?', [folderId, target]);
|
|
46
|
+
emitRealtimeSignal('sidebar-structure');
|
|
47
|
+
return json({ success: true, shares: await folderShares(db, folderId) }, { headers: NO_STORE_HEADERS });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const body = await parseJsonBody<{ accountId?: unknown }>(request);
|
|
51
|
+
const target = body.ok && typeof body.body.accountId === 'string' ? body.body.accountId : '';
|
|
52
|
+
if (!target) return json({ error: 'accountId is required' }, { status: 400, headers: NO_STORE_HEADERS });
|
|
53
|
+
if (target === accountId || !getAccount(target)) {
|
|
54
|
+
return json({ error: 'Choose another account' }, { status: 400, headers: NO_STORE_HEADERS });
|
|
55
|
+
}
|
|
56
|
+
await db.run(
|
|
57
|
+
'INSERT OR IGNORE INTO workspace_folder_shares (folder_id, account_id) VALUES (?, ?)',
|
|
58
|
+
[folderId, target],
|
|
59
|
+
);
|
|
60
|
+
emitRealtimeSignal('sidebar-structure');
|
|
61
|
+
return json({ success: true, shares: await folderShares(db, folderId) }, { headers: NO_STORE_HEADERS });
|
|
62
|
+
}
|
|
@@ -33,9 +33,11 @@ import { healthBindings } from '@/server/routes/health';
|
|
|
33
33
|
import { wellKnownBindings } from '@/server/routes/well-known';
|
|
34
34
|
import { notificationsBindings } from '@/server/routes/notifications';
|
|
35
35
|
import { connectBindings } from '@/server/routes/connect';
|
|
36
|
+
import { accountsBindings } from '@/server/routes/accounts';
|
|
36
37
|
|
|
37
38
|
const allBindings: HandlerBinding[] = [
|
|
38
39
|
...authBindings,
|
|
40
|
+
...accountsBindings,
|
|
39
41
|
...consoleBindings,
|
|
40
42
|
// @deprecated pre-rename path; same handlers, kept for an old page.
|
|
41
43
|
...chamberBindings,
|
|
@@ -68,5 +68,5 @@ export async function action({ request }: ActionFunctionArgs) {
|
|
|
68
68
|
{ status: 400 },
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
return json({ ok: true, ...(await discoverPanelPlugins()) });
|
|
71
|
+
return json({ ok: true, ...(result.warnings ? { warnings: result.warnings } : {}), ...(await discoverPanelPlugins()) });
|
|
72
72
|
}
|
|
@@ -113,6 +113,28 @@ describe('the css route', () => {
|
|
|
113
113
|
expect(body.indexOf('@import')).toBeLessThan(body.indexOf('@scope'));
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
+
test('serves the GENERATED stylesheet even when the manifest declares none', async () => {
|
|
117
|
+
// Every plugin Kabmo builds gets `dist/plugin.css`; the manifest no longer
|
|
118
|
+
// has to name a stylesheet for its classes to work.
|
|
119
|
+
writePlugin('demo', getMarketplacePluginsDir());
|
|
120
|
+
fs.writeFileSync(join(getMarketplacePluginsDir(), 'demo', 'dist', 'plugin.css'), '.compiled { color: blue; }');
|
|
121
|
+
invalidatePanelScan();
|
|
122
|
+
|
|
123
|
+
const response = await call(cssLoader, { plugin: 'demo.css' });
|
|
124
|
+
expect(response.status).toBe(200);
|
|
125
|
+
expect(await response.text()).toContain('.compiled { color: blue; }');
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
test('the generated stylesheet wins over a declared one', async () => {
|
|
129
|
+
writeCssPlugin('.authored { color: red; }');
|
|
130
|
+
fs.writeFileSync(join(getMarketplacePluginsDir(), 'demo', 'dist', 'plugin.css'), '.compiled { color: blue; }');
|
|
131
|
+
invalidatePanelScan();
|
|
132
|
+
|
|
133
|
+
const body = await (await call(cssLoader, { plugin: 'demo.css' })).text();
|
|
134
|
+
expect(body).toContain('.compiled { color: blue; }');
|
|
135
|
+
expect(body).not.toContain('.authored { color: red; }');
|
|
136
|
+
});
|
|
137
|
+
|
|
116
138
|
test('404s a plugin that declares no stylesheet', async () => {
|
|
117
139
|
writePlugin('demo', getMarketplacePluginsDir());
|
|
118
140
|
invalidatePanelScan();
|
|
@@ -43,8 +43,8 @@ import { json, type LoaderFunctionArgs } from '@kabmo-labs/kabmo-http';
|
|
|
43
43
|
import { findPluginDir } from '@/server/lib/panels/registry.server';
|
|
44
44
|
import { readPluginManifest } from '@/server/lib/panels/files.server';
|
|
45
45
|
import { toManifest } from '@/server/lib/panels/manifest';
|
|
46
|
-
import { pathExists } from '@kabmo-labs/kabmo-omp/paths';
|
|
47
46
|
import { scopePluginCss } from '@/shared/lib/panels/css-scope';
|
|
47
|
+
import { resolvePluginCssPath } from '@/server/lib/panels/css.server';
|
|
48
48
|
import { join } from 'path';
|
|
49
49
|
|
|
50
50
|
/** Strip the `.css` suffix the route adds for a readable URL. */
|
|
@@ -66,18 +66,16 @@ export async function loader({ params }: LoaderFunctionArgs) {
|
|
|
66
66
|
const read = await readPluginManifest(dir);
|
|
67
67
|
if (read.kind !== 'manifest') return json({ error: 'Plugin declares no stylesheet' }, { status: 404 });
|
|
68
68
|
const manifest = toManifest(read.value, dir);
|
|
69
|
-
if ('error' in manifest
|
|
69
|
+
if ('error' in manifest) {
|
|
70
70
|
return json({ error: 'Plugin declares no stylesheet' }, { status: 404 });
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
75
|
-
return json({ error: `Stylesheet not built: ${manifest.css}` }, { status: 404 });
|
|
76
|
-
}
|
|
73
|
+
const cssPath = resolvePluginCssPath(dir, manifest.css);
|
|
74
|
+
if (!cssPath) return json({ error: 'Stylesheet not built' }, { status: 404 });
|
|
77
75
|
|
|
78
76
|
// Read as TEXT, not streamed as a file: the scope wrapper is a transform, so
|
|
79
77
|
// the bytes served are not the bytes on disk.
|
|
80
|
-
const css = await Bun.file(
|
|
78
|
+
const css = await Bun.file(join(dir, cssPath)).text();
|
|
81
79
|
return new Response(scopePluginCss(css, manifest.id), {
|
|
82
80
|
headers: {
|
|
83
81
|
'content-type': 'text/css; charset=utf-8',
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
import { Elysia } from 'elysia';
|
|
29
29
|
import { attachObserverStream, createObserverState, type ObserverConnectionState } from '@/server/lib/observer-ws';
|
|
30
30
|
import { isSameOriginUpgrade } from '@/server/lib/http/same-origin';
|
|
31
|
+
import { authenticatedAccount } from '@/server/lib/auth/guard';
|
|
31
32
|
import { getRealtimeHub, type RealtimeConnection } from '@/server/lib/realtime/hub.server';
|
|
32
33
|
import { isKnownTopic } from '@/server/lib/realtime/topics.server';
|
|
33
34
|
import { decodeClientFrame } from '@/shared/lib/realtime/protocol';
|
|
@@ -35,8 +36,21 @@ import { decodeClientFrame } from '@/shared/lib/realtime/protocol';
|
|
|
35
36
|
type RealtimeWsData = {
|
|
36
37
|
observer?: ObserverConnectionState;
|
|
37
38
|
connection?: RealtimeConnection;
|
|
39
|
+
request?: Request;
|
|
40
|
+
accountId?: string | null;
|
|
38
41
|
};
|
|
39
42
|
|
|
43
|
+
const ACCOUNT_TOPIC_PREFIXES = ['sidebar-account:', 'sidebar-status:', 'sidebar-activity:'] as const;
|
|
44
|
+
|
|
45
|
+
/** A subscription to another account's sidebar is refused, not silently empty. */
|
|
46
|
+
function maySubscribe(topic: string, accountId: string | null | undefined): boolean {
|
|
47
|
+
for (const prefix of ACCOUNT_TOPIC_PREFIXES) {
|
|
48
|
+
if (!topic.startsWith(prefix)) continue;
|
|
49
|
+
return accountId !== null && accountId !== undefined && topic.slice(prefix.length) === accountId;
|
|
50
|
+
}
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
export const realtimeWsRoutes = new Elysia({ prefix: '/api/realtime' }).ws('/ws', {
|
|
41
55
|
beforeHandle({ request, status }) {
|
|
42
56
|
if (!isSameOriginUpgrade(request)) return status(403, 'Cross-origin realtime upgrade rejected');
|
|
@@ -44,6 +58,7 @@ export const realtimeWsRoutes = new Elysia({ prefix: '/api/realtime' }).ws('/ws'
|
|
|
44
58
|
|
|
45
59
|
open(ws) {
|
|
46
60
|
const data = ws.data as unknown as RealtimeWsData;
|
|
61
|
+
data.accountId = data.request ? authenticatedAccount(data.request)?.id ?? null : null;
|
|
47
62
|
const state = createObserverState();
|
|
48
63
|
data.observer = state;
|
|
49
64
|
|
|
@@ -81,7 +96,7 @@ export const realtimeWsRoutes = new Elysia({ prefix: '/api/realtime' }).ws('/ws'
|
|
|
81
96
|
case 'subscribe':
|
|
82
97
|
case 'resync':
|
|
83
98
|
for (const topic of frame.topics) {
|
|
84
|
-
if (!isKnownTopic(topic)) {
|
|
99
|
+
if (!isKnownTopic(topic) || !maySubscribe(topic, data.accountId)) {
|
|
85
100
|
connection.send({ t: 'error', code: 'unknown_topic', message: `Unknown topic: ${topic}`, topic });
|
|
86
101
|
continue;
|
|
87
102
|
}
|
|
@@ -17,12 +17,13 @@ import { json, NO_STORE_HEADERS } from '@kabmo-labs/kabmo-http';
|
|
|
17
17
|
import type { LoaderFunctionArgs } from '@kabmo-labs/kabmo-http';
|
|
18
18
|
import { loadSidebarData } from '@kabmo-labs/kabmo-omp/sidebar-data/data.server';
|
|
19
19
|
import { requestAutoImport } from '@kabmo-labs/kabmo-harness/session/auto-import.server';
|
|
20
|
+
import { authenticatedAccount, isAuthEnabled } from '@/server/lib/auth/guard';
|
|
20
21
|
|
|
21
|
-
export async function loader(
|
|
22
|
+
export async function loader({ request }: LoaderFunctionArgs) {
|
|
22
23
|
// Opening the sidebar is the moment a terminal chat should appear. The pass is
|
|
23
24
|
// throttled (one per minute) and fire-and-forget: this response carries the
|
|
24
25
|
// list it has, and the import publishes `sidebar-structure` when it lands.
|
|
25
26
|
requestAutoImport();
|
|
26
|
-
const data = await loadSidebarData();
|
|
27
|
+
const data = await loadSidebarData(isAuthEnabled() ? authenticatedAccount(request)?.id : undefined);
|
|
27
28
|
return json(data, { headers: NO_STORE_HEADERS });
|
|
28
29
|
}
|
|
@@ -8,6 +8,9 @@ import { isRecord } from '@kabmo-labs/kabmo-guards';
|
|
|
8
8
|
import { emitRealtimeSignal } from '@kabmo-labs/kabmo-realtime-signals';
|
|
9
9
|
import { syncDiscoveryRootsWatch } from '@/server/lib/omp/config/roots-watch.server';
|
|
10
10
|
import { prepareProjectPatch } from '@/server/lib/workspace/project-patch.server';
|
|
11
|
+
import { authenticatedAccount, isAuthEnabled } from '@/server/lib/auth/guard';
|
|
12
|
+
import { getAccount } from '@kabmo-labs/kabmo-auth/server/accounts';
|
|
13
|
+
import { accessibleFolderRows, folderShares } from '@/server/lib/workspace/access.server';
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* The fields this route accepts from a project form. Anything else in the body
|
|
@@ -32,12 +35,32 @@ function projectPatchBody(project: Record<string, unknown>): Record<string, unkn
|
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
async function enrichProjects(accountId: string | undefined) {
|
|
39
|
+
const db = await getDb();
|
|
40
|
+
const folders = accountId
|
|
41
|
+
? await accessibleFolderRows(db, accountId)
|
|
42
|
+
: await db.all('SELECT * FROM workspace_folders ORDER BY id ASC');
|
|
43
|
+
const projects = [];
|
|
44
|
+
for (const folder of folders) {
|
|
45
|
+
const owner = getAccount(folder.owner_account_id || 'root');
|
|
46
|
+
const isOwner = !accountId || (folder.owner_account_id || 'root') === accountId;
|
|
47
|
+
projects.push({
|
|
48
|
+
...projectConfigFromFolder(folder),
|
|
49
|
+
ownerAccountId: folder.owner_account_id || 'root',
|
|
50
|
+
ownerName: owner?.name ?? 'Owner',
|
|
51
|
+
isShared: !isOwner,
|
|
52
|
+
canManage: isOwner,
|
|
53
|
+
...(isOwner ? { shares: await folderShares(db, folder.id) } : {}),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return projects;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export async function loader({ request }: LoaderFunctionArgs) {
|
|
36
60
|
try {
|
|
37
|
-
const
|
|
38
|
-
const folders = await db.all('SELECT * FROM workspace_folders ORDER BY id ASC');
|
|
61
|
+
const accountId = isAuthEnabled() ? authenticatedAccount(request)?.id ?? 'root' : undefined;
|
|
39
62
|
return json({
|
|
40
|
-
projects:
|
|
63
|
+
projects: await enrichProjects(accountId),
|
|
41
64
|
accentColorOptions: PROJECT_ACCENT_OPTIONS,
|
|
42
65
|
});
|
|
43
66
|
} catch (error) {
|
|
@@ -52,11 +75,21 @@ export async function loader({ request: _request }: LoaderFunctionArgs) {
|
|
|
52
75
|
|
|
53
76
|
export async function action({ request, params }: ActionFunctionArgs) {
|
|
54
77
|
const db = await getDb();
|
|
78
|
+
const accountId = authenticatedAccount(request)?.id ?? 'root';
|
|
79
|
+
const enforceOwner = isAuthEnabled();
|
|
55
80
|
|
|
56
81
|
if (request.method === 'DELETE') {
|
|
57
82
|
const id = new URL(request.url).searchParams.get('id');
|
|
58
83
|
const folderId = id?.startsWith('folder-') ? id.slice('folder-'.length) : id;
|
|
59
84
|
if (!folderId) return json({ error: 'id is required' }, { status: 400 });
|
|
85
|
+
const target = await db.get<{ owner_account_id: string | null }>(
|
|
86
|
+
'SELECT owner_account_id FROM workspace_folders WHERE id = ?',
|
|
87
|
+
[folderId],
|
|
88
|
+
);
|
|
89
|
+
if (!target) return json({ error: 'Workspace not found' }, { status: 404 });
|
|
90
|
+
if (enforceOwner && (target.owner_account_id || 'root') !== accountId) {
|
|
91
|
+
return json({ error: 'Only the owner can delete this workspace' }, { status: 403 });
|
|
92
|
+
}
|
|
60
93
|
|
|
61
94
|
const deleted = await deleteWorkspaceFolder(db, folderId);
|
|
62
95
|
if (!deleted) return json({ error: 'Workspace not found' }, { status: 404 });
|
|
@@ -86,11 +119,14 @@ export async function action({ request, params }: ActionFunctionArgs) {
|
|
|
86
119
|
const folderId = typeof project.folderId === 'number' ? String(project.folderId) : undefined;
|
|
87
120
|
if (!folderId) return json({ error: 'project.folderId is required' }, { status: 400 });
|
|
88
121
|
|
|
89
|
-
const before = await db.get<{ project_path: string | null }>(
|
|
90
|
-
'SELECT project_path FROM workspace_folders WHERE id = ?',
|
|
122
|
+
const before = await db.get<{ project_path: string | null; owner_account_id: string | null }>(
|
|
123
|
+
'SELECT project_path, owner_account_id FROM workspace_folders WHERE id = ?',
|
|
91
124
|
[folderId],
|
|
92
125
|
);
|
|
93
126
|
if (!before) return json({ error: 'Workspace not found' }, { status: 404 });
|
|
127
|
+
if (enforceOwner && (before.owner_account_id || 'root') !== accountId) {
|
|
128
|
+
return json({ error: 'Only the owner can change this workspace' }, { status: 403 });
|
|
129
|
+
}
|
|
94
130
|
|
|
95
131
|
const prepared = await prepareProjectPatch(db, folderId, projectPatchBody(project));
|
|
96
132
|
if (!prepared.ok) {
|
|
@@ -114,10 +150,13 @@ export async function action({ request, params }: ActionFunctionArgs) {
|
|
|
114
150
|
emitRealtimeSignal('sidebar-structure');
|
|
115
151
|
// `changed: false` is an answer, not a failure: the form re-sent what it
|
|
116
152
|
// already had, or touched a field the store deliberately ignores.
|
|
153
|
+
const enriched = folder
|
|
154
|
+
? (await enrichProjects(accountId)).find((row) => row.folderId === Number(folderId)) ?? null
|
|
155
|
+
: null;
|
|
117
156
|
return json({
|
|
118
157
|
success: true,
|
|
119
158
|
changed: Boolean(updated),
|
|
120
|
-
project:
|
|
159
|
+
project: enriched,
|
|
121
160
|
accentColorOptions: PROJECT_ACCENT_OPTIONS,
|
|
122
161
|
});
|
|
123
162
|
}
|
|
@@ -31,6 +31,7 @@ import { getDb } from '@/server/db.server';
|
|
|
31
31
|
import { isMockMode } from '@kabmo-labs/kabmo-runtime-flags';
|
|
32
32
|
import { deleteProviderIcon } from '@/server/lib/models/provider-icon-store.server';
|
|
33
33
|
import { ensureProviderIcon, providerIconUrl, readProviderIconBytes } from '@/server/lib/models/provider-icon.server';
|
|
34
|
+
import { readProviderIconOverrides, syncProviderIconOverrides } from '@/server/lib/models/provider-icon-override.server';
|
|
34
35
|
import { invalidateModelsCaches } from '@/shared/lib/models/server-cache';
|
|
35
36
|
import { bodyBytes } from '@kabmo-labs/kabmo-bytes';
|
|
36
37
|
|
|
@@ -86,7 +87,24 @@ export async function action({ request }: ActionFunctionArgs): Promise<Response>
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
const db = await getDb();
|
|
90
|
+
const override = (await readProviderIconOverrides()).get(slug.toLowerCase());
|
|
91
|
+
if (override?.kind === 'icon') {
|
|
92
|
+
return json({
|
|
93
|
+
ok: false,
|
|
94
|
+
error: `This provider uses the "${override.name}" icon assigned in models.yml; change it there.`,
|
|
95
|
+
}, { status: 400 });
|
|
96
|
+
}
|
|
89
97
|
await deleteProviderIcon(db, slug);
|
|
98
|
+
if (override?.kind === 'image') {
|
|
99
|
+
// Re-read the picture the file names instead of fetching the site's favicon.
|
|
100
|
+
await syncProviderIconOverrides(db);
|
|
101
|
+
const stored = await readProviderIconBytes(slug);
|
|
102
|
+
return json({
|
|
103
|
+
ok: Boolean(stored),
|
|
104
|
+
...(stored ? { iconUrl: providerIconUrl(slug, stored.fetchedAt) } : {}),
|
|
105
|
+
...(stored ? {} : { error: 'The picture named in models.yml could not be read' }),
|
|
106
|
+
});
|
|
107
|
+
}
|
|
90
108
|
const written = await ensureProviderIcon({ slug, baseUrl });
|
|
91
109
|
// The panel's own copy came from the registry, so the cache has to move for
|
|
92
110
|
// the new URL to be visible on the next read.
|
|
@@ -37,8 +37,8 @@ describe('tool render mode', () => {
|
|
|
37
37
|
expect(resolveToolRenderMode(undefined)).toBe(DEFAULT_TOOL_RENDER_MODE);
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
test('the default is the
|
|
41
|
-
expect(DEFAULT_TOOL_RENDER_MODE).toBe('
|
|
40
|
+
test('the default is the terminal frame omp itself draws', () => {
|
|
41
|
+
expect(DEFAULT_TOOL_RENDER_MODE).toBe('tui');
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
test('every mode carries a label and a description for the settings card', () => {
|
|
@@ -26,10 +26,13 @@
|
|
|
26
26
|
export type ToolRenderMode = 'card' | 'compact' | 'trace' | 'minimal' | 'tui';
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* The mode a document with no stored preference renders at.
|
|
30
|
-
*
|
|
29
|
+
* The mode a document with no stored preference renders at.
|
|
30
|
+
*
|
|
31
|
+
* `tui` is the shipped default — omp's own terminal transcript — so a fresh
|
|
32
|
+
* install reads the calls in the frame the agent itself draws. A stored mode
|
|
33
|
+
* from an older install still wins.
|
|
31
34
|
*/
|
|
32
|
-
export const DEFAULT_TOOL_RENDER_MODE: ToolRenderMode = '
|
|
35
|
+
export const DEFAULT_TOOL_RENDER_MODE: ToolRenderMode = 'tui';
|
|
33
36
|
|
|
34
37
|
/** Every mode, in the order the settings control lists them: fullest first. */
|
|
35
38
|
export const TOOL_RENDER_MODES = ['card', 'compact', 'trace', 'minimal', 'tui'] as const;
|
|
@@ -32,43 +32,44 @@ import type { PaperBucket } from '@/shared/lib/icons/icon-tone';
|
|
|
32
32
|
|
|
33
33
|
export const ICON_HUES: Readonly<Record<string, number>> = {
|
|
34
34
|
Activity: 240, AlignJustify: 100, AlignLeft: 150, Archive: 50, ArchiveRestore: 90, ArrowDown: 100,
|
|
35
|
-
ArrowDownToLine: 330, ArrowLeft: 350, ArrowRight: 80, ArrowRightLeft: 290, ArrowUp: 150,
|
|
36
|
-
ArrowUpRight: 70, AudioLines: 80, BarChart3: 150, BellRing: 260, Blocks: 110,
|
|
37
|
-
Box: 260, Boxes: 220, Brain: 350, BrainCircuit: 300, Briefcase: 310,
|
|
38
|
-
CaseSensitive: 110, ChevronDown: 120, ChevronLeft: 250, ChevronRight: 300, ChevronUp: 250,
|
|
39
|
-
Circle: 50, CircleCheck: 350, CircleDashed: 120, CircleDot: 240, ClipboardCopy: 280,
|
|
40
|
-
ClipboardPaste: 200, Cloud: 340, CloudDownload: 300, CloudUpload: 150, Code: 200,
|
|
41
|
-
Coins: 210, Columns: 280, Columns2: 20, Command: 100, Component: 200,
|
|
42
|
-
CopyPlus: 40, CornerDownLeft: 10, Cpu: 250, Database: 280, Dice5: 50,
|
|
43
|
-
DollarSign: 220, Download: 210, DownloadCloud: 180, Edit2: 210, Ellipsis: 100,
|
|
44
|
-
Eye: 20, EyeOff: 350, File: 310, FileCode: 260, FileCog: 340,
|
|
45
|
-
FileEdit: 270, FileImage: 40, FilePlus: 350, FilePlus2: 350, FileSearch: 310,
|
|
46
|
-
Files: 320, Filter: 150, Flag: 350, FlaskConical: 170, Folder: 290,
|
|
47
|
-
FolderGit2: 190, FolderInput: 310, FolderOpen: 330, FolderPlus: 250, FolderSearch: 10,
|
|
48
|
-
Gamepad2: 300, GitBranch: 30, GitCommitVertical: 240, GitCompare: 340, GitFork: 30,
|
|
49
|
-
GitPullRequest: 10, Globe: 340, GraduationCap: 190, GripVertical: 350, Hammer: 310,
|
|
50
|
-
HardDrive: 0, Hash: 330, Heading: 250, Heart: 270, History: 110,
|
|
51
|
-
Image: 140, Key: 240, KeyRound: 240, Keyboard: 120, Laptop: 170,
|
|
52
|
-
Leaf: 50, Library: 160, Lightbulb: 0, Link2: 10, List: 170,
|
|
53
|
-
ListFilter: 230, ListMusic: 0, ListOrdered: 220, ListTodo: 210, ListTree: 330,
|
|
54
|
-
Lock: 220, LockKeyhole: 270, LockOpen: 180, LogIn: 140, LogOut: 190,
|
|
55
|
-
Maximize2: 270, Menu: 100, MessageSquare: 150, MessageSquareOff: 40, MessageSquarePlus: 350,
|
|
56
|
-
Mic: 160, MicOff: 170, Minimize: 290, Minimize2: 130, Minus: 110,
|
|
57
|
-
Moon: 80, MoreHorizontal: 160, MousePointerClick: 70, MoveVertical: 300, Music: 280,
|
|
58
|
-
PackageOpen: 230, Paintbrush: 250, Palette: 320, PanelLeft: 280, PanelLeftClose: 160,
|
|
59
|
-
PanelRightClose: 350, Paperclip: 310, Pause: 10, Pencil: 0, PencilLine: 260,
|
|
60
|
-
PinOff: 50, Pipette: 120, Play: 310, Plug: 50, Plus: 210,
|
|
61
|
-
Puzzle: 50, Quote: 110, Radio: 320, Ratio: 160, RefreshCw: 180,
|
|
62
|
-
Replace: 190, ReplaceAll: 140, Rocket: 210, RotateCcw: 330, RotateCw: 0,
|
|
63
|
-
Rows3: 250, Save: 40, SaveAll: 190, Scissors: 260, Search: 250,
|
|
64
|
-
Server: 300, ServerCog: 50, Settings: 240, Settings2: 20, Shield: 160,
|
|
65
|
-
Shrink: 160, Sliders: 290, SlidersHorizontal: 50, Smartphone: 20, Space: 290,
|
|
66
|
-
Square: 60, SquareFunction: 220, SquarePen: 10, Star: 170, StickyNote: 100,
|
|
67
|
-
Sun: 90, Tablet: 290, Tag: 310, Target: 200, Terminal: 210,
|
|
68
|
-
Ticket: 170, TriangleAlert: 210, Type: 170, Undo2: 310, Upload: 0,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Zap: 120, ZoomIn: 250,
|
|
35
|
+
ArrowDownToLine: 330, ArrowLeft: 350, ArrowRight: 80, ArrowRightLeft: 290, ArrowUp: 150, ArrowUpCircle: 30,
|
|
36
|
+
ArrowUpDown: 310, ArrowUpRight: 70, AudioLines: 80, BarChart3: 150, BellRing: 260, Blocks: 110,
|
|
37
|
+
Bot: 220, Box: 260, Boxes: 220, Brain: 350, BrainCircuit: 300, Briefcase: 310,
|
|
38
|
+
Camera: 60, CaseSensitive: 110, ChevronDown: 120, ChevronLeft: 250, ChevronRight: 300, ChevronUp: 250,
|
|
39
|
+
ChevronsUpDown: 80, Circle: 50, CircleCheck: 350, CircleDashed: 120, CircleDot: 240, ClipboardCopy: 280,
|
|
40
|
+
ClipboardList: 290, ClipboardPaste: 200, Cloud: 340, CloudDownload: 300, CloudUpload: 150, Code: 200,
|
|
41
|
+
Code2: 260, Coins: 210, Columns: 280, Columns2: 20, Command: 100, Component: 200,
|
|
42
|
+
Copy: 320, CopyPlus: 40, CornerDownLeft: 10, Cpu: 250, Database: 280, Dice5: 50,
|
|
43
|
+
Diff: 300, DollarSign: 220, Download: 210, DownloadCloud: 180, Edit2: 210, Ellipsis: 100,
|
|
44
|
+
ExternalLink: 60, Eye: 20, EyeOff: 350, File: 310, FileCode: 260, FileCog: 340,
|
|
45
|
+
FileDiff: 280, FileEdit: 270, FileImage: 40, FilePlus: 350, FilePlus2: 350, FileSearch: 310,
|
|
46
|
+
FileText: 80, Files: 320, Filter: 150, Flag: 350, FlaskConical: 170, Folder: 290,
|
|
47
|
+
FolderGit: 190, FolderGit2: 190, FolderInput: 310, FolderOpen: 330, FolderPlus: 250, FolderSearch: 10,
|
|
48
|
+
FolderTree: 10, Gamepad2: 300, GitBranch: 30, GitCommitVertical: 240, GitCompare: 340, GitFork: 30,
|
|
49
|
+
GitMerge: 90, GitPullRequest: 10, Globe: 340, GraduationCap: 190, GripVertical: 350, Hammer: 310,
|
|
50
|
+
Hand: 200, HardDrive: 0, Hash: 330, Heading: 250, Heart: 270, History: 110,
|
|
51
|
+
Home: 20, Image: 140, Key: 240, KeyRound: 240, Keyboard: 120, Laptop: 170,
|
|
52
|
+
Layers: 30, Leaf: 50, Library: 160, Lightbulb: 0, Link2: 10, List: 170,
|
|
53
|
+
ListChecks: 320, ListFilter: 230, ListMusic: 0, ListOrdered: 220, ListTodo: 210, ListTree: 330,
|
|
54
|
+
Loader2: 40, Lock: 220, LockKeyhole: 270, LockOpen: 180, LogIn: 140, LogOut: 190,
|
|
55
|
+
Maximize: 310, Maximize2: 270, Menu: 100, MessageSquare: 150, MessageSquareOff: 40, MessageSquarePlus: 350,
|
|
56
|
+
MessagesSquare: 220, Mic: 160, MicOff: 170, Minimize: 290, Minimize2: 130, Minus: 110,
|
|
57
|
+
Monitor: 250, Moon: 80, MoreHorizontal: 160, MousePointerClick: 70, MoveVertical: 300, Music: 280,
|
|
58
|
+
Package: 270, PackageOpen: 230, Paintbrush: 250, Palette: 320, PanelLeft: 280, PanelLeftClose: 160,
|
|
59
|
+
PanelRight: 330, PanelRightClose: 350, Paperclip: 310, Pause: 10, Pencil: 0, PencilLine: 260,
|
|
60
|
+
Pin: 0, PinOff: 50, Pipette: 120, Play: 310, Plug: 50, Plus: 210,
|
|
61
|
+
Power: 340, Puzzle: 50, Quote: 110, Radio: 320, Ratio: 160, RefreshCw: 180,
|
|
62
|
+
Regex: 280, Replace: 190, ReplaceAll: 140, Rocket: 210, RotateCcw: 330, RotateCw: 0,
|
|
63
|
+
Rows: 160, Rows3: 250, Save: 40, SaveAll: 190, Scissors: 260, Search: 250,
|
|
64
|
+
Send: 110, Server: 300, ServerCog: 50, Settings: 240, Settings2: 20, Shield: 160,
|
|
65
|
+
ShieldOff: 130, Shrink: 160, Sliders: 290, SlidersHorizontal: 50, Smartphone: 20, Space: 290,
|
|
66
|
+
Sparkles: 180, Square: 60, SquareFunction: 220, SquarePen: 10, Star: 170, StickyNote: 100,
|
|
67
|
+
Store: 340, Sun: 90, Tablet: 290, Tag: 310, Target: 200, Terminal: 210,
|
|
68
|
+
TextSelect: 220, Ticket: 170, TriangleAlert: 210, Type: 170, Undo2: 310, Upload: 0,
|
|
69
|
+
UploadCloud: 50, User: 140, UserPlus: 140, UserRound: 220, Users: 70, Variable: 330,
|
|
70
|
+
Volume2: 270, VolumeX: 50, Wand2: 270, WandSparkles: 40, Waypoints: 30, WholeWord: 240,
|
|
71
|
+
Workflow: 240, WrapText: 340, Wrench: 0, X: 230, Zap: 120, ZoomIn: 250,
|
|
72
|
+
ZoomOut: 340,
|
|
72
73
|
};
|
|
73
74
|
|
|
74
75
|
/**
|
|
@@ -159,6 +159,32 @@ describe('OMP_SCHEMA release rows (19.4.0+)', () => {
|
|
|
159
159
|
]) {
|
|
160
160
|
expect(OMP_SCHEMA.entries[key]).toBeUndefined();
|
|
161
161
|
}
|
|
162
|
-
expect(OMP_SCHEMA.source).toContain('
|
|
162
|
+
expect(OMP_SCHEMA.source).toContain('688 settings');
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test("19.4.5's usage-refresh row and tree graph value are offered", () => {
|
|
166
|
+
// Measured against `omp config list --json` on 19.4.5: 688 keys, 519 of
|
|
167
|
+
// which reach the panel. `autolearn.maxTurns` is the other addition and
|
|
168
|
+
// carries no `ui` block, so the panel never offers it.
|
|
169
|
+
const usage = OMP_SCHEMA.entries['usage.refreshInterval'];
|
|
170
|
+
expect({
|
|
171
|
+
type: usage?.type,
|
|
172
|
+
tab: usage?.ui.tab,
|
|
173
|
+
group: usage?.ui.group,
|
|
174
|
+
default: usage?.default,
|
|
175
|
+
values: usage?.values,
|
|
176
|
+
}).toEqual({
|
|
177
|
+
type: 'enum',
|
|
178
|
+
tab: 'providers',
|
|
179
|
+
group: 'Services',
|
|
180
|
+
default: '5m',
|
|
181
|
+
values: ['30s', '1m', '5m', 'off'],
|
|
182
|
+
});
|
|
183
|
+
expect(OMP_SCHEMA.entries['autolearn.maxTurns']).toBeUndefined();
|
|
184
|
+
|
|
185
|
+
// `/tree` opens on its Branches graph once a session has branched, so the
|
|
186
|
+
// schema's filter default moved and `branches` joined the vocabulary.
|
|
187
|
+
expect(OMP_SCHEMA.entries.treeFilterMode?.default).toBe('branches');
|
|
188
|
+
expect(OMP_SCHEMA.entries.treeFilterMode?.values).toContain('branches');
|
|
163
189
|
});
|
|
164
190
|
});
|
|
@@ -26,7 +26,7 @@ import { ACCESS_MODE_SETTING_KEY, DEFAULT_APPROVAL_MODE } from '@kabmo-labs/kabm
|
|
|
26
26
|
import { TYPE_ORDER, contentProfile } from '@kabmo-labs/kabmo-omp/session-parse/telemetry-blocks';
|
|
27
27
|
import { migrateSessionStreamStateColumns } from '@/shared/lib/omp/session/schema-migrations';
|
|
28
28
|
import { createDb } from '@kabmo-labs/kabmo-db/client';
|
|
29
|
-
import { hashPassword, verifyPassword } from '
|
|
29
|
+
import { hashPassword, verifyPassword } from '@kabmo-labs/kabmo-auth/server/config';
|
|
30
30
|
import { getDb } from '@/server/db.server';
|
|
31
31
|
|
|
32
32
|
describe('contentProfile', () => {
|
|
@@ -40,6 +40,22 @@ export const MAX_TOPICS_PER_FRAME = 64;
|
|
|
40
40
|
/** Sidebar structure: folders and their sessions, without volatile fields. */
|
|
41
41
|
export const TOPIC_SIDEBAR = 'sidebar';
|
|
42
42
|
|
|
43
|
+
/** Per-account sidebar structure. The id is part of the topic so the hub's
|
|
44
|
+
* snapshot resolver can scope the folder query without a connection context. */
|
|
45
|
+
export function accountSidebarTopic(accountId: string): string {
|
|
46
|
+
return `sidebar-account:${accountId}`;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Per-account volatile sidebar status map. */
|
|
50
|
+
export function accountSidebarStatusTopic(accountId: string): string {
|
|
51
|
+
return `sidebar-status:${accountId}`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Per-account last-activity map. */
|
|
55
|
+
export function accountSidebarActivityTopic(accountId: string): string {
|
|
56
|
+
return `sidebar-activity:${accountId}`;
|
|
57
|
+
}
|
|
58
|
+
|
|
43
59
|
/** Sidebar volatile fields only (`streamStatus`, `awaitingInput`, `runModel`).
|
|
44
60
|
* Split from `sidebar` because it changes on every stream-status write while
|
|
45
61
|
* the structure needs a JSONL scan to produce. */
|
|
@@ -29,7 +29,7 @@ import { DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE } from '@/shared/lib/workspace/right-si
|
|
|
29
29
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
30
30
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
31
31
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
32
|
-
import { DEFAULT_CHROME_STYLE } from '@/shared/lib/theme/chrome-style';
|
|
32
|
+
import { DEFAULT_CHROME_STYLE, DEFAULT_MOBILE_CHROME_STYLE } from '@/shared/lib/theme/chrome-style';
|
|
33
33
|
import { DEFAULT_ICON_STYLE } from '@/shared/lib/theme/icon-style';
|
|
34
34
|
import { DEFAULT_TRAY_ICON_STYLE } from '@/shared/lib/theme/tray-icon-style';
|
|
35
35
|
import { EDITOR_DEFAULT_FONT_FAMILY } from '@/shared/lib/code/editor/typography';
|
|
@@ -72,6 +72,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
72
72
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
73
73
|
surfaceStyle: DEFAULT_SURFACE_STYLE,
|
|
74
74
|
chromeStyle: DEFAULT_CHROME_STYLE,
|
|
75
|
+
mobileChromeStyle: DEFAULT_MOBILE_CHROME_STYLE,
|
|
75
76
|
borderStyle: DEFAULT_BORDER_STYLE,
|
|
76
77
|
iconStyle: DEFAULT_ICON_STYLE,
|
|
77
78
|
trayIconStyle: DEFAULT_TRAY_ICON_STYLE,
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
* under `OMP` would file a network fact with the engine's own config.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
export const SETTINGS_SECTIONS = ['KABMO', 'CONNECT', 'WORKSPACE', 'OMP', 'HARNESSES'] as const;
|
|
31
|
+
export const SETTINGS_SECTIONS = ['KABMO', 'ACCOUNTS', 'CONNECT', 'WORKSPACE', 'OMP', 'HARNESSES'] as const;
|
|
32
32
|
|
|
33
33
|
export type SettingsSection = (typeof SETTINGS_SECTIONS)[number];
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* The border style's contract.
|
|
8
8
|
*
|
|
9
9
|
* The rule that matters is the FALLBACK and the ABSENT state: a stored value
|
|
10
|
-
* this build cannot draw must resolve to `
|
|
11
|
-
*
|
|
10
|
+
* this build cannot draw must resolve to `hairline` (an upgrade that silently
|
|
11
|
+
* removed every separator would be a regression wearing a new setting's name),
|
|
12
|
+
* and `hairline` is exactly the state CSS paints with no attribute.
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -41,18 +42,19 @@ describe('resolveBorderStyle', () => {
|
|
|
41
42
|
expect(resolveBorderStyle('borderless')).toBe('borderless');
|
|
42
43
|
});
|
|
43
44
|
|
|
44
|
-
test('an unknown value lands on
|
|
45
|
+
test('an unknown value lands on hairline, never on a rule set that does not exist', () => {
|
|
45
46
|
expect(resolveBorderStyle('naked')).toBe(DEFAULT_BORDER_STYLE);
|
|
46
47
|
expect(resolveBorderStyle(undefined)).toBe(DEFAULT_BORDER_STYLE);
|
|
47
48
|
expect(resolveBorderStyle(null)).toBe(DEFAULT_BORDER_STYLE);
|
|
48
49
|
});
|
|
49
50
|
|
|
50
|
-
test('
|
|
51
|
-
// The
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
|
|
51
|
+
test('an upgrade keeps its separators: the default IS the absent state', () => {
|
|
52
|
+
// The two constants coincide today, and that is the point rather than an
|
|
53
|
+
// accident: an install that never chose a style must keep the ruled look it
|
|
54
|
+
// shipped with. A later release may move the DEFAULT while leaving the
|
|
55
|
+
// ABSENT state at `hairline`; this test then fails and must be re-decided
|
|
56
|
+
// deliberately, not silently.
|
|
57
|
+
expect(DEFAULT_BORDER_STYLE).toBe('hairline');
|
|
56
58
|
expect(BORDER_STYLE_WITHOUT_ATTRIBUTE).toBe('hairline');
|
|
57
59
|
});
|
|
58
60
|
});
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
export type BorderStyle = 'hairline' | 'borderless';
|
|
58
58
|
|
|
59
59
|
/** The style a fresh install — or any stored value this build cannot draw — resolves to. */
|
|
60
|
-
export const DEFAULT_BORDER_STYLE: BorderStyle = '
|
|
60
|
+
export const DEFAULT_BORDER_STYLE: BorderStyle = 'hairline';
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* The style CSS paints when `data-borders` is absent.
|
|
@@ -65,9 +65,9 @@ export const DEFAULT_BORDER_STYLE: BorderStyle = 'borderless';
|
|
|
65
65
|
* `hairline` is what every rule in `tailwind.css` already states, so its writer
|
|
66
66
|
* REMOVES the attribute rather than writing it: a document carrying
|
|
67
67
|
* `data-borders="hairline"` and a document carrying nothing are the same state.
|
|
68
|
-
* Kept as its own constant because it is
|
|
69
|
-
*
|
|
70
|
-
*
|
|
68
|
+
* Kept as its own constant because it is NOT the default in general — a later
|
|
69
|
+
* release may make `borderless` the shipped default, and every comparison must
|
|
70
|
+
* be against the state CSS actually paints.
|
|
71
71
|
*/
|
|
72
72
|
export const BORDER_STYLE_WITHOUT_ATTRIBUTE: BorderStyle = 'hairline';
|
|
73
73
|
|
|
@@ -96,9 +96,9 @@ export function isBorderStyle(value: unknown): value is BorderStyle {
|
|
|
96
96
|
* The style to APPLY for a stored value.
|
|
97
97
|
*
|
|
98
98
|
* Anything this build cannot draw — a value from a newer build, a corrupted
|
|
99
|
-
* blob, `undefined` on
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* blob, `undefined` on an upgrade — resolves to `hairline`, which is the look
|
|
100
|
+
* every existing install already has. An upgrade must not silently remove the
|
|
101
|
+
* separators a user has been reading.
|
|
102
102
|
*/
|
|
103
103
|
export function resolveBorderStyle(value: unknown): BorderStyle {
|
|
104
104
|
return isBorderStyle(value) ? value : DEFAULT_BORDER_STYLE;
|