@inkeep/agents-core 0.64.1 → 0.64.6

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 (61) hide show
  1. package/dist/auth/auth.d.ts +6 -6
  2. package/dist/auth/init.js +2 -2
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/constants/otel-attributes.d.ts +5 -0
  5. package/dist/constants/otel-attributes.js +7 -2
  6. package/dist/constants/signoz-queries.d.ts +1 -0
  7. package/dist/constants/signoz-queries.js +2 -1
  8. package/dist/data-access/index.d.ts +2 -1
  9. package/dist/data-access/index.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +21 -21
  11. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  12. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  13. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  14. package/dist/data-access/manage/functionTools.d.ts +14 -14
  15. package/dist/data-access/manage/skills.d.ts +9 -9
  16. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  17. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  18. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  19. package/dist/data-access/manage/subAgents.d.ts +15 -15
  20. package/dist/data-access/manage/tools.d.ts +21 -21
  21. package/dist/data-access/manage/tools.js +1 -1
  22. package/dist/data-access/manage/triggers.d.ts +2 -2
  23. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  24. package/dist/data-access/runtime/apps.d.ts +10 -10
  25. package/dist/data-access/runtime/conversations.d.ts +24 -24
  26. package/dist/data-access/runtime/messages.d.ts +9 -9
  27. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  28. package/dist/data-access/runtime/streamChunks.d.ts +29 -0
  29. package/dist/data-access/runtime/streamChunks.js +65 -0
  30. package/dist/data-access/runtime/tasks.d.ts +5 -5
  31. package/dist/db/manage/dolt-safe-jsonb.d.ts +12 -0
  32. package/dist/db/manage/dolt-safe-jsonb.js +61 -0
  33. package/dist/db/manage/manage-schema.d.ts +487 -487
  34. package/dist/db/manage/manage-schema.js +40 -39
  35. package/dist/db/runtime/runtime-schema.d.ts +510 -378
  36. package/dist/db/runtime/runtime-schema.js +20 -1
  37. package/dist/dolt/ref-helpers.js +15 -1
  38. package/dist/dolt/ref-scope.js +29 -1
  39. package/dist/index.d.ts +5 -4
  40. package/dist/index.js +5 -4
  41. package/dist/setup/setup.d.ts +3 -1
  42. package/dist/setup/setup.js +14 -10
  43. package/dist/types/utility.d.ts +1 -0
  44. package/dist/utils/index.d.ts +3 -3
  45. package/dist/utils/index.js +3 -3
  46. package/dist/utils/jwt-helpers.d.ts +2 -3
  47. package/dist/utils/jwt-helpers.js +2 -3
  48. package/dist/utils/retry-client.d.ts +8 -0
  49. package/dist/utils/retry-client.js +29 -0
  50. package/dist/utils/service-token-auth.d.ts +3 -0
  51. package/dist/utils/service-token-auth.js +5 -2
  52. package/dist/utils/temp-jwt.d.ts +1 -6
  53. package/dist/utils/temp-jwt.js +1 -12
  54. package/dist/utils/work-app-mcp.js +1 -2
  55. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  56. package/dist/validation/schemas/skills.d.ts +32 -32
  57. package/dist/validation/schemas.d.ts +2096 -2096
  58. package/drizzle/runtime/0031_fantastic_gorilla_man.sql +13 -0
  59. package/drizzle/runtime/meta/0031_snapshot.json +4872 -0
  60. package/drizzle/runtime/meta/_journal.json +7 -0
  61. package/package.json +6 -2
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- tenantId: string;
57
- projectId: string;
58
56
  id: string;
59
57
  name: string;
60
- description: string | null;
61
58
  createdAt: string;
62
59
  updatedAt: string;
60
+ description: string | null;
63
61
  agentId: string;
62
+ projectId: string;
63
+ tenantId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- tenantId: string;
99
- projectId: string;
100
98
  id: string;
101
99
  name: string;
102
- description: string | null;
103
100
  createdAt: string;
104
101
  updatedAt: string;
102
+ description: string | null;
105
103
  agentId: string;
104
+ projectId: string;
105
+ tenantId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,17 +157,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
- tenantId: string;
161
- projectId: string;
162
160
  id: string;
163
161
  createdAt: string;
164
162
  updatedAt: string;
165
163
  agentId: string;
164
+ projectId: string;
165
+ tenantId: string;
166
+ subAgentId: string;
167
+ functionToolId: string;
166
168
  toolPolicies: Record<string, {
167
169
  needsApproval?: boolean;
168
170
  }> | null;
