@kabmo-labs/kabmo 0.49.0 → 0.50.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 +601 -557
- package/dist/client/static/js/{Body-9h5hd351.js → Body-pd3nt4xa.js} +3 -3
- package/dist/client/static/js/{CsvGrid-s05k1q18.js → CsvGrid-eksmqv8f.js} +2 -2
- package/dist/client/static/js/{DocxView-x6sjw5ht.js → DocxView-xfx1kt8x.js} +3 -3
- package/dist/client/static/js/{DrawioView-jashn8sf.js → DrawioView-2xyqg9bv.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-eygzgtyc.js → HtmlPreview-ps3f0aa5.js} +1 -1
- package/dist/client/static/js/ImageView-7vse3k6x.js +1 -0
- package/dist/client/static/js/{LayoutWrapper-tag0qpts.js → LayoutWrapper-qdp83fps.js} +2 -2
- package/dist/client/static/js/MergeDiffView-hzsccppq.js +1 -0
- package/dist/client/static/js/Modal-zw9x5b6f.js +60 -0
- package/dist/client/static/js/{PdfView-syhjmyqf.js → PdfView-8fp08jym.js} +1 -1
- package/dist/client/static/js/{SessionsView-2r1grxxs.js → SessionsView-qmgg03fv.js} +1 -1
- package/dist/client/static/js/{SheetView-26r0e506.js → SheetView-g7mstjdp.js} +22 -22
- package/dist/client/static/js/{SvgPreview-2fk85jzz.js → SvgPreview-wsv4h6c6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-fdka7pxr.js → abnfDiagram-O67JEVCF-1kgm1049.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-g7b64973.js +1 -0
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-mtm210rw.js +36 -0
- package/dist/client/static/js/{astro-rn2bvwpm.js → astro-dszrfwwn.js} +1 -1
- package/dist/client/static/js/bash-z5pe89pt.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-vpcmd3vx.js → blockDiagram-BEXU5L5S-s474vn2w.js} +8 -8
- package/dist/client/static/js/c-fy0fysfw.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-1rgpdnbq.js → c4Diagram-YGBWAQC7-s68v6tc8.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-fbsejvb9.js → classDiagram-v2-NBCMYWYE-291va3yk.js} +10 -10
- package/dist/client/static/js/cose-bilkent-JH36ORCC-0zg7crdw.js +1 -0
- package/dist/client/static/js/cpp-wam8dze6.js +1 -0
- package/dist/client/static/js/css-ke51m4kc.js +1 -0
- package/dist/client/static/js/css-yryw442h.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-8bscrcct.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-7ta5vbrw.js → cynefinDiagram-VND7K2PF-4gnmn3yc.js} +2 -2
- package/dist/client/static/js/{dagre-6A5THRUB-b8gtt32x.js → dagre-6A5THRUB-nxmj6bkg.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-7emepy7h.js → diagram-22UHCM2B-3171dabw.js} +25 -25
- package/dist/client/static/js/{diagram-3UASUU5V-06nptkzc.js → diagram-3UASUU5V-9h1pd6h8.js} +2 -2
- package/dist/client/static/js/{diagram-ATOU4E4O-t113exk3.js → diagram-ATOU4E4O-ywfrbd6m.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-pyj3x97y.js → diagram-CDSNMT55-t87b4wbk.js} +3 -3
- package/dist/client/static/js/{diagram-MLGK6HIB-183sgpjh.js → diagram-MLGK6HIB-bzv52p97.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-fmbj4hcx.js → diagram-MPIPVDR6-8f66rp0a.js} +2 -2
- package/dist/client/static/js/{dockerfile-qay672za.js → dockerfile-z3v0km9v.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-eafvfws2.js → ebnfDiagram-ZINNZB2B-3y4w2j6t.js} +1 -1
- package/dist/client/static/js/{elixir-t8bep87c.js → elixir-c701n0qg.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-573f1vfs.js → elk-276RUBZZ-d9d23jch.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-4z1r88ej.js → erDiagram-OPXOYQCR-w4z3501c.js} +12 -12
- package/dist/client/static/js/{erlang-261km7r1.js → erlang-cpw5s1f9.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-pj22bng1.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-9h6g160j.js +1 -0
- package/dist/client/static/js/ganttDiagram-FUAMR5RP-7wcxk4bm.js +292 -0
- package/dist/client/static/js/gitGraph-4MIJSDKK-hgw4jcvk.js +1 -0
- package/dist/client/static/js/gitGraphDiagram-X574FWY7-sdh1hsb1.js +106 -0
- package/dist/client/static/js/graphql-0yv8dc1v.js +1 -0
- package/dist/client/static/js/html-zk3m0az9.js +1 -0
- package/dist/client/static/js/{index-c3whkrwa.js → index-09ap9ncj.js} +30 -30
- package/dist/client/static/js/index-0ff2x5g9.js +1 -0
- package/dist/client/static/js/{index-gg910gpv.js → index-0q39ajgh.js} +2 -2
- package/dist/client/static/js/{index-tb35a328.js → index-144aknp3.js} +2 -2
- package/dist/client/static/js/index-17jy16v3.js +314 -0
- package/dist/client/static/js/{index-j37m7pn9.js → index-1adfks1n.js} +1 -1
- package/dist/client/static/js/{index-4dnc1kys.js → index-1d8v3bvm.js} +2 -2
- package/dist/client/static/js/index-1dx4dqzy.js +4 -0
- package/dist/client/static/js/{index-a4636gt1.js → index-1ec33b1j.js} +2 -2
- package/dist/client/static/js/{index-gr8sqjpz.js → index-1jx4nt2f.js} +1 -1
- package/dist/client/static/js/{index-80fjn77c.js → index-1kjgdyfk.js} +2 -2
- package/dist/client/static/js/{index-h8hjcdj1.js → index-1vfej0gk.js} +2 -2
- package/dist/client/static/js/{index-wbsvg1d9.js → index-2g1ey1c9.js} +2 -2
- package/dist/client/static/js/{index-bmaktvm2.js → index-3rhk4apq.js} +1 -1
- package/dist/client/static/js/{index-2yzt8h3d.js → index-4vaxdt8a.js} +2 -2
- package/dist/client/static/js/{index-fbg5vhhw.js → index-4z3qtazf.js} +2 -2
- package/dist/client/static/js/{index-taev57jw.js → index-56319bht.js} +2 -2
- package/dist/client/static/js/{index-yg083mk0.js → index-5qwgexg6.js} +6 -6
- package/dist/client/static/js/index-779rptb2.js +1 -0
- package/dist/client/static/js/{index-4z5ram7g.js → index-7jdz4jr4.js} +2 -2
- package/dist/client/static/js/{index-2bf0txsp.js → index-7xn7gxgw.js} +2 -2
- package/dist/client/static/js/{index-ykc14gez.js → index-8fk7h2me.js} +5 -5
- package/dist/client/static/js/{index-dh060b7r.js → index-971stdh4.js} +2 -2
- package/dist/client/static/js/{index-t522tpxt.js → index-9jrej3ht.js} +3 -3
- package/dist/client/static/js/index-9ydvkxz1.css +1 -0
- package/dist/client/static/js/{index-473hk8nb.js → index-ajdzvegm.js} +9 -9
- package/dist/client/static/js/{index-nzvte8s5.js → index-ajqmcds5.js} +2 -2
- package/dist/client/static/js/{index-5p8dwr4y.js → index-ap6hv7s7.js} +1 -1
- package/dist/client/static/js/{index-0857zpr0.js → index-aqqj4xxy.js} +2 -2
- package/dist/client/static/js/index-bczhbk01.js +2 -0
- package/dist/client/static/js/{index-z6y8j93w.js → index-bggz63br.js} +7 -7
- package/dist/client/static/js/{index-qwxawph7.js → index-c2mqr5fh.js} +2 -2
- package/dist/client/static/js/{index-4ccs971z.js → index-cm8pa783.js} +2 -2
- package/dist/client/static/js/{index-7rmps91t.js → index-dgkpbrdr.js} +2 -2
- package/dist/client/static/js/{index-epzvftkq.js → index-e471eprg.js} +1 -1
- package/dist/client/static/js/{index-14dgbjsm.js → index-evvmkk2f.js} +1 -1
- package/dist/client/static/js/{index-rz0tz4hg.js → index-frhxbqhg.js} +1 -1
- package/dist/client/static/js/{index-1p880x6e.js → index-gcgsjd3c.js} +2 -2
- package/dist/client/static/js/{index-s5vegk6q.js → index-grkacfv3.js} +2 -2
- package/dist/client/static/js/{index-7ff9scbm.js → index-gws4prmg.js} +2 -2
- package/dist/client/static/js/index-hqhz4eam.js +1 -0
- package/dist/client/static/js/{index-pv4z2mp2.js → index-jr6q69r3.js} +181 -179
- package/dist/client/static/js/{index-dmc82cxb.js → index-jxxewcat.js} +2 -2
- package/dist/client/static/js/{index-gz7kvpnm.js → index-k3vvk28c.js} +1 -1
- package/dist/client/static/js/{index-yyjw1ty9.js → index-k66w6d9b.js} +2 -2
- package/dist/client/static/js/{index-1yq96wpa.js → index-kce86cnw.js} +2 -2
- package/dist/client/static/js/{index-zp40g8ah.js → index-n54jd3aw.js} +12 -12
- package/dist/client/static/js/{index-pygy21w5.js → index-nnqyew8n.js} +2 -2
- package/dist/client/static/js/index-qaxjp73x.js +2 -0
- package/dist/client/static/js/{index-5dn4159w.js → index-qxzyvye9.js} +2 -2
- package/dist/client/static/js/{index-5ztdqm1w.js → index-r2z0a118.js} +2 -2
- package/dist/client/static/js/{index-7dqq7cjp.js → index-r6bm9sth.js} +7 -7
- package/dist/client/static/js/{index-e8mt8rag.js → index-ratbr10x.js} +2 -2
- package/dist/client/static/js/{index-xw1bptp5.js → index-rgneq3zt.js} +2 -2
- package/dist/client/static/js/{index-nbm5r9g1.js → index-svx6rnfs.js} +2 -2
- package/dist/client/static/js/{index-3v8k8ms3.js → index-tew3rd6t.js} +1 -1
- package/dist/client/static/js/index-tfwsch7a.js +4 -0
- package/dist/client/static/js/{index-qs4n116g.js → index-vgwjn4de.js} +2 -2
- package/dist/client/static/js/{index-mbtenbyc.js → index-vn495w82.js} +6 -6
- package/dist/client/static/js/{index-tcfpzqb9.js → index-wbma8kqw.js} +33 -33
- package/dist/client/static/js/{index-gaqjrzdb.js → index-xgbcn89g.js} +2 -2
- package/dist/client/static/js/{index-tc6k8qt7.js → index-xrn2reb5.js} +2 -2
- package/dist/client/static/js/{index-0w4jqzqk.js → index-zhnfq8br.js} +2 -2
- package/dist/client/static/js/index-zsx5vs3j.js +2 -0
- package/dist/client/static/js/info-A6RAGUB7-k0kv05ny.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-xsar9j6v.js → infoDiagram-VRGFBTTK-gtdp0z6p.js} +1 -1
- package/dist/client/static/js/ini-apj95p59.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-g2rvt9jp.js → ishikawaDiagram-OU5B5YK6-c05m0sqq.js} +3 -3
- package/dist/client/static/js/java-khk2v3g4.js +1 -0
- package/dist/client/static/js/javascript-gez6yppm.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-q95v18zc.js → journeyDiagram-ZHPQQLJL-kgk5ygm2.js} +6 -6
- package/dist/client/static/js/json-r78y6e80.js +1 -0
- package/dist/client/static/js/jsx-h7hfj8cz.js +1 -0
- package/dist/client/static/js/{julia-pe5vpc2m.js → julia-w13bz4s1.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-2e7m7ds3.js → kanban-definition-PNTS6WVX-q1w9w68s.js} +6 -6
- package/dist/client/static/js/lua-pat2bzg3.js +1 -0
- package/dist/client/static/js/markdown-545zn05v.js +1 -0
- package/dist/client/static/js/{mermaid.core-dzajkp0g.js → mermaid.core-1rz62j9g.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-banecvf8.js → mindmap-definition-NLK3R4M7-3m3w6bnb.js} +8 -8
- package/dist/client/static/js/one-dark-pro-7c942tnw.js +1 -0
- package/dist/client/static/js/one-light-tp8y6c5g.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-ne66q5h9.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-6erykm1c.js → pegDiagram-GJSIUBJH-svd3ex4e.js} +1 -1
- package/dist/client/static/js/{perl-cc2eqye8.js → perl-hcg3hacf.js} +1 -1
- package/dist/client/static/js/{php-p9bvnpsv.js → php-q6hhp84p.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-ej9aysvz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-jn1d905q.js → pieDiagram-5QR66LMP-2nrkw034.js} +3 -3
- package/dist/client/static/js/properties-9f76xngb.js +1 -0
- package/dist/client/static/js/python-nwerpkfq.js +1 -0
- package/dist/client/static/js/quadrantDiagram-O4NWA36T-4895d1aq.js +7 -0
- package/dist/client/static/js/r-39k5dr2p.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-375pe46t.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-hdgdfsc1.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-2p5ynn4a.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-2p1fxxen.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-g131pt42.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-ewzhhth2.js → railroadDiagram-XR7U4H2S-zj3g9yne.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-fcs3xd42.js → requirementDiagram-PLB6GJNP-727yjvs8.js} +6 -6
- package/dist/client/static/js/{ruby-65s2ca5d.js → ruby-wzqz8vw6.js} +1 -1
- package/dist/client/static/js/{rust-ec1j2hwy.js → rust-r94pgqvf.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-2r829rjf.js → sankeyDiagram-IPEJSGJF-17c7p2pe.js} +5 -5
- package/dist/client/static/js/{sass-p6cssgq8.js → sass-xb3van7h.js} +1 -1
- package/dist/client/static/js/{scss-qfx8wt3b.js → scss-ddg6t3x4.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-3mnte9tv.js → sequenceDiagram-PO4LG4MO-wcmbpckr.js} +21 -21
- package/dist/client/static/js/{sizeCapture-INFHLROL-r6hf9265.js → sizeCapture-INFHLROL-nkr57cd6.js} +1 -1
- package/dist/client/static/js/sql-4dcrp3sw.js +1 -0
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-hm2f0wdb.js → stateDiagram-v2-GCMORJYK-vd7r8s78.js} +6 -6
- package/dist/client/static/js/{svelte-jz3a190v.js → svelte-wzaxz546.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-s58xzqhw.js → swimlanes-2SLR337P-zhxm05ak.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-myzk2rg0.js +8 -0
- package/dist/client/static/js/timeline-definition-EJHVYXUP-n7gbzhzd.js +120 -0
- package/dist/client/static/js/treeView-Q6P3EWNA-gfztfha9.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-kwtrwq1f.js +1 -0
- package/dist/client/static/js/tsx-dk8rpgtw.js +1 -0
- package/dist/client/static/js/typescript-q0493nmw.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-ryvgs5ac.js → usecaseDiagram-POWQR4AR-davsnwkf.js} +82 -82
- package/dist/client/static/js/vennDiagram-UO4OBE2U-gb54bh5k.js +34 -0
- package/dist/client/static/js/{vue-rv4pea8r.js → vue-6zhfw7zx.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-30dnzvww.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-1kt8q8a4.js → wardleyDiagram-VNRHLVJA-sf98cg9t.js} +4 -4
- package/dist/client/static/js/xml-91sb3gt9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-q39bbgq4.js → xychartDiagram-PMCCYNJV-9nn09k40.js} +4 -4
- package/dist/client/static/js/yaml-ghx4mjw1.js +1 -0
- package/package.json +1 -1
- package/src/client/components/common/header-button/index.tsx +10 -2
- package/src/client/components/settings/apply-side-effects.test.ts +16 -0
- package/src/client/components/settings/apply-side-effects.ts +8 -0
- package/src/client/components/settings/categories/AppearanceSettings.test.tsx +1 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +2 -0
- package/src/client/components/settings/categories/HarnessSettings.tsx +8 -0
- package/src/client/components/settings/categories/TokenUsageSettings.tsx +26 -3
- package/src/client/components/settings/categories/appearance-settings/RightSideSection.test.tsx +97 -0
- package/src/client/components/settings/categories/appearance-settings/RightSideSection.tsx +94 -0
- package/src/client/components/settings/categories/appearance-settings/groups.ts +4 -3
- package/src/client/components/settings/categories/harness-settings/AccountLoginPanel.tsx +224 -0
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.test.tsx +139 -0
- package/src/client/components/settings/categories/harness-settings/AccountsPanel.tsx +349 -0
- package/src/client/components/settings/categories/harness-settings/AddAccountForm.tsx +58 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +33 -0
- package/src/client/components/settings/categories/token-usage-settings/HarnessFilter.tsx +59 -0
- package/src/client/components/settings/categories/token-usage-settings/panel.test.tsx +37 -0
- package/src/client/components/settings/categories/usage-settings/limit-groups.test.ts +10 -0
- package/src/client/components/settings/categories/usage-settings/limit-groups.ts +4 -1
- package/src/client/components/settings/categories/usage-settings/providers.ts +28 -0
- package/src/client/components/settings/categories/usage-settings/usage-visibility.test.ts +60 -0
- package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +40 -0
- package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +8 -2
- package/src/client/components/settings/categories/voice-settings/speech/VoiceSection.tsx +52 -21
- package/src/client/components/workspace/usage-panel/index.test.tsx +92 -12
- package/src/client/components/workspace/usage-panel/index.tsx +48 -12
- package/src/client/data/mock/token-usage.ts +53 -10
- package/src/client/hooks/chat/timeline/reader-input.ts +53 -1
- package/src/client/hooks/chat/timeline/scroll-activity.test.ts +103 -0
- package/src/client/hooks/chat/timeline/scroll-geometry.ts +9 -4
- package/src/client/hooks/chat/timeline/scroll.ts +19 -2
- package/src/client/hooks/models/harness-accounts.ts +143 -0
- package/src/client/hooks/models/harness-catalog.ts +9 -2
- package/src/client/hooks/models/use-harnesses-controller.ts +12 -0
- package/src/client/hooks/models/use-harnesses.ts +14 -0
- package/src/client/hooks/settings/hide-empty-providers.test.ts +132 -0
- package/src/client/hooks/settings/hide-empty-providers.ts +49 -0
- package/src/client/hooks/settings/useTokenUsage.ts +7 -2
- package/src/client/hooks/workspace/panel-tabs.ts +1 -1
- package/src/client/hooks/workspace/right-side.test.ts +75 -1
- package/src/client/hooks/workspace/right-side.ts +71 -10
- package/src/server/lib/antigravity/home.server.ts +27 -0
- package/src/server/lib/db/schema.ts +5 -1
- package/src/server/lib/harness/account-identity.server.ts +163 -0
- package/src/server/lib/harness/account-login.server.test.ts +151 -0
- package/src/server/lib/harness/account-login.server.ts +232 -0
- package/src/server/lib/harness/accounts.server.ts +339 -0
- package/src/server/lib/harness/accounts.test.ts +147 -0
- package/src/server/lib/harness/acp/background-probe.test.ts +314 -0
- package/src/server/lib/harness/acp/background-probe.ts +288 -0
- package/src/server/lib/harness/acp/background-replay.test.ts +1 -1
- package/src/server/lib/harness/acp/background-work.test.ts +4 -194
- package/src/server/lib/harness/acp/background-work.ts +4 -207
- package/src/server/lib/harness/acp/client.ts +3 -0
- package/src/server/lib/harness/acp/commands.ts +2 -2
- package/src/server/lib/harness/acp/one-shot.server.ts +4 -2
- package/src/server/lib/harness/acp/prewarm.server.ts +21 -16
- package/src/server/lib/harness/acp/session-background.test.ts +2 -1
- package/src/server/lib/harness/acp/session-intake.test.ts +8 -0
- package/src/server/lib/harness/acp/session-intake.ts +12 -3
- package/src/server/lib/harness/acp/session-options.ts +2 -0
- package/src/server/lib/harness/acp/session-process.ts +1 -0
- package/src/server/lib/harness/acp/session-wiring.test.ts +2 -0
- package/src/server/lib/harness/acp/session-wiring.ts +22 -0
- package/src/server/lib/harness/acp/session.ts +3 -3
- package/src/server/lib/harness/acp/stdio.test.ts +52 -0
- package/src/server/lib/harness/acp/stdio.ts +7 -1
- package/src/server/lib/harness/auto-probe.server.ts +2 -2
- package/src/server/lib/harness/launch-table.ts +6 -1
- package/src/server/lib/harness/launch.ts +1 -0
- package/src/server/lib/harness/schema.server.ts +37 -0
- package/src/server/lib/harness/session-delete.server.ts +4 -2
- package/src/server/lib/harness/session-import.server.ts +21 -7
- package/src/server/lib/harness/session-store.server.test.ts +12 -0
- package/src/server/lib/harness/session-store.server.ts +21 -6
- package/src/server/lib/harness/session-transcript.server.ts +2 -1
- package/src/server/lib/harness/spawn.server.ts +27 -6
- package/src/server/lib/models/provider-icon-fetch.test.ts +57 -3
- package/src/server/lib/models/provider-icon-fetch.ts +9 -1
- package/src/server/lib/models/provider-icon-store.server.ts +61 -0
- package/src/server/lib/models/provider-icon-store.test.ts +55 -0
- package/src/server/lib/models/provider-icon-svg.ts +57 -0
- package/src/server/lib/schedule/runtime.server.ts +4 -1
- package/src/server/lib/sessions/dispatch.server.ts +4 -1
- package/src/server/lib/sessions/fork.server.ts +2 -0
- package/src/server/lib/sessions/resolve.server.ts +4 -0
- package/src/server/lib/sessions/spawn.server.ts +4 -2
- package/src/server/lib/tts/engines/adapters.test.ts +33 -0
- package/src/server/lib/tts/engines/elevenlabs.ts +6 -0
- package/src/server/lib/tts/engines/gemini.ts +116 -0
- package/src/server/lib/tts/engines/index.ts +3 -0
- package/src/server/lib/tts/engines/openai.ts +21 -4
- package/src/server/lib/usage/antigravity-quota.test.ts +249 -0
- package/src/server/lib/usage/antigravity-quota.ts +197 -0
- package/src/server/lib/usage/antigravity.test.ts +20 -0
- package/src/server/lib/usage/antigravity.ts +267 -0
- package/src/server/lib/usage/index-harness.test.ts +162 -0
- package/src/server/lib/usage/index-parse.test.ts +1 -0
- package/src/server/lib/usage/index-parse.ts +12 -4
- package/src/server/lib/usage/index-query.server.ts +64 -2
- package/src/server/lib/usage/index-scan.server.ts +68 -152
- package/src/server/lib/usage/index-schema.server.ts +24 -8
- package/src/server/lib/usage/index-schema.test.ts +54 -0
- package/src/server/lib/usage/index-sources.server.ts +54 -0
- package/src/server/lib/usage/providers.server.test.ts +67 -1
- package/src/server/lib/usage/providers.server.ts +82 -3
- package/src/server/lib/usage/sources/claude.server.ts +187 -0
- package/src/server/lib/usage/sources/claude.test.ts +86 -0
- package/src/server/lib/usage/sources/codex.server.ts +155 -0
- package/src/server/lib/usage/sources/codex.test.ts +53 -0
- package/src/server/lib/usage/sources/dsh.server.ts +120 -0
- package/src/server/lib/usage/sources/dsh.test.ts +49 -0
- package/src/server/lib/usage/sources/helpers.ts +191 -0
- package/src/server/lib/usage/sources/jsonl.server.ts +78 -0
- package/src/server/lib/usage/sources/jsonl.test.ts +72 -0
- package/src/server/lib/usage/sources/omp.server.ts +124 -0
- package/src/server/lib/usage/sources/opencode.server.ts +203 -0
- package/src/server/lib/usage/sources/opencode.test.ts +104 -0
- package/src/server/lib/usage/sources/qwen.server.ts +122 -0
- package/src/server/lib/usage/sources/qwen.test.ts +62 -0
- package/src/server/lib/usage/sources/types.ts +53 -0
- package/src/server/lib/usage/sources/zcode.server.ts +131 -0
- package/src/server/lib/usage/sources/zcode.test.ts +87 -0
- package/src/server/routes/agent/harness-command.ts +2 -0
- package/src/server/routes/agent/prewarm.ts +7 -2
- package/src/server/routes/harness/accounts.test.ts +99 -0
- package/src/server/routes/harness/accounts.ts +106 -0
- package/src/server/routes/harness/root.ts +13 -1
- package/src/server/routes/sessions/local-image.ts +2 -2
- package/src/server/routes/telemetry/tokens.test.ts +20 -0
- package/src/server/routes/telemetry/tokens.ts +12 -3
- package/src/server/routes/tts/speak.test.ts +40 -0
- package/src/shared/lib/harness/accounts.test.ts +41 -0
- package/src/shared/lib/harness/accounts.ts +175 -0
- package/src/shared/lib/icons/tint-hues.generated.ts +26 -25
- package/src/shared/lib/markdown/ascii-art.test.ts +154 -0
- package/src/shared/lib/markdown/ascii-art.ts +158 -0
- package/src/shared/lib/markdown/marked.ts +24 -2
- package/src/shared/lib/models/provider/identity.test.ts +34 -0
- package/src/shared/lib/models/provider/identity.ts +28 -0
- package/src/shared/lib/settings/defaults.ts +2 -0
- package/src/shared/lib/tts/engines.test.ts +12 -0
- package/src/shared/lib/tts/engines.ts +58 -57
- package/src/shared/lib/tts/settings.ts +1 -1
- package/src/shared/lib/tts/voices.ts +98 -0
- package/src/shared/lib/workspace/right-side-hidden.ts +57 -0
- package/src/shared/lib/workspace/session-state/store.ts +7 -5
- package/src/shared/types/harness.ts +5 -0
- package/src/shared/types/settings/state.ts +12 -0
- package/src/shared/types/tokenUsage.ts +21 -0
- package/src/test-support/preload.ts +9 -0
- package/dist/client/static/js/ImageView-g50pk5pt.js +0 -1
- package/dist/client/static/js/MergeDiffView-c4mb8m1w.js +0 -1
- package/dist/client/static/js/Modal-pf9p6m1k.js +0 -59
- package/dist/client/static/js/architecture-7GRP2DOG-ee9wjsht.js +0 -1
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-278nx8rt.js +0 -36
- package/dist/client/static/js/bash-36shcpcw.js +0 -1
- package/dist/client/static/js/c-kxeqssf9.js +0 -1
- package/dist/client/static/js/cose-bilkent-JH36ORCC-ydq7mvy0.js +0 -1
- package/dist/client/static/js/cpp-wtk1s3d7.js +0 -1
- package/dist/client/static/js/css-0a0r6rp3.js +0 -1
- package/dist/client/static/js/css-xhnrhg4e.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-gs16zjqa.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-ftz7zrz5.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-ax0qfmp3.js +0 -1
- package/dist/client/static/js/ganttDiagram-FUAMR5RP-49jd7msz.js +0 -292
- package/dist/client/static/js/gitGraph-4MIJSDKK-3rtkds4s.js +0 -1
- package/dist/client/static/js/gitGraphDiagram-X574FWY7-5p9mgq7n.js +0 -106
- package/dist/client/static/js/graphql-w9ajhndp.js +0 -1
- package/dist/client/static/js/html-krfbq5wp.js +0 -1
- package/dist/client/static/js/index-05n22cg9.js +0 -4
- package/dist/client/static/js/index-2jgx68m0.js +0 -1
- package/dist/client/static/js/index-333rq9yy.js +0 -1
- package/dist/client/static/js/index-38g2eevc.js +0 -314
- package/dist/client/static/js/index-9wc36am3.css +0 -1
- package/dist/client/static/js/index-bvpzzhn2.js +0 -4
- package/dist/client/static/js/index-e19dbqd3.js +0 -2
- package/dist/client/static/js/index-yr3exz70.js +0 -2
- package/dist/client/static/js/index-zdw8bd5t.js +0 -2
- package/dist/client/static/js/index-zyefab6q.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-vr5mxm6f.js +0 -1
- package/dist/client/static/js/ini-zx7x1jj1.js +0 -1
- package/dist/client/static/js/java-bbw6kdcr.js +0 -1
- package/dist/client/static/js/javascript-p2a8rbpw.js +0 -1
- package/dist/client/static/js/json-zh7m2fyg.js +0 -1
- package/dist/client/static/js/jsx-3zyyt0eh.js +0 -1
- package/dist/client/static/js/lua-d656k76a.js +0 -1
- package/dist/client/static/js/markdown-b5w681mm.js +0 -1
- package/dist/client/static/js/one-dark-pro-z965dedc.js +0 -1
- package/dist/client/static/js/one-light-capdx801.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-ncb5xxtn.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-ff8fpvc4.js +0 -1
- package/dist/client/static/js/properties-3c6rmnqp.js +0 -1
- package/dist/client/static/js/python-a3x3zpv1.js +0 -1
- package/dist/client/static/js/quadrantDiagram-O4NWA36T-sz4afnp1.js +0 -7
- package/dist/client/static/js/r-7h3gwype.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-gbj4b1hf.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-ndv5tqgr.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-yjzj09s1.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-e6pw7e5z.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-9734dxy4.js +0 -1
- package/dist/client/static/js/sql-7a5vavm0.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-z4pt2kn1.js +0 -8
- package/dist/client/static/js/timeline-definition-EJHVYXUP-ezm1c4pz.js +0 -120
- package/dist/client/static/js/treeView-Q6P3EWNA-rs10d4p5.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-ey6c5x9f.js +0 -1
- package/dist/client/static/js/tsx-4a9b8tqf.js +0 -1
- package/dist/client/static/js/typescript-kas107wb.js +0 -1
- package/dist/client/static/js/vennDiagram-UO4OBE2U-rd5prsf1.js +0 -34
- package/dist/client/static/js/wardley-WFR3VGLG-kd9swrdr.js +0 -1
- package/dist/client/static/js/xml-3g4bdtpa.js +0 -1
- package/dist/client/static/js/yaml-ktxjn917.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Provider identity rules that are not a label, an endpoint or a dialect.
|
|
8
|
+
*
|
|
9
|
+
* Antigravity reaches Kabmo under more than one slug: omp names the OAuth
|
|
10
|
+
* provider `google-antigravity`, while the Antigravity CLI plugin installs as
|
|
11
|
+
* `antigravity-cli`. Both are the same product, and the quota panel has to
|
|
12
|
+
* recognise either one — the client so it draws one section per model family
|
|
13
|
+
* instead of a flat grid, the server so a local sign-in lands on the row that
|
|
14
|
+
* already exists rather than creating a second one beside it.
|
|
15
|
+
*
|
|
16
|
+
* Spelling-based on purpose: the slug is the identity and no endpoint is
|
|
17
|
+
* stored for an OAuth provider, so a base-URL rule (the one `token-harbor.ts`
|
|
18
|
+
* uses) has nothing to read.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** Whether a provider slug names Antigravity, whatever suffix it carries. */
|
|
22
|
+
export function isAntigravityProviderSlug(slug: string): boolean {
|
|
23
|
+
return slug
|
|
24
|
+
.trim()
|
|
25
|
+
.toLowerCase()
|
|
26
|
+
.replace(/[-_\s]/g, '')
|
|
27
|
+
.includes('antigravity');
|
|
28
|
+
}
|
|
@@ -24,6 +24,7 @@ import { DEFAULT_CHAT_WIDTH_MODE, DEFAULT_CUSTOM_CHAT_COLUMN_WIDTH } from '@/sha
|
|
|
24
24
|
import { DEFAULT_TOOL_RENDER_MODE } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
25
25
|
import { DEFAULT_SIDEBAR_STYLE } from '@/shared/lib/workspace/sidebar-style';
|
|
26
26
|
import { DEFAULT_MOBILE_PANEL_NAV, DEFAULT_PANEL_NAV } from '@/shared/lib/workspace/panel-nav';
|
|
27
|
+
import { DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE } from '@/shared/lib/workspace/right-side-hidden';
|
|
27
28
|
import { DEFAULT_COMPOSER_STYLE } from '@/shared/lib/chat/composer/style';
|
|
28
29
|
import { DEFAULT_SURFACE_STYLE } from '@/shared/lib/theme/surface-style';
|
|
29
30
|
import { DEFAULT_BORDER_STYLE } from '@/shared/lib/theme/border-style';
|
|
@@ -61,6 +62,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
61
62
|
sidebarStyle: DEFAULT_SIDEBAR_STYLE,
|
|
62
63
|
leftPanelNav: DEFAULT_PANEL_NAV,
|
|
63
64
|
rightPanelNav: DEFAULT_PANEL_NAV,
|
|
65
|
+
rightSideHiddenScope: DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE,
|
|
64
66
|
mobileLeftPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
65
67
|
mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
66
68
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
@@ -43,6 +43,18 @@ describe('TTS_ENGINES', () => {
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
+
test('only the engines that document language support expose it', () => {
|
|
47
|
+
expect(TTS_ENGINES.filter((engine) => engine.language !== 'none').map((engine) => engine.id))
|
|
48
|
+
.toEqual(['openai', 'elevenlabs', 'xai', 'gemini']);
|
|
49
|
+
expect(ttsEngine('xai').language).toBe('required');
|
|
50
|
+
expect(ttsEngine('gemini').language).toBe('auto');
|
|
51
|
+
expect(ttsEngine('omp').language).toBe('none');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('only the OpenAI-compatible engine accepts a keyless endpoint', () => {
|
|
55
|
+
expect(TTS_ENGINES.filter((engine) => engine.keyOptional).map((engine) => engine.id)).toEqual(['openai']);
|
|
56
|
+
});
|
|
57
|
+
|
|
46
58
|
test('presets name a model and a voice the engine understands', () => {
|
|
47
59
|
for (const preset of TTS_PRESETS) {
|
|
48
60
|
expect(preset.baseUrl).toMatch(/^https?:\/\//);
|
|
@@ -16,7 +16,15 @@
|
|
|
16
16
|
* the user's omp install, and a future in-Kabmo engine would be a different id.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
import {
|
|
20
|
+
DEEPGRAM_VOICES,
|
|
21
|
+
ELEVENLABS_VOICES,
|
|
22
|
+
GEMINI_VOICES,
|
|
23
|
+
OPENAI_VOICES,
|
|
24
|
+
XAI_VOICES,
|
|
25
|
+
} from '@/shared/lib/tts/voices';
|
|
26
|
+
|
|
27
|
+
export type TtsEngine = 'omp' | 'openai' | 'elevenlabs' | 'deepgram' | 'xai' | 'gemini';
|
|
20
28
|
|
|
21
29
|
export interface TtsModelOption {
|
|
22
30
|
id: string;
|
|
@@ -37,6 +45,8 @@ export interface TtsEngineSpec {
|
|
|
37
45
|
where: string;
|
|
38
46
|
/** True when the engine cannot work without an API key. */
|
|
39
47
|
needsKey: boolean;
|
|
48
|
+
/** True when an empty key is accepted — a local OpenAI-compatible server. */
|
|
49
|
+
keyOptional: boolean;
|
|
40
50
|
/** True when the endpoint is a base URL the user can point elsewhere. */
|
|
41
51
|
editableBaseUrl: boolean;
|
|
42
52
|
/** Endpoint used when the setting is empty; '' when the URL is fixed. */
|
|
@@ -56,66 +66,27 @@ export interface TtsEngineSpec {
|
|
|
56
66
|
*/
|
|
57
67
|
maxChars: number;
|
|
58
68
|
speed: { min: number; max: number };
|
|
59
|
-
/**
|
|
60
|
-
|
|
69
|
+
/**
|
|
70
|
+
* How the engine takes a language:
|
|
71
|
+
* - `required`: the API rejects a request without one (xAI).
|
|
72
|
+
* - `parameter`: sent as the provider's own language field when set.
|
|
73
|
+
* - `instructions`: folded into the model's steering prompt (OpenAI's
|
|
74
|
+
* `gpt-4o-mini-tts`); engines without prompt steering ignore it.
|
|
75
|
+
* - `auto`: no parameter; the model detects the answer's language (Gemini).
|
|
76
|
+
* - `none`: the engine has no language control (omp's local voices, Aura).
|
|
77
|
+
*/
|
|
78
|
+
language: 'required' | 'parameter' | 'instructions' | 'auto' | 'none';
|
|
61
79
|
/** Where the provider documents the API, shown under the fields. */
|
|
62
80
|
docs: string;
|
|
63
81
|
}
|
|
64
82
|
|
|
65
|
-
const OPENAI_VOICES: readonly TtsVoiceOption[] = [
|
|
66
|
-
{ id: 'marin', label: 'Marin (recommended)' },
|
|
67
|
-
{ id: 'cedar', label: 'Cedar (recommended)' },
|
|
68
|
-
{ id: 'alloy', label: 'Alloy' },
|
|
69
|
-
{ id: 'ash', label: 'Ash' },
|
|
70
|
-
{ id: 'ballad', label: 'Ballad' },
|
|
71
|
-
{ id: 'coral', label: 'Coral' },
|
|
72
|
-
{ id: 'echo', label: 'Echo' },
|
|
73
|
-
{ id: 'fable', label: 'Fable' },
|
|
74
|
-
{ id: 'nova', label: 'Nova' },
|
|
75
|
-
{ id: 'onyx', label: 'Onyx' },
|
|
76
|
-
{ id: 'sage', label: 'Sage' },
|
|
77
|
-
{ id: 'shimmer', label: 'Shimmer' },
|
|
78
|
-
{ id: 'verse', label: 'Verse' },
|
|
79
|
-
];
|
|
80
|
-
|
|
81
|
-
const ELEVENLABS_VOICES: readonly TtsVoiceOption[] = [
|
|
82
|
-
{ id: '21m00Tcm4TlvDq8ikWAM', label: 'Rachel (public)' },
|
|
83
|
-
{ id: 'pNInz6obpgDQGcFmaJgB', label: 'Adam (public)' },
|
|
84
|
-
{ id: 'EXAVITQu4vr4xnSDxMaL', label: 'Bella (public)' },
|
|
85
|
-
{ id: 'JBFqnCBsd6RMkjVDRZzb', label: 'George (public)' },
|
|
86
|
-
];
|
|
87
|
-
|
|
88
|
-
const DEEPGRAM_VOICES: readonly TtsModelOption[] = [
|
|
89
|
-
{ id: 'aura-2-thalia-en', label: 'Thalia (American female)', hint: 'Default; clear and neutral.' },
|
|
90
|
-
{ id: 'aura-2-andromeda-en', label: 'Andromeda (American female)', hint: 'Warm and conversational.' },
|
|
91
|
-
{ id: 'aura-2-helena-en', label: 'Helena (American female)', hint: 'Bright and friendly.' },
|
|
92
|
-
{ id: 'aura-2-apollo-en', label: 'Apollo (American male)', hint: 'Confident, news-like.' },
|
|
93
|
-
{ id: 'aura-2-arcas-en', label: 'Arcas (American male)', hint: 'Calm and steady.' },
|
|
94
|
-
{ id: 'aura-2-orion-en', label: 'Orion (American male)', hint: 'Deep and measured.' },
|
|
95
|
-
{ id: 'aura-2-zeus-en', label: 'Zeus (American male)', hint: 'Authoritative.' },
|
|
96
|
-
{ id: 'aura-2-agustina-es', label: 'Agustina (Spanish female)', hint: 'Spanish.' },
|
|
97
|
-
{ id: 'aura-2-alvaro-es', label: 'Alvaro (Spanish male)', hint: 'Spanish.' },
|
|
98
|
-
{ id: 'aura-2-agathe-fr', label: 'Agathe (French female)', hint: 'French.' },
|
|
99
|
-
{ id: 'aura-2-hector-fr', label: 'Hector (French male)', hint: 'French.' },
|
|
100
|
-
{ id: 'aura-2-aurelia-de', label: 'Aurelia (German female)', hint: 'German.' },
|
|
101
|
-
{ id: 'aura-2-julius-de', label: 'Julius (German male)', hint: 'German.' },
|
|
102
|
-
{ id: 'aura-2-cesare-it', label: 'Cesare (Italian male)', hint: 'Italian.' },
|
|
103
|
-
{ id: 'aura-2-livia-it', label: 'Livia (Italian female)', hint: 'Italian.' },
|
|
104
|
-
{ id: 'aura-2-ama-ja', label: 'Ama (Japanese female)', hint: 'Japanese.' },
|
|
105
|
-
{ id: 'aura-2-ebisu-ja', label: 'Ebisu (Japanese male)', hint: 'Japanese.' },
|
|
106
|
-
];
|
|
107
|
-
|
|
108
|
-
const XAI_VOICES: readonly TtsVoiceOption[] = [
|
|
109
|
-
{ id: 'eve', label: 'Eve (default)' },
|
|
110
|
-
{ id: 'ara', label: 'Ara' },
|
|
111
|
-
];
|
|
112
|
-
|
|
113
83
|
export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
114
84
|
{
|
|
115
85
|
id: 'omp',
|
|
116
86
|
label: 'This machine (omp)',
|
|
117
87
|
where: 'Text never leaves this machine. omp downloads its voice on first use.',
|
|
118
88
|
needsKey: false,
|
|
89
|
+
keyOptional: false,
|
|
119
90
|
editableBaseUrl: false,
|
|
120
91
|
baseUrl: '',
|
|
121
92
|
defaultModel: '',
|
|
@@ -125,7 +96,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
125
96
|
voiceEditable: false,
|
|
126
97
|
maxChars: 4000,
|
|
127
98
|
speed: { min: 0.8, max: 1.3 },
|
|
128
|
-
|
|
99
|
+
language: 'none',
|
|
129
100
|
docs: 'https://github.com/kabmo-labs/kabmo/wiki/Chat-Stream-and-Tools',
|
|
130
101
|
},
|
|
131
102
|
{
|
|
@@ -133,6 +104,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
133
104
|
label: 'OpenAI-compatible API',
|
|
134
105
|
where: 'Text is uploaded to the endpoint below.',
|
|
135
106
|
needsKey: true,
|
|
107
|
+
keyOptional: true,
|
|
136
108
|
editableBaseUrl: true,
|
|
137
109
|
baseUrl: 'https://api.openai.com/v1',
|
|
138
110
|
defaultModel: 'gpt-4o-mini-tts',
|
|
@@ -149,7 +121,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
149
121
|
voiceEditable: true,
|
|
150
122
|
maxChars: 4096,
|
|
151
123
|
speed: { min: 0.25, max: 4 },
|
|
152
|
-
|
|
124
|
+
language: 'instructions',
|
|
153
125
|
docs: 'https://platform.openai.com/docs/guides/text-to-speech',
|
|
154
126
|
},
|
|
155
127
|
{
|
|
@@ -157,6 +129,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
157
129
|
label: 'ElevenLabs',
|
|
158
130
|
where: 'Text is uploaded to api.elevenlabs.io.',
|
|
159
131
|
needsKey: true,
|
|
132
|
+
keyOptional: false,
|
|
160
133
|
editableBaseUrl: false,
|
|
161
134
|
baseUrl: 'https://api.elevenlabs.io',
|
|
162
135
|
defaultModel: 'eleven_multilingual_v2',
|
|
@@ -171,7 +144,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
171
144
|
voiceEditable: true,
|
|
172
145
|
maxChars: 5000,
|
|
173
146
|
speed: { min: 0.7, max: 1.2 },
|
|
174
|
-
|
|
147
|
+
language: 'parameter',
|
|
175
148
|
docs: 'https://elevenlabs.io/docs/api-reference/text-to-speech/convert',
|
|
176
149
|
},
|
|
177
150
|
{
|
|
@@ -179,6 +152,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
179
152
|
label: 'Deepgram Aura',
|
|
180
153
|
where: 'Text is uploaded to api.deepgram.com.',
|
|
181
154
|
needsKey: true,
|
|
155
|
+
keyOptional: false,
|
|
182
156
|
editableBaseUrl: false,
|
|
183
157
|
baseUrl: 'https://api.deepgram.com',
|
|
184
158
|
defaultModel: 'aura-2-thalia-en',
|
|
@@ -188,7 +162,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
188
162
|
voiceEditable: false,
|
|
189
163
|
maxChars: 2000,
|
|
190
164
|
speed: { min: 0.5, max: 2 },
|
|
191
|
-
|
|
165
|
+
language: 'none',
|
|
192
166
|
docs: 'https://developers.deepgram.com/reference/text-to-speech/speak-request',
|
|
193
167
|
},
|
|
194
168
|
{
|
|
@@ -196,6 +170,7 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
196
170
|
label: 'xAI Grok Voice',
|
|
197
171
|
where: 'Text is uploaded to api.x.ai.',
|
|
198
172
|
needsKey: true,
|
|
173
|
+
keyOptional: false,
|
|
199
174
|
editableBaseUrl: false,
|
|
200
175
|
baseUrl: 'https://api.x.ai',
|
|
201
176
|
defaultModel: 'grok-tts',
|
|
@@ -205,9 +180,35 @@ export const TTS_ENGINES: readonly TtsEngineSpec[] = [
|
|
|
205
180
|
voiceEditable: true,
|
|
206
181
|
maxChars: 60_000,
|
|
207
182
|
speed: { min: 0.7, max: 1.5 },
|
|
208
|
-
|
|
183
|
+
language: 'required',
|
|
209
184
|
docs: 'https://docs.x.ai/docs/guides/voice',
|
|
210
185
|
},
|
|
186
|
+
{
|
|
187
|
+
id: 'gemini',
|
|
188
|
+
label: 'Google Gemini TTS',
|
|
189
|
+
where: 'Text is uploaded to generativelanguage.googleapis.com.',
|
|
190
|
+
needsKey: true,
|
|
191
|
+
keyOptional: false,
|
|
192
|
+
editableBaseUrl: false,
|
|
193
|
+
baseUrl: 'https://generativelanguage.googleapis.com',
|
|
194
|
+
defaultModel: 'gemini-3.8-flash-tts',
|
|
195
|
+
defaultVoice: 'Kore',
|
|
196
|
+
models: [
|
|
197
|
+
{ id: 'gemini-3.8-flash-tts', label: 'Gemini 3.8 Flash TTS', hint: 'Studio-grade, expressive; 130+ languages.' },
|
|
198
|
+
{ id: 'gemini-3.8-flash-lite-tts', label: 'Gemini 3.8 Flash-Lite TTS', hint: 'Faster and cheaper; 100+ languages.' },
|
|
199
|
+
{ id: 'gemini-3.1-flash-tts-preview', label: 'Gemini 3.1 Flash TTS (preview)', hint: 'Previous generation; low latency.' },
|
|
200
|
+
{ id: 'gemini-2.5-flash-preview-tts', label: 'Gemini 2.5 Flash TTS (preview)', hint: 'Legacy preview model.' },
|
|
201
|
+
],
|
|
202
|
+
voices: GEMINI_VOICES,
|
|
203
|
+
voiceEditable: true,
|
|
204
|
+
maxChars: 4000,
|
|
205
|
+
// Gemini exposes no speaking-rate field; style is steered with
|
|
206
|
+
// `speech_metadata` annotations instead. A fixed range keeps the control
|
|
207
|
+
// hidden rather than offering a slider that does nothing.
|
|
208
|
+
speed: { min: 1, max: 1 },
|
|
209
|
+
language: 'auto',
|
|
210
|
+
docs: 'https://ai.google.dev/gemini-api/docs/speech-generation',
|
|
211
|
+
},
|
|
211
212
|
];
|
|
212
213
|
|
|
213
214
|
/** One-click endpoints for the OpenAI-compatible engine. */
|
|
@@ -255,7 +256,7 @@ export const TTS_PRESETS: readonly TtsPreset[] = [
|
|
|
255
256
|
},
|
|
256
257
|
];
|
|
257
258
|
|
|
258
|
-
/** Languages
|
|
259
|
+
/** Languages the tagged engines accept (BCP-47), plus `auto`. */
|
|
259
260
|
export const TTS_LANGUAGES: readonly { id: string; label: string }[] = [
|
|
260
261
|
{ id: 'auto', label: 'Detect automatically' },
|
|
261
262
|
{ id: 'en', label: 'English' },
|
|
@@ -103,6 +103,6 @@ export function resolveTtsRequest(config: TtsConfig): {
|
|
|
103
103
|
voice: resolveTtsVoice(config.engine, config.voice),
|
|
104
104
|
speed: clampTtsSpeed(config.engine, config.speed),
|
|
105
105
|
baseUrl: spec.editableBaseUrl ? resolveTtsBaseUrl(config.engine, config.baseUrl) : spec.baseUrl,
|
|
106
|
-
language: config.language.trim() || (spec.
|
|
106
|
+
language: config.language.trim() || (spec.language === 'required' ? 'auto' : ''),
|
|
107
107
|
};
|
|
108
108
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The voice catalogs each speech engine offers.
|
|
8
|
+
*
|
|
9
|
+
* Split out of `engines.ts` when the Gemini list pushed that file past the
|
|
10
|
+
* 350-line ceiling. The type-only import keeps this a leaf at runtime: the
|
|
11
|
+
* engine table imports these arrays, and these arrays import nothing but
|
|
12
|
+
* types.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import type { TtsModelOption, TtsVoiceOption } from '@/shared/lib/tts/engines';
|
|
16
|
+
|
|
17
|
+
export const OPENAI_VOICES: readonly TtsVoiceOption[] = [
|
|
18
|
+
{ id: 'marin', label: 'Marin (recommended)' },
|
|
19
|
+
{ id: 'cedar', label: 'Cedar (recommended)' },
|
|
20
|
+
{ id: 'alloy', label: 'Alloy' },
|
|
21
|
+
{ id: 'ash', label: 'Ash' },
|
|
22
|
+
{ id: 'ballad', label: 'Ballad' },
|
|
23
|
+
{ id: 'coral', label: 'Coral' },
|
|
24
|
+
{ id: 'echo', label: 'Echo' },
|
|
25
|
+
{ id: 'fable', label: 'Fable' },
|
|
26
|
+
{ id: 'nova', label: 'Nova' },
|
|
27
|
+
{ id: 'onyx', label: 'Onyx' },
|
|
28
|
+
{ id: 'sage', label: 'Sage' },
|
|
29
|
+
{ id: 'shimmer', label: 'Shimmer' },
|
|
30
|
+
{ id: 'verse', label: 'Verse' },
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
export const ELEVENLABS_VOICES: readonly TtsVoiceOption[] = [
|
|
34
|
+
{ id: '21m00Tcm4TlvDq8ikWAM', label: 'Rachel (public)' },
|
|
35
|
+
{ id: 'pNInz6obpgDQGcFmaJgB', label: 'Adam (public)' },
|
|
36
|
+
{ id: 'EXAVITQu4vr4xnSDxMaL', label: 'Bella (public)' },
|
|
37
|
+
{ id: 'JBFqnCBsd6RMkjVDRZzb', label: 'George (public)' },
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
/** Deepgram's model id is its voice, so this doubles as the model list. */
|
|
41
|
+
export const DEEPGRAM_VOICES: readonly TtsModelOption[] = [
|
|
42
|
+
{ id: 'aura-2-thalia-en', label: 'Thalia (American female)', hint: 'Default; clear and neutral.' },
|
|
43
|
+
{ id: 'aura-2-andromeda-en', label: 'Andromeda (American female)', hint: 'Warm and conversational.' },
|
|
44
|
+
{ id: 'aura-2-helena-en', label: 'Helena (American female)', hint: 'Bright and friendly.' },
|
|
45
|
+
{ id: 'aura-2-apollo-en', label: 'Apollo (American male)', hint: 'Confident, news-like.' },
|
|
46
|
+
{ id: 'aura-2-arcas-en', label: 'Arcas (American male)', hint: 'Calm and steady.' },
|
|
47
|
+
{ id: 'aura-2-orion-en', label: 'Orion (American male)', hint: 'Deep and measured.' },
|
|
48
|
+
{ id: 'aura-2-zeus-en', label: 'Zeus (American male)', hint: 'Authoritative.' },
|
|
49
|
+
{ id: 'aura-2-agustina-es', label: 'Agustina (Spanish female)', hint: 'Spanish.' },
|
|
50
|
+
{ id: 'aura-2-alvaro-es', label: 'Alvaro (Spanish male)', hint: 'Spanish.' },
|
|
51
|
+
{ id: 'aura-2-agathe-fr', label: 'Agathe (French female)', hint: 'French.' },
|
|
52
|
+
{ id: 'aura-2-hector-fr', label: 'Hector (French male)', hint: 'French.' },
|
|
53
|
+
{ id: 'aura-2-aurelia-de', label: 'Aurelia (German female)', hint: 'German.' },
|
|
54
|
+
{ id: 'aura-2-julius-de', label: 'Julius (German male)', hint: 'German.' },
|
|
55
|
+
{ id: 'aura-2-cesare-it', label: 'Cesare (Italian male)', hint: 'Italian.' },
|
|
56
|
+
{ id: 'aura-2-livia-it', label: 'Livia (Italian female)', hint: 'Italian.' },
|
|
57
|
+
{ id: 'aura-2-ama-ja', label: 'Ama (Japanese female)', hint: 'Japanese.' },
|
|
58
|
+
{ id: 'aura-2-ebisu-ja', label: 'Ebisu (Japanese male)', hint: 'Japanese.' },
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
export const XAI_VOICES: readonly TtsVoiceOption[] = [
|
|
62
|
+
{ id: 'eve', label: 'Eve (default)' },
|
|
63
|
+
{ id: 'ara', label: 'Ara' },
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
/** Gemini's 30 prebuilt studio voices; a typed `voice_...` id also works. */
|
|
67
|
+
export const GEMINI_VOICES: readonly TtsVoiceOption[] = [
|
|
68
|
+
{ id: 'Kore', label: 'Kore (firm)' },
|
|
69
|
+
{ id: 'Puck', label: 'Puck (upbeat)' },
|
|
70
|
+
{ id: 'Charon', label: 'Charon (informative)' },
|
|
71
|
+
{ id: 'Zephyr', label: 'Zephyr (bright)' },
|
|
72
|
+
{ id: 'Fenrir', label: 'Fenrir (excitable)' },
|
|
73
|
+
{ id: 'Leda', label: 'Leda (youthful)' },
|
|
74
|
+
{ id: 'Orus', label: 'Orus (firm)' },
|
|
75
|
+
{ id: 'Aoede', label: 'Aoede (breezy)' },
|
|
76
|
+
{ id: 'Callirrhoe', label: 'Callirrhoe (easy-going)' },
|
|
77
|
+
{ id: 'Autonoe', label: 'Autonoe (bright)' },
|
|
78
|
+
{ id: 'Enceladus', label: 'Enceladus (breathy)' },
|
|
79
|
+
{ id: 'Iapetus', label: 'Iapetus (clear)' },
|
|
80
|
+
{ id: 'Umbriel', label: 'Umbriel (easy-going)' },
|
|
81
|
+
{ id: 'Algieba', label: 'Algieba (smooth)' },
|
|
82
|
+
{ id: 'Despina', label: 'Despina (smooth)' },
|
|
83
|
+
{ id: 'Erinome', label: 'Erinome (clear)' },
|
|
84
|
+
{ id: 'Algenib', label: 'Algenib (gravelly)' },
|
|
85
|
+
{ id: 'Rasalgethi', label: 'Rasalgethi (informative)' },
|
|
86
|
+
{ id: 'Laomedeia', label: 'Laomedeia (upbeat)' },
|
|
87
|
+
{ id: 'Achernar', label: 'Achernar (soft)' },
|
|
88
|
+
{ id: 'Alnilam', label: 'Alnilam (firm)' },
|
|
89
|
+
{ id: 'Schedar', label: 'Schedar (even)' },
|
|
90
|
+
{ id: 'Gacrux', label: 'Gacrux (mature)' },
|
|
91
|
+
{ id: 'Pulcherrima', label: 'Pulcherrima (forward)' },
|
|
92
|
+
{ id: 'Achird', label: 'Achird (friendly)' },
|
|
93
|
+
{ id: 'Zubenelgenubi', label: 'Zubenelgenubi (casual)' },
|
|
94
|
+
{ id: 'Vindemiatrix', label: 'Vindemiatrix (gentle)' },
|
|
95
|
+
{ id: 'Sadachbia', label: 'Sadachbia (lively)' },
|
|
96
|
+
{ id: 'Sadaltager', label: 'Sadaltager (knowledgeable)' },
|
|
97
|
+
{ id: 'Sulafat', label: 'Sulafat (warm)' },
|
|
98
|
+
];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Whether the whole right side — the editor column, the right panel and their
|
|
8
|
+
* rail — is put away, and how long that answer is remembered.
|
|
9
|
+
*
|
|
10
|
+
* The SCOPE is the user's choice (`session` by default): closing the side is
|
|
11
|
+
* about one chat, as every other layout choice is, but a reader who works the
|
|
12
|
+
* same way in every chat can have it apply to all of them. Two slots therefore
|
|
13
|
+
* exist:
|
|
14
|
+
*
|
|
15
|
+
* - `session` (default) — `layout.rightSideHidden` in `session_ui_state`, so
|
|
16
|
+
* switching chats brings back the side each chat was left with.
|
|
17
|
+
* - `global` — `app_settings.omp_right_side_hidden`, so a close is the reader's
|
|
18
|
+
* screen rather than the chat's.
|
|
19
|
+
*
|
|
20
|
+
* Every toggle writes BOTH slots. That is what makes switching this setting
|
|
21
|
+
* harmless: the scope only decides which slot is read, never which one has an
|
|
22
|
+
* opinion, so a user who changes the setting sees the side they already chose
|
|
23
|
+
* rather than a stale value from the other slot.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import { readKabmoSetting, writeSetting } from '@/shared/lib/settings/client';
|
|
27
|
+
|
|
28
|
+
export type RightSideHiddenScope = 'session' | 'global';
|
|
29
|
+
|
|
30
|
+
/** `kabmo_settings` key holding the scope choice. */
|
|
31
|
+
export const RIGHT_SIDE_HIDDEN_SCOPE_KEY = 'rightSideHiddenScope' as const;
|
|
32
|
+
|
|
33
|
+
/** Per session, so an upgrade rearranges nothing and matches the columns. */
|
|
34
|
+
export const DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE: RightSideHiddenScope = 'session';
|
|
35
|
+
|
|
36
|
+
/** `app_settings` key holding the side's state under the global scope. */
|
|
37
|
+
export const RIGHT_SIDE_HIDDEN_SETTING_KEY = 'omp_right_side_hidden';
|
|
38
|
+
|
|
39
|
+
/** A stored value, resolved to a scope this build can honour. */
|
|
40
|
+
export function resolveRightSideHiddenScope(value: unknown): RightSideHiddenScope {
|
|
41
|
+
return value === 'global' ? 'global' : DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** The stored scope; absent means the session default. */
|
|
45
|
+
export function currentRightSideHiddenScope(appSettings?: Record<string, any>): RightSideHiddenScope {
|
|
46
|
+
return resolveRightSideHiddenScope(readKabmoSetting<unknown>(RIGHT_SIDE_HIDDEN_SCOPE_KEY, appSettings));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** The stored global preference; absent means the side is on. */
|
|
50
|
+
export function readRightSideHidden(): boolean {
|
|
51
|
+
return readKabmoSetting<unknown>(RIGHT_SIDE_HIDDEN_SETTING_KEY) === true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Persist one toggle into the global slot. */
|
|
55
|
+
export function saveRightSideHidden(hidden: boolean): void {
|
|
56
|
+
writeSetting(RIGHT_SIDE_HIDDEN_SETTING_KEY, hidden);
|
|
57
|
+
}
|
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
* the retired per-panel `<panel>.activeRepo` keys,
|
|
16
16
|
* which are migrated on the first open.
|
|
17
17
|
* - layout.activeRightPanel RightPanelType
|
|
18
|
-
* - layout.showRightPanel boolean
|
|
18
|
+
* - layout.showRightPanel boolean — the panel's own switch.
|
|
19
19
|
* - layout.rightSideHidden boolean — the whole right side (editor column,
|
|
20
|
-
* right panel and their rail) is put away
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* right panel and their rail) is put away. Read
|
|
21
|
+
* only while `rightSideHiddenScope` is `session`
|
|
22
|
+
* (the default); under `global` the toggle reads
|
|
23
|
+
* `app_settings.omp_right_side_hidden` instead.
|
|
24
|
+
* Both slots are written on every toggle, so the
|
|
25
|
+
* scope only decides which one is drawn.
|
|
24
26
|
* - layout.showLeftPanel boolean
|
|
25
27
|
* - layout.userToggledEditor boolean | null (null = follow whether a file is open)
|
|
26
28
|
* - layout.panelWidths PanelWidths (the editor's and the right panel's
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import type { HarnessCapabilities } from '@/server/lib/harness/capabilities';
|
|
16
16
|
import type { HarnessConfig } from '@/shared/lib/harness/config';
|
|
17
|
+
import type { HarnessAccountView } from '@/shared/lib/harness/accounts';
|
|
17
18
|
import type { CanonicalProtocol } from '@/shared/lib/harness/dialects';
|
|
18
19
|
import type { EnvProviderContract } from '@/shared/lib/harness/provider-contracts';
|
|
19
20
|
|
|
@@ -185,6 +186,10 @@ export interface HarnessesPayload {
|
|
|
185
186
|
configs?: Record<string, HarnessConfig>;
|
|
186
187
|
/** Per-harness provider support, keyed by id. */
|
|
187
188
|
providerSupport?: Record<string, HarnessProviderSupport>;
|
|
189
|
+
/** Saved CLI homes for Codex, Claude and Antigravity. */
|
|
190
|
+
accounts?: HarnessAccountView[];
|
|
191
|
+
/** harness id -> selected account id; null means the host login. */
|
|
192
|
+
accountSelection?: Record<string, string | null>;
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
/** Capabilities for a harness the client has no row for: nothing is claimed, so
|
|
@@ -3,6 +3,7 @@ import type { ChatWidthMode } from '@/shared/lib/chat/timeline/width-mode';
|
|
|
3
3
|
import type { ToolRenderMode } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
4
4
|
import type { SidebarStyle } from '@/shared/lib/workspace/sidebar-style';
|
|
5
5
|
import type { MobilePanelNav, PanelNavStyle } from '@/shared/lib/workspace/panel-nav';
|
|
6
|
+
import type { RightSideHiddenScope } from '@/shared/lib/workspace/right-side-hidden';
|
|
6
7
|
import type { ComposerStyle } from '@/shared/lib/chat/composer/style';
|
|
7
8
|
import type { SurfaceStyle } from '@/shared/lib/theme/surface-style';
|
|
8
9
|
import type { BorderStyle } from '@/shared/lib/theme/border-style';
|
|
@@ -215,6 +216,17 @@ export interface SettingsState {
|
|
|
215
216
|
* the other. Desktop-only, like its left counterpart.
|
|
216
217
|
*/
|
|
217
218
|
rightPanelNav: PanelNavStyle;
|
|
219
|
+
/**
|
|
220
|
+
* How long the navbar's right-side toggle is remembered (`session` | `global`).
|
|
221
|
+
*
|
|
222
|
+
* `session` (the default) stores the closed side in the chat's own layout, so
|
|
223
|
+
* switching chats restores each one as it was left. `global` stores it in
|
|
224
|
+
* `app_settings` instead: closing the side once keeps it closed in every
|
|
225
|
+
* chat, because the reader's screen does not change with the conversation.
|
|
226
|
+
* Both slots are written on every toggle, so changing the scope never jumps
|
|
227
|
+
* the side to a stale value.
|
|
228
|
+
*/
|
|
229
|
+
rightSideHiddenScope: RightSideHiddenScope;
|
|
218
230
|
/**
|
|
219
231
|
* How the PHONE's LEFT drawer navigates its views (`classic` | `tabs`).
|
|
220
232
|
*
|
|
@@ -117,6 +117,20 @@ export interface UsageProjectRow extends UsageCounters {
|
|
|
117
117
|
project: string;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
/**
|
|
121
|
+
* One harness that recorded usage, for the panel's filter.
|
|
122
|
+
*
|
|
123
|
+
* Only harnesses the index could READ appear here: an agent that keeps no local
|
|
124
|
+
* usage record contributes nothing, and offering it would be a filter that can
|
|
125
|
+
* only ever empty the panel.
|
|
126
|
+
*/
|
|
127
|
+
export interface UsageHarnessRow extends UsageCounters {
|
|
128
|
+
/** Harness id (`omp-rpc`, `claude`, `opencode`, ...). */
|
|
129
|
+
id: string;
|
|
130
|
+
/** Catalog label, or the id for a harness this build does not know. */
|
|
131
|
+
name: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
120
134
|
/** How far the on-disk index has got, shown in the panel's footer. */
|
|
121
135
|
export interface UsageIndexState {
|
|
122
136
|
/** `building` while a scan is in flight; the panel polls and keeps the data. */
|
|
@@ -139,6 +153,13 @@ export interface TokenUsagePayload {
|
|
|
139
153
|
index: UsageIndexState;
|
|
140
154
|
timeRanges: TimeRangeOption[];
|
|
141
155
|
range: TimeRangeType;
|
|
156
|
+
/** `all`, or the harness id every figure below is filtered to. */
|
|
157
|
+
harness: string;
|
|
158
|
+
/**
|
|
159
|
+
* Harnesses with usage in the period, IGNORING the selected filter — the
|
|
160
|
+
* options must not disappear while one of them is selected.
|
|
161
|
+
*/
|
|
162
|
+
harnesses: UsageHarnessRow[];
|
|
142
163
|
/** Human period label, e.g. `Oct 5 – Nov 3, 2026`. */
|
|
143
164
|
periodLabel: string;
|
|
144
165
|
totals: UsageTotals;
|
|
@@ -41,7 +41,16 @@ const dir = mkdtempSync(join(tmpdir(), 'kabmo-test-fallback-db-'));
|
|
|
41
41
|
// asked for that file, and no suite should silently redirect it.
|
|
42
42
|
Bun.env.DB_PATH ??= join(dir, 'db.sqlite');
|
|
43
43
|
|
|
44
|
+
// The Token Usage index reads every ACP harness store under the home directory.
|
|
45
|
+
// A suite that only redirects omp's sessions root would otherwise fold the
|
|
46
|
+
// developer's real Claude/Codex/OpenCode history into its assertions. The hook
|
|
47
|
+
// is a ROOT, not a set of store paths, so a suite can still override one store
|
|
48
|
+
// with its own variable (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`, ...).
|
|
49
|
+
const usageRoot = mkdtempSync(join(tmpdir(), 'kabmo-test-usage-stores-'));
|
|
50
|
+
Bun.env.KABMO_USAGE_ACP_ROOT = usageRoot;
|
|
51
|
+
|
|
44
52
|
afterAll(async () => {
|
|
45
53
|
await closeDb();
|
|
46
54
|
removeDir(dir);
|
|
55
|
+
removeDir(usageRoot);
|
|
47
56
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e,p,Or}from"./index-pv4z2mp2.js";import{Ni}from"./index-05n22cg9.js";import{Su}from"./index-473hk8nb.js";function g({source:t,name:r,revision:s=0}){let{url:i,loading:m,error:o}=Su(t,s);if(o)return e(Or,{name:r,message:o});if(m||!i)return e("div",{className:"flex flex-1 items-center justify-center gap-2 text-xs text-ink/40",children:[e(p,{size:14,className:"animate-spin"}),e("span",{children:"Loading image…"})]});return e(Ni,{src:i,name:r,className:"flex-1 min-h-0"})}export{g as ImageView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lg}from"./index-z6y8j93w.js";import"./index-zp40g8ah.js";import"./index-gg910gpv.js";export{lg as MergeDiffView};
|