@inkeep/agents-core 0.0.0-dev-20260218170124 → 0.0.0-dev-20260218210419

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