codebuff 1.0.123 → 1.0.124

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";
@@ -389,13 +389,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
389
389
  diffCached: z.ZodString;
390
390
  lastCommitMessages: z.ZodString;
391
391
  }, "strip", z.ZodTypeAny, {
392
- diff: string;
393
392
  status: string;
393
+ diff: string;
394
394
  diffCached: string;
395
395
  lastCommitMessages: string;
396
396
  }, {
397
- diff: string;
398
397
  status: string;
398
+ diff: string;
399
399
  diffCached: string;
400
400
  lastCommitMessages: string;
401
401
  }>;
@@ -439,8 +439,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
439
439
  fileTokenScores: Record<string, Record<string, number>>;
440
440
  knowledgeFiles: Record<string, string>;
441
441
  gitChanges: {
442
- diff: string;
443
442
  status: string;
443
+ diff: string;
444
444
  diffCached: string;
445
445
  lastCommitMessages: string;
446
446
  };
@@ -464,8 +464,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
464
464
  fileTokenScores: Record<string, Record<string, number>>;
465
465
  knowledgeFiles: Record<string, string>;
466
466
  gitChanges: {
467
- diff: string;
468
467
  status: string;
468
+ diff: string;
469
469
  diffCached: string;
470
470
  lastCommitMessages: string;
471
471
  };
@@ -489,13 +489,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
489
489
  filePath: z.ZodString;
490
490
  content: z.ZodString;
491
491
  }, "strip", z.ZodTypeAny, {
492
- type: "patch" | "file";
493
- filePath: string;
494
492
  content: string;
495
- }, {
496
- type: "patch" | "file";
493
+ type: "file" | "patch";
497
494
  filePath: string;
495
+ }, {
498
496
  content: string;
497
+ type: "file" | "patch";
498
+ filePath: string;
499
499
  }>, "many">;
500
500
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
501
501
  }, "strip", z.ZodTypeAny, {
@@ -518,8 +518,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
518
518
  type: "ephemeral";
519
519
  } | undefined;
520
520
  } | {
521
- type: "tool_result";
522
521
  content: string;
522
+ type: "tool_result";
523
523
  tool_use_id: string;
524
524
  cache_control?: {
525
525
  type: "ephemeral";
@@ -533,8 +533,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
533
533
  fileTokenScores: Record<string, Record<string, number>>;
534
534
  knowledgeFiles: Record<string, string>;
535
535
  gitChanges: {
536
- diff: string;
537
536
  status: string;
537
+ diff: string;
538
538
  diffCached: string;
539
539
  lastCommitMessages: string;
540
540
  };
@@ -554,9 +554,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
554
554
  }[][];
555
555
  };
556
556
  changesAlreadyApplied: {
557
- type: "patch" | "file";
558
- filePath: string;
559
557
  content: string;
558
+ type: "file" | "patch";
559
+ filePath: string;
560
560
  }[];
561
561
  costMode: "lite" | "normal" | "pro";
562
562
  authToken?: string | undefined;
@@ -580,8 +580,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
580
580
  type: "ephemeral";
581
581
  } | undefined;
582
582
  } | {
583
- type: "tool_result";
584
583
  content: string;
584
+ type: "tool_result";
585
585
  tool_use_id: string;
586
586
  cache_control?: {
587
587
  type: "ephemeral";
@@ -595,8 +595,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
595
595
  fileTokenScores: Record<string, Record<string, number>>;
596
596
  knowledgeFiles: Record<string, string>;
597
597
  gitChanges: {
598
- diff: string;
599
598
  status: string;
599
+ diff: string;
600
600
  diffCached: string;
601
601
  lastCommitMessages: string;
602
602
  };
@@ -616,9 +616,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
616
616
  }[][];
617
617
  };
618
618
  changesAlreadyApplied: {
619
- type: "patch" | "file";
620
- filePath: string;
621
619
  content: string;
620
+ type: "file" | "patch";
621
+ filePath: string;
622
622
  }[];
