fix(apps): key Antigravity connector to antigravity with Antigravity branding and logo (#23012)

## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - The Connectors catalog and `/apps/connect` setup page let people
connect AI model providers for their agents
> - The Antigravity model-provider connector still used the `google`
slug, the generic Google "G" icon, and "Google" headings and sign-in
copy on `/apps/connect?source=google`
> - Showing "Google" with the generic Google icon on the Antigravity
connection flow makes it easy to confuse with Google Workspace
connectors and hides the Antigravity product identity
> - This pull request moves the catalog slug to `antigravity`, adds the
official Antigravity vector logo, redirects legacy `source=google` and
`source=google-ai` links to `source=antigravity`, and updates the
Connect page copy and icons to Antigravity while preserving the
underlying `google` AI provider storage contract
> - The benefit is that people see clear Antigravity branding, logo, and
URL routing throughout the Antigravity connection flow without breaking
saved accounts or existing links

## Linked Issues or Issue Description

**What existing behavior does this improve?**
Connector routing, branding, and logo presentation for Antigravity on
the Connectors catalog and `/apps/connect` setup page.

**Subsystem affected**
Shared app definitions (`packages/shared`), app brand assets
(`ui/public/brands/apps`), and UI connection setup pages and components
(`ui/src/pages/apps`, `ui/src/components`).

**Current behavior**
The Antigravity model-provider connector uses `?source=google`, displays
the generic Google logo, and shows "Connect Google", "Google", and "Sign
in to Google" on the Connect page.

**Proposed behavior**
The Antigravity connector keys to `?source=antigravity`, displays the
Antigravity logo, and shows "Connect Antigravity", "Antigravity", and
"Sign in to Antigravity" on the Connect page. Legacy links using
`?source=google` or `?source=google-ai` redirect to
`?source=antigravity` while preserving other query parameters.

**Reason and benefit**
This matches the existing `github` -> `github-copilot` catalog
separation pattern: stored `google` AI connections and Gemini API key
compatibility remain unchanged, while the user-facing catalog entry, URL
key, logo, and Connect page copy consistently reflect Antigravity.

**Breaking changes**
None. The underlying `google` AI provider identifier, credential
storage, and grants do not change, and legacy `source=google` /
`source=google-ai` deep links redirect automatically to
`source=antigravity`.

## What Changed

- Added the official transparent Antigravity vector mark at
`ui/public/brands/apps/antigravity.svg` and registered `antigravity` in
`ui/public/brands/apps/manifest.json` (keeping `google` with
`catalogVisible: false` for Google Workspace branding).
- Mapped `aiConnectionCatalogSlug("google")` to `"antigravity"` and
updated `aiProviderSetupPreset` so `antigravity`, `google`, and
`google-ai` all resolve to `{ provider: "google", label: "Antigravity"
}`.
- Replaced `packages/shared/src/app-definitions/google.json` with
`packages/shared/src/app-definitions/antigravity.json`, added
`scripts/app-definition-overrides/antigravity.json`, updated
`scripts/ingest-app-definitions.mjs`,
`packages/shared/src/app-definitions.ts`, and
`packages/shared/src/app-definitions.generated.ts`, and resynced
`tests/runner-e2e/source-sdk-public-inputs.json`.
- Updated `ui/src/pages/apps/app-connect-policy.ts` and
`ui/src/pages/apps/AppsConnect.tsx` to admit and redirect legacy
`source=google` and `source=google-ai` links to `source=antigravity`
while preserving query parameters.
- Updated `AdapterMark`, `AiProviderSetup`, `AgentProviderConnection`,
`AdapterLoginChrome`, `AiConnectionCredentialStep`, `AiConnectionField`,
`ai-connections/model.ts`, and
`ui/storybook/prototypes/AiConnectorPages.tsx` to show Antigravity
branding and `/brands/apps/antigravity.svg`.
- Updated existing unit tests and added
`ui/src/pages/apps/AppsConnect.test.tsx` covering legacy URL redirects
and Antigravity Connect page rendering.

## Verification

- `pnpm --filter @paperclipai/shared build` — passed.
- `node scripts/check-app-brand-assets.mjs` — passed (`Validated 114
brand identities`).
- `pnpm exec vitest run packages/shared/src/` — 120 test files passed.
- `pnpm exec vitest run ui/src/` — 575 test files (7,178 tests) passed;
`pnpm exec vitest run ui/src/pages/apps/AppsConnect.test.tsx` — 3/3
passed.
- `pnpm --filter @paperclipai/server exec vitest run
src/__tests__/ai-connections.test.ts
src/__tests__/connection-intents-service.test.ts` — 208/208 passed.
- `pnpm --filter @paperclipai/shared typecheck && pnpm --filter
@paperclipai/ui typecheck && pnpm --filter @paperclipai/server
typecheck` — passed.
- `node --test scripts/app-definition-overrides.test.mjs
scripts/app-brand-validation.test.mjs scripts/check-test-budget.test.mjs
scripts/storybook-catalog.test.mjs` — passed.
- `node tests/runner-e2e/source-sdk-public-inputs.mjs $(git rev-parse
HEAD) --check` — passed (`changed: false`).

## Risks

- Low risk. The stored AI provider enum (`google`) and database/API
contracts stay unchanged; `aiConnectionSourceSlug` maps previously
stored `google` connections to the `antigravity` catalog entry
automatically.
- Legacy bookmarks or deep links to `/apps/connect?source=google` or
`?source=google-ai` redirect immediately to `?source=antigravity` with
existing query parameters preserved.

## Model Used

- Google Gemini (Antigravity agent with tool use and code execution).

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-11-26 02:25:12 +00:00
1 parent 5ea8c99717
commit 6fab9e8659
25 files changed
+343 -52

No files matched your search

+6 -2
View File
@@ -142,6 +142,7 @@ export function aiConnectionCatalogSlug(provider: string, routing?: Pick<AiProvi
: routing.protocol === "chat" ? "chat-completions-api" : "responses-api";
}
if (!routing && provider === "github") return "github-copilot";
if (!routing && provider === "google") return "antigravity";
return routing?.kind ?? provider;
}
@@ -155,8 +156,11 @@ export function aiProviderSetupPreset(source: string | null): {
case "responses-api": return { provider: "gateway", protocol: "responses", label: "Responses API" };
case "messages-api": return { provider: "gateway", protocol: "messages", label: "Messages API" };
case "chat-completions-api": return { provider: "gateway", protocol: "chat", label: "Chat Completions API" };
case "google-ai": return { provider: "google" };
case "google": case "openrouter": case "bedrock": case "gateway": case "local": return { provider: source };
case "antigravity":
case "google":
case "google-ai":
return { provider: "google", label: "Antigravity" };
case "openrouter": case "bedrock": case "gateway": case "local": return { provider: source };
default: return undefined;
}
}
@@ -97,7 +97,7 @@ import a95 from "./app-definitions/google-workspace-search.json" with { type: "j
import a96 from "./app-definitions/openai.json" with { type: "json" };
import a97 from "./app-definitions/openrouter.json" with { type: "json" };
import a98 from "./app-definitions/xai.json" with { type: "json" };
import a99 from "./app-definitions/google.json" with { type: "json" };
import a99 from "./app-definitions/antigravity.json" with { type: "json" };
import a100 from "./app-definitions/bedrock.json" with { type: "json" };
import a101 from "./app-definitions/responses-api.json" with { type: "json" };
import a102 from "./app-definitions/messages-api.json" with { type: "json" };
+26 -2
View File
@@ -29,7 +29,7 @@ import {
SELF_SERVE_MCP_RESEARCH,
} from "./self-serve-mcp-research.js";
import { aiConnectionRouterAppDefinition } from "./ai-connection-router.js";
import { aiConnectionCatalogSlug } from "./ai-provider-routing.js";
import { aiConnectionCatalogSlug, aiProviderSetupPreset } from "./ai-provider-routing.js";
import { appDefinitionSchema, appDefinitionsSchema } from "./validators/app-definition.js";
const googleScope = (scope: string) =>
@@ -258,7 +258,7 @@ describe("AppDefinition catalog", () => {
it("validates all Wave 1 definitions", () =>
expect(() => appDefinitionsSchema.parse(APP_DEFINITIONS)).not.toThrow());
it("lists model providers as regular tagged catalog entries", () => {
const slugs = ["openai", "anthropic", "openrouter", "xai", "google", "github-copilot", "bedrock", "responses-api", "messages-api", "chat-completions-api", "local"];
const slugs = ["openai", "anthropic", "openrouter", "xai", "antigravity", "github-copilot", "bedrock", "responses-api", "messages-api", "chat-completions-api", "local"];
expect(APP_STORE_DEFINITIONS.filter(app => app.tags?.includes("model-provider")).map(app => app.slug).sort()).toEqual(slugs.sort());
for (const slug of slugs) {
const app = APP_STORE_DEFINITIONS.find(app => app.slug === slug)!;
@@ -349,6 +349,30 @@ describe("AppDefinition catalog", () => {
expect(github.description).not.toContain("Copilot");
expect(aiConnectionCatalogSlug("github")).toBe("github-copilot");
});
it("keys the Antigravity model-provider connector under antigravity with its own logo while preserving google provider storage", () => {
const antigravity = getAppStoreDefinition("antigravity")!;
expect(antigravity).toBeTruthy();
expect(getAppStoreDefinition("google")).toBeNull();
expect(antigravity.name).toBe("Antigravity");
expect(antigravity.categories).toEqual(["ai"]);
expect(antigravity.branding.logoUrl).toBe("/brands/apps/antigravity.svg");
expect(antigravity.methods.map((method) => method.key)).toEqual(["ai-subscription", "ai-api_key"]);
expect(antigravity.methods[0]).toMatchObject({
purpose: "ai",
transport: "runtime_auth",
ai: { provider: "google", method: "subscription" },
});
expect(antigravity.methods[1]).toMatchObject({
purpose: "ai",
transport: "runtime_auth",
ai: { provider: "google", method: "api_key" },
keyPlacement: { location: "env", name: "GEMINI_API_KEY" },
});
expect(aiConnectionCatalogSlug("google")).toBe("antigravity");
for (const source of ["antigravity", "google", "google-ai"]) {
expect(aiProviderSetupPreset(source)).toEqual({ provider: "google", label: "Antigravity" });
}
});
it("registers the five native chat providers with only required setup credentials", () => {
const expected = {
slack: {
+1 -1
View File
@@ -4,7 +4,7 @@ import type { AppDefinition, ConnectionMethodDef, FieldDef } from "./types/app-d
import type { ToolConnectionOwnership } from "./types/tool-access.js";
export const CONNECTABLE_APP_SLUGS = new Set([
"anthropic", "openai", "openrouter", "xai", "google", "bedrock",
"anthropic", "openai", "openrouter", "xai", "antigravity", "bedrock",
"responses-api", "messages-api", "chat-completions-api", "local",
"agentmail",
"browser-use-cloud",
@@ -1,13 +1,13 @@
{
"schemaVersion": 1,
"slug": "google",
"name": "Google Antigravity and Gemini",
"description": "Connect Google Antigravity accounts or Gemini API keys for your agents.",
"slug": "antigravity",
"name": "Antigravity",
"description": "Connect Antigravity accounts or Gemini API keys for your agents.",
"categories": [
"ai"
],
"branding": {
"logoUrl": "/brands/apps/google.svg"
"logoUrl": "/brands/apps/antigravity.svg"
},
"urlPatterns": [
"https://generativelanguage.googleapis.com/*"
@@ -15,7 +15,7 @@
"methods": [
{
"key": "ai-subscription",
"label": "Google Antigravity sign-in",
"label": "Antigravity sign-in",
"purpose": "ai",
"transport": "runtime_auth",
"auth": "oauth",
@@ -30,13 +30,13 @@
"ownershipModes": [
"customer"
],
"whenToUse": "Sign in to Google Antigravity on this local execution host.",
"guidanceMd": "Uses a separate Google runtime sign-in for this connection. Google Drive and other tool permissions are separate.",
"whenToUse": "Sign in to Antigravity for your agents.",
"guidanceMd": "Uses a separate Antigravity runtime sign-in for this connection. Google Drive and other tool permissions are separate.",
"riskTier": "S3"
},
{
"key": "ai-api_key",
"label": "Google Gemini API key",
"label": "Gemini API key",
"purpose": "ai",
"transport": "runtime_auth",
"auth": "api_key",
@@ -0,0 +1,73 @@
{
"schemaVersion": 1,
"slug": "antigravity",
"name": "Antigravity",
"description": "Connect Antigravity accounts or Gemini API keys for your agents.",
"categories": [
"ai"
],
"urlPatterns": [
"https://generativelanguage.googleapis.com/*"
],
"methods": [
{
"key": "ai-subscription",
"label": "Antigravity sign-in",
"purpose": "ai",
"transport": "runtime_auth",
"auth": "oauth",
"ai": {
"provider": "google",
"method": "subscription"
},
"grantKinds": [
"user",
"organization"
],
"ownershipModes": [
"customer"
],
"whenToUse": "Sign in to Antigravity for your agents.",
"guidanceMd": "Uses a separate Antigravity runtime sign-in for this connection. Google Drive and other tool permissions are separate.",
"riskTier": "S3"
},
{
"key": "ai-api_key",
"label": "Gemini API key",
"purpose": "ai",
"transport": "runtime_auth",
"auth": "api_key",
"ai": {
"provider": "google",
"method": "api_key"
},
"grantKinds": [
"user",
"organization"
],
"ownershipModes": [
"customer"
],
"whenToUse": "Authenticate an agent with this account.",
"guidanceMd": "Use your personal account or an explicitly shared company account.",
"riskTier": "S3",
"credentialFields": [
{
"key": "apiKey",
"label": "API key",
"type": "password",
"required": true,
"placeholder": "Enter API key",
"secret": true
}
],
"keyPlacement": {
"location": "env",
"name": "GEMINI_API_KEY"
}
}
],
"tags": [
"model-provider"
]
}
-1
View File
@@ -2025,7 +2025,6 @@ const aiCatalogEntries = [
{ slug: "openai", name: "OpenAI", provider: "openai", subscription: true, envKey: "OPENAI_API_KEY", url: "https://api.openai.com/*" },
{ slug: "openrouter", name: "OpenRouter", provider: "openrouter", envKey: "OPENROUTER_API_KEY", url: "https://openrouter.ai/api/*" },
{ slug: "xai", name: "Grok", provider: "xai", subscription: true, envKey: "XAI_API_KEY", url: "https://api.x.ai/*" },
{ slug: "google", name: "Google Gemini", provider: "google", envKey: "GEMINI_API_KEY", url: "https://generativelanguage.googleapis.com/*" },
{ slug: "bedrock", name: "Amazon Bedrock", provider: "anthropic", envKey: "AWS_BEARER_TOKEN_BEDROCK", description: "Use Claude through Amazon Bedrock with a Bedrock API key and AWS region." },
{ slug: "responses-api", name: "Responses API", provider: "openai", envKey: "OPENAI_API_KEY", description: "Connect any compatible harness to an OpenAI Responses-compatible provider or gateway, including Emissary." },
{ slug: "messages-api", name: "Messages API", provider: "anthropic", envKey: "ANTHROPIC_API_KEY", description: "Connect any compatible harness to an Anthropic Messages-compatible provider or gateway." },
@@ -65,7 +65,7 @@
"packages/shared/src/ai-connection-router.ts": "9fbd89c385a4d5827bc68e1c7f6a66e00453d413",
"packages/shared/src/ai-connection-usage.ts": "4b51573ee92f8a2ae0f80dd15288a0e59b4dddc7",
"packages/shared/src/ai-connections.ts": "f4107ef6a07c070b7ad04d64bf16d50135a3950a",
"packages/shared/src/ai-provider-routing.ts": "8149629b707981f0c90118c019eb9c9a88aa435f",
"packages/shared/src/ai-provider-routing.ts": "e1f1fdefc23c76efe425e937852e61fe028cccc1",
"packages/shared/src/analytics-consent.test.ts": "0c69d867d4f108cb57c07b4e71633e058cb7506b",
"packages/shared/src/analytics-consent.ts": "00c4bfbd24ac3a288a68caae52468dfcd26df3e7",
"packages/shared/src/announcements.test.ts": "121ed97b560e0dd271fe6602c97e2415ee4e4bf7",
@@ -76,14 +76,15 @@
"packages/shared/src/antigravity-runtime.test.ts": "f9ebcc9430be51c342b42644b735f1434b405ec7",
"packages/shared/src/api.ts": "1d61cdff51433c4136368d52ee7cf2f16aa820ed",
"packages/shared/src/app-definitions-url.test.ts": "56792d6745a5bc7eafc36e7403f4c9bbd671ae99",
"packages/shared/src/app-definitions.generated.ts": "b162e9621fab029951d77a6b4605ab7893904a3a",
"packages/shared/src/app-definitions.generated.ts": "e15939b08ef267165456fb01bfd8df05d0d245e7",
"packages/shared/src/app-definitions.ingestion-report.json": "a7b60c7c16a484a411989315e9f08d48258fa647",
"packages/shared/src/app-definitions.test.ts": "591727cee240c7b1f9a2e2c726d8656d539129e2",
"packages/shared/src/app-definitions.ts": "f8c9c3aa66ea3bbe38c3a2eff7abca9a25911c83",
"packages/shared/src/app-definitions.test.ts": "7a4dfd29b443fed3f9677b2e853d1c04be332f76",
"packages/shared/src/app-definitions.ts": "8f54fb0e497bff04885d43fcb54e97def98ec4f3",
"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": "6c7cd96eefb4db6dca244fcddeb1c4a585a2af14",
"packages/shared/src/app-definitions/antigravity.json": "1e9949df7a878a7b124cb5e2831fb04ee3f4ca52",
"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": "42d051d84a576509d75a73fe49b23443d34759f8",
@@ -131,7 +132,6 @@
"packages/shared/src/app-definitions/google-slides.json": "289366009d46be6b770eee6cd0bc650eb59a240c",
"packages/shared/src/app-definitions/google-workspace-search.json": "f3ec9d00ed0116b7cb8b9b1b71353cb8d6dc8cf4",
"packages/shared/src/app-definitions/google-workspace.json": "7a4acb34fb2ab5106860e910de50573070cbed2b",
"packages/shared/src/app-definitions/google.json": "f0bab0467612f915c88137eddbac0b320ac1aa2a",
"packages/shared/src/app-definitions/gsc-wizard.json": "a4ba6f183d5f35a25d0a420ade18f00d3fb64534",
"packages/shared/src/app-definitions/honcho.json": "17185eaf5189fc8c443388997c90ebf833bc9327",
"packages/shared/src/app-definitions/hugging-face.json": "6567ad1e62c007da1702fc314736c2d3aa1d4499",
+31
View File
@@ -0,0 +1,31 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 7 100 100" fill="none">
<title>Antigravity</title>
<path d="M89.6992 93.695C94.3659 97.195 101.366 94.8617 94.9492 88.445C75.6992 69.7783 79.7825 18.445 55.8659 18.445C31.9492 18.445 36.0325 69.7783 16.7825 88.445C9.78251 95.445 17.3658 97.195 22.0325 93.695C40.1159 81.445 38.9492 59.8617 55.8659 59.8617C72.7825 59.8617 71.6159 81.445 89.6992 93.695Z" fill="#3186FF"/>
<mask id="ag_fav_m" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="13" y="18" width="85" height="78">
<path d="M89.6992 93.695C94.3659 97.195 101.366 94.8617 94.9492 88.445C75.6992 69.7783 79.7825 18.445 55.8659 18.445C31.9492 18.445 36.0325 69.7783 16.7825 88.445C9.78251 95.445 17.3658 97.195 22.0325 93.695C40.1159 81.445 38.9492 59.8617 55.8659 59.8617C72.7825 59.8617 71.6159 81.445 89.6992 93.695Z" fill="black"/>
</mask>
<g mask="url(#ag_fav_m)">
<g filter="url(#ag_fav_f0)"><ellipse cx="22.7873" cy="26.8098" rx="22.7873" ry="26.8098" transform="matrix(-0.112784 0.99362 -0.99362 -0.112781 66.2473 -15.5344)" fill="#FFE432"/></g>
<g filter="url(#ag_fav_f1)"><ellipse cx="96.491" cy="35.1231" rx="29.5007" ry="30.1492" transform="rotate(76.9243 96.491 35.1231)" fill="#FC413D"/></g>
<g filter="url(#ag_fav_f2)"><ellipse cx="9.02988" cy="41.6647" rx="30.832" ry="39.9417" transform="rotate(74.1257 9.02988 41.6647)" fill="#00B95C"/></g>
<g filter="url(#ag_fav_f3)"><ellipse cx="11.2212" cy="42.8915" rx="30.22" ry="33.2695" transform="rotate(45.6065 11.2212 42.8915)" fill="#00B95C"/></g>
<g filter="url(#ag_fav_f4)"><ellipse cx="75.7546" cy="104.822" rx="29.0177" ry="27.943" transform="rotate(76.9243 75.7546 104.822)" fill="#3186FF"/></g>
<g filter="url(#ag_fav_f5)"><ellipse cx="33.5661" cy="35.4043" rx="33.5661" ry="35.4043" transform="matrix(-0.409539 0.912293 -0.912294 -0.409537 101.25 -15.1674)" fill="#FBBC04"/></g>
<g filter="url(#ag_fav_f6)"><path d="M2.56802 149.695C-15.8116 142.48 15.5987 83.1163 23.4093 63.2203C31.22 43.3244 52.4514 33.0447 70.831 40.26C89.2107 47.4753 110.996 87.2162 103.185 107.112C95.3742 127.008 20.9477 156.91 2.56802 149.695Z" fill="#3186FF"/></g>
<g filter="url(#ag_fav_f7)"><path d="M113.934 75.8079C109.013 81.5509 96.1724 78.6224 85.253 69.2667C74.3335 59.911 69.4704 47.6711 74.391 41.928C79.3116 36.185 92.1525 39.1136 103.072 48.4692C113.991 57.8249 118.855 70.0648 113.934 75.8079Z" fill="#749BFF"/></g>
<g filter="url(#ag_fav_f8)"><ellipse cx="92.611" cy="23.7962" rx="44.2411" ry="27.5016" transform="rotate(34.0763 92.611 23.7962)" fill="#FC413D"/></g>
<g filter="url(#ag_fav_f9)"><ellipse cx="23.4949" cy="29.5887" rx="23.7071" ry="13.7869" transform="rotate(112.516 23.4949 29.5887)" fill="#FFEE48"/></g>
</g>
<defs>
<filter id="ag_fav_f0" x="2.49348" y="-26.5423" width="69.0899" height="61.2525" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="3.89034"/></filter>
<filter id="ag_fav_f1" x="28.7524" y="-32.0333" width="135.477" height="134.313" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="18.8078"/></filter>
<filter id="ag_fav_f2" x="-62.2884" y="-21.9253" width="142.637" height="127.18" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="15.9884"/></filter>
<filter id="ag_fav_f3" x="-52.5697" y="-20.8346" width="127.582" height="127.452" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="15.9884"/></filter>
<filter id="ag_fav_f4" x="17.3619" y="45.4646" width="116.786" height="118.715" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="15.1937"/></filter>
<filter id="ag_fav_f5" x="-7.44765" y="-60.4737" width="125.303" height="122.858" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="13.7698"/></filter>
<filter id="ag_fav_f6" x="-27.7086" y="13.3597" width="157.119" height="162.029" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="12.297"/></filter>
<filter id="ag_fav_f7" x="50.4638" y="16.981" width="87.3973" height="83.7738" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="11.0036"/></filter>
<filter id="ag_fav_f8" x="34.2604" y="-28.457" width="116.701" height="104.506" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="9.29385"/></filter>
<filter id="ag_fav_f9" x="-15.1522" y="-15.9493" width="77.2941" height="91.076" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="11.5027"/></filter>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

+11 -1
View File
@@ -27,6 +27,16 @@
"localAsset": "/brands/apps/anthropic.svg",
"darkAsset": "/brands/apps/anthropic-dark.svg"
},
{
"slug": "antigravity",
"provider": "Antigravity",
"catalogVisible": true,
"localAsset": "/brands/apps/antigravity.svg",
"aliases": [
"google antigravity",
"google antigravity and gemini"
]
},
{
"slug": "arcade",
"provider": "Arcade",
@@ -215,7 +225,7 @@
{
"slug": "google",
"provider": "Google",
"catalogVisible": true,
"catalogVisible": false,
"localAsset": "/brands/apps/google.svg"
},
{
@@ -310,9 +310,10 @@ describe("session replay", () => {
expect(link).not.toBeNull();
expect(link!.getAttribute("target")).toBe("_blank");
expect(link!.getAttribute("rel")).toBe("noreferrer noopener");
expect(container.textContent).toContain("Sign in to Antigravity");
expect(container.textContent).toContain("127.0.0.1");
const input = container.querySelector('input[aria-label="Google redirect URL"]') as HTMLInputElement | null;
const input = container.querySelector('input[aria-label="Antigravity redirect URL"]') as HTMLInputElement | null;
expect(input).not.toBeNull();
expect(input!.getAttribute("autocomplete")).toBe("off");
expect(input!.getAttribute("spellcheck")).toBe("false");
@@ -328,7 +329,7 @@ describe("session replay", () => {
await vi.waitFor(() => expect(container.querySelector('[role="alert"]')?.textContent).toContain("does not match"));
expect(submitCode).toHaveBeenCalledWith("http://127.0.0.1:41234/?state=bad&code=abc");
// Input stays open after a retryable bad paste.
const retryInput = container.querySelector('input[aria-label="Google redirect URL"]') as HTMLInputElement | null;
const retryInput = container.querySelector('input[aria-label="Antigravity redirect URL"]') as HTMLInputElement | null;
expect(retryInput).not.toBeNull();
await act(async () => {
@@ -341,7 +342,7 @@ describe("session replay", () => {
expect(submitCode).toHaveBeenCalledWith("http://127.0.0.1:41234/?state=good&code=xyz");
});
it("keeps the direct local Google prompt without a paste field when hostedRedirect is false", async () => {
it("keeps the direct local Antigravity prompt without a paste field when hostedRedirect is false", async () => {
const container = await render(
<LocalProviderLoginInstructions
adapterType="antigravity_runtime"
@@ -352,7 +353,7 @@ describe("session replay", () => {
}}
/>,
);
expect(container.querySelector('input[aria-label="Google redirect URL"]')).toBeNull();
expect(container.textContent).toContain("Finish signing in in the Google browser window");
expect(container.querySelector('input[aria-label="Antigravity redirect URL"]')).toBeNull();
expect(container.textContent).toContain("Finish signing in in the Antigravity browser window");
});
});
+6 -6
View File
@@ -53,7 +53,7 @@ export const CONNECT_SOURCE_NAMES: Record<string, string> = {
claude_local: "Claude",
codex_local: "OpenAI",
grok_local: "Grok",
antigravity_runtime: "Google",
antigravity_runtime: "Antigravity",
};
/** The provider name for a source, falling back to the type when unlisted. */
@@ -524,7 +524,7 @@ export function LocalProviderLoginInstructions({ adapterType, login, hostedRedir
setCodeSubmitted(false);
setSubmitError(null);
}, [login?.authorizationUrl, login?.preparing]);
const provider = adapterType === "antigravity_runtime" ? "Google Antigravity" : adapterType === "claude_local" ? "Claude Code" : adapterType === "grok_local" ? "Grok CLI" : "Codex CLI";
const provider = adapterType === "antigravity_runtime" ? "Antigravity" : adapterType === "claude_local" ? "Claude Code" : adapterType === "grok_local" ? "Grok CLI" : "Codex CLI";
const isolated = login?.isolated ?? (adapterType === "codex_local" || adapterType === "grok_local");
const command = login?.command;
const browserLogin = adapterType === "claude_local" || adapterType === "codex_local" || adapterType === "antigravity_runtime";
@@ -591,11 +591,11 @@ export function LocalProviderLoginInstructions({ adapterType, login, hostedRedir
</div> : hostedGoogleRedirect ? <div className="flex flex-col gap-2">
<p className="px-2 text-xs text-muted-foreground">
{optionalHostedGoogleRedirect
? <>Finish signing in in the Google browser window, then return here. If your browser is on another machine and the <code className="font-mono">127.0.0.1</code> redirect page won’t load, copy the full URL from your address bar and paste it below.</>
: <>After signing in with Google, your browser will redirect to a <code className="font-mono">127.0.0.1</code> page that won’t load. Copy the full URL from your browser’s address bar and paste it below.</>}
? <>Finish signing in in the Antigravity browser window, then return here. If your browser is on another machine and the <code className="font-mono">127.0.0.1</code> redirect page won’t load, copy the full URL from your address bar and paste it below.</>
: <>After signing in to Antigravity, your browser will redirect to a <code className="font-mono">127.0.0.1</code> page that won’t load. Copy the full URL from your browser’s address bar and paste it below.</>}
</p>
<OnboardingCardField
label="Google redirect URL"
label="Antigravity redirect URL"
placeholder="Paste http://127.0.0.1:... URL here"
className={cn(ANALYTICS_MASK_CLASS, ANALYTICS_NO_CAPTURE_CLASS)}
value={browserCode}
@@ -609,7 +609,7 @@ export function LocalProviderLoginInstructions({ adapterType, login, hostedRedir
/>
<Button type="button" disabled={!browserCode.trim() || submitting} onClick={() => void submitBrowserCode()}>Submit redirect URL</Button>
{submitError && <p role="alert" className="px-2 text-xs text-destructive">{submitError}</p>}
</div> : adapterType === "antigravity_runtime" ? <p>Finish signing in in the Google browser window, then return here.</p> : <OnboardingLoginCodeRow code={login.code ?? ""} />}
</div> : adapterType === "antigravity_runtime" ? <p>Finish signing in in the Antigravity browser window, then return here.</p> : <OnboardingLoginCodeRow code={login.code ?? ""} />}
</ProviderSubscriptionCard>}
{!browserLogin && (!ready || showCommand) && !login?.error && <>
<p>Run this in a terminal on that machine and finish signing in in your browser. We’ll check automatically when you return.</p>
+1 -1
View File
@@ -6,7 +6,7 @@ const brandMarks: Record<string, { src: string; dark?: string }> = {
claude_local: { src: "/brands/claude-color.svg" },
codex_local: { src: "/brands/codex-color.svg" },
gemini_local: { src: "/brands/adapters/gemini-color.svg" },
antigravity_runtime: { src: "/brands/apps/google.svg" },
antigravity_runtime: { src: "/brands/apps/antigravity.svg" },
kimi_local: {
src: "/brands/adapters/kimi-color-light.svg",
dark: "/brands/adapters/kimi-color.svg",
@@ -142,7 +142,7 @@ function ApiKeyConnectionStep({ companyId, provider, connectionId, name: initial
</Select>}
{environmentError && <p role="alert" className="text-sm text-destructive">{environmentError}</p>}
{defaults}
<ProviderApiKeyCard providerName={copilot ? "GitHub Copilot" : provider === "google" ? "Google" : "OpenRouter"} value={apiKey} onChange={setApiKey} onSubmit={() => { if (!preparing && !environmentError && name.trim() && apiKey.trim()) save.mutate(); }} disabled={disabled || save.isPending || preparing || Boolean(environmentError)} placeholder={copilot ? "github_pat_..." : "Enter API key here"} autoFocus />
<ProviderApiKeyCard providerName={copilot ? "GitHub Copilot" : provider === "google" ? "Antigravity" : "OpenRouter"} value={apiKey} onChange={setApiKey} onSubmit={() => { if (!preparing && !environmentError && name.trim() && apiKey.trim()) save.mutate(); }} disabled={disabled || save.isPending || preparing || Boolean(environmentError)} placeholder={copilot ? "github_pat_..." : "Enter API key here"} autoFocus />
<div className="flex justify-between gap-2"><Button variant="ghost" onClick={onCancel}>Cancel</Button><Button disabled={disabled || !name.trim() || !apiKey.trim() || save.isPending || preparing || Boolean(environmentError)} onClick={() => save.mutate()}>{save.isPending ? "Connecting…" : "Connect"}</Button></div>
</div>;
}
@@ -255,7 +255,7 @@ export function AiConnectionField({
initialMethod={reconnecting?.method ?? method}
fixedMethod={Boolean(reconnecting)}
connectionId={reconnecting?.id}
name={reconnecting?.name ?? `My ${provider === "anthropic" ? "Claude" : provider === "openai" ? "OpenAI" : provider === "xai" ? "Grok" : provider === "google" ? "Gemini" : provider === "github" ? "GitHub Copilot" : "OpenRouter"} ${method === "subscription" ? "subscription" : "API"}`}
name={reconnecting?.name ?? `My ${provider === "anthropic" ? "Claude" : provider === "openai" ? "OpenAI" : provider === "xai" ? "Grok" : provider === "google" ? "Antigravity" : provider === "github" ? "GitHub Copilot" : "OpenRouter"} ${method === "subscription" ? "subscription" : "API"}`}
ownership="personal"
agentIds={agentId ? [agentId] : []}
allAgents={allAgents}
@@ -2,6 +2,7 @@ import { useState } from "react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { Network, Monitor } from "lucide-react";
import {
aiConnectionCatalogSlug,
aiProviderRoutingSchema,
createAiConnectionSchema,
type AiProvider,
@@ -40,7 +41,7 @@ const providers = [
name: "Anthropic",
description: "Claude subscription or API key",
},
{ id: "google", name: "Google", description: "Antigravity sign-in or Gemini API key" },
{ id: "google", name: "Antigravity", description: "Antigravity sign-in or Gemini API key" },
{ id: "xai", name: "xAI", description: "Grok subscription or API key" },
{
id: "openrouter",
@@ -235,7 +236,7 @@ export function AiProviderSetup({
)}
</span>
) : (
<AppLogo name={p.name} brandKey={p.id} />
<AppLogo name={p.name} brandKey={aiConnectionCatalogSlug(p.id)} />
),
}))}
onSelect={(id) => {
+1 -1
View File
@@ -8,7 +8,7 @@ export const AI_PROVIDERS: Record<
{ name: string; subscriptionName?: string; logo?: string }
> = {
github: { name: "GitHub Copilot", logo: "/brands/apps/github-copilot.svg" },
google: { name: "Google", subscriptionName: "Google Antigravity account", logo: "/brands/apps/google.svg" },
google: { name: "Antigravity", subscriptionName: "Antigravity account", logo: "/brands/apps/antigravity.svg" },
anthropic: {
name: "Claude",
subscriptionName: "Claude subscription",
@@ -186,10 +186,10 @@ it("immediately triggers check after submitting a hosted Google redirect URL", a
.mockResolvedValueOnce({ status: "sign_in_required", authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth?state=hosted" })
.mockResolvedValueOnce({ status: "ready", accountLabel: "hosted.user@example.test" });
flushSync(() => root.render(<Harness provider="google" hostedRedirect />));
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Google redirect URL"]')).not.toBeNull());
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Antigravity redirect URL"]')).not.toBeNull());
expect(api.checkLocalLogin).toHaveBeenCalledTimes(1);
const input = host.querySelector('input[aria-label="Google redirect URL"]') as HTMLInputElement;
const input = host.querySelector('input[aria-label="Antigravity redirect URL"]') as HTMLInputElement;
flushSync(() => {
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")!.set!.call(input, "http://127.0.0.1:41234/?state=hosted&code=abc123");
input.dispatchEvent(new Event("input", { bubbles: true }));
@@ -110,12 +110,15 @@ describe("AgentProviderConnection hosted Google sign-in gating", () => {
renderConnection("antigravity_runtime", false);
await vi.waitFor(() => expect(mocks.startLocalLogin).toHaveBeenCalledTimes(1));
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Google redirect URL"]')).not.toBeNull());
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Antigravity redirect URL"]')).not.toBeNull());
expect(host.querySelector('a[href="https://accounts.google.com/o/oauth2/v2/auth?state=hosted-ui-state"]')).not.toBeNull();
expect(host.querySelector('img[src="/brands/apps/antigravity.svg"]')).not.toBeNull();
expect(host.textContent).toContain("Antigravity");
expect(host.textContent).toContain("Sign in to Antigravity");
expect(host.textContent).toContain("127.0.0.1");
});
it("still exposes the Google redirect paste field when local login is also supported (remote private/trusted host)", async () => {
it("still exposes the Antigravity redirect paste field when local login is also supported (remote private/trusted host)", async () => {
mocks.healthGet.mockResolvedValue({
status: "ok",
deploymentMode: "authenticated",
@@ -126,7 +129,7 @@ describe("AgentProviderConnection hosted Google sign-in gating", () => {
renderConnection("antigravity_runtime", true);
await vi.waitFor(() => expect(mocks.startLocalLogin).toHaveBeenCalledTimes(1));
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Google redirect URL"]')).not.toBeNull());
await vi.waitFor(() => expect(host.querySelector('input[aria-label="Antigravity redirect URL"]')).not.toBeNull());
expect(host.textContent).toContain("another machine");
expect(host.textContent).toContain("127.0.0.1");
});
@@ -121,7 +121,7 @@ export function AgentProviderConnection({
const [error, setError] = useState<string | null>(null);
const [storedConnection, setStoredConnection] =
useState<ProviderConnection | null>(null);
const provider = adapterType === "antigravity_runtime" ? "Google" : adapterType === "claude_local" ? "Claude" : adapterType === "grok_local" ? "Grok" : "OpenAI";
const provider = adapterType === "antigravity_runtime" ? "Antigravity" : adapterType === "claude_local" ? "Claude" : adapterType === "grok_local" ? "Grok" : "OpenAI";
const envKey =
adapterType === "antigravity_runtime" ? "GEMINI_API_KEY" : adapterType === "claude_local" ? "ANTHROPIC_API_KEY" : adapterType === "grok_local" ? "XAI_API_KEY" : "OPENAI_API_KEY";
const aiProvider = adapterType === "antigravity_runtime" ? "google" : adapterType === "claude_local" ? "anthropic" : adapterType === "grok_local" ? "xai" : "openai";
+144
View File
@@ -0,0 +1,144 @@
// @vitest-environment jsdom
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { flushSync } from "react-dom";
import { createRoot, type Root } from "react-dom/client";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { AppsConnect } from "./AppsConnect";
const mocks = vi.hoisted(() => ({
navigate: vi.fn(),
searchParams: new URLSearchParams(),
params: {} as { appKey?: string },
}));
vi.mock("@/lib/router", () => ({
useNavigate: () => mocks.navigate,
useParams: () => mocks.params,
useSearchParams: () => [mocks.searchParams, vi.fn()] as const,
}));
vi.mock("@/context/CompanyContext", () => ({
useCompany: () => ({ selectedCompanyId: "company-1" }),
}));
vi.mock("@/api/ai-connections", () => ({
aiConnectionsApi: {
list: vi.fn().mockResolvedValue({ connections: [], canManageConnections: true }),
loginSetup: vi.fn(),
startLocalLogin: vi.fn().mockResolvedValue({
attemptId: "attempt-1",
authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth?state=antigravity-state",
}),
checkLocalLogin: vi.fn().mockResolvedValue({
status: "sign_in_required",
authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth?state=antigravity-state",
}),
cancelLocalLogin: vi.fn().mockResolvedValue({ ok: true }),
},
}));
vi.mock("@/api/agents", () => ({
agentsApi: {
list: vi.fn().mockResolvedValue([]),
getAdapterAuthSignal: vi.fn().mockResolvedValue({ status: "missing" }),
},
}));
vi.mock("@/api/environments", () => ({
environmentsApi: {
list: vi.fn().mockResolvedValue([]),
capabilities: vi.fn().mockResolvedValue({ environments: {} }),
},
}));
vi.mock("@/api/instanceSettings", () => ({
instanceSettingsApi: {
get: vi.fn().mockResolvedValue({}),
getExperimental: vi.fn().mockResolvedValue({}),
getGeneral: vi.fn().mockResolvedValue({ executionMode: "standard" }),
},
}));
vi.mock("@/api/health", () => ({
healthApi: {
get: vi.fn().mockResolvedValue({
status: "ok",
deploymentMode: "authenticated",
deploymentExposure: "public",
localAiLoginSupported: false,
hostedGoogleAiLoginSupported: true,
}),
},
}));
vi.mock("@/api/tools", () => ({
toolsApi: {
listGallery: vi.fn().mockResolvedValue({ apps: [] }),
listConnections: vi.fn().mockResolvedValue({ connections: [] }),
},
}));
vi.mock("@/components/new-agent/useSavedProviderKeys", () => ({
useSavedProviderKeys: () => ({
options: [],
subscriptions: [],
loading: false,
storedLogin: { data: undefined, isPending: false, isError: false },
}),
}));
let host: HTMLDivElement;
let root: Root;
beforeEach(() => {
vi.clearAllMocks();
mocks.params = {};
mocks.searchParams = new URLSearchParams();
host = document.createElement("div");
document.body.appendChild(host);
root = createRoot(host);
});
afterEach(() => {
flushSync(() => root.unmount());
host.remove();
});
function renderAppsConnect() {
const client = new QueryClient({ defaultOptions: { queries: { retry: false } } });
flushSync(() => {
root.render(
<QueryClientProvider client={client}>
<AppsConnect />
</QueryClientProvider>,
);
});
}
describe("AppsConnect Antigravity routing and branding", () => {
it.each(["google", "google-ai"])("redirects legacy source=%s links to source=antigravity while preserving query params", async (legacySource) => {
mocks.searchParams = new URLSearchParams({ source: legacySource, reconnect: "conn-123" });
renderAppsConnect();
await vi.waitFor(() => {
expect(mocks.navigate).toHaveBeenCalledWith(
"/apps/connect?source=antigravity&reconnect=conn-123",
{ replace: true },
);
});
});
it("renders Connect Antigravity with the Antigravity logo and hosted sign-in prompt for source=antigravity", async () => {
mocks.searchParams = new URLSearchParams({ source: "antigravity" });
renderAppsConnect();
await vi.waitFor(() => {
expect(host.querySelector("h2")?.textContent).toBe("Connect Antigravity");
});
await vi.waitFor(() => {
expect(host.querySelector('input[aria-label="Antigravity redirect URL"]')).not.toBeNull();
});
expect(host.querySelector('img[src="/brands/apps/antigravity.svg"]')).not.toBeNull();
expect(host.textContent).toContain("Sign in to Antigravity");
expect(host.textContent).not.toContain("Connect Google");
});
});
+5 -4
View File
@@ -57,14 +57,15 @@ export function AppsConnect({ byoOnly = false, credentialSource = "paperclip_vau
if (hasSavedComposio) navigate(`/apps?source=composio&targetToolkit=${encodeURIComponent(toolkit!)}`, { replace: true });
}, [hasSavedComposio, toolkit, navigate]);
const legacyCopilotLink = source === "github" && searchParams.get("method") === "copilot-token";
const legacyAntigravityLink = source === "google" || source === "google-ai";
useEffect(() => {
if (!legacyCopilotLink) return;
if (!legacyCopilotLink && !legacyAntigravityLink) return;
const params = new URLSearchParams(searchParams);
params.delete("appKey");
params.set("source", "github-copilot");
params.set("source", legacyCopilotLink ? "github-copilot" : "antigravity");
navigate(`/apps/connect?${params.toString()}`, { replace: true });
}, [legacyCopilotLink, searchParams, navigate]);
if (legacyCopilotLink) return null;
}, [legacyCopilotLink, legacyAntigravityLink, searchParams, navigate]);
if (legacyCopilotLink || legacyAntigravityLink) return null;
if (reuseComposio && selectedCompanyId && (saved.isPending || savedView.kind === "reconnecting" || hasSavedComposio)) return <p role="status" className="text-sm text-muted-foreground">Checking saved Composio accounts…</p>;
if (reuseComposio && savedView.kind === "error") return <div className="space-y-3">
<QueryErrorState error={saved.error} action="load your Composio accounts" onRetry={savedView.retry} retrying={savedView.isFetching} />
+1 -1
View File
@@ -39,7 +39,7 @@ describe("app connect policy", () => {
expect(canEnterAppsConnect(new URLSearchParams("source=zapier"))).toBe(true);
expect(canEnterAppsConnect(new URLSearchParams("source=unknown"))).toBe(false);
expect(canEnterAppsConnect(new URLSearchParams("source=model-provider"))).toBe(false);
for (const source of ["responses-api", "messages-api", "chat-completions-api", "bedrock", "local", "google", "openrouter"]) {
for (const source of ["responses-api", "messages-api", "chat-completions-api", "bedrock", "local", "antigravity", "google", "google-ai", "openrouter"]) {
expect(canEnterAppsConnect(new URLSearchParams({ source })), source).toBe(true);
}
expect(canEnterAppsConnect(new URLSearchParams("byo=1"))).toBe(false);
+1 -1
View File
@@ -69,7 +69,7 @@ export function canEnterAppsConnect(
);
}
const source = searchParams.get("source") ?? "";
if (["google-ai", "gateway"].includes(source)) return true;
if (["google", "google-ai", "gateway"].includes(source)) return true;
// Router connectors are registered by installed plugins, not the static
// catalog. AppsConnect resolves this reserved slug against the host gallery
// before rendering the pool wizard; unknown/uninstalled routers show its
+2 -2
View File
@@ -4,7 +4,7 @@ import { AiConnectionAccountControls } from "@/components/ai-connections/AiConne
import { useEffect, useState } from "react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { Route, Routes, useNavigate, useSearchParams } from "@/lib/router";
import { APP_DEFINITIONS, getAppStoreDefinition, type AppDefinition, type ToolApplication, type ToolConnection, type ConnectionGrantsResponse } from "@paperclipai/shared";
import { APP_DEFINITIONS, aiConnectionCatalogSlug, getAppStoreDefinition, type AppDefinition, type ToolApplication, type ToolConnection, type ConnectionGrantsResponse } from "@paperclipai/shared";
import { Browse } from "@/pages/apps/Browse";
import { AppDetail } from "@/pages/apps/AppDetail";
import { ConnectionSetupFlow } from "@/features/connections/ConnectionSetupFlow";
@@ -23,7 +23,7 @@ const capabilities = { canConfigure: true, canCreateOrganizationGrant: true, can
const members = [{ userId: "dotta", name: "Dotta", email: "dotta@example.test" }, { userId: "sam", name: "Sam", email: "sam@example.test" }];
/** Use the production provider catalog; only accounts and actions are simulated. */
const gallery: AppDefinition[] = (Object.keys(AI_PROVIDERS) as AiProvider[]).map((provider) => getAppStoreDefinition(provider)!);
const gallery: AppDefinition[] = (Object.keys(AI_PROVIDERS) as AiProvider[]).map((provider) => getAppStoreDefinition(aiConnectionCatalogSlug(provider))!);
for (const slug of ["github", "gmail"]) {
const app = getAppStoreDefinition(slug);
if (app) gallery.push(app);