@inkeep/agents-core 0.0.0-dev-20260116211102 → 0.0.0-dev-20260116220526

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.
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- tenantId: string;
15
- agentId: string;
16
- projectId: string;
17
17
  relationType: string | null;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
43
43
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- tenantId: string;
50
- agentId: string;
51
- projectId: string;
52
52
  relationType: string | null;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
56
56
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- tenantId: string;
63
- agentId: string;
64
- projectId: string;
65
65
  relationType: string | null;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
125
125
  }[];
126
126
  }>;
127
127
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
128
+ tenantId: string;
129
+ projectId: string;
128
130
  id: string;
131
+ agentId: string;
129
132
  createdAt: string;
130
133
  updatedAt: string;
131
- tenantId: string;
132
- agentId: string;
133
- projectId: string;
134
134
  relationType: string | null;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
144
144
  targetSubAgentId?: string;
145
145
  relationType: string;
146
146
  }) => Promise<{
147
+ tenantId: string;
148
+ projectId: string;
147
149
  id: string;
150
+ agentId: string;
148
151
  createdAt: string;
149
152
  updatedAt: string;
150
- tenantId: string;
151
- agentId: string;
152
- projectId: string;
153
153
  relationType: string | null;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
158
158
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
159
159
  */
160
160
  declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
161
+ tenantId: string;
162
+ projectId: string;
161
163
  id: string;
164
+ agentId: string;
162
165
  createdAt: string;
163
166
  updatedAt: string;
164
- tenantId: string;
165
- agentId: string;
166
- projectId: string;
167
167
  relationType: string | null;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ tenantId: string;
207
+ projectId: string;
206
208
  id: string;
209
+ agentId: string;
207
210
  createdAt: string;
208
211
  updatedAt: string;
209
- tenantId: string;
210
- agentId: string;
211
- projectId: string;
212
- subAgentId: string;
213
212
  toolId: string;
214
213
  headers: Record<string, string> | null;
215
- selectedTools: string[] | null;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | null;
217
+ subAgentId: string;
218
+ selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- tenantId: string;
254
- agentId: string;
255
- projectId: string;
256
- subAgentId: string;
257
256
  toolId: string;
258
257
  headers: Record<string, string> | null;
259
- selectedTools: string[] | null;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ subAgentId: string;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- tenantId: string;
15
- agentId: string;
16
- projectId: string;
17
- subAgentId: string;
18
17
  headers: Record<string, string> | null;
18
+ subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ tenantId: string;
47
+ projectId: string;
46
48
  id: string;
49
+ agentId: string;
47
50
  createdAt: string;
48
51
  updatedAt: string;
49
- tenantId: string;
50
- agentId: string;
51
- projectId: string;
52
- subAgentId: string;
53
52
  headers: Record<string, string> | null;
53
+ subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ tenantId: string;
60
+ projectId: string;
59
61
  id: string;
62
+ agentId: string;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- tenantId: string;
63
- agentId: string;
64
- projectId: string;
65
- subAgentId: string;
66
65
  headers: Record<string, string> | null;
66
+ subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
+ tenantId: string;
213
+ projectId: string;
212
214
  id: string;
215
+ agentId: string;
213
216
  createdAt: string;
214
217
  updatedAt: string;
215
- tenantId: string;
216
- agentId: string;
217
- projectId: string;
218
- subAgentId: string;
219
218
  headers: Record<string, string> | null;
219
+ subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
229
231
  id: string;
232
+ agentId: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
- tenantId: string;
233
- agentId: string;
234
- projectId: string;
235
- subAgentId: string;
236
235
  headers: Record<string, string> | null;
236
+ subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
+ tenantId: string;
251
+ projectId: string;
250
252
  id: string;
253
+ agentId: string;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- tenantId: string;
254
- agentId: string;
255
- projectId: string;
256
- subAgentId: string;
257
256
  headers: Record<string, string> | null;
257
+ subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,14 +8,15 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string;
15
+ description: string | null;
16
+ prompt: string | null;
17
+ agentId: string;
13
18
  createdAt: string;
14
19
  updatedAt: string;
15
- tenantId: string;
16
- agentId: string;
17
- description: string | null;
18
- projectId: string;
19
20
  models: {
20
21
  base?: {
21
22
  model?: string | undefined;
@@ -33,20 +34,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
34
  stopWhen: {
34
35
  stepCountIs?: number | undefined;
35
36
  } | null;
36
- prompt: string | null;
37
37
  conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
42
44
  id: string;
43
45
  name: string;
46
+ description: string | null;
47
+ prompt: string | null;
48
+ agentId: string;
44
49
  createdAt: string;
45
50
  updatedAt: string;
46
- tenantId: string;
47
- agentId: string;
48
- description: string | null;
49
- projectId: string;
50
51
  models: {
51
52
  base?: {
52
53
  model?: string | undefined;
@@ -64,7 +65,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
64
65
  stopWhen: {
65
66
  stepCountIs?: number | undefined;
66
67
  } | null;
67
- prompt: string | null;
68
68
  conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -108,14 +108,15 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
+ tenantId: string;
112
+ projectId: string;
111
113
  id: string;
112
114
  name: string;
115
+ description: string | null;
116
+ prompt: string | null;
117
+ agentId: string;
113
118
  createdAt: string;
114
119
  updatedAt: string;
115
- tenantId: string;
116
- agentId: string;
117
- description: string | null;
118
- projectId: string;
119
120
  models: {
120
121
  base?: {
121
122
  model?: string | undefined;
@@ -133,7 +134,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
133
134
  stopWhen: {
134
135
  stepCountIs?: number | undefined;
135
136
  } | null;
136
- prompt: string | null;
137
137
  conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,20 +12,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
+ tenantId: string;
16
+ projectId: string;
15
17
  id: string;
16
18
  name: string;
17
- createdAt: string;
18
- updatedAt: string;
19
- tenantId: string;
20
19
  description: string | null;
21
- projectId: string;
22
- credentialReferenceId: string | null;
23
20
  config: {
24
21
  type: "mcp";
25
22
  mcp: ToolMcpConfig;
26
23
  };
27
- credentialScope: string;
24
+ credentialReferenceId: string | null;
25
+ createdAt: string;
26
+ updatedAt: string;
28
27
  headers: Record<string, string> | null;
28
+ credentialScope: string;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
31
31
  lastError: string | null;
@@ -61,20 +61,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
64
+ tenantId: string;
65
+ projectId: string;
64
66
  id: string;
65
67
  name: string;
66
- createdAt: string;
67
- updatedAt: string;
68
- tenantId: string;
69
68
  description: string | null;
70
- projectId: string;
71
- credentialReferenceId: string | null;
72
69
  config: {
73
70
  type: "mcp";
74
71
  mcp: ToolMcpConfig;
75
72
  };
76
- credentialScope: string;
73
+ credentialReferenceId: string | null;
74
+ createdAt: string;
75
+ updatedAt: string;
77
76
  headers: Record<string, string> | null;
77
+ credentialScope: string;
78
78
  imageUrl: string | null;
79
79
  capabilities: ToolServerCapabilities | null;
80
80
  lastError: string | null;
@@ -116,38 +116,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
116
116
  needsApproval?: boolean;
117
117
  }> | null;
118
118
  }) => Promise<{
119
+ tenantId: string;
120
+ projectId: string;
119
121
  id: string;
122
+ agentId: string;
120
123
  createdAt: string;
121
124
  updatedAt: string;
122
- tenantId: string;
123
- agentId: string;
124
- projectId: string;
125
- subAgentId: string;
126
125
  toolId: string;
127
126
  headers: Record<string, string> | null;
128
- selectedTools: string[] | null;
129
127
  toolPolicies: Record<string, {
130
128
  needsApproval?: boolean;
131
129
  }> | null;
130
+ subAgentId: string;
131
+ selectedTools: string[] | null;
132
132
  }>;
133
133
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  scopes: AgentScopeConfig;
135
135
  subAgentId: string;
136
136
  toolId: string;
137
137
  }) => Promise<{
138
+ tenantId: string;
139
+ projectId: string;
138
140
  id: string;
141
+ agentId: string;
139
142
  createdAt: string;
140
143
  updatedAt: string;
141
- tenantId: string;
142
- agentId: string;
143
- projectId: string;
144
- subAgentId: string;
145
144
  toolId: string;
146
145
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | null;
149
+ subAgentId: string;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  /**
153
153
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -163,19 +163,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
163
163
  }> | null;
164
164
  relationId?: string;
165
165
  }) => Promise<{
166
+ tenantId: string;
167
+ projectId: string;
166
168
  id: string;
169
+ agentId: string;
167
170
  createdAt: string;
168
171
  updatedAt: string;
169
- tenantId: string;
170
- agentId: string;
171
- projectId: string;
172
- subAgentId: string;
173
172
  toolId: string;
174
173
  headers: Record<string, string> | null;
175
- selectedTools: string[] | null;
176
174
  toolPolicies: Record<string, {
177
175
  needsApproval?: boolean;
178
176
  }> | null;
177
+ subAgentId: string;
178
+ selectedTools: string[] | null;
179
179
  }>;
180
180
  /**
181
181
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -183,20 +183,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
184
184
  data: ToolInsert;
185
185
  }) => Promise<{
186
+ tenantId: string;
187
+ projectId: string;
186
188
  id: string;
187
189
  name: string;
188
- createdAt: string;
189
- updatedAt: string;
190
- tenantId: string;
191
190
  description: string | null;
192
- projectId: string;
193
- credentialReferenceId: string | null;
194
191
  config: {
195
192
  type: "mcp";
196
193
  mcp: ToolMcpConfig;
197
194
  };
198
- credentialScope: string;
195
+ credentialReferenceId: string | null;
196
+ createdAt: string;
197
+ updatedAt: string;
199
198
  headers: Record<string, string> | null;
199
+ credentialScope: string;
200
200
  imageUrl: string | null;
201
201
  capabilities: ToolServerCapabilities | null;
202
202
  lastError: string | null;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
13
  name: string | null;
12
- createdAt: string;
13
- updatedAt: string;
14
- expiresAt: string | null;
15
- tenantId: string;
16
14
  agentId: string;
17
- projectId: string;
18
15
  publicId: string;
19
16
  keyHash: string;
20
17
  keyPrefix: string;
21
18
  lastUsedAt: string | null;
19
+ expiresAt: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
+ tenantId: string;
25
+ projectId: string;
24
26
  id: string;
25
27
  name: string | null;
26
- createdAt: string;
27
- updatedAt: string;
28
- expiresAt: string | null;
29
- tenantId: string;
30
28
  agentId: string;
31
- projectId: string;
32
29
  publicId: string;
33
30
  keyHash: string;
34
31
  keyPrefix: string;
35
32
  lastUsedAt: string | null;
33
+ expiresAt: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
+ tenantId: string;
42
+ projectId: string;
41
43
  id: string;
42
44
  name: string | null;
43
- createdAt: string;
44
- updatedAt: string;
45
- expiresAt: string | null;
46
- tenantId: string;
47
45
  agentId: string;
48
- projectId: string;
49
46
  publicId: string;
50
47
  keyHash: string;
51
48
  keyPrefix: string;
52
49
  lastUsedAt: string | null;
50
+ expiresAt: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
+ tenantId: string;
69
+ projectId: string;
68
70
  id: string;
69
71
  name: string | null;
70
- createdAt: string;
71
- updatedAt: string;
72
- expiresAt: string | null;
73
- tenantId: string;
74
72
  agentId: string;
75
- projectId: string;
76
73
  publicId: string;
77
74
  keyHash: string;
78
75
  keyPrefix: string;
79
76
  lastUsedAt: string | null;
77
+ expiresAt: string | null;
78
+ createdAt: string;
79
+ updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -15,22 +15,22 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ tenantId: string;
19
+ projectId: string;
18
20
  id: string;
19
- ref: {
20
- type: "commit" | "tag" | "branch";
21
- name: string;
22
- hash: string;
23
- } | null;
21
+ title: string | null;
22
+ agentId: string | null;
24
23
  createdAt: string;
25
24
  updatedAt: string;
26
25
  userId: string | null;
27
26
  metadata: ConversationMetadata | null;
28
- tenantId: string;
29
- agentId: string | null;
30
27
  activeSubAgentId: string;
31
- title: string | null;
28
+ ref: {
29
+ type: "commit" | "tag" | "branch";
30
+ name: string;
31
+ hash: string;
32
+ } | null;
32
33
  lastContextResolution: string | null;
33
- projectId: string;
34
34
  }>;
35
35
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
36
36
  scopes: ProjectScopeConfig;
@@ -84,22 +84,22 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ tenantId: string;
88
+ projectId: string;
87
89
  id: string;
88
- ref: {
89
- type: "commit" | "tag" | "branch";
90
- name: string;
91
- hash: string;
92
- } | null;
90
+ title: string | null;
91
+ agentId: string | null;
93
92
  createdAt: string;
94
93
  updatedAt: string;
95
94
  userId: string | null;
96
95
  metadata: ConversationMetadata | null;
97
- tenantId: string;
98
- agentId: string | null;
99
96
  activeSubAgentId: string;
100
- title: string | null;
97
+ ref: {
98
+ type: "commit" | "tag" | "branch";
99
+ name: string;
100
+ hash: string;
101
+ } | null;
101
102
  lastContextResolution: string | null;
102
- projectId: string;
103
103
  } | undefined>;
104
104
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
105
105
  activeSubAgentId: string;
@@ -120,22 +120,22 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ tenantId: string;
124
+ projectId: string;
123
125
  id: string;
124
- ref: {
125
- type: "commit" | "tag" | "branch";
126
- name: string;
127
- hash: string;
128
- } | null;
126
+ title: string | null;
127
+ agentId: string | null;
129
128
  createdAt: string;
130
129
  updatedAt: string;
131
130
  userId: string | null;
132
131
  metadata: ConversationMetadata | null;
133
- tenantId: string;
134
- agentId: string | null;
135
132
  activeSubAgentId: string;
136
- title: string | null;
133
+ ref: {
134
+ type: "commit" | "tag" | "branch";
135
+ name: string;
136
+ hash: string;
137
+ } | null;
137
138
  lastContextResolution: string | null;
138
- projectId: string;
139
139
  }>;
140
140
  /**
141
141
  * Get conversation history with filtering and context management
@@ -152,22 +152,22 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ tenantId: string;
156
+ projectId: string;
155
157
  id: string;
156
- ref: {
157
- type: "commit" | "tag" | "branch";
158
- name: string;
159
- hash: string;
160
- } | null;
158
+ title: string | null;
159
+ agentId: string | null;
161
160
  createdAt: string;
162
161
  updatedAt: string;
163
162
  userId: string | null;
164
163
  metadata: ConversationMetadata | null;
165
- tenantId: string;
166
- agentId: string | null;
167
164
  activeSubAgentId: string;
168
- title: string | null;
165
+ ref: {
166
+ type: "commit" | "tag" | "branch";
167
+ name: string;
168
+ hash: string;
169
+ } | null;
169
170
  lastContextResolution: string | null;
170
- projectId: string;
171
171
  } | undefined>;
172
172
  /**
173
173
  * Set active agent for a conversation (upsert operation)