codebuff 1.0.119 → 1.0.120

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.
@@ -35,16 +35,16 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
35
35
  }>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  type: "tool_use";
38
- name: string;
39
38
  id: string;
39
+ name: string;
40
40
  input: Record<string, any>;
41
41
  cache_control?: {
42
42
  type: "ephemeral";
43
43
  } | undefined;
44
44
  }, {
45
45
  type: "tool_use";
46
- name: string;
47
46
  id: string;
47
+ name: string;
48
48
  input: Record<string, any>;
49
49
  cache_control?: {
50
50
  type: "ephemeral";
@@ -61,16 +61,16 @@ 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";
66
65
  tool_use_id: string;
66
+ content: string;
67
67
  cache_control?: {
68
68
  type: "ephemeral";
69
69
  } | undefined;
70
70
  }, {
71
- content: string;
72
71
  type: "tool_result";
73
72
  tool_use_id: string;
73
+ content: string;
74
74
  cache_control?: {
75
75
  type: "ephemeral";
76
76
  } | undefined;
@@ -113,16 +113,16 @@ declare const MessageSchema: z.ZodObject<{
113
113
  }>>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  type: "tool_use";
116
- name: string;
117
116
  id: string;
117
+ name: string;
118
118
  input: Record<string, any>;
119
119
  cache_control?: {
120
120
  type: "ephemeral";
121
121
  } | undefined;
122
122
  }, {
123
123
  type: "tool_use";
124
- name: string;
125
124
  id: string;
125
+ name: string;
126
126
  input: Record<string, any>;
127
127
  cache_control?: {
128
128
  type: "ephemeral";
@@ -139,16 +139,16 @@ declare const MessageSchema: z.ZodObject<{
139
139
  type: "ephemeral";
140
140
  }>>;
141
141
  }, "strip", z.ZodTypeAny, {
142
- content: string;
143
142
  type: "tool_result";
144
143
  tool_use_id: string;
144
+ content: string;
145
145
  cache_control?: {
146
146
  type: "ephemeral";
147
147
  } | undefined;
148
148
  }, {
149
- content: string;
150
149
  type: "tool_result";
151
150
  tool_use_id: string;
151
+ content: string;
152
152
  cache_control?: {
153
153
  type: "ephemeral";
154
154
  } | undefined;
@@ -162,16 +162,16 @@ declare const MessageSchema: z.ZodObject<{
162
162
  } | undefined;
163
163
  } | {
164
164
  type: "tool_use";
165
- name: string;
166
165
  id: string;
166
+ name: string;
167
167
  input: Record<string, any>;
168
168
  cache_control?: {
169
169
  type: "ephemeral";
170
170
  } | undefined;
171
171
  } | {
172
- content: string;
173
172
  type: "tool_result";
174
173
  tool_use_id: string;
174
+ content: string;
175
175
  cache_control?: {
176
176
  type: "ephemeral";
177
177
  } | undefined;
@@ -186,16 +186,16 @@ declare const MessageSchema: z.ZodObject<{
186
186
  } | undefined;
187
187
  } | {
188
188
  type: "tool_use";
189
- name: string;
190
189
  id: string;
190
+ name: string;
191
191
  input: Record<string, any>;
192
192
  cache_control?: {
193
193
  type: "ephemeral";
194
194
  } | undefined;
195
195
  } | {
196
- content: string;
197
196
  type: "tool_result";
198
197
  tool_use_id: string;
198
+ content: string;
199
199
  cache_control?: {
200
200
  type: "ephemeral";
201
201
  } | undefined;
@@ -209,12 +209,12 @@ 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";
212
213
  content: string;
213
- type: "file" | "patch";
214
214
  filePath: string;
215
215
  }, {
216
+ type: "patch" | "file";
216
217
  content: string;
217
- type: "file" | "patch";
218
218
  filePath: string;
219
219
  }>;
220
220
  export type FileChange = z.infer<typeof FileChangeSchema>;
@@ -223,12 +223,12 @@ 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";
226
227
  content: string;
227
- type: "file" | "patch";
228
228
  filePath: string;
229
229
  }, {
230
+ type: "patch" | "file";
230
231
  content: string;
231
- type: "file" | "patch";
232
232
  filePath: string;
233
233
  }>, "many">;
234
234
  export type FileChanges = z.infer<typeof CHANGES>;
@@ -237,12 +237,12 @@ export declare const ToolCallSchema: z.ZodObject<{
237
237
  id: z.ZodString;
238
238
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
239
239
  }, "strip", z.ZodTypeAny, {
240
- name: string;
241
240
  id: string;
241
+ name: string;
242
242
  input: Record<string, any>;
243
243
  }, {
244
- name: string;
245
244
  id: string;
245
+ name: string;
246
246
  input: Record<string, any>;
247
247
  }>;
248
248
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -289,16 +289,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
289
289
  }>>;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  type: "tool_use";
