#109 Antigravity sans clé : connexion avec agy dans le terminal
Comme Claude : sans clé Google, l'assistant ne bloque pas ; quand l'agent n'est pas authentifié, Sidekicks ouvre le Terminal de la sandbox, y lance agy et affiche la consigne de connexion Google. Les textes de connexion sont propres à chaque programme. La bascule vaut aussi pour l'erreur reçue à l'ouverture de la session (message système). #109 fermé (testé sur le Mac). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ec3c6e1 parent: 3e8835d modified
.memory/history.md +9 -0 | @@ -349,3 +349,12 @@ | ||
| 349 | 349 | - Done: kind id `gemini` → `antigravity` (title Antigravity, "Google Antigravity, with the Gemini models"), `logo:antigravity` (LobeHub Icons 1.102.0 MIT monochrome, #4285F4 — not in Simple Icons), `logo:gemini` still accepted; labels EN/FR, docs, release notes; new developer how-to EN/FR add-a-kind-to-the-sandbox-assistant / ajouter-un-type-a-l-assistant-des-sandboxes (linked from indexes and the SbxCreatorService reference). |
| 350 | 350 | - Checks: lint-go, svelte-check, headers, all tests, bindings-check; Xvfb screenshot of the kinds list. Not committed. |
| 351 | 351 | - **2026-11-15 — #108 closed** (owner tested on the Mac: it works); feature/108-antigravity merged into main (not pushed). |
| 352 | +- **2026-11-15 — ticket #109** (owner: Antigravity without key must not block; work like Claude: redirect to the sandbox terminal, launch agy, authenticate via OAuth): v1.6.0, listed in #102, related #105/#106/#108. Reuses Kind.SignIn / signInPrograms / signInInTerminal; texts must become per-program (claude: /login). Not started. | |
| 353 | +- **2026-11-15 — #109 input**: agy acp without key answers "Authentication required" (owner saw error.authRequired's text) — already matched; only signInPrograms/Kind.SignIn and per-program text missing. | |
| 354 | + | |
| 355 | +## 2026-11-15 — #109 Antigravity sign-in with agy in the terminal (branch feature/109-antigravity-signin) | |
| 356 | + | |
| 357 | +- Asked: "implement now" (general instructions for agy until the owner sees what agy prints). | |
| 358 | +- Done: `signInPrograms["agy"]="agy"`, `Kind.SignIn="agy"` (antigravity); per-program texts via `signInKey` (signin.ts) with fallback: `signIn.terminal(.claude|.agy)`, `sbxCreator.signIn.choice|later(.claude|.agy)`; docs EN/FR, release notes. Tests Go + vitest (200), lint, bindings; Xvfb with a fake agy. Not committed. Open: #109 task 1 (agy's real sign-in output → refine `.agy` texts), task 5 (Mac). | |
| 359 | +- **#109 fix** (owner on the Mac: no switch to the terminal): agy acp refuses at session/new, so the error comes as a system message ("{agent} could not answer"); the auto switch and the sign-in button now also apply to system messages (state.svelte.ts, MessageView). Reproduced and checked under Xvfb. | |
| 360 | +- **2026-11-15 — #109 closed** (owner tested Antigravity on the Mac: it works); feature/109-antigravity-signin merged into main (not pushed). | |
| @@ -349,3 +349,12 @@ | |||
| 349 | - Done: kind id `gemini` → `antigravity` (title Antigravity, "Google Antigravity, with the Gemini models"), `logo:antigravity` (LobeHub Icons 1.102.0 MIT monochrome, #4285F4 — not in Simple Icons), `logo:gemini` still accepted; labels EN/FR, docs, release notes; new developer how-to EN/FR add-a-kind-to-the-sandbox-assistant / ajouter-un-type-a-l-assistant-des-sandboxes (linked from indexes and the SbxCreatorService reference). | 349 | - Done: kind id `gemini` → `antigravity` (title Antigravity, "Google Antigravity, with the Gemini models"), `logo:antigravity` (LobeHub Icons 1.102.0 MIT monochrome, #4285F4 — not in Simple Icons), `logo:gemini` still accepted; labels EN/FR, docs, release notes; new developer how-to EN/FR add-a-kind-to-the-sandbox-assistant / ajouter-un-type-a-l-assistant-des-sandboxes (linked from indexes and the SbxCreatorService reference). |
| 350 | - Checks: lint-go, svelte-check, headers, all tests, bindings-check; Xvfb screenshot of the kinds list. Not committed. | 350 | - Checks: lint-go, svelte-check, headers, all tests, bindings-check; Xvfb screenshot of the kinds list. Not committed. |
| 351 | - **2026-11-15 — #108 closed** (owner tested on the Mac: it works); feature/108-antigravity merged into main (not pushed). | 351 | - **2026-11-15 — #108 closed** (owner tested on the Mac: it works); feature/108-antigravity merged into main (not pushed). |
| 352 | +- **2026-11-15 — ticket #109** (owner: Antigravity without key must not block; work like Claude: redirect to the sandbox terminal, launch agy, authenticate via OAuth): v1.6.0, listed in #102, related #105/#106/#108. Reuses Kind.SignIn / signInPrograms / signInInTerminal; texts must become per-program (claude: /login). Not started. | ||
| 353 | +- **2026-11-15 — #109 input**: agy acp without key answers "Authentication required" (owner saw error.authRequired's text) — already matched; only signInPrograms/Kind.SignIn and per-program text missing. | ||
| 354 | + | ||
| 355 | +## 2026-11-15 — #109 Antigravity sign-in with agy in the terminal (branch feature/109-antigravity-signin) | ||
| 356 | + | ||
| 357 | +- Asked: "implement now" (general instructions for agy until the owner sees what agy prints). | ||
| 358 | +- Done: `signInPrograms["agy"]="agy"`, `Kind.SignIn="agy"` (antigravity); per-program texts via `signInKey` (signin.ts) with fallback: `signIn.terminal(.claude|.agy)`, `sbxCreator.signIn.choice|later(.claude|.agy)`; docs EN/FR, release notes. Tests Go + vitest (200), lint, bindings; Xvfb with a fake agy. Not committed. Open: #109 task 1 (agy's real sign-in output → refine `.agy` texts), task 5 (Mac). | ||
| 359 | +- **#109 fix** (owner on the Mac: no switch to the terminal): agy acp refuses at session/new, so the error comes as a system message ("{agent} could not answer"); the auto switch and the sign-in button now also apply to system messages (state.svelte.ts, MessageView). Reproduced and checked under Xvfb. | ||
| 360 | +- **2026-11-15 — #109 closed** (owner tested Antigravity on the Mac: it works); feature/109-antigravity-signin merged into main (not pushed). | ||
modified
.tickets/issues/0102-publier-la-version-1-6-0.yaml +2 -0 | @@ -20,6 +20,7 @@ related: | ||
| 20 | 20 | - 106 |
| 21 | 21 | - 107 |
| 22 | 22 | - 108 |
| 23 | + - 109 | |
| 23 | 24 | body: | |
| 24 | 25 | Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) : |
| 25 | 26 | - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes |
| @@ -28,6 +29,7 @@ body: | | ||
| 28 | 29 | - [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) — Claude sans authentification : ouvrir le terminal de la sandbox et y lancer claude |
| 29 | 30 | - [#107](.tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml) — Codex : clé facultative et connexion ChatGPT |
| 30 | 31 | - [#108](.tickets/issues/0108-assistant-des-sandboxes-gemini-devient-antigravit.yaml) — Gemini devient Antigravity (nom et logo) |
| 32 | + - [#109](.tickets/issues/0109-antigravity-sans-cle-ne-pas-bloquer-et-se-connec.yaml) — Antigravity sans clé : connexion OAuth avec agy dans le terminal | |
| 31 | 33 | |
| 32 | 34 | Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant |
| 33 | 35 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. |
| @@ -20,6 +20,7 @@ related: | |||
| 20 | - 106 | 20 | - 106 |
| 21 | - 107 | 21 | - 107 |
| 22 | - 108 | 22 | - 108 |
| 23 | + - 109 | ||
| 23 | body: | | 24 | body: | |
| 24 | Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) : | 25 | Publier Sidekicks 1.6.0 avec ce qui sera fait après la 1.5.0 (liste à compléter) : |
| 25 | - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes | 26 | - [#103](.tickets/issues/0103-github-copilot-cli-dans-l-assistant-des-sandboxe.yaml) — GitHub Copilot CLI dans l'assistant des sandboxes |
| @@ -28,6 +29,7 @@ body: | | |||
| 28 | - [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) — Claude sans authentification : ouvrir le terminal de la sandbox et y lancer claude | 29 | - [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml) — Claude sans authentification : ouvrir le terminal de la sandbox et y lancer claude |
| 29 | - [#107](.tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml) — Codex : clé facultative et connexion ChatGPT | 30 | - [#107](.tickets/issues/0107-assistant-des-sandboxes-codex-cle-facultative-et.yaml) — Codex : clé facultative et connexion ChatGPT |
| 30 | - [#108](.tickets/issues/0108-assistant-des-sandboxes-gemini-devient-antigravit.yaml) — Gemini devient Antigravity (nom et logo) | 31 | - [#108](.tickets/issues/0108-assistant-des-sandboxes-gemini-devient-antigravit.yaml) — Gemini devient Antigravity (nom et logo) |
| 32 | + - [#109](.tickets/issues/0109-antigravity-sans-cle-ne-pas-bloquer-et-se-connec.yaml) — Antigravity sans clé : connexion OAuth avec agy dans le terminal | ||
| 31 | 33 | ||
| 32 | Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant | 34 | Même déroulé que [#93 — Publier la version 1.5.0](.tickets/issues/0093-publier-la-version-1-5-0.yaml), en suivant |
| 33 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. | 35 | [RELEASING.fr.md](RELEASING.fr.md) (scripts `local-ci-*.sh`), **kDrive en pause** pendant la construction. |
added
.tickets/issues/0109-antigravity-sans-cle-ne-pas-bloquer-et-se-connec.yaml +150 -0 | new file mode 100644 | ||
| @@ -0,0 +1,150 @@ | ||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | |
| 2 | +id: 109 | |
| 3 | +title: "Antigravity sans clé : ne pas bloquer, et se connecter (OAuth) en lançant agy dans le terminal de la sandbox" | |
| 4 | +state: closed | |
| 5 | +author: | |
| 6 | + name: k33g | |
| 7 | + email: ph.charriere@gmail.com | |
| 8 | +createdAt: 2026-11-15T09:36:47.000Z | |
| 9 | +updatedAt: 2026-11-15T09:53:54.000Z | |
| 10 | +labels: | |
| 11 | + - kind::feature | |
| 12 | + - area::workspace | |
| 13 | + - citizen-ux | |
| 14 | + - real-agents | |
| 15 | +milestone: "v1.6.0 · Release" | |
| 16 | +epic: Docker SBX | |
| 17 | +related: | |
| 18 | + - 105 | |
| 19 | + - 106 | |
| 20 | + - 108 | |
| 21 | +body: | | |
| 22 | + Pour **Antigravity** ([#108](.tickets/issues/0108-assistant-des-sandboxes-gemini-devient-antigravit.yaml)) : | |
| 23 | + l'absence de clé d'API Google (secret sbx `google`) ne doit **pas bloquer** l'assistant, et on fonctionne **comme | |
| 24 | + Claude** ([#105](.tickets/issues/0105-assistant-des-sandboxes-claude-sans-cle-d-api-di.yaml), | |
| 25 | + [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml)) : quand l'agent n'est pas | |
| 26 | + authentifié, Sidekicks **redirige vers le terminal de la sandbox**, y **lance `agy`**, et l'utilisateur | |
| 27 | + **s'authentifie via OAuth** (compte Google). | |
| 28 | + | |
| 29 | + ## Ce qui existe déjà (#105, #106) | |
| 30 | + - `Kind.SignIn` (catalogue `internal/sbxcreate`) : le programme à lancer dans le terminal pour se connecter ; | |
| 31 | + l'assistant affiche alors « continuer sans clé » et une note au lieu de l'avertissement. | |
| 32 | + - `agents.SignInProgram` → `Status.signIn` : table `signInPrograms` (programme ACP → programme du terminal), seulement | |
| 33 | + en sbx ; aujourd'hui `claude-agent-acp` → `claude`. | |
| 34 | + - Front : `needsSignIn` (`signin.ts`, motif `Authentication required`), `signInInTerminal` (vue de l'agent, onglet | |
| 35 | + Terminal, `<programme>\r` tapé une fois le shell ouvert, une fois par démarrage), bannière + « Je suis connecté : | |
| 36 | + redémarrer l'agent », bouton sous l'erreur. | |
| 37 | + | |
| 38 | + ## À faire | |
| 39 | + - `SignIn: "agy"` pour le type `antigravity` ; `agy` dans `signInPrograms` pour un agent dont la commande contient | |
| 40 | + `agy` (`sbx exec -i <nom> agy acp`) — attention : la recherche se fait sur le **nom du programme** (`agy`), pas | |
| 41 | + sur `agy acp`. | |
| 42 | + - Les textes parlent de `/login` (Claude) : les rendre propres au programme — pour Antigravity, ce que `agy` demande | |
| 43 | + pour se connecter (OAuth Google : URL à ouvrir sur le Mac, code à recopier ?). Un texte par programme | |
| 44 | + (`signIn.terminal.<programme>`) ou une consigne dans le catalogue. | |
| 45 | + | |
| 46 | + ## À vérifier sur le Mac | |
| 47 | + - Le message d'erreur d'`agy acp` sans authentification (« Authentication required » comme Claude, ou un autre | |
| 48 | + texte à ajouter au motif de `needsSignIn`). | |
| 49 | + - Ce que fait `agy` lancé dans le terminal de la sandbox sans clé : propose-t-il la connexion OAuth tout seul, ou | |
| 50 | + faut-il une commande (`agy login`, `/login`…) ? L'URL s'ouvre-t-elle depuis la sandbox (sinon la copier dans le | |
| 51 | + navigateur du Mac) ? Domaines `oauth` du `sbxenv.yaml` (accounts.google.com, oauth2.googleapis.com déjà présents). | |
| 52 | + - Que `agy acp` voit ensuite la connexion (après redémarrage de l'agent), et qu'elle survit à `sbx stop`. | |
| 53 | + | |
| 54 | + ## Critères d'acceptation | |
| 55 | + - Antigravity sans clé : l'assistant ne bloque pas et explique la connexion dans le terminal (EN + FR). | |
| 56 | + - À l'erreur d'authentification, la vue de l'agent s'ouvre sur le Terminal, `agy` y est lancé, avec la consigne de | |
| 57 | + connexion propre à Antigravity ; après connexion et redémarrage, l'agent répond. | |
| 58 | + - Claude garde son comportement (#105, #106). Tests Go + vitest ; doc EN + FR ; notes de release v1.6.0. | |
| 59 | +tasks: | |
| 60 | + - id: 1 | |
| 61 | + title: "Relever sur le Mac : l'erreur d'agy acp sans authentification, et comment agy se connecte (OAuth) dans le terminal" | |
| 62 | + state: closed | |
| 63 | + priority: high | |
| 64 | + author: | |
| 65 | + name: k33g | |
| 66 | + email: ph.charriere@gmail.com | |
| 67 | + createdAt: 2026-11-15T09:36:47.000Z | |
| 68 | + updatedAt: 2026-11-15T09:53:54.000Z | |
| 69 | + closedAt: 2026-11-15T09:53:54.000Z | |
| 70 | + - id: 2 | |
| 71 | + title: "SignIn: agy pour le type antigravity, agy dans signInPrograms (Go + tests)" | |
| 72 | + state: closed | |
| 73 | + priority: high | |
| 74 | + author: | |
| 75 | + name: k33g | |
| 76 | + email: ph.charriere@gmail.com | |
| 77 | + createdAt: 2026-11-15T09:36:47.000Z | |
| 78 | + updatedAt: 2026-11-15T09:44:02.000Z | |
| 79 | + closedAt: 2026-11-15T09:44:02.000Z | |
| 80 | + - id: 3 | |
| 81 | + title: "Consignes de connexion propres au programme (claude : /login ; agy : OAuth Google) EN + FR" | |
| 82 | + state: closed | |
| 83 | + priority: high | |
| 84 | + author: | |
| 85 | + name: k33g | |
| 86 | + email: ph.charriere@gmail.com | |
| 87 | + createdAt: 2026-11-15T09:36:47.000Z | |
| 88 | + updatedAt: 2026-11-15T09:44:02.000Z | |
| 89 | + closedAt: 2026-11-15T09:44:02.000Z | |
| 90 | + - id: 4 | |
| 91 | + title: "Tests vitest, doc EN + FR (guide sandbox, référence), notes de release v1.6.0" | |
| 92 | + state: closed | |
| 93 | + priority: medium | |
| 94 | + author: | |
| 95 | + name: k33g | |
| 96 | + email: ph.charriere@gmail.com | |
| 97 | + createdAt: 2026-11-15T09:36:47.000Z | |
| 98 | + updatedAt: 2026-11-15T09:44:02.000Z | |
| 99 | + closedAt: 2026-11-15T09:44:02.000Z | |
| 100 | + - id: 5 | |
| 101 | + title: "Tester sur le Mac : Antigravity sans clé, connexion dans le terminal, puis réponse" | |
| 102 | + state: closed | |
| 103 | + priority: high | |
| 104 | + author: | |
| 105 | + name: k33g | |
| 106 | + email: ph.charriere@gmail.com | |
| 107 | + createdAt: 2026-11-15T09:36:47.000Z | |
| 108 | + updatedAt: 2026-11-15T09:53:54.000Z | |
| 109 | + closedAt: 2026-11-15T09:53:54.000Z | |
| 110 | +comments: | |
| 111 | + - id: 1 | |
| 112 | + author: | |
| 113 | + name: k33g | |
| 114 | + email: ph.charriere@gmail.com | |
| 115 | + createdAt: 2026-11-15T09:39:51.000Z | |
| 116 | + body: | | |
| 117 | + Relevé par l'owner sur le Mac avec Antigravity sans clé : Sidekicks affiche « The agent is not signed in: it has no | |
| 118 | + API key, and nobody signed in with an account yet. » — c'est `error.authRequired` : `agy acp` répond donc | |
| 119 | + « Authentication required », déjà reconnu par `needsSignIn`. Il ne manque que `agy` dans `signInPrograms` (d'où | |
| 120 | + ni bascule vers le terminal, ni bouton) et la consigne de connexion propre à agy. | |
| 121 | + - id: 2 | |
| 122 | + author: | |
| 123 | + name: k33g | |
| 124 | + email: ph.charriere@gmail.com | |
| 125 | + createdAt: 2026-11-15T09:44:02.000Z | |
| 126 | + body: | | |
| 127 | + Fait sur `feature/109-antigravity-signin` (demande de l'owner : implémenter tout de suite, consigne générale pour | |
| 128 | + agy). `signInPrograms` : `agy` → `agy` ; `SignIn: "agy"` pour le type antigravity ; textes par programme | |
| 129 | + (`signInKey` : `signIn.terminal.<programme>`, `sbxCreator.signIn.choice|later.<programme>`, repli sur un texte | |
| 130 | + général) — Claude garde /login, agy : « suivez ses étapes avec votre compte Google, copiez le lien, recollez le | |
| 131 | + code ». Vérifié sous Xvfb avec un faux agy (acp → Authentication required). Reste : ce qu'agy affiche vraiment | |
| 132 | + (tâche 1, préciser la consigne) et le test sur le Mac (tâche 5). | |
| 133 | + - id: 3 | |
| 134 | + author: | |
| 135 | + name: k33g | |
| 136 | + email: ph.charriere@gmail.com | |
| 137 | + createdAt: 2026-11-15T09:47:42.000Z | |
| 138 | + body: | | |
| 139 | + Retour de l'owner sur le Mac : « Pandipanda could not answer » + `{"code":-32000,"message":"Authentication | |
| 140 | + required"}`, et pas de bascule. `agy acp` refuse dès `session/new` : l'erreur arrive dans un **message système** | |
| 141 | + (`system.agent-unavailable`), alors que la bascule ne regardait que les réponses de l'agent. Corrigé : la bascule | |
| 142 | + et le bouton « Se connecter dans son terminal » valent aussi pour les messages système. Reproduit et vérifié sous | |
| 143 | + Xvfb avec un faux agy qui refuse `session/new`. | |
| 144 | + - id: 4 | |
| 145 | + author: | |
| 146 | + name: k33g | |
| 147 | + email: ph.charriere@gmail.com | |
| 148 | + createdAt: 2026-11-15T09:53:54.000Z | |
| 149 | + body: | | |
| 150 | + Testé sur le Mac par l'owner avec Antigravity : ça fonctionne. Mergé dans main. Ticket fermé. | |
| new file mode 100644 | |||
| @@ -0,0 +1,150 @@ | |||
| 1 | +# Managed by IssueSpec. Hand edits are welcome; keep the schema valid. | ||
| 2 | +id: 109 | ||
| 3 | +title: "Antigravity sans clé : ne pas bloquer, et se connecter (OAuth) en lançant agy dans le terminal de la sandbox" | ||
| 4 | +state: closed | ||
| 5 | +author: | ||
| 6 | + name: k33g | ||
| 7 | + email: ph.charriere@gmail.com | ||
| 8 | +createdAt: 2026-11-15T09:36:47.000Z | ||
| 9 | +updatedAt: 2026-11-15T09:53:54.000Z | ||
| 10 | +labels: | ||
| 11 | + - kind::feature | ||
| 12 | + - area::workspace | ||
| 13 | + - citizen-ux | ||
| 14 | + - real-agents | ||
| 15 | +milestone: "v1.6.0 · Release" | ||
| 16 | +epic: Docker SBX | ||
| 17 | +related: | ||
| 18 | + - 105 | ||
| 19 | + - 106 | ||
| 20 | + - 108 | ||
| 21 | +body: | | ||
| 22 | + Pour **Antigravity** ([#108](.tickets/issues/0108-assistant-des-sandboxes-gemini-devient-antigravit.yaml)) : | ||
| 23 | + l'absence de clé d'API Google (secret sbx `google`) ne doit **pas bloquer** l'assistant, et on fonctionne **comme | ||
| 24 | + Claude** ([#105](.tickets/issues/0105-assistant-des-sandboxes-claude-sans-cle-d-api-di.yaml), | ||
| 25 | + [#106](.tickets/issues/0106-claude-en-sandbox-sans-authentification-ouvrir-l.yaml)) : quand l'agent n'est pas | ||
| 26 | + authentifié, Sidekicks **redirige vers le terminal de la sandbox**, y **lance `agy`**, et l'utilisateur | ||
| 27 | + **s'authentifie via OAuth** (compte Google). | ||
| 28 | + | ||
| 29 | + ## Ce qui existe déjà (#105, #106) | ||
| 30 | + - `Kind.SignIn` (catalogue `internal/sbxcreate`) : le programme à lancer dans le terminal pour se connecter ; | ||
| 31 | + l'assistant affiche alors « continuer sans clé » et une note au lieu de l'avertissement. | ||
| 32 | + - `agents.SignInProgram` → `Status.signIn` : table `signInPrograms` (programme ACP → programme du terminal), seulement | ||
| 33 | + en sbx ; aujourd'hui `claude-agent-acp` → `claude`. | ||
| 34 | + - Front : `needsSignIn` (`signin.ts`, motif `Authentication required`), `signInInTerminal` (vue de l'agent, onglet | ||
| 35 | + Terminal, `<programme>\r` tapé une fois le shell ouvert, une fois par démarrage), bannière + « Je suis connecté : | ||
| 36 | + redémarrer l'agent », bouton sous l'erreur. | ||
| 37 | + | ||
| 38 | + ## À faire | ||
| 39 | + - `SignIn: "agy"` pour le type `antigravity` ; `agy` dans `signInPrograms` pour un agent dont la commande contient | ||
| 40 | + `agy` (`sbx exec -i <nom> agy acp`) — attention : la recherche se fait sur le **nom du programme** (`agy`), pas | ||
| 41 | + sur `agy acp`. | ||
| 42 | + - Les textes parlent de `/login` (Claude) : les rendre propres au programme — pour Antigravity, ce que `agy` demande | ||
| 43 | + pour se connecter (OAuth Google : URL à ouvrir sur le Mac, code à recopier ?). Un texte par programme | ||
| 44 | + (`signIn.terminal.<programme>`) ou une consigne dans le catalogue. | ||
| 45 | + | ||
| 46 | + ## À vérifier sur le Mac | ||
| 47 | + - Le message d'erreur d'`agy acp` sans authentification (« Authentication required » comme Claude, ou un autre | ||
| 48 | + texte à ajouter au motif de `needsSignIn`). | ||
| 49 | + - Ce que fait `agy` lancé dans le terminal de la sandbox sans clé : propose-t-il la connexion OAuth tout seul, ou | ||
| 50 | + faut-il une commande (`agy login`, `/login`…) ? L'URL s'ouvre-t-elle depuis la sandbox (sinon la copier dans le | ||
| 51 | + navigateur du Mac) ? Domaines `oauth` du `sbxenv.yaml` (accounts.google.com, oauth2.googleapis.com déjà présents). | ||
| 52 | + - Que `agy acp` voit ensuite la connexion (après redémarrage de l'agent), et qu'elle survit à `sbx stop`. | ||
| 53 | + | ||
| 54 | + ## Critères d'acceptation | ||
| 55 | + - Antigravity sans clé : l'assistant ne bloque pas et explique la connexion dans le terminal (EN + FR). | ||
| 56 | + - À l'erreur d'authentification, la vue de l'agent s'ouvre sur le Terminal, `agy` y est lancé, avec la consigne de | ||
| 57 | + connexion propre à Antigravity ; après connexion et redémarrage, l'agent répond. | ||
| 58 | + - Claude garde son comportement (#105, #106). Tests Go + vitest ; doc EN + FR ; notes de release v1.6.0. | ||
| 59 | +tasks: | ||
| 60 | + - id: 1 | ||
| 61 | + title: "Relever sur le Mac : l'erreur d'agy acp sans authentification, et comment agy se connecte (OAuth) dans le terminal" | ||
| 62 | + state: closed | ||
| 63 | + priority: high | ||
| 64 | + author: | ||
| 65 | + name: k33g | ||
| 66 | + email: ph.charriere@gmail.com | ||
| 67 | + createdAt: 2026-11-15T09:36:47.000Z | ||
| 68 | + updatedAt: 2026-11-15T09:53:54.000Z | ||
| 69 | + closedAt: 2026-11-15T09:53:54.000Z | ||
| 70 | + - id: 2 | ||
| 71 | + title: "SignIn: agy pour le type antigravity, agy dans signInPrograms (Go + tests)" | ||
| 72 | + state: closed | ||
| 73 | + priority: high | ||
| 74 | + author: | ||
| 75 | + name: k33g | ||
| 76 | + email: ph.charriere@gmail.com | ||
| 77 | + createdAt: 2026-11-15T09:36:47.000Z | ||
| 78 | + updatedAt: 2026-11-15T09:44:02.000Z | ||
| 79 | + closedAt: 2026-11-15T09:44:02.000Z | ||
| 80 | + - id: 3 | ||
| 81 | + title: "Consignes de connexion propres au programme (claude : /login ; agy : OAuth Google) EN + FR" | ||
| 82 | + state: closed | ||
| 83 | + priority: high | ||
| 84 | + author: | ||
| 85 | + name: k33g | ||
| 86 | + email: ph.charriere@gmail.com | ||
| 87 | + createdAt: 2026-11-15T09:36:47.000Z | ||
| 88 | + updatedAt: 2026-11-15T09:44:02.000Z | ||
| 89 | + closedAt: 2026-11-15T09:44:02.000Z | ||
| 90 | + - id: 4 | ||
| 91 | + title: "Tests vitest, doc EN + FR (guide sandbox, référence), notes de release v1.6.0" | ||
| 92 | + state: closed | ||
| 93 | + priority: medium | ||
| 94 | + author: | ||
| 95 | + name: k33g | ||
| 96 | + email: ph.charriere@gmail.com | ||
| 97 | + createdAt: 2026-11-15T09:36:47.000Z | ||
| 98 | + updatedAt: 2026-11-15T09:44:02.000Z | ||
| 99 | + closedAt: 2026-11-15T09:44:02.000Z | ||
| 100 | + - id: 5 | ||
| 101 | + title: "Tester sur le Mac : Antigravity sans clé, connexion dans le terminal, puis réponse" | ||
| 102 | + state: closed | ||
| 103 | + priority: high | ||
| 104 | + author: | ||
| 105 | + name: k33g | ||
| 106 | + email: ph.charriere@gmail.com | ||
| 107 | + createdAt: 2026-11-15T09:36:47.000Z | ||
| 108 | + updatedAt: 2026-11-15T09:53:54.000Z | ||
| 109 | + closedAt: 2026-11-15T09:53:54.000Z | ||
| 110 | +comments: | ||
| 111 | + - id: 1 | ||
| 112 | + author: | ||
| 113 | + name: k33g | ||
| 114 | + email: ph.charriere@gmail.com | ||
| 115 | + createdAt: 2026-11-15T09:39:51.000Z | ||
| 116 | + body: | | ||
| 117 | + Relevé par l'owner sur le Mac avec Antigravity sans clé : Sidekicks affiche « The agent is not signed in: it has no | ||
| 118 | + API key, and nobody signed in with an account yet. » — c'est `error.authRequired` : `agy acp` répond donc | ||
| 119 | + « Authentication required », déjà reconnu par `needsSignIn`. Il ne manque que `agy` dans `signInPrograms` (d'où | ||
| 120 | + ni bascule vers le terminal, ni bouton) et la consigne de connexion propre à agy. | ||
| 121 | + - id: 2 | ||
| 122 | + author: | ||
| 123 | + name: k33g | ||
| 124 | + email: ph.charriere@gmail.com | ||
| 125 | + createdAt: 2026-11-15T09:44:02.000Z | ||
| 126 | + body: | | ||
| 127 | + Fait sur `feature/109-antigravity-signin` (demande de l'owner : implémenter tout de suite, consigne générale pour | ||
| 128 | + agy). `signInPrograms` : `agy` → `agy` ; `SignIn: "agy"` pour le type antigravity ; textes par programme | ||
| 129 | + (`signInKey` : `signIn.terminal.<programme>`, `sbxCreator.signIn.choice|later.<programme>`, repli sur un texte | ||
| 130 | + général) — Claude garde /login, agy : « suivez ses étapes avec votre compte Google, copiez le lien, recollez le | ||
| 131 | + code ». Vérifié sous Xvfb avec un faux agy (acp → Authentication required). Reste : ce qu'agy affiche vraiment | ||
| 132 | + (tâche 1, préciser la consigne) et le test sur le Mac (tâche 5). | ||
| 133 | + - id: 3 | ||
| 134 | + author: | ||
| 135 | + name: k33g | ||
| 136 | + email: ph.charriere@gmail.com | ||
| 137 | + createdAt: 2026-11-15T09:47:42.000Z | ||
| 138 | + body: | | ||
| 139 | + Retour de l'owner sur le Mac : « Pandipanda could not answer » + `{"code":-32000,"message":"Authentication | ||
| 140 | + required"}`, et pas de bascule. `agy acp` refuse dès `session/new` : l'erreur arrive dans un **message système** | ||
| 141 | + (`system.agent-unavailable`), alors que la bascule ne regardait que les réponses de l'agent. Corrigé : la bascule | ||
| 142 | + et le bouton « Se connecter dans son terminal » valent aussi pour les messages système. Reproduit et vérifié sous | ||
| 143 | + Xvfb avec un faux agy qui refuse `session/new`. | ||
| 144 | + - id: 4 | ||
| 145 | + author: | ||
| 146 | + name: k33g | ||
| 147 | + email: ph.charriere@gmail.com | ||
| 148 | + createdAt: 2026-11-15T09:53:54.000Z | ||
| 149 | + body: | | ||
| 150 | + Testé sur le Mac par l'owner avec Antigravity : ça fonctionne. Mergé dans main. Ticket fermé. | ||
modified
docs/en/how-to/create-an-agent-in-a-sandbox.md +1 -0 | @@ -21,6 +21,7 @@ The agent's folder is created in the **Sidekicks-Agents** folder of your Documen | ||
| 21 | 21 | - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed. |
| 22 | 22 | - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Antigravity, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal. |
| 23 | 23 | - **Claude without an API key** (issues #105 and #106): click **Later** and sign in with your Claude account instead. The assistant says so. At the first answer, Claude ends with "The agent is not signed in": Sidekicks opens the agent's **Terminal**, runs `claude` in its sandbox and tells you what to do — type `/login`, choose your account and follow the steps (copy the link into your browser if asked). Then click **I am signed in: restart the agent**: you are back in the conversation; send your message again. If you closed that terminal, **Sign in in its terminal** under the error opens it again. |
| 24 | +- **Antigravity without an API key** (issue #109): the same as Claude, with your Google account. Click **Later**; at the first answer, Sidekicks opens the agent's **Terminal** and runs `agy` there: follow its steps to sign in (if it shows a link, copy it into your browser, sign in and paste back the code it gives if asked), then click **I am signed in: restart the agent**. | |
| 24 | 25 | - **Codex without a key nor a ChatGPT sign-in** (issue #107): when its sandbox is created, sbx asks whether to sign in to OpenAI on the web. Sidekicks cannot answer that question, so the agent stops with "sbx asks to sign in to OpenAI…" and a **Sign in with my ChatGPT account** button — in the conversation and in the Agents panel. Sign in in your browser: the agent starts again by itself. |
| 25 | 26 | |
| 26 | 27 | ## Variants |
| @@ -21,6 +21,7 @@ The agent's folder is created in the **Sidekicks-Agents** folder of your Documen | |||
| 21 | - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed. | 21 | - **"Another agent already has this name"**, **"A folder with this name already exists"** or **"A sandbox with this name already exists"**: change the **Name** and click **Add the agent** again. An existing folder or sandbox is never changed. |
| 22 | - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Antigravity, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal. | 22 | - **"No … key in sbx yet"** (after **Later**): the agent cannot answer. Run the assistant again to save the key, or type `sbx secret set anthropic` (`google` for Antigravity, `openai` for Codex, `mistral` for Vibe, `copilot` and `github` for Copilot — for example `sbx secret set copilot --command 'gh auth token'` then the same with `github`) in a terminal. |
| 23 | - **Claude without an API key** (issues #105 and #106): click **Later** and sign in with your Claude account instead. The assistant says so. At the first answer, Claude ends with "The agent is not signed in": Sidekicks opens the agent's **Terminal**, runs `claude` in its sandbox and tells you what to do — type `/login`, choose your account and follow the steps (copy the link into your browser if asked). Then click **I am signed in: restart the agent**: you are back in the conversation; send your message again. If you closed that terminal, **Sign in in its terminal** under the error opens it again. | 23 | - **Claude without an API key** (issues #105 and #106): click **Later** and sign in with your Claude account instead. The assistant says so. At the first answer, Claude ends with "The agent is not signed in": Sidekicks opens the agent's **Terminal**, runs `claude` in its sandbox and tells you what to do — type `/login`, choose your account and follow the steps (copy the link into your browser if asked). Then click **I am signed in: restart the agent**: you are back in the conversation; send your message again. If you closed that terminal, **Sign in in its terminal** under the error opens it again. |
| 24 | +- **Antigravity without an API key** (issue #109): the same as Claude, with your Google account. Click **Later**; at the first answer, Sidekicks opens the agent's **Terminal** and runs `agy` there: follow its steps to sign in (if it shows a link, copy it into your browser, sign in and paste back the code it gives if asked), then click **I am signed in: restart the agent**. | ||
| 24 | - **Codex without a key nor a ChatGPT sign-in** (issue #107): when its sandbox is created, sbx asks whether to sign in to OpenAI on the web. Sidekicks cannot answer that question, so the agent stops with "sbx asks to sign in to OpenAI…" and a **Sign in with my ChatGPT account** button — in the conversation and in the Agents panel. Sign in in your browser: the agent starts again by itself. | 25 | - **Codex without a key nor a ChatGPT sign-in** (issue #107): when its sandbox is created, sbx asks whether to sign in to OpenAI on the web. Sidekicks cannot answer that question, so the agent stops with "sbx asks to sign in to OpenAI…" and a **Sign in with my ChatGPT account** button — in the conversation and in the Agents panel. Sign in in your browser: the agent starts again by itself. |
| 25 | 26 | ||
| 26 | ## Variants | 27 | ## Variants |
modified
docs/en/reference/agents-and-events.md +2 -2 | @@ -47,7 +47,7 @@ The Go names and types are in `internal/events`; the TypeScript constants and ty | ||
| 47 | 47 | |
| 48 | 48 | | Service | Method | Effect | |
| 49 | 49 | | --- | --- | --- | |
| 50 | -| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp` in an sbx sandbox, issues #105 and #106; `oauth`: the kind whose account sign-in it takes — `codex` for `codex-acp` in an sbx sandbox, issue #107), in configuration order. | | |
| 50 | +| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp`, `agy` for `agy acp` (issue #109), in an sbx sandbox, issues #105 and #106; `oauth`: the kind whose account sign-in it takes — `codex` for `codex-acp` in an sbx sandbox, issue #107), in configuration order. | | |
| 51 | 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. | |
| 52 | 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. | |
| 53 | 53 | | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | |
| @@ -267,7 +267,7 @@ The assistant that creates an agent in a Docker Sandbox (issue #96, [How to crea | ||
| 267 | 267 | |
| 268 | 268 | | Method | Effect | |
| 269 | 269 | | --- | --- | |
| 270 | -| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth`: the service also takes a sign-in with an account, `sbx secret set <service> --oauth` — Codex: ChatGPT, issue #107) (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). | | |
| 270 | +| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth`: the service also takes a sign-in with an account, `sbx secret set <service> --oauth` — Codex: ChatGPT, issue #107) (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105; Antigravity: `agy`, issue #109) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). | | |
| 271 | 271 | | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). | |
| 272 | 272 | | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. | |
| 273 | 273 | | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. | |
| @@ -47,7 +47,7 @@ The Go names and types are in `internal/events`; the TypeScript constants and ty | |||
| 47 | 47 | ||
| 48 | | Service | Method | Effect | | 48 | | Service | Method | Effect | |
| 49 | | --- | --- | --- | | 49 | | --- | --- | --- | |
| 50 | -| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp` in an sbx sandbox, issues #105 and #106; `oauth`: the kind whose account sign-in it takes — `codex` for `codex-acp` in an sbx sandbox, issue #107), in configuration order. | | 50 | +| `AgentService` | `List()` | Every agent with `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (and, while starting, `step, since` as `agent:progress` gives them; `signIn`: the program its terminal runs to sign in with an account instead of an API key — `claude` for `claude-agent-acp`, `agy` for `agy acp` (issue #109), in an sbx sandbox, issues #105 and #106; `oauth`: the kind whose account sign-in it takes — `codex` for `codex-acp` in an sbx sandbox, issue #107), in configuration order. | |
| 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. | | 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | As in the transitions above; an error is returned to the interface. A start first recreates a missing sandbox when `runtime.lifecycle.create` is set. | |
| 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. | | 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Stops the agent, then runs `runtime.lifecycle.stop` or `remove` (container or sandbox); the output goes to the agent's log. | |
| 53 | | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | | 53 | | | `Unload(name)` | Has a running, idle agent that announced the `unload` command unload its model (issue #51): `/unload` is sent in a session of its own, which no conversation shows; the answer goes to the agent's log as `unload: …` lines. Errors: unknown agent, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | |
| @@ -267,7 +267,7 @@ The assistant that creates an agent in a Docker Sandbox (issue #96, [How to crea | |||
| 267 | 267 | ||
| 268 | | Method | Effect | | 268 | | Method | Effect | |
| 269 | | --- | --- | | 269 | | --- | --- | |
| 270 | -| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth`: the service also takes a sign-in with an account, `sbx secret set <service> --oauth` — Codex: ChatGPT, issue #107) (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). | | 270 | +| `Kinds()` | The catalogue, in order: `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth`: the service also takes a sign-in with an account, `sbx secret set <service> --oauth` — Codex: ChatGPT, issue #107) (`signIn`: the program to run in the agent's terminal to sign in with an account — Claude: `claude`, then `/login`, issue #105; Antigravity: `agy`, issue #109) (`token`: the secret is a token of the user's account, not an API key — Copilot; the assistant says "token"; `fromGh`: it can come from `gh auth token`). A kind may give its secret to more sbx services (Copilot: `github` too, with `api.github.com` and `github.com` in its `bindings`). | |
| 271 | | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). | | 271 | | `Check(kind)` | `sbx is not installed` when sbx cannot be found (`sbx` in PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Returns `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`hasKey`: every service of the kind holds a secret; `gh`, `ghSignedIn`: for a kind with `fromGh`, whether gh is installed and has a token) (`taken`: the names used by an agent, a folder or a sandbox, issue #99): whether `sbx secret ls --service <service>` shows a global secret, and the first free name among `<kind>`, `<kind>-2`… — free as an agent of the configuration, a folder of the agents' folder and a sandbox (`sbx ls -q`). | |
| 272 | | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. | | 272 | | `SetKey(kind, key)` | `sbx secret set <service>` for each service of the kind, with the key on its standard input — never in its arguments, a file or a log; an error never repeats it. Global: every sandbox gets it. | |
| 273 | | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. | | 273 | | `Login()` | Runs `sbx login` (issue #97) — or joins the one in progress — and returns once sbx printed its device code and URL, 20 seconds at most: `{code, url, done, user, error, output[]}`. The code is the first `XXXX-XXXX`, the URL the first `https://…` naming `login`; `output` keeps every line for when sbx prints something else. Its standard input is empty: a question asked on the keyboard gets no answer. | |
modified
docs/fr/how-to/creer-un-agent-dans-une-sandbox.md +1 -0 | @@ -21,6 +21,7 @@ Le dossier de l'agent est créé dans le dossier **Sidekicks-Agents** de vos Doc | ||
| 21 | 21 | - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés. |
| 22 | 22 | - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Antigravity, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal. |
| 23 | 23 | - **Claude sans clé d'API** (issues #105 et #106) : cliquez sur **Plus tard** et connectez-vous plutôt avec votre compte Claude. L'assistant le dit. À la première réponse, Claude se termine par « L'agent n'est pas connecté » : Sidekicks ouvre le **Terminal** de l'agent, lance `claude` dans sa sandbox et vous dit quoi faire — tapez `/login`, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Cliquez ensuite sur **Je suis connecté : redémarrer l'agent** : vous revenez à la conversation ; renvoyez votre message. Si vous avez fermé ce terminal, **Se connecter dans son terminal** sous l'erreur le rouvre. |
| 24 | +- **Antigravity sans clé d'API** (issue #109) : comme Claude, avec votre compte Google. Cliquez sur **Plus tard** ; à la première réponse, Sidekicks ouvre le **Terminal** de l'agent et y lance `agy` : suivez ses étapes de connexion (s'il affiche un lien, copiez-le dans votre navigateur, connectez-vous et recollez le code qu'il donne si on vous le demande), puis cliquez sur **Je suis connecté : redémarrer l'agent**. | |
| 24 | 25 | - **Codex sans clé ni connexion ChatGPT** (issue #107) : à la création de sa sandbox, sbx demande s'il faut se connecter à OpenAI sur le web. Sidekicks ne peut pas répondre à cette question : l'agent s'arrête avec « sbx demande de se connecter à OpenAI… » et un bouton **Me connecter avec mon compte ChatGPT** — dans la conversation et dans le panneau Agents. Connectez-vous dans votre navigateur : l'agent redémarre tout seul. |
| 25 | 26 | |
| 26 | 27 | ## Variantes |
| @@ -21,6 +21,7 @@ Le dossier de l'agent est créé dans le dossier **Sidekicks-Agents** de vos Doc | |||
| 21 | - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés. | 21 | - **« Un autre agent porte déjà ce nom »**, **« Un dossier porte déjà ce nom »** ou **« Une sandbox porte déjà ce nom »** : changez le **Nom** et cliquez de nouveau sur **Ajouter l'agent**. Un dossier ou une sandbox existants ne sont jamais modifiés. |
| 22 | - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Antigravity, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal. | 22 | - **« Pas encore de clé … dans sbx »** (après **Plus tard**) : l'agent ne peut pas répondre. Relancez l'assistant pour enregistrer la clé, ou tapez `sbx secret set anthropic` (`google` pour Antigravity, `openai` pour Codex, `mistral` pour Vibe, `copilot` et `github` pour Copilot — par exemple `sbx secret set copilot --command 'gh auth token'` puis la même avec `github`) dans un terminal. |
| 23 | - **Claude sans clé d'API** (issues #105 et #106) : cliquez sur **Plus tard** et connectez-vous plutôt avec votre compte Claude. L'assistant le dit. À la première réponse, Claude se termine par « L'agent n'est pas connecté » : Sidekicks ouvre le **Terminal** de l'agent, lance `claude` dans sa sandbox et vous dit quoi faire — tapez `/login`, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Cliquez ensuite sur **Je suis connecté : redémarrer l'agent** : vous revenez à la conversation ; renvoyez votre message. Si vous avez fermé ce terminal, **Se connecter dans son terminal** sous l'erreur le rouvre. | 23 | - **Claude sans clé d'API** (issues #105 et #106) : cliquez sur **Plus tard** et connectez-vous plutôt avec votre compte Claude. L'assistant le dit. À la première réponse, Claude se termine par « L'agent n'est pas connecté » : Sidekicks ouvre le **Terminal** de l'agent, lance `claude` dans sa sandbox et vous dit quoi faire — tapez `/login`, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Cliquez ensuite sur **Je suis connecté : redémarrer l'agent** : vous revenez à la conversation ; renvoyez votre message. Si vous avez fermé ce terminal, **Se connecter dans son terminal** sous l'erreur le rouvre. |
| 24 | +- **Antigravity sans clé d'API** (issue #109) : comme Claude, avec votre compte Google. Cliquez sur **Plus tard** ; à la première réponse, Sidekicks ouvre le **Terminal** de l'agent et y lance `agy` : suivez ses étapes de connexion (s'il affiche un lien, copiez-le dans votre navigateur, connectez-vous et recollez le code qu'il donne si on vous le demande), puis cliquez sur **Je suis connecté : redémarrer l'agent**. | ||
| 24 | - **Codex sans clé ni connexion ChatGPT** (issue #107) : à la création de sa sandbox, sbx demande s'il faut se connecter à OpenAI sur le web. Sidekicks ne peut pas répondre à cette question : l'agent s'arrête avec « sbx demande de se connecter à OpenAI… » et un bouton **Me connecter avec mon compte ChatGPT** — dans la conversation et dans le panneau Agents. Connectez-vous dans votre navigateur : l'agent redémarre tout seul. | 25 | - **Codex sans clé ni connexion ChatGPT** (issue #107) : à la création de sa sandbox, sbx demande s'il faut se connecter à OpenAI sur le web. Sidekicks ne peut pas répondre à cette question : l'agent s'arrête avec « sbx demande de se connecter à OpenAI… » et un bouton **Me connecter avec mon compte ChatGPT** — dans la conversation et dans le panneau Agents. Connectez-vous dans votre navigateur : l'agent redémarre tout seul. |
| 25 | 26 | ||
| 26 | ## Variantes | 27 | ## Variantes |
modified
docs/fr/reference/agents-et-evenements.md +2 -2 | @@ -47,7 +47,7 @@ Les noms et types Go sont dans `internal/events` ; les constantes et types TypeS | ||
| 47 | 47 | |
| 48 | 48 | | Service | Méthode | Effet | |
| 49 | 49 | | --- | --- | --- | |
| 50 | -| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp` dans une sandbox sbx, issues #105 et #106 ; `oauth` : le type dont il prend la connexion par compte — `codex` pour `codex-acp` dans une sandbox sbx, issue #107), dans l'ordre de la configuration. | | |
| 50 | +| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp`, `agy` pour `agy acp` (issue #109), dans une sandbox sbx, issues #105 et #106 ; `oauth` : le type dont il prend la connexion par compte — `codex` pour `codex-acp` dans une sandbox sbx, issue #107), dans l'ordre de la configuration. | | |
| 51 | 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. | |
| 52 | 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. | |
| 53 | 53 | | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | |
| @@ -267,7 +267,7 @@ L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un ag | ||
| 267 | 267 | |
| 268 | 268 | | Méthode | Effet | |
| 269 | 269 | | --- | --- | |
| 270 | -| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth` : le service accepte aussi une connexion avec un compte, `sbx secret set <service> --oauth` — Codex : ChatGPT, issue #107) (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). | | |
| 270 | +| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth` : le service accepte aussi une connexion avec un compte, `sbx secret set <service> --oauth` — Codex : ChatGPT, issue #107) (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105 ; Antigravity : `agy`, issue #109) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). | | |
| 271 | 271 | | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). | |
| 272 | 272 | | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. | |
| 273 | 273 | | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. | |
| @@ -47,7 +47,7 @@ Les noms et types Go sont dans `internal/events` ; les constantes et types TypeS | |||
| 47 | 47 | ||
| 48 | | Service | Méthode | Effet | | 48 | | Service | Méthode | Effet | |
| 49 | | --- | --- | --- | | 49 | | --- | --- | --- | |
| 50 | -| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp` dans une sandbox sbx, issues #105 et #106 ; `oauth` : le type dont il prend la connexion par compte — `codex` pour `codex-acp` dans une sandbox sbx, issue #107), dans l'ordre de la configuration. | | 50 | +| `AgentService` | `List()` | Tous les agents avec `name, title, icon, description, state, error, outdated, runtime, canStopSandbox, canRemoveSandbox` (et, pendant un démarrage, `step, since` comme les donne `agent:progress` ; `signIn` : le programme que son terminal lance pour se connecter avec un compte au lieu d'une clé d'API — `claude` pour `claude-agent-acp`, `agy` pour `agy acp` (issue #109), dans une sandbox sbx, issues #105 et #106 ; `oauth` : le type dont il prend la connexion par compte — `codex` pour `codex-acp` dans une sandbox sbx, issue #107), dans l'ordre de la configuration. | |
| 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. | | 51 | | | `Start(name)`, `Stop(name)`, `Restart(name)` | Comme dans les transitions ci-dessus ; une erreur est renvoyée à l'interface. Un démarrage recrée d'abord une sandbox absente si `runtime.lifecycle.create` est défini. | |
| 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. | | 52 | | | `StopSandbox(name)`, `RemoveSandbox(name)` | Arrête l'agent, puis lance `runtime.lifecycle.stop` ou `remove` (conteneur ou sandbox) ; la sortie va dans le journal de l'agent. | |
| 53 | | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | | 53 | | | `Unload(name)` | Demande à un agent en marche et inactif, qui a annoncé la commande `unload`, de décharger son modèle (ticket #51) : `/unload` est envoyé dans une session à part, qu'aucune conversation ne montre ; la réponse va dans le journal de l'agent, en lignes `unload: …`. Erreurs : agent inconnu, `the agent is not running…`, `the agent is answering…`, `this agent cannot unload its model…`. | |
| @@ -267,7 +267,7 @@ L'assistant qui crée un agent dans une Docker Sandbox (issue #96, [Créer un ag | |||
| 267 | 267 | ||
| 268 | | Méthode | Effet | | 268 | | Méthode | Effet | |
| 269 | | --- | --- | | 269 | | --- | --- | |
| 270 | -| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth` : le service accepte aussi une connexion avec un compte, `sbx secret set <service> --oauth` — Codex : ChatGPT, issue #107) (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). | | 270 | +| `Kinds()` | Le catalogue, dans l'ordre : `{id, title, icon, agent, kit, program, service, keyUrl, token, fromGh, signIn, oauth}` (`oauth` : le service accepte aussi une connexion avec un compte, `sbx secret set <service> --oauth` — Codex : ChatGPT, issue #107) (`signIn` : le programme à lancer dans le terminal de l'agent pour se connecter avec un compte — Claude : `claude`, puis `/login`, issue #105 ; Antigravity : `agy`, issue #109) (`token` : le secret est un jeton du compte de l'utilisateur, pas une clé d'API — Copilot ; l'assistant dit « jeton » ; `fromGh` : il peut venir de `gh auth token`). Un type peut donner son secret à d'autres services sbx (Copilot : `github` aussi, avec `api.github.com` et `github.com` dans ses `bindings`). | |
| 271 | | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). | | 271 | | `Check(kind)` | `sbx is not installed` quand sbx est introuvable (`sbx` dans le PATH, `/usr/local/bin`, `/opt/homebrew/bin`). Renvoie `{hasKey, name, agentsFolder, taken[], gh, ghSignedIn}` (`taken` : les noms pris par un agent, un dossier ou une sandbox, issue #99 ; `hasKey` : chaque service du type a un secret ; `gh`, `ghSignedIn` : pour un type avec `fromGh`, si gh est installé et a un jeton) : si `sbx secret ls --service <service>` montre un secret global, et le premier nom libre parmi `<type>`, `<type>-2`… — libre comme agent de la configuration, dossier du dossier des agents et sandbox (`sbx ls -q`). | |
| 272 | | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. | | 272 | | `SetKey(kind, key)` | `sbx secret set <service>`, pour chaque service du type, avec la clé sur son entrée standard — jamais dans ses arguments, un fichier ou un journal ; une erreur ne la répète jamais. Globale : toutes les sandboxes l'ont. | |
| 273 | | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. | | 273 | | `Login()` | Lance `sbx login` (issue #97) — ou rejoint celui en cours — et revient dès que sbx a affiché son code et son adresse, 20 secondes au plus : `{code, url, done, user, error, output[]}`. Le code est le premier `XXXX-XXXX`, l'adresse le premier `https://…` qui contient `login` ; `output` garde chaque ligne pour le cas où sbx affiche autre chose. Son entrée standard est vide : une question posée au clavier n'a pas de réponse. | |
modified
docs/release-notes/v1.6.0.fr.md +5 -1 | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | |
| 3 | 3 | [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md) |
| 4 | 4 | |
| 5 | -Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet aux agents Claude et Codex de se connecter avec votre compte Claude ou ChatGPT au lieu d'une clé d'API. | |
| 5 | +Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet aux agents Claude, Antigravity et Codex de se connecter avec votre compte Claude, Google ou ChatGPT au lieu d'une clé d'API. | |
| 6 | 6 | |
| 7 | 7 | ## Nouveautés |
| 8 | 8 | |
| @@ -17,6 +17,10 @@ Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandb | ||
| 17 | 17 | - Dans l'assistant des sandboxes, Claude n'exige plus de clé d'API : cliquez sur **Plus tard**, et l'assistant explique que vous vous connecterez avec votre compte Claude par `/login` dans le terminal de l'agent. |
| 18 | 18 | - Quand un agent Claude répond « Authentication required », Sidekicks ouvre son **Terminal**, lance `claude` dans la sandbox et vous dit de taper `/login`. **Je suis connecté : redémarrer l'agent** vous ramène à la conversation ; **Se connecter dans son terminal**, sous l'erreur, le rouvre. |
| 19 | 19 | |
| 20 | +### Antigravity avec votre compte Google (#109) | |
| 21 | + | |
| 22 | +- Antigravity n'exige plus non plus de clé d'API Google : cliquez sur **Plus tard**. Quand l'agent répond qu'il n'est pas connecté, Sidekicks ouvre son **Terminal**, lance `agy` dans la sandbox et vous dit de suivre ses étapes pour vous connecter avec votre compte Google ; **Je suis connecté : redémarrer l'agent** vous ramène à la conversation. | |
| 23 | + | |
| 20 | 24 | ### Codex avec votre compte ChatGPT (#107) |
| 21 | 25 | |
| 22 | 26 | - Dans l'assistant des sandboxes, Codex n'exige plus de clé d'API : **Me connecter avec mon compte ChatGPT** lance `sbx secret set openai --oauth`, qui ouvre votre navigateur ; sbx garde la connexion dans votre trousseau. **Plus tard** continue sans l'une ni l'autre. |
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md) | 3 | [English](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.md) |
| 4 | 4 | ||
| 5 | -Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet aux agents Claude et Codex de se connecter avec votre compte Claude ou ChatGPT au lieu d'une clé d'API. | 5 | +Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandboxes, et permet aux agents Claude, Antigravity et Codex de se connecter avec votre compte Claude, Google ou ChatGPT au lieu d'une clé d'API. |
| 6 | 6 | ||
| 7 | ## Nouveautés | 7 | ## Nouveautés |
| 8 | 8 | ||
| @@ -17,6 +17,10 @@ Sidekicks 1.6.0 ajoute GitHub Copilot aux agents que crée l'assistant des sandb | |||
| 17 | - Dans l'assistant des sandboxes, Claude n'exige plus de clé d'API : cliquez sur **Plus tard**, et l'assistant explique que vous vous connecterez avec votre compte Claude par `/login` dans le terminal de l'agent. | 17 | - Dans l'assistant des sandboxes, Claude n'exige plus de clé d'API : cliquez sur **Plus tard**, et l'assistant explique que vous vous connecterez avec votre compte Claude par `/login` dans le terminal de l'agent. |
| 18 | - Quand un agent Claude répond « Authentication required », Sidekicks ouvre son **Terminal**, lance `claude` dans la sandbox et vous dit de taper `/login`. **Je suis connecté : redémarrer l'agent** vous ramène à la conversation ; **Se connecter dans son terminal**, sous l'erreur, le rouvre. | 18 | - Quand un agent Claude répond « Authentication required », Sidekicks ouvre son **Terminal**, lance `claude` dans la sandbox et vous dit de taper `/login`. **Je suis connecté : redémarrer l'agent** vous ramène à la conversation ; **Se connecter dans son terminal**, sous l'erreur, le rouvre. |
| 19 | 19 | ||
| 20 | +### Antigravity avec votre compte Google (#109) | ||
| 21 | + | ||
| 22 | +- Antigravity n'exige plus non plus de clé d'API Google : cliquez sur **Plus tard**. Quand l'agent répond qu'il n'est pas connecté, Sidekicks ouvre son **Terminal**, lance `agy` dans la sandbox et vous dit de suivre ses étapes pour vous connecter avec votre compte Google ; **Je suis connecté : redémarrer l'agent** vous ramène à la conversation. | ||
| 23 | + | ||
| 20 | ### Codex avec votre compte ChatGPT (#107) | 24 | ### Codex avec votre compte ChatGPT (#107) |
| 21 | 25 | ||
| 22 | - Dans l'assistant des sandboxes, Codex n'exige plus de clé d'API : **Me connecter avec mon compte ChatGPT** lance `sbx secret set openai --oauth`, qui ouvre votre navigateur ; sbx garde la connexion dans votre trousseau. **Plus tard** continue sans l'une ni l'autre. | 26 | - Dans l'assistant des sandboxes, Codex n'exige plus de clé d'API : **Me connecter avec mon compte ChatGPT** lance `sbx secret set openai --oauth`, qui ouvre votre navigateur ; sbx garde la connexion dans votre trousseau. **Plus tard** continue sans l'une ni l'autre. |
modified
docs/release-notes/v1.6.0.md +5 -1 | @@ -2,7 +2,7 @@ | ||
| 2 | 2 | |
| 3 | 3 | [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md) |
| 4 | 4 | |
| 5 | -Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets Claude and Codex agents sign in with your Claude or ChatGPT account instead of an API key. | |
| 5 | +Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets Claude, Antigravity and Codex agents sign in with your Claude, Google or ChatGPT account instead of an API key. | |
| 6 | 6 | |
| 7 | 7 | ## What's new |
| 8 | 8 | |
| @@ -17,6 +17,10 @@ Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, | ||
| 17 | 17 | - In the sandbox assistant, Claude no longer needs an API key: click **Later**, and the assistant explains that you will sign in with your Claude account with `/login` in the agent's terminal. |
| 18 | 18 | - When a Claude agent answers "Authentication required", Sidekicks opens its **Terminal**, runs `claude` in the sandbox and tells you to type `/login`. **I am signed in: restart the agent** brings you back to the conversation; **Sign in in its terminal**, under the error, opens it again. |
| 19 | 19 | |
| 20 | +### Antigravity with your Google account (#109) | |
| 21 | + | |
| 22 | +- Antigravity no longer needs a Google API key either: click **Later**. When the agent answers that it is not signed in, Sidekicks opens its **Terminal**, runs `agy` in the sandbox and tells you to follow its steps to sign in with your Google account; **I am signed in: restart the agent** brings you back to the conversation. | |
| 23 | + | |
| 20 | 24 | ### Codex with your ChatGPT account (#107) |
| 21 | 25 | |
| 22 | 26 | - In the sandbox assistant, Codex no longer needs an API key: **Sign in with my ChatGPT account** runs `sbx secret set openai --oauth`, which opens your browser; sbx keeps the sign-in in your keychain. **Later** goes on without either. |
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md) | 3 | [Français](https://rickub.com/bots-garden/sidekicks/blob/v1.6.0/docs/release-notes/v1.6.0.fr.md) |
| 4 | 4 | ||
| 5 | -Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets Claude and Codex agents sign in with your Claude or ChatGPT account instead of an API key. | 5 | +Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, and lets Claude, Antigravity and Codex agents sign in with your Claude, Google or ChatGPT account instead of an API key. |
| 6 | 6 | ||
| 7 | ## What's new | 7 | ## What's new |
| 8 | 8 | ||
| @@ -17,6 +17,10 @@ Sidekicks 1.6.0 adds GitHub Copilot to the agents the sandbox assistant creates, | |||
| 17 | - In the sandbox assistant, Claude no longer needs an API key: click **Later**, and the assistant explains that you will sign in with your Claude account with `/login` in the agent's terminal. | 17 | - In the sandbox assistant, Claude no longer needs an API key: click **Later**, and the assistant explains that you will sign in with your Claude account with `/login` in the agent's terminal. |
| 18 | - When a Claude agent answers "Authentication required", Sidekicks opens its **Terminal**, runs `claude` in the sandbox and tells you to type `/login`. **I am signed in: restart the agent** brings you back to the conversation; **Sign in in its terminal**, under the error, opens it again. | 18 | - When a Claude agent answers "Authentication required", Sidekicks opens its **Terminal**, runs `claude` in the sandbox and tells you to type `/login`. **I am signed in: restart the agent** brings you back to the conversation; **Sign in in its terminal**, under the error, opens it again. |
| 19 | 19 | ||
| 20 | +### Antigravity with your Google account (#109) | ||
| 21 | + | ||
| 22 | +- Antigravity no longer needs a Google API key either: click **Later**. When the agent answers that it is not signed in, Sidekicks opens its **Terminal**, runs `agy` in the sandbox and tells you to follow its steps to sign in with your Google account; **I am signed in: restart the agent** brings you back to the conversation. | ||
| 23 | + | ||
| 20 | ### Codex with your ChatGPT account (#107) | 24 | ### Codex with your ChatGPT account (#107) |
| 21 | 25 | ||
| 22 | - In the sandbox assistant, Codex no longer needs an API key: **Sign in with my ChatGPT account** runs `sbx secret set openai --oauth`, which opens your browser; sbx keeps the sign-in in your keychain. **Later** goes on without either. | 26 | - In the sandbox assistant, Codex no longer needs an API key: **Sign in with my ChatGPT account** runs `sbx secret set openai --oauth`, which opens your browser; sbx keeps the sign-in in your keychain. **Later** goes on without either. |
modified
frontend/src/lib/agent/AgentView.svelte +2 -1 | @@ -17,6 +17,7 @@ | ||
| 17 | 17 | import AgentLog from './AgentLog.svelte' |
| 18 | 18 | import FilesTab from './FilesTab.svelte' |
| 19 | 19 | import TerminalView from './TerminalView.svelte' |
| 20 | + import { signInKey } from '../signin' | |
| 20 | 21 | import ErrorText from '../chat/ErrorText.svelte' |
| 21 | 22 | import { activeTerminal, closeTerminal, newTerminal, runningTerminals, terminalsOf } from '../terminalSessions.svelte' |
| 22 | 23 | import { maxTerminalsPerAgent } from '../terminals' |
| @@ -137,7 +138,7 @@ | ||
| 137 | 138 | <div class="pane terminals"> |
| 138 | 139 | {#if appState.signInAgent === name} |
| 139 | 140 | <div class="sign-in" role="status"> |
| 140 | - <p>{t('signIn.terminal', { agent: agent.title, program: agent.signIn ?? '' })}</p> | |
| 141 | + <p>{t(signInKey('signIn.terminal', agent.signIn, hasMessage), { agent: agent.title, program: agent.signIn ?? '' })}</p> | |
| 141 | 142 | <button type="button" class="primary" onclick={() => signedIn(name)}>{t('signIn.done')}</button> |
| 142 | 143 | </div> |
| 143 | 144 | {/if} |
| @@ -17,6 +17,7 @@ | |||
| 17 | import AgentLog from './AgentLog.svelte' | 17 | import AgentLog from './AgentLog.svelte' |
| 18 | import FilesTab from './FilesTab.svelte' | 18 | import FilesTab from './FilesTab.svelte' |
| 19 | import TerminalView from './TerminalView.svelte' | 19 | import TerminalView from './TerminalView.svelte' |
| 20 | + import { signInKey } from '../signin' | ||
| 20 | import ErrorText from '../chat/ErrorText.svelte' | 21 | import ErrorText from '../chat/ErrorText.svelte' |
| 21 | import { activeTerminal, closeTerminal, newTerminal, runningTerminals, terminalsOf } from '../terminalSessions.svelte' | 22 | import { activeTerminal, closeTerminal, newTerminal, runningTerminals, terminalsOf } from '../terminalSessions.svelte' |
| 22 | import { maxTerminalsPerAgent } from '../terminals' | 23 | import { maxTerminalsPerAgent } from '../terminals' |
| @@ -137,7 +138,7 @@ | |||
| 137 | <div class="pane terminals"> | 138 | <div class="pane terminals"> |
| 138 | {#if appState.signInAgent === name} | 139 | {#if appState.signInAgent === name} |
| 139 | <div class="sign-in" role="status"> | 140 | <div class="sign-in" role="status"> |
| 140 | - <p>{t('signIn.terminal', { agent: agent.title, program: agent.signIn ?? '' })}</p> | 141 | + <p>{t(signInKey('signIn.terminal', agent.signIn, hasMessage), { agent: agent.title, program: agent.signIn ?? '' })}</p> |
| 141 | <button type="button" class="primary" onclick={() => signedIn(name)}>{t('signIn.done')}</button> | 142 | <button type="button" class="primary" onclick={() => signedIn(name)}>{t('signIn.done')}</button> |
| 142 | </div> | 143 | </div> |
| 143 | {/if} | 144 | {/if} |
modified
frontend/src/lib/agent/CreateSbxAgent.svelte +4 -3 | @@ -7,7 +7,8 @@ | ||
| 7 | 7 | // writes <agentsFolder>/<name> (sbxenv.yaml, workspace/) and adds the |
| 8 | 8 | // agent; its conversation opens. |
| 9 | 9 | import { Browser } from '@wailsio/runtime' |
| 10 | - import { t, type MessageKey } from '../i18n/index.svelte' | |
| 10 | + import { hasMessage, t, type MessageKey } from '../i18n/index.svelte' | |
| 11 | + import { signInKey } from '../signin' | |
| 11 | 12 | import { SbxCreatorService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' |
| 12 | 13 | import type { Kind } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/sbxcreate' |
| 13 | 14 | import { agentAdded, appState } from '../state.svelte' |
| @@ -177,7 +178,7 @@ | ||
| 177 | 178 | <form class="panel" onsubmit={saveKey}> |
| 178 | 179 | <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2> |
| 179 | 180 | <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p> |
| 180 | - {#if kind.signIn}<p class="hint">{t('sbxCreator.signIn.choice', { title: kind.title, program: kind.signIn })}</p>{/if} | |
| 181 | + {#if kind.signIn}<p class="hint">{t(signInKey('sbxCreator.signIn.choice', kind.signIn, hasMessage), { title: kind.title, program: kind.signIn })}</p>{/if} | |
| 181 | 182 | {#if kind.fromGh && gh} |
| 182 | 183 | {#if ghSignedIn} |
| 183 | 184 | <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p> |
| @@ -215,7 +216,7 @@ | ||
| 215 | 216 | {#if kind.oauth} |
| 216 | 217 | <p class="note" role="status">{t('sbxCreator.oauth.later', { title: kind.title })}</p> |
| 217 | 218 | {:else if kind.signIn} |
| 218 | - <p class="note" role="status">{t('sbxCreator.signIn.later', { title: kind.title, program: kind.signIn })}</p> | |
| 219 | + <p class="note" role="status">{t(signInKey('sbxCreator.signIn.later', kind.signIn, hasMessage), { title: kind.title, program: kind.signIn })}</p> | |
| 219 | 220 | {:else} |
| 220 | 221 | <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p> |
| 221 | 222 | {/if} |
| @@ -7,7 +7,8 @@ | |||
| 7 | // writes <agentsFolder>/<name> (sbxenv.yaml, workspace/) and adds the | 7 | // writes <agentsFolder>/<name> (sbxenv.yaml, workspace/) and adds the |
| 8 | // agent; its conversation opens. | 8 | // agent; its conversation opens. |
| 9 | import { Browser } from '@wailsio/runtime' | 9 | import { Browser } from '@wailsio/runtime' |
| 10 | - import { t, type MessageKey } from '../i18n/index.svelte' | 10 | + import { hasMessage, t, type MessageKey } from '../i18n/index.svelte' |
| 11 | + import { signInKey } from '../signin' | ||
| 11 | import { SbxCreatorService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' | 12 | import { SbxCreatorService } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/app' |
| 12 | import type { Kind } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/sbxcreate' | 13 | import type { Kind } from '../../../bindings/git.rickub.com/bots-garden/sidekicks/internal/sbxcreate' |
| 13 | import { agentAdded, appState } from '../state.svelte' | 14 | import { agentAdded, appState } from '../state.svelte' |
| @@ -177,7 +178,7 @@ | |||
| 177 | <form class="panel" onsubmit={saveKey}> | 178 | <form class="panel" onsubmit={saveKey}> |
| 178 | <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2> | 179 | <h2><AgentAvatar icon={kind.icon} title={kind.title} name={kind.id} size={20} /> {t(keyText('title', kind.token), { title: kind.title })}</h2> |
| 179 | <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p> | 180 | <p>{t(keyText('explain', kind.token), { title: kind.title, service: kind.service })}</p> |
| 180 | - {#if kind.signIn}<p class="hint">{t('sbxCreator.signIn.choice', { title: kind.title, program: kind.signIn })}</p>{/if} | 181 | + {#if kind.signIn}<p class="hint">{t(signInKey('sbxCreator.signIn.choice', kind.signIn, hasMessage), { title: kind.title, program: kind.signIn })}</p>{/if} |
| 181 | {#if kind.fromGh && gh} | 182 | {#if kind.fromGh && gh} |
| 182 | {#if ghSignedIn} | 183 | {#if ghSignedIn} |
| 183 | <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p> | 184 | <p><button type="button" class="primary" onclick={useGitHub} disabled={busy}>{t('sbxCreator.token.useGh')}</button></p> |
| @@ -215,7 +216,7 @@ | |||
| 215 | {#if kind.oauth} | 216 | {#if kind.oauth} |
| 216 | <p class="note" role="status">{t('sbxCreator.oauth.later', { title: kind.title })}</p> | 217 | <p class="note" role="status">{t('sbxCreator.oauth.later', { title: kind.title })}</p> |
| 217 | {:else if kind.signIn} | 218 | {:else if kind.signIn} |
| 218 | - <p class="note" role="status">{t('sbxCreator.signIn.later', { title: kind.title, program: kind.signIn })}</p> | 219 | + <p class="note" role="status">{t(signInKey('sbxCreator.signIn.later', kind.signIn, hasMessage), { title: kind.title, program: kind.signIn })}</p> |
| 219 | {:else} | 220 | {:else} |
| 220 | <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p> | 221 | <p class="warning" role="alert">{t(keyText('missing', kind.token), { title: kind.title, service: kind.service })}</p> |
| 221 | {/if} | 222 | {/if} |
modified
frontend/src/lib/chat/MessageView.svelte +2 -1 | @@ -48,7 +48,7 @@ | ||
| 48 | 48 | </script> |
| 49 | 49 | |
| 50 | 50 | {#if message.role === 'system'} |
| 51 | - <p class="system">{hasMessage(systemKey) ? t(systemKey, { agent: author, example }) : author}{#if message.error}<br /><span class="detail"><ErrorText raw={message.error} agent={message.agent} /></span>{/if}</p> | |
| 51 | + <p class="system">{hasMessage(systemKey) ? t(systemKey, { agent: author, example }) : author}{#if message.error}<br /><span class="detail"><ErrorText raw={message.error} agent={message.agent} /></span>{#if needsSignIn(message.error, appState.agents.find((candidate) => candidate.name === message.agent)?.signIn)}<br /><button type="button" class="sign-in" onclick={() => message.agent && signInInTerminal(message.agent)}>{t('signIn.open')}</button>{/if}{/if}</p> | |
| 52 | 52 | {:else} |
| 53 | 53 | <article class="message {message.role}"> |
| 54 | 54 | <div class="author"> |
| @@ -114,4 +114,5 @@ | ||
| 114 | 114 | .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; } |
| 115 | 115 | .message:hover .copy, .copy:focus-visible { opacity: 1; } |
| 116 | 116 | .sign-in { display: block; margin-top: 6px; } |
| 117 | + .system .sign-in { display: inline-block; font-style: normal; } | |
| 117 | 118 | </style> |
| @@ -48,7 +48,7 @@ | |||
| 48 | </script> | 48 | </script> |
| 49 | 49 | ||
| 50 | {#if message.role === 'system'} | 50 | {#if message.role === 'system'} |
| 51 | - <p class="system">{hasMessage(systemKey) ? t(systemKey, { agent: author, example }) : author}{#if message.error}<br /><span class="detail"><ErrorText raw={message.error} agent={message.agent} /></span>{/if}</p> | 51 | + <p class="system">{hasMessage(systemKey) ? t(systemKey, { agent: author, example }) : author}{#if message.error}<br /><span class="detail"><ErrorText raw={message.error} agent={message.agent} /></span>{#if needsSignIn(message.error, appState.agents.find((candidate) => candidate.name === message.agent)?.signIn)}<br /><button type="button" class="sign-in" onclick={() => message.agent && signInInTerminal(message.agent)}>{t('signIn.open')}</button>{/if}{/if}</p> |
| 52 | {:else} | 52 | {:else} |
| 53 | <article class="message {message.role}"> | 53 | <article class="message {message.role}"> |
| 54 | <div class="author"> | 54 | <div class="author"> |
| @@ -114,4 +114,5 @@ | |||
| 114 | .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; } | 114 | .copy { font-size: 11px; font-weight: 400; padding: 0 6px; color: var(--muted); background: none; opacity: 0; } |
| 115 | .message:hover .copy, .copy:focus-visible { opacity: 1; } | 115 | .message:hover .copy, .copy:focus-visible { opacity: 1; } |
| 116 | .sign-in { display: block; margin-top: 6px; } | 116 | .sign-in { display: block; margin-top: 6px; } |
| 117 | + .system .sign-in { display: inline-block; font-style: normal; } | ||
| 117 | </style> | 118 | </style> |
modified
frontend/src/lib/i18n/messages.ts +18 -6 | @@ -192,10 +192,16 @@ export const en = { | ||
| 192 | 192 | 'sbxCreator.oauth.later': 'No OpenAI key nor ChatGPT sign-in in sbx yet. You can go on: if sbx asks to sign in when it creates the sandbox, Sidekicks shows a "Sign in with my ChatGPT account" button under the error.', |
| 193 | 193 | 'error.authRequired': 'The agent is not signed in: it has no API key, and nobody signed in with an account yet.', |
| 194 | 194 | 'signIn.open': 'Sign in in its terminal', |
| 195 | - 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', | |
| 195 | + 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: follow its steps to sign in with your account (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', | |
| 196 | + 'signIn.terminal.claude': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', | |
| 197 | + 'signIn.terminal.agy': '{agent} is not signed in. Antigravity ({program}) is starting in this terminal: follow its steps to sign in with your Google account — if it shows a link, copy it into your browser, sign in, and paste back the code it gives if asked. Then click the button: the agent restarts and you can send your message again.', | |
| 196 | 198 | 'signIn.done': 'I am signed in: restart the agent', |
| 197 | - 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.', | |
| 198 | - 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.', | |
| 199 | + 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your account instead: once the agent is added, open its Terminal, run {program} and follow its steps. Sidekicks opens that terminal for you when the agent asks to be signed in.', | |
| 200 | + 'sbxCreator.signIn.choice.claude': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.', | |
| 201 | + 'sbxCreator.signIn.choice.agy': 'No API key? You can go on without one ("Later") and sign in with your Google account instead: once the agent is added, open its Terminal, run {program} and follow its steps to sign in. Sidekicks opens that terminal for you when the agent asks to be signed in.', | |
| 202 | + 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your account. Once the agent is added, open its Terminal, run {program} and follow its steps — Sidekicks opens it for you at the first answer that asks for it.', | |
| 203 | + 'sbxCreator.signIn.later.claude': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.', | |
| 204 | + 'sbxCreator.signIn.later.agy': 'No Google key in sbx: you will sign in with your Google account. Once the agent is added, open its Terminal, run {program} and follow its steps to sign in — Sidekicks opens it for you at the first answer that asks for it.', | |
| 199 | 205 | 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).', |
| 200 | 206 | 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}', |
| 201 | 207 | 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.', |
| @@ -713,10 +719,16 @@ export const fr: Record<MessageKey, string> = { | ||
| 713 | 719 | 'sbxCreator.oauth.later': "Pas encore de clé OpenAI ni de connexion ChatGPT dans sbx. Vous pouvez continuer : si sbx demande de se connecter en créant la sandbox, Sidekicks affiche un bouton « Me connecter avec mon compte ChatGPT » sous l'erreur.", |
| 714 | 720 | 'error.authRequired': "L'agent n'est pas connecté : il n'a pas de clé d'API, et personne ne s'est encore connecté avec un compte.", |
| 715 | 721 | 'signIn.open': 'Se connecter dans son terminal', |
| 716 | - 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | |
| 722 | + 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : suivez ses étapes pour vous connecter avec votre compte (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | |
| 723 | + 'signIn.terminal.claude': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | |
| 724 | + 'signIn.terminal.agy': "{agent} n'est pas connecté. Antigravity ({program}) démarre dans ce terminal : suivez ses étapes pour vous connecter avec votre compte Google — s'il affiche un lien, copiez-le dans votre navigateur, connectez-vous, et recollez le code qu'il donne si on vous le demande. Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | |
| 717 | 725 | 'signIn.done': "Je suis connecté : redémarrer l'agent", |
| 718 | - 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | |
| 719 | - 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.", | |
| 726 | + 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | |
| 727 | + 'sbxCreator.signIn.choice.claude': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | |
| 728 | + 'sbxCreator.signIn.choice.agy': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte Google : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes de connexion. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | |
| 729 | + 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes — Sidekicks vous l'ouvre à la première réponse qui le demande.", | |
| 730 | + 'sbxCreator.signIn.later.claude': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.", | |
| 731 | + 'sbxCreator.signIn.later.agy': "Pas de clé Google dans sbx : vous vous connecterez avec votre compte Google. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes de connexion — Sidekicks vous l'ouvre à la première réponse qui le demande.", | |
| 720 | 732 | 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).", |
| 721 | 733 | 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}", |
| 722 | 734 | 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.", |
| @@ -192,10 +192,16 @@ export const en = { | |||
| 192 | 'sbxCreator.oauth.later': 'No OpenAI key nor ChatGPT sign-in in sbx yet. You can go on: if sbx asks to sign in when it creates the sandbox, Sidekicks shows a "Sign in with my ChatGPT account" button under the error.', | 192 | 'sbxCreator.oauth.later': 'No OpenAI key nor ChatGPT sign-in in sbx yet. You can go on: if sbx asks to sign in when it creates the sandbox, Sidekicks shows a "Sign in with my ChatGPT account" button under the error.', |
| 193 | 'error.authRequired': 'The agent is not signed in: it has no API key, and nobody signed in with an account yet.', | 193 | 'error.authRequired': 'The agent is not signed in: it has no API key, and nobody signed in with an account yet.', |
| 194 | 'signIn.open': 'Sign in in its terminal', | 194 | 'signIn.open': 'Sign in in its terminal', |
| 195 | - 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', | 195 | + 'signIn.terminal': '{agent} is not signed in. {program} is starting in this terminal: follow its steps to sign in with your account (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', |
| 196 | + 'signIn.terminal.claude': '{agent} is not signed in. {program} is starting in this terminal: type /login, choose your account and follow the steps (copy the link into your browser if asked). Then click the button: the agent restarts and you can send your message again.', | ||
| 197 | + 'signIn.terminal.agy': '{agent} is not signed in. Antigravity ({program}) is starting in this terminal: follow its steps to sign in with your Google account — if it shows a link, copy it into your browser, sign in, and paste back the code it gives if asked. Then click the button: the agent restarts and you can send your message again.', | ||
| 196 | 'signIn.done': 'I am signed in: restart the agent', | 198 | 'signIn.done': 'I am signed in: restart the agent', |
| 197 | - 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.', | 199 | + 'sbxCreator.signIn.choice': 'No API key? You can go on without one ("Later") and sign in with your account instead: once the agent is added, open its Terminal, run {program} and follow its steps. Sidekicks opens that terminal for you when the agent asks to be signed in.', |
| 198 | - 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.', | 200 | + 'sbxCreator.signIn.choice.claude': 'No API key? You can go on without one ("Later") and sign in with your {title} account instead: once the agent is added, open its Terminal, run {program} and type /login. Sidekicks opens that terminal for you when the agent asks to be signed in.', |
| 201 | + 'sbxCreator.signIn.choice.agy': 'No API key? You can go on without one ("Later") and sign in with your Google account instead: once the agent is added, open its Terminal, run {program} and follow its steps to sign in. Sidekicks opens that terminal for you when the agent asks to be signed in.', | ||
| 202 | + 'sbxCreator.signIn.later': 'No {title} key in sbx: you will sign in with your account. Once the agent is added, open its Terminal, run {program} and follow its steps — Sidekicks opens it for you at the first answer that asks for it.', | ||
| 203 | + 'sbxCreator.signIn.later.claude': 'No {title} key in sbx: you will sign in with your {title} account. Once the agent is added, open its Terminal, run {program} and type /login — Sidekicks opens it for you at the first answer that asks for it.', | ||
| 204 | + 'sbxCreator.signIn.later.agy': 'No Google key in sbx: you will sign in with your Google account. Once the agent is added, open its Terminal, run {program} and follow its steps to sign in — Sidekicks opens it for you at the first answer that asks for it.', | ||
| 199 | 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).', | 205 | 'error.programNotFound': 'The program "{program}" cannot be found. Install it, or give its full path in the agent\'s settings (for example /opt/homebrew/bin/{program}).', |
| 200 | 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}', | 206 | 'error.programNotExecutable': '"{program}" cannot be run: it is not executable. In a terminal: chmod +x {program}', |
| 201 | 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.', | 207 | 'error.dockerNotRunning': 'Docker is not running. Start Docker Desktop (or the Docker service), then try again.', |
| @@ -713,10 +719,16 @@ export const fr: Record<MessageKey, string> = { | |||
| 713 | 'sbxCreator.oauth.later': "Pas encore de clé OpenAI ni de connexion ChatGPT dans sbx. Vous pouvez continuer : si sbx demande de se connecter en créant la sandbox, Sidekicks affiche un bouton « Me connecter avec mon compte ChatGPT » sous l'erreur.", | 719 | 'sbxCreator.oauth.later': "Pas encore de clé OpenAI ni de connexion ChatGPT dans sbx. Vous pouvez continuer : si sbx demande de se connecter en créant la sandbox, Sidekicks affiche un bouton « Me connecter avec mon compte ChatGPT » sous l'erreur.", |
| 714 | 'error.authRequired': "L'agent n'est pas connecté : il n'a pas de clé d'API, et personne ne s'est encore connecté avec un compte.", | 720 | 'error.authRequired': "L'agent n'est pas connecté : il n'a pas de clé d'API, et personne ne s'est encore connecté avec un compte.", |
| 715 | 'signIn.open': 'Se connecter dans son terminal', | 721 | 'signIn.open': 'Se connecter dans son terminal', |
| 716 | - 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | 722 | + 'signIn.terminal': "{agent} n'est pas connecté. {program} démarre dans ce terminal : suivez ses étapes pour vous connecter avec votre compte (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", |
| 723 | + 'signIn.terminal.claude': "{agent} n'est pas connecté. {program} démarre dans ce terminal : tapez /login, choisissez votre compte et suivez les étapes (copiez le lien dans votre navigateur si on vous le demande). Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | ||
| 724 | + 'signIn.terminal.agy': "{agent} n'est pas connecté. Antigravity ({program}) démarre dans ce terminal : suivez ses étapes pour vous connecter avec votre compte Google — s'il affiche un lien, copiez-le dans votre navigateur, connectez-vous, et recollez le code qu'il donne si on vous le demande. Puis cliquez sur le bouton : l'agent redémarre et vous pouvez renvoyer votre message.", | ||
| 717 | 'signIn.done': "Je suis connecté : redémarrer l'agent", | 725 | 'signIn.done': "Je suis connecté : redémarrer l'agent", |
| 718 | - 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | 726 | + 'sbxCreator.signIn.choice': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", |
| 719 | - 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.", | 727 | + 'sbxCreator.signIn.choice.claude': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte {title} : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", |
| 728 | + 'sbxCreator.signIn.choice.agy': "Pas de clé d'API ? Vous pouvez continuer sans (« Plus tard ») et vous connecter plutôt avec votre compte Google : une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes de connexion. Sidekicks vous ouvre ce terminal quand l'agent demande à être connecté.", | ||
| 729 | + 'sbxCreator.signIn.later': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes — Sidekicks vous l'ouvre à la première réponse qui le demande.", | ||
| 730 | + 'sbxCreator.signIn.later.claude': "Pas de clé {title} dans sbx : vous vous connecterez avec votre compte {title}. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et tapez /login — Sidekicks vous l'ouvre à la première réponse qui le demande.", | ||
| 731 | + 'sbxCreator.signIn.later.agy': "Pas de clé Google dans sbx : vous vous connecterez avec votre compte Google. Une fois l'agent ajouté, ouvrez son Terminal, lancez {program} et suivez ses étapes de connexion — Sidekicks vous l'ouvre à la première réponse qui le demande.", | ||
| 720 | 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).", | 732 | 'error.programNotFound': "Le programme « {program} » est introuvable. Installez-le, ou indiquez son chemin complet dans les réglages de l'agent (par exemple /opt/homebrew/bin/{program}).", |
| 721 | 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}", | 733 | 'error.programNotExecutable': "« {program} » ne peut pas être lancé : il n'est pas exécutable. Dans un terminal : chmod +x {program}", |
| 722 | 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.", | 734 | 'error.dockerNotRunning': "Docker n'est pas démarré. Lancez Docker Desktop (ou le service Docker), puis réessayez.", |
modified
frontend/src/lib/signin.test.ts +22 -1 | @@ -1,6 +1,7 @@ | ||
| 1 | 1 | // Copyright (c) 2026 Philippe Charrière — Sidekicks Source-Available License 1.0, see LICENSE |
| 2 | 2 | import { describe, expect, it } from 'vitest' |
| 3 | -import { needsSignIn, signInInput } from './signin' | |
| 3 | +import { needsSignIn, signInInput, signInKey } from './signin' | |
| 4 | +import { en, fr } from './i18n/messages' | |
| 4 | 5 | import { explain } from './errors' |
| 5 | 6 | |
| 6 | 7 | describe('signing in from the terminal (issues #105, #106)', () => { |
| @@ -20,3 +21,23 @@ describe('signing in from the terminal (issues #105, #106)', () => { | ||
| 20 | 21 | expect(explain('Authentication required')?.key).toBe('error.authRequired') |
| 21 | 22 | }) |
| 22 | 23 | }) |
| 24 | + | |
| 25 | +describe('sign-in texts of each program (issue #109)', () => { | |
| 26 | + const has = (key: string) => key in en | |
| 27 | + it('has its own text for claude and agy, the general one otherwise', () => { | |
| 28 | + expect(signInKey('signIn.terminal', 'claude', has)).toBe('signIn.terminal.claude') | |
| 29 | + expect(signInKey('signIn.terminal', 'agy', has)).toBe('signIn.terminal.agy') | |
| 30 | + expect(signInKey('signIn.terminal', 'other', has)).toBe('signIn.terminal') | |
| 31 | + expect(signInKey('sbxCreator.signIn.later', 'agy', has)).toBe('sbxCreator.signIn.later.agy') | |
| 32 | + }) | |
| 33 | + it('names texts that exist in both catalogues', () => { | |
| 34 | + for (const base of ['signIn.terminal', 'sbxCreator.signIn.choice', 'sbxCreator.signIn.later']) { | |
| 35 | + for (const program of ['', 'claude', 'agy']) { | |
| 36 | + const key = program ? `${base}.${program}` : base | |
| 37 | + expect(en).toHaveProperty([key]) | |
| 38 | + expect(fr).toHaveProperty([key]) | |
| 39 | + } | |
| 40 | + } | |
| 41 | + }) | |
| 42 | +}) | |
| 43 | + | |
| @@ -1,6 +1,7 @@ | |||
| 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 | import { describe, expect, it } from 'vitest' | 2 | import { describe, expect, it } from 'vitest' |
| 3 | -import { needsSignIn, signInInput } from './signin' | 3 | +import { needsSignIn, signInInput, signInKey } from './signin' |
| 4 | +import { en, fr } from './i18n/messages' | ||
| 4 | import { explain } from './errors' | 5 | import { explain } from './errors' |
| 5 | 6 | ||
| 6 | describe('signing in from the terminal (issues #105, #106)', () => { | 7 | describe('signing in from the terminal (issues #105, #106)', () => { |
| @@ -20,3 +21,23 @@ describe('signing in from the terminal (issues #105, #106)', () => { | |||
| 20 | expect(explain('Authentication required')?.key).toBe('error.authRequired') | 21 | expect(explain('Authentication required')?.key).toBe('error.authRequired') |
| 21 | }) | 22 | }) |
| 22 | }) | 23 | }) |
| 24 | + | ||
| 25 | +describe('sign-in texts of each program (issue #109)', () => { | ||
| 26 | + const has = (key: string) => key in en | ||
| 27 | + it('has its own text for claude and agy, the general one otherwise', () => { | ||
| 28 | + expect(signInKey('signIn.terminal', 'claude', has)).toBe('signIn.terminal.claude') | ||
| 29 | + expect(signInKey('signIn.terminal', 'agy', has)).toBe('signIn.terminal.agy') | ||
| 30 | + expect(signInKey('signIn.terminal', 'other', has)).toBe('signIn.terminal') | ||
| 31 | + expect(signInKey('sbxCreator.signIn.later', 'agy', has)).toBe('sbxCreator.signIn.later.agy') | ||
| 32 | + }) | ||
| 33 | + it('names texts that exist in both catalogues', () => { | ||
| 34 | + for (const base of ['signIn.terminal', 'sbxCreator.signIn.choice', 'sbxCreator.signIn.later']) { | ||
| 35 | + for (const program of ['', 'claude', 'agy']) { | ||
| 36 | + const key = program ? `${base}.${program}` : base | ||
| 37 | + expect(en).toHaveProperty([key]) | ||
| 38 | + expect(fr).toHaveProperty([key]) | ||
| 39 | + } | ||
| 40 | + } | ||
| 41 | + }) | ||
| 42 | +}) | ||
| 43 | + | ||
modified
frontend/src/lib/signin.ts +14 -0 | @@ -31,3 +31,17 @@ export function needsSignIn(error: string | undefined, signIn: string | undefine | ||
| 31 | 31 | export function signInInput(program: string): string { |
| 32 | 32 | return `${program}\r` |
| 33 | 33 | } |
| 34 | + | |
| 35 | +/** | |
| 36 | + * The message of a sign-in text for program: its own when the catalogue has | |
| 37 | + * one (signIn.terminal.claude: /login; .agy: a Google account, issue #109), | |
| 38 | + * else the general one, which only says to follow the program's steps. | |
| 39 | + * | |
| 40 | + * @example | |
| 41 | + * signInKey('signIn.terminal', 'claude', has) // 'signIn.terminal.claude' | |
| 42 | + * signInKey('signIn.terminal', 'other', has) // 'signIn.terminal' | |
| 43 | + */ | |
| 44 | +export function signInKey<Key extends string>(base: Key, program: string | undefined, has: (key: string) => boolean): Key { | |
| 45 | + const own = `${base}.${program ?? ''}` | |
| 46 | + return (program && has(own) ? own : base) as Key | |
| 47 | +} | |
| @@ -31,3 +31,17 @@ export function needsSignIn(error: string | undefined, signIn: string | undefine | |||
| 31 | export function signInInput(program: string): string { | 31 | export function signInInput(program: string): string { |
| 32 | return `${program}\r` | 32 | return `${program}\r` |
| 33 | } | 33 | } |
| 34 | + | ||
| 35 | +/** | ||
| 36 | + * The message of a sign-in text for program: its own when the catalogue has | ||
| 37 | + * one (signIn.terminal.claude: /login; .agy: a Google account, issue #109), | ||
| 38 | + * else the general one, which only says to follow the program's steps. | ||
| 39 | + * | ||
| 40 | + * @example | ||
| 41 | + * signInKey('signIn.terminal', 'claude', has) // 'signIn.terminal.claude' | ||
| 42 | + * signInKey('signIn.terminal', 'other', has) // 'signIn.terminal' | ||
| 43 | + */ | ||
| 44 | +export function signInKey<Key extends string>(base: Key, program: string | undefined, has: (key: string) => boolean): Key { | ||
| 45 | + const own = `${base}.${program ?? ''}` | ||
| 46 | + return (program && has(own) ? own : base) as Key | ||
| 47 | +} | ||
modified
frontend/src/lib/state.svelte.ts +4 -2 | @@ -454,8 +454,10 @@ export function connect(): () => void { | ||
| 454 | 454 | if ('message' in item) { |
| 455 | 455 | const { channel, message } = item.message |
| 456 | 456 | applyMessage(conversationOf(channel), message) |
| 457 | - // Issue #106: an agent that is not signed in goes to its terminal, once per start. | |
| 458 | - if (message.role === 'agent' && message.done && message.agent && !signInOpened.has(message.agent)) { | |
| 457 | + // Issue #106: an agent that is not signed in goes to its terminal, once per start — | |
| 458 | + // from its answer, or from the system message when it fails before answering | |
| 459 | + // (session/new refused: "{agent} could not answer", issue #109). | |
| 460 | + if ((message.role === 'agent' || message.role === 'system') && message.done && message.agent && !signInOpened.has(message.agent)) { | |
| 459 | 461 | const signIn = appState.agents.find((candidate) => candidate.name === message.agent)?.signIn |
| 460 | 462 | if (needsSignIn(message.error, signIn)) signInInTerminal(message.agent) |
| 461 | 463 | } |
| @@ -454,8 +454,10 @@ export function connect(): () => void { | |||
| 454 | if ('message' in item) { | 454 | if ('message' in item) { |
| 455 | const { channel, message } = item.message | 455 | const { channel, message } = item.message |
| 456 | applyMessage(conversationOf(channel), message) | 456 | applyMessage(conversationOf(channel), message) |
| 457 | - // Issue #106: an agent that is not signed in goes to its terminal, once per start. | 457 | + // Issue #106: an agent that is not signed in goes to its terminal, once per start — |
| 458 | - if (message.role === 'agent' && message.done && message.agent && !signInOpened.has(message.agent)) { | 458 | + // from its answer, or from the system message when it fails before answering |
| 459 | + // (session/new refused: "{agent} could not answer", issue #109). | ||
| 460 | + if ((message.role === 'agent' || message.role === 'system') && message.done && message.agent && !signInOpened.has(message.agent)) { | ||
| 459 | const signIn = appState.agents.find((candidate) => candidate.name === message.agent)?.signIn | 461 | const signIn = appState.agents.find((candidate) => candidate.name === message.agent)?.signIn |
| 460 | if (needsSignIn(message.error, signIn)) signInInTerminal(message.agent) | 462 | if (needsSignIn(message.error, signIn)) signInInTerminal(message.agent) |
| 461 | } | 463 | } |
modified
internal/agents/signin.go +3 -0 | @@ -16,6 +16,9 @@ import ( | ||
| 16 | 16 | // such an agent to the program its terminal runs for that. |
| 17 | 17 | var signInPrograms = map[string]string{ |
| 18 | 18 | "claude-agent-acp": "claude", |
| 19 | + // Google Antigravity serves ACP with `agy acp` and signs in, with a | |
| 20 | + // Google account, when agy runs in a terminal (issue #109). | |
| 21 | + "agy": "agy", | |
| 19 | 22 | } |
| 20 | 23 | |
| 21 | 24 | // SignInProgram is the program to run in the terminal of definition to sign |
| @@ -16,6 +16,9 @@ import ( | |||
| 16 | // such an agent to the program its terminal runs for that. | 16 | // such an agent to the program its terminal runs for that. |
| 17 | var signInPrograms = map[string]string{ | 17 | var signInPrograms = map[string]string{ |
| 18 | "claude-agent-acp": "claude", | 18 | "claude-agent-acp": "claude", |
| 19 | + // Google Antigravity serves ACP with `agy acp` and signs in, with a | ||
| 20 | + // Google account, when agy runs in a terminal (issue #109). | ||
| 21 | + "agy": "agy", | ||
| 19 | } | 22 | } |
| 20 | 23 | ||
| 21 | // SignInProgram is the program to run in the terminal of definition to sign | 24 | // SignInProgram is the program to run in the terminal of definition to sign |
modified
internal/agents/signin_test.go +2 -0 | @@ -20,6 +20,8 @@ func TestSignInProgramIsClaudeForClaudeInASandboxOnly(t *testing.T) { | ||
| 20 | 20 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: sbx}, "claude"}, |
| 21 | 21 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "/usr/local/bin/claude-agent-acp"}, Runtime: sbx}, "claude"}, |
| 22 | 22 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "codex", "codex-acp"}, Runtime: sbx}, ""}, |
| 23 | + // Issue #109: Antigravity signs in by running agy in its terminal. | |
| 24 | + {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "antigravity", "agy", "acp"}, Runtime: sbx}, "agy"}, | |
| 23 | 25 | {config.Agent{Command: "claude-agent-acp"}, ""}, |
| 24 | 26 | } { |
| 25 | 27 | if got := agents.SignInProgram(test.agent); got != test.want { |
| @@ -20,6 +20,8 @@ func TestSignInProgramIsClaudeForClaudeInASandboxOnly(t *testing.T) { | |||
| 20 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: sbx}, "claude"}, | 20 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "claude-agent-acp"}, Runtime: sbx}, "claude"}, |
| 21 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "/usr/local/bin/claude-agent-acp"}, Runtime: sbx}, "claude"}, | 21 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "claude", "/usr/local/bin/claude-agent-acp"}, Runtime: sbx}, "claude"}, |
| 22 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "codex", "codex-acp"}, Runtime: sbx}, ""}, | 22 | {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "codex", "codex-acp"}, Runtime: sbx}, ""}, |
| 23 | + // Issue #109: Antigravity signs in by running agy in its terminal. | ||
| 24 | + {config.Agent{Command: "sbx", Args: []string{"exec", "-i", "antigravity", "agy", "acp"}, Runtime: sbx}, "agy"}, | ||
| 23 | {config.Agent{Command: "claude-agent-acp"}, ""}, | 25 | {config.Agent{Command: "claude-agent-acp"}, ""}, |
| 24 | } { | 26 | } { |
| 25 | if got := agents.SignInProgram(test.agent); got != test.want { | 27 | if got := agents.SignInProgram(test.agent); got != test.want { |
modified
internal/sbxcreate/sbxcreate.go +1 -1 | @@ -98,7 +98,7 @@ var Catalogue = []Kind{ | ||
| 98 | 98 | // gemini-kit, and `agy acp` serves ACP. |
| 99 | 99 | ID: "antigravity", Title: "Antigravity", Icon: "logo:antigravity", |
| 100 | 100 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", |
| 101 | - Service: "google", KeyURL: "https://aistudio.google.com/apikey", | |
| 101 | + Service: "google", KeyURL: "https://aistudio.google.com/apikey", SignIn: "agy", | |
| 102 | 102 | Bindings: Binding{ |
| 103 | 103 | APIKey: []string{"generativelanguage.googleapis.com", "aiplatform.googleapis.com", "vertexai.googleapis.com"}, |
| 104 | 104 | OAuth: []string{"accounts.google.com", "oauth2.googleapis.com"}, |
| @@ -98,7 +98,7 @@ var Catalogue = []Kind{ | |||
| 98 | // gemini-kit, and `agy acp` serves ACP. | 98 | // gemini-kit, and `agy acp` serves ACP. |
| 99 | ID: "antigravity", Title: "Antigravity", Icon: "logo:antigravity", | 99 | ID: "antigravity", Title: "Antigravity", Icon: "logo:antigravity", |
| 100 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", | 100 | Agent: "antigravity", Kit: "docker.io/sbx/antigravity:latest", Program: "agy acp", |
| 101 | - Service: "google", KeyURL: "https://aistudio.google.com/apikey", | 101 | + Service: "google", KeyURL: "https://aistudio.google.com/apikey", SignIn: "agy", |
| 102 | Bindings: Binding{ | 102 | Bindings: Binding{ |
| 103 | APIKey: []string{"generativelanguage.googleapis.com", "aiplatform.googleapis.com", "vertexai.googleapis.com"}, | 103 | APIKey: []string{"generativelanguage.googleapis.com", "aiplatform.googleapis.com", "vertexai.googleapis.com"}, |
| 104 | OAuth: []string{"accounts.google.com", "oauth2.googleapis.com"}, | 104 | OAuth: []string{"accounts.google.com", "oauth2.googleapis.com"}, |
modified
internal/sbxcreate/sbxcreate_test.go +1 -1 | @@ -56,7 +56,7 @@ func TestTheCatalogueOffersClaudeGeminiCodexVibeAndCopilot(t *testing.T) { | ||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | func TestGeminiGoesThroughAntigravityAndVibeThroughVibeACP(t *testing.T) { |
| 59 | - if antigravity, _ := sbxcreate.Lookup("antigravity"); antigravity.Agent != "antigravity" || antigravity.Program != "agy acp" || antigravity.Icon != "logo:antigravity" || antigravity.Service != "google" { | |
| 59 | + if antigravity, _ := sbxcreate.Lookup("antigravity"); antigravity.Agent != "antigravity" || antigravity.Program != "agy acp" || antigravity.Icon != "logo:antigravity" || antigravity.Service != "google" || antigravity.SignIn != "agy" { | |
| 60 | 60 | t.Fatalf("Antigravity: %+v", antigravity) |
| 61 | 61 | } |
| 62 | 62 | if _, ok := sbxcreate.Lookup("gemini"); ok { |
| @@ -56,7 +56,7 @@ func TestTheCatalogueOffersClaudeGeminiCodexVibeAndCopilot(t *testing.T) { | |||
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | func TestGeminiGoesThroughAntigravityAndVibeThroughVibeACP(t *testing.T) { | 58 | func TestGeminiGoesThroughAntigravityAndVibeThroughVibeACP(t *testing.T) { |
| 59 | - if antigravity, _ := sbxcreate.Lookup("antigravity"); antigravity.Agent != "antigravity" || antigravity.Program != "agy acp" || antigravity.Icon != "logo:antigravity" || antigravity.Service != "google" { | 59 | + if antigravity, _ := sbxcreate.Lookup("antigravity"); antigravity.Agent != "antigravity" || antigravity.Program != "agy acp" || antigravity.Icon != "logo:antigravity" || antigravity.Service != "google" || antigravity.SignIn != "agy" { |
| 60 | t.Fatalf("Antigravity: %+v", antigravity) | 60 | t.Fatalf("Antigravity: %+v", antigravity) |
| 61 | } | 61 | } |
| 62 | if _, ok := sbxcreate.Lookup("gemini"); ok { | 62 | if _, ok := sbxcreate.Lookup("gemini"); ok { |