@inkeep/agents-core 0.0.0-dev-20260309140215 → 0.0.0-dev-20260309145022

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 (33) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +135 -135
  2. package/dist/auth/auth.d.ts +9 -9
  3. package/dist/auth/permissions.d.ts +9 -9
  4. package/dist/client-exports.d.ts +2 -2
  5. package/dist/data-access/manage/agents.d.ts +20 -20
  6. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  7. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  8. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  9. package/dist/data-access/manage/functionTools.d.ts +16 -16
  10. package/dist/data-access/manage/skills.d.ts +13 -13
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  12. package/dist/data-access/manage/subAgentRelations.d.ts +32 -32
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgents.d.ts +12 -12
  15. package/dist/data-access/manage/tools.d.ts +21 -21
  16. package/dist/data-access/manage/tools.js +2 -0
  17. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  18. package/dist/data-access/runtime/cascade-delete.js +2 -2
  19. package/dist/data-access/runtime/conversations.d.ts +31 -31
  20. package/dist/data-access/runtime/github-work-app-installations.d.ts +25 -5
  21. package/dist/data-access/runtime/github-work-app-installations.js +20 -17
  22. package/dist/data-access/runtime/messages.d.ts +18 -18
  23. package/dist/data-access/runtime/tasks.d.ts +8 -8
  24. package/dist/db/manage/manage-schema.d.ts +449 -449
  25. package/dist/db/runtime/runtime-schema.d.ts +318 -318
  26. package/dist/db/runtime/runtime-schema.js +5 -1
  27. package/dist/utils/error.d.ts +51 -51
  28. package/dist/validation/dolt-schemas.d.ts +1 -1
  29. package/dist/validation/schemas.d.ts +1634 -1634
  30. package/drizzle/runtime/0021_careful_xorn.sql +2 -0
  31. package/drizzle/runtime/meta/0021_snapshot.json +4124 -0
  32. package/drizzle/runtime/meta/_journal.json +7 -0
  33. package/package.json +1 -1
@@ -10,14 +10,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
15
+ agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -45,27 +45,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
63
+ agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -127,14 +127,14 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
129
  id: string;
130
- tenantId: string;
131
- projectId: string;
132
- agentId: string;
133
130
  createdAt: string;
134
131
  updatedAt: string;
132
+ agentId: string;
133
+ projectId: string;
134
+ tenantId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -146,28 +146,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
146
146
  relationType: string;
147
147
  }) => Promise<{
148
148
  id: string;
149
- tenantId: string;
150
- projectId: string;
151
- agentId: string;
152
149
  createdAt: string;
153
150
  updatedAt: string;
151
+ agentId: string;
152
+ projectId: string;
153
+ tenantId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
160
160
  */
161
161
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
162
162
  id: string;
163
- tenantId: string;
164
- projectId: string;
165
- agentId: string;
166
163
  createdAt: string;
167
164
  updatedAt: string;
165
+ agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
205
205
  };
206
206
  }) => Promise<{
207
207
  id: string;
208
- tenantId: string;
209
- projectId: string;
210
- agentId: string;
211
208
  createdAt: string;
212
209
  updatedAt: string;
210
+ agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
+ subAgentId: string;
213
214
  toolId: string;
214
215
  headers: Record<string, string> | null;
215
216
  toolPolicies: Record<string, {
216
217
  needsApproval?: boolean;
217
218
  }> | null;
218
- subAgentId: string;
219
219
  selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
249
249
  relationId: string;
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
- projectId: string;
254
- agentId: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
254
+ agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
+ subAgentId: string;
257
258
  toolId: string;
258
259
  headers: Record<string, string> | null;
259
260
  toolPolicies: Record<string, {
260
261
  needsApproval?: boolean;
261
262
  }> | null;
262
- subAgentId: string;
263
263
  selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -10,13 +10,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
10
10
  relationId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
- headers: Record<string, string> | null;
15
+ agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
19
18
  subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -45,26 +45,26 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
47
  id: string;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
48
  createdAt: string;
52
49
  updatedAt: string;
53
- headers: Record<string, string> | null;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
54
53
  subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
60
  id: string;
61
- tenantId: string;
62
- projectId: string;
63
- agentId: string;
64
61
  createdAt: string;
65
62
  updatedAt: string;
66
- headers: Record<string, string> | null;
63
+ agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
67
66
  subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  targetAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -211,13 +211,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
211
211
  };