169
- subAgentId: string;
170
- functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -222,17 +222,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
- tenantId: string;
226
- projectId: string;
227
225
  id: string;
228
226
  createdAt: string;
229
227
  updatedAt: string;
230
228
  agentId: string;
229
+ projectId: string;
230
+ tenantId: string;
231
+ subAgentId: string;
232
+ functionToolId: string;
231
233
  toolPolicies: Record<string, {
232
234
  needsApproval?: boolean;
233
235
  }> | null;
234
- subAgentId: string;
235
- functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
- tenantId: string;
19
- projectId: string;
20
18
  id: string;
21
19
  name: string;
22
- description: string;
23
20
  createdAt: string;
24
21
  updatedAt: string;
25
22
  metadata: Record<string, string> | null;
23
+ description: string;
24
+ projectId: string;
25
+ tenantId: string;
26
26
  content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
- tenantId: string;
114
- projectId: string;
115
113
  id: string;
116
114
  name: string;
117
- description: string;
118
115
  createdAt: string;
119
116
  updatedAt: string;
120
117
  metadata: Record<string, string> | null;
118
+ description: string;
119
+ projectId: string;
120
+ tenantId: string;
121
121
  content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -139,15 +139,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
139
139
  index: number;
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
- tenantId: string;
143
- projectId: string;
144
142
  id: string;
145
143
  createdAt: string;
146
144
  updatedAt: string;
147
145
  agentId: string;
146
+ projectId: string;
147
+ tenantId: string;
148
+ subAgentId: string;
148
149
  index: number;
149
150
  alwaysLoaded: boolean;
150
- subAgentId: string;
151
151
  skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,15 +9,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
- agentId: string;
18
15
  headers: Record<string, string> | null;
19
- externalAgentId: string;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
20
19
  subAgentId: string;
20
+ externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -44,28 +44,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
47
  id: string;
50
48
  createdAt: string;
51
49
  updatedAt: string;
52
- agentId: string;
53
50
  headers: Record<string, string> | null;
54
- externalAgentId: string;
51
+ agentId: string;
52
+ projectId: string;
53
+ tenantId: string;
55
54
  subAgentId: string;
55
+ externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
60
  id: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
65
- agentId: string;
66
63
  headers: Record<string, string> | null;
67
- externalAgentId: string;
64
+ agentId: string;
65
+ projectId: string;
66
+ tenantId: string;
68
67
  subAgentId: string;
68
+ externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -186,15 +186,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
186
186
  headers?: Record<string, string> | null;
187
187
  };
188
188
  }) => Promise<{
189
- tenantId: string;
190
- projectId: string;
191
189
  id: string;
192
190
  createdAt: string;
193
191
  updatedAt: string;
194
- agentId: string;
195
192
  headers: Record<string, string> | null;
196
- externalAgentId: string;
193
+ agentId: string;
194
+ projectId: string;
195
+ tenantId: string;
197
196
  subAgentId: string;
197
+ externalAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -203,15 +203,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
203
203
  scopes: SubAgentScopeConfig;
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
- tenantId: string;
207
- projectId: string;
208
206
  id: string;
209
207
  createdAt: string;
210
208
  updatedAt: string;
211
- agentId: string;
212
209
  headers: Record<string, string> | null;
213
- externalAgentId: string;
210
+ agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
214
213
  subAgentId: string;
214
+ externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
217
217
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -224,15 +224,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
224
224
  headers?: Record<string, string> | null;
225
225
  };
