@kabmo-labs/kabmo 0.48.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 +608 -550
- package/dist/client/static/js/{Body-3tspyjtk.js → Body-pd3nt4xa.js} +3 -3
- package/dist/client/static/js/{CsvGrid-3pwsfmxp.js → CsvGrid-eksmqv8f.js} +2 -2
- package/dist/client/static/js/{DocxView-xcg9jktb.js → DocxView-xfx1kt8x.js} +22 -22
- package/dist/client/static/js/{DrawioView-2q19tgkx.js → DrawioView-2xyqg9bv.js} +2 -2
- package/dist/client/static/js/{HtmlPreview-92cadvbr.js → HtmlPreview-ps3f0aa5.js} +1 -1
- package/dist/client/static/js/ImageView-7vse3k6x.js +1 -0
- package/dist/client/static/js/LayoutWrapper-qdp83fps.js +2 -0
- 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-8fp08jym.js +1 -0
- package/dist/client/static/js/SessionsView-qmgg03fv.js +1 -0
- package/dist/client/static/js/{SheetView-w5w2m2de.js → SheetView-g7mstjdp.js} +46 -46
- package/dist/client/static/js/{SvgPreview-mtk6de6h.js → SvgPreview-wsv4h6c6.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-tha4j2fn.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-r4dp34pw.js → astro-dszrfwwn.js} +1 -1
- package/dist/client/static/js/bash-z5pe89pt.js +1 -0
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-6mzgfqh8.js → blockDiagram-BEXU5L5S-s474vn2w.js} +9 -9
- package/dist/client/static/js/c-fy0fysfw.js +1 -0
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-sfkcw7g9.js → c4Diagram-YGBWAQC7-s68v6tc8.js} +3 -3
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-v530ny5e.js → classDiagram-v2-NBCMYWYE-291va3yk.js} +9 -9
- 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-k8f3z0mm.js → cynefinDiagram-VND7K2PF-4gnmn3yc.js} +2 -2
- package/dist/client/static/js/dagre-6A5THRUB-nxmj6bkg.js +4 -0
- package/dist/client/static/js/{diagram-22UHCM2B-2zh2957c.js → diagram-22UHCM2B-3171dabw.js} +25 -25
- package/dist/client/static/js/diagram-3UASUU5V-9h1pd6h8.js +24 -0
- package/dist/client/static/js/{diagram-ATOU4E4O-16adx4g0.js → diagram-ATOU4E4O-ywfrbd6m.js} +3 -3
- package/dist/client/static/js/{diagram-CDSNMT55-1ja98ens.js → diagram-CDSNMT55-t87b4wbk.js} +5 -5
- package/dist/client/static/js/{diagram-MLGK6HIB-f9nnyjbq.js → diagram-MLGK6HIB-bzv52p97.js} +2 -2
- package/dist/client/static/js/{diagram-MPIPVDR6-3qgadfjz.js → diagram-MPIPVDR6-8f66rp0a.js} +2 -2
- package/dist/client/static/js/{dockerfile-04tc68pq.js → dockerfile-z3v0km9v.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-022cz603.js → ebnfDiagram-ZINNZB2B-3y4w2j6t.js} +1 -1
- package/dist/client/static/js/{elixir-61gbjv6c.js → elixir-c701n0qg.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-2anf1c36.js → elk-276RUBZZ-d9d23jch.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-ndd27fz1.js → erDiagram-OPXOYQCR-w4z3501c.js} +15 -15
- package/dist/client/static/js/{erlang-bh5cbm8m.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-9gm6hkgn.js → ganttDiagram-FUAMR5RP-7wcxk4bm.js} +5 -5
- package/dist/client/static/js/gitGraph-4MIJSDKK-hgw4jcvk.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-78bxa67c.js → gitGraphDiagram-X574FWY7-sdh1hsb1.js} +9 -9
- 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-dxnkwf39.js → index-09ap9ncj.js} +54 -54
- package/dist/client/static/js/index-0ff2x5g9.js +1 -0
- package/dist/client/static/js/{index-3en15m75.js → index-0q39ajgh.js} +2 -2
- package/dist/client/static/js/{index-t4s10406.js → index-144aknp3.js} +2 -2
- package/dist/client/static/js/index-17jy16v3.js +314 -0
- package/dist/client/static/js/{index-jnkc9p53.js → index-1adfks1n.js} +2 -2
- package/dist/client/static/js/{index-ya9yqj5w.js → index-1d8v3bvm.js} +2 -2
- package/dist/client/static/js/index-1dx4dqzy.js +4 -0
- package/dist/client/static/js/{index-kaxvwh07.js → index-1ec33b1j.js} +2 -2
- package/dist/client/static/js/{index-qe0vfv6s.js → index-1jx4nt2f.js} +1 -1
- package/dist/client/static/js/{index-gpmcth0x.js → index-1kjgdyfk.js} +2 -2
- package/dist/client/static/js/{index-x7rajphe.js → index-1vfej0gk.js} +2 -2
- package/dist/client/static/js/{index-45p59fxq.js → index-2g1ey1c9.js} +2 -2
- package/dist/client/static/js/{index-hwzxdwwg.js → index-3rhk4apq.js} +1 -1
- package/dist/client/static/js/{index-g3rg6vsd.js → index-4vaxdt8a.js} +2 -2
- package/dist/client/static/js/{index-ac2q5903.js → index-4z3qtazf.js} +2 -2
- package/dist/client/static/js/{index-30a8py59.js → index-56319bht.js} +2 -2
- package/dist/client/static/js/{index-a58rkn3f.js → index-5qwgexg6.js} +4 -4
- package/dist/client/static/js/index-779rptb2.js +1 -0
- package/dist/client/static/js/{index-7whstwc7.js → index-7jdz4jr4.js} +2 -2
- package/dist/client/static/js/{index-hq28918s.js → index-7xn7gxgw.js} +2 -2
- package/dist/client/static/js/{index-tzz5gp8a.js → index-8fk7h2me.js} +5 -5
- package/dist/client/static/js/index-971stdh4.js +2 -0
- package/dist/client/static/js/{index-c250nzm1.js → index-9jrej3ht.js} +3 -3
- package/dist/client/static/js/index-9ydvkxz1.css +1 -0
- package/dist/client/static/js/{index-0e51wknc.js → index-ajdzvegm.js} +10 -10
- package/dist/client/static/js/{index-8tvrzce0.js → index-ajqmcds5.js} +2 -2
- package/dist/client/static/js/{index-k39be93q.js → index-ap6hv7s7.js} +1 -1
- package/dist/client/static/js/{index-he4k2j91.js → index-aqqj4xxy.js} +2 -2
- package/dist/client/static/js/index-bczhbk01.js +2 -0
- package/dist/client/static/js/{index-ebf50mrs.js → index-bggz63br.js} +7 -7
- package/dist/client/static/js/{index-seekt5k3.js → index-c2mqr5fh.js} +2 -2
- package/dist/client/static/js/{index-xny7vsfz.js → index-cm8pa783.js} +2 -2
- package/dist/client/static/js/{index-zcgqacvx.js → index-dgkpbrdr.js} +2 -2
- package/dist/client/static/js/index-e471eprg.js +1 -0
- package/dist/client/static/js/{index-4n7t26ap.js → index-evvmkk2f.js} +1 -1
- package/dist/client/static/js/index-frhxbqhg.js +1 -0
- package/dist/client/static/js/{index-mqzgf7rw.js → index-gcgsjd3c.js} +2 -2
- package/dist/client/static/js/{index-sng4prpr.js → index-grkacfv3.js} +2 -2
- package/dist/client/static/js/{index-417fbrqk.js → index-gws4prmg.js} +2 -2
- package/dist/client/static/js/index-hqhz4eam.js +1 -0
- package/dist/client/static/js/index-jr6q69r3.js +465 -0
- package/dist/client/static/js/{index-hkz2mz34.js → index-jxxewcat.js} +2 -2
- package/dist/client/static/js/{index-13g17wa3.js → index-k3vvk28c.js} +1 -1
- package/dist/client/static/js/{index-55pqvh82.js → index-k66w6d9b.js} +2 -2
- package/dist/client/static/js/{index-34aq5bz5.js → index-kce86cnw.js} +2 -2
- package/dist/client/static/js/{index-5mpv57fn.js → index-n54jd3aw.js} +12 -12
- package/dist/client/static/js/{index-abrrqhne.js → index-nnqyew8n.js} +2 -2
- package/dist/client/static/js/index-qaxjp73x.js +2 -0
- package/dist/client/static/js/{index-pzsp1src.js → index-qxzyvye9.js} +2 -2
- package/dist/client/static/js/{index-2bsnywea.js → index-r2z0a118.js} +2 -2
- package/dist/client/static/js/{index-m0fatq7c.js → index-r6bm9sth.js} +11 -11
- package/dist/client/static/js/{index-ep6bqcmg.js → index-ratbr10x.js} +2 -2
- package/dist/client/static/js/index-rgneq3zt.js +2 -0
- package/dist/client/static/js/{index-7pz6n3pg.js → index-svx6rnfs.js} +2 -2
- package/dist/client/static/js/{index-aabp7nt6.js → index-tew3rd6t.js} +1 -1
- package/dist/client/static/js/index-tfwsch7a.js +4 -0
- package/dist/client/static/js/{index-g8rpydkr.js → index-vgwjn4de.js} +2 -2
- package/dist/client/static/js/{index-e6ny4gd9.js → index-vn495w82.js} +6 -6
- package/dist/client/static/js/{index-hcmhdpp4.js → index-wbma8kqw.js} +23 -23
- package/dist/client/static/js/{index-qxzj780x.js → index-xgbcn89g.js} +2 -2
- package/dist/client/static/js/{index-fb2s080r.js → index-xrn2reb5.js} +2 -2
- package/dist/client/static/js/{index-2n1fgpjv.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-bxk0g0pe.js → infoDiagram-VRGFBTTK-gtdp0z6p.js} +2 -2
- package/dist/client/static/js/ini-apj95p59.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-d1kdkhth.js → ishikawaDiagram-OU5B5YK6-c05m0sqq.js} +6 -6
- 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-cahg3zjq.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-2n5k898q.js → julia-w13bz4s1.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-nq7t83en.js → kanban-definition-PNTS6WVX-q1w9w68s.js} +12 -12
- 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-6nw0853j.js → mermaid.core-1rz62j9g.js} +7 -7
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-cm7ykxf2.js → mindmap-definition-NLK3R4M7-3m3w6bnb.js} +9 -9
- 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-xwxz8nsq.js → pegDiagram-GJSIUBJH-svd3ex4e.js} +1 -1
- package/dist/client/static/js/{perl-66vb5pz7.js → perl-hcg3hacf.js} +1 -1
- package/dist/client/static/js/{php-4e9we8am.js → php-q6hhp84p.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-ej9aysvz.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-n910k9th.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-xb1smt7r.js → railroadDiagram-XR7U4H2S-zj3g9yne.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-6kb21b9f.js → requirementDiagram-PLB6GJNP-727yjvs8.js} +8 -8
- package/dist/client/static/js/{ruby-v7nmcvyr.js → ruby-wzqz8vw6.js} +1 -1
- package/dist/client/static/js/{rust-5ersd7be.js → rust-r94pgqvf.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-74z0fskw.js → sankeyDiagram-IPEJSGJF-17c7p2pe.js} +5 -5
- package/dist/client/static/js/{sass-h3nvy4c8.js → sass-xb3van7h.js} +1 -1
- package/dist/client/static/js/{scss-kvev49ga.js → scss-ddg6t3x4.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-apn6kezn.js → sequenceDiagram-PO4LG4MO-wcmbpckr.js} +18 -18
- package/dist/client/static/js/{sizeCapture-INFHLROL-2drzcjb8.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-ma09vhby.js → stateDiagram-v2-GCMORJYK-vd7r8s78.js} +6 -6
- package/dist/client/static/js/{svelte-dhspkgss.js → svelte-wzaxz546.js} +1 -1
- package/dist/client/static/js/{swimlanes-2SLR337P-f6y9xqnx.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-zmcmvq00.js → timeline-definition-EJHVYXUP-n7gbzhzd.js} +11 -11
- 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-wfaa019a.js → usecaseDiagram-POWQR4AR-davsnwkf.js} +82 -82
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-46wf2pgd.js → vennDiagram-UO4OBE2U-gb54bh5k.js} +8 -8
- package/dist/client/static/js/{vue-ffngx2b3.js → vue-6zhfw7zx.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-30dnzvww.js +1 -0
- package/dist/client/static/js/wardleyDiagram-VNRHLVJA-sf98cg9t.js +78 -0
- package/dist/client/static/js/xml-91sb3gt9.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-2ba825z9.js → xychartDiagram-PMCCYNJV-9nn09k40.js} +5 -5
- package/dist/client/static/js/yaml-ghx4mjw1.js +1 -0
- package/package.json +1 -1
- package/src/client/components/common/MarkdownRenderer.tsx +29 -28
- package/src/client/components/common/header-button/index.tsx +10 -2
- package/src/client/components/common/header-controls/index.test.tsx +1 -0
- package/src/client/components/common/header-controls/phone-row.test.tsx +1 -0
- package/src/client/components/common/header-controls/plugin-entry.test.tsx +1 -0
- package/src/client/components/common/header-controls/shell-chrome.test.tsx +1 -0
- package/src/client/components/layout/ActivityBar.tsx +2 -1
- package/src/client/components/layout/LeftActivityBar.test.ts +1 -0
- package/src/client/components/settings/Modal.tsx +1 -1
- package/src/client/components/settings/Sidebar.tsx +2 -1
- package/src/client/components/settings/apply-side-effects.test.ts +16 -0
- package/src/client/components/settings/apply-side-effects.ts +16 -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/DictationSettings.test.tsx +152 -0
- package/src/client/components/settings/categories/DictationSettings.tsx +76 -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/VoiceSettings.tsx +77 -0
- 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/dictation-settings/CaptureSection.tsx +153 -0
- package/src/client/components/settings/categories/dictation-settings/EngineSection.tsx +123 -0
- package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +221 -0
- package/src/client/components/settings/categories/dictation-settings/LanguageSection.tsx +73 -0
- 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/panel-plugins/InstallForm.tsx +24 -17
- package/src/client/components/settings/categories/panel-plugins/Registries.test.tsx +164 -0
- package/src/client/components/settings/categories/panel-plugins/Registries.tsx +180 -0
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +15 -6
- 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 +152 -0
- package/src/client/components/settings/categories/voice-settings/SpeechSettings.tsx +84 -0
- package/src/client/components/settings/categories/voice-settings/groups.test.ts +23 -0
- package/src/client/components/settings/categories/voice-settings/groups.ts +48 -0
- package/src/client/components/settings/categories/voice-settings/speech/AutoplaySection.tsx +49 -0
- package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +167 -0
- package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +108 -0
- package/src/client/components/settings/categories/voice-settings/speech/TestSection.tsx +56 -0
- package/src/client/components/settings/categories/voice-settings/speech/VoiceSection.tsx +188 -0
- package/src/client/components/settings/categories/voice-settings/speech/styles.ts +15 -0
- package/src/client/components/settings/category-content.tsx +3 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.speech.test.tsx +140 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +41 -97
- package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +143 -0
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/RunFooter.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/SpeechButton.tsx +110 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +26 -10
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +13 -8
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +9 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +6 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +18 -7
- package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +4 -2
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +4 -4
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +19 -11
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +8 -6
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +38 -30
- package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +185 -0
- package/src/client/components/workspace/chat-timeline/chat-input/paste-attach.test.tsx +194 -0
- package/src/client/components/workspace/chat-timeline/index.tsx +4 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -11
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.test.ts +10 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +2 -7
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows.ts +6 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +38 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +10 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input.ts +5 -5
- 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/composer/attachments.ts +18 -2
- package/src/client/hooks/chat/composer/capture.test.ts +282 -0
- package/src/client/hooks/chat/composer/capture.ts +166 -0
- package/src/client/hooks/chat/composer/dictation-settings.ts +53 -0
- package/src/client/hooks/chat/composer/narrow.test.ts +130 -0
- package/src/client/hooks/chat/composer/narrow.ts +82 -0
- package/src/client/hooks/chat/composer/paste-attachments.test.ts +215 -0
- package/src/client/hooks/chat/composer/paste-attachments.ts +173 -0
- package/src/client/hooks/chat/composer/pipeline.ts +16 -3
- package/src/client/hooks/chat/composer/speech-to-text.test.tsx +314 -0
- package/src/client/hooks/chat/composer/speech-to-text.ts +158 -134
- package/src/client/hooks/chat/composer/voice-input.ts +24 -9
- 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.test.ts +44 -3
- package/src/client/hooks/chat/timeline/scroll.ts +50 -16
- package/src/client/hooks/chat/timeline/send-helpers.ts +3 -0
- package/src/client/hooks/chat/timeline/send.ts +5 -1
- 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/dictation.ts +153 -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/speech.ts +170 -0
- package/src/client/hooks/settings/useTokenUsage.ts +7 -2
- package/src/client/hooks/tts/provider.tsx +50 -0
- package/src/client/hooks/tts/tts-context.ts +39 -0
- package/src/client/hooks/tts/use-speech-autoplay.test.tsx +122 -0
- package/src/client/hooks/tts/use-speech-autoplay.ts +106 -0
- package/src/client/hooks/tts/use-tts-player.ts +33 -0
- package/src/client/hooks/ui/markdown-hydration.test.tsx +83 -0
- package/src/client/hooks/ui/markdown-hydration.ts +31 -0
- package/src/client/hooks/ui/markdown-render.ts +119 -0
- package/src/client/hooks/workspace/journal-diff.ts +8 -1
- package/src/client/hooks/workspace/panel-actions.ts +184 -0
- package/src/client/hooks/workspace/panel-registry.ts +6 -139
- package/src/client/hooks/workspace/panel-tabs.ts +1 -1
- package/src/client/hooks/workspace/panel-visibility-menu.ts +2 -1
- package/src/client/hooks/workspace/right-side.test.ts +75 -1
- package/src/client/hooks/workspace/right-side.ts +71 -10
- package/src/client/lib/plugins/bootstrap.test.ts +1 -0
- package/src/client/lib/tts/player.test.ts +103 -0
- package/src/client/lib/tts/player.ts +213 -0
- package/src/client/tailwind.css +11 -0
- package/src/server/lib/antigravity/home.server.ts +27 -0
- package/src/server/lib/changes/capture-bash.server.ts +6 -3
- package/src/server/lib/changes/capture-fs.server.ts +2 -2
- package/src/server/lib/changes/capture-races.test.ts +33 -1
- package/src/server/lib/changes/capture-scan.test.ts +1 -1
- package/src/server/lib/changes/capture-test-util.ts +1 -1
- package/src/server/lib/changes/capture-types.ts +1 -1
- package/src/server/lib/changes/capture.server.ts +1 -1
- package/src/server/lib/changes/journal-read.server.ts +21 -0
- package/src/server/lib/changes/reader.server.ts +92 -14
- package/src/server/lib/changes/reader.test.ts +99 -0
- package/src/server/lib/changes/records.ts +2 -0
- package/src/server/lib/db/schema.ts +5 -1
- package/src/server/lib/dictation/capability.server.test.ts +113 -0
- package/src/server/lib/dictation/capability.server.ts +57 -0
- package/src/server/lib/dictation/engines/adapter.ts +147 -0
- package/src/server/lib/dictation/engines/adapters.test.ts +215 -0
- package/src/server/lib/dictation/engines/deepgram.ts +77 -0
- package/src/server/lib/dictation/engines/elevenlabs.ts +44 -0
- package/src/server/lib/dictation/engines/index.ts +55 -0
- package/src/server/lib/dictation/engines/openai.ts +51 -0
- package/src/server/lib/dictation/language.server.test.ts +21 -22
- package/src/server/lib/dictation/language.server.ts +16 -19
- package/src/server/lib/dictation/omp-stt-worker.test.ts +183 -0
- package/src/server/lib/dictation/omp-stt-worker.ts +130 -78
- package/src/server/lib/dictation/settings.server.ts +74 -0
- package/src/server/lib/dictation/speech-frames.test.ts +125 -0
- package/src/server/lib/dictation/speech-frames.ts +146 -0
- package/src/server/lib/dictation/worker-process.ts +122 -0
- 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/calls.ts +20 -0
- package/src/server/lib/harness/acp/client-capabilities.ts +8 -1
- package/src/server/lib/harness/acp/client-fs.ts +17 -5
- package/src/server/lib/harness/acp/client-initialize.test.ts +32 -1
- package/src/server/lib/harness/acp/client-initialize.ts +51 -6
- package/src/server/lib/harness/acp/client-requests.ts +49 -0
- package/src/server/lib/harness/acp/client.ts +36 -36
- package/src/server/lib/harness/acp/commands.ts +2 -2
- package/src/server/lib/harness/acp/frames-rows.test.ts +144 -0
- package/src/server/lib/harness/acp/frames-tool-shapes.test.ts +238 -0
- package/src/server/lib/harness/acp/frames-v2.test.ts +21 -0
- package/src/server/lib/harness/acp/frames.test.ts +3 -15
- package/src/server/lib/harness/acp/frames.ts +43 -67
- package/src/server/lib/harness/acp/grants.ts +20 -5
- package/src/server/lib/harness/acp/mapper.test.ts +40 -1
- package/src/server/lib/harness/acp/mapper.ts +69 -9
- package/src/server/lib/harness/acp/message-rows.ts +219 -0
- 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/prompt.ts +20 -2
- package/src/server/lib/harness/acp/protocol.ts +24 -0
- package/src/server/lib/harness/acp/replay-window.test.ts +66 -0
- package/src/server/lib/harness/acp/replay.ts +33 -8
- package/src/server/lib/harness/acp/session-addressing.test.ts +99 -0
- package/src/server/lib/harness/acp/session-approvals.ts +4 -0
- package/src/server/lib/harness/acp/session-background.test.ts +2 -1
- package/src/server/lib/harness/acp/session-cancel-policy.test.ts +86 -0
- package/src/server/lib/harness/acp/session-close.test.ts +89 -0
- package/src/server/lib/harness/acp/session-config.ts +8 -3
- package/src/server/lib/harness/acp/session-handshake.ts +6 -0
- package/src/server/lib/harness/acp/session-inbound.ts +126 -0
- package/src/server/lib/harness/acp/session-intake.test.ts +8 -0
- package/src/server/lib/harness/acp/session-intake.ts +21 -5
- package/src/server/lib/harness/acp/session-lifecycle.ts +25 -0
- package/src/server/lib/harness/acp/session-notifications.ts +36 -0
- package/src/server/lib/harness/acp/session-options.ts +2 -0
- package/src/server/lib/harness/acp/session-permissions.ts +22 -1
- package/src/server/lib/harness/acp/session-process.ts +1 -0
- package/src/server/lib/harness/acp/session-requests.ts +19 -1
- package/src/server/lib/harness/acp/session-stop.ts +54 -0
- package/src/server/lib/harness/acp/session-wiring.test.ts +2 -0
- package/src/server/lib/harness/acp/session-wiring.ts +23 -0
- package/src/server/lib/harness/acp/session.test-util.ts +8 -3
- package/src/server/lib/harness/acp/session.ts +78 -78
- package/src/server/lib/harness/acp/stdio.test.ts +52 -0
- package/src/server/lib/harness/acp/stdio.ts +15 -2
- package/src/server/lib/harness/acp/subagent-frames.test.ts +82 -0
- package/src/server/lib/harness/acp/subagent-frames.ts +124 -0
- package/src/server/lib/harness/acp/subagents.test.ts +124 -0
- package/src/server/lib/harness/acp/subagents.ts +182 -0
- package/src/server/lib/harness/acp/tool-calls.ts +115 -45
- package/src/server/lib/harness/acp/tool-identity.test.ts +8 -0
- package/src/server/lib/harness/acp/tool-identity.ts +13 -1
- package/src/server/lib/harness/acp/tool-shape.ts +99 -0
- package/src/server/lib/harness/acp/turn.test.ts +1 -0
- package/src/server/lib/harness/acp/turn.ts +4 -1
- package/src/server/lib/harness/acp/v2.test.ts +21 -1
- package/src/server/lib/harness/acp/v2.ts +6 -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/lifecycle/paths.ts +22 -0
- 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/omp/session/changes-patch.test.ts +120 -0
- package/src/server/lib/omp/session/changes-patch.ts +190 -0
- package/src/server/lib/omp/session/changes.test.ts +55 -61
- package/src/server/lib/omp/session/changes.ts +79 -127
- package/src/server/lib/omp/session/merge-stored.ts +2 -0
- package/src/server/lib/panels/catalog-offers.server.ts +1 -1
- package/src/server/lib/panels/catalog.server.test.ts +71 -2
- package/src/server/lib/panels/catalog.server.ts +80 -0
- package/src/server/lib/panels/install.server.test.ts +15 -0
- package/src/server/lib/panels/install.server.ts +7 -0
- package/src/server/lib/panels/manifest.test.ts +1 -76
- package/src/server/lib/panels/manifest.ts +3 -60
- package/src/server/lib/panels/marketplace-catalog.server.test.ts +154 -0
- package/src/server/lib/panels/marketplace-catalog.server.ts +131 -0
- package/src/server/lib/panels/offers.server.test.ts +5 -5
- package/src/server/lib/panels/offers.server.ts +20 -2
- package/src/server/lib/panels/registries.server.test.ts +216 -0
- package/src/server/lib/panels/registries.server.ts +118 -0
- package/src/server/lib/panels/registry-cache.server.ts +104 -0
- package/src/server/lib/panels/registry-refresh.server.ts +195 -0
- package/src/server/lib/panels/registry.server.test.ts +2 -2
- package/src/server/lib/panels/registry.server.ts +19 -1
- package/src/server/lib/panels/seed.server.ts +4 -1
- 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/adapter.ts +133 -0
- package/src/server/lib/tts/engines/adapters.test.ts +162 -0
- package/src/server/lib/tts/engines/deepgram.ts +43 -0
- package/src/server/lib/tts/engines/elevenlabs.ts +59 -0
- package/src/server/lib/tts/engines/gemini.ts +116 -0
- package/src/server/lib/tts/engines/index.ts +78 -0
- package/src/server/lib/tts/engines/openai.ts +69 -0
- package/src/server/lib/tts/engines/xai.ts +44 -0
- package/src/server/lib/tts/local.server.ts +160 -0
- package/src/server/lib/tts/settings.server.ts +103 -0
- 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/dictation/ws.ts +99 -27
- 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/index.ts +2 -0
- package/src/server/routes/panels/install-route.test.ts +110 -0
- package/src/server/routes/panels/install.ts +82 -3
- package/src/server/routes/sessions/index.ts +5 -0
- package/src/server/routes/sessions/local-image.test.ts +94 -0
- package/src/server/routes/sessions/local-image.ts +141 -0
- package/src/server/routes/settings/dictation.test.ts +139 -0
- package/src/server/routes/settings/dictation.ts +86 -0
- package/src/server/routes/settings/index.ts +4 -0
- package/src/server/routes/settings/speech.test.ts +156 -0
- package/src/server/routes/settings/speech.ts +98 -0
- package/src/server/routes/telemetry/tokens.test.ts +20 -0
- package/src/server/routes/telemetry/tokens.ts +12 -3
- package/src/server/routes/tts/index.ts +11 -0
- package/src/server/routes/tts/speak.test.ts +200 -0
- package/src/server/routes/tts/speak.ts +87 -0
- package/src/shared/lib/chat/attachments.ts +17 -3
- package/src/shared/lib/chat/composer/attachment-labels.test.ts +154 -0
- package/src/shared/lib/chat/composer/attachment-labels.ts +166 -0
- package/src/shared/lib/chat/omp/subagent-card-fold.test.ts +75 -0
- package/src/shared/lib/chat/timeline/changed-files.test.ts +13 -0
- package/src/shared/lib/chat/timeline/changed-files.ts +4 -2
- package/src/shared/lib/chat/timeline/local-image.test.ts +88 -0
- package/src/shared/lib/chat/timeline/local-image.ts +110 -0
- package/src/shared/lib/chat/timeline/omp-callbacks.ts +3 -2
- package/src/shared/lib/chat/timeline/run-signals.ts +2 -2
- package/src/shared/lib/chat/timeline/stream-callbacks.ts +8 -6
- package/src/shared/lib/chat/timeline/stream-coalescer.ts +7 -0
- package/src/shared/lib/chat/timeline/stream.test.ts +3 -1
- package/src/shared/lib/chat/timeline/tool-verbs.test.ts +5 -0
- package/src/shared/lib/chat/timeline/tool-verbs.ts +3 -1
- package/src/shared/lib/chat/todo/parser.test.ts +54 -0
- package/src/shared/lib/chat/todo/parser.ts +56 -0
- package/src/shared/lib/chat/tool/tool-aliases.test.ts +37 -0
- package/src/shared/lib/chat/tool/tool-aliases.ts +75 -0
- package/src/shared/lib/chat/tool/tool-input-path.test.ts +44 -0
- package/src/shared/lib/chat/tool/tool-input-path.ts +47 -0
- package/src/shared/lib/dictation/capability.ts +32 -0
- package/src/shared/lib/dictation/constraints.test.ts +41 -0
- package/src/shared/lib/dictation/constraints.ts +48 -0
- package/src/shared/lib/dictation/engines.test.ts +117 -0
- package/src/shared/lib/dictation/engines.ts +190 -0
- package/src/shared/lib/dictation/gate.test.ts +118 -0
- package/src/shared/lib/dictation/gate.ts +85 -0
- package/src/shared/lib/dictation/languages.test.ts +88 -0
- package/src/shared/lib/dictation/languages.ts +90 -0
- package/src/shared/lib/dictation/models.ts +9 -5
- package/src/shared/lib/dictation/protocol.ts +74 -34
- package/src/shared/lib/dictation/settings.test.ts +94 -0
- package/src/shared/lib/dictation/settings.ts +111 -0
- package/src/shared/lib/dictation/wav.test.ts +66 -0
- package/src/shared/lib/dictation/wav.ts +48 -0
- package/src/shared/lib/fs/journal-unavailable.test.ts +30 -0
- package/src/shared/lib/fs/journal-unavailable.ts +35 -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 +36 -35
- 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/net/base-url.test.ts +25 -0
- package/src/shared/lib/net/base-url.ts +29 -0
- package/src/shared/lib/omp/config/schema-extras.ts +9 -8
- package/src/shared/lib/omp/session/parse-message-blocks.ts +2 -2
- package/src/shared/lib/panels/plugin-repo.test.ts +113 -0
- package/src/shared/lib/panels/plugin-repo.ts +149 -0
- package/src/shared/lib/settings/defaults.ts +6 -0
- package/src/shared/lib/tts/capability.ts +16 -0
- package/src/shared/lib/tts/engines.test.ts +91 -0
- package/src/shared/lib/tts/engines.ts +314 -0
- package/src/shared/lib/tts/settings.test.ts +56 -0
- package/src/shared/lib/tts/settings.ts +108 -0
- package/src/shared/lib/tts/speakable.test.ts +76 -0
- package/src/shared/lib/tts/speakable.ts +179 -0
- 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/chat.ts +8 -1
- package/src/shared/types/harness.ts +5 -0
- package/src/shared/types/panels-registry.ts +32 -0
- package/src/shared/types/panels.ts +23 -0
- package/src/shared/types/session-changes.ts +15 -1
- package/src/shared/types/settings/state.ts +37 -0
- package/src/shared/types/tokenUsage.ts +21 -0
- package/src/test-support/preload.ts +9 -0
- package/src/test-support/pristine-globals.ts +5 -0
- package/dist/client/static/js/ImageView-pr4h38hb.js +0 -1
- package/dist/client/static/js/LayoutWrapper-n4tzhjes.js +0 -2
- package/dist/client/static/js/MergeDiffView-0t15nh9f.js +0 -1
- package/dist/client/static/js/Modal-77hgx4dw.js +0 -59
- package/dist/client/static/js/PdfView-gzxhvxe8.js +0 -1
- package/dist/client/static/js/SessionsView-2tdqrvk0.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-zs15nydj.js +0 -1
- package/dist/client/static/js/architectureDiagram-NJMV4G6O-heep78p6.js +0 -36
- package/dist/client/static/js/bash-8d3wrx5c.js +0 -1
- package/dist/client/static/js/c-rn3z0csz.js +0 -1
- package/dist/client/static/js/cose-bilkent-JH36ORCC-ybv1ttbx.js +0 -1
- package/dist/client/static/js/cpp-99ws9nak.js +0 -1
- package/dist/client/static/js/css-drfs4n12.js +0 -1
- package/dist/client/static/js/css-narcr42w.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-p3y1b4ap.js +0 -1
- package/dist/client/static/js/dagre-6A5THRUB-gk0gp124.js +0 -4
- package/dist/client/static/js/diagram-3UASUU5V-bzstt5e2.js +0 -24
- package/dist/client/static/js/eventmodeling-NTZA5JFV-sx2cwkz3.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-dsc17mty.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-yqhbscsd.js +0 -1
- package/dist/client/static/js/graphql-tr0jcndy.js +0 -1
- package/dist/client/static/js/html-n8fdvrdk.js +0 -1
- package/dist/client/static/js/index-1hb8fvw9.js +0 -1
- package/dist/client/static/js/index-869vdnz8.js +0 -2
- package/dist/client/static/js/index-9a78xmkk.js +0 -462
- package/dist/client/static/js/index-aa3hmn6j.js +0 -314
- package/dist/client/static/js/index-axtm1aq8.js +0 -2
- package/dist/client/static/js/index-b2cs4c51.js +0 -4
- package/dist/client/static/js/index-fryp0kgf.js +0 -2
- package/dist/client/static/js/index-gkmn4y1v.js +0 -1
- package/dist/client/static/js/index-kjr68pcj.js +0 -2
- package/dist/client/static/js/index-m39gbcxn.js +0 -1
- package/dist/client/static/js/index-qek9mt5w.js +0 -1
- package/dist/client/static/js/index-rgxg0azs.css +0 -1
- package/dist/client/static/js/index-rq4dk4tp.js +0 -4
- package/dist/client/static/js/index-vnv9z0a1.js +0 -1
- package/dist/client/static/js/index-xr4hjv01.js +0 -2
- package/dist/client/static/js/info-A6RAGUB7-0sd3zzgg.js +0 -1
- package/dist/client/static/js/ini-tnaw7zjy.js +0 -1
- package/dist/client/static/js/java-m4dpc2vw.js +0 -1
- package/dist/client/static/js/javascript-8y26t991.js +0 -1
- package/dist/client/static/js/json-azm7bdqd.js +0 -1
- package/dist/client/static/js/jsx-p9j1k773.js +0 -1
- package/dist/client/static/js/lua-hbm9rhz9.js +0 -1
- package/dist/client/static/js/markdown-tk3cd3vs.js +0 -1
- package/dist/client/static/js/one-dark-pro-2cdc2nk7.js +0 -1
- package/dist/client/static/js/one-light-bt6z4jf0.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-13w2v5bb.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-swtnysgn.js +0 -1
- package/dist/client/static/js/properties-6911ckw7.js +0 -1
- package/dist/client/static/js/python-44cvj250.js +0 -1
- package/dist/client/static/js/quadrantDiagram-O4NWA36T-dxkwxbqb.js +0 -7
- package/dist/client/static/js/r-t3sepzm4.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-vtvxkx55.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-5sp2d63r.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-kg706fan.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-4ra1gzx5.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-hms3zpjm.js +0 -1
- package/dist/client/static/js/sql-zdkawqx3.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-3dwas56m.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-7t5k6rs2.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-w56ry3bg.js +0 -1
- package/dist/client/static/js/tsx-b7eabr17.js +0 -1
- package/dist/client/static/js/typescript-nnkvhwfy.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-rtjb9kgv.js +0 -1
- package/dist/client/static/js/wardleyDiagram-VNRHLVJA-10ph3bzq.js +0 -78
- package/dist/client/static/js/xml-xy1tw6b2.js +0 -1
- package/dist/client/static/js/yaml-0fexqg2d.js +0 -1
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
import { Marked, Renderer, type Tokens } from 'marked';
|
|
31
31
|
import { codeSafeAutolink } from '@/shared/lib/markdown/autolink';
|
|
32
|
+
import { healAsciiBoxes } from '@/shared/lib/markdown/ascii-art';
|
|
32
33
|
import remend from 'remend';
|
|
33
34
|
import { highlightCode } from '@/shared/lib/code/syntax-highlight';
|
|
34
35
|
import { directiveBlockHtml, isDirectiveLanguage, parseDirectiveAttributes } from '@/shared/lib/markdown/directives';
|
|
@@ -70,6 +71,19 @@ interface CodeToken {
|
|
|
70
71
|
raw?: string;
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Whether a `text` fence may have its box art straightened, set for the
|
|
76
|
+
* duration of one parse.
|
|
77
|
+
*
|
|
78
|
+
* A marked renderer receives the token, not the caller's options, and the two
|
|
79
|
+
* surfaces have opposite contracts: agent output is a picture the console may
|
|
80
|
+
* make legible, while a document preview (README, wiki page) must render the
|
|
81
|
+
* bytes the author wrote. A second marked instance would duplicate the whole
|
|
82
|
+
* `marked.use` chain and drift from it, so the flag rides the same synchronous,
|
|
83
|
+
* try/finally contract as `setProseEscaped` — `marked.parse` never awaits.
|
|
84
|
+
*/
|
|
85
|
+
let healBoxes = false;
|
|
86
|
+
|
|
73
87
|
// Wrap fenced code blocks with a floating copy button (top-right, inside the
|
|
74
88
|
// block). The delegated click listener in MarkdownRenderer handles the copy
|
|
75
89
|
// via the data-copy attribute — no React handler needed.
|
|
@@ -94,15 +108,19 @@ function mermaidBlockRenderer(code: string): string {
|
|
|
94
108
|
|
|
95
109
|
function codeBlockRenderer(token: CodeToken): string {
|
|
96
110
|
const info = token.lang?.trim() || 'text';
|
|
97
|
-
const
|
|
111
|
+
const raw = token.text ?? '';
|
|
98
112
|
if (info === 'mermaid') {
|
|
99
|
-
return mermaidBlockRenderer(
|
|
113
|
+
return mermaidBlockRenderer(raw);
|
|
100
114
|
}
|
|
101
115
|
// A namespace-qualified token (`omp:chart`) is a plugin directive. The
|
|
102
116
|
// ordinary code block is still produced — and stays INSIDE the placeholder —
|
|
103
117
|
// so a fence no plugin claims renders exactly as it did before the slot
|
|
104
118
|
// existed. `info` may carry `key=\"value\"` pairs after the token.
|
|
105
119
|
const [lang = 'text'] = info.split(/\s+/, 1);
|
|
120
|
+
// Only a `text` fence may be art, and only on the agent-output contract. The
|
|
121
|
+
// healed spelling is used for the copy attribute too, so a copied block is
|
|
122
|
+
// the block the reader saw rather than a second, ragged version.
|
|
123
|
+
const code = healBoxes && lang === 'text' ? healAsciiBoxes(raw) : raw;
|
|
106
124
|
const highlighted = lang === 'text' ? escapeHtml(code) : highlightCode(code, lang);
|
|
107
125
|
const block = codeBlockShell(code, `<pre><code class="language-${lang}">${highlighted}</code></pre>`);
|
|
108
126
|
if (!isDirectiveLanguage(lang)) return block;
|
|
@@ -209,10 +227,12 @@ export function renderMarkdown(markdown: string, options: RenderMarkdownOptions
|
|
|
209
227
|
// KaTeX the source the author wrote instead of `x < y`. `marked.parse`
|
|
210
228
|
// never awaits, so no nested render can observe this mid-parse.
|
|
211
229
|
setProseEscaped(options.allowHtml !== true);
|
|
230
|
+
healBoxes = options.allowHtml !== true;
|
|
212
231
|
try {
|
|
213
232
|
return (marked.parse(healed) as string).trim();
|
|
214
233
|
} finally {
|
|
215
234
|
setProseEscaped(false);
|
|
235
|
+
healBoxes = false;
|
|
216
236
|
}
|
|
217
237
|
}
|
|
218
238
|
|
|
@@ -239,11 +259,13 @@ export function renderMappedMarkdown(markdown: string, options: RenderMarkdownOp
|
|
|
239
259
|
const healed = heal(markdown, options.allowHtml === true);
|
|
240
260
|
const { tokens, blocks } = mapBlocks(marked, healed);
|
|
241
261
|
setProseEscaped(options.allowHtml !== true);
|
|
262
|
+
healBoxes = options.allowHtml !== true;
|
|
242
263
|
try {
|
|
243
264
|
const html = (marked.parser(tokens) as string).trim();
|
|
244
265
|
return { html, blocks };
|
|
245
266
|
} finally {
|
|
246
267
|
setProseEscaped(false);
|
|
268
|
+
healBoxes = false;
|
|
247
269
|
}
|
|
248
270
|
}
|
|
249
271
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Antigravity reaches Kabmo under two slugs — omp's `google-antigravity` and
|
|
8
|
+
* the CLI plugin's `antigravity-cli` — and one predicate decides both. A false
|
|
9
|
+
* negative is visible, not silent: the quota rows lose their per-family
|
|
10
|
+
* sections and a local sign-in gets a second row beside the existing one.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { describe, expect, test } from 'bun:test';
|
|
14
|
+
|
|
15
|
+
import { isAntigravityProviderSlug } from '@/shared/lib/models/provider/identity';
|
|
16
|
+
|
|
17
|
+
describe('isAntigravityProviderSlug', () => {
|
|
18
|
+
test('both shipped slugs are Antigravity', () => {
|
|
19
|
+
expect(isAntigravityProviderSlug('google-antigravity')).toBe(true);
|
|
20
|
+
expect(isAntigravityProviderSlug('antigravity-cli')).toBe(true);
|
|
21
|
+
expect(isAntigravityProviderSlug('antigravity')).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('spelling variants and surrounding space do not matter', () => {
|
|
25
|
+
expect(isAntigravityProviderSlug(' Google_Antigravity ')).toBe(true);
|
|
26
|
+
expect(isAntigravityProviderSlug('my-antigravity-account')).toBe(true);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('another provider is not, including a look-alike mention in a slug', () => {
|
|
30
|
+
expect(isAntigravityProviderSlug('google-gemini-cli')).toBe(false);
|
|
31
|
+
expect(isAntigravityProviderSlug('openai-codex')).toBe(false);
|
|
32
|
+
expect(isAntigravityProviderSlug('')).toBe(false);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import { normalizeBaseUrl } from '@/shared/lib/net/base-url';
|
|
8
|
+
|
|
9
|
+
describe('normalizeBaseUrl', () => {
|
|
10
|
+
test('accepts http(s) and strips trailing slashes', () => {
|
|
11
|
+
expect(normalizeBaseUrl('https://api.groq.com/openai/v1/')).toBe('https://api.groq.com/openai/v1');
|
|
12
|
+
expect(normalizeBaseUrl(' http://127.0.0.1:8000/v1 ')).toBe('http://127.0.0.1:8000/v1');
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
test('refuses a scheme the server would not fetch', () => {
|
|
16
|
+
expect(normalizeBaseUrl('file:///etc/passwd')).toBeNull();
|
|
17
|
+
expect(normalizeBaseUrl('ftp://example.com')).toBeNull();
|
|
18
|
+
expect(normalizeBaseUrl('not a url')).toBeNull();
|
|
19
|
+
expect(normalizeBaseUrl('')).toBeNull();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('refuses embedded credentials, which would be forwarded silently', () => {
|
|
23
|
+
expect(normalizeBaseUrl('https://user:pass@example.com/v1')).toBeNull();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A usable HTTP(S) base URL, or null.
|
|
8
|
+
*
|
|
9
|
+
* The server fetches the resolved URL, so only `http:`/`https:` — and no
|
|
10
|
+
* embedded credentials, which would be silently forwarded. The trailing slash
|
|
11
|
+
* is removed so `{base}/audio/speech` cannot become `//audio/speech`.
|
|
12
|
+
*
|
|
13
|
+
* One module because dictation and speech both accept a user-supplied endpoint
|
|
14
|
+
* and must refuse the same values: a second copy is how one settings page
|
|
15
|
+
* accepted `file://` after the other had been fixed.
|
|
16
|
+
*/
|
|
17
|
+
export function normalizeBaseUrl(value: string): string | null {
|
|
18
|
+
const trimmed = value.trim();
|
|
19
|
+
if (!trimmed) return null;
|
|
20
|
+
let parsed: URL;
|
|
21
|
+
try {
|
|
22
|
+
parsed = new URL(trimmed);
|
|
23
|
+
} catch {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return null;
|
|
27
|
+
if (parsed.username || parsed.password) return null;
|
|
28
|
+
return trimmed.replace(/\/+$/, '');
|
|
29
|
+
}
|
|
@@ -78,12 +78,13 @@ export const SCHEMA_EXTRAS: Record<string, SchemaEntry> = {
|
|
|
78
78
|
// ── Speech ───────────────────────────────────────────────────────────────
|
|
79
79
|
/**
|
|
80
80
|
* Upstream declares `stt.language` with no `ui` block, so its own panel hides
|
|
81
|
-
* it while its OWN dictation reads it (`cfgSttLanguage`, default `"en"`).
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
81
|
+
* it while its OWN dictation reads it (`cfgSttLanguage`, default `"en"`).
|
|
82
|
+
*
|
|
83
|
+
* Kabmo's dictation now sends the language chosen in Settings → Dictation; this
|
|
84
|
+
* row stays because omp's own TUI reads the same key, and because it is the
|
|
85
|
+
* fallback for the LOCAL engine in "detect automatically" mode. Measured on
|
|
86
|
+
* 19.1.1: the local Whisper pipeline treats a MISSING language as English, so
|
|
87
|
+
* this value is never "auto" — it is the language that will be used.
|
|
87
88
|
*/
|
|
88
89
|
'stt.language': {
|
|
89
90
|
type: 'string',
|
|
@@ -91,9 +92,9 @@ export const SCHEMA_EXTRAS: Record<string, SchemaEntry> = {
|
|
|
91
92
|
ui: {
|
|
92
93
|
tab: 'interaction',
|
|
93
94
|
group: 'Speech',
|
|
94
|
-
label: 'Speech-to-Text Language',
|
|
95
|
+
label: 'Speech-to-Text Language (omp)',
|
|
95
96
|
description:
|
|
96
|
-
'
|
|
97
|
+
'ISO-639-1 language for omp’s own dictation, and the fallback for Kabmo’s local engine when Settings → Dictation is set to detect automatically. The local engine cannot auto-detect: a missing value decodes as English.',
|
|
97
98
|
},
|
|
98
99
|
},
|
|
99
100
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import type { ToolCallData, ToolType } from '@/shared/types/chat';
|
|
20
20
|
import { hashlineTargetPath } from '@/shared/lib/omp/session/hashline-patch';
|
|
21
|
+
import { toolInputPath } from '@/shared/lib/chat/tool/tool-input-path';
|
|
21
22
|
import { extractToolImages, type ToolImageRef } from '@/shared/lib/omp/session/tool-images';
|
|
22
23
|
import { isRecord } from '@/shared/lib/util/guards';
|
|
23
24
|
|
|
@@ -92,7 +93,6 @@ function stringArg(rawInput: Record<string, unknown> | undefined, keys: string[]
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
const COMMAND_KEYS = ['command', 'cmd', 'CommandLine', 'commandLine'];
|
|
95
|
-
const TARGET_KEYS = ['path', 'TargetFile', 'targetFile', 'FilePath', 'filePath', 'AbsolutePath', 'file'];
|
|
96
96
|
|
|
97
97
|
/** Parse omp message content (string or block array) into the canonical
|
|
98
98
|
* parsed-message shape shared by the live and reload render paths. */
|
|
@@ -147,7 +147,7 @@ export function parseMessageBlocks(content: unknown): ParsedMessageBlocks {
|
|
|
147
147
|
// An omp `edit` carries its target inside the patch header (`input:
|
|
148
148
|
// "[PATH#TAG]\nCUT …"`) — no `path` key — so the card would otherwise
|
|
149
149
|
// render without a file name until the result's `details.path` arrives.
|
|
150
|
-
const target =
|
|
150
|
+
const target = toolInputPath(args) || (args ? hashlineTargetPath(args) : undefined);
|
|
151
151
|
const intent = typeof args?.i === 'string' ? args.i : undefined;
|
|
152
152
|
const detail = command || target;
|
|
153
153
|
result.toolCalls.push({
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The GitHub plugin-repository naming rule.
|
|
8
|
+
*
|
|
9
|
+
* Every case here is a URL that reached a refusal or an install, so the pinned
|
|
10
|
+
* behaviour is: the SAME repository is recognised through every spelling git
|
|
11
|
+
* accepts (a spelling that slipped through would be a way past the rule), the
|
|
12
|
+
* rule applies to GitHub only, and the plugin name derived from a compliant
|
|
13
|
+
* repository has no prefix in it.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { describe, expect, test } from 'bun:test';
|
|
17
|
+
import {
|
|
18
|
+
KABMO_PLUGIN_REPO_PREFIX,
|
|
19
|
+
normalisePluginSpec,
|
|
20
|
+
parseGithubPluginRepo,
|
|
21
|
+
pluginNameFromRepo,
|
|
22
|
+
pluginRepoKey,
|
|
23
|
+
pluginRepoNameError,
|
|
24
|
+
samePluginRepo,
|
|
25
|
+
} from '@/shared/lib/panels/plugin-repo';
|
|
26
|
+
|
|
27
|
+
describe('parseGithubPluginRepo', () => {
|
|
28
|
+
test('reads every spelling of one repository', () => {
|
|
29
|
+
const expected = { owner: 'acme', repo: 'kabmo-plugins-panel' };
|
|
30
|
+
for (const url of [
|
|
31
|
+
'https://github.com/acme/kabmo-plugins-panel',
|
|
32
|
+
'https://github.com/acme/kabmo-plugins-panel.git',
|
|
33
|
+
'https://github.com/acme/kabmo-plugins-panel/',
|
|
34
|
+
'https://github.com/acme/kabmo-plugins-panel.git/',
|
|
35
|
+
'https://github.com/acme/kabmo-plugins-panel/tree/main',
|
|
36
|
+
'http://github.com/acme/kabmo-plugins-panel',
|
|
37
|
+
'https://www.github.com/acme/kabmo-plugins-panel',
|
|
38
|
+
'ssh://git@github.com/acme/kabmo-plugins-panel.git',
|
|
39
|
+
'git@github.com:acme/kabmo-plugins-panel.git',
|
|
40
|
+
]) {
|
|
41
|
+
expect(parseGithubPluginRepo(url), url).toEqual(expected);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
test('is null for another host or a local path', () => {
|
|
46
|
+
for (const value of [
|
|
47
|
+
'https://gitlab.com/acme/kabmo-plugins-panel',
|
|
48
|
+
'git@gitlab.example:team/panels.git',
|
|
49
|
+
'/srv/repos/kabmo-plugins-panel',
|
|
50
|
+
'~/repos/kabmo-plugins-panel',
|
|
51
|
+
'kabmo-plugins-panel',
|
|
52
|
+
'',
|
|
53
|
+
]) {
|
|
54
|
+
expect(parseGithubPluginRepo(value), value).toBeNull();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('pluginRepoNameError', () => {
|
|
60
|
+
test('accepts a prefixed GitHub repository', () => {
|
|
61
|
+
expect(pluginRepoNameError('https://github.com/acme/kabmo-plugins-kanban')).toBeNull();
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
test('refuses an unprefixed GitHub repository and names the rule', () => {
|
|
65
|
+
const error = pluginRepoNameError('https://github.com/acme/kanban-panel');
|
|
66
|
+
expect(error).toContain(`"${KABMO_PLUGIN_REPO_PREFIX}<plugin>"`);
|
|
67
|
+
expect(error).toContain('acme/kanban-panel');
|
|
68
|
+
expect(error).toContain("plugin's own name does not need the prefix");
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
test('does not restrict a non-GitHub source', () => {
|
|
72
|
+
expect(pluginRepoNameError('https://gitlab.com/acme/kanban-panel')).toBeNull();
|
|
73
|
+
expect(pluginRepoNameError('/srv/repos/kanban-panel')).toBeNull();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
describe('pluginNameFromRepo', () => {
|
|
78
|
+
test('strips the prefix and lowercases, which is the plugin name', () => {
|
|
79
|
+
expect(pluginNameFromRepo('https://github.com/acme/kabmo-plugins-Kanban')).toBe('kanban');
|
|
80
|
+
expect(pluginNameFromRepo('git@github.com:acme/kabmo-plugins-kanban.git')).toBe('kanban');
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
test('is null for a repository that does not follow the rule', () => {
|
|
84
|
+
expect(pluginNameFromRepo('https://github.com/acme/kanban')).toBeNull();
|
|
85
|
+
expect(pluginNameFromRepo('https://github.com/acme/kabmo-plugins-')).toBeNull();
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
describe('samePluginRepo and pluginRepoKey', () => {
|
|
90
|
+
test('one repository has one identity across spellings', () => {
|
|
91
|
+
const https = 'https://github.com/Acme/kabmo-plugins-Kanban.git';
|
|
92
|
+
const ssh = 'git@github.com:acme/kabmo-plugins-kanban';
|
|
93
|
+
expect(samePluginRepo(https, ssh)).toBe(true);
|
|
94
|
+
expect(pluginRepoKey(https)).toBe('acme/kabmo-plugins-kanban');
|
|
95
|
+
expect(pluginRepoKey(ssh)).toBe('acme/kabmo-plugins-kanban');
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
test('different repositories are different', () => {
|
|
99
|
+
expect(samePluginRepo('https://github.com/acme/kabmo-plugins-a', 'https://github.com/acme/kabmo-plugins-b')).toBe(
|
|
100
|
+
false,
|
|
101
|
+
);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
describe('normalisePluginSpec', () => {
|
|
106
|
+
test('keeps a URL, expands owner/repo, and leaves a bare name unresolved', () => {
|
|
107
|
+
expect(normalisePluginSpec('https://github.com/acme/kabmo-plugins-x')).toBe('https://github.com/acme/kabmo-plugins-x');
|
|
108
|
+
expect(normalisePluginSpec('acme/kabmo-plugins-x')).toBe('https://github.com/acme/kabmo-plugins-x');
|
|
109
|
+
expect(normalisePluginSpec('/srv/repos/x')).toBe('/srv/repos/x');
|
|
110
|
+
expect(normalisePluginSpec('kanban')).toBeNull();
|
|
111
|
+
expect(normalisePluginSpec(' ')).toBeNull();
|
|
112
|
+
});
|
|
113
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The naming rule for a Kabmo plugin repository published on GitHub.
|
|
8
|
+
*
|
|
9
|
+
* A plugin's own identity (its manifest `id`, the name the pane shows and the
|
|
10
|
+
* directory it installs into) is free-form. Its REPOSITORY is not: an external
|
|
11
|
+
* GitHub repository that publishes a Kabmo plugin must be named
|
|
12
|
+
* `kabmo-plugins-<plugin>`, so the ecosystem is discoverable by one search and
|
|
13
|
+
* two unrelated plugins cannot squat the same repository name. The prefix is
|
|
14
|
+
* stripped when the catalog derives the plugin's name, which is why installing
|
|
15
|
+
* a plugin never needs the prefix in its own name.
|
|
16
|
+
*
|
|
17
|
+
* Only GitHub is checked. A self-hosted forge has no naming authority to
|
|
18
|
+
* enforce, and a local path is a development source rather than a published
|
|
19
|
+
* plugin. The check runs in three places against this one function: the git
|
|
20
|
+
* install, the catalog parser, and the registration action — so a repository
|
|
21
|
+
* cannot enter by any of them under a name the others refuse.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
import { isGitUrl } from '@/shared/lib/git/url';
|
|
25
|
+
|
|
26
|
+
/** The prefix every external GitHub plugin repository carries. */
|
|
27
|
+
export const KABMO_PLUGIN_REPO_PREFIX = 'kabmo-plugins-';
|
|
28
|
+
|
|
29
|
+
export interface GithubPluginRepo {
|
|
30
|
+
owner: string;
|
|
31
|
+
repo: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function githubRepo(host: string, segments: readonly string[]): GithubPluginRepo | null {
|
|
35
|
+
if (!/^(?:www\.)?github\.com$/i.test(host)) return null;
|
|
36
|
+
if (segments.length < 2) return null;
|
|
37
|
+
const owner = segments[0];
|
|
38
|
+
const repo = segments[1].replace(/\.git$/i, '');
|
|
39
|
+
if (!owner || !repo) return null;
|
|
40
|
+
return { owner, repo };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The GitHub `owner/repo` a URL names, or null when it is not a GitHub URL.
|
|
45
|
+
*
|
|
46
|
+
* Parsed rather than pattern-matched because the two spellings git accepts —
|
|
47
|
+
* the URL form and the `git@host:owner/repo` scp form — put the path in
|
|
48
|
+
* different places, and a URL may carry a trailing path (`/tree/main`), a
|
|
49
|
+
* trailing slash or a port. All of those still name the same repository, and a
|
|
50
|
+
* check that missed one would be a way past the rule.
|
|
51
|
+
*/
|
|
52
|
+
export function parseGithubPluginRepo(value: string): GithubPluginRepo | null {
|
|
53
|
+
const trimmed = value.trim();
|
|
54
|
+
if (!trimmed) return null;
|
|
55
|
+
|
|
56
|
+
const scp = /^git@([^:/\s]+):(.+)$/.exec(trimmed);
|
|
57
|
+
if (scp) return githubRepo(scp[1], scp[2].split('/').filter(Boolean));
|
|
58
|
+
|
|
59
|
+
let parsed: URL;
|
|
60
|
+
try {
|
|
61
|
+
parsed = new URL(trimmed);
|
|
62
|
+
} catch {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:' && parsed.protocol !== 'ssh:') return null;
|
|
66
|
+
return githubRepo(parsed.hostname, parsed.pathname.split('/').filter(Boolean));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Why `url` is not an acceptable GitHub plugin repository, or null when it is.
|
|
71
|
+
*
|
|
72
|
+
* A non-GitHub URL is accepted: the rule is about the naming convention GitHub
|
|
73
|
+
* repositories follow, and refusing every other forge would make a GitLab or a
|
|
74
|
+
* local mirror uninstallable.
|
|
75
|
+
*/
|
|
76
|
+
export function pluginRepoNameError(url: string): string | null {
|
|
77
|
+
const repo = parseGithubPluginRepo(url);
|
|
78
|
+
if (!repo) return null;
|
|
79
|
+
if (repo.repo.toLowerCase().startsWith(KABMO_PLUGIN_REPO_PREFIX)) return null;
|
|
80
|
+
return (
|
|
81
|
+
`GitHub plugin repositories must be named "${KABMO_PLUGIN_REPO_PREFIX}<plugin>"; ` +
|
|
82
|
+
`"${repo.owner}/${repo.repo}" is not. The plugin's own name does not need the prefix.`
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The plugin name a repository name publishes: `kabmo-plugins-kanban` → `kanban`.
|
|
88
|
+
*
|
|
89
|
+
* Lowercased because the name becomes a catalog key and is compared against a
|
|
90
|
+
* manifest id, which is conventionally lowercase. Null when the URL is not a
|
|
91
|
+
* GitHub plugin repository or the name after the prefix is empty — the caller
|
|
92
|
+
* then refuses rather than inventing a name.
|
|
93
|
+
*/
|
|
94
|
+
export function pluginNameFromRepo(url: string): string | null {
|
|
95
|
+
const repo = parseGithubPluginRepo(url);
|
|
96
|
+
if (!repo) return null;
|
|
97
|
+
const lowered = repo.repo.toLowerCase();
|
|
98
|
+
if (!lowered.startsWith(KABMO_PLUGIN_REPO_PREFIX)) return null;
|
|
99
|
+
return lowered.slice(KABMO_PLUGIN_REPO_PREFIX.length) || null;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The `owner/repo` identity a value names, accepting BOTH spellings a stored
|
|
104
|
+
* catalog may hold: the full URL a registration was typed as, and the canonical
|
|
105
|
+
* `owner/repo` the registration itself writes. Without the expansion, an entry
|
|
106
|
+
* stored as `acme/kabmo-plugins-kanban` would never match the URL it came from.
|
|
107
|
+
*/
|
|
108
|
+
function githubIdentity(value: string): string | null {
|
|
109
|
+
const repo = parseGithubPluginRepo(normalisePluginSpec(value) ?? value);
|
|
110
|
+
return repo ? `${repo.owner}/${repo.repo}`.toLowerCase() : null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** True when both URLs name the same GitHub repository (or the same source string). */
|
|
114
|
+
export function samePluginRepo(left: string, right: string): boolean {
|
|
115
|
+
const a = githubIdentity(left);
|
|
116
|
+
const b = githubIdentity(right);
|
|
117
|
+
if (a && b) return a === b;
|
|
118
|
+
const normalise = (value: string) => value.trim().replace(/\/+$/, '').replace(/\.git$/i, '').toLowerCase();
|
|
119
|
+
return normalise(left) === normalise(right);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A stable key for "this install came from this repository", used to mark a
|
|
124
|
+
* registered offer installed even when the plugin's manifest id differs from the
|
|
125
|
+
* name the repository name suggests.
|
|
126
|
+
*
|
|
127
|
+
* GitHub URLs collapse to `owner/repo` in one case so an `https`, an `ssh` and
|
|
128
|
+
* a `git@` spelling of one clone share a key. Anything else is compared as a
|
|
129
|
+
* trimmed, suffix-stripped string.
|
|
130
|
+
*/
|
|
131
|
+
export function pluginRepoKey(url: string): string {
|
|
132
|
+
return githubIdentity(url) ?? url.trim().replace(/\/+$/, '').replace(/\.git$/i, '').toLowerCase();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Expand the two spellings a user may type for a plugin source.
|
|
137
|
+
*
|
|
138
|
+
* `owner/repo` is GitHub's shorthand — the pane documents it, and requiring the
|
|
139
|
+
* full URL for the one host the naming rule targets would be gratuitous. A local
|
|
140
|
+
* path or a full URL is returned as typed, and a bare plugin NAME returns null so
|
|
141
|
+
* the caller can resolve it against the registered registries instead.
|
|
142
|
+
*/
|
|
143
|
+
export function normalisePluginSpec(spec: string): string | null {
|
|
144
|
+
const trimmed = spec.trim();
|
|
145
|
+
if (!trimmed) return null;
|
|
146
|
+
if (isGitUrl(trimmed)) return trimmed;
|
|
147
|
+
if (/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(trimmed)) return `https://github.com/${trimmed}`;
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
@@ -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';
|
|
@@ -31,6 +32,8 @@ import { DEFAULT_ICON_STYLE } from '@/shared/lib/theme/icon-style';
|
|
|
31
32
|
import { DEFAULT_TRAY_ICON_STYLE } from '@/shared/lib/theme/tray-icon-style';
|
|
32
33
|
import { EDITOR_DEFAULT_FONT_FAMILY } from '@/shared/lib/code/editor/typography';
|
|
33
34
|
import { EDITOR_DEFAULT_THEME_ID } from '@/shared/lib/code/editor/themes';
|
|
35
|
+
import { DEFAULT_DICTATION_CONFIG } from '@/shared/lib/dictation/settings';
|
|
36
|
+
import { DEFAULT_TTS_CONFIG } from '@/shared/lib/tts/settings';
|
|
34
37
|
|
|
35
38
|
export const DEFAULT_SETTINGS = {
|
|
36
39
|
theme: DEFAULT_THEME_ID,
|
|
@@ -59,6 +62,7 @@ export const DEFAULT_SETTINGS = {
|
|
|
59
62
|
sidebarStyle: DEFAULT_SIDEBAR_STYLE,
|
|
60
63
|
leftPanelNav: DEFAULT_PANEL_NAV,
|
|
61
64
|
rightPanelNav: DEFAULT_PANEL_NAV,
|
|
65
|
+
rightSideHiddenScope: DEFAULT_RIGHT_SIDE_HIDDEN_SCOPE,
|
|
62
66
|
mobileLeftPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
63
67
|
mobileRightPanelNav: DEFAULT_MOBILE_PANEL_NAV,
|
|
64
68
|
composerStyle: DEFAULT_COMPOSER_STYLE,
|
|
@@ -70,4 +74,6 @@ export const DEFAULT_SETTINGS = {
|
|
|
70
74
|
keybindingSend: 'Enter',
|
|
71
75
|
keybindingNewLine: 'Shift + Enter',
|
|
72
76
|
keybindingSteering: 'Ctrl / Cmd + Enter',
|
|
77
|
+
dictation: DEFAULT_DICTATION_CONFIG,
|
|
78
|
+
tts: DEFAULT_TTS_CONFIG,
|
|
73
79
|
} satisfies SettingsState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Whether omp's local speech command can run on this install.
|
|
8
|
+
*
|
|
9
|
+
* Shared because the settings page, the settings route and the synthesis
|
|
10
|
+
* dispatch all quote the same fact, and a second spelling is how one surface
|
|
11
|
+
* says "available" while another refuses the request.
|
|
12
|
+
*/
|
|
13
|
+
export interface TtsLocalCapability {
|
|
14
|
+
available: boolean;
|
|
15
|
+
reason?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import {
|
|
8
|
+
clampTtsSpeed,
|
|
9
|
+
isTtsEngine,
|
|
10
|
+
resolveTtsModel,
|
|
11
|
+
resolveTtsVoice,
|
|
12
|
+
speechEndpoint,
|
|
13
|
+
TTS_ENGINES,
|
|
14
|
+
TTS_PRESETS,
|
|
15
|
+
ttsEngine,
|
|
16
|
+
} from '@/shared/lib/tts/engines';
|
|
17
|
+
|
|
18
|
+
describe('TTS_ENGINES', () => {
|
|
19
|
+
test('omp is the shipped default and needs no key', () => {
|
|
20
|
+
expect(TTS_ENGINES[0].id).toBe('omp');
|
|
21
|
+
expect(TTS_ENGINES[0].needsKey).toBe(false);
|
|
22
|
+
expect(TTS_ENGINES.filter((engine) => !engine.needsKey).map((engine) => engine.id)).toEqual(['omp']);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('every engine has a positive input budget and an ordered speed range', () => {
|
|
26
|
+
for (const engine of TTS_ENGINES) {
|
|
27
|
+
expect(engine.maxChars).toBeGreaterThan(0);
|
|
28
|
+
expect(engine.speed.min).toBeLessThanOrEqual(engine.speed.max);
|
|
29
|
+
expect(engine.label.length).toBeGreaterThan(0);
|
|
30
|
+
expect(engine.where.length).toBeGreaterThan(0);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test('only the OpenAI-compatible engine takes a user endpoint', () => {
|
|
35
|
+
expect(TTS_ENGINES.filter((engine) => engine.editableBaseUrl).map((engine) => engine.id)).toEqual(['openai']);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test('an engine that offers voices resolves a default voice', () => {
|
|
39
|
+
for (const engine of TTS_ENGINES) {
|
|
40
|
+
if (engine.voices.length > 0 && engine.id !== 'deepgram') {
|
|
41
|
+
expect(engine.defaultVoice.length).toBeGreaterThan(0);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
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
|
+
|
|
58
|
+
test('presets name a model and a voice the engine understands', () => {
|
|
59
|
+
for (const preset of TTS_PRESETS) {
|
|
60
|
+
expect(preset.baseUrl).toMatch(/^https?:\/\//);
|
|
61
|
+
expect(preset.model.length).toBeGreaterThan(0);
|
|
62
|
+
expect(preset.voice.length).toBeGreaterThan(0);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
describe('engine resolution', () => {
|
|
68
|
+
test('an unknown id resolves to the local engine', () => {
|
|
69
|
+
expect(ttsEngine('nope').id).toBe('omp');
|
|
70
|
+
expect(isTtsEngine('nope')).toBe(false);
|
|
71
|
+
expect(isTtsEngine('xai')).toBe(true);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
test('model and voice fall back to the engine default', () => {
|
|
75
|
+
expect(resolveTtsModel('openai', '')).toBe('gpt-4o-mini-tts');
|
|
76
|
+
expect(resolveTtsModel('openai', 'tts-1')).toBe('tts-1');
|
|
77
|
+
expect(resolveTtsVoice('xai', '')).toBe('eve');
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
test('speed is clamped per engine', () => {
|
|
81
|
+
expect(clampTtsSpeed('omp', 2)).toBe(1.3);
|
|
82
|
+
expect(clampTtsSpeed('openai', 9)).toBe(4);
|
|
83
|
+
expect(clampTtsSpeed('deepgram', Number.NaN)).toBe(1);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test('the speech path is joined once', () => {
|
|
87
|
+
expect(speechEndpoint('https://api.openai.com/v1')).toBe('https://api.openai.com/v1/audio/speech');
|
|
88
|
+
expect(speechEndpoint('https://api.openai.com/v1/audio/speech')).toBe('https://api.openai.com/v1/audio/speech');
|
|
89
|
+
expect(speechEndpoint('')).toBe('');
|
|
90
|
+
});
|
|
91
|
+
});
|