212
212
  }) => Promise<{
213
213
  id: string;
214
- tenantId: string;
215
- projectId: string;
216
- agentId: string;
217
214
  createdAt: string;
218
215
  updatedAt: string;
219
- headers: Record<string, string> | null;
216
+ agentId: string;
217
+ projectId: string;
218
+ tenantId: string;
220
219
  subAgentId: string;
220
+ headers: Record<string, string> | null;
221
221
  targetAgentId: string;
222
222
  }>;
223
223
  /**
@@ -228,13 +228,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
230
  id: string;
231
- tenantId: string;
232
- projectId: string;
233
- agentId: string;
234
231
  createdAt: string;
235
232
  updatedAt: string;
236
- headers: Record<string, string> | null;
233
+ agentId: string;
234
+ projectId: string;
235
+ tenantId: string;
237
236
  subAgentId: string;
237
+ headers: Record<string, string> | null;
238
238
  targetAgentId: string;
239
239
  } | undefined>;
240
240
  /**
@@ -249,13 +249,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
249
249
  };
250
250
  }) => Promise<{
251
251
  id: string;
252
- tenantId: string;
253
- projectId: string;
254
- agentId: string;
255
252
  createdAt: string;
256
253
  updatedAt: string;
257
- headers: Record<string, string> | null;
254
+ agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
258
257
  subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  targetAgentId: string;
260
260
  }>;
261
261
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -11,10 +11,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  }) => Promise<{
12
12
  id: string;
13
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
14
16
  description: string | null;
15
- tenantId: string;
16
- projectId: string;
17
17
  agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
18
20
  prompt: string | null;
19
21
  conversationHistoryConfig: ConversationHistoryConfig | null;
20
22
  models: {
@@ -34,18 +36,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
34
36
  stopWhen: {
35
37
  stepCountIs?: number | undefined;
36
38
  } | null;
37
- createdAt: string;
38
- updatedAt: string;
39
39
  } | undefined>;
40
40
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
41
  scopes: AgentScopeConfig;
42
42
  }) => Promise<{
43
43
  id: string;
44
44
  name: string;
45
+ createdAt: string;
46
+ updatedAt: string;
45
47
  description: string | null;
46
- tenantId: string;
47
- projectId: string;
48
48
  agentId: string;
49
+ projectId: string;
50
+ tenantId: string;
49
51
  prompt: string | null;
50
52
  conversationHistoryConfig: ConversationHistoryConfig | null;
51
53
  models: {
@@ -65,8 +67,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
65
67
  stopWhen: {
66
68
  stepCountIs?: number | undefined;
67
69
  } | null;
68
- createdAt: string;
69
- updatedAt: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -111,10 +111,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
112
  id: string;
113
113
  name: string;
114
+ createdAt: string;
115
+ updatedAt: string;
114
116
  description: string | null;
115
- tenantId: string;
116
- projectId: string;
117
117
  agentId: string;
118
+ projectId: string;
119
+ tenantId: string;
118
120
  prompt: string | null;
119
121
  conversationHistoryConfig: ConversationHistoryConfig | null;
120
122
  models: {
@@ -134,8 +136,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
134
136
  stopWhen: {
135
137
  stepCountIs?: number | undefined;
136
138
  } | null;
137
- createdAt: string;
138
- updatedAt: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -21,11 +21,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  }) => Promise<{
22
22
  id: string;
23
23
  name: string;
24
- description: string | null;
25
- tenantId: string;
26
- projectId: string;
27
24
  createdAt: string;
28
25
  updatedAt: string;
26
+ description: string | null;
27
+ projectId: string;
28
+ tenantId: string;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -79,11 +79,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
80
  id: string;
81
81
  name: string;
82
- description: string | null;
83
- tenantId: string;
84
- projectId: string;
85
82
  createdAt: string;
86
83
  updatedAt: string;
84
+ description: string | null;
85
+ projectId: string;
86
+ tenantId: string;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -135,17 +135,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  }> | null;
136
136
  }) => Promise<{
137
137
  id: string;
138
- tenantId: string;
139
- projectId: string;
140
- agentId: string;
141
138
  createdAt: string;
142
139
  updatedAt: string;
140
+ agentId: string;
141
+ projectId: string;
142
+ tenantId: string;
143
+ subAgentId: string;
143
144
  toolId: string;
144
145
  headers: Record<string, string> | null;
145
146
  toolPolicies: Record<string, {
146
147
  needsApproval?: boolean;
147
148
  }> | null;
148
- subAgentId: string;
149
149
  selectedTools: string[] | null;
150
150
  }>;
151
151
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -154,17 +154,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  toolId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string;
160
157
  createdAt: string;
161
158
  updatedAt: string;
159
+ agentId: string;
160
+ projectId: string;
161
+ tenantId: string;
162
+ subAgentId: string;
162
163
  toolId: string;
163
164
  headers: Record<string, string> | null;
164
165
  toolPolicies: Record<string, {
165
166
  needsApproval?: boolean;
166
167
  }> | null;
167
- subAgentId: string;
168
168
  selectedTools: string[] | null;
169
169
  }>;
170
170
  /**
@@ -182,17 +182,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
184
  id: string;
185
- tenantId: string;
186
- projectId: string;
187
- agentId: string;
188
185
  createdAt: string;
189
186
  updatedAt: string;
187
+ agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
190
+ subAgentId: string;
190
191
  toolId: string;
191
192
  headers: Record<string, string> | null;
192
193
  toolPolicies: Record<string, {
193
194
  needsApproval?: boolean;
194
195
  }> | null;
195
- subAgentId: string;
196
196
  selectedTools: string[] | null;
197
197
  }>;
198
198
  /**
@@ -203,11 +203,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  }) => Promise<{
204
204
  id: string;
205
205
  name: string;
206
- description: string | null;
207
- tenantId: string;
208
- projectId: string;
209
206
  createdAt: string;
210
207
  updatedAt: string;
208
+ description: string | null;
209
+ projectId: string;
210
+ tenantId: string;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -123,6 +123,8 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
123
123
  if (isGithubWorkAppTool(tool)) serverConfig.headers = {
124
124
  ...serverConfig.headers,
125
125
  "x-inkeep-tool-id": tool.id,
126
+ "x-inkeep-tenant-id": tool.tenantId,
127
+ "x-inkeep-project-id": tool.projectId,
126
128
  Authorization: `Bearer ${env.GITHUB_MCP_API_KEY}`
127
129
  };
128
130
  if (isSlackWorkAppTool(tool)) serverConfig.headers = {
@@ -10,12 +10,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string | null;
13
- tenantId: string;
14
- projectId: string;
15
- agentId: string;
16
13
  createdAt: string;
17
14
  updatedAt: string;
18
15
  expiresAt: string | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
@@ -24,12 +24,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
26
26
  name: string | null;
27
- tenantId: string;
28
- projectId: string;
29
- agentId: string;
30
27
  createdAt: string;
31
28
  updatedAt: string;
32
29
  expiresAt: string | null;
30
+ agentId: string;
31
+ projectId: string;
32
+ tenantId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -41,12 +41,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
41
41
  }) => Promise<{
42
42
  id: string;
43
43
  name: string | null;
44
- tenantId: string;
45
- projectId: string;
46
- agentId: string;
47
44
  createdAt: string;
48
45
  updatedAt: string;
49
46
  expiresAt: string | null;
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -68,12 +68,12 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
69
  id: string;
70
70
  name: string | null;
71
- tenantId: string;
72
- projectId: string;
73
- agentId: string;
74
71
  createdAt: string;
75
72
  updatedAt: string;
76
73
  expiresAt: string | null;
74
+ agentId: string;
75
+ projectId: string;
76
+ tenantId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -139,8 +139,8 @@ const cascadeDeleteByContextConfig = (db) => async (params) => {
139
139
  */
