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(clis): every CLI wears its vendor mark, and the Test Hub keeps its runs

rubenluetke10-beepea8782c066ad
diff --git a/jarvis/ui/web/frontend/src/assets/clis/LOGOS.md b/jarvis/ui/web/frontend/src/assets/clis/LOGOS.md
new file mode 100644
index 0000000000..47f28bb941
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/LOGOS.md
@@ -0,0 +1,81 @@
+# Bundled CLI marks
+
+The **original** mark of each vendor whose command-line tool the CLIs section
+lists, bundled so a row renders offline, on a locked-down network, and on a
+headless host without calling any third party at render time. Same rules and
+same gate as `../brands/LOGOS.md` and `../providers/LOGOS.md`
+(`scripts/ci/check_brand_logos.py` covers all three folders).
+
+Every mark belongs to its owner. They are used **solely to identify the vendor
+whose CLI a row drives** — nominative use — and never to imply that the owner
+endorses, sponsors or is affiliated with this project. If you own a mark listed
+here and want it removed, open an issue and it will be taken out.
+
+> A CC0 or MIT licence on an SVG settles the **copyright in the drawing**. It
+> does not grant **trademark** rights, and no entry below claims otherwise.
+
+## How a row picks a mark
+
+`CliLogo.tsx` maps a catalog CLI name to a **vendor** — the company the tool
+talks to, not the binary — and the vendor to a file here. `gcloud` and `gam`
+are both Google, but a different Google: `gcloud` draws the Cloud hexagon and
+`gam` the Google G, because that is what each tool actually administers. A CLI
+with no vendor row (`jarvisctl`, any custom CLI someone registers) draws the
+category glyph on the same tile, so adding a CLI never produces a broken image.
+
+Two render paths, chosen per file and recorded in the table — the same two the
+provider cards use:
+
+* **colour** — the vendor's full-colour icon (the Azure kite, the Kubernetes
+ helm, the Firebase flame). Drawn as an `<img>` on a neutral tile; the colours
+ are the brand and are never recoloured.
+* **mono** — a single-colour glyph whose own brand is black-on-white or
+ white-on-black (GitHub, Vercel, Stripe, Cloudflare, AWS, Railway, Render,
+ PlanetScale). Drawn as a CSS mask over the current text ink, so it follows
+ the theme by itself: near-white on the dark app, near-black on paper, from
+ one asset.
+
+## Adding one
+
+1. Take the mark from the vendor's own brand/press page, or from a
+ permissively-licensed collection that redistributes vendor originals.
+2. Prefer the **icon** variant over the wordmark — `gitlab-icon`, not `gitlab`.
+ The gate rejects anything wider than 1.45:1.
+3. Strip scripts, external references and embedded raster images; keep a
+ roughly square `viewBox`. Root-level `width`/`height`/`style` go too — the
+ tile sizes the mark.
+4. Save it as `<vendor>.svg` and add the vendor to `CLI_VENDOR_LOGOS` in
+ `CliLogo.tsx`, plus the CLI name to `CLI_VENDORS`.
+5. Add a row below. An entry without a row is a licence gap, not a shortcut.
+
+## Ledger
+
+| vendor | CLIs | Source | Legal basis | Render | Added |
+| --- | --- | --- | --- | --- | --- |
+| aws | `aws` | simple-icons `amazonwebservices.svg` | CC0-1.0 | mono | 2026-08-23 |
+| azure | `az` | gilbarbara/logos `microsoft-azure.svg` | CC0 | colour | 2026-08-23 |
+| cloudflare | `wrangler` | simple-icons `cloudflare.svg` | CC0-1.0 | mono | 2026-08-23 |
+| docker | `docker` | gilbarbara/logos `docker-icon.svg` | CC0 | colour | 2026-08-23 |
+| firebase | `firebase` | gilbarbara/logos `firebase-icon.svg` | CC0 | colour | 2026-08-23 |
+| fly | `flyctl` | gilbarbara/logos `fly-icon.svg` | CC0 | colour | 2026-08-23 |
+| github | `gh` | simple-icons `github.svg` | CC0-1.0 | mono | 2026-08-23 |
+| gitlab | `glab` | gilbarbara/logos `gitlab-icon.svg` | CC0 | colour | 2026-08-23 |
+| google | `gam` (Google Workspace) | gilbarbara/logos `google-icon.svg` | CC0 | colour | 2026-08-23 |
+| google-cloud | `gcloud` | gilbarbara/logos `google-cloud.svg` | CC0 | colour | 2026-08-23 |
+| heroku | `heroku` | gilbarbara/logos `heroku-icon.svg` | CC0 | colour | 2026-08-23 |
+| kubernetes | `kubectl` | gilbarbara/logos `kubernetes.svg` | CC0 | colour | 2026-08-23 |
+| neon | `neonctl` | gilbarbara/logos `neon-icon.svg` | CC0 | colour | 2026-08-23 |
+| netlify | `netlify` | gilbarbara/logos `netlify-icon.svg` | CC0 | colour | 2026-08-23 |
+| planetscale | `pscale` | simple-icons `planetscale.svg` | CC0-1.0 | mono | 2026-08-23 |
+| railway | `railway` | simple-icons `railway.svg` | CC0-1.0 | mono | 2026-08-23 |
+| render | `render` | simple-icons `render.svg` | CC0-1.0 | mono | 2026-08-23 |
+| stripe | `stripe` | simple-icons `stripe.svg` | CC0-1.0 | mono | 2026-08-23 |
+| supabase | `supabase` | gilbarbara/logos `supabase-icon.svg` | CC0 | colour | 2026-08-23 |
+| twilio | `twilio` | gilbarbara/logos `twilio-icon.svg` | CC0 | colour | 2026-08-23 |
+| vercel | `vercel` | simple-icons `vercel.svg` | CC0-1.0 | mono | 2026-08-23 |
+
+### Deliberately not bundled
+
+| CLI | Why |
+|---|---|
+| `jarvisctl` | Ours, not a third party's. It draws the terminal glyph on the same tile rather than pretending to be a vendor brand. |
diff --git a/jarvis/ui/web/frontend/src/assets/clis/aws.svg b/jarvis/ui/web/frontend/src/assets/clis/aws.svg
new file mode 100644
index 0000000000..ae851ed1fd
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/aws.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Amazon Web Services</title><path d="M6.763 10.036c0 .296.032.535.088.71.064.176.144.368.256.576.04.063.056.127.056.183 0 .08-.048.16-.152.24l-.503.335a.383.383 0 0 1-.208.072c-.08 0-.16-.04-.239-.112a2.47 2.47 0 0 1-.287-.375 6.18 6.18 0 0 1-.248-.471c-.622.734-1.405 1.101-2.347 1.101-.67 0-1.205-.191-1.596-.574-.391-.384-.59-.894-.59-1.533 0-.678.239-1.23.726-1.644.487-.415 1.133-.623 1.955-.623.272 0 .551.024.846.064.296.04.6.104.918.176v-.583c0-.607-.127-1.03-.375-1.277-.255-.248-.686-.367-1.3-.367-.28 0-.568.031-.863.103-.295.072-.583.16-.862.272a2.287 2.287 0 0 1-.28.104.488.488 0 0 1-.127.023c-.112 0-.168-.08-.168-.247v-.391c0-.128.016-.224.056-.28a.597.597 0 0 1 .224-.167c.279-.144.614-.264 1.005-.36a4.84 4.84 0 0 1 1.246-.151c.95 0 1.644.216 2.091.647.439.43.662 1.085.662 1.963v2.586zm-3.24 1.214c.263 0 .534-.048.822-.144.287-.096.543-.271.758-.51.128-.152.224-.32.272-.512.047-.191.08-.423.08-.694v-.335a6.66 6.66 0 0 0-.735-.136 6.02 6.02 0 0 0-.75-.048c-.535 0-.926.104-1.19.32-.263.215-.39.518-.39.917 0 .375.095.655.295.846.191.2.47.296.838.296zm6.41.862c-.144 0-.24-.024-.304-.08-.064-.048-.12-.16-.168-.311L7.586 5.55a1.398 1.398 0 0 1-.072-.32c0-.128.064-.2.191-.2h.783c.151 0 .255.025.31.08.065.048.113.16.16.312l1.342 5.284 1.245-5.284c.04-.16.088-.264.151-.312a.549.549 0 0 1 .32-.08h.638c.152 0 .256.025.32.08.063.048.12.16.151.312l1.261 5.348 1.381-5.348c.048-.16.104-.264.16-.312a.52.52 0 0 1 .311-.08h.743c.127 0 .2.065.2.2 0 .04-.009.08-.017.128a1.137 1.137 0 0 1-.056.2l-1.923 6.17c-.048.16-.104.263-.168.311a.51.51 0 0 1-.303.08h-.687c-.151 0-.255-.024-.32-.08-.063-.056-.119-.16-.15-.32l-1.238-5.148-1.23 5.14c-.04.16-.087.264-.15.32-.065.056-.177.08-.32.08zm10.256.215c-.415 0-.83-.048-1.229-.143-.399-.096-.71-.2-.918-.32-.128-.071-.215-.151-.247-.223a.563.563 0 0 1-.048-.224v-.407c0-.167.064-.247.183-.247.048 0 .096.008.144.024.048.016.12.048.2.08.271.12.566.215.878.279.319.064.63.096.95.096.502 0 .894-.088 1.165-.264a.86.86 0 0 0 .415-.758.777.777 0 0 0-.215-.559c-.144-.151-.416-.287-.807-.415l-1.157-.36c-.583-.183-1.014-.454-1.277-.813a1.902 1.902 0 0 1-.4-1.158c0-.335.073-.63.216-.886.144-.255.335-.479.575-.654.24-.184.51-.32.83-.415.32-.096.655-.136 1.006-.136.175 0 .359.008.535.032.183.024.35.056.518.088.16.04.312.08.455.127.144.048.256.096.336.144a.69.69 0 0 1 .24.2.43.43 0 0 1 .071.263v.375c0 .168-.064.256-.184.256a.83.83 0 0 1-.303-.096 3.652 3.652 0 0 0-1.532-.311c-.455 0-.815.071-1.062.223-.248.152-.375.383-.375.71 0 .224.08.416.24.567.159.152.454.304.877.44l1.134.358c.574.184.99.44 1.237.767.247.327.367.702.367 1.117 0 .343-.072.655-.207.926-.144.272-.336.511-.583.703-.248.2-.543.343-.886.447-.36.111-.734.167-1.142.167zM21.698 16.207c-2.626 1.94-6.442 2.969-9.722 2.969-4.598 0-8.74-1.7-11.87-4.526-.247-.223-.024-.527.272-.351 3.384 1.963 7.559 3.153 11.877 3.153 2.914 0 6.114-.607 9.06-1.852.439-.2.814.287.383.607zM22.792 14.961c-.336-.43-2.22-.207-3.074-.103-.255.032-.295-.192-.063-.36 1.5-1.053 3.967-.75 4.254-.399.287.36-.08 2.826-1.485 4.007-.215.184-.423.088-.327-.151.32-.79 1.03-2.57.695-2.994z"/></svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/azure.svg b/jarvis/ui/web/frontend/src/assets/clis/azure.svg
new file mode 100644
index 0000000000..be45d585ef
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/azure.svg
@@ -0,0 +1,26 @@
+<svg viewBox="0 0 256 242" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>Azure</title>
+ <defs>
+ <linearGradient x1="58.9717389%" y1="7.4114724%" x2="37.1905196%" y2="103.76182%" id="Azure-linearGradient-1">
+ <stop stop-color="#114A8B" offset="0%"></stop>
+ <stop stop-color="#0669BC" offset="100%"></stop>
+ </linearGradient>
+ <linearGradient x1="59.7188447%" y1="52.3127289%" x2="52.6914332%" y2="54.8636556%" id="Azure-linearGradient-2">
+ <stop stop-color="#000000" stop-opacity="0.3" offset="0%"></stop>
+ <stop stop-color="#000000" stop-opacity="0.2" offset="7.1%"></stop>
+ <stop stop-color="#000000" stop-opacity="0.1" offset="32.1%"></stop>
+ <stop stop-color="#000000" stop-opacity="0.05" offset="62.3%"></stop>
+ <stop stop-color="#000000" stop-opacity="0" offset="100%"></stop>
+ </linearGradient>
+ <linearGradient x1="37.2789399%" y1="4.60005789%" x2="62.4733904%" y2="99.9794963%" id="Azure-linearGradient-3">
+ <stop stop-color="#3CCBF4" offset="0%"></stop>
+ <stop stop-color="#2892DF" offset="100%"></stop>
+ </linearGradient>
+ </defs>
+ <g>
+ <path d="M85.3432536,0.00290931225 L161.095926,0.00290931225 L82.4572158,233.000999 C80.7999506,237.910266 76.1963409,241.216897 71.0148908,241.216897 L12.0605874,241.216897 C8.17631708,241.216897 4.52963465,239.346777 2.26398956,236.191716 C-0.00165554136,233.036655 -0.608845705,228.983428 0.632808896,225.302959 L73.8980192,8.2188071 C75.5546242,3.30737742 80.1599649,0 85.3432536,0 L85.3432536,0.00290931225 Z" fill="url(#Azure-linearGradient-1)"></path>
+ <path d="M195.422901,156.282432 L75.2973984,156.282432 C73.0119231,156.279908 70.9577304,157.676287 70.1192383,159.802395 C69.2807461,161.928503 69.8287946,164.351151 71.5007459,165.909349 L148.690618,237.955558 C150.937998,240.051977 153.897138,241.216897 156.970521,241.216897 L224.990241,241.216897 L195.422901,156.282432 Z" fill="#0078D4"></path>
+ <path d="M85.3432536,0.00282026831 C80.0982223,-0.017218565 75.4499031,3.37677358 73.8718354,8.37881927 L0.722997576,225.105126 C-0.602635687,228.800183 -0.0443562611,232.909431 2.21904685,236.116884 C4.48244996,239.324337 8.16695154,241.227505 12.0925898,241.216941 L72.5684635,241.216941 C77.154039,240.397586 80.9441027,237.174364 82.4892183,232.779891 L97.0765099,189.788984 L149.182292,238.389046 C151.365814,240.195147 154.104928,241.193803 156.938519,241.216941 L224.705129,241.216941 L194.983595,156.282435 L108.341367,156.3028 L161.369401,0.00282026831 L85.3432536,0.00282026831 Z" fill="url(#Azure-linearGradient-2)"></path>
+ <path d="M182.098251,8.20716985 C180.443985,3.30365177 175.845517,0.00290931225 170.670472,0.00290931225 L86.2451404,0.00290931225 C91.4198966,0.00290931225 96.0178956,3.30421162 97.6729189,8.20716985 L170.941039,225.30005 C172.18363,228.981191 171.576996,233.035501 169.311351,236.191716 C167.045705,239.34793 163.398467,241.219806 159.51326,241.219806 L243.941501,241.219806 C247.826196,241.219806 251.472566,239.346605 253.737531,236.190534 C256.002496,233.034464 256.608798,228.980705 255.366371,225.30005 L182.098251,8.20716985 Z" fill="url(#Azure-linearGradient-3)"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/cloudflare.svg b/jarvis/ui/web/frontend/src/assets/clis/cloudflare.svg
new file mode 100644
index 0000000000..cf27626831
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/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>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/docker.svg b/jarvis/ui/web/frontend/src/assets/clis/docker.svg
new file mode 100644
index 0000000000..fc1d074f14
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/docker.svg
@@ -0,0 +1,5 @@
+<svg 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>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/firebase.svg b/jarvis/ui/web/frontend/src/assets/clis/firebase.svg
new file mode 100644
index 0000000000..e86b7539fe
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/firebase.svg
@@ -0,0 +1,9 @@
+<svg viewBox="0 0 256 322" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>Firebase</title>
+ <g>
+ <path d="M80.1808323,312.295406 C93.6347594,317.709494 108.230746,320.923389 123.556401,321.458215 C144.297625,322.182288 164.021033,317.893803 181.653847,309.747987 C160.509281,301.440899 141.3597,289.292936 125.016395,274.187794 C114.42239,291.15084 98.7532944,304.547829 80.1808323,312.295406 Z" fill="#FF9100"></path>
+ <path d="M125.013433,274.192731 C87.706415,239.689026 65.0743742,189.749411 66.9870778,134.974635 C67.0492822,133.195885 67.1430825,131.418287 67.2528453,129.641182 C60.5713009,127.913117 53.5958488,126.858604 46.4173273,126.607977 C36.142079,126.249067 26.1913468,127.523435 16.7969986,130.168933 C6.83803832,147.614145 0.828169967,167.630638 0.0794789059,189.06977 C-1.85272527,244.402081 31.6316004,292.748737 80.1778702,312.300343 C98.7503322,304.552766 114.418934,291.170588 125.013433,274.192731 Z" fill="#FFC400"></path>
+ <path d="M125.014914,274.191086 C133.688645,260.310285 138.947716,244.036753 139.559886,226.504323 C141.170454,180.38419 110.16583,140.710278 67.2544909,129.639372 C67.1447281,131.416477 67.0507632,133.194075 66.9887234,134.972825 C65.0758552,189.747765 87.7078961,239.687381 125.014914,274.191086 Z" fill="#FF9100"></path>
+ <path d="M134.761095,0 C110.321506,19.5791862 91.0226675,45.3959945 79.3465032,75.1362889 C72.6616676,92.1712486 68.4608946,110.46955 67.2344144,129.650727 C110.145918,140.721632 141.150542,180.395709 139.539974,226.515842 C138.927639,244.048273 133.653264,260.305348 124.995002,274.202605 C141.337814,289.322557 160.487888,301.45571 181.632454,309.762797 C224.072981,290.145367 254.184527,247.930289 255.928884,197.998901 C257.057779,165.647667 244.628415,136.815425 227.064718,112.478029 C208.51694,86.738894 134.761095,0 134.761095,0 Z" fill="#DD2C00"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/fly.svg b/jarvis/ui/web/frontend/src/assets/clis/fly.svg
new file mode 100644
index 0000000000..7ab42a15ee
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/fly.svg
@@ -0,0 +1,15 @@
+<svg viewBox="0 0 256 231" version="1.1" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid">
+ <title>Fly</title>
+ <defs>
+ <radialGradient cx="53.095502%" cy="49.5644668%" fx="53.095502%" fy="49.5644668%" r="93.3475634%" gradientTransform="translate(0.530955,0.495645),scale(0.776037,1.000000),translate(-0.530955,-0.495645)" id="flyRadialGradient-1">
+ <stop stop-color="#BA7BF0" offset="0%"></stop>
+ <stop stop-color="#996BEC" offset="45%"></stop>
+ <stop stop-color="#5046E4" offset="100%"></stop>
+ </radialGradient>
+ </defs>
+ <g>
+ <path d="M179.015724,31.5981633 L208.493624,31.5981633 C234.713177,31.5981633 256,52.8849859 256,79.1045394 L256,182.757366 C256,208.976919 234.713177,230.263742 208.493624,230.263742 L206.170688,230.263742 C192.675834,228.152832 186.823283,224.105623 182.302133,220.685139 L144.823356,189.869603 C142.888438,188.304709 140.123096,188.304709 138.188178,189.869603 L126.012253,199.881612 L91.7201077,171.685225 C89.7874529,170.117244 87.0207027,170.117244 85.0880479,171.685225 L37.4475963,213.594729 C27.8596397,221.392933 21.5175572,219.952401 17.4048695,219.500286 C6.78172539,210.782261 1.7723975e-13,197.555558 1.7723975e-13,182.757366 L1.7723975e-13,79.1045394 C1.7723975e-13,52.8849859 21.2868226,31.5981633 47.5094942,31.5981633 L76.9219152,31.5981633 L76.8689086,31.7166486 L75.8773735,34.6070667 L75.5686881,35.5986018 L74.2341693,41.5197496 L74.0502052,42.5580551 L73.4640147,48.4885571 L73.3860638,50.1161712 L73.3735917,50.6867715 L73.4297163,53.4056977 L73.5637918,54.9990134 L73.8943035,57.4934412 L74.3152382,59.7384261 L74.8141237,61.8056831 L75.4626749,64.044432 L77.1464137,68.7838447 L77.7014238,70.2056685 L80.6323764,76.3980853 L81.6675639,78.3000865 L85.0568676,84.1183392 L86.35397,86.2167765 L91.0840286,93.1824659 L91.7668782,94.1054042 L97.9218786,102.115635 L99.9111847,104.582001 L106.939235,112.798022 L108.382885,114.378866 L114.176193,120.611817 L116.471067,122.987759 L120.262597,126.754345 L119.501797,127.390424 L119.027855,127.817595 C117.740107,129.018038 116.517837,130.293314 115.373519,131.634069 C114.823615,132.282586 114.299382,132.95244 113.802029,133.642084 C113.043345,134.695591 112.364825,135.804571 111.772189,136.959673 C111.469251,137.559446 111.197617,138.174525 110.958382,138.802431 C110.341268,140.406623 109.970188,142.094882 109.857715,143.809995 L109.835889,145.291061 C109.889724,147.379425 110.31523,149.441491 111.092457,151.380583 C111.879818,153.346447 113.028339,155.147489 114.478643,156.690596 C115.532538,157.813088 116.732982,158.792151 118.048792,159.596604 C119.168167,160.282572 120.362374,160.846936 121.603352,161.277225 C124.300906,162.19158 127.16315,162.516932 129.997101,162.231344 L130.012691,162.231344 C132.43049,161.996821 134.780567,161.299208 136.934728,160.176559 C137.863903,159.683909 138.749425,159.113309 139.578822,158.464758 C141.953856,156.616352 143.794126,154.169117 144.910661,151.374347 C145.783711,149.194841 146.210881,146.865669 146.173465,144.520907 L146.104868,143.295519 C145.946598,141.676778 145.560297,140.088537 144.957432,138.577933 C144.696242,137.920037 144.399594,137.276779 144.068792,136.650987 C143.454989,135.49822 142.756722,134.392455 141.979708,133.342752 C141.624124,132.862412 141.256071,132.391429 140.875924,131.930283 C139.610396,130.419568 138.248064,128.992661 136.797535,127.658575 L135.771701,126.785525 L137.508447,125.070606 L144.973022,117.27552 L147.554754,114.441226 L151.567665,109.926312 L154.17746,106.873756 L157.900393,102.340134 L160.419765,99.1722105 L164.120873,94.2238895 L165.988575,91.663983 L168.638905,87.700961 L170.846473,84.3241294 L175.005932,77.0809349 L177.384992,72.3290501 L177.453589,72.1825025 L179.274521,67.7736015 C179.298553,67.7166087 179.319373,67.658314 179.336882,67.5989915 L181.298126,61.4814075 L181.503916,60.5896496 L182.355139,55.7192794 L182.520395,54.4003508 L182.570284,53.5927798 L182.629526,50.5433419 L182.613936,49.9758596 L182.458034,47.2444612 L182.264716,45.1241977 L181.298126,39.0097317 C181.282535,38.9286628 181.266945,38.8475939 181.242001,38.766525 L180.001023,34.2453747 L179.573852,32.9888067 L179.015724,31.5981633 L179.015724,31.5981633 Z M193.028172,160.85629 C186.848056,160.943442 181.859218,165.932279 181.772067,172.112395 C181.862519,178.290605 186.849938,183.276642 193.028172,183.365383 C199.206248,183.275056 204.193646,178.29042 204.287395,172.112395 C204.198572,165.931775 199.208817,160.943401 193.028172,160.85629 L193.028172,160.85629 Z" fill="url(#flyRadialGradient-1)"></path>
+ <path d="M102.630111,230.263785 L47.5094942,230.263785 C36.5295537,230.278541 25.8864388,226.473255 17.4048695,219.500286 C21.5175572,219.952401 27.8596397,221.392933 37.4475963,213.594729 L85.0880479,171.685225 C87.0207027,170.117244 89.7874529,170.117244 91.7201077,171.685225 L126.012253,199.881612 L138.188178,189.869603 C140.123096,188.304709 142.888438,188.304709 144.823356,189.869603 L182.302133,220.685139 C186.823283,224.105623 192.675834,228.152832 206.170688,230.263785 L181.238883,230.263785 C179.03631,230.236593 176.896925,229.523828 175.118181,228.224547 L174.681656,227.887799 L141.699085,200.498983 L109.149921,227.887799 C107.311666,229.400946 105.01091,230.239385 102.630111,230.263785 Z M193.028172,160.85629 C186.848056,160.943442 181.859218,165.932279 181.772067,172.112395 C181.862519,178.290605 186.849938,183.276642 193.028172,183.365383 C199.206248,183.275056 204.193646,178.29042 204.287395,172.112395 C204.198572,165.931775 199.208817,160.943401 193.028172,160.85629 L193.028172,160.85629 Z M120.262597,126.754345 L116.471067,122.987759 L114.176193,120.611817 L108.382885,114.378866 L106.939235,112.798022 L99.9111847,104.582001 L97.9218786,102.115635 L91.7668782,94.1054042 L91.0840286,93.1824659 L86.35397,86.2167765 L85.0568676,84.1183392 L81.6675639,78.3000865 L80.6323764,76.3980853 L77.7014238,70.2056685 L77.1464137,68.7838447 L75.4626749,64.044432 L74.8141237,61.8056831 L74.3152382,59.7384261 L73.8943035,57.4934412 L73.5637918,54.9990134 L73.4297163,53.4056977 L73.3735917,50.6867715 L73.3860638,50.1161712 L73.4640147,48.4885571 L74.0502052,42.5580551 L74.2341693,41.5197496 L75.5686881,35.5986018 L75.8773735,34.6070667 L76.8689086,31.7166486 L77.1869481,30.9683203 L78.7646736,27.5010657 L79.8591038,25.4369268 L81.3838228,22.9237908 L82.9023056,20.685042 L83.9842637,19.2632182 L85.2314775,17.7603254 L86.6034128,16.2511967 L87.7789119,15.0694615 L90.6412677,12.5500895 L92.7334689,10.8382885 C92.7833575,10.794636 92.8363641,10.7572196 92.8893707,10.7198032 L95.3650902,9.04541856 L97.3325701,7.79196862 L101.067976,5.82448875 C101.1241,5.79019037 101.189579,5.76212806 101.248822,5.73406575 L106.546362,3.53585131 L107.035894,3.35188726 L111.744126,1.97371594 L113.733432,1.52783699 L116.421178,0.988416988 L118.204694,0.717147973 L120.939211,0.377282194 L122.803795,0.212026357 L126.504902,0.0155901733 L127.954788,0 L130.701777,0.0561246239 L131.415807,0.0966590746 L135.394419,0.427170749 L140.657662,1.169263 L141.265678,1.29710242 L146.46656,2.59108681 L147.994397,3.04631987 L149.690608,3.63251038 L151.757865,4.41513708 L153.391715,5.10734078 L155.792602,6.23918736 L157.304849,7.01557799 L160.023775,8.61201174 L161.037136,9.23561867 L164.744479,11.9420728 L165.807729,12.865011 L168.39258,15.2191272 L168.520419,15.3469666 L170.712398,17.6979648 L171.466962,18.5491882 L174.039341,21.9665542 L174.563171,22.7834793 L176.605483,26.2320256 L177.219736,27.4137608 L178.370291,29.9861394 L179.573852,32.9888067 L180.001023,34.2453747 L181.242001,38.766525 C181.265137,38.8465079 181.283874,38.9276985 181.298126,39.0097317 L182.264716,45.1241977 L182.458034,47.2444612 L182.613936,49.9758596 L182.629526,50.5433419 L182.570284,53.5927798 L182.520395,54.4003508 L182.355139,55.7192794 L181.503916,60.5896496 L181.298126,61.4814075 L179.336882,67.5989915 C179.319373,67.658314 179.298553,67.7166087 179.274521,67.7736015 L177.453589,72.1825025 L177.384992,72.3290501 L175.005932,77.0809349 L170.846473,84.3241294 L168.638905,87.700961 L165.988575,91.663983 L164.120873,94.2238895 L160.419765,99.1722105 L157.900393,102.340134 L154.17746,106.873756 L151.567665,109.926312 L147.554754,114.441226 L144.973022,117.27552 L137.508447,125.070606 L135.771701,126.785525 L136.797535,127.658575 C138.247421,128.993094 139.610002,130.418036 140.875924,131.930283 C141.256324,132.391752 141.624252,132.862575 141.979708,133.342752 C142.756722,134.392455 143.454989,135.49822 144.068792,136.650987 C144.399303,137.274594 144.695517,137.920027 144.957432,138.577933 C145.552976,140.087061 145.955203,141.683495 146.104868,143.295519 L146.173465,144.520907 C146.211741,146.866572 145.782456,149.19637 144.910661,151.374347 C143.794126,154.169117 141.953856,156.616352 139.578822,158.464758 C138.749425,159.113309 137.863903,159.683909 136.934728,160.176559 C134.780567,161.299208 132.43049,161.996821 130.012691,162.231344 L129.997101,162.231344 C127.16315,162.516932 124.300906,162.19158 121.603352,161.277225 C120.361442,160.846638 119.169677,160.283163 118.048792,159.596604 C116.734053,158.792074 115.533278,157.814674 114.478643,156.690596 C113.028339,155.147489 111.879818,153.346447 111.092457,151.380583 C110.31523,149.441491 109.889724,147.379425 109.835889,145.291061 L109.857715,143.809995 C109.970188,142.094882 110.341268,140.406623 110.958382,138.802431 C111.19847,138.172588 111.469739,137.558335 111.772189,136.959673 C112.364615,135.802882 113.044347,134.695979 113.802029,133.642084 C114.297797,132.952998 114.824745,132.282621 115.373519,131.634069 C116.517837,130.293314 117.740107,129.018038 119.027855,127.817595 L119.501797,127.390424 L120.262597,126.754345 L120.262597,126.754345 Z" fill="#000000"></path>
+ <path d="M141.699085,200.498983 L174.681656,227.887799 C176.566346,229.421574 178.921212,230.260475 181.351132,230.263742 L102.517862,230.263742 C104.937457,230.263742 107.282219,229.424991 109.149921,227.887799 L141.699085,200.498983 Z M128.163697,135.859006 L128.463028,135.946311 C128.559687,135.993082 128.640756,136.061679 128.728061,136.120921 L128.977504,136.342302 C129.594875,136.909784 130.193537,137.505329 130.770374,138.116463 C131.175718,138.54987 131.571709,138.995749 131.952109,139.457218 C132.435404,140.040291 132.887519,140.651426 133.2991,141.287505 C133.476828,141.568128 133.642084,141.851869 133.797985,142.148082 C133.932061,142.403761 134.053664,142.668794 134.159677,142.936945 C134.34676,143.40465 134.487071,143.8973 134.530724,144.399303 L134.521369,145.34095 C134.395548,147.065393 133.447455,148.623885 131.973935,149.52847 C131.031128,150.098132 129.971482,150.446728 128.874609,150.548068 L127.711582,150.582366 L126.729401,150.495061 C126.270179,150.428065 125.818193,150.318461 125.379292,150.167667 C124.932554,150.015453 124.50386,149.814699 124.100898,149.569005 L123.333861,149.007759 C122.430626,148.235695 121.81522,147.180712 121.587762,146.014445 C121.549781,145.818246 121.519616,145.620615 121.497339,145.422019 L121.469276,144.524025 C121.484867,144.280818 121.522283,144.040729 121.57529,143.800641 C121.709365,143.276811 121.902683,142.768571 122.14589,142.285276 C122.460228,141.678782 122.818729,141.096218 123.218494,140.542294 C123.882635,139.6443 124.602901,138.789959 125.373056,137.982388 C125.868823,137.458558 126.377063,136.950319 126.907129,136.460787 L127.284411,136.120921 C127.546326,135.946311 127.549444,135.946311 127.848775,135.859006 L128.163697,135.859006 L128.163697,135.859006 Z M126.233633,10.6636786 L126.355237,10.6543244 L126.355237,115.635434 L126.093322,115.152138 C122.63777,108.759172 119.420859,102.240064 116.449241,95.6082969 C114.037956,90.2411122 111.854426,84.7744837 109.904486,79.2230247 C108.345881,74.8006804 107.029162,70.2967721 105.960172,65.7312887 C105.130775,62.1050144 104.494696,58.4257335 104.232781,54.7090362 C104.132522,53.1230225 104.102352,51.533355 104.142358,49.9446792 C104.167302,48.5602719 104.223427,47.1789825 104.310732,45.7976931 C104.447925,43.624423 104.669306,41.4573889 104.987345,39.305945 C105.239906,37.6128521 105.551709,35.9259954 105.938346,34.2578469 C106.243913,32.9326821 106.599369,31.6168715 107.004714,30.3228871 C107.590904,28.4520663 108.292462,26.624898 109.109387,24.8413822 C109.408718,24.199067 109.729876,23.5598699 110.066624,22.933145 C112.093346,19.1790312 114.843453,15.7211308 118.444783,13.4075491 C120.785242,11.8851635 123.455755,10.9443905 126.233633,10.6636786 L126.233633,10.6636786 Z M139.846973,10.9287115 L146.909321,12.9429619 C150.18014,14.1496413 153.329355,15.7242488 156.222891,17.6886106 C160.166898,20.3506259 163.566176,23.7414368 166.238018,27.6787937 C167.80639,30.0110836 169.103492,32.5273376 170.116853,35.1558408 C171.585448,39.0440301 172.495914,43.1193014 172.817071,47.2631694 C172.910612,48.3482455 172.963619,49.4364396 172.985445,50.5246337 C173.010389,51.5348769 173.004153,52.5482382 172.923084,53.5584814 C172.7225,55.8192746 172.297391,58.05449 171.654044,60.2310756 C171.136566,62.0122548 170.525624,63.7649397 169.823758,65.481846 C168.950708,67.6176997 167.980999,69.713019 166.91775,71.7584498 C164.563633,76.3045443 161.854061,80.6542026 158.954289,84.8604314 C155.359605,90.0300045 151.527599,95.0304454 147.470567,99.845706 C143.064633,105.100057 138.469794,110.193069 133.69509,115.114722 C136.935179,109.039399 139.959482,102.851433 142.762335,96.5624155 C144.321352,93.0577445 145.789947,89.5156572 147.171236,85.9392714 C148.690619,82.0109037 150.060421,78.026308 151.277688,73.9940806 C152.181918,70.972705 152.980135,67.9201491 153.63804,64.8332948 C154.202404,62.1860833 154.645165,59.5108096 154.919552,56.8199457 C155.150287,54.5749607 155.234474,52.3175036 155.178349,50.0662826 C155.157066,48.688214 155.106126,47.3107631 155.025565,45.9348867 C154.695054,40.3972571 153.853184,34.8783357 152.238042,29.5683227 C151.626506,27.5550581 150.882799,25.5843371 150.011766,23.6690011 C147.944509,19.1665591 145.060327,14.9572123 141.156547,11.8859481 L139.846973,10.9287115 L139.846973,10.9287115 Z" fill="#FFFFFF"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/github.svg b/jarvis/ui/web/frontend/src/assets/clis/github.svg
new file mode 100644
index 0000000000..2334976514
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/github.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/gitlab.svg b/jarvis/ui/web/frontend/src/assets/clis/gitlab.svg
new file mode 100644
index 0000000000..707d71afc2
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/gitlab.svg
@@ -0,0 +1,9 @@
+<svg 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/clis/google-cloud.svg b/jarvis/ui/web/frontend/src/assets/clis/google-cloud.svg
new file mode 100644
index 0000000000..82b5b120d3
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/google-cloud.svg
@@ -0,0 +1,8 @@
+<svg viewBox="0 0 256 206" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M170.2517,56.8186 L192.5047,34.5656 L193.9877,25.1956 C153.4367,-11.6774 88.9757,-7.4964 52.4207,33.9196 C42.2667,45.4226 34.7337,59.7636 30.7167,74.5726 L38.6867,73.4496 L83.1917,66.1106 L86.6277,62.5966 C106.4247,40.8546 139.8977,37.9296 162.7557,56.4286 L170.2517,56.8186 Z" fill="#EA4335"></path>
+ <path d="M224.2048,73.9182 C219.0898,55.0822 208.5888,38.1492 193.9878,25.1962 L162.7558,56.4282 C175.9438,67.2042 183.4568,83.4382 183.1348,100.4652 L183.1348,106.0092 C198.4858,106.0092 210.9318,118.4542 210.9318,133.8052 C210.9318,149.1572 198.4858,161.2902 183.1348,161.2902 L127.4638,161.2902 L121.9978,167.2242 L121.9978,200.5642 L127.4638,205.7952 L183.1348,205.7952 C223.0648,206.1062 255.6868,174.3012 255.9978,134.3712 C256.1858,110.1682 244.2528,87.4782 224.2048,73.9182" fill="#4285F4"></path>
+ <path d="M71.8704,205.7957 L127.4634,205.7957 L127.4634,161.2897 L71.8704,161.2897 C67.9094,161.2887 64.0734,160.4377 60.4714,158.7917 L52.5844,161.2117 L30.1754,183.4647 L28.2234,191.0387 C40.7904,200.5277 56.1234,205.8637 71.8704,205.7957" fill="#34A853"></path>
+ <path d="M71.8704,61.4255 C31.9394,61.6635 -0.2366,94.2275 0.0014,134.1575 C0.1344,156.4555 10.5484,177.4455 28.2234,191.0385 L60.4714,158.7915 C46.4804,152.4705 40.2634,136.0055 46.5844,122.0155 C52.9044,108.0255 69.3704,101.8085 83.3594,108.1285 C89.5244,110.9135 94.4614,115.8515 97.2464,122.0155 L129.4944,89.7685 C115.7734,71.8315 94.4534,61.3445 71.8704,61.4255" fill="#FBBC05"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/google.svg b/jarvis/ui/web/frontend/src/assets/clis/google.svg
new file mode 100644
index 0000000000..598a6dee96
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/google.svg
@@ -0,0 +1,8 @@
+<svg viewBox="0 0 256 262" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M255.878,133.451 C255.878,122.717 255.007,114.884 253.122,106.761 L130.55,106.761 L130.55,155.209 L202.497,155.209 C201.047,167.249 193.214,185.381 175.807,197.565 L175.563,199.187 L214.318,229.21 L217.003,229.478 C241.662,206.704 255.878,173.196 255.878,133.451" fill="#4285F4"></path>
+ <path d="M130.55,261.1 C165.798,261.1 195.389,249.495 217.003,229.478 L175.807,197.565 C164.783,205.253 149.987,210.62 130.55,210.62 C96.027,210.62 66.726,187.847 56.281,156.37 L54.75,156.5 L14.452,187.687 L13.925,189.152 C35.393,231.798 79.49,261.1 130.55,261.1" fill="#34A853"></path>
+ <path d="M56.281,156.37 C53.525,148.247 51.93,139.543 51.93,130.55 C51.93,121.556 53.525,112.853 56.136,104.73 L56.063,103 L15.26,71.312 L13.925,71.947 C5.077,89.644 0,109.517 0,130.55 C0,151.583 5.077,171.455 13.925,189.152 L56.281,156.37" fill="#FBBC05"></path>
+ <path d="M130.55,50.479 C155.064,50.479 171.6,61.068 181.029,69.917 L217.873,33.943 C195.245,12.91 165.798,0 130.55,0 C79.49,0 35.393,29.301 13.925,71.947 L56.136,104.73 C66.726,73.253 96.027,50.479 130.55,50.479" fill="#EB4335"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/heroku.svg b/jarvis/ui/web/frontend/src/assets/clis/heroku.svg
new file mode 100644
index 0000000000..858c610ec2
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/heroku.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 256 285" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M230.4,0 C244.39552,0 255.77047,11.2315104 255.99657,25.1765997 L256,25.6 L256,258.844444 C256,272.839964 244.765005,284.214915 230.823296,284.441014 L230.4,284.444444 L25.6,284.444444 C11.60448,284.444444 0.2295296,273.209449 0.003430144,259.26774 L0,258.844444 L0,25.6 C0,11.60096 11.2349952,0.2294592 25.1767043,0.003429088 L25.6,0 L230.4,0 Z M230.4,14.2222222 L25.6,14.2222222 C19.426,14.2222222 14.3820625,19.169691 14.2259468,25.3068692 L14.2222222,25.6 L14.2222222,258.844444 C14.2222222,265.018444 19.169691,270.062382 25.3068692,270.218498 L25.6,270.222222 L230.4,270.222222 C236.5775,270.222222 241.618047,265.274753 241.774056,259.137575 L241.777778,258.844444 L241.777778,25.6 C241.777778,19.328 236.675556,14.2222222 230.4,14.2222222 Z M64,184.888889 L96,213.333333 L64,241.777778 L64,184.888889 Z M92.4444444,42.6666667 L92.4444444,123.416889 C106.645333,118.794667 126.496,113.777778 145.777778,113.777778 C163.36,113.777778 173.884444,120.689778 179.616,126.488889 C191.7248,138.738489 192.013158,154.309103 191.997015,156.385666 L191.996444,156.444444 L192,241.777778 L163.555556,241.777778 L163.555556,156.835556 C163.416889,150.197333 160.216889,142.222222 145.777778,142.222222 C117.146098,142.222222 85.0644658,156.478539 84.1117507,156.905113 L84.0924444,156.913778 L64,166.016 L64,42.6666667 L92.4444444,42.6666667 Z M192,42.6666667 C190.08,58.8231111 183.530667,74.3111111 170.666667,88.8888889 L170.666667,88.8888889 L142.222222,88.8888889 C153.400889,74.2222222 160.419556,58.7875556 163.555556,42.6666667 L163.555556,42.6666667 Z" fill="#430098"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/kubernetes.svg b/jarvis/ui/web/frontend/src/assets/clis/kubernetes.svg
new file mode 100644
index 0000000000..9ae4084db6
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/kubernetes.svg
@@ -0,0 +1,7 @@
+<svg viewBox="0 0 256 249" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M82.0851613,244.934194 C76.1393548,244.934194 70.523871,242.291613 66.7251613,237.501935 L8.91870968,165.656774 C5.12,160.867097 3.63354839,154.756129 5.12,148.810323 L25.7651613,59.1277419 C27.0864516,53.1819355 31.0503226,48.3922581 36.5006452,45.7496774 L120.072258,5.78064516 C122.714839,4.45935484 125.687742,3.79870968 128.660645,3.79870968 C131.633548,3.79870968 134.606452,4.45935484 137.249032,5.78064516 L220.820645,45.5845161 C226.270968,48.2270968 230.234839,53.0167742 231.556129,58.9625806 L252.20129,148.645161 C253.522581,154.590968 252.20129,160.701935 248.402581,165.491613 L190.596129,237.336774 C186.797419,241.96129 181.181935,244.769032 175.236129,244.769032 L82.0851613,244.934194 L82.0851613,244.934194 Z" fill="#326DE6"></path>
+ <path d="M128.495484,7.92774194 C130.807742,7.92774194 133.12,8.42322581 135.267097,9.41419355 L218.83871,49.2180645 C223.132903,51.3651613 226.436129,55.3290323 227.427097,59.9535484 L248.072258,149.636129 C249.228387,154.425806 248.072258,159.380645 244.934194,163.179355 L187.127742,235.024516 C184.154839,238.823226 179.530323,240.970323 174.740645,240.970323 L82.0851613,240.970323 C77.2954839,240.970323 72.6709677,238.823226 69.6980645,235.024516 L11.8916129,163.179355 C8.91870968,159.380645 7.76258065,154.425806 8.75354839,149.636129 L29.3987097,59.9535484 C30.5548387,55.163871 33.6929032,51.2 37.9870968,49.2180645 L121.55871,9.24903226 C123.705806,8.42322581 126.183226,7.92774194 128.495484,7.92774194 L128.495484,7.92774194 Z M128.495484,0.16516129 L128.495484,0.16516129 C125.027097,0.16516129 121.55871,0.990967742 118.255484,2.47741935 L34.683871,42.4464516 C28.0774194,45.5845161 23.4529032,51.3651613 21.8012903,58.4670968 L1.15612903,148.149677 C-0.495483871,155.251613 1.15612903,162.51871 5.78064516,168.299355 L63.5870968,240.144516 C68.0464516,245.76 74.8180645,248.898065 81.92,248.898065 L174.575484,248.898065 C181.677419,248.898065 188.449032,245.76 192.908387,240.144516 L250.714839,168.299355 C255.339355,162.683871 256.990968,155.251613 255.339355,148.149677 L234.694194,58.4670968 C233.042581,51.3651613 228.418065,45.5845161 221.811613,42.4464516 L138.570323,2.47741935 C135.432258,0.990967742 131.963871,0.16516129 128.495484,0.16516129 L128.495484,0.16516129 L128.495484,0.16516129 Z" fill="#FFFFFF"></path>
+ <path d="M212.232258,142.534194 L212.232258,142.534194 L212.232258,142.534194 C212.067097,142.534194 212.067097,142.534194 212.232258,142.534194 L212.067097,142.534194 C211.901935,142.534194 211.736774,142.534194 211.736774,142.369032 C211.406452,142.369032 211.076129,142.203871 210.745806,142.203871 C209.589677,142.03871 208.59871,141.873548 207.607742,141.873548 C207.112258,141.873548 206.616774,141.873548 205.956129,141.708387 L205.790968,141.708387 C202.322581,141.378065 199.514839,141.047742 196.872258,140.221935 C195.716129,139.726452 195.385806,139.065806 195.055484,138.405161 C195.055484,138.24 194.890323,138.24 194.890323,138.074839 L194.890323,138.074839 L192.743226,137.414194 C193.734194,129.816774 193.403871,121.889032 191.587097,114.126452 C189.770323,106.363871 186.632258,99.0967742 182.338065,92.4903226 L183.989677,91.003871 L183.989677,90.6735484 C183.989677,89.8477419 184.154839,89.0219355 184.815484,88.196129 C186.797419,86.3793548 189.274839,84.8929032 192.247742,83.076129 L192.247742,83.076129 C192.743226,82.7458065 193.23871,82.5806452 193.734194,82.2503226 C194.725161,81.7548387 195.550968,81.2593548 196.541935,80.5987097 C196.707097,80.4335484 197.037419,80.2683871 197.367742,79.9380645 C197.532903,79.7729032 197.698065,79.7729032 197.698065,79.6077419 L197.698065,79.6077419 C200.010323,77.6258065 200.505806,74.3225806 198.854194,72.1754839 C198.028387,71.0193548 196.541935,70.3587097 195.055484,70.3587097 C193.734194,70.3587097 192.578065,70.8541935 191.421935,71.68 L191.421935,71.68 L191.421935,71.68 C191.256774,71.8451613 191.256774,71.8451613 191.091613,72.0103226 C190.76129,72.1754839 190.596129,72.5058065 190.265806,72.6709677 C189.44,73.4967742 188.779355,74.1574194 188.11871,74.9832258 C187.788387,75.3135484 187.458065,75.8090323 186.962581,76.1393548 L186.962581,76.1393548 C184.650323,78.6167742 182.503226,80.5987097 180.356129,82.0851613 C179.860645,82.4154839 179.365161,82.5806452 178.869677,82.5806452 C178.539355,82.5806452 178.209032,82.5806452 177.87871,82.4154839 L177.548387,82.4154839 L177.548387,82.4154839 L175.566452,83.7367742 C173.419355,81.4245161 171.107097,79.4425806 168.794839,77.4606452 C158.885161,69.6980645 146.828387,64.9083871 134.276129,63.7522581 L134.110968,61.6051613 C133.945806,61.44 133.945806,61.44 133.780645,61.2748387 C133.285161,60.7793548 132.624516,60.283871 132.459355,59.1277419 C132.294194,56.4851613 132.624516,53.5122581 132.954839,50.2090323 L132.954839,50.043871 C132.954839,49.5483871 133.12,48.8877419 133.285161,48.3922581 C133.450323,47.4012903 133.615484,46.4103226 133.780645,45.2541935 L133.780645,44.2632258 L133.780645,43.7677419 L133.780645,43.7677419 L133.780645,43.7677419 C133.780645,40.7948387 131.468387,38.3174194 128.660645,38.3174194 C127.339355,38.3174194 126.018065,38.9780645 125.027097,39.9690323 C124.036129,40.96 123.540645,42.2812903 123.540645,43.7677419 L123.540645,43.7677419 L123.540645,43.7677419 L123.540645,44.0980645 L123.540645,45.0890323 C123.540645,46.2451613 123.705806,47.236129 124.036129,48.2270968 C124.20129,48.7225806 124.20129,49.2180645 124.366452,49.8787097 L124.366452,50.043871 C124.696774,53.3470968 125.192258,56.32 124.861935,58.9625806 C124.696774,60.1187097 124.036129,60.6141935 123.540645,61.1096774 C123.375484,61.2748387 123.375484,61.2748387 123.210323,61.44 L123.210323,61.44 L123.045161,63.5870968 C120.072258,63.9174194 117.099355,64.2477419 114.126452,64.9083871 C101.409032,67.716129 90.1780645,74.1574194 81.4245161,83.4064516 L79.7729032,82.2503226 L79.4425806,82.2503226 C79.1122581,82.2503226 78.7819355,82.4154839 78.4516129,82.4154839 C77.956129,82.4154839 77.4606452,82.2503226 76.9651613,81.92 C74.8180645,80.4335484 72.6709677,78.2864516 70.3587097,75.8090323 L70.3587097,75.8090323 C70.0283871,75.4787097 69.6980645,74.9832258 69.2025806,74.6529032 C68.5419355,73.8270968 67.8812903,73.1664516 67.0554839,72.3406452 C66.8903226,72.1754839 66.56,72.0103226 66.2296774,71.68 C66.0645161,71.5148387 65.8993548,71.5148387 65.8993548,71.3496774 L65.8993548,71.3496774 C64.9083871,70.523871 63.5870968,70.0283871 62.2658065,70.0283871 C60.7793548,70.0283871 59.2929032,70.6890323 58.4670968,71.8451613 C56.8154839,73.9922581 57.3109677,77.2954839 59.6232258,79.2774194 L59.6232258,79.2774194 L59.6232258,79.2774194 C59.7883871,79.2774194 59.7883871,79.4425806 59.9535484,79.4425806 C60.283871,79.6077419 60.4490323,79.9380645 60.7793548,80.1032258 C61.7703226,80.763871 62.596129,81.2593548 63.5870968,81.7548387 C64.0825806,81.92 64.5780645,82.2503226 65.0735484,82.5806452 L65.0735484,82.5806452 C68.0464516,84.3974194 70.523871,85.883871 72.5058065,87.7006452 C73.3316129,88.5264516 73.3316129,89.3522581 73.3316129,90.1780645 L73.3316129,90.5083871 L73.3316129,90.5083871 L74.9832258,91.9948387 C74.6529032,92.4903226 74.3225806,92.8206452 74.1574194,93.316129 C65.8993548,106.363871 62.7612903,121.723871 64.9083871,136.91871 L62.7612903,137.579355 C62.7612903,137.744516 62.596129,137.744516 62.596129,137.909677 C62.2658065,138.570323 61.7703226,139.230968 60.7793548,139.726452 C58.3019355,140.552258 55.3290323,140.882581 51.8606452,141.212903 L51.6954839,141.212903 C51.2,141.212903 50.5393548,141.212903 50.043871,141.378065 C49.0529032,141.378065 48.0619355,141.543226 46.9058065,141.708387 C46.5754839,141.708387 46.2451613,141.873548 45.9148387,141.873548 C45.7496774,141.873548 45.5845161,141.873548 45.4193548,142.03871 L45.4193548,142.03871 L45.4193548,142.03871 C42.4464516,142.699355 40.6296774,145.507097 41.1251613,148.149677 C41.6206452,150.461935 43.7677419,151.948387 46.4103226,151.948387 C46.9058065,151.948387 47.236129,151.948387 47.7316129,151.783226 L47.7316129,151.783226 L47.7316129,151.783226 C47.8967742,151.783226 48.0619355,151.783226 48.0619355,151.618065 C48.3922581,151.618065 48.7225806,151.452903 49.0529032,151.452903 C50.2090323,151.122581 51.0348387,150.792258 52.0258065,150.296774 C52.5212903,150.131613 53.0167742,149.80129 53.5122581,149.636129 L53.6774194,149.636129 C56.8154839,148.48 59.6232258,147.489032 62.2658065,147.15871 L62.596129,147.15871 C63.5870968,147.15871 64.2477419,147.654194 64.7432258,147.984516 C64.9083871,147.984516 64.9083871,148.149677 65.0735484,148.149677 L65.0735484,148.149677 L67.3858065,147.819355 C71.3496774,160.04129 78.9470968,170.941935 89.0219355,178.869677 C91.3341935,180.686452 93.6464516,182.172903 96.123871,183.659355 L95.1329032,185.806452 C95.1329032,185.971613 95.2980645,185.971613 95.2980645,186.136774 C95.6283871,186.797419 95.9587097,187.623226 95.6283871,188.779355 C94.6374194,191.256774 93.1509677,193.734194 91.3341935,196.541935 L91.3341935,196.707097 C91.003871,197.202581 90.6735484,197.532903 90.3432258,198.028387 C89.6825806,198.854194 89.1870968,199.68 88.5264516,200.670968 C88.3612903,200.836129 88.196129,201.166452 88.0309677,201.496774 C88.0309677,201.661935 87.8658065,201.827097 87.8658065,201.827097 L87.8658065,201.827097 L87.8658065,201.827097 C86.5445161,204.634839 87.5354839,207.772903 90.0129032,208.929032 C90.6735484,209.259355 91.3341935,209.424516 91.9948387,209.424516 C93.9767742,209.424516 95.9587097,208.103226 96.9496774,206.286452 L96.9496774,206.286452 L96.9496774,206.286452 C96.9496774,206.12129 97.1148387,205.956129 97.1148387,205.956129 C97.28,205.625806 97.4451613,205.295484 97.6103226,205.130323 C98.1058065,203.974194 98.2709677,203.148387 98.6012903,202.157419 C98.7664516,201.661935 98.9316129,201.166452 99.0967742,200.670968 L99.0967742,200.670968 C100.252903,197.367742 101.07871,194.725161 102.565161,192.412903 C103.225806,191.421935 104.051613,191.256774 104.712258,190.926452 C104.877419,190.926452 104.877419,190.926452 105.042581,190.76129 L105.042581,190.76129 L106.19871,188.614194 C113.465806,191.421935 121.393548,192.908387 129.32129,192.908387 C134.110968,192.908387 139.065806,192.412903 143.690323,191.256774 C146.663226,190.596129 149.470968,189.770323 152.27871,188.779355 L153.269677,190.596129 C153.434839,190.596129 153.434839,190.596129 153.6,190.76129 C154.425806,190.926452 155.086452,191.256774 155.747097,192.247742 C157.068387,194.56 158.059355,197.367742 159.215484,200.505806 L159.215484,200.670968 C159.380645,201.166452 159.545806,201.661935 159.710968,202.157419 C160.04129,203.148387 160.206452,204.139355 160.701935,205.130323 C160.867097,205.460645 161.032258,205.625806 161.197419,205.956129 C161.197419,206.12129 161.362581,206.286452 161.362581,206.286452 L161.362581,206.286452 L161.362581,206.286452 C162.353548,208.268387 164.335484,209.424516 166.317419,209.424516 C166.978065,209.424516 167.63871,209.259355 168.299355,208.929032 C169.455484,208.268387 170.446452,207.277419 170.776774,205.956129 C171.107097,204.634839 171.107097,203.148387 170.446452,201.827097 L170.446452,201.827097 L170.446452,201.827097 C170.446452,201.661935 170.28129,201.661935 170.28129,201.496774 C170.116129,201.166452 169.950968,200.836129 169.785806,200.670968 C169.290323,199.68 168.629677,198.854194 167.969032,198.028387 C167.63871,197.532903 167.308387,197.202581 166.978065,196.707097 L166.978065,196.541935 C165.16129,193.734194 163.509677,191.256774 162.683871,188.779355 C162.353548,187.623226 162.683871,186.962581 162.849032,186.136774 C162.849032,185.971613 163.014194,185.971613 163.014194,185.806452 L163.014194,185.806452 L162.188387,183.824516 C170.941935,178.704516 178.374194,171.437419 183.989677,162.51871 C186.962581,157.894194 189.274839,152.774194 190.926452,147.654194 L192.908387,147.984516 C193.073548,147.984516 193.073548,147.819355 193.23871,147.819355 C193.899355,147.489032 194.394839,146.993548 195.385806,146.993548 L195.716129,146.993548 C198.35871,147.323871 201.166452,148.314839 204.304516,149.470968 L204.469677,149.470968 C204.965161,149.636129 205.460645,149.966452 205.956129,150.131613 C206.947097,150.627097 207.772903,150.957419 208.929032,151.287742 C209.259355,151.287742 209.589677,151.452903 209.92,151.452903 C210.085161,151.452903 210.250323,151.452903 210.415484,151.618065 L210.415484,151.618065 C210.910968,151.783226 211.24129,151.783226 211.736774,151.783226 C214.214194,151.783226 216.36129,150.131613 217.021935,147.984516 C217.021935,146.002581 215.205161,143.36 212.232258,142.534194 L212.232258,142.534194 Z M135.762581,134.44129 L128.495484,137.909677 L121.228387,134.44129 L119.411613,126.67871 L124.366452,120.402581 L132.459355,120.402581 L137.414194,126.67871 L135.762581,134.44129 L135.762581,134.44129 Z M178.869677,117.264516 C180.190968,122.88 180.52129,128.495484 180.025806,133.945806 L154.756129,126.67871 C152.443871,126.018065 151.122581,123.705806 151.618065,121.393548 C151.783226,120.732903 152.113548,120.072258 152.609032,119.576774 L172.593548,101.574194 C175.40129,106.19871 177.548387,111.483871 178.869677,117.264516 L178.869677,117.264516 Z M164.665806,91.6645161 L143.029677,107.024516 C141.212903,108.180645 138.735484,107.850323 137.249032,106.033548 C136.753548,105.538065 136.588387,104.877419 136.423226,104.216774 L134.936774,77.2954839 C146.332903,78.6167742 156.738065,83.7367742 164.665806,91.6645161 L164.665806,91.6645161 Z M116.769032,78.1212903 C118.585806,77.7909677 120.237419,77.4606452 122.054194,77.1303226 L120.567742,103.556129 C120.402581,105.868387 118.585806,107.850323 116.108387,107.850323 C115.447742,107.850323 114.621935,107.685161 114.126452,107.354839 L92.16,91.6645161 C98.9316129,84.8929032 107.354839,80.2683871 116.769032,78.1212903 L116.769032,78.1212903 Z M84.2322581,101.574194 L103.886452,119.08129 C105.703226,120.567742 105.868387,123.375484 104.381935,125.192258 C103.886452,125.852903 103.225806,126.348387 102.4,126.513548 L76.8,133.945806 C75.8090323,122.714839 78.2864516,111.31871 84.2322581,101.574194 L84.2322581,101.574194 Z M79.7729032,146.332903 L106.033548,141.873548 C108.180645,141.708387 110.162581,143.194839 110.658065,145.341935 C110.823226,146.332903 110.823226,147.15871 110.492903,147.984516 L110.492903,147.984516 L100.418065,172.263226 C91.1690323,166.317419 83.7367742,157.233548 79.7729032,146.332903 L79.7729032,146.332903 Z M140.056774,179.2 C136.258065,180.025806 132.459355,180.52129 128.495484,180.52129 C122.714839,180.52129 117.099355,179.530323 111.814194,177.87871 L124.861935,154.260645 C126.183226,152.774194 128.330323,152.113548 130.147097,153.104516 C130.972903,153.6 131.633548,154.260645 132.129032,154.92129 L132.129032,154.92129 L144.846452,177.87871 C143.36,178.374194 141.708387,178.704516 140.056774,179.2 L140.056774,179.2 Z M172.263226,156.242581 C168.134194,162.849032 162.683871,168.134194 156.407742,172.263226 L146.002581,147.323871 C145.507097,145.341935 146.332903,143.194839 148.314839,142.203871 C148.975484,141.873548 149.80129,141.708387 150.627097,141.708387 L177.052903,146.167742 C176.061935,149.80129 174.410323,153.104516 172.263226,156.242581 L172.263226,156.242581 Z" fill="#FFFFFF"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/neon.svg b/jarvis/ui/web/frontend/src/assets/clis/neon.svg
new file mode 100644
index 0000000000..0e9fd67248
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/neon.svg
@@ -0,0 +1,19 @@
+<svg viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>Neon</title>
+ <defs>
+ <linearGradient x1="100%" y1="100%" x2="12.0694444%" y2="0%" id="linearGradient-1">
+ <stop stop-color="#62F755" offset="0%"></stop>
+ <stop stop-color="#8FF986" stop-opacity="0" offset="100%"></stop>
+ </linearGradient>
+ <linearGradient x1="100%" y1="100%" x2="40.6027778%" y2="76.8972222%" id="linearGradient-2">
+ <stop stop-color="#000000" stop-opacity="0.9" offset="0%"></stop>
+ <stop stop-color="#1A1A1A" stop-opacity="0" offset="100%"></stop>
+ </linearGradient>
+ </defs>
+ <g>
+ <path d="M0,44.1386667 C0,19.7615542 19.7615542,0 44.1386667,0 L211.861333,0 C236.238446,0 256,19.7615542 256,44.1386667 L256,186.787556 C256,212.003556 224.085333,222.947556 208.611556,203.043556 L160.220444,140.792889 L160.220444,216.277333 C160.220444,238.215556 142.436001,256 120.497778,256 L44.1386667,256 C19.7615542,256 0,236.238446 0,211.861333 L0,44.1386667 Z M44.1386667,35.3137778 C39.2604444,35.3137778 35.3137778,39.2604444 35.3137778,44.1315556 L35.3137778,211.861333 C35.3137778,216.739556 39.2604444,220.693333 44.1315556,220.693333 L121.820444,220.693333 C124.259556,220.693333 124.906667,218.716444 124.906667,216.277333 L124.906667,115.057778 C124.906667,89.8346667 156.821333,78.8906667 172.302222,98.8017778 L220.693333,161.045333 L220.693333,44.1386667 C220.693333,39.2604444 221.148444,35.3137778 216.277333,35.3137778 L44.1386667,35.3137778 Z" fill="#00E0D9"></path>
+ <path d="M0,44.1386667 C0,19.7615542 19.7615542,0 44.1386667,0 L211.861333,0 C236.238446,0 256,19.7615542 256,44.1386667 L256,186.787556 C256,212.003556 224.085333,222.947556 208.611556,203.043556 L160.220444,140.792889 L160.220444,216.277333 C160.220444,238.215556 142.436001,256 120.497778,256 L44.1386667,256 C19.7615542,256 0,236.238446 0,211.861333 L0,44.1386667 Z M44.1386667,35.3137778 C39.2604444,35.3137778 35.3137778,39.2604444 35.3137778,44.1315556 L35.3137778,211.861333 C35.3137778,216.739556 39.2604444,220.693333 44.1315556,220.693333 L121.820444,220.693333 C124.259556,220.693333 124.906667,218.716444 124.906667,216.277333 L124.906667,115.057778 C124.906667,89.8346667 156.821333,78.8906667 172.302222,98.8017778 L220.693333,161.045333 L220.693333,44.1386667 C220.693333,39.2604444 221.148444,35.3137778 216.277333,35.3137778 L44.1386667,35.3137778 Z" fill="url(#linearGradient-1)"></path>
+ <path d="M0,44.1386667 C0,19.7615542 19.7615542,0 44.1386667,0 L211.861333,0 C236.238446,0 256,19.7615542 256,44.1386667 L256,186.787556 C256,212.003556 224.085333,222.947556 208.611556,203.043556 L160.220444,140.792889 L160.220444,216.277333 C160.220444,238.215556 142.436001,256 120.497778,256 L44.1386667,256 C19.7615542,256 0,236.238446 0,211.861333 L0,44.1386667 Z M44.1386667,35.3137778 C39.2604444,35.3137778 35.3137778,39.2604444 35.3137778,44.1315556 L35.3137778,211.861333 C35.3137778,216.739556 39.2604444,220.693333 44.1315556,220.693333 L121.820444,220.693333 C124.259556,220.693333 124.906667,218.716444 124.906667,216.277333 L124.906667,115.057778 C124.906667,89.8346667 156.821333,78.8906667 172.302222,98.8017778 L220.693333,161.045333 L220.693333,44.1386667 C220.693333,39.2604444 221.148444,35.3137778 216.277333,35.3137778 L44.1386667,35.3137778 Z" fill-opacity="0.4" fill="url(#linearGradient-2)"></path>
+ <path d="M211.861333,0 C236.238446,0 256,19.7615542 256,44.1386667 L256,186.787556 C256,212.003556 224.085333,222.947556 208.611556,203.043556 L160.220444,140.792889 L160.220444,216.277333 C160.220444,238.215556 142.436001,256 120.497778,256 C121.667088,256 122.788506,255.535493 123.615333,254.708666 C124.44216,253.881839 124.906667,252.760421 124.906667,251.591111 L124.906667,115.057778 C124.906667,89.8346667 156.821333,78.8906667 172.302222,98.8017778 L220.693333,161.045333 L220.693333,8.82488889 C220.693333,3.95377778 216.739556,0 211.861333,0 Z" fill="#63F655"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/netlify.svg b/jarvis/ui/web/frontend/src/assets/clis/netlify.svg
new file mode 100644
index 0000000000..0c739d2e1d
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/netlify.svg
@@ -0,0 +1,12 @@
+<svg viewBox="0 0 256 226" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>netlify</title>
+ <g>
+ <polygon fill="#05BDBA" points="69.1805953 188.087106 66.7635841 188.087106 54.6985267 176.022048 54.6985267 173.605237 73.1428857 155.161078 85.9210874 155.161078 87.6247543 156.864745 87.6247543 169.642947"></polygon>
+ <polygon fill="#05BDBA" points="54.6985267 51.6279666 54.6985267 49.2109554 66.7635841 37.145898 69.1805953 37.145898 87.6247543 55.590057 87.6247543 68.3682587 85.9210874 70.0721256 73.1428857 70.0721256"></polygon>
+ <path d="M160.906229,149.197744 L143.3536,149.197744 L141.887515,147.731858 L141.887515,106.643468 C141.887515,99.3332396 139.014939,93.6670823 130.199028,93.4690977 C125.662183,93.350107 120.471588,93.4690977 114.924622,93.6868807 L114.092487,94.5388142 L114.092487,147.71206 L112.626401,149.177945 L95.0737724,149.177945 L93.6076869,147.71206 L93.6076869,77.5211437 L95.0737724,76.0550582 L134.577286,76.0550582 C149.930887,76.0550582 162.372315,88.4964862 162.372315,103.850087 L162.372315,147.731858 L160.906229,149.197744 Z" fill="#014847"></path>
+ <polygon fill="#05BDBA" points="71.6768002 122.888599 1.46602547 122.888599 0 121.422514 0 103.830288 1.46602547 102.364203 71.6768002 102.364203 73.1428857 103.830288 73.1428857 121.422514"></polygon>
+ <polygon fill="#05BDBA" points="254.534115 122.888599 184.323 122.888599 182.856914 121.422514 182.856914 103.830288 184.323 102.364203 254.534115 102.364203 256 103.830288 256 121.422514"></polygon>
+ <polygon fill="#05BDBA" points="117.876391 54.1241715 117.876391 1.46602547 119.342476 0 136.934702 0 138.400787 1.46602547 138.400787 54.1241715 136.934702 55.590057 119.342476 55.590057"></polygon>
+ <polygon fill="#05BDBA" points="117.876391 223.786517 117.876391 171.128831 119.342476 169.662745 136.934702 169.662745 138.400787 171.128831 138.400787 223.786517 136.934702 225.252402 119.342476 225.252402"></polygon>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/planetscale.svg b/jarvis/ui/web/frontend/src/assets/clis/planetscale.svg
new file mode 100644
index 0000000000..566465aeff
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/planetscale.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>PlanetScale</title><path d="M0 12C0 5.373 5.373 0 12 0c4.873 0 9.067 2.904 10.947 7.077l-15.87 15.87a11.981 11.981 0 0 1-1.935-1.099L14.99 12H12l-8.485 8.485A11.962 11.962 0 0 1 0 12Zm12.004 12L24 12.004C23.998 18.628 18.628 23.998 12.004 24Z"/></svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/railway.svg b/jarvis/ui/web/frontend/src/assets/clis/railway.svg
new file mode 100644
index 0000000000..370a0860ec
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/railway.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Railway</title><path d="M.113 10.27A13.026 13.026 0 000 11.48h18.23c-.064-.125-.15-.237-.235-.347-3.117-4.027-4.793-3.677-7.19-3.78-.8-.034-1.34-.048-4.524-.048-1.704 0-3.555.005-5.358.01-.234.63-.459 1.24-.567 1.737h9.342v1.216H.113v.002zm18.26 2.426H.009c.02.326.05.645.094.961h16.955c.754 0 1.179-.429 1.315-.96zm-17.318 4.28s2.81 6.902 10.93 7.024c4.855 0 9.027-2.883 10.92-7.024H1.056zM11.988 0C7.5 0 3.593 2.466 1.531 6.108l4.75-.005v-.002c3.71 0 3.849.016 4.573.047l.448.016c1.563.052 3.485.22 4.996 1.364.82.621 2.007 1.99 2.712 2.965.654.902.842 1.94.396 2.934-.408.914-1.289 1.458-2.353 1.458H.391s.099.42.249.886h22.748A12.026 12.026 0 0024 12.005C24 5.377 18.621 0 11.988 0z"/></svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/render.svg b/jarvis/ui/web/frontend/src/assets/clis/render.svg
new file mode 100644
index 0000000000..804a7ff8e2
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/render.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Render</title><path d="M18.263.007c-3.121-.147-5.744 2.109-6.192 5.082-.018.138-.045.272-.067.405-.696 3.703-3.936 6.507-7.827 6.507-1.388 0-2.691-.356-3.825-.979a.2024.2024 0 0 0-.302.178V24H12v-8.999c0-1.656 1.338-3 2.987-3h2.988c3.382 0 6.103-2.817 5.97-6.244-.12-3.084-2.61-5.603-5.682-5.75"/></svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/stripe.svg b/jarvis/ui/web/frontend/src/assets/clis/stripe.svg
new file mode 100644
index 0000000000..059900997a
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/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>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/supabase.svg b/jarvis/ui/web/frontend/src/assets/clis/supabase.svg
new file mode 100644
index 0000000000..c353286350
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/supabase.svg
@@ -0,0 +1,18 @@
+<svg viewBox="0 0 256 263" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <title>supabase</title>
+ <defs>
+ <linearGradient x1="20.8617445%" y1="20.6868812%" x2="63.4256086%" y2="44.0710077%" id="supabase-linearGradient-1">
+ <stop stop-color="#249361" offset="0%"></stop>
+ <stop stop-color="#3ECF8E" offset="100%"></stop>
+ </linearGradient>
+ <linearGradient x1="1.99116498%" y1="-13.1584008%" x2="21.4025077%" y2="34.708062%" id="supabase-linearGradient-2">
+ <stop stop-color="#000000" offset="0%"></stop>
+ <stop stop-color="#000000" stop-opacity="0" offset="100%"></stop>
+ </linearGradient>
+ </defs>
+ <g>
+ <path d="M149.601512,258.578826 C142.884085,267.038157 129.263882,262.403261 129.102024,251.601817 L126.735244,93.6176533 L232.963622,93.6176533 C252.204429,93.6176533 262.935398,115.840956 250.971119,130.909887 L149.601512,258.578826 Z" fill="url(#supabase-linearGradient-1)"></path>
+ <path d="M149.601512,258.578826 C142.884085,267.038157 129.263882,262.403261 129.102024,251.601817 L126.735244,93.6176533 L232.963622,93.6176533 C252.204429,93.6176533 262.935398,115.840956 250.971119,130.909887 L149.601512,258.578826 Z" fill-opacity="0.2" fill="url(#supabase-linearGradient-2)"></path>
+ <path d="M106.399023,4.36908575 C113.11645,-4.09118439 126.736889,0.544432392 126.898746,11.3460249 L127.935901,169.329953 L23.0369844,169.329953 C3.79559007,169.329953 -6.93568494,147.106651 5.02918175,132.037719 L106.399023,4.36908575 Z" fill="#3ECF8E"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/twilio.svg b/jarvis/ui/web/frontend/src/assets/clis/twilio.svg
new file mode 100644
index 0000000000..b4721c0a95
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/twilio.svg
@@ -0,0 +1,5 @@
+<svg viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+ <g>
+ <path d="M128,0 C198.656,0 256,57.344 256,128 C256,198.656 198.656,256 128,256 C57.344,256 0,198.656 0,128 C0,57.344 57.344,0 128,0 Z M128,33.792 C75.776,33.792 33.792,75.776 33.792,128 C33.792,180.224 75.776,222.208 128,222.208 C180.224,222.208 222.208,180.224 222.208,128 C222.208,75.776 180.224,33.792 128,33.792 Z M159.744,133.12 C174.448029,133.12 186.368,145.039971 186.368,159.744 C186.368,174.448029 174.448029,186.368 159.744,186.368 C145.039971,186.368 133.12,174.448029 133.12,159.744 C133.12,145.039971 145.039971,133.12 159.744,133.12 Z M96.256,133.12 C110.960029,133.12 122.88,145.039971 122.88,159.744 C122.88,174.448029 110.960029,186.368 96.256,186.368 C81.5519708,186.368 69.632,174.448029 69.632,159.744 C69.632,145.039971 81.5519708,133.12 96.256,133.12 Z M159.744,69.632 C174.448029,69.632 186.368,81.5519708 186.368,96.256 C186.368,110.960029 174.448029,122.88 159.744,122.88 C145.039971,122.88 133.12,110.960029 133.12,96.256 C133.12,81.5519708 145.039971,69.632 159.744,69.632 Z M96.256,69.632 C110.960029,69.632 122.88,81.5519708 122.88,96.256 C122.88,110.960029 110.960029,122.88 96.256,122.88 C81.5519708,122.88 69.632,110.960029 69.632,96.256 C69.632,81.5519708 81.5519708,69.632 96.256,69.632 Z" fill="#F12E45"></path>
+ </g>
+</svg>
diff --git a/jarvis/ui/web/frontend/src/assets/clis/vercel.svg b/jarvis/ui/web/frontend/src/assets/clis/vercel.svg
new file mode 100644
index 0000000000..956f5c7a99
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/assets/clis/vercel.svg
@@ -0,0 +1 @@
+<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Vercel</title><path d="m12 1.608 12 20.784H0Z"/></svg>
diff --git a/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx b/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx
new file mode 100644
index 0000000000..a4240497d3
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/clis/CliLogo.tsx
@@ -0,0 +1,192 @@
+import {
+ Boxes,
+ Cloud,
+ CreditCard,
+ Database,
+ GitBranch,
+ Rocket,
+ Terminal,
+ Briefcase,
+} from "lucide-react";
+import type { ComponentType, SVGProps } from "react";
+
+import { cn } from "@/lib/utils";
+
+/**
+ * The vendor mark on a CLI row.
+ *
+ * A CLI is a binary, but a user recognises the *company* — nobody scans a list
+ * for "wrangler", they look for the Cloudflare cloud. So the mapping goes
+ * CLI name -> VENDOR -> file, and the vendor table is the only place a new CLI
+ * needs an entry. Presentation only: nothing here decides behaviour (AP-21) —
+ * a CLI with no vendor row still works, it just draws its category glyph.
+ *
+ * Two render paths, recorded per file in `src/assets/clis/LOGOS.md`: `colour`
+ * is the vendor's full-colour icon as an <img>; `mono` is a single-colour
+ * glyph drawn as a CSS mask over the current text ink, so it follows the theme
+ * by itself instead of needing a light and a dark asset.
+ */
+type Render = "colour" | "mono";
+
+interface VendorLogo {
+ file: string;
+ render: Render;
+}
+
+const CLI_VENDOR_LOGOS: Record<string, VendorLogo> = {
+ aws: { file: "aws.svg", render: "mono" },
+ azure: { file: "azure.svg", render: "colour" },
+ cloudflare: { file: "cloudflare.svg", render: "mono" },
+ docker: { file: "docker.svg", render: "colour" },
+ firebase: { file: "firebase.svg", render: "colour" },
+ fly: { file: "fly.svg", render: "colour" },
+ github: { file: "github.svg", render: "mono" },
+ gitlab: { file: "gitlab.svg", render: "colour" },
+ google: { file: "google.svg", render: "colour" },
+ "google-cloud": { file: "google-cloud.svg", render: "colour" },
+ heroku: { file: "heroku.svg", render: "colour" },
+ kubernetes: { file: "kubernetes.svg", render: "colour" },
+ neon: { file: "neon.svg", render: "colour" },
+ netlify: { file: "netlify.svg", render: "colour" },
+ planetscale: { file: "planetscale.svg", render: "mono" },
+ railway: { file: "railway.svg", render: "mono" },
+ render: { file: "render.svg", render: "mono" },
+ stripe: { file: "stripe.svg", render: "mono" },
+ supabase: { file: "supabase.svg", render: "colour" },
+ twilio: { file: "twilio.svg", render: "colour" },
+ vercel: { file: "vercel.svg", render: "mono" },
+};
+
+/**
+ * Catalog CLI name -> vendor.
+ *
+ * Exact names, not substrings: `render` the vendor and `render` the binary
+ * happen to match, but `gh` and `glab` share no letters with their companies,
+ * and a substring rule would make `gam` a Google Cloud tool. Custom CLIs a
+ * user registers land on the category glyph, which is the honest answer for a
+ * binary this project has never heard of.
+ */
+const CLI_VENDORS: Record<string, string> = {
+ aws: "aws",
+ az: "azure",
+ docker: "docker",
+ firebase: "firebase",
+ flyctl: "fly",
+ gam: "google",
+ gcloud: "google-cloud",
+ gh: "github",
+ glab: "gitlab",
+ heroku: "heroku",
+ kubectl: "kubernetes",
+ neonctl: "neon",
+ netlify: "netlify",
+ pscale: "planetscale",
+ railway: "railway",
+ render: "render",
+ stripe: "stripe",
+ supabase: "supabase",
+ twilio: "twilio",
+ vercel: "vercel",
+ wrangler: "cloudflare",
+};
+
+/** The glyph a CLI falls back to: what kind of thing it drives. */
+const CATEGORY_GLYPHS: Record<string, ComponentType<SVGProps<SVGSVGElement>>> = {
+ cloud: Cloud,
+ paas: Rocket,
+ baas: Database,
+ git: GitBranch,
+ payments: CreditCard,
+ container: Boxes,
+ workspace: Briefcase,
+ self: Terminal,
+ other: Terminal,
+};
+
+// Bundled at build time (hashed URLs), so a mark renders offline and never
+// calls a third party. The glob keeps the folder the single source of truth:
+// dropping a file in and adding a vendor row is the whole wiring.
+const BUNDLED = import.meta.glob("../../assets/clis/*.svg", {
+ eager: true,
+ query: "?url",
+ import: "default",
+}) as Record<string, string>;
+
+export function cliVendor(cliName: string): string | null {
+ return CLI_VENDORS[cliName.toLowerCase()] ?? null;
+}
+
+export function CategoryGlyph({
+ category,
+ className,
+}: {
+ category: string;
+ className?: string;
+}) {
+ const Glyph = CATEGORY_GLYPHS[category] ?? Terminal;
+ return <Glyph className={className} />;
+}
+
+export function CliLogo({
+ cliName,
+ category,
+ className,
+ size = "md",
+}: {
+ /** The catalog name (`gcloud`, `wrangler`), not the display name. */
+ cliName: string;
+ /** Drives the fallback glyph when the CLI has no vendor mark. */
+ category: string;
+ className?: string;
+ /** `md` for table rows, `lg` for the detail page header. */
+ size?: "sm" | "md" | "lg";
+}) {
+ const vendor = cliVendor(cliName);
+ const entry = vendor ? CLI_VENDOR_LOGOS[vendor] : undefined;
+ const url = entry ? BUNDLED[`../../assets/clis/${entry.file}`] : undefined;
+
+ const tile = {
+ sm: "h-7 w-7 rounded-md",
+ md: "h-9 w-9 rounded-lg",
+ lg: "h-12 w-12 rounded-xl",
+ }[size];
+ const mark = { sm: "h-4 w-4", md: "h-5 w-5", lg: "h-7 w-7" }[size];
+
+ return (
+ <span
+ aria-hidden="true"
+ data-testid={`cli-logo-${cliName}`}
+ data-vendor={vendor ?? undefined}
+ className={cn(
+ // One neutral tile for every mark, so a list of CLIs reads as one table
+ // rather than a row of differently shaped app icons.
+ "inline-flex shrink-0 items-center justify-center overflow-hidden border border-border/70 bg-background/60",
+ tile,
+ className,
+ )}
+ >
+ {url && entry?.render === "mono" ? (
+ <span
+ className={cn("block bg-foreground/85", mark)}
+ style={{
+ WebkitMaskImage: `url("${url}")`,
+ maskImage: `url("${url}")`,
+ WebkitMaskRepeat: "no-repeat",
+ maskRepeat: "no-repeat",
+ WebkitMaskPosition: "center",
+ maskPosition: "center",
+ WebkitMaskSize: "contain",
+ maskSize: "contain",
+ }}
+ />
+ ) : url ? (
+ <img src={url} alt="" className={cn("block object-contain", mark)} />
+ ) : (
+ <CategoryGlyph
+ category={category}
+ className={cn("text-muted-foreground", mark)}
+ />
+ )}
+ </span>
+ );
+}
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 6dfbaa2573..66bb794773 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -504,7 +504,34 @@
},
"turn_steps": {
"thought_for": "{duration} nachgedacht",
- "failed": "fehlgeschlagen"
+ "failed": "fehlgeschlagen",
+ "result": "Ergebnis",
+ "error": "Fehler",
+ "no_details": "Keine Details aufgezeichnet",
+ "live_reply": "Schreibt…"
+ },
+ "tool_steps": {
+ "wiki": "Schaut im Wiki nach",
+ "wiki_write": "Schreibt ins Wiki",
+ "artifact": "Erstellt Artefakt",
+ "skill": "Führt Skill aus",
+ "skill_create": "Erstellt Skill",
+ "web": "Sucht im Web",
+ "screen": "Schaut auf den Bildschirm",
+ "screen_recall": "Erinnert sich an den Bildschirm",
+ "control": "Bedient den Bildschirm",
+ "navigate": "Öffnet",
+ "app": "Öffnet App",
+ "memory": "Merkt sich",
+ "profile": "Aktualisiert Profil",
+ "contact": "Sucht Kontakt",
+ "call": "Ruft an",
+ "worker": "Übergibt an einen Worker",
+ "shell": "Führt Befehl aus",
+ "model": "Wechselt Modell",
+ "mcp_admin": "Verwaltet MCP-Server",
+ "settings": "Liest Einstellungen",
+ "verify": "Prüft"
},
"home": {
"greeting_morning": "Guten Morgen{name_part}",
@@ -535,6 +562,56 @@
"background_wallpaper": "Hintergrundbild",
"background_hint": "Die App zeichnet standardmäßig auf einer einfarbigen Fläche. Wähle unten ein Bild, um es als Hintergrund zu nutzen; „Einfarbig“ bringt die schlichte Fläche zurück."
},
+ "agent_chat": {
+ "placeholder": "Frag mich alles …",
+ "empty_subtitle": "Modell wählen. Dann fragen.",
+ "pick_provider": "Anbieter",
+ "pick_model": "Modell",
+ "pick_effort": "Denkaufwand",
+ "pick_permission": "Berechtigungen",
+ "search_providers": "Anbieter suchen …",
+ "search_models": "Modelle suchen …",
+ "catalog_unavailable": "Agent-Chat nicht verfügbar",
+ "group_connected": "Verbunden",
+ "group_not_connected": "Nicht verbunden",
+ "provider_connect": "verbinden",
+ "provider_not_installed": "nicht installiert",
+ "provider_active": "aktiv",
+ "model_default": "Standardmodell",
+ "effort_default": "Standard-Aufwand",
+ "effort_none": "Kein Nachdenken",
+ "effort_minimal": "Minimal",
+ "effort_low": "Niedrig",
+ "effort_medium": "Mittel",
+ "effort_high": "Hoch",
+ "effort_xhigh": "Sehr hoch",
+ "effort_max": "Maximal",
+ "effort_ultra": "Ultra (delegiert Aufgaben)",
+ "mode_build": "Bauen",
+ "mode_plan": "Planen",
+ "build_hint": "Bau-Modus — der Agent darf Dateien ändern. Klick für Plan-Modus.",
+ "plan_hint": "Plan-Modus — der Agent liest und plant, ändert nichts. Klick für Bau-Modus.",
+ "folder": "Arbeitsordner",
+ "send": "Senden",
+ "stop": "Durchgang stoppen",
+ "hint_connect": "{provider} ist noch nicht verbunden.",
+ "hint_not_installed": "{provider} ist auf diesem Rechner nicht installiert.",
+ "open_api_keys": "API-Keys öffnen",
+ "working": "Arbeitet …",
+ "working_for": "Arbeitet seit {duration}",
+ "thinking": "Denkt nach …",
+ "thought": "Nachgedacht",
+ "thought_for": "{duration} nachgedacht",
+ "turn_cancelled": "Gestoppt.",
+ "approval_title": "Erlauben?",
+ "approval_allow": "Erlauben",
+ "approval_always": "Immer erlauben",
+ "approval_deny": "Ablehnen",
+ "approval_denied": "Abgelehnt — der Agent wurde informiert.",
+ "tool_input": "Eingabe",
+ "tool_output": "Ausgabe",
+ "tool_error": "Fehler"
+ },
"chats_view": {
"title": "Chat",
"subtitle": "Rede mit deinem Assistenten oder schreibe — beides landet im selben Event-Bus.",
@@ -587,6 +664,7 @@
"earlier": "frühere Schritte",
"step_brain": "Überlegt",
"step_tool": "Nutzt Werkzeug",
+ "step_thought": "Überlegt",
"step_update": "Zwischenstand",
"step_worker": "Übergibt an Hintergrund-Worker",
"step_cu_observe": "Schaut auf den Bildschirm",
@@ -1789,9 +1867,12 @@
"settings_view": {
"silence_window": {
"title": "Denkpause",
- "description": "Wie lange {name} in Stille wartet, bevor er deinen Satz übernimmt. Höher stellen, um mehr Zeit zum Innehalten und Zu-Ende-Denken zu haben; sprichst du innerhalb der Pause weiter, wird das Gesagte an dieselbe Anfrage angehängt. Gilt für beide Sprachmodi — Pipeline sofort, Realtime ab dem nächsten Satz (manche Sprachmodelle ab dem nächsten Anruf).",
+ "description": "Wie lange {name} in Stille wartet, bevor er deinen Satz übernimmt. Auf Automatisch nutzt jeder Sprachmodus seine eigene Werkseinstellung — das ist die kürzeste Pause. Höher stellen, um mehr Zeit zum Innehalten und Zu-Ende-Denken zu haben; sprichst du innerhalb der Pause weiter, wird das Gesagte an dieselbe Anfrage angehängt. Gilt für beide Sprachmodi — Pipeline sofort, Realtime ab dem nächsten Anruf.",
"unit_seconds": "s",
- "reset": "Auf Standard zurücksetzen (1,5 s)",
+ "automatic_label": "Automatisch",
+ "automatic_caption": "Werkseinstellung des Anbieters — kürzeste Pause.",
+ "saved_toast_automatic": "Denkpause auf Automatisch gesetzt.",
+ "reset": "Auf Standard zurücksetzen (Automatisch)",
"saved_toast": "Denkpause auf {0} gesetzt.",
"restart_caption": "Gespeichert — wird beim nächsten Start aktiv."
},
@@ -2950,7 +3031,7 @@
"section_secrets": "Secrets (API-Key-Auth)",
"secret_set": "gesetzt",
"secret_unset": "(nicht gesetzt)",
- "section_tool_examples": "Tool-Beispiele (für Brain)",
+ "section_tool_examples": "Beispielaufrufe",
"documentation": "Dokumentation",
"terminal_opened": "Terminal geoeffnet",
"follow_browser_login": "folge dem Browser-Login. Status wird automatisch geprueft.",
@@ -3023,7 +3104,34 @@
"top_commands": "Top-Commands",
"just_now": "gerade eben",
"ago_prefix": "vor",
- "ago_suffix": ""
+ "ago_suffix": "",
+ "group_label": "Kommandozeile",
+ "col_name": "CLI",
+ "col_status": "Status",
+ "col_activity": "Aktivität",
+ "filter_label": "CLIs filtern",
+ "filter_custom": "Eigene",
+ "search_placeholder": "CLIs durchsuchen…",
+ "search_no_hits": "Keine CLI passt zu dieser Suche.",
+ "add_custom": "Eigene hinzufügen",
+ "custom_word": "eigene",
+ "usage_7d": "{count}× in 7 Tagen",
+ "never_used": "noch nicht genutzt",
+ "back_to_list": "CLIs",
+ "category_all_categories": "Alle Kategorien",
+ "section_binary": "Programmdatei",
+ "section_commands": "Befehle",
+ "auth_mode_short": "Anmeldeart",
+ "auth_status_label": "Anmeldestatus",
+ "default_tier": "Standardstufe",
+ "blocked_patterns": "Gesperrt",
+ "allowed_patterns": "Erlaubt",
+ "history": "Verlauf",
+ "required_word": "erforderlich",
+ "clear": "Leeren",
+ "search_command": "Befehl suchen…",
+ "success_only": "Nur erfolgreiche",
+ "usage_stats": "{total} Aufrufe · {rate}% erfolgreich · ⌀ {avg} ms"
},
"cli_test_hub_view": {
"subtitle_tell": "Sag",
@@ -3041,7 +3149,7 @@
"placeholder_rest": "was es mit deinen CLIs tun soll…",
"cli_hint_label": "CLI-Hinweis (optional)",
"cli_hint_aria": "CLI-Hinweis",
- "let_decide": "entscheiden lassen",
+ "let_decide": "entscheidet",
"ctrl_cmd_enter": "Strg/Cmd + Enter",
"run_instruction": "Anweisung ausführen",
"running": "Läuft…",
@@ -3055,7 +3163,37 @@
"duration": "Dauer",
"command_label": "Befehl",
"steps": "Schritte",
- "no_tool_found": "hat kein passendes CLI-Tool gefunden. Formuliere die Anweisung konkreter oder gib einen CLI-Hinweis an."
+ "no_tool_found": "hat kein passendes CLI-Tool gefunden. Formuliere die Anweisung konkreter oder gib einen CLI-Hinweis an.",
+ "title": "CLI Test Hub",
+ "try_one": "Probier eines davon",
+ "runs": "Läufe",
+ "clear_runs": "Leeren",
+ "no_command": "kein Befehl",
+ "copy": "Kopieren",
+ "copied": "Kopiert",
+ "starters": {
+ "aws": "Zeig mir meine S3-Buckets",
+ "az": "Liste meine Azure-Ressourcengruppen",
+ "docker": "Zeig die laufenden Container",
+ "firebase": "Liste meine Firebase-Projekte",
+ "flyctl": "Liste meine Fly.io-Apps",
+ "gam": "Zeig die Nutzer in meinem Google Workspace",
+ "gcloud": "Liste meine Google-Cloud-Projekte",
+ "gh": "Zeig meine offenen Pull Requests",
+ "glab": "Zeig meine offenen Merge Requests",
+ "heroku": "Liste meine Heroku-Apps",
+ "kubectl": "Zeig die Pods im aktuellen Namespace",
+ "neonctl": "Liste meine Neon-Projekte",
+ "netlify": "Liste meine Netlify-Seiten",
+ "pscale": "Liste meine PlanetScale-Datenbanken",
+ "railway": "Zeig meine Railway-Projekte",
+ "render": "Liste meine Render-Dienste",
+ "stripe": "Zeig die letzten fünf Zahlungen",
+ "supabase": "Liste meine Supabase-Projekte",
+ "twilio": "Liste meine Twilio-Rufnummern",
+ "vercel": "Zeig meine letzten Vercel-Deployments",
+ "wrangler": "Liste meine Cloudflare Workers"
+ }
},
"workflows_view": {
"subtitle": "Deine gehosteten AI-Agent-Pipelines — cron-getriggert oder auf Knopfdruck.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 7ef00862c9..798fac697a 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -504,7 +504,34 @@
},
"turn_steps": {
"thought_for": "Thought for {duration}",
- "failed": "failed"
+ "failed": "failed",
+ "result": "Result",
+ "error": "Error",
+ "no_details": "No details recorded",
+ "live_reply": "Writing…"
+ },
+ "tool_steps": {
+ "wiki": "Looking in Wiki",
+ "wiki_write": "Writing to Wiki",
+ "artifact": "Creating artifact",
+ "skill": "Running skill",
+ "skill_create": "Creating skill",
+ "web": "Searching the web",
+ "screen": "Looking at the screen",
+ "screen_recall": "Recalling the screen",
+ "control": "Controlling the screen",
+ "navigate": "Opening",
+ "app": "Opening app",
+ "memory": "Remembering",
+ "profile": "Updating profile",
+ "contact": "Looking up contact",
+ "call": "Calling",
+ "worker": "Delegating to a worker",
+ "shell": "Running a command",
+ "model": "Switching model",
+ "mcp_admin": "Managing MCP server",
+ "settings": "Reading settings",
+ "verify": "Verifying"
},
"home": {
"greeting_morning": "Good morning{name_part}",
@@ -535,6 +562,56 @@
"background_wallpaper": "Wallpaper",
"background_hint": "The app paints on a plain colour by default. Pick a picture below to use it as your wallpaper; “Solid colour” brings the plain ground back."
},
+ "agent_chat": {
+ "placeholder": "Ask anything…",
+ "empty_subtitle": "Pick a model. Then ask.",
+ "pick_provider": "Provider",
+ "pick_model": "Model",
+ "pick_effort": "Reasoning effort",
+ "pick_permission": "Permissions",
+ "search_providers": "Search providers…",
+ "search_models": "Search models…",
+ "catalog_unavailable": "Agent chat unavailable",
+ "group_connected": "Connected",
+ "group_not_connected": "Not connected",
+ "provider_connect": "connect",
+ "provider_not_installed": "not installed",
+ "provider_active": "active",
+ "model_default": "Default model",
+ "effort_default": "Default effort",
+ "effort_none": "No reasoning",
+ "effort_minimal": "Minimal",
+ "effort_low": "Low",
+ "effort_medium": "Medium",
+ "effort_high": "High",
+ "effort_xhigh": "Extra high",
+ "effort_max": "Max",
+ "effort_ultra": "Ultra (delegates tasks)",
+ "mode_build": "Build",
+ "mode_plan": "Plan",
+ "build_hint": "Build mode — the agent may change files. Click for Plan mode.",
+ "plan_hint": "Plan mode — the agent reads and plans, changes nothing. Click for Build mode.",
+ "folder": "Working folder",
+ "send": "Send",
+ "stop": "Stop the turn",
+ "hint_connect": "{provider} is not connected yet.",
+ "hint_not_installed": "{provider} is not installed on this machine.",
+ "open_api_keys": "Open API Keys",
+ "working": "Working…",
+ "working_for": "Working for {duration}",
+ "thinking": "Thinking…",
+ "thought": "Thought",
+ "thought_for": "Thought for {duration}",
+ "turn_cancelled": "Stopped.",
+ "approval_title": "Allow this?",
+ "approval_allow": "Allow",
+ "approval_always": "Always allow",
+ "approval_deny": "Deny",
+ "approval_denied": "Denied — the agent was told so.",
+ "tool_input": "Input",
+ "tool_output": "Output",
+ "tool_error": "Error"
+ },
"chats_view": {
"title": "Chat",
"subtitle": "Talk to your assistant or type — both go through the same event bus.",
@@ -587,6 +664,7 @@
"earlier": "earlier steps",
"step_brain": "Reasoning",
"step_tool": "Using tool",
+ "step_thought": "Thinking",
"step_update": "Progress update",
"step_worker": "Delegating to background worker",
"step_cu_observe": "Looking at the screen",
@@ -1789,9 +1867,12 @@
"settings_view": {
"silence_window": {
"title": "Thinking pause",
- "description": "How long {name} waits in silence before it takes your turn. Raise it to give yourself more time to pause and finish a thought; if you keep talking inside the pause, the words are added to the same request. Applies to both voice modes — Pipeline right away, Realtime on the next turn (some voice models on the next call).",
+ "description": "How long {name} waits in silence before it takes your turn. On Automatic each voice mode keeps its own factory timing — the shortest pause. Raise it to give yourself more time to pause and finish a thought; if you keep talking inside the pause, the words are added to the same request. Applies to both voice modes — Pipeline right away, Realtime on the next call.",
"unit_seconds": "s",
- "reset": "Reset to default (1.5 s)",
+ "automatic_label": "Automatic",
+ "automatic_caption": "The provider's factory timing — the shortest pause.",
+ "saved_toast_automatic": "Thinking pause set to Automatic.",
+ "reset": "Reset to default (Automatic)",
"saved_toast": "Thinking pause set to {0}.",
"restart_caption": "Saved — applies on next start."
},
@@ -2950,7 +3031,7 @@
"section_secrets": "Secrets (API key auth)",
"secret_set": "set",
"secret_unset": "(not set)",
- "section_tool_examples": "Tool examples (for brain)",
+ "section_tool_examples": "Example calls",
"documentation": "Documentation",
"terminal_opened": "Terminal opened",
"follow_browser_login": "follow the browser login. Status is checked automatically.",
@@ -3023,7 +3104,34 @@
"top_commands": "Top commands",
"just_now": "just now",
"ago_prefix": "",
- "ago_suffix": "ago"
+ "ago_suffix": "ago",
+ "group_label": "Command line",
+ "col_name": "CLI",
+ "col_status": "Status",
+ "col_activity": "Activity",
+ "filter_label": "Filter CLIs",
+ "filter_custom": "Custom",
+ "search_placeholder": "Search CLIs…",
+ "search_no_hits": "No CLI matches this search.",
+ "add_custom": "Add custom",
+ "custom_word": "custom",
+ "usage_7d": "{count}× in 7 days",
+ "never_used": "not used yet",
+ "back_to_list": "CLIs",
+ "category_all_categories": "All categories",
+ "section_binary": "Binary",
+ "section_commands": "Commands",
+ "auth_mode_short": "Auth mode",
+ "auth_status_label": "Auth status",
+ "default_tier": "Default tier",
+ "blocked_patterns": "Blocked",
+ "allowed_patterns": "Allowed",
+ "history": "History",
+ "required_word": "required",
+ "clear": "Clear",
+ "search_command": "Search command…",
+ "success_only": "Successful only",
+ "usage_stats": "{total} calls · {rate}% successful · ⌀ {avg} ms"
},
"cli_test_hub_view": {
"subtitle_tell": "Tell",
@@ -3041,7 +3149,7 @@
"placeholder_rest": "what to do with your CLIs…",
"cli_hint_label": "CLI hint (optional)",
"cli_hint_aria": "CLI hint",
- "let_decide": "let decide",
+ "let_decide": "decides",
"ctrl_cmd_enter": "Ctrl/Cmd + Enter",
"run_instruction": "Run instruction",
"running": "Running…",
@@ -3055,7 +3163,37 @@
"duration": "Duration",
"command_label": "Command",
"steps": "Steps",
- "no_tool_found": "found no matching CLI tool. Phrase the instruction more concretely or give a CLI hint."
+ "no_tool_found": "found no matching CLI tool. Phrase the instruction more concretely or give a CLI hint.",
+ "title": "CLI Test Hub",
+ "try_one": "Try one of these",
+ "runs": "Runs",
+ "clear_runs": "Clear",
+ "no_command": "no command",
+ "copy": "Copy",
+ "copied": "Copied",
+ "starters": {
+ "aws": "List my S3 buckets",
+ "az": "List my Azure resource groups",
+ "docker": "List the running containers",
+ "firebase": "List my Firebase projects",
+ "flyctl": "List my Fly.io apps",
+ "gam": "Show my Google Workspace users",
+ "gcloud": "List my Google Cloud projects",
+ "gh": "Show my open pull requests",
+ "glab": "Show my open merge requests",
+ "heroku": "List my Heroku apps",
+ "kubectl": "Show the pods in the current namespace",
+ "neonctl": "List my Neon projects",
+ "netlify": "List my Netlify sites",
+ "pscale": "List my PlanetScale databases",
+ "railway": "Show my Railway projects",
+ "render": "List my Render services",
+ "stripe": "Show the last five payments",
+ "supabase": "List my Supabase projects",
+ "twilio": "List my Twilio phone numbers",
+ "vercel": "List my latest Vercel deployments",
+ "wrangler": "List my Cloudflare Workers"
+ }
},
"workflows_view": {
"subtitle": "Your hosted AI-agent pipelines — cron-triggered or at the push of a button.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index fff5088640..87c7538cce 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -504,7 +504,34 @@
},
"turn_steps": {
"thought_for": "Pensó durante {duration}",
- "failed": "falló"
+ "failed": "falló",
+ "result": "Resultado",
+ "error": "Error",
+ "no_details": "Sin detalles registrados",
+ "live_reply": "Escribiendo…"
+ },
+ "tool_steps": {
+ "wiki": "Consultando la Wiki",
+ "wiki_write": "Escribiendo en la Wiki",
+ "artifact": "Creando artefacto",
+ "skill": "Ejecutando skill",
+ "skill_create": "Creando skill",
+ "web": "Buscando en la web",
+ "screen": "Mirando la pantalla",
+ "screen_recall": "Recordando la pantalla",
+ "control": "Controlando la pantalla",
+ "navigate": "Abriendo",
+ "app": "Abriendo la app",
+ "memory": "Recordando",
+ "profile": "Actualizando el perfil",
+ "contact": "Buscando contacto",
+ "call": "Llamando",
+ "worker": "Delegando a un worker",
+ "shell": "Ejecutando un comando",
+ "model": "Cambiando de modelo",
+ "mcp_admin": "Gestionando servidor MCP",
+ "settings": "Leyendo ajustes",
+ "verify": "Verificando"
},
"home": {
"greeting_morning": "Buenos días{name_part}",
@@ -535,6 +562,56 @@
"background_wallpaper": "Fondo de pantalla",
"background_hint": "La app se dibuja sobre un color liso por defecto. Elige una imagen abajo para usarla de fondo; «Color sólido» devuelve la superficie lisa."
},
+ "agent_chat": {
+ "placeholder": "Pregunta lo que quieras…",
+ "empty_subtitle": "Elige un modelo. Luego pregunta.",
+ "pick_provider": "Proveedor",
+ "pick_model": "Modelo",
+ "pick_effort": "Esfuerzo de razonamiento",
+ "pick_permission": "Permisos",
+ "search_providers": "Buscar proveedores…",
+ "search_models": "Buscar modelos…",
+ "catalog_unavailable": "Chat de agente no disponible",
+ "group_connected": "Conectados",
+ "group_not_connected": "Sin conectar",
+ "provider_connect": "conectar",
+ "provider_not_installed": "no instalado",
+ "provider_active": "activo",
+ "model_default": "Modelo predeterminado",
+ "effort_default": "Esfuerzo predeterminado",
+ "effort_none": "Sin razonamiento",
+ "effort_minimal": "Mínimo",
+ "effort_low": "Bajo",
+ "effort_medium": "Medio",
+ "effort_high": "Alto",
+ "effort_xhigh": "Muy alto",
+ "effort_max": "Máximo",
+ "effort_ultra": "Ultra (delega tareas)",
+ "mode_build": "Construir",
+ "mode_plan": "Planificar",
+ "build_hint": "Modo construir: el agente puede cambiar archivos. Clic para el modo planificar.",
+ "plan_hint": "Modo planificar: el agente lee y planifica, no cambia nada. Clic para el modo construir.",
+ "folder": "Carpeta de trabajo",
+ "send": "Enviar",
+ "stop": "Detener el turno",
+ "hint_connect": "{provider} aún no está conectado.",
+ "hint_not_installed": "{provider} no está instalado en este equipo.",
+ "open_api_keys": "Abrir API Keys",
+ "working": "Trabajando…",
+ "working_for": "Trabajando desde hace {duration}",
+ "thinking": "Pensando…",
+ "thought": "Pensó",
+ "thought_for": "Pensó durante {duration}",
+ "turn_cancelled": "Detenido.",
+ "approval_title": "¿Permitir esto?",
+ "approval_allow": "Permitir",
+ "approval_always": "Permitir siempre",
+ "approval_deny": "Denegar",
+ "approval_denied": "Denegado: se informó al agente.",
+ "tool_input": "Entrada",
+ "tool_output": "Salida",
+ "tool_error": "Error"
+ },
"chats_view": {
"title": "Chat",
"subtitle": "Habla con tu asistente o escribe — ambos pasan por el mismo bus de eventos.",
@@ -587,6 +664,7 @@
"earlier": "pasos anteriores",
"step_brain": "Razonando",
"step_tool": "Usando herramienta",
+ "step_thought": "Pensando",
"step_update": "Actualización",
"step_worker": "Delegando a un worker en segundo plano",
"step_cu_observe": "Observando la pantalla",
@@ -1789,9 +1867,12 @@
"settings_view": {
"silence_window": {
"title": "Pausa para pensar",
- "description": "Cuánto espera {name} en silencio antes de tomar tu turno. Súbelo para darte más tiempo para pausar y terminar una idea; si sigues hablando dentro de la pausa, lo dicho se añade a la misma petición. Se aplica a ambos modos de voz — Pipeline de inmediato, Realtime a partir del siguiente turno (algunos modelos de voz a partir de la siguiente llamada).",
+ "description": "Cuánto espera {name} en silencio antes de tomar tu turno. En Automático cada modo de voz mantiene su propio ajuste de fábrica: la pausa más corta. Súbelo para darte más tiempo para pausar y terminar una idea; si sigues hablando dentro de la pausa, lo dicho se añade a la misma petición. Se aplica a ambos modos de voz: Pipeline de inmediato, Realtime a partir de la siguiente llamada.",
"unit_seconds": "s",
- "reset": "Restablecer al valor predeterminado (1,5 s)",
+ "automatic_label": "Automático",
+ "automatic_caption": "Ajuste de fábrica del proveedor: la pausa más corta.",
+ "saved_toast_automatic": "Pausa para pensar fijada en Automático.",
+ "reset": "Restablecer al valor predeterminado (Automático)",
"saved_toast": "Pausa para pensar fijada en {0}.",
"restart_caption": "Guardado — se aplica en el próximo inicio."
},
@@ -2950,7 +3031,7 @@
"section_secrets": "Secretos (autenticación con clave API)",
"secret_set": "establecido",
"secret_unset": "(no establecido)",
- "section_tool_examples": "Ejemplos de herramientas (para el cerebro)",
+ "section_tool_examples": "Llamadas de ejemplo",
"documentation": "Documentación",
"terminal_opened": "Terminal abierta",
"follow_browser_login": "sigue el inicio de sesión del navegador. El estado se comprueba automáticamente.",
@@ -3023,7 +3104,34 @@
"top_commands": "Comandos principales",
"just_now": "ahora mismo",
"ago_prefix": "hace",
- "ago_suffix": ""
+ "ago_suffix": "",
+ "group_label": "Línea de comandos",
+ "col_name": "CLI",
+ "col_status": "Estado",
+ "col_activity": "Actividad",
+ "filter_label": "Filtrar CLIs",
+ "filter_custom": "Propias",
+ "search_placeholder": "Buscar CLIs…",
+ "search_no_hits": "Ninguna CLI coincide con esta búsqueda.",
+ "add_custom": "Añadir propia",
+ "custom_word": "propia",
+ "usage_7d": "{count}× en 7 días",
+ "never_used": "aún sin usar",
+ "back_to_list": "CLIs",
+ "category_all_categories": "Todas las categorías",
+ "section_binary": "Binario",
+ "section_commands": "Comandos",
+ "auth_mode_short": "Modo de acceso",
+ "auth_status_label": "Estado de acceso",
+ "default_tier": "Nivel por defecto",
+ "blocked_patterns": "Bloqueado",
+ "allowed_patterns": "Permitido",
+ "history": "Historial",
+ "required_word": "obligatorio",
+ "clear": "Vaciar",
+ "search_command": "Buscar comando…",
+ "success_only": "Solo correctos",
+ "usage_stats": "{total} llamadas · {rate}% correctas · ⌀ {avg} ms"
},
"cli_test_hub_view": {
"subtitle_tell": "Dile a",
@@ -3041,7 +3149,7 @@
"placeholder_rest": "qué hacer con tus CLI…",
"cli_hint_label": "Sugerencia de CLI (opcional)",
"cli_hint_aria": "Sugerencia de CLI",
- "let_decide": "decida",
+ "let_decide": "decide",
"ctrl_cmd_enter": "Ctrl/Cmd + Intro",
"run_instruction": "Ejecutar instrucción",
"running": "Ejecutando…",
@@ -3055,7 +3163,37 @@
"duration": "Duración",
"command_label": "Comando",
"steps": "Pasos",
- "no_tool_found": "no encontró ninguna herramienta CLI adecuada. Formula la instrucción de forma más concreta o indica una sugerencia de CLI."
+ "no_tool_found": "no encontró ninguna herramienta CLI adecuada. Formula la instrucción de forma más concreta o indica una sugerencia de CLI.",
+ "title": "CLI Test Hub",
+ "try_one": "Prueba uno de estos",
+ "runs": "Ejecuciones",
+ "clear_runs": "Vaciar",
+ "no_command": "sin comando",
+ "copy": "Copiar",
+ "copied": "Copiado",
+ "starters": {
+ "aws": "Lista mis buckets de S3",
+ "az": "Lista mis grupos de recursos de Azure",
+ "docker": "Muestra los contenedores en ejecución",
+ "firebase": "Lista mis proyectos de Firebase",
+ "flyctl": "Lista mis apps de Fly.io",
+ "gam": "Muestra los usuarios de mi Google Workspace",
+ "gcloud": "Lista mis proyectos de Google Cloud",
+ "gh": "Muestra mis pull requests abiertas",
+ "glab": "Muestra mis merge requests abiertas",
+ "heroku": "Lista mis apps de Heroku",
+ "kubectl": "Muestra los pods del namespace actual",
+ "neonctl": "Lista mis proyectos de Neon",
+ "netlify": "Lista mis sitios de Netlify",
+ "pscale": "Lista mis bases de datos de PlanetScale",
+ "railway": "Muestra mis proyectos de Railway",
+ "render": "Lista mis servicios de Render",
+ "stripe": "Muestra los últimos cinco pagos",
+ "supabase": "Lista mis proyectos de Supabase",
+ "twilio": "Lista mis números de Twilio",
+ "vercel": "Muestra mis últimos despliegues de Vercel",
+ "wrangler": "Lista mis Cloudflare Workers"
+ }
},
"workflows_view": {
"subtitle": "Tus pipelines de agentes de IA alojados: activados por cron o con solo pulsar un botón.",
diff --git a/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx b/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx
index 7f37354e1c..af1df88165 100644
--- a/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx
+++ b/jarvis/ui/web/frontend/src/views/CliTestHubView.tsx
@@ -1,11 +1,20 @@
/**
* CLI Test Hub — drive any connected CLI through a plain-language instruction.
*
- * The user types what they want ("liste meine Google-Cloud-Projekte"), Jarvis
- * picks the matching `cli_<name>` tool, runs a real command through the safety
- * gate, and this view renders the full evidence trail: the chosen tool, the
- * exact command, the resolved risk tier, exit code, stdout/stderr, duration,
- * and Jarvis's natural-language summary.
+ * The user types what they want ("list my Google Cloud projects"), Jarvis picks
+ * the matching `cli_<name>` tool, runs a real command through the safety gate,
+ * and this view renders the full evidence trail: the chosen tool, the exact
+ * command, the resolved risk tier, exit code, stdout/stderr, duration, and
+ * Jarvis's natural-language summary.
+ *
+ * Shape — a composer, then a log:
+ * The instruction box is the first thing on the page and stays there; every run
+ * lands underneath it, newest first, with the previous ones collapsed to one
+ * line each. That is the difference between a form and a bench: comparing the
+ * command Jarvis chose this time against the one it chose last time is the
+ * whole point of a test hub, and the old single-slot layout threw the previous
+ * answer away on every run. The log lives for the life of the view — it is a
+ * scratchpad, not a record; the durable history is per-CLI under `Usage`.
*
* Backend contract:
* POST /api/clis/test-run (see useCliTestRun / the design spec)
@@ -14,26 +23,38 @@
* UI strings route through the in-house i18n system (English source, with de/es
* translations); all code-level identifiers stay English per project policy.
*/
-import { useMemo, useState } from "react";
+import { useMemo, useRef, useState } from "react";
import {
- Wand2,
- Play,
- Loader2,
- Terminal,
ArrowRight,
- ShieldAlert,
- ShieldCheck,
- Shield,
Ban,
+ Check,
+ ChevronDown,
ChevronRight,
- ExternalLink,
+ Copy,
+ FlaskConical,
+ Loader2,
+ Play,
+ RefreshCw,
+ Shield,
+ ShieldAlert,
+ ShieldCheck,
+ Sparkles,
+ Terminal,
+ Trash2,
} from "lucide-react";
-import { ViewHeader } from "@/views/ChatsView";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Button } from "@/components/ui/button";
-import { BrandedSelect } from "@/components/ui/select";
+import { CliLogo } from "@/components/clis/CliLogo";
+import {
+ ActionMenu,
+ IconButton,
+ Panel,
+ PanelHeader,
+ SoftButton,
+} from "@/components/extensions/primitives";
import { cn } from "@/lib/utils";
-import { useT } from "@/i18n";
+import { robustCopy } from "@/lib/clipboard";
+import { translate, useT } from "@/i18n";
import { useEventStore } from "@/store/events";
import {
useCliTestRun,
@@ -44,42 +65,36 @@ import {
} from "@/hooks/useClis";
// ---------------------------------------------------------------------------
-// Risk-tier visual language (brand severity coding — gold/charcoal + strokes)
+// Risk-tier visual language
// ---------------------------------------------------------------------------
interface RiskStyle {
label: string;
/** Tailwind classes for the badge chrome. */
badge: string;
- /** 3px left-stroke colour for the result panel (brand severity coding). */
- stroke: string;
Icon: React.ComponentType<{ className?: string }>;
}
const RISK_STYLES: Record<RiskTier, RiskStyle> = {
safe: {
label: "safe",
- badge: "border-emerald-500/40 bg-emerald-500/10 text-emerald-400",
- stroke: "border-l-emerald-500/70",
+ badge: "border-emerald-500/40 bg-emerald-500/10 text-emerald-500",
Icon: ShieldCheck,
},
monitor: {
// Monitor = brand gold: runs, but observed/logged.
label: "monitor",
badge: "border-primary/40 bg-primary/10 text-primary",
- stroke: "border-l-primary/70",
Icon: Shield,
},
ask: {
label: "ask",
- badge: "border-amber-500/40 bg-amber-500/10 text-amber-400",
- stroke: "border-l-amber-500/70",
+ badge: "border-amber-500/40 bg-amber-500/10 text-amber-500",
Icon: ShieldAlert,
},
block: {
label: "block",
badge: "border-destructive/50 bg-destructive/10 text-destructive",
- stroke: "border-l-destructive/80",
Icon: Ban,
},
};
@@ -91,7 +106,7 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {
<span
data-testid="risk-badge"
data-risk="unknown"
- className="inline-flex items-center gap-1.5 rounded-md border border-border px-2.5 py-0.5 text-[11px] font-semibold text-muted-foreground"
+ className="inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-0.5 text-[11px] font-medium text-muted-foreground"
>
{t("cli_test_hub_view.no_risk_tier")}
</span>
@@ -104,7 +119,7 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {
data-testid="risk-badge"
data-risk={tier}
className={cn(
- "inline-flex items-center gap-1.5 rounded-md border px-2.5 py-0.5 text-[11px] font-semibold uppercase tracking-wider",
+ "inline-flex items-center gap-1.5 rounded-md border px-2 py-0.5 text-[11px] font-medium",
style.badge,
)}
>
@@ -114,6 +129,33 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {
);
}
+// ---------------------------------------------------------------------------
+// Run log
+// ---------------------------------------------------------------------------
+
+interface RunRecord {
+ id: number;
+ instruction: string;
+ /** The CLI the user pinned, or "" when Jarvis chose freely. */
+ hint: string;
+ result: TestRunResponse | null;
+ /** Set when the request itself failed (network / 5xx). */
+ error: Error | null;
+}
+
+/**
+ * The CLI a run actually used.
+ *
+ * The backend answers with the tool id (`cli_gcloud`), which is what a logo
+ * lookup needs stripped. A run that resolved no tool falls back to whatever the
+ * user pinned, so a failed run still shows which CLI was aimed at.
+ */
+function cliOfRun(run: RunRecord): string | null {
+ const tool = run.result?.tool_called;
+ if (tool && tool.startsWith("cli_")) return tool.slice(4);
+ return run.hint || null;
+}
+
// ---------------------------------------------------------------------------
// Main view
// ---------------------------------------------------------------------------
@@ -121,11 +163,14 @@ function RiskBadge({ tier }: { tier: RiskTier | null }) {
export function CliTestHubView() {
const t = useT();
const assistantName = useEventStore((s) => s.assistantName);
- const { data, isLoading: listLoading, error: listError } = useClisList();
+ const { data, isLoading: listLoading, error: listError, refetch, isFetching } = useClisList();
const testRun = useCliTestRun();
const [instruction, setInstruction] = useState("");
const [cliHint, setCliHint] = useState<string>("");
+ const [runs, setRuns] = useState<RunRecord[]>([]);
+ const [expanded, setExpanded] = useState<number | null>(null);
+ const nextId = useRef(1);
const connected = useMemo<CliSummary[]>(
() => (data?.clis ?? []).filter((c) => c.status === "connected"),
@@ -134,51 +179,88 @@ export function CliTestHubView() {
const canRun = instruction.trim().length > 0 && !testRun.isPending;
+ const record = (entry: Omit<RunRecord, "id">) => {
+ const id = nextId.current++;
+ setRuns((prev) => [{ ...entry, id }, ...prev]);
+ // Newest run opens; the previous one folds away to its one-line summary.
+ setExpanded(id);
+ };
+
const handleRun = () => {
const trimmed = instruction.trim();
if (!trimmed || testRun.isPending) return;
- testRun.mutate({
- instruction: trimmed,
- cli_hint: cliHint || undefined,
- });
+ const hint = cliHint;
+ testRun.mutate(
+ { instruction: trimmed, cli_hint: cliHint || undefined },
+ {
+ onSuccess: (result) =>
+ record({ instruction: trimmed, hint, result, error: null }),
+ onError: (err) =>
+ record({ instruction: trimmed, hint, result: null, error: err as Error }),
+ },
+ );
};
return (
- <div className="flex h-full flex-col">
- <ViewHeader
- icon={<Wand2 className="h-4 w-4 text-primary" />}
- title="CLI Test Hub"
- subtitle={`${t("cli_test_hub_view.subtitle_tell")} ${assistantName} ${t("cli_test_hub_view.subtitle_rest")}`}
- />
-
+ <div className="flex h-full min-h-0 flex-col">
<ScrollArea className="flex-1">
- <div className="mx-auto w-full max-w-3xl space-y-5 p-6">
- <ConnectedClisPanel
- clis={connected}
- isLoading={listLoading}
- error={listError as Error | null}
- />
-
- <PromptPanel
- instruction={instruction}
- onInstructionChange={setInstruction}
- cliHint={cliHint}
- onCliHintChange={setCliHint}
- connectedClis={connected}
- canRun={canRun}
- isPending={testRun.isPending}
- onRun={handleRun}
+ <div className="mx-auto w-full max-w-4xl px-8 py-6">
+ <PanelHeader
+ title={t("cli_test_hub_view.title")}
+ subtitle={`${t("cli_test_hub_view.subtitle_tell")} ${assistantName} ${t("cli_test_hub_view.subtitle_rest")}`}
+ actions={
+ <IconButton
+ label={t("clis_view.reload")}
+ onClick={() => void refetch()}
+ busy={isFetching && !data}
+ >
+ <RefreshCw className="h-4 w-4" />
+ </IconButton>
+ }
/>
- {testRun.isPending && <ResultSkeleton />}
-
- {!testRun.isPending && testRun.error && (
- <RequestErrorPanel error={testRun.error as Error} />
- )}
+ <div className="mt-5 space-y-5">
+ <Composer
+ instruction={instruction}
+ onInstructionChange={setInstruction}
+ cliHint={cliHint}
+ onCliHintChange={setCliHint}
+ connectedClis={connected}
+ canRun={canRun}
+ isPending={testRun.isPending}
+ onRun={handleRun}
+ />
+
+ {runs.length === 0 && !testRun.isPending && (
+ <Starters
+ connectedClis={connected}
+ onPick={(cli, text) => {
+ setCliHint(cli);
+ setInstruction(text);
+ }}
+ />
+ )}
- {!testRun.isPending && testRun.data && (
- <ResultPanel result={testRun.data} />
- )}
+ <ConnectedClisPanel
+ clis={connected}
+ isLoading={listLoading}
+ error={listError as Error | null}
+ />
+
+ {testRun.isPending && <ResultSkeleton />}
+
+ {runs.length > 0 && (
+ <RunLog
+ runs={runs}
+ expanded={expanded}
+ onToggle={(id) => setExpanded((cur) => (cur === id ? null : id))}
+ onClear={() => {
+ setRuns([]);
+ setExpanded(null);
+ }}
+ />
+ )}
+ </div>
</div>
</ScrollArea>
</div>
@@ -186,106 +268,10 @@ export function CliTestHubView() {
}
// ---------------------------------------------------------------------------
-// Connected-CLIs panel
-// ---------------------------------------------------------------------------
-
-function ConnectedClisPanel({
- clis,
- isLoading,
- error,
-}: {
- clis: CliSummary[];
- isLoading: boolean;
- error: Error | null;
-}) {
- const t = useT();
- const setActiveSection = useEventStore((s) => s.setActiveSection);
- const assistantName = useEventStore((s) => s.assistantName);
-
- return (
- <section className="rounded-xl border border-border bg-card/40 p-4">
- <div className="mb-3 flex items-center justify-between gap-2">
- <h3 className="text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("cli_test_hub_view.connected_clis")}
- </h3>
- {clis.length > 0 && (
- <span className="rounded-full border border-primary/30 bg-primary/10 px-2 py-0.5 text-[10px] font-semibold text-primary">
- {clis.length} {t("cli_test_hub_view.available")}
- </span>
- )}
- </div>
-
- {isLoading && (
- <div className="flex items-center gap-2 text-xs text-muted-foreground">
- <Loader2 className="h-3.5 w-3.5 animate-spin" />
- {t("cli_test_hub_view.loading_connected")}
- </div>
- )}
-
- {!isLoading && error && (
- <div
- data-testid="clis-load-error"
- className="rounded-md border border-destructive/40 border-l-[3px] border-l-destructive bg-destructive/10 p-3 text-xs text-destructive"
- >
- {t("cli_test_hub_view.list_load_failed")}: {error.message}
- </div>
- )}
-
- {!isLoading && !error && clis.length === 0 && (
- <div
- data-testid="clis-empty"
- className="flex flex-col items-start gap-3 rounded-md border border-border border-l-[3px] border-l-primary/50 bg-background/40 p-4"
- >
- <div className="flex items-center gap-2 text-sm font-medium">
- <Terminal className="h-4 w-4 text-muted-foreground" />
- {t("cli_test_hub_view.no_cli_connected")}
- </div>
- <p className="text-xs leading-relaxed text-muted-foreground">
- {assistantName} {t("cli_test_hub_view.no_cli_help")}
- </p>
- <Button
- size="sm"
- variant="ghost"
- className="border border-primary/30 text-primary hover:bg-primary/10"
- onClick={() => setActiveSection("clis")}
- >
- {t("cli_test_hub_view.go_to_clis")}
- <ArrowRight className="ml-1.5 h-3.5 w-3.5" />
- </Button>
- </div>
- )}
-
- {!isLoading && !error && clis.length > 0 && (
- <ul className="flex flex-wrap gap-1.5" data-testid="clis-chips">
- {clis.map((cli) => (
- <li
- key={cli.name}
- className="inline-flex items-center gap-1.5 rounded-full border border-primary/30 bg-card/60 px-2.5 py-1 text-xs"
- title={cli.description}
- >
- <span
- className="h-1.5 w-1.5 rounded-full bg-primary shadow-[0_0_6px_rgba(255,214,10,0.6)]"
- aria-hidden
- />
- <span className="font-medium">{cli.name}</span>
- {cli.version && (
- <span className="font-mono text-[10px] text-muted-foreground/70">
- {cli.version}
- </span>
- )}
- </li>
- ))}
- </ul>
- )}
- </section>
- );
-}
-
-// ---------------------------------------------------------------------------
-// Prompt panel
+// Composer — the instruction box and everything that belongs to sending it
// ---------------------------------------------------------------------------
-function PromptPanel({
+function Composer({
instruction,
onInstructionChange,
cliHint,
@@ -315,51 +301,35 @@ function PromptPanel({
};
return (
- <section className="rounded-xl border border-border bg-card/40 p-4">
- <label htmlFor="cli-test-instruction" className="block">
- <span className="mb-1.5 block text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("cli_test_hub_view.instruction_label")}
- </span>
- <textarea
- id="cli-test-instruction"
- value={instruction}
- onChange={(e) => onInstructionChange(e.target.value)}
- onKeyDown={handleKeyDown}
+ <div
+ className={cn(
+ // One card, not a labelled form field: the border belongs to the whole
+ // composer and lights up when the caret is anywhere inside it.
+ "rounded-2xl border border-border bg-card/50 transition-colors",
+ "focus-within:border-foreground/25",
+ )}
+ >
+ <textarea
+ id="cli-test-instruction"
+ value={instruction}
+ onChange={(e) => onInstructionChange(e.target.value)}
+ onKeyDown={handleKeyDown}
+ disabled={isPending}
+ rows={3}
+ aria-label={`${t("cli_test_hub_view.instruction_to")} ${assistantName}`}
+ placeholder={`${t("cli_test_hub_view.subtitle_tell")} ${assistantName}, ${t("cli_test_hub_view.placeholder_rest")}`}
+ className="w-full resize-none bg-transparent px-4 pb-2 pt-4 text-[15px] leading-relaxed placeholder:text-muted-foreground focus:outline-none disabled:opacity-60"
+ />
+
+ <div className="flex flex-wrap items-center gap-2 border-t border-border/70 px-3 py-2.5">
+ <TargetPicker
+ value={cliHint}
+ onChange={onCliHintChange}
+ connectedClis={connectedClis}
disabled={isPending}
- rows={3}
- aria-label={`${t("cli_test_hub_view.instruction_to")} ${assistantName}`}
- placeholder={`${t("cli_test_hub_view.subtitle_tell")} ${assistantName}, ${t("cli_test_hub_view.placeholder_rest")}`}
- className="w-full resize-y rounded-md border border-input bg-background px-3 py-2 text-sm leading-relaxed focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-60"
/>
- </label>
-
- <div className="mt-3 flex flex-wrap items-end justify-between gap-3">
- <label htmlFor="cli-test-hint" className="block">
- <span className="mb-1 block text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("cli_test_hub_view.cli_hint_label")}
- </span>
- <BrandedSelect
- id="cli-test-hint"
- value={cliHint}
- onValueChange={onCliHintChange}
- disabled={isPending}
- ariaLabel={t("cli_test_hub_view.cli_hint_aria")}
- className="min-w-[180px] py-1.5 text-xs"
- options={[
- {
- value: "",
- label: `${assistantName} ${t("cli_test_hub_view.let_decide")}`,
- },
- ...connectedClis.map((cli) => ({
- value: cli.name,
- label: cli.name,
- })),
- ]}
- />
- </label>
-
- <div className="flex items-center gap-3">
- <span className="hidden text-[10px] text-muted-foreground/60 sm:inline">
+ <div className="ml-auto flex items-center gap-3">
+ <span className="hidden text-[11px] text-muted-foreground sm:inline">
{t("cli_test_hub_view.ctrl_cmd_enter")}
</span>
<Button
@@ -383,7 +353,237 @@ function PromptPanel({
</Button>
</div>
</div>
- </section>
+ </div>
+ );
+}
+
+/**
+ * Which CLI a run is aimed at.
+ *
+ * A dropdown of bare slugs ("gcloud", "gh", "wrangler") asks the reader to
+ * translate binary names back into companies, so every entry carries its
+ * vendor's mark. The first entry hands the choice back to Jarvis, which is the
+ * default and the point of the hub.
+ */
+function TargetPicker({
+ value,
+ onChange,
+ connectedClis,
+ disabled,
+}: {
+ value: string;
+ onChange: (v: string) => void;
+ connectedClis: CliSummary[];
+ disabled: boolean;
+}) {
+ const t = useT();
+ const assistantName = useEventStore((s) => s.assistantName);
+ const selected = connectedClis.find((c) => c.name === value) ?? null;
+ const anyLabel = `${assistantName} ${t("cli_test_hub_view.let_decide")}`;
+
+ return (
+ <ActionMenu
+ align="start"
+ label={t("cli_test_hub_view.cli_hint_aria")}
+ actions={[
+ {
+ id: "__any",
+ label: anyLabel,
+ icon: value === "" ? <Check className="h-3.5 w-3.5" /> : <Sparkles className="h-3.5 w-3.5" />,
+ onSelect: () => onChange(""),
+ },
+ ...connectedClis.map((cli, index) => ({
+ id: cli.name,
+ label: cli.display_name,
+ separatorAbove: index === 0,
+ icon: <CliLogo cliName={cli.name} category={cli.category} size="sm" className="h-4 w-4 rounded border-0 bg-transparent" />,
+ onSelect: () => onChange(cli.name),
+ })),
+ ]}
+ trigger={({ open, toggle }) => (
+ <SoftButton
+ onClick={toggle}
+ disabled={disabled}
+ ariaExpanded={open}
+ ariaHasPopup="menu"
+ ariaLabel={t("cli_test_hub_view.cli_hint_aria")}
+ >
+ {selected ? (
+ <>
+ <CliLogo
+ cliName={selected.name}
+ category={selected.category}
+ size="sm"
+ className="h-4 w-4 rounded border-0 bg-transparent"
+ />
+ {selected.display_name}
+ </>
+ ) : (
+ <>
+ <Sparkles className="h-3.5 w-3.5 text-muted-foreground" />
+ {anyLabel}
+ </>
+ )}
+ <ChevronDown className={cn("h-3.5 w-3.5 transition-transform", open && "rotate-180")} />
+ </SoftButton>
+ )}
+ />
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Starters — what to type, for the people who have never used this page
+// ---------------------------------------------------------------------------
+
+/**
+ * A ready-made instruction for a CLI, or null when none is written for it.
+ *
+ * The strings live in the locale files under `cli_test_hub_view.starters.<cli>`;
+ * an unwritten one resolves to the key itself, which is the "no starter" signal.
+ * Read-only commands on purpose — a suggestion the app puts in your mouth must
+ * never be the one that deletes a cluster.
+ */
+function starterFor(cliName: string): string | null {
+ const key = `cli_test_hub_view.starters.${cliName}`;
+ const text = translate(key);
+ return text === key ? null : text;
+}
+
+function Starters({
+ connectedClis,
+ onPick,
+}: {
+ connectedClis: CliSummary[];
+ onPick: (cli: string, text: string) => void;
+}) {
+ const t = useT();
+ const suggestions = useMemo(
+ () =>
+ connectedClis
+ .map((cli) => ({ cli, text: starterFor(cli.name) }))
+ .filter((s): s is { cli: CliSummary; text: string } => s.text !== null)
+ .slice(0, 4),
+ [connectedClis],
+ );
+
+ if (suggestions.length === 0) return null;
+
+ return (
+ <div>
+ <div className="mb-2 text-xs text-muted-foreground">
+ {t("cli_test_hub_view.try_one")}
+ </div>
+ <ul className="flex flex-wrap gap-2">
+ {suggestions.map(({ cli, text }) => (
+ <li key={cli.name}>
+ <button
+ type="button"
+ onClick={() => onPick(cli.name, text)}
+ className="inline-flex items-center gap-2 rounded-lg border border-border bg-card/40 px-3 py-1.5 text-left text-xs text-foreground/85 transition-colors hover:border-foreground/20 hover:bg-sheen/[0.06]"
+ >
+ <CliLogo
+ cliName={cli.name}
+ category={cli.category}
+ size="sm"
+ className="h-4 w-4 rounded border-0 bg-transparent"
+ />
+ {text}
+ </button>
+ </li>
+ ))}
+ </ul>
+ </div>
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Connected-CLIs panel
+// ---------------------------------------------------------------------------
+
+function ConnectedClisPanel({
+ clis,
+ isLoading,
+ error,
+}: {
+ clis: CliSummary[];
+ isLoading: boolean;
+ error: Error | null;
+}) {
+ const t = useT();
+ const setActiveSection = useEventStore((s) => s.setActiveSection);
+ const assistantName = useEventStore((s) => s.assistantName);
+
+ if (isLoading) {
+ return (
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <Loader2 className="h-3.5 w-3.5 animate-spin" />
+ {t("cli_test_hub_view.loading_connected")}
+ </div>
+ );
+ }
+
+ if (error) {
+ return (
+ <div
+ data-testid="clis-load-error"
+ className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-xs text-destructive"
+ >
+ {t("cli_test_hub_view.list_load_failed")}: {error.message}
+ </div>
+ );
+ }
+
+ if (clis.length === 0) {
+ return (
+ <div
+ data-testid="clis-empty"
+ className="rounded-xl border border-border bg-card/50 p-5"
+ >
+ <div className="flex flex-col items-start gap-3">
+ <div className="flex items-center gap-2 text-sm font-medium">
+ <Terminal className="h-4 w-4 text-muted-foreground" />
+ {t("cli_test_hub_view.no_cli_connected")}
+ </div>
+ <p className="text-xs leading-relaxed text-muted-foreground">
+ {assistantName} {t("cli_test_hub_view.no_cli_help")}
+ </p>
+ <SoftButton onClick={() => setActiveSection("clis")}>
+ {t("cli_test_hub_view.go_to_clis")}
+ <ArrowRight className="h-3.5 w-3.5" />
+ </SoftButton>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div>
+ <div className="mb-2 text-xs text-muted-foreground">
+ {t("cli_test_hub_view.connected_clis")} · {clis.length}
+ </div>
+ <ul className="flex flex-wrap gap-1.5" data-testid="clis-chips">
+ {clis.map((cli) => (
+ <li
+ key={cli.name}
+ className="inline-flex items-center gap-1.5 rounded-lg border border-border bg-card/40 py-1 pl-1.5 pr-2.5 text-xs"
+ title={cli.description}
+ >
+ <CliLogo
+ cliName={cli.name}
+ category={cli.category}
+ size="sm"
+ className="h-5 w-5"
+ />
+ <span className="font-medium">{cli.name}</span>
+ {cli.version && (
+ <span className="font-mono text-[11px] text-muted-foreground">
+ {cli.version}
+ </span>
+ )}
+ </li>
+ ))}
+ </ul>
+ </div>
);
}
@@ -395,10 +595,10 @@ function ResultSkeleton() {
const t = useT();
const assistantName = useEventStore((s) => s.assistantName);
return (
- <section
+ <div
data-testid="result-skeleton"
aria-busy="true"
- className="space-y-3 rounded-xl border border-border border-l-[3px] border-l-primary/40 bg-card/40 p-5"
+ className="space-y-3 rounded-xl border border-border bg-card/50 p-5"
>
<div className="flex items-center gap-2 text-sm text-muted-foreground">
<Loader2 className="h-4 w-4 animate-spin text-primary" />
@@ -407,10 +607,118 @@ function ResultSkeleton() {
<div className="h-3 w-2/3 animate-jarvis-pulse rounded bg-muted-foreground/15" />
<div className="h-3 w-1/2 animate-jarvis-pulse rounded bg-muted-foreground/15" />
<div className="h-20 w-full animate-jarvis-pulse rounded bg-muted-foreground/10" />
+ </div>
+ );
+}
+
+// ---------------------------------------------------------------------------
+// Run log
+// ---------------------------------------------------------------------------
+
+function RunLog({
+ runs,
+ expanded,
+ onToggle,
+ onClear,
+}: {
+ runs: RunRecord[];
+ expanded: number | null;
+ onToggle: (id: number) => void;
+ onClear: () => void;
+}) {
+ const t = useT();
+ return (
+ <section>
+ <div className="mb-2 flex items-center justify-between gap-2">
+ <div className="text-xs text-muted-foreground">
+ {t("cli_test_hub_view.runs")} · {runs.length}
+ </div>
+ {runs.length > 1 && (
+ <button
+ type="button"
+ onClick={onClear}
+ className="inline-flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground"
+ >
+ <Trash2 className="h-3.5 w-3.5" />
+ {t("cli_test_hub_view.clear_runs")}
+ </button>
+ )}
+ </div>
+ <div className="space-y-2">
+ {runs.map((run) => (
+ <RunCard
+ key={run.id}
+ run={run}
+ open={expanded === run.id}
+ onToggle={() => onToggle(run.id)}
+ />
+ ))}
+ </div>
</section>
);
}
+function RunCard({
+ run,
+ open,
+ onToggle,
+}: {
+ run: RunRecord;
+ open: boolean;
+ onToggle: () => void;
+}) {
+ const t = useT();
+ const cli = cliOfRun(run);
+ const failed = Boolean(run.error) || run.result?.ok === false || Boolean(run.result?.error);
+
+ return (
+ <Panel
+ className={cn(
+ "overflow-hidden",
+ failed ? "border-destructive/35" : open && "border-foreground/15",
+ )}
+ >
+ <button
+ type="button"
+ onClick={onToggle}
+ aria-expanded={open}
+ className="flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-sheen/[0.04]"
+ >
+ {cli ? (
+ <CliLogo cliName={cli} category="other" size="sm" />
+ ) : (
+ <span className="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border/70 bg-background/60">
+ <FlaskConical className="h-4 w-4 text-muted-foreground" />
+ </span>
+ )}
+ <span className="min-w-0 flex-1">
+ <span className="block truncate text-sm">{run.instruction}</span>
+ <span className="mt-0.5 block truncate font-mono text-[11px] text-muted-foreground">
+ {run.result?.command ?? run.error?.message ?? t("cli_test_hub_view.no_command")}
+ </span>
+ </span>
+ {run.result && <ExitCodeBadge code={run.result.exit_code} compact={!open} />}
+ <ChevronRight
+ className={cn(
+ "h-4 w-4 shrink-0 text-muted-foreground transition-transform",
+ open && "rotate-90",
+ )}
+ />
+ </button>
+
+ {open && (
+ <div className="border-t border-border/70 px-4 py-4">
+ {run.error ? (
+ <RequestErrorPanel error={run.error} />
+ ) : run.result ? (
+ <ResultPanel result={run.result} />
+ ) : null}
+ </div>
+ )}
+ </Panel>
+ );
+}
+
// ---------------------------------------------------------------------------
// Request-level error (network / 5xx — the mutation itself rejected)
// ---------------------------------------------------------------------------
@@ -418,9 +726,9 @@ function ResultSkeleton() {
function RequestErrorPanel({ error }: { error: Error }) {
const t = useT();
return (
- <section
+ <div
data-testid="request-error"
- className="rounded-xl border border-destructive/40 border-l-[3px] border-l-destructive bg-destructive/10 p-5"
+ className="rounded-lg border border-destructive/40 bg-destructive/10 p-4"
>
<h3 className="mb-1 text-sm font-semibold text-destructive">
{t("cli_test_hub_view.request_failed")}
@@ -431,45 +739,31 @@ function RequestErrorPanel({ error }: { error: Error }) {
<code className="mx-1 font-mono">/api/clis/test-run</code>{" "}
{t("cli_test_hub_view.backend_check_suffix")}
</p>
- </section>
+ </div>
);
}
// ---------------------------------------------------------------------------
-// Result panel
+// Result panel — the evidence trail for one run
// ---------------------------------------------------------------------------
function ResultPanel({ result }: { result: TestRunResponse }) {
const t = useT();
const assistantName = useEventStore((s) => s.assistantName);
const failed = result.ok === false || Boolean(result.error);
- // Severity stroke for the whole panel: failures dominate, otherwise the
- // resolved risk tier drives the colour; default to gold (brand accent).
- const stroke = failed
- ? "border-l-destructive/80"
- : result.risk_tier && result.risk_tier in RISK_STYLES
- ? RISK_STYLES[result.risk_tier].stroke
- : "border-l-primary/60";
-
const hasSteps = result.steps && result.steps.length > 1;
return (
- <section
- data-testid="result-panel"
- className={cn(
- "space-y-4 rounded-xl border border-border border-l-[3px] bg-card/50 p-5",
- stroke,
- )}
- >
+ <div data-testid="result-panel" className="space-y-4">
{/* Summary — the prominent, human-readable headline. */}
<div>
- <div className="mb-1 flex items-center gap-2 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- <Wand2 className="h-3 w-3 text-primary" />
+ <div className="mb-1 flex items-center gap-1.5 text-xs text-muted-foreground">
+ <Sparkles className="h-3 w-3" />
{assistantName} {t("cli_test_hub_view.says")}
</div>
<p
data-testid="result-summary"
- className="font-display text-base leading-relaxed text-foreground"
+ className="text-[15px] leading-relaxed text-foreground"
>
{result.summary || (failed ? t("cli_test_hub_view.command_failed") : "—")}
</p>
@@ -483,7 +777,7 @@ function ResultPanel({ result }: { result: TestRunResponse }) {
</span>
</MetaChip>
<RiskBadge tier={result.risk_tier} />
- <ExitCodeBadge code={result.exit_code} />
+ <ExitCodeBadge code={result.exit_code} testId="result-exit-code" />
{typeof result.duration_ms === "number" && (
<MetaChip label={t("cli_test_hub_view.duration")}>
<span data-testid="result-duration" className="tabular-nums">
@@ -495,24 +789,18 @@ function ResultPanel({ result }: { result: TestRunResponse }) {
{/* The exact command. */}
{result.command && (
- <div>
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("cli_test_hub_view.command_label")}
- </div>
- <pre
- data-testid="result-command"
- className="overflow-x-auto rounded-md border border-border bg-background px-3 py-2 font-mono text-xs text-foreground scrollbar-jarvis"
- >
- <code>{result.command}</code>
- </pre>
- </div>
+ <CodeBlock
+ title={t("cli_test_hub_view.command_label")}
+ content={result.command}
+ testId="result-command"
+ />
)}
{/* Inline error (the run produced a structured error string). */}
{result.error && (
<div
data-testid="result-error"
- className="rounded-md border border-destructive/40 border-l-[3px] border-l-destructive bg-destructive/10 px-3 py-2 text-xs text-destructive"
+ className="rounded-lg border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive"
>
{result.error}
</div>
@@ -539,16 +827,16 @@ function ResultPanel({ result }: { result: TestRunResponse }) {
{/* Multi-step plan (only render when >1 step). */}
{hasSteps && (
<div>
- <div className="mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground/70">
+ <div className="mb-1.5 text-xs text-muted-foreground">
{t("cli_test_hub_view.steps")} ({result.steps.length})
</div>
<ol data-testid="result-steps" className="space-y-1.5">
{result.steps.map((step, idx) => (
<li
key={`${step.tool}-${idx}`}
- className="flex items-start gap-2 rounded-md border border-border bg-background/40 px-3 py-2"
+ className="flex items-start gap-2.5 rounded-lg border border-border bg-background/40 px-3 py-2"
>
- <span className="mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-primary/15 text-[10px] font-semibold text-primary tabular-nums">
+ <span className="mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-sheen/[0.08] text-[11px] font-medium tabular-nums text-muted-foreground">
{idx + 1}
</span>
<div className="min-w-0 flex-1">
@@ -569,12 +857,11 @@ function ResultPanel({ result }: { result: TestRunResponse }) {
{/* Empty result hint — no tool resolved at all. */}
{!result.tool_called && !result.command && !result.error && (
- <div className="flex items-center gap-2 rounded-md border border-border border-l-[3px] border-l-primary/40 bg-background/40 px-3 py-2 text-xs text-muted-foreground">
- <ExternalLink className="h-3.5 w-3.5" />
+ <div className="rounded-lg border border-border bg-background/40 px-3 py-2 text-xs text-muted-foreground">
{assistantName} {t("cli_test_hub_view.no_tool_found")}
</div>
)}
- </section>
+ </div>
);
}
@@ -590,22 +877,37 @@ function MetaChip({
children: React.ReactNode;
}) {
return (
- <span className="inline-flex items-center gap-1.5 rounded-md border border-border bg-background/40 px-2.5 py-0.5 text-[11px]">
- <span className="text-muted-foreground/70">{label}</span>
+ <span className="inline-flex items-center gap-1.5 rounded-md border border-border bg-background/40 px-2 py-0.5 text-[11px]">
+ <span className="text-muted-foreground">{label}</span>
<span className="text-foreground">{children}</span>
</span>
);
}
-function ExitCodeBadge({ code }: { code: number | null }) {
+/**
+ * The exit code of a run.
+ *
+ * Appears twice per run — once folded into the log row, once in the evidence
+ * block — so the test id travels with the evidence copy rather than being
+ * stamped on both: a `data-testid` names one element, not a shape.
+ */
+function ExitCodeBadge({
+ code,
+ compact,
+ testId,
+}: {
+ code: number | null;
+ compact?: boolean;
+ testId?: string;
+}) {
if (code === null || code === undefined) {
return (
<span
- data-testid="result-exit-code"
+ data-testid={testId}
data-exit="null"
- className="inline-flex items-center gap-1.5 rounded-md border border-border bg-background/40 px-2.5 py-0.5 text-[11px] text-muted-foreground"
+ className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-background/40 px-2 py-0.5 text-[11px] text-muted-foreground"
>
- <span className="text-muted-foreground/70">Exit</span>
+ {!compact && <span className="text-muted-foreground">Exit</span>}
<span>—</span>
</span>
);
@@ -613,16 +915,16 @@ function ExitCodeBadge({ code }: { code: number | null }) {
const ok = code === 0;
return (
<span
- data-testid="result-exit-code"
+ data-testid={testId}
data-exit={String(code)}
className={cn(
- "inline-flex items-center gap-1.5 rounded-md border px-2.5 py-0.5 text-[11px] font-semibold tabular-nums",
+ "inline-flex shrink-0 items-center gap-1.5 rounded-md border px-2 py-0.5 text-[11px] font-medium tabular-nums",
ok
- ? "border-emerald-500/40 bg-emerald-500/10 text-emerald-400"
+ ? "border-emerald-500/40 bg-emerald-500/10 text-emerald-500"
: "border-destructive/50 bg-destructive/10 text-destructive",
)}
>
- <span className="font-normal text-muted-foreground/70">Exit</span>
+ {!compact && <span className="font-normal text-muted-foreground">Exit</span>}
{code}
</span>
);
@@ -630,13 +932,13 @@ function ExitCodeBadge({ code }: { code: number | null }) {
function StepExitCode({ code }: { code: number | null }) {
if (code === null || code === undefined) {
- return <span className="text-muted-foreground/60">exit —</span>;
+ return <span className="text-muted-foreground/70">exit —</span>;
}
return (
<span
className={cn(
"tabular-nums",
- code === 0 ? "text-emerald-400" : "text-destructive",
+ code === 0 ? "text-emerald-500" : "text-destructive",
)}
>
exit {code}
@@ -644,6 +946,48 @@ function StepExitCode({ code }: { code: number | null }) {
);
}
+/** A one-line command with a copy button — the thing people want to re-run. */
+function CodeBlock({
+ title,
+ content,
+ testId,
+}: {
+ title: string;
+ content: string;
+ testId: string;
+}) {
+ const t = useT();
+ const [copied, setCopied] = useState(false);
+ return (
+ <div>
+ <div className="mb-1 flex items-center justify-between gap-2">
+ <span className="text-xs text-muted-foreground">{title}</span>
+ <button
+ type="button"
+ aria-label={t("cli_test_hub_view.copy")}
+ onClick={() => {
+ void robustCopy(content).then((ok) => {
+ if (!ok) return;
+ setCopied(true);
+ window.setTimeout(() => setCopied(false), 1500);
+ });
+ }}
+ className="inline-flex items-center gap-1 text-[11px] text-muted-foreground transition-colors hover:text-foreground"
+ >
+ {copied ? <Check className="h-3 w-3" /> : <Copy className="h-3 w-3" />}
+ {copied ? t("cli_test_hub_view.copied") : t("cli_test_hub_view.copy")}
+ </button>
+ </div>
+ <pre
+ data-testid={testId}
+ className="overflow-x-auto rounded-lg border border-border bg-background px-3 py-2 font-mono text-xs text-foreground scrollbar-jarvis"
+ >
+ <code>{content}</code>
+ </pre>
+ </div>
+ );
+}
+
function OutputBlock({
title,
content,
@@ -657,10 +1001,8 @@ function OutputBlock({
}) {
return (
<div>
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {title}
- </div>
- <ScrollArea className="max-h-60 rounded-md border border-border bg-background">
+ <div className="mb-1 text-xs text-muted-foreground">{title}</div>
+ <ScrollArea className="max-h-60 rounded-lg border border-border bg-background">
<pre
data-testid={testId}
className={cn(
diff --git a/jarvis/ui/web/frontend/src/views/ClisHubView.tsx b/jarvis/ui/web/frontend/src/views/ClisHubView.tsx
index 8c4f9bae9e..406d6c628a 100644
--- a/jarvis/ui/web/frontend/src/views/ClisHubView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ClisHubView.tsx
@@ -1,38 +1,93 @@
-import { useEventStore } from "@/store/events";
-import { SectionTabBar, type SectionTab } from "@/components/layout/SectionTabBar";
+import { TerminalSquare, FlaskConical } from "lucide-react";
+import type { ComponentType, SVGProps } from "react";
+
+import { useEventStore, type SectionId } from "@/store/events";
+import { useT } from "@/i18n";
+import { cn } from "@/lib/utils";
import { ClisView } from "@/views/ClisView";
import { CliTestHubView } from "@/views/CliTestHubView";
/**
- * Combined "CLIs" section.
- *
- * Merges the CLIs list and the CLI Test Hub behind a single sidebar entry with
- * one flat top tab bar:
+ * Combined "CLIs & CLI Test Hub" section.
*
- * [ CLIs ] [ CLI Test Hub ]
+ * One settings-style surface, the same shape as "Skills, Plugins & MCPs": a
+ * narrow navigation column on the left under one heading, and the chosen area
+ * on the right. The two areas are the catalog (a quiet table of every CLI, with
+ * a detail page in place) and the test hub (a composer that drives any
+ * connected CLI in plain language).
*
- * Same thin-wrapper pattern as ExtensionsView (the active sidebar section id
- * `clis` / `cli-test-hub` doubles as the tab state). The child views are
- * embedded verbatim — they rehydrate their own state from React Query / the
- * store, so the unmount/remount on tab switch is harmless.
+ * Design note — why this is a thin wrapper, not a rewrite:
+ * The active sidebar section id (`activeSection` in the event store) *is* the
+ * navigation state. The section ids `clis` and `cli-test-hub` stay alive in the
+ * five-layer nav enum, so routing, deep links and voice navigation ("open the
+ * CLI Test Hub") keep working unchanged; only the presentation collapses to one
+ * sidebar entry. The child views rehydrate their own state from React Query and
+ * the store, so the unmount/remount on a switch is harmless.
*/
-const TABS = [
- { id: "clis", labelKey: "nav.clis" },
- { id: "cli-test-hub", labelKey: "nav.cli_test_hub" },
-] as const satisfies readonly SectionTab[];
+interface AreaSpec {
+ id: SectionId;
+ labelKey: string;
+ icon: ComponentType<SVGProps<SVGSVGElement>>;
+}
+
+const AREAS = [
+ { id: "clis", labelKey: "nav.clis", icon: TerminalSquare },
+ // A bench where you try a command before trusting it — not a wand.
+ { id: "cli-test-hub", labelKey: "nav.cli_test_hub", icon: FlaskConical },
+] as const satisfies readonly AreaSpec[];
+
+type AreaId = (typeof AREAS)[number]["id"];
export function ClisHubView() {
+ const t = useT();
const active = useEventStore((s) => s.activeSection);
+ const setActive = useEventStore((s) => s.setActiveSection);
// The router only mounts us for clis/cli-test-hub; any other value is
- // unexpected — fall back to the CLIs tab defensively.
- const current = TABS.some((tab) => tab.id === active) ? active : "clis";
+ // unexpected — fall back to the catalog defensively.
+ const current: AreaId = AREAS.some((a) => a.id === active) ? (active as AreaId) : "clis";
return (
- <div className="flex h-full flex-col">
- <SectionTabBar tabs={TABS} />
- <div className="min-h-0 flex-1 overflow-hidden">
+ <div className="flex h-full min-h-0">
+ <nav
+ aria-label={t("clis_view.group_label")}
+ className="flex w-[200px] shrink-0 flex-col border-r border-border px-3 py-5"
+ >
+ <p className="px-2.5 pb-2 text-[11px] font-medium text-muted-foreground">
+ {t("clis_view.group_label")}
+ </p>
+ <ul className="space-y-0.5">
+ {AREAS.map((area) => {
+ const Icon = area.icon;
+ const isActive = area.id === current;
+ return (
+ <li key={area.id}>
+ <button
+ type="button"
+ onClick={() => setActive(area.id)}
+ aria-current={isActive ? "page" : undefined}
+ className={cn(
+ "flex w-full items-center gap-2.5 rounded-md px-2.5 py-2 text-left text-sm transition-colors",
+ isActive
+ ? "bg-sheen/[0.08] font-medium text-foreground"
+ : "text-foreground/75 hover:bg-sheen/[0.05] hover:text-foreground",
+ )}
+ >
+ <Icon
+ className={cn(
+ "h-4 w-4 shrink-0",
+ isActive ? "text-foreground" : "text-muted-foreground",
+ )}
+ />
+ <span className="flex-1 truncate">{t(area.labelKey)}</span>
+ </button>
+ </li>
+ );
+ })}
+ </ul>
+ </nav>
+ <div className="min-h-0 min-w-0 flex-1">
{current === "clis" && <ClisView />}
{current === "cli-test-hub" && <CliTestHubView />}
</div>
diff --git a/jarvis/ui/web/frontend/src/views/ClisView.tsx b/jarvis/ui/web/frontend/src/views/ClisView.tsx
index 7a6c5080a3..50b432dc9b 100644
--- a/jarvis/ui/web/frontend/src/views/ClisView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ClisView.tsx
@@ -1,27 +1,53 @@
+/**
+ * The CLI catalog — every command-line tool Jarvis can drive, as one table.
+ *
+ * Same settings surface as Skills, Plugins & MCPs: a quiet table with a row per
+ * CLI, and a detail page that replaces the table in place when a row is opened.
+ * It deliberately reuses `components/extensions/primitives` rather than owning
+ * a second look, so the two sections cannot drift apart.
+ *
+ * Every row leads with the **vendor's own mark** (see `components/clis/CliLogo`)
+ * — a list of 22 command-line tools is unscannable by name alone, and people
+ * recognise the Cloudflare cloud long before they recognise "wrangler".
+ */
import { useMemo, useState } from "react";
import {
- Terminal,
- RefreshCw,
- Cloud,
- Database,
- CreditCard,
- Github,
- Container,
- Briefcase,
+ Check,
+ Clock,
ExternalLink,
- ChevronRight,
- Plus,
- Play,
+ ListFilter,
LogIn,
LogOut,
- Clock,
+ Plus,
+ RefreshCw,
+ Search,
+ Terminal,
Trash2,
X,
} from "lucide-react";
-import { ViewHeader } from "@/views/ChatsView";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Button } from "@/components/ui/button";
import { BrandedSelect } from "@/components/ui/select";
+import { CliLogo } from "@/components/clis/CliLogo";
+import {
+ ActionMenu,
+ BackLink,
+ Cell,
+ DetailHeader,
+ EmptyRow,
+ FactRows,
+ IconButton,
+ InlineSearch,
+ Panel,
+ PanelHeader,
+ SegmentedFilter,
+ SoftButton,
+ StatusDot,
+ Table,
+ TableHead,
+ TableRow,
+ type Column,
+} from "@/components/extensions/primitives";
import { cn } from "@/lib/utils";
import {
useCheckCli,
@@ -39,57 +65,28 @@ import {
type CliStatus,
type CliSummary,
} from "@/hooks/useClis";
-import { translate, useT } from "@/i18n";
+import { fill, translate, useT } from "@/i18n";
import { useEventStore } from "@/store/events";
-// Colour + dot styling per status (locale-independent). The human-readable
-// label is resolved separately through `statusLabel` so it can be translated.
-const STATUS_STYLES: Record<CliStatus, { labelKey: string; color: string; dotClass: string }> = {
- connected: {
- labelKey: "clis_view.status_connected",
- color: "text-primary",
- dotClass: "bg-primary shadow-[0_0_8px_rgba(255,214,10,0.6)]",
- },
- disconnected: {
- labelKey: "clis_view.status_disconnected",
- color: "text-muted-foreground",
- dotClass: "bg-muted-foreground/40",
- },
- not_installed: {
- labelKey: "clis_view.status_not_installed",
- color: "text-muted-foreground/70",
- dotClass: "bg-muted-foreground/20",
- },
- error: {
- labelKey: "clis_view.status_error",
- color: "text-destructive",
- dotClass: "bg-destructive",
- },
- checking: {
- labelKey: "clis_view.status_checking",
- color: "text-muted-foreground",
- dotClass: "bg-muted-foreground animate-jarvis-pulse",
- },
-};
-
-function statusLabel(status: CliStatus): string {
- return translate(STATUS_STYLES[status].labelKey);
-}
+// ---------------------------------------------------------------------------
+// Status vocabulary
+// ---------------------------------------------------------------------------
-const ICONS_BY_CATEGORY: Record<string, React.ComponentType<{ className?: string }>> = {
- cloud: Cloud,
- paas: Cloud,
- baas: Database,
- git: Github,
- payments: CreditCard,
- container: Container,
- workspace: Briefcase,
- other: Terminal,
+type StatusTone = "ok" | "off" | "warn" | "error" | "busy";
+
+// One place decides how a status reads and how it is coloured. The tones come
+// from the shared `StatusDot`, so a connected CLI looks exactly like a running
+// MCP server one section over.
+const STATUS_TONES: Record<CliStatus, { labelKey: string; tone: StatusTone }> = {
+ connected: { labelKey: "clis_view.status_connected", tone: "ok" },
+ disconnected: { labelKey: "clis_view.status_disconnected", tone: "off" },
+ not_installed: { labelKey: "clis_view.status_not_installed", tone: "off" },
+ error: { labelKey: "clis_view.status_error", tone: "error" },
+ checking: { labelKey: "clis_view.status_checking", tone: "busy" },
};
-function iconForCli(cli: CliSummary) {
- const Icon = ICONS_BY_CATEGORY[cli.category] ?? Terminal;
- return <Icon className="h-4 w-4 text-muted-foreground/80 shrink-0" />;
+function statusLabel(status: CliStatus): string {
+ return translate(STATUS_TONES[status].labelKey);
}
// Wrap a compact "5m"/"3h"/"2d" delta with the localized "ago" marker. The
@@ -121,16 +118,24 @@ function formatDateTime(ts: number): string {
type FilterTab = "all" | "connected" | "installed" | "custom";
+// ---------------------------------------------------------------------------
+// Catalog
+// ---------------------------------------------------------------------------
+
export function ClisView() {
const t = useT();
const assistantName = useEventStore((s) => s.assistantName);
- const { data, isLoading, error, refetch } = useClisList();
+ const { data, isLoading, error, refetch, isFetching } = useClisList();
const [filter, setFilter] = useState<FilterTab>("all");
const [categoryFilter, setCategoryFilter] = useState<string | null>(null);
+ const [query, setQuery] = useState("");
+ const [searchOpen, setSearchOpen] = useState(false);
const [selectedName, setSelectedName] = useState<string | null>(null);
const [showWizard, setShowWizard] = useState(false);
const [usageFor, setUsageFor] = useState<string | null>(null);
+ const customCount = data?.clis.filter((c) => c.is_custom).length ?? 0;
+
const filtered = useMemo(() => {
if (!data) return [];
let list = data.clis;
@@ -138,248 +143,315 @@ export function ClisView() {
if (filter === "installed") list = list.filter((c) => c.installed);
if (filter === "custom") list = list.filter((c) => c.is_custom);
if (categoryFilter) list = list.filter((c) => c.category === categoryFilter);
+ const needle = query.trim().toLowerCase();
+ if (needle) {
+ // Name, slug and description all searchable: people look for "postgres"
+ // as readily as for "neonctl".
+ list = list.filter((c) =>
+ [c.display_name, c.name, c.description, c.category]
+ .join(" ")
+ .toLowerCase()
+ .includes(needle),
+ );
+ }
return list;
- }, [data, filter, categoryFilter]);
+ }, [data, filter, categoryFilter, query]);
+
+ const columns: Column[] = [
+ { id: "name", label: t("clis_view.col_name") },
+ { id: "version", label: "Version", width: "96px" },
+ { id: "status", label: t("clis_view.col_status"), width: "150px" },
+ { id: "activity", label: t("clis_view.col_activity"), width: "136px" },
+ ];
+
+ const closeSearch = () => {
+ setSearchOpen(false);
+ setQuery("");
+ };
- return (
- <div className="flex h-full">
- <div className="flex h-full flex-1 flex-col">
- <ViewHeader
- icon={<Terminal className="h-4 w-4 text-primary" />}
- title="CLIs"
- subtitle={
- data
- ? `${data.connected} ${t("clis_view.subtitle_connected")} · ${data.installed} ${t("clis_view.subtitle_installed")} · ${data.total} ${t("clis_view.subtitle_in_catalog")}`
- : t("common.loading")
- }
- right={
- <div className="flex items-center gap-1">
- <Button
- size="sm"
- variant="ghost"
- onClick={() => setShowWizard(true)}
- title={t("clis_view.add_custom_cli_title")}
- >
- <Plus className="h-3.5 w-3.5" />
- <span className="ml-1.5 text-xs">Add Custom</span>
- </Button>
- <Button size="sm" variant="ghost" onClick={() => refetch()} title={t("clis_view.reload")}>
- <RefreshCw className="h-3.5 w-3.5" />
- </Button>
- </div>
- }
+ const dialogs = (
+ <>
+ {showWizard && <CustomCliWizard onClose={() => setShowWizard(false)} />}
+ {usageFor && <UsageDrawer name={usageFor} onClose={() => setUsageFor(null)} />}
+ </>
+ );
+
+ if (selectedName) {
+ return (
+ <div className="flex h-full min-h-0 flex-col">
+ <CliDetailPage
+ name={selectedName}
+ onBack={() => setSelectedName(null)}
+ onShowUsage={() => setUsageFor(selectedName)}
/>
+ {dialogs}
+ </div>
+ );
+ }
- <div className="flex flex-wrap items-center gap-2 border-b border-border px-6 py-3">
- {(
- [
- ["all", `${t("clis_view.filter_all")} (${data?.total ?? 0})`],
- ["connected", `${t("clis_view.filter_connected")} (${data?.connected ?? 0})`],
- ["installed", `${t("clis_view.filter_installed")} (${data?.installed ?? 0})`],
- [
- "custom",
- `Custom (${data?.clis.filter((c) => c.is_custom).length ?? 0})`,
- ],
- ] as const
- ).map(([key, label]) => (
- <button
- key={key}
- type="button"
- onClick={() => setFilter(key)}
- className={cn(
- "rounded-full border px-3 py-1 text-xs transition-colors",
- filter === key
- ? "border-primary/40 bg-primary/10 text-primary"
- : "border-border text-muted-foreground hover:text-foreground",
- )}
- >
- {label}
- </button>
- ))}
-
- {data && data.categories.length > 0 && (
- <div className="ml-auto flex items-center gap-1.5">
- <span className="text-xs text-muted-foreground/70">{t("clis_view.category_label")}</span>
- <button
- type="button"
- onClick={() => setCategoryFilter(null)}
- className={cn(
- "rounded-full border px-2 py-0.5 text-[11px] transition-colors",
- categoryFilter === null
- ? "border-primary/40 bg-primary/10 text-primary"
- : "border-border text-muted-foreground hover:text-foreground",
- )}
- >
- {t("clis_view.category_all")}
- </button>
- {data.categories.map((cat) => (
- <button
- key={cat}
- type="button"
- onClick={() =>
- setCategoryFilter((prev) => (prev === cat ? null : cat))
- }
- className={cn(
- "rounded-full border px-2 py-0.5 text-[11px] transition-colors",
- categoryFilter === cat
- ? "border-primary/40 bg-primary/10 text-primary"
- : "border-border text-muted-foreground hover:text-foreground",
- )}
+ return (
+ <div className="flex h-full min-h-0 flex-col">
+ <ScrollArea className="flex-1">
+ <div className="mx-auto w-full max-w-5xl px-8 py-6">
+ <PanelHeader
+ title="CLIs"
+ subtitle={
+ data
+ ? `${data.connected} ${t("clis_view.subtitle_connected")} · ${data.installed} ${t("clis_view.subtitle_installed")} · ${data.total} ${t("clis_view.subtitle_in_catalog")}`
+ : t("common.loading")
+ }
+ actions={
+ <>
+ <IconButton
+ label={t("clis_view.search_placeholder")}
+ active={searchOpen}
+ onClick={() => (searchOpen ? closeSearch() : setSearchOpen(true))}
>
- {cat}
- </button>
- ))}
+ <Search className="h-4 w-4" />
+ </IconButton>
+ <IconButton
+ label={t("clis_view.reload")}
+ onClick={() => void refetch()}
+ busy={isFetching && !data}
+ >
+ <RefreshCw className="h-4 w-4" />
+ </IconButton>
+ <SoftButton onClick={() => setShowWizard(true)} className="ml-1">
+ <Plus className="h-3.5 w-3.5" />
+ {t("clis_view.add_custom")}
+ </SoftButton>
+ </>
+ }
+ />
+
+ {searchOpen && (
+ <div className="mt-4 flex items-center gap-2">
+ <div className="flex-1">
+ <InlineSearch
+ value={query}
+ onChange={setQuery}
+ placeholder={t("clis_view.search_placeholder")}
+ autoFocus
+ />
+ </div>
+ <IconButton label={t("common.close")} onClick={closeSearch}>
+ <X className="h-4 w-4" />
+ </IconButton>
</div>
)}
- </div>
- <ScrollArea className="flex-1">
- <div className="p-6">
- {isLoading && <div className="text-sm text-muted-foreground">{t("common.loading")}</div>}
+ <div className="mt-4 flex flex-wrap items-center justify-between gap-2">
+ <SegmentedFilter
+ label={t("clis_view.filter_label")}
+ value={filter}
+ onChange={setFilter}
+ options={[
+ { id: "all", label: t("clis_view.filter_all"), count: data?.total ?? 0 },
+ { id: "connected", label: t("clis_view.filter_connected"), count: data?.connected ?? 0 },
+ { id: "installed", label: t("clis_view.filter_installed"), count: data?.installed ?? 0 },
+ { id: "custom", label: t("clis_view.filter_custom"), count: customCount },
+ ]}
+ />
+ {data && data.categories.length > 0 && (
+ <CategoryMenu
+ categories={data.categories}
+ value={categoryFilter}
+ onChange={setCategoryFilter}
+ />
+ )}
+ </div>
- {error && (
- <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-4 text-sm text-destructive">
- {(error as Error).message}
+ <p className="mt-4 max-w-2xl text-xs leading-relaxed text-muted-foreground">
+ {assistantName} {t("clis_view.intro_can_call")}{" "}
+ <span className="text-foreground">{t("clis_view.intro_connected_word")}</span>{" "}
+ {t("clis_view.intro_appear")}
+ </p>
+
+ <div className="mt-4">
+ {isLoading && (
+ <div className="py-8 text-center text-sm text-muted-foreground">
+ {t("common.loading")}
</div>
)}
- {!isLoading && !error && filtered.length === 0 && (
- <EmptyState hasAny={Boolean(data?.total)} filter={filter} />
+ {error && (
+ <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">
+ {t("common.error")}: {(error as Error).message}
+ </div>
)}
- {filtered.length > 0 && (
- <>
- <p className="mb-4 max-w-2xl text-xs leading-relaxed text-muted-foreground">
- {assistantName} {t("clis_view.intro_can_call")}{" "}
- <span className="text-primary">{t("clis_view.intro_connected_word")}</span>{" "}
- {t("clis_view.intro_appear")}
- </p>
- <ul className="space-y-1.5">
- {filtered.map((cli) => (
- <CliRow
- key={cli.name}
- cli={cli}
- selected={selectedName === cli.name}
- onSelect={() =>
- setSelectedName(selectedName === cli.name ? null : cli.name)
- }
- onShowUsage={() => setUsageFor(cli.name)}
- />
- ))}
- </ul>
- </>
+ {!isLoading && !error && !data?.total && <EmptyCatalog />}
+
+ {!isLoading && !error && Boolean(data?.total) && (
+ <Table label="CLIs">
+ <TableHead columns={columns} />
+ {filtered.map((cli) => (
+ <CliRow
+ key={cli.name}
+ cli={cli}
+ columns={columns}
+ onSelect={() => setSelectedName(cli.name)}
+ onShowUsage={() => setUsageFor(cli.name)}
+ />
+ ))}
+ {filtered.length === 0 && (
+ <EmptyRow>
+ {query.trim()
+ ? t("clis_view.search_no_hits")
+ : t(`clis_view.empty_${filter}`)}
+ </EmptyRow>
+ )}
+ </Table>
)}
</div>
- </ScrollArea>
- </div>
+ </div>
+ </ScrollArea>
+ {dialogs}
+ </div>
+ );
+}
- {selectedName && (
- <DetailPanel
- name={selectedName}
- onClose={() => setSelectedName(null)}
- onShowUsage={() => setUsageFor(selectedName)}
- />
+/**
+ * The category filter as a menu rather than a row of nine pills.
+ *
+ * The pills used to sit permanently in the header and were the loudest thing on
+ * the screen while being the least-used control. A menu costs one click and
+ * gives the table back its width.
+ */
+function CategoryMenu({
+ categories,
+ value,
+ onChange,
+}: {
+ categories: string[];
+ value: string | null;
+ onChange: (v: string | null) => void;
+}) {
+ const t = useT();
+ return (
+ <ActionMenu
+ label={t("clis_view.category_label")}
+ actions={[
+ {
+ id: "__all",
+ label: t("clis_view.category_all"),
+ icon: value === null ? <Check className="h-3.5 w-3.5" /> : undefined,
+ onSelect: () => onChange(null),
+ },
+ ...categories.map((cat, index) => ({
+ id: cat,
+ label: cat,
+ icon: value === cat ? <Check className="h-3.5 w-3.5" /> : undefined,
+ separatorAbove: index === 0,
+ onSelect: () => onChange(value === cat ? null : cat),
+ })),
+ ]}
+ trigger={({ open, toggle }) => (
+ <SoftButton onClick={toggle} ariaExpanded={open} ariaHasPopup="menu">
+ <ListFilter className="h-3.5 w-3.5" />
+ {value ?? t("clis_view.category_all_categories")}
+ </SoftButton>
)}
-
- {showWizard && <CustomCliWizard onClose={() => setShowWizard(false)} />}
- {usageFor && <UsageDrawer name={usageFor} onClose={() => setUsageFor(null)} />}
- </div>
+ />
);
}
function CliRow({
cli,
- selected,
+ columns,
onSelect,
onShowUsage,
}: {
cli: CliSummary;
- selected: boolean;
+ columns: Column[];
onSelect: () => void;
onShowUsage: () => void;
}) {
const t = useT();
- const style = STATUS_STYLES[cli.status];
+ const status = STATUS_TONES[cli.status];
return (
- <li>
- <button
- type="button"
- onClick={onSelect}
- className={cn(
- "flex w-full items-center gap-4 rounded-lg border border-border bg-card/40 px-4 py-2.5 text-left transition-colors",
- cli.status === "connected" && "border-primary/30 bg-card/60",
- cli.status === "error" && "border-destructive/30 bg-destructive/5",
- selected && "ring-1 ring-primary/40",
- )}
- >
- <span className={cn("h-2 w-2 shrink-0 rounded-full", style.dotClass)} aria-hidden />
- {iconForCli(cli)}
- <div className="min-w-0 flex-1">
- <div className="flex items-center gap-2">
- <span className="truncate text-sm font-medium">{cli.display_name}</span>
- <span className="shrink-0 rounded bg-muted/60 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground">
- {cli.name}
- </span>
- <span className="rounded-full border border-border px-1.5 py-0.5 text-[10px] font-normal text-muted-foreground/80">
- {cli.category}
- </span>
- {cli.is_custom && (
- <span className="rounded-full border border-primary/40 px-1.5 py-0.5 text-[10px] font-normal text-primary">
- custom
+ <TableRow columns={columns} onClick={onSelect} ariaLabel={cli.display_name}>
+ <Cell>
+ <div className="flex min-w-0 items-center gap-3">
+ <CliLogo cliName={cli.name} category={cli.category} />
+ <div className="min-w-0">
+ <div className="flex items-center gap-2">
+ <span className="truncate text-[15px] font-medium">{cli.display_name}</span>
+ <span className="shrink-0 font-mono text-xs text-muted-foreground">
+ {cli.name}
</span>
- )}
- </div>
- <div className="truncate text-xs text-muted-foreground/80">
- {cli.description}
+ {cli.is_custom && (
+ <span className="shrink-0 text-xs text-muted-foreground">
+ · {t("clis_view.custom_word")}
+ </span>
+ )}
+ </div>
+ <div className="truncate text-xs text-muted-foreground">{cli.description}</div>
</div>
</div>
- <span className="hidden w-20 text-right font-mono text-[11px] text-muted-foreground tabular-nums sm:inline">
- {cli.version ?? "—"}
- </span>
- <span className={cn("hidden w-24 text-right text-[11px] tabular-nums sm:inline", style.color)}>
- {statusLabel(cli.status)}
+ </Cell>
+ <Cell muted>
+ <span className="font-mono text-xs tabular-nums">{cli.version ?? "—"}</span>
+ </Cell>
+ <Cell>
+ <span title={cli.error ?? undefined}>
+ <StatusDot
+ tone={status.tone}
+ label={statusLabel(cli.status)}
+ pulse={cli.status === "checking"}
+ />
</span>
+ </Cell>
+ <Cell stop>
{cli.usage_count_7d > 0 ? (
<button
type="button"
- onClick={(e) => {
- e.stopPropagation();
- onShowUsage();
- }}
- className="hidden w-24 text-right text-[11px] text-muted-foreground/70 tabular-nums hover:text-primary md:inline"
+ onClick={onShowUsage}
title={t("clis_view.open_usage_history")}
+ className="text-left text-xs text-muted-foreground transition-colors hover:text-foreground"
>
- {cli.usage_count_7d}×/7d
+ <span className="tabular-nums">
+ {fill(t("clis_view.usage_7d"), { count: cli.usage_count_7d })}
+ </span>
+ <span className="block text-[11px] text-muted-foreground/70">
+ {formatRelativeTime(cli.last_used_at)}
+ </span>
</button>
) : (
- <span className="hidden w-24 text-right text-[11px] text-muted-foreground/40 md:inline">—</span>
+ <span className="text-xs text-muted-foreground/60">
+ {t("clis_view.never_used")}
+ </span>
)}
- <span className="hidden w-24 text-right text-[11px] text-muted-foreground/70 md:inline">
- {formatRelativeTime(cli.last_used_at)}
- </span>
- <ChevronRight
- className={cn(
- "h-3.5 w-3.5 shrink-0 transition-transform",
- selected && "rotate-90",
- "text-muted-foreground/50",
- )}
- />
- </button>
- </li>
+ </Cell>
+ </TableRow>
+ );
+}
+
+function EmptyCatalog() {
+ const t = useT();
+ return (
+ <div className="flex flex-col items-center justify-center gap-5 py-16 text-center">
+ <div className="flex h-16 w-16 items-center justify-center rounded-2xl border border-border bg-card/60">
+ <Terminal className="h-7 w-7 text-muted-foreground" />
+ </div>
+ <h3 className="font-display text-xl font-semibold tracking-tight">
+ {t("clis_view.empty_no_clis")}
+ </h3>
+ </div>
);
}
// ---------------------------------------------------------------------------
-// Detail Panel (mit Install/Connect/Disconnect Actions)
+// Detail page — replaces the table in place
// ---------------------------------------------------------------------------
-function DetailPanel({
+function CliDetailPage({
name,
- onClose,
+ onBack,
onShowUsage,
}: {
name: string;
- onClose: () => void;
+ onBack: () => void;
onShowUsage: () => void;
}) {
const t = useT();
@@ -391,61 +463,69 @@ function DetailPanel({
const [apiKeyDialog, setApiKeyDialog] = useState(false);
const [installDialog, setInstallDialog] = useState(false);
+ const status = data ? STATUS_TONES[data.status] : null;
+
return (
- <div className="flex w-[420px] flex-col border-l border-border bg-card/30">
- <div className="flex items-center justify-between border-b border-border px-5 py-3">
- <div className="min-w-0 flex-1">
- <div className="truncate text-sm font-semibold">
- {data?.display_name ?? name}
+ <ScrollArea className="flex-1">
+ <div className="mx-auto w-full max-w-5xl space-y-6 px-8 py-6">
+ <BackLink label={t("clis_view.back_to_list")} onClick={onBack} />
+
+ {isLoading && (
+ <div className="py-8 text-sm text-muted-foreground">
+ {t("clis_view.loading_details")}
</div>
- <div className="truncate text-[11px] text-muted-foreground/80">
- {data?.description ?? ""}
+ )}
+ {error && (
+ <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">
+ {(error as Error).message}
</div>
- </div>
- <Button
- size="sm" variant="ghost"
- onClick={() =>
- check.mutate(name, {
- onError: (err) =>
- pushToast("error", `${t("clis_view.status_check_failed")}: ${(err as Error).message}`),
- })
- }
- title={t("clis_view.recheck_status")}
- aria-label={t("clis_view.recheck_status")}
- disabled={check.isPending}
- >
- <RefreshCw className={cn("h-3.5 w-3.5", check.isPending && "animate-spin")} />
- </Button>
- <button
- type="button" onClick={onClose}
- className="ml-1 text-muted-foreground hover:text-foreground"
- title={t("common.close")}
- aria-label={t("clis_view.close_detail_panel")}
- >
- ×
- </button>
- </div>
+ )}
- <ScrollArea className="flex-1">
- <div className="space-y-4 p-5 text-xs">
- {isLoading && <div className="text-muted-foreground">{t("clis_view.loading_details")}</div>}
- {error && (
- <div className="rounded-md border border-destructive/40 bg-destructive/10 p-2 text-destructive">
- {(error as Error).message}
- </div>
- )}
- {data && (
- <>
- <div className="flex flex-wrap gap-1.5">
+ {data && (
+ <>
+ <DetailHeader
+ leading={
+ <CliLogo cliName={data.name} category={data.category} size="lg" />
+ }
+ title={data.display_name}
+ titleAccessory={
+ <span className="rounded-md bg-sheen/[0.08] px-2 py-0.5 font-mono text-xs text-muted-foreground">
+ {data.name}
+ </span>
+ }
+ byline={data.description}
+ actions={
+ <IconButton
+ label={t("clis_view.recheck_status")}
+ busy={check.isPending}
+ onClick={() =>
+ check.mutate(name, {
+ onError: (err) =>
+ pushToast(
+ "error",
+ `${t("clis_view.status_check_failed")}: ${(err as Error).message}`,
+ ),
+ })
+ }
+ >
+ <RefreshCw className="h-4 w-4" />
+ </IconButton>
+ }
+ />
+
+ <div className="flex flex-wrap items-center gap-2">
+ {status && (
+ <StatusDot
+ tone={status.tone}
+ label={statusLabel(data.status)}
+ pulse={data.status === "checking"}
+ />
+ )}
+ <div className="ml-auto flex flex-wrap items-center gap-2">
{!data.installed && data.install_methods.length > 0 && (
- <Button
- size="sm"
- className="btn-primary"
- onClick={() => setInstallDialog(true)}
- >
- <Play className="h-3.5 w-3.5" />
- <span className="ml-1.5">{t("clis_view.install")}</span>
- </Button>
+ <SoftButton primary onClick={() => setInstallDialog(true)}>
+ {t("clis_view.install")}
+ </SoftButton>
)}
{data.installed && !data.connected && data.auth_mode === "oauth_cli" && (
<ConnectOAuthButton
@@ -456,49 +536,59 @@ function DetailPanel({
/>
)}
{data.installed && !data.connected && data.auth_mode === "api_key" && (
- <Button
- size="sm"
- className="btn-primary"
- onClick={() => setApiKeyDialog(true)}
- >
+ <SoftButton primary onClick={() => setApiKeyDialog(true)}>
<LogIn className="h-3.5 w-3.5" />
- <span className="ml-1.5">{t("clis_view.set_api_key")}</span>
- </Button>
+ {t("clis_view.set_api_key")}
+ </SoftButton>
)}
- {data.connected && data.auth_mode !== "none" && data.auth_mode !== "config_file" && (
- <Button
- size="sm"
- variant="ghost"
+ {data.connected &&
+ data.auth_mode !== "none" &&
+ data.auth_mode !== "config_file" && (
+ <SoftButton
+ disabled={disconnect.isPending}
+ onClick={() =>
+ disconnect.mutate(name, {
+ onSuccess: (res) => {
+ if (res.ok) {
+ pushToast(
+ "success",
+ `${name} ${t("clis_view.disconnected_suffix")}`,
+ );
+ } else {
+ pushToast("error", res.error || t("clis_view.disconnect_failed"));
+ }
+ },
+ onError: (err) =>
+ pushToast(
+ "error",
+ `${t("clis_view.disconnect_failed")}: ${(err as Error).message}`,
+ ),
+ })
+ }
+ >
+ <LogOut className="h-3.5 w-3.5" />
+ {t("clis_view.disconnect")}
+ </SoftButton>
+ )}
+ <SoftButton onClick={onShowUsage}>
+ <Clock className="h-3.5 w-3.5" />
+ {t("clis_view.history")}
+ </SoftButton>
+ {data.homepage && (
+ <SoftButton
onClick={() =>
- disconnect.mutate(name, {
- onSuccess: (res) => {
- if (res.ok) {
- pushToast("success", `${name} ${t("clis_view.disconnected_suffix")}`);
- } else {
- pushToast("error", res.error || t("clis_view.disconnect_failed"));
- }
- },
- onError: (err) =>
- pushToast("error", `${t("clis_view.disconnect_failed")}: ${(err as Error).message}`),
- })
+ window.open(data.homepage, "_blank", "noopener,noreferrer")
}
- disabled={disconnect.isPending}
>
- <LogOut className="h-3.5 w-3.5" />
- <span className="ml-1.5">{t("clis_view.disconnect")}</span>
- </Button>
+ <ExternalLink className="h-3.5 w-3.5" />
+ {t("clis_view.documentation")}
+ </SoftButton>
)}
- <Button size="sm" variant="ghost" onClick={onShowUsage}>
- <Clock className="h-3.5 w-3.5" />
- <span className="ml-1.5">History</span>
- </Button>
{data.is_custom && (
- <Button
- size="sm"
- variant="ghost"
- aria-label={`${t("clis_view.remove_custom_cli_prefix")} ${name} ${t("clis_view.remove_custom_cli_suffix")}`}
- title={t("clis_view.remove_custom_cli")}
+ <IconButton
+ label={t("clis_view.remove_custom_cli")}
disabled={deleteCustom.isPending}
+ className="text-destructive hover:text-destructive"
onClick={() => {
if (
window.confirm(
@@ -508,108 +598,131 @@ function DetailPanel({
deleteCustom.mutate(name, {
onSuccess: () => {
pushToast("success", `${name} ${t("clis_view.removed_suffix")}`);
- onClose();
+ onBack();
},
onError: (err) =>
pushToast("error", `${t("common.error")}: ${(err as Error).message}`),
});
}
}}
- className="text-destructive hover:text-destructive"
>
- <Trash2 className="h-3.5 w-3.5" />
- </Button>
+ <Trash2 className="h-4 w-4" />
+ </IconButton>
)}
</div>
+ </div>
- <Section title="Status">
- <KeyVal k="Binary" v={data.binary_name} />
- <KeyVal k={t("clis_view.kv_path")} v={data.binary_path ?? t("clis_view.not_found")} />
- <KeyVal k="Version" v={data.version ?? "—"} />
- <KeyVal k="Auth-Mode" v={data.auth_mode} />
- <KeyVal k="Status" v={statusLabel(data.status)} />
- {data.error && <KeyVal k={t("common.error")} v={data.error} tone="error" />}
- </Section>
-
- <Section title="Commands">
- <KeyVal k="Check" v={data.check_command} mono />
- {data.login_command && <KeyVal k="Login" v={data.login_command} mono />}
- {data.status_command && <KeyVal k="Auth-Status" v={data.status_command} mono />}
- {data.logout_command && <KeyVal k="Logout" v={data.logout_command} mono />}
- </Section>
+ {data.error && (
+ <div className="rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive">
+ {data.error}
+ </div>
+ )}
+
+ <div className="grid gap-4 lg:grid-cols-2">
+ <DetailPanel title={t("clis_view.section_binary")}>
+ <FactRows
+ rows={[
+ { label: "Binary", value: <Mono>{data.binary_name}</Mono> },
+ {
+ label: t("clis_view.kv_path"),
+ value: data.binary_path ? (
+ <Mono>{data.binary_path}</Mono>
+ ) : (
+ <span className="text-muted-foreground">{t("clis_view.not_found")}</span>
+ ),
+ },
+ { label: "Version", value: data.version ?? "—" },
+ { label: t("clis_view.auth_mode_short"), value: <Mono>{data.auth_mode}</Mono> },
+ { label: t("clis_view.field_category"), value: data.category },
+ ]}
+ />
+ </DetailPanel>
+
+ <DetailPanel title={t("clis_view.section_commands")}>
+ <FactRows
+ rows={[
+ { label: "Check", value: <Mono>{data.check_command}</Mono> },
+ {
+ label: "Login",
+ value: data.login_command ? <Mono>{data.login_command}</Mono> : "",
+ },
+ {
+ label: t("clis_view.auth_status_label"),
+ value: data.status_command ? <Mono>{data.status_command}</Mono> : "",
+ },
+ {
+ label: "Logout",
+ value: data.logout_command ? <Mono>{data.logout_command}</Mono> : "",
+ },
+ ]}
+ />
+ </DetailPanel>
{data.secret_keys.length > 0 && (
- <Section title={t("clis_view.section_secrets")}>
- {data.secret_keys.map((sk) => (
- <KeyVal
- key={sk.name}
- k={sk.env_var}
- v={data.secrets_set[sk.name] ? `●●●●● ${t("clis_view.secret_set")}` : t("clis_view.secret_unset")}
- tone={data.secrets_set[sk.name] ? "ok" : "muted"}
- />
- ))}
- </Section>
+ <DetailPanel title={t("clis_view.section_secrets")}>
+ <FactRows
+ rows={data.secret_keys.map((sk) => ({
+ label: sk.env_var,
+ value: data.secrets_set[sk.name] ? (
+ <span className="text-emerald-500">
+ ●●●●● {t("clis_view.secret_set")}
+ </span>
+ ) : (
+ <span className="text-muted-foreground">
+ {t("clis_view.secret_unset")}
+ </span>
+ ),
+ }))}
+ />
+ </DetailPanel>
)}
- <Section title="Risk-Tier">
- <KeyVal k="Default-Tier" v={data.risk_tier} />
- {data.deny_patterns.length > 0 && (
- <div className="mt-1.5">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- Blacklist
- </div>
- <ul className="space-y-0.5">
- {data.deny_patterns.map((p) => (
- <li key={p} className="font-mono text-[10px] text-destructive/80">
- {p}
- </li>
- ))}
- </ul>
- </div>
- )}
- {data.allow_patterns.length > 0 && (
- <div className="mt-1.5">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- Whitelist
- </div>
- <ul className="space-y-0.5">
- {data.allow_patterns.map((p) => (
- <li key={p} className="font-mono text-[10px] text-primary/80">
- {p}
- </li>
- ))}
- </ul>
- </div>
- )}
- </Section>
+ {/* The two pattern lists are long and read as a pair — side by
+ side across the full width rather than stacked in one column
+ with a column-height of empty space beside them. */}
+ <DetailPanel
+ title={t("clis_view.risk_tier_label")}
+ className="lg:col-span-2"
+ >
+ <FactRows
+ rows={[{ label: t("clis_view.default_tier"), value: <Mono>{data.risk_tier}</Mono> }]}
+ />
+ <div className="grid gap-4 sm:grid-cols-2">
+ {data.deny_patterns.length > 0 && (
+ <PatternList
+ title={t("clis_view.blocked_patterns")}
+ patterns={data.deny_patterns}
+ tone="deny"
+ />
+ )}
+ {data.allow_patterns.length > 0 && (
+ <PatternList
+ title={t("clis_view.allowed_patterns")}
+ patterns={data.allow_patterns}
+ tone="allow"
+ />
+ )}
+ </div>
+ </DetailPanel>
{data.tool_schema_examples.length > 0 && (
- <Section title={t("clis_view.section_tool_examples")}>
+ <DetailPanel
+ title={t("clis_view.section_tool_examples")}
+ className="lg:col-span-2"
+ >
<ul className="space-y-1">
- {data.tool_schema_examples.map((e) => (
- <li key={e} className="font-mono text-[10px] text-muted-foreground/90">
- {e}
+ {data.tool_schema_examples.map((example) => (
+ <li key={example}>
+ <Mono>{example}</Mono>
</li>
))}
</ul>
- </Section>
- )}
-
- {data.homepage && (
- <a
- href={data.homepage}
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-1 text-[11px] text-primary hover:underline"
- >
- {t("clis_view.documentation")}
- <ExternalLink className="h-3 w-3" />
- </a>
+ </DetailPanel>
)}
- </>
- )}
- </div>
- </ScrollArea>
+ </div>
+ </>
+ )}
+ </div>
{apiKeyDialog && data && (
<ApiKeyDialog detail={data} onClose={() => setApiKeyDialog(false)} />
@@ -617,6 +730,58 @@ function DetailPanel({
{installDialog && data && (
<InstallDialog detail={data} onClose={() => setInstallDialog(false)} />
)}
+ </ScrollArea>
+ );
+}
+
+function DetailPanel({
+ title,
+ children,
+ className,
+}: {
+ title: string;
+ children: React.ReactNode;
+ className?: string;
+}) {
+ return (
+ <Panel className={cn("p-5", className)}>
+ <h4 className="mb-3 text-[11px] font-medium uppercase tracking-wider text-muted-foreground">
+ {title}
+ </h4>
+ <div className="space-y-3">{children}</div>
+ </Panel>
+ );
+}
+
+function Mono({ children }: { children: React.ReactNode }) {
+ return <span className="break-all font-mono text-xs">{children}</span>;
+}
+
+function PatternList({
+ title,
+ patterns,
+ tone,
+}: {
+ title: string;
+ patterns: string[];
+ tone: "allow" | "deny";
+}) {
+ return (
+ <div>
+ <div className="mb-1.5 text-xs text-muted-foreground">{title}</div>
+ <ul className="space-y-0.5">
+ {patterns.map((pattern) => (
+ <li
+ key={pattern}
+ className={cn(
+ "break-all font-mono text-xs",
+ tone === "deny" ? "text-destructive/80" : "text-emerald-500/90",
+ )}
+ >
+ {pattern}
+ </li>
+ ))}
+ </ul>
</div>
);
}
@@ -636,23 +801,22 @@ function ConnectOAuthButton({
loginCommand: string;
statusCommand: string | null;
}) {
- // Spawns a **real** external Windows Terminal (wt/pwsh) and types
- // the login_command straight in — the user sees the terminal window
- // pop up, the OAuth browser flow starts, and the terminal stays open.
+ // Spawns a **real** external terminal (wt/pwsh) and types the login_command
+ // straight in — the user sees the terminal window pop up, the OAuth browser
+ // flow starts, and the terminal stays open.
//
// It also sets ``cliConnectCoach`` in the store — the global
- // ``CliConnectPoller`` (in App.tsx) then checks the auth status every 3s
- // and resets the coach state once the login completes. That's what makes
- // the "X is connected" toast appear and the CLIs list refresh
- // automatically, no matter which section the user is currently in.
+ // ``CliConnectPoller`` (in App.tsx) then checks the auth status every 3s and
+ // resets the coach state once the login completes. That's what makes the
+ // "X is connected" toast appear and the CLIs list refresh automatically, no
+ // matter which section the user is currently in.
const t = useT();
const spawn = useSpawnExternalTerminal();
const pushToast = useEventStore((s) => s.pushToast);
const setCoach = useEventStore((s) => s.setCliConnectCoach);
return (
- <Button
- size="sm"
- className="btn-primary"
+ <SoftButton
+ primary
disabled={spawn.isPending}
onClick={() =>
spawn.mutate(
@@ -682,73 +846,81 @@ function ConnectOAuthButton({
}
>
<LogIn className="h-3.5 w-3.5" />
- <span className="ml-1.5">{t("clis_view.browser_login")}</span>
- </Button>
+ {t("clis_view.browser_login")}
+ </SoftButton>
);
}
// ---------------------------------------------------------------------------
-// API-Key Dialog
+// Dialog shell — one frame for the API-key, install and wizard dialogs
// ---------------------------------------------------------------------------
-function ApiKeyDialog({
- detail,
+function DialogShell({
+ title,
+ help,
onClose,
+ width = "max-w-md",
+ footer,
+ children,
}: {
- detail: CliDetail;
+ title: React.ReactNode;
+ help?: string;
onClose: () => void;
+ width?: string;
+ footer: React.ReactNode;
+ children: React.ReactNode;
}) {
const t = useT();
- const connect = useConnectCli();
- const pushToast = useEventStore((s) => s.pushToast);
- const [values, setValues] = useState<Record<string, string>>({});
- const [error, setError] = useState<string | null>(null);
-
return (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
- <div className="flex w-full max-w-md flex-col rounded-xl border border-border bg-card shadow-lg">
+ <div
+ className={cn(
+ "flex w-full flex-col overflow-hidden rounded-xl border border-border bg-card shadow-xl",
+ width,
+ )}
+ >
<div className="flex items-start justify-between gap-4 border-b border-border p-5">
<div className="min-w-0 flex-1">
- <h3 className="font-display text-base font-semibold">
- {detail.display_name} — {t("clis_view.set_api_key")}
- </h3>
- <p className="mt-1 text-[11px] text-muted-foreground">
- {t("clis_view.api_key_help")}
- </p>
+ <h3 className="font-display text-base font-semibold">{title}</h3>
+ {help && <p className="mt-1 text-xs leading-relaxed text-muted-foreground">{help}</p>}
</div>
- <button type="button" onClick={onClose} className="text-muted-foreground hover:text-foreground">
+ <IconButton label={t("common.close")} onClick={onClose}>
<X className="h-4 w-4" />
- </button>
+ </IconButton>
+ </div>
+ <div className="max-h-[60vh] overflow-y-auto p-5">{children}</div>
+ <div className="flex items-center justify-end gap-2 border-t border-border p-4">
+ {footer}
</div>
+ </div>
+ </div>
+ );
+}
- <div className="space-y-3 p-5">
- {detail.secret_keys.map((sk) => (
- <label key={sk.name} className="block text-xs">
- <div className="mb-1 flex items-center justify-between">
- <span className="font-medium">{sk.env_var}</span>
- {sk.required && <span className="text-[10px] text-destructive">required</span>}
- </div>
- <input
- type="password"
- autoComplete="new-password"
- value={values[sk.name] ?? ""}
- onChange={(e) => setValues((v) => ({ ...v, [sk.name]: e.target.value }))}
- className="w-full rounded-md border border-input bg-background px-3 py-1.5 font-mono text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
- placeholder={
- detail.secrets_set[sk.name] ? `●●●●● ${t("clis_view.api_key_already_set")}` : t("clis_view.api_key_enter")
- }
- />
- </label>
- ))}
+// ---------------------------------------------------------------------------
+// API-Key Dialog
+// ---------------------------------------------------------------------------
- {error && (
- <div className="rounded-md border border-destructive/40 bg-destructive/10 p-2 text-[11px] text-destructive">
- {error}
- </div>
- )}
- </div>
+function ApiKeyDialog({
+ detail,
+ onClose,
+}: {
+ detail: CliDetail;
+ onClose: () => void;
+}) {
+ const t = useT();
+ const connect = useConnectCli();
+ const pushToast = useEventStore((s) => s.pushToast);
+ const [values, setValues] = useState<Record<string, string>>({});
+ const [error, setError] = useState<string | null>(null);
- <div className="flex items-center justify-end gap-2 border-t border-border p-4">
+ return (
+ <DialogShell
+ title={`${detail.display_name} — ${t("clis_view.set_api_key")}`}
+ help={t("clis_view.api_key_help")}
+ onClose={onClose}
+ footer={
+ <>
<Button type="button" variant="ghost" onClick={onClose} disabled={connect.isPending}>
{t("common.cancel")}
</Button>
@@ -776,9 +948,42 @@ function ApiKeyDialog({
>
{connect.isPending ? t("clis_view.validating") : t("clis_view.save_and_validate")}
</Button>
- </div>
+ </>
+ }
+ >
+ <div className="space-y-3">
+ {detail.secret_keys.map((sk) => (
+ <label key={sk.name} className="block text-xs">
+ <div className="mb-1 flex items-center justify-between">
+ <span className="font-medium">{sk.env_var}</span>
+ {sk.required && (
+ <span className="text-[11px] text-muted-foreground">
+ {t("clis_view.required_word")}
+ </span>
+ )}
+ </div>
+ <input
+ type="password"
+ autoComplete="new-password"
+ value={values[sk.name] ?? ""}
+ onChange={(e) => setValues((v) => ({ ...v, [sk.name]: e.target.value }))}
+ className="w-full rounded-md border border-input bg-background px-3 py-1.5 font-mono text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ placeholder={
+ detail.secrets_set[sk.name]
+ ? `●●●●● ${t("clis_view.api_key_already_set")}`
+ : t("clis_view.api_key_enter")
+ }
+ />
+ </label>
+ ))}
+
+ {error && (
+ <div className="rounded-md border border-destructive/40 bg-destructive/10 p-2 text-xs text-destructive">
+ {error}
+ </div>
+ )}
</div>
- </div>
+ </DialogShell>
);
}
@@ -793,11 +998,11 @@ function InstallDialog({
detail: CliDetail;
onClose: () => void;
}) {
- // We use spawn-external (a real Windows Terminal) instead of the internal
- // xterm. ``useInstallCli`` (background subprocess + output streaming)
- // stays in the repo for headless/voice paths — but on the UI side we
- // deliberately use the external terminal, because the user wants to see
- // the install running in a "real" PowerShell.
+ // We use spawn-external (a real terminal window) instead of the internal
+ // xterm. ``useInstallCli`` (background subprocess + output streaming) stays
+ // in the repo for headless/voice paths — but on the UI side we deliberately
+ // use the external terminal, because the user wants to see the install
+ // running in a "real" shell.
const t = useT();
const spawn = useSpawnExternalTerminal();
const pushToast = useEventStore((s) => s.pushToast);
@@ -807,70 +1012,13 @@ function InstallDialog({
const selectedMethod = detail.install_methods.find((m) => m.manager === selected);
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
- <div className="flex w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-lg">
- <div className="flex items-start justify-between gap-4 border-b border-border p-5">
- <div className="min-w-0 flex-1">
- <h3 className="font-display text-base font-semibold">
- {detail.display_name}{t("clis_view.install_lowercase")}
- </h3>
- <p className="mt-1 text-[11px] text-muted-foreground">
- {t("clis_view.install_help")}
- </p>
- </div>
- <button type="button" onClick={onClose} className="text-muted-foreground hover:text-foreground">
- <X className="h-4 w-4" />
- </button>
- </div>
-
- <div className="space-y-3 p-5">
- <div>
- <div className="mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("clis_view.choose_method")}
- </div>
- <div className="space-y-1">
- {detail.install_methods.map((m) => (
- <label
- key={m.manager}
- className={cn(
- "flex cursor-pointer items-center gap-2 rounded-md border px-3 py-2 transition-colors",
- selected === m.manager
- ? "border-primary/40 bg-primary/10"
- : "border-border hover:bg-card/60",
- )}
- >
- <input
- type="radio"
- name="install-method"
- value={m.manager}
- checked={selected === m.manager}
- onChange={() => setSelected(m.manager)}
- className="accent-primary"
- />
- <span className="text-xs font-medium">{m.manager}</span>
- {m.manager === detail.recommended_install && (
- <span className="rounded-full border border-primary/40 bg-primary/10 px-1.5 py-0.5 text-[9px] text-primary">
- {t("clis_view.recommended")}
- </span>
- )}
- </label>
- ))}
- </div>
- </div>
-
- {selectedMethod && (
- <div>
- <div className="mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("clis_view.command_label")}
- </div>
- <code className="block break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-[10px]">
- {selectedMethod.command}
- </code>
- </div>
- )}
- </div>
-
- <div className="flex items-center justify-end gap-2 border-t border-border p-4">
+ <DialogShell
+ title={`${detail.display_name}${t("clis_view.install_lowercase")}`}
+ help={t("clis_view.install_help")}
+ onClose={onClose}
+ width="max-w-lg"
+ footer={
+ <>
<Button type="button" variant="ghost" onClick={onClose}>
{t("common.cancel")}
</Button>
@@ -905,11 +1053,62 @@ function InstallDialog({
);
}}
>
- {spawn.isPending ? t("clis_view.spawning") : selected === "manual" ? t("clis_view.open") : t("clis_view.install_in_terminal")}
+ {spawn.isPending
+ ? t("clis_view.spawning")
+ : selected === "manual"
+ ? t("clis_view.open")
+ : t("clis_view.install_in_terminal")}
</Button>
+ </>
+ }
+ >
+ <div className="space-y-4">
+ <div>
+ <div className="mb-2 text-xs text-muted-foreground">
+ {t("clis_view.choose_method")}
+ </div>
+ <div className="space-y-1">
+ {detail.install_methods.map((m) => (
+ <label
+ key={m.manager}
+ className={cn(
+ "flex cursor-pointer items-center gap-2 rounded-md border px-3 py-2 transition-colors",
+ selected === m.manager
+ ? "border-primary/40 bg-primary/10"
+ : "border-border hover:bg-sheen/[0.05]",
+ )}
+ >
+ <input
+ type="radio"
+ name="install-method"
+ value={m.manager}
+ checked={selected === m.manager}
+ onChange={() => setSelected(m.manager)}
+ className="accent-primary"
+ />
+ <span className="text-sm font-medium">{m.manager}</span>
+ {m.manager === detail.recommended_install && (
+ <span className="text-xs text-muted-foreground">
+ · {t("clis_view.recommended")}
+ </span>
+ )}
+ </label>
+ ))}
+ </div>
</div>
+
+ {selectedMethod && (
+ <div>
+ <div className="mb-1.5 text-xs text-muted-foreground">
+ {t("clis_view.command_label")}
+ </div>
+ <code className="block break-all rounded-md border border-border bg-background px-3 py-2 font-mono text-xs">
+ {selectedMethod.command}
+ </code>
+ </div>
+ )}
</div>
- </div>
+ </DialogShell>
);
}
@@ -984,172 +1183,154 @@ function CustomCliWizard({ onClose }: { onClose: () => void }) {
});
};
+ const stepHelp = [
+ t("clis_view.wizard_step1_identity"),
+ t("clis_view.wizard_step2_check"),
+ t("clis_view.wizard_step3_auth"),
+ t("clis_view.wizard_step4_risk"),
+ ][step - 1];
+
return (
- <div className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/60 backdrop-blur-sm">
- <div className="flex w-full max-w-2xl flex-col rounded-xl border border-border bg-card shadow-lg">
- <div className="flex items-start justify-between gap-4 border-b border-border p-5">
- <div className="min-w-0 flex-1">
- <h3 className="font-display text-base font-semibold">
- {t("clis_view.add_custom_cli_title")} · {t("clis_view.step")} {step}/4
- </h3>
- <p className="mt-1 text-[11px] text-muted-foreground">
- {step === 1 && t("clis_view.wizard_step1_identity")}
- {step === 2 && t("clis_view.wizard_step2_check")}
- {step === 3 && t("clis_view.wizard_step3_auth")}
- {step === 4 && t("clis_view.wizard_step4_risk")}
- </p>
+ <DialogShell
+ title={`${t("clis_view.add_custom_cli_title")} · ${t("clis_view.step")} ${step}/4`}
+ help={stepHelp}
+ onClose={onClose}
+ width="max-w-2xl"
+ footer={
+ <>
+ <div className="mr-auto text-xs text-muted-foreground">
+ {step < 4 ? t("clis_view.steps_skippable") : t("clis_view.done")}
</div>
- <button type="button" onClick={onClose} className="text-muted-foreground hover:text-foreground">
- <X className="h-4 w-4" />
- </button>
- </div>
-
- <div className="grid gap-3 p-5 text-xs">
- {step === 1 && (
- <>
- <TextField label="Name (id, lowercase)" val={form.name}
- onChange={(v) => setForm({ ...form, name: v.toLowerCase() })}
- placeholder={t("clis_view.eg_mytool")} />
- <TextField label="Display-Name" val={form.display_name}
- onChange={(v) => setForm({ ...form, display_name: v })}
- placeholder={t("clis_view.eg_my_tool_cli")} />
- <TextField label={t("clis_view.field_binary_name")} val={form.binary_name}
- onChange={(v) => setForm({ ...form, binary_name: v })}
- placeholder={t("clis_view.eg_mytool")} />
- <TextField label={t("clis_view.field_description")} val={form.description}
- onChange={(v) => setForm({ ...form, description: v })}
- placeholder={t("clis_view.what_does_cli_do")} />
- <TextField label={t("clis_view.field_category")} val={form.category}
- onChange={(v) => setForm({ ...form, category: v })}
- placeholder="cloud / git / payments / other" />
- <TextField label={t("clis_view.field_homepage_url")} val={form.homepage}
- onChange={(v) => setForm({ ...form, homepage: v })}
- placeholder="https://..." />
- </>
- )}
- {step === 2 && (
- <>
- <TextField label={t("clis_view.field_check_command")} val={form.check_command}
- onChange={(v) => setForm({ ...form, check_command: v })}
- placeholder="mytool --version" mono />
- <TextField label={t("clis_view.field_version_regex")} val={form.version_parse_regex}
- onChange={(v) => setForm({ ...form, version_parse_regex: v })}
- placeholder="v(\\S+)" mono />
- </>
- )}
- {step === 3 && (
- <>
- <label className="block">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {t("clis_view.auth_mode_label")}
- </div>
- <BrandedSelect
- value={form.auth_mode}
- onValueChange={(value) =>
- setForm({
- ...form,
- auth_mode: value as typeof form.auth_mode,
- })
- }
- ariaLabel={t("clis_view.auth_mode_label")}
- className="py-1.5 text-xs"
- options={[
- { value: "none", label: t("clis_view.auth_none") },
- { value: "oauth_cli", label: t("clis_view.auth_oauth_cli") },
- { value: "api_key", label: t("clis_view.auth_api_key") },
- { value: "config_file", label: t("clis_view.auth_config_file") },
- ]}
- />
- </label>
- {(form.auth_mode === "oauth_cli") && (
- <TextField label={t("clis_view.field_login_command")} val={form.login_command}
- onChange={(v) => setForm({ ...form, login_command: v })}
- placeholder="mytool login" mono />
- )}
- {form.auth_mode !== "none" && (
- <TextField label={t("clis_view.field_status_command")} val={form.status_command}
- onChange={(v) => setForm({ ...form, status_command: v })}
- placeholder="mytool whoami" mono />
- )}
- {form.auth_mode === "api_key" && (
- <>
- <TextField label={t("clis_view.field_secret_keys")} val={form.secret_keys}
- onChange={(v) => setForm({ ...form, secret_keys: v })}
- placeholder="mytool_api_key" mono />
- <TextField label={t("clis_view.field_env_vars")} val={form.env_vars}
- onChange={(v) => setForm({ ...form, env_vars: v })}
- placeholder="MYTOOL_API_KEY" mono />
- </>
- )}
- </>
- )}
- {step === 4 && (
- <>
- <label className="block">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- Risk-Tier
- </div>
- <BrandedSelect
- value={form.risk_tier}
- onValueChange={(value) =>
- setForm({
- ...form,
- risk_tier: value as typeof form.risk_tier,
- })
- }
- ariaLabel="Risk tier"
- className="py-1.5 text-xs"
- options={[
- { value: "safe", label: t("clis_view.risk_safe") },
- { value: "monitor", label: "monitor (execute + log)" },
- { value: "ask", label: t("clis_view.risk_ask") },
- { value: "block", label: t("clis_view.risk_block") },
- ]}
- />
- </label>
- <TextArea label={t("clis_view.field_allow_patterns")} val={form.allow_patterns}
- onChange={(v) => setForm({ ...form, allow_patterns: v })}
- placeholder="mytool get *&#10;mytool list*" />
- <TextArea label={t("clis_view.field_deny_patterns")} val={form.deny_patterns}
- onChange={(v) => setForm({ ...form, deny_patterns: v })}
- placeholder="mytool delete *&#10;mytool rm *" />
- </>
+ {step > 1 && (
+ <Button variant="ghost" onClick={() => setStep(step - 1)}>
+ {t("common.back")}
+ </Button>
)}
-
- {error && (
- <div className="rounded-md border border-destructive/40 bg-destructive/10 p-2 text-[11px] text-destructive">
- {error}
- </div>
+ {step < 4 ? (
+ <Button className="btn-primary" disabled={!canNext()} onClick={() => setStep(step + 1)}>
+ {t("clis_view.next")}
+ </Button>
+ ) : (
+ <Button className="btn-primary" onClick={submit} disabled={register.isPending}>
+ {register.isPending ? t("common.saving") : t("common.save")}
+ </Button>
)}
- </div>
-
- <div className="flex items-center justify-between gap-2 border-t border-border p-4">
- <div className="text-[10px] text-muted-foreground">
- {step < 4 ? t("clis_view.steps_skippable") : t("clis_view.done")}
- </div>
- <div className="flex items-center gap-2">
- {step > 1 && (
- <Button variant="ghost" onClick={() => setStep(step - 1)}>
- {t("common.back")}
- </Button>
+ </>
+ }
+ >
+ <div className="grid gap-3 text-xs">
+ {step === 1 && (
+ <>
+ <TextField label={t("clis_view.field_name_id")} val={form.name}
+ onChange={(v) => setForm({ ...form, name: v.toLowerCase() })}
+ placeholder={t("clis_view.eg_mytool")} />
+ <TextField label={t("clis_view.field_display_name")} val={form.display_name}
+ onChange={(v) => setForm({ ...form, display_name: v })}
+ placeholder={t("clis_view.eg_my_tool_cli")} />
+ <TextField label={t("clis_view.field_binary_name")} val={form.binary_name}
+ onChange={(v) => setForm({ ...form, binary_name: v })}
+ placeholder={t("clis_view.eg_mytool")} />
+ <TextField label={t("clis_view.field_description")} val={form.description}
+ onChange={(v) => setForm({ ...form, description: v })}
+ placeholder={t("clis_view.what_does_cli_do")} />
+ <TextField label={t("clis_view.field_category")} val={form.category}
+ onChange={(v) => setForm({ ...form, category: v })}
+ placeholder="cloud / git / payments / other" />
+ <TextField label={t("clis_view.field_homepage_url")} val={form.homepage}
+ onChange={(v) => setForm({ ...form, homepage: v })}
+ placeholder="https://..." />
+ </>
+ )}
+ {step === 2 && (
+ <>
+ <TextField label={t("clis_view.field_check_command")} val={form.check_command}
+ onChange={(v) => setForm({ ...form, check_command: v })}
+ placeholder="mytool --version" mono />
+ <TextField label={t("clis_view.field_version_regex")} val={form.version_parse_regex}
+ onChange={(v) => setForm({ ...form, version_parse_regex: v })}
+ placeholder="v(\\S+)" mono />
+ </>
+ )}
+ {step === 3 && (
+ <>
+ <label className="block">
+ <div className="mb-1 text-xs text-muted-foreground">
+ {t("clis_view.auth_mode_label")}
+ </div>
+ <BrandedSelect
+ value={form.auth_mode}
+ onValueChange={(value) =>
+ setForm({ ...form, auth_mode: value as typeof form.auth_mode })
+ }
+ ariaLabel={t("clis_view.auth_mode_label")}
+ className="py-1.5 text-xs"
+ options={[
+ { value: "none", label: t("clis_view.auth_none") },
+ { value: "oauth_cli", label: t("clis_view.auth_oauth_cli") },
+ { value: "api_key", label: t("clis_view.auth_api_key") },
+ { value: "config_file", label: t("clis_view.auth_config_file") },
+ ]}
+ />
+ </label>
+ {form.auth_mode === "oauth_cli" && (
+ <TextField label={t("clis_view.field_login_command")} val={form.login_command}
+ onChange={(v) => setForm({ ...form, login_command: v })}
+ placeholder="mytool login" mono />
)}
- {step < 4 ? (
- <Button
- className="btn-primary"
- disabled={!canNext()}
- onClick={() => setStep(step + 1)}
- >
- {t("clis_view.next")}
- </Button>
- ) : (
- <Button className="btn-primary" onClick={submit} disabled={register.isPending}>
- {register.isPending ? t("common.saving") : t("common.save")}
- </Button>
+ {form.auth_mode !== "none" && (
+ <TextField label={t("clis_view.field_status_command")} val={form.status_command}
+ onChange={(v) => setForm({ ...form, status_command: v })}
+ placeholder="mytool whoami" mono />
)}
+ {form.auth_mode === "api_key" && (
+ <>
+ <TextField label={t("clis_view.field_secret_keys")} val={form.secret_keys}
+ onChange={(v) => setForm({ ...form, secret_keys: v })}
+ placeholder="mytool_api_key" mono />
+ <TextField label={t("clis_view.field_env_vars")} val={form.env_vars}
+ onChange={(v) => setForm({ ...form, env_vars: v })}
+ placeholder="MYTOOL_API_KEY" mono />
+ </>
+ )}
+ </>
+ )}
+ {step === 4 && (
+ <>
+ <label className="block">
+ <div className="mb-1 text-xs text-muted-foreground">
+ {t("clis_view.risk_tier_label")}
+ </div>
+ <BrandedSelect
+ value={form.risk_tier}
+ onValueChange={(value) =>
+ setForm({ ...form, risk_tier: value as typeof form.risk_tier })
+ }
+ ariaLabel={t("clis_view.risk_tier_label")}
+ className="py-1.5 text-xs"
+ options={[
+ { value: "safe", label: t("clis_view.risk_safe") },
+ { value: "monitor", label: t("clis_view.risk_monitor") },
+ { value: "ask", label: t("clis_view.risk_ask") },
+ { value: "block", label: t("clis_view.risk_block") },
+ ]}
+ />
+ </label>
+ <TextArea label={t("clis_view.field_allow_patterns")} val={form.allow_patterns}
+ onChange={(v) => setForm({ ...form, allow_patterns: v })}
+ placeholder="mytool get *&#10;mytool list*" />
+ <TextArea label={t("clis_view.field_deny_patterns")} val={form.deny_patterns}
+ onChange={(v) => setForm({ ...form, deny_patterns: v })}
+ placeholder="mytool delete *&#10;mytool rm *" />
+ </>
+ )}
+
+ {error && (
+ <div className="rounded-md border border-destructive/40 bg-destructive/10 p-2 text-xs text-destructive">
+ {error}
</div>
- </div>
+ )}
</div>
- </div>
+ </DialogShell>
);
}
@@ -1161,16 +1342,14 @@ function TextField({
}) {
return (
<label className="block">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {label}
- </div>
+ <div className="mb-1 text-xs text-muted-foreground">{label}</div>
<input
type="text" value={val}
onChange={(e) => onChange(e.target.value)}
placeholder={placeholder}
className={cn(
- "w-full rounded-md border border-input bg-background px-3 py-1.5 text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
- mono && "font-mono text-[11px]",
+ "w-full rounded-md border border-input bg-background px-3 py-1.5 text-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
+ mono && "font-mono text-xs",
)}
/>
</label>
@@ -1184,14 +1363,12 @@ function TextArea({
}) {
return (
<label className="block">
- <div className="mb-1 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {label}
- </div>
+ <div className="mb-1 text-xs text-muted-foreground">{label}</div>
<textarea
value={val}
onChange={(e) => onChange(e.target.value)}
placeholder={placeholder}
- className="h-24 w-full resize-none rounded-md border border-input bg-background px-3 py-1.5 font-mono text-[11px] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="h-24 w-full resize-none rounded-md border border-input bg-background px-3 py-1.5 font-mono text-xs focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
/>
</label>
);
@@ -1213,34 +1390,39 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
return (
<div className="fixed inset-0 z-50 flex items-stretch justify-end bg-scrim/60 backdrop-blur-sm">
- <div className="flex w-[520px] flex-col border-l border-border bg-card shadow-2xl">
- <div className="flex items-center justify-between border-b border-border px-5 py-3">
+ <div className="flex w-[560px] max-w-full flex-col border-l border-border bg-card shadow-2xl">
+ <div className="flex items-start justify-between gap-3 border-b border-border px-5 py-4">
<div className="min-w-0 flex-1">
- <h3 className="truncate text-sm font-semibold">Usage · {name}</h3>
+ <h3 className="truncate text-sm font-semibold">
+ {t("clis_view.history")} · {name}
+ </h3>
{stats && (
- <div className="mt-0.5 text-[11px] text-muted-foreground tabular-nums">
- {stats.total_calls} total · {Math.round(stats.success_rate * 100)}% success ·{" "}
- avg {stats.avg_duration_ms}ms
+ <div className="mt-0.5 text-xs text-muted-foreground tabular-nums">
+ {fill(t("clis_view.usage_stats"), {
+ total: stats.total_calls,
+ rate: Math.round(stats.success_rate * 100),
+ avg: stats.avg_duration_ms,
+ })}
</div>
)}
</div>
- <button type="button" onClick={onClose} className="text-muted-foreground hover:text-foreground">
+ <IconButton label={t("common.close")} onClick={onClose}>
<X className="h-4 w-4" />
- </button>
+ </IconButton>
</div>
- <div className="flex items-center gap-2 border-b border-border px-5 py-2.5">
- <input
- type="text"
- value={search}
- onChange={(e) => {
- setPage(1);
- setSearch(e.target.value);
- }}
- placeholder="Search command…"
- className="flex-1 rounded-md border border-input bg-background px-2 py-1 text-xs"
- />
- <label className="flex items-center gap-1 text-[11px]">
+ <div className="flex items-center gap-3 border-b border-border px-5 py-2.5">
+ <div className="flex-1">
+ <InlineSearch
+ value={search}
+ onChange={(v) => {
+ setPage(1);
+ setSearch(v);
+ }}
+ placeholder={t("clis_view.search_command")}
+ />
+ </div>
+ <label className="flex shrink-0 items-center gap-1.5 text-xs text-muted-foreground">
<input
type="checkbox"
checked={successOnly}
@@ -1250,52 +1432,45 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
}}
className="accent-primary"
/>
- success only
+ {t("clis_view.success_only")}
</label>
</div>
<ScrollArea className="flex-1">
- <div className="p-5 text-xs">
- {!usage && <div className="text-muted-foreground">{t("common.loading")}</div>}
+ <div className="p-5">
+ {!usage && (
+ <div className="text-sm text-muted-foreground">{t("common.loading")}</div>
+ )}
{usage && usage.entries.length === 0 && (
- <div className="py-8 text-center text-muted-foreground">
- {t("clis_view.no_entries")} {search && `(${t("clis_view.search_word")}: "${search}")`}
+ <div className="py-10 text-center text-sm text-muted-foreground">
+ {t("clis_view.no_entries")}
</div>
)}
{usage && usage.entries.length > 0 && (
<ul className="space-y-1.5">
{usage.entries.map((e) => (
- <li
- key={e.id}
- className={cn(
- "rounded-md border border-border bg-card/40 px-3 py-2",
- e.exit_code === 0 && "border-primary/20",
- e.exit_code !== null && e.exit_code !== 0 && "border-destructive/30",
- )}
- >
+ <li key={e.id} className="rounded-lg border border-border bg-background/40 px-3 py-2">
<div className="flex items-start justify-between gap-2">
- <code className="min-w-0 flex-1 break-all font-mono text-[11px]">
+ <code className="min-w-0 flex-1 break-all font-mono text-xs">
{e.full_command}
</code>
<span
className={cn(
- "shrink-0 text-[10px] tabular-nums",
- e.exit_code === 0 ? "text-primary" : "text-destructive",
+ "shrink-0 font-mono text-xs tabular-nums",
+ e.exit_code === 0 ? "text-emerald-500" : "text-destructive",
)}
>
{e.exit_code === 0 ? "✓" : e.exit_code !== null ? `✗ ${e.exit_code}` : "…"}
</span>
</div>
- <div className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[10px] text-muted-foreground tabular-nums">
+ <div className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-muted-foreground tabular-nums">
<span>{formatDateTime(e.started_at)}</span>
- {e.duration_ms !== null && <span>{e.duration_ms}ms</span>}
- <span>caller: {e.caller}</span>
- {e.trace_id && (
- <span title={e.trace_id}>T:{e.trace_id.slice(0, 8)}</span>
- )}
+ {e.duration_ms !== null && <span>{e.duration_ms} ms</span>}
+ <span>{e.caller}</span>
+ {e.trace_id && <span title={e.trace_id}>T:{e.trace_id.slice(0, 8)}</span>}
</div>
{e.stderr_preview && (
- <div className="mt-1.5 rounded border border-destructive/30 bg-destructive/5 px-2 py-1 font-mono text-[10px] text-destructive/90">
+ <div className="mt-1.5 rounded border border-destructive/30 bg-destructive/5 px-2 py-1 font-mono text-[11px] text-destructive/90">
{e.stderr_preview}
</div>
)}
@@ -1307,13 +1482,13 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
</ScrollArea>
{stats && stats.top_commands.length > 0 && (
- <div className="border-t border-border px-5 py-2.5 text-[10px]">
- <div className="mb-1 uppercase tracking-wider text-muted-foreground/70">
- Top-Commands
+ <div className="border-t border-border px-5 py-3">
+ <div className="mb-1.5 text-[11px] font-medium uppercase tracking-wider text-muted-foreground">
+ {t("clis_view.top_commands")}
</div>
<ul className="space-y-0.5">
{stats.top_commands.slice(0, 3).map(([cmd, count]) => (
- <li key={cmd} className="flex items-center justify-between gap-2">
+ <li key={cmd} className="flex items-center justify-between gap-2 text-xs">
<code className="truncate font-mono">{cmd}</code>
<span className="tabular-nums text-muted-foreground">{count}×</span>
</li>
@@ -1333,7 +1508,8 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
)
) {
clear.mutate(name, {
- onSuccess: (res) => pushToast("success", `${res.deleted} ${t("clis_view.entries_deleted")}`),
+ onSuccess: (res) =>
+ pushToast("success", `${res.deleted} ${t("clis_view.entries_deleted")}`),
onError: (err) => pushToast("error", (err as Error).message),
});
}
@@ -1341,100 +1517,31 @@ function UsageDrawer({ name, onClose }: { name: string; onClose: () => void }) {
className="text-destructive hover:text-destructive"
>
<Trash2 className="h-3.5 w-3.5" />
- <span className="ml-1.5">Clear</span>
+ <span className="ml-1.5">{t("clis_view.clear")}</span>
</Button>
- <div className="flex items-center gap-1 text-[10px] text-muted-foreground">
- {usage && (
- <>
- <Button
- variant="ghost" size="sm"
- disabled={page === 1}
- onClick={() => setPage(Math.max(1, page - 1))}
- >
- ‹
- </Button>
- <span className="tabular-nums">
- {(page - 1) * 50 + 1}–{Math.min(page * 50, usage.total)} / {usage.total}
- </span>
- <Button
- variant="ghost" size="sm"
- disabled={page * 50 >= usage.total}
- onClick={() => setPage(page + 1)}
- >
- ›
- </Button>
- </>
- )}
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-// ---------------------------------------------------------------------------
-// Atoms
-// ---------------------------------------------------------------------------
-
-function Section({ title, children }: { title: string; children: React.ReactNode }) {
- return (
- <div>
- <h4 className="mb-1.5 text-[10px] uppercase tracking-wider text-muted-foreground/70">
- {title}
- </h4>
- <div className="space-y-0.5">{children}</div>
- </div>
- );
-}
-
-function KeyVal({
- k, v, mono, tone,
-}: {
- k: string; v: string; mono?: boolean; tone?: "muted" | "ok" | "error";
-}) {
- return (
- <div className="flex items-start gap-2 text-[11px]">
- <span className="w-20 shrink-0 text-muted-foreground/70">{k}</span>
- <span
- className={cn(
- "min-w-0 flex-1 break-all",
- mono && "font-mono text-[10px]",
- tone === "muted" && "text-muted-foreground/60",
- tone === "ok" && "text-primary",
- tone === "error" && "text-destructive",
- )}
- >
- {v}
- </span>
- </div>
- );
-}
-
-function EmptyState({ hasAny, filter }: { hasAny: boolean; filter: FilterTab }) {
- const t = useT();
- if (!hasAny) {
- return (
- <div className="flex flex-col items-center justify-center gap-5 py-16 text-center">
- <div className="flex h-16 w-16 items-center justify-center rounded-2xl border border-border bg-card/60">
- <Terminal className="h-7 w-7 text-muted-foreground" />
- </div>
- <div className="max-w-lg space-y-3">
- <h3 className="font-display text-xl font-semibold tracking-tight">
- {t("clis_view.empty_no_clis")}
- </h3>
+ {usage && (
+ <div className="flex items-center gap-1 text-xs text-muted-foreground">
+ <Button
+ variant="ghost" size="sm"
+ disabled={page === 1}
+ onClick={() => setPage(Math.max(1, page - 1))}
+ >
+ ‹
+ </Button>
+ <span className="tabular-nums">
+ {(page - 1) * 50 + 1}–{Math.min(page * 50, usage.total)} / {usage.total}
+ </span>
+ <Button
+ variant="ghost" size="sm"
+ disabled={page * 50 >= usage.total}
+ onClick={() => setPage(page + 1)}
+ >
+ ›
+ </Button>
+ </div>
+ )}
</div>
</div>
- );
- }
- const messages: Record<FilterTab, string> = {
- all: t("clis_view.empty_all"),
- connected: t("clis_view.empty_connected"),
- installed: t("clis_view.empty_installed"),
- custom: t("clis_view.empty_custom"),
- };
- return (
- <div className="py-12 text-center text-sm text-muted-foreground">
- {messages[filter]}
</div>
);
}
diff --git a/scripts/ci/check_brand_logos.py b/scripts/ci/check_brand_logos.py
index 4f3e01ca09..f8f1038a12 100644
--- a/scripts/ci/check_brand_logos.py
+++ b/scripts/ci/check_brand_logos.py
@@ -24,11 +24,13 @@ from pathlib import Path
_ROOT = Path(__file__).resolve().parents[2]
_FRONTEND_ASSETS = _ROOT / "jarvis" / "ui" / "web" / "frontend" / "src" / "assets"
-# Two folders, one rulebook: the plugin-store marks and the provider-card
-# marks. Each keeps its own LOGOS.md ledger next to the files it records.
+# Three folders, one rulebook: the plugin-store marks, the provider-card marks
+# and the CLI-row marks. Each keeps its own LOGOS.md ledger next to the files
+# it records.
_FOLDERS = (
_FRONTEND_ASSETS / "brands",
_FRONTEND_ASSETS / "providers",
+ _FRONTEND_ASSETS / "clis",
)
# Generous: a real icon is square, but a few legitimate marks are slightly