@agentrix/shared 2.0.9 → 2.0.11

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.d.cts CHANGED
@@ -778,7 +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
+ * Extended with multi-agent collaboration support and custom task titles
782
782
  */
783
783
 
784
784
  /**
@@ -786,6 +786,7 @@ type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
786
786
  */
787
787
  declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
788
788
  chatId: z.ZodString;
789
+ customTitle: z.ZodOptional<z.ZodString>;
789
790
  message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
790
791
  encryptedMessage: z.ZodOptional<z.ZodString>;
791
792
  cwd: z.ZodOptional<z.ZodString>;
@@ -796,12 +797,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
796
797
  baseBranch: z.ZodOptional<z.ZodString>;
797
798
  repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
798
799
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
800
+ agentId: z.ZodOptional<z.ZodString>;
799
801
  parentTaskId: z.ZodOptional<z.ZodString>;
800
802
  }, "strip", z.ZodTypeAny, {
801
803
  chatId: string;
802
804
  message?: SDKUserMessage | undefined;
803
805
  machineId?: string | undefined;
804
806
  cloudId?: string | undefined;
807
+ customTitle?: string | undefined;
805
808
  encryptedMessage?: string | undefined;
806
809
  cwd?: string | undefined;
807
810
  forceUserCwd?: boolean | undefined;
@@ -809,12 +812,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
809
812
  baseBranch?: string | undefined;
810
813
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
811
814
  dataEncryptionKey?: string | undefined;
815
+ agentId?: string | undefined;
812
816
  parentTaskId?: string | undefined;
813
817
  }, {
814
818
  chatId: string;
815
819
  message?: SDKUserMessage | undefined;
816
820
  machineId?: string | undefined;
817
821
  cloudId?: string | undefined;
822
+ customTitle?: string | undefined;
818
823
  encryptedMessage?: string | undefined;
819
824
  cwd?: string | undefined;
820
825
  forceUserCwd?: boolean | undefined;
@@ -822,12 +827,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
822
827
  baseBranch?: string | undefined;
823
828
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
824
829
  dataEncryptionKey?: string | undefined;
830
+ agentId?: string | undefined;
825
831
  parentTaskId?: string | undefined;
826
832
  }>, {
827
833
  chatId: string;
828
834
  message?: SDKUserMessage | undefined;
829
835
  machineId?: string | undefined;
830
836
  cloudId?: string | undefined;
837
+ customTitle?: string | undefined;
831
838
  encryptedMessage?: string | undefined;
832
839
  cwd?: string | undefined;
833
840
  forceUserCwd?: boolean | undefined;
@@ -835,12 +842,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
835
842
  baseBranch?: string | undefined;
836
843
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
837
844
  dataEncryptionKey?: string | undefined;
845
+ agentId?: string | undefined;
838
846
  parentTaskId?: string | undefined;
839
847
  }, {
840
848
  chatId: string;
841
849
  message?: SDKUserMessage | undefined;
842
850
  machineId?: string | undefined;
843
851
  cloudId?: string | undefined;
852
+ customTitle?: string | undefined;
844
853
  encryptedMessage?: string | undefined;
845
854
  cwd?: string | undefined;
846
855
  forceUserCwd?: boolean | undefined;
@@ -848,12 +857,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
848
857
  baseBranch?: string | undefined;
849
858
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
850
859
  dataEncryptionKey?: string | undefined;
860
+ agentId?: string | undefined;
851
861
  parentTaskId?: string | undefined;
852
862
  }>, {
853
863
  chatId: string;
854
864
  message?: SDKUserMessage | undefined;
855
865
  machineId?: string | undefined;
856
866
  cloudId?: string | undefined;
867
+ customTitle?: string | undefined;
857
868
  encryptedMessage?: string | undefined;
858
869
  cwd?: string | undefined;
859
870
  forceUserCwd?: boolean | undefined;
@@ -861,12 +872,14 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
861
872
  baseBranch?: string | undefined;
862
873
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
863
874
  dataEncryptionKey?: string | undefined;
875
+ agentId?: string | undefined;
864
876
  parentTaskId?: string | undefined;
865
877
  }, {
866
878
  chatId: string;
867
879
  message?: SDKUserMessage | undefined;
868
880
  machineId?: string | undefined;
869
881
  cloudId?: string | undefined;
882
+ customTitle?: string | undefined;
870
883
  encryptedMessage?: string | undefined;
871
884
  cwd?: string | undefined;
872
885
  forceUserCwd?: boolean | undefined;
@@ -874,11 +887,13 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
874
887
  baseBranch?: string | undefined;
875
888
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
876
889
  dataEncryptionKey?: string | undefined;
890
+ agentId?: string | undefined;
877
891
  parentTaskId?: string | undefined;
878
892
  }>;
879
893
  type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
880
894
  declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
881
895
  chatId: z.ZodString;
896
+ customTitle: z.ZodOptional<z.ZodString>;
882
897
  message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
883
898
  encryptedMessage: z.ZodOptional<z.ZodString>;
884
899
  cwd: z.ZodOptional<z.ZodString>;
@@ -889,12 +904,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
889
904
  baseBranch: z.ZodOptional<z.ZodString>;
890
905
  repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
891
906
  dataEncryptionKey: z.ZodOptional<z.ZodString>;
907
+ agentId: z.ZodOptional<z.ZodString>;
892
908
  parentTaskId: z.ZodOptional<z.ZodString>;
893
909
  }, "strip", z.ZodTypeAny, {
894
910
  chatId: string;
895
911
  message?: SDKUserMessage | undefined;
896
912
  machineId?: string | undefined;
897
913
  cloudId?: string | undefined;
914
+ customTitle?: string | undefined;
898
915
  encryptedMessage?: string | undefined;
899
916
  cwd?: string | undefined;
900
917
  forceUserCwd?: boolean | undefined;
@@ -902,12 +919,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
902
919
  baseBranch?: string | undefined;
903
920
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
904
921
  dataEncryptionKey?: string | undefined;
922
+ agentId?: string | undefined;
905
923
  parentTaskId?: string | undefined;
906
924
  }, {
907
925
  chatId: string;
908
926
  message?: SDKUserMessage | undefined;
909
927
  machineId?: string | undefined;
910
928
  cloudId?: string | undefined;
929
+ customTitle?: string | undefined;
911
930
  encryptedMessage?: string | undefined;
912
931
  cwd?: string | undefined;
913
932
  forceUserCwd?: boolean | undefined;
@@ -915,12 +934,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
915
934
  baseBranch?: string | undefined;
916
935
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
917
936
  dataEncryptionKey?: string | undefined;
937
+ agentId?: string | undefined;
918
938
  parentTaskId?: string | undefined;
919
939
  }>, {
920
940
  chatId: string;
921
941
  message?: SDKUserMessage | undefined;
922
942
  machineId?: string | undefined;
923
943
  cloudId?: string | undefined;
944
+ customTitle?: string | undefined;
924
945
  encryptedMessage?: string | undefined;
925
946
  cwd?: string | undefined;
926
947
  forceUserCwd?: boolean | undefined;
@@ -928,12 +949,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
928
949
  baseBranch?: string | undefined;
929
950
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
930
951
  dataEncryptionKey?: string | undefined;
952
+ agentId?: string | undefined;
931
953
  parentTaskId?: string | undefined;
932
954
  }, {
933
955
  chatId: string;
934
956
  message?: SDKUserMessage | undefined;
935
957
  machineId?: string | undefined;
936
958
  cloudId?: string | undefined;
959
+ customTitle?: string | undefined;
937
960
  encryptedMessage?: string | undefined;
938
961
  cwd?: string | undefined;
939
962
  forceUserCwd?: boolean | undefined;
@@ -941,12 +964,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
941
964
  baseBranch?: string | undefined;
942
965
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
943
966
  dataEncryptionKey?: string | undefined;
967
+ agentId?: string | undefined;
944
968
  parentTaskId?: string | undefined;
945
969
  }>, {
946
970
  chatId: string;
947
971
  message?: SDKUserMessage | undefined;
948
972
  machineId?: string | undefined;
949
973
  cloudId?: string | undefined;
974
+ customTitle?: string | undefined;
950
975
  encryptedMessage?: string | undefined;
951
976
  cwd?: string | undefined;
952
977
  forceUserCwd?: boolean | undefined;
@@ -954,12 +979,14 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
954
979
  baseBranch?: string | undefined;
955
980
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
956
981
  dataEncryptionKey?: string | undefined;
982
+ agentId?: string | undefined;
957
983
  parentTaskId?: string | undefined;
958
984
  }, {
959
985
  chatId: string;
960
986
  message?: SDKUserMessage | undefined;
961
987
  machineId?: string | undefined;
962
988
  cloudId?: string | undefined;
989
+ customTitle?: string | undefined;
963
990
  encryptedMessage?: string | undefined;
964
991
  cwd?: string | undefined;
965
992
  forceUserCwd?: boolean | undefined;
@@ -967,6 +994,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
967
994
  baseBranch?: string | undefined;
968
995
  repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
969
996
  dataEncryptionKey?: string | undefined;
997
+ agentId?: string | undefined;
970
998
  parentTaskId?: string | undefined;
971
999
  }>;
972
1000
  /**
@@ -983,6 +1011,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
983
1011
  repositoryId: z.ZodNullable<z.ZodString>;
984
1012
  baseBranch: z.ZodNullable<z.ZodString>;
985
1013
  title: z.ZodNullable<z.ZodString>;
1014
+ customTitle: z.ZodNullable<z.ZodString>;
986
1015
  userCwd: z.ZodNullable<z.ZodString>;
987
1016
  forceUserCwd: z.ZodNullable<z.ZodBoolean>;
988
1017
  createdAt: z.ZodString;
@@ -995,6 +1024,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
995
1024
  userId: string;
996
1025
  taskId: string;
997
1026
  chatId: string;
1027
+ customTitle: string | null;
998
1028
  forceUserCwd: boolean | null;
999
1029
  repositoryId: string | null;
1000
1030
  baseBranch: string | null;
@@ -1010,6 +1040,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
1010
1040
  userId: string;
1011
1041
  taskId: string;
1012
1042
  chatId: string;
1043
+ customTitle: string | null;
1013
1044
  forceUserCwd: boolean | null;
1014
1045
  repositoryId: string | null;
1015
1046
  baseBranch: string | null;
@@ -1024,6 +1055,7 @@ type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
1024
1055
  */
