@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
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
themedManifest,
|
|
21
21
|
} from '@/server/lib/assets/theme-shell.server';
|
|
22
22
|
import { readSettingsBlob } from '@/shared/lib/settings/keys';
|
|
23
|
-
import { resolveTheme } from '@/shared/lib/theme/catalog';
|
|
23
|
+
import { registerCustomThemes, resolveTheme } from '@/shared/lib/theme/catalog';
|
|
24
24
|
import { FIRST_FRAME_STYLE_ELEMENT_ID } from '@/shared/lib/theme/first-frame';
|
|
25
25
|
import { applyShellDocumentFacts } from '@/server/lib/assets/shell-attributes.server';
|
|
26
26
|
import { splitShellSettings } from '@/server/lib/assets/shell-settings.server';
|
|
@@ -28,8 +28,9 @@ import { SURFACE_STYLE_SETTING_KEY } from '@/shared/lib/theme/surface-style';
|
|
|
28
28
|
import { BORDER_STYLE_SETTING_KEY } from '@/shared/lib/theme/border-style';
|
|
29
29
|
import { ICON_STYLE_SETTING_KEY } from '@/shared/lib/theme/icon-style';
|
|
30
30
|
import { windowChromeColor } from '@/shared/lib/theme/chrome';
|
|
31
|
-
import { THEME_CSS_ROUTE, serveThemeCss } from '@/server/lib/assets/theme-css.server';
|
|
31
|
+
import { THEME_CSS_ROUTE, customThemeStyleElement, serveThemeCss } from '@/server/lib/assets/theme-css.server';
|
|
32
32
|
import { THEME_CSS_LINK_ATTRIBUTE } from '@/shared/lib/theme/css';
|
|
33
|
+
import { customThemesFromSettings } from '@/shared/lib/theme/custom';
|
|
33
34
|
import { isAndroidDevice, shellVersion } from '@/shared/lib/updates/shell-ua';
|
|
34
35
|
import { lastOpenedSession } from '@/server/lib/sessions/last-opened.server';
|
|
35
36
|
import { resolveClientIdentity } from '@/server/lib/sessions/last-opened-client.server';
|
|
@@ -177,6 +178,9 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
177
178
|
// for an unauthenticated visitor too — the login screen is what that
|
|
178
179
|
// visitor sees, and the install's splash must not disagree with it.
|
|
179
180
|
const manifestSettings = await readSettings();
|
|
181
|
+
// A custom palette is settings data, so the manifest's colours resolve
|
|
182
|
+
// through the same table the shell registers below.
|
|
183
|
+
registerCustomThemes(customThemesFromSettings(manifestSettings));
|
|
180
184
|
return new Response(themedManifest(source, resolveTheme(storedThemeId(manifestSettings))), {
|
|
181
185
|
headers: { 'content-type': 'application/manifest+json; charset=utf-8', 'cache-control': 'no-store' },
|
|
182
186
|
});
|
|
@@ -209,6 +213,11 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
209
213
|
// Resolved through the catalog: an id this build no longer ships (a
|
|
210
214
|
// downgrade, the retired `noir` alias) renders the default palette instead of
|
|
211
215
|
// an unstyled page.
|
|
216
|
+
// Register before resolving: a saved custom palette must paint the first
|
|
217
|
+
// frame, not fall back to the shipped default. The same list travels to the
|
|
218
|
+
// client even when the rest of the settings are gated.
|
|
219
|
+
const customThemes = customThemesFromSettings(settings);
|
|
220
|
+
registerCustomThemes(customThemes);
|
|
212
221
|
const theme = resolveTheme(storedThemeId(settings));
|
|
213
222
|
const userAgent = request.headers.get('user-agent') ?? '';
|
|
214
223
|
const initialIsMobile = MOBILE_UA.test(userAgent);
|
|
@@ -251,7 +260,7 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
251
260
|
// questions: "this browser has a session" versus "there is a session to have".
|
|
252
261
|
// A Kabmo running open answers `authenticated: true` for every visitor, so
|
|
253
262
|
// the navbar cannot use it to decide whether a sign-out control applies.
|
|
254
|
-
const bootstrap = JSON.stringify({ initialIsMobile, shellVersion: androidVersion, iosShellVersion: iosVersion, isAndroid, authenticated, authEnabled: isAuthEnabled(), production: !DEV_ASSETS_ENABLED, lastOpenedSessionId, appSettings: publishedSettings }).replace(/</g, '\\u003c');
|
|
263
|
+
const bootstrap = JSON.stringify({ initialIsMobile, shellVersion: androidVersion, iosShellVersion: iosVersion, isAndroid, authenticated, authEnabled: isAuthEnabled(), production: !DEV_ASSETS_ENABLED, lastOpenedSessionId, appSettings: publishedSettings, customThemes }).replace(/</g, '\\u003c');
|
|
255
264
|
// The template's own `<meta name="theme-color">` is REWRITTEN, not joined by
|
|
256
265
|
// a second tag: with both present Chrome reads the first one, so an appended
|
|
257
266
|
// tag would leave a dark theme painting light browser chrome.
|
|
@@ -261,6 +270,9 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
261
270
|
// inline `<style>` in every `no-store` document. `data-theme-css` is what the
|
|
262
271
|
// client's repair path looks for before injecting its own copy.
|
|
263
272
|
const themeLink = `<link rel="stylesheet" href="${THEME_CSS_ROUTE}" ${THEME_CSS_LINK_ATTRIBUTE}>`;
|
|
273
|
+
// The immutable sheet carries built-ins only. A custom palette's block rides
|
|
274
|
+
// beside it, after it, so the first frame is already the user's colours.
|
|
275
|
+
const customTheme = customThemeStyleElement(theme);
|
|
264
276
|
// The frame the browser paints BEFORE the bundle's stylesheet lands: the UA's
|
|
265
277
|
// own canvas is white, and on a dark install that is a measured white flash
|
|
266
278
|
// for the length of the CSS request. The palette's ground is the only correct
|
|
@@ -298,7 +310,7 @@ export const ssrRoutes = new Elysia({ name: 'ssr' }).get('*', async ({ request }
|
|
|
298
310
|
iconStyle: readSettingsBlob(settings)[ICON_STYLE_SETTING_KEY],
|
|
299
311
|
chromeColor: chrome,
|
|
300
312
|
})
|
|
301
|
-
.replace('<!--app-head-->', firstFrame + themeLink + fontLink)
|
|
313
|
+
.replace('<!--app-head-->', firstFrame + themeLink + customTheme + fontLink)
|
|
302
314
|
.replace(SHELL_MARKER, `<script>window.__OMP_BOOTSTRAP__=${bootstrap}</script>`),
|
|
303
315
|
{ headers: HTML_HEADERS },
|
|
304
316
|
);
|
|
@@ -8,6 +8,7 @@ import { packageDir } from '@/server/lib/fs/package-root';
|
|
|
8
8
|
import { refreshTrayIcon } from '@/server/lib/tray/runtime.server';
|
|
9
9
|
import { SETTINGS_BLOB_KEY } from '@/shared/lib/settings/keys';
|
|
10
10
|
import { TRAY_ICON_STYLE_SETTING_KEY } from '@/shared/lib/theme/tray-icon-style';
|
|
11
|
+
import { validateCustomThemesForWrite } from '@/shared/lib/theme/custom';
|
|
11
12
|
|
|
12
13
|
export async function loader({ request: _request }: LoaderFunctionArgs) {
|
|
13
14
|
try {
|
|
@@ -28,6 +29,16 @@ export async function action({ request, params }: ActionFunctionArgs) {
|
|
|
28
29
|
const data = await request.json();
|
|
29
30
|
const db = await getDb();
|
|
30
31
|
|
|
32
|
+
// A custom palette id becomes a CSS selector and its colours become
|
|
33
|
+
// declarations, so the array is validated BEFORE it reaches SQLite. A direct
|
|
34
|
+
// API call gets the same rules as the editor, and a refusal names the entry.
|
|
35
|
+
const customThemes = data[SETTINGS_BLOB_KEY]?.customThemes;
|
|
36
|
+
if (customThemes !== undefined) {
|
|
37
|
+
const checked = validateCustomThemesForWrite(customThemes);
|
|
38
|
+
if (!checked.ok) return json({ error: checked.error }, { status: 400 });
|
|
39
|
+
data[SETTINGS_BLOB_KEY] = { ...data[SETTINGS_BLOB_KEY], customThemes: checked.themes };
|
|
40
|
+
}
|
|
41
|
+
|
|
31
42
|
// Data should be an object of key-value pairs. Object values merge into
|
|
32
43
|
// whatever the key already holds, so a writer that sends one key's patch —
|
|
33
44
|
// the settings modal now sends only what changed — cannot discard the keys
|
|
@@ -38,6 +38,7 @@ import { action as behaviorAction, loader as behaviorLoader } from '@/server/rou
|
|
|
38
38
|
import { action as projectsAction, loader as projectsLoader } from '@/server/routes/settings/projects';
|
|
39
39
|
import { action as rootAction, loader as rootLoader } from '@/server/routes/settings/root';
|
|
40
40
|
import { removeDir } from '@/test-support/remove-dir';
|
|
41
|
+
import { SETTINGS_BLOB_KEY } from '@/shared/lib/settings/keys';
|
|
41
42
|
|
|
42
43
|
// `tmpdir()` rather than a literal `/tmp`: on Windows there is no `/tmp`, so a
|
|
43
44
|
// POSIX-literal root makes every write land at a path the OS resolves against
|
|
@@ -112,6 +113,42 @@ describe('settings root', () => {
|
|
|
112
113
|
expect(res.status).toBe(405);
|
|
113
114
|
expect(await res.json()).toEqual({ error: 'Method not allowed' });
|
|
114
115
|
});
|
|
116
|
+
|
|
117
|
+
test('a custom palette is validated before it is stored', async () => {
|
|
118
|
+
const palette = {
|
|
119
|
+
id: 'custom-route-test',
|
|
120
|
+
name: 'Route test',
|
|
121
|
+
family: 'custom',
|
|
122
|
+
variant: 'dark',
|
|
123
|
+
canvas: '#101418',
|
|
124
|
+
paper: '#14181e',
|
|
125
|
+
ink: '#e6e8eb',
|
|
126
|
+
error: '#ff6b6b',
|
|
127
|
+
success: '#4ade80',
|
|
128
|
+
info: '#60a5fa',
|
|
129
|
+
warning: '#fbbf24',
|
|
130
|
+
meta: '#a78bfa',
|
|
131
|
+
};
|
|
132
|
+
const ok = await call(
|
|
133
|
+
rootAction,
|
|
134
|
+
send(API, 'POST', { [SETTINGS_BLOB_KEY]: { customThemes: [palette], theme: palette.id } }),
|
|
135
|
+
);
|
|
136
|
+
expect(ok.status).toBe(200);
|
|
137
|
+
const stored = await (await call(rootLoader, new Request(API))).json();
|
|
138
|
+
expect(stored.settings[SETTINGS_BLOB_KEY].customThemes).toEqual([palette]);
|
|
139
|
+
expect(stored.settings[SETTINGS_BLOB_KEY].theme).toBe(palette.id);
|
|
140
|
+
|
|
141
|
+
// A built-in id cannot be stored as a user palette: it would replace a
|
|
142
|
+
// shipped palette in the custom table.
|
|
143
|
+
const bad = await call(
|
|
144
|
+
rootAction,
|
|
145
|
+
send(API, 'POST', { [SETTINGS_BLOB_KEY]: { customThemes: [{ ...palette, id: 'paper' }] } }),
|
|
146
|
+
);
|
|
147
|
+
expect(bad.status).toBe(400);
|
|
148
|
+
expect(typeof (await bad.json()).error).toBe('string');
|
|
149
|
+
const after = await (await call(rootLoader, new Request(API))).json();
|
|
150
|
+
expect(after.settings[SETTINGS_BLOB_KEY].customThemes).toEqual([palette]);
|
|
151
|
+
});
|
|
115
152
|
});
|
|
116
153
|
|
|
117
154
|
describe('settings projects', () => {
|
|
@@ -105,8 +105,8 @@ const TUI: BlockChrome = {
|
|
|
105
105
|
frame: '',
|
|
106
106
|
header: 'flex w-full items-center gap-2 px-1 py-0.5 text-left transition-colors',
|
|
107
107
|
icon: 'flex shrink-0 items-center justify-center',
|
|
108
|
-
title: 'shrink-0 text-[12px] font-semibold text-info',
|
|
109
|
-
subtitle: 'min-w-0 truncate font-mono text-[10.5px] text-meta',
|
|
108
|
+
title: 'shrink-0 text-[12px] font-semibold text-info-text',
|
|
109
|
+
subtitle: 'min-w-0 truncate font-mono text-[10.5px] text-meta-text',
|
|
110
110
|
body: 'my-1.5 ml-2 overflow-hidden border-l border-ink/10 py-1.5 pl-3',
|
|
111
111
|
};
|
|
112
112
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import { parseFlatTodoList } from './flat-list';
|
|
8
|
+
|
|
9
|
+
describe('parseFlatTodoList', () => {
|
|
10
|
+
test('reads opencode todos with content and cancels as abandoned', () => {
|
|
11
|
+
const groups = parseFlatTodoList({
|
|
12
|
+
todos: [
|
|
13
|
+
{ content: 'Read auth', status: 'completed' },
|
|
14
|
+
{ content: 'Patch guard', status: 'in_progress' },
|
|
15
|
+
{ content: 'Drop probe', status: 'cancelled' },
|
|
16
|
+
],
|
|
17
|
+
});
|
|
18
|
+
expect(groups).toEqual([{
|
|
19
|
+
name: 'Tasks',
|
|
20
|
+
tasks: [
|
|
21
|
+
{ content: 'Read auth', status: 'completed' },
|
|
22
|
+
{ content: 'Patch guard', status: 'in_progress' },
|
|
23
|
+
{ content: 'Drop probe', status: 'abandoned' },
|
|
24
|
+
],
|
|
25
|
+
}]);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test('reads kimi SetTodoList entries by title and done as completed', () => {
|
|
29
|
+
const groups = parseFlatTodoList({
|
|
30
|
+
todos: [
|
|
31
|
+
{ title: 'Read auth', status: 'done' },
|
|
32
|
+
{ title: 'Patch guard', status: 'in_progress' },
|
|
33
|
+
],
|
|
34
|
+
});
|
|
35
|
+
expect(groups?.[0]?.tasks).toEqual([
|
|
36
|
+
{ content: 'Read auth', status: 'completed' },
|
|
37
|
+
{ content: 'Patch guard', status: 'in_progress' },
|
|
38
|
+
]);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('reads antigravity update_steps by title', () => {
|
|
42
|
+
const groups = parseFlatTodoList({
|
|
43
|
+
steps: [
|
|
44
|
+
{ title: 'Verify account', status: 'done' },
|
|
45
|
+
{ title: 'Research strategy', status: 'pending' },
|
|
46
|
+
],
|
|
47
|
+
});
|
|
48
|
+
expect(groups?.[0]?.tasks.map((task) => [task.content, task.status])).toEqual([
|
|
49
|
+
['Verify account', 'completed'],
|
|
50
|
+
['Research strategy', 'pending'],
|
|
51
|
+
]);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('reads codex update_plan by step', () => {
|
|
55
|
+
const groups = parseFlatTodoList({
|
|
56
|
+
plan: [
|
|
57
|
+
{ step: 'Locate the guard', status: 'completed' },
|
|
58
|
+
{ step: 'Patch the guard', status: 'pending' },
|
|
59
|
+
],
|
|
60
|
+
});
|
|
61
|
+
expect(groups?.[0]?.tasks.map((task) => task.content)).toEqual([
|
|
62
|
+
'Locate the guard',
|
|
63
|
+
'Patch the guard',
|
|
64
|
+
]);
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test('reads the Gemini write_todos description spelling', () => {
|
|
68
|
+
const groups = parseFlatTodoList({ todos: [{ description: 'Write docs', status: 'pending' }] });
|
|
69
|
+
expect(groups?.[0]?.tasks).toEqual([{ content: 'Write docs', status: 'pending' }]);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
test('an empty first slot wins and is not replaced by a stale sibling', () => {
|
|
73
|
+
expect(parseFlatTodoList({ todos: [], plan: [{ step: 'stale', status: 'pending' }] })).toBeUndefined();
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
test('a non-object argument carries no list', () => {
|
|
77
|
+
expect(parseFlatTodoList(undefined)).toBeUndefined();
|
|
78
|
+
expect(parseFlatTodoList('todos')).toBeUndefined();
|
|
79
|
+
expect(parseFlatTodoList([])).toBeUndefined();
|
|
80
|
+
});
|
|
81
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An ACP agent's plan as ONE flat list, with no phases and no checklist text.
|
|
8
|
+
*
|
|
9
|
+
* The slots were measured one adapter at a time:
|
|
10
|
+
*
|
|
11
|
+
* - `todos` — opencode `todowrite` (`content`), kimi `SetTodoList` (`title`),
|
|
12
|
+
* hermes/minimax/deepseek `todo_write` (`content`), Gemini `write_todos`
|
|
13
|
+
* (`description`).
|
|
14
|
+
* - `plan` — codex `update_plan` (`step`).
|
|
15
|
+
* - `steps` — antigravity `update_steps` (`title`, status `done`).
|
|
16
|
+
*
|
|
17
|
+
* Reading only `content` left kimi and antigravity with zero rows, so their
|
|
18
|
+
* card fell back to a one-line summary. The label and status table lives in the
|
|
19
|
+
* contracts package, shared with the Todos panel's tracker.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import type { TodoPhase } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
23
|
+
import { todoItemsFromFlatInput } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
24
|
+
|
|
25
|
+
/** The flat list a tool's arguments carry, as the card's one phase. */
|
|
26
|
+
export function parseFlatTodoList(input: unknown): TodoPhase[] | undefined {
|
|
27
|
+
const tasks = todoItemsFromFlatInput(input);
|
|
28
|
+
return tasks && tasks.length > 0 ? [{ name: 'Tasks', tasks }] : undefined;
|
|
29
|
+
}
|
|
@@ -31,6 +31,7 @@ import type { ToolCallData } from '@/shared/types';
|
|
|
31
31
|
import type { TodoItem, TodoPhase, TodoProgress, TodoStatus } from '@kabmo-labs/kabmo-app-contracts/todo';
|
|
32
32
|
import { todoProgress } from '@kabmo-labs/kabmo-app-contracts/todo-snapshot';
|
|
33
33
|
import { parseNestedPhaseEntry, stripTrailingStatusNote } from '@/shared/lib/chat/todo/nested-phase';
|
|
34
|
+
import { parseFlatTodoList } from '@/shared/lib/chat/todo/flat-list';
|
|
34
35
|
|
|
35
36
|
export interface TodoDataSummary {
|
|
36
37
|
groups: TodoPhase[];
|
|
@@ -171,33 +172,6 @@ function mergePhaseGroups(rawGroups: TodoPhase[]): TodoPhase[] {
|
|
|
171
172
|
return result;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
/**
|
|
175
|
-
* A status from an agent's own list entry. opencode's vocabulary is
|
|
176
|
-
* `pending | in_progress | completed | cancelled`; `cancelled` is Kabmo's
|
|
177
|
-
* `abandoned` (a task dropped, not one still waiting). An unknown value is
|
|
178
|
-
* pending rather than invented as finished.
|
|
179
|
-
*/
|
|
180
|
-
function todoStatusOf(raw: unknown): TodoStatus {
|
|
181
|
-
if (typeof raw !== 'string') return 'pending';
|
|
182
|
-
switch (raw.toLowerCase()) {
|
|
183
|
-
case 'completed':
|
|
184
|
-
case 'done':
|
|
185
|
-
return 'completed';
|
|
186
|
-
case 'in_progress':
|
|
187
|
-
case 'in progress':
|
|
188
|
-
return 'in_progress';
|
|
189
|
-
case 'cancelled':
|
|
190
|
-
case 'canceled':
|
|
191
|
-
case 'abandoned':
|
|
192
|
-
case 'dropped':
|
|
193
|
-
return 'abandoned';
|
|
194
|
-
case 'blocked':
|
|
195
|
-
return 'blocked';
|
|
196
|
-
default:
|
|
197
|
-
return 'pending';
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
175
|
export function parseTodoData(tool: ToolCallData): TodoDataSummary {
|
|
202
176
|
const input = tool.input;
|
|
203
177
|
const inputObj = typeof input === 'object' && input !== null ? (input as Record<string, any>) : undefined;
|
|
@@ -273,32 +247,12 @@ export function parseTodoData(tool: ToolCallData): TodoDataSummary {
|
|
|
273
247
|
}
|
|
274
248
|
|
|
275
249
|
// An ACP agent sends its plan as a FLAT list with no phases and no checklist
|
|
276
|
-
// text
|
|
277
|
-
//
|
|
278
|
-
//
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
for (const entry of inputObj.todos) {
|
|
283
|
-
if (!entry || typeof entry !== 'object') continue;
|
|
284
|
-
const content = typeof entry.content === 'string' ? entry.content.trim() : '';
|
|
285
|
-
if (!content) continue;
|
|
286
|
-
tasks.push({ content, status: todoStatusOf(entry.status) });
|
|
287
|
-
}
|
|
288
|
-
if (tasks.length > 0) rawGroups.push({ name: 'Tasks', tasks });
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// codex-acp's `update_plan` names the same list `plan`, with `step` instead
|
|
292
|
-
// of `content`.
|
|
293
|
-
if (rawGroups.length === 0 && Array.isArray(inputObj?.plan)) {
|
|
294
|
-
const tasks: TodoItem[] = [];
|
|
295
|
-
for (const entry of inputObj.plan) {
|
|
296
|
-
if (!entry || typeof entry !== 'object') continue;
|
|
297
|
-
const content = typeof entry.step === 'string' ? entry.step.trim() : '';
|
|
298
|
-
if (!content) continue;
|
|
299
|
-
tasks.push({ content, status: todoStatusOf(entry.status) });
|
|
300
|
-
}
|
|
301
|
-
if (tasks.length > 0) rawGroups.push({ name: 'Tasks', tasks });
|
|
250
|
+
// text (`todos`/`plan`/`steps`; label and status spellings differ per
|
|
251
|
+
// adapter). `flat-list.ts` owns that table so this file only decides WHEN it
|
|
252
|
+
// applies: nothing in the text or omp's `list` matched.
|
|
253
|
+
if (rawGroups.length === 0) {
|
|
254
|
+
const flat = parseFlatTodoList(inputObj);
|
|
255
|
+
if (flat) rawGroups.push(...flat);
|
|
302
256
|
}
|
|
303
257
|
|
|
304
258
|
// Merge & deduplicate all phase groups
|
|
@@ -74,13 +74,13 @@ describe('todoStatusVisual', () => {
|
|
|
74
74
|
});
|
|
75
75
|
expect(todoStatusVisual('completed')).toEqual({
|
|
76
76
|
label: 'Completed',
|
|
77
|
-
tone: 'text-success',
|
|
77
|
+
tone: 'text-success-text',
|
|
78
78
|
active: false,
|
|
79
79
|
closed: true,
|
|
80
80
|
});
|
|
81
81
|
expect(todoStatusVisual('abandoned')).toEqual({
|
|
82
82
|
label: 'Abandoned',
|
|
83
|
-
tone: 'text-error
|
|
83
|
+
tone: 'text-error-text',
|
|
84
84
|
active: false,
|
|
85
85
|
closed: true,
|
|
86
86
|
});
|
|
@@ -89,7 +89,7 @@ describe('todoStatusVisual', () => {
|
|
|
89
89
|
test('a blocked task is warned about but not closed and not active', () => {
|
|
90
90
|
expect(todoStatusVisual('blocked')).toEqual({
|
|
91
91
|
label: 'Blocked',
|
|
92
|
-
tone: 'text-warning',
|
|
92
|
+
tone: 'text-warning-text',
|
|
93
93
|
active: false,
|
|
94
94
|
closed: false,
|
|
95
95
|
});
|
|
@@ -31,9 +31,9 @@ export interface TodoStatusVisual {
|
|
|
31
31
|
const STATUS_VISUALS: Record<TodoStatus, TodoStatusVisual> = {
|
|
32
32
|
pending: { label: 'Pending', tone: 'text-ink/45', active: false, closed: false },
|
|
33
33
|
in_progress: { label: 'In progress', tone: 'text-ink', active: true, closed: false },
|
|
34
|
-
completed: { label: 'Completed', tone: 'text-success', active: false, closed: true },
|
|
35
|
-
abandoned: { label: 'Abandoned', tone: 'text-error
|
|
36
|
-
blocked: { label: 'Blocked', tone: 'text-warning', active: false, closed: false },
|
|
34
|
+
completed: { label: 'Completed', tone: 'text-success-text', active: false, closed: true },
|
|
35
|
+
abandoned: { label: 'Abandoned', tone: 'text-error-text', active: false, closed: true },
|
|
36
|
+
blocked: { label: 'Blocked', tone: 'text-warning-text', active: false, closed: false },
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export function todoStatusVisual(status: TodoStatus): TodoStatusVisual {
|
|
@@ -29,8 +29,8 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
29
29
|
expect(getGitStatusInfo('')).toEqual({
|
|
30
30
|
charStatus: 'M',
|
|
31
31
|
label: 'Modified',
|
|
32
|
-
colorClass: 'text-info',
|
|
33
|
-
badgeBgClass: 'bg-info/10 text-info border-info/25',
|
|
32
|
+
colorClass: 'text-info-text',
|
|
33
|
+
badgeBgClass: 'bg-info/10 text-info-text border-info/25',
|
|
34
34
|
isStaged: false,
|
|
35
35
|
});
|
|
36
36
|
});
|
|
@@ -53,17 +53,17 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
53
53
|
expect(getGitStatusInfo('A')).toMatchObject({
|
|
54
54
|
charStatus: 'A',
|
|
55
55
|
label: 'Added',
|
|
56
|
-
colorClass: 'text-success',
|
|
56
|
+
colorClass: 'text-success-text',
|
|
57
57
|
});
|
|
58
58
|
expect(getGitStatusInfo('D')).toMatchObject({
|
|
59
59
|
charStatus: 'D',
|
|
60
60
|
label: 'Deleted',
|
|
61
|
-
colorClass: 'text-error',
|
|
61
|
+
colorClass: 'text-error-text',
|
|
62
62
|
});
|
|
63
63
|
expect(getGitStatusInfo('R')).toMatchObject({
|
|
64
64
|
charStatus: 'R',
|
|
65
65
|
label: 'Renamed',
|
|
66
|
-
colorClass: 'text-meta',
|
|
66
|
+
colorClass: 'text-meta-text',
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
|
|
@@ -76,7 +76,7 @@ describe('getGitStatusInfo: unstaged status codes', () => {
|
|
|
76
76
|
expect(getGitStatusInfo(code)).toMatchObject({
|
|
77
77
|
charStatus: 'U',
|
|
78
78
|
label: 'Untracked',
|
|
79
|
-
colorClass: 'text-success',
|
|
79
|
+
colorClass: 'text-success-text',
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
});
|
|
@@ -118,19 +118,19 @@ describe('getGitStatusInfo: staged status codes', () => {
|
|
|
118
118
|
expect(getGitStatusInfo('A', true)).toEqual({
|
|
119
119
|
charStatus: 'A',
|
|
120
120
|
label: 'Added (Staged)',
|
|
121
|
-
colorClass: 'text-success',
|
|
122
|
-
badgeBgClass: 'bg-success/10 text-success border-success/25',
|
|
121
|
+
colorClass: 'text-success-text',
|
|
122
|
+
badgeBgClass: 'bg-success/10 text-success-text border-success/25',
|
|
123
123
|
isStaged: true,
|
|
124
124
|
});
|
|
125
125
|
expect(getGitStatusInfo('D', true)).toMatchObject({
|
|
126
126
|
charStatus: 'D',
|
|
127
127
|
label: 'Deleted (Staged)',
|
|
128
|
-
colorClass: 'text-error',
|
|
128
|
+
colorClass: 'text-error-text',
|
|
129
129
|
});
|
|
130
130
|
expect(getGitStatusInfo('R', true)).toMatchObject({
|
|
131
131
|
charStatus: 'R',
|
|
132
132
|
label: 'Renamed (Staged)',
|
|
133
|
-
colorClass: 'text-meta',
|
|
133
|
+
colorClass: 'text-meta-text',
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
|
|
@@ -146,8 +146,8 @@ describe('getGitStatusInfo: staged status codes', () => {
|
|
|
146
146
|
expect(getGitStatusInfo('', true)).toEqual({
|
|
147
147
|
charStatus: 'M',
|
|
148
148
|
label: 'Modified (Staged)',
|
|
149
|
-
colorClass: 'text-info',
|
|
150
|
-
badgeBgClass: 'bg-info/10 text-info border-info/25',
|
|
149
|
+
colorClass: 'text-info-text',
|
|
150
|
+
badgeBgClass: 'bg-info/10 text-info-text border-info/25',
|
|
151
151
|
isStaged: true,
|
|
152
152
|
});
|
|
153
153
|
});
|
|
@@ -196,17 +196,17 @@ describe('buildGitStatusMaps', () => {
|
|
|
196
196
|
|
|
197
197
|
test('an untracked-only folder is green', () => {
|
|
198
198
|
const info = buildGitStatusMaps([change('src/a.ts', '??')]).folderMap.get('src');
|
|
199
|
-
expect(info).toMatchObject({ hasUntracked: true, hasModified: false, colorClass: 'text-success' });
|
|
199
|
+
expect(info).toMatchObject({ hasUntracked: true, hasModified: false, colorClass: 'text-success-text' });
|
|
200
200
|
});
|
|
201
201
|
|
|
202
202
|
test('a deleted-only folder is red', () => {
|
|
203
203
|
const info = buildGitStatusMaps([change('src/a.ts', ' D')]).folderMap.get('src');
|
|
204
|
-
expect(info).toMatchObject({ hasDeleted: true, colorClass: 'text-error' });
|
|
204
|
+
expect(info).toMatchObject({ hasDeleted: true, colorClass: 'text-error-text' });
|
|
205
205
|
});
|
|
206
206
|
|
|
207
207
|
test('a staged deletion is blue: staged outranks deleted in the color priority', () => {
|
|
208
208
|
const info = buildGitStatusMaps([change('src/a.ts', 'D ', true)]).folderMap.get('src');
|
|
209
|
-
expect(info).toMatchObject({ hasStaged: true, hasDeleted: true, colorClass: 'text-info' });
|
|
209
|
+
expect(info).toMatchObject({ hasStaged: true, hasDeleted: true, colorClass: 'text-info-text' });
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
test('a modified file outranks an untracked sibling for the folder color', () => {
|
|
@@ -214,7 +214,7 @@ describe('buildGitStatusMaps', () => {
|
|
|
214
214
|
change('src/a.ts', '??'),
|
|
215
215
|
change('src/b.ts', ' M'),
|
|
216
216
|
]).folderMap.get('src');
|
|
217
|
-
expect(info).toMatchObject({ hasModified: true, hasUntracked: true, colorClass: 'text-info' });
|
|
217
|
+
expect(info).toMatchObject({ hasModified: true, hasUntracked: true, colorClass: 'text-info-text' });
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
test('an untracked file outranks a deleted sibling for the folder color', () => {
|
|
@@ -222,7 +222,7 @@ describe('buildGitStatusMaps', () => {
|
|
|
222
222
|
change('src/a.ts', ' D'),
|
|
223
223
|
change('src/b.ts', '??'),
|
|
224
224
|
]).folderMap.get('src');
|
|
225
|
-
expect(info).toMatchObject({ hasUntracked: true, hasDeleted: true, colorClass: 'text-success' });
|
|
225
|
+
expect(info).toMatchObject({ hasUntracked: true, hasDeleted: true, colorClass: 'text-success-text' });
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
test('the dot uses the same tone as the folder name for add + modified + delete', () => {
|
|
@@ -231,15 +231,15 @@ describe('buildGitStatusMaps', () => {
|
|
|
231
231
|
change('src/b.ts', ' M'),
|
|
232
232
|
change('src/c.ts', ' D'),
|
|
233
233
|
]).folderMap.get('src');
|
|
234
|
-
expect(info).toMatchObject({ colorClass: 'text-info', dotClass: 'bg-info' });
|
|
234
|
+
expect(info).toMatchObject({ colorClass: 'text-info-text', dotClass: 'bg-info' });
|
|
235
235
|
});
|
|
236
236
|
|
|
237
237
|
test('the dot tone always tracks the name tone, one branch each', () => {
|
|
238
238
|
const cases: Array<{ rows: GitChange[]; name: string; dot: string }> = [
|
|
239
|
-
{ rows: [change('src/a.ts', 'UU')], name: 'text-warning', dot: 'bg-warning' },
|
|
240
|
-
{ rows: [change('src/a.ts', ' M')], name: 'text-info', dot: 'bg-info' },
|
|
241
|
-
{ rows: [change('src/a.ts', '??')], name: 'text-success', dot: 'bg-success' },
|
|
242
|
-
{ rows: [change('src/a.ts', ' D')], name: 'text-error', dot: 'bg-error' },
|
|
239
|
+
{ rows: [change('src/a.ts', 'UU')], name: 'text-warning-text', dot: 'bg-warning' },
|
|
240
|
+
{ rows: [change('src/a.ts', ' M')], name: 'text-info-text', dot: 'bg-info' },
|
|
241
|
+
{ rows: [change('src/a.ts', '??')], name: 'text-success-text', dot: 'bg-success' },
|
|
242
|
+
{ rows: [change('src/a.ts', ' D')], name: 'text-error-text', dot: 'bg-error' },
|
|
243
243
|
];
|
|
244
244
|
for (const c of cases) {
|
|
245
245
|
const info = buildGitStatusMaps(c.rows).folderMap.get('src');
|