@agentrix/shared 2.0.3 → 2.0.6
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 +325 -162
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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;
|
|
@@ -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<{
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
*/
|
|
@@ -8606,11 +8761,11 @@ declare const AppAliveEventSchema: z.ZodObject<{
|
|
|
8606
8761
|
} & {
|
|
8607
8762
|
timestamp: z.ZodString;
|
|
8608
8763
|
}, "strip", z.ZodTypeAny, {
|
|
8609
|
-
eventId: string;
|
|
8610
8764
|
timestamp: string;
|
|
8611
|
-
}, {
|
|
8612
8765
|
eventId: string;
|
|
8766
|
+
}, {
|
|
8613
8767
|
timestamp: string;
|
|
8768
|
+
eventId: string;
|
|
8614
8769
|
}>;
|
|
8615
8770
|
type AppAliveEventData = z.infer<typeof AppAliveEventSchema>;
|
|
8616
8771
|
declare const ApiServerAliveEventSchema: z.ZodObject<{
|
|
@@ -8618,11 +8773,11 @@ declare const ApiServerAliveEventSchema: z.ZodObject<{
|
|
|
8618
8773
|
} & {
|
|
8619
8774
|
timestamp: z.ZodString;
|
|
8620
8775
|
}, "strip", z.ZodTypeAny, {
|
|
8621
|
-
eventId: string;
|
|
8622
8776
|
timestamp: string;
|
|
8623
|
-
}, {
|
|
8624
8777
|
eventId: string;
|
|
8778
|
+
}, {
|
|
8625
8779
|
timestamp: string;
|
|
8780
|
+
eventId: string;
|
|
8626
8781
|
}>;
|
|
8627
8782
|
type ApiServerAliveEventData = z.infer<typeof ApiServerAliveEventSchema>;
|
|
8628
8783
|
declare const MachineAliveEventSchema: z.ZodObject<{
|
|
@@ -8633,13 +8788,13 @@ declare const MachineAliveEventSchema: z.ZodObject<{
|
|
|
8633
8788
|
controlPort: z.ZodOptional<z.ZodNumber>;
|
|
8634
8789
|
}, "strip", z.ZodTypeAny, {
|
|
8635
8790
|
machineId: string;
|
|
8636
|
-
eventId: string;
|
|
8637
8791
|
timestamp: string;
|
|
8792
|
+
eventId: string;
|
|
8638
8793
|
controlPort?: number | undefined;
|
|
8639
8794
|
}, {
|
|
8640
8795
|
machineId: string;
|
|
8641
|
-
eventId: string;
|
|
8642
8796
|
timestamp: string;
|
|
8797
|
+
eventId: string;
|
|
8643
8798
|
controlPort?: number | undefined;
|
|
8644
8799
|
}>;
|
|
8645
8800
|
type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
|
|
@@ -8668,14 +8823,14 @@ declare const WorkerInitializingSchema: z.ZodObject<{
|
|
|
8668
8823
|
}, "strip", z.ZodTypeAny, {
|
|
8669
8824
|
machineId: string;
|
|
8670
8825
|
taskId: string;
|
|
8671
|
-
eventId: string;
|
|
8672
8826
|
timestamp: string;
|
|
8827
|
+
eventId: string;
|
|
8673
8828
|
cwd?: string | undefined;
|
|
8674
8829
|
}, {
|
|
8675
8830
|
machineId: string;
|
|
8676
8831
|
taskId: string;
|
|
8677
|
-
eventId: string;
|
|
8678
8832
|
timestamp: string;
|
|
8833
|
+
eventId: string;
|
|
8679
8834
|
cwd?: string | undefined;
|
|
8680
8835
|
}>;
|
|
8681
8836
|
type WorkerInitializingEventData = z.infer<typeof WorkerInitializingSchema>;
|
|
@@ -8689,14 +8844,14 @@ declare const WorkerInitializedSchema: z.ZodObject<{
|
|
|
8689
8844
|
}, "strip", z.ZodTypeAny, {
|
|
8690
8845
|
machineId: string;
|
|
8691
8846
|
taskId: string;
|
|
8692
|
-
eventId: string;
|
|
8693
8847
|
timestamp: string;
|
|
8848
|
+
eventId: string;
|
|
8694
8849
|
cwd?: string | undefined;
|
|
8695
8850
|
}, {
|
|
8696
8851
|
machineId: string;
|
|
8697
8852
|
taskId: string;
|
|
8698
|
-
eventId: string;
|
|
8699
8853
|
timestamp: string;
|
|
8854
|
+
eventId: string;
|
|
8700
8855
|
cwd?: string | undefined;
|
|
8701
8856
|
}>;
|
|
8702
8857
|
type WorkerInitializedEventData = z.infer<typeof WorkerInitializedSchema>;
|
|
@@ -8710,14 +8865,14 @@ declare const WorkerReadySchema: z.ZodObject<{
|
|
|
8710
8865
|
}, "strip", z.ZodTypeAny, {
|
|
8711
8866
|
machineId: string;
|
|
8712
8867
|
taskId: string;
|
|
8713
|
-
eventId: string;
|
|
8714
8868
|
timestamp: string;
|
|
8869
|
+
eventId: string;
|
|
8715
8870
|
duration?: number | undefined;
|
|
8716
8871
|
}, {
|
|
8717
8872
|
machineId: string;
|
|
8718
8873
|
taskId: string;
|
|
8719
|
-
eventId: string;
|
|
8720
8874
|
timestamp: string;
|
|
8875
|
+
eventId: string;
|
|
8721
8876
|
duration?: number | undefined;
|
|
8722
8877
|
}>;
|
|
8723
8878
|
type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
|
|
@@ -8732,14 +8887,14 @@ declare const WorkerAliveEventSchema: z.ZodObject<{
|
|
|
8732
8887
|
status: string;
|
|
8733
8888
|
machineId: string;
|
|
8734
8889
|
taskId: string;
|
|
8735
|
-
eventId: string;
|
|
8736
8890
|
timestamp: string;
|
|
8891
|
+
eventId: string;
|
|
8737
8892
|
}, {
|
|
8738
8893
|
status: string;
|
|
8739
8894
|
machineId: string;
|
|
8740
8895
|
taskId: string;
|
|
8741
|
-
eventId: string;
|
|
8742
8896
|
timestamp: string;
|
|
8897
|
+
eventId: string;
|
|
8743
8898
|
}>;
|
|
8744
8899
|
type WorkerAliveEventData = z.infer<typeof WorkerAliveEventSchema>;
|
|
8745
8900
|
declare const WorkerExitSchema: z.ZodObject<{
|
|
@@ -8752,14 +8907,14 @@ declare const WorkerExitSchema: z.ZodObject<{
|
|
|
8752
8907
|
}, "strip", z.ZodTypeAny, {
|
|
8753
8908
|
machineId: string;
|
|
8754
8909
|
taskId: string;
|
|
8755
|
-
eventId: string;
|
|
8756
8910
|
timestamp: string;
|
|
8911
|
+
eventId: string;
|
|
8757
8912
|
reason?: string | undefined;
|
|
8758
8913
|
}, {
|
|
8759
8914
|
machineId: string;
|
|
8760
8915
|
taskId: string;
|
|
8761
|
-
eventId: string;
|
|
8762
8916
|
timestamp: string;
|
|
8917
|
+
eventId: string;
|
|
8763
8918
|
reason?: string | undefined;
|
|
8764
8919
|
}>;
|
|
8765
8920
|
type WorkerExitEventData = z.infer<typeof WorkerExitSchema>;
|
|
@@ -8772,13 +8927,13 @@ declare const WorkerRunningSchema: z.ZodObject<{
|
|
|
8772
8927
|
}, "strip", z.ZodTypeAny, {
|
|
8773
8928
|
machineId: string;
|
|
8774
8929
|
taskId: string;
|
|
8775
|
-
eventId: string;
|
|
8776
8930
|
timestamp: string;
|
|
8931
|
+
eventId: string;
|
|
8777
8932
|
}, {
|
|
8778
8933
|
machineId: string;
|
|
8779
8934
|
taskId: string;
|
|
8780
|
-
eventId: string;
|
|
8781
8935
|
timestamp: string;
|
|
8936
|
+
eventId: string;
|
|
8782
8937
|
}>;
|
|
8783
8938
|
type WorkerRunningEventData = z.infer<typeof WorkerRunningSchema>;
|
|
8784
8939
|
declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
@@ -8788,12 +8943,12 @@ declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
|
8788
8943
|
timestamp: z.ZodString;
|
|
8789
8944
|
}, "strip", z.ZodTypeAny, {
|
|
8790
8945
|
taskId: string;
|
|
8791
|
-
eventId: string;
|
|
8792
8946
|
timestamp: string;
|
|
8947
|
+
eventId: string;
|
|
8793
8948
|
}, {
|
|
8794
8949
|
taskId: string;
|
|
8795
|
-
eventId: string;
|
|
8796
8950
|
timestamp: string;
|
|
8951
|
+
eventId: string;
|
|
8797
8952
|
}>;
|
|
8798
8953
|
type WorkerStatusRequestEventData = z.infer<typeof WorkerStatusRequestSchema>;
|
|
8799
8954
|
declare const baseTaskSchema: z.ZodObject<{
|
|
@@ -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;
|
|
@@ -8837,6 +8995,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8837
8995
|
api_base_url?: string | undefined;
|
|
8838
8996
|
api_key?: string | undefined;
|
|
8839
8997
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -8857,6 +9017,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8857
9017
|
api_base_url?: string | undefined;
|
|
8858
9018
|
api_key?: string | undefined;
|
|
8859
9019
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -8904,6 +9068,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8904
9068
|
api_base_url?: string | undefined;
|
|
8905
9069
|
api_key?: string | undefined;
|
|
8906
9070
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -8926,6 +9092,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8926
9092
|
api_base_url?: string | undefined;
|
|
8927
9093
|
api_key?: string | undefined;
|
|
8928
9094
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -8948,6 +9116,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8948
9116
|
api_base_url?: string | undefined;
|
|
8949
9117
|
api_key?: string | undefined;
|
|
8950
9118
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -8970,6 +9140,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8970
9140
|
api_base_url?: string | undefined;
|
|
8971
9141
|
api_key?: string | undefined;
|
|
8972
9142
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -9022,6 +9196,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9022
9196
|
api_base_url?: string | undefined;
|
|
9023
9197
|
api_key?: string | undefined;
|
|
9024
9198
|
maxTurns?: number | undefined;
|
|
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;
|
|
@@ -9047,6 +9223,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9047
9223
|
api_base_url?: string | undefined;
|
|
9048
9224
|
api_key?: string | undefined;
|
|
9049
9225
|
maxTurns?: number | undefined;
|
|
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
|
-
eventId: string;
|
|
9177
|
-
timestamp: string;
|
|
9178
|
-
commitHash: string;
|
|
9179
9338
|
stats: {
|
|
9180
9339
|
totalInsertions: number;
|
|
9181
9340
|
totalDeletions: number;
|
|
9182
|
-
files: {
|
|
9183
|
-
path: string;
|
|
9184
|
-
insertions: number;
|
|
9185
|
-
deletions: number;
|
|
9186
|
-
}[];
|
|
9187
9341
|
};
|
|
9342
|
+
eventId: string;
|
|
9188
9343
|
}, {
|
|
9189
9344
|
taskId: string;
|
|
9190
|
-
eventId: string;
|
|
9191
|
-
timestamp: string;
|
|
9192
|
-
commitHash: string;
|
|
9193
9345
|
stats: {
|
|
9194
9346
|
totalInsertions: number;
|
|
9195
9347
|
totalDeletions: number;
|
|
9196
|
-
files: {
|
|
9197
|
-
path: string;
|
|
9198
|
-
insertions: number;
|
|
9199
|
-
deletions: number;
|
|
9200
|
-
}[];
|
|
9201
9348
|
};
|
|
9349
|
+
eventId: string;
|
|
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
|
+
timestamp: string;
|
|
9364
|
+
eventId: string;
|
|
9365
|
+
modalName: string;
|
|
9366
|
+
modalData: Record<string, any>;
|
|
9367
|
+
chatId?: string | undefined;
|
|
9368
|
+
sequence?: number | undefined;
|
|
9369
|
+
}, {
|
|
9370
|
+
taskId: string;
|
|
9371
|
+
timestamp: string;
|
|
9372
|
+
eventId: 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;
|
|
@@ -10167,10 +10330,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10167
10330
|
newState: "open" | "closed" | "merged";
|
|
10168
10331
|
changedAt: string;
|
|
10169
10332
|
};
|
|
10170
|
-
eventId: string;
|
|
10171
10333
|
timestamp: string;
|
|
10334
|
+
eventId: 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;
|
|
@@ -10257,8 +10418,8 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10257
10418
|
newState: "open" | "closed" | "merged";
|
|
10258
10419
|
changedAt: string;
|
|
10259
10420
|
};
|
|
10260
|
-
eventId: string;
|
|
10261
10421
|
timestamp: string;
|
|
10422
|
+
eventId: string;
|
|
10262
10423
|
}>;
|
|
10263
10424
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
10264
10425
|
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
@@ -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 };
|