@inkeep/agents-core 0.0.0-dev-20251113014534 → 0.0.0-dev-20251113211352

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
@@ -215730,9 +215730,11 @@ var ContextConfigBuilder = class {
215730
215730
  const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
215731
215731
  processedContextVariables[key] = {
215732
215732
  ...rest,
215733
- responseSchema: convertZodToJsonSchema(definition.responseSchema),
215734
- credentialReferenceId
215733
+ responseSchema: convertZodToJsonSchema(definition.responseSchema)
215735
215734
  };
215735
+ if (credentialReferenceId !== void 0) {
215736
+ processedContextVariables[key].credentialReferenceId = credentialReferenceId;
215737
+ }
215736
215738
  logger2.debug(
215737
215739
  {
215738
215740
  contextVariableKey: key,
@@ -215958,22 +215960,39 @@ function headers(options) {
215958
215960
  }
215959
215961
  function fetchDefinition(options) {
215960
215962
  const fetchConfig = options.fetchConfig;
215961
- return {
215963
+ const result = {
215962
215964
  id: options.id,
215963
- name: options.name,
215964
215965
  trigger: options.trigger,
215965
215966
  fetchConfig: {
215966
- url: fetchConfig.url,
215967
- method: fetchConfig.method,
215968
- headers: fetchConfig.headers,
215969
- body: fetchConfig.body,
215970
- transform: fetchConfig.transform,
215971
- timeout: fetchConfig.timeout
215967
+ url: fetchConfig.url
215972
215968
  },
215973
- responseSchema: options.responseSchema,
215974
- defaultValue: options.defaultValue,
215975
- credentialReferenceId: options.credentialReference?.id
215969
+ responseSchema: options.responseSchema
215976
215970
  };
215971
+ if (options.name !== void 0) {
215972
+ result.name = options.name;
215973
+ }
215974
+ if (options.defaultValue !== void 0) {
215975
+ result.defaultValue = options.defaultValue;
215976
+ }
215977
+ if (fetchConfig.method !== void 0) {
215978
+ result.fetchConfig.method = fetchConfig.method;
215979
+ }
215980
+ if (fetchConfig.headers !== void 0) {
215981
+ result.fetchConfig.headers = fetchConfig.headers;
215982
+ }
215983
+ if (fetchConfig.transform !== void 0) {
215984
+ result.fetchConfig.transform = fetchConfig.transform;
215985
+ }
215986
+ if (fetchConfig.body !== void 0) {
215987
+ result.fetchConfig.body = fetchConfig.body;
215988
+ }
215989
+ if (fetchConfig.timeout !== void 0) {
215990
+ result.fetchConfig.timeout = fetchConfig.timeout;
215991
+ }
215992
+ if (options.credentialReference?.id !== void 0) {
215993
+ result.credentialReferenceId = options.credentialReference.id;
215994
+ }
215995
+ return result;
215977
215996
  }
215978
215997
  var logger3 = getLogger("template-engine");
215979
215998
  var _TemplateEngine = class _TemplateEngine {
@@ -216324,7 +216343,7 @@ var CredentialStuffer = class {
216324
216343
  credentialStoreHeaders = await this.getCredentials(context, storeReference, mcpType);
216325
216344
  }
216326
216345
  if (!credentialStoreHeaders) {
216327
- return credentialsFromHeaders ? credentialsFromHeaders.headers : {};
216346
+ return credentialsFromHeaders ? credentialsFromHeaders.headers : { ...headers2 };
216328
216347
  }
216329
216348
  const combinedHeaders = {
216330
216349
  ...credentialStoreHeaders.headers,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { detectAuthenticationRequired } from './chunk-OP3KPT4T.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-OP3KPT4T.js';
3
- export { TaskState } from './chunk-H2F72PDA.js';
4
3
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
4
+ export { TaskState } from './chunk-H2F72PDA.js';
5
5
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
6
6
  export { PinoLogger, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, getLogger, isZodSchema, loggerFactory, preview } from './chunk-YECQCT5N.js';
7
7
  import { validateRender, validateAndTypeAgentData, validateAgentStructure } from './chunk-HS7ZTPLJ.js';
@@ -213063,9 +213063,11 @@ var ContextConfigBuilder = class {
213063
213063
  const credentialReferenceId = credentialReference?.id || rest.credentialReferenceId;
213064
213064
  processedContextVariables[key] = {
213065
213065
  ...rest,
213066
- responseSchema: convertZodToJsonSchema(definition.responseSchema),
213067
- credentialReferenceId
213066
+ responseSchema: convertZodToJsonSchema(definition.responseSchema)
213068
213067
  };
213068
+ if (credentialReferenceId !== void 0) {
213069
+ processedContextVariables[key].credentialReferenceId = credentialReferenceId;
213070
+ }
213069
213071
  logger.debug(
213070
213072
  {
213071
213073
  contextVariableKey: key,
@@ -213291,22 +213293,39 @@ function headers(options) {
213291
213293
  }
213292
213294
  function fetchDefinition(options) {
213293
213295
  const fetchConfig = options.fetchConfig;
213294
- return {
213296
+ const result = {
213295
213297
  id: options.id,
213296
- name: options.name,
213297
213298
  trigger: options.trigger,
213298
213299
  fetchConfig: {
213299
- url: fetchConfig.url,
213300
- method: fetchConfig.method,
213301
- headers: fetchConfig.headers,
213302
- body: fetchConfig.body,
213303
- transform: fetchConfig.transform,
213304
- timeout: fetchConfig.timeout
213300
+ url: fetchConfig.url
213305
213301
  },
213306
- responseSchema: options.responseSchema,
213307
- defaultValue: options.defaultValue,
213308
- credentialReferenceId: options.credentialReference?.id
213302
+ responseSchema: options.responseSchema
213309
213303
  };
213304
+ if (options.name !== void 0) {
213305
+ result.name = options.name;
213306
+ }
213307
+ if (options.defaultValue !== void 0) {
213308
+ result.defaultValue = options.defaultValue;
213309
+ }
213310
+ if (fetchConfig.method !== void 0) {
213311
+ result.fetchConfig.method = fetchConfig.method;
213312
+ }
213313
+ if (fetchConfig.headers !== void 0) {
213314
+ result.fetchConfig.headers = fetchConfig.headers;
213315
+ }
213316
+ if (fetchConfig.transform !== void 0) {
213317
+ result.fetchConfig.transform = fetchConfig.transform;
213318
+ }
213319
+ if (fetchConfig.body !== void 0) {
213320
+ result.fetchConfig.body = fetchConfig.body;
213321
+ }
213322
+ if (fetchConfig.timeout !== void 0) {
213323
+ result.fetchConfig.timeout = fetchConfig.timeout;
213324
+ }
213325
+ if (options.credentialReference?.id !== void 0) {
213326
+ result.credentialReferenceId = options.credentialReference.id;
213327
+ }
213328
+ return result;
213310
213329
  }
213311
213330
  var logger2 = getLogger("template-engine");
213312
213331
  var _TemplateEngine = class _TemplateEngine {
@@ -213643,7 +213662,7 @@ var CredentialStuffer = class {
213643
213662
  credentialStoreHeaders = await this.getCredentials(context, storeReference, mcpType);
213644
213663
  }
213645
213664
  if (!credentialStoreHeaders) {
213646
- return credentialsFromHeaders ? credentialsFromHeaders.headers : {};
213665
+ return credentialsFromHeaders ? credentialsFromHeaders.headers : { ...headers2 };
213647
213666
  }
213648
213667
  const combinedHeaders = {
213649
213668
  ...credentialStoreHeaders.headers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20251113014534",
3
+ "version": "0.0.0-dev-20251113211352",
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",