@inkeep/agents-core 0.0.0-dev-20260326213425 → 0.0.0-dev-20260326234150

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.
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
+ actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
12
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
12
+ statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
+ actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
19
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
19
+ statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
+ actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
26
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
26
+ statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -10,9 +10,15 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
+ id: string;
13
14
  name: string;
15
+ createdAt: string;
16
+ updatedAt: string;
14
17
  description: string | null;
15
- id: string;
18
+ projectId: string;
19
+ tenantId: string;
20
+ defaultSubAgentId: string | null;
21
+ contextConfigId: string | null;
16
22
  models: {
17
23
  base?: {
18
24
  model?: string | undefined;
@@ -27,15 +33,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
27
33
  providerOptions?: Record<string, unknown> | undefined;
28
34
  } | undefined;
29
35
  } | null;
30
- stopWhen: {
31
- transferCountIs?: number | undefined;
32
- } | null;
33
- createdAt: string;
34
- updatedAt: string;
35
- tenantId: string;
36
- projectId: string;
37
- defaultSubAgentId: string | null;
38
- contextConfigId: string | null;
39
36
  prompt: string | null;
40
37
  statusUpdates: {
41
38
  enabled?: boolean | undefined;
@@ -52,14 +49,23 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
52
49
  } | undefined;
53
50
  }[] | undefined;
54
51
  } | null;
52
+ stopWhen: {
53
+ transferCountIs?: number | undefined;
54
+ } | null;
55
55
  executionMode: "classic" | "durable";
56
56
  } | null>;
57
57
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ id: string;
60
61
  name: string;
62
+ createdAt: string;
63
+ updatedAt: string;
61
64
  description: string | null;
62
- id: string;
65
+ projectId: string;
66
+ tenantId: string;
67
+ defaultSubAgentId: string | null;
68
+ contextConfigId: string | null;
63
69
  models: {
64
70
  base?: {
65
71
  model?: string | undefined;
@@ -74,15 +80,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
74
80
  providerOptions?: Record<string, unknown> | undefined;
75
81
  } | undefined;
76
82
  } | null;
77
- stopWhen: {
78
- transferCountIs?: number | undefined;
79
- } | null;
80
- createdAt: string;
81
- updatedAt: string;
82
- tenantId: string;
83
- projectId: string;
84
- defaultSubAgentId: string | null;
85
- contextConfigId: string | null;
86
83
  prompt: string | null;
87
84
  statusUpdates: {
88
85
  enabled?: boolean | undefined;
@@ -99,11 +96,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
99
96
  } | undefined;
100
97
  }[] | undefined;
101
98
  } | null;
99
+ stopWhen: {
100
+ transferCountIs?: number | undefined;
101
+ } | null;
102
102
  executionMode: "classic" | "durable";
103
103
  defaultSubAgent: {
104
+ id: string;
104
105
  name: string;
106
+ createdAt: string;
107
+ updatedAt: string;
105
108
  description: string | null;
106
- id: string;
109
+ agentId: string;
110
+ projectId: string;
111
+ tenantId: string;
107
112
  models: {
108
113
  base?: {
109
114
  model?: string | undefined;
@@ -118,24 +123,25 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
118
123
  providerOptions?: Record<string, unknown> | undefined;
119
124
  } | undefined;
120
125
  } | null;
126
+ prompt: string | null;
121
127
  stopWhen: {
122
128
  stepCountIs?: number | undefined;
123
129
  } | null;
124
- createdAt: string;
125
- updatedAt: string;
126
- tenantId: string;
127
- projectId: string;
128
- prompt: string | null;
129
- agentId: string;
130
130
  conversationHistoryConfig: ConversationHistoryConfig | null;
131
131
  } | null;
132
132
  } | null>;
133
133
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
134
134
  scopes: ProjectScopeConfig;
135
135
  }) => Promise<{
136
+ id: string;
136
137
  name: string;
138
+ createdAt: string;
139
+ updatedAt: string;
137
140
  description: string | null;
138
- id: string;
141
+ projectId: string;
142
+ tenantId: string;
143
+ defaultSubAgentId: string | null;
144
+ contextConfigId: string | null;
139
145
  models: {
140
146
  base?: {
141
147
  model?: string | undefined;
@@ -150,15 +156,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
150
156
  providerOptions?: Record<string, unknown> | undefined;
151
157
  } | undefined;
152
158
  } | null;
153
- stopWhen: {
154
- transferCountIs?: number | undefined;
155
- } | null;
156
- createdAt: string;
157
- updatedAt: string;
158
- tenantId: string;
159
- projectId: string;
160
- defaultSubAgentId: string | null;
161
- contextConfigId: string | null;
162
159
  prompt: string | null;
163
160
  statusUpdates: {
164
161
  enabled?: boolean | undefined;
@@ -175,6 +172,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
175
172
  } | undefined;
176
173
  }[] | undefined;
