@inkeep/agents-core 0.53.7 → 0.53.9
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/auth/auth-schema.d.ts +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +11 -9
- package/dist/auth/auth.js +12 -3
- package/dist/auth/cleanup.d.ts +12 -0
- package/dist/auth/cleanup.js +43 -0
- package/dist/auth/init.js +12 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +1 -1
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +35 -35
- package/dist/data-access/manage/agents.js +3 -1
- package/dist/data-access/manage/artifactComponents.d.ts +20 -20
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +20 -20
- package/dist/data-access/manage/scheduledTriggers.d.ts +12 -1
- package/dist/data-access/manage/scheduledTriggers.js +8 -1
- package/dist/data-access/manage/skills.d.ts +19 -19
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +36 -36
- package/dist/data-access/manage/tools.js +2 -2
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +393 -355
- package/dist/db/manage/manage-schema.js +2 -0
- package/dist/db/runtime/runtime-schema.d.ts +262 -262
- package/dist/dolt/index.d.ts +2 -2
- package/dist/dolt/index.js +2 -2
- package/dist/dolt/ref-helpers.d.ts +5 -1
- package/dist/dolt/ref-helpers.js +20 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/setup/setup.js +19 -5
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
- package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/validation/schemas.d.ts +1776 -1658
- package/dist/validation/schemas.js +6 -2
- package/drizzle/manage/0011_smooth_whizzer.sql +2 -0
- package/drizzle/manage/meta/0011_snapshot.json +3685 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +3 -3
|
@@ -9,11 +9,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
projectId: string;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
name: string;
|
|
16
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
17
19
|
props: {
|
|
18
20
|
[x: string]: unknown;
|
|
19
21
|
type: "object";
|
|
@@ -26,8 +28,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
26
28
|
component: string;
|
|
27
29
|
mockData: Record<string, unknown>;
|
|
28
30
|
} | null;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
updatedAt: string;
|
|
31
31
|
} | undefined>;
|
|
32
32
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: ProjectScopeConfig;
|
|
@@ -65,11 +65,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
projectId: string;
|
|
69
|
-
tenantId: string;
|
|
70
|
-
description: string | null;
|
|
71
|
-
name: string;
|
|
72
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string | null;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
73
75
|
props: {
|
|
74
76
|
[x: string]: unknown;
|
|
75
77
|
type: "object";
|
|
@@ -82,8 +84,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
82
84
|
component: string;
|
|
83
85
|
mockData: Record<string, unknown>;
|
|
84
86
|
} | null;
|
|
85
|
-
createdAt: string;
|
|
86
|
-
updatedAt: string;
|
|
87
87
|
}>;
|
|
88
88
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
89
89
|
scopes: ProjectScopeConfig;
|
|
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
scopes: SubAgentScopeConfig;
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
|
-
agentId: string;
|
|
145
|
-
projectId: string;
|
|
146
|
-
tenantId: string;
|
|
147
|
-
subAgentId: string;
|
|
148
144
|
id: string;
|
|
149
145
|
createdAt: string;
|
|
146
|
+
tenantId: string;
|
|
147
|
+
projectId: string;
|
|
148
|
+
agentId: string;
|
|
149
|
+
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
scopes: SubAgentScopeConfig;
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
|
-
agentId: string;
|
|
188
|
-
projectId: string;
|
|
189
|
-
tenantId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
187
|
id: string;
|
|
192
188
|
createdAt: string;
|
|
189
|
+
tenantId: string;
|
|
190
|
+
projectId: string;
|
|
191
|
+
agentId: string;
|
|
192
|
+
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -9,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
headersSchema: unknown;
|
|
19
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
|
-
agentId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
tenantId: string;
|
|
27
24
|
id: string;
|
|
28
25
|
createdAt: string;
|
|
29
26
|
updatedAt: string;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
30
29
|
headersSchema: unknown;
|
|
31
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
32
32
|
}[]>;
|
|
33
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
34
|
scopes: AgentScopeConfig;
|
|
@@ -43,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
|
-
agentId: string;
|
|
47
|
-
projectId: string;
|
|
48
|
-
tenantId: string;
|
|
49
46
|
id: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
52
51
|
headersSchema: unknown;
|
|
53
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
54
54
|
}>;
|
|
55
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
56
56
|
scopes: AgentScopeConfig;
|
|
@@ -83,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
|
-
agentId: string;
|
|
87
|
-
projectId: string;
|
|
88
|
-
tenantId: string;
|
|
89
86
|
id: string;
|
|
90
87
|
createdAt: string;
|
|
91
88
|
updatedAt: string;
|
|
89
|
+
tenantId: string;
|
|
90
|
+
projectId: string;
|
|
92
91
|
headersSchema: unknown;
|
|
93
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
+
agentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
//#endregion
|
|
96
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
scopes: SubAgentScopeConfig;
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
-
agentId: string;
|
|
69
|
-
projectId: string;
|
|
70
|
-
tenantId: string;
|
|
71
|
-
subAgentId: string;
|
|
72
68
|
id: string;
|
|
73
69
|
createdAt: string;
|
|
70
|
+
tenantId: string;
|
|
71
|
+
projectId: string;
|
|
72
|
+
agentId: string;
|
|
73
|
+
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
scopes: SubAgentScopeConfig;
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
|
-
agentId: string;
|
|
111
|
-
projectId: string;
|
|
112
|
-
tenantId: string;
|
|
113
|
-
subAgentId: string;
|
|
114
110
|
id: string;
|
|
115
111
|
createdAt: string;
|
|
112
|
+
tenantId: string;
|
|
113
|
+
projectId: string;
|
|
114
|
+
agentId: string;
|
|
115
|
+
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
agentId: string;
|
|
57
|
-
projectId: string;
|
|
58
|
-
tenantId: string;
|
|
59
|
-
description: string | null;
|
|
60
|
-
name: string;
|
|
61
56
|
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string | null;
|
|
62
59
|
createdAt: string;
|
|
63
60
|
updatedAt: string;
|
|
61
|
+
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: 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
|
-
agentId: string;
|
|
99
|
-
projectId: string;
|
|
100
|
-
tenantId: string;
|
|
101
|
-
description: string | null;
|
|
102
|
-
name: string;
|
|
103
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
description: string | null;
|
|
104
101
|
createdAt: string;
|
|
105
102
|
updatedAt: string;
|
|
103
|
+
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
needsApproval?: boolean;
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
|
-
agentId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
tenantId: string;
|
|
167
|
-
subAgentId: string;
|
|
168
164
|
id: string;
|
|
169
165
|
createdAt: string;
|
|
170
166
|
updatedAt: string;
|
|
171
|
-
|
|
167
|
+
tenantId: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: string;
|
|
170
|
+
subAgentId: string;
|
|
172
171
|
toolPolicies: Record<string, {
|
|
173
172
|
needsApproval?: boolean;
|
|
174
173
|
}> | null;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
needsApproval?: boolean;
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
agentId: string;
|
|
230
|
-
projectId: string;
|
|
231
|
-
tenantId: string;
|
|
232
|
-
subAgentId: string;
|
|
233
229
|
id: string;
|
|
234
230
|
createdAt: string;
|
|
235
231
|
updatedAt: string;
|
|
236
|
-
|
|
232
|
+
tenantId: string;
|
|
233
|
+
projectId: string;
|
|
234
|
+
agentId: string;
|
|
235
|
+
subAgentId: string;
|
|
237
236
|
toolPolicies: Record<string, {
|
|
238
237
|
needsApproval?: boolean;
|
|
239
238
|
}> | null;
|
|
239
|
+
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -30,6 +30,8 @@ declare const listScheduledTriggersPaginated: (db: AgentsManageDatabaseClient) =
|
|
|
30
30
|
maxRetries: number;
|
|
31
31
|
retryDelaySeconds: number;
|
|
32
32
|
timeoutSeconds: number;
|
|
33
|
+
runAsUserId: string | null;
|
|
34
|
+
createdBy: string | null;
|
|
33
35
|
name: string;
|
|
34
36
|
description: string | null;
|
|
35
37
|
agentId: string;
|
|
@@ -70,6 +72,15 @@ declare const upsertScheduledTrigger: (db: AgentsManageDatabaseClient) => (param
|
|
|
70
72
|
scopes: AgentScopeConfig;
|
|
71
73
|
data: ScheduledTriggerInsert;
|
|
72
74
|
}) => Promise<ScheduledTrigger>;
|
|
75
|
+
/**
|
|
76
|
+
* Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
|
|
77
|
+
* Operates across all agents in the project (not agent-scoped).
|
|
78
|
+
*/
|
|
79
|
+
declare const deleteScheduledTriggersByRunAsUserId: (db: AgentsManageDatabaseClient) => (params: {
|
|
80
|
+
tenantId: string;
|
|
81
|
+
projectId: string;
|
|
82
|
+
runAsUserId: string;
|
|
83
|
+
}) => Promise<void>;
|
|
73
84
|
/**
|
|
74
85
|
* List all scheduled triggers for an agent (non-paginated, used by agentFull)
|
|
75
86
|
*/
|
|
@@ -77,4 +88,4 @@ declare const listScheduledTriggers: (db: AgentsManageDatabaseClient) => (params
|
|
|
77
88
|
scopes: AgentScopeConfig;
|
|
78
89
|
}) => Promise<ScheduledTrigger[]>;
|
|
79
90
|
//#endregion
|
|
80
|
-
export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
|
|
91
|
+
export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
|
|
@@ -66,6 +66,13 @@ const upsertScheduledTrigger = (db) => async (params) => {
|
|
|
66
66
|
return await createScheduledTrigger(db)(params.data);
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
|
+
* Delete all scheduled triggers for a given runAsUserId within a tenant+project scope.
|
|
70
|
+
* Operates across all agents in the project (not agent-scoped).
|
|
71
|
+
*/
|
|
72
|
+
const deleteScheduledTriggersByRunAsUserId = (db) => async (params) => {
|
|
73
|
+
await db.delete(scheduledTriggers).where(and(eq(scheduledTriggers.tenantId, params.tenantId), eq(scheduledTriggers.projectId, params.projectId), eq(scheduledTriggers.runAsUserId, params.runAsUserId)));
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
69
76
|
* List all scheduled triggers for an agent (non-paginated, used by agentFull)
|
|
70
77
|
*/
|
|
71
78
|
const listScheduledTriggers = (db) => async (params) => {
|
|
@@ -73,4 +80,4 @@ const listScheduledTriggers = (db) => async (params) => {
|
|
|
73
80
|
};
|
|
74
81
|
|
|
75
82
|
//#endregion
|
|
76
|
-
export { createScheduledTrigger, deleteScheduledTrigger, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
|
|
83
|
+
export { createScheduledTrigger, deleteScheduledTrigger, deleteScheduledTriggersByRunAsUserId, getScheduledTriggerById, listScheduledTriggers, listScheduledTriggersPaginated, updateScheduledTrigger, upsertScheduledTrigger };
|
|
@@ -8,14 +8,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
skillId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
projectId: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
description: string;
|
|
14
|
-
name: string;
|
|
15
|
-
content: string;
|
|
16
11
|
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
17
14
|
createdAt: string;
|
|
18
15
|
updatedAt: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
content: string;
|
|
19
19
|
metadata: Record<string, string> | null;
|
|
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
|
-
projectId: string;
|
|
45
|
-
tenantId: string;
|
|
46
|
-
description: string;
|
|
47
|
-
name: string;
|
|
48
|
-
content: string;
|
|
49
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
50
47
|
createdAt: string;
|
|
51
48
|
updatedAt: string;
|
|
49
|
+
tenantId: string;
|
|
50
|
+
projectId: string;
|
|
51
|
+
content: string;
|
|
52
52
|
metadata: Record<string, string> | null;
|
|
53
53
|
}>;
|
|
54
54
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
55
|
-
projectId: string;
|
|
56
|
-
tenantId: string;
|
|
57
|
-
description: string;
|
|
58
|
-
name: string;
|
|
59
|
-
content: string;
|
|
60
55
|
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
description: string;
|
|
61
58
|
createdAt: string;
|
|
62
59
|
updatedAt: string;
|
|
60
|
+
tenantId: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
content: string;
|
|
63
63
|
metadata: Record<string, string> | null;
|
|
64
64
|
}>;
|
|
65
65
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -91,16 +91,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
index: number;
|
|
92
92
|
alwaysLoaded?: boolean;
|
|
93
93
|
}) => Promise<{
|
|
94
|
-
agentId: string;
|
|
95
|
-
projectId: string;
|
|
96
|
-
tenantId: string;
|
|
97
|
-
subAgentId: string;
|
|
98
94
|
id: string;
|
|
99
95
|
createdAt: string;
|
|
100
96
|
updatedAt: string;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
projectId: string;
|
|
99
|
+
agentId: string;
|
|
101
100
|
skillId: string;
|
|
102
101
|
index: number;
|
|
103
102
|
alwaysLoaded: boolean;
|
|
103
|
+
subAgentId: string;
|
|
104
104
|
}>;
|
|
105
105
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
106
106
|
scopes: AgentScopeConfig;
|
|
@@ -9,13 +9,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
subAgentId: string;
|
|
16
12
|
id: string;
|
|
17
13
|
createdAt: string;
|
|
18
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
@@ -44,26 +44,26 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
subAgentId: string;
|
|
51
47
|
id: string;
|
|
52
48
|
createdAt: string;
|
|
53
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
|
+
subAgentId: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
subAgentId: string;
|
|
64
60
|
id: string;
|
|
65
61
|
createdAt: string;
|
|
66
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
|
+
subAgentId: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
@@ -180,13 +180,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
180
180
|
headers?: Record<string, string> | null;
|
|
181
181
|
};
|
|
182
182
|
}) => Promise<{
|
|
183
|
-
agentId: string;
|
|
184
|
-
projectId: string;
|
|
185
|
-
tenantId: string;
|
|
186
|
-
subAgentId: string;
|
|
187
183
|
id: string;
|
|
188
184
|
createdAt: string;
|
|
189
185
|
updatedAt: string;
|
|
186
|
+
tenantId: string;
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
189
|
+
subAgentId: string;
|
|
190
190
|
headers: Record<string, string> | null;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
@@ -197,13 +197,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
197
197
|
scopes: SubAgentScopeConfig;
|
|
198
198
|
externalAgentId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
agentId: string;
|
|
201
|
-
projectId: string;
|
|
202
|
-
tenantId: string;
|
|
203
|
-
subAgentId: string;
|
|
204
200
|
id: string;
|
|
205
201
|
createdAt: string;
|
|
206
202
|
updatedAt: string;
|
|
203
|
+
tenantId: string;
|
|
204
|
+
projectId: string;
|
|
205
|
+
agentId: string;
|
|
206
|
+
subAgentId: string;
|
|
207
207
|
headers: Record<string, string> | null;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
@@ -218,13 +218,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
218
218
|
headers?: Record<string, string> | null;
|
|
219
219
|
};
|
|
220
220
|
}) => Promise<{
|
|
221
|
-
agentId: string;
|
|
222
|
-
projectId: string;
|
|
223
|
-
tenantId: string;
|
|
224
|
-
subAgentId: string;
|
|
225
221
|
id: string;
|
|
226
222
|
createdAt: string;
|
|
227
223
|
updatedAt: string;
|
|
224
|
+
tenantId: string;
|
|
225
|
+
projectId: string;
|
|
226
|
+
agentId: string;
|
|
227
|
+
subAgentId: string;
|
|
228
228
|
headers: Record<string, string> | null;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
@@ -9,12 +9,12 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
agentId: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
tenantId: string;
|
|
15
12
|
id: string;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
sourceSubAgentId: string;
|
|
19
19
|
targetSubAgentId: string | null;
|
|
20
20
|
relationType: string | null;
|
|
@@ -44,12 +44,12 @@ declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
44
44
|
declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
agentId: string;
|
|
48
|
-
projectId: string;
|
|
49
|
-
tenantId: string;
|
|
50
47
|
id: string;
|
|
51
48
|
createdAt: string;
|
|
52
49
|
updatedAt: string;
|
|
50
|
+
tenantId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
53
53
|
sourceSubAgentId: string;
|
|
54
54
|
targetSubAgentId: string | null;
|
|
55
55
|
relationType: string | null;
|
|
@@ -57,12 +57,12 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
agentId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
tenantId: string;
|
|
63
60
|
id: string;
|
|
64
61
|
createdAt: string;
|
|
65
62
|
updatedAt: string;
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
66
66
|
sourceSubAgentId: string;
|
|
67
67
|
targetSubAgentId: string | null;
|
|
68
68
|
relationType: string | null;
|
|
@@ -126,12 +126,12 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
126
126
|
}[];
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
|
-
agentId: string;
|
|
130
|
-
projectId: string;
|
|
131
|
-
tenantId: string;
|
|
132
129
|
id: string;
|
|
133
130
|
createdAt: string;
|
|
134
131
|
updatedAt: string;
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
134
|
+
agentId: string;
|
|
135
135
|
sourceSubAgentId: string;
|
|
136
136
|
targetSubAgentId: string | null;
|
|
137
137
|
relationType: string | null;
|
|
@@ -145,12 +145,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
145
145
|
targetSubAgentId?: string;
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
|
-
agentId: string;
|
|
149
|
-
projectId: string;
|
|
150
|
-
tenantId: string;
|
|
151
148
|
id: string;
|
|
152
149
|
createdAt: string;
|
|
153
150
|
updatedAt: string;
|
|
151
|
+
tenantId: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
agentId: string;
|
|
154
154
|
sourceSubAgentId: string;
|
|
155
155
|
targetSubAgentId: string | null;
|
|
156
156
|
relationType: string | null;
|
|
@@ -159,12 +159,12 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
159
159
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
|
-
agentId: string;
|
|
163
|
-
projectId: string;
|
|
164
|
-
tenantId: string;
|
|
165
162
|
id: string;
|
|
166
163
|
createdAt: string;
|
|
167
164
|
updatedAt: string;
|
|
165
|
+
tenantId: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
sourceSubAgentId: string;
|
|
169
169
|
targetSubAgentId: string | null;
|
|
170
170
|
relationType: string | null;
|
|
@@ -204,19 +204,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
agentId: string;
|
|
208
|
-
projectId: string;
|
|
209
|
-
tenantId: string;
|
|
210
|
-
subAgentId: string;
|
|
211
207
|
id: string;
|
|
212
208
|
createdAt: string;
|
|
213
209
|
updatedAt: string;
|
|
214
|
-
|
|
210
|
+
tenantId: string;
|
|
211
|
+
projectId: string;
|
|
212
|
+
agentId: string;
|
|
215
213
|
toolId: string;
|
|
214
|
+
subAgentId: string;
|
|
215
|
+
headers: Record<string, string> | null;
|
|
216
|
+
selectedTools: string[] | null;
|
|
216
217
|
toolPolicies: Record<string, {
|
|
217
218
|
needsApproval?: boolean;
|
|
218
219
|
}> | null;
|
|
219
|
-
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -248,19 +248,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
agentId: string;
|
|
252
|
-
projectId: string;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
subAgentId: string;
|
|
255
251
|
id: string;
|
|
256
252
|
createdAt: string;
|
|
257
253
|
updatedAt: string;
|
|
258
|
-
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
agentId: string;
|
|
259
257
|
toolId: string;
|
|
258
|
+
subAgentId: string;
|
|
259
|
+
headers: Record<string, string> | null;
|
|
260
|
+
selectedTools: string[] | null;
|
|
260
261
|
toolPolicies: Record<string, {
|
|
261
262
|
needsApproval?: boolean;
|
|
262
263
|
}> | null;
|
|
263
|
-
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|