@inkeep/agents-core 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +107 -107
- package/dist/auth/auth-validation-schemas.d.ts +135 -135
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +8 -14
- package/dist/data-access/manage/agentFull.d.ts +2 -1
- package/dist/data-access/manage/agents.d.ts +33 -32
- package/dist/data-access/manage/artifactComponents.d.ts +16 -15
- package/dist/data-access/manage/contextConfigs.d.ts +10 -9
- package/dist/data-access/manage/credentialReferences.d.ts +2 -1
- package/dist/data-access/manage/dataComponents.d.ts +8 -7
- package/dist/data-access/manage/evalConfig.d.ts +2 -1
- package/dist/data-access/manage/externalAgents.d.ts +2 -1
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/functions.d.ts +2 -2
- package/dist/data-access/manage/projectFull.d.ts +2 -1
- package/dist/data-access/manage/projects.d.ts +2 -1
- package/dist/data-access/manage/scheduledTriggers.d.ts +2 -2
- package/dist/data-access/manage/scheduledWorkflows.d.ts +2 -2
- package/dist/data-access/manage/scope-helpers.d.ts +15 -22
- package/dist/data-access/manage/scope-helpers.js +15 -12
- package/dist/data-access/manage/skills.d.ts +15 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +20 -19
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -21
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +20 -19
- package/dist/data-access/manage/subAgents.d.ts +23 -22
- package/dist/data-access/manage/tools.d.ts +26 -25
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +10 -9
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/contextCache.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +14 -13
- package/dist/data-access/runtime/evalRuns.d.ts +2 -1
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +17 -16
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +2 -2
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/data-access/runtime/triggerInvocations.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +445 -445
- package/dist/db/manage/manage-schema.js +1 -1
- package/dist/db/manage/scope-definitions.d.ts +31 -0
- package/dist/db/manage/scope-definitions.js +31 -0
- package/dist/db/runtime/runtime-schema.d.ts +290 -290
- package/dist/dolt/branches-api.d.ts +2 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +3 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utility.d.ts +2 -11
- package/dist/utils/error.d.ts +3 -1
- package/dist/utils/error.js +11 -1
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +3 -2
- package/dist/utils/retry.d.ts +8 -0
- package/dist/utils/retry.js +30 -0
- package/dist/validation/schemas.d.ts +396 -426
- package/dist/validation/schemas.js +2 -1
- package/drizzle/manage/0010_oval_angel.sql +2 -0
- package/drizzle/manage/meta/0010_snapshot.json +3673 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -880,25 +880,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
880
880
|
ac: better_auth_plugins20.AccessControl;
|
|
881
881
|
roles: {
|
|
882
882
|
member: {
|
|
883
|
-
authorize<K_1 extends "
|
|
884
|
-
actions: better_auth_plugins20.Subset<"
|
|
883
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
884
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
885
885
|
connector: "OR" | "AND";
|
|
886
886
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
887
|
-
statements: better_auth_plugins20.Subset<"
|
|
887
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
888
888
|
};
|
|
889
889
|
admin: {
|
|
890
|
-
authorize<K_1 extends "
|
|
891
|
-
actions: better_auth_plugins20.Subset<"
|
|
890
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
891
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
892
892
|
connector: "OR" | "AND";
|
|
893
893
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
894
|
-
statements: better_auth_plugins20.Subset<"
|
|
894
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
895
895
|
};
|
|
896
896
|
owner: {
|
|
897
|
-
authorize<K_1 extends "
|
|
898
|
-
actions: better_auth_plugins20.Subset<"
|
|
897
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
898
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
899
899
|
connector: "OR" | "AND";
|
|
900
900
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
901
|
-
statements: better_auth_plugins20.Subset<"
|
|
901
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
902
902
|
};
|
|
903
903
|
};
|
|
904
904
|
creatorRole: "admin";
|
|
@@ -1221,25 +1221,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1221
1221
|
ac: better_auth_plugins20.AccessControl;
|
|
1222
1222
|
roles: {
|
|
1223
1223
|
member: {
|
|
1224
|
-
authorize<K_1 extends "
|
|
1225
|
-
actions: better_auth_plugins20.Subset<"
|
|
1224
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1225
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1226
1226
|
connector: "OR" | "AND";
|
|
1227
1227
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1228
|
-
statements: better_auth_plugins20.Subset<"
|
|
1228
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1229
1229
|
};
|
|
1230
1230
|
admin: {
|
|
1231
|
-
authorize<K_1 extends "
|
|
1232
|
-
actions: better_auth_plugins20.Subset<"
|
|
1231
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1232
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1233
1233
|
connector: "OR" | "AND";
|
|
1234
1234
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1235
|
-
statements: better_auth_plugins20.Subset<"
|
|
1235
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1236
1236
|
};
|
|
1237
1237
|
owner: {
|
|
1238
|
-
authorize<K_1 extends "
|
|
1239
|
-
actions: better_auth_plugins20.Subset<"
|
|
1238
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1239
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1240
1240
|
connector: "OR" | "AND";
|
|
1241
1241
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1242
|
-
statements: better_auth_plugins20.Subset<"
|
|
1242
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1243
1243
|
};
|
|
1244
1244
|
};
|
|
1245
1245
|
creatorRole: "admin";
|
|
@@ -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 "
|
|
9
|
-
actions: better_auth_plugins0.Subset<"
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins0.Subset<"
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins0.Subset<"
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins0.Subset<"
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins0.Subset<"
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "invitation" | "member" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins0.Subset<"
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "invitation" | "member" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -17,10 +17,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
17
17
|
description: z.ZodOptional<z.ZodString>;
|
|
18
18
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
name: z.ZodString;
|
|
22
20
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
24
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
24
25
|
models: z.ZodOptional<z.ZodObject<{
|
|
25
26
|
base: z.ZodOptional<z.ZodObject<{
|
|
26
27
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -35,17 +36,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
35
36
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
37
|
}, z.core.$strip>>;
|
|
37
38
|
}, z.core.$strip>>;
|
|
38
|
-
|
|
39
|
-
stepCountIs?: number | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
stepCountIs?: number | undefined;
|
|
42
|
-
}, z.core.$ZodTypeInternals<{
|
|
43
|
-
stepCountIs?: number | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
stepCountIs?: number | undefined;
|
|
46
|
-
}>>>>;
|
|
47
|
-
createdAt: z.ZodOptional<z.ZodString>;
|
|
48
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
49
40
|
type: z.ZodLiteral<"internal">;
|
|
50
41
|
canUse: z.ZodArray<z.ZodObject<{
|
|
51
42
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -74,6 +65,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
74
65
|
subAgentTeamAgentRelationId: z.ZodOptional<z.ZodString>;
|
|
75
66
|
headers: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
76
67
|
}, z.core.$strip>]>>>;
|
|
68
|
+
stopWhen: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
stepCountIs: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
77
71
|
}, z.core.$strip>]>>;
|
|
78
72
|
contextConfig: z.ZodOptional<z.ZodObject<{
|
|
79
73
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig, ProjectScopeConfig } from "../../
|
|
1
|
+
import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import { FullAgentDefinition, FullAgentSelectWithRelationIds } from "../../types/entities.js";
|
|
4
5
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig,
|
|
1
|
+
import { AgentScopeConfig, ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { ConversationHistoryConfig, PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import "../../index.js";
|
|
4
5
|
import { AgentInsert, AgentSelect, AgentUpdate, FullAgentDefinition, FullAgentSelectWithRelationIds } from "../../types/entities.js";
|
|
@@ -8,13 +9,13 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
9
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
9
10
|
scopes: AgentScopeConfig;
|
|
10
11
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
12
|
description: string | null;
|
|
14
|
-
|
|
13
|
+
name: string;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
|
-
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
18
19
|
models: {
|
|
19
20
|
base?: {
|
|
20
21
|
model?: string | undefined;
|
|
@@ -32,9 +33,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
33
|
stopWhen: {
|
|
33
34
|
transferCountIs?: number | undefined;
|
|
34
35
|
} | null;
|
|
35
|
-
|
|
36
|
-
updatedAt: string;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
|
+
prompt: string | null;
|
|
38
39
|
statusUpdates: {
|
|
39
40
|
enabled?: boolean | undefined;
|
|
40
41
|
numEvents?: number | undefined;
|
|
@@ -54,13 +55,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
54
55
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
56
|
scopes: AgentScopeConfig;
|
|
56
57
|
}) => Promise<{
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
58
|
description: string | null;
|
|
60
|
-
|
|
59
|
+
name: string;
|
|
61
60
|
tenantId: string;
|
|
62
61
|
projectId: string;
|
|
63
|
-
|
|
62
|
+
id: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
64
65
|
models: {
|
|
65
66
|
base?: {
|
|
66
67
|
model?: string | undefined;
|
|
@@ -78,9 +79,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
78
79
|
stopWhen: {
|
|
79
80
|
transferCountIs?: number | undefined;
|
|
80
81
|
} | null;
|
|
81
|
-
|
|
82
|
-
updatedAt: string;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
|
+
prompt: string | null;
|
|
84
85
|
statusUpdates: {
|
|
85
86
|
enabled?: boolean | undefined;
|
|
86
87
|
numEvents?: number | undefined;
|
|
@@ -97,14 +98,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
97
98
|
}[] | undefined;
|
|
98
99
|
} | null;
|
|
99
100
|
defaultSubAgent: {
|
|
100
|
-
id: string;
|
|
101
|
-
name: string;
|
|
102
101
|
description: string | null;
|
|
102
|
+
name: string;
|
|
103
103
|
tenantId: string;
|
|
104
104
|
projectId: string;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
id: string;
|
|
106
|
+
createdAt: string;
|
|
107
|
+
updatedAt: string;
|
|
108
108
|
models: {
|
|
109
109
|
base?: {
|
|
110
110
|
model?: string | undefined;
|
|
@@ -122,20 +122,21 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
122
122
|
stopWhen: {
|
|
123
123
|
stepCountIs?: number | undefined;
|
|
124
124
|
} | null;
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
prompt: string | null;
|
|
126
|
+
agentId: string;
|
|
127
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
128
|
} | null;
|
|
128
129
|
} | null>;
|
|
129
130
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
130
131
|
scopes: ProjectScopeConfig;
|
|
131
132
|
}) => Promise<{
|
|
132
|
-
id: string;
|
|
133
|
-
name: string;
|
|
134
133
|
description: string | null;
|
|
135
|
-
|
|
134
|
+
name: string;
|
|
136
135
|
tenantId: string;
|
|
137
136
|
projectId: string;
|
|
138
|
-
|
|
137
|
+
id: string;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
139
140
|
models: {
|
|
140
141
|
base?: {
|
|
141
142
|
model?: string | undefined;
|
|
@@ -153,9 +154,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
153
154
|
stopWhen: {
|
|
154
155
|
transferCountIs?: number | undefined;
|
|
155
156
|
} | null;
|
|
156
|
-
|
|
157
|
-
updatedAt: string;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
|
+
prompt: string | null;
|
|
159
160
|
statusUpdates: {
|
|
160
161
|
enabled?: boolean | undefined;
|
|
161
162
|
numEvents?: number | undefined;
|
|
@@ -245,13 +246,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
245
246
|
projectIds: string[];
|
|
246
247
|
}): Promise<AvailableAgentInfo[]>;
|
|
247
248
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
248
|
-
id: string;
|
|
249
|
-
name: string;
|
|
250
249
|
description: string | null;
|
|
251
|
-
|
|
250
|
+
name: string;
|
|
252
251
|
tenantId: string;
|
|
253
252
|
projectId: string;
|
|
254
|
-
|
|
253
|
+
id: string;
|
|
254
|
+
createdAt: string;
|
|
255
|
+
updatedAt: string;
|
|
255
256
|
models: {
|
|
256
257
|
base?: {
|
|
257
258
|
model?: string | undefined;
|
|
@@ -269,9 +270,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
269
270
|
stopWhen: {
|
|
270
271
|
transferCountIs?: number | undefined;
|
|
271
272
|
} | null;
|
|
272
|
-
|
|
273
|
-
updatedAt: string;
|
|
273
|
+
defaultSubAgentId: string | null;
|
|
274
274
|
contextConfigId: string | null;
|
|
275
|
+
prompt: string | null;
|
|
275
276
|
statusUpdates: {
|
|
276
277
|
enabled?: boolean | undefined;
|
|
277
278
|
numEvents?: number | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig,
|
|
1
|
+
import { AgentScopeConfig, ProjectScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { JsonSchemaProperty } from "../../validation/json-schemas.js";
|
|
3
4
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
4
5
|
import { ArtifactComponentInsert, ArtifactComponentSelect, ArtifactComponentUpdate } from "../../types/entities.js";
|
|
@@ -8,13 +9,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
8
9
|
scopes: ProjectScopeConfig;
|
|
9
10
|
id: string;
|
|
10
11
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
12
|
description: string | null;
|
|
13
|
+
name: string;
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
|
-
|
|
17
|
-
updatedAt: string;
|
|
16
|
+
id: string;
|
|
18
17
|
props: {
|
|
19
18
|
[x: string]: unknown;
|
|
20
19
|
type: "object";
|
|
@@ -27,6 +26,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
27
26
|
component: string;
|
|
28
27
|
mockData: Record<string, unknown>;
|
|
29
28
|
} | null;
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
30
31
|
} | undefined>;
|
|
31
32
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
32
33
|
scopes: ProjectScopeConfig;
|
|
@@ -64,13 +65,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
64
65
|
};
|
|
65
66
|
}>;
|
|
66
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
67
|
-
id: string;
|
|
68
|
-
name: string;
|
|
69
68
|
description: string | null;
|
|
69
|
+
name: string;
|
|
70
70
|
tenantId: string;
|
|
71
71
|
projectId: string;
|
|
72
|
-
|
|
73
|
-
updatedAt: string;
|
|
72
|
+
id: string;
|
|
74
73
|
props: {
|
|
75
74
|
[x: string]: unknown;
|
|
76
75
|
type: "object";
|
|
@@ -83,6 +82,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
83
82
|
component: string;
|
|
84
83
|
mockData: Record<string, unknown>;
|
|
85
84
|
} | null;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedAt: string;
|
|
86
87
|
}>;
|
|
87
88
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
88
89
|
scopes: ProjectScopeConfig;
|
|
@@ -140,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
140
141
|
scopes: SubAgentScopeConfig;
|
|
141
142
|
artifactComponentId: string;
|
|
142
143
|
}) => Promise<{
|
|
143
|
-
id: string;
|
|
144
144
|
tenantId: string;
|
|
145
145
|
projectId: string;
|
|
146
|
-
agentId: string;
|
|
147
|
-
createdAt: string;
|
|
148
146
|
subAgentId: string;
|
|
147
|
+
id: string;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
agentId: string;
|
|
149
150
|
artifactComponentId: string;
|
|
150
151
|
}>;
|
|
151
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -183,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
183
184
|
scopes: SubAgentScopeConfig;
|
|
184
185
|
artifactComponentId: string;
|
|
185
186
|
}) => Promise<{
|
|
186
|
-
id: string;
|
|
187
187
|
tenantId: string;
|
|
188
188
|
projectId: string;
|
|
189
|
-
agentId: string;
|
|
190
|
-
createdAt: string;
|
|
191
189
|
subAgentId: string;
|
|
190
|
+
id: string;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
agentId: string;
|
|
192
193
|
artifactComponentId: string;
|
|
193
194
|
} | null>;
|
|
194
195
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AgentScopeConfig
|
|
1
|
+
import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { ContextFetchDefinition, PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import "../../index.js";
|
|
4
5
|
import { ContextConfigInsert, ContextConfigUpdate } from "../../types/entities.js";
|
|
@@ -8,26 +9,26 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
8
9
|
scopes: AgentScopeConfig;
|
|
9
10
|
id: string;
|
|
10
11
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
12
|
tenantId: string;
|
|
13
13
|
projectId: string;
|
|
14
|
-
|
|
14
|
+
id: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
|
+
agentId: string;
|
|
19
20
|
} | undefined>;
|
|
20
21
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
22
|
scopes: AgentScopeConfig;
|
|
22
23
|
}) => Promise<{
|
|
23
|
-
id: string;
|
|
24
24
|
tenantId: string;
|
|
25
25
|
projectId: string;
|
|
26
|
-
|
|
26
|
+
id: string;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
|
+
agentId: string;
|
|
31
32
|
}[]>;
|
|
32
33
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
34
|
scopes: AgentScopeConfig;
|
|
@@ -42,14 +43,14 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
42
43
|
};
|
|
43
44
|
}>;
|
|
44
45
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
-
id: string;
|
|
46
46
|
tenantId: string;
|
|
47
47
|
projectId: string;
|
|
48
|
-
|
|
48
|
+
id: string;
|
|
49
49
|
createdAt: string;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
|
+
agentId: string;
|
|
53
54
|
}>;
|
|
54
55
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
56
|
scopes: AgentScopeConfig;
|
|
@@ -82,14 +83,14 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
|
|
|
82
83
|
declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
83
84
|
data: ContextConfigInsert;
|
|
84
85
|
}) => Promise<{
|
|
85
|
-
id: string;
|
|
86
86
|
tenantId: string;
|
|
87
87
|
projectId: string;
|
|
88
|
-
|
|
88
|
+
id: string;
|
|
89
89
|
createdAt: string;
|
|
90
90
|
updatedAt: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
|
+
agentId: string;
|
|
93
94
|
}>;
|
|
94
95
|
//#endregion
|
|
95
96
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import "../../types/index.js";
|
|
3
4
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
4
5
|
import { CredentialReferenceInsert, CredentialReferenceSelect, CredentialReferenceUpdate, ExternalAgentSelect, ToolSelect } from "../../types/entities.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectScopeConfig, SubAgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import "../../types/index.js";
|
|
3
4
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
4
5
|
import { DataComponentInsert, DataComponentSelect, DataComponentUpdate } from "../../types/entities.js";
|
|
@@ -64,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
64
65
|
scopes: SubAgentScopeConfig;
|
|
65
66
|
dataComponentId: string;
|
|
66
67
|
}) => Promise<{
|
|
67
|
-
id: string;
|
|
68
68
|
tenantId: string;
|
|
69
69
|
projectId: string;
|
|
70
|
-
agentId: string;
|
|
71
|
-
createdAt: string;
|
|
72
70
|
subAgentId: string;
|
|
71
|
+
id: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
agentId: string;
|
|
73
74
|
dataComponentId: string;
|
|
74
75
|
}>;
|
|
75
76
|
/**
|
|
@@ -106,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
106
107
|
scopes: SubAgentScopeConfig;
|
|
107
108
|
dataComponentId: string;
|
|
108
109
|
}) => Promise<{
|
|
109
|
-
id: string;
|
|
110
110
|
tenantId: string;
|
|
111
111
|
projectId: string;
|
|
112
|
-
agentId: string;
|
|
113
|
-
createdAt: string;
|
|
114
112
|
subAgentId: string;
|
|
113
|
+
id: string;
|
|
114
|
+
createdAt: string;
|
|
115
|
+
agentId: string;
|
|
115
116
|
dataComponentId: string;
|
|
116
117
|
} | null>;
|
|
117
118
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ProjectScopeConfig } from "../../
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
5
|
import { DatasetInsert, DatasetItemInsert, DatasetItemSelect, DatasetItemUpdate, DatasetRunConfigAgentRelationInsert, DatasetRunConfigAgentRelationSelect, DatasetRunConfigInsert, DatasetRunConfigSelect, DatasetRunConfigUpdate, DatasetSelect, DatasetUpdate, EvaluationJobConfigEvaluatorRelationInsert, EvaluationJobConfigEvaluatorRelationSelect, EvaluationJobConfigInsert, EvaluationJobConfigSelect, EvaluationRunConfigEvaluationSuiteConfigRelationInsert, EvaluationRunConfigEvaluationSuiteConfigRelationSelect, EvaluationRunConfigInsert, EvaluationRunConfigSelect, EvaluationRunConfigUpdate, EvaluationRunConfigWithSuiteConfigs, EvaluationSuiteConfigEvaluatorRelationInsert, EvaluationSuiteConfigEvaluatorRelationSelect, EvaluationSuiteConfigInsert, EvaluationSuiteConfigSelect, EvaluationSuiteConfigUpdate, EvaluatorInsert, EvaluatorSelect, EvaluatorUpdate } from "../../types/entities.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import "../../types/index.js";
|
|
3
4
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
4
5
|
import { ExternalAgentInsert, ExternalAgentSelect, ExternalAgentUpdate } from "../../types/entities.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AgentScopeConfig
|
|
1
|
+
import { AgentScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
3
4
|
import { FunctionToolApiInsert, FunctionToolApiUpdate } from "../../types/entities.js";
|
|
4
5
|
|
|
5
6
|
//#region src/data-access/manage/functionTools.d.ts
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* Get a function tool by ID (agent-scoped)
|
|
9
9
|
*/
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
56
|
description: string | null;
|
|
57
|
+
name: string;
|
|
59
58
|
tenantId: string;
|
|
60
59
|
projectId: string;
|
|
61
|
-
|
|
60
|
+
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: 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;
|
|
99
|
-
name: string;
|
|
100
98
|
description: string | null;
|
|
99
|
+
name: string;
|
|
101
100
|
tenantId: string;
|
|
102
101
|
projectId: string;
|
|
103
|
-
|
|
102
|
+
id: string;
|
|
104
103
|
createdAt: string;
|
|
105
104
|
updatedAt: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -161,16 +161,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
161
161
|
needsApproval?: boolean;
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
|
-
id: string;
|
|
165
164
|
tenantId: string;
|
|
166
165
|
projectId: string;
|
|
167
|
-
|
|
166
|
+
subAgentId: string;
|
|
167
|
+
id: string;
|
|
168
168
|
createdAt: string;
|
|
169
169
|
updatedAt: string;
|
|
170
|
+
agentId: string;
|
|
170
171
|
toolPolicies: Record<string, {
|
|
171
172
|
needsApproval?: boolean;
|
|
172
173
|
}> | null;
|
|
173
|
-
subAgentId: string;
|
|
174
174
|
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
@@ -226,16 +226,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
226
226
|
needsApproval?: boolean;
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
|
-
id: string;
|
|
230
229
|
tenantId: string;
|
|
231
230
|
projectId: string;
|
|
232
|
-
|
|
231
|
+
subAgentId: string;
|
|
232
|
+
id: string;
|
|
233
233
|
createdAt: string;
|
|
234
234
|
updatedAt: string;
|
|
235
|
+
agentId: string;
|
|
235
236
|
toolPolicies: Record<string, {
|
|
236
237
|
needsApproval?: boolean;
|
|
237
238
|
}> | null;
|
|
238
|
-
subAgentId: string;
|
|
239
239
|
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|