@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
package/src/client/floating.css
CHANGED
|
@@ -157,11 +157,16 @@ html[data-chrome='floating'] .app-window[data-desktop] [data-float-stack] > [dat
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/* The title is an overlay, not a card: only its spacing is layout. Its paint
|
|
160
|
-
* (a top-to-bottom scrim) is stated once below, shared by both chrome styles.
|
|
160
|
+
* (a top-to-bottom scrim) is stated once below, shared by both chrome styles.
|
|
161
|
+
* The height is the shared `--chat-title-height` — the same number the
|
|
162
|
+
* transcript scroller reserves — raised here by the window's gutter. */
|
|
163
|
+
html[data-chrome='floating'] .app-window[data-desktop] {
|
|
164
|
+
--chat-title-height: calc(2.5rem + var(--float-gutter));
|
|
165
|
+
}
|
|
166
|
+
|
|
161
167
|
html[data-chrome='floating'] .app-window[data-desktop] [data-session-title] {
|
|
162
168
|
/* The bar starts at the window edge (no gap above it) and pads its CONTENT
|
|
163
169
|
down to the left bar's line: the text centre then matches the toggle's. */
|
|
164
|
-
height: calc(2.5rem + var(--float-gutter));
|
|
165
170
|
padding-top: var(--float-gutter);
|
|
166
171
|
/* Solid CANVAS through the text — three quarters of the bar — then the fade
|
|
167
172
|
only in the last quarter, so the label never sits on transparency. */
|
|
@@ -274,3 +279,201 @@ html[data-chrome='floating'] .app-window[data-desktop] [data-float-card='editor'
|
|
|
274
279
|
html[data-chrome='floating'] .app-window[data-desktop] .chat-title-overlay {
|
|
275
280
|
top: 0;
|
|
276
281
|
}
|
|
282
|
+
|
|
283
|
+
/* ── PHONE ────────────────────────────────────────────────────────────────
|
|
284
|
+
* The drawer screens become floating cards over the canvas, and the chat
|
|
285
|
+
* header is its own card. The chat timeline keeps the ground: it is not a card.
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-screen='drawer'] {
|
|
289
|
+
padding: var(--float-gutter);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-float='drawer'] {
|
|
293
|
+
--mobile-right-drawer-header-height: 2.5rem;
|
|
294
|
+
--mobile-right-drawer-header-padding-top: 0px;
|
|
295
|
+
border: 1px solid var(--float-hairline);
|
|
296
|
+
border-radius: var(--float-radius);
|
|
297
|
+
background-color: var(--float-surface);
|
|
298
|
+
box-shadow: var(--float-shadow);
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
/* The right drawer's chrome is a 40px row like the chat header's cards, so
|
|
301
|
+
* the notch belongs to the card, not to that row. */
|
|
302
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* Under `tabs` the right drawer draws the strip instead of `DrawerHeader`; it
|
|
306
|
+
* is that drawer's title bar and normally 56px. The same 40px card rule
|
|
307
|
+
* applies, because the main header beside it is 40px. */
|
|
308
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-float='drawer'] [data-mobile-drawer-strip] {
|
|
309
|
+
height: 2.5rem;
|
|
310
|
+
padding-top: 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* The drawer's own title row is inside that card, so it must not paint a
|
|
314
|
+
* second, canvas-coloured strip across the card's top. */
|
|
315
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-chrome] {
|
|
316
|
+
background-color: var(--float-surface);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* The chat header is three groups: a menu card, a NON-card title line (the
|
|
320
|
+
* desktop session-title treatment: canvas through the text, fade at the
|
|
321
|
+
* bottom), and a tools card. */
|
|
322
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-row] {
|
|
323
|
+
--mobile-header-inset: var(--float-gutter);
|
|
324
|
+
/* The drawer cards start one gutter below the window's top; the header is a
|
|
325
|
+
* 56px drag row, so its cards align to that same line instead of the row's
|
|
326
|
+
* vertical centre (which measured 3px lower). */
|
|
327
|
+
align-items: flex-start;
|
|
328
|
+
background: transparent;
|
|
329
|
+
border-bottom: 0;
|
|
330
|
+
gap: var(--float-gutter);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-card] {
|
|
334
|
+
height: 2.5rem;
|
|
335
|
+
flex-shrink: 0;
|
|
336
|
+
margin-top: var(--float-gutter);
|
|
337
|
+
border: 1px solid var(--float-hairline);
|
|
338
|
+
border-radius: var(--float-radius);
|
|
339
|
+
background-color: var(--float-surface);
|
|
340
|
+
box-shadow: var(--float-shadow);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-header-title] {
|
|
344
|
+
height: 2.5rem;
|
|
345
|
+
flex: 1 1 0%;
|
|
346
|
+
min-width: 0;
|
|
347
|
+
margin-top: var(--float-gutter);
|
|
348
|
+
background-image: linear-gradient(
|
|
349
|
+
to bottom,
|
|
350
|
+
var(--theme-canvas) 0%,
|
|
351
|
+
var(--theme-canvas) 75%,
|
|
352
|
+
transparent 100%
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* The LEFT drawer is three cards (app-name header, panel, footer); the RIGHT
|
|
357
|
+
* drawer stays one card. */
|
|
358
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer='left'] {
|
|
359
|
+
display: flex;
|
|
360
|
+
flex-direction: column;
|
|
361
|
+
gap: var(--float-gutter);
|
|
362
|
+
background: transparent;
|
|
363
|
+
border: 0;
|
|
364
|
+
border-radius: 0;
|
|
365
|
+
box-shadow: none;
|
|
366
|
+
overflow: visible;
|
|
367
|
+
/* The header is a 40px card, so the notch cannot live inside it; it becomes
|
|
368
|
+
* top padding on the drawer, and the card starts below it like the chat
|
|
369
|
+
* header's cards do. */
|
|
370
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card] {
|
|
374
|
+
border: 1px solid var(--float-hairline);
|
|
375
|
+
border-radius: var(--float-radius);
|
|
376
|
+
background-color: var(--float-surface);
|
|
377
|
+
box-shadow: var(--float-shadow);
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='header'],
|
|
382
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='footer'] {
|
|
383
|
+
flex: 0 0 auto;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='header'] {
|
|
387
|
+
--mobile-drawer-header-height: 2.5rem;
|
|
388
|
+
--mobile-drawer-header-padding-top: 0px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-drawer-card='panel'] {
|
|
392
|
+
flex: 1 1 0%;
|
|
393
|
+
min-height: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* ── SETTINGS SHEET ───────────────────────────────────────────────────────
|
|
397
|
+
* The sheet is the same card language as the drawers: a gutter off the window,
|
|
398
|
+
* one card per screen, the notch on the card instead of inside its band.
|
|
399
|
+
* Desktop is untouched — the marker is inert above the phone breakpoint. */
|
|
400
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings] {
|
|
401
|
+
padding: var(--float-gutter);
|
|
402
|
+
padding-top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px));
|
|
403
|
+
padding-left: max(var(--float-gutter), env(safe-area-inset-left, 0px));
|
|
404
|
+
padding-right: max(var(--float-gutter), env(safe-area-inset-right, 0px));
|
|
405
|
+
align-items: stretch;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-card] {
|
|
409
|
+
--settings-band-height: 4rem;
|
|
410
|
+
--settings-band-padding-top: 0px;
|
|
411
|
+
background-color: var(--float-surface);
|
|
412
|
+
border: 1px solid var(--float-hairline);
|
|
413
|
+
border-radius: var(--float-radius);
|
|
414
|
+
box-shadow: var(--float-shadow);
|
|
415
|
+
overflow: hidden;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* The one band is the card's own top edge, so it must not paint a second
|
|
419
|
+
* canvas strip across it. */
|
|
420
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-band],
|
|
421
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-list],
|
|
422
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-sidebar],
|
|
423
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-settings-footer] {
|
|
424
|
+
background-color: transparent;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* ── EDITOR AND DIFF ──────────────────────────────────────────────────────
|
|
428
|
+
* A full-screen phone surface is a card too: the header is its first row and
|
|
429
|
+
* the status strip its last. The notch moves to the card's inset; the home
|
|
430
|
+
* indicator stays on the inner strip that already reserves it. */
|
|
431
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-editor],
|
|
432
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-diff] {
|
|
433
|
+
--mobile-editor-header-height: 2.5rem;
|
|
434
|
+
--mobile-editor-header-padding-top: 0px;
|
|
435
|
+
top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px));
|
|
436
|
+
right: max(var(--float-gutter), env(safe-area-inset-right, 0px));
|
|
437
|
+
bottom: var(--float-gutter);
|
|
438
|
+
left: max(var(--float-gutter), env(safe-area-inset-left, 0px));
|
|
439
|
+
height: auto;
|
|
440
|
+
background-color: var(--float-surface);
|
|
441
|
+
border: 1px solid var(--float-hairline);
|
|
442
|
+
border-radius: var(--float-radius);
|
|
443
|
+
box-shadow: var(--float-shadow);
|
|
444
|
+
overflow: hidden;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/* The header is the card's own top edge; the shared row is a flat canvas strip
|
|
448
|
+
* and would paint a second surface inside the card. */
|
|
449
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-editor-header],
|
|
450
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-diff-header],
|
|
451
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-editor-status] {
|
|
452
|
+
background-color: transparent;
|
|
453
|
+
border-color: var(--float-hairline);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* ── COMMIT HISTORY AND GRAPH ─────────────────────────────────────────────
|
|
457
|
+
* One card, like the editor: the title/search band is its first row and the
|
|
458
|
+
* commit list scrolls inside it. The notch and home indicator move to the
|
|
459
|
+
* scrim, so neither is reserved inside the card. */
|
|
460
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-history] {
|
|
461
|
+
padding: var(--float-gutter);
|
|
462
|
+
padding-top: calc(var(--float-gutter) + env(safe-area-inset-top, 0px));
|
|
463
|
+
padding-bottom: calc(var(--float-gutter) + var(--kabmo-safe-bottom));
|
|
464
|
+
padding-left: max(var(--float-gutter), env(safe-area-inset-left, 0px));
|
|
465
|
+
padding-right: max(var(--float-gutter), env(safe-area-inset-right, 0px));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-history-card] {
|
|
469
|
+
border: 1px solid var(--float-hairline);
|
|
470
|
+
border-radius: var(--float-radius);
|
|
471
|
+
background-color: var(--float-surface);
|
|
472
|
+
box-shadow: var(--float-shadow);
|
|
473
|
+
padding-top: 0;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
html[data-mobile-chrome='floating'] .app-window[data-mobile] [data-mobile-history-header] {
|
|
477
|
+
background-color: transparent;
|
|
478
|
+
border-bottom-color: var(--float-hairline);
|
|
479
|
+
}
|
|
@@ -66,6 +66,49 @@ describe('floating chrome contract', () => {
|
|
|
66
66
|
).toContain('top: 0');
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
+
test('under the glass surface the title is the plane, not a canvas band', async () => {
|
|
70
|
+
const [floating, glass] = await Promise.all([
|
|
71
|
+
readClientCss('floating.css'),
|
|
72
|
+
readClientCss('glass.css'),
|
|
73
|
+
]);
|
|
74
|
+
// The flat shell can hide the transcript behind the canvas the timeline is.
|
|
75
|
+
expect(
|
|
76
|
+
ruleBody(floating, "html[data-chrome='floating'] .app-window[data-desktop] [data-session-title]"),
|
|
77
|
+
).toContain('var(--theme-canvas)');
|
|
78
|
+
// Glass has no opaque canvas to hide behind — the timeline is the
|
|
79
|
+
// translucent plane, lit by the window's glow — so the strip paints
|
|
80
|
+
// nothing. Measured before: the canvas band read 1.53-1.76:1 against the
|
|
81
|
+
// plane on `one-dark-pro-soft`.
|
|
82
|
+
expect(
|
|
83
|
+
ruleBody(
|
|
84
|
+
glass,
|
|
85
|
+
'html[data-chrome="floating"][data-surface="glass"] .app-window[data-desktop] [data-session-title]',
|
|
86
|
+
),
|
|
87
|
+
).toContain('background-image: none');
|
|
88
|
+
// Content scrolling UNDER the title is masked out instead of colliding
|
|
89
|
+
// with the label, and the mask stops are the bar's own height.
|
|
90
|
+
const timeline = ruleBody(
|
|
91
|
+
glass,
|
|
92
|
+
'html[data-chrome="floating"][data-surface="glass"] .app-window[data-desktop] [data-chat-timeline]',
|
|
93
|
+
);
|
|
94
|
+
expect(timeline).toContain('mask-image:');
|
|
95
|
+
expect(timeline).toContain('transparent var(--chat-title-height)');
|
|
96
|
+
expect(timeline).toContain('#000 calc(var(--chat-title-height) + 10px)');
|
|
97
|
+
// The label's halo follows the material, so it cannot be a canvas shadow
|
|
98
|
+
// over the plane.
|
|
99
|
+
expect(ruleBody(glass, '[data-surface="glass"] .session-title-label')).toContain(
|
|
100
|
+
'var(--glass-halo)',
|
|
101
|
+
);
|
|
102
|
+
// The phone's title line sits between two cards on the same plane; it gives
|
|
103
|
+
// up the canvas band too.
|
|
104
|
+
expect(
|
|
105
|
+
ruleBody(
|
|
106
|
+
glass,
|
|
107
|
+
'html[data-mobile-chrome="floating"][data-surface="glass"] .app-window[data-mobile] [data-mobile-header-title]',
|
|
108
|
+
),
|
|
109
|
+
).toContain('background-image: none');
|
|
110
|
+
});
|
|
111
|
+
|
|
69
112
|
test('the app-name card starts after a native shell’s own window controls', async () => {
|
|
70
113
|
const css = await readClientCss('floating.css');
|
|
71
114
|
// A floating card cannot hide its paper under the traffic lights the way a
|
package/src/client/glass.css
CHANGED
|
@@ -585,6 +585,53 @@
|
|
|
585
585
|
0 0 10px var(--glass-halo);
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
+
/*
|
|
589
|
+
* The session title is the same problem as a sticky header, one surface over:
|
|
590
|
+
* a strip of chrome that content scrolls UNDER. Floating chrome gives it an
|
|
591
|
+
* opaque canvas scrim, which is invisible in the classic look because the
|
|
592
|
+
* timeline is that same canvas — but the timeline is the PLANE here, lit by the
|
|
593
|
+
* window's glow, so the scrim read as a dark band across the top of the window:
|
|
594
|
+
* measured on `one-dark-pro-soft`, the canvas strip `(33,37,43)` against the
|
|
595
|
+
* plane directly below it `(64,67,74)` — 1.53:1 at the bar's left, 1.76:1 at its
|
|
596
|
+
* right. The strip is therefore the plane itself (no paint), the label takes the
|
|
597
|
+
* material's halo, and the transcript is MASKED out under the bar so a row that
|
|
598
|
+
* scrolls up disappears into the plane instead of colliding with the label.
|
|
599
|
+
*
|
|
600
|
+
* The mask's stops are the bar's own height (`--chat-title-height`, which the
|
|
601
|
+
* floating rule above raises by the gutter) plus a short fade, so the two
|
|
602
|
+
* cannot drift apart.
|
|
603
|
+
*/
|
|
604
|
+
[data-surface="glass"] .session-title-label {
|
|
605
|
+
text-shadow:
|
|
606
|
+
0 1px 2px var(--glass-halo),
|
|
607
|
+
0 0 8px var(--glass-halo);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
html[data-chrome="floating"][data-surface="glass"] .app-window[data-desktop] [data-session-title] {
|
|
611
|
+
background-image: none;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
html[data-chrome="floating"][data-surface="glass"] .app-window[data-desktop] [data-chat-timeline] {
|
|
615
|
+
-webkit-mask-image: linear-gradient(
|
|
616
|
+
to bottom,
|
|
617
|
+
transparent 0,
|
|
618
|
+
transparent var(--chat-title-height),
|
|
619
|
+
#000 calc(var(--chat-title-height) + 10px)
|
|
620
|
+
);
|
|
621
|
+
mask-image: linear-gradient(
|
|
622
|
+
to bottom,
|
|
623
|
+
transparent 0,
|
|
624
|
+
transparent var(--chat-title-height),
|
|
625
|
+
#000 calc(var(--chat-title-height) + 10px)
|
|
626
|
+
);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* The phone's title line sits BETWEEN two cards on the plane (the header row,
|
|
630
|
+
* not the transcript), so it only has to give up the canvas band. */
|
|
631
|
+
html[data-mobile-chrome="floating"][data-surface="glass"] .app-window[data-mobile] [data-mobile-header-title] {
|
|
632
|
+
background-image: none;
|
|
633
|
+
}
|
|
634
|
+
|
|
588
635
|
/*
|
|
589
636
|
* Tier 1 — the chrome. A flat tint over the plane, no blur of its own. The
|
|
590
637
|
* hairline is a border rather than a shadow so it scales with the element.
|
|
@@ -201,8 +201,9 @@ export function useOmpAgent(
|
|
|
201
201
|
const steerOmpRun = useCallback(async (
|
|
202
202
|
message: string,
|
|
203
203
|
images?: AgentImage[],
|
|
204
|
+
targetSessionId?: string,
|
|
204
205
|
): Promise<PromptDispatchResult> => {
|
|
205
|
-
const sid = sessionIdRef.current;
|
|
206
|
+
const sid = targetSessionId ?? sessionIdRef.current;
|
|
206
207
|
if (!sid) return { ok: false, busy: false, error: 'No live session' };
|
|
207
208
|
try {
|
|
208
209
|
const res = await fetch(`/api/agent/${encodeURIComponent(sid)}`, {
|
|
@@ -231,8 +232,8 @@ export function useOmpAgent(
|
|
|
231
232
|
}, []);
|
|
232
233
|
|
|
233
234
|
/** Set the model for the live session (set_model RPC). */
|
|
234
|
-
const setModel = useCallback(async (provider: string, modelId: string) => {
|
|
235
|
-
const sid = sessionIdRef.current;
|
|
235
|
+
const setModel = useCallback(async (provider: string, modelId: string, targetSessionId?: string) => {
|
|
236
|
+
const sid = targetSessionId ?? sessionIdRef.current;
|
|
236
237
|
if (!sid) return;
|
|
237
238
|
try {
|
|
238
239
|
await fetch(`/api/agent/${encodeURIComponent(sid)}`, {
|
|
@@ -246,8 +247,8 @@ export function useOmpAgent(
|
|
|
246
247
|
}, []);
|
|
247
248
|
|
|
248
249
|
/** Set the thinking level for the live session (set_thinking_level RPC). */
|
|
249
|
-
const setThinkingLevel = useCallback(async (level: string) => {
|
|
250
|
-
const sid = sessionIdRef.current;
|
|
250
|
+
const setThinkingLevel = useCallback(async (level: string, targetSessionId?: string) => {
|
|
251
|
+
const sid = targetSessionId ?? sessionIdRef.current;
|
|
251
252
|
if (!sid) return;
|
|
252
253
|
try {
|
|
253
254
|
await fetch(`/api/agent/${encodeURIComponent(sid)}`, {
|
|
@@ -130,6 +130,24 @@ describe('useOmpPromptSender.sendPrompt', () => {
|
|
|
130
130
|
expect(requests[1].body).toEqual({ type: 'prompt', message: 'look', images: [IMAGE], accessMode: 'yolo' });
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
+
test('delivers to the session the prompt was typed in after the screen moved on', async () => {
|
|
134
|
+
// The send path awaits prompt assembly; the operator can open another chat
|
|
135
|
+
// in that window. Delivery must still land in the origin session, and the
|
|
136
|
+
// moved-to chat must not attach that session's stream or show its spinner.
|
|
137
|
+
const requests = installFetch({});
|
|
138
|
+
const probe = mountSender('sess/2');
|
|
139
|
+
|
|
140
|
+
const result = await probe.sender().sendPrompt('hello', undefined, undefined, SID);
|
|
141
|
+
|
|
142
|
+
expect(result.ok).toBe(true);
|
|
143
|
+
expect(requests.map((r) => r.url)).toEqual([
|
|
144
|
+
`/api/agent/${encodeURIComponent(SID)}`,
|
|
145
|
+
`/api/agent/${encodeURIComponent(SID)}`,
|
|
146
|
+
]);
|
|
147
|
+
expect(probe.connected).toEqual([]);
|
|
148
|
+
expect(probe.state()).toEqual({ isGenerating: false, connected: false, error: null });
|
|
149
|
+
});
|
|
150
|
+
|
|
133
151
|
test('still prompts when the warm-up fails, but never attaches the stream', async () => {
|
|
134
152
|
// First request (warm-up) fails, second succeeds — a keyed stub cannot
|
|
135
153
|
// split them, so fail by call ordinal.
|
|
@@ -32,7 +32,12 @@ export interface OmpPromptSenderDeps {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface OmpPromptSender {
|
|
35
|
-
sendPrompt: (
|
|
35
|
+
sendPrompt: (
|
|
36
|
+
message: string,
|
|
37
|
+
images?: AgentImage[],
|
|
38
|
+
options?: { accessMode?: ApprovalMode },
|
|
39
|
+
sessionId?: string,
|
|
40
|
+
) => Promise<PromptDispatchResult>;
|
|
36
41
|
sendNewPrompt: (
|
|
37
42
|
message: string,
|
|
38
43
|
cwd: string,
|
|
@@ -60,10 +65,15 @@ export function useOmpPromptSender(deps: OmpPromptSenderDeps): OmpPromptSender {
|
|
|
60
65
|
message: string,
|
|
61
66
|
images?: AgentImage[],
|
|
62
67
|
options?: { accessMode?: ApprovalMode },
|
|
68
|
+
targetSessionId?: string,
|
|
63
69
|
) => {
|
|
64
|
-
const sid = sessionIdRef.current;
|
|
70
|
+
const sid = targetSessionId ?? sessionIdRef.current;
|
|
65
71
|
if (!sid) return { ok: false, busy: false, error: 'No session' };
|
|
66
|
-
|
|
72
|
+
/** The screen may have moved to another chat while the send was assembling
|
|
73
|
+
* its prompt. Delivery still belongs to `sid`; the generating UI and the
|
|
74
|
+
* stream attachment belong only to the chat on screen. */
|
|
75
|
+
const isTargetOnScreen = () => sessionIdRef.current === sid;
|
|
76
|
+
if (isTargetOnScreen()) setState((prev) => ({ ...prev, isGenerating: true, error: null }));
|
|
67
77
|
try {
|
|
68
78
|
// Mirror omp-web handleSend: warm the session process up with get_state
|
|
69
79
|
// (spawns it on first use), then attach the event stream before sending
|
|
@@ -78,7 +88,7 @@ export function useOmpPromptSender(deps: OmpPromptSenderDeps): OmpPromptSender {
|
|
|
78
88
|
...(options?.accessMode ? { accessMode: options.accessMode } : {}),
|
|
79
89
|
}),
|
|
80
90
|
});
|
|
81
|
-
if (warmup.ok) connect(sid);
|
|
91
|
+
if (warmup.ok && isTargetOnScreen()) connect(sid);
|
|
82
92
|
|
|
83
93
|
const res = await fetch(`/api/agent/${encodeURIComponent(sid)}`, {
|
|
84
94
|
method: 'POST',
|
|
@@ -93,9 +103,15 @@ export function useOmpPromptSender(deps: OmpPromptSenderDeps): OmpPromptSender {
|
|
|
93
103
|
const body = (await res.json().catch(() => ({}))) as { success?: boolean; error?: string; code?: string } & SessionOwnerConflict;
|
|
94
104
|
if (!res.ok || body.error) {
|
|
95
105
|
// Another Kabmo instance owns this session: send the tab there
|
|
96
|
-
// instead of starting a second writer (which omp would fork)
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
// instead of starting a second writer (which omp would fork) — but only
|
|
107
|
+
// while that session is still the one on screen. A redirect after the
|
|
108
|
+
// operator moved to another chat would yank them out of it.
|
|
109
|
+
if (isTargetOnScreen() && redirectToOwningInstance(body, sid)) {
|
|
110
|
+
return { ok: false, busy: false, error: 'Session is owned by another instance' };
|
|
111
|
+
}
|
|
112
|
+
if (isTargetOnScreen()) {
|
|
113
|
+
setState((prev) => ({ ...prev, isGenerating: false, error: body.error ?? `HTTP ${res.status}` }));
|
|
114
|
+
}
|
|
99
115
|
// `agent_busy`: omp REFUSED the prompt because a turn is still
|
|
100
116
|
// streaming. Nothing was delivered, so the caller may queue it. Every
|
|
101
117
|
// other failure (a timed-out ack, a transport error) may already have
|
|
@@ -104,7 +120,9 @@ export function useOmpPromptSender(deps: OmpPromptSenderDeps): OmpPromptSender {
|
|
|
104
120
|
}
|
|
105
121
|
return { ok: true, busy: false };
|
|
106
122
|
} catch (e) {
|
|
107
|
-
|
|
123
|
+
if (isTargetOnScreen()) {
|
|
124
|
+
setState((prev) => ({ ...prev, isGenerating: false, error: e instanceof Error ? e.message : String(e) }));
|
|
125
|
+
}
|
|
108
126
|
return { ok: false, busy: false, error: e instanceof Error ? e.message : String(e) };
|
|
109
127
|
}
|
|
110
128
|
}, [connect, sessionIdRef, setState]);
|
|
@@ -32,7 +32,15 @@ import { useSidebarFullReload } from '@/client/hooks/chat/omp/sidebar-reload';
|
|
|
32
32
|
import { useNotificationEvents } from '@/client/hooks/ui/notification-events';
|
|
33
33
|
|
|
34
34
|
import { realtimeClient } from '@/shared/lib/realtime/client';
|
|
35
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
TOPIC_SIDEBAR,
|
|
37
|
+
TOPIC_SIDEBAR_ACTIVITY,
|
|
38
|
+
TOPIC_SIDEBAR_STATUS,
|
|
39
|
+
accountSidebarActivityTopic,
|
|
40
|
+
accountSidebarStatusTopic,
|
|
41
|
+
accountSidebarTopic,
|
|
42
|
+
} from '@/shared/lib/realtime/protocol';
|
|
43
|
+
import { useAccount } from '@/client/hooks/ui/auth';
|
|
36
44
|
import {
|
|
37
45
|
applySeenStrip,
|
|
38
46
|
SESSION_TITLE_HINT_SIGNAL,
|
|
@@ -124,9 +132,13 @@ const SidebarDataContext = createContext<SidebarDataHandle | null>(null);
|
|
|
124
132
|
import { mergeActivity, mergeStatus } from '@/client/hooks/chat/omp/session-merges';
|
|
125
133
|
|
|
126
134
|
export function SidebarDataProvider({ children, initialFolders = [] }: { children: ReactNode; initialFolders?: WorkspaceFolderData[] }) {
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
const
|
|
135
|
+
const account = useAccount();
|
|
136
|
+
const structureTopic = account ? accountSidebarTopic(account.id) : TOPIC_SIDEBAR;
|
|
137
|
+
const statusTopic = account ? accountSidebarStatusTopic(account.id) : TOPIC_SIDEBAR_STATUS;
|
|
138
|
+
const activityTopic = account ? accountSidebarActivityTopic(account.id) : TOPIC_SIDEBAR_ACTIVITY;
|
|
139
|
+
const structure = useRealtimeTopic<SidebarPayload>(structureTopic);
|
|
140
|
+
const status = useRealtimeTopic<SidebarStatusPayload>(statusTopic);
|
|
141
|
+
const activity = useRealtimeTopic<SidebarActivityPayload>(activityTopic);
|
|
130
142
|
|
|
131
143
|
// "Loading" is only true while an answer is still plausible. The channel
|
|
132
144
|
// reports its own verdict, so a socket that closed before the first snapshot
|
|
@@ -187,13 +199,13 @@ export function SidebarDataProvider({ children, initialFolders = [] }: { childre
|
|
|
187
199
|
}, [status.data, folders]);
|
|
188
200
|
|
|
189
201
|
const refresh = useCallback(() => {
|
|
190
|
-
realtimeClient.refresh(
|
|
191
|
-
realtimeClient.refresh(
|
|
202
|
+
realtimeClient.refresh(structureTopic);
|
|
203
|
+
realtimeClient.refresh(statusTopic);
|
|
192
204
|
// The activity stamps are what a tool call advances, so a manual refresh
|
|
193
205
|
// that skipped them would re-read the list and leave its labels where they
|
|
194
206
|
// were.
|
|
195
|
-
realtimeClient.refresh(
|
|
196
|
-
}, []);
|
|
207
|
+
realtimeClient.refresh(activityTopic);
|
|
208
|
+
}, [structureTopic, statusTopic, activityTopic]);
|
|
197
209
|
|
|
198
210
|
// The list's own beat, so a row moved by another Kabmo instance, a CLI run or
|
|
199
211
|
// omp writing its session file late converges without a page reload.
|
|
@@ -78,15 +78,23 @@ export function consumeComposerPick(store: DeferredModelStore, pick: ComposerMod
|
|
|
78
78
|
* level alone" — the same rule the send path applies — so it is skipped rather
|
|
79
79
|
* than translated into a concrete level.
|
|
80
80
|
*/
|
|
81
|
-
export async function applyComposerPick(
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
export async function applyComposerPick(
|
|
82
|
+
agent: OmpAgentHandle,
|
|
83
|
+
pick: ComposerModelPick,
|
|
84
|
+
sessionId?: string,
|
|
85
|
+
): Promise<void> {
|
|
86
|
+
if (hasModel(pick)) await agent.setModel(pick.provider, pick.modelId, sessionId);
|
|
87
|
+
if (pick.thinkingLevel && pick.thinkingLevel !== 'auto') await agent.setThinkingLevel(pick.thinkingLevel, sessionId);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
/** Push the stashed pick (if any) onto the session and clear the slot. */
|
|
87
|
-
export async function flushDeferredPick(
|
|
91
|
+
export async function flushDeferredPick(
|
|
92
|
+
agent: OmpAgentHandle,
|
|
93
|
+
store: DeferredModelStore,
|
|
94
|
+
sessionId?: string,
|
|
95
|
+
): Promise<void> {
|
|
88
96
|
const pick = store.current;
|
|
89
97
|
if (!pick) return;
|
|
90
98
|
store.current = null;
|
|
91
|
-
await applyComposerPick(agent, pick);
|
|
99
|
+
await applyComposerPick(agent, pick, sessionId);
|
|
92
100
|
}
|
|
@@ -23,6 +23,20 @@ export interface ChatTimelineSendDeps {
|
|
|
23
23
|
folders: any[];
|
|
24
24
|
selectedFolderId: number | null;
|
|
25
25
|
sessionId: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* The session currently on screen, non-reactive.
|
|
28
|
+
*
|
|
29
|
+
* A send awaits prompt assembly before it dispatches. The operator can open
|
|
30
|
+
* another chat in that window, so delivery is pinned to the `sessionId` the
|
|
31
|
+
* composer belonged to, while every UI write is gated on this ref still
|
|
32
|
+
* naming that session. Without the split, the prompt and its optimistic rows
|
|
33
|
+
* followed the URL into the newly opened chat.
|
|
34
|
+
*/
|
|
35
|
+
sessionIdRef: { current: string | null };
|
|
36
|
+
/** Non-reactive mirror of the timeline rows, read before the send's own
|
|
37
|
+
* async work so a send that outlives a switch can still persist its user row
|
|
38
|
+
* into the session it was typed in. */
|
|
39
|
+
localMessagesRef: { current: ChatMessageData[] };
|
|
26
40
|
isOmpSession: boolean;
|
|
27
41
|
/** The harness that owns this chat (omp-rpc, claude, …), for the ONE rule
|
|
28
42
|
* that is omp-specific: the TUI-only slash-command guard. Undefined until
|
|
@@ -51,13 +51,20 @@ afterEach(() => {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
function makeMessages(): {
|
|
54
|
+
function makeMessages(): {
|
|
55
|
+
messages: ChatMessageData[];
|
|
56
|
+
setLocalMessages: ChatTimelineSendDeps['setLocalMessages'];
|
|
57
|
+
localMessagesRef: { current: ChatMessageData[] };
|
|
58
|
+
} {
|
|
55
59
|
const messages: ChatMessageData[] = [];
|
|
60
|
+
const localMessagesRef = { current: messages };
|
|
56
61
|
return {
|
|
57
62
|
messages,
|
|
63
|
+
localMessagesRef,
|
|
58
64
|
setLocalMessages: (next) => {
|
|
59
65
|
const resolved = typeof next === 'function' ? next(messages) : next;
|
|
60
66
|
messages.splice(0, messages.length, ...resolved);
|
|
67
|
+
localMessagesRef.current = messages;
|
|
61
68
|
},
|
|
62
69
|
};
|
|
63
70
|
}
|
|
@@ -140,7 +147,7 @@ function makeSendHarness(options: {
|
|
|
140
147
|
agent?: Partial<AgentCalls> | AgentRecorder;
|
|
141
148
|
deferredPick?: { current: any };
|
|
142
149
|
} = {}): SendHarness {
|
|
143
|
-
const { messages, setLocalMessages } = makeMessages();
|
|
150
|
+
const { messages, setLocalMessages, localMessagesRef } = makeMessages();
|
|
144
151
|
// `options.agent` is either overrides for the recorder's `AgentCalls` or
|
|
145
152
|
// the finished recorder itself; the two forms are told apart by shape.
|
|
146
153
|
const agent: AgentRecorder =
|
|
@@ -162,6 +169,8 @@ function makeSendHarness(options: {
|
|
|
162
169
|
folders: options.folders ?? [],
|
|
163
170
|
selectedFolderId: options.selectedFolderId ?? null,
|
|
164
171
|
sessionId: options.sessionId === undefined ? 'sess-1' : options.sessionId,
|
|
172
|
+
sessionIdRef: { current: options.sessionId === undefined ? 'sess-1' : options.sessionId },
|
|
173
|
+
localMessagesRef,
|
|
165
174
|
isOmpSession: options.isOmpSession ?? true,
|
|
166
175
|
appSettings: {},
|
|
167
176
|
ompAgent: agent.agent,
|