@agentrix/shared 2.0.2 → 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 +101 -34
- package/dist/index.d.cts +896 -346
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { SDKUserMessage, SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
import { SDKUserMessage, SDKMessage, HookCallback } from '@anthropic-ai/claude-agent-sdk';
|
|
3
3
|
import tweetnacl from 'tweetnacl';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
277
277
|
avatarUrl: string;
|
|
278
278
|
}>, "many">>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
encryptedSecret: string | null;
|
|
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;
|
|
@@ -3436,13 +3517,13 @@ type AgentCustomConfig = z.infer<typeof AgentCustomConfigSchema>;
|
|
|
3436
3517
|
*/
|
|
3437
3518
|
declare const AgentPermissionsSchema: z.ZodObject<{
|
|
3438
3519
|
role: z.ZodString;
|
|
3439
|
-
|
|
3520
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3440
3521
|
}, "strip", z.ZodTypeAny, {
|
|
3441
|
-
path: string;
|
|
3442
3522
|
role: string;
|
|
3523
|
+
paths?: string[] | undefined;
|
|
3443
3524
|
}, {
|
|
3444
|
-
path: string;
|
|
3445
3525
|
role: string;
|
|
3526
|
+
paths?: string[] | undefined;
|
|
3446
3527
|
}>;
|
|
3447
3528
|
type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
|
|
3448
3529
|
declare const AgentSchema: z.ZodObject<{
|
|
@@ -3559,23 +3640,23 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3559
3640
|
}>>;
|
|
3560
3641
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
3561
3642
|
role: z.ZodString;
|
|
3562
|
-
|
|
3643
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3563
3644
|
}, "strip", z.ZodTypeAny, {
|
|
3564
|
-
path: string;
|
|
3565
3645
|
role: string;
|
|
3646
|
+
paths?: string[] | undefined;
|
|
3566
3647
|
}, {
|
|
3567
|
-
path: string;
|
|
3568
3648
|
role: string;
|
|
3649
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
3578
3658
|
role: string;
|
|
3659
|
+
paths?: string[] | undefined;
|
|
3579
3660
|
} | null;
|
|
3580
3661
|
name: string;
|
|
3581
3662
|
description: string | null;
|
|
@@ -3609,13 +3690,13 @@ 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
|
-
path: string;
|
|
3618
3698
|
role: string;
|
|
3699
|
+
paths?: string[] | undefined;
|
|
3619
3700
|
} | null;
|
|
3620
3701
|
name: string;
|
|
3621
3702
|
description: string | null;
|
|
@@ -3767,23 +3848,23 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
3767
3848
|
}>>;
|
|
3768
3849
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
3769
3850
|
role: z.ZodString;
|
|
3770
|
-
|
|
3851
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3771
3852
|
}, "strip", z.ZodTypeAny, {
|
|
3772
|
-
path: string;
|
|
3773
3853
|
role: string;
|
|
3854
|
+
paths?: string[] | undefined;
|
|
3774
3855
|
}, {
|
|
3775
|
-
path: string;
|
|
3776
3856
|
role: string;
|
|
3857
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
3786
3866
|
role: string;
|
|
3867
|
+
paths?: string[] | undefined;
|
|
3787
3868
|
} | null;
|
|
3788
3869
|
name: string;
|
|
3789
3870
|
description: string | null;
|
|
@@ -3817,13 +3898,13 @@ 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
|
-
path: string;
|
|
3826
3906
|
role: string;
|
|
3907
|
+
paths?: string[] | undefined;
|
|
3827
3908
|
} | null;
|
|
3828
3909
|
name: string;
|
|
3829
3910
|
description: string | null;
|
|
@@ -3859,13 +3940,13 @@ 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
|
-
path: string;
|
|
3868
3948
|
role: string;
|
|
3949
|
+
paths?: string[] | undefined;
|
|
3869
3950
|
} | null;
|
|
3870
3951
|
name: string;
|
|
3871
3952
|
description: string | null;
|
|
@@ -3901,13 +3982,13 @@ 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
|
-
path: string;
|
|
3910
3990
|
role: string;
|
|
3991
|
+
paths?: string[] | undefined;
|
|
3911
3992
|
} | null;
|
|
3912
3993
|
name: string;
|
|
3913
3994
|
description: string | null;
|
|
@@ -4059,23 +4140,23 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4059
4140
|
}>>;
|
|
4060
4141
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4061
4142
|
role: z.ZodString;
|
|
4062
|
-
|
|
4143
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4063
4144
|
}, "strip", z.ZodTypeAny, {
|
|
4064
|
-
path: string;
|
|
4065
4145
|
role: string;
|
|
4146
|
+
paths?: string[] | undefined;
|
|
4066
4147
|
}, {
|
|
4067
|
-
path: string;
|
|
4068
4148
|
role: string;
|
|
4149
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
4078
4158
|
role: string;
|
|
4159
|
+
paths?: string[] | undefined;
|
|
4079
4160
|
} | null;
|
|
4080
4161
|
name: string;
|
|
4081
4162
|
description: string | null;
|
|
@@ -4109,13 +4190,13 @@ 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
|
-
path: string;
|
|
4118
4198
|
role: string;
|
|
4199
|
+
paths?: string[] | undefined;
|
|
4119
4200
|
} | null;
|
|
4120
4201
|
name: string;
|
|
4121
4202
|
description: string | null;
|
|
@@ -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;
|
|
@@ -4440,23 +4521,23 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4440
4521
|
}>>;
|
|
4441
4522
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4442
4523
|
role: z.ZodString;
|
|
4443
|
-
|
|
4524
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4444
4525
|
}, "strip", z.ZodTypeAny, {
|
|
4445
|
-
path: string;
|
|
4446
4526
|
role: string;
|
|
4527
|
+
paths?: string[] | undefined;
|
|
4447
4528
|
}, {
|
|
4448
|
-
path: string;
|
|
4449
4529
|
role: string;
|
|
4530
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
4459
4539
|
role: string;
|
|
4540
|
+
paths?: string[] | undefined;
|
|
4460
4541
|
} | null;
|
|
4461
4542
|
name: string;
|
|
4462
4543
|
description: string | null;
|
|
@@ -4490,13 +4571,13 @@ 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
|
-
path: string;
|
|
4499
4579
|
role: string;
|
|
4580
|
+
paths?: string[] | undefined;
|
|
4500
4581
|
} | null;
|
|
4501
4582
|
name: string;
|
|
4502
4583
|
description: string | null;
|
|
@@ -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;
|
|
@@ -4821,23 +4902,23 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
4821
4902
|
}>>;
|
|
4822
4903
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
4823
4904
|
role: z.ZodString;
|
|
4824
|
-
|
|
4905
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4825
4906
|
}, "strip", z.ZodTypeAny, {
|
|
4826
|
-
path: string;
|
|
4827
4907
|
role: string;
|
|
4908
|
+
paths?: string[] | undefined;
|
|
4828
4909
|
}, {
|
|
4829
|
-
path: string;
|
|
4830
4910
|
role: string;
|
|
4911
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
4840
4920
|
role: string;
|
|
4921
|
+
paths?: string[] | undefined;
|
|
4841
4922
|
} | null;
|
|
4842
4923
|
name: string;
|
|
4843
4924
|
description: string | null;
|
|
@@ -4871,13 +4952,13 @@ 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
|
-
path: string;
|
|
4880
4960
|
role: string;
|
|
4961
|
+
paths?: string[] | undefined;
|
|
4881
4962
|
} | null;
|
|
4882
4963
|
name: string;
|
|
4883
4964
|
description: string | 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;
|
|
5231
|
+
}>;
|
|
5232
|
+
type CreateDraftAgentRequest = z.infer<typeof CreateDraftAgentRequestSchema>;
|
|
5233
|
+
/**
|
|
5234
|
+
* Request schema for setting environment variable values
|
|
5235
|
+
*/
|
|
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>;
|
|
5153
5259
|
}>;
|
|
5154
|
-
type
|
|
5260
|
+
type GetEnvironmentVariablesResponse = z.infer<typeof GetEnvironmentVariablesResponseSchema>;
|
|
5155
5261
|
/**
|
|
5156
|
-
* Agent
|
|
5262
|
+
* Draft Agent API response schema
|
|
5157
5263
|
*/
|
|
5158
|
-
declare const
|
|
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;
|
|
@@ -5303,13 +5403,13 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5303
5403
|
}>>;
|
|
5304
5404
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5305
5405
|
role: z.ZodString;
|
|
5306
|
-
|
|
5406
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5307
5407
|
}, "strip", z.ZodTypeAny, {
|
|
5308
|
-
path: string;
|
|
5309
5408
|
role: string;
|
|
5409
|
+
paths?: string[] | undefined;
|
|
5310
5410
|
}, {
|
|
5311
|
-
path: string;
|
|
5312
5411
|
role: string;
|
|
5412
|
+
paths?: string[] | undefined;
|
|
5313
5413
|
}>>;
|
|
5314
5414
|
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5315
5415
|
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -5322,16 +5422,14 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5322
5422
|
createdAt: string;
|
|
5323
5423
|
userId: string;
|
|
5324
5424
|
permissions: {
|
|
5325
|
-
path: string;
|
|
5326
5425
|
role: string;
|
|
5426
|
+
paths?: string[] | undefined;
|
|
5327
5427
|
} | null;
|
|
5328
5428
|
updatedAt: string;
|
|
5329
5429
|
name: string;
|
|
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;
|
|
@@ -5370,8 +5468,8 @@ declare const AgentBuilderSchema: z.ZodObject<{
|
|
|
5370
5468
|
createdAt: string;
|
|
5371
5469
|
userId: string;
|
|
5372
5470
|
permissions: {
|
|
5373
|
-
path: string;
|
|
5374
5471
|
role: string;
|
|
5472
|
+
paths?: string[] | undefined;
|
|
5375
5473
|
} | null;
|
|
5376
5474
|
updatedAt: string;
|
|
5377
5475
|
name: string;
|
|
@@ -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<{
|
|
@@ -5531,23 +5627,23 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5531
5627
|
}>>;
|
|
5532
5628
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5533
5629
|
role: z.ZodString;
|
|
5534
|
-
|
|
5630
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5535
5631
|
}, "strip", z.ZodTypeAny, {
|
|
5536
|
-
path: string;
|
|
5537
5632
|
role: string;
|
|
5633
|
+
paths?: string[] | undefined;
|
|
5538
5634
|
}, {
|
|
5539
|
-
path: string;
|
|
5540
5635
|
role: string;
|
|
5636
|
+
paths?: string[] | undefined;
|
|
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
|
-
path: string;
|
|
5550
5645
|
role: string;
|
|
5646
|
+
paths?: string[] | undefined;
|
|
5551
5647
|
} | null;
|
|
5552
5648
|
name: string;
|
|
5553
5649
|
description: string | null;
|
|
@@ -5581,13 +5677,13 @@ 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
|
-
path: string;
|
|
5590
5685
|
role: string;
|
|
5686
|
+
paths?: string[] | undefined;
|
|
5591
5687
|
} | null;
|
|
5592
5688
|
name: string;
|
|
5593
5689
|
description: string | null;
|
|
@@ -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;
|
|
@@ -5768,13 +5858,13 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5768
5858
|
}>>;
|
|
5769
5859
|
permissions: z.ZodNullable<z.ZodObject<{
|
|
5770
5860
|
role: z.ZodString;
|
|
5771
|
-
|
|
5861
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5772
5862
|
}, "strip", z.ZodTypeAny, {
|
|
5773
|
-
path: string;
|
|
5774
5863
|
role: string;
|
|
5864
|
+
paths?: string[] | undefined;
|
|
5775
5865
|
}, {
|
|
5776
|
-
path: string;
|
|
5777
5866
|
role: string;
|
|
5867
|
+
paths?: string[] | undefined;
|
|
5778
5868
|
}>>;
|
|
5779
5869
|
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
5780
5870
|
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
@@ -5787,16 +5877,14 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5787
5877
|
createdAt: string;
|
|
5788
5878
|
userId: string;
|
|
5789
5879
|
permissions: {
|
|
5790
|
-
path: string;
|
|
5791
5880
|
role: string;
|
|
5881
|
+
paths?: string[] | undefined;
|
|
5792
5882
|
} | null;
|
|
5793
5883
|
updatedAt: string;
|
|
5794
5884
|
name: string;
|
|
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;
|
|
@@ -5835,8 +5923,8 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
5835
5923
|
createdAt: string;
|
|
5836
5924
|
userId: string;
|
|
5837
5925
|
permissions: {
|
|
5838
|
-
path: string;
|
|
5839
5926
|
role: string;
|
|
5927
|
+
paths?: string[] | undefined;
|
|
5840
5928
|
} | null;
|
|
5841
5929
|
updatedAt: string;
|
|
5842
5930
|
name: string;
|
|
@@ -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,13 +5966,13 @@ 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
|
-
path: string;
|
|
5889
5974
|
role: string;
|
|
5975
|
+
paths?: string[] | undefined;
|
|
5890
5976
|
} | null;
|
|
5891
5977
|
name: string;
|
|
5892
5978
|
description: string | null;
|
|
@@ -5919,23 +6005,21 @@ 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;
|
|
5926
6012
|
createdAt: string;
|
|
5927
6013
|
userId: string;
|
|
5928
6014
|
permissions: {
|
|
5929
|
-
path: string;
|
|
5930
6015
|
role: string;
|
|
6016
|
+
paths?: string[] | undefined;
|
|
5931
6017
|
} | null;
|
|
5932
6018
|
updatedAt: string;
|
|
5933
6019
|
name: string;
|
|
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,13 +6055,13 @@ 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
|
-
path: string;
|
|
5980
6063
|
role: string;
|
|
6064
|
+
paths?: string[] | undefined;
|
|
5981
6065
|
} | null;
|
|
5982
6066
|
name: string;
|
|
5983
6067
|
description: string | null;
|
|
@@ -6010,15 +6094,15 @@ 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;
|
|
6017
6101
|
createdAt: string;
|
|
6018
6102
|
userId: string;
|
|
6019
6103
|
permissions: {
|
|
6020
|
-
path: string;
|
|
6021
6104
|
role: string;
|
|
6105
|
+
paths?: string[] | undefined;
|
|
6022
6106
|
} | null;
|
|
6023
6107
|
updatedAt: string;
|
|
6024
6108
|
name: string;
|
|
@@ -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;
|
|
@@ -6686,10 +6768,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
6686
6768
|
name: string;
|
|
6687
6769
|
description: string | null;
|
|
6688
6770
|
owner: string;
|
|
6771
|
+
url: string;
|
|
6689
6772
|
fullName: string;
|
|
6690
6773
|
defaultBranch: string;
|
|
6691
6774
|
isPrivate: boolean;
|
|
6692
|
-
url: string;
|
|
6693
6775
|
gitServerId: string;
|
|
6694
6776
|
}, {
|
|
6695
6777
|
id: string;
|
|
@@ -6698,10 +6780,10 @@ declare const RepositorySchema: z.ZodObject<{
|
|
|
6698
6780
|
name: string;
|
|
6699
6781
|
description: string | null;
|
|
6700
6782
|
owner: string;
|
|
6783
|
+
url: string;
|
|
6701
6784
|
fullName: string;
|
|
6702
6785
|
defaultBranch: string;
|
|
6703
6786
|
isPrivate: boolean;
|
|
6704
|
-
url: string;
|
|
6705
6787
|
gitServerId: string;
|
|
6706
6788
|
}>;
|
|
6707
6789
|
type Repository = z.infer<typeof RepositorySchema>;
|
|
@@ -6728,10 +6810,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6728
6810
|
name: string;
|
|
6729
6811
|
description: string | null;
|
|
6730
6812
|
owner: string;
|
|
6813
|
+
url: string;
|
|
6731
6814
|
fullName: string;
|
|
6732
6815
|
defaultBranch: string;
|
|
6733
6816
|
isPrivate: boolean;
|
|
6734
|
-
url: string;
|
|
6735
6817
|
gitServerId: string;
|
|
6736
6818
|
}, {
|
|
6737
6819
|
id: string;
|
|
@@ -6740,10 +6822,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6740
6822
|
name: string;
|
|
6741
6823
|
description: string | null;
|
|
6742
6824
|
owner: string;
|
|
6825
|
+
url: string;
|
|
6743
6826
|
fullName: string;
|
|
6744
6827
|
defaultBranch: string;
|
|
6745
6828
|
isPrivate: boolean;
|
|
6746
|
-
url: string;
|
|
6747
6829
|
gitServerId: string;
|
|
6748
6830
|
}>, "many">;
|
|
6749
6831
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6754,10 +6836,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6754
6836
|
name: string;
|
|
6755
6837
|
description: string | null;
|
|
6756
6838
|
owner: string;
|
|
6839
|
+
url: string;
|
|
6757
6840
|
fullName: string;
|
|
6758
6841
|
defaultBranch: string;
|
|
6759
6842
|
isPrivate: boolean;
|
|
6760
|
-
url: string;
|
|
6761
6843
|
gitServerId: string;
|
|
6762
6844
|
}[];
|
|
6763
6845
|
}, {
|
|
@@ -6768,10 +6850,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
|
|
|
6768
6850
|
name: string;
|
|
6769
6851
|
description: string | null;
|
|
6770
6852
|
owner: string;
|
|
6853
|
+
url: string;
|
|
6771
6854
|
fullName: string;
|
|
6772
6855
|
defaultBranch: string;
|
|
6773
6856
|
isPrivate: boolean;
|
|
6774
|
-
url: string;
|
|
6775
6857
|
gitServerId: string;
|
|
6776
6858
|
}[];
|
|
6777
6859
|
}>;
|
|
@@ -6799,10 +6881,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6799
6881
|
name: string;
|
|
6800
6882
|
description: string | null;
|
|
6801
6883
|
owner: string;
|
|
6884
|
+
url: string;
|
|
6802
6885
|
fullName: string;
|
|
6803
6886
|
defaultBranch: string;
|
|
6804
6887
|
isPrivate: boolean;
|
|
6805
|
-
url: string;
|
|
6806
6888
|
gitServerId: string;
|
|
6807
6889
|
}, {
|
|
6808
6890
|
id: string;
|
|
@@ -6811,10 +6893,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6811
6893
|
name: string;
|
|
6812
6894
|
description: string | null;
|
|
6813
6895
|
owner: string;
|
|
6896
|
+
url: string;
|
|
6814
6897
|
fullName: string;
|
|
6815
6898
|
defaultBranch: string;
|
|
6816
6899
|
isPrivate: boolean;
|
|
6817
|
-
url: string;
|
|
6818
6900
|
gitServerId: string;
|
|
6819
6901
|
}>;
|
|
6820
6902
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6825,10 +6907,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6825
6907
|
name: string;
|
|
6826
6908
|
description: string | null;
|
|
6827
6909
|
owner: string;
|
|
6910
|
+
url: string;
|
|
6828
6911
|
fullName: string;
|
|
6829
6912
|
defaultBranch: string;
|
|
6830
6913
|
isPrivate: boolean;
|
|
6831
|
-
url: string;
|
|
6832
6914
|
gitServerId: string;
|
|
6833
6915
|
};
|
|
6834
6916
|
}, {
|
|
@@ -6839,10 +6921,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
|
|
|
6839
6921
|
name: string;
|
|
6840
6922
|
description: string | null;
|
|
6841
6923
|
owner: string;
|
|
6924
|
+
url: string;
|
|
6842
6925
|
fullName: string;
|
|
6843
6926
|
defaultBranch: string;
|
|
6844
6927
|
isPrivate: boolean;
|
|
6845
|
-
url: string;
|
|
6846
6928
|
gitServerId: string;
|
|
6847
6929
|
};
|
|
6848
6930
|
}>;
|
|
@@ -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;
|
|
@@ -8529,6 +8611,10 @@ declare const AskUserMessageSchema: z.ZodObject<{
|
|
|
8529
8611
|
}[];
|
|
8530
8612
|
}>;
|
|
8531
8613
|
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
8614
|
+
declare const AskUserResponseStatusSchema: z.ZodEnum<["answered", "cancelled", "timeout"]>;
|
|
8615
|
+
declare const AskUserResponseReasonSchema: z.ZodEnum<["user", "timeout", "system"]>;
|
|
8616
|
+
type AskUserResponseStatus = z.infer<typeof AskUserResponseStatusSchema>;
|
|
8617
|
+
type AskUserResponseReason = z.infer<typeof AskUserResponseReasonSchema>;
|
|
8532
8618
|
/**
|
|
8533
8619
|
* Ask user response payload (App → Worker)
|
|
8534
8620
|
* Each answer is:
|
|
@@ -8538,64 +8624,143 @@ type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
|
8538
8624
|
declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
8539
8625
|
type: z.ZodLiteral<"ask_user_response">;
|
|
8540
8626
|
answers: z.ZodArray<z.ZodString, "many">;
|
|
8627
|
+
status: z.ZodOptional<z.ZodEnum<["answered", "cancelled", "timeout"]>>;
|
|
8628
|
+
reason: z.ZodOptional<z.ZodEnum<["user", "timeout", "system"]>>;
|
|
8541
8629
|
}, "strip", z.ZodTypeAny, {
|
|
8542
8630
|
type: "ask_user_response";
|
|
8543
8631
|
answers: string[];
|
|
8632
|
+
status?: "answered" | "cancelled" | "timeout" | undefined;
|
|
8633
|
+
reason?: "user" | "timeout" | "system" | undefined;
|
|
8544
8634
|
}, {
|
|
8545
8635
|
type: "ask_user_response";
|
|
8546
8636
|
answers: string[];
|
|
8637
|
+
status?: "answered" | "cancelled" | "timeout" | undefined;
|
|
8638
|
+
reason?: "user" | "timeout" | "system" | undefined;
|
|
8547
8639
|
}>;
|
|
8548
8640
|
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
8549
8641
|
/**
|
|
8550
|
-
*
|
|
8551
|
-
* - SDKMessage: Normal agent messages
|
|
8552
|
-
* - AskUserMessage: Worker asking user questions
|
|
8553
|
-
* - AskUserResponseMessage: User responding to questions
|
|
8554
|
-
*/
|
|
8555
|
-
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
|
|
8556
|
-
/**
|
|
8557
|
-
* Type guard to check if message is AskUserMessage
|
|
8558
|
-
*/
|
|
8559
|
-
declare function isAskUserMessage(message: TaskMessagePayload): message is AskUserMessage;
|
|
8560
|
-
/**
|
|
8561
|
-
* Type guard to check if message is AskUserResponseMessage
|
|
8562
|
-
*/
|
|
8563
|
-
declare function isAskUserResponseMessage(message: TaskMessagePayload): message is AskUserResponseMessage;
|
|
8564
|
-
/**
|
|
8565
|
-
* Type guard to check if message is SDKMessage (not ask_user related)
|
|
8566
|
-
*/
|
|
8567
|
-
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
8568
|
-
/**
|
|
8569
|
-
* Generate a unique event ID
|
|
8570
|
-
* Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
|
|
8642
|
+
* Task artifacts message payload (Worker → App)
|
|
8571
8643
|
*/
|
|
8572
|
-
declare const
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
} & {
|
|
8576
|
-
status: z.ZodEnum<["success", "failed"]>;
|
|
8577
|
-
message: z.ZodOptional<z.ZodString>;
|
|
8578
|
-
opCode: z.ZodOptional<z.ZodString>;
|
|
8579
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
8580
|
-
}, "strip", z.ZodTypeAny, {
|
|
8581
|
-
status: "success" | "failed";
|
|
8582
|
-
eventId: string;
|
|
8583
|
-
message?: string | undefined;
|
|
8584
|
-
data?: any;
|
|
8585
|
-
opCode?: string | undefined;
|
|
8586
|
-
}, {
|
|
8587
|
-
status: "success" | "failed";
|
|
8588
|
-
eventId: string;
|
|
8589
|
-
message?: string | undefined;
|
|
8590
|
-
data?: any;
|
|
8591
|
-
opCode?: string | undefined;
|
|
8592
|
-
}>;
|
|
8593
|
-
type EventAckData = z.infer<typeof EventAckSchema>;
|
|
8594
|
-
declare const AppAliveEventSchema: z.ZodObject<{
|
|
8595
|
-
eventId: z.ZodString;
|
|
8596
|
-
} & {
|
|
8644
|
+
declare const TaskArtifactsMessageSchema: z.ZodObject<{
|
|
8645
|
+
type: z.ZodLiteral<"task_artifacts_updated">;
|
|
8646
|
+
commitHash: z.ZodString;
|
|
8597
8647
|
timestamp: z.ZodString;
|
|
8598
|
-
|
|
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>;
|
|
8709
|
+
/**
|
|
8710
|
+
* Union type for task message payload
|
|
8711
|
+
* - SDKMessage: Normal agent messages
|
|
8712
|
+
* - AskUserMessage: Worker asking user questions
|
|
8713
|
+
* - AskUserResponseMessage: User responding to questions
|
|
8714
|
+
* - TaskArtifactsMessage: Worker artifact updates
|
|
8715
|
+
*/
|
|
8716
|
+
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage | TaskArtifactsMessage;
|
|
8717
|
+
/**
|
|
8718
|
+
* Type guard to check if message is AskUserMessage
|
|
8719
|
+
*/
|
|
8720
|
+
declare function isAskUserMessage(message: TaskMessagePayload): message is AskUserMessage;
|
|
8721
|
+
/**
|
|
8722
|
+
* Type guard to check if message is AskUserResponseMessage
|
|
8723
|
+
*/
|
|
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;
|
|
8729
|
+
/**
|
|
8730
|
+
* Type guard to check if message is SDKMessage (not ask_user related)
|
|
8731
|
+
*/
|
|
8732
|
+
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
8733
|
+
/**
|
|
8734
|
+
* Generate a unique event ID
|
|
8735
|
+
* Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
|
|
8736
|
+
*/
|
|
8737
|
+
declare const createEventId: () => string;
|
|
8738
|
+
declare const EventAckSchema: z.ZodObject<{
|
|
8739
|
+
eventId: z.ZodString;
|
|
8740
|
+
} & {
|
|
8741
|
+
status: z.ZodEnum<["success", "failed"]>;
|
|
8742
|
+
message: z.ZodOptional<z.ZodString>;
|
|
8743
|
+
opCode: z.ZodOptional<z.ZodString>;
|
|
8744
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
8745
|
+
}, "strip", z.ZodTypeAny, {
|
|
8746
|
+
status: "success" | "failed";
|
|
8747
|
+
eventId: string;
|
|
8748
|
+
message?: string | undefined;
|
|
8749
|
+
data?: any;
|
|
8750
|
+
opCode?: string | undefined;
|
|
8751
|
+
}, {
|
|
8752
|
+
status: "success" | "failed";
|
|
8753
|
+
eventId: string;
|
|
8754
|
+
message?: string | undefined;
|
|
8755
|
+
data?: any;
|
|
8756
|
+
opCode?: string | undefined;
|
|
8757
|
+
}>;
|
|
8758
|
+
type EventAckData = z.infer<typeof EventAckSchema>;
|
|
8759
|
+
declare const AppAliveEventSchema: z.ZodObject<{
|
|
8760
|
+
eventId: z.ZodString;
|
|
8761
|
+
} & {
|
|
8762
|
+
timestamp: z.ZodString;
|
|
8763
|
+
}, "strip", z.ZodTypeAny, {
|
|
8599
8764
|
eventId: string;
|
|
8600
8765
|
timestamp: string;
|
|
8601
8766
|
}, {
|
|
@@ -8799,6 +8964,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8799
8964
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8800
8965
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8801
8966
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
8967
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8802
8968
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8803
8969
|
model: z.ZodOptional<z.ZodString>;
|
|
8804
8970
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8807,6 +8973,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8807
8973
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8808
8974
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8809
8975
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
8976
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8810
8977
|
}, "strip", z.ZodTypeAny, {
|
|
8811
8978
|
userId: string;
|
|
8812
8979
|
taskId: string;
|
|
@@ -8815,6 +8982,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8815
8982
|
eventId: string;
|
|
8816
8983
|
agentType: string;
|
|
8817
8984
|
cwd?: string | undefined;
|
|
8985
|
+
forceUserCwd?: boolean | undefined;
|
|
8818
8986
|
repositoryId?: string | undefined;
|
|
8819
8987
|
baseBranch?: string | undefined;
|
|
8820
8988
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8824,9 +8992,10 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8824
8992
|
gitUrl?: string | undefined;
|
|
8825
8993
|
model?: string | undefined;
|
|
8826
8994
|
fallbackModel?: string | undefined;
|
|
8995
|
+
maxTurns?: number | undefined;
|
|
8827
8996
|
api_base_url?: string | undefined;
|
|
8828
8997
|
api_key?: string | undefined;
|
|
8829
|
-
|
|
8998
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8830
8999
|
}, {
|
|
8831
9000
|
userId: string;
|
|
8832
9001
|
taskId: string;
|
|
@@ -8834,6 +9003,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8834
9003
|
agentId: string;
|
|
8835
9004
|
eventId: string;
|
|
8836
9005
|
cwd?: string | undefined;
|
|
9006
|
+
forceUserCwd?: boolean | undefined;
|
|
8837
9007
|
repositoryId?: string | undefined;
|
|
8838
9008
|
baseBranch?: string | undefined;
|
|
8839
9009
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8841,12 +9011,13 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
8841
9011
|
userCwd?: string | undefined;
|
|
8842
9012
|
agentDir?: string | undefined;
|
|
8843
9013
|
gitUrl?: string | undefined;
|
|
8844
|
-
agentType?: string | undefined;
|
|
8845
9014
|
model?: string | undefined;
|
|
8846
9015
|
fallbackModel?: string | undefined;
|
|
9016
|
+
maxTurns?: number | undefined;
|
|
9017
|
+
agentType?: string | undefined;
|
|
8847
9018
|
api_base_url?: string | undefined;
|
|
8848
9019
|
api_key?: string | undefined;
|
|
8849
|
-
|
|
9020
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8850
9021
|
}>;
|
|
8851
9022
|
declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
8852
9023
|
eventId: z.ZodString;
|
|
@@ -8861,6 +9032,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8861
9032
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8862
9033
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8863
9034
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
9035
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8864
9036
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8865
9037
|
model: z.ZodOptional<z.ZodString>;
|
|
8866
9038
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8869,6 +9041,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8869
9041
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8870
9042
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8871
9043
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9044
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8872
9045
|
} & {
|
|
8873
9046
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
8874
9047
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
@@ -8882,6 +9055,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8882
9055
|
message?: SDKUserMessage | undefined;
|
|
8883
9056
|
encryptedMessage?: string | undefined;
|
|
8884
9057
|
cwd?: string | undefined;
|
|
9058
|
+
forceUserCwd?: boolean | undefined;
|
|
8885
9059
|
repositoryId?: string | undefined;
|
|
8886
9060
|
baseBranch?: string | undefined;
|
|
8887
9061
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8891,9 +9065,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8891
9065
|
gitUrl?: string | undefined;
|
|
8892
9066
|
model?: string | undefined;
|
|
8893
9067
|
fallbackModel?: string | undefined;
|
|
9068
|
+
maxTurns?: number | undefined;
|
|
8894
9069
|
api_base_url?: string | undefined;
|
|
8895
9070
|
api_key?: string | undefined;
|
|
8896
|
-
|
|
9071
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8897
9072
|
}, {
|
|
8898
9073
|
userId: string;
|
|
8899
9074
|
taskId: string;
|
|
@@ -8903,6 +9078,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8903
9078
|
message?: SDKUserMessage | undefined;
|
|
8904
9079
|
encryptedMessage?: string | undefined;
|
|
8905
9080
|
cwd?: string | undefined;
|
|
9081
|
+
forceUserCwd?: boolean | undefined;
|
|
8906
9082
|
repositoryId?: string | undefined;
|
|
8907
9083
|
baseBranch?: string | undefined;
|
|
8908
9084
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8910,12 +9086,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8910
9086
|
userCwd?: string | undefined;
|
|
8911
9087
|
agentDir?: string | undefined;
|
|
8912
9088
|
gitUrl?: string | undefined;
|
|
8913
|
-
agentType?: string | undefined;
|
|
8914
9089
|
model?: string | undefined;
|
|
8915
9090
|
fallbackModel?: string | undefined;
|
|
9091
|
+
maxTurns?: number | undefined;
|
|
9092
|
+
agentType?: string | undefined;
|
|
8916
9093
|
api_base_url?: string | undefined;
|
|
8917
9094
|
api_key?: string | undefined;
|
|
8918
|
-
|
|
9095
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8919
9096
|
}>, {
|
|
8920
9097
|
userId: string;
|
|
8921
9098
|
taskId: string;
|
|
@@ -8926,6 +9103,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8926
9103
|
message?: SDKUserMessage | undefined;
|
|
8927
9104
|
encryptedMessage?: string | undefined;
|
|
8928
9105
|
cwd?: string | undefined;
|
|
9106
|
+
forceUserCwd?: boolean | undefined;
|
|
8929
9107
|
repositoryId?: string | undefined;
|
|
8930
9108
|
baseBranch?: string | undefined;
|
|
8931
9109
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8935,9 +9113,10 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8935
9113
|
gitUrl?: string | undefined;
|
|
8936
9114
|
model?: string | undefined;
|
|
8937
9115
|
fallbackModel?: string | undefined;
|
|
9116
|
+
maxTurns?: number | undefined;
|
|
8938
9117
|
api_base_url?: string | undefined;
|
|
8939
9118
|
api_key?: string | undefined;
|
|
8940
|
-
|
|
9119
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8941
9120
|
}, {
|
|
8942
9121
|
userId: string;
|
|
8943
9122
|
taskId: string;
|
|
@@ -8947,6 +9126,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8947
9126
|
message?: SDKUserMessage | undefined;
|
|
8948
9127
|
encryptedMessage?: string | undefined;
|
|
8949
9128
|
cwd?: string | undefined;
|
|
9129
|
+
forceUserCwd?: boolean | undefined;
|
|
8950
9130
|
repositoryId?: string | undefined;
|
|
8951
9131
|
baseBranch?: string | undefined;
|
|
8952
9132
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -8954,12 +9134,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
8954
9134
|
userCwd?: string | undefined;
|
|
8955
9135
|
agentDir?: string | undefined;
|
|
8956
9136
|
gitUrl?: string | undefined;
|
|
8957
|
-
agentType?: string | undefined;
|
|
8958
9137
|
model?: string | undefined;
|
|
8959
9138
|
fallbackModel?: string | undefined;
|
|
9139
|
+
maxTurns?: number | undefined;
|
|
9140
|
+
agentType?: string | undefined;
|
|
8960
9141
|
api_base_url?: string | undefined;
|
|
8961
9142
|
api_key?: string | undefined;
|
|
8962
|
-
|
|
9143
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
8963
9144
|
}>;
|
|
8964
9145
|
type CreateTaskEventData = z.infer<typeof createTaskSchema>;
|
|
8965
9146
|
declare const resumeTaskSchema: z.ZodObject<{
|
|
@@ -8975,6 +9156,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
8975
9156
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
8976
9157
|
cwd: z.ZodOptional<z.ZodString>;
|
|
8977
9158
|
userCwd: z.ZodOptional<z.ZodString>;
|
|
9159
|
+
forceUserCwd: z.ZodOptional<z.ZodBoolean>;
|
|
8978
9160
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
8979
9161
|
model: z.ZodOptional<z.ZodString>;
|
|
8980
9162
|
fallbackModel: z.ZodOptional<z.ZodString>;
|
|
@@ -8983,6 +9165,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
8983
9165
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
8984
9166
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
8985
9167
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
9168
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8986
9169
|
} & {
|
|
8987
9170
|
agentSessionId: z.ZodString;
|
|
8988
9171
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -9000,6 +9183,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9000
9183
|
message?: SDKUserMessage | undefined;
|
|
9001
9184
|
encryptedMessage?: string | undefined;
|
|
9002
9185
|
cwd?: string | undefined;
|
|
9186
|
+
forceUserCwd?: boolean | undefined;
|
|
9003
9187
|
repositoryId?: string | undefined;
|
|
9004
9188
|
baseBranch?: string | undefined;
|
|
9005
9189
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -9009,9 +9193,10 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9009
9193
|
gitUrl?: string | undefined;
|
|
9010
9194
|
model?: string | undefined;
|
|
9011
9195
|
fallbackModel?: string | undefined;
|
|
9196
|
+
maxTurns?: number | undefined;
|
|
9012
9197
|
api_base_url?: string | undefined;
|
|
9013
9198
|
api_key?: string | undefined;
|
|
9014
|
-
|
|
9199
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
9015
9200
|
event?: string | undefined;
|
|
9016
9201
|
eventData?: any;
|
|
9017
9202
|
}, {
|
|
@@ -9024,6 +9209,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9024
9209
|
message?: SDKUserMessage | undefined;
|
|
9025
9210
|
encryptedMessage?: string | undefined;
|
|
9026
9211
|
cwd?: string | undefined;
|
|
9212
|
+
forceUserCwd?: boolean | undefined;
|
|
9027
9213
|
repositoryId?: string | undefined;
|
|
9028
9214
|
baseBranch?: string | undefined;
|
|
9029
9215
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
@@ -9031,12 +9217,13 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9031
9217
|
userCwd?: string | undefined;
|
|
9032
9218
|
agentDir?: string | undefined;
|
|
9033
9219
|
gitUrl?: string | undefined;
|
|
9034
|
-
agentType?: string | undefined;
|
|
9035
9220
|
model?: string | undefined;
|
|
9036
9221
|
fallbackModel?: string | undefined;
|
|
9222
|
+
maxTurns?: number | undefined;
|
|
9223
|
+
agentType?: string | undefined;
|
|
9037
9224
|
api_base_url?: string | undefined;
|
|
9038
9225
|
api_key?: string | undefined;
|
|
9039
|
-
|
|
9226
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
9040
9227
|
event?: string | undefined;
|
|
9041
9228
|
eventData?: any;
|
|
9042
9229
|
}>;
|
|
@@ -9084,8 +9271,10 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9084
9271
|
eventId: z.ZodString;
|
|
9085
9272
|
} & {
|
|
9086
9273
|
taskId: z.ZodString;
|
|
9274
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
9087
9275
|
from: z.ZodEnum<["app", "api-server", "machine", "worker"]>;
|
|
9088
9276
|
opCode: z.ZodOptional<z.ZodString>;
|
|
9277
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
9089
9278
|
message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
|
|
9090
9279
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9091
9280
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9093,29 +9282,37 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9093
9282
|
eventId: string;
|
|
9094
9283
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9095
9284
|
message?: TaskMessagePayload | undefined;
|
|
9285
|
+
chatId?: string | undefined;
|
|
9096
9286
|
encryptedMessage?: string | undefined;
|
|
9097
9287
|
opCode?: string | undefined;
|
|
9288
|
+
sequence?: number | undefined;
|
|
9098
9289
|
}, {
|
|
9099
9290
|
taskId: string;
|
|
9100
9291
|
eventId: string;
|
|
9101
9292
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9102
9293
|
message?: TaskMessagePayload | undefined;
|
|
9294
|
+
chatId?: string | undefined;
|
|
9103
9295
|
encryptedMessage?: string | undefined;
|
|
9104
9296
|
opCode?: string | undefined;
|
|
9297
|
+
sequence?: number | undefined;
|
|
9105
9298
|
}>, {
|
|
9106
9299
|
taskId: string;
|
|
9107
9300
|
eventId: string;
|
|
9108
9301
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9109
9302
|
message?: TaskMessagePayload | undefined;
|
|
9303
|
+
chatId?: string | undefined;
|
|
9110
9304
|
encryptedMessage?: string | undefined;
|
|
9111
9305
|
opCode?: string | undefined;
|
|
9306
|
+
sequence?: number | undefined;
|
|
9112
9307
|
}, {
|
|
9113
9308
|
taskId: string;
|
|
9114
9309
|
eventId: string;
|
|
9115
9310
|
from: "machine" | "app" | "api-server" | "worker";
|
|
9116
9311
|
message?: TaskMessagePayload | undefined;
|
|
9312
|
+
chatId?: string | undefined;
|
|
9117
9313
|
encryptedMessage?: string | undefined;
|
|
9118
9314
|
opCode?: string | undefined;
|
|
9315
|
+
sequence?: number | undefined;
|
|
9119
9316
|
}>;
|
|
9120
9317
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
9121
9318
|
/**
|
|
@@ -9126,71 +9323,59 @@ declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
|
|
|
9126
9323
|
eventId: z.ZodString;
|
|
9127
9324
|
} & {
|
|
9128
9325
|
taskId: z.ZodString;
|
|
9129
|
-
commitHash: z.ZodString;
|
|
9130
|
-
timestamp: z.ZodString;
|
|
9131
9326
|
stats: z.ZodObject<{
|
|
9132
9327
|
totalInsertions: z.ZodNumber;
|
|
9133
9328
|
totalDeletions: z.ZodNumber;
|
|
9134
|
-
files: z.ZodArray<z.ZodObject<{
|
|
9135
|
-
path: z.ZodString;
|
|
9136
|
-
insertions: z.ZodNumber;
|
|
9137
|
-
deletions: z.ZodNumber;
|
|
9138
|
-
}, "strip", z.ZodTypeAny, {
|
|
9139
|
-
path: string;
|
|
9140
|
-
insertions: number;
|
|
9141
|
-
deletions: number;
|
|
9142
|
-
}, {
|
|
9143
|
-
path: string;
|
|
9144
|
-
insertions: number;
|
|
9145
|
-
deletions: number;
|
|
9146
|
-
}>, "many">;
|
|
9147
9329
|
}, "strip", z.ZodTypeAny, {
|
|
9148
9330
|
totalInsertions: number;
|
|
9149
9331
|
totalDeletions: number;
|
|
9150
|
-
files: {
|
|
9151
|
-
path: string;
|
|
9152
|
-
insertions: number;
|
|
9153
|
-
deletions: number;
|
|
9154
|
-
}[];
|
|
9155
9332
|
}, {
|
|
9156
9333
|
totalInsertions: number;
|
|
9157
9334
|
totalDeletions: number;
|
|
9158
|
-
files: {
|
|
9159
|
-
path: string;
|
|
9160
|
-
insertions: number;
|
|
9161
|
-
deletions: number;
|
|
9162
|
-
}[];
|
|
9163
9335
|
}>;
|
|
9164
9336
|
}, "strip", z.ZodTypeAny, {
|
|
9165
9337
|
taskId: string;
|
|
9166
9338
|
eventId: string;
|
|
9167
|
-
timestamp: string;
|
|
9168
|
-
commitHash: string;
|
|
9169
9339
|
stats: {
|
|
9170
9340
|
totalInsertions: number;
|
|
9171
9341
|
totalDeletions: number;
|
|
9172
|
-
files: {
|
|
9173
|
-
path: string;
|
|
9174
|
-
insertions: number;
|
|
9175
|
-
deletions: number;
|
|
9176
|
-
}[];
|
|
9177
9342
|
};
|
|
9178
9343
|
}, {
|
|
9179
9344
|
taskId: string;
|
|
9180
9345
|
eventId: string;
|
|
9181
|
-
timestamp: string;
|
|
9182
|
-
commitHash: string;
|
|
9183
9346
|
stats: {
|
|
9184
9347
|
totalInsertions: number;
|
|
9185
9348
|
totalDeletions: number;
|
|
9186
|
-
files: {
|
|
9187
|
-
path: string;
|
|
9188
|
-
insertions: number;
|
|
9189
|
-
deletions: number;
|
|
9190
|
-
}[];
|
|
9191
9349
|
};
|
|
9192
9350
|
}>;
|
|
9193
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>;
|
|
9194
9379
|
declare const ChangeTaskTitleEventSchema: z.ZodObject<{
|
|
9195
9380
|
eventId: z.ZodString;
|
|
9196
9381
|
} & {
|
|
@@ -9663,7 +9848,7 @@ type AssociateRepoEventData = z.infer<typeof AssociateRepoEventDataSchema>;
|
|
|
9663
9848
|
/**
|
|
9664
9849
|
* System message type
|
|
9665
9850
|
*/
|
|
9666
|
-
type SystemMessageType = "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
|
|
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";
|
|
9667
9852
|
/**
|
|
9668
9853
|
* PR state changed schema
|
|
9669
9854
|
*/
|
|
@@ -9699,7 +9884,7 @@ type PrStateChangedData = z.infer<typeof PrStateChangedSchema>;
|
|
|
9699
9884
|
declare const SystemMessageSchema: z.ZodObject<{
|
|
9700
9885
|
eventId: z.ZodString;
|
|
9701
9886
|
} & {
|
|
9702
|
-
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed"]>;
|
|
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"]>;
|
|
9703
9888
|
data: z.ZodUnion<[z.ZodObject<{
|
|
9704
9889
|
id: z.ZodString;
|
|
9705
9890
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9773,10 +9958,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9773
9958
|
name: string;
|
|
9774
9959
|
description: string | null;
|
|
9775
9960
|
owner: string;
|
|
9961
|
+
url: string;
|
|
9776
9962
|
fullName: string;
|
|
9777
9963
|
defaultBranch: string;
|
|
9778
9964
|
isPrivate: boolean;
|
|
9779
|
-
url: string;
|
|
9780
9965
|
gitServerId: string;
|
|
9781
9966
|
}, {
|
|
9782
9967
|
id: string;
|
|
@@ -9785,10 +9970,10 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9785
9970
|
name: string;
|
|
9786
9971
|
description: string | null;
|
|
9787
9972
|
owner: string;
|
|
9973
|
+
url: string;
|
|
9788
9974
|
fullName: string;
|
|
9789
9975
|
defaultBranch: string;
|
|
9790
9976
|
isPrivate: boolean;
|
|
9791
|
-
url: string;
|
|
9792
9977
|
gitServerId: string;
|
|
9793
9978
|
}>, z.ZodObject<{
|
|
9794
9979
|
taskId: z.ZodString;
|
|
@@ -9811,77 +9996,415 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
9811
9996
|
oldState: "open" | "closed" | "merged" | null;
|
|
9812
9997
|
newState: "open" | "closed" | "merged";
|
|
9813
9998
|
changedAt: string;
|
|
9814
|
-
}
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
type: "
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9999
|
+
}>, z.ZodObject<{
|
|
10000
|
+
id: z.ZodString;
|
|
10001
|
+
name: z.ZodString;
|
|
10002
|
+
displayName: z.ZodString;
|
|
10003
|
+
agentDir: z.ZodString;
|
|
10004
|
+
type: z.ZodEnum<["claude", "codex"]>;
|
|
10005
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
10006
|
+
userId: z.ZodString;
|
|
10007
|
+
description: z.ZodNullable<z.ZodString>;
|
|
10008
|
+
enable: z.ZodBoolean;
|
|
10009
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
10010
|
+
environmentSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10011
|
+
name: z.ZodString;
|
|
10012
|
+
type: z.ZodEnum<["string", "number", "boolean", "secret"]>;
|
|
10013
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10014
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
10015
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
10016
|
+
}, "strip", z.ZodTypeAny, {
|
|
10017
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10018
|
+
name: string;
|
|
10019
|
+
required: boolean;
|
|
10020
|
+
description?: string | undefined;
|
|
10021
|
+
defaultValue?: string | undefined;
|
|
10022
|
+
}, {
|
|
10023
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10024
|
+
name: string;
|
|
10025
|
+
description?: string | undefined;
|
|
10026
|
+
required?: boolean | undefined;
|
|
10027
|
+
defaultValue?: string | undefined;
|
|
10028
|
+
}>, "many">>;
|
|
10029
|
+
displayConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10030
|
+
createPR: z.ZodOptional<z.ZodString>;
|
|
10031
|
+
viewPR: z.ZodOptional<z.ZodString>;
|
|
10032
|
+
mergePR: z.ZodOptional<z.ZodString>;
|
|
10033
|
+
approvePR: z.ZodOptional<z.ZodString>;
|
|
10034
|
+
merged: z.ZodOptional<z.ZodString>;
|
|
10035
|
+
closed: z.ZodOptional<z.ZodString>;
|
|
10036
|
+
recreatePR: z.ZodOptional<z.ZodString>;
|
|
10037
|
+
permissionCanSendMessage: z.ZodOptional<z.ZodString>;
|
|
10038
|
+
permissionCanSendMessageDesc: z.ZodOptional<z.ZodString>;
|
|
10039
|
+
permissionCanCreatePr: z.ZodOptional<z.ZodString>;
|
|
10040
|
+
permissionCanCreatePrDesc: z.ZodOptional<z.ZodString>;
|
|
10041
|
+
permissionCanApprovePr: z.ZodOptional<z.ZodString>;
|
|
10042
|
+
permissionCanApprovePrDesc: z.ZodOptional<z.ZodString>;
|
|
10043
|
+
permissionCanViewPr: z.ZodOptional<z.ZodString>;
|
|
10044
|
+
permissionCanViewPrDesc: z.ZodOptional<z.ZodString>;
|
|
10045
|
+
permissionCanMergePr: z.ZodOptional<z.ZodString>;
|
|
10046
|
+
permissionCanMergePrDesc: z.ZodOptional<z.ZodString>;
|
|
10047
|
+
}, "strip", z.ZodTypeAny, {
|
|
10048
|
+
closed?: string | undefined;
|
|
10049
|
+
merged?: string | undefined;
|
|
10050
|
+
createPR?: string | undefined;
|
|
10051
|
+
viewPR?: string | undefined;
|
|
10052
|
+
mergePR?: string | undefined;
|
|
10053
|
+
approvePR?: string | undefined;
|
|
10054
|
+
recreatePR?: string | undefined;
|
|
10055
|
+
permissionCanSendMessage?: string | undefined;
|
|
10056
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10057
|
+
permissionCanCreatePr?: string | undefined;
|
|
10058
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10059
|
+
permissionCanApprovePr?: string | undefined;
|
|
10060
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10061
|
+
permissionCanViewPr?: string | undefined;
|
|
10062
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10063
|
+
permissionCanMergePr?: string | undefined;
|
|
10064
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10065
|
+
}, {
|
|
10066
|
+
closed?: string | undefined;
|
|
10067
|
+
merged?: string | undefined;
|
|
10068
|
+
createPR?: string | undefined;
|
|
10069
|
+
viewPR?: string | undefined;
|
|
10070
|
+
mergePR?: string | undefined;
|
|
10071
|
+
approvePR?: string | undefined;
|
|
10072
|
+
recreatePR?: string | undefined;
|
|
10073
|
+
permissionCanSendMessage?: string | undefined;
|
|
10074
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10075
|
+
permissionCanCreatePr?: string | undefined;
|
|
10076
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10077
|
+
permissionCanApprovePr?: string | undefined;
|
|
10078
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10079
|
+
permissionCanViewPr?: string | undefined;
|
|
10080
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10081
|
+
permissionCanMergePr?: string | undefined;
|
|
10082
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10083
|
+
}>>>;
|
|
10084
|
+
}, "strip", z.ZodTypeAny, {
|
|
10085
|
+
displayConfig?: Record<string, {
|
|
10086
|
+
closed?: string | undefined;
|
|
10087
|
+
merged?: string | undefined;
|
|
10088
|
+
createPR?: string | undefined;
|
|
10089
|
+
viewPR?: string | undefined;
|
|
10090
|
+
mergePR?: string | undefined;
|
|
10091
|
+
approvePR?: string | undefined;
|
|
10092
|
+
recreatePR?: string | undefined;
|
|
10093
|
+
permissionCanSendMessage?: string | undefined;
|
|
10094
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10095
|
+
permissionCanCreatePr?: string | undefined;
|
|
10096
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10097
|
+
permissionCanApprovePr?: string | undefined;
|
|
10098
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10099
|
+
permissionCanViewPr?: string | undefined;
|
|
10100
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10101
|
+
permissionCanMergePr?: string | undefined;
|
|
10102
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10103
|
+
}> | undefined;
|
|
10104
|
+
environmentSchema?: {
|
|
10105
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10106
|
+
name: string;
|
|
10107
|
+
required: boolean;
|
|
10108
|
+
description?: string | undefined;
|
|
10109
|
+
defaultValue?: string | undefined;
|
|
10110
|
+
}[] | undefined;
|
|
10111
|
+
}, {
|
|
10112
|
+
displayConfig?: Record<string, {
|
|
10113
|
+
closed?: string | undefined;
|
|
10114
|
+
merged?: string | undefined;
|
|
10115
|
+
createPR?: string | undefined;
|
|
10116
|
+
viewPR?: string | undefined;
|
|
10117
|
+
mergePR?: string | undefined;
|
|
10118
|
+
approvePR?: string | undefined;
|
|
10119
|
+
recreatePR?: string | undefined;
|
|
10120
|
+
permissionCanSendMessage?: string | undefined;
|
|
10121
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10122
|
+
permissionCanCreatePr?: string | undefined;
|
|
10123
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10124
|
+
permissionCanApprovePr?: string | undefined;
|
|
10125
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10126
|
+
permissionCanViewPr?: string | undefined;
|
|
10127
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10128
|
+
permissionCanMergePr?: string | undefined;
|
|
10129
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10130
|
+
}> | undefined;
|
|
10131
|
+
environmentSchema?: {
|
|
10132
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10133
|
+
name: string;
|
|
10134
|
+
description?: string | undefined;
|
|
10135
|
+
required?: boolean | undefined;
|
|
10136
|
+
defaultValue?: string | undefined;
|
|
10137
|
+
}[] | undefined;
|
|
10138
|
+
}>>;
|
|
10139
|
+
permissions: z.ZodNullable<z.ZodObject<{
|
|
10140
|
+
role: z.ZodString;
|
|
10141
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10142
|
+
}, "strip", z.ZodTypeAny, {
|
|
10143
|
+
role: string;
|
|
10144
|
+
paths?: string[] | undefined;
|
|
10145
|
+
}, {
|
|
10146
|
+
role: string;
|
|
10147
|
+
paths?: string[] | undefined;
|
|
10148
|
+
}>>;
|
|
10149
|
+
publishedAgentId: z.ZodNullable<z.ZodString>;
|
|
10150
|
+
sourceTaskId: z.ZodNullable<z.ZodString>;
|
|
10151
|
+
createdAt: z.ZodString;
|
|
10152
|
+
updatedAt: z.ZodString;
|
|
10153
|
+
}, "strip", z.ZodTypeAny, {
|
|
10154
|
+
type: "claude" | "codex";
|
|
10155
|
+
id: string;
|
|
10156
|
+
avatar: string | null;
|
|
10157
|
+
createdAt: string;
|
|
10158
|
+
userId: string;
|
|
10159
|
+
permissions: {
|
|
10160
|
+
role: string;
|
|
10161
|
+
paths?: string[] | undefined;
|
|
10162
|
+
} | null;
|
|
10163
|
+
updatedAt: string;
|
|
10164
|
+
name: string;
|
|
10165
|
+
description: string | null;
|
|
10166
|
+
enable: boolean;
|
|
10167
|
+
config: {
|
|
10168
|
+
displayConfig?: Record<string, {
|
|
10169
|
+
closed?: string | undefined;
|
|
10170
|
+
merged?: string | undefined;
|
|
10171
|
+
createPR?: string | undefined;
|
|
10172
|
+
viewPR?: string | undefined;
|
|
10173
|
+
mergePR?: string | undefined;
|
|
10174
|
+
approvePR?: string | undefined;
|
|
10175
|
+
recreatePR?: string | undefined;
|
|
10176
|
+
permissionCanSendMessage?: string | undefined;
|
|
10177
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10178
|
+
permissionCanCreatePr?: string | undefined;
|
|
10179
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10180
|
+
permissionCanApprovePr?: string | undefined;
|
|
10181
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10182
|
+
permissionCanViewPr?: string | undefined;
|
|
10183
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10184
|
+
permissionCanMergePr?: string | undefined;
|
|
10185
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10186
|
+
}> | undefined;
|
|
10187
|
+
environmentSchema?: {
|
|
10188
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10189
|
+
name: string;
|
|
10190
|
+
required: boolean;
|
|
10191
|
+
description?: string | undefined;
|
|
10192
|
+
defaultValue?: string | undefined;
|
|
10193
|
+
}[] | undefined;
|
|
10194
|
+
} | null;
|
|
10195
|
+
agentDir: string;
|
|
10196
|
+
displayName: string;
|
|
10197
|
+
publishedAgentId: string | null;
|
|
10198
|
+
sourceTaskId: string | null;
|
|
10199
|
+
}, {
|
|
10200
|
+
type: "claude" | "codex";
|
|
10201
|
+
id: string;
|
|
10202
|
+
avatar: string | null;
|
|
10203
|
+
createdAt: string;
|
|
10204
|
+
userId: string;
|
|
10205
|
+
permissions: {
|
|
10206
|
+
role: string;
|
|
10207
|
+
paths?: string[] | undefined;
|
|
10208
|
+
} | null;
|
|
10209
|
+
updatedAt: string;
|
|
10210
|
+
name: string;
|
|
10211
|
+
description: string | null;
|
|
10212
|
+
enable: boolean;
|
|
10213
|
+
config: {
|
|
10214
|
+
displayConfig?: Record<string, {
|
|
10215
|
+
closed?: string | undefined;
|
|
10216
|
+
merged?: string | undefined;
|
|
10217
|
+
createPR?: string | undefined;
|
|
10218
|
+
viewPR?: string | undefined;
|
|
10219
|
+
mergePR?: string | undefined;
|
|
10220
|
+
approvePR?: string | undefined;
|
|
10221
|
+
recreatePR?: string | undefined;
|
|
10222
|
+
permissionCanSendMessage?: string | undefined;
|
|
10223
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10224
|
+
permissionCanCreatePr?: string | undefined;
|
|
10225
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10226
|
+
permissionCanApprovePr?: string | undefined;
|
|
10227
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10228
|
+
permissionCanViewPr?: string | undefined;
|
|
10229
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10230
|
+
permissionCanMergePr?: string | undefined;
|
|
10231
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10232
|
+
}> | undefined;
|
|
10233
|
+
environmentSchema?: {
|
|
10234
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10235
|
+
name: string;
|
|
10236
|
+
description?: string | undefined;
|
|
10237
|
+
required?: boolean | undefined;
|
|
10238
|
+
defaultValue?: string | undefined;
|
|
10239
|
+
}[] | undefined;
|
|
10240
|
+
} | null;
|
|
10241
|
+
agentDir: string;
|
|
10242
|
+
displayName: string;
|
|
10243
|
+
publishedAgentId: string | null;
|
|
10244
|
+
sourceTaskId: string | null;
|
|
10245
|
+
}>]>;
|
|
10246
|
+
timestamp: z.ZodString;
|
|
10247
|
+
}, "strip", z.ZodTypeAny, {
|
|
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";
|
|
10249
|
+
data: {
|
|
10250
|
+
type: "direct" | "group";
|
|
10251
|
+
id: string;
|
|
10252
|
+
createdAt: string;
|
|
10253
|
+
updatedAt: string;
|
|
10254
|
+
owner: string;
|
|
10255
|
+
} | {
|
|
10256
|
+
type: "human" | "agent";
|
|
10257
|
+
id: string;
|
|
10258
|
+
createdAt: string;
|
|
10259
|
+
chatId: string;
|
|
10260
|
+
updatedAt: string;
|
|
10261
|
+
memberCode: string;
|
|
10262
|
+
role: string;
|
|
10263
|
+
}[] | {
|
|
10264
|
+
type: "claude" | "codex";
|
|
10265
|
+
id: string;
|
|
10266
|
+
avatar: string | null;
|
|
10267
|
+
createdAt: string;
|
|
10268
|
+
userId: string;
|
|
10269
|
+
permissions: {
|
|
10270
|
+
role: string;
|
|
10271
|
+
paths?: string[] | undefined;
|
|
10272
|
+
} | null;
|
|
10273
|
+
updatedAt: string;
|
|
10274
|
+
name: string;
|
|
10275
|
+
description: string | null;
|
|
10276
|
+
enable: boolean;
|
|
10277
|
+
config: {
|
|
10278
|
+
displayConfig?: Record<string, {
|
|
10279
|
+
closed?: string | undefined;
|
|
10280
|
+
merged?: string | undefined;
|
|
10281
|
+
createPR?: string | undefined;
|
|
10282
|
+
viewPR?: string | undefined;
|
|
10283
|
+
mergePR?: string | undefined;
|
|
10284
|
+
approvePR?: string | undefined;
|
|
10285
|
+
recreatePR?: string | undefined;
|
|
10286
|
+
permissionCanSendMessage?: string | undefined;
|
|
10287
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10288
|
+
permissionCanCreatePr?: string | undefined;
|
|
10289
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10290
|
+
permissionCanApprovePr?: string | undefined;
|
|
10291
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10292
|
+
permissionCanViewPr?: string | undefined;
|
|
10293
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10294
|
+
permissionCanMergePr?: string | undefined;
|
|
10295
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10296
|
+
}> | undefined;
|
|
10297
|
+
environmentSchema?: {
|
|
10298
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10299
|
+
name: string;
|
|
10300
|
+
required: boolean;
|
|
10301
|
+
description?: string | undefined;
|
|
10302
|
+
defaultValue?: string | undefined;
|
|
10303
|
+
}[] | undefined;
|
|
10304
|
+
} | null;
|
|
10305
|
+
agentDir: string;
|
|
10306
|
+
displayName: string;
|
|
10307
|
+
publishedAgentId: string | null;
|
|
10308
|
+
sourceTaskId: string | null;
|
|
10309
|
+
} | {
|
|
10310
|
+
id: string;
|
|
10311
|
+
createdAt: string;
|
|
10312
|
+
updatedAt: string;
|
|
10313
|
+
name: string;
|
|
10314
|
+
description: string | null;
|
|
10315
|
+
owner: string;
|
|
10316
|
+
url: string;
|
|
10317
|
+
fullName: string;
|
|
10318
|
+
defaultBranch: string;
|
|
9883
10319
|
isPrivate: boolean;
|
|
10320
|
+
gitServerId: string;
|
|
10321
|
+
} | {
|
|
10322
|
+
id: string;
|
|
10323
|
+
} | {
|
|
10324
|
+
id: string;
|
|
10325
|
+
}[] | {
|
|
10326
|
+
taskId: string;
|
|
10327
|
+
pullRequestNumber: number;
|
|
10328
|
+
pullRequestUrl: string;
|
|
10329
|
+
oldState: "open" | "closed" | "merged" | null;
|
|
10330
|
+
newState: "open" | "closed" | "merged";
|
|
10331
|
+
changedAt: string;
|
|
10332
|
+
};
|
|
10333
|
+
eventId: string;
|
|
10334
|
+
timestamp: string;
|
|
10335
|
+
}, {
|
|
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";
|
|
10337
|
+
data: {
|
|
10338
|
+
type: "direct" | "group";
|
|
10339
|
+
id: string;
|
|
10340
|
+
createdAt: string;
|
|
10341
|
+
updatedAt: string;
|
|
10342
|
+
owner: string;
|
|
10343
|
+
} | {
|
|
10344
|
+
type: "human" | "agent";
|
|
10345
|
+
id: string;
|
|
10346
|
+
createdAt: string;
|
|
10347
|
+
chatId: string;
|
|
10348
|
+
updatedAt: string;
|
|
10349
|
+
memberCode: string;
|
|
10350
|
+
role: string;
|
|
10351
|
+
}[] | {
|
|
10352
|
+
type: "claude" | "codex";
|
|
10353
|
+
id: string;
|
|
10354
|
+
avatar: string | null;
|
|
10355
|
+
createdAt: string;
|
|
10356
|
+
userId: string;
|
|
10357
|
+
permissions: {
|
|
10358
|
+
role: string;
|
|
10359
|
+
paths?: string[] | undefined;
|
|
10360
|
+
} | null;
|
|
10361
|
+
updatedAt: string;
|
|
10362
|
+
name: string;
|
|
10363
|
+
description: string | null;
|
|
10364
|
+
enable: boolean;
|
|
10365
|
+
config: {
|
|
10366
|
+
displayConfig?: Record<string, {
|
|
10367
|
+
closed?: string | undefined;
|
|
10368
|
+
merged?: string | undefined;
|
|
10369
|
+
createPR?: string | undefined;
|
|
10370
|
+
viewPR?: string | undefined;
|
|
10371
|
+
mergePR?: string | undefined;
|
|
10372
|
+
approvePR?: string | undefined;
|
|
10373
|
+
recreatePR?: string | undefined;
|
|
10374
|
+
permissionCanSendMessage?: string | undefined;
|
|
10375
|
+
permissionCanSendMessageDesc?: string | undefined;
|
|
10376
|
+
permissionCanCreatePr?: string | undefined;
|
|
10377
|
+
permissionCanCreatePrDesc?: string | undefined;
|
|
10378
|
+
permissionCanApprovePr?: string | undefined;
|
|
10379
|
+
permissionCanApprovePrDesc?: string | undefined;
|
|
10380
|
+
permissionCanViewPr?: string | undefined;
|
|
10381
|
+
permissionCanViewPrDesc?: string | undefined;
|
|
10382
|
+
permissionCanMergePr?: string | undefined;
|
|
10383
|
+
permissionCanMergePrDesc?: string | undefined;
|
|
10384
|
+
}> | undefined;
|
|
10385
|
+
environmentSchema?: {
|
|
10386
|
+
type: "string" | "number" | "boolean" | "secret";
|
|
10387
|
+
name: string;
|
|
10388
|
+
description?: string | undefined;
|
|
10389
|
+
required?: boolean | undefined;
|
|
10390
|
+
defaultValue?: string | undefined;
|
|
10391
|
+
}[] | undefined;
|
|
10392
|
+
} | null;
|
|
10393
|
+
agentDir: string;
|
|
10394
|
+
displayName: string;
|
|
10395
|
+
publishedAgentId: string | null;
|
|
10396
|
+
sourceTaskId: string | null;
|
|
10397
|
+
} | {
|
|
10398
|
+
id: string;
|
|
10399
|
+
createdAt: string;
|
|
10400
|
+
updatedAt: string;
|
|
10401
|
+
name: string;
|
|
10402
|
+
description: string | null;
|
|
10403
|
+
owner: string;
|
|
9884
10404
|
url: string;
|
|
10405
|
+
fullName: string;
|
|
10406
|
+
defaultBranch: string;
|
|
10407
|
+
isPrivate: boolean;
|
|
9885
10408
|
gitServerId: string;
|
|
9886
10409
|
} | {
|
|
9887
10410
|
id: string;
|
|
@@ -9921,6 +10444,7 @@ type EventMap = {
|
|
|
9921
10444
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
9922
10445
|
"task-info-update": TaskInfoUpdateEventData;
|
|
9923
10446
|
"task-artifacts-updated": TaskArtifactsUpdatedEventData;
|
|
10447
|
+
"show-modal": ShowModalEventData;
|
|
9924
10448
|
"merge-request": MergeRequestEventData;
|
|
9925
10449
|
"merge-pr": MergePullRequestEventData;
|
|
9926
10450
|
"associate-repo": AssociateRepoEventData;
|
|
@@ -9991,9 +10515,9 @@ interface AgentrixContext {
|
|
|
9991
10515
|
*/
|
|
9992
10516
|
getTaskId(): string;
|
|
9993
10517
|
/**
|
|
9994
|
-
*
|
|
10518
|
+
* create a new draft agent or update the existing one in the database
|
|
9995
10519
|
*/
|
|
9996
|
-
|
|
10520
|
+
saveDraftAgent(params: {
|
|
9997
10521
|
name: string;
|
|
9998
10522
|
agentDir: string;
|
|
9999
10523
|
type?: 'claude' | 'codex';
|
|
@@ -10006,6 +10530,7 @@ interface AgentrixContext {
|
|
|
10006
10530
|
required: boolean;
|
|
10007
10531
|
defaultValue?: string;
|
|
10008
10532
|
}>;
|
|
10533
|
+
isUpdate?: boolean;
|
|
10009
10534
|
}): Promise<{
|
|
10010
10535
|
agentId: string;
|
|
10011
10536
|
displayName: string;
|
|
@@ -10020,6 +10545,7 @@ interface AgentrixContext {
|
|
|
10020
10545
|
* - .claude/: Claude Agent SDK specific configuration
|
|
10021
10546
|
* - .codex/: OpenAI Codex specific configuration
|
|
10022
10547
|
*/
|
|
10548
|
+
|
|
10023
10549
|
/**
|
|
10024
10550
|
* Supported agent frameworks
|
|
10025
10551
|
*/
|
|
@@ -10125,6 +10651,30 @@ interface RepositoryInitHookInput {
|
|
|
10125
10651
|
*/
|
|
10126
10652
|
task_id: string;
|
|
10127
10653
|
}
|
|
10654
|
+
/**
|
|
10655
|
+
* Hook factory function type
|
|
10656
|
+
*
|
|
10657
|
+
* When hooks need access to AgentrixContext (workspace, userId, taskId, RPC methods),
|
|
10658
|
+
* export a default function that receives context and returns the hooks object.
|
|
10659
|
+
*
|
|
10660
|
+
* @example
|
|
10661
|
+
* ```typescript
|
|
10662
|
+
* import type { HookFactory, AgentrixContext } from '@agentrix/shared';
|
|
10663
|
+
* import type { PreToolUseHookInput } from '@anthropic-ai/claude-agent-sdk';
|
|
10664
|
+
*
|
|
10665
|
+
* const createHooks: HookFactory = (context: AgentrixContext) => ({
|
|
10666
|
+
* PreToolUse: async (input: PreToolUseHookInput) => {
|
|
10667
|
+
* const workspace = context.getWorkspace();
|
|
10668
|
+
* const taskId = context.getTaskId();
|
|
10669
|
+
* console.log(`[PreToolUse] Task ${taskId} in ${workspace}`);
|
|
10670
|
+
* return { decision: 'approve' as const };
|
|
10671
|
+
* },
|
|
10672
|
+
* });
|
|
10673
|
+
*
|
|
10674
|
+
* export default createHooks;
|
|
10675
|
+
* ```
|
|
10676
|
+
*/
|
|
10677
|
+
type HookFactory = (context: AgentrixContext) => Record<string, HookCallback>;
|
|
10128
10678
|
|
|
10129
10679
|
/**
|
|
10130
10680
|
* Zod schemas for validating agent configuration files
|
|
@@ -10399,5 +10949,5 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
10399
10949
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
10400
10950
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
10401
10951
|
|
|
10402
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema,
|
|
10403
|
-
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 };
|