@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
package/src/client/tailwind.css
CHANGED
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
and every slot failed AA on 14-22 of the 63 palettes. */
|
|
56
56
|
--color-error: var(--theme-error);
|
|
57
57
|
--color-error-text: var(--theme-error-text);
|
|
58
|
+
/* The word ON a solid error fill (`bg-error text-error-on`). `text-canvas`
|
|
59
|
+
failed on 12 of 32 light palettes and 8 of 31 dark ones. */
|
|
60
|
+
--color-error-on: var(--theme-error-on);
|
|
58
61
|
--color-success: var(--theme-success);
|
|
59
62
|
--color-success-text: var(--theme-success-text);
|
|
60
63
|
--color-meta: var(--theme-meta);
|
|
@@ -108,9 +111,27 @@
|
|
|
108
111
|
--theme-ink-80: #42413d;
|
|
109
112
|
--theme-ink-85: #373532;
|
|
110
113
|
--theme-ink-90: #2b2a27;
|
|
114
|
+
/* The same fifteen rungs solved for TEXT (`inkScale().textLadder`): a rung
|
|
115
|
+
under the palette's AA floor resolves to its `muted` level. `text-ink/NN`
|
|
116
|
+
reads these for text elements; icons keep the raw ramp above. */
|
|
117
|
+
--theme-text-20: #65635f;
|
|
118
|
+
--theme-text-25: #65635f;
|
|
119
|
+
--theme-text-30: #65635f;
|
|
120
|
+
--theme-text-35: #65635f;
|
|
121
|
+
--theme-text-40: #65635f;
|
|
122
|
+
--theme-text-45: #65635f;
|
|
123
|
+
--theme-text-50: #65635f;
|
|
124
|
+
--theme-text-55: #65635f;
|
|
125
|
+
--theme-text-60: #65635f;
|
|
126
|
+
--theme-text-65: #65635f;
|
|
127
|
+
--theme-text-70: #595854;
|
|
128
|
+
--theme-text-75: #4e4c49;
|
|
129
|
+
--theme-text-80: #42413d;
|
|
130
|
+
--theme-text-85: #373532;
|
|
131
|
+
--theme-text-90: #2b2a27;
|
|
111
132
|
--theme-on-ink-muted: #f4f1ea;
|
|
112
133
|
/* The one level guaranteed to clear AA on this palette (`inkScale().muted`).
|
|
113
|
-
`text-muted` uses it; the numbered rungs
|
|
134
|
+
`text-muted` uses it; the numbered text rungs clamp to it. */
|
|
114
135
|
--theme-muted: #65635f;
|
|
115
136
|
--theme-error: #c8321e;
|
|
116
137
|
/* Solved by `signalTextColor()` for this palette; the SSR sheet restates all
|
|
@@ -120,6 +141,9 @@
|
|
|
120
141
|
--theme-info-text: #0274af;
|
|
121
142
|
--theme-warning-text: #c2410c;
|
|
122
143
|
--theme-meta-text: #4f46e5;
|
|
144
|
+
/* Solved by `onSignalTextColor()`: the palette surface with the most
|
|
145
|
+
contrast against the solid error fill. */
|
|
146
|
+
--theme-error-on: #faf8f3;
|
|
123
147
|
--theme-success: #047857;
|
|
124
148
|
--theme-meta: #4f46e5;
|
|
125
149
|
--theme-info: #0284c7;
|
|
@@ -129,15 +153,7 @@
|
|
|
129
153
|
color-scheme: light;
|
|
130
154
|
|
|
131
155
|
--paper-bg: var(--theme-canvas);
|
|
132
|
-
--paper-raised: var(--theme-paper);
|
|
133
|
-
--paper-card: var(--theme-paper);
|
|
134
156
|
--ink-primary: var(--theme-ink);
|
|
135
|
-
/* Two derived inks. Text goes through `--theme-ink-muted` (see
|
|
136
|
-
`ink-scale.ts`); `--ink-hairline` is borders only. */
|
|
137
|
-
--ink-secondary: var(--theme-ink-50);
|
|
138
|
-
--ink-muted: var(--theme-ink-40);
|
|
139
|
-
--ink-hairline: color-mix(in srgb, var(--theme-ink) 14%, transparent);
|
|
140
|
-
--signal-red: var(--theme-error);
|
|
141
157
|
}
|
|
142
158
|
|
|
143
159
|
body {
|
|
@@ -222,7 +238,7 @@
|
|
|
222
238
|
*
|
|
223
239
|
* Three numbers here, each a budget:
|
|
224
240
|
*
|
|
225
|
-
* - **The ring is `ink 75%`.** WCAG's non-text floor is 3:1, and across all
|
|
241
|
+
* - **The ring is `ink 75%`.** WCAG's non-text floor is 3:1, and across all 63
|
|
226
242
|
* palettes `ink 75%` is the first alpha whose worst case clears it (3.02:1 on
|
|
227
243
|
* `solarized-light`). 60% is 2.34:1; the `border-ink/30` these shipped with is
|
|
228
244
|
* 1.71:1 — the bug.
|
|
@@ -391,9 +407,9 @@
|
|
|
391
407
|
* `bg-ink/70`, `bg-ink/20`, `bg-ink/15`) and none of them is the thing that
|
|
392
408
|
* means "on".
|
|
393
409
|
*
|
|
394
|
-
* The alphas are the checkbox's, and for the same reason: measured over all
|
|
395
|
-
* palettes, `success 55%` clears 3.
|
|
396
|
-
* a switch sits on, while the canvas knob clears 3.
|
|
410
|
+
* The alphas are the checkbox's, and for the same reason: measured over all 63
|
|
411
|
+
* palettes, `success 55%` clears 3.59:1 and `error 75%` 3.47:1 against the panel
|
|
412
|
+
* a switch sits on, while the canvas knob clears 3.71:1 / 3.88:1 against those
|
|
397
413
|
* tracks. The raw signal colours do not: `success` reaches 1.75:1 worst case.
|
|
398
414
|
*
|
|
399
415
|
* `[aria-checked="false"]` rather than `:not([aria-checked="true"])`: a switch
|
|
@@ -1437,6 +1453,61 @@ html[data-theme-variant='dark'] .brand-wordmark-glow {
|
|
|
1437
1453
|
color: var(--theme-ink-90);
|
|
1438
1454
|
}
|
|
1439
1455
|
|
|
1456
|
+
/* TEXT reads the solved ramp, not the decorative one.
|
|
1457
|
+
*
|
|
1458
|
+
* The raw rungs are a lightness ladder, and a ladder that must clear 4.5:1
|
|
1459
|
+
* cannot stay evenly spaced on every palette: measured, `/40` is 2.58:1 on
|
|
1460
|
+
* `paper` and 2.28:1 on `one-dark-pro-soft`, and `/60` is 4.74:1 then 3.34:1.
|
|
1461
|
+
* `--theme-text-NN` is the same rung clamped to the palette's AA floor, so a
|
|
1462
|
+
* word is legal everywhere. `:not(svg)` keeps every glyph on the raw ramp:
|
|
1463
|
+
* the icon mode owns icon colour, and a solved text colour must not repaint
|
|
1464
|
+
* it (the same reason the signal override lists elements instead of `*`). */
|
|
1465
|
+
html :not(svg):not(svg *).text-ink\/20 {
|
|
1466
|
+
color: var(--theme-text-20);
|
|
1467
|
+
}
|
|
1468
|
+
html :not(svg):not(svg *).text-ink\/25 {
|
|
1469
|
+
color: var(--theme-text-25);
|
|
1470
|
+
}
|
|
1471
|
+
html :not(svg):not(svg *).text-ink\/30 {
|
|
1472
|
+
color: var(--theme-text-30);
|
|
1473
|
+
}
|
|
1474
|
+
html :not(svg):not(svg *).text-ink\/35 {
|
|
1475
|
+
color: var(--theme-text-35);
|
|
1476
|
+
}
|
|
1477
|
+
html :not(svg):not(svg *).text-ink\/40 {
|
|
1478
|
+
color: var(--theme-text-40);
|
|
1479
|
+
}
|
|
1480
|
+
html :not(svg):not(svg *).text-ink\/45 {
|
|
1481
|
+
color: var(--theme-text-45);
|
|
1482
|
+
}
|
|
1483
|
+
html :not(svg):not(svg *).text-ink\/50 {
|
|
1484
|
+
color: var(--theme-text-50);
|
|
1485
|
+
}
|
|
1486
|
+
html :not(svg):not(svg *).text-ink\/55 {
|
|
1487
|
+
color: var(--theme-text-55);
|
|
1488
|
+
}
|
|
1489
|
+
html :not(svg):not(svg *).text-ink\/60 {
|
|
1490
|
+
color: var(--theme-text-60);
|
|
1491
|
+
}
|
|
1492
|
+
html :not(svg):not(svg *).text-ink\/65 {
|
|
1493
|
+
color: var(--theme-text-65);
|
|
1494
|
+
}
|
|
1495
|
+
html :not(svg):not(svg *).text-ink\/70 {
|
|
1496
|
+
color: var(--theme-text-70);
|
|
1497
|
+
}
|
|
1498
|
+
html :not(svg):not(svg *).text-ink\/75 {
|
|
1499
|
+
color: var(--theme-text-75);
|
|
1500
|
+
}
|
|
1501
|
+
html :not(svg):not(svg *).text-ink\/80 {
|
|
1502
|
+
color: var(--theme-text-80);
|
|
1503
|
+
}
|
|
1504
|
+
html :not(svg):not(svg *).text-ink\/85 {
|
|
1505
|
+
color: var(--theme-text-85);
|
|
1506
|
+
}
|
|
1507
|
+
html :not(svg):not(svg *).text-ink\/90 {
|
|
1508
|
+
color: var(--theme-text-90);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1440
1511
|
/* Hover and press states step one rung louder than the resting weight, so a
|
|
1441
1512
|
muted row still responds rather than looking dead. */
|
|
1442
1513
|
html .hover\:text-ink\/50:hover {
|
|
@@ -1468,7 +1539,32 @@ html[data-theme-variant='dark'] .brand-wordmark-glow {
|
|
|
1468
1539
|
color: var(--theme-ink-50);
|
|
1469
1540
|
}
|
|
1470
1541
|
|
|
1471
|
-
/* The
|
|
1542
|
+
/* The hover targets read the solved ramp too, or a row would step from a legal
|
|
1543
|
+
resting colour to an illegal hover one. */
|
|
1544
|
+
html :not(svg):not(svg *).hover\:text-ink\/50:hover {
|
|
1545
|
+
color: var(--theme-text-60);
|
|
1546
|
+
}
|
|
1547
|
+
html :not(svg):not(svg *).hover\:text-ink\/60:hover {
|
|
1548
|
+
color: var(--theme-text-70);
|
|
1549
|
+
}
|
|
1550
|
+
html :not(svg):not(svg *).hover\:text-ink\/70:hover {
|
|
1551
|
+
color: var(--theme-text-85);
|
|
1552
|
+
}
|
|
1553
|
+
html :not(svg):not(svg *).hover\:text-ink\/80:hover {
|
|
1554
|
+
color: var(--theme-ink);
|
|
1555
|
+
}
|
|
1556
|
+
html .group:hover :not(svg):not(svg *).group-hover\:text-ink\/50 {
|
|
1557
|
+
color: var(--theme-text-60);
|
|
1558
|
+
}
|
|
1559
|
+
html .group:hover :not(svg):not(svg *).group-hover\:text-ink\/80 {
|
|
1560
|
+
color: var(--theme-ink);
|
|
1561
|
+
}
|
|
1562
|
+
html :not(svg):not(svg *).disabled\:hover\:text-ink\/45:disabled:hover,
|
|
1563
|
+
html :not(svg):not(svg *).disabled\:hover\:text-ink\/45:hover:disabled {
|
|
1564
|
+
color: var(--theme-text-50);
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
/* The one rung legal on every palette. Measured, `/65` is 5.65:1 on `paper`
|
|
1472
1568
|
but 3.67:1 on `one-dark-pro-soft`; this resolves to the palette's own solved
|
|
1473
1569
|
level instead. `html` plus the class keeps the icon mode (0,4,1) winning. */
|
|
1474
1570
|
html .text-muted {
|
|
@@ -1478,18 +1574,19 @@ html[data-theme-variant='dark'] .brand-wordmark-glow {
|
|
|
1478
1574
|
color: var(--theme-muted);
|
|
1479
1575
|
}
|
|
1480
1576
|
|
|
1481
|
-
/* Placeholders
|
|
1577
|
+
/* Placeholders are text too: they read the solved ramp, so a hint cannot be
|
|
1578
|
+
dimmer than AA on a palette with little headroom. */
|
|
1482
1579
|
html .placeholder-ink\/30::placeholder,
|
|
1483
1580
|
html .placeholder\:text-ink\/30::placeholder {
|
|
1484
|
-
color: var(--theme-
|
|
1581
|
+
color: var(--theme-text-30);
|
|
1485
1582
|
}
|
|
1486
1583
|
html .placeholder-ink\/35::placeholder,
|
|
1487
1584
|
html .placeholder\:text-ink\/35::placeholder {
|
|
1488
|
-
color: var(--theme-
|
|
1585
|
+
color: var(--theme-text-35);
|
|
1489
1586
|
}
|
|
1490
1587
|
html .placeholder-ink\/40::placeholder,
|
|
1491
1588
|
html .placeholder\:text-ink\/40::placeholder {
|
|
1492
|
-
color: var(--theme-
|
|
1589
|
+
color: var(--theme-text-40);
|
|
1493
1590
|
}
|
|
1494
1591
|
}
|
|
1495
1592
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import { describe, expect, test } from 'bun:test';
|
|
21
21
|
|
|
22
|
-
import { THEME_CSS_ROUTE, serveThemeCss } from '@/server/lib/assets/theme-css.server';
|
|
22
|
+
import { THEME_CSS_ROUTE, customThemeStyleElement, serveThemeCss } from '@/server/lib/assets/theme-css.server';
|
|
23
23
|
import { isPublicPath } from '@/server/lib/auth/guard';
|
|
24
24
|
import { iconPaintStyleSheet } from '@/shared/lib/icons/icon-paint-css';
|
|
25
25
|
import { themeStyleSheet } from '@/shared/lib/theme/css';
|
|
@@ -56,3 +56,33 @@ describe('serveThemeCss', () => {
|
|
|
56
56
|
expect(response.headers.get('vary')).toContain('accept-encoding');
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
describe('customThemeStyleElement', () => {
|
|
62
|
+
const custom = {
|
|
63
|
+
id: 'custom-asset-test',
|
|
64
|
+
name: 'Asset test',
|
|
65
|
+
family: 'custom',
|
|
66
|
+
variant: 'dark' as const,
|
|
67
|
+
canvas: '#101418',
|
|
68
|
+
paper: '#14181e',
|
|
69
|
+
ink: '#e6e8eb',
|
|
70
|
+
error: '#ff6b6b',
|
|
71
|
+
success: '#4ade80',
|
|
72
|
+
info: '#60a5fa',
|
|
73
|
+
warning: '#fbbf24',
|
|
74
|
+
meta: '#a78bfa',
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
test('emits the block for a user palette, after the immutable sheet', () => {
|
|
78
|
+
const element = customThemeStyleElement(custom);
|
|
79
|
+
expect(element).toContain('id="omp-custom-theme"');
|
|
80
|
+
expect(element).toContain(`html[data-theme="${custom.id}"]`);
|
|
81
|
+
expect(element).toContain('--theme-canvas: #101418');
|
|
82
|
+
expect(element).toContain('--theme-text-40:');
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
test('emits nothing for a built-in palette, which the hashed sheet carries', () => {
|
|
86
|
+
expect(customThemeStyleElement({ ...custom, id: 'paper' })).toBe('');
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
import { iconPaintStyleSheet } from '@/shared/lib/icons/icon-paint-css';
|
|
28
|
-
import { themeStyleSheet } from '@/shared/lib/theme/css';
|
|
28
|
+
import { CUSTOM_THEME_STYLE_ELEMENT_ID, customThemeStyle, themeStyleSheet } from '@/shared/lib/theme/css';
|
|
29
|
+
import { isCustomThemeId } from '@/shared/lib/theme/catalog';
|
|
30
|
+
import type { ThemePalette } from '@kabmo-labs/kabmo-app-contracts/theme';
|
|
29
31
|
import { maybeCompress } from '@/server/plugins/compress';
|
|
30
32
|
|
|
31
33
|
/** The bytes, built once. Both generators are already memoized. */
|
|
@@ -43,6 +45,18 @@ const HEADERS = {
|
|
|
43
45
|
'cache-control': 'public, max-age=31536000, immutable',
|
|
44
46
|
} as const;
|
|
45
47
|
|
|
48
|
+
/**
|
|
49
|
+
* The `<style>` element for a user palette, or an empty string for a built-in.
|
|
50
|
+
*
|
|
51
|
+
* The content-hashed sheet is immutable, so a settings-defined palette cannot
|
|
52
|
+
* live in it. The shell writes this block after the link; the client rewrites
|
|
53
|
+
* the same element on every later switch.
|
|
54
|
+
*/
|
|
55
|
+
export function customThemeStyleElement(palette: ThemePalette): string {
|
|
56
|
+
if (!isCustomThemeId(palette.id)) return '';
|
|
57
|
+
return `<style id="${CUSTOM_THEME_STYLE_ELEMENT_ID}">${customThemeStyle(palette)}</style>`;
|
|
58
|
+
}
|
|
59
|
+
|
|
46
60
|
/** The sheet, compressed for the client that asked. */
|
|
47
61
|
export function serveThemeCss(request: Request): Promise<Response> {
|
|
48
62
|
return maybeCompress(
|
|
@@ -33,12 +33,14 @@ import {
|
|
|
33
33
|
* A worker that exits before answering anything — the 19.1.1 failure mode with
|
|
34
34
|
* the 18.x transport. Constant source (the fixture cache is keyed by it); the
|
|
35
35
|
* run counter arrives through the environment.
|
|
36
|
+
*
|
|
37
|
+
* APPEND one mark per run, never read-modify-write: a mark is a single write
|
|
38
|
+
* syscall, while a rewrite would truncate first, and a child killed inside that
|
|
39
|
+
* window (measured on Windows) left an empty file that read back as 0 spawns.
|
|
36
40
|
*/
|
|
37
|
-
const STUB_SOURCE = `
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
await Bun.write(counter, String(Number(previous || '0') + 1));
|
|
41
|
-
}
|
|
41
|
+
const STUB_SOURCE = `import { appendFileSync } from 'node:fs';
|
|
42
|
+
const counter = process.env.FAKE_STT_SPAWN_FILE;
|
|
43
|
+
if (counter) appendFileSync(counter, 'x');
|
|
42
44
|
process.exit(0);
|
|
43
45
|
`;
|
|
44
46
|
|
|
@@ -47,9 +49,10 @@ const originalCounter = Bun.env.FAKE_STT_SPAWN_FILE;
|
|
|
47
49
|
let dir = '';
|
|
48
50
|
let counter = '';
|
|
49
51
|
|
|
52
|
+
/** One mark per spawn the stub has recorded. */
|
|
50
53
|
function spawns(): number {
|
|
51
54
|
try {
|
|
52
|
-
return
|
|
55
|
+
return fs.readFileSync(counter, 'utf8').length;
|
|
53
56
|
} catch {
|
|
54
57
|
return 0;
|
|
55
58
|
}
|
|
@@ -102,10 +102,17 @@ export function startSttWorkerProcess(bin: string, handlers: SttWorkerHandlers):
|
|
|
102
102
|
return {
|
|
103
103
|
send: (frame) => {
|
|
104
104
|
try {
|
|
105
|
-
child.stdin.write(encodeSpeechFrame(frame));
|
|
106
105
|
// Buffered writes stay ordered; the flush is what puts the frame on the
|
|
107
106
|
// wire before a decode that can take a second.
|
|
108
|
-
|
|
107
|
+
//
|
|
108
|
+
// Both type as `number`, but a failed write/flush is reported as a
|
|
109
|
+
// REJECTED PROMISE rather than a throw. On Windows the write that races
|
|
110
|
+
// the child's pipe setup comes back EPIPE that way, and the unhandled
|
|
111
|
+
// rejection took down the `Gates / Checks (Windows)` job even though the
|
|
112
|
+
// probe reported the failure correctly. A closed pipe is the exit
|
|
113
|
+
// handler's news, not an error here.
|
|
114
|
+
void Promise.resolve(child.stdin.write(encodeSpeechFrame(frame))).catch(() => {});
|
|
115
|
+
void Promise.resolve(child.stdin.flush()).catch(() => {});
|
|
109
116
|
} catch {
|
|
110
117
|
// Closed pipe: the exit handler is what reports it.
|
|
111
118
|
}
|
|
@@ -100,18 +100,20 @@ describe('saved harness accounts', () => {
|
|
|
100
100
|
|
|
101
101
|
const agy = await createHarnessAccount('antigravity', 'Google');
|
|
102
102
|
const agyAccount = agy.accounts.find((entry) => entry.harness === 'antigravity')!;
|
|
103
|
-
const
|
|
104
|
-
mkdirSync(
|
|
103
|
+
const cli = join(agyAccount.homePath, '.gemini', 'antigravity-cli');
|
|
104
|
+
mkdirSync(cli, { recursive: true });
|
|
105
105
|
writeFileSync(
|
|
106
|
-
join(
|
|
106
|
+
join(cli, 'antigravity-oauth-token'),
|
|
107
107
|
JSON.stringify({
|
|
108
108
|
token: { access_token: 'token' },
|
|
109
|
+
id_token_email: 'g@example.com',
|
|
109
110
|
id_token: jwt({
|
|
110
111
|
iss: 'https://accounts.google.com',
|
|
111
112
|
sub: 'google-1',
|
|
112
113
|
email: 'g@example.com',
|
|
113
114
|
email_verified: true,
|
|
114
115
|
}),
|
|
116
|
+
auth_method: 'consumer',
|
|
115
117
|
}),
|
|
116
118
|
);
|
|
117
119
|
const agyState = await verifyHarnessAccount(agyAccount.id);
|
|
@@ -40,4 +40,27 @@ describe('buildAcpTodos', () => {
|
|
|
40
40
|
const state = buildAcpTodos([{ content: 'Do it', status: 'weird' }]);
|
|
41
41
|
expect(state.snapshot?.phases[0]?.tasks[0]?.status).toBe('pending');
|
|
42
42
|
});
|
|
43
|
+
|
|
44
|
+
test('done and a title-only entry are classified, not dropped', () => {
|
|
45
|
+
const state = buildAcpTodos([
|
|
46
|
+
{ content: 'Finished', status: 'done' },
|
|
47
|
+
{ title: 'From a title field', status: 'pending' },
|
|
48
|
+
]);
|
|
49
|
+
expect(state.snapshot?.phases[0]?.tasks).toEqual([
|
|
50
|
+
{ content: 'Finished', status: 'completed' },
|
|
51
|
+
{ content: 'From a title field', status: 'pending' },
|
|
52
|
+
]);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('grok cancelled meta counts as abandoned, not completed', () => {
|
|
56
|
+
const state = buildAcpTodos([
|
|
57
|
+
{ content: 'Dropped', status: 'completed', _meta: { cancelled: true } },
|
|
58
|
+
{ content: 'Done', status: 'completed' },
|
|
59
|
+
]);
|
|
60
|
+
expect(state.snapshot?.phases[0]?.tasks).toEqual([
|
|
61
|
+
{ content: 'Dropped', status: 'abandoned' },
|
|
62
|
+
{ content: 'Done', status: 'completed' },
|
|
63
|
+
]);
|
|
64
|
+
expect(state.progress).toMatchObject({ total: 2, completed: 1, abandoned: 1, closed: 2 });
|
|
65
|
+
});
|
|
43
66
|
});
|
|
@@ -76,6 +76,10 @@ const SESSION_ROW_DELETES: readonly (readonly [string, string])[] = [
|
|
|
76
76
|
['acp_transcripts', 'session_id'],
|
|
77
77
|
// The raw `session/update` log the context panel's Raw Messages view reads.
|
|
78
78
|
['acp_frames', 'session_id'],
|
|
79
|
+
// The last plan list the Todos panel would draw for a closed ACP chat, and
|
|
80
|
+
// the markdown documents its Plan panel reads.
|
|
81
|
+
['acp_plan_state', 'session_id'],
|
|
82
|
+
['acp_plan_documents', 'session_id'],
|
|
79
83
|
['files', 'session_id'],
|
|
80
84
|
// An ACP chat has no transcript for the scan to lose: `harness_sessions` IS
|
|
81
85
|
// its row, so leaving it behind both refused the delete as "not found" (nothing
|
|
@@ -29,6 +29,8 @@ import { getLiveSession, harnessOfSession } from '@/server/lib/omp/rpc/session-r
|
|
|
29
29
|
import { loadAcpSessions } from '@kabmo-labs/kabmo-harness/session/session-store.server';
|
|
30
30
|
import { acpTelemetryFor } from '@kabmo-labs/kabmo-acp/session-core/acp-telemetry.server';
|
|
31
31
|
import { buildAcpTodos } from '@kabmo-labs/kabmo-acp/control/acp-todos.server';
|
|
32
|
+
import { buildAcpPlanState } from '@kabmo-labs/kabmo-acp/control/acp-plan';
|
|
33
|
+
import { loadAcpPlanDocuments, loadAcpPlanEntries } from '@kabmo-labs/kabmo-acp/session-core/acp-plan-state.server';
|
|
32
34
|
import { isMockMode } from '@kabmo-labs/kabmo-runtime-flags';
|
|
33
35
|
import type { SessionTodosPayload } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
34
36
|
import type { SessionPlanPayload } from '@kabmo-labs/kabmo-app-contracts/plan';
|
|
@@ -46,7 +48,10 @@ function todosDescriptor(sessionId: string): TopicDescriptor {
|
|
|
46
48
|
const isMock = isMockMode();
|
|
47
49
|
const live = isMock ? undefined : getLiveSession(sessionId);
|
|
48
50
|
if (live && harnessOfSession(live) !== 'omp-rpc') {
|
|
49
|
-
const
|
|
51
|
+
const plans = 'plans' in live ? live.plans : undefined;
|
|
52
|
+
const entries = plans && typeof plans === 'object' && 'entries' in plans && Array.isArray(plans.entries)
|
|
53
|
+
? plans.entries
|
|
54
|
+
: [];
|
|
50
55
|
return {
|
|
51
56
|
sessionId,
|
|
52
57
|
...buildAcpTodos(entries),
|
|
@@ -54,6 +59,33 @@ function todosDescriptor(sessionId: string): TopicDescriptor {
|
|
|
54
59
|
isMock,
|
|
55
60
|
};
|
|
56
61
|
}
|
|
62
|
+
// A closed ACP chat has no process to read. Its last plan was mirrored
|
|
63
|
+
// under its id; `[]` is a real cleared list. Only `omp-acp` also writes the
|
|
64
|
+
// omp JSONL the reader below can fold, so an absent snapshot falls through
|
|
65
|
+
// for that one harness and answers empty for the others.
|
|
66
|
+
if (!isMock && !live) {
|
|
67
|
+
const acp = (await loadAcpSessions().catch(() => []))
|
|
68
|
+
.find((entry) => entry.sessionId === sessionId);
|
|
69
|
+
if (acp) {
|
|
70
|
+
const stored = await loadAcpPlanEntries(sessionId);
|
|
71
|
+
if (stored) {
|
|
72
|
+
return {
|
|
73
|
+
sessionId,
|
|
74
|
+
...buildAcpTodos(stored),
|
|
75
|
+
generatedAt: new Date().toISOString(),
|
|
76
|
+
isMock,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
if (acp.harness !== 'omp-acp') {
|
|
80
|
+
return {
|
|
81
|
+
sessionId,
|
|
82
|
+
...buildAcpTodos([]),
|
|
83
|
+
generatedAt: new Date().toISOString(),
|
|
84
|
+
isMock,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
57
89
|
return {
|
|
58
90
|
sessionId,
|
|
59
91
|
...(isMock ? mockSessionTodos() : await readSessionTodos(sessionId)),
|
|
@@ -69,6 +101,36 @@ function planDescriptor(sessionId: string): TopicDescriptor {
|
|
|
69
101
|
return {
|
|
70
102
|
resolve: async (): Promise<SessionPlanPayload> => {
|
|
71
103
|
const isMock = isMockMode();
|
|
104
|
+
const live = isMock ? undefined : getLiveSession(sessionId);
|
|
105
|
+
// ACP's markdown plan is a document, not an artifact directory. omp-acp
|
|
106
|
+
// keeps its omp plan files, so only the other harnesses take this branch.
|
|
107
|
+
if (live) {
|
|
108
|
+
const harness = harnessOfSession(live);
|
|
109
|
+
if (harness !== 'omp-rpc' && harness !== 'omp-acp') {
|
|
110
|
+
const plans = 'plans' in live ? live.plans : undefined;
|
|
111
|
+
const documents = plans && typeof plans === 'object' && 'documents' in plans && Array.isArray(plans.documents)
|
|
112
|
+
? plans.documents
|
|
113
|
+
: [];
|
|
114
|
+
return {
|
|
115
|
+
sessionId,
|
|
116
|
+
...buildAcpPlanState(documents),
|
|
117
|
+
generatedAt: new Date().toISOString(),
|
|
118
|
+
isMock,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (!isMock && !live) {
|
|
123
|
+
const acp = (await loadAcpSessions().catch(() => []))
|
|
124
|
+
.find((entry) => entry.sessionId === sessionId);
|
|
125
|
+
if (acp && acp.harness !== 'omp-acp') {
|
|
126
|
+
return {
|
|
127
|
+
sessionId,
|
|
128
|
+
...buildAcpPlanState((await loadAcpPlanDocuments(sessionId)) ?? []),
|
|
129
|
+
generatedAt: new Date().toISOString(),
|
|
130
|
+
isMock,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
72
134
|
return {
|
|
73
135
|
sessionId,
|
|
74
136
|
...(isMock ? mockSessionPlans() : await readSessionPlans(sessionId)),
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Todos topic for an ACP chat.
|
|
8
|
+
*
|
|
9
|
+
* Two failures this pins:
|
|
10
|
+
*
|
|
11
|
+
* - a tool-only adapter (antigravity `update_steps`, opencode `todowrite`)
|
|
12
|
+
* sends no ACP plan, so the panel used to stay empty while the card showed
|
|
13
|
+
* the tasks — the reported "only omp has a panel";
|
|
14
|
+
* - a closed chat has no live process to read, so the last plan it published
|
|
15
|
+
* must come from `acp_plan_state`.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import { afterEach, beforeEach, describe, expect, test } from 'bun:test';
|
|
19
|
+
import { isolateDb, releaseDb } from '@/test-support/isolated-db';
|
|
20
|
+
import { SESSION_DATA_TOPICS } from '@/server/lib/realtime/topics/session-data.server';
|
|
21
|
+
import { sessionPlanTopic, sessionTodosTopic } from '@/shared/lib/realtime/protocol';
|
|
22
|
+
import { AcpPlanTracker } from '@kabmo-labs/kabmo-acp/control/acp-plan';
|
|
23
|
+
import {
|
|
24
|
+
saveAcpPlanDocuments,
|
|
25
|
+
saveAcpPlanEntries,
|
|
26
|
+
} from '@kabmo-labs/kabmo-acp/session-core/acp-plan-state.server';
|
|
27
|
+
import { claimHarness } from '@kabmo-labs/kabmo-harness/registry';
|
|
28
|
+
import { saveHarnessSession } from '@kabmo-labs/kabmo-harness/session/session-store.server';
|
|
29
|
+
import type { SessionTodosPayload } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
30
|
+
import type { SessionPlanPayload } from '@kabmo-labs/kabmo-app-contracts/plan';
|
|
31
|
+
|
|
32
|
+
function registry(): Map<string, unknown> {
|
|
33
|
+
const bag = globalThis as unknown as { __ompSessions?: Map<string, unknown> };
|
|
34
|
+
bag.__ompSessions ??= new Map();
|
|
35
|
+
return bag.__ompSessions;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
async function resolveTodos(sessionId: string): Promise<SessionTodosPayload> {
|
|
39
|
+
const topic = sessionTodosTopic(sessionId);
|
|
40
|
+
const descriptor = SESSION_DATA_TOPICS[sessionTodosTopic('')];
|
|
41
|
+
return await descriptor(sessionId).resolve(topic) as SessionTodosPayload;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async function resolvePlan(sessionId: string): Promise<SessionPlanPayload> {
|
|
45
|
+
const topic = sessionPlanTopic(sessionId);
|
|
46
|
+
const descriptor = SESSION_DATA_TOPICS[sessionPlanTopic('')];
|
|
47
|
+
return await descriptor(sessionId).resolve(topic) as SessionPlanPayload;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
beforeEach(async () => {
|
|
51
|
+
await isolateDb();
|
|
52
|
+
registry().clear();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
afterEach(async () => {
|
|
56
|
+
registry().clear();
|
|
57
|
+
await releaseDb();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe('ACP Todos topic', () => {
|
|
61
|
+
test('a live tool-only ACP session feeds the panel from its todo call', async () => {
|
|
62
|
+
const plans = new AcpPlanTracker();
|
|
63
|
+
plans.applyToolCall({
|
|
64
|
+
sessionUpdate: 'tool_call',
|
|
65
|
+
name: 'update_steps',
|
|
66
|
+
rawInput: {
|
|
67
|
+
steps: [
|
|
68
|
+
{ title: 'Verify account', status: 'done' },
|
|
69
|
+
{ title: 'Implement bot', status: 'pending' },
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
const live = { harness: 'antigravity', sessionId: 'acp-live', plans };
|
|
74
|
+
claimHarness(live as never, 'antigravity');
|
|
75
|
+
registry().set('acp-live', live);
|
|
76
|
+
|
|
77
|
+
const payload = await resolveTodos('acp-live');
|
|
78
|
+
expect(payload.snapshot?.phases[0]?.tasks).toEqual([
|
|
79
|
+
{ content: 'Verify account', status: 'completed' },
|
|
80
|
+
{ content: 'Implement bot', status: 'pending' },
|
|
81
|
+
]);
|
|
82
|
+
expect(payload.progress).toMatchObject({ total: 2, completed: 1, pending: 1 });
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
test('a closed ACP session reads the plan snapshot it last published', async () => {
|
|
86
|
+
await saveHarnessSession({
|
|
87
|
+
sessionId: 'acp-closed',
|
|
88
|
+
harness: 'antigravity',
|
|
89
|
+
agentSessionId: '',
|
|
90
|
+
cwd: '/tmp',
|
|
91
|
+
});
|
|
92
|
+
await saveAcpPlanEntries('acp-closed', [
|
|
93
|
+
{ content: 'Verify account', status: 'completed' },
|
|
94
|
+
{ content: 'Implement bot', status: 'pending' },
|
|
95
|
+
]);
|
|
96
|
+
|
|
97
|
+
const payload = await resolveTodos('acp-closed');
|
|
98
|
+
expect(payload.snapshot?.phases[0]?.tasks).toEqual([
|
|
99
|
+
{ content: 'Verify account', status: 'completed' },
|
|
100
|
+
{ content: 'Implement bot', status: 'pending' },
|
|
101
|
+
]);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test('a closed ACP session with no snapshot answers empty, not an error', async () => {
|
|
105
|
+
await saveHarnessSession({
|
|
106
|
+
sessionId: 'acp-empty',
|
|
107
|
+
harness: 'opencode',
|
|
108
|
+
agentSessionId: '',
|
|
109
|
+
cwd: '/tmp',
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const payload = await resolveTodos('acp-empty');
|
|
113
|
+
expect(payload.snapshot).toBeNull();
|
|
114
|
+
expect(payload.progress.total).toBe(0);
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test('a live ACP markdown plan feeds the Plan panel', async () => {
|
|
118
|
+
const plans = new AcpPlanTracker();
|
|
119
|
+
plans.apply({
|
|
120
|
+
sessionUpdate: 'plan_update',
|
|
121
|
+
plan: { type: 'markdown', planId: 'plan-mode', content: '# Ship the parser\n\n1. verify\n2. merge' },
|
|
122
|
+
});
|
|
123
|
+
const live = { harness: 'claude', sessionId: 'acp-plan-live', plans };
|
|
124
|
+
claimHarness(live as never, 'claude');
|
|
125
|
+
registry().set('acp-plan-live', live);
|
|
126
|
+
|
|
127
|
+
const payload = await resolvePlan('acp-plan-live');
|
|
128
|
+
expect(payload.files[0]).toMatchObject({
|
|
129
|
+
path: 'acp://plan-mode',
|
|
130
|
+
title: 'Ship the parser',
|
|
131
|
+
});
|
|
132
|
+
expect(payload.current).toBe('acp://plan-mode');
|
|
133
|
+
expect(payload.content).toContain('Ship the parser');
|
|
134
|
+
expect(payload.truncated).toBe(false);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
test('a closed ACP session reads the markdown plan it last published', async () => {
|
|
138
|
+
await saveHarnessSession({
|
|
139
|
+
sessionId: 'acp-plan-closed',
|
|
140
|
+
harness: 'claude',
|
|
141
|
+
agentSessionId: '',
|
|
142
|
+
cwd: '/tmp',
|
|
143
|
+
});
|
|
144
|
+
await saveAcpPlanDocuments('acp-plan-closed', [{
|
|
145
|
+
planId: 'plan-mode',
|
|
146
|
+
content: '# Closed plan',
|
|
147
|
+
updatedAt: 7,
|
|
148
|
+
}]);
|
|
149
|
+
|
|
150
|
+
const payload = await resolvePlan('acp-plan-closed');
|
|
151
|
+
expect(payload.files[0]?.title).toBe('Closed plan');
|
|
152
|
+
expect(payload.content).toContain('# Closed plan');
|
|
153
|
+
});
|
|
154
|
+
});
|
|
@@ -32,6 +32,8 @@ import { packageDir } from '@/server/lib/fs/package-root';
|
|
|
32
32
|
import { getDb } from '@/server/db.server';
|
|
33
33
|
import { readAllSettingsJson } from '@kabmo-labs/kabmo-settings/store';
|
|
34
34
|
import { readSettingsBlob } from '@/shared/lib/settings/keys';
|
|
35
|
+
import { registerCustomThemes } from '@/shared/lib/theme/catalog';
|
|
36
|
+
import { customThemesFromSettings } from '@/shared/lib/theme/custom';
|
|
35
37
|
import { resolveTheme } from '@/shared/lib/theme/catalog';
|
|
36
38
|
import {
|
|
37
39
|
resolveTrayIconStyle,
|
|
@@ -78,6 +80,9 @@ export async function readTrayAppearance(pkgRoot: string): Promise<TrayAppearanc
|
|
|
78
80
|
// Fall through to the defaults below.
|
|
79
81
|
}
|
|
80
82
|
const blob = readSettingsBlob(settings);
|
|
83
|
+
// The tray can be the first reader after a cold start, and the active theme
|
|
84
|
+
// may be a user palette: register the table before resolving the variant.
|
|
85
|
+
registerCustomThemes(customThemesFromSettings(settings));
|
|
81
86
|
const theme = typeof blob.theme === 'string' ? blob.theme : undefined;
|
|
82
87
|
const variant = resolveTheme(theme).variant;
|
|
83
88
|
return {
|