@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
|
@@ -21,6 +21,12 @@ export interface AskOption {
|
|
|
21
21
|
* must draw the default rather than an empty set.
|
|
22
22
|
*/
|
|
23
23
|
checked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The `<form>` marks the option `disabled`. omp refuses a submission that
|
|
26
|
+
* carries it ("carries disabled option"), so the card must not offer the row
|
|
27
|
+
* and the payload builder must drop it.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export interface AskQuestion {
|
|
@@ -39,6 +45,12 @@ export interface AskQuestion {
|
|
|
39
45
|
* where every question was a choice.
|
|
40
46
|
*/
|
|
41
47
|
kind?: 'choice' | 'text';
|
|
48
|
+
/**
|
|
49
|
+
* The control carries the `required` attribute, so omp refuses a `form`
|
|
50
|
+
* submission that leaves it empty. Only the form-frame path reads it; the
|
|
51
|
+
* per-field walk enforces the same rule with its own dialog loop.
|
|
52
|
+
*/
|
|
53
|
+
required?: boolean;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
56
|
export interface AskAnswer {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
import type { ToolCallData } from '@/shared/types';
|
|
23
23
|
import { isRecord } from '@/shared/lib/util/guards';
|
|
24
|
+
import { isSoleInvocation } from '@/shared/lib/chat/tool/tool-commands';
|
|
24
25
|
import { parseProcUrl, procRequestOp } from '@/shared/lib/omp/session/proc';
|
|
25
26
|
import { DEVICE_VERBS, PHASE_VERBS, TOOL_ALIASES, TOOL_VERBS, asString, pick, subjectFor, truncate } from '@/shared/lib/chat/timeline/tool-phrases';
|
|
26
27
|
|
|
@@ -49,7 +50,7 @@ function argsOf(tool: ToolActivity): Record<string, unknown> {
|
|
|
49
50
|
return args;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
/**
|
|
53
|
+
/** The tool a bash TOOL COMMAND (omp 19.1.0) ran as the whole call, if any. */
|
|
53
54
|
function xdDeviceOf(args: Record<string, unknown>, tool: ToolActivity): string | undefined {
|
|
54
55
|
const candidate = pick(args, ['path', 'target']) ?? asString(tool.target) ?? asString(tool.command);
|
|
55
56
|
if (!candidate || !candidate.startsWith('xd://')) return undefined;
|
|
@@ -57,6 +58,21 @@ function xdDeviceOf(args: Record<string, unknown>, tool: ToolActivity): string |
|
|
|
57
58
|
return device || undefined;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
/**
|
|
62
|
+
* The tool a bash call IS, when the whole line is one tool command
|
|
63
|
+
* (`resolve "…"`, `lsp --help`). omp 19.1.0 replaced its `xd://` devices with
|
|
64
|
+
* these, so the activity phrase must name the wrapped tool — "Running bash"
|
|
65
|
+
* over a staged-proposal decision says nothing.
|
|
66
|
+
*/
|
|
67
|
+
function toolCommandOf(tool: ToolActivity): string | undefined {
|
|
68
|
+
const dispatches = (tool as { details?: Record<string, unknown> }).details?.toolCommands;
|
|
69
|
+
if (!Array.isArray(dispatches) || dispatches.length !== 1) return undefined;
|
|
70
|
+
const dispatch = dispatches[0] as Record<string, unknown>;
|
|
71
|
+
if (dispatch?.mode !== 'execute' || typeof dispatch.tool !== 'string') return undefined;
|
|
72
|
+
const command = asString(tool.command) ?? pick(argsOf(tool), ['command']);
|
|
73
|
+
return isSoleInvocation(command, dispatch.tool) ? dispatch.tool : undefined;
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
/** Inner device arguments: a `write xd://…` payload is JSON in `content`.
|
|
61
77
|
* The transport keys are always dropped so the phrase never echoes the
|
|
62
78
|
* device URL; prose payloads (resolve/reject/report_issue) surface their
|
|
@@ -103,6 +119,17 @@ export function describeToolActivity(tool: ToolActivity): string {
|
|
|
103
119
|
return truncate(proc.id ? `${verb} ${proc.id}` : verb);
|
|
104
120
|
}
|
|
105
121
|
|
|
122
|
+
// A sole tool command names its own tool: `resolve "…"` is a proposal
|
|
123
|
+
// decision, not a shell run.
|
|
124
|
+
const commanded = toolCommandOf(tool);
|
|
125
|
+
if (commanded) {
|
|
126
|
+
const verb = DEVICE_VERBS[commanded] ?? TOOL_VERBS[commanded] ?? `Running ${commanded}`;
|
|
127
|
+
const subject = subjectFor(commanded, args);
|
|
128
|
+
if (subject) return truncate(`${verb} ${subject}`);
|
|
129
|
+
if (intent) return truncate(intent);
|
|
130
|
+
return truncate(verb);
|
|
131
|
+
}
|
|
132
|
+
|
|
106
133
|
const device = xdDeviceOf(args, tool);
|
|
107
134
|
if (device) {
|
|
108
135
|
const mcpTool = device.startsWith('mcp__') ? device.slice(5) : undefined;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* omp 19.1.0 runs rarely-used tools as bash TOOL COMMANDS and records each
|
|
8
|
+
* invocation on the result's `details.toolCommands[]`. A card must draw the
|
|
9
|
+
* wrapped tool's own panel when the call IS that invocation — a terminal
|
|
10
|
+
* console over a staged proposal's decision loses the decision — and must not
|
|
11
|
+
* when the line did more than one thing.
|
|
12
|
+
*
|
|
13
|
+
* `isSoleInvocation` mirrors omp's own rule, so the cases below are the ones
|
|
14
|
+
* that change the answer: a pipe, a redirect, a substitution, a compound
|
|
15
|
+
* separator, a background job, or a quoted `$`.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { describe, expect, test } from 'bun:test';
|
|
19
|
+
|
|
20
|
+
import {
|
|
21
|
+
isSoleInvocation,
|
|
22
|
+
soleInnerDetails,
|
|
23
|
+
soleToolCommand,
|
|
24
|
+
toolCommandDispatches,
|
|
25
|
+
} from '@/shared/lib/chat/tool/tool-commands';
|
|
26
|
+
import type { ToolCallData } from '@/shared/types/chat';
|
|
27
|
+
|
|
28
|
+
function bashCall(command: string, toolCommands: unknown[]): ToolCallData {
|
|
29
|
+
return {
|
|
30
|
+
id: 'call-1',
|
|
31
|
+
type: 'bash',
|
|
32
|
+
title: 'bash',
|
|
33
|
+
name: 'bash',
|
|
34
|
+
input: { command },
|
|
35
|
+
details: { toolCommands },
|
|
36
|
+
} as ToolCallData;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const EXECUTE = { tool: 'resolve', mode: 'execute' as const, exitCode: 0, args: { reason: 'looks right' } };
|
|
40
|
+
|
|
41
|
+
describe('isSoleInvocation', () => {
|
|
42
|
+
test('accepts the bare command and its arguments', () => {
|
|
43
|
+
expect(isSoleInvocation('resolve "looks right"', 'resolve')).toBe(true);
|
|
44
|
+
expect(isSoleInvocation("propose migrate-importer", 'propose')).toBe(true);
|
|
45
|
+
expect(isSoleInvocation('lsp --help', 'lsp')).toBe(true);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('rejects a line that runs anything else', () => {
|
|
49
|
+
expect(isSoleInvocation('resolve "x" | tail -1', 'resolve')).toBe(false);
|
|
50
|
+
expect(isSoleInvocation('resolve "x" && git status', 'resolve')).toBe(false);
|
|
51
|
+
expect(isSoleInvocation('resolve "x" > out.txt', 'resolve')).toBe(false);
|
|
52
|
+
expect(isSoleInvocation('echo hi; resolve "x"', 'resolve')).toBe(false);
|
|
53
|
+
expect(isSoleInvocation('resolve "x" &', 'resolve')).toBe(false);
|
|
54
|
+
expect(isSoleInvocation('resolve "$(cat reason)"', 'resolve')).toBe(false);
|
|
55
|
+
expect(isSoleInvocation('resolved "x"', 'resolve')).toBe(false);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test('a quoted separator or dollar is literal text, not a second command', () => {
|
|
59
|
+
expect(isSoleInvocation('resolve "one; two"', 'resolve')).toBe(true);
|
|
60
|
+
expect(isSoleInvocation("resolve 'a | b'", 'resolve')).toBe(true);
|
|
61
|
+
expect(isSoleInvocation('resolve "costs \\$5"', 'resolve')).toBe(true);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
describe('toolCommandDispatches', () => {
|
|
66
|
+
test('reads only well-formed records', () => {
|
|
67
|
+
const tool = bashCall('resolve "x"', [EXECUTE, { tool: 'lsp' }, { tool: 'read', mode: 'help', exitCode: 0 }]);
|
|
68
|
+
expect(toolCommandDispatches(tool).map((dispatch) => dispatch.tool)).toEqual(['resolve', 'read']);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test('a result with no records reports none', () => {
|
|
72
|
+
expect(toolCommandDispatches({ ...bashCall('ls', []), details: {} } as ToolCallData)).toEqual([]);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
describe('soleToolCommand', () => {
|
|
77
|
+
test('a single execute dispatch whose line is that command is the call', () => {
|
|
78
|
+
const tool = bashCall('resolve "looks right"', [EXECUTE]);
|
|
79
|
+
expect(soleToolCommand(tool)).toEqual({ dispatch: EXECUTE, args: { reason: 'looks right' } });
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('two dispatches mean a script, not one tool call', () => {
|
|
83
|
+
const tool = bashCall('resolve "x"; lsp diagnostics', [EXECUTE, { tool: 'lsp', mode: 'execute', exitCode: 0 }]);
|
|
84
|
+
expect(soleToolCommand(tool)).toBeUndefined();
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
test('a --help run is usage, not a result', () => {
|
|
88
|
+
const tool = bashCall('lsp --help', [{ tool: 'lsp', mode: 'help', exitCode: 0 }]);
|
|
89
|
+
expect(soleToolCommand(tool)).toBeUndefined();
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
test('a command line that also pipes is not the tool call', () => {
|
|
93
|
+
const tool = bashCall('resolve "x" | head -2', [EXECUTE]);
|
|
94
|
+
expect(soleToolCommand(tool)).toBeUndefined();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test('inner details of the wrapped tool are surfaced, and absent otherwise', () => {
|
|
98
|
+
const withInner = bashCall('resolve "x"', [{ ...EXECUTE, inner: { action: 'apply', reason: 'x' } }]);
|
|
99
|
+
expect(soleInnerDetails(withInner)).toEqual({ action: 'apply', reason: 'x' });
|
|
100
|
+
expect(soleInnerDetails(bashCall('resolve "x"', [EXECUTE]))).toBeUndefined();
|
|
101
|
+
});
|
|
102
|
+
});
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A tool call that ran as a bash TOOL COMMAND (omp 19.1.0).
|
|
8
|
+
*
|
|
9
|
+
* omp replaced its `xd://` devices with tool commands: rarely-used tools are
|
|
10
|
+
* unmounted from the request and installed as bare commands of the embedded
|
|
11
|
+
* shell, so the model runs `resolve "reason"` or `lsp --help` through `bash`
|
|
12
|
+
* instead of writing to a virtual URL. Each invocation is recorded on the
|
|
13
|
+
* result's `details.toolCommands[]` — `{tool, mode, exitCode, args?, inner?}` —
|
|
14
|
+
* and the wrapped tool's own `details` ride `inner`.
|
|
15
|
+
*
|
|
16
|
+
* Two things a card needs from that:
|
|
17
|
+
*
|
|
18
|
+
* - `sole`: the bash call IS that tool's call, with no other command on the
|
|
19
|
+
* line. Then the card must draw the tool's own panel (`Resolve`, `Lsp`)
|
|
20
|
+
* instead of a terminal console, exactly as omp's own transcript does.
|
|
21
|
+
* - `dispatch`: the record itself, for a call that ran alongside other
|
|
22
|
+
* commands (a real shell script that happened to invoke one).
|
|
23
|
+
*
|
|
24
|
+
* The `sole` rule mirrors omp's `isSoleInvocation`: the line starts with the
|
|
25
|
+
* tool word, and nothing that would change what ran (a pipe, a redirect, a
|
|
26
|
+
* substitution, a background job, a compound separator) appears outside quotes.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
import type { ToolCallData } from '@/shared/types/chat';
|
|
30
|
+
|
|
31
|
+
/** One record of `details.toolCommands`. */
|
|
32
|
+
export interface ToolCommandDispatch {
|
|
33
|
+
tool: string;
|
|
34
|
+
mode: 'help' | 'execute';
|
|
35
|
+
exitCode: number;
|
|
36
|
+
args?: Record<string, unknown>;
|
|
37
|
+
inner?: unknown;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Characters that make a shell line more than one bare command. */
|
|
41
|
+
const COMPOUND: Record<string, true> = {
|
|
42
|
+
';': true, '&': true, '|': true, '<': true, '>': true,
|
|
43
|
+
'(': true, ')': true, '\n': true, '\r': true,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** True when `command` is exactly one invocation of `tool`. */
|
|
47
|
+
export function isSoleInvocation(command: string | undefined, tool: string): boolean {
|
|
48
|
+
const line = command?.trim();
|
|
49
|
+
if (!line) return false;
|
|
50
|
+
if (line !== tool && !line.startsWith(`${tool} `) && !line.startsWith(`${tool}\t`)) return false;
|
|
51
|
+
let quote: '"' | "'" | undefined;
|
|
52
|
+
for (let index = 0; index < line.length; index += 1) {
|
|
53
|
+
const char = line[index] as string;
|
|
54
|
+
if (quote === "'") {
|
|
55
|
+
if (char === "'") quote = undefined;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if (char === '\\') {
|
|
59
|
+
index += 1;
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (quote === '"') {
|
|
63
|
+
if (char === '"') quote = undefined;
|
|
64
|
+
// A substitution inside double quotes still runs something else.
|
|
65
|
+
else if (char === '$' || char === '`') return false;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (char === '"' || char === "'") quote = char;
|
|
69
|
+
else if (COMPOUND[char] === true) return false;
|
|
70
|
+
}
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function isDispatch(value: unknown): value is ToolCommandDispatch {
|
|
75
|
+
if (!value || typeof value !== 'object') return false;
|
|
76
|
+
const record = value as Record<string, unknown>;
|
|
77
|
+
return (
|
|
78
|
+
typeof record.tool === 'string' &&
|
|
79
|
+
(record.mode === 'help' || record.mode === 'execute') &&
|
|
80
|
+
typeof record.exitCode === 'number'
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** Every tool-command dispatch recorded on a result, in invocation order. */
|
|
85
|
+
export function toolCommandDispatches(tool: ToolCallData): ToolCommandDispatch[] {
|
|
86
|
+
const raw = (tool.details as Record<string, unknown> | undefined)?.toolCommands;
|
|
87
|
+
if (!Array.isArray(raw)) return [];
|
|
88
|
+
return raw.filter(isDispatch);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** The tool call's own command, from its arguments. */
|
|
92
|
+
function commandOf(tool: ToolCallData): string | undefined {
|
|
93
|
+
const input = tool.input;
|
|
94
|
+
if (typeof input === 'string') return input;
|
|
95
|
+
if (input && typeof input === 'object' && typeof (input as Record<string, unknown>).command === 'string') {
|
|
96
|
+
return (input as Record<string, unknown>).command as string;
|
|
97
|
+
}
|
|
98
|
+
return typeof tool.command === 'string' ? tool.command : undefined;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The tool command this call IS, or undefined.
|
|
103
|
+
*
|
|
104
|
+
* `sole` is the case a card must render as the wrapped tool: one execute
|
|
105
|
+
* dispatch whose command line is that invocation and nothing else. A `--help`
|
|
106
|
+
* dispatch is not one — it printed usage, not a result.
|
|
107
|
+
*/
|
|
108
|
+
export function soleToolCommand(
|
|
109
|
+
tool: ToolCallData,
|
|
110
|
+
): { dispatch: ToolCommandDispatch; args: Record<string, unknown> } | undefined {
|
|
111
|
+
const dispatches = toolCommandDispatches(tool);
|
|
112
|
+
if (dispatches.length !== 1) return undefined;
|
|
113
|
+
const dispatch = dispatches[0];
|
|
114
|
+
if (dispatch.mode !== 'execute') return undefined;
|
|
115
|
+
if (!isSoleInvocation(commandOf(tool), dispatch.tool)) return undefined;
|
|
116
|
+
return { dispatch, args: dispatch.args ?? {} };
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** The wrapped tool's own result details of a sole dispatch (`dispatch.inner`). */
|
|
120
|
+
export function soleInnerDetails(tool: ToolCallData): Record<string, unknown> | undefined {
|
|
121
|
+
const sole = soleToolCommand(tool);
|
|
122
|
+
const inner = sole?.dispatch.inner;
|
|
123
|
+
return inner && typeof inner === 'object' ? (inner as Record<string, unknown>) : undefined;
|
|
124
|
+
}
|
|
@@ -184,7 +184,9 @@ describe('OMP_SCHEMA release rows', () => {
|
|
|
184
184
|
entry: want,
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
// 19.1.0 adds `binja` between `ida` and `none`; Binary Ninja is never
|
|
188
|
+
// chosen by `auto`, so the option carries that in its own description.
|
|
189
|
+
expect(OMP_SCHEMA.entries['disassembler.backend']?.values).toEqual(['auto', 'ghidra', 'ida', 'binja', 'none']);
|
|
188
190
|
expect(OMP_SCHEMA.entries['ida.enabled']).toBeUndefined();
|
|
189
191
|
// `worktree.onExit` gained `force`, which removes every worktree without
|
|
190
192
|
// asking; a stale ladder would hide the only uncoverable value.
|
|
@@ -219,4 +221,35 @@ describe('OMP_SCHEMA release rows', () => {
|
|
|
219
221
|
expect({ key, credential: OMP_SCHEMA.entries[key]?.credential }).toEqual({ key, credential: true });
|
|
220
222
|
}
|
|
221
223
|
});
|
|
224
|
+
|
|
225
|
+
test("19.1.0's renamed and added rows are offered under their new ids", () => {
|
|
226
|
+
// The `xd://` DEVICES became tool commands, and the four switches that
|
|
227
|
+
// shaped them were renamed with them. A panel still writing `tools.xdev`
|
|
228
|
+
// would edit a key omp deletes on read (its own migration strips it), so
|
|
229
|
+
// the new ids are the only reachable ones.
|
|
230
|
+
const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
|
|
231
|
+
'tools.commands': { type: 'boolean', tab: 'tools', group: 'Discovery & MCP', default: true },
|
|
232
|
+
'tools.commandDocs': { type: 'enum', tab: 'tools', group: 'Discovery & MCP', default: 'catalog' },
|
|
233
|
+
'mcp.shared': { type: 'boolean', tab: 'tools', group: 'Discovery & MCP', default: true },
|
|
234
|
+
'mcp.idleStopMinutes': { type: 'number', tab: 'tools', group: 'Discovery & MCP', default: 5 },
|
|
235
|
+
'pty.notify': { type: 'enum', tab: 'interaction', group: 'Notifications', default: 'on' },
|
|
236
|
+
'edit.magic.model': { type: 'string', tab: 'files', group: 'Editing', default: undefined },
|
|
237
|
+
'binja.installDir': { type: 'string', tab: 'tools', group: 'Binary Ninja', default: '' },
|
|
238
|
+
};
|
|
239
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
240
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
241
|
+
expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
|
|
242
|
+
key,
|
|
243
|
+
entry: want,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
// The old ids are gone from omp's registry: a row for one is an editor
|
|
247
|
+
// whose write is refused.
|
|
248
|
+
for (const key of ['tools.xdev', 'tools.xdevDocs', 'tools.xdevInlineDevices', 'tools.xdevNotices', 'tui.completeScrollback']) {
|
|
249
|
+
expect(`${key}: ${String(OMP_SCHEMA.entries[key])}`).toBe(`${key}: undefined`);
|
|
250
|
+
}
|
|
251
|
+
// The new edit mode is a value of `edit.mode`, and a stale ladder would
|
|
252
|
+
// hide it from the panel's own dropdown.
|
|
253
|
+
expect(OMP_SCHEMA.entries['edit.mode']?.values).toContain('magic');
|
|
254
|
+
});
|
|
222
255
|
});
|
|
@@ -35,6 +35,12 @@ export const ANSWERABLE_UI_METHODS: Record<string, true> = {
|
|
|
35
35
|
input: true,
|
|
36
36
|
editor: true,
|
|
37
37
|
ask: true,
|
|
38
|
+
// omp 19.1.0 gave the RPC host a real `formDialog`, so the `ask` tool sends
|
|
39
|
+
// its whole HTML form as ONE `method:"form"` frame and parks on the reply.
|
|
40
|
+
// Without this entry neither half remembers the request: the server forgets
|
|
41
|
+
// what a reattaching client must answer, and the client never queues it, so
|
|
42
|
+
// the agent stays blocked with nothing on screen.
|
|
43
|
+
form: true,
|
|
38
44
|
};
|
|
39
45
|
|
|
40
46
|
/** True for a request method the agent is parked on. */
|
|
@@ -33,9 +33,13 @@ import { formatToolMs } from '@/shared/lib/chat/tool/labels';
|
|
|
33
33
|
*
|
|
34
34
|
* omp 19.0.0 cut the five-rung ladder (5 s / 10 s / 30 s / 60 s / 5 min) to two:
|
|
35
35
|
* a first idle wait gets 5 s, every back-to-back one 4 minutes
|
|
36
|
-
* (`WAIT_LADDER_MS` in `tools/wait.ts`).
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* (`WAIT_LADDER_MS` in `tools/wait.ts`). 19.1.0 skips the floor for JOB waits
|
|
37
|
+
* in a top-level interactive session — an early return there can only end its
|
|
38
|
+
* turn, one request more than blocking for the result — so the first job wait
|
|
39
|
+
* in a Kabmo chat already reports the 4-minute window. A session recorded
|
|
40
|
+
* before the pin still names the old windows, so this list is a reference for
|
|
41
|
+
* the current pin only: the window a result reports is always parsed from
|
|
42
|
+
* omp's sentence, never derived from the rung index.
|
|
39
43
|
*/
|
|
40
44
|
export const WAIT_LADDER_MS = [5_000, 240_000] as const;
|
|
41
45
|
|
|
@@ -23,7 +23,7 @@ import { DEFAULT_THEME_ID } from '@/shared/lib/theme/catalog';
|
|
|
23
23
|
import { DEFAULT_CHAT_WIDTH_MODE, DEFAULT_CUSTOM_CHAT_COLUMN_WIDTH } from '@/shared/lib/chat/timeline/width-mode';
|
|
24
24
|
import { DEFAULT_TOOL_RENDER_MODE } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
25
25
|
import { DEFAULT_SIDEBAR_STYLE } from '@/shared/lib/workspace/sidebar-style';
|
|
26
|
-
import {
|
|
26
|
+
import { DEFAULT_MOBILE_PANEL_NAV, DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
|
|
27
27
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
28
28
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
29
29
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
@@ -59,7 +59,8 @@ export const DEFAULT_SETTINGS = {
|
|
|
59
59
|
sidebarStyle: DEFAULT_SIDEBAR_STYLE,
|
|
60
60
|
leftPanelNav: DEFAULT_PANEL_NAV,
|
|
61
61
|
rightPanelNav: DEFAULT_PANEL_NAV,
|
|
62
|
-
|
|
62
|
+
mobileLeftPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
63
|
+
mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
63
64
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
64
65
|
surfaceStyle: DEFAULT_SURFACE_STYLE,
|
|
65
66
|
borderStyle: DEFAULT_BORDER_STYLE,
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
|
|
23
23
|
import { describe, expect, test } from 'bun:test';
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
DEFAULT_MOBILE_PANEL_NAV,
|
|
26
26
|
DEFAULT_PANEL_NAV,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
MOBILE_PANEL_NAVS,
|
|
28
|
+
MOBILE_PANEL_NAV_KEYS,
|
|
29
29
|
PANEL_NAV_COPY,
|
|
30
30
|
PANEL_NAV_SETTING_KEYS,
|
|
31
31
|
PANEL_NAV_STYLES,
|
|
32
32
|
isPanelNavSide,
|
|
33
33
|
isPanelNavStyle,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
isMobilePanelNav,
|
|
35
|
+
resolveMobilePanelNav,
|
|
36
36
|
resolvePanelNav,
|
|
37
37
|
} from '@/shared/lib/workspace/panel-nav';
|
|
38
38
|
import {
|
|
@@ -166,33 +166,40 @@ describe('withPinnedTab', () => {
|
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
describe('the phone
|
|
169
|
+
describe('the phone drawers are their own axis', () => {
|
|
170
170
|
test('the shipped default is classic, so an upgrade rearranges nothing', () => {
|
|
171
|
-
expect(
|
|
171
|
+
expect(DEFAULT_MOBILE_PANEL_NAV).toBe('classic');
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
test('both styles resolve to themselves', () => {
|
|
175
|
-
for (const style of
|
|
176
|
-
expect(
|
|
175
|
+
for (const style of MOBILE_PANEL_NAVS) {
|
|
176
|
+
expect(resolveMobilePanelNav(style)).toBe(style);
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
test('an unknown value falls back to classic, not to a renderer that is missing', () => {
|
|
181
181
|
for (const value of ['rail', '', 'Classic', null, undefined, 0, {}, []]) {
|
|
182
|
-
expect(
|
|
182
|
+
expect(resolveMobilePanelNav(value)).toBe(DEFAULT_MOBILE_PANEL_NAV);
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
test('the guard agrees with the resolver and refuses the desktop-only value', () => {
|
|
187
|
-
expect(
|
|
188
|
-
expect(
|
|
187
|
+
expect(isMobilePanelNav('classic')).toBe(true);
|
|
188
|
+
expect(isMobilePanelNav('tabs')).toBe(true);
|
|
189
189
|
// `rail` is the desktop's word; a phone has no rail to draw.
|
|
190
|
-
expect(
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
test('
|
|
194
|
-
expect(
|
|
195
|
-
expect(
|
|
196
|
-
|
|
190
|
+
expect(isMobilePanelNav('rail')).toBe(false);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
test('each drawer has its OWN key, so one cannot overwrite the other', () => {
|
|
194
|
+
expect(MOBILE_PANEL_NAV_KEYS.left).toBe('mobileLeftPanelNav');
|
|
195
|
+
expect(MOBILE_PANEL_NAV_KEYS.right).toBe('mobileRightPanelNav');
|
|
196
|
+
// And neither can overwrite a desktop column: the four keys are distinct.
|
|
197
|
+
const all = [
|
|
198
|
+
PANEL_NAV_SETTING_KEYS.left,
|
|
199
|
+
PANEL_NAV_SETTING_KEYS.right,
|
|
200
|
+
MOBILE_PANEL_NAV_KEYS.left,
|
|
201
|
+
MOBILE_PANEL_NAV_KEYS.right,
|
|
202
|
+
];
|
|
203
|
+
expect(new Set(all).size).toBe(4);
|
|
197
204
|
});
|
|
198
205
|
});
|
|
@@ -105,7 +105,7 @@ export const PANEL_NAV_SETTING_KEYS: Record<PanelNavSide, 'leftPanelNav' | 'righ
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* How
|
|
108
|
+
* How a PHONE drawer navigates its panel views (`classic` | `tabs`).
|
|
109
109
|
*
|
|
110
110
|
* A separate axis from the desktop columns because a phone has no rail: there
|
|
111
111
|
* is nowhere to put a 44px strip of marks beside a drawer that already IS the
|
|
@@ -118,31 +118,42 @@ export const PANEL_NAV_SETTING_KEYS: Record<PanelNavSide, 'leftPanelNav' | 'righ
|
|
|
118
118
|
* views the user opened, a home page draws the catalog as cards, and the
|
|
119
119
|
* drawer reopens on what was open rather than on the whole list.
|
|
120
120
|
*
|
|
121
|
+
* ONE type for BOTH drawers, and two stored keys (`MOBILE_PANEL_NAV_KEYS`):
|
|
122
|
+
* the shape of the choice is the same fact, while which drawer it applies to
|
|
123
|
+
* is per side — the desktop columns are split the same way
|
|
124
|
+
* (`PANEL_NAV_SETTING_KEYS`).
|
|
125
|
+
*
|
|
121
126
|
* **`classic` is the default**, like the desktop's `rail`: an upgrade
|
|
122
127
|
* rearranges nothing, and a user who wants the drawer to behave like the
|
|
123
128
|
* desktop column opts in.
|
|
124
129
|
*/
|
|
125
|
-
export type
|
|
130
|
+
export type MobilePanelNav = 'classic' | 'tabs';
|
|
126
131
|
|
|
127
132
|
/** Every mobile style, in the order the settings control lists them. */
|
|
128
|
-
export const
|
|
133
|
+
export const MOBILE_PANEL_NAVS = ['classic', 'tabs'] as const;
|
|
129
134
|
|
|
130
|
-
export const
|
|
135
|
+
export const DEFAULT_MOBILE_PANEL_NAV: MobilePanelNav = 'classic';
|
|
131
136
|
|
|
132
|
-
export function
|
|
137
|
+
export function isMobilePanelNav(value: unknown): value is MobilePanelNav {
|
|
133
138
|
return value === 'classic' || value === 'tabs';
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
/** A stored value this build cannot draw resolves to the default. */
|
|
137
|
-
export function
|
|
138
|
-
return
|
|
142
|
+
export function resolveMobilePanelNav(value: unknown): MobilePanelNav {
|
|
143
|
+
return isMobilePanelNav(value) ? value : DEFAULT_MOBILE_PANEL_NAV;
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
/**
|
|
142
|
-
* The `app_settings` key
|
|
147
|
+
* The `app_settings` key each drawer's choice is stored under.
|
|
143
148
|
*
|
|
144
149
|
* `satisfies keyof SettingsState` at the reader, like every other key module:
|
|
145
150
|
* the key and the field name must be the same string or the setting silently
|
|
146
151
|
* never persists.
|
|
147
152
|
*/
|
|
148
|
-
export const
|
|
153
|
+
export const MOBILE_PANEL_NAV_KEYS: Record<
|
|
154
|
+
PanelNavSide,
|
|
155
|
+
'mobileLeftPanelNav' | 'mobileRightPanelNav'
|
|
156
|
+
> = {
|
|
157
|
+
left: 'mobileLeftPanelNav',
|
|
158
|
+
right: 'mobileRightPanelNav',
|
|
159
|
+
};
|
|
@@ -229,7 +229,7 @@ export interface OmpAgentHandle extends OmpAgentState {
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/** Frame `extension_ui_request` dari omp (ask dialog, approval, OAuth). */
|
|
232
|
-
export type ExtensionUiDialogMethod = 'select' | 'confirm' | 'input' | 'editor' | 'ask';
|
|
232
|
+
export type ExtensionUiDialogMethod = 'select' | 'confirm' | 'input' | 'editor' | 'ask' | 'form';
|
|
233
233
|
|
|
234
234
|
/** One question inside a grouped `ask` request (omp's `AskQuestion`). */
|
|
235
235
|
export interface ExtensionAskQuestion {
|
|
@@ -247,7 +247,8 @@ export interface ExtensionUiDialogRequest {
|
|
|
247
247
|
type: 'extension_ui_request';
|
|
248
248
|
id: string;
|
|
249
249
|
method: ExtensionUiDialogMethod;
|
|
250
|
-
|
|
250
|
+
/** The dialog's question. Absent on a `form` frame, which carries `html`. */
|
|
251
|
+
title?: string;
|
|
251
252
|
options?: string[];
|
|
252
253
|
/** Ids parallel to `options`, when the producer has them (ACP permission
|
|
253
254
|
* requests). The dialog answers with the id, never the label. */
|
|
@@ -279,6 +280,15 @@ export interface ExtensionUiDialogRequest {
|
|
|
279
280
|
* per question. Absent on every other method.
|
|
280
281
|
*/
|
|
281
282
|
questions?: ExtensionAskQuestion[];
|
|
283
|
+
/**
|
|
284
|
+
* The whole HTML form of one `ui.formDialog` call, present only on
|
|
285
|
+
* `method: "form"`. omp 19.1.0 made this the RPC host's form surface, so the
|
|
286
|
+
* `ask` tool no longer walks its fields one dialog at a time: it sends the
|
|
287
|
+
* same `html` the tool call carries and expects the submitted data back in
|
|
288
|
+
* ONE `{ data }` response. `title` is absent — the form itself is the
|
|
289
|
+
* question, which is why the card matches this frame by its HTML.
|
|
290
|
+
*/
|
|
291
|
+
html?: string;
|
|
282
292
|
}
|
|
283
293
|
|
|
284
294
|
export type IncomingExtensionUiRequest =
|
|
@@ -295,4 +305,11 @@ export type ExtensionDialogResponse =
|
|
|
295
305
|
| { optionId: string }
|
|
296
306
|
| { cancelled: true }
|
|
297
307
|
/** One `ask` answer per question, in question order (grouped ask mode). */
|
|
298
|
-
| { answers: { id: string; selectedOptions: string[]; customInput?: string }[] }
|
|
308
|
+
| { answers: { id: string; selectedOptions: string[]; customInput?: string }[] }
|
|
309
|
+
/**
|
|
310
|
+
* A `form` frame's submitted values, by control `name`. omp validates the
|
|
311
|
+
* object against the form it sent — an unknown key, a value no option
|
|
312
|
+
* carries, or a missing required field is refused with the field named — so
|
|
313
|
+
* this must carry exactly the controls' names and the values they offered.
|
|
314
|
+
*/
|
|
315
|
+
| { data: Record<string, string | number | string[]> };
|
|
@@ -2,7 +2,7 @@ import type { ThemeId } from '@/shared/lib/theme/catalog';
|
|
|
2
2
|
import type { ChatWidthMode } from '@/shared/lib/chat/timeline/width-mode';
|
|
3
3
|
import type { ToolRenderMode } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
4
4
|
import type { SidebarStyle } from '@/shared/lib/workspace/sidebar-style';
|
|
5
|
-
import type {
|
|
5
|
+
import type { MobilePanelNav, PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
6
6
|
import type { ComposerStyle } from '@/shared/lib/chat/composer/style';
|
|
7
7
|
import type { SurfaceStyle } from '@/shared/lib/theme/surface-style';
|
|
8
8
|
import type { BorderStyle } from '@/shared/lib/theme/border-style';
|
|
@@ -194,9 +194,10 @@ export interface SettingsState {
|
|
|
194
194
|
* already has; `tabs` is a browser-style strip of opened views over a home
|
|
195
195
|
* page that draws the whole catalog as a card grid.
|
|
196
196
|
*
|
|
197
|
-
* **Independent of `rightPanelNav`**, and desktop-only:
|
|
198
|
-
*
|
|
199
|
-
* `rail` is the default so an upgrade
|
|
197
|
+
* **Independent of `rightPanelNav`**, and desktop-only: the phone's left
|
|
198
|
+
* drawer has its own axis (`mobileLeftPanelNav`), because a drawer is a screen
|
|
199
|
+
* with no rail to put beside it. `rail` is the default so an upgrade
|
|
200
|
+
* rearranges nothing.
|
|
200
201
|
*/
|
|
201
202
|
leftPanelNav: PanelNavStyle;
|
|
202
203
|
/**
|
|
@@ -208,6 +209,17 @@ export interface SettingsState {
|
|
|
208
209
|
* the other. Desktop-only, like its left counterpart.
|
|
209
210
|
*/
|
|
210
211
|
rightPanelNav: PanelNavStyle;
|
|
212
|
+
/**
|
|
213
|
+
* How the PHONE's LEFT drawer navigates its views (`classic` | `tabs`).
|
|
214
|
+
*
|
|
215
|
+
* Independent of `mobileRightPanelNav`, for the same reason the desktop
|
|
216
|
+
* columns are split: the left drawer is the session list plus placed panels,
|
|
217
|
+
* the right is a working set opened and closed all day, so one column's best
|
|
218
|
+
* shape is not the other's. Under `tabs` the session list is the PINNED first
|
|
219
|
+
* chip, exactly as it is on the desktop — a drawer with no way back to another
|
|
220
|
+
* chat is a dead end.
|
|
221
|
+
*/
|
|
222
|
+
mobileLeftPanelNav: MobilePanelNav;
|
|
211
223
|
/**
|
|
212
224
|
* How the PHONE's right drawer navigates its views (`classic` | `tabs`).
|
|
213
225
|
*
|
|
@@ -215,7 +227,7 @@ export interface SettingsState {
|
|
|
215
227
|
* beside a drawer that already is the screen, so the choice is between "every
|
|
216
228
|
* view is a chip" and "the strip holds what is open, over a home page".
|
|
217
229
|
*/
|
|
218
|
-
mobileRightPanelNav:
|
|
230
|
+
mobileRightPanelNav: MobilePanelNav;
|
|
219
231
|
/**
|
|
220
232
|
* How the chat composer is drawn (`classic` | `calm` | `console` | `stage`).
|
|
221
233
|
* A PRESENTATION choice over one composer: every style renders the same
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,m,Qr}from"./index-q36gq3yz.js";import{yi,Zc}from"./index-b6454rme.js";function g({source:t,name:r,revision:s=0}){let{url:i,loading:n,error:o}=Zc(t,s);if(o)return e(Qr,{name:r,message:o});if(n||!i)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading image…"})]});return e(yi,{src:i,name:r,className:"flex-1 min-h-0"})}export{g as ImageView};
|