diff --git a/packages/shared/src/app-definitions/anthropic.json b/packages/shared/src/app-definitions/anthropic.json index 52eb85f3600..6c7cd96eefb 100644 --- a/packages/shared/src/app-definitions/anthropic.json +++ b/packages/shared/src/app-definitions/anthropic.json @@ -1,8 +1,8 @@ { "schemaVersion": 1, "slug": "anthropic", - "name": "Anthropic", - "description": "Use Anthropic APIs with a restricted key.", + "name": "Anthropic (Claude)", + "description": "Connect to Claude with Anthropic.", "categories": [ "ai" ], diff --git a/scripts/ingest-app-definitions.mjs b/scripts/ingest-app-definitions.mjs index 2529060fadb..05d997338f1 100644 --- a/scripts/ingest-app-definitions.mjs +++ b/scripts/ingest-app-definitions.mjs @@ -926,8 +926,8 @@ const apps = [ ], [ "anthropic", - "Anthropic", - "Use Anthropic APIs with a restricted key.", + "Anthropic (Claude)", + "Connect to Claude with Anthropic.", "ai", "anthropic.com", ["https://api.anthropic.com/*"], diff --git a/tests/ai-connections-app/app.spec.ts b/tests/ai-connections-app/app.spec.ts index 0acea3c9752..a9ad160b434 100644 --- a/tests/ai-connections-app/app.spec.ts +++ b/tests/ai-connections-app/app.spec.ts @@ -13,8 +13,9 @@ test.beforeAll(async ({ request }) => { test("existing Connections lists AI providers and keeps account management compact", async ({ page, request }, testInfo) => { await page.goto(`/${prefix}/apps`); - for (const provider of ["Anthropic", "OpenAI", "OpenRouter", "Grok"]) { - await expect(page.getByRole("button", { name: new RegExp(`^(Add account|Connect) ${provider}$`) })).toBeVisible(); + for (const provider of ["Anthropic (Claude)", "OpenAI", "OpenRouter", "Grok"]) { + const escaped = provider.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + await expect(page.getByRole("button", { name: new RegExp(`^(Add account|Connect) ${escaped}$`) })).toBeVisible(); } const { connections } = await (await request.get(`/api/companies/${companyId}/ai-connections`)).json(); const account = connections.find((entry: { ownership: string; isDefault: boolean }) => entry.ownership === "personal" && entry.isDefault); diff --git a/tests/runner-e2e/source-sdk-public-inputs.json b/tests/runner-e2e/source-sdk-public-inputs.json index aefc53d7242..7017340875f 100644 --- a/tests/runner-e2e/source-sdk-public-inputs.json +++ b/tests/runner-e2e/source-sdk-public-inputs.json @@ -82,7 +82,7 @@ "packages/shared/src/app-definitions/1password.json": "c11a4777de2c78805b2d391da5eb075a9511e0f8", "packages/shared/src/app-definitions/agentmail.json": "edd0799b1980d0f5f43b89c8f7a1173dc623f7fa", "packages/shared/src/app-definitions/airtable.json": "c9b216a2bbe693bc6167413255d41c33512d418d", - "packages/shared/src/app-definitions/anthropic.json": "52eb85f36005f031cf83e2f92e4e53cec9966d50", + "packages/shared/src/app-definitions/anthropic.json": "6c7cd96eefb4db6dca244fcddeb1c4a585a2af14", "packages/shared/src/app-definitions/api-key-generic.json": "09e6d4295513ac9f1002eaf37c34e7c2d00a3c05", "packages/shared/src/app-definitions/arcade.json": "c8379450055d4ea226d229b1cbf99c7ed2e52beb", "packages/shared/src/app-definitions/asana.json": "4cc2859043a30037fd5cdc3ebd0909938b9344a8", diff --git a/ui/src/pages/apps/Browse.test.tsx b/ui/src/pages/apps/Browse.test.tsx index 1c6d21308e6..800140377fd 100644 --- a/ui/src/pages/apps/Browse.test.tsx +++ b/ui/src/pages/apps/Browse.test.tsx @@ -320,6 +320,18 @@ describe("Connectors landing page", () => { expect(container.textContent).not.toContain("No connectors match"); }); + it("finds the Anthropic connector when people search for Claude", async () => { + listGalleryMock.mockResolvedValue({ apps: ["anthropic", "openai"].map(slug => getAppStoreDefinition(slug)) }); + await renderBrowse(false); + await search("claude"); + const anthropic = container.querySelector('[data-app-slug="anthropic"]'); + expect(anthropic?.textContent).toContain("Anthropic (Claude)"); + expect(anthropic?.textContent).toContain("Connect to Claude with Anthropic."); + expect(anthropic?.textContent).not.toContain("restricted key"); + expect(container.querySelector('[aria-label="Connect Anthropic (Claude)"]')).not.toBeNull(); + expect(container.querySelector('[data-app-slug="openai"]')).toBeNull(); + }); + it("does not advertise Tailscale setup or request tailnets for non-instance-admin members", async () => { boardAccessMock.mockResolvedValue({ source: "session", isInstanceAdmin: false }); await renderBrowse(false);