623
623
  authToken?: string | undefined;
624
624
  costMode?: "lite" | "normal" | "pro" | undefined;
@@ -646,13 +646,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
646
646
  diffCached: z.ZodString;
647
647
  lastCommitMessages: z.ZodString;
648
648
  }, "strip", z.ZodTypeAny, {
649
- diff: string;
650
649
  status: string;
650
+ diff: string;
651
651
  diffCached: string;
652
652
  lastCommitMessages: string;
653
653
  }, {
654
- diff: string;
655
654
  status: string;
655
+ diff: string;
656
656
  diffCached: string;
657
657
  lastCommitMessages: string;
658
658
  }>;
@@ -696,8 +696,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
696
696
  fileTokenScores: Record<string, Record<string, number>>;
697
697
  knowledgeFiles: Record<string, string>;
698
698
  gitChanges: {
699
- diff: string;
700
699
  status: string;
700
+ diff: string;
701
701
  diffCached: string;
702
702
  lastCommitMessages: string;
703
703
  };
@@ -721,8 +721,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
721
721
  fileTokenScores: Record<string, Record<string, number>>;
722
722
  knowledgeFiles: Record<string, string>;
723
723
  gitChanges: {
724
- diff: string;
725
724
  status: string;
725
+ diff: string;
726
726
  diffCached: string;
727
727
  lastCommitMessages: string;
728
728
  };
@@ -750,8 +750,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
750
750
  fileTokenScores: Record<string, Record<string, number>>;
751
751
  knowledgeFiles: Record<string, string>;
752
752
  gitChanges: {
753
- diff: string;
754
753
  status: string;
754
+ diff: string;
755
755
  diffCached: string;
756
756
  lastCommitMessages: string;
757
757
  };
@@ -780,8 +780,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
780
780
  fileTokenScores: Record<string, Record<string, number>>;
781
781
  knowledgeFiles: Record<string, string>;
782
782
  gitChanges: {
783
- diff: string;
784
783
  status: string;
784
+ diff: string;
785
785
  diffCached: string;
786
786
  lastCommitMessages: string;
787
787
  };
@@ -845,16 +845,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
845
845
  fingerprintHash: z.ZodString;
846
846
  }, "strip", z.ZodTypeAny, {
847
847
  type: "clear-auth-token";
848
+ userId: string;
848
849
  fingerprintId: string;
849
850
  authToken: string;
850
851
  fingerprintHash: string;
851
- userId: string;
852
852
  }, {
853
853
  type: "clear-auth-token";
854
+ userId: string;
854
855
  fingerprintId: string;
855
856
  authToken: string;
856
857
  fingerprintHash: string;
857
- userId: string;
858
858
  }>, z.ZodObject<{
859
859
  type: z.ZodLiteral<"generate-commit-message">;
860
860
  fingerprintId: z.ZodString;
@@ -882,19 +882,19 @@ export declare const UsageReponseSchema: z.ZodObject<{
882
882
  session_credits_used: z.ZodNumber;
883
883
  }, "strip", z.ZodTypeAny, {
884
884
  type: "usage-response";
885
- usage: number;
886
- limit: number;
887
- subscription_active: boolean;
888
885
  next_quota_reset: Date;
886
+ subscription_active: boolean;
887
+ limit: number;
889
888
  session_credits_used: number;
889
+ usage: number;
890
890
  referralLink?: string | undefined;
891
891
  }, {
892
892
  type: "usage-response";
893
- usage: number;
894
- limit: number;
895
- subscription_active: boolean;
896
893
  next_quota_reset: Date;
894
+ subscription_active: boolean;
895
+ limit: number;
897
896
  session_credits_used: number;
897
+ usage: number;
898
898
  referralLink?: string | undefined;
899
899
  }>;
900
900
  export type UsageResponse = z.infer<typeof UsageReponseSchema>;
@@ -910,19 +910,19 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
910
910
  session_credits_used: z.ZodNumber;
911
911
  }, "type">>, "strip", z.ZodTypeAny, {
912
912
  type: "init-response";
913
- usage: number;
914
- limit: number;
915
- subscription_active: boolean;
916
913
  next_quota_reset: Date;
914
+ subscription_active: boolean;
915
+ limit: number;
917
916
  session_credits_used: number;
917
+ usage: number;
918
918
  referralLink?: string | undefined;
919
919
  }, {
920
920
  type: "init-response";
921
- usage: number;
922
- limit: number;
923
- subscription_active: boolean;
924
921
  next_quota_reset: Date;
922
+ subscription_active: boolean;
923
+ limit: number;
925
924
  session_credits_used: number;
925
+ usage: number;
926
926
  referralLink?: string | undefined;
927
927
  }>;
