@inkeep/agents-core 0.31.7 → 0.32.1

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.
Files changed (58) hide show
  1. package/dist/{chunk-RBUBOGX6.js → chunk-FUJJ4OQ2.js} +62 -10
  2. package/dist/{chunk-T5TTDZ6L.js → chunk-VSQY72K5.js} +133 -133
  3. package/dist/{chunk-PPBBIDK4.js → chunk-X6ZMJ3G6.js} +1 -1
  4. package/dist/client-exports.cjs +283 -224
  5. package/dist/client-exports.d.cts +7 -7
  6. package/dist/client-exports.d.ts +7 -7
  7. package/dist/client-exports.js +15 -7
  8. package/dist/db/schema.cjs +211 -211
  9. package/dist/db/schema.d.cts +3 -3
  10. package/dist/db/schema.d.ts +3 -3
  11. package/dist/db/schema.js +1 -1
  12. package/dist/index.cjs +597 -402
  13. package/dist/index.d.cts +409 -352
  14. package/dist/index.d.ts +409 -352
  15. package/dist/index.js +281 -162
  16. package/dist/{schema-lEFnfOQ-.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
  17. package/dist/{schema-ztSm-Iv6.d.cts → schema-D1P8r3qm.d.cts} +876 -1014
  18. package/dist/types/index.d.cts +3 -3
  19. package/dist/types/index.d.ts +3 -3
  20. package/dist/{utility-qLyZ45lb.d.cts → utility-DF5IUC9K.d.cts} +1230 -1394
  21. package/dist/{utility-qLyZ45lb.d.ts → utility-DF5IUC9K.d.ts} +1230 -1394
  22. package/dist/validation/index.cjs +270 -219
  23. package/dist/validation/index.d.cts +3 -3
  24. package/dist/validation/index.d.ts +3 -3
  25. package/dist/validation/index.js +2 -2
  26. package/drizzle/0000_exotic_mysterio.sql +398 -0
  27. package/drizzle/meta/0000_snapshot.json +1683 -1223
  28. package/drizzle/meta/_journal.json +4 -102
  29. package/package.json +6 -3
  30. package/drizzle/0000_material_menace.sql +0 -326
  31. package/drizzle/0001_eminent_fixer.sql +0 -43
  32. package/drizzle/0002_bumpy_romulus.sql +0 -3
  33. package/drizzle/0003_soft_forgotten_one.sql +0 -39
  34. package/drizzle/0004_melted_omega_flight.sql +0 -3
  35. package/drizzle/0005_wide_shriek.sql +0 -127
  36. package/drizzle/0006_damp_lenny_balinger.sql +0 -52
  37. package/drizzle/0007_mighty_typhoid_mary.sql +0 -227
  38. package/drizzle/0008_mysterious_crusher_hogan.sql +0 -20
  39. package/drizzle/0009_old_black_cat.sql +0 -1
  40. package/drizzle/0010_wet_vampiro.sql +0 -2
  41. package/drizzle/0011_slippery_korg.sql +0 -36
  42. package/drizzle/0012_salty_psynapse.sql +0 -17
  43. package/drizzle/0013_shocking_blur.sql +0 -19
  44. package/drizzle/0014_broad_hellfire_club.sql +0 -29
  45. package/drizzle/meta/0001_snapshot.json +0 -2435
  46. package/drizzle/meta/0002_snapshot.json +0 -2428
  47. package/drizzle/meta/0003_snapshot.json +0 -2559
  48. package/drizzle/meta/0004_snapshot.json +0 -2547
  49. package/drizzle/meta/0005_snapshot.json +0 -2558
  50. package/drizzle/meta/0006_snapshot.json +0 -2751
  51. package/drizzle/meta/0007_snapshot.json +0 -2766
  52. package/drizzle/meta/0008_snapshot.json +0 -2753
  53. package/drizzle/meta/0009_snapshot.json +0 -2744
  54. package/drizzle/meta/0010_snapshot.json +0 -2751
  55. package/drizzle/meta/0011_snapshot.json +0 -2849
  56. package/drizzle/meta/0012_snapshot.json +0 -2985
  57. package/drizzle/meta/0013_snapshot.json +0 -2988
  58. package/drizzle/meta/0014_snapshot.json +0 -2992
@@ -1,11 +1,11 @@
1
1
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.cjs';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-qLyZ45lb.cjs';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-qLyZ45lb.cjs';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DF5IUC9K.cjs';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DF5IUC9K.cjs';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
8
- import 'drizzle-orm/sqlite-core';
8
+ import 'drizzle-orm/pg-core';
9
9
  import '@hono/zod-openapi';
10
10
 
11
11
  declare const TenantParamsSchema: z.ZodObject<{
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- name: z.ZodString;
138
137
  id: z.ZodString;
138
+ name: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,11 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- name: z.ZodString;
174
173
  id: z.ZodString;
174
+ name: z.ZodString;
175
+ description: z.ZodString;
175
176
  createdAt: z.ZodOptional<z.ZodString>;
176
177
  updatedAt: z.ZodOptional<z.ZodString>;
177
- description: z.ZodString;
178
178
  models: z.ZodOptional<z.ZodObject<{
179
179
  base: z.ZodOptional<z.ZodObject<{
180
180
  model: z.ZodOptional<z.ZodString>;
@@ -198,7 +198,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
198
198
  }, {
199
199
  stepCountIs?: number | undefined;
200
200
  }>>>>;
201
- prompt: z.ZodString;
202
201
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
203
202
  type: z.ZodLiteral<"internal">;
204
203
  canUse: z.ZodArray<z.ZodObject<{
@@ -210,6 +209,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
210
209
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
210
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
211
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ prompt: z.ZodString;
213
213
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
214
214
  externalAgentId: z.ZodString;
215
215
  subAgentExternalAgentRelationId: z.ZodOptional<z.ZodString>;
@@ -1,11 +1,11 @@
1
1
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.js';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-qLyZ45lb.js';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-qLyZ45lb.js';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DF5IUC9K.js';
4
+ export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DF5IUC9K.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
8
- import 'drizzle-orm/sqlite-core';
8
+ import 'drizzle-orm/pg-core';
9
9
  import '@hono/zod-openapi';
10
10
 
11
11
  declare const TenantParamsSchema: z.ZodObject<{
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- name: z.ZodString;
138
137
  id: z.ZodString;
138
+ name: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,11 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- name: z.ZodString;
174
173
  id: z.ZodString;
174
+ name: z.ZodString;
175
+ description: z.ZodString;
175
176
  createdAt: z.ZodOptional<z.ZodString>;
176
177
  updatedAt: z.ZodOptional<z.ZodString>;
177
- description: z.ZodString;
178
178
  models: z.ZodOptional<z.ZodObject<{
179
179
  base: z.ZodOptional<z.ZodObject<{
180
180
  model: z.ZodOptional<z.ZodString>;
@@ -198,7 +198,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
198
198
  }, {
199
199
  stepCountIs?: number | undefined;
200
200
  }>>>>;
201
- prompt: z.ZodString;
202
201
  conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
203
202
  type: z.ZodLiteral<"internal">;
204
203
  canUse: z.ZodArray<z.ZodObject<{
@@ -210,6 +209,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
210
209
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
210
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
211
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ prompt: z.ZodString;
213
213
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
214
214
  externalAgentId: z.ZodString;
215
215
  subAgentExternalAgentRelationId: z.ZodOptional<z.ZodString>;
@@ -1,10 +1,18 @@
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, detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
2
- import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-RBUBOGX6.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-RBUBOGX6.js';
2
+ import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-FUJJ4OQ2.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-FUJJ4OQ2.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
5
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
6
  import { z } from 'zod';
7
7
 
8
+ var {
9
+ AGENT_EXECUTION_TRANSFER_COUNT_MAX,
10
+ AGENT_EXECUTION_TRANSFER_COUNT_MIN,
11
+ STATUS_UPDATE_MAX_INTERVAL_SECONDS,
12
+ STATUS_UPDATE_MAX_NUM_EVENTS,
13
+ VALIDATION_AGENT_PROMPT_MAX_CHARS,
14
+ VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS
15
+ } = schemaValidationDefaults;
8
16
  var TenantParamsSchema = z.object({
9
17
  tenantId: z.string()
10
18
  });
@@ -136,14 +144,14 @@ var FullAgentDefinitionSchema = AgentAgentApiInsertSchema.extend({
136
144
  }).optional()
137
145
  }).optional(),
138
146
  stopWhen: z.object({
139
- transferCountIs: z.number().min(1).max(100).optional()
147
+ transferCountIs: z.number().min(AGENT_EXECUTION_TRANSFER_COUNT_MIN).max(AGENT_EXECUTION_TRANSFER_COUNT_MAX).optional()
140
148
  }).optional(),
141
- prompt: z.string().max(5e3).optional(),
149
+ prompt: z.string().max(VALIDATION_AGENT_PROMPT_MAX_CHARS).optional(),
142
150
  statusUpdates: z.object({
143
151
  enabled: z.boolean().optional(),
144
- numEvents: z.number().min(1).max(100).optional(),
145
- timeInSeconds: z.number().min(1).max(600).optional(),
146
- prompt: z.string().max(2e3).optional(),
152
+ numEvents: z.number().min(1).max(STATUS_UPDATE_MAX_NUM_EVENTS).optional(),
153
+ timeInSeconds: z.number().min(1).max(STATUS_UPDATE_MAX_INTERVAL_SECONDS).optional(),
154
+ prompt: z.string().max(VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS).optional(),
147
155
  statusComponents: z.array(
148
156
  z.object({
149
157
  type: z.string(),