@inkeep/agents-core 0.23.2 → 0.23.4

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.
@@ -298,7 +298,7 @@ async function discoverMcpMetadata(mcpServerUrl, logger) {
298
298
  }
299
299
  } catch {
300
300
  }
301
- const metadata = await discoverAuthorizationServerMetadata(authServerUrl);
301
+ const metadata = await discoverAuthorizationServerMetadata(authServerUrl.href);
302
302
  if (!metadata) {
303
303
  throw new Error("Failed to discover OAuth authorization server metadata");
304
304
  }
@@ -359,7 +359,7 @@ async function initiateMcpOAuthFlow({
359
359
  ...clientMetadata
360
360
  };
361
361
  }
362
- const resource = resourceMetadata?.resource ? new URL(resourceMetadata.resource) : void 0;
362
+ const resource = resourceMetadata?.resource ? new globalThis.URL(resourceMetadata.resource) : void 0;
363
363
  const authResult = await startAuthorization(mcpServerUrl, {
364
364
  metadata,
365
365
  clientInformation,
@@ -396,7 +396,7 @@ async function exchangeMcpAuthorizationCode({
396
396
  resourceUrl,
397
397
  logger
398
398
  }) {
399
- const resource = resourceUrl ? new URL(resourceUrl) : void 0;
399
+ const resource = resourceUrl ? new globalThis.URL(resourceUrl) : void 0;
400
400
  const tokens = await exchangeAuthorization(mcpServerUrl, {
401
401
  metadata,
402
402
  clientInformation,
@@ -2016,7 +2016,7 @@ async function discoverMcpMetadata(mcpServerUrl, logger) {
2016
2016
  }
2017
2017
  } catch {
2018
2018
  }
2019
- const metadata = await auth_js.discoverAuthorizationServerMetadata(authServerUrl);
2019
+ const metadata = await auth_js.discoverAuthorizationServerMetadata(authServerUrl.href);
2020
2020
  if (!metadata) {
2021
2021
  throw new Error("Failed to discover OAuth authorization server metadata");
2022
2022
  }
@@ -1,4 +1,4 @@
1
- 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 } from './chunk-5GAUAB2P.js';
1
+ 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 } from './chunk-NJZ3ICNP.js';
2
2
  import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-HN77JIDP.js';
3
3
  export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-HN77JIDP.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
package/dist/index.cjs CHANGED
@@ -217201,7 +217201,7 @@ async function discoverMcpMetadata(mcpServerUrl, logger14) {
217201
217201
  }
217202
217202
  } catch {
217203
217203
  }
217204
- const metadata = await auth_js.discoverAuthorizationServerMetadata(authServerUrl);
217204
+ const metadata = await auth_js.discoverAuthorizationServerMetadata(authServerUrl.href);
217205
217205
  if (!metadata) {
217206
217206
  throw new Error("Failed to discover OAuth authorization server metadata");
217207
217207
  }
@@ -217262,7 +217262,7 @@ async function initiateMcpOAuthFlow({
217262
217262
  ...clientMetadata
217263
217263
  };
217264
217264
  }
217265
- const resource = resourceMetadata?.resource ? new URL(resourceMetadata.resource) : void 0;
217265
+ const resource = resourceMetadata?.resource ? new globalThis.URL(resourceMetadata.resource) : void 0;
217266
217266
  const authResult = await auth_js.startAuthorization(mcpServerUrl, {
217267
217267
  metadata,
217268
217268
  clientInformation,
@@ -217299,7 +217299,7 @@ async function exchangeMcpAuthorizationCode({
217299
217299
  resourceUrl,
217300
217300
  logger: logger14
217301
217301
  }) {
217302
- const resource = resourceUrl ? new URL(resourceUrl) : void 0;
217302
+ const resource = resourceUrl ? new globalThis.URL(resourceUrl) : void 0;
217303
217303
  const tokens = await auth_js.exchangeAuthorization(mcpServerUrl, {
217304
217304
  metadata,
217305
217305
  clientInformation,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { detectAuthenticationRequired } from './chunk-5GAUAB2P.js';
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-5GAUAB2P.js';
1
+ import { detectAuthenticationRequired } from './chunk-NJZ3ICNP.js';
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-NJZ3ICNP.js';
3
3
  export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-MQTANAMG.js';
4
4
  export { TaskState } from './chunk-H2F72PDA.js';
5
5
  import { getLogger, convertZodToJsonSchema } from './chunk-YECQCT5N.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.23.2",
3
+ "version": "0.23.4",
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",
@@ -78,11 +78,11 @@
78
78
  "devDependencies": {
79
79
  "@types/jmespath": "^0.15.2",
80
80
  "@types/node": "^20.11.24",
81
- "@vitest/coverage-v8": "^2.0.0",
81
+ "@vitest/coverage-v8": "^3.2.4",
82
82
  "clean-package": "^2.2.0",
83
83
  "tsx": "^4.19.2",
84
84
  "typescript": "^5.9.2",
85
- "vitest": "^3.1.4"
85
+ "vitest": "^3.2.4"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=22.0.0"