@agentrix/shared 1.0.9 → 1.0.10
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/index.cjs +35 -3
- package/dist/index.d.cts +99 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -258,6 +258,8 @@ const TaskItemSchema = zod.z.object({
|
|
|
258
258
|
chatId: IdSchema,
|
|
259
259
|
userId: zod.z.string(),
|
|
260
260
|
state: zod.z.string(),
|
|
261
|
+
workerStatus: zod.z.enum(["initializing", "ready", "running"]).nullable(),
|
|
262
|
+
// Worker execution status (null = disconnected)
|
|
261
263
|
agentId: zod.z.string(),
|
|
262
264
|
machineId: zod.z.string().nullable(),
|
|
263
265
|
cloudId: zod.z.string().nullable(),
|
|
@@ -997,7 +999,8 @@ const ShutdownMachineSchema = EventBaseSchema.extend({
|
|
|
997
999
|
const WorkerInitializingSchema = EventBaseSchema.extend({
|
|
998
1000
|
taskId: zod.z.string(),
|
|
999
1001
|
machineId: zod.z.string(),
|
|
1000
|
-
timestamp: zod.z.string()
|
|
1002
|
+
timestamp: zod.z.string(),
|
|
1003
|
+
cwd: zod.z.string().optional()
|
|
1001
1004
|
});
|
|
1002
1005
|
const WorkerReadySchema = EventBaseSchema.extend({
|
|
1003
1006
|
taskId: zod.z.string(),
|
|
@@ -1044,8 +1047,12 @@ const baseTaskSchema = EventBaseSchema.extend({
|
|
|
1044
1047
|
// Custom API base URL
|
|
1045
1048
|
api_key: zod.z.string().optional(),
|
|
1046
1049
|
// Custom API key
|
|
1047
|
-
maxTurns: zod.z.number().optional()
|
|
1050
|
+
maxTurns: zod.z.number().optional(),
|
|
1048
1051
|
// Maximum number of turns for the agent (default: 50)
|
|
1052
|
+
repositoryId: zod.z.string().optional(),
|
|
1053
|
+
// Existing repository ID (used to skip auto-association)
|
|
1054
|
+
repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional()
|
|
1055
|
+
// Repository source type (determines workspace mode)
|
|
1049
1056
|
});
|
|
1050
1057
|
const createTaskSchema = baseTaskSchema.extend({
|
|
1051
1058
|
message: zod.z.custom(
|
|
@@ -1194,6 +1201,14 @@ const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
|
|
|
1194
1201
|
agentSessionId: zod.z.string(),
|
|
1195
1202
|
cwd: zod.z.string().optional()
|
|
1196
1203
|
});
|
|
1204
|
+
const TaskInfoUpdateEventDataSchema = EventBaseSchema.extend({
|
|
1205
|
+
taskId: zod.z.string(),
|
|
1206
|
+
chatId: zod.z.string(),
|
|
1207
|
+
updates: zod.z.record(zod.z.any()),
|
|
1208
|
+
// Flexible updates object for any task fields
|
|
1209
|
+
updatedAt: zod.z.string()
|
|
1210
|
+
// ISO 8601 timestamp
|
|
1211
|
+
});
|
|
1197
1212
|
const MergeRequestEventSchema = EventBaseSchema.extend({
|
|
1198
1213
|
taskId: zod.z.string(),
|
|
1199
1214
|
summary: zod.z.string(),
|
|
@@ -1203,6 +1218,17 @@ const MergePullRequestEventSchema = EventBaseSchema.extend({
|
|
|
1203
1218
|
taskId: zod.z.string(),
|
|
1204
1219
|
mergeMethod: zod.z.enum(["merge", "squash", "rebase"]).optional().default("squash")
|
|
1205
1220
|
});
|
|
1221
|
+
const AssociateRepoEventDataSchema = EventBaseSchema.extend({
|
|
1222
|
+
taskId: zod.z.string(),
|
|
1223
|
+
gitServerHost: zod.z.string(),
|
|
1224
|
+
// e.g., "github.com"
|
|
1225
|
+
owner: zod.z.string(),
|
|
1226
|
+
// e.g., "xmz-ai"
|
|
1227
|
+
repo: zod.z.string(),
|
|
1228
|
+
// e.g., "agentrix"
|
|
1229
|
+
remoteUrl: zod.z.string()
|
|
1230
|
+
// Original URL for logging
|
|
1231
|
+
});
|
|
1206
1232
|
const IdOnlySchema = zod.z.object({
|
|
1207
1233
|
id: zod.z.string()
|
|
1208
1234
|
});
|
|
@@ -1264,11 +1290,14 @@ const EventSchemaMap = {
|
|
|
1264
1290
|
"change-task-title": ChangeTaskTitleEventSchema,
|
|
1265
1291
|
"task-state-change": TaskStateChangeEventSchema,
|
|
1266
1292
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventSchema,
|
|
1293
|
+
"task-info-update": TaskInfoUpdateEventDataSchema,
|
|
1267
1294
|
// Artifacts events
|
|
1268
1295
|
"task-artifacts-updated": TaskArtifactsUpdatedEventSchema,
|
|
1269
1296
|
// Merge request events
|
|
1270
1297
|
"merge-request": MergeRequestEventSchema,
|
|
1271
1298
|
"merge-pr": MergePullRequestEventSchema,
|
|
1299
|
+
// Repository association events
|
|
1300
|
+
"associate-repo": AssociateRepoEventDataSchema,
|
|
1272
1301
|
// System message events
|
|
1273
1302
|
"system-message": SystemMessageSchema,
|
|
1274
1303
|
// Billing events
|
|
@@ -1288,7 +1317,8 @@ const workerTaskEvents = [
|
|
|
1288
1317
|
"update-task-agent-session-id",
|
|
1289
1318
|
"task-artifacts-updated",
|
|
1290
1319
|
"merge-request",
|
|
1291
|
-
"merge-pr"
|
|
1320
|
+
"merge-pr",
|
|
1321
|
+
"associate-repo"
|
|
1292
1322
|
];
|
|
1293
1323
|
|
|
1294
1324
|
function userAuth(token) {
|
|
@@ -1837,6 +1867,7 @@ exports.AskUserMessageSchema = AskUserMessageSchema;
|
|
|
1837
1867
|
exports.AskUserOptionSchema = AskUserOptionSchema;
|
|
1838
1868
|
exports.AskUserQuestionSchema = AskUserQuestionSchema;
|
|
1839
1869
|
exports.AskUserResponseMessageSchema = AskUserResponseMessageSchema;
|
|
1870
|
+
exports.AssociateRepoEventDataSchema = AssociateRepoEventDataSchema;
|
|
1840
1871
|
exports.BillingStatsResponseSchema = BillingStatsResponseSchema;
|
|
1841
1872
|
exports.BranchSchema = BranchSchema;
|
|
1842
1873
|
exports.CancelTaskRequestSchema = CancelTaskRequestSchema;
|
|
@@ -1970,6 +2001,7 @@ exports.SyncLocalMachineResponseSchema = SyncLocalMachineResponseSchema;
|
|
|
1970
2001
|
exports.SyncMachineRequestSchema = SyncMachineRequestSchema;
|
|
1971
2002
|
exports.SystemMessageSchema = SystemMessageSchema;
|
|
1972
2003
|
exports.TaskArtifactsUpdatedEventSchema = TaskArtifactsUpdatedEventSchema;
|
|
2004
|
+
exports.TaskInfoUpdateEventDataSchema = TaskInfoUpdateEventDataSchema;
|
|
1973
2005
|
exports.TaskItemSchema = TaskItemSchema;
|
|
1974
2006
|
exports.TaskMessageSchema = TaskMessageSchema;
|
|
1975
2007
|
exports.TaskSharePermissionsSchema = TaskSharePermissionsSchema;
|
package/dist/index.d.cts
CHANGED
|
@@ -998,6 +998,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
998
998
|
chatId: z.ZodString;
|
|
999
999
|
userId: z.ZodString;
|
|
1000
1000
|
state: z.ZodString;
|
|
1001
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
1001
1002
|
agentId: z.ZodString;
|
|
1002
1003
|
machineId: z.ZodNullable<z.ZodString>;
|
|
1003
1004
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
@@ -1064,6 +1065,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1064
1065
|
agentId: string;
|
|
1065
1066
|
title: string | null;
|
|
1066
1067
|
updatedAt: string;
|
|
1068
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1067
1069
|
agentSessionId: string | null;
|
|
1068
1070
|
pullRequestNumber: number | null;
|
|
1069
1071
|
pullRequestUrl: string | null;
|
|
@@ -1095,6 +1097,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1095
1097
|
agentId: string;
|
|
1096
1098
|
title: string | null;
|
|
1097
1099
|
updatedAt: string;
|
|
1100
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1098
1101
|
agentSessionId: string | null;
|
|
1099
1102
|
pullRequestNumber: number | null;
|
|
1100
1103
|
pullRequestUrl: string | null;
|
|
@@ -1141,6 +1144,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1141
1144
|
chatId: z.ZodString;
|
|
1142
1145
|
userId: z.ZodString;
|
|
1143
1146
|
state: z.ZodString;
|
|
1147
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
1144
1148
|
agentId: z.ZodString;
|
|
1145
1149
|
machineId: z.ZodNullable<z.ZodString>;
|
|
1146
1150
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
@@ -1207,6 +1211,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1207
1211
|
agentId: string;
|
|
1208
1212
|
title: string | null;
|
|
1209
1213
|
updatedAt: string;
|
|
1214
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1210
1215
|
agentSessionId: string | null;
|
|
1211
1216
|
pullRequestNumber: number | null;
|
|
1212
1217
|
pullRequestUrl: string | null;
|
|
@@ -1238,6 +1243,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1238
1243
|
agentId: string;
|
|
1239
1244
|
title: string | null;
|
|
1240
1245
|
updatedAt: string;
|
|
1246
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1241
1247
|
agentSessionId: string | null;
|
|
1242
1248
|
pullRequestNumber: number | null;
|
|
1243
1249
|
pullRequestUrl: string | null;
|
|
@@ -1273,6 +1279,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1273
1279
|
agentId: string;
|
|
1274
1280
|
title: string | null;
|
|
1275
1281
|
updatedAt: string;
|
|
1282
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1276
1283
|
agentSessionId: string | null;
|
|
1277
1284
|
pullRequestNumber: number | null;
|
|
1278
1285
|
pullRequestUrl: string | null;
|
|
@@ -1308,6 +1315,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1308
1315
|
agentId: string;
|
|
1309
1316
|
title: string | null;
|
|
1310
1317
|
updatedAt: string;
|
|
1318
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1311
1319
|
agentSessionId: string | null;
|
|
1312
1320
|
pullRequestNumber: number | null;
|
|
1313
1321
|
pullRequestUrl: string | null;
|
|
@@ -1773,6 +1781,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1773
1781
|
chatId: z.ZodString;
|
|
1774
1782
|
userId: z.ZodString;
|
|
1775
1783
|
state: z.ZodString;
|
|
1784
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
1776
1785
|
agentId: z.ZodString;
|
|
1777
1786
|
machineId: z.ZodNullable<z.ZodString>;
|
|
1778
1787
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
@@ -1839,6 +1848,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1839
1848
|
agentId: string;
|
|
1840
1849
|
title: string | null;
|
|
1841
1850
|
updatedAt: string;
|
|
1851
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1842
1852
|
agentSessionId: string | null;
|
|
1843
1853
|
pullRequestNumber: number | null;
|
|
1844
1854
|
pullRequestUrl: string | null;
|
|
@@ -1870,6 +1880,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1870
1880
|
agentId: string;
|
|
1871
1881
|
title: string | null;
|
|
1872
1882
|
updatedAt: string;
|
|
1883
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1873
1884
|
agentSessionId: string | null;
|
|
1874
1885
|
pullRequestNumber: number | null;
|
|
1875
1886
|
pullRequestUrl: string | null;
|
|
@@ -1904,6 +1915,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1904
1915
|
agentId: string;
|
|
1905
1916
|
title: string | null;
|
|
1906
1917
|
updatedAt: string;
|
|
1918
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1907
1919
|
agentSessionId: string | null;
|
|
1908
1920
|
pullRequestNumber: number | null;
|
|
1909
1921
|
pullRequestUrl: string | null;
|
|
@@ -1938,6 +1950,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1938
1950
|
agentId: string;
|
|
1939
1951
|
title: string | null;
|
|
1940
1952
|
updatedAt: string;
|
|
1953
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1941
1954
|
agentSessionId: string | null;
|
|
1942
1955
|
pullRequestNumber: number | null;
|
|
1943
1956
|
pullRequestUrl: string | null;
|
|
@@ -1971,6 +1984,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1971
1984
|
chatId: z.ZodString;
|
|
1972
1985
|
userId: z.ZodString;
|
|
1973
1986
|
state: z.ZodString;
|
|
1987
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
1974
1988
|
agentId: z.ZodString;
|
|
1975
1989
|
machineId: z.ZodNullable<z.ZodString>;
|
|
1976
1990
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
@@ -2037,6 +2051,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2037
2051
|
agentId: string;
|
|
2038
2052
|
title: string | null;
|
|
2039
2053
|
updatedAt: string;
|
|
2054
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2040
2055
|
agentSessionId: string | null;
|
|
2041
2056
|
pullRequestNumber: number | null;
|
|
2042
2057
|
pullRequestUrl: string | null;
|
|
@@ -2068,6 +2083,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2068
2083
|
agentId: string;
|
|
2069
2084
|
title: string | null;
|
|
2070
2085
|
updatedAt: string;
|
|
2086
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2071
2087
|
agentSessionId: string | null;
|
|
2072
2088
|
pullRequestNumber: number | null;
|
|
2073
2089
|
pullRequestUrl: string | null;
|
|
@@ -2102,6 +2118,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2102
2118
|
agentId: string;
|
|
2103
2119
|
title: string | null;
|
|
2104
2120
|
updatedAt: string;
|
|
2121
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2105
2122
|
agentSessionId: string | null;
|
|
2106
2123
|
pullRequestNumber: number | null;
|
|
2107
2124
|
pullRequestUrl: string | null;
|
|
@@ -2136,6 +2153,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2136
2153
|
agentId: string;
|
|
2137
2154
|
title: string | null;
|
|
2138
2155
|
updatedAt: string;
|
|
2156
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2139
2157
|
agentSessionId: string | null;
|
|
2140
2158
|
pullRequestNumber: number | null;
|
|
2141
2159
|
pullRequestUrl: string | null;
|
|
@@ -2732,6 +2750,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2732
2750
|
chatId: z.ZodString;
|
|
2733
2751
|
userId: z.ZodString;
|
|
2734
2752
|
state: z.ZodString;
|
|
2753
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
2735
2754
|
agentId: z.ZodString;
|
|
2736
2755
|
machineId: z.ZodNullable<z.ZodString>;
|
|
2737
2756
|
cloudId: z.ZodNullable<z.ZodString>;
|
|
@@ -2798,6 +2817,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2798
2817
|
agentId: string;
|
|
2799
2818
|
title: string | null;
|
|
2800
2819
|
updatedAt: string;
|
|
2820
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2801
2821
|
agentSessionId: string | null;
|
|
2802
2822
|
pullRequestNumber: number | null;
|
|
2803
2823
|
pullRequestUrl: string | null;
|
|
@@ -2829,6 +2849,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2829
2849
|
agentId: string;
|
|
2830
2850
|
title: string | null;
|
|
2831
2851
|
updatedAt: string;
|
|
2852
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2832
2853
|
agentSessionId: string | null;
|
|
2833
2854
|
pullRequestNumber: number | null;
|
|
2834
2855
|
pullRequestUrl: string | null;
|
|
@@ -2862,6 +2883,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2862
2883
|
agentId: string;
|
|
2863
2884
|
title: string | null;
|
|
2864
2885
|
updatedAt: string;
|
|
2886
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2865
2887
|
agentSessionId: string | null;
|
|
2866
2888
|
pullRequestNumber: number | null;
|
|
2867
2889
|
pullRequestUrl: string | null;
|
|
@@ -2895,6 +2917,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2895
2917
|
agentId: string;
|
|
2896
2918
|
title: string | null;
|
|
2897
2919
|
updatedAt: string;
|
|
2920
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2898
2921
|
agentSessionId: string | null;
|
|
2899
2922
|
pullRequestNumber: number | null;
|
|
2900
2923
|
pullRequestUrl: string | null;
|
|
@@ -7054,16 +7077,19 @@ declare const WorkerInitializingSchema: z.ZodObject<{
|
|
|
7054
7077
|
taskId: z.ZodString;
|
|
7055
7078
|
machineId: z.ZodString;
|
|
7056
7079
|
timestamp: z.ZodString;
|
|
7080
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
7057
7081
|
}, "strip", z.ZodTypeAny, {
|
|
7058
7082
|
machineId: string;
|
|
7059
7083
|
taskId: string;
|
|
7060
7084
|
eventId: string;
|
|
7061
7085
|
timestamp: string;
|
|
7086
|
+
cwd?: string | undefined;
|
|
7062
7087
|
}, {
|
|
7063
7088
|
machineId: string;
|
|
7064
7089
|
taskId: string;
|
|
7065
7090
|
eventId: string;
|
|
7066
7091
|
timestamp: string;
|
|
7092
|
+
cwd?: string | undefined;
|
|
7067
7093
|
}>;
|
|
7068
7094
|
type WorkerInitializingEventData = z.infer<typeof WorkerInitializingSchema>;
|
|
7069
7095
|
declare const WorkerReadySchema: z.ZodObject<{
|
|
@@ -7164,6 +7190,8 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7164
7190
|
api_base_url: z.ZodOptional<z.ZodString>;
|
|
7165
7191
|
api_key: z.ZodOptional<z.ZodString>;
|
|
7166
7192
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
7193
|
+
repositoryId: z.ZodOptional<z.ZodString>;
|
|
7194
|
+
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
7167
7195
|
}, "strip", z.ZodTypeAny, {
|
|
7168
7196
|
userId: string;
|
|
7169
7197
|
taskId: string;
|
|
@@ -7172,7 +7200,9 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7172
7200
|
eventId: string;
|
|
7173
7201
|
agentType: string;
|
|
7174
7202
|
cwd?: string | undefined;
|
|
7203
|
+
repositoryId?: string | undefined;
|
|
7175
7204
|
baseBranch?: string | undefined;
|
|
7205
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7176
7206
|
dataEncryptionKey?: string | undefined;
|
|
7177
7207
|
gitUrl?: string | undefined;
|
|
7178
7208
|
model?: string | undefined;
|
|
@@ -7187,7 +7217,9 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
7187
7217
|
agentId: string;
|
|
7188
7218
|
eventId: string;
|
|
7189
7219
|
cwd?: string | undefined;
|
|
7220
|
+
repositoryId?: string | undefined;
|
|
7190
7221
|
baseBranch?: string | undefined;
|
|
7222
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7191
7223
|
dataEncryptionKey?: string | undefined;
|
|
7192
7224
|
gitUrl?: string | undefined;
|
|
7193
7225
|
agentType?: string | undefined;
|
|
@@ -7214,6 +7246,8 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7214
7246
|
api_base_url: z.ZodOptional<z.ZodString>;
|
|
7215
7247
|
api_key: z.ZodOptional<z.ZodString>;
|
|
7216
7248
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
7249
|
+
repositoryId: z.ZodOptional<z.ZodString>;
|
|
7250
|
+
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
7217
7251
|
} & {
|
|
7218
7252
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
7219
7253
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -7227,7 +7261,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7227
7261
|
message?: SDKUserMessage | undefined;
|
|
7228
7262
|
encryptedMessage?: string | undefined;
|
|
7229
7263
|
cwd?: string | undefined;
|
|
7264
|
+
repositoryId?: string | undefined;
|
|
7230
7265
|
baseBranch?: string | undefined;
|
|
7266
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7231
7267
|
dataEncryptionKey?: string | undefined;
|
|
7232
7268
|
gitUrl?: string | undefined;
|
|
7233
7269
|
model?: string | undefined;
|
|
@@ -7244,7 +7280,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7244
7280
|
message?: SDKUserMessage | undefined;
|
|
7245
7281
|
encryptedMessage?: string | undefined;
|
|
7246
7282
|
cwd?: string | undefined;
|
|
7283
|
+
repositoryId?: string | undefined;
|
|
7247
7284
|
baseBranch?: string | undefined;
|
|
7285
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7248
7286
|
dataEncryptionKey?: string | undefined;
|
|
7249
7287
|
gitUrl?: string | undefined;
|
|
7250
7288
|
agentType?: string | undefined;
|
|
@@ -7263,7 +7301,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7263
7301
|
message?: SDKUserMessage | undefined;
|
|
7264
7302
|
encryptedMessage?: string | undefined;
|
|
7265
7303
|
cwd?: string | undefined;
|
|
7304
|
+
repositoryId?: string | undefined;
|
|
7266
7305
|
baseBranch?: string | undefined;
|
|
7306
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7267
7307
|
dataEncryptionKey?: string | undefined;
|
|
7268
7308
|
gitUrl?: string | undefined;
|
|
7269
7309
|
model?: string | undefined;
|
|
@@ -7280,7 +7320,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7280
7320
|
message?: SDKUserMessage | undefined;
|
|
7281
7321
|
encryptedMessage?: string | undefined;
|
|
7282
7322
|
cwd?: string | undefined;
|
|
7323
|
+
repositoryId?: string | undefined;
|
|
7283
7324
|
baseBranch?: string | undefined;
|
|
7325
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7284
7326
|
dataEncryptionKey?: string | undefined;
|
|
7285
7327
|
gitUrl?: string | undefined;
|
|
7286
7328
|
agentType?: string | undefined;
|
|
@@ -7308,6 +7350,8 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7308
7350
|
api_base_url: z.ZodOptional<z.ZodString>;
|
|
7309
7351
|
api_key: z.ZodOptional<z.ZodString>;
|
|
7310
7352
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
7353
|
+
repositoryId: z.ZodOptional<z.ZodString>;
|
|
7354
|
+
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
7311
7355
|
} & {
|
|
7312
7356
|
agentSessionId: z.ZodString;
|
|
7313
7357
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -7325,7 +7369,9 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7325
7369
|
message?: SDKUserMessage | undefined;
|
|
7326
7370
|
encryptedMessage?: string | undefined;
|
|
7327
7371
|
cwd?: string | undefined;
|
|
7372
|
+
repositoryId?: string | undefined;
|
|
7328
7373
|
baseBranch?: string | undefined;
|
|
7374
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7329
7375
|
dataEncryptionKey?: string | undefined;
|
|
7330
7376
|
gitUrl?: string | undefined;
|
|
7331
7377
|
model?: string | undefined;
|
|
@@ -7345,7 +7391,9 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
7345
7391
|
message?: SDKUserMessage | undefined;
|
|
7346
7392
|
encryptedMessage?: string | undefined;
|
|
7347
7393
|
cwd?: string | undefined;
|
|
7394
|
+
repositoryId?: string | undefined;
|
|
7348
7395
|
baseBranch?: string | undefined;
|
|
7396
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
7349
7397
|
dataEncryptionKey?: string | undefined;
|
|
7350
7398
|
gitUrl?: string | undefined;
|
|
7351
7399
|
agentType?: string | undefined;
|
|
@@ -7749,6 +7797,27 @@ declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
|
|
|
7749
7797
|
cwd?: string | undefined;
|
|
7750
7798
|
}>;
|
|
7751
7799
|
type UpdateTaskAgentSessionIdEventData = z.infer<typeof UpdateTaskAgentSessionIdEventSchema>;
|
|
7800
|
+
declare const TaskInfoUpdateEventDataSchema: z.ZodObject<{
|
|
7801
|
+
eventId: z.ZodString;
|
|
7802
|
+
} & {
|
|
7803
|
+
taskId: z.ZodString;
|
|
7804
|
+
chatId: z.ZodString;
|
|
7805
|
+
updates: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
7806
|
+
updatedAt: z.ZodString;
|
|
7807
|
+
}, "strip", z.ZodTypeAny, {
|
|
7808
|
+
taskId: string;
|
|
7809
|
+
chatId: string;
|
|
7810
|
+
updatedAt: string;
|
|
7811
|
+
eventId: string;
|
|
7812
|
+
updates: Record<string, any>;
|
|
7813
|
+
}, {
|
|
7814
|
+
taskId: string;
|
|
7815
|
+
chatId: string;
|
|
7816
|
+
updatedAt: string;
|
|
7817
|
+
eventId: string;
|
|
7818
|
+
updates: Record<string, any>;
|
|
7819
|
+
}>;
|
|
7820
|
+
type TaskInfoUpdateEventData = z.infer<typeof TaskInfoUpdateEventDataSchema>;
|
|
7752
7821
|
declare const MergeRequestEventSchema: z.ZodObject<{
|
|
7753
7822
|
eventId: z.ZodString;
|
|
7754
7823
|
} & {
|
|
@@ -7791,6 +7860,30 @@ interface MergePullRequestAck {
|
|
|
7791
7860
|
error?: string;
|
|
7792
7861
|
errorType?: 'github_conflict' | 'pr_not_open' | 'permission_denied' | 'merge_failed' | 'unknown';
|
|
7793
7862
|
}
|
|
7863
|
+
declare const AssociateRepoEventDataSchema: z.ZodObject<{
|
|
7864
|
+
eventId: z.ZodString;
|
|
7865
|
+
} & {
|
|
7866
|
+
taskId: z.ZodString;
|
|
7867
|
+
gitServerHost: z.ZodString;
|
|
7868
|
+
owner: z.ZodString;
|
|
7869
|
+
repo: z.ZodString;
|
|
7870
|
+
remoteUrl: z.ZodString;
|
|
7871
|
+
}, "strip", z.ZodTypeAny, {
|
|
7872
|
+
taskId: string;
|
|
7873
|
+
owner: string;
|
|
7874
|
+
eventId: string;
|
|
7875
|
+
gitServerHost: string;
|
|
7876
|
+
repo: string;
|
|
7877
|
+
remoteUrl: string;
|
|
7878
|
+
}, {
|
|
7879
|
+
taskId: string;
|
|
7880
|
+
owner: string;
|
|
7881
|
+
eventId: string;
|
|
7882
|
+
gitServerHost: string;
|
|
7883
|
+
repo: string;
|
|
7884
|
+
remoteUrl: string;
|
|
7885
|
+
}>;
|
|
7886
|
+
type AssociateRepoEventData = z.infer<typeof AssociateRepoEventDataSchema>;
|
|
7794
7887
|
/**
|
|
7795
7888
|
* System message type
|
|
7796
7889
|
*/
|
|
@@ -8030,7 +8123,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
8030
8123
|
timestamp: string;
|
|
8031
8124
|
}>;
|
|
8032
8125
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
8033
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
8126
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
8034
8127
|
type EventMap = {
|
|
8035
8128
|
"app-alive": AppAliveEventData;
|
|
8036
8129
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -8048,9 +8141,11 @@ type EventMap = {
|
|
|
8048
8141
|
"change-task-title": ChangeTaskTitleEventData;
|
|
8049
8142
|
"task-state-change": TaskStateChangeEventData;
|
|
8050
8143
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
8144
|
+
"task-info-update": TaskInfoUpdateEventData;
|
|
8051
8145
|
"task-artifacts-updated": TaskArtifactsUpdatedEventData;
|
|
8052
8146
|
"merge-request": MergeRequestEventData;
|
|
8053
8147
|
"merge-pr": MergePullRequestEventData;
|
|
8148
|
+
"associate-repo": AssociateRepoEventData;
|
|
8054
8149
|
"system-message": SystemMessageEventData;
|
|
8055
8150
|
"credit-exhausted": CreditExhaustedEventData;
|
|
8056
8151
|
"workspace-file-request": WorkspaceFileRequestEventData;
|
|
@@ -8062,7 +8157,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
8062
8157
|
/**
|
|
8063
8158
|
* only sent by worker and which need to send to human in chat room
|
|
8064
8159
|
*/
|
|
8065
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request" | "merge-pr";
|
|
8160
|
+
type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request" | "merge-pr" | "associate-repo";
|
|
8066
8161
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
8067
8162
|
|
|
8068
8163
|
type ClientType = 'user' | 'worker' | 'machine';
|
|
@@ -8436,5 +8531,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
|
|
|
8436
8531
|
*/
|
|
8437
8532
|
declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
|
|
8438
8533
|
|
|
8439
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
8440
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
|
8534
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
8535
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShareAuthQuery, ShareAuthResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|