@inkeep/agents-core 0.0.0-dev-20260408022324 → 0.0.0-dev-20260408074257
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agentFull.d.ts +2 -0
- package/dist/data-access/manage/agentFull.js +12 -12
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- 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 +8 -8
- package/dist/data-access/manage/skills.d.ts +8 -8
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +12 -12
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +21 -21
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +451 -451
- package/dist/db/runtime/runtime-schema.d.ts +405 -405
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +54 -54
- package/dist/validation/schemas.d.ts +2186 -2186
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
|
|
|
2
2
|
import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
|
|
3
3
|
import * as zod0 from "zod";
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins20 from "better-auth/plugins";
|
|
6
6
|
|
|
7
7
|
//#region src/auth/auth.d.ts
|
|
8
8
|
|
|
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
38
38
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
-
options:
|
|
41
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
id: "oauth-proxy";
|
|
44
|
-
options: NoInfer<
|
|
44
|
+
options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
|
|
45
45
|
endpoints: {
|
|
46
46
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
47
47
|
method: "GET";
|
|
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
93
93
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, better_auth_plugins20.DefaultOrganizationPlugin<{
|
|
97
97
|
schema: {
|
|
98
98
|
invitation: {
|
|
99
99
|
additionalFields: {
|
|
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
456
456
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
457
457
|
};
|
|
458
458
|
options: Partial<{
|
|
459
|
-
expiresIn:
|
|
460
|
-
interval:
|
|
459
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
460
|
+
interval: better_auth_plugins20.TimeString;
|
|
461
461
|
deviceCodeLength: number;
|
|
462
462
|
userCodeLength: number;
|
|
463
463
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
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:
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "project" | "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -5,7 +5,9 @@ import { FullAgentDefinition, FullAgentSelectWithRelationIds } from "../../types
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/manage/agentFull.d.ts
|
|
7
7
|
interface AgentLogger {
|
|
8
|
+
info(msg: string): void;
|
|
8
9
|
info(obj: Record<string, any>, msg?: string): void;
|
|
10
|
+
error(msg: string): void;
|
|
9
11
|
error(obj: Record<string, any>, msg?: string): void;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
@@ -115,8 +115,8 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
115
115
|
projectId
|
|
116
116
|
}, typed);
|
|
117
117
|
try {
|
|
118
|
-
logger.info(
|
|
119
|
-
logger.info(
|
|
118
|
+
logger.info("CredentialReferences are project-scoped - skipping credential reference creation in agent");
|
|
119
|
+
logger.info("MCP Tools are project-scoped - skipping tool creation in agent");
|
|
120
120
|
let finalAgentId;
|
|
121
121
|
try {
|
|
122
122
|
const agentId = typed.id || generateId();
|
|
@@ -193,8 +193,8 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
193
193
|
}, "Failed to update agent with contextConfigId");
|
|
194
194
|
throw error;
|
|
195
195
|
}
|
|
196
|
-
logger.info(
|
|
197
|
-
logger.info(
|
|
196
|
+
logger.info("DataComponents are project-scoped - skipping dataComponent creation in agent");
|
|
197
|
+
logger.info("ArtifactComponents are project-scoped - skipping artifactComponent creation in agent");
|
|
198
198
|
if (typed.functions && Object.keys(typed.functions).length > 0) {
|
|
199
199
|
logger.info({
|
|
200
200
|
agentId: finalAgentId,
|
|
@@ -348,7 +348,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
348
348
|
await Promise.all(subAgentPromises);
|
|
349
349
|
const subAgentCount = Object.entries(typed.subAgents).length;
|
|
350
350
|
logger.info({ subAgentCount }, "All sub-agents created/updated successfully");
|
|
351
|
-
logger.info(
|
|
351
|
+
logger.info("External agents are project-scoped and managed at the project level.");
|
|
352
352
|
const agentToolPromises = [];
|
|
353
353
|
for (const [subAgentId, agentData$1] of Object.entries(typed.subAgents)) if (agentData$1.canUse && Array.isArray(agentData$1.canUse)) for (const canUseItem of agentData$1.canUse) agentToolPromises.push((async () => {
|
|
354
354
|
try {
|
|
@@ -443,7 +443,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
443
443
|
}
|
|
444
444
|
})());
|
|
445
445
|
await Promise.all(agentDataComponentPromises);
|
|
446
|
-
logger.info(
|
|
446
|
+
logger.info("All agent-data component relations created");
|
|
447
447
|
const agentArtifactComponentPromises = [];
|
|
448
448
|
for (const [subAgentId, agentData$1] of Object.entries(typed.subAgents)) if (agentData$1.artifactComponents) for (const artifactComponentId of agentData$1.artifactComponents) agentArtifactComponentPromises.push((async () => {
|
|
449
449
|
try {
|
|
@@ -473,7 +473,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
473
473
|
}
|
|
474
474
|
})());
|
|
475
475
|
await Promise.all(agentArtifactComponentPromises);
|
|
476
|
-
logger.info(
|
|
476
|
+
logger.info("All agent-artifact component relations created");
|
|
477
477
|
const subAgentRelationPromises = [];
|
|
478
478
|
const subAgentExternalAgentRelationPromises = [];
|
|
479
479
|
const subAgentTeamAgentRelationPromises = [];
|
|
@@ -656,8 +656,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
656
656
|
return createFullAgentServerSide(db, logger)(scopes, agentData);
|
|
657
657
|
}
|
|
658
658
|
const existingAgentModels = existingAgent.models;
|
|
659
|
-
logger.info(
|
|
660
|
-
logger.info(
|
|
659
|
+
logger.info("CredentialReferences are project-scoped - skipping credential reference update in agent");
|
|
660
|
+
logger.info("MCP Tools are project-scoped - skipping tool creation in agent update");
|
|
661
661
|
let finalAgentId;
|
|
662
662
|
try {
|
|
663
663
|
const agentId = typedAgentDefinition.id || generateId();
|
|
@@ -734,8 +734,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
734
734
|
}, "Failed to update agent with contextConfigId");
|
|
735
735
|
throw error;
|
|
736
736
|
}
|
|
737
|
-
logger.info(
|
|
738
|
-
logger.info(
|
|
737
|
+
logger.info("DataComponents are project-scoped - skipping dataComponent update in agent");
|
|
738
|
+
logger.info("ArtifactComponents are project-scoped - skipping artifactComponent update in agent");
|
|
739
739
|
if (typedAgentDefinition.functions && Object.keys(typedAgentDefinition.functions).length > 0) {
|
|
740
740
|
logger.info({
|
|
741
741
|
agentId: finalAgentId,
|
|
@@ -1021,7 +1021,7 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
1021
1021
|
})());
|
|
1022
1022
|
}
|
|
1023
1023
|
if (relinkToolRelationPromises.length > 0) await Promise.all(relinkToolRelationPromises);
|
|
1024
|
-
logger.info(
|
|
1024
|
+
logger.info("External agents are project-scoped and managed at the project level.");
|
|
1025
1025
|
const incomingSubAgentIds = new Set(Object.keys(typedAgentDefinition.subAgents));
|
|
1026
1026
|
const existingSubAgents = await listSubAgents(db)({ scopes: {
|
|
1027
1027
|
tenantId,
|
|
@@ -10,11 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
name: string;
|
|
13
14
|
tenantId: string;
|
|
14
15
|
projectId: string;
|
|
15
16
|
id: string;
|
|
16
|
-
name: string;
|
|
17
17
|
description: string | null;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
18
20
|
models: {
|
|
19
21
|
base?: {
|
|
20
22
|
model?: string | undefined;
|
|
@@ -38,8 +40,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
38
40
|
stopWhen: {
|
|
39
41
|
transferCountIs?: number | undefined;
|
|
40
42
|
} | null;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
43
|
defaultSubAgentId: string | null;
|
|
44
44
|
contextConfigId: string | null;
|
|
45
45
|
prompt: string | null;
|
|
@@ -63,11 +63,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
+
name: string;
|
|
66
67
|
tenantId: string;
|
|
67
68
|
projectId: string;
|
|
68
69
|
id: string;
|
|
69
|
-
name: string;
|
|
70
70
|
description: string | null;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
71
73
|
models: {
|
|
72
74
|
base?: {
|
|
73
75
|
model?: string | undefined;
|
|
@@ -91,8 +93,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
91
93
|
stopWhen: {
|
|
92
94
|
transferCountIs?: number | undefined;
|
|
93
95
|
} | null;
|
|
94
|
-
createdAt: string;
|
|
95
|
-
updatedAt: string;
|
|
96
96
|
defaultSubAgentId: string | null;
|
|
97
97
|
contextConfigId: string | null;
|
|
98
98
|
prompt: string | null;
|
|
@@ -113,12 +113,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
113
113
|
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
+
name: string;
|
|
116
117
|
tenantId: string;
|
|
117
118
|
projectId: string;
|
|
118
|
-
agentId: string;
|
|
119
119
|
id: string;
|
|
120
|
-
name: string;
|
|
121
120
|
description: string | null;
|
|
121
|
+
agentId: string;
|
|
122
|
+
createdAt: string;
|
|
123
|
+
updatedAt: string;
|
|
122
124
|
models: {
|
|
123
125
|
base?: {
|
|
124
126
|
model?: string | undefined;
|
|
@@ -142,8 +144,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
142
144
|
stopWhen: {
|
|
143
145
|
stepCountIs?: number | undefined;
|
|
144
146
|
} | null;
|
|
145
|
-
createdAt: string;
|
|
146
|
-
updatedAt: string;
|
|
147
147
|
prompt: string | null;
|
|
148
148
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
149
149
|
} | null;
|
|
@@ -151,11 +151,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
151
151
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
}) => Promise<{
|
|
154
|
+
name: string;
|
|
154
155
|
tenantId: string;
|
|
155
156
|
projectId: string;
|
|
156
157
|
id: string;
|
|
157
|
-
name: string;
|
|
158
158
|
description: string | null;
|
|
159
|
+
createdAt: string;
|
|
160
|
+
updatedAt: string;
|
|
159
161
|
models: {
|
|
160
162
|
base?: {
|
|
161
163
|
model?: string | undefined;
|
|
@@ -179,8 +181,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
179
181
|
stopWhen: {
|
|
180
182
|
transferCountIs?: number | undefined;
|
|
181
183
|
} | null;
|
|
182
|
-
createdAt: string;
|
|
183
|
-
updatedAt: string;
|
|
184
184
|
defaultSubAgentId: string | null;
|
|
185
185
|
contextConfigId: string | null;
|
|
186
186
|
prompt: string | null;
|
|
@@ -281,11 +281,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
281
281
|
projectIds: string[];
|
|
282
282
|
}): Promise<AvailableAgentInfo[]>;
|
|
283
283
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
284
|
+
name: string;
|
|
284
285
|
tenantId: string;
|
|
285
286
|
projectId: string;
|
|
286
287
|
id: string;
|
|
287
|
-
name: string;
|
|
288
288
|
description: string | null;
|
|
289
|
+
createdAt: string;
|
|
290
|
+
updatedAt: string;
|
|
289
291
|
models: {
|
|
290
292
|
base?: {
|
|
291
293
|
model?: string | undefined;
|
|
@@ -309,8 +311,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
309
311
|
stopWhen: {
|
|
310
312
|
transferCountIs?: number | undefined;
|
|
311
313
|
} | null;
|
|
312
|
-
createdAt: string;
|
|
313
|
-
updatedAt: string;
|
|
314
314
|
defaultSubAgentId: string | null;
|
|
315
315
|
contextConfigId: string | null;
|
|
316
316
|
prompt: string | null;
|
|
@@ -9,13 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
+
name: string;
|
|
12
13
|
tenantId: string;
|
|
13
14
|
projectId: string;
|
|
14
15
|
id: string;
|
|
15
|
-
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
17
|
props: {
|
|
20
18
|
[x: string]: unknown;
|
|
21
19
|
type: "object";
|
|
@@ -28,6 +26,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
28
26
|
component: string;
|
|
29
27
|
mockData: Record<string, unknown>;
|
|
30
28
|
} | null;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
31
|
} | undefined>;
|
|
32
32
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: ProjectScopeConfig;
|
|
@@ -65,13 +65,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
+
name: string;
|
|
68
69
|
tenantId: string;
|
|
69
70
|
projectId: string;
|
|
70
71
|
id: string;
|
|
71
|
-
name: string;
|
|
72
72
|
description: string | null;
|
|
73
|
-
createdAt: string;
|
|
74
|
-
updatedAt: string;
|
|
75
73
|
props: {
|
|
76
74
|
[x: string]: unknown;
|
|
77
75
|
type: "object";
|
|
@@ -84,6 +82,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
84
82
|
component: string;
|
|
85
83
|
mockData: Record<string, unknown>;
|
|
86
84
|
} | null;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
87
87
|
}>;
|
|
88
88
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
89
89
|
scopes: ProjectScopeConfig;
|
|
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
143
143
|
}) => Promise<{
|
|
144
144
|
tenantId: string;
|
|
145
145
|
projectId: string;
|
|
146
|
+
id: string;
|
|
146
147
|
agentId: string;
|
|
147
148
|
subAgentId: string;
|
|
148
|
-
id: string;
|
|
149
149
|
createdAt: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
186
186
|
}) => Promise<{
|
|
187
187
|
tenantId: string;
|
|
188
188
|
projectId: string;
|
|
189
|
+
id: string;
|
|
189
190
|
agentId: string;
|
|
190
191
|
subAgentId: string;
|
|
191
|
-
id: string;
|
|
192
192
|
createdAt: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
@@ -11,8 +11,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
id: string;
|
|
15
|
+
agentId: string;
|
|
16
16
|
createdAt: string;
|
|
17
17
|
updatedAt: string;
|
|
18
18
|
headersSchema: unknown;
|
|
@@ -23,8 +23,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
}) => Promise<{
|
|
24
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
|
-
agentId: string;
|
|
27
26
|
id: string;
|
|
27
|
+
agentId: string;
|
|
28
28
|
createdAt: string;
|
|
29
29
|
updatedAt: string;
|
|
30
30
|
headersSchema: unknown;
|
|
@@ -45,8 +45,8 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
45
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
id: string;
|
|
49
|
+
agentId: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
52
|
headersSchema: unknown;
|
|
@@ -85,8 +85,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
}) => Promise<{
|
|
86
86
|
tenantId: string;
|
|
87
87
|
projectId: string;
|
|
88
|
-
agentId: string;
|
|
89
88
|
id: string;
|
|
89
|
+
agentId: string;
|
|
90
90
|
createdAt: string;
|
|
91
91
|
updatedAt: string;
|
|
92
92
|
headersSchema: unknown;
|
|
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
67
67
|
}) => Promise<{
|
|
68
68
|
tenantId: string;
|
|
69
69
|
projectId: string;
|
|
70
|
+
id: string;
|
|
70
71
|
agentId: string;
|
|
71
72
|
subAgentId: string;
|
|
72
|
-
id: string;
|
|
73
73
|
createdAt: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
109
109
|
}) => Promise<{
|
|
110
110
|
tenantId: string;
|
|
111
111
|
projectId: string;
|
|
112
|
+
id: string;
|
|
112
113
|
agentId: string;
|
|
113
114
|
subAgentId: string;
|
|
114
|
-
id: string;
|
|
115
115
|
createdAt: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
@@ -53,12 +53,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
name: string;
|
|
56
57
|
tenantId: string;
|
|
57
58
|
projectId: string;
|
|
58
|
-
agentId: string;
|
|
59
59
|
id: string;
|
|
60
|
-
name: string;
|
|
61
60
|
description: string | null;
|
|
61
|
+
agentId: string;
|
|
62
62
|
createdAt: string;
|
|
63
63
|
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
@@ -95,12 +95,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
+
name: string;
|
|
98
99
|
tenantId: string;
|
|
99
100
|
projectId: string;
|
|
100
|
-
agentId: string;
|
|
101
101
|
id: string;
|
|
102
|
-
name: string;
|
|
103
102
|
description: string | null;
|
|
103
|
+
agentId: string;
|
|
104
104
|
createdAt: string;
|
|
105
105
|
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
@@ -159,15 +159,15 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
tenantId: string;
|
|
161
161
|
projectId: string;
|
|
162
|
+
id: string;
|
|
162
163
|
agentId: string;
|
|
163
164
|
subAgentId: string;
|
|
164
|
-
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
+
functionToolId: string;
|
|
167
168
|
toolPolicies: Record<string, {
|
|
168
169
|
needsApproval?: boolean;
|
|
169
170
|
}> | null;
|
|
170
|
-
functionToolId: string;
|
|
171
171
|
}>;
|
|
172
172
|
/**
|
|
173
173
|
* Update an agent-function tool relation
|
|
@@ -224,15 +224,15 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
224
224
|
}) => Promise<{
|
|
225
225
|
tenantId: string;
|
|
226
226
|
projectId: string;
|
|
227
|
+
id: string;
|
|
227
228
|
agentId: string;
|
|
228
229
|
subAgentId: string;
|
|
229
|
-
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
+
functionToolId: string;
|
|
232
233
|
toolPolicies: Record<string, {
|
|
233
234
|
needsApproval?: boolean;
|
|
234
235
|
}> | null;
|
|
235
|
-
functionToolId: string;
|
|
236
236
|
}>;
|
|
237
237
|
//#endregion
|
|
238
238
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
+
name: string;
|
|
18
19
|
tenantId: string;
|
|
19
20
|
projectId: string;
|
|
20
21
|
id: string;
|
|
21
|
-
name: string;
|
|
22
22
|
description: string;
|
|
23
|
+
metadata: Record<string, string> | null;
|
|
24
|
+
content: string;
|
|
23
25
|
createdAt: string;
|
|
24
26
|
updatedAt: string;
|
|
25
|
-
content: string;
|
|
26
|
-
metadata: Record<string, string> | null;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -110,15 +110,15 @@ 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
|
+
name: string;
|
|
113
114
|
tenantId: string;
|
|
114
115
|
projectId: string;
|
|
115
116
|
id: string;
|
|
116
|
-
name: string;
|
|
117
117
|
description: string;
|
|
118
|
+
metadata: Record<string, string> | null;
|
|
119
|
+
content: string;
|
|
118
120
|
createdAt: string;
|
|
119
121
|
updatedAt: string;
|
|
120
|
-
content: string;
|
|
121
|
-
metadata: Record<string, string> | null;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -141,14 +141,14 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
141
141
|
}) => Promise<{
|
|
142
142
|
tenantId: string;
|
|
143
143
|
projectId: string;
|
|
144
|
+
id: string;
|
|
144
145
|
agentId: string;
|
|
145
146
|
subAgentId: string;
|
|
146
|
-
id: string;
|
|
147
147
|
createdAt: string;
|
|
148
148
|
updatedAt: 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;
|
|
@@ -11,9 +11,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
+
id: string;
|
|
14
15
|
agentId: string;
|
|
15
16
|
subAgentId: string;
|
|
16
|
-
id: string;
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
headers: Record<string, string> | null;
|
|
@@ -46,9 +46,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
46
46
|
}) => Promise<{
|
|
47
47
|
tenantId: string;
|
|
48
48
|
projectId: string;
|
|
49
|
+
id: string;
|
|
49
50
|
agentId: string;
|
|
50
51
|
subAgentId: string;
|
|
51
|
-
id: string;
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
headers: Record<string, string> | null;
|
|
@@ -59,9 +59,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
59
59
|
}) => Promise<{
|
|
60
60
|
tenantId: string;
|
|
61
61
|
projectId: string;
|
|
62
|
+
id: string;
|
|
62
63
|
agentId: string;
|
|
63
64
|
subAgentId: string;
|
|
64
|
-
id: string;
|
|
65
65
|
createdAt: string;
|
|
66
66
|
updatedAt: string;
|
|
67
67
|
headers: Record<string, string> | null;
|
|
@@ -188,9 +188,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
188
188
|
}) => Promise<{
|
|
189
189
|
tenantId: string;
|
|
190
190
|
projectId: string;
|
|
191
|
+
id: string;
|
|
191
192
|
agentId: string;
|
|
192
193
|
subAgentId: string;
|
|
193
|
-
id: string;
|
|
194
194
|
createdAt: string;
|
|
195
195
|
updatedAt: string;
|
|
196
196
|
headers: Record<string, string> | null;
|
|
@@ -205,9 +205,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
205
205
|
}) => Promise<{
|
|
206
206
|
tenantId: string;
|
|
207
207
|
projectId: string;
|
|
208
|
+
id: string;
|
|
208
209
|
agentId: string;
|
|
209
210
|
subAgentId: string;
|
|
210
|
-
id: string;
|
|
211
211
|
createdAt: string;
|
|
212
212
|
updatedAt: string;
|
|
213
213
|
headers: Record<string, string> | null;
|
|
@@ -226,9 +226,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
226
226
|
}) => Promise<{
|
|
227
227
|
tenantId: string;
|
|
228
228
|
projectId: string;
|
|
229
|
+
id: string;
|
|
229
230
|
agentId: string;
|
|
230
231
|
subAgentId: string;
|
|
231
|
-
id: string;
|
|
232
232
|
createdAt: string;
|
|
233
233
|
updatedAt: string;
|
|
234
234
|
headers: Record<string, string> | null;
|