@inkeep/agents-core 0.0.0-dev-20260226145319 → 0.0.0-dev-20260226181003
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/auth/auth-schema.d.ts +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +28 -28
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +1 -1
- package/dist/data-access/manage/agents.d.ts +32 -32
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/tools.js +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +447 -447
- package/dist/db/runtime/runtime-schema.d.ts +290 -290
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
- package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/validation/schemas.d.ts +1383 -1383
- package/dist/validation/schemas.js +1 -2
- package/package.json +1 -1
|
@@ -67,23 +67,27 @@ function getComposioUserId(tenantId, projectId, credentialScope, userId) {
|
|
|
67
67
|
return deriveComposioUserId(tenantId, projectId);
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* Configure a Composio MCP server config with the appropriate user_id and x-api-key.
|
|
71
|
+
* Mutates serverConfig in place:
|
|
72
|
+
* - Injects user_id query param into the URL (scoped by tenant/project/user)
|
|
73
|
+
* - Injects x-api-key header from COMPOSIO_API_KEY env var
|
|
72
74
|
*
|
|
73
|
-
*
|
|
74
|
-
* @param tenantId - The tenant ID
|
|
75
|
-
* @param projectId - The project ID
|
|
76
|
-
* @param credentialScope - Whether credentials are 'project' or 'user' scoped
|
|
77
|
-
* @param userId - Optional user ID (required for user-scoped credentials)
|
|
78
|
-
* @returns The URL with user_id parameter set, or original URL if not a Composio URL
|
|
75
|
+
* No-op if the URL is not a composio.dev URL or already has a user_id.
|
|
79
76
|
*/
|
|
80
|
-
function
|
|
81
|
-
|
|
77
|
+
function configureComposioMCPServer(serverConfig, tenantId, projectId, credentialScope, userId) {
|
|
78
|
+
const baseUrl = serverConfig.url?.toString();
|
|
79
|
+
if (!baseUrl?.includes("composio.dev")) return;
|
|
82
80
|
const urlObj = new URL(baseUrl);
|
|
83
|
-
if (urlObj.searchParams.has("user_id"))
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
if (!urlObj.searchParams.has("user_id")) {
|
|
82
|
+
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
83
|
+
urlObj.searchParams.set("user_id", composioUserId);
|
|
84
|
+
serverConfig.url = urlObj.toString();
|
|
85
|
+
}
|
|
86
|
+
const composioApiKey = process.env.COMPOSIO_API_KEY;
|
|
87
|
+
if (composioApiKey) serverConfig.headers = {
|
|
88
|
+
...serverConfig.headers,
|
|
89
|
+
"x-api-key": composioApiKey
|
|
90
|
+
};
|
|
87
91
|
}
|
|
88
92
|
/**
|
|
89
93
|
* Extract server ID from a Composio MCP URL
|
|
@@ -334,4 +338,4 @@ async function fetchSingleComposioServer(tenantId, projectId, mcpServerUrl, cred
|
|
|
334
338
|
}
|
|
335
339
|
|
|
336
340
|
//#endregion
|
|
337
|
-
export {
|
|
341
|
+
export { configureComposioMCPServer, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CredentialScope,
|
|
1
|
+
import { CredentialScope, configureComposioMCPServer, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated } from "./composio-client.js";
|
|
2
2
|
import { isThirdPartyMCPServerAuthenticated } from "./third-party-check.js";
|
|
3
|
-
export { CredentialScope,
|
|
3
|
+
export { CredentialScope, configureComposioMCPServer, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { configureComposioMCPServer, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated } from "./composio-client.js";
|
|
2
2
|
import { isThirdPartyMCPServerAuthenticated } from "./third-party-check.js";
|
|
3
3
|
|
|
4
|
-
export {
|
|
4
|
+
export { configureComposioMCPServer, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated };
|