converse-mcp-server 4.6.2 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +2 -2
- package/README.md +11 -10
- package/docs/API.md +10 -9
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/PROVIDERS.md +12 -11
- package/package.json +1 -1
- package/src/providers/copilot.js +9 -10
- package/src/providers/gemini-cli.js +46 -44
- package/src/providers/google.js +25 -1
package/.env.example
CHANGED
|
@@ -103,10 +103,10 @@ CLOUDFLARE_API_TOKEN=your_cloudflare_api_token_here
|
|
|
103
103
|
# with "did you mean" suggestions otherwise. Per request, use "provider:model".
|
|
104
104
|
# CODEX_DEFAULT_MODEL=gpt-6-astra # gpt-6.1-sol, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.3-codex-spark (CODEX_MODEL is the legacy name)
|
|
105
105
|
# CLAUDE_DEFAULT_MODEL=claude-opus-5-5
|
|
106
|
-
# AGY_DEFAULT_MODEL=gemini-3.8-flash # Antigravity CLI: gemini-
|
|
106
|
+
# AGY_DEFAULT_MODEL=gemini-3.8-flash # Antigravity CLI: gemini-4-argon (default, requires Google AI Ultra), gemini-3.8-flash
|
|
107
107
|
# COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is the legacy name
|
|
108
108
|
# OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
109
|
-
# GOOGLE_DEFAULT_MODEL=gemini-
|
|
109
|
+
# GOOGLE_DEFAULT_MODEL=gemini-4-argon
|
|
110
110
|
# XAI_DEFAULT_MODEL=grok-4.5
|
|
111
111
|
# ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
112
112
|
# MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
package/README.md
CHANGED
|
@@ -258,14 +258,15 @@ SUMMARIZATION_MODEL=gpt-5-nano # Default: gpt-5-nano
|
|
|
258
258
|
|
|
259
259
|
**Supported Models**:
|
|
260
260
|
|
|
261
|
-
- **gemini-
|
|
261
|
+
- **gemini-4-argon** (default; aliases: `argon`, `pro`, `gemini-pro`): Flagship reasoning model for complex software engineering and agentic work; paid API tier only (1M context, 65K output)
|
|
262
|
+
- **gemini-3.1-pro-preview** (aliases: `gemini-3.1-pro`, `gemini-3`): Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
262
263
|
- **gemini-3.5-flash** (aliases: `gemini-3.5`, `flash-3.5`): Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
263
264
|
- **gemini-3.8-flash** (aliases: `gemini-3.8`, `flash-3.8`): Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
264
265
|
- **gemini-2.5-pro** (alias: `pro 2.5`): Deep reasoning with thinking budget (1M context, 65K output)
|
|
265
266
|
- **gemini-2.5-flash** (alias: `flash`): Ultra-fast (1M context, 65K output)
|
|
266
267
|
- **gemini-2.5-flash-lite** (alias: `flash-lite`): Lightweight fast model (1M context, 65K output)
|
|
267
268
|
|
|
268
|
-
**Note**: The Antigravity CLI provider serves `gemini-3.8-flash` and `gemini-
|
|
269
|
+
**Note**: The Antigravity CLI provider serves `gemini-4-argon` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Argon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when it is installed (see [Model Selection](#model-selection)). Use `google:<model>` to always use the Google API.
|
|
269
270
|
|
|
270
271
|
### X.AI/Grok Models
|
|
271
272
|
|
|
@@ -348,7 +349,7 @@ Reach these only with the `copilot:` namespace (e.g. `copilot:gpt-6.1-sol`) —
|
|
|
348
349
|
|
|
349
350
|
- **OpenAI**: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all support `reasoning_effort`)
|
|
350
351
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.1` (alias: `fable`), `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
351
|
-
- **Google**: `gemini-
|
|
352
|
+
- **Google**: `gemini-4-argon` (aliases: `gemini`, `argon`, `gemini-4`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
352
353
|
|
|
353
354
|
## 📚 Help & Documentation
|
|
354
355
|
|
|
@@ -409,10 +410,10 @@ CODEX_APPROVAL_POLICY=never # never (default), untrusted, on-fa
|
|
|
409
410
|
# list; startup fails with suggestions otherwise.
|
|
410
411
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL still works as a fallback
|
|
411
412
|
CLAUDE_DEFAULT_MODEL=claude-opus-5-5
|
|
412
|
-
AGY_DEFAULT_MODEL=gemini-
|
|
413
|
+
AGY_DEFAULT_MODEL=gemini-4-argon # Requires Google AI Ultra; other plans can use gemini:flash or set AGY_DEFAULT_MODEL=gemini-3.8-flash
|
|
413
414
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL still works as a fallback
|
|
414
415
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
415
|
-
GOOGLE_DEFAULT_MODEL=gemini-
|
|
416
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-argon
|
|
416
417
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
417
418
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
418
419
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -481,13 +482,13 @@ Every entry in `models` takes one of four forms:
|
|
|
481
482
|
// A provider: its default model (hardcoded, or <PROVIDER>_DEFAULT_MODEL)
|
|
482
483
|
"codex"; // -> Codex (GPT-6 Astra)
|
|
483
484
|
"claude"; // -> Claude Agent SDK (Claude Opus 5.5)
|
|
484
|
-
"gemini"; // -> Antigravity CLI (Gemini
|
|
485
|
+
"gemini"; // -> Antigravity CLI (Gemini 4 Argon)
|
|
485
486
|
"openai"; // -> OpenAI API (GPT-6.1 Sol)
|
|
486
487
|
|
|
487
488
|
// provider:model — that model on that provider only
|
|
488
489
|
"codex:astra"; // -> Codex (GPT-6 Astra)
|
|
489
490
|
"openai:gpt-6-astra"; // -> OpenAI API, even when Codex is available
|
|
490
|
-
"gemini:pro"; // -> Antigravity CLI (Gemini
|
|
491
|
+
"gemini:pro"; // -> Antigravity CLI (Gemini 4 Argon)
|
|
491
492
|
"google:gemini-3.1-pro-preview"; // -> Google API
|
|
492
493
|
"copilot:sonnet"; // -> GitHub Copilot (Claude Sonnet 5.5)
|
|
493
494
|
"openrouter:z-ai/glm-5.2:online"; // -> OpenRouter with web search opt-in
|
|
@@ -495,7 +496,7 @@ Every entry in `models` takes one of four forms:
|
|
|
495
496
|
// A bare model ID or alias — the first configured provider that offers it
|
|
496
497
|
"gpt-6-astra"; // -> Codex, else OpenAI API
|
|
497
498
|
"opus"; // -> Claude Agent SDK, else Anthropic API
|
|
498
|
-
"pro"; // -> Antigravity CLI, else Google API
|
|
499
|
+
"pro"; // -> Antigravity CLI (gemini-4-argon), else Google API
|
|
499
500
|
"grok"; // -> grok-4.5 (XAI)
|
|
500
501
|
"z-ai/glm-5.2"; // -> OpenRouter (any vendor/model slug)
|
|
501
502
|
```
|
|
@@ -513,11 +514,11 @@ Every entry in `models` takes one of four forms:
|
|
|
513
514
|
Provider priority order (subscription-based local providers first, then API-key providers), used by both `auto` and bare model names:
|
|
514
515
|
|
|
515
516
|
1. Codex (`codex` → GPT-6 Astra)
|
|
516
|
-
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini
|
|
517
|
+
2. Gemini via Antigravity CLI (`gemini` / `agy` → Gemini 4 Argon)
|
|
517
518
|
3. Claude Agent SDK (`claude` → Claude Opus 5.5)
|
|
518
519
|
4. Copilot (`copilot` → GPT-6.1 Sol; `auto` only, never bare names)
|
|
519
520
|
5. OpenAI (`openai` → GPT-6.1 Sol)
|
|
520
|
-
6. Google (`google` → Gemini
|
|
521
|
+
6. Google (`google` → Gemini 4 Argon)
|
|
521
522
|
7. XAI (`xai` → Grok 4.5)
|
|
522
523
|
8. Anthropic (`anthropic` → Claude Opus 5.5)
|
|
523
524
|
9. Mistral (`mistral` → Mistral Medium 3.5)
|
package/docs/API.md
CHANGED
|
@@ -520,14 +520,15 @@ Provide models as plain name strings in the `models` array. Each entry is `auto`
|
|
|
520
520
|
|
|
521
521
|
| Model | Aliases | Context | Output | Notes |
|
|
522
522
|
|-------|---------|---------|--------|-------|
|
|
523
|
-
| `gemini-
|
|
523
|
+
| `gemini-4-argon` | `argon`, `pro`, `gemini-pro` | 1M | 65K | Default; flagship reasoning for complex software engineering and agentic work; paid API tier only |
|
|
524
|
+
| `gemini-3.1-pro-preview` | `gemini-3.1-pro`, `gemini-3` | 1M | 64K | Gemini 3.1 Pro reasoning, expanded thinking levels |
|
|
524
525
|
| `gemini-3.5-flash` | `gemini-3.5`, `flash-3.5` | 1M | 65K | Frontier agentic/coding at Flash speed |
|
|
525
526
|
| `gemini-3.8-flash` | `gemini-3.8`, `flash-3.8` | 1M | 65K | Current-generation Flash; thinking low/medium/high only |
|
|
526
527
|
| `gemini-2.5-pro` | `pro 2.5` | 1M | 65K | Deep reasoning with thinking budget |
|
|
527
528
|
| `gemini-2.5-flash` | `flash` | 1M | 65K | Ultra-fast |
|
|
528
529
|
| `gemini-2.5-flash-lite` | `flash-lite` | 1M | 65K | Lightweight fast model |
|
|
529
530
|
|
|
530
|
-
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-3.8-flash` and `gemini-
|
|
531
|
+
**Note:** The **Antigravity CLI** provider (`agy`, OAuth-based) serves `gemini-4-argon` and `gemini-3.8-flash`. Bare `pro` and `gemini-pro` resolve to Gemini 4 Argon on Antigravity first, then the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `flash` and `gemini-3.8-flash` route to Antigravity first when `agy` is installed; the bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`) to always use the Google API.
|
|
531
532
|
|
|
532
533
|
### X.AI / Grok Models
|
|
533
534
|
|
|
@@ -627,14 +628,14 @@ All three are uncensored ("abliterated") reasoning models using Abliteration's O
|
|
|
627
628
|
|
|
628
629
|
The **Antigravity CLI** (`agy`) provides subscription-based access to Gemini models through Google OAuth:
|
|
629
630
|
|
|
630
|
-
- **Models** (text-only): `gemini-
|
|
631
|
+
- **Models** (text-only): `gemini-4-argon` (default; `argon`, `pro`, `gemini-pro`, ...; `gemini:pro`), `gemini-3.8-flash` (`flash`, `gemini-3.8`, `flash-3.8`, ...; `gemini:flash`). Gemini 4 Argon requires Google AI Ultra; other plans can use `gemini:flash` or set `AGY_DEFAULT_MODEL=gemini-3.8-flash`. Default override: `AGY_DEFAULT_MODEL`.
|
|
631
632
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli`
|
|
632
633
|
- **Availability**: the `agy` binary is found on PATH or at the platform install location
|
|
633
634
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions`, so every tool request is auto-approved
|
|
634
635
|
- **Authentication**: Google OAuth via `agy` (one-time interactive login)
|
|
635
636
|
- **Setup**: install the Antigravity CLI and run `agy` once to log in
|
|
636
637
|
- **Billing**: uses your Antigravity subscription/compute allowance instead of API credits
|
|
637
|
-
- **Reasoning effort**:
|
|
638
|
+
- **Reasoning effort**: Every model has Low, Medium, and High variants selected by `reasoning_effort`
|
|
638
639
|
- **Context**: 1M tokens
|
|
639
640
|
- One-shot responses (no token-level streaming); ~7s minimum per call
|
|
640
641
|
|
|
@@ -656,7 +657,7 @@ Reach these only with the `copilot:` namespace (also `github-copilot:`, `copilot
|
|
|
656
657
|
|
|
657
658
|
- **OpenAI**: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna` (all accept `reasoning_effort`)
|
|
658
659
|
- **Anthropic**: `claude-opus-5.5` (aliases: `opus`, `claude`), `claude-fable-5.1` (alias: `fable`), `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
659
|
-
- **Google**: `gemini-
|
|
660
|
+
- **Google**: `gemini-4-argon` (aliases: `gemini`, `argon`, `gemini-4`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
660
661
|
- Any other `copilot:<id>` is rejected with suggestions
|
|
661
662
|
|
|
662
663
|
### Model Selection
|
|
@@ -675,7 +676,7 @@ Every entry in `models` takes one of four forms:
|
|
|
675
676
|
"gpt-6" // Codex (-> gpt-6.1-sol), else OpenAI API
|
|
676
677
|
"openai:gpt-6" // OpenAI API only
|
|
677
678
|
"gemini-2.5-flash" // Google API
|
|
678
|
-
"pro" // Antigravity CLI (-> gemini-
|
|
679
|
+
"pro" // Antigravity CLI (-> gemini-4-argon), else Google API
|
|
679
680
|
"google:pro" // Google API only
|
|
680
681
|
"grok-4.5" // X.AI
|
|
681
682
|
"deepseek" // DeepSeek (-> deepseek-v4-pro)
|
|
@@ -689,7 +690,7 @@ Every entry in `models` takes one of four forms:
|
|
|
689
690
|
"claude" // Claude Agent SDK (-> Claude Opus 5.5)
|
|
690
691
|
"claude:fable" // Claude Agent SDK (Claude Fable 5.1)
|
|
691
692
|
"codex:luna" // Codex (GPT-6 Luna)
|
|
692
|
-
"gemini" // Antigravity CLI (Gemini
|
|
693
|
+
"gemini" // Antigravity CLI (Gemini 4 Argon)
|
|
693
694
|
"copilot:gpt-6.1-sol" // GitHub Copilot SDK
|
|
694
695
|
```
|
|
695
696
|
|
|
@@ -738,10 +739,10 @@ Each provider's default model (used for its bare provider name and for `auto`) c
|
|
|
738
739
|
```bash
|
|
739
740
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL is honored as a legacy fallback
|
|
740
741
|
CLAUDE_DEFAULT_MODEL=claude-opus-5-5
|
|
741
|
-
AGY_DEFAULT_MODEL=gemini-
|
|
742
|
+
AGY_DEFAULT_MODEL=gemini-4-argon # Antigravity CLI (gemini)
|
|
742
743
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
743
744
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
744
|
-
GOOGLE_DEFAULT_MODEL=gemini-
|
|
745
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-argon
|
|
745
746
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
746
747
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
747
748
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
package/docs/ARCHITECTURE.md
CHANGED
package/docs/PROVIDERS.md
CHANGED
|
@@ -26,13 +26,14 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
26
26
|
- **Get Key**: [makersuite.google.com/app/apikey](https://makersuite.google.com/app/apikey)
|
|
27
27
|
- **Environment Variable**: `GOOGLE_API_KEY`
|
|
28
28
|
- **Supported Models**:
|
|
29
|
-
- `gemini-
|
|
29
|
+
- `gemini-4-argon` (default; aliases: `argon`, `pro`, `gemini-pro`) - Flagship reasoning model for complex software engineering and agentic work; paid API tier only (1M context, 65K output)
|
|
30
|
+
- `gemini-3.1-pro-preview` (aliases: `gemini-3.1-pro`, `gemini-3`) - Gemini 3.1 Pro reasoning with expanded thinking levels (1M context, 64K output)
|
|
30
31
|
- `gemini-3.5-flash` (aliases: `gemini-3.5`, `flash-3.5`) - Frontier-level agentic and coding performance at Flash speed (1M context, 65K output)
|
|
31
32
|
- `gemini-3.8-flash` (aliases: `gemini-3.8`, `flash-3.8`) - Current-generation Flash with stronger long-horizon agentic performance (1M context, 65K output; thinking levels low/medium/high — no minimal)
|
|
32
33
|
- `gemini-2.5-pro` (alias: `pro 2.5`) - Deep reasoning with thinking budget (1M context, 65K output)
|
|
33
34
|
- `gemini-2.5-flash` (alias: `flash`) - Ultra-fast model with thinking budget (1M context, 65K output)
|
|
34
35
|
- `gemini-2.5-flash-lite` (alias: `flash-lite`) - Lightweight fast model (1M context, 65K output)
|
|
35
|
-
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-
|
|
36
|
+
- **Note**: The **Antigravity CLI** provider (`agy`, OAuth-based access) serves `gemini-4-argon` and `gemini-3.8-flash`, and it comes before the Google API in bare-name order. When `agy` is installed, bare `pro` and `gemini-pro` resolve to Gemini 4 Argon on Antigravity first, with the Google API as failover; bare `gemini-3.1-pro-preview` routes to the Google API only. The bare name `gemini` is the Antigravity namespace. Use `google:<model>` (e.g. `google:pro`, `google:gemini-2.5-flash`) to always use the Google API. Names only the Google API serves (e.g. `gemini-2.5-pro`, `gemini-3.5-flash`) route there directly.
|
|
36
37
|
|
|
37
38
|
### X.AI (Grok)
|
|
38
39
|
- **API Key Format**: `xai-...` (starts with `xai-`)
|
|
@@ -155,12 +156,12 @@ This guide documents all supported AI providers in the Converse MCP Server and t
|
|
|
155
156
|
2. Authenticate: run `agy` once interactively and complete the Google OAuth login. This also establishes workspace trust for your home directory (the provider spawns each call in a per-call subdirectory under `~/.converse/agy-runs`).
|
|
156
157
|
- **Availability**: The `agy` binary is found on PATH or at the platform install location
|
|
157
158
|
- **Environment Variables**:
|
|
158
|
-
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-3.8-flash`)
|
|
159
|
+
- `AGY_DEFAULT_MODEL` - Model used for bare `gemini` and `auto` (default: `gemini-4-argon`, requires Google AI Ultra; other plans can use `gemini:flash` or set `AGY_DEFAULT_MODEL=gemini-3.8-flash`)
|
|
159
160
|
- **Namespaces**: `gemini`, `agy`, `antigravity`, `gemini-cli` (all equivalent, e.g. `agy:pro`)
|
|
160
161
|
- **Supported Models** (text-only — print mode has no image input channel):
|
|
161
|
-
- `gemini-
|
|
162
|
-
- `gemini-3.
|
|
163
|
-
-
|
|
162
|
+
- `gemini-4-argon` (aliases: `argon`, `pro`, `gemini-pro`, ...) - Gemini 4 Argon (default; `gemini` alone = `gemini:gemini-4-argon`; `gemini:pro`)
|
|
163
|
+
- `gemini-3.8-flash` (aliases: `flash`, `gemini-3.8`, `flash-3.8`, ...) - Gemini 3.8 Flash (`gemini:flash`)
|
|
164
|
+
- Every model has Low, Medium, and High variants selected by `reasoning_effort`.
|
|
164
165
|
|
|
165
166
|
**Key Features:**
|
|
166
167
|
- **OAuth Authentication**: Uses your Antigravity Google login instead of API keys
|
|
@@ -213,7 +214,7 @@ agy
|
|
|
213
214
|
**Differences from Google API Provider:**
|
|
214
215
|
- **Authentication**: Google OAuth via `agy` vs API Key (Google API)
|
|
215
216
|
- **Billing**: Antigravity subscription/compute allowance vs pay-per-use API
|
|
216
|
-
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare
|
|
217
|
+
- **Model Routing**: `gemini` / `gemini:<model>` / `agy:<model>` → Antigravity CLI provider; `google:<model>` → Google API provider; bare `pro` and `gemini-pro` resolve to Gemini 4 Argon on Antigravity first, then the Google API on authentication/availability failure. Bare `gemini-3.1-pro-preview` routes to the Google API only. Bare `gemini-3.8-flash` is served by both providers and tries Antigravity first; bare `flash` is Gemini 3.8 Flash on Antigravity but Gemini 2.5 Flash on the Google API, so it does not fail over between them.
|
|
217
218
|
- **Images**: Not supported (text-only) vs full multimodal on the Google API provider
|
|
218
219
|
- **Permissions**: `agy` runs with `--dangerously-skip-permissions` (headless calls cannot prompt), so every tool request, including shell commands and file writes, is auto-approved. Bare names and `auto` reach it whenever `agy` is installed; use `google:<model>` to keep a request on the plain API.
|
|
219
220
|
|
|
@@ -257,7 +258,7 @@ agy
|
|
|
257
258
|
- `copilot` - GPT-6.1 Sol, or `COPILOT_DEFAULT_MODEL`
|
|
258
259
|
- OpenAI: `gpt-6.1-sol` (aliases: `gpt-6`, `gpt-6.1`, `gpt-5`, `sol`), `gpt-6-sol`, `gpt-6-luna` (alias: `luna`), `gpt-5.6-sol` (alias: `gpt-5.6`), `gpt-5.6-terra`, `gpt-5.6-luna`
|
|
259
260
|
- Anthropic: `claude-opus-5.5` (aliases: `opus`, `claude`; Copilot Pro+/Max/Business/Enterprise), `claude-fable-5.1` (alias: `fable`), `claude-fable-5`, `claude-sonnet-5.5` (alias: `sonnet`), `claude-haiku-5.5` (alias: `haiku`), `claude-sonnet-5`, `claude-opus-5`, `claude-opus-4.8`
|
|
260
|
-
- Google: `gemini-
|
|
261
|
+
- Google: `gemini-4-argon` (aliases: `gemini`, `argon`, `gemini-4`), `gemini-3.8-flash` (alias: `gemini-flash`)
|
|
261
262
|
- **Reasoning**: The GPT-6 and GPT-5.6 tiers accept `reasoning_effort` (clamped onto Copilot's `low`–`xhigh`).
|
|
262
263
|
- **Unknown IDs**: Any other `copilot:<id>` is rejected with suggestions; only the IDs and aliases above are accepted.
|
|
263
264
|
|
|
@@ -297,10 +298,10 @@ Each provider has a `<PROVIDER>_DEFAULT_MODEL` variable that sets the model used
|
|
|
297
298
|
```bash
|
|
298
299
|
CODEX_DEFAULT_MODEL=gpt-6-astra # CODEX_MODEL is honored as a legacy fallback
|
|
299
300
|
CLAUDE_DEFAULT_MODEL=claude-opus-5-5
|
|
300
|
-
AGY_DEFAULT_MODEL=gemini-
|
|
301
|
+
AGY_DEFAULT_MODEL=gemini-4-argon # Antigravity CLI (gemini)
|
|
301
302
|
COPILOT_DEFAULT_MODEL=gpt-6.1-sol # COPILOT_MODEL is honored as a legacy fallback
|
|
302
303
|
OPENAI_DEFAULT_MODEL=gpt-6.1-sol
|
|
303
|
-
GOOGLE_DEFAULT_MODEL=gemini-
|
|
304
|
+
GOOGLE_DEFAULT_MODEL=gemini-4-argon
|
|
304
305
|
XAI_DEFAULT_MODEL=grok-4.5
|
|
305
306
|
ANTHROPIC_DEFAULT_MODEL=claude-opus-5-5
|
|
306
307
|
MISTRAL_DEFAULT_MODEL=mistral-medium-3-5
|
|
@@ -408,7 +409,7 @@ Examples:
|
|
|
408
409
|
"sonnet" // Claude Agent SDK (claude-sonnet-5-5), else Anthropic API
|
|
409
410
|
"claude" // Claude Agent SDK (defaults to Claude Opus 5.5)
|
|
410
411
|
"claude:fable" // Claude Agent SDK (Claude Fable 5.1)
|
|
411
|
-
"pro" // Antigravity CLI (gemini-
|
|
412
|
+
"pro" // Antigravity CLI (gemini-4-argon), else Google API
|
|
412
413
|
"google:pro" // Google API only
|
|
413
414
|
"gemini-2.5-pro" // Google API
|
|
414
415
|
"grok-4.5" // X.AI
|
package/package.json
CHANGED
package/src/providers/copilot.js
CHANGED
|
@@ -211,29 +211,28 @@ const SUPPORTED_MODELS = {
|
|
|
211
211
|
},
|
|
212
212
|
|
|
213
213
|
// Google models
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
friendlyName: 'Gemini 3.1 Pro Preview (via Copilot)',
|
|
214
|
+
'gemini-4-argon': {
|
|
215
|
+
modelName: 'gemini-4-argon',
|
|
216
|
+
friendlyName: 'Gemini 4 Argon (via Copilot)',
|
|
218
217
|
contextWindow: 1048576,
|
|
219
218
|
maxOutputTokens: 65536,
|
|
220
219
|
supportsStreaming: true,
|
|
221
220
|
supportsImages: false,
|
|
222
221
|
supportsWebSearch: false,
|
|
223
222
|
timeout: 1800000,
|
|
224
|
-
description: 'Google Gemini
|
|
225
|
-
aliases: ['gemini', 'gemini-
|
|
223
|
+
description: 'Google Gemini 4 Argon via Copilot subscription',
|
|
224
|
+
aliases: ['gemini', 'argon', 'gemini-4'],
|
|
226
225
|
},
|
|
227
|
-
'gemini-3.
|
|
228
|
-
modelName: 'gemini-3.
|
|
229
|
-
friendlyName: 'Gemini 3.
|
|
226
|
+
'gemini-3.8-flash': {
|
|
227
|
+
modelName: 'gemini-3.8-flash',
|
|
228
|
+
friendlyName: 'Gemini 3.8 Flash (via Copilot)',
|
|
230
229
|
contextWindow: 1048576,
|
|
231
230
|
maxOutputTokens: 65536,
|
|
232
231
|
supportsStreaming: true,
|
|
233
232
|
supportsImages: false,
|
|
234
233
|
supportsWebSearch: false,
|
|
235
234
|
timeout: 1800000,
|
|
236
|
-
description: 'Google Gemini 3.
|
|
235
|
+
description: 'Google Gemini 3.8 Flash via Copilot subscription',
|
|
237
236
|
aliases: ['gemini-flash'],
|
|
238
237
|
},
|
|
239
238
|
};
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* establishes workspace trust for the user's home directory.
|
|
20
20
|
*
|
|
21
21
|
* The provider registry key remains 'gemini-cli'; its namespaces are `gemini:`
|
|
22
|
-
* and `agy:`.
|
|
23
|
-
*
|
|
24
|
-
* offers.
|
|
22
|
+
* and `agy:`. Gemini 4 Argon is the default; Antigravity serves it only on
|
|
23
|
+
* Google AI Ultra plans, so other plans select `gemini:flash` (or set
|
|
24
|
+
* AGY_DEFAULT_MODEL). Antigravity no longer offers Gemini 3.1 Pro.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
import { existsSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';
|
|
@@ -60,6 +60,33 @@ const PTY_COLS = 1000;
|
|
|
60
60
|
* channel).
|
|
61
61
|
*/
|
|
62
62
|
const SUPPORTED_MODELS = {
|
|
63
|
+
'gemini-4-argon': {
|
|
64
|
+
modelName: 'gemini-4-argon',
|
|
65
|
+
friendlyName: 'Gemini 4 Argon (via Antigravity CLI)',
|
|
66
|
+
contextWindow: 1048576,
|
|
67
|
+
maxOutputTokens: 65536,
|
|
68
|
+
supportsStreaming: true,
|
|
69
|
+
supportsImages: false,
|
|
70
|
+
supportsWebSearch: false,
|
|
71
|
+
supportsThinking: true,
|
|
72
|
+
timeout: DEFAULT_TIMEOUT_MS,
|
|
73
|
+
description:
|
|
74
|
+
'Gemini 4 Argon via Antigravity CLI (agy, default) - requires Antigravity Google OAuth login on a Google AI Ultra plan',
|
|
75
|
+
aliases: [
|
|
76
|
+
'argon',
|
|
77
|
+
'gemini-argon',
|
|
78
|
+
'gemini argon',
|
|
79
|
+
'gemini-4',
|
|
80
|
+
'gemini4',
|
|
81
|
+
'gemini 4 argon',
|
|
82
|
+
'4-argon',
|
|
83
|
+
'pro',
|
|
84
|
+
'gemini-pro',
|
|
85
|
+
'gemini pro',
|
|
86
|
+
],
|
|
87
|
+
// agy display-name base; reasoning_effort selects the parenthesized variant
|
|
88
|
+
agyModelBase: 'Gemini 4 Argon',
|
|
89
|
+
},
|
|
63
90
|
'gemini-3.8-flash': {
|
|
64
91
|
modelName: 'gemini-3.8-flash',
|
|
65
92
|
friendlyName: 'Gemini 3.8 Flash (via Antigravity CLI)',
|
|
@@ -71,7 +98,7 @@ const SUPPORTED_MODELS = {
|
|
|
71
98
|
supportsThinking: true,
|
|
72
99
|
timeout: DEFAULT_TIMEOUT_MS,
|
|
73
100
|
description:
|
|
74
|
-
'Gemini 3.8 Flash via Antigravity CLI (agy
|
|
101
|
+
'Gemini 3.8 Flash via Antigravity CLI (agy) - requires Antigravity Google OAuth login',
|
|
75
102
|
aliases: [
|
|
76
103
|
'flash',
|
|
77
104
|
'gemini-3.8',
|
|
@@ -83,40 +110,11 @@ const SUPPORTED_MODELS = {
|
|
|
83
110
|
'gemini flash 3.8',
|
|
84
111
|
'3.8-flash',
|
|
85
112
|
],
|
|
86
|
-
// agy display-name base; reasoning_effort selects the parenthesized variant
|
|
87
113
|
agyModelBase: 'Gemini 3.8 Flash',
|
|
88
114
|
},
|
|
89
|
-
'gemini-3.1-pro-preview': {
|
|
90
|
-
modelName: 'gemini-3.1-pro-preview',
|
|
91
|
-
friendlyName: 'Gemini 3.1 Pro (via Antigravity CLI)',
|
|
92
|
-
contextWindow: 1048576,
|
|
93
|
-
maxOutputTokens: 65536,
|
|
94
|
-
supportsStreaming: true,
|
|
95
|
-
supportsImages: false,
|
|
96
|
-
supportsWebSearch: false,
|
|
97
|
-
supportsThinking: true,
|
|
98
|
-
timeout: DEFAULT_TIMEOUT_MS,
|
|
99
|
-
description:
|
|
100
|
-
'Gemini 3.1 Pro via Antigravity CLI (agy) - requires Antigravity Google OAuth login',
|
|
101
|
-
aliases: [
|
|
102
|
-
'pro',
|
|
103
|
-
'gemini-pro',
|
|
104
|
-
'gemini pro',
|
|
105
|
-
'gemini-3.1-pro',
|
|
106
|
-
'gemini-3.1',
|
|
107
|
-
'gemini3.1',
|
|
108
|
-
'3.1-pro',
|
|
109
|
-
'gemini-3',
|
|
110
|
-
'gemini3',
|
|
111
|
-
'gemini-3-pro',
|
|
112
|
-
'gemini-3-pro-preview',
|
|
113
|
-
'3-pro',
|
|
114
|
-
],
|
|
115
|
-
agyModelBase: 'Gemini 3.1 Pro',
|
|
116
|
-
},
|
|
117
115
|
};
|
|
118
116
|
|
|
119
|
-
const DEFAULT_MODEL = 'gemini-
|
|
117
|
+
const DEFAULT_MODEL = 'gemini-4-argon';
|
|
120
118
|
|
|
121
119
|
/**
|
|
122
120
|
* Custom error class for Gemini CLI (agy) provider errors
|
|
@@ -187,24 +185,21 @@ export function findAgyBinary() {
|
|
|
187
185
|
return _cachedAgyPath;
|
|
188
186
|
}
|
|
189
187
|
|
|
190
|
-
// agy variant tiers
|
|
191
|
-
// Medium
|
|
192
|
-
const
|
|
193
|
-
const PRO_EFFORT_TIERS = ['low', 'high'];
|
|
188
|
+
// agy variant tiers shared by every catalog model: each is listed as
|
|
189
|
+
// '<base> (Low)', '(Medium)' and '(High)'.
|
|
190
|
+
const EFFORT_TIERS = ['low', 'medium', 'high'];
|
|
194
191
|
|
|
195
192
|
/**
|
|
196
193
|
* Map a reasoning_effort value to the agy parenthesized variant suffix.
|
|
197
194
|
* Unset effort selects High, agy's own default.
|
|
198
|
-
* @param {string} base - agy model base ('Gemini 3.8 Flash' / 'Gemini 3.1 Pro')
|
|
199
195
|
* @param {string} [reasoningEffort]
|
|
200
196
|
* @returns {string} e.g. '(Low)', '(Medium)', '(High)'
|
|
201
197
|
*/
|
|
202
|
-
function effortSuffix(
|
|
198
|
+
function effortSuffix(reasoningEffort) {
|
|
203
199
|
if (!reasoningEffort) {
|
|
204
200
|
return '(High)';
|
|
205
201
|
}
|
|
206
|
-
const
|
|
207
|
-
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(), tiers);
|
|
202
|
+
const tier = clampReasoningEffort(reasoningEffort.toLowerCase(), EFFORT_TIERS);
|
|
208
203
|
return `(${tier[0].toUpperCase()}${tier.slice(1)})`;
|
|
209
204
|
}
|
|
210
205
|
|
|
@@ -226,8 +221,7 @@ export function resolveAgyModel(model, reasoningEffort) {
|
|
|
226
221
|
ErrorCodes.MODEL_NOT_FOUND,
|
|
227
222
|
);
|
|
228
223
|
}
|
|
229
|
-
|
|
230
|
-
return `${base} ${effortSuffix(base, reasoningEffort)}`;
|
|
224
|
+
return `${entry.agyModelBase} ${effortSuffix(reasoningEffort)}`;
|
|
231
225
|
}
|
|
232
226
|
|
|
233
227
|
/**
|
|
@@ -662,6 +656,14 @@ async function executeAgy(messages, options) {
|
|
|
662
656
|
const cleaned = cleanAgyOutput(output);
|
|
663
657
|
|
|
664
658
|
if (exitCode !== 0) {
|
|
659
|
+
// agy's model list is per-plan (Gemini 4 Argon is Ultra-only), so a
|
|
660
|
+
// catalog model can still be missing for the signed-in account.
|
|
661
|
+
if (/not recognized as a known model/i.test(cleaned)) {
|
|
662
|
+
throw new GeminiCliProviderError(
|
|
663
|
+
`Antigravity CLI (agy) does not offer "${agyModel}" to the signed-in account (Gemini 4 Argon requires a Google AI Ultra plan). Use gemini:flash, or set AGY_DEFAULT_MODEL to change the default. agy output: ${cleaned.slice(0, 800)}`,
|
|
664
|
+
ErrorCodes.MODEL_NOT_FOUND,
|
|
665
|
+
);
|
|
666
|
+
}
|
|
665
667
|
const tail = cleaned.slice(-500);
|
|
666
668
|
throw new GeminiCliProviderError(
|
|
667
669
|
`Antigravity CLI (agy) exited with code ${exitCode}. ${tail ? `Output tail: ${tail}` : 'No output.'} If this persists, run \`agy\` interactively once to authenticate (Antigravity Google OAuth).`,
|
package/src/providers/google.js
CHANGED
|
@@ -98,6 +98,30 @@ const SUPPORTED_MODELS = {
|
|
|
98
98
|
'gemini3.1',
|
|
99
99
|
'gemini-3.1-pro',
|
|
100
100
|
'3.1-pro',
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
'gemini-4-argon': {
|
|
104
|
+
modelName: 'gemini-4-argon',
|
|
105
|
+
friendlyName: 'Gemini (4 Argon)',
|
|
106
|
+
contextWindow: 1048576, // 1M tokens
|
|
107
|
+
maxOutputTokens: 65536,
|
|
108
|
+
supportsStreaming: true,
|
|
109
|
+
supportsImages: true,
|
|
110
|
+
supportsThinking: true,
|
|
111
|
+
supportsWebSearch: true,
|
|
112
|
+
thinkingMode: 'level',
|
|
113
|
+
thinkingLevels: ['low', 'medium', 'high'],
|
|
114
|
+
timeout: 900000,
|
|
115
|
+
description:
|
|
116
|
+
'Gemini 4 Argon - Flagship reasoning model for complex software engineering and agentic work (1M context)',
|
|
117
|
+
aliases: [
|
|
118
|
+
'argon',
|
|
119
|
+
'gemini-argon',
|
|
120
|
+
'gemini argon',
|
|
121
|
+
'gemini-4',
|
|
122
|
+
'gemini4',
|
|
123
|
+
'gemini 4 argon',
|
|
124
|
+
'4-argon',
|
|
101
125
|
'gemini pro',
|
|
102
126
|
'gemini-pro',
|
|
103
127
|
'pro',
|
|
@@ -434,7 +458,7 @@ async function retryWithBackoff(fn, maxRetries = 4) {
|
|
|
434
458
|
/**
|
|
435
459
|
* Main Google provider implementation
|
|
436
460
|
*/
|
|
437
|
-
const DEFAULT_MODEL = 'gemini-
|
|
461
|
+
const DEFAULT_MODEL = 'gemini-4-argon';
|
|
438
462
|
|
|
439
463
|
export const googleProvider = {
|
|
440
464
|
defaultModel: DEFAULT_MODEL,
|