140
140
  const cascadeDeleteByTool = (db) => async (params) => {
141
141
  const { toolId, tenantId, projectId } = params;
142
- const repositoryAccessResult = await db.delete(workAppGitHubMcpToolRepositoryAccess).where(eq(workAppGitHubMcpToolRepositoryAccess.toolId, toolId)).returning();
143
- const accessModeResult = await db.delete(workAppGitHubMcpToolAccessMode).where(eq(workAppGitHubMcpToolAccessMode.toolId, toolId)).returning();
142
+ const repositoryAccessResult = await db.delete(workAppGitHubMcpToolRepositoryAccess).where(and(eq(workAppGitHubMcpToolRepositoryAccess.tenantId, tenantId), eq(workAppGitHubMcpToolRepositoryAccess.projectId, projectId), eq(workAppGitHubMcpToolRepositoryAccess.toolId, toolId))).returning();
143
+ const accessModeResult = await db.delete(workAppGitHubMcpToolAccessMode).where(and(eq(workAppGitHubMcpToolAccessMode.tenantId, tenantId), eq(workAppGitHubMcpToolAccessMode.projectId, projectId), eq(workAppGitHubMcpToolAccessMode.toolId, toolId))).returning();
144
144
  const slackMcpDeleted = await deleteSlackMcpToolAccessConfig(db)({
145
145
  tenantId,
146
146
  projectId,
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
19
  id: string;
20
- tenantId: string;
21
- projectId: string;
22
- agentId: string | null;
23
- title: string | null;
24
20
  createdAt: string;
25
21
  updatedAt: string;
26
- metadata: ConversationMetadata | null;
27
- userId: string | null;
28
22
  ref: {
29
- type: "tag" | "commit" | "branch";
23
+ type: "commit" | "tag" | "branch";
30
24
  name: string;
31
25
  hash: string;
32
26
  } | null;
27
+ userId: string | null;
28
+ metadata: ConversationMetadata | null;
29
+ agentId: string | null;
30
+ projectId: string;
31
+ tenantId: string;
32
+ title: 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;
@@ -86,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
88
  id: string;
89
- tenantId: string;
90
- projectId: string;
91
- agentId: string | null;
92
- title: string | null;
93
89
  createdAt: string;
94
90
  updatedAt: string;
95
- metadata: ConversationMetadata | null;
96
- userId: string | null;
97
91
  ref: {
98
- type: "tag" | "commit" | "branch";
92
+ type: "commit" | "tag" | "branch";
99
93
  name: string;
100
94
  hash: string;
101
95
  } | null;
96
+ userId: string | null;
97
+ metadata: ConversationMetadata | null;
98
+ agentId: string | null;
99
+ projectId: string;
100
+ tenantId: string;
101
+ title: 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
  };
@@ -122,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
124
  id: string;
125
- tenantId: string;
126
- projectId: string;
127
- agentId: string | null;
128
- title: string | null;
129
125
  createdAt: string;
130
126
  updatedAt: string;
131
- metadata: ConversationMetadata | null;
132
- userId: string | null;
133
127
  ref: {
134
- type: "tag" | "commit" | "branch";
128
+ type: "commit" | "tag" | "branch";
135
129
  name: string;
136
130
  hash: string;
137
131
  } | null;
132
+ userId: string | null;
133
+ metadata: ConversationMetadata | null;
134
+ agentId: string | null;
135
+ projectId: string;
136
+ tenantId: string;
137
+ title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -154,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
156
  id: string;
157
- tenantId: string;
158
- projectId: string;
159
- agentId: string | null;
160
- title: string | null;
161
157
  createdAt: string;
162
158
  updatedAt: string;
163
- metadata: ConversationMetadata | null;
164
- userId: string | null;
165
159
  ref: {
166
- type: "tag" | "commit" | "branch";
160
+ type: "commit" | "tag" | "branch";
167
161
  name: string;
168
162
  hash: string;
169
163
  } | null;
164
+ userId: string | null;
165
+ metadata: ConversationMetadata | null;
166
+ agentId: string | null;
167
+ projectId: string;
168
+ tenantId: string;
169
+ title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;