@agentrix/shared 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +90 -32
- package/dist/index.d.cts +355 -192
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
277
277
|
avatarUrl: string;
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
encryptedSecret: string | null;
|
|
280
281
|
id: string;
|
|
281
282
|
username: string;
|
|
282
283
|
email: string | null;
|
|
283
284
|
avatar: string | null;
|
|
284
|
-
encryptedSecret: string | null;
|
|
285
285
|
secretSalt: string | null;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
291
291
|
avatarUrl: string;
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
}, {
|
|
294
|
+
encryptedSecret: string | null;
|
|
294
295
|
id: string;
|
|
295
296
|
username: string;
|
|
296
297
|
email: string | null;
|
|
297
298
|
avatar: string | null;
|
|
298
|
-
encryptedSecret: string | null;
|
|
299
299
|
secretSalt: string | null;
|
|
300
300
|
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
307
307
|
}>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
user: {
|
|
310
|
+
encryptedSecret: string | null;
|
|
310
311
|
id: string;
|
|
311
312
|
username: string;
|
|
312
313
|
email: string | null;
|
|
313
314
|
avatar: string | null;
|
|
314
|
-
encryptedSecret: string | null;
|
|
315
315
|
secretSalt: string | null;
|
|
316
316
|
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
323
323
|
};
|
|
324
324
|
}, {
|
|
325
325
|
user: {
|
|
326
|
+
encryptedSecret: string | null;
|
|
326
327
|
id: string;
|
|
327
328
|
username: string;
|
|
328
329
|
email: string | null;
|
|
329
330
|
avatar: string | null;
|
|
330
|
-
encryptedSecret: string | null;
|
|
331
331
|
secretSalt: string | null;
|
|
332
332
|
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
@@ -593,13 +593,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
|
|
|
593
593
|
token: z.ZodString;
|
|
594
594
|
content: z.ZodString;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
|
-
id: string;
|
|
597
596
|
token: string;
|
|
597
|
+
id: string;
|
|
598
598
|
state: "authorized";
|
|
599
599
|
content: string;
|
|
600
600
|
}, {
|
|
601
|
-
id: string;
|
|
602
601
|
token: string;
|
|
602
|
+
id: string;
|
|
603
603
|
state: "authorized";
|
|
604
604
|
content: string;
|
|
605
605
|
}>;
|
|
@@ -788,6 +788,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
788
788
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
789
789
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
790
790
|
cwd: z.ZodOptional<z.ZodString>;
|
|
791
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
791
792
|
machineId: z.ZodOptional<z.ZodString>;
|
|
792
793
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
793
794
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -801,6 +802,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
801
802
|
cloudId?: string | undefined;
|
|
802
803
|
encryptedMessage?: string | undefined;
|
|
803
804
|
cwd?: string | undefined;
|
|
805
|
+
forceUserCwd?: boolean | undefined;
|
|
804
806
|
repositoryId?: string | undefined;
|
|
805
807
|
baseBranch?: string | undefined;
|
|
806
808
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -812,6 +814,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
812
814
|
cloudId?: string | undefined;
|
|
813
815
|
encryptedMessage?: string | undefined;
|
|
814
816
|
cwd?: string | undefined;
|
|
817
|
+
forceUserCwd?: boolean | undefined;
|
|
815
818
|
repositoryId?: string | undefined;
|
|
816
819
|
baseBranch?: string | undefined;
|
|
817
820
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -823,6 +826,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
823
826
|
cloudId?: string | undefined;
|
|
824
827
|
encryptedMessage?: string | undefined;
|
|
825
828
|
cwd?: string | undefined;
|
|
829
|
+
forceUserCwd?: boolean | undefined;
|
|
826
830
|
repositoryId?: string | undefined;
|
|
827
831
|
baseBranch?: string | undefined;
|
|
828
832
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -834,6 +838,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
834
838
|
cloudId?: string | undefined;
|
|
835
839
|
encryptedMessage?: string | undefined;
|
|
836
840
|
cwd?: string | undefined;
|
|
841
|
+
forceUserCwd?: boolean | undefined;
|
|
837
842
|
repositoryId?: string | undefined;
|
|
838
843
|
baseBranch?: string | undefined;
|
|
839
844
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -845,6 +850,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
845
850
|
cloudId?: string | undefined;
|
|
846
851
|
encryptedMessage?: string | undefined;
|
|
847
852
|
cwd?: string | undefined;
|
|
853
|
+
forceUserCwd?: boolean | undefined;
|
|
848
854
|
repositoryId?: string | undefined;
|
|
849
855
|
baseBranch?: string | undefined;
|
|
850
856
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -856,6 +862,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
856
862
|
cloudId?: string | undefined;
|
|
857
863
|
encryptedMessage?: string | undefined;
|
|
858
864
|
cwd?: string | undefined;
|
|
865
|
+
forceUserCwd?: boolean | undefined;
|
|
859
866
|
repositoryId?: string | undefined;
|
|
860
867
|
baseBranch?: string | undefined;
|
|
861
868
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -867,6 +874,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
867
874
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
868
875
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
869
876
|
cwd: z.ZodOptional<z.ZodString>;
|
|
877
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
870
878
|
machineId: z.ZodOptional<z.ZodString>;
|
|
871
879
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
872
880
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
@@ -880,6 +888,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
880
888
|
cloudId?: string | undefined;
|
|
881
889
|
encryptedMessage?: string | undefined;
|
|
882
890
|
cwd?: string | undefined;
|
|
891
|
+
forceUserCwd?: boolean | undefined;
|
|
883
892
|
repositoryId?: string | undefined;
|
|
884
893
|
baseBranch?: string | undefined;
|
|
885
894
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -891,6 +900,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
891
900
|
cloudId?: string | undefined;
|
|
892
901
|
encryptedMessage?: string | undefined;
|
|
893
902
|
cwd?: string | undefined;
|
|
903
|
+
forceUserCwd?: boolean | undefined;
|
|
894
904
|
repositoryId?: string | undefined;
|
|
895
905
|
baseBranch?: string | undefined;
|
|
896
906
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -902,6 +912,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
902
912
|
cloudId?: string | undefined;
|
|
903
913
|
encryptedMessage?: string | undefined;
|
|
904
914
|
cwd?: string | undefined;
|
|
915
|
+
forceUserCwd?: boolean | undefined;
|
|
905
916
|
repositoryId?: string | undefined;
|
|
906
917
|
baseBranch?: string | undefined;
|
|
907
918
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -913,6 +924,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
913
924
|
cloudId?: string | undefined;
|
|
914
925
|
encryptedMessage?: string | undefined;
|
|
915
926
|
cwd?: string | undefined;
|
|
927
|
+
forceUserCwd?: boolean | undefined;
|
|
916
928
|
repositoryId?: string | undefined;
|
|
917
929
|
baseBranch?: string | undefined;
|
|
918
930
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -924,6 +936,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
924
936
|
cloudId?: string | undefined;
|
|
925
937
|
encryptedMessage?: string | undefined;
|
|
926
938
|
cwd?: string | undefined;
|
|
939
|
+
forceUserCwd?: boolean | undefined;
|
|
927
940
|
repositoryId?: string | undefined;
|
|
928
941
|
baseBranch?: string | undefined;
|
|
929
942
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -935,6 +948,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
935
948
|
cloudId?: string | undefined;
|
|
936
949
|
encryptedMessage?: string | undefined;
|
|
937
950
|
cwd?: string | undefined;
|
|
951
|
+
forceUserCwd?: boolean | undefined;
|
|
938
952
|
repositoryId?: string | undefined;
|
|
939
953
|
baseBranch?: string | undefined;
|
|
940
954
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -955,6 +969,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
955
969
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
956
970
|
title: z.ZodNullable<z.ZodString>;
|
|
957
971
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
972
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
958
973
|
createdAt: z.ZodString;
|
|
959
974
|
updatedAt: z.ZodString;
|
|
960
975
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -965,6 +980,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
965
980
|
userId: string;
|
|
966
981
|
taskId: string;
|
|
967
982
|
chatId: string;
|
|
983
|
+
forceUserCwd: boolean | null;
|
|
968
984
|
repositoryId: string | null;
|
|
969
985
|
baseBranch: string | null;
|
|
970
986
|
agentId: string;
|
|
@@ -979,6 +995,7 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
979
995
|
userId: string;
|
|
980
996
|
taskId: string;
|
|
981
997
|
chatId: string;
|
|
998
|
+
forceUserCwd: boolean | null;
|
|
982
999
|
repositoryId: string | null;
|
|
983
1000
|
baseBranch: string | null;
|
|
984
1001
|
agentId: string;
|
|
@@ -1007,6 +1024,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1007
1024
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1008
1025
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1009
1026
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
1027
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
1010
1028
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1011
1029
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1012
1030
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1057,6 +1075,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1057
1075
|
userId: string;
|
|
1058
1076
|
chatId: string;
|
|
1059
1077
|
cwd: string | null;
|
|
1078
|
+
forceUserCwd: boolean | null;
|
|
1060
1079
|
repositoryId: string | null;
|
|
1061
1080
|
baseBranch: string | null;
|
|
1062
1081
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1091,6 +1110,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1091
1110
|
userId: string;
|
|
1092
1111
|
chatId: string;
|
|
1093
1112
|
cwd: string | null;
|
|
1113
|
+
forceUserCwd: boolean | null;
|
|
1094
1114
|
repositoryId: string | null;
|
|
1095
1115
|
baseBranch: string | null;
|
|
1096
1116
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1159,6 +1179,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1159
1179
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1160
1180
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1161
1181
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
1182
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
1162
1183
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1163
1184
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1164
1185
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1209,6 +1230,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1209
1230
|
userId: string;
|
|
1210
1231
|
chatId: string;
|
|
1211
1232
|
cwd: string | null;
|
|
1233
|
+
forceUserCwd: boolean | null;
|
|
1212
1234
|
repositoryId: string | null;
|
|
1213
1235
|
baseBranch: string | null;
|
|
1214
1236
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1243,6 +1265,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1243
1265
|
userId: string;
|
|
1244
1266
|
chatId: string;
|
|
1245
1267
|
cwd: string | null;
|
|
1268
|
+
forceUserCwd: boolean | null;
|
|
1246
1269
|
repositoryId: string | null;
|
|
1247
1270
|
baseBranch: string | null;
|
|
1248
1271
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1281,6 +1304,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1281
1304
|
userId: string;
|
|
1282
1305
|
chatId: string;
|
|
1283
1306
|
cwd: string | null;
|
|
1307
|
+
forceUserCwd: boolean | null;
|
|
1284
1308
|
repositoryId: string | null;
|
|
1285
1309
|
baseBranch: string | null;
|
|
1286
1310
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1319,6 +1343,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1319
1343
|
userId: string;
|
|
1320
1344
|
chatId: string;
|
|
1321
1345
|
cwd: string | null;
|
|
1346
|
+
forceUserCwd: boolean | null;
|
|
1322
1347
|
repositoryId: string | null;
|
|
1323
1348
|
baseBranch: string | null;
|
|
1324
1349
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1598,21 +1623,18 @@ type ProjectDirectoryResponse = z.infer<typeof ProjectDirectoryResponseSchema>;
|
|
|
1598
1623
|
declare const QueryEventsRequestSchema: z.ZodObject<{
|
|
1599
1624
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1600
1625
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
1601
|
-
before: z.ZodOptional<z.
|
|
1602
|
-
after: z.ZodOptional<z.
|
|
1603
|
-
eventType: z.ZodOptional<z.ZodEnum<["task-message", "task-artifacts-updated"]>>;
|
|
1626
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
1627
|
+
after: z.ZodOptional<z.ZodNumber>;
|
|
1604
1628
|
}, "strip", z.ZodTypeAny, {
|
|
1605
1629
|
limit?: number | undefined;
|
|
1606
1630
|
offset?: number | undefined;
|
|
1607
|
-
before?:
|
|
1608
|
-
after?:
|
|
1609
|
-
eventType?: "task-message" | "task-artifacts-updated" | undefined;
|
|
1631
|
+
before?: number | undefined;
|
|
1632
|
+
after?: number | undefined;
|
|
1610
1633
|
}, {
|
|
1611
1634
|
limit?: number | undefined;
|
|
1612
1635
|
offset?: number | undefined;
|
|
1613
|
-
before?:
|
|
1614
|
-
after?:
|
|
1615
|
-
eventType?: "task-message" | "task-artifacts-updated" | undefined;
|
|
1636
|
+
before?: number | undefined;
|
|
1637
|
+
after?: number | undefined;
|
|
1616
1638
|
}>;
|
|
1617
1639
|
type QueryEventsRequest = z.infer<typeof QueryEventsRequestSchema>;
|
|
1618
1640
|
/**
|
|
@@ -1621,7 +1643,9 @@ type QueryEventsRequest = z.infer<typeof QueryEventsRequestSchema>;
|
|
|
1621
1643
|
interface TaskEvent {
|
|
1622
1644
|
id: string;
|
|
1623
1645
|
taskId: string;
|
|
1646
|
+
chatId: string;
|
|
1624
1647
|
eventId: string;
|
|
1648
|
+
sequence: number;
|
|
1625
1649
|
eventType: string;
|
|
1626
1650
|
eventData: any;
|
|
1627
1651
|
createdAt: string;
|
|
@@ -1634,6 +1658,23 @@ interface QueryEventsResponse {
|
|
|
1634
1658
|
total: number;
|
|
1635
1659
|
hasMore: boolean;
|
|
1636
1660
|
}
|
|
1661
|
+
/**
|
|
1662
|
+
* POST /v1/tasks/:taskId/events/fill - Request schema
|
|
1663
|
+
*/
|
|
1664
|
+
declare const FillEventsRequestSchema: z.ZodObject<{
|
|
1665
|
+
sequences: z.ZodArray<z.ZodNumber, "many">;
|
|
1666
|
+
}, "strip", z.ZodTypeAny, {
|
|
1667
|
+
sequences: number[];
|
|
1668
|
+
}, {
|
|
1669
|
+
sequences: number[];
|
|
1670
|
+
}>;
|
|
1671
|
+
type FillEventsRequest = z.infer<typeof FillEventsRequestSchema>;
|
|
1672
|
+
/**
|
|
1673
|
+
* POST /v1/tasks/:taskId/events/fill - Response schema
|
|
1674
|
+
*/
|
|
1675
|
+
interface FillEventsResponse {
|
|
1676
|
+
events: TaskEvent[];
|
|
1677
|
+
}
|
|
1637
1678
|
/**
|
|
1638
1679
|
* POST /v1/tasks/:taskId/merge-request - Request schema
|
|
1639
1680
|
*
|
|
@@ -1806,6 +1847,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1806
1847
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1807
1848
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1808
1849
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
1850
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
1809
1851
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1810
1852
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1811
1853
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -1856,6 +1898,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1856
1898
|
userId: string;
|
|
1857
1899
|
chatId: string;
|
|
1858
1900
|
cwd: string | null;
|
|
1901
|
+
forceUserCwd: boolean | null;
|
|
1859
1902
|
repositoryId: string | null;
|
|
1860
1903
|
baseBranch: string | null;
|
|
1861
1904
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1890,6 +1933,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1890
1933
|
userId: string;
|
|
1891
1934
|
chatId: string;
|
|
1892
1935
|
cwd: string | null;
|
|
1936
|
+
forceUserCwd: boolean | null;
|
|
1893
1937
|
repositoryId: string | null;
|
|
1894
1938
|
baseBranch: string | null;
|
|
1895
1939
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1927,6 +1971,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1927
1971
|
userId: string;
|
|
1928
1972
|
chatId: string;
|
|
1929
1973
|
cwd: string | null;
|
|
1974
|
+
forceUserCwd: boolean | null;
|
|
1930
1975
|
repositoryId: string | null;
|
|
1931
1976
|
baseBranch: string | null;
|
|
1932
1977
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -1964,6 +2009,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1964
2009
|
userId: string;
|
|
1965
2010
|
chatId: string;
|
|
1966
2011
|
cwd: string | null;
|
|
2012
|
+
forceUserCwd: boolean | null;
|
|
1967
2013
|
repositoryId: string | null;
|
|
1968
2014
|
baseBranch: string | null;
|
|
1969
2015
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2019,6 +2065,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2019
2065
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2020
2066
|
cwd: z.ZodNullable<z.ZodString>;
|
|
2021
2067
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
2068
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
2022
2069
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2023
2070
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2024
2071
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -2069,6 +2116,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2069
2116
|
userId: string;
|
|
2070
2117
|
chatId: string;
|
|
2071
2118
|
cwd: string | null;
|
|
2119
|
+
forceUserCwd: boolean | null;
|
|
2072
2120
|
repositoryId: string | null;
|
|
2073
2121
|
baseBranch: string | null;
|
|
2074
2122
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2103,6 +2151,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2103
2151
|
userId: string;
|
|
2104
2152
|
chatId: string;
|
|
2105
2153
|
cwd: string | null;
|
|
2154
|
+
forceUserCwd: boolean | null;
|
|
2106
2155
|
repositoryId: string | null;
|
|
2107
2156
|
baseBranch: string | null;
|
|
2108
2157
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2140,6 +2189,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2140
2189
|
userId: string;
|
|
2141
2190
|
chatId: string;
|
|
2142
2191
|
cwd: string | null;
|
|
2192
|
+
forceUserCwd: boolean | null;
|
|
2143
2193
|
repositoryId: string | null;
|
|
2144
2194
|
baseBranch: string | null;
|
|
2145
2195
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2177,6 +2227,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2177
2227
|
userId: string;
|
|
2178
2228
|
chatId: string;
|
|
2179
2229
|
cwd: string | null;
|
|
2230
|
+
forceUserCwd: boolean | null;
|
|
2180
2231
|
repositoryId: string | null;
|
|
2181
2232
|
baseBranch: string | null;
|
|
2182
2233
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2238,6 +2289,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2238
2289
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2239
2290
|
cwd: z.ZodNullable<z.ZodString>;
|
|
2240
2291
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
2292
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
2241
2293
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2242
2294
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2243
2295
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -2288,6 +2340,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2288
2340
|
userId: string;
|
|
2289
2341
|
chatId: string;
|
|
2290
2342
|
cwd: string | null;
|
|
2343
|
+
forceUserCwd: boolean | null;
|
|
2291
2344
|
repositoryId: string | null;
|
|
2292
2345
|
baseBranch: string | null;
|
|
2293
2346
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2322,6 +2375,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2322
2375
|
userId: string;
|
|
2323
2376
|
chatId: string;
|
|
2324
2377
|
cwd: string | null;
|
|
2378
|
+
forceUserCwd: boolean | null;
|
|
2325
2379
|
repositoryId: string | null;
|
|
2326
2380
|
baseBranch: string | null;
|
|
2327
2381
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2359,6 +2413,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2359
2413
|
userId: string;
|
|
2360
2414
|
chatId: string;
|
|
2361
2415
|
cwd: string | null;
|
|
2416
|
+
forceUserCwd: boolean | null;
|
|
2362
2417
|
repositoryId: string | null;
|
|
2363
2418
|
baseBranch: string | null;
|
|
2364
2419
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2396,6 +2451,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2396
2451
|
userId: string;
|
|
2397
2452
|
chatId: string;
|
|
2398
2453
|
cwd: string | null;
|
|
2454
|
+
forceUserCwd: boolean | null;
|
|
2399
2455
|
repositoryId: string | null;
|
|
2400
2456
|
baseBranch: string | null;
|
|
2401
2457
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -2664,6 +2720,23 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2664
2720
|
}[];
|
|
2665
2721
|
}>;
|
|
2666
2722
|
type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
|
|
2723
|
+
/**
|
|
2724
|
+
* GET /v1/chats - Query parameters schema
|
|
2725
|
+
*/
|
|
2726
|
+
declare const ListChatsQuerySchema: z.ZodObject<{
|
|
2727
|
+
before: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
after: z.ZodOptional<z.ZodString>;
|
|
2729
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2730
|
+
}, "strip", z.ZodTypeAny, {
|
|
2731
|
+
limit?: number | undefined;
|
|
2732
|
+
before?: string | undefined;
|
|
2733
|
+
after?: string | undefined;
|
|
2734
|
+
}, {
|
|
2735
|
+
limit?: number | undefined;
|
|
2736
|
+
before?: string | undefined;
|
|
2737
|
+
after?: string | undefined;
|
|
2738
|
+
}>;
|
|
2739
|
+
type ListChatsQuery = z.infer<typeof ListChatsQuerySchema>;
|
|
2667
2740
|
/**
|
|
2668
2741
|
* GET /v1/chats - Response schema
|
|
2669
2742
|
*/
|
|
@@ -2731,7 +2804,9 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2731
2804
|
role: string;
|
|
2732
2805
|
}[];
|
|
2733
2806
|
}>, "many">;
|
|
2807
|
+
hasMore: z.ZodBoolean;
|
|
2734
2808
|
}, "strip", z.ZodTypeAny, {
|
|
2809
|
+
hasMore: boolean;
|
|
2735
2810
|
chats: {
|
|
2736
2811
|
type: "direct" | "group";
|
|
2737
2812
|
id: string;
|
|
@@ -2749,6 +2824,7 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2749
2824
|
}[];
|
|
2750
2825
|
}[];
|
|
2751
2826
|
}, {
|
|
2827
|
+
hasMore: boolean;
|
|
2752
2828
|
chats: {
|
|
2753
2829
|
type: "direct" | "group";
|
|
2754
2830
|
id: string;
|
|
@@ -3014,6 +3090,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3014
3090
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
3015
3091
|
cwd: z.ZodNullable<z.ZodString>;
|
|
3016
3092
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
3093
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
3017
3094
|
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
3018
3095
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
3019
3096
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -3064,6 +3141,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3064
3141
|
userId: string;
|
|
3065
3142
|
chatId: string;
|
|
3066
3143
|
cwd: string | null;
|
|
3144
|
+
forceUserCwd: boolean | null;
|
|
3067
3145
|
repositoryId: string | null;
|
|
3068
3146
|
baseBranch: string | null;
|
|
3069
3147
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3098,6 +3176,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3098
3176
|
userId: string;
|
|
3099
3177
|
chatId: string;
|
|
3100
3178
|
cwd: string | null;
|
|
3179
|
+
forceUserCwd: boolean | null;
|
|
3101
3180
|
repositoryId: string | null;
|
|
3102
3181
|
baseBranch: string | null;
|
|
3103
3182
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3134,6 +3213,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3134
3213
|
userId: string;
|
|
3135
3214
|
chatId: string;
|
|
3136
3215
|
cwd: string | null;
|
|
3216
|
+
forceUserCwd: boolean | null;
|
|
3137
3217
|
repositoryId: string | null;
|
|
3138
3218
|
baseBranch: string | null;
|
|
3139
3219
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3170,6 +3250,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3170
3250
|
userId: string;
|
|
3171
3251
|
chatId: string;
|
|
3172
3252
|
cwd: string | null;
|
|
3253
|
+
forceUserCwd: boolean | null;
|
|
3173
3254
|
repositoryId: string | null;
|
|
3174
3255
|
baseBranch: string | null;
|
|
3175
3256
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
@@ -3569,9 +3650,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3569
3650
|
}>>;
|
|
3570
3651
|
}, "strip", z.ZodTypeAny, {
|
|
3571
3652
|
type: "claude" | "codex";
|
|
3653
|
+
signature: string | null;
|
|
3572
3654
|
id: string;
|
|
3573
3655
|
avatar: string | null;
|
|
3574
|
-
signature: string | null;
|
|
3575
3656
|
userId: string;
|
|
3576
3657
|
permissions: {
|
|
3577
3658
|
role: string;
|
|
@@ -3609,9 +3690,9 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3609
3690
|
} | null;
|
|
3610
3691
|
}, {
|
|
3611
3692
|
type: "claude" | "codex";
|
|
3693
|
+
signature: string | null;
|
|
3612
3694
|
id: string;
|
|
3613
3695
|
avatar: string | null;
|
|
3614
|
-
signature: string | null;
|
|
3615
3696
|
userId: string;
|
|
3616
3697
|
permissions: {
|
|
3617
3698
|
role: string;
|
|
@@ -3777,9 +3858,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3777
3858
|
}>>;
|
|
3778
3859
|
}, "strip", z.ZodTypeAny, {
|
|
3779
3860
|
type: "claude" | "codex";
|
|
3861
|
+
signature: string | null;
|
|
3780
3862
|
id: string;
|
|
3781
3863
|
avatar: string | null;
|
|
3782
|
-
signature: string | null;
|
|
3783
3864
|
userId: string;
|
|
3784
3865
|
permissions: {
|
|
3785
3866
|
role: string;
|
|
@@ -3817,9 +3898,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3817
3898
|
} | null;
|
|
3818
3899
|
}, {
|
|
3819
3900
|
type: "claude" | "codex";
|
|
3901
|
+
signature: string | null;
|
|
3820
3902
|
id: string;
|
|
3821
3903
|
avatar: string | null;
|
|
3822
|
-
signature: string | null;
|
|
3823
3904
|
userId: string;
|
|
3824
3905
|
permissions: {
|
|
3825
3906
|
role: string;
|
|
@@ -3859,9 +3940,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3859
3940
|
}, "strip", z.ZodTypeAny, {
|
|
3860
3941
|
agents: {
|
|
3861
3942
|
type: "claude" | "codex";
|
|
3943
|
+
signature: string | null;
|
|
3862
3944
|
id: string;
|
|
3863
3945
|
avatar: string | null;
|
|
3864
|
-
signature: string | null;
|
|
3865
3946
|
userId: string;
|
|
3866
3947
|
permissions: {
|
|
3867
3948
|
role: string;
|
|
@@ -3901,9 +3982,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3901
3982
|
}, {
|
|
3902
3983
|
agents: {
|
|
3903
3984
|
type: "claude" | "codex";
|
|
3985
|
+
signature: string | null;
|
|
3904
3986
|
id: string;
|
|
3905
3987
|
avatar: string | null;
|
|
3906
|
-
signature: string | null;
|
|
3907
3988
|
userId: string;
|
|
3908
3989
|
permissions: {
|
|
3909
3990
|
role: string;
|
|
@@ -4069,9 +4150,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4069
4150
|
}>>;
|
|
4070
4151
|
}, "strip", z.ZodTypeAny, {
|
|
4071
4152
|
type: "claude" | "codex";
|
|
4153
|
+
signature: string | null;
|
|
4072
4154
|
id: string;
|
|
4073
4155
|
avatar: string | null;
|
|
4074
|
-
signature: string | null;
|
|
4075
4156
|
userId: string;
|
|
4076
4157
|
permissions: {
|
|
4077
4158
|
role: string;
|
|
@@ -4109,9 +4190,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4109
4190
|
} | null;
|
|
4110
4191
|
}, {
|
|
4111
4192
|
type: "claude" | "codex";
|
|
4193
|
+
signature: string | null;
|
|
4112
4194
|
id: string;
|
|
4113
4195
|
avatar: string | null;
|
|
4114
|
-
signature: string | null;
|
|
4115
4196
|
userId: string;
|
|
4116
4197
|
permissions: {
|
|
4117
4198
|
role: string;
|
|
@@ -4265,8 +4346,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4265
4346
|
guildMsg: string;
|
|
4266
4347
|
placeholderMsg: string;
|
|
4267
4348
|
supportLocal: boolean;
|
|
4268
|
-
avatar?: string | undefined;
|
|
4269
4349
|
signature?: string | undefined;
|
|
4350
|
+
avatar?: string | undefined;
|
|
4270
4351
|
description?: string | undefined;
|
|
4271
4352
|
gitRepoId?: string | undefined;
|
|
4272
4353
|
config?: {
|
|
@@ -4293,8 +4374,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4293
4374
|
}, {
|
|
4294
4375
|
type: "claude" | "codex";
|
|
4295
4376
|
name: string;
|
|
4296
|
-
avatar?: string | undefined;
|
|
4297
4377
|
signature?: string | undefined;
|
|
4378
|
+
avatar?: string | undefined;
|
|
4298
4379
|
description?: string | undefined;
|
|
4299
4380
|
guildMsg?: string | undefined;
|
|
4300
4381
|
placeholderMsg?: string | undefined;
|
|
@@ -4450,9 +4531,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4450
4531
|
}>>;
|
|
4451
4532
|
}, "strip", z.ZodTypeAny, {
|
|
4452
4533
|
type: "claude" | "codex";
|
|
4534
|
+
signature: string | null;
|
|
4453
4535
|
id: string;
|
|
4454
4536
|
avatar: string | null;
|
|
4455
|
-
signature: string | null;
|
|
4456
4537
|
userId: string;
|
|
4457
4538
|
permissions: {
|
|
4458
4539
|
role: string;
|
|
@@ -4490,9 +4571,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4490
4571
|
} | null;
|
|
4491
4572
|
}, {
|
|
4492
4573
|
type: "claude" | "codex";
|
|
4574
|
+
signature: string | null;
|
|
4493
4575
|
id: string;
|
|
4494
4576
|
avatar: string | null;
|
|
4495
|
-
signature: string | null;
|
|
4496
4577
|
userId: string;
|
|
4497
4578
|
permissions: {
|
|
4498
4579
|
role: string;
|
|
@@ -4642,8 +4723,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4642
4723
|
}>>>;
|
|
4643
4724
|
}, "strip", z.ZodTypeAny, {
|
|
4644
4725
|
type?: "claude" | "codex" | undefined;
|
|
4645
|
-
avatar?: string | null | undefined;
|
|
4646
4726
|
signature?: string | null | undefined;
|
|
4727
|
+
avatar?: string | null | undefined;
|
|
4647
4728
|
name?: string | undefined;
|
|
4648
4729
|
description?: string | null | undefined;
|
|
4649
4730
|
guildMsg?: string | undefined;
|
|
@@ -4673,8 +4754,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4673
4754
|
} | null | undefined;
|
|
4674
4755
|
}, {
|
|
4675
4756
|
type?: "claude" | "codex" | undefined;
|
|
4676
|
-
avatar?: string | null | undefined;
|
|
4677
4757
|
signature?: string | null | undefined;
|
|
4758
|
+
avatar?: string | null | undefined;
|
|
4678
4759
|
name?: string | undefined;
|
|
4679
4760
|
description?: string | null | undefined;
|
|
4680
4761
|
guildMsg?: string | undefined;
|
|
@@ -4831,9 +4912,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4831
4912
|
}>>;
|
|
4832
4913
|
}, "strip", z.ZodTypeAny, {
|
|
4833
4914
|
type: "claude" | "codex";
|
|
4915
|
+
signature: string | null;
|
|
4834
4916
|
id: string;
|
|
4835
4917
|
avatar: string | null;
|
|
4836
|
-
signature: string | null;
|
|
4837
4918
|
userId: string;
|
|
4838
4919
|
permissions: {
|
|
4839
4920
|
role: string;
|
|
@@ -4871,9 +4952,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4871
4952
|
} | null;
|
|
4872
4953
|
}, {
|
|
4873
4954
|
type: "claude" | "codex";
|
|
4955
|
+
signature: string | null;
|
|
4874
4956
|
id: string;
|
|
4875
4957
|
avatar: string | null;
|
|
4876
|
-
signature: string | null;
|
|
4877
4958
|
userId: string;
|
|
4878
4959
|
permissions: {
|
|
4879
4960
|
role: string;
|
|
@@ -4928,7 +5009,7 @@ type DeleteAgentResponse = z.infer<typeof DeleteAgentResponseSchema>;
|
|
|
4928
5009
|
/**
|
|
4929
5010
|
* Deployment variable definition (from CLI tool's envVars)
|
|
4930
5011
|
*/
|
|
4931
|
-
declare const
|
|
5012
|
+
declare const EnvironmentVariableSchema: z.ZodObject<{
|
|
4932
5013
|
name: z.ZodString;
|
|
4933
5014
|
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
4934
5015
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4947,15 +5028,13 @@ declare const DeploymentVariableSchema: z.ZodObject<{
|
|
|
4947
5028
|
required?: boolean | undefined;
|
|
4948
5029
|
defaultValue?: string | undefined;
|
|
4949
5030
|
}>;
|
|
4950
|
-
type
|
|
5031
|
+
type EnvironmentVariable = z.infer<typeof EnvironmentVariableSchema>;
|
|
4951
5032
|
/**
|
|
4952
|
-
* Agent
|
|
5033
|
+
* Draft Agent config schema
|
|
4953
5034
|
* Separate from AgentCustomConfig for backward compatibility
|
|
4954
5035
|
*/
|
|
4955
|
-
declare const
|
|
4956
|
-
|
|
4957
|
-
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
4958
|
-
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5036
|
+
declare const DraftAgentConfigSchema: z.ZodObject<{
|
|
5037
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4959
5038
|
name: z.ZodString;
|
|
4960
5039
|
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
4961
5040
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5030,8 +5109,6 @@ declare const AgentBuilderConfigSchema: z.ZodObject<{
|
|
|
5030
5109
|
permissionCanMergePrDesc?: string | undefined;
|
|
5031
5110
|
}>>>;
|
|
5032
5111
|
}, "strip", z.ZodTypeAny, {
|
|
5033
|
-
guildMsg: string;
|
|
5034
|
-
placeholderMsg: string;
|
|
5035
5112
|
displayConfig?: Record<string, {
|
|
5036
5113
|
closed?: string | undefined;
|
|
5037
5114
|
merged?: string | undefined;
|
|
@@ -5051,7 +5128,7 @@ declare const AgentBuilderConfigSchema: z.ZodObject<{
|
|
|
5051
5128
|
permissionCanMergePr?: string | undefined;
|
|
5052
5129
|
permissionCanMergePrDesc?: string | undefined;
|
|
5053
5130
|
}> | undefined;
|
|
5054
|
-
|
|
5131
|
+
environmentSchema?: {
|
|
5055
5132
|
type: "string" | "number" | "boolean" | "secret";
|
|
5056
5133
|
name: string;
|
|
5057
5134
|
required: boolean;
|
|
@@ -5078,9 +5155,7 @@ declare const AgentBuilderConfigSchema: z.ZodObject<{
|
|
|
5078
5155
|
permissionCanMergePr?: string | undefined;
|
|
5079
5156
|
permissionCanMergePrDesc?: string | undefined;
|
|
5080
5157
|
}> | undefined;
|
|
5081
|
-
|
|
5082
|
-
placeholderMsg?: string | undefined;
|
|
5083
|
-
deploymentSchema?: {
|
|
5158
|
+
environmentSchema?: {
|
|
5084
5159
|
type: "string" | "number" | "boolean" | "secret";
|
|
5085
5160
|
name: string;
|
|
5086
5161
|
description?: string | undefined;
|
|
@@ -5088,12 +5163,12 @@ declare const AgentBuilderConfigSchema: z.ZodObject<{
|
|
|
5088
5163
|
defaultValue?: string | undefined;
|
|
5089
5164
|
}[] | undefined;
|
|
5090
5165
|
}>;
|
|
5091
|
-
type
|
|
5166
|
+
type DraftAgentConfig = z.infer<typeof DraftAgentConfigSchema>;
|
|
5092
5167
|
/**
|
|
5093
|
-
* Request schema for creating agent
|
|
5168
|
+
* Request schema for creating draft-agent
|
|
5094
5169
|
* Matches CLI tool's create_agent_in_db parameters
|
|
5095
5170
|
*/
|
|
5096
|
-
declare const
|
|
5171
|
+
declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
5097
5172
|
name: z.ZodString;
|
|
5098
5173
|
agentDir: z.ZodString;
|
|
5099
5174
|
type: z.ZodDefault<z.ZodEnum<["claude", "codex"]>>;
|
|
@@ -5120,12 +5195,14 @@ declare const CreateAgentBuilderRequestSchema: z.ZodObject<{
|
|
|
5120
5195
|
required?: boolean | undefined;
|
|
5121
5196
|
defaultValue?: string | undefined;
|
|
5122
5197
|
}>, "many">>;
|
|
5198
|
+
isUpdate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5123
5199
|
}, "strip", z.ZodTypeAny, {
|
|
5124
5200
|
type: "claude" | "codex";
|
|
5125
5201
|
userId: string;
|
|
5126
5202
|
taskId: string;
|
|
5127
5203
|
name: string;
|
|
5128
5204
|
agentDir: string;
|
|
5205
|
+
isUpdate: boolean;
|
|
5129
5206
|
avatar?: string | undefined;
|
|
5130
5207
|
description?: string | undefined;
|
|
5131
5208
|
envVars?: {
|
|
@@ -5150,12 +5227,41 @@ declare const CreateAgentBuilderRequestSchema: z.ZodObject<{
|
|
|
5150
5227
|
required?: boolean | undefined;
|
|
5151
5228
|
defaultValue?: string | undefined;
|
|
5152
5229
|
}[] | undefined;
|
|
5230
|
+
isUpdate?: boolean | undefined;
|
|
5153
5231
|
}>;
|
|
5154
|
-
type
|
|
5232
|
+
type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
5155
5233
|
/**
|
|
5156
|
-
*
|
|
5234
|
+
* Request schema for setting environment variable values
|
|
5157
5235
|
*/
|
|
5158
|
-
declare const
|
|
5236
|
+
declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
5237
|
+
ownerType: z.ZodEnum<["draft-agent", "agent", "machine", "cloud"]>;
|
|
5238
|
+
ownerId: z.ZodString;
|
|
5239
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5240
|
+
}, "strip", z.ZodTypeAny, {
|
|
5241
|
+
ownerType: "agent" | "draft-agent" | "machine" | "cloud";
|
|
5242
|
+
ownerId: string;
|
|
5243
|
+
variables: Record<string, string>;
|
|
5244
|
+
}, {
|
|
5245
|
+
ownerType: "agent" | "draft-agent" | "machine" | "cloud";
|
|
5246
|
+
ownerId: string;
|
|
5247
|
+
variables: Record<string, string>;
|
|
5248
|
+
}>;
|
|
5249
|
+
type SetEnvironmentVariablesRequest = z.infer<typeof SetEnvironmentVariablesRequestSchema>;
|
|
5250
|
+
/**
|
|
5251
|
+
* Response schema for getting environment variable values
|
|
5252
|
+
*/
|
|
5253
|
+
declare const GetEnvironmentVariablesResponseSchema: z.ZodObject<{
|
|
5254
|
+
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5255
|
+
}, "strip", z.ZodTypeAny, {
|
|
5256
|
+
variables: Record<string, string>;
|
|
5257
|
+
}, {
|
|
5258
|
+
variables: Record<string, string>;
|
|
5259
|
+
}>;
|
|
5260
|
+
type GetEnvironmentVariablesResponse = z.infer<typeof GetEnvironmentVariablesResponseSchema>;
|
|
5261
|
+
/**
|
|
5262
|
+
* Draft Agent API response schema
|
|
5263
|
+
*/
|
|
5264
|
+
declare const DraftAgentSchema: z.ZodObject<{
|
|
5159
5265
|
id: z.ZodString;
|
|
5160
5266
|
name: z.ZodString;
|
|
5161
5267
|
displayName: z.ZodString;
|
|
@@ -5166,9 +5272,7 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5166
5272
|
description: z.ZodNullable<z.ZodString>;
|
|
5167
5273
|
enable: z.ZodBoolean;
|
|
5168
5274
|
config: z.ZodNullable<z.ZodObject<{
|
|
5169
|
-
|
|
5170
|
-
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
5171
|
-
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5275
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5172
5276
|
name: z.ZodString;
|
|
5173
5277
|
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5174
5278
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5243,8 +5347,6 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5243
5347
|
permissionCanMergePrDesc?: string | undefined;
|
|
5244
5348
|
}>>>;
|
|
5245
5349
|
}, "strip", z.ZodTypeAny, {
|
|
5246
|
-
guildMsg: string;
|
|
5247
|
-
placeholderMsg: string;
|
|
5248
5350
|
displayConfig?: Record<string, {
|
|
5249
5351
|
closed?: string | undefined;
|
|
5250
5352
|
merged?: string | undefined;
|
|
@@ -5264,7 +5366,7 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5264
5366
|
permissionCanMergePr?: string | undefined;
|
|
5265
5367
|
permissionCanMergePrDesc?: string | undefined;
|
|
5266
5368
|
}> | undefined;
|
|
5267
|
-
|
|
5369
|
+
environmentSchema?: {
|
|
5268
5370
|
type: "string" | "number" | "boolean" | "secret";
|
|
5269
5371
|
name: string;
|
|
5270
5372
|
required: boolean;
|
|
@@ -5291,9 +5393,7 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5291
5393
|
permissionCanMergePr?: string | undefined;
|
|
5292
5394
|
permissionCanMergePrDesc?: string | undefined;
|
|
5293
5395
|
}> | undefined;
|
|
5294
|
-
|
|
5295
|
-
placeholderMsg?: string | undefined;
|
|
5296
|
-
deploymentSchema?: {
|
|
5396
|
+
environmentSchema?: {
|
|
5297
5397
|
type: "string" | "number" | "boolean" | "secret";
|
|
5298
5398
|
name: string;
|
|
5299
5399
|
description?: string | undefined;
|
|
@@ -5330,8 +5430,6 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5330
5430
|
description: string | null;
|
|
5331
5431
|
enable: boolean;
|
|
5332
5432
|
config: {
|
|
5333
|
-
guildMsg: string;
|
|
5334
|
-
placeholderMsg: string;
|
|
5335
5433
|
displayConfig?: Record<string, {
|
|
5336
5434
|
closed?: string | undefined;
|
|
5337
5435
|
merged?: string | undefined;
|
|
@@ -5351,7 +5449,7 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5351
5449
|
permissionCanMergePr?: string | undefined;
|
|
5352
5450
|
permissionCanMergePrDesc?: string | undefined;
|
|
5353
5451
|
}> | undefined;
|
|
5354
|
-
|
|
5452
|
+
environmentSchema?: {
|
|
5355
5453
|
type: "string" | "number" | "boolean" | "secret";
|
|
5356
5454
|
name: string;
|
|
5357
5455
|
required: boolean;
|
|
@@ -5397,9 +5495,7 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5397
5495
|
permissionCanMergePr?: string | undefined;
|
|
5398
5496
|
permissionCanMergePrDesc?: string | undefined;
|
|
5399
5497
|
}> | undefined;
|
|
5400
|
-
|
|
5401
|
-
placeholderMsg?: string | undefined;
|
|
5402
|
-
deploymentSchema?: {
|
|
5498
|
+
environmentSchema?: {
|
|
5403
5499
|
type: "string" | "number" | "boolean" | "secret";
|
|
5404
5500
|
name: string;
|
|
5405
5501
|
description?: string | undefined;
|
|
@@ -5412,9 +5508,9 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5412
5508
|
publishedAgentId: string | null;
|
|
5413
5509
|
sourceTaskId: string | null;
|
|
5414
5510
|
}>;
|
|
5415
|
-
type
|
|
5511
|
+
type DraftAgent = z.infer<typeof DraftAgentSchema>;
|
|
5416
5512
|
/**
|
|
5417
|
-
* Response for user agents endpoint (agents +
|
|
5513
|
+
* Response for user agents endpoint (agents + draft agents)
|
|
5418
5514
|
*/
|
|
5419
5515
|
declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
5420
5516
|
agents: z.ZodArray<z.ZodObject<{
|
|
@@ -5541,9 +5637,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5541
5637
|
}>>;
|
|
5542
5638
|
}, "strip", z.ZodTypeAny, {
|
|
5543
5639
|
type: "claude" | "codex";
|
|
5640
|
+
signature: string | null;
|
|
5544
5641
|
id: string;
|
|
5545
5642
|
avatar: string | null;
|
|
5546
|
-
signature: string | null;
|
|
5547
5643
|
userId: string;
|
|
5548
5644
|
permissions: {
|
|
5549
5645
|
role: string;
|
|
@@ -5581,9 +5677,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5581
5677
|
} | null;
|
|
5582
5678
|
}, {
|
|
5583
5679
|
type: "claude" | "codex";
|
|
5680
|
+
signature: string | null;
|
|
5584
5681
|
id: string;
|
|
5585
5682
|
avatar: string | null;
|
|
5586
|
-
signature: string | null;
|
|
5587
5683
|
userId: string;
|
|
5588
5684
|
permissions: {
|
|
5589
5685
|
role: string;
|
|
@@ -5620,7 +5716,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5620
5716
|
}> | undefined;
|
|
5621
5717
|
} | null;
|
|
5622
5718
|
}>, "many">;
|
|
5623
|
-
|
|
5719
|
+
draftAgents: z.ZodArray<z.ZodObject<{
|
|
5624
5720
|
id: z.ZodString;
|
|
5625
5721
|
name: z.ZodString;
|
|
5626
5722
|
displayName: z.ZodString;
|
|
@@ -5631,9 +5727,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5631
5727
|
description: z.ZodNullable<z.ZodString>;
|
|
5632
5728
|
enable: z.ZodBoolean;
|
|
5633
5729
|
config: z.ZodNullable<z.ZodObject<{
|
|
5634
|
-
|
|
5635
|
-
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
5636
|
-
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5730
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5637
5731
|
name: z.ZodString;
|
|
5638
5732
|
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
5639
5733
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5708,8 +5802,6 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5708
5802
|
permissionCanMergePrDesc?: string | undefined;
|
|
5709
5803
|
}>>>;
|
|
5710
5804
|
}, "strip", z.ZodTypeAny, {
|
|
5711
|
-
guildMsg: string;
|
|
5712
|
-
placeholderMsg: string;
|
|
5713
5805
|
displayConfig?: Record<string, {
|
|
5714
5806
|
closed?: string | undefined;
|
|
5715
5807
|
merged?: string | undefined;
|
|
@@ -5729,7 +5821,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5729
5821
|
permissionCanMergePr?: string | undefined;
|
|
5730
5822
|
permissionCanMergePrDesc?: string | undefined;
|
|
5731
5823
|
}> | undefined;
|
|
5732
|
-
|
|
5824
|
+
environmentSchema?: {
|
|
5733
5825
|
type: "string" | "number" | "boolean" | "secret";
|
|
5734
5826
|
name: string;
|
|
5735
5827
|
required: boolean;
|
|
@@ -5756,9 +5848,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5756
5848
|
permissionCanMergePr?: string | undefined;
|
|
5757
5849
|
permissionCanMergePrDesc?: string | undefined;
|
|
5758
5850
|
}> | undefined;
|
|
5759
|
-
|
|
5760
|
-
placeholderMsg?: string | undefined;
|
|
5761
|
-
deploymentSchema?: {
|
|
5851
|
+
environmentSchema?: {
|
|
5762
5852
|
type: "string" | "number" | "boolean" | "secret";
|
|
5763
5853
|
name: string;
|
|
5764
5854
|
description?: string | undefined;
|
|
@@ -5795,8 +5885,6 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5795
5885
|
description: string | null;
|
|
5796
5886
|
enable: boolean;
|
|
5797
5887
|
config: {
|
|
5798
|
-
guildMsg: string;
|
|
5799
|
-
placeholderMsg: string;
|
|
5800
5888
|
displayConfig?: Record<string, {
|
|
5801
5889
|
closed?: string | undefined;
|
|
5802
5890
|
merged?: string | undefined;
|
|
@@ -5816,7 +5904,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5816
5904
|
permissionCanMergePr?: string | undefined;
|
|
5817
5905
|
permissionCanMergePrDesc?: string | undefined;
|
|
5818
5906
|
}> | undefined;
|
|
5819
|
-
|
|
5907
|
+
environmentSchema?: {
|
|
5820
5908
|
type: "string" | "number" | "boolean" | "secret";
|
|
5821
5909
|
name: string;
|
|
5822
5910
|
required: boolean;
|
|
@@ -5862,9 +5950,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5862
5950
|
permissionCanMergePr?: string | undefined;
|
|
5863
5951
|
permissionCanMergePrDesc?: string | undefined;
|
|
5864
5952
|
}> | undefined;
|
|
5865
|
-
|
|
5866
|
-
placeholderMsg?: string | undefined;
|
|
5867
|
-
deploymentSchema?: {
|
|
5953
|
+
environmentSchema?: {
|
|
5868
5954
|
type: "string" | "number" | "boolean" | "secret";
|
|
5869
5955
|
name: string;
|
|
5870
5956
|
description?: string | undefined;
|
|
@@ -5880,9 +5966,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5880
5966
|
}, "strip", z.ZodTypeAny, {
|
|
5881
5967
|
agents: {
|
|
5882
5968
|
type: "claude" | "codex";
|
|
5969
|
+
signature: string | null;
|
|
5883
5970
|
id: string;
|
|
5884
5971
|
avatar: string | null;
|
|
5885
|
-
signature: string | null;
|
|
5886
5972
|
userId: string;
|
|
5887
5973
|
permissions: {
|
|
5888
5974
|
role: string;
|
|
@@ -5919,7 +6005,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5919
6005
|
}> | undefined;
|
|
5920
6006
|
} | null;
|
|
5921
6007
|
}[];
|
|
5922
|
-
|
|
6008
|
+
draftAgents: {
|
|
5923
6009
|
type: "claude" | "codex";
|
|
5924
6010
|
id: string;
|
|
5925
6011
|
avatar: string | null;
|
|
@@ -5934,8 +6020,6 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5934
6020
|
description: string | null;
|
|
5935
6021
|
enable: boolean;
|
|
5936
6022
|
config: {
|
|
5937
|
-
guildMsg: string;
|
|
5938
|
-
placeholderMsg: string;
|
|
5939
6023
|
displayConfig?: Record<string, {
|
|
5940
6024
|
closed?: string | undefined;
|
|
5941
6025
|
merged?: string | undefined;
|
|
@@ -5955,7 +6039,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5955
6039
|
permissionCanMergePr?: string | undefined;
|
|
5956
6040
|
permissionCanMergePrDesc?: string | undefined;
|
|
5957
6041
|
}> | undefined;
|
|
5958
|
-
|
|
6042
|
+
environmentSchema?: {
|
|
5959
6043
|
type: "string" | "number" | "boolean" | "secret";
|
|
5960
6044
|
name: string;
|
|
5961
6045
|
required: boolean;
|
|
@@ -5971,9 +6055,9 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5971
6055
|
}, {
|
|
5972
6056
|
agents: {
|
|
5973
6057
|
type: "claude" | "codex";
|
|
6058
|
+
signature: string | null;
|
|
5974
6059
|
id: string;
|
|
5975
6060
|
avatar: string | null;
|
|
5976
|
-
signature: string | null;
|
|
5977
6061
|
userId: string;
|
|
5978
6062
|
permissions: {
|
|
5979
6063
|
role: string;
|
|
@@ -6010,7 +6094,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6010
6094
|
}> | undefined;
|
|
6011
6095
|
} | null;
|
|
6012
6096
|
}[];
|
|
6013
|
-
|
|
6097
|
+
draftAgents: {
|
|
6014
6098
|
type: "claude" | "codex";
|
|
6015
6099
|
id: string;
|
|
6016
6100
|
avatar: string | null;
|
|
@@ -6044,9 +6128,7 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6044
6128
|
permissionCanMergePr?: string | undefined;
|
|
6045
6129
|
permissionCanMergePrDesc?: string | undefined;
|
|
6046
6130
|
}> | undefined;
|
|
6047
|
-
|
|
6048
|
-
placeholderMsg?: string | undefined;
|
|
6049
|
-
deploymentSchema?: {
|
|
6131
|
+
environmentSchema?: {
|
|
6050
6132
|
type: "string" | "number" | "boolean" | "secret";
|
|
6051
6133
|
name: string;
|
|
6052
6134
|
description?: string | undefined;
|
|
@@ -7155,8 +7237,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
7155
7237
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7156
7238
|
}, "strip", z.ZodTypeAny, {
|
|
7157
7239
|
id: string;
|
|
7158
|
-
provider: string;
|
|
7159
7240
|
createdAt: string;
|
|
7241
|
+
provider: string;
|
|
7160
7242
|
updatedAt: string;
|
|
7161
7243
|
displayName: string;
|
|
7162
7244
|
authorizeUrl: string;
|
|
@@ -7171,8 +7253,8 @@ declare const OAuthServerSchema: z.ZodObject<{
|
|
|
7171
7253
|
avatar?: string | undefined;
|
|
7172
7254
|
}, {
|
|
7173
7255
|
id: string;
|
|
7174
|
-
provider: string;
|
|
7175
7256
|
createdAt: string | Date;
|
|
7257
|
+
provider: string;
|
|
7176
7258
|
updatedAt: string | Date;
|
|
7177
7259
|
displayName: string;
|
|
7178
7260
|
authorizeUrl: string;
|
|
@@ -7201,16 +7283,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
|
|
|
7201
7283
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7202
7284
|
}, "strip", z.ZodTypeAny, {
|
|
7203
7285
|
id: string;
|
|
7204
|
-
provider: string;
|
|
7205
7286
|
createdAt: string;
|
|
7287
|
+
provider: string;
|
|
7206
7288
|
updatedAt: string;
|
|
7207
7289
|
displayName: string;
|
|
7208
7290
|
enabled: boolean;
|
|
7209
7291
|
avatar?: string | undefined;
|
|
7210
7292
|
}, {
|
|
7211
7293
|
id: string;
|
|
7212
|
-
provider: string;
|
|
7213
7294
|
createdAt: string | Date;
|
|
7295
|
+
provider: string;
|
|
7214
7296
|
updatedAt: string | Date;
|
|
7215
7297
|
displayName: string;
|
|
7216
7298
|
enabled: boolean;
|
|
@@ -7276,8 +7358,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7276
7358
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7277
7359
|
}, "strip", z.ZodTypeAny, {
|
|
7278
7360
|
id: string;
|
|
7279
|
-
provider: string;
|
|
7280
7361
|
createdAt: string;
|
|
7362
|
+
provider: string;
|
|
7281
7363
|
updatedAt: string;
|
|
7282
7364
|
displayName: string;
|
|
7283
7365
|
authorizeUrl: string;
|
|
@@ -7292,8 +7374,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7292
7374
|
avatar?: string | undefined;
|
|
7293
7375
|
}, {
|
|
7294
7376
|
id: string;
|
|
7295
|
-
provider: string;
|
|
7296
7377
|
createdAt: string | Date;
|
|
7378
|
+
provider: string;
|
|
7297
7379
|
updatedAt: string | Date;
|
|
7298
7380
|
displayName: string;
|
|
7299
7381
|
authorizeUrl: string;
|
|
@@ -7337,8 +7419,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7337
7419
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7338
7420
|
}, "strip", z.ZodTypeAny, {
|
|
7339
7421
|
id: string;
|
|
7340
|
-
provider: string;
|
|
7341
7422
|
createdAt: string;
|
|
7423
|
+
provider: string;
|
|
7342
7424
|
updatedAt: string;
|
|
7343
7425
|
displayName: string;
|
|
7344
7426
|
authorizeUrl: string;
|
|
@@ -7353,8 +7435,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7353
7435
|
avatar?: string | undefined;
|
|
7354
7436
|
}, {
|
|
7355
7437
|
id: string;
|
|
7356
|
-
provider: string;
|
|
7357
7438
|
createdAt: string | Date;
|
|
7439
|
+
provider: string;
|
|
7358
7440
|
updatedAt: string | Date;
|
|
7359
7441
|
displayName: string;
|
|
7360
7442
|
authorizeUrl: string;
|
|
@@ -7390,8 +7472,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7390
7472
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7391
7473
|
}, "strip", z.ZodTypeAny, {
|
|
7392
7474
|
id: string;
|
|
7393
|
-
provider: string;
|
|
7394
7475
|
createdAt: string;
|
|
7476
|
+
provider: string;
|
|
7395
7477
|
updatedAt: string;
|
|
7396
7478
|
displayName: string;
|
|
7397
7479
|
authorizeUrl: string;
|
|
@@ -7406,8 +7488,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7406
7488
|
avatar?: string | undefined;
|
|
7407
7489
|
}, {
|
|
7408
7490
|
id: string;
|
|
7409
|
-
provider: string;
|
|
7410
7491
|
createdAt: string | Date;
|
|
7492
|
+
provider: string;
|
|
7411
7493
|
updatedAt: string | Date;
|
|
7412
7494
|
displayName: string;
|
|
7413
7495
|
authorizeUrl: string;
|
|
@@ -7481,8 +7563,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7481
7563
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7482
7564
|
}, "strip", z.ZodTypeAny, {
|
|
7483
7565
|
id: string;
|
|
7484
|
-
provider: string;
|
|
7485
7566
|
createdAt: string;
|
|
7567
|
+
provider: string;
|
|
7486
7568
|
updatedAt: string;
|
|
7487
7569
|
displayName: string;
|
|
7488
7570
|
authorizeUrl: string;
|
|
@@ -7497,8 +7579,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7497
7579
|
avatar?: string | undefined;
|
|
7498
7580
|
}, {
|
|
7499
7581
|
id: string;
|
|
7500
|
-
provider: string;
|
|
7501
7582
|
createdAt: string | Date;
|
|
7583
|
+
provider: string;
|
|
7502
7584
|
updatedAt: string | Date;
|
|
7503
7585
|
displayName: string;
|
|
7504
7586
|
authorizeUrl: string;
|
|
@@ -7553,8 +7635,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7553
7635
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7554
7636
|
}, "strip", z.ZodTypeAny, {
|
|
7555
7637
|
id: string;
|
|
7556
|
-
provider: string;
|
|
7557
7638
|
createdAt: string;
|
|
7639
|
+
provider: string;
|
|
7558
7640
|
updatedAt: string;
|
|
7559
7641
|
displayName: string;
|
|
7560
7642
|
authorizeUrl: string;
|
|
@@ -7569,8 +7651,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
|
|
|
7569
7651
|
avatar?: string | undefined;
|
|
7570
7652
|
}, {
|
|
7571
7653
|
id: string;
|
|
7572
|
-
provider: string;
|
|
7573
7654
|
createdAt: string | Date;
|
|
7655
|
+
provider: string;
|
|
7574
7656
|
updatedAt: string | Date;
|
|
7575
7657
|
displayName: string;
|
|
7576
7658
|
authorizeUrl: string;
|
|
@@ -7598,16 +7680,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
7598
7680
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
7599
7681
|
}, "strip", z.ZodTypeAny, {
|
|
7600
7682
|
id: string;
|
|
7601
|
-
provider: string;
|
|
7602
7683
|
createdAt: string;
|
|
7684
|
+
provider: string;
|
|
7603
7685
|
updatedAt: string;
|
|
7604
7686
|
displayName: string;
|
|
7605
7687
|
enabled: boolean;
|
|
7606
7688
|
avatar?: string | undefined;
|
|
7607
7689
|
}, {
|
|
7608
7690
|
id: string;
|
|
7609
|
-
provider: string;
|
|
7610
7691
|
createdAt: string | Date;
|
|
7692
|
+
provider: string;
|
|
7611
7693
|
updatedAt: string | Date;
|
|
7612
7694
|
displayName: string;
|
|
7613
7695
|
enabled: boolean;
|
|
@@ -8556,13 +8638,82 @@ declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
|
8556
8638
|
reason?: "user" | "timeout" | "system" | undefined;
|
|
8557
8639
|
}>;
|
|
8558
8640
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
8641
|
+
/**
|
|
8642
|
+
* Task artifacts message payload (Worker → App)
|
|
8643
|
+
*/
|
|
8644
|
+
declare const TaskArtifactsMessageSchema: z.ZodObject<{
|
|
8645
|
+
type: z.ZodLiteral<"task_artifacts_updated">;
|
|
8646
|
+
commitHash: z.ZodString;
|
|
8647
|
+
timestamp: z.ZodString;
|
|
8648
|
+
stats: z.ZodObject<{
|
|
8649
|
+
totalInsertions: z.ZodNumber;
|
|
8650
|
+
totalDeletions: z.ZodNumber;
|
|
8651
|
+
files: z.ZodArray<z.ZodObject<{
|
|
8652
|
+
path: z.ZodString;
|
|
8653
|
+
insertions: z.ZodNumber;
|
|
8654
|
+
deletions: z.ZodNumber;
|
|
8655
|
+
}, "strip", z.ZodTypeAny, {
|
|
8656
|
+
path: string;
|
|
8657
|
+
insertions: number;
|
|
8658
|
+
deletions: number;
|
|
8659
|
+
}, {
|
|
8660
|
+
path: string;
|
|
8661
|
+
insertions: number;
|
|
8662
|
+
deletions: number;
|
|
8663
|
+
}>, "many">;
|
|
8664
|
+
}, "strip", z.ZodTypeAny, {
|
|
8665
|
+
totalInsertions: number;
|
|
8666
|
+
totalDeletions: number;
|
|
8667
|
+
files: {
|
|
8668
|
+
path: string;
|
|
8669
|
+
insertions: number;
|
|
8670
|
+
deletions: number;
|
|
8671
|
+
}[];
|
|
8672
|
+
}, {
|
|
8673
|
+
totalInsertions: number;
|
|
8674
|
+
totalDeletions: number;
|
|
8675
|
+
files: {
|
|
8676
|
+
path: string;
|
|
8677
|
+
insertions: number;
|
|
8678
|
+
deletions: number;
|
|
8679
|
+
}[];
|
|
8680
|
+
}>;
|
|
8681
|
+
}, "strip", z.ZodTypeAny, {
|
|
8682
|
+
type: "task_artifacts_updated";
|
|
8683
|
+
commitHash: string;
|
|
8684
|
+
timestamp: string;
|
|
8685
|
+
stats: {
|
|
8686
|
+
totalInsertions: number;
|
|
8687
|
+
totalDeletions: number;
|
|
8688
|
+
files: {
|
|
8689
|
+
path: string;
|
|
8690
|
+
insertions: number;
|
|
8691
|
+
deletions: number;
|
|
8692
|
+
}[];
|
|
8693
|
+
};
|
|
8694
|
+
}, {
|
|
8695
|
+
type: "task_artifacts_updated";
|
|
8696
|
+
commitHash: string;
|
|
8697
|
+
timestamp: string;
|
|
8698
|
+
stats: {
|
|
8699
|
+
totalInsertions: number;
|
|
8700
|
+
totalDeletions: number;
|
|
8701
|
+
files: {
|
|
8702
|
+
path: string;
|
|
8703
|
+
insertions: number;
|
|
8704
|
+
deletions: number;
|
|
8705
|
+
}[];
|
|
8706
|
+
};
|
|
8707
|
+
}>;
|
|
8708
|
+
type TaskArtifactsMessage = z.infer<typeof TaskArtifactsMessageSchema>;
|
|
8559
8709
|
/**
|
|
8560
8710
|
* Union type for task message payload
|
|
8561
8711
|
* - SDKMessage: Normal agent messages
|
|
8562
8712
|
* - AskUserMessage: Worker asking user questions
|
|
8563
8713
|
* - AskUserResponseMessage: User responding to questions
|
|
8714
|
+
* - TaskArtifactsMessage: Worker artifact updates
|
|
8564
8715
|
*/
|
|
8565
|
-
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
|
|
8716
|
+
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage | TaskArtifactsMessage;
|
|
8566
8717
|
/**
|
|
8567
8718
|
* Type guard to check if message is AskUserMessage
|
|
8568
8719
|
*/
|
|
@@ -8571,6 +8722,10 @@ declare function isAskUserMessage(message: TaskMessagePayload): message is AskUs
|
|
|
8571
8722
|
* Type guard to check if message is AskUserResponseMessage
|
|
8572
8723
|
*/
|
|
8573
8724
|
declare function isAskUserResponseMessage(message: TaskMessagePayload): message is AskUserResponseMessage;
|
|
8725
|
+
/**
|
|
8726
|
+
* Type guard to check if message is TaskArtifactsMessage
|
|
8727
|
+
*/
|
|
8728
|
+
declare function isTaskArtifactsMessage(message: TaskMessagePayload): message is TaskArtifactsMessage;
|
|
8574
8729
|
/**
|
|
8575
8730
|
* Type guard to check if message is SDKMessage (not ask_user related)
|
|
8576
8731
|
*/
|
|
@@ -8809,6 +8964,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8809
8964
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8810
8965
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8811
8966
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
8967
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8812
8968
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8813
8969
|
model: z.ZodOptional<z.ZodString>;
|
|
8814
8970
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8817,6 +8973,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8817
8973
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8818
8974
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8819
8975
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
8976
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8820
8977
|
}, "strip", z.ZodTypeAny, {
|
|
8821
8978
|
userId: string;
|
|
8822
8979
|
taskId: string;
|
|
@@ -8825,6 +8982,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8825
8982
|
eventId: string;
|
|
8826
8983
|
agentType: string;
|
|
8827
8984
|
cwd?: string | undefined;
|
|
8985
|
+
forceUserCwd?: boolean | undefined;
|
|
8828
8986
|
repositoryId?: string | undefined;
|
|
8829
8987
|
baseBranch?: string | undefined;
|
|
8830
8988
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8834,9 +8992,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8834
8992
|
gitUrl?: string | undefined;
|
|
8835
8993
|
model?: string | undefined;
|
|
8836
8994
|
fallbackModel?: string | undefined;
|
|
8995
|
+
maxTurns?: number | undefined;
|
|
8837
8996
|
api_base_url?: string | undefined;
|
|
8838
8997
|
api_key?: string | undefined;
|
|
8839
|
-
|
|
8998
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8840
8999
|
}, {
|
|
8841
9000
|
userId: string;
|
|
8842
9001
|
taskId: string;
|
|
@@ -8844,6 +9003,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8844
9003
|
agentId: string;
|
|
8845
9004
|
eventId: string;
|
|
8846
9005
|
cwd?: string | undefined;
|
|
9006
|
+
forceUserCwd?: boolean | undefined;
|
|
8847
9007
|
repositoryId?: string | undefined;
|
|
8848
9008
|
baseBranch?: string | undefined;
|
|
8849
9009
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8851,12 +9011,13 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8851
9011
|
userCwd?: string | undefined;
|
|
8852
9012
|
agentDir?: string | undefined;
|
|
8853
9013
|
gitUrl?: string | undefined;
|
|
8854
|
-
agentType?: string | undefined;
|
|
8855
9014
|
model?: string | undefined;
|
|
8856
9015
|
fallbackModel?: string | undefined;
|
|
9016
|
+
maxTurns?: number | undefined;
|
|
9017
|
+
agentType?: string | undefined;
|
|
8857
9018
|
api_base_url?: string | undefined;
|
|
8858
9019
|
api_key?: string | undefined;
|
|
8859
|
-
|
|
9020
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8860
9021
|
}>;
|
|
8861
9022
|
declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
8862
9023
|
eventId: z.ZodString;
|
|
@@ -8871,6 +9032,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8871
9032
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8872
9033
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8873
9034
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
9035
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8874
9036
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8875
9037
|
model: z.ZodOptional<z.ZodString>;
|
|
8876
9038
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8879,6 +9041,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8879
9041
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8880
9042
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8881
9043
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9044
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8882
9045
|
} & {
|
|
8883
9046
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
8884
9047
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -8892,6 +9055,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8892
9055
|
message?: SDKUserMessage | undefined;
|
|
8893
9056
|
encryptedMessage?: string | undefined;
|
|
8894
9057
|
cwd?: string | undefined;
|
|
9058
|
+
forceUserCwd?: boolean | undefined;
|
|
8895
9059
|
repositoryId?: string | undefined;
|
|
8896
9060
|
baseBranch?: string | undefined;
|
|
8897
9061
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8901,9 +9065,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8901
9065
|
gitUrl?: string | undefined;
|
|
8902
9066
|
model?: string | undefined;
|
|
8903
9067
|
fallbackModel?: string | undefined;
|
|
9068
|
+
maxTurns?: number | undefined;
|
|
8904
9069
|
api_base_url?: string | undefined;
|
|
8905
9070
|
api_key?: string | undefined;
|
|
8906
|
-
|
|
9071
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8907
9072
|
}, {
|
|
8908
9073
|
userId: string;
|
|
8909
9074
|
taskId: string;
|
|
@@ -8913,6 +9078,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8913
9078
|
message?: SDKUserMessage | undefined;
|
|
8914
9079
|
encryptedMessage?: string | undefined;
|
|
8915
9080
|
cwd?: string | undefined;
|
|
9081
|
+
forceUserCwd?: boolean | undefined;
|
|
8916
9082
|
repositoryId?: string | undefined;
|
|
8917
9083
|
baseBranch?: string | undefined;
|
|
8918
9084
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8920,12 +9086,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8920
9086
|
userCwd?: string | undefined;
|
|
8921
9087
|
agentDir?: string | undefined;
|
|
8922
9088
|
gitUrl?: string | undefined;
|
|
8923
|
-
agentType?: string | undefined;
|
|
8924
9089
|
model?: string | undefined;
|
|
8925
9090
|
fallbackModel?: string | undefined;
|
|
9091
|
+
maxTurns?: number | undefined;
|
|
9092
|
+
agentType?: string | undefined;
|
|
8926
9093
|
api_base_url?: string | undefined;
|
|
8927
9094
|
api_key?: string | undefined;
|
|
8928
|
-
|
|
9095
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8929
9096
|
}>, {
|
|
8930
9097
|
userId: string;
|
|
8931
9098
|
taskId: string;
|
|
@@ -8936,6 +9103,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8936
9103
|
message?: SDKUserMessage | undefined;
|
|
8937
9104
|
encryptedMessage?: string | undefined;
|
|
8938
9105
|
cwd?: string | undefined;
|
|
9106
|
+
forceUserCwd?: boolean | undefined;
|
|
8939
9107
|
repositoryId?: string | undefined;
|
|
8940
9108
|
baseBranch?: string | undefined;
|
|
8941
9109
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8945,9 +9113,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8945
9113
|
gitUrl?: string | undefined;
|
|
8946
9114
|
model?: string | undefined;
|
|
8947
9115
|
fallbackModel?: string | undefined;
|
|
9116
|
+
maxTurns?: number | undefined;
|
|
8948
9117
|
api_base_url?: string | undefined;
|
|
8949
9118
|
api_key?: string | undefined;
|
|
8950
|
-
|
|
9119
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8951
9120
|
}, {
|
|
8952
9121
|
userId: string;
|
|
8953
9122
|
taskId: string;
|
|
@@ -8957,6 +9126,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8957
9126
|
message?: SDKUserMessage | undefined;
|
|
8958
9127
|
encryptedMessage?: string | undefined;
|
|
8959
9128
|
cwd?: string | undefined;
|
|
9129
|
+
forceUserCwd?: boolean | undefined;
|
|
8960
9130
|
repositoryId?: string | undefined;
|
|
8961
9131
|
baseBranch?: string | undefined;
|
|
8962
9132
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8964,12 +9134,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8964
9134
|
userCwd?: string | undefined;
|
|
8965
9135
|
agentDir?: string | undefined;
|
|
8966
9136
|
gitUrl?: string | undefined;
|
|
8967
|
-
agentType?: string | undefined;
|
|
8968
9137
|
model?: string | undefined;
|
|
8969
9138
|
fallbackModel?: string | undefined;
|
|
9139
|
+
maxTurns?: number | undefined;
|
|
9140
|
+
agentType?: string | undefined;
|
|
8970
9141
|
api_base_url?: string | undefined;
|
|
8971
9142
|
api_key?: string | undefined;
|
|
8972
|
-
|
|
9143
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8973
9144
|
}>;
|
|
8974
9145
|
type CreateTaskEventData = z.infer<typeof createTaskSchema>;
|
|
8975
9146
|
declare const resumeTaskSchema: z.ZodObject<{
|
|
@@ -8985,6 +9156,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
8985
9156
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8986
9157
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8987
9158
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
9159
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8988
9160
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8989
9161
|
model: z.ZodOptional<z.ZodString>;
|
|
8990
9162
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8993,6 +9165,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
8993
9165
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8994
9166
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8995
9167
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9168
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8996
9169
|
} & {
|
|
8997
9170
|
agentSessionId: z.ZodString;
|
|
8998
9171
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -9010,6 +9183,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9010
9183
|
message?: SDKUserMessage | undefined;
|
|
9011
9184
|
encryptedMessage?: string | undefined;
|
|
9012
9185
|
cwd?: string | undefined;
|
|
9186
|
+
forceUserCwd?: boolean | undefined;
|
|
9013
9187
|
repositoryId?: string | undefined;
|
|
9014
9188
|
baseBranch?: string | undefined;
|
|
9015
9189
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -9019,9 +9193,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9019
9193
|
gitUrl?: string | undefined;
|
|
9020
9194
|
model?: string | undefined;
|
|
9021
9195
|
fallbackModel?: string | undefined;
|
|
9196
|
+
maxTurns?: number | undefined;
|
|
9022
9197
|
api_base_url?: string | undefined;
|
|
9023
9198
|
api_key?: string | undefined;
|
|
9024
|
-
|
|
9199
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
9025
9200
|
event?: string | undefined;
|
|
9026
9201
|
eventData?: any;
|
|
9027
9202
|
}, {
|
|
@@ -9034,6 +9209,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9034
9209
|
message?: SDKUserMessage | undefined;
|
|
9035
9210
|
encryptedMessage?: string | undefined;
|
|
9036
9211
|
cwd?: string | undefined;
|
|
9212
|
+
forceUserCwd?: boolean | undefined;
|
|
9037
9213
|
repositoryId?: string | undefined;
|
|
9038
9214
|
baseBranch?: string | undefined;
|
|
9039
9215
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -9041,12 +9217,13 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9041
9217
|
userCwd?: string | undefined;
|
|
9042
9218
|
agentDir?: string | undefined;
|
|
9043
9219
|
gitUrl?: string | undefined;
|
|
9044
|
-
agentType?: string | undefined;
|
|
9045
9220
|
model?: string | undefined;
|
|
9046
9221
|
fallbackModel?: string | undefined;
|
|
9222
|
+
maxTurns?: number | undefined;
|
|
9223
|
+
agentType?: string | undefined;
|
|
9047
9224
|
api_base_url?: string | undefined;
|
|
9048
9225
|
api_key?: string | undefined;
|
|
9049
|
-
|
|
9226
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
9050
9227
|
event?: string | undefined;
|
|
9051
9228
|
eventData?: any;
|
|
9052
9229
|
}>;
|
|
@@ -9094,8 +9271,10 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9094
9271
|
eventId: z.ZodString;
|
|
9095
9272
|
} & {
|
|
9096
9273
|
taskId: z.ZodString;
|
|
9274
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
9097
9275
|
from: z.ZodEnum<["app", "api-server", "machine", "worker"]>;
|
|
9098
9276
|
opCode: z.ZodOptional<z.ZodString>;
|
|
9277
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
9099
9278
|
message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
|
|
9100
9279
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9101
9280
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9103,29 +9282,37 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9103
9282
|
eventId: string;
|
|
9104
9283
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9105
9284
|
message?: TaskMessagePayload | undefined;
|
|
9285
|
+
chatId?: string | undefined;
|
|
9106
9286
|
encryptedMessage?: string | undefined;
|
|
9107
9287
|
opCode?: string | undefined;
|
|
9288
|
+
sequence?: number | undefined;
|
|
9108
9289
|
}, {
|
|
9109
9290
|
taskId: string;
|
|
9110
9291
|
eventId: string;
|
|
9111
9292
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9112
9293
|
message?: TaskMessagePayload | undefined;
|
|
9294
|
+
chatId?: string | undefined;
|
|
9113
9295
|
encryptedMessage?: string | undefined;
|
|
9114
9296
|
opCode?: string | undefined;
|
|
9297
|
+
sequence?: number | undefined;
|
|
9115
9298
|
}>, {
|
|
9116
9299
|
taskId: string;
|
|
9117
9300
|
eventId: string;
|
|
9118
9301
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9119
9302
|
message?: TaskMessagePayload | undefined;
|
|
9303
|
+
chatId?: string | undefined;
|
|
9120
9304
|
encryptedMessage?: string | undefined;
|
|
9121
9305
|
opCode?: string | undefined;
|
|
9306
|
+
sequence?: number | undefined;
|
|
9122
9307
|
}, {
|
|
9123
9308
|
taskId: string;
|
|
9124
9309
|
eventId: string;
|
|
9125
9310
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9126
9311
|
message?: TaskMessagePayload | undefined;
|
|
9312
|
+
chatId?: string | undefined;
|
|
9127
9313
|
encryptedMessage?: string | undefined;
|
|
9128
9314
|
opCode?: string | undefined;
|
|
9315
|
+
sequence?: number | undefined;
|
|
9129
9316
|
}>;
|
|
9130
9317
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
9131
9318
|
/**
|
|
@@ -9136,71 +9323,59 @@ declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
|
|
|
9136
9323
|
eventId: z.ZodString;
|
|
9137
9324
|
} & {
|
|
9138
9325
|
taskId: z.ZodString;
|
|
9139
|
-
commitHash: z.ZodString;
|
|
9140
|
-
timestamp: z.ZodString;
|
|
9141
9326
|
stats: z.ZodObject<{
|
|
9142
9327
|
totalInsertions: z.ZodNumber;
|
|
9143
9328
|
totalDeletions: z.ZodNumber;
|
|
9144
|
-
files: z.ZodArray<z.ZodObject<{
|
|
9145
|
-
path: z.ZodString;
|
|
9146
|
-
insertions: z.ZodNumber;
|
|
9147
|
-
deletions: z.ZodNumber;
|
|
9148
|
-
}, "strip", z.ZodTypeAny, {
|
|
9149
|
-
path: string;
|
|
9150
|
-
insertions: number;
|
|
9151
|
-
deletions: number;
|
|
9152
|
-
}, {
|
|
9153
|
-
path: string;
|
|
9154
|
-
insertions: number;
|
|
9155
|
-
deletions: number;
|
|
9156
|
-
}>, "many">;
|
|
9157
9329
|
}, "strip", z.ZodTypeAny, {
|
|
9158
9330
|
totalInsertions: number;
|
|
9159
9331
|
totalDeletions: number;
|
|
9160
|
-
files: {
|
|
9161
|
-
path: string;
|
|
9162
|
-
insertions: number;
|
|
9163
|
-
deletions: number;
|
|
9164
|
-
}[];
|
|
9165
9332
|
}, {
|
|
9166
9333
|
totalInsertions: number;
|
|
9167
9334
|
totalDeletions: number;
|
|
9168
|
-
files: {
|
|
9169
|
-
path: string;
|
|
9170
|
-
insertions: number;
|
|
9171
|
-
deletions: number;
|
|
9172
|
-
}[];
|
|
9173
9335
|
}>;
|
|
9174
9336
|
}, "strip", z.ZodTypeAny, {
|
|
9175
9337
|
taskId: string;
|
|
9176
9338
|
eventId: string;
|
|
9177
|
-
timestamp: string;
|
|
9178
|
-
commitHash: string;
|
|
9179
9339
|
stats: {
|
|
9180
9340
|
totalInsertions: number;
|
|
9181
9341
|
totalDeletions: number;
|
|
9182
|
-
files: {
|
|
9183
|
-
path: string;
|
|
9184
|
-
insertions: number;
|
|
9185
|
-
deletions: number;
|
|
9186
|
-
}[];
|
|
9187
9342
|
};
|
|
9188
9343
|
}, {
|
|
9189
9344
|
taskId: string;
|
|
9190
9345
|
eventId: string;
|
|
9191
|
-
timestamp: string;
|
|
9192
|
-
commitHash: string;
|
|
9193
9346
|
stats: {
|
|
9194
9347
|
totalInsertions: number;
|
|
9195
9348
|
totalDeletions: number;
|
|
9196
|
-
files: {
|
|
9197
|
-
path: string;
|
|
9198
|
-
insertions: number;
|
|
9199
|
-
deletions: number;
|
|
9200
|
-
}[];
|
|
9201
9349
|
};
|
|
9202
9350
|
}>;
|
|
9203
9351
|
type TaskArtifactsUpdatedEventData = z.infer<typeof TaskArtifactsUpdatedEventSchema>;
|
|
9352
|
+
declare const ShowModalEventDataSchema: z.ZodObject<{
|
|
9353
|
+
eventId: z.ZodString;
|
|
9354
|
+
} & {
|
|
9355
|
+
taskId: z.ZodString;
|
|
9356
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
9357
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
9358
|
+
timestamp: z.ZodString;
|
|
9359
|
+
modalName: z.ZodString;
|
|
9360
|
+
modalData: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
9361
|
+
}, "strip", z.ZodTypeAny, {
|
|
9362
|
+
taskId: string;
|
|
9363
|
+
eventId: string;
|
|
9364
|
+
timestamp: string;
|
|
9365
|
+
modalName: string;
|
|
9366
|
+
modalData: Record<string, any>;
|
|
9367
|
+
chatId?: string | undefined;
|
|
9368
|
+
sequence?: number | undefined;
|
|
9369
|
+
}, {
|
|
9370
|
+
taskId: string;
|
|
9371
|
+
eventId: string;
|
|
9372
|
+
timestamp: string;
|
|
9373
|
+
modalName: string;
|
|
9374
|
+
modalData: Record<string, any>;
|
|
9375
|
+
chatId?: string | undefined;
|
|
9376
|
+
sequence?: number | undefined;
|
|
9377
|
+
}>;
|
|
9378
|
+
type ShowModalEventData = z.infer<typeof ShowModalEventDataSchema>;
|
|
9204
9379
|
declare const ChangeTaskTitleEventSchema: z.ZodObject<{
|
|
9205
9380
|
eventId: z.ZodString;
|
|
9206
9381
|
} & {
|
|
@@ -9673,7 +9848,7 @@ type AssociateRepoEventData = z.infer<typeof AssociateRepoEventDataSchema>;
|
|
|
9673
9848
|
/**
|
|
9674
9849
|
* System message type
|
|
9675
9850
|
*/
|
|
9676
|
-
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-
|
|
9851
|
+
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
9677
9852
|
/**
|
|
9678
9853
|
* PR state changed schema
|
|
9679
9854
|
*/
|
|
@@ -9709,7 +9884,7 @@ type PrStateChangedData = z.infer<typeof PrStateChangedSchema>;
|
|
|
9709
9884
|
declare const SystemMessageSchema: z.ZodObject<{
|
|
9710
9885
|
eventId: z.ZodString;
|
|
9711
9886
|
} & {
|
|
9712
|
-
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "agent-
|
|
9887
|
+
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"]>;
|
|
9713
9888
|
data: z.ZodUnion<[z.ZodObject<{
|
|
9714
9889
|
id: z.ZodString;
|
|
9715
9890
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9832,9 +10007,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9832
10007
|
description: z.ZodNullable<z.ZodString>;
|
|
9833
10008
|
enable: z.ZodBoolean;
|
|
9834
10009
|
config: z.ZodNullable<z.ZodObject<{
|
|
9835
|
-
|
|
9836
|
-
placeholderMsg: z.ZodDefault<z.ZodString>;
|
|
9837
|
-
deploymentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10010
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9838
10011
|
name: z.ZodString;
|
|
9839
10012
|
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
9840
10013
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -9909,8 +10082,6 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9909
10082
|
permissionCanMergePrDesc?: string | undefined;
|
|
9910
10083
|
}>>>;
|
|
9911
10084
|
}, "strip", z.ZodTypeAny, {
|
|
9912
|
-
guildMsg: string;
|
|
9913
|
-
placeholderMsg: string;
|
|
9914
10085
|
displayConfig?: Record<string, {
|
|
9915
10086
|
closed?: string | undefined;
|
|
9916
10087
|
merged?: string | undefined;
|
|
@@ -9930,7 +10101,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9930
10101
|
permissionCanMergePr?: string | undefined;
|
|
9931
10102
|
permissionCanMergePrDesc?: string | undefined;
|
|
9932
10103
|
}> | undefined;
|
|
9933
|
-
|
|
10104
|
+
environmentSchema?: {
|
|
9934
10105
|
type: "string" | "number" | "boolean" | "secret";
|
|
9935
10106
|
name: string;
|
|
9936
10107
|
required: boolean;
|
|
@@ -9957,9 +10128,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9957
10128
|
permissionCanMergePr?: string | undefined;
|
|
9958
10129
|
permissionCanMergePrDesc?: string | undefined;
|
|
9959
10130
|
}> | undefined;
|
|
9960
|
-
|
|
9961
|
-
placeholderMsg?: string | undefined;
|
|
9962
|
-
deploymentSchema?: {
|
|
10131
|
+
environmentSchema?: {
|
|
9963
10132
|
type: "string" | "number" | "boolean" | "secret";
|
|
9964
10133
|
name: string;
|
|
9965
10134
|
description?: string | undefined;
|
|
@@ -9996,8 +10165,6 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9996
10165
|
description: string | null;
|
|
9997
10166
|
enable: boolean;
|
|
9998
10167
|
config: {
|
|
9999
|
-
guildMsg: string;
|
|
10000
|
-
placeholderMsg: string;
|
|
10001
10168
|
displayConfig?: Record<string, {
|
|
10002
10169
|
closed?: string | undefined;
|
|
10003
10170
|
merged?: string | undefined;
|
|
@@ -10017,7 +10184,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10017
10184
|
permissionCanMergePr?: string | undefined;
|
|
10018
10185
|
permissionCanMergePrDesc?: string | undefined;
|
|
10019
10186
|
}> | undefined;
|
|
10020
|
-
|
|
10187
|
+
environmentSchema?: {
|
|
10021
10188
|
type: "string" | "number" | "boolean" | "secret";
|
|
10022
10189
|
name: string;
|
|
10023
10190
|
required: boolean;
|
|
@@ -10063,9 +10230,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10063
10230
|
permissionCanMergePr?: string | undefined;
|
|
10064
10231
|
permissionCanMergePrDesc?: string | undefined;
|
|
10065
10232
|
}> | undefined;
|
|
10066
|
-
|
|
10067
|
-
placeholderMsg?: string | undefined;
|
|
10068
|
-
deploymentSchema?: {
|
|
10233
|
+
environmentSchema?: {
|
|
10069
10234
|
type: "string" | "number" | "boolean" | "secret";
|
|
10070
10235
|
name: string;
|
|
10071
10236
|
description?: string | undefined;
|
|
@@ -10080,7 +10245,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10080
10245
|
}>]>;
|
|
10081
10246
|
timestamp: z.ZodString;
|
|
10082
10247
|
}, "strip", z.ZodTypeAny, {
|
|
10083
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-
|
|
10248
|
+
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";
|
|
10084
10249
|
data: {
|
|
10085
10250
|
type: "direct" | "group";
|
|
10086
10251
|
id: string;
|
|
@@ -10110,8 +10275,6 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10110
10275
|
description: string | null;
|
|
10111
10276
|
enable: boolean;
|
|
10112
10277
|
config: {
|
|
10113
|
-
guildMsg: string;
|
|
10114
|
-
placeholderMsg: string;
|
|
10115
10278
|
displayConfig?: Record<string, {
|
|
10116
10279
|
closed?: string | undefined;
|
|
10117
10280
|
merged?: string | undefined;
|
|
@@ -10131,7 +10294,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10131
10294
|
permissionCanMergePr?: string | undefined;
|
|
10132
10295
|
permissionCanMergePrDesc?: string | undefined;
|
|
10133
10296
|
}> | undefined;
|
|
10134
|
-
|
|
10297
|
+
environmentSchema?: {
|
|
10135
10298
|
type: "string" | "number" | "boolean" | "secret";
|
|
10136
10299
|
name: string;
|
|
10137
10300
|
required: boolean;
|
|
@@ -10170,7 +10333,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10170
10333
|
eventId: string;
|
|
10171
10334
|
timestamp: string;
|
|
10172
10335
|
}, {
|
|
10173
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "agent-
|
|
10336
|
+
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";
|
|
10174
10337
|
data: {
|
|
10175
10338
|
type: "direct" | "group";
|
|
10176
10339
|
id: string;
|
|
@@ -10219,9 +10382,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10219
10382
|
permissionCanMergePr?: string | undefined;
|
|
10220
10383
|
permissionCanMergePrDesc?: string | undefined;
|
|
10221
10384
|
}> | undefined;
|
|
10222
|
-
|
|
10223
|
-
placeholderMsg?: string | undefined;
|
|
10224
|
-
deploymentSchema?: {
|
|
10385
|
+
environmentSchema?: {
|
|
10225
10386
|
type: "string" | "number" | "boolean" | "secret";
|
|
10226
10387
|
name: string;
|
|
10227
10388
|
description?: string | undefined;
|
|
@@ -10283,6 +10444,7 @@ type EventMap = {
|
|
|
10283
10444
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
10284
10445
|
"task-info-update": TaskInfoUpdateEventData;
|
|
10285
10446
|
"task-artifacts-updated": TaskArtifactsUpdatedEventData;
|
|
10447
|
+
"show-modal": ShowModalEventData;
|
|
10286
10448
|
"merge-request": MergeRequestEventData;
|
|
10287
10449
|
"merge-pr": MergePullRequestEventData;
|
|
10288
10450
|
"associate-repo": AssociateRepoEventData;
|
|
@@ -10353,9 +10515,9 @@ interface AgentrixContext {
|
|
|
10353
10515
|
*/
|
|
10354
10516
|
getTaskId(): string;
|
|
10355
10517
|
/**
|
|
10356
|
-
*
|
|
10518
|
+
* create a new draft agent or update the existing one in the database
|
|
10357
10519
|
*/
|
|
10358
|
-
|
|
10520
|
+
saveDraftAgent(params: {
|
|
10359
10521
|
name: string;
|
|
10360
10522
|
agentDir: string;
|
|
10361
10523
|
type?: 'claude' | 'codex';
|
|
@@ -10368,6 +10530,7 @@ interface AgentrixContext {
|
|
|
10368
10530
|
required: boolean;
|
|
10369
10531
|
defaultValue?: string;
|
|
10370
10532
|
}>;
|
|
10533
|
+
isUpdate?: boolean;
|
|
10371
10534
|
}): Promise<{
|
|
10372
10535
|
agentId: string;
|
|
10373
10536
|
displayName: string;
|
|
@@ -10786,5 +10949,5 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
10786
10949
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
10787
10950
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
10788
10951
|
|
|
10789
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema,
|
|
10790
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent,
|
|
10952
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
10953
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FillEventsRequest, FillEventsResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|