@inkeep/agents-core 0.63.1 → 0.63.2
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 +86 -86
- 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 +5 -2
- package/dist/client-exports.js +6 -2
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +30 -30
- 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 +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/projectFull.js +42 -44
- package/dist/data-access/manage/skills.d.ts +85 -37
- package/dist/data-access/manage/skills.js +259 -46
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +33 -33
- package/dist/data-access/manage/triggers.d.ts +1 -1
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +24 -24
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +163 -4
- package/dist/db/manage/manage-schema.js +52 -2
- package/dist/db/runtime/runtime-schema.d.ts +369 -369
- package/dist/index.d.ts +8 -5
- package/dist/index.js +7 -4
- package/dist/types/entities.d.ts +11 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +2 -1
- package/dist/utils/skill-files.d.ts +17 -0
- package/dist/utils/skill-files.js +29 -0
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/drizzle-schema-helpers.js +1 -2
- package/dist/validation/index.d.ts +4 -2
- package/dist/validation/index.js +4 -2
- package/dist/validation/schemas/shared.d.ts +38 -0
- package/dist/validation/schemas/shared.js +63 -0
- package/dist/validation/schemas/skills.d.ts +602 -0
- package/dist/validation/schemas/skills.js +128 -0
- package/dist/validation/schemas.d.ts +2741 -3277
- package/dist/validation/schemas.js +4 -109
- package/drizzle/manage/0014_complex_firebird.sql +15 -0
- package/drizzle/manage/0015_backfill_skill_files.sql +61 -0
- package/drizzle/manage/meta/0014_snapshot.json +3821 -0
- package/drizzle/manage/meta/0015_snapshot.json +3821 -0
- package/drizzle/manage/meta/_journal.json +14 -0
- package/package.json +4 -2
|
@@ -9,12 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
subAgentId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
description: string | null;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
agentId: string;
|
|
16
12
|
id: string;
|
|
17
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
18
19
|
models: {
|
|
19
20
|
base?: {
|
|
20
21
|
model?: string | undefined;
|
|
@@ -32,20 +33,20 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
33
|
stopWhen: {
|
|
33
34
|
stepCountIs?: number | undefined;
|
|
34
35
|
} | null;
|
|
35
|
-
|
|
36
|
-
updatedAt: string;
|
|
36
|
+
agentId: string;
|
|
37
37
|
prompt: string | null;
|
|
38
38
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
39
39
|
} | undefined>;
|
|
40
40
|
declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
41
41
|
scopes: AgentScopeConfig;
|
|
42
42
|
}) => Promise<{
|
|
43
|
-
description: string | null;
|
|
44
|
-
tenantId: string;
|
|
45
|
-
projectId: string;
|
|
46
|
-
agentId: string;
|
|
47
43
|
id: string;
|
|
48
44
|
name: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
createdAt: string;
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
projectId: string;
|
|
49
|
+
tenantId: string;
|
|
49
50
|
models: {
|
|
50
51
|
base?: {
|
|
51
52
|
model?: string | undefined;
|
|
@@ -63,8 +64,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
64
|
stopWhen: {
|
|
64
65
|
stepCountIs?: number | undefined;
|
|
65
66
|
} | null;
|
|
66
|
-
|
|
67
|
-
updatedAt: string;
|
|
67
|
+
agentId: string;
|
|
68
68
|
prompt: string | null;
|
|
69
69
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
70
70
|
}[]>;
|
|
@@ -109,12 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
|
|
|
109
109
|
};
|
|
110
110
|
}>;
|
|
111
111
|
declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
|
|
112
|
-
description: string | null;
|
|
113
|
-
tenantId: string;
|
|
114
|
-
projectId: string;
|
|
115
|
-
agentId: string;
|
|
116
112
|
id: string;
|
|
117
113
|
name: string;
|
|
114
|
+
description: string | null;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
117
|
+
projectId: string;
|
|
118
|
+
tenantId: string;
|
|
118
119
|
models: {
|
|
119
120
|
base?: {
|
|
120
121
|
model?: string | undefined;
|
|
@@ -132,8 +133,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
|
|
|
132
133
|
stopWhen: {
|
|
133
134
|
stepCountIs?: number | undefined;
|
|
134
135
|
} | null;
|
|
135
|
-
|
|
136
|
-
updatedAt: string;
|
|
136
|
+
agentId: string;
|
|
137
137
|
prompt: string | null;
|
|
138
138
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
139
139
|
}>;
|
|
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
20
20
|
scopes: ProjectScopeConfig;
|
|
21
21
|
toolId: string;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
description: string | null;
|
|
24
|
-
tenantId: string;
|
|
25
|
-
projectId: string;
|
|
26
23
|
id: string;
|
|
27
24
|
name: string;
|
|
25
|
+
description: string | null;
|
|
28
26
|
createdAt: string;
|
|
29
27
|
updatedAt: string;
|
|
30
|
-
|
|
28
|
+
projectId: string;
|
|
29
|
+
tenantId: string;
|
|
30
|
+
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
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
|
-
description: string | null;
|
|
82
|
-
tenantId: string;
|
|
83
|
-
projectId: string;
|
|
84
81
|
id: string;
|
|
85
82
|
name: string;
|
|
83
|
+
description: string | null;
|
|
86
84
|
createdAt: string;
|
|
87
85
|
updatedAt: string;
|
|
88
|
-
|
|
86
|
+
projectId: string;
|
|
87
|
+
tenantId: string;
|
|
88
|
+
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
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;
|
|
@@ -135,38 +135,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
135
135
|
needsApproval?: boolean;
|
|
136
136
|
}> | null;
|
|
137
137
|
}) => Promise<{
|
|
138
|
-
tenantId: string;
|
|
139
|
-
projectId: string;
|
|
140
|
-
agentId: string;
|
|
141
|
-
subAgentId: string;
|
|
142
|
-
toolId: string;
|
|
143
138
|
id: string;
|
|
144
139
|
createdAt: string;
|
|
145
140
|
updatedAt: string;
|
|
141
|
+
projectId: string;
|
|
142
|
+
tenantId: string;
|
|
143
|
+
agentId: string;
|
|
144
|
+
subAgentId: string;
|
|
146
145
|
headers: Record<string, string> | null;
|
|
147
|
-
|
|
146
|
+
toolId: string;
|
|
148
147
|
toolPolicies: Record<string, {
|
|
149
148
|
needsApproval?: boolean;
|
|
150
149
|
}> | null;
|
|
150
|
+
selectedTools: string[] | null;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
153
153
|
scopes: AgentScopeConfig;
|
|
154
154
|
subAgentId: string;
|
|
155
155
|
toolId: string;
|
|
156
156
|
}) => Promise<{
|
|
157
|
-
tenantId: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
agentId: string;
|
|
160
|
-
subAgentId: string;
|
|
161
|
-
toolId: string;
|
|
162
157
|
id: string;
|
|
163
158
|
createdAt: string;
|
|
164
159
|
updatedAt: string;
|
|
160
|
+
projectId: string;
|
|
161
|
+
tenantId: string;
|
|
162
|
+
agentId: string;
|
|
163
|
+
subAgentId: string;
|
|
165
164
|
headers: Record<string, string> | null;
|
|
166
|
-
|
|
165
|
+
toolId: string;
|
|
167
166
|
toolPolicies: Record<string, {
|
|
168
167
|
needsApproval?: boolean;
|
|
169
168
|
}> | null;
|
|
169
|
+
selectedTools: string[] | null;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -182,19 +182,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
182
182
|
}> | null;
|
|
183
183
|
relationId?: string;
|
|
184
184
|
}) => Promise<{
|
|
185
|
-
tenantId: string;
|
|
186
|
-
projectId: string;
|
|
187
|
-
agentId: string;
|
|
188
|
-
subAgentId: string;
|
|
189
|
-
toolId: string;
|
|
190
185
|
id: string;
|
|
191
186
|
createdAt: string;
|
|
192
187
|
updatedAt: string;
|
|
188
|
+
projectId: string;
|
|
189
|
+
tenantId: string;
|
|
190
|
+
agentId: string;
|
|
191
|
+
subAgentId: string;
|
|
193
192
|
headers: Record<string, string> | null;
|
|
194
|
-
|
|
193
|
+
toolId: string;
|
|
195
194
|
toolPolicies: Record<string, {
|
|
196
195
|
needsApproval?: boolean;
|
|
197
196
|
}> | null;
|
|
197
|
+
selectedTools: string[] | null;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
200
200
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -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
|
-
description: string | null;
|
|
206
|
-
tenantId: string;
|
|
207
|
-
projectId: string;
|
|
208
205
|
id: string;
|
|
209
206
|
name: string;
|
|
207
|
+
description: string | null;
|
|
210
208
|
createdAt: string;
|
|
211
209
|
updatedAt: string;
|
|
212
|
-
|
|
210
|
+
projectId: string;
|
|
211
|
+
tenantId: string;
|
|
212
|
+
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
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;
|
|
@@ -40,7 +40,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "
|
|
43
|
+
source: "query" | "header" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
8
8
|
scopes: ProjectScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
|
-
agentId: string;
|
|
14
11
|
id: string;
|
|
15
12
|
name: string | null;
|
|
16
13
|
createdAt: string;
|
|
17
14
|
updatedAt: string;
|
|
18
|
-
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
publicId: string;
|
|
20
19
|
keyHash: string;
|
|
21
20
|
keyPrefix: string;
|
|
22
21
|
lastUsedAt: string | null;
|
|
22
|
+
expiresAt: string | null;
|
|
23
23
|
} | undefined>;
|
|
24
24
|
declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
|
|
25
|
-
tenantId: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
agentId: string;
|
|
28
25
|
id: string;
|
|
29
26
|
name: string | null;
|
|
30
27
|
createdAt: string;
|
|
31
28
|
updatedAt: string;
|
|
32
|
-
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
agentId: string;
|
|
33
32
|
publicId: string;
|
|
34
33
|
keyHash: string;
|
|
35
34
|
keyPrefix: string;
|
|
36
35
|
lastUsedAt: string | null;
|
|
36
|
+
expiresAt: 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
|
-
tenantId: string;
|
|
43
|
-
projectId: string;
|
|
44
|
-
agentId: string;
|
|
45
42
|
id: string;
|
|
46
43
|
name: string | null;
|
|
47
44
|
createdAt: string;
|
|
48
45
|
updatedAt: string;
|
|
49
|
-
|
|
46
|
+
projectId: string;
|
|
47
|
+
tenantId: string;
|
|
48
|
+
agentId: string;
|
|
50
49
|
publicId: string;
|
|
51
50
|
keyHash: string;
|
|
52
51
|
keyPrefix: string;
|
|
53
52
|
lastUsedAt: string | null;
|
|
53
|
+
expiresAt: 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
|
-
tenantId: string;
|
|
70
|
-
projectId: string;
|
|
71
|
-
agentId: string;
|
|
72
69
|
id: string;
|
|
73
70
|
name: string | null;
|
|
74
71
|
createdAt: string;
|
|
75
72
|
updatedAt: string;
|
|
76
|
-
|
|
73
|
+
projectId: string;
|
|
74
|
+
tenantId: string;
|
|
75
|
+
agentId: string;
|
|
77
76
|
publicId: string;
|
|
78
77
|
keyHash: string;
|
|
79
78
|
keyPrefix: string;
|
|
80
79
|
lastUsedAt: string | null;
|
|
80
|
+
expiresAt: string | null;
|
|
81
81
|
}>;
|
|
82
82
|
declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
|
|
83
83
|
scopes: ProjectScopeConfig;
|
|
@@ -6,15 +6,15 @@ 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
|
type: AppType;
|
|
9
|
-
description: string | null;
|
|
10
|
-
tenantId: string | null;
|
|
11
|
-
projectId: string | null;
|
|
12
9
|
id: string;
|
|
13
10
|
name: string;
|
|
11
|
+
description: string | null;
|
|
14
12
|
createdAt: string;
|
|
15
13
|
updatedAt: string;
|
|
16
|
-
|
|
14
|
+
projectId: string | null;
|
|
15
|
+
tenantId: string | null;
|
|
17
16
|
prompt: string | null;
|
|
17
|
+
enabled: boolean;
|
|
18
18
|
config: {
|
|
19
19
|
type: "web_client";
|
|
20
20
|
webClient: {
|
|
@@ -65,15 +65,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
65
65
|
}>;
|
|
66
66
|
declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
|
|
67
67
|
type: AppType;
|
|
68
|
-
description: string | null;
|
|
69
|
-
tenantId: string | null;
|
|
70
|
-
projectId: string | null;
|
|
71
68
|
id: string;
|
|
72
69
|
name: string;
|
|
70
|
+
description: string | null;
|
|
73
71
|
createdAt: string;
|
|
74
72
|
updatedAt: string;
|
|
75
|
-
|
|
73
|
+
projectId: string | null;
|
|
74
|
+
tenantId: string | null;
|
|
76
75
|
prompt: string | null;
|
|
76
|
+
enabled: boolean;
|
|
77
77
|
config: {
|
|
78
78
|
type: "web_client";
|
|
79
79
|
webClient: {
|
|
@@ -15,15 +15,15 @@ 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;
|
|
22
18
|
id: string;
|
|
19
|
+
metadata: ConversationMetadata | null;
|
|
23
20
|
createdAt: string;
|
|
24
21
|
updatedAt: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
|
+
agentId: string | null;
|
|
25
26
|
userId: string | null;
|
|
26
|
-
metadata: ConversationMetadata | null;
|
|
27
27
|
ref: {
|
|
28
28
|
type: "commit" | "tag" | "branch";
|
|
29
29
|
name: string;
|
|
@@ -84,15 +84,15 @@ 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;
|
|
91
87
|
id: string;
|
|
88
|
+
metadata: ConversationMetadata | null;
|
|
92
89
|
createdAt: string;
|
|
93
90
|
updatedAt: string;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
title: string | null;
|
|
94
|
+
agentId: string | null;
|
|
94
95
|
userId: string | null;
|
|
95
|
-
metadata: ConversationMetadata | null;
|
|
96
96
|
ref: {
|
|
97
97
|
type: "commit" | "tag" | "branch";
|
|
98
98
|
name: string;
|
|
@@ -120,15 +120,15 @@ 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;
|
|
127
123
|
id: string;
|
|
124
|
+
metadata: ConversationMetadata | null;
|
|
128
125
|
createdAt: string;
|
|
129
126
|
updatedAt: string;
|
|
127
|
+
projectId: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
title: string | null;
|
|
130
|
+
agentId: string | null;
|
|
130
131
|
userId: string | null;
|
|
131
|
-
metadata: ConversationMetadata | null;
|
|
132
132
|
ref: {
|
|
133
133
|
type: "commit" | "tag" | "branch";
|
|
134
134
|
name: string;
|
|
@@ -152,15 +152,15 @@ 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;
|
|
159
155
|
id: string;
|
|
156
|
+
metadata: ConversationMetadata | null;
|
|
160
157
|
createdAt: string;
|
|
161
158
|
updatedAt: string;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
title: string | null;
|
|
162
|
+
agentId: string | null;
|
|
162
163
|
userId: string | null;
|
|
163
|
-
metadata: ConversationMetadata | null;
|
|
164
164
|
ref: {
|
|
165
165
|
type: "commit" | "tag" | "branch";
|
|
166
166
|
name: string;
|
|
@@ -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;
|
|
15
13
|
id: string;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
14
|
content: MessageContent;
|
|
19
15
|
metadata: MessageMetadata | null;
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
tenantId: 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
|
+
conversationId: string;
|
|
27
|
+
role: 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
|
-
tenantId: string;
|
|
148
|
-
projectId: string;
|
|
149
147
|
id: string;
|
|
150
|
-
createdAt: string;
|
|
151
|
-
updatedAt: string;
|
|
152
148
|
content: MessageContent;
|
|
153
149
|
metadata: MessageMetadata | null;
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
createdAt: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
projectId: string;
|
|
153
|
+
tenantId: 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
|
+
conversationId: string;
|
|
161
|
+
role: 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
|
-
tenantId: string;
|
|
201
|
-
projectId: string;
|
|
202
200
|
id: string;
|
|
203
|
-
createdAt: string;
|
|
204
|
-
updatedAt: string;
|
|
205
201
|
content: MessageContent;
|
|
206
202
|
metadata: MessageMetadata | null;
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
createdAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
projectId: string;
|
|
206
|
+
tenantId: 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
|
+
conversationId: string;
|
|
214
|
+
role: 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: {
|
|
@@ -7,15 +7,15 @@ 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;
|
|
14
10
|
id: string;
|
|
11
|
+
metadata: TaskMetadataConfig | null;
|
|
15
12
|
createdAt: string;
|
|
16
13
|
updatedAt: string;
|
|
14
|
+
projectId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
17
17
|
status: string;
|
|
18
|
-
|
|
18
|
+
subAgentId: string;
|
|
19
19
|
ref: {
|
|
20
20
|
type: "commit" | "tag" | "branch";
|
|
21
21
|
name: string;
|