@codeam/shared 2.61.60 → 2.61.62
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/dist/index.d.mts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +130 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +130 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -351,7 +351,7 @@ declare function isHeadroomWrappable(agentId: string): boolean;
|
|
|
351
351
|
* ubiquitous CLI for the tool → `cliEnv`; otherwise → `mcp`. A tool may
|
|
352
352
|
* declare both.
|
|
353
353
|
*/
|
|
354
|
-
type IntegrationId = 'jira' | 'sentry' | 'linear' | 'slack' | 'notion' | 'azure_devops' | 'figma' | 'microsoft_teams' | 'google_chat' | 'discord' | 'resend' | 'posthog' | 'datadog' | 'stitch' | 'github_issues' | 'github' | 'gitlab' | 'vercel' | 'trello' | 'clickup';
|
|
354
|
+
type IntegrationId = 'jira' | 'sentry' | 'linear' | 'slack' | 'notion' | 'azure_devops' | 'figma' | 'microsoft_teams' | 'google_chat' | 'discord' | 'resend' | 'posthog' | 'datadog' | 'stitch' | 'github_issues' | 'github' | 'gitlab' | 'vercel' | 'trello' | 'clickup' | 'n8n' | 'postman' | 'mixpanel';
|
|
355
355
|
/**
|
|
356
356
|
* `derived` = no link flow of its own: the credential is BORROWED live from a
|
|
357
357
|
* connection the user already made elsewhere (see `derivedFrom`). The backend
|
|
@@ -380,7 +380,7 @@ type DerivedCredentialSource = 'github';
|
|
|
380
380
|
/** Grouping used by category-driven surfaces (Start-from-Work-Item picker,
|
|
381
381
|
* catalog sections). A future tracker integration joins those features with
|
|
382
382
|
* ZERO feature code — they resolve sources from the registry by category. */
|
|
383
|
-
type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' | 'docs' | 'observability' | 'deployment';
|
|
383
|
+
type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' | 'docs' | 'observability' | 'deployment' | 'automation' | 'analytics' | 'api_tools';
|
|
384
384
|
/**
|
|
385
385
|
* One user-entered field for an `api_key` integration (no browser OAuth — the
|
|
386
386
|
* user pastes credentials directly, e.g. a PAT + an org URL). The mobile form
|
|
@@ -390,7 +390,7 @@ type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' |
|
|
|
390
390
|
interface IntegrationApiKeyField {
|
|
391
391
|
/** Maps to a BrokeredIntegrationToken field (`accessToken`, `orgUrl`,
|
|
392
392
|
* `appKey`, `host`, …). */
|
|
393
|
-
key: 'accessToken' | 'orgUrl' | 'appKey' | 'host' | 'apiKey';
|
|
393
|
+
key: 'accessToken' | 'orgUrl' | 'appKey' | 'host' | 'apiKey' | 'instanceUrl' | 'secretKey' | 'projectId';
|
|
394
394
|
/** Form label. */
|
|
395
395
|
label: string;
|
|
396
396
|
/** Example / placeholder. */
|
|
@@ -513,6 +513,14 @@ interface BrokeredIntegrationToken {
|
|
|
513
513
|
* alongside the user token (`TRELLO_API_KEY` + `TRELLO_TOKEN`=`accessToken`).
|
|
514
514
|
* Absent for non-Trello integrations. */
|
|
515
515
|
apiKey?: string;
|
|
516
|
+
/** n8n instance base URL (self-hosted or n8n.cloud) — the MCP server needs it
|
|
517
|
+
* alongside the API key (N8N_API_URL + N8N_API_KEY). Absent for non-n8n. */
|
|
518
|
+
instanceUrl?: string;
|
|
519
|
+
/** Secret half of a 2-part api_key credential (Amplitude secret, Mixpanel
|
|
520
|
+
* service-account password, etc.). Absent for single-key integrations. */
|
|
521
|
+
secretKey?: string;
|
|
522
|
+
/** Project/workspace id some analytics APIs require (Mixpanel project id). */
|
|
523
|
+
projectId?: string;
|
|
516
524
|
}
|
|
517
525
|
|
|
518
526
|
/**
|
|
@@ -560,7 +568,7 @@ interface IntegrationBranding {
|
|
|
560
568
|
logoSvg: string;
|
|
561
569
|
}
|
|
562
570
|
declare const INTEGRATION_BRANDING: Record<string, IntegrationBranding>;
|
|
563
|
-
declare const UPCOMING_INTEGRATION_IDS: readonly ["gmail", "figma", "supabase", "asana", "
|
|
571
|
+
declare const UPCOMING_INTEGRATION_IDS: readonly ["gmail", "figma", "supabase", "asana", "stripe", "pendo", "pagerduty", "amplitude"];
|
|
564
572
|
declare function getIntegrationBranding(id: string): IntegrationBranding | null;
|
|
565
573
|
|
|
566
574
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ declare function isHeadroomWrappable(agentId: string): boolean;
|
|
|
351
351
|
* ubiquitous CLI for the tool → `cliEnv`; otherwise → `mcp`. A tool may
|
|
352
352
|
* declare both.
|
|
353
353
|
*/
|
|
354
|
-
type IntegrationId = 'jira' | 'sentry' | 'linear' | 'slack' | 'notion' | 'azure_devops' | 'figma' | 'microsoft_teams' | 'google_chat' | 'discord' | 'resend' | 'posthog' | 'datadog' | 'stitch' | 'github_issues' | 'github' | 'gitlab' | 'vercel' | 'trello' | 'clickup';
|
|
354
|
+
type IntegrationId = 'jira' | 'sentry' | 'linear' | 'slack' | 'notion' | 'azure_devops' | 'figma' | 'microsoft_teams' | 'google_chat' | 'discord' | 'resend' | 'posthog' | 'datadog' | 'stitch' | 'github_issues' | 'github' | 'gitlab' | 'vercel' | 'trello' | 'clickup' | 'n8n' | 'postman' | 'mixpanel';
|
|
355
355
|
/**
|
|
356
356
|
* `derived` = no link flow of its own: the credential is BORROWED live from a
|
|
357
357
|
* connection the user already made elsewhere (see `derivedFrom`). The backend
|
|
@@ -380,7 +380,7 @@ type DerivedCredentialSource = 'github';
|
|
|
380
380
|
/** Grouping used by category-driven surfaces (Start-from-Work-Item picker,
|
|
381
381
|
* catalog sections). A future tracker integration joins those features with
|
|
382
382
|
* ZERO feature code — they resolve sources from the registry by category. */
|
|
383
|
-
type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' | 'docs' | 'observability' | 'deployment';
|
|
383
|
+
type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' | 'docs' | 'observability' | 'deployment' | 'automation' | 'analytics' | 'api_tools';
|
|
384
384
|
/**
|
|
385
385
|
* One user-entered field for an `api_key` integration (no browser OAuth — the
|
|
386
386
|
* user pastes credentials directly, e.g. a PAT + an org URL). The mobile form
|
|
@@ -390,7 +390,7 @@ type IntegrationCategory = 'version_control' | 'tracker' | 'design' | 'comms' |
|
|
|
390
390
|
interface IntegrationApiKeyField {
|
|
391
391
|
/** Maps to a BrokeredIntegrationToken field (`accessToken`, `orgUrl`,
|
|
392
392
|
* `appKey`, `host`, …). */
|
|
393
|
-
key: 'accessToken' | 'orgUrl' | 'appKey' | 'host' | 'apiKey';
|
|
393
|
+
key: 'accessToken' | 'orgUrl' | 'appKey' | 'host' | 'apiKey' | 'instanceUrl' | 'secretKey' | 'projectId';
|
|
394
394
|
/** Form label. */
|
|
395
395
|
label: string;
|
|
396
396
|
/** Example / placeholder. */
|
|
@@ -513,6 +513,14 @@ interface BrokeredIntegrationToken {
|
|
|
513
513
|
* alongside the user token (`TRELLO_API_KEY` + `TRELLO_TOKEN`=`accessToken`).
|
|
514
514
|
* Absent for non-Trello integrations. */
|
|
515
515
|
apiKey?: string;
|
|
516
|
+
/** n8n instance base URL (self-hosted or n8n.cloud) — the MCP server needs it
|
|
517
|
+
* alongside the API key (N8N_API_URL + N8N_API_KEY). Absent for non-n8n. */
|
|
518
|
+
instanceUrl?: string;
|
|
519
|
+
/** Secret half of a 2-part api_key credential (Amplitude secret, Mixpanel
|
|
520
|
+
* service-account password, etc.). Absent for single-key integrations. */
|
|
521
|
+
secretKey?: string;
|
|
522
|
+
/** Project/workspace id some analytics APIs require (Mixpanel project id). */
|
|
523
|
+
projectId?: string;
|
|
516
524
|
}
|
|
517
525
|
|
|
518
526
|
/**
|
|
@@ -560,7 +568,7 @@ interface IntegrationBranding {
|
|
|
560
568
|
logoSvg: string;
|
|
561
569
|
}
|
|
562
570
|
declare const INTEGRATION_BRANDING: Record<string, IntegrationBranding>;
|
|
563
|
-
declare const UPCOMING_INTEGRATION_IDS: readonly ["gmail", "figma", "supabase", "asana", "
|
|
571
|
+
declare const UPCOMING_INTEGRATION_IDS: readonly ["gmail", "figma", "supabase", "asana", "stripe", "pendo", "pagerduty", "amplitude"];
|
|
564
572
|
declare function getIntegrationBranding(id: string): IntegrationBranding | null;
|
|
565
573
|
|
|
566
574
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1294,6 +1294,136 @@ var INTEGRATION_REGISTRY = {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
+
},
|
|
1298
|
+
n8n: {
|
|
1299
|
+
id: "n8n",
|
|
1300
|
+
name: "n8n",
|
|
1301
|
+
icon: "n8n",
|
|
1302
|
+
category: "automation",
|
|
1303
|
+
// LIVE — api_key rail (like Trello / Azure DevOps). n8n auth is an API key
|
|
1304
|
+
// (Settings → n8n API) + the instance URL (n8n.cloud or self-hosted). The
|
|
1305
|
+
// user pastes both; the backend validates against the n8n REST API + vaults
|
|
1306
|
+
// them. No OAuth app, no GSM secrets, no config-gated 503.
|
|
1307
|
+
// ⚠️ The instance MUST be PUBLICLY reachable (n8n.cloud or a public self-host)
|
|
1308
|
+
// — a localhost/private n8n can't be reached from the deploy box.
|
|
1309
|
+
enabled: true,
|
|
1310
|
+
auth: {
|
|
1311
|
+
kind: "api_key",
|
|
1312
|
+
fields: [
|
|
1313
|
+
{
|
|
1314
|
+
key: "instanceUrl",
|
|
1315
|
+
label: "Instance URL",
|
|
1316
|
+
placeholder: "https://your-workspace.app.n8n.cloud",
|
|
1317
|
+
secret: false,
|
|
1318
|
+
help: "Your n8n base URL \u2014 n8n.cloud or your public self-hosted instance."
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
key: "accessToken",
|
|
1322
|
+
label: "API Key",
|
|
1323
|
+
placeholder: "n8n_api_\u2026",
|
|
1324
|
+
secret: true,
|
|
1325
|
+
help: "Create in n8n \u2192 Settings \u2192 n8n API \u2192 Create an API key."
|
|
1326
|
+
}
|
|
1327
|
+
]
|
|
1328
|
+
},
|
|
1329
|
+
delivery: {
|
|
1330
|
+
mcp: {
|
|
1331
|
+
// n8n-mcp (Node): N8N_API_URL + N8N_API_KEY via env only, never argv.
|
|
1332
|
+
// Version PINNED; bump only after re-verifying headless.
|
|
1333
|
+
command: "npx",
|
|
1334
|
+
args: ["-y", "n8n-mcp@2.66.2"],
|
|
1335
|
+
envMapping: {
|
|
1336
|
+
N8N_API_URL: "instanceUrl",
|
|
1337
|
+
N8N_API_KEY: "accessToken"
|
|
1338
|
+
},
|
|
1339
|
+
// stdio transport (the CLI mcp-shim spawns it over stdio, not HTTP).
|
|
1340
|
+
staticEnv: { MCP_MODE: "stdio" }
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
postman: {
|
|
1345
|
+
id: "postman",
|
|
1346
|
+
name: "Postman",
|
|
1347
|
+
icon: "postman",
|
|
1348
|
+
category: "api_tools",
|
|
1349
|
+
// LIVE — api_key rail. Postman auth is a personal API key (Settings → API
|
|
1350
|
+
// keys). The user pastes it; the backend validates via GET /me + vaults it.
|
|
1351
|
+
// No OAuth (Postman's API has no user OAuth), no secrets, no config-503.
|
|
1352
|
+
enabled: true,
|
|
1353
|
+
auth: {
|
|
1354
|
+
kind: "api_key",
|
|
1355
|
+
fields: [
|
|
1356
|
+
{
|
|
1357
|
+
key: "accessToken",
|
|
1358
|
+
label: "API Key",
|
|
1359
|
+
placeholder: "PMAK-\u2026",
|
|
1360
|
+
secret: true,
|
|
1361
|
+
help: "Postman \u2192 Settings \u2192 API keys \u2192 Generate API Key."
|
|
1362
|
+
}
|
|
1363
|
+
]
|
|
1364
|
+
},
|
|
1365
|
+
delivery: {
|
|
1366
|
+
mcp: {
|
|
1367
|
+
// Postman's OFFICIAL stdio MCP server (Node). BYO key via POSTMAN_API_KEY
|
|
1368
|
+
// (env only). Version PINNED; bump only after re-verifying headless.
|
|
1369
|
+
command: "npx",
|
|
1370
|
+
args: ["-y", "@postman/postman-mcp-server@2.11.2"],
|
|
1371
|
+
envMapping: {
|
|
1372
|
+
POSTMAN_API_KEY: "accessToken"
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
mixpanel: {
|
|
1378
|
+
id: "mixpanel",
|
|
1379
|
+
name: "Mixpanel",
|
|
1380
|
+
icon: "mixpanel",
|
|
1381
|
+
category: "analytics",
|
|
1382
|
+
// LIVE — api_key rail. Mixpanel query/export auth is a SERVICE ACCOUNT
|
|
1383
|
+
// (username + password, Basic auth) scoped to a project (project id). The
|
|
1384
|
+
// user pastes all three; the backend validates + vaults them. No OAuth
|
|
1385
|
+
// redirect (service accounts are machine-to-machine), no GSM secrets.
|
|
1386
|
+
enabled: true,
|
|
1387
|
+
auth: {
|
|
1388
|
+
kind: "api_key",
|
|
1389
|
+
fields: [
|
|
1390
|
+
{
|
|
1391
|
+
key: "accessToken",
|
|
1392
|
+
label: "Service Account Username",
|
|
1393
|
+
placeholder: "your-sa.mp-service-account",
|
|
1394
|
+
secret: false,
|
|
1395
|
+
help: "Mixpanel \u2192 Organization Settings \u2192 Service Accounts \u2192 create one with project access."
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
key: "secretKey",
|
|
1399
|
+
label: "Service Account Secret",
|
|
1400
|
+
placeholder: "the service account secret",
|
|
1401
|
+
secret: true,
|
|
1402
|
+
help: "Shown once when you create the service account \u2014 copy it then."
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
key: "projectId",
|
|
1406
|
+
label: "Project ID",
|
|
1407
|
+
placeholder: "1234567",
|
|
1408
|
+
secret: false,
|
|
1409
|
+
help: "Mixpanel \u2192 Project Settings \u2192 Project ID."
|
|
1410
|
+
}
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1413
|
+
delivery: {
|
|
1414
|
+
mcp: {
|
|
1415
|
+
// @mendeel/mcp-mixpanel (Node): the service account + project id via env
|
|
1416
|
+
// only (MIXPANEL_SERVICE_ACCOUNT_USERNAME/PASSWORD + MIXPANEL_PROJECT_ID).
|
|
1417
|
+
// Version PINNED; bump only after re-verifying headless. Default region US.
|
|
1418
|
+
command: "npx",
|
|
1419
|
+
args: ["-y", "@mendeel/mcp-mixpanel@1.0.4"],
|
|
1420
|
+
envMapping: {
|
|
1421
|
+
MIXPANEL_SERVICE_ACCOUNT_USERNAME: "accessToken",
|
|
1422
|
+
MIXPANEL_SERVICE_ACCOUNT_PASSWORD: "secretKey",
|
|
1423
|
+
MIXPANEL_PROJECT_ID: "projectId"
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1297
1427
|
}
|
|
1298
1428
|
};
|
|
1299
1429
|
function getEnabledIntegrations() {
|
|
@@ -1588,10 +1718,7 @@ var UPCOMING_INTEGRATION_IDS = [
|
|
|
1588
1718
|
"figma",
|
|
1589
1719
|
"supabase",
|
|
1590
1720
|
"asana",
|
|
1591
|
-
"postman",
|
|
1592
|
-
"n8n",
|
|
1593
1721
|
"stripe",
|
|
1594
|
-
"mixpanel",
|
|
1595
1722
|
"pendo",
|
|
1596
1723
|
"pagerduty",
|
|
1597
1724
|
"amplitude"
|