@kabmo-labs/kabmo 0.57.1 → 0.58.1
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 +540 -510
- package/dist/client/static/js/Body-ysmhxbvk.js +3 -0
- package/dist/client/static/js/{CsvGrid-563qmmmr.js → CsvGrid-w90pxyn2.js} +2 -2
- package/dist/client/static/js/{DocxView-5j69q3s0.js → DocxView-evxn6kaq.js} +2 -2
- package/dist/client/static/js/{DrawioView-gd6k3hvn.js → DrawioView-tmdevwf4.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-6gnktzzp.js → HtmlPreview-bpsn2z9p.js} +1 -1
- package/dist/client/static/js/ImageView-ssazqckj.js +1 -0
- package/dist/client/static/js/LayoutWrapper-qwpfq4dq.js +2 -0
- package/dist/client/static/js/MergeDiffView-en6aazw8.js +1 -0
- package/dist/client/static/js/Modal-zjnhj9nb.js +60 -0
- package/dist/client/static/js/{PdfView-n1zq27td.js → PdfView-txxn6qff.js} +1 -1
- package/dist/client/static/js/SessionsView-eryjtmb2.js +1 -0
- package/dist/client/static/js/{SheetView-nes7j86v.js → SheetView-52b33e6f.js} +11 -11
- package/dist/client/static/js/{SvgPreview-vv0qzkt7.js → SvgPreview-hrk4pfm1.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-02g96sn6.js → abnfDiagram-O67JEVCF-at77sybc.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-v05ap4e3.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7qj2fpwt.js → architectureDiagram-NJMV4G6O-raw33jgg.js} +11 -11
- package/dist/client/static/js/{astro-asmathwv.js → astro-qha7sceh.js} +1 -1
- package/dist/client/static/js/bash-n5d0esqg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-grdr1j2h.js → blockDiagram-BEXU5L5S-b6e90fbk.js} +7 -7
- package/dist/client/static/js/c-pk766wx0.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-7y980xpx.js → c4Diagram-YGBWAQC7-msg9y1c6.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-29ag4js1.js → classDiagram-v2-NBCMYWYE-jmrd1h8r.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-e5dvgehd.js → cose-bilkent-JH36ORCC-na65ebq3.js} +1 -1
- package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
- package/dist/client/static/js/css-q2k6afe3.js +1 -0
- package/dist/client/static/js/css-sp1cgdbr.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-sqv0ze38.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-eq6fmx0b.js → cynefinDiagram-VND7K2PF-9xkkw71m.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-xfhwp8ha.js → dagre-6A5THRUB-p59f19tv.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-1bw6x6zt.js → diagram-22UHCM2B-2e2rcvn7.js} +14 -14
- package/dist/client/static/js/{diagram-3UASUU5V-076ej5n5.js → diagram-3UASUU5V-r9ds8vgr.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-cvf9fhdq.js → diagram-ATOU4E4O-jgwxv7v8.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-hn1wdx54.js → diagram-CDSNMT55-20m35eqq.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-76gk27b5.js → diagram-MLGK6HIB-vt3kxt2m.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-0cbajhpx.js → diagram-MPIPVDR6-c47rgxf1.js} +2 -2
- package/dist/client/static/js/{dockerfile-7atfjhnf.js → dockerfile-gtcyey0q.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-n0g3b9m2.js → ebnfDiagram-ZINNZB2B-aszw3xy3.js} +1 -1
- package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-w92v180e.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-f6wrjcv9.js → elk-276RUBZZ-gbvr3gry.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-jz622yrg.js → erDiagram-OPXOYQCR-1hqca8qe.js} +5 -5
- package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-t4dzf5s7.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-c16xmjyv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-2ex4nxyg.js → ganttDiagram-FUAMR5RP-07v22te5.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-0jq8y0qd.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-38eyay6g.js → gitGraphDiagram-X574FWY7-y068jtz9.js} +18 -18
- package/dist/client/static/js/graphql-qx4tt6ze.js +1 -0
- package/dist/client/static/js/html-5e0g8664.js +1 -0
- package/dist/client/static/js/index-007sewcn.js +2 -0
- package/dist/client/static/js/{index-tksrpqkh.js → index-1e0rt7c6.js} +5 -5
- package/dist/client/static/js/index-1e710snk.js +1 -0
- package/dist/client/static/js/{index-8pqx5n2p.js → index-2s17netq.js} +2 -2
- package/dist/client/static/js/index-374xq5a4.js +1 -0
- package/dist/client/static/js/{index-j9y4tjk0.js → index-3m1dksmy.js} +2 -2
- package/dist/client/static/js/{index-668fc1df.js → index-3p732mvs.js} +2 -2
- package/dist/client/static/js/{index-3x88t8g9.js → index-3ymw778n.js} +2 -2
- package/dist/client/static/js/index-4ddgpqm0.css +1 -0
- package/dist/client/static/js/index-5g2j626a.js +1 -0
- package/dist/client/static/js/{index-rbkvw2xs.js → index-5hvt233n.js} +2 -2
- package/dist/client/static/js/{index-tdryzzy9.js → index-5xxbbzqa.js} +6 -6
- package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
- package/dist/client/static/js/{index-e4yj4kbe.js → index-7sq6cjt1.js} +12 -12
- package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
- package/dist/client/static/js/{index-q0k1am0g.js → index-80kx6dm6.js} +2 -2
- package/dist/client/static/js/index-8d8ce00v.js +2 -0
- package/dist/client/static/js/{index-63mk2qk6.js → index-94d416ee.js} +2 -2
- package/dist/client/static/js/{index-db7vsjkd.js → index-an7fq7f6.js} +1 -1
- package/dist/client/static/js/{index-zzggk17b.js → index-azz46nwc.js} +2 -2
- package/dist/client/static/js/index-c9aqx3ht.js +1 -0
- package/dist/client/static/js/index-cc7qbfvn.js +477 -0
- package/dist/client/static/js/{index-cwwg7k5f.js → index-cmjyet7w.js} +49 -49
- package/dist/client/static/js/{index-55v3qv04.js → index-cpp43af3.js} +22 -22
- package/dist/client/static/js/{index-jaxhfk9x.js → index-dxq1tbwm.js} +2 -2
- package/dist/client/static/js/index-e0kahttb.js +1 -0
- package/dist/client/static/js/index-e4nge3f4.js +1 -0
- package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
- package/dist/client/static/js/index-f27wvdky.js +4 -0
- package/dist/client/static/js/{index-zv8wrvha.js → index-f61c25vn.js} +3 -3
- package/dist/client/static/js/{index-g2e0m757.js → index-fe92hqmb.js} +8 -8
- package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
- package/dist/client/static/js/{index-ep99arz1.js → index-fv7nybnf.js} +2 -2
- package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
- package/dist/client/static/js/{index-xfnjwhan.js → index-gqrt766t.js} +91 -91
- package/dist/client/static/js/index-hb7a7m9m.js +1 -0
- package/dist/client/static/js/{index-zynbvm7x.js → index-j830qk07.js} +2 -2
- package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
- package/dist/client/static/js/{index-8444mec5.js → index-kzzvrqnv.js} +2 -2
- package/dist/client/static/js/{index-6z30g3ha.js → index-m5n0zsft.js} +2 -2
- package/dist/client/static/js/{index-1q934wfk.js → index-medk4f18.js} +2 -2
- package/dist/client/static/js/index-nptbz7sv.js +2 -0
- package/dist/client/static/js/index-qefssj0m.js +1 -0
- package/dist/client/static/js/{index-mpyd7qxj.js → index-r8d4bk86.js} +2 -2
- package/dist/client/static/js/{index-hge0y4vn.js → index-rqt8mem9.js} +2 -2
- package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
- package/dist/client/static/js/index-s4dpkds5.js +2 -0
- package/dist/client/static/js/index-s9k82stc.js +2 -0
- package/dist/client/static/js/index-skwem10a.js +2 -0
- package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
- package/dist/client/static/js/{index-m6eh5g1q.js → index-tdg7hz80.js} +2 -2
- package/dist/client/static/js/{index-nt17ejrm.js → index-th61y26d.js} +2 -2
- package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
- package/dist/client/static/js/index-tv9rn2nd.js +2 -0
- package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
- package/dist/client/static/js/{index-60g0e74a.js → index-vny4ymjf.js} +1 -1
- package/dist/client/static/js/{index-4cff0zg2.js → index-vw8b29ek.js} +1 -1
- package/dist/client/static/js/{index-9gfn1a3h.js → index-wn28m9h7.js} +8 -8
- package/dist/client/static/js/index-wxqcnsrq.js +2 -0
- package/dist/client/static/js/index-xmg1x6zv.js +9 -0
- package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
- package/dist/client/static/js/{index-ewst55j2.js → index-zhgh7a31.js} +2 -2
- package/dist/client/static/js/index-zs7kw0be.js +4 -0
- package/dist/client/static/js/info-A6RAGUB7-szttx3v5.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-c55t0tvd.js → infoDiagram-VRGFBTTK-1x83h4k4.js} +2 -2
- package/dist/client/static/js/ini-bdk46a3d.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-r9kg5kg5.js → ishikawaDiagram-OU5B5YK6-et6z3c28.js} +3 -3
- package/dist/client/static/js/java-3g3925cf.js +1 -0
- package/dist/client/static/js/javascript-av46zx4c.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-zmmst4v8.js → journeyDiagram-ZHPQQLJL-sw669e7a.js} +4 -4
- package/dist/client/static/js/json-hdyzmffz.js +1 -0
- package/dist/client/static/js/jsx-y8r9mrdq.js +1 -0
- package/dist/client/static/js/{julia-d18zhpyp.js → julia-z14p8jsx.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-3tt6sc9a.js → kanban-definition-PNTS6WVX-aqxg95kx.js} +6 -6
- package/dist/client/static/js/lua-wf5k6p3r.js +1 -0
- package/dist/client/static/js/markdown-9bf16dx7.js +1 -0
- package/dist/client/static/js/{mermaid.core-pkrs8zp5.js → mermaid.core-6cgqsgcf.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-b4c6gxg4.js → mindmap-definition-NLK3R4M7-530anpc4.js} +7 -7
- package/dist/client/static/js/one-dark-pro-9hnhtkpr.js +1 -0
- package/dist/client/static/js/one-light-2n5y8592.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-401149bv.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-9jkat1mz.js → pegDiagram-GJSIUBJH-5zar6hvy.js} +1 -1
- package/dist/client/static/js/{perl-sns2qvmf.js → perl-1na2x6yd.js} +1 -1
- package/dist/client/static/js/{php-3q6v9eey.js → php-x75tt7w3.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-bgfv8tfz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6pbchjh7.js → pieDiagram-5QR66LMP-3bx8syvw.js} +2 -2
- package/dist/client/static/js/properties-xk4dn00p.js +1 -0
- package/dist/client/static/js/python-7sgz05n4.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-p9brea19.js → quadrantDiagram-O4NWA36T-yaarpr2e.js} +6 -6
- package/dist/client/static/js/r-w4qxm0pv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-pw720590.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-n2a30ngs.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-rn5rx9qt.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-t4yryhtd.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-c4ebgvrr.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3cep8css.js → railroadDiagram-XR7U4H2S-ag41q4nt.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-x1yjgsrr.js → requirementDiagram-PLB6GJNP-g8sr48h4.js} +12 -12
- package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-3h22qahv.js} +1 -1
- package/dist/client/static/js/{rust-yy8gekx8.js → rust-r27demr5.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-23wzf4aj.js → sankeyDiagram-IPEJSGJF-t1wbd1hh.js} +4 -4
- package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
- package/dist/client/static/js/{scss-9wz47c6t.js → scss-c04ezwnn.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-w4wr3zzr.js → sequenceDiagram-PO4LG4MO-407mjqty.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-aabfesnr.js → sizeCapture-INFHLROL-w38zb9ky.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-t0n288xw.js → stateDiagram-v2-GCMORJYK-4cvgymkc.js} +3 -3
- package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-egg3x4tw.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-1nnm0p7h.js → swimlanes-2SLR337P-w7ts2rzw.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-v82nym6b.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-8pyssn0q.js → timeline-definition-EJHVYXUP-nq46nzy9.js} +7 -7
- package/dist/client/static/js/treeView-Q6P3EWNA-bxgt5yhm.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hh3595m0.js +1 -0
- package/dist/client/static/js/tsx-h5yzg80q.js +1 -0
- package/dist/client/static/js/typescript-qy1sbhea.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-vveepvt6.js → usecaseDiagram-POWQR4AR-q144snzb.js} +45 -45
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-tqyvmqxc.js → vennDiagram-UO4OBE2U-2wemak2p.js} +8 -8
- package/dist/client/static/js/{vue-e8e3q3hj.js → vue-d7p4wv35.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-6bza7h1b.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-p8rs34em.js → wardleyDiagram-VNRHLVJA-bb2qvvgr.js} +5 -5
- package/dist/client/static/js/xml-mrk4xakv.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-pgnvxtps.js → xychartDiagram-PMCCYNJV-9dr05fdq.js} +6 -6
- package/dist/client/static/js/yaml-xaza6dra.js +1 -0
- package/package.json +6 -6
- package/src/client/bootstrap.d.ts +11 -0
- package/src/client/borders.css +3 -4
- package/src/client/components/auth/login-screen/index.tsx +1 -1
- package/src/client/components/common/ComposerPicker.tsx +1 -1
- package/src/client/components/common/CopyButton.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/SubagentStatusIcon.tsx +2 -2
- package/src/client/components/common/ViewportSelector.tsx +2 -2
- package/src/client/components/common/anchored-menu/index.tsx +11 -4
- package/src/client/components/common/batch-selection/BatchActionBar.tsx +1 -1
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +4 -4
- package/src/client/components/common/checkbox/style.ts +1 -1
- package/src/client/components/common/context-usage-button/McpSection.tsx +3 -2
- package/src/client/components/common/file-icon/index.tsx +3 -3
- package/src/client/components/common/harness-glyph/index.tsx +4 -3
- package/src/client/components/common/image-viewer/fullscreen.tsx +1 -1
- package/src/client/components/common/image-viewer/index.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +2 -2
- package/src/client/components/common/markdown-review/ReviewSummary.tsx +3 -3
- package/src/client/components/common/plugin-render-boundary/index.tsx +1 -1
- package/src/client/components/common/server-control/Panel.tsx +1 -1
- package/src/client/components/common/server-control/Row.tsx +3 -3
- package/src/client/components/common/session-actions-menu/MenuItem.tsx +2 -2
- package/src/client/components/common/session-branch/SubagentRow.tsx +1 -1
- package/src/client/components/common/session-delete-modal/index.tsx +4 -4
- package/src/client/components/common/session-row/StatusSlot.tsx +1 -1
- package/src/client/components/common/session-row/TrailingSlot.tsx +6 -2
- package/src/client/components/common/session-row/index.tsx +56 -2
- package/src/client/components/common/session-row/session-row.test.tsx +84 -3
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/common/window-controls/index.tsx +1 -1
- package/src/client/components/common/workspace-options-menu/index.tsx +4 -4
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateLogDialog.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +3 -3
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +24 -3
- package/src/client/components/layout/session-sidebar/modern/workspace-header.test.tsx +20 -0
- package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +2 -2
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/ModelFields.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +4 -4
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/update-popup/Actions.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Action.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/Header.tsx +3 -3
- package/src/client/components/mobile/mobile-right-sidebar/MissingFileBanner.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +2 -2
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
- package/src/client/components/settings/Modal.tsx +8 -3
- package/src/client/components/settings/SettingsSidebarList.tsx +2 -2
- package/src/client/components/settings/Sidebar.tsx +3 -3
- package/src/client/components/settings/apply-side-effects.test.ts +46 -0
- package/src/client/components/settings/apply-side-effects.ts +8 -0
- package/src/client/components/settings/categories/BehaviorSettings.tsx +1 -1
- package/src/client/components/settings/categories/OmpSettings.tsx +3 -3
- package/src/client/components/settings/categories/UsageSettings.tsx +3 -3
- package/src/client/components/settings/categories/agent-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/appearance-settings/CustomThemeEditor.tsx +177 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.test.tsx +136 -0
- package/src/client/components/settings/categories/appearance-settings/CustomThemeSection.tsx +180 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +6 -5
- package/src/client/components/settings/categories/appearance-settings/ThemePreview.tsx +106 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeSection.tsx +7 -3
- package/src/client/components/settings/categories/behavior-settings/Editor.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +1 -1
- package/src/client/components/settings/categories/command-settings/DetailPane.tsx +4 -4
- package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/CommitMessageSection.tsx +1 -1
- package/src/client/components/settings/categories/git-settings/IdentitySection.tsx +2 -2
- package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +3 -3
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +13 -83
- package/src/client/components/settings/categories/harness-settings/HarnessImportControls.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/ConnectionTest.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +5 -5
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/KeyValueSection.tsx +1 -1
- package/src/client/components/settings/categories/mcp-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +4 -4
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +3 -3
- package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +5 -5
- package/src/client/components/settings/categories/panel-plugins/ReadmeModal.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Registries.tsx +4 -4
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +3 -3
- package/src/client/components/settings/categories/panel-plugins/SettingsModal.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +2 -2
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -2
- package/src/client/components/settings/categories/plugin-settings/MarketplacePane.tsx +4 -4
- package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/SidebarList.tsx +4 -4
- package/src/client/components/settings/categories/project-settings/AddProjectModal.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/DeleteProjectModal.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/DetailsHeader.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/IconGrid.tsx +3 -3
- package/src/client/components/settings/categories/project-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +3 -3
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SkillCard.tsx +1 -1
- package/src/client/components/settings/categories/skill-catalog/SourceRail.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +7 -7
- package/src/client/components/settings/categories/skill-settings/DetailPane.tsx +1 -1
- package/src/client/components/settings/categories/skill-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/SavedResetsSection.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +1 -1
- package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +2 -2
- package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +5 -5
- package/src/client/components/settings/categories/voice-settings/speech/ModelsSection.tsx +4 -4
- package/src/client/components/workspace/browser-panel/ActivityToasts.tsx +2 -2
- package/src/client/components/workspace/browser-panel/EngineNotice.tsx +1 -1
- package/src/client/components/workspace/browser-panel/index.tsx +2 -2
- package/src/client/components/workspace/browser-toolbar/clusters.tsx +2 -2
- package/src/client/components/workspace/btw-panel/Messages.tsx +2 -2
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ChangedFilesSummary.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/IrcNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +5 -0
- package/src/client/components/workspace/chat-timeline/OrchestrationNotice.tsx +81 -162
- package/src/client/components/workspace/chat-timeline/QueueList.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +12 -8
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +12 -4
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UserTurn.test.tsx +24 -6
- package/src/client/components/workspace/chat-timeline/UserTurn.tsx +17 -4
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +18 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +66 -10
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +103 -41
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +4 -2
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +11 -11
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +54 -35
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.test.tsx +110 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +51 -32
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +62 -0
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +17 -5
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/access-capability.test.tsx +151 -0
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +5 -0
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/fork-preview.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.test.tsx +21 -5
- package/src/client/components/workspace/chat-timeline/target-picker/ParentSessionPicker.tsx +100 -71
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +83 -66
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +38 -17
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FormDialog.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/SwipeDeck.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/AstEdit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Debug.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Github.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Goal.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Lsp.tsx +9 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/ManageSkill.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +8 -8
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Resolve.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/SecurityScan.tsx +6 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/TaskResult.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +7 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +8 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +5 -5
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx +11 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Compact.tsx +11 -6
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Trace.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +37 -9
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +35 -23
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/parity.test.tsx +50 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/props.ts +2 -0
- package/src/client/components/workspace/context-panel/RawJsonViewer.tsx +2 -2
- package/src/client/components/workspace/diff-panel/ConflictBanner.tsx +3 -3
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +3 -3
- package/src/client/components/workspace/diff-panel/index.tsx +3 -3
- package/src/client/components/workspace/diff-panel/toolbar-git-actions.tsx +1 -1
- package/src/client/components/workspace/editor/ConflictStrip.tsx +2 -2
- package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +2 -2
- package/src/client/components/workspace/editor/FilePane.tsx +6 -6
- package/src/client/components/workspace/editor/FindWidget.tsx +2 -2
- package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
- package/src/client/components/workspace/editor/SaveAsModal.tsx +3 -3
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
- package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.test.ts +3 -3
- package/src/client/components/workspace/editor/Tabs.tsx +6 -6
- package/src/client/components/workspace/editor/Toolbar.tsx +4 -4
- package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/GridToolbar.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/SheetView.tsx +2 -2
- package/src/client/components/workspace/editor/viewers/ViewerError.tsx +2 -2
- package/src/client/components/workspace/file-explorer/ArchiveModals.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +3 -3
- package/src/client/components/workspace/file-explorer/Modals.tsx +3 -3
- package/src/client/components/workspace/file-explorer/RowLabel.test.tsx +2 -2
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +2 -2
- package/src/client/components/workspace/git-panel/ChangesList.tsx +3 -3
- package/src/client/components/workspace/git-panel/ConflictItem.tsx +3 -3
- package/src/client/components/workspace/git-panel/FileItem.tsx +1 -1
- package/src/client/components/workspace/git-panel/Modals.tsx +1 -1
- package/src/client/components/workspace/git-panel/OperationBar.tsx +4 -4
- package/src/client/components/workspace/git-panel/StashSection.tsx +1 -1
- package/src/client/components/workspace/git-panel/TreeItem.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/BranchRow.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -2
- package/src/client/components/workspace/git-panel/branch-modal/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +31 -76
- package/src/client/components/workspace/model-dropdown/Item.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/Panel.tsx +15 -9
- package/src/client/components/workspace/model-dropdown/Section.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +12 -83
- package/src/client/components/workspace/model-dropdown/index.tsx +2 -2
- package/src/client/components/workspace/model-dropdown/picker-close.test.tsx +16 -2
- package/src/client/components/workspace/plan-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/plan-panel/index.tsx +2 -2
- package/src/client/components/workspace/plugin-panel/Error.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Modal.tsx +3 -3
- package/src/client/components/workspace/repo-picker/Row.tsx +5 -5
- package/src/client/components/workspace/search-panel/Body.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/Header.tsx +3 -3
- package/src/client/components/workspace/terminal-panel/KeyBar.tsx +2 -2
- package/src/client/components/workspace/terminal-panel/QuickActions.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/RealtimeTerminalView.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +1 -1
- package/src/client/components/workspace/usage-panel/index.tsx +3 -3
- package/src/client/components/workspace/user-browser-panel/AddressBar.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/PageView.tsx +2 -2
- package/src/client/components/workspace/wiki-panel/index.tsx +2 -2
- package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
- package/src/client/data/settings/omp-schema.json +27 -7
- package/src/client/hooks/chat/timeline/access-ladder-wiring.test.ts +111 -0
- package/src/client/hooks/chat/timeline/access-ladder.test.ts +66 -0
- package/src/client/hooks/chat/timeline/access-ladder.ts +72 -0
- package/src/client/hooks/chat/timeline/access-mode.ts +11 -1
- package/src/client/hooks/chat/timeline/index.ts +4 -5
- package/src/client/hooks/chat/timeline/modes-contract.ts +10 -1
- package/src/client/hooks/chat/timeline/modes.ts +10 -2
- package/src/client/hooks/chat/timeline/session-harness.ts +2 -1
- package/src/client/hooks/editor/use-unload-guard.tsx +2 -2
- package/src/client/hooks/models/use-harness-accounts-panel.ts +142 -0
- package/src/client/hooks/ui/border-style.test.ts +1 -2
- package/src/client/hooks/ui/theme.ts +23 -2
- package/src/client/main.tsx +7 -1
- package/src/client/tailwind-contrast.test.ts +22 -7
- package/src/client/tailwind.css +115 -18
- package/src/server/lib/assets/theme-css.server.test.ts +31 -1
- package/src/server/lib/assets/theme-css.server.ts +15 -1
- package/src/server/lib/harness/accounts.test.ts +5 -3
- package/src/server/lib/harness/acp/acp-todos.test.ts +23 -0
- package/src/server/lib/omp/session/delete.server.ts +4 -0
- package/src/server/lib/realtime/topics/session-data.server.ts +64 -1
- package/src/server/lib/realtime/topics/session-data.test.ts +189 -0
- package/src/server/lib/tray/runtime.server.ts +5 -0
- package/src/server/plugins/ssr.ts +16 -4
- package/src/server/routes/settings/root.ts +11 -0
- package/src/server/routes/settings/settings-store-routes.test.ts +37 -0
- package/src/shared/lib/chat/orchestration/outcome-markdown.test.ts +57 -0
- package/src/shared/lib/chat/orchestration/outcome-markdown.ts +74 -0
- package/src/shared/lib/chat/timeline/block-chrome.ts +2 -2
- package/src/shared/lib/chat/todo/flat-list.test.ts +81 -0
- package/src/shared/lib/chat/todo/flat-list.ts +29 -0
- package/src/shared/lib/chat/todo/parser.ts +7 -53
- package/src/shared/lib/chat/todo/progress.test.ts +3 -3
- package/src/shared/lib/chat/todo/progress.ts +3 -3
- package/src/shared/lib/fs/git-status.test.ts +22 -22
- package/src/shared/lib/fs/git-status.ts +31 -31
- package/src/shared/lib/icons/icon-paint-authority.ts +5 -4
- package/src/shared/lib/omp/config/schema-releases-19-4.test.ts +20 -3
- package/src/shared/lib/settings/defaults.ts +1 -0
- package/src/shared/lib/theme/catalog.test.ts +42 -0
- package/src/shared/lib/theme/catalog.ts +66 -11
- package/src/shared/lib/theme/css.ts +25 -1
- package/src/shared/lib/theme/custom.test.ts +156 -0
- package/src/shared/lib/theme/custom.ts +260 -0
- package/src/shared/lib/theme/ink-scale.test.ts +83 -2
- package/src/shared/lib/theme/ink-scale.ts +74 -9
- package/src/shared/lib/theme/shell-palette.ts +3 -3
- package/src/shared/lib/theme/theme.test.ts +28 -13
- package/src/shared/types/settings/state.ts +11 -3
- package/tsconfig.json +6 -0
- package/dist/client/static/js/Body-p6zwk0nx.js +0 -3
- package/dist/client/static/js/ImageView-fkfq3fwv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-mdb1qm26.js +0 -2
- package/dist/client/static/js/MergeDiffView-7kpjxcg9.js +0 -1
- package/dist/client/static/js/Modal-0p9cr2tn.js +0 -60
- package/dist/client/static/js/SessionsView-gptt0rq8.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-3hkq8grc.js +0 -1
- package/dist/client/static/js/bash-n7wcmq3s.js +0 -1
- package/dist/client/static/js/c-20y64hcp.js +0 -1
- package/dist/client/static/js/cpp-ty6n0dg9.js +0 -1
- package/dist/client/static/js/css-9gak6bze.js +0 -1
- package/dist/client/static/js/css-ncvxaxt0.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-9m18e6m5.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-d4egnv9v.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-5bvd5k2t.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-grqv890n.js +0 -1
- package/dist/client/static/js/graphql-6rwdfcnf.js +0 -1
- package/dist/client/static/js/html-p76eszt9.js +0 -1
- package/dist/client/static/js/index-28wv94gz.js +0 -2
- package/dist/client/static/js/index-3wgjtp2k.js +0 -9
- package/dist/client/static/js/index-7trfm17d.js +0 -2
- package/dist/client/static/js/index-ays8t3t3.js +0 -4
- package/dist/client/static/js/index-cxe75e06.js +0 -2
- package/dist/client/static/js/index-dmb1pykr.js +0 -1
- package/dist/client/static/js/index-fqc1snjw.js +0 -1
- package/dist/client/static/js/index-jsn2kedv.js +0 -1
- package/dist/client/static/js/index-n1xmkf2g.js +0 -2
- package/dist/client/static/js/index-pe4d9wht.js +0 -1
- package/dist/client/static/js/index-pjf5wak8.js +0 -2
- package/dist/client/static/js/index-sm8gpk3g.js +0 -4
- package/dist/client/static/js/index-st6a8q5z.js +0 -470
- package/dist/client/static/js/index-stmwbavz.js +0 -1
- package/dist/client/static/js/index-swaveqxg.css +0 -1
- package/dist/client/static/js/index-t82q5t6m.js +0 -1
- package/dist/client/static/js/index-t9zjfxvc.js +0 -1
- package/dist/client/static/js/index-tdbcp70z.js +0 -2
- package/dist/client/static/js/index-v38j2zxn.js +0 -2
- package/dist/client/static/js/index-x17y7xdr.js +0 -2
- package/dist/client/static/js/index-xrb4kjr3.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-rzpg7qk1.js +0 -1
- package/dist/client/static/js/ini-kjcpgebh.js +0 -1
- package/dist/client/static/js/java-0bcyv1jt.js +0 -1
- package/dist/client/static/js/javascript-0mqgcvps.js +0 -1
- package/dist/client/static/js/json-xha2drny.js +0 -1
- package/dist/client/static/js/jsx-8p6dqgpq.js +0 -1
- package/dist/client/static/js/lua-njwwdj4s.js +0 -1
- package/dist/client/static/js/markdown-8gbyxxjd.js +0 -1
- package/dist/client/static/js/one-dark-pro-sstqnzcf.js +0 -1
- package/dist/client/static/js/one-light-6fpxxq2j.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-eac14hsq.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-a9xqvysf.js +0 -1
- package/dist/client/static/js/properties-d5bwhgwz.js +0 -1
- package/dist/client/static/js/python-fdwwjjhh.js +0 -1
- package/dist/client/static/js/r-4d2ygtfj.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-jv2pm0fe.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-j74sc0b6.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-eaf19baz.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-d4j5nq31.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-ba862a9p.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-cx3f29mq.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-e8yb44pd.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-zvdv84vp.js +0 -1
- package/dist/client/static/js/tsx-dk8rpgtw.js +0 -1
- package/dist/client/static/js/typescript-5txwpd9t.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-hbv0cg4s.js +0 -1
- package/dist/client/static/js/xml-8516fzfp.js +0 -1
- package/dist/client/static/js/yaml-6k1tmwtm.js +0 -1
|
@@ -46,31 +46,31 @@ const STOP_UI: Record<GoalContinuationStop, { badge: string; title: string; tone
|
|
|
46
46
|
'max-turns': {
|
|
47
47
|
badge: 'stopped',
|
|
48
48
|
title: 'Automatic continuation stopped at the turn ceiling',
|
|
49
|
-
tone: 'text-warning',
|
|
49
|
+
tone: 'text-warning-text',
|
|
50
50
|
action: 'resume',
|
|
51
51
|
},
|
|
52
52
|
budget: {
|
|
53
53
|
badge: 'budget',
|
|
54
54
|
title: "Automatic continuation stopped: the goal's token budget is spent",
|
|
55
|
-
tone: 'text-warning',
|
|
55
|
+
tone: 'text-warning-text',
|
|
56
56
|
action: 'budget',
|
|
57
57
|
},
|
|
58
58
|
blocked: {
|
|
59
59
|
badge: 'blocked',
|
|
60
60
|
title: 'The auditor says this goal needs you before more work can help',
|
|
61
|
-
tone: 'text-warning',
|
|
61
|
+
tone: 'text-warning-text',
|
|
62
62
|
action: 'resume',
|
|
63
63
|
},
|
|
64
64
|
complete: {
|
|
65
65
|
badge: 'done',
|
|
66
66
|
title: 'The auditor judged the objective complete',
|
|
67
|
-
tone: 'text-success',
|
|
67
|
+
tone: 'text-success-text',
|
|
68
68
|
action: 'none',
|
|
69
69
|
},
|
|
70
70
|
'audit-failed': {
|
|
71
71
|
badge: 'unchecked',
|
|
72
72
|
title: 'The progress check could not run, so the loop stood down',
|
|
73
|
-
tone: 'text-warning',
|
|
73
|
+
tone: 'text-warning-text',
|
|
74
74
|
action: 'resume',
|
|
75
75
|
},
|
|
76
76
|
};
|
|
@@ -122,13 +122,13 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
|
|
|
122
122
|
// The spinner covers both halves of "not idle": a streaming turn, and the
|
|
123
123
|
// auditor Kabmo runs after it (`goal_evaluating`).
|
|
124
124
|
const busy = running || evaluating;
|
|
125
|
-
const tone = busy ? 'text-ink/45' : stopped ? STOP_UI[stop].tone : paused ? 'text-warning' : 'text-ink/45';
|
|
125
|
+
const tone = busy ? 'text-ink/45' : stopped ? STOP_UI[stop].tone : paused ? 'text-warning-text' : 'text-ink/45';
|
|
126
126
|
const badge = paused
|
|
127
|
-
? 'bg-warning/10 text-warning'
|
|
127
|
+
? 'bg-warning/10 text-warning-text'
|
|
128
128
|
: stop === 'complete'
|
|
129
|
-
? 'bg-success/10 text-success'
|
|
129
|
+
? 'bg-success/10 text-success-text'
|
|
130
130
|
: stop
|
|
131
|
-
? 'bg-warning/10 text-warning'
|
|
131
|
+
? 'bg-warning/10 text-warning-text'
|
|
132
132
|
: 'bg-ink/8 text-ink/60';
|
|
133
133
|
|
|
134
134
|
const tokens =
|
|
@@ -198,7 +198,7 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
|
|
|
198
198
|
disabled={pending}
|
|
199
199
|
aria-label="Raise the goal budget"
|
|
200
200
|
title="Raise the budget: automatic continuation stopped when it ran out"
|
|
201
|
-
className="flex shrink-0 items-center gap-1 rounded border border-warning/30 px-1.5 py-0.5 text-[10px] text-warning transition-colors hover:bg-warning/10 disabled:opacity-50"
|
|
201
|
+
className="flex shrink-0 items-center gap-1 rounded border border-warning/30 px-1.5 py-0.5 text-[10px] text-warning-text transition-colors hover:bg-warning/10 disabled:opacity-50"
|
|
202
202
|
>
|
|
203
203
|
<SlidersHorizontal size={10} />
|
|
204
204
|
<span className="hidden @[480px]:inline">Raise budget</span>
|
|
@@ -219,7 +219,7 @@ export function GoalBanner({ record, running, continuation, evaluating, pending,
|
|
|
219
219
|
: 'Pause — stop automatic continuation after the current turn'
|
|
220
220
|
}
|
|
221
221
|
className={`flex shrink-0 items-center gap-1 rounded border border-ink/15 px-1.5 py-0.5 text-[10px] transition-colors hover:bg-ink/5 disabled:opacity-50 ${
|
|
222
|
-
paused || stopped ? 'text-warning border-warning/30 hover:bg-warning/10' : 'text-ink/70'
|
|
222
|
+
paused || stopped ? 'text-warning-text border-warning/30 hover:bg-warning/10' : 'text-ink/70'
|
|
223
223
|
}`}
|
|
224
224
|
>
|
|
225
225
|
{paused || stopped ? <Play size={10} /> : <Pause size={10} />}
|
|
@@ -175,7 +175,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
175
175
|
/>
|
|
176
176
|
<Stat label="Time" value={`${Math.round(goalRecord.timeUsedSeconds / 60)}m`} />
|
|
177
177
|
</div>
|
|
178
|
-
{error && <div className="text-error">{error}</div>}
|
|
178
|
+
{error && <div className="text-error-text">{error}</div>}
|
|
179
179
|
<div className="flex flex-wrap items-center gap-2 pt-1">
|
|
180
180
|
{goalRecord.status === 'paused' ? (
|
|
181
181
|
<ActionButton onClick={() => void submit({ kind: 'resume' })} disabled={busy}>
|
|
@@ -209,7 +209,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
209
209
|
type="button"
|
|
210
210
|
onClick={() => void submit({ kind: 'drop' })}
|
|
211
211
|
disabled={busy}
|
|
212
|
-
className="ml-auto rounded border border-error/40 px-3 py-1.5 text-[11px] text-error transition-colors hover:bg-error/10 disabled:opacity-50"
|
|
212
|
+
className="ml-auto rounded border border-error/40 px-3 py-1.5 text-[11px] text-error-text transition-colors hover:bg-error/10 disabled:opacity-50"
|
|
213
213
|
>
|
|
214
214
|
Drop goal
|
|
215
215
|
</button>
|
|
@@ -283,7 +283,7 @@ export function GoalModal({ open, goal, goalRecord, pending, defaultBudget = nul
|
|
|
283
283
|
Let the agent interview me first — it asks one question per turn, then writes the objective itself.
|
|
284
284
|
</span>
|
|
285
285
|
</label>
|
|
286
|
-
{error && <div className="text-[11.5px] text-error">{error}</div>}
|
|
286
|
+
{error && <div className="text-[11.5px] text-error-text">{error}</div>}
|
|
287
287
|
<div className="flex justify-end gap-2 pt-1">
|
|
288
288
|
<button
|
|
289
289
|
type="button"
|
package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.test.tsx
CHANGED
|
@@ -72,7 +72,7 @@ describe('SessionModeDropdown', () => {
|
|
|
72
72
|
await act(async () => {
|
|
73
73
|
(trigger as HTMLButtonElement).click();
|
|
74
74
|
});
|
|
75
|
-
const options =
|
|
75
|
+
const options = document.body.querySelectorAll('[role="option"]');
|
|
76
76
|
expect(options).toHaveLength(2);
|
|
77
77
|
expect(options[0]?.getAttribute('aria-selected')).toBe('true');
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@ describe('SessionModeDropdown', () => {
|
|
|
80
80
|
(options[1] as HTMLButtonElement).click();
|
|
81
81
|
});
|
|
82
82
|
expect(picks).toEqual(['code']);
|
|
83
|
-
expect(
|
|
83
|
+
expect(document.body.querySelector('[role="listbox"]')).toBeNull();
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
test('a chat that has not spawned says "Mode", not an empty chip', async () => {
|
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
* or a one-value ladder — and `ModeToggles` then keeps the Plan button.
|
|
14
14
|
*
|
|
15
15
|
* The popover mirrors `AccessDropdown`: a chip, a list, a check on the current
|
|
16
|
-
* value, and dismissal on outside press.
|
|
16
|
+
* value, and dismissal on outside press. It is PORTALLED for the same reason:
|
|
17
|
+
* the chip lives in the composer's attachment row, and an `absolute left-0`
|
|
18
|
+
* panel ran past a phone's right edge (measured at 320px: 346px).
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
|
-
import { useRef, useState } from 'preact/hooks';
|
|
21
|
+
import { useCallback, useRef, useState } from 'preact/hooks';
|
|
20
22
|
import { Check, ChevronDown, Layers } from 'lucide-preact';
|
|
21
|
-
import {
|
|
23
|
+
import { AnchoredMenu } from '@/client/components/common/anchored-menu';
|
|
24
|
+
import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
22
25
|
import type { SessionModeState } from '@kabmo-labs/kabmo-harness/session-modes';
|
|
23
26
|
|
|
24
27
|
export interface SessionModeDropdownProps {
|
|
@@ -32,8 +35,12 @@ export interface SessionModeDropdownProps {
|
|
|
32
35
|
|
|
33
36
|
export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false }: SessionModeDropdownProps) {
|
|
34
37
|
const [open, setOpen] = useState(false);
|
|
35
|
-
const
|
|
36
|
-
|
|
38
|
+
const [anchor, setAnchor] = useState<AnchorRect | null>(null);
|
|
39
|
+
const triggerRef = useRef<HTMLButtonElement>(null);
|
|
40
|
+
const close = useCallback(() => {
|
|
41
|
+
setOpen(false);
|
|
42
|
+
setAnchor(null);
|
|
43
|
+
}, []);
|
|
37
44
|
|
|
38
45
|
if (!mode || mode.values.length < 2) return null;
|
|
39
46
|
const current = mode.values.find((choice) => choice.value === mode.currentValue);
|
|
@@ -42,11 +49,23 @@ export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false
|
|
|
42
49
|
// a broken chip beside a working list.
|
|
43
50
|
const label = current?.name ?? (mode.currentValue || 'Mode');
|
|
44
51
|
|
|
52
|
+
const toggle = () => {
|
|
53
|
+
if (open) {
|
|
54
|
+
close();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const trigger = triggerRef.current;
|
|
58
|
+
if (!trigger) return;
|
|
59
|
+
setAnchor(anchorRectOf(trigger));
|
|
60
|
+
setOpen(true);
|
|
61
|
+
};
|
|
62
|
+
|
|
45
63
|
return (
|
|
46
|
-
<div
|
|
64
|
+
<div>
|
|
47
65
|
<button
|
|
66
|
+
ref={triggerRef}
|
|
48
67
|
type="button"
|
|
49
|
-
onClick={
|
|
68
|
+
onClick={toggle}
|
|
50
69
|
disabled={pending}
|
|
51
70
|
aria-haspopup="listbox"
|
|
52
71
|
aria-expanded={open}
|
|
@@ -58,35 +77,35 @@ export function SessionModeDropdown({ mode, pending, onSelect, iconOnly = false
|
|
|
58
77
|
{!iconOnly && <span className="max-w-[9rem] truncate">{label}</span>}
|
|
59
78
|
<ChevronDown size={11} className={`flex-shrink-0 text-ink/40 transition-transform ${open ? 'rotate-180' : ''}`} />
|
|
60
79
|
</button>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{mode.values.map((choice) => (
|
|
71
|
-
<button
|
|
72
|
-
key={choice.value}
|
|
73
|
-
type="button"
|
|
74
|
-
role="option"
|
|
75
|
-
aria-selected={choice.value === mode.currentValue}
|
|
76
|
-
onClick={() => {
|
|
77
|
-
setOpen(false);
|
|
78
|
-
onSelect(choice.value);
|
|
79
|
-
}}
|
|
80
|
-
className={`w-full text-left px-3 py-1.5 flex items-center justify-between gap-2 transition-colors hover:bg-ink/5 ${
|
|
81
|
-
choice.value === mode.currentValue ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
|
|
82
|
-
}`}
|
|
83
|
-
>
|
|
84
|
-
<span className="truncate">{choice.name}</span>
|
|
85
|
-
{choice.value === mode.currentValue && <Check size={12} className="text-ink shrink-0" />}
|
|
86
|
-
</button>
|
|
87
|
-
))}
|
|
80
|
+
<AnchoredMenu
|
|
81
|
+
anchor={open ? anchor : null}
|
|
82
|
+
role="listbox"
|
|
83
|
+
ariaLabel="Session mode"
|
|
84
|
+
className="w-44 max-w-[calc(100vw-1rem)] bg-paper border border-ink/20 rounded-md shadow-lg py-1 text-xs"
|
|
85
|
+
onClose={close}
|
|
86
|
+
>
|
|
87
|
+
<div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">
|
|
88
|
+
Session Mode
|
|
88
89
|
</div>
|
|
89
|
-
|
|
90
|
+
{mode.values.map((choice) => (
|
|
91
|
+
<button
|
|
92
|
+
key={choice.value}
|
|
93
|
+
type="button"
|
|
94
|
+
role="option"
|
|
95
|
+
aria-selected={choice.value === mode.currentValue}
|
|
96
|
+
onClick={() => {
|
|
97
|
+
close();
|
|
98
|
+
onSelect(choice.value);
|
|
99
|
+
}}
|
|
100
|
+
className={`w-full text-left px-3 py-1.5 flex items-center justify-between gap-2 transition-colors hover:bg-ink/5 ${
|
|
101
|
+
choice.value === mode.currentValue ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
|
|
102
|
+
}`}
|
|
103
|
+
>
|
|
104
|
+
<span className="truncate">{choice.name}</span>
|
|
105
|
+
{choice.value === mode.currentValue && <Check size={12} className="text-ink shrink-0" />}
|
|
106
|
+
</button>
|
|
107
|
+
))}
|
|
108
|
+
</AnchoredMenu>
|
|
90
109
|
</div>
|
|
91
110
|
);
|
|
92
111
|
}
|
package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.test.tsx
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The thinking chip's list.
|
|
8
|
+
*
|
|
9
|
+
* The panel is PORTALLED (`AnchoredMenu`): this chip sits in the composer's
|
|
10
|
+
* bottom row beside the access control, and an `absolute left-0` panel there
|
|
11
|
+
* ran past a phone's right edge — measured at 320px, the access panel ended at
|
|
12
|
+
* 346. The test asserts the STRUCTURE (rows live in `document.body`, the panel
|
|
13
|
+
* is `fixed`) because a row-only assertion would stay green with the overflow
|
|
14
|
+
* restored.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
|
|
18
|
+
import { Window } from 'happy-dom';
|
|
19
|
+
import { h, render } from 'preact';
|
|
20
|
+
import { act } from 'preact/test-utils';
|
|
21
|
+
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
22
|
+
import { ThinkingLevelDropdown } from '@/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown';
|
|
23
|
+
|
|
24
|
+
const mounted: HTMLElement[] = [];
|
|
25
|
+
|
|
26
|
+
beforeAll(() => {
|
|
27
|
+
installDomGlobals(new Window({ url: 'http://localhost' }));
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
afterEach(() => {
|
|
31
|
+
for (const host of mounted.splice(0)) {
|
|
32
|
+
render(null, host);
|
|
33
|
+
host.remove();
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
afterAll(() => {
|
|
38
|
+
restoreDomGlobals();
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
async function mount(node: h.JSX.Element): Promise<HTMLElement> {
|
|
42
|
+
const host = document.createElement('div');
|
|
43
|
+
document.body.appendChild(host);
|
|
44
|
+
await act(async () => {
|
|
45
|
+
render(node, host);
|
|
46
|
+
});
|
|
47
|
+
mounted.push(host);
|
|
48
|
+
return host;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
describe('ThinkingLevelDropdown', () => {
|
|
52
|
+
test('opens a portalled listbox of the model’s levels', async () => {
|
|
53
|
+
const host = await mount(
|
|
54
|
+
h(ThinkingLevelDropdown, {
|
|
55
|
+
thinkingLevels: ['low', 'high'],
|
|
56
|
+
currentThinking: 'low',
|
|
57
|
+
onSelect: () => {},
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
await act(async () => {
|
|
62
|
+
(host.querySelector('button') as HTMLButtonElement).click();
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// Inside the row an absolute panel widened the scroll area; the portal keeps
|
|
66
|
+
// the list out of that layout and lets `placeMenu` clamp it.
|
|
67
|
+
expect(host.querySelector('[role="listbox"]')).toBeNull();
|
|
68
|
+
const listbox = document.body.querySelector('[role="listbox"]');
|
|
69
|
+
expect(listbox?.getAttribute('aria-label')).toBe('Thinking level');
|
|
70
|
+
expect(listbox?.className).toContain('fixed');
|
|
71
|
+
expect([...document.body.querySelectorAll('[role="option"]')].map((row) => row.textContent)).toEqual([
|
|
72
|
+
'low',
|
|
73
|
+
'high',
|
|
74
|
+
]);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
test('picking a level reports it and closes the list', async () => {
|
|
78
|
+
const picked: string[] = [];
|
|
79
|
+
const host = await mount(
|
|
80
|
+
h(ThinkingLevelDropdown, {
|
|
81
|
+
thinkingLevels: ['low', 'high'],
|
|
82
|
+
currentThinking: 'low',
|
|
83
|
+
onSelect: (level) => picked.push(level),
|
|
84
|
+
}),
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
await act(async () => {
|
|
88
|
+
(host.querySelector('button') as HTMLButtonElement).click();
|
|
89
|
+
});
|
|
90
|
+
await act(async () => {
|
|
91
|
+
(document.body.querySelectorAll('[role="option"]')[1] as HTMLButtonElement).click();
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
expect(picked).toEqual(['high']);
|
|
95
|
+
expect(document.body.querySelector('[role="listbox"]')).toBeNull();
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
test('stays disabled when the model exposes no levels', async () => {
|
|
99
|
+
const host = await mount(
|
|
100
|
+
h(ThinkingLevelDropdown, { thinkingLevels: [], currentThinking: 'Default', onSelect: () => {} }),
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
const trigger = host.querySelector('button') as HTMLButtonElement;
|
|
104
|
+
expect(trigger.disabled).toBe(true);
|
|
105
|
+
await act(async () => {
|
|
106
|
+
trigger.click();
|
|
107
|
+
});
|
|
108
|
+
expect(document.body.querySelector('[role="listbox"]')).toBeNull();
|
|
109
|
+
});
|
|
110
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useRef, useState } from 'preact/hooks';
|
|
1
|
+
import { useCallback, useRef, useState } from 'preact/hooks';
|
|
2
2
|
import { Brain, Check, ChevronDown } from 'lucide-preact';
|
|
3
|
-
import {
|
|
3
|
+
import { AnchoredMenu } from '@/client/components/common/anchored-menu';
|
|
4
|
+
import { anchorRectOf, type AnchorRect } from '@/shared/lib/ui/menu-anchor';
|
|
4
5
|
|
|
5
6
|
interface ThinkingLevelDropdownProps {
|
|
6
7
|
thinkingLevels: string[];
|
|
@@ -12,19 +13,37 @@ interface ThinkingLevelDropdownProps {
|
|
|
12
13
|
|
|
13
14
|
export function ThinkingLevelDropdown({ thinkingLevels, currentThinking, onSelect, iconOnly = false }: ThinkingLevelDropdownProps) {
|
|
14
15
|
const [showThinking, setShowThinking] = useState(false);
|
|
15
|
-
const
|
|
16
|
+
const [anchor, setAnchor] = useState<AnchorRect | null>(null);
|
|
17
|
+
const triggerRef = useRef<HTMLButtonElement>(null);
|
|
16
18
|
const listboxId = useRef(`thinking-listbox-${Math.random().toString(36).slice(2, 9)}`).current;
|
|
17
|
-
|
|
19
|
+
const close = useCallback(() => {
|
|
20
|
+
setShowThinking(false);
|
|
21
|
+
setAnchor(null);
|
|
22
|
+
}, []);
|
|
23
|
+
// Portalled for the same measured reason as `AccessDropdown`: this chip sits
|
|
24
|
+
// in the composer's bottom row, whose rightmost controls leave no room for an
|
|
25
|
+
// `absolute left-0` panel on a phone. `placeMenu` clamps it to the viewport.
|
|
26
|
+
const toggle = () => {
|
|
27
|
+
if (showThinking) {
|
|
28
|
+
close();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const trigger = triggerRef.current;
|
|
32
|
+
if (!trigger) return;
|
|
33
|
+
setAnchor(anchorRectOf(trigger));
|
|
34
|
+
setShowThinking(true);
|
|
35
|
+
};
|
|
18
36
|
|
|
19
37
|
const handleSelect = (level: string) => {
|
|
20
|
-
|
|
38
|
+
close();
|
|
21
39
|
onSelect(level);
|
|
22
40
|
};
|
|
23
41
|
|
|
24
42
|
return (
|
|
25
|
-
<div
|
|
43
|
+
<div>
|
|
26
44
|
<button
|
|
27
|
-
|
|
45
|
+
ref={triggerRef}
|
|
46
|
+
onClick={toggle}
|
|
28
47
|
disabled={thinkingLevels.length === 0}
|
|
29
48
|
aria-label={`Thinking level: ${currentThinking}`}
|
|
30
49
|
aria-haspopup="listbox"
|
|
@@ -37,31 +56,31 @@ export function ThinkingLevelDropdown({ thinkingLevels, currentThinking, onSelec
|
|
|
37
56
|
{!iconOnly && <span className="whitespace-nowrap">{currentThinking}</span>}
|
|
38
57
|
<ChevronDown size={11} className={`flex-shrink-0 text-ink/40 transition-transform ${showThinking ? 'rotate-180' : ''}`} />
|
|
39
58
|
</button>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
<AnchoredMenu
|
|
60
|
+
anchor={showThinking && thinkingLevels.length > 0 ? anchor : null}
|
|
61
|
+
id={listboxId}
|
|
62
|
+
role="listbox"
|
|
63
|
+
ariaLabel="Thinking level"
|
|
64
|
+
className="w-40 max-w-[calc(100vw-1rem)] bg-paper border border-ink/20 rounded-md shadow-lg py-1 text-xs"
|
|
65
|
+
onClose={close}
|
|
66
|
+
>
|
|
67
|
+
<div className="px-3 py-1.5 text-[10px] uppercase tracking-wider text-ink/40 font-semibold border-b border-ink/5 mb-1">Thinking Level</div>
|
|
68
|
+
{thinkingLevels.map(level => (
|
|
69
|
+
<button
|
|
70
|
+
key={level}
|
|
71
|
+
type="button"
|
|
72
|
+
role="option"
|
|
73
|
+
aria-selected={currentThinking === level}
|
|
74
|
+
onClick={() => handleSelect(level)}
|
|
75
|
+
className={`w-full text-left px-3 py-1.5 flex items-center justify-between transition-colors hover:bg-ink/5 ${
|
|
76
|
+
currentThinking === level ? 'bg-ink/10 font-medium text-ink' : 'text-ink/75'
|
|
77
|
+
}`}
|
|
78
|
+
>
|
|
79
|
+
<span>{level}</span>
|
|
80
|
+
{currentThinking === level && <Check size={12} className="text-ink shrink-0" />}
|
|
81
|
+
</button>
|
|
82
|
+
))}
|
|
83
|
+
</AnchoredMenu>
|
|
65
84
|
</div>
|
|
66
85
|
);
|
|
67
86
|
}
|
|
@@ -257,3 +257,65 @@ describe('composer toolbar Plan/Goal host', () => {
|
|
|
257
257
|
expect(el.querySelectorAll(plan).length).toBe(0);
|
|
258
258
|
});
|
|
259
259
|
});
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Access Control exists only where the agent can ASK.
|
|
263
|
+
*
|
|
264
|
+
* The three tiers answer `session/request_permission`; an agent that never
|
|
265
|
+
* sends one (measured: `jcode`, and `pi-acp` behind `pi`/`omo`) leaves every
|
|
266
|
+
* position of the chip inert, so the chip is not drawn — and with it the
|
|
267
|
+
* Plan/Goal cluster that shares the same `showAccess` gate.
|
|
268
|
+
*/
|
|
269
|
+
describe('composer toolbar Access Control capability gate', () => {
|
|
270
|
+
const access = '[aria-label^="Access control:"]';
|
|
271
|
+
const plan = '[aria-label="Enter plan mode"]';
|
|
272
|
+
|
|
273
|
+
async function mountFor(harness: string): Promise<HTMLElement> {
|
|
274
|
+
container = document.createElement('div');
|
|
275
|
+
document.body.appendChild(container);
|
|
276
|
+
await act(async () => {
|
|
277
|
+
render(
|
|
278
|
+
h(ComposerToolbar, {
|
|
279
|
+
isMobile: false,
|
|
280
|
+
selectedModel: null,
|
|
281
|
+
onSelectModel: () => {},
|
|
282
|
+
thinkingLevels: [],
|
|
283
|
+
currentThinking: 'auto',
|
|
284
|
+
onSelectThinking: () => {},
|
|
285
|
+
isGenerating: false,
|
|
286
|
+
onSend: () => {},
|
|
287
|
+
sendDisabled: false,
|
|
288
|
+
showModel: false,
|
|
289
|
+
showThinking: false,
|
|
290
|
+
showAccess: true,
|
|
291
|
+
accessMode: 'always-ask',
|
|
292
|
+
onSelectAccess: () => {},
|
|
293
|
+
modes: MODES,
|
|
294
|
+
onOpenGoal: () => {},
|
|
295
|
+
harness,
|
|
296
|
+
}),
|
|
297
|
+
container,
|
|
298
|
+
);
|
|
299
|
+
});
|
|
300
|
+
return container;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
test('draws the chip for a harness that raises approvals', async () => {
|
|
304
|
+
const el = await mountFor('claude');
|
|
305
|
+
expect(el.querySelectorAll(access).length).toBe(1);
|
|
306
|
+
expect(el.querySelectorAll(plan).length).toBe(1);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
test('omits it for a harness that never asks', async () => {
|
|
310
|
+
const el = await mountFor('jcode');
|
|
311
|
+
expect(el.querySelectorAll(access).length).toBe(0);
|
|
312
|
+
expect(el.textContent).not.toContain('Always ask');
|
|
313
|
+
// Goal is Kabmo-owned and still runs on this agent, so the mode cluster
|
|
314
|
+
// stays: the approval capability gates the chip alone.
|
|
315
|
+
expect(el.querySelectorAll(plan).length).toBe(1);
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
test('omp keeps it: its own transports gate tools themselves', async () => {
|
|
319
|
+
expect((await mountFor('omp-rpc')).querySelectorAll(access).length).toBe(1);
|
|
320
|
+
});
|
|
321
|
+
});
|
|
@@ -7,6 +7,7 @@ import { ModeToggles } from '@/client/components/workspace/chat-timeline/chat-in
|
|
|
7
7
|
import { PluginComposerActions } from '@/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots';
|
|
8
8
|
import type { ComposerModes } from '@/client/components/workspace/chat-timeline/chat-input/modes-props';
|
|
9
9
|
import { DEFAULT_APPROVAL_MODE, type ApprovalMode } from '@kabmo-labs/kabmo-omp/access-mode';
|
|
10
|
+
import { harnessRaisesApprovals } from '@kabmo-labs/kabmo-harness/catalog';
|
|
10
11
|
|
|
11
12
|
export interface ComposerToolbarProps {
|
|
12
13
|
isMobile: boolean;
|
|
@@ -55,7 +56,7 @@ export interface ComposerToolbarProps {
|
|
|
55
56
|
onVoiceToggle?: () => void;
|
|
56
57
|
/** The draft, handed to a plugin `composerAction` at render time. */
|
|
57
58
|
text?: string;
|
|
58
|
-
/** Which harness runs this chat, and whether the
|
|
59
|
+
/** Which harness runs this chat, and whether the strip is drawn at all. */
|
|
59
60
|
harness?: string;
|
|
60
61
|
harnessEditable?: boolean;
|
|
61
62
|
onSelectHarness?: (harness: string) => void;
|
|
@@ -143,6 +144,10 @@ export function ComposerToolbar({
|
|
|
143
144
|
// comment above measured.
|
|
144
145
|
const actionSize = isMobile ? 'w-8 h-8' : 'w-7 h-7';
|
|
145
146
|
const iconSize = isMobile ? 14 : 12;
|
|
147
|
+
// An agent that never sends `session/request_permission` (measured: jcode,
|
|
148
|
+
// pi-acp behind `pi`/`omo`) has nothing for the three tiers to answer, so the
|
|
149
|
+
// chip is not drawn at all — see `harnessRaisesApprovals`.
|
|
150
|
+
const accessAvailable = showAccess && harnessRaisesApprovals(harness);
|
|
146
151
|
|
|
147
152
|
return (
|
|
148
153
|
<div
|
|
@@ -181,10 +186,17 @@ export function ComposerToolbar({
|
|
|
181
186
|
/>
|
|
182
187
|
)}
|
|
183
188
|
|
|
184
|
-
{(showModel || showThinking) &&
|
|
189
|
+
{(showModel || showThinking) && accessAvailable && <div className="w-[1px] h-3 bg-ink/10" />}
|
|
185
190
|
|
|
186
|
-
{
|
|
187
|
-
<AccessDropdown
|
|
191
|
+
{accessAvailable && onSelectAccess && (
|
|
192
|
+
<AccessDropdown
|
|
193
|
+
value={accessMode}
|
|
194
|
+
onSelect={onSelectAccess}
|
|
195
|
+
harness={harness}
|
|
196
|
+
iconOnly={isMobile}
|
|
197
|
+
ladder={modes?.accessLadder ?? null}
|
|
198
|
+
{...(modes?.onSelectSessionMode ? { onSelectLadder: modes.onSelectSessionMode } : {})}
|
|
199
|
+
/>
|
|
188
200
|
)}
|
|
189
201
|
|
|
190
202
|
{/* On a narrow composer the mode toggles live in the row above (the
|
|
@@ -258,7 +270,7 @@ export function ComposerToolbar({
|
|
|
258
270
|
hashed hue.
|
|
259
271
|
|
|
260
272
|
`-text` is the palette's signal solved to 4.5:1 against paper and
|
|
261
|
-
canvas; the raw `text-error`/`text-info` measures 2.73:1 and 1.94:1
|
|
273
|
+
canvas; the raw `text-error-text`/`text-info-text` measures 2.73:1 and 1.94:1
|
|
262
274
|
on the worst palettes, under the 3:1 graphic floor for a 12px glyph.
|
|
263
275
|
Monochrome still paints the pair ink — its pass is (0,5,1) and
|
|
264
276
|
outranks the utility — so the hue survives only in the colour mode,
|
|
@@ -28,7 +28,7 @@ export function VoiceNotice({ status, error }: VoiceNoticeProps) {
|
|
|
28
28
|
|
|
29
29
|
if (error) {
|
|
30
30
|
return (
|
|
31
|
-
<div className="flex items-start gap-1.5 bg-error/5 px-3 py-1.5 text-[11px] text-error">
|
|
31
|
+
<div className="flex items-start gap-1.5 bg-error/5 px-3 py-1.5 text-[11px] text-error-text">
|
|
32
32
|
<AlertTriangle size={11} className="mt-0.5 shrink-0" />
|
|
33
33
|
<span className="min-w-0 flex-1 break-words">{error}</span>
|
|
34
34
|
</div>
|