@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
|
@@ -31,6 +31,7 @@ import type { ToolCallData } from '@/shared/types';
|
|
|
31
31
|
import type { TodoItem, TodoPhase, TodoProgress, TodoStatus } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
32
32
|
import { todoProgress } from '@kabmo-labs/kabmo-app-contracts/todo-snapshot';
|
|
33
33
|
import { parseNestedPhaseEntry, stripTrailingStatusNote } from '@/shared/lib/chat/todo/nested-phase';
|
|
34
|
+
import { parseFlatTodoList } from '@/shared/lib/chat/todo/flat-list';
|
|
34
35
|
|
|
35
36
|
export interface TodoDataSummary {
|
|
36
37
|
groups: TodoPhase[];
|
|
@@ -171,33 +172,6 @@ function mergePhaseGroups(rawGroups: TodoPhase[]): TodoPhase[] {
|
|
|
171
172
|
return result;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
/**
|
|
175
|
-
* A status from an agent's own list entry. opencode's vocabulary is
|
|
176
|
-
* `pending | in_progress | completed | cancelled`; `cancelled` is Kabmo's
|
|
177
|
-
* `abandoned` (a task dropped, not one still waiting). An unknown value is
|
|
178
|
-
* pending rather than invented as finished.
|
|
179
|
-
*/
|
|
180
|
-
function todoStatusOf(raw: unknown): TodoStatus {
|
|
181
|
-
if (typeof raw !== 'string') return 'pending';
|
|
182
|
-
switch (raw.toLowerCase()) {
|
|
183
|
-
case 'completed':
|
|
184
|
-
case 'done':
|
|
185
|
-
return 'completed';
|
|
186
|
-
case 'in_progress':
|
|
187
|
-
case 'in progress':
|
|
188
|
-
return 'in_progress';
|
|
189
|
-
case 'cancelled':
|
|
190
|
-
case 'canceled':
|
|
191
|
-
case 'abandoned':
|
|
192
|
-
case 'dropped':
|
|
193
|
-
return 'abandoned';
|
|
194
|
-
case 'blocked':
|
|
195
|
-
return 'blocked';
|
|
196
|
-
default:
|
|
197
|
-
return 'pending';
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
175
|
export function parseTodoData(tool: ToolCallData): TodoDataSummary {
|
|
202
176
|
const input = tool.input;
|
|
203
177
|
const inputObj = typeof input === 'object' && input !== null ? (input as Record<string, any>) : undefined;
|
|
@@ -273,32 +247,12 @@ export function parseTodoData(tool: ToolCallData): TodoDataSummary {
|
|
|
273
247
|
}
|
|
274
248
|
|
|
275
249
|
// An ACP agent sends its plan as a FLAT list with no phases and no checklist
|
|
276
|
-
// text
|
|
277
|
-
//
|
|
278
|
-
//
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
for (const entry of inputObj.todos) {
|
|
283
|
-
if (!entry || typeof entry !== 'object') continue;
|
|
284
|
-
const content = typeof entry.content === 'string' ? entry.content.trim() : '';
|
|
285
|
-
if (!content) continue;
|
|
286
|
-
tasks.push({ content, status: todoStatusOf(entry.status) });
|
|
287
|
-
}
|
|
288
|
-
if (tasks.length > 0) rawGroups.push({ name: 'Tasks', tasks });
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// codex-acp's `update_plan` names the same list `plan`, with `step` instead
|
|
292
|
-
// of `content`.
|
|
293
|
-
if (rawGroups.length === 0 && Array.isArray(inputObj?.plan)) {
|
|
294
|
-
const tasks: TodoItem[] = [];
|
|
295
|
-
for (const entry of inputObj.plan) {
|
|
296
|
-
if (!entry || typeof entry !== 'object') continue;
|
|
297
|
-
const content = typeof entry.step === 'string' ? entry.step.trim() : '';
|
|
298
|
-
if (!content) continue;
|
|
299
|
-
tasks.push({ content, status: todoStatusOf(entry.status) });
|
|
300
|
-
}
|
|
301
|
-
if (tasks.length > 0) rawGroups.push({ name: 'Tasks', tasks });
|
|
250
|
+
// text (`todos`/`plan`/`steps`; label and status spellings differ per
|
|
251
|
+
// adapter). `flat-list.ts` owns that table so this file only decides WHEN it
|
|
252
|
+
// applies: nothing in the text or omp's `list` matched.
|
|
253
|
+
if (rawGroups.length === 0) {
|
|
254
|
+
const flat = parseFlatTodoList(inputObj);
|
|
255
|
+
if (flat) rawGroups.push(...flat);
|
|
302
256
|
}
|
|
303
257
|
|
|
304
258
|
// Merge & deduplicate all phase groups
|
|
@@ -74,13 +74,13 @@ describe('todoStatusVisual', () => {
|
|
|
74
74
|
});
|
|
75
75
|
expect(todoStatusVisual('completed')).toEqual({
|
|
76
76
|
label: 'Completed',
|
|
77
|
-
tone: 'text-success',
|
|
77
|
+
tone: 'text-success-text',
|
|
78
78
|
active: false,
|
|
79
79
|
closed: true,
|
|
80
80
|
});
|
|
81
81
|
expect(todoStatusVisual('abandoned')).toEqual({
|
|
82
82
|
label: 'Abandoned',
|
|
83
|
-
tone: 'text-error
|
|
83
|
+
tone: 'text-error-text',
|
|
84
84
|
active: false,
|
|
85
85
|
closed: true,
|
|
86
86
|
});
|
|
@@ -89,7 +89,7 @@ describe('todoStatusVisual', () => {
|
|
|
89
89
|
test('a blocked task is warned about but not closed and not active', () => {
|
|
90
90
|
expect(todoStatusVisual('blocked')).toEqual({
|
|
91
91
|
label: 'Blocked',
|
|
92
|
-
tone: 'text-warning',
|
|
92
|
+
tone: 'text-warning-text',
|
|
93
93
|
active: false,
|
|
94
94
|
closed: false,
|
|
95
95
|
});
|
|
@@ -31,9 +31,9 @@ export interface TodoStatusVisual {
|
|
|
31
31
|
const STATUS_VISUALS: Record<TodoStatus, TodoStatusVisual> = {
|
|
32
32
|
pending: { label: 'Pending', tone: 'text-ink/45', active: false, closed: false },
|
|
33
33
|
in_progress: { label: 'In progress', tone: 'text-ink', active: true, closed: false },
|
|
34
|
-
completed: { label: 'Completed', tone: 'text-success', active: false, closed: true },
|
|
35
|
-
abandoned: { label: 'Abandoned', tone: 'text-error
|
|
36
|
-
blocked: { label: 'Blocked', tone: 'text-warning', active: false, closed: false },
|
|
34
|
+
completed: { label: 'Completed', tone: 'text-success-text', active: false, closed: true },
|
|
35
|
+
abandoned: { label: 'Abandoned', tone: 'text-error-text', active: false, closed: true },
|
|
36
|
+
blocked: { label: 'Blocked', tone: 'text-warning-text', active: false, closed: false },
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export function todoStatusVisual(status: TodoStatus): TodoStatusVisual {
|
|
@@ -29,8 +29,8 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
29
29
|
expect(getGitStatusInfo('')).toEqual({
|
|
30
30
|
charStatus: 'M',
|
|
31
31
|
label: 'Modified',
|
|
32
|
-
colorClass: 'text-info',
|
|
33
|
-
badgeBgClass: 'bg-info/10 text-info border-info/25',
|
|
32
|
+
colorClass: 'text-info-text',
|
|
33
|
+
badgeBgClass: 'bg-info/10 text-info-text border-info/25',
|
|
34
34
|
isStaged: false,
|
|
35
35
|
});
|
|
36
36
|
});
|
|
@@ -53,17 +53,17 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
53
53
|
expect(getGitStatusInfo('A')).toMatchObject({
|
|
54
54
|
charStatus: 'A',
|
|
55
55
|
label: 'Added',
|
|
56
|
-
colorClass: 'text-success',
|
|
56
|
+
colorClass: 'text-success-text',
|
|
57
57
|
});
|
|
58
58
|
expect(getGitStatusInfo('D')).toMatchObject({
|
|
59
59
|
charStatus: 'D',
|
|
60
60
|
label: 'Deleted',
|
|
61
|
-
colorClass: 'text-error',
|
|
61
|
+
colorClass: 'text-error-text',
|
|
62
62
|
});
|
|
63
63
|
expect(getGitStatusInfo('R')).toMatchObject({
|
|
64
64
|
charStatus: 'R',
|
|
65
65
|
label: 'Renamed',
|
|
66
|
-
colorClass: 'text-meta',
|
|
66
|
+
colorClass: 'text-meta-text',
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
|
|
@@ -76,7 +76,7 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
76
76
|
expect(getGitStatusInfo(code)).toMatchObject({
|
|
77
77
|
charStatus: 'U',
|
|
78
78
|
label: 'Untracked',
|
|
79
|
-
colorClass: 'text-success',
|
|
79
|
+
colorClass: 'text-success-text',
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
});
|
|
@@ -118,19 +118,19 @@ describe('getGitStatusInfo: staged status codes', () => {
|
|
|
118
118
|
expect(getGitStatusInfo('A', true)).toEqual({
|
|
119
119
|
charStatus: 'A',
|
|
120
120
|
label: 'Added (Staged)',
|
|
121
|
-
colorClass: 'text-success',
|
|
122
|
-
badgeBgClass: 'bg-success/10 text-success border-success/25',
|
|
121
|
+
colorClass: 'text-success-text',
|
|
122
|
+
badgeBgClass: 'bg-success/10 text-success-text border-success/25',
|
|
123
123
|
isStaged: true,
|
|
124
124
|
});
|
|
125
125
|
expect(getGitStatusInfo('D', true)).toMatchObject({
|
|
126
126
|
charStatus: 'D',
|
|
127
127
|
label: 'Deleted (Staged)',
|
|
128
|
-
colorClass: 'text-error',
|
|
128
|
+
colorClass: 'text-error-text',
|
|
129
129
|
});
|
|
130
130
|
expect(getGitStatusInfo('R', true)).toMatchObject({
|
|
131
131
|
charStatus: 'R',
|
|
132
132
|
label: 'Renamed (Staged)',
|
|
133
|
-
colorClass: 'text-meta',
|
|
133
|
+
colorClass: 'text-meta-text',
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
@@ -146,8 +146,8 @@ describe('getGitStatusInfo: staged status codes', () => {
|
|
|
146
146
|
expect(getGitStatusInfo('', true)).toEqual({
|
|
147
147
|
charStatus: 'M',
|
|
148
148
|
label: 'Modified (Staged)',
|
|
149
|
-
colorClass: 'text-info',
|
|
150
|
-
badgeBgClass: 'bg-info/10 text-info border-info/25',
|
|
149
|
+
colorClass: 'text-info-text',
|
|
150
|
+
badgeBgClass: 'bg-info/10 text-info-text border-info/25',
|
|
151
151
|
isStaged: true,
|
|
152
152
|
});
|
|
153
153
|
});
|
|
@@ -196,17 +196,17 @@ describe('buildGitStatusMaps', () => {
|
|
|
196
196
|
|
|
197
197
|
test('an untracked-only folder is green', () => {
|
|
198
198
|
const info = buildGitStatusMaps([change('src/a.ts', '??')]).folderMap.get('src');
|
|
199
|
-
expect(info).toMatchObject({ hasUntracked: true, hasModified: false, colorClass: 'text-success' });
|
|
199
|
+
expect(info).toMatchObject({ hasUntracked: true, hasModified: false, colorClass: 'text-success-text' });
|
|
200
200
|
});
|
|
201
201
|
|
|
202
202
|
test('a deleted-only folder is red', () => {
|
|
203
203
|
const info = buildGitStatusMaps([change('src/a.ts', ' D')]).folderMap.get('src');
|
|
204
|
-
expect(info).toMatchObject({ hasDeleted: true, colorClass: 'text-error' });
|
|
204
|
+
expect(info).toMatchObject({ hasDeleted: true, colorClass: 'text-error-text' });
|
|
205
205
|
});
|
|
206
206
|
|
|
207
207
|
test('a staged deletion is blue: staged outranks deleted in the color priority', () => {
|
|
208
208
|
const info = buildGitStatusMaps([change('src/a.ts', 'D ', true)]).folderMap.get('src');
|
|
209
|
-
expect(info).toMatchObject({ hasStaged: true, hasDeleted: true, colorClass: 'text-info' });
|
|
209
|
+
expect(info).toMatchObject({ hasStaged: true, hasDeleted: true, colorClass: 'text-info-text' });
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
test('a modified file outranks an untracked sibling for the folder color', () => {
|
|
@@ -214,7 +214,7 @@ describe('buildGitStatusMaps', () => {
|
|
|
214
214
|
change('src/a.ts', '??'),
|
|
215
215
|
change('src/b.ts', ' M'),
|
|
216
216
|
]).folderMap.get('src');
|
|
217
|
-
expect(info).toMatchObject({ hasModified: true, hasUntracked: true, colorClass: 'text-info' });
|
|
217
|
+
expect(info).toMatchObject({ hasModified: true, hasUntracked: true, colorClass: 'text-info-text' });
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
test('an untracked file outranks a deleted sibling for the folder color', () => {
|
|
@@ -222,7 +222,7 @@ describe('buildGitStatusMaps', () => {
|
|
|
222
222
|
change('src/a.ts', ' D'),
|
|
223
223
|
change('src/b.ts', '??'),
|
|
224
224
|
]).folderMap.get('src');
|
|
225
|
-
expect(info).toMatchObject({ hasUntracked: true, hasDeleted: true, colorClass: 'text-success' });
|
|
225
|
+
expect(info).toMatchObject({ hasUntracked: true, hasDeleted: true, colorClass: 'text-success-text' });
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
test('the dot uses the same tone as the folder name for add + modified + delete', () => {
|
|
@@ -231,15 +231,15 @@ describe('buildGitStatusMaps', () => {
|
|
|
231
231
|
change('src/b.ts', ' M'),
|
|
232
232
|
change('src/c.ts', ' D'),
|
|
233
233
|
]).folderMap.get('src');
|
|
234
|
-
expect(info).toMatchObject({ colorClass: 'text-info', dotClass: 'bg-info' });
|
|
234
|
+
expect(info).toMatchObject({ colorClass: 'text-info-text', dotClass: 'bg-info' });
|
|
235
235
|
});
|
|
236
236
|
|
|
237
237
|
test('the dot tone always tracks the name tone, one branch each', () => {
|
|
238
238
|
const cases: Array<{ rows: GitChange[]; name: string; dot: string }> = [
|
|
239
|
-
{ rows: [change('src/a.ts', 'UU')], name: 'text-warning', dot: 'bg-warning' },
|
|
240
|
-
{ rows: [change('src/a.ts', ' M')], name: 'text-info', dot: 'bg-info' },
|
|
241
|
-
{ rows: [change('src/a.ts', '??')], name: 'text-success', dot: 'bg-success' },
|
|
242
|
-
{ rows: [change('src/a.ts', ' D')], name: 'text-error', dot: 'bg-error' },
|
|
239
|
+
{ rows: [change('src/a.ts', 'UU')], name: 'text-warning-text', dot: 'bg-warning' },
|
|
240
|
+
{ rows: [change('src/a.ts', ' M')], name: 'text-info-text', dot: 'bg-info' },
|
|
241
|
+
{ rows: [change('src/a.ts', '??')], name: 'text-success-text', dot: 'bg-success' },
|
|
242
|
+
{ rows: [change('src/a.ts', ' D')], name: 'text-error-text', dot: 'bg-error' },
|
|
243
243
|
];
|
|
244
244
|
for (const c of cases) {
|
|
245
245
|
const info = buildGitStatusMaps(c.rows).folderMap.get('src');
|
|
@@ -47,8 +47,8 @@ export function getGitStatusInfo(status: string, isStaged: boolean = false): Git
|
|
|
47
47
|
return {
|
|
48
48
|
charStatus: '!',
|
|
49
49
|
label: UNMERGED_CODES[status],
|
|
50
|
-
colorClass: 'text-warning',
|
|
51
|
-
badgeBgClass: 'bg-warning/10 text-warning border-warning/25',
|
|
50
|
+
colorClass: 'text-warning-text',
|
|
51
|
+
badgeBgClass: 'bg-warning/10 text-warning-text border-warning/25',
|
|
52
52
|
isStaged: false,
|
|
53
53
|
isConflicted: true,
|
|
54
54
|
};
|
|
@@ -56,8 +56,8 @@ export function getGitStatusInfo(status: string, isStaged: boolean = false): Git
|
|
|
56
56
|
|
|
57
57
|
let charStatus = 'M';
|
|
58
58
|
let label = 'Modified';
|
|
59
|
-
let colorClass = 'text-info';
|
|
60
|
-
let badgeBgClass = 'bg-info/10 text-info border-info/25';
|
|
59
|
+
let colorClass = 'text-info-text';
|
|
60
|
+
let badgeBgClass = 'bg-info/10 text-info-text border-info/25';
|
|
61
61
|
|
|
62
62
|
const raw = (status || '').trim();
|
|
63
63
|
const normalized = raw.toUpperCase();
|
|
@@ -67,62 +67,62 @@ export function getGitStatusInfo(status: string, isStaged: boolean = false): Git
|
|
|
67
67
|
if (s === 'A') {
|
|
68
68
|
charStatus = 'A';
|
|
69
69
|
label = 'Added (Staged)';
|
|
70
|
-
colorClass = 'text-success';
|
|
71
|
-
badgeBgClass = 'bg-success/10 text-success border-success/25';
|
|
70
|
+
colorClass = 'text-success-text';
|
|
71
|
+
badgeBgClass = 'bg-success/10 text-success-text border-success/25';
|
|
72
72
|
} else if (s === 'D') {
|
|
73
73
|
charStatus = 'D';
|
|
74
74
|
label = 'Deleted (Staged)';
|
|
75
|
-
colorClass = 'text-error';
|
|
76
|
-
badgeBgClass = 'bg-error/10 text-error border-error/25';
|
|
75
|
+
colorClass = 'text-error-text';
|
|
76
|
+
badgeBgClass = 'bg-error/10 text-error-text border-error/25';
|
|
77
77
|
} else if (s === 'R') {
|
|
78
78
|
charStatus = 'R';
|
|
79
79
|
label = 'Renamed (Staged)';
|
|
80
|
-
colorClass = 'text-meta';
|
|
81
|
-
badgeBgClass = 'bg-meta/10 text-meta border-meta/25';
|
|
80
|
+
colorClass = 'text-meta-text';
|
|
81
|
+
badgeBgClass = 'bg-meta/10 text-meta-text border-meta/25';
|
|
82
82
|
} else if (s === 'U' || s === '?') {
|
|
83
83
|
charStatus = 'U';
|
|
84
84
|
label = 'Untracked';
|
|
85
|
-
colorClass = 'text-success';
|
|
86
|
-
badgeBgClass = 'bg-success/10 text-success border-success/25';
|
|
85
|
+
colorClass = 'text-success-text';
|
|
86
|
+
badgeBgClass = 'bg-success/10 text-success-text border-success/25';
|
|
87
87
|
} else {
|
|
88
88
|
charStatus = 'M';
|
|
89
89
|
label = 'Modified (Staged)';
|
|
90
|
-
colorClass = 'text-info';
|
|
91
|
-
badgeBgClass = 'bg-info/10 text-info border-info/25';
|
|
90
|
+
colorClass = 'text-info-text';
|
|
91
|
+
badgeBgClass = 'bg-info/10 text-info-text border-info/25';
|
|
92
92
|
}
|
|
93
93
|
} else {
|
|
94
94
|
if (normalized === '??' || normalized === '?' || normalized === 'U' || normalized === 'UNTRACKED') {
|
|
95
95
|
charStatus = 'U';
|
|
96
96
|
label = 'Untracked';
|
|
97
|
-
colorClass = 'text-success';
|
|
98
|
-
badgeBgClass = 'bg-success/10 text-success border-success/25';
|
|
97
|
+
colorClass = 'text-success-text';
|
|
98
|
+
badgeBgClass = 'bg-success/10 text-success-text border-success/25';
|
|
99
99
|
} else {
|
|
100
100
|
const s = normalized[1] || normalized[0] || 'M';
|
|
101
101
|
if (s === 'A') {
|
|
102
102
|
charStatus = 'A';
|
|
103
103
|
label = 'Added';
|
|
104
|
-
colorClass = 'text-success';
|
|
105
|
-
badgeBgClass = 'bg-success/10 text-success border-success/25';
|
|
104
|
+
colorClass = 'text-success-text';
|
|
105
|
+
badgeBgClass = 'bg-success/10 text-success-text border-success/25';
|
|
106
106
|
} else if (s === 'D') {
|
|
107
107
|
charStatus = 'D';
|
|
108
108
|
label = 'Deleted';
|
|
109
|
-
colorClass = 'text-error';
|
|
110
|
-
badgeBgClass = 'bg-error/10 text-error border-error/25';
|
|
109
|
+
colorClass = 'text-error-text';
|
|
110
|
+
badgeBgClass = 'bg-error/10 text-error-text border-error/25';
|
|
111
111
|
} else if (s === 'R') {
|
|
112
112
|
charStatus = 'R';
|
|
113
113
|
label = 'Renamed';
|
|
114
|
-
colorClass = 'text-meta';
|
|
115
|
-
badgeBgClass = 'bg-meta/10 text-meta border-meta/25';
|
|
114
|
+
colorClass = 'text-meta-text';
|
|
115
|
+
badgeBgClass = 'bg-meta/10 text-meta-text border-meta/25';
|
|
116
116
|
} else if (s === 'U' || s === '?') {
|
|
117
117
|
charStatus = 'U';
|
|
118
118
|
label = 'Untracked';
|
|
119
|
-
colorClass = 'text-success';
|
|
120
|
-
badgeBgClass = 'bg-success/10 text-success border-success/25';
|
|
119
|
+
colorClass = 'text-success-text';
|
|
120
|
+
badgeBgClass = 'bg-success/10 text-success-text border-success/25';
|
|
121
121
|
} else {
|
|
122
122
|
charStatus = 'M';
|
|
123
123
|
label = 'Modified';
|
|
124
|
-
colorClass = 'text-info';
|
|
125
|
-
badgeBgClass = 'bg-info/10 text-info border-info/25';
|
|
124
|
+
colorClass = 'text-info-text';
|
|
125
|
+
badgeBgClass = 'bg-info/10 text-info-text border-info/25';
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -162,7 +162,7 @@ export function buildGitStatusMaps(changes: GitChange[]): {
|
|
|
162
162
|
hasUntracked: false,
|
|
163
163
|
hasStaged: false,
|
|
164
164
|
hasDeleted: false,
|
|
165
|
-
colorClass: 'text-info',
|
|
165
|
+
colorClass: 'text-info-text',
|
|
166
166
|
dotClass: 'bg-info',
|
|
167
167
|
};
|
|
168
168
|
|
|
@@ -190,16 +190,16 @@ export function buildGitStatusMaps(changes: GitChange[]): {
|
|
|
190
190
|
// is the one state that needs the reader's hand), then Staged / Modified
|
|
191
191
|
// (info/blue), then Untracked (success/green), then Deleted (error/red).
|
|
192
192
|
if (existing.hasConflicted) {
|
|
193
|
-
existing.colorClass = 'text-warning';
|
|
193
|
+
existing.colorClass = 'text-warning-text';
|
|
194
194
|
existing.dotClass = 'bg-warning';
|
|
195
195
|
} else if (existing.hasModified || existing.hasStaged) {
|
|
196
|
-
existing.colorClass = 'text-info';
|
|
196
|
+
existing.colorClass = 'text-info-text';
|
|
197
197
|
existing.dotClass = 'bg-info';
|
|
198
198
|
} else if (existing.hasUntracked) {
|
|
199
|
-
existing.colorClass = 'text-success';
|
|
199
|
+
existing.colorClass = 'text-success-text';
|
|
200
200
|
existing.dotClass = 'bg-success';
|
|
201
201
|
} else if (existing.hasDeleted) {
|
|
202
|
-
existing.colorClass = 'text-error';
|
|
202
|
+
existing.colorClass = 'text-error-text';
|
|
203
203
|
existing.dotClass = 'bg-error';
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* The weights an author's signal class
|
|
20
|
-
* `text-success/90`, …).
|
|
21
|
-
*
|
|
22
|
-
* which is the old behaviour for a
|
|
19
|
+
* The weights an author's signal class may use (`text-error/60`,
|
|
20
|
+
* `text-success/90`, …). No shipped call site writes one after the text-token
|
|
21
|
+
* migration, but a plugin's class still can, and the rule must resolve it. A
|
|
22
|
+
* step not listed here falls back to the hue, which is the old behaviour for a
|
|
23
|
+
* class this build has never seen.
|
|
23
24
|
*/
|
|
24
25
|
const AUTHOR_COLOUR_STEPS = [60, 70, 80, 90] as const;
|
|
25
26
|
|
|
@@ -39,9 +39,26 @@ describe('OMP_SCHEMA release rows (19.4.0+)', () => {
|
|
|
39
39
|
// The subagent recursion default moved with the release: the panel shows
|
|
40
40
|
// the schema's value, so a stale row would offer what omp no longer does.
|
|
41
41
|
expect(OMP_SCHEMA.entries['task.maxRecursionDepth']?.default).toBe(1);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test("19.4.1's SSH multiplexing and tool-interceptor rows are offered", () => {
|
|
45
|
+
const expected: Record<string, { type: SchemaEntry['type']; tab: string; group: string; default: unknown }> = {
|
|
46
|
+
'ssh.multiplexing': { type: 'boolean', tab: 'tools', group: 'Execution', default: true },
|
|
47
|
+
'toolInterceptor.enabled': { type: 'boolean', tab: 'interaction', group: 'Approvals', default: false },
|
|
48
|
+
};
|
|
49
|
+
for (const [key, want] of Object.entries(expected)) {
|
|
50
|
+
const entry = OMP_SCHEMA.entries[key];
|
|
51
|
+
expect({ key, entry: entry && { type: entry.type, tab: entry.ui.tab, group: entry.ui.group, default: entry.default } }).toEqual({
|
|
52
|
+
key,
|
|
53
|
+
entry: want,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
42
56
|
|
|
43
|
-
// The
|
|
44
|
-
//
|
|
45
|
-
|
|
57
|
+
// The other two additions carry no `ui` block, so neither omp's panel nor
|
|
58
|
+
// this schema offers them — but they still move the source total, and a
|
|
59
|
+
// schema stuck at 662 is one release behind the binary.
|
|
60
|
+
expect(OMP_SCHEMA.entries['toolInterceptor.rules']).toBeUndefined();
|
|
61
|
+
expect(OMP_SCHEMA.entries['hindsight.mentalModelMaxTokens']).toBeUndefined();
|
|
62
|
+
expect(OMP_SCHEMA.source).toContain('666 settings');
|
|
46
63
|
});
|
|
47
64
|
});
|
|
@@ -37,6 +37,7 @@ import { DEFAULT_TTS_CONFIG } from '@/shared/lib/tts/settings';
|
|
|
37
37
|
|
|
38
38
|
export const DEFAULT_SETTINGS = {
|
|
39
39
|
theme: DEFAULT_THEME_ID,
|
|
40
|
+
customThemes: [],
|
|
40
41
|
editorFont: EDITOR_DEFAULT_FONT_FAMILY,
|
|
41
42
|
editorTheme: EDITOR_DEFAULT_THEME_ID,
|
|
42
43
|
autoSessionTitle: true,
|
|
@@ -13,12 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
import { describe, expect, test } from 'bun:test';
|
|
15
15
|
|
|
16
|
+
import type { ThemeId } from '@/shared/lib/theme/catalog';
|
|
16
17
|
import {
|
|
17
18
|
DEFAULT_THEME_ID,
|
|
18
19
|
THEMES,
|
|
19
20
|
THEME_SWATCHES,
|
|
21
|
+
isCustomThemeId,
|
|
20
22
|
isDarkTheme,
|
|
23
|
+
registerCustomThemes,
|
|
21
24
|
resolveTheme,
|
|
25
|
+
resolveThemeEntry,
|
|
22
26
|
resolveThemeId,
|
|
23
27
|
} from '@/shared/lib/theme/catalog';
|
|
24
28
|
import { themeStyleSheet } from '@/shared/lib/theme/css';
|
|
@@ -171,3 +175,41 @@ describe('terminal palette', () => {
|
|
|
171
175
|
expect(dracula.cursor).toBe('#BD93F9');
|
|
172
176
|
});
|
|
173
177
|
});
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
describe('user-defined palettes', () => {
|
|
181
|
+
const custom = {
|
|
182
|
+
id: 'custom-catalog-test',
|
|
183
|
+
name: 'Catalog test',
|
|
184
|
+
family: 'custom',
|
|
185
|
+
variant: 'dark' as const,
|
|
186
|
+
canvas: '#101418',
|
|
187
|
+
paper: '#14181e',
|
|
188
|
+
ink: '#e6e8eb',
|
|
189
|
+
error: '#ff6b6b',
|
|
190
|
+
success: '#4ade80',
|
|
191
|
+
info: '#60a5fa',
|
|
192
|
+
warning: '#fbbf24',
|
|
193
|
+
meta: '#a78bfa',
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
test('a registered palette resolves by id and reports its variant', () => {
|
|
197
|
+
registerCustomThemes([custom]);
|
|
198
|
+
expect(isCustomThemeId(custom.id)).toBe(true);
|
|
199
|
+
expect(resolveTheme(custom.id)).toEqual(custom);
|
|
200
|
+
expect(resolveThemeEntry(custom.id).custom).toBe(true);
|
|
201
|
+
expect(isDarkTheme(custom.id)).toBe(true);
|
|
202
|
+
expect(resolveThemeId(custom.id)).toBe(custom.id as ThemeId);
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
test('an unregistered custom id falls back to the shipped default', () => {
|
|
206
|
+
registerCustomThemes([]);
|
|
207
|
+
expect(resolveTheme(custom.id).id).toBe(DEFAULT_THEME_ID);
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
test('a built-in id wins before the custom table', () => {
|
|
211
|
+
registerCustomThemes([{ ...custom, id: 'paper' }]);
|
|
212
|
+
expect(resolveThemeEntry('paper').custom).toBe(false);
|
|
213
|
+
registerCustomThemes([]);
|
|
214
|
+
});
|
|
215
|
+
});
|
|
@@ -24,18 +24,27 @@ import { LIGHT_EXTENDED_PALETTES } from '@/shared/lib/theme/palettes/light-exten
|
|
|
24
24
|
/** The shipped default, and the fallback for any id the catalog does not know. */
|
|
25
25
|
export const DEFAULT_THEME_ID = 'paper';
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
/** The prefix every user-defined palette id carries. */
|
|
28
|
+
export const CUSTOM_THEME_PREFIX = 'custom-';
|
|
29
|
+
|
|
30
|
+
/** A user-defined palette id. Validated before it reaches CSS (see `custom.ts`). */
|
|
31
|
+
export type CustomThemeId = `${typeof CUSTOM_THEME_PREFIX}${string}`;
|
|
32
|
+
|
|
33
|
+
/** Every BUILT-IN id, as a literal union. */
|
|
34
|
+
export type BuiltinThemeId =
|
|
33
35
|
| (typeof KABMO_PALETTES)[number]['id']
|
|
34
36
|
| (typeof LIGHT_PALETTES)[number]['id']
|
|
35
37
|
| (typeof LIGHT_EXTENDED_PALETTES)[number]['id']
|
|
36
38
|
| (typeof DARK_PALETTES)[number]['id']
|
|
37
39
|
| (typeof DARK_EXTENDED_PALETTES)[number]['id'];
|
|
38
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Every id the app can paint, including a saved custom palette.
|
|
43
|
+
* `SettingsState.theme` is typed with it, so a built-in typo is still a compile
|
|
44
|
+
* error while a custom id remains a runtime value narrowed by `resolveTheme`.
|
|
45
|
+
*/
|
|
46
|
+
export type ThemeId = BuiltinThemeId | CustomThemeId;
|
|
47
|
+
|
|
39
48
|
const ALL_PALETTES = [
|
|
40
49
|
...KABMO_PALETTES,
|
|
41
50
|
...LIGHT_PALETTES,
|
|
@@ -73,16 +82,62 @@ export const THEMES: readonly ThemePalette[] = (() => {
|
|
|
73
82
|
return [...KABMO_PALETTES, ...[...families.values()].flat()];
|
|
74
83
|
})();
|
|
75
84
|
|
|
85
|
+
/**
|
|
86
|
+
* The user-defined palettes, registered from the stored settings.
|
|
87
|
+
*
|
|
88
|
+
* A module-level table rather than a parameter on every resolver: `resolveTheme`
|
|
89
|
+
* already had 33 callers across the client, the SSR shell, the OS shells and
|
|
90
|
+
* the mermaid hydrator, and threading a second argument through all of them
|
|
91
|
+
* would be a second source of truth that one caller forgets. The table is
|
|
92
|
+
* replaced as a whole, so a concurrent read sees the previous list or the new
|
|
93
|
+
* one, never a partial merge.
|
|
94
|
+
*/
|
|
95
|
+
let CUSTOM_BY_ID = new Map<string, ThemePalette>();
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Replace the custom palette table. Callers sanitize first
|
|
99
|
+
* (`customThemesFromSettings`), so an id or colour that reaches CSS has already
|
|
100
|
+
* passed the validator.
|
|
101
|
+
*/
|
|
102
|
+
export function registerCustomThemes(themes: readonly ThemePalette[]): void {
|
|
103
|
+
CUSTOM_BY_ID = new Map(
|
|
104
|
+
themes.filter((theme) => theme.id.startsWith(CUSTOM_THEME_PREFIX)).map((theme) => [theme.id, theme]),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** True for an id a user-defined palette may carry. */
|
|
109
|
+
export function isCustomThemeId(id: string | null | undefined): id is CustomThemeId {
|
|
110
|
+
return typeof id === 'string' && id.startsWith(CUSTOM_THEME_PREFIX);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
interface ResolvedPalette {
|
|
114
|
+
palette: ThemePalette;
|
|
115
|
+
custom: boolean;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The palette AND whether it came from the user table. `resolveTheme` needs the
|
|
120
|
+
* second fact only for the fallback decision, but the CSS writer needs it to
|
|
121
|
+
* know whether to emit a dynamic block.
|
|
122
|
+
*/
|
|
123
|
+
export function resolveThemeEntry(id: string | undefined | null): ResolvedPalette {
|
|
124
|
+
const builtin = id ? BY_ID[id] : undefined;
|
|
125
|
+
if (builtin) return { palette: builtin, custom: false };
|
|
126
|
+
const custom = id ? CUSTOM_BY_ID.get(id) : undefined;
|
|
127
|
+
if (custom) return { palette: custom, custom: true };
|
|
128
|
+
return { palette: DEFAULT_PALETTE, custom: false };
|
|
129
|
+
}
|
|
130
|
+
|
|
76
131
|
/**
|
|
77
132
|
* Resolve a stored theme id to a palette the catalog can actually paint.
|
|
78
133
|
*
|
|
79
|
-
* A settings row can name a theme this build no longer ships — a downgrade,
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* of an unstyled page.
|
|
134
|
+
* A settings row can name a theme this build no longer ships — a downgrade, the
|
|
135
|
+
* `noir` alias that was byte-identical to `one-dark-pro-soft`, or a custom
|
|
136
|
+
* palette the user deleted on another device. Every reader goes through here,
|
|
137
|
+
* so an unknown id renders the default instead of an unstyled page.
|
|
83
138
|
*/
|
|
84
139
|
export function resolveTheme(id: string | undefined | null): ThemePalette {
|
|
85
|
-
return (id
|
|
140
|
+
return resolveThemeEntry(id).palette;
|
|
86
141
|
}
|
|
87
142
|
|
|
88
143
|
export function isDarkTheme(id: string | undefined | null): boolean {
|