@inkeep/agents-core 0.73.1 → 0.73.3
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 +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +46 -46
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +7 -7
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +24 -24
- 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 +6 -6
- package/dist/db/manage/manage-schema.d.ts +487 -487
- package/dist/db/runtime/runtime-schema.d.ts +453 -453
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_e422349b438eb7189cab8b1648fc0621 → vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_fc26da61d3f761277fbc021fa297f7ea}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/test-utils/mocks/logger.js +1 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/schemas/skills.d.ts +39 -39
- package/dist/validation/schemas.d.ts +2184 -2184
- package/package.json +4 -4
|
@@ -15,24 +15,24 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
tenantId: string;
|
|
19
|
+
projectId: string;
|
|
18
20
|
id: string;
|
|
21
|
+
metadata: ConversationMetadata | null;
|
|
19
22
|
properties: Record<string, unknown> | null;
|
|
20
23
|
title: string | null;
|
|
24
|
+
agentId: string | null;
|
|
21
25
|
createdAt: string;
|
|
22
26
|
updatedAt: string;
|
|
23
|
-
tenantId: string;
|
|
24
|
-
metadata: ConversationMetadata | null;
|
|
25
|
-
projectId: string;
|
|
26
|
-
agentId: string | null;
|
|
27
|
-
userId: string | null;
|
|
28
|
-
activeSubAgentId: string;
|
|
29
27
|
ref: {
|
|
30
28
|
type: "commit" | "tag" | "branch";
|
|
31
29
|
name: string;
|
|
32
30
|
hash: string;
|
|
33
31
|
} | null;
|
|
34
|
-
|
|
32
|
+
userId: string | null;
|
|
35
33
|
userProperties: Record<string, unknown> | null;
|
|
34
|
+
activeSubAgentId: string;
|
|
35
|
+
lastContextResolution: string | null;
|
|
36
36
|
}>;
|
|
37
37
|
declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -90,24 +90,24 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
90
90
|
scopes: ProjectScopeConfig;
|
|
91
91
|
conversationId: string;
|
|
92
92
|
}) => Promise<{
|
|
93
|
+
tenantId: string;
|
|
94
|
+
projectId: string;
|
|
93
95
|
id: string;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
94
97
|
properties: Record<string, unknown> | null;
|
|
95
98
|
title: string | null;
|
|
99
|
+
agentId: string | null;
|
|
96
100
|
createdAt: string;
|
|
97
101
|
updatedAt: string;
|
|
98
|
-
tenantId: string;
|
|
99
|
-
metadata: ConversationMetadata | null;
|
|
100
|
-
projectId: string;
|
|
101
|
-
agentId: string | null;
|
|
102
|
-
userId: string | null;
|
|
103
|
-
activeSubAgentId: string;
|
|
104
102
|
ref: {
|
|
105
103
|
type: "commit" | "tag" | "branch";
|
|
106
104
|
name: string;
|
|
107
105
|
hash: string;
|
|
108
106
|
} | null;
|
|
109
|
-
|
|
107
|
+
userId: string | null;
|
|
110
108
|
userProperties: Record<string, unknown> | null;
|
|
109
|
+
activeSubAgentId: string;
|
|
110
|
+
lastContextResolution: string | null;
|
|
111
111
|
} | undefined>;
|
|
112
112
|
declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
|
|
113
113
|
activeSubAgentId: string;
|
|
@@ -130,24 +130,24 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
130
130
|
userProperties?: Record<string, unknown> | null | undefined;
|
|
131
131
|
properties?: Record<string, unknown> | null | undefined;
|
|
132
132
|
} | {
|
|
133
|
+
tenantId: string;
|
|
134
|
+
projectId: string;
|
|
133
135
|
id: string;
|
|
136
|
+
metadata: ConversationMetadata | null;
|
|
134
137
|
properties: Record<string, unknown> | null;
|
|
135
138
|
title: string | null;
|
|
139
|
+
agentId: string | null;
|
|
136
140
|
createdAt: string;
|
|
137
141
|
updatedAt: string;
|
|
138
|
-
tenantId: string;
|
|
139
|
-
metadata: ConversationMetadata | null;
|
|
140
|
-
projectId: string;
|
|
141
|
-
agentId: string | null;
|
|
142
|
-
userId: string | null;
|
|
143
|
-
activeSubAgentId: string;
|
|
144
142
|
ref: {
|
|
145
143
|
type: "commit" | "tag" | "branch";
|
|
146
144
|
name: string;
|
|
147
145
|
hash: string;
|
|
148
146
|
} | null;
|
|
149
|
-
|
|
147
|
+
userId: string | null;
|
|
150
148
|
userProperties: Record<string, unknown> | null;
|
|
149
|
+
activeSubAgentId: string;
|
|
150
|
+
lastContextResolution: string | null;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
153
|
* Get conversation history with filtering and context management
|
|
@@ -164,24 +164,24 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
164
164
|
scopes: ProjectScopeConfig;
|
|
165
165
|
conversationId: string;
|
|
166
166
|
}) => Promise<{
|
|
167
|
+
tenantId: string;
|
|
168
|
+
projectId: string;
|
|
167
169
|
id: string;
|
|
170
|
+
metadata: ConversationMetadata | null;
|
|
168
171
|
properties: Record<string, unknown> | null;
|
|
169
172
|
title: string | null;
|
|
173
|
+
agentId: string | null;
|
|
170
174
|
createdAt: string;
|
|
171
175
|
updatedAt: string;
|
|
172
|
-
tenantId: string;
|
|
173
|
-
metadata: ConversationMetadata | null;
|
|
174
|
-
projectId: string;
|
|
175
|
-
agentId: string | null;
|
|
176
|
-
userId: string | null;
|
|
177
|
-
activeSubAgentId: string;
|
|
178
176
|
ref: {
|
|
179
177
|
type: "commit" | "tag" | "branch";
|
|
180
178
|
name: string;
|
|
181
179
|
hash: string;
|
|
182
180
|
} | null;
|
|
183
|
-
|
|
181
|
+
userId: string | null;
|
|
184
182
|
userProperties: Record<string, unknown> | null;
|
|
183
|
+
activeSubAgentId: string;
|
|
184
|
+
lastContextResolution: string | null;
|
|
185
185
|
} | undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Set active agent for a conversation (upsert operation)
|
|
@@ -7,17 +7,17 @@ import { EventInsert } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/events.d.ts
|
|
8
8
|
declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert) => Promise<{
|
|
9
9
|
row: {
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
10
12
|
id: string;
|
|
13
|
+
metadata: Record<string, unknown> | null;
|
|
11
14
|
type: string;
|
|
12
15
|
properties: Record<string, unknown> | null;
|
|
16
|
+
agentId: string | null;
|
|
13
17
|
createdAt: string;
|
|
14
18
|
updatedAt: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
metadata: Record<string, unknown> | null;
|
|
17
|
-
projectId: string;
|
|
18
|
-
agentId: string | null;
|
|
19
|
-
userProperties: Record<string, unknown> | null;
|
|
20
19
|
conversationId: string | null;
|
|
20
|
+
userProperties: Record<string, unknown> | null;
|
|
21
21
|
messageId: string | null;
|
|
22
22
|
serverMetadata: {
|
|
23
23
|
[k: string]: unknown;
|
|
@@ -70,12 +70,12 @@ declare const getFeedbackByIds: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
}[]>;
|
|
72
72
|
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
73
|
+
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
73
75
|
id: string;
|
|
74
76
|
type: "positive" | "negative";
|
|
75
77
|
createdAt: string;
|
|
76
78
|
updatedAt: string;
|
|
77
|
-
tenantId: string;
|
|
78
|
-
projectId: string;
|
|
79
79
|
conversationId: string;
|
|
80
80
|
messageId: string | null;
|
|
81
81
|
details: string | null;
|
|
@@ -100,12 +100,12 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
100
100
|
scopes: ProjectScopeConfig;
|
|
101
101
|
feedbackId: string;
|
|
102
102
|
}) => Promise<{
|
|
103
|
+
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
103
105
|
id: string;
|
|
104
106
|
type: "positive" | "negative";
|
|
105
107
|
createdAt: string;
|
|
106
108
|
updatedAt: string;
|
|
107
|
-
tenantId: string;
|
|
108
|
-
projectId: string;
|
|
109
109
|
conversationId: string;
|
|
110
110
|
messageId: string | null;
|
|
111
111
|
details: string | null;
|
|
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
+
tenantId: string;
|
|
14
|
+
projectId: string;
|
|
13
15
|
id: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
17
|
+
content: MessageContent;
|
|
14
18
|
properties: Record<string, unknown> | null;
|
|
15
19
|
createdAt: string;
|
|
16
20
|
updatedAt: string;
|
|
17
|
-
tenantId: string;
|
|
18
|
-
metadata: MessageMetadata | null;
|
|
19
|
-
content: MessageContent;
|
|
20
|
-
projectId: string;
|
|
21
|
-
taskId: string | null;
|
|
22
|
-
visibility: string;
|
|
23
|
-
userProperties: Record<string, unknown> | null;
|
|
24
|
-
conversationId: string;
|
|
25
21
|
role: string;
|
|
22
|
+
conversationId: string;
|
|
23
|
+
userProperties: Record<string, unknown> | null;
|
|
26
24
|
fromSubAgentId: string | null;
|
|
27
25
|
toSubAgentId: string | null;
|
|
28
26
|
fromExternalAgentId: string | null;
|
|
29
27
|
toExternalAgentId: string | null;
|
|
30
28
|
fromTeamAgentId: string | null;
|
|
31
29
|
toTeamAgentId: string | null;
|
|
30
|
+
visibility: string;
|
|
32
31
|
messageType: string;
|
|
32
|
+
taskId: string | null;
|
|
33
33
|
parentMessageId: string | null;
|
|
34
34
|
a2aTaskId: string | null;
|
|
35
35
|
a2aSessionId: string | null;
|
|
@@ -154,26 +154,26 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
154
154
|
scopes: ProjectScopeConfig;
|
|
155
155
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
156
156
|
}) => Promise<{
|
|
157
|
+
tenantId: string;
|
|
158
|
+
projectId: string;
|
|
157
159
|
id: string;
|
|
160
|
+
metadata: MessageMetadata | null;
|
|
161
|
+
content: MessageContent;
|
|
158
162
|
properties: Record<string, unknown> | null;
|
|
159
163
|
createdAt: string;
|
|
160
164
|
updatedAt: string;
|
|
161
|
-
tenantId: string;
|
|
162
|
-
metadata: MessageMetadata | null;
|
|
163
|
-
content: MessageContent;
|
|
164
|
-
projectId: string;
|
|
165
|
-
taskId: string | null;
|
|
166
|
-
visibility: string;
|
|
167
|
-
userProperties: Record<string, unknown> | null;
|
|
168
|
-
conversationId: string;
|
|
169
165
|
role: string;
|
|
166
|
+
conversationId: string;
|
|
167
|
+
userProperties: Record<string, unknown> | null;
|
|
170
168
|
fromSubAgentId: string | null;
|
|
171
169
|
toSubAgentId: string | null;
|
|
172
170
|
fromExternalAgentId: string | null;
|
|
173
171
|
toExternalAgentId: string | null;
|
|
174
172
|
fromTeamAgentId: string | null;
|
|
175
173
|
toTeamAgentId: string | null;
|
|
174
|
+
visibility: string;
|
|
176
175
|
messageType: string;
|
|
176
|
+
taskId: string | null;
|
|
177
177
|
parentMessageId: string | null;
|
|
178
178
|
a2aTaskId: string | null;
|
|
179
179
|
a2aSessionId: string | null;
|
|
@@ -211,26 +211,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
211
211
|
scopes: ProjectScopeConfig;
|
|
212
212
|
messageId: string;
|
|
213
213
|
}) => Promise<{
|
|
214
|
+
tenantId: string;
|
|
215
|
+
projectId: string;
|
|
214
216
|
id: string;
|
|
217
|
+
metadata: MessageMetadata | null;
|
|
218
|
+
content: MessageContent;
|
|
215
219
|
properties: Record<string, unknown> | null;
|
|
216
220
|
createdAt: string;
|
|
217
221
|
updatedAt: string;
|
|
218
|
-
tenantId: string;
|
|
219
|
-
metadata: MessageMetadata | null;
|
|
220
|
-
content: MessageContent;
|
|
221
|
-
projectId: string;
|
|
222
|
-
taskId: string | null;
|
|
223
|
-
visibility: string;
|
|
224
|
-
userProperties: Record<string, unknown> | null;
|
|
225
|
-
conversationId: string;
|
|
226
222
|
role: string;
|
|
223
|
+
conversationId: string;
|
|
224
|
+
userProperties: Record<string, unknown> | null;
|
|
227
225
|
fromSubAgentId: string | null;
|
|
228
226
|
toSubAgentId: string | null;
|
|
229
227
|
fromExternalAgentId: string | null;
|
|
230
228
|
toExternalAgentId: string | null;
|
|
231
229
|
fromTeamAgentId: string | null;
|
|
232
230
|
toTeamAgentId: string | null;
|
|
231
|
+
visibility: string;
|
|
233
232
|
messageType: string;
|
|
233
|
+
taskId: string | null;
|
|
234
234
|
parentMessageId: string | null;
|
|
235
235
|
a2aTaskId: string | null;
|
|
236
236
|
a2aSessionId: string | null;
|
|
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|
|
43
|
-
status: "
|
|
43
|
+
status: "pending" | "failed" | "running" | "completed" | "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: "
|
|
202
|
+
status: "pending" | "failed" | "running" | "completed" | "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: "
|
|
242
|
+
status: "pending" | "failed" | "running" | "completed" | "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: "
|
|
295
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
296
296
|
scheduledFor: string;
|
|
297
297
|
startedAt: string | null;
|
|
298
298
|
completedAt: string | null;
|
|
@@ -15,8 +15,8 @@ declare const createScheduledTriggerUser: (db: AgentsRunDatabaseClient) => (para
|
|
|
15
15
|
scheduledTriggerId: string;
|
|
16
16
|
userId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
createdAt: string;
|
|
19
18
|
tenantId: string;
|
|
19
|
+
createdAt: string;
|
|
20
20
|
userId: string;
|
|
21
21
|
scheduledTriggerId: string;
|
|
22
22
|
}>;
|
|
@@ -7,21 +7,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
|
-
id: string;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
updatedAt: string;
|
|
13
10
|
tenantId: string;
|
|
14
|
-
metadata: TaskMetadataConfig | null;
|
|
15
11
|
projectId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
metadata: TaskMetadataConfig | null;
|
|
16
14
|
agentId: string;
|
|
17
15
|
subAgentId: string;
|
|
18
|
-
|
|
16
|
+
status: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
ref: {
|
|
20
20
|
type: "commit" | "tag" | "branch";
|
|
21
21
|
name: string;
|
|
22
22
|
hash: string;
|
|
23
23
|
} | null;
|
|
24
|
-
|
|
24
|
+
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|