codebuff 1.0.107 → 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<{
@@ -734,14 +734,14 @@ 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
- authToken: string;
738
737
  fingerprintId: string;
738
+ authToken: string;
739
739
  fingerprintHash: string;
740
740
  userId: string;
741
741
  }, {
742
742
  type: "clear-auth-token";
743
- authToken: string;
744
743
  fingerprintId: string;
744
+ authToken: string;
745
745
  fingerprintHash: string;
746
746
  userId: string;
747
747
  }>, z.ZodObject<{
@@ -824,13 +824,13 @@ 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
- content: string;
828
- type: "file" | "patch";
827
+ type: "patch" | "file";
829
828
  filePath: string;
830
- }, {
831
829
  content: string;
832
- type: "file" | "patch";
830
+ }, {
831
+ type: "patch" | "file";
833
832
  filePath: string;
833
+ content: string;
834
834
  }>, "many">;
835
835
  addedFileVersions: z.ZodArray<z.ZodObject<{
836
836
  path: z.ZodString;
@@ -855,9 +855,9 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
855
855
  userInputId: string;
856
856
  response: string;
857
857
  changes: {
858
- content: string;
859
- type: "file" | "patch";
858
+ type: "patch" | "file";
860
859
  filePath: string;
860
+ content: string;
861
861
  }[];
862
862
  addedFileVersions: {
863
863
  path: string;
@@ -875,9 +875,9 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
875
875
  userInputId: string;
876
876
  response: string;
877
877
  changes: {
878
- content: string;
879
- type: "file" | "patch";
878
+ type: "patch" | "file";
880
879
  filePath: string;
880
+ content: string;
881
881
  }[];
882
882
  addedFileVersions: {
883
883
  path: string;
@@ -912,13 +912,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
912
912
  filePath: z.ZodString;
913
913
  content: z.ZodString;
914
914
  }, "strip", z.ZodTypeAny, {
915
- content: string;
916
- type: "file" | "patch";
915
+ type: "patch" | "file";
917
916
  filePath: string;
918
- }, {
919
917
  content: string;
920
- type: "file" | "patch";
918
+ }, {
919
+ type: "patch" | "file";
921
920
  filePath: string;
921
+ content: string;
922
922
  }>, "many">;
923
923
  addedFileVersions: z.ZodArray<z.ZodObject<{
924
924
  path: z.ZodString;
@@ -943,9 +943,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
943
943
  userInputId: string;
944
944
  response: string;
945
945
  changes: {
946
- content: string;
947
- type: "file" | "patch";
946
+ type: "patch" | "file";
948
947
  filePath: string;
948
+ content: string;
949
949
  }[];
950
950
  addedFileVersions: {
951
951
  path: string;
@@ -963,9 +963,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
963
963
  userInputId: string;
964
964
  response: string;
965
965
  changes: {
966
- content: string;
967
- type: "file" | "patch";
966
+ type: "patch" | "file";
968
967
  filePath: string;
968
+ content: string;
969
969
  }[];
970
970
  addedFileVersions: {
971
971
  path: string;
@@ -1009,13 +1009,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1009
1009
  filePath: z.ZodString;
1010
1010
  content: z.ZodString;
1011
1011
  }, "strip", z.ZodTypeAny, {
1012
- content: string;
1013
- type: "file" | "patch";
1012
+ type: "patch" | "file";
1014
1013
  filePath: string;
1015
- }, {
1016
1014
  content: string;
1017
- type: "file" | "patch";
1015
+ }, {
1016
+ type: "patch" | "file";
1018
1017
  filePath: string;
1018
+ content: string;
1019
1019
  }>, "many">;
1020
1020
  addedFileVersions: z.ZodArray<z.ZodObject<{
1021
1021
  path: z.ZodString;
@@ -1033,9 +1033,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1033
1033
  userInputId: string;
1034
1034
  response: string;
1035
1035
  changes: {
1036
- content: string;
1037
- type: "file" | "patch";
1036
+ type: "patch" | "file";
1038
1037
  filePath: string;
1038
+ content: string;
1039
1039
  }[];
1040
1040
  addedFileVersions: {
1041
1041
  path: string;
@@ -1052,9 +1052,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1052
1052
  userInputId: string;
1053
1053
  response: string;
1054
1054
  changes: {
1055
- content: string;
1056
- type: "file" | "patch";
1055
+ type: "patch" | "file";
1057
1056
  filePath: string;
1057
+ content: string;
1058
1058
  }[];
1059
1059
  addedFileVersions: {
1060
1060
  path: string;
@@ -1126,41 +1126,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1126
1126
  fingerprintId: z.ZodString;
1127
1127
  fingerprintHash: z.ZodString;
1128
1128
  }, "strip", z.ZodTypeAny, {
1129
- email: string;
1130
1129
  name: string | null;
1131
1130
  id: string;
1132
- authToken: string;
1133
1131
  fingerprintId: string;
1132
+ authToken: string;
1133
+ email: string;
1134
1134
  fingerprintHash: string;
1135
1135
  }, {
1136
- email: string;
1137
1136
  name: string | null;
1138
1137
  id: string;
1139
- authToken: string;
1140
1138
  fingerprintId: string;
1139
+ authToken: string;
1140
+ email: string;
1141
1141
  fingerprintHash: string;
1142
1142
  }>>;
1143
1143
  message: z.ZodString;
1144
1144
  }, "strip", z.ZodTypeAny, {
1145
- message: string;
1146
1145
  type: "auth-result";
1146
+ message: string;
1147
1147
  user?: {
1148
- email: string;
1149
1148
  name: string | null;
1150
1149
  id: string;
1151
- authToken: string;
1152
1150
  fingerprintId: string;
1151
+ authToken: string;
1152
+ email: string;
1153
1153
  fingerprintHash: string;
1154
1154
  } | undefined;
1155
1155
  }, {
1156
- message: string;
1157
1156
  type: "auth-result";
1157
+ message: string;
1158
1158
  user?: {
1159
- email: string;
1160
1159
  name: string | null;
1161
1160
  id: string;
1162
- authToken: string;
1163
1161
  fingerprintId: string;
1162
+ authToken: string;
1163
+ email: string;
1164
1164
  fingerprintHash: string;
1165
1165
  } | undefined;
1166
1166
  }>, z.ZodObject<{
@@ -1206,11 +1206,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1206
1206
  type: z.ZodLiteral<"action-error">;
1207
1207
  message: z.ZodString;
1208
1208
  }, "strip", z.ZodTypeAny, {
1209
- message: string;
1210
1209
  type: "action-error";
1211
- }, {
1212
1210
  message: string;
1211
+ }, {
1213
1212
  type: "action-error";
1213
+ message: string;
1214
1214
  }>, z.ZodObject<{
1215
1215
  type: z.ZodLiteral<"commit-message-response">;
1216
1216
  commitMessage: z.ZodString;
@@ -4,7 +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 SKIPPED_TERMINAL_COMMANDS: string[];
6
6
  export declare const MAX_DATE: Date;
7
- export type UsageLimits = 'ANON' | 'FREE' | 'PAID';
7
+ export type UsageLimits = 'ANON' | 'FREE' | 'PAID' | 'PRO_PLUS';
8
8
  export declare const CREDITS_USAGE_LIMITS: Record<UsageLimits, number>;
9
9
  export declare const CREDITS_REFERRAL_BONUS = 500;
10
10
  export declare const claudeModels: {
@@ -50,11 +50,13 @@ exports.CREDITS_USAGE_LIMITS = process.env.NEXT_PUBLIC_ENVIRONMENT === 'local'
50
50
  ANON: 1_000_000,
51
51
  FREE: 2_500_000,
52
52
  PAID: 10_000_000,
53
+ PRO_PLUS: 55_000_000,
53
54
  }
54
55
  : {
55
56
  ANON: 750,
56
57
  FREE: 1_500,
57
58
  PAID: 10_000,
59
+ PRO_PLUS: 55_000,
58
60
  };
59
61
  exports.CREDITS_REFERRAL_BONUS = 500;
60
62
  exports.claudeModels = {
@@ -1 +1 @@
1
- {"version":3,"file":"const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AAA;AAEG,QAAA,MAAM,GAAG;IACpB,GAAG,oBAAY;IACf,GAAG,oBAAY;CAChB,CAAA;AAEY,QAAA,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAErB,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,kBAAkB,GAAG,GAAG,GAAG,cAAc,CAAA;AACzC,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAA;AAEY,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AAGnC,QAAA,oBAAoB,GAC/B,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,OAAO;IAC7C,CAAC,CAAC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;KACrB;IACH,CAAC,CAAC;QACE,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;KACjB,CAAA;AACM,QAAA,sBAAsB,GAAG,GAAG,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