928
928
  export type InitResponse = z.infer<typeof InitResponseSchema>;
@@ -935,26 +935,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
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,62 +968,62 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
968
968
  }>, "many">;
969
969
  resetFileVersions: z.ZodBoolean;
970
970
  }, {
971
- usage: z.ZodOptional<z.ZodNumber>;
972
- limit: z.ZodOptional<z.ZodNumber>;
973
- referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
974
- subscription_active: z.ZodOptional<z.ZodBoolean>;
975
971
  next_quota_reset: z.ZodOptional<z.ZodDate>;
972
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
973
+ limit: z.ZodOptional<z.ZodNumber>;
976
974
  session_credits_used: z.ZodOptional<z.ZodNumber>;
975
+ usage: z.ZodOptional<z.ZodNumber>;
976
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
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
- usage?: number | undefined;
997
- limit?: number | undefined;
998
- referralLink?: string | undefined;
999
- subscription_active?: boolean | undefined;
1000
996
  next_quota_reset?: Date | undefined;
997
+ subscription_active?: boolean | undefined;
998
+ limit?: number | undefined;
1001
999
  session_credits_used?: number | undefined;
1000
+ usage?: number | undefined;
1001
+ referralLink?: string | 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
- usage?: number | undefined;
1022
- limit?: number | undefined;
1023
- referralLink?: string | undefined;
1024
- subscription_active?: boolean | undefined;
1025
1021
  next_quota_reset?: Date | undefined;
1022
+ subscription_active?: boolean | undefined;
1023
+ limit?: number | undefined;
1026
1024
  session_credits_used?: number | undefined;
1025
+ usage?: number | undefined;
1026
+ referralLink?: string | undefined;
1027
1027
  }>;
1028
1028
  export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1029
1029
  type: z.ZodLiteral<"response-chunk">;
@@ -1046,26 +1046,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1046
1046
  filePath: z.ZodString;
1047
1047
  content: z.ZodString;
1048
1048
  }, "strip", z.ZodTypeAny, {
1049
- type: "patch" | "file";
1050
- filePath: string;
1051
1049
  content: string;
1052
- }, {
1053
- type: "patch" | "file";
1050
+ type: "file" | "patch";
1054
1051
  filePath: string;
1052
+ }, {
1055
1053
  content: string;
1054
+ type: "file" | "patch";
1055
+ filePath: string;
1056
1056
  }>, "many">;
1057
1057
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1058
1058
  type: z.ZodEnum<["patch", "file"]>;
1059
1059
  filePath: z.ZodString;
1060
1060
  content: z.ZodString;
1061
1061
  }, "strip", z.ZodTypeAny, {
1062
- type: "patch" | "file";
1063
- filePath: string;
1064
1062
  content: string;
1065
- }, {
1066
- type: "patch" | "file";
1063
+ type: "file" | "patch";
1067
1064
  filePath: string;
1065
+ }, {
1068
1066
  content: string;
1067
+ type: "file" | "patch";
1068
+ filePath: string;
1069
1069
  }>, "many">;
1070
1070
  addedFileVersions: z.ZodArray<z.ZodObject<{
1071
1071
  path: z.ZodString;
@@ -1079,62 +1079,62 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1079
1079
  }>, "many">;
1080
1080
  resetFileVersions: z.ZodBoolean;