292
- name: string;
293
292
  id: string;
293
+ name: string;
294
294
  input: Record<string, any>;
295
295
  cache_control?: {
296
296
  type: "ephemeral";
297
297
  } | undefined;
298
298
  }, {
299
299
  type: "tool_use";
300
- name: string;
301
300
  id: string;
301
+ name: string;
302
302
  input: Record<string, any>;
303
303
  cache_control?: {
304
304
  type: "ephemeral";
@@ -315,16 +315,16 @@ 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";
320
319
  tool_use_id: string;
320
+ content: string;
321
321
  cache_control?: {
322
322
  type: "ephemeral";
323
323
  } | undefined;
324
324
  }, {
325
- content: string;
326
325
  type: "tool_result";
327
326
  tool_use_id: string;
327
+ content: string;
328
328
  cache_control?: {
329
329
  type: "ephemeral";
330
330
  } | undefined;
@@ -338,16 +338,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
338
338
  } | undefined;
339
339
  } | {
340
340
  type: "tool_use";
341
- name: string;
342
341
  id: string;
342
+ name: string;
343
343
  input: Record<string, any>;
344
344
  cache_control?: {
345
345
  type: "ephemeral";
346
346
  } | undefined;
347
347
  } | {
348
- content: string;
349
348
  type: "tool_result";
350
349
  tool_use_id: string;
350
+ content: string;
351
351
  cache_control?: {
352
352
  type: "ephemeral";
353
353
  } | undefined;
@@ -362,16 +362,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
362
362
  } | undefined;
363
363
  } | {
364
364
  type: "tool_use";
365
- name: string;
366
365
  id: string;
366
+ name: string;
367
367
  input: Record<string, any>;
368
368
  cache_control?: {
369
369
  type: "ephemeral";
370
370
  } | undefined;
371
371
  } | {
372
- content: string;
373
372
  type: "tool_result";
374
373
  tool_use_id: string;
374
+ content: string;
375
375
  cache_control?: {
376
376
  type: "ephemeral";
377
377
  } | undefined;
@@ -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
- status: string;
393
392
  diff: string;
393
+ status: string;
394
394
  diffCached: string;
395
395
  lastCommitMessages: string;
396
396
  }, {
397
- status: string;
398
397
  diff: string;
398
+ status: 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
- status: string;
443
442
  diff: string;
443
+ status: 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
- status: string;
468
467
  diff: string;
468
+ status: string;
469
469
  diffCached: string;
470
470
  lastCommitMessages: string;
471
471
  };
@@ -489,14 +489,15 @@ 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";
492
493
  content: string;
493
- type: "file" | "patch";
494
494
  filePath: string;
495
495
  }, {
496
+ type: "patch" | "file";
496
497
  content: string;
497
- type: "file" | "patch";
498
498
  filePath: string;
499
499
  }>, "many">;
500
+ costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
500
501
  }, "strip", z.ZodTypeAny, {
501
502
  type: "user-input";
502
503
  fingerprintId: string;
@@ -510,16 +511,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
510
511
  } | undefined;
511
512
  } | {
512
513
  type: "tool_use";
513
- name: string;
514
514
  id: string;
515
+ name: string;
515
516
  input: Record<string, any>;
516
517
  cache_control?: {
517
518
  type: "ephemeral";
518
519
  } | undefined;
519
520
  } | {
520
- content: string;
521
521
  type: "tool_result";
522
522
  tool_use_id: string;
523
+ content: string;
523
524
  cache_control?: {
524
525
  type: "ephemeral";
525
526
  } | undefined;
@@ -532,8 +533,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
532
533
  fileTokenScores: Record<string, Record<string, number>>;
533
534
  knowledgeFiles: Record<string, string>;
534
535
  gitChanges: {
535
- status: string;
536
536
  diff: string;
537
+ status: string;
537
538
  diffCached: string;
538
539
  lastCommitMessages: string;
539
540
  };
@@ -553,10 +554,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
553
554
  }[][];
554
555
  };
555
556
  changesAlreadyApplied: {
557
+ type: "patch" | "file";
556
558
  content: string;
557
- type: "file" | "patch";
558
559
  filePath: string;
559
560
  }[];
561
+ costMode: "lite" | "normal" | "pro";
560
562
  authToken?: string | undefined;
