@inkeep/agents-core 0.56.1 → 0.56.2

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.
@@ -9,12 +9,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
12
15
  id: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  subAgentId: string;
@@ -44,12 +44,12 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
47
50
  id: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
- agentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  subAgentId: string;
@@ -57,12 +57,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
60
63
  id: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
- agentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  subAgentId: string;
@@ -180,12 +180,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
180
180
  headers?: Record<string, string> | null;
181
181
  };
182
182
  }) => Promise<{
183
+ agentId: string;
184
+ projectId: string;
185
+ tenantId: string;
183
186
  id: string;
184
187
  createdAt: string;
185
188
  updatedAt: string;
186
- tenantId: string;
187
- projectId: string;
188
- agentId: string;
189
189
  headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  subAgentId: string;
@@ -197,12 +197,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
197
197
  scopes: SubAgentScopeConfig;
198
198
  externalAgentId: string;
199
199
  }) => Promise<{
200
+ agentId: string;
201
+ projectId: string;
202
+ tenantId: string;
200
203
  id: string;
201
204
  createdAt: string;
202
205
  updatedAt: string;
203
- tenantId: string;
204
- projectId: string;
205
- agentId: string;
206
206
  headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  subAgentId: string;
@@ -218,12 +218,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
218
218
  headers?: Record<string, string> | null;
219
219
  };
220
220
  }) => Promise<{
221
+ agentId: string;
222
+ projectId: string;
223
+ tenantId: string;
221
224
  id: string;
222
225
  createdAt: string;
223
226
  updatedAt: string;
224
- tenantId: string;
225
- projectId: string;
226
- agentId: string;
227
227
  headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  subAgentId: string;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
12
15
  id: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
47
50
  id: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
- agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
60
63
  id: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
- agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
126
126
  }[];
127
127
  }>;
128
128
  declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
129
+ agentId: string;
130
+ projectId: string;
131
+ tenantId: string;
129
132
  id: string;
130
133
  createdAt: string;
131
134
  updatedAt: string;
132
- tenantId: string;
133
- projectId: string;
134
- agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
145
145
  targetSubAgentId?: string;
146
146
  relationType: string;
147
147
  }) => Promise<{
148
+ agentId: string;
149
+ projectId: string;
150
+ tenantId: string;
148
151
  id: string;
149
152
  createdAt: string;
150
153
  updatedAt: string;
151
- tenantId: string;
152
- projectId: string;
153
- agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
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
+ agentId: string;
163
+ projectId: string;
164
+ tenantId: string;
162
165
  id: string;
163
166
  createdAt: string;
164
167
  updatedAt: string;
165
- tenantId: string;
166
- projectId: string;
167
- agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,12 +204,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ agentId: string;
208
+ projectId: string;
209
+ tenantId: string;
207
210
  id: string;
208
211
  createdAt: string;
209
212
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
212
- agentId: string;
213
213
  toolId: string;
214
214
  headers: Record<string, string> | null;
215
215
  toolPolicies: Record<string, {
@@ -248,12 +248,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ agentId: string;
252
+ projectId: string;
253
+ tenantId: string;
251
254
  id: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
256
- agentId: string;
257
257
  toolId: string;
258
258
  headers: Record<string, string> | null;
259
259
  toolPolicies: Record<string, {
@@ -9,12 +9,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
12
15
  id: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
- agentId: string;
18
18
  headers: Record<string, string> | null;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
@@ -44,12 +44,12 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
47
50
  id: string;
48
51
  createdAt: string;
49
52
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
52
- agentId: string;
53
53
  headers: Record<string, string> | null;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
@@ -57,12 +57,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ agentId: string;
61
+ projectId: string;
62
+ tenantId: string;
60
63
  id: string;
61
64
  createdAt: string;
62
65
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
65
- agentId: string;
66
66
  headers: Record<string, string> | null;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
@@ -210,12 +210,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  headers?: Record<string, string> | null;
211
211
  };
212
212
  }) => Promise<{
213
+ agentId: string;
214
+ projectId: string;
215
+ tenantId: string;
213
216
  id: string;
214
217
  createdAt: string;
215
218
  updatedAt: string;
216
- tenantId: string;
217
- projectId: string;
218
- agentId: string;
219
219
  headers: Record<string, string> | null;
220
220
  subAgentId: string;
221
221
  targetAgentId: string;
@@ -227,12 +227,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  scopes: SubAgentScopeConfig;
228
228
  targetAgentId: string;
229
229
  }) => Promise<{
230
+ agentId: string;
231
+ projectId: string;
232
+ tenantId: string;
230
233
  id: string;
231
234
  createdAt: string;
232
235
  updatedAt: string;
233
- tenantId: string;
234
- projectId: string;
235
- agentId: string;
236
236
  headers: Record<string, string> | null;
237
237
  subAgentId: string;
238
238
  targetAgentId: string;
@@ -248,12 +248,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  headers?: Record<string, string> | null;
249
249
  };