1081
1081
  }, {
1082
- usage: z.ZodOptional<z.ZodNumber>;
1083
- limit: z.ZodOptional<z.ZodNumber>;
1084
- referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1085
- subscription_active: z.ZodOptional<z.ZodBoolean>;
1086
1082
  next_quota_reset: z.ZodOptional<z.ZodDate>;
1083
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
1084
+ limit: z.ZodOptional<z.ZodNumber>;
1087
1085
  session_credits_used: z.ZodOptional<z.ZodNumber>;
1086
+ usage: z.ZodOptional<z.ZodNumber>;
1087
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1088
1088
  }>, "strip", z.ZodTypeAny, {
1089
1089
  type: "response-complete";
1090
+ response: string;
1090
1091
  userInputId: string;
1091
1092
  changesAlreadyApplied: {
1092
- type: "patch" | "file";
1093
- filePath: string;
1094
1093
  content: string;
1094
+ type: "file" | "patch";
1095
+ filePath: string;
1095
1096
  }[];
1096
- response: string;
1097
1097
  changes: {
1098
- type: "patch" | "file";
1099
- filePath: string;
1100
1098
  content: string;
1099
+ type: "file" | "patch";
1100
+ filePath: string;
1101
1101
  }[];
1102
1102
  addedFileVersions: {
1103
1103
  path: string;
1104
1104
  content: string;
1105
1105
  }[];
1106
1106
  resetFileVersions: boolean;
1107
- usage?: number | undefined;
1108
- limit?: number | undefined;
1109
- referralLink?: string | undefined;
1110
- subscription_active?: boolean | undefined;
1111
1107
  next_quota_reset?: Date | undefined;
1108
+ subscription_active?: boolean | undefined;
1109
+ limit?: number | undefined;
1112
1110
  session_credits_used?: number | undefined;
1111
+ usage?: number | undefined;
1112
+ referralLink?: string | undefined;
1113
1113
  }, {
1114
1114
  type: "response-complete";
1115
+ response: string;
1115
1116
  userInputId: string;
1116
1117
  changesAlreadyApplied: {
1117
- type: "patch" | "file";
1118
- filePath: string;
1119
1118
  content: string;
1119
+ type: "file" | "patch";
1120
+ filePath: string;
1120
1121
  }[];
1121
- response: string;
1122
1122
  changes: {
1123
- type: "patch" | "file";
1124
- filePath: string;
1125
1123
  content: string;
1124
+ type: "file" | "patch";
1125
+ filePath: string;
1126
1126
  }[];
1127
1127
  addedFileVersions: {
1128
1128
  path: string;
1129
1129
  content: string;
1130
1130
  }[];
1131
1131
  resetFileVersions: boolean;
1132
- usage?: number | undefined;
1133
- limit?: number | undefined;
1134
- referralLink?: string | undefined;
1135
- subscription_active?: boolean | undefined;
1136
1132
  next_quota_reset?: Date | undefined;
1133
+ subscription_active?: boolean | undefined;
1134
+ limit?: number | undefined;
1137
1135
  session_credits_used?: number | undefined;
1136
+ usage?: number | undefined;
1137
+ referralLink?: string | undefined;
1138
1138
  }>, z.ZodObject<{
1139
1139
  type: z.ZodLiteral<"read-files">;
1140
1140
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -1166,26 +1166,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1166
1166
  filePath: z.ZodString;
1167
1167
  content: z.ZodString;
1168
1168
  }, "strip", z.ZodTypeAny, {
1169
- type: "patch" | "file";
1170
- filePath: string;
1171
1169
  content: string;
1172
- }, {
1173
- type: "patch" | "file";
1170
+ type: "file" | "patch";
1174
1171
  filePath: string;
1172
+ }, {
1175
1173
  content: string;
1174
+ type: "file" | "patch";
1175
+ filePath: string;
1176
1176
  }>, "many">;
1177
1177
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1178
1178
  type: z.ZodEnum<["patch", "file"]>;
