diff --git a/CHANGELOG.md b/CHANGELOG.md index 2499c6c62b2e..88471b5b6d6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### ✨ New Features +- **feat(models):** add `claude-sonnet-5` to the Antigravity model catalog (alias mapping in `antigravityModelAliases.ts`). Regression guard: `tests/unit/antigravity-model-aliases.test.ts`. (thanks @anki1kr) - **feat(api):** add `/v1/ocr` endpoint (Mistral OCR), an OCR provider category, and Mistral moderation support. (thanks @waguriagentic) - **Discovery tool (Phase 2):** add the `discoveryResults` DB module (CRUD over the `discovery_results` table, migration 074) and wire the opt-in provider-discovery service to persist and read findings through it (`persistDiscoveryResult`, `getDiscoveryResults`, `getDiscoveryResultById`, `markVerified`, `deleteDiscoveryResult`) with `(provider, method, endpoint)` upsert de-duplication. Adds the `/api/discovery/*` HTTP surface — `GET /results`, `GET|DELETE /results/:id`, `POST /scan`, `POST /verify/:id` — under **strict loopback-only** authorization (`/api/discovery/` is in `LOCAL_ONLY_API_PREFIXES` and is NOT manage-scope-bypassable, so the `scan` route's outbound probes can never be reached from a tunnel/remote origin). Adds a **dashboard UI tab** (Tools → Discovery, `/dashboard/discovery`) to run scans and review, verify, or delete findings. The service stays **opt-in / default-off**. - **feat(api):** expose a read-only provider plugin manifest at `GET /api/v1/provider-plugin-manifest` for sidecar/relay discovery. (thanks @KooshaPari) diff --git a/open-sse/config/antigravityModelAliases.ts b/open-sse/config/antigravityModelAliases.ts index 69f8e289cc9c..a88ab804c020 100644 --- a/open-sse/config/antigravityModelAliases.ts +++ b/open-sse/config/antigravityModelAliases.ts @@ -4,6 +4,15 @@ export const ANTIGRAVITY_PUBLIC_MODELS = Object.freeze([ // are user-callable through the `antigravity` OAuth provider too — same backend. // `antigravity/claude-opus-4-6-thinking` and `antigravity/claude-sonnet-4-6` both work. // They are upstream IDs, so no alias remapping is required. + { + id: "claude-sonnet-5", + name: "Claude Sonnet 5 (Thinking)", + contextLength: 200000, + maxOutputTokens: 65536, + supportsReasoning: true, + supportsVision: true, + toolCalling: true, + }, { id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 (Thinking)", diff --git a/tests/unit/antigravity-model-aliases.test.ts b/tests/unit/antigravity-model-aliases.test.ts index e79fdc38d678..718250c8ecf2 100644 --- a/tests/unit/antigravity-model-aliases.test.ts +++ b/tests/unit/antigravity-model-aliases.test.ts @@ -85,6 +85,7 @@ test("isUserCallableAntigravityModelId only allows public chat-capable model IDs // 2.0 was wrong. assert.equal(isUserCallableAntigravityModelId("claude-opus-4-6-thinking"), true); assert.equal(isUserCallableAntigravityModelId("claude-sonnet-4-6"), true); + assert.equal(isUserCallableAntigravityModelId("claude-sonnet-5"), true); // Antigravity 2.0.4 exposes Gemini 3.5 Flash as separate UI tiers. assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-high"), true); assert.equal(isUserCallableAntigravityModelId("gemini-3.1-pro-low"), true); @@ -108,6 +109,16 @@ test("ANTIGRAVITY_PUBLIC_MODELS exposes captured Antigravity 2.0.1 names and cap toolCalling: true, }); assert.equal(getPublicModel("claude-sonnet-4-6").name, "Claude Sonnet 4.6 (Thinking)"); + // claude-sonnet-5 was added to the Antigravity catalog alongside the existing Claude entries. + assert.deepEqual(getPublicModel("claude-sonnet-5"), { + id: "claude-sonnet-5", + name: "Claude Sonnet 5 (Thinking)", + contextLength: 200000, + maxOutputTokens: 65536, + supportsReasoning: true, + supportsVision: true, + toolCalling: true, + }); assert.deepEqual(getPublicModel("gemini-3.5-flash-high"), { id: "gemini-3.5-flash-high", name: "Gemini 3.5 Flash (High)",