@inkeep/agents-core 0.0.0-dev-20251024213857 → 0.0.0-dev-20251025011512

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.cjs CHANGED
@@ -215867,7 +215867,7 @@ var CredentialStuffer = class {
215867
215867
  if (!contextConfigId || !conversationId || !this.contextResolver) {
215868
215868
  return null;
215869
215869
  }
215870
- const context = await this.contextResolver.resolveHeaders(
215870
+ const headersContext = await this.contextResolver.resolveHeaders(
215871
215871
  conversationId,
215872
215872
  contextConfigId
215873
215873
  );
@@ -215875,7 +215875,7 @@ var CredentialStuffer = class {
215875
215875
  for (const [key, value] of Object.entries(headers2)) {
215876
215876
  resolvedHeaders[key] = TemplateEngine.render(
215877
215877
  value,
215878
- context,
215878
+ { headers: headersContext },
215879
215879
  { strict: true }
215880
215880
  );
215881
215881
  }
@@ -215924,24 +215924,13 @@ var CredentialStuffer = class {
215924
215924
  headers: tool2.headers || {}
215925
215925
  });
215926
215926
  }
215927
- const baseConfig = {
215927
+ return {
215928
215928
  type: tool2.transport?.type || MCPTransportType.streamableHttp,
215929
215929
  url: tool2.serverUrl,
215930
215930
  activeTools: tool2.activeTools,
215931
- selectedTools
215931
+ selectedTools,
215932
+ headers: credentialHeaders
215932
215933
  };
215933
- if (baseConfig.type === MCPTransportType.streamableHttp || baseConfig.type === MCPTransportType.sse) {
215934
- const httpConfig = {
215935
- ...baseConfig,
215936
- url: tool2.serverUrl,
215937
- headers: {
215938
- ...tool2.headers,
215939
- ...credentialHeaders
215940
- }
215941
- };
215942
- return httpConfig;
215943
- }
215944
- return baseConfig;
215945
215934
  }
215946
215935
  };
215947
215936
  function createDatabaseClient(config) {
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { detectAuthenticationRequired } from './chunk-CK2M5I4Q.js';
2
2
  export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from './chunk-CK2M5I4Q.js';
3
- export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
3
+ export { TaskState } from './chunk-H2F72PDA.js';
4
4
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
5
5
  export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
6
- export { TaskState } from './chunk-H2F72PDA.js';
7
6
  import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-OSAGBXSF.js';
8
7
  export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from './chunk-OSAGBXSF.js';
9
8
  import { ContextConfigApiUpdateSchema, validatePropsAsJsonSchema } from './chunk-C2QU7WTO.js';
@@ -12,6 +11,7 @@ import { schema_exports, contextConfigs, externalAgents, functions, functionTool
12
11
  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-T5TTDZ6L.js';
13
12
  import { CredentialStoreType, MCPServerType, MCPTransportType } from './chunk-YFHT5M2R.js';
14
13
  export { CredentialStoreType, MCPServerType, MCPTransportType, TOOL_STATUS_VALUES, VALID_RELATION_TYPES } from './chunk-YFHT5M2R.js';
14
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
15
15
  import { __commonJS, __require, __publicField } from './chunk-E6R6PML7.js';
16
16
  import { z as z$1 } from 'zod';
17
17
  import { customAlphabet, nanoid } from 'nanoid';
@@ -213470,7 +213470,7 @@ var CredentialStuffer = class {
213470
213470
  if (!contextConfigId || !conversationId || !this.contextResolver) {
213471
213471
  return null;
213472
213472
  }
213473
- const context = await this.contextResolver.resolveHeaders(
213473
+ const headersContext = await this.contextResolver.resolveHeaders(
213474
213474
  conversationId,
213475
213475
  contextConfigId
213476
213476
  );
@@ -213478,7 +213478,7 @@ var CredentialStuffer = class {
213478
213478
  for (const [key, value] of Object.entries(headers2)) {
213479
213479
  resolvedHeaders[key] = TemplateEngine.render(
213480
213480
  value,
213481
- context,
213481
+ { headers: headersContext },
213482
213482
  { strict: true }
213483
213483
  );
213484
213484
  }
@@ -213527,24 +213527,13 @@ var CredentialStuffer = class {
213527
213527
  headers: tool2.headers || {}
213528
213528
  });
213529
213529
  }
213530
- const baseConfig = {
213530
+ return {
213531
213531
  type: tool2.transport?.type || MCPTransportType.streamableHttp,
213532
213532
  url: tool2.serverUrl,
213533
213533
  activeTools: tool2.activeTools,
213534
- selectedTools
213534
+ selectedTools,
213535
+ headers: credentialHeaders
213535
213536
  };
213536
- if (baseConfig.type === MCPTransportType.streamableHttp || baseConfig.type === MCPTransportType.sse) {
213537
- const httpConfig = {
213538
- ...baseConfig,
213539
- url: tool2.serverUrl,
213540
- headers: {
213541
- ...tool2.headers,
213542
- ...credentialHeaders
213543
- }
213544
- };
213545
- return httpConfig;
213546
- }
213547
- return baseConfig;
213548
213537
  }
213549
213538
  };
213550
213539
  function createDatabaseClient(config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20251024213857",
3
+ "version": "0.0.0-dev-20251025011512",
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",