@agentrix/shared 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +383 -18
- package/dist/index.d.cts +1572 -610
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
|
|
|
16
16
|
message: z.ZodString;
|
|
17
17
|
details: z.ZodOptional<z.ZodAny>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
message: string;
|
|
20
19
|
error: string;
|
|
20
|
+
message: string;
|
|
21
21
|
details?: any;
|
|
22
22
|
}, {
|
|
23
|
-
message: string;
|
|
24
23
|
error: string;
|
|
24
|
+
message: string;
|
|
25
25
|
details?: any;
|
|
26
26
|
}>;
|
|
27
27
|
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
@@ -35,14 +35,14 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
|
|
|
35
35
|
limit: z.ZodNumber;
|
|
36
36
|
items: z.ZodArray<T, "many">;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
limit: number;
|
|
39
38
|
total: number;
|
|
40
39
|
page: number;
|
|
40
|
+
limit: number;
|
|
41
41
|
items: T["_output"][];
|
|
42
42
|
}, {
|
|
43
|
-
limit: number;
|
|
44
43
|
total: number;
|
|
45
44
|
page: number;
|
|
45
|
+
limit: number;
|
|
46
46
|
items: T["_input"][];
|
|
47
47
|
}>;
|
|
48
48
|
/**
|
|
@@ -230,21 +230,21 @@ declare const SignatureAuthResponseSchema: z.ZodObject<{
|
|
|
230
230
|
avatar: string | null;
|
|
231
231
|
}>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
token: string;
|
|
233
234
|
user: {
|
|
234
235
|
id: string;
|
|
235
236
|
username: string;
|
|
236
237
|
email: string | null;
|
|
237
238
|
avatar: string | null;
|
|
238
239
|
};
|
|
239
|
-
token: string;
|
|
240
240
|
}, {
|
|
241
|
+
token: string;
|
|
241
242
|
user: {
|
|
242
243
|
id: string;
|
|
243
244
|
username: string;
|
|
244
245
|
email: string | null;
|
|
245
246
|
avatar: string | null;
|
|
246
247
|
};
|
|
247
|
-
token: string;
|
|
248
248
|
}>;
|
|
249
249
|
type SignatureAuthResponse = z.infer<typeof SignatureAuthResponseSchema>;
|
|
250
250
|
/**
|
|
@@ -281,9 +281,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
281
281
|
username: string;
|
|
282
282
|
email: string | null;
|
|
283
283
|
avatar: string | null;
|
|
284
|
-
createdAt: string;
|
|
285
284
|
encryptedSecret: string | null;
|
|
286
285
|
secretSalt: string | null;
|
|
286
|
+
createdAt: string;
|
|
287
287
|
oauthAccounts?: {
|
|
288
288
|
username: string;
|
|
289
289
|
email: string | null;
|
|
@@ -295,9 +295,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
295
295
|
username: string;
|
|
296
296
|
email: string | null;
|
|
297
297
|
avatar: string | null;
|
|
298
|
-
createdAt: string;
|
|
299
298
|
encryptedSecret: string | null;
|
|
300
299
|
secretSalt: string | null;
|
|
300
|
+
createdAt: string;
|
|
301
301
|
oauthAccounts?: {
|
|
302
302
|
username: string;
|
|
303
303
|
email: string | null;
|
|
@@ -311,9 +311,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
311
311
|
username: string;
|
|
312
312
|
email: string | null;
|
|
313
313
|
avatar: string | null;
|
|
314
|
-
createdAt: string;
|
|
315
314
|
encryptedSecret: string | null;
|
|
316
315
|
secretSalt: string | null;
|
|
316
|
+
createdAt: string;
|
|
317
317
|
oauthAccounts?: {
|
|
318
318
|
username: string;
|
|
319
319
|
email: string | null;
|
|
@@ -327,9 +327,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
|
|
|
327
327
|
username: string;
|
|
328
328
|
email: string | null;
|
|
329
329
|
avatar: string | null;
|
|
330
|
-
createdAt: string;
|
|
331
330
|
encryptedSecret: string | null;
|
|
332
331
|
secretSalt: string | null;
|
|
332
|
+
createdAt: string;
|
|
333
333
|
oauthAccounts?: {
|
|
334
334
|
username: string;
|
|
335
335
|
email: string | null;
|
|
@@ -480,6 +480,7 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
480
480
|
}[] | undefined;
|
|
481
481
|
}>;
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
token: string;
|
|
483
484
|
user: {
|
|
484
485
|
id: string;
|
|
485
486
|
username: string;
|
|
@@ -492,8 +493,8 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
492
493
|
avatarUrl: string;
|
|
493
494
|
}[] | undefined;
|
|
494
495
|
};
|
|
495
|
-
token: string;
|
|
496
496
|
}, {
|
|
497
|
+
token: string;
|
|
497
498
|
user: {
|
|
498
499
|
id: string;
|
|
499
500
|
username: string;
|
|
@@ -506,7 +507,6 @@ declare const OAuthCallbackResponseSchema: z.ZodObject<{
|
|
|
506
507
|
avatarUrl: string;
|
|
507
508
|
}[] | undefined;
|
|
508
509
|
};
|
|
509
|
-
token: string;
|
|
510
510
|
}>;
|
|
511
511
|
type OAuthCallbackResponse = z.infer<typeof OAuthCallbackResponseSchema>;
|
|
512
512
|
/**
|
|
@@ -594,13 +594,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
|
|
|
594
594
|
content: z.ZodString;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
596
|
id: string;
|
|
597
|
-
state: "authorized";
|
|
598
597
|
token: string;
|
|
598
|
+
state: "authorized";
|
|
599
599
|
content: string;
|
|
600
600
|
}, {
|
|
601
601
|
id: string;
|
|
602
|
-
state: "authorized";
|
|
603
602
|
token: string;
|
|
603
|
+
state: "authorized";
|
|
604
604
|
content: string;
|
|
605
605
|
}>;
|
|
606
606
|
type MachineAuthAuthorizedResponse = z.infer<typeof MachineAuthAuthorizedResponseSchema>;
|
|
@@ -621,9 +621,9 @@ type MachineApprovalStatusQuery = z.infer<typeof MachineApprovalStatusQuerySchem
|
|
|
621
621
|
declare const ApprovalStatusResponseSchema: z.ZodObject<{
|
|
622
622
|
status: z.ZodEnum<["pending", "approved"]>;
|
|
623
623
|
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
status: "
|
|
624
|
+
status: "pending" | "approved";
|
|
625
625
|
}, {
|
|
626
|
-
status: "
|
|
626
|
+
status: "pending" | "approved";
|
|
627
627
|
}>;
|
|
628
628
|
type ApprovalStatusResponse = z.infer<typeof ApprovalStatusResponseSchema>;
|
|
629
629
|
/**
|
|
@@ -751,8 +751,9 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
751
751
|
canMergePr: boolean;
|
|
752
752
|
}>;
|
|
753
753
|
}, "strip", z.ZodTypeAny, {
|
|
754
|
-
taskId: string;
|
|
755
754
|
success: true;
|
|
755
|
+
shareToken: string;
|
|
756
|
+
taskId: string;
|
|
756
757
|
permissions: {
|
|
757
758
|
canSendMessage: boolean;
|
|
758
759
|
canCreatePr: boolean;
|
|
@@ -760,10 +761,10 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
760
761
|
canViewPr: boolean;
|
|
761
762
|
canMergePr: boolean;
|
|
762
763
|
};
|
|
763
|
-
shareToken: string;
|
|
764
764
|
}, {
|
|
765
|
-
taskId: string;
|
|
766
765
|
success: true;
|
|
766
|
+
shareToken: string;
|
|
767
|
+
taskId: string;
|
|
767
768
|
permissions: {
|
|
768
769
|
canSendMessage: boolean;
|
|
769
770
|
canCreatePr: boolean;
|
|
@@ -771,14 +772,13 @@ declare const ShareAuthResponseSchema: z.ZodObject<{
|
|
|
771
772
|
canViewPr: boolean;
|
|
772
773
|
canMergePr: boolean;
|
|
773
774
|
};
|
|
774
|
-
shareToken: string;
|
|
775
775
|
}>;
|
|
776
776
|
type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
|
|
777
777
|
|
|
778
778
|
/**
|
|
779
779
|
* Task HTTP request/response schemas
|
|
780
780
|
* Task management endpoints (start, resume, cancel, stop, permission-response, list)
|
|
781
|
-
* Extended with multi-agent collaboration support
|
|
781
|
+
* Extended with multi-agent collaboration support and custom task titles
|
|
782
782
|
*/
|
|
783
783
|
|
|
784
784
|
/**
|
|
@@ -786,6 +786,7 @@ type ShareAuthResponse = z.infer<typeof ShareAuthResponseSchema>;
|
|
|
786
786
|
*/
|
|
787
787
|
declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
788
788
|
chatId: z.ZodString;
|
|
789
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
789
790
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
790
791
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
791
792
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -796,89 +797,103 @@ declare const StartTaskRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
796
797
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
797
798
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
798
799
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
800
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
799
801
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
800
802
|
}, "strip", z.ZodTypeAny, {
|
|
801
803
|
chatId: string;
|
|
802
804
|
message?: SDKUserMessage | undefined;
|
|
805
|
+
machineId?: string | undefined;
|
|
806
|
+
cloudId?: string | undefined;
|
|
807
|
+
customTitle?: string | undefined;
|
|
803
808
|
encryptedMessage?: string | undefined;
|
|
804
809
|
cwd?: string | undefined;
|
|
805
810
|
forceUserCwd?: boolean | undefined;
|
|
806
|
-
machineId?: string | undefined;
|
|
807
|
-
cloudId?: string | undefined;
|
|
808
811
|
repositoryId?: string | undefined;
|
|
809
812
|
baseBranch?: string | undefined;
|
|
810
813
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
811
814
|
dataEncryptionKey?: string | undefined;
|
|
815
|
+
agentId?: string | undefined;
|
|
812
816
|
parentTaskId?: string | undefined;
|
|
813
817
|
}, {
|
|
814
818
|
chatId: string;
|
|
815
819
|
message?: SDKUserMessage | undefined;
|
|
820
|
+
machineId?: string | undefined;
|
|
821
|
+
cloudId?: string | undefined;
|
|
822
|
+
customTitle?: string | undefined;
|
|
816
823
|
encryptedMessage?: string | undefined;
|
|
817
824
|
cwd?: string | undefined;
|
|
818
825
|
forceUserCwd?: boolean | undefined;
|
|
819
|
-
machineId?: string | undefined;
|
|
820
|
-
cloudId?: string | undefined;
|
|
821
826
|
repositoryId?: string | undefined;
|
|
822
827
|
baseBranch?: string | undefined;
|
|
823
828
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
824
829
|
dataEncryptionKey?: string | undefined;
|
|
830
|
+
agentId?: string | undefined;
|
|
825
831
|
parentTaskId?: string | undefined;
|
|
826
832
|
}>, {
|
|
827
833
|
chatId: string;
|
|
828
834
|
message?: SDKUserMessage | undefined;
|
|
835
|
+
machineId?: string | undefined;
|
|
836
|
+
cloudId?: string | undefined;
|
|
837
|
+
customTitle?: string | undefined;
|
|
829
838
|
encryptedMessage?: string | undefined;
|
|
830
839
|
cwd?: string | undefined;
|
|
831
840
|
forceUserCwd?: boolean | undefined;
|
|
832
|
-
machineId?: string | undefined;
|
|
833
|
-
cloudId?: string | undefined;
|
|
834
841
|
repositoryId?: string | undefined;
|
|
835
842
|
baseBranch?: string | undefined;
|
|
836
843
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
837
844
|
dataEncryptionKey?: string | undefined;
|
|
845
|
+
agentId?: string | undefined;
|
|
838
846
|
parentTaskId?: string | undefined;
|
|
839
847
|
}, {
|
|
840
848
|
chatId: string;
|
|
841
849
|
message?: SDKUserMessage | undefined;
|
|
850
|
+
machineId?: string | undefined;
|
|
851
|
+
cloudId?: string | undefined;
|
|
852
|
+
customTitle?: string | undefined;
|
|
842
853
|
encryptedMessage?: string | undefined;
|
|
843
854
|
cwd?: string | undefined;
|
|
844
855
|
forceUserCwd?: boolean | undefined;
|
|
845
|
-
machineId?: string | undefined;
|
|
846
|
-
cloudId?: string | undefined;
|
|
847
856
|
repositoryId?: string | undefined;
|
|
848
857
|
baseBranch?: string | undefined;
|
|
849
858
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
850
859
|
dataEncryptionKey?: string | undefined;
|
|
860
|
+
agentId?: string | undefined;
|
|
851
861
|
parentTaskId?: string | undefined;
|
|
852
862
|
}>, {
|
|
853
863
|
chatId: string;
|
|
854
864
|
message?: SDKUserMessage | undefined;
|
|
865
|
+
machineId?: string | undefined;
|
|
866
|
+
cloudId?: string | undefined;
|
|
867
|
+
customTitle?: string | undefined;
|
|
855
868
|
encryptedMessage?: string | undefined;
|
|
856
869
|
cwd?: string | undefined;
|
|
857
870
|
forceUserCwd?: boolean | undefined;
|
|
858
|
-
machineId?: string | undefined;
|
|
859
|
-
cloudId?: string | undefined;
|
|
860
871
|
repositoryId?: string | undefined;
|
|
861
872
|
baseBranch?: string | undefined;
|
|
862
873
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
863
874
|
dataEncryptionKey?: string | undefined;
|
|
875
|
+
agentId?: string | undefined;
|
|
864
876
|
parentTaskId?: string | undefined;
|
|
865
877
|
}, {
|
|
866
878
|
chatId: string;
|
|
867
879
|
message?: SDKUserMessage | undefined;
|
|
880
|
+
machineId?: string | undefined;
|
|
881
|
+
cloudId?: string | undefined;
|
|
882
|
+
customTitle?: string | undefined;
|
|
868
883
|
encryptedMessage?: string | undefined;
|
|
869
884
|
cwd?: string | undefined;
|
|
870
885
|
forceUserCwd?: boolean | undefined;
|
|
871
|
-
machineId?: string | undefined;
|
|
872
|
-
cloudId?: string | undefined;
|
|
873
886
|
repositoryId?: string | undefined;
|
|
874
887
|
baseBranch?: string | undefined;
|
|
875
888
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
876
889
|
dataEncryptionKey?: string | undefined;
|
|
890
|
+
agentId?: string | undefined;
|
|
877
891
|
parentTaskId?: string | undefined;
|
|
878
892
|
}>;
|
|
879
893
|
type StartTaskRequest = z.infer<typeof StartTaskRequestSchema>;
|
|
880
894
|
declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
881
895
|
chatId: z.ZodString;
|
|
896
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
882
897
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
883
898
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
884
899
|
cwd: z.ZodOptional<z.ZodString>;
|
|
@@ -889,84 +904,97 @@ declare const startTaskSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
889
904
|
baseBranch: z.ZodOptional<z.ZodString>;
|
|
890
905
|
repositorySourceType: z.ZodOptional<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
891
906
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
907
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
892
908
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
893
909
|
}, "strip", z.ZodTypeAny, {
|
|
894
910
|
chatId: string;
|
|
895
911
|
message?: SDKUserMessage | undefined;
|
|
912
|
+
machineId?: string | undefined;
|
|
913
|
+
cloudId?: string | undefined;
|
|
914
|
+
customTitle?: string | undefined;
|
|
896
915
|
encryptedMessage?: string | undefined;
|
|
897
916
|
cwd?: string | undefined;
|
|
898
917
|
forceUserCwd?: boolean | undefined;
|
|
899
|
-
machineId?: string | undefined;
|
|
900
|
-
cloudId?: string | undefined;
|
|
901
918
|
repositoryId?: string | undefined;
|
|
902
919
|
baseBranch?: string | undefined;
|
|
903
920
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
904
921
|
dataEncryptionKey?: string | undefined;
|
|
922
|
+
agentId?: string | undefined;
|
|
905
923
|
parentTaskId?: string | undefined;
|
|
906
924
|
}, {
|
|
907
925
|
chatId: string;
|
|
908
926
|
message?: SDKUserMessage | undefined;
|
|
927
|
+
machineId?: string | undefined;
|
|
928
|
+
cloudId?: string | undefined;
|
|
929
|
+
customTitle?: string | undefined;
|
|
909
930
|
encryptedMessage?: string | undefined;
|
|
910
931
|
cwd?: string | undefined;
|
|
911
932
|
forceUserCwd?: boolean | undefined;
|
|
912
|
-
machineId?: string | undefined;
|
|
913
|
-
cloudId?: string | undefined;
|
|
914
933
|
repositoryId?: string | undefined;
|
|
915
934
|
baseBranch?: string | undefined;
|
|
916
935
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
917
936
|
dataEncryptionKey?: string | undefined;
|
|
937
|
+
agentId?: string | undefined;
|
|
918
938
|
parentTaskId?: string | undefined;
|
|
919
939
|
}>, {
|
|
920
940
|
chatId: string;
|
|
921
941
|
message?: SDKUserMessage | undefined;
|
|
942
|
+
machineId?: string | undefined;
|
|
943
|
+
cloudId?: string | undefined;
|
|
944
|
+
customTitle?: string | undefined;
|
|
922
945
|
encryptedMessage?: string | undefined;
|
|
923
946
|
cwd?: string | undefined;
|
|
924
947
|
forceUserCwd?: boolean | undefined;
|
|
925
|
-
machineId?: string | undefined;
|
|
926
|
-
cloudId?: string | undefined;
|
|
927
948
|
repositoryId?: string | undefined;
|
|
928
949
|
baseBranch?: string | undefined;
|
|
929
950
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
930
951
|
dataEncryptionKey?: string | undefined;
|
|
952
|
+
agentId?: string | undefined;
|
|
931
953
|
parentTaskId?: string | undefined;
|
|
932
954
|
}, {
|
|
933
955
|
chatId: string;
|
|
934
956
|
message?: SDKUserMessage | undefined;
|
|
957
|
+
machineId?: string | undefined;
|
|
958
|
+
cloudId?: string | undefined;
|
|
959
|
+
customTitle?: string | undefined;
|
|
935
960
|
encryptedMessage?: string | undefined;
|
|
936
961
|
cwd?: string | undefined;
|
|
937
962
|
forceUserCwd?: boolean | undefined;
|
|
938
|
-
machineId?: string | undefined;
|
|
939
|
-
cloudId?: string | undefined;
|
|
940
963
|
repositoryId?: string | undefined;
|
|
941
964
|
baseBranch?: string | undefined;
|
|
942
965
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
943
966
|
dataEncryptionKey?: string | undefined;
|
|
967
|
+
agentId?: string | undefined;
|
|
944
968
|
parentTaskId?: string | undefined;
|
|
945
969
|
}>, {
|
|
946
970
|
chatId: string;
|
|
947
971
|
message?: SDKUserMessage | undefined;
|
|
972
|
+
machineId?: string | undefined;
|
|
973
|
+
cloudId?: string | undefined;
|
|
974
|
+
customTitle?: string | undefined;
|
|
948
975
|
encryptedMessage?: string | undefined;
|
|
949
976
|
cwd?: string | undefined;
|
|
950
977
|
forceUserCwd?: boolean | undefined;
|
|
951
|
-
machineId?: string | undefined;
|
|
952
|
-
cloudId?: string | undefined;
|
|
953
978
|
repositoryId?: string | undefined;
|
|
954
979
|
baseBranch?: string | undefined;
|
|
955
980
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
956
981
|
dataEncryptionKey?: string | undefined;
|
|
982
|
+
agentId?: string | undefined;
|
|
957
983
|
parentTaskId?: string | undefined;
|
|
958
984
|
}, {
|
|
959
985
|
chatId: string;
|
|
960
986
|
message?: SDKUserMessage | undefined;
|
|
987
|
+
machineId?: string | undefined;
|
|
988
|
+
cloudId?: string | undefined;
|
|
989
|
+
customTitle?: string | undefined;
|
|
961
990
|
encryptedMessage?: string | undefined;
|
|
962
991
|
cwd?: string | undefined;
|
|
963
992
|
forceUserCwd?: boolean | undefined;
|
|
964
|
-
machineId?: string | undefined;
|
|
965
|
-
cloudId?: string | undefined;
|
|
966
993
|
repositoryId?: string | undefined;
|
|
967
994
|
baseBranch?: string | undefined;
|
|
968
995
|
repositorySourceType?: "temporary" | "directory" | "git-server" | undefined;
|
|
969
996
|
dataEncryptionKey?: string | undefined;
|
|
997
|
+
agentId?: string | undefined;
|
|
970
998
|
parentTaskId?: string | undefined;
|
|
971
999
|
}>;
|
|
972
1000
|
/**
|
|
@@ -983,39 +1011,42 @@ declare const StartTaskResponseSchema: z.ZodObject<{
|
|
|
983
1011
|
repositoryId: z.ZodNullable<z.ZodString>;
|
|
984
1012
|
baseBranch: z.ZodNullable<z.ZodString>;
|
|
985
1013
|
title: z.ZodNullable<z.ZodString>;
|
|
1014
|
+
customTitle: z.ZodNullable<z.ZodString>;
|
|
986
1015
|
userCwd: z.ZodNullable<z.ZodString>;
|
|
987
1016
|
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
988
1017
|
createdAt: z.ZodString;
|
|
989
1018
|
updatedAt: z.ZodString;
|
|
990
1019
|
}, "strip", z.ZodTypeAny, {
|
|
991
|
-
|
|
992
|
-
|
|
1020
|
+
createdAt: string;
|
|
1021
|
+
state: string;
|
|
993
1022
|
machineId: string | null;
|
|
994
1023
|
cloudId: string | null;
|
|
1024
|
+
userId: string;
|
|
1025
|
+
taskId: string;
|
|
1026
|
+
chatId: string;
|
|
1027
|
+
customTitle: string | null;
|
|
1028
|
+
forceUserCwd: boolean | null;
|
|
995
1029
|
repositoryId: string | null;
|
|
996
1030
|
baseBranch: string | null;
|
|
997
|
-
taskId: string;
|
|
998
1031
|
agentId: string;
|
|
999
|
-
userId: string;
|
|
1000
|
-
state: string;
|
|
1001
1032
|
title: string | null;
|
|
1002
1033
|
userCwd: string | null;
|
|
1003
|
-
createdAt: string;
|
|
1004
1034
|
updatedAt: string;
|
|
1005
1035
|
}, {
|
|
1006
|
-
|
|
1007
|
-
|
|
1036
|
+
createdAt: string;
|
|
1037
|
+
state: string;
|
|
1008
1038
|
machineId: string | null;
|
|
1009
1039
|
cloudId: string | null;
|
|
1040
|
+
userId: string;
|
|
1041
|
+
taskId: string;
|
|
1042
|
+
chatId: string;
|
|
1043
|
+
customTitle: string | null;
|
|
1044
|
+
forceUserCwd: boolean | null;
|
|
1010
1045
|
repositoryId: string | null;
|
|
1011
1046
|
baseBranch: string | null;
|
|
1012
|
-
taskId: string;
|
|
1013
1047
|
agentId: string;
|
|
1014
|
-
userId: string;
|
|
1015
|
-
state: string;
|
|
1016
1048
|
title: string | null;
|
|
1017
1049
|
userCwd: string | null;
|
|
1018
|
-
createdAt: string;
|
|
1019
1050
|
updatedAt: string;
|
|
1020
1051
|
}>;
|
|
1021
1052
|
type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
|
|
@@ -1024,6 +1055,7 @@ type StartTaskResponse = z.infer<typeof StartTaskResponseSchema>;
|
|
|
1024
1055
|
*/
|
|
1025
1056
|
declare const TaskItemSchema: z.ZodObject<{
|
|
1026
1057
|
id: z.ZodString;
|
|
1058
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
1027
1059
|
chatId: z.ZodString;
|
|
1028
1060
|
userId: z.ZodString;
|
|
1029
1061
|
state: z.ZodString;
|
|
@@ -1084,26 +1116,27 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1084
1116
|
createdAt: z.ZodString;
|
|
1085
1117
|
updatedAt: z.ZodString;
|
|
1086
1118
|
}, "strip", z.ZodTypeAny, {
|
|
1119
|
+
type: "chat" | "work";
|
|
1087
1120
|
id: string;
|
|
1121
|
+
createdAt: string;
|
|
1122
|
+
state: string;
|
|
1123
|
+
machineId: string | null;
|
|
1124
|
+
cloudId: string | null;
|
|
1125
|
+
userId: string;
|
|
1088
1126
|
chatId: string;
|
|
1127
|
+
customTitle: string | null;
|
|
1089
1128
|
cwd: string | null;
|
|
1090
1129
|
forceUserCwd: boolean | null;
|
|
1091
|
-
machineId: string | null;
|
|
1092
|
-
cloudId: string | null;
|
|
1093
1130
|
repositoryId: string | null;
|
|
1094
1131
|
baseBranch: string | null;
|
|
1095
1132
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1096
1133
|
dataEncryptionKey: string | null;
|
|
1097
|
-
parentTaskId: string | null;
|
|
1098
1134
|
agentId: string;
|
|
1099
|
-
|
|
1100
|
-
state: string;
|
|
1135
|
+
parentTaskId: string | null;
|
|
1101
1136
|
title: string | null;
|
|
1102
1137
|
userCwd: string | null;
|
|
1103
|
-
createdAt: string;
|
|
1104
1138
|
updatedAt: string;
|
|
1105
1139
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1106
|
-
customTitle: string | null;
|
|
1107
1140
|
agentSessionId: string | null;
|
|
1108
1141
|
pullRequestNumber: number | null;
|
|
1109
1142
|
pullRequestUrl: string | null;
|
|
@@ -1122,25 +1155,25 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1122
1155
|
rootTaskId: string | null;
|
|
1123
1156
|
}, {
|
|
1124
1157
|
id: string;
|
|
1158
|
+
createdAt: string;
|
|
1159
|
+
state: string;
|
|
1160
|
+
machineId: string | null;
|
|
1161
|
+
cloudId: string | null;
|
|
1162
|
+
userId: string;
|
|
1125
1163
|
chatId: string;
|
|
1164
|
+
customTitle: string | null;
|
|
1126
1165
|
cwd: string | null;
|
|
1127
1166
|
forceUserCwd: boolean | null;
|
|
1128
|
-
machineId: string | null;
|
|
1129
|
-
cloudId: string | null;
|
|
1130
1167
|
repositoryId: string | null;
|
|
1131
1168
|
baseBranch: string | null;
|
|
1132
1169
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1133
1170
|
dataEncryptionKey: string | null;
|
|
1134
|
-
parentTaskId: string | null;
|
|
1135
1171
|
agentId: string;
|
|
1136
|
-
|
|
1137
|
-
state: string;
|
|
1172
|
+
parentTaskId: string | null;
|
|
1138
1173
|
title: string | null;
|
|
1139
1174
|
userCwd: string | null;
|
|
1140
|
-
createdAt: string;
|
|
1141
1175
|
updatedAt: string;
|
|
1142
1176
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1143
|
-
customTitle: string | null;
|
|
1144
1177
|
agentSessionId: string | null;
|
|
1145
1178
|
pullRequestNumber: number | null;
|
|
1146
1179
|
pullRequestUrl: string | null;
|
|
@@ -1157,6 +1190,7 @@ declare const TaskItemSchema: z.ZodObject<{
|
|
|
1157
1190
|
} | null;
|
|
1158
1191
|
totalDuration: number | null;
|
|
1159
1192
|
rootTaskId: string | null;
|
|
1193
|
+
type?: "chat" | "work" | undefined;
|
|
1160
1194
|
}>;
|
|
1161
1195
|
type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
1162
1196
|
/**
|
|
@@ -1168,15 +1202,15 @@ declare const ListTasksRequestSchema: z.ZodObject<{
|
|
|
1168
1202
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1169
1203
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1170
1204
|
}, "strip", z.ZodTypeAny, {
|
|
1205
|
+
limit: number;
|
|
1171
1206
|
chatId: string;
|
|
1172
1207
|
archived: boolean;
|
|
1173
|
-
limit: number;
|
|
1174
1208
|
cursor?: string | undefined;
|
|
1175
1209
|
}, {
|
|
1176
1210
|
chatId: string;
|
|
1211
|
+
limit?: number | undefined;
|
|
1177
1212
|
archived?: unknown;
|
|
1178
1213
|
cursor?: string | undefined;
|
|
1179
|
-
limit?: number | undefined;
|
|
1180
1214
|
}>;
|
|
1181
1215
|
type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
1182
1216
|
/**
|
|
@@ -1185,6 +1219,7 @@ type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
|
|
|
1185
1219
|
declare const ListTasksResponseSchema: z.ZodObject<{
|
|
1186
1220
|
tasks: z.ZodArray<z.ZodObject<{
|
|
1187
1221
|
id: z.ZodString;
|
|
1222
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
1188
1223
|
chatId: z.ZodString;
|
|
1189
1224
|
userId: z.ZodString;
|
|
1190
1225
|
state: z.ZodString;
|
|
@@ -1245,26 +1280,27 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1245
1280
|
createdAt: z.ZodString;
|
|
1246
1281
|
updatedAt: z.ZodString;
|
|
1247
1282
|
}, "strip", z.ZodTypeAny, {
|
|
1283
|
+
type: "chat" | "work";
|
|
1248
1284
|
id: string;
|
|
1285
|
+
createdAt: string;
|
|
1286
|
+
state: string;
|
|
1287
|
+
machineId: string | null;
|
|
1288
|
+
cloudId: string | null;
|
|
1289
|
+
userId: string;
|
|
1249
1290
|
chatId: string;
|
|
1291
|
+
customTitle: string | null;
|
|
1250
1292
|
cwd: string | null;
|
|
1251
1293
|
forceUserCwd: boolean | null;
|
|
1252
|
-
machineId: string | null;
|
|
1253
|
-
cloudId: string | null;
|
|
1254
1294
|
repositoryId: string | null;
|
|
1255
1295
|
baseBranch: string | null;
|
|
1256
1296
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1257
1297
|
dataEncryptionKey: string | null;
|
|
1258
|
-
parentTaskId: string | null;
|
|
1259
1298
|
agentId: string;
|
|
1260
|
-
|
|
1261
|
-
state: string;
|
|
1299
|
+
parentTaskId: string | null;
|
|
1262
1300
|
title: string | null;
|
|
1263
1301
|
userCwd: string | null;
|
|
1264
|
-
createdAt: string;
|
|
1265
1302
|
updatedAt: string;
|
|
1266
1303
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1267
|
-
customTitle: string | null;
|
|
1268
1304
|
agentSessionId: string | null;
|
|
1269
1305
|
pullRequestNumber: number | null;
|
|
1270
1306
|
pullRequestUrl: string | null;
|
|
@@ -1283,25 +1319,25 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1283
1319
|
rootTaskId: string | null;
|
|
1284
1320
|
}, {
|
|
1285
1321
|
id: string;
|
|
1322
|
+
createdAt: string;
|
|
1323
|
+
state: string;
|
|
1324
|
+
machineId: string | null;
|
|
1325
|
+
cloudId: string | null;
|
|
1326
|
+
userId: string;
|
|
1286
1327
|
chatId: string;
|
|
1328
|
+
customTitle: string | null;
|
|
1287
1329
|
cwd: string | null;
|
|
1288
1330
|
forceUserCwd: boolean | null;
|
|
1289
|
-
machineId: string | null;
|
|
1290
|
-
cloudId: string | null;
|
|
1291
1331
|
repositoryId: string | null;
|
|
1292
1332
|
baseBranch: string | null;
|
|
1293
1333
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1294
1334
|
dataEncryptionKey: string | null;
|
|
1295
|
-
parentTaskId: string | null;
|
|
1296
1335
|
agentId: string;
|
|
1297
|
-
|
|
1298
|
-
state: string;
|
|
1336
|
+
parentTaskId: string | null;
|
|
1299
1337
|
title: string | null;
|
|
1300
1338
|
userCwd: string | null;
|
|
1301
|
-
createdAt: string;
|
|
1302
1339
|
updatedAt: string;
|
|
1303
1340
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1304
|
-
customTitle: string | null;
|
|
1305
1341
|
agentSessionId: string | null;
|
|
1306
1342
|
pullRequestNumber: number | null;
|
|
1307
1343
|
pullRequestUrl: string | null;
|
|
@@ -1318,31 +1354,33 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1318
1354
|
} | null;
|
|
1319
1355
|
totalDuration: number | null;
|
|
1320
1356
|
rootTaskId: string | null;
|
|
1357
|
+
type?: "chat" | "work" | undefined;
|
|
1321
1358
|
}>, "many">;
|
|
1322
1359
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1323
1360
|
hasMore: z.ZodBoolean;
|
|
1324
1361
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1362
|
tasks: {
|
|
1363
|
+
type: "chat" | "work";
|
|
1326
1364
|
id: string;
|
|
1365
|
+
createdAt: string;
|
|
1366
|
+
state: string;
|
|
1367
|
+
machineId: string | null;
|
|
1368
|
+
cloudId: string | null;
|
|
1369
|
+
userId: string;
|
|
1327
1370
|
chatId: string;
|
|
1371
|
+
customTitle: string | null;
|
|
1328
1372
|
cwd: string | null;
|
|
1329
1373
|
forceUserCwd: boolean | null;
|
|
1330
|
-
machineId: string | null;
|
|
1331
|
-
cloudId: string | null;
|
|
1332
1374
|
repositoryId: string | null;
|
|
1333
1375
|
baseBranch: string | null;
|
|
1334
1376
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1335
1377
|
dataEncryptionKey: string | null;
|
|
1336
|
-
parentTaskId: string | null;
|
|
1337
1378
|
agentId: string;
|
|
1338
|
-
|
|
1339
|
-
state: string;
|
|
1379
|
+
parentTaskId: string | null;
|
|
1340
1380
|
title: string | null;
|
|
1341
1381
|
userCwd: string | null;
|
|
1342
|
-
createdAt: string;
|
|
1343
1382
|
updatedAt: string;
|
|
1344
1383
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1345
|
-
customTitle: string | null;
|
|
1346
1384
|
agentSessionId: string | null;
|
|
1347
1385
|
pullRequestNumber: number | null;
|
|
1348
1386
|
pullRequestUrl: string | null;
|
|
@@ -1365,25 +1403,25 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1365
1403
|
}, {
|
|
1366
1404
|
tasks: {
|
|
1367
1405
|
id: string;
|
|
1406
|
+
createdAt: string;
|
|
1407
|
+
state: string;
|
|
1408
|
+
machineId: string | null;
|
|
1409
|
+
cloudId: string | null;
|
|
1410
|
+
userId: string;
|
|
1368
1411
|
chatId: string;
|
|
1412
|
+
customTitle: string | null;
|
|
1369
1413
|
cwd: string | null;
|
|
1370
1414
|
forceUserCwd: boolean | null;
|
|
1371
|
-
machineId: string | null;
|
|
1372
|
-
cloudId: string | null;
|
|
1373
1415
|
repositoryId: string | null;
|
|
1374
1416
|
baseBranch: string | null;
|
|
1375
1417
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1376
1418
|
dataEncryptionKey: string | null;
|
|
1377
|
-
parentTaskId: string | null;
|
|
1378
1419
|
agentId: string;
|
|
1379
|
-
|
|
1380
|
-
state: string;
|
|
1420
|
+
parentTaskId: string | null;
|
|
1381
1421
|
title: string | null;
|
|
1382
1422
|
userCwd: string | null;
|
|
1383
|
-
createdAt: string;
|
|
1384
1423
|
updatedAt: string;
|
|
1385
1424
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1386
|
-
customTitle: string | null;
|
|
1387
1425
|
agentSessionId: string | null;
|
|
1388
1426
|
pullRequestNumber: number | null;
|
|
1389
1427
|
pullRequestUrl: string | null;
|
|
@@ -1400,6 +1438,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
|
|
|
1400
1438
|
} | null;
|
|
1401
1439
|
totalDuration: number | null;
|
|
1402
1440
|
rootTaskId: string | null;
|
|
1441
|
+
type?: "chat" | "work" | undefined;
|
|
1403
1442
|
}[];
|
|
1404
1443
|
nextCursor: string | null;
|
|
1405
1444
|
hasMore: boolean;
|
|
@@ -1790,13 +1829,13 @@ declare const ApprovePrResponseSchema: z.ZodObject<{
|
|
|
1790
1829
|
taskId: z.ZodString;
|
|
1791
1830
|
pullRequestNumber: z.ZodNumber;
|
|
1792
1831
|
}, "strip", z.ZodTypeAny, {
|
|
1832
|
+
success: boolean;
|
|
1793
1833
|
taskId: string;
|
|
1794
1834
|
pullRequestNumber: number;
|
|
1795
|
-
success: boolean;
|
|
1796
1835
|
}, {
|
|
1836
|
+
success: boolean;
|
|
1797
1837
|
taskId: string;
|
|
1798
1838
|
pullRequestNumber: number;
|
|
1799
|
-
success: boolean;
|
|
1800
1839
|
}>;
|
|
1801
1840
|
type ApprovePrResponse = z.infer<typeof ApprovePrResponseSchema>;
|
|
1802
1841
|
/**
|
|
@@ -1863,6 +1902,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1863
1902
|
success: z.ZodBoolean;
|
|
1864
1903
|
task: z.ZodObject<{
|
|
1865
1904
|
id: z.ZodString;
|
|
1905
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
1866
1906
|
chatId: z.ZodString;
|
|
1867
1907
|
userId: z.ZodString;
|
|
1868
1908
|
state: z.ZodString;
|
|
@@ -1923,26 +1963,27 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1923
1963
|
createdAt: z.ZodString;
|
|
1924
1964
|
updatedAt: z.ZodString;
|
|
1925
1965
|
}, "strip", z.ZodTypeAny, {
|
|
1966
|
+
type: "chat" | "work";
|
|
1926
1967
|
id: string;
|
|
1968
|
+
createdAt: string;
|
|
1969
|
+
state: string;
|
|
1970
|
+
machineId: string | null;
|
|
1971
|
+
cloudId: string | null;
|
|
1972
|
+
userId: string;
|
|
1927
1973
|
chatId: string;
|
|
1974
|
+
customTitle: string | null;
|
|
1928
1975
|
cwd: string | null;
|
|
1929
1976
|
forceUserCwd: boolean | null;
|
|
1930
|
-
machineId: string | null;
|
|
1931
|
-
cloudId: string | null;
|
|
1932
1977
|
repositoryId: string | null;
|
|
1933
1978
|
baseBranch: string | null;
|
|
1934
1979
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1935
1980
|
dataEncryptionKey: string | null;
|
|
1936
|
-
parentTaskId: string | null;
|
|
1937
1981
|
agentId: string;
|
|
1938
|
-
|
|
1939
|
-
state: string;
|
|
1982
|
+
parentTaskId: string | null;
|
|
1940
1983
|
title: string | null;
|
|
1941
1984
|
userCwd: string | null;
|
|
1942
|
-
createdAt: string;
|
|
1943
1985
|
updatedAt: string;
|
|
1944
1986
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1945
|
-
customTitle: string | null;
|
|
1946
1987
|
agentSessionId: string | null;
|
|
1947
1988
|
pullRequestNumber: number | null;
|
|
1948
1989
|
pullRequestUrl: string | null;
|
|
@@ -1961,25 +2002,25 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1961
2002
|
rootTaskId: string | null;
|
|
1962
2003
|
}, {
|
|
1963
2004
|
id: string;
|
|
2005
|
+
createdAt: string;
|
|
2006
|
+
state: string;
|
|
2007
|
+
machineId: string | null;
|
|
2008
|
+
cloudId: string | null;
|
|
2009
|
+
userId: string;
|
|
1964
2010
|
chatId: string;
|
|
2011
|
+
customTitle: string | null;
|
|
1965
2012
|
cwd: string | null;
|
|
1966
2013
|
forceUserCwd: boolean | null;
|
|
1967
|
-
machineId: string | null;
|
|
1968
|
-
cloudId: string | null;
|
|
1969
2014
|
repositoryId: string | null;
|
|
1970
2015
|
baseBranch: string | null;
|
|
1971
2016
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
1972
2017
|
dataEncryptionKey: string | null;
|
|
1973
|
-
parentTaskId: string | null;
|
|
1974
2018
|
agentId: string;
|
|
1975
|
-
|
|
1976
|
-
state: string;
|
|
2019
|
+
parentTaskId: string | null;
|
|
1977
2020
|
title: string | null;
|
|
1978
2021
|
userCwd: string | null;
|
|
1979
|
-
createdAt: string;
|
|
1980
2022
|
updatedAt: string;
|
|
1981
2023
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
1982
|
-
customTitle: string | null;
|
|
1983
2024
|
agentSessionId: string | null;
|
|
1984
2025
|
pullRequestNumber: number | null;
|
|
1985
2026
|
pullRequestUrl: string | null;
|
|
@@ -1996,30 +2037,32 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
1996
2037
|
} | null;
|
|
1997
2038
|
totalDuration: number | null;
|
|
1998
2039
|
rootTaskId: string | null;
|
|
2040
|
+
type?: "chat" | "work" | undefined;
|
|
1999
2041
|
}>;
|
|
2000
2042
|
}, "strip", z.ZodTypeAny, {
|
|
2001
2043
|
success: boolean;
|
|
2002
2044
|
task: {
|
|
2045
|
+
type: "chat" | "work";
|
|
2003
2046
|
id: string;
|
|
2047
|
+
createdAt: string;
|
|
2048
|
+
state: string;
|
|
2049
|
+
machineId: string | null;
|
|
2050
|
+
cloudId: string | null;
|
|
2051
|
+
userId: string;
|
|
2004
2052
|
chatId: string;
|
|
2053
|
+
customTitle: string | null;
|
|
2005
2054
|
cwd: string | null;
|
|
2006
2055
|
forceUserCwd: boolean | null;
|
|
2007
|
-
machineId: string | null;
|
|
2008
|
-
cloudId: string | null;
|
|
2009
2056
|
repositoryId: string | null;
|
|
2010
2057
|
baseBranch: string | null;
|
|
2011
2058
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2012
2059
|
dataEncryptionKey: string | null;
|
|
2013
|
-
parentTaskId: string | null;
|
|
2014
2060
|
agentId: string;
|
|
2015
|
-
|
|
2016
|
-
state: string;
|
|
2061
|
+
parentTaskId: string | null;
|
|
2017
2062
|
title: string | null;
|
|
2018
2063
|
userCwd: string | null;
|
|
2019
|
-
createdAt: string;
|
|
2020
2064
|
updatedAt: string;
|
|
2021
2065
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2022
|
-
customTitle: string | null;
|
|
2023
2066
|
agentSessionId: string | null;
|
|
2024
2067
|
pullRequestNumber: number | null;
|
|
2025
2068
|
pullRequestUrl: string | null;
|
|
@@ -2041,25 +2084,25 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2041
2084
|
success: boolean;
|
|
2042
2085
|
task: {
|
|
2043
2086
|
id: string;
|
|
2087
|
+
createdAt: string;
|
|
2088
|
+
state: string;
|
|
2089
|
+
machineId: string | null;
|
|
2090
|
+
cloudId: string | null;
|
|
2091
|
+
userId: string;
|
|
2044
2092
|
chatId: string;
|
|
2093
|
+
customTitle: string | null;
|
|
2045
2094
|
cwd: string | null;
|
|
2046
2095
|
forceUserCwd: boolean | null;
|
|
2047
|
-
machineId: string | null;
|
|
2048
|
-
cloudId: string | null;
|
|
2049
2096
|
repositoryId: string | null;
|
|
2050
2097
|
baseBranch: string | null;
|
|
2051
2098
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2052
2099
|
dataEncryptionKey: string | null;
|
|
2053
|
-
parentTaskId: string | null;
|
|
2054
2100
|
agentId: string;
|
|
2055
|
-
|
|
2056
|
-
state: string;
|
|
2101
|
+
parentTaskId: string | null;
|
|
2057
2102
|
title: string | null;
|
|
2058
2103
|
userCwd: string | null;
|
|
2059
|
-
createdAt: string;
|
|
2060
2104
|
updatedAt: string;
|
|
2061
2105
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2062
|
-
customTitle: string | null;
|
|
2063
2106
|
agentSessionId: string | null;
|
|
2064
2107
|
pullRequestNumber: number | null;
|
|
2065
2108
|
pullRequestUrl: string | null;
|
|
@@ -2076,6 +2119,7 @@ declare const ArchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2076
2119
|
} | null;
|
|
2077
2120
|
totalDuration: number | null;
|
|
2078
2121
|
rootTaskId: string | null;
|
|
2122
|
+
type?: "chat" | "work" | undefined;
|
|
2079
2123
|
};
|
|
2080
2124
|
}>;
|
|
2081
2125
|
type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
|
|
@@ -2091,6 +2135,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2091
2135
|
success: z.ZodBoolean;
|
|
2092
2136
|
task: z.ZodObject<{
|
|
2093
2137
|
id: z.ZodString;
|
|
2138
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
2094
2139
|
chatId: z.ZodString;
|
|
2095
2140
|
userId: z.ZodString;
|
|
2096
2141
|
state: z.ZodString;
|
|
@@ -2151,26 +2196,27 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2151
2196
|
createdAt: z.ZodString;
|
|
2152
2197
|
updatedAt: z.ZodString;
|
|
2153
2198
|
}, "strip", z.ZodTypeAny, {
|
|
2199
|
+
type: "chat" | "work";
|
|
2154
2200
|
id: string;
|
|
2201
|
+
createdAt: string;
|
|
2202
|
+
state: string;
|
|
2203
|
+
machineId: string | null;
|
|
2204
|
+
cloudId: string | null;
|
|
2205
|
+
userId: string;
|
|
2155
2206
|
chatId: string;
|
|
2207
|
+
customTitle: string | null;
|
|
2156
2208
|
cwd: string | null;
|
|
2157
2209
|
forceUserCwd: boolean | null;
|
|
2158
|
-
machineId: string | null;
|
|
2159
|
-
cloudId: string | null;
|
|
2160
2210
|
repositoryId: string | null;
|
|
2161
2211
|
baseBranch: string | null;
|
|
2162
2212
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2163
2213
|
dataEncryptionKey: string | null;
|
|
2164
|
-
parentTaskId: string | null;
|
|
2165
2214
|
agentId: string;
|
|
2166
|
-
|
|
2167
|
-
state: string;
|
|
2215
|
+
parentTaskId: string | null;
|
|
2168
2216
|
title: string | null;
|
|
2169
2217
|
userCwd: string | null;
|
|
2170
|
-
createdAt: string;
|
|
2171
2218
|
updatedAt: string;
|
|
2172
2219
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2173
|
-
customTitle: string | null;
|
|
2174
2220
|
agentSessionId: string | null;
|
|
2175
2221
|
pullRequestNumber: number | null;
|
|
2176
2222
|
pullRequestUrl: string | null;
|
|
@@ -2189,25 +2235,25 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2189
2235
|
rootTaskId: string | null;
|
|
2190
2236
|
}, {
|
|
2191
2237
|
id: string;
|
|
2238
|
+
createdAt: string;
|
|
2239
|
+
state: string;
|
|
2240
|
+
machineId: string | null;
|
|
2241
|
+
cloudId: string | null;
|
|
2242
|
+
userId: string;
|
|
2192
2243
|
chatId: string;
|
|
2244
|
+
customTitle: string | null;
|
|
2193
2245
|
cwd: string | null;
|
|
2194
2246
|
forceUserCwd: boolean | null;
|
|
2195
|
-
machineId: string | null;
|
|
2196
|
-
cloudId: string | null;
|
|
2197
2247
|
repositoryId: string | null;
|
|
2198
2248
|
baseBranch: string | null;
|
|
2199
2249
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2200
2250
|
dataEncryptionKey: string | null;
|
|
2201
|
-
parentTaskId: string | null;
|
|
2202
2251
|
agentId: string;
|
|
2203
|
-
|
|
2204
|
-
state: string;
|
|
2252
|
+
parentTaskId: string | null;
|
|
2205
2253
|
title: string | null;
|
|
2206
2254
|
userCwd: string | null;
|
|
2207
|
-
createdAt: string;
|
|
2208
2255
|
updatedAt: string;
|
|
2209
2256
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2210
|
-
customTitle: string | null;
|
|
2211
2257
|
agentSessionId: string | null;
|
|
2212
2258
|
pullRequestNumber: number | null;
|
|
2213
2259
|
pullRequestUrl: string | null;
|
|
@@ -2224,30 +2270,32 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2224
2270
|
} | null;
|
|
2225
2271
|
totalDuration: number | null;
|
|
2226
2272
|
rootTaskId: string | null;
|
|
2273
|
+
type?: "chat" | "work" | undefined;
|
|
2227
2274
|
}>;
|
|
2228
2275
|
}, "strip", z.ZodTypeAny, {
|
|
2229
2276
|
success: boolean;
|
|
2230
2277
|
task: {
|
|
2278
|
+
type: "chat" | "work";
|
|
2231
2279
|
id: string;
|
|
2280
|
+
createdAt: string;
|
|
2281
|
+
state: string;
|
|
2282
|
+
machineId: string | null;
|
|
2283
|
+
cloudId: string | null;
|
|
2284
|
+
userId: string;
|
|
2232
2285
|
chatId: string;
|
|
2286
|
+
customTitle: string | null;
|
|
2233
2287
|
cwd: string | null;
|
|
2234
2288
|
forceUserCwd: boolean | null;
|
|
2235
|
-
machineId: string | null;
|
|
2236
|
-
cloudId: string | null;
|
|
2237
2289
|
repositoryId: string | null;
|
|
2238
2290
|
baseBranch: string | null;
|
|
2239
2291
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2240
2292
|
dataEncryptionKey: string | null;
|
|
2241
|
-
parentTaskId: string | null;
|
|
2242
2293
|
agentId: string;
|
|
2243
|
-
|
|
2244
|
-
state: string;
|
|
2294
|
+
parentTaskId: string | null;
|
|
2245
2295
|
title: string | null;
|
|
2246
2296
|
userCwd: string | null;
|
|
2247
|
-
createdAt: string;
|
|
2248
2297
|
updatedAt: string;
|
|
2249
2298
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2250
|
-
customTitle: string | null;
|
|
2251
2299
|
agentSessionId: string | null;
|
|
2252
2300
|
pullRequestNumber: number | null;
|
|
2253
2301
|
pullRequestUrl: string | null;
|
|
@@ -2269,25 +2317,25 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2269
2317
|
success: boolean;
|
|
2270
2318
|
task: {
|
|
2271
2319
|
id: string;
|
|
2320
|
+
createdAt: string;
|
|
2321
|
+
state: string;
|
|
2322
|
+
machineId: string | null;
|
|
2323
|
+
cloudId: string | null;
|
|
2324
|
+
userId: string;
|
|
2272
2325
|
chatId: string;
|
|
2326
|
+
customTitle: string | null;
|
|
2273
2327
|
cwd: string | null;
|
|
2274
2328
|
forceUserCwd: boolean | null;
|
|
2275
|
-
machineId: string | null;
|
|
2276
|
-
cloudId: string | null;
|
|
2277
2329
|
repositoryId: string | null;
|
|
2278
2330
|
baseBranch: string | null;
|
|
2279
2331
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2280
2332
|
dataEncryptionKey: string | null;
|
|
2281
|
-
parentTaskId: string | null;
|
|
2282
2333
|
agentId: string;
|
|
2283
|
-
|
|
2284
|
-
state: string;
|
|
2334
|
+
parentTaskId: string | null;
|
|
2285
2335
|
title: string | null;
|
|
2286
2336
|
userCwd: string | null;
|
|
2287
|
-
createdAt: string;
|
|
2288
2337
|
updatedAt: string;
|
|
2289
2338
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2290
|
-
customTitle: string | null;
|
|
2291
2339
|
agentSessionId: string | null;
|
|
2292
2340
|
pullRequestNumber: number | null;
|
|
2293
2341
|
pullRequestUrl: string | null;
|
|
@@ -2304,6 +2352,7 @@ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
|
|
|
2304
2352
|
} | null;
|
|
2305
2353
|
totalDuration: number | null;
|
|
2306
2354
|
rootTaskId: string | null;
|
|
2355
|
+
type?: "chat" | "work" | undefined;
|
|
2307
2356
|
};
|
|
2308
2357
|
}>;
|
|
2309
2358
|
type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
|
|
@@ -2325,6 +2374,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2325
2374
|
success: z.ZodBoolean;
|
|
2326
2375
|
task: z.ZodObject<{
|
|
2327
2376
|
id: z.ZodString;
|
|
2377
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
2328
2378
|
chatId: z.ZodString;
|
|
2329
2379
|
userId: z.ZodString;
|
|
2330
2380
|
state: z.ZodString;
|
|
@@ -2385,26 +2435,27 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2385
2435
|
createdAt: z.ZodString;
|
|
2386
2436
|
updatedAt: z.ZodString;
|
|
2387
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
|
+
type: "chat" | "work";
|
|
2388
2439
|
id: string;
|
|
2440
|
+
createdAt: string;
|
|
2441
|
+
state: string;
|
|
2442
|
+
machineId: string | null;
|
|
2443
|
+
cloudId: string | null;
|
|
2444
|
+
userId: string;
|
|
2389
2445
|
chatId: string;
|
|
2446
|
+
customTitle: string | null;
|
|
2390
2447
|
cwd: string | null;
|
|
2391
2448
|
forceUserCwd: boolean | null;
|
|
2392
|
-
machineId: string | null;
|
|
2393
|
-
cloudId: string | null;
|
|
2394
2449
|
repositoryId: string | null;
|
|
2395
2450
|
baseBranch: string | null;
|
|
2396
2451
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2397
2452
|
dataEncryptionKey: string | null;
|
|
2398
|
-
parentTaskId: string | null;
|
|
2399
2453
|
agentId: string;
|
|
2400
|
-
|
|
2401
|
-
state: string;
|
|
2454
|
+
parentTaskId: string | null;
|
|
2402
2455
|
title: string | null;
|
|
2403
2456
|
userCwd: string | null;
|
|
2404
|
-
createdAt: string;
|
|
2405
2457
|
updatedAt: string;
|
|
2406
2458
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2407
|
-
customTitle: string | null;
|
|
2408
2459
|
agentSessionId: string | null;
|
|
2409
2460
|
pullRequestNumber: number | null;
|
|
2410
2461
|
pullRequestUrl: string | null;
|
|
@@ -2423,25 +2474,25 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2423
2474
|
rootTaskId: string | null;
|
|
2424
2475
|
}, {
|
|
2425
2476
|
id: string;
|
|
2477
|
+
createdAt: string;
|
|
2478
|
+
state: string;
|
|
2479
|
+
machineId: string | null;
|
|
2480
|
+
cloudId: string | null;
|
|
2481
|
+
userId: string;
|
|
2426
2482
|
chatId: string;
|
|
2483
|
+
customTitle: string | null;
|
|
2427
2484
|
cwd: string | null;
|
|
2428
2485
|
forceUserCwd: boolean | null;
|
|
2429
|
-
machineId: string | null;
|
|
2430
|
-
cloudId: string | null;
|
|
2431
2486
|
repositoryId: string | null;
|
|
2432
2487
|
baseBranch: string | null;
|
|
2433
2488
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2434
2489
|
dataEncryptionKey: string | null;
|
|
2435
|
-
parentTaskId: string | null;
|
|
2436
2490
|
agentId: string;
|
|
2437
|
-
|
|
2438
|
-
state: string;
|
|
2491
|
+
parentTaskId: string | null;
|
|
2439
2492
|
title: string | null;
|
|
2440
2493
|
userCwd: string | null;
|
|
2441
|
-
createdAt: string;
|
|
2442
2494
|
updatedAt: string;
|
|
2443
2495
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2444
|
-
customTitle: string | null;
|
|
2445
2496
|
agentSessionId: string | null;
|
|
2446
2497
|
pullRequestNumber: number | null;
|
|
2447
2498
|
pullRequestUrl: string | null;
|
|
@@ -2458,30 +2509,32 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2458
2509
|
} | null;
|
|
2459
2510
|
totalDuration: number | null;
|
|
2460
2511
|
rootTaskId: string | null;
|
|
2512
|
+
type?: "chat" | "work" | undefined;
|
|
2461
2513
|
}>;
|
|
2462
2514
|
}, "strip", z.ZodTypeAny, {
|
|
2463
2515
|
success: boolean;
|
|
2464
2516
|
task: {
|
|
2517
|
+
type: "chat" | "work";
|
|
2465
2518
|
id: string;
|
|
2519
|
+
createdAt: string;
|
|
2520
|
+
state: string;
|
|
2521
|
+
machineId: string | null;
|
|
2522
|
+
cloudId: string | null;
|
|
2523
|
+
userId: string;
|
|
2466
2524
|
chatId: string;
|
|
2525
|
+
customTitle: string | null;
|
|
2467
2526
|
cwd: string | null;
|
|
2468
2527
|
forceUserCwd: boolean | null;
|
|
2469
|
-
machineId: string | null;
|
|
2470
|
-
cloudId: string | null;
|
|
2471
2528
|
repositoryId: string | null;
|
|
2472
2529
|
baseBranch: string | null;
|
|
2473
2530
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2474
2531
|
dataEncryptionKey: string | null;
|
|
2475
|
-
parentTaskId: string | null;
|
|
2476
2532
|
agentId: string;
|
|
2477
|
-
|
|
2478
|
-
state: string;
|
|
2533
|
+
parentTaskId: string | null;
|
|
2479
2534
|
title: string | null;
|
|
2480
2535
|
userCwd: string | null;
|
|
2481
|
-
createdAt: string;
|
|
2482
2536
|
updatedAt: string;
|
|
2483
2537
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2484
|
-
customTitle: string | null;
|
|
2485
2538
|
agentSessionId: string | null;
|
|
2486
2539
|
pullRequestNumber: number | null;
|
|
2487
2540
|
pullRequestUrl: string | null;
|
|
@@ -2503,25 +2556,25 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2503
2556
|
success: boolean;
|
|
2504
2557
|
task: {
|
|
2505
2558
|
id: string;
|
|
2559
|
+
createdAt: string;
|
|
2560
|
+
state: string;
|
|
2561
|
+
machineId: string | null;
|
|
2562
|
+
cloudId: string | null;
|
|
2563
|
+
userId: string;
|
|
2506
2564
|
chatId: string;
|
|
2565
|
+
customTitle: string | null;
|
|
2507
2566
|
cwd: string | null;
|
|
2508
2567
|
forceUserCwd: boolean | null;
|
|
2509
|
-
machineId: string | null;
|
|
2510
|
-
cloudId: string | null;
|
|
2511
2568
|
repositoryId: string | null;
|
|
2512
2569
|
baseBranch: string | null;
|
|
2513
2570
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
2514
2571
|
dataEncryptionKey: string | null;
|
|
2515
|
-
parentTaskId: string | null;
|
|
2516
2572
|
agentId: string;
|
|
2517
|
-
|
|
2518
|
-
state: string;
|
|
2573
|
+
parentTaskId: string | null;
|
|
2519
2574
|
title: string | null;
|
|
2520
2575
|
userCwd: string | null;
|
|
2521
|
-
createdAt: string;
|
|
2522
2576
|
updatedAt: string;
|
|
2523
2577
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
2524
|
-
customTitle: string | null;
|
|
2525
2578
|
agentSessionId: string | null;
|
|
2526
2579
|
pullRequestNumber: number | null;
|
|
2527
2580
|
pullRequestUrl: string | null;
|
|
@@ -2538,6 +2591,7 @@ declare const UpdateTaskTitleResponseSchema: z.ZodObject<{
|
|
|
2538
2591
|
} | null;
|
|
2539
2592
|
totalDuration: number | null;
|
|
2540
2593
|
rootTaskId: string | null;
|
|
2594
|
+
type?: "chat" | "work" | undefined;
|
|
2541
2595
|
};
|
|
2542
2596
|
}>;
|
|
2543
2597
|
type UpdateTaskTitleResponse = z.infer<typeof UpdateTaskTitleResponseSchema>;
|
|
@@ -2561,11 +2615,11 @@ declare const SendTaskMessageRequestSchema: z.ZodObject<{
|
|
|
2561
2615
|
fromTaskId: z.ZodOptional<z.ZodString>;
|
|
2562
2616
|
}, "strip", z.ZodTypeAny, {
|
|
2563
2617
|
message: SDKUserMessage | SDKAssistantMessage;
|
|
2564
|
-
target: "
|
|
2618
|
+
target: "user" | "agent";
|
|
2565
2619
|
fromTaskId?: string | undefined;
|
|
2566
2620
|
}, {
|
|
2567
2621
|
message: SDKUserMessage | SDKAssistantMessage;
|
|
2568
|
-
target: "
|
|
2622
|
+
target: "user" | "agent";
|
|
2569
2623
|
fromTaskId?: string | undefined;
|
|
2570
2624
|
}>;
|
|
2571
2625
|
type SendTaskMessageRequest = z.infer<typeof SendTaskMessageRequestSchema>;
|
|
@@ -2629,11 +2683,11 @@ declare const FindTaskByAgentRequestSchema: z.ZodObject<{
|
|
|
2629
2683
|
parentTaskId: z.ZodString;
|
|
2630
2684
|
agentId: z.ZodString;
|
|
2631
2685
|
}, "strip", z.ZodTypeAny, {
|
|
2632
|
-
parentTaskId: string;
|
|
2633
2686
|
agentId: string;
|
|
2634
|
-
}, {
|
|
2635
2687
|
parentTaskId: string;
|
|
2688
|
+
}, {
|
|
2636
2689
|
agentId: string;
|
|
2690
|
+
parentTaskId: string;
|
|
2637
2691
|
}>;
|
|
2638
2692
|
type FindTaskByAgentRequest = z.infer<typeof FindTaskByAgentRequestSchema>;
|
|
2639
2693
|
/**
|
|
@@ -2665,18 +2719,18 @@ declare const ChatMemberSchema: z.ZodObject<{
|
|
|
2665
2719
|
createdAt: z.ZodString;
|
|
2666
2720
|
updatedAt: z.ZodString;
|
|
2667
2721
|
}, "strip", z.ZodTypeAny, {
|
|
2668
|
-
id: string;
|
|
2669
2722
|
type: "agent" | "human";
|
|
2670
|
-
|
|
2723
|
+
id: string;
|
|
2671
2724
|
createdAt: string;
|
|
2725
|
+
chatId: string;
|
|
2672
2726
|
updatedAt: string;
|
|
2673
2727
|
memberCode: string;
|
|
2674
2728
|
role: string;
|
|
2675
2729
|
}, {
|
|
2676
|
-
id: string;
|
|
2677
2730
|
type: "agent" | "human";
|
|
2678
|
-
|
|
2731
|
+
id: string;
|
|
2679
2732
|
createdAt: string;
|
|
2733
|
+
chatId: string;
|
|
2680
2734
|
updatedAt: string;
|
|
2681
2735
|
memberCode: string;
|
|
2682
2736
|
role: string;
|
|
@@ -2697,20 +2751,32 @@ declare const ChatSchema: z.ZodObject<{
|
|
|
2697
2751
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2698
2752
|
createdAt: z.ZodString;
|
|
2699
2753
|
updatedAt: z.ZodString;
|
|
2754
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2755
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2756
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2757
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2700
2758
|
}, "strip", z.ZodTypeAny, {
|
|
2701
|
-
id: string;
|
|
2702
2759
|
type: "direct" | "group";
|
|
2760
|
+
id: string;
|
|
2703
2761
|
createdAt: string;
|
|
2704
2762
|
updatedAt: string;
|
|
2705
2763
|
owner: string;
|
|
2706
2764
|
title?: string | null | undefined;
|
|
2765
|
+
defaultMachineId?: string | null | undefined;
|
|
2766
|
+
defaultCloudId?: string | null | undefined;
|
|
2767
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2768
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2707
2769
|
}, {
|
|
2708
|
-
id: string;
|
|
2709
2770
|
type: "direct" | "group";
|
|
2771
|
+
id: string;
|
|
2710
2772
|
createdAt: string;
|
|
2711
2773
|
updatedAt: string;
|
|
2712
2774
|
owner: string;
|
|
2713
2775
|
title?: string | null | undefined;
|
|
2776
|
+
defaultMachineId?: string | null | undefined;
|
|
2777
|
+
defaultCloudId?: string | null | undefined;
|
|
2778
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2779
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2714
2780
|
}>;
|
|
2715
2781
|
type Chat = z.infer<typeof ChatSchema>;
|
|
2716
2782
|
/**
|
|
@@ -2723,6 +2789,10 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2723
2789
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2724
2790
|
createdAt: z.ZodString;
|
|
2725
2791
|
updatedAt: z.ZodString;
|
|
2792
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2793
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2794
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2795
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2726
2796
|
} & {
|
|
2727
2797
|
members: z.ZodArray<z.ZodObject<{
|
|
2728
2798
|
id: z.ZodString;
|
|
@@ -2733,54 +2803,62 @@ declare const ChatWithMembersSchema: z.ZodObject<{
|
|
|
2733
2803
|
createdAt: z.ZodString;
|
|
2734
2804
|
updatedAt: z.ZodString;
|
|
2735
2805
|
}, "strip", z.ZodTypeAny, {
|
|
2736
|
-
id: string;
|
|
2737
2806
|
type: "agent" | "human";
|
|
2738
|
-
|
|
2807
|
+
id: string;
|
|
2739
2808
|
createdAt: string;
|
|
2809
|
+
chatId: string;
|
|
2740
2810
|
updatedAt: string;
|
|
2741
2811
|
memberCode: string;
|
|
2742
2812
|
role: string;
|
|
2743
2813
|
}, {
|
|
2744
|
-
id: string;
|
|
2745
2814
|
type: "agent" | "human";
|
|
2746
|
-
|
|
2815
|
+
id: string;
|
|
2747
2816
|
createdAt: string;
|
|
2817
|
+
chatId: string;
|
|
2748
2818
|
updatedAt: string;
|
|
2749
2819
|
memberCode: string;
|
|
2750
2820
|
role: string;
|
|
2751
2821
|
}>, "many">;
|
|
2752
2822
|
}, "strip", z.ZodTypeAny, {
|
|
2753
|
-
id: string;
|
|
2754
2823
|
type: "direct" | "group";
|
|
2824
|
+
id: string;
|
|
2755
2825
|
createdAt: string;
|
|
2756
2826
|
updatedAt: string;
|
|
2757
2827
|
owner: string;
|
|
2758
2828
|
members: {
|
|
2759
|
-
id: string;
|
|
2760
2829
|
type: "agent" | "human";
|
|
2761
|
-
|
|
2830
|
+
id: string;
|
|
2762
2831
|
createdAt: string;
|
|
2832
|
+
chatId: string;
|
|
2763
2833
|
updatedAt: string;
|
|
2764
2834
|
memberCode: string;
|
|
2765
2835
|
role: string;
|
|
2766
2836
|
}[];
|
|
2767
2837
|
title?: string | null | undefined;
|
|
2838
|
+
defaultMachineId?: string | null | undefined;
|
|
2839
|
+
defaultCloudId?: string | null | undefined;
|
|
2840
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2841
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2768
2842
|
}, {
|
|
2769
|
-
id: string;
|
|
2770
2843
|
type: "direct" | "group";
|
|
2844
|
+
id: string;
|
|
2771
2845
|
createdAt: string;
|
|
2772
2846
|
updatedAt: string;
|
|
2773
2847
|
owner: string;
|
|
2774
2848
|
members: {
|
|
2775
|
-
id: string;
|
|
2776
2849
|
type: "agent" | "human";
|
|
2777
|
-
|
|
2850
|
+
id: string;
|
|
2778
2851
|
createdAt: string;
|
|
2852
|
+
chatId: string;
|
|
2779
2853
|
updatedAt: string;
|
|
2780
2854
|
memberCode: string;
|
|
2781
2855
|
role: string;
|
|
2782
2856
|
}[];
|
|
2783
2857
|
title?: string | null | undefined;
|
|
2858
|
+
defaultMachineId?: string | null | undefined;
|
|
2859
|
+
defaultCloudId?: string | null | undefined;
|
|
2860
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2861
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2784
2862
|
}>;
|
|
2785
2863
|
type ChatWithMembers = z.infer<typeof ChatWithMembersSchema>;
|
|
2786
2864
|
/**
|
|
@@ -2836,6 +2914,10 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2836
2914
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2837
2915
|
createdAt: z.ZodString;
|
|
2838
2916
|
updatedAt: z.ZodString;
|
|
2917
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2918
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2919
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2920
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2839
2921
|
} & {
|
|
2840
2922
|
members: z.ZodArray<z.ZodObject<{
|
|
2841
2923
|
id: z.ZodString;
|
|
@@ -2846,54 +2928,62 @@ declare const CreateChatResponseSchema: z.ZodObject<{
|
|
|
2846
2928
|
createdAt: z.ZodString;
|
|
2847
2929
|
updatedAt: z.ZodString;
|
|
2848
2930
|
}, "strip", z.ZodTypeAny, {
|
|
2849
|
-
id: string;
|
|
2850
2931
|
type: "agent" | "human";
|
|
2851
|
-
|
|
2932
|
+
id: string;
|
|
2852
2933
|
createdAt: string;
|
|
2934
|
+
chatId: string;
|
|
2853
2935
|
updatedAt: string;
|
|
2854
2936
|
memberCode: string;
|
|
2855
2937
|
role: string;
|
|
2856
2938
|
}, {
|
|
2857
|
-
id: string;
|
|
2858
2939
|
type: "agent" | "human";
|
|
2859
|
-
|
|
2940
|
+
id: string;
|
|
2860
2941
|
createdAt: string;
|
|
2942
|
+
chatId: string;
|
|
2861
2943
|
updatedAt: string;
|
|
2862
2944
|
memberCode: string;
|
|
2863
2945
|
role: string;
|
|
2864
2946
|
}>, "many">;
|
|
2865
2947
|
}, "strip", z.ZodTypeAny, {
|
|
2866
|
-
id: string;
|
|
2867
2948
|
type: "direct" | "group";
|
|
2949
|
+
id: string;
|
|
2868
2950
|
createdAt: string;
|
|
2869
2951
|
updatedAt: string;
|
|
2870
2952
|
owner: string;
|
|
2871
2953
|
members: {
|
|
2872
|
-
id: string;
|
|
2873
2954
|
type: "agent" | "human";
|
|
2874
|
-
|
|
2955
|
+
id: string;
|
|
2875
2956
|
createdAt: string;
|
|
2957
|
+
chatId: string;
|
|
2876
2958
|
updatedAt: string;
|
|
2877
2959
|
memberCode: string;
|
|
2878
2960
|
role: string;
|
|
2879
2961
|
}[];
|
|
2880
2962
|
title?: string | null | undefined;
|
|
2963
|
+
defaultMachineId?: string | null | undefined;
|
|
2964
|
+
defaultCloudId?: string | null | undefined;
|
|
2965
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2966
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2881
2967
|
}, {
|
|
2882
|
-
id: string;
|
|
2883
2968
|
type: "direct" | "group";
|
|
2969
|
+
id: string;
|
|
2884
2970
|
createdAt: string;
|
|
2885
2971
|
updatedAt: string;
|
|
2886
2972
|
owner: string;
|
|
2887
2973
|
members: {
|
|
2888
|
-
id: string;
|
|
2889
2974
|
type: "agent" | "human";
|
|
2890
|
-
|
|
2975
|
+
id: string;
|
|
2891
2976
|
createdAt: string;
|
|
2977
|
+
chatId: string;
|
|
2892
2978
|
updatedAt: string;
|
|
2893
2979
|
memberCode: string;
|
|
2894
2980
|
role: string;
|
|
2895
2981
|
}[];
|
|
2896
2982
|
title?: string | null | undefined;
|
|
2983
|
+
defaultMachineId?: string | null | undefined;
|
|
2984
|
+
defaultCloudId?: string | null | undefined;
|
|
2985
|
+
defaultRepositoryId?: string | null | undefined;
|
|
2986
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2897
2987
|
}>;
|
|
2898
2988
|
type CreateChatResponse = z.infer<typeof CreateChatResponseSchema>;
|
|
2899
2989
|
/**
|
|
@@ -2924,6 +3014,10 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2924
3014
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2925
3015
|
createdAt: z.ZodString;
|
|
2926
3016
|
updatedAt: z.ZodString;
|
|
3017
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3018
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3019
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3020
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2927
3021
|
} & {
|
|
2928
3022
|
members: z.ZodArray<z.ZodObject<{
|
|
2929
3023
|
id: z.ZodString;
|
|
@@ -2934,93 +3028,109 @@ declare const ListChatsResponseSchema: z.ZodObject<{
|
|
|
2934
3028
|
createdAt: z.ZodString;
|
|
2935
3029
|
updatedAt: z.ZodString;
|
|
2936
3030
|
}, "strip", z.ZodTypeAny, {
|
|
2937
|
-
id: string;
|
|
2938
3031
|
type: "agent" | "human";
|
|
2939
|
-
|
|
3032
|
+
id: string;
|
|
2940
3033
|
createdAt: string;
|
|
3034
|
+
chatId: string;
|
|
2941
3035
|
updatedAt: string;
|
|
2942
3036
|
memberCode: string;
|
|
2943
3037
|
role: string;
|
|
2944
3038
|
}, {
|
|
2945
|
-
id: string;
|
|
2946
3039
|
type: "agent" | "human";
|
|
2947
|
-
|
|
3040
|
+
id: string;
|
|
2948
3041
|
createdAt: string;
|
|
3042
|
+
chatId: string;
|
|
2949
3043
|
updatedAt: string;
|
|
2950
3044
|
memberCode: string;
|
|
2951
3045
|
role: string;
|
|
2952
3046
|
}>, "many">;
|
|
2953
3047
|
}, "strip", z.ZodTypeAny, {
|
|
2954
|
-
id: string;
|
|
2955
3048
|
type: "direct" | "group";
|
|
3049
|
+
id: string;
|
|
2956
3050
|
createdAt: string;
|
|
2957
3051
|
updatedAt: string;
|
|
2958
3052
|
owner: string;
|
|
2959
3053
|
members: {
|
|
2960
|
-
id: string;
|
|
2961
3054
|
type: "agent" | "human";
|
|
2962
|
-
|
|
3055
|
+
id: string;
|
|
2963
3056
|
createdAt: string;
|
|
3057
|
+
chatId: string;
|
|
2964
3058
|
updatedAt: string;
|
|
2965
3059
|
memberCode: string;
|
|
2966
3060
|
role: string;
|
|
2967
3061
|
}[];
|
|
2968
3062
|
title?: string | null | undefined;
|
|
3063
|
+
defaultMachineId?: string | null | undefined;
|
|
3064
|
+
defaultCloudId?: string | null | undefined;
|
|
3065
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3066
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2969
3067
|
}, {
|
|
2970
|
-
id: string;
|
|
2971
3068
|
type: "direct" | "group";
|
|
3069
|
+
id: string;
|
|
2972
3070
|
createdAt: string;
|
|
2973
3071
|
updatedAt: string;
|
|
2974
3072
|
owner: string;
|
|
2975
3073
|
members: {
|
|
2976
|
-
id: string;
|
|
2977
3074
|
type: "agent" | "human";
|
|
2978
|
-
|
|
3075
|
+
id: string;
|
|
2979
3076
|
createdAt: string;
|
|
3077
|
+
chatId: string;
|
|
2980
3078
|
updatedAt: string;
|
|
2981
3079
|
memberCode: string;
|
|
2982
3080
|
role: string;
|
|
2983
3081
|
}[];
|
|
2984
3082
|
title?: string | null | undefined;
|
|
3083
|
+
defaultMachineId?: string | null | undefined;
|
|
3084
|
+
defaultCloudId?: string | null | undefined;
|
|
3085
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3086
|
+
defaultBaseBranch?: string | null | undefined;
|
|
2985
3087
|
}>, "many">;
|
|
2986
3088
|
hasMore: z.ZodBoolean;
|
|
2987
3089
|
}, "strip", z.ZodTypeAny, {
|
|
2988
3090
|
hasMore: boolean;
|
|
2989
3091
|
chats: {
|
|
2990
|
-
id: string;
|
|
2991
3092
|
type: "direct" | "group";
|
|
3093
|
+
id: string;
|
|
2992
3094
|
createdAt: string;
|
|
2993
3095
|
updatedAt: string;
|
|
2994
3096
|
owner: string;
|
|
2995
3097
|
members: {
|
|
2996
|
-
id: string;
|
|
2997
3098
|
type: "agent" | "human";
|
|
2998
|
-
|
|
3099
|
+
id: string;
|
|
2999
3100
|
createdAt: string;
|
|
3101
|
+
chatId: string;
|
|
3000
3102
|
updatedAt: string;
|
|
3001
3103
|
memberCode: string;
|
|
3002
3104
|
role: string;
|
|
3003
3105
|
}[];
|
|
3004
3106
|
title?: string | null | undefined;
|
|
3107
|
+
defaultMachineId?: string | null | undefined;
|
|
3108
|
+
defaultCloudId?: string | null | undefined;
|
|
3109
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3110
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3005
3111
|
}[];
|
|
3006
3112
|
}, {
|
|
3007
3113
|
hasMore: boolean;
|
|
3008
3114
|
chats: {
|
|
3009
|
-
id: string;
|
|
3010
3115
|
type: "direct" | "group";
|
|
3116
|
+
id: string;
|
|
3011
3117
|
createdAt: string;
|
|
3012
3118
|
updatedAt: string;
|
|
3013
3119
|
owner: string;
|
|
3014
3120
|
members: {
|
|
3015
|
-
id: string;
|
|
3016
3121
|
type: "agent" | "human";
|
|
3017
|
-
|
|
3122
|
+
id: string;
|
|
3018
3123
|
createdAt: string;
|
|
3124
|
+
chatId: string;
|
|
3019
3125
|
updatedAt: string;
|
|
3020
3126
|
memberCode: string;
|
|
3021
3127
|
role: string;
|
|
3022
3128
|
}[];
|
|
3023
3129
|
title?: string | null | undefined;
|
|
3130
|
+
defaultMachineId?: string | null | undefined;
|
|
3131
|
+
defaultCloudId?: string | null | undefined;
|
|
3132
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3133
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3024
3134
|
}[];
|
|
3025
3135
|
}>;
|
|
3026
3136
|
type ListChatsResponse = z.infer<typeof ListChatsResponseSchema>;
|
|
@@ -3034,6 +3144,10 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
3034
3144
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3035
3145
|
createdAt: z.ZodString;
|
|
3036
3146
|
updatedAt: z.ZodString;
|
|
3147
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3148
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3149
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3150
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3037
3151
|
} & {
|
|
3038
3152
|
members: z.ZodArray<z.ZodObject<{
|
|
3039
3153
|
id: z.ZodString;
|
|
@@ -3044,54 +3158,62 @@ declare const GetChatResponseSchema: z.ZodObject<{
|
|
|
3044
3158
|
createdAt: z.ZodString;
|
|
3045
3159
|
updatedAt: z.ZodString;
|
|
3046
3160
|
}, "strip", z.ZodTypeAny, {
|
|
3047
|
-
id: string;
|
|
3048
3161
|
type: "agent" | "human";
|
|
3049
|
-
|
|
3162
|
+
id: string;
|
|
3050
3163
|
createdAt: string;
|
|
3164
|
+
chatId: string;
|
|
3051
3165
|
updatedAt: string;
|
|
3052
3166
|
memberCode: string;
|
|
3053
3167
|
role: string;
|
|
3054
3168
|
}, {
|
|
3055
|
-
id: string;
|
|
3056
3169
|
type: "agent" | "human";
|
|
3057
|
-
|
|
3170
|
+
id: string;
|
|
3058
3171
|
createdAt: string;
|
|
3172
|
+
chatId: string;
|
|
3059
3173
|
updatedAt: string;
|
|
3060
3174
|
memberCode: string;
|
|
3061
3175
|
role: string;
|
|
3062
3176
|
}>, "many">;
|
|
3063
3177
|
}, "strip", z.ZodTypeAny, {
|
|
3064
|
-
id: string;
|
|
3065
3178
|
type: "direct" | "group";
|
|
3179
|
+
id: string;
|
|
3066
3180
|
createdAt: string;
|
|
3067
3181
|
updatedAt: string;
|
|
3068
3182
|
owner: string;
|
|
3069
3183
|
members: {
|
|
3070
|
-
id: string;
|
|
3071
3184
|
type: "agent" | "human";
|
|
3072
|
-
|
|
3185
|
+
id: string;
|
|
3073
3186
|
createdAt: string;
|
|
3187
|
+
chatId: string;
|
|
3074
3188
|
updatedAt: string;
|
|
3075
3189
|
memberCode: string;
|
|
3076
3190
|
role: string;
|
|
3077
3191
|
}[];
|
|
3078
3192
|
title?: string | null | undefined;
|
|
3193
|
+
defaultMachineId?: string | null | undefined;
|
|
3194
|
+
defaultCloudId?: string | null | undefined;
|
|
3195
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3196
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3079
3197
|
}, {
|
|
3080
|
-
id: string;
|
|
3081
3198
|
type: "direct" | "group";
|
|
3199
|
+
id: string;
|
|
3082
3200
|
createdAt: string;
|
|
3083
3201
|
updatedAt: string;
|
|
3084
3202
|
owner: string;
|
|
3085
3203
|
members: {
|
|
3086
|
-
id: string;
|
|
3087
3204
|
type: "agent" | "human";
|
|
3088
|
-
|
|
3205
|
+
id: string;
|
|
3089
3206
|
createdAt: string;
|
|
3207
|
+
chatId: string;
|
|
3090
3208
|
updatedAt: string;
|
|
3091
3209
|
memberCode: string;
|
|
3092
3210
|
role: string;
|
|
3093
3211
|
}[];
|
|
3094
3212
|
title?: string | null | undefined;
|
|
3213
|
+
defaultMachineId?: string | null | undefined;
|
|
3214
|
+
defaultCloudId?: string | null | undefined;
|
|
3215
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3216
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3095
3217
|
}>;
|
|
3096
3218
|
type GetChatResponse = z.infer<typeof GetChatResponseSchema>;
|
|
3097
3219
|
/**
|
|
@@ -3107,38 +3229,38 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
|
|
|
3107
3229
|
createdAt: z.ZodString;
|
|
3108
3230
|
updatedAt: z.ZodString;
|
|
3109
3231
|
}, "strip", z.ZodTypeAny, {
|
|
3110
|
-
id: string;
|
|
3111
3232
|
type: "agent" | "human";
|
|
3112
|
-
|
|
3233
|
+
id: string;
|
|
3113
3234
|
createdAt: string;
|
|
3235
|
+
chatId: string;
|
|
3114
3236
|
updatedAt: string;
|
|
3115
3237
|
memberCode: string;
|
|
3116
3238
|
role: string;
|
|
3117
3239
|
}, {
|
|
3118
|
-
id: string;
|
|
3119
3240
|
type: "agent" | "human";
|
|
3120
|
-
|
|
3241
|
+
id: string;
|
|
3121
3242
|
createdAt: string;
|
|
3243
|
+
chatId: string;
|
|
3122
3244
|
updatedAt: string;
|
|
3123
3245
|
memberCode: string;
|
|
3124
3246
|
role: string;
|
|
3125
3247
|
}>, "many">;
|
|
3126
3248
|
}, "strip", z.ZodTypeAny, {
|
|
3127
3249
|
members: {
|
|
3128
|
-
id: string;
|
|
3129
3250
|
type: "agent" | "human";
|
|
3130
|
-
|
|
3251
|
+
id: string;
|
|
3131
3252
|
createdAt: string;
|
|
3253
|
+
chatId: string;
|
|
3132
3254
|
updatedAt: string;
|
|
3133
3255
|
memberCode: string;
|
|
3134
3256
|
role: string;
|
|
3135
3257
|
}[];
|
|
3136
3258
|
}, {
|
|
3137
3259
|
members: {
|
|
3138
|
-
id: string;
|
|
3139
3260
|
type: "agent" | "human";
|
|
3140
|
-
|
|
3261
|
+
id: string;
|
|
3141
3262
|
createdAt: string;
|
|
3263
|
+
chatId: string;
|
|
3142
3264
|
updatedAt: string;
|
|
3143
3265
|
memberCode: string;
|
|
3144
3266
|
role: string;
|
|
@@ -3185,38 +3307,38 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
|
|
|
3185
3307
|
createdAt: z.ZodString;
|
|
3186
3308
|
updatedAt: z.ZodString;
|
|
3187
3309
|
}, "strip", z.ZodTypeAny, {
|
|
3188
|
-
id: string;
|
|
3189
3310
|
type: "agent" | "human";
|
|
3190
|
-
|
|
3311
|
+
id: string;
|
|
3191
3312
|
createdAt: string;
|
|
3313
|
+
chatId: string;
|
|
3192
3314
|
updatedAt: string;
|
|
3193
3315
|
memberCode: string;
|
|
3194
3316
|
role: string;
|
|
3195
3317
|
}, {
|
|
3196
|
-
id: string;
|
|
3197
3318
|
type: "agent" | "human";
|
|
3198
|
-
|
|
3319
|
+
id: string;
|
|
3199
3320
|
createdAt: string;
|
|
3321
|
+
chatId: string;
|
|
3200
3322
|
updatedAt: string;
|
|
3201
3323
|
memberCode: string;
|
|
3202
3324
|
role: string;
|
|
3203
3325
|
}>, "many">;
|
|
3204
3326
|
}, "strip", z.ZodTypeAny, {
|
|
3205
3327
|
members: {
|
|
3206
|
-
id: string;
|
|
3207
3328
|
type: "agent" | "human";
|
|
3208
|
-
|
|
3329
|
+
id: string;
|
|
3209
3330
|
createdAt: string;
|
|
3331
|
+
chatId: string;
|
|
3210
3332
|
updatedAt: string;
|
|
3211
3333
|
memberCode: string;
|
|
3212
3334
|
role: string;
|
|
3213
3335
|
}[];
|
|
3214
3336
|
}, {
|
|
3215
3337
|
members: {
|
|
3216
|
-
id: string;
|
|
3217
3338
|
type: "agent" | "human";
|
|
3218
|
-
|
|
3339
|
+
id: string;
|
|
3219
3340
|
createdAt: string;
|
|
3341
|
+
chatId: string;
|
|
3220
3342
|
updatedAt: string;
|
|
3221
3343
|
memberCode: string;
|
|
3222
3344
|
role: string;
|
|
@@ -3259,6 +3381,7 @@ type RemoveChatMemberRequest = z.infer<typeof RemoveChatMemberRequestSchema>;
|
|
|
3259
3381
|
declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
3260
3382
|
tasks: z.ZodArray<z.ZodObject<{
|
|
3261
3383
|
id: z.ZodString;
|
|
3384
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
3262
3385
|
chatId: z.ZodString;
|
|
3263
3386
|
userId: z.ZodString;
|
|
3264
3387
|
state: z.ZodString;
|
|
@@ -3319,26 +3442,27 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3319
3442
|
createdAt: z.ZodString;
|
|
3320
3443
|
updatedAt: z.ZodString;
|
|
3321
3444
|
}, "strip", z.ZodTypeAny, {
|
|
3445
|
+
type: "chat" | "work";
|
|
3322
3446
|
id: string;
|
|
3447
|
+
createdAt: string;
|
|
3448
|
+
state: string;
|
|
3449
|
+
machineId: string | null;
|
|
3450
|
+
cloudId: string | null;
|
|
3451
|
+
userId: string;
|
|
3323
3452
|
chatId: string;
|
|
3453
|
+
customTitle: string | null;
|
|
3324
3454
|
cwd: string | null;
|
|
3325
3455
|
forceUserCwd: boolean | null;
|
|
3326
|
-
machineId: string | null;
|
|
3327
|
-
cloudId: string | null;
|
|
3328
3456
|
repositoryId: string | null;
|
|
3329
3457
|
baseBranch: string | null;
|
|
3330
3458
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3331
3459
|
dataEncryptionKey: string | null;
|
|
3332
|
-
parentTaskId: string | null;
|
|
3333
3460
|
agentId: string;
|
|
3334
|
-
|
|
3335
|
-
state: string;
|
|
3461
|
+
parentTaskId: string | null;
|
|
3336
3462
|
title: string | null;
|
|
3337
3463
|
userCwd: string | null;
|
|
3338
|
-
createdAt: string;
|
|
3339
3464
|
updatedAt: string;
|
|
3340
3465
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3341
|
-
customTitle: string | null;
|
|
3342
3466
|
agentSessionId: string | null;
|
|
3343
3467
|
pullRequestNumber: number | null;
|
|
3344
3468
|
pullRequestUrl: string | null;
|
|
@@ -3357,25 +3481,25 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3357
3481
|
rootTaskId: string | null;
|
|
3358
3482
|
}, {
|
|
3359
3483
|
id: string;
|
|
3484
|
+
createdAt: string;
|
|
3485
|
+
state: string;
|
|
3486
|
+
machineId: string | null;
|
|
3487
|
+
cloudId: string | null;
|
|
3488
|
+
userId: string;
|
|
3360
3489
|
chatId: string;
|
|
3490
|
+
customTitle: string | null;
|
|
3361
3491
|
cwd: string | null;
|
|
3362
3492
|
forceUserCwd: boolean | null;
|
|
3363
|
-
machineId: string | null;
|
|
3364
|
-
cloudId: string | null;
|
|
3365
3493
|
repositoryId: string | null;
|
|
3366
3494
|
baseBranch: string | null;
|
|
3367
3495
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3368
3496
|
dataEncryptionKey: string | null;
|
|
3369
|
-
parentTaskId: string | null;
|
|
3370
3497
|
agentId: string;
|
|
3371
|
-
|
|
3372
|
-
state: string;
|
|
3498
|
+
parentTaskId: string | null;
|
|
3373
3499
|
title: string | null;
|
|
3374
3500
|
userCwd: string | null;
|
|
3375
|
-
createdAt: string;
|
|
3376
3501
|
updatedAt: string;
|
|
3377
3502
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3378
|
-
customTitle: string | null;
|
|
3379
3503
|
agentSessionId: string | null;
|
|
3380
3504
|
pullRequestNumber: number | null;
|
|
3381
3505
|
pullRequestUrl: string | null;
|
|
@@ -3392,29 +3516,31 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3392
3516
|
} | null;
|
|
3393
3517
|
totalDuration: number | null;
|
|
3394
3518
|
rootTaskId: string | null;
|
|
3519
|
+
type?: "chat" | "work" | undefined;
|
|
3395
3520
|
}>, "many">;
|
|
3396
3521
|
}, "strip", z.ZodTypeAny, {
|
|
3397
3522
|
tasks: {
|
|
3523
|
+
type: "chat" | "work";
|
|
3398
3524
|
id: string;
|
|
3525
|
+
createdAt: string;
|
|
3526
|
+
state: string;
|
|
3527
|
+
machineId: string | null;
|
|
3528
|
+
cloudId: string | null;
|
|
3529
|
+
userId: string;
|
|
3399
3530
|
chatId: string;
|
|
3531
|
+
customTitle: string | null;
|
|
3400
3532
|
cwd: string | null;
|
|
3401
3533
|
forceUserCwd: boolean | null;
|
|
3402
|
-
machineId: string | null;
|
|
3403
|
-
cloudId: string | null;
|
|
3404
3534
|
repositoryId: string | null;
|
|
3405
3535
|
baseBranch: string | null;
|
|
3406
3536
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3407
3537
|
dataEncryptionKey: string | null;
|
|
3408
|
-
parentTaskId: string | null;
|
|
3409
3538
|
agentId: string;
|
|
3410
|
-
|
|
3411
|
-
state: string;
|
|
3539
|
+
parentTaskId: string | null;
|
|
3412
3540
|
title: string | null;
|
|
3413
3541
|
userCwd: string | null;
|
|
3414
|
-
createdAt: string;
|
|
3415
3542
|
updatedAt: string;
|
|
3416
3543
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3417
|
-
customTitle: string | null;
|
|
3418
3544
|
agentSessionId: string | null;
|
|
3419
3545
|
pullRequestNumber: number | null;
|
|
3420
3546
|
pullRequestUrl: string | null;
|
|
@@ -3435,25 +3561,25 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3435
3561
|
}, {
|
|
3436
3562
|
tasks: {
|
|
3437
3563
|
id: string;
|
|
3564
|
+
createdAt: string;
|
|
3565
|
+
state: string;
|
|
3566
|
+
machineId: string | null;
|
|
3567
|
+
cloudId: string | null;
|
|
3568
|
+
userId: string;
|
|
3438
3569
|
chatId: string;
|
|
3570
|
+
customTitle: string | null;
|
|
3439
3571
|
cwd: string | null;
|
|
3440
3572
|
forceUserCwd: boolean | null;
|
|
3441
|
-
machineId: string | null;
|
|
3442
|
-
cloudId: string | null;
|
|
3443
3573
|
repositoryId: string | null;
|
|
3444
3574
|
baseBranch: string | null;
|
|
3445
3575
|
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
3446
3576
|
dataEncryptionKey: string | null;
|
|
3447
|
-
parentTaskId: string | null;
|
|
3448
3577
|
agentId: string;
|
|
3449
|
-
|
|
3450
|
-
state: string;
|
|
3578
|
+
parentTaskId: string | null;
|
|
3451
3579
|
title: string | null;
|
|
3452
3580
|
userCwd: string | null;
|
|
3453
|
-
createdAt: string;
|
|
3454
3581
|
updatedAt: string;
|
|
3455
3582
|
workerStatus: "initializing" | "ready" | "running" | null;
|
|
3456
|
-
customTitle: string | null;
|
|
3457
3583
|
agentSessionId: string | null;
|
|
3458
3584
|
pullRequestNumber: number | null;
|
|
3459
3585
|
pullRequestUrl: string | null;
|
|
@@ -3470,9 +3596,69 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
|
|
|
3470
3596
|
} | null;
|
|
3471
3597
|
totalDuration: number | null;
|
|
3472
3598
|
rootTaskId: string | null;
|
|
3599
|
+
type?: "chat" | "work" | undefined;
|
|
3473
3600
|
}[];
|
|
3474
3601
|
}>;
|
|
3475
3602
|
type ListChatTasksResponse = z.infer<typeof ListChatTasksResponseSchema>;
|
|
3603
|
+
/**
|
|
3604
|
+
* PATCH /v1/chats/:chatId/context - Request schema
|
|
3605
|
+
* Update default context for creating sub-tasks
|
|
3606
|
+
*/
|
|
3607
|
+
declare const UpdateChatContextRequestSchema: z.ZodObject<{
|
|
3608
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3609
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3610
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3611
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3612
|
+
}, "strip", z.ZodTypeAny, {
|
|
3613
|
+
defaultMachineId?: string | null | undefined;
|
|
3614
|
+
defaultCloudId?: string | null | undefined;
|
|
3615
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3616
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3617
|
+
}, {
|
|
3618
|
+
defaultMachineId?: string | null | undefined;
|
|
3619
|
+
defaultCloudId?: string | null | undefined;
|
|
3620
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3621
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3622
|
+
}>;
|
|
3623
|
+
type UpdateChatContextRequest = z.infer<typeof UpdateChatContextRequestSchema>;
|
|
3624
|
+
/**
|
|
3625
|
+
* PATCH /v1/chats/:chatId/context - Response schema
|
|
3626
|
+
*/
|
|
3627
|
+
declare const UpdateChatContextResponseSchema: z.ZodObject<{
|
|
3628
|
+
id: z.ZodString;
|
|
3629
|
+
owner: z.ZodString;
|
|
3630
|
+
type: z.ZodEnum<["direct", "group"]>;
|
|
3631
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3632
|
+
createdAt: z.ZodString;
|
|
3633
|
+
updatedAt: z.ZodString;
|
|
3634
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3635
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3636
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3637
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3638
|
+
}, "strip", z.ZodTypeAny, {
|
|
3639
|
+
type: "direct" | "group";
|
|
3640
|
+
id: string;
|
|
3641
|
+
createdAt: string;
|
|
3642
|
+
updatedAt: string;
|
|
3643
|
+
owner: string;
|
|
3644
|
+
title?: string | null | undefined;
|
|
3645
|
+
defaultMachineId?: string | null | undefined;
|
|
3646
|
+
defaultCloudId?: string | null | undefined;
|
|
3647
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3648
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3649
|
+
}, {
|
|
3650
|
+
type: "direct" | "group";
|
|
3651
|
+
id: string;
|
|
3652
|
+
createdAt: string;
|
|
3653
|
+
updatedAt: string;
|
|
3654
|
+
owner: string;
|
|
3655
|
+
title?: string | null | undefined;
|
|
3656
|
+
defaultMachineId?: string | null | undefined;
|
|
3657
|
+
defaultCloudId?: string | null | undefined;
|
|
3658
|
+
defaultRepositoryId?: string | null | undefined;
|
|
3659
|
+
defaultBaseBranch?: string | null | undefined;
|
|
3660
|
+
}>;
|
|
3661
|
+
type UpdateChatContextResponse = z.infer<typeof UpdateChatContextResponseSchema>;
|
|
3476
3662
|
|
|
3477
3663
|
/**
|
|
3478
3664
|
* Agent HTTP request/response schemas
|
|
@@ -3843,17 +4029,17 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3843
4029
|
paths?: string[] | undefined;
|
|
3844
4030
|
}>>;
|
|
3845
4031
|
}, "strip", z.ZodTypeAny, {
|
|
4032
|
+
type: "claude" | "codex";
|
|
3846
4033
|
id: string;
|
|
3847
4034
|
avatar: string | null;
|
|
3848
|
-
|
|
4035
|
+
signature: string | null;
|
|
3849
4036
|
userId: string;
|
|
3850
|
-
name: string;
|
|
3851
|
-
description: string | null;
|
|
3852
4037
|
permissions: {
|
|
3853
4038
|
role: string;
|
|
3854
4039
|
paths?: string[] | undefined;
|
|
3855
4040
|
} | null;
|
|
3856
|
-
|
|
4041
|
+
name: string;
|
|
4042
|
+
description: string | null;
|
|
3857
4043
|
guildMsg: string;
|
|
3858
4044
|
placeholderMsg: string;
|
|
3859
4045
|
developerName: string;
|
|
@@ -3883,17 +4069,17 @@ declare const AgentSchema: z.ZodObject<{
|
|
|
3883
4069
|
}> | undefined;
|
|
3884
4070
|
} | null;
|
|
3885
4071
|
}, {
|
|
4072
|
+
type: "claude" | "codex";
|
|
3886
4073
|
id: string;
|
|
3887
4074
|
avatar: string | null;
|
|
3888
|
-
|
|
4075
|
+
signature: string | null;
|
|
3889
4076
|
userId: string;
|
|
3890
|
-
name: string;
|
|
3891
|
-
description: string | null;
|
|
3892
4077
|
permissions: {
|
|
3893
4078
|
role: string;
|
|
3894
4079
|
paths?: string[] | undefined;
|
|
3895
4080
|
} | null;
|
|
3896
|
-
|
|
4081
|
+
name: string;
|
|
4082
|
+
description: string | null;
|
|
3897
4083
|
guildMsg: string;
|
|
3898
4084
|
placeholderMsg: string;
|
|
3899
4085
|
developerName: string;
|
|
@@ -4051,17 +4237,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4051
4237
|
paths?: string[] | undefined;
|
|
4052
4238
|
}>>;
|
|
4053
4239
|
}, "strip", z.ZodTypeAny, {
|
|
4240
|
+
type: "claude" | "codex";
|
|
4054
4241
|
id: string;
|
|
4055
4242
|
avatar: string | null;
|
|
4056
|
-
|
|
4243
|
+
signature: string | null;
|
|
4057
4244
|
userId: string;
|
|
4058
|
-
name: string;
|
|
4059
|
-
description: string | null;
|
|
4060
4245
|
permissions: {
|
|
4061
4246
|
role: string;
|
|
4062
4247
|
paths?: string[] | undefined;
|
|
4063
4248
|
} | null;
|
|
4064
|
-
|
|
4249
|
+
name: string;
|
|
4250
|
+
description: string | null;
|
|
4065
4251
|
guildMsg: string;
|
|
4066
4252
|
placeholderMsg: string;
|
|
4067
4253
|
developerName: string;
|
|
@@ -4091,17 +4277,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4091
4277
|
}> | undefined;
|
|
4092
4278
|
} | null;
|
|
4093
4279
|
}, {
|
|
4280
|
+
type: "claude" | "codex";
|
|
4094
4281
|
id: string;
|
|
4095
4282
|
avatar: string | null;
|
|
4096
|
-
|
|
4283
|
+
signature: string | null;
|
|
4097
4284
|
userId: string;
|
|
4098
|
-
name: string;
|
|
4099
|
-
description: string | null;
|
|
4100
4285
|
permissions: {
|
|
4101
4286
|
role: string;
|
|
4102
4287
|
paths?: string[] | undefined;
|
|
4103
4288
|
} | null;
|
|
4104
|
-
|
|
4289
|
+
name: string;
|
|
4290
|
+
description: string | null;
|
|
4105
4291
|
guildMsg: string;
|
|
4106
4292
|
placeholderMsg: string;
|
|
4107
4293
|
developerName: string;
|
|
@@ -4133,17 +4319,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4133
4319
|
}>, "many">;
|
|
4134
4320
|
}, "strip", z.ZodTypeAny, {
|
|
4135
4321
|
agents: {
|
|
4322
|
+
type: "claude" | "codex";
|
|
4136
4323
|
id: string;
|
|
4137
4324
|
avatar: string | null;
|
|
4138
|
-
|
|
4325
|
+
signature: string | null;
|
|
4139
4326
|
userId: string;
|
|
4140
|
-
name: string;
|
|
4141
|
-
description: string | null;
|
|
4142
4327
|
permissions: {
|
|
4143
4328
|
role: string;
|
|
4144
4329
|
paths?: string[] | undefined;
|
|
4145
4330
|
} | null;
|
|
4146
|
-
|
|
4331
|
+
name: string;
|
|
4332
|
+
description: string | null;
|
|
4147
4333
|
guildMsg: string;
|
|
4148
4334
|
placeholderMsg: string;
|
|
4149
4335
|
developerName: string;
|
|
@@ -4175,17 +4361,17 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
|
|
|
4175
4361
|
}[];
|
|
4176
4362
|
}, {
|
|
4177
4363
|
agents: {
|
|
4364
|
+
type: "claude" | "codex";
|
|
4178
4365
|
id: string;
|
|
4179
4366
|
avatar: string | null;
|
|
4180
|
-
|
|
4367
|
+
signature: string | null;
|
|
4181
4368
|
userId: string;
|
|
4182
|
-
name: string;
|
|
4183
|
-
description: string | null;
|
|
4184
4369
|
permissions: {
|
|
4185
4370
|
role: string;
|
|
4186
4371
|
paths?: string[] | undefined;
|
|
4187
4372
|
} | null;
|
|
4188
|
-
|
|
4373
|
+
name: string;
|
|
4374
|
+
description: string | null;
|
|
4189
4375
|
guildMsg: string;
|
|
4190
4376
|
placeholderMsg: string;
|
|
4191
4377
|
developerName: string;
|
|
@@ -4343,17 +4529,17 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4343
4529
|
paths?: string[] | undefined;
|
|
4344
4530
|
}>>;
|
|
4345
4531
|
}, "strip", z.ZodTypeAny, {
|
|
4532
|
+
type: "claude" | "codex";
|
|
4346
4533
|
id: string;
|
|
4347
4534
|
avatar: string | null;
|
|
4348
|
-
|
|
4535
|
+
signature: string | null;
|
|
4349
4536
|
userId: string;
|
|
4350
|
-
name: string;
|
|
4351
|
-
description: string | null;
|
|
4352
4537
|
permissions: {
|
|
4353
4538
|
role: string;
|
|
4354
4539
|
paths?: string[] | undefined;
|
|
4355
4540
|
} | null;
|
|
4356
|
-
|
|
4541
|
+
name: string;
|
|
4542
|
+
description: string | null;
|
|
4357
4543
|
guildMsg: string;
|
|
4358
4544
|
placeholderMsg: string;
|
|
4359
4545
|
developerName: string;
|
|
@@ -4383,17 +4569,17 @@ declare const GetAgentResponseSchema: z.ZodObject<{
|
|
|
4383
4569
|
}> | undefined;
|
|
4384
4570
|
} | null;
|
|
4385
4571
|
}, {
|
|
4572
|
+
type: "claude" | "codex";
|
|
4386
4573
|
id: string;
|
|
4387
4574
|
avatar: string | null;
|
|
4388
|
-
|
|
4575
|
+
signature: string | null;
|
|
4389
4576
|
userId: string;
|
|
4390
|
-
name: string;
|
|
4391
|
-
description: string | null;
|
|
4392
4577
|
permissions: {
|
|
4393
4578
|
role: string;
|
|
4394
4579
|
paths?: string[] | undefined;
|
|
4395
4580
|
} | null;
|
|
4396
|
-
|
|
4581
|
+
name: string;
|
|
4582
|
+
description: string | null;
|
|
4397
4583
|
guildMsg: string;
|
|
4398
4584
|
placeholderMsg: string;
|
|
4399
4585
|
developerName: string;
|
|
@@ -4541,8 +4727,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4541
4727
|
placeholderMsg: string;
|
|
4542
4728
|
supportLocal: boolean;
|
|
4543
4729
|
avatar?: string | undefined;
|
|
4544
|
-
description?: string | undefined;
|
|
4545
4730
|
signature?: string | undefined;
|
|
4731
|
+
description?: string | undefined;
|
|
4546
4732
|
gitRepoId?: string | undefined;
|
|
4547
4733
|
config?: {
|
|
4548
4734
|
displayConfig?: Record<string, {
|
|
@@ -4569,8 +4755,8 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
|
|
|
4569
4755
|
type: "claude" | "codex";
|
|
4570
4756
|
name: string;
|
|
4571
4757
|
avatar?: string | undefined;
|
|
4572
|
-
description?: string | undefined;
|
|
4573
4758
|
signature?: string | undefined;
|
|
4759
|
+
description?: string | undefined;
|
|
4574
4760
|
guildMsg?: string | undefined;
|
|
4575
4761
|
placeholderMsg?: string | undefined;
|
|
4576
4762
|
gitRepoId?: string | undefined;
|
|
@@ -4724,17 +4910,17 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4724
4910
|
paths?: string[] | undefined;
|
|
4725
4911
|
}>>;
|
|
4726
4912
|
}, "strip", z.ZodTypeAny, {
|
|
4913
|
+
type: "claude" | "codex";
|
|
4727
4914
|
id: string;
|
|
4728
4915
|
avatar: string | null;
|
|
4729
|
-
|
|
4916
|
+
signature: string | null;
|
|
4730
4917
|
userId: string;
|
|
4731
|
-
name: string;
|
|
4732
|
-
description: string | null;
|
|
4733
4918
|
permissions: {
|
|
4734
4919
|
role: string;
|
|
4735
4920
|
paths?: string[] | undefined;
|
|
4736
4921
|
} | null;
|
|
4737
|
-
|
|
4922
|
+
name: string;
|
|
4923
|
+
description: string | null;
|
|
4738
4924
|
guildMsg: string;
|
|
4739
4925
|
placeholderMsg: string;
|
|
4740
4926
|
developerName: string;
|
|
@@ -4764,17 +4950,17 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
|
|
|
4764
4950
|
}> | undefined;
|
|
4765
4951
|
} | null;
|
|
4766
4952
|
}, {
|
|
4953
|
+
type: "claude" | "codex";
|
|
4767
4954
|
id: string;
|
|
4768
4955
|
avatar: string | null;
|
|
4769
|
-
|
|
4956
|
+
signature: string | null;
|
|
4770
4957
|
userId: string;
|
|
4771
|
-
name: string;
|
|
4772
|
-
description: string | null;
|
|
4773
4958
|
permissions: {
|
|
4774
4959
|
role: string;
|
|
4775
4960
|
paths?: string[] | undefined;
|
|
4776
4961
|
} | null;
|
|
4777
|
-
|
|
4962
|
+
name: string;
|
|
4963
|
+
description: string | null;
|
|
4778
4964
|
guildMsg: string;
|
|
4779
4965
|
placeholderMsg: string;
|
|
4780
4966
|
developerName: string;
|
|
@@ -4916,11 +5102,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4916
5102
|
}> | undefined;
|
|
4917
5103
|
}>>>;
|
|
4918
5104
|
}, "strip", z.ZodTypeAny, {
|
|
4919
|
-
avatar?: string | null | undefined;
|
|
4920
5105
|
type?: "claude" | "codex" | undefined;
|
|
5106
|
+
avatar?: string | null | undefined;
|
|
5107
|
+
signature?: string | null | undefined;
|
|
4921
5108
|
name?: string | undefined;
|
|
4922
5109
|
description?: string | null | undefined;
|
|
4923
|
-
signature?: string | null | undefined;
|
|
4924
5110
|
guildMsg?: string | undefined;
|
|
4925
5111
|
placeholderMsg?: string | undefined;
|
|
4926
5112
|
gitRepoId?: string | null | undefined;
|
|
@@ -4947,11 +5133,11 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
|
|
|
4947
5133
|
}> | undefined;
|
|
4948
5134
|
} | null | undefined;
|
|
4949
5135
|
}, {
|
|
4950
|
-
avatar?: string | null | undefined;
|
|
4951
5136
|
type?: "claude" | "codex" | undefined;
|
|
5137
|
+
avatar?: string | null | undefined;
|
|
5138
|
+
signature?: string | null | undefined;
|
|
4952
5139
|
name?: string | undefined;
|
|
4953
5140
|
description?: string | null | undefined;
|
|
4954
|
-
signature?: string | null | undefined;
|
|
4955
5141
|
guildMsg?: string | undefined;
|
|
4956
5142
|
placeholderMsg?: string | undefined;
|
|
4957
5143
|
gitRepoId?: string | null | undefined;
|
|
@@ -5105,17 +5291,17 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
5105
5291
|
paths?: string[] | undefined;
|
|
5106
5292
|
}>>;
|
|
5107
5293
|
}, "strip", z.ZodTypeAny, {
|
|
5294
|
+
type: "claude" | "codex";
|
|
5108
5295
|
id: string;
|
|
5109
5296
|
avatar: string | null;
|
|
5110
|
-
|
|
5297
|
+
signature: string | null;
|
|
5111
5298
|
userId: string;
|
|
5112
|
-
name: string;
|
|
5113
|
-
description: string | null;
|
|
5114
5299
|
permissions: {
|
|
5115
5300
|
role: string;
|
|
5116
5301
|
paths?: string[] | undefined;
|
|
5117
5302
|
} | null;
|
|
5118
|
-
|
|
5303
|
+
name: string;
|
|
5304
|
+
description: string | null;
|
|
5119
5305
|
guildMsg: string;
|
|
5120
5306
|
placeholderMsg: string;
|
|
5121
5307
|
developerName: string;
|
|
@@ -5145,17 +5331,17 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
|
|
|
5145
5331
|
}> | undefined;
|
|
5146
5332
|
} | null;
|
|
5147
5333
|
}, {
|
|
5334
|
+
type: "claude" | "codex";
|
|
5148
5335
|
id: string;
|
|
5149
5336
|
avatar: string | null;
|
|
5150
|
-
|
|
5337
|
+
signature: string | null;
|
|
5151
5338
|
userId: string;
|
|
5152
|
-
name: string;
|
|
5153
|
-
description: string | null;
|
|
5154
5339
|
permissions: {
|
|
5155
5340
|
role: string;
|
|
5156
5341
|
paths?: string[] | undefined;
|
|
5157
5342
|
} | null;
|
|
5158
|
-
|
|
5343
|
+
name: string;
|
|
5344
|
+
description: string | null;
|
|
5159
5345
|
guildMsg: string;
|
|
5160
5346
|
placeholderMsg: string;
|
|
5161
5347
|
developerName: string;
|
|
@@ -5403,13 +5589,13 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5403
5589
|
placeholderMsg: z.ZodOptional<z.ZodString>;
|
|
5404
5590
|
}, "strip", z.ZodTypeAny, {
|
|
5405
5591
|
type: "claude" | "codex";
|
|
5406
|
-
taskId: string;
|
|
5407
5592
|
userId: string;
|
|
5593
|
+
taskId: string;
|
|
5408
5594
|
name: string;
|
|
5409
5595
|
agentDir: string;
|
|
5410
5596
|
avatar?: string | undefined;
|
|
5411
|
-
description?: string | undefined;
|
|
5412
5597
|
signature?: string | undefined;
|
|
5598
|
+
description?: string | undefined;
|
|
5413
5599
|
guildMsg?: string | undefined;
|
|
5414
5600
|
placeholderMsg?: string | undefined;
|
|
5415
5601
|
envVars?: {
|
|
@@ -5420,14 +5606,14 @@ declare const CreateDraftAgentRequestSchema: z.ZodObject<{
|
|
|
5420
5606
|
defaultValue?: string | undefined;
|
|
5421
5607
|
}[] | undefined;
|
|
5422
5608
|
}, {
|
|
5423
|
-
taskId: string;
|
|
5424
5609
|
userId: string;
|
|
5610
|
+
taskId: string;
|
|
5425
5611
|
name: string;
|
|
5426
5612
|
agentDir: string;
|
|
5427
|
-
avatar?: string | undefined;
|
|
5428
5613
|
type?: "claude" | "codex" | undefined;
|
|
5429
|
-
|
|
5614
|
+
avatar?: string | undefined;
|
|
5430
5615
|
signature?: string | undefined;
|
|
5616
|
+
description?: string | undefined;
|
|
5431
5617
|
guildMsg?: string | undefined;
|
|
5432
5618
|
placeholderMsg?: string | undefined;
|
|
5433
5619
|
envVars?: {
|
|
@@ -5447,11 +5633,11 @@ declare const SetEnvironmentVariablesRequestSchema: z.ZodObject<{
|
|
|
5447
5633
|
ownerId: z.ZodString;
|
|
5448
5634
|
variables: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5449
5635
|
}, "strip", z.ZodTypeAny, {
|
|
5450
|
-
ownerType: "agent" | "
|
|
5636
|
+
ownerType: "agent" | "draft-agent" | "machine" | "cloud";
|
|
5451
5637
|
ownerId: string;
|
|
5452
5638
|
variables: Record<string, string>;
|
|
5453
5639
|
}, {
|
|
5454
|
-
ownerType: "agent" | "
|
|
5640
|
+
ownerType: "agent" | "draft-agent" | "machine" | "cloud";
|
|
5455
5641
|
ownerId: string;
|
|
5456
5642
|
variables: Record<string, string>;
|
|
5457
5643
|
}>;
|
|
@@ -5634,18 +5820,18 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5634
5820
|
createdAt: z.ZodString;
|
|
5635
5821
|
updatedAt: z.ZodString;
|
|
5636
5822
|
}, "strip", z.ZodTypeAny, {
|
|
5823
|
+
type: "claude" | "codex";
|
|
5637
5824
|
id: string;
|
|
5638
5825
|
avatar: string | null;
|
|
5639
|
-
type: "claude" | "codex";
|
|
5640
|
-
userId: string;
|
|
5641
5826
|
createdAt: string;
|
|
5642
|
-
|
|
5643
|
-
name: string;
|
|
5644
|
-
description: string | null;
|
|
5827
|
+
userId: string;
|
|
5645
5828
|
permissions: {
|
|
5646
5829
|
role: string;
|
|
5647
5830
|
paths?: string[] | undefined;
|
|
5648
5831
|
} | null;
|
|
5832
|
+
updatedAt: string;
|
|
5833
|
+
name: string;
|
|
5834
|
+
description: string | null;
|
|
5649
5835
|
enable: boolean;
|
|
5650
5836
|
config: {
|
|
5651
5837
|
signature?: string | undefined;
|
|
@@ -5683,18 +5869,18 @@ declare const DraftAgentSchema: z.ZodObject<{
|
|
|
5683
5869
|
publishedAgentId: string | null;
|
|
5684
5870
|
sourceTaskId: string | null;
|
|
5685
5871
|
}, {
|
|
5872
|
+
type: "claude" | "codex";
|
|
5686
5873
|
id: string;
|
|
5687
5874
|
avatar: string | null;
|
|
5688
|
-
type: "claude" | "codex";
|
|
5689
|
-
userId: string;
|
|
5690
5875
|
createdAt: string;
|
|
5691
|
-
|
|
5692
|
-
name: string;
|
|
5693
|
-
description: string | null;
|
|
5876
|
+
userId: string;
|
|
5694
5877
|
permissions: {
|
|
5695
5878
|
role: string;
|
|
5696
5879
|
paths?: string[] | undefined;
|
|
5697
5880
|
} | null;
|
|
5881
|
+
updatedAt: string;
|
|
5882
|
+
name: string;
|
|
5883
|
+
description: string | null;
|
|
5698
5884
|
enable: boolean;
|
|
5699
5885
|
config: {
|
|
5700
5886
|
signature?: string | undefined;
|
|
@@ -6115,18 +6301,18 @@ declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
|
6115
6301
|
createdAt: z.ZodString;
|
|
6116
6302
|
updatedAt: z.ZodString;
|
|
6117
6303
|
}, "strip", z.ZodTypeAny, {
|
|
6304
|
+
type: "claude" | "codex";
|
|
6118
6305
|
id: string;
|
|
6119
6306
|
avatar: string | null;
|
|
6120
|
-
type: "claude" | "codex";
|
|
6121
|
-
userId: string;
|
|
6122
6307
|
createdAt: string;
|
|
6123
|
-
|
|
6124
|
-
name: string;
|
|
6125
|
-
description: string | null;
|
|
6308
|
+
userId: string;
|
|
6126
6309
|
permissions: {
|
|
6127
6310
|
role: string;
|
|
6128
6311
|
paths?: string[] | undefined;
|
|
6129
6312
|
} | null;
|
|
6313
|
+
updatedAt: string;
|
|
6314
|
+
name: string;
|
|
6315
|
+
description: string | null;
|
|
6130
6316
|
enable: boolean;
|
|
6131
6317
|
config: {
|
|
6132
6318
|
signature?: string | undefined;
|
|
@@ -6164,18 +6350,18 @@ declare const UpdateDraftAgentResponseSchema: z.ZodObject<{
|
|
|
6164
6350
|
publishedAgentId: string | null;
|
|
6165
6351
|
sourceTaskId: string | null;
|
|
6166
6352
|
}, {
|
|
6353
|
+
type: "claude" | "codex";
|
|
6167
6354
|
id: string;
|
|
6168
6355
|
avatar: string | null;
|
|
6169
|
-
type: "claude" | "codex";
|
|
6170
|
-
userId: string;
|
|
6171
6356
|
createdAt: string;
|
|
6172
|
-
|
|
6173
|
-
name: string;
|
|
6174
|
-
description: string | null;
|
|
6357
|
+
userId: string;
|
|
6175
6358
|
permissions: {
|
|
6176
6359
|
role: string;
|
|
6177
6360
|
paths?: string[] | undefined;
|
|
6178
6361
|
} | null;
|
|
6362
|
+
updatedAt: string;
|
|
6363
|
+
name: string;
|
|
6364
|
+
description: string | null;
|
|
6179
6365
|
enable: boolean;
|
|
6180
6366
|
config: {
|
|
6181
6367
|
signature?: string | undefined;
|
|
@@ -6341,17 +6527,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6341
6527
|
paths?: string[] | undefined;
|
|
6342
6528
|
}>>;
|
|
6343
6529
|
}, "strip", z.ZodTypeAny, {
|
|
6530
|
+
type: "claude" | "codex";
|
|
6344
6531
|
id: string;
|
|
6345
6532
|
avatar: string | null;
|
|
6346
|
-
|
|
6533
|
+
signature: string | null;
|
|
6347
6534
|
userId: string;
|
|
6348
|
-
name: string;
|
|
6349
|
-
description: string | null;
|
|
6350
6535
|
permissions: {
|
|
6351
6536
|
role: string;
|
|
6352
6537
|
paths?: string[] | undefined;
|
|
6353
6538
|
} | null;
|
|
6354
|
-
|
|
6539
|
+
name: string;
|
|
6540
|
+
description: string | null;
|
|
6355
6541
|
guildMsg: string;
|
|
6356
6542
|
placeholderMsg: string;
|
|
6357
6543
|
developerName: string;
|
|
@@ -6381,17 +6567,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6381
6567
|
}> | undefined;
|
|
6382
6568
|
} | null;
|
|
6383
6569
|
}, {
|
|
6570
|
+
type: "claude" | "codex";
|
|
6384
6571
|
id: string;
|
|
6385
6572
|
avatar: string | null;
|
|
6386
|
-
|
|
6573
|
+
signature: string | null;
|
|
6387
6574
|
userId: string;
|
|
6388
|
-
name: string;
|
|
6389
|
-
description: string | null;
|
|
6390
6575
|
permissions: {
|
|
6391
6576
|
role: string;
|
|
6392
6577
|
paths?: string[] | undefined;
|
|
6393
6578
|
} | null;
|
|
6394
|
-
|
|
6579
|
+
name: string;
|
|
6580
|
+
description: string | null;
|
|
6395
6581
|
guildMsg: string;
|
|
6396
6582
|
placeholderMsg: string;
|
|
6397
6583
|
developerName: string;
|
|
@@ -6585,18 +6771,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6585
6771
|
createdAt: z.ZodString;
|
|
6586
6772
|
updatedAt: z.ZodString;
|
|
6587
6773
|
}, "strip", z.ZodTypeAny, {
|
|
6774
|
+
type: "claude" | "codex";
|
|
6588
6775
|
id: string;
|
|
6589
6776
|
avatar: string | null;
|
|
6590
|
-
type: "claude" | "codex";
|
|
6591
|
-
userId: string;
|
|
6592
6777
|
createdAt: string;
|
|
6593
|
-
|
|
6594
|
-
name: string;
|
|
6595
|
-
description: string | null;
|
|
6778
|
+
userId: string;
|
|
6596
6779
|
permissions: {
|
|
6597
6780
|
role: string;
|
|
6598
6781
|
paths?: string[] | undefined;
|
|
6599
6782
|
} | null;
|
|
6783
|
+
updatedAt: string;
|
|
6784
|
+
name: string;
|
|
6785
|
+
description: string | null;
|
|
6600
6786
|
enable: boolean;
|
|
6601
6787
|
config: {
|
|
6602
6788
|
signature?: string | undefined;
|
|
@@ -6634,18 +6820,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6634
6820
|
publishedAgentId: string | null;
|
|
6635
6821
|
sourceTaskId: string | null;
|
|
6636
6822
|
}, {
|
|
6823
|
+
type: "claude" | "codex";
|
|
6637
6824
|
id: string;
|
|
6638
6825
|
avatar: string | null;
|
|
6639
|
-
type: "claude" | "codex";
|
|
6640
|
-
userId: string;
|
|
6641
6826
|
createdAt: string;
|
|
6642
|
-
|
|
6643
|
-
name: string;
|
|
6644
|
-
description: string | null;
|
|
6827
|
+
userId: string;
|
|
6645
6828
|
permissions: {
|
|
6646
6829
|
role: string;
|
|
6647
6830
|
paths?: string[] | undefined;
|
|
6648
6831
|
} | null;
|
|
6832
|
+
updatedAt: string;
|
|
6833
|
+
name: string;
|
|
6834
|
+
description: string | null;
|
|
6649
6835
|
enable: boolean;
|
|
6650
6836
|
config: {
|
|
6651
6837
|
signature?: string | undefined;
|
|
@@ -6685,17 +6871,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6685
6871
|
}>, "many">;
|
|
6686
6872
|
}, "strip", z.ZodTypeAny, {
|
|
6687
6873
|
agents: {
|
|
6874
|
+
type: "claude" | "codex";
|
|
6688
6875
|
id: string;
|
|
6689
6876
|
avatar: string | null;
|
|
6690
|
-
|
|
6877
|
+
signature: string | null;
|
|
6691
6878
|
userId: string;
|
|
6692
|
-
name: string;
|
|
6693
|
-
description: string | null;
|
|
6694
6879
|
permissions: {
|
|
6695
6880
|
role: string;
|
|
6696
6881
|
paths?: string[] | undefined;
|
|
6697
6882
|
} | null;
|
|
6698
|
-
|
|
6883
|
+
name: string;
|
|
6884
|
+
description: string | null;
|
|
6699
6885
|
guildMsg: string;
|
|
6700
6886
|
placeholderMsg: string;
|
|
6701
6887
|
developerName: string;
|
|
@@ -6726,18 +6912,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6726
6912
|
} | null;
|
|
6727
6913
|
}[];
|
|
6728
6914
|
draftAgents: {
|
|
6915
|
+
type: "claude" | "codex";
|
|
6729
6916
|
id: string;
|
|
6730
6917
|
avatar: string | null;
|
|
6731
|
-
type: "claude" | "codex";
|
|
6732
|
-
userId: string;
|
|
6733
6918
|
createdAt: string;
|
|
6734
|
-
|
|
6735
|
-
name: string;
|
|
6736
|
-
description: string | null;
|
|
6919
|
+
userId: string;
|
|
6737
6920
|
permissions: {
|
|
6738
6921
|
role: string;
|
|
6739
6922
|
paths?: string[] | undefined;
|
|
6740
6923
|
} | null;
|
|
6924
|
+
updatedAt: string;
|
|
6925
|
+
name: string;
|
|
6926
|
+
description: string | null;
|
|
6741
6927
|
enable: boolean;
|
|
6742
6928
|
config: {
|
|
6743
6929
|
signature?: string | undefined;
|
|
@@ -6777,17 +6963,17 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6777
6963
|
}[];
|
|
6778
6964
|
}, {
|
|
6779
6965
|
agents: {
|
|
6966
|
+
type: "claude" | "codex";
|
|
6780
6967
|
id: string;
|
|
6781
6968
|
avatar: string | null;
|
|
6782
|
-
|
|
6969
|
+
signature: string | null;
|
|
6783
6970
|
userId: string;
|
|
6784
|
-
name: string;
|
|
6785
|
-
description: string | null;
|
|
6786
6971
|
permissions: {
|
|
6787
6972
|
role: string;
|
|
6788
6973
|
paths?: string[] | undefined;
|
|
6789
6974
|
} | null;
|
|
6790
|
-
|
|
6975
|
+
name: string;
|
|
6976
|
+
description: string | null;
|
|
6791
6977
|
guildMsg: string;
|
|
6792
6978
|
placeholderMsg: string;
|
|
6793
6979
|
developerName: string;
|
|
@@ -6818,18 +7004,18 @@ declare const GetUserAgentsResponseSchema: z.ZodObject<{
|
|
|
6818
7004
|
} | null;
|
|
6819
7005
|
}[];
|
|
6820
7006
|
draftAgents: {
|
|
7007
|
+
type: "claude" | "codex";
|
|
6821
7008
|
id: string;
|
|
6822
7009
|
avatar: string | null;
|
|
6823
|
-
type: "claude" | "codex";
|
|
6824
|
-
userId: string;
|
|
6825
7010
|
createdAt: string;
|
|
6826
|
-
|
|
6827
|
-
name: string;
|
|
6828
|
-
description: string | null;
|
|
7011
|
+
userId: string;
|
|
6829
7012
|
permissions: {
|
|
6830
7013
|
role: string;
|
|
6831
7014
|
paths?: string[] | undefined;
|
|
6832
7015
|
} | null;
|
|
7016
|
+
updatedAt: string;
|
|
7017
|
+
name: string;
|
|
7018
|
+
description: string | null;
|
|
6833
7019
|
enable: boolean;
|
|
6834
7020
|
config: {
|
|
6835
7021
|
signature?: string | undefined;
|
|
@@ -6949,20 +7135,20 @@ declare const LocalMachineSchema: z.ZodObject<{
|
|
|
6949
7135
|
createdAt: z.ZodString;
|
|
6950
7136
|
updatedAt: z.ZodString;
|
|
6951
7137
|
}, "strip", z.ZodTypeAny, {
|
|
6952
|
-
id: string;
|
|
6953
7138
|
status: string;
|
|
6954
|
-
|
|
7139
|
+
id: string;
|
|
6955
7140
|
createdAt: string;
|
|
7141
|
+
dataEncryptionKey: string;
|
|
6956
7142
|
updatedAt: string;
|
|
6957
7143
|
owner: string;
|
|
6958
7144
|
metadata: string | null;
|
|
6959
7145
|
approval: string;
|
|
6960
7146
|
controlPort: number | null;
|
|
6961
7147
|
}, {
|
|
6962
|
-
id: string;
|
|
6963
7148
|
status: string;
|
|
6964
|
-
|
|
7149
|
+
id: string;
|
|
6965
7150
|
createdAt: string;
|
|
7151
|
+
dataEncryptionKey: string;
|
|
6966
7152
|
updatedAt: string;
|
|
6967
7153
|
owner: string;
|
|
6968
7154
|
metadata: string | null;
|
|
@@ -6982,18 +7168,18 @@ declare const CloudMachineSchema: z.ZodObject<{
|
|
|
6982
7168
|
createdAt: z.ZodString;
|
|
6983
7169
|
updatedAt: z.ZodString;
|
|
6984
7170
|
}, "strip", z.ZodTypeAny, {
|
|
6985
|
-
id: string;
|
|
6986
7171
|
status: string;
|
|
6987
|
-
|
|
7172
|
+
id: string;
|
|
6988
7173
|
createdAt: string;
|
|
7174
|
+
cloudId: string;
|
|
6989
7175
|
updatedAt: string;
|
|
6990
7176
|
metadata: string | null;
|
|
6991
7177
|
deviceId: string;
|
|
6992
7178
|
}, {
|
|
6993
|
-
id: string;
|
|
6994
7179
|
status: string;
|
|
6995
|
-
|
|
7180
|
+
id: string;
|
|
6996
7181
|
createdAt: string;
|
|
7182
|
+
cloudId: string;
|
|
6997
7183
|
updatedAt: string;
|
|
6998
7184
|
metadata: string | null;
|
|
6999
7185
|
deviceId: string;
|
|
@@ -7018,50 +7204,50 @@ declare const CloudSchema: z.ZodObject<{
|
|
|
7018
7204
|
createdAt: z.ZodString;
|
|
7019
7205
|
updatedAt: z.ZodString;
|
|
7020
7206
|
}, "strip", z.ZodTypeAny, {
|
|
7021
|
-
id: string;
|
|
7022
7207
|
status: string;
|
|
7023
|
-
|
|
7208
|
+
id: string;
|
|
7024
7209
|
createdAt: string;
|
|
7210
|
+
cloudId: string;
|
|
7025
7211
|
updatedAt: string;
|
|
7026
7212
|
metadata: string | null;
|
|
7027
7213
|
deviceId: string;
|
|
7028
7214
|
}, {
|
|
7029
|
-
id: string;
|
|
7030
7215
|
status: string;
|
|
7031
|
-
|
|
7216
|
+
id: string;
|
|
7032
7217
|
createdAt: string;
|
|
7218
|
+
cloudId: string;
|
|
7033
7219
|
updatedAt: string;
|
|
7034
7220
|
metadata: string | null;
|
|
7035
7221
|
deviceId: string;
|
|
7036
7222
|
}>, "many">>;
|
|
7037
7223
|
}, "strip", z.ZodTypeAny, {
|
|
7038
|
-
id: string;
|
|
7039
7224
|
type: "public" | "private";
|
|
7225
|
+
id: string;
|
|
7040
7226
|
createdAt: string;
|
|
7041
7227
|
updatedAt: string;
|
|
7042
7228
|
name: string;
|
|
7043
7229
|
owner: string;
|
|
7044
7230
|
machines?: {
|
|
7045
|
-
id: string;
|
|
7046
7231
|
status: string;
|
|
7047
|
-
|
|
7232
|
+
id: string;
|
|
7048
7233
|
createdAt: string;
|
|
7234
|
+
cloudId: string;
|
|
7049
7235
|
updatedAt: string;
|
|
7050
7236
|
metadata: string | null;
|
|
7051
7237
|
deviceId: string;
|
|
7052
7238
|
}[] | undefined;
|
|
7053
7239
|
}, {
|
|
7054
|
-
id: string;
|
|
7055
7240
|
type: "public" | "private";
|
|
7241
|
+
id: string;
|
|
7056
7242
|
createdAt: string;
|
|
7057
7243
|
updatedAt: string;
|
|
7058
7244
|
name: string;
|
|
7059
7245
|
owner: string;
|
|
7060
7246
|
machines?: {
|
|
7061
|
-
id: string;
|
|
7062
7247
|
status: string;
|
|
7063
|
-
|
|
7248
|
+
id: string;
|
|
7064
7249
|
createdAt: string;
|
|
7250
|
+
cloudId: string;
|
|
7065
7251
|
updatedAt: string;
|
|
7066
7252
|
metadata: string | null;
|
|
7067
7253
|
deviceId: string;
|
|
@@ -7088,50 +7274,50 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7088
7274
|
createdAt: z.ZodString;
|
|
7089
7275
|
updatedAt: z.ZodString;
|
|
7090
7276
|
}, "strip", z.ZodTypeAny, {
|
|
7091
|
-
id: string;
|
|
7092
7277
|
status: string;
|
|
7093
|
-
|
|
7278
|
+
id: string;
|
|
7094
7279
|
createdAt: string;
|
|
7280
|
+
cloudId: string;
|
|
7095
7281
|
updatedAt: string;
|
|
7096
7282
|
metadata: string | null;
|
|
7097
7283
|
deviceId: string;
|
|
7098
7284
|
}, {
|
|
7099
|
-
id: string;
|
|
7100
7285
|
status: string;
|
|
7101
|
-
|
|
7286
|
+
id: string;
|
|
7102
7287
|
createdAt: string;
|
|
7288
|
+
cloudId: string;
|
|
7103
7289
|
updatedAt: string;
|
|
7104
7290
|
metadata: string | null;
|
|
7105
7291
|
deviceId: string;
|
|
7106
7292
|
}>, "many">>;
|
|
7107
7293
|
}, "strip", z.ZodTypeAny, {
|
|
7108
|
-
id: string;
|
|
7109
7294
|
type: "public" | "private";
|
|
7295
|
+
id: string;
|
|
7110
7296
|
createdAt: string;
|
|
7111
7297
|
updatedAt: string;
|
|
7112
7298
|
name: string;
|
|
7113
7299
|
owner: string;
|
|
7114
7300
|
machines?: {
|
|
7115
|
-
id: string;
|
|
7116
7301
|
status: string;
|
|
7117
|
-
|
|
7302
|
+
id: string;
|
|
7118
7303
|
createdAt: string;
|
|
7304
|
+
cloudId: string;
|
|
7119
7305
|
updatedAt: string;
|
|
7120
7306
|
metadata: string | null;
|
|
7121
7307
|
deviceId: string;
|
|
7122
7308
|
}[] | undefined;
|
|
7123
7309
|
}, {
|
|
7124
|
-
id: string;
|
|
7125
7310
|
type: "public" | "private";
|
|
7311
|
+
id: string;
|
|
7126
7312
|
createdAt: string;
|
|
7127
7313
|
updatedAt: string;
|
|
7128
7314
|
name: string;
|
|
7129
7315
|
owner: string;
|
|
7130
7316
|
machines?: {
|
|
7131
|
-
id: string;
|
|
7132
7317
|
status: string;
|
|
7133
|
-
|
|
7318
|
+
id: string;
|
|
7134
7319
|
createdAt: string;
|
|
7320
|
+
cloudId: string;
|
|
7135
7321
|
updatedAt: string;
|
|
7136
7322
|
metadata: string | null;
|
|
7137
7323
|
deviceId: string;
|
|
@@ -7148,20 +7334,20 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7148
7334
|
createdAt: z.ZodString;
|
|
7149
7335
|
updatedAt: z.ZodString;
|
|
7150
7336
|
}, "strip", z.ZodTypeAny, {
|
|
7151
|
-
id: string;
|
|
7152
7337
|
status: string;
|
|
7153
|
-
|
|
7338
|
+
id: string;
|
|
7154
7339
|
createdAt: string;
|
|
7340
|
+
dataEncryptionKey: string;
|
|
7155
7341
|
updatedAt: string;
|
|
7156
7342
|
owner: string;
|
|
7157
7343
|
metadata: string | null;
|
|
7158
7344
|
approval: string;
|
|
7159
7345
|
controlPort: number | null;
|
|
7160
7346
|
}, {
|
|
7161
|
-
id: string;
|
|
7162
7347
|
status: string;
|
|
7163
|
-
|
|
7348
|
+
id: string;
|
|
7164
7349
|
createdAt: string;
|
|
7350
|
+
dataEncryptionKey: string;
|
|
7165
7351
|
updatedAt: string;
|
|
7166
7352
|
owner: string;
|
|
7167
7353
|
metadata: string | null;
|
|
@@ -7170,27 +7356,27 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7170
7356
|
}>, "many">;
|
|
7171
7357
|
}, "strip", z.ZodTypeAny, {
|
|
7172
7358
|
clouds: {
|
|
7173
|
-
id: string;
|
|
7174
7359
|
type: "public" | "private";
|
|
7360
|
+
id: string;
|
|
7175
7361
|
createdAt: string;
|
|
7176
7362
|
updatedAt: string;
|
|
7177
7363
|
name: string;
|
|
7178
7364
|
owner: string;
|
|
7179
7365
|
machines?: {
|
|
7180
|
-
id: string;
|
|
7181
7366
|
status: string;
|
|
7182
|
-
|
|
7367
|
+
id: string;
|
|
7183
7368
|
createdAt: string;
|
|
7369
|
+
cloudId: string;
|
|
7184
7370
|
updatedAt: string;
|
|
7185
7371
|
metadata: string | null;
|
|
7186
7372
|
deviceId: string;
|
|
7187
7373
|
}[] | undefined;
|
|
7188
7374
|
}[];
|
|
7189
7375
|
localMachines: {
|
|
7190
|
-
id: string;
|
|
7191
7376
|
status: string;
|
|
7192
|
-
|
|
7377
|
+
id: string;
|
|
7193
7378
|
createdAt: string;
|
|
7379
|
+
dataEncryptionKey: string;
|
|
7194
7380
|
updatedAt: string;
|
|
7195
7381
|
owner: string;
|
|
7196
7382
|
metadata: string | null;
|
|
@@ -7199,27 +7385,27 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
|
|
|
7199
7385
|
}[];
|
|
7200
7386
|
}, {
|
|
7201
7387
|
clouds: {
|
|
7202
|
-
id: string;
|
|
7203
7388
|
type: "public" | "private";
|
|
7389
|
+
id: string;
|
|
7204
7390
|
createdAt: string;
|
|
7205
7391
|
updatedAt: string;
|
|
7206
7392
|
name: string;
|
|
7207
7393
|
owner: string;
|
|
7208
7394
|
machines?: {
|
|
7209
|
-
id: string;
|
|
7210
7395
|
status: string;
|
|
7211
|
-
|
|
7396
|
+
id: string;
|
|
7212
7397
|
createdAt: string;
|
|
7398
|
+
cloudId: string;
|
|
7213
7399
|
updatedAt: string;
|
|
7214
7400
|
metadata: string | null;
|
|
7215
7401
|
deviceId: string;
|
|
7216
7402
|
}[] | undefined;
|
|
7217
7403
|
}[];
|
|
7218
7404
|
localMachines: {
|
|
7219
|
-
id: string;
|
|
7220
7405
|
status: string;
|
|
7221
|
-
|
|
7406
|
+
id: string;
|
|
7222
7407
|
createdAt: string;
|
|
7408
|
+
dataEncryptionKey: string;
|
|
7223
7409
|
updatedAt: string;
|
|
7224
7410
|
owner: string;
|
|
7225
7411
|
metadata: string | null;
|
|
@@ -7467,12 +7653,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
|
|
|
7467
7653
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7468
7654
|
fileIds: z.ZodOptional<z.ZodString>;
|
|
7469
7655
|
}, "strip", z.ZodTypeAny, {
|
|
7470
|
-
limit: number;
|
|
7471
7656
|
page: number;
|
|
7657
|
+
limit: number;
|
|
7472
7658
|
fileIds?: string | undefined;
|
|
7473
7659
|
}, {
|
|
7474
|
-
limit?: number | undefined;
|
|
7475
7660
|
page?: number | undefined;
|
|
7661
|
+
limit?: number | undefined;
|
|
7476
7662
|
fileIds?: string | undefined;
|
|
7477
7663
|
}>;
|
|
7478
7664
|
type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
|
|
@@ -7503,6 +7689,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7503
7689
|
contentType: string;
|
|
7504
7690
|
}>, "many">;
|
|
7505
7691
|
}, "strip", z.ZodTypeAny, {
|
|
7692
|
+
total: number;
|
|
7693
|
+
page: number;
|
|
7694
|
+
limit: number;
|
|
7506
7695
|
files: {
|
|
7507
7696
|
createdAt: string;
|
|
7508
7697
|
name: string;
|
|
@@ -7510,10 +7699,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7510
7699
|
fileId: string;
|
|
7511
7700
|
contentType: string;
|
|
7512
7701
|
}[];
|
|
7513
|
-
|
|
7702
|
+
}, {
|
|
7514
7703
|
total: number;
|
|
7515
7704
|
page: number;
|
|
7516
|
-
|
|
7705
|
+
limit: number;
|
|
7517
7706
|
files: {
|
|
7518
7707
|
createdAt: string;
|
|
7519
7708
|
name: string;
|
|
@@ -7521,9 +7710,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
|
|
|
7521
7710
|
fileId: string;
|
|
7522
7711
|
contentType: string;
|
|
7523
7712
|
}[];
|
|
7524
|
-
limit: number;
|
|
7525
|
-
total: number;
|
|
7526
|
-
page: number;
|
|
7527
7713
|
}>;
|
|
7528
7714
|
type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
|
|
7529
7715
|
|
|
@@ -8543,8 +8729,8 @@ declare const CreditsPackageSchema: z.ZodObject<{
|
|
|
8543
8729
|
updatedAt: z.ZodString;
|
|
8544
8730
|
}, "strip", z.ZodTypeAny, {
|
|
8545
8731
|
id: string;
|
|
8546
|
-
userId: string;
|
|
8547
8732
|
createdAt: string;
|
|
8733
|
+
userId: string;
|
|
8548
8734
|
updatedAt: string;
|
|
8549
8735
|
name: string;
|
|
8550
8736
|
credit: number;
|
|
@@ -8553,8 +8739,8 @@ declare const CreditsPackageSchema: z.ZodObject<{
|
|
|
8553
8739
|
expiredAt: string;
|
|
8554
8740
|
}, {
|
|
8555
8741
|
id: string;
|
|
8556
|
-
userId: string;
|
|
8557
8742
|
createdAt: string;
|
|
8743
|
+
userId: string;
|
|
8558
8744
|
updatedAt: string;
|
|
8559
8745
|
name: string;
|
|
8560
8746
|
credit: number;
|
|
@@ -8596,8 +8782,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8596
8782
|
updatedAt: z.ZodString;
|
|
8597
8783
|
}, "strip", z.ZodTypeAny, {
|
|
8598
8784
|
id: string;
|
|
8599
|
-
userId: string;
|
|
8600
8785
|
createdAt: string;
|
|
8786
|
+
userId: string;
|
|
8601
8787
|
updatedAt: string;
|
|
8602
8788
|
name: string;
|
|
8603
8789
|
credit: number;
|
|
@@ -8606,8 +8792,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8606
8792
|
expiredAt: string;
|
|
8607
8793
|
}, {
|
|
8608
8794
|
id: string;
|
|
8609
|
-
userId: string;
|
|
8610
8795
|
createdAt: string;
|
|
8796
|
+
userId: string;
|
|
8611
8797
|
updatedAt: string;
|
|
8612
8798
|
name: string;
|
|
8613
8799
|
credit: number;
|
|
@@ -8620,8 +8806,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8620
8806
|
total: number;
|
|
8621
8807
|
packages: {
|
|
8622
8808
|
id: string;
|
|
8623
|
-
userId: string;
|
|
8624
8809
|
createdAt: string;
|
|
8810
|
+
userId: string;
|
|
8625
8811
|
updatedAt: string;
|
|
8626
8812
|
name: string;
|
|
8627
8813
|
credit: number;
|
|
@@ -8633,8 +8819,8 @@ declare const ListPackagesResponseSchema: z.ZodObject<{
|
|
|
8633
8819
|
total: number;
|
|
8634
8820
|
packages: {
|
|
8635
8821
|
id: string;
|
|
8636
|
-
userId: string;
|
|
8637
8822
|
createdAt: string;
|
|
8823
|
+
userId: string;
|
|
8638
8824
|
updatedAt: string;
|
|
8639
8825
|
name: string;
|
|
8640
8826
|
credit: number;
|
|
@@ -8662,10 +8848,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
8662
8848
|
createdAt: z.ZodString;
|
|
8663
8849
|
transactionType: z.ZodLiteral<"charge">;
|
|
8664
8850
|
}, "strip", z.ZodTypeAny, {
|
|
8665
|
-
id: string;
|
|
8666
8851
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8667
|
-
|
|
8852
|
+
id: string;
|
|
8668
8853
|
createdAt: string;
|
|
8854
|
+
userId: string;
|
|
8669
8855
|
creditsPackageId: string;
|
|
8670
8856
|
amount: number;
|
|
8671
8857
|
balanceBefore: number;
|
|
@@ -8676,10 +8862,10 @@ declare const ChargeTransactionSchema: z.ZodObject<{
|
|
|
8676
8862
|
metadata?: any;
|
|
8677
8863
|
packageName?: string | undefined;
|
|
8678
8864
|
}, {
|
|
8679
|
-
id: string;
|
|
8680
8865
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8681
|
-
|
|
8866
|
+
id: string;
|
|
8682
8867
|
createdAt: string;
|
|
8868
|
+
userId: string;
|
|
8683
8869
|
creditsPackageId: string;
|
|
8684
8870
|
amount: number;
|
|
8685
8871
|
balanceBefore: number;
|
|
@@ -8709,10 +8895,10 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
|
|
|
8709
8895
|
transactionType: z.ZodLiteral<"consume">;
|
|
8710
8896
|
}, "strip", z.ZodTypeAny, {
|
|
8711
8897
|
id: string;
|
|
8898
|
+
createdAt: string;
|
|
8899
|
+
userId: string;
|
|
8712
8900
|
taskId: string;
|
|
8713
8901
|
agentId: string;
|
|
8714
|
-
userId: string;
|
|
8715
|
-
createdAt: string;
|
|
8716
8902
|
creditsPackageId: string;
|
|
8717
8903
|
amount: number;
|
|
8718
8904
|
balanceBefore: number;
|
|
@@ -8722,10 +8908,10 @@ declare const ConsumeTransactionSchema: z.ZodObject<{
|
|
|
8722
8908
|
packageName?: string | undefined;
|
|
8723
8909
|
}, {
|
|
8724
8910
|
id: string;
|
|
8911
|
+
createdAt: string;
|
|
8912
|
+
userId: string;
|
|
8725
8913
|
taskId: string;
|
|
8726
8914
|
agentId: string;
|
|
8727
|
-
userId: string;
|
|
8728
|
-
createdAt: string;
|
|
8729
8915
|
creditsPackageId: string;
|
|
8730
8916
|
amount: number;
|
|
8731
8917
|
balanceBefore: number;
|
|
@@ -8753,10 +8939,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8753
8939
|
createdAt: z.ZodString;
|
|
8754
8940
|
transactionType: z.ZodLiteral<"charge">;
|
|
8755
8941
|
}, "strip", z.ZodTypeAny, {
|
|
8756
|
-
id: string;
|
|
8757
8942
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8758
|
-
|
|
8943
|
+
id: string;
|
|
8759
8944
|
createdAt: string;
|
|
8945
|
+
userId: string;
|
|
8760
8946
|
creditsPackageId: string;
|
|
8761
8947
|
amount: number;
|
|
8762
8948
|
balanceBefore: number;
|
|
@@ -8767,10 +8953,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8767
8953
|
metadata?: any;
|
|
8768
8954
|
packageName?: string | undefined;
|
|
8769
8955
|
}, {
|
|
8770
|
-
id: string;
|
|
8771
8956
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8772
|
-
|
|
8957
|
+
id: string;
|
|
8773
8958
|
createdAt: string;
|
|
8959
|
+
userId: string;
|
|
8774
8960
|
creditsPackageId: string;
|
|
8775
8961
|
amount: number;
|
|
8776
8962
|
balanceBefore: number;
|
|
@@ -8795,10 +8981,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8795
8981
|
transactionType: z.ZodLiteral<"consume">;
|
|
8796
8982
|
}, "strip", z.ZodTypeAny, {
|
|
8797
8983
|
id: string;
|
|
8984
|
+
createdAt: string;
|
|
8985
|
+
userId: string;
|
|
8798
8986
|
taskId: string;
|
|
8799
8987
|
agentId: string;
|
|
8800
|
-
userId: string;
|
|
8801
|
-
createdAt: string;
|
|
8802
8988
|
creditsPackageId: string;
|
|
8803
8989
|
amount: number;
|
|
8804
8990
|
balanceBefore: number;
|
|
@@ -8808,10 +8994,10 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
8808
8994
|
packageName?: string | undefined;
|
|
8809
8995
|
}, {
|
|
8810
8996
|
id: string;
|
|
8997
|
+
createdAt: string;
|
|
8998
|
+
userId: string;
|
|
8811
8999
|
taskId: string;
|
|
8812
9000
|
agentId: string;
|
|
8813
|
-
userId: string;
|
|
8814
|
-
createdAt: string;
|
|
8815
9001
|
creditsPackageId: string;
|
|
8816
9002
|
amount: number;
|
|
8817
9003
|
balanceBefore: number;
|
|
@@ -8863,10 +9049,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8863
9049
|
createdAt: z.ZodString;
|
|
8864
9050
|
transactionType: z.ZodLiteral<"charge">;
|
|
8865
9051
|
}, "strip", z.ZodTypeAny, {
|
|
8866
|
-
id: string;
|
|
8867
9052
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8868
|
-
|
|
9053
|
+
id: string;
|
|
8869
9054
|
createdAt: string;
|
|
9055
|
+
userId: string;
|
|
8870
9056
|
creditsPackageId: string;
|
|
8871
9057
|
amount: number;
|
|
8872
9058
|
balanceBefore: number;
|
|
@@ -8877,10 +9063,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8877
9063
|
metadata?: any;
|
|
8878
9064
|
packageName?: string | undefined;
|
|
8879
9065
|
}, {
|
|
8880
|
-
id: string;
|
|
8881
9066
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8882
|
-
|
|
9067
|
+
id: string;
|
|
8883
9068
|
createdAt: string;
|
|
9069
|
+
userId: string;
|
|
8884
9070
|
creditsPackageId: string;
|
|
8885
9071
|
amount: number;
|
|
8886
9072
|
balanceBefore: number;
|
|
@@ -8905,10 +9091,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8905
9091
|
transactionType: z.ZodLiteral<"consume">;
|
|
8906
9092
|
}, "strip", z.ZodTypeAny, {
|
|
8907
9093
|
id: string;
|
|
9094
|
+
createdAt: string;
|
|
9095
|
+
userId: string;
|
|
8908
9096
|
taskId: string;
|
|
8909
9097
|
agentId: string;
|
|
8910
|
-
userId: string;
|
|
8911
|
-
createdAt: string;
|
|
8912
9098
|
creditsPackageId: string;
|
|
8913
9099
|
amount: number;
|
|
8914
9100
|
balanceBefore: number;
|
|
@@ -8918,10 +9104,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8918
9104
|
packageName?: string | undefined;
|
|
8919
9105
|
}, {
|
|
8920
9106
|
id: string;
|
|
9107
|
+
createdAt: string;
|
|
9108
|
+
userId: string;
|
|
8921
9109
|
taskId: string;
|
|
8922
9110
|
agentId: string;
|
|
8923
|
-
userId: string;
|
|
8924
|
-
createdAt: string;
|
|
8925
9111
|
creditsPackageId: string;
|
|
8926
9112
|
amount: number;
|
|
8927
9113
|
balanceBefore: number;
|
|
@@ -8934,10 +9120,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8934
9120
|
}, "strip", z.ZodTypeAny, {
|
|
8935
9121
|
total: number;
|
|
8936
9122
|
transactions: ({
|
|
8937
|
-
id: string;
|
|
8938
9123
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8939
|
-
|
|
9124
|
+
id: string;
|
|
8940
9125
|
createdAt: string;
|
|
9126
|
+
userId: string;
|
|
8941
9127
|
creditsPackageId: string;
|
|
8942
9128
|
amount: number;
|
|
8943
9129
|
balanceBefore: number;
|
|
@@ -8949,10 +9135,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8949
9135
|
packageName?: string | undefined;
|
|
8950
9136
|
} | {
|
|
8951
9137
|
id: string;
|
|
9138
|
+
createdAt: string;
|
|
9139
|
+
userId: string;
|
|
8952
9140
|
taskId: string;
|
|
8953
9141
|
agentId: string;
|
|
8954
|
-
userId: string;
|
|
8955
|
-
createdAt: string;
|
|
8956
9142
|
creditsPackageId: string;
|
|
8957
9143
|
amount: number;
|
|
8958
9144
|
balanceBefore: number;
|
|
@@ -8964,10 +9150,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8964
9150
|
}, {
|
|
8965
9151
|
total: number;
|
|
8966
9152
|
transactions: ({
|
|
8967
|
-
id: string;
|
|
8968
9153
|
type: "user_recharge" | "system_bonus" | "refund";
|
|
8969
|
-
|
|
9154
|
+
id: string;
|
|
8970
9155
|
createdAt: string;
|
|
9156
|
+
userId: string;
|
|
8971
9157
|
creditsPackageId: string;
|
|
8972
9158
|
amount: number;
|
|
8973
9159
|
balanceBefore: number;
|
|
@@ -8979,10 +9165,10 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
|
|
|
8979
9165
|
packageName?: string | undefined;
|
|
8980
9166
|
} | {
|
|
8981
9167
|
id: string;
|
|
9168
|
+
createdAt: string;
|
|
9169
|
+
userId: string;
|
|
8982
9170
|
taskId: string;
|
|
8983
9171
|
agentId: string;
|
|
8984
|
-
userId: string;
|
|
8985
|
-
createdAt: string;
|
|
8986
9172
|
creditsPackageId: string;
|
|
8987
9173
|
amount: number;
|
|
8988
9174
|
balanceBefore: number;
|
|
@@ -9012,10 +9198,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9012
9198
|
transactionType: z.ZodLiteral<"consume">;
|
|
9013
9199
|
}, "strip", z.ZodTypeAny, {
|
|
9014
9200
|
id: string;
|
|
9201
|
+
createdAt: string;
|
|
9202
|
+
userId: string;
|
|
9015
9203
|
taskId: string;
|
|
9016
9204
|
agentId: string;
|
|
9017
|
-
userId: string;
|
|
9018
|
-
createdAt: string;
|
|
9019
9205
|
creditsPackageId: string;
|
|
9020
9206
|
amount: number;
|
|
9021
9207
|
balanceBefore: number;
|
|
@@ -9025,10 +9211,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9025
9211
|
packageName?: string | undefined;
|
|
9026
9212
|
}, {
|
|
9027
9213
|
id: string;
|
|
9214
|
+
createdAt: string;
|
|
9215
|
+
userId: string;
|
|
9028
9216
|
taskId: string;
|
|
9029
9217
|
agentId: string;
|
|
9030
|
-
userId: string;
|
|
9031
|
-
createdAt: string;
|
|
9032
9218
|
creditsPackageId: string;
|
|
9033
9219
|
amount: number;
|
|
9034
9220
|
balanceBefore: number;
|
|
@@ -9042,10 +9228,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9042
9228
|
total: number;
|
|
9043
9229
|
transactions: {
|
|
9044
9230
|
id: string;
|
|
9231
|
+
createdAt: string;
|
|
9232
|
+
userId: string;
|
|
9045
9233
|
taskId: string;
|
|
9046
9234
|
agentId: string;
|
|
9047
|
-
userId: string;
|
|
9048
|
-
createdAt: string;
|
|
9049
9235
|
creditsPackageId: string;
|
|
9050
9236
|
amount: number;
|
|
9051
9237
|
balanceBefore: number;
|
|
@@ -9058,10 +9244,10 @@ declare const TaskTransactionsResponseSchema: z.ZodObject<{
|
|
|
9058
9244
|
total: number;
|
|
9059
9245
|
transactions: {
|
|
9060
9246
|
id: string;
|
|
9247
|
+
createdAt: string;
|
|
9248
|
+
userId: string;
|
|
9061
9249
|
taskId: string;
|
|
9062
9250
|
agentId: string;
|
|
9063
|
-
userId: string;
|
|
9064
|
-
createdAt: string;
|
|
9065
9251
|
creditsPackageId: string;
|
|
9066
9252
|
amount: number;
|
|
9067
9253
|
balanceBefore: number;
|
|
@@ -9129,8 +9315,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
9129
9315
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9130
9316
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9131
9317
|
}, "strip", z.ZodTypeAny, {
|
|
9132
|
-
id: string;
|
|
9133
9318
|
type: string;
|
|
9319
|
+
id: string;
|
|
9134
9320
|
createdAt: string;
|
|
9135
9321
|
updatedAt: string;
|
|
9136
9322
|
name: string;
|
|
@@ -9139,8 +9325,8 @@ declare const GitServerSchema: z.ZodObject<{
|
|
|
9139
9325
|
apiUrl: string;
|
|
9140
9326
|
oauthServerId: string | null;
|
|
9141
9327
|
}, {
|
|
9142
|
-
id: string;
|
|
9143
9328
|
type: string;
|
|
9329
|
+
id: string;
|
|
9144
9330
|
createdAt: string | Date;
|
|
9145
9331
|
updatedAt: string | Date;
|
|
9146
9332
|
name: string;
|
|
@@ -9164,8 +9350,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
9164
9350
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9165
9351
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9166
9352
|
}, "strip", z.ZodTypeAny, {
|
|
9167
|
-
id: string;
|
|
9168
9353
|
type: string;
|
|
9354
|
+
id: string;
|
|
9169
9355
|
createdAt: string;
|
|
9170
9356
|
updatedAt: string;
|
|
9171
9357
|
name: string;
|
|
@@ -9174,8 +9360,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
9174
9360
|
apiUrl: string;
|
|
9175
9361
|
oauthServerId: string | null;
|
|
9176
9362
|
}, {
|
|
9177
|
-
id: string;
|
|
9178
9363
|
type: string;
|
|
9364
|
+
id: string;
|
|
9179
9365
|
createdAt: string | Date;
|
|
9180
9366
|
updatedAt: string | Date;
|
|
9181
9367
|
name: string;
|
|
@@ -9199,8 +9385,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
9199
9385
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9200
9386
|
updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
|
|
9201
9387
|
}, "strip", z.ZodTypeAny, {
|
|
9202
|
-
id: string;
|
|
9203
9388
|
type: string;
|
|
9389
|
+
id: string;
|
|
9204
9390
|
createdAt: string;
|
|
9205
9391
|
updatedAt: string;
|
|
9206
9392
|
name: string;
|
|
@@ -9209,8 +9395,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
|
|
|
9209
9395
|
apiUrl: string;
|
|
9210
9396
|
oauthServerId: string | null;
|
|
9211
9397
|
}, {
|
|
9212
|
-
id: string;
|
|
9213
9398
|
type: string;
|
|
9399
|
+
id: string;
|
|
9214
9400
|
createdAt: string | Date;
|
|
9215
9401
|
updatedAt: string | Date;
|
|
9216
9402
|
name: string;
|
|
@@ -9259,33 +9445,34 @@ declare const RpcResponseSchema: z.ZodObject<{
|
|
|
9259
9445
|
code: z.ZodString;
|
|
9260
9446
|
message: z.ZodString;
|
|
9261
9447
|
}, "strip", z.ZodTypeAny, {
|
|
9262
|
-
code: string;
|
|
9263
9448
|
message: string;
|
|
9264
|
-
}, {
|
|
9265
9449
|
code: string;
|
|
9450
|
+
}, {
|
|
9266
9451
|
message: string;
|
|
9452
|
+
code: string;
|
|
9267
9453
|
}>>;
|
|
9268
9454
|
}, "strip", z.ZodTypeAny, {
|
|
9269
9455
|
success: boolean;
|
|
9270
|
-
status?: number | undefined;
|
|
9271
|
-
data?: any;
|
|
9272
9456
|
error?: {
|
|
9273
|
-
code: string;
|
|
9274
9457
|
message: string;
|
|
9458
|
+
code: string;
|
|
9275
9459
|
} | undefined;
|
|
9276
|
-
}, {
|
|
9277
|
-
success: boolean;
|
|
9278
9460
|
status?: number | undefined;
|
|
9279
9461
|
data?: any;
|
|
9462
|
+
}, {
|
|
9463
|
+
success: boolean;
|
|
9280
9464
|
error?: {
|
|
9281
|
-
code: string;
|
|
9282
9465
|
message: string;
|
|
9466
|
+
code: string;
|
|
9283
9467
|
} | undefined;
|
|
9468
|
+
status?: number | undefined;
|
|
9469
|
+
data?: any;
|
|
9284
9470
|
}>;
|
|
9285
9471
|
type RpcResponseData = z.infer<typeof RpcResponseSchema>;
|
|
9286
9472
|
|
|
9287
9473
|
/**
|
|
9288
9474
|
* WebSocket event schemas and mappings.
|
|
9475
|
+
* Updated to carry custom task titles in task lifecycle events.
|
|
9289
9476
|
*/
|
|
9290
9477
|
|
|
9291
9478
|
/**
|
|
@@ -9737,6 +9924,35 @@ declare const WorkerStatusRequestSchema: z.ZodObject<{
|
|
|
9737
9924
|
eventId: string;
|
|
9738
9925
|
}>;
|
|
9739
9926
|
type WorkerStatusRequestEventData = z.infer<typeof WorkerStatusRequestSchema>;
|
|
9927
|
+
declare const WorkerStatusValueSchema: z.ZodEnum<["worker-initializing", "worker-ready", "worker-running"]>;
|
|
9928
|
+
type WorkerStatusValue = z.infer<typeof WorkerStatusValueSchema>;
|
|
9929
|
+
declare const ChatWorkersStatusRequestSchema: z.ZodObject<{
|
|
9930
|
+
eventId: z.ZodString;
|
|
9931
|
+
} & {
|
|
9932
|
+
chatId: z.ZodString;
|
|
9933
|
+
}, "strip", z.ZodTypeAny, {
|
|
9934
|
+
chatId: string;
|
|
9935
|
+
eventId: string;
|
|
9936
|
+
}, {
|
|
9937
|
+
chatId: string;
|
|
9938
|
+
eventId: string;
|
|
9939
|
+
}>;
|
|
9940
|
+
type ChatWorkersStatusRequestEventData = z.infer<typeof ChatWorkersStatusRequestSchema>;
|
|
9941
|
+
declare const ChatWorkersStatusResponseSchema: z.ZodObject<{
|
|
9942
|
+
eventId: z.ZodString;
|
|
9943
|
+
} & {
|
|
9944
|
+
chatId: z.ZodString;
|
|
9945
|
+
workers: z.ZodRecord<z.ZodString, z.ZodEnum<["worker-initializing", "worker-ready", "worker-running"]>>;
|
|
9946
|
+
}, "strip", z.ZodTypeAny, {
|
|
9947
|
+
chatId: string;
|
|
9948
|
+
eventId: string;
|
|
9949
|
+
workers: Record<string, "worker-initializing" | "worker-ready" | "worker-running">;
|
|
9950
|
+
}, {
|
|
9951
|
+
chatId: string;
|
|
9952
|
+
eventId: string;
|
|
9953
|
+
workers: Record<string, "worker-initializing" | "worker-ready" | "worker-running">;
|
|
9954
|
+
}>;
|
|
9955
|
+
type ChatWorkersStatusResponseEventData = z.infer<typeof ChatWorkersStatusResponseSchema>;
|
|
9740
9956
|
declare const baseTaskSchema: z.ZodObject<{
|
|
9741
9957
|
eventId: z.ZodString;
|
|
9742
9958
|
} & {
|
|
@@ -9763,13 +9979,17 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9763
9979
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9764
9980
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9765
9981
|
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9982
|
+
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
|
|
9983
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
9766
9984
|
}, "strip", z.ZodTypeAny, {
|
|
9767
|
-
|
|
9985
|
+
userId: string;
|
|
9768
9986
|
taskId: string;
|
|
9987
|
+
chatId: string;
|
|
9769
9988
|
agentId: string;
|
|
9770
|
-
userId: string;
|
|
9771
9989
|
eventId: string;
|
|
9772
9990
|
agentType: string;
|
|
9991
|
+
taskType: "chat" | "work";
|
|
9992
|
+
customTitle?: string | undefined;
|
|
9773
9993
|
cwd?: string | undefined;
|
|
9774
9994
|
forceUserCwd?: boolean | undefined;
|
|
9775
9995
|
repositoryId?: string | undefined;
|
|
@@ -9789,11 +10009,12 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9789
10009
|
environmentVariables?: Record<string, string> | undefined;
|
|
9790
10010
|
chatAgents?: Record<string, string> | undefined;
|
|
9791
10011
|
}, {
|
|
9792
|
-
|
|
10012
|
+
userId: string;
|
|
9793
10013
|
taskId: string;
|
|
10014
|
+
chatId: string;
|
|
9794
10015
|
agentId: string;
|
|
9795
|
-
userId: string;
|
|
9796
10016
|
eventId: string;
|
|
10017
|
+
customTitle?: string | undefined;
|
|
9797
10018
|
cwd?: string | undefined;
|
|
9798
10019
|
forceUserCwd?: boolean | undefined;
|
|
9799
10020
|
repositoryId?: string | undefined;
|
|
@@ -9813,6 +10034,7 @@ declare const baseTaskSchema: z.ZodObject<{
|
|
|
9813
10034
|
maxTurns?: number | undefined;
|
|
9814
10035
|
environmentVariables?: Record<string, string> | undefined;
|
|
9815
10036
|
chatAgents?: Record<string, string> | undefined;
|
|
10037
|
+
taskType?: "chat" | "work" | undefined;
|
|
9816
10038
|
}>;
|
|
9817
10039
|
declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
9818
10040
|
eventId: z.ZodString;
|
|
@@ -9840,17 +10062,21 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9840
10062
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9841
10063
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9842
10064
|
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10065
|
+
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
|
|
10066
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
9843
10067
|
} & {
|
|
9844
10068
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
9845
10069
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9846
10070
|
}, "strip", z.ZodTypeAny, {
|
|
9847
|
-
|
|
10071
|
+
userId: string;
|
|
9848
10072
|
taskId: string;
|
|
10073
|
+
chatId: string;
|
|
9849
10074
|
agentId: string;
|
|
9850
|
-
userId: string;
|
|
9851
10075
|
eventId: string;
|
|
9852
10076
|
agentType: string;
|
|
10077
|
+
taskType: "chat" | "work";
|
|
9853
10078
|
message?: SDKUserMessage | undefined;
|
|
10079
|
+
customTitle?: string | undefined;
|
|
9854
10080
|
encryptedMessage?: string | undefined;
|
|
9855
10081
|
cwd?: string | undefined;
|
|
9856
10082
|
forceUserCwd?: boolean | undefined;
|
|
@@ -9871,12 +10097,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9871
10097
|
environmentVariables?: Record<string, string> | undefined;
|
|
9872
10098
|
chatAgents?: Record<string, string> | undefined;
|
|
9873
10099
|
}, {
|
|
9874
|
-
|
|
10100
|
+
userId: string;
|
|
9875
10101
|
taskId: string;
|
|
10102
|
+
chatId: string;
|
|
9876
10103
|
agentId: string;
|
|
9877
|
-
userId: string;
|
|
9878
10104
|
eventId: string;
|
|
9879
10105
|
message?: SDKUserMessage | undefined;
|
|
10106
|
+
customTitle?: string | undefined;
|
|
9880
10107
|
encryptedMessage?: string | undefined;
|
|
9881
10108
|
cwd?: string | undefined;
|
|
9882
10109
|
forceUserCwd?: boolean | undefined;
|
|
@@ -9897,14 +10124,17 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9897
10124
|
maxTurns?: number | undefined;
|
|
9898
10125
|
environmentVariables?: Record<string, string> | undefined;
|
|
9899
10126
|
chatAgents?: Record<string, string> | undefined;
|
|
10127
|
+
taskType?: "chat" | "work" | undefined;
|
|
9900
10128
|
}>, {
|
|
9901
|
-
|
|
10129
|
+
userId: string;
|
|
9902
10130
|
taskId: string;
|
|
10131
|
+
chatId: string;
|
|
9903
10132
|
agentId: string;
|
|
9904
|
-
userId: string;
|
|
9905
10133
|
eventId: string;
|
|
9906
10134
|
agentType: string;
|
|
10135
|
+
taskType: "chat" | "work";
|
|
9907
10136
|
message?: SDKUserMessage | undefined;
|
|
10137
|
+
customTitle?: string | undefined;
|
|
9908
10138
|
encryptedMessage?: string | undefined;
|
|
9909
10139
|
cwd?: string | undefined;
|
|
9910
10140
|
forceUserCwd?: boolean | undefined;
|
|
@@ -9925,12 +10155,13 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9925
10155
|
environmentVariables?: Record<string, string> | undefined;
|
|
9926
10156
|
chatAgents?: Record<string, string> | undefined;
|
|
9927
10157
|
}, {
|
|
9928
|
-
|
|
10158
|
+
userId: string;
|
|
9929
10159
|
taskId: string;
|
|
10160
|
+
chatId: string;
|
|
9930
10161
|
agentId: string;
|
|
9931
|
-
userId: string;
|
|
9932
10162
|
eventId: string;
|
|
9933
10163
|
message?: SDKUserMessage | undefined;
|
|
10164
|
+
customTitle?: string | undefined;
|
|
9934
10165
|
encryptedMessage?: string | undefined;
|
|
9935
10166
|
cwd?: string | undefined;
|
|
9936
10167
|
forceUserCwd?: boolean | undefined;
|
|
@@ -9951,6 +10182,7 @@ declare const createTaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
9951
10182
|
maxTurns?: number | undefined;
|
|
9952
10183
|
environmentVariables?: Record<string, string> | undefined;
|
|
9953
10184
|
chatAgents?: Record<string, string> | undefined;
|
|
10185
|
+
taskType?: "chat" | "work" | undefined;
|
|
9954
10186
|
}>;
|
|
9955
10187
|
type CreateTaskEventData = z.infer<typeof createTaskSchema>;
|
|
9956
10188
|
declare const resumeTaskSchema: z.ZodObject<{
|
|
@@ -9979,6 +10211,8 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9979
10211
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
9980
10212
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
9981
10213
|
chatAgents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10214
|
+
taskType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["chat", "work"]>>>;
|
|
10215
|
+
customTitle: z.ZodOptional<z.ZodString>;
|
|
9982
10216
|
} & {
|
|
9983
10217
|
agentSessionId: z.ZodString;
|
|
9984
10218
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -9986,14 +10220,16 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
9986
10220
|
message: z.ZodOptional<z.ZodType<SDKUserMessage, z.ZodTypeDef, SDKUserMessage>>;
|
|
9987
10221
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
9988
10222
|
}, "strip", z.ZodTypeAny, {
|
|
9989
|
-
|
|
10223
|
+
userId: string;
|
|
9990
10224
|
taskId: string;
|
|
10225
|
+
chatId: string;
|
|
9991
10226
|
agentId: string;
|
|
9992
|
-
userId: string;
|
|
9993
10227
|
agentSessionId: string;
|
|
9994
10228
|
eventId: string;
|
|
9995
10229
|
agentType: string;
|
|
10230
|
+
taskType: "chat" | "work";
|
|
9996
10231
|
message?: SDKUserMessage | undefined;
|
|
10232
|
+
customTitle?: string | undefined;
|
|
9997
10233
|
encryptedMessage?: string | undefined;
|
|
9998
10234
|
cwd?: string | undefined;
|
|
9999
10235
|
forceUserCwd?: boolean | undefined;
|
|
@@ -10016,13 +10252,14 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
10016
10252
|
event?: string | undefined;
|
|
10017
10253
|
eventData?: any;
|
|
10018
10254
|
}, {
|
|
10019
|
-
|
|
10255
|
+
userId: string;
|
|
10020
10256
|
taskId: string;
|
|
10257
|
+
chatId: string;
|
|
10021
10258
|
agentId: string;
|
|
10022
|
-
userId: string;
|
|
10023
10259
|
agentSessionId: string;
|
|
10024
10260
|
eventId: string;
|
|
10025
10261
|
message?: SDKUserMessage | undefined;
|
|
10262
|
+
customTitle?: string | undefined;
|
|
10026
10263
|
encryptedMessage?: string | undefined;
|
|
10027
10264
|
cwd?: string | undefined;
|
|
10028
10265
|
forceUserCwd?: boolean | undefined;
|
|
@@ -10043,6 +10280,7 @@ declare const resumeTaskSchema: z.ZodObject<{
|
|
|
10043
10280
|
maxTurns?: number | undefined;
|
|
10044
10281
|
environmentVariables?: Record<string, string> | undefined;
|
|
10045
10282
|
chatAgents?: Record<string, string> | undefined;
|
|
10283
|
+
taskType?: "chat" | "work" | undefined;
|
|
10046
10284
|
event?: string | undefined;
|
|
10047
10285
|
eventData?: any;
|
|
10048
10286
|
}>;
|
|
@@ -10056,17 +10294,17 @@ declare const cancelTaskSchema: z.ZodObject<{
|
|
|
10056
10294
|
agentId: z.ZodString;
|
|
10057
10295
|
reason: z.ZodOptional<z.ZodString>;
|
|
10058
10296
|
}, "strip", z.ZodTypeAny, {
|
|
10059
|
-
|
|
10297
|
+
userId: string;
|
|
10060
10298
|
taskId: string;
|
|
10299
|
+
chatId: string;
|
|
10061
10300
|
agentId: string;
|
|
10062
|
-
userId: string;
|
|
10063
10301
|
eventId: string;
|
|
10064
10302
|
reason?: string | undefined;
|
|
10065
10303
|
}, {
|
|
10066
|
-
|
|
10304
|
+
userId: string;
|
|
10067
10305
|
taskId: string;
|
|
10306
|
+
chatId: string;
|
|
10068
10307
|
agentId: string;
|
|
10069
|
-
userId: string;
|
|
10070
10308
|
eventId: string;
|
|
10071
10309
|
reason?: string | undefined;
|
|
10072
10310
|
}>;
|
|
@@ -10086,6 +10324,141 @@ declare const StopTaskSchema: z.ZodObject<{
|
|
|
10086
10324
|
reason?: string | undefined;
|
|
10087
10325
|
}>;
|
|
10088
10326
|
type StopTaskEventData = z.infer<typeof StopTaskSchema>;
|
|
10327
|
+
/**
|
|
10328
|
+
* Git stats schema for sub task artifacts
|
|
10329
|
+
*/
|
|
10330
|
+
declare const SubTaskGitStatsSchema: z.ZodObject<{
|
|
10331
|
+
additions: z.ZodNumber;
|
|
10332
|
+
deletions: z.ZodNumber;
|
|
10333
|
+
fileCount: z.ZodNumber;
|
|
10334
|
+
}, "strip", z.ZodTypeAny, {
|
|
10335
|
+
deletions: number;
|
|
10336
|
+
additions: number;
|
|
10337
|
+
fileCount: number;
|
|
10338
|
+
}, {
|
|
10339
|
+
deletions: number;
|
|
10340
|
+
additions: number;
|
|
10341
|
+
fileCount: number;
|
|
10342
|
+
}>;
|
|
10343
|
+
type SubTaskGitStats = z.infer<typeof SubTaskGitStatsSchema>;
|
|
10344
|
+
/**
|
|
10345
|
+
* Project type for preview rendering
|
|
10346
|
+
*/
|
|
10347
|
+
declare const PreviewProjectTypeSchema: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
|
|
10348
|
+
type PreviewProjectType = z.infer<typeof PreviewProjectTypeSchema>;
|
|
10349
|
+
/**
|
|
10350
|
+
* Preview rendering method
|
|
10351
|
+
*/
|
|
10352
|
+
declare const PreviewMethodSchema: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
|
|
10353
|
+
type PreviewMethod = z.infer<typeof PreviewMethodSchema>;
|
|
10354
|
+
/**
|
|
10355
|
+
* Preview metadata computed by CLI
|
|
10356
|
+
* Contains all information needed for App to render preview without re-detection
|
|
10357
|
+
*/
|
|
10358
|
+
declare const PreviewMetadataSchema: z.ZodObject<{
|
|
10359
|
+
projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
|
|
10360
|
+
previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
|
|
10361
|
+
entryFile: z.ZodNullable<z.ZodString>;
|
|
10362
|
+
projectPath: z.ZodString;
|
|
10363
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10364
|
+
tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
|
|
10365
|
+
isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
|
|
10366
|
+
}, "strip", z.ZodTypeAny, {
|
|
10367
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10368
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10369
|
+
entryFile: string | null;
|
|
10370
|
+
projectPath: string;
|
|
10371
|
+
dependencies?: Record<string, string> | undefined;
|
|
10372
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10373
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10374
|
+
}, {
|
|
10375
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10376
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10377
|
+
entryFile: string | null;
|
|
10378
|
+
projectPath: string;
|
|
10379
|
+
dependencies?: Record<string, string> | undefined;
|
|
10380
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10381
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10382
|
+
}>;
|
|
10383
|
+
type PreviewMetadata = z.infer<typeof PreviewMetadataSchema>;
|
|
10384
|
+
/**
|
|
10385
|
+
* Artifacts summary schema for sub task result
|
|
10386
|
+
* Used in both TaskMessageSchema (CLI sends with result) and SubTaskResultUpdatedEventSchema
|
|
10387
|
+
*/
|
|
10388
|
+
declare const SubTaskArtifactsSummarySchema: z.ZodObject<{
|
|
10389
|
+
commitHash: z.ZodString;
|
|
10390
|
+
gitStats: z.ZodObject<{
|
|
10391
|
+
additions: z.ZodNumber;
|
|
10392
|
+
deletions: z.ZodNumber;
|
|
10393
|
+
fileCount: z.ZodNumber;
|
|
10394
|
+
}, "strip", z.ZodTypeAny, {
|
|
10395
|
+
deletions: number;
|
|
10396
|
+
additions: number;
|
|
10397
|
+
fileCount: number;
|
|
10398
|
+
}, {
|
|
10399
|
+
deletions: number;
|
|
10400
|
+
additions: number;
|
|
10401
|
+
fileCount: number;
|
|
10402
|
+
}>;
|
|
10403
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
10404
|
+
projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
|
|
10405
|
+
previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
|
|
10406
|
+
entryFile: z.ZodNullable<z.ZodString>;
|
|
10407
|
+
projectPath: z.ZodString;
|
|
10408
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10409
|
+
tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
|
|
10410
|
+
isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
|
|
10411
|
+
}, "strip", z.ZodTypeAny, {
|
|
10412
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10413
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10414
|
+
entryFile: string | null;
|
|
10415
|
+
projectPath: string;
|
|
10416
|
+
dependencies?: Record<string, string> | undefined;
|
|
10417
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10418
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10419
|
+
}, {
|
|
10420
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10421
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10422
|
+
entryFile: string | null;
|
|
10423
|
+
projectPath: string;
|
|
10424
|
+
dependencies?: Record<string, string> | undefined;
|
|
10425
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10426
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10427
|
+
}>>;
|
|
10428
|
+
}, "strip", z.ZodTypeAny, {
|
|
10429
|
+
gitStats: {
|
|
10430
|
+
deletions: number;
|
|
10431
|
+
additions: number;
|
|
10432
|
+
fileCount: number;
|
|
10433
|
+
};
|
|
10434
|
+
commitHash: string;
|
|
10435
|
+
preview: {
|
|
10436
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10437
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10438
|
+
entryFile: string | null;
|
|
10439
|
+
projectPath: string;
|
|
10440
|
+
dependencies?: Record<string, string> | undefined;
|
|
10441
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10442
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10443
|
+
} | null;
|
|
10444
|
+
}, {
|
|
10445
|
+
gitStats: {
|
|
10446
|
+
deletions: number;
|
|
10447
|
+
additions: number;
|
|
10448
|
+
fileCount: number;
|
|
10449
|
+
};
|
|
10450
|
+
commitHash: string;
|
|
10451
|
+
preview: {
|
|
10452
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10453
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10454
|
+
entryFile: string | null;
|
|
10455
|
+
projectPath: string;
|
|
10456
|
+
dependencies?: Record<string, string> | undefined;
|
|
10457
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10458
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10459
|
+
} | null;
|
|
10460
|
+
}>;
|
|
10461
|
+
type SubTaskArtifactsSummary = z.infer<typeof SubTaskArtifactsSummarySchema>;
|
|
10089
10462
|
declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
10090
10463
|
eventId: z.ZodString;
|
|
10091
10464
|
} & {
|
|
@@ -10098,6 +10471,79 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10098
10471
|
encryptedMessage: z.ZodOptional<z.ZodString>;
|
|
10099
10472
|
agentId: z.ZodOptional<z.ZodString>;
|
|
10100
10473
|
rootTaskId: z.ZodOptional<z.ZodString>;
|
|
10474
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
10475
|
+
commitHash: z.ZodString;
|
|
10476
|
+
gitStats: z.ZodObject<{
|
|
10477
|
+
additions: z.ZodNumber;
|
|
10478
|
+
deletions: z.ZodNumber;
|
|
10479
|
+
fileCount: z.ZodNumber;
|
|
10480
|
+
}, "strip", z.ZodTypeAny, {
|
|
10481
|
+
deletions: number;
|
|
10482
|
+
additions: number;
|
|
10483
|
+
fileCount: number;
|
|
10484
|
+
}, {
|
|
10485
|
+
deletions: number;
|
|
10486
|
+
additions: number;
|
|
10487
|
+
fileCount: number;
|
|
10488
|
+
}>;
|
|
10489
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
10490
|
+
projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
|
|
10491
|
+
previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
|
|
10492
|
+
entryFile: z.ZodNullable<z.ZodString>;
|
|
10493
|
+
projectPath: z.ZodString;
|
|
10494
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10495
|
+
tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
|
|
10496
|
+
isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
|
|
10497
|
+
}, "strip", z.ZodTypeAny, {
|
|
10498
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10499
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10500
|
+
entryFile: string | null;
|
|
10501
|
+
projectPath: string;
|
|
10502
|
+
dependencies?: Record<string, string> | undefined;
|
|
10503
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10504
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10505
|
+
}, {
|
|
10506
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10507
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10508
|
+
entryFile: string | null;
|
|
10509
|
+
projectPath: string;
|
|
10510
|
+
dependencies?: Record<string, string> | undefined;
|
|
10511
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10512
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10513
|
+
}>>;
|
|
10514
|
+
}, "strip", z.ZodTypeAny, {
|
|
10515
|
+
gitStats: {
|
|
10516
|
+
deletions: number;
|
|
10517
|
+
additions: number;
|
|
10518
|
+
fileCount: number;
|
|
10519
|
+
};
|
|
10520
|
+
commitHash: string;
|
|
10521
|
+
preview: {
|
|
10522
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10523
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10524
|
+
entryFile: string | null;
|
|
10525
|
+
projectPath: string;
|
|
10526
|
+
dependencies?: Record<string, string> | undefined;
|
|
10527
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10528
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10529
|
+
} | null;
|
|
10530
|
+
}, {
|
|
10531
|
+
gitStats: {
|
|
10532
|
+
deletions: number;
|
|
10533
|
+
additions: number;
|
|
10534
|
+
fileCount: number;
|
|
10535
|
+
};
|
|
10536
|
+
commitHash: string;
|
|
10537
|
+
preview: {
|
|
10538
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10539
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10540
|
+
entryFile: string | null;
|
|
10541
|
+
projectPath: string;
|
|
10542
|
+
dependencies?: Record<string, string> | undefined;
|
|
10543
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10544
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10545
|
+
} | null;
|
|
10546
|
+
}>>;
|
|
10101
10547
|
}, "strip", z.ZodTypeAny, {
|
|
10102
10548
|
taskId: string;
|
|
10103
10549
|
eventId: string;
|
|
@@ -10109,6 +10555,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10109
10555
|
rootTaskId?: string | undefined;
|
|
10110
10556
|
opCode?: string | undefined;
|
|
10111
10557
|
sequence?: number | undefined;
|
|
10558
|
+
artifacts?: {
|
|
10559
|
+
gitStats: {
|
|
10560
|
+
deletions: number;
|
|
10561
|
+
additions: number;
|
|
10562
|
+
fileCount: number;
|
|
10563
|
+
};
|
|
10564
|
+
commitHash: string;
|
|
10565
|
+
preview: {
|
|
10566
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10567
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10568
|
+
entryFile: string | null;
|
|
10569
|
+
projectPath: string;
|
|
10570
|
+
dependencies?: Record<string, string> | undefined;
|
|
10571
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10572
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10573
|
+
} | null;
|
|
10574
|
+
} | undefined;
|
|
10112
10575
|
}, {
|
|
10113
10576
|
taskId: string;
|
|
10114
10577
|
eventId: string;
|
|
@@ -10120,6 +10583,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10120
10583
|
rootTaskId?: string | undefined;
|
|
10121
10584
|
opCode?: string | undefined;
|
|
10122
10585
|
sequence?: number | undefined;
|
|
10586
|
+
artifacts?: {
|
|
10587
|
+
gitStats: {
|
|
10588
|
+
deletions: number;
|
|
10589
|
+
additions: number;
|
|
10590
|
+
fileCount: number;
|
|
10591
|
+
};
|
|
10592
|
+
commitHash: string;
|
|
10593
|
+
preview: {
|
|
10594
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10595
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10596
|
+
entryFile: string | null;
|
|
10597
|
+
projectPath: string;
|
|
10598
|
+
dependencies?: Record<string, string> | undefined;
|
|
10599
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10600
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10601
|
+
} | null;
|
|
10602
|
+
} | undefined;
|
|
10123
10603
|
}>, {
|
|
10124
10604
|
taskId: string;
|
|
10125
10605
|
eventId: string;
|
|
@@ -10131,6 +10611,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10131
10611
|
rootTaskId?: string | undefined;
|
|
10132
10612
|
opCode?: string | undefined;
|
|
10133
10613
|
sequence?: number | undefined;
|
|
10614
|
+
artifacts?: {
|
|
10615
|
+
gitStats: {
|
|
10616
|
+
deletions: number;
|
|
10617
|
+
additions: number;
|
|
10618
|
+
fileCount: number;
|
|
10619
|
+
};
|
|
10620
|
+
commitHash: string;
|
|
10621
|
+
preview: {
|
|
10622
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10623
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10624
|
+
entryFile: string | null;
|
|
10625
|
+
projectPath: string;
|
|
10626
|
+
dependencies?: Record<string, string> | undefined;
|
|
10627
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10628
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10629
|
+
} | null;
|
|
10630
|
+
} | undefined;
|
|
10134
10631
|
}, {
|
|
10135
10632
|
taskId: string;
|
|
10136
10633
|
eventId: string;
|
|
@@ -10142,6 +10639,23 @@ declare const TaskMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10142
10639
|
rootTaskId?: string | undefined;
|
|
10143
10640
|
opCode?: string | undefined;
|
|
10144
10641
|
sequence?: number | undefined;
|
|
10642
|
+
artifacts?: {
|
|
10643
|
+
gitStats: {
|
|
10644
|
+
deletions: number;
|
|
10645
|
+
additions: number;
|
|
10646
|
+
fileCount: number;
|
|
10647
|
+
};
|
|
10648
|
+
commitHash: string;
|
|
10649
|
+
preview: {
|
|
10650
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
10651
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
10652
|
+
entryFile: string | null;
|
|
10653
|
+
projectPath: string;
|
|
10654
|
+
dependencies?: Record<string, string> | undefined;
|
|
10655
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
10656
|
+
isStaticFileCollection?: boolean | undefined;
|
|
10657
|
+
} | null;
|
|
10658
|
+
} | undefined;
|
|
10145
10659
|
}>;
|
|
10146
10660
|
type TaskMessageEventData = z.infer<typeof TaskMessageSchema>;
|
|
10147
10661
|
/**
|
|
@@ -10228,15 +10742,15 @@ declare const TaskStateChangeEventSchema: z.ZodObject<{
|
|
|
10228
10742
|
state: z.ZodString;
|
|
10229
10743
|
updatedAt: z.ZodString;
|
|
10230
10744
|
}, "strip", z.ZodTypeAny, {
|
|
10231
|
-
chatId: string;
|
|
10232
|
-
taskId: string;
|
|
10233
10745
|
state: string;
|
|
10746
|
+
taskId: string;
|
|
10747
|
+
chatId: string;
|
|
10234
10748
|
updatedAt: string;
|
|
10235
10749
|
eventId: string;
|
|
10236
10750
|
}, {
|
|
10237
|
-
chatId: string;
|
|
10238
|
-
taskId: string;
|
|
10239
10751
|
state: string;
|
|
10752
|
+
taskId: string;
|
|
10753
|
+
chatId: string;
|
|
10240
10754
|
updatedAt: string;
|
|
10241
10755
|
eventId: string;
|
|
10242
10756
|
}>;
|
|
@@ -10401,8 +10915,8 @@ declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
|
10401
10915
|
ifModifiedSince: z.ZodOptional<z.ZodString>;
|
|
10402
10916
|
dataEncryptionKey: z.ZodOptional<z.ZodString>;
|
|
10403
10917
|
}, "strip", z.ZodTypeAny, {
|
|
10404
|
-
taskId: string;
|
|
10405
10918
|
userId: string;
|
|
10919
|
+
taskId: string;
|
|
10406
10920
|
eventId: string;
|
|
10407
10921
|
relativePath: string;
|
|
10408
10922
|
requestId: string;
|
|
@@ -10410,8 +10924,8 @@ declare const WorkspaceFileRequestSchema: z.ZodObject<{
|
|
|
10410
10924
|
maxFileSizeMB?: number | undefined;
|
|
10411
10925
|
ifModifiedSince?: string | undefined;
|
|
10412
10926
|
}, {
|
|
10413
|
-
taskId: string;
|
|
10414
10927
|
userId: string;
|
|
10928
|
+
taskId: string;
|
|
10415
10929
|
eventId: string;
|
|
10416
10930
|
relativePath: string;
|
|
10417
10931
|
requestId: string;
|
|
@@ -10505,17 +11019,21 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10505
11019
|
code: z.ZodString;
|
|
10506
11020
|
message: z.ZodString;
|
|
10507
11021
|
}, "strip", z.ZodTypeAny, {
|
|
10508
|
-
code: string;
|
|
10509
11022
|
message: string;
|
|
10510
|
-
}, {
|
|
10511
11023
|
code: string;
|
|
11024
|
+
}, {
|
|
10512
11025
|
message: string;
|
|
11026
|
+
code: string;
|
|
10513
11027
|
}>>;
|
|
10514
11028
|
}, "strip", z.ZodTypeAny, {
|
|
10515
|
-
taskId: string;
|
|
10516
11029
|
success: boolean;
|
|
11030
|
+
taskId: string;
|
|
10517
11031
|
eventId: string;
|
|
10518
11032
|
requestId: string;
|
|
11033
|
+
error?: {
|
|
11034
|
+
message: string;
|
|
11035
|
+
code: string;
|
|
11036
|
+
} | undefined;
|
|
10519
11037
|
data?: {
|
|
10520
11038
|
type: "directory" | "file";
|
|
10521
11039
|
metadata: {
|
|
@@ -10534,16 +11052,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10534
11052
|
content?: string | undefined;
|
|
10535
11053
|
encryptedContent?: string | undefined;
|
|
10536
11054
|
} | undefined;
|
|
10537
|
-
error?: {
|
|
10538
|
-
code: string;
|
|
10539
|
-
message: string;
|
|
10540
|
-
} | undefined;
|
|
10541
11055
|
notModified?: boolean | undefined;
|
|
10542
11056
|
}, {
|
|
10543
|
-
taskId: string;
|
|
10544
11057
|
success: boolean;
|
|
11058
|
+
taskId: string;
|
|
10545
11059
|
eventId: string;
|
|
10546
11060
|
requestId: string;
|
|
11061
|
+
error?: {
|
|
11062
|
+
message: string;
|
|
11063
|
+
code: string;
|
|
11064
|
+
} | undefined;
|
|
10547
11065
|
data?: {
|
|
10548
11066
|
type: "directory" | "file";
|
|
10549
11067
|
metadata: {
|
|
@@ -10562,10 +11080,6 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
|
|
|
10562
11080
|
content?: string | undefined;
|
|
10563
11081
|
encryptedContent?: string | undefined;
|
|
10564
11082
|
} | undefined;
|
|
10565
|
-
error?: {
|
|
10566
|
-
code: string;
|
|
10567
|
-
message: string;
|
|
10568
|
-
} | undefined;
|
|
10569
11083
|
notModified?: boolean | undefined;
|
|
10570
11084
|
}>;
|
|
10571
11085
|
type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
|
|
@@ -10595,14 +11109,14 @@ declare const TaskInfoUpdateEventDataSchema: z.ZodObject<{
|
|
|
10595
11109
|
updates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10596
11110
|
updatedAt: z.ZodString;
|
|
10597
11111
|
}, "strip", z.ZodTypeAny, {
|
|
10598
|
-
chatId: string;
|
|
10599
11112
|
taskId: string;
|
|
11113
|
+
chatId: string;
|
|
10600
11114
|
updatedAt: string;
|
|
10601
11115
|
eventId: string;
|
|
10602
11116
|
updates?: Record<string, any> | undefined;
|
|
10603
11117
|
}, {
|
|
10604
|
-
chatId: string;
|
|
10605
11118
|
taskId: string;
|
|
11119
|
+
chatId: string;
|
|
10606
11120
|
updatedAt: string;
|
|
10607
11121
|
eventId: string;
|
|
10608
11122
|
updates?: Record<string, any> | undefined;
|
|
@@ -10643,39 +11157,167 @@ declare const TaskStoppedEventSchema: z.ZodObject<{
|
|
|
10643
11157
|
}>;
|
|
10644
11158
|
type TaskStoppedEventData = z.infer<typeof TaskStoppedEventSchema>;
|
|
10645
11159
|
/**
|
|
10646
|
-
* Sub task
|
|
10647
|
-
* Sent when a sub task
|
|
11160
|
+
* Sub task result updated event (API -> parentTask's Worker + App)
|
|
11161
|
+
* Sent when a sub task sends a result message
|
|
11162
|
+
* Carries the complete result message for parent task to process
|
|
10648
11163
|
*/
|
|
10649
|
-
declare const
|
|
11164
|
+
declare const SubTaskResultUpdatedEventSchema: z.ZodObject<{
|
|
10650
11165
|
eventId: z.ZodString;
|
|
10651
11166
|
} & {
|
|
10652
11167
|
taskId: z.ZodString;
|
|
10653
11168
|
parentTaskId: z.ZodString;
|
|
10654
11169
|
rootTaskId: z.ZodString;
|
|
11170
|
+
agentId: z.ZodString;
|
|
10655
11171
|
agentName: z.ZodString;
|
|
10656
11172
|
taskName: z.ZodOptional<z.ZodString>;
|
|
10657
|
-
|
|
10658
|
-
|
|
11173
|
+
resultMessage: z.ZodObject<{
|
|
11174
|
+
type: z.ZodLiteral<"result">;
|
|
11175
|
+
result: z.ZodString;
|
|
11176
|
+
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
11177
|
+
}, "strip", z.ZodTypeAny, {
|
|
11178
|
+
type: "result";
|
|
11179
|
+
result: string;
|
|
11180
|
+
is_error?: boolean | undefined;
|
|
11181
|
+
}, {
|
|
11182
|
+
type: "result";
|
|
11183
|
+
result: string;
|
|
11184
|
+
is_error?: boolean | undefined;
|
|
11185
|
+
}>;
|
|
11186
|
+
artifacts: z.ZodOptional<z.ZodObject<{
|
|
11187
|
+
commitHash: z.ZodString;
|
|
11188
|
+
gitStats: z.ZodObject<{
|
|
11189
|
+
additions: z.ZodNumber;
|
|
11190
|
+
deletions: z.ZodNumber;
|
|
11191
|
+
fileCount: z.ZodNumber;
|
|
11192
|
+
}, "strip", z.ZodTypeAny, {
|
|
11193
|
+
deletions: number;
|
|
11194
|
+
additions: number;
|
|
11195
|
+
fileCount: number;
|
|
11196
|
+
}, {
|
|
11197
|
+
deletions: number;
|
|
11198
|
+
additions: number;
|
|
11199
|
+
fileCount: number;
|
|
11200
|
+
}>;
|
|
11201
|
+
preview: z.ZodNullable<z.ZodObject<{
|
|
11202
|
+
projectType: z.ZodEnum<["html", "react", "vue", "vite", "nextjs", "unknown"]>;
|
|
11203
|
+
previewMethod: z.ZodEnum<["simple", "bundled", "gallery", "none"]>;
|
|
11204
|
+
entryFile: z.ZodNullable<z.ZodString>;
|
|
11205
|
+
projectPath: z.ZodString;
|
|
11206
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11207
|
+
tailwindVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodNull]>>;
|
|
11208
|
+
isStaticFileCollection: z.ZodOptional<z.ZodBoolean>;
|
|
11209
|
+
}, "strip", z.ZodTypeAny, {
|
|
11210
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11211
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11212
|
+
entryFile: string | null;
|
|
11213
|
+
projectPath: string;
|
|
11214
|
+
dependencies?: Record<string, string> | undefined;
|
|
11215
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11216
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11217
|
+
}, {
|
|
11218
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11219
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11220
|
+
entryFile: string | null;
|
|
11221
|
+
projectPath: string;
|
|
11222
|
+
dependencies?: Record<string, string> | undefined;
|
|
11223
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11224
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11225
|
+
}>>;
|
|
11226
|
+
}, "strip", z.ZodTypeAny, {
|
|
11227
|
+
gitStats: {
|
|
11228
|
+
deletions: number;
|
|
11229
|
+
additions: number;
|
|
11230
|
+
fileCount: number;
|
|
11231
|
+
};
|
|
11232
|
+
commitHash: string;
|
|
11233
|
+
preview: {
|
|
11234
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11235
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11236
|
+
entryFile: string | null;
|
|
11237
|
+
projectPath: string;
|
|
11238
|
+
dependencies?: Record<string, string> | undefined;
|
|
11239
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11240
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11241
|
+
} | null;
|
|
11242
|
+
}, {
|
|
11243
|
+
gitStats: {
|
|
11244
|
+
deletions: number;
|
|
11245
|
+
additions: number;
|
|
11246
|
+
fileCount: number;
|
|
11247
|
+
};
|
|
11248
|
+
commitHash: string;
|
|
11249
|
+
preview: {
|
|
11250
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11251
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11252
|
+
entryFile: string | null;
|
|
11253
|
+
projectPath: string;
|
|
11254
|
+
dependencies?: Record<string, string> | undefined;
|
|
11255
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11256
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11257
|
+
} | null;
|
|
11258
|
+
}>>;
|
|
10659
11259
|
}, "strip", z.ZodTypeAny, {
|
|
10660
|
-
parentTaskId: string;
|
|
10661
11260
|
taskId: string;
|
|
11261
|
+
agentId: string;
|
|
11262
|
+
parentTaskId: string;
|
|
10662
11263
|
rootTaskId: string;
|
|
10663
11264
|
eventId: string;
|
|
10664
11265
|
agentName: string;
|
|
10665
|
-
|
|
10666
|
-
|
|
11266
|
+
resultMessage: {
|
|
11267
|
+
type: "result";
|
|
11268
|
+
result: string;
|
|
11269
|
+
is_error?: boolean | undefined;
|
|
11270
|
+
};
|
|
11271
|
+
artifacts?: {
|
|
11272
|
+
gitStats: {
|
|
11273
|
+
deletions: number;
|
|
11274
|
+
additions: number;
|
|
11275
|
+
fileCount: number;
|
|
11276
|
+
};
|
|
11277
|
+
commitHash: string;
|
|
11278
|
+
preview: {
|
|
11279
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11280
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11281
|
+
entryFile: string | null;
|
|
11282
|
+
projectPath: string;
|
|
11283
|
+
dependencies?: Record<string, string> | undefined;
|
|
11284
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11285
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11286
|
+
} | null;
|
|
11287
|
+
} | undefined;
|
|
10667
11288
|
taskName?: string | undefined;
|
|
10668
11289
|
}, {
|
|
10669
|
-
parentTaskId: string;
|
|
10670
11290
|
taskId: string;
|
|
11291
|
+
agentId: string;
|
|
11292
|
+
parentTaskId: string;
|
|
10671
11293
|
rootTaskId: string;
|
|
10672
11294
|
eventId: string;
|
|
10673
11295
|
agentName: string;
|
|
10674
|
-
|
|
10675
|
-
|
|
11296
|
+
resultMessage: {
|
|
11297
|
+
type: "result";
|
|
11298
|
+
result: string;
|
|
11299
|
+
is_error?: boolean | undefined;
|
|
11300
|
+
};
|
|
11301
|
+
artifacts?: {
|
|
11302
|
+
gitStats: {
|
|
11303
|
+
deletions: number;
|
|
11304
|
+
additions: number;
|
|
11305
|
+
fileCount: number;
|
|
11306
|
+
};
|
|
11307
|
+
commitHash: string;
|
|
11308
|
+
preview: {
|
|
11309
|
+
projectType: "unknown" | "html" | "react" | "vue" | "vite" | "nextjs";
|
|
11310
|
+
previewMethod: "simple" | "bundled" | "gallery" | "none";
|
|
11311
|
+
entryFile: string | null;
|
|
11312
|
+
projectPath: string;
|
|
11313
|
+
dependencies?: Record<string, string> | undefined;
|
|
11314
|
+
tailwindVersion?: 4 | 3 | null | undefined;
|
|
11315
|
+
isStaticFileCollection?: boolean | undefined;
|
|
11316
|
+
} | null;
|
|
11317
|
+
} | undefined;
|
|
10676
11318
|
taskName?: string | undefined;
|
|
10677
11319
|
}>;
|
|
10678
|
-
type
|
|
11320
|
+
type SubTaskResultUpdatedEventData = z.infer<typeof SubTaskResultUpdatedEventSchema>;
|
|
10679
11321
|
declare const MergePullRequestEventSchema: z.ZodObject<{
|
|
10680
11322
|
eventId: z.ZodString;
|
|
10681
11323
|
} & {
|
|
@@ -10719,8 +11361,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10719
11361
|
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10720
11362
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10721
11363
|
}, "strip", z.ZodTypeAny, {
|
|
10722
|
-
taskId: string;
|
|
10723
11364
|
userId: string;
|
|
11365
|
+
taskId: string;
|
|
10724
11366
|
draftAgentId: string;
|
|
10725
11367
|
eventId: string;
|
|
10726
11368
|
sourcePath: string;
|
|
@@ -10732,8 +11374,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10732
11374
|
supportLocal?: boolean | undefined;
|
|
10733
11375
|
isSystemAgent?: boolean | undefined;
|
|
10734
11376
|
}, {
|
|
10735
|
-
taskId: string;
|
|
10736
11377
|
userId: string;
|
|
11378
|
+
taskId: string;
|
|
10737
11379
|
draftAgentId: string;
|
|
10738
11380
|
eventId: string;
|
|
10739
11381
|
sourcePath: string;
|
|
@@ -10745,8 +11387,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10745
11387
|
supportLocal?: boolean | undefined;
|
|
10746
11388
|
isSystemAgent?: boolean | undefined;
|
|
10747
11389
|
}>, {
|
|
10748
|
-
taskId: string;
|
|
10749
11390
|
userId: string;
|
|
11391
|
+
taskId: string;
|
|
10750
11392
|
draftAgentId: string;
|
|
10751
11393
|
eventId: string;
|
|
10752
11394
|
sourcePath: string;
|
|
@@ -10758,8 +11400,8 @@ declare const DeployAgentEventSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10758
11400
|
supportLocal?: boolean | undefined;
|
|
10759
11401
|
isSystemAgent?: boolean | undefined;
|
|
10760
11402
|
}, {
|
|
10761
|
-
taskId: string;
|
|
10762
11403
|
userId: string;
|
|
11404
|
+
taskId: string;
|
|
10763
11405
|
draftAgentId: string;
|
|
10764
11406
|
eventId: string;
|
|
10765
11407
|
sourcePath: string;
|
|
@@ -10788,23 +11430,23 @@ declare const DeployAgentCompleteEventSchema: z.ZodObject<{
|
|
|
10788
11430
|
isSystemAgent: z.ZodOptional<z.ZodBoolean>;
|
|
10789
11431
|
supportLocal: z.ZodOptional<z.ZodBoolean>;
|
|
10790
11432
|
}, "strip", z.ZodTypeAny, {
|
|
10791
|
-
taskId: string;
|
|
10792
11433
|
success: boolean;
|
|
11434
|
+
taskId: string;
|
|
10793
11435
|
eventId: string;
|
|
10794
11436
|
targetAgentId: string;
|
|
11437
|
+
error?: string | undefined;
|
|
10795
11438
|
avatar?: string | undefined;
|
|
10796
11439
|
name?: string | undefined;
|
|
10797
|
-
error?: string | undefined;
|
|
10798
11440
|
supportLocal?: boolean | undefined;
|
|
10799
11441
|
isSystemAgent?: boolean | undefined;
|
|
10800
11442
|
}, {
|
|
10801
|
-
taskId: string;
|
|
10802
11443
|
success: boolean;
|
|
11444
|
+
taskId: string;
|
|
10803
11445
|
eventId: string;
|
|
10804
11446
|
targetAgentId: string;
|
|
11447
|
+
error?: string | undefined;
|
|
10805
11448
|
avatar?: string | undefined;
|
|
10806
11449
|
name?: string | undefined;
|
|
10807
|
-
error?: string | undefined;
|
|
10808
11450
|
supportLocal?: boolean | undefined;
|
|
10809
11451
|
isSystemAgent?: boolean | undefined;
|
|
10810
11452
|
}>;
|
|
@@ -10872,7 +11514,7 @@ type PrStateChangedData = z.infer<typeof PrStateChangedSchema>;
|
|
|
10872
11514
|
declare const SystemMessageSchema: z.ZodObject<{
|
|
10873
11515
|
eventId: z.ZodString;
|
|
10874
11516
|
} & {
|
|
10875
|
-
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "draft-agent-added"]>;
|
|
11517
|
+
type: z.ZodEnum<["machine-online", "machine-offline", "chat-added", "chat-removed", "chat-member-added", "chat-member-removed", "repo-added", "repo-removed", "pr-state-changed", "draft-agent-added", "task-added"]>;
|
|
10876
11518
|
data: z.ZodUnion<[z.ZodObject<{
|
|
10877
11519
|
id: z.ZodString;
|
|
10878
11520
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10886,20 +11528,32 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10886
11528
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10887
11529
|
createdAt: z.ZodString;
|
|
10888
11530
|
updatedAt: z.ZodString;
|
|
11531
|
+
defaultMachineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11532
|
+
defaultCloudId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11533
|
+
defaultRepositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11534
|
+
defaultBaseBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10889
11535
|
}, "strip", z.ZodTypeAny, {
|
|
10890
|
-
id: string;
|
|
10891
11536
|
type: "direct" | "group";
|
|
11537
|
+
id: string;
|
|
10892
11538
|
createdAt: string;
|
|
10893
11539
|
updatedAt: string;
|
|
10894
11540
|
owner: string;
|
|
10895
11541
|
title?: string | null | undefined;
|
|
11542
|
+
defaultMachineId?: string | null | undefined;
|
|
11543
|
+
defaultCloudId?: string | null | undefined;
|
|
11544
|
+
defaultRepositoryId?: string | null | undefined;
|
|
11545
|
+
defaultBaseBranch?: string | null | undefined;
|
|
10896
11546
|
}, {
|
|
10897
|
-
id: string;
|
|
10898
11547
|
type: "direct" | "group";
|
|
11548
|
+
id: string;
|
|
10899
11549
|
createdAt: string;
|
|
10900
11550
|
updatedAt: string;
|
|
10901
11551
|
owner: string;
|
|
10902
11552
|
title?: string | null | undefined;
|
|
11553
|
+
defaultMachineId?: string | null | undefined;
|
|
11554
|
+
defaultCloudId?: string | null | undefined;
|
|
11555
|
+
defaultRepositoryId?: string | null | undefined;
|
|
11556
|
+
defaultBaseBranch?: string | null | undefined;
|
|
10903
11557
|
}>, z.ZodArray<z.ZodObject<{
|
|
10904
11558
|
id: z.ZodString;
|
|
10905
11559
|
chatId: z.ZodString;
|
|
@@ -10909,18 +11563,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
10909
11563
|
createdAt: z.ZodString;
|
|
10910
11564
|
updatedAt: z.ZodString;
|
|
10911
11565
|
}, "strip", z.ZodTypeAny, {
|
|
10912
|
-
id: string;
|
|
10913
11566
|
type: "agent" | "human";
|
|
10914
|
-
|
|
11567
|
+
id: string;
|
|
10915
11568
|
createdAt: string;
|
|
11569
|
+
chatId: string;
|
|
10916
11570
|
updatedAt: string;
|
|
10917
11571
|
memberCode: string;
|
|
10918
11572
|
role: string;
|
|
10919
11573
|
}, {
|
|
10920
|
-
id: string;
|
|
10921
11574
|
type: "agent" | "human";
|
|
10922
|
-
|
|
11575
|
+
id: string;
|
|
10923
11576
|
createdAt: string;
|
|
11577
|
+
chatId: string;
|
|
10924
11578
|
updatedAt: string;
|
|
10925
11579
|
memberCode: string;
|
|
10926
11580
|
role: string;
|
|
@@ -11151,18 +11805,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11151
11805
|
createdAt: z.ZodString;
|
|
11152
11806
|
updatedAt: z.ZodString;
|
|
11153
11807
|
}, "strip", z.ZodTypeAny, {
|
|
11808
|
+
type: "claude" | "codex";
|
|
11154
11809
|
id: string;
|
|
11155
11810
|
avatar: string | null;
|
|
11156
|
-
type: "claude" | "codex";
|
|
11157
|
-
userId: string;
|
|
11158
11811
|
createdAt: string;
|
|
11159
|
-
|
|
11160
|
-
name: string;
|
|
11161
|
-
description: string | null;
|
|
11812
|
+
userId: string;
|
|
11162
11813
|
permissions: {
|
|
11163
11814
|
role: string;
|
|
11164
11815
|
paths?: string[] | undefined;
|
|
11165
11816
|
} | null;
|
|
11817
|
+
updatedAt: string;
|
|
11818
|
+
name: string;
|
|
11819
|
+
description: string | null;
|
|
11166
11820
|
enable: boolean;
|
|
11167
11821
|
config: {
|
|
11168
11822
|
signature?: string | undefined;
|
|
@@ -11200,18 +11854,18 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11200
11854
|
publishedAgentId: string | null;
|
|
11201
11855
|
sourceTaskId: string | null;
|
|
11202
11856
|
}, {
|
|
11857
|
+
type: "claude" | "codex";
|
|
11203
11858
|
id: string;
|
|
11204
11859
|
avatar: string | null;
|
|
11205
|
-
type: "claude" | "codex";
|
|
11206
|
-
userId: string;
|
|
11207
11860
|
createdAt: string;
|
|
11208
|
-
|
|
11209
|
-
name: string;
|
|
11210
|
-
description: string | null;
|
|
11861
|
+
userId: string;
|
|
11211
11862
|
permissions: {
|
|
11212
11863
|
role: string;
|
|
11213
11864
|
paths?: string[] | undefined;
|
|
11214
11865
|
} | null;
|
|
11866
|
+
updatedAt: string;
|
|
11867
|
+
name: string;
|
|
11868
|
+
description: string | null;
|
|
11215
11869
|
enable: boolean;
|
|
11216
11870
|
config: {
|
|
11217
11871
|
signature?: string | undefined;
|
|
@@ -11248,38 +11902,218 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11248
11902
|
displayName: string;
|
|
11249
11903
|
publishedAgentId: string | null;
|
|
11250
11904
|
sourceTaskId: string | null;
|
|
11905
|
+
}>, z.ZodObject<{
|
|
11906
|
+
id: z.ZodString;
|
|
11907
|
+
type: z.ZodDefault<z.ZodEnum<["chat", "work"]>>;
|
|
11908
|
+
chatId: z.ZodString;
|
|
11909
|
+
userId: z.ZodString;
|
|
11910
|
+
state: z.ZodString;
|
|
11911
|
+
workerStatus: z.ZodNullable<z.ZodEnum<["initializing", "ready", "running"]>>;
|
|
11912
|
+
agentId: z.ZodString;
|
|
11913
|
+
machineId: z.ZodNullable<z.ZodString>;
|
|
11914
|
+
cloudId: z.ZodNullable<z.ZodString>;
|
|
11915
|
+
repositoryId: z.ZodNullable<z.ZodString>;
|
|
11916
|
+
baseBranch: z.ZodNullable<z.ZodString>;
|
|
11917
|
+
title: z.ZodNullable<z.ZodString>;
|
|
11918
|
+
customTitle: z.ZodNullable<z.ZodString>;
|
|
11919
|
+
agentSessionId: z.ZodNullable<z.ZodString>;
|
|
11920
|
+
dataEncryptionKey: z.ZodNullable<z.ZodString>;
|
|
11921
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
11922
|
+
userCwd: z.ZodNullable<z.ZodString>;
|
|
11923
|
+
forceUserCwd: z.ZodNullable<z.ZodBoolean>;
|
|
11924
|
+
repositorySourceType: z.ZodNullable<z.ZodEnum<["temporary", "directory", "git-server"]>>;
|
|
11925
|
+
pullRequestNumber: z.ZodNullable<z.ZodNumber>;
|
|
11926
|
+
pullRequestUrl: z.ZodNullable<z.ZodString>;
|
|
11927
|
+
pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
11928
|
+
pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
|
|
11929
|
+
gitStats: z.ZodNullable<z.ZodObject<{
|
|
11930
|
+
totalInsertions: z.ZodNumber;
|
|
11931
|
+
totalDeletions: z.ZodNumber;
|
|
11932
|
+
files: z.ZodArray<z.ZodObject<{
|
|
11933
|
+
path: z.ZodString;
|
|
11934
|
+
insertions: z.ZodNumber;
|
|
11935
|
+
deletions: z.ZodNumber;
|
|
11936
|
+
}, "strip", z.ZodTypeAny, {
|
|
11937
|
+
path: string;
|
|
11938
|
+
insertions: number;
|
|
11939
|
+
deletions: number;
|
|
11940
|
+
}, {
|
|
11941
|
+
path: string;
|
|
11942
|
+
insertions: number;
|
|
11943
|
+
deletions: number;
|
|
11944
|
+
}>, "many">;
|
|
11945
|
+
}, "strip", z.ZodTypeAny, {
|
|
11946
|
+
totalInsertions: number;
|
|
11947
|
+
totalDeletions: number;
|
|
11948
|
+
files: {
|
|
11949
|
+
path: string;
|
|
11950
|
+
insertions: number;
|
|
11951
|
+
deletions: number;
|
|
11952
|
+
}[];
|
|
11953
|
+
}, {
|
|
11954
|
+
totalInsertions: number;
|
|
11955
|
+
totalDeletions: number;
|
|
11956
|
+
files: {
|
|
11957
|
+
path: string;
|
|
11958
|
+
insertions: number;
|
|
11959
|
+
deletions: number;
|
|
11960
|
+
}[];
|
|
11961
|
+
}>>;
|
|
11962
|
+
totalDuration: z.ZodNullable<z.ZodNumber>;
|
|
11963
|
+
rootTaskId: z.ZodNullable<z.ZodString>;
|
|
11964
|
+
parentTaskId: z.ZodNullable<z.ZodString>;
|
|
11965
|
+
createdAt: z.ZodString;
|
|
11966
|
+
updatedAt: z.ZodString;
|
|
11967
|
+
}, "strip", z.ZodTypeAny, {
|
|
11968
|
+
type: "chat" | "work";
|
|
11969
|
+
id: string;
|
|
11970
|
+
createdAt: string;
|
|
11971
|
+
state: string;
|
|
11972
|
+
machineId: string | null;
|
|
11973
|
+
cloudId: string | null;
|
|
11974
|
+
userId: string;
|
|
11975
|
+
chatId: string;
|
|
11976
|
+
customTitle: string | null;
|
|
11977
|
+
cwd: string | null;
|
|
11978
|
+
forceUserCwd: boolean | null;
|
|
11979
|
+
repositoryId: string | null;
|
|
11980
|
+
baseBranch: string | null;
|
|
11981
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
11982
|
+
dataEncryptionKey: string | null;
|
|
11983
|
+
agentId: string;
|
|
11984
|
+
parentTaskId: string | null;
|
|
11985
|
+
title: string | null;
|
|
11986
|
+
userCwd: string | null;
|
|
11987
|
+
updatedAt: string;
|
|
11988
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
11989
|
+
agentSessionId: string | null;
|
|
11990
|
+
pullRequestNumber: number | null;
|
|
11991
|
+
pullRequestUrl: string | null;
|
|
11992
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
11993
|
+
pullRequestStateChangedAt: string | null;
|
|
11994
|
+
gitStats: {
|
|
11995
|
+
totalInsertions: number;
|
|
11996
|
+
totalDeletions: number;
|
|
11997
|
+
files: {
|
|
11998
|
+
path: string;
|
|
11999
|
+
insertions: number;
|
|
12000
|
+
deletions: number;
|
|
12001
|
+
}[];
|
|
12002
|
+
} | null;
|
|
12003
|
+
totalDuration: number | null;
|
|
12004
|
+
rootTaskId: string | null;
|
|
12005
|
+
}, {
|
|
12006
|
+
id: string;
|
|
12007
|
+
createdAt: string;
|
|
12008
|
+
state: string;
|
|
12009
|
+
machineId: string | null;
|
|
12010
|
+
cloudId: string | null;
|
|
12011
|
+
userId: string;
|
|
12012
|
+
chatId: string;
|
|
12013
|
+
customTitle: string | null;
|
|
12014
|
+
cwd: string | null;
|
|
12015
|
+
forceUserCwd: boolean | null;
|
|
12016
|
+
repositoryId: string | null;
|
|
12017
|
+
baseBranch: string | null;
|
|
12018
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
12019
|
+
dataEncryptionKey: string | null;
|
|
12020
|
+
agentId: string;
|
|
12021
|
+
parentTaskId: string | null;
|
|
12022
|
+
title: string | null;
|
|
12023
|
+
userCwd: string | null;
|
|
12024
|
+
updatedAt: string;
|
|
12025
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
12026
|
+
agentSessionId: string | null;
|
|
12027
|
+
pullRequestNumber: number | null;
|
|
12028
|
+
pullRequestUrl: string | null;
|
|
12029
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
12030
|
+
pullRequestStateChangedAt: string | null;
|
|
12031
|
+
gitStats: {
|
|
12032
|
+
totalInsertions: number;
|
|
12033
|
+
totalDeletions: number;
|
|
12034
|
+
files: {
|
|
12035
|
+
path: string;
|
|
12036
|
+
insertions: number;
|
|
12037
|
+
deletions: number;
|
|
12038
|
+
}[];
|
|
12039
|
+
} | null;
|
|
12040
|
+
totalDuration: number | null;
|
|
12041
|
+
rootTaskId: string | null;
|
|
12042
|
+
type?: "chat" | "work" | undefined;
|
|
11251
12043
|
}>]>;
|
|
11252
12044
|
timestamp: z.ZodString;
|
|
11253
12045
|
}, "strip", z.ZodTypeAny, {
|
|
11254
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
12046
|
+
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added" | "task-added";
|
|
11255
12047
|
data: {
|
|
12048
|
+
type: "chat" | "work";
|
|
11256
12049
|
id: string;
|
|
12050
|
+
createdAt: string;
|
|
12051
|
+
state: string;
|
|
12052
|
+
machineId: string | null;
|
|
12053
|
+
cloudId: string | null;
|
|
12054
|
+
userId: string;
|
|
12055
|
+
chatId: string;
|
|
12056
|
+
customTitle: string | null;
|
|
12057
|
+
cwd: string | null;
|
|
12058
|
+
forceUserCwd: boolean | null;
|
|
12059
|
+
repositoryId: string | null;
|
|
12060
|
+
baseBranch: string | null;
|
|
12061
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
12062
|
+
dataEncryptionKey: string | null;
|
|
12063
|
+
agentId: string;
|
|
12064
|
+
parentTaskId: string | null;
|
|
12065
|
+
title: string | null;
|
|
12066
|
+
userCwd: string | null;
|
|
12067
|
+
updatedAt: string;
|
|
12068
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
12069
|
+
agentSessionId: string | null;
|
|
12070
|
+
pullRequestNumber: number | null;
|
|
12071
|
+
pullRequestUrl: string | null;
|
|
12072
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
12073
|
+
pullRequestStateChangedAt: string | null;
|
|
12074
|
+
gitStats: {
|
|
12075
|
+
totalInsertions: number;
|
|
12076
|
+
totalDeletions: number;
|
|
12077
|
+
files: {
|
|
12078
|
+
path: string;
|
|
12079
|
+
insertions: number;
|
|
12080
|
+
deletions: number;
|
|
12081
|
+
}[];
|
|
12082
|
+
} | null;
|
|
12083
|
+
totalDuration: number | null;
|
|
12084
|
+
rootTaskId: string | null;
|
|
12085
|
+
} | {
|
|
11257
12086
|
type: "direct" | "group";
|
|
12087
|
+
id: string;
|
|
11258
12088
|
createdAt: string;
|
|
11259
12089
|
updatedAt: string;
|
|
11260
12090
|
owner: string;
|
|
11261
12091
|
title?: string | null | undefined;
|
|
12092
|
+
defaultMachineId?: string | null | undefined;
|
|
12093
|
+
defaultCloudId?: string | null | undefined;
|
|
12094
|
+
defaultRepositoryId?: string | null | undefined;
|
|
12095
|
+
defaultBaseBranch?: string | null | undefined;
|
|
11262
12096
|
} | {
|
|
11263
|
-
id: string;
|
|
11264
12097
|
type: "agent" | "human";
|
|
11265
|
-
|
|
12098
|
+
id: string;
|
|
11266
12099
|
createdAt: string;
|
|
12100
|
+
chatId: string;
|
|
11267
12101
|
updatedAt: string;
|
|
11268
12102
|
memberCode: string;
|
|
11269
12103
|
role: string;
|
|
11270
12104
|
}[] | {
|
|
12105
|
+
type: "claude" | "codex";
|
|
11271
12106
|
id: string;
|
|
11272
12107
|
avatar: string | null;
|
|
11273
|
-
type: "claude" | "codex";
|
|
11274
|
-
userId: string;
|
|
11275
12108
|
createdAt: string;
|
|
11276
|
-
|
|
11277
|
-
name: string;
|
|
11278
|
-
description: string | null;
|
|
12109
|
+
userId: string;
|
|
11279
12110
|
permissions: {
|
|
11280
12111
|
role: string;
|
|
11281
12112
|
paths?: string[] | undefined;
|
|
11282
12113
|
} | null;
|
|
12114
|
+
updatedAt: string;
|
|
12115
|
+
name: string;
|
|
12116
|
+
description: string | null;
|
|
11283
12117
|
enable: boolean;
|
|
11284
12118
|
config: {
|
|
11285
12119
|
signature?: string | undefined;
|
|
@@ -11343,35 +12177,77 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11343
12177
|
timestamp: string;
|
|
11344
12178
|
eventId: string;
|
|
11345
12179
|
}, {
|
|
11346
|
-
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added";
|
|
12180
|
+
type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed" | "draft-agent-added" | "task-added";
|
|
11347
12181
|
data: {
|
|
11348
12182
|
id: string;
|
|
12183
|
+
createdAt: string;
|
|
12184
|
+
state: string;
|
|
12185
|
+
machineId: string | null;
|
|
12186
|
+
cloudId: string | null;
|
|
12187
|
+
userId: string;
|
|
12188
|
+
chatId: string;
|
|
12189
|
+
customTitle: string | null;
|
|
12190
|
+
cwd: string | null;
|
|
12191
|
+
forceUserCwd: boolean | null;
|
|
12192
|
+
repositoryId: string | null;
|
|
12193
|
+
baseBranch: string | null;
|
|
12194
|
+
repositorySourceType: "temporary" | "directory" | "git-server" | null;
|
|
12195
|
+
dataEncryptionKey: string | null;
|
|
12196
|
+
agentId: string;
|
|
12197
|
+
parentTaskId: string | null;
|
|
12198
|
+
title: string | null;
|
|
12199
|
+
userCwd: string | null;
|
|
12200
|
+
updatedAt: string;
|
|
12201
|
+
workerStatus: "initializing" | "ready" | "running" | null;
|
|
12202
|
+
agentSessionId: string | null;
|
|
12203
|
+
pullRequestNumber: number | null;
|
|
12204
|
+
pullRequestUrl: string | null;
|
|
12205
|
+
pullRequestState: "open" | "closed" | "merged" | null;
|
|
12206
|
+
pullRequestStateChangedAt: string | null;
|
|
12207
|
+
gitStats: {
|
|
12208
|
+
totalInsertions: number;
|
|
12209
|
+
totalDeletions: number;
|
|
12210
|
+
files: {
|
|
12211
|
+
path: string;
|
|
12212
|
+
insertions: number;
|
|
12213
|
+
deletions: number;
|
|
12214
|
+
}[];
|
|
12215
|
+
} | null;
|
|
12216
|
+
totalDuration: number | null;
|
|
12217
|
+
rootTaskId: string | null;
|
|
12218
|
+
type?: "chat" | "work" | undefined;
|
|
12219
|
+
} | {
|
|
11349
12220
|
type: "direct" | "group";
|
|
12221
|
+
id: string;
|
|
11350
12222
|
createdAt: string;
|
|
11351
12223
|
updatedAt: string;
|
|
11352
12224
|
owner: string;
|
|
11353
12225
|
title?: string | null | undefined;
|
|
12226
|
+
defaultMachineId?: string | null | undefined;
|
|
12227
|
+
defaultCloudId?: string | null | undefined;
|
|
12228
|
+
defaultRepositoryId?: string | null | undefined;
|
|
12229
|
+
defaultBaseBranch?: string | null | undefined;
|
|
11354
12230
|
} | {
|
|
11355
|
-
id: string;
|
|
11356
12231
|
type: "agent" | "human";
|
|
11357
|
-
|
|
12232
|
+
id: string;
|
|
11358
12233
|
createdAt: string;
|
|
12234
|
+
chatId: string;
|
|
11359
12235
|
updatedAt: string;
|
|
11360
12236
|
memberCode: string;
|
|
11361
12237
|
role: string;
|
|
11362
12238
|
}[] | {
|
|
12239
|
+
type: "claude" | "codex";
|
|
11363
12240
|
id: string;
|
|
11364
12241
|
avatar: string | null;
|
|
11365
|
-
type: "claude" | "codex";
|
|
11366
|
-
userId: string;
|
|
11367
12242
|
createdAt: string;
|
|
11368
|
-
|
|
11369
|
-
name: string;
|
|
11370
|
-
description: string | null;
|
|
12243
|
+
userId: string;
|
|
11371
12244
|
permissions: {
|
|
11372
12245
|
role: string;
|
|
11373
12246
|
paths?: string[] | undefined;
|
|
11374
12247
|
} | null;
|
|
12248
|
+
updatedAt: string;
|
|
12249
|
+
name: string;
|
|
12250
|
+
description: string | null;
|
|
11375
12251
|
enable: boolean;
|
|
11376
12252
|
config: {
|
|
11377
12253
|
signature?: string | undefined;
|
|
@@ -11436,7 +12312,7 @@ declare const SystemMessageSchema: z.ZodObject<{
|
|
|
11436
12312
|
eventId: string;
|
|
11437
12313
|
}>;
|
|
11438
12314
|
type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
|
|
11439
|
-
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | TaskStoppedEventData |
|
|
12315
|
+
type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerInitializedEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | WorkerStatusRequestEventData | ChatWorkersStatusRequestEventData | ChatWorkersStatusResponseEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskInfoUpdateEventData | TaskArtifactsUpdatedEventData | MergeRequestEventData | TaskStoppedEventData | SubTaskResultUpdatedEventData | SystemMessageEventData | CreditExhaustedEventData | RtcIceServersRequestEventData | RtcIceServersResponseEventData | MachineRtcRequestEventData | MachineRtcResponseEventData | RtcSignalEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
|
|
11440
12316
|
type EventMap = {
|
|
11441
12317
|
"app-alive": AppAliveEventData;
|
|
11442
12318
|
"api-server-alive": ApiServerAliveEventData;
|
|
@@ -11448,6 +12324,8 @@ type EventMap = {
|
|
|
11448
12324
|
"worker-exit": WorkerExitEventData;
|
|
11449
12325
|
"worker-running": WorkerRunningEventData;
|
|
11450
12326
|
"worker-status-request": WorkerStatusRequestEventData;
|
|
12327
|
+
"chat-workers-status-request": ChatWorkersStatusRequestEventData;
|
|
12328
|
+
"chat-workers-status-response": ChatWorkersStatusResponseEventData;
|
|
11451
12329
|
"create-task": CreateTaskEventData;
|
|
11452
12330
|
"resume-task": ResumeTaskEventData;
|
|
11453
12331
|
"cancel-task": CancelTaskEventData;
|
|
@@ -11464,7 +12342,7 @@ type EventMap = {
|
|
|
11464
12342
|
"deploy-agent": DeployAgentEventData;
|
|
11465
12343
|
"deploy-agent-complete": DeployAgentCompleteEventData;
|
|
11466
12344
|
"task-stopped": TaskStoppedEventData;
|
|
11467
|
-
"sub-task-
|
|
12345
|
+
"sub-task-result-updated": SubTaskResultUpdatedEventData;
|
|
11468
12346
|
"associate-repo": AssociateRepoEventData;
|
|
11469
12347
|
"system-message": SystemMessageEventData;
|
|
11470
12348
|
"credit-exhausted": CreditExhaustedEventData;
|
|
@@ -12075,5 +12953,89 @@ declare function decodeRtcChunkHeader(data: Uint8Array): RtcChunkHeader;
|
|
|
12075
12953
|
declare function buildRtcChunkFrame(header: RtcChunkHeader, payload: Uint8Array): Uint8Array;
|
|
12076
12954
|
declare function splitRtcChunkFrame(data: Uint8Array): RtcChunkFrame;
|
|
12077
12955
|
|
|
12078
|
-
|
|
12079
|
-
|
|
12956
|
+
/**
|
|
12957
|
+
* Preview detection types - platform-agnostic
|
|
12958
|
+
* Used by both CLI (Node.js fs) and App (HTTP API)
|
|
12959
|
+
*
|
|
12960
|
+
* Note: PreviewMetadata, PreviewProjectType, and PreviewMethod are defined in ../websocket/events.ts
|
|
12961
|
+
* This file only defines the FileSystemAdapter interface
|
|
12962
|
+
*/
|
|
12963
|
+
/**
|
|
12964
|
+
* File system abstraction for platform-agnostic detection
|
|
12965
|
+
* CLI provides fs-based implementation, App provides API-based implementation
|
|
12966
|
+
*/
|
|
12967
|
+
interface FileSystemAdapter {
|
|
12968
|
+
/**
|
|
12969
|
+
* List all files in directory recursively (relative paths)
|
|
12970
|
+
* @param maxDepth - Maximum recursion depth (default: 3)
|
|
12971
|
+
* @returns Array of relative file paths
|
|
12972
|
+
*/
|
|
12973
|
+
listFiles(maxDepth?: number): Promise<string[]>;
|
|
12974
|
+
/**
|
|
12975
|
+
* Read file content as string
|
|
12976
|
+
* @param path - Relative file path
|
|
12977
|
+
* @returns File content or null if not exists
|
|
12978
|
+
*/
|
|
12979
|
+
readFile(path: string): Promise<string | null>;
|
|
12980
|
+
/**
|
|
12981
|
+
* Check if file exists
|
|
12982
|
+
* @param path - Relative file path
|
|
12983
|
+
*/
|
|
12984
|
+
fileExists(path: string): Promise<boolean>;
|
|
12985
|
+
}
|
|
12986
|
+
|
|
12987
|
+
/**
|
|
12988
|
+
* Configuration for preview detection - merged from CLI and App
|
|
12989
|
+
* Contains all file patterns and extensions for project type detection
|
|
12990
|
+
*/
|
|
12991
|
+
/**
|
|
12992
|
+
* Static file extensions for gallery mode
|
|
12993
|
+
* Merged from CLI and App implementations
|
|
12994
|
+
*/
|
|
12995
|
+
declare const STATIC_FILE_EXTENSIONS: {
|
|
12996
|
+
readonly images: readonly [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp", ".svg", ".ico"];
|
|
12997
|
+
readonly videos: readonly [".mp4", ".mov", ".avi", ".webm", ".mkv", ".m4v", ".flv", ".wmv"];
|
|
12998
|
+
readonly documents: readonly [".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx"];
|
|
12999
|
+
readonly text: readonly [".txt", ".md", ".markdown", ".json", ".yaml", ".yml", ".csv", ".xml"];
|
|
13000
|
+
readonly html: readonly [".html", ".htm"];
|
|
13001
|
+
};
|
|
13002
|
+
/**
|
|
13003
|
+
* Directories to ignore during file scanning
|
|
13004
|
+
*/
|
|
13005
|
+
declare const IGNORED_DIRECTORIES: string[];
|
|
13006
|
+
/**
|
|
13007
|
+
* Entry file paths for each project type (merged from CLI and App)
|
|
13008
|
+
* Ordered by priority (most specific first)
|
|
13009
|
+
*/
|
|
13010
|
+
declare const ENTRY_FILE_PATTERNS: {
|
|
13011
|
+
readonly html: readonly ["index.html", "src/index.html"];
|
|
13012
|
+
readonly react: readonly ["index.html", "public/index.html", "src/index.tsx", "src/index.jsx", "src/index.ts", "src/index.js", "src/main.tsx", "src/main.ts", "src/main.jsx", "src/main.js", "src/App.tsx", "src/App.jsx", "index.tsx", "index.jsx", "index.js", "App.tsx", "App.jsx"];
|
|
13013
|
+
readonly vue: readonly ["index.html", "src/main.ts", "src/main.js", "src/index.ts", "src/index.js", "src/App.vue", "App.vue"];
|
|
13014
|
+
readonly vite: readonly ["index.html", "src/main.tsx", "src/main.ts", "src/main.jsx", "src/main.js", "src/index.tsx", "src/index.ts", "src/App.tsx", "src/App.jsx"];
|
|
13015
|
+
readonly nextjs: readonly ["pages/index.tsx", "pages/index.jsx", "app/page.tsx", "src/pages/index.tsx", "src/app/page.tsx"];
|
|
13016
|
+
};
|
|
13017
|
+
/**
|
|
13018
|
+
* Config file patterns for framework detection
|
|
13019
|
+
*/
|
|
13020
|
+
declare const CONFIG_FILES: {
|
|
13021
|
+
readonly vite: readonly ["vite.config.js", "vite.config.ts", "vite.config.mjs"];
|
|
13022
|
+
readonly nextjs: readonly ["next.config.js", "next.config.mjs", "next.config.ts"];
|
|
13023
|
+
};
|
|
13024
|
+
/**
|
|
13025
|
+
* Dependencies that should be included in preview metadata
|
|
13026
|
+
* Only relevant packages are sent to reduce payload size
|
|
13027
|
+
*/
|
|
13028
|
+
declare const RELEVANT_DEPENDENCIES: readonly ["react", "react-dom", "vue", "vite", "next", "tailwindcss", "@vitejs/plugin-react", "@vitejs/plugin-vue"];
|
|
13029
|
+
|
|
13030
|
+
/**
|
|
13031
|
+
* Platform-agnostic preview detection logic
|
|
13032
|
+
* Works with both Node.js fs (CLI) and HTTP API (App)
|
|
13033
|
+
*/
|
|
13034
|
+
|
|
13035
|
+
/**
|
|
13036
|
+
* Main entry point: detect preview metadata from file system
|
|
13037
|
+
*/
|
|
13038
|
+
declare function detectPreview(fs: FileSystemAdapter): Promise<PreviewMetadata | null>;
|
|
13039
|
+
|
|
13040
|
+
export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentCustomConfigSchema, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentPermissionsSchema, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ApprovePrRequestSchema, ApprovePrResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, AskUserMessageSchema, AskUserOptionSchema, AskUserQuestionSchema, AskUserResponseMessageSchema, AskUserResponseReasonSchema, AskUserResponseStatusSchema, AssociateRepoEventDataSchema, BillingStatsResponseSchema, BranchSchema, CONFIG_FILES, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ChatWorkersStatusRequestSchema, ChatWorkersStatusResponseSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateDraftAgentRequestSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreateTaskShareResponseSchema, CreateTaskShareSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, DeployAgentCompleteEventSchema, DeployAgentEventSchema, DisplayConfigKeysSchema, DisplayConfigSchema, DraftAgentConfigSchema, DraftAgentSchema, ENTRY_FILE_PATTERNS, EnvironmentVariableSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FillEventsRequestSchema, FindTaskByAgentRequestSchema, FindTaskByAgentResponseSchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetEnvironmentVariablesResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetTaskSessionResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GetUserAgentsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IGNORED_DIRECTORIES, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsQuerySchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MachineRtcRequestSchema, MachineRtcResponseSchema, MergePullRequestEventSchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, PreviewMetadataSchema, PreviewMethodSchema, PreviewProjectTypeSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, PublishDraftAgentRequestSchema, PublishDraftAgentResponseSchema, QueryEventsRequestSchema, RELEVANT_DEPENDENCIES, RTC_CHUNK_HEADER_SIZE, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, RpcCallEventSchema, RpcResponseSchema, RtcChunkFlags, RtcIceServerSchema, RtcIceServersRequestSchema, RtcIceServersResponseSchema, RtcSignalSchema, STATIC_FILE_EXTENSIONS, SendTaskMessageRequestSchema, SendTaskMessageResponseSchema, SetEnvironmentVariablesRequestSchema, ShareAuthQuerySchema, ShareAuthResponseSchema, ShowModalEventDataSchema, ShowModalRequestSchema, ShowModalResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SubTaskArtifactsSummarySchema, SubTaskGitStatsSchema, SubTaskResultUpdatedEventSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsMessageSchema, TaskArtifactsUpdatedEventSchema, TaskInfoUpdateEventDataSchema, TaskItemSchema, TaskMessageSchema, TaskSharePermissionsSchema, TaskStateChangeEventSchema, TaskStoppedEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateChatContextRequestSchema, UpdateChatContextResponseSchema, UpdateDraftAgentRequestSchema, UpdateDraftAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UpdateTaskTitleRequestSchema, UpdateTaskTitleResponseSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializedSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkerStatusRequestSchema, WorkerStatusValueSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, buildRtcChunkFrame, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decodeRtcChunkHeader, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, detectPreview, discoverPlugins, encodeBase64, encodeBase64Url, encodeRtcChunkHeader, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, isAskUserMessage, isAskUserResponseMessage, isSDKMessage, isTaskArtifactsMessage, loadAgentConfig, machineAuth, permissionResponseRequestSchema, replacePromptPlaceholders, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, splitRtcChunkFrame, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
|
|
13041
|
+
export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentCustomConfig, AgentMetadata, AgentPermissions, AgentType, AgentrixContext, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ApprovePrRequest, ApprovePrResponse, ArchiveTaskRequest, ArchiveTaskResponse, AskUserMessage, AskUserOption, AskUserQuestion, AskUserResponseMessage, AskUserResponseReason, AskUserResponseStatus, AssociateRepoEventData, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ChatWorkersStatusRequestEventData, ChatWorkersStatusResponseEventData, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateDraftAgentRequest, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreateTaskShareRequest, CreateTaskShareResponse, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, DeployAgentCompleteEventData, DeployAgentEventData, DisplayConfig, DisplayConfigKeys, DraftAgent, DraftAgentConfig, EnvironmentVariable, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileSystemAdapter, FileVisibility, FillEventsRequest, FillEventsResponse, FindTaskByAgentRequest, FindTaskByAgentResponse, FrameworkType, GetAgentResponse, GetChatResponse, GetEnvironmentVariablesResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetTaskSessionResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GetUserAgentsResponse, GitHubIssue, GitHubIssueListItem, GitServer, HookFactory, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsQuery, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LocalMachine, LogoutResponse, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MachineRtcRequestEventData, MachineRtcResponseEventData, MergePullRequestAck, MergePullRequestEventData, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, PreviewMetadata, PreviewMethod, PreviewProjectType, ProjectDirectoryResponse, ProjectEntry, PublishDraftAgentRequest, PublishDraftAgentResponse, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, RpcCallEventData, RpcResponseData, RtcChunkFrame, RtcChunkHeader, RtcControlChannel, RtcControlMessage, RtcIceServer, RtcIceServersRequestEventData, RtcIceServersResponseEventData, RtcSignalEventData, SendMessageTarget, SendTaskMessageRequest, SendTaskMessageResponse, SetEnvironmentVariablesRequest, ShareAuthQuery, ShareAuthResponse, ShowModalEventData, ShowModalRequest, ShowModalResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SubTaskArtifactsSummary, SubTaskGitStats, SubTaskResultUpdatedEventData, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsMessage, TaskArtifactsUpdatedEventData, TaskEvent, TaskInfoUpdateEventData, TaskItem, TaskMessageEventData, TaskMessagePayload, TaskSharePermissions, TaskState, TaskStateChangeEventData, TaskStoppedEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateChatContextRequest, UpdateChatContextResponse, UpdateDraftAgentRequest, UpdateDraftAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UpdateTaskTitleRequest, UpdateTaskTitleResponse, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializedEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerStatusRequestEventData, WorkerStatusValue, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
|