561
563
  }, {
562
564
  type: "user-input";
@@ -571,16 +573,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
571
573
  } | undefined;
572
574
  } | {
573
575
  type: "tool_use";
574
- name: string;
575
576
  id: string;
577
+ name: string;
576
578
  input: Record<string, any>;
577
579
  cache_control?: {
578
580
  type: "ephemeral";
579
581
  } | undefined;
580
582
  } | {
581
- content: string;
582
583
  type: "tool_result";
583
584
  tool_use_id: string;
585
+ content: string;
584
586
  cache_control?: {
585
587
  type: "ephemeral";
586
588
  } | undefined;
@@ -593,8 +595,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
593
595
  fileTokenScores: Record<string, Record<string, number>>;
594
596
  knowledgeFiles: Record<string, string>;
595
597
  gitChanges: {
596
- status: string;
597
598
  diff: string;
599
+ status: string;
598
600
  diffCached: string;
599
601
  lastCommitMessages: string;
600
602
  };
@@ -614,11 +616,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
614
616
  }[][];
615
617
  };
616
618
  changesAlreadyApplied: {
619
+ type: "patch" | "file";
617
620
  content: string;
618
- type: "file" | "patch";
619
621
  filePath: string;
620
622
  }[];
621
623
  authToken?: string | undefined;
624
+ costMode?: "lite" | "normal" | "pro" | undefined;
622
625
  }>, z.ZodObject<{
623
626
  type: z.ZodLiteral<"read-files-response">;
624
627
  files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -643,13 +646,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
643
646
  diffCached: z.ZodString;
644
647
  lastCommitMessages: z.ZodString;
645
648
  }, "strip", z.ZodTypeAny, {
646
- status: string;
647
649
  diff: string;
650
+ status: string;
648
651
  diffCached: string;
649
652
  lastCommitMessages: string;
650
653
  }, {
651
- status: string;
652
654
  diff: string;
655
+ status: string;
653
656
  diffCached: string;
654
657
  lastCommitMessages: string;
655
658
  }>;
@@ -693,8 +696,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
693
696
  fileTokenScores: Record<string, Record<string, number>>;
694
697
  knowledgeFiles: Record<string, string>;
695
698
  gitChanges: {
696
- status: string;
697
699
  diff: string;
700
+ status: string;
698
701
  diffCached: string;
699
702
  lastCommitMessages: string;
700
703
  };
@@ -718,8 +721,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
718
721
  fileTokenScores: Record<string, Record<string, number>>;
719
722
  knowledgeFiles: Record<string, string>;
720
723
  gitChanges: {
721
- status: string;
722
724
  diff: string;
725
+ status: string;
723
726
  diffCached: string;
724
727
  lastCommitMessages: string;
725
728
  };
@@ -747,8 +750,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
747
750
  fileTokenScores: Record<string, Record<string, number>>;
748
751
  knowledgeFiles: Record<string, string>;
749
752
  gitChanges: {
750
- status: string;
751
753
  diff: string;
754
+ status: string;
752
755
  diffCached: string;
753
756
  lastCommitMessages: string;
754
757
  };
@@ -777,8 +780,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
777
780
  fileTokenScores: Record<string, Record<string, number>>;
778
781
  knowledgeFiles: Record<string, string>;
779
782
  gitChanges: {
780
- status: string;
781
783
  diff: string;
784
+ status: string;
782
785
  diffCached: string;
783
786
  lastCommitMessages: string;
784
787
  };
@@ -932,12 +935,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
932
935
  filePath: z.ZodString;
933
936
  content: z.ZodString;
934
937
  }, "strip", z.ZodTypeAny, {
938
+ type: "patch" | "file";
935
939
  content: string;
936
- type: "file" | "patch";
937
940
  filePath: string;
938
941
  }, {
942
+ type: "patch" | "file";
939
943
  content: string;
940
- type: "file" | "patch";
941
944
  filePath: string;
942
945
  }>, "many">;
943
946
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -945,12 +948,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
945
948
  filePath: z.ZodString;
946
949
  content: z.ZodString;
947
950
  }, "strip", z.ZodTypeAny, {
951
+ type: "patch" | "file";
948
952
  content: string;
949
- type: "file" | "patch";
950
953
  filePath: string;
951
954
  }, {
955
+ type: "patch" | "file";
952
956
  content: string;
953
- type: "file" | "patch";
954
957
  filePath: string;
955
958
  }>, "many">;
956
959
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -975,14 +978,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
975
978
  type: "response-complete";
976
979
  userInputId: string;
