From ed0a089871200ed57e8aefc1f91b8bd5790e08f0 Mon Sep 17 00:00:00 2001 From: LHaghfoss Date: Tue, 24 Nov 2026 15:24:03 +0100 Subject: [PATCH] =?UTF-8?q?feat(desktop):=20add=20an=20app=20gallery=20to?= =?UTF-8?q?=20Settings=20=E2=80=BA=20Connections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eighteen hosted MCP servers with one-click Connect: the add starts the engine's browser sign-in, and the card waits for it. Logos are monochrome Simple Icons paths (CC0). --- apps/desktop/src/acp/mock.ts | 25 +- apps/desktop/src/acp/mockMcp.ts | 69 ++++++ apps/desktop/src/fileSize.test.ts | 2 +- apps/desktop/src/ui/Capabilities.tsx | 8 +- apps/desktop/src/ui/Connectors.tsx | 237 +++++++++++++++++++ apps/desktop/src/ui/Settings.tsx | 2 + apps/desktop/src/ui/connectorCatalog.test.ts | 28 +++ apps/desktop/src/ui/connectorCatalog.ts | 205 ++++++++++++++++ apps/desktop/src/ui/connectorLogos.ts | 34 +++ apps/desktop/src/ui/settingsIndex.ts | 6 + scripts/comment-baseline.txt | 2 +- 11 files changed, 595 insertions(+), 23 deletions(-) create mode 100644 apps/desktop/src/acp/mockMcp.ts create mode 100644 apps/desktop/src/ui/Connectors.tsx create mode 100644 apps/desktop/src/ui/connectorCatalog.test.ts create mode 100644 apps/desktop/src/ui/connectorCatalog.ts create mode 100644 apps/desktop/src/ui/connectorLogos.ts diff --git a/apps/desktop/src/acp/mock.ts b/apps/desktop/src/acp/mock.ts index 1f3254801..6fbadf864 100644 --- a/apps/desktop/src/acp/mock.ts +++ b/apps/desktop/src/acp/mock.ts @@ -25,6 +25,7 @@ import { mockBrowse, mockCreate } from "./mockFolders"; import { ACP_CAPS, HARNESS_MODELS, initialHarnesses, MOCK_CUSTOM_MODELS, withLast } from "./mockHarnesses"; import { MockLoops } from "./mockLoops"; import { MOCK_LOCAL_HOST, mockHostEntry, mockNameWins, mockRemote } from "./mockMachineFixtures"; +import { MockAddedMcp } from "./mockMcp"; import { MockOutside } from "./mockOutside"; import { APP_PATCH, @@ -203,7 +204,7 @@ export class MockEngine { private activeTheme = "rustcode"; /** MCP servers the mock restarted through `_rustcode/capabilities/mcp/restart`. */ private mcpRestarted = new Set(); - private sentrySignedIn = false; // the remote `sentry` row's `auth` + private mcpAdded = new MockAddedMcp(); /** * The timed approvals `_rustcode/permissions` lists: one seeded hour so the * details panel has "Allowed for 42m · Revoke" to show, and whatever the user @@ -277,17 +278,7 @@ export class MockEngine { tools: 0, error: "MCP server 'fagbrev' failed to start: spawn npx ENOENT", }, - { - name: "sentry", - transport: "http", - target: "https://mcp.sentry.dev/mcp", - enabled: true, - scope: "user", - connection: this.sentrySignedIn ? "connected" : "not_connected", - tools: this.sentrySignedIn ? 58 : 0, - error: null, - auth: this.sentrySignedIn ? "signed_in" : "signed_out", - }, + ...this.mcpAdded.servers, ]; } @@ -2452,14 +2443,14 @@ export class MockEngine { } case "_rustcode/capabilities/set": return this.handle("_rustcode/capabilities", {}); - case "_rustcode/capabilities/mcp/logout": { - if (str(params.name) === "sentry") this.sentrySignedIn = false; + case "_rustcode/capabilities/mcp/logout": + case "_rustcode/capabilities/mcp/add": + case "_rustcode/capabilities/mcp/remove": + this.mcpAdded.apply(method, params); return this.handle("_rustcode/capabilities", {}); - } case "_rustcode/capabilities/mcp/restart": { const name = str(params.name) ?? ""; - if (name === "sentry") this.sentrySignedIn = true; - else if (name !== "github" && name !== "sqlite" && name !== "fagbrev") + if (!this.mcpAdded.signIn(name) && name !== "github" && name !== "sqlite" && name !== "fagbrev") throw Object.assign(new Error(`MCP server '${name}' is no longer configured`), { code: -32602, }); diff --git a/apps/desktop/src/acp/mockMcp.ts b/apps/desktop/src/acp/mockMcp.ts new file mode 100644 index 000000000..9663b07b4 --- /dev/null +++ b/apps/desktop/src/acp/mockMcp.ts @@ -0,0 +1,69 @@ +import { arr, type JsonObject, str } from "./jsonrpc"; + +const NO_SIGN_IN = /context7|deepwiki|huggingface/; + +const signedOut = (server: JsonObject): JsonObject => ({ + ...server, + connection: "not_connected", + tools: 0, + auth: "signed_out", +}); + +/** + * The mock's remote MCP servers that sign in with OAuth: the seeded `sentry` row and any server + * added through `_rustcode/capabilities/mcp/add`, which signs itself in a moment later as the + * engine's browser login would. Reconnecting one signs it in; logging out forgets it. + */ +export class MockAddedMcp { + servers: JsonObject[] = [ + signedOut({ + name: "sentry", + transport: "http", + target: "https://mcp.sentry.dev/mcp", + enabled: true, + scope: "user", + error: null, + }), + ]; + + apply(method: string, params: JsonObject) { + const name = str(params.name); + if (method.endsWith("/remove")) this.servers = this.servers.filter((server) => str(server.name) !== name); + else if (method.endsWith("/logout")) + this.servers = this.servers.map((server) => (str(server.name) === name ? signedOut(server) : server)); + else this.add(params); + } + + private add(params: JsonObject) { + const name = str(params.name) ?? "server"; + const target = arr(params.target).map(String); + const http = str(params.transport) === "http"; + const ready = !http || NO_SIGN_IN.test(target[0] ?? ""); + const server: JsonObject = { + name, + transport: http ? "http" : "stdio", + target: target.join(" "), + enabled: true, + scope: "user", + connection: "connected", + tools: 4, + error: null, + }; + this.servers = [ + ...this.servers.filter((entry) => str(entry.name) !== name), + ready ? server : signedOut(server), + ]; + if (http && !ready) setTimeout(() => this.signIn(name), 2500); + } + + /** Signs a server in; `false` when it is not one of these. */ + signIn(name: string): boolean { + if (!this.servers.some((server) => str(server.name) === name)) return false; + this.servers = this.servers.map((server) => + str(server.name) === name + ? { ...server, connection: "connected", tools: name === "sentry" ? 58 : 12, auth: "signed_in" } + : server, + ); + return true; + } +} diff --git a/apps/desktop/src/fileSize.test.ts b/apps/desktop/src/fileSize.test.ts index beed638f5..fcefd11dc 100644 --- a/apps/desktop/src/fileSize.test.ts +++ b/apps/desktop/src/fileSize.test.ts @@ -16,7 +16,7 @@ const SLACK = 100; /** Files over the budget, capped at their size when the budget came in, rounded up to the next hundred. */ const OVERSIZED: Record = { "state/store.ts": 1800, - "acp/mock.ts": 3300, + "acp/mock.ts": 3288, }; function sources(dir: string): string[] { diff --git a/apps/desktop/src/ui/Capabilities.tsx b/apps/desktop/src/ui/Capabilities.tsx index 8c29e6da9..2bbb2668a 100644 --- a/apps/desktop/src/ui/Capabilities.tsx +++ b/apps/desktop/src/ui/Capabilities.tsx @@ -43,7 +43,7 @@ interface Skill { enabled: boolean; } -interface McpServer { +export interface McpServer { name: string; transport: string; target: string; @@ -61,16 +61,16 @@ interface McpServer { } /** A browser sign-in waits up to five minutes for the user (the engine's loopback limit). */ -const SIGN_IN_TIMEOUT = 310_000; +export const SIGN_IN_TIMEOUT = 310_000; -interface Capabilities { +export interface Capabilities { skills: Skill[]; mcpServers: McpServer[]; configPath?: string; } /** The engine sends `tools` as the tool names; an older mock sent a count. */ -const parseCapabilities = (v: Json): Capabilities => { +export const parseCapabilities = (v: Json): Capabilities => { const root = obj(v) ?? {}; return { configPath: str(root.configPath), diff --git a/apps/desktop/src/ui/Connectors.tsx b/apps/desktop/src/ui/Connectors.tsx new file mode 100644 index 000000000..8774d5d60 --- /dev/null +++ b/apps/desktop/src/ui/Connectors.tsx @@ -0,0 +1,237 @@ +import { useCallback, useEffect, useRef, useState } from "react"; +import type { JsonObject } from "../acp/jsonrpc"; +import { Method } from "../acp/types"; +import { machineRequest } from "../state/settingsScope"; +import { errorText, toast } from "../state/store"; +import { openSettings } from "../state/viewActions"; +import { type Capabilities, type McpServer, parseCapabilities, SIGN_IN_TIMEOUT } from "./Capabilities"; +import { + CONNECTOR_CATEGORIES, + CONNECTORS, + type Connector, + type ConnectorCategory, + configuredAs, + connectorName, + matchesConnector, +} from "./connectorCatalog"; +import { CONNECTOR_LOGOS } from "./connectorLogos"; +import { Search } from "./icons"; +import { cx, noTextHelpers, Segments, Spinner } from "./primitives"; +import { Action, Chip, fieldClass, SectionTitle } from "./settingsKit"; + +type Busy = { id: string; step: "adding" | "signing-in" } | null; + +/** + * Settings › Connections › Apps: a gallery of hosted MCP servers. Connect adds one to this + * computer's user config and, when it asks for an account, runs the engine's browser sign-in; + * it then lists under Capabilities › MCP servers like any other. + */ +export function ConnectorGallery() { + const [data, setData] = useState(null); + const [query, setQuery] = useState(""); + const [category, setCategory] = useState<"all" | ConnectorCategory>("all"); + const [busy, setBusy] = useState(null); + const request = useCallback(async (method: string, params: JsonObject = {}, timeout = 30_000) => { + const next = parseCapabilities(await machineRequest("", method, params, timeout)); + setData(next); + return next; + }, []); + const mounted = useRef(true); + useEffect(() => { + mounted.current = true; + request(Method.capabilities).catch((e) => toast(errorText(e), "error")); + return () => { + mounted.current = false; + }; + }, [request]); + + const announce = (connector: Connector, server: McpServer | undefined) => { + if (server?.connection === "connected") toast(`${connector.name} is connected.`, "success"); + else if (server?.error) toast(`${connector.name}: ${server.error}`, "error"); + }; + + /** Adding a server that needs an account already starts its browser sign-in: wait for it to land. */ + const awaitSignIn = async (connector: Connector, name: string) => { + setBusy({ id: connector.id, step: "signing-in" }); + toast(`Finish signing in to ${connector.name} in your browser.`, "info"); + const deadline = Date.now() + SIGN_IN_TIMEOUT; + while (mounted.current && Date.now() < deadline) { + await new Promise((resolve) => setTimeout(resolve, 1500)); + const server = (await request(Method.capabilities)).mcpServers.find((s) => s.name === name); + if (!server || server.connection === "connected" || server.connection === "failed" || server.error) { + announce(connector, server); + return; + } + } + }; + + const signIn = async (connector: Connector, name: string) => { + setBusy({ id: connector.id, step: "signing-in" }); + toast(`Finish signing in to ${connector.name} in your browser.`, "info"); + const next = await request(Method.mcpRestart, { name }, SIGN_IN_TIMEOUT); + announce( + connector, + next.mcpServers.find((s) => s.name === name), + ); + }; + + const connect = async (connector: Connector) => { + setBusy({ id: connector.id, step: "adding" }); + try { + const name = connectorName( + connector, + (data?.mcpServers ?? []).map((s) => s.name), + ); + const next = await request( + Method.mcpAdd, + { name, target: [connector.url], transport: "http", headers: [] }, + 45_000, + ); + const server = next.mcpServers.find((s) => s.name === name); + if (server && server.connection !== "connected" && !server.error) await awaitSignIn(connector, name); + else announce(connector, server); + } catch (e) { + toast(errorText(e), "error"); + } finally { + setBusy(null); + } + }; + + const reconnect = async (connector: Connector, server: McpServer) => { + try { + await signIn(connector, server.name); + } catch (e) { + toast(errorText(e), "error"); + } finally { + setBusy(null); + } + }; + + const shown = CONNECTORS.filter( + (c) => (category === "all" || c.category === category) && matchesConnector(c, query), + ); + return ( +
+ openSettings("capabilities")}> + Manage servers + + } + /> +

+ Connect an app to give every thread its tools. Sign-ins open in your browser and stay on this + computer. +

+
+ + +
+ {shown.length === 0 ? ( +

No apps match.

+ ) : ( +
    + {shown.map((connector) => ( + void connect(connector)} + onSignIn={(server) => void reconnect(connector, server)} + /> + ))} +
+ )} +
+ ); +} + +function ConnectorCard({ + connector, + server, + loading, + busy, + disabled, + onConnect, + onSignIn, +}: { + connector: Connector; + server: McpServer | undefined; + loading: boolean; + busy: "adding" | "signing-in" | null; + disabled: boolean; + onConnect: () => void; + onSignIn: (server: McpServer) => void; +}) { + const connected = server?.connection === "connected"; + const needsSignIn = server && !connected && server.enabled && server.auth === "signed_out"; + return ( +
  • + + + {connector.name} + + {busy === "signing-in" + ? "Waiting for the browser sign-in…" + : busy === "adding" + ? "Adding…" + : connected && server + ? `${server.toolCount} tool${server.toolCount === 1 ? "" : "s"}${server.auth === "signed_in" ? " · Signed in" : ""}` + : connector.description} + + + {busy ? ( + + ) : connected ? ( + Connected + ) : needsSignIn ? ( + onSignIn(server)}> + Sign in + + ) : server ? ( + {server.enabled ? "Not connected" : "Off"} + ) : ( + + {connector.signIn ? "Connect" : "Add"} + + )} +
  • + ); +} + +function ConnectorLogo({ connector }: { connector: Connector }) { + const path = CONNECTOR_LOGOS[connector.id]; + return ( + + {path ? ( + + + + ) : ( + connector.name.charAt(0) + )} + + ); +} diff --git a/apps/desktop/src/ui/Settings.tsx b/apps/desktop/src/ui/Settings.tsx index 9ac515735..ab350b0c1 100644 --- a/apps/desktop/src/ui/Settings.tsx +++ b/apps/desktop/src/ui/Settings.tsx @@ -95,6 +95,7 @@ import { OrchestrationPage } from "./SettingsOrchestration"; import { useLightsInset } from "./Titlebar"; import { onTitleRowDoubleClick, windowControlsInset } from "./WindowControls"; +const ConnectorGallery = lazy(() => import("./Connectors").then((m) => ({ default: m.ConnectorGallery }))); const CapabilitiesPage = lazy(() => import("./Capabilities").then((m) => ({ default: m.CapabilitiesPage }))); const DiagnosticsPage = lazy(() => import("./DiagnosticsPage").then((m) => ({ default: m.DiagnosticsPage }))); @@ -878,6 +879,7 @@ function ConnectionsPage() { )} + ); } diff --git a/apps/desktop/src/ui/connectorCatalog.test.ts b/apps/desktop/src/ui/connectorCatalog.test.ts new file mode 100644 index 000000000..58f6b41ea --- /dev/null +++ b/apps/desktop/src/ui/connectorCatalog.test.ts @@ -0,0 +1,28 @@ +import { describe, expect, test } from "bun:test"; +import { CONNECTORS, configuredAs, connectorName, matchesConnector } from "./connectorCatalog"; + +const linear = CONNECTORS.find((c) => c.id === "linear")!; + +describe("connector catalog", () => { + test("every connector has a unique id and an https URL", () => { + expect(new Set(CONNECTORS.map((c) => c.id)).size).toBe(CONNECTORS.length); + for (const c of CONNECTORS) expect(c.url.startsWith("https://")).toBe(true); + }); + + test("a configured server matches by URL, not name", () => { + const servers = [{ name: "my-linear", target: "https://mcp.linear.app/mcp/" }]; + expect(configuredAs(linear, servers)?.name).toBe("my-linear"); + expect(configuredAs(linear, [{ name: "linear", target: "npx linear-mcp" }])).toBeUndefined(); + }); + + test("a taken name gets a number", () => { + expect(connectorName(linear, [])).toBe("linear"); + expect(connectorName(linear, ["linear", "linear-2"])).toBe("linear-3"); + }); + + test("search reads the name and description", () => { + expect(matchesConnector(linear, "issues")).toBe(true); + expect(matchesConnector(linear, "postgres")).toBe(false); + expect(matchesConnector(linear, " ")).toBe(true); + }); +}); diff --git a/apps/desktop/src/ui/connectorCatalog.ts b/apps/desktop/src/ui/connectorCatalog.ts new file mode 100644 index 000000000..ef60fc5f8 --- /dev/null +++ b/apps/desktop/src/ui/connectorCatalog.ts @@ -0,0 +1,205 @@ +/** + * Settings › Connections › Apps: hosted MCP servers that sign in with OAuth (each advertises + * dynamic client registration, so the engine's browser login works with no client id), and a few + * that need no sign-in. Connecting one adds it as an `http` MCP server in the user config. + */ + +export type ConnectorCategory = "work" | "dev" | "design" | "commerce" | "docs"; + +export interface Connector { + /** The MCP server name it is added under. */ + id: string; + name: string; + description: string; + url: string; + category: ConnectorCategory; + /** Signs in with OAuth in the browser; `false` connects without an account. */ + signIn: boolean; +} + +export const CONNECTOR_CATEGORIES: { value: "all" | ConnectorCategory; label: string }[] = [ + { value: "all", label: "All" }, + { value: "work", label: "Work" }, + { value: "dev", label: "Developer" }, + { value: "design", label: "Design" }, + { value: "commerce", label: "Payments" }, + { value: "docs", label: "Docs" }, +]; + +export const CONNECTORS: Connector[] = [ + { + id: "linear", + name: "Linear", + description: "Find, create and update issues and projects", + url: "https://mcp.linear.app/mcp", + category: "work", + signIn: true, + }, + { + id: "notion", + name: "Notion", + description: "Search, read and write pages and databases", + url: "https://mcp.notion.com/mcp", + category: "work", + signIn: true, + }, + { + id: "atlassian", + name: "Jira & Confluence", + description: "Work with Jira issues and Confluence pages", + url: "https://mcp.atlassian.com/v1/mcp", + category: "work", + signIn: true, + }, + { + id: "intercom", + name: "Intercom", + description: "Look up conversations, tickets and contacts", + url: "https://mcp.intercom.com/mcp", + category: "work", + signIn: true, + }, + { + id: "granola", + name: "Granola", + description: "Read meeting notes and transcripts", + url: "https://mcp.granola.ai/mcp", + category: "work", + signIn: true, + }, + { + id: "zapier", + name: "Zapier", + description: "Run actions in thousands of apps", + url: "https://mcp.zapier.com/api/mcp/mcp", + category: "work", + signIn: true, + }, + { + id: "sentry", + name: "Sentry", + description: "Investigate errors, issues and releases", + url: "https://mcp.sentry.dev/mcp", + category: "dev", + signIn: true, + }, + { + id: "vercel", + name: "Vercel", + description: "Check deployments, logs and projects", + url: "https://mcp.vercel.com", + category: "dev", + signIn: true, + }, + { + id: "cloudflare", + name: "Cloudflare", + description: "Manage Workers, KV, R2 and D1", + url: "https://bindings.mcp.cloudflare.com/mcp", + category: "dev", + signIn: true, + }, + { + id: "neon", + name: "Neon", + description: "Query and branch Postgres databases", + url: "https://mcp.neon.tech/mcp", + category: "dev", + signIn: true, + }, + { + id: "posthog", + name: "PostHog", + description: "Read analytics, flags and experiments", + url: "https://mcp.posthog.com/mcp", + category: "dev", + signIn: true, + }, + { + id: "canva", + name: "Canva", + description: "Find, create and export designs", + url: "https://mcp.canva.com/mcp", + category: "design", + signIn: true, + }, + { + id: "webflow", + name: "Webflow", + description: "Edit sites, pages and CMS collections", + url: "https://mcp.webflow.com/mcp", + category: "design", + signIn: true, + }, + { + id: "paypal", + name: "PayPal", + description: "Invoices, orders and transactions", + url: "https://mcp.paypal.com/mcp", + category: "commerce", + signIn: true, + }, + { + id: "square", + name: "Square", + description: "Payments, catalog and customers", + url: "https://mcp.squareup.com/mcp", + category: "commerce", + signIn: true, + }, + { + id: "context7", + name: "Context7", + description: "Current library docs and code examples", + url: "https://mcp.context7.com/mcp", + category: "docs", + signIn: false, + }, + { + id: "deepwiki", + name: "DeepWiki", + description: "Ask about any public GitHub repository", + url: "https://mcp.deepwiki.com/mcp", + category: "docs", + signIn: false, + }, + { + id: "huggingface", + name: "Hugging Face", + description: "Search models, datasets and papers", + url: "https://huggingface.co/mcp", + category: "docs", + signIn: false, + }, +]; + +const originOf = (url: string) => { + try { + const parsed = new URL(url); + return `${parsed.host}${parsed.pathname.replace(/\/+$/, "")}`; + } catch { + return url.trim().replace(/\/+$/, ""); + } +}; + +/** The configured server a connector already is: same URL, whatever it was named. */ +export function configuredAs( + connector: Connector, + servers: readonly T[], +): T | undefined { + const want = originOf(connector.url); + return servers.find((server) => originOf(server.target) === want); +} + +/** A free name for a connector: its id, or its id with a number when a different server has it. */ +export function connectorName(connector: Connector, taken: readonly string[]): string { + if (!taken.includes(connector.id)) return connector.id; + let n = 2; + while (taken.includes(`${connector.id}-${n}`)) n++; + return `${connector.id}-${n}`; +} + +export function matchesConnector(connector: Connector, query: string): boolean { + const q = query.trim().toLowerCase(); + return !q || `${connector.name} ${connector.description}`.toLowerCase().includes(q); +} diff --git a/apps/desktop/src/ui/connectorLogos.ts b/apps/desktop/src/ui/connectorLogos.ts new file mode 100644 index 000000000..885fe5765 --- /dev/null +++ b/apps/desktop/src/ui/connectorLogos.ts @@ -0,0 +1,34 @@ +/** + * Connector logos: monochrome 24×24 SVG paths from Simple Icons 16.38.1 (CC0-1.0, + * https://simpleicons.org), keyed by connector id. Drawn in the text colour, so they follow the theme. + */ +export const CONNECTOR_LOGOS: Record = { + linear: + "M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z", + notion: + "M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z", + atlassian: + "M7.12 11.084a.683.683 0 00-1.16.126L.075 22.974a.703.703 0 00.63 1.018h8.19a.678.678 0 00.63-.39c1.767-3.65.696-9.203-2.406-12.52zM11.434.386a15.515 15.515 0 00-.906 15.317l3.95 7.9a.703.703 0 00.628.388h8.19a.703.703 0 00.63-1.017L12.63.38a.664.664 0 00-1.196.006z", + intercom: + "M21 0H3C1.343 0 0 1.343 0 3v18c0 1.658 1.343 3 3 3h18c1.658 0 3-1.342 3-3V3c0-1.657-1.342-3-3-3zm-5.801 4.399c0-.44.36-.8.802-.8.44 0 .8.36.8.8v10.688c0 .442-.36.801-.8.801-.443 0-.802-.359-.802-.801V4.399zM11.2 3.994c0-.44.357-.799.8-.799s.8.359.8.799v11.602c0 .44-.357.8-.8.8s-.8-.36-.8-.8V3.994zm-4 .405c0-.44.359-.8.799-.8.443 0 .802.36.802.8v10.688c0 .442-.36.801-.802.801-.44 0-.799-.359-.799-.801V4.399zM3.199 6c0-.442.36-.8.802-.8.44 0 .799.358.799.8v7.195c0 .441-.359.8-.799.8-.443 0-.802-.36-.802-.8V6zM20.52 18.202c-.123.105-3.086 2.593-8.52 2.593-5.433 0-8.397-2.486-8.521-2.593-.335-.288-.375-.792-.086-1.128.285-.334.79-.375 1.125-.09.047.041 2.693 2.211 7.481 2.211 4.848 0 7.456-2.186 7.479-2.207.334-.289.839-.25 1.128.086.289.336.25.84-.086 1.128zm.281-5.007c0 .441-.36.8-.801.8-.441 0-.801-.36-.801-.8V6c0-.442.361-.8.801-.8.441 0 .801.357.801.8v7.195z", + zapier: + "M4.157 0A4.151 4.151 0 0 0 0 4.161v15.678A4.151 4.151 0 0 0 4.157 24h15.682A4.152 4.152 0 0 0 24 19.839V4.161A4.152 4.152 0 0 0 19.839 0H4.157Zm10.61 8.761h.03a.577.577 0 0 1 .23.038.585.585 0 0 1 .201.124.63.63 0 0 1 .162.431.612.612 0 0 1-.162.435.58.58 0 0 1-.201.128.58.58 0 0 1-.23.042.529.529 0 0 1-.235-.042.585.585 0 0 1-.332-.328.559.559 0 0 1-.038-.235.613.613 0 0 1 .17-.431.59.59 0 0 1 .405-.162Zm2.853 1.572c.03.004.061.004.095.004.325-.011.646.064.937.219.238.144.431.355.552.609.128.279.189.582.185.888v.193a2 2 0 0 1 0 .219h-2.498c.003.227.075.45.204.642a.78.78 0 0 0 .646.265.714.714 0 0 0 .484-.136.642.642 0 0 0 .23-.318l.915.257a1.398 1.398 0 0 1-.28.537c-.14.159-.321.284-.521.355a2.234 2.234 0 0 1-.836.136 1.923 1.923 0 0 1-1.001-.245 1.618 1.618 0 0 1-.665-.703 2.221 2.221 0 0 1-.227-1.036 1.95 1.95 0 0 1 .48-1.398 1.9 1.9 0 0 1 1.3-.488Zm-9.607.023c.162.004.325.026.48.079.207.065.4.174.563.314.26.302.393.692.366 1.088v2.276H8.53l-.109-.711h-.065c-.064.163-.155.31-.272.439a1.122 1.122 0 0 1-.374.264 1.023 1.023 0 0 1-.453.083 1.334 1.334 0 0 1-.866-.264.965.965 0 0 1-.329-.801.993.993 0 0 1 .076-.431 1.02 1.02 0 0 1 .242-.363 1.478 1.478 0 0 1 1.043-.303h.952v-.181a.696.696 0 0 0-.136-.454.553.553 0 0 0-.438-.154.695.695 0 0 0-.378.086.48.48 0 0 0-.193.254l-.99-.144a1.26 1.26 0 0 1 .257-.563c.14-.174.321-.302.533-.378.261-.091.54-.136.82-.129.053-.003.106-.007.163-.007Zm4.384.007c.174 0 .347.038.506.114.182.083.34.211.458.374.257.423.377.911.351 1.406a2.53 2.53 0 0 1-.355 1.448 1.148 1.148 0 0 1-1.009.517c-.204 0-.401-.045-.582-.136a1.052 1.052 0 0 1-.48-.457 1.298 1.298 0 0 1-.114-.234h-.045l.004 1.784h-1.059v-4.713h.904l.117.805h.057c.068-.208.177-.401.328-.56a1.129 1.129 0 0 1 .843-.344h.076v-.004Zm7.559.084h.903l.113.805h.053a1.37 1.37 0 0 1 .235-.484.813.813 0 0 1 .313-.242.82.82 0 0 1 .39-.076h.234v1.051h-.401a.662.662 0 0 0-.313.008.623.623 0 0 0-.272.155.663.663 0 0 0-.174.26.683.683 0 0 0-.027.314v1.875h-1.054v-3.666Zm-17.515.003h3.262v.896L3.73 13.104l.034.113h1.973l.042.9H2.4v-.9l1.931-1.754-.045-.117H2.441v-.896Zm11.815 0h1.055v3.659h-1.055V10.45Zm3.443.684.019.016a.69.69 0 0 0-.351.045.756.756 0 0 0-.287.204c-.11.155-.174.336-.189.522h1.545c-.034-.526-.257-.787-.74-.787h.003Zm-5.718.163c-.026 0-.057 0-.083.004a.78.78 0 0 0-.31.053.746.746 0 0 0-.257.189 1.016 1.016 0 0 0-.204.695v.064c-.015.257.057.507.204.711a.634.634 0 0 0 .253.196.638.638 0 0 0 .314.061.644.644 0 0 0 .578-.265c.14-.223.204-.48.189-.74a1.216 1.216 0 0 0-.181-.711.677.677 0 0 0-.503-.257Zm-4.509 1.266a.464.464 0 0 0-.268.102.373.373 0 0 0-.114.276c0 .053.008.106.027.155a.375.375 0 0 0 .087.132.576.576 0 0 0 .397.11v.004a.863.863 0 0 0 .563-.182.573.573 0 0 0 .211-.457v-.14h-.903Z", + sentry: + "M13.91 2.505c-.873-1.448-2.972-1.448-3.844 0L6.904 7.92a15.478 15.478 0 0 1 8.53 12.811h-2.221A13.301 13.301 0 0 0 5.784 9.814l-2.926 5.06a7.65 7.65 0 0 1 4.435 5.848H2.194a.365.365 0 0 1-.298-.534l1.413-2.402a5.16 5.16 0 0 0-1.614-.913L.296 19.275a2.182 2.182 0 0 0 .812 2.999 2.24 2.24 0 0 0 1.086.288h6.983a9.322 9.322 0 0 0-3.845-8.318l1.11-1.922a11.47 11.47 0 0 1 4.95 10.24h5.915a17.242 17.242 0 0 0-7.885-15.28l2.244-3.845a.37.37 0 0 1 .504-.13c.255.14 9.75 16.708 9.928 16.9a.365.365 0 0 1-.327.543h-2.287c.029.612.029 1.223 0 1.831h2.297a2.206 2.206 0 0 0 1.922-3.31z", + vercel: "m12 1.608 12 20.784H0Z", + cloudflare: + "M16.5088 16.8447c.1475-.5068.0908-.9707-.1553-1.3154-.2246-.3164-.6045-.499-1.0615-.5205l-8.6592-.1123a.1559.1559 0 0 1-.1333-.0713c-.0283-.042-.0351-.0986-.021-.1553.0278-.084.1123-.1484.2036-.1562l8.7359-.1123c1.0351-.0489 2.1601-.8868 2.5537-1.9136l.499-1.3013c.0215-.0561.0293-.1128.0147-.168-.5625-2.5463-2.835-4.4453-5.5499-4.4453-2.5039 0-4.6284 1.6177-5.3876 3.8614-.4927-.3658-1.1187-.5625-1.794-.499-1.2026.119-2.1665 1.083-2.2861 2.2856-.0283.31-.0069.6128.0635.894C1.5683 13.171 0 14.7754 0 16.752c0 .1748.0142.3515.0352.5273.0141.083.0844.1475.1689.1475h15.9814c.0909 0 .1758-.0645.2032-.1553l.12-.4268zm2.7568-5.5634c-.0771 0-.1611 0-.2383.0112-.0566 0-.1054.0415-.127.0976l-.3378 1.1744c-.1475.5068-.0918.9707.1543 1.3164.2256.3164.6055.498 1.0625.5195l1.8437.1133c.0557 0 .1055.0263.1329.0703.0283.043.0351.1074.0214.1562-.0283.084-.1132.1485-.204.1553l-1.921.1123c-1.041.0488-2.1582.8867-2.5527 1.914l-.1406.3585c-.0283.0713.0215.1416.0986.1416h6.5977c.0771 0 .1474-.0489.169-.126.1122-.4082.1757-.837.1757-1.2803 0-2.6025-2.125-4.727-4.7344-4.727", + neon: "M24 0V24l-9.365-8.045V24H0V0ZM2.942 21.087h8.751V9.563l9.365 8.204V2.919L2.942 2.914Z", + posthog: + "M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z", + canva: + "M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zM6.962 7.68c.754 0 1.337.549 1.405 1.2.069.583-.171 1.097-.822 1.406-.343.171-.48.172-.549.069-.034-.069 0-.137.069-.206.617-.514.617-.926.548-1.508-.034-.378-.308-.618-.583-.618-1.2 0-2.914 2.674-2.674 4.629.103.754.549 1.646 1.509 1.646.308 0 .65-.103.96-.24.5-.264.799-.47 1.097-.8-.073-.885.704-2.046 1.851-2.046.515 0 .926.205.96.583.068.514-.377.582-.514.582s-.378-.034-.378-.17c-.034-.138.309-.07.275-.378-.035-.206-.24-.274-.446-.274-.72 0-1.131.994-1.029 1.611.035.275.172.549.447.549.205 0 .514-.31.617-.755.068-.308.343-.514.583-.514.102 0 .17.034.205.171v.138c-.034.137-.137.548-.102.651 0 .069.034.171.17.171.092 0 .436-.18.777-.459.117-.59.253-1.298.253-1.357.034-.24.137-.48.617-.48.103 0 .171.034.205.171v.138l-.136.617c.445-.583 1.097-.994 1.508-.994.172 0 .309.102.309.274 0 .103 0 .274-.069.446-.137.377-.309.96-.412 1.474 0 .137.035.274.207.274.171 0 .685-.206 1.096-.754l.007-.004c-.002-.068-.007-.134-.007-.202 0-.411.035-.754.104-.994.068-.274.411-.514.617-.514.103 0 .205.069.205.171 0 .035 0 .103-.034.137-.137.446-.24.857-.24 1.269 0 .24.034.582.102.788 0 .034.035.069.07.069.068 0 .548-.445.89-1.028-.308-.206-.48-.549-.48-.96 0-.72.446-1.097.858-1.097.343 0 .617.24.617.72 0 .308-.103.65-.274.96h.102a.77.77 0 0 0 .584-.24.293.293 0 0 1 .134-.117c.335-.425.83-.74 1.41-.74.48 0 .924.205.959.582.068.515-.378.618-.515.618l-.002-.002c-.138 0-.377-.035-.377-.172 0-.137.309-.068.274-.376-.034-.206-.24-.275-.446-.275-.686 0-1.13.891-1.028 1.611.034.275.171.583.445.583.206 0 .515-.308.652-.754.068-.274.343-.514.583-.514.103 0 .17.034.205.171 0 .069 0 .206-.137.652-.17.308-.171.48-.137.617.034.274.171.48.309.583.034.034.068.102.068.102 0 .069-.034.138-.137.138-.034 0-.068 0-.103-.035-.514-.205-.72-.548-.789-.891-.205.24-.445.377-.72.377-.445 0-.89-.411-.96-.926a1.609 1.609 0 0 1 .075-.649c-.203.13-.422.203-.623.203h-.17c-.447.652-.927 1.098-1.27 1.303a.896.896 0 0 1-.377.104c-.068 0-.171-.035-.205-.104-.095-.152-.156-.392-.193-.667-.481.527-1.145.805-1.453.805-.343 0-.548-.206-.582-.55v-.376c.102-.754.377-1.2.377-1.337a.074.074 0 0 0-.069-.07c-.24 0-1.028.824-1.166 1.373l-.103.445c-.068.309-.377.515-.582.515-.103 0-.172-.035-.206-.172v-.137l.046-.233c-.435.31-.87.508-1.075.508-.308 0-.48-.172-.514-.412-.206.274-.445.412-.754.412-.352 0-.696-.24-.862-.593-.244.275-.523.553-.852.764-.48.309-1.028.549-1.68.549-.582 0-1.097-.309-1.371-.583-.412-.377-.651-.96-.686-1.509-.205-1.68.823-3.84 2.4-4.8.378-.205.755-.343 1.132-.343zm9.77 3.291c-.104 0-.172.172-.172.343 0 .274.137.583.309.755a1.74 1.74 0 0 0 .102-.583c0-.343-.137-.515-.24-.515z", + webflow: + "m24 4.515-7.658 14.97H9.149l3.205-6.204h-.144C9.566 16.713 5.621 18.973 0 19.485v-6.118s3.596-.213 5.71-2.435H0V4.515h6.417v5.278l.144-.001 2.622-5.277h4.854v5.244h.144l2.72-5.244H24Z", + paypal: + "M15.607 4.653H8.941L6.645 19.251H1.82L4.862 0h7.995c3.754 0 6.375 2.294 6.473 5.513-.648-.478-2.105-.86-3.722-.86m6.57 5.546c0 3.41-3.01 6.853-6.958 6.853h-2.493L11.595 24H6.74l1.845-11.538h3.592c4.208 0 7.346-3.634 7.153-6.949a5.24 5.24 0 0 1 2.848 4.686M9.653 5.546h6.408c.907 0 1.942.222 2.363.541-.195 2.741-2.655 5.483-6.441 5.483H8.714Z", + square: + "M4.01 0A4.01 4.01 0 000 4.01v15.98c0 2.21 1.8 4 4.01 4.01h15.98C22.2 24 24 22.2 24 19.99V4A4.01 4.01 0 0019.99 0H4zm1.62 4.36h12.74c.7 0 1.26.57 1.26 1.27v12.74c0 .7-.56 1.27-1.26 1.27H5.63c-.7 0-1.26-.57-1.26-1.27V5.63a1.27 1.27 0 011.26-1.27zm3.83 4.35a.73.73 0 00-.73.73v5.09c0 .4.32.72.72.72h5.1a.73.73 0 00.73-.72V9.44a.73.73 0 00-.73-.73h-5.1Z", + huggingface: + "M12.025 1.13c-5.77 0-10.449 4.647-10.449 10.378 0 1.112.178 2.181.503 3.185.064-.222.203-.444.416-.577a.96.96 0 0 1 .524-.15c.293 0 .584.124.84.284.278.173.48.408.71.694.226.282.458.611.684.951v-.014c.017-.324.106-.622.264-.874s.403-.487.762-.543c.3-.047.596.06.787.203s.31.313.4.467c.15.257.212.468.233.542.01.026.653 1.552 1.657 2.54.616.605 1.01 1.223 1.082 1.912.055.537-.096 1.059-.38 1.572.637.121 1.294.187 1.967.187.657 0 1.298-.063 1.921-.178-.287-.517-.44-1.041-.384-1.581.07-.69.465-1.307 1.081-1.913 1.004-.987 1.647-2.513 1.657-2.539.021-.074.083-.285.233-.542.09-.154.208-.323.4-.467a1.08 1.08 0 0 1 .787-.203c.359.056.604.29.762.543s.247.55.265.874v.015c.225-.34.457-.67.683-.952.23-.286.432-.52.71-.694.257-.16.547-.284.84-.285a.97.97 0 0 1 .524.151c.228.143.373.388.43.625l.006.04a10.3 10.3 0 0 0 .534-3.273c0-5.731-4.678-10.378-10.449-10.378M8.327 6.583a1.5 1.5 0 0 1 .713.174 1.487 1.487 0 0 1 .617 2.013c-.183.343-.762-.214-1.102-.094-.38.134-.532.914-.917.71a1.487 1.487 0 0 1 .69-2.803m7.486 0a1.487 1.487 0 0 1 .689 2.803c-.385.204-.536-.576-.916-.71-.34-.12-.92.437-1.103.094a1.487 1.487 0 0 1 .617-2.013 1.5 1.5 0 0 1 .713-.174m-10.68 1.55a.96.96 0 1 1 0 1.921.96.96 0 0 1 0-1.92m13.838 0a.96.96 0 1 1 0 1.92.96.96 0 0 1 0-1.92M8.489 11.458c.588.01 1.965 1.157 3.572 1.164 1.607-.007 2.984-1.155 3.572-1.164.196-.003.305.12.305.454 0 .886-.424 2.328-1.563 3.202-.22-.756-1.396-1.366-1.63-1.32q-.011.001-.02.006l-.044.026-.01.008-.03.024q-.018.017-.035.036l-.032.04a1 1 0 0 0-.058.09l-.014.025q-.049.088-.11.19a1 1 0 0 1-.083.116 1.2 1.2 0 0 1-.173.18q-.035.029-.075.058a1.3 1.3 0 0 1-.251-.243 1 1 0 0 1-.076-.107c-.124-.193-.177-.363-.337-.444-.034-.016-.104-.008-.2.022q-.094.03-.216.087-.06.028-.125.063l-.13.074q-.067.04-.136.086a3 3 0 0 0-.135.096 3 3 0 0 0-.26.219 2 2 0 0 0-.12.121 2 2 0 0 0-.106.128l-.002.002a2 2 0 0 0-.09.132l-.001.001a1.2 1.2 0 0 0-.105.212q-.013.036-.024.073c-1.139-.875-1.563-2.317-1.563-3.203 0-.334.109-.457.305-.454m.836 10.354c.824-1.19.766-2.082-.365-3.194-1.13-1.112-1.789-2.738-1.789-2.738s-.246-.945-.806-.858-.97 1.499.202 2.362c1.173.864-.233 1.45-.685.64-.45-.812-1.683-2.896-2.322-3.295s-1.089-.175-.938.647 2.822 2.813 2.562 3.244-1.176-.506-1.176-.506-2.866-2.567-3.49-1.898.473 1.23 2.037 2.16c1.564.932 1.686 1.178 1.464 1.53s-3.675-2.511-4-1.297c-.323 1.214 3.524 1.567 3.287 2.405-.238.839-2.71-1.587-3.216-.642-.506.946 3.49 2.056 3.522 2.064 1.29.33 4.568 1.028 5.713-.624m5.349 0c-.824-1.19-.766-2.082.365-3.194 1.13-1.112 1.789-2.738 1.789-2.738s.246-.945.806-.858.97 1.499-.202 2.362c-1.173.864.233 1.45.685.64.451-.812 1.683-2.896 2.322-3.295s1.089-.175.938.647-2.822 2.813-2.562 3.244 1.176-.506 1.176-.506 2.866-2.567 3.49-1.898-.473 1.23-2.037 2.16c-1.564.932-1.686 1.178-1.464 1.53s3.675-2.511 4-1.297c.323 1.214-3.524 1.567-3.287 2.405.238.839 2.71-1.587 3.216-.642.506.946-3.49 2.056-3.522 2.064-1.29.33-4.568 1.028-5.713-.624", +}; diff --git a/apps/desktop/src/ui/settingsIndex.ts b/apps/desktop/src/ui/settingsIndex.ts index 3fb7520bb..bb91d1a05 100644 --- a/apps/desktop/src/ui/settingsIndex.ts +++ b/apps/desktop/src/ui/settingsIndex.ts @@ -260,6 +260,12 @@ export const SETTINGS_INDEX: SettingEntry[] = [ }, { section: "connections", title: "Not signed in", keywords: "auth login account token" }, { section: "connections", title: "No accounts", keywords: "provider sign in auth login" }, + { + section: "connections", + title: "Apps", + keywords: + "connectors plugins integrations apps gallery linear notion jira confluence sentry vercel cloudflare zapier canva mcp oauth connect", + }, // ------------------------------------------------------------ Capabilities { diff --git a/scripts/comment-baseline.txt b/scripts/comment-baseline.txt index 998677fe0..48d60d01f 100644 --- a/scripts/comment-baseline.txt +++ b/scripts/comment-baseline.txt @@ -36,7 +36,7 @@ 4 apps/desktop/src/acp/mock.notices.test.ts 8 apps/desktop/src/acp/mock.remote.test.ts 3 apps/desktop/src/acp/mock.tools.test.ts -115 apps/desktop/src/acp/mock.ts +114 apps/desktop/src/acp/mock.ts 3 apps/desktop/src/acp/mockFixtures.ts 3 apps/desktop/src/acp/mockFolders.ts 4 apps/desktop/src/acp/mockGit.ts