@inkeep/agents-core 0.0.0-dev-20260325193448 → 0.0.0-dev-20260325201121

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.
Files changed (29) hide show
  1. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/client-exports.d.ts +3 -3
  4. package/dist/data-access/manage/agents.d.ts +43 -43
  5. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  6. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  7. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  8. package/dist/data-access/manage/functionTools.d.ts +20 -20
  9. package/dist/data-access/manage/skills.d.ts +17 -17
  10. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  11. package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
  12. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgents.d.ts +21 -21
  14. package/dist/data-access/manage/tools.d.ts +24 -24
  15. package/dist/data-access/manage/triggers.d.ts +2 -2
  16. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  17. package/dist/data-access/runtime/apps.d.ts +12 -12
  18. package/dist/data-access/runtime/conversations.d.ts +18 -18
  19. package/dist/data-access/runtime/conversations.js +17 -1
  20. package/dist/data-access/runtime/messages.d.ts +15 -15
  21. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  22. package/dist/data-access/runtime/tasks.d.ts +3 -3
  23. package/dist/db/manage/manage-schema.d.ts +361 -361
  24. package/dist/db/runtime/runtime-schema.d.ts +2 -2
  25. package/dist/types/utility.d.ts +1 -0
  26. package/dist/utils/error.d.ts +51 -51
  27. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  28. package/dist/validation/schemas.d.ts +1990 -1990
  29. package/package.json +1 -1
@@ -113,13 +113,29 @@ function applyContextWindowManagement(messageHistory, maxTokens) {
113
113
  totalTokens += messageTokens;
114
114
  } else {
115
115
  if (i > 0) {
116
+ const referenceMessage = messageHistory[0];
116
117
  const summaryMessage = {
117
118
  id: `summary-${getConversationId()}`,
119
+ tenantId: referenceMessage.tenantId,
120
+ projectId: referenceMessage.projectId,
121
+ conversationId: referenceMessage.conversationId,
118
122
  role: "system",
123
+ fromSubAgentId: null,
124
+ toSubAgentId: null,
125
+ fromExternalAgentId: null,
126
+ toExternalAgentId: null,
127
+ fromTeamAgentId: null,
128
+ toTeamAgentId: null,
119
129
  content: { text: `[Previous conversation history truncated - ${i + 1} earlier messages]` },
120
130
  visibility: "system",
121
131
  messageType: "chat",
122
- createdAt: messageHistory[0].createdAt
132
+ taskId: null,
133
+ parentMessageId: null,
134
+ a2aTaskId: null,
135
+ a2aSessionId: null,
136
+ metadata: null,
137
+ createdAt: referenceMessage.createdAt,
138
+ updatedAt: referenceMessage.updatedAt
123
139
  };
124
140
  managedHistory.unshift(summaryMessage);
125
141
  }
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
11
11
  messageId: string;
12
12
  }) => Promise<{
13
13
  id: string;
14
- tenantId: string;
15
- projectId: string;
16
14
  createdAt: string;
17
15
  updatedAt: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  metadata: MessageMetadata | null;
19
19
  content: MessageContent;
20
20
  role: string;
21
- conversationId: string;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
147
  id: string;
148
- tenantId: string;
149
- projectId: string;
150
148
  createdAt: string;
151
149
  updatedAt: string;
150
+ projectId: string;
151
+ tenantId: string;
152
152
  metadata: MessageMetadata | null;
153
153
  content: MessageContent;
154
154
  role: string;
155
- conversationId: string;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
198
198
  messageId: string;
199
199
  }) => Promise<{
200
200
  id: string;
201
- tenantId: string;
202
- projectId: string;
203
201
  createdAt: string;
204
202
  updatedAt: string;
203
+ projectId: string;
204
+ tenantId: string;
205
205
  metadata: MessageMetadata | null;
206
206
  content: MessageContent;
207
207
  role: string;
208
- conversationId: string;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -39,7 +39,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
39
39
  name: string;
40
40
  hash: string;
41
41
  } | null;
42
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
42
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
43
  scheduledFor: string;
44
44
  startedAt: string | null;
45
45
  completedAt: string | null;
@@ -193,7 +193,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
193
193
  name: string;
194
194
  hash: string;
195
195
  } | null;
196
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
196
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
197
197
  scheduledFor: string;
198
198
  startedAt: string | null;
199
199
  completedAt: string | null;
@@ -232,7 +232,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
232
232
  name: string;
233
233
  hash: string;
234
234
  } | null;
235
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
235
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
236
236
  scheduledFor: string;
237
237
  startedAt: string | null;
238
238
  completedAt: string | null;
@@ -8,11 +8,11 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
10
  id: string;
11
- tenantId: string;
12
- projectId: string;
13
- agentId: string;
14
11
  createdAt: string;
15
12
  updatedAt: string;
13
+ agentId: string;
14
+ projectId: string;
15
+ tenantId: string;
16
16
  metadata: TaskMetadataConfig | null;
17
17
  ref: {
18
18
  type: "commit" | "tag" | "branch";