1179
1179
  filePath: z.ZodString;
1180
1180
  content: z.ZodString;
1181
1181
  }, "strip", z.ZodTypeAny, {
1182
- type: "patch" | "file";
1183
- filePath: string;
1184
1182
  content: string;
1185
- }, {
1186
- type: "patch" | "file";
1183
+ type: "file" | "patch";
1187
1184
  filePath: string;
1185
+ }, {
1188
1186
  content: string;
1187
+ type: "file" | "patch";
1188
+ filePath: string;
1189
1189
  }>, "many">;
1190
1190
  addedFileVersions: z.ZodArray<z.ZodObject<{
1191
1191
  path: z.ZodString;
@@ -1200,64 +1200,64 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1200
1200
  resetFileVersions: z.ZodBoolean;
1201
1201
  }, "strip", z.ZodTypeAny, {
1202
1202
  type: "tool-call";
1203
+ data: {
1204
+ name: string;
1205
+ id: string;
1206
+ input: Record<string, any>;
1207
+ };
1208
+ response: string;
1203
1209
  userInputId: string;
1204
1210
  changesAlreadyApplied: {
1205
- type: "patch" | "file";
1206
- filePath: string;
1207
1211
  content: string;
1212
+ type: "file" | "patch";
1213
+ filePath: string;
1208
1214
  }[];
1209
- response: string;
1210
1215
  changes: {
1211
- type: "patch" | "file";
1212
- filePath: string;
1213
1216
  content: string;
1217
+ type: "file" | "patch";
1218
+ filePath: string;
1214
1219
  }[];
1215
1220
  addedFileVersions: {
1216
1221
  path: string;
1217
1222
  content: string;
1218
1223
  }[];
1219
1224
  resetFileVersions: boolean;
1225
+ }, {
1226
+ type: "tool-call";
1220
1227
  data: {
1221
1228
  name: string;
1222
1229
  id: string;
1223
1230
  input: Record<string, any>;
1224
1231
  };
1225
- }, {
1226
- type: "tool-call";
1232
+ response: string;
1227
1233
  userInputId: string;
1228
1234
  changesAlreadyApplied: {
1229
- type: "patch" | "file";
1230
- filePath: string;
1231
1235
  content: string;
1236
+ type: "file" | "patch";
1237
+ filePath: string;
1232
1238
  }[];
1233
- response: string;
1234
1239
  changes: {
1235
- type: "patch" | "file";
1236
- filePath: string;
1237
1240
  content: string;
1241
+ type: "file" | "patch";
1242
+ filePath: string;
1238
1243
  }[];
1239
1244
  addedFileVersions: {
1240
1245
  path: string;
1241
1246
  content: string;
1242
1247
  }[];
1243
1248
  resetFileVersions: boolean;
1244
- data: {
1245
- name: string;
1246
- id: string;
1247
- input: Record<string, any>;
1248
- };
1249
1249
  }>, z.ZodObject<{
1250
1250
  type: z.ZodLiteral<"terminal-command-result">;
1251
1251
  userInputId: z.ZodString;
1252
1252
  result: z.ZodString;
1253
1253
  }, "strip", z.ZodTypeAny, {
1254
1254
  type: "terminal-command-result";
1255
- userInputId: string;
1256
1255
  result: string;
1256
+ userInputId: string;
1257
1257
  }, {
1258
1258
  type: "terminal-command-result";
1259
- userInputId: string;
1260
1259
  result: string;
1260
+ userInputId: string;
1261
1261
  }>, z.ZodObject<{
1262
1262
  type: z.ZodLiteral<"npm-version-status">;
1263
1263
  isUpToDate: z.ZodBoolean;
@@ -1282,19 +1282,19 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1282
1282
  session_credits_used: z.ZodNumber;
1283
1283
  }, "type">>, "strip", z.ZodTypeAny, {
1284
1284
  type: "init-response";
1285
- usage: number;
1286
- limit: number;
1287
- subscription_active: boolean;
1288
1285
  next_quota_reset: Date;
1286
+ subscription_active: boolean;
1287
+ limit: number;
1289
1288
  session_credits_used: number;
1289
+ usage: number;
1290
1290
  referralLink?: string | undefined;
1291
1291
  }, {
1292
1292
  type: "init-response";
1293
- usage: number;
1294
- limit: number;
1295
- subscription_active: boolean;
1296
1293
  next_quota_reset: Date;
1294
+ subscription_active: boolean;
1295
+ limit: number;
1297
1296
  session_credits_used: number;
1297
+ usage: number;
1298
1298
  referralLink?: string | undefined;
1299
1299
  }>, z.ZodObject<{
1300
1300
  type: z.ZodLiteral<"auth-result">;
@@ -1306,41 +1306,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1306
1306
  fingerprintId: z.ZodString;
1307
1307
  fingerprintHash: z.ZodString;
1308
1308
  }, "strip", z.ZodTypeAny, {
1309
+ email: string;
1309
1310
  name: string | null;
1310
1311
  id: string;
1311
1312
  fingerprintId: string;
1312
1313
  authToken: string;
1313
- email: string;
1314
1314
  fingerprintHash: string;
1315
1315
  }, {
1316
+ email: string;
1316
1317
  name: string | null;
1317
1318
  id: string;
1318
1319
  fingerprintId: string;
1319
1320
  authToken: string;
1320
- email: string;
1321
1321
  fingerprintHash: string;
1322
1322
  }>>;
