@kabmo-labs/kabmo 0.43.1 → 0.44.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 +337 -337
- package/dist/client/static/js/{CsvGrid-g67pk2zy.js → CsvGrid-1t2q46rg.js} +2 -2
- package/dist/client/static/js/{DocxView-pyh6p2kb.js → DocxView-301hxnwk.js} +4 -4
- package/dist/client/static/js/{DrawioView-g48r6y2m.js → DrawioView-47bwea5t.js} +2 -2
- package/dist/client/static/js/ImageView-68zdx5ex.js +1 -0
- package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +2 -0
- package/dist/client/static/js/{Modal-edw446r8.js → Modal-fb9b4gq6.js} +18 -18
- package/dist/client/static/js/{PdfView-6z3cgj37.js → PdfView-m64ksepp.js} +1 -1
- package/dist/client/static/js/SessionsView-zyjwhpzm.js +1 -0
- package/dist/client/static/js/{SheetView-64076z1j.js → SheetView-e88sqprx.js} +13 -13
- package/dist/client/static/js/{SvgPreview-dmpgavgd.js → SvgPreview-hs9a713t.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-nfz5z1vw.js → abnfDiagram-O67JEVCF-fnr5kyqk.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-jra2jyzw.js → architectureDiagram-NJMV4G6O-7v003363.js} +11 -11
- package/dist/client/static/js/{astro-dpfdhc5e.js → astro-t9vjc0mc.js} +1 -1
- package/dist/client/static/js/bash-fjzhxy10.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-3szktxam.js → blockDiagram-BEXU5L5S-k4mwbw3d.js} +5 -5
- package/dist/client/static/js/c-y1y6v00q.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-xe9vbppt.js → c4Diagram-YGBWAQC7-688zq6f4.js} +6 -6
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-egzhj1xn.js → classDiagram-v2-NBCMYWYE-h0s16pxr.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-dfrk1wnr.js → cose-bilkent-JH36ORCC-qb2t8qq5.js} +1 -1
- package/dist/client/static/js/cpp-9f6zkdd4.js +1 -0
- package/dist/client/static/js/css-g85rwzty.js +1 -0
- package/dist/client/static/js/css-y4y3qtsb.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-xefpcmpg.js → cynefinDiagram-VND7K2PF-syhtcr7b.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-vtzjnrt9.js → dagre-6A5THRUB-7wgbx6cm.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-4vvn790v.js → diagram-22UHCM2B-951cmp5h.js} +21 -21
- package/dist/client/static/js/{diagram-3UASUU5V-tmht3bew.js → diagram-3UASUU5V-mvdbqt7b.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-p5wa5ztx.js → diagram-ATOU4E4O-hkvdtgdm.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-8myesjfc.js → diagram-CDSNMT55-bkkz35ca.js} +4 -4
- package/dist/client/static/js/{diagram-MLGK6HIB-9t3x2d5f.js → diagram-MLGK6HIB-z6pcrkc3.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-8ahgnmhy.js → diagram-MPIPVDR6-mkwf8j4m.js} +1 -1
- package/dist/client/static/js/{dockerfile-x8aa0543.js → dockerfile-7gd570bm.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-5semw111.js → ebnfDiagram-ZINNZB2B-trym26ts.js} +1 -1
- package/dist/client/static/js/{elixir-5ewfhvfh.js → elixir-z77c7tfn.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-jmhs58ww.js → elk-276RUBZZ-gkhz67v6.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-31wvbpdr.js → erDiagram-OPXOYQCR-gkyr5cqs.js} +7 -7
- package/dist/client/static/js/{erlang-jqqa3ehb.js → erlang-6vrvh2m6.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-c2dycjrf.js → ganttDiagram-FUAMR5RP-1qpme6ks.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-y4k4pdd8.js → gitGraphDiagram-X574FWY7-wbg3kqak.js} +10 -10
- package/dist/client/static/js/graphql-amk52c95.js +1 -0
- package/dist/client/static/js/html-2y935m7r.js +1 -0
- package/dist/client/static/js/index-07yh7qx0.js +1 -0
- package/dist/client/static/js/{index-6fpd55cq.js → index-1923aj4g.js} +2 -2
- package/dist/client/static/js/{index-s00j9042.js → index-19ffgf9a.js} +1 -1
- package/dist/client/static/js/index-204ae4vs.js +2 -0
- package/dist/client/static/js/{index-cqnpsw2m.js → index-22whvfdw.js} +2 -2
- package/dist/client/static/js/{index-2cbnjc32.js → index-232nsp2c.js} +2 -2
- package/dist/client/static/js/{index-aar68x31.js → index-31hntzse.js} +5 -5
- package/dist/client/static/js/{index-2b46dzw8.js → index-3w845q50.js} +4 -4
- package/dist/client/static/js/{index-gmnmnfm0.js → index-4y4hshcx.js} +2 -2
- package/dist/client/static/js/index-53ysgsd2.js +1 -0
- package/dist/client/static/js/{index-m94f4ngb.js → index-62ng8tkj.js} +3 -3
- package/dist/client/static/js/{index-nt7nhchn.js → index-6ah5sj5y.js} +1 -1
- package/dist/client/static/js/{index-kc5znr75.js → index-6gyk52ff.js} +2 -2
- package/dist/client/static/js/{index-m9s9rg5k.js → index-6s4mrdew.js} +2 -2
- package/dist/client/static/js/index-6t21c6jt.js +2 -0
- package/dist/client/static/js/{index-7dp90ad1.js → index-83pwa9c0.js} +2 -2
- package/dist/client/static/js/{index-pt8440xh.js → index-8trggh1z.js} +15 -15
- package/dist/client/static/js/{index-ys0xpw3q.js → index-92n96mgd.js} +2 -2
- package/dist/client/static/js/index-ad4x44d6.js +9 -0
- package/dist/client/static/js/{index-s78n0dtv.js → index-as1wptfa.js} +2 -2
- package/dist/client/static/js/{index-j17h4z6f.js → index-barbpakv.js} +2 -2
- package/dist/client/static/js/index-bjqz7swa.js +1 -0
- package/dist/client/static/js/{index-yvgbr7ek.js → index-c3v62nvt.js} +2 -2
- package/dist/client/static/js/{index-f77c3ag0.js → index-cq98p2rb.js} +200 -200
- package/dist/client/static/js/{index-3588r3wg.js → index-czedkbmb.js} +2 -2
- package/dist/client/static/js/{index-sesghshh.js → index-dmv2zasz.js} +2 -2
- package/dist/client/static/js/{index-ycks7gyg.js → index-e6rm5xzj.js} +2 -2
- package/dist/client/static/js/{index-48pb18zj.js → index-ehacfgwm.js} +2 -2
- package/dist/client/static/js/{index-q81rxwh7.js → index-fbpc1wx6.js} +41 -41
- package/dist/client/static/js/{index-qhytrsyb.js → index-fj4k07zt.js} +2 -2
- package/dist/client/static/js/{index-jz93j0at.js → index-gtkhz0hj.js} +2 -2
- package/dist/client/static/js/{index-181p91hf.js → index-hfsvwfgw.js} +2 -2
- package/dist/client/static/js/{index-sk9ej289.js → index-jaqjvk22.js} +2 -2
- package/dist/client/static/js/{index-e7yf273s.js → index-jbkkwa2q.js} +2 -2
- package/dist/client/static/js/{index-38v0781h.js → index-ks23y2cd.js} +2 -2
- package/dist/client/static/js/{index-f7djda1g.js → index-kwpaz891.js} +2 -2
- package/dist/client/static/js/{index-0c6vpk89.js → index-n0matkz9.js} +2 -2
- package/dist/client/static/js/index-n6fbd265.js +1 -0
- package/dist/client/static/js/{index-cjhvtzdd.js → index-nqjd3hh5.js} +2 -2
- package/dist/client/static/js/{index-ynaxep06.js → index-nr8s5xm9.js} +2 -2
- package/dist/client/static/js/index-nvevymac.js +2 -0
- package/dist/client/static/js/index-pxm44qfd.js +1 -0
- package/dist/client/static/js/{index-fg965t62.js → index-pysqpc5n.js} +2 -2
- package/dist/client/static/js/index-qf9x7yet.js +1 -0
- package/dist/client/static/js/{index-s7rfbydk.js → index-qkjx6521.js} +4 -4
- package/dist/client/static/js/index-qm92sf9w.js +12 -0
- package/dist/client/static/js/{index-fjnkzk12.js → index-qsw5edtk.js} +5 -5
- package/dist/client/static/js/index-rpzxrr2d.js +1 -0
- package/dist/client/static/js/index-s8bktzpg.js +1 -0
- package/dist/client/static/js/index-sc7r305t.css +1 -0
- package/dist/client/static/js/{index-efra065v.js → index-svmzgtcx.js} +2 -2
- package/dist/client/static/js/{index-vyw4tbn8.js → index-tr2pkfs6.js} +2 -2
- package/dist/client/static/js/{index-bvjct7sp.js → index-tzdm1y3z.js} +2 -2
- package/dist/client/static/js/{index-cgzw43bc.js → index-v5npdwy2.js} +65 -65
- package/dist/client/static/js/{index-dkwhs38j.js → index-v7bcgh77.js} +2 -2
- package/dist/client/static/js/index-wytdbvax.js +3 -0
- package/dist/client/static/js/{index-n9scbxy5.js → index-yfjvx4yf.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-z3pqx7w8.js → infoDiagram-VRGFBTTK-yebngg8c.js} +1 -1
- package/dist/client/static/js/ini-kemnmt16.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-f5v6z8yr.js → ishikawaDiagram-OU5B5YK6-kh4nqj6q.js} +3 -3
- package/dist/client/static/js/java-caqpfm88.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-js1yxatk.js → journeyDiagram-ZHPQQLJL-4khnf8x1.js} +5 -5
- package/dist/client/static/js/json-qn73s8xb.js +1 -0
- package/dist/client/static/js/jsx-bvterpm5.js +1 -0
- package/dist/client/static/js/{julia-0h9krgsd.js → julia-svwxx41e.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-m0a6069c.js → kanban-definition-PNTS6WVX-snmq3wq4.js} +4 -4
- package/dist/client/static/js/lua-1hcfm8ya.js +1 -0
- package/dist/client/static/js/markdown-n6na4ykv.js +1 -0
- package/dist/client/static/js/{mermaid.core-6xvbnm63.js → mermaid.core-yctw30sk.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-a9f9yzc0.js → mindmap-definition-NLK3R4M7-atfv66wq.js} +3 -3
- package/dist/client/static/js/one-dark-pro-c1vnxka7.js +1 -0
- package/dist/client/static/js/one-light-mbxx52p5.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-4v4pf1h1.js → pegDiagram-GJSIUBJH-hpbtxjht.js} +1 -1
- package/dist/client/static/js/{perl-rptyx23q.js → perl-mr0ds2ex.js} +1 -1
- package/dist/client/static/js/{php-sagvq3wz.js → php-5h3wt6tv.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-a54yrmfm.js → pieDiagram-5QR66LMP-9zrtkdr2.js} +2 -2
- package/dist/client/static/js/properties-nxcks67c.js +1 -0
- package/dist/client/static/js/python-58p0gqn0.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-1twhvnp2.js → quadrantDiagram-O4NWA36T-xq970vx1.js} +6 -6
- package/dist/client/static/js/r-eyn8en0g.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-83tqfdcy.js → railroadDiagram-XR7U4H2S-1g9jchbk.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-73e3pzw6.js → requirementDiagram-PLB6GJNP-ntt088y4.js} +4 -4
- package/dist/client/static/js/{ruby-9qyx7knh.js → ruby-nn836rtq.js} +1 -1
- package/dist/client/static/js/{rust-jds4e4r7.js → rust-eygk56y5.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-1bzwj6sb.js → sankeyDiagram-IPEJSGJF-95k8c5v6.js} +5 -5
- package/dist/client/static/js/{sass-07rteya0.js → sass-c2bk03e4.js} +1 -1
- package/dist/client/static/js/{scss-e2dndbfa.js → scss-qycakpjn.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-yh3h988k.js → sequenceDiagram-PO4LG4MO-qfvxrwfa.js} +19 -19
- package/dist/client/static/js/{sizeCapture-INFHLROL-1n121yp6.js → sizeCapture-INFHLROL-0m7dc5nd.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-0tdrzn06.js → stateDiagram-v2-GCMORJYK-femwcn7n.js} +5 -5
- package/dist/client/static/js/{svelte-w365cpwa.js → svelte-bfy1rq5g.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-77n1ttdw.js → swimlanes-2SLR337P-5n1qq48r.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-b6r0k3e8.js → timeline-definition-EJHVYXUP-vdsj18be.js} +7 -7
- package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +1 -0
- package/dist/client/static/js/tsx-fnzxsv25.js +1 -0
- package/dist/client/static/js/typescript-0ppbqrb6.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-efq58m3m.js → usecaseDiagram-POWQR4AR-psjbrprk.js} +43 -43
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-ad4gvd5r.js → vennDiagram-UO4OBE2U-4yn9kac9.js} +7 -7
- package/dist/client/static/js/{vue-d6cesny1.js → vue-0fwtgwj4.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-v89tys2p.js → wardleyDiagram-VNRHLVJA-js0tbpca.js} +3 -3
- package/dist/client/static/js/xml-v1ytr8qz.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-xtgzmknw.js → xychartDiagram-PMCCYNJV-svr38ygh.js} +5 -5
- package/dist/client/static/js/yaml-txrqz62t.js +1 -0
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/proc/identity.ts +4 -3
- package/package.json +2 -2
- package/src/client/App.tsx +1 -1
- package/src/client/borders.css +143 -0
- package/src/client/components/common/context-usage-button/Ring.tsx +34 -9
- package/src/client/components/common/context-usage-button/index.test.tsx +19 -2
- package/src/client/components/common/context-usage-button/index.tsx +4 -4
- package/src/client/components/common/header-controls/index.test.tsx +26 -59
- package/src/client/components/common/header-controls/index.tsx +41 -52
- package/src/client/components/common/header-controls/phone-row.test.tsx +265 -0
- package/src/client/components/common/header-controls/plugin-entry.test.tsx +25 -3
- package/src/client/components/common/header-controls/shell-chrome.test.tsx +2 -2
- package/src/client/components/layout/LeftDock.tsx +7 -0
- package/src/client/components/layout/desktop-layout/DesktopOverlays.tsx +51 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +117 -15
- package/src/client/components/layout/desktop-layout/RightColumn.tsx +257 -0
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +23 -24
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +50 -78
- package/src/client/components/layout/desktop-layout/index.tsx +73 -73
- package/src/client/components/layout/session-sidebar/Footer.test.tsx +20 -0
- package/src/client/components/layout/session-sidebar/Footer.tsx +24 -2
- package/src/client/components/layout/session-sidebar/Header.test.ts +10 -0
- package/src/client/components/layout/session-sidebar/Header.tsx +2 -2
- package/src/client/components/mobile/mobile-main-view/Header.test.tsx +2 -3
- package/src/client/components/mobile/mobile-main-view/Header.tsx +12 -10
- package/src/client/components/settings/Modal.tsx +14 -9
- package/src/client/components/settings/ProjectSelectorDropdown.tsx +18 -6
- package/src/client/components/settings/SettingsSidebarList.tsx +2 -1
- package/src/client/components/settings/Sidebar.tsx +6 -4
- package/src/client/components/settings/apply-side-effects.test.ts +17 -0
- package/src/client/components/settings/apply-side-effects.ts +26 -5
- package/src/client/components/settings/band-height.test.tsx +122 -0
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +144 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +81 -39
- package/src/client/components/settings/categories/ChatSettings.tsx +9 -15
- package/src/client/components/settings/categories/UsageSettings.tsx +2 -1
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.test.tsx +101 -0
- package/src/client/components/settings/categories/appearance-settings/BorderStyleSection.tsx +134 -0
- package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/EditorIndentSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +6 -6
- package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +167 -0
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +42 -0
- package/src/client/components/settings/categories/appearance-settings/TrayIconSection.tsx +2 -2
- package/src/client/components/settings/categories/appearance-settings/groups.test.ts +47 -0
- package/src/client/components/settings/categories/appearance-settings/groups.ts +95 -0
- package/src/client/components/settings/categories/chat-settings/LayoutSection.tsx +31 -14
- package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -1
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +2 -1
- package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +2 -1
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +2 -1
- package/src/client/components/settings/master-detail/GroupDetail.tsx +38 -0
- package/src/client/components/settings/{categories/chat-settings/SidebarList.tsx → master-detail/GroupSidebar.tsx} +35 -12
- package/src/client/components/settings/master-detail/index.tsx +3 -1
- package/src/client/components/settings/pane-header.ts +25 -0
- package/src/client/components/workspace/browser-toolbar/index.test.tsx +39 -1
- package/src/client/components/workspace/browser-toolbar/index.tsx +53 -17
- package/src/client/components/workspace/chat-timeline/ColumnResizeHandle.tsx +107 -0
- package/src/client/components/workspace/chat-timeline/ComposerDockFrame.tsx +9 -3
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +35 -26
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +6 -0
- package/src/client/components/workspace/chat-timeline/column-resize.test.tsx +292 -0
- package/src/client/components/workspace/chat-timeline/composer-dock-frame.test.tsx +5 -3
- package/src/client/components/workspace/context-panel/index.tsx +10 -4
- package/src/client/components/workspace/editor/EditorHideButton.tsx +41 -0
- package/src/client/components/workspace/editor/EmptyEditor.tsx +11 -2
- package/src/client/components/workspace/editor/PluginColumn.tsx +11 -1
- package/src/client/components/workspace/editor/Tabs.tsx +8 -0
- package/src/client/components/workspace/editor/editor-hide-button.test.ts +144 -0
- package/src/client/components/workspace/editor/index.tsx +8 -2
- package/src/client/components/workspace/editor/props.ts +9 -0
- package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +90 -0
- package/src/client/components/workspace/file-explorer/RowLabel.tsx +1 -4
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +52 -46
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.tsx +41 -21
- package/src/client/components/workspace/git-panel/commit-modal/GraphCanvas.tsx +6 -5
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +19 -22
- package/src/client/components/workspace/panel-header/title-policy.test.tsx +62 -0
- package/src/client/components/workspace/panel-header/title-policy.tsx +83 -0
- package/src/client/components/workspace/panel-tabs/Home.density.test.tsx +122 -0
- package/src/client/components/workspace/panel-tabs/Home.test.tsx +137 -0
- package/src/client/components/workspace/panel-tabs/Home.tsx +106 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +221 -0
- package/src/client/components/workspace/panel-tabs/TabStrip.tsx +315 -0
- package/src/client/components/workspace/panel-tabs/index.tsx +97 -0
- package/src/client/components/workspace/panels/builtin.tsx +9 -0
- package/src/client/components/workspace/plan-panel/index.tsx +7 -2
- package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
- package/src/client/components/workspace/repo-picker/index.test.tsx +32 -8
- package/src/client/components/workspace/repo-picker/index.tsx +2 -2
- package/src/client/components/workspace/search-panel/Body.tsx +7 -1
- package/src/client/components/workspace/search-panel/index.tsx +2 -1
- package/src/client/components/workspace/terminal-panel/Header.tsx +10 -3
- package/src/client/components/workspace/terminal-panel/index.tsx +4 -1
- package/src/client/components/workspace/todo-panel/index.tsx +6 -1
- package/src/client/components/workspace/usage-panel/index.tsx +7 -2
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +43 -4
- package/src/client/components/workspace/user-browser-panel/Frame.tsx +101 -45
- package/src/client/components/workspace/user-browser-panel/TabStrip.tsx +107 -0
- package/src/client/components/workspace/user-browser-panel/index.tsx +31 -6
- package/src/client/glass.test.ts +1 -1
- package/src/client/hooks/browser/use-annotate.ts +6 -5
- package/src/client/hooks/browser/use-user-browser.test.tsx +279 -0
- package/src/client/hooks/browser/use-user-browser.ts +190 -44
- package/src/client/hooks/chat/timeline/column-drag.ts +171 -0
- package/src/client/hooks/chat/timeline/width-mode.test.ts +112 -11
- package/src/client/hooks/chat/timeline/width-mode.ts +91 -18
- package/src/client/hooks/ui/border-style.test.ts +172 -0
- package/src/client/hooks/ui/border-style.ts +60 -0
- package/src/client/hooks/ui/navbar-controls.test.ts +27 -1
- package/src/client/hooks/ui/navbar-controls.ts +95 -20
- package/src/client/hooks/ui/style-attributes.test.ts +2 -0
- package/src/client/hooks/workspace/active-project.ts +46 -0
- package/src/client/hooks/workspace/commit-expansion.test.ts +135 -0
- package/src/client/hooks/workspace/commit-expansion.ts +56 -0
- package/src/client/hooks/workspace/panel-nav.test.ts +102 -0
- package/src/client/hooks/workspace/panel-nav.ts +95 -0
- package/src/client/hooks/workspace/panel-tabs.session.test.tsx +235 -0
- package/src/client/hooks/workspace/panel-tabs.ts +194 -0
- package/src/client/hooks/workspace/right-open-request.ts +53 -0
- package/src/client/hooks/workspace/right-side.test.ts +204 -0
- package/src/client/hooks/workspace/right-side.ts +142 -0
- package/src/client/main.tsx +9 -4
- package/src/client/tailwind.css +6 -0
- package/src/server/lib/assets/shell-attributes.server.ts +26 -10
- package/src/server/lib/assets/shell-attributes.test.ts +26 -0
- package/src/server/lib/harness/acp/background-replay.test.ts +16 -1
- package/src/server/lib/harness/acp/background-replay.ts +6 -1
- package/src/server/lib/harness/acp/background-work.ts +44 -31
- package/src/server/lib/harness/acp/session-turns.ts +4 -3
- package/src/server/lib/harness/acp/session-wiring.test.ts +53 -0
- package/src/server/lib/harness/acp/session-wiring.ts +11 -2
- package/src/server/lib/harness/session-lease.server.ts +3 -2
- package/src/server/lib/omp/session/lease-probe.server.test.ts +82 -0
- package/src/server/lib/omp/session/lease-probe.server.ts +180 -0
- package/src/server/lib/omp/session/ownership.server.test.ts +17 -6
- package/src/server/lib/omp/session/ownership.server.ts +7 -5
- package/src/server/plugins/ssr.ts +6 -3
- package/src/shared/lib/browser/user-tabs.test.ts +165 -0
- package/src/shared/lib/browser/user-tabs.ts +172 -0
- package/src/shared/lib/chat/timeline/width-mode.test.ts +34 -2
- package/src/shared/lib/chat/timeline/width-mode.ts +71 -22
- package/src/shared/lib/commands/catalog.ts +2 -2
- package/src/shared/lib/fs/git-status.test.ts +23 -0
- package/src/shared/lib/fs/git-status.ts +15 -0
- package/src/shared/lib/icons/tint-hues.generated.ts +20 -20
- package/src/shared/lib/settings/defaults.ts +7 -1
- package/src/shared/lib/theme/border-style.test.ts +83 -0
- package/src/shared/lib/theme/border-style.ts +122 -0
- package/src/shared/lib/workspace/keymap.ts +2 -1
- package/src/shared/lib/workspace/panel-nav.test.ts +162 -0
- package/src/shared/lib/workspace/panel-nav.ts +105 -0
- package/src/shared/lib/workspace/panel-tabs-close.test.ts +154 -0
- package/src/shared/lib/workspace/panel-tabs.ts +105 -0
- package/src/shared/lib/workspace/session-state/cache.ts +22 -0
- package/src/shared/lib/workspace/session-state/merge.ts +6 -0
- package/src/shared/lib/workspace/session-state/store.ts +23 -0
- package/src/shared/types/settings/state.ts +50 -3
- package/src/test-support/header-controls-harness.ts +22 -0
- package/src/test-support/peer-harness.ts +2 -2
- package/dist/client/static/js/ImageView-rnzf5tve.js +0 -1
- package/dist/client/static/js/LayoutWrapper-rekrgth6.js +0 -2
- package/dist/client/static/js/SessionsView-e84tjbcr.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-7j23x20s.js +0 -1
- package/dist/client/static/js/bash-vv2ysp0a.js +0 -1
- package/dist/client/static/js/c-8jf64j6h.js +0 -1
- package/dist/client/static/js/cpp-vh94zee0.js +0 -1
- package/dist/client/static/js/css-a13jmmnc.js +0 -1
- package/dist/client/static/js/css-p57h1fme.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-me5xnx6a.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-5zbvjj84.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-36ygrbvm.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-tjhkv71w.js +0 -1
- package/dist/client/static/js/graphql-kesh8gk0.js +0 -1
- package/dist/client/static/js/html-sxpfydga.js +0 -1
- package/dist/client/static/js/index-0q2qfcjn.js +0 -1
- package/dist/client/static/js/index-48gh56ka.js +0 -3
- package/dist/client/static/js/index-4rv388z7.js +0 -2
- package/dist/client/static/js/index-52xmdeh2.js +0 -1
- package/dist/client/static/js/index-8kqepehd.js +0 -12
- package/dist/client/static/js/index-cje5gg45.js +0 -1
- package/dist/client/static/js/index-fbcg8y95.js +0 -1
- package/dist/client/static/js/index-g3shdymf.js +0 -1
- package/dist/client/static/js/index-h5n1btqy.js +0 -1
- package/dist/client/static/js/index-m1n4v0z7.js +0 -9
- package/dist/client/static/js/index-rn8w29pv.js +0 -2
- package/dist/client/static/js/index-sg6sz3g8.js +0 -1
- package/dist/client/static/js/index-vcrh95gf.css +0 -1
- package/dist/client/static/js/index-w5rw8f7w.js +0 -1
- package/dist/client/static/js/index-x6v37h3j.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-m6qz24p8.js +0 -1
- package/dist/client/static/js/ini-1x0ad976.js +0 -1
- package/dist/client/static/js/java-3944nq02.js +0 -1
- package/dist/client/static/js/json-g5ggnd94.js +0 -1
- package/dist/client/static/js/jsx-f6p72qpc.js +0 -1
- package/dist/client/static/js/lua-edn2b3wn.js +0 -1
- package/dist/client/static/js/markdown-9dhg1fax.js +0 -1
- package/dist/client/static/js/one-dark-pro-hteqzfb0.js +0 -1
- package/dist/client/static/js/one-light-dapnh0rs.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-ng6wq5xj.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-rf6jhxf6.js +0 -1
- package/dist/client/static/js/properties-fcmj08pv.js +0 -1
- package/dist/client/static/js/python-532d8ezm.js +0 -1
- package/dist/client/static/js/r-ptmdxs2a.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-ygp6hxq4.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-rxgnrb2g.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-xkv52a2p.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-bvcktbqh.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-9c3v7jsq.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-akjqm31r.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-fb58a7z1.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-ej4qhksx.js +0 -1
- package/dist/client/static/js/tsx-zfy727zs.js +0 -1
- package/dist/client/static/js/typescript-683kkkaw.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-mkp0kanv.js +0 -1
- package/dist/client/static/js/xml-6ct32gys.js +0 -1
- package/dist/client/static/js/yaml-1d5m3bfj.js +0 -1
- package/src/server/lib/omp/session/lease-flock.server.ts +0 -117
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A desktop panel column's open-tab state, per session.
|
|
8
|
+
*
|
|
9
|
+
* Per SESSION, not global: the working set is what the user is doing in THIS
|
|
10
|
+
* chat — the files they are reading, the terminal they left running — so
|
|
11
|
+
* switching chats must not carry another chat's tabs into this one. The
|
|
12
|
+
* placement and the navigation STYLE stay global (`omp_left_panels`,
|
|
13
|
+
* `leftPanelNav`/`rightPanelNav`), because those describe the person's
|
|
14
|
+
* arrangement rather than one conversation's work.
|
|
15
|
+
*
|
|
16
|
+
* **`home` is a state of its own, not `active === null`.** The left column pins
|
|
17
|
+
* the session list, so that column always HAS a view to show; if the home page
|
|
18
|
+
* were spelled by "nothing selected" it could never open, and if it were spelled
|
|
19
|
+
* by "the pinned tab is not selected" the pinned view would be a tab the user
|
|
20
|
+
* cannot look at. One boolean says the catalog is on screen, and the selection
|
|
21
|
+
* survives behind it.
|
|
22
|
+
*
|
|
23
|
+
* ONE stored value, not two: two keys would let a close write the list before
|
|
24
|
+
* the selection landed and leave the column resolving an id that is no longer in
|
|
25
|
+
* it.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
import { useCallback, useMemo } from 'preact/hooks';
|
|
29
|
+
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
30
|
+
import {
|
|
31
|
+
closePanelTab,
|
|
32
|
+
nextActiveTab,
|
|
33
|
+
openPanelTab,
|
|
34
|
+
visiblePanelTabs,
|
|
35
|
+
withPinnedTab,
|
|
36
|
+
type PanelTabs,
|
|
37
|
+
} from '@/shared/lib/workspace/panel-tabs';
|
|
38
|
+
import type { PanelNavSide } from '@/shared/lib/workspace/panel-nav';
|
|
39
|
+
|
|
40
|
+
export interface PanelTabsHandle {
|
|
41
|
+
/** The ids currently open, in strip order — already filtered to drawable ones. */
|
|
42
|
+
tabs: PanelTabs;
|
|
43
|
+
/** The tab the column shows, or `null` when nothing is open at all. */
|
|
44
|
+
active: string | null;
|
|
45
|
+
/** The catalog is on screen. The strip and the selection stay behind it. */
|
|
46
|
+
home: boolean;
|
|
47
|
+
/** Open a view (or focus it when it is already open) and select it. */
|
|
48
|
+
open: (id: string) => void;
|
|
49
|
+
/** Select a tab that is already open; a no-op for an id that is not. */
|
|
50
|
+
select: (id: string) => void;
|
|
51
|
+
/** Close a tab. The pinned view and unknown ids are refused. */
|
|
52
|
+
close: (id: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Adopt a new strip order after a drag.
|
|
55
|
+
*
|
|
56
|
+
* The order is SESSION state like the list itself, not the column's global
|
|
57
|
+
* placement: two chats may keep the same views in a different order, and a
|
|
58
|
+
* drag on one chat's strip must not rearrange another's. The pinned view is
|
|
59
|
+
* put back in front by `withPinnedTab`, so a drop can never move the column's
|
|
60
|
+
* own view out of first place.
|
|
61
|
+
*/
|
|
62
|
+
setOrder: (ids: readonly string[]) => void;
|
|
63
|
+
/** Show the catalog without closing anything. */
|
|
64
|
+
showHome: () => void;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface ColumnTabs {
|
|
68
|
+
tabs: PanelTabs;
|
|
69
|
+
active: string | null;
|
|
70
|
+
home: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A session that has never opened a tab: an EMPTY strip on the HOME PAGE.
|
|
75
|
+
*
|
|
76
|
+
* This is the default for every new chat, and it is what makes the tab style
|
|
77
|
+
* differ from the rail's default (which opens `Files`). A rail has to show
|
|
78
|
+
* something — a column with no view is a column of buttons over nothing — while
|
|
79
|
+
* a strip's empty state is its catalog, which is a real answer. So the stored
|
|
80
|
+
* `layout.activeRightPanel` (`files`) does NOT seed a tab; only an explicit
|
|
81
|
+
* request does (`useRightOpenRequest`).
|
|
82
|
+
*/
|
|
83
|
+
const EMPTY: ColumnTabs = { tabs: [], active: null, home: false };
|
|
84
|
+
|
|
85
|
+
/** A stored value from another build, a corrupted blob, or nothing at all. */
|
|
86
|
+
function readStored(value: unknown): ColumnTabs {
|
|
87
|
+
if (typeof value !== 'object' || value === null) return EMPTY;
|
|
88
|
+
const raw = value as { tabs?: unknown; active?: unknown; home?: unknown };
|
|
89
|
+
const tabs = Array.isArray(raw.tabs)
|
|
90
|
+
? raw.tabs.filter((id): id is string => typeof id === 'string')
|
|
91
|
+
: [];
|
|
92
|
+
if (tabs.length === 0) return EMPTY;
|
|
93
|
+
const active = typeof raw.active === 'string' ? raw.active : null;
|
|
94
|
+
return { tabs, active, home: raw.home === true };
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* One column's tabs.
|
|
99
|
+
*
|
|
100
|
+
* `known` is every id the column could draw right now (the catalog's ids). A
|
|
101
|
+
* stored id that is no longer in it — a disabled panel, an uninstalled plugin, a
|
|
102
|
+
* bundle mid-import — is dropped on sight rather than left to render an empty
|
|
103
|
+
* body, and a column whose whole set vanished lands on its home page.
|
|
104
|
+
*/
|
|
105
|
+
export function usePanelTabs(
|
|
106
|
+
side: PanelNavSide,
|
|
107
|
+
known: ReadonlySet<string>,
|
|
108
|
+
pinned: string | null,
|
|
109
|
+
): PanelTabsHandle {
|
|
110
|
+
// `layout.*` like every other layout slot (`layout.openedFiles`,
|
|
111
|
+
// `layout.showRightPanel`, `layout.rightSideHidden`): the prefix is what tells
|
|
112
|
+
// a reader of the stored blob that this is per-session UI, not a setting, and
|
|
113
|
+
// a key without it was the one thing this hook did differently.
|
|
114
|
+
const [storedValue, setStored] = useSessionState<unknown>(`layout.${side}PanelTabs`, EMPTY);
|
|
115
|
+
|
|
116
|
+
const stored = useMemo(() => readStored(storedValue), [storedValue]);
|
|
117
|
+
|
|
118
|
+
const tabs = useMemo(() => {
|
|
119
|
+
const visible = visiblePanelTabs(stored.tabs, known);
|
|
120
|
+
return pinned === null ? visible : withPinnedTab(visible, pinned);
|
|
121
|
+
}, [stored.tabs, known, pinned]);
|
|
122
|
+
|
|
123
|
+
// The selection is DERIVED, not stored blindly: a stored id that was closed,
|
|
124
|
+
// disabled or never drawable resolves through the same rule a close uses, so a
|
|
125
|
+
// panel switched off while its tab was open lands on a neighbour rather than
|
|
126
|
+
// on a blank body. A pinned view is what a column with no choice shows.
|
|
127
|
+
const active = useMemo(() => {
|
|
128
|
+
if (tabs.length === 0) return null;
|
|
129
|
+
if (stored.active !== null && tabs.includes(stored.active)) return stored.active;
|
|
130
|
+
return tabs[0] ?? null;
|
|
131
|
+
}, [stored.active, tabs]);
|
|
132
|
+
|
|
133
|
+
// The home page needs something to go back to. A column that lost every tab
|
|
134
|
+
// (all switched off) shows the catalog instead of a blank body, and so does a
|
|
135
|
+
// pinned column that was closed down to its pinned tab only if the user asked
|
|
136
|
+
// for it — which is the stored `home` flag, not a consequence.
|
|
137
|
+
const home = stored.home || tabs.length === 0;
|
|
138
|
+
|
|
139
|
+
const write = useCallback((next: ColumnTabs) => setStored(next), [setStored]);
|
|
140
|
+
|
|
141
|
+
const open = useCallback(
|
|
142
|
+
(id: string) => {
|
|
143
|
+
// Idempotent, and that is load-bearing rather than tidy: callers open a
|
|
144
|
+
// view from an EFFECT (`omp:open-panel`, a restored selection), and a
|
|
145
|
+
// write with the same content still produces a new object — which
|
|
146
|
+
// re-renders the column, re-runs the effect and writes again. The guard is
|
|
147
|
+
// what makes "open" safe to call from a render-driven path at all.
|
|
148
|
+
if (tabs.includes(id) && active === id && !home) return;
|
|
149
|
+
const opened = openPanelTab(tabs, id);
|
|
150
|
+
write({ tabs: pinned === null ? opened : withPinnedTab(opened, pinned), active: id, home: false });
|
|
151
|
+
},
|
|
152
|
+
[tabs, active, home, pinned, write],
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
const select = useCallback(
|
|
156
|
+
(id: string) => {
|
|
157
|
+
if (!tabs.includes(id)) return;
|
|
158
|
+
write({ tabs, active: id, home: false });
|
|
159
|
+
},
|
|
160
|
+
[tabs, write],
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
const close = useCallback(
|
|
164
|
+
(id: string) => {
|
|
165
|
+
const next = closePanelTab(tabs, id, pinned ?? undefined);
|
|
166
|
+
if (next === tabs) return;
|
|
167
|
+
// `nextActiveTab` owns the neighbour rule, so a close never leaves a stored
|
|
168
|
+
// id pointing at a closed tab; an empty list is the home page.
|
|
169
|
+
write({ tabs: next, active: nextActiveTab(tabs, next, active), home: next.length === 0 });
|
|
170
|
+
},
|
|
171
|
+
[tabs, active, pinned, write],
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
const showHome = useCallback(() => write({ tabs, active, home: true }), [tabs, active, write]);
|
|
175
|
+
|
|
176
|
+
const setOrder = useCallback(
|
|
177
|
+
(ids: readonly string[]) => {
|
|
178
|
+
// The dropped list must be a PERMUTATION of the open set. A length check
|
|
179
|
+
// is not enough: `['files','files']` has the right length for
|
|
180
|
+
// `['files','git']` and would silently drop `git` while duplicating a chip.
|
|
181
|
+
// A view closed mid-gesture (another window, a plugin that unloaded) makes
|
|
182
|
+
// the drop not the user's arrangement, so it is refused outright.
|
|
183
|
+
if (ids.length !== tabs.length) return;
|
|
184
|
+
const open = new Set(tabs);
|
|
185
|
+
const next = ids.filter((id) => open.has(id));
|
|
186
|
+
if (next.length !== tabs.length || new Set(next).size !== tabs.length) return;
|
|
187
|
+
const ordered = pinned === null ? next : withPinnedTab(next, pinned);
|
|
188
|
+
write({ tabs: ordered, active, home });
|
|
189
|
+
},
|
|
190
|
+
[tabs, active, home, pinned, write],
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
return { tabs, active, home, open, select, close, setOrder, showHome };
|
|
194
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An EXPLICIT "open this view" for the right column, as opposed to the restored
|
|
8
|
+
* `layout.activeRightPanel`.
|
|
9
|
+
*
|
|
10
|
+
* Those are two different facts and stating them with one value is why a fresh
|
|
11
|
+
* tab-style install opened `Files` on its own:
|
|
12
|
+
*
|
|
13
|
+
* - `layout.activeRightPanel` is a RESTORED per-session selection. Under the
|
|
14
|
+
* rail it decides which view is on screen on load, which is what a returning
|
|
15
|
+
* user expects; under the tab style the column's default is an EMPTY strip, so
|
|
16
|
+
* the same value must not be read as "the user asked for this view".
|
|
17
|
+
* - A request is somebody SAYING SO: the rail's own button, a panel dragged onto
|
|
18
|
+
* the column, `omp:open-panel` from a plugin's navbar entry. Only that may add
|
|
19
|
+
* a tab.
|
|
20
|
+
*
|
|
21
|
+
* The `nonce` exists because a request is an EVENT, not a state: two presses on
|
|
22
|
+
* the same view are two openings (the second focuses the tab the first created),
|
|
23
|
+
* and an effect keyed on the view alone would run once.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { useCallback, useState } from 'preact/hooks';
|
|
27
|
+
|
|
28
|
+
/** A view asked for by name, with the counter that makes two presses two events. */
|
|
29
|
+
export interface RightOpenRequest {
|
|
30
|
+
panelKey: string;
|
|
31
|
+
nonce: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface RightOpenRequestHandle {
|
|
35
|
+
/** The latest request, or `null` before anything asked. */
|
|
36
|
+
request: RightOpenRequest | null;
|
|
37
|
+
/** Ask for a view. Also writes the stored selection, which older readers use. */
|
|
38
|
+
requestPanel: (panelKey: string) => void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function useRightOpenRequest(
|
|
42
|
+
setActiveRightPanel: (panelKey: string) => void,
|
|
43
|
+
): RightOpenRequestHandle {
|
|
44
|
+
const [request, setRequest] = useState<RightOpenRequest | null>(null);
|
|
45
|
+
const requestPanel = useCallback(
|
|
46
|
+
(panelKey: string) => {
|
|
47
|
+
setActiveRightPanel(panelKey);
|
|
48
|
+
setRequest((previous) => ({ panelKey, nonce: (previous?.nonce ?? 0) + 1 }));
|
|
49
|
+
},
|
|
50
|
+
[setActiveRightPanel],
|
|
51
|
+
);
|
|
52
|
+
return { request, requestPanel };
|
|
53
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The right side's visibility — editor column, right panel and the rail beside
|
|
8
|
+
* them — is ONE decision.
|
|
9
|
+
*
|
|
10
|
+
* The reported bug this pins: the navbar's toggle put away only the right
|
|
11
|
+
* panel, so the activity rail stayed as a column of marks beside a collapsed
|
|
12
|
+
* panel and the editor column kept its width. The cases below state what one
|
|
13
|
+
* click does, what the next click does, and the two exceptions that keep the
|
|
14
|
+
* rule honest: a side that is already half closed still collapses on the first
|
|
15
|
+
* click, and a blank editor column is never forced open.
|
|
16
|
+
*
|
|
17
|
+
* Rendered with `h()` against happy-dom, like `panel-widths.test.ts`: the hook
|
|
18
|
+
* reads session state, which needs no DOM, but the provider does.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
|
|
22
|
+
import { Window } from 'happy-dom';
|
|
23
|
+
import { h, render } from 'preact';
|
|
24
|
+
import { act } from 'preact/test-utils';
|
|
25
|
+
import { SessionStateContext } from '@/client/hooks/workspace/session-state/context';
|
|
26
|
+
import { useRightSideLayout, type RightSideLayout } from '@/client/hooks/workspace/right-side';
|
|
27
|
+
import { forgetSession } from '@/shared/lib/workspace/session-state/store';
|
|
28
|
+
|
|
29
|
+
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event', 'CustomEvent'] as const;
|
|
30
|
+
const native: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
31
|
+
const nativeFetch = Bun.fetch;
|
|
32
|
+
|
|
33
|
+
let container: HTMLElement;
|
|
34
|
+
const sessions: string[] = [];
|
|
35
|
+
let sessionCounter = 0;
|
|
36
|
+
|
|
37
|
+
/** The live hook value, re-read after every render. */
|
|
38
|
+
let side: RightSideLayout | null = null;
|
|
39
|
+
let options = { editorHasContent: true, editorOpensByDefault: true };
|
|
40
|
+
|
|
41
|
+
function SideProbe() {
|
|
42
|
+
side = useRightSideLayout(options);
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
beforeAll(() => {
|
|
47
|
+
const win = new Window({ url: 'http://localhost' });
|
|
48
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
49
|
+
for (const key of DOM_GLOBALS) {
|
|
50
|
+
if (!(key in native)) native[key] = target[key];
|
|
51
|
+
target[key] = (win as unknown as Record<string, unknown>)[key];
|
|
52
|
+
}
|
|
53
|
+
target.fetch = (async () => new Response('{}', { status: 200 })) as unknown as typeof fetch;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
afterAll(() => {
|
|
57
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
58
|
+
for (const key of DOM_GLOBALS) {
|
|
59
|
+
if (native[key] === undefined) delete target[key];
|
|
60
|
+
else target[key] = native[key];
|
|
61
|
+
}
|
|
62
|
+
if (nativeFetch) target.fetch = nativeFetch;
|
|
63
|
+
else delete target.fetch;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
afterEach(() => {
|
|
67
|
+
if (container) render(null, container);
|
|
68
|
+
container?.remove();
|
|
69
|
+
for (const id of sessions) forgetSession(id);
|
|
70
|
+
sessions.length = 0;
|
|
71
|
+
side = null;
|
|
72
|
+
options = { editorHasContent: true, editorOpensByDefault: true };
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
async function mount(overrides: Partial<typeof options> = {}): Promise<void> {
|
|
76
|
+
options = { ...options, ...overrides };
|
|
77
|
+
const sessionId = `right-side-${++sessionCounter}`;
|
|
78
|
+
sessions.push(sessionId);
|
|
79
|
+
container = document.createElement('div');
|
|
80
|
+
document.body.appendChild(container);
|
|
81
|
+
await act(async () => {
|
|
82
|
+
render(h(SessionStateContext.Provider, { value: { sessionId, ready: true }, children: h(SideProbe, {}) }), container);
|
|
83
|
+
});
|
|
84
|
+
await act(async () => {});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
async function click(action: (current: RightSideLayout) => void): Promise<void> {
|
|
88
|
+
await act(async () => {
|
|
89
|
+
action(side as RightSideLayout);
|
|
90
|
+
});
|
|
91
|
+
await act(async () => {});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
describe('the right side toggle', () => {
|
|
95
|
+
test('one click puts the editor, the panel and the side away', async () => {
|
|
96
|
+
await mount();
|
|
97
|
+
expect(side!.hidden).toBe(false);
|
|
98
|
+
expect(side!.showEditor).toBe(true);
|
|
99
|
+
expect(side!.showRightPanel).toBe(true);
|
|
100
|
+
|
|
101
|
+
await click((current) => current.toggleRightSide());
|
|
102
|
+
|
|
103
|
+
// `hidden` is what the activity rail reads, and both columns read it too —
|
|
104
|
+
// three columns, one flag.
|
|
105
|
+
expect(side!.hidden).toBe(true);
|
|
106
|
+
expect(side!.showEditor).toBe(false);
|
|
107
|
+
expect(side!.showRightPanel).toBe(false);
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
test('the next click brings everything back, including a panel closed separately', async () => {
|
|
111
|
+
await mount();
|
|
112
|
+
// The reader closed the panel with its own wing control first, so a
|
|
113
|
+
// "bring it back as it was" rule would leave the panel shut.
|
|
114
|
+
await click((current) => current.closeRightPanel());
|
|
115
|
+
expect(side!.showRightPanel).toBe(false);
|
|
116
|
+
expect(side!.showEditor).toBe(true);
|
|
117
|
+
|
|
118
|
+
await click((current) => current.toggleRightSide());
|
|
119
|
+
expect(side!.hidden).toBe(true);
|
|
120
|
+
|
|
121
|
+
await click((current) => current.toggleRightSide());
|
|
122
|
+
expect(side!.hidden).toBe(false);
|
|
123
|
+
expect(side!.showRightPanel).toBe(true);
|
|
124
|
+
expect(side!.showEditor).toBe(true);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
test('a half-closed side still collapses on the first click', async () => {
|
|
128
|
+
await mount();
|
|
129
|
+
await click((current) => current.closeRightPanel());
|
|
130
|
+
expect(side!.showRightPanel).toBe(false);
|
|
131
|
+
|
|
132
|
+
// The button's promise is about what is ON SCREEN, not about one flag: the
|
|
133
|
+
// editor column and the rail are still there, so this click hides them.
|
|
134
|
+
await click((current) => current.toggleRightSide());
|
|
135
|
+
expect(side!.hidden).toBe(true);
|
|
136
|
+
expect(side!.showEditor).toBe(false);
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
test('a side with both columns closed shows them rather than hiding nothing', async () => {
|
|
140
|
+
await mount();
|
|
141
|
+
await click((current) => current.closeRightPanel());
|
|
142
|
+
await click((current) => current.toggleEditor());
|
|
143
|
+
expect(side!.showRightPanel).toBe(false);
|
|
144
|
+
expect(side!.showEditor).toBe(false);
|
|
145
|
+
|
|
146
|
+
await click((current) => current.toggleRightSide());
|
|
147
|
+
expect(side!.hidden).toBe(false);
|
|
148
|
+
expect(side!.showRightPanel).toBe(true);
|
|
149
|
+
expect(side!.showEditor).toBe(true);
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
test('a blank editor column is never forced open', async () => {
|
|
153
|
+
await mount({ editorHasContent: false, editorOpensByDefault: false });
|
|
154
|
+
expect(side!.showEditor).toBe(false);
|
|
155
|
+
|
|
156
|
+
await click((current) => current.toggleRightSide());
|
|
157
|
+
await click((current) => current.toggleRightSide());
|
|
158
|
+
|
|
159
|
+
expect(side!.showEditor).toBe(false);
|
|
160
|
+
expect(side!.showRightPanel).toBe(true);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
describe('the directions that must reveal the side', () => {
|
|
165
|
+
test('opening the panel reveals a side that was put away', async () => {
|
|
166
|
+
await mount();
|
|
167
|
+
await click((current) => current.toggleRightSide());
|
|
168
|
+
expect(side!.hidden).toBe(true);
|
|
169
|
+
|
|
170
|
+
// A plugin's readout, a rail row, a file opened from the sidebar: each
|
|
171
|
+
// writes a flag the layout must not ignore.
|
|
172
|
+
await click((current) => current.revealRightPanel());
|
|
173
|
+
expect(side!.hidden).toBe(false);
|
|
174
|
+
expect(side!.showRightPanel).toBe(true);
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
test('asking for the editor reveals the side, so the chord is never dead', async () => {
|
|
178
|
+
await mount();
|
|
179
|
+
await click((current) => current.toggleRightSide());
|
|
180
|
+
expect(side!.hidden).toBe(true);
|
|
181
|
+
|
|
182
|
+
await click((current) => current.toggleEditor());
|
|
183
|
+
expect(side!.hidden).toBe(false);
|
|
184
|
+
expect(side!.showEditor).toBe(true);
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
test('the editor chord closes the column but leaves the rest of the side', async () => {
|
|
188
|
+
await mount();
|
|
189
|
+
await click((current) => current.toggleEditor());
|
|
190
|
+
|
|
191
|
+
expect(side!.showEditor).toBe(false);
|
|
192
|
+
expect(side!.showRightPanel).toBe(true);
|
|
193
|
+
expect(side!.hidden).toBe(false);
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
test('hiding the editor is the corner switch: the side stays', async () => {
|
|
197
|
+
await mount();
|
|
198
|
+
await click((current) => current.hideEditor());
|
|
199
|
+
|
|
200
|
+
expect(side!.showEditor).toBe(false);
|
|
201
|
+
expect(side!.showRightPanel).toBe(true);
|
|
202
|
+
expect(side!.hidden).toBe(false);
|
|
203
|
+
});
|
|
204
|
+
});
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Which parts of the RIGHT side of the workspace are on screen: the editor
|
|
8
|
+
* column, the right panel, and the activity rail that switches views.
|
|
9
|
+
*
|
|
10
|
+
* They are one decision now, not three. The navbar's toggle used to put away
|
|
11
|
+
* only the right panel, so the rail stayed behind as a column of marks beside a
|
|
12
|
+
* collapsed panel, and the editor kept its width; hiding the whole side is what
|
|
13
|
+
* gives a reader the chat alone, and the same click brings all of it back.
|
|
14
|
+
*
|
|
15
|
+
* Two rules the hook exists to keep in ONE place:
|
|
16
|
+
*
|
|
17
|
+
* - **`hidden` remembers nothing else.** The panel's own switch and the
|
|
18
|
+
* editor's own switch are still stored per session, so the side comes back
|
|
19
|
+
* the way it was left when something asks for it (a plugin opening its
|
|
20
|
+
* panel, a file being opened). The navbar's toggle is the exception and says
|
|
21
|
+
* so: it SHOWS everything, because a click that restored a half-hidden side
|
|
22
|
+
* would look like it did nothing.
|
|
23
|
+
* - **The editor's width mode is derived from the editor's own flag**, not from
|
|
24
|
+
* `hidden` — the layout passes the effective `showEditor` into
|
|
25
|
+
* `useEditorViewLayout`, so putting the side away returns the chat at the
|
|
26
|
+
* width the user chose rather than at a stale mode.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
import { useCallback } from 'preact/hooks';
|
|
30
|
+
import { useSessionState } from '@/client/hooks/workspace/session-state';
|
|
31
|
+
|
|
32
|
+
export interface RightSideLayoutOptions {
|
|
33
|
+
/** The editor column has something to open on to (a tab, a takeover). */
|
|
34
|
+
editorHasContent: boolean;
|
|
35
|
+
/** What the column does when the user has never toggled it. */
|
|
36
|
+
editorOpensByDefault: boolean;
|
|
37
|
+
/** Boot-time defaults, for a session that has never stored a layout. */
|
|
38
|
+
showRightPanelInitially?: boolean;
|
|
39
|
+
userToggledEditorInitially?: boolean | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface RightSideLayout {
|
|
43
|
+
/** The right panel is open AND the side is not put away. */
|
|
44
|
+
showRightPanel: boolean;
|
|
45
|
+
showEditor: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The whole right side is put away: the editor column, the right panel and
|
|
48
|
+
* the activity rail. The chat keeps the width and the rail comes back with
|
|
49
|
+
* the rest.
|
|
50
|
+
*/
|
|
51
|
+
hidden: boolean;
|
|
52
|
+
/** The navbar's toggle: hide everything, or show everything back. */
|
|
53
|
+
toggleRightSide: () => void;
|
|
54
|
+
/** The panel's own close control: that column only. */
|
|
55
|
+
closeRightPanel: () => void;
|
|
56
|
+
/** Open the right panel (a view was picked). */
|
|
57
|
+
revealRightPanel: () => void;
|
|
58
|
+
/** The editor column's own switch, from the chord or the palette. */
|
|
59
|
+
toggleEditor: () => void;
|
|
60
|
+
hideEditor: () => void;
|
|
61
|
+
/** A file was opened, or a takeover picked: the column must be on screen. */
|
|
62
|
+
revealEditor: () => void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function useRightSideLayout({
|
|
66
|
+
editorHasContent,
|
|
67
|
+
editorOpensByDefault,
|
|
68
|
+
showRightPanelInitially = true,
|
|
69
|
+
userToggledEditorInitially = null,
|
|
70
|
+
}: RightSideLayoutOptions): RightSideLayout {
|
|
71
|
+
const [rightPanelOpen, setRightPanelOpen] = useSessionState<boolean>('layout.showRightPanel', showRightPanelInitially);
|
|
72
|
+
const [userToggledEditor, setUserToggledEditor] = useSessionState<boolean | null>(
|
|
73
|
+
'layout.userToggledEditor',
|
|
74
|
+
userToggledEditorInitially,
|
|
75
|
+
);
|
|
76
|
+
// Per session, like every other layout choice: two chats may be read
|
|
77
|
+
// differently, and a reload returns the reader to the side they left.
|
|
78
|
+
const [hidden, setHidden] = useSessionState<boolean>('layout.rightSideHidden', false);
|
|
79
|
+
|
|
80
|
+
const revealRightPanel = useCallback(() => {
|
|
81
|
+
setRightPanelOpen(true);
|
|
82
|
+
setHidden(false);
|
|
83
|
+
}, [setRightPanelOpen, setHidden]);
|
|
84
|
+
const closeRightPanel = useCallback(() => setRightPanelOpen(false), [setRightPanelOpen]);
|
|
85
|
+
const revealEditor = useCallback(() => {
|
|
86
|
+
setUserToggledEditor(true);
|
|
87
|
+
setHidden(false);
|
|
88
|
+
}, [setUserToggledEditor, setHidden]);
|
|
89
|
+
const hideEditor = useCallback(() => setUserToggledEditor(false), [setUserToggledEditor]);
|
|
90
|
+
/** The column's own switch, with the side's memory left out of it. */
|
|
91
|
+
const editorWanted = editorHasContent && (userToggledEditor ?? editorOpensByDefault);
|
|
92
|
+
const showEditor = editorWanted && !hidden;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The editor's own switch (`⌘J`, the palette, the panel's corner button).
|
|
96
|
+
*
|
|
97
|
+
* It acts on what is ON SCREEN, so it must reveal the side when the side is
|
|
98
|
+
* what is hiding the column; otherwise the chord would write a flag the
|
|
99
|
+
* layout is ignoring and look dead.
|
|
100
|
+
*/
|
|
101
|
+
const toggleEditor = useCallback(() => {
|
|
102
|
+
if (!showEditor) {
|
|
103
|
+
setHidden(false);
|
|
104
|
+
setUserToggledEditor(true);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
setUserToggledEditor(false);
|
|
108
|
+
}, [showEditor, setUserToggledEditor, setHidden]);
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* One click puts the whole side away; the next shows all of it.
|
|
112
|
+
*
|
|
113
|
+
* "Any part visible" is the test, not the flag alone: a reader who closed
|
|
114
|
+
* the right panel with its own control still has the editor column and the
|
|
115
|
+
* rail on screen, so the same button must put those away rather than look
|
|
116
|
+
* like it opened a panel that stayed closed. Coming back, everything
|
|
117
|
+
* returns — an open panel and the editor column — because the button's
|
|
118
|
+
* promise is the side, not the half of it that happened to be open. A blank
|
|
119
|
+
* editor column is not forced open: there is nothing to show.
|
|
120
|
+
*/
|
|
121
|
+
const toggleRightSide = useCallback(() => {
|
|
122
|
+
if (!hidden && (editorWanted || rightPanelOpen)) {
|
|
123
|
+
setHidden(true);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
setRightPanelOpen(true);
|
|
127
|
+
if (editorHasContent) setUserToggledEditor(true);
|
|
128
|
+
setHidden(false);
|
|
129
|
+
}, [hidden, editorWanted, rightPanelOpen, setHidden, setRightPanelOpen, setUserToggledEditor, editorHasContent]);
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
showRightPanel: rightPanelOpen && !hidden,
|
|
133
|
+
showEditor,
|
|
134
|
+
hidden,
|
|
135
|
+
toggleRightSide,
|
|
136
|
+
closeRightPanel,
|
|
137
|
+
revealRightPanel,
|
|
138
|
+
toggleEditor,
|
|
139
|
+
hideEditor,
|
|
140
|
+
revealEditor,
|
|
141
|
+
};
|
|
142
|
+
}
|
package/src/client/main.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import { primeKabmoSettings } from '@/shared/lib/settings/client';
|
|
|
6
6
|
import { initDocumentTheme } from '@/client/hooks/ui/theme';
|
|
7
7
|
import { initChatWidthMode } from '@/client/hooks/chat/timeline/width-mode';
|
|
8
8
|
import { initSurfaceStyle } from '@/client/hooks/ui/surface-style';
|
|
9
|
+
import { initBorderStyle } from '@/client/hooks/ui/border-style';
|
|
9
10
|
import { initIconStyle } from '@/client/hooks/ui/icon-style';
|
|
10
11
|
import { primeWindowChrome } from '@/client/hooks/ui/window-chrome';
|
|
11
12
|
import { installAuthFetchBridge, primeAuthState } from '@/client/hooks/ui/auth';
|
|
@@ -26,6 +27,7 @@ import { installDeviceFiles } from '@/client/lib/launch/device-files';
|
|
|
26
27
|
|
|
27
28
|
import '@/client/tailwind.css';
|
|
28
29
|
import '@/client/glass.css';
|
|
30
|
+
import '@/client/borders.css';
|
|
29
31
|
import '@/shared/lib/markdown/katex-fonts.css';
|
|
30
32
|
import '@/shared/lib/markdown/fira-code-fonts.css';
|
|
31
33
|
import '@/shared/lib/fonts/nerd-symbols.css';
|
|
@@ -48,11 +50,14 @@ primeKabmoSettings(bootstrap?.appSettings);
|
|
|
48
50
|
// lazily mounted subtree, and a hook would not run until it mounted.
|
|
49
51
|
initChatWidthMode();
|
|
50
52
|
|
|
51
|
-
// The surface material and the brand-mark paint, also before
|
|
52
|
-
// a glass install that painted the opaque shell first would
|
|
53
|
-
// one frame later,
|
|
54
|
-
//
|
|
53
|
+
// The surface material, the hairline set and the brand-mark paint, also before
|
|
54
|
+
// the first render: a glass install that painted the opaque shell first would
|
|
55
|
+
// swap every panel one frame later, a borderless install would paint every
|
|
56
|
+
// separator and then erase it, and a colour install would draw ink marks and
|
|
57
|
+
// then repaint them. All three write an attribute CSS reads — no event, no
|
|
58
|
+
// re-render.
|
|
55
59
|
initSurfaceStyle();
|
|
60
|
+
initBorderStyle();
|
|
56
61
|
initIconStyle();
|
|
57
62
|
|
|
58
63
|
// BEFORE the theme init, which writes the chrome meta: a phone that repainted
|
package/src/client/tailwind.css
CHANGED
|
@@ -641,6 +641,12 @@
|
|
|
641
641
|
* panel-widths.ts`), so an open editor or right panel narrows it and the column
|
|
642
642
|
* follows instead of overflowing.
|
|
643
643
|
*
|
|
644
|
+
* `custom` has NO rule here on purpose: its number is the user's (dragged, and
|
|
645
|
+
* stored as `chatColumnWidth`), so the writer sets `--chat-column-max` INLINE on
|
|
646
|
+
* `<html>` — an inline declaration outranks every rule in this block. That is
|
|
647
|
+
* also why `applyChatWidthMode` removes the property for every preset: a
|
|
648
|
+
* leftover inline value would beat `compact` and `full` alike.
|
|
649
|
+
*
|
|
644
650
|
* Before this, the number was written out at eight call sites as
|
|
645
651
|
* `max-w-[970px]` — transcript, composer dock, skeleton, subagent view and the
|
|
646
652
|
* empty workspace prompt — which is eight chances for a mode to half-apply.
|