@inkeep/agents-core 0.78.0 → 0.78.2
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 +163 -163
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.js +7 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +3 -1
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +9 -9
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/events.d.ts +6 -6
- 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/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +387 -387
- package/dist/db/runtime/runtime-schema.d.ts +419 -419
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types/utility.d.ts +1 -0
- package/dist/utils/cache-debug-walk.d.ts +4 -9
- package/dist/utils/cache-debug-walk.js +4 -23
- package/dist/utils/cache-state.d.ts +1 -5
- package/dist/utils/cache-state.js +3 -4
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/usage-cost-middleware.d.ts +7 -1
- package/dist/utils/usage-cost-middleware.js +21 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +36 -36
- package/dist/validation/schemas.d.ts +2360 -2360
- package/package.json +1 -1
package/dist/auth/auth.js
CHANGED
|
@@ -155,6 +155,13 @@ function createAuth(config) {
|
|
|
155
155
|
"email",
|
|
156
156
|
"offline_access"
|
|
157
157
|
],
|
|
158
|
+
allowDynamicClientRegistration: true,
|
|
159
|
+
allowUnauthenticatedClientRegistration: true,
|
|
160
|
+
validAudiences: [
|
|
161
|
+
config.baseURL,
|
|
162
|
+
`${config.baseURL}/`,
|
|
163
|
+
`${config.baseURL}/mcp`
|
|
164
|
+
],
|
|
158
165
|
customAccessTokenClaims: async ({ user }) => {
|
|
159
166
|
if (!user) return {};
|
|
160
167
|
const org = await getInitialOrganization(config.dbClient, user.id);
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
9
|
-
actions: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
12
|
+
statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
16
|
-
actions: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
19
|
+
statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
23
|
-
actions: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins7.Subset<"project" | "organization" | "
|
|
26
|
+
statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -83,6 +83,7 @@ declare const SPAN_KEYS: {
|
|
|
83
83
|
readonly GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS: "gen_ai.usage.cache_creation.input_tokens";
|
|
84
84
|
readonly CACHE_INTENT_MARKER_COUNT: "cache.intent.marker_count";
|
|
85
85
|
readonly CACHE_INTENT_PREFIX_SIGNATURE: "cache.intent.prefix_signature";
|
|
86
|
+
readonly CACHE_INTENT_HISTORY_MARKER_COUNT: "cache.intent.history_marker_count";
|
|
86
87
|
readonly GEN_AI_REQUEST_PROVIDER: "gen_ai.request.provider";
|
|
87
88
|
readonly GEN_AI_RESPONSE_PROVIDER: "gen_ai.response.provider";
|
|
88
89
|
readonly CONTEXT_URL: "context.url";
|
|
@@ -83,6 +83,7 @@ const SPAN_KEYS = {
|
|
|
83
83
|
GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS: "gen_ai.usage.cache_creation.input_tokens",
|
|
84
84
|
CACHE_INTENT_MARKER_COUNT: "cache.intent.marker_count",
|
|
85
85
|
CACHE_INTENT_PREFIX_SIGNATURE: "cache.intent.prefix_signature",
|
|
86
|
+
CACHE_INTENT_HISTORY_MARKER_COUNT: "cache.intent.history_marker_count",
|
|
86
87
|
GEN_AI_REQUEST_PROVIDER: "gen_ai.request.provider",
|
|
87
88
|
GEN_AI_RESPONSE_PROVIDER: "gen_ai.response.provider",
|
|
88
89
|
CONTEXT_URL: "context.url",
|
|
@@ -95,6 +95,8 @@ declare const QUERY_DEFAULTS: {
|
|
|
95
95
|
readonly STEP_INTERVAL: 60;
|
|
96
96
|
readonly DISABLED: false;
|
|
97
97
|
readonly LIMIT_UNLIMITED: 10000;
|
|
98
|
+
readonly CONVERSATION_ACTIVITY_PAGE_SIZE: 10000;
|
|
99
|
+
readonly CONVERSATION_ACTIVITY_MAX_PAGES: 10;
|
|
98
100
|
};
|
|
99
101
|
//#endregion
|
|
100
102
|
export { FIELD_CONTEXTS, FIELD_DATA_TYPES, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, REQUEST_TYPES, SIGNALS, buildFilterExpression, buildOrExpression };
|
|
@@ -120,7 +120,9 @@ const ORDER_DIRECTIONS = {
|
|
|
120
120
|
const QUERY_DEFAULTS = {
|
|
121
121
|
STEP_INTERVAL: 60,
|
|
122
122
|
DISABLED: false,
|
|
123
|
-
LIMIT_UNLIMITED: 1e4
|
|
123
|
+
LIMIT_UNLIMITED: 1e4,
|
|
124
|
+
CONVERSATION_ACTIVITY_PAGE_SIZE: 1e4,
|
|
125
|
+
CONVERSATION_ACTIVITY_MAX_PAGES: 10
|
|
124
126
|
};
|
|
125
127
|
|
|
126
128
|
//#endregion
|
|
@@ -10,9 +10,9 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
id: string;
|
|
13
14
|
name: string;
|
|
14
15
|
description: string | null;
|
|
15
|
-
id: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
projectId: string;
|
|
@@ -41,8 +41,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
41
41
|
transferCountIs?: number | undefined;
|
|
42
42
|
} | null;
|
|
43
43
|
prompt: string | null;
|
|
44
|
-
contextConfigId: string | null;
|
|
45
44
|
defaultSubAgentId: string | null;
|
|
45
|
+
contextConfigId: string | null;
|
|
46
46
|
statusUpdates: {
|
|
47
47
|
enabled?: boolean | undefined;
|
|
48
48
|
numEvents?: number | undefined;
|
|
@@ -63,9 +63,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
+
id: string;
|
|
66
67
|
name: string;
|
|
67
68
|
description: string | null;
|
|
68
|
-
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
70
|
updatedAt: string;
|
|
71
71
|
projectId: string;
|
|
@@ -94,8 +94,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
94
94
|
transferCountIs?: number | undefined;
|
|
95
95
|
} | null;
|
|
96
96
|
prompt: string | null;
|
|
97
|
-
contextConfigId: string | null;
|
|
98
97
|
defaultSubAgentId: string | null;
|
|
98
|
+
contextConfigId: string | null;
|
|
99
99
|
statusUpdates: {
|
|
100
100
|
enabled?: boolean | undefined;
|
|
101
101
|
numEvents?: number | undefined;
|
|
@@ -113,10 +113,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
113
113
|
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
+
id: string;
|
|
116
117
|
name: string;
|
|
117
118
|
description: string | null;
|
|
118
|
-
id: string;
|
|
119
|
-
agentId: string;
|
|
120
119
|
createdAt: string;
|
|
121
120
|
updatedAt: string;
|
|
122
121
|
projectId: string;
|
|
@@ -144,6 +143,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
144
143
|
stopWhen: {
|
|
145
144
|
stepCountIs?: number | undefined;
|
|
146
145
|
} | null;
|
|
146
|
+
agentId: string;
|
|
147
147
|
prompt: string | null;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
outputContract: {
|
|
@@ -160,9 +160,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
160
160
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
161
161
|
scopes: ProjectScopeConfig;
|
|
162
162
|
}) => Promise<{
|
|
163
|
+
id: string;
|
|
163
164
|
name: string;
|
|
164
165
|
description: string | null;
|
|
165
|
-
id: string;
|
|
166
166
|
createdAt: string;
|
|
167
167
|
updatedAt: string;
|
|
168
168
|
projectId: string;
|
|
@@ -191,8 +191,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
191
191
|
transferCountIs?: number | undefined;
|
|
192
192
|
} | null;
|
|
193
193
|
prompt: string | null;
|
|
194
|
-
contextConfigId: string | null;
|
|
195
194
|
defaultSubAgentId: string | null;
|
|
195
|
+
contextConfigId: string | null;
|
|
196
196
|
statusUpdates: {
|
|
197
197
|
enabled?: boolean | undefined;
|
|
198
198
|
numEvents?: number | undefined;
|
|
@@ -290,9 +290,9 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
290
290
|
projectIds: string[];
|
|
291
291
|
}): Promise<AvailableAgentInfo[]>;
|
|
292
292
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
293
|
+
id: string;
|
|
293
294
|
name: string;
|
|
294
295
|
description: string | null;
|
|
295
|
-
id: string;
|
|
296
296
|
createdAt: string;
|
|
297
297
|
updatedAt: string;
|
|
298
298
|
projectId: string;
|
|
@@ -321,8 +321,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
321
321
|
transferCountIs?: number | undefined;
|
|
322
322
|
} | null;
|
|
323
323
|
prompt: string | null;
|
|
324
|
-
contextConfigId: string | null;
|
|
325
324
|
defaultSubAgentId: string | null;
|
|
325
|
+
contextConfigId: string | null;
|
|
326
326
|
statusUpdates: {
|
|
327
327
|
enabled?: boolean | undefined;
|
|
328
328
|
numEvents?: number | undefined;
|
|
@@ -9,9 +9,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
id: string;
|
|
12
13
|
name: string;
|
|
13
14
|
description: string | null;
|
|
14
|
-
id: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
projectId: string;
|
|
@@ -65,9 +65,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
+
id: string;
|
|
68
69
|
name: string;
|
|
69
70
|
description: string | null;
|
|
70
|
-
id: string;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
73
|
projectId: string;
|
|
@@ -142,10 +142,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
142
142
|
artifactComponentId: string;
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
id: string;
|
|
145
|
-
agentId: string;
|
|
146
145
|
createdAt: string;
|
|
147
146
|
projectId: string;
|
|
148
147
|
tenantId: string;
|
|
148
|
+
agentId: string;
|
|
149
149
|
subAgentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -185,10 +185,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
185
185
|
artifactComponentId: string;
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
id: string;
|
|
188
|
-
agentId: string;
|
|
189
188
|
createdAt: string;
|
|
190
189
|
projectId: string;
|
|
191
190
|
tenantId: string;
|
|
191
|
+
agentId: string;
|
|
192
192
|
subAgentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -10,11 +10,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
18
18
|
headersSchema: unknown;
|
|
19
19
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
20
20
|
} | undefined>;
|
|
@@ -22,11 +22,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
id: string;
|
|
25
|
-
agentId: string;
|
|
26
25
|
createdAt: string;
|
|
27
26
|
updatedAt: string;
|
|
28
27
|
projectId: string;
|
|
29
28
|
tenantId: string;
|
|
29
|
+
agentId: string;
|
|
30
30
|
headersSchema: unknown;
|
|
31
31
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
32
32
|
}[]>;
|
|
@@ -44,11 +44,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
44
44
|
}>;
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
id: string;
|
|
47
|
-
agentId: string;
|
|
48
47
|
createdAt: string;
|
|
49
48
|
updatedAt: string;
|
|
50
49
|
projectId: string;
|
|
51
50
|
tenantId: string;
|
|
51
|
+
agentId: string;
|
|
52
52
|
headersSchema: unknown;
|
|
53
53
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
54
54
|
}>;
|
|
@@ -84,11 +84,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
84
84
|
data: ContextConfigInsert;
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
id: string;
|
|
87
|
-
agentId: string;
|
|
88
87
|
createdAt: string;
|
|
89
88
|
updatedAt: string;
|
|
90
89
|
projectId: string;
|
|
91
90
|
tenantId: string;
|
|
91
|
+
agentId: string;
|
|
92
92
|
headersSchema: unknown;
|
|
93
93
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
94
94
|
}>;
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
dataComponentId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
id: string;
|
|
69
|
-
agentId: string;
|
|
70
69
|
createdAt: string;
|
|
71
70
|
projectId: string;
|
|
72
71
|
tenantId: string;
|
|
72
|
+
agentId: string;
|
|
73
73
|
subAgentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
dataComponentId: string;
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
id: string;
|
|
111
|
-
agentId: string;
|
|
112
111
|
createdAt: string;
|
|
113
112
|
projectId: string;
|
|
114
113
|
tenantId: string;
|
|
114
|
+
agentId: string;
|
|
115
115
|
subAgentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
id: string;
|
|
56
57
|
name: string;
|
|
57
58
|
description: string | null;
|
|
58
|
-
id: string;
|
|
59
|
-
agentId: string;
|
|
60
59
|
createdAt: string;
|
|
61
60
|
updatedAt: string;
|
|
62
61
|
projectId: string;
|
|
63
62
|
tenantId: 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
|
+
id: string;
|
|
98
99
|
name: string;
|
|
99
100
|
description: string | null;
|
|
100
|
-
id: string;
|
|
101
|
-
agentId: string;
|
|
102
101
|
createdAt: string;
|
|
103
102
|
updatedAt: string;
|
|
104
103
|
projectId: string;
|
|
105
104
|
tenantId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -158,11 +158,11 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
158
158
|
}> | null;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
id: string;
|
|
161
|
-
agentId: string;
|
|
162
161
|
createdAt: string;
|
|
163
162
|
updatedAt: string;
|
|
164
163
|
projectId: string;
|
|
165
164
|
tenantId: string;
|
|
165
|
+
agentId: string;
|
|
166
166
|
subAgentId: string;
|
|
167
167
|
toolPolicies: Record<string, {
|
|
168
168
|
needsApproval?: boolean;
|
|
@@ -223,11 +223,11 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
223
223
|
}> | null;
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
id: string;
|
|
226
|
-
agentId: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
229
228
|
projectId: string;
|
|
230
229
|
tenantId: string;
|
|
230
|
+
agentId: string;
|
|
231
231
|
subAgentId: string;
|
|
232
232
|
toolPolicies: Record<string, {
|
|
233
233
|
needsApproval?: boolean;
|
|
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
+
id: string;
|
|
18
19
|
name: string;
|
|
19
20
|
description: string;
|
|
20
|
-
id: string;
|
|
21
|
-
metadata: Record<string, string> | null;
|
|
22
21
|
createdAt: string;
|
|
23
22
|
updatedAt: string;
|
|
24
23
|
projectId: string;
|
|
25
24
|
tenantId: string;
|
|
25
|
+
metadata: Record<string, string> | null;
|
|
26
26
|
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
+
id: string;
|
|
113
114
|
name: string;
|
|
114
115
|
description: string;
|
|
115
|
-
id: string;
|
|
116
|
-
metadata: Record<string, string> | null;
|
|
117
116
|
createdAt: string;
|
|
118
117
|
updatedAt: string;
|
|
119
118
|
projectId: string;
|
|
120
119
|
tenantId: string;
|
|
120
|
+
metadata: Record<string, string> | null;
|
|
121
121
|
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -140,15 +140,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
140
140
|
alwaysLoaded?: boolean;
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
id: string;
|
|
143
|
-
agentId: string;
|
|
144
143
|
createdAt: string;
|
|
145
144
|
updatedAt: string;
|
|
146
145
|
projectId: string;
|
|
147
146
|
tenantId: string;
|
|
147
|
+
agentId: string;
|
|
148
148
|
subAgentId: string;
|
|
149
|
-
skillId: string;
|
|
150
149
|
index: number;
|
|
151
150
|
alwaysLoaded: boolean;
|
|
151
|
+
skillId: string;
|
|
152
152
|
}>;
|
|
153
153
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
154
154
|
scopes: AgentScopeConfig;
|
|
@@ -10,13 +10,13 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
13
|
+
headers: Record<string, string> | null;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
projectId: string;
|
|
17
17
|
tenantId: string;
|
|
18
|
+
agentId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -45,26 +45,26 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
|
|
48
|
+
headers: Record<string, string> | null;
|
|
49
49
|
createdAt: string;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
projectId: string;
|
|
52
52
|
tenantId: string;
|
|
53
|
+
agentId: string;
|
|
53
54
|
subAgentId: string;
|
|
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
60
|
id: string;
|
|
61
|
-
|
|
61
|
+
headers: Record<string, string> | null;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
projectId: string;
|
|
65
65
|
tenantId: string;
|
|
66
|
+
agentId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -187,13 +187,13 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
id: string;
|
|
190
|
-
|
|
190
|
+
headers: Record<string, string> | null;
|
|
191
191
|
createdAt: string;
|
|
192
192
|
updatedAt: string;
|
|
193
193
|
projectId: string;
|
|
194
194
|
tenantId: string;
|
|
195
|
+
agentId: string;
|
|
195
196
|
subAgentId: string;
|
|
196
|
-
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -204,13 +204,13 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
id: string;
|
|
207
|
-
|
|
207
|
+
headers: Record<string, string> | null;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
210
|
projectId: string;
|
|
211
211
|
tenantId: string;
|
|
212
|
+
agentId: string;
|
|
212
213
|
subAgentId: string;
|
|
213
|
-
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -225,13 +225,13 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
id: string;
|
|
228
|
-
|
|
228
|
+
headers: Record<string, string> | null;
|
|
229
229
|
createdAt: string;
|
|
230
230
|
updatedAt: string;
|
|
231
231
|
projectId: string;
|
|
232
232
|
tenantId: string;
|
|
233
|
+
agentId: string;
|
|
233
234
|
subAgentId: string;
|
|
234
|
-
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -10,14 +10,14 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
agentId: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
tenantId: string;
|
|
18
|
-
|
|
17
|
+
agentId: string;
|
|
19
18
|
sourceSubAgentId: string;
|
|
20
19
|
targetSubAgentId: string | null;
|
|
20
|
+
relationType: string | null;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
23
23
|
scopes: AgentScopeConfig;
|
|
@@ -45,27 +45,27 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
id: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
tenantId: string;
|
|
53
|
-
|
|
52
|
+
agentId: string;
|
|
54
53
|
sourceSubAgentId: string;
|
|
55
54
|
targetSubAgentId: string | null;
|
|
55
|
+
relationType: string | null;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
id: string;
|
|
61
|
-
agentId: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
tenantId: string;
|
|
66
|
-
|
|
65
|
+
agentId: string;
|
|
67
66
|
sourceSubAgentId: string;
|
|
68
67
|
targetSubAgentId: string | null;
|
|
68
|
+
relationType: string | null;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
71
71
|
scopes: AgentScopeConfig;
|
|
@@ -127,14 +127,14 @@ declare const getRelatedAgentsForAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
127
127
|
}>;
|
|
128
128
|
declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
129
129
|
id: string;
|
|
130
|
-
agentId: string;
|
|
131
130
|
createdAt: string;
|
|
132
131
|
updatedAt: string;
|
|
133
132
|
projectId: string;
|
|
134
133
|
tenantId: string;
|
|
135
|
-
|
|
134
|
+
agentId: string;
|
|
136
135
|
sourceSubAgentId: string;
|
|
137
136
|
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
|
|
@@ -146,28 +146,28 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
146
146
|
relationType: string;
|
|
147
147
|
}) => Promise<{
|
|
148
148
|
id: string;
|
|
149
|
-
agentId: string;
|
|
150
149
|
createdAt: string;
|
|
151
150
|
updatedAt: string;
|
|
152
151
|
projectId: string;
|
|
153
152
|
tenantId: string;
|
|
154
|
-
|
|
153
|
+
agentId: string;
|
|
155
154
|
sourceSubAgentId: string;
|
|
156
155
|
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)
|
|
160
160
|
*/
|
|
161
161
|
declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (params: SubAgentRelationInsert) => Promise<{
|
|
162
162
|
id: string;
|
|
163
|
-
agentId: string;
|
|
164
163
|
createdAt: string;
|
|
165
164
|
updatedAt: string;
|
|
166
165
|
projectId: string;
|
|
167
166
|
tenantId: string;
|
|
168
|
-
|
|
167
|
+
agentId: string;
|
|
169
168
|
sourceSubAgentId: string;
|
|
170
169
|
targetSubAgentId: string | null;
|
|
170
|
+
relationType: string | null;
|
|
171
171
|
}>;
|
|
172
172
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
173
173
|
scopes: AgentScopeConfig;
|
|
@@ -205,18 +205,18 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
207
|
id: string;
|
|
208
|
-
|
|
208
|
+
headers: Record<string, string> | null;
|
|
209
209
|
createdAt: string;
|
|
210
210
|
updatedAt: string;
|
|
211
211
|
projectId: string;
|
|
212
212
|
tenantId: string;
|
|
213
|
+
agentId: string;
|
|
213
214
|
subAgentId: string;
|
|
214
215
|
toolId: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
|
-
selectedTools: string[] | null;
|
|
217
216
|
toolPolicies: Record<string, {
|
|
218
217
|
needsApproval?: boolean;
|
|
219
218
|
}> | null;
|
|
219
|
+
selectedTools: string[] | null;
|
|
220
220
|
}>;
|
|
221
221
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
222
222
|
scopes: AgentScopeConfig;
|
|
@@ -249,18 +249,18 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
251
|
id: string;
|
|
252
|
-
|
|
252
|
+
headers: Record<string, string> | null;
|
|
253
253
|
createdAt: string;
|
|
254
254
|
updatedAt: string;
|
|
255
255
|
projectId: string;
|
|
256
256
|
tenantId: string;
|
|
257
|
+
agentId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
259
|
toolId: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
|
-
selectedTools: string[] | null;
|
|
261
260
|
toolPolicies: Record<string, {
|
|
262
261
|
needsApproval?: boolean;
|
|
263
262
|
}> | null;
|
|
263
|
+
selectedTools: string[] | null;
|
|
264
264
|
} | undefined>;
|
|
265
265
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
266
266
|
scopes: SubAgentScopeConfig;
|