@inkeep/agents-core 0.0.0-dev-20260331193203 → 0.0.0-dev-20260331194528
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/api-client/eval-api-client.d.ts +2 -12
- package/dist/api-client/eval-api-client.js +0 -15
- package/dist/api-client/index.d.ts +2 -2
- package/dist/auth/auth-schema.d.ts +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/index.js +3 -3
- package/dist/data-access/manage/agents.d.ts +36 -36
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/evalConfig.d.ts +48 -2
- package/dist/data-access/manage/evalConfig.js +61 -3
- package/dist/data-access/manage/functionTools.d.ts +8 -8
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +9 -9
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +50 -5
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +34 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +723 -473
- package/dist/db/manage/manage-schema.js +153 -7
- package/dist/db/runtime/runtime-schema.d.ts +376 -376
- package/dist/dolt/backfill-skill-files.d.ts +41 -0
- package/dist/dolt/backfill-skill-files.js +209 -0
- package/dist/dolt/run-sql-file-on-all-branches.d.ts +29 -0
- package/dist/dolt/run-sql-file-on-all-branches.js +177 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/dist/types/entities.d.ts +8 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +4 -4
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +36 -36
- package/dist/validation/schemas.d.ts +2714 -2572
- package/dist/validation/schemas.js +13 -15
- package/drizzle/manage/0017_brief_doctor_strange.sql +29 -0
- package/drizzle/manage/meta/0017_snapshot.json +3748 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +3 -1
|
@@ -16,12 +16,12 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
19
|
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
createdAt: string;
|
|
21
22
|
updatedAt: string;
|
|
22
23
|
projectId: string;
|
|
23
24
|
tenantId: string;
|
|
24
|
-
description: string;
|
|
25
25
|
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
@@ -111,12 +111,12 @@ interface WithTenantIdProjectId {
|
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
113
|
id: string;
|
|
114
|
-
createdAt: string;
|
|
115
114
|
name: string;
|
|
115
|
+
description: string;
|
|
116
|
+
createdAt: string;
|
|
116
117
|
updatedAt: string;
|
|
117
118
|
projectId: string;
|
|
118
119
|
tenantId: string;
|
|
119
|
-
description: string;
|
|
120
120
|
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
@@ -142,11 +142,11 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
142
142
|
id: string;
|
|
143
143
|
createdAt: string;
|
|
144
144
|
updatedAt: string;
|
|
145
|
-
agentId: string;
|
|
146
145
|
projectId: string;
|
|
147
146
|
tenantId: string;
|
|
148
|
-
|
|
147
|
+
agentId: string;
|
|
149
148
|
subAgentId: string;
|
|
149
|
+
skillId: string;
|
|
150
150
|
index: number;
|
|
151
151
|
alwaysLoaded: boolean;
|
|
152
152
|
}>;
|
|
@@ -12,9 +12,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
@@ -47,9 +47,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
@@ -60,9 +60,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
@@ -189,9 +189,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
189
189
|
id: string;
|
|
190
190
|
createdAt: string;
|
|
191
191
|
updatedAt: string;
|
|
192
|
-
agentId: string;
|
|
193
192
|
projectId: string;
|
|
194
193
|
tenantId: string;
|
|
194
|
+
agentId: string;
|
|
195
195
|
subAgentId: string;
|
|
196
196
|
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
@@ -206,9 +206,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
agentId: string;
|
|
210
209
|
projectId: string;
|
|
211
210
|
tenantId: string;
|
|
211
|
+
agentId: string;
|
|
212
212
|
subAgentId: string;
|
|
213
213
|
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
@@ -227,9 +227,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
227
227
|
id: string;
|
|
228
228
|
createdAt: string;
|
|
229
229
|
updatedAt: string;
|
|
230
|
-
agentId: string;
|
|
231
230
|
projectId: string;
|
|
232
231
|
tenantId: string;
|
|
232
|
+
agentId: string;
|
|
233
233
|
subAgentId: string;
|
|
234
234
|
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
@@ -12,12 +12,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
|
+
relationType: string | null;
|
|
18
19
|
sourceSubAgentId: string;
|
|
19
20
|
targetSubAgentId: string | null;
|
|
20
|
-
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -47,12 +47,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
agentId: string;
|
|
53
|
+
relationType: string | null;
|
|
53
54
|
sourceSubAgentId: string;
|
|
54
55
|
targetSubAgentId: string | null;
|
|
55
|
-
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
@@ -60,12 +60,12 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
agentId: string;
|
|
66
|
+
relationType: string | null;
|
|
66
67
|
sourceSubAgentId: string;
|
|
67
68
|
targetSubAgentId: string | null;
|
|
68
|
-
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -129,12 +129,12 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
129
129
|
id: string;
|
|
130
130
|
createdAt: string;
|
|
131
131
|
updatedAt: string;
|
|
132
|
-
agentId: string;
|
|
133
132
|
projectId: string;
|
|
134
133
|
tenantId: string;
|
|
134
|
+
agentId: string;
|
|
135
|
+
relationType: string | null;
|
|
135
136
|
sourceSubAgentId: string;
|
|
136
137
|
targetSubAgentId: string | null;
|
|
137
|
-
relationType: string | null;
|
|
138
138
|
}>;
|
|
139
139
|
/**
|
|
140
140
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -148,12 +148,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
148
148
|
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
updatedAt: string;
|
|
151
|
-
agentId: string;
|
|
152
151
|
projectId: string;
|
|
153
152
|
tenantId: string;
|
|
153
|
+
agentId: string;
|
|
154
|
+
relationType: string | null;
|
|
154
155
|
sourceSubAgentId: string;
|
|
155
156
|
targetSubAgentId: string | null;
|
|
156
|
-
relationType: string | null;
|
|
157
157
|
} | undefined>;
|
|
158
158
|
/**
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -162,12 +162,12 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
162
162
|
id: string;
|
|
163
163
|
createdAt: string;
|
|
164
164
|
updatedAt: string;
|
|
165
|
-
agentId: string;
|
|
166
165
|
projectId: string;
|
|
167
166
|
tenantId: string;
|
|
167
|
+
agentId: string;
|
|
168
|
+
relationType: string | null;
|
|
168
169
|
sourceSubAgentId: string;
|
|
169
170
|
targetSubAgentId: string | null;
|
|
170
|
-
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -207,9 +207,9 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
-
agentId: string;
|
|
211
210
|
projectId: string;
|
|
212
211
|
tenantId: string;
|
|
212
|
+
agentId: string;
|
|
213
213
|
subAgentId: string;
|
|
214
214
|
toolId: string;
|
|
215
215
|
headers: Record<string, string> | null;
|
|
@@ -251,9 +251,9 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
-
agentId: string;
|
|
255
254
|
projectId: string;
|
|
256
255
|
tenantId: string;
|
|
256
|
+
agentId: string;
|
|
257
257
|
subAgentId: string;
|
|
258
258
|
toolId: string;
|
|
259
259
|
headers: Record<string, string> | null;
|
|
@@ -12,9 +12,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
@@ -47,9 +47,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
@@ -60,9 +60,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
-
agentId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
@@ -225,9 +225,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
225
225
|
id: string;
|
|
226
226
|
createdAt: string;
|
|
227
227
|
updatedAt: string;
|
|
228
|
-
agentId: string;
|
|
229
228
|
projectId: string;
|
|
230
229
|
tenantId: string;
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
@@ -242,9 +242,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
242
242
|
id: string;
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
245
|
-
agentId: string;
|
|
246
245
|
projectId: string;
|
|
247
246
|
tenantId: string;
|
|
247
|
+
agentId: string;
|
|
248
248
|
subAgentId: string;
|
|
249
249
|
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
@@ -263,9 +263,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
263
263
|
id: string;
|
|
264
264
|
createdAt: string;
|
|
265
265
|
updatedAt: string;
|
|
266
|
-
agentId: string;
|
|
267
266
|
projectId: string;
|
|
268
267
|
tenantId: string;
|
|
268
|
+
agentId: string;
|
|
269
269
|
subAgentId: string;
|
|
270
270
|
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
@@ -10,13 +10,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
createdAt: string;
|
|
14
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
projectId: string;
|
|
18
18
|
tenantId: string;
|
|
19
|
-
|
|
19
|
+
agentId: string;
|
|
20
|
+
prompt: string | null;
|
|
20
21
|
models: {
|
|
21
22
|
base?: {
|
|
22
23
|
model?: string | undefined;
|
|
@@ -37,7 +38,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
37
38
|
allowedProviders?: string[] | undefined;
|
|
38
39
|
} | undefined;
|
|
39
40
|
} | null;
|
|
40
|
-
prompt: string | null;
|
|
41
41
|
stopWhen: {
|
|
42
42
|
stepCountIs?: number | undefined;
|
|
43
43
|
} | null;
|
|
@@ -47,13 +47,14 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
47
|
scopes: AgentScopeConfig;
|
|
48
48
|
}) => Promise<{
|
|
49
49
|
id: string;
|
|
50
|
-
createdAt: string;
|
|
51
50
|
name: string;
|
|
51
|
+
description: string | null;
|
|
52
|
+
createdAt: string;
|
|
52
53
|
updatedAt: string;
|
|
53
|
-
agentId: string;
|
|
54
54
|
projectId: string;
|
|
55
55
|
tenantId: string;
|
|
56
|
-
|
|
56
|
+
agentId: string;
|
|
57
|
+
prompt: string | null;
|
|
57
58
|
models: {
|
|
58
59
|
base?: {
|
|
59
60
|
model?: string | undefined;
|
|
@@ -74,7 +75,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
74
75
|
allowedProviders?: string[] | undefined;
|
|
75
76
|
} | undefined;
|
|
76
77
|
} | null;
|
|
77
|
-
prompt: string | null;
|
|
78
78
|
stopWhen: {
|
|
79
79
|
stepCountIs?: number | undefined;
|
|
80
80
|
} | null;
|
|
@@ -128,13 +128,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
128
128
|
}>;
|
|
129
129
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
130
130
|
id: string;
|
|
131
|
-
createdAt: string;
|
|
132
131
|
name: string;
|
|
132
|
+
description: string | null;
|
|
133
|
+
createdAt: string;
|
|
133
134
|
updatedAt: string;
|
|
134
|
-
agentId: string;
|
|
135
135
|
projectId: string;
|
|
136
136
|
tenantId: string;
|
|
137
|
-
|
|
137
|
+
agentId: string;
|
|
138
|
+
prompt: string | null;
|
|
138
139
|
models: {
|
|
139
140
|
base?: {
|
|
140
141
|
model?: string | undefined;
|
|
@@ -155,7 +156,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
155
156
|
allowedProviders?: string[] | undefined;
|
|
156
157
|
} | undefined;
|
|
157
158
|
} | null;
|
|
158
|
-
prompt: string | null;
|
|
159
159
|
stopWhen: {
|
|
160
160
|
stepCountIs?: number | undefined;
|
|
161
161
|
} | null;
|
|
@@ -21,12 +21,12 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
24
|
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
createdAt: string;
|
|
26
27
|
updatedAt: string;
|
|
27
28
|
projectId: string;
|
|
28
29
|
tenantId: string;
|
|
29
|
-
description: string | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
@@ -79,12 +79,12 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
81
|
id: string;
|
|
82
|
-
createdAt: string;
|
|
83
82
|
name: string;
|
|
83
|
+
description: string | null;
|
|
84
|
+
createdAt: string;
|
|
84
85
|
updatedAt: string;
|
|
85
86
|
projectId: string;
|
|
86
87
|
tenantId: string;
|
|
87
|
-
description: string | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
@@ -138,9 +138,9 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
agentId: string;
|
|
142
141
|
projectId: string;
|
|
143
142
|
tenantId: string;
|
|
143
|
+
agentId: string;
|
|
144
144
|
subAgentId: string;
|
|
145
145
|
toolId: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
@@ -157,9 +157,9 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
-
agentId: string;
|
|
161
160
|
projectId: string;
|
|
162
161
|
tenantId: string;
|
|
162
|
+
agentId: string;
|
|
163
163
|
subAgentId: string;
|
|
164
164
|
toolId: string;
|
|
165
165
|
headers: Record<string, string> | null;
|
|
@@ -185,9 +185,9 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
-
agentId: string;
|
|
189
188
|
projectId: string;
|
|
190
189
|
tenantId: string;
|
|
190
|
+
agentId: string;
|
|
191
191
|
subAgentId: string;
|
|
192
192
|
toolId: string;
|
|
193
193
|
headers: Record<string, string> | null;
|
|
@@ -203,12 +203,12 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
205
|
id: string;
|
|
206
|
-
createdAt: string;
|
|
207
206
|
name: string;
|
|
207
|
+
description: string | null;
|
|
208
|
+
createdAt: string;
|
|
208
209
|
updatedAt: string;
|
|
209
210
|
projectId: string;
|
|
210
211
|
tenantId: string;
|
|
211
|
-
description: string | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
@@ -9,12 +9,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
12
|
name: string | null;
|
|
13
|
+
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
agentId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
@@ -23,12 +23,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
-
createdAt: string;
|
|
27
26
|
name: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
agentId: string;
|
|
30
29
|
projectId: string;
|
|
31
30
|
tenantId: string;
|
|
31
|
+
agentId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
@@ -40,12 +40,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
createdAt: string;
|
|
44
43
|
name: string | null;
|
|
44
|
+
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
agentId: string;
|
|
47
46
|
projectId: string;
|
|
48
47
|
tenantId: string;
|
|
48
|
+
agentId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
@@ -67,12 +67,12 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
createdAt: string;
|
|
71
70
|
name: string | null;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
agentId: string;
|
|
74
73
|
projectId: string;
|
|
75
74
|
tenantId: string;
|
|
75
|
+
agentId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
@@ -7,14 +7,17 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
type: AppType;
|
|
9
9
|
id: string;
|
|
10
|
-
createdAt: string;
|
|
11
10
|
name: string;
|
|
11
|
+
description: string | null;
|
|
12
|
+
createdAt: string;
|
|
12
13
|
updatedAt: string;
|
|
13
14
|
projectId: string | null;
|
|
14
15
|
tenantId: string | null;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
lastUsedAt: string | null;
|
|
17
|
+
defaultProjectId: string | null;
|
|
18
|
+
defaultAgentId: string | null;
|
|
17
19
|
prompt: string | null;
|
|
20
|
+
enabled: boolean;
|
|
18
21
|
config: {
|
|
19
22
|
type: "web_client";
|
|
20
23
|
webClient: {
|
|
@@ -35,9 +38,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
35
38
|
type: "api";
|
|
36
39
|
api: Record<string, never>;
|
|
37
40
|
};
|
|
38
|
-
lastUsedAt: string | null;
|
|
39
|
-
defaultProjectId: string | null;
|
|
40
|
-
defaultAgentId: string | null;
|
|
41
41
|
} | undefined>;
|
|
42
42
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
43
43
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -66,14 +66,17 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
67
67
|
type: AppType;
|
|
68
68
|
id: string;
|
|
69
|
-
createdAt: string;
|
|
70
69
|
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
createdAt: string;
|
|
71
72
|
updatedAt: string;
|
|
72
73
|
projectId: string | null;
|
|
73
74
|
tenantId: string | null;
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
lastUsedAt: string | null;
|
|
76
|
+
defaultProjectId: string | null;
|
|
77
|
+
defaultAgentId: string | null;
|
|
76
78
|
prompt: string | null;
|
|
79
|
+
enabled: boolean;
|
|
77
80
|
config: {
|
|
78
81
|
type: "web_client";
|
|
79
82
|
webClient: {
|
|
@@ -94,9 +97,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
94
97
|
type: "api";
|
|
95
98
|
api: Record<string, never>;
|
|
96
99
|
};
|
|
97
|
-
lastUsedAt: string | null;
|
|
98
|
-
defaultProjectId: string | null;
|
|
99
|
-
defaultAgentId: string | null;
|
|
100
100
|
}>;
|
|
101
101
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
102
102
|
scopes: TenantScopeConfig;
|
|
@@ -16,21 +16,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
projectId: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
title: string | null;
|
|
25
|
-
metadata: ConversationMetadata | null;
|
|
26
|
-
userId: string | null;
|
|
27
19
|
ref: {
|
|
28
20
|
type: "commit" | "tag" | "branch";
|
|
29
21
|
name: string;
|
|
30
22
|
hash: string;
|
|
31
23
|
} | null;
|
|
24
|
+
title: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
userId: string | null;
|
|
30
|
+
agentId: string | null;
|
|
32
31
|
activeSubAgentId: string;
|
|
33
32
|
lastContextResolution: string | null;
|
|
33
|
+
metadata: ConversationMetadata | null;
|
|
34
34
|
}>;
|
|
35
35
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
36
36
|
scopes: ProjectScopeConfig;
|
|
@@ -85,21 +85,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
createdAt: string;
|
|
89
|
-
updatedAt: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
projectId: string;
|
|
92
|
-
tenantId: string;
|
|
93
|
-
title: string | null;
|
|
94
|
-
metadata: ConversationMetadata | null;
|
|
95
|
-
userId: string | null;
|
|
96
88
|
ref: {
|
|
97
89
|
type: "commit" | "tag" | "branch";
|
|
98
90
|
name: string;
|
|
99
91
|
hash: string;
|
|
100
92
|
} | null;
|
|
93
|
+
title: string | null;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
userId: string | null;
|
|
99
|
+
agentId: string | null;
|
|
101
100
|
activeSubAgentId: string;
|
|
102
101
|
lastContextResolution: string | null;
|
|
102
|
+
metadata: ConversationMetadata | null;
|
|
103
103
|
} | undefined>;
|
|
104
104
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
105
105
|
activeSubAgentId: string;
|
|
@@ -121,21 +121,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
createdAt: string;
|
|
125
|
-
updatedAt: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
projectId: string;
|
|
128
|
-
tenantId: string;
|
|
129
|
-
title: string | null;
|
|
130
|
-
metadata: ConversationMetadata | null;
|
|
131
|
-
userId: string | null;
|
|
132
124
|
ref: {
|
|
133
125
|
type: "commit" | "tag" | "branch";
|
|
134
126
|
name: string;
|
|
135
127
|
hash: string;
|
|
136
128
|
} | null;
|
|
129
|
+
title: string | null;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
projectId: string;
|
|
133
|
+
tenantId: string;
|
|
134
|
+
userId: string | null;
|
|
135
|
+
agentId: string | null;
|
|
137
136
|
activeSubAgentId: string;
|
|
138
137
|
lastContextResolution: string | null;
|
|
138
|
+
metadata: ConversationMetadata | null;
|
|
139
139
|
}>;
|
|
140
140
|
/**
|
|
141
141
|
* Get conversation history with filtering and context management
|
|
@@ -153,21 +153,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
createdAt: string;
|
|
157
|
-
updatedAt: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
projectId: string;
|
|
160
|
-
tenantId: string;
|
|
161
|
-
title: string | null;
|
|
162
|
-
metadata: ConversationMetadata | null;
|
|
163
|
-
userId: string | null;
|
|
164
156
|
ref: {
|
|
165
157
|
type: "commit" | "tag" | "branch";
|
|
166
158
|
name: string;
|
|
167
159
|
hash: string;
|
|
168
160
|
} | null;
|
|
161
|
+
title: string | null;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
projectId: string;
|
|
165
|
+
tenantId: string;
|
|
166
|
+
userId: string | null;
|
|
167
|
+
agentId: string | null;
|
|
169
168
|
activeSubAgentId: string;
|
|
170
169
|
lastContextResolution: string | null;
|
|
170
|
+
metadata: ConversationMetadata | null;
|
|
171
171
|
} | undefined>;
|
|
172
172
|
/**
|
|
173
173
|
* Set active agent for a conversation (upsert operation)
|