Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(chat): polish branded tool tags and expand original logos

rubenluetke10-beep1643ee47a341
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/LOGOS.md b/jarvis/ui/web/frontend/src/assets/tool-brands/LOGOS.md
new file mode 100644
index 0000000000..a97e1f46a5
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/LOGOS.md
@@ -0,0 +1,19 @@
+# Tool-picker brand marks
+
+Original brand marks, bundled locally for offline rendering. Full-colour icons
+come from gilbarbara/logos; single-colour glyphs come from Simple Icons.
+Retrieved 2026-09-07 from the Simple Icons npm package, version 16.30.0.
+The glyphs are CC0; the brand names and trademarks belong to their owners.
+These marks identify services and do not imply endorsement. Single-colour
+glyphs use each service's hue; neutral glyphs follow the light/dark theme.
+
+| Asset | Source | License |
+| --- | --- | --- |
+| `cloudflare.svg` | [Simple Icons cloudflare](https://cdn.jsdelivr.net/npm/[email protected]/icons/cloudflare.svg) | CC0 |
+| `docker.svg` | [gilbarbara/logos docker](https://raw.githubusercontent.com/gilbarbara/logos/a5b65275e761a8347a99eded1101c6b130a06e52/logos/docker-icon.svg) | CC0 |
+| `figma.svg` | [gilbarbara/logos figma](https://raw.githubusercontent.com/gilbarbara/logos/a5b65275e761a8347a99eded1101c6b130a06e52/logos/figma.svg) | CC0 |
+| `gitlab.svg` | [gilbarbara/logos gitlab](https://raw.githubusercontent.com/gilbarbara/logos/a5b65275e761a8347a99eded1101c6b130a06e52/logos/gitlab-icon.svg) | CC0 |
+| `n8n.svg` | [Simple Icons n8n](https://cdn.jsdelivr.net/npm/[email protected]/icons/n8n.svg) | CC0 |
+| `obsidian.svg` | [gilbarbara/logos obsidian](https://raw.githubusercontent.com/gilbarbara/logos/a5b65275e761a8347a99eded1101c6b130a06e52/logos/obsidian-icon.svg) | CC0 |
+| `postgresql.svg` | [gilbarbara/logos postgresql](https://raw.githubusercontent.com/gilbarbara/logos/a5b65275e761a8347a99eded1101c6b130a06e52/logos/postgresql.svg) | CC0 |
+| `stripe.svg` | [Simple Icons stripe](https://cdn.jsdelivr.net/npm/[email protected]/icons/stripe.svg) | CC0 |
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/cloudflare.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/cloudflare.svg
new file mode 100644
index 0000000000..a1cf2d6d3d
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/cloudflare.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cloudflare</title><path d="M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727"/></svg>
\ No newline at end of file
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/docker.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/docker.svg
new file mode 100644
index 0000000000..3fafadf3fe
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/docker.svg
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="256px" height="185px" viewBox="0 0 256 185" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M250.715745,70.4971666 C244.951102,66.4973277 231.740464,64.997388 221.412146,66.9973071 C220.211179,56.9977092 214.68673,48.2480609 205.078993,40.4983724 L199.554544,36.4985331 L195.711449,42.248302 C190.90758,49.7480006 188.505646,60.2475786 189.226226,70.2471769 C189.46642,73.7470364 190.667387,79.9967847 194.270289,85.496564 C190.90758,87.4964838 183.941971,89.996383 174.814621,89.996383 L1.15476998,89.996383 L0.674383104,91.9963028 C-1.00697093,101.9959 -1.00697093,133.244645 18.6888904,157.243681 C33.5808831,175.492947 55.6786788,184.742575 84.7420842,184.742575 C147.672763,184.742575 194.270289,154.493791 216.127891,99.7459909 C224.774854,99.9959813 243.269748,99.7459909 252.637292,80.996745 C252.877486,80.4967649 253.357872,79.4968046 255.039227,75.7469554 L256,73.7470364 L250.715745,70.4971666 L250.715745,70.4971666 Z M139.986573,0 L113.565295,0 L113.565295,24.9989952 L139.986573,24.9989952 L139.986573,0 L139.986573,0 Z M139.986573,29.9987943 L113.565295,29.9987943 L113.565295,54.9977896 L139.986573,54.9977896 L139.986573,29.9987943 L139.986573,29.9987943 Z M108.761427,29.9987943 L82.3401495,29.9987943 L82.3401495,54.9977896 L108.761427,54.9977896 L108.761427,29.9987943 L108.761427,29.9987943 Z M77.5362814,29.9987943 L51.1150037,29.9987943 L51.1150037,54.9977896 L77.5362814,54.9977896 L77.5362814,29.9987943 L77.5362814,29.9987943 Z M46.311135,59.9975886 L19.8898576,59.9975886 L19.8898576,84.9965839 L46.311135,84.9965839 L46.311135,59.9975886 L46.311135,59.9975886 Z M77.5362814,59.9975886 L51.1150037,59.9975886 L51.1150037,84.9965839 L77.5362814,84.9965839 L77.5362814,59.9975886 L77.5362814,59.9975886 Z M108.761427,59.9975886 L82.3401495,59.9975886 L82.3401495,84.9965839 L108.761427,84.9965839 L108.761427,59.9975886 L108.761427,59.9975886 Z M139.986573,59.9975886 L113.565295,59.9975886 L113.565295,84.9965839 L139.986573,84.9965839 L139.986573,59.9975886 L139.986573,59.9975886 Z M171.211719,59.9975886 L144.790441,59.9975886 L144.790441,84.9965839 L171.211719,84.9965839 L171.211719,59.9975886 L171.211719,59.9975886 Z" fill="#2396ED" fill-rule="nonzero"></path>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/figma.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/figma.svg
new file mode 100644
index 0000000000..460cc3159f
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/figma.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="256px" height="384px" viewBox="0 0 256 384" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M64,384 C99.328,384 128,355.328 128,320 L128,256 L64,256 C28.672,256 0,284.672 0,320 C0,355.328 28.672,384 64,384 Z" fill="#0ACF83"></path>
+ <path d="M0,192 C0,156.672 28.672,128 64,128 L128,128 L128,256 L64,256 C28.672,256 0,227.328 0,192 Z" fill="#A259FF"></path>
+ <path d="M0,64 C0,28.672 28.672,0 64,0 L128,0 L128,128 L64,128 C28.672,128 0,99.328 0,64 Z" fill="#F24E1E"></path>
+ <path d="M128,0 L192,0 C227.328,0 256,28.672 256,64 C256,99.328 227.328,128 192,128 L128,128 L128,0 Z" fill="#FF7262"></path>
+ <path d="M256,192 C256,227.328 227.328,256 192,256 C156.672,256 128,227.328 128,192 C128,156.672 156.672,128 192,128 C227.328,128 256,156.672 256,192 Z" fill="#1ABCFE"></path>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/gitlab.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/gitlab.svg
new file mode 100644
index 0000000000..ba40ca525b
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/gitlab.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="256px" height="247px" viewBox="0 0 256 247" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>GitLab</title>
+ <g>
+ <path d="M251.845416,97.6423982 L251.516654,96.6561113 L216.667852,5.75333996 C216.010327,3.9451474 214.695278,2.46571713 213.051466,1.47943028 C211.407655,0.493143425 209.599463,0 207.626889,0 C205.654315,0 203.846123,0.821905709 202.366692,1.9725737 C200.887262,3.12324169 199.736594,4.76705311 199.243451,6.73962681 L175.736947,78.7385669 L80.5602662,78.7385669 L57.053763,6.73962681 C56.5606196,4.93143425 55.4099516,3.28762283 53.9305213,1.9725737 C52.451091,0.821905709 50.6428985,0 48.6703248,0 C46.6977511,0 44.8895585,0.328762283 43.2457471,1.47943028 C41.6019357,2.46571713 40.2868865,3.9451474 39.629362,5.75333996 L4.78055991,96.6561113 L4.45179763,97.6423982 C-5.9042143,124.600905 2.97236735,155.011417 25.9857272,172.435818 L26.3144895,172.435818 C26.3144895,172.600199 79.4095983,212.380435 79.4095983,212.380435 L105.710581,232.270553 L121.655552,244.270377 C125.436318,247.229237 130.860896,247.229237 134.641662,244.270377 L150.586633,232.270553 L176.887615,212.380435 L230.311486,172.435818 L230.311486,172.435818 C253.324846,155.011417 262.037047,124.600905 251.681035,97.6423982 L251.845416,97.6423982 Z" fill="#E24329"></path>
+ <path d="M251.845416,97.6423982 L251.516654,96.6561113 C234.256634,100.272496 218.311663,107.505267 204.668028,117.696897 C204.503647,117.696897 163.243981,149.093696 128.066416,175.559059 C154.038637,195.284796 176.723234,212.380435 176.723234,212.380435 L230.147105,172.435818 L230.147105,172.435818 C253.160465,155.011417 261.872666,124.600905 251.516654,97.6423982 L251.845416,97.6423982 Z" fill="#FC6D26"></path>
+ <path d="M79.2452171,212.380435 L105.5462,232.270553 L121.491171,244.270377 C125.271937,247.229237 130.696514,247.229237 134.477281,244.270377 L150.422251,232.270553 L176.723234,212.380435 C176.723234,212.380435 154.038637,195.284796 128.066416,175.559059 C101.929815,195.284796 79.2452171,212.380435 79.2452171,212.380435 L79.2452171,212.380435 L79.2452171,212.380435 Z" fill="#FCA326"></path>
+ <path d="M51.4648042,117.696897 C37.8211694,107.505267 21.8761987,100.108115 4.61617877,96.6561113 L4.28741649,97.6423982 C-6.06859544,124.600905 2.80798621,155.011417 25.8213461,172.435818 L26.1501083,172.435818 C26.1501083,172.600199 79.2452171,212.380435 79.2452171,212.380435 C79.2452171,212.380435 101.929815,195.284796 128.066416,175.559059 C93.053233,149.093696 51.7935664,117.861279 51.4648042,117.696897 L51.4648042,117.696897 L51.4648042,117.696897 Z" fill="#FC6D26"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/n8n.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/n8n.svg
new file mode 100644
index 0000000000..2b67f5ab4f
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/n8n.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>n8n</title><path d="M21.4737 5.6842c-1.1772 0-2.1663.8051-2.4468 1.8947h-2.8955c-1.235 0-2.289.893-2.492 2.111l-.1038.623a1.263 1.263 0 0 1-1.246 1.0555H11.289c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947s-2.1663.8051-2.4467 1.8947H4.973c-.2805-1.0896-1.2696-1.8947-2.4468-1.8947C1.1311 9.4737 0 10.6047 0 12s1.131 2.5263 2.5263 2.5263c1.1772 0 2.1663-.8051 2.4468-1.8947h1.4223c.2804 1.0896 1.2696 1.8947 2.4467 1.8947 1.1772 0 2.1663-.8051 2.4468-1.8947h1.0008a1.263 1.263 0 0 1 1.2459 1.0555l.1038.623c.203 1.218 1.257 2.111 2.492 2.111h.3692c.2804 1.0895 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263c-1.1772 0-2.1664.805-2.4468 1.8947h-.3692a1.263 1.263 0 0 1-1.246-1.0555l-.1037-.623A2.52 2.52 0 0 0 13.9607 12a2.52 2.52 0 0 0 .821-1.4794l.1038-.623a1.263 1.263 0 0 1 1.2459-1.0555h2.8955c.2805 1.0896 1.2696 1.8947 2.4468 1.8947 1.3952 0 2.5263-1.131 2.5263-2.5263s-1.131-2.5263-2.5263-2.5263m0 1.2632a1.263 1.263 0 0 1 1.2631 1.2631 1.263 1.263 0 0 1-1.2631 1.2632 1.263 1.263 0 0 1-1.2632-1.2632 1.263 1.263 0 0 1 1.2632-1.2631M2.5263 10.7368A1.263 1.263 0 0 1 3.7895 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 1.2632 12a1.263 1.263 0 0 1 1.2631-1.2632m6.3158 0A1.263 1.263 0 0 1 10.1053 12a1.263 1.263 0 0 1-1.2632 1.2632A1.263 1.263 0 0 1 7.579 12a1.263 1.263 0 0 1 1.2632-1.2632m10.1053 3.7895a1.263 1.263 0 0 1 1.2631 1.2632 1.263 1.263 0 0 1-1.2631 1.2631 1.263 1.263 0 0 1-1.2632-1.2631 1.263 1.263 0 0 1 1.2632-1.2632"/></svg>
\ No newline at end of file
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/obsidian.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/obsidian.svg
new file mode 100644
index 0000000000..060df50347
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/obsidian.svg
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="256px" height="332px" viewBox="0 0 256 332" version="1.1" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">
+ <title>Obsidian</title>
+ <defs>
+ <radialGradient cx="72.8188161%" cy="96.9336384%" fx="72.8188161%" fy="96.9336384%" r="163.793124%" gradientTransform="translate(0,7282, 0,9693), scale(1, 0,534), rotate(-104,5452), translate(-0,7282, -0,9693)" id="radialGradient-1">
+ <stop stop-color="#FFFFFF" stop-opacity="0.4" offset="0%"></stop>
+ <stop stop-color="#000000" stop-opacity="0.1" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="52.9165858%" cy="90.6316753%" fx="52.9165858%" fy="90.6316753%" r="190.361461%" gradientTransform="translate(0,5292, 0,9063), scale(1, 0,5013), rotate(-82,4659), translate(-0,5292, -0,9063)" id="radialGradient-2">
+ <stop stop-color="#FFFFFF" stop-opacity="0.6" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.1" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="31.1735808%" cy="97.1379223%" fx="31.1735808%" fy="97.1379223%" r="178.71402%" gradientTransform="translate(0,3117, 0,9714), scale(1, 0,5782), rotate(-77,6806), translate(-0,3117, -0,9714)" id="radialGradient-3">
+ <stop stop-color="#FFFFFF" stop-opacity="0.8" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.4" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="71.8134715%" cy="99.9936686%" fx="71.8134715%" fy="99.9936686%" r="92.0858865%" gradientTransform="translate(0,7181, 0,9999), scale(0,8704, 1), rotate(-120,7097), translate(-0,7181, -0,9999)" id="radialGradient-4">
+ <stop stop-color="#FFFFFF" stop-opacity="0.3" offset="0%"></stop>
+ <stop stop-color="#000000" stop-opacity="0.3" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="117.012845%" cy="34.768667%" fx="117.012845%" fy="34.768667%" r="328.728831%" gradientTransform="translate(1,1701, 0,3477), scale(1, 0,1938), rotate(102,0372), translate(-1,1701, -0,3477)" id="radialGradient-5">
+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.2" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="-9.43113772%" cy="8.71165644%" fx="-9.43113772%" fy="8.71165644%" r="153.492398%" gradientTransform="translate(-0,0943, 0,0871), scale(1, 0,8196), rotate(45,3951), translate(0,0943, -0,0871)" id="radialGradient-6">
+ <stop stop-color="#FFFFFF" stop-opacity="0.2" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.4" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="103.901931%" cy="-22.1716021%" fx="103.901931%" fy="-22.1716021%" r="394.770981%" gradientTransform="translate(1,039, -0,2217), scale(1, 0,2302), rotate(80,3803), translate(-1,039, 0,2217)" id="radialGradient-7">
+ <stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.3" offset="100%"></stop>
+ </radialGradient>
+ <radialGradient cx="99.3483412%" cy="89.1929661%" fx="99.3483412%" fy="89.1929661%" r="203.824388%" gradientTransform="translate(0,9935, 0,8919), scale(0,5317, 1), rotate(-152,3144), translate(-0,9935, -0,8919)" id="radialGradient-8">
+ <stop stop-color="#FFFFFF" stop-opacity="0.2" offset="0%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.2" offset="50%"></stop>
+ <stop stop-color="#FFFFFF" stop-opacity="0.3" offset="100%"></stop>
+ </radialGradient>
+ </defs>
+ <g>
+ <path d="M209.055661,308.304559 C207.012625,323.234431 192.318488,334.942594 177.624351,330.856524 C156.801108,325.198888 132.677577,316.240965 110.989973,314.590821 L77.6727842,312.076316 C72.3205637,311.699652 67.2904402,309.380207 63.5286947,305.55432 L6.16655365,246.77777 C-0.0673651204,240.370851 -1.75016388,230.803829 1.92332678,222.654239 C1.92332678,222.654239 37.2835507,145.176059 38.6979597,141.168567 C39.9552121,137.161075 44.8270651,101.958008 47.655883,83.0992219 C48.4489959,78.0916875 50.9471638,73.511713 54.7279278,70.1338065 L122.462401,9.4713779 C126.972804,5.42536636 132.952134,3.41853659 138.990202,3.92418757 C145.028269,4.42983855 150.590539,7.4032062 154.365181,12.1430393 L211.413009,84.1207395 C214.605159,88.2312032 216.321201,93.2962949 216.284862,98.5005639 C216.284862,112.094606 217.463536,140.14705 225.085629,158.220053 C232.648708,174.474184 242.033478,189.816702 253.059495,203.952609 C255.790626,207.498396 256.101328,212.345343 253.845278,216.21082 C248.894846,224.618696 238.993984,240.805821 225.085629,261.471907 C216.280566,275.68132 210.775853,291.685264 208.977082,308.304559 L209.055661,308.304559 Z" fill-opacity="0.3" fill="#000000"></path>
+ <path d="M209.605709,305.790054 C207.562673,320.798505 192.868536,332.506668 178.174398,328.499176 C157.429734,322.762962 133.384781,313.805038 111.618599,312.154895 L78.3799887,309.64039 C73.0152006,309.249857 67.9812082,306.90066 64.2358991,303.039815 L6.87375813,244.106108 C0.578575498,237.634624 -1.10568319,227.965732 2.63053126,219.746843 C2.63053126,219.746843 38.0693334,141.95435 39.4051641,137.86828 C40.7409948,133.860788 45.5342696,98.5791422 48.3630875,79.5631995 C49.1389856,74.5275023 51.638555,69.9171854 55.4351323,66.5192058 L123.169606,5.62104241 C127.690257,1.58395381 133.676047,-0.409503768 139.714539,0.111055907 C145.753031,0.631615582 151.309345,3.62008215 155.072385,8.37128204 L212.041635,80.6632954 C215.222941,84.7795838 216.937676,89.8408171 216.913488,95.0431198 C216.913488,108.71574 218.092162,136.846762 225.635677,154.998344 C233.193233,171.328985 242.577776,186.750214 253.609543,200.966635 C256.400618,204.512417 256.743277,209.403088 254.473904,213.303424 C249.444894,221.789878 239.62261,237.977003 225.635677,258.800246 C216.862771,273.075764 211.386344,289.129213 209.605709,305.790054 L209.605709,305.790054 Z" fill="#6C31E3"></path>
+ <path d="M70.3650046,307.440198 C97.00304,253.456923 96.2958355,214.717833 84.9019856,187.215437 C74.5296532,161.756076 55.1208192,145.726107 39.8766338,135.746666 C39.5623207,137.239654 39.090851,138.654063 38.4622248,139.989893 L2.63053126,219.746843 C-1.08551495,227.981472 0.630300179,237.65243 6.9523364,244.106108 L64.2358991,303.039815 C66.0431995,304.847115 68.1648129,306.340102 70.3650046,307.440198 L70.3650046,307.440198 Z" fill="url(#radialGradient-1)"></path>
+ <path d="M142.814175,197.902082 C149.964798,198.609287 156.958264,200.180852 163.873152,202.695357 C185.717913,210.867498 205.598217,229.254814 222.021076,264.693616 C223.19975,262.650581 224.378424,260.686124 225.635677,258.800246 C235.67199,243.907302 245.288515,228.735727 254.473904,213.303424 C256.765668,209.418888 256.454212,204.529015 253.688121,200.966635 C242.628964,186.75407 233.217968,171.332689 225.635677,154.998344 C218.092162,136.925341 216.992066,108.71574 216.913488,95.0431198 C216.913488,89.8569536 215.263344,84.7493657 212.041635,80.6632954 L155.072385,8.37128204 L154.129446,7.19260791 C158.294095,20.9438061 158.05836,31.9447647 155.465277,41.9242056 C153.107929,51.1964421 148.707545,59.6043176 144.071427,68.4836627 C142.499861,71.4696372 140.928296,74.5341899 139.435309,77.6773209 C132.04565,91.7909384 127.809555,107.34116 127.019941,123.252721 C126.234158,142.268663 130.084494,166.077881 142.735596,197.902082 L142.814175,197.902082 Z" fill="url(#radialGradient-2)"></path>
+ <path d="M142.735596,197.902082 C130.084494,166.077881 126.234158,142.268663 127.019941,123.252721 C127.805724,104.393935 133.306203,90.249845 139.435309,77.6773209 L144.150005,68.4836627 C148.707545,59.6043176 153.02935,51.1964421 155.465277,41.9242056 C158.358357,30.4582958 157.89467,18.4024291 154.129446,7.19260791 C145.993296,-1.74678922 132.169155,-2.44852227 123.169606,5.62104241 L55.4351323,66.5192058 C51.638555,69.9171854 49.1389856,74.5275023 48.3630875,79.5631995 L40.1123686,134.253679 C40.1123686,134.803727 39.9552121,135.275197 39.8766338,135.825245 C55.1208192,145.726107 74.4510749,161.756076 84.9019856,187.136859 C86.9450207,192.165868 88.6737428,197.430613 89.9309952,203.166827 C107.10231,198.404947 124.958423,196.598079 142.735596,197.823504 L142.735596,197.902082 Z" fill="url(#radialGradient-3)"></path>
+ <path d="M178.252977,328.499176 C192.868536,332.506668 207.562673,320.798505 209.605709,305.711476 C211.278825,291.400651 215.510766,277.507108 222.099654,264.693616 C205.598217,229.254814 185.717913,210.867498 163.951731,202.695357 C140.771139,194.051747 115.547513,196.959143 89.9309952,203.166827 C95.6672093,229.176236 92.2883435,263.200629 70.4435829,307.440198 C72.8795094,308.697451 75.6297491,309.404655 78.3799887,309.64039 L112.875852,312.233473 C131.577481,313.569304 159.472769,323.234431 178.252977,328.499176 L178.252977,328.499176 Z" fill="url(#radialGradient-4)"></path>
+ <path d="M127.177098,122.074047 C126.312737,140.932833 128.670085,162.46328 141.321187,194.208903 L137.392274,193.816012 C125.998424,160.734558 123.483919,143.761651 124.34828,124.66713 C125.134063,105.572609 131.341746,90.8784712 137.470852,78.3059471 C139.042417,75.1628161 142.657018,69.2694455 144.228583,66.283471 C148.786123,57.4041259 151.850676,52.7680076 154.443759,44.6744453 C158.215516,33.3591736 157.429734,28.0158509 156.958264,22.6725282 C159.86566,41.9242056 148.786123,58.6613783 140.456826,75.712864 C132.745651,90.0358363 128.190777,105.843929 127.098519,122.074047 L127.177098,122.074047 Z" fill="url(#radialGradient-5)"></path>
+ <path d="M88.6737428,188.551267 C90.2453083,192.008712 91.581139,194.83753 92.5240783,199.159335 L89.1452124,199.945117 C87.8093818,194.916108 86.7878642,191.301507 84.8234073,186.979702 C73.3509791,160.027354 54.9636627,146.118999 40.0337903,135.903823 C58.1067937,145.647529 76.7298449,160.970293 88.6737428,188.551267 Z" fill="url(#radialGradient-6)"></path>
+ <path d="M92.6812348,202.616779 C98.9674969,232.083632 91.8954521,269.565469 71.0722091,306.025789 C88.5165862,269.879782 97.00304,235.226763 89.9309952,203.088248 L92.6812348,202.5382 L92.6812348,202.616779 Z" fill="url(#radialGradient-7)"></path>
+ <path d="M164.658935,199.866539 C198.840485,212.674798 212.041635,240.727242 221.86392,264.222147 C209.684287,239.705725 192.789958,212.59622 163.401683,202.5382 C141.085452,194.83753 122.226666,195.780469 89.9309952,203.088248 L89.2237907,199.945117 C123.483919,192.08729 141.399766,191.144351 164.658935,199.945117 L164.658935,199.866539 Z" fill="url(#radialGradient-8)"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/postgresql.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/postgresql.svg
new file mode 100644
index 0000000000..0bdb3e3e7c
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/postgresql.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<svg width="256px" height="264px" viewBox="0 0 256 264" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M255.007926,158.085617 C253.473109,153.437413 249.452194,150.199279 244.251788,149.42182 C241.799982,149.055852 238.991667,149.211935 235.668988,149.897164 C229.877358,151.092028 225.580342,151.546679 222.44449,151.635363 C234.280794,131.650217 243.905921,108.859714 249.446873,87.4065589 C258.406282,52.7182633 253.61855,36.9154365 248.023797,29.7669469 C233.217182,10.8477783 211.614448,0.683454965 185.55152,0.371879908 C171.649478,0.202198614 159.443658,2.94725173 153.077358,4.92075751 C147.149155,3.87547344 140.774577,3.29134411 134.08606,3.18315012 C121.550337,2.9833164 110.473164,5.71595381 101.008259,11.332582 C95.7670577,9.56127483 87.3580785,7.06335335 77.6460416,5.46882217 C54.8035104,1.71868822 36.3939769,4.64110855 22.9282587,14.153903 C6.62230023,25.6721293 -0.937090069,45.6838799 0.461154734,73.6339954 C0.904572748,82.5082679 5.86908083,109.507695 13.6850624,135.114199 C18.1771824,149.831538 22.9672794,162.053912 27.9223279,171.443732 C34.9490254,184.758688 42.4676212,192.600092 50.9085266,195.415501 C55.6400924,196.992296 64.2358984,198.09552 73.2774873,190.566873 C74.4232794,191.953885 75.9515935,193.33321 77.9812656,194.613801 C80.5578199,196.239076 83.7090439,197.566965 86.8555381,198.353885 C98.1969885,201.189395 108.820102,200.479926 117.882975,196.506309 C117.93855,198.117986 117.981709,199.658125 118.018365,200.987788 C118.07867,203.145164 118.137792,205.259972 118.217016,207.237617 C118.753848,220.612286 119.663741,231.011326 122.359723,238.286928 C122.507529,238.687778 122.706771,239.29733 122.917247,239.943538 C124.261691,244.062005 126.511298,250.955677 132.232573,256.355326 C138.158411,261.947714 145.325229,263.663446 151.888998,263.662855 C155.180933,263.662855 158.322106,263.231261 161.076619,262.640628 C170.897441,260.536462 182.050291,257.329663 190.118134,245.84218 C197.745515,234.981986 201.453672,218.625182 202.124711,192.851363 C202.211621,192.122975 202.292028,191.427104 202.369478,190.763751 C202.421506,190.316194 202.474716,189.858587 202.528517,189.402162 L204.325838,189.560018 L204.788767,189.591353 C214.791095,190.047187 227.021155,187.925875 234.532065,184.437062 C240.467363,181.68255 259.485857,171.642383 255.007926,158.085617" fill="#000000"></path>
+ <path d="M237.905589,160.722476 C208.165838,166.857016 206.121386,156.78788 206.121386,156.78788 C237.521885,110.194697 250.64824,51.0516028 239.320388,36.5766651 C208.417109,-2.90823095 154.921977,15.7655797 154.029229,16.2503834 L153.741894,16.3018199 C147.866309,15.0821247 141.290716,14.3555104 133.900416,14.2349007 C120.443566,14.0143741 110.236083,17.7627344 102.490457,23.636545 C102.490457,23.636545 7.06039723,-15.6768961 11.4987159,73.0806097 C12.4429007,91.9631224 38.5625866,215.954032 69.7171363,178.502947 C81.1041109,164.808425 92.1061986,153.229303 92.1061986,153.229303 C97.5708822,156.859418 104.112776,158.711132 110.970975,158.046005 L111.503667,157.593718 C111.338125,159.294079 111.413801,160.957192 111.717099,162.925968 C103.691233,171.893062 106.049626,173.467492 90.0055797,176.770069 C73.7711594,180.115806 83.308194,186.072388 89.5349654,187.629081 C97.0837136,189.516859 114.54788,192.190965 126.34812,175.672166 L125.877506,177.556988 C129.022226,180.075603 131.230448,193.940397 130.860342,206.508637 C130.490236,219.077469 130.243104,227.706383 132.720924,234.446337 C135.198744,241.186291 137.668286,256.351187 158.759612,251.831871 C176.383409,248.055132 185.516046,238.268009 186.786587,221.94254 C187.688203,210.336222 189.728517,212.051954 189.857404,201.675381 L191.493912,196.762901 C193.381099,181.029838 191.793663,175.95418 202.651492,178.314938 L205.290125,178.546697 C213.2817,178.9103 223.741044,177.261376 229.879723,174.408129 C243.098309,168.273589 250.93794,158.031224 237.904406,160.722476 L237.905589,160.722476" fill="#336791"></path>
+ <path d="M108.076342,81.5250624 C105.396915,81.152 102.969349,81.4972748 101.741376,82.426679 C101.050236,82.9499122 100.836804,83.5559169 100.779455,83.973321 C100.625145,85.0783187 101.399649,86.2997875 101.874993,86.9300323 C103.220619,88.7137552 105.18703,89.9399538 107.133339,90.2101432 C107.415353,90.249164 107.695594,90.2680831 107.974651,90.2680831 C111.220471,90.2680831 114.170679,87.7411917 114.430818,85.8758799 C114.755991,83.5399538 111.36473,81.9826697 108.076342,81.5250624" fill="#FFFFFF"></path>
+ <path d="M196.860453,81.5989654 L196.859861,81.5989654 C196.604453,79.7679446 193.345626,79.2458938 190.253524,79.6757136 C187.166152,80.1061247 184.171603,81.4996397 184.421691,83.3347991 C184.622707,84.7620139 187.19867,87.198448 190.249386,87.1978568 C190.506568,87.1978568 190.766707,87.1807113 191.028619,87.1440554 C193.064794,86.8620416 194.558818,85.5690346 195.268286,84.8235012 C196.349635,83.688351 196.974559,82.4219492 196.860453,81.5989654" fill="#FFFFFF"></path>
+ <path d="M247.802088,160.025423 C246.66812,156.596323 243.018494,155.492508 236.954309,156.745312 C218.949173,160.461155 212.501284,157.886965 210.38352,156.327908 C224.378975,135.007187 235.89188,109.236323 242.102688,85.1906513 C245.04521,73.8007206 246.670485,63.2231316 246.802919,54.601903 C246.949543,45.1375889 245.338457,38.1842032 242.014005,33.9362587 C228.611547,16.8108637 208.942115,7.62501617 185.131751,7.37256351 C168.763122,7.18869284 154.93321,11.3781062 152.252009,12.5558245 C146.60582,11.1516674 140.450587,10.2896628 133.750245,10.1796952 C121.461654,9.98104388 110.840314,12.9229746 102.045857,18.9191686 C98.2259584,17.4978661 88.3536998,14.10897 76.2814965,12.1644342 C55.4089238,8.80332564 38.8233164,11.3497275 26.9870115,19.7350577 C12.8638522,29.740933 6.34383372,47.626642 7.60727945,72.8943741 C8.03236952,81.3961755 12.8756767,107.547788 20.5202032,132.593219 C30.5822448,165.556915 41.5192979,184.218309 53.0280647,188.056536 C54.374873,188.505866 55.9286097,188.820397 57.6407945,188.820397 C61.8390762,188.820397 66.9856813,186.927889 72.3409885,180.490051 C81.2359538,169.788896 89.5408776,160.821801 92.6022356,157.563566 C97.1262818,159.992314 102.09552,161.347991 107.179455,161.483972 C107.188323,161.616998 107.201921,161.750023 107.213746,161.882457 C106.193885,163.092102 105.357303,164.152166 104.644286,165.05733 C101.122365,169.528166 100.389247,170.458753 89.0519353,172.793497 C85.8273995,173.458624 77.2611547,175.224018 77.1364065,181.227898 C76.9998337,187.787529 87.2605266,190.542633 88.4299677,190.834697 C92.5040924,191.854559 96.4286374,192.357691 100.171677,192.357691 C109.275344,192.357099 117.285838,189.365506 123.688203,183.576831 C123.490734,206.962697 124.466254,230.006836 127.273977,237.028212 C129.573247,242.775501 135.191649,256.822984 152.93842,256.821801 C155.54158,256.821801 158.408425,256.519095 161.561423,255.843326 C180.082106,251.872074 188.124527,243.686577 191.236139,225.640055 C192.901025,215.995418 195.758411,192.963695 197.101672,180.610069 C199.937774,181.49454 203.589173,181.899529 207.536185,181.898938 C215.768388,181.898938 225.266993,180.150097 231.224166,177.384942 C237.91564,174.277469 249.991982,166.650679 247.802088,160.025423 L247.802088,160.025423 Z M203.696185,76.5445912 C203.634697,80.1918522 203.132748,83.5027067 202.600647,86.9590023 C202.028342,90.6760277 201.435935,94.5189838 201.286947,99.1843326 C201.139732,103.724342 201.706716,108.444674 202.255372,113.008924 C203.363326,122.228471 204.500249,131.720573 200.098587,141.086744 C199.41454,139.871778 198.754143,138.546254 198.14873,137.078245 C197.601848,135.752129 196.414079,133.621949 194.769885,130.673515 C188.370476,119.197857 173.385312,92.3243603 181.056443,81.3583372 C183.340933,78.0935982 189.139658,74.7384018 203.696185,76.5445912 L203.696185,76.5445912 Z M186.052286,14.7581339 C207.386014,15.2293395 224.261321,23.2102725 236.209958,38.4780416 C245.373931,50.1890069 235.282919,103.476028 206.069949,149.446651 C205.781432,149.080092 205.487594,148.709986 205.183704,148.33042 C205.062503,148.178476 204.938938,148.024166 204.814189,147.868083 C212.362938,135.400942 210.886651,123.066236 209.572952,112.129774 C209.033164,107.641792 208.523529,103.402716 208.653007,99.4214134 C208.787215,95.2000739 209.34533,91.5811917 209.884527,88.0811455 C210.548471,83.7675751 211.223058,79.3050162 211.036822,74.0437136 C211.17576,73.4921016 211.231926,72.8399815 211.159206,72.0660693 C210.683861,67.0205635 204.924157,51.9224758 193.18363,38.2551501 C186.762346,30.7808961 177.396767,22.4156674 164.609774,16.7736166 C170.109931,15.6337367 177.631483,14.5707159 186.052286,14.7581339 L186.052286,14.7581339 Z M66.6741062,175.777995 C60.7742818,182.871501 56.6995658,181.512277 55.3598522,181.065903 C46.6292471,178.153533 36.499806,159.702023 27.568776,130.441755 C19.8408868,105.123769 15.3245266,79.6650716 14.9674273,72.5260416 C13.8387806,49.9483788 19.3117413,34.2129515 31.2349561,25.7572656 C50.6389284,11.9965266 82.5413764,20.2328684 95.3602956,24.4104573 C95.1758337,24.591963 94.9842771,24.7622356 94.8015889,24.9466975 C73.7664296,46.1911501 74.2654226,82.4875751 74.3168591,84.7058476 C74.3150855,85.56194 74.3866236,86.7739492 74.485358,88.4412009 C74.8471871,94.5455889 75.5205912,105.907732 73.7214965,118.775132 C72.0489238,130.732046 75.7346143,142.435326 83.8320185,150.883917 C84.6703741,151.758337 85.5453857,152.579547 86.4493672,153.352277 C82.8446744,157.212379 75.0115473,165.74788 66.6741062,175.777995 L66.6741062,175.777995 Z M89.1530346,145.78461 C82.6265127,138.975483 79.6627067,129.503483 81.020157,119.795584 C82.920351,106.202753 82.2185681,94.3646744 81.8419584,88.0048776 C81.7893395,87.1150855 81.7426328,86.335261 81.7148453,85.7197968 C84.7880277,82.9954365 99.0288406,75.3645081 109.184296,77.6915658 C113.819492,78.7534042 116.642587,81.9087667 117.816758,87.3373857 C123.893358,115.440037 118.621413,127.153367 114.385293,136.565654 C113.512055,138.504868 112.687298,140.337663 111.982559,142.234309 L111.436859,143.699954 C110.054577,147.406337 108.768665,150.851991 107.971695,154.124416 C101.034273,154.103132 94.2848591,151.139917 89.1530346,145.78461 L89.1530346,145.78461 Z M90.2178291,183.685025 C88.1922956,183.178938 86.3701432,182.299788 85.3012102,181.570808 C86.1939584,181.150448 87.7831686,180.579326 90.5388637,180.011751 C103.876286,177.265515 105.93552,175.328074 110.433552,169.61685 C111.465238,168.30788 112.634088,166.823316 114.252859,165.015353 C114.25345,165.014171 114.254042,165.01358 114.254633,165.012988 C116.666236,162.31346 117.768868,162.771067 119.768979,163.600554 C121.390115,164.271594 122.968684,166.303039 123.608979,168.539048 C123.911686,169.594975 124.252231,171.599815 123.138956,173.158873 C113.742633,186.31479 100.051067,186.1457 90.2178291,183.685025 L90.2178291,183.685025 Z M160.016554,248.637487 C143.700545,252.133395 137.923695,243.80837 134.116804,234.291436 C131.659677,228.146845 130.452397,200.440314 131.309081,169.84388 C131.320314,169.436527 131.262374,169.043363 131.150042,168.673848 C131.05249,167.96024 130.902319,167.238356 130.694208,166.511741 C129.419529,162.059824 126.315012,158.335704 122.5903,156.792018 C121.110467,156.178919 118.393792,155.05382 115.129644,155.888628 C115.826106,153.0206 117.033386,149.782467 118.341764,146.275326 L118.891012,144.79963 C119.509432,143.136517 120.284527,141.413691 121.105145,139.590356 C125.538143,129.741746 131.609423,116.25297 125.020231,85.7795104 C122.551871,74.3659307 114.310208,68.7924619 101.815871,70.0866513 C94.3250624,70.861746 87.472776,73.8840831 84.0549099,75.6169607 C83.3200185,75.9894319 82.6477968,76.3488961 82.0199169,76.6994919 C82.9735612,65.1990023 86.578254,43.707418 100.060527,30.1098568 C108.54873,21.548933 119.854115,17.3210901 133.628453,17.5487113 C160.768591,17.9933118 178.172453,31.9213672 187.994457,43.5276859 C196.457829,53.5294226 201.040998,63.6038799 202.870245,69.0372286 C189.115418,67.6389838 179.76048,70.3544758 175.017681,77.1340416 C164.700822,91.8815335 180.662097,120.506236 188.333229,134.262836 C189.739751,136.784406 190.954125,138.963067 191.336055,139.888924 C193.833977,145.943058 197.067972,149.984665 199.429321,152.935464 C200.152979,153.839446 200.855353,154.716231 201.389229,155.481866 C197.223464,156.683233 189.740342,159.457848 190.422023,173.328554 C189.872185,180.289035 185.960647,212.874938 183.974134,224.387843 C181.351464,239.597672 175.754346,245.263372 160.016554,248.637487 L160.016554,248.637487 Z M228.120831,170.700564 C223.861062,172.678208 216.732083,174.161589 209.959612,174.479667 C202.479446,174.830263 198.671963,173.641903 197.776259,172.91115 C197.355307,164.267455 200.573339,163.364065 203.978199,162.408055 C204.513256,162.257293 205.035307,162.111261 205.53903,161.935076 C205.852379,162.189894 206.195289,162.442938 206.570716,162.690661 C212.582873,166.658956 223.306494,167.087002 238.444785,163.962383 C238.50036,163.950559 238.555935,163.939917 238.610919,163.928684 C236.569423,165.837746 233.075289,168.400111 228.120831,170.700564 L228.120831,170.700564 Z" fill="#FFFFFF"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/tool-brands/stripe.svg b/jarvis/ui/web/frontend/src/assets/tool-brands/stripe.svg
new file mode 100644
index 0000000000..8ebadf74d3
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/tool-brands/stripe.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Stripe</title><path d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>
\ No newline at end of file
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
index 83a8d726bd..7814f4c966 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
@@ -113,8 +113,8 @@ export function AgentTimeline({
data-message-id={item.id}
>
<div className="jarvis-user-bubble max-w-[85%] rounded-lg px-4 py-3 text-reading">
- <ToolChoiceChips items={item.toolChoices ?? []} />
{item.text && <div className="whitespace-pre-wrap">{item.text}</div>}
+ <ToolChoiceChips items={item.toolChoices ?? []} />
{item.attachments.length > 0 && (
<div
data-testid="agent-message-attachments"
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx
index c854ec6e80..fffbd61767 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/ComposerAddMenu.tsx
@@ -5,6 +5,7 @@ import { useT } from "@/i18n";
import { cn } from "@/lib/utils";
import { BrandedSelect } from "@/components/ui/select";
import { ToolChoiceIcon } from "./ToolChoiceChips";
+import { CATEGORY_ICONS, toolIdentityStyle } from "./toolIdentity";
import {
searchTools,
TOOL_CATEGORIES,
@@ -148,7 +149,7 @@ export function ComposerAddMenu({
aria-haspopup="dialog"
aria-label={t("chat_tools.add")}
onClick={() => setOpen(!open)}
- className="inline-flex h-8 items-center gap-1 rounded-lg px-2 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground disabled:opacity-50"
+ className="inline-flex h-8 items-center gap-1.5 rounded-lg px-2 text-xs font-medium text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50"
>
<Plus className="h-4 w-4" />
{t("chat_tools.add")}
@@ -210,7 +211,7 @@ export function ComposerAddMenu({
}
}}
>
- <div className="flex items-center gap-2 border-b border-border px-3 py-2">
+ <div className="mx-3 mb-1 mt-3 flex items-center gap-2 rounded-xl border border-border bg-background/50 px-3 py-2 focus-within:border-border-strong">
<Search className="h-4 w-4 text-muted-foreground" />
<input
ref={input}
@@ -219,7 +220,7 @@ export function ComposerAddMenu({
maxLength={200}
aria-label={t("chat_tools.search")}
placeholder={t("chat_tools.search")}
- className="min-w-0 flex-1 bg-transparent py-1 text-sm outline-none"
+ className="min-w-0 flex-1 bg-transparent py-0.5 text-sm outline-none placeholder:text-muted-foreground"
/>
<button
type="button"
@@ -237,13 +238,21 @@ export function ComposerAddMenu({
onValueChange={setCategory}
options={[
{ value: "", label: t("chat_tools.all") },
- ...TOOL_CATEGORIES.map((c) => ({ value: c, label: t(`chat_tools.${c}`) })),
+ ...TOOL_CATEGORIES.map((c) => {
+ const Icon = CATEGORY_ICONS[c];
+ return {
+ value: c,
+ label: t(`chat_tools.${c}`),
+ icon: <Icon className="h-3.5 w-3.5" aria-hidden />,
+ };
+ }),
]}
className="w-auto min-w-0 max-w-[60%] shrink-0 rounded-lg border border-border-strong bg-popover px-2 py-1 text-xs"
/>
<span
className="min-w-0 flex-1 truncate text-right text-xs text-muted-foreground"
role="status"
+ title={result ? t(`chat_tools.${result.mode}`) : undefined}
>
{loading ? (
<Loader2
@@ -297,7 +306,7 @@ export function ComposerAddMenu({
)}
{[...groups].map(([key, rows]) => (
<div key={key}>
- <div className="px-3 pb-1 pt-3 text-xs font-medium text-muted-foreground">
+ <div className="px-3 pb-1 pt-3 text-xs font-medium tracking-wide text-muted-foreground">
{t(`chat_tools.${rows[0].category}`)}
{operationGroups.has(key) ? ` · ${rows[0].group}` : ""}
</div>
@@ -309,6 +318,7 @@ export function ComposerAddMenu({
type="button"
data-tool-row
aria-pressed={picked}
+ style={toolIdentityStyle(row)}
disabled={row.available && !picked && selected.length >= 24}
onClick={() => {
if (!row.available) {
@@ -321,14 +331,15 @@ export function ComposerAddMenu({
);
}}
className={cn(
- "flex w-full items-center gap-3 rounded-lg px-3 py-2 text-left transition-colors hover:bg-secondary focus-visible:bg-secondary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:opacity-50",
- picked && "bg-secondary",
- !row.available && "text-muted-foreground",
+ "tool-identity tool-picker-row flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current disabled:opacity-50",
+ !row.available && "opacity-60",
)}
>
- <ToolChoiceIcon row={row} />
+ <ToolChoiceIcon row={row} size={22} />
<span className="min-w-0 flex-1">
- <span className="block truncate text-sm font-medium">{row.label}</span>
+ <span className="tool-picker-name block truncate text-sm font-medium">
+ {row.label}
+ </span>
<span
className="block truncate text-xs text-muted-foreground"
title={row.description}
@@ -337,7 +348,7 @@ export function ComposerAddMenu({
</span>
</span>
{picked ? (
- <Check className="h-4 w-4 shrink-0 text-primary" />
+ <Check className="h-4 w-4 shrink-0" />
) : !row.available ? (
<span className="shrink-0 text-xs">{t("chat_tools.connect")}</span>
) : (
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ToolChoiceChips.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ToolChoiceChips.tsx
index a9e79dd92f..17568e0284 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/ToolChoiceChips.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/ToolChoiceChips.tsx
@@ -1,43 +1,35 @@
-import { Brain, Globe, Paperclip, Plug, Sparkles, Terminal, Wrench, X } from "lucide-react";
-import { McpLogo } from "@/components/extensions/McpLogo";
+import { useState, type CSSProperties } from "react";
+import { X } from "lucide-react";
import { useT } from "@/i18n";
import type { ToolChoice } from "./toolChoices";
+import { toolIdentity, toolIdentityStyle } from "./toolIdentity";
+import "./toolIdentity.css";
-// Reuse the original offline brand marks and their existing provenance ledger.
-const logos = import.meta.glob("../../assets/brands/*.svg", {
- eager: true,
- query: "?url",
- import: "default",
-}) as Record<string, string>;
-
-export function ToolChoiceIcon({ row }: { row: ToolChoice }) {
- const brand = row.brand || (row.category === "mcp" ? row.group.replace(/[-_]mcp$/, "") : "");
- const logo = logos[`../../assets/brands/${brand}.svg`];
- if (logo)
- return (
- <img
- src={logo}
- alt=""
- className="h-6 w-6 shrink-0 rounded bg-foreground/80 p-1 object-contain dark:bg-secondary"
- />
- );
- const Icon =
- row.category === "mcp"
- ? McpLogo
- : row.category === "memory"
- ? Brain
- : row.category === "skills"
- ? Sparkles
- : row.category === "plugins"
- ? Plug
- : row.category === "web"
- ? Globe
- : row.category === "files"
- ? Paperclip
- : row.category === "cli"
- ? Terminal
- : Wrench;
- return <Icon aria-hidden className="h-5 w-5 shrink-0 text-muted-foreground" />;
+export function ToolChoiceIcon({ row, size = 20 }: { row: ToolChoice; size?: number }) {
+ const { logo, mark, Glyph } = toolIdentity(row);
+ const [failedLogo, setFailedLogo] = useState<string | null>(null);
+ return (
+ <span
+ className="tool-choice-icon"
+ data-plate={mark === "plate"}
+ style={{ width: size, height: size }}
+ aria-hidden
+ >
+ {logo && failedLogo !== logo ? (
+ mark === "mono" ? (
+ <span
+ data-logo={logo}
+ className="tool-choice-mask"
+ style={{ "--tool-logo": `url("${logo}")` } as CSSProperties}
+ />
+ ) : (
+ <img src={logo} alt="" onError={() => setFailedLogo(logo)} />
+ )
+ ) : (
+ <Glyph width={size} height={size} strokeWidth={1.65} />
+ )}
+ </span>
+ );
}
export function ToolChoiceChips({
@@ -50,22 +42,31 @@ export function ToolChoiceChips({
const t = useT();
if (!items.length) return null;
return (
- <div className="flex flex-wrap gap-1.5" data-testid="tool-choice-chips">
+ <div
+ className="tool-choice-list"
+ data-editable={Boolean(onRemove)}
+ data-testid="tool-choice-chips"
+ >
{items.map((row) => (
<span
key={row.id}
- className="inline-flex max-w-full items-center gap-1.5 rounded-lg border border-border-strong bg-secondary px-2 py-1 text-xs text-foreground"
+ className="tool-identity tool-choice-chip"
+ style={toolIdentityStyle(row)}
+ data-brand={toolIdentity(row).key ?? row.category}
+ data-tool-id={row.id}
+ data-editable={Boolean(onRemove)}
+ title={row.description || row.label}
>
- <ToolChoiceIcon row={row} />
+ <ToolChoiceIcon row={row} size={16} />
<span className="truncate">{row.label}</span>
{onRemove && (
<button
type="button"
onClick={() => onRemove(row.id)}
aria-label={`${t("chat_tools.remove")} ${row.label}`}
- className="rounded p-0.5 hover:bg-muted focus-visible:ring-2 focus-visible:ring-primary"
+ className="ml-0.5 inline-flex h-5 w-5 items-center justify-center rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-current"
>
- <X className="h-3.5 w-3.5" />
+ <X className="h-3 w-3" aria-hidden />
</button>
)}
</span>
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.css b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.css
new file mode 100644
index 0000000000..f7cfe7552e
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.css
@@ -0,0 +1,87 @@
+.tool-identity {
+ --tool-ink: var(--tool-ink-light);
+ --tool-wash: var(--tool-wash-light);
+ color: var(--tool-ink);
+}
+.dark .tool-identity {
+ --tool-ink: var(--tool-ink-dark);
+ --tool-wash: var(--tool-wash-dark);
+}
+.tool-choice-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px 12px;
+}
+.tool-choice-list[data-editable="false"] {
+ margin-top: 8px;
+}
+.tool-choice-list[data-editable="false"]:first-child {
+ margin-top: 0;
+}
+.tool-choice-chip {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ max-width: 100%;
+ min-height: 24px;
+ font-size: 13px;
+ font-weight: 600;
+ line-height: 20px;
+}
+.tool-choice-chip[data-editable="true"] {
+ padding: 3px 7px;
+ border-radius: 8px;
+ background: var(--tool-wash);
+ box-shadow: inset 0 0 0 1px var(--tool-wash);
+}
+.tool-choice-chip button {
+ color: inherit;
+ opacity: 0.65;
+}
+.tool-choice-chip button:hover,
+.tool-choice-chip button:focus-visible {
+ opacity: 1;
+}
+.tool-choice-icon {
+ display: inline-flex;
+ flex: none;
+ align-items: center;
+ justify-content: center;
+}
+.tool-choice-icon img {
+ display: block;
+ width: 100%;
+ height: 100%;
+ object-fit: contain;
+}
+.tool-choice-icon[data-plate="true"] {
+ border-radius: 3px;
+ background: hsl(var(--foreground));
+ padding: 1px;
+}
+.dark .tool-choice-icon[data-plate="true"] {
+ background: hsl(var(--secondary));
+}
+.tool-choice-mask {
+ display: block;
+ width: 100%;
+ height: 100%;
+ background: currentColor;
+ mask: var(--tool-logo) center / contain no-repeat;
+ -webkit-mask: var(--tool-logo) center / contain no-repeat;
+}
+.tool-picker-row[aria-pressed="true"] {
+ background: var(--tool-wash);
+}
+.tool-picker-row:hover {
+ background: hsl(var(--secondary));
+}
+.tool-picker-row[aria-pressed="true"]:hover {
+ background: var(--tool-wash);
+}
+.tool-picker-row .tool-picker-name {
+ color: hsl(var(--foreground));
+}
+.tool-picker-row[aria-pressed="true"] .tool-picker-name {
+ color: var(--tool-ink);
+}
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.test.tsx
new file mode 100644
index 0000000000..533e61d72a
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.test.tsx
@@ -0,0 +1,134 @@
+import seedCatalog from "../../../../../../marketplace/seed_catalog.json";
+import { afterEach, describe, expect, it } from "vitest";
+import { cleanup, fireEvent, render, screen } from "@testing-library/react";
+import { toolIdentity } from "./toolIdentity";
+import { ToolChoiceChips, ToolChoiceIcon } from "./ToolChoiceChips";
+import type { ToolChoice } from "./toolChoices";
+import { EMPTY_TIMELINE, reduceEvents } from "./reduce";
+import { AgentTimeline } from "./AgentTimeline";
+
+const row = (over: Partial<ToolChoice> = {}): ToolChoice => ({
+ id: "plugin:gmail",
+ label: "Gmail",
+ category: "plugins",
+ group: "Gmail",
+ brand: "gmail",
+ description: "Read your inbox",
+ available: true,
+ tool_names: ["gmail"],
+ skill: "",
+ ...over,
+});
+afterEach(cleanup);
+
+describe("tool visual identities", () => {
+ it.each([
+ ["mcp:github-mcp", "mcp", "github"],
+ ["tool:mcp__github__search", "mcp", "github"],
+ ["skill:google-workspace:gws-gmail-read", "skills", "gmail"],
+ ["skill:google-drive:sheets", "skills", "google_drive"],
+ ["tool:cli_gh", "cli", "github"],
+ ["tool:cli_codex", "cli", "openai"],
+ ["skill:figma:design", "skills", "figma"],
+ ["mcp:postgres-server", "mcp", "postgresql"],
+ ])("resolves %s to the original %s identity", (id, category, brand) => {
+ const identity = toolIdentity(
+ row({ id, category: category as ToolChoice["category"], brand: "", group: "", label: "" }),
+ );
+ expect(identity.key).toBe(brand);
+ expect(identity.logo).toBeTruthy();
+ });
+
+ it("has a local mark for every shipped marketplace connector", () => {
+ for (const plugin of seedCatalog.plugins) {
+ const identity = toolIdentity(
+ row({ id: `plugin:${plugin.id}`, brand: plugin.id, label: plugin.display_name }),
+ );
+ expect(identity.logo, plugin.id).toBeTruthy();
+ expect(identity.logo).not.toMatch(/^https?:/);
+ }
+ });
+
+ it.each(["my-github-helper", "drive-jarvis-cli", "daily-brief"])(
+ "does not invent a brand for %s",
+ (id) => {
+ const identity = toolIdentity(
+ row({
+ id: `skill:${id}`,
+ label: id,
+ brand: "",
+ group: "skills",
+ description: "Work with Gmail and GitHub",
+ }),
+ );
+ expect(identity.logo).toBeUndefined();
+ expect(identity.Glyph).toBeTruthy();
+ },
+ );
+
+ it("uses distinct glyphs for unbranded documents and memory", () => {
+ const pdf = toolIdentity(
+ row({ id: "skill:pdf", label: "PDF", brand: "", group: "skills", category: "skills" }),
+ );
+ const memory = toolIdentity(
+ row({
+ id: "tool:wiki-recall",
+ label: "Recall",
+ brand: "",
+ group: "memory",
+ category: "memory",
+ }),
+ );
+ expect(pdf.Glyph).not.toBe(memory.Glyph);
+ });
+
+ it("preserves brand identity in a reloaded user message below the text", () => {
+ const saved = JSON.parse(JSON.stringify(row()));
+ const { items } = reduceEvents(EMPTY_TIMELINE, [
+ {
+ seq: 1,
+ ts_ms: 1000,
+ kind: "user_message",
+ payload: { text: "Find that email", tool_choices: [saved] },
+ },
+ ]);
+ render(
+ <AgentTimeline
+ items={items}
+ assistantName="Jarvis"
+ providerLabel={(s) => s}
+ onDecide={() => {}}
+ />,
+ );
+ const chips = screen.getByTestId("tool-choice-chips");
+ expect(chips.dataset.editable).toBe("false");
+ expect(chips.querySelector('[data-brand="gmail"]')).not.toBeNull();
+ expect(chips.previousElementSibling?.textContent).toBe("Find that email");
+ expect(chips.querySelector("button")).toBeNull();
+ });
+
+ it("uses the same ink for composer and sent tags, with removal only in the composer", () => {
+ const items = [row(), row({ id: "plugin:github", brand: "github", label: "GitHub" })];
+ const removed: string[] = [];
+ const { container } = render(
+ <>
+ <ToolChoiceChips items={items} onRemove={(id) => removed.push(id)} />
+ <ToolChoiceChips items={items} />
+ </>,
+ );
+ const gmail = container.querySelectorAll<HTMLElement>('[data-brand="gmail"]');
+ expect(gmail[0].style.cssText).toBe(gmail[1].style.cssText);
+ expect(gmail[0].style.getPropertyValue("--tool-ink-light")).toBe("#b3261e");
+ const github = container.querySelectorAll<HTMLElement>('[data-brand="github"]');
+ expect(github[0].querySelector(".tool-choice-mask")).not.toBeNull();
+ fireEvent.click(gmail[0].querySelector("button")!);
+ expect(removed).toEqual(["plugin:gmail"]);
+ });
+
+ it("falls back to a meaningful symbol when a colour logo fails", () => {
+ const { container } = render(<ToolChoiceIcon row={row()} />);
+ fireEvent.error(container.querySelector("img")!);
+ expect(container.querySelector("img")).toBeNull();
+ expect(container.querySelector("svg")).not.toBeNull();
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.ts b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.ts
new file mode 100644
index 0000000000..504a650971
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentchat/toolIdentity.ts
@@ -0,0 +1,224 @@
+import type { CSSProperties } from "react";
+import {
+ AppWindow,
+ BookOpen,
+ Compass,
+ Keyboard,
+ Brain,
+ CalendarClock,
+ Code2,
+ Database,
+ FileText,
+ FolderOpen,
+ Globe,
+ Image,
+ Mail,
+ Monitor,
+ MousePointer2,
+ PenLine,
+ Plug,
+ Presentation,
+ Search,
+ ShieldCheck,
+ Sparkles,
+ Terminal,
+ Users,
+ Workflow,
+ Wrench,
+} from "lucide-react";
+import { McpLogo } from "@/components/extensions/McpLogo";
+import type { ToolCategory, ToolChoice } from "./toolChoices";
+
+type Palette = readonly [string, string];
+type Mark = "colour" | "mono" | "plate";
+interface Brand {
+ palette: Palette;
+ aliases?: string[];
+ mark?: Mark;
+ asset?: string;
+}
+
+// Ink pairs retain each brand's hue with contrast on paper and charcoal.
+// Original colour SVGs stay intact; monochrome marks use the text ink.
+const NEUTRAL: Palette = ["#24292e", "#e6edf3"];
+const BLUE: Palette = ["#1558b0", "#8ab4f8"];
+const VIOLET: Palette = ["#6840bb", "#c4abff"];
+const GREEN: Palette = ["#167344", "#79dca4"];
+const BRANDS: Record<string, Brand> = {
+ gmail: { palette: ["#b3261e", "#ff938a"], aliases: ["google-mail", "gws-gmail"] },
+ github: { palette: NEUTRAL, mark: "mono", aliases: ["gh"] },
+ google_drive: { palette: GREEN, aliases: ["google-drive", "gdrive", "gws-drive"] },
+ google_calendar: { palette: BLUE, aliases: ["google-calendar", "gws-calendar"] },
+ airtable: { palette: ["#96650b", "#efc561"] },
+ asana: { palette: ["#be3652", "#ff99ac"] },
+ cal_com: { palette: NEUTRAL, mark: "mono", aliases: ["cal.com", "cal-com"] },
+ canva: { palette: ["#087f88", "#69d6dd"] },
+ clickup: { palette: VIOLET },
+ discord: { palette: ["#454abe", "#a8acff"] },
+ dropbox: { palette: BLUE },
+ higgsfield: { palette: ["#50700a", "#ccf052"] },
+ home_assistant: { palette: BLUE, aliases: ["home-assistant", "homeassistant"] },
+ linear: { palette: VIOLET },
+ notion: { palette: NEUTRAL },
+ slack: { palette: ["#8d367d", "#e6a0d6"] },
+ spotify: { palette: GREEN },
+ supabase: { palette: GREEN },
+ telegram: { palette: BLUE },
+ todoist: { palette: ["#b12d27", "#ff9c92"] },
+ vercel: { palette: NEUTRAL, mark: "mono" },
+ youtube_music: { palette: ["#bb2424", "#ff9494"], aliases: ["youtube-music", "ytmusic"] },
+ stripe: { palette: VIOLET, mark: "mono" },
+ cloudflare: { palette: ["#a84c14", "#ffb276"], mark: "mono", aliases: ["wrangler"] },
+ figma: { palette: ["#9c3a28", "#ffa18e"], mark: "mono" },
+ gitlab: { palette: ["#a8441a", "#ffad83"], mark: "mono" },
+ docker: { palette: BLUE, mark: "mono" },
+ n8n: { palette: ["#b43351", "#f69ab1"], mark: "mono" },
+ postgresql: { palette: BLUE, aliases: ["postgres"] },
+ obsidian: { palette: VIOLET, mark: "mono" },
+ openai: { palette: NEUTRAL, mark: "mono", aliases: ["codex", "chatgpt"] },
+ openrouter: { palette: NEUTRAL, mark: "mono" },
+ claude: { palette: ["#a04f31", "#e6aa89"], aliases: ["anthropic", "claude-code"] },
+ gemini: { palette: BLUE },
+ "google-cloud": { palette: BLUE, aliases: ["gcloud", "vertex"] },
+ antigravity: { palette: BLUE, aliases: ["agy"] },
+ ollama: { palette: NEUTRAL, mark: "mono" },
+ nvidia: { palette: GREEN },
+ groq: { palette: ["#b14628", "#ffaa8e"], mark: "mono" },
+ elevenlabs: { palette: NEUTRAL, mark: "mono" },
+ cartesia: { palette: GREEN },
+ inworld: { palette: VIOLET },
+ xai: { palette: NEUTRAL, mark: "mono", aliases: ["grok", "grok-build"] },
+ cursor: { palette: NEUTRAL, mark: "mono", asset: "/agent-logos/cursor.svg" },
+ deepseek: {
+ palette: BLUE,
+ mark: "mono",
+ asset: "/agent-logos/deepseek.svg",
+ aliases: ["deepseek-harness"],
+ },
+ kimi: { palette: BLUE, mark: "plate", asset: "/agent-logos/kimi.svg" },
+ opencode: { palette: NEUTRAL, mark: "plate", asset: "/agent-logos/opencode.svg" },
+ zai: { palette: NEUTRAL, asset: "/agent-logos/zai.svg", aliases: ["glm", "z.ai"] },
+};
+
+const assets = import.meta.glob("../../assets/{brands,providers,tool-brands}/*.{svg,png}", {
+ eager: true,
+ query: "?url",
+ import: "default",
+}) as Record<string, string>;
+
+function assetFor(key: string): string | undefined {
+ return (
+ BRANDS[key]?.asset ||
+ assets[`../../assets/brands/${key}.svg`] ||
+ assets[`../../assets/tool-brands/${key}.svg`] ||
+ assets[`../../assets/providers/${key}.svg`] ||
+ assets[`../../assets/providers/${key}.png`]
+ );
+}
+
+const normalize = (value: string) => value.toLowerCase().replace(/[^a-z0-9]/g, "");
+const bundledKeys = Object.keys(assets).map((path) => path.split("/").pop()!.replace(/\.(svg|png)$/, ""));
+const aliases = [...new Set([...Object.keys(BRANDS), ...bundledKeys])]
+ .flatMap((key) =>
+ [key, ...(BRANDS[key]?.aliases ?? [])].map((alias) => ({ key, alias: alias.replace(/[_. ]/g, "-") })),
+ )
+ .sort((a, b) => b.alias.length - a.alias.length);
+
+function brandFor(value: string): string | undefined {
+ // Identity segments only: "my-github-helper" is not GitHub and
+ // "drive-jarvis" is not Drive. Descriptions never establish brand identity.
+ for (const segment of value.replace(/__/g, ":").split(/[/:]/)) {
+ const clean = segment
+ .toLowerCase()
+ .replace(/^(?:cli|mcp)[_-]/, "")
+ .replace(/[-_](?:mcp|server|cli)$/, "")
+ .replace(/[_. ]/g, "-");
+ const exact = aliases.find((entry) => normalize(entry.alias) === normalize(clean));
+ if (exact) return exact.key;
+ const action = aliases.find((entry) => clean.startsWith(entry.alias + "-"));
+ if (action) return action.key;
+ }
+ return undefined;
+}
+
+export const CATEGORY_ICONS = {
+ plugins: Plug,
+ skills: Sparkles,
+ mcp: McpLogo,
+ memory: Brain,
+ web: Globe,
+ files: FolderOpen,
+ automation: CalendarClock,
+ system: Wrench,
+ cli: Terminal,
+};
+const CATEGORY_PALETTES: Record<ToolCategory, Palette> = {
+ plugins: BLUE,
+ skills: VIOLET,
+ mcp: ["#127576", "#7ed5d0"],
+ memory: VIOLET,
+ web: BLUE,
+ files: ["#8c610c", "#e3bf78"],
+ automation: GREEN,
+ system: NEUTRAL,
+ cli: NEUTRAL,
+};
+
+const DETAIL_ICONS = [
+ [/\b(wiki|recall|knowledge)\b/, BookOpen],
+ [/\b(pdf|document|docs|word|read)\b/, FileText],
+ [/\b(slides|presentation|powerpoint)\b/, Presentation],
+ [/\b(image|design|photo|imagegen)\b/, Image],
+ [/\b(search|find|research)\b/, Search],
+ [/\b(email|mail)\b/, Mail],
+ [/\b(contact|contacts|people)\b/, Users],
+ [/\b(database|sql)\b/, Database],
+ [/\b(security|audit)\b/, ShieldCheck],
+ [/\b(code|coding|develop)\b/, Code2],
+ [/\b(write|edit)\b/, PenLine],
+ [/\b(click|mouse|pointer)\b/, MousePointer2],
+ [/\b(screen|desktop|computer)\b/, Monitor],
+ [/\b(workflow|automation)\b/, Workflow],
+ [/\b(shell|terminal)\b/, Terminal],
+ [/\b(type|hotkey|keyboard)\b/, Keyboard],
+ [/\b(app)\b/, AppWindow],
+ [/\b(navigate)\b/, Compass],
+] as const;
+
+export function toolIdentity(row: ToolChoice) {
+ const key =
+ (row.brand && brandFor(row.brand)) ||
+ [row.id, row.group, row.skill, row.label].map((s) => brandFor(s || "")).find(Boolean);
+ const brand = key ? BRANDS[key] : undefined;
+ const palette = brand?.palette ?? CATEGORY_PALETTES[row.category];
+ const words = `${row.id} ${row.skill} ${row.label}`.toLowerCase().replace(/[_:-]/g, " ");
+ const Glyph =
+ row.category === "mcp"
+ ? McpLogo
+ : (DETAIL_ICONS.find(([pattern]) => pattern.test(words))?.[1] ??
+ CATEGORY_ICONS[row.category]);
+ return {
+ key,
+ logo: key ? assetFor(key) : undefined,
+ mark: brand?.mark ?? "colour",
+ palette,
+ Glyph,
+ };
+}
+
+function wash(hex: string, opacity: number): string {
+ const channels = [1, 3, 5].map((start) => parseInt(hex.slice(start, start + 2), 16));
+ return `rgba(${channels.join(",")},${opacity})`;
+}
+
+export function toolIdentityStyle(row: ToolChoice): CSSProperties {
+ const {
+ palette: [light, dark],
+ } = toolIdentity(row);
+ return {
+ "--tool-ink-light": light,
+ "--tool-ink-dark": dark,
+ "--tool-wash-light": wash(light, 0.07),
+ "--tool-wash-dark": wash(dark, 0.09),
+ } as CSSProperties;
+}