1323
1323
  message: z.ZodString;
1324
1324
  }, "strip", z.ZodTypeAny, {
1325
- type: "auth-result";
1326
1325
  message: string;
1326
+ type: "auth-result";
1327
1327
  user?: {
1328
+ email: string;
1328
1329
  name: string | null;
1329
1330
  id: string;
1330
1331
  fingerprintId: string;
1331
1332
  authToken: string;
1332
- email: string;
1333
1333
  fingerprintHash: string;
1334
1334
  } | undefined;
1335
1335
  }, {
1336
- type: "auth-result";
1337
1336
  message: string;
1337
+ type: "auth-result";
1338
1338
  user?: {
1339
+ email: string;
1339
1340
  name: string | null;
1340
1341
  id: string;
1341
1342
  fingerprintId: string;
1342
1343
  authToken: string;
1343
- email: string;
1344
1344
  fingerprintHash: string;
1345
1345
  } | undefined;
1346
1346
  }>, z.ZodObject<{
@@ -1368,29 +1368,29 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1368
1368
  session_credits_used: z.ZodNumber;
1369
1369
  }, "strip", z.ZodTypeAny, {
1370
1370
  type: "usage-response";
1371
- usage: number;
1372
- limit: number;
1373
- subscription_active: boolean;
1374
1371
  next_quota_reset: Date;
1372
+ subscription_active: boolean;
1373
+ limit: number;
1375
1374
  session_credits_used: number;
1375
+ usage: number;
1376
1376
  referralLink?: string | undefined;
1377
1377
  }, {
1378
1378
  type: "usage-response";
1379
- usage: number;
1380
- limit: number;
1381
- subscription_active: boolean;
1382
1379
  next_quota_reset: Date;
1380
+ subscription_active: boolean;
1381
+ limit: number;
1383
1382
  session_credits_used: number;
1383
+ usage: number;
1384
1384
  referralLink?: string | undefined;
1385
1385
  }>, z.ZodObject<{
1386
1386
  type: z.ZodLiteral<"action-error">;
1387
1387
  message: z.ZodString;
1388
1388
  }, "strip", z.ZodTypeAny, {
1389
- type: "action-error";
1390
1389
  message: string;
1391
- }, {
1392
1390
  type: "action-error";
1391
+ }, {
1393
1392
  message: string;
1393
+ type: "action-error";
1394
1394
  }>, z.ZodObject<{
1395
1395
  type: z.ZodLiteral<"commit-message-response">;
1396
1396
  commitMessage: z.ZodString;