226
226
  }) => Promise<{
227
- tenantId: string;
228
- projectId: string;
229
227
  id: string;
230
228
  createdAt: string;
231
229
  updatedAt: string;
232
- agentId: string;
233
230
  headers: Record<string, string> | null;
234
- externalAgentId: string;
231
+ agentId: string;
232
+ projectId: string;
233
+ tenantId: string;
235
234
  subAgentId: string;
235
+ externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
9
9
  scopes: AgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: 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
- tenantId: string;
48
- projectId: string;
49
47
  id: string;
50
48
  createdAt: string;
51
49
  updatedAt: string;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: 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
- tenantId: string;
61
- projectId: string;
62
60
  id: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: 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
- tenantId: string;
130
- projectId: string;
131
129
  id: string;
132
130
  createdAt: string;
133
131
  updatedAt: string;
134
132
  agentId: string;
133
+ projectId: string;
134
+ tenantId: 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
- tenantId: string;
149
- projectId: string;
150
148
  id: string;
151
149
  createdAt: string;
152
150
  updatedAt: string;
153
151
  agentId: string;
152
+ projectId: string;
153
+ tenantId: 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
- tenantId: string;
163
- projectId: string;
164
162
  id: string;
165
163
  createdAt: string;
166
164
  updatedAt: string;
167
165
  agentId: string;
166
+ projectId: string;
167
+ tenantId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -204,18 +204,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
- tenantId: string;
208
- projectId: string;
209
207
  id: string;
210
208
  createdAt: string;
211
209
  updatedAt: string;
210
+ headers: Record<string, string> | null;
212
211
  agentId: string;
212
+ projectId: string;
213
+ tenantId: string;
213
214
  toolId: string;
214
- headers: Record<string, string> | null;
215
+ subAgentId: string;
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: {
@@ -248,18 +248,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
- tenantId: string;
252
- projectId: string;
253
251
  id: string;
254
252
  createdAt: string;
255
253
  updatedAt: string;
254
+ headers: Record<string, string> | null;
256
255
  agentId: string;
256
+ projectId: string;
257
+ tenantId: string;
257
258
  toolId: string;
258
- headers: Record<string, string> | null;
259
+ subAgentId: string;
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: {
@@ -9,13 +9,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
17
- agentId: string;
18
15
  headers: Record<string, string> | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -44,26 +44,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
44
44
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
- tenantId: string;
48
- projectId: string;
49
47
  id: string;
50
48
  createdAt: string;
51
49
  updatedAt: string;
52
- agentId: string;
53
50
  headers: Record<string, string> | null;
51
+ agentId: string;
52
+ projectId: string;
53
+ tenantId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
- tenantId: string;
61
- projectId: string;
62
60
  id: string;
63
61
  createdAt: string;
64
62
  updatedAt: string;
65
- agentId: string;
66
63
  headers: Record<string, string> | null;
64
+ agentId: string;
65
+ projectId: string;
66
+ tenantId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -222,13 +222,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
222
222
  headers?: Record<string, string> | null;
223
223
  };
224
224
  }) => Promise<{
225
- tenantId: string;
226
- projectId: string;
227
225
  id: string;
228
226
  createdAt: string;
229
227
  updatedAt: string;
230
- agentId: string;
231
228
  headers: Record<string, string> | null;
229
+ agentId: string;
230
+ projectId: string;
231
+ tenantId: string;
232
232
  subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -239,13 +239,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
239
239
  scopes: SubAgentScopeConfig;
240
240
  targetAgentId: string;
241
241
  }) => Promise<{
242
- tenantId: string;
243
- projectId: string;
244
242
  id: string;
245
243
  createdAt: string;
246
244
  updatedAt: string;
247
- agentId: string;
248
245
  headers: Record<string, string> | null;
246
+ agentId: string;
247
+ projectId: string;
248
+ tenantId: string;
249
249
  subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -260,13 +260,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
260
260
  headers?: Record<string, string> | null;
261
261
  };
262
262
  }) => Promise<{
263
- tenantId: string;
264
- projectId: string;
265
263
  id: string;
266
264
  createdAt: string;
267
265
  updatedAt: string;
268
- agentId: string;
269
266
  headers: Record<string, string> | null;
267
+ agentId: string;
268
+ projectId: string;
269
+ tenantId: string;
270
270
  subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;
@@ -9,11 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: string;
15
13
  name: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
16
  description: string | null;
17
+ agentId: string;
18
+ projectId: string;
19
+ tenantId: string;
17
20
  models: {
18
21
  base?: {
19
22
  model?: string | undefined;
@@ -38,19 +41,19 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
41
  stopWhen: {
39
42
  stepCountIs?: number | undefined;
40
43
  } | null;
41
- createdAt: string;
42
- updatedAt: string;
43
- agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  } | undefined>;
46
46
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
47
47
  scopes: AgentScopeConfig;
48
48
  }) => Promise<{
49
- tenantId: string;
50
- projectId: string;
51
49
  id: string;
52
50
  name: string;
51
+ createdAt: string;
52
+ updatedAt: string;
53
53
  description: string | null;
54
+ agentId: string;
55
+ projectId: string;
56
+ tenantId: string;
54
57
  models: {
55
58
  base?: {
56
59
  model?: string | undefined;
@@ -75,9 +78,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
75
78
  stopWhen: {
76
79
  stepCountIs?: number | undefined;
77
80
  } | null;
78
- createdAt: string;
79
- updatedAt: string;
80
- agentId: string;
81
81
  conversationHistoryConfig: ConversationHistoryConfig | null;
82
82
  }[]>;
83
83
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -127,11 +127,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
127
127
  };
128
128
  }>;