977
980
  changesAlreadyApplied: {
981
+ type: "patch" | "file";
978
982
  content: string;
979
- type: "file" | "patch";
980
983
  filePath: string;
981
984
  }[];
982
985
  response: string;
983
986
  changes: {
987
+ type: "patch" | "file";
984
988
  content: string;
985
- type: "file" | "patch";
986
989
  filePath: string;
987
990
  }[];
988
991
  addedFileVersions: {
@@ -1000,14 +1003,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
1000
1003
  type: "response-complete";
1001
1004
  userInputId: string;
1002
1005
  changesAlreadyApplied: {
1006
+ type: "patch" | "file";
1003
1007
  content: string;
1004
- type: "file" | "patch";
1005
1008
  filePath: string;
1006
1009
  }[];
1007
1010
  response: string;
1008
1011
  changes: {
1012
+ type: "patch" | "file";
1009
1013
  content: string;
1010
- type: "file" | "patch";
1011
1014
  filePath: string;
1012
1015
  }[];
1013
1016
  addedFileVersions: {
@@ -1043,12 +1046,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1043
1046
  filePath: z.ZodString;
1044
1047
  content: z.ZodString;
1045
1048
  }, "strip", z.ZodTypeAny, {
1049
+ type: "patch" | "file";
1046
1050
  content: string;
1047
- type: "file" | "patch";
1048
1051
  filePath: string;
1049
1052
  }, {
1053
+ type: "patch" | "file";
1050
1054
  content: string;
1051
- type: "file" | "patch";
1052
1055
  filePath: string;
1053
1056
  }>, "many">;
1054
1057
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1056,12 +1059,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1056
1059
  filePath: z.ZodString;
1057
1060
  content: z.ZodString;
1058
1061
  }, "strip", z.ZodTypeAny, {
1062
+ type: "patch" | "file";
1059
1063
  content: string;
1060
- type: "file" | "patch";
1061
1064
  filePath: string;
1062
1065
  }, {
1066
+ type: "patch" | "file";
1063
1067
  content: string;
1064
- type: "file" | "patch";
1065
1068
  filePath: string;
1066
1069
  }>, "many">;
1067
1070
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1086,14 +1089,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1086
1089
  type: "response-complete";
1087
1090
  userInputId: string;
1088
1091
  changesAlreadyApplied: {
1092
+ type: "patch" | "file";
1089
1093
  content: string;
1090
- type: "file" | "patch";
1091
1094
  filePath: string;
1092
1095
  }[];
1093
1096
  response: string;
1094
1097
  changes: {
1098
+ type: "patch" | "file";
1095
1099
  content: string;
1096
- type: "file" | "patch";
1097
1100
  filePath: string;
1098
1101
  }[];
1099
1102
  addedFileVersions: {
@@ -1111,14 +1114,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1111
1114
  type: "response-complete";
1112
1115
  userInputId: string;
1113
1116
  changesAlreadyApplied: {
1117
+ type: "patch" | "file";
1114
1118
  content: string;
1115
- type: "file" | "patch";
1116
1119
  filePath: string;
1117
1120
  }[];
1118
1121
  response: string;
1119
1122
  changes: {
1123
+ type: "patch" | "file";
1120
1124
  content: string;
1121
- type: "file" | "patch";
1122
1125
  filePath: string;
1123
1126
  }[];
1124
1127
  addedFileVersions: {
@@ -1150,12 +1153,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1150
1153
  id: z.ZodString;
1151
1154
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
1152
1155
  }, "strip", z.ZodTypeAny, {
1153
- name: string;
1154
1156
  id: string;
1157
+ name: string;
1155
1158
  input: Record<string, any>;
1156
1159
  }, {
1157
- name: string;
1158
1160
  id: string;
1161
+ name: string;
1159
1162
  input: Record<string, any>;
1160
1163
  }>;
1161
1164
  changes: z.ZodArray<z.ZodObject<{
@@ -1163,12 +1166,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1163
1166
  filePath: z.ZodString;
1164
1167
  content: z.ZodString;
1165
1168
  }, "strip", z.ZodTypeAny, {
1169
+ type: "patch" | "file";
1166
1170
  content: string;
1167
- type: "file" | "patch";
1168
1171
  filePath: string;
1169
1172
  }, {
1173
+ type: "patch" | "file";
1170
1174
  content: string;
1171
- type: "file" | "patch";
1172
1175
  filePath: string;
1173
1176
  }>, "many">;
1174
1177
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1176,12 +1179,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1176
1179
  filePath: z.ZodString;
1177
1180
  content: z.ZodString;
1178
1181
  }, "strip", z.ZodTypeAny, {
1182
+ type: "patch" | "file";
1179
1183
  content: string;
1180
- type: "file" | "patch";
1181
1184
  filePath: string;
1182
1185
  }, {
1186
+ type: "patch" | "file";
1183
1187
  content: string;
1184
- type: "file" | "patch";
1185
1188
  filePath: string;
1186
1189
  }>, "many">;