177
174
  } | null;
175
+ stopWhen: {
176
+ transferCountIs?: number | undefined;
177
+ } | null;
178
178
  executionMode: "classic" | "durable";
179
179
  }[]>;
180
180
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -251,9 +251,15 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
251
251
  projectIds: string[];
252
252
  }): Promise<AvailableAgentInfo[]>;
253
253
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
254
+ id: string;
254
255
  name: string;
256
+ createdAt: string;
257
+ updatedAt: string;
255
258
  description: string | null;
256
- id: string;
259
+ projectId: string;
260
+ tenantId: string;
261
+ defaultSubAgentId: string | null;
262
+ contextConfigId: string | null;
257
263
  models: {
258
264
  base?: {
259
265
  model?: string | undefined;
@@ -268,15 +274,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
268
274
  providerOptions?: Record<string, unknown> | undefined;
269
275
  } | undefined;
270
276
  } | null;
271
- stopWhen: {
272
- transferCountIs?: number | undefined;
273
- } | null;
274
- createdAt: string;
275
- updatedAt: string;
276
- tenantId: string;
277
- projectId: string;
278
- defaultSubAgentId: string | null;
279
- contextConfigId: string | null;
280
277
  prompt: string | null;
281
278
  statusUpdates: {
282
279
  enabled?: boolean | undefined;
@@ -293,6 +290,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
293
290
  } | undefined;
294
291
  }[] | undefined;
295
292
  } | null;
293
+ stopWhen: {
294
+ transferCountIs?: number | undefined;
295
+ } | null;
296
296
  executionMode: "classic" | "durable";
297
297
  }>;
298
298
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -9,13 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- name: string;
13
- description: string | null;
14
12
  id: string;
13
+ name: string;
15
14
  createdAt: string;
16
15
  updatedAt: string;
17
- tenantId: string;
16
+ description: string | null;
18
17
  projectId: string;
18
+ tenantId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -65,13 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- name: string;
69
- description: string | null;
70
68
  id: string;
69
+ name: string;
71
70
  createdAt: string;
72
71
  updatedAt: string;
73
- tenantId: string;
72
+ description: string | null;
74
73
  projectId: string;
74
+ tenantId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- tenantId: string;
147
- projectId: string;
148
146
  agentId: string;
147
+ projectId: string;
148
+ tenantId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- tenantId: string;
190
- projectId: string;
191
189
  agentId: string;
190
+ projectId: string;
191
+ tenantId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
- projectId: string;
29
27
  agentId: string;
28
+ projectId: string;
29
+ tenantId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
- projectId: string;
91
89
  agentId: string;
90
+ projectId: string;
91
+ tenantId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- tenantId: string;
71
- projectId: string;
72
70
  agentId: string;
71
+ projectId: string;
72
+ tenantId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- tenantId: string;
113
- projectId: string;
114
112
  agentId: string;
113
+ projectId: string;
114
+ tenantId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- name: string;
57
- description: string | null;
58
56
  id: string;
57
+ name: string;
59
58
  createdAt: string;
60
59
  updatedAt: string;
61
- tenantId: string;
62
- projectId: 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
- name: string;
99
- description: string | null;
100
98
  id: string;
99
+ name: string;
101
100
  createdAt: string;
102
101
  updatedAt: string;
103
- tenantId: string;
104
- projectId: 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: {
@@ -160,14 +160,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- tenantId: string;
164
- projectId: 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
@@ -225,14 +225,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- tenantId: string;
229
- projectId: 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 };
@@ -326,7 +326,14 @@ const createFullProjectServerSide = (db, logger = defaultLogger) => async (param
326
326
  throw error;
327
327
  }
328
328
  });
329
- await Promise.all(agentPromises);
329
+ const phase1Errors = (await Promise.allSettled(agentPromises)).filter((r) => r.status === "rejected").map((r) => r.reason);
330
+ if (phase1Errors.length > 0) {
331
+ logger.error({
332
+ projectId: typed.id,
333
+ errorCount: phase1Errors.length
334
+ }, `Some agents failed to create in phase 1: ${phase1Errors.join(", ")}`);
335
+ throw phase1Errors[0];
336
+ }
330
337
  logger.info({
331
338
  projectId: typed.id,
332
339
  agentCount: Object.keys(typed.agents).length
@@ -362,7 +369,14 @@ const createFullProjectServerSide = (db, logger = defaultLogger) => async (param
362
369
  throw error;
363
370
  }
364
371
  });