129
129
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
130
- tenantId: string;
131
- projectId: string;
132
130
  id: string;
133
131
  name: string;
132
+ createdAt: string;
133
+ updatedAt: string;
134
134
  description: string | null;
135
+ agentId: string;
136
+ projectId: string;
137
+ tenantId: string;
135
138
  models: {
136
139
  base?: {
137
140
  model?: string | undefined;
@@ -156,9 +159,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
156
159
  stopWhen: {
157
160
  stepCountIs?: number | undefined;
158
161
  } | null;
159
- createdAt: string;
160
- updatedAt: string;
161
- agentId: string;
162
162
  conversationHistoryConfig: ConversationHistoryConfig | null;
163
163
  }>;
164
164
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- tenantId: string;
24
- projectId: string;
25
23
  id: string;
26
24
  name: string;
27
- description: string | null;
28
25
  createdAt: string;
29
26
  updatedAt: string;
27
+ description: string | null;
30
28
  headers: Record<string, string> | null;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- tenantId: string;
82
- projectId: string;
83
81
  id: string;
84
82
  name: string;
85
- description: string | null;
86
83
  createdAt: string;
87
84
  updatedAt: string;
85
+ description: string | null;
88
86
  headers: Record<string, string> | null;
87
+ projectId: string;
88
+ tenantId: string;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -135,18 +135,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
135
135
  needsApproval?: boolean;
136
136
  }> | null;
137
137
  }) => Promise<{
138
- tenantId: string;
139
- projectId: string;
140
138
  id: string;
141
139
  createdAt: string;
142
140
  updatedAt: string;
141
+ headers: Record<string, string> | null;
143
142
  agentId: string;
143
+ projectId: string;
144
+ tenantId: string;
144
145
  toolId: string;
145
- headers: Record<string, string> | null;
146
+ subAgentId: string;
146
147
  toolPolicies: Record<string, {
147
148
  needsApproval?: boolean;
148
149
  }> | null;
149
- subAgentId: string;
150
150
  selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -154,18 +154,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
154
154
  subAgentId: string;
155
155
  toolId: string;
156
156
  }) => Promise<{
157
- tenantId: string;
158
- projectId: string;
159
157
  id: string;
160
158
  createdAt: string;
161
159
  updatedAt: string;
160
+ headers: Record<string, string> | null;
162
161
  agentId: string;
162
+ projectId: string;
163
+ tenantId: string;
163
164
  toolId: string;
164
- headers: Record<string, string> | null;
165
+ subAgentId: string;
165
166
  toolPolicies: Record<string, {
166
167
  needsApproval?: boolean;
167
168
  }> | null;
168
- subAgentId: string;
169
169
  selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
@@ -182,18 +182,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
182
182
  }> | null;
183
183
  relationId?: string;
184
184
  }) => Promise<{
185
- tenantId: string;
186
- projectId: string;
187
185
  id: string;
188
186
  createdAt: string;
189
187
  updatedAt: string;
188
+ headers: Record<string, string> | null;
190
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
191
192
  toolId: string;
192
- headers: Record<string, string> | null;
193
+ subAgentId: string;
193
194
  toolPolicies: Record<string, {
194
195
  needsApproval?: boolean;
195
196
  }> | null;
196
- subAgentId: string;
197
197
  selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- tenantId: string;
206
- projectId: string;
207
205
  id: string;
208
206
  name: string;
209
- description: string | null;
210
207
  createdAt: string;
211
208
  updatedAt: string;
209
+ description: string | null;
212
210
  headers: Record<string, string> | null;
211
+ projectId: string;
212
+ tenantId: string;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -174,7 +174,7 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
174
174
  });
175
175
  await client.connect();
176
176
  const serverTools = await client.tools();
177
- const serverInstructions = client.getInstructions()?.replace(/\u0000/g, "");
177
+ const serverInstructions = client.getInstructions() ?? void 0;
178
178
  await client.disconnect();
179
179
  const toolOverrides = tool.config.mcp.toolOverrides;
180
180
  return {