@kabmo-labs/kabmo 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +523 -506
- package/dist/client/static/js/Body-karkrzkc.js +3 -0
- package/dist/client/static/js/{CsvGrid-t84xmbk9.js → CsvGrid-j03knmbe.js} +2 -2
- package/dist/client/static/js/{DocxView-4jda3szm.js → DocxView-e8408vzs.js} +2 -2
- package/dist/client/static/js/{DrawioView-9qvvtnvt.js → DrawioView-fj4mfzch.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-4pba1ys5.js → HtmlPreview-9g8xwzgw.js} +1 -1
- package/dist/client/static/js/ImageView-sz4fzz9k.js +1 -0
- package/dist/client/static/js/LayoutWrapper-q6q4h04a.js +2 -0
- package/dist/client/static/js/MergeDiffView-b8f013ws.js +1 -0
- package/dist/client/static/js/Modal-ahecatp5.js +60 -0
- package/dist/client/static/js/{PdfView-sny55sne.js → PdfView-8jtdx5hd.js} +1 -1
- package/dist/client/static/js/SessionsView-jwp8xvw5.js +1 -0
- package/dist/client/static/js/{SheetView-ezqak2b4.js → SheetView-hwx8s864.js} +11 -11
- package/dist/client/static/js/{SvgPreview-q1cvdf4s.js → SvgPreview-ete36nzv.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-ftm2qwa3.js → abnfDiagram-O67JEVCF-7nsqzz6z.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-dc7zys46.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-j8kqfzmf.js → architectureDiagram-NJMV4G6O-xvpkfq2f.js} +11 -11
- package/dist/client/static/js/{astro-asmathwv.js → astro-rsrqgjjx.js} +1 -1
- package/dist/client/static/js/bash-n5d0esqg.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-m3zpsp9h.js → blockDiagram-BEXU5L5S-0saahcs6.js} +7 -7
- package/dist/client/static/js/c-pk766wx0.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-myshvbrx.js → c4Diagram-YGBWAQC7-ktpqnb4a.js} +2 -2
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-s0cwmsj4.js → classDiagram-v2-NBCMYWYE-x67cz3ms.js} +5 -5
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-t5t02sfr.js → cose-bilkent-JH36ORCC-9wzmhkz8.js} +1 -1
- package/dist/client/static/js/cpp-3pt91jvm.js +1 -0
- package/dist/client/static/js/css-sp1cgdbr.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-9fx59e89.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-6yxd72sh.js → cynefinDiagram-VND7K2PF-dmmgmv99.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-vft5103m.js → dagre-6A5THRUB-ygkkms1t.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-yy2jfvxt.js → diagram-22UHCM2B-qxj0pqb4.js} +14 -14
- package/dist/client/static/js/{diagram-3UASUU5V-1xqhzq20.js → diagram-3UASUU5V-77k8w5dt.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-f11cxgvm.js → diagram-ATOU4E4O-m0h86vf4.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-gqmkfcp7.js → diagram-CDSNMT55-5v28kaeg.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-1fg7304a.js → diagram-MLGK6HIB-zgcg9gaz.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-mem80369.js → diagram-MPIPVDR6-10c9s6e6.js} +2 -2
- package/dist/client/static/js/{dockerfile-jarjwxp9.js → dockerfile-dr9sdsqp.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-4rcbvfrj.js → ebnfDiagram-ZINNZB2B-mz4022dz.js} +1 -1
- package/dist/client/static/js/{elixir-7q2k61zb.js → elixir-3dy25ex8.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-ykd0stxz.js → elk-276RUBZZ-ccerbsag.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-b2th9bk4.js → erDiagram-OPXOYQCR-a8vjyrrw.js} +5 -5
- package/dist/client/static/js/{erlang-tjsd7n4d.js → erlang-v7344938.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-61d2ee91.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-104ywb7w.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-64p5r7cx.js → ganttDiagram-FUAMR5RP-sz1g29fp.js} +4 -4
- package/dist/client/static/js/gitGraph-4MIJSDKK-zkb30q0t.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-z3yc333r.js → gitGraphDiagram-X574FWY7-efqk42q0.js} +15 -15
- package/dist/client/static/js/graphql-2ntm7jyh.js +1 -0
- package/dist/client/static/js/html-mt2yb43b.js +1 -0
- package/dist/client/static/js/{index-w659dhe5.js → index-2a0b9ya2.js} +1 -1
- package/dist/client/static/js/index-2f6psebk.js +2 -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-rbkvw2xs.js → index-5tp3emtg.js} +2 -2
- package/dist/client/static/js/{index-h4qmywn5.js → index-6ac860yz.js} +2 -2
- package/dist/client/static/js/{index-77wznmg5.js → index-6ey6y9em.js} +2 -2
- package/dist/client/static/js/index-6h46r2de.js +1 -0
- package/dist/client/static/js/index-6qqsy78z.js +1 -0
- package/dist/client/static/js/{index-25zpywv7.js → index-6x0kn8pb.js} +2 -2
- package/dist/client/static/js/{index-dxx49b9m.js → index-7ma44af3.js} +3 -3
- package/dist/client/static/js/index-7s4dge1z.js +1 -0
- package/dist/client/static/js/{index-my856e49.js → index-7ynf3s2w.js} +2 -2
- package/dist/client/static/js/index-8aqjj2x2.js +1 -0
- package/dist/client/static/js/index-bkwax812.js +1 -0
- package/dist/client/static/js/{index-60g0e74a.js → index-dqf0srrp.js} +2 -2
- package/dist/client/static/js/{index-mdmtxh1c.js → index-dz18nn65.js} +2 -2
- package/dist/client/static/js/{index-5m0se6fk.js → index-e42ys2q3.js} +7 -7
- package/dist/client/static/js/{index-wxs0x3g1.js → index-ewryzs4g.js} +2 -2
- package/dist/client/static/js/{index-t415df0c.js → index-f31c6jg8.js} +22 -22
- package/dist/client/static/js/index-f44k9k8d.css +1 -0
- package/dist/client/static/js/{index-nnqyew8n.js → index-fhtnvqgf.js} +2 -2
- package/dist/client/static/js/{index-396g4zz4.js → index-gaa39w5q.js} +2 -2
- package/dist/client/static/js/{index-hmjb96kb.js → index-gqsnyh8k.js} +2 -2
- package/dist/client/static/js/index-gw4c5n3a.js +2 -0
- package/dist/client/static/js/index-j863hg0d.js +9 -0
- package/dist/client/static/js/{index-e4yj4kbe.js → index-jnxmvxb8.js} +12 -12
- package/dist/client/static/js/{index-0prwdwyb.js → index-jxsha63v.js} +2 -2
- package/dist/client/static/js/index-k1576e2m.js +2 -0
- package/dist/client/static/js/index-k4qshngy.js +4 -0
- package/dist/client/static/js/{index-3x3nhs8n.js → index-k56patms.js} +2 -2
- package/dist/client/static/js/{index-8pqx5n2p.js → index-kc5yt2cd.js} +2 -2
- package/dist/client/static/js/index-mkp3gwag.js +1 -0
- package/dist/client/static/js/{index-q9gbwqbe.js → index-nzq51nbb.js} +7 -7
- package/dist/client/static/js/{index-c2vc6znd.js → index-q5q8a3qn.js} +2 -2
- package/dist/client/static/js/{index-g71wn1pr.js → index-qbqm3c91.js} +5 -5
- package/dist/client/static/js/{index-sw370sk7.js → index-qkcmspxq.js} +2 -2
- package/dist/client/static/js/index-r1wrke3j.js +1 -0
- package/dist/client/static/js/index-rr79n77k.js +470 -0
- package/dist/client/static/js/{index-y1j18rha.js → index-rxt8sf9a.js} +2 -2
- package/dist/client/static/js/{index-6m5n8b6w.js → index-ssepzdaz.js} +6 -6
- package/dist/client/static/js/{index-rsyqf691.js → index-sxag9ptg.js} +2 -2
- package/dist/client/static/js/{index-k57bandz.js → index-t71k3b28.js} +2 -2
- package/dist/client/static/js/index-tc07gd33.js +2 -0
- 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-ebnd5hnr.js → index-tnxp90ac.js} +1 -1
- package/dist/client/static/js/{index-ms80nne4.js → index-tq3t3qm4.js} +2 -2
- package/dist/client/static/js/index-ts8rhd06.js +1 -0
- package/dist/client/static/js/{index-xtrsvm0d.js → index-v8xhgfeq.js} +2 -2
- package/dist/client/static/js/{index-n71ffk62.js → index-vb5a3g01.js} +4 -4
- package/dist/client/static/js/{index-bwwgtesb.js → index-ver116ed.js} +1 -1
- package/dist/client/static/js/{index-hge0y4vn.js → index-vf01q99d.js} +2 -2
- package/dist/client/static/js/{index-wgcgshdh.js → index-w5j1wgcz.js} +1 -1
- package/dist/client/static/js/{index-cwwg7k5f.js → index-wnk9k57k.js} +27 -27
- package/dist/client/static/js/{index-2gf593e3.js → index-x7h04xzf.js} +2 -2
- package/dist/client/static/js/{index-kbaffwp1.js → index-xfyxmaj1.js} +85 -85
- package/dist/client/static/js/index-xygk0v3e.js +2 -0
- package/dist/client/static/js/{index-kt7c42n7.js → index-y0f3wbc3.js} +2 -2
- package/dist/client/static/js/index-zh550byg.js +2 -0
- package/dist/client/static/js/info-A6RAGUB7-xxvyt8p8.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-59xq3n1b.js → infoDiagram-VRGFBTTK-rykcacj5.js} +1 -1
- package/dist/client/static/js/ini-bdk46a3d.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-v18q4qt7.js → ishikawaDiagram-OU5B5YK6-rj752kd8.js} +3 -3
- package/dist/client/static/js/java-3g3925cf.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-etazj0p8.js → journeyDiagram-ZHPQQLJL-mtetwn6f.js} +5 -5
- 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-mxe3pnz3.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-ph15e5p2.js → kanban-definition-PNTS6WVX-4h5pw5mm.js} +3 -3
- 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-7ygd161b.js → mermaid.core-bs542jma.js} +8 -8
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-j5xsftrf.js → mindmap-definition-NLK3R4M7-67s4xy7h.js} +5 -5
- package/dist/client/static/js/one-dark-pro-541ed4b7.js +1 -0
- package/dist/client/static/js/one-light-nr79mykt.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-cm8jeesg.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-09nvb70v.js → pegDiagram-GJSIUBJH-qykb6ssk.js} +1 -1
- package/dist/client/static/js/{perl-sns2qvmf.js → perl-a8eeaqkn.js} +1 -1
- package/dist/client/static/js/{php-3q6v9eey.js → php-6gq92zt8.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-8b9xgcxv.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-6ymh1960.js → pieDiagram-5QR66LMP-mymrrvck.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-hk61avw2.js → quadrantDiagram-O4NWA36T-6f8ahd40.js} +6 -6
- package/dist/client/static/js/r-w4qxm0pv.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-fxr2x2mf.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-5qd45xk1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-6fa00vpk.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-pcbtg7tj.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-r0fdhdtp.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-3jvqrfnb.js → railroadDiagram-XR7U4H2S-c3habpvw.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-zthfj48k.js → requirementDiagram-PLB6GJNP-nysqy6te.js} +12 -12
- package/dist/client/static/js/{ruby-f9k99tfq.js → ruby-mc826p2e.js} +1 -1
- package/dist/client/static/js/{rust-q7n7q6dy.js → rust-m4f4vpvn.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-nh5d6xte.js → sankeyDiagram-IPEJSGJF-s5dtfp3z.js} +4 -4
- package/dist/client/static/js/{sass-2syegq28.js → sass-8bq5r2tz.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-crej9b40.js → sequenceDiagram-PO4LG4MO-bb3yp049.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-nvvxw58j.js → sizeCapture-INFHLROL-0m2msee7.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-e6tztjnj.js → stateDiagram-v2-GCMORJYK-cd0qgj6t.js} +3 -3
- package/dist/client/static/js/{svelte-mm3jfpje.js → svelte-5vrwkc13.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-xhdqjqmf.js → swimlanes-2SLR337P-rpb01f7p.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-zx36y2c8.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-9cve31zc.js → timeline-definition-EJHVYXUP-tqw2e6y1.js} +5 -5
- package/dist/client/static/js/treeView-Q6P3EWNA-9sn2h4ea.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-9fzms0pq.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-asycstwe.js → usecaseDiagram-POWQR4AR-dhf4d5xg.js} +41 -41
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-gbzk6era.js → vennDiagram-UO4OBE2U-ztkk79dv.js} +7 -7
- package/dist/client/static/js/{vue-e8e3q3hj.js → vue-gmjnxjm3.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-vy6rp5gp.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-1swwfszr.js → wardleyDiagram-VNRHLVJA-ahre5tmv.js} +5 -5
- package/dist/client/static/js/xml-mrk4xakv.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-v7qkwv0b.js → xychartDiagram-PMCCYNJV-vak2c50n.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/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/index.tsx +40 -2
- package/src/client/components/common/session-row/session-row.test.tsx +46 -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/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/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/OrchestrationNotice.tsx +5 -5
- 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 +5 -5
- package/src/client/components/workspace/chat-timeline/TaskResultContent.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +2 -2
- 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 +1 -1
- 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/Toolbar.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +3 -3
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +2 -2
- 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 +1 -1
- 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 +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +10 -8
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.test.ts +37 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.ts +17 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.test.tsx +50 -21
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Tui.tsx +21 -17
- 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/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/dictation/capability.server.test.ts +9 -6
- package/src/server/lib/dictation/worker-process.ts +9 -2
- 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 +63 -1
- package/src/server/lib/realtime/topics/session-data.test.ts +154 -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/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-k96gtstv.js +0 -3
- package/dist/client/static/js/ImageView-0gf5xdsv.js +0 -1
- package/dist/client/static/js/LayoutWrapper-pwbq5syv.js +0 -2
- package/dist/client/static/js/MergeDiffView-m4jkr786.js +0 -1
- package/dist/client/static/js/Modal-yjszc3vy.js +0 -60
- package/dist/client/static/js/SessionsView-q3800n83.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-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-f3bdtc1z.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-1mm7kyjd.js +0 -1
- package/dist/client/static/js/index-3w18s59k.js +0 -9
- package/dist/client/static/js/index-ep353yxd.js +0 -2
- package/dist/client/static/js/index-ewtv8gg7.js +0 -1
- package/dist/client/static/js/index-gr07t5c4.js +0 -2
- package/dist/client/static/js/index-jd2h5tvh.js +0 -2
- package/dist/client/static/js/index-k6wms0kx.js +0 -1
- package/dist/client/static/js/index-k9v6477a.js +0 -1
- package/dist/client/static/js/index-mv83hpva.js +0 -1
- package/dist/client/static/js/index-nr5gwny1.js +0 -470
- package/dist/client/static/js/index-rqpbva78.js +0 -2
- package/dist/client/static/js/index-taz2nfym.css +0 -1
- package/dist/client/static/js/index-x6945djv.js +0 -1
- package/dist/client/static/js/index-y5mf2w81.js +0 -1
- package/dist/client/static/js/index-y69cbdvd.js +0 -2
- package/dist/client/static/js/index-y6qtx68e.js +0 -1
- package/dist/client/static/js/index-yktwxghr.js +0 -2
- package/dist/client/static/js/index-zj65csnm.js +0 -4
- 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/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-4s2rr12v.js +0 -1
- package/dist/client/static/js/one-light-3bkk59ww.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-hbwg3m3k.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
|
@@ -55,9 +55,9 @@ import { ProgressTrack, useStopwatch } from '@/client/components/workspace/chat-
|
|
|
55
55
|
import { jobSubject, jobProgressLine } from '@/shared/lib/omp/session/job-progress';
|
|
56
56
|
|
|
57
57
|
const TONE_CLASSES = {
|
|
58
|
-
ok: 'text-success',
|
|
59
|
-
warn: 'text-warning',
|
|
60
|
-
error: 'text-error',
|
|
58
|
+
ok: 'text-success-text',
|
|
59
|
+
warn: 'text-warning-text',
|
|
60
|
+
error: 'text-error-text',
|
|
61
61
|
muted: 'text-ink/50',
|
|
62
62
|
} as const;
|
|
63
63
|
|
|
@@ -85,11 +85,11 @@ function JobRow({ job }: { job: WaitJob }) {
|
|
|
85
85
|
{running ? (
|
|
86
86
|
<Loader2 size={11} className="shrink-0 animate-spin text-ink/50" />
|
|
87
87
|
) : job.status === 'failed' ? (
|
|
88
|
-
<XCircle size={11} className="shrink-0 text-error" />
|
|
88
|
+
<XCircle size={11} className="shrink-0 text-error-text" />
|
|
89
89
|
) : job.status === 'cancelled' ? (
|
|
90
|
-
<CircleSlash size={11} className="shrink-0 text-warning" />
|
|
90
|
+
<CircleSlash size={11} className="shrink-0 text-warning-text" />
|
|
91
91
|
) : (
|
|
92
|
-
<CheckCircle2 size={11} className="shrink-0 text-success" />
|
|
92
|
+
<CheckCircle2 size={11} className="shrink-0 text-success-text" />
|
|
93
93
|
)}
|
|
94
94
|
{job.id && <span className="shrink-0 font-mono text-[10px] font-semibold text-ink/80">{job.id}</span>}
|
|
95
95
|
{job.type && (
|
|
@@ -140,7 +140,7 @@ function JobRow({ job }: { job: WaitJob }) {
|
|
|
140
140
|
function AgentRow({ agent }: { agent: WaitAgent }) {
|
|
141
141
|
return (
|
|
142
142
|
<div className="flex items-center gap-2 px-3 py-1.5 text-[11.5px]">
|
|
143
|
-
<Radio size={11} className={`shrink-0 ${agent.live ? 'animate-pulse text-ink/60' : 'text-warning'}`} />
|
|
143
|
+
<Radio size={11} className={`shrink-0 ${agent.live ? 'animate-pulse text-ink/60' : 'text-warning-text'}`} />
|
|
144
144
|
<span className="shrink-0 font-mono text-[10px] font-semibold text-ink/80">{agent.id}</span>
|
|
145
145
|
<span className="min-w-0 flex-1 truncate text-ink/85">{agent.activity ?? 'agent'}</span>
|
|
146
146
|
{typeof agent.ageMs === 'number' && (
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx
CHANGED
|
@@ -155,7 +155,7 @@ function ArtifactModal({ url, elidedBytes, path, onClose }: ArtifactModalProps)
|
|
|
155
155
|
</div>
|
|
156
156
|
)}
|
|
157
157
|
{state.status === 'error' && (
|
|
158
|
-
<div className="flex items-center gap-2 px-5 py-6 font-mono text-[11.5px] text-error">
|
|
158
|
+
<div className="flex items-center gap-2 px-5 py-6 font-mono text-[11.5px] text-error-text">
|
|
159
159
|
<X size={12} className="shrink-0" />
|
|
160
160
|
<span>{state.message}</span>
|
|
161
161
|
</div>
|
|
@@ -125,8 +125,8 @@ export function DiffView({ text, path = '', maxHeightClass = 'max-h-72' }: DiffV
|
|
|
125
125
|
<span className="truncate font-mono text-[10.5px] text-ink/60">{fileLabel}</span>
|
|
126
126
|
)}
|
|
127
127
|
<span className="flex items-center gap-1.5 font-mono text-[10px]">
|
|
128
|
-
<span className="text-success">+{sides.additions}</span>
|
|
129
|
-
<span className="text-error">{'\u2212'}{sides.deletions}</span>
|
|
128
|
+
<span className="text-success-text">+{sides.additions}</span>
|
|
129
|
+
<span className="text-error-text">{'\u2212'}{sides.deletions}</span>
|
|
130
130
|
</span>
|
|
131
131
|
<span className="ml-auto flex items-center gap-1">
|
|
132
132
|
<ToggleButton
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/EnvelopeHeader.tsx
CHANGED
|
@@ -6,12 +6,12 @@ import { toTitleCase } from '@/shared/lib/chat/title-case';
|
|
|
6
6
|
* error envelope is a failure, anything else is informational. */
|
|
7
7
|
function envelopeTone(tag: string) {
|
|
8
8
|
if (isReminderTag(tag)) {
|
|
9
|
-
return { icon: <Bell size={12} />, badge: 'bg-warning/10 text-warning' };
|
|
9
|
+
return { icon: <Bell size={12} />, badge: 'bg-warning/10 text-warning-text' };
|
|
10
10
|
}
|
|
11
11
|
if (tag === 'error' || tag === 'failure') {
|
|
12
|
-
return { icon: <AlertCircle size={12} />, badge: 'bg-error/10 text-error' };
|
|
12
|
+
return { icon: <AlertCircle size={12} />, badge: 'bg-error/10 text-error-text' };
|
|
13
13
|
}
|
|
14
|
-
return { icon: <Boxes size={12} />, badge: 'bg-info/10 text-info' };
|
|
14
|
+
return { icon: <Boxes size={12} />, badge: 'bg-info/10 text-info-text' };
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/** Identity row for one peeled XML envelope: which wrapper carried the output
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx
CHANGED
|
@@ -62,7 +62,7 @@ const BADGE_BASE = 'inline-flex items-center gap-1 rounded-full px-2 py-0.5 text
|
|
|
62
62
|
function statusBadge(tool: ToolCallData) {
|
|
63
63
|
if (tool.status === 'aborted') {
|
|
64
64
|
return (
|
|
65
|
-
<span className={`${BADGE_BASE} bg-warning/10 text-warning`}>
|
|
65
|
+
<span className={`${BADGE_BASE} bg-warning/10 text-warning-text`}>
|
|
66
66
|
<OctagonX size={10} /> Aborted
|
|
67
67
|
</span>
|
|
68
68
|
);
|
|
@@ -78,7 +78,7 @@ function statusBadge(tool: ToolCallData) {
|
|
|
78
78
|
const status = tool.status || (tool.error ? 'error' : 'success');
|
|
79
79
|
if (status === 'error') {
|
|
80
80
|
return (
|
|
81
|
-
<span className={`${BADGE_BASE} bg-error/10 text-error`}>
|
|
81
|
+
<span className={`${BADGE_BASE} bg-error/10 text-error-text`}>
|
|
82
82
|
<AlertCircle size={10} /> Failed
|
|
83
83
|
</span>
|
|
84
84
|
);
|
|
@@ -91,7 +91,7 @@ function statusBadge(tool: ToolCallData) {
|
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
return (
|
|
94
|
-
<span className={`${BADGE_BASE} bg-success/10 text-success`}>
|
|
94
|
+
<span className={`${BADGE_BASE} bg-success/10 text-success-text`}>
|
|
95
95
|
<Check size={10} /> Done
|
|
96
96
|
</span>
|
|
97
97
|
);
|
|
@@ -153,7 +153,7 @@ export function ToolCardShell({
|
|
|
153
153
|
<span
|
|
154
154
|
className={`flex h-7 w-7 shrink-0 items-center justify-center rounded-lg transition-colors ${
|
|
155
155
|
status === 'error' && !isSkipped
|
|
156
|
-
? 'bg-error/10 text-error'
|
|
156
|
+
? 'bg-error/10 text-error-text'
|
|
157
157
|
: isRunning
|
|
158
158
|
? 'bg-ink/8 text-ink'
|
|
159
159
|
: 'bg-ink/5 text-ink/70 group-hover:bg-ink/8'
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx
CHANGED
|
@@ -48,15 +48,15 @@ const ICON_BY_KIND: Record<ToolFact['kind'], ReactNode> = {
|
|
|
48
48
|
* A toned chip is text-only: no background, because the tint was louder than
|
|
49
49
|
* the fact and the ink palette has no room for a filled pill in a dense row. */
|
|
50
50
|
const TONE_CLASSES: Record<NonNullable<ToolFact['tone']> & ('ok' | 'warn' | 'error'), string> = {
|
|
51
|
-
ok: 'text-success',
|
|
52
|
-
warn: 'text-warning',
|
|
53
|
-
error: 'text-error',
|
|
51
|
+
ok: 'text-success-text',
|
|
52
|
+
warn: 'text-warning-text',
|
|
53
|
+
error: 'text-error-text',
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
/** Per-segment colour for a fact's `parts`. */
|
|
57
57
|
const PART_CLASSES: Record<'ok' | 'error', string> = {
|
|
58
|
-
ok: 'text-success',
|
|
59
|
-
error: 'text-error',
|
|
58
|
+
ok: 'text-success-text',
|
|
59
|
+
error: 'text-error-text',
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
/** A fact that is a verdict reads as a badge; a fact that is a measurement does
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolRowActions.tsx
CHANGED
|
@@ -36,7 +36,7 @@ export function ToolRowActions({ tool, isReminder }: { tool: ToolCallData; isRem
|
|
|
36
36
|
<span className="flex shrink-0 items-center gap-1.5">
|
|
37
37
|
<ArtifactChip tool={tool} />
|
|
38
38
|
{isReminder && (
|
|
39
|
-
<span className="inline-flex items-center gap-1 rounded-full bg-error/10 px-2 py-0.5 text-[10px] font-semibold text-error">
|
|
39
|
+
<span className="inline-flex items-center gap-1 rounded-full bg-error/10 px-2 py-0.5 text-[10px] font-semibold text-error-text">
|
|
40
40
|
<Bell size={10} /> Reminder
|
|
41
41
|
</span>
|
|
42
42
|
)}
|
|
@@ -35,14 +35,16 @@ import {
|
|
|
35
35
|
|
|
36
36
|
export interface ToolCardHeader {
|
|
37
37
|
title: string;
|
|
38
|
+
/**
|
|
39
|
+
* The row's subject, in FULL. The row clips it with CSS (`truncate`) at its
|
|
40
|
+
* own right edge, so the ellipsis lands beside the outcome/facts; a
|
|
41
|
+
* character cap here put a literal `…` mid-row whenever the command was
|
|
42
|
+
* longer than the cap, far from the data. The accessible label is bounded
|
|
43
|
+
* separately in `toolToggleLabel`.
|
|
44
|
+
*/
|
|
38
45
|
subtitle?: string;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
|
-
/** One line under the title, capped so it never eats the header row. */
|
|
42
|
-
function clip(value: string, max = 80): string {
|
|
43
|
-
return value.length > max ? `${value.slice(0, max - 1)}…` : value;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
48
|
function subtitleFromTitle(title: string): { title: string; subtitle?: string } | null {
|
|
47
49
|
const parts = title.split(/\s+[—\-:]\s+/);
|
|
48
50
|
if (parts.length < 2) return null;
|
|
@@ -97,7 +99,7 @@ export function toolCardHeader(tool: ToolCallData, toolKey: string): ToolCardHea
|
|
|
97
99
|
const command = typeof input?.command === 'string'
|
|
98
100
|
? input.command.split('\n')[0]
|
|
99
101
|
: undefined;
|
|
100
|
-
if (command) return { title: 'Bash', subtitle:
|
|
102
|
+
if (command) return { title: 'Bash', subtitle: command };
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
// ── todo / ask ────────────────────────────────────────────────────────────
|
|
@@ -122,7 +124,7 @@ export function toolCardHeader(tool: ToolCallData, toolKey: string): ToolCardHea
|
|
|
122
124
|
const mcpName = mcpToolNameOf(tool);
|
|
123
125
|
if (mcpName) {
|
|
124
126
|
const subject = mcpSubjectOf(tool);
|
|
125
|
-
return { title: toTitleCase(mcpName), subtitle: subject
|
|
127
|
+
return { title: toTitleCase(mcpName), subtitle: subject };
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
// ── wait: the card says WHAT it blocks on, not just "Wait" ────────────────
|
|
@@ -138,7 +140,7 @@ export function toolCardHeader(tool: ToolCallData, toolKey: string): ToolCardHea
|
|
|
138
140
|
const job = view?.jobs[0];
|
|
139
141
|
const subject =
|
|
140
142
|
(job ? jobSubject(job).primary?.split('\n')[0]?.trim() : undefined) || job?.id || view?.waited[0]?.from;
|
|
141
|
-
return { title: 'Wait', subtitle: subject
|
|
143
|
+
return { title: 'Wait', subtitle: subject };
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
// ── generic: a "name — subject" title splits, otherwise the name stands ──
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx
CHANGED
|
@@ -32,9 +32,9 @@ export interface ToolStatusGlyph {
|
|
|
32
32
|
|
|
33
33
|
/** Tone → text class. `--theme-error` is the only chroma a tool row may use. */
|
|
34
34
|
export const STATUS_TONE_CLASS: Record<ToolStatusTone, string> = {
|
|
35
|
-
ok: 'text-success',
|
|
36
|
-
error: 'text-error',
|
|
37
|
-
warn: 'text-warning',
|
|
35
|
+
ok: 'text-success-text',
|
|
36
|
+
error: 'text-error-text',
|
|
37
|
+
warn: 'text-warning-text',
|
|
38
38
|
muted: 'text-ink/30',
|
|
39
39
|
};
|
|
40
40
|
|
package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.test.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The one wording every style's expand control uses.
|
|
8
|
+
*
|
|
9
|
+
* The subject is bounded HERE, not in the visible text: the row draws the full
|
|
10
|
+
* subject and lets CSS ellipsize it at the row's edge, while the accessible
|
|
11
|
+
* name stays short enough to read. Measured defect this pins: a `bash` subtitle
|
|
12
|
+
* pre-clipped at 80 characters put a literal `…` mid-row, far from the
|
|
13
|
+
* outcome/facts it precedes.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { describe, expect, test } from 'bun:test';
|
|
17
|
+
import { toolToggleLabel } from '@/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label';
|
|
18
|
+
|
|
19
|
+
describe('toolToggleLabel', () => {
|
|
20
|
+
test('names the tool and its subject', () => {
|
|
21
|
+
expect(toolToggleLabel('Bash', 'bun test', false)).toBe('Expand Bash — bun test');
|
|
22
|
+
expect(toolToggleLabel('Bash', 'bun test', true)).toBe('Collapse Bash — bun test');
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('names only the tool when there is no subject', () => {
|
|
26
|
+
expect(toolToggleLabel('Question', undefined, false)).toBe('Expand Question');
|
|
27
|
+
expect(toolToggleLabel('Question', '', false)).toBe('Expand Question');
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('bounds a long subject in the label, keeping the full one for display', () => {
|
|
31
|
+
const command = `bun test ${'--filter '.repeat(14)}`;
|
|
32
|
+
const label = toolToggleLabel('Bash', command, false);
|
|
33
|
+
expect(label.length).toBe('Expand Bash — '.length + 80);
|
|
34
|
+
expect(label.endsWith('…')).toBe(true);
|
|
35
|
+
expect(command.length).toBeGreaterThan(80);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -14,6 +14,22 @@
|
|
|
14
14
|
* — calls it.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* The accessible name's subject budget.
|
|
19
|
+
*
|
|
20
|
+
* The VISIBLE subject is not capped: the row clips it with CSS so the ellipsis
|
|
21
|
+
* lands at the row's edge. The label is read, not laid out, so a long command
|
|
22
|
+
* is bounded here — a `bash` call can name a whole inline script, and a screen
|
|
23
|
+
* reader should not spell all of it.
|
|
24
|
+
*/
|
|
25
|
+
const MAX_LABEL_SUBJECT = 80;
|
|
26
|
+
|
|
27
|
+
function labelSubject(subtitle: string): string {
|
|
28
|
+
return subtitle.length > MAX_LABEL_SUBJECT
|
|
29
|
+
? `${subtitle.slice(0, MAX_LABEL_SUBJECT - 1)}…`
|
|
30
|
+
: subtitle;
|
|
31
|
+
}
|
|
32
|
+
|
|
17
33
|
export function toolToggleLabel(title: string, subtitle: string | undefined, isExpanded: boolean): string {
|
|
18
|
-
return `${isExpanded ? 'Collapse' : 'Expand'} ${title}${subtitle ? ` — ${subtitle}` : ''}`;
|
|
34
|
+
return `${isExpanded ? 'Collapse' : 'Expand'} ${title}${subtitle ? ` — ${labelSubject(subtitle)}` : ''}`;
|
|
19
35
|
}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* defect — the head then reads as one undifferentiated run of text.
|
|
20
20
|
* - Facts are terminal text (`599ms · exit 0`), not pills, and a diff keeps
|
|
21
21
|
* `+4` green and `−1` red inside one statement.
|
|
22
|
-
* - The
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* - The trailing group (`[done]`, facts, toggle) is FLUSH RIGHT: the subject
|
|
23
|
+
* fills the gap and the browser ellipsizes it there. The subject is never
|
|
24
|
+
* pre-clipped — a literal `…` mid-row left the group short of the edge.
|
|
25
25
|
* - The head is the toggle, with the SHARED wording (`toolToggleLabel`), so
|
|
26
26
|
* `chat.e2e.ts`'s `[aria-label^="Expand "]` collection and `mobile.e2e.ts`'s
|
|
27
27
|
* `/^Expand Bash/` click still work, and the section's per-call intent
|
|
@@ -102,20 +102,33 @@ const EDIT_TOOL: ToolCallData = {
|
|
|
102
102
|
details: { diff: 'a\n+b\n+c\n-d\n' },
|
|
103
103
|
} as ToolCallData;
|
|
104
104
|
|
|
105
|
-
/** A command longer than
|
|
106
|
-
*
|
|
105
|
+
/** A command longer than any row can show, so the browser must ellipsize it
|
|
106
|
+
* (its text is never pre-clipped in the header). */
|
|
107
|
+
const LONG_COMMAND = `bun test ${'--filter '.repeat(14)}`;
|
|
107
108
|
const LONG_COMMAND_TOOL: ToolCallData = {
|
|
108
109
|
id: 'tui-long',
|
|
109
110
|
type: 'bash',
|
|
110
111
|
name: 'bash',
|
|
111
112
|
title: 'Bash',
|
|
112
113
|
status: 'success',
|
|
113
|
-
command:
|
|
114
|
-
detail:
|
|
115
|
-
input: { command:
|
|
114
|
+
command: LONG_COMMAND,
|
|
115
|
+
detail: LONG_COMMAND,
|
|
116
|
+
input: { command: LONG_COMMAND },
|
|
116
117
|
output: '',
|
|
117
118
|
} as ToolCallData;
|
|
118
119
|
|
|
120
|
+
/** `eval` names its cell in the TITLE (`input.title`) and has no subject, so
|
|
121
|
+
* the trailing group must still reach the right edge. */
|
|
122
|
+
const EVAL_TOOL: ToolCallData = {
|
|
123
|
+
id: 'tui-eval',
|
|
124
|
+
type: 'eval',
|
|
125
|
+
name: 'eval',
|
|
126
|
+
title: 'Eval',
|
|
127
|
+
status: 'success',
|
|
128
|
+
input: { code: '1 + 1', title: 'Run the suite' },
|
|
129
|
+
output: '2',
|
|
130
|
+
} as ToolCallData;
|
|
131
|
+
|
|
119
132
|
async function mount(tools: ToolCallData[]): Promise<HTMLElement> {
|
|
120
133
|
await act(async () => {
|
|
121
134
|
render(
|
|
@@ -172,18 +185,34 @@ describe('the tui style', () => {
|
|
|
172
185
|
expect(head(el).querySelector('.sr-only')?.textContent).toBe('Done');
|
|
173
186
|
});
|
|
174
187
|
|
|
175
|
-
test('the subject
|
|
188
|
+
test('the subject fills up to a flush-right outcome, facts and toggle', async () => {
|
|
176
189
|
const el = await mount([LONG_COMMAND_TOOL]);
|
|
177
190
|
const children = Array.from(head(el).children) as HTMLElement[];
|
|
178
|
-
const subject = children.find((node) => node.className.includes('text-meta'));
|
|
191
|
+
const subject = children.find((node) => node.className.includes('text-meta-text'));
|
|
179
192
|
if (!subject) throw new Error('no subject span in the head');
|
|
180
|
-
//
|
|
181
|
-
//
|
|
182
|
-
expect(subject.className).
|
|
193
|
+
// The subject fills the gap so the browser ellipsizes it at the trailing
|
|
194
|
+
// group's edge; a shrinking box left that group short of the row's edge.
|
|
195
|
+
expect(subject.className).toContain('flex-1');
|
|
183
196
|
expect(subject.className).toContain('truncate');
|
|
184
|
-
|
|
197
|
+
// No literal `…` from the header: the full command reaches the row.
|
|
198
|
+
expect(subject.textContent).toBe(LONG_COMMAND);
|
|
199
|
+
expect(subject.textContent?.endsWith('…')).toBe(false);
|
|
185
200
|
expect(subject.nextElementSibling?.textContent).toContain('[done]');
|
|
186
|
-
// The
|
|
201
|
+
// The outcome owns the auto margin, so the trailing group sits flush right.
|
|
202
|
+
const outcome = children.find((node) => node.textContent === '[done]');
|
|
203
|
+
if (!outcome) throw new Error('no outcome span in the head');
|
|
204
|
+
expect(outcome.className).toContain('ml-auto');
|
|
205
|
+
// A second auto margin would split the free space and park it mid-row.
|
|
206
|
+
expect(children.at(-1)?.className).not.toContain('ml-auto');
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
test('a subject-less call (eval) still pins its outcome to the right edge', async () => {
|
|
210
|
+
const el = await mount([EVAL_TOOL]);
|
|
211
|
+
const children = Array.from(head(el).children) as HTMLElement[];
|
|
212
|
+
expect(children.some((node) => node.className.includes('text-meta-text'))).toBe(false);
|
|
213
|
+
const outcome = children.find((node) => node.textContent === '[done]');
|
|
214
|
+
if (!outcome) throw new Error('no outcome span in the head');
|
|
215
|
+
expect(outcome.className).toContain('ml-auto');
|
|
187
216
|
expect(children.at(-1)?.className).not.toContain('ml-auto');
|
|
188
217
|
});
|
|
189
218
|
|
|
@@ -192,8 +221,8 @@ describe('the tui style', () => {
|
|
|
192
221
|
const classes = headClasses(el);
|
|
193
222
|
// The name is the accent, the subject the meta hue — the two halves of the
|
|
194
223
|
// head must never render as one undifferentiated string.
|
|
195
|
-
const title = classes.find((cls) => cls.includes('text-info'));
|
|
196
|
-
const subject = classes.find((cls) => cls.includes('text-meta'));
|
|
224
|
+
const title = classes.find((cls) => cls.includes('text-info-text'));
|
|
225
|
+
const subject = classes.find((cls) => cls.includes('text-meta-text'));
|
|
197
226
|
expect(title).toBeDefined();
|
|
198
227
|
expect(subject).toBeDefined();
|
|
199
228
|
expect(title).not.toBe(subject);
|
|
@@ -202,17 +231,17 @@ describe('the tui style', () => {
|
|
|
202
231
|
test('the outcome colour follows the call state', async () => {
|
|
203
232
|
const ok = await mount([OK_TOOL]);
|
|
204
233
|
expect(head(ok).textContent).toContain('[done]');
|
|
205
|
-
expect(headClasses(ok).some((cls) => cls.includes('text-success'))).toBe(true);
|
|
234
|
+
expect(headClasses(ok).some((cls) => cls.includes('text-success-text'))).toBe(true);
|
|
206
235
|
|
|
207
236
|
render(null, container);
|
|
208
237
|
const failed = await mount([FAILED_TOOL]);
|
|
209
238
|
expect(head(failed).textContent).toContain('[failed]');
|
|
210
|
-
expect(headClasses(failed).some((cls) => cls.includes('text-error'))).toBe(true);
|
|
239
|
+
expect(headClasses(failed).some((cls) => cls.includes('text-error-text'))).toBe(true);
|
|
211
240
|
|
|
212
241
|
render(null, container);
|
|
213
242
|
const running = await mount([RUNNING_TOOL]);
|
|
214
243
|
expect(head(running).textContent).toContain('[running]');
|
|
215
|
-
expect(headClasses(running).some((cls) => cls.includes('text-info'))).toBe(true);
|
|
244
|
+
expect(headClasses(running).some((cls) => cls.includes('text-info-text'))).toBe(true);
|
|
216
245
|
});
|
|
217
246
|
|
|
218
247
|
test('the collapsed line states the facts as terminal text', async () => {
|
|
@@ -250,7 +279,7 @@ describe('the tui style', () => {
|
|
|
250
279
|
const text = row(el).textContent ?? '';
|
|
251
280
|
expect(text).toContain('+2');
|
|
252
281
|
expect(text).toContain('−1');
|
|
253
|
-
const marks = Array.from(row(el).querySelectorAll('.text-success, .text-error')) as HTMLElement[];
|
|
282
|
+
const marks = Array.from(row(el).querySelectorAll('.text-success-text, .text-error-text')) as HTMLElement[];
|
|
254
283
|
expect(marks.some((node) => node.textContent === '+2')).toBe(true);
|
|
255
284
|
expect(marks.some((node) => node.textContent === '−1')).toBe(true);
|
|
256
285
|
});
|
|
@@ -57,10 +57,10 @@ type TuiRunState = 'run' | 'ok' | 'error' | 'warn' | 'muted';
|
|
|
57
57
|
* a terminal prints, and a run is the accent.
|
|
58
58
|
*/
|
|
59
59
|
const STATE_COLOR: Record<TuiRunState, string> = {
|
|
60
|
-
run: 'text-info',
|
|
61
|
-
ok: 'text-success',
|
|
62
|
-
error: 'text-error',
|
|
63
|
-
warn: 'text-warning',
|
|
60
|
+
run: 'text-info-text',
|
|
61
|
+
ok: 'text-success-text',
|
|
62
|
+
error: 'text-error-text',
|
|
63
|
+
warn: 'text-warning-text',
|
|
64
64
|
muted: 'text-ink/35',
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -78,7 +78,7 @@ function FactText({ fact }: { fact: ToolFact }) {
|
|
|
78
78
|
return (
|
|
79
79
|
<>
|
|
80
80
|
{fact.parts.map((part, index) => (
|
|
81
|
-
<span key={`${part.label}-${index}`} className={part.tone === 'ok' ? 'text-success' : 'text-error'}>
|
|
81
|
+
<span key={`${part.label}-${index}`} className={part.tone === 'ok' ? 'text-success-text' : 'text-error-text'}>
|
|
82
82
|
{part.label}
|
|
83
83
|
</span>
|
|
84
84
|
))}
|
|
@@ -87,11 +87,11 @@ function FactText({ fact }: { fact: ToolFact }) {
|
|
|
87
87
|
}
|
|
88
88
|
const toneClass =
|
|
89
89
|
fact.tone === 'ok'
|
|
90
|
-
? 'text-success'
|
|
90
|
+
? 'text-success-text'
|
|
91
91
|
: fact.tone === 'error'
|
|
92
|
-
? 'text-error'
|
|
92
|
+
? 'text-error-text'
|
|
93
93
|
: fact.tone === 'warn'
|
|
94
|
-
? 'text-warning'
|
|
94
|
+
? 'text-warning-text'
|
|
95
95
|
: 'text-ink/45';
|
|
96
96
|
return <span className={toneClass}>{fact.label}</span>;
|
|
97
97
|
}
|
|
@@ -144,7 +144,7 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
|
|
|
144
144
|
aria-label={
|
|
145
145
|
canToggle ? toolToggleLabel(view.header.title, view.subtitle, isExpanded) : undefined
|
|
146
146
|
}
|
|
147
|
-
className={`flex min-w-0 flex-1 flex-
|
|
147
|
+
className={`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-1 gap-y-0 rounded px-1 py-0.5 text-left text-[12px] leading-[1.55] transition-colors ${
|
|
148
148
|
canToggle ? 'cursor-pointer hover:bg-ink/[0.03]' : 'cursor-default'
|
|
149
149
|
} focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink/20`}
|
|
150
150
|
>
|
|
@@ -152,19 +152,23 @@ export const TuiRow = memo(function TuiRow({ tool, isOpen, onToggle, defaultExpa
|
|
|
152
152
|
{status.glyph}
|
|
153
153
|
</span>
|
|
154
154
|
<span className="sr-only">{status.word}</span>
|
|
155
|
-
<span className="shrink-0 font-semibold text-info">{view.header.title}</span>
|
|
155
|
+
<span className="shrink-0 font-semibold text-info-text">{view.header.title}</span>
|
|
156
156
|
{view.subtitle && (
|
|
157
157
|
<>
|
|
158
158
|
<span className="shrink-0 text-ink/25">:</span>
|
|
159
|
-
{/* The subject
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<span className="min-w-0 shrink truncate font-mono text-[10.5px] text-meta">{view.subtitle}</span>
|
|
159
|
+
{/* The subject FILLS the gap up to the trailing group, which is
|
|
160
|
+
flush right; the browser ellipsizes it at that group's edge.
|
|
161
|
+
The row must not pre-clip the text (a literal `…` sat far
|
|
162
|
+
from `[done]` and left the group short of the row's edge). */}
|
|
163
|
+
<span className="min-w-0 flex-1 truncate font-mono text-[10.5px] text-meta-text">{view.subtitle}</span>
|
|
165
164
|
</>
|
|
166
165
|
)}
|
|
167
|
-
|
|
166
|
+
{/* `ml-auto` on the OUTCOME, not on the toggle: a subject-less call
|
|
167
|
+
(`eval` names its cell in the title, `todo`/`ask` have none) still
|
|
168
|
+
pins `[done]` and the facts to the right edge. With a subject
|
|
169
|
+
present, its `flex-1` already consumes the free space. Two auto
|
|
170
|
+
margins would SPLIT that space, parking the outcome mid-row. */}
|
|
171
|
+
<span className={`ml-auto shrink-0 font-semibold ${tone}`}>{`[${status.word.toLowerCase()}]`}</span>
|
|
168
172
|
{facts.length > 0 && (
|
|
169
173
|
// Facts are the LAST thing on the line and they clip as a unit, so a
|
|
170
174
|
// long `exit 1 · 412 B` can never widen the row past the panel —
|
|
@@ -58,8 +58,8 @@ export function RawJsonViewer({ data }: RawJsonViewerProps) {
|
|
|
58
58
|
>
|
|
59
59
|
{copied ? (
|
|
60
60
|
<>
|
|
61
|
-
<Check size={11} className="text-success" />
|
|
62
|
-
<span className="text-success font-sans font-medium">Copied</span>
|
|
61
|
+
<Check size={11} className="text-success-text" />
|
|
62
|
+
<span className="text-success-text font-sans font-medium">Copied</span>
|
|
63
63
|
</>
|
|
64
64
|
) : (
|
|
65
65
|
<>
|
|
@@ -32,8 +32,8 @@ export function ConflictBanner({ markers, isBusy, error, onResolve, onDismissErr
|
|
|
32
32
|
return (
|
|
33
33
|
<div className="flex-shrink-0 border-b border-warning/30 bg-warning/5">
|
|
34
34
|
<div className="flex items-center gap-2 px-3 py-1.5 flex-wrap">
|
|
35
|
-
<AlertTriangle size={13} className="text-warning flex-shrink-0" />
|
|
36
|
-
<span className="text-[11px] font-medium text-warning">Conflicted file</span>
|
|
35
|
+
<AlertTriangle size={13} className="text-warning-text flex-shrink-0" />
|
|
36
|
+
<span className="text-[11px] font-medium text-warning-text">Conflicted file</span>
|
|
37
37
|
|
|
38
38
|
<div className="flex items-center gap-1.5 ml-auto flex-wrap">
|
|
39
39
|
<button
|
|
@@ -67,7 +67,7 @@ export function ConflictBanner({ markers, isBusy, error, onResolve, onDismissErr
|
|
|
67
67
|
</div>
|
|
68
68
|
|
|
69
69
|
{error && (
|
|
70
|
-
<div className="flex items-center gap-2 px-3 py-1 border-t border-error/25 bg-error/10 text-[10px] text-error">
|
|
70
|
+
<div className="flex items-center gap-2 px-3 py-1 border-t border-error/25 bg-error/10 text-[10px] text-error-text">
|
|
71
71
|
<span className="min-w-0 flex-1 truncate" title={error}>{error}</span>
|
|
72
72
|
<button
|
|
73
73
|
type="button"
|
|
@@ -119,8 +119,8 @@ export function DiffToolbar({
|
|
|
119
119
|
actions: [],
|
|
120
120
|
children: (
|
|
121
121
|
<div className="flex items-center space-x-1.5 text-[11px] font-mono pr-1.5 mr-0.5 @[440px]:mr-1 border-r border-ink/10">
|
|
122
|
-
{additions > 0 && <span className="text-success font-semibold">+{additions}</span>}
|
|
123
|
-
{deletions > 0 && <span className="text-error font-semibold">-{deletions}</span>}
|
|
122
|
+
{additions > 0 && <span className="text-success-text font-semibold">+{additions}</span>}
|
|
123
|
+
{deletions > 0 && <span className="text-error-text font-semibold">-{deletions}</span>}
|
|
124
124
|
</div>
|
|
125
125
|
),
|
|
126
126
|
});
|
|
@@ -249,7 +249,7 @@ export function DiffToolbar({
|
|
|
249
249
|
title={copyLabel}
|
|
250
250
|
aria-label={copyLabel}
|
|
251
251
|
>
|
|
252
|
-
{isCopied ? <Check size={13} className="text-success" /> : <Copy size={13} />}
|
|
252
|
+
{isCopied ? <Check size={13} className="text-success-text" /> : <Copy size={13} />}
|
|
253
253
|
</button>
|
|
254
254
|
),
|
|
255
255
|
});
|
|
@@ -212,7 +212,7 @@ export function DiffPanel({
|
|
|
212
212
|
)}
|
|
213
213
|
|
|
214
214
|
{actionError && !conflicted && (
|
|
215
|
-
<div className="flex items-center gap-2 border-b border-error/25 bg-error/10 px-3 py-1.5 text-[11px] text-error flex-shrink-0">
|
|
215
|
+
<div className="flex items-center gap-2 border-b border-error/25 bg-error/10 px-3 py-1.5 text-[11px] text-error-text flex-shrink-0">
|
|
216
216
|
<AlertCircle size={13} className="flex-shrink-0" />
|
|
217
217
|
<span className="min-w-0 flex-1 truncate" title={actionError}>{actionError}</span>
|
|
218
218
|
<button
|
|
@@ -239,8 +239,8 @@ export function DiffPanel({
|
|
|
239
239
|
</div>
|
|
240
240
|
) : errorMessage ? (
|
|
241
241
|
<div className="flex-1 flex flex-col items-center justify-center p-6 text-center space-y-2">
|
|
242
|
-
<AlertCircle size={20} className="text-error" />
|
|
243
|
-
<p className="text-xs text-error font-medium">{errorMessage}</p>
|
|
242
|
+
<AlertCircle size={20} className="text-error-text" />
|
|
243
|
+
<p className="text-xs text-error-text font-medium">{errorMessage}</p>
|
|
244
244
|
<button
|
|
245
245
|
onClick={() => void fetchDiff()}
|
|
246
246
|
className="px-3 py-1 text-xs bg-ink/10 hover:bg-ink/15 text-ink rounded font-sans transition-colors cursor-pointer"
|
|
@@ -50,7 +50,7 @@ export function gitActionClusters({
|
|
|
50
50
|
<button
|
|
51
51
|
type="button"
|
|
52
52
|
onClick={onDiscard}
|
|
53
|
-
className={`${ACTION_CLASS} text-ink/50 hover:text-error hover:bg-error/10`}
|
|
53
|
+
className={`${ACTION_CLASS} text-ink/50 hover:text-error-text hover:bg-error/10`}
|
|
54
54
|
title="Discard changes in this file"
|
|
55
55
|
aria-label="Discard changes in this file"
|
|
56
56
|
disabled={locked}
|
|
@@ -46,7 +46,7 @@ export function ConflictStrip({ diskMtimeMs, fileName, onReload, onKeepMine }: C
|
|
|
46
46
|
role="alert"
|
|
47
47
|
data-conflict-strip=""
|
|
48
48
|
>
|
|
49
|
-
<AlertTriangle size={13} className="text-warning flex-shrink-0 mt-0.5" />
|
|
49
|
+
<AlertTriangle size={13} className="text-warning-text flex-shrink-0 mt-0.5" />
|
|
50
50
|
<div className="min-w-0 flex-1">
|
|
51
51
|
<div className="font-medium">
|
|
52
52
|
<span className="font-mono">{fileName}</span> changed on disk
|
|
@@ -66,7 +66,7 @@ export function ConflictStrip({ diskMtimeMs, fileName, onReload, onKeepMine }: C
|
|
|
66
66
|
<button
|
|
67
67
|
type="button"
|
|
68
68
|
onClick={onKeepMine}
|
|
69
|
-
className="px-2 py-1 rounded border border-warning/50 text-warning hover:bg-warning/10 transition-colors cursor-pointer"
|
|
69
|
+
className="px-2 py-1 rounded border border-warning/50 text-warning-text hover:bg-warning/10 transition-colors cursor-pointer"
|
|
70
70
|
title="Write my buffer over the file on disk"
|
|
71
71
|
>
|
|
72
72
|
Keep mine
|
|
@@ -29,7 +29,7 @@ export function ExternalChangeStrip({ fileName, onReload, onKeepMine }: External
|
|
|
29
29
|
role="status"
|
|
30
30
|
data-external-change-strip=""
|
|
31
31
|
>
|
|
32
|
-
<RefreshCw size={13} className="text-info flex-shrink-0 mt-0.5" />
|
|
32
|
+
<RefreshCw size={13} className="text-info-text flex-shrink-0 mt-0.5" />
|
|
33
33
|
<div className="min-w-0 flex-1">
|
|
34
34
|
<div className="font-medium">
|
|
35
35
|
<span className="font-mono">{fileName}</span> changed on disk.
|
|
@@ -50,7 +50,7 @@ export function ExternalChangeStrip({ fileName, onReload, onKeepMine }: External
|
|
|
50
50
|
<button
|
|
51
51
|
type="button"
|
|
52
52
|
onClick={onKeepMine}
|
|
53
|
-
className="px-2 py-1 rounded border border-info/50 text-info hover:bg-info/10 transition-colors cursor-pointer"
|
|
53
|
+
className="px-2 py-1 rounded border border-info/50 text-info-text hover:bg-info/10 transition-colors cursor-pointer"
|
|
54
54
|
title="Keep my buffer; the next save writes it"
|
|
55
55
|
>
|
|
56
56
|
Keep mine
|