1187
1190
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1199,14 +1202,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1199
1202
  type: "tool-call";
1200
1203
  userInputId: string;
1201
1204
  changesAlreadyApplied: {
1205
+ type: "patch" | "file";
1202
1206
  content: string;
1203
- type: "file" | "patch";
1204
1207
  filePath: string;
1205
1208
  }[];
1206
1209
  response: string;
1207
1210
  changes: {
1211
+ type: "patch" | "file";
1208
1212
  content: string;
1209
- type: "file" | "patch";
1210
1213
  filePath: string;
1211
1214
  }[];
1212
1215
  addedFileVersions: {
@@ -1215,22 +1218,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1215
1218
  }[];
1216
1219
  resetFileVersions: boolean;
1217
1220
  data: {
1218
- name: string;
1219
1221
  id: string;
1222
+ name: string;
1220
1223
  input: Record<string, any>;
1221
1224
  };
1222
1225
  }, {
1223
1226
  type: "tool-call";
1224
1227
  userInputId: string;
1225
1228
  changesAlreadyApplied: {
1229
+ type: "patch" | "file";
1226
1230
  content: string;
1227
- type: "file" | "patch";
1228
1231
  filePath: string;
1229
1232
  }[];
1230
1233
  response: string;
1231
1234
  changes: {
1235
+ type: "patch" | "file";
1232
1236
  content: string;
1233
- type: "file" | "patch";
1234
1237
  filePath: string;
1235
1238
  }[];
1236
1239
  addedFileVersions: {
@@ -1239,8 +1242,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1239
1242
  }[];
1240
1243
  resetFileVersions: boolean;
1241
1244
  data: {
1242
- name: string;
1243
1245
  id: string;
1246
+ name: string;
1244
1247
  input: Record<string, any>;
1245
1248
  };
1246
1249
  }>, z.ZodObject<{
@@ -1303,41 +1306,41 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1303
1306
  fingerprintId: z.ZodString;
1304
1307
  fingerprintHash: z.ZodString;
1305
1308
  }, "strip", z.ZodTypeAny, {
1306
- email: string;
1307
- name: string | null;
1308
1309
  id: string;
1310
+ name: string | null;
1309
1311
  fingerprintId: string;
1310
1312
  authToken: string;
1313
+ email: string;
1311
1314
  fingerprintHash: string;
1312
1315
  }, {
1313
- email: string;
1314
- name: string | null;
1315
1316
  id: string;
1317
+ name: string | null;
1316
1318
  fingerprintId: string;
1317
1319
  authToken: string;
1320
+ email: string;
1318
1321
  fingerprintHash: string;
1319
1322
  }>>;
1320
1323
  message: z.ZodString;
1321
1324
  }, "strip", z.ZodTypeAny, {
1322
- message: string;
1323
1325
  type: "auth-result";
1326
+ message: string;
1324
1327
  user?: {
1325
- email: string;
1326
- name: string | null;
1327
1328
  id: string;
1329
+ name: string | null;
1328
1330
  fingerprintId: string;
1329
1331
  authToken: string;
1332
+ email: string;
1330
1333
  fingerprintHash: string;
1331
1334
  } | undefined;
1332
1335
  }, {
1333
- message: string;
1334
1336
  type: "auth-result";
1337
+ message: string;
1335
1338
  user?: {
1336
- email: string;
1337
- name: string | null;
1338
1339
  id: string;
1340
+ name: string | null;
1339
1341
  fingerprintId: string;
1340
1342
  authToken: string;
1343
+ email: string;
1341
1344
  fingerprintHash: string;
1342
1345
  } | undefined;
1343
1346
  }>, z.ZodObject<{
@@ -1383,11 +1386,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1383
1386
  type: z.ZodLiteral<"action-error">;
1384
1387
  message: z.ZodString;
1385
1388
  }, "strip", z.ZodTypeAny, {
1386
- message: string;
1387
1389
  type: "action-error";
1388
- }, {
1389
1390
  message: string;
1391
+ }, {
1390
1392
  type: "action-error";
1393
+ message: string;
1391
1394
  }>, z.ZodObject<{
1392
1395
  type: z.ZodLiteral<"commit-message-response">;
1393
1396
  commitMessage: z.ZodString;