@agentrix/shared 2.0.5 → 2.0.7
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 +92 -3
- package/dist/index.d.cts +493 -132
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { SDKUserMessage, SDKMessage, HookCallback } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
import { SDKUserMessage, SDKAssistantMessage, SDKMessage, HookCallback } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import tweetnacl from 'tweetnacl';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
277
277
|
avatarUrl: string;
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
encryptedSecret: string | null;
|
|
281
280
|
id: string;
|
|
282
281
|
username: string;
|
|
283
282
|
email: string | null;
|
|
284
283
|
avatar: string | null;
|
|
284
|
+
encryptedSecret: string | null;
|
|
285
285
|
secretSalt: string | null;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
291
291
|
avatarUrl: string;
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
}, {
|
|
294
|
-
encryptedSecret: string | null;
|
|
295
294
|
id: string;
|
|
296
295
|
username: string;
|
|
297
296
|
email: string | null;
|
|
298
297
|
avatar: string | null;
|
|
298
|
+
encryptedSecret: string | null;
|
|
299
299
|
secretSalt: string | null;
|
|
300
300
|
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
user: {
|
|
310
|
-
encryptedSecret: string | null;
|
|
311
310
|
id: string;
|
|
312
311
|
username: string;
|
|
313
312
|
email: string | null;
|
|
314
313
|
avatar: string | null;
|
|
314
|
+
encryptedSecret: string | null;
|
|
315
315
|
secretSalt: string | null;
|
|
316
316
|
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
323
323
|
};
|
|
324
324
|
}, {
|
|
325
325
|
user: {
|
|
326
|
-
encryptedSecret: string | null;
|
|
327
326
|
id: string;
|
|
328
327
|
username: string;
|
|
329
328
|
email: string | null;
|
|
330
329
|
avatar: string | null;
|
|
330
|
+
encryptedSecret: string | null;
|
|
331
331
|
secretSalt: string | null;
|
|
332
332
|
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
@@ -593,13 +593,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
|
|
|
593
593
|
token: z.ZodString;
|
|
594
594
|
content: z.ZodString;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
token: string;
|
|
597
596
|
id: string;
|
|
597
|
+
token: string;
|
|
598
598
|
state: "authorized";
|
|
599
599
|
content: string;
|
|
600
600
|
}, {
|
|
601
|
-
token: string;
|
|
602
601
|
id: string;
|
|
602
|
+
token: string;
|
|
603
603
|
state: "authorized";
|
|
604
604
|
content: string;
|
|
605
605
|
}>;
|
|
@@ -778,6 +778,7 @@ type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
|
|
|
778
778
|
/**
|
|
779
779
|
* Task HTTP request/response schemas
|
|
780
780
|
* Task management endpoints (start, resume, cancel, stop, permission-response, list)
|
|
781
|
+
* Extended with multi-agent collaboration support (rootTaskId, parentTaskId)
|
|
781
782
|
*/
|
|
782
783
|
|
|
783
784
|
/**
|
|
@@ -795,6 +796,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
795
796
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
796
797
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
797
798
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
799
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
798
800
|
}, "strip", z.ZodTypeAny, {
|
|
799
801
|
chatId: string;
|
|
800
802
|
message?: SDKUserMessage | undefined;
|
|
@@ -807,6 +809,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
807
809
|
baseBranch?: string | undefined;
|
|
808
810
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
809
811
|
dataEncryptionKey?: string | undefined;
|
|
812
|
+
parentTaskId?: string | undefined;
|
|
810
813
|
}, {
|
|
811
814
|
chatId: string;
|
|
812
815
|
message?: SDKUserMessage | undefined;
|
|
@@ -819,6 +822,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
819
822
|
baseBranch?: string | undefined;
|
|
820
823
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
821
824
|
dataEncryptionKey?: string | undefined;
|
|
825
|
+
parentTaskId?: string | undefined;
|
|
822
826
|
}>, {
|
|
823
827
|
chatId: string;
|
|
824
828
|
message?: SDKUserMessage | undefined;
|
|
@@ -831,6 +835,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
831
835
|
baseBranch?: string | undefined;
|
|
832
836
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
833
837
|
dataEncryptionKey?: string | undefined;
|
|
838
|
+
parentTaskId?: string | undefined;
|
|
834
839
|
}, {
|
|
835
840
|
chatId: string;
|
|
836
841
|
message?: SDKUserMessage | undefined;
|
|
@@ -843,6 +848,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
843
848
|
baseBranch?: string | undefined;
|
|
844
849
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
845
850
|
dataEncryptionKey?: string | undefined;
|
|
851
|
+
parentTaskId?: string | undefined;
|
|
846
852
|
}>, {
|
|
847
853
|
chatId: string;
|
|
848
854
|
message?: SDKUserMessage | undefined;
|
|
@@ -855,6 +861,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
855
861
|
baseBranch?: string | undefined;
|
|
856
862
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
857
863
|
dataEncryptionKey?: string | undefined;
|
|
864
|
+
parentTaskId?: string | undefined;
|
|
858
865
|
}, {
|
|
859
866
|
chatId: string;
|
|
860
867
|
message?: SDKUserMessage | undefined;
|
|
@@ -867,6 +874,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
867
874
|
baseBranch?: string | undefined;
|
|
868
875
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
869
876
|
dataEncryptionKey?: string | undefined;
|
|
877
|
+
parentTaskId?: string | undefined;
|
|
870
878
|
}>;
|
|
871
879
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
872
880
|
declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
@@ -881,6 +889,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
881
889
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
882
890
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
883
891
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
892
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
884
893
|
}, "strip", z.ZodTypeAny, {
|
|
885
894
|
chatId: string;
|
|
886
895
|
message?: SDKUserMessage | undefined;
|
|
@@ -893,6 +902,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
893
902
|
baseBranch?: string | undefined;
|
|
894
903
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
895
904
|
dataEncryptionKey?: string | undefined;
|
|
905
|
+
parentTaskId?: string | undefined;
|
|
896
906
|
}, {
|
|
897
907
|
chatId: string;
|
|
898
908
|
message?: SDKUserMessage | undefined;
|
|
@@ -905,6 +915,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
905
915
|
baseBranch?: string | undefined;
|
|
906
916
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
907
917
|
dataEncryptionKey?: string | undefined;
|
|
918
|
+
parentTaskId?: string | undefined;
|
|
908
919
|
}>, {
|
|
909
920
|
chatId: string;
|
|
910
921
|
message?: SDKUserMessage | undefined;
|
|
@@ -917,6 +928,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
917
928
|
baseBranch?: string | undefined;
|
|
918
929
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
919
930
|
dataEncryptionKey?: string | undefined;
|
|
931
|
+
parentTaskId?: string | undefined;
|
|
920
932
|
}, {
|
|
921
933
|
chatId: string;
|
|
922
934
|
message?: SDKUserMessage | undefined;
|
|
@@ -929,6 +941,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
929
941
|
baseBranch?: string | undefined;
|
|
930
942
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
931
943
|
dataEncryptionKey?: string | undefined;
|
|
944
|
+
parentTaskId?: string | undefined;
|
|
932
945
|
}>, {
|
|
933
946
|
chatId: string;
|
|
934
947
|
message?: SDKUserMessage | undefined;
|
|
@@ -941,6 +954,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
941
954
|
baseBranch?: string | undefined;
|
|
942
955
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
943
956
|
dataEncryptionKey?: string | undefined;
|
|
957
|
+
parentTaskId?: string | undefined;
|
|
944
958
|
}, {
|
|
945
959
|
chatId: string;
|
|
946
960
|
message?: SDKUserMessage | undefined;
|
|
@@ -953,6 +967,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
953
967
|
baseBranch?: string | undefined;
|
|
954
968
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
955
969
|
dataEncryptionKey?: string | undefined;
|
|
970
|
+
parentTaskId?: string | undefined;
|
|
956
971
|
}>;
|
|
957
972
|
/**
|
|
958
973
|
* POST /v1/tasks/start - Response schema (201 Created)
|
|
@@ -1064,6 +1079,8 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1064
1079
|
}[];
|
|
1065
1080
|
}>>;
|
|
1066
1081
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1082
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1083
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1067
1084
|
createdAt: z.ZodString;
|
|
1068
1085
|
updatedAt: z.ZodString;
|
|
1069
1086
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1080,6 +1097,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1080
1097
|
baseBranch: string | null;
|
|
1081
1098
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1082
1099
|
dataEncryptionKey: string | null;
|
|
1100
|
+
parentTaskId: string | null;
|
|
1083
1101
|
agentId: string;
|
|
1084
1102
|
title: string | null;
|
|
1085
1103
|
userCwd: string | null;
|
|
@@ -1101,6 +1119,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1101
1119
|
}[];
|
|
1102
1120
|
} | null;
|
|
1103
1121
|
totalDuration: number | null;
|
|
1122
|
+
rootTaskId: string | null;
|
|
1104
1123
|
}, {
|
|
1105
1124
|
id: string;
|
|
1106
1125
|
createdAt: string;
|
|
@@ -1115,6 +1134,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1115
1134
|
baseBranch: string | null;
|
|
1116
1135
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1117
1136
|
dataEncryptionKey: string | null;
|
|
1137
|
+
parentTaskId: string | null;
|
|
1118
1138
|
agentId: string;
|
|
1119
1139
|
title: string | null;
|
|
1120
1140
|
userCwd: string | null;
|
|
@@ -1136,6 +1156,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1136
1156
|
}[];
|
|
1137
1157
|
} | null;
|
|
1138
1158
|
totalDuration: number | null;
|
|
1159
|
+
rootTaskId: string | null;
|
|
1139
1160
|
}>;
|
|
1140
1161
|
type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
1141
1162
|
/**
|
|
@@ -1219,6 +1240,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1219
1240
|
}[];
|
|
1220
1241
|
}>>;
|
|
1221
1242
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1243
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1244
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1222
1245
|
createdAt: z.ZodString;
|
|
1223
1246
|
updatedAt: z.ZodString;
|
|
1224
1247
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1235,6 +1258,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1235
1258
|
baseBranch: string | null;
|
|
1236
1259
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1237
1260
|
dataEncryptionKey: string | null;
|
|
1261
|
+
parentTaskId: string | null;
|
|
1238
1262
|
agentId: string;
|
|
1239
1263
|
title: string | null;
|
|
1240
1264
|
userCwd: string | null;
|
|
@@ -1256,6 +1280,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1256
1280
|
}[];
|
|
1257
1281
|
} | null;
|
|
1258
1282
|
totalDuration: number | null;
|
|
1283
|
+
rootTaskId: string | null;
|
|
1259
1284
|
}, {
|
|
1260
1285
|
id: string;
|
|
1261
1286
|
createdAt: string;
|
|
@@ -1270,6 +1295,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1270
1295
|
baseBranch: string | null;
|
|
1271
1296
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1272
1297
|
dataEncryptionKey: string | null;
|
|
1298
|
+
parentTaskId: string | null;
|
|
1273
1299
|
agentId: string;
|
|
1274
1300
|
title: string | null;
|
|
1275
1301
|
userCwd: string | null;
|
|
@@ -1291,6 +1317,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1291
1317
|
}[];
|
|
1292
1318
|
} | null;
|
|
1293
1319
|
totalDuration: number | null;
|
|
1320
|
+
rootTaskId: string | null;
|
|
1294
1321
|
}>, "many">;
|
|
1295
1322
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1296
1323
|
hasMore: z.ZodBoolean;
|
|
@@ -1309,6 +1336,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1309
1336
|
baseBranch: string | null;
|
|
1310
1337
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1311
1338
|
dataEncryptionKey: string | null;
|
|
1339
|
+
parentTaskId: string | null;
|
|
1312
1340
|
agentId: string;
|
|
1313
1341
|
title: string | null;
|
|
1314
1342
|
userCwd: string | null;
|
|
@@ -1330,6 +1358,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1330
1358
|
}[];
|
|
1331
1359
|
} | null;
|
|
1332
1360
|
totalDuration: number | null;
|
|
1361
|
+
rootTaskId: string | null;
|
|
1333
1362
|
}[];
|
|
1334
1363
|
nextCursor: string | null;
|
|
1335
1364
|
hasMore: boolean;
|
|
@@ -1348,6 +1377,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1348
1377
|
baseBranch: string | null;
|
|
1349
1378
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1350
1379
|
dataEncryptionKey: string | null;
|
|
1380
|
+
parentTaskId: string | null;
|
|
1351
1381
|
agentId: string;
|
|
1352
1382
|
title: string | null;
|
|
1353
1383
|
userCwd: string | null;
|
|
@@ -1369,6 +1399,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1369
1399
|
}[];
|
|
1370
1400
|
} | null;
|
|
1371
1401
|
totalDuration: number | null;
|
|
1402
|
+
rootTaskId: string | null;
|
|
1372
1403
|
}[];
|
|
1373
1404
|
nextCursor: string | null;
|
|
1374
1405
|
hasMore: boolean;
|
|
@@ -1887,6 +1918,8 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1887
1918
|
}[];
|
|
1888
1919
|
}>>;
|
|
1889
1920
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1921
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
1922
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
1890
1923
|
createdAt: z.ZodString;
|
|
1891
1924
|
updatedAt: z.ZodString;
|
|
1892
1925
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1903,6 +1936,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1903
1936
|
baseBranch: string | null;
|
|
1904
1937
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1905
1938
|
dataEncryptionKey: string | null;
|
|
1939
|
+
parentTaskId: string | null;
|
|
1906
1940
|
agentId: string;
|
|
1907
1941
|
title: string | null;
|
|
1908
1942
|
userCwd: string | null;
|
|
@@ -1924,6 +1958,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1924
1958
|
}[];
|
|
1925
1959
|
} | null;
|
|
1926
1960
|
totalDuration: number | null;
|
|
1961
|
+
rootTaskId: string | null;
|
|
1927
1962
|
}, {
|
|
1928
1963
|
id: string;
|
|
1929
1964
|
createdAt: string;
|
|
@@ -1938,6 +1973,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1938
1973
|
baseBranch: string | null;
|
|
1939
1974
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1940
1975
|
dataEncryptionKey: string | null;
|
|
1976
|
+
parentTaskId: string | null;
|
|
1941
1977
|
agentId: string;
|
|
1942
1978
|
title: string | null;
|
|
1943
1979
|
userCwd: string | null;
|
|
@@ -1959,6 +1995,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1959
1995
|
}[];
|
|
1960
1996
|
} | null;
|
|
1961
1997
|
totalDuration: number | null;
|
|
1998
|
+
rootTaskId: string | null;
|
|
1962
1999
|
}>;
|
|
1963
2000
|
}, "strip", z.ZodTypeAny, {
|
|
1964
2001
|
success: boolean;
|
|
@@ -1976,6 +2013,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1976
2013
|
baseBranch: string | null;
|
|
1977
2014
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1978
2015
|
dataEncryptionKey: string | null;
|
|
2016
|
+
parentTaskId: string | null;
|
|
1979
2017
|
agentId: string;
|
|
1980
2018
|
title: string | null;
|
|
1981
2019
|
userCwd: string | null;
|
|
@@ -1997,6 +2035,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1997
2035
|
}[];
|
|
1998
2036
|
} | null;
|
|
1999
2037
|
totalDuration: number | null;
|
|
2038
|
+
rootTaskId: string | null;
|
|
2000
2039
|
};
|
|
2001
2040
|
}, {
|
|
2002
2041
|
success: boolean;
|
|
@@ -2014,6 +2053,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2014
2053
|
baseBranch: string | null;
|
|
2015
2054
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2016
2055
|
dataEncryptionKey: string | null;
|
|
2056
|
+
parentTaskId: string | null;
|
|
2017
2057
|
agentId: string;
|
|
2018
2058
|
title: string | null;
|
|
2019
2059
|
userCwd: string | null;
|
|
@@ -2035,6 +2075,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2035
2075
|
}[];
|
|
2036
2076
|
} | null;
|
|
2037
2077
|
totalDuration: number | null;
|
|
2078
|
+
rootTaskId: string | null;
|
|
2038
2079
|
};
|
|
2039
2080
|
}>;
|
|
2040
2081
|
type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
|
|
@@ -2105,6 +2146,8 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2105
2146
|
}[];
|
|
2106
2147
|
}>>;
|
|
2107
2148
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
2149
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
2150
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
2108
2151
|
createdAt: z.ZodString;
|
|
2109
2152
|
updatedAt: z.ZodString;
|
|
2110
2153
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2121,6 +2164,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2121
2164
|
baseBranch: string | null;
|
|
2122
2165
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2123
2166
|
dataEncryptionKey: string | null;
|
|
2167
|
+
parentTaskId: string | null;
|
|
2124
2168
|
agentId: string;
|
|
2125
2169
|
title: string | null;
|
|
2126
2170
|
userCwd: string | null;
|
|
@@ -2142,6 +2186,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2142
2186
|
}[];
|
|
2143
2187
|
} | null;
|
|
2144
2188
|
totalDuration: number | null;
|
|
2189
|
+
rootTaskId: string | null;
|
|
2145
2190
|
}, {
|
|
2146
2191
|
id: string;
|
|
2147
2192
|
createdAt: string;
|
|
@@ -2156,6 +2201,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2156
2201
|
baseBranch: string | null;
|
|
2157
2202
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2158
2203
|
dataEncryptionKey: string | null;
|
|
2204
|
+
parentTaskId: string | null;
|
|
2159
2205
|
agentId: string;
|
|
2160
2206
|
title: string | null;
|
|
2161
2207
|
userCwd: string | null;
|
|
@@ -2177,6 +2223,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2177
2223
|
}[];
|
|
2178
2224
|
} | null;
|
|
2179
2225
|
totalDuration: number | null;
|
|
2226
|
+
rootTaskId: string | null;
|
|
2180
2227
|
}>;
|
|
2181
2228
|
}, "strip", z.ZodTypeAny, {
|
|
2182
2229
|
success: boolean;
|
|
@@ -2194,6 +2241,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2194
2241
|
baseBranch: string | null;
|
|
2195
2242
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2196
2243
|
dataEncryptionKey: string | null;
|
|
2244
|
+
parentTaskId: string | null;
|
|
2197
2245
|
agentId: string;
|
|
2198
2246
|
title: string | null;
|
|
2199
2247
|
userCwd: string | null;
|
|
@@ -2215,6 +2263,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2215
2263
|
}[];
|
|
2216
2264
|
} | null;
|
|
2217
2265
|
totalDuration: number | null;
|
|
2266
|
+
rootTaskId: string | null;
|
|
2218
2267
|
};
|
|
2219
2268
|
}, {
|
|
2220
2269
|
success: boolean;
|
|
@@ -2232,6 +2281,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2232
2281
|
baseBranch: string | null;
|
|
2233
2282
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2234
2283
|
dataEncryptionKey: string | null;
|
|
2284
|
+
parentTaskId: string | null;
|
|
2235
2285
|
agentId: string;
|
|
2236
2286
|
title: string | null;
|
|
2237
2287
|
userCwd: string | null;
|
|
@@ -2253,6 +2303,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2253
2303
|
}[];
|
|
2254
2304
|
} | null;
|
|
2255
2305
|
totalDuration: number | null;
|
|
2306
|
+
rootTaskId: string | null;
|
|
2256
2307
|
};
|
|
2257
2308
|
}>;
|
|
2258
2309
|
type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
|
|
@@ -2329,6 +2380,8 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2329
2380
|
}[];
|
|
2330
2381
|
}>>;
|
|
2331
2382
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
2383
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
2384
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
2332
2385
|
createdAt: z.ZodString;
|
|
2333
2386
|
updatedAt: z.ZodString;
|
|
2334
2387
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2345,6 +2398,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2345
2398
|
baseBranch: string | null;
|
|
2346
2399
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2347
2400
|
dataEncryptionKey: string | null;
|
|
2401
|
+
parentTaskId: string | null;
|
|
2348
2402
|
agentId: string;
|
|
2349
2403
|
title: string | null;
|
|
2350
2404
|
userCwd: string | null;
|
|
@@ -2366,6 +2420,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2366
2420
|
}[];
|
|
2367
2421
|
} | null;
|
|
2368
2422
|
totalDuration: number | null;
|
|
2423
|
+
rootTaskId: string | null;
|
|
2369
2424
|
}, {
|
|
2370
2425
|
id: string;
|
|
2371
2426
|
createdAt: string;
|
|
@@ -2380,6 +2435,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2380
2435
|
baseBranch: string | null;
|
|
2381
2436
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2382
2437
|
dataEncryptionKey: string | null;
|
|
2438
|
+
parentTaskId: string | null;
|
|
2383
2439
|
agentId: string;
|
|
2384
2440
|
title: string | null;
|
|
2385
2441
|
userCwd: string | null;
|
|
@@ -2401,6 +2457,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2401
2457
|
}[];
|
|
2402
2458
|
} | null;
|
|
2403
2459
|
totalDuration: number | null;
|
|
2460
|
+
rootTaskId: string | null;
|
|
2404
2461
|
}>;
|
|
2405
2462
|
}, "strip", z.ZodTypeAny, {
|
|
2406
2463
|
success: boolean;
|
|
@@ -2418,6 +2475,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2418
2475
|
baseBranch: string | null;
|
|
2419
2476
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2420
2477
|
dataEncryptionKey: string | null;
|
|
2478
|
+
parentTaskId: string | null;
|
|
2421
2479
|
agentId: string;
|
|
2422
2480
|
title: string | null;
|
|
2423
2481
|
userCwd: string | null;
|
|
@@ -2439,6 +2497,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2439
2497
|
}[];
|
|
2440
2498
|
} | null;
|
|
2441
2499
|
totalDuration: number | null;
|
|
2500
|
+
rootTaskId: string | null;
|
|
2442
2501
|
};
|
|
2443
2502
|
}, {
|
|
2444
2503
|
success: boolean;
|
|
@@ -2456,6 +2515,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2456
2515
|
baseBranch: string | null;
|
|
2457
2516
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2458
2517
|
dataEncryptionKey: string | null;
|
|
2518
|
+
parentTaskId: string | null;
|
|
2459
2519
|
agentId: string;
|
|
2460
2520
|
title: string | null;
|
|
2461
2521
|
userCwd: string | null;
|
|
@@ -2477,9 +2537,116 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2477
2537
|
}[];
|
|
2478
2538
|
} | null;
|
|
2479
2539
|
totalDuration: number | null;
|
|
2540
|
+
rootTaskId: string | null;
|
|
2480
2541
|
};
|
|
2481
2542
|
}>;
|
|
2482
2543
|
type UpdateTaskTitleResponse = z.infer<typeof UpdateTaskTitleResponseSchema>;
|
|
2544
|
+
/**
|
|
2545
|
+
* Message target type
|
|
2546
|
+
* - 'agent': Send to task's agent worker (injects as user message)
|
|
2547
|
+
* - 'user': Send to users viewing the task (shows in chat UI)
|
|
2548
|
+
*/
|
|
2549
|
+
type SendMessageTarget = 'agent' | 'user';
|
|
2550
|
+
/**
|
|
2551
|
+
* POST /v1/tasks/:taskId/send-message - Request schema
|
|
2552
|
+
* Sends a message to a task's worker or to users viewing the task
|
|
2553
|
+
*
|
|
2554
|
+
* Target behavior:
|
|
2555
|
+
* - 'agent': Routes SDKUserMessage to task's agent worker
|
|
2556
|
+
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task
|
|
2557
|
+
*/
|
|
2558
|
+
declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
2559
|
+
message: z.ZodType<SDKUserMessage | SDKAssistantMessage, z.ZodTypeDef, SDKUserMessage | SDKAssistantMessage>;
|
|
2560
|
+
target: z.ZodEnum<["agent", "user"]>;
|
|
2561
|
+
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
2562
|
+
}, "strip", z.ZodTypeAny, {
|
|
2563
|
+
message: SDKUserMessage | SDKAssistantMessage;
|
|
2564
|
+
target: "user" | "agent";
|
|
2565
|
+
fromTaskId?: string | undefined;
|
|
2566
|
+
}, {
|
|
2567
|
+
message: SDKUserMessage | SDKAssistantMessage;
|
|
2568
|
+
target: "user" | "agent";
|
|
2569
|
+
fromTaskId?: string | undefined;
|
|
2570
|
+
}>;
|
|
2571
|
+
type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
2572
|
+
/**
|
|
2573
|
+
* POST /v1/tasks/:taskId/send-message - Response schema
|
|
2574
|
+
*/
|
|
2575
|
+
declare const SendTaskMessageResponseSchema: z.ZodObject<{
|
|
2576
|
+
success: z.ZodBoolean;
|
|
2577
|
+
}, "strip", z.ZodTypeAny, {
|
|
2578
|
+
success: boolean;
|
|
2579
|
+
}, {
|
|
2580
|
+
success: boolean;
|
|
2581
|
+
}>;
|
|
2582
|
+
type SendTaskMessageResponse = z.infer<typeof SendTaskMessageResponseSchema>;
|
|
2583
|
+
/**
|
|
2584
|
+
* POST /v1/tasks/:taskId/show-modal - Request schema
|
|
2585
|
+
* Shows a modal dialog to users viewing the task
|
|
2586
|
+
*/
|
|
2587
|
+
declare const ShowModalRequestSchema: z.ZodObject<{
|
|
2588
|
+
modalName: z.ZodString;
|
|
2589
|
+
modalData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2590
|
+
}, "strip", z.ZodTypeAny, {
|
|
2591
|
+
modalName: string;
|
|
2592
|
+
modalData: Record<string, any>;
|
|
2593
|
+
}, {
|
|
2594
|
+
modalName: string;
|
|
2595
|
+
modalData: Record<string, any>;
|
|
2596
|
+
}>;
|
|
2597
|
+
type ShowModalRequest = z.infer<typeof ShowModalRequestSchema>;
|
|
2598
|
+
/**
|
|
2599
|
+
* POST /v1/tasks/:taskId/show-modal - Response schema
|
|
2600
|
+
*/
|
|
2601
|
+
declare const ShowModalResponseSchema: z.ZodObject<{
|
|
2602
|
+
success: z.ZodBoolean;
|
|
2603
|
+
}, "strip", z.ZodTypeAny, {
|
|
2604
|
+
success: boolean;
|
|
2605
|
+
}, {
|
|
2606
|
+
success: boolean;
|
|
2607
|
+
}>;
|
|
2608
|
+
type ShowModalResponse = z.infer<typeof ShowModalResponseSchema>;
|
|
2609
|
+
/**
|
|
2610
|
+
* GET /v1/tasks/:taskId/session - Response schema
|
|
2611
|
+
* Returns the session file path and current state
|
|
2612
|
+
*/
|
|
2613
|
+
declare const GetTaskSessionResponseSchema: z.ZodObject<{
|
|
2614
|
+
sessionPath: z.ZodString;
|
|
2615
|
+
state: z.ZodString;
|
|
2616
|
+
}, "strip", z.ZodTypeAny, {
|
|
2617
|
+
state: string;
|
|
2618
|
+
sessionPath: string;
|
|
2619
|
+
}, {
|
|
2620
|
+
state: string;
|
|
2621
|
+
sessionPath: string;
|
|
2622
|
+
}>;
|
|
2623
|
+
type GetTaskSessionResponse = z.infer<typeof GetTaskSessionResponseSchema>;
|
|
2624
|
+
/**
|
|
2625
|
+
* GET /v1/tasks/find-by-agent - Query parameters schema
|
|
2626
|
+
* Finds a task by parentTaskId and agentId
|
|
2627
|
+
*/
|
|
2628
|
+
declare const FindTaskByAgentRequestSchema: z.ZodObject<{
|
|
2629
|
+
parentTaskId: z.ZodString;
|
|
2630
|
+
agentId: z.ZodString;
|
|
2631
|
+
}, "strip", z.ZodTypeAny, {
|
|
2632
|
+
parentTaskId: string;
|
|
2633
|
+
agentId: string;
|
|
2634
|
+
}, {
|
|
2635
|
+
parentTaskId: string;
|
|
2636
|
+
agentId: string;
|
|
2637
|
+
}>;
|
|
2638
|
+
type FindTaskByAgentRequest = z.infer<typeof FindTaskByAgentRequestSchema>;
|
|
2639
|
+
/**
|
|
2640
|
+
* GET /v1/tasks/find-by-agent - Response schema
|
|
2641
|
+
*/
|
|
2642
|
+
declare const FindTaskByAgentResponseSchema: z.ZodObject<{
|
|
2643
|
+
taskId: z.ZodNullable<z.ZodString>;
|
|
2644
|
+
}, "strip", z.ZodTypeAny, {
|
|
2645
|
+
taskId: string | null;
|
|
2646
|
+
}, {
|
|
2647
|
+
taskId: string | null;
|
|
2648
|
+
}>;
|
|
2649
|
+
type FindTaskByAgentResponse = z.infer<typeof FindTaskByAgentResponseSchema>;
|
|
2483
2650
|
|
|
2484
2651
|
/**
|
|
2485
2652
|
* Chat HTTP request/response schemas
|
|
@@ -2498,7 +2665,7 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2498
2665
|
createdAt: z.ZodString;
|
|
2499
2666
|
updatedAt: z.ZodString;
|
|
2500
2667
|
}, "strip", z.ZodTypeAny, {
|
|
2501
|
-
type: "
|
|
2668
|
+
type: "agent" | "human";
|
|
2502
2669
|
id: string;
|
|
2503
2670
|
createdAt: string;
|
|
2504
2671
|
chatId: string;
|
|
@@ -2506,7 +2673,7 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2506
2673
|
memberCode: string;
|
|
2507
2674
|
role: string;
|
|
2508
2675
|
}, {
|
|
2509
|
-
type: "
|
|
2676
|
+
type: "agent" | "human";
|
|
2510
2677
|
id: string;
|
|
2511
2678
|
createdAt: string;
|
|
2512
2679
|
chatId: string;
|
|
@@ -2527,6 +2694,7 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
2527
2694
|
id: z.ZodString;
|
|
2528
2695
|
owner: z.ZodString;
|
|
2529
2696
|
type: z.ZodEnum<["direct", "group"]>;
|
|
2697
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2530
2698
|
createdAt: z.ZodString;
|
|
2531
2699
|
updatedAt: z.ZodString;
|
|
2532
2700
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2535,12 +2703,14 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
2535
2703
|
createdAt: string;
|
|
2536
2704
|
updatedAt: string;
|
|
2537
2705
|
owner: string;
|
|
2706
|
+
title?: string | null | undefined;
|
|
2538
2707
|
}, {
|
|
2539
2708
|
type: "direct" | "group";
|
|
2540
2709
|
id: string;
|
|
2541
2710
|
createdAt: string;
|
|
2542
2711
|
updatedAt: string;
|
|
2543
2712
|
owner: string;
|
|
2713
|
+
title?: string | null | undefined;
|
|
2544
2714
|
}>;
|
|
2545
2715
|
type Chat = z.infer<typeof ChatSchema>;
|
|
2546
2716
|
/**
|
|
@@ -2550,6 +2720,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2550
2720
|
id: z.ZodString;
|
|
2551
2721
|
owner: z.ZodString;
|
|
2552
2722
|
type: z.ZodEnum<["direct", "group"]>;
|
|
2723
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2553
2724
|
createdAt: z.ZodString;
|
|
2554
2725
|
updatedAt: z.ZodString;
|
|
2555
2726
|
} & {
|
|
@@ -2562,7 +2733,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2562
2733
|
createdAt: z.ZodString;
|
|
2563
2734
|
updatedAt: z.ZodString;
|
|
2564
2735
|
}, "strip", z.ZodTypeAny, {
|
|
2565
|
-
type: "
|
|
2736
|
+
type: "agent" | "human";
|
|
2566
2737
|
id: string;
|
|
2567
2738
|
createdAt: string;
|
|
2568
2739
|
chatId: string;
|
|
@@ -2570,7 +2741,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2570
2741
|
memberCode: string;
|
|
2571
2742
|
role: string;
|
|
2572
2743
|
}, {
|
|
2573
|
-
type: "
|
|
2744
|
+
type: "agent" | "human";
|
|
2574
2745
|
id: string;
|
|
2575
2746
|
createdAt: string;
|
|
2576
2747
|
chatId: string;
|
|
@@ -2585,7 +2756,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2585
2756
|
updatedAt: string;
|
|
2586
2757
|
owner: string;
|
|
2587
2758
|
members: {
|
|
2588
|
-
type: "
|
|
2759
|
+
type: "agent" | "human";
|
|
2589
2760
|
id: string;
|
|
2590
2761
|
createdAt: string;
|
|
2591
2762
|
chatId: string;
|
|
@@ -2593,6 +2764,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2593
2764
|
memberCode: string;
|
|
2594
2765
|
role: string;
|
|
2595
2766
|
}[];
|
|
2767
|
+
title?: string | null | undefined;
|
|
2596
2768
|
}, {
|
|
2597
2769
|
type: "direct" | "group";
|
|
2598
2770
|
id: string;
|
|
@@ -2600,7 +2772,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2600
2772
|
updatedAt: string;
|
|
2601
2773
|
owner: string;
|
|
2602
2774
|
members: {
|
|
2603
|
-
type: "
|
|
2775
|
+
type: "agent" | "human";
|
|
2604
2776
|
id: string;
|
|
2605
2777
|
createdAt: string;
|
|
2606
2778
|
chatId: string;
|
|
@@ -2608,6 +2780,7 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2608
2780
|
memberCode: string;
|
|
2609
2781
|
role: string;
|
|
2610
2782
|
}[];
|
|
2783
|
+
title?: string | null | undefined;
|
|
2611
2784
|
}>;
|
|
2612
2785
|
type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
|
|
2613
2786
|
/**
|
|
@@ -2617,10 +2790,10 @@ declare const ChatMemberInputSchema: z.ZodObject<{
|
|
|
2617
2790
|
memberCode: z.ZodString;
|
|
2618
2791
|
type: z.ZodEnum<["human", "agent"]>;
|
|
2619
2792
|
}, "strip", z.ZodTypeAny, {
|
|
2620
|
-
type: "
|
|
2793
|
+
type: "agent" | "human";
|
|
2621
2794
|
memberCode: string;
|
|
2622
2795
|
}, {
|
|
2623
|
-
type: "
|
|
2796
|
+
type: "agent" | "human";
|
|
2624
2797
|
memberCode: string;
|
|
2625
2798
|
}>;
|
|
2626
2799
|
type ChatMemberInput = z.infer<typeof ChatMemberInputSchema>;
|
|
@@ -2633,21 +2806,21 @@ declare const CreateChatRequestSchema: z.ZodObject<{
|
|
|
2633
2806
|
memberCode: z.ZodString;
|
|
2634
2807
|
type: z.ZodEnum<["human", "agent"]>;
|
|
2635
2808
|
}, "strip", z.ZodTypeAny, {
|
|
2636
|
-
type: "
|
|
2809
|
+
type: "agent" | "human";
|
|
2637
2810
|
memberCode: string;
|
|
2638
2811
|
}, {
|
|
2639
|
-
type: "
|
|
2812
|
+
type: "agent" | "human";
|
|
2640
2813
|
memberCode: string;
|
|
2641
2814
|
}>, "many">;
|
|
2642
2815
|
}, "strip", z.ZodTypeAny, {
|
|
2643
2816
|
type: "direct" | "group";
|
|
2644
2817
|
members: {
|
|
2645
|
-
type: "
|
|
2818
|
+
type: "agent" | "human";
|
|
2646
2819
|
memberCode: string;
|
|
2647
2820
|
}[];
|
|
2648
2821
|
}, {
|
|
2649
2822
|
members: {
|
|
2650
|
-
type: "
|
|
2823
|
+
type: "agent" | "human";
|
|
2651
2824
|
memberCode: string;
|
|
2652
2825
|
}[];
|
|
2653
2826
|
type?: "direct" | "group" | undefined;
|
|
@@ -2660,6 +2833,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2660
2833
|
id: z.ZodString;
|
|
2661
2834
|
owner: z.ZodString;
|
|
2662
2835
|
type: z.ZodEnum<["direct", "group"]>;
|
|
2836
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2663
2837
|
createdAt: z.ZodString;
|
|
2664
2838
|
updatedAt: z.ZodString;
|
|
2665
2839
|
} & {
|
|
@@ -2672,7 +2846,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2672
2846
|
createdAt: z.ZodString;
|
|
2673
2847
|
updatedAt: z.ZodString;
|
|
2674
2848
|
}, "strip", z.ZodTypeAny, {
|
|
2675
|
-
type: "
|
|
2849
|
+
type: "agent" | "human";
|
|
2676
2850
|
id: string;
|
|
2677
2851
|
createdAt: string;
|
|
2678
2852
|
chatId: string;
|
|
@@ -2680,7 +2854,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2680
2854
|
memberCode: string;
|
|
2681
2855
|
role: string;
|
|
2682
2856
|
}, {
|
|
2683
|
-
type: "
|
|
2857
|
+
type: "agent" | "human";
|
|
2684
2858
|
id: string;
|
|
2685
2859
|
createdAt: string;
|
|
2686
2860
|
chatId: string;
|
|
@@ -2695,7 +2869,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2695
2869
|
updatedAt: string;
|
|
2696
2870
|
owner: string;
|
|
2697
2871
|
members: {
|
|
2698
|
-
type: "
|
|
2872
|
+
type: "agent" | "human";
|
|
2699
2873
|
id: string;
|
|
2700
2874
|
createdAt: string;
|
|
2701
2875
|
chatId: string;
|
|
@@ -2703,6 +2877,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2703
2877
|
memberCode: string;
|
|
2704
2878
|
role: string;
|
|
2705
2879
|
}[];
|
|
2880
|
+
title?: string | null | undefined;
|
|
2706
2881
|
}, {
|
|
2707
2882
|
type: "direct" | "group";
|
|
2708
2883
|
id: string;
|
|
@@ -2710,7 +2885,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2710
2885
|
updatedAt: string;
|
|
2711
2886
|
owner: string;
|
|
2712
2887
|
members: {
|
|
2713
|
-
type: "
|
|
2888
|
+
type: "agent" | "human";
|
|
2714
2889
|
id: string;
|
|
2715
2890
|
createdAt: string;
|
|
2716
2891
|
chatId: string;
|
|
@@ -2718,6 +2893,7 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2718
2893
|
memberCode: string;
|
|
2719
2894
|
role: string;
|
|
2720
2895
|
}[];
|
|
2896
|
+
title?: string | null | undefined;
|
|
2721
2897
|
}>;
|
|
2722
2898
|
type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
|
|
2723
2899
|
/**
|
|
@@ -2745,6 +2921,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2745
2921
|
id: z.ZodString;
|
|
2746
2922
|
owner: z.ZodString;
|
|
2747
2923
|
type: z.ZodEnum<["direct", "group"]>;
|
|
2924
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2748
2925
|
createdAt: z.ZodString;
|
|
2749
2926
|
updatedAt: z.ZodString;
|
|
2750
2927
|
} & {
|
|
@@ -2757,7 +2934,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2757
2934
|
createdAt: z.ZodString;
|
|
2758
2935
|
updatedAt: z.ZodString;
|
|
2759
2936
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
type: "
|
|
2937
|
+
type: "agent" | "human";
|
|
2761
2938
|
id: string;
|
|
2762
2939
|
createdAt: string;
|
|
2763
2940
|
chatId: string;
|
|
@@ -2765,7 +2942,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2765
2942
|
memberCode: string;
|
|
2766
2943
|
role: string;
|
|
2767
2944
|
}, {
|
|
2768
|
-
type: "
|
|
2945
|
+
type: "agent" | "human";
|
|
2769
2946
|
id: string;
|
|
2770
2947
|
createdAt: string;
|
|
2771
2948
|
chatId: string;
|
|
@@ -2780,7 +2957,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2780
2957
|
updatedAt: string;
|
|
2781
2958
|
owner: string;
|
|
2782
2959
|
members: {
|
|
2783
|
-
type: "
|
|
2960
|
+
type: "agent" | "human";
|
|
2784
2961
|
id: string;
|
|
2785
2962
|
createdAt: string;
|
|
2786
2963
|
chatId: string;
|
|
@@ -2788,6 +2965,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2788
2965
|
memberCode: string;
|
|
2789
2966
|
role: string;
|
|
2790
2967
|
}[];
|
|
2968
|
+
title?: string | null | undefined;
|
|
2791
2969
|
}, {
|
|
2792
2970
|
type: "direct" | "group";
|
|
2793
2971
|
id: string;
|
|
@@ -2795,7 +2973,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2795
2973
|
updatedAt: string;
|
|
2796
2974
|
owner: string;
|
|
2797
2975
|
members: {
|
|
2798
|
-
type: "
|
|
2976
|
+
type: "agent" | "human";
|
|
2799
2977
|
id: string;
|
|
2800
2978
|
createdAt: string;
|
|
2801
2979
|
chatId: string;
|
|
@@ -2803,6 +2981,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2803
2981
|
memberCode: string;
|
|
2804
2982
|
role: string;
|
|
2805
2983
|
}[];
|
|
2984
|
+
title?: string | null | undefined;
|
|
2806
2985
|
}>, "many">;
|
|
2807
2986
|
hasMore: z.ZodBoolean;
|
|
2808
2987
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2814,7 +2993,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2814
2993
|
updatedAt: string;
|
|
2815
2994
|
owner: string;
|
|
2816
2995
|
members: {
|
|
2817
|
-
type: "
|
|
2996
|
+
type: "agent" | "human";
|
|
2818
2997
|
id: string;
|
|
2819
2998
|
createdAt: string;
|
|
2820
2999
|
chatId: string;
|
|
@@ -2822,6 +3001,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2822
3001
|
memberCode: string;
|
|
2823
3002
|
role: string;
|
|
2824
3003
|
}[];
|
|
3004
|
+
title?: string | null | undefined;
|
|
2825
3005
|
}[];
|
|
2826
3006
|
}, {
|
|
2827
3007
|
hasMore: boolean;
|
|
@@ -2832,7 +3012,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2832
3012
|
updatedAt: string;
|
|
2833
3013
|
owner: string;
|
|
2834
3014
|
members: {
|
|
2835
|
-
type: "
|
|
3015
|
+
type: "agent" | "human";
|
|
2836
3016
|
id: string;
|
|
2837
3017
|
createdAt: string;
|
|
2838
3018
|
chatId: string;
|
|
@@ -2840,6 +3020,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2840
3020
|
memberCode: string;
|
|
2841
3021
|
role: string;
|
|
2842
3022
|
}[];
|
|
3023
|
+
title?: string | null | undefined;
|
|
2843
3024
|
}[];
|
|
2844
3025
|
}>;
|
|
2845
3026
|
type ListChatsResponse = z.infer<typeof ListChatsResponseSchema>;
|
|
@@ -2850,6 +3031,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2850
3031
|
id: z.ZodString;
|
|
2851
3032
|
owner: z.ZodString;
|
|
2852
3033
|
type: z.ZodEnum<["direct", "group"]>;
|
|
3034
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2853
3035
|
createdAt: z.ZodString;
|
|
2854
3036
|
updatedAt: z.ZodString;
|
|
2855
3037
|
} & {
|
|
@@ -2862,7 +3044,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2862
3044
|
createdAt: z.ZodString;
|
|
2863
3045
|
updatedAt: z.ZodString;
|
|
2864
3046
|
}, "strip", z.ZodTypeAny, {
|
|
2865
|
-
type: "
|
|
3047
|
+
type: "agent" | "human";
|
|
2866
3048
|
id: string;
|
|
2867
3049
|
createdAt: string;
|
|
2868
3050
|
chatId: string;
|
|
@@ -2870,7 +3052,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2870
3052
|
memberCode: string;
|
|
2871
3053
|
role: string;
|
|
2872
3054
|
}, {
|
|
2873
|
-
type: "
|
|
3055
|
+
type: "agent" | "human";
|
|
2874
3056
|
id: string;
|
|
2875
3057
|
createdAt: string;
|
|
2876
3058
|
chatId: string;
|
|
@@ -2885,7 +3067,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2885
3067
|
updatedAt: string;
|
|
2886
3068
|
owner: string;
|
|
2887
3069
|
members: {
|
|
2888
|
-
type: "
|
|
3070
|
+
type: "agent" | "human";
|
|
2889
3071
|
id: string;
|
|
2890
3072
|
createdAt: string;
|
|
2891
3073
|
chatId: string;
|
|
@@ -2893,6 +3075,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2893
3075
|
memberCode: string;
|
|
2894
3076
|
role: string;
|
|
2895
3077
|
}[];
|
|
3078
|
+
title?: string | null | undefined;
|
|
2896
3079
|
}, {
|
|
2897
3080
|
type: "direct" | "group";
|
|
2898
3081
|
id: string;
|
|
@@ -2900,7 +3083,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2900
3083
|
updatedAt: string;
|
|
2901
3084
|
owner: string;
|
|
2902
3085
|
members: {
|
|
2903
|
-
type: "
|
|
3086
|
+
type: "agent" | "human";
|
|
2904
3087
|
id: string;
|
|
2905
3088
|
createdAt: string;
|
|
2906
3089
|
chatId: string;
|
|
@@ -2908,6 +3091,7 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
2908
3091
|
memberCode: string;
|
|
2909
3092
|
role: string;
|
|
2910
3093
|
}[];
|
|
3094
|
+
title?: string | null | undefined;
|
|
2911
3095
|
}>;
|
|
2912
3096
|
type GetChatResponse = z.infer<typeof GetChatResponseSchema>;
|
|
2913
3097
|
/**
|
|
@@ -2923,7 +3107,7 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2923
3107
|
createdAt: z.ZodString;
|
|
2924
3108
|
updatedAt: z.ZodString;
|
|
2925
3109
|
}, "strip", z.ZodTypeAny, {
|
|
2926
|
-
type: "
|
|
3110
|
+
type: "agent" | "human";
|
|
2927
3111
|
id: string;
|
|
2928
3112
|
createdAt: string;
|
|
2929
3113
|
chatId: string;
|
|
@@ -2931,7 +3115,7 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2931
3115
|
memberCode: string;
|
|
2932
3116
|
role: string;
|
|
2933
3117
|
}, {
|
|
2934
|
-
type: "
|
|
3118
|
+
type: "agent" | "human";
|
|
2935
3119
|
id: string;
|
|
2936
3120
|
createdAt: string;
|
|
2937
3121
|
chatId: string;
|
|
@@ -2941,7 +3125,7 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2941
3125
|
}>, "many">;
|
|
2942
3126
|
}, "strip", z.ZodTypeAny, {
|
|
2943
3127
|
members: {
|
|
2944
|
-
type: "
|
|
3128
|
+
type: "agent" | "human";
|
|
2945
3129
|
id: string;
|
|
2946
3130
|
createdAt: string;
|
|
2947
3131
|
chatId: string;
|
|
@@ -2951,7 +3135,7 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
2951
3135
|
}[];
|
|
2952
3136
|
}, {
|
|
2953
3137
|
members: {
|
|
2954
|
-
type: "
|
|
3138
|
+
type: "agent" | "human";
|
|
2955
3139
|
id: string;
|
|
2956
3140
|
createdAt: string;
|
|
2957
3141
|
chatId: string;
|
|
@@ -2970,20 +3154,20 @@ declare const AddChatMemberRequestSchema: z.ZodObject<{
|
|
|
2970
3154
|
memberCode: z.ZodString;
|
|
2971
3155
|
type: z.ZodEnum<["human", "agent"]>;
|
|
2972
3156
|
}, "strip", z.ZodTypeAny, {
|
|
2973
|
-
type: "
|
|
3157
|
+
type: "agent" | "human";
|
|
2974
3158
|
memberCode: string;
|
|
2975
3159
|
}, {
|
|
2976
|
-
type: "
|
|
3160
|
+
type: "agent" | "human";
|
|
2977
3161
|
memberCode: string;
|
|
2978
3162
|
}>, "many">;
|
|
2979
3163
|
}, "strip", z.ZodTypeAny, {
|
|
2980
3164
|
members: {
|
|
2981
|
-
type: "
|
|
3165
|
+
type: "agent" | "human";
|
|
2982
3166
|
memberCode: string;
|
|
2983
3167
|
}[];
|
|
2984
3168
|
}, {
|
|
2985
3169
|
members: {
|
|
2986
|
-
type: "
|
|
3170
|
+
type: "agent" | "human";
|
|
2987
3171
|
memberCode: string;
|
|
2988
3172
|
}[];
|
|
2989
3173
|
}>;
|
|
@@ -3001,7 +3185,7 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3001
3185
|
createdAt: z.ZodString;
|
|
3002
3186
|
updatedAt: z.ZodString;
|
|
3003
3187
|
}, "strip", z.ZodTypeAny, {
|
|
3004
|
-
type: "
|
|
3188
|
+
type: "agent" | "human";
|
|
3005
3189
|
id: string;
|
|
3006
3190
|
createdAt: string;
|
|
3007
3191
|
chatId: string;
|
|
@@ -3009,7 +3193,7 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3009
3193
|
memberCode: string;
|
|
3010
3194
|
role: string;
|
|
3011
3195
|
}, {
|
|
3012
|
-
type: "
|
|
3196
|
+
type: "agent" | "human";
|
|
3013
3197
|
id: string;
|
|
3014
3198
|
createdAt: string;
|
|
3015
3199
|
chatId: string;
|
|
@@ -3019,7 +3203,7 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3019
3203
|
}>, "many">;
|
|
3020
3204
|
}, "strip", z.ZodTypeAny, {
|
|
3021
3205
|
members: {
|
|
3022
|
-
type: "
|
|
3206
|
+
type: "agent" | "human";
|
|
3023
3207
|
id: string;
|
|
3024
3208
|
createdAt: string;
|
|
3025
3209
|
chatId: string;
|
|
@@ -3029,7 +3213,7 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3029
3213
|
}[];
|
|
3030
3214
|
}, {
|
|
3031
3215
|
members: {
|
|
3032
|
-
type: "
|
|
3216
|
+
type: "agent" | "human";
|
|
3033
3217
|
id: string;
|
|
3034
3218
|
createdAt: string;
|
|
3035
3219
|
chatId: string;
|
|
@@ -3048,20 +3232,20 @@ declare const RemoveChatMemberRequestSchema: z.ZodObject<{
|
|
|
3048
3232
|
memberCode: z.ZodString;
|
|
3049
3233
|
type: z.ZodEnum<["human", "agent"]>;
|
|
3050
3234
|
}, "strip", z.ZodTypeAny, {
|
|
3051
|
-
type: "
|
|
3235
|
+
type: "agent" | "human";
|
|
3052
3236
|
memberCode: string;
|
|
3053
3237
|
}, {
|
|
3054
|
-
type: "
|
|
3238
|
+
type: "agent" | "human";
|
|
3055
3239
|
memberCode: string;
|
|
3056
3240
|
}>, "many">;
|
|
3057
3241
|
}, "strip", z.ZodTypeAny, {
|
|
3058
3242
|
members: {
|
|
3059
|
-
type: "
|
|
3243
|
+
type: "agent" | "human";
|
|
3060
3244
|
memberCode: string;
|
|
3061
3245
|
}[];
|
|
3062
3246
|
}, {
|
|
3063
3247
|
members: {
|
|
3064
|
-
type: "
|
|
3248
|
+
type: "agent" | "human";
|
|
3065
3249
|
memberCode: string;
|
|
3066
3250
|
}[];
|
|
3067
3251
|
}>;
|
|
@@ -3130,6 +3314,8 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3130
3314
|
}[];
|
|
3131
3315
|
}>>;
|
|
3132
3316
|
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
3317
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
3318
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
3133
3319
|
createdAt: z.ZodString;
|
|
3134
3320
|
updatedAt: z.ZodString;
|
|
3135
3321
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3146,6 +3332,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3146
3332
|
baseBranch: string | null;
|
|
3147
3333
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3148
3334
|
dataEncryptionKey: string | null;
|
|
3335
|
+
parentTaskId: string | null;
|
|
3149
3336
|
agentId: string;
|
|
3150
3337
|
title: string | null;
|
|
3151
3338
|
userCwd: string | null;
|
|
@@ -3167,6 +3354,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3167
3354
|
}[];
|
|
3168
3355
|
} | null;
|
|
3169
3356
|
totalDuration: number | null;
|
|
3357
|
+
rootTaskId: string | null;
|
|
3170
3358
|
}, {
|
|
3171
3359
|
id: string;
|
|
3172
3360
|
createdAt: string;
|
|
@@ -3181,6 +3369,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3181
3369
|
baseBranch: string | null;
|
|
3182
3370
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3183
3371
|
dataEncryptionKey: string | null;
|
|
3372
|
+
parentTaskId: string | null;
|
|
3184
3373
|
agentId: string;
|
|
3185
3374
|
title: string | null;
|
|
3186
3375
|
userCwd: string | null;
|
|
@@ -3202,6 +3391,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3202
3391
|
}[];
|
|
3203
3392
|
} | null;
|
|
3204
3393
|
totalDuration: number | null;
|
|
3394
|
+
rootTaskId: string | null;
|
|
3205
3395
|
}>, "many">;
|
|
3206
3396
|
}, "strip", z.ZodTypeAny, {
|
|
3207
3397
|
tasks: {
|
|
@@ -3218,6 +3408,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3218
3408
|
baseBranch: string | null;
|
|
3219
3409
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3220
3410
|
dataEncryptionKey: string | null;
|
|
3411
|
+
parentTaskId: string | null;
|
|
3221
3412
|
agentId: string;
|
|
3222
3413
|
title: string | null;
|
|
3223
3414
|
userCwd: string | null;
|
|
@@ -3239,6 +3430,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3239
3430
|
}[];
|
|
3240
3431
|
} | null;
|
|
3241
3432
|
totalDuration: number | null;
|
|
3433
|
+
rootTaskId: string | null;
|
|
3242
3434
|
}[];
|
|
3243
3435
|
}, {
|
|
3244
3436
|
tasks: {
|
|
@@ -3255,6 +3447,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3255
3447
|
baseBranch: string | null;
|
|
3256
3448
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3257
3449
|
dataEncryptionKey: string | null;
|
|
3450
|
+
parentTaskId: string | null;
|
|
3258
3451
|
agentId: string;
|
|
3259
3452
|
title: string | null;
|
|
3260
3453
|
userCwd: string | null;
|
|
@@ -3276,6 +3469,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3276
3469
|
}[];
|
|
3277
3470
|
} | null;
|
|
3278
3471
|
totalDuration: number | null;
|
|
3472
|
+
rootTaskId: string | null;
|
|
3279
3473
|
}[];
|
|
3280
3474
|
}>;
|
|
3281
3475
|
type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
|
|
@@ -3650,9 +3844,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3650
3844
|
}>>;
|
|
3651
3845
|
}, "strip", z.ZodTypeAny, {
|
|
3652
3846
|
type: "claude" | "codex";
|
|
3653
|
-
signature: string | null;
|
|
3654
3847
|
id: string;
|
|
3655
3848
|
avatar: string | null;
|
|
3849
|
+
signature: string | null;
|
|
3656
3850
|
userId: string;
|
|
3657
3851
|
permissions: {
|
|
3658
3852
|
role: string;
|
|
@@ -3690,9 +3884,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3690
3884
|
} | null;
|
|
3691
3885
|
}, {
|
|
3692
3886
|
type: "claude" | "codex";
|
|
3693
|
-
signature: string | null;
|
|
3694
3887
|
id: string;
|
|
3695
3888
|
avatar: string | null;
|
|
3889
|
+
signature: string | null;
|
|
3696
3890
|
userId: string;
|
|
3697
3891
|
permissions: {
|
|
3698
3892
|
role: string;
|
|
@@ -3858,9 +4052,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3858
4052
|
}>>;
|
|
3859
4053
|
}, "strip", z.ZodTypeAny, {
|
|
3860
4054
|
type: "claude" | "codex";
|
|
3861
|
-
signature: string | null;
|
|
3862
4055
|
id: string;
|
|
3863
4056
|
avatar: string | null;
|
|
4057
|
+
signature: string | null;
|
|
3864
4058
|
userId: string;
|
|
3865
4059
|
permissions: {
|
|
3866
4060
|
role: string;
|
|
@@ -3898,9 +4092,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3898
4092
|
} | null;
|
|
3899
4093
|
}, {
|
|
3900
4094
|
type: "claude" | "codex";
|
|
3901
|
-
signature: string | null;
|
|
3902
4095
|
id: string;
|
|
3903
4096
|
avatar: string | null;
|
|
4097
|
+
signature: string | null;
|
|
3904
4098
|
userId: string;
|
|
3905
4099
|
permissions: {
|
|
3906
4100
|
role: string;
|
|
@@ -3940,9 +4134,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3940
4134
|
}, "strip", z.ZodTypeAny, {
|
|
3941
4135
|
agents: {
|
|
3942
4136
|
type: "claude" | "codex";
|
|
3943
|
-
signature: string | null;
|
|
3944
4137
|
id: string;
|
|
3945
4138
|
avatar: string | null;
|
|
4139
|
+
signature: string | null;
|
|
3946
4140
|
userId: string;
|
|
3947
4141
|
permissions: {
|
|
3948
4142
|
role: string;
|
|
@@ -3982,9 +4176,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3982
4176
|
}, {
|
|
3983
4177
|
agents: {
|
|
3984
4178
|
type: "claude" | "codex";
|
|
3985
|
-
signature: string | null;
|
|
3986
4179
|
id: string;
|
|
3987
4180
|
avatar: string | null;
|
|
4181
|
+
signature: string | null;
|
|
3988
4182
|
userId: string;
|
|
3989
4183
|
permissions: {
|
|
3990
4184
|
role: string;
|
|
@@ -4150,9 +4344,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4150
4344
|
}>>;
|
|
4151
4345
|
}, "strip", z.ZodTypeAny, {
|
|
4152
4346
|
type: "claude" | "codex";
|
|
4153
|
-
signature: string | null;
|
|
4154
4347
|
id: string;
|
|
4155
4348
|
avatar: string | null;
|
|
4349
|
+
signature: string | null;
|
|
4156
4350
|
userId: string;
|
|
4157
4351
|
permissions: {
|
|
4158
4352
|
role: string;
|
|
@@ -4190,9 +4384,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4190
4384
|
} | null;
|
|
4191
4385
|
}, {
|
|
4192
4386
|
type: "claude" | "codex";
|
|
4193
|
-
signature: string | null;
|
|
4194
4387
|
id: string;
|
|
4195
4388
|
avatar: string | null;
|
|
4389
|
+
signature: string | null;
|
|
4196
4390
|
userId: string;
|
|
4197
4391
|
permissions: {
|
|
4198
4392
|
role: string;
|
|
@@ -4346,8 +4540,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4346
4540
|
guildMsg: string;
|
|
4347
4541
|
placeholderMsg: string;
|
|
4348
4542
|
supportLocal: boolean;
|
|
4349
|
-
signature?: string | undefined;
|
|
4350
4543
|
avatar?: string | undefined;
|
|
4544
|
+
signature?: string | undefined;
|
|
4351
4545
|
description?: string | undefined;
|
|
4352
4546
|
gitRepoId?: string | undefined;
|
|
4353
4547
|
config?: {
|
|
@@ -4374,8 +4568,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4374
4568
|
}, {
|
|
4375
4569
|
type: "claude" | "codex";
|
|
4376
4570
|
name: string;
|
|
4377
|
-
signature?: string | undefined;
|
|
4378
4571
|
avatar?: string | undefined;
|
|
4572
|
+
signature?: string | undefined;
|
|
4379
4573
|
description?: string | undefined;
|
|
4380
4574
|
guildMsg?: string | undefined;
|
|
4381
4575
|
placeholderMsg?: string | undefined;
|
|
@@ -4531,9 +4725,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4531
4725
|
}>>;
|
|
4532
4726
|
}, "strip", z.ZodTypeAny, {
|
|
4533
4727
|
type: "claude" | "codex";
|
|
4534
|
-
signature: string | null;
|
|
4535
4728
|
id: string;
|
|
4536
4729
|
avatar: string | null;
|
|
4730
|
+
signature: string | null;
|
|
4537
4731
|
userId: string;
|
|
4538
4732
|
permissions: {
|
|
4539
4733
|
role: string;
|
|
@@ -4571,9 +4765,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4571
4765
|
} | null;
|
|
4572
4766
|
}, {
|
|
4573
4767
|
type: "claude" | "codex";
|
|
4574
|
-
signature: string | null;
|
|
4575
4768
|
id: string;
|
|
4576
4769
|
avatar: string | null;
|
|
4770
|
+
signature: string | null;
|
|
4577
4771
|
userId: string;
|
|
4578
4772
|
permissions: {
|
|
4579
4773
|
role: string;
|
|
@@ -4723,8 +4917,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4723
4917
|
}>>>;
|
|
4724
4918
|
}, "strip", z.ZodTypeAny, {
|
|
4725
4919
|
type?: "claude" | "codex" | undefined;
|
|
4726
|
-
signature?: string | null | undefined;
|
|
4727
4920
|
avatar?: string | null | undefined;
|
|
4921
|
+
signature?: string | null | undefined;
|
|
4728
4922
|
name?: string | undefined;
|
|
4729
4923
|
description?: string | null | undefined;
|
|
4730
4924
|
guildMsg?: string | undefined;
|
|
@@ -4754,8 +4948,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4754
4948
|
} | null | undefined;
|
|
4755
4949
|
}, {
|
|
4756
4950
|
type?: "claude" | "codex" | undefined;
|
|
4757
|
-
signature?: string | null | undefined;
|
|
4758
4951
|
avatar?: string | null | undefined;
|
|
4952
|
+
signature?: string | null | undefined;
|
|
4759
4953
|
name?: string | undefined;
|
|
4760
4954
|
description?: string | null | undefined;
|
|
4761
4955
|
guildMsg?: string | undefined;
|
|
@@ -4912,9 +5106,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4912
5106
|
}>>;
|
|
4913
5107
|
}, "strip", z.ZodTypeAny, {
|
|
4914
5108
|
type: "claude" | "codex";
|
|
4915
|
-
signature: string | null;
|
|
4916
5109
|
id: string;
|
|
4917
5110
|
avatar: string | null;
|
|
5111
|
+
signature: string | null;
|
|
4918
5112
|
userId: string;
|
|
4919
5113
|
permissions: {
|
|
4920
5114
|
role: string;
|
|
@@ -4952,9 +5146,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4952
5146
|
} | null;
|
|
4953
5147
|
}, {
|
|
4954
5148
|
type: "claude" | "codex";
|
|
4955
|
-
signature: string | null;
|
|
4956
5149
|
id: string;
|
|
4957
5150
|
avatar: string | null;
|
|
5151
|
+
signature: string | null;
|
|
4958
5152
|
userId: string;
|
|
4959
5153
|
permissions: {
|
|
4960
5154
|
role: string;
|
|
@@ -5637,9 +5831,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5637
5831
|
}>>;
|
|
5638
5832
|
}, "strip", z.ZodTypeAny, {
|
|
5639
5833
|
type: "claude" | "codex";
|
|
5640
|
-
signature: string | null;
|
|
5641
5834
|
id: string;
|
|
5642
5835
|
avatar: string | null;
|
|
5836
|
+
signature: string | null;
|
|
5643
5837
|
userId: string;
|
|
5644
5838
|
permissions: {
|
|
5645
5839
|
role: string;
|
|
@@ -5677,9 +5871,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5677
5871
|
} | null;
|
|
5678
5872
|
}, {
|
|
5679
5873
|
type: "claude" | "codex";
|
|
5680
|
-
signature: string | null;
|
|
5681
5874
|
id: string;
|
|
5682
5875
|
avatar: string | null;
|
|
5876
|
+
signature: string | null;
|
|
5683
5877
|
userId: string;
|
|
5684
5878
|
permissions: {
|
|
5685
5879
|
role: string;
|
|
@@ -5966,9 +6160,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5966
6160
|
}, "strip", z.ZodTypeAny, {
|
|
5967
6161
|
agents: {
|
|
5968
6162
|
type: "claude" | "codex";
|
|
5969
|
-
signature: string | null;
|
|
5970
6163
|
id: string;
|
|
5971
6164
|
avatar: string | null;
|
|
6165
|
+
signature: string | null;
|
|
5972
6166
|
userId: string;
|
|
5973
6167
|
permissions: {
|
|
5974
6168
|
role: string;
|
|
@@ -6055,9 +6249,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6055
6249
|
}, {
|
|
6056
6250
|
agents: {
|
|
6057
6251
|
type: "claude" | "codex";
|
|
6058
|
-
signature: string | null;
|
|
6059
6252
|
id: string;
|
|
6060
6253
|
avatar: string | null;
|
|
6254
|
+
signature: string | null;
|
|
6061
6255
|
userId: string;
|
|
6062
6256
|
permissions: {
|
|
6063
6257
|
role: string;
|
|
@@ -7237,8 +7431,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
7237
7431
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7238
7432
|
}, "strip", z.ZodTypeAny, {
|
|
7239
7433
|
id: string;
|
|
7240
|
-
createdAt: string;
|
|
7241
7434
|
provider: string;
|
|
7435
|
+
createdAt: string;
|
|
7242
7436
|
updatedAt: string;
|
|
7243
7437
|
displayName: string;
|
|
7244
7438
|
authorizeUrl: string;
|
|
@@ -7253,8 +7447,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
7253
7447
|
avatar?: string | undefined;
|
|
7254
7448
|
}, {
|
|
7255
7449
|
id: string;
|
|
7256
|
-
createdAt: string | Date;
|
|
7257
7450
|
provider: string;
|
|
7451
|
+
createdAt: string | Date;
|
|
7258
7452
|
updatedAt: string | Date;
|
|
7259
7453
|
displayName: string;
|
|
7260
7454
|
authorizeUrl: string;
|
|
@@ -7283,16 +7477,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
|
|
|
7283
7477
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7284
7478
|
}, "strip", z.ZodTypeAny, {
|
|
7285
7479
|
id: string;
|
|
7286
|
-
createdAt: string;
|
|
7287
7480
|
provider: string;
|
|
7481
|
+
createdAt: string;
|
|
7288
7482
|
updatedAt: string;
|
|
7289
7483
|
displayName: string;
|
|
7290
7484
|
enabled: boolean;
|
|
7291
7485
|
avatar?: string | undefined;
|
|
7292
7486
|
}, {
|
|
7293
7487
|
id: string;
|
|
7294
|
-
createdAt: string | Date;
|
|
7295
7488
|
provider: string;
|
|
7489
|
+
createdAt: string | Date;
|
|
7296
7490
|
updatedAt: string | Date;
|
|
7297
7491
|
displayName: string;
|
|
7298
7492
|
enabled: boolean;
|
|
@@ -7358,8 +7552,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7358
7552
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7359
7553
|
}, "strip", z.ZodTypeAny, {
|
|
7360
7554
|
id: string;
|
|
7361
|
-
createdAt: string;
|
|
7362
7555
|
provider: string;
|
|
7556
|
+
createdAt: string;
|
|
7363
7557
|
updatedAt: string;
|
|
7364
7558
|
displayName: string;
|
|
7365
7559
|
authorizeUrl: string;
|
|
@@ -7374,8 +7568,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7374
7568
|
avatar?: string | undefined;
|
|
7375
7569
|
}, {
|
|
7376
7570
|
id: string;
|
|
7377
|
-
createdAt: string | Date;
|
|
7378
7571
|
provider: string;
|
|
7572
|
+
createdAt: string | Date;
|
|
7379
7573
|
updatedAt: string | Date;
|
|
7380
7574
|
displayName: string;
|
|
7381
7575
|
authorizeUrl: string;
|
|
@@ -7419,8 +7613,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7419
7613
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7420
7614
|
}, "strip", z.ZodTypeAny, {
|
|
7421
7615
|
id: string;
|
|
7422
|
-
createdAt: string;
|
|
7423
7616
|
provider: string;
|
|
7617
|
+
createdAt: string;
|
|
7424
7618
|
updatedAt: string;
|
|
7425
7619
|
displayName: string;
|
|
7426
7620
|
authorizeUrl: string;
|
|
@@ -7435,8 +7629,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7435
7629
|
avatar?: string | undefined;
|
|
7436
7630
|
}, {
|
|
7437
7631
|
id: string;
|
|
7438
|
-
createdAt: string | Date;
|
|
7439
7632
|
provider: string;
|
|
7633
|
+
createdAt: string | Date;
|
|
7440
7634
|
updatedAt: string | Date;
|
|
7441
7635
|
displayName: string;
|
|
7442
7636
|
authorizeUrl: string;
|
|
@@ -7472,8 +7666,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7472
7666
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7473
7667
|
}, "strip", z.ZodTypeAny, {
|
|
7474
7668
|
id: string;
|
|
7475
|
-
createdAt: string;
|
|
7476
7669
|
provider: string;
|
|
7670
|
+
createdAt: string;
|
|
7477
7671
|
updatedAt: string;
|
|
7478
7672
|
displayName: string;
|
|
7479
7673
|
authorizeUrl: string;
|
|
@@ -7488,8 +7682,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7488
7682
|
avatar?: string | undefined;
|
|
7489
7683
|
}, {
|
|
7490
7684
|
id: string;
|
|
7491
|
-
createdAt: string | Date;
|
|
7492
7685
|
provider: string;
|
|
7686
|
+
createdAt: string | Date;
|
|
7493
7687
|
updatedAt: string | Date;
|
|
7494
7688
|
displayName: string;
|
|
7495
7689
|
authorizeUrl: string;
|
|
@@ -7563,8 +7757,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7563
7757
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7564
7758
|
}, "strip", z.ZodTypeAny, {
|
|
7565
7759
|
id: string;
|
|
7566
|
-
createdAt: string;
|
|
7567
7760
|
provider: string;
|
|
7761
|
+
createdAt: string;
|
|
7568
7762
|
updatedAt: string;
|
|
7569
7763
|
displayName: string;
|
|
7570
7764
|
authorizeUrl: string;
|
|
@@ -7579,8 +7773,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7579
7773
|
avatar?: string | undefined;
|
|
7580
7774
|
}, {
|
|
7581
7775
|
id: string;
|
|
7582
|
-
createdAt: string | Date;
|
|
7583
7776
|
provider: string;
|
|
7777
|
+
createdAt: string | Date;
|
|
7584
7778
|
updatedAt: string | Date;
|
|
7585
7779
|
displayName: string;
|
|
7586
7780
|
authorizeUrl: string;
|
|
@@ -7635,8 +7829,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7635
7829
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7636
7830
|
}, "strip", z.ZodTypeAny, {
|
|
7637
7831
|
id: string;
|
|
7638
|
-
createdAt: string;
|
|
7639
7832
|
provider: string;
|
|
7833
|
+
createdAt: string;
|
|
7640
7834
|
updatedAt: string;
|
|
7641
7835
|
displayName: string;
|
|
7642
7836
|
authorizeUrl: string;
|
|
@@ -7651,8 +7845,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7651
7845
|
avatar?: string | undefined;
|
|
7652
7846
|
}, {
|
|
7653
7847
|
id: string;
|
|
7654
|
-
createdAt: string | Date;
|
|
7655
7848
|
provider: string;
|
|
7849
|
+
createdAt: string | Date;
|
|
7656
7850
|
updatedAt: string | Date;
|
|
7657
7851
|
displayName: string;
|
|
7658
7852
|
authorizeUrl: string;
|
|
@@ -7680,16 +7874,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7680
7874
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7681
7875
|
}, "strip", z.ZodTypeAny, {
|
|
7682
7876
|
id: string;
|
|
7683
|
-
createdAt: string;
|
|
7684
7877
|
provider: string;
|
|
7878
|
+
createdAt: string;
|
|
7685
7879
|
updatedAt: string;
|
|
7686
7880
|
displayName: string;
|
|
7687
7881
|
enabled: boolean;
|
|
7688
7882
|
avatar?: string | undefined;
|
|
7689
7883
|
}, {
|
|
7690
7884
|
id: string;
|
|
7691
|
-
createdAt: string | Date;
|
|
7692
7885
|
provider: string;
|
|
7886
|
+
createdAt: string | Date;
|
|
7693
7887
|
updatedAt: string | Date;
|
|
7694
7888
|
displayName: string;
|
|
7695
7889
|
enabled: boolean;
|
|
@@ -8761,11 +8955,11 @@ declare const AppAliveEventSchema: z.ZodObject<{
|
|
|
8761
8955
|
} & {
|
|
8762
8956
|
timestamp: z.ZodString;
|
|
8763
8957
|
}, "strip", z.ZodTypeAny, {
|
|
8764
|
-
eventId: string;
|
|
8765
8958
|
timestamp: string;
|
|
8766
|
-
}, {
|
|
8767
8959
|
eventId: string;
|
|
8960
|
+
}, {
|
|
8768
8961
|
timestamp: string;
|
|
8962
|
+
eventId: string;
|
|
8769
8963
|
}>;
|
|
8770
8964
|
type AppAliveEventData = z.infer<typeof AppAliveEventSchema>;
|
|
8771
8965
|
declare const ApiServerAliveEventSchema: z.ZodObject<{
|
|
@@ -8773,11 +8967,11 @@ declare const ApiServerAliveEventSchema: z.ZodObject<{
|
|
|
8773
8967
|
} & {
|
|
8774
8968
|
timestamp: z.ZodString;
|
|
8775
8969
|
}, "strip", z.ZodTypeAny, {
|
|
8776
|
-
eventId: string;
|
|
8777
8970
|
timestamp: string;
|
|
8778
|
-
}, {
|
|
8779
8971
|
eventId: string;
|
|
8972
|
+
}, {
|
|
8780
8973
|
timestamp: string;
|
|
8974
|
+
eventId: string;
|
|
8781
8975
|
}>;
|
|
8782
8976
|
type ApiServerAliveEventData = z.infer<typeof ApiServerAliveEventSchema>;
|
|
8783
8977
|
declare const MachineAliveEventSchema: z.ZodObject<{
|
|
@@ -8788,13 +8982,13 @@ declare const MachineAliveEventSchema: z.ZodObject<{
|
|
|
8788
8982
|
controlPort: z.ZodOptional<z.ZodNumber>;
|
|
8789
8983
|
}, "strip", z.ZodTypeAny, {
|
|
8790
8984
|
machineId: string;
|
|
8791
|
-
eventId: string;
|
|
8792
8985
|
timestamp: string;
|
|
8986
|
+
eventId: string;
|
|
8793
8987
|
controlPort?: number | undefined;
|
|
8794
8988
|
}, {
|
|
8795
8989
|
machineId: string;
|
|
8796
|
-
eventId: string;
|
|
8797
8990
|
timestamp: string;
|
|
8991
|
+
eventId: string;
|
|
8798
8992
|
controlPort?: number | undefined;
|
|
8799
8993
|
}>;
|
|
8800
8994
|
type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
|
|
@@ -8823,14 +9017,14 @@ declare const WorkerInitializingSchema: z.ZodObject<{
|
|
|
8823
9017
|
}, "strip", z.ZodTypeAny, {
|
|
8824
9018
|
machineId: string;
|
|
8825
9019
|
taskId: string;
|
|
8826
|
-
eventId: string;
|
|
8827
9020
|
timestamp: string;
|
|
9021
|
+
eventId: string;
|
|
8828
9022
|
cwd?: string | undefined;
|
|
8829
9023
|
}, {
|
|
8830
9024
|
machineId: string;
|
|
8831
9025
|
taskId: string;
|
|
8832
|
-
eventId: string;
|
|
8833
9026
|
timestamp: string;
|
|
9027
|
+
eventId: string;
|
|
8834
9028
|
cwd?: string | undefined;
|
|
8835
9029
|
}>;
|
|
8836
9030
|
type WorkerInitializingEventData = z.infer<typeof WorkerInitializingSchema>;
|
|
@@ -8844,14 +9038,14 @@ declare const WorkerInitializedSchema: z.ZodObject<{
|
|
|
8844
9038
|
}, "strip", z.ZodTypeAny, {
|
|
8845
9039
|
machineId: string;
|
|
8846
9040
|
taskId: string;
|
|
8847
|
-
eventId: string;
|
|
8848
9041
|
timestamp: string;
|
|
9042
|
+
eventId: string;
|
|
8849
9043
|
cwd?: string | undefined;
|
|
8850
9044
|
}, {
|
|
8851
9045
|
machineId: string;
|
|
8852
9046
|
taskId: string;
|
|
8853
|
-
eventId: string;
|
|
8854
9047
|
timestamp: string;
|
|
9048
|
+
eventId: string;
|
|
8855
9049
|
cwd?: string | undefined;
|
|
8856
9050
|
}>;
|
|
8857
9051
|
type WorkerInitializedEventData = z.infer<typeof WorkerInitializedSchema>;
|
|
@@ -8865,14 +9059,14 @@ declare const WorkerReadySchema: z.ZodObject<{
|
|
|
8865
9059
|
}, "strip", z.ZodTypeAny, {
|
|
8866
9060
|
machineId: string;
|
|
8867
9061
|
taskId: string;
|
|
8868
|
-
eventId: string;
|
|
8869
9062
|
timestamp: string;
|
|
9063
|
+
eventId: string;
|
|
8870
9064
|
duration?: number | undefined;
|
|
8871
9065
|
}, {
|
|
8872
9066
|
machineId: string;
|
|
8873
9067
|
taskId: string;
|
|
8874
|
-
eventId: string;
|
|
8875
9068
|
timestamp: string;
|
|
9069
|
+
eventId: string;
|
|
8876
9070
|
duration?: number | undefined;
|
|
8877
9071
|
}>;
|
|
8878
9072
|
type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
|
|
@@ -8887,14 +9081,14 @@ declare const WorkerAliveEventSchema: z.ZodObject<{
|
|
|
8887
9081
|
status: string;
|
|
8888
9082
|
machineId: string;
|
|
8889
9083
|
taskId: string;
|
|
8890
|
-
eventId: string;
|
|
8891
9084
|
timestamp: string;
|
|
9085
|
+
eventId: string;
|
|
8892
9086
|
}, {
|
|
8893
9087
|
status: string;
|
|
8894
9088
|
machineId: string;
|
|
8895
9089
|
taskId: string;
|
|
8896
|
-
eventId: string;
|
|
8897
9090
|
timestamp: string;
|
|
9091
|
+
eventId: string;
|
|
8898
9092
|
}>;
|
|
8899
9093
|
type WorkerAliveEventData = z.infer<typeof WorkerAliveEventSchema>;
|
|
8900
9094
|
declare const WorkerExitSchema: z.ZodObject<{
|
|
@@ -8907,14 +9101,14 @@ declare const WorkerExitSchema: z.ZodObject<{
|
|
|
8907
9101
|
}, "strip", z.ZodTypeAny, {
|
|
8908
9102
|
machineId: string;
|
|
8909
9103
|
taskId: string;
|
|
8910
|
-
eventId: string;
|
|
8911
9104
|
timestamp: string;
|
|
9105
|
+
eventId: string;
|
|
8912
9106
|
reason?: string | undefined;
|
|
8913
9107
|
}, {
|
|
8914
9108
|
machineId: string;
|
|
8915
9109
|
taskId: string;
|
|
8916
|
-
eventId: string;
|
|
8917
9110
|
timestamp: string;
|
|
9111
|
+
eventId: string;
|
|
8918
9112
|
reason?: string | undefined;
|
|
8919
9113
|
}>;
|
|
8920
9114
|
type WorkerExitEventData = z.infer<typeof WorkerExitSchema>;
|
|
@@ -8927,13 +9121,13 @@ declare const WorkerRunningSchema: z.ZodObject<{
|
|
|
8927
9121
|
}, "strip", z.ZodTypeAny, {
|
|
8928
9122
|
machineId: string;
|
|
8929
9123
|
taskId: string;
|
|
8930
|
-
eventId: string;
|
|
8931
9124
|
timestamp: string;
|
|
9125
|
+
eventId: string;
|
|
8932
9126
|
}, {
|
|
8933
9127
|
machineId: string;
|
|
8934
9128
|
taskId: string;
|
|
8935
|
-
eventId: string;
|
|
8936
9129
|
timestamp: string;
|
|
9130
|
+
eventId: string;
|
|
8937
9131
|
}>;
|
|
8938
9132
|
type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
|
|
8939
9133
|
declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
@@ -8943,12 +9137,12 @@ declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
|
8943
9137
|
timestamp: z.ZodString;
|
|
8944
9138
|
}, "strip", z.ZodTypeAny, {
|
|
8945
9139
|
taskId: string;
|
|
8946
|
-
eventId: string;
|
|
8947
9140
|
timestamp: string;
|
|
9141
|
+
eventId: string;
|
|
8948
9142
|
}, {
|
|
8949
9143
|
taskId: string;
|
|
8950
|
-
eventId: string;
|
|
8951
9144
|
timestamp: string;
|
|
9145
|
+
eventId: string;
|
|
8952
9146
|
}>;
|
|
8953
9147
|
type WorkerStatusRequestEventData = z.infer<typeof WorkerStatusRequestSchema>;
|
|
8954
9148
|
declare const baseTaskSchema: z.ZodObject<{
|
|
@@ -8974,6 +9168,9 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8974
9168
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8975
9169
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
8976
9170
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9171
|
+
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9172
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9173
|
+
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8977
9174
|
}, "strip", z.ZodTypeAny, {
|
|
8978
9175
|
userId: string;
|
|
8979
9176
|
taskId: string;
|
|
@@ -8987,15 +9184,18 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8987
9184
|
baseBranch?: string | undefined;
|
|
8988
9185
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
8989
9186
|
dataEncryptionKey?: string | undefined;
|
|
9187
|
+
parentTaskId?: string | undefined;
|
|
8990
9188
|
userCwd?: string | undefined;
|
|
9189
|
+
rootTaskId?: string | undefined;
|
|
8991
9190
|
agentDir?: string | undefined;
|
|
8992
9191
|
gitUrl?: string | undefined;
|
|
8993
9192
|
model?: string | undefined;
|
|
8994
9193
|
fallbackModel?: string | undefined;
|
|
8995
|
-
maxTurns?: number | undefined;
|
|
8996
9194
|
api_base_url?: string | undefined;
|
|
8997
9195
|
api_key?: string | undefined;
|
|
9196
|
+
maxTurns?: number | undefined;
|
|
8998
9197
|
environmentVariables?: Record<string, string> | undefined;
|
|
9198
|
+
chatAgents?: Record<string, string> | undefined;
|
|
8999
9199
|
}, {
|
|
9000
9200
|
userId: string;
|
|
9001
9201
|
taskId: string;
|
|
@@ -9008,16 +9208,19 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9008
9208
|
baseBranch?: string | undefined;
|
|
9009
9209
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9010
9210
|
dataEncryptionKey?: string | undefined;
|
|
9211
|
+
parentTaskId?: string | undefined;
|
|
9011
9212
|
userCwd?: string | undefined;
|
|
9213
|
+
rootTaskId?: string | undefined;
|
|
9012
9214
|
agentDir?: string | undefined;
|
|
9013
9215
|
gitUrl?: string | undefined;
|
|
9216
|
+
agentType?: string | undefined;
|
|
9014
9217
|
model?: string | undefined;
|
|
9015
9218
|
fallbackModel?: string | undefined;
|
|
9016
|
-
maxTurns?: number | undefined;
|
|
9017
|
-
agentType?: string | undefined;
|
|
9018
9219
|
api_base_url?: string | undefined;
|
|
9019
9220
|
api_key?: string | undefined;
|
|
9221
|
+
maxTurns?: number | undefined;
|
|
9020
9222
|
environmentVariables?: Record<string, string> | undefined;
|
|
9223
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9021
9224
|
}>;
|
|
9022
9225
|
declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
9023
9226
|
eventId: z.ZodString;
|
|
@@ -9042,6 +9245,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9042
9245
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
9043
9246
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9044
9247
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9248
|
+
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9249
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9250
|
+
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9045
9251
|
} & {
|
|
9046
9252
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
9047
9253
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -9060,15 +9266,18 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9060
9266
|
baseBranch?: string | undefined;
|
|
9061
9267
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9062
9268
|
dataEncryptionKey?: string | undefined;
|
|
9269
|
+
parentTaskId?: string | undefined;
|
|
9063
9270
|
userCwd?: string | undefined;
|
|
9271
|
+
rootTaskId?: string | undefined;
|
|
9064
9272
|
agentDir?: string | undefined;
|
|
9065
9273
|
gitUrl?: string | undefined;
|
|
9066
9274
|
model?: string | undefined;
|
|
9067
9275
|
fallbackModel?: string | undefined;
|
|
9068
|
-
maxTurns?: number | undefined;
|
|
9069
9276
|
api_base_url?: string | undefined;
|
|
9070
9277
|
api_key?: string | undefined;
|
|
9278
|
+
maxTurns?: number | undefined;
|
|
9071
9279
|
environmentVariables?: Record<string, string> | undefined;
|
|
9280
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9072
9281
|
}, {
|
|
9073
9282
|
userId: string;
|
|
9074
9283
|
taskId: string;
|
|
@@ -9083,16 +9292,19 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9083
9292
|
baseBranch?: string | undefined;
|
|
9084
9293
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9085
9294
|
dataEncryptionKey?: string | undefined;
|
|
9295
|
+
parentTaskId?: string | undefined;
|
|
9086
9296
|
userCwd?: string | undefined;
|
|
9297
|
+
rootTaskId?: string | undefined;
|
|
9087
9298
|
agentDir?: string | undefined;
|
|
9088
9299
|
gitUrl?: string | undefined;
|
|
9300
|
+
agentType?: string | undefined;
|
|
9089
9301
|
model?: string | undefined;
|
|
9090
9302
|
fallbackModel?: string | undefined;
|
|
9091
|
-
maxTurns?: number | undefined;
|
|
9092
|
-
agentType?: string | undefined;
|
|
9093
9303
|
api_base_url?: string | undefined;
|
|
9094
9304
|
api_key?: string | undefined;
|
|
9305
|
+
maxTurns?: number | undefined;
|
|
9095
9306
|
environmentVariables?: Record<string, string> | undefined;
|
|
9307
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9096
9308
|
}>, {
|
|
9097
9309
|
userId: string;
|
|
9098
9310
|
taskId: string;
|
|
@@ -9108,15 +9320,18 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9108
9320
|
baseBranch?: string | undefined;
|
|
9109
9321
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9110
9322
|
dataEncryptionKey?: string | undefined;
|
|
9323
|
+
parentTaskId?: string | undefined;
|
|
9111
9324
|
userCwd?: string | undefined;
|
|
9325
|
+
rootTaskId?: string | undefined;
|
|
9112
9326
|
agentDir?: string | undefined;
|
|
9113
9327
|
gitUrl?: string | undefined;
|
|
9114
9328
|
model?: string | undefined;
|
|
9115
9329
|
fallbackModel?: string | undefined;
|
|
9116
|
-
maxTurns?: number | undefined;
|
|
9117
9330
|
api_base_url?: string | undefined;
|
|
9118
9331
|
api_key?: string | undefined;
|
|
9332
|
+
maxTurns?: number | undefined;
|
|
9119
9333
|
environmentVariables?: Record<string, string> | undefined;
|
|
9334
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9120
9335
|
}, {
|
|
9121
9336
|
userId: string;
|
|
9122
9337
|
taskId: string;
|
|
@@ -9131,16 +9346,19 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9131
9346
|
baseBranch?: string | undefined;
|
|
9132
9347
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9133
9348
|
dataEncryptionKey?: string | undefined;
|
|
9349
|
+
parentTaskId?: string | undefined;
|
|
9134
9350
|
userCwd?: string | undefined;
|
|
9351
|
+
rootTaskId?: string | undefined;
|
|
9135
9352
|
agentDir?: string | undefined;
|
|
9136
9353
|
gitUrl?: string | undefined;
|
|
9354
|
+
agentType?: string | undefined;
|
|
9137
9355
|
model?: string | undefined;
|
|
9138
9356
|
fallbackModel?: string | undefined;
|
|
9139
|
-
maxTurns?: number | undefined;
|
|
9140
|
-
agentType?: string | undefined;
|
|
9141
9357
|
api_base_url?: string | undefined;
|
|
9142
9358
|
api_key?: string | undefined;
|
|
9359
|
+
maxTurns?: number | undefined;
|
|
9143
9360
|
environmentVariables?: Record<string, string> | undefined;
|
|
9361
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9144
9362
|
}>;
|
|
9145
9363
|
type CreateTaskEventData = z.infer<typeof createTaskSchema>;
|
|
9146
9364
|
declare const resumeTaskSchema: z.ZodObject<{
|
|
@@ -9166,6 +9384,9 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9166
9384
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
9167
9385
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9168
9386
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9387
|
+
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9388
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9389
|
+
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9169
9390
|
} & {
|
|
9170
9391
|
agentSessionId: z.ZodString;
|
|
9171
9392
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -9188,15 +9409,18 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9188
9409
|
baseBranch?: string | undefined;
|
|
9189
9410
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9190
9411
|
dataEncryptionKey?: string | undefined;
|
|
9412
|
+
parentTaskId?: string | undefined;
|
|
9191
9413
|
userCwd?: string | undefined;
|
|
9414
|
+
rootTaskId?: string | undefined;
|
|
9192
9415
|
agentDir?: string | undefined;
|
|
9193
9416
|
gitUrl?: string | undefined;
|
|
9194
9417
|
model?: string | undefined;
|
|
9195
9418
|
fallbackModel?: string | undefined;
|
|
9196
|
-
maxTurns?: number | undefined;
|
|
9197
9419
|
api_base_url?: string | undefined;
|
|
9198
9420
|
api_key?: string | undefined;
|
|
9421
|
+
maxTurns?: number | undefined;
|
|
9199
9422
|
environmentVariables?: Record<string, string> | undefined;
|
|
9423
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9200
9424
|
event?: string | undefined;
|
|
9201
9425
|
eventData?: any;
|
|
9202
9426
|
}, {
|
|
@@ -9214,16 +9438,19 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9214
9438
|
baseBranch?: string | undefined;
|
|
9215
9439
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
9216
9440
|
dataEncryptionKey?: string | undefined;
|
|
9441
|
+
parentTaskId?: string | undefined;
|
|
9217
9442
|
userCwd?: string | undefined;
|
|
9443
|
+
rootTaskId?: string | undefined;
|
|
9218
9444
|
agentDir?: string | undefined;
|
|
9219
9445
|
gitUrl?: string | undefined;
|
|
9446
|
+
agentType?: string | undefined;
|
|
9220
9447
|
model?: string | undefined;
|
|
9221
9448
|
fallbackModel?: string | undefined;
|
|
9222
|
-
maxTurns?: number | undefined;
|
|
9223
|
-
agentType?: string | undefined;
|
|
9224
9449
|
api_base_url?: string | undefined;
|
|
9225
9450
|
api_key?: string | undefined;
|
|
9451
|
+
maxTurns?: number | undefined;
|
|
9226
9452
|
environmentVariables?: Record<string, string> | undefined;
|
|
9453
|
+
chatAgents?: Record<string, string> | undefined;
|
|
9227
9454
|
event?: string | undefined;
|
|
9228
9455
|
eventData?: any;
|
|
9229
9456
|
}>;
|
|
@@ -9277,6 +9504,8 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9277
9504
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
9278
9505
|
message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
|
|
9279
9506
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9507
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
9508
|
+
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9280
9509
|
}, "strip", z.ZodTypeAny, {
|
|
9281
9510
|
taskId: string;
|
|
9282
9511
|
eventId: string;
|
|
@@ -9284,6 +9513,8 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9284
9513
|
message?: TaskMessagePayload | undefined;
|
|
9285
9514
|
chatId?: string | undefined;
|
|
9286
9515
|
encryptedMessage?: string | undefined;
|
|
9516
|
+
agentId?: string | undefined;
|
|
9517
|
+
rootTaskId?: string | undefined;
|
|
9287
9518
|
opCode?: string | undefined;
|
|
9288
9519
|
sequence?: number | undefined;
|
|
9289
9520
|
}, {
|
|
@@ -9293,6 +9524,8 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9293
9524
|
message?: TaskMessagePayload | undefined;
|
|
9294
9525
|
chatId?: string | undefined;
|
|
9295
9526
|
encryptedMessage?: string | undefined;
|
|
9527
|
+
agentId?: string | undefined;
|
|
9528
|
+
rootTaskId?: string | undefined;
|
|
9296
9529
|
opCode?: string | undefined;
|
|
9297
9530
|
sequence?: number | undefined;
|
|
9298
9531
|
}>, {
|
|
@@ -9302,6 +9535,8 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9302
9535
|
message?: TaskMessagePayload | undefined;
|
|
9303
9536
|
chatId?: string | undefined;
|
|
9304
9537
|
encryptedMessage?: string | undefined;
|
|
9538
|
+
agentId?: string | undefined;
|
|
9539
|
+
rootTaskId?: string | undefined;
|
|
9305
9540
|
opCode?: string | undefined;
|
|
9306
9541
|
sequence?: number | undefined;
|
|
9307
9542
|
}, {
|
|
@@ -9311,6 +9546,8 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9311
9546
|
message?: TaskMessagePayload | undefined;
|
|
9312
9547
|
chatId?: string | undefined;
|
|
9313
9548
|
encryptedMessage?: string | undefined;
|
|
9549
|
+
agentId?: string | undefined;
|
|
9550
|
+
rootTaskId?: string | undefined;
|
|
9314
9551
|
opCode?: string | undefined;
|
|
9315
9552
|
sequence?: number | undefined;
|
|
9316
9553
|
}>;
|
|
@@ -9335,18 +9572,18 @@ declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
|
|
|
9335
9572
|
}>;
|
|
9336
9573
|
}, "strip", z.ZodTypeAny, {
|
|
9337
9574
|
taskId: string;
|
|
9338
|
-
eventId: string;
|
|
9339
9575
|
stats: {
|
|
9340
9576
|
totalInsertions: number;
|
|
9341
9577
|
totalDeletions: number;
|
|
9342
9578
|
};
|
|
9579
|
+
eventId: string;
|
|
9343
9580
|
}, {
|
|
9344
9581
|
taskId: string;
|
|
9345
|
-
eventId: string;
|
|
9346
9582
|
stats: {
|
|
9347
9583
|
totalInsertions: number;
|
|
9348
9584
|
totalDeletions: number;
|
|
9349
9585
|
};
|
|
9586
|
+
eventId: string;
|
|
9350
9587
|
}>;
|
|
9351
9588
|
type TaskArtifactsUpdatedEventData = z.infer<typeof TaskArtifactsUpdatedEventSchema>;
|
|
9352
9589
|
declare const ShowModalEventDataSchema: z.ZodObject<{
|
|
@@ -9360,18 +9597,18 @@ declare const ShowModalEventDataSchema: z.ZodObject<{
|
|
|
9360
9597
|
modalData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
9361
9598
|
}, "strip", z.ZodTypeAny, {
|
|
9362
9599
|
taskId: string;
|
|
9363
|
-
eventId: string;
|
|
9364
|
-
timestamp: string;
|
|
9365
9600
|
modalName: string;
|
|
9366
9601
|
modalData: Record<string, any>;
|
|
9602
|
+
timestamp: string;
|
|
9603
|
+
eventId: string;
|
|
9367
9604
|
chatId?: string | undefined;
|
|
9368
9605
|
sequence?: number | undefined;
|
|
9369
9606
|
}, {
|
|
9370
9607
|
taskId: string;
|
|
9371
|
-
eventId: string;
|
|
9372
|
-
timestamp: string;
|
|
9373
9608
|
modalName: string;
|
|
9374
9609
|
modalData: Record<string, any>;
|
|
9610
|
+
timestamp: string;
|
|
9611
|
+
eventId: string;
|
|
9375
9612
|
chatId?: string | undefined;
|
|
9376
9613
|
sequence?: number | undefined;
|
|
9377
9614
|
}>;
|
|
@@ -9797,6 +10034,56 @@ declare const MergeRequestEventSchema: z.ZodObject<{
|
|
|
9797
10034
|
description?: string | undefined;
|
|
9798
10035
|
}>;
|
|
9799
10036
|
type MergeRequestEventData = z.infer<typeof MergeRequestEventSchema>;
|
|
10037
|
+
/**
|
|
10038
|
+
* Task stopped event (Worker -> API)
|
|
10039
|
+
* Sent by CLI hook when a task stops, API decides callbacks based on task config
|
|
10040
|
+
*/
|
|
10041
|
+
declare const TaskStoppedEventSchema: z.ZodObject<{
|
|
10042
|
+
eventId: z.ZodString;
|
|
10043
|
+
} & {
|
|
10044
|
+
taskId: z.ZodString;
|
|
10045
|
+
}, "strip", z.ZodTypeAny, {
|
|
10046
|
+
taskId: string;
|
|
10047
|
+
eventId: string;
|
|
10048
|
+
}, {
|
|
10049
|
+
taskId: string;
|
|
10050
|
+
eventId: string;
|
|
10051
|
+
}>;
|
|
10052
|
+
type TaskStoppedEventData = z.infer<typeof TaskStoppedEventSchema>;
|
|
10053
|
+
/**
|
|
10054
|
+
* Sub task completed event (API -> parentTask's Worker)
|
|
10055
|
+
* Sent when a sub task completes and has 'notify_parent' callback registered
|
|
10056
|
+
*/
|
|
10057
|
+
declare const SubTaskCompletedEventSchema: z.ZodObject<{
|
|
10058
|
+
eventId: z.ZodString;
|
|
10059
|
+
} & {
|
|
10060
|
+
taskId: z.ZodString;
|
|
10061
|
+
parentTaskId: z.ZodString;
|
|
10062
|
+
rootTaskId: z.ZodString;
|
|
10063
|
+
agentName: z.ZodString;
|
|
10064
|
+
taskName: z.ZodOptional<z.ZodString>;
|
|
10065
|
+
sessionPath: z.ZodOptional<z.ZodString>;
|
|
10066
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
10067
|
+
}, "strip", z.ZodTypeAny, {
|
|
10068
|
+
taskId: string;
|
|
10069
|
+
parentTaskId: string;
|
|
10070
|
+
rootTaskId: string;
|
|
10071
|
+
eventId: string;
|
|
10072
|
+
agentName: string;
|
|
10073
|
+
cwd?: string | undefined;
|
|
10074
|
+
sessionPath?: string | undefined;
|
|
10075
|
+
taskName?: string | undefined;
|
|
10076
|
+
}, {
|
|
10077
|
+
taskId: string;
|
|
10078
|
+
parentTaskId: string;
|
|
10079
|
+
rootTaskId: string;
|
|
10080
|
+
eventId: string;
|
|
10081
|
+
agentName: string;
|
|
10082
|
+
cwd?: string | undefined;
|
|
10083
|
+
sessionPath?: string | undefined;
|
|
10084
|
+
taskName?: string | undefined;
|
|
10085
|
+
}>;
|
|
10086
|
+
type SubTaskCompletedEventData = z.infer<typeof SubTaskCompletedEventSchema>;
|
|
9800
10087
|
declare const MergePullRequestEventSchema: z.ZodObject<{
|
|
9801
10088
|
eventId: z.ZodString;
|
|
9802
10089
|
} & {
|
|
@@ -9895,6 +10182,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9895
10182
|
id: z.ZodString;
|
|
9896
10183
|
owner: z.ZodString;
|
|
9897
10184
|
type: z.ZodEnum<["direct", "group"]>;
|
|
10185
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9898
10186
|
createdAt: z.ZodString;
|
|
9899
10187
|
updatedAt: z.ZodString;
|
|
9900
10188
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9903,12 +10191,14 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9903
10191
|
createdAt: string;
|
|
9904
10192
|
updatedAt: string;
|
|
9905
10193
|
owner: string;
|
|
10194
|
+
title?: string | null | undefined;
|
|
9906
10195
|
}, {
|
|
9907
10196
|
type: "direct" | "group";
|
|
9908
10197
|
id: string;
|
|
9909
10198
|
createdAt: string;
|
|
9910
10199
|
updatedAt: string;
|
|
9911
10200
|
owner: string;
|
|
10201
|
+
title?: string | null | undefined;
|
|
9912
10202
|
}>, z.ZodArray<z.ZodObject<{
|
|
9913
10203
|
id: z.ZodString;
|
|
9914
10204
|
chatId: z.ZodString;
|
|
@@ -9918,7 +10208,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9918
10208
|
createdAt: z.ZodString;
|
|
9919
10209
|
updatedAt: z.ZodString;
|
|
9920
10210
|
}, "strip", z.ZodTypeAny, {
|
|
9921
|
-
type: "
|
|
10211
|
+
type: "agent" | "human";
|
|
9922
10212
|
id: string;
|
|
9923
10213
|
createdAt: string;
|
|
9924
10214
|
chatId: string;
|
|
@@ -9926,7 +10216,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9926
10216
|
memberCode: string;
|
|
9927
10217
|
role: string;
|
|
9928
10218
|
}, {
|
|
9929
|
-
type: "
|
|
10219
|
+
type: "agent" | "human";
|
|
9930
10220
|
id: string;
|
|
9931
10221
|
createdAt: string;
|
|
9932
10222
|
chatId: string;
|
|
@@ -10252,8 +10542,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10252
10542
|
createdAt: string;
|
|
10253
10543
|
updatedAt: string;
|
|
10254
10544
|
owner: string;
|
|
10545
|
+
title?: string | null | undefined;
|
|
10255
10546
|
} | {
|
|
10256
|
-
type: "
|
|
10547
|
+
type: "agent" | "human";
|
|
10257
10548
|
id: string;
|
|
10258
10549
|
createdAt: string;
|
|
10259
10550
|
chatId: string;
|
|
@@ -10330,8 +10621,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10330
10621
|
newState: "open" | "closed" | "merged";
|
|
10331
10622
|
changedAt: string;
|
|
10332
10623
|
};
|
|
10333
|
-
eventId: string;
|
|
10334
10624
|
timestamp: string;
|
|
10625
|
+
eventId: string;
|
|
10335
10626
|
}, {
|
|
10336
10627
|
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
10337
10628
|
data: {
|
|
@@ -10340,8 +10631,9 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10340
10631
|
createdAt: string;
|
|
10341
10632
|
updatedAt: string;
|
|
10342
10633
|
owner: string;
|
|
10634
|
+
title?: string | null | undefined;
|
|
10343
10635
|
} | {
|
|
10344
|
-
type: "
|
|
10636
|
+
type: "agent" | "human";
|
|
10345
10637
|
id: string;
|
|
10346
10638
|
createdAt: string;
|
|
10347
10639
|
chatId: string;
|
|
@@ -10418,11 +10710,11 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10418
10710
|
newState: "open" | "closed" | "merged";
|
|
10419
10711
|
changedAt: string;
|
|
10420
10712
|
};
|
|
10421
|
-
eventId: string;
|
|
10422
10713
|
timestamp: string;
|
|
10714
|
+
eventId: string;
|
|
10423
10715
|
}>;
|
|
10424
10716
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
10425
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
10717
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskCompletedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
10426
10718
|
type EventMap = {
|
|
10427
10719
|
"app-alive": AppAliveEventData;
|
|
10428
10720
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -10447,6 +10739,8 @@ type EventMap = {
|
|
|
10447
10739
|
"show-modal": ShowModalEventData;
|
|
10448
10740
|
"merge-request": MergeRequestEventData;
|
|
10449
10741
|
"merge-pr": MergePullRequestEventData;
|
|
10742
|
+
"task-stopped": TaskStoppedEventData;
|
|
10743
|
+
"sub-task-completed": SubTaskCompletedEventData;
|
|
10450
10744
|
"associate-repo": AssociateRepoEventData;
|
|
10451
10745
|
"system-message": SystemMessageEventData;
|
|
10452
10746
|
"credit-exhausted": CreditExhaustedEventData;
|
|
@@ -10485,6 +10779,7 @@ declare function workerAuth(token: string, machineId: string, taskId: string): A
|
|
|
10485
10779
|
* Different environments (CLI, API server) implement this interface
|
|
10486
10780
|
* to provide agent directory resolution
|
|
10487
10781
|
*/
|
|
10782
|
+
|
|
10488
10783
|
interface AgentContext {
|
|
10489
10784
|
/**
|
|
10490
10785
|
* Resolve the full path to an agent directory
|
|
@@ -10514,6 +10809,25 @@ interface AgentrixContext {
|
|
|
10514
10809
|
* Get the current task ID
|
|
10515
10810
|
*/
|
|
10516
10811
|
getTaskId(): string;
|
|
10812
|
+
/**
|
|
10813
|
+
* Get the current chat ID
|
|
10814
|
+
*/
|
|
10815
|
+
getChatId(): string;
|
|
10816
|
+
/**
|
|
10817
|
+
* Get the root task ID of the current task tree
|
|
10818
|
+
* If this task is the root, returns its own ID
|
|
10819
|
+
*/
|
|
10820
|
+
getRootTaskId(): string;
|
|
10821
|
+
/**
|
|
10822
|
+
* Get the parent task ID
|
|
10823
|
+
* Returns null if this is a root task
|
|
10824
|
+
*/
|
|
10825
|
+
getParentTaskId(): string | null;
|
|
10826
|
+
/**
|
|
10827
|
+
* Get all agents in the current chat
|
|
10828
|
+
* Returns a map of { displayName: agentId }
|
|
10829
|
+
*/
|
|
10830
|
+
getChatAgents(): Record<string, string>;
|
|
10517
10831
|
/**
|
|
10518
10832
|
* create a new draft agent or update the existing one in the database
|
|
10519
10833
|
*/
|
|
@@ -10535,6 +10849,53 @@ interface AgentrixContext {
|
|
|
10535
10849
|
agentId: string;
|
|
10536
10850
|
displayName: string;
|
|
10537
10851
|
}>;
|
|
10852
|
+
/**
|
|
10853
|
+
* Create a sub task for multi-agent collaboration
|
|
10854
|
+
* Automatically inherits chatId, rootTaskId, machineId/cloudId from current task
|
|
10855
|
+
* Sets parentTaskId to current taskId
|
|
10856
|
+
*/
|
|
10857
|
+
startSubTask(params: {
|
|
10858
|
+
agentId: string;
|
|
10859
|
+
message: SDKUserMessage;
|
|
10860
|
+
}): Promise<{
|
|
10861
|
+
taskId: string;
|
|
10862
|
+
}>;
|
|
10863
|
+
/**
|
|
10864
|
+
* Send a message to a task
|
|
10865
|
+
*
|
|
10866
|
+
* Target behavior:
|
|
10867
|
+
* - 'agent': Routes SDKUserMessage to task's agent worker (injects as user input)
|
|
10868
|
+
* - 'user': Broadcasts SDKAssistantMessage to users viewing the task (shows in chat UI)
|
|
10869
|
+
*/
|
|
10870
|
+
sendMessage(params: {
|
|
10871
|
+
taskId: string;
|
|
10872
|
+
message: SDKUserMessage | SDKAssistantMessage;
|
|
10873
|
+
target: SendMessageTarget;
|
|
10874
|
+
}): Promise<void>;
|
|
10875
|
+
/**
|
|
10876
|
+
* Show a modal dialog to users viewing a task
|
|
10877
|
+
* Used for interactive UI elements like configuration dialogs
|
|
10878
|
+
*/
|
|
10879
|
+
showModal(params: {
|
|
10880
|
+
taskId: string;
|
|
10881
|
+
modalName: string;
|
|
10882
|
+
modalData: Record<string, any>;
|
|
10883
|
+
}): Promise<void>;
|
|
10884
|
+
/**
|
|
10885
|
+
* Get the session file path and state of a task
|
|
10886
|
+
* Used to read completed task's session for analysis
|
|
10887
|
+
*/
|
|
10888
|
+
getTaskSession(taskId: string): Promise<{
|
|
10889
|
+
sessionPath: string;
|
|
10890
|
+
state: TaskState;
|
|
10891
|
+
}>;
|
|
10892
|
+
/**
|
|
10893
|
+
* Find a sub task by agent ID
|
|
10894
|
+
* Searches direct sub tasks (parentTaskId = current taskId) for the given agent
|
|
10895
|
+
*/
|
|
10896
|
+
findSubTaskByAgent(agentId: string): Promise<{
|
|
10897
|
+
taskId: string;
|
|
10898
|
+
} | null>;
|
|
10538
10899
|
}
|
|
10539
10900
|
|
|
10540
10901
|
/**
|
|
@@ -10949,5 +11310,5 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
10949
11310
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
10950
11311
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
10951
11312
|
|
|
10952
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, 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, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, 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, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
10953
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, 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, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FillEventsRequest, FillEventsResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, 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, MachineRtcRequestEventData, MachineRtcResponseEventData, 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, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|
|
11313
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, 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, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, 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, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskCompletedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
11314
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, 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, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, 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, MachineRtcRequestEventData, MachineRtcResponseEventData, 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, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskCompletedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|