@inkeep/agents-core 0.0.0-dev-20260227204243 → 0.0.0-dev-20260227220655

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.
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
- id: string;
20
19
  tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
20
+ userId: string | null;
23
21
  title: string | null;
22
+ agentId: string | null;
23
+ projectId: string;
24
+ id: string;
24
25
  createdAt: string;
25
26
  updatedAt: string;
26
27
  metadata: ConversationMetadata | null;
27
28
  ref: {
28
- type: "tag" | "commit" | "branch";
29
+ type: "commit" | "tag" | "branch";
29
30
  name: string;
30
31
  hash: string;
31
32
  } | null;
32
- userId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
44
44
  agentId: string | null;
45
45
  activeSubAgentId: string;
46
46
  ref: {
47
- type: "tag" | "commit" | "branch";
47
+ type: "commit" | "tag" | "branch";
48
48
  name: string;
49
49
  hash: string;
50
50
  } | null;
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
70
70
  agentId: string | null;
71
71
  activeSubAgentId: string;
72
72
  ref: {
73
- type: "tag" | "commit" | "branch";
73
+ type: "commit" | "tag" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- id: string;
89
88
  tenantId: string;
90
- projectId: string;
91
- agentId: string | null;
89
+ userId: string | null;
92
90
  title: string | null;
91
+ agentId: string | null;
92
+ projectId: string;
93
+ id: string;
93
94
  createdAt: string;
94
95
  updatedAt: string;
95
96
  metadata: ConversationMetadata | null;
96
97
  ref: {
97
- type: "tag" | "commit" | "branch";
98
+ type: "commit" | "tag" | "branch";
98
99
  name: string;
99
100
  hash: string;
100
101
  } | null;
101
- userId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
108
108
  tenantId: string;
109
109
  id: string;
110
110
  ref: {
111
- type: "tag" | "commit" | "branch";
111
+ type: "commit" | "tag" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- id: string;
125
124
  tenantId: string;
126
- projectId: string;
127
- agentId: string | null;
125
+ userId: string | null;
128
126
  title: string | null;
127
+ agentId: string | null;
128
+ projectId: string;
129
+ id: string;
129
130
  createdAt: string;
130
131
  updatedAt: string;
131
132
  metadata: ConversationMetadata | null;
132
133
  ref: {
133
- type: "tag" | "commit" | "branch";
134
+ type: "commit" | "tag" | "branch";
134
135
  name: string;
135
136
  hash: string;
136
137
  } | null;
137
- userId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
- id: string;
157
156
  tenantId: string;
158
- projectId: string;
159
- agentId: string | null;
157
+ userId: string | null;
160
158
  title: string | null;
159
+ agentId: string | null;
160
+ projectId: string;
161
+ id: string;
161
162
  createdAt: string;
162
163
  updatedAt: string;
163
164
  metadata: ConversationMetadata | null;
164
165
  ref: {
165
- type: "tag" | "commit" | "branch";
166
+ type: "commit" | "tag" | "branch";
166
167
  name: string;
167
168
  hash: string;
168
169
  } | null;
169
- userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- id: string;
14
13
  tenantId: string;
15
14
  projectId: string;
15
+ id: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  metadata: MessageMetadata | null;
19
19
  content: MessageContent;
20
- role: string;
21
- conversationId: string;
22
20
  fromSubAgentId: string | null;
23
21
  toSubAgentId: string | null;
24
22
  fromExternalAgentId: string | null;
25
23
  toExternalAgentId: string | null;
24
+ taskId: string | null;
25
+ a2aTaskId: string | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- id: string;
145
144
  tenantId: string;
146
145
  projectId: string;
146
+ id: string;
147
147
  createdAt: string;
148
148
  updatedAt: string;
149
149
  metadata: MessageMetadata | null;
150
150
  content: MessageContent;
151
- role: string;
152
- conversationId: string;
153
151
  fromSubAgentId: string | null;
154
152
  toSubAgentId: string | null;
155
153
  fromExternalAgentId: string | null;
156
154
  toExternalAgentId: string | null;
155
+ taskId: string | null;
156
+ a2aTaskId: string | null;
157
+ conversationId: string;
158
+ role: string;
157
159
  fromTeamAgentId: string | null;
158
160
  toTeamAgentId: string | null;
159
161
  visibility: string;
160
162
  messageType: string;
161
- taskId: string | null;
162
163
  parentMessageId: string | null;
163
- a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- id: string;
198
197
  tenantId: string;
199
198
  projectId: string;
199
+ id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
202
  metadata: MessageMetadata | null;
203
203
  content: MessageContent;
204
- role: string;
205
- conversationId: string;
206
204
  fromSubAgentId: string | null;
207
205
  toSubAgentId: string | null;
208
206
  fromExternalAgentId: string | null;
209
207
  toExternalAgentId: string | null;
208
+ taskId: string | null;
209
+ a2aTaskId: string | null;
210
+ conversationId: string;
211
+ role: string;
210
212
  fromTeamAgentId: string | null;
211
213
  toTeamAgentId: string | null;
212
214
  visibility: string;
213
215
  messageType: string;
214
- taskId: string | null;
215
216
  parentMessageId: string | null;
216
- a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
- id: string;
10
9
  tenantId: string;
11
- projectId: string;
10
+ status: string;
12
11
  agentId: string;
12
+ projectId: string;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
16
  metadata: TaskMetadataConfig | null;
17
+ subAgentId: string;
18
+ contextId: string;
16
19
  ref: {
17
- type: "tag" | "commit" | "branch";
20
+ type: "commit" | "tag" | "branch";
18
21
  name: string;
19
22
  hash: string;
20
23
  } | null;
21
- status: string;
22
- subAgentId: string;
23
- contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1843.PgTableWithColumns<{
216
216
  dataType: "json";
217
217
  columnType: "PgJsonb";
218
218
  data: {
219
- type: "tag" | "commit" | "branch";
219
+ type: "commit" | "tag" | "branch";
220
220
  name: string;
221
221
  hash: string;
222
222
  };
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core1843.PgTableWithColumns<{
232
232
  generated: undefined;
233
233
  }, {}, {
234
234
  $type: {
235
- type: "tag" | "commit" | "branch";
235
+ type: "commit" | "tag" | "branch";
236
236
  name: string;
237
237
  hash: string;
238
238
  };
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core1843.PgTableWithColumns<{
413
413
  dataType: "json";
414
414
  columnType: "PgJsonb";
415
415
  data: {
416
- type: "tag" | "commit" | "branch";
416
+ type: "commit" | "tag" | "branch";
417
417
  name: string;
418
418
  hash: string;
419
419
  };
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core1843.PgTableWithColumns<{
429
429
  generated: undefined;
430
430
  }, {}, {
431
431
  $type: {
432
- type: "tag" | "commit" | "branch";
432
+ type: "commit" | "tag" | "branch";
433
433
  name: string;
434
434
  hash: string;
435
435
  };
@@ -3047,7 +3047,7 @@ declare const contextCache: drizzle_orm_pg_core1843.PgTableWithColumns<{
3047
3047
  dataType: "json";
3048
3048
  columnType: "PgJsonb";
3049
3049
  data: {
3050
- type: "tag" | "commit" | "branch";
3050
+ type: "commit" | "tag" | "branch";
3051
3051
  name: string;
3052
3052
  hash: string;
3053
3053
  };
@@ -3063,7 +3063,7 @@ declare const contextCache: drizzle_orm_pg_core1843.PgTableWithColumns<{
3063
3063
  generated: undefined;
3064
3064
  }, {}, {
3065
3065
  $type: {
3066
- type: "tag" | "commit" | "branch";
3066
+ type: "commit" | "tag" | "branch";
3067
3067
  name: string;
3068
3068
  hash: string;
3069
3069
  };
@@ -3967,7 +3967,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1843.PgTableWithCol
3967
3967
  tableName: "work_app_github_installations";
3968
3968
  dataType: "string";
3969
3969
  columnType: "PgVarchar";
3970
- data: "User" | "Organization";
3970
+ data: "Organization" | "User";
3971
3971
  driverParam: string;
3972
3972
  notNull: true;
3973
3973
  hasDefault: false;
@@ -3980,7 +3980,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1843.PgTableWithCol
3980
3980
  generated: undefined;
3981
3981
  }, {}, {
3982
3982
  length: 20;
3983
- $type: "User" | "Organization";
3983
+ $type: "Organization" | "User";
3984
3984
  }>;
3985
3985
  status: drizzle_orm_pg_core1843.PgColumn<{
3986
3986
  name: "status";
@@ -32,8 +32,8 @@ declare const BranchNameParamsSchema: z.ZodObject<{
32
32
  }, z.core.$strip>;
33
33
  declare const ResolvedRefSchema: z.ZodObject<{
34
34
  type: z.ZodEnum<{
35
- tag: "tag";
36
35
  commit: "commit";
36
+ tag: "tag";
37
37
  branch: "branch";
38
38
  }>;
39
39
  name: z.ZodString;
@@ -1,10 +1,10 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import * as drizzle_zod361 from "drizzle-zod";
2
+ import * as drizzle_zod0 from "drizzle-zod";
3
3
  import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
4
 
5
5
  //#region src/validation/drizzle-schema-helpers.d.ts
6
- declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod361.BuildSchema<"select", T["_"]["columns"], drizzle_zod361.BuildRefine<T["_"]["columns"], undefined>, undefined>;
7
- declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod361.BuildSchema<"insert", T["_"]["columns"], drizzle_zod361.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
6
+ declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"select", T["_"]["columns"], drizzle_zod0.BuildRefine<T["_"]["columns"], undefined>, undefined>;
7
+ declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"insert", T["_"]["columns"], drizzle_zod0.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
8
8
  declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
9
9
  declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
10
10
  /**