codebuff 1.0.104 → 1.0.108

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.
@@ -61,15 +61,15 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
61
61
  type: "ephemeral";
62
62
  }>>;
63
63
  }, "strip", z.ZodTypeAny, {
64
- content: string;
65
64
  type: "tool_result";
65
+ content: string;
66
66
  tool_use_id: string;
67
67
  cache_control?: {
68
68
  type: "ephemeral";
69
69
  } | undefined;
70
70
  }, {
71
- content: string;
72
71
  type: "tool_result";
72
+ content: string;
73
73
  tool_use_id: string;
74
74
  cache_control?: {
75
75
  type: "ephemeral";
@@ -139,15 +139,15 @@ declare const MessageSchema: z.ZodObject<{
139
139
  type: "ephemeral";
140
140
  }>>;
141
141
  }, "strip", z.ZodTypeAny, {
142
- content: string;
143
142
  type: "tool_result";
143
+ content: string;
144
144
  tool_use_id: string;
145
145
  cache_control?: {
146
146
  type: "ephemeral";
147
147
  } | undefined;
148
148
  }, {
149
- content: string;
150
149
  type: "tool_result";
150
+ content: string;
151
151
  tool_use_id: string;
152
152
  cache_control?: {
153
153
  type: "ephemeral";
@@ -169,8 +169,8 @@ declare const MessageSchema: z.ZodObject<{
169
169
  type: "ephemeral";
170
170
  } | undefined;
171
171
  } | {
172
- content: string;
173
172
  type: "tool_result";
173
+ content: string;
174
174
  tool_use_id: string;
175
175
  cache_control?: {
176
176
  type: "ephemeral";
@@ -193,8 +193,8 @@ declare const MessageSchema: z.ZodObject<{
193
193
  type: "ephemeral";
194
194
  } | undefined;
195
195
  } | {
196
- content: string;
197
196
  type: "tool_result";
197
+ content: string;
198
198
  tool_use_id: string;
199
199
  cache_control?: {
200
200
  type: "ephemeral";
@@ -209,13 +209,13 @@ export declare const FileChangeSchema: z.ZodObject<{
209
209
  filePath: z.ZodString;
210
210
  content: z.ZodString;
211
211
  }, "strip", z.ZodTypeAny, {
212
- content: string;
213
- type: "file" | "patch";
212
+ type: "patch" | "file";
214
213
  filePath: string;
215
- }, {
216
214
  content: string;
217
- type: "file" | "patch";
215
+ }, {
216
+ type: "patch" | "file";
218
217
  filePath: string;
218
+ content: string;
219
219
  }>;
220
220
  export type FileChange = z.infer<typeof FileChangeSchema>;
221
221
  export declare const CHANGES: z.ZodArray<z.ZodObject<{
@@ -223,13 +223,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
223
223
  filePath: z.ZodString;
224
224
  content: z.ZodString;
225
225
  }, "strip", z.ZodTypeAny, {
226
- content: string;
227
- type: "file" | "patch";
226
+ type: "patch" | "file";
228
227
  filePath: string;
229
- }, {
230
228
  content: string;
231
- type: "file" | "patch";
229
+ }, {
230
+ type: "patch" | "file";
232
231
  filePath: string;
232
+ content: string;
233
233
  }>, "many">;
234
234
  export type FileChanges = z.infer<typeof CHANGES>;
235
235
  export declare const ToolCallSchema: z.ZodObject<{
@@ -315,15 +315,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
315
315
  type: "ephemeral";
316
316
  }>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
- content: string;
319
318
  type: "tool_result";
319
+ content: string;
320
320
  tool_use_id: string;
321
321
  cache_control?: {
322
322
  type: "ephemeral";
323
323
  } | undefined;
324
324
  }, {
325
- content: string;
326
325
  type: "tool_result";
326
+ content: string;
327
327
  tool_use_id: string;
328
328
  cache_control?: {
329
329
  type: "ephemeral";
@@ -345,8 +345,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
345
345
  type: "ephemeral";
346
346
  } | undefined;
347
347
  } | {
348
- content: string;
349
348
  type: "tool_result";
349
+ content: string;
350
350
  tool_use_id: string;
351
351
  cache_control?: {
352
352
  type: "ephemeral";
@@ -369,8 +369,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
369
369
  type: "ephemeral";
370
370
  } | undefined;
371
371
  } | {
372
- content: string;
373
372
  type: "tool_result";
373
+ content: string;
374
374
  tool_use_id: string;
375
375
  cache_control?: {
376
376
  type: "ephemeral";
@@ -451,13 +451,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
451
451
  filePath: z.ZodString;
452
452
  content: z.ZodString;
453
453
  }, "strip", z.ZodTypeAny, {
454
- content: string;
455
- type: "file" | "patch";
454
+ type: "patch" | "file";
456
455
  filePath: string;
457
- }, {
458
456
  content: string;
459
- type: "file" | "patch";
457
+ }, {
458
+ type: "patch" | "file";
460
459
  filePath: string;
460
+ content: string;
461
461
  }>, "many">;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  type: "user-input";
@@ -479,8 +479,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
479
479
  type: "ephemeral";
480
480
  } | undefined;
481
481
  } | {
482
- content: string;
483
482
  type: "tool_result";
483
+ content: string;
484
484
  tool_use_id: string;
485
485
  cache_control?: {
486
486
  type: "ephemeral";
@@ -507,9 +507,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
507
507
  }[][];
508
508
  };
509
509
  previousChanges: {
510
- content: string;
511
- type: "file" | "patch";
510
+ type: "patch" | "file";
512
511
  filePath: string;
512
+ content: string;
513
513
  }[];
514
514
  authToken?: string | undefined;
515
515
  }, {
@@ -532,8 +532,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
532
532
  type: "ephemeral";
533
533
  } | undefined;
534
534
  } | {
535
- content: string;
536
535
  type: "tool_result";
536
+ content: string;
537
537
  tool_use_id: string;
538
538
  cache_control?: {
539
539
  type: "ephemeral";
@@ -560,9 +560,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
560
560
  }[][];
561
561
  };
562
562
  previousChanges: {
563
- content: string;
564
- type: "file" | "patch";
563
+ type: "patch" | "file";
565
564
  filePath: string;
565
+ content: string;
566
566
  }[];
567
567
  authToken?: string | undefined;
568
568
  }>, z.ZodObject<{
@@ -761,6 +761,136 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
761
761
  authToken?: string | undefined;
762
762
  }>]>;
763
763
  export type ClientAction = z.infer<typeof CLIENT_ACTION_SCHEMA>;
764
+ export declare const UsageReponseSchema: z.ZodObject<{
765
+ type: z.ZodLiteral<"usage-response">;
766
+ usage: z.ZodNumber;
767
+ limit: z.ZodNumber;
768
+ referralLink: z.ZodOptional<z.ZodString>;
769
+ subscription_active: z.ZodBoolean;
770
+ next_quota_reset: z.ZodDate;
771
+ session_credits_used: z.ZodNumber;
772
+ }, "strip", z.ZodTypeAny, {
773
+ type: "usage-response";
774
+ usage: number;
775
+ limit: number;
776
+ subscription_active: boolean;
777
+ next_quota_reset: Date;
778
+ session_credits_used: number;
779
+ referralLink?: string | undefined;
780
+ }, {
781
+ type: "usage-response";
782
+ usage: number;
783
+ limit: number;
784
+ subscription_active: boolean;
785
+ next_quota_reset: Date;
786
+ session_credits_used: number;
787
+ referralLink?: string | undefined;
788
+ }>;
789
+ export type UsageResponse = z.infer<typeof UsageReponseSchema>;
790
+ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
791
+ type: z.ZodLiteral<"init-response">;
792
+ }, Omit<{
793
+ type: z.ZodLiteral<"usage-response">;
794
+ usage: z.ZodNumber;
795
+ limit: z.ZodNumber;
796
+ referralLink: z.ZodOptional<z.ZodString>;
797
+ subscription_active: z.ZodBoolean;
798
+ next_quota_reset: z.ZodDate;
799
+ session_credits_used: z.ZodNumber;
800
+ }, "type">>, "strip", z.ZodTypeAny, {
801
+ type: "init-response";
802
+ usage: number;
803
+ limit: number;
804
+ subscription_active: boolean;
805
+ next_quota_reset: Date;
806
+ session_credits_used: number;
807
+ referralLink?: string | undefined;
808
+ }, {
809
+ type: "init-response";
810
+ usage: number;
811
+ limit: number;
812
+ subscription_active: boolean;
813
+ next_quota_reset: Date;
814
+ session_credits_used: number;
815
+ referralLink?: string | undefined;
816
+ }>;
817
+ export type InitResponse = z.infer<typeof InitResponseSchema>;
818
+ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShape<{
819
+ type: z.ZodLiteral<"response-complete">;
820
+ userInputId: z.ZodString;
821
+ response: z.ZodString;
822
+ changes: z.ZodArray<z.ZodObject<{
823
+ type: z.ZodEnum<["patch", "file"]>;
824
+ filePath: z.ZodString;
825
+ content: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ type: "patch" | "file";
828
+ filePath: string;
829
+ content: string;
830
+ }, {
831
+ type: "patch" | "file";
832
+ filePath: string;
833
+ content: string;
834
+ }>, "many">;
835
+ addedFileVersions: z.ZodArray<z.ZodObject<{
836
+ path: z.ZodString;
837
+ content: z.ZodString;
838
+ }, "strip", z.ZodTypeAny, {
839
+ path: string;
840
+ content: string;
841
+ }, {
842
+ path: string;
843
+ content: string;
844
+ }>, "many">;
845
+ resetFileVersions: z.ZodBoolean;
846
+ }, {
847
+ usage: z.ZodOptional<z.ZodNumber>;
848
+ limit: z.ZodOptional<z.ZodNumber>;
849
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
850
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
851
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
852
+ session_credits_used: z.ZodOptional<z.ZodNumber>;
853
+ }>, "strip", z.ZodTypeAny, {
854
+ type: "response-complete";
855
+ userInputId: string;
856
+ response: string;
857
+ changes: {
858
+ type: "patch" | "file";
859
+ filePath: string;
860
+ content: string;
861
+ }[];
862
+ addedFileVersions: {
863
+ path: string;
864
+ content: string;
865
+ }[];
866
+ resetFileVersions: boolean;
867
+ usage?: number | undefined;
868
+ limit?: number | undefined;
869
+ referralLink?: string | undefined;
870
+ subscription_active?: boolean | undefined;
871
+ next_quota_reset?: Date | undefined;
872
+ session_credits_used?: number | undefined;
873
+ }, {
874
+ type: "response-complete";
875
+ userInputId: string;
876
+ response: string;
877
+ changes: {
878
+ type: "patch" | "file";
879
+ filePath: string;
880
+ content: string;
881
+ }[];
882
+ addedFileVersions: {
883
+ path: string;
884
+ content: string;
885
+ }[];
886
+ resetFileVersions: boolean;
887
+ usage?: number | undefined;
888
+ limit?: number | undefined;
889
+ referralLink?: string | undefined;
890
+ subscription_active?: boolean | undefined;
891
+ next_quota_reset?: Date | undefined;
892
+ session_credits_used?: number | undefined;
893
+ }>;
764
894
  export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
765
895
  type: z.ZodLiteral<"response-chunk">;
766
896
  userInputId: z.ZodString;
@@ -773,7 +903,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
773
903
  type: "response-chunk";
774
904
  userInputId: string;
775
905
  chunk: string;
776
- }>, z.ZodObject<{
906
+ }>, z.ZodObject<z.objectUtil.extendShape<{
777
907
  type: z.ZodLiteral<"response-complete">;
778
908
  userInputId: z.ZodString;
779
909
  response: z.ZodString;
@@ -782,13 +912,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
782
912
  filePath: z.ZodString;
783
913
  content: z.ZodString;
784
914
  }, "strip", z.ZodTypeAny, {
785
- content: string;
786
- type: "file" | "patch";
915
+ type: "patch" | "file";
787
916
  filePath: string;
788
- }, {
789
917
  content: string;
790
- type: "file" | "patch";
918
+ }, {
919
+ type: "patch" | "file";
791
920
  filePath: string;
921
+ content: string;
792
922
  }>, "many">;
793
923
  addedFileVersions: z.ZodArray<z.ZodObject<{
794
924
  path: z.ZodString;
@@ -801,18 +931,21 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
801
931
  content: string;
802
932
  }>, "many">;
803
933
  resetFileVersions: z.ZodBoolean;
