@inkeep/agents-core 0.73.5 → 0.74.1
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/init.js +16 -1
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agentFull.d.ts +10 -3
- package/dist/data-access/manage/agentFull.js +43 -7
- package/dist/data-access/manage/agents.d.ts +41 -32
- package/dist/data-access/manage/agents.js +1 -0
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +66 -12
- package/dist/data-access/manage/subAgents.js +2 -1
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +9 -9
- package/dist/data-access/runtime/conversations.d.ts +32 -32
- package/dist/data-access/runtime/events.d.ts +3 -3
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +417 -382
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +417 -417
- package/dist/evaluation/index.d.ts +3 -0
- package/dist/evaluation/index.js +3 -0
- package/dist/evaluation/pass-criteria-evaluator.d.ts +12 -0
- package/dist/evaluation/pass-criteria-evaluator.js +64 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -3
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +58 -58
- package/dist/validation/schemas.d.ts +2793 -2156
- package/dist/validation/schemas.js +17 -3
- package/drizzle/manage/0021_furry_warlock.sql +2 -0
- package/drizzle/manage/meta/0021_snapshot.json +4098 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +5 -1
|
@@ -6,13 +6,13 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
8
|
id: string;
|
|
9
|
-
name: string;
|
|
10
9
|
createdAt: string;
|
|
10
|
+
name: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
-
type: AppType;
|
|
13
|
-
description: string | null;
|
|
14
12
|
projectId: string | null;
|
|
15
13
|
tenantId: string | null;
|
|
14
|
+
description: string | null;
|
|
15
|
+
type: AppType;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
prompt: string | null;
|
|
18
18
|
config: {
|
|
@@ -22,7 +22,7 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
22
22
|
publicKeys: {
|
|
23
23
|
kid: string;
|
|
24
24
|
publicKey: string;
|
|
25
|
-
algorithm: "
|
|
25
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
26
26
|
addedAt: string;
|
|
27
27
|
}[];
|
|
28
28
|
allowAnonymous: boolean;
|
|
@@ -75,13 +75,13 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
75
75
|
}>;
|
|
76
76
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
77
77
|
id: string;
|
|
78
|
-
name: string;
|
|
79
78
|
createdAt: string;
|
|
79
|
+
name: string;
|
|
80
80
|
updatedAt: string;
|
|
81
|
-
type: AppType;
|
|
82
|
-
description: string | null;
|
|
83
81
|
projectId: string | null;
|
|
84
82
|
tenantId: string | null;
|
|
83
|
+
description: string | null;
|
|
84
|
+
type: AppType;
|
|
85
85
|
enabled: boolean;
|
|
86
86
|
prompt: string | null;
|
|
87
87
|
config: {
|
|
@@ -91,7 +91,7 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
91
91
|
publicKeys: {
|
|
92
92
|
kid: string;
|
|
93
93
|
publicKey: string;
|
|
94
|
-
algorithm: "
|
|
94
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
95
95
|
addedAt: string;
|
|
96
96
|
}[];
|
|
97
97
|
allowAnonymous: boolean;
|
|
@@ -174,7 +174,7 @@ declare const updateApp: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
174
174
|
publicKeys: {
|
|
175
175
|
kid: string;
|
|
176
176
|
publicKey: string;
|
|
177
|
-
algorithm: "
|
|
177
|
+
algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
|
|
178
178
|
addedAt: string;
|
|
179
179
|
}[];
|
|
180
180
|
allowAnonymous: boolean;
|
|
@@ -18,21 +18,21 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
|
|
|
18
18
|
id: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
tenantId: string;
|
|
23
|
+
metadata: ConversationMetadata | null;
|
|
24
|
+
properties: Record<string, unknown> | null;
|
|
25
|
+
title: string | null;
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
userId: string | null;
|
|
21
28
|
ref: {
|
|
22
29
|
type: "commit" | "tag" | "branch";
|
|
23
30
|
name: string;
|
|
24
31
|
hash: string;
|
|
25
32
|
} | null;
|
|
26
|
-
userId: string | null;
|
|
27
|
-
metadata: ConversationMetadata | null;
|
|
28
|
-
properties: Record<string, unknown> | null;
|
|
29
|
-
title: string | null;
|
|
30
|
-
agentId: string | null;
|
|
31
|
-
projectId: string;
|
|
32
|
-
tenantId: string;
|
|
33
|
-
userProperties: Record<string, unknown> | null;
|
|
34
33
|
activeSubAgentId: string;
|
|
35
34
|
lastContextResolution: string | null;
|
|
35
|
+
userProperties: Record<string, unknown> | null;
|
|
36
36
|
}>;
|
|
37
37
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -93,21 +93,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
93
93
|
id: string;
|
|
94
94
|
createdAt: string;
|
|
95
95
|
updatedAt: string;
|
|
96
|
+
projectId: string;
|
|
97
|
+
tenantId: string;
|
|
98
|
+
metadata: ConversationMetadata | null;
|
|
99
|
+
properties: Record<string, unknown> | null;
|
|
100
|
+
title: string | null;
|
|
101
|
+
agentId: string | null;
|
|
102
|
+
userId: string | null;
|
|
96
103
|
ref: {
|
|
97
104
|
type: "commit" | "tag" | "branch";
|
|
98
105
|
name: string;
|
|
99
106
|
hash: string;
|
|
100
107
|
} | null;
|
|
101
|
-
userId: string | null;
|
|
102
|
-
metadata: ConversationMetadata | null;
|
|
103
|
-
properties: Record<string, unknown> | null;
|
|
104
|
-
title: string | null;
|
|
105
|
-
agentId: string | null;
|
|
106
|
-
projectId: string;
|
|
107
|
-
tenantId: string;
|
|
108
|
-
userProperties: Record<string, unknown> | null;
|
|
109
108
|
activeSubAgentId: string;
|
|
110
109
|
lastContextResolution: string | null;
|
|
110
|
+
userProperties: Record<string, unknown> | null;
|
|
111
111
|
} | undefined>;
|
|
112
112
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
113
113
|
activeSubAgentId: string;
|
|
@@ -133,21 +133,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
133
133
|
id: string;
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
|
+
metadata: ConversationMetadata | null;
|
|
139
|
+
properties: Record<string, unknown> | null;
|
|
140
|
+
title: string | null;
|
|
141
|
+
agentId: string | null;
|
|
142
|
+
userId: string | null;
|
|
136
143
|
ref: {
|
|
137
144
|
type: "commit" | "tag" | "branch";
|
|
138
145
|
name: string;
|
|
139
146
|
hash: string;
|
|
140
147
|
} | null;
|
|
141
|
-
userId: string | null;
|
|
142
|
-
metadata: ConversationMetadata | null;
|
|
143
|
-
properties: Record<string, unknown> | null;
|
|
144
|
-
title: string | null;
|
|
145
|
-
agentId: string | null;
|
|
146
|
-
projectId: string;
|
|
147
|
-
tenantId: string;
|
|
148
|
-
userProperties: Record<string, unknown> | null;
|
|
149
148
|
activeSubAgentId: string;
|
|
150
149
|
lastContextResolution: string | null;
|
|
150
|
+
userProperties: Record<string, unknown> | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Get conversation history with filtering and context management
|
|
@@ -167,21 +167,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
167
167
|
id: string;
|
|
168
168
|
createdAt: string;
|
|
169
169
|
updatedAt: string;
|
|
170
|
+
projectId: string;
|
|
171
|
+
tenantId: string;
|
|
172
|
+
metadata: ConversationMetadata | null;
|
|
173
|
+
properties: Record<string, unknown> | null;
|
|
174
|
+
title: string | null;
|
|
175
|
+
agentId: string | null;
|
|
176
|
+
userId: string | null;
|
|
170
177
|
ref: {
|
|
171
178
|
type: "commit" | "tag" | "branch";
|
|
172
179
|
name: string;
|
|
173
180
|
hash: string;
|
|
174
181
|
} | null;
|
|
175
|
-
userId: string | null;
|
|
176
|
-
metadata: ConversationMetadata | null;
|
|
177
|
-
properties: Record<string, unknown> | null;
|
|
178
|
-
title: string | null;
|
|
179
|
-
agentId: string | null;
|
|
180
|
-
projectId: string;
|
|
181
|
-
tenantId: string;
|
|
182
|
-
userProperties: Record<string, unknown> | null;
|
|
183
182
|
activeSubAgentId: string;
|
|
184
183
|
lastContextResolution: string | null;
|
|
184
|
+
userProperties: Record<string, unknown> | null;
|
|
185
185
|
} | undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -10,12 +10,12 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
|
|
|
10
10
|
id: string;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
-
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
14
15
|
metadata: Record<string, unknown> | null;
|
|
16
|
+
type: string;
|
|
15
17
|
properties: Record<string, unknown> | null;
|
|
16
18
|
agentId: string | null;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
conversationId: string | null;
|
|
20
20
|
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
@@ -73,9 +73,9 @@ declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: Feedback
|
|
|
73
73
|
id: string;
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
|
-
type: "positive" | "negative";
|
|
77
76
|
projectId: string;
|
|
78
77
|
tenantId: string;
|
|
78
|
+
type: "positive" | "negative";
|
|
79
79
|
conversationId: string;
|
|
80
80
|
messageId: string | null;
|
|
81
81
|
details: string | null;
|
|
@@ -103,9 +103,9 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
103
103
|
id: string;
|
|
104
104
|
createdAt: string;
|
|
105
105
|
updatedAt: string;
|
|
106
|
-
type: "positive" | "negative";
|
|
107
106
|
projectId: string;
|
|
108
107
|
tenantId: string;
|
|
108
|
+
type: "positive" | "negative";
|
|
109
109
|
conversationId: string;
|
|
110
110
|
messageId: string | null;
|
|
111
111
|
details: string | null;
|
|
@@ -11,15 +11,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
+
content: MessageContent;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
properties: Record<string, unknown> | null;
|
|
19
17
|
projectId: string;
|
|
20
18
|
tenantId: string;
|
|
21
|
-
|
|
19
|
+
metadata: MessageMetadata | null;
|
|
20
|
+
properties: Record<string, unknown> | null;
|
|
22
21
|
conversationId: string;
|
|
22
|
+
role: string;
|
|
23
23
|
userProperties: Record<string, unknown> | null;
|
|
24
24
|
fromSubAgentId: string | null;
|
|
25
25
|
toSubAgentId: string | null;
|
|
@@ -155,15 +155,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
+
content: MessageContent;
|
|
158
159
|
createdAt: string;
|
|
159
160
|
updatedAt: string;
|
|
160
|
-
metadata: MessageMetadata | null;
|
|
161
|
-
role: string;
|
|
162
|
-
properties: Record<string, unknown> | null;
|
|
163
161
|
projectId: string;
|
|
164
162
|
tenantId: string;
|
|
165
|
-
|
|
163
|
+
metadata: MessageMetadata | null;
|
|
164
|
+
properties: Record<string, unknown> | null;
|
|
166
165
|
conversationId: string;
|
|
166
|
+
role: string;
|
|
167
167
|
userProperties: Record<string, unknown> | null;
|
|
168
168
|
fromSubAgentId: string | null;
|
|
169
169
|
toSubAgentId: string | null;
|
|
@@ -212,15 +212,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
214
|
id: string;
|
|
215
|
+
content: MessageContent;
|
|
215
216
|
createdAt: string;
|
|
216
217
|
updatedAt: string;
|
|
217
|
-
metadata: MessageMetadata | null;
|
|
218
|
-
role: string;
|
|
219
|
-
properties: Record<string, unknown> | null;
|
|
220
218
|
projectId: string;
|
|
221
219
|
tenantId: string;
|
|
222
|
-
|
|
220
|
+
metadata: MessageMetadata | null;
|
|
221
|
+
properties: Record<string, unknown> | null;
|
|
223
222
|
conversationId: string;
|
|
223
|
+
role: string;
|
|
224
224
|
userProperties: Record<string, unknown> | null;
|
|
225
225
|
fromSubAgentId: string | null;
|
|
226
226
|
toSubAgentId: string | null;
|
|
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
43
|
-
status: "pending" | "
|
|
43
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
44
44
|
scheduledFor: string;
|
|
45
45
|
startedAt: string | null;
|
|
46
46
|
completedAt: string | null;
|
|
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
|
|
|
199
199
|
name: string;
|
|
200
200
|
hash: string;
|
|
201
201
|
} | null;
|
|
202
|
-
status: "pending" | "
|
|
202
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
203
203
|
scheduledFor: string;
|
|
204
204
|
startedAt: string | null;
|
|
205
205
|
completedAt: string | null;
|
|
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
|
|
|
239
239
|
name: string;
|
|
240
240
|
hash: string;
|
|
241
241
|
} | null;
|
|
242
|
-
status: "pending" | "
|
|
242
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
243
243
|
scheduledFor: string;
|
|
244
244
|
startedAt: string | null;
|
|
245
245
|
completedAt: string | null;
|
|
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
|
|
|
292
292
|
name: string;
|
|
293
293
|
hash: string;
|
|
294
294
|
} | null;
|
|
295
|
-
status: "pending" | "
|
|
295
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -16,8 +16,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
18
|
createdAt: string;
|
|
19
|
-
userId: string;
|
|
20
19
|
tenantId: string;
|
|
20
|
+
userId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
23
23
|
declare const deleteScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -10,18 +10,18 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
10
10
|
id: string;
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
agentId: string;
|
|
17
|
+
subAgentId: string;
|
|
13
18
|
ref: {
|
|
14
19
|
type: "commit" | "tag" | "branch";
|
|
15
20
|
name: string;
|
|
16
21
|
hash: string;
|
|
17
22
|
} | null;
|
|
18
|
-
metadata: TaskMetadataConfig | null;
|
|
19
23
|
status: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
projectId: string;
|
|
22
|
-
tenantId: string;
|
|
23
24
|
contextId: string;
|
|
24
|
-
subAgentId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|