@inkeep/agents-core 0.53.8 → 0.53.9
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 +152 -152
- package/dist/auth/auth.d.ts +30 -28
- package/dist/auth/auth.js +12 -3
- package/dist/auth/cleanup.d.ts +12 -0
- package/dist/auth/cleanup.js +43 -0
- package/dist/auth/init.js +12 -2
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -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 +25 -25
- package/dist/data-access/manage/agents.js +3 -1
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/scheduledTriggers.d.ts +12 -1
- package/dist/data-access/manage/scheduledTriggers.js +8 -1
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/tools.js +2 -2
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +8 -8
- package/dist/db/manage/manage-schema.d.ts +487 -449
- package/dist/db/manage/manage-schema.js +2 -0
- package/dist/db/runtime/runtime-schema.d.ts +298 -298
- package/dist/dolt/index.d.ts +2 -2
- package/dist/dolt/index.js +2 -2
- package/dist/dolt/ref-helpers.d.ts +5 -1
- package/dist/dolt/ref-helpers.js +20 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/setup/setup.js +19 -5
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/third-party-mcp-servers/composio-client.d.ts +8 -10
- package/dist/utils/third-party-mcp-servers/composio-client.js +19 -15
- package/dist/utils/third-party-mcp-servers/index.d.ts +2 -2
- package/dist/utils/third-party-mcp-servers/index.js +2 -2
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1894 -1776
- package/dist/validation/schemas.js +6 -2
- package/drizzle/manage/0011_smooth_whizzer.sql +2 -0
- package/drizzle/manage/meta/0011_snapshot.json +3685 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/package.json +3 -3
|
@@ -21,18 +21,18 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
}) => Promise<{
|
|
22
22
|
id: string;
|
|
23
23
|
name: string;
|
|
24
|
+
description: string | null;
|
|
24
25
|
createdAt: string;
|
|
25
26
|
updatedAt: string;
|
|
26
|
-
description: string | null;
|
|
27
|
-
headers: Record<string, string> | null;
|
|
28
|
-
projectId: string;
|
|
29
27
|
tenantId: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
credentialReferenceId: string | null;
|
|
30
30
|
config: {
|
|
31
31
|
type: "mcp";
|
|
32
32
|
mcp: ToolMcpConfig;
|
|
33
33
|
};
|
|
34
|
-
credentialReferenceId: string | null;
|
|
35
34
|
credentialScope: string;
|
|
35
|
+
headers: Record<string, string> | null;
|
|
36
36
|
imageUrl: string | null;
|
|
37
37
|
capabilities: ToolServerCapabilities | null;
|
|
38
38
|
lastError: string | null;
|
|
@@ -79,18 +79,18 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
79
79
|
declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
|
|
80
80
|
id: string;
|
|
81
81
|
name: string;
|
|
82
|
+
description: string | null;
|
|
82
83
|
createdAt: string;
|
|
83
84
|
updatedAt: string;
|
|
84
|
-
description: string | null;
|
|
85
|
-
headers: Record<string, string> | null;
|
|
86
|
-
projectId: string;
|
|
87
85
|
tenantId: string;
|
|
86
|
+
projectId: string;
|
|
87
|
+
credentialReferenceId: string | null;
|
|
88
88
|
config: {
|
|
89
89
|
type: "mcp";
|
|
90
90
|
mcp: ToolMcpConfig;
|
|
91
91
|
};
|
|
92
|
-
credentialReferenceId: string | null;
|
|
93
92
|
credentialScope: string;
|
|
93
|
+
headers: Record<string, string> | null;
|
|
94
94
|
imageUrl: string | null;
|
|
95
95
|
capabilities: ToolServerCapabilities | null;
|
|
96
96
|
lastError: string | null;
|
|
@@ -137,16 +137,16 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
137
137
|
id: string;
|
|
138
138
|
createdAt: string;
|
|
139
139
|
updatedAt: string;
|
|
140
|
-
headers: Record<string, string> | null;
|
|
141
|
-
toolId: string;
|
|
142
|
-
projectId: string;
|
|
143
140
|
tenantId: string;
|
|
141
|
+
projectId: string;
|
|
144
142
|
agentId: string;
|
|
143
|
+
toolId: string;
|
|
145
144
|
subAgentId: string;
|
|
145
|
+
headers: Record<string, string> | null;
|
|
146
|
+
selectedTools: string[] | null;
|
|
146
147
|
toolPolicies: Record<string, {
|
|
147
148
|
needsApproval?: boolean;
|
|
148
149
|
}> | null;
|
|
149
|
-
selectedTools: string[] | null;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: AgentScopeConfig;
|
|
@@ -156,16 +156,16 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
156
156
|
id: string;
|
|
157
157
|
createdAt: string;
|
|
158
158
|
updatedAt: string;
|
|
159
|
-
headers: Record<string, string> | null;
|
|
160
|
-
toolId: string;
|
|
161
|
-
projectId: string;
|
|
162
159
|
tenantId: string;
|
|
160
|
+
projectId: string;
|
|
163
161
|
agentId: string;
|
|
162
|
+
toolId: string;
|
|
164
163
|
subAgentId: string;
|
|
164
|
+
headers: Record<string, string> | null;
|
|
165
|
+
selectedTools: string[] | null;
|
|
165
166
|
toolPolicies: Record<string, {
|
|
166
167
|
needsApproval?: boolean;
|
|
167
168
|
}> | null;
|
|
168
|
-
selectedTools: string[] | null;
|
|
169
169
|
}>;
|
|
170
170
|
/**
|
|
171
171
|
* Upsert agent-tool relation (create if it doesn't exist, update if it does)
|
|
@@ -184,16 +184,16 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
184
184
|
id: string;
|
|
185
185
|
createdAt: string;
|
|
186
186
|
updatedAt: string;
|
|
187
|
-
headers: Record<string, string> | null;
|
|
188
|
-
toolId: string;
|
|
189
|
-
projectId: string;
|
|
190
187
|
tenantId: string;
|
|
188
|
+
projectId: string;
|
|
191
189
|
agentId: string;
|
|
190
|
+
toolId: string;
|
|
192
191
|
subAgentId: string;
|
|
192
|
+
headers: Record<string, string> | null;
|
|
193
|
+
selectedTools: string[] | null;
|
|
193
194
|
toolPolicies: Record<string, {
|
|
194
195
|
needsApproval?: boolean;
|
|
195
196
|
}> | null;
|
|
196
|
-
selectedTools: string[] | null;
|
|
197
197
|
}>;
|
|
198
198
|
/**
|
|
199
199
|
* Upsert a tool (create if it doesn't exist, update if it does)
|
|
@@ -203,18 +203,18 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
203
203
|
}) => Promise<{
|
|
204
204
|
id: string;
|
|
205
205
|
name: string;
|
|
206
|
+
description: string | null;
|
|
206
207
|
createdAt: string;
|
|
207
208
|
updatedAt: string;
|
|
208
|
-
description: string | null;
|
|
209
|
-
headers: Record<string, string> | null;
|
|
210
|
-
projectId: string;
|
|
211
209
|
tenantId: string;
|
|
210
|
+
projectId: string;
|
|
211
|
+
credentialReferenceId: string | null;
|
|
212
212
|
config: {
|
|
213
213
|
type: "mcp";
|
|
214
214
|
mcp: ToolMcpConfig;
|
|
215
215
|
};
|
|
216
|
-
credentialReferenceId: string | null;
|
|
217
216
|
credentialScope: string;
|
|
217
|
+
headers: Record<string, string> | null;
|
|
218
218
|
imageUrl: string | null;
|
|
219
219
|
capabilities: ToolServerCapabilities | null;
|
|
220
220
|
lastError: string | null;
|
|
@@ -12,7 +12,7 @@ import { getActiveBranch } from "../../dolt/schema-sync.js";
|
|
|
12
12
|
import { updateAgentToolRelation } from "./subAgentRelations.js";
|
|
13
13
|
import { toISODateString } from "../../utils/date.js";
|
|
14
14
|
import { McpClient } from "../../utils/mcp-client.js";
|
|
15
|
-
import {
|
|
15
|
+
import { configureComposioMCPServer } from "../../utils/third-party-mcp-servers/composio-client.js";
|
|
16
16
|
import { isThirdPartyMCPServerAuthenticated } from "../../utils/third-party-mcp-servers/third-party-check.js";
|
|
17
17
|
import "../../utils/index.js";
|
|
18
18
|
import { cascadeDeleteByTool } from "../runtime/cascade-delete.js";
|
|
@@ -118,7 +118,7 @@ const discoverToolsFromServer = async (tool, credentialReference, credentialStor
|
|
|
118
118
|
reconnectionOptions: tool.config.mcp.transport?.reconnectionOptions,
|
|
119
119
|
sessionId: tool.config.mcp.transport?.sessionId
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
configureComposioMCPServer(serverConfig, tool.tenantId, tool.projectId, tool.credentialScope === "user" ? "user" : "project", userId);
|
|
122
122
|
if (isGithubWorkAppTool(tool)) serverConfig.headers = {
|
|
123
123
|
...serverConfig.headers,
|
|
124
124
|
"x-inkeep-tool-id": tool.id,
|
|
@@ -40,13 +40,13 @@ 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: "header" | "query" | "body";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "header" | "body";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -12,10 +12,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
12
12
|
name: string | null;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
expiresAt: string | null;
|
|
16
|
-
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
18
17
|
agentId: string;
|
|
18
|
+
expiresAt: string | null;
|
|
19
19
|
publicId: string;
|
|
20
20
|
keyHash: string;
|
|
21
21
|
keyPrefix: string;
|
|
@@ -26,10 +26,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
|
|
|
26
26
|
name: string | null;
|
|
27
27
|
createdAt: string;
|
|
28
28
|
updatedAt: string;
|
|
29
|
-
expiresAt: string | null;
|
|
30
|
-
projectId: string;
|
|
31
29
|
tenantId: string;
|
|
30
|
+
projectId: string;
|
|
32
31
|
agentId: string;
|
|
32
|
+
expiresAt: string | null;
|
|
33
33
|
publicId: string;
|
|
34
34
|
keyHash: string;
|
|
35
35
|
keyPrefix: string;
|
|
@@ -43,10 +43,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
43
43
|
name: string | null;
|
|
44
44
|
createdAt: string;
|
|
45
45
|
updatedAt: string;
|
|
46
|
-
expiresAt: string | null;
|
|
47
|
-
projectId: string;
|
|
48
46
|
tenantId: string;
|
|
47
|
+
projectId: string;
|
|
49
48
|
agentId: string;
|
|
49
|
+
expiresAt: string | null;
|
|
50
50
|
publicId: string;
|
|
51
51
|
keyHash: string;
|
|
52
52
|
keyPrefix: string;
|
|
@@ -70,10 +70,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
|
|
|
70
70
|
name: string | null;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
73
|
-
expiresAt: string | null;
|
|
74
|
-
projectId: string;
|
|
75
73
|
tenantId: string;
|
|
74
|
+
projectId: string;
|
|
76
75
|
agentId: string;
|
|
76
|
+
expiresAt: string | null;
|
|
77
77
|
publicId: string;
|
|
78
78
|
keyHash: string;
|
|
79
79
|
keyPrefix: string;
|
|
@@ -17,19 +17,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
19
19
|
id: string;
|
|
20
|
+
title: string | null;
|
|
20
21
|
createdAt: string;
|
|
21
22
|
updatedAt: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
agentId: string | null;
|
|
26
|
+
userId: string | null;
|
|
27
|
+
metadata: ConversationMetadata | null;
|
|
22
28
|
ref: {
|
|
23
|
-
type: "
|
|
29
|
+
type: "commit" | "tag" | "branch";
|
|
24
30
|
name: string;
|
|
25
31
|
hash: string;
|
|
26
32
|
} | null;
|
|
27
|
-
userId: string | null;
|
|
28
|
-
metadata: ConversationMetadata | null;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
|
-
title: string | null;
|
|
32
|
-
agentId: string | null;
|
|
33
33
|
activeSubAgentId: string;
|
|
34
34
|
lastContextResolution: string | null;
|
|
35
35
|
}>;
|
|
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
44
44
|
agentId: string | null;
|
|
45
45
|
activeSubAgentId: string;
|
|
46
46
|
ref: {
|
|
47
|
-
type: "
|
|
47
|
+
type: "commit" | "tag" | "branch";
|
|
48
48
|
name: string;
|
|
49
49
|
hash: string;
|
|
50
50
|
} | null;
|
|
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
|
|
|
70
70
|
agentId: string | null;
|
|
71
71
|
activeSubAgentId: string;
|
|
72
72
|
ref: {
|
|
73
|
-
type: "
|
|
73
|
+
type: "commit" | "tag" | "branch";
|
|
74
74
|
name: string;
|
|
75
75
|
hash: string;
|
|
76
76
|
} | null;
|
|
@@ -86,19 +86,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
86
86
|
conversationId: string;
|
|
87
87
|
}) => Promise<{
|
|
88
88
|
id: string;
|
|
89
|
+
title: string | null;
|
|
89
90
|
createdAt: string;
|
|
90
91
|
updatedAt: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
projectId: string;
|
|
94
|
+
agentId: string | null;
|
|
95
|
+
userId: string | null;
|
|
96
|
+
metadata: ConversationMetadata | null;
|
|
91
97
|
ref: {
|
|
92
|
-
type: "
|
|
98
|
+
type: "commit" | "tag" | "branch";
|
|
93
99
|
name: string;
|
|
94
100
|
hash: string;
|
|
95
101
|
} | null;
|
|
96
|
-
userId: string | null;
|
|
97
|
-
metadata: ConversationMetadata | null;
|
|
98
|
-
projectId: string;
|
|
99
|
-
tenantId: string;
|
|
100
|
-
title: string | null;
|
|
101
|
-
agentId: string | null;
|
|
102
102
|
activeSubAgentId: string;
|
|
103
103
|
lastContextResolution: string | null;
|
|
104
104
|
} | undefined>;
|
|
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
108
108
|
tenantId: string;
|
|
109
109
|
id: string;
|
|
110
110
|
ref: {
|
|
111
|
-
type: "
|
|
111
|
+
type: "commit" | "tag" | "branch";
|
|
112
112
|
name: string;
|
|
113
113
|
hash: string;
|
|
114
114
|
};
|
|
@@ -122,19 +122,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
122
122
|
contextConfigId?: string | undefined;
|
|
123
123
|
} | {
|
|
124
124
|
id: string;
|
|
125
|
+
title: string | null;
|
|
125
126
|
createdAt: string;
|
|
126
127
|
updatedAt: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
projectId: string;
|
|
130
|
+
agentId: string | null;
|
|
131
|
+
userId: string | null;
|
|
132
|
+
metadata: ConversationMetadata | null;
|
|
127
133
|
ref: {
|
|
128
|
-
type: "
|
|
134
|
+
type: "commit" | "tag" | "branch";
|
|
129
135
|
name: string;
|
|
130
136
|
hash: string;
|
|
131
137
|
} | null;
|
|
132
|
-
userId: string | null;
|
|
133
|
-
metadata: ConversationMetadata | null;
|
|
134
|
-
projectId: string;
|
|
135
|
-
tenantId: string;
|
|
136
|
-
title: string | null;
|
|
137
|
-
agentId: string | null;
|
|
138
138
|
activeSubAgentId: string;
|
|
139
139
|
lastContextResolution: string | null;
|
|
140
140
|
}>;
|
|
@@ -154,19 +154,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
154
154
|
conversationId: string;
|
|
155
155
|
}) => Promise<{
|
|
156
156
|
id: string;
|
|
157
|
+
title: string | null;
|
|
157
158
|
createdAt: string;
|
|
158
159
|
updatedAt: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
projectId: string;
|
|
162
|
+
agentId: string | null;
|
|
163
|
+
userId: string | null;
|
|
164
|
+
metadata: ConversationMetadata | null;
|
|
159
165
|
ref: {
|
|
160
|
-
type: "
|
|
166
|
+
type: "commit" | "tag" | "branch";
|
|
161
167
|
name: string;
|
|
162
168
|
hash: string;
|
|
163
169
|
} | null;
|
|
164
|
-
userId: string | null;
|
|
165
|
-
metadata: ConversationMetadata | null;
|
|
166
|
-
projectId: string;
|
|
167
|
-
tenantId: string;
|
|
168
|
-
title: string | null;
|
|
169
|
-
agentId: string | null;
|
|
170
170
|
activeSubAgentId: string;
|
|
171
171
|
lastContextResolution: string | null;
|
|
172
172
|
} | undefined>;
|
|
@@ -13,17 +13,17 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
13
13
|
id: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
|
-
metadata: MessageMetadata | null;
|
|
17
|
-
role: string;
|
|
18
|
-
projectId: string;
|
|
19
16
|
tenantId: string;
|
|
17
|
+
projectId: string;
|
|
20
18
|
content: MessageContent;
|
|
19
|
+
metadata: MessageMetadata | null;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
24
23
|
toExternalAgentId: string | null;
|
|
25
24
|
taskId: string | null;
|
|
26
25
|
a2aTaskId: string | null;
|
|
26
|
+
role: string;
|
|
27
27
|
conversationId: string;
|
|
28
28
|
fromTeamAgentId: string | null;
|
|
29
29
|
toTeamAgentId: string | null;
|
|
@@ -144,17 +144,17 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
144
144
|
id: string;
|
|
145
145
|
createdAt: string;
|
|
146
146
|
updatedAt: string;
|
|
147
|
-
metadata: MessageMetadata | null;
|
|
148
|
-
role: string;
|
|
149
|
-
projectId: string;
|
|
150
147
|
tenantId: string;
|
|
148
|
+
projectId: string;
|
|
151
149
|
content: MessageContent;
|
|
150
|
+
metadata: MessageMetadata | null;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
155
154
|
toExternalAgentId: string | null;
|
|
156
155
|
taskId: string | null;
|
|
157
156
|
a2aTaskId: string | null;
|
|
157
|
+
role: string;
|
|
158
158
|
conversationId: string;
|
|
159
159
|
fromTeamAgentId: string | null;
|
|
160
160
|
toTeamAgentId: string | null;
|
|
@@ -197,17 +197,17 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
197
197
|
id: string;
|
|
198
198
|
createdAt: string;
|
|
199
199
|
updatedAt: string;
|
|
200
|
-
metadata: MessageMetadata | null;
|
|
201
|
-
role: string;
|
|
202
|
-
projectId: string;
|
|
203
200
|
tenantId: string;
|
|
201
|
+
projectId: string;
|
|
204
202
|
content: MessageContent;
|
|
203
|
+
metadata: MessageMetadata | null;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
208
207
|
toExternalAgentId: string | null;
|
|
209
208
|
taskId: string | null;
|
|
210
209
|
a2aTaskId: string | null;
|
|
210
|
+
role: string;
|
|
211
211
|
conversationId: string;
|
|
212
212
|
fromTeamAgentId: string | null;
|
|
213
213
|
toTeamAgentId: string | null;
|
|
@@ -9,17 +9,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string;
|
|
15
|
+
status: string;
|
|
16
|
+
metadata: TaskMetadataConfig | null;
|
|
17
|
+
subAgentId: string;
|
|
12
18
|
ref: {
|
|
13
|
-
type: "
|
|
19
|
+
type: "commit" | "tag" | "branch";
|
|
14
20
|
name: string;
|
|
15
21
|
hash: string;
|
|
16
22
|
} | null;
|
|
17
|
-
metadata: TaskMetadataConfig | null;
|
|
18
|
-
status: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
tenantId: string;
|
|
21
|
-
agentId: string;
|
|
22
|
-
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
36
36
|
updatedAt: string;
|
|
37
37
|
contextId: string;
|
|
38
38
|
ref: {
|
|
39
|
-
type: "
|
|
39
|
+
type: "commit" | "tag" | "branch";
|
|
40
40
|
name: string;
|
|
41
41
|
hash: string;
|
|
42
42
|
} | null;
|