@inkeep/agents-core 0.0.0-dev-20251125022835 → 0.0.0-dev-20251125061921
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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateId } from '../chunk-
|
|
1
|
+
import { generateId } from '../chunk-XSKQ54TS.js';
|
|
2
2
|
import { env } from '../chunk-LL6F3EAR.js';
|
|
3
3
|
import { ssoProvider } from '../chunk-NFTJ5JBY.js';
|
|
4
4
|
import { ownerRole, adminRole, memberRole, ac } from '../chunk-VMSYBWFH.js';
|
|
@@ -260,7 +260,8 @@ function createApiError({
|
|
|
260
260
|
code,
|
|
261
261
|
message,
|
|
262
262
|
instance,
|
|
263
|
-
requestId
|
|
263
|
+
requestId,
|
|
264
|
+
extensions
|
|
264
265
|
}) {
|
|
265
266
|
const status = errorCodeToHttpStatus[code];
|
|
266
267
|
const title = getTitleFromCode(code);
|
|
@@ -275,7 +276,8 @@ function createApiError({
|
|
|
275
276
|
const errorMessage = message.length > 100 ? `${message.substring(0, 97)}...` : message;
|
|
276
277
|
const responseBody = {
|
|
277
278
|
...problemDetails,
|
|
278
|
-
error: { code, message: errorMessage }
|
|
279
|
+
error: { code, message: errorMessage },
|
|
280
|
+
...extensions && extensions
|
|
279
281
|
};
|
|
280
282
|
const res = new Response(JSON.stringify(responseBody), {
|
|
281
283
|
status,
|
package/dist/index.d.ts
CHANGED
|
@@ -3901,11 +3901,12 @@ declare const errorResponseSchema: z$1.ZodObject<{
|
|
|
3901
3901
|
}, z$1.core.$strip>;
|
|
3902
3902
|
}, z$1.core.$strip>;
|
|
3903
3903
|
type ErrorResponse = z$1.infer<typeof errorResponseSchema>;
|
|
3904
|
-
declare function createApiError({ code, message, instance, requestId, }: {
|
|
3904
|
+
declare function createApiError({ code, message, instance, requestId, extensions, }: {
|
|
3905
3905
|
code: ErrorCodes;
|
|
3906
3906
|
message: string;
|
|
3907
3907
|
instance?: string;
|
|
3908
3908
|
requestId?: string;
|
|
3909
|
+
extensions?: Record<string, unknown>;
|
|
3909
3910
|
}): HTTPException;
|
|
3910
3911
|
declare function handleApiError(error: unknown, requestId?: string): Promise<ProblemDetails & {
|
|
3911
3912
|
error: {
|
package/dist/index.js
CHANGED
|
@@ -8,8 +8,8 @@ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, Agent
|
|
|
8
8
|
import { schema_exports, contextConfigs, externalAgents, functions, functionTools, subAgentFunctionToolRelations, subAgentExternalAgentRelations, subAgents, subAgentRelations, subAgentToolRelations, tools, agents, subAgentTeamAgentRelations, credentialReferences, subAgentDataComponents, subAgentArtifactComponents, dataComponents, artifactComponents, projects, apiKeys, contextCache, conversations, messages, ledgerArtifacts, tasks, taskRelations } from './chunk-PVRIMF6N.js';
|
|
9
9
|
export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from './chunk-PVRIMF6N.js';
|
|
10
10
|
export { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
11
|
-
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId, toISODateString, isThirdPartyMCPServerAuthenticated, createApiError, generateApiKey, extractPublicId, validateApiKey, isApiKeyExpired, getConversationId, setSpanWithError, getRequestExecutionContext, McpClient } from './chunk-
|
|
12
|
-
export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ERROR_DOCS_BASE_URL, ErrorCode, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, ModelFactory, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, createExecutionContext, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, extractComposioServerId, extractPublicId, fetchComposioServers, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, generateApiKey, generateId, generateServiceToken, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getRequestExecutionContext, getTracer, handleApiError, hashApiKey, isApiKeyExpired, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated, maskApiKey, normalizeDateString, problemDetailsSchema, setSpanWithError, signTempToken, toISODateString, validateApiKey, validateTargetAgent, validateTenantId, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken } from './chunk-
|
|
11
|
+
import { getTracer, getCredentialStoreLookupKeyFromRetrievalParams, generateId, toISODateString, isThirdPartyMCPServerAuthenticated, createApiError, generateApiKey, extractPublicId, validateApiKey, isApiKeyExpired, getConversationId, setSpanWithError, getRequestExecutionContext, McpClient } from './chunk-XSKQ54TS.js';
|
|
12
|
+
export { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ERROR_DOCS_BASE_URL, ErrorCode, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, McpClient, ModelFactory, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, createExecutionContext, errorResponseSchema, errorSchemaFactory, executionLimitsSharedDefaults, extractComposioServerId, extractPublicId, fetchComposioServers, fetchSingleComposioServer, formatMessagesForLLM, formatMessagesForLLMContext, generateApiKey, generateId, generateServiceToken, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getRequestExecutionContext, getTracer, handleApiError, hashApiKey, isApiKeyExpired, isComposioMCPServerAuthenticated, isThirdPartyMCPServerAuthenticated, maskApiKey, normalizeDateString, problemDetailsSchema, setSpanWithError, signTempToken, toISODateString, validateApiKey, validateTargetAgent, validateTenantId, verifyAuthorizationHeader, verifyServiceToken, verifyTempToken } from './chunk-XSKQ54TS.js';
|
|
13
13
|
import { convertZodToJsonSchema } from './chunk-7GZHUB4J.js';
|
|
14
14
|
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from './chunk-7GZHUB4J.js';
|
|
15
15
|
import { loadEnvironmentFiles, env } from './chunk-LL6F3EAR.js';
|
|
@@ -217313,9 +217313,14 @@ var createFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
217313
217313
|
scopes: { tenantId, projectId, agentId: finalAgentId },
|
|
217314
217314
|
subAgentId,
|
|
217315
217315
|
toolId,
|
|
217316
|
-
|
|
217317
|
-
|
|
217318
|
-
|
|
217316
|
+
// Preserve null vs undefined distinction:
|
|
217317
|
+
// - null = all tools (updates DB to NULL)
|
|
217318
|
+
// - undefined = don't change (Drizzle skips field)
|
|
217319
|
+
// - [] = zero tools
|
|
217320
|
+
// - ['tool1', ...] = specific tools
|
|
217321
|
+
selectedTools: toolSelection,
|
|
217322
|
+
headers: headers2,
|
|
217323
|
+
toolPolicies,
|
|
217319
217324
|
relationId: agentToolRelationId
|
|
217320
217325
|
});
|
|
217321
217326
|
logger10.info(
|
|
@@ -218048,9 +218053,14 @@ var updateFullAgentServerSide = (db, logger10 = defaultLogger) => async (scopes,
|
|
|
218048
218053
|
scopes: { tenantId, projectId, agentId: finalAgentId },
|
|
218049
218054
|
subAgentId,
|
|
218050
218055
|
toolId,
|
|
218051
|
-
|
|
218052
|
-
|
|
218053
|
-
|
|
218056
|
+
// Preserve null vs undefined distinction:
|
|
218057
|
+
// - null = all tools (updates DB to NULL)
|
|
218058
|
+
// - undefined = don't change (Drizzle skips field)
|
|
218059
|
+
// - [] = zero tools
|
|
218060
|
+
// - ['tool1', ...] = specific tools
|
|
218061
|
+
selectedTools: toolSelection,
|
|
218062
|
+
headers: headers2,
|
|
218063
|
+
toolPolicies,
|
|
218054
218064
|
relationId: agentToolRelationId
|
|
218055
218065
|
});
|
|
218056
218066
|
logger10.info(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251125061921",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|