@kabmo-labs/kabmo 0.45.1 → 0.46.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/dist/client/index.html +1 -1
- package/dist/client/index.js +412 -412
- package/dist/client/static/js/{CsvGrid-eqmctwyq.js → CsvGrid-br4j001k.js} +2 -2
- package/dist/client/static/js/{DocxView-rjrshmzf.js → DocxView-kmtkbmmw.js} +3 -3
- package/dist/client/static/js/{DrawioView-za569srw.js → DrawioView-3df0g3jr.js} +2 -2
- package/dist/client/static/js/ImageView-2r8p5z3y.js +1 -0
- package/dist/client/static/js/LayoutWrapper-rq3d2a4e.js +2 -0
- package/dist/client/static/js/Modal-tmxhxd6q.js +59 -0
- package/dist/client/static/js/{PdfView-2m78d4jz.js → PdfView-p5z7c7eg.js} +1 -1
- package/dist/client/static/js/{SessionsView-54awmse0.js → SessionsView-t06h6zfx.js} +1 -1
- package/dist/client/static/js/{SheetView-xfvjdh24.js → SheetView-agw459v2.js} +19 -19
- package/dist/client/static/js/{SvgPreview-yfjrfb40.js → SvgPreview-b9rfy1h6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-tmsa3b36.js → abnfDiagram-O67JEVCF-wbnhzcnj.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-pvb4d65d.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-a5effrpz.js → architectureDiagram-NJMV4G6O-t2sgevea.js} +3 -3
- package/dist/client/static/js/{astro-56b0as3q.js → astro-hyj5wege.js} +1 -1
- package/dist/client/static/js/bash-8d8z8zrg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-3q2kf22c.js → blockDiagram-BEXU5L5S-v2nzp54a.js} +5 -5
- package/dist/client/static/js/c-acmn1zc9.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-mkw3jvf6.js → c4Diagram-YGBWAQC7-7h03146b.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fw9bs1za.js → classDiagram-v2-NBCMYWYE-m57e9kp1.js} +7 -7
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-eqjrpps4.js → cose-bilkent-JH36ORCC-c4tnh4mg.js} +1 -1
- package/dist/client/static/js/cpp-620mvjkk.js +1 -0
- package/dist/client/static/js/css-bt76kxbq.js +1 -0
- package/dist/client/static/js/css-drfs4n12.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-gmx4vean.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-4w61hq3e.js → cynefinDiagram-VND7K2PF-mjf6njey.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-t52jdfr1.js → dagre-6A5THRUB-6yma9ch3.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-448hyxaz.js → diagram-22UHCM2B-1q4ce2gb.js} +18 -18
- package/dist/client/static/js/{diagram-3UASUU5V-350k213a.js → diagram-3UASUU5V-0ttps29p.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-9davjeyb.js → diagram-ATOU4E4O-1mzexgv1.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-034wwghk.js → diagram-CDSNMT55-4ae89t23.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-kzzd4ecm.js → diagram-MLGK6HIB-057jaqvh.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-rsky4e3s.js → diagram-MPIPVDR6-p6yyq5sx.js} +2 -2
- package/dist/client/static/js/{dockerfile-68b0e6b6.js → dockerfile-00hqsk9c.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-7bm1e394.js → ebnfDiagram-ZINNZB2B-bsk7dvm4.js} +1 -1
- package/dist/client/static/js/{elixir-12pgbgtq.js → elixir-80wq7gak.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-4xjp4rgh.js → elk-276RUBZZ-dsq91er5.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-v52qmcrv.js → erDiagram-OPXOYQCR-p7p13mbh.js} +9 -9
- package/dist/client/static/js/{erlang-811btv6p.js → erlang-814e8qy5.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-vrnheyh7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-7b4w6phx.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1r1fn18p.js → ganttDiagram-FUAMR5RP-bwgnttyk.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-n6wnc8st.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-zt5cwg83.js → gitGraphDiagram-X574FWY7-ca0gj5am.js} +13 -13
- package/dist/client/static/js/graphql-j1a6zp7m.js +1 -0
- package/dist/client/static/js/html-m0megrvb.js +1 -0
- package/dist/client/static/js/index-064vdkrs.js +2 -0
- package/dist/client/static/js/{index-x0kgnkv3.js → index-16sd19f0.js} +2 -2
- package/dist/client/static/js/{index-qt9jc4ck.js → index-19x11s5w.js} +2 -2
- package/dist/client/static/js/{index-2b1wnvez.js → index-1c2jvnyh.js} +2 -2
- package/dist/client/static/js/{index-127se1a3.js → index-29npynva.js} +19 -19
- package/dist/client/static/js/{index-gcwmpfr4.js → index-2ks0m8ss.js} +2 -2
- package/dist/client/static/js/{index-pfj3sd1n.js → index-33qxg79j.js} +7 -7
- package/dist/client/static/js/index-3bf7r7z4.js +12 -0
- package/dist/client/static/js/index-3qnjdjg2.js +1 -0
- package/dist/client/static/js/index-4bqssvt6.js +2 -0
- package/dist/client/static/js/{index-03j5j1j0.js → index-561gkvve.js} +2 -2
- package/dist/client/static/js/{index-xgv501v0.js → index-5gf52a6d.js} +2 -2
- package/dist/client/static/js/{index-84vmdg3k.js → index-5h8y54t6.js} +1 -1
- package/dist/client/static/js/{index-f51jxezc.js → index-5wz0y88c.js} +2 -2
- package/dist/client/static/js/{index-x2wvq4ae.js → index-64sqfr4a.js} +2 -2
- package/dist/client/static/js/{index-528x5x8c.js → index-7055hdx1.js} +1 -1
- package/dist/client/static/js/index-8pksqzwq.js +1 -0
- package/dist/client/static/js/index-95kese1h.js +1 -0
- package/dist/client/static/js/{index-tkfxnnr5.js → index-9d3n04vb.js} +2 -2
- package/dist/client/static/js/{index-ga6492qc.js → index-aagt3382.js} +1 -1
- package/dist/client/static/js/{index-gzafyqsr.js → index-abs635a1.js} +56 -56
- package/dist/client/static/js/{index-q36gq3yz.js → index-amys498v.js} +198 -198
- package/dist/client/static/js/{index-9zwtpazh.js → index-bafe7hmd.js} +2 -2
- package/dist/client/static/js/{index-mnh8nptt.js → index-bjv5ga2e.js} +2 -2
- package/dist/client/static/js/{index-fbct0jcf.js → index-d23eacf2.js} +2 -2
- package/dist/client/static/js/{index-wqrdgt1g.js → index-dn7hg4em.js} +2 -2
- package/dist/client/static/js/index-dpy3ewrn.css +1 -0
- package/dist/client/static/js/{index-2tmnqqzt.js → index-dr5hca5b.js} +3 -3
- package/dist/client/static/js/{index-3h2mr90j.js → index-dxvtjn6a.js} +2 -2
- package/dist/client/static/js/index-eqhjs1yv.js +4 -0
- package/dist/client/static/js/{index-cza9mnxx.js → index-ex5dtdx2.js} +6 -6
- package/dist/client/static/js/{index-8ps5gdwz.js → index-f7te27n5.js} +5 -5
- package/dist/client/static/js/{index-6sqmhdyv.js → index-fj5rsp5v.js} +2 -2
- package/dist/client/static/js/{index-n1ga63de.js → index-g7s0wsag.js} +2 -2
- package/dist/client/static/js/index-gq5w5w8x.js +2 -0
- package/dist/client/static/js/{index-jaqjvk22.js → index-hkz2mz34.js} +2 -2
- package/dist/client/static/js/{index-gzp4j2h5.js → index-hnb66d3s.js} +2 -2
- package/dist/client/static/js/{index-bcpyxt97.js → index-j718pxb3.js} +2 -2
- package/dist/client/static/js/{index-0gmw2bt3.js → index-jkay7aw7.js} +2 -2
- package/dist/client/static/js/{index-ex3w7t7s.js → index-k5zfzgez.js} +2 -2
- package/dist/client/static/js/{index-vgcm2g0g.js → index-kty4ncsr.js} +2 -2
- package/dist/client/static/js/{index-2zntn964.js → index-ncpwteyt.js} +2 -2
- package/dist/client/static/js/{index-pxq4v81r.js → index-nw5mvcaj.js} +2 -2
- package/dist/client/static/js/{index-j50y0z44.js → index-pwe6chtp.js} +1 -1
- package/dist/client/static/js/{index-8dtp7mt0.js → index-qf3y3ahx.js} +2 -2
- package/dist/client/static/js/{index-as1wptfa.js → index-qfxn7yh5.js} +2 -2
- package/dist/client/static/js/{index-snjtkfkq.js → index-qn200x1b.js} +6 -6
- package/dist/client/static/js/index-red856x6.js +1 -0
- package/dist/client/static/js/{index-e6any867.js → index-sa1675y0.js} +2 -2
- package/dist/client/static/js/{index-m9s7r4z9.js → index-ta6gpcpw.js} +3 -3
- package/dist/client/static/js/{index-ehg2ftnp.js → index-trvqvb1v.js} +2 -2
- package/dist/client/static/js/{index-2gbfke1a.js → index-twsbv1yn.js} +1 -1
- package/dist/client/static/js/{index-1nwwvv29.js → index-vjmg7kn5.js} +2 -2
- package/dist/client/static/js/{index-nzhwd6t3.js → index-wbws16ag.js} +2 -2
- package/dist/client/static/js/{index-frqq7yen.js → index-x1fqhhpp.js} +64 -64
- package/dist/client/static/js/{index-mhnwyra0.js → index-y2z8nsvw.js} +2 -2
- package/dist/client/static/js/{index-t0yv1375.js → index-z0fkfphe.js} +2 -2
- package/dist/client/static/js/{index-dmv2zasz.js → index-z4530r3c.js} +2 -2
- package/dist/client/static/js/{index-zwx3vbf0.js → index-zedt16w7.js} +1 -1
- package/dist/client/static/js/{index-c7vbr57m.js → index-zq0qxb17.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-1xtdxjz2.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-yd4zwrtv.js → infoDiagram-VRGFBTTK-7q58qdf1.js} +2 -2
- package/dist/client/static/js/ini-5f4zqtqr.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-7sjp09d4.js → ishikawaDiagram-OU5B5YK6-9jmeszag.js} +3 -3
- package/dist/client/static/js/java-jj41mty3.js +1 -0
- package/dist/client/static/js/javascript-n9w9p97f.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-qh9jk7qk.js → journeyDiagram-ZHPQQLJL-0d7xe845.js} +5 -5
- package/dist/client/static/js/json-rnh2h17x.js +1 -0
- package/dist/client/static/js/jsx-4gecrt29.js +1 -0
- package/dist/client/static/js/{julia-mgsev9df.js → julia-yv2j8qd0.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-cjc8k0jk.js → kanban-definition-PNTS6WVX-7p83rwdn.js} +5 -5
- package/dist/client/static/js/lua-zszaw2f7.js +1 -0
- package/dist/client/static/js/markdown-nm6gw4v4.js +1 -0
- package/dist/client/static/js/{mermaid.core-vw0b7r0k.js → mermaid.core-hwhzw0wv.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-jyhtpt1z.js → mindmap-definition-NLK3R4M7-hy0rtr7t.js} +8 -8
- package/dist/client/static/js/one-dark-pro-4b8er03c.js +1 -0
- package/dist/client/static/js/one-light-e6r3vsz4.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-zm1r82x5.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-80ygdd29.js → pegDiagram-GJSIUBJH-kd8t53tx.js} +1 -1
- package/dist/client/static/js/{perl-6n93vjsa.js → perl-917pjq5a.js} +1 -1
- package/dist/client/static/js/{php-w23nmbtc.js → php-hwz75qzt.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-sqa7321j.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6vgh7ntn.js → pieDiagram-5QR66LMP-h3x03f80.js} +3 -3
- package/dist/client/static/js/properties-rkptax7r.js +1 -0
- package/dist/client/static/js/python-qf1se1mj.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-k5byajmm.js → quadrantDiagram-O4NWA36T-y2b1ncbg.js} +6 -6
- package/dist/client/static/js/r-ms0cygq2.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-z3z82syp.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-z6swcqq2.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-33km6py4.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-1zbf1xmq.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-wte1xzzy.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-qffrkk7g.js → railroadDiagram-XR7U4H2S-x188rcxf.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-r80w7tdp.js → requirementDiagram-PLB6GJNP-g5e9fk17.js} +10 -10
- package/dist/client/static/js/{ruby-ag3b3t9t.js → ruby-er7ayhte.js} +1 -1
- package/dist/client/static/js/{rust-a9jcfy2e.js → rust-1v8xbxn9.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-g9qdy74b.js → sankeyDiagram-IPEJSGJF-y9ht91gf.js} +4 -4
- package/dist/client/static/js/{sass-x0eez0kp.js → sass-n47tt136.js} +1 -1
- package/dist/client/static/js/{scss-qycakpjn.js → scss-kvev49ga.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-nywg1eq3.js → sequenceDiagram-PO4LG4MO-pp8s63rt.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-m5pks027.js → sizeCapture-INFHLROL-k6dhfxex.js} +1 -1
- package/dist/client/static/js/sql-hd42h8wx.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-xzzv780w.js → stateDiagram-v2-GCMORJYK-y3akpsm4.js} +3 -3
- package/dist/client/static/js/{svelte-tg19by0f.js → svelte-2pmz35vx.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-n4q5ad13.js → swimlanes-2SLR337P-89081dr3.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3q2a15wc.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-j9pde7sa.js → timeline-definition-EJHVYXUP-tz6r8g3q.js} +6 -6
- package/dist/client/static/js/treeView-Q6P3EWNA-pvgx6n22.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-3n9zm628.js +1 -0
- package/dist/client/static/js/tsx-gx7td06z.js +1 -0
- package/dist/client/static/js/typescript-1a808spn.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ehnc0600.js → usecaseDiagram-POWQR4AR-yq2y1b09.js} +44 -44
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-cp4kj6kw.js → vennDiagram-UO4OBE2U-qdmjf6x3.js} +7 -7
- package/dist/client/static/js/{vue-mhj4sme0.js → vue-d5gpjfgn.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-7m07ewc4.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-eegf1jpw.js → wardleyDiagram-VNRHLVJA-3n2sm7rj.js} +3 -3
- package/dist/client/static/js/xml-3117mxd9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-zkkqfyex.js → xychartDiagram-PMCCYNJV-d7n2av2t.js} +5 -5
- package/dist/client/static/js/yaml-dmvh8vyt.js +1 -0
- package/extensions/kabmo-modes/index.ts +1 -1
- package/extensions/kabmo-modes/parked.test.ts +2 -2
- package/extensions/kabmo-modes/parked.ts +10 -9
- package/extensions/kabmo-modes/plan.test.ts +4 -4
- package/extensions/kabmo-modes/plan.ts +6 -6
- package/extensions/kabmo-modes/session.ts +2 -2
- package/package.json +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/Modal.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.test.tsx +8 -3
- package/src/client/components/common/NotificationPermissionDialog.tsx +7 -9
- package/src/client/components/common/PWAInstallButton.tsx +1 -1
- package/src/client/components/common/header-panel-buttons/index.tsx +5 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +31 -36
- package/src/client/components/common/shell-update-button/index.test.tsx +5 -2
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +15 -0
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +16 -0
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +4 -6
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/mobile/LayoutWrapper.tsx +9 -43
- package/src/client/components/mobile/RightSidebar.tsx +27 -10
- package/src/client/components/mobile/SessionSidebar.tsx +112 -137
- package/src/client/components/mobile/drawer-strip.tsx +85 -0
- package/src/client/components/mobile/left-drawer-nav.test.tsx +350 -0
- package/src/client/components/mobile/mobile-drawer-reveals.test.tsx +194 -0
- package/src/client/components/mobile/mobile-drawer-reveals.ts +138 -0
- package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -24
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +57 -0
- package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +14 -87
- package/src/client/components/mobile/mobile-right-sidebar/FullDiff.tsx +2 -7
- package/src/client/components/mobile/mobile-right-sidebar/Header.test.tsx +157 -0
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +109 -105
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Overflow.tsx +95 -0
- package/src/client/components/mobile/mobile-session-sidebar/Body.tsx +212 -0
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +7 -9
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +29 -8
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer-tabs.ts +96 -0
- package/src/client/components/settings/Band.test.tsx +83 -0
- package/src/client/components/settings/Band.tsx +96 -0
- package/src/client/components/settings/Modal.tsx +44 -69
- package/src/client/components/settings/apply-side-effects.ts +15 -4
- package/src/client/components/settings/band-height.test.tsx +16 -3
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +35 -9
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/ChatSettings.test.tsx +32 -9
- package/src/client/components/settings/categories/ChatSettings.tsx +2 -0
- package/src/client/components/settings/categories/NotificationSettings.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +40 -223
- package/src/client/components/settings/categories/appearance-settings/nav-choice.tsx +176 -0
- package/src/client/components/settings/categories/appearance-settings/nav-miniatures.tsx +93 -0
- package/src/client/components/settings/categories/connect-settings/PairDialog.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/notification-settings/PermissionNotice.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +1 -1
- package/src/client/components/settings/drill.tsx +113 -0
- package/src/client/components/settings/master-detail/GroupDetail.tsx +14 -6
- package/src/client/components/settings/master-detail/GroupSidebar.tsx +9 -1
- package/src/client/components/settings/master-detail/index.tsx +45 -25
- package/src/client/components/workspace/chat-timeline/MobileTurnJump.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +23 -6
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +19 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/index.tsx +5 -9
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.test.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.test.tsx +127 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +225 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +5 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.test.ts +4 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +40 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/Footer.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +8 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Mcp.tsx +16 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +16 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +37 -12
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +4 -3
- package/src/client/components/workspace/diff-panel/index.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +4 -4
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/CloseButton.tsx +38 -0
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +16 -25
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +30 -9
- package/src/client/components/workspace/model-dropdown/Header.tsx +33 -21
- package/src/client/components/workspace/model-dropdown/Panel.tsx +19 -4
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +139 -0
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +9 -7
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/NavModal.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +103 -42
- package/src/client/hooks/chat/timeline/ask-form-frame.ts +33 -0
- package/src/client/hooks/chat/timeline/ask-frame-asks.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frame-buckets.ts +77 -0
- package/src/client/hooks/chat/timeline/ask-frames-context.ts +68 -0
- package/src/client/hooks/chat/timeline/ask-frames-form.test.ts +170 -0
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +36 -93
- package/src/client/hooks/workspace/left-dock.ts +19 -0
- package/src/client/hooks/workspace/mobile-panel-nav.ts +90 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +42 -21
- package/src/client/hooks/workspace/panel-tabs-reveal.test.tsx +283 -0
- package/src/client/hooks/workspace/panel-tabs-reveal.ts +162 -0
- package/src/client/hooks/workspace/panel-tabs.ts +19 -2
- package/src/client/lib/ui/phone-row.test.ts +52 -0
- package/src/client/lib/ui/phone-row.ts +71 -0
- package/src/client/press-state.test.ts +179 -0
- package/src/client/tailwind.css +146 -0
- package/src/server/lib/bundler/titlebar-css.test.ts +10 -1
- package/src/server/lib/omp/rpc/constants.test.ts +6 -1
- package/src/shared/lib/chat/ask-form/data.ts +155 -0
- package/src/shared/lib/chat/ask-form/fields.ts +4 -0
- package/src/shared/lib/chat/ask-form/index.ts +8 -0
- package/src/shared/lib/chat/ask-form/types.ts +12 -0
- package/src/shared/lib/chat/timeline/tool-verbs.ts +28 -1
- package/src/shared/lib/chat/tool/tool-commands.test.ts +102 -0
- package/src/shared/lib/chat/tool/tool-commands.ts +124 -0
- package/src/shared/lib/omp/config/schema-releases.test.ts +34 -1
- package/src/shared/lib/omp/dialog-methods.ts +6 -0
- package/src/shared/lib/omp/session/wait-idle.ts +7 -3
- package/src/shared/lib/settings/defaults.ts +3 -2
- package/src/shared/lib/workspace/panel-nav.test.ts +26 -19
- package/src/shared/lib/workspace/panel-nav.ts +20 -9
- package/src/shared/types/omp/agent.ts +20 -3
- package/src/shared/types/settings/state.ts +17 -5
- package/dist/client/static/js/ImageView-6ksvyzqv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-px60417t.js +0 -2
- package/dist/client/static/js/Modal-yv1718s1.js +0 -59
- package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +0 -1
- package/dist/client/static/js/bash-mevzaywf.js +0 -1
- package/dist/client/static/js/c-y1y6v00q.js +0 -1
- package/dist/client/static/js/cpp-wk9z0c5g.js +0 -1
- package/dist/client/static/js/css-3w3p9s67.js +0 -1
- package/dist/client/static/js/css-g85rwzty.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-hekt0qsb.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +0 -1
- package/dist/client/static/js/graphql-027z8sc0.js +0 -1
- package/dist/client/static/js/html-fqda6wxx.js +0 -1
- package/dist/client/static/js/index-252br0k2.js +0 -1
- package/dist/client/static/js/index-6bm4pw90.css +0 -1
- package/dist/client/static/js/index-80qxk9hx.js +0 -1
- package/dist/client/static/js/index-9674dxb4.js +0 -1
- package/dist/client/static/js/index-9k4121z4.js +0 -4
- package/dist/client/static/js/index-b6454rme.js +0 -12
- package/dist/client/static/js/index-ck0fd3aj.js +0 -2
- package/dist/client/static/js/index-jdf1tks1.js +0 -2
- package/dist/client/static/js/index-q58e8x6j.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +0 -1
- package/dist/client/static/js/ini-3cx6tmv4.js +0 -1
- package/dist/client/static/js/java-zs6qh1dm.js +0 -1
- package/dist/client/static/js/javascript-b9mkygak.js +0 -1
- package/dist/client/static/js/json-qn73s8xb.js +0 -1
- package/dist/client/static/js/jsx-gahhfczw.js +0 -1
- package/dist/client/static/js/lua-d8enp14s.js +0 -1
- package/dist/client/static/js/markdown-qetaj4vp.js +0 -1
- package/dist/client/static/js/one-dark-pro-axkq0m3s.js +0 -1
- package/dist/client/static/js/one-light-pncb08qd.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +0 -1
- package/dist/client/static/js/properties-g6tpq003.js +0 -1
- package/dist/client/static/js/python-cy06fzhg.js +0 -1
- package/dist/client/static/js/r-vw8berfv.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +0 -1
- package/dist/client/static/js/sql-bwnasywx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-253nz20y.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +0 -1
- package/dist/client/static/js/tsx-3dzv8h6k.js +0 -1
- package/dist/client/static/js/typescript-44vs0wn4.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +0 -1
- package/dist/client/static/js/xml-yvv5fn3k.js +0 -1
- package/dist/client/static/js/yaml-avewh7n5.js +0 -1
- package/src/client/hooks/workspace/mobile-right-panel-nav.ts +0 -63
- package/src/shared/lib/ui/safe-area.test.ts +0 -28
- package/src/shared/lib/ui/safe-area.ts +0 -42
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'preact/hooks';
|
|
2
2
|
import { AlertCircle, AlertTriangle, CheckCircle2, Cpu, Info, Server } from 'lucide-preact';
|
|
3
3
|
import type { ToolCallData } from '@/shared/types';
|
|
4
|
+
import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
|
|
4
5
|
import { FallbackOutput } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/FallbackOutput';
|
|
5
6
|
import { getToolInputAction } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input';
|
|
6
7
|
|
|
@@ -155,7 +156,11 @@ export function Lsp({ tool }: { tool: ToolCallData }) {
|
|
|
155
156
|
const details = (tool.details ?? {}) as Record<string, any>;
|
|
156
157
|
const output = tool.output ?? '';
|
|
157
158
|
|
|
159
|
+
// omp 19.1.0 runs `lsp` as a bash tool command; its parsed arguments ride
|
|
160
|
+
// `details.toolCommands[].args` instead of `details.xdev.args`.
|
|
161
|
+
const commandArgs = soleToolCommand(tool)?.args;
|
|
158
162
|
const isCapabilities =
|
|
163
|
+
commandArgs?.action === 'capabilities' ||
|
|
159
164
|
details.xdev?.args?.action === 'capabilities' ||
|
|
160
165
|
getToolInputAction(tool.input) === 'capabilities' ||
|
|
161
166
|
output.includes('capabilities:');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMemo } from 'preact/hooks';
|
|
2
2
|
import { Boxes, Braces } from 'lucide-preact';
|
|
3
3
|
import type { ToolCallData } from '@/shared/types';
|
|
4
|
+
import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
|
|
4
5
|
import { tryParseJson } from '@/shared/lib/code/syntax-highlight';
|
|
5
6
|
import { isRecord } from '@/shared/lib/util/guards';
|
|
6
7
|
import { MarkdownRenderer } from '@/client/components/common/MarkdownRenderer';
|
|
@@ -90,19 +91,27 @@ function ObjectNode({ data }: { data: Record<string, unknown> }) {
|
|
|
90
91
|
);
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
/** Panel untuk tool MCP
|
|
94
|
-
* (
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
94
|
+
/** Panel untuk tool MCP. Tiga bentuk pemanggilan, satu panel: `write xd://mcp__<tool>`
|
|
95
|
+
* (sesi sebelum 19.1.0), `mcp__<tool>` top-level, dan tool command
|
|
96
|
+
* (`bash` yang menjalankan `mcp__<tool> --flag …`, dengan argumen terurai di
|
|
97
|
+
* `details.toolCommands[].args`). Argumen dirender per key; value non-JSON
|
|
98
|
+
* sebagai markdown; JSON list sebagai list. Output fallback ke FallbackOutput,
|
|
99
|
+
* atau per-key bila hasilnya juga JSON object/list. */
|
|
98
100
|
export function Mcp({ tool }: { tool: ToolCallData }) {
|
|
99
101
|
const inputObj =
|
|
100
102
|
typeof tool.input === 'object' && tool.input !== null ? (tool.input as Record<string, unknown>) : undefined;
|
|
101
103
|
|
|
104
|
+
const command = soleToolCommand(tool);
|
|
102
105
|
const path = typeof inputObj?.path === 'string' ? inputObj.path : tool.target || '';
|
|
103
|
-
const name = typeof tool.name === 'string' ? tool.name : '';
|
|
106
|
+
const name = command?.dispatch.tool ?? (typeof tool.name === 'string' ? tool.name : '');
|
|
104
107
|
const device = (path ? path.replace(/^xd:\/\//, '') : name).replace(/^mcp__/, '');
|
|
105
|
-
|
|
108
|
+
// A tool command's arguments were parsed against the tool's schema; the
|
|
109
|
+
// legacy `write` shape carries them as JSON text in `content`.
|
|
110
|
+
const content = command
|
|
111
|
+
? JSON.stringify(command.args, null, 2)
|
|
112
|
+
: typeof inputObj?.content === 'string'
|
|
113
|
+
? inputObj.content
|
|
114
|
+
: '';
|
|
106
115
|
|
|
107
116
|
const parsedArgs = useMemo(() => (content ? tryParseJson(content) : { isValid: false }), [content]);
|
|
108
117
|
const argsData = parsedArgs.isValid ? parsedArgs.data : undefined;
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { CheckCircle2, FileText, XCircle } from 'lucide-preact';
|
|
2
2
|
import type { ToolCallData } from '@/shared/types';
|
|
3
|
+
import { soleInnerDetails, soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
|
|
3
4
|
|
|
4
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Panel untuk `resolve` dan `reject` — keputusan atas staged proposal.
|
|
7
|
+
*
|
|
8
|
+
* Dua bentuk yang sama-sama harus tampil di sini: tool command omp 19.1.0
|
|
9
|
+
* (`bash` yang menjalankan `resolve "…"`, dengan hasil tool aslinya di
|
|
10
|
+
* `details.toolCommands[].inner`) dan pemanggilan tool langsung (tanpa `bash`
|
|
11
|
+
* aktif). Bentuk `write xd://resolve` yang lama tetap dibaca karena sesi yang
|
|
12
|
+
* tersimpan sebelum pin masih menyimpannya.
|
|
13
|
+
*/
|
|
5
14
|
export function Resolve({ tool }: { tool: ToolCallData }) {
|
|
6
15
|
const details = (tool.details ?? {}) as Record<string, any>;
|
|
7
16
|
const xdev = (details.xdev ?? {}) as Record<string, any>;
|
|
8
|
-
const
|
|
17
|
+
const command = soleToolCommand(tool);
|
|
18
|
+
const inner = (soleInnerDetails(tool) ?? xdev.inner ?? {}) as Record<string, any>;
|
|
19
|
+
const args = (command?.args ?? xdev.args ?? {}) as Record<string, any>;
|
|
9
20
|
const input = typeof tool.input === 'object' && tool.input !== null ? (tool.input as Record<string, any>) : undefined;
|
|
21
|
+
const name = command?.dispatch.tool ?? tool.name;
|
|
10
22
|
|
|
11
23
|
const isReject =
|
|
12
|
-
|
|
24
|
+
name === 'reject' ||
|
|
13
25
|
tool.target?.includes('reject') ||
|
|
14
26
|
xdev.tool === 'reject' ||
|
|
15
27
|
inner.action === 'reject' ||
|
|
@@ -17,7 +29,7 @@ export function Resolve({ tool }: { tool: ToolCallData }) {
|
|
|
17
29
|
|
|
18
30
|
const reason =
|
|
19
31
|
inner.reason ||
|
|
20
|
-
|
|
32
|
+
args.reason ||
|
|
21
33
|
(typeof input?.content === 'string' ? input.content : '') ||
|
|
22
34
|
(typeof tool.input === 'string' ? tool.input : '');
|
|
23
35
|
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
import type { ToolCallData } from '@/shared/types/chat';
|
|
23
23
|
import { procPathOf } from '@/shared/lib/omp/session/proc';
|
|
24
|
+
import { soleToolCommand } from '@/shared/lib/chat/tool/tool-commands';
|
|
24
25
|
|
|
25
26
|
/** Legacy Kabmo/MOCK alias → canonical omp tool name. */
|
|
26
27
|
export const TOOL_ALIASES: Record<string, string> = {
|
|
@@ -115,27 +116,29 @@ export function xdDevice(tool: ToolCallData): string | undefined {
|
|
|
115
116
|
return path.slice('xd://'.length).split(/[/?#\s]/)[0].toLowerCase() || undefined;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
/** The
|
|
119
|
+
/** The documentation URL a READ names, if any.
|
|
119
120
|
*
|
|
120
|
-
* omp
|
|
121
|
-
* `
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* `read xd://lsp` drew the LSP diagnostics card and `read xd://mcp__…` the MCP
|
|
125
|
-
* argument/result card, both over a page of prose. The write transport is the
|
|
126
|
-
* opposite — `write xd://lsp` IS a call and must reach the device's panel.
|
|
121
|
+
* omp 19.1.0 moved tool doc topics from `xd://<tool>/<topic>` to
|
|
122
|
+
* `help://<tool>/<topic>` (and the device listing went with the devices). Both
|
|
123
|
+
* spellings are read: a session recorded before the pin still carries the old
|
|
124
|
+
* one, and its prose must not render as a code block.
|
|
127
125
|
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
126
|
+
* omp's own reader draws all of them as an ordinary read — neither scheme has a
|
|
127
|
+
* read card, unlike `proc://` and `cfg://`. Dispatching by device instead sent
|
|
128
|
+
* it to the device's panel: `read xd://lsp` drew the LSP diagnostics card over
|
|
129
|
+
* a page of prose.
|
|
130
|
+
*
|
|
131
|
+
* The FULL path is returned, not the device: `help://eval/browser` is the
|
|
132
|
+
* browser topic of the `eval` tool, and `xdDevice` would report only `eval`. */
|
|
130
133
|
export function xdDocPath(tool: ToolCallData): string | undefined {
|
|
131
134
|
const raw = (tool.name || tool.type || '').toLowerCase();
|
|
132
135
|
if ((TOOL_ALIASES[raw] ?? raw) !== 'read') return undefined;
|
|
133
136
|
const input = inputRecord(tool);
|
|
134
137
|
const path = typeof input?.path === 'string' ? input.path : tool.target ?? '';
|
|
135
|
-
return path.startsWith('xd://') ? path : undefined;
|
|
138
|
+
return path.startsWith('xd://') || path.startsWith('help://') ? path : undefined;
|
|
136
139
|
}
|
|
137
140
|
|
|
138
|
-
/** True for a read of a `xd://`
|
|
141
|
+
/** True for a read of a tool-documentation URL (`help://`, or `xd://` before 19.1.0). */
|
|
139
142
|
export function isXdDocRead(tool: ToolCallData): boolean {
|
|
140
143
|
return xdDocPath(tool) !== undefined;
|
|
141
144
|
}
|
|
@@ -154,6 +157,19 @@ export function toolPanelKind(tool: ToolCallData): ToolPanelKind | null {
|
|
|
154
157
|
if (procPathOf(tool)) return 'proc';
|
|
155
158
|
if (isXdDocRead(tool)) return 'read';
|
|
156
159
|
|
|
160
|
+
// omp 19.1.0 runs rarely-used tools as bash commands: `resolve "reason"`,
|
|
161
|
+
// `lsp --help`, `ast_edit …`. When the call IS that invocation and nothing
|
|
162
|
+
// else, the wrapped tool names the panel — drawing a terminal console over a
|
|
163
|
+
// staged proposal's decision would lose the panel the decision lives on.
|
|
164
|
+
const sole = soleToolCommand(tool);
|
|
165
|
+
if (sole) {
|
|
166
|
+
// An MCP tool mounted as a command keeps its server/tool name, which is
|
|
167
|
+
// what the MCP panel draws.
|
|
168
|
+
if (sole.dispatch.tool.startsWith('mcp__')) return 'mcp';
|
|
169
|
+
const inner = DEVICE_KINDS[sole.dispatch.tool];
|
|
170
|
+
if (inner) return inner;
|
|
171
|
+
}
|
|
172
|
+
|
|
157
173
|
const device = xdDevice(tool);
|
|
158
174
|
if (device) {
|
|
159
175
|
if (device.startsWith('mcp__')) return 'mcp';
|
|
@@ -165,3 +181,12 @@ export function toolPanelKind(tool: ToolCallData): ToolPanelKind | null {
|
|
|
165
181
|
if (raw.startsWith('mcp__')) return 'mcp';
|
|
166
182
|
return PANEL_KINDS[TOOL_ALIASES[raw] ?? raw] ?? null;
|
|
167
183
|
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The tool a call's panel should describe: the tool command it ran when that
|
|
187
|
+
* command is the whole call, else its own name. Used by the header, which
|
|
188
|
+
* otherwise says "Bash" over a staged proposal's approval.
|
|
189
|
+
*/
|
|
190
|
+
export function effectiveToolName(tool: ToolCallData): string {
|
|
191
|
+
return soleToolCommand(tool)?.dispatch.tool ?? tool.name ?? tool.type ?? '';
|
|
192
|
+
}
|
|
@@ -156,10 +156,11 @@ export function toolCardHeader(tool: ToolCallData, toolKey: string): ToolCardHea
|
|
|
156
156
|
* and a device call's target IS the URL.
|
|
157
157
|
*/
|
|
158
158
|
export function toolCardSubtitle(tool: ToolCallData, header: ToolCardHeader): string | undefined {
|
|
159
|
-
|
|
159
|
+
const isDocUrl = (value: string) => value.startsWith('xd://') || value.startsWith('help://');
|
|
160
|
+
if (header.subtitle && (!isDocUrl(header.subtitle) || isXdDocRead(tool))) return header.subtitle;
|
|
160
161
|
const target = resolveTargetFile(tool);
|
|
161
|
-
if (target && !target
|
|
162
|
+
if (target && !isDocUrl(target)) return target;
|
|
162
163
|
if (header.subtitle) return undefined;
|
|
163
|
-
if (tool.detail && !tool.detail
|
|
164
|
+
if (tool.detail && !isDocUrl(tool.detail)) return tool.detail;
|
|
164
165
|
return undefined;
|
|
165
166
|
}
|
|
@@ -278,7 +278,7 @@ export function DiffPanel({
|
|
|
278
278
|
|
|
279
279
|
{/* Discard Confirmation Modal */}
|
|
280
280
|
{showDiscardConfirm && (
|
|
281
|
-
<div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center
|
|
281
|
+
<div className="fixed inset-0 modal-scrim z-50 flex items-center justify-center modal-safe backdrop-blur-xs">
|
|
282
282
|
<div className="glass-overlay bg-paper rounded-lg shadow-xl p-4 w-full max-w-sm border border-ink/15">
|
|
283
283
|
<h3 className="font-semibold text-ink mb-1.5 text-sm">Discard Changes?</h3>
|
|
284
284
|
<p className="text-xs text-ink/70 mb-4">
|
|
@@ -33,7 +33,7 @@ export function SaveDeletedFileModal({ fileName, filePath, onClose, onConfirm }:
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<div
|
|
36
|
-
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200
|
|
36
|
+
className="fixed inset-0 z-50 flex items-center justify-center modal-scrim animate-in fade-in duration-200 modal-safe"
|
|
37
37
|
onClick={onClose}
|
|
38
38
|
role="dialog"
|
|
39
39
|
aria-modal="true"
|
|
@@ -43,7 +43,7 @@ interface ShellProps {
|
|
|
43
43
|
|
|
44
44
|
function ArchiveDialogShell({ title, subject, error, busy, submitLabel, busyLabel, onSubmit, onCancel, children }: ShellProps) {
|
|
45
45
|
return createPortal(
|
|
46
|
-
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center
|
|
46
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
|
|
47
47
|
<form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
48
48
|
<h3 className="font-semibold text-ink mb-1 text-sm">{title}</h3>
|
|
49
49
|
<p className="text-[11px] text-ink/50 mb-3 break-words">{subject}</p>
|
|
@@ -35,7 +35,7 @@ interface NewFileModalProps {
|
|
|
35
35
|
export function FileCreateModal({ folderPath, kind, value, error, isLoading, onChange, onCancel, onSubmit }: NewFileModalProps) {
|
|
36
36
|
const label = kind === 'folder' ? 'Folder' : 'File';
|
|
37
37
|
return createPortal(
|
|
38
|
-
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center
|
|
38
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
|
|
39
39
|
<form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
40
40
|
<h3 className="font-semibold text-ink mb-3 text-sm">New {label}</h3>
|
|
41
41
|
<div className="flex items-center gap-1 mb-1 text-xs font-mono text-ink/50 min-w-0">
|
|
@@ -95,7 +95,7 @@ interface DeleteModalProps {
|
|
|
95
95
|
export function FileDeleteModal({ fileName, displayName, isFolder, count = 1, isLoading, onCancel, onConfirm }: DeleteModalProps) {
|
|
96
96
|
const multiple = count > 1;
|
|
97
97
|
return createPortal(
|
|
98
|
-
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center
|
|
98
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
|
|
99
99
|
<div className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
100
100
|
<h3 className="font-semibold text-ink mb-2 text-sm">Delete {multiple ? `${count} Items` : isFolder ? 'Folder' : 'File'}</h3>
|
|
101
101
|
<p className="text-xs text-ink/70 mb-4">
|
|
@@ -163,7 +163,7 @@ interface RenameModalProps {
|
|
|
163
163
|
*/
|
|
164
164
|
export function FileRenameModal({ isFolder, renameValue, originalPath, displayName, error, isLoading, onChange, onCancel, onSubmit }: RenameModalProps) {
|
|
165
165
|
return createPortal(
|
|
166
|
-
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center
|
|
166
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
|
|
167
167
|
<form onSubmit={onSubmit} className="glass-overlay bg-paper rounded shadow-xl p-4 w-full max-w-sm border border-ink/10 font-sans">
|
|
168
168
|
<h3 className="font-semibold text-ink mb-3 text-sm">Rename {isFolder ? 'Folder' : 'File'}</h3>
|
|
169
169
|
<input
|
|
@@ -220,7 +220,7 @@ interface HistoryModalProps {
|
|
|
220
220
|
export function FileHistoryModal({ filePath, fetcherState, fetcherData, onClose }: HistoryModalProps) {
|
|
221
221
|
const rows = fetcherData?.type === 'history' ? fetcherData.data : undefined;
|
|
222
222
|
return createPortal(
|
|
223
|
-
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center
|
|
223
|
+
<div className="fixed inset-0 modal-scrim z-[100] flex items-center justify-center modal-safe backdrop-blur-sm">
|
|
224
224
|
<div className="glass-overlay bg-paper rounded-lg shadow-xl w-full max-w-4xl border border-ink/10 flex flex-col max-h-[85vh]">
|
|
225
225
|
<div className="flex items-center justify-between p-4 border-b border-ink/10">
|
|
226
226
|
<h3 className="text-sm font-semibold text-ink flex items-center space-x-2">
|
|
@@ -7,7 +7,7 @@ export { GitCommitModal as GitOutputModal } from '@/client/components/workspace/
|
|
|
7
7
|
function ModalShell({ children, onClose }: { children: ReactNode; onClose: () => void }) {
|
|
8
8
|
return (
|
|
9
9
|
<div
|
|
10
|
-
className="fixed inset-0 z-50 modal-scrim flex items-center justify-center
|
|
10
|
+
className="fixed inset-0 z-50 modal-scrim flex items-center justify-center modal-safe"
|
|
11
11
|
onClick={onClose}
|
|
12
12
|
role="dialog"
|
|
13
13
|
aria-modal="true"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The picker's close control, drawn on whichever row the frame's first band is.
|
|
8
|
+
*
|
|
9
|
+
* The full-screen model picker used to own a header of its own — a 36px band
|
|
10
|
+
* containing the word "Model" and this `X`. That band sat above the harness
|
|
11
|
+
* strip, so the phone spent TWO chrome rows (85px of an 844px screen) on a
|
|
12
|
+
* surface whose whole job is to list models, and the word named the thing the
|
|
13
|
+
* user had just tapped. The control now rides the strip's trailing edge (or the
|
|
14
|
+
* search row when the picker offers no harness tabs), and the frame draws no
|
|
15
|
+
* header at all.
|
|
16
|
+
*
|
|
17
|
+
* One component for both rows, because the button has to look the same wherever
|
|
18
|
+
* the first band lands — a second `X` written inline is how the two would pick
|
|
19
|
+
* different sizes, which is exactly the drift the phone headers were fixed for.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { X } from 'lucide-preact';
|
|
23
|
+
import { CONTROL_BOX, CONTROL_GLYPH_PX } from '@/client/lib/ui/control-plate';
|
|
24
|
+
|
|
25
|
+
export function PickerCloseButton({ onClose }: { onClose: () => void }) {
|
|
26
|
+
return (
|
|
27
|
+
<button
|
|
28
|
+
type="button"
|
|
29
|
+
onClick={onClose}
|
|
30
|
+
aria-label="Close"
|
|
31
|
+
// The phone header row's own box and glyph: the picker is a phone title
|
|
32
|
+
// bar, so its controls are the same 36px plate as the drawer's close.
|
|
33
|
+
className={`${CONTROL_BOX.mobile} flex-none cursor-pointer rounded-lg text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink`}
|
|
34
|
+
>
|
|
35
|
+
<X size={CONTROL_GLYPH_PX.mobile} />
|
|
36
|
+
</button>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
* 390x844 phone: a 500px sheet left 344px of dead canvas above it and showed
|
|
14
14
|
* ~7 model rows; the full screen shows 15.
|
|
15
15
|
*
|
|
16
|
+
* **The frame draws NO header of its own.** It used to: a 36px band whose only
|
|
17
|
+
* content was the word "Model" and a 28px `X`, sitting above a 49px harness tab
|
|
18
|
+
* strip — two chrome rows where every other phone surface has one, and a label
|
|
19
|
+
* that named the thing the user had just tapped. The close control now rides the
|
|
20
|
+
* picker's own first row (the harness tabs, or the search field when the picker
|
|
21
|
+
* offers no tabs), which is what removes the second band without leaving the
|
|
22
|
+
* dialog undismissable: `ModelDropdownPanel` renders it into `headerActions`.
|
|
23
|
+
*
|
|
16
24
|
* PORTALLED to `<body>`, not rendered in place. The composer card can become a
|
|
17
25
|
* containing block for `position: fixed` through `backdrop-filter` (its own
|
|
18
26
|
* `glass` style), a `transform`, or `contain: layout` — and then `inset-0`
|
|
@@ -21,26 +29,26 @@
|
|
|
21
29
|
* from 1440x900 at (0,0) to 710x164 at the card's box.
|
|
22
30
|
*
|
|
23
31
|
* `100dvh`, not `100vh`: `vh` is the LARGEST viewport on a phone, so an overlay
|
|
24
|
-
* sized from it runs under the browser chrome. The
|
|
25
|
-
* `
|
|
26
|
-
*
|
|
32
|
+
* sized from it runs under the browser chrome. The frame carries the notch and
|
|
33
|
+
* the shell's insets (`phoneFrameStyle`), so the first row's close control is
|
|
34
|
+
* not under a status bar or a traffic light, and the bottom keeps
|
|
35
|
+
* `env(safe-area-inset-bottom)` so the last model row is not under the home
|
|
36
|
+
* indicator.
|
|
27
37
|
*/
|
|
28
38
|
|
|
29
39
|
import { useRef } from 'preact/hooks';
|
|
30
40
|
import type { ComponentChildren } from 'preact';
|
|
31
41
|
import { createPortal } from 'preact/compat';
|
|
32
|
-
import { X } from 'lucide-preact';
|
|
33
42
|
import { useKeyboardInset } from '@/client/hooks/ui/keyboard-inset';
|
|
34
|
-
import {
|
|
43
|
+
import { phoneFrameStyle } from '@/client/lib/ui/phone-row';
|
|
35
44
|
|
|
36
45
|
interface ModelFullscreenProps {
|
|
37
46
|
open: boolean;
|
|
38
|
-
onClose: () => void;
|
|
39
47
|
/** The picker's own card content — one tree, shared with the popover. */
|
|
40
48
|
children: ComponentChildren;
|
|
41
49
|
}
|
|
42
50
|
|
|
43
|
-
export function ModelFullscreen({ open,
|
|
51
|
+
export function ModelFullscreen({ open, children }: ModelFullscreenProps) {
|
|
44
52
|
// The search field focuses the soft keyboard, which covers the bottom rows.
|
|
45
53
|
// The inset is measured from THIS frame's own bottom edge, so it lifts by
|
|
46
54
|
// exactly the overlap and lifts by nothing when the browser already shrank the
|
|
@@ -57,25 +65,8 @@ export function ModelFullscreen({ open, onClose, children }: ModelFullscreenProp
|
|
|
57
65
|
aria-modal="true"
|
|
58
66
|
aria-label="Select model"
|
|
59
67
|
className="fixed inset-0 z-[70] flex h-dvh flex-col bg-paper text-xs"
|
|
68
|
+
style={phoneFrameStyle()}
|
|
60
69
|
>
|
|
61
|
-
<header
|
|
62
|
-
className="flex flex-shrink-0 items-center justify-between border-b border-ink/10 bg-canvas"
|
|
63
|
-
style={{
|
|
64
|
-
paddingTop: 'env(safe-area-inset-top, 0px)',
|
|
65
|
-
paddingLeft: titlebarPaddingLeft('0.75rem', true),
|
|
66
|
-
paddingRight: titlebarPaddingRight('0.75rem', true),
|
|
67
|
-
}}
|
|
68
|
-
>
|
|
69
|
-
<span className="py-2.5 text-[11px] font-semibold uppercase tracking-wider text-ink/50">Model</span>
|
|
70
|
-
<button
|
|
71
|
-
type="button"
|
|
72
|
-
onClick={onClose}
|
|
73
|
-
aria-label="Close"
|
|
74
|
-
className="-mr-1 rounded-lg p-1.5 text-ink/60 transition-colors hover:bg-ink/5 hover:text-ink"
|
|
75
|
-
>
|
|
76
|
-
<X size={16} />
|
|
77
|
-
</button>
|
|
78
|
-
</header>
|
|
79
70
|
<div
|
|
80
71
|
className="flex min-h-0 flex-1 flex-col"
|
|
81
72
|
style={{
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
* reason a tab is unavailable.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
+
import type { ComponentChildren } from 'preact';
|
|
31
32
|
import { HarnessGlyph, HARNESS_GLYPH_SIZE } from '@/client/components/common/harness-glyph';
|
|
32
33
|
import { harnessBadgeLabel } from '@/shared/lib/harness/catalog';
|
|
33
34
|
import type { HarnessSummary } from '@/shared/types/harness';
|
|
@@ -42,6 +43,12 @@ interface HarnessTabsProps {
|
|
|
42
43
|
onSelect: (harness: string) => void;
|
|
43
44
|
/** Opens the settings page for a harness that needs install or login. */
|
|
44
45
|
onFix?: (harness: string) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Trailing controls on the strip's own row — the full-screen picker's close
|
|
48
|
+
* button. The strip is the frame's FIRST row, so a control here is what keeps
|
|
49
|
+
* the picker to one chrome band instead of a header plus a strip.
|
|
50
|
+
*/
|
|
51
|
+
actions?: ComponentChildren;
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export interface HarnessBlock {
|
|
@@ -174,7 +181,7 @@ function tabTone(isActive: boolean, blocked: boolean, editable: boolean): string
|
|
|
174
181
|
return `text-ink/65 hover:bg-ink/5 hover:text-ink ${cursor}`;
|
|
175
182
|
}
|
|
176
183
|
|
|
177
|
-
export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: HarnessTabsProps) {
|
|
184
|
+
export function HarnessTabs({ harnesses, active, editable, onSelect, onFix, actions }: HarnessTabsProps) {
|
|
178
185
|
if (harnesses.length === 0) return null;
|
|
179
186
|
return (
|
|
180
187
|
<div
|
|
@@ -183,15 +190,18 @@ export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: Ha
|
|
|
183
190
|
// collapsed to 5px — the tabs were in the DOM and painted 1px tall
|
|
184
191
|
// (measured: `elementFromPoint` on the first tab answered the row BELOW
|
|
185
192
|
// it). The list scrolls inside itself; the strip must not.
|
|
186
|
-
className="flex-none flex items-stretch
|
|
187
|
-
role="tablist"
|
|
188
|
-
aria-label="Harness"
|
|
189
|
-
// The one surface where a harness HUE is not decoration: with no label in
|
|
190
|
-
// the tab, colour is the only thing separating `omp` (RPC) from `omp`
|
|
191
|
-
// (ACP), so `icon-paint-css.ts` keeps these two marks painted even in
|
|
192
|
-
// monochrome mode. The attribute is that rule's scope.
|
|
193
|
-
data-harness-tabs=""
|
|
193
|
+
className="flex-none flex items-stretch border-b border-ink/10 bg-canvas/40"
|
|
194
194
|
>
|
|
195
|
+
<div
|
|
196
|
+
className="flex min-w-0 flex-1 items-stretch gap-0.5 overflow-x-auto px-1 pt-1 scrollbar-overlay-container"
|
|
197
|
+
role="tablist"
|
|
198
|
+
aria-label="Harness"
|
|
199
|
+
// The one surface where a harness HUE is not decoration: with no label in
|
|
200
|
+
// the tab, colour is the only thing separating `omp` (RPC) from `omp`
|
|
201
|
+
// (ACP), so `icon-paint-css.ts` keeps these two marks painted even in
|
|
202
|
+
// monochrome mode. The attribute is that rule's scope.
|
|
203
|
+
data-harness-tabs=""
|
|
204
|
+
>
|
|
195
205
|
{harnesses.map((summary) => {
|
|
196
206
|
const state: HarnessTabState = {
|
|
197
207
|
block: harnessBlock(summary),
|
|
@@ -285,6 +295,17 @@ export function HarnessTabs({ harnesses, active, editable, onSelect, onFix }: Ha
|
|
|
285
295
|
</button>
|
|
286
296
|
);
|
|
287
297
|
})}
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
{/* The frame's trailing controls, on the strip's own row. `flex-none` so a
|
|
301
|
+
strip full of tabs never scrolls the close button away, and
|
|
302
|
+
`titlebar-no-drag` because the row above it is the window's handle in a
|
|
303
|
+
native shell. */}
|
|
304
|
+
{actions ? (
|
|
305
|
+
<div className="flex flex-none items-center gap-0.5 px-1.5 pb-1 titlebar-no-drag">
|
|
306
|
+
{actions}
|
|
307
|
+
</div>
|
|
308
|
+
) : null}
|
|
288
309
|
</div>
|
|
289
310
|
);
|
|
290
311
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
import { Plus, Search, X } from 'lucide-preact';
|
|
2
|
+
import type { ComponentChildren } from 'preact';
|
|
2
3
|
|
|
3
4
|
interface ModelDropdownHeaderProps {
|
|
4
5
|
search: string;
|
|
5
6
|
onSearchChange: (value: string) => void;
|
|
6
7
|
onAddProvider?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* Trailing controls on the search row. The full-screen picker puts its close
|
|
10
|
+
* button here when it offers no harness tabs, so the frame never needs a
|
|
11
|
+
* header row of its own.
|
|
12
|
+
*/
|
|
13
|
+
actions?: ComponentChildren;
|
|
7
14
|
}
|
|
8
15
|
|
|
9
16
|
export function ModelDropdownHeader({
|
|
10
17
|
search,
|
|
11
18
|
onSearchChange,
|
|
12
19
|
onAddProvider,
|
|
20
|
+
actions,
|
|
13
21
|
}: ModelDropdownHeaderProps) {
|
|
14
22
|
return (
|
|
15
23
|
<div className="flex flex-col border-b border-ink/10 bg-canvas/40">
|
|
@@ -23,27 +31,31 @@ export function ModelDropdownHeader({
|
|
|
23
31
|
<span>Add new provider</span>
|
|
24
32
|
</button>
|
|
25
33
|
|
|
26
|
-
{/* Search Input
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
{/* Search Input. The trailing slot holds the picker's close control when
|
|
35
|
+
this row is the frame's first band. */}
|
|
36
|
+
<div className="flex items-center gap-1 p-2 bg-canvas/60">
|
|
37
|
+
<div className="flex min-w-0 flex-1 items-center">
|
|
38
|
+
<Search size={13} className="text-ink/40 mr-2 flex-shrink-0" />
|
|
39
|
+
<input
|
|
40
|
+
type="text"
|
|
41
|
+
value={search}
|
|
42
|
+
onChange={(e) => onSearchChange(e.currentTarget.value)}
|
|
43
|
+
placeholder="Search models"
|
|
44
|
+
className="bg-transparent border-none focus:outline-none w-full text-ink placeholder-ink/40 text-xs font-sans"
|
|
45
|
+
autoFocus
|
|
46
|
+
/>
|
|
47
|
+
{search && (
|
|
48
|
+
<button
|
|
49
|
+
type="button"
|
|
50
|
+
onClick={() => onSearchChange('')}
|
|
51
|
+
className="p-0.5 text-ink/40 hover:text-ink transition-colors cursor-pointer"
|
|
52
|
+
title="Clear search"
|
|
53
|
+
>
|
|
54
|
+
<X size={12} />
|
|
55
|
+
</button>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
{actions ? <div className="flex flex-none items-center titlebar-no-drag">{actions}</div> : null}
|
|
47
59
|
</div>
|
|
48
60
|
</div>
|
|
49
61
|
);
|
|
@@ -10,6 +10,7 @@ import type { PickerRow } from '@/client/components/workspace/model-dropdown/gro
|
|
|
10
10
|
import { HarnessTabs } from '@/client/components/workspace/model-dropdown/HarnessTabs';
|
|
11
11
|
import { usePopoverSize } from '@/client/components/workspace/model-dropdown/use-popover-size';
|
|
12
12
|
import { ModelFullscreen } from '@/client/components/workspace/model-dropdown/Fullscreen';
|
|
13
|
+
import { PickerCloseButton } from '@/client/components/workspace/model-dropdown/CloseButton';
|
|
13
14
|
import type { HarnessSummary } from '@/shared/types/harness';
|
|
14
15
|
|
|
15
16
|
interface ModelDropdownPanelProps {
|
|
@@ -53,8 +54,15 @@ interface ModelDropdownPanelProps {
|
|
|
53
54
|
unprobedHarness?: boolean;
|
|
54
55
|
/** Why the active tab cannot run (auth, missing binary), in the agent's words. */
|
|
55
56
|
harnessBlocked?: string;
|
|
56
|
-
/**
|
|
57
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Dismiss the picker.
|
|
59
|
+
*
|
|
60
|
+
* REQUIRED, not optional: the full-screen placement draws this as its close
|
|
61
|
+
* control, and an optional handler let a caller omit it and get an `X` that
|
|
62
|
+
* did nothing — a button that promises a dismissal it cannot perform. The
|
|
63
|
+
* popover closes through the click-outside guard and ignores it.
|
|
64
|
+
*/
|
|
65
|
+
onClose: () => void;
|
|
58
66
|
/** Take the whole screen instead of hanging beside the trigger. Decided ONCE
|
|
59
67
|
* by the picker (`useFullscreenPicker`) and passed in, so the panel never
|
|
60
68
|
* holds a second answer to the same question. */
|
|
@@ -151,7 +159,12 @@ export function ModelDropdownPanel({
|
|
|
151
159
|
>
|
|
152
160
|
{/* The harness tab strip sits ABOVE the search field: the tab changes
|
|
153
161
|
what the list IS, so the search that follows applies to the list the
|
|
154
|
-
tab selected.
|
|
162
|
+
tab selected.
|
|
163
|
+
|
|
164
|
+
In the full-screen placement the strip is the FRAME's first row, so
|
|
165
|
+
it carries the close control — the picker draws no header of its own.
|
|
166
|
+
A picker with no tabs (the New Chat preview) has no strip, and its
|
|
167
|
+
close control rides the search row instead. */}
|
|
155
168
|
{harnesses.length > 0 && (
|
|
156
169
|
<HarnessTabs
|
|
157
170
|
harnesses={harnesses}
|
|
@@ -159,12 +172,14 @@ export function ModelDropdownPanel({
|
|
|
159
172
|
editable={harnessEditable}
|
|
160
173
|
onSelect={onSelectHarness ?? (() => {})}
|
|
161
174
|
onFix={onFixHarness}
|
|
175
|
+
{...(fullscreen ? { actions: <PickerCloseButton onClose={onClose} /> } : {})}
|
|
162
176
|
/>
|
|
163
177
|
)}
|
|
164
178
|
<ModelDropdownHeader
|
|
165
179
|
search={search}
|
|
166
180
|
onSearchChange={onSearchChange}
|
|
167
181
|
onAddProvider={onAddProvider}
|
|
182
|
+
{...(fullscreen && harnesses.length === 0 ? { actions: <PickerCloseButton onClose={onClose} /> } : {})}
|
|
168
183
|
/>
|
|
169
184
|
|
|
170
185
|
{/* Scrollable Model Lists. Deliberately no top padding: Chrome's
|
|
@@ -291,7 +306,7 @@ export function ModelDropdownPanel({
|
|
|
291
306
|
// `Fullscreen.tsx` states why each placement wins where it does, and why the
|
|
292
307
|
// overlay must portal out of the composer's containing block.
|
|
293
308
|
if (fullscreen) {
|
|
294
|
-
return <ModelFullscreen open
|
|
309
|
+
return <ModelFullscreen open>{card}</ModelFullscreen>;
|
|
295
310
|
}
|
|
296
311
|
|
|
297
312
|
return (
|