@inkeep/agents-core 0.0.0-dev-20260106155500 → 0.0.0-dev-20260106221934
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.
- package/dist/_virtual/rolldown_runtime.js +2 -2
- package/dist/auth/auth-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +67 -58
- package/dist/auth/permissions.d.ts +15 -14
- package/dist/auth/permissions.js +2 -1
- package/dist/client-exports.d.ts +13 -0
- package/dist/data-access/agents.d.ts +26 -26
- package/dist/data-access/apiKeys.d.ts +20 -20
- package/dist/data-access/artifactComponents.d.ts +34 -14
- package/dist/data-access/artifactComponents.js +22 -1
- package/dist/data-access/contextConfigs.d.ts +12 -12
- package/dist/data-access/conversations.d.ts +12 -12
- package/dist/data-access/dataComponents.d.ts +6 -6
- package/dist/data-access/functionTools.d.ts +10 -10
- package/dist/data-access/messages.d.ts +24 -24
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgentRelations.d.ts +30 -30
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgents.d.ts +18 -18
- package/dist/data-access/tasks.d.ts +4 -4
- package/dist/data-access/tools.d.ts +39 -39
- package/dist/db/schema.d.ts +25 -0
- package/dist/db/schema.js +3 -2
- package/dist/index.js +1 -1
- package/dist/utils/schema-conversion.d.ts +1 -1
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1189 -1009
- package/drizzle/0007_slim_karma.sql +1 -0
- package/drizzle/meta/0007_snapshot.json +3772 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +9 -9
|
@@ -9,23 +9,23 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
metadata: MessageMetadata | null;
|
|
18
|
+
content: MessageContent;
|
|
19
|
+
role: string;
|
|
12
20
|
fromSubAgentId: string | null;
|
|
13
21
|
toSubAgentId: string | null;
|
|
14
22
|
fromExternalAgentId: string | null;
|
|
15
23
|
toExternalAgentId: string | null;
|
|
16
24
|
taskId: string | null;
|
|
17
25
|
a2aTaskId: string | null;
|
|
18
|
-
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
metadata: MessageMetadata | null;
|
|
22
|
-
role: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
26
|
conversationId: string;
|
|
26
27
|
fromTeamAgentId: string | null;
|
|
27
28
|
toTeamAgentId: string | null;
|
|
28
|
-
content: MessageContent;
|
|
29
29
|
visibility: string;
|
|
30
30
|
messageType: string;
|
|
31
31
|
parentMessageId: string | null;
|
|
@@ -140,23 +140,23 @@ declare const getVisibleMessages: (db: DatabaseClient) => (params: {
|
|
|
140
140
|
id: string;
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
|
+
tenantId: string;
|
|
144
|
+
projectId: string;
|
|
145
|
+
id: string;
|
|
146
|
+
createdAt: string;
|
|
147
|
+
updatedAt: string;
|
|
148
|
+
metadata: MessageMetadata | null;
|
|
149
|
+
content: MessageContent;
|
|
150
|
+
role: string;
|
|
143
151
|
fromSubAgentId: string | null;
|
|
144
152
|
toSubAgentId: string | null;
|
|
145
153
|
fromExternalAgentId: string | null;
|
|
146
154
|
toExternalAgentId: string | null;
|
|
147
155
|
taskId: string | null;
|
|
148
156
|
a2aTaskId: string | null;
|
|
149
|
-
id: string;
|
|
150
|
-
createdAt: string;
|
|
151
|
-
updatedAt: string;
|
|
152
|
-
metadata: MessageMetadata | null;
|
|
153
|
-
role: string;
|
|
154
|
-
tenantId: string;
|
|
155
|
-
projectId: string;
|
|
156
157
|
conversationId: string;
|
|
157
158
|
fromTeamAgentId: string | null;
|
|
158
159
|
toTeamAgentId: string | null;
|
|
159
|
-
content: MessageContent;
|
|
160
160
|
visibility: string;
|
|
161
161
|
messageType: string;
|
|
162
162
|
parentMessageId: string | null;
|
|
@@ -193,23 +193,23 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
193
193
|
scopes: ProjectScopeConfig;
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
|
+
tenantId: string;
|
|
197
|
+
projectId: string;
|
|
198
|
+
id: string;
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
metadata: MessageMetadata | null;
|
|
202
|
+
content: MessageContent;
|
|
203
|
+
role: string;
|
|
196
204
|
fromSubAgentId: string | null;
|
|
197
205
|
toSubAgentId: string | null;
|
|
198
206
|
fromExternalAgentId: string | null;
|
|
199
207
|
toExternalAgentId: string | null;
|
|
200
208
|
taskId: string | null;
|
|
201
209
|
a2aTaskId: string | null;
|
|
202
|
-
id: string;
|
|
203
|
-
createdAt: string;
|
|
204
|
-
updatedAt: string;
|
|
205
|
-
metadata: MessageMetadata | null;
|
|
206
|
-
role: string;
|
|
207
|
-
tenantId: string;
|
|
208
|
-
projectId: string;
|
|
209
210
|
conversationId: string;
|
|
210
211
|
fromTeamAgentId: string | null;
|
|
211
212
|
toTeamAgentId: string | null;
|
|
212
|
-
content: MessageContent;
|
|
213
213
|
visibility: string;
|
|
214
214
|
messageType: string;
|
|
215
215
|
parentMessageId: string | null;
|
|
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
12
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
17
|
headers: Record<string, string> | null;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
agentId: string;
|
|
19
18
|
externalAgentId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (param
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
47
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
headers: Record<string, string> | null;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
projectId: string;
|
|
53
|
-
agentId: string;
|
|
54
53
|
externalAgentId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
60
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
65
|
headers: Record<string, string> | null;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
projectId: string;
|
|
66
|
-
agentId: string;
|
|
67
66
|
externalAgentId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
-
|
|
182
|
+
tenantId: string;
|
|
183
|
+
projectId: string;
|
|
183
184
|
id: string;
|
|
185
|
+
agentId: string;
|
|
184
186
|
createdAt: string;
|
|
185
187
|
updatedAt: string;
|
|
186
188
|
headers: Record<string, string> | null;
|
|
187
|
-
tenantId: string;
|
|
188
|
-
projectId: string;
|
|
189
|
-
agentId: string;
|
|
190
189
|
externalAgentId: string;
|
|
190
|
+
subAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
-
|
|
199
|
+
tenantId: string;
|
|
200
|
+
projectId: string;
|
|
200
201
|
id: string;
|
|
202
|
+
agentId: string;
|
|
201
203
|
createdAt: string;
|
|
202
204
|
updatedAt: string;
|
|
203
205
|
headers: Record<string, string> | null;
|
|
204
|
-
tenantId: string;
|
|
205
|
-
projectId: string;
|
|
206
|
-
agentId: string;
|
|
207
206
|
externalAgentId: string;
|
|
207
|
+
subAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
-
|
|
220
|
+
tenantId: string;
|
|
221
|
+
projectId: string;
|
|
221
222
|
id: string;
|
|
223
|
+
agentId: string;
|
|
222
224
|
createdAt: string;
|
|
223
225
|
updatedAt: string;
|
|
224
226
|
headers: Record<string, string> | null;
|
|
225
|
-
tenantId: string;
|
|
226
|
-
projectId: string;
|
|
227
|
-
agentId: string;
|
|
228
227
|
externalAgentId: string;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -8,12 +8,12 @@ declare const getAgentRelationById: (db: DatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
11
|
tenantId: string;
|
|
15
12
|
projectId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
17
|
sourceSubAgentId: string;
|
|
18
18
|
targetSubAgentId: string | null;
|
|
19
19
|
relationType: string | null;
|
|
@@ -43,12 +43,12 @@ declare const listAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
43
43
|
declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
id: string;
|
|
47
|
-
createdAt: string;
|
|
48
|
-
updatedAt: string;
|
|
49
46
|
tenantId: string;
|
|
50
47
|
projectId: string;
|
|
48
|
+
id: string;
|
|
51
49
|
agentId: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
52
|
sourceSubAgentId: string;
|
|
53
53
|
targetSubAgentId: string | null;
|
|
54
54
|
relationType: string | null;
|
|
@@ -56,12 +56,12 @@ declare const getAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
id: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
updatedAt: string;
|
|
62
59
|
tenantId: string;
|
|
63
60
|
projectId: string;
|
|
61
|
+
id: string;
|
|
64
62
|
agentId: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
65
|
sourceSubAgentId: string;
|
|
66
66
|
targetSubAgentId: string | null;
|
|
67
67
|
relationType: string | null;
|
|
@@ -125,12 +125,12 @@ declare const getRelatedAgentsForAgent: (db: DatabaseClient) => (params: {
|
|
|
125
125
|
}[];
|
|
126
126
|
}>;
|
|
127
127
|
declare const createSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
128
|
-
id: string;
|
|
129
|
-
createdAt: string;
|
|
130
|
-
updatedAt: string;
|
|
131
128
|
tenantId: string;
|
|
132
129
|
projectId: string;
|
|
130
|
+
id: string;
|
|
133
131
|
agentId: string;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
134
|
sourceSubAgentId: string;
|
|
135
135
|
targetSubAgentId: string | null;
|
|
136
136
|
relationType: string | null;
|
|
@@ -144,12 +144,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
144
144
|
targetSubAgentId?: string;
|
|
145
145
|
relationType: string;
|
|
146
146
|
}) => Promise<{
|
|
147
|
-
id: string;
|
|
148
|
-
createdAt: string;
|
|
149
|
-
updatedAt: string;
|
|
150
147
|
tenantId: string;
|
|
151
148
|
projectId: string;
|
|
149
|
+
id: string;
|
|
152
150
|
agentId: string;
|
|
151
|
+
createdAt: string;
|
|
152
|
+
updatedAt: string;
|
|
153
153
|
sourceSubAgentId: string;
|
|
154
154
|
targetSubAgentId: string | null;
|
|
155
155
|
relationType: string | null;
|
|
@@ -158,12 +158,12 @@ declare const getAgentRelationByParams: (db: DatabaseClient) => (params: {
|
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
159
159
|
*/
|
|
160
160
|
declare const upsertSubAgentRelation: (db: DatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
161
|
-
id: string;
|
|
162
|
-
createdAt: string;
|
|
163
|
-
updatedAt: string;
|
|
164
161
|
tenantId: string;
|
|
165
162
|
projectId: string;
|
|
163
|
+
id: string;
|
|
166
164
|
agentId: string;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt: string;
|
|
167
167
|
sourceSubAgentId: string;
|
|
168
168
|
targetSubAgentId: string | null;
|
|
169
169
|
relationType: string | null;
|
|
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
203
203
|
}> | null;
|
|
204
204
|
};
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
subAgentId: string;
|
|
207
|
-
id: string;
|
|
208
|
-
createdAt: string;
|
|
209
|
-
updatedAt: string;
|
|
210
|
-
headers: Record<string, string> | null;
|
|
211
206
|
tenantId: string;
|
|
212
207
|
projectId: string;
|
|
208
|
+
id: string;
|
|
213
209
|
agentId: string;
|
|
210
|
+
createdAt: string;
|
|
211
|
+
updatedAt: string;
|
|
214
212
|
toolId: string;
|
|
215
|
-
|
|
213
|
+
headers: Record<string, string> | null;
|
|
216
214
|
toolPolicies: Record<string, {
|
|
217
215
|
needsApproval?: boolean;
|
|
218
216
|
}> | null;
|
|
217
|
+
subAgentId: string;
|
|
218
|
+
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
221
221
|
scopes: AgentScopeConfig;
|
|
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
247
247
|
scopes: SubAgentScopeConfig;
|
|
248
248
|
relationId: string;
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
subAgentId: string;
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: string;
|
|
253
|
-
updatedAt: string;
|
|
254
|
-
headers: Record<string, string> | null;
|
|
255
250
|
tenantId: string;
|
|
256
251
|
projectId: string;
|
|
252
|
+
id: string;
|
|
257
253
|
agentId: string;
|
|
254
|
+
createdAt: string;
|
|
255
|
+
updatedAt: string;
|
|
258
256
|
toolId: string;
|
|
259
|
-
|
|
257
|
+
headers: Record<string, string> | null;
|
|
260
258
|
toolPolicies: Record<string, {
|
|
261
259
|
needsApproval?: boolean;
|
|
262
260
|
}> | null;
|
|
261
|
+
subAgentId: string;
|
|
262
|
+
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: DatabaseClient) => (params: {
|
|
265
265
|
scopes: SubAgentScopeConfig;
|
|
@@ -8,14 +8,14 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
12
13
|
id: string;
|
|
14
|
+
agentId: string;
|
|
13
15
|
createdAt: string;
|
|
14
16
|
updatedAt: string;
|
|
15
17
|
headers: Record<string, string> | null;
|
|
16
|
-
|
|
17
|
-
projectId: string;
|
|
18
|
-
agentId: string;
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -43,27 +43,27 @@ declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
43
43
|
declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
-
|
|
46
|
+
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
47
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
headers: Record<string, string> | null;
|
|
51
|
-
|
|
52
|
-
projectId: string;
|
|
53
|
-
agentId: string;
|
|
53
|
+
subAgentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
-
|
|
59
|
+
tenantId: string;
|
|
60
|
+
projectId: string;
|
|
60
61
|
id: string;
|
|
62
|
+
agentId: string;
|
|
61
63
|
createdAt: string;
|
|
62
64
|
updatedAt: string;
|
|
63
65
|
headers: Record<string, string> | null;
|
|
64
|
-
|
|
65
|
-
projectId: string;
|
|
66
|
-
agentId: string;
|
|
66
|
+
subAgentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
|
|
@@ -209,14 +209,14 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
209
209
|
headers?: Record<string, string> | null;
|
|
210
210
|
};
|
|
211
211
|
}) => Promise<{
|
|
212
|
-
|
|
212
|
+
tenantId: string;
|
|
213
|
+
projectId: string;
|
|
213
214
|
id: string;
|
|
215
|
+
agentId: string;
|
|
214
216
|
createdAt: string;
|
|
215
217
|
updatedAt: string;
|
|
216
218
|
headers: Record<string, string> | null;
|
|
217
|
-
|
|
218
|
-
projectId: string;
|
|
219
|
-
agentId: string;
|
|
219
|
+
subAgentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -226,14 +226,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
226
226
|
scopes: SubAgentScopeConfig;
|
|
227
227
|
targetAgentId: string;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
|
|
229
|
+
tenantId: string;
|
|
230
|
+
projectId: string;
|
|
230
231
|
id: string;
|
|
232
|
+
agentId: string;
|
|
231
233
|
createdAt: string;
|
|
232
234
|
updatedAt: string;
|
|
233
235
|
headers: Record<string, string> | null;
|
|
234
|
-
|
|
235
|
-
projectId: string;
|
|
236
|
-
agentId: string;
|
|
236
|
+
subAgentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -247,14 +247,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
247
247
|
headers?: Record<string, string> | null;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<{
|
|
250
|
-
|
|
250
|
+
tenantId: string;
|
|
251
|
+
projectId: string;
|
|
251
252
|
id: string;
|
|
253
|
+
agentId: string;
|
|
252
254
|
createdAt: string;
|
|
253
255
|
updatedAt: string;
|
|
254
256
|
headers: Record<string, string> | null;
|
|
255
|
-
|
|
256
|
-
projectId: string;
|
|
257
|
-
agentId: string;
|
|
257
|
+
subAgentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -8,9 +8,13 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
subAgentId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
13
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
prompt: string | null;
|
|
17
|
+
agentId: string;
|
|
14
18
|
createdAt: string;
|
|
15
19
|
updatedAt: string;
|
|
16
20
|
models: {
|
|
@@ -30,18 +34,18 @@ declare const getSubAgentById: (db: DatabaseClient) => (params: {
|
|
|
30
34
|
stopWhen: {
|
|
31
35
|
stepCountIs?: number | undefined;
|
|
32
36
|
} | null;
|
|
33
|
-
tenantId: string;
|
|
34
|
-
prompt: string | null;
|
|
35
|
-
projectId: string;
|
|
36
|
-
agentId: string;
|
|
37
37
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
38
38
|
} | undefined>;
|
|
39
39
|
declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
40
40
|
scopes: AgentScopeConfig;
|
|
41
41
|
}) => Promise<{
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
tenantId: string;
|
|
43
|
+
projectId: string;
|
|
44
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string | null;
|
|
47
|
+
prompt: string | null;
|
|
48
|
+
agentId: string;
|
|
45
49
|
createdAt: string;
|
|
46
50
|
updatedAt: string;
|
|
47
51
|
models: {
|
|
@@ -61,10 +65,6 @@ declare const listSubAgents: (db: DatabaseClient) => (params: {
|
|
|
61
65
|
stopWhen: {
|
|
62
66
|
stepCountIs?: number | undefined;
|
|
63
67
|
} | null;
|
|
64
|
-
tenantId: string;
|
|
65
|
-
prompt: string | null;
|
|
66
|
-
projectId: string;
|
|
67
|
-
agentId: string;
|
|
68
68
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
@@ -108,9 +108,13 @@ declare const listSubAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
110
110
|
declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
113
113
|
id: string;
|
|
114
|
+
name: string;
|
|
115
|
+
description: string | null;
|
|
116
|
+
prompt: string | null;
|
|
117
|
+
agentId: string;
|
|
114
118
|
createdAt: string;
|
|
115
119
|
updatedAt: string;
|
|
116
120
|
models: {
|
|
@@ -130,10 +134,6 @@ declare const createSubAgent: (db: DatabaseClient) => (params: SubAgentInsert) =
|
|
|
130
134
|
stopWhen: {
|
|
131
135
|
stepCountIs?: number | undefined;
|
|
132
136
|
} | null;
|
|
133
|
-
tenantId: string;
|
|
134
|
-
prompt: string | null;
|
|
135
|
-
projectId: string;
|
|
136
|
-
agentId: string;
|
|
137
137
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
138
138
|
}>;
|
|
139
139
|
declare const updateSubAgent: (db: DatabaseClient) => (params: {
|
|
@@ -6,15 +6,15 @@ import { DatabaseClient } from "../db/client.js";
|
|
|
6
6
|
|
|
7
7
|
//#region src/data-access/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
|
-
|
|
9
|
+
tenantId: string;
|
|
10
|
+
projectId: string;
|
|
10
11
|
id: string;
|
|
12
|
+
agentId: string;
|
|
11
13
|
createdAt: string;
|
|
12
14
|
updatedAt: string;
|
|
13
15
|
metadata: TaskMetadataConfig | null;
|
|
14
16
|
status: string;
|
|
15
|
-
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
18
18
|
contextId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|