#100 Logos officiels des agents (Claude, Gemini, Mistral AI)
Nouvelle icône d'agent logo:<nom> : le logo de la marque, dans sa couleur sur un disque clair (thèmes clair et sombre). Logos de Simple Icons (CC0-1.0, source notée) ; OpenAI n'y est pas : Codex garde un emoji. Configuration : LogoNames, avertissement pour un nom inconnu, schéma ; test de la même liste côté Go et interface. L'assistant des sandboxes dessine les logos et les propose comme icône par défaut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7d5a305 parent: 1f1f4a1 modified
.tickets/issues/0100-logos-officiels-des-agents-claude-gemini-codex-v.yaml +33 -6 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-15T03:21:21.000Z |
| 9 | -updatedAt: 2026-11-15T03:21:21.000Z | |
| 9 | +updatedAt: 2026-11-15T03:29:47.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - kind::feature |
| 12 | 12 | - area::ui |
| @@ -63,34 +63,61 @@ tasks: | ||
| 63 | 63 | createdAt: 2026-11-15T03:21:21.000Z |
| 64 | 64 | - id: 2 |
| 65 | 65 | title: "Icône image : icon logo:<type> (schéma, validation, avatarOf, AgentAvatar, textIcon)" |
| 66 | - state: open | |
| 66 | + state: closed | |
| 67 | 67 | priority: high |
| 68 | 68 | author: |
| 69 | 69 | name: k33g |
| 70 | 70 | email: ph.charriere@gmail.com |
| 71 | 71 | createdAt: 2026-11-15T03:21:21.000Z |
| 72 | + updatedAt: 2026-11-15T03:29:47.000Z | |
| 73 | + closedAt: 2026-11-15T03:29:47.000Z | |
| 72 | 74 | - id: 3 |
| 73 | 75 | title: "Logos dans le catalogue sbxcreate et sur les cartes de l'assistant ; icône par défaut de l'agent créé" |
| 74 | - state: open | |
| 76 | + state: closed | |
| 75 | 77 | priority: high |
| 76 | 78 | author: |
| 77 | 79 | name: k33g |
| 78 | 80 | email: ph.charriere@gmail.com |
| 79 | 81 | createdAt: 2026-11-15T03:21:21.000Z |
| 82 | + updatedAt: 2026-11-15T03:29:47.000Z | |
| 83 | + closedAt: 2026-11-15T03:29:47.000Z | |
| 80 | 84 | - id: 4 |
| 81 | 85 | title: "Thèmes clair et sombre" |
| 82 | - state: open | |
| 86 | + state: closed | |
| 83 | 87 | priority: medium |
| 84 | 88 | author: |
| 85 | 89 | name: k33g |
| 86 | 90 | email: ph.charriere@gmail.com |
| 87 | 91 | createdAt: 2026-11-15T03:21:21.000Z |
| 92 | + updatedAt: 2026-11-15T03:29:47.000Z | |
| 93 | + closedAt: 2026-11-15T03:29:47.000Z | |
| 88 | 94 | - id: 5 |
| 89 | 95 | title: "Tests, doc EN + FR (référence icon), notes de release v1.5.0" |
| 90 | - state: open | |
| 96 | + state: closed | |
| 91 | 97 | priority: medium |
| 92 | 98 | author: |
| 93 | 99 | name: k33g |
| 94 | 100 | email: ph.charriere@gmail.com |
| 95 | 101 | createdAt: 2026-11-15T03:21:21.000Z |
| 96 | -comments: [] | |
| 102 | + updatedAt: 2026-11-15T03:29:47.000Z | |
| 103 | + closedAt: 2026-11-15T03:29:47.000Z | |
| 104 | +comments: | |
| 105 | + - id: 1 | |
| 106 | + author: | |
| 107 | + name: k33g | |
| 108 | + email: ph.charriere@gmail.com | |
| 109 | + createdAt: 2026-11-15T03:29:47.000Z | |
| 110 | + body: | | |
| 111 | + Implémenté sur `feature/98-99-100` : icône `logo:<nom>` (`lib/logos.ts`, `avatarOf`, `AgentAvatar` : le | |
| 112 | + logo dans sa couleur sur un disque clair, lisible en thème clair et sombre ; `textIcon` ne montre rien) ; | |
| 113 | + `config.LogoNames` (avertissement pour un nom inconnu, schéma) et un test qui vérifie que Go et l'interface ont | |
| 114 | + la même liste ; catalogue : Claude `logo:claude`, Gemini `logo:gemini`, Vibe `logo:mistral` ; les cartes et | |
| 115 | + le choix d'icône de l'assistant dessinent les logos. | |
| 116 | + | |
| 117 | + **Tâche 1 (marques) — à valider par l'owner** : les tracés viennent de Simple Icons 16.37.0 (CC0-1.0), relevés | |
| 118 | + sur claude.ai, gemini.google.com et chat.mistral.ai ; source et licence notées dans `logos.ts`. La CC0 couvre | |
| 119 | + les dessins, pas les marques : usage pour nommer le produit, logo non modifié, sans suggérer de partenariat. | |
| 120 | + Je n'ai pas lu les règles de marque d'Anthropic, de Google ni de Mistral AI. **OpenAI (Codex)** : retiré de | |
| 121 | + Simple Icons ; ses règles (openai.com/brand) demandent ses propres fichiers, non modifiés, et réservent le droit | |
| 122 | + de retirer l'autorisation : Codex garde l'emoji 📗. Pour l'ajouter : déposer le SVG officiel (Blossom) dans | |
| 123 | + `logos.ts` et `openai` dans `LogoNames`. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-15T03:21:21.000Z | 8 | createdAt: 2026-11-15T03:21:21.000Z |
| 9 | -updatedAt: 2026-11-15T03:21:21.000Z | 9 | +updatedAt: 2026-11-15T03:29:47.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::feature | 11 | - kind::feature |
| 12 | - area::ui | 12 | - area::ui |
| @@ -63,34 +63,61 @@ tasks: | |||
| 63 | createdAt: 2026-11-15T03:21:21.000Z | 63 | createdAt: 2026-11-15T03:21:21.000Z |
| 64 | - id: 2 | 64 | - id: 2 |
| 65 | title: "Icône image : icon logo:<type> (schéma, validation, avatarOf, AgentAvatar, textIcon)" | 65 | title: "Icône image : icon logo:<type> (schéma, validation, avatarOf, AgentAvatar, textIcon)" |
| 66 | - state: open | 66 | + state: closed |
| 67 | priority: high | 67 | priority: high |
| 68 | author: | 68 | author: |
| 69 | name: k33g | 69 | name: k33g |
| 70 | email: ph.charriere@gmail.com | 70 | email: ph.charriere@gmail.com |
| 71 | createdAt: 2026-11-15T03:21:21.000Z | 71 | createdAt: 2026-11-15T03:21:21.000Z |
| 72 | + updatedAt: 2026-11-15T03:29:47.000Z | ||
| 73 | + closedAt: 2026-11-15T03:29:47.000Z | ||
| 72 | - id: 3 | 74 | - id: 3 |
| 73 | title: "Logos dans le catalogue sbxcreate et sur les cartes de l'assistant ; icône par défaut de l'agent créé" | 75 | title: "Logos dans le catalogue sbxcreate et sur les cartes de l'assistant ; icône par défaut de l'agent créé" |
| 74 | - state: open | 76 | + state: closed |
| 75 | priority: high | 77 | priority: high |
| 76 | author: | 78 | author: |
| 77 | name: k33g | 79 | name: k33g |
| 78 | email: ph.charriere@gmail.com | 80 | email: ph.charriere@gmail.com |
| 79 | createdAt: 2026-11-15T03:21:21.000Z | 81 | createdAt: 2026-11-15T03:21:21.000Z |
| 82 | + updatedAt: 2026-11-15T03:29:47.000Z | ||
| 83 | + closedAt: 2026-11-15T03:29:47.000Z | ||
| 80 | - id: 4 | 84 | - id: 4 |
| 81 | title: "Thèmes clair et sombre" | 85 | title: "Thèmes clair et sombre" |
| 82 | - state: open | 86 | + state: closed |
| 83 | priority: medium | 87 | priority: medium |
| 84 | author: | 88 | author: |
| 85 | name: k33g | 89 | name: k33g |
| 86 | email: ph.charriere@gmail.com | 90 | email: ph.charriere@gmail.com |
| 87 | createdAt: 2026-11-15T03:21:21.000Z | 91 | createdAt: 2026-11-15T03:21:21.000Z |
| 92 | + updatedAt: 2026-11-15T03:29:47.000Z | ||
| 93 | + closedAt: 2026-11-15T03:29:47.000Z | ||
| 88 | - id: 5 | 94 | - id: 5 |
| 89 | title: "Tests, doc EN + FR (référence icon), notes de release v1.5.0" | 95 | title: "Tests, doc EN + FR (référence icon), notes de release v1.5.0" |
| 90 | - state: open | 96 | + state: closed |
| 91 | priority: medium | 97 | priority: medium |
| 92 | author: | 98 | author: |
| 93 | name: k33g | 99 | name: k33g |
| 94 | email: ph.charriere@gmail.com | 100 | email: ph.charriere@gmail.com |
| 95 | createdAt: 2026-11-15T03:21:21.000Z | 101 | createdAt: 2026-11-15T03:21:21.000Z |
| 96 | -comments: [] | 102 | + updatedAt: 2026-11-15T03:29:47.000Z |
| 103 | + closedAt: 2026-11-15T03:29:47.000Z | ||
| 104 | +comments: | ||
| 105 | + - id: 1 | ||
| 106 | + author: | ||
| 107 | + name: k33g | ||
| 108 | + email: ph.charriere@gmail.com | ||
| 109 | + createdAt: 2026-11-15T03:29:47.000Z | ||
| 110 | + body: | | ||
| 111 | + Implémenté sur `feature/98-99-100` : icône `logo:<nom>` (`lib/logos.ts`, `avatarOf`, `AgentAvatar` : le | ||
| 112 | + logo dans sa couleur sur un disque clair, lisible en thème clair et sombre ; `textIcon` ne montre rien) ; | ||
| 113 | + `config.LogoNames` (avertissement pour un nom inconnu, schéma) et un test qui vérifie que Go et l'interface ont | ||
| 114 | + la même liste ; catalogue : Claude `logo:claude`, Gemini `logo:gemini`, Vibe `logo:mistral` ; les cartes et | ||
| 115 | + le choix d'icône de l'assistant dessinent les logos. | ||
| 116 | + | ||
| 117 | + **Tâche 1 (marques) — à valider par l'owner** : les tracés viennent de Simple Icons 16.37.0 (CC0-1.0), relevés | ||
| 118 | + sur claude.ai, gemini.google.com et chat.mistral.ai ; source et licence notées dans `logos.ts`. La CC0 couvre | ||
| 119 | + les dessins, pas les marques : usage pour nommer le produit, logo non modifié, sans suggérer de partenariat. | ||
| 120 | + Je n'ai pas lu les règles de marque d'Anthropic, de Google ni de Mistral AI. **OpenAI (Codex)** : retiré de | ||
| 121 | + Simple Icons ; ses règles (openai.com/brand) demandent ses propres fichiers, non modifiés, et réservent le droit | ||
| 122 | + de retirer l'autorisation : Codex garde l'emoji 📗. Pour l'ajouter : déposer le SVG officiel (Blossom) dans | ||
| 123 | + `logos.ts` et `openai` dans `LogoNames`. | ||
modified
docs/en/how-to/create-an-agent-in-a-sandbox.md +1 -1 | @@ -7,7 +7,7 @@ This guide shows how to create a new Claude, Gemini, Codex or Vibe agent that ru | ||
| 7 | 7 | 1. Open the assistant: **✨ Create a Claude, Gemini, Codex or Vibe agent** on the welcome screen, **✨ Create an agent in a sandbox** under the agents list, or **Create an agent in a sandbox** in the command palette (⌘K, Ctrl+K on Linux and Windows). |
| 8 | 8 | 2. Choose the agent: **Claude** (Anthropic's Claude Code), **Gemini** (Google's, through Antigravity), **Codex** (OpenAI's) or **Vibe** (Mistral AI's). |
| 9 | 9 | 3. If sbx does not hold its key yet, paste it in **API key** and click **Save the key**. **Get a key…** opens the page where the company gives you one. Sidekicks hands the key to sbx, which keeps it and gives it to your sandboxes for their calls to that company only; it is never written in a file. A key already saved is shown as **✓ Your … key is stored in sbx**. |
| 10 | -4. Give the agent its last details: **Name shown**, **Name** (what you call it with, `@claude`, and the name of its folder and of its sandbox: lowercase letters, digits and `-`, starting with a letter) and an **Emoji**. The **Name** follows the **Name shown** (`Marcel (assistant)` gives `marcel-assistant`) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken. | |
| 10 | +4. Give the agent its last details: **Name shown**, **Name** (what you call it with, `@claude`, and the name of its folder and of its sandbox: lowercase letters, digits and `-`, starting with a letter) and an **Emoji** (the agent's logo is chosen first). The **Name** follows the **Name shown** (`Marcel (assistant)` gives `marcel-assistant`) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken. | |
| 11 | 11 | 5. Click **Add the agent**. Its conversation opens. Its sandbox is created the first time you write to it, so that first answer takes a while. |
| 12 | 12 | |
| 13 | 13 | The agent's folder is created in your **Documents** folder, named after the agent (`~/Documents/claude`): its `sbxenv.yaml` and its `workspace/` folder, where the agent works. |
| @@ -7,7 +7,7 @@ This guide shows how to create a new Claude, Gemini, Codex or Vibe agent that ru | |||
| 7 | 1. Open the assistant: **✨ Create a Claude, Gemini, Codex or Vibe agent** on the welcome screen, **✨ Create an agent in a sandbox** under the agents list, or **Create an agent in a sandbox** in the command palette (⌘K, Ctrl+K on Linux and Windows). | 7 | 1. Open the assistant: **✨ Create a Claude, Gemini, Codex or Vibe agent** on the welcome screen, **✨ Create an agent in a sandbox** under the agents list, or **Create an agent in a sandbox** in the command palette (⌘K, Ctrl+K on Linux and Windows). |
| 8 | 2. Choose the agent: **Claude** (Anthropic's Claude Code), **Gemini** (Google's, through Antigravity), **Codex** (OpenAI's) or **Vibe** (Mistral AI's). | 8 | 2. Choose the agent: **Claude** (Anthropic's Claude Code), **Gemini** (Google's, through Antigravity), **Codex** (OpenAI's) or **Vibe** (Mistral AI's). |
| 9 | 3. If sbx does not hold its key yet, paste it in **API key** and click **Save the key**. **Get a key…** opens the page where the company gives you one. Sidekicks hands the key to sbx, which keeps it and gives it to your sandboxes for their calls to that company only; it is never written in a file. A key already saved is shown as **✓ Your … key is stored in sbx**. | 9 | 3. If sbx does not hold its key yet, paste it in **API key** and click **Save the key**. **Get a key…** opens the page where the company gives you one. Sidekicks hands the key to sbx, which keeps it and gives it to your sandboxes for their calls to that company only; it is never written in a file. A key already saved is shown as **✓ Your … key is stored in sbx**. |
| 10 | -4. Give the agent its last details: **Name shown**, **Name** (what you call it with, `@claude`, and the name of its folder and of its sandbox: lowercase letters, digits and `-`, starting with a letter) and an **Emoji**. The **Name** follows the **Name shown** (`Marcel (assistant)` gives `marcel-assistant`) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken. | 10 | +4. Give the agent its last details: **Name shown**, **Name** (what you call it with, `@claude`, and the name of its folder and of its sandbox: lowercase letters, digits and `-`, starting with a letter) and an **Emoji** (the agent's logo is chosen first). The **Name** follows the **Name shown** (`Marcel (assistant)` gives `marcel-assistant`) until you type it yourself; Sidekicks always suggests one nobody uses yet, and says so before you click when the one you typed is taken. |
| 11 | 5. Click **Add the agent**. Its conversation opens. Its sandbox is created the first time you write to it, so that first answer takes a while. | 11 | 5. Click **Add the agent**. Its conversation opens. Its sandbox is created the first time you write to it, so that first answer takes a while. |
| 12 | 12 | ||
| 13 | The agent's folder is created in your **Documents** folder, named after the agent (`~/Documents/claude`): its `sbxenv.yaml` and its `workspace/` folder, where the agent works. | 13 | The agent's folder is created in your **Documents** folder, named after the agent (`~/Documents/claude`): its `sbxenv.yaml` and its `workspace/` folder, where the agent works. |
modified
docs/en/reference/agents-and-events.md +5 -5 | @@ -254,14 +254,14 @@ A `view` is `{messages[], form, written, name, title}`: mm's messages since the | ||
| 254 | 254 | |
| 255 | 255 | ## `SbxCreatorService` |
| 256 | 256 | |
| 257 | -The assistant that creates an agent in a Docker Sandbox (issue #96, [How to create a Claude, Gemini, Codex or Vibe agent in a sandbox](../how-to/create-an-agent-in-a-sandbox.md)). The kinds it offers are a catalogue (`internal/sbxcreate`): one entry per kind, with what its `sbxenv.yaml` holds and how Sidekicks starts it. | |
| 257 | +The assistant that creates an agent in a Docker Sandbox (issue #96, [How to create a Claude, Gemini, Codex or Vibe agent in a sandbox](../how-to/create-an-agent-in-a-sandbox.md)). The kinds it offers are a catalogue (`internal/sbxcreate`): one entry per kind, with what its `sbxenv.yaml` holds, how Sidekicks starts it, and its default icon: its brand's logo (issue #100) — Codex keeps an emoji, OpenAI's logo is not shipped. | |
| 258 | 258 | |
| 259 | 259 | | Kind | `agent:` | Kit | Program in the sandbox | sbx secret | |
| 260 | 260 | | --- | --- | --- | --- | --- | |
| 261 | -| `claude` 📙 | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | |
| 262 | -| `gemini` 📘 | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | |
| 263 | -| `codex` 📗 | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | |
| 264 | -| `vibe` 🟧 | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | |
| 261 | +| `claude` (`logo:claude`) | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | |
| 262 | +| `gemini` (`logo:gemini`) | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | |
| 263 | +| `codex` (📗) | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | |
| 264 | +| `vibe` (`logo:mistral`) | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | |
| 265 | 265 | |
| 266 | 266 | | Method | Effect | |
| 267 | 267 | | --- | --- | |
| @@ -254,14 +254,14 @@ A `view` is `{messages[], form, written, name, title}`: mm's messages since the | |||
| 254 | 254 | ||
| 255 | ## `SbxCreatorService` | 255 | ## `SbxCreatorService` |
| 256 | 256 | ||
| 257 | -The assistant that creates an agent in a Docker Sandbox (issue #96, [How to create a Claude, Gemini, Codex or Vibe agent in a sandbox](../how-to/create-an-agent-in-a-sandbox.md)). The kinds it offers are a catalogue (`internal/sbxcreate`): one entry per kind, with what its `sbxenv.yaml` holds and how Sidekicks starts it. | 257 | +The assistant that creates an agent in a Docker Sandbox (issue #96, [How to create a Claude, Gemini, Codex or Vibe agent in a sandbox](../how-to/create-an-agent-in-a-sandbox.md)). The kinds it offers are a catalogue (`internal/sbxcreate`): one entry per kind, with what its `sbxenv.yaml` holds, how Sidekicks starts it, and its default icon: its brand's logo (issue #100) — Codex keeps an emoji, OpenAI's logo is not shipped. |
| 258 | 258 | ||
| 259 | | Kind | `agent:` | Kit | Program in the sandbox | sbx secret | | 259 | | Kind | `agent:` | Kit | Program in the sandbox | sbx secret | |
| 260 | | --- | --- | --- | --- | --- | | 260 | | --- | --- | --- | --- | --- | |
| 261 | -| `claude` 📙 | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | 261 | +| `claude` (`logo:claude`) | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | |
| 262 | -| `gemini` 📘 | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | 262 | +| `gemini` (`logo:gemini`) | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | |
| 263 | -| `codex` 📗 | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | 263 | +| `codex` (📗) | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | |
| 264 | -| `vibe` 🟧 | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | 264 | +| `vibe` (`logo:mistral`) | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | |
| 265 | 265 | ||
| 266 | | Method | Effect | | 266 | | Method | Effect | |
| 267 | | --- | --- | | 267 | | --- | --- | |
modified
docs/en/reference/configuration.md +1 -1 | @@ -83,7 +83,7 @@ agentTools: | ||
| 83 | 83 | | --- | --- | --- | --- | --- | |
| 84 | 84 | | `name` | identifier | yes | | Lowercase letters, digits, `-`, `_`; starts with a letter; 32 characters at most. Used as `@name` and `/name:command`. **Unique.** | |
| 85 | 85 | | `title` | text | no | `name` | Name shown in the interface. | |
| 86 | -| `icon` | text (an emoji or a letter) | no | | Shown next to the agent. An emoji is shown as it is; otherwise its first letter is shown in a coloured circle (the colour depends on `name`). Without `icon`, the circle holds the first letter of `title`. | | |
| 86 | +| `icon` | text (an emoji, a letter or `logo:<name>`) | no | | Shown next to the agent. An emoji is shown as it is; `logo:claude`, `logo:gemini` or `logo:mistral` shows that brand's logo on a light disc (another name is a warning, and shows a letter); otherwise its first letter is shown in a coloured circle (the colour depends on `name`). Without `icon`, the circle holds the first letter of `title`. | | |
| 87 | 87 | | `description` | text | no | | One sentence shown in the `@` list. | |
| 88 | 88 | | `command` | text | yes | | Program serving ACP on stdio. | |
| 89 | 89 | | `args` | list of text | no | `[]` | Its arguments. | |
| @@ -83,7 +83,7 @@ agentTools: | |||
| 83 | | --- | --- | --- | --- | --- | | 83 | | --- | --- | --- | --- | --- | |
| 84 | | `name` | identifier | yes | | Lowercase letters, digits, `-`, `_`; starts with a letter; 32 characters at most. Used as `@name` and `/name:command`. **Unique.** | | 84 | | `name` | identifier | yes | | Lowercase letters, digits, `-`, `_`; starts with a letter; 32 characters at most. Used as `@name` and `/name:command`. **Unique.** | |
| 85 | | `title` | text | no | `name` | Name shown in the interface. | | 85 | | `title` | text | no | `name` | Name shown in the interface. | |
| 86 | -| `icon` | text (an emoji or a letter) | no | | Shown next to the agent. An emoji is shown as it is; otherwise its first letter is shown in a coloured circle (the colour depends on `name`). Without `icon`, the circle holds the first letter of `title`. | | 86 | +| `icon` | text (an emoji, a letter or `logo:<name>`) | no | | Shown next to the agent. An emoji is shown as it is; `logo:claude`, `logo:gemini` or `logo:mistral` shows that brand's logo on a light disc (another name is a warning, and shows a letter); otherwise its first letter is shown in a coloured circle (the colour depends on `name`). Without `icon`, the circle holds the first letter of `title`. | |
| 87 | | `description` | text | no | | One sentence shown in the `@` list. | | 87 | | `description` | text | no | | One sentence shown in the `@` list. | |
| 88 | | `command` | text | yes | | Program serving ACP on stdio. | | 88 | | `command` | text | yes | | Program serving ACP on stdio. | |
| 89 | | `args` | list of text | no | `[]` | Its arguments. | | 89 | | `args` | list of text | no | `[]` | Its arguments. | |
modified
docs/fr/how-to/creer-un-agent-dans-une-sandbox.md +1 -1 | @@ -7,7 +7,7 @@ Ce guide montre comment créer un nouvel agent Claude, Gemini, Codex ou Vibe qui | ||
| 7 | 7 | 1. Ouvrez l'assistant : **✨ Créer un agent Claude, Gemini, Codex ou Vibe** sur l'écran d'accueil, **✨ Créer un agent dans une sandbox** sous la liste des agents, ou **Créer un agent dans une sandbox** dans la palette de commandes (⌘K, Ctrl+K sous Linux et Windows). |
| 8 | 8 | 2. Choisissez l'agent : **Claude** (Claude Code, d'Anthropic), **Gemini** (de Google, via Antigravity), **Codex** (d'OpenAI) ou **Vibe** (de Mistral AI). |
| 9 | 9 | 3. Si sbx n'a pas encore sa clé, collez-la dans **Clé d'API** et cliquez sur **Enregistrer la clé**. **Obtenir une clé…** ouvre la page où l'éditeur vous en donne une. Sidekicks confie la clé à sbx, qui la garde et la fournit à vos sandboxes seulement pour leurs appels à cet éditeur ; elle n'est jamais écrite dans un fichier. Une clé déjà enregistrée s'affiche **✓ Votre clé … est enregistrée dans sbx**. |
| 10 | -4. Donnez à l'agent ses derniers détails : **Nom affiché**, **Nom** (ce qui l'appelle, `@claude`, et le nom de son dossier et de sa sandbox : minuscules, chiffres et `-`, en commençant par une lettre) et un **Emoji**. Le **Nom** suit le **Nom affiché** (`Marcel (assistant)` donne `marcel-assistant`) tant que vous ne le tapez pas vous-même ; Sidekicks en propose toujours un que personne n'utilise encore, et prévient avant le clic quand celui que vous avez tapé est pris. | |
| 10 | +4. Donnez à l'agent ses derniers détails : **Nom affiché**, **Nom** (ce qui l'appelle, `@claude`, et le nom de son dossier et de sa sandbox : minuscules, chiffres et `-`, en commençant par une lettre) et un **Emoji** (le logo de l'agent est choisi d'abord). Le **Nom** suit le **Nom affiché** (`Marcel (assistant)` donne `marcel-assistant`) tant que vous ne le tapez pas vous-même ; Sidekicks en propose toujours un que personne n'utilise encore, et prévient avant le clic quand celui que vous avez tapé est pris. | |
| 11 | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation s'ouvre. Sa sandbox est créée la première fois que vous lui écrivez : cette première réponse prend un moment. |
| 12 | 12 | |
| 13 | 13 | Le dossier de l'agent est créé dans votre dossier **Documents**, au nom de l'agent (`~/Documents/claude`) : son `sbxenv.yaml` et son dossier `workspace/`, où l'agent travaille. |
| @@ -7,7 +7,7 @@ Ce guide montre comment créer un nouvel agent Claude, Gemini, Codex ou Vibe qui | |||
| 7 | 1. Ouvrez l'assistant : **✨ Créer un agent Claude, Gemini, Codex ou Vibe** sur l'écran d'accueil, **✨ Créer un agent dans une sandbox** sous la liste des agents, ou **Créer un agent dans une sandbox** dans la palette de commandes (⌘K, Ctrl+K sous Linux et Windows). | 7 | 1. Ouvrez l'assistant : **✨ Créer un agent Claude, Gemini, Codex ou Vibe** sur l'écran d'accueil, **✨ Créer un agent dans une sandbox** sous la liste des agents, ou **Créer un agent dans une sandbox** dans la palette de commandes (⌘K, Ctrl+K sous Linux et Windows). |
| 8 | 2. Choisissez l'agent : **Claude** (Claude Code, d'Anthropic), **Gemini** (de Google, via Antigravity), **Codex** (d'OpenAI) ou **Vibe** (de Mistral AI). | 8 | 2. Choisissez l'agent : **Claude** (Claude Code, d'Anthropic), **Gemini** (de Google, via Antigravity), **Codex** (d'OpenAI) ou **Vibe** (de Mistral AI). |
| 9 | 3. Si sbx n'a pas encore sa clé, collez-la dans **Clé d'API** et cliquez sur **Enregistrer la clé**. **Obtenir une clé…** ouvre la page où l'éditeur vous en donne une. Sidekicks confie la clé à sbx, qui la garde et la fournit à vos sandboxes seulement pour leurs appels à cet éditeur ; elle n'est jamais écrite dans un fichier. Une clé déjà enregistrée s'affiche **✓ Votre clé … est enregistrée dans sbx**. | 9 | 3. Si sbx n'a pas encore sa clé, collez-la dans **Clé d'API** et cliquez sur **Enregistrer la clé**. **Obtenir une clé…** ouvre la page où l'éditeur vous en donne une. Sidekicks confie la clé à sbx, qui la garde et la fournit à vos sandboxes seulement pour leurs appels à cet éditeur ; elle n'est jamais écrite dans un fichier. Une clé déjà enregistrée s'affiche **✓ Votre clé … est enregistrée dans sbx**. |
| 10 | -4. Donnez à l'agent ses derniers détails : **Nom affiché**, **Nom** (ce qui l'appelle, `@claude`, et le nom de son dossier et de sa sandbox : minuscules, chiffres et `-`, en commençant par une lettre) et un **Emoji**. Le **Nom** suit le **Nom affiché** (`Marcel (assistant)` donne `marcel-assistant`) tant que vous ne le tapez pas vous-même ; Sidekicks en propose toujours un que personne n'utilise encore, et prévient avant le clic quand celui que vous avez tapé est pris. | 10 | +4. Donnez à l'agent ses derniers détails : **Nom affiché**, **Nom** (ce qui l'appelle, `@claude`, et le nom de son dossier et de sa sandbox : minuscules, chiffres et `-`, en commençant par une lettre) et un **Emoji** (le logo de l'agent est choisi d'abord). Le **Nom** suit le **Nom affiché** (`Marcel (assistant)` donne `marcel-assistant`) tant que vous ne le tapez pas vous-même ; Sidekicks en propose toujours un que personne n'utilise encore, et prévient avant le clic quand celui que vous avez tapé est pris. |
| 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation s'ouvre. Sa sandbox est créée la première fois que vous lui écrivez : cette première réponse prend un moment. | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation s'ouvre. Sa sandbox est créée la première fois que vous lui écrivez : cette première réponse prend un moment. |
| 12 | 12 | ||
| 13 | Le dossier de l'agent est créé dans votre dossier **Documents**, au nom de l'agent (`~/Documents/claude`) : son `sbxenv.yaml` et son dossier `workspace/`, où l'agent travaille. | 13 | Le dossier de l'agent est créé dans votre dossier **Documents**, au nom de l'agent (`~/Documents/claude`) : son `sbxenv.yaml` et son dossier `workspace/`, où l'agent travaille. |
modified
docs/fr/reference/agents-et-evenements.md +5 -5 | @@ -254,14 +254,14 @@ Une `view` vaut `{messages[], form, written, name, title}` : les messages de mm | ||
| 254 | 254 | |
| 255 | 255 | ## `SbxCreatorService` |
| 256 | 256 | |
| 257 | -L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un agent Claude, Gemini, Codex ou Vibe dans une sandbox](../how-to/creer-un-agent-dans-une-sandbox.md)). Les types qu'il propose forment un catalogue (`internal/sbxcreate`) : une entrée par type, avec ce que contient son `sbxenv.yaml` et la façon dont Sidekicks le démarre. | |
| 257 | +L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un agent Claude, Gemini, Codex ou Vibe dans une sandbox](../how-to/creer-un-agent-dans-une-sandbox.md)). Les types qu'il propose forment un catalogue (`internal/sbxcreate`) : une entrée par type, avec ce que contient son `sbxenv.yaml`, la façon dont Sidekicks le démarre, et son icône par défaut : le logo de sa marque (issue #100) — Codex garde un emoji, le logo d'OpenAI n'est pas fourni. | |
| 258 | 258 | |
| 259 | 259 | | Type | `agent:` | Kit | Programme dans la sandbox | Secret sbx | |
| 260 | 260 | | --- | --- | --- | --- | --- | |
| 261 | -| `claude` 📙 | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | |
| 262 | -| `gemini` 📘 | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | |
| 263 | -| `codex` 📗 | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | |
| 264 | -| `vibe` 🟧 | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | |
| 261 | +| `claude` (`logo:claude`) | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | |
| 262 | +| `gemini` (`logo:gemini`) | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | |
| 263 | +| `codex` (📗) | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | |
| 264 | +| `vibe` (`logo:mistral`) | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | |
| 265 | 265 | |
| 266 | 266 | | Méthode | Effet | |
| 267 | 267 | | --- | --- | |
| @@ -254,14 +254,14 @@ Une `view` vaut `{messages[], form, written, name, title}` : les messages de mm | |||
| 254 | 254 | ||
| 255 | ## `SbxCreatorService` | 255 | ## `SbxCreatorService` |
| 256 | 256 | ||
| 257 | -L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un agent Claude, Gemini, Codex ou Vibe dans une sandbox](../how-to/creer-un-agent-dans-une-sandbox.md)). Les types qu'il propose forment un catalogue (`internal/sbxcreate`) : une entrée par type, avec ce que contient son `sbxenv.yaml` et la façon dont Sidekicks le démarre. | 257 | +L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un agent Claude, Gemini, Codex ou Vibe dans une sandbox](../how-to/creer-un-agent-dans-une-sandbox.md)). Les types qu'il propose forment un catalogue (`internal/sbxcreate`) : une entrée par type, avec ce que contient son `sbxenv.yaml`, la façon dont Sidekicks le démarre, et son icône par défaut : le logo de sa marque (issue #100) — Codex garde un emoji, le logo d'OpenAI n'est pas fourni. |
| 258 | 258 | ||
| 259 | | Type | `agent:` | Kit | Programme dans la sandbox | Secret sbx | | 259 | | Type | `agent:` | Kit | Programme dans la sandbox | Secret sbx | |
| 260 | | --- | --- | --- | --- | --- | | 260 | | --- | --- | --- | --- | --- | |
| 261 | -| `claude` 📙 | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | | 261 | +| `claude` (`logo:claude`) | `claude` | `docker.io/sbx/claude-acp:latest` | `claude-agent-acp` | `anthropic` | |
| 262 | -| `gemini` 📘 | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | | 262 | +| `gemini` (`logo:gemini`) | `antigravity` | `docker.io/sbx/antigravity:latest` | `agy acp` | `google` | |
| 263 | -| `codex` 📗 | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | | 263 | +| `codex` (📗) | `codex` | `docker.io/sbx/codex-acp:latest` | `codex-acp` | `openai` | |
| 264 | -| `vibe` 🟧 | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | | 264 | +| `vibe` (`logo:mistral`) | `vibe` | `docker.io/sbx/vibe-kit:latest` | `vibe-acp` | `mistral` | |
| 265 | 265 | ||
| 266 | | Méthode | Effet | | 266 | | Méthode | Effet | |
| 267 | | --- | --- | | 267 | | --- | --- | |
modified
docs/fr/reference/configuration.md +1 -1 | @@ -83,7 +83,7 @@ agentTools: | ||
| 83 | 83 | | --- | --- | --- | --- | --- | |
| 84 | 84 | | `name` | identifiant | oui | | Minuscules, chiffres, `-`, `_` ; commence par une lettre ; 32 caractères au plus. Sert dans `@nom` et `/nom:commande`. **Unique.** | |
| 85 | 85 | | `title` | texte | non | `name` | Nom affiché dans l'interface. | |
| 86 | -| `icon` | texte (un emoji ou une lettre) | non | | Affiché à côté de l'agent. Un emoji est affiché tel quel ; sinon sa première lettre est affichée dans un rond coloré (la couleur dépend de `name`). Sans `icon`, le rond contient la première lettre de `title`. | | |
| 86 | +| `icon` | texte (un emoji, une lettre ou `logo:<nom>`) | non | | Affiché à côté de l'agent. Un emoji est affiché tel quel ; `logo:claude`, `logo:gemini` ou `logo:mistral` affiche le logo de cette marque sur un disque clair (un autre nom est un avertissement, et affiche une lettre) ; sinon sa première lettre est affichée dans un rond coloré (la couleur dépend de `name`). Sans `icon`, le rond contient la première lettre de `title`. | | |
| 87 | 87 | | `description` | texte | non | | Une phrase affichée dans la liste `@`. | |
| 88 | 88 | | `command` | texte | oui | | Programme qui sert ACP sur stdio. | |
| 89 | 89 | | `args` | liste de textes | non | `[]` | Ses arguments. | |
| @@ -83,7 +83,7 @@ agentTools: | |||
| 83 | | --- | --- | --- | --- | --- | | 83 | | --- | --- | --- | --- | --- | |
| 84 | | `name` | identifiant | oui | | Minuscules, chiffres, `-`, `_` ; commence par une lettre ; 32 caractères au plus. Sert dans `@nom` et `/nom:commande`. **Unique.** | | 84 | | `name` | identifiant | oui | | Minuscules, chiffres, `-`, `_` ; commence par une lettre ; 32 caractères au plus. Sert dans `@nom` et `/nom:commande`. **Unique.** | |
| 85 | | `title` | texte | non | `name` | Nom affiché dans l'interface. | | 85 | | `title` | texte | non | `name` | Nom affiché dans l'interface. | |
| 86 | -| `icon` | texte (un emoji ou une lettre) | non | | Affiché à côté de l'agent. Un emoji est affiché tel quel ; sinon sa première lettre est affichée dans un rond coloré (la couleur dépend de `name`). Sans `icon`, le rond contient la première lettre de `title`. | | 86 | +| `icon` | texte (un emoji, une lettre ou `logo:<nom>`) | non | | Affiché à côté de l'agent. Un emoji est affiché tel quel ; `logo:claude`, `logo:gemini` ou `logo:mistral` affiche le logo de cette marque sur un disque clair (un autre nom est un avertissement, et affiche une lettre) ; sinon sa première lettre est affichée dans un rond coloré (la couleur dépend de `name`). Sans `icon`, le rond contient la première lettre de `title`. | |
| 87 | | `description` | texte | non | | Une phrase affichée dans la liste `@`. | | 87 | | `description` | texte | non | | Une phrase affichée dans la liste `@`. | |
| 88 | | `command` | texte | oui | | Programme qui sert ACP sur stdio. | | 88 | | `command` | texte | oui | | Programme qui sert ACP sur stdio. | |
| 89 | | `args` | liste de textes | non | `[]` | Ses arguments. | | 89 | | `args` | liste de textes | non | `[]` | Ses arguments. | |
modified
docs/release-notes/v1.5.0.fr.md +3 -2 | @@ -19,7 +19,8 @@ Sidekicks 1.5.0 rend la création d'agents facile pour tout le monde : deux assi | ||
| 19 | 19 | |
| 20 | 20 | - **✨ Créer un agent dans une sandbox** — sous la liste des agents, sur l'écran d'accueil et dans la palette de commandes : choisissez **Claude**, **Gemini** (via Google Antigravity), **Codex** ou **Vibe** (Mistral AI, #86), donnez-lui un nom et un emoji, et Sidekicks écrit son dossier dans votre dossier Documents (son `sbxenv.yaml` et son `workspace/`) puis l'ajoute. Sa sandbox est créée à son premier démarrage. |
| 21 | 21 | - Pas encore de clé d'API dans sbx ? L'assistant explique laquelle il faut, ouvre la page qui en donne une, et la confie à sbx (`sbx secret set`) : la clé n'est jamais écrite dans un fichier ni dans un journal. |
| 22 | -- Le nom donné est aussi celui du dossier et de la sandbox ; Sidekicks en propose un qui est libre. | |
| 22 | +- Chaque type montre le logo de sa marque — Claude, Gemini, Mistral AI — qui devient l'icône de l'agent (#100 ; on peut toujours choisir un emoji). Codex garde un emoji pour l'instant. | |
| 23 | +- Le nom qui l'appelle suit le nom affiché (`Marcel (assistant)` donne `@marcel-assistant`) tant que vous ne le tapez pas vous-même ; c'est aussi celui du dossier et de la sandbox, et Sidekicks en propose un libre avant le clic (#99). L'assistant mini-me demande aussi le nom affiché. | |
| 23 | 24 | - Pas encore connecté à Docker ? **Se connecter à Docker** lance `sbx login` pour vous : Sidekicks affiche le code et ouvre la page où vous le confirmez, puis continue (#97). Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. |
| 24 | 25 | - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Gemini via Antigravity (`agent: antigravity` : `agy acp`) et de Vibe (`agent: vibe` : `vibe-acp`). |
| 25 | 26 | |
| @@ -39,7 +40,7 @@ Sidekicks 1.5.0 rend la création d'agents facile pour tout le monde : deux assi | ||
| 39 | 40 | ## Bon à savoir pour la mise à jour |
| 40 | 41 | |
| 41 | 42 | - Glissez le nouveau **sidekicks** dans **Applications** et confirmez le remplacement ; votre configuration et votre historique sont gardés. |
| 42 | -- Vos fichiers de configuration fonctionnent tels quels. Une nouvelle clé facultative : `agentsFolder`, où l'assistant crée les dossiers des agents (`~/Documents` par défaut). | |
| 43 | +- Vos fichiers de configuration fonctionnent tels quels. Une nouvelle clé facultative : `agentsFolder`, où les assistants créent les dossiers des agents (`~/Documents` par défaut) ; et l'`icon` d'un agent peut maintenant valoir `logo:claude`, `logo:gemini` ou `logo:mistral`. | |
| 43 | 44 | - L'assistant des sandboxes a besoin de sbx (Docker Sandboxes). Gemini passe maintenant par le kit `antigravity` de Docker, qui remplace son `gemini-kit` déprécié ; vos sandboxes Gemini existantes continuent de fonctionner. |
| 44 | 45 | - L'assistant de création d'agents mini-me a besoin de mini-me (`mm`) **1.0.9 ou plus récent**. Pour un agent dans un conteneur Docker, utilisez la version de mini-me qui corrige le compte de `mm dockerinit` ; un agent créé avant affiche `I have no name!` dans son terminal : réécrivez ses fichiers (`mm dockerinit`) et reconstruisez son image (`docker compose up -d --build`). |
| 45 | 46 | |
| @@ -19,7 +19,8 @@ Sidekicks 1.5.0 rend la création d'agents facile pour tout le monde : deux assi | |||
| 19 | 19 | ||
| 20 | - **✨ Créer un agent dans une sandbox** — sous la liste des agents, sur l'écran d'accueil et dans la palette de commandes : choisissez **Claude**, **Gemini** (via Google Antigravity), **Codex** ou **Vibe** (Mistral AI, #86), donnez-lui un nom et un emoji, et Sidekicks écrit son dossier dans votre dossier Documents (son `sbxenv.yaml` et son `workspace/`) puis l'ajoute. Sa sandbox est créée à son premier démarrage. | 20 | - **✨ Créer un agent dans une sandbox** — sous la liste des agents, sur l'écran d'accueil et dans la palette de commandes : choisissez **Claude**, **Gemini** (via Google Antigravity), **Codex** ou **Vibe** (Mistral AI, #86), donnez-lui un nom et un emoji, et Sidekicks écrit son dossier dans votre dossier Documents (son `sbxenv.yaml` et son `workspace/`) puis l'ajoute. Sa sandbox est créée à son premier démarrage. |
| 21 | - Pas encore de clé d'API dans sbx ? L'assistant explique laquelle il faut, ouvre la page qui en donne une, et la confie à sbx (`sbx secret set`) : la clé n'est jamais écrite dans un fichier ni dans un journal. | 21 | - Pas encore de clé d'API dans sbx ? L'assistant explique laquelle il faut, ouvre la page qui en donne une, et la confie à sbx (`sbx secret set`) : la clé n'est jamais écrite dans un fichier ni dans un journal. |
| 22 | -- Le nom donné est aussi celui du dossier et de la sandbox ; Sidekicks en propose un qui est libre. | 22 | +- Chaque type montre le logo de sa marque — Claude, Gemini, Mistral AI — qui devient l'icône de l'agent (#100 ; on peut toujours choisir un emoji). Codex garde un emoji pour l'instant. |
| 23 | +- Le nom qui l'appelle suit le nom affiché (`Marcel (assistant)` donne `@marcel-assistant`) tant que vous ne le tapez pas vous-même ; c'est aussi celui du dossier et de la sandbox, et Sidekicks en propose un libre avant le clic (#99). L'assistant mini-me demande aussi le nom affiché. | ||
| 23 | - Pas encore connecté à Docker ? **Se connecter à Docker** lance `sbx login` pour vous : Sidekicks affiche le code et ouvre la page où vous le confirmez, puis continue (#97). Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. | 24 | - Pas encore connecté à Docker ? **Se connecter à Docker** lance `sbx login` pour vous : Sidekicks affiche le code et ouvre la page où vous le confirmez, puis continue (#97). Le même bouton apparaît sous l'erreur d'un agent sbx qui ne démarre pas. |
| 24 | - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Gemini via Antigravity (`agent: antigravity` : `agy acp`) et de Vibe (`agent: vibe` : `vibe-acp`). | 25 | - L'assistant « Ajouter un agent » reconnaît aussi une sandbox de Gemini via Antigravity (`agent: antigravity` : `agy acp`) et de Vibe (`agent: vibe` : `vibe-acp`). |
| 25 | 26 | ||
| @@ -39,7 +40,7 @@ Sidekicks 1.5.0 rend la création d'agents facile pour tout le monde : deux assi | |||
| 39 | ## Bon à savoir pour la mise à jour | 40 | ## Bon à savoir pour la mise à jour |
| 40 | 41 | ||
| 41 | - Glissez le nouveau **sidekicks** dans **Applications** et confirmez le remplacement ; votre configuration et votre historique sont gardés. | 42 | - Glissez le nouveau **sidekicks** dans **Applications** et confirmez le remplacement ; votre configuration et votre historique sont gardés. |
| 42 | -- Vos fichiers de configuration fonctionnent tels quels. Une nouvelle clé facultative : `agentsFolder`, où l'assistant crée les dossiers des agents (`~/Documents` par défaut). | 43 | +- Vos fichiers de configuration fonctionnent tels quels. Une nouvelle clé facultative : `agentsFolder`, où les assistants créent les dossiers des agents (`~/Documents` par défaut) ; et l'`icon` d'un agent peut maintenant valoir `logo:claude`, `logo:gemini` ou `logo:mistral`. |
| 43 | - L'assistant des sandboxes a besoin de sbx (Docker Sandboxes). Gemini passe maintenant par le kit `antigravity` de Docker, qui remplace son `gemini-kit` déprécié ; vos sandboxes Gemini existantes continuent de fonctionner. | 44 | - L'assistant des sandboxes a besoin de sbx (Docker Sandboxes). Gemini passe maintenant par le kit `antigravity` de Docker, qui remplace son `gemini-kit` déprécié ; vos sandboxes Gemini existantes continuent de fonctionner. |
| 44 | - L'assistant de création d'agents mini-me a besoin de mini-me (`mm`) **1.0.9 ou plus récent**. Pour un agent dans un conteneur Docker, utilisez la version de mini-me qui corrige le compte de `mm dockerinit` ; un agent créé avant affiche `I have no name!` dans son terminal : réécrivez ses fichiers (`mm dockerinit`) et reconstruisez son image (`docker compose up -d --build`). | 45 | - L'assistant de création d'agents mini-me a besoin de mini-me (`mm`) **1.0.9 ou plus récent**. Pour un agent dans un conteneur Docker, utilisez la version de mini-me qui corrige le compte de `mm dockerinit` ; un agent créé avant affiche `I have no name!` dans son terminal : réécrivez ses fichiers (`mm dockerinit`) et reconstruisez son image (`docker compose up -d --build`). |
| 45 | 46 | ||
modified
docs/release-notes/v1.5.0.md +3 -2 | @@ -19,7 +19,8 @@ Sidekicks 1.5.0 makes creating agents easy for everyone: two assistants create a | ||
| 19 | 19 | |
| 20 | 20 | - **✨ Create an agent in a sandbox** — under the agents list, on the welcome screen and in the command palette: choose **Claude**, **Gemini** (through Google Antigravity), **Codex** or **Vibe** (Mistral AI, #86), give it a name and an emoji, and Sidekicks writes its folder in your Documents folder (its `sbxenv.yaml` and its `workspace/`) and adds it. Its sandbox is created at its first start. |
| 21 | 21 | - No API key in sbx yet? The assistant explains which one is needed, opens the page that gives one, and stores it with sbx (`sbx secret set`): the key is never written in a file nor in a log. |
| 22 | -- The name you give is also the folder's and the sandbox's; Sidekicks suggests one that is free. | |
| 22 | +- Each kind shows its brand's logo — Claude, Gemini, Mistral AI — which becomes the agent's icon (#100; any emoji can still be chosen). Codex keeps an emoji for now. | |
| 23 | +- The name you call it with follows the name shown (`Marcel (assistant)` gives `@marcel-assistant`) until you type it yourself; it is also the folder's and the sandbox's, and Sidekicks suggests a free one before you click (#99). The mini-me assistant asks for the name shown too. | |
| 23 | 24 | - Not signed in to Docker yet? **Sign in to Docker** runs `sbx login` for you: Sidekicks shows the code and opens the page where you confirm it, then goes on (#97). The same button appears under the error of an sbx agent that cannot start. |
| 24 | 25 | - The "Add an agent" assistant also recognises a sandbox of Gemini through Antigravity (`agent: antigravity`: `agy acp`) and of Vibe (`agent: vibe`: `vibe-acp`). |
| 25 | 26 | |
| @@ -39,7 +40,7 @@ Sidekicks 1.5.0 makes creating agents easy for everyone: two assistants create a | ||
| 39 | 40 | ## Worth knowing when upgrading |
| 40 | 41 | |
| 41 | 42 | - Drag the new **sidekicks** into **Applications** and confirm the replacement; your configuration and your history are kept. |
| 42 | -- Your configuration files keep working as they are. One new optional key: `agentsFolder`, where the assistant creates the agents' folders (`~/Documents` by default). | |
| 43 | +- Your configuration files keep working as they are. One new optional key: `agentsFolder`, where the assistants create the agents' folders (`~/Documents` by default); and an agent's `icon` may now be `logo:claude`, `logo:gemini` or `logo:mistral`. | |
| 43 | 44 | - The sandbox assistant needs sbx (Docker Sandboxes). Gemini now goes through Docker's `antigravity` kit, which replaces its deprecated `gemini-kit`; your existing Gemini sandboxes keep working. |
| 44 | 45 | - The mini-me creation assistant needs mini-me (`mm`) **1.0.9 or later**. For an agent in a Docker container, use the mini-me release with the account fix of `mm dockerinit`; an agent created before it shows `I have no name!` in its terminal: write its files again (`mm dockerinit`) and rebuild its image (`docker compose up -d --build`). |
| 45 | 46 | |
| @@ -19,7 +19,8 @@ Sidekicks 1.5.0 makes creating agents easy for everyone: two assistants create a | |||
| 19 | 19 | ||
| 20 | - **✨ Create an agent in a sandbox** — under the agents list, on the welcome screen and in the command palette: choose **Claude**, **Gemini** (through Google Antigravity), **Codex** or **Vibe** (Mistral AI, #86), give it a name and an emoji, and Sidekicks writes its folder in your Documents folder (its `sbxenv.yaml` and its `workspace/`) and adds it. Its sandbox is created at its first start. | 20 | - **✨ Create an agent in a sandbox** — under the agents list, on the welcome screen and in the command palette: choose **Claude**, **Gemini** (through Google Antigravity), **Codex** or **Vibe** (Mistral AI, #86), give it a name and an emoji, and Sidekicks writes its folder in your Documents folder (its `sbxenv.yaml` and its `workspace/`) and adds it. Its sandbox is created at its first start. |
| 21 | - No API key in sbx yet? The assistant explains which one is needed, opens the page that gives one, and stores it with sbx (`sbx secret set`): the key is never written in a file nor in a log. | 21 | - No API key in sbx yet? The assistant explains which one is needed, opens the page that gives one, and stores it with sbx (`sbx secret set`): the key is never written in a file nor in a log. |
| 22 | -- The name you give is also the folder's and the sandbox's; Sidekicks suggests one that is free. | 22 | +- Each kind shows its brand's logo — Claude, Gemini, Mistral AI — which becomes the agent's icon (#100; any emoji can still be chosen). Codex keeps an emoji for now. |
| 23 | +- The name you call it with follows the name shown (`Marcel (assistant)` gives `@marcel-assistant`) until you type it yourself; it is also the folder's and the sandbox's, and Sidekicks suggests a free one before you click (#99). The mini-me assistant asks for the name shown too. | ||
| 23 | - Not signed in to Docker yet? **Sign in to Docker** runs `sbx login` for you: Sidekicks shows the code and opens the page where you confirm it, then goes on (#97). The same button appears under the error of an sbx agent that cannot start. | 24 | - Not signed in to Docker yet? **Sign in to Docker** runs `sbx login` for you: Sidekicks shows the code and opens the page where you confirm it, then goes on (#97). The same button appears under the error of an sbx agent that cannot start. |
| 24 | - The "Add an agent" assistant also recognises a sandbox of Gemini through Antigravity (`agent: antigravity`: `agy acp`) and of Vibe (`agent: vibe`: `vibe-acp`). | 25 | - The "Add an agent" assistant also recognises a sandbox of Gemini through Antigravity (`agent: antigravity`: `agy acp`) and of Vibe (`agent: vibe`: `vibe-acp`). |
| 25 | 26 | ||
| @@ -39,7 +40,7 @@ Sidekicks 1.5.0 makes creating agents easy for everyone: two assistants create a | |||
| 39 | ## Worth knowing when upgrading | 40 | ## Worth knowing when upgrading |
| 40 | 41 | ||
| 41 | - Drag the new **sidekicks** into **Applications** and confirm the replacement; your configuration and your history are kept. | 42 | - Drag the new **sidekicks** into **Applications** and confirm the replacement; your configuration and your history are kept. |
| 42 | -- Your configuration files keep working as they are. One new optional key: `agentsFolder`, where the assistant creates the agents' folders (`~/Documents` by default). | 43 | +- Your configuration files keep working as they are. One new optional key: `agentsFolder`, where the assistants create the agents' folders (`~/Documents` by default); and an agent's `icon` may now be `logo:claude`, `logo:gemini` or `logo:mistral`. |
| 43 | - The sandbox assistant needs sbx (Docker Sandboxes). Gemini now goes through Docker's `antigravity` kit, which replaces its deprecated `gemini-kit`; your existing Gemini sandboxes keep working. | 44 | - The sandbox assistant needs sbx (Docker Sandboxes). Gemini now goes through Docker's `antigravity` kit, which replaces its deprecated `gemini-kit`; your existing Gemini sandboxes keep working. |
| 44 | - The mini-me creation assistant needs mini-me (`mm`) **1.0.9 or later**. For an agent in a Docker container, use the mini-me release with the account fix of `mm dockerinit`; an agent created before it shows `I have no name!` in its terminal: write its files again (`mm dockerinit`) and rebuild its image (`docker compose up -d --build`). | 45 | - The mini-me creation assistant needs mini-me (`mm`) **1.0.9 or later**. For an agent in a Docker container, use the mini-me release with the account fix of `mm dockerinit`; an agent created before it shows `I have no name!` in its terminal: write its files again (`mm dockerinit`) and rebuild its image (`docker compose up -d --build`). |
| 45 | 46 | ||
modified
frontend/bindings/git.rickub.com/bots-garden/sidekicks/internal/sbxcreate/models.ts +6 -0 | @@ -8,6 +8,12 @@ | ||
| 8 | 8 | export interface Kind { |
| 9 | 9 | "id": string; |
| 10 | 10 | "title": string; |
| 11 | + | |
| 12 | + /** | |
| 13 | + * Icon is the agent's default icon: its brand's logo ("logo:<name>", | |
| 14 | + * issue #100) when Sidekicks ships it, else an emoji (Codex: OpenAI's | |
| 15 | + * logo is not shipped). | |
| 16 | + */ | |
| 11 | 17 | "icon": string; |
| 12 | 18 | |
| 13 | 19 | /** |
| @@ -8,6 +8,12 @@ | |||
| 8 | export interface Kind { | 8 | export interface Kind { |
| 9 | "id": string; | 9 | "id": string; |
| 10 | "title": string; | 10 | "title": string; |
| 11 | + | ||
| 12 | + /** | ||
| 13 | + * Icon is the agent's default icon: its brand's logo ("logo:<name>", | ||
| 14 | + * issue #100) when Sidekicks ships it, else an emoji (Codex: OpenAI's | ||
| 15 | + * logo is not shipped). | ||
| 16 | + */ | ||
| 11 | "icon": string; | 17 | "icon": string; |
| 12 | 18 | ||
| 13 | /** | 19 | /** |
modified
frontend/src/lib/agent/AgentAvatar.svelte +21 -3 | @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <!-- Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE --> |
| 2 | 2 | <script lang="ts"> |
| 3 | - // An agent's avatar: its emoji, or a letter in a coloured circle (see | |
| 4 | - // avatarOf). Decorative: the agent's title is always written next to it. | |
| 3 | + // An agent's avatar: the logo of its brand on a light disc, its emoji, or | |
| 4 | + // a letter in a coloured circle (see avatarOf). Decorative: the agent's | |
| 5 | + // title is always written next to it. | |
| 5 | 6 | import { avatarOf } from '../avatar' |
| 6 | 7 | |
| 7 | 8 | let { icon, title, name, size = 18 }: { icon?: string; title: string; name: string; size?: number } = $props() |
| @@ -9,13 +10,30 @@ | ||
| 9 | 10 | const avatar = $derived(avatarOf(icon, title, name)) |
| 10 | 11 | </script> |
| 11 | 12 | |
| 12 | -{#if 'emoji' in avatar} | |
| 13 | +{#if 'logo' in avatar} | |
| 14 | + <span class="logo" aria-hidden="true" style:--size="{size}px"> | |
| 15 | + <svg viewBox="0 0 24 24" fill={avatar.logo.color}><path d={avatar.logo.path} /></svg> | |
| 16 | + </span> | |
| 17 | +{:else if 'emoji' in avatar} | |
| 13 | 18 | <span class="emoji" aria-hidden="true">{avatar.emoji}</span> |
| 14 | 19 | {:else} |
| 15 | 20 | <span class="letter" aria-hidden="true" style:background={avatar.color} style:--size="{size}px">{avatar.letter}</span> |
| 16 | 21 | {/if} |
| 17 | 22 | |
| 18 | 23 | <style> |
| 24 | + .logo { | |
| 25 | + display: inline-flex; | |
| 26 | + align-items: center; | |
| 27 | + justify-content: center; | |
| 28 | + flex: none; | |
| 29 | + width: var(--size); | |
| 30 | + height: var(--size); | |
| 31 | + border-radius: 50%; | |
| 32 | + background: #fff; | |
| 33 | + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); | |
| 34 | + vertical-align: middle; | |
| 35 | + } | |
| 36 | + .logo svg { width: 66%; height: 66%; } | |
| 19 | 37 | .letter { |
| 20 | 38 | display: inline-flex; |
| 21 | 39 | align-items: center; |
| @@ -1,7 +1,8 @@ | |||
| 1 | <!-- Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE --> | 1 | <!-- Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE --> |
| 2 | <script lang="ts"> | 2 | <script lang="ts"> |
| 3 | - // An agent's avatar: its emoji, or a letter in a coloured circle (see | 3 | + // An agent's avatar: the logo of its brand on a light disc, its emoji, or |
| 4 | - // avatarOf). Decorative: the agent's title is always written next to it. | 4 | + // a letter in a coloured circle (see avatarOf). Decorative: the agent's |
| 5 | + // title is always written next to it. | ||
| 5 | import { avatarOf } from '../avatar' | 6 | import { avatarOf } from '../avatar' |
| 6 | 7 | ||
| 7 | let { icon, title, name, size = 18 }: { icon?: string; title: string; name: string; size?: number } = $props() | 8 | let { icon, title, name, size = 18 }: { icon?: string; title: string; name: string; size?: number } = $props() |
| @@ -9,13 +10,30 @@ | |||
| 9 | const avatar = $derived(avatarOf(icon, title, name)) | 10 | const avatar = $derived(avatarOf(icon, title, name)) |
| 10 | </script> | 11 | </script> |
| 11 | 12 | ||
| 12 | -{#if 'emoji' in avatar} | 13 | +{#if 'logo' in avatar} |
| 14 | + <span class="logo" aria-hidden="true" style:--size="{size}px"> | ||
| 15 | + <svg viewBox="0 0 24 24" fill={avatar.logo.color}><path d={avatar.logo.path} /></svg> | ||
| 16 | + </span> | ||
| 17 | +{:else if 'emoji' in avatar} | ||
| 13 | <span class="emoji" aria-hidden="true">{avatar.emoji}</span> | 18 | <span class="emoji" aria-hidden="true">{avatar.emoji}</span> |
| 14 | {:else} | 19 | {:else} |
| 15 | <span class="letter" aria-hidden="true" style:background={avatar.color} style:--size="{size}px">{avatar.letter}</span> | 20 | <span class="letter" aria-hidden="true" style:background={avatar.color} style:--size="{size}px">{avatar.letter}</span> |
| 16 | {/if} | 21 | {/if} |
| 17 | 22 | ||
| 18 | <style> | 23 | <style> |
| 24 | + .logo { | ||
| 25 | + display: inline-flex; | ||
| 26 | + align-items: center; | ||
| 27 | + justify-content: center; | ||
| 28 | + flex: none; | ||
| 29 | + width: var(--size); | ||
| 30 | + height: var(--size); | ||
| 31 | + border-radius: 50%; | ||
| 32 | + background: #fff; | ||
| 33 | + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); | ||
| 34 | + vertical-align: middle; | ||
| 35 | + } | ||
| 36 | + .logo svg { width: 66%; height: 66%; } | ||
| 19 | .letter { | 37 | .letter { |
| 20 | display: inline-flex; | 38 | display: inline-flex; |
| 21 | align-items: center; | 39 | align-items: center; |
modified
frontend/src/lib/agent/CreateSbxAgent.svelte +6 -5 | @@ -13,6 +13,7 @@ | ||
| 13 | 13 | import { agentAdded, appState } from '../state.svelte' |
| 14 | 14 | import { agentFolder, freeName, iconChoices, problemKey, sbxMissing, sbxNameFromTitle, validSbxName } from '../creator' |
| 15 | 15 | import AgentAvatar from './AgentAvatar.svelte' |
| 16 | + import { logoOf } from '../logos' | |
| 16 | 17 | import ErrorText from '../chat/ErrorText.svelte' |
| 17 | 18 | import Spinner from '../chat/Spinner.svelte' |
| 18 | 19 | |
| @@ -135,7 +136,7 @@ | ||
| 135 | 136 | <div class="kinds" role="group" aria-label={t('sbxCreator.choose')}> |
| 136 | 137 | {#each kinds as choice (choice.id)} |
| 137 | 138 | <button type="button" class="kind" onclick={() => choose(choice)}> |
| 138 | - <span class="icon" aria-hidden="true">{choice.icon}</span> | |
| 139 | + <span class="icon" aria-hidden="true"><AgentAvatar icon={choice.icon} title={choice.title} name={choice.id} size={32} /></span> | |
| 139 | 140 | <span><strong>{choice.title}</strong><br /><small>{t(`sbxCreator.kind.${choice.id}` as MessageKey)}</small></span> |
| 140 | 141 | </button> |
| 141 | 142 | {/each} |
| @@ -154,7 +155,7 @@ | ||
| 154 | 155 | </div> |
| 155 | 156 | {:else if step === 'key' && kind} |
| 156 | 157 | <form class="panel" onsubmit={saveKey}> |
| 157 | - <h2>{kind.icon} {t('sbxCreator.key.title', { title: kind.title })}</h2> | |
| 158 | + <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t('sbxCreator.key.title', { title: kind.title })}</h2> | |
| 158 | 159 | <p>{t('sbxCreator.key.explain', { title: kind.title, service: kind.service })}</p> |
| 159 | 160 | <button type="button" class="link" onclick={() => kind && Browser.OpenURL(kind.keyUrl)}>{t('sbxCreator.key.get')}</button> |
| 160 | 161 | <label> |
| @@ -196,9 +197,9 @@ | ||
| 196 | 197 | <span class="label">{t('creator.icon')}</span> |
| 197 | 198 | <div class="icons"> |
| 198 | 199 | {#each icons as choice (choice)} |
| 199 | - <button type="button" class="icon-choice" class:chosen={icon === choice} onclick={() => (icon = choice)} aria-label={choice} aria-pressed={icon === choice}>{choice}</button> | |
| 200 | + <button type="button" class="icon-choice" class:chosen={icon === choice} onclick={() => (icon = choice)} aria-label={logoOf(choice)?.title ?? choice} aria-pressed={icon === choice}>{#if logoOf(choice)}<AgentAvatar icon={choice} title={kind.title} name={kind.id} size={24} />{:else}{choice}{/if}</button> | |
| 200 | 201 | {/each} |
| 201 | - <input class="custom" bind:value={icon} maxlength="8" aria-label={t('creator.icon')} /> | |
| 202 | + <input class="custom" value={logoOf(icon) ? '' : icon} oninput={(event) => (icon = event.currentTarget.value)} maxlength="8" aria-label={t('creator.icon')} /> | |
| 202 | 203 | </div> |
| 203 | 204 | </div> |
| 204 | 205 | </fieldset> |
| @@ -223,7 +224,7 @@ | ||
| 223 | 224 | <style> |
| 224 | 225 | .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; } |
| 225 | 226 | h1 { font-size: 20px; margin: 0; } |
| 226 | - h2 { font-size: 16px; margin: 0; } | |
| 227 | + h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 6px; } | |
| 227 | 228 | .intro, .status { color: var(--muted); margin: 0; } |
| 228 | 229 | .status { display: flex; align-items: center; gap: 8px; } |
| 229 | 230 | .kinds { display: flex; flex-direction: column; gap: 8px; } |
| @@ -13,6 +13,7 @@ | |||
| 13 | import { agentAdded, appState } from '../state.svelte' | 13 | import { agentAdded, appState } from '../state.svelte' |
| 14 | import { agentFolder, freeName, iconChoices, problemKey, sbxMissing, sbxNameFromTitle, validSbxName } from '../creator' | 14 | import { agentFolder, freeName, iconChoices, problemKey, sbxMissing, sbxNameFromTitle, validSbxName } from '../creator' |
| 15 | import AgentAvatar from './AgentAvatar.svelte' | 15 | import AgentAvatar from './AgentAvatar.svelte' |
| 16 | + import { logoOf } from '../logos' | ||
| 16 | import ErrorText from '../chat/ErrorText.svelte' | 17 | import ErrorText from '../chat/ErrorText.svelte' |
| 17 | import Spinner from '../chat/Spinner.svelte' | 18 | import Spinner from '../chat/Spinner.svelte' |
| 18 | 19 | ||
| @@ -135,7 +136,7 @@ | |||
| 135 | <div class="kinds" role="group" aria-label={t('sbxCreator.choose')}> | 136 | <div class="kinds" role="group" aria-label={t('sbxCreator.choose')}> |
| 136 | {#each kinds as choice (choice.id)} | 137 | {#each kinds as choice (choice.id)} |
| 137 | <button type="button" class="kind" onclick={() => choose(choice)}> | 138 | <button type="button" class="kind" onclick={() => choose(choice)}> |
| 138 | - <span class="icon" aria-hidden="true">{choice.icon}</span> | 139 | + <span class="icon" aria-hidden="true"><AgentAvatar icon={choice.icon} title={choice.title} name={choice.id} size={32} /></span> |
| 139 | <span><strong>{choice.title}</strong><br /><small>{t(`sbxCreator.kind.${choice.id}` as MessageKey)}</small></span> | 140 | <span><strong>{choice.title}</strong><br /><small>{t(`sbxCreator.kind.${choice.id}` as MessageKey)}</small></span> |
| 140 | </button> | 141 | </button> |
| 141 | {/each} | 142 | {/each} |
| @@ -154,7 +155,7 @@ | |||
| 154 | </div> | 155 | </div> |
| 155 | {:else if step === 'key' && kind} | 156 | {:else if step === 'key' && kind} |
| 156 | <form class="panel" onsubmit={saveKey}> | 157 | <form class="panel" onsubmit={saveKey}> |
| 157 | - <h2>{kind.icon} {t('sbxCreator.key.title', { title: kind.title })}</h2> | 158 | + <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t('sbxCreator.key.title', { title: kind.title })}</h2> |
| 158 | <p>{t('sbxCreator.key.explain', { title: kind.title, service: kind.service })}</p> | 159 | <p>{t('sbxCreator.key.explain', { title: kind.title, service: kind.service })}</p> |
| 159 | <button type="button" class="link" onclick={() => kind && Browser.OpenURL(kind.keyUrl)}>{t('sbxCreator.key.get')}</button> | 160 | <button type="button" class="link" onclick={() => kind && Browser.OpenURL(kind.keyUrl)}>{t('sbxCreator.key.get')}</button> |
| 160 | <label> | 161 | <label> |
| @@ -196,9 +197,9 @@ | |||
| 196 | <span class="label">{t('creator.icon')}</span> | 197 | <span class="label">{t('creator.icon')}</span> |
| 197 | <div class="icons"> | 198 | <div class="icons"> |
| 198 | {#each icons as choice (choice)} | 199 | {#each icons as choice (choice)} |
| 199 | - <button type="button" class="icon-choice" class:chosen={icon === choice} onclick={() => (icon = choice)} aria-label={choice} aria-pressed={icon === choice}>{choice}</button> | 200 | + <button type="button" class="icon-choice" class:chosen={icon === choice} onclick={() => (icon = choice)} aria-label={logoOf(choice)?.title ?? choice} aria-pressed={icon === choice}>{#if logoOf(choice)}<AgentAvatar icon={choice} title={kind.title} name={kind.id} size={24} />{:else}{choice}{/if}</button> |
| 200 | {/each} | 201 | {/each} |
| 201 | - <input class="custom" bind:value={icon} maxlength="8" aria-label={t('creator.icon')} /> | 202 | + <input class="custom" value={logoOf(icon) ? '' : icon} oninput={(event) => (icon = event.currentTarget.value)} maxlength="8" aria-label={t('creator.icon')} /> |
| 202 | </div> | 203 | </div> |
| 203 | </div> | 204 | </div> |
| 204 | </fieldset> | 205 | </fieldset> |
| @@ -223,7 +224,7 @@ | |||
| 223 | <style> | 224 | <style> |
| 224 | .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; } | 225 | .creator { max-width: 620px; width: 100%; margin: 0 auto; padding: 24px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; } |
| 225 | h1 { font-size: 20px; margin: 0; } | 226 | h1 { font-size: 20px; margin: 0; } |
| 226 | - h2 { font-size: 16px; margin: 0; } | 227 | + h2 { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 6px; } |
| 227 | .intro, .status { color: var(--muted); margin: 0; } | 228 | .intro, .status { color: var(--muted); margin: 0; } |
| 228 | .status { display: flex; align-items: center; gap: 8px; } | 229 | .status { display: flex; align-items: center; gap: 8px; } |
| 229 | .kinds { display: flex; flex-direction: column; gap: 8px; } | 230 | .kinds { display: flex; flex-direction: column; gap: 8px; } |
modified
frontend/src/lib/avatar.test.ts +14 -0 | @@ -3,6 +3,20 @@ | ||
| 3 | 3 | import { describe, expect, it } from 'vitest' |
| 4 | 4 | import { avatarColors, avatarOf, isEmoji, textIcon } from './avatar' |
| 5 | 5 | import { contrastRatio } from './contrast' |
| 6 | +import { logoOf, logos } from './logos' | |
| 7 | + | |
| 8 | +describe('logos (issue #100)', () => { | |
| 9 | + it('draws a logo Sidekicks ships', () => { | |
| 10 | + const avatar = avatarOf('logo:claude', 'Claude', 'claude') | |
| 11 | + expect('logo' in avatar && avatar.logo.title).toBe('Claude') | |
| 12 | + expect(logoOf(' logo:mistral ')?.title).toBe('Mistral AI') | |
| 13 | + expect(Object.keys(logos).sort()).toEqual(['claude', 'gemini', 'mistral']) | |
| 14 | + }) | |
| 15 | + it('shows a letter for an unknown logo, and no text icon', () => { | |
| 16 | + expect(avatarOf('logo:nope', 'Codex', 'codex')).toMatchObject({ letter: 'C' }) | |
| 17 | + expect(textIcon('logo:claude')).toBe('') | |
| 18 | + }) | |
| 19 | +}) | |
| 6 | 20 | |
| 7 | 21 | describe('avatarOf', () => { |
| 8 | 22 | it('keeps an emoji', () => { |
| @@ -3,6 +3,20 @@ | |||
| 3 | import { describe, expect, it } from 'vitest' | 3 | import { describe, expect, it } from 'vitest' |
| 4 | import { avatarColors, avatarOf, isEmoji, textIcon } from './avatar' | 4 | import { avatarColors, avatarOf, isEmoji, textIcon } from './avatar' |
| 5 | import { contrastRatio } from './contrast' | 5 | import { contrastRatio } from './contrast' |
| 6 | +import { logoOf, logos } from './logos' | ||
| 7 | + | ||
| 8 | +describe('logos (issue #100)', () => { | ||
| 9 | + it('draws a logo Sidekicks ships', () => { | ||
| 10 | + const avatar = avatarOf('logo:claude', 'Claude', 'claude') | ||
| 11 | + expect('logo' in avatar && avatar.logo.title).toBe('Claude') | ||
| 12 | + expect(logoOf(' logo:mistral ')?.title).toBe('Mistral AI') | ||
| 13 | + expect(Object.keys(logos).sort()).toEqual(['claude', 'gemini', 'mistral']) | ||
| 14 | + }) | ||
| 15 | + it('shows a letter for an unknown logo, and no text icon', () => { | ||
| 16 | + expect(avatarOf('logo:nope', 'Codex', 'codex')).toMatchObject({ letter: 'C' }) | ||
| 17 | + expect(textIcon('logo:claude')).toBe('') | ||
| 18 | + }) | ||
| 19 | +}) | ||
| 6 | 20 | ||
| 7 | describe('avatarOf', () => { | 21 | describe('avatarOf', () => { |
| 8 | it('keeps an emoji', () => { | 22 | it('keeps an emoji', () => { |
modified
frontend/src/lib/avatar.ts +11 -3 | @@ -1,12 +1,15 @@ | ||
| 1 | 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE |
| 2 | 2 | |
| 3 | -// An agent's avatar: its emoji, or a letter in a coloured circle when its | |
| 4 | -// icon is not an emoji (a letter typed by the user, or nothing). | |
| 3 | +// An agent's avatar: the logo of its brand (icon "logo:<name>", issue #100), | |
| 4 | +// its emoji, or a letter in a coloured circle when its icon is neither (a | |
| 5 | +// letter typed by the user, an unknown logo, or nothing). | |
| 6 | + | |
| 7 | +import { logoOf, type Logo } from './logos' | |
| 5 | 8 | |
| 6 | 9 | /** Colours of the letter avatars, white text on each passes WCAG AA (4.5:1). */ |
| 7 | 10 | export const avatarColors = ['#3667d0', '#c9354f', '#317b3f', '#8a4fb5', '#b2541a', '#1b7a8c', '#a3367e', '#5b6577'] as const |
| 8 | 11 | |
| 9 | -export type Avatar = { emoji: string } | { letter: string; color: string } | |
| 12 | +export type Avatar = { logo: Logo } | { emoji: string } | { letter: string; color: string } | |
| 10 | 13 | |
| 11 | 14 | const emojiPattern = /\p{Extended_Pictographic}|\p{Regional_Indicator}/u |
| 12 | 15 | |
| @@ -37,9 +40,13 @@ function colorOf(name: string): string { | ||
| 37 | 40 | * avatarOf('🐮', 'Garfield', 'garfield') // { emoji: '🐮' } |
| 38 | 41 | * avatarOf('', 'Hélène', 'helene') // { letter: 'H', color: '#…' } |
| 39 | 42 | * avatarOf('m', 'Milo', 'milo') // { letter: 'M', color: '#…' } |
| 43 | + * avatarOf('logo:claude', 'Claude', 'claude') // { logo: { title: 'Claude', … } } | |
| 40 | 44 | */ |
| 41 | 45 | export function avatarOf(icon: string | undefined, title: string, name: string): Avatar { |
| 42 | 46 | const trimmed = (icon ?? '').trim() |
| 47 | + const logo = logoOf(trimmed) | |
| 48 | + if (logo) return { logo } | |
| 49 | + if (trimmed.startsWith('logo:')) return { letter: initial(title) || initial(name) || '?', color: colorOf(name) } | |
| 43 | 50 | if (isEmoji(trimmed)) return { emoji: trimmed } |
| 44 | 51 | return { letter: initial(trimmed) || initial(title) || initial(name) || '?', color: colorOf(name) } |
| 45 | 52 | } |
| @@ -51,6 +58,7 @@ export function avatarOf(icon: string | undefined, title: string, name: string): | ||
| 51 | 58 | * @example |
| 52 | 59 | * textIcon('🐮') // '🐮 ' |
| 53 | 60 | * textIcon('M') // '' |
| 61 | + * textIcon('logo:claude') // '' (a logo is no text) | |
| 54 | 62 | */ |
| 55 | 63 | export function textIcon(icon: string | undefined): string { |
| 56 | 64 | const trimmed = (icon ?? '').trim() |
| @@ -1,12 +1,15 @@ | |||
| 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE | 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE |
| 2 | 2 | ||
| 3 | -// An agent's avatar: its emoji, or a letter in a coloured circle when its | 3 | +// An agent's avatar: the logo of its brand (icon "logo:<name>", issue #100), |
| 4 | -// icon is not an emoji (a letter typed by the user, or nothing). | 4 | +// its emoji, or a letter in a coloured circle when its icon is neither (a |
| 5 | +// letter typed by the user, an unknown logo, or nothing). | ||
| 6 | + | ||
| 7 | +import { logoOf, type Logo } from './logos' | ||
| 5 | 8 | ||
| 6 | /** Colours of the letter avatars, white text on each passes WCAG AA (4.5:1). */ | 9 | /** Colours of the letter avatars, white text on each passes WCAG AA (4.5:1). */ |
| 7 | export const avatarColors = ['#3667d0', '#c9354f', '#317b3f', '#8a4fb5', '#b2541a', '#1b7a8c', '#a3367e', '#5b6577'] as const | 10 | export const avatarColors = ['#3667d0', '#c9354f', '#317b3f', '#8a4fb5', '#b2541a', '#1b7a8c', '#a3367e', '#5b6577'] as const |
| 8 | 11 | ||
| 9 | -export type Avatar = { emoji: string } | { letter: string; color: string } | 12 | +export type Avatar = { logo: Logo } | { emoji: string } | { letter: string; color: string } |
| 10 | 13 | ||
| 11 | const emojiPattern = /\p{Extended_Pictographic}|\p{Regional_Indicator}/u | 14 | const emojiPattern = /\p{Extended_Pictographic}|\p{Regional_Indicator}/u |
| 12 | 15 | ||
| @@ -37,9 +40,13 @@ function colorOf(name: string): string { | |||
| 37 | * avatarOf('🐮', 'Garfield', 'garfield') // { emoji: '🐮' } | 40 | * avatarOf('🐮', 'Garfield', 'garfield') // { emoji: '🐮' } |
| 38 | * avatarOf('', 'Hélène', 'helene') // { letter: 'H', color: '#…' } | 41 | * avatarOf('', 'Hélène', 'helene') // { letter: 'H', color: '#…' } |
| 39 | * avatarOf('m', 'Milo', 'milo') // { letter: 'M', color: '#…' } | 42 | * avatarOf('m', 'Milo', 'milo') // { letter: 'M', color: '#…' } |
| 43 | + * avatarOf('logo:claude', 'Claude', 'claude') // { logo: { title: 'Claude', … } } | ||
| 40 | */ | 44 | */ |
| 41 | export function avatarOf(icon: string | undefined, title: string, name: string): Avatar { | 45 | export function avatarOf(icon: string | undefined, title: string, name: string): Avatar { |
| 42 | const trimmed = (icon ?? '').trim() | 46 | const trimmed = (icon ?? '').trim() |
| 47 | + const logo = logoOf(trimmed) | ||
| 48 | + if (logo) return { logo } | ||
| 49 | + if (trimmed.startsWith('logo:')) return { letter: initial(title) || initial(name) || '?', color: colorOf(name) } | ||
| 43 | if (isEmoji(trimmed)) return { emoji: trimmed } | 50 | if (isEmoji(trimmed)) return { emoji: trimmed } |
| 44 | return { letter: initial(trimmed) || initial(title) || initial(name) || '?', color: colorOf(name) } | 51 | return { letter: initial(trimmed) || initial(title) || initial(name) || '?', color: colorOf(name) } |
| 45 | } | 52 | } |
| @@ -51,6 +58,7 @@ export function avatarOf(icon: string | undefined, title: string, name: string): | |||
| 51 | * @example | 58 | * @example |
| 52 | * textIcon('🐮') // '🐮 ' | 59 | * textIcon('🐮') // '🐮 ' |
| 53 | * textIcon('M') // '' | 60 | * textIcon('M') // '' |
| 61 | + * textIcon('logo:claude') // '' (a logo is no text) | ||
| 54 | */ | 62 | */ |
| 55 | export function textIcon(icon: string | undefined): string { | 63 | export function textIcon(icon: string | undefined): string { |
| 56 | const trimmed = (icon ?? '').trim() | 64 | const trimmed = (icon ?? '').trim() |
added
frontend/src/lib/logos.ts +61 -0 | new file mode 100644 | ||
| @@ -0,0 +1,61 @@ | ||
| 1 | +// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE | |
| 2 | + | |
| 3 | +// The logos Sidekicks ships for agents (issue #100): an agent whose icon is | |
| 4 | +// "logo:<name>" shows the logo of its brand instead of an emoji or a letter. | |
| 5 | +// The names are those of LogoNames in internal/config/config.go (a Go test | |
| 6 | +// checks both lists). | |
| 7 | +// | |
| 8 | +// Source: Simple Icons 16.37.0 (https://simpleicons.org, npm simple-icons), | |
| 9 | +// released under CC0-1.0, each traced from the brand's own site (below). | |
| 10 | +// CC0 covers the drawings, not the trademarks: Claude (Anthropic), Gemini | |
| 11 | +// (Google) and Mistral AI are trademarks of their owners, shown here only | |
| 12 | +// to name their products, unchanged, without any endorsement implied. | |
| 13 | +// OpenAI (Codex) is not in Simple Icons and its brand guidelines ask for its | |
| 14 | +// own files (openai.com/brand): not shipped yet. | |
| 15 | + | |
| 16 | +export interface Logo { | |
| 17 | + title: string | |
| 18 | + /** The brand colour, drawn on a light disc so that it reads in both themes. */ | |
| 19 | + color: string | |
| 20 | + /** One SVG path, in a 24×24 view box. */ | |
| 21 | + path: string | |
| 22 | + /** Where the drawing comes from. */ | |
| 23 | + source: string | |
| 24 | +} | |
| 25 | + | |
| 26 | +export const logos: Record<string, Logo> = { | |
| 27 | + claude: { | |
| 28 | + title: 'Claude', | |
| 29 | + color: '#D97757', | |
| 30 | + source: 'https://claude.ai (Simple Icons, CC0-1.0)', | |
| 31 | + path: 'm4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z', | |
| 32 | + }, | |
| 33 | + gemini: { | |
| 34 | + title: 'Google Gemini', | |
| 35 | + color: '#8E75B2', | |
| 36 | + source: 'https://gemini.google.com (Simple Icons, CC0-1.0)', | |
| 37 | + path: 'M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81', | |
| 38 | + }, | |
| 39 | + mistral: { | |
| 40 | + title: 'Mistral AI', | |
| 41 | + color: '#FA520F', | |
| 42 | + source: 'https://chat.mistral.ai (Simple Icons, CC0-1.0)', | |
| 43 | + path: 'M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z', | |
| 44 | + }, | |
| 45 | +} | |
| 46 | + | |
| 47 | +/** The prefix of an icon that is a logo. */ | |
| 48 | +export const logoPrefix = 'logo:' | |
| 49 | + | |
| 50 | +/** | |
| 51 | + * The logo an icon names, or null (not a logo, or one Sidekicks does not ship). | |
| 52 | + * | |
| 53 | + * @example | |
| 54 | + * logoOf('logo:claude') // { title: 'Claude', … } | |
| 55 | + * logoOf('🤖') // null | |
| 56 | + */ | |
| 57 | +export function logoOf(icon: string | undefined): Logo | null { | |
| 58 | + const trimmed = (icon ?? '').trim() | |
| 59 | + if (!trimmed.startsWith(logoPrefix)) return null | |
| 60 | + return logos[trimmed.slice(logoPrefix.length)] ?? null | |
| 61 | +} | |
| new file mode 100644 | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | +// Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE | ||
| 2 | + | ||
| 3 | +// The logos Sidekicks ships for agents (issue #100): an agent whose icon is | ||
| 4 | +// "logo:<name>" shows the logo of its brand instead of an emoji or a letter. | ||
| 5 | +// The names are those of LogoNames in internal/config/config.go (a Go test | ||
| 6 | +// checks both lists). | ||
| 7 | +// | ||
| 8 | +// Source: Simple Icons 16.37.0 (https://simpleicons.org, npm simple-icons), | ||
| 9 | +// released under CC0-1.0, each traced from the brand's own site (below). | ||
| 10 | +// CC0 covers the drawings, not the trademarks: Claude (Anthropic), Gemini | ||
| 11 | +// (Google) and Mistral AI are trademarks of their owners, shown here only | ||
| 12 | +// to name their products, unchanged, without any endorsement implied. | ||
| 13 | +// OpenAI (Codex) is not in Simple Icons and its brand guidelines ask for its | ||
| 14 | +// own files (openai.com/brand): not shipped yet. | ||
| 15 | + | ||
| 16 | +export interface Logo { | ||
| 17 | + title: string | ||
| 18 | + /** The brand colour, drawn on a light disc so that it reads in both themes. */ | ||
| 19 | + color: string | ||
| 20 | + /** One SVG path, in a 24×24 view box. */ | ||
| 21 | + path: string | ||
| 22 | + /** Where the drawing comes from. */ | ||
| 23 | + source: string | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +export const logos: Record<string, Logo> = { | ||
| 27 | + claude: { | ||
| 28 | + title: 'Claude', | ||
| 29 | + color: '#D97757', | ||
| 30 | + source: 'https://claude.ai (Simple Icons, CC0-1.0)', | ||
| 31 | + path: 'm4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z', | ||
| 32 | + }, | ||
| 33 | + gemini: { | ||
| 34 | + title: 'Google Gemini', | ||
| 35 | + color: '#8E75B2', | ||
| 36 | + source: 'https://gemini.google.com (Simple Icons, CC0-1.0)', | ||
| 37 | + path: 'M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81', | ||
| 38 | + }, | ||
| 39 | + mistral: { | ||
| 40 | + title: 'Mistral AI', | ||
| 41 | + color: '#FA520F', | ||
| 42 | + source: 'https://chat.mistral.ai (Simple Icons, CC0-1.0)', | ||
| 43 | + path: 'M17.143 3.429v3.428h-3.429v3.429h-3.428V6.857H6.857V3.43H3.43v13.714H0v3.428h10.286v-3.428H6.857v-3.429h3.429v3.429h3.429v-3.429h3.428v3.429h-3.428v3.428H24v-3.428h-3.43V3.429z', | ||
| 44 | + }, | ||
| 45 | +} | ||
| 46 | + | ||
| 47 | +/** The prefix of an icon that is a logo. */ | ||
| 48 | +export const logoPrefix = 'logo:' | ||
| 49 | + | ||
| 50 | +/** | ||
| 51 | + * The logo an icon names, or null (not a logo, or one Sidekicks does not ship). | ||
| 52 | + * | ||
| 53 | + * @example | ||
| 54 | + * logoOf('logo:claude') // { title: 'Claude', … } | ||
| 55 | + * logoOf('🤖') // null | ||
| 56 | + */ | ||
| 57 | +export function logoOf(icon: string | undefined): Logo | null { | ||
| 58 | + const trimmed = (icon ?? '').trim() | ||
| 59 | + if (!trimmed.startsWith(logoPrefix)) return null | ||
| 60 | + return logos[trimmed.slice(logoPrefix.length)] ?? null | ||
| 61 | +} | ||
modified
internal/config/config.go +28 -1 | @@ -78,6 +78,14 @@ type Limits struct { | ||
| 78 | 78 | MaxAgentHandoffs int |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | +// LogoPrefix starts an agent icon that is a logo Sidekicks ships | |
| 82 | +// (issue #100): icon: "logo:claude". | |
| 83 | +const LogoPrefix = "logo:" | |
| 84 | + | |
| 85 | +// LogoNames are the logos Sidekicks ships, the names icon: "logo:<name>" | |
| 86 | +// accepts; frontend/src/lib/logos.ts draws them (a test checks both lists). | |
| 87 | +var LogoNames = []string{"claude", "gemini", "mistral"} | |
| 88 | + | |
| 81 | 89 | // AgentToolNames are the tools Sidekicks can offer the agents, the names |
| 82 | 90 | // agentTools.offer accepts (issues #90 and #91). |
| 83 | 91 | var AgentToolNames = []string{"memory_pressure", "about_sidekicks", "current_channel", "list_channels", "list_agents", "search_messages"} |
| @@ -345,7 +353,7 @@ func Parse(content []byte, path string) (*Config, error) { | ||
| 345 | 353 | } |
| 346 | 354 | cfg := raw.toConfig(filepath.Dir(path)) |
| 347 | 355 | cfg.Path = path |
| 348 | - cfg.Warnings = withLanguage(append(commandWarnings(cfg, &root, language), toolWarnings(cfg, &root, language)...), language) | |
| 356 | + cfg.Warnings = withLanguage(append(append(commandWarnings(cfg, &root, language), toolWarnings(cfg, &root, language)...), logoWarnings(cfg, &root, language)...), language) | |
| 349 | 357 | return cfg, nil |
| 350 | 358 | } |
| 351 | 359 | |
| @@ -547,6 +555,25 @@ func toolWarnings(cfg *Config, root *yaml.Node, language string) []Problem { | ||
| 547 | 555 | return warnings |
| 548 | 556 | } |
| 549 | 557 | |
| 558 | +// logoWarnings reports the icons "logo:<name>" whose logo Sidekicks does not | |
| 559 | +// ship: the agent then shows a letter. | |
| 560 | +func logoWarnings(cfg *Config, root *yaml.Node, language string) []Problem { | |
| 561 | + var warnings []Problem | |
| 562 | + for index, agent := range cfg.Agents { | |
| 563 | + name, ok := strings.CutPrefix(strings.TrimSpace(agent.Icon), LogoPrefix) | |
| 564 | + if !ok || slices.Contains(LogoNames, name) { | |
| 565 | + continue | |
| 566 | + } | |
| 567 | + path := []string{"agents", fmt.Sprint(index), "icon"} | |
| 568 | + line, column := position(root, path) | |
| 569 | + warnings = append(warnings, Problem{ | |
| 570 | + Line: line, Column: column, Path: displayPath(path), Warning: true, | |
| 571 | + Message: message(language, msgUnknownLogo, name, strings.Join(LogoNames, ", ")), | |
| 572 | + }) | |
| 573 | + } | |
| 574 | + return warnings | |
| 575 | +} | |
| 576 | + | |
| 550 | 577 | func commandExists(command string) bool { |
| 551 | 578 | if filepath.IsAbs(command) { |
| 552 | 579 | info, err := os.Stat(command) |
| @@ -78,6 +78,14 @@ type Limits struct { | |||
| 78 | MaxAgentHandoffs int | 78 | MaxAgentHandoffs int |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | +// LogoPrefix starts an agent icon that is a logo Sidekicks ships | ||
| 82 | +// (issue #100): icon: "logo:claude". | ||
| 83 | +const LogoPrefix = "logo:" | ||
| 84 | + | ||
| 85 | +// LogoNames are the logos Sidekicks ships, the names icon: "logo:<name>" | ||
| 86 | +// accepts; frontend/src/lib/logos.ts draws them (a test checks both lists). | ||
| 87 | +var LogoNames = []string{"claude", "gemini", "mistral"} | ||
| 88 | + | ||
| 81 | // AgentToolNames are the tools Sidekicks can offer the agents, the names | 89 | // AgentToolNames are the tools Sidekicks can offer the agents, the names |
| 82 | // agentTools.offer accepts (issues #90 and #91). | 90 | // agentTools.offer accepts (issues #90 and #91). |
| 83 | var AgentToolNames = []string{"memory_pressure", "about_sidekicks", "current_channel", "list_channels", "list_agents", "search_messages"} | 91 | var AgentToolNames = []string{"memory_pressure", "about_sidekicks", "current_channel", "list_channels", "list_agents", "search_messages"} |
| @@ -345,7 +353,7 @@ func Parse(content []byte, path string) (*Config, error) { | |||
| 345 | } | 353 | } |
| 346 | cfg := raw.toConfig(filepath.Dir(path)) | 354 | cfg := raw.toConfig(filepath.Dir(path)) |
| 347 | cfg.Path = path | 355 | cfg.Path = path |
| 348 | - cfg.Warnings = withLanguage(append(commandWarnings(cfg, &root, language), toolWarnings(cfg, &root, language)...), language) | 356 | + cfg.Warnings = withLanguage(append(append(commandWarnings(cfg, &root, language), toolWarnings(cfg, &root, language)...), logoWarnings(cfg, &root, language)...), language) |
| 349 | return cfg, nil | 357 | return cfg, nil |
| 350 | } | 358 | } |
| 351 | 359 | ||
| @@ -547,6 +555,25 @@ func toolWarnings(cfg *Config, root *yaml.Node, language string) []Problem { | |||
| 547 | return warnings | 555 | return warnings |
| 548 | } | 556 | } |
| 549 | 557 | ||
| 558 | +// logoWarnings reports the icons "logo:<name>" whose logo Sidekicks does not | ||
| 559 | +// ship: the agent then shows a letter. | ||
| 560 | +func logoWarnings(cfg *Config, root *yaml.Node, language string) []Problem { | ||
| 561 | + var warnings []Problem | ||
| 562 | + for index, agent := range cfg.Agents { | ||
| 563 | + name, ok := strings.CutPrefix(strings.TrimSpace(agent.Icon), LogoPrefix) | ||
| 564 | + if !ok || slices.Contains(LogoNames, name) { | ||
| 565 | + continue | ||
| 566 | + } | ||
| 567 | + path := []string{"agents", fmt.Sprint(index), "icon"} | ||
| 568 | + line, column := position(root, path) | ||
| 569 | + warnings = append(warnings, Problem{ | ||
| 570 | + Line: line, Column: column, Path: displayPath(path), Warning: true, | ||
| 571 | + Message: message(language, msgUnknownLogo, name, strings.Join(LogoNames, ", ")), | ||
| 572 | + }) | ||
| 573 | + } | ||
| 574 | + return warnings | ||
| 575 | +} | ||
| 576 | + | ||
| 550 | func commandExists(command string) bool { | 577 | func commandExists(command string) bool { |
| 551 | if filepath.IsAbs(command) { | 578 | if filepath.IsAbs(command) { |
| 552 | info, err := os.Stat(command) | 579 | info, err := os.Stat(command) |
modified
internal/config/config_test.go +29 -0 | @@ -8,6 +8,8 @@ import ( | ||
| 8 | 8 | "fmt" |
| 9 | 9 | "os" |
| 10 | 10 | "path/filepath" |
| 11 | + "regexp" | |
| 12 | + "slices" | |
| 11 | 13 | "strings" |
| 12 | 14 | "testing" |
| 13 | 15 | "time" |
| @@ -635,3 +637,30 @@ func TestTheAgentsFolderIsTheDocumentsFolderByDefault(t *testing.T) { | ||
| 635 | 637 | t.Error("an empty agentsFolder must be refused") |
| 636 | 638 | } |
| 637 | 639 | } |
| 640 | + | |
| 641 | +// Issue #100: icon: "logo:<name>" names a logo Sidekicks ships; another | |
| 642 | +// name is a warning (the agent shows a letter). | |
| 643 | +func TestAnUnknownLogoIsAWarning(t *testing.T) { | |
| 644 | + cfg, err := parse(t, "version: 1\nagents:\n - name: claude\n icon: logo:claude\n command: sh\n - name: codex\n icon: logo:openai\n command: sh\n") | |
| 645 | + if err != nil { | |
| 646 | + t.Fatal(err) | |
| 647 | + } | |
| 648 | + if len(cfg.Warnings) != 1 || cfg.Warnings[0].Path != "agents[1].icon" || cfg.Warnings[0].Line != 7 || !strings.Contains(cfg.Warnings[0].Message, `no logo "openai"`) { | |
| 649 | + t.Fatalf("want one warning on agents[1].icon, got %+v", cfg.Warnings) | |
| 650 | + } | |
| 651 | +} | |
| 652 | + | |
| 653 | +// The logos frontend/src/lib/logos.ts draws are the ones LogoNames accepts. | |
| 654 | +func TestTheLogosOfTheInterfaceAreTheAcceptedOnes(t *testing.T) { | |
| 655 | + content, err := os.ReadFile(filepath.Join("..", "..", "frontend", "src", "lib", "logos.ts")) | |
| 656 | + if err != nil { | |
| 657 | + t.Fatal(err) | |
| 658 | + } | |
| 659 | + var drawn []string | |
| 660 | + for _, match := range regexp.MustCompile(`(?m)^ ([a-z]+): \{$`).FindAllStringSubmatch(string(content), -1) { | |
| 661 | + drawn = append(drawn, match[1]) | |
| 662 | + } | |
| 663 | + if !slices.Equal(drawn, config.LogoNames) { | |
| 664 | + t.Fatalf("logos.ts draws %v, LogoNames is %v", drawn, config.LogoNames) | |
| 665 | + } | |
| 666 | +} | |
| @@ -8,6 +8,8 @@ import ( | |||
| 8 | "fmt" | 8 | "fmt" |
| 9 | "os" | 9 | "os" |
| 10 | "path/filepath" | 10 | "path/filepath" |
| 11 | + "regexp" | ||
| 12 | + "slices" | ||
| 11 | "strings" | 13 | "strings" |
| 12 | "testing" | 14 | "testing" |
| 13 | "time" | 15 | "time" |
| @@ -635,3 +637,30 @@ func TestTheAgentsFolderIsTheDocumentsFolderByDefault(t *testing.T) { | |||
| 635 | t.Error("an empty agentsFolder must be refused") | 637 | t.Error("an empty agentsFolder must be refused") |
| 636 | } | 638 | } |
| 637 | } | 639 | } |
| 640 | + | ||
| 641 | +// Issue #100: icon: "logo:<name>" names a logo Sidekicks ships; another | ||
| 642 | +// name is a warning (the agent shows a letter). | ||
| 643 | +func TestAnUnknownLogoIsAWarning(t *testing.T) { | ||
| 644 | + cfg, err := parse(t, "version: 1\nagents:\n - name: claude\n icon: logo:claude\n command: sh\n - name: codex\n icon: logo:openai\n command: sh\n") | ||
| 645 | + if err != nil { | ||
| 646 | + t.Fatal(err) | ||
| 647 | + } | ||
| 648 | + if len(cfg.Warnings) != 1 || cfg.Warnings[0].Path != "agents[1].icon" || cfg.Warnings[0].Line != 7 || !strings.Contains(cfg.Warnings[0].Message, `no logo "openai"`) { | ||
| 649 | + t.Fatalf("want one warning on agents[1].icon, got %+v", cfg.Warnings) | ||
| 650 | + } | ||
| 651 | +} | ||
| 652 | + | ||
| 653 | +// The logos frontend/src/lib/logos.ts draws are the ones LogoNames accepts. | ||
| 654 | +func TestTheLogosOfTheInterfaceAreTheAcceptedOnes(t *testing.T) { | ||
| 655 | + content, err := os.ReadFile(filepath.Join("..", "..", "frontend", "src", "lib", "logos.ts")) | ||
| 656 | + if err != nil { | ||
| 657 | + t.Fatal(err) | ||
| 658 | + } | ||
| 659 | + var drawn []string | ||
| 660 | + for _, match := range regexp.MustCompile(`(?m)^ ([a-z]+): \{$`).FindAllStringSubmatch(string(content), -1) { | ||
| 661 | + drawn = append(drawn, match[1]) | ||
| 662 | + } | ||
| 663 | + if !slices.Equal(drawn, config.LogoNames) { | ||
| 664 | + t.Fatalf("logos.ts draws %v, LogoNames is %v", drawn, config.LogoNames) | ||
| 665 | + } | ||
| 666 | +} | ||
modified
internal/config/problems.go +3 -0 | @@ -91,6 +91,7 @@ const ( | ||
| 91 | 91 | msgUnknownMember = "unknownMember" // agent |
| 92 | 92 | msgCommandNotFound = "commandNotFound" // command, agent |
| 93 | 93 | msgUnknownTool = "unknownTool" // name, known names |
| 94 | + msgUnknownLogo = "unknownLogo" // name, known names | |
| 94 | 95 | msgAbsolutePath = "absolutePath" // value |
| 95 | 96 | msgTooLong = "tooLong" // maximum |
| 96 | 97 | msgEmpty = "empty" // — |
| @@ -115,6 +116,7 @@ var messages = map[string]map[string]string{ | ||
| 115 | 116 | msgUnknownMember: "aucun agent ne s'appelle « %s »", |
| 116 | 117 | msgCommandNotFound: "la commande « %s » de l'agent « %s » est introuvable ; installez-la ou corrigez le chemin", |
| 117 | 118 | msgUnknownTool: "aucun outil ne s'appelle « %s » ; outils connus : %s", |
| 119 | + msgUnknownLogo: "Sidekicks n'a pas de logo « %s » (l'agent montre une lettre) ; logos : %s", | |
| 118 | 120 | msgAbsolutePath: "« %s » doit être un chemin absolu (commençant par /)", |
| 119 | 121 | msgTooLong: "texte trop long : %d caractères au maximum", |
| 120 | 122 | msgEmpty: "la valeur ne peut pas être vide", |
| @@ -137,6 +139,7 @@ var messages = map[string]map[string]string{ | ||
| 137 | 139 | msgUnknownMember: "no agent is called \"%s\"", |
| 138 | 140 | msgCommandNotFound: "the command \"%s\" of agent \"%s\" cannot be found; install it or fix the path", |
| 139 | 141 | msgUnknownTool: "no tool is called \"%s\"; the tools are: %s", |
| 142 | + msgUnknownLogo: "Sidekicks has no logo \"%s\" (the agent shows a letter); the logos are: %s", | |
| 140 | 143 | msgAbsolutePath: "\"%s\" must be an absolute path (starting with /)", |
| 141 | 144 | msgTooLong: "text too long: %d characters at most", |
| 142 | 145 | msgEmpty: "the value cannot be empty", |
| @@ -91,6 +91,7 @@ const ( | |||
| 91 | msgUnknownMember = "unknownMember" // agent | 91 | msgUnknownMember = "unknownMember" // agent |
| 92 | msgCommandNotFound = "commandNotFound" // command, agent | 92 | msgCommandNotFound = "commandNotFound" // command, agent |
| 93 | msgUnknownTool = "unknownTool" // name, known names | 93 | msgUnknownTool = "unknownTool" // name, known names |
| 94 | + msgUnknownLogo = "unknownLogo" // name, known names | ||
| 94 | msgAbsolutePath = "absolutePath" // value | 95 | msgAbsolutePath = "absolutePath" // value |
| 95 | msgTooLong = "tooLong" // maximum | 96 | msgTooLong = "tooLong" // maximum |
| 96 | msgEmpty = "empty" // — | 97 | msgEmpty = "empty" // — |
| @@ -115,6 +116,7 @@ var messages = map[string]map[string]string{ | |||
| 115 | msgUnknownMember: "aucun agent ne s'appelle « %s »", | 116 | msgUnknownMember: "aucun agent ne s'appelle « %s »", |
| 116 | msgCommandNotFound: "la commande « %s » de l'agent « %s » est introuvable ; installez-la ou corrigez le chemin", | 117 | msgCommandNotFound: "la commande « %s » de l'agent « %s » est introuvable ; installez-la ou corrigez le chemin", |
| 117 | msgUnknownTool: "aucun outil ne s'appelle « %s » ; outils connus : %s", | 118 | msgUnknownTool: "aucun outil ne s'appelle « %s » ; outils connus : %s", |
| 119 | + msgUnknownLogo: "Sidekicks n'a pas de logo « %s » (l'agent montre une lettre) ; logos : %s", | ||
| 118 | msgAbsolutePath: "« %s » doit être un chemin absolu (commençant par /)", | 120 | msgAbsolutePath: "« %s » doit être un chemin absolu (commençant par /)", |
| 119 | msgTooLong: "texte trop long : %d caractères au maximum", | 121 | msgTooLong: "texte trop long : %d caractères au maximum", |
| 120 | msgEmpty: "la valeur ne peut pas être vide", | 122 | msgEmpty: "la valeur ne peut pas être vide", |
| @@ -137,6 +139,7 @@ var messages = map[string]map[string]string{ | |||
| 137 | msgUnknownMember: "no agent is called \"%s\"", | 139 | msgUnknownMember: "no agent is called \"%s\"", |
| 138 | msgCommandNotFound: "the command \"%s\" of agent \"%s\" cannot be found; install it or fix the path", | 140 | msgCommandNotFound: "the command \"%s\" of agent \"%s\" cannot be found; install it or fix the path", |
| 139 | msgUnknownTool: "no tool is called \"%s\"; the tools are: %s", | 141 | msgUnknownTool: "no tool is called \"%s\"; the tools are: %s", |
| 142 | + msgUnknownLogo: "Sidekicks has no logo \"%s\" (the agent shows a letter); the logos are: %s", | ||
| 140 | msgAbsolutePath: "\"%s\" must be an absolute path (starting with /)", | 143 | msgAbsolutePath: "\"%s\" must be an absolute path (starting with /)", |
| 141 | msgTooLong: "text too long: %d characters at most", | 144 | msgTooLong: "text too long: %d characters at most", |
| 142 | msgEmpty: "the value cannot be empty", | 145 | msgEmpty: "the value cannot be empty", |
modified
internal/sbxcreate/sbxcreate.go +7 -4 | @@ -36,7 +36,10 @@ type Binding struct { | ||
| 36 | 36 | type Kind struct { |
| 37 | 37 | ID string `json:"id"` |
| 38 | 38 | Title string `json:"title"` |
| 39 | - Icon string `json:"icon"` | |
| 39 | + // Icon is the agent's default icon: its brand's logo ("logo:<name>", | |
| 40 | + // issue #100) when Sidekicks ships it, else an emoji (Codex: OpenAI's | |
| 41 | + // logo is not shipped). | |
| 42 | + Icon string `json:"icon"` | |
| 40 | 43 | // Agent is the sbx agent of the sandbox ("agent:"), Kit its kit. |
| 41 | 44 | Agent string `json:"agent"` |
| 42 | 45 | Kit string `json:"kit"` |
| @@ -54,7 +57,7 @@ type Kind struct { | ||
| 54 | 57 | // one more entry here. |
| 55 | 58 | var Catalogue = []Kind{ |
| 56 | 59 | { |
| 57 | - ID: "claude", Title: "Claude", Icon: "📙", | |
| 60 | + ID: "claude", Title: "Claude", Icon: "logo:claude", | |
| 58 | 61 | Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp", |
| 59 | 62 | Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys", |
| 60 | 63 | Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}}, |
| @@ -62,7 +65,7 @@ var Catalogue = []Kind{ | ||
| 62 | 65 | { |
| 63 | 66 | // Gemini through Google Antigravity (agy), whose kit replaces Docker's |
| 64 | 67 | // deprecated gemini-kit; `agy acp` serves ACP. |
| 65 | - ID: "gemini", Title: "Gemini", Icon: "📘", | |
| 68 | + ID: "gemini", Title: "Gemini", Icon: "logo:gemini", | |
| 66 | 69 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", |
| 67 | 70 | Service: "google", KeyURL: "https://aistudio.google.com/apikey", |
| 68 | 71 | Bindings: Binding{ |
| @@ -79,7 +82,7 @@ var Catalogue = []Kind{ | ||
| 79 | 82 | { |
| 80 | 83 | // Mistral Vibe (issue #86): the kit installs mistral-vibe, whose |
| 81 | 84 | // vibe-acp serves ACP; the key is injected for api.mistral.ai only. |
| 82 | - ID: "vibe", Title: "Vibe", Icon: "🟧", | |
| 85 | + ID: "vibe", Title: "Vibe", Icon: "logo:mistral", | |
| 83 | 86 | Agent: "vibe", Kit: "docker.io/sbx/vibe-kit:latest", Program: "vibe-acp", |
| 84 | 87 | Service: "mistral", KeyURL: "https://console.mistral.ai/api-keys", |
| 85 | 88 | Bindings: Binding{APIKey: []string{"api.mistral.ai"}}, |
| @@ -36,7 +36,10 @@ type Binding struct { | |||
| 36 | type Kind struct { | 36 | type Kind struct { |
| 37 | ID string `json:"id"` | 37 | ID string `json:"id"` |
| 38 | Title string `json:"title"` | 38 | Title string `json:"title"` |
| 39 | - Icon string `json:"icon"` | 39 | + // Icon is the agent's default icon: its brand's logo ("logo:<name>", |
| 40 | + // issue #100) when Sidekicks ships it, else an emoji (Codex: OpenAI's | ||
| 41 | + // logo is not shipped). | ||
| 42 | + Icon string `json:"icon"` | ||
| 40 | // Agent is the sbx agent of the sandbox ("agent:"), Kit its kit. | 43 | // Agent is the sbx agent of the sandbox ("agent:"), Kit its kit. |
| 41 | Agent string `json:"agent"` | 44 | Agent string `json:"agent"` |
| 42 | Kit string `json:"kit"` | 45 | Kit string `json:"kit"` |
| @@ -54,7 +57,7 @@ type Kind struct { | |||
| 54 | // one more entry here. | 57 | // one more entry here. |
| 55 | var Catalogue = []Kind{ | 58 | var Catalogue = []Kind{ |
| 56 | { | 59 | { |
| 57 | - ID: "claude", Title: "Claude", Icon: "📙", | 60 | + ID: "claude", Title: "Claude", Icon: "logo:claude", |
| 58 | Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp", | 61 | Agent: "claude", Kit: "docker.io/sbx/claude-acp:latest", Program: "claude-agent-acp", |
| 59 | Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys", | 62 | Service: "anthropic", KeyURL: "https://console.anthropic.com/settings/keys", |
| 60 | Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}}, | 63 | Bindings: Binding{APIKey: []string{"api.anthropic.com", "console.anthropic.com"}}, |
| @@ -62,7 +65,7 @@ var Catalogue = []Kind{ | |||
| 62 | { | 65 | { |
| 63 | // Gemini through Google Antigravity (agy), whose kit replaces Docker's | 66 | // Gemini through Google Antigravity (agy), whose kit replaces Docker's |
| 64 | // deprecated gemini-kit; `agy acp` serves ACP. | 67 | // deprecated gemini-kit; `agy acp` serves ACP. |
| 65 | - ID: "gemini", Title: "Gemini", Icon: "📘", | 68 | + ID: "gemini", Title: "Gemini", Icon: "logo:gemini", |
| 66 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", | 69 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", |
| 67 | Service: "google", KeyURL: "https://aistudio.google.com/apikey", | 70 | Service: "google", KeyURL: "https://aistudio.google.com/apikey", |
| 68 | Bindings: Binding{ | 71 | Bindings: Binding{ |
| @@ -79,7 +82,7 @@ var Catalogue = []Kind{ | |||
| 79 | { | 82 | { |
| 80 | // Mistral Vibe (issue #86): the kit installs mistral-vibe, whose | 83 | // Mistral Vibe (issue #86): the kit installs mistral-vibe, whose |
| 81 | // vibe-acp serves ACP; the key is injected for api.mistral.ai only. | 84 | // vibe-acp serves ACP; the key is injected for api.mistral.ai only. |
| 82 | - ID: "vibe", Title: "Vibe", Icon: "🟧", | 85 | + ID: "vibe", Title: "Vibe", Icon: "logo:mistral", |
| 83 | Agent: "vibe", Kit: "docker.io/sbx/vibe-kit:latest", Program: "vibe-acp", | 86 | Agent: "vibe", Kit: "docker.io/sbx/vibe-kit:latest", Program: "vibe-acp", |
| 84 | Service: "mistral", KeyURL: "https://console.mistral.ai/api-keys", | 87 | Service: "mistral", KeyURL: "https://console.mistral.ai/api-keys", |
| 85 | Bindings: Binding{APIKey: []string{"api.mistral.ai"}}, | 88 | Bindings: Binding{APIKey: []string{"api.mistral.ai"}}, |
modified
schema/config.schema.json +1 -1 | @@ -148,7 +148,7 @@ | ||
| 148 | 148 | "minLength": 1 |
| 149 | 149 | }, |
| 150 | 150 | "icon": { |
| 151 | - "description": "An emoji, or a letter shown in a coloured circle, next to the agent. Defaults to the first letter of the title in a circle.", | |
| 151 | + "description": "An emoji, a letter shown in a coloured circle, or a logo Sidekicks ships (logo:claude, logo:gemini, logo:mistral), next to the agent. Defaults to the first letter of the title in a circle.", | |
| 152 | 152 | "type": "string", |
| 153 | 153 | "maxLength": 16 |
| 154 | 154 | }, |
| @@ -148,7 +148,7 @@ | |||
| 148 | "minLength": 1 | 148 | "minLength": 1 |
| 149 | }, | 149 | }, |
| 150 | "icon": { | 150 | "icon": { |
| 151 | - "description": "An emoji, or a letter shown in a coloured circle, next to the agent. Defaults to the first letter of the title in a circle.", | 151 | + "description": "An emoji, a letter shown in a coloured circle, or a logo Sidekicks ships (logo:claude, logo:gemini, logo:mistral), next to the agent. Defaults to the first letter of the title in a circle.", |
| 152 | "type": "string", | 152 | "type": "string", |
| 153 | "maxLength": 16 | 153 | "maxLength": 16 |
| 154 | }, | 154 | }, |