@useavalon/caelence-agent 0.1.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/README.md +201 -0
- package/bin/harness.ts +10 -0
- package/package.json +75 -0
- package/skills/copy-editor/SKILL.md +74 -0
- package/skills/copy-editor/references/anti-slop.md +62 -0
- package/skills/copy-editor/references/ui-states.md +46 -0
- package/skills/copy-editor/scripts/lint-copy.py +78 -0
- package/skills/copy-harry-dry/SKILL.md +120 -0
- package/skills/copy-rmbc/SKILL.md +97 -0
- package/skills/copywriting/SKILL.md +73 -0
- package/skills/impeccable/SKILL.md +133 -0
- package/skills/impeccable/references/visual-slop.md +36 -0
- package/src/cli/main.test.ts +36 -0
- package/src/cli/main.ts +384 -0
- package/src/cli/media-models.ts +82 -0
- package/src/cli/models.ts +43 -0
- package/src/cli/openrouter-live.test.ts +35 -0
- package/src/cli/openrouter-live.ts +72 -0
- package/src/cli/openrouter-modality.test.ts +25 -0
- package/src/cli/openrouter-modality.ts +83 -0
- package/src/cli/picker.test.ts +53 -0
- package/src/cli/picker.ts +48 -0
- package/src/cli/plain-text.ts +15 -0
- package/src/cli/slash-dispatch.test.ts +213 -0
- package/src/cli/slash-dispatch.ts +298 -0
- package/src/cli/slash.test.ts +113 -0
- package/src/cli/slash.ts +119 -0
- package/src/cli/theme.test.ts +10 -0
- package/src/cli/theme.ts +44 -0
- package/src/cli/tui-layout.test.ts +33 -0
- package/src/cli/tui-layout.ts +33 -0
- package/src/cli/tui-screen.test.ts +33 -0
- package/src/cli/tui-screen.ts +13 -0
- package/src/cli/tui.tsx +735 -0
- package/src/config.ts +86 -0
- package/src/core/approval.test.ts +60 -0
- package/src/core/approval.ts +83 -0
- package/src/core/auto-router.test.ts +31 -0
- package/src/core/auto-router.ts +66 -0
- package/src/core/errors.ts +67 -0
- package/src/core/events.ts +85 -0
- package/src/core/hooks.test.ts +66 -0
- package/src/core/hooks.ts +94 -0
- package/src/core/ids.ts +6 -0
- package/src/core/instructions.test.ts +49 -0
- package/src/core/instructions.ts +44 -0
- package/src/core/logger.ts +45 -0
- package/src/core/mcp.ts +191 -0
- package/src/core/mode.test.ts +63 -0
- package/src/core/mode.ts +60 -0
- package/src/core/run-turn.test.ts +339 -0
- package/src/core/run-turn.ts +487 -0
- package/src/core/session.test.ts +203 -0
- package/src/core/session.ts +349 -0
- package/src/core/stdio-mcp.ts +143 -0
- package/src/core/strands.ts +262 -0
- package/src/core/usage.test.ts +69 -0
- package/src/core/usage.ts +171 -0
- package/src/desktop/bridge.test.ts +331 -0
- package/src/desktop/bridge.ts +729 -0
- package/src/desktop/open-local.test.ts +40 -0
- package/src/desktop/open-local.ts +52 -0
- package/src/desktop/preview-cache.test.ts +36 -0
- package/src/desktop/preview-cache.ts +63 -0
- package/src/desktop/secrets.test.ts +44 -0
- package/src/desktop/secrets.ts +60 -0
- package/src/evals/runner.test.ts +43 -0
- package/src/evals/runner.ts +225 -0
- package/src/index.ts +132 -0
- package/src/init.test.ts +54 -0
- package/src/init.ts +117 -0
- package/src/integrations/catalog-data.json +424 -0
- package/src/integrations/catalog.ts +81 -0
- package/src/integrations/connect.ts +231 -0
- package/src/integrations/integrations.test.ts +329 -0
- package/src/integrations/marks/airtable.svg +1 -0
- package/src/integrations/marks/algolia-mcp.svg +1 -0
- package/src/integrations/marks/canva.jpg +0 -0
- package/src/integrations/marks/cloudflare-mcp.svg +1 -0
- package/src/integrations/marks/contentful-mcp.svg +1 -0
- package/src/integrations/marks/craft.png +0 -0
- package/src/integrations/marks/dinero.png +0 -0
- package/src/integrations/marks/figma.svg +1 -0
- package/src/integrations/marks/gitlab.svg +1 -0
- package/src/integrations/marks/google-calendar.svg +1 -0
- package/src/integrations/marks/google-docs.svg +1 -0
- package/src/integrations/marks/google-drive.svg +1 -0
- package/src/integrations/marks/google-gmail.svg +1 -0
- package/src/integrations/marks/google-sheets.svg +1 -0
- package/src/integrations/marks/google-slides.svg +1 -0
- package/src/integrations/marks/granola.png +0 -0
- package/src/integrations/marks/jira.svg +1 -0
- package/src/integrations/marks/linear.svg +1 -0
- package/src/integrations/marks/microsoft-365.svg +7 -0
- package/src/integrations/marks/miro.svg +1 -0
- package/src/integrations/marks/mixpanel-mcp.svg +1 -0
- package/src/integrations/marks/monday.png +0 -0
- package/src/integrations/marks/mux-mcp.png +0 -0
- package/src/integrations/marks/neon-mcp.svg +1 -0
- package/src/integrations/marks/notion.svg +1 -0
- package/src/integrations/marks/paddle-mcp.svg +1 -0
- package/src/integrations/marks/posthog-mcp.svg +1 -0
- package/src/integrations/marks/prismic-mcp.svg +1 -0
- package/src/integrations/marks/replicate-mcp.svg +1 -0
- package/src/integrations/marks/resend-mcp.svg +1 -0
- package/src/integrations/marks/sanity-mcp.svg +1 -0
- package/src/integrations/marks/sceneplane.png +0 -0
- package/src/integrations/marks/sentry-mcp.svg +1 -0
- package/src/integrations/marks/stripe-mcp.svg +1 -0
- package/src/integrations/marks/supabase-mcp.svg +1 -0
- package/src/integrations/marks/upstash-mcp.svg +1 -0
- package/src/integrations/marks/vercel.svg +1 -0
- package/src/integrations/marks/webflow.svg +1 -0
- package/src/integrations/mcp-oauth.test.ts +39 -0
- package/src/integrations/mcp-oauth.ts +330 -0
- package/src/integrations/oauth-clients.test.ts +77 -0
- package/src/integrations/oauth-clients.ts +127 -0
- package/src/integrations/oauth.ts +145 -0
- package/src/integrations/remote-mcp.ts +307 -0
- package/src/integrations/store.ts +149 -0
- package/src/media/openrouter-generate.test.ts +80 -0
- package/src/media/openrouter-generate.ts +178 -0
- package/src/media/prefs.ts +54 -0
- package/src/observability/categories.ts +41 -0
- package/src/observability/create.test.ts +56 -0
- package/src/observability/create.ts +45 -0
- package/src/observability/experiments.ts +113 -0
- package/src/observability/fake.ts +191 -0
- package/src/observability/index.ts +57 -0
- package/src/observability/judges.ts +91 -0
- package/src/observability/langfuse.ts +275 -0
- package/src/observability/noop.ts +33 -0
- package/src/observability/observability.test.ts +113 -0
- package/src/observability/prompts.ts +98 -0
- package/src/observability/regression-items.ts +158 -0
- package/src/observability/sanitize.test.ts +26 -0
- package/src/observability/sanitize.ts +57 -0
- package/src/observability/types.ts +122 -0
- package/src/observability/version.ts +41 -0
- package/src/product.ts +2 -0
- package/src/runtime.test.ts +98 -0
- package/src/runtime.ts +438 -0
- package/src/skills/author-skill.ts +49 -0
- package/src/skills/create-skill.test.ts +108 -0
- package/src/skills/create-skill.ts +70 -0
- package/src/skills/loader.test.ts +122 -0
- package/src/skills/loader.ts +162 -0
- package/src/skills/registry.test.ts +190 -0
- package/src/skills/registry.ts +402 -0
- package/src/skills/skill-command.ts +53 -0
- package/src/skills/user-dir.ts +8 -0
- package/src/tools/git.test.ts +71 -0
- package/src/tools/git.ts +126 -0
- package/src/tools/local.ts +258 -0
- package/src/tools/paths.test.ts +24 -0
- package/src/tools/paths.ts +39 -0
- package/src/tools/read-skill.ts +43 -0
- package/src/tools/subagent.test.ts +77 -0
- package/src/tools/subagent.ts +74 -0
- package/src/tools/todo.test.ts +25 -0
- package/src/tools/todo.ts +70 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { randomBytes } from "node:crypto";
|
|
3
|
+
import { PRODUCT_NAME } from "../product.ts";
|
|
4
|
+
import { findMcpCatalog, type McpAuthKind, type McpCatalogEntry } from "./catalog.ts";
|
|
5
|
+
import { canonicalResourceUri, type DiscoveredMcpAuth, discoverMcpAuth } from "./mcp-oauth.ts";
|
|
6
|
+
import {
|
|
7
|
+
buildAuthorizeUrl,
|
|
8
|
+
exchangeAuthorizationCode,
|
|
9
|
+
type OAuthClient,
|
|
10
|
+
type OAuthSpec,
|
|
11
|
+
pkcePair,
|
|
12
|
+
} from "./oauth.ts";
|
|
13
|
+
import {
|
|
14
|
+
missingProviderClientMessage,
|
|
15
|
+
type ProviderOAuthKind,
|
|
16
|
+
readProviderOAuth,
|
|
17
|
+
} from "./oauth-clients.ts";
|
|
18
|
+
import { connectionFromCatalog, type StoredMcpConnection, upsertConnection } from "./store.ts";
|
|
19
|
+
|
|
20
|
+
export const FIGMA_DESKTOP_MCP = "http://127.0.0.1:3845/mcp";
|
|
21
|
+
export const FIGMA_DESKTOP_DOWN =
|
|
22
|
+
"Figma desktop MCP is not running at 127.0.0.1:3845. Open Figma desktop, switch to Dev Mode, enable the desktop MCP server, then Connect again.";
|
|
23
|
+
|
|
24
|
+
const INIT_BODY = JSON.stringify({
|
|
25
|
+
jsonrpc: "2.0",
|
|
26
|
+
id: 1,
|
|
27
|
+
method: "initialize",
|
|
28
|
+
params: {
|
|
29
|
+
protocolVersion: "2025-06-18",
|
|
30
|
+
capabilities: {},
|
|
31
|
+
clientInfo: { name: "caelence-agent", version: "0.1" },
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export interface OAuthCallback {
|
|
36
|
+
code?: string;
|
|
37
|
+
error?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ConnectMcpOptions {
|
|
41
|
+
connectorId: string;
|
|
42
|
+
redirectUri: string;
|
|
43
|
+
waitForCallback: (state: string) => Promise<OAuthCallback>;
|
|
44
|
+
openUrl?: (url: string) => void;
|
|
45
|
+
fetchImpl?: typeof fetch;
|
|
46
|
+
now?: () => Date;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function openSystemBrowser(url: string): void {
|
|
50
|
+
if (process.platform === "darwin") {
|
|
51
|
+
spawn("/usr/bin/open", [url], { detached: true, stdio: "ignore" }).unref();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (process.platform === "win32") {
|
|
55
|
+
spawn("cmd", ["/c", "start", "", url], { detached: true, stdio: "ignore" }).unref();
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
spawn("xdg-open", [url], { detached: true, stdio: "ignore" }).unref();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export async function probeMcp(
|
|
62
|
+
mcpUrl: string,
|
|
63
|
+
fetchImpl: typeof fetch = globalThis.fetch,
|
|
64
|
+
): Promise<boolean> {
|
|
65
|
+
try {
|
|
66
|
+
const res = await fetchImpl(mcpUrl, {
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers: {
|
|
69
|
+
Accept: "application/json, text/event-stream",
|
|
70
|
+
"Content-Type": "application/json",
|
|
71
|
+
"MCP-Protocol-Version": "2025-06-18",
|
|
72
|
+
},
|
|
73
|
+
body: INIT_BODY,
|
|
74
|
+
signal: AbortSignal.timeout(1500),
|
|
75
|
+
});
|
|
76
|
+
return res.status !== 404 && res.status < 500;
|
|
77
|
+
} catch {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export async function connectMcp(options: ConnectMcpOptions): Promise<StoredMcpConnection> {
|
|
83
|
+
const entry = findMcpCatalog(options.connectorId);
|
|
84
|
+
if (!entry) throw new Error(`No MCP catalog entry ${options.connectorId}.`);
|
|
85
|
+
if (entry.id === "figma" || entry.auth === "desktop") return connectFigma(options, entry);
|
|
86
|
+
return connectRemote(options, entry);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async function connectFigma(
|
|
90
|
+
options: ConnectMcpOptions,
|
|
91
|
+
entry: McpCatalogEntry,
|
|
92
|
+
): Promise<StoredMcpConnection> {
|
|
93
|
+
const fetchImpl = options.fetchImpl ?? globalThis.fetch;
|
|
94
|
+
if (await probeMcp(FIGMA_DESKTOP_MCP, fetchImpl)) {
|
|
95
|
+
const row = connectionFromCatalog({ ...entry, mcpUrl: FIGMA_DESKTOP_MCP }, { accessToken: "" });
|
|
96
|
+
if (options.now) row.connectedAt = options.now().toISOString();
|
|
97
|
+
upsertConnection(row);
|
|
98
|
+
return row;
|
|
99
|
+
}
|
|
100
|
+
throw new Error(FIGMA_DESKTOP_DOWN);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async function connectRemote(
|
|
104
|
+
options: ConnectMcpOptions,
|
|
105
|
+
entry: McpCatalogEntry,
|
|
106
|
+
): Promise<StoredMcpConnection> {
|
|
107
|
+
const fetchImpl = options.fetchImpl ?? globalThis.fetch;
|
|
108
|
+
const auth = entry.auth ?? "dcr";
|
|
109
|
+
const stored = providerClient(auth);
|
|
110
|
+
if ((auth === "google" || auth === "microsoft") && !stored) {
|
|
111
|
+
throw new Error(missingProviderClientMessage(auth));
|
|
112
|
+
}
|
|
113
|
+
const discovered = await discoverOrFallback({
|
|
114
|
+
mcpUrl: entry.mcpUrl,
|
|
115
|
+
redirectUri: options.redirectUri,
|
|
116
|
+
clientName: PRODUCT_NAME,
|
|
117
|
+
auth,
|
|
118
|
+
client: stored,
|
|
119
|
+
fetchImpl,
|
|
120
|
+
});
|
|
121
|
+
const spec: OAuthSpec = {
|
|
122
|
+
authorizeUrl: discovered.authorizeUrl,
|
|
123
|
+
tokenUrl: discovered.tokenUrl,
|
|
124
|
+
tokenAuth: discovered.tokenAuth,
|
|
125
|
+
pkce: true,
|
|
126
|
+
extraAuthParams:
|
|
127
|
+
auth === "google"
|
|
128
|
+
? { access_type: "offline", prompt: "consent", include_granted_scopes: "true" }
|
|
129
|
+
: undefined,
|
|
130
|
+
};
|
|
131
|
+
const { verifier, challenge } = await pkcePair();
|
|
132
|
+
const state = randomBytes(16).toString("hex");
|
|
133
|
+
const useResource = auth === "dcr";
|
|
134
|
+
const authorizeUrl = buildAuthorizeUrl({
|
|
135
|
+
spec,
|
|
136
|
+
clientId: discovered.client.clientId,
|
|
137
|
+
redirectUri: options.redirectUri,
|
|
138
|
+
state,
|
|
139
|
+
scopes: entry.scopes,
|
|
140
|
+
challenge,
|
|
141
|
+
resource: useResource ? discovered.resource : undefined,
|
|
142
|
+
});
|
|
143
|
+
(options.openUrl ?? openSystemBrowser)(authorizeUrl);
|
|
144
|
+
const callback = await options.waitForCallback(state);
|
|
145
|
+
if (callback.error || !callback.code) {
|
|
146
|
+
throw new Error(
|
|
147
|
+
callback.error
|
|
148
|
+
? `Sign-in was denied (${callback.error}). Try Connect again.`
|
|
149
|
+
: "Sign-in did not return a code. Try Connect again.",
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
const tokens = await exchangeAuthorizationCode({
|
|
153
|
+
spec,
|
|
154
|
+
client: {
|
|
155
|
+
clientId: discovered.client.clientId,
|
|
156
|
+
clientSecret: discovered.client.clientSecret,
|
|
157
|
+
},
|
|
158
|
+
code: callback.code,
|
|
159
|
+
redirectUri: options.redirectUri,
|
|
160
|
+
verifier,
|
|
161
|
+
resource: useResource ? discovered.resource : undefined,
|
|
162
|
+
fetchImpl,
|
|
163
|
+
});
|
|
164
|
+
const row = connectionFromCatalog(entry, {
|
|
165
|
+
accessToken: tokens.access_token,
|
|
166
|
+
refreshToken: tokens.refresh_token,
|
|
167
|
+
});
|
|
168
|
+
if (options.now) row.connectedAt = options.now().toISOString();
|
|
169
|
+
upsertConnection(row);
|
|
170
|
+
return row;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function providerClient(auth: McpAuthKind): OAuthClient | undefined {
|
|
174
|
+
if (auth !== "google" && auth !== "microsoft") return undefined;
|
|
175
|
+
return readProviderOAuth(auth);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
async function discoverOrFallback(input: {
|
|
179
|
+
mcpUrl: string;
|
|
180
|
+
redirectUri: string;
|
|
181
|
+
clientName: string;
|
|
182
|
+
auth: McpAuthKind;
|
|
183
|
+
client?: OAuthClient;
|
|
184
|
+
fetchImpl: typeof fetch;
|
|
185
|
+
}): Promise<DiscoveredMcpAuth> {
|
|
186
|
+
try {
|
|
187
|
+
return await discoverMcpAuth({
|
|
188
|
+
mcpUrl: input.mcpUrl,
|
|
189
|
+
redirectUri: input.redirectUri,
|
|
190
|
+
clientName: input.clientName,
|
|
191
|
+
client: input.client,
|
|
192
|
+
fetchImpl: input.fetchImpl,
|
|
193
|
+
});
|
|
194
|
+
} catch (err) {
|
|
195
|
+
if ((input.auth === "google" || input.auth === "microsoft") && input.client) {
|
|
196
|
+
return staticProviderAuth(input.auth, input.client, input.mcpUrl);
|
|
197
|
+
}
|
|
198
|
+
throw err;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function staticProviderAuth(
|
|
203
|
+
kind: ProviderOAuthKind,
|
|
204
|
+
client: OAuthClient,
|
|
205
|
+
mcpUrl: string,
|
|
206
|
+
): DiscoveredMcpAuth {
|
|
207
|
+
const tokenAuth = client.clientSecret ? "body" : "none";
|
|
208
|
+
const endpoints =
|
|
209
|
+
kind === "google"
|
|
210
|
+
? {
|
|
211
|
+
authorizeUrl: "https://accounts.google.com/o/oauth2/v2/auth",
|
|
212
|
+
tokenUrl: "https://oauth2.googleapis.com/token",
|
|
213
|
+
}
|
|
214
|
+
: {
|
|
215
|
+
authorizeUrl: "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
|
|
216
|
+
tokenUrl: "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
|
|
217
|
+
};
|
|
218
|
+
return {
|
|
219
|
+
resource: canonicalResourceUri(mcpUrl),
|
|
220
|
+
authorizeUrl: endpoints.authorizeUrl,
|
|
221
|
+
tokenUrl: endpoints.tokenUrl,
|
|
222
|
+
tokenAuth,
|
|
223
|
+
client: { clientId: client.clientId, clientSecret: client.clientSecret, tokenAuth },
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function oauthResultPage(ok: boolean, detail: string): string {
|
|
228
|
+
const title = ok ? "Connected" : "Sign-in did not finish";
|
|
229
|
+
const escaped = detail.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
230
|
+
return `<!doctype html><html lang="en"><head><meta charset="utf-8"><title>${title}</title></head><body><h1>${title}</h1><p>${escaped}</p></body></html>`;
|
|
231
|
+
}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { findMcpCatalog, integrationLogoUrl, listedMcpCatalog, MCP_CATALOG } from "./catalog.ts";
|
|
6
|
+
import { connectMcp, FIGMA_DESKTOP_DOWN, FIGMA_DESKTOP_MCP } from "./connect.ts";
|
|
7
|
+
import { missingProviderClientMessage, writeProviderOAuth } from "./oauth-clients.ts";
|
|
8
|
+
import { namespaceRemoteTool } from "./remote-mcp.ts";
|
|
9
|
+
import {
|
|
10
|
+
listPublicIntegrations,
|
|
11
|
+
listStoredConnections,
|
|
12
|
+
removeConnection,
|
|
13
|
+
upsertConnection,
|
|
14
|
+
} from "./store.ts";
|
|
15
|
+
|
|
16
|
+
describe("MCP catalog", () => {
|
|
17
|
+
test("lists hosted Linear, Notion, and Figma with MCP URLs", () => {
|
|
18
|
+
expect(findMcpCatalog("linear")?.mcpUrl).toBe("https://mcp.linear.app/mcp");
|
|
19
|
+
expect(findMcpCatalog("notion")?.mcpUrl).toBe("https://mcp.notion.com/mcp");
|
|
20
|
+
expect(findMcpCatalog("figma")?.mcpUrl).toBe("https://mcp.figma.com/mcp");
|
|
21
|
+
expect(MCP_CATALOG.length).toBeGreaterThan(10);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("namespaces remote tools", () => {
|
|
25
|
+
expect(namespaceRemoteTool("sanity-mcp", "query.documents")).toBe(
|
|
26
|
+
"sanity_mcp__query_documents",
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test("uses local brand-colored marks, not a text-color mask", () => {
|
|
31
|
+
expect(integrationLogoUrl("canva")).toStartWith("data:image/jpeg");
|
|
32
|
+
expect(integrationLogoUrl("neon-mcp")).toContain("34D59A");
|
|
33
|
+
expect(integrationLogoUrl("linear")).toStartWith("data:image/svg+xml");
|
|
34
|
+
expect(integrationLogoUrl("google-sheets")).toStartWith("data:image/svg+xml");
|
|
35
|
+
expect(integrationLogoUrl("monday")).toStartWith("data:image/png");
|
|
36
|
+
expect(integrationLogoUrl("mux-mcp")).toStartWith("data:image/png");
|
|
37
|
+
expect(integrationLogoUrl("microsoft-365")).toContain("F25022");
|
|
38
|
+
for (const item of MCP_CATALOG) {
|
|
39
|
+
expect(integrationLogoUrl(item.id)).toStartWith("data:");
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test("lists Figma desktop MCP before Google and Microsoft OAuth", () => {
|
|
44
|
+
expect(findMcpCatalog("figma")?.auth).toBe("desktop");
|
|
45
|
+
expect(findMcpCatalog("google-sheets")?.mcpUrl).toBe("https://sheetsmcp.googleapis.com/mcp/v1");
|
|
46
|
+
expect(findMcpCatalog("google-sheets")?.auth).toBe("google");
|
|
47
|
+
expect(findMcpCatalog("microsoft-365")?.mcpUrl).toBe(
|
|
48
|
+
"https://mcp.svc.cloud.microsoft/enterprise",
|
|
49
|
+
);
|
|
50
|
+
expect(findMcpCatalog("microsoft-365")?.auth).toBe("microsoft");
|
|
51
|
+
const ids = listedMcpCatalog().map((item) => item.id);
|
|
52
|
+
const setup = ids.filter((id) => id.startsWith("google-") || id === "microsoft-365");
|
|
53
|
+
expect(setup.length).toBeGreaterThan(1);
|
|
54
|
+
expect(ids.slice(-setup.length)).toEqual(setup);
|
|
55
|
+
expect(ids.indexOf("figma")).toBeLessThan(ids.indexOf("google-sheets"));
|
|
56
|
+
expect(listPublicIntegrations().find((item) => item.id === "figma")?.auth).toBe("desktop");
|
|
57
|
+
expect(listPublicIntegrations().find((item) => item.id === "google-sheets")?.auth).toBe(
|
|
58
|
+
"google",
|
|
59
|
+
);
|
|
60
|
+
expect(listPublicIntegrations().find((item) => item.id === "linear")?.auth).toBeUndefined();
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
describe("integration store", () => {
|
|
65
|
+
test("round-trips a connection without leaking it into the public list tokens", async () => {
|
|
66
|
+
const home = await mkdtemp(join(tmpdir(), "harness-int-"));
|
|
67
|
+
const prev = process.env.HARNESS_HOME;
|
|
68
|
+
process.env.HARNESS_HOME = home;
|
|
69
|
+
try {
|
|
70
|
+
upsertConnection({
|
|
71
|
+
id: "linear",
|
|
72
|
+
label: "Linear",
|
|
73
|
+
mcpUrl: "https://mcp.linear.app/mcp",
|
|
74
|
+
accessToken: "lin_secret_token",
|
|
75
|
+
connectedAt: "2026-01-01T00:00:00.000Z",
|
|
76
|
+
});
|
|
77
|
+
const stored = listStoredConnections();
|
|
78
|
+
expect(stored).toHaveLength(1);
|
|
79
|
+
expect(stored[0]?.accessToken).toBe("lin_secret_token");
|
|
80
|
+
const listed = listPublicIntegrations();
|
|
81
|
+
const linear = listed.find((item) => item.id === "linear");
|
|
82
|
+
expect(linear?.connected).toBe(true);
|
|
83
|
+
expect(JSON.stringify(listed)).not.toContain("lin_secret_token");
|
|
84
|
+
expect(removeConnection("linear")).toBe(true);
|
|
85
|
+
expect(listPublicIntegrations().find((item) => item.id === "linear")?.connected).toBe(false);
|
|
86
|
+
} finally {
|
|
87
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
88
|
+
else process.env.HARNESS_HOME = prev;
|
|
89
|
+
await rm(home, { recursive: true, force: true });
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
describe("one-click MCP connect", () => {
|
|
95
|
+
test("discovers, registers, exchanges, and stores Linear", async () => {
|
|
96
|
+
const home = await mkdtemp(join(tmpdir(), "harness-oauth-"));
|
|
97
|
+
const prev = process.env.HARNESS_HOME;
|
|
98
|
+
process.env.HARNESS_HOME = home;
|
|
99
|
+
const opened: string[] = [];
|
|
100
|
+
try {
|
|
101
|
+
const row = await connectMcp({
|
|
102
|
+
connectorId: "linear",
|
|
103
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
104
|
+
openUrl: (url) => opened.push(url),
|
|
105
|
+
waitForCallback: async (state) => {
|
|
106
|
+
expect(state.length).toBeGreaterThan(8);
|
|
107
|
+
return { code: "authcode" };
|
|
108
|
+
},
|
|
109
|
+
fetchImpl: (async (input) => {
|
|
110
|
+
const url = String(input);
|
|
111
|
+
if (url === "https://mcp.linear.app/mcp") {
|
|
112
|
+
return new Response("", {
|
|
113
|
+
status: 401,
|
|
114
|
+
headers: {
|
|
115
|
+
"WWW-Authenticate":
|
|
116
|
+
'Bearer realm="Linear", resource_metadata="https://mcp.linear.app/.well-known/oauth-protected-resource"',
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (url.endsWith("/.well-known/oauth-protected-resource")) {
|
|
121
|
+
return Response.json({
|
|
122
|
+
resource: "https://mcp.linear.app/mcp",
|
|
123
|
+
authorization_servers: ["https://mcp.linear.app"],
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (url.endsWith("/.well-known/oauth-authorization-server")) {
|
|
127
|
+
return Response.json({
|
|
128
|
+
issuer: "https://mcp.linear.app",
|
|
129
|
+
authorization_endpoint: "https://mcp.linear.app/authorize",
|
|
130
|
+
token_endpoint: "https://mcp.linear.app/token",
|
|
131
|
+
registration_endpoint: "https://mcp.linear.app/register",
|
|
132
|
+
token_endpoint_auth_methods_supported: ["none"],
|
|
133
|
+
code_challenge_methods_supported: ["S256"],
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
if (url === "https://mcp.linear.app/register") {
|
|
137
|
+
return Response.json({ client_id: "cli_linear" });
|
|
138
|
+
}
|
|
139
|
+
if (url === "https://mcp.linear.app/token") {
|
|
140
|
+
return Response.json({ access_token: "lin_live", refresh_token: "lin_refresh" });
|
|
141
|
+
}
|
|
142
|
+
return new Response("missing", { status: 404 });
|
|
143
|
+
}) as typeof fetch,
|
|
144
|
+
});
|
|
145
|
+
expect(row.id).toBe("linear");
|
|
146
|
+
expect(row.accessToken).toBe("lin_live");
|
|
147
|
+
expect(opened[0]).toContain("https://mcp.linear.app/authorize");
|
|
148
|
+
expect(opened[0]).toContain("client_id=cli_linear");
|
|
149
|
+
expect(opened[0]).toContain("code_challenge");
|
|
150
|
+
expect(listPublicIntegrations().find((item) => item.id === "linear")?.connected).toBe(true);
|
|
151
|
+
} finally {
|
|
152
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
153
|
+
else process.env.HARNESS_HOME = prev;
|
|
154
|
+
await rm(home, { recursive: true, force: true });
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
test("connects Figma through the desktop MCP when it is running", async () => {
|
|
159
|
+
const home = await mkdtemp(join(tmpdir(), "harness-figma-"));
|
|
160
|
+
const prev = process.env.HARNESS_HOME;
|
|
161
|
+
process.env.HARNESS_HOME = home;
|
|
162
|
+
const opened: string[] = [];
|
|
163
|
+
try {
|
|
164
|
+
const row = await connectMcp({
|
|
165
|
+
connectorId: "figma",
|
|
166
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
167
|
+
openUrl: (url) => opened.push(url),
|
|
168
|
+
waitForCallback: async () => ({ code: "unused" }),
|
|
169
|
+
fetchImpl: (async (input) => {
|
|
170
|
+
if (String(input) === FIGMA_DESKTOP_MCP) return Response.json({ ok: true });
|
|
171
|
+
return new Response("missing", { status: 404 });
|
|
172
|
+
}) as typeof fetch,
|
|
173
|
+
});
|
|
174
|
+
expect(row.mcpUrl).toBe(FIGMA_DESKTOP_MCP);
|
|
175
|
+
expect(opened).toEqual([]);
|
|
176
|
+
expect(listPublicIntegrations().find((item) => item.id === "figma")?.connected).toBe(true);
|
|
177
|
+
} finally {
|
|
178
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
179
|
+
else process.env.HARNESS_HOME = prev;
|
|
180
|
+
await rm(home, { recursive: true, force: true });
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
test("explains when the Figma desktop MCP is down", async () => {
|
|
185
|
+
const home = await mkdtemp(join(tmpdir(), "harness-figma-down-"));
|
|
186
|
+
const prev = process.env.HARNESS_HOME;
|
|
187
|
+
process.env.HARNESS_HOME = home;
|
|
188
|
+
try {
|
|
189
|
+
await expect(
|
|
190
|
+
connectMcp({
|
|
191
|
+
connectorId: "figma",
|
|
192
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
193
|
+
openUrl: () => {
|
|
194
|
+
throw new Error("Figma must not open a browser OAuth loop.");
|
|
195
|
+
},
|
|
196
|
+
waitForCallback: async () => ({ code: "unused" }),
|
|
197
|
+
fetchImpl: (async (input) => {
|
|
198
|
+
const url = String(input);
|
|
199
|
+
if (url === FIGMA_DESKTOP_MCP) return new Response("", { status: 404 });
|
|
200
|
+
throw new Error(`unexpected fetch ${url}`);
|
|
201
|
+
}) as typeof fetch,
|
|
202
|
+
}),
|
|
203
|
+
).rejects.toThrow(FIGMA_DESKTOP_DOWN);
|
|
204
|
+
} finally {
|
|
205
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
206
|
+
else process.env.HARNESS_HOME = prev;
|
|
207
|
+
await rm(home, { recursive: true, force: true });
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
test("Google Sheets Connect asks for a Desktop client id when none is stored", async () => {
|
|
212
|
+
const home = await mkdtemp(join(tmpdir(), "harness-google-none-"));
|
|
213
|
+
const prev = process.env.HARNESS_HOME;
|
|
214
|
+
const prevId = process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
215
|
+
const prevOauthId = process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
216
|
+
const prevGoogleId = process.env.GOOGLE_CLIENT_ID;
|
|
217
|
+
process.env.HARNESS_HOME = home;
|
|
218
|
+
delete process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
219
|
+
delete process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
220
|
+
delete process.env.GOOGLE_CLIENT_ID;
|
|
221
|
+
try {
|
|
222
|
+
await expect(
|
|
223
|
+
connectMcp({
|
|
224
|
+
connectorId: "google-sheets",
|
|
225
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
226
|
+
openUrl: () => undefined,
|
|
227
|
+
waitForCallback: async () => ({ code: "unused" }),
|
|
228
|
+
fetchImpl: (async () =>
|
|
229
|
+
new Response("missing", { status: 404 })) as unknown as typeof fetch,
|
|
230
|
+
}),
|
|
231
|
+
).rejects.toThrow(missingProviderClientMessage("google"));
|
|
232
|
+
} finally {
|
|
233
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
234
|
+
else process.env.HARNESS_HOME = prev;
|
|
235
|
+
if (prevId === undefined) delete process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
236
|
+
else process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID = prevId;
|
|
237
|
+
if (prevOauthId === undefined) delete process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
238
|
+
else process.env.GOOGLE_OAUTH_CLIENT_ID = prevOauthId;
|
|
239
|
+
if (prevGoogleId === undefined) delete process.env.GOOGLE_CLIENT_ID;
|
|
240
|
+
else process.env.GOOGLE_CLIENT_ID = prevGoogleId;
|
|
241
|
+
await rm(home, { recursive: true, force: true });
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
test("connects Google Sheets with a Settings Desktop client id", async () => {
|
|
246
|
+
const home = await mkdtemp(join(tmpdir(), "harness-google-settings-"));
|
|
247
|
+
const prev = process.env.HARNESS_HOME;
|
|
248
|
+
const prevId = process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
249
|
+
const prevOauthId = process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
250
|
+
const prevGoogleId = process.env.GOOGLE_CLIENT_ID;
|
|
251
|
+
process.env.HARNESS_HOME = home;
|
|
252
|
+
delete process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
253
|
+
delete process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
254
|
+
delete process.env.GOOGLE_CLIENT_ID;
|
|
255
|
+
const opened: string[] = [];
|
|
256
|
+
try {
|
|
257
|
+
writeProviderOAuth("google", { clientId: "user.apps.googleusercontent.com" });
|
|
258
|
+
const row = await connectMcp({
|
|
259
|
+
connectorId: "google-sheets",
|
|
260
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
261
|
+
openUrl: (url) => opened.push(url),
|
|
262
|
+
waitForCallback: async () => ({ code: "authcode" }),
|
|
263
|
+
fetchImpl: (async (input) => {
|
|
264
|
+
const url = String(input);
|
|
265
|
+
if (url === "https://oauth2.googleapis.com/token") {
|
|
266
|
+
return Response.json({ access_token: "ya29.sheets", refresh_token: "1//refresh" });
|
|
267
|
+
}
|
|
268
|
+
return new Response("missing", { status: 404 });
|
|
269
|
+
}) as typeof fetch,
|
|
270
|
+
});
|
|
271
|
+
expect(row.id).toBe("google-sheets");
|
|
272
|
+
expect(row.accessToken).toBe("ya29.sheets");
|
|
273
|
+
expect(opened[0]).toContain("client_id=user.apps.googleusercontent.com");
|
|
274
|
+
expect(opened[0]).not.toContain("resource=");
|
|
275
|
+
} finally {
|
|
276
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
277
|
+
else process.env.HARNESS_HOME = prev;
|
|
278
|
+
if (prevId === undefined) delete process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
279
|
+
else process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID = prevId;
|
|
280
|
+
if (prevOauthId === undefined) delete process.env.GOOGLE_OAUTH_CLIENT_ID;
|
|
281
|
+
else process.env.GOOGLE_OAUTH_CLIENT_ID = prevOauthId;
|
|
282
|
+
if (prevGoogleId === undefined) delete process.env.GOOGLE_CLIENT_ID;
|
|
283
|
+
else process.env.GOOGLE_CLIENT_ID = prevGoogleId;
|
|
284
|
+
await rm(home, { recursive: true, force: true });
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
test("connects Google Sheets with a branded env OAuth client", async () => {
|
|
289
|
+
const home = await mkdtemp(join(tmpdir(), "harness-google-"));
|
|
290
|
+
const prev = process.env.HARNESS_HOME;
|
|
291
|
+
const prevId = process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
292
|
+
process.env.HARNESS_HOME = home;
|
|
293
|
+
process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID = "caelence.apps.googleusercontent.com";
|
|
294
|
+
const opened: string[] = [];
|
|
295
|
+
try {
|
|
296
|
+
const row = await connectMcp({
|
|
297
|
+
connectorId: "google-sheets",
|
|
298
|
+
redirectUri: "http://127.0.0.1:9/oauth/callback",
|
|
299
|
+
openUrl: (url) => opened.push(url),
|
|
300
|
+
waitForCallback: async () => ({ code: "authcode" }),
|
|
301
|
+
fetchImpl: (async (input) => {
|
|
302
|
+
const url = String(input);
|
|
303
|
+
if (url === "https://oauth2.googleapis.com/token") {
|
|
304
|
+
return Response.json({ access_token: "ya29.sheets", refresh_token: "1//refresh" });
|
|
305
|
+
}
|
|
306
|
+
return new Response("missing", { status: 404 });
|
|
307
|
+
}) as typeof fetch,
|
|
308
|
+
});
|
|
309
|
+
expect(row.id).toBe("google-sheets");
|
|
310
|
+
expect(row.accessToken).toBe("ya29.sheets");
|
|
311
|
+
expect(opened[0]).toContain("https://accounts.google.com/o/oauth2/v2/auth");
|
|
312
|
+
expect(opened[0]).toContain("client_id=caelence.apps.googleusercontent.com");
|
|
313
|
+
expect(opened[0]).toContain("access_type=offline");
|
|
314
|
+
expect(opened[0]).not.toContain("resource=");
|
|
315
|
+
expect(listPublicIntegrations().find((item) => item.id === "google-sheets")?.connected).toBe(
|
|
316
|
+
true,
|
|
317
|
+
);
|
|
318
|
+
expect(listPublicIntegrations().find((item) => item.id === "google-sheets")?.logoKind).toBe(
|
|
319
|
+
"image",
|
|
320
|
+
);
|
|
321
|
+
} finally {
|
|
322
|
+
if (prev === undefined) delete process.env.HARNESS_HOME;
|
|
323
|
+
else process.env.HARNESS_HOME = prev;
|
|
324
|
+
if (prevId === undefined) delete process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID;
|
|
325
|
+
else process.env.CAELENCE_GOOGLE_OAUTH_CLIENT_ID = prevId;
|
|
326
|
+
await rm(home, { recursive: true, force: true });
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#18BFFF" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Airtable</title><path d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#003DFF" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Algolia</title><path d="M12 0C5.445 0 .103 5.285.01 11.817c-.097 6.634 5.285 12.131 11.92 12.17a11.91 11.91 0 0 0 5.775-1.443.281.281 0 0 0 .052-.457l-1.122-.994a.79.79 0 0 0-.833-.14 9.693 9.693 0 0 1-3.923.77c-5.36-.067-9.692-4.527-9.607-9.888.084-5.293 4.417-9.573 9.73-9.573h9.73v17.296l-5.522-4.907a.407.407 0 0 0-.596.063 4.52 4.52 0 0 1-3.934 1.793 4.538 4.538 0 0 1-4.192-4.168 4.53 4.53 0 0 1 4.512-4.872 4.532 4.532 0 0 1 4.509 4.126c.018.205.11.397.265.533l1.438 1.275a.28.28 0 0 0 .462-.158 6.82 6.82 0 0 0 .099-1.725c-.232-3.376-2.966-6.092-6.345-6.3-3.873-.24-7.11 2.79-7.214 6.588-.1 3.7 2.933 6.892 6.634 6.974a6.75 6.75 0 0 0 4.136-1.294l7.212 6.394a.48.48 0 0 0 .797-.36V.456A.456.456 0 0 0 23.54 0Z"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#F38020" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cloudflare</title><path d="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"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#2478CC" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Contentful</title><path d="M21.875 16.361c-.043-.048-1.067-1.18-2.365-1.19-.68 0-1.288.283-1.815.858-.773.842-2.35 1.85-4.25 1.921-1.598.059-3.085-.548-4.423-1.805-1.644-1.544-2.155-4.016-1.302-6.297.834-2.23 2.752-3.616 5.131-3.707l.044-.004c.024-.003 2.302-.258 4.325 1.548.17.185 1.154 1.197 2.475 1.228.823.018 1.586-.336 2.27-1.055.602-.632.87-1.342.797-2.112-.154-1.61-1.806-2.876-2.03-3.04-.212-.184-1.878-1.578-4.476-2.294-2.52-.695-6.42-.853-10.685 2.349a7.31 7.31 0 0 0-.557.49c-.28.208-.523.462-.716.753a12.469 12.469 0 0 0-3.064 8.677c.207 6.283 5.265 9.293 5.646 9.51.262.17 2.906 1.81 6.495 1.809 2.106 0 4.538-.565 7.005-2.322.248-.138 1.714-1.012 2.103-2.52.23-.894.042-1.815-.562-2.737l-.046-.06zm-16.932 1.97c0-1.09.887-1.977 1.977-1.977s1.977.886 1.977 1.977c0 1.09-.887 1.977-1.977 1.977s-1.977-.887-1.977-1.977zm.139-13.657c.236-.275.451-.498.628-.67a1.965 1.965 0 0 1 1.088-.329c1.09 0 1.977.887 1.977 1.977S7.888 7.63 6.798 7.63s-1.977-.887-1.977-1.977c0-.356.096-.69.261-.978zM13.249.999c3.954 0 6.657 2.336 6.826 2.486l.043.034c.42.3 1.532 1.301 1.63 2.324.044.469-.126.898-.52 1.313-.477.5-.983.752-1.504.738-.964-.019-1.743-.887-1.76-.905l-.042-.044c-2.292-2.063-4.83-1.855-5.13-1.822a6.82 6.82 0 0 0-3.012.818 3 3 0 0 0-2.34-3.214C9.543 1.45 11.516.999 13.248.999zM3.884 6.34a3 3 0 0 0 2.914 2.31c.122 0 .24-.01.358-.024a7.336 7.336 0 0 0-.39.866c-.75 2.003-.59 4.14.359 5.854-.068-.005-.136-.01-.205-.01a2.999 2.999 0 0 0-2.967 2.6 10.075 10.075 0 0 1-1.7-5.288 11.43 11.43 0 0 1 1.63-6.309zM21.497 18.9c-.3 1.174-1.615 1.89-1.627 1.896l-.058.036c-6.287 4.499-12.137.667-12.382.502l-.036-.022a2.848 2.848 0 0 1-.034-.02 2.998 2.998 0 0 0 2.543-3.228c1.124.64 2.336.951 3.58.906 2.214-.083 4.057-1.264 4.962-2.25.327-.356.67-.53 1.048-.53h.005c.762.004 1.46.688 1.593.826.421.658.558 1.291.406 1.884z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#F24E1E" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Figma</title><path d="M15.852 8.981h-4.588V0h4.588c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.491-4.49 4.491zM12.735 7.51h3.117c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-3.117V7.51zm0 1.471H8.148c-2.476 0-4.49-2.014-4.49-4.49S5.672 0 8.148 0h4.588v8.981zm-4.587-7.51c-1.665 0-3.019 1.355-3.019 3.019s1.354 3.02 3.019 3.02h3.117V1.471H8.148zm4.587 15.019H8.148c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h4.588v8.98zM8.148 8.981c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h3.117V8.981H8.148zM8.172 24c-2.489 0-4.515-2.014-4.515-4.49s2.014-4.49 4.49-4.49h4.588v4.441c0 2.503-2.047 4.539-4.563 4.539zm-.024-7.51a3.023 3.023 0 0 0-3.019 3.019c0 1.665 1.365 3.019 3.044 3.019 1.705 0 3.093-1.376 3.093-3.068v-2.97H8.148zm7.704 0h-.098c-2.476 0-4.49-2.014-4.49-4.49s2.014-4.49 4.49-4.49h.098c2.476 0 4.49 2.014 4.49 4.49s-2.014 4.49-4.49 4.49zm-.097-7.509c-1.665 0-3.019 1.355-3.019 3.019s1.355 3.019 3.019 3.019h.098c1.665 0 3.019-1.355 3.019-3.019s-1.355-3.019-3.019-3.019h-.098z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#FC6D26" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitLab</title><path d="m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#4285F4" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Calendar</title><path d="M18.316 5.684H24v12.632h-5.684V5.684zM5.684 24h12.632v-5.684H5.684V24zM18.316 5.684V0H1.895A1.894 1.894 0 0 0 0 1.895v16.421h5.684V5.684h12.632zm-7.207 6.25v-.065c.272-.144.5-.349.687-.617s.279-.595.279-.982c0-.379-.099-.72-.3-1.025a2.05 2.05 0 0 0-.832-.714 2.703 2.703 0 0 0-1.197-.257c-.6 0-1.094.156-1.481.467-.386.311-.65.671-.793 1.078l1.085.452c.086-.249.224-.461.413-.633.189-.172.445-.257.767-.257.33 0 .602.088.816.264a.86.86 0 0 1 .322.703c0 .33-.12.589-.36.778-.24.19-.535.284-.886.284h-.567v1.085h.633c.407 0 .748.109 1.02.327.272.218.407.499.407.843 0 .336-.129.614-.387.832s-.565.327-.924.327c-.351 0-.651-.103-.897-.311-.248-.208-.422-.502-.521-.881l-1.096.452c.178.616.505 1.082.977 1.401.472.319.984.478 1.538.477a2.84 2.84 0 0 0 1.293-.291c.382-.193.684-.458.902-.794.218-.336.327-.72.327-1.149 0-.429-.115-.797-.344-1.105a2.067 2.067 0 0 0-.881-.689zm2.093-1.931l.602.913L15 10.045v5.744h1.187V8.446h-.827l-2.158 1.557zM22.105 0h-3.289v5.184H24V1.895A1.894 1.894 0 0 0 22.105 0zm-3.289 23.5l4.684-4.684h-4.684V23.5zM0 22.105C0 23.152.848 24 1.895 24h3.289v-5.184H0v3.289z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#4285F4" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Docs</title><path d="M14.727 6.727H14V0H4.91c-.905 0-1.637.732-1.637 1.636v20.728c0 .904.732 1.636 1.636 1.636h14.182c.904 0 1.636-.732 1.636-1.636V6.727h-6zm-.545 10.455H7.09v-1.364h7.09v1.364zm2.727-3.273H7.091v-1.364h9.818v1.364zm0-3.273H7.091V9.273h9.818v1.363zM14.727 6h6l-6-6v6z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#4285F4" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Drive</title><path d="M12.01 1.485c-2.082 0-3.754.02-3.743.047.01.02 1.708 3.001 3.774 6.62l3.76 6.574h3.76c2.081 0 3.753-.02 3.742-.047-.005-.02-1.708-3.001-3.775-6.62l-3.76-6.574zm-4.76 1.73a789.828 789.861 0 0 0-3.63 6.319L0 15.868l1.89 3.298 1.885 3.297 3.62-6.335 3.618-6.33-1.88-3.287C8.1 4.704 7.255 3.22 7.25 3.214zm2.259 12.653-.203.348c-.114.198-.96 1.672-1.88 3.287a423.93 423.948 0 0 1-1.698 2.97c-.01.026 3.24.042 7.222.042h7.244l1.796-3.157c.992-1.734 1.85-3.23 1.906-3.323l.104-.167h-7.249z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#EA4335" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Gmail</title><path d="M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#34A853" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Sheets</title><path d="M11.318 12.545H7.91v-1.909h3.41v1.91zM14.728 0v6h6l-6-6zm1.363 10.636h-3.41v1.91h3.41v-1.91zm0 3.273h-3.41v1.91h3.41v-1.91zM20.727 6.5v15.864c0 .904-.732 1.636-1.636 1.636H4.909a1.636 1.636 0 0 1-1.636-1.636V1.636C3.273.732 4.005 0 4.909 0h9.318v6.5h6.5zm-3.273 2.773H6.545v7.909h10.91v-7.91zm-6.136 4.636H7.91v1.91h3.41v-1.91z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#FBBC04" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google Slides</title><path d="M16.09 15.273H7.91v-4.637h8.18v4.637zm1.728-8.523h2.91v15.614c0 .904-.733 1.636-1.637 1.636H4.909a1.636 1.636 0 0 1-1.636-1.636V1.636C3.273.732 4.005 0 4.909 0h9.068v6.75h3.841zm-.363 2.523H6.545v7.363h10.91V9.273zm-2.728-5.979V6h6.001l-6-6v3.294z"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#0052CC" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Jira</title><path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#5E6AD2" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Linear</title><path d="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"/></svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img">
|
|
2
|
+
<title>Microsoft</title>
|
|
3
|
+
<path fill="#F25022" d="M1 1h10v10H1z"/>
|
|
4
|
+
<path fill="#7FBA00" d="M13 1h10v10H13z"/>
|
|
5
|
+
<path fill="#00A4EF" d="M1 13h10v10H1z"/>
|
|
6
|
+
<path fill="#FFB900" d="M13 13h10v10H13z"/>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#050038" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Miro</title><path d="M17.392 0H13.9L17 4.808 10.444 0H6.949l3.102 6.3L3.494 0H0l3.05 8.131L0 24h3.494L10.05 6.985 6.949 24h3.494L17 5.494 13.899 24h3.493L24 3.672 17.392 0z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#7856FF" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Mixpanel</title><path d="M6.967 9.996h3.053c-.763-.477-1.048-1.145-1.431-2.384L7.443 3.366C6.919 1.458 6.49.551 4.39.551H.004v1.145h.621c1.286 0 1.431.477 1.814 1.908L3.44 7.326c.524 1.814 1.337 2.67 3.53 2.67h-.003Zm7.06 0h3.053c2.194 0 2.956-.86 3.484-2.67l1.001-3.722c.382-1.431.57-1.908 1.814-1.908H24V.551h-4.34c-2.146 0-2.576.86-3.053 2.815l-1.145 4.246c-.384 1.286-.673 1.907-1.435 2.384Zm-4.007 4.008h4.007V9.996H10.02v4.008ZM0 23.449h4.39c2.1 0 2.529-.907 3.053-2.815l1.146-4.246c.383-1.239.668-1.907 1.431-2.384H6.967c-2.194 0-3.007.86-3.531 2.67l-1.001 3.722c-.383 1.431-.524 1.907-1.814 1.907H0v1.146Zm19.65 0h4.343v-1.146h-.622c-1.239 0-1.431-.476-1.814-1.907l-1.001-3.722c-.524-1.814-1.286-2.67-3.483-2.67h-3.046c.762.477 1.041 1.098 1.424 2.384l1.145 4.246c.477 1.955.907 2.815 3.054 2.815Z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#34D59A" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Neon</title><path d="M24 0V24l-9.365-8.045V24H0V0ZM2.942 21.087h8.751V9.563l9.365 8.204V2.919L2.942 2.914Z"/></svg>
|