1025
1056
  declare const TaskItemSchema: z.ZodObject<{
1026
1057
  id: z.ZodString;
1058
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
1027
1059
  chatId: z.ZodString;
1028
1060
  userId: z.ZodString;
1029
1061
  state: z.ZodString;
@@ -1084,6 +1116,7 @@ declare const TaskItemSchema: z.ZodObject<{
1084
1116
  createdAt: z.ZodString;
1085
1117
  updatedAt: z.ZodString;
1086
1118
  }, "strip", z.ZodTypeAny, {
1119
+ type: "chat" | "work";
1087
1120
  id: string;
1088
1121
  createdAt: string;
1089
1122
  state: string;
@@ -1091,19 +1124,19 @@ declare const TaskItemSchema: z.ZodObject<{
1091
1124
  cloudId: string | null;
1092
1125
  userId: string;
1093
1126
  chatId: string;
1127
+ customTitle: string | null;
1094
1128
  cwd: string | null;
1095
1129
  forceUserCwd: boolean | null;
1096
1130
  repositoryId: string | null;
1097
1131
  baseBranch: string | null;
1098
1132
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1099
1133
  dataEncryptionKey: string | null;
1100
- parentTaskId: string | null;
1101
1134
  agentId: string;
1135
+ parentTaskId: string | null;
1102
1136
  title: string | null;
1103
1137
  userCwd: string | null;
1104
1138
  updatedAt: string;
1105
1139
  workerStatus: "initializing" | "ready" | "running" | null;
1106
- customTitle: string | null;
1107
1140
  agentSessionId: string | null;
1108
1141
  pullRequestNumber: number | null;
1109
1142
  pullRequestUrl: string | null;
@@ -1128,19 +1161,19 @@ declare const TaskItemSchema: z.ZodObject<{
1128
1161
  cloudId: string | null;
1129
1162
  userId: string;
1130
1163
  chatId: string;
1164
+ customTitle: string | null;
1131
1165
  cwd: string | null;
1132
1166
  forceUserCwd: boolean | null;
1133
1167
  repositoryId: string | null;
1134
1168
  baseBranch: string | null;
1135
1169
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1136
1170
  dataEncryptionKey: string | null;
1137
- parentTaskId: string | null;
1138
1171
  agentId: string;
1172
+ parentTaskId: string | null;
1139
1173
  title: string | null;
1140
1174
  userCwd: string | null;
1141
1175
  updatedAt: string;
1142
1176
  workerStatus: "initializing" | "ready" | "running" | null;
1143
- customTitle: string | null;
1144
1177
  agentSessionId: string | null;
1145
1178
  pullRequestNumber: number | null;
1146
1179
  pullRequestUrl: string | null;
@@ -1157,6 +1190,7 @@ declare const TaskItemSchema: z.ZodObject<{
1157
1190
  } | null;
1158
1191
  totalDuration: number | null;
1159
1192
  rootTaskId: string | null;
1193
+ type?: "chat" | "work" | undefined;
1160
1194
  }>;
1161
1195
  type TaskItem = z.infer<typeof TaskItemSchema>;
1162
1196
  /**
@@ -1185,6 +1219,7 @@ type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
1185
1219
  declare const ListTasksResponseSchema: z.ZodObject<{
1186
1220
  tasks: z.ZodArray<z.ZodObject<{
1187
1221
  id: z.ZodString;
1222
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
1188
1223
  chatId: z.ZodString;
1189
1224
  userId: z.ZodString;
1190
1225
  state: z.ZodString;
@@ -1245,6 +1280,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1245
1280
  createdAt: z.ZodString;
1246
1281
  updatedAt: z.ZodString;
1247
1282
  }, "strip", z.ZodTypeAny, {
1283
+ type: "chat" | "work";
1248
1284
  id: string;
1249
1285
  createdAt: string;
1250
1286
  state: string;
@@ -1252,19 +1288,19 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1252
1288
  cloudId: string | null;
1253
1289
  userId: string;
1254
1290
  chatId: string;
1291
+ customTitle: string | null;
1255
1292
  cwd: string | null;
1256
1293
  forceUserCwd: boolean | null;
1257
1294
  repositoryId: string | null;
1258
1295
  baseBranch: string | null;
1259
1296
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1260
1297
  dataEncryptionKey: string | null;
1261
- parentTaskId: string | null;
1262
1298
  agentId: string;
1299
+ parentTaskId: string | null;
1263
1300
  title: string | null;
1264
1301
  userCwd: string | null;
1265
1302
  updatedAt: string;
1266
1303
  workerStatus: "initializing" | "ready" | "running" | null;
1267
- customTitle: string | null;
1268
1304
  agentSessionId: string | null;
1269
1305
  pullRequestNumber: number | null;
1270
1306
  pullRequestUrl: string | null;
@@ -1289,19 +1325,19 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1289
1325
  cloudId: string | null;
1290
1326
  userId: string;
1291
1327
  chatId: string;
1328
+ customTitle: string | null;
1292
1329
  cwd: string | null;
1293
1330
  forceUserCwd: boolean | null;
1294
1331
  repositoryId: string | null;
1295
1332
  baseBranch: string | null;
1296
1333
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1297
1334
  dataEncryptionKey: string | null;
1298
- parentTaskId: string | null;
1299
1335
  agentId: string;
1336
+ parentTaskId: string | null;
1300
1337
  title: string | null;
1301
1338
  userCwd: string | null;
1302
1339
  updatedAt: string;
1303
1340
  workerStatus: "initializing" | "ready" | "running" | null;
1304
- customTitle: string | null;
1305
1341
  agentSessionId: string | null;
1306
1342
  pullRequestNumber: number | null;
1307
1343
  pullRequestUrl: string | null;
@@ -1318,11 +1354,13 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1318
1354
  } | null;
1319
1355
  totalDuration: number | null;
1320
1356
  rootTaskId: string | null;
1357
+ type?: "chat" | "work" | undefined;
1321
1358
  }>, "many">;
1322
1359
  nextCursor: z.ZodNullable<z.ZodString>;
1323
1360
  hasMore: z.ZodBoolean;
1324
1361
  }, "strip", z.ZodTypeAny, {
1325
1362
  tasks: {
1363
+ type: "chat" | "work";
1326
1364
  id: string;
1327
1365
  createdAt: string;
1328
1366
  state: string;
@@ -1330,19 +1368,19 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1330
1368
  cloudId: string | null;
1331
1369
  userId: string;
1332
1370
  chatId: string;
1371
+ customTitle: string | null;
1333
1372
  cwd: string | null;
1334
1373
  forceUserCwd: boolean | null;
1335
1374
  repositoryId: string | null;
1336
1375
  baseBranch: string | null;
1337
1376
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1338
1377
  dataEncryptionKey: string | null;
1339
- parentTaskId: string | null;
1340
1378
  agentId: string;
1379
+ parentTaskId: string | null;
1341
1380
  title: string | null;
1342
1381
  userCwd: string | null;
1343
1382
  updatedAt: string;
1344
1383
  workerStatus: "initializing" | "ready" | "running" | null;
1345
- customTitle: string | null;
1346
1384
  agentSessionId: string | null;
1347
1385
  pullRequestNumber: number | null;
1348
1386
  pullRequestUrl: string | null;
@@ -1371,19 +1409,19 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1371
1409
  cloudId: string | null;
1372
1410
  userId: string;
1373
1411
  chatId: string;
1412
+ customTitle: string | null;
1374
1413
  cwd: string | null;
1375
1414
  forceUserCwd: boolean | null;
1376
1415
  repositoryId: string | null;
1377
1416
  baseBranch: string | null;
1378
1417
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1379
1418
  dataEncryptionKey: string | null;
1380
- parentTaskId: string | null;
1381
1419
  agentId: string;
1420
+ parentTaskId: string | null;
1382
1421
  title: string | null;
1383
1422
  userCwd: string | null;
1384
1423
  updatedAt: string;
1385
1424
  workerStatus: "initializing" | "ready" | "running" | null;
1386
- customTitle: string | null;
1387
1425
  agentSessionId: string | null;
1388
1426
  pullRequestNumber: number | null;
1389
1427
  pullRequestUrl: string | null;
@@ -1400,6 +1438,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1400
1438
  } | null;
1401
1439
  totalDuration: number | null;
1402
1440
  rootTaskId: string | null;
1441
+ type?: "chat" | "work" | undefined;
1403
1442
  }[];
1404
1443
  nextCursor: string | null;
1405
1444
  hasMore: boolean;
@@ -1863,6 +1902,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1863
1902
  success: z.ZodBoolean;
1864
1903
  task: z.ZodObject<{
1865
1904
  id: z.ZodString;
1905
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
1866
1906
  chatId: z.ZodString;
1867
1907
  userId: z.ZodString;
1868
1908
  state: z.ZodString;
@@ -1923,6 +1963,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1923
1963
  createdAt: z.ZodString;
1924
1964
  updatedAt: z.ZodString;
1925
1965
  }, "strip", z.ZodTypeAny, {
1966
+ type: "chat" | "work";
1926
1967
  id: string;
1927
1968
  createdAt: string;
1928
1969
  state: string;
@@ -1930,19 +1971,19 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1930
1971
  cloudId: string | null;
1931
1972
  userId: string;
1932
1973
  chatId: string;
1974
+ customTitle: string | null;
1933
1975
  cwd: string | null;
1934
1976
  forceUserCwd: boolean | null;
1935
1977
  repositoryId: string | null;
1936
1978
  baseBranch: string | null;
1937
1979
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1938
1980
  dataEncryptionKey: string | null;
1939
- parentTaskId: string | null;
1940
1981
  agentId: string;
1982
+ parentTaskId: string | null;
1941
1983
  title: string | null;
1942
1984
  userCwd: string | null;
1943
1985
  updatedAt: string;
1944
1986
  workerStatus: "initializing" | "ready" | "running" | null;
1945
- customTitle: string | null;
1946
1987
  agentSessionId: string | null;
1947
1988
  pullRequestNumber: number | null;
1948
1989
  pullRequestUrl: string | null;
@@ -1967,19 +2008,19 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1967
2008
  cloudId: string | null;
1968
2009
  userId: string;
1969
2010
  chatId: string;
2011
+ customTitle: string | null;
1970
2012
  cwd: string | null;
1971
2013
  forceUserCwd: boolean | null;
1972
2014
  repositoryId: string | null;
1973
2015
  baseBranch: string | null;
1974
2016
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
1975
2017
  dataEncryptionKey: string | null;
1976
- parentTaskId: string | null;
1977
2018
  agentId: string;
2019
+ parentTaskId: string | null;
1978
2020
  title: string | null;
1979
2021
  userCwd: string | null;
1980
2022
  updatedAt: string;
1981
2023
  workerStatus: "initializing" | "ready" | "running" | null;
1982
- customTitle: string | null;
1983
2024
  agentSessionId: string | null;
1984
2025
  pullRequestNumber: number | null;
1985
2026
  pullRequestUrl: string | null;
@@ -1996,10 +2037,12 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1996
2037
  } | null;
1997
2038
  totalDuration: number | null;
1998
2039
  rootTaskId: string | null;
2040
+ type?: "chat" | "work" | undefined;
1999
2041
  }>;
2000
2042
  }, "strip", z.ZodTypeAny, {
2001
2043
  success: boolean;
2002
2044
  task: {
2045
+ type: "chat" | "work";
2003
2046
  id: string;
2004
2047
  createdAt: string;
2005
2048
  state: string;
@@ -2007,19 +2050,19 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
2007
2050
  cloudId: string | null;
2008
2051
  userId: string;
2009
2052
  chatId: string;
2053
+ customTitle: string | null;
2010
2054
  cwd: string | null;
2011
2055
  forceUserCwd: boolean | null;
2012
2056
  repositoryId: string | null;
2013
2057
  baseBranch: string | null;
2014
2058
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2015
2059
  dataEncryptionKey: string | null;
2016
- parentTaskId: string | null;
2017
2060
  agentId: string;
2061
+ parentTaskId: string | null;
2018
2062
  title: string | null;
2019
2063
  userCwd: string | null;
2020
2064
  updatedAt: string;
2021
2065
  workerStatus: "initializing" | "ready" | "running" | null;
2022
- customTitle: string | null;
2023
2066
  agentSessionId: string | null;
2024
2067
  pullRequestNumber: number | null;
2025
2068
  pullRequestUrl: string | null;
@@ -2047,19 +2090,19 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
2047
2090
  cloudId: string | null;
2048
2091
  userId: string;
2049
2092
  chatId: string;
2093
+ customTitle: string | null;
2050
2094
  cwd: string | null;
2051
2095
  forceUserCwd: boolean | null;
2052
2096
  repositoryId: string | null;
2053
2097
  baseBranch: string | null;
2054
2098
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2055
2099
  dataEncryptionKey: string | null;
2056
- parentTaskId: string | null;
2057
2100
  agentId: string;
2101
+ parentTaskId: string | null;
2058
2102
  title: string | null;
2059
2103
  userCwd: string | null;
2060
2104
  updatedAt: string;
2061
2105
  workerStatus: "initializing" | "ready" | "running" | null;
2062
- customTitle: string | null;
2063
2106
  agentSessionId: string | null;
2064
2107
  pullRequestNumber: number | null;
2065
2108
  pullRequestUrl: string | null;
@@ -2076,6 +2119,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
2076
2119
  } | null;
2077
2120
  totalDuration: number | null;
2078
2121
  rootTaskId: string | null;
2122
+ type?: "chat" | "work" | undefined;
2079
2123
  };
2080
2124
  }>;
2081
2125
  type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
@@ -2091,6 +2135,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2091
2135
  success: z.ZodBoolean;
2092
2136
  task: z.ZodObject<{
2093
2137
  id: z.ZodString;
2138
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
2094
2139
  chatId: z.ZodString;
2095
2140
  userId: z.ZodString;
2096
2141
  state: z.ZodString;
@@ -2151,6 +2196,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2151
2196
  createdAt: z.ZodString;
2152
2197
  updatedAt: z.ZodString;
2153
2198
  }, "strip", z.ZodTypeAny, {
2199
+ type: "chat" | "work";
2154
2200
  id: string;
2155
2201
  createdAt: string;
2156
2202
  state: string;
@@ -2158,19 +2204,19 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2158
2204
  cloudId: string | null;
2159
2205
  userId: string;
2160
2206
  chatId: string;
2207
+ customTitle: string | null;
2161
2208
  cwd: string | null;
2162
2209
  forceUserCwd: boolean | null;
2163
2210
  repositoryId: string | null;
2164
2211
  baseBranch: string | null;
2165
2212
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2166
2213
  dataEncryptionKey: string | null;
2167
- parentTaskId: string | null;
2168
2214
  agentId: string;
2215
+ parentTaskId: string | null;
2169
2216
  title: string | null;
2170
2217
  userCwd: string | null;
2171
2218
  updatedAt: string;
2172
2219
  workerStatus: "initializing" | "ready" | "running" | null;
2173
- customTitle: string | null;
2174
2220
  agentSessionId: string | null;
2175
2221
  pullRequestNumber: number | null;
2176
2222
  pullRequestUrl: string | null;
@@ -2195,19 +2241,19 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2195
2241
  cloudId: string | null;
2196
2242
  userId: string;
2197
2243
  chatId: string;
2244
+ customTitle: string | null;
2198
2245
  cwd: string | null;
2199
2246
  forceUserCwd: boolean | null;
2200
2247
  repositoryId: string | null;
2201
2248
  baseBranch: string | null;
2202
2249
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2203
2250
  dataEncryptionKey: string | null;
2204
- parentTaskId: string | null;
2205
2251
  agentId: string;
2252
+ parentTaskId: string | null;
2206
2253
  title: string | null;
2207
2254
  userCwd: string | null;
2208
2255
  updatedAt: string;
2209
2256
  workerStatus: "initializing" | "ready" | "running" | null;
2210
- customTitle: string | null;
2211
2257
  agentSessionId: string | null;
2212
2258
  pullRequestNumber: number | null;
2213
2259
  pullRequestUrl: string | null;
@@ -2224,10 +2270,12 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2224
2270
  } | null;
2225
2271
  totalDuration: number | null;
2226
2272
  rootTaskId: string | null;
2273
+ type?: "chat" | "work" | undefined;
2227
2274
  }>;
2228
2275
  }, "strip", z.ZodTypeAny, {
2229
2276
  success: boolean;
2230
2277
  task: {
2278
+ type: "chat" | "work";
2231
2279
  id: string;
2232
2280
  createdAt: string;
2233
2281
  state: string;
@@ -2235,19 +2283,19 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2235
2283
  cloudId: string | null;
2236
2284
  userId: string;
2237
2285
  chatId: string;
2286
+ customTitle: string | null;
2238
2287
  cwd: string | null;
2239
2288
  forceUserCwd: boolean | null;
2240
2289
  repositoryId: string | null;
2241
2290
  baseBranch: string | null;
2242
2291
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2243
2292
  dataEncryptionKey: string | null;
2244
- parentTaskId: string | null;
2245
2293
  agentId: string;
2294
+ parentTaskId: string | null;
2246
2295
  title: string | null;
2247
2296
  userCwd: string | null;
2248
2297
  updatedAt: string;
2249
2298
  workerStatus: "initializing" | "ready" | "running" | null;
2250
- customTitle: string | null;
2251
2299
  agentSessionId: string | null;
2252
2300
  pullRequestNumber: number | null;
2253
2301
  pullRequestUrl: string | null;
@@ -2275,19 +2323,19 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2275
2323
  cloudId: string | null;
2276
2324
  userId: string;
2277
2325
  chatId: string;
2326
+ customTitle: string | null;
2278
2327
  cwd: string | null;
2279
2328
  forceUserCwd: boolean | null;
2280
2329
  repositoryId: string | null;
2281
2330
  baseBranch: string | null;
2282
2331
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2283
2332
  dataEncryptionKey: string | null;
2284
- parentTaskId: string | null;
2285
2333
  agentId: string;
2334
+ parentTaskId: string | null;
2286
2335
  title: string | null;
2287
2336
  userCwd: string | null;
2288
2337
  updatedAt: string;
2289
2338
  workerStatus: "initializing" | "ready" | "running" | null;
2290
- customTitle: string | null;
2291
2339
  agentSessionId: string | null;
2292
2340
  pullRequestNumber: number | null;
2293
2341
  pullRequestUrl: string | null;
@@ -2304,6 +2352,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
2304
2352
  } | null;
2305
2353
  totalDuration: number | null;
2306
2354
  rootTaskId: string | null;
2355
+ type?: "chat" | "work" | undefined;
2307
2356
  };
2308
2357
  }>;
2309
2358
  type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
@@ -2325,6 +2374,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2325
2374
  success: z.ZodBoolean;
2326
2375
  task: z.ZodObject<{
2327
2376
  id: z.ZodString;
2377
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
2328
2378
  chatId: z.ZodString;
2329
2379
  userId: z.ZodString;
2330
2380
  state: z.ZodString;
@@ -2385,6 +2435,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2385
2435
  createdAt: z.ZodString;
2386
2436
  updatedAt: z.ZodString;
2387
2437
  }, "strip", z.ZodTypeAny, {
2438
+ type: "chat" | "work";
2388
2439
  id: string;
2389
2440
  createdAt: string;
2390
2441
  state: string;
@@ -2392,19 +2443,19 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2392
2443
  cloudId: string | null;
2393
2444
  userId: string;
2394
2445
  chatId: string;
2446
+ customTitle: string | null;
2395
2447
  cwd: string | null;
2396
2448
  forceUserCwd: boolean | null;
2397
2449
  repositoryId: string | null;
2398
2450
  baseBranch: string | null;
2399
2451
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2400
2452
  dataEncryptionKey: string | null;
2401
- parentTaskId: string | null;
2402
2453
  agentId: string;
2454
+ parentTaskId: string | null;
2403
2455
  title: string | null;
2404
2456
  userCwd: string | null;
2405
2457
  updatedAt: string;
2406
2458
  workerStatus: "initializing" | "ready" | "running" | null;
2407
- customTitle: string | null;
2408
2459
  agentSessionId: string | null;
2409
2460
  pullRequestNumber: number | null;
2410
2461
  pullRequestUrl: string | null;
@@ -2429,19 +2480,19 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2429
2480
  cloudId: string | null;
2430
2481
  userId: string;
2431
2482
  chatId: string;
2483
+ customTitle: string | null;
2432
2484
  cwd: string | null;
2433
2485
  forceUserCwd: boolean | null;
2434
2486
  repositoryId: string | null;
2435
2487
  baseBranch: string | null;
2436
2488
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2437
2489
  dataEncryptionKey: string | null;
2438
- parentTaskId: string | null;
2439
2490
  agentId: string;
2491
+ parentTaskId: string | null;
2440
2492
  title: string | null;
2441
2493
  userCwd: string | null;
2442
2494
  updatedAt: string;
2443
2495
  workerStatus: "initializing" | "ready" | "running" | null;
2444
- customTitle: string | null;
2445
2496
  agentSessionId: string | null;
2446
2497
  pullRequestNumber: number | null;
2447
2498
  pullRequestUrl: string | null;
@@ -2458,10 +2509,12 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2458
2509
  } | null;
2459
2510
  totalDuration: number | null;
2460
2511
  rootTaskId: string | null;
2512
+ type?: "chat" | "work" | undefined;
2461
2513
  }>;
2462
2514
  }, "strip", z.ZodTypeAny, {
2463
2515
  success: boolean;
2464
2516
  task: {
2517
+ type: "chat" | "work";
2465
2518
  id: string;
2466
2519
  createdAt: string;
2467
2520
  state: string;
@@ -2469,19 +2522,19 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2469
2522
  cloudId: string | null;
2470
2523
  userId: string;
2471
2524
  chatId: string;
2525
+ customTitle: string | null;
2472
2526
  cwd: string | null;
2473
2527
  forceUserCwd: boolean | null;
2474
2528
  repositoryId: string | null;
2475
2529
  baseBranch: string | null;
2476
2530
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2477
2531
  dataEncryptionKey: string | null;
2478
- parentTaskId: string | null;
2479
2532
  agentId: string;
2533
+ parentTaskId: string | null;
2480
2534
  title: string | null;
2481
2535
  userCwd: string | null;
2482
2536
  updatedAt: string;
2483
2537
  workerStatus: "initializing" | "ready" | "running" | null;
2484
- customTitle: string | null;
2485
2538
  agentSessionId: string | null;
2486
2539
  pullRequestNumber: number | null;
2487
2540
  pullRequestUrl: string | null;
@@ -2509,19 +2562,19 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2509
2562
  cloudId: string | null;
2510
2563
  userId: string;
2511
2564
  chatId: string;
2565
+ customTitle: string | null;
2512
2566
  cwd: string | null;
2513
2567
  forceUserCwd: boolean | null;
2514
2568
  repositoryId: string | null;
2515
2569
  baseBranch: string | null;
2516
2570
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
2517
2571
  dataEncryptionKey: string | null;
2518
- parentTaskId: string | null;
2519
2572
  agentId: string;
2573
+ parentTaskId: string | null;
2520
2574
  title: string | null;
2521
2575
  userCwd: string | null;
2522
2576
  updatedAt: string;
2523
2577
  workerStatus: "initializing" | "ready" | "running" | null;
2524
- customTitle: string | null;
2525
2578
  agentSessionId: string | null;
2526
2579
  pullRequestNumber: number | null;
2527
2580
  pullRequestUrl: string | null;
@@ -2538,6 +2591,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
2538
2591
  } | null;
2539
2592
  totalDuration: number | null;
2540
2593
  rootTaskId: string | null;
2594
+ type?: "chat" | "work" | undefined;
2541
2595
  };
2542
2596
  }>;
2543
2597
  type UpdateTaskTitleResponse = z.infer<typeof UpdateTaskTitleResponseSchema>;
@@ -2629,11 +2683,11 @@ declare const FindTaskByAgentRequestSchema: z.ZodObject<{
2629
2683
  parentTaskId: z.ZodString;
2630
2684
  agentId: z.ZodString;
2631
2685
  }, "strip", z.ZodTypeAny, {
2632
- parentTaskId: string;
2633
2686
  agentId: string;
2634
- }, {
2635
2687
  parentTaskId: string;
2688
+ }, {
2636
2689
  agentId: string;
2690
+ parentTaskId: string;
2637
2691
  }>;
2638
2692
  type FindTaskByAgentRequest = z.infer<typeof FindTaskByAgentRequestSchema>;
2639
2693
  /**
@@ -2697,6 +2751,10 @@ declare const ChatSchema: z.ZodObject<{
2697
2751
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2698
2752
  createdAt: z.ZodString;
2699
2753
  updatedAt: z.ZodString;
2754
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2755
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2756
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2757
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2700
2758
  }, "strip", z.ZodTypeAny, {
2701
2759
  type: "direct" | "group";
2702
2760
  id: string;
@@ -2704,6 +2762,10 @@ declare const ChatSchema: z.ZodObject<{
2704
2762
  updatedAt: string;
2705
2763
  owner: string;
2706
2764
  title?: string | null | undefined;
2765
+ defaultMachineId?: string | null | undefined;
2766
+ defaultCloudId?: string | null | undefined;
2767
+ defaultRepositoryId?: string | null | undefined;
2768
+ defaultBaseBranch?: string | null | undefined;
2707
2769
  }, {
2708
2770
  type: "direct" | "group";
2709
2771
  id: string;
@@ -2711,6 +2773,10 @@ declare const ChatSchema: z.ZodObject<{
2711
2773
  updatedAt: string;
2712
2774
  owner: string;
2713
2775
  title?: string | null | undefined;
2776
+ defaultMachineId?: string | null | undefined;
2777
+ defaultCloudId?: string | null | undefined;
2778
+ defaultRepositoryId?: string | null | undefined;
2779
+ defaultBaseBranch?: string | null | undefined;
2714
2780
  }>;
2715
2781
  type Chat = z.infer<typeof ChatSchema>;
2716
2782
  /**
@@ -2723,6 +2789,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2723
2789
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2724
2790
  createdAt: z.ZodString;
2725
2791
  updatedAt: z.ZodString;
2792
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2793
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2794
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2795
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
2796
  } & {
2727
2797
  members: z.ZodArray<z.ZodObject<{
2728
2798
  id: z.ZodString;
@@ -2765,6 +2835,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2765
2835
  role: string;
2766
2836
  }[];
2767
2837
  title?: string | null | undefined;
2838
+ defaultMachineId?: string | null | undefined;
2839
+ defaultCloudId?: string | null | undefined;
2840
+ defaultRepositoryId?: string | null | undefined;
2841
+ defaultBaseBranch?: string | null | undefined;
2768
2842
  }, {
2769
2843
  type: "direct" | "group";
2770
2844
  id: string;
@@ -2781,6 +2855,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
2781
2855
  role: string;
2782
2856
  }[];
2783
2857
  title?: string | null | undefined;
2858
+ defaultMachineId?: string | null | undefined;
2859
+ defaultCloudId?: string | null | undefined;
2860
+ defaultRepositoryId?: string | null | undefined;
2861
+ defaultBaseBranch?: string | null | undefined;
2784
2862
  }>;
2785
2863
  type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
2786
2864
  /**
@@ -2836,6 +2914,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2836
2914
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2837
2915
  createdAt: z.ZodString;
2838
2916
  updatedAt: z.ZodString;
2917
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2918
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2919
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2920
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2839
2921
  } & {
2840
2922
  members: z.ZodArray<z.ZodObject<{
2841
2923
  id: z.ZodString;
@@ -2878,6 +2960,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2878
2960
  role: string;
2879
2961
  }[];
2880
2962
  title?: string | null | undefined;
2963
+ defaultMachineId?: string | null | undefined;
2964
+ defaultCloudId?: string | null | undefined;
2965
+ defaultRepositoryId?: string | null | undefined;
2966
+ defaultBaseBranch?: string | null | undefined;
2881
2967
  }, {
2882
2968
  type: "direct" | "group";
2883
2969
  id: string;
@@ -2894,6 +2980,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
2894
2980
  role: string;
2895
2981
  }[];
2896
2982
  title?: string | null | undefined;
2983
+ defaultMachineId?: string | null | undefined;
2984
+ defaultCloudId?: string | null | undefined;
2985
+ defaultRepositoryId?: string | null | undefined;
2986
+ defaultBaseBranch?: string | null | undefined;
2897
2987
  }>;
2898
2988
  type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
2899
2989
  /**
@@ -2924,6 +3014,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2924
3014
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2925
3015
  createdAt: z.ZodString;
2926
3016
  updatedAt: z.ZodString;
3017
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3018
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3019
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3020
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2927
3021
  } & {
2928
3022
  members: z.ZodArray<z.ZodObject<{
2929
3023
  id: z.ZodString;
@@ -2966,6 +3060,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2966
3060
  role: string;
2967
3061
  }[];
2968
3062
  title?: string | null | undefined;
3063
+ defaultMachineId?: string | null | undefined;
3064
+ defaultCloudId?: string | null | undefined;
3065
+ defaultRepositoryId?: string | null | undefined;
3066
+ defaultBaseBranch?: string | null | undefined;
2969
3067
  }, {
2970
3068
  type: "direct" | "group";
2971
3069
  id: string;
@@ -2982,6 +3080,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
2982
3080
  role: string;
2983
3081
  }[];
2984
3082
  title?: string | null | undefined;
3083
+ defaultMachineId?: string | null | undefined;
3084
+ defaultCloudId?: string | null | undefined;
3085
+ defaultRepositoryId?: string | null | undefined;
3086
+ defaultBaseBranch?: string | null | undefined;
2985
3087
  }>, "many">;
2986
3088
  hasMore: z.ZodBoolean;
2987
3089
  }, "strip", z.ZodTypeAny, {
@@ -3002,6 +3104,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
3002
3104
  role: string;
3003
3105
  }[];
3004
3106
  title?: string | null | undefined;
3107
+ defaultMachineId?: string | null | undefined;
3108
+ defaultCloudId?: string | null | undefined;
3109
+ defaultRepositoryId?: string | null | undefined;
3110
+ defaultBaseBranch?: string | null | undefined;
3005
3111
  }[];
3006
3112
  }, {
3007
3113
  hasMore: boolean;
@@ -3021,6 +3127,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
3021
3127
  role: string;
3022
3128
  }[];
3023
3129
  title?: string | null | undefined;
3130
+ defaultMachineId?: string | null | undefined;
3131
+ defaultCloudId?: string | null | undefined;
3132
+ defaultRepositoryId?: string | null | undefined;
3133
+ defaultBaseBranch?: string | null | undefined;
3024
3134
  }[];
3025
3135
  }>;
3026
3136
  type ListChatsResponse = z.infer<typeof ListChatsResponseSchema>;
@@ -3034,6 +3144,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
3034
3144
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
3145
  createdAt: z.ZodString;
3036
3146
  updatedAt: z.ZodString;
3147
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3148
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3149
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3150
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
3151
  } & {
3038
3152
  members: z.ZodArray<z.ZodObject<{
3039
3153
  id: z.ZodString;
@@ -3076,6 +3190,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
3076
3190
  role: string;
3077
3191
  }[];
3078
3192
  title?: string | null | undefined;
3193
+ defaultMachineId?: string | null | undefined;
3194
+ defaultCloudId?: string | null | undefined;
3195
+ defaultRepositoryId?: string | null | undefined;
3196
+ defaultBaseBranch?: string | null | undefined;
3079
3197
  }, {
3080
3198
  type: "direct" | "group";
3081
3199
  id: string;
@@ -3092,6 +3210,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
3092
3210
  role: string;
3093
3211
  }[];
3094
3212
  title?: string | null | undefined;
3213
+ defaultMachineId?: string | null | undefined;
3214
+ defaultCloudId?: string | null | undefined;
3215
+ defaultRepositoryId?: string | null | undefined;
3216
+ defaultBaseBranch?: string | null | undefined;
3095
3217
  }>;
3096
3218
  type GetChatResponse = z.infer<typeof GetChatResponseSchema>;
3097
3219
  /**
@@ -3259,6 +3381,7 @@ type RemoveChatMemberRequest = z.infer<typeof RemoveChatMemberRequestSchema>;
3259
3381
  declare const ListChatTasksResponseSchema: z.ZodObject<{
3260
3382
  tasks: z.ZodArray<z.ZodObject<{
3261
3383
  id: z.ZodString;
3384
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
3262
3385
  chatId: z.ZodString;
3263
3386
  userId: z.ZodString;
3264
3387
  state: z.ZodString;
@@ -3319,6 +3442,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3319
3442
  createdAt: z.ZodString;
3320
3443
  updatedAt: z.ZodString;
3321
3444
  }, "strip", z.ZodTypeAny, {
3445
+ type: "chat" | "work";
3322
3446
  id: string;
3323
3447
  createdAt: string;
3324
3448
  state: string;
@@ -3326,19 +3450,19 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3326
3450
  cloudId: string | null;
3327
3451
  userId: string;
3328
3452
  chatId: string;
3453
+ customTitle: string | null;
3329
3454
  cwd: string | null;
3330
3455
  forceUserCwd: boolean | null;
3331
3456
  repositoryId: string | null;
3332
3457
  baseBranch: string | null;
3333
3458
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
3334
3459
  dataEncryptionKey: string | null;
3335
- parentTaskId: string | null;
3336
3460
  agentId: string;
3461
+ parentTaskId: string | null;
3337
3462
  title: string | null;
3338
3463
  userCwd: string | null;
3339
3464
  updatedAt: string;
3340
3465
  workerStatus: "initializing" | "ready" | "running" | null;
3341
- customTitle: string | null;
3342
3466
  agentSessionId: string | null;
3343
3467
  pullRequestNumber: number | null;
3344
3468
  pullRequestUrl: string | null;
@@ -3363,19 +3487,19 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3363
3487
  cloudId: string | null;
3364
3488
  userId: string;
3365
3489
  chatId: string;
3490
+ customTitle: string | null;
3366
3491
  cwd: string | null;
3367
3492
  forceUserCwd: boolean | null;
3368
3493
  repositoryId: string | null;
3369
3494
  baseBranch: string | null;
3370
3495
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
3371
3496
  dataEncryptionKey: string | null;
3372
- parentTaskId: string | null;
3373
3497
  agentId: string;
3498
+ parentTaskId: string | null;
3374
3499
  title: string | null;
3375
3500
  userCwd: string | null;
3376
3501
  updatedAt: string;
3377
3502
  workerStatus: "initializing" | "ready" | "running" | null;
3378
- customTitle: string | null;
3379
3503
  agentSessionId: string | null;
3380
3504
  pullRequestNumber: number | null;
3381
3505
  pullRequestUrl: string | null;
@@ -3392,9 +3516,11 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3392
3516
  } | null;
3393
3517
  totalDuration: number | null;
3394
3518
  rootTaskId: string | null;
3519
+ type?: "chat" | "work" | undefined;
3395
3520
  }>, "many">;
3396
3521
  }, "strip", z.ZodTypeAny, {
3397
3522
  tasks: {
3523
+ type: "chat" | "work";
3398
3524
  id: string;
3399
3525
  createdAt: string;
3400
3526
  state: string;
@@ -3402,19 +3528,19 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3402
3528
  cloudId: string | null;
3403
3529
  userId: string;
3404
3530
  chatId: string;
3531
+ customTitle: string | null;
3405
3532
  cwd: string | null;
3406
3533
  forceUserCwd: boolean | null;
3407
3534
  repositoryId: string | null;
3408
3535
  baseBranch: string | null;
3409
3536
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
3410
3537
  dataEncryptionKey: string | null;
3411
- parentTaskId: string | null;
3412
3538
  agentId: string;
3539
+ parentTaskId: string | null;
3413
3540
  title: string | null;
3414
3541
  userCwd: string | null;
3415
3542
  updatedAt: string;
3416
3543
  workerStatus: "initializing" | "ready" | "running" | null;
3417
- customTitle: string | null;
3418
3544
  agentSessionId: string | null;
3419
3545
  pullRequestNumber: number | null;
3420
3546
  pullRequestUrl: string | null;
@@ -3441,19 +3567,19 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3441
3567
  cloudId: string | null;
3442
3568
  userId: string;
3443
3569
  chatId: string;
3570
+ customTitle: string | null;
3444
3571
  cwd: string | null;
3445
3572
  forceUserCwd: boolean | null;
3446
3573
  repositoryId: string | null;
3447
3574
  baseBranch: string | null;
3448
3575
  repositorySourceType: "temporary" | "directory" | "git-server" | null;
3449
3576
  dataEncryptionKey: string | null;
3450
- parentTaskId: string | null;
3451
3577
  agentId: string;
3578
+ parentTaskId: string | null;
3452
3579
  title: string | null;
3453
3580
  userCwd: string | null;
3454
3581
  updatedAt: string;
3455
3582
  workerStatus: "initializing" | "ready" | "running" | null;
3456
- customTitle: string | null;
3457
3583
  agentSessionId: string | null;
3458
3584
  pullRequestNumber: number | null;
3459
3585
  pullRequestUrl: string | null;
@@ -3470,9 +3596,69 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
3470
3596
  } | null;
3471
3597
  totalDuration: number | null;
3472
3598
  rootTaskId: string | null;
3599
+ type?: "chat" | "work" | undefined;
3473
3600
  }[];
3474
3601
  }>;
3475
3602
  type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
3603
+ /**
3604
+ * PATCH /v1/chats/:chatId/context - Request schema
3605
+ * Update default context for creating sub-tasks
3606
+ */
3607
+ declare const UpdateChatContextRequestSchema: z.ZodObject<{
3608
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3609
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3610
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3611
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3612
+ }, "strip", z.ZodTypeAny, {
3613
+ defaultMachineId?: string | null | undefined;
3614
+ defaultCloudId?: string | null | undefined;
3615
+ defaultRepositoryId?: string | null | undefined;
3616
+ defaultBaseBranch?: string | null | undefined;
3617
+ }, {
3618
+ defaultMachineId?: string | null | undefined;
3619
+ defaultCloudId?: string | null | undefined;
3620
+ defaultRepositoryId?: string | null | undefined;
3621
+ defaultBaseBranch?: string | null | undefined;
3622
+ }>;
3623
+ type UpdateChatContextRequest = z.infer<typeof UpdateChatContextRequestSchema>;
3624
+ /**
3625
+ * PATCH /v1/chats/:chatId/context - Response schema
3626
+ */
3627
+ declare const UpdateChatContextResponseSchema: z.ZodObject<{
3628
+ id: z.ZodString;
3629
+ owner: z.ZodString;
3630
+ type: z.ZodEnum<["direct", "group"]>;
3631
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3632
+ createdAt: z.ZodString;
3633
+ updatedAt: z.ZodString;
3634
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3635
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3636
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3637
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3638
+ }, "strip", z.ZodTypeAny, {
3639
+ type: "direct" | "group";
3640
+ id: string;
3641
+ createdAt: string;
3642
+ updatedAt: string;
3643
+ owner: string;
3644
+ title?: string | null | undefined;
3645
+ defaultMachineId?: string | null | undefined;
3646
+ defaultCloudId?: string | null | undefined;
3647
+ defaultRepositoryId?: string | null | undefined;
3648
+ defaultBaseBranch?: string | null | undefined;
3649
+ }, {
3650
+ type: "direct" | "group";
3651
+ id: string;
3652
+ createdAt: string;
3653
+ updatedAt: string;
3654
+ owner: string;
3655
+ title?: string | null | undefined;
3656
+ defaultMachineId?: string | null | undefined;
3657
+ defaultCloudId?: string | null | undefined;
3658
+ defaultRepositoryId?: string | null | undefined;
3659
+ defaultBaseBranch?: string | null | undefined;
3660
+ }>;
3661
+ type UpdateChatContextResponse = z.infer<typeof UpdateChatContextResponseSchema>;
3476
3662
 
3477
3663
  /**
3478
3664
  * Agent HTTP request/response schemas
@@ -9286,6 +9472,7 @@ type RpcResponseData = z.infer<typeof RpcResponseSchema>;
9286
9472
 
9287
9473
  /**
9288
9474
  * WebSocket event schemas and mappings.
9475
+ * Updated to carry custom task titles in task lifecycle events.
9289
9476
  */
9290
9477
 
9291
9478
  /**
@@ -9737,6 +9924,35 @@ declare const WorkerStatusRequestSchema: z.ZodObject<{
9737
9924
  eventId: string;
9738
9925
  }>;
9739
9926
  type WorkerStatusRequestEventData = z.infer<typeof WorkerStatusRequestSchema>;
9927
+ declare const WorkerStatusValueSchema: z.ZodEnum<["worker-initializing", "worker-ready", "worker-running"]>;
9928
+ type WorkerStatusValue = z.infer<typeof WorkerStatusValueSchema>;
9929
+ declare const ChatWorkersStatusRequestSchema: z.ZodObject<{
9930
+ eventId: z.ZodString;
9931
+ } & {
9932
+ chatId: z.ZodString;
9933
+ }, "strip", z.ZodTypeAny, {
9934
+ chatId: string;
9935
+ eventId: string;
9936
+ }, {
9937
+ chatId: string;
9938
+ eventId: string;
9939
+ }>;
9940
+ type ChatWorkersStatusRequestEventData = z.infer<typeof ChatWorkersStatusRequestSchema>;
9941
+ declare const ChatWorkersStatusResponseSchema: z.ZodObject<{
9942
+ eventId: z.ZodString;
9943
+ } & {
9944
+ chatId: z.ZodString;
9945
+ workers: z.ZodRecord<z.ZodString, z.ZodEnum<["worker-initializing", "worker-ready", "worker-running"]>>;
9946
+ }, "strip", z.ZodTypeAny, {
9947
+ chatId: string;
9948
+ eventId: string;
9949
+ workers: Record<string, "worker-initializing" | "worker-ready" | "worker-running">;
9950
+ }, {
9951
+ chatId: string;
9952
+ eventId: string;
9953
+ workers: Record<string, "worker-initializing" | "worker-ready" | "worker-running">;
9954
+ }>;
9955
+ type ChatWorkersStatusResponseEventData = z.infer<typeof ChatWorkersStatusResponseSchema>;
9740
9956
  declare const baseTaskSchema: z.ZodObject<{
9741
9957
  eventId: z.ZodString;
9742
9958
  } & {
@@ -9763,6 +9979,8 @@ declare const baseTaskSchema: z.ZodObject<{
9763
9979
  rootTaskId: z.ZodOptional<z.ZodString>;
9764
9980
  parentTaskId: z.ZodOptional<z.ZodString>;
9765
9981
  chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9982
+ taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
9983
+ customTitle: z.ZodOptional<z.ZodString>;
9766
9984
  }, "strip", z.ZodTypeAny, {
9767
9985
  userId: string;
9768
9986
  taskId: string;
@@ -9770,6 +9988,8 @@ declare const baseTaskSchema: z.ZodObject<{
9770
9988
  agentId: string;
9771
9989
  eventId: string;
9772
9990
  agentType: string;
9991
+ taskType: "chat" | "work";
9992
+ customTitle?: string | undefined;
9773
9993
  cwd?: string | undefined;
9774
9994
  forceUserCwd?: boolean | undefined;
9775
9995
  repositoryId?: string | undefined;
@@ -9794,6 +10014,7 @@ declare const baseTaskSchema: z.ZodObject<{
9794
10014
  chatId: string;
9795
10015
  agentId: string;
9796
10016
  eventId: string;
10017
+ customTitle?: string | undefined;
9797
10018
  cwd?: string | undefined;
9798
10019
  forceUserCwd?: boolean | undefined;
9799
10020
  repositoryId?: string | undefined;
@@ -9813,6 +10034,7 @@ declare const baseTaskSchema: z.ZodObject<{
9813
10034
  maxTurns?: number | undefined;
9814
10035
  environmentVariables?: Record<string, string> | undefined;
9815
10036
  chatAgents?: Record<string, string> | undefined;
10037
+ taskType?: "chat" | "work" | undefined;
9816
10038
  }>;
9817
10039
  declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9818
10040
  eventId: z.ZodString;
@@ -9840,6 +10062,8 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9840
10062
  rootTaskId: z.ZodOptional<z.ZodString>;
9841
10063
  parentTaskId: z.ZodOptional<z.ZodString>;
9842
10064
  chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10065
+ taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
10066
+ customTitle: z.ZodOptional<z.ZodString>;
9843
10067
  } & {
9844
10068
  message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
9845
10069
  encryptedMessage: z.ZodOptional<z.ZodString>;
@@ -9850,7 +10074,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9850
10074
  agentId: string;
9851
10075
  eventId: string;
9852
10076
  agentType: string;
10077
+ taskType: "chat" | "work";
9853
10078
  message?: SDKUserMessage | undefined;
10079
+ customTitle?: string | undefined;
9854
10080
  encryptedMessage?: string | undefined;
9855
10081
  cwd?: string | undefined;
9856
10082
  forceUserCwd?: boolean | undefined;
@@ -9877,6 +10103,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9877
10103
  agentId: string;
9878
10104
  eventId: string;
9879
10105
  message?: SDKUserMessage | undefined;
10106
+ customTitle?: string | undefined;
9880
10107
  encryptedMessage?: string | undefined;
9881
10108
  cwd?: string | undefined;
9882
10109
  forceUserCwd?: boolean | undefined;
@@ -9897,6 +10124,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9897
10124
  maxTurns?: number | undefined;
9898
10125
  environmentVariables?: Record<string, string> | undefined;
9899
10126
  chatAgents?: Record<string, string> | undefined;
10127
+ taskType?: "chat" | "work" | undefined;
9900
10128
  }>, {
9901
10129
  userId: string;
9902
10130
  taskId: string;
@@ -9904,7 +10132,9 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9904
10132
  agentId: string;
9905
10133
  eventId: string;
9906
10134
  agentType: string;
10135
+ taskType: "chat" | "work";
9907
10136
  message?: SDKUserMessage | undefined;
10137
+ customTitle?: string | undefined;
9908
10138
  encryptedMessage?: string | undefined;
9909
10139
  cwd?: string | undefined;
9910
10140
  forceUserCwd?: boolean | undefined;
@@ -9931,6 +10161,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9931
10161
  agentId: string;
9932
10162
  eventId: string;
9933
10163
  message?: SDKUserMessage | undefined;
10164
+ customTitle?: string | undefined;
9934
10165
  encryptedMessage?: string | undefined;
9935
10166
  cwd?: string | undefined;
9936
10167
  forceUserCwd?: boolean | undefined;
@@ -9951,6 +10182,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
9951
10182
  maxTurns?: number | undefined;
9952
10183
  environmentVariables?: Record<string, string> | undefined;
9953
10184
  chatAgents?: Record<string, string> | undefined;
10185
+ taskType?: "chat" | "work" | undefined;
9954
10186
  }>;
9955
10187
  type CreateTaskEventData = z.infer<typeof createTaskSchema>;
9956
10188
  declare const resumeTaskSchema: z.ZodObject<{
@@ -9979,6 +10211,8 @@ declare const resumeTaskSchema: z.ZodObject<{
9979
10211
  rootTaskId: z.ZodOptional<z.ZodString>;
9980
10212
  parentTaskId: z.ZodOptional<z.ZodString>;
9981
10213
  chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10214
+ taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
10215
+ customTitle: z.ZodOptional<z.ZodString>;
9982
10216
  } & {
9983
10217
  agentSessionId: z.ZodString;
9984
10218
  event: z.ZodOptional<z.ZodString>;
@@ -9993,7 +10227,9 @@ declare const resumeTaskSchema: z.ZodObject<{
9993
10227
  agentSessionId: string;
9994
10228
  eventId: string;
9995
10229
  agentType: string;
10230
+ taskType: "chat" | "work";
9996
10231
  message?: SDKUserMessage | undefined;
10232
+ customTitle?: string | undefined;
9997
10233
  encryptedMessage?: string | undefined;
9998
10234
  cwd?: string | undefined;
9999
10235
  forceUserCwd?: boolean | undefined;
@@ -10023,6 +10259,7 @@ declare const resumeTaskSchema: z.ZodObject<{
10023
10259
  agentSessionId: string;
10024
10260
  eventId: string;
10025
10261
  message?: SDKUserMessage | undefined;
10262
+ customTitle?: string | undefined;
10026
10263
  encryptedMessage?: string | undefined;
10027
10264
  cwd?: string | undefined;
10028
10265
  forceUserCwd?: boolean | undefined;
@@ -10043,6 +10280,7 @@ declare const resumeTaskSchema: z.ZodObject<{
10043
10280
  maxTurns?: number | undefined;
10044
10281
  environmentVariables?: Record<string, string> | undefined;
10045
10282
  chatAgents?: Record<string, string> | undefined;
10283
+ taskType?: "chat" | "work" | undefined;
10046
10284
  event?: string | undefined;
10047
10285
  eventData?: any;
10048
10286
  }>;
@@ -10086,6 +10324,141 @@ declare const StopTaskSchema: z.ZodObject<{
10086
10324
  reason?: string | undefined;
10087
10325
  }>;
10088
10326
  type StopTaskEventData = z.infer<typeof StopTaskSchema>;
10327
+ /**
10328
+ * Git stats schema for sub task artifacts
10329
+ */
10330
+ declare const SubTaskGitStatsSchema: z.ZodObject<{
10331
+ additions: z.ZodNumber;
10332
+ deletions: z.ZodNumber;
10333
+ fileCount: z.ZodNumber;
10334
+ }, "strip", z.ZodTypeAny, {
10335
+ deletions: number;
10336
+ additions: number;
10337
+ fileCount: number;
10338
+ }, {
10339
+ deletions: number;
10340
+ additions: number;
10341
+ fileCount: number;
10342
+ }>;
10343
+ type SubTaskGitStats = z.infer<typeof SubTaskGitStatsSchema>;
10344
+ /**
10345
+ * Project type for preview rendering
10346
+ */
10347
+ declare const PreviewProjectTypeSchema: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
10348
+ type PreviewProjectType = z.infer<typeof PreviewProjectTypeSchema>;
10349
+ /**
10350
+ * Preview rendering method
10351
+ */
10352
+ declare const PreviewMethodSchema: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
10353
+ type PreviewMethod = z.infer<typeof PreviewMethodSchema>;
10354
+ /**
10355
+ * Preview metadata computed by CLI
10356
+ * Contains all information needed for App to render preview without re-detection
10357
+ */
10358
+ declare const PreviewMetadataSchema: z.ZodObject<{
10359
+ projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
10360
+ previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
10361
+ entryFile: z.ZodNullable<z.ZodString>;
10362
+ projectPath: z.ZodString;
10363
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10364
+ tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
10365
+ isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
10366
+ }, "strip", z.ZodTypeAny, {
10367
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10368
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10369
+ entryFile: string | null;
10370
+ projectPath: string;
10371
+ dependencies?: Record<string, string> | undefined;
10372
+ tailwindVersion?: 4 | 3 | null | undefined;
10373
+ isStaticFileCollection?: boolean | undefined;
10374
+ }, {
10375
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10376
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10377
+ entryFile: string | null;
10378
+ projectPath: string;
10379
+ dependencies?: Record<string, string> | undefined;
10380
+ tailwindVersion?: 4 | 3 | null | undefined;
10381
+ isStaticFileCollection?: boolean | undefined;
10382
+ }>;
10383
+ type PreviewMetadata = z.infer<typeof PreviewMetadataSchema>;
10384
+ /**
10385
+ * Artifacts summary schema for sub task result
10386
+ * Used in both TaskMessageSchema (CLI sends with result) and SubTaskResultUpdatedEventSchema
10387
+ */
10388
+ declare const SubTaskArtifactsSummarySchema: z.ZodObject<{
10389
+ commitHash: z.ZodString;
10390
+ gitStats: z.ZodObject<{
10391
+ additions: z.ZodNumber;
10392
+ deletions: z.ZodNumber;
10393
+ fileCount: z.ZodNumber;
10394
+ }, "strip", z.ZodTypeAny, {
10395
+ deletions: number;
10396
+ additions: number;
10397
+ fileCount: number;
10398
+ }, {
10399
+ deletions: number;
10400
+ additions: number;
10401
+ fileCount: number;
10402
+ }>;
10403
+ preview: z.ZodNullable<z.ZodObject<{
10404
+ projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
10405
+ previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
10406
+ entryFile: z.ZodNullable<z.ZodString>;
10407
+ projectPath: z.ZodString;
10408
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10409
+ tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
10410
+ isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
10411
+ }, "strip", z.ZodTypeAny, {
10412
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10413
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10414
+ entryFile: string | null;
10415
+ projectPath: string;
10416
+ dependencies?: Record<string, string> | undefined;
10417
+ tailwindVersion?: 4 | 3 | null | undefined;
10418
+ isStaticFileCollection?: boolean | undefined;
10419
+ }, {
10420
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10421
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10422
+ entryFile: string | null;
10423
+ projectPath: string;
10424
+ dependencies?: Record<string, string> | undefined;
10425
+ tailwindVersion?: 4 | 3 | null | undefined;
10426
+ isStaticFileCollection?: boolean | undefined;
10427
+ }>>;
10428
+ }, "strip", z.ZodTypeAny, {
10429
+ gitStats: {
10430
+ deletions: number;
10431
+ additions: number;
10432
+ fileCount: number;
10433
+ };
10434
+ commitHash: string;
10435
+ preview: {
10436
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10437
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10438
+ entryFile: string | null;
10439
+ projectPath: string;
10440
+ dependencies?: Record<string, string> | undefined;
10441
+ tailwindVersion?: 4 | 3 | null | undefined;
10442
+ isStaticFileCollection?: boolean | undefined;
10443
+ } | null;
10444
+ }, {
10445
+ gitStats: {
10446
+ deletions: number;
10447
+ additions: number;
10448
+ fileCount: number;
10449
+ };
10450
+ commitHash: string;
10451
+ preview: {
10452
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10453
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10454
+ entryFile: string | null;
10455
+ projectPath: string;
10456
+ dependencies?: Record<string, string> | undefined;
10457
+ tailwindVersion?: 4 | 3 | null | undefined;
10458
+ isStaticFileCollection?: boolean | undefined;
10459
+ } | null;
10460
+ }>;
10461
+ type SubTaskArtifactsSummary = z.infer<typeof SubTaskArtifactsSummarySchema>;
10089
10462
  declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10090
10463
  eventId: z.ZodString;
10091
10464
  } & {
@@ -10098,6 +10471,79 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10098
10471
  encryptedMessage: z.ZodOptional<z.ZodString>;
10099
10472
  agentId: z.ZodOptional<z.ZodString>;
10100
10473
  rootTaskId: z.ZodOptional<z.ZodString>;
10474
+ artifacts: z.ZodOptional<z.ZodObject<{
10475
+ commitHash: z.ZodString;
10476
+ gitStats: z.ZodObject<{
10477
+ additions: z.ZodNumber;
10478
+ deletions: z.ZodNumber;
10479
+ fileCount: z.ZodNumber;
10480
+ }, "strip", z.ZodTypeAny, {
10481
+ deletions: number;
10482
+ additions: number;
10483
+ fileCount: number;
10484
+ }, {
10485
+ deletions: number;
10486
+ additions: number;
10487
+ fileCount: number;
10488
+ }>;
10489
+ preview: z.ZodNullable<z.ZodObject<{
10490
+ projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
10491
+ previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
10492
+ entryFile: z.ZodNullable<z.ZodString>;
10493
+ projectPath: z.ZodString;
10494
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10495
+ tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
10496
+ isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
10497
+ }, "strip", z.ZodTypeAny, {
10498
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10499
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10500
+ entryFile: string | null;
10501
+ projectPath: string;
10502
+ dependencies?: Record<string, string> | undefined;
10503
+ tailwindVersion?: 4 | 3 | null | undefined;
10504
+ isStaticFileCollection?: boolean | undefined;
10505
+ }, {
10506
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10507
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10508
+ entryFile: string | null;
10509
+ projectPath: string;
10510
+ dependencies?: Record<string, string> | undefined;
10511
+ tailwindVersion?: 4 | 3 | null | undefined;
10512
+ isStaticFileCollection?: boolean | undefined;
10513
+ }>>;
10514
+ }, "strip", z.ZodTypeAny, {
10515
+ gitStats: {
10516
+ deletions: number;
10517
+ additions: number;
10518
+ fileCount: number;
10519
+ };
10520
+ commitHash: string;
10521
+ preview: {
10522
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10523
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10524
+ entryFile: string | null;
10525
+ projectPath: string;
10526
+ dependencies?: Record<string, string> | undefined;
10527
+ tailwindVersion?: 4 | 3 | null | undefined;
10528
+ isStaticFileCollection?: boolean | undefined;
10529
+ } | null;
10530
+ }, {
10531
+ gitStats: {
10532
+ deletions: number;
10533
+ additions: number;
10534
+ fileCount: number;
10535
+ };
10536
+ commitHash: string;
10537
+ preview: {
10538
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10539
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10540
+ entryFile: string | null;
10541
+ projectPath: string;
10542
+ dependencies?: Record<string, string> | undefined;
10543
+ tailwindVersion?: 4 | 3 | null | undefined;
10544
+ isStaticFileCollection?: boolean | undefined;
10545
+ } | null;
10546
+ }>>;
10101
10547
  }, "strip", z.ZodTypeAny, {
10102
10548
  taskId: string;
10103
10549
  eventId: string;
@@ -10109,6 +10555,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10109
10555
  rootTaskId?: string | undefined;
10110
10556
  opCode?: string | undefined;
10111
10557
  sequence?: number | undefined;
10558
+ artifacts?: {
10559
+ gitStats: {
10560
+ deletions: number;
10561
+ additions: number;
10562
+ fileCount: number;
10563
+ };
10564
+ commitHash: string;
10565
+ preview: {
10566
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10567
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10568
+ entryFile: string | null;
10569
+ projectPath: string;
10570
+ dependencies?: Record<string, string> | undefined;
10571
+ tailwindVersion?: 4 | 3 | null | undefined;
10572
+ isStaticFileCollection?: boolean | undefined;
10573
+ } | null;
10574
+ } | undefined;
10112
10575
  }, {
10113
10576
  taskId: string;
10114
10577
  eventId: string;
@@ -10120,6 +10583,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10120
10583
  rootTaskId?: string | undefined;
10121
10584
  opCode?: string | undefined;
10122
10585
  sequence?: number | undefined;
10586
+ artifacts?: {
10587
+ gitStats: {
10588
+ deletions: number;
10589
+ additions: number;
10590
+ fileCount: number;
10591
+ };
10592
+ commitHash: string;
10593
+ preview: {
10594
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10595
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10596
+ entryFile: string | null;
10597
+ projectPath: string;
10598
+ dependencies?: Record<string, string> | undefined;
10599
+ tailwindVersion?: 4 | 3 | null | undefined;
10600
+ isStaticFileCollection?: boolean | undefined;
10601
+ } | null;
10602
+ } | undefined;
10123
10603
  }>, {
10124
10604
  taskId: string;
10125
10605
  eventId: string;
@@ -10131,6 +10611,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10131
10611
  rootTaskId?: string | undefined;
10132
10612
  opCode?: string | undefined;
10133
10613
  sequence?: number | undefined;
10614
+ artifacts?: {
10615
+ gitStats: {
10616
+ deletions: number;
10617
+ additions: number;
10618
+ fileCount: number;
10619
+ };
10620
+ commitHash: string;
10621
+ preview: {
10622
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10623
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10624
+ entryFile: string | null;
10625
+ projectPath: string;
10626
+ dependencies?: Record<string, string> | undefined;
10627
+ tailwindVersion?: 4 | 3 | null | undefined;
10628
+ isStaticFileCollection?: boolean | undefined;
10629
+ } | null;
10630
+ } | undefined;
10134
10631
  }, {
10135
10632
  taskId: string;
10136
10633
  eventId: string;
@@ -10142,6 +10639,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
10142
10639
  rootTaskId?: string | undefined;
10143
10640
  opCode?: string | undefined;
10144
10641
  sequence?: number | undefined;
10642
+ artifacts?: {
10643
+ gitStats: {
10644
+ deletions: number;
10645
+ additions: number;
10646
+ fileCount: number;
10647
+ };
10648
+ commitHash: string;
10649
+ preview: {
10650
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
10651
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
10652
+ entryFile: string | null;
10653
+ projectPath: string;
10654
+ dependencies?: Record<string, string> | undefined;
10655
+ tailwindVersion?: 4 | 3 | null | undefined;
10656
+ isStaticFileCollection?: boolean | undefined;
10657
+ } | null;
10658
+ } | undefined;
10145
10659
  }>;
10146
10660
  type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
10147
10661
  /**
@@ -10643,42 +11157,170 @@ declare const TaskStoppedEventSchema: z.ZodObject<{
10643
11157
  }>;
10644
11158
  type TaskStoppedEventData = z.infer<typeof TaskStoppedEventSchema>;
10645
11159
  /**
10646
- * Sub task completed event (API -> parentTask's Worker)
10647
- * Sent when a sub task completes and has 'notify_parent' callback registered
11160
+ * Sub task result updated event (API -> parentTask's Worker + App)
11161
+ * Sent when a sub task sends a result message
11162
+ * Carries the complete result message for parent task to process
10648
11163
  */
10649
- declare const SubTaskCompletedEventSchema: z.ZodObject<{
11164
+ declare const SubTaskResultUpdatedEventSchema: z.ZodObject<{
10650
11165
  eventId: z.ZodString;
10651
11166
  } & {
10652
11167
  taskId: z.ZodString;
10653
11168
  parentTaskId: z.ZodString;
10654
11169
  rootTaskId: z.ZodString;
11170
+ agentId: z.ZodString;
10655
11171
  agentName: z.ZodString;
10656
11172
  taskName: z.ZodOptional<z.ZodString>;
10657
- sessionPath: z.ZodOptional<z.ZodString>;
10658
- cwd: z.ZodOptional<z.ZodString>;
10659
- }, "strip", z.ZodTypeAny, {
10660
- taskId: string;
10661
- parentTaskId: string;
10662
- rootTaskId: string;
10663
- eventId: string;
10664
- agentName: string;
10665
- cwd?: string | undefined;
10666
- sessionPath?: string | undefined;
10667
- taskName?: string | undefined;
10668
- }, {
10669
- taskId: string;
10670
- parentTaskId: string;
10671
- rootTaskId: string;
10672
- eventId: string;
10673
- agentName: string;
10674
- cwd?: string | undefined;
10675
- sessionPath?: string | undefined;
10676
- taskName?: string | undefined;
10677
- }>;
10678
- type SubTaskCompletedEventData = z.infer<typeof SubTaskCompletedEventSchema>;
10679
- declare const MergePullRequestEventSchema: z.ZodObject<{
10680
- eventId: z.ZodString;
10681
- } & {
11173
+ resultMessage: z.ZodObject<{
11174
+ type: z.ZodLiteral<"result">;
11175
+ result: z.ZodString;
11176
+ is_error: z.ZodOptional<z.ZodBoolean>;
11177
+ }, "strip", z.ZodTypeAny, {
11178
+ type: "result";
11179
+ result: string;
11180
+ is_error?: boolean | undefined;
11181
+ }, {
11182
+ type: "result";
11183
+ result: string;
11184
+ is_error?: boolean | undefined;
11185
+ }>;
11186
+ artifacts: z.ZodOptional<z.ZodObject<{
11187
+ commitHash: z.ZodString;
11188
+ gitStats: z.ZodObject<{
11189
+ additions: z.ZodNumber;
11190
+ deletions: z.ZodNumber;
11191
+ fileCount: z.ZodNumber;
11192
+ }, "strip", z.ZodTypeAny, {
11193
+ deletions: number;
11194
+ additions: number;
11195
+ fileCount: number;
11196
+ }, {
11197
+ deletions: number;
11198
+ additions: number;
11199
+ fileCount: number;
11200
+ }>;
11201
+ preview: z.ZodNullable<z.ZodObject<{
11202
+ projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
11203
+ previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
11204
+ entryFile: z.ZodNullable<z.ZodString>;
11205
+ projectPath: z.ZodString;
11206
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11207
+ tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
11208
+ isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
11209
+ }, "strip", z.ZodTypeAny, {
11210
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11211
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11212
+ entryFile: string | null;
11213
+ projectPath: string;
11214
+ dependencies?: Record<string, string> | undefined;
11215
+ tailwindVersion?: 4 | 3 | null | undefined;
11216
+ isStaticFileCollection?: boolean | undefined;
11217
+ }, {
11218
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11219
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11220
+ entryFile: string | null;
11221
+ projectPath: string;
11222
+ dependencies?: Record<string, string> | undefined;
11223
+ tailwindVersion?: 4 | 3 | null | undefined;
11224
+ isStaticFileCollection?: boolean | undefined;
11225
+ }>>;
11226
+ }, "strip", z.ZodTypeAny, {
11227
+ gitStats: {
11228
+ deletions: number;
11229
+ additions: number;
11230
+ fileCount: number;
11231
+ };
11232
+ commitHash: string;
11233
+ preview: {
11234
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11235
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11236
+ entryFile: string | null;
11237
+ projectPath: string;
11238
+ dependencies?: Record<string, string> | undefined;
11239
+ tailwindVersion?: 4 | 3 | null | undefined;
11240
+ isStaticFileCollection?: boolean | undefined;
11241
+ } | null;
11242
+ }, {
11243
+ gitStats: {
11244
+ deletions: number;
11245
+ additions: number;
11246
+ fileCount: number;
11247
+ };
11248
+ commitHash: string;
11249
+ preview: {
11250
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11251
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11252
+ entryFile: string | null;
11253
+ projectPath: string;
11254
+ dependencies?: Record<string, string> | undefined;
11255
+ tailwindVersion?: 4 | 3 | null | undefined;
11256
+ isStaticFileCollection?: boolean | undefined;
11257
+ } | null;
11258
+ }>>;
11259
+ }, "strip", z.ZodTypeAny, {
11260
+ taskId: string;
11261
+ agentId: string;
11262
+ parentTaskId: string;
11263
+ rootTaskId: string;
11264
+ eventId: string;
11265
+ agentName: string;
11266
+ resultMessage: {
11267
+ type: "result";
11268
+ result: string;
11269
+ is_error?: boolean | undefined;
11270
+ };
11271
+ artifacts?: {
11272
+ gitStats: {
11273
+ deletions: number;
11274
+ additions: number;
11275
+ fileCount: number;
11276
+ };
11277
+ commitHash: string;
11278
+ preview: {
11279
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11280
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11281
+ entryFile: string | null;
11282
+ projectPath: string;
11283
+ dependencies?: Record<string, string> | undefined;
11284
+ tailwindVersion?: 4 | 3 | null | undefined;
11285
+ isStaticFileCollection?: boolean | undefined;
11286
+ } | null;
11287
+ } | undefined;
11288
+ taskName?: string | undefined;
11289
+ }, {
11290
+ taskId: string;
11291
+ agentId: string;
11292
+ parentTaskId: string;
11293
+ rootTaskId: string;
11294
+ eventId: string;
11295
+ agentName: string;
11296
+ resultMessage: {
11297
+ type: "result";
11298
+ result: string;
11299
+ is_error?: boolean | undefined;
11300
+ };
11301
+ artifacts?: {
11302
+ gitStats: {
11303
+ deletions: number;
11304
+ additions: number;
11305
+ fileCount: number;
11306
+ };
11307
+ commitHash: string;
11308
+ preview: {
11309
+ projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
11310
+ previewMethod: "simple" | "bundled" | "gallery" | "none";
11311
+ entryFile: string | null;
11312
+ projectPath: string;
11313
+ dependencies?: Record<string, string> | undefined;
11314
+ tailwindVersion?: 4 | 3 | null | undefined;
11315
+ isStaticFileCollection?: boolean | undefined;
11316
+ } | null;
11317
+ } | undefined;
11318
+ taskName?: string | undefined;
11319
+ }>;
11320
+ type SubTaskResultUpdatedEventData = z.infer<typeof SubTaskResultUpdatedEventSchema>;
11321
+ declare const MergePullRequestEventSchema: z.ZodObject<{
11322
+ eventId: z.ZodString;
11323
+ } & {
10682
11324
  taskId: z.ZodString;
10683
11325
  mergeMethod: z.ZodDefault<z.ZodOptional<z.ZodEnum<["merge", "squash", "rebase"]>>>;
10684
11326
  }, "strip", z.ZodTypeAny, {
@@ -10872,7 +11514,7 @@ type PrStateChangedData = z.infer<typeof PrStateChangedSchema>;
10872
11514
  declare const SystemMessageSchema: z.ZodObject<{
10873
11515
  eventId: z.ZodString;
10874
11516
  } & {
10875
- type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "draft-agent-added"]>;
11517
+ type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "draft-agent-added", "task-added"]>;
10876
11518
  data: z.ZodUnion<[z.ZodObject<{
10877
11519
  id: z.ZodString;
10878
11520
  }, "strip", z.ZodTypeAny, {
@@ -10886,6 +11528,10 @@ declare const SystemMessageSchema: z.ZodObject<{
10886
11528
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10887
11529
  createdAt: z.ZodString;
10888
11530
  updatedAt: z.ZodString;
11531
+ defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11532
+ defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11533
+ defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11534
+ defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10889
11535
  }, "strip", z.ZodTypeAny, {
10890
11536
  type: "direct" | "group";
10891
11537
  id: string;
@@ -10893,6 +11539,10 @@ declare const SystemMessageSchema: z.ZodObject<{
10893
11539
  updatedAt: string;
10894
11540
  owner: string;
10895
11541
  title?: string | null | undefined;
11542
+ defaultMachineId?: string | null | undefined;
11543
+ defaultCloudId?: string | null | undefined;
11544
+ defaultRepositoryId?: string | null | undefined;
11545
+ defaultBaseBranch?: string | null | undefined;
10896
11546
  }, {
10897
11547
  type: "direct" | "group";
10898
11548
  id: string;
@@ -10900,6 +11550,10 @@ declare const SystemMessageSchema: z.ZodObject<{
10900
11550
  updatedAt: string;
10901
11551
  owner: string;
10902
11552
  title?: string | null | undefined;
11553
+ defaultMachineId?: string | null | undefined;
11554
+ defaultCloudId?: string | null | undefined;
11555
+ defaultRepositoryId?: string | null | undefined;
11556
+ defaultBaseBranch?: string | null | undefined;
10903
11557
  }>, z.ZodArray<z.ZodObject<{
10904
11558
  id: z.ZodString;
10905
11559
  chatId: z.ZodString;
@@ -11248,17 +11902,197 @@ declare const SystemMessageSchema: z.ZodObject<{
11248
11902
  displayName: string;
11249
11903
  publishedAgentId: string | null;
11250
11904
  sourceTaskId: string | null;
11905
+ }>, z.ZodObject<{
11906
+ id: z.ZodString;
11907
+ type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
11908
+ chatId: z.ZodString;
11909
+ userId: z.ZodString;
11910
+ state: z.ZodString;
11911
+ workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
11912
+ agentId: z.ZodString;
11913
+ machineId: z.ZodNullable<z.ZodString>;
11914
+ cloudId: z.ZodNullable<z.ZodString>;
11915
+ repositoryId: z.ZodNullable<z.ZodString>;
11916
+ baseBranch: z.ZodNullable<z.ZodString>;
11917
+ title: z.ZodNullable<z.ZodString>;
11918
+ customTitle: z.ZodNullable<z.ZodString>;
11919
+ agentSessionId: z.ZodNullable<z.ZodString>;
11920
+ dataEncryptionKey: z.ZodNullable<z.ZodString>;
11921
+ cwd: z.ZodNullable<z.ZodString>;
11922
+ userCwd: z.ZodNullable<z.ZodString>;
11923
+ forceUserCwd: z.ZodNullable<z.ZodBoolean>;
11924
+ repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
11925
+ pullRequestNumber: z.ZodNullable<z.ZodNumber>;
11926
+ pullRequestUrl: z.ZodNullable<z.ZodString>;
11927
+ pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
11928
+ pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
11929
+ gitStats: z.ZodNullable<z.ZodObject<{
11930
+ totalInsertions: z.ZodNumber;
11931
+ totalDeletions: z.ZodNumber;
11932
+ files: z.ZodArray<z.ZodObject<{
11933
+ path: z.ZodString;
11934
+ insertions: z.ZodNumber;
11935
+ deletions: z.ZodNumber;
11936
+ }, "strip", z.ZodTypeAny, {
11937
+ path: string;
11938
+ insertions: number;
11939
+ deletions: number;
11940
+ }, {
11941
+ path: string;
11942
+ insertions: number;
11943
+ deletions: number;
11944
+ }>, "many">;
11945
+ }, "strip", z.ZodTypeAny, {
11946
+ totalInsertions: number;
11947
+ totalDeletions: number;
11948
+ files: {
11949
+ path: string;
11950
+ insertions: number;
11951
+ deletions: number;
11952
+ }[];
11953
+ }, {
11954
+ totalInsertions: number;
11955
+ totalDeletions: number;
11956
+ files: {
11957
+ path: string;
11958
+ insertions: number;
11959
+ deletions: number;
11960
+ }[];
11961
+ }>>;
11962
+ totalDuration: z.ZodNullable<z.ZodNumber>;
11963
+ rootTaskId: z.ZodNullable<z.ZodString>;
11964
+ parentTaskId: z.ZodNullable<z.ZodString>;
11965
+ createdAt: z.ZodString;
11966
+ updatedAt: z.ZodString;
11967
+ }, "strip", z.ZodTypeAny, {
11968
+ type: "chat" | "work";
11969
+ id: string;
11970
+ createdAt: string;
11971
+ state: string;
11972
+ machineId: string | null;
11973
+ cloudId: string | null;
11974
+ userId: string;
11975
+ chatId: string;
11976
+ customTitle: string | null;
11977
+ cwd: string | null;
11978
+ forceUserCwd: boolean | null;
11979
+ repositoryId: string | null;
11980
+ baseBranch: string | null;
11981
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
11982
+ dataEncryptionKey: string | null;
11983
+ agentId: string;
11984
+ parentTaskId: string | null;
11985
+ title: string | null;
11986
+ userCwd: string | null;
11987
+ updatedAt: string;
11988
+ workerStatus: "initializing" | "ready" | "running" | null;
11989
+ agentSessionId: string | null;
11990
+ pullRequestNumber: number | null;
11991
+ pullRequestUrl: string | null;
11992
+ pullRequestState: "open" | "closed" | "merged" | null;
11993
+ pullRequestStateChangedAt: string | null;
11994
+ gitStats: {
11995
+ totalInsertions: number;
11996
+ totalDeletions: number;
11997
+ files: {
11998
+ path: string;
11999
+ insertions: number;
12000
+ deletions: number;
12001
+ }[];
12002
+ } | null;
12003
+ totalDuration: number | null;
12004
+ rootTaskId: string | null;
12005
+ }, {
12006
+ id: string;
12007
+ createdAt: string;
12008
+ state: string;
12009
+ machineId: string | null;
12010
+ cloudId: string | null;
12011
+ userId: string;
12012
+ chatId: string;
12013
+ customTitle: string | null;
12014
+ cwd: string | null;
12015
+ forceUserCwd: boolean | null;
12016
+ repositoryId: string | null;
12017
+ baseBranch: string | null;
12018
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
12019
+ dataEncryptionKey: string | null;
12020
+ agentId: string;
12021
+ parentTaskId: string | null;
12022
+ title: string | null;
12023
+ userCwd: string | null;
12024
+ updatedAt: string;
12025
+ workerStatus: "initializing" | "ready" | "running" | null;
12026
+ agentSessionId: string | null;
12027
+ pullRequestNumber: number | null;
12028
+ pullRequestUrl: string | null;
12029
+ pullRequestState: "open" | "closed" | "merged" | null;
12030
+ pullRequestStateChangedAt: string | null;
12031
+ gitStats: {
12032
+ totalInsertions: number;
12033
+ totalDeletions: number;
12034
+ files: {
12035
+ path: string;
12036
+ insertions: number;
12037
+ deletions: number;
12038
+ }[];
12039
+ } | null;
12040
+ totalDuration: number | null;
12041
+ rootTaskId: string | null;
12042
+ type?: "chat" | "work" | undefined;
11251
12043
  }>]>;
11252
12044
  timestamp: z.ZodString;
11253
12045
  }, "strip", z.ZodTypeAny, {
11254
- 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";
12046
+ 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" | "task-added";
11255
12047
  data: {
12048
+ type: "chat" | "work";
12049
+ id: string;
12050
+ createdAt: string;
12051
+ state: string;
12052
+ machineId: string | null;
12053
+ cloudId: string | null;
12054
+ userId: string;
12055
+ chatId: string;
12056
+ customTitle: string | null;
12057
+ cwd: string | null;
12058
+ forceUserCwd: boolean | null;
12059
+ repositoryId: string | null;
12060
+ baseBranch: string | null;
12061
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
12062
+ dataEncryptionKey: string | null;
12063
+ agentId: string;
12064
+ parentTaskId: string | null;
12065
+ title: string | null;
12066
+ userCwd: string | null;
12067
+ updatedAt: string;
12068
+ workerStatus: "initializing" | "ready" | "running" | null;
12069
+ agentSessionId: string | null;
12070
+ pullRequestNumber: number | null;
12071
+ pullRequestUrl: string | null;
12072
+ pullRequestState: "open" | "closed" | "merged" | null;
12073
+ pullRequestStateChangedAt: string | null;
12074
+ gitStats: {
12075
+ totalInsertions: number;
12076
+ totalDeletions: number;
12077
+ files: {
12078
+ path: string;
12079
+ insertions: number;
12080
+ deletions: number;
12081
+ }[];
12082
+ } | null;
12083
+ totalDuration: number | null;
12084
+ rootTaskId: string | null;
12085
+ } | {
11256
12086
  type: "direct" | "group";
11257
12087
  id: string;
11258
12088
  createdAt: string;
11259
12089
  updatedAt: string;
11260
12090
  owner: string;
11261
12091
  title?: string | null | undefined;
12092
+ defaultMachineId?: string | null | undefined;
12093
+ defaultCloudId?: string | null | undefined;
12094
+ defaultRepositoryId?: string | null | undefined;
12095
+ defaultBaseBranch?: string | null | undefined;
11262
12096
  } | {
11263
12097
  type: "agent" | "human";
11264
12098
  id: string;
@@ -11343,14 +12177,56 @@ declare const SystemMessageSchema: z.ZodObject<{
11343
12177
  timestamp: string;
11344
12178
  eventId: string;
11345
12179
  }, {
11346
- 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";
12180
+ 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" | "task-added";
11347
12181
  data: {
12182
+ id: string;
12183
+ createdAt: string;
12184
+ state: string;
12185
+ machineId: string | null;
12186
+ cloudId: string | null;
12187
+ userId: string;
12188
+ chatId: string;
12189
+ customTitle: string | null;
12190
+ cwd: string | null;
12191
+ forceUserCwd: boolean | null;
12192
+ repositoryId: string | null;
12193
+ baseBranch: string | null;
12194
+ repositorySourceType: "temporary" | "directory" | "git-server" | null;
12195
+ dataEncryptionKey: string | null;
12196
+ agentId: string;
12197
+ parentTaskId: string | null;
12198
+ title: string | null;
12199
+ userCwd: string | null;
12200
+ updatedAt: string;
12201
+ workerStatus: "initializing" | "ready" | "running" | null;
12202
+ agentSessionId: string | null;
12203
+ pullRequestNumber: number | null;
12204
+ pullRequestUrl: string | null;
12205
+ pullRequestState: "open" | "closed" | "merged" | null;
12206
+ pullRequestStateChangedAt: string | null;
12207
+ gitStats: {
12208
+ totalInsertions: number;
12209
+ totalDeletions: number;
12210
+ files: {
12211
+ path: string;
12212
+ insertions: number;
12213
+ deletions: number;
12214
+ }[];
12215
+ } | null;
12216
+ totalDuration: number | null;
12217
+ rootTaskId: string | null;
12218
+ type?: "chat" | "work" | undefined;
12219
+ } | {
11348
12220
  type: "direct" | "group";
11349
12221
  id: string;
11350
12222
  createdAt: string;
11351
12223
  updatedAt: string;
11352
12224
  owner: string;
11353
12225
  title?: string | null | undefined;
12226
+ defaultMachineId?: string | null | undefined;
12227
+ defaultCloudId?: string | null | undefined;
12228
+ defaultRepositoryId?: string | null | undefined;
12229
+ defaultBaseBranch?: string | null | undefined;
11354
12230
  } | {
11355
12231
  type: "agent" | "human";
11356
12232
  id: string;
@@ -11436,7 +12312,7 @@ declare const SystemMessageSchema: z.ZodObject<{
11436
12312
  eventId: string;
11437
12313
  }>;
11438
12314
  type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
11439
- 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;
12315
+ type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
11440
12316
  type EventMap = {
11441
12317
  "app-alive": AppAliveEventData;
11442
12318
  "api-server-alive": ApiServerAliveEventData;
@@ -11448,6 +12324,8 @@ type EventMap = {
11448
12324
  "worker-exit": WorkerExitEventData;
11449
12325
  "worker-running": WorkerRunningEventData;
11450
12326
  "worker-status-request": WorkerStatusRequestEventData;
12327
+ "chat-workers-status-request": ChatWorkersStatusRequestEventData;
12328
+ "chat-workers-status-response": ChatWorkersStatusResponseEventData;
11451
12329
  "create-task": CreateTaskEventData;
11452
12330
  "resume-task": ResumeTaskEventData;
11453
12331
  "cancel-task": CancelTaskEventData;
@@ -11464,7 +12342,7 @@ type EventMap = {
11464
12342
  "deploy-agent": DeployAgentEventData;
11465
12343
  "deploy-agent-complete": DeployAgentCompleteEventData;
11466
12344
  "task-stopped": TaskStoppedEventData;
11467
- "sub-task-completed": SubTaskCompletedEventData;
12345
+ "sub-task-result-updated": SubTaskResultUpdatedEventData;
11468
12346
  "associate-repo": AssociateRepoEventData;
11469
12347
  "system-message": SystemMessageEventData;
11470
12348
  "credit-exhausted": CreditExhaustedEventData;
@@ -11521,6 +12399,10 @@ declare function getAgentContext(): AgentContext;
11521
12399
  * @see cli/src/worker/agentContext.ts - AgentContextImpl (real RPC implementation)
11522
12400
  */
11523
12401
  interface AgentrixContext {
12402
+ /**
12403
+ * Print execution log in log files
12404
+ */
12405
+ log(str: string): void;
11524
12406
  /**
11525
12407
  * Get the current workspace directory
11526
12408
  */
@@ -11642,6 +12524,21 @@ interface AgentrixContext {
11642
12524
  findSubTaskByAgent(agentId: string): Promise<{
11643
12525
  taskId: string;
11644
12526
  } | null>;
12527
+ /**
12528
+ * Upload a file to the agent's storage
12529
+ */
12530
+ uploadFile(params: {
12531
+ name: string;
12532
+ path: string;
12533
+ contentType?: string;
12534
+ visibility?: 'public' | 'private';
12535
+ }): Promise<{
12536
+ fileId: string;
12537
+ name: string;
12538
+ size: number;
12539
+ contentType: string;
12540
+ url: string;
12541
+ }>;
11645
12542
  }
11646
12543
 
11647
12544
  /**
@@ -12056,5 +12953,89 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
12056
12953
  declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
12057
12954
  declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
12058
12955
 
12059
- 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, DeployAgentCompleteEventSchema, DeployAgentEventSchema, 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, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, 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, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, 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 };
12060
- 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, DeployAgentCompleteEventData, DeployAgentEventData, 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, PublishDraftAgentRequest, PublishDraftAgentResponse, 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, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
12956
+ /**
12957
+ * Preview detection types - platform-agnostic
12958
+ * Used by both CLI (Node.js fs) and App (HTTP API)
12959
+ *
12960
+ * Note: PreviewMetadata, PreviewProjectType, and PreviewMethod are defined in ../websocket/events.ts
12961
+ * This file only defines the FileSystemAdapter interface
12962
+ */
12963
+ /**
12964
+ * File system abstraction for platform-agnostic detection
12965
+ * CLI provides fs-based implementation, App provides API-based implementation
12966
+ */
12967
+ interface FileSystemAdapter {
12968
+ /**
12969
+ * List all files in directory recursively (relative paths)
12970
+ * @param maxDepth - Maximum recursion depth (default: 3)
12971
+ * @returns Array of relative file paths
12972
+ */
12973
+ listFiles(maxDepth?: number): Promise<string[]>;
12974
+ /**
12975
+ * Read file content as string
12976
+ * @param path - Relative file path
12977
+ * @returns File content or null if not exists
12978
+ */
12979
+ readFile(path: string): Promise<string | null>;
12980
+ /**
12981
+ * Check if file exists
12982
+ * @param path - Relative file path
12983
+ */
12984
+ fileExists(path: string): Promise<boolean>;
12985
+ }
12986
+
12987
+ /**
12988
+ * Configuration for preview detection - merged from CLI and App
12989
+ * Contains all file patterns and extensions for project type detection
12990
+ */
12991
+ /**
12992
+ * Static file extensions for gallery mode
12993
+ * Merged from CLI and App implementations
12994
+ */
12995
+ declare const STATIC_FILE_EXTENSIONS: {
12996
+ readonly images: readonly [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp", ".svg", ".ico"];
12997
+ readonly videos: readonly [".mp4", ".mov", ".avi", ".webm", ".mkv", ".m4v", ".flv", ".wmv"];
12998
+ readonly documents: readonly [".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx"];
12999
+ readonly text: readonly [".txt", ".md", ".markdown", ".json", ".yaml", ".yml", ".csv", ".xml"];
13000
+ readonly html: readonly [".html", ".htm"];
13001
+ };
13002
+ /**
13003
+ * Directories to ignore during file scanning
13004
+ */
13005
+ declare const IGNORED_DIRECTORIES: string[];
13006
+ /**
13007
+ * Entry file paths for each project type (merged from CLI and App)
13008
+ * Ordered by priority (most specific first)
13009
+ */
13010
+ declare const ENTRY_FILE_PATTERNS: {
13011
+ readonly html: readonly ["index.html", "src/index.html"];
13012
+ readonly react: readonly ["index.html", "public/index.html", "src/index.tsx", "src/index.jsx", "src/index.ts", "src/index.js", "src/main.tsx", "src/main.ts", "src/main.jsx", "src/main.js", "src/App.tsx", "src/App.jsx", "index.tsx", "index.jsx", "index.js", "App.tsx", "App.jsx"];
13013
+ readonly vue: readonly ["index.html", "src/main.ts", "src/main.js", "src/index.ts", "src/index.js", "src/App.vue", "App.vue"];
13014
+ readonly vite: readonly ["index.html", "src/main.tsx", "src/main.ts", "src/main.jsx", "src/main.js", "src/index.tsx", "src/index.ts", "src/App.tsx", "src/App.jsx"];
13015
+ readonly nextjs: readonly ["pages/index.tsx", "pages/index.jsx", "app/page.tsx", "src/pages/index.tsx", "src/app/page.tsx"];
13016
+ };
13017
+ /**
13018
+ * Config file patterns for framework detection
13019
+ */
13020
+ declare const CONFIG_FILES: {
13021
+ readonly vite: readonly ["vite.config.js", "vite.config.ts", "vite.config.mjs"];
13022
+ readonly nextjs: readonly ["next.config.js", "next.config.mjs", "next.config.ts"];
13023
+ };
13024
+ /**
13025
+ * Dependencies that should be included in preview metadata
13026
+ * Only relevant packages are sent to reduce payload size
13027
+ */
13028
+ declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vite", "next", "tailwindcss", "@vitejs/plugin-react", "@vitejs/plugin-vue"];
13029
+
13030
+ /**
13031
+ * Platform-agnostic preview detection logic
13032
+ * Works with both Node.js fs (CLI) and HTTP API (App)
13033
+ */
13034
+
13035
+ /**
13036
+ * Main entry point: detect preview metadata from file system
13037
+ */
13038
+ declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
13039
+
13040
+ 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, CONFIG_FILES, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ChatWorkersStatusRequestSchema, ChatWorkersStatusResponseSchema, 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, DeployAgentCompleteEventSchema, DeployAgentEventSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, 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, IGNORED_DIRECTORIES, 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, PreviewMetadataSchema, PreviewMethodSchema, PreviewProjectTypeSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, QueryEventsRequestSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, STATIC_FILE_EXTENSIONS, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskArtifactsSummarySchema, SubTaskGitStatsSchema, SubTaskResultUpdatedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkerStatusValueSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, 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 };
13041
+ 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, ChatWorkersStatusRequestEventData, ChatWorkersStatusResponseEventData, 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, DeployAgentCompleteEventData, DeployAgentEventData, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileSystemAdapter, 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, PreviewMetadata, PreviewMethod, PreviewProjectType, ProjectDirectoryResponse, ProjectEntry, PublishDraftAgentRequest, PublishDraftAgentResponse, 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, SubTaskArtifactsSummary, SubTaskGitStats, SubTaskResultUpdatedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerStatusValue, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };