codebuff 1.0.113 → 1.0.115

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
- type: "tool_result";
65
64
  content: string;
65
+ type: "tool_result";
66
66
  tool_use_id: string;
67
67
  cache_control?: {
68
68
  type: "ephemeral";
69
69
  } | undefined;
70
70
  }, {
71
- type: "tool_result";
72
71
  content: string;
72
+ type: "tool_result";
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
- type: "tool_result";
143
142
  content: string;
143
+ type: "tool_result";
144
144
  tool_use_id: string;
145
145
  cache_control?: {
146
146
  type: "ephemeral";
147
147
  } | undefined;
148
148
  }, {
149
- type: "tool_result";
150
149
  content: string;
150
+ type: "tool_result";
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
- type: "tool_result";
173
172
  content: string;
173
+ type: "tool_result";
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
- type: "tool_result";
197
196
  content: string;
197
+ type: "tool_result";
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
- type: "patch" | "file";
213
- filePath: string;
214
212
  content: string;
215
- }, {
216
- type: "patch" | "file";
213
+ type: "file" | "patch";
217
214
  filePath: string;
215
+ }, {
218
216
  content: string;
217
+ type: "file" | "patch";
218
+ filePath: 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
- type: "patch" | "file";
227
- filePath: string;
228
226
  content: string;
229
- }, {
230
- type: "patch" | "file";
227
+ type: "file" | "patch";
231
228
  filePath: string;
229
+ }, {
232
230
  content: string;
231
+ type: "file" | "patch";
232
+ filePath: 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
- type: "tool_result";
319
318
  content: string;
319
+ type: "tool_result";
320
320
  tool_use_id: string;
321
321
  cache_control?: {
322
322
  type: "ephemeral";
323
323
  } | undefined;
324
324
  }, {
325
- type: "tool_result";
326
325
  content: string;
326
+ type: "tool_result";
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
- type: "tool_result";
349
348
  content: string;
349
+ type: "tool_result";
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
- type: "tool_result";
373
372
  content: string;
373
+ type: "tool_result";
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
- type: "patch" | "file";
455
- filePath: string;
456
454
  content: string;
457
- }, {
458
- type: "patch" | "file";
455
+ type: "file" | "patch";
459
456
  filePath: string;
457
+ }, {
460
458
  content: string;
459
+ type: "file" | "patch";
460
+ filePath: 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
- type: "tool_result";
483
482
  content: string;
483
+ type: "tool_result";
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
  changesAlreadyApplied: {
510
- type: "patch" | "file";
511
- filePath: string;
512
510
  content: string;
511
+ type: "file" | "patch";
512
+ filePath: 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
- type: "tool_result";
536
535
  content: string;
536
+ type: "tool_result";
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
  changesAlreadyApplied: {
563
- type: "patch" | "file";
564
- filePath: string;
565
563
  content: string;
564
+ type: "file" | "patch";
565
+ filePath: string;
566
566
  }[];
567
567
  authToken?: string | undefined;
568
568
  }>, z.ZodObject<{
@@ -734,16 +734,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
734
734
  fingerprintHash: z.ZodString;
735
735
  }, "strip", z.ZodTypeAny, {
736
736
  type: "clear-auth-token";
737
- fingerprintId: string;
737
+ userId: string;
738
738
  authToken: string;
739
+ fingerprintId: string;
739
740
  fingerprintHash: string;
740
- userId: string;
741
741
  }, {
742
742
  type: "clear-auth-token";
743
- fingerprintId: string;
743
+ userId: string;
744
744
  authToken: string;
745
+ fingerprintId: string;
745
746
  fingerprintHash: string;
746
- userId: string;
747
747
  }>, z.ZodObject<{
748
748
  type: z.ZodLiteral<"generate-commit-message">;
749
749
  fingerprintId: z.ZodString;
@@ -771,18 +771,18 @@ export declare const UsageReponseSchema: z.ZodObject<{
771
771
  session_credits_used: z.ZodNumber;
772
772
  }, "strip", z.ZodTypeAny, {
773
773
  type: "usage-response";
774
- usage: number;
775
- limit: number;
776
774
  subscription_active: boolean;
777
775
  next_quota_reset: Date;
776
+ usage: number;
777
+ limit: number;
778
778
  session_credits_used: number;
779
779
  referralLink?: string | undefined;
780
780
  }, {
781
781
  type: "usage-response";
782
- usage: number;
783
- limit: number;
784
782
  subscription_active: boolean;
785
783
  next_quota_reset: Date;
784
+ usage: number;
785
+ limit: number;
786
786
  session_credits_used: number;
787
787
  referralLink?: string | undefined;
788
788
  }>;
@@ -799,18 +799,18 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
799
799
  session_credits_used: z.ZodNumber;
800
800
  }, "type">>, "strip", z.ZodTypeAny, {
801
801
  type: "init-response";
802
- usage: number;
803
- limit: number;
804
802
  subscription_active: boolean;
805
803
  next_quota_reset: Date;
804
+ usage: number;
805
+ limit: number;
806
806
  session_credits_used: number;
807
807
  referralLink?: string | undefined;
808
808
  }, {
809
809
  type: "init-response";
810
- usage: number;
811
- limit: number;
812
810
  subscription_active: boolean;
813
811
  next_quota_reset: Date;
812
+ usage: number;
813
+ limit: number;
814
814
  session_credits_used: number;
815
815
  referralLink?: string | undefined;
816
816
  }>;
@@ -824,26 +824,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
824
824
  filePath: z.ZodString;
825
825
  content: z.ZodString;
826
826
  }, "strip", z.ZodTypeAny, {
827
- type: "patch" | "file";
828
- filePath: string;
829
827
  content: string;
830
- }, {
831
- type: "patch" | "file";
828
+ type: "file" | "patch";
832
829
  filePath: string;
830
+ }, {
833
831
  content: string;
832
+ type: "file" | "patch";
833
+ filePath: string;
834
834
  }>, "many">;
835
835
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
836
836
  type: z.ZodEnum<["patch", "file"]>;
837
837
  filePath: z.ZodString;
838
838
  content: z.ZodString;
839
839
  }, "strip", z.ZodTypeAny, {
840
- type: "patch" | "file";
841
- filePath: string;
842
840
  content: string;
843
- }, {
844
- type: "patch" | "file";
841
+ type: "file" | "patch";
845
842
  filePath: string;
843
+ }, {
846
844
  content: string;
845
+ type: "file" | "patch";
846
+ filePath: string;
847
847
  }>, "many">;
848
848
  addedFileVersions: z.ZodArray<z.ZodObject<{
849
849
  path: z.ZodString;
@@ -857,61 +857,61 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
857
857
  }>, "many">;
858
858
  resetFileVersions: z.ZodBoolean;
859
859
  }, {
860
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
861
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
860
862
  usage: z.ZodOptional<z.ZodNumber>;
861
863
  limit: z.ZodOptional<z.ZodNumber>;
862
864
  referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
863
- subscription_active: z.ZodOptional<z.ZodBoolean>;
864
- next_quota_reset: z.ZodOptional<z.ZodDate>;
865
865
  session_credits_used: z.ZodOptional<z.ZodNumber>;
866
866
  }>, "strip", z.ZodTypeAny, {
867
867
  type: "response-complete";
868
+ response: string;
868
869
  userInputId: string;
869
870
  changesAlreadyApplied: {
870
- type: "patch" | "file";
871
- filePath: string;
872
871
  content: string;
872
+ type: "file" | "patch";
873
+ filePath: string;
873
874
  }[];
874
- response: string;
875
875
  changes: {
876
- type: "patch" | "file";
877
- filePath: string;
878
876
  content: string;
877
+ type: "file" | "patch";
878
+ filePath: string;
879
879
  }[];
880
880
  addedFileVersions: {
881
881
  path: string;
882
882
  content: string;
883
883
  }[];
884
884
  resetFileVersions: boolean;
885
+ subscription_active?: boolean | undefined;
886
+ next_quota_reset?: Date | undefined;
885
887
  usage?: number | undefined;
886
888
  limit?: number | undefined;
887
889
  referralLink?: string | undefined;
888
- subscription_active?: boolean | undefined;
889
- next_quota_reset?: Date | undefined;
890
890
  session_credits_used?: number | undefined;
891
891
  }, {
892
892
  type: "response-complete";
893
+ response: string;
893
894
  userInputId: string;
894
895
  changesAlreadyApplied: {
895
- type: "patch" | "file";
896
- filePath: string;
897
896
  content: string;
897
+ type: "file" | "patch";
898
+ filePath: string;
898
899
  }[];
899
- response: string;
900
900
  changes: {
901
- type: "patch" | "file";
902
- filePath: string;
903
901
  content: string;
902
+ type: "file" | "patch";
903
+ filePath: string;
904
904
  }[];
905
905
  addedFileVersions: {
906
906
  path: string;
907
907
  content: string;
908
908
  }[];
909
909
  resetFileVersions: boolean;
910
+ subscription_active?: boolean | undefined;
911
+ next_quota_reset?: Date | undefined;
910
912
  usage?: number | undefined;
911
913
  limit?: number | undefined;
912
914
  referralLink?: string | undefined;
913
- subscription_active?: boolean | undefined;
914
- next_quota_reset?: Date | undefined;
915
915
  session_credits_used?: number | undefined;
916
916
  }>;
917
917
  export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -935,26 +935,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
935
935
  filePath: z.ZodString;
936
936
  content: z.ZodString;
937
937
  }, "strip", z.ZodTypeAny, {
938
- type: "patch" | "file";
939
- filePath: string;
940
938
  content: string;
941
- }, {
942
- type: "patch" | "file";
939
+ type: "file" | "patch";
943
940
  filePath: string;
941
+ }, {
944
942
  content: string;
943
+ type: "file" | "patch";
944
+ filePath: string;
945
945
  }>, "many">;
946
946
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
947
947
  type: z.ZodEnum<["patch", "file"]>;
948
948
  filePath: z.ZodString;
949
949
  content: z.ZodString;
950
950
  }, "strip", z.ZodTypeAny, {
951
- type: "patch" | "file";
952
- filePath: string;
953
951
  content: string;
954
- }, {
955
- type: "patch" | "file";
952
+ type: "file" | "patch";
956
953
  filePath: string;
954
+ }, {
957
955
  content: string;
956
+ type: "file" | "patch";
957
+ filePath: string;
958
958
  }>, "many">;
959
959
  addedFileVersions: z.ZodArray<z.ZodObject<{
960
960
  path: z.ZodString;
@@ -968,61 +968,61 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
968
968
  }>, "many">;
969
969
  resetFileVersions: z.ZodBoolean;
970
970
  }, {
971
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
972
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
971
973
  usage: z.ZodOptional<z.ZodNumber>;
972
974
  limit: z.ZodOptional<z.ZodNumber>;
973
975
  referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
974
- subscription_active: z.ZodOptional<z.ZodBoolean>;
975
- next_quota_reset: z.ZodOptional<z.ZodDate>;
976
976
  session_credits_used: z.ZodOptional<z.ZodNumber>;
977
977
  }>, "strip", z.ZodTypeAny, {
978
978
  type: "response-complete";
979
+ response: string;
979
980
  userInputId: string;
980
981
  changesAlreadyApplied: {
981
- type: "patch" | "file";
982
- filePath: string;
983
982
  content: string;
983
+ type: "file" | "patch";
984
+ filePath: string;
984
985
  }[];
985
- response: string;
986
986
  changes: {
987
- type: "patch" | "file";
988
- filePath: string;
989
987
  content: string;
988
+ type: "file" | "patch";
989
+ filePath: string;
990
990
  }[];
991
991
  addedFileVersions: {
992
992
  path: string;
993
993
  content: string;
994
994
  }[];
995
995
  resetFileVersions: boolean;
996
+ subscription_active?: boolean | undefined;
997
+ next_quota_reset?: Date | undefined;
996
998
  usage?: number | undefined;
997
999
  limit?: number | undefined;
998
1000
  referralLink?: string | undefined;
999
- subscription_active?: boolean | undefined;
1000
- next_quota_reset?: Date | undefined;
1001
1001
  session_credits_used?: number | undefined;
1002
1002
  }, {
1003
1003
  type: "response-complete";
1004
+ response: string;
1004
1005
  userInputId: string;
1005
1006
  changesAlreadyApplied: {
1006
- type: "patch" | "file";
1007
- filePath: string;
1008
1007
  content: string;
1008
+ type: "file" | "patch";
1009
+ filePath: string;
1009
1010
  }[];
1010
- response: string;
1011
1011
  changes: {
1012
- type: "patch" | "file";
1013
- filePath: string;
1014
1012
  content: string;
1013
+ type: "file" | "patch";
1014
+ filePath: string;
1015
1015
  }[];
1016
1016
  addedFileVersions: {
1017
1017
  path: string;
1018
1018
  content: string;
1019
1019
  }[];
1020
1020
  resetFileVersions: boolean;
1021
+ subscription_active?: boolean | undefined;
1022
+ next_quota_reset?: Date | undefined;
1021
1023
  usage?: number | undefined;
1022
1024
  limit?: number | undefined;
1023
1025
  referralLink?: string | undefined;
1024
- subscription_active?: boolean | undefined;
1025
- next_quota_reset?: Date | undefined;
1026
1026
  session_credits_used?: number | undefined;
1027
1027
  }>, z.ZodObject<{
1028
1028
  type: z.ZodLiteral<"read-files">;
@@ -1055,26 +1055,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1055
1055
  filePath: z.ZodString;
1056
1056
  content: z.ZodString;
1057
1057
  }, "strip", z.ZodTypeAny, {
1058
- type: "patch" | "file";
1059
- filePath: string;
1060
1058
  content: string;
1061
- }, {
1062
- type: "patch" | "file";
1059
+ type: "file" | "patch";
1063
1060
  filePath: string;
1061
+ }, {
1064
1062
  content: string;
1063
+ type: "file" | "patch";
1064
+ filePath: string;
1065
1065
  }>, "many">;
1066
1066
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1067
1067
  type: z.ZodEnum<["patch", "file"]>;
1068
1068
  filePath: z.ZodString;
1069
1069
  content: z.ZodString;
1070
1070
  }, "strip", z.ZodTypeAny, {
1071
- type: "patch" | "file";
1072
- filePath: string;
1073
1071
  content: string;
1074
- }, {
1075
- type: "patch" | "file";
1072
+ type: "file" | "patch";
1076
1073
  filePath: string;
1074
+ }, {
1077
1075
  content: string;
1076
+ type: "file" | "patch";
1077
+ filePath: string;
1078
1078
  }>, "many">;
1079
1079
  addedFileVersions: z.ZodArray<z.ZodObject<{
1080
1080
  path: z.ZodString;
@@ -1089,52 +1089,52 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1089
1089
  resetFileVersions: z.ZodBoolean;
1090
1090
  }, "strip", z.ZodTypeAny, {
1091
1091
  type: "tool-call";
1092
+ data: {
1093
+ name: string;
1094
+ id: string;
1095
+ input: Record<string, any>;
1096
+ };
1097
+ response: string;
1092
1098
  userInputId: string;
1093
1099
  changesAlreadyApplied: {
1094
- type: "patch" | "file";
1095
- filePath: string;
1096
1100
  content: string;
1101
+ type: "file" | "patch";
1102
+ filePath: string;
1097
1103
  }[];
1098
- response: string;
1099
1104
  changes: {
1100
- type: "patch" | "file";
1101
- filePath: string;
1102
1105
  content: string;
1106
+ type: "file" | "patch";
1107
+ filePath: string;
1103
1108
  }[];
1104
1109
  addedFileVersions: {
1105
1110
  path: string;
1106
1111
  content: string;
1107
1112
  }[];
1108
1113
  resetFileVersions: boolean;
1114
+ }, {
1115
+ type: "tool-call";
1109
1116
  data: {
1110
1117
  name: string;
1111
1118
  id: string;
1112
1119
  input: Record<string, any>;
1113
1120
  };
1114
- }, {
1115
- type: "tool-call";
1121
+ response: string;
1116
1122
  userInputId: string;
1117
1123
  changesAlreadyApplied: {
1118
- type: "patch" | "file";
1119
- filePath: string;
1120
1124
  content: string;
1125
+ type: "file" | "patch";
1126
+ filePath: string;
1121
1127
  }[];
1122
- response: string;
1123
1128
  changes: {
1124
- type: "patch" | "file";
1125
- filePath: string;
1126
1129
  content: string;
1130
+ type: "file" | "patch";
1131
+ filePath: string;
1127
1132
  }[];
1128
1133
  addedFileVersions: {
1129
1134
  path: string;
1130
1135
  content: string;
1131
1136
  }[];
1132
1137
  resetFileVersions: boolean;
1133
- data: {
1134
- name: string;
1135
- id: string;
1136
- input: Record<string, any>;
1137
- };
1138
1138
  }>, z.ZodObject<{
1139
1139
  type: z.ZodLiteral<"terminal-command-result">;
1140
1140
  userInputId: z.ZodString;
@@ -1171,18 +1171,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1171
1171
  session_credits_used: z.ZodNumber;
1172
1172
  }, "type">>, "strip", z.ZodTypeAny, {
1173
1173
  type: "init-response";
1174
- usage: number;
1175
- limit: number;
1176
1174
  subscription_active: boolean;
1177
1175
  next_quota_reset: Date;
1176
+ usage: number;
1177
+ limit: number;
1178
1178
  session_credits_used: number;
1179
1179
  referralLink?: string | undefined;
1180
1180
  }, {
1181
1181
  type: "init-response";
1182
- usage: number;
1183
- limit: number;
1184
1182
  subscription_active: boolean;
1185
1183
  next_quota_reset: Date;
1184
+ usage: number;
1185
+ limit: number;
1186
1186
  session_credits_used: number;
1187
1187
  referralLink?: string | undefined;
1188
1188
  }>, z.ZodObject<{
@@ -1195,41 +1195,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1195
1195
  fingerprintId: z.ZodString;
1196
1196
  fingerprintHash: z.ZodString;
1197
1197
  }, "strip", z.ZodTypeAny, {
1198
+ email: string;
1198
1199
  name: string | null;
1199
1200
  id: string;
1200
- fingerprintId: string;
1201
1201
  authToken: string;
1202
- email: string;
1202
+ fingerprintId: string;
1203
1203
  fingerprintHash: string;
1204
1204
  }, {
1205
+ email: string;
1205
1206
  name: string | null;
1206
1207
  id: string;
1207
- fingerprintId: string;
1208
1208
  authToken: string;
1209
- email: string;
1209
+ fingerprintId: string;
1210
1210
  fingerprintHash: string;
1211
1211
  }>>;
1212
1212
  message: z.ZodString;
1213
1213
  }, "strip", z.ZodTypeAny, {
1214
- type: "auth-result";
1215
1214
  message: string;
1215
+ type: "auth-result";
1216
1216
  user?: {
1217
+ email: string;
1217
1218
  name: string | null;
1218
1219
  id: string;
1219
- fingerprintId: string;
1220
1220
  authToken: string;
1221
- email: string;
1221
+ fingerprintId: string;
1222
1222
  fingerprintHash: string;
1223
1223
  } | undefined;
1224
1224
  }, {
1225
- type: "auth-result";
1226
1225
  message: string;
1226
+ type: "auth-result";
1227
1227
  user?: {
1228
+ email: string;
1228
1229
  name: string | null;
1229
1230
  id: string;
1230
- fingerprintId: string;
1231
1231
  authToken: string;
1232
- email: string;
1232
+ fingerprintId: string;
1233
1233
  fingerprintHash: string;
1234
1234
  } | undefined;
1235
1235
  }>, z.ZodObject<{
@@ -1257,29 +1257,29 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1257
1257
  session_credits_used: z.ZodNumber;
1258
1258
  }, "strip", z.ZodTypeAny, {
1259
1259
  type: "usage-response";
1260
- usage: number;
1261
- limit: number;
1262
1260
  subscription_active: boolean;
1263
1261
  next_quota_reset: Date;
1262
+ usage: number;
1263
+ limit: number;
1264
1264
  session_credits_used: number;
1265
1265
  referralLink?: string | undefined;
1266
1266
  }, {
1267
1267
  type: "usage-response";
1268
- usage: number;
1269
- limit: number;
1270
1268
  subscription_active: boolean;
1271
1269
  next_quota_reset: Date;
1270
+ usage: number;
1271
+ limit: number;
1272
1272
  session_credits_used: number;
1273
1273
  referralLink?: string | undefined;
1274
1274
  }>, z.ZodObject<{
1275
1275
  type: z.ZodLiteral<"action-error">;
1276
1276
  message: z.ZodString;
1277
1277
  }, "strip", z.ZodTypeAny, {
1278
- type: "action-error";
1279
1278
  message: string;
1280
- }, {
1281
1279
  type: "action-error";
1280
+ }, {
1282
1281
  message: string;
1282
+ type: "action-error";
1283
1283
  }>, z.ZodObject<{
1284
1284
  type: z.ZodLiteral<"commit-message-response">;
1285
1285
  commitMessage: z.ZodString;
@@ -4,6 +4,7 @@ export declare const TOOL_RESULT_MARKER: string;
4
4
  export declare const EXISTING_CODE_MARKER = "[[**REPLACE_WITH_EXISTING_CODE**]]";
5
5
  export declare const DEFAULT_IGNORED_FILES: string[];
6
6
  export declare const SKIPPED_TERMINAL_COMMANDS: string[];
7
+ export declare const REQUEST_CREDIT_SHOW_THRESHOLD = 1;
7
8
  export declare const MAX_DATE: Date;
8
9
  export type UsageLimits = 'ANON' | 'FREE' | 'PAID' | 'PRO_PLUS';
9
10
  export declare const CREDITS_USAGE_LIMITS: Record<UsageLimits, number>;