@inkeep/agents-core 0.22.1 → 0.22.3

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.
@@ -4,7 +4,7 @@ var ANTHROPIC_MODELS = {
4
4
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
5
5
  CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
6
6
  CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
7
- CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
7
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0",
8
8
  CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
9
9
  CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
10
10
  CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
@@ -6,7 +6,7 @@ var ANTHROPIC_MODELS = {
6
6
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
7
7
  CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
8
8
  CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
9
- CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
9
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0",
10
10
  CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
11
11
  CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
12
12
  CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
@@ -6,7 +6,7 @@ declare const ANTHROPIC_MODELS: {
6
6
  readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
7
7
  readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
8
8
  readonly CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929";
9
- readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4";
9
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0";
10
10
  readonly CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514";
11
11
  readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet";
12
12
  readonly CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022";
@@ -6,7 +6,7 @@ declare const ANTHROPIC_MODELS: {
6
6
  readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
7
7
  readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
8
8
  readonly CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929";
9
- readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4";
9
+ readonly CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0";
10
10
  readonly CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514";
11
11
  readonly CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet";
12
12
  readonly CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022";
@@ -1 +1 @@
1
- export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-TTIPV5QP.js';
1
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-IT3TTPQ2.js';
package/dist/index.cjs CHANGED
@@ -212903,7 +212903,7 @@ var ANTHROPIC_MODELS = {
212903
212903
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
212904
212904
  CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
212905
212905
  CLAUDE_SONNET_4_5_20250929: "anthropic/claude-sonnet-4-5-20250929",
212906
- CLAUDE_SONNET_4: "anthropic/claude-sonnet-4",
212906
+ CLAUDE_SONNET_4: "anthropic/claude-sonnet-4-0",
212907
212907
  CLAUDE_SONNET_4_20250514: "anthropic/claude-sonnet-4-20250514",
212908
212908
  CLAUDE_3_5_SONNET: "anthropic/claude-3-5-sonnet",
212909
212909
  CLAUDE_3_5_SONNET_20241022: "anthropic/claude-3-5-sonnet-20241022",
@@ -215200,7 +215200,6 @@ var ContextConfigBuilder = class {
215200
215200
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
215201
215201
  };
215202
215202
  }
215203
- // Getter methods
215204
215203
  getId() {
215205
215204
  if (!this.config.id) {
215206
215205
  throw new Error("Context config ID is not set");
@@ -215213,7 +215212,6 @@ var ContextConfigBuilder = class {
215213
215212
  getContextVariables() {
215214
215213
  return this.config.contextVariables || {};
215215
215214
  }
215216
- // Builder methods for fluent API
215217
215215
  withHeadersSchema(schema) {
215218
215216
  this.config.headersSchema = schema;
215219
215217
  return this;
@@ -215222,7 +215220,6 @@ var ContextConfigBuilder = class {
215222
215220
  toTemplate(path2) {
215223
215221
  return `{{${path2}}}`;
215224
215222
  }
215225
- // Validation method
215226
215223
  validate() {
215227
215224
  try {
215228
215225
  const contextVariables = this.config.contextVariables || {};
@@ -215250,7 +215247,6 @@ var ContextConfigBuilder = class {
215250
215247
  return { valid: false, errors: ["Unknown validation error"] };
215251
215248
  }
215252
215249
  }
215253
- // Initialize and save to database
215254
215250
  async init() {
215255
215251
  const validation = this.validate();
215256
215252
  if (!validation.valid) {
@@ -215275,7 +215271,6 @@ var ContextConfigBuilder = class {
215275
215271
  throw error;
215276
215272
  }
215277
215273
  }
215278
- // Private method to upsert context config
215279
215274
  async upsertContextConfig() {
215280
215275
  const configData = {
215281
215276
  id: this.getId(),
@@ -215344,7 +215339,6 @@ var ContextConfigBuilder = class {
215344
215339
  throw new Error(`Network error while upserting context config: ${String(error)}`);
215345
215340
  }
215346
215341
  }
215347
- // Helper method to parse error responses
215348
215342
  async parseErrorResponse(response) {
215349
215343
  try {
215350
215344
  const contentType = response.headers?.get("content-type");
@@ -220774,9 +220768,7 @@ var updateFullAgentServerSide = (db, logger14 = defaultLogger) => async (scopes,
220774
220768
  const modelTypes = ["base", "structuredOutput", "summarizer"];
220775
220769
  const cascadedModels = { ...finalModelSettings };
220776
220770
  for (const modelType of modelTypes) {
220777
- if (subAgentModels[modelType]?.model && existingAgentModels?.[modelType]?.model && subAgentModels[modelType].model === existingAgentModels[modelType].model && agentModels[modelType] && // Model name changed
220778
- (agentModels[modelType].model !== existingAgentModels[modelType]?.model || // OR providerOptions changed
220779
- JSON.stringify(agentModels[modelType].providerOptions) !== JSON.stringify(existingAgentModels[modelType]?.providerOptions))) {
220771
+ if (subAgentModels[modelType]?.model && existingAgentModels?.[modelType]?.model && subAgentModels[modelType].model === existingAgentModels[modelType].model && agentModels[modelType] && (agentModels[modelType].model !== existingAgentModels[modelType]?.model || JSON.stringify(agentModels[modelType].providerOptions) !== JSON.stringify(existingAgentModels[modelType]?.providerOptions))) {
220780
220772
  cascadedModels[modelType] = agentModels[modelType];
220781
220773
  logger14.info(
220782
220774
  {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
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 } from './chunk-QFIITHNT.js';
2
- export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-TTIPV5QP.js';
2
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from './chunk-IT3TTPQ2.js';
3
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';
@@ -212991,7 +212991,6 @@ var ContextConfigBuilder = class {
212991
212991
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
212992
212992
  };
212993
212993
  }
212994
- // Getter methods
212995
212994
  getId() {
212996
212995
  if (!this.config.id) {
212997
212996
  throw new Error("Context config ID is not set");
@@ -213004,7 +213003,6 @@ var ContextConfigBuilder = class {
213004
213003
  getContextVariables() {
213005
213004
  return this.config.contextVariables || {};
213006
213005
  }
213007
- // Builder methods for fluent API
213008
213006
  withHeadersSchema(schema) {
213009
213007
  this.config.headersSchema = schema;
213010
213008
  return this;
@@ -213013,7 +213011,6 @@ var ContextConfigBuilder = class {
213013
213011
  toTemplate(path2) {
213014
213012
  return `{{${path2}}}`;
213015
213013
  }
213016
- // Validation method
213017
213014
  validate() {
213018
213015
  try {
213019
213016
  const contextVariables = this.config.contextVariables || {};
@@ -213041,7 +213038,6 @@ var ContextConfigBuilder = class {
213041
213038
  return { valid: false, errors: ["Unknown validation error"] };
213042
213039
  }
213043
213040
  }
213044
- // Initialize and save to database
213045
213041
  async init() {
213046
213042
  const validation = this.validate();
213047
213043
  if (!validation.valid) {
@@ -213066,7 +213062,6 @@ var ContextConfigBuilder = class {
213066
213062
  throw error;
213067
213063
  }
213068
213064
  }
213069
- // Private method to upsert context config
213070
213065
  async upsertContextConfig() {
213071
213066
  const configData = {
213072
213067
  id: this.getId(),
@@ -213135,7 +213130,6 @@ var ContextConfigBuilder = class {
213135
213130
  throw new Error(`Network error while upserting context config: ${String(error)}`);
213136
213131
  }
213137
213132
  }
213138
- // Helper method to parse error responses
213139
213133
  async parseErrorResponse(response) {
213140
213134
  try {
213141
213135
  const contentType = response.headers?.get("content-type");
@@ -218332,9 +218326,7 @@ var updateFullAgentServerSide = (db, logger13 = defaultLogger) => async (scopes,
218332
218326
  const modelTypes = ["base", "structuredOutput", "summarizer"];
218333
218327
  const cascadedModels = { ...finalModelSettings };
218334
218328
  for (const modelType of modelTypes) {
218335
- if (subAgentModels[modelType]?.model && existingAgentModels?.[modelType]?.model && subAgentModels[modelType].model === existingAgentModels[modelType].model && agentModels[modelType] && // Model name changed
218336
- (agentModels[modelType].model !== existingAgentModels[modelType]?.model || // OR providerOptions changed
218337
- JSON.stringify(agentModels[modelType].providerOptions) !== JSON.stringify(existingAgentModels[modelType]?.providerOptions))) {
218329
+ if (subAgentModels[modelType]?.model && existingAgentModels?.[modelType]?.model && subAgentModels[modelType].model === existingAgentModels[modelType].model && agentModels[modelType] && (agentModels[modelType].model !== existingAgentModels[modelType]?.model || JSON.stringify(agentModels[modelType].providerOptions) !== JSON.stringify(existingAgentModels[modelType]?.providerOptions))) {
218338
218330
  cascadedModels[modelType] = agentModels[modelType];
218339
218331
  logger13.info(
218340
218332
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.22.1",
3
+ "version": "0.22.3",
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",