365
- await Promise.all(updatePromises);
372
+ const phase2Errors = (await Promise.allSettled(updatePromises)).filter((r) => r.status === "rejected").map((r) => r.reason);
373
+ if (phase2Errors.length > 0) {
374
+ logger.error({
375
+ projectId: typed.id,
376
+ errorCount: phase2Errors.length
377
+ }, `Some agents failed to add sub-agents in phase 2: ${phase2Errors.join(", ")}`);
378
+ throw phase2Errors[0];
379
+ }
366
380
  logger.info({
367
381
  projectId: typed.id,
368
382
  agentCount: Object.keys(typed.agents).length
@@ -894,7 +908,14 @@ const updateFullProjectServerSide = (db, logger = defaultLogger) => async (param
894
908
  throw error;
895
909
  }
896
910
  });
897
- await Promise.all(agentPromises);
911
+ const agentErrors = (await Promise.allSettled(agentPromises)).filter((r) => r.status === "rejected").map((r) => r.reason);
912
+ if (agentErrors.length > 0) {
913
+ logger.error({
914
+ projectId: typed.id,
915
+ errorCount: agentErrors.length
916
+ }, `Some agents failed to update in project: ${agentErrors.join(", ")}`);
917
+ throw agentErrors[0];
918
+ }
898
919
  logger.info({
899
920
  projectId: typed.id,
900
921
  agentCount: Object.keys(typed.agents).length
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  skillId: string;
10
10
  }) => Promise<{
11
- name: string;
12
- description: string;
13
11
  id: string;
12
+ name: string;
14
13
  createdAt: string;
15
14
  updatedAt: string;
16
- tenantId: string;
17
- projectId: string;
18
15
  metadata: Record<string, string> | null;
16
+ description: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  content: string;
20
20
  } | null>;
21
21
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
@@ -41,25 +41,25 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
41
41
  };
42
42
  }>;
43
43
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
44
- name: string;
45
- description: string;
46
44
  id: string;
45
+ name: string;
47
46
  createdAt: string;
48
47
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
48
  metadata: Record<string, string> | null;
49
+ description: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  content: string;
53
53
  }>;
54
54
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
55
- name: string;
56
- description: string;
57
55
  id: string;
56
+ name: string;
58
57
  createdAt: string;
59
58
  updatedAt: string;
60
- tenantId: string;
61
- projectId: string;
62
59
  metadata: Record<string, string> | null;
60
+ description: string;
61
+ projectId: string;
62
+ tenantId: string;
63
63
  content: string;
64
64
  }>;
65
65
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -94,13 +94,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
94
94
  id: string;
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
- tenantId: string;
98
- projectId: string;
99
97
  agentId: string;
98
+ projectId: string;
99
+ tenantId: string;
100
100
  subAgentId: string;
101
+ skillId: string;
101
102
  index: number;
102
103
  alwaysLoaded: boolean;
103
- skillId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  scopes: AgentScopeConfig;
@@ -12,12 +12,12 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
- projectId: 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;
@@ -47,12 +47,12 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
- projectId: 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;
@@ -60,12 +60,12 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
- projectId: 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;
@@ -183,12 +183,12 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- tenantId: string;
187
- projectId: string;
188
- agentId: string;
189
186
  headers: Record<string, string> | null;
190
- externalAgentId: string;
187
+ agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
191
190
  subAgentId: string;
191
+ externalAgentId: string;
192
192
  }>;
193
193
  /**
194
194
  * Check if sub-agent external agent relation exists by params
@@ -200,12 +200,12 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- tenantId: string;
204
- projectId: string;
205
- agentId: string;
206
203
  headers: Record<string, string> | null;
207
- externalAgentId: string;
204
+ agentId: string;
205
+ projectId: string;
206
+ tenantId: string;
208
207
  subAgentId: string;
208
+ externalAgentId: string;
209
209
  } | undefined>;
210
210
  /**
211
211
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -221,12 +221,12 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
221
221
  id: string;
222
222
  createdAt: string;
223
223
  updatedAt: string;
224
- tenantId: string;
225
- projectId: string;
226
- agentId: string;
227
224
  headers: Record<string, string> | null;
228
- externalAgentId: string;
225
+ agentId: string;
226
+ projectId: string;
227
+ tenantId: string;
229
228
  subAgentId: string;
229
+ externalAgentId: string;
230
230
  }>;
231
231
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
232
232
  scopes: SubAgentScopeConfig;