@inkeep/agents-core 0.0.0-dev-20260323182205 → 0.0.0-dev-20260324095902
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-validation-schemas.d.ts +154 -154
- 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/constants/signoz-queries.d.ts +30 -106
- package/dist/constants/signoz-queries.js +55 -108
- package/dist/data-access/manage/agents.d.ts +15 -15
- 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 +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +9 -9
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +332 -332
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/schema-conversion.d.ts +27 -1
- package/dist/utils/schema-conversion.js +68 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2008 -2008
- package/package.json +1 -1
|
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
|
|
23
|
+
name: string;
|
|
24
24
|
id: string;
|
|
25
|
-
tenantId: string;
|
|
26
25
|
createdAt: string;
|
|
27
|
-
name: string;
|
|
28
26
|
updatedAt: string;
|
|
29
27
|
projectId: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
30
31
|
config: {
|
|
31
32
|
type: "mcp";
|
|
32
33
|
mcp: ToolMcpConfig;
|
|
33
34
|
};
|
|
34
35
|
credentialReferenceId: string | null;
|
|
35
36
|
credentialScope: string;
|
|
36
|
-
headers: Record<string, string> | null;
|
|
37
37
|
imageUrl: string | null;
|
|
38
38
|
capabilities: ToolServerCapabilities | null;
|
|
39
39
|
lastError: string | null;
|
|
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
78
78
|
};
|
|
79
79
|
}>;
|
|
80
80
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
81
|
-
|
|
81
|
+
name: string;
|
|
82
82
|
id: string;
|
|
83
|
-
tenantId: string;
|
|
84
83
|
createdAt: string;
|
|
85
|
-
name: string;
|
|
86
84
|
updatedAt: string;
|
|
87
85
|
projectId: string;
|
|
86
|
+
tenantId: string;
|
|
87
|
+
description: string | null;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
88
89
|
config: {
|
|
89
90
|
type: "mcp";
|
|
90
91
|
mcp: ToolMcpConfig;
|
|
91
92
|
};
|
|
92
93
|
credentialReferenceId: string | null;
|
|
93
94
|
credentialScope: string;
|
|
94
|
-
headers: Record<string, string> | null;
|
|
95
95
|
imageUrl: string | null;
|
|
96
96
|
capabilities: ToolServerCapabilities | null;
|
|
97
97
|
lastError: string | null;
|
|
@@ -136,11 +136,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
138
|
id: string;
|
|
139
|
-
tenantId: string;
|
|
140
139
|
createdAt: string;
|
|
141
140
|
updatedAt: string;
|
|
142
141
|
agentId: string;
|
|
143
142
|
projectId: string;
|
|
143
|
+
tenantId: string;
|
|
144
144
|
subAgentId: string;
|
|
145
145
|
toolId: string;
|
|
146
146
|
headers: Record<string, string> | null;
|
|
@@ -155,11 +155,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
157
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
158
|
createdAt: string;
|
|
160
159
|
updatedAt: string;
|
|
161
160
|
agentId: string;
|
|
162
161
|
projectId: string;
|
|
162
|
+
tenantId: string;
|
|
163
163
|
subAgentId: string;
|
|
164
164
|
toolId: string;
|
|
165
165
|
headers: Record<string, string> | null;
|
|
@@ -183,11 +183,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
185
|
id: string;
|
|
186
|
-
tenantId: string;
|
|
187
186
|
createdAt: string;
|
|
188
187
|
updatedAt: string;
|
|
189
188
|
agentId: string;
|
|
190
189
|
projectId: string;
|
|
190
|
+
tenantId: string;
|
|
191
191
|
subAgentId: string;
|
|
192
192
|
toolId: string;
|
|
193
193
|
headers: Record<string, string> | null;
|
|
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
202
202
|
declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
203
203
|
data: ToolInsert;
|
|
204
204
|
}) => Promise<{
|
|
205
|
-
|
|
205
|
+
name: string;
|
|
206
206
|
id: string;
|
|
207
|
-
tenantId: string;
|
|
208
207
|
createdAt: string;
|
|
209
|
-
name: string;
|
|
210
208
|
updatedAt: string;
|
|
211
209
|
projectId: string;
|
|
210
|
+
tenantId: string;
|
|
211
|
+
description: string | null;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
212
213
|
config: {
|
|
213
214
|
type: "mcp";
|
|
214
215
|
mcp: ToolMcpConfig;
|
|
215
216
|
};
|
|
216
217
|
credentialReferenceId: string | null;
|
|
217
218
|
credentialScope: string;
|
|
218
|
-
headers: Record<string, string> | null;
|
|
219
219
|
imageUrl: string | null;
|
|
220
220
|
capabilities: ToolServerCapabilities | null;
|
|
221
221
|
lastError: string | null;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
name: string | null;
|
|
11
12
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
13
|
createdAt: string;
|
|
14
|
-
name: string | null;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
agentId: string;
|
|
17
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
expiresAt: string | null;
|
|
19
|
-
lastUsedAt: string | null;
|
|
20
19
|
publicId: string;
|
|
21
20
|
keyHash: string;
|
|
22
21
|
keyPrefix: string;
|
|
22
|
+
lastUsedAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
+
name: string | null;
|
|
25
26
|
id: string;
|
|
26
|
-
tenantId: string;
|
|
27
27
|
createdAt: string;
|
|
28
|
-
name: string | null;
|
|
29
28
|
updatedAt: string;
|
|
30
29
|
agentId: string;
|
|
31
30
|
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
32
|
expiresAt: string | null;
|
|
33
|
-
lastUsedAt: string | null;
|
|
34
33
|
publicId: string;
|
|
35
34
|
keyHash: string;
|
|
36
35
|
keyPrefix: string;
|
|
36
|
+
lastUsedAt: string | null;
|
|
37
37
|
} | undefined>;
|
|
38
38
|
declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
39
39
|
scopes: ProjectScopeConfig;
|
|
40
40
|
agentId?: string;
|
|
41
41
|
}) => Promise<{
|
|
42
|
+
name: string | null;
|
|
42
43
|
id: string;
|
|
43
|
-
tenantId: string;
|
|
44
44
|
createdAt: string;
|
|
45
|
-
name: string | null;
|
|
46
45
|
updatedAt: string;
|
|
47
46
|
agentId: string;
|
|
48
47
|
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
49
|
expiresAt: string | null;
|
|
50
|
-
lastUsedAt: string | null;
|
|
51
50
|
publicId: string;
|
|
52
51
|
keyHash: string;
|
|
53
52
|
keyPrefix: string;
|
|
53
|
+
lastUsedAt: string | null;
|
|
54
54
|
}[]>;
|
|
55
55
|
declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
56
56
|
scopes: ProjectScopeConfig;
|
|
@@ -66,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
66
66
|
};
|
|
67
67
|
}>;
|
|
68
68
|
declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
69
|
+
name: string | null;
|
|
69
70
|
id: string;
|
|
70
|
-
tenantId: string;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
name: string | null;
|
|
73
72
|
updatedAt: string;
|
|
74
73
|
agentId: string;
|
|
75
74
|
projectId: string;
|
|
75
|
+
tenantId: string;
|
|
76
76
|
expiresAt: string | null;
|
|
77
|
-
lastUsedAt: string | null;
|
|
78
77
|
publicId: string;
|
|
79
78
|
keyHash: string;
|
|
80
79
|
keyPrefix: string;
|
|
80
|
+
lastUsedAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -5,14 +5,14 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
|
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/runtime/apps.d.ts
|
|
7
7
|
declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
|
|
8
|
-
|
|
9
|
-
description: string | null;
|
|
8
|
+
name: string;
|
|
10
9
|
id: string;
|
|
11
|
-
tenantId: string | null;
|
|
12
10
|
createdAt: string;
|
|
13
|
-
name: string;
|
|
14
11
|
updatedAt: string;
|
|
15
12
|
projectId: string | null;
|
|
13
|
+
tenantId: string | null;
|
|
14
|
+
description: string | null;
|
|
15
|
+
type: AppType;
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
config: {
|
|
18
18
|
type: "web_client";
|
|
@@ -23,9 +23,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
|
|
|
23
23
|
type: "api";
|
|
24
24
|
api: Record<string, never>;
|
|
25
25
|
};
|
|
26
|
-
defaultAgentId: string | null;
|
|
27
|
-
defaultProjectId: string | null;
|
|
28
26
|
lastUsedAt: string | null;
|
|
27
|
+
defaultProjectId: string | null;
|
|
28
|
+
defaultAgentId: string | null;
|
|
29
29
|
} | undefined>;
|
|
30
30
|
declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
|
|
31
31
|
declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -52,14 +52,14 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
52
52
|
};
|
|
53
53
|
}>;
|
|
54
54
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
55
|
-
|
|
56
|
-
description: string | null;
|
|
55
|
+
name: string;
|
|
57
56
|
id: string;
|
|
58
|
-
tenantId: string | null;
|
|
59
57
|
createdAt: string;
|
|
60
|
-
name: string;
|
|
61
58
|
updatedAt: string;
|
|
62
59
|
projectId: string | null;
|
|
60
|
+
tenantId: string | null;
|
|
61
|
+
description: string | null;
|
|
62
|
+
type: AppType;
|
|
63
63
|
enabled: boolean;
|
|
64
64
|
config: {
|
|
65
65
|
type: "web_client";
|
|
@@ -70,9 +70,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
|
|
|
70
70
|
type: "api";
|
|
71
71
|
api: Record<string, never>;
|
|
72
72
|
};
|
|
73
|
-
defaultAgentId: string | null;
|
|
74
|
-
defaultProjectId: string | null;
|
|
75
73
|
lastUsedAt: string | null;
|
|
74
|
+
defaultProjectId: string | null;
|
|
75
|
+
defaultAgentId: string | null;
|
|
76
76
|
}>;
|
|
77
77
|
declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
|
|
78
78
|
scopes: TenantScopeConfig;
|
|
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
total: number;
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
|
-
title: string | null;
|
|
20
19
|
id: string;
|
|
21
|
-
tenantId: string;
|
|
22
20
|
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
agentId: string | null;
|
|
23
|
+
projectId: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
title: string | null;
|
|
23
26
|
metadata: ConversationMetadata | null;
|
|
24
27
|
ref: {
|
|
25
28
|
type: "commit" | "tag" | "branch";
|
|
26
29
|
name: string;
|
|
27
30
|
hash: string;
|
|
28
31
|
} | null;
|
|
29
|
-
updatedAt: string;
|
|
30
32
|
userId: string | null;
|
|
31
|
-
agentId: string | null;
|
|
32
|
-
projectId: string;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
scopes: ProjectScopeConfig;
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
|
-
title: string | null;
|
|
89
88
|
id: string;
|
|
90
|
-
tenantId: string;
|
|
91
89
|
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
agentId: string | null;
|
|
92
|
+
projectId: string;
|
|
93
|
+
tenantId: string;
|
|
94
|
+
title: string | null;
|
|
92
95
|
metadata: ConversationMetadata | null;
|
|
93
96
|
ref: {
|
|
94
97
|
type: "commit" | "tag" | "branch";
|
|
95
98
|
name: string;
|
|
96
99
|
hash: string;
|
|
97
100
|
} | null;
|
|
98
|
-
updatedAt: string;
|
|
99
101
|
userId: string | null;
|
|
100
|
-
agentId: string | null;
|
|
101
|
-
projectId: string;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
metadata?: ConversationMetadata | null | undefined;
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
|
-
title: string | null;
|
|
125
124
|
id: string;
|
|
126
|
-
tenantId: string;
|
|
127
125
|
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
agentId: string | null;
|
|
128
|
+
projectId: string;
|
|
129
|
+
tenantId: string;
|
|
130
|
+
title: string | null;
|
|
128
131
|
metadata: ConversationMetadata | null;
|
|
129
132
|
ref: {
|
|
130
133
|
type: "commit" | "tag" | "branch";
|
|
131
134
|
name: string;
|
|
132
135
|
hash: string;
|
|
133
136
|
} | null;
|
|
134
|
-
updatedAt: string;
|
|
135
137
|
userId: string | null;
|
|
136
|
-
agentId: string | null;
|
|
137
|
-
projectId: string;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
scopes: ProjectScopeConfig;
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
|
-
title: string | null;
|
|
157
156
|
id: string;
|
|
158
|
-
tenantId: string;
|
|
159
157
|
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
agentId: string | null;
|
|
160
|
+
projectId: string;
|
|
161
|
+
tenantId: string;
|
|
162
|
+
title: string | null;
|
|
160
163
|
metadata: ConversationMetadata | null;
|
|
161
164
|
ref: {
|
|
162
165
|
type: "commit" | "tag" | "branch";
|
|
163
166
|
name: string;
|
|
164
167
|
hash: string;
|
|
165
168
|
} | null;
|
|
166
|
-
updatedAt: string;
|
|
167
169
|
userId: string | null;
|
|
168
|
-
agentId: string | null;
|
|
169
|
-
projectId: string;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -11,12 +11,12 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
tenantId: string;
|
|
15
14
|
createdAt: string;
|
|
16
|
-
metadata: MessageMetadata | null;
|
|
17
|
-
content: MessageContent;
|
|
18
15
|
updatedAt: string;
|
|
19
16
|
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
|
+
metadata: MessageMetadata | null;
|
|
19
|
+
content: MessageContent;
|
|
20
20
|
role: string;
|
|
21
21
|
conversationId: string;
|
|
22
22
|
fromSubAgentId: string | null;
|
|
@@ -145,12 +145,12 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
147
|
id: string;
|
|
148
|
-
tenantId: string;
|
|
149
148
|
createdAt: string;
|
|
150
|
-
metadata: MessageMetadata | null;
|
|
151
|
-
content: MessageContent;
|
|
152
149
|
updatedAt: string;
|
|
153
150
|
projectId: string;
|
|
151
|
+
tenantId: string;
|
|
152
|
+
metadata: MessageMetadata | null;
|
|
153
|
+
content: MessageContent;
|
|
154
154
|
role: string;
|
|
155
155
|
conversationId: string;
|
|
156
156
|
fromSubAgentId: string | null;
|
|
@@ -198,12 +198,12 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
-
tenantId: string;
|
|
202
201
|
createdAt: string;
|
|
203
|
-
metadata: MessageMetadata | null;
|
|
204
|
-
content: MessageContent;
|
|
205
202
|
updatedAt: string;
|
|
206
203
|
projectId: string;
|
|
204
|
+
tenantId: string;
|
|
205
|
+
metadata: MessageMetadata | null;
|
|
206
|
+
content: MessageContent;
|
|
207
207
|
role: string;
|
|
208
208
|
conversationId: string;
|
|
209
209
|
fromSubAgentId: string | null;
|
|
@@ -39,7 +39,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
|
|
|
39
39
|
name: string;
|
|
40
40
|
hash: string;
|
|
41
41
|
} | null;
|
|
42
|
-
status: "pending" | "
|
|
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" | "
|
|
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" | "
|
|
235
|
+
status: "pending" | "failed" | "running" | "completed" | "cancelled";
|
|
236
236
|
scheduledFor: string;
|
|
237
237
|
startedAt: string | null;
|
|
238
238
|
completedAt: string | null;
|
|
@@ -7,20 +7,20 @@ 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
|
-
status: string;
|
|
11
10
|
id: string;
|
|
12
|
-
tenantId: string;
|
|
13
11
|
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
agentId: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
14
16
|
metadata: TaskMetadataConfig | null;
|
|
17
|
+
subAgentId: string;
|
|
15
18
|
ref: {
|
|
16
19
|
type: "commit" | "tag" | "branch";
|
|
17
20
|
name: string;
|
|
18
21
|
hash: string;
|
|
19
22
|
} | null;
|
|
20
|
-
|
|
21
|
-
agentId: string;
|
|
22
|
-
projectId: string;
|
|
23
|
-
subAgentId: string;
|
|
23
|
+
status: string;
|
|
24
24
|
contextId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|