@agentrix/shared 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +90 -166
- package/dist/index.d.cts +293 -207
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -192,20 +192,20 @@ declare const SignatureAuthRequestSchema: z.ZodObject<{
|
|
|
192
192
|
publicKey: z.ZodString;
|
|
193
193
|
challenge: z.ZodString;
|
|
194
194
|
signature: z.ZodString;
|
|
195
|
-
salt: z.ZodString
|
|
196
|
-
encryptedSecret: z.ZodString
|
|
195
|
+
salt: z.ZodOptional<z.ZodString>;
|
|
196
|
+
encryptedSecret: z.ZodOptional<z.ZodString>;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
198
|
publicKey: string;
|
|
199
199
|
challenge: string;
|
|
200
200
|
signature: string;
|
|
201
|
-
salt
|
|
202
|
-
encryptedSecret
|
|
201
|
+
salt?: string | undefined;
|
|
202
|
+
encryptedSecret?: string | undefined;
|
|
203
203
|
}, {
|
|
204
204
|
publicKey: string;
|
|
205
205
|
challenge: string;
|
|
206
206
|
signature: string;
|
|
207
|
-
salt
|
|
208
|
-
encryptedSecret
|
|
207
|
+
salt?: string | undefined;
|
|
208
|
+
encryptedSecret?: string | undefined;
|
|
209
209
|
}>;
|
|
210
210
|
type SignatureAuthRequest = z.infer<typeof SignatureAuthRequestSchema>;
|
|
211
211
|
/**
|
|
@@ -257,8 +257,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
257
257
|
email: z.ZodNullable<z.ZodString>;
|
|
258
258
|
avatar: z.ZodNullable<z.ZodString>;
|
|
259
259
|
} & {
|
|
260
|
-
encryptedSecret: z.ZodString
|
|
261
|
-
secretSalt: z.ZodString
|
|
260
|
+
encryptedSecret: z.ZodNullable<z.ZodString>;
|
|
261
|
+
secretSalt: z.ZodNullable<z.ZodString>;
|
|
262
262
|
createdAt: z.ZodString;
|
|
263
263
|
oauthAccounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
264
264
|
provider: z.ZodString;
|
|
@@ -281,8 +281,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
281
281
|
username: string;
|
|
282
282
|
email: string | null;
|
|
283
283
|
avatar: string | null;
|
|
284
|
-
encryptedSecret: string;
|
|
285
|
-
secretSalt: string;
|
|
284
|
+
encryptedSecret: string | null;
|
|
285
|
+
secretSalt: string | null;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
288
288
|
username: string;
|
|
@@ -295,8 +295,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
295
295
|
username: string;
|
|
296
296
|
email: string | null;
|
|
297
297
|
avatar: string | null;
|
|
298
|
-
encryptedSecret: string;
|
|
299
|
-
secretSalt: string;
|
|
298
|
+
encryptedSecret: string | null;
|
|
299
|
+
secretSalt: string | null;
|
|
300
300
|
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
302
302
|
username: string;
|
|
@@ -311,8 +311,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
311
311
|
username: string;
|
|
312
312
|
email: string | null;
|
|
313
313
|
avatar: string | null;
|
|
314
|
-
encryptedSecret: string;
|
|
315
|
-
secretSalt: string;
|
|
314
|
+
encryptedSecret: string | null;
|
|
315
|
+
secretSalt: string | null;
|
|
316
316
|
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
318
318
|
username: string;
|
|
@@ -327,8 +327,8 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
327
327
|
username: string;
|
|
328
328
|
email: string | null;
|
|
329
329
|
avatar: string | null;
|
|
330
|
-
encryptedSecret: string;
|
|
331
|
-
secretSalt: string;
|
|
330
|
+
encryptedSecret: string | null;
|
|
331
|
+
secretSalt: string | null;
|
|
332
332
|
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
334
334
|
username: string;
|
|
@@ -403,21 +403,21 @@ declare const OAuthLoginQuerySchema: z.ZodObject<{
|
|
|
403
403
|
signature: z.ZodString;
|
|
404
404
|
challenge: z.ZodString;
|
|
405
405
|
signatureProof: z.ZodString;
|
|
406
|
-
salt: z.ZodString
|
|
407
|
-
encryptedSecret: z.ZodString
|
|
406
|
+
salt: z.ZodOptional<z.ZodString>;
|
|
407
|
+
encryptedSecret: z.ZodOptional<z.ZodString>;
|
|
408
408
|
}, "strip", z.ZodTypeAny, {
|
|
409
409
|
challenge: string;
|
|
410
410
|
signature: string;
|
|
411
|
-
salt: string;
|
|
412
|
-
encryptedSecret: string;
|
|
413
411
|
signatureProof: string;
|
|
412
|
+
salt?: string | undefined;
|
|
413
|
+
encryptedSecret?: string | undefined;
|
|
414
414
|
redirect?: string | undefined;
|
|
415
415
|
}, {
|
|
416
416
|
challenge: string;
|
|
417
417
|
signature: string;
|
|
418
|
-
salt: string;
|
|
419
|
-
encryptedSecret: string;
|
|
420
418
|
signatureProof: string;
|
|
419
|
+
salt?: string | undefined;
|
|
420
|
+
encryptedSecret?: string | undefined;
|
|
421
421
|
redirect?: string | undefined;
|
|
422
422
|
}>;
|
|
423
423
|
type OAuthLoginQuery = z.infer<typeof OAuthLoginQuerySchema>;
|
|
@@ -714,6 +714,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
714
714
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
715
715
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
716
716
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
717
|
+
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
717
718
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
718
719
|
}, "strip", z.ZodTypeAny, {
|
|
719
720
|
chatId: string;
|
|
@@ -724,6 +725,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
724
725
|
cwd?: string | undefined;
|
|
725
726
|
repositoryId?: string | undefined;
|
|
726
727
|
baseBranch?: string | undefined;
|
|
728
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
727
729
|
dataEncryptionKey?: string | undefined;
|
|
728
730
|
}, {
|
|
729
731
|
chatId: string;
|
|
@@ -734,6 +736,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
734
736
|
cwd?: string | undefined;
|
|
735
737
|
repositoryId?: string | undefined;
|
|
736
738
|
baseBranch?: string | undefined;
|
|
739
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
737
740
|
dataEncryptionKey?: string | undefined;
|
|
738
741
|
}>, {
|
|
739
742
|
chatId: string;
|
|
@@ -744,6 +747,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
744
747
|
cwd?: string | undefined;
|
|
745
748
|
repositoryId?: string | undefined;
|
|
746
749
|
baseBranch?: string | undefined;
|
|
750
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
747
751
|
dataEncryptionKey?: string | undefined;
|
|
748
752
|
}, {
|
|
749
753
|
chatId: string;
|
|
@@ -754,6 +758,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
754
758
|
cwd?: string | undefined;
|
|
755
759
|
repositoryId?: string | undefined;
|
|
756
760
|
baseBranch?: string | undefined;
|
|
761
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
757
762
|
dataEncryptionKey?: string | undefined;
|
|
758
763
|
}>, {
|
|
759
764
|
chatId: string;
|
|
@@ -764,6 +769,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
764
769
|
cwd?: string | undefined;
|
|
765
770
|
repositoryId?: string | undefined;
|
|
766
771
|
baseBranch?: string | undefined;
|
|
772
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
767
773
|
dataEncryptionKey?: string | undefined;
|
|
768
774
|
}, {
|
|
769
775
|
chatId: string;
|
|
@@ -774,6 +780,7 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
774
780
|
cwd?: string | undefined;
|
|
775
781
|
repositoryId?: string | undefined;
|
|
776
782
|
baseBranch?: string | undefined;
|
|
783
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
777
784
|
dataEncryptionKey?: string | undefined;
|
|
778
785
|
}>;
|
|
779
786
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
@@ -786,6 +793,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
786
793
|
cloudId: z.ZodOptional<z.ZodString>;
|
|
787
794
|
repositoryId: z.ZodOptional<z.ZodString>;
|
|
788
795
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
796
|
+
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
789
797
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
790
798
|
}, "strip", z.ZodTypeAny, {
|
|
791
799
|
chatId: string;
|
|
@@ -796,6 +804,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
796
804
|
cwd?: string | undefined;
|
|
797
805
|
repositoryId?: string | undefined;
|
|
798
806
|
baseBranch?: string | undefined;
|
|
807
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
799
808
|
dataEncryptionKey?: string | undefined;
|
|
800
809
|
}, {
|
|
801
810
|
chatId: string;
|
|
@@ -806,6 +815,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
806
815
|
cwd?: string | undefined;
|
|
807
816
|
repositoryId?: string | undefined;
|
|
808
817
|
baseBranch?: string | undefined;
|
|
818
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
809
819
|
dataEncryptionKey?: string | undefined;
|
|
810
820
|
}>, {
|
|
811
821
|
chatId: string;
|
|
@@ -816,6 +826,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
816
826
|
cwd?: string | undefined;
|
|
817
827
|
repositoryId?: string | undefined;
|
|
818
828
|
baseBranch?: string | undefined;
|
|
829
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
819
830
|
dataEncryptionKey?: string | undefined;
|
|
820
831
|
}, {
|
|
821
832
|
chatId: string;
|
|
@@ -826,6 +837,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
826
837
|
cwd?: string | undefined;
|
|
827
838
|
repositoryId?: string | undefined;
|
|
828
839
|
baseBranch?: string | undefined;
|
|
840
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
829
841
|
dataEncryptionKey?: string | undefined;
|
|
830
842
|
}>, {
|
|
831
843
|
chatId: string;
|
|
@@ -836,6 +848,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
836
848
|
cwd?: string | undefined;
|
|
837
849
|
repositoryId?: string | undefined;
|
|
838
850
|
baseBranch?: string | undefined;
|
|
851
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
839
852
|
dataEncryptionKey?: string | undefined;
|
|
840
853
|
}, {
|
|
841
854
|
chatId: string;
|
|
@@ -846,6 +859,7 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
846
859
|
cwd?: string | undefined;
|
|
847
860
|
repositoryId?: string | undefined;
|
|
848
861
|
baseBranch?: string | undefined;
|
|
862
|
+
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
849
863
|
dataEncryptionKey?: string | undefined;
|
|
850
864
|
}>;
|
|
851
865
|
/**
|
|
@@ -909,6 +923,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
909
923
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
910
924
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
911
925
|
cwd: z.ZodNullable<z.ZodString>;
|
|
926
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
912
927
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
913
928
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
914
929
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -946,6 +961,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
946
961
|
deletions: number;
|
|
947
962
|
}[];
|
|
948
963
|
}>>;
|
|
964
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
949
965
|
createdAt: z.ZodString;
|
|
950
966
|
updatedAt: z.ZodString;
|
|
951
967
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -959,6 +975,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
959
975
|
cwd: string | null;
|
|
960
976
|
repositoryId: string | null;
|
|
961
977
|
baseBranch: string | null;
|
|
978
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
962
979
|
dataEncryptionKey: string | null;
|
|
963
980
|
agentId: string;
|
|
964
981
|
title: string | null;
|
|
@@ -977,6 +994,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
977
994
|
deletions: number;
|
|
978
995
|
}[];
|
|
979
996
|
} | null;
|
|
997
|
+
totalDuration: number | null;
|
|
980
998
|
}, {
|
|
981
999
|
id: string;
|
|
982
1000
|
createdAt: string;
|
|
@@ -988,6 +1006,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
988
1006
|
cwd: string | null;
|
|
989
1007
|
repositoryId: string | null;
|
|
990
1008
|
baseBranch: string | null;
|
|
1009
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
991
1010
|
dataEncryptionKey: string | null;
|
|
992
1011
|
agentId: string;
|
|
993
1012
|
title: string | null;
|
|
@@ -1006,6 +1025,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1006
1025
|
deletions: number;
|
|
1007
1026
|
}[];
|
|
1008
1027
|
} | null;
|
|
1028
|
+
totalDuration: number | null;
|
|
1009
1029
|
}>;
|
|
1010
1030
|
type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
1011
1031
|
/**
|
|
@@ -1046,6 +1066,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1046
1066
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1047
1067
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1048
1068
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1069
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1049
1070
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1050
1071
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1051
1072
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -1083,6 +1104,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1083
1104
|
deletions: number;
|
|
1084
1105
|
}[];
|
|
1085
1106
|
}>>;
|
|
1107
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1086
1108
|
createdAt: z.ZodString;
|
|
1087
1109
|
updatedAt: z.ZodString;
|
|
1088
1110
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1096,6 +1118,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1096
1118
|
cwd: string | null;
|
|
1097
1119
|
repositoryId: string | null;
|
|
1098
1120
|
baseBranch: string | null;
|
|
1121
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1099
1122
|
dataEncryptionKey: string | null;
|
|
1100
1123
|
agentId: string;
|
|
1101
1124
|
title: string | null;
|
|
@@ -1114,6 +1137,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1114
1137
|
deletions: number;
|
|
1115
1138
|
}[];
|
|
1116
1139
|
} | null;
|
|
1140
|
+
totalDuration: number | null;
|
|
1117
1141
|
}, {
|
|
1118
1142
|
id: string;
|
|
1119
1143
|
createdAt: string;
|
|
@@ -1125,6 +1149,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1125
1149
|
cwd: string | null;
|
|
1126
1150
|
repositoryId: string | null;
|
|
1127
1151
|
baseBranch: string | null;
|
|
1152
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1128
1153
|
dataEncryptionKey: string | null;
|
|
1129
1154
|
agentId: string;
|
|
1130
1155
|
title: string | null;
|
|
@@ -1143,6 +1168,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1143
1168
|
deletions: number;
|
|
1144
1169
|
}[];
|
|
1145
1170
|
} | null;
|
|
1171
|
+
totalDuration: number | null;
|
|
1146
1172
|
}>, "many">;
|
|
1147
1173
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1148
1174
|
hasMore: z.ZodBoolean;
|
|
@@ -1158,6 +1184,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1158
1184
|
cwd: string | null;
|
|
1159
1185
|
repositoryId: string | null;
|
|
1160
1186
|
baseBranch: string | null;
|
|
1187
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1161
1188
|
dataEncryptionKey: string | null;
|
|
1162
1189
|
agentId: string;
|
|
1163
1190
|
title: string | null;
|
|
@@ -1176,6 +1203,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1176
1203
|
deletions: number;
|
|
1177
1204
|
}[];
|
|
1178
1205
|
} | null;
|
|
1206
|
+
totalDuration: number | null;
|
|
1179
1207
|
}[];
|
|
1180
1208
|
nextCursor: string | null;
|
|
1181
1209
|
hasMore: boolean;
|
|
@@ -1191,6 +1219,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1191
1219
|
cwd: string | null;
|
|
1192
1220
|
repositoryId: string | null;
|
|
1193
1221
|
baseBranch: string | null;
|
|
1222
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1194
1223
|
dataEncryptionKey: string | null;
|
|
1195
1224
|
agentId: string;
|
|
1196
1225
|
title: string | null;
|
|
@@ -1209,6 +1238,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1209
1238
|
deletions: number;
|
|
1210
1239
|
}[];
|
|
1211
1240
|
} | null;
|
|
1241
|
+
totalDuration: number | null;
|
|
1212
1242
|
}[];
|
|
1213
1243
|
nextCursor: string | null;
|
|
1214
1244
|
hasMore: boolean;
|
|
@@ -1401,12 +1431,12 @@ declare const ProjectEntrySchema: z.ZodObject<{
|
|
|
1401
1431
|
size: z.ZodNumber;
|
|
1402
1432
|
modifiedAt: z.ZodString;
|
|
1403
1433
|
}, "strip", z.ZodTypeAny, {
|
|
1404
|
-
type: "
|
|
1434
|
+
type: "directory" | "file";
|
|
1405
1435
|
name: string;
|
|
1406
1436
|
size: number;
|
|
1407
1437
|
modifiedAt: string;
|
|
1408
1438
|
}, {
|
|
1409
|
-
type: "
|
|
1439
|
+
type: "directory" | "file";
|
|
1410
1440
|
name: string;
|
|
1411
1441
|
size: number;
|
|
1412
1442
|
modifiedAt: string;
|
|
@@ -1424,12 +1454,12 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
|
|
|
1424
1454
|
size: z.ZodNumber;
|
|
1425
1455
|
modifiedAt: z.ZodString;
|
|
1426
1456
|
}, "strip", z.ZodTypeAny, {
|
|
1427
|
-
type: "
|
|
1457
|
+
type: "directory" | "file";
|
|
1428
1458
|
name: string;
|
|
1429
1459
|
size: number;
|
|
1430
1460
|
modifiedAt: string;
|
|
1431
1461
|
}, {
|
|
1432
|
-
type: "
|
|
1462
|
+
type: "directory" | "file";
|
|
1433
1463
|
name: string;
|
|
1434
1464
|
size: number;
|
|
1435
1465
|
modifiedAt: string;
|
|
@@ -1439,7 +1469,7 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
|
|
|
1439
1469
|
path: string;
|
|
1440
1470
|
type: "directory";
|
|
1441
1471
|
entries: {
|
|
1442
|
-
type: "
|
|
1472
|
+
type: "directory" | "file";
|
|
1443
1473
|
name: string;
|
|
1444
1474
|
size: number;
|
|
1445
1475
|
modifiedAt: string;
|
|
@@ -1449,7 +1479,7 @@ declare const ProjectDirectoryResponseSchema: z.ZodObject<{
|
|
|
1449
1479
|
path: string;
|
|
1450
1480
|
type: "directory";
|
|
1451
1481
|
entries: {
|
|
1452
|
-
type: "
|
|
1482
|
+
type: "directory" | "file";
|
|
1453
1483
|
name: string;
|
|
1454
1484
|
size: number;
|
|
1455
1485
|
modifiedAt: string;
|
|
@@ -1594,6 +1624,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1594
1624
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1595
1625
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1596
1626
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1627
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1597
1628
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1598
1629
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1599
1630
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -1631,6 +1662,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1631
1662
|
deletions: number;
|
|
1632
1663
|
}[];
|
|
1633
1664
|
}>>;
|
|
1665
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1634
1666
|
createdAt: z.ZodString;
|
|
1635
1667
|
updatedAt: z.ZodString;
|
|
1636
1668
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1644,6 +1676,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1644
1676
|
cwd: string | null;
|
|
1645
1677
|
repositoryId: string | null;
|
|
1646
1678
|
baseBranch: string | null;
|
|
1679
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1647
1680
|
dataEncryptionKey: string | null;
|
|
1648
1681
|
agentId: string;
|
|
1649
1682
|
title: string | null;
|
|
@@ -1662,6 +1695,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1662
1695
|
deletions: number;
|
|
1663
1696
|
}[];
|
|
1664
1697
|
} | null;
|
|
1698
|
+
totalDuration: number | null;
|
|
1665
1699
|
}, {
|
|
1666
1700
|
id: string;
|
|
1667
1701
|
createdAt: string;
|
|
@@ -1673,6 +1707,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1673
1707
|
cwd: string | null;
|
|
1674
1708
|
repositoryId: string | null;
|
|
1675
1709
|
baseBranch: string | null;
|
|
1710
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1676
1711
|
dataEncryptionKey: string | null;
|
|
1677
1712
|
agentId: string;
|
|
1678
1713
|
title: string | null;
|
|
@@ -1691,6 +1726,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1691
1726
|
deletions: number;
|
|
1692
1727
|
}[];
|
|
1693
1728
|
} | null;
|
|
1729
|
+
totalDuration: number | null;
|
|
1694
1730
|
}>;
|
|
1695
1731
|
}, "strip", z.ZodTypeAny, {
|
|
1696
1732
|
success: boolean;
|
|
@@ -1705,6 +1741,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1705
1741
|
cwd: string | null;
|
|
1706
1742
|
repositoryId: string | null;
|
|
1707
1743
|
baseBranch: string | null;
|
|
1744
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1708
1745
|
dataEncryptionKey: string | null;
|
|
1709
1746
|
agentId: string;
|
|
1710
1747
|
title: string | null;
|
|
@@ -1723,6 +1760,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1723
1760
|
deletions: number;
|
|
1724
1761
|
}[];
|
|
1725
1762
|
} | null;
|
|
1763
|
+
totalDuration: number | null;
|
|
1726
1764
|
};
|
|
1727
1765
|
}, {
|
|
1728
1766
|
success: boolean;
|
|
@@ -1737,6 +1775,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1737
1775
|
cwd: string | null;
|
|
1738
1776
|
repositoryId: string | null;
|
|
1739
1777
|
baseBranch: string | null;
|
|
1778
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1740
1779
|
dataEncryptionKey: string | null;
|
|
1741
1780
|
agentId: string;
|
|
1742
1781
|
title: string | null;
|
|
@@ -1755,6 +1794,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1755
1794
|
deletions: number;
|
|
1756
1795
|
}[];
|
|
1757
1796
|
} | null;
|
|
1797
|
+
totalDuration: number | null;
|
|
1758
1798
|
};
|
|
1759
1799
|
}>;
|
|
1760
1800
|
type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
|
|
@@ -1782,6 +1822,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1782
1822
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
1783
1823
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
1784
1824
|
cwd: z.ZodNullable<z.ZodString>;
|
|
1825
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
1785
1826
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
1786
1827
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
1787
1828
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -1819,6 +1860,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1819
1860
|
deletions: number;
|
|
1820
1861
|
}[];
|
|
1821
1862
|
}>>;
|
|
1863
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
1822
1864
|
createdAt: z.ZodString;
|
|
1823
1865
|
updatedAt: z.ZodString;
|
|
1824
1866
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1832,6 +1874,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1832
1874
|
cwd: string | null;
|
|
1833
1875
|
repositoryId: string | null;
|
|
1834
1876
|
baseBranch: string | null;
|
|
1877
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1835
1878
|
dataEncryptionKey: string | null;
|
|
1836
1879
|
agentId: string;
|
|
1837
1880
|
title: string | null;
|
|
@@ -1850,6 +1893,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1850
1893
|
deletions: number;
|
|
1851
1894
|
}[];
|
|
1852
1895
|
} | null;
|
|
1896
|
+
totalDuration: number | null;
|
|
1853
1897
|
}, {
|
|
1854
1898
|
id: string;
|
|
1855
1899
|
createdAt: string;
|
|
@@ -1861,6 +1905,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1861
1905
|
cwd: string | null;
|
|
1862
1906
|
repositoryId: string | null;
|
|
1863
1907
|
baseBranch: string | null;
|
|
1908
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1864
1909
|
dataEncryptionKey: string | null;
|
|
1865
1910
|
agentId: string;
|
|
1866
1911
|
title: string | null;
|
|
@@ -1879,6 +1924,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1879
1924
|
deletions: number;
|
|
1880
1925
|
}[];
|
|
1881
1926
|
} | null;
|
|
1927
|
+
totalDuration: number | null;
|
|
1882
1928
|
}>;
|
|
1883
1929
|
}, "strip", z.ZodTypeAny, {
|
|
1884
1930
|
success: boolean;
|
|
@@ -1893,6 +1939,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1893
1939
|
cwd: string | null;
|
|
1894
1940
|
repositoryId: string | null;
|
|
1895
1941
|
baseBranch: string | null;
|
|
1942
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1896
1943
|
dataEncryptionKey: string | null;
|
|
1897
1944
|
agentId: string;
|
|
1898
1945
|
title: string | null;
|
|
@@ -1911,6 +1958,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1911
1958
|
deletions: number;
|
|
1912
1959
|
}[];
|
|
1913
1960
|
} | null;
|
|
1961
|
+
totalDuration: number | null;
|
|
1914
1962
|
};
|
|
1915
1963
|
}, {
|
|
1916
1964
|
success: boolean;
|
|
@@ -1925,6 +1973,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1925
1973
|
cwd: string | null;
|
|
1926
1974
|
repositoryId: string | null;
|
|
1927
1975
|
baseBranch: string | null;
|
|
1976
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1928
1977
|
dataEncryptionKey: string | null;
|
|
1929
1978
|
agentId: string;
|
|
1930
1979
|
title: string | null;
|
|
@@ -1943,6 +1992,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1943
1992
|
deletions: number;
|
|
1944
1993
|
}[];
|
|
1945
1994
|
} | null;
|
|
1995
|
+
totalDuration: number | null;
|
|
1946
1996
|
};
|
|
1947
1997
|
}>;
|
|
1948
1998
|
type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
|
|
@@ -2533,6 +2583,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2533
2583
|
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
2534
2584
|
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
2535
2585
|
cwd: z.ZodNullable<z.ZodString>;
|
|
2586
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
2536
2587
|
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
2537
2588
|
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
2538
2589
|
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
@@ -2570,6 +2621,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2570
2621
|
deletions: number;
|
|
2571
2622
|
}[];
|
|
2572
2623
|
}>>;
|
|
2624
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
2573
2625
|
createdAt: z.ZodString;
|
|
2574
2626
|
updatedAt: z.ZodString;
|
|
2575
2627
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2583,6 +2635,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2583
2635
|
cwd: string | null;
|
|
2584
2636
|
repositoryId: string | null;
|
|
2585
2637
|
baseBranch: string | null;
|
|
2638
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2586
2639
|
dataEncryptionKey: string | null;
|
|
2587
2640
|
agentId: string;
|
|
2588
2641
|
title: string | null;
|
|
@@ -2601,6 +2654,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2601
2654
|
deletions: number;
|
|
2602
2655
|
}[];
|
|
2603
2656
|
} | null;
|
|
2657
|
+
totalDuration: number | null;
|
|
2604
2658
|
}, {
|
|
2605
2659
|
id: string;
|
|
2606
2660
|
createdAt: string;
|
|
@@ -2612,6 +2666,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2612
2666
|
cwd: string | null;
|
|
2613
2667
|
repositoryId: string | null;
|
|
2614
2668
|
baseBranch: string | null;
|
|
2669
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2615
2670
|
dataEncryptionKey: string | null;
|
|
2616
2671
|
agentId: string;
|
|
2617
2672
|
title: string | null;
|
|
@@ -2630,6 +2685,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2630
2685
|
deletions: number;
|
|
2631
2686
|
}[];
|
|
2632
2687
|
} | null;
|
|
2688
|
+
totalDuration: number | null;
|
|
2633
2689
|
}>, "many">;
|
|
2634
2690
|
}, "strip", z.ZodTypeAny, {
|
|
2635
2691
|
tasks: {
|
|
@@ -2643,6 +2699,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2643
2699
|
cwd: string | null;
|
|
2644
2700
|
repositoryId: string | null;
|
|
2645
2701
|
baseBranch: string | null;
|
|
2702
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2646
2703
|
dataEncryptionKey: string | null;
|
|
2647
2704
|
agentId: string;
|
|
2648
2705
|
title: string | null;
|
|
@@ -2661,6 +2718,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2661
2718
|
deletions: number;
|
|
2662
2719
|
}[];
|
|
2663
2720
|
} | null;
|
|
2721
|
+
totalDuration: number | null;
|
|
2664
2722
|
}[];
|
|
2665
2723
|
}, {
|
|
2666
2724
|
tasks: {
|
|
@@ -2674,6 +2732,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2674
2732
|
cwd: string | null;
|
|
2675
2733
|
repositoryId: string | null;
|
|
2676
2734
|
baseBranch: string | null;
|
|
2735
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2677
2736
|
dataEncryptionKey: string | null;
|
|
2678
2737
|
agentId: string;
|
|
2679
2738
|
title: string | null;
|
|
@@ -2692,6 +2751,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
2692
2751
|
deletions: number;
|
|
2693
2752
|
}[];
|
|
2694
2753
|
} | null;
|
|
2754
|
+
totalDuration: number | null;
|
|
2695
2755
|
}[];
|
|
2696
2756
|
}>;
|
|
2697
2757
|
type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
|
|
@@ -5368,6 +5428,151 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
5368
5428
|
}>;
|
|
5369
5429
|
type GetGitServerResponse = z.infer<typeof GetGitServerResponseSchema>;
|
|
5370
5430
|
|
|
5431
|
+
/**
|
|
5432
|
+
* Option schema for ask-user questions
|
|
5433
|
+
*/
|
|
5434
|
+
declare const AskUserOptionSchema: z.ZodObject<{
|
|
5435
|
+
label: z.ZodString;
|
|
5436
|
+
description: z.ZodString;
|
|
5437
|
+
}, "strip", z.ZodTypeAny, {
|
|
5438
|
+
description: string;
|
|
5439
|
+
label: string;
|
|
5440
|
+
}, {
|
|
5441
|
+
description: string;
|
|
5442
|
+
label: string;
|
|
5443
|
+
}>;
|
|
5444
|
+
type AskUserOption = z.infer<typeof AskUserOptionSchema>;
|
|
5445
|
+
/**
|
|
5446
|
+
* Question schema for ask-user
|
|
5447
|
+
*/
|
|
5448
|
+
declare const AskUserQuestionSchema: z.ZodObject<{
|
|
5449
|
+
question: z.ZodString;
|
|
5450
|
+
header: z.ZodString;
|
|
5451
|
+
multiSelect: z.ZodBoolean;
|
|
5452
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5453
|
+
label: z.ZodString;
|
|
5454
|
+
description: z.ZodString;
|
|
5455
|
+
}, "strip", z.ZodTypeAny, {
|
|
5456
|
+
description: string;
|
|
5457
|
+
label: string;
|
|
5458
|
+
}, {
|
|
5459
|
+
description: string;
|
|
5460
|
+
label: string;
|
|
5461
|
+
}>, "many">;
|
|
5462
|
+
}, "strip", z.ZodTypeAny, {
|
|
5463
|
+
options: {
|
|
5464
|
+
description: string;
|
|
5465
|
+
label: string;
|
|
5466
|
+
}[];
|
|
5467
|
+
question: string;
|
|
5468
|
+
header: string;
|
|
5469
|
+
multiSelect: boolean;
|
|
5470
|
+
}, {
|
|
5471
|
+
options: {
|
|
5472
|
+
description: string;
|
|
5473
|
+
label: string;
|
|
5474
|
+
}[];
|
|
5475
|
+
question: string;
|
|
5476
|
+
header: string;
|
|
5477
|
+
multiSelect: boolean;
|
|
5478
|
+
}>;
|
|
5479
|
+
type AskUserQuestion = z.infer<typeof AskUserQuestionSchema>;
|
|
5480
|
+
/**
|
|
5481
|
+
* Ask user message payload (Worker → App)
|
|
5482
|
+
*/
|
|
5483
|
+
declare const AskUserMessageSchema: z.ZodObject<{
|
|
5484
|
+
type: z.ZodLiteral<"ask_user">;
|
|
5485
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
5486
|
+
question: z.ZodString;
|
|
5487
|
+
header: z.ZodString;
|
|
5488
|
+
multiSelect: z.ZodBoolean;
|
|
5489
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5490
|
+
label: z.ZodString;
|
|
5491
|
+
description: z.ZodString;
|
|
5492
|
+
}, "strip", z.ZodTypeAny, {
|
|
5493
|
+
description: string;
|
|
5494
|
+
label: string;
|
|
5495
|
+
}, {
|
|
5496
|
+
description: string;
|
|
5497
|
+
label: string;
|
|
5498
|
+
}>, "many">;
|
|
5499
|
+
}, "strip", z.ZodTypeAny, {
|
|
5500
|
+
options: {
|
|
5501
|
+
description: string;
|
|
5502
|
+
label: string;
|
|
5503
|
+
}[];
|
|
5504
|
+
question: string;
|
|
5505
|
+
header: string;
|
|
5506
|
+
multiSelect: boolean;
|
|
5507
|
+
}, {
|
|
5508
|
+
options: {
|
|
5509
|
+
description: string;
|
|
5510
|
+
label: string;
|
|
5511
|
+
}[];
|
|
5512
|
+
question: string;
|
|
5513
|
+
header: string;
|
|
5514
|
+
multiSelect: boolean;
|
|
5515
|
+
}>, "many">;
|
|
5516
|
+
}, "strip", z.ZodTypeAny, {
|
|
5517
|
+
type: "ask_user";
|
|
5518
|
+
questions: {
|
|
5519
|
+
options: {
|
|
5520
|
+
description: string;
|
|
5521
|
+
label: string;
|
|
5522
|
+
}[];
|
|
5523
|
+
question: string;
|
|
5524
|
+
header: string;
|
|
5525
|
+
multiSelect: boolean;
|
|
5526
|
+
}[];
|
|
5527
|
+
}, {
|
|
5528
|
+
type: "ask_user";
|
|
5529
|
+
questions: {
|
|
5530
|
+
options: {
|
|
5531
|
+
description: string;
|
|
5532
|
+
label: string;
|
|
5533
|
+
}[];
|
|
5534
|
+
question: string;
|
|
5535
|
+
header: string;
|
|
5536
|
+
multiSelect: boolean;
|
|
5537
|
+
}[];
|
|
5538
|
+
}>;
|
|
5539
|
+
type AskUserMessage = z.infer<typeof AskUserMessageSchema>;
|
|
5540
|
+
/**
|
|
5541
|
+
* Ask user response payload (App → Worker)
|
|
5542
|
+
* Each answer is:
|
|
5543
|
+
* - Selected option label(s), comma-separated for multiSelect
|
|
5544
|
+
* - "other:<custom text>" when "Other" option is selected with custom input
|
|
5545
|
+
*/
|
|
5546
|
+
declare const AskUserResponseMessageSchema: z.ZodObject<{
|
|
5547
|
+
type: z.ZodLiteral<"ask_user_response">;
|
|
5548
|
+
answers: z.ZodArray<z.ZodString, "many">;
|
|
5549
|
+
}, "strip", z.ZodTypeAny, {
|
|
5550
|
+
type: "ask_user_response";
|
|
5551
|
+
answers: string[];
|
|
5552
|
+
}, {
|
|
5553
|
+
type: "ask_user_response";
|
|
5554
|
+
answers: string[];
|
|
5555
|
+
}>;
|
|
5556
|
+
type AskUserResponseMessage = z.infer<typeof AskUserResponseMessageSchema>;
|
|
5557
|
+
/**
|
|
5558
|
+
* Union type for task message payload
|
|
5559
|
+
* - SDKMessage: Normal agent messages
|
|
5560
|
+
* - AskUserMessage: Worker asking user questions
|
|
5561
|
+
* - AskUserResponseMessage: User responding to questions
|
|
5562
|
+
*/
|
|
5563
|
+
type TaskMessagePayload = SDKMessage | AskUserMessage | AskUserResponseMessage;
|
|
5564
|
+
/**
|
|
5565
|
+
* Type guard to check if message is AskUserMessage
|
|
5566
|
+
*/
|
|
5567
|
+
declare function isAskUserMessage(message: TaskMessagePayload): message is AskUserMessage;
|
|
5568
|
+
/**
|
|
5569
|
+
* Type guard to check if message is AskUserResponseMessage
|
|
5570
|
+
*/
|
|
5571
|
+
declare function isAskUserResponseMessage(message: TaskMessagePayload): message is AskUserResponseMessage;
|
|
5572
|
+
/**
|
|
5573
|
+
* Type guard to check if message is SDKMessage (not ask_user related)
|
|
5574
|
+
*/
|
|
5575
|
+
declare function isSDKMessage(message: TaskMessagePayload): message is SDKMessage;
|
|
5371
5576
|
/**
|
|
5372
5577
|
* Generate a unique event ID
|
|
5373
5578
|
* Uses crypto.randomUUID() if available (Node.js), otherwise falls back to a custom implementation
|
|
@@ -5475,16 +5680,19 @@ declare const WorkerReadySchema: z.ZodObject<{
|
|
|
5475
5680
|
taskId: z.ZodString;
|
|
5476
5681
|
machineId: z.ZodString;
|
|
5477
5682
|
timestamp: z.ZodString;
|
|
5683
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
5478
5684
|
}, "strip", z.ZodTypeAny, {
|
|
5479
5685
|
machineId: string;
|
|
5480
5686
|
taskId: string;
|
|
5481
5687
|
eventId: string;
|
|
5482
5688
|
timestamp: string;
|
|
5689
|
+
duration?: number | undefined;
|
|
5483
5690
|
}, {
|
|
5484
5691
|
machineId: string;
|
|
5485
5692
|
taskId: string;
|
|
5486
5693
|
eventId: string;
|
|
5487
5694
|
timestamp: string;
|
|
5695
|
+
duration?: number | undefined;
|
|
5488
5696
|
}>;
|
|
5489
5697
|
type WorkerReadyEventData = z.infer<typeof WorkerReadySchema>;
|
|
5490
5698
|
declare const WorkerAliveEventSchema: z.ZodObject<{
|
|
@@ -5802,77 +6010,43 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5802
6010
|
} & {
|
|
5803
6011
|
taskId: z.ZodString;
|
|
5804
6012
|
from: z.ZodEnum<["app", "api-server", "machine", "worker"]>;
|
|
5805
|
-
|
|
6013
|
+
opCode: z.ZodOptional<z.ZodString>;
|
|
6014
|
+
message: z.ZodOptional<z.ZodType<TaskMessagePayload, z.ZodTypeDef, TaskMessagePayload>>;
|
|
5806
6015
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
5807
6016
|
}, "strip", z.ZodTypeAny, {
|
|
5808
6017
|
taskId: string;
|
|
5809
6018
|
eventId: string;
|
|
5810
6019
|
from: "machine" | "app" | "api-server" | "worker";
|
|
5811
|
-
message?:
|
|
6020
|
+
message?: TaskMessagePayload | undefined;
|
|
5812
6021
|
encryptedMessage?: string | undefined;
|
|
6022
|
+
opCode?: string | undefined;
|
|
5813
6023
|
}, {
|
|
5814
6024
|
taskId: string;
|
|
5815
6025
|
eventId: string;
|
|
5816
6026
|
from: "machine" | "app" | "api-server" | "worker";
|
|
5817
|
-
message?:
|
|
6027
|
+
message?: TaskMessagePayload | undefined;
|
|
5818
6028
|
encryptedMessage?: string | undefined;
|
|
6029
|
+
opCode?: string | undefined;
|
|
5819
6030
|
}>, {
|
|
5820
6031
|
taskId: string;
|
|
5821
6032
|
eventId: string;
|
|
5822
6033
|
from: "machine" | "app" | "api-server" | "worker";
|
|
5823
|
-
message?:
|
|
6034
|
+
message?: TaskMessagePayload | undefined;
|
|
5824
6035
|
encryptedMessage?: string | undefined;
|
|
6036
|
+
opCode?: string | undefined;
|
|
5825
6037
|
}, {
|
|
5826
6038
|
taskId: string;
|
|
5827
6039
|
eventId: string;
|
|
5828
6040
|
from: "machine" | "app" | "api-server" | "worker";
|
|
5829
|
-
message?:
|
|
6041
|
+
message?: TaskMessagePayload | undefined;
|
|
5830
6042
|
encryptedMessage?: string | undefined;
|
|
6043
|
+
opCode?: string | undefined;
|
|
5831
6044
|
}>;
|
|
5832
6045
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
5833
6046
|
/**
|
|
5834
6047
|
* Task state type
|
|
5835
6048
|
*/
|
|
5836
6049
|
type TaskState = "new" | "initializing" | "active" | "stopped" | "completed" | "cancelled" | "error";
|
|
5837
|
-
declare const RequirePermissionSchema: z.ZodObject<{
|
|
5838
|
-
eventId: z.ZodString;
|
|
5839
|
-
} & {
|
|
5840
|
-
taskId: z.ZodString;
|
|
5841
|
-
toolName: z.ZodString;
|
|
5842
|
-
toolInput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5843
|
-
}, "strip", z.ZodTypeAny, {
|
|
5844
|
-
taskId: string;
|
|
5845
|
-
eventId: string;
|
|
5846
|
-
toolName: string;
|
|
5847
|
-
toolInput: Record<string, unknown>;
|
|
5848
|
-
}, {
|
|
5849
|
-
taskId: string;
|
|
5850
|
-
eventId: string;
|
|
5851
|
-
toolName: string;
|
|
5852
|
-
toolInput: Record<string, unknown>;
|
|
5853
|
-
}>;
|
|
5854
|
-
type RequirePermissionData = z.infer<typeof RequirePermissionSchema>;
|
|
5855
|
-
declare const RequirePermissionResponseSchema: z.ZodObject<{
|
|
5856
|
-
eventId: z.ZodString;
|
|
5857
|
-
} & {
|
|
5858
|
-
taskId: z.ZodString;
|
|
5859
|
-
opCode: z.ZodString;
|
|
5860
|
-
behavior: z.ZodEnum<["allow", "deny"]>;
|
|
5861
|
-
message: z.ZodOptional<z.ZodString>;
|
|
5862
|
-
}, "strip", z.ZodTypeAny, {
|
|
5863
|
-
taskId: string;
|
|
5864
|
-
eventId: string;
|
|
5865
|
-
opCode: string;
|
|
5866
|
-
behavior: "allow" | "deny";
|
|
5867
|
-
message?: string | undefined;
|
|
5868
|
-
}, {
|
|
5869
|
-
taskId: string;
|
|
5870
|
-
eventId: string;
|
|
5871
|
-
opCode: string;
|
|
5872
|
-
behavior: "allow" | "deny";
|
|
5873
|
-
message?: string | undefined;
|
|
5874
|
-
}>;
|
|
5875
|
-
type RequirePermissionResponseData = z.infer<typeof RequirePermissionResponseSchema>;
|
|
5876
6050
|
declare const TaskArtifactsUpdatedEventSchema: z.ZodObject<{
|
|
5877
6051
|
eventId: z.ZodString;
|
|
5878
6052
|
} & {
|
|
@@ -6034,13 +6208,13 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6034
6208
|
modifiedAt: z.ZodString;
|
|
6035
6209
|
accessDenied: z.ZodOptional<z.ZodBoolean>;
|
|
6036
6210
|
}, "strip", z.ZodTypeAny, {
|
|
6037
|
-
type: "
|
|
6211
|
+
type: "directory" | "file";
|
|
6038
6212
|
name: string;
|
|
6039
6213
|
size: number;
|
|
6040
6214
|
modifiedAt: string;
|
|
6041
6215
|
accessDenied?: boolean | undefined;
|
|
6042
6216
|
}, {
|
|
6043
|
-
type: "
|
|
6217
|
+
type: "directory" | "file";
|
|
6044
6218
|
name: string;
|
|
6045
6219
|
size: number;
|
|
6046
6220
|
modifiedAt: string;
|
|
@@ -6063,7 +6237,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6063
6237
|
mimeType?: string | undefined;
|
|
6064
6238
|
}>;
|
|
6065
6239
|
}, "strip", z.ZodTypeAny, {
|
|
6066
|
-
type: "
|
|
6240
|
+
type: "directory" | "file";
|
|
6067
6241
|
metadata: {
|
|
6068
6242
|
size: number;
|
|
6069
6243
|
modifiedAt: string;
|
|
@@ -6071,7 +6245,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6071
6245
|
mimeType?: string | undefined;
|
|
6072
6246
|
};
|
|
6073
6247
|
entries?: {
|
|
6074
|
-
type: "
|
|
6248
|
+
type: "directory" | "file";
|
|
6075
6249
|
name: string;
|
|
6076
6250
|
size: number;
|
|
6077
6251
|
modifiedAt: string;
|
|
@@ -6080,7 +6254,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6080
6254
|
content?: string | undefined;
|
|
6081
6255
|
encryptedContent?: string | undefined;
|
|
6082
6256
|
}, {
|
|
6083
|
-
type: "
|
|
6257
|
+
type: "directory" | "file";
|
|
6084
6258
|
metadata: {
|
|
6085
6259
|
size: number;
|
|
6086
6260
|
modifiedAt: string;
|
|
@@ -6088,7 +6262,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6088
6262
|
mimeType?: string | undefined;
|
|
6089
6263
|
};
|
|
6090
6264
|
entries?: {
|
|
6091
|
-
type: "
|
|
6265
|
+
type: "directory" | "file";
|
|
6092
6266
|
name: string;
|
|
6093
6267
|
size: number;
|
|
6094
6268
|
modifiedAt: string;
|
|
@@ -6117,7 +6291,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6117
6291
|
code: string;
|
|
6118
6292
|
} | undefined;
|
|
6119
6293
|
data?: {
|
|
6120
|
-
type: "
|
|
6294
|
+
type: "directory" | "file";
|
|
6121
6295
|
metadata: {
|
|
6122
6296
|
size: number;
|
|
6123
6297
|
modifiedAt: string;
|
|
@@ -6125,7 +6299,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6125
6299
|
mimeType?: string | undefined;
|
|
6126
6300
|
};
|
|
6127
6301
|
entries?: {
|
|
6128
|
-
type: "
|
|
6302
|
+
type: "directory" | "file";
|
|
6129
6303
|
name: string;
|
|
6130
6304
|
size: number;
|
|
6131
6305
|
modifiedAt: string;
|
|
@@ -6145,7 +6319,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6145
6319
|
code: string;
|
|
6146
6320
|
} | undefined;
|
|
6147
6321
|
data?: {
|
|
6148
|
-
type: "
|
|
6322
|
+
type: "directory" | "file";
|
|
6149
6323
|
metadata: {
|
|
6150
6324
|
size: number;
|
|
6151
6325
|
modifiedAt: string;
|
|
@@ -6153,7 +6327,7 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
6153
6327
|
mimeType?: string | undefined;
|
|
6154
6328
|
};
|
|
6155
6329
|
entries?: {
|
|
6156
|
-
type: "
|
|
6330
|
+
type: "directory" | "file";
|
|
6157
6331
|
name: string;
|
|
6158
6332
|
size: number;
|
|
6159
6333
|
modifiedAt: string;
|
|
@@ -6440,7 +6614,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
6440
6614
|
timestamp: string;
|
|
6441
6615
|
}>;
|
|
6442
6616
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
6443
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData |
|
|
6617
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
6444
6618
|
type EventMap = {
|
|
6445
6619
|
"app-alive": AppAliveEventData;
|
|
6446
6620
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -6459,8 +6633,6 @@ type EventMap = {
|
|
|
6459
6633
|
"task-state-change": TaskStateChangeEventData;
|
|
6460
6634
|
"update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
|
|
6461
6635
|
"task-artifacts-updated": TaskArtifactsUpdatedEventData;
|
|
6462
|
-
"require-permission": RequirePermissionData;
|
|
6463
|
-
"require-permission-response": RequirePermissionResponseData;
|
|
6464
6636
|
"merge-request": MergeRequestEventData;
|
|
6465
6637
|
"system-message": SystemMessageEventData;
|
|
6466
6638
|
"credit-exhausted": CreditExhaustedEventData;
|
|
@@ -6473,7 +6645,7 @@ declare const EventSchemaMap: Record<EventName, z.ZodType<any>>;
|
|
|
6473
6645
|
/**
|
|
6474
6646
|
* only sent by worker and which need to send to human in chat room
|
|
6475
6647
|
*/
|
|
6476
|
-
type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "
|
|
6648
|
+
type WorkerTaskEvent = "worker-initializing" | "worker-ready" | "worker-exit" | "worker-running" | "change-task-title" | "update-task-agent-session-id" | "task-artifacts-updated" | "merge-request";
|
|
6477
6649
|
declare const workerTaskEvents: WorkerTaskEvent[];
|
|
6478
6650
|
|
|
6479
6651
|
type ClientType = 'user' | 'worker' | 'machine';
|
|
@@ -6523,26 +6695,6 @@ interface AgentMetadata {
|
|
|
6523
6695
|
version: string;
|
|
6524
6696
|
description?: string;
|
|
6525
6697
|
}
|
|
6526
|
-
/**
|
|
6527
|
-
* MCP Server configuration from .claude/mcp-servers/<server-name>/config.json
|
|
6528
|
-
*/
|
|
6529
|
-
interface MCPServerConfig {
|
|
6530
|
-
name: string;
|
|
6531
|
-
command?: string;
|
|
6532
|
-
args?: string[];
|
|
6533
|
-
env?: Record<string, string>;
|
|
6534
|
-
url?: string;
|
|
6535
|
-
transport?: 'stdio' | 'http';
|
|
6536
|
-
}
|
|
6537
|
-
/**
|
|
6538
|
-
* Skill configuration from .claude/skills/<skill-name>/skill.json
|
|
6539
|
-
*/
|
|
6540
|
-
interface SkillConfig {
|
|
6541
|
-
name: string;
|
|
6542
|
-
description?: string;
|
|
6543
|
-
enabled: boolean;
|
|
6544
|
-
implementation?: string;
|
|
6545
|
-
}
|
|
6546
6698
|
/**
|
|
6547
6699
|
* Claude-specific agent configuration from .claude/config.json
|
|
6548
6700
|
*/
|
|
@@ -6559,23 +6711,11 @@ interface ClaudeAgentConfig {
|
|
|
6559
6711
|
permissionMode?: 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
|
|
6560
6712
|
allowedTools?: string[];
|
|
6561
6713
|
};
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
};
|
|
6566
|
-
skills?: {
|
|
6567
|
-
enabled: string[];
|
|
6568
|
-
directory: string;
|
|
6714
|
+
pullRequestPrompt?: {
|
|
6715
|
+
path: string;
|
|
6716
|
+
mode?: 'append' | 'replace';
|
|
6569
6717
|
};
|
|
6570
6718
|
}
|
|
6571
|
-
/**
|
|
6572
|
-
* Loaded MCP server instance ready for SDK
|
|
6573
|
-
*/
|
|
6574
|
-
interface LoadedMCPServer {
|
|
6575
|
-
name: string;
|
|
6576
|
-
config: MCPServerConfig;
|
|
6577
|
-
instance: any;
|
|
6578
|
-
}
|
|
6579
6719
|
/**
|
|
6580
6720
|
* Complete agent configuration after loading
|
|
6581
6721
|
*/
|
|
@@ -6585,8 +6725,10 @@ interface AgentConfig {
|
|
|
6585
6725
|
claude?: {
|
|
6586
6726
|
config: ClaudeAgentConfig;
|
|
6587
6727
|
systemPrompt?: string;
|
|
6588
|
-
|
|
6589
|
-
|
|
6728
|
+
/** Pull request prompt template content */
|
|
6729
|
+
prPromptTemplate?: string;
|
|
6730
|
+
/** Absolute paths to discovered plugins */
|
|
6731
|
+
plugins: string[];
|
|
6590
6732
|
};
|
|
6591
6733
|
codex?: {};
|
|
6592
6734
|
}
|
|
@@ -6664,50 +6806,6 @@ declare const AgentMetadataSchema: z.ZodObject<{
|
|
|
6664
6806
|
version: string;
|
|
6665
6807
|
description?: string | undefined;
|
|
6666
6808
|
}>;
|
|
6667
|
-
/**
|
|
6668
|
-
* MCP Server configuration schema
|
|
6669
|
-
*/
|
|
6670
|
-
declare const MCPServerConfigSchema: z.ZodObject<{
|
|
6671
|
-
name: z.ZodString;
|
|
6672
|
-
command: z.ZodOptional<z.ZodString>;
|
|
6673
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6674
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6675
|
-
url: z.ZodOptional<z.ZodString>;
|
|
6676
|
-
transport: z.ZodOptional<z.ZodEnum<["stdio", "http"]>>;
|
|
6677
|
-
}, "strip", z.ZodTypeAny, {
|
|
6678
|
-
name: string;
|
|
6679
|
-
url?: string | undefined;
|
|
6680
|
-
command?: string | undefined;
|
|
6681
|
-
args?: string[] | undefined;
|
|
6682
|
-
env?: Record<string, string> | undefined;
|
|
6683
|
-
transport?: "stdio" | "http" | undefined;
|
|
6684
|
-
}, {
|
|
6685
|
-
name: string;
|
|
6686
|
-
url?: string | undefined;
|
|
6687
|
-
command?: string | undefined;
|
|
6688
|
-
args?: string[] | undefined;
|
|
6689
|
-
env?: Record<string, string> | undefined;
|
|
6690
|
-
transport?: "stdio" | "http" | undefined;
|
|
6691
|
-
}>;
|
|
6692
|
-
/**
|
|
6693
|
-
* Skill configuration schema
|
|
6694
|
-
*/
|
|
6695
|
-
declare const SkillConfigSchema: z.ZodObject<{
|
|
6696
|
-
name: z.ZodString;
|
|
6697
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6698
|
-
enabled: z.ZodBoolean;
|
|
6699
|
-
implementation: z.ZodOptional<z.ZodString>;
|
|
6700
|
-
}, "strip", z.ZodTypeAny, {
|
|
6701
|
-
name: string;
|
|
6702
|
-
enabled: boolean;
|
|
6703
|
-
description?: string | undefined;
|
|
6704
|
-
implementation?: string | undefined;
|
|
6705
|
-
}, {
|
|
6706
|
-
name: string;
|
|
6707
|
-
enabled: boolean;
|
|
6708
|
-
description?: string | undefined;
|
|
6709
|
-
implementation?: string | undefined;
|
|
6710
|
-
}>;
|
|
6711
6809
|
/**
|
|
6712
6810
|
* Claude agent configuration schema (.claude/config.json)
|
|
6713
6811
|
*/
|
|
@@ -6736,25 +6834,15 @@ declare const ClaudeConfigSchema: z.ZodObject<{
|
|
|
6736
6834
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
6737
6835
|
allowedTools?: string[] | undefined;
|
|
6738
6836
|
}>>;
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
}, "strip", z.ZodTypeAny, {
|
|
6743
|
-
directory: string;
|
|
6744
|
-
enabled: string[];
|
|
6745
|
-
}, {
|
|
6746
|
-
directory: string;
|
|
6747
|
-
enabled: string[];
|
|
6748
|
-
}>>;
|
|
6749
|
-
skills: z.ZodOptional<z.ZodObject<{
|
|
6750
|
-
enabled: z.ZodArray<z.ZodString, "many">;
|
|
6751
|
-
directory: z.ZodString;
|
|
6837
|
+
pullRequestPrompt: z.ZodOptional<z.ZodObject<{
|
|
6838
|
+
path: z.ZodString;
|
|
6839
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["append", "replace"]>>>;
|
|
6752
6840
|
}, "strip", z.ZodTypeAny, {
|
|
6753
|
-
|
|
6754
|
-
|
|
6841
|
+
path: string;
|
|
6842
|
+
mode: "append" | "replace";
|
|
6755
6843
|
}, {
|
|
6756
|
-
|
|
6757
|
-
|
|
6844
|
+
path: string;
|
|
6845
|
+
mode?: "append" | "replace" | undefined;
|
|
6758
6846
|
}>>;
|
|
6759
6847
|
}, "strip", z.ZodTypeAny, {
|
|
6760
6848
|
model?: string | undefined;
|
|
@@ -6769,13 +6857,9 @@ declare const ClaudeConfigSchema: z.ZodObject<{
|
|
|
6769
6857
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
6770
6858
|
allowedTools?: string[] | undefined;
|
|
6771
6859
|
} | undefined;
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
} | undefined;
|
|
6776
|
-
skills?: {
|
|
6777
|
-
directory: string;
|
|
6778
|
-
enabled: string[];
|
|
6860
|
+
pullRequestPrompt?: {
|
|
6861
|
+
path: string;
|
|
6862
|
+
mode: "append" | "replace";
|
|
6779
6863
|
} | undefined;
|
|
6780
6864
|
}, {
|
|
6781
6865
|
model?: string | undefined;
|
|
@@ -6790,13 +6874,9 @@ declare const ClaudeConfigSchema: z.ZodObject<{
|
|
|
6790
6874
|
permissionMode?: "default" | "acceptEdits" | "bypassPermissions" | "plan" | undefined;
|
|
6791
6875
|
allowedTools?: string[] | undefined;
|
|
6792
6876
|
} | undefined;
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
} | undefined;
|
|
6797
|
-
skills?: {
|
|
6798
|
-
directory: string;
|
|
6799
|
-
enabled: string[];
|
|
6877
|
+
pullRequestPrompt?: {
|
|
6878
|
+
path: string;
|
|
6879
|
+
mode?: "append" | "replace" | undefined;
|
|
6800
6880
|
} | undefined;
|
|
6801
6881
|
}>;
|
|
6802
6882
|
|
|
@@ -6828,9 +6908,6 @@ declare class MissingAgentFileError extends AgentError {
|
|
|
6828
6908
|
* Agent configuration loader - main entry point for loading agent configurations
|
|
6829
6909
|
*/
|
|
6830
6910
|
|
|
6831
|
-
/**
|
|
6832
|
-
* Load complete agent configuration
|
|
6833
|
-
*/
|
|
6834
6911
|
declare function loadAgentConfig(options: LoadAgentOptions): Promise<AgentConfig>;
|
|
6835
6912
|
|
|
6836
6913
|
/**
|
|
@@ -6855,13 +6932,22 @@ declare function assertFileExists(filePath: string, description?: string): void;
|
|
|
6855
6932
|
declare function assertAgentExists(agentDir: string, agentId: string): void;
|
|
6856
6933
|
|
|
6857
6934
|
/**
|
|
6858
|
-
*
|
|
6935
|
+
* Plugin loader for agent system
|
|
6936
|
+
*
|
|
6937
|
+
* Auto-discovers plugins in the plugins directory by looking for
|
|
6938
|
+
* directories containing .claude-plugin/plugin.json manifest files.
|
|
6939
|
+
* The SDK handles manifest parsing - we only need to verify existence.
|
|
6859
6940
|
*/
|
|
6860
|
-
|
|
6861
6941
|
/**
|
|
6862
|
-
*
|
|
6942
|
+
* Discover plugins in the plugins directory
|
|
6943
|
+
*
|
|
6944
|
+
* Scans the plugins directory for subdirectories containing valid plugin manifests
|
|
6945
|
+
* (.claude-plugin/plugin.json). Returns absolute paths to valid plugin directories.
|
|
6946
|
+
*
|
|
6947
|
+
* @param pluginsDir - Path to .claude/plugins/ directory
|
|
6948
|
+
* @returns Array of absolute paths to valid plugin directories
|
|
6863
6949
|
*/
|
|
6864
|
-
declare function
|
|
6950
|
+
declare function discoverPlugins(pluginsDir: string): string[];
|
|
6865
6951
|
|
|
6866
6952
|
declare function encodeBase64(buffer: Uint8Array, variant?: 'base64' | 'base64url'): string;
|
|
6867
6953
|
declare function encodeBase64Url(buffer: Uint8Array): string;
|
|
@@ -6932,5 +7018,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
|
|
|
6932
7018
|
*/
|
|
6933
7019
|
declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
|
|
6934
7020
|
|
|
6935
|
-
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, 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, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema,
|
|
6936
|
-
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, 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, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions,
|
|
7021
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, 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, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, 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, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, discoverPlugins, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
7022
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, 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, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, 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, 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, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|