250
250
  }) => Promise<{
251
+ agentId: string;
252
+ projectId: string;
253
+ tenantId: string;
251
254
  id: string;
252
255
  createdAt: string;
253
256
  updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
256
- agentId: string;
257
257
  headers: Record<string, string> | null;
258
258
  subAgentId: string;
259
259
  targetAgentId: string;
@@ -9,14 +9,12 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
+ agentId: string;
13
+ projectId: string;
14
+ tenantId: string;
12
15
  id: string;
13
16
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
17
  description: string | null;
17
- tenantId: string;
18
- projectId: string;
19
- agentId: string;
20
18
  prompt: string | null;
21
19
  conversationHistoryConfig: ConversationHistoryConfig | null;
22
20
  models: {
@@ -36,18 +34,18 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
36
34
  stopWhen: {
37
35
  stepCountIs?: number | undefined;
38
36
  } | 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
+ agentId: string;
44
+ projectId: string;
45
+ tenantId: string;
43
46
  id: string;
44
47
  name: string;
45
- createdAt: string;
46
- updatedAt: string;
47
48
  description: string | null;
48
- tenantId: string;
49
- projectId: string;
50
- agentId: string;
51
49
  prompt: string | null;
52
50
  conversationHistoryConfig: ConversationHistoryConfig | null;
53
51
  models: {
@@ -67,6 +65,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
67
65
  stopWhen: {
68
66
  stepCountIs?: number | undefined;
69
67
  } | null;
68
+ createdAt: string;
69
+ updatedAt: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -109,14 +109,12 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
+ agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
112
115
  id: string;
113
116
  name: string;
114
- createdAt: string;
115
- updatedAt: string;
116
117
  description: string | null;
117
- tenantId: string;
118
- projectId: string;
119
- agentId: string;
120
118
  prompt: string | null;
121
119
  conversationHistoryConfig: ConversationHistoryConfig | null;
122
120
  models: {
@@ -136,6 +134,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
136
134
  stopWhen: {
137
135
  stepCountIs?: number | undefined;
138
136
  } | null;
137
+ createdAt: string;
138
+ updatedAt: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -19,13 +19,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
19
19
  scopes: ProjectScopeConfig;
20
20
  toolId: string;
21
21
  }) => Promise<{
22
+ projectId: string;
23
+ tenantId: string;
22
24
  id: string;
23
25
  name: string;
26
+ description: string | null;
24
27
  createdAt: string;
25
28
  updatedAt: string;
26
- description: string | null;
27
- tenantId: string;
28
- projectId: string;
29
29
  headers: Record<string, string> | null;
30
30
  config: {
31
31
  type: "mcp";
@@ -77,13 +77,13 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
77
77
  };
78
78
  }>;
79
79
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
80
+ projectId: string;
81
+ tenantId: string;
80
82
  id: string;
81
83
  name: string;
84
+ description: string | null;
82
85
  createdAt: string;
83
86
  updatedAt: string;
84
- description: string | null;
85
- tenantId: string;
86
- projectId: string;
87
87
  headers: Record<string, string> | null;
88
88
  config: {
89
89
  type: "mcp";
@@ -134,12 +134,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  needsApproval?: boolean;
135
135
  }> | null;
136
136
  }) => Promise<{
137
+ agentId: string;
138
+ projectId: string;
139
+ tenantId: string;
137
140
  id: string;
138
141
  createdAt: string;
139
142
  updatedAt: string;
140
- tenantId: string;
141
- projectId: string;
142
- agentId: string;
143
143
  toolId: string;
144
144
  headers: Record<string, string> | null;
145
145
  toolPolicies: Record<string, {
@@ -153,12 +153,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  subAgentId: string;
154
154
  toolId: string;
155
155
  }) => Promise<{
156
+ agentId: string;
157
+ projectId: string;
158
+ tenantId: string;
156
159
  id: string;
157
160
  createdAt: string;
158
161
  updatedAt: string;
159
- tenantId: string;
160
- projectId: string;
161
- agentId: string;
162
162
  toolId: string;
163
163
  headers: Record<string, string> | null;
164
164
  toolPolicies: Record<string, {
@@ -181,12 +181,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  }> | null;
182
182
  relationId?: string;
183
183
  }) => Promise<{
184
+ agentId: string;
185
+ projectId: string;
186
+ tenantId: string;
184
187
  id: string;
185
188
  createdAt: string;
186
189
  updatedAt: string;
187
- tenantId: string;
188
- projectId: string;
189
- agentId: string;
190
190
  toolId: string;
191
191
  headers: Record<string, string> | null;
192
192
  toolPolicies: Record<string, {
@@ -201,13 +201,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
201
201
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
202
202
  data: ToolInsert;
203
203
  }) => Promise<{
204
+ projectId: string;
205
+ tenantId: string;
204
206
  id: string;
205
207
  name: string;
208
+ description: string | null;
206
209
  createdAt: string;
207
210
  updatedAt: string;
208
- description: string | null;
209
- tenantId: string;
210
- projectId: string;
211
211
  headers: Record<string, string> | null;
212
212
  config: {
213
213
  type: "mcp";
@@ -8,28 +8,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ agentId: string;
12
+ projectId: string;
13
+ tenantId: string;
11
14
  id: string;
12
15
  name: string | null;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
18
  expiresAt: string | null;
16
- tenantId: string;
17
- projectId: string;
18
- agentId: string;
19
19
  publicId: string;
20
20
  keyHash: string;
21
21
  keyPrefix: string;
22
22
  lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
+ agentId: string;
26
+ projectId: string;
27
+ tenantId: string;
25
28
  id: string;
26
29
  name: string | null;
27
30
  createdAt: string;
28
31
  updatedAt: string;
29
32
  expiresAt: string | null;
30
- tenantId: string;
31
- projectId: string;
32
- agentId: string;
33
33
  publicId: string;
34
34
  keyHash: string;
35
35
  keyPrefix: string;
@@ -39,14 +39,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
+ agentId: string;
43
+ projectId: string;
44
+ tenantId: string;
42
45
  id: string;
43
46
  name: string | null;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
49
  expiresAt: string | null;
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
50
  publicId: string;
51
51
  keyHash: string;
52
52
  keyPrefix: string;
@@ -66,14 +66,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
+ agentId: string;
70
+ projectId: string;
71
+ tenantId: string;
69
72
  id: string;
70
73
  name: string | null;
71
74
  createdAt: string;
72
75
  updatedAt: string;
73
76
  expiresAt: string | null;
74
- tenantId: string;
75
- projectId: string;
76
- agentId: string;
77
77
  publicId: string;
78
78
  keyHash: string;
79
79
  keyPrefix: string;
@@ -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
+ agentId: string | null;
20
+ projectId: string;
21
+ tenantId: string;
22
+ userId: string | null;
19
23
  id: string;
24
+ title: string | null;
20
25
  createdAt: string;
21
26
  updatedAt: string;
27
+ metadata: ConversationMetadata | null;
22
28
  ref: {
23
- type: "tag" | "commit" | "branch";
29
+ type: "commit" | "tag" | "branch";
24
30
  name: string;
25
31
  hash: string;
26
32
  } | null;
27
- userId: string | null;
28
- metadata: ConversationMetadata | null;
29
- tenantId: string;
30
- projectId: string;
31
- agentId: string | null;
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;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
+ agentId: string | null;
89
+ projectId: string;
90
+ tenantId: string;
91
+ userId: string | null;
88
92
  id: string;
93
+ title: string | null;
89
94
  createdAt: string;
90
95
  updatedAt: string;
96
+ metadata: ConversationMetadata | null;
91
97
  ref: {
92
- type: "tag" | "commit" | "branch";
98
+ type: "commit" | "tag" | "branch";
93
99
  name: string;
94
100
  hash: string;
95
101
  } | null;
96
- userId: string | null;
97
- metadata: ConversationMetadata | null;
98
- tenantId: string;
99
- projectId: string;
100
- agentId: string | null;
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
  };
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
+ agentId: string | null;
125
+ projectId: string;
126
+ tenantId: string;
127
+ userId: string | null;
124
128
  id: string;
129
+ title: string | null;
125
130
  createdAt: string;
126
131
  updatedAt: string;
132
+ metadata: ConversationMetadata | null;
127
133
  ref: {
128
- type: "tag" | "commit" | "branch";
134
+ type: "commit" | "tag" | "branch";
129
135
  name: string;
130
136
  hash: string;
131
137
  } | null;
132
- userId: string | null;
133
- metadata: ConversationMetadata | null;
134
- tenantId: string;
135
- projectId: string;
136
- agentId: string | null;
137
- title: 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
+ agentId: string | null;
157
+ projectId: string;
158
+ tenantId: string;
159
+ userId: string | null;
156
160
  id: string;
161
+ title: string | null;
157
162
  createdAt: string;
158
163
  updatedAt: string;
164
+ metadata: ConversationMetadata | null;
159
165
  ref: {
160
- type: "tag" | "commit" | "branch";
166
+ type: "commit" | "tag" | "branch";
161
167
  name: string;
162
168
  hash: string;
163
169
  } | null;
164
- userId: string | null;
165
- metadata: ConversationMetadata | null;
166
- tenantId: string;
167
- projectId: string;
168
- agentId: string | null;
169
- title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;