934
+ }, {
804
935
  usage: z.ZodOptional<z.ZodNumber>;
805
936
  limit: z.ZodOptional<z.ZodNumber>;
937
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
806
938
  subscription_active: z.ZodOptional<z.ZodBoolean>;
807
- referralLink: z.ZodOptional<z.ZodString>;
808
- }, "strip", z.ZodTypeAny, {
939
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
940
+ session_credits_used: z.ZodOptional<z.ZodNumber>;
941
+ }>, "strip", z.ZodTypeAny, {
809
942
  type: "response-complete";
810
943
  userInputId: string;
811
944
  response: string;
812
945
  changes: {
813
- content: string;
814
- type: "file" | "patch";
946
+ type: "patch" | "file";
815
947
  filePath: string;
948
+ content: string;
816
949
  }[];
817
950
  addedFileVersions: {
818
951
  path: string;
@@ -821,16 +954,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
821
954
  resetFileVersions: boolean;
822
955
  usage?: number | undefined;
823
956
  limit?: number | undefined;
824
- subscription_active?: boolean | undefined;
825
957
  referralLink?: string | undefined;
958
+ subscription_active?: boolean | undefined;
959
+ next_quota_reset?: Date | undefined;
960
+ session_credits_used?: number | undefined;
826
961
  }, {
827
962
  type: "response-complete";
828
963
  userInputId: string;
829
964
  response: string;
830
965
  changes: {
831
- content: string;
832
- type: "file" | "patch";
966
+ type: "patch" | "file";
833
967
  filePath: string;
968
+ content: string;
834
969
  }[];
835
970
  addedFileVersions: {
836
971
  path: string;
@@ -839,8 +974,10 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
839
974
  resetFileVersions: boolean;
840
975
  usage?: number | undefined;
841
976
  limit?: number | undefined;
842
- subscription_active?: boolean | undefined;
843
977
  referralLink?: string | undefined;
978
+ subscription_active?: boolean | undefined;
979
+ next_quota_reset?: Date | undefined;
980
+ session_credits_used?: number | undefined;
844
981
  }>, z.ZodObject<{
845
982
  type: z.ZodLiteral<"read-files">;
846
983
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -872,13 +1009,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
872
1009
  filePath: z.ZodString;
873
1010
  content: z.ZodString;
874
1011
  }, "strip", z.ZodTypeAny, {
875
- content: string;
876
- type: "file" | "patch";
1012
+ type: "patch" | "file";
877
1013
  filePath: string;
878
- }, {
879
1014
  content: string;
880
- type: "file" | "patch";
1015
+ }, {
1016
+ type: "patch" | "file";
881
1017
  filePath: string;
1018
+ content: string;
882
1019
  }>, "many">;
883
1020
  addedFileVersions: z.ZodArray<z.ZodObject<{
884
1021
  path: z.ZodString;
@@ -896,9 +1033,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
896
1033
  userInputId: string;
897
1034
  response: string;
898
1035
  changes: {
899
- content: string;
900
- type: "file" | "patch";
1036
+ type: "patch" | "file";
901
1037
  filePath: string;
1038
+ content: string;
902
1039
  }[];
903
1040
  addedFileVersions: {
904
1041
  path: string;
@@ -915,9 +1052,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
915
1052
  userInputId: string;
916
1053
  response: string;
917
1054
  changes: {
918
- content: string;
919
- type: "file" | "patch";
1055
+ type: "patch" | "file";
920
1056
  filePath: string;
1057
+ content: string;
921
1058
  }[];
922
1059
  addedFileVersions: {
923
1060
  path: string;
@@ -953,12 +1090,32 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
953
1090
  type: "npm-version-status";
954
1091
  isUpToDate: boolean;
955
1092
  latestVersion: string;
956
- }>, z.ZodObject<{
1093
+ }>, z.ZodObject<z.objectUtil.extendShape<{
957
1094
  type: z.ZodLiteral<"init-response">;
958
- }, "strip", z.ZodTypeAny, {
1095
+ }, Omit<{
1096
+ type: z.ZodLiteral<"usage-response">;
1097
+ usage: z.ZodNumber;
1098
+ limit: z.ZodNumber;
1099
+ referralLink: z.ZodOptional<z.ZodString>;
1100
+ subscription_active: z.ZodBoolean;
1101
+ next_quota_reset: z.ZodDate;
1102
+ session_credits_used: z.ZodNumber;
1103
+ }, "type">>, "strip", z.ZodTypeAny, {
959
1104
  type: "init-response";
1105
+ usage: number;
1106
+ limit: number;
1107
+ subscription_active: boolean;
1108
+ next_quota_reset: Date;
1109
+ session_credits_used: number;
1110
+ referralLink?: string | undefined;
960
1111
  }, {
961
1112
  type: "init-response";
1113
+ usage: number;
1114
+ limit: number;
1115
+ subscription_active: boolean;
1116
+ next_quota_reset: Date;
1117
+ session_credits_used: number;
1118
+ referralLink?: string | undefined;
962
1119
  }>, z.ZodObject<{
963
1120
  type: z.ZodLiteral<"auth-result">;
964
1121
  user: z.ZodOptional<z.ZodObject<{
@@ -969,41 +1126,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
969
1126
  fingerprintId: z.ZodString;
970
1127
  fingerprintHash: z.ZodString;
971
1128
  }, "strip", z.ZodTypeAny, {
972
- email: string;
973
1129
  name: string | null;
974
1130
  id: string;
975
1131
  fingerprintId: string;
976
1132
  authToken: string;
1133
+ email: string;
977
1134
  fingerprintHash: string;
978
1135
  }, {
979
- email: string;
980
1136
  name: string | null;
981
1137
  id: string;
982
1138
  fingerprintId: string;
983
1139
  authToken: string;
1140
+ email: string;
984
1141
  fingerprintHash: string;
985
1142
  }>>;
986
1143
  message: z.ZodString;
987
1144
  }, "strip", z.ZodTypeAny, {
988
- message: string;
989
1145
  type: "auth-result";
1146
+ message: string;
990
1147
  user?: {
991
- email: string;
992
1148
  name: string | null;
993
1149
  id: string;
994
1150
  fingerprintId: string;
995
1151
  authToken: string;
1152
+ email: string;
996
1153
  fingerprintHash: string;
997
1154
  } | undefined;
998
1155
  }, {
999
- message: string;
1000
1156
  type: "auth-result";
1157
+ message: string;
1001
1158
  user?: {
1002
- email: string;
1003
1159
  name: string | null;
1004
1160
  id: string;
1005
1161
  fingerprintId: string;
1006
1162
  authToken: string;
1163
+ email: string;
1007
1164
  fingerprintHash: string;
1008
1165
  } | undefined;
1009
1166
  }>, z.ZodObject<{
@@ -1027,27 +1184,33 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1027
1184
  limit: z.ZodNumber;
1028
1185
  referralLink: z.ZodOptional<z.ZodString>;
1029
1186
  subscription_active: z.ZodBoolean;
1187
+ next_quota_reset: z.ZodDate;
1188
+ session_credits_used: z.ZodNumber;
1030
1189
  }, "strip", z.ZodTypeAny, {
1031
1190
  type: "usage-response";
1032
1191
  usage: number;
1033
1192
  limit: number;
1034
1193
  subscription_active: boolean;
1194
+ next_quota_reset: Date;
1195
+ session_credits_used: number;
1035
1196
  referralLink?: string | undefined;
1036
1197
  }, {
1037
1198
  type: "usage-response";
1038
1199
  usage: number;
1039
1200
  limit: number;
1040
1201
  subscription_active: boolean;
1202
+ next_quota_reset: Date;
1203
+ session_credits_used: number;
1041
1204
  referralLink?: string | undefined;
1042
1205
  }>, z.ZodObject<{
1043
1206
  type: z.ZodLiteral<"action-error">;
1044
1207
  message: z.ZodString;
1045
1208
  }, "strip", z.ZodTypeAny, {
1046
- message: string;
1047
1209
  type: "action-error";
1048
- }, {
1049
1210
  message: string;
1211
+ }, {
1050
1212
  type: "action-error";
1213
+ message: string;
1051
1214
  }>, z.ZodObject<{
1052
1215
  type: z.ZodLiteral<"commit-message-response">;
1053
1216
  commitMessage: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SERVER_ACTION_SCHEMA = exports.CLIENT_ACTION_SCHEMA = exports.ToolCallSchema = exports.CHANGES = exports.FileChangeSchema = void 0;
3
+ exports.SERVER_ACTION_SCHEMA = exports.ResponseCompleteSchema = exports.InitResponseSchema = exports.UsageReponseSchema = exports.CLIENT_ACTION_SCHEMA = exports.ToolCallSchema = exports.CHANGES = exports.FileChangeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const file_1 = require("./util/file");
6
6
  const credentials_1 = require("./util/credentials");
@@ -106,24 +106,41 @@ exports.CLIENT_ACTION_SCHEMA = zod_1.z.discriminatedUnion('type', [
106
106
  stagedChanges: zod_1.z.string(),
107
107
  }),
108
108
  ]);
109
+ exports.UsageReponseSchema = zod_1.z.object({
110
+ type: zod_1.z.literal('usage-response'),
111
+ usage: zod_1.z.number(),
112
+ limit: zod_1.z.number(),
113
+ referralLink: zod_1.z.string().optional(),
114
+ subscription_active: zod_1.z.boolean(),
115
+ next_quota_reset: zod_1.z.coerce.date(),
116
+ session_credits_used: zod_1.z.number(),
117
+ });
118
+ exports.InitResponseSchema = zod_1.z
119
+ .object({
120
+ type: zod_1.z.literal('init-response'),
121
+ })
122
+ .merge(exports.UsageReponseSchema.omit({
123
+ type: true,
124
+ }));
125
+ exports.ResponseCompleteSchema = zod_1.z
126
+ .object({
127
+ type: zod_1.z.literal('response-complete'),
128
+ userInputId: zod_1.z.string(),
129
+ response: zod_1.z.string(),
130
+ changes: exports.CHANGES,
131
+ addedFileVersions: zod_1.z.array(file_1.FileVersionSchema),
132
+ resetFileVersions: zod_1.z.boolean(),
133
+ })
134
+ .merge(exports.UsageReponseSchema.omit({
135
+ type: true,
136
+ }).partial());
109
137
  exports.SERVER_ACTION_SCHEMA = zod_1.z.discriminatedUnion('type', [
110
138
  zod_1.z.object({
111
139
  type: zod_1.z.literal('response-chunk'),
112
140
  userInputId: zod_1.z.string(),
113
141
  chunk: zod_1.z.string(),
114
142
  }),
115
- zod_1.z.object({
116
- type: zod_1.z.literal('response-complete'),
117
- userInputId: zod_1.z.string(),
118
- response: zod_1.z.string(),
119
- changes: exports.CHANGES,
120
- addedFileVersions: zod_1.z.array(file_1.FileVersionSchema),
121
- resetFileVersions: zod_1.z.boolean(),
122
- usage: zod_1.z.number().optional(),
123
- limit: zod_1.z.number().optional(),
124
- subscription_active: zod_1.z.boolean().optional(),
125
- referralLink: zod_1.z.string().optional(),
126
- }),
143
+ exports.ResponseCompleteSchema,
127
144
  zod_1.z.object({
128
145
  type: zod_1.z.literal('read-files'),
129
146
  filePaths: zod_1.z.array(zod_1.z.string()),
@@ -147,9 +164,7 @@ exports.SERVER_ACTION_SCHEMA = zod_1.z.discriminatedUnion('type', [
147
164
  isUpToDate: zod_1.z.boolean(),
148
165
  latestVersion: zod_1.z.string(),
149
166
  }),
150
- zod_1.z.object({
151
- type: zod_1.z.literal('init-response'),
152
- }),
167
+ exports.InitResponseSchema,
153
168
  zod_1.z.object({
154
169
  type: zod_1.z.literal('auth-result'),
155
170
  user: credentials_1.userSchema.optional(),
@@ -161,13 +176,7 @@ exports.SERVER_ACTION_SCHEMA = zod_1.z.discriminatedUnion('type', [
161
176
  fingerprintHash: zod_1.z.string(),
162
177
  loginUrl: zod_1.z.string().url(),
163
178
  }),
164
- zod_1.z.object({
165
- type: zod_1.z.literal('usage-response'),
166
- usage: zod_1.z.number(),
167
- limit: zod_1.z.number(),
168
- referralLink: zod_1.z.string().optional(),
169
- subscription_active: zod_1.z.boolean(),
170
- }),
179
+ exports.UsageReponseSchema,
171
180
  zod_1.z.object({
172
181
  type: zod_1.z.literal('action-error'),
173
182
  message: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,sCAAyE;AACzE,oDAA+C;AAE/C,MAAM,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC;IACzC,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,aAAa,EAAE,OAAC;aACb,MAAM,CAAC;YACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,WAAW,CAAC;SAC7B,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B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