@inkeep/agents-core 0.65.1 → 0.66.0
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 +25 -1
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/index.d.ts +14 -0
- package/dist/constants/index.js +15 -0
- package/dist/constants/relation-types.d.ts +5 -0
- package/dist/constants/relation-types.js +6 -0
- package/dist/constants/session-events.d.ts +13 -0
- package/dist/constants/session-events.js +14 -0
- package/dist/constants/tool-names.d.ts +7 -0
- package/dist/constants/tool-names.js +8 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +8 -0
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/manage/agentFull.d.ts +7 -10
- package/dist/data-access/manage/agentFull.js +26 -28
- package/dist/data-access/manage/agents.d.ts +47 -47
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/projectFull.d.ts +6 -8
- package/dist/data-access/manage/projectFull.js +18 -18
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-client.js +15 -3
- package/dist/db/manage/manage-schema.d.ts +358 -358
- package/dist/db/runtime/runtime-client.js +7 -1
- package/dist/db/runtime/runtime-schema.d.ts +373 -373
- package/dist/dolt/merge.js +7 -9
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/dolt/ref-scope.js +9 -3
- package/dist/index.d.ts +9 -5
- package/dist/index.js +7 -3
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +48 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2613 -0
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +3 -0
- package/dist/test-utils/mocks/index.d.ts +2 -0
- package/dist/test-utils/mocks/index.js +3 -0
- package/dist/test-utils/mocks/logger.d.ts +27 -0
- package/dist/test-utils/mocks/logger.js +48 -0
- package/dist/utils/error.d.ts +58 -52
- package/dist/utils/error.js +63 -21
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/logger.d.ts +21 -2
- package/dist/utils/logger.js +67 -11
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/schemas/skills.d.ts +45 -45
- package/dist/validation/schemas.d.ts +2289 -2289
- package/drizzle/runtime/meta/_journal.json +2 -2
- package/package.json +5 -1
|
@@ -10,14 +10,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
15
|
headers: Record<string, string> | null;
|
|
19
|
-
|
|
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;
|
|
@@ -45,27 +45,27 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
agentId: string;
|
|
53
50
|
headers: Record<string, string> | null;
|
|
54
|
-
|
|
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
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
projectId: string;
|
|
65
|
-
agentId: string;
|
|
66
63
|
headers: Record<string, string> | null;
|
|
67
|
-
|
|
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;
|
|
@@ -187,14 +187,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
tenantId: string;
|
|
191
190
|
createdAt: string;
|
|
192
191
|
updatedAt: string;
|
|
193
|
-
projectId: string;
|
|
194
|
-
agentId: string;
|
|
195
192
|
headers: Record<string, string> | null;
|
|
196
|
-
|
|
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
|
|
@@ -204,14 +204,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
tenantId: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
210
|
-
projectId: string;
|
|
211
|
-
agentId: string;
|
|
212
209
|
headers: Record<string, string> | null;
|
|
213
|
-
|
|
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)
|
|
@@ -225,14 +225,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
tenantId: string;
|
|
229
228
|
createdAt: string;
|
|
230
229
|
updatedAt: string;
|
|
231
|
-
projectId: string;
|
|
232
|
-
agentId: string;
|
|
233
230
|
headers: Record<string, string> | null;
|
|
234
|
-
|
|
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;
|
|
@@ -10,11 +10,11 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
projectId: 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;
|
|
@@ -45,11 +45,11 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
projectId: 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;
|
|
@@ -58,11 +58,11 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
projectId: 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;
|
|
@@ -127,11 +127,11 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
-
tenantId: string;
|
|
131
130
|
createdAt: string;
|
|
132
131
|
updatedAt: string;
|
|
133
|
-
projectId: 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;
|
|
@@ -146,11 +146,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
tenantId: string;
|
|
150
149
|
createdAt: string;
|
|
151
150
|
updatedAt: string;
|
|
152
|
-
projectId: 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;
|
|
@@ -160,11 +160,11 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
tenantId: string;
|
|
164
163
|
createdAt: string;
|
|
165
164
|
updatedAt: string;
|
|
166
|
-
projectId: 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;
|
|
@@ -205,17 +205,17 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
tenantId: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
211
|
-
|
|
210
|
+
headers: Record<string, string> | null;
|
|
212
211
|
agentId: string;
|
|
212
|
+
projectId: string;
|
|
213
|
+
tenantId: string;
|
|
214
|
+
subAgentId: string;
|
|
213
215
|
toolId: string;
|
|
214
|
-
headers: Record<string, string> | null;
|
|
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: {
|
|
@@ -249,17 +249,17 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
tenantId: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
255
|
-
|
|
254
|
+
headers: Record<string, string> | null;
|
|
256
255
|
agentId: string;
|
|
256
|
+
projectId: string;
|
|
257
|
+
tenantId: string;
|
|
258
|
+
subAgentId: string;
|
|
257
259
|
toolId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
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: {
|
|
@@ -10,12 +10,12 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
projectId: 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>;
|
|
@@ -45,12 +45,12 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
tenantId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
|
-
projectId: 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
|
}[]>;
|
|
@@ -58,12 +58,12 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
tenantId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
|
-
projectId: 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
|
}[]>;
|
|
@@ -223,12 +223,12 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
tenantId: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
229
|
-
projectId: 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
|
}>;
|
|
@@ -240,12 +240,12 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
242
|
id: string;
|
|
243
|
-
tenantId: string;
|
|
244
243
|
createdAt: string;
|
|
245
244
|
updatedAt: string;
|
|
246
|
-
projectId: 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>;
|
|
@@ -261,12 +261,12 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
263
|
id: string;
|
|
264
|
-
tenantId: string;
|
|
265
264
|
createdAt: string;
|
|
266
265
|
updatedAt: string;
|
|
267
|
-
projectId: 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
|
-
description: string | null;
|
|
13
12
|
id: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
createdAt: string;
|
|
16
13
|
name: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
agentId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: string;
|
|
17
20
|
models: {
|
|
18
21
|
base?: {
|
|
19
22
|
model?: string | undefined;
|
|
@@ -34,23 +37,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
34
37
|
allowedProviders?: string[] | undefined;
|
|
35
38
|
} | undefined;
|
|
36
39
|
} | null;
|
|
40
|
+
prompt: string | null;
|
|
37
41
|
stopWhen: {
|
|
38
42
|
stepCountIs?: number | undefined;
|
|
39
43
|
} | null;
|
|
40
|
-
updatedAt: string;
|
|
41
|
-
projectId: string;
|
|
42
|
-
prompt: string | null;
|
|
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
|
-
description: string | null;
|
|
50
49
|
id: string;
|
|
51
|
-
tenantId: string;
|
|
52
|
-
createdAt: string;
|
|
53
50
|
name: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
description: string | null;
|
|
54
|
+
agentId: string;
|
|
55
|
+
projectId: string;
|
|
56
|
+
tenantId: string;
|
|
54
57
|
models: {
|
|
55
58
|
base?: {
|
|
56
59
|
model?: string | undefined;
|
|
@@ -71,13 +74,10 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
71
74
|
allowedProviders?: string[] | undefined;
|
|
72
75
|
} | undefined;
|
|
73
76
|
} | null;
|
|
77
|
+
prompt: string | null;
|
|
74
78
|
stopWhen: {
|
|
75
79
|
stepCountIs?: number | undefined;
|
|
76
80
|
} | null;
|
|
77
|
-
updatedAt: string;
|
|
78
|
-
projectId: string;
|
|
79
|
-
prompt: string | null;
|
|
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
|
-
description: string | null;
|
|
131
130
|
id: string;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
createdAt: string;
|
|
134
131
|
name: string;
|
|
132
|
+
createdAt: string;
|
|
133
|
+
updatedAt: string;
|
|
134
|
+
description: string | null;
|
|
135
|
+
agentId: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
135
138
|
models: {
|
|
136
139
|
base?: {
|
|
137
140
|
model?: string | undefined;
|
|
@@ -152,13 +155,10 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
152
155
|
allowedProviders?: string[] | undefined;
|
|
153
156
|
} | undefined;
|
|
154
157
|
} | null;
|
|
158
|
+
prompt: string | null;
|
|
155
159
|
stopWhen: {
|
|
156
160
|
stepCountIs?: number | undefined;
|
|
157
161
|
} | null;
|
|
158
|
-
updatedAt: string;
|
|
159
|
-
projectId: string;
|
|
160
|
-
prompt: string | null;
|
|
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
|
-
description: string | null;
|
|
24
23
|
id: string;
|
|
25
|
-
tenantId: string;
|
|
26
|
-
createdAt: string;
|
|
27
24
|
name: string;
|
|
25
|
+
createdAt: string;
|
|
28
26
|
updatedAt: string;
|
|
29
|
-
|
|
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
|
-
description: string | null;
|
|
82
81
|
id: string;
|
|
83
|
-
tenantId: string;
|
|
84
|
-
createdAt: string;
|
|
85
82
|
name: string;
|
|
83
|
+
createdAt: string;
|
|
86
84
|
updatedAt: string;
|
|
87
|
-
|
|
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;
|
|
@@ -136,17 +136,17 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
tenantId: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
142
|
-
|
|
141
|
+
headers: Record<string, string> | null;
|
|
143
142
|
agentId: string;
|
|
143
|
+
projectId: string;
|
|
144
|
+
tenantId: string;
|
|
145
|
+
subAgentId: string;
|
|
144
146
|
toolId: string;
|
|
145
|
-
headers: Record<string, string> | null;
|
|
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: {
|
|
@@ -155,17 +155,17 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
161
|
-
|
|
160
|
+
headers: Record<string, string> | null;
|
|
162
161
|
agentId: string;
|
|
162
|
+
projectId: string;
|
|
163
|
+
tenantId: string;
|
|
164
|
+
subAgentId: string;
|
|
163
165
|
toolId: string;
|
|
164
|
-
headers: Record<string, string> | null;
|
|
165
166
|
toolPolicies: Record<string, {
|
|
166
167
|
needsApproval?: boolean;
|
|
167
168
|
}> | null;
|
|
168
|
-
subAgentId: string;
|
|
169
169
|
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
@@ -183,17 +183,17 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
tenantId: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
189
|
-
|
|
188
|
+
headers: Record<string, string> | null;
|
|
190
189
|
agentId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
tenantId: string;
|
|
192
|
+
subAgentId: string;
|
|
191
193
|
toolId: string;
|
|
192
|
-
headers: Record<string, string> | null;
|
|
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
|
-
description: string | null;
|
|
206
205
|
id: string;
|
|
207
|
-
tenantId: string;
|
|
208
|
-
createdAt: string;
|
|
209
206
|
name: string;
|
|
207
|
+
createdAt: string;
|
|
210
208
|
updatedAt: string;
|
|
211
|
-
|
|
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;
|
|
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
37
37
|
authentication: unknown;
|
|
38
38
|
signingSecretCredentialReferenceId: string | null;
|
|
39
39
|
signatureVerification: {
|
|
40
|
-
algorithm: "
|
|
41
|
-
encoding: "
|
|
40
|
+
algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
|
|
41
|
+
encoding: "base64" | "hex";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -9,13 +9,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
createdAt: string;
|
|
14
12
|
name: string | null;
|
|
13
|
+
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
|
-
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
15
|
expiresAt: string | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -23,13 +23,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
25
|
id: string;
|
|
26
|
-
tenantId: string;
|
|
27
|
-
createdAt: string;
|
|
28
26
|
name: string | null;
|
|
27
|
+
createdAt: string;
|
|
29
28
|
updatedAt: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
agentId: string;
|
|
32
29
|
expiresAt: string | null;
|
|
30
|
+
agentId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
tenantId: string;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -40,13 +40,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
id: string;
|
|
43
|
-
tenantId: string;
|
|
44
|
-
createdAt: string;
|
|
45
43
|
name: string | null;
|
|
44
|
+
createdAt: string;
|
|
46
45
|
updatedAt: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
46
|
expiresAt: string | null;
|
|
47
|
+
agentId: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -67,13 +67,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
69
|
id: string;
|
|
70
|
-
tenantId: string;
|
|
71
|
-
createdAt: string;
|
|
72
70
|
name: string | null;
|
|
71
|
+
createdAt: string;
|
|
73
72
|
updatedAt: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
agentId: string;
|
|
76
73
|
expiresAt: string | null;
|
|
74
|
+
agentId: string;
|
|
75
|
+
projectId: string;
|
|
76
|
+
tenantId: string;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -5,15 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
-
type: AppType;
|
|
9
|
-
description: string | null;
|
|
10
8
|
id: string;
|
|
11
|
-
tenantId: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
9
|
name: string;
|
|
10
|
+
createdAt: string;
|
|
14
11
|
updatedAt: string;
|
|
15
|
-
|
|
12
|
+
description: string | null;
|
|
16
13
|
enabled: boolean;
|
|
14
|
+
type: AppType;
|
|
15
|
+
projectId: string | null;
|
|
16
|
+
tenantId: string | null;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
@@ -61,15 +61,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
64
|
-
type: AppType;
|
|
65
|
-
description: string | null;
|
|
66
64
|
id: string;
|
|
67
|
-
tenantId: string | null;
|
|
68
|
-
createdAt: string;
|
|
69
65
|
name: string;
|
|
66
|
+
createdAt: string;
|
|
70
67
|
updatedAt: string;
|
|
71
|
-
|
|
68
|
+
description: string | null;
|
|
72
69
|
enabled: boolean;
|
|
70
|
+
type: AppType;
|
|
71
|
+
projectId: string | null;
|
|
72
|
+
tenantId: string | null;
|
|
73
73
|
prompt: string | null;
|
|
74
74
|
config: {
|
|
75
75
|
type: "web_client";
|