@inkeep/agents-core 0.0.0-dev-20260406161920 → 0.0.0-dev-20260406185511
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/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/constants/otel-attributes.d.ts +1 -0
- package/dist/constants/otel-attributes.js +1 -0
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +31 -31
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- 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 +16 -16
- package/dist/data-access/manage/skills.d.ts +15 -15
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/apps.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/feedback.d.ts +101 -0
- package/dist/data-access/runtime/feedback.js +83 -0
- 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/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 +573 -395
- package/dist/db/runtime/runtime-schema.js +73 -2
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- 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 +64 -64
- package/dist/validation/schemas.d.ts +2894 -2466
- package/dist/validation/schemas.js +24 -2
- package/drizzle/runtime/0034_simple_sphinx.sql +17 -0
- package/drizzle/runtime/meta/0034_snapshot.json +5288 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
15
15
|
total: number;
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
|
+
title: string | null;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
21
|
+
agentId: string | null;
|
|
18
22
|
id: string;
|
|
23
|
+
metadata: ConversationMetadata | null;
|
|
19
24
|
ref: {
|
|
20
25
|
type: "commit" | "tag" | "branch";
|
|
21
26
|
name: string;
|
|
22
27
|
hash: string;
|
|
23
28
|
} | null;
|
|
24
|
-
title: string | null;
|
|
25
29
|
createdAt: string;
|
|
26
30
|
updatedAt: string;
|
|
27
|
-
tenantId: string;
|
|
28
|
-
projectId: string;
|
|
29
|
-
agentId: string | null;
|
|
30
31
|
userId: string | null;
|
|
31
|
-
metadata: ConversationMetadata | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
84
84
|
scopes: ProjectScopeConfig;
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
+
title: string | null;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string | null;
|
|
87
91
|
id: string;
|
|
92
|
+
metadata: ConversationMetadata | null;
|
|
88
93
|
ref: {
|
|
89
94
|
type: "commit" | "tag" | "branch";
|
|
90
95
|
name: string;
|
|
91
96
|
hash: string;
|
|
92
97
|
} | null;
|
|
93
|
-
title: string | null;
|
|
94
98
|
createdAt: string;
|
|
95
99
|
updatedAt: string;
|
|
96
|
-
tenantId: string;
|
|
97
|
-
projectId: string;
|
|
98
|
-
agentId: string | null;
|
|
99
100
|
userId: string | null;
|
|
100
|
-
metadata: ConversationMetadata | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
120
120
|
metadata?: ConversationMetadata | null | undefined;
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
|
+
title: string | null;
|
|
124
|
+
tenantId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
agentId: string | null;
|
|
123
127
|
id: string;
|
|
128
|
+
metadata: ConversationMetadata | null;
|
|
124
129
|
ref: {
|
|
125
130
|
type: "commit" | "tag" | "branch";
|
|
126
131
|
name: string;
|
|
127
132
|
hash: string;
|
|
128
133
|
} | null;
|
|
129
|
-
title: string | null;
|
|
130
134
|
createdAt: string;
|
|
131
135
|
updatedAt: string;
|
|
132
|
-
tenantId: string;
|
|
133
|
-
projectId: string;
|
|
134
|
-
agentId: string | null;
|
|
135
136
|
userId: string | null;
|
|
136
|
-
metadata: ConversationMetadata | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
|
+
title: string | null;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
projectId: string;
|
|
158
|
+
agentId: string | null;
|
|
155
159
|
id: string;
|
|
160
|
+
metadata: ConversationMetadata | null;
|
|
156
161
|
ref: {
|
|
157
162
|
type: "commit" | "tag" | "branch";
|
|
158
163
|
name: string;
|
|
159
164
|
hash: string;
|
|
160
165
|
} | null;
|
|
161
|
-
title: string | null;
|
|
162
166
|
createdAt: string;
|
|
163
167
|
updatedAt: string;
|
|
164
|
-
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
agentId: string | null;
|
|
167
168
|
userId: string | null;
|
|
168
|
-
metadata: ConversationMetadata | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
|
+
import { PaginationConfig } from "../../types/utility.js";
|
|
3
|
+
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
|
+
import { FeedbackInsert, FeedbackUpdate } from "../../types/entities.js";
|
|
6
|
+
|
|
7
|
+
//#region src/data-access/runtime/feedback.d.ts
|
|
8
|
+
declare const getFeedbackById: (db: AgentsRunDatabaseClient) => (params: {
|
|
9
|
+
scopes: ProjectScopeConfig;
|
|
10
|
+
feedbackId: string;
|
|
11
|
+
}) => Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
conversationId: string;
|
|
14
|
+
messageId: string | null;
|
|
15
|
+
type: "positive" | "negative";
|
|
16
|
+
details: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}>;
|
|
20
|
+
declare const listFeedbackByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
21
|
+
scopes: ProjectScopeConfig;
|
|
22
|
+
conversationId: string;
|
|
23
|
+
messageId?: string;
|
|
24
|
+
pagination?: PaginationConfig;
|
|
25
|
+
}) => Promise<{
|
|
26
|
+
feedback: {
|
|
27
|
+
id: string;
|
|
28
|
+
conversationId: string;
|
|
29
|
+
messageId: string | null;
|
|
30
|
+
type: "positive" | "negative";
|
|
31
|
+
details: string | null;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
agentId: string | null;
|
|
35
|
+
}[];
|
|
36
|
+
total: number;
|
|
37
|
+
}>;
|
|
38
|
+
declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
|
+
scopes: ProjectScopeConfig;
|
|
40
|
+
conversationId?: string;
|
|
41
|
+
messageId?: string;
|
|
42
|
+
agentId?: string;
|
|
43
|
+
type?: "positive" | "negative";
|
|
44
|
+
startDate?: string;
|
|
45
|
+
endDate?: string;
|
|
46
|
+
pagination?: PaginationConfig;
|
|
47
|
+
}) => Promise<{
|
|
48
|
+
feedback: {
|
|
49
|
+
id: string;
|
|
50
|
+
conversationId: string;
|
|
51
|
+
messageId: string | null;
|
|
52
|
+
type: "positive" | "negative";
|
|
53
|
+
details: string | null;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
updatedAt: string;
|
|
56
|
+
agentId: string | null;
|
|
57
|
+
}[];
|
|
58
|
+
total: number;
|
|
59
|
+
}>;
|
|
60
|
+
declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
|
|
61
|
+
type: "positive" | "negative";
|
|
62
|
+
tenantId: string;
|
|
63
|
+
projectId: string;
|
|
64
|
+
id: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
details: string | null;
|
|
68
|
+
conversationId: string;
|
|
69
|
+
messageId: string | null;
|
|
70
|
+
}>;
|
|
71
|
+
declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
72
|
+
scopes: ProjectScopeConfig;
|
|
73
|
+
feedbackId: string;
|
|
74
|
+
data: FeedbackUpdate;
|
|
75
|
+
}) => Promise<{
|
|
76
|
+
createdAt: string;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
conversationId: string;
|
|
79
|
+
messageId: string | null;
|
|
80
|
+
type: "positive" | "negative";
|
|
81
|
+
details: string | null;
|
|
82
|
+
projectId: string;
|
|
83
|
+
tenantId: string;
|
|
84
|
+
id: string;
|
|
85
|
+
}>;
|
|
86
|
+
declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
|
|
87
|
+
scopes: ProjectScopeConfig;
|
|
88
|
+
feedbackId: string;
|
|
89
|
+
}) => Promise<{
|
|
90
|
+
type: "positive" | "negative";
|
|
91
|
+
tenantId: string;
|
|
92
|
+
projectId: string;
|
|
93
|
+
id: string;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
details: string | null;
|
|
97
|
+
conversationId: string;
|
|
98
|
+
messageId: string | null;
|
|
99
|
+
}>;
|
|
100
|
+
//#endregion
|
|
101
|
+
export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { conversations, feedback } from "../../db/runtime/runtime-schema.js";
|
|
2
|
+
import { projectScopedWhere } from "../manage/scope-helpers.js";
|
|
3
|
+
import { and, count, desc, eq, gte, lte } from "drizzle-orm";
|
|
4
|
+
|
|
5
|
+
//#region src/data-access/runtime/feedback.ts
|
|
6
|
+
const getFeedbackById = (db) => async (params) => {
|
|
7
|
+
const [result] = await db.select({
|
|
8
|
+
id: feedback.id,
|
|
9
|
+
conversationId: feedback.conversationId,
|
|
10
|
+
messageId: feedback.messageId,
|
|
11
|
+
type: feedback.type,
|
|
12
|
+
details: feedback.details,
|
|
13
|
+
createdAt: feedback.createdAt,
|
|
14
|
+
updatedAt: feedback.updatedAt
|
|
15
|
+
}).from(feedback).where(and(projectScopedWhere(feedback, params.scopes), eq(feedback.id, params.feedbackId))).limit(1);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
const listFeedbackByConversation = (db) => async (params) => {
|
|
19
|
+
return listFeedback(db)({
|
|
20
|
+
scopes: params.scopes,
|
|
21
|
+
conversationId: params.conversationId,
|
|
22
|
+
messageId: params.messageId,
|
|
23
|
+
pagination: params.pagination
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const listFeedback = (db) => async (params) => {
|
|
27
|
+
const page = params.pagination?.page || 1;
|
|
28
|
+
const limit = Math.min(params.pagination?.limit || 10, 100);
|
|
29
|
+
const offset = (page - 1) * limit;
|
|
30
|
+
const conditions = [projectScopedWhere(feedback, params.scopes)];
|
|
31
|
+
if (params.conversationId) conditions.push(eq(feedback.conversationId, params.conversationId));
|
|
32
|
+
if (params.messageId) conditions.push(eq(feedback.messageId, params.messageId));
|
|
33
|
+
if (params.type) conditions.push(eq(feedback.type, params.type));
|
|
34
|
+
if (params.startDate) conditions.push(gte(feedback.createdAt, `${params.startDate}T00:00:00.000Z`));
|
|
35
|
+
if (params.endDate) conditions.push(lte(feedback.createdAt, `${params.endDate}T23:59:59.999Z`));
|
|
36
|
+
if (params.agentId) conditions.push(eq(conversations.agentId, params.agentId));
|
|
37
|
+
const whereClause = and(...conditions);
|
|
38
|
+
const conversationsJoin = [
|
|
39
|
+
eq(feedback.tenantId, conversations.tenantId),
|
|
40
|
+
eq(feedback.projectId, conversations.projectId),
|
|
41
|
+
eq(feedback.conversationId, conversations.id)
|
|
42
|
+
];
|
|
43
|
+
const countQuery = db.select({ count: count() }).from(feedback);
|
|
44
|
+
if (params.agentId) countQuery.leftJoin(conversations, and(...conversationsJoin));
|
|
45
|
+
const [items, total] = await Promise.all([db.select({
|
|
46
|
+
id: feedback.id,
|
|
47
|
+
conversationId: feedback.conversationId,
|
|
48
|
+
messageId: feedback.messageId,
|
|
49
|
+
type: feedback.type,
|
|
50
|
+
details: feedback.details,
|
|
51
|
+
createdAt: feedback.createdAt,
|
|
52
|
+
updatedAt: feedback.updatedAt,
|
|
53
|
+
agentId: conversations.agentId
|
|
54
|
+
}).from(feedback).leftJoin(conversations, and(...conversationsJoin)).where(whereClause).limit(limit).offset(offset).orderBy(desc(feedback.createdAt)), countQuery.where(whereClause)]);
|
|
55
|
+
return {
|
|
56
|
+
feedback: items,
|
|
57
|
+
total: typeof total[0]?.count === "string" ? Number.parseInt(total[0].count, 10) : total[0]?.count ?? 0
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
const createFeedback = (db) => async (params) => {
|
|
61
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
62
|
+
const [created] = await db.insert(feedback).values({
|
|
63
|
+
...params,
|
|
64
|
+
createdAt: now,
|
|
65
|
+
updatedAt: now
|
|
66
|
+
}).returning();
|
|
67
|
+
return created;
|
|
68
|
+
};
|
|
69
|
+
const updateFeedback = (db) => async (params) => {
|
|
70
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
71
|
+
const [updated] = await db.update(feedback).set({
|
|
72
|
+
...params.data,
|
|
73
|
+
updatedAt: now
|
|
74
|
+
}).where(and(projectScopedWhere(feedback, params.scopes), eq(feedback.id, params.feedbackId))).returning();
|
|
75
|
+
return updated;
|
|
76
|
+
};
|
|
77
|
+
const deleteFeedback = (db) => async (params) => {
|
|
78
|
+
const [deleted] = await db.delete(feedback).where(and(projectScopedWhere(feedback, params.scopes), eq(feedback.id, params.feedbackId))).returning();
|
|
79
|
+
return deleted;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
|
|
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
scopes: ProjectScopeConfig;
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
id: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
13
|
tenantId: string;
|
|
17
14
|
projectId: string;
|
|
18
|
-
|
|
15
|
+
id: string;
|
|
19
16
|
metadata: MessageMetadata | null;
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
content: MessageContent;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
22
20
|
fromSubAgentId: string | null;
|
|
23
21
|
toSubAgentId: string | null;
|
|
24
22
|
fromExternalAgentId: string | null;
|
|
25
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
role: string;
|
|
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: {
|
|
@@ -144,26 +144,26 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
144
144
|
scopes: ProjectScopeConfig;
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
|
-
id: string;
|
|
148
|
-
createdAt: string;
|
|
149
|
-
updatedAt: string;
|
|
150
147
|
tenantId: string;
|
|
151
148
|
projectId: string;
|
|
152
|
-
|
|
149
|
+
id: string;
|
|
153
150
|
metadata: MessageMetadata | null;
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
content: MessageContent;
|
|
152
|
+
createdAt: string;
|
|
153
|
+
updatedAt: string;
|
|
156
154
|
fromSubAgentId: string | null;
|
|
157
155
|
toSubAgentId: string | null;
|
|
158
156
|
fromExternalAgentId: string | null;
|
|
159
157
|
toExternalAgentId: string | null;
|
|
158
|
+
taskId: string | null;
|
|
159
|
+
a2aTaskId: string | null;
|
|
160
|
+
role: string;
|
|
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: {
|
|
@@ -197,26 +197,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
scopes: ProjectScopeConfig;
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
|
-
id: string;
|
|
201
|
-
createdAt: string;
|
|
202
|
-
updatedAt: string;
|
|
203
200
|
tenantId: string;
|
|
204
201
|
projectId: string;
|
|
205
|
-
|
|
202
|
+
id: string;
|
|
206
203
|
metadata: MessageMetadata | null;
|
|
207
|
-
|
|
208
|
-
|
|
204
|
+
content: MessageContent;
|
|
205
|
+
createdAt: string;
|
|
206
|
+
updatedAt: string;
|
|
209
207
|
fromSubAgentId: string | null;
|
|
210
208
|
toSubAgentId: string | null;
|
|
211
209
|
fromExternalAgentId: string | null;
|
|
212
210
|
toExternalAgentId: string | null;
|
|
211
|
+
taskId: string | null;
|
|
212
|
+
a2aTaskId: string | null;
|
|
213
|
+
role: string;
|
|
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: {
|
|
@@ -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,7 +7,13 @@ 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
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
subAgentId: string;
|
|
10
14
|
id: string;
|
|
15
|
+
metadata: TaskMetadataConfig | null;
|
|
16
|
+
status: string;
|
|
11
17
|
ref: {
|
|
12
18
|
type: "commit" | "tag" | "branch";
|
|
13
19
|
name: string;
|
|
@@ -15,12 +21,6 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
15
21
|
} | null;
|
|
16
22
|
createdAt: string;
|
|
17
23
|
updatedAt: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
metadata: TaskMetadataConfig | null;
|
|
22
|
-
subAgentId: string;
|
|
23
|
-
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as drizzle_orm_pg_core1342 from "drizzle-orm/pg-core";
|
|
2
2
|
|
|
3
3
|
//#region src/db/manage/dolt-safe-jsonb.d.ts
|
|
4
4
|
declare function encodeBackslashes(value: unknown): unknown;
|
|
@@ -7,6 +7,6 @@ declare function decodeBackslashes(value: unknown): unknown;
|
|
|
7
7
|
* Drop-in replacement for drizzle-orm's `jsonb()`.
|
|
8
8
|
* Encodes backslashes on write and decodes on read to work around the Doltgres bug.
|
|
9
9
|
*/
|
|
10
|
-
declare function jsonb(name: string): ReturnType<typeof
|
|
10
|
+
declare function jsonb(name: string): ReturnType<typeof drizzle_orm_pg_core1342.jsonb>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { decodeBackslashes, encodeBackslashes, jsonb };
|