@codeam/shared 2.61.63 → 2.61.65
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +73 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -7
- 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' | 'n8n' | 'postman' | 'mixpanel' | 'supabase';
|
|
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' | 'supabase' | 'confluence';
|
|
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
|
|
@@ -462,6 +462,13 @@ interface IntegrationDefinition {
|
|
|
462
462
|
* (performed by the module that owns the connection, not by the generic
|
|
463
463
|
* integrations OAuth path). */
|
|
464
464
|
connection?: DerivedCredentialSource;
|
|
465
|
+
/** For `kind: 'derived'` — the OTHER integration whose vaulted credential
|
|
466
|
+
* this one reuses (Confluence → `jira`, since one Atlassian OAuth + the one
|
|
467
|
+
* `mcp-atlassian` server serves both). Like `derivedFrom` but the source is
|
|
468
|
+
* a vault-backed integration, not a `ProviderToken` connection: the backend
|
|
469
|
+
* resolves the credential by delegating to the source integration, and the
|
|
470
|
+
* client renders it as "part of <source>" with no Connect action of its own. */
|
|
471
|
+
aliasOf?: IntegrationId;
|
|
465
472
|
};
|
|
466
473
|
delivery: IntegrationDelivery;
|
|
467
474
|
}
|
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' | 'n8n' | 'postman' | 'mixpanel' | 'supabase';
|
|
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' | 'supabase' | 'confluence';
|
|
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
|
|
@@ -462,6 +462,13 @@ interface IntegrationDefinition {
|
|
|
462
462
|
* (performed by the module that owns the connection, not by the generic
|
|
463
463
|
* integrations OAuth path). */
|
|
464
464
|
connection?: DerivedCredentialSource;
|
|
465
|
+
/** For `kind: 'derived'` — the OTHER integration whose vaulted credential
|
|
466
|
+
* this one reuses (Confluence → `jira`, since one Atlassian OAuth + the one
|
|
467
|
+
* `mcp-atlassian` server serves both). Like `derivedFrom` but the source is
|
|
468
|
+
* a vault-backed integration, not a `ProviderToken` connection: the backend
|
|
469
|
+
* resolves the credential by delegating to the source integration, and the
|
|
470
|
+
* client renders it as "part of <source>" with no Connect action of its own. */
|
|
471
|
+
aliasOf?: IntegrationId;
|
|
465
472
|
};
|
|
466
473
|
delivery: IntegrationDelivery;
|
|
467
474
|
}
|
package/dist/index.js
CHANGED
|
@@ -840,13 +840,43 @@ var INTEGRATION_REGISTRY = {
|
|
|
840
840
|
name: "Microsoft Teams",
|
|
841
841
|
icon: "microsoft_teams",
|
|
842
842
|
category: "comms",
|
|
843
|
-
//
|
|
844
|
-
// agent
|
|
845
|
-
//
|
|
846
|
-
//
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
843
|
+
// LIVE — Microsoft identity platform v2.0 OAuth (multi-tenant, Confidential).
|
|
844
|
+
// The agent reads chats/channels + posts AS THE USER over Microsoft Graph.
|
|
845
|
+
// MS_TEAMS_OAUTH_CLIENT_ID/SECRET/REDIRECT_URI are in Secret Manager (prod+dev);
|
|
846
|
+
// the backend TeamsOAuthProvider is config-gated (503 if env unset).
|
|
847
|
+
// ⚠️ Chat.* + ChannelMessage.Read.All (`.All`) require TENANT-ADMIN consent
|
|
848
|
+
// (MC1163922, Oct-2025) — the connecting user must be an org admin, or their
|
|
849
|
+
// IT admin approves the app for the tenant. Not a self-serve funnel like Slack.
|
|
850
|
+
enabled: true,
|
|
851
|
+
auth: {
|
|
852
|
+
kind: "oauth_redirect",
|
|
853
|
+
// Delegated Microsoft Graph scopes. `offline_access` → rotating refresh
|
|
854
|
+
// (Teams access tokens are ~1h). ⚠️ Changing these requires the user to
|
|
855
|
+
// RE-LINK — the token carries only the scopes granted at link time.
|
|
856
|
+
scopes: [
|
|
857
|
+
"User.Read",
|
|
858
|
+
"User.ReadBasic.All",
|
|
859
|
+
"Team.ReadBasic.All",
|
|
860
|
+
"Channel.ReadBasic.All",
|
|
861
|
+
"ChannelMessage.Read.All",
|
|
862
|
+
"ChannelMessage.Send",
|
|
863
|
+
"Chat.Read",
|
|
864
|
+
"Chat.ReadWrite",
|
|
865
|
+
"offline_access"
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
delivery: {
|
|
869
|
+
mcp: {
|
|
870
|
+
// @floriscornel/teams-mcp (Node): BYO Graph access token via AUTH_TOKEN
|
|
871
|
+
// (env only, never argv). Headless. Version PINNED; bump only after
|
|
872
|
+
// re-verifying headless. Tools: get/send channel + chat messages, replies.
|
|
873
|
+
command: "npx",
|
|
874
|
+
args: ["-y", "@floriscornel/teams-mcp@0.9.0"],
|
|
875
|
+
envMapping: {
|
|
876
|
+
AUTH_TOKEN: "accessToken"
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
850
880
|
},
|
|
851
881
|
google_chat: {
|
|
852
882
|
id: "google_chat",
|
|
@@ -1455,6 +1485,34 @@ var INTEGRATION_REGISTRY = {
|
|
|
1455
1485
|
}
|
|
1456
1486
|
}
|
|
1457
1487
|
}
|
|
1488
|
+
},
|
|
1489
|
+
confluence: {
|
|
1490
|
+
id: "confluence",
|
|
1491
|
+
name: "Confluence",
|
|
1492
|
+
icon: "confluence",
|
|
1493
|
+
category: "docs",
|
|
1494
|
+
// Confluence is served by the SAME Atlassian OAuth + the SAME `mcp-atlassian`
|
|
1495
|
+
// server as Jira (the `jira` entry already requests Confluence scopes). This
|
|
1496
|
+
// entry is a DISPLAY ALIAS so Confluence is explicit in the Knowledge tab: it
|
|
1497
|
+
// BORROWS jira's vaulted credential (`aliasOf: 'jira'`) and has no link flow of
|
|
1498
|
+
// its own — connecting Atlassian (the Jira/Atlassian card) lights it up, and
|
|
1499
|
+
// the backend resolves its token by delegating to `jira`.
|
|
1500
|
+
enabled: true,
|
|
1501
|
+
auth: { kind: "derived", aliasOf: "jira" },
|
|
1502
|
+
delivery: {
|
|
1503
|
+
mcp: {
|
|
1504
|
+
// Same mcp-atlassian server + BYO-token env as Jira — it exposes the
|
|
1505
|
+
// Confluence tools when the deploy selects Confluence without Jira. If
|
|
1506
|
+
// BOTH are selected the deploy manifest dedupes identical MCP specs.
|
|
1507
|
+
command: "uvx",
|
|
1508
|
+
args: ["mcp-atlassian==0.22.1"],
|
|
1509
|
+
envMapping: {
|
|
1510
|
+
ATLASSIAN_OAUTH_ACCESS_TOKEN: "accessToken",
|
|
1511
|
+
ATLASSIAN_OAUTH_CLOUD_ID: "cloudId"
|
|
1512
|
+
},
|
|
1513
|
+
staticEnv: { ATLASSIAN_OAUTH_ENABLE: "true" }
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1458
1516
|
}
|
|
1459
1517
|
};
|
|
1460
1518
|
function getEnabledIntegrations() {
|
|
@@ -1533,6 +1591,14 @@ var INTEGRATION_BRANDING = {
|
|
|
1533
1591
|
brandColor: "#357DE8",
|
|
1534
1592
|
logoSvg: '<svg viewBox="0 0 32 32" height="32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><defs><linearGradient id="uid18" x1="14.8402" y1="15.8324" x2="8.6599" y2="26.5369" gradientUnits="userSpaceOnUse"><stop stop-color="#2684FF" stop-opacity="0.4" offset="0%"></stop><stop stop-color="#2684FF" offset="0.9228"></stop></linearGradient></defs><path fill="url(#uid18)" d="M11.6397 14.0398C11.2789 13.643 10.7378 13.679 10.4852 14.148L4.64091 25.8728C4.42446 26.3418 4.74912 26.8829 5.25419 26.8829H13.4074C13.6599 26.8829 13.9125 26.7386 14.0207 26.4861C15.7885 22.8424 14.7061 17.3227 11.6397 14.0398Z"></path><path fill="#357DE8" d="M15.9343 3.36124C12.6513 8.55622 12.8678 14.2923 15.0324 18.6215C17.1969 22.9506 18.8565 26.2336 18.9647 26.4861C19.0729 26.7386 19.3254 26.8829 19.578 26.8829H27.7312C28.2363 26.8829 28.597 26.3418 28.3445 25.8728C28.3445 25.8728 17.3774 3.93846 17.0887 3.39732C16.8723 2.89225 16.259 2.85618 15.9343 3.36124Z"></path></svg>'
|
|
1535
1593
|
},
|
|
1594
|
+
confluence: {
|
|
1595
|
+
id: "confluence",
|
|
1596
|
+
name: "Confluence",
|
|
1597
|
+
vendor: "Atlassian",
|
|
1598
|
+
tagline: "Part of Atlassian \xB7 docs & wiki",
|
|
1599
|
+
brandColor: "#1868DB",
|
|
1600
|
+
logoSvg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Confluence</title><path fill="#FFFFFF" d="M.87 18.257c-.248.382-.53.875-.763 1.245a.764.764 0 0 0 .255 1.04l4.965 3.054a.764.764 0 0 0 1.058-.26c.199-.332.454-.763.733-1.221 1.967-3.247 3.945-2.853 7.508-1.146l4.957 2.337a.764.764 0 0 0 1.028-.382l2.364-5.346a.764.764 0 0 0-.382-1c-1.048-.494-3.124-1.478-4.965-2.361C10.911 10.97 5.224 11.185.87 18.257zM23.131 5.743c.249-.405.531-.875.764-1.25a.764.764 0 0 0-.256-1.034L18.675.404a.764.764 0 0 0-1.058.26c-.195.335-.451.763-.734 1.225-1.966 3.246-3.945 2.85-7.508 1.146L4.437.694a.764.764 0 0 0-1.027.382L1.046 6.422a.764.764 0 0 0 .382 1c1.039.49 3.105 1.467 4.965 2.361 6.698 3.246 12.392 3.029 16.738-4.04z"/></svg>'
|
|
1601
|
+
},
|
|
1536
1602
|
slack: {
|
|
1537
1603
|
id: "slack",
|
|
1538
1604
|
name: "Slack",
|