codebuff 1.0.119 → 1.0.121

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.
@@ -95,16 +95,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
95
95
  }>>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  type: "tool_use";
98
- name: string;
99
98
  id: string;
99
+ name: string;
100
100
  input: Record<string, any>;
101
101
  cache_control?: {
102
102
  type: "ephemeral";
103
103
  } | undefined;
104
104
  }, {
105
105
  type: "tool_use";
106
- name: string;
107
106
  id: string;
107
+ name: string;
108
108
  input: Record<string, any>;
109
109
  cache_control?: {
110
110
  type: "ephemeral";
@@ -121,16 +121,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
121
121
  type: "ephemeral";
122
122
  }>>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- content: string;
125
124
  type: "tool_result";
126
125
  tool_use_id: string;
126
+ content: string;
127
127
  cache_control?: {
128
128
  type: "ephemeral";
129
129
  } | undefined;
130
130
  }, {
131
- content: string;
132
131
  type: "tool_result";
133
132
  tool_use_id: string;
133
+ content: string;
134
134
  cache_control?: {
135
135
  type: "ephemeral";
136
136
  } | undefined;
@@ -144,16 +144,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
144
144
  } | undefined;
145
145
  } | {
146
146
  type: "tool_use";
147
- name: string;
148
147
  id: string;
148
+ name: string;
149
149
  input: Record<string, any>;
150
150
  cache_control?: {
151
151
  type: "ephemeral";
152
152
  } | undefined;
153
153
  } | {
154
- content: string;
155
154
  type: "tool_result";
156
155
  tool_use_id: string;
156
+ content: string;
157
157
  cache_control?: {
158
158
  type: "ephemeral";
159
159
  } | undefined;
@@ -168,16 +168,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
168
168
  } | undefined;
169
169
  } | {
170
170
  type: "tool_use";
171
- name: string;
172
171
  id: string;
172
+ name: string;
173
173
  input: Record<string, any>;
174
174
  cache_control?: {
175
175
  type: "ephemeral";
176
176
  } | undefined;
177
177
  } | {
178
- content: string;
179
178
  type: "tool_result";
180
179
  tool_use_id: string;
180
+ content: string;
181
181
  cache_control?: {
182
182
  type: "ephemeral";
183
183
  } | undefined;
@@ -195,13 +195,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
195
195
  diffCached: z.ZodString;
196
196
  lastCommitMessages: z.ZodString;
197
197
  }, "strip", z.ZodTypeAny, {
198
- status: string;
199
198
  diff: string;
199
+ status: string;
200
200
  diffCached: string;
201
201
  lastCommitMessages: string;
202
202
  }, {
203
- status: string;
204
203
  diff: string;
204
+ status: string;
205
205
  diffCached: string;
206
206
  lastCommitMessages: string;
207
207
  }>;
@@ -245,8 +245,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
245
245
  fileTokenScores: Record<string, Record<string, number>>;
246
246
  knowledgeFiles: Record<string, string>;
247
247
  gitChanges: {
248
- status: string;
249
248
  diff: string;
249
+ status: string;
250
250
  diffCached: string;
251
251
  lastCommitMessages: string;
252
252
  };
@@ -270,8 +270,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
270
270
  fileTokenScores: Record<string, Record<string, number>>;
271
271
  knowledgeFiles: Record<string, string>;
272
272
  gitChanges: {
273
- status: string;
274
273
  diff: string;
274
+ status: string;
275
275
  diffCached: string;
276
276
  lastCommitMessages: string;
277
277
  };
@@ -295,14 +295,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
295
295
  filePath: z.ZodString;
296
296
  content: z.ZodString;
297
297
  }, "strip", z.ZodTypeAny, {
298
+ type: "patch" | "file";
298
299
  content: string;
299
- type: "file" | "patch";
300
300
  filePath: string;
301
301
  }, {
302
+ type: "patch" | "file";
302
303
  content: string;
303
- type: "file" | "patch";
304
304
  filePath: string;
305
305
  }>, "many">;
306
+ costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
306
307
  }, "strip", z.ZodTypeAny, {
307
308
  type: "user-input";
308
309
  fingerprintId: string;
@@ -316,16 +317,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
316
317
  } | undefined;
317
318
  } | {
318
319
  type: "tool_use";
319
- name: string;
320
320
  id: string;
321
+ name: string;
321
322
  input: Record<string, any>;
322
323
  cache_control?: {
323
324
  type: "ephemeral";
324
325
  } | undefined;
325
326
  } | {
326
- content: string;
327
327
  type: "tool_result";
328
328
  tool_use_id: string;
329
+ content: string;
329
330
  cache_control?: {
330
331
  type: "ephemeral";
331
332
  } | undefined;
@@ -338,8 +339,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
338
339
  fileTokenScores: Record<string, Record<string, number>>;
339
340
  knowledgeFiles: Record<string, string>;
340
341
  gitChanges: {
341
- status: string;
342
342
  diff: string;
343
+ status: string;
343
344
  diffCached: string;
344
345
  lastCommitMessages: string;
345
346
  };
@@ -359,10 +360,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
359
360
  }[][];
360
361
  };
361
362
  changesAlreadyApplied: {
363
+ type: "patch" | "file";
362
364
  content: string;
363
- type: "file" | "patch";
364
365
  filePath: string;
365
366
  }[];
367
+ costMode: "lite" | "normal" | "pro";
366
368
  authToken?: string | undefined;
367
369
  }, {
368
370
  type: "user-input";
@@ -377,16 +379,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
377
379
  } | undefined;
378
380
  } | {
379
381
  type: "tool_use";
380
- name: string;
381
382
  id: string;
383
+ name: string;
382
384
  input: Record<string, any>;
383
385
  cache_control?: {
384
386
  type: "ephemeral";
385
387
  } | undefined;
386
388
  } | {
387
- content: string;
388
389
  type: "tool_result";
389
390
  tool_use_id: string;
391
+ content: string;
390
392
  cache_control?: {
391
393
  type: "ephemeral";
392
394
  } | undefined;
@@ -399,8 +401,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
399
401
  fileTokenScores: Record<string, Record<string, number>>;
400
402
  knowledgeFiles: Record<string, string>;
401
403
  gitChanges: {
402
- status: string;
403
404
  diff: string;
405
+ status: string;
404
406
  diffCached: string;
405
407
  lastCommitMessages: string;
406
408
  };
@@ -420,11 +422,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
420
422
  }[][];
421
423
  };
422
424
  changesAlreadyApplied: {
425
+ type: "patch" | "file";
423
426
  content: string;
424
- type: "file" | "patch";
425
427
  filePath: string;
426
428
  }[];
427
429
  authToken?: string | undefined;
430
+ costMode?: "lite" | "normal" | "pro" | undefined;
428
431
  }>, z.ZodObject<{
429
432
  type: z.ZodLiteral<"read-files-response">;
430
433
  files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -449,13 +452,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
449
452
  diffCached: z.ZodString;
450
453
  lastCommitMessages: z.ZodString;
451
454
  }, "strip", z.ZodTypeAny, {
452
- status: string;
453
455
  diff: string;
456
+ status: string;
454
457
  diffCached: string;
455
458
  lastCommitMessages: string;
456
459
  }, {
457
- status: string;
458
460
  diff: string;
461
+ status: string;
459
462
  diffCached: string;
460
463
  lastCommitMessages: string;
461
464
  }>;
@@ -499,8 +502,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
499
502
  fileTokenScores: Record<string, Record<string, number>>;
500
503
  knowledgeFiles: Record<string, string>;
501
504
  gitChanges: {
502
- status: string;
503
505
  diff: string;
506
+ status: string;
504
507
  diffCached: string;
505
508
  lastCommitMessages: string;
506
509
  };
@@ -524,8 +527,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
524
527
  fileTokenScores: Record<string, Record<string, number>>;
525
528
  knowledgeFiles: Record<string, string>;
526
529
  gitChanges: {
527
- status: string;
528
530
  diff: string;
531
+ status: string;
529
532
  diffCached: string;
530
533
  lastCommitMessages: string;
531
534
  };
@@ -553,8 +556,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
553
556
  fileTokenScores: Record<string, Record<string, number>>;
554
557
  knowledgeFiles: Record<string, string>;
555
558
  gitChanges: {
556
- status: string;
557
559
  diff: string;
560
+ status: string;
558
561
  diffCached: string;
559
562
  lastCommitMessages: string;
560
563
  };
@@ -583,8 +586,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
583
586
  fileTokenScores: Record<string, Record<string, number>>;
584
587
  knowledgeFiles: Record<string, string>;
585
588
  gitChanges: {
586
- status: string;
587
589
  diff: string;
590
+ status: string;
588
591
  diffCached: string;
589
592
  lastCommitMessages: string;
590
593
  };
@@ -689,16 +692,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
689
692
  } | undefined;
690
693
  } | {
691
694
  type: "tool_use";
692
- name: string;
693
695
  id: string;
696
+ name: string;
694
697
  input: Record<string, any>;
695
698
  cache_control?: {
696
699
  type: "ephemeral";
697
700
  } | undefined;
698
701
  } | {
699
- content: string;
700
702
  type: "tool_result";
701
703
  tool_use_id: string;
704
+ content: string;
702
705
  cache_control?: {
703
706
  type: "ephemeral";
704
707
  } | undefined;
@@ -711,8 +714,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
711
714
  fileTokenScores: Record<string, Record<string, number>>;
712
715
  knowledgeFiles: Record<string, string>;
713
716
  gitChanges: {
714
- status: string;
715
717
  diff: string;
718
+ status: string;
716
719
  diffCached: string;
717
720
  lastCommitMessages: string;
718
721
  };
@@ -732,10 +735,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
732
735
  }[][];
733
736
  };
734
737
  changesAlreadyApplied: {
738
+ type: "patch" | "file";
735
739
  content: string;
736
- type: "file" | "patch";
737
740
  filePath: string;
738
741
  }[];
742
+ costMode: "lite" | "normal" | "pro";
739
743
  authToken?: string | undefined;
740
744
  } | {
741
745
  type: "read-files-response";
@@ -749,8 +753,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
749
753
  fileTokenScores: Record<string, Record<string, number>>;
750
754
  knowledgeFiles: Record<string, string>;
751
755
  gitChanges: {
752
- status: string;
753
756
  diff: string;
757
+ status: string;
754
758
  diffCached: string;
755
759
  lastCommitMessages: string;
756
760
  };
@@ -810,16 +814,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
810
814
  } | undefined;
811
815
  } | {
812
816
  type: "tool_use";
813
- name: string;
814
817
  id: string;
818
+ name: string;
815
819
  input: Record<string, any>;
816
820
  cache_control?: {
817
821
  type: "ephemeral";
818
822
  } | undefined;
819
823
  } | {
820
- content: string;
821
824
  type: "tool_result";
822
825
  tool_use_id: string;
826
+ content: string;
823
827
  cache_control?: {
824
828
  type: "ephemeral";
825
829
  } | undefined;
@@ -832,8 +836,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
832
836
  fileTokenScores: Record<string, Record<string, number>>;
833
837
  knowledgeFiles: Record<string, string>;
834
838
  gitChanges: {
835
- status: string;
836
839
  diff: string;
840
+ status: string;
837
841
  diffCached: string;
838
842
  lastCommitMessages: string;
839
843
  };
@@ -853,11 +857,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
853
857
  }[][];
854
858
  };
855
859
  changesAlreadyApplied: {
860
+ type: "patch" | "file";
856
861
  content: string;
857
- type: "file" | "patch";
858
862
  filePath: string;
859
863
  }[];
860
864
  authToken?: string | undefined;
865
+ costMode?: "lite" | "normal" | "pro" | undefined;
861
866
  } | {
862
867
  type: "read-files-response";
863
868
  files: Record<string, string | null>;
@@ -870,8 +875,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
870
875
  fileTokenScores: Record<string, Record<string, number>>;
871
876
  knowledgeFiles: Record<string, string>;
872
877
  gitChanges: {
873
- status: string;
874
878
  diff: string;
879
+ status: string;
875
880
  diffCached: string;
876
881
  lastCommitMessages: string;
877
882
  };
@@ -1009,16 +1014,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1009
1014
  }>>;
1010
1015
  }, "strip", z.ZodTypeAny, {
1011
1016
  type: "tool_use";
1012
- name: string;
1013
1017
  id: string;
1018
+ name: string;
1014
1019
  input: Record<string, any>;
1015
1020
  cache_control?: {
1016
1021
  type: "ephemeral";
1017
1022
  } | undefined;
1018
1023
  }, {
1019
1024
  type: "tool_use";
1020
- name: string;
1021
1025
  id: string;
1026
+ name: string;
1022
1027
  input: Record<string, any>;
1023
1028
  cache_control?: {
1024
1029
  type: "ephemeral";
@@ -1035,16 +1040,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1035
1040
  type: "ephemeral";
1036
1041
  }>>;
1037
1042
  }, "strip", z.ZodTypeAny, {
1038
- content: string;
1039
1043
  type: "tool_result";
1040
1044
  tool_use_id: string;
1045
+ content: string;
1041
1046
  cache_control?: {
1042
1047
  type: "ephemeral";
1043
1048
  } | undefined;
1044
1049
  }, {
1045
- content: string;
1046
1050
  type: "tool_result";
1047
1051
  tool_use_id: string;
1052
+ content: string;
1048
1053
  cache_control?: {
1049
1054
  type: "ephemeral";
1050
1055
  } | undefined;
@@ -1058,16 +1063,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1058
1063
  } | undefined;
1059
1064
  } | {
1060
1065
  type: "tool_use";
1061
- name: string;
1062
1066
  id: string;
1067
+ name: string;
1063
1068
  input: Record<string, any>;
1064
1069
  cache_control?: {
1065
1070
  type: "ephemeral";
1066
1071
  } | undefined;
1067
1072
  } | {
1068
- content: string;
1069
1073
  type: "tool_result";
1070
1074
  tool_use_id: string;
1075
+ content: string;
1071
1076
  cache_control?: {
1072
1077
  type: "ephemeral";
1073
1078
  } | undefined;
@@ -1082,16 +1087,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1082
1087
  } | undefined;
1083
1088
  } | {
1084
1089
  type: "tool_use";
1085
- name: string;
1086
1090
  id: string;
1091
+ name: string;
1087
1092
  input: Record<string, any>;
1088
1093
  cache_control?: {
1089
1094
  type: "ephemeral";
1090
1095
  } | undefined;
1091
1096
  } | {
1092
- content: string;
1093
1097
  type: "tool_result";
1094
1098
  tool_use_id: string;
1099
+ content: string;
1095
1100
  cache_control?: {
1096
1101
  type: "ephemeral";
1097
1102
  } | undefined;
@@ -1109,13 +1114,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1109
1114
  diffCached: z.ZodString;
1110
1115
  lastCommitMessages: z.ZodString;
1111
1116
  }, "strip", z.ZodTypeAny, {
1112
- status: string;
1113
1117
  diff: string;
1118
+ status: string;
1114
1119
  diffCached: string;
1115
1120
  lastCommitMessages: string;
1116
1121
  }, {
1117
- status: string;
1118
1122
  diff: string;
1123
+ status: string;
1119
1124
  diffCached: string;
1120
1125
  lastCommitMessages: string;
1121
1126
  }>;
@@ -1159,8 +1164,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1159
1164
  fileTokenScores: Record<string, Record<string, number>>;
1160
1165
  knowledgeFiles: Record<string, string>;
1161
1166
  gitChanges: {
1162
- status: string;
1163
1167
  diff: string;
1168
+ status: string;
1164
1169
  diffCached: string;
1165
1170
  lastCommitMessages: string;
1166
1171
  };
@@ -1184,8 +1189,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1184
1189
  fileTokenScores: Record<string, Record<string, number>>;
1185
1190
  knowledgeFiles: Record<string, string>;
1186
1191
  gitChanges: {
1187
- status: string;
1188
1192
  diff: string;
1193
+ status: string;
1189
1194
  diffCached: string;
1190
1195
  lastCommitMessages: string;
1191
1196
  };
@@ -1209,14 +1214,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1209
1214
  filePath: z.ZodString;
1210
1215
  content: z.ZodString;
1211
1216
  }, "strip", z.ZodTypeAny, {
1217
+ type: "patch" | "file";
1212
1218
  content: string;
1213
- type: "file" | "patch";
1214
1219
  filePath: string;
1215
1220
  }, {
1221
+ type: "patch" | "file";
1216
1222
  content: string;
1217
- type: "file" | "patch";
1218
1223
  filePath: string;
1219
1224
  }>, "many">;
1225
+ costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
1220
1226
  }, "strip", z.ZodTypeAny, {
1221
1227
  type: "user-input";
1222
1228
  fingerprintId: string;
@@ -1230,16 +1236,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1230
1236
  } | undefined;
1231
1237
  } | {
1232
1238
  type: "tool_use";
1233
- name: string;
1234
1239
  id: string;
1240
+ name: string;
1235
1241
  input: Record<string, any>;
1236
1242
  cache_control?: {
1237
1243
  type: "ephemeral";
1238
1244
  } | undefined;
1239
1245
  } | {
1240
- content: string;
1241
1246
  type: "tool_result";
1242
1247
  tool_use_id: string;
1248
+ content: string;
1243
1249
  cache_control?: {
1244
1250
  type: "ephemeral";
1245
1251
  } | undefined;
@@ -1252,8 +1258,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1252
1258
  fileTokenScores: Record<string, Record<string, number>>;
1253
1259
  knowledgeFiles: Record<string, string>;
1254
1260
  gitChanges: {
1255
- status: string;
1256
1261
  diff: string;
1262
+ status: string;
1257
1263
  diffCached: string;
1258
1264
  lastCommitMessages: string;
1259
1265
  };
@@ -1273,10 +1279,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1273
1279
  }[][];
1274
1280
  };
1275
1281
  changesAlreadyApplied: {
1282
+ type: "patch" | "file";
1276
1283
  content: string;
1277
- type: "file" | "patch";
1278
1284
  filePath: string;
1279
1285
  }[];
1286
+ costMode: "lite" | "normal" | "pro";
1280
1287
  authToken?: string | undefined;
1281
1288
  }, {
1282
1289
  type: "user-input";
@@ -1291,16 +1298,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1291
1298
  } | undefined;
1292
1299
  } | {
1293
1300
  type: "tool_use";
1294
- name: string;
1295
1301
  id: string;
1302
+ name: string;
1296
1303
  input: Record<string, any>;
1297
1304
  cache_control?: {
1298
1305
  type: "ephemeral";
1299
1306
  } | undefined;
1300
1307
  } | {
1301
- content: string;
1302
1308
  type: "tool_result";
1303
1309
  tool_use_id: string;
1310
+ content: string;
1304
1311
  cache_control?: {
1305
1312
  type: "ephemeral";
1306
1313
  } | undefined;
@@ -1313,8 +1320,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1313
1320
  fileTokenScores: Record<string, Record<string, number>>;
1314
1321
  knowledgeFiles: Record<string, string>;
1315
1322
  gitChanges: {
1316
- status: string;
1317
1323
  diff: string;
1324
+ status: string;
1318
1325
  diffCached: string;
1319
1326
  lastCommitMessages: string;
1320
1327
  };
@@ -1334,11 +1341,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1334
1341
  }[][];
1335
1342
  };
1336
1343
  changesAlreadyApplied: {
1344
+ type: "patch" | "file";
1337
1345
  content: string;
1338
- type: "file" | "patch";
1339
1346
  filePath: string;
1340
1347
  }[];
1341
1348
  authToken?: string | undefined;
1349
+ costMode?: "lite" | "normal" | "pro" | undefined;
1342
1350
  }>, z.ZodObject<{
1343
1351
  type: z.ZodLiteral<"read-files-response">;
1344
1352
  files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
@@ -1363,13 +1371,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1363
1371
  diffCached: z.ZodString;
1364
1372
  lastCommitMessages: z.ZodString;
1365
1373
  }, "strip", z.ZodTypeAny, {
1366
- status: string;
1367
1374
  diff: string;
1375
+ status: string;
1368
1376
  diffCached: string;
1369
1377
  lastCommitMessages: string;
1370
1378
  }, {
1371
- status: string;
1372
1379
  diff: string;
1380
+ status: string;
1373
1381
  diffCached: string;
1374
1382
  lastCommitMessages: string;
1375
1383
  }>;
@@ -1413,8 +1421,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1413
1421
  fileTokenScores: Record<string, Record<string, number>>;
1414
1422
  knowledgeFiles: Record<string, string>;
1415
1423
  gitChanges: {
1416
- status: string;
1417
1424
  diff: string;
1425
+ status: string;
1418
1426
  diffCached: string;
1419
1427
  lastCommitMessages: string;
1420
1428
  };
@@ -1438,8 +1446,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1438
1446
  fileTokenScores: Record<string, Record<string, number>>;
1439
1447
  knowledgeFiles: Record<string, string>;
1440
1448
  gitChanges: {
1441
- status: string;
1442
1449
  diff: string;
1450
+ status: string;
1443
1451
  diffCached: string;
1444
1452
  lastCommitMessages: string;
1445
1453
  };
@@ -1467,8 +1475,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1467
1475
  fileTokenScores: Record<string, Record<string, number>>;
1468
1476
  knowledgeFiles: Record<string, string>;
1469
1477
  gitChanges: {
1470
- status: string;
1471
1478
  diff: string;
1479
+ status: string;
1472
1480
  diffCached: string;
1473
1481
  lastCommitMessages: string;
1474
1482
  };
@@ -1497,8 +1505,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1497
1505
  fileTokenScores: Record<string, Record<string, number>>;
1498
1506
  knowledgeFiles: Record<string, string>;
1499
1507
  gitChanges: {
1500
- status: string;
1501
1508
  diff: string;
1509
+ status: string;
1502
1510
  diffCached: string;
1503
1511
  lastCommitMessages: string;
1504
1512
  };
@@ -1603,16 +1611,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1603
1611
  } | undefined;
1604
1612
  } | {
1605
1613
  type: "tool_use";
1606
- name: string;
1607
1614
  id: string;
1615
+ name: string;
1608
1616
  input: Record<string, any>;
1609
1617
  cache_control?: {
1610
1618
  type: "ephemeral";
1611
1619
  } | undefined;
1612
1620
  } | {
1613
- content: string;
1614
1621
  type: "tool_result";
1615
1622
  tool_use_id: string;
1623
+ content: string;
1616
1624
  cache_control?: {
1617
1625
  type: "ephemeral";
1618
1626
  } | undefined;
@@ -1625,8 +1633,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1625
1633
  fileTokenScores: Record<string, Record<string, number>>;
1626
1634
  knowledgeFiles: Record<string, string>;
1627
1635
  gitChanges: {
1628
- status: string;
1629
1636
  diff: string;
1637
+ status: string;
1630
1638
  diffCached: string;
1631
1639
  lastCommitMessages: string;
1632
1640
  };
@@ -1646,10 +1654,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1646
1654
  }[][];
1647
1655
  };
1648
1656
  changesAlreadyApplied: {
1657
+ type: "patch" | "file";
1649
1658
  content: string;
1650
- type: "file" | "patch";
1651
1659
  filePath: string;
1652
1660
  }[];
1661
+ costMode: "lite" | "normal" | "pro";
1653
1662
  authToken?: string | undefined;
1654
1663
  } | {
1655
1664
  type: "read-files-response";
@@ -1663,8 +1672,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1663
1672
  fileTokenScores: Record<string, Record<string, number>>;
1664
1673
  knowledgeFiles: Record<string, string>;
1665
1674
  gitChanges: {
1666
- status: string;
1667
1675
  diff: string;
1676
+ status: string;
1668
1677
  diffCached: string;
1669
1678
  lastCommitMessages: string;
1670
1679
  };
@@ -1724,16 +1733,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1724
1733
  } | undefined;
1725
1734
  } | {
1726
1735
  type: "tool_use";
1727
- name: string;
1728
1736
  id: string;
1737
+ name: string;
1729
1738
  input: Record<string, any>;
1730
1739
  cache_control?: {
1731
1740
  type: "ephemeral";
1732
1741
  } | undefined;
1733
1742
  } | {
1734
- content: string;
1735
1743
  type: "tool_result";
1736
1744
  tool_use_id: string;
1745
+ content: string;
1737
1746
  cache_control?: {
1738
1747
  type: "ephemeral";
1739
1748
  } | undefined;
@@ -1746,8 +1755,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1746
1755
  fileTokenScores: Record<string, Record<string, number>>;
1747
1756
  knowledgeFiles: Record<string, string>;
1748
1757
  gitChanges: {
1749
- status: string;
1750
1758
  diff: string;
1759
+ status: string;
1751
1760
  diffCached: string;
1752
1761
  lastCommitMessages: string;
1753
1762
  };
@@ -1767,11 +1776,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1767
1776
  }[][];
1768
1777
  };
1769
1778
  changesAlreadyApplied: {
1779
+ type: "patch" | "file";
1770
1780
  content: string;
1771
- type: "file" | "patch";
1772
1781
  filePath: string;
1773
1782
  }[];
1774
1783
  authToken?: string | undefined;
1784
+ costMode?: "lite" | "normal" | "pro" | undefined;
1775
1785
  } | {
1776
1786
  type: "read-files-response";
1777
1787
  files: Record<string, string | null>;
@@ -1784,8 +1794,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1784
1794
  fileTokenScores: Record<string, Record<string, number>>;
1785
1795
  knowledgeFiles: Record<string, string>;
1786
1796
  gitChanges: {
1787
- status: string;
1788
1797
  diff: string;
1798
+ status: string;
1789
1799
  diffCached: string;
1790
1800
  lastCommitMessages: string;
1791
1801
  };
@@ -1873,12 +1883,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1873
1883
  filePath: z.ZodString;
1874
1884
  content: z.ZodString;
1875
1885
  }, "strip", z.ZodTypeAny, {
1886
+ type: "patch" | "file";
1876
1887
  content: string;
1877
- type: "file" | "patch";
1878
1888
  filePath: string;
1879
1889
  }, {
1890
+ type: "patch" | "file";
1880
1891
  content: string;
1881
- type: "file" | "patch";
1882
1892
  filePath: string;
1883
1893
  }>, "many">;
1884
1894
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1886,12 +1896,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1886
1896
  filePath: z.ZodString;
1887
1897
  content: z.ZodString;
1888
1898
  }, "strip", z.ZodTypeAny, {
1899
+ type: "patch" | "file";
1889
1900
  content: string;
1890
- type: "file" | "patch";
1891
1901
  filePath: string;
1892
1902
  }, {
1903
+ type: "patch" | "file";
1893
1904
  content: string;
1894
- type: "file" | "patch";
1895
1905
  filePath: string;
1896
1906
  }>, "many">;
1897
1907
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1916,14 +1926,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1916
1926
  type: "response-complete";
1917
1927
  userInputId: string;
1918
1928
  changesAlreadyApplied: {
1929
+ type: "patch" | "file";
1919
1930
  content: string;
1920
- type: "file" | "patch";
1921
1931
  filePath: string;
1922
1932
  }[];
1923
1933
  response: string;
1924
1934
  changes: {
1935
+ type: "patch" | "file";
1925
1936
  content: string;
1926
- type: "file" | "patch";
1927
1937
  filePath: string;
1928
1938
  }[];
1929
1939
  addedFileVersions: {
@@ -1941,14 +1951,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1941
1951
  type: "response-complete";
1942
1952
  userInputId: string;
1943
1953
  changesAlreadyApplied: {
1954
+ type: "patch" | "file";
1944
1955
  content: string;
1945
- type: "file" | "patch";
1946
1956
  filePath: string;
1947
1957
  }[];
1948
1958
  response: string;
1949
1959
  changes: {
1960
+ type: "patch" | "file";
1950
1961
  content: string;
1951
- type: "file" | "patch";
1952
1962
  filePath: string;
1953
1963
  }[];
1954
1964
  addedFileVersions: {
@@ -1980,12 +1990,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1980
1990
  id: z.ZodString;
1981
1991
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
1982
1992
  }, "strip", z.ZodTypeAny, {
1983
- name: string;
1984
1993
  id: string;
1994
+ name: string;
1985
1995
  input: Record<string, any>;
1986
1996
  }, {
1987
- name: string;
1988
1997
  id: string;
1998
+ name: string;
1989
1999
  input: Record<string, any>;
1990
2000
  }>;
1991
2001
  changes: z.ZodArray<z.ZodObject<{
@@ -1993,12 +2003,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1993
2003
  filePath: z.ZodString;
1994
2004
  content: z.ZodString;
1995
2005
  }, "strip", z.ZodTypeAny, {
2006
+ type: "patch" | "file";
1996
2007
  content: string;
1997
- type: "file" | "patch";
1998
2008
  filePath: string;
1999
2009
  }, {
2010
+ type: "patch" | "file";
2000
2011
  content: string;
2001
- type: "file" | "patch";
2002
2012
  filePath: string;
2003
2013
  }>, "many">;
2004
2014
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2006,12 +2016,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2006
2016
  filePath: z.ZodString;
2007
2017
  content: z.ZodString;
2008
2018
  }, "strip", z.ZodTypeAny, {
2019
+ type: "patch" | "file";
2009
2020
  content: string;
2010
- type: "file" | "patch";
2011
2021
  filePath: string;
2012
2022
  }, {
2023
+ type: "patch" | "file";
2013
2024
  content: string;
2014
- type: "file" | "patch";
2015
2025
  filePath: string;
2016
2026
  }>, "many">;
2017
2027
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2029,14 +2039,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2029
2039
  type: "tool-call";
2030
2040
  userInputId: string;
2031
2041
  changesAlreadyApplied: {
2042
+ type: "patch" | "file";
2032
2043
  content: string;
2033
- type: "file" | "patch";
2034
2044
  filePath: string;
2035
2045
  }[];
2036
2046
  response: string;
2037
2047
  changes: {
2048
+ type: "patch" | "file";
2038
2049
  content: string;
2039
- type: "file" | "patch";
2040
2050
  filePath: string;
2041
2051
  }[];
2042
2052
  addedFileVersions: {
@@ -2045,22 +2055,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2045
2055
  }[];
2046
2056
  resetFileVersions: boolean;
2047
2057
  data: {
2048
- name: string;
2049
2058
  id: string;
2059
+ name: string;
2050
2060
  input: Record<string, any>;
2051
2061
  };
2052
2062
  }, {
2053
2063
  type: "tool-call";
2054
2064
  userInputId: string;
2055
2065
  changesAlreadyApplied: {
2066
+ type: "patch" | "file";
2056
2067
  content: string;
2057
- type: "file" | "patch";
2058
2068
  filePath: string;
2059
2069
  }[];
2060
2070
  response: string;
2061
2071
  changes: {
2072
+ type: "patch" | "file";
2062
2073
  content: string;
2063
- type: "file" | "patch";
2064
2074
  filePath: string;
2065
2075
  }[];
2066
2076
  addedFileVersions: {
@@ -2069,8 +2079,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2069
2079
  }[];
2070
2080
  resetFileVersions: boolean;
2071
2081
  data: {
2072
- name: string;
2073
2082
  id: string;
2083
+ name: string;
2074
2084
  input: Record<string, any>;
2075
2085
  };
2076
2086
  }>, z.ZodObject<{
@@ -2133,41 +2143,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2133
2143
  fingerprintId: z.ZodString;
2134
2144
  fingerprintHash: z.ZodString;
2135
2145
  }, "strip", z.ZodTypeAny, {
2136
- email: string;
2137
- name: string | null;
2138
2146
  id: string;
2147
+ name: string | null;
2139
2148
  fingerprintId: string;
2140
2149
  authToken: string;
2150
+ email: string;
2141
2151
  fingerprintHash: string;
2142
2152
  }, {
2143
- email: string;
2144
- name: string | null;
2145
2153
  id: string;
2154
+ name: string | null;
2146
2155
  fingerprintId: string;
2147
2156
  authToken: string;
2157
+ email: string;
2148
2158
  fingerprintHash: string;
2149
2159
  }>>;
2150
2160
  message: z.ZodString;
2151
2161
  }, "strip", z.ZodTypeAny, {
2152
- message: string;
2153
2162
  type: "auth-result";
2163
+ message: string;
2154
2164
  user?: {
2155
- email: string;
2156
- name: string | null;
2157
2165
  id: string;
2166
+ name: string | null;
2158
2167
  fingerprintId: string;
2159
2168
  authToken: string;
2169
+ email: string;
2160
2170
  fingerprintHash: string;
2161
2171
  } | undefined;
2162
2172
  }, {
2163
- message: string;
2164
2173
  type: "auth-result";
2174
+ message: string;
2165
2175
  user?: {
2166
- email: string;
2167
- name: string | null;
2168
2176
  id: string;
2177
+ name: string | null;
2169
2178
  fingerprintId: string;
2170
2179
  authToken: string;
2180
+ email: string;
2171
2181
  fingerprintHash: string;
2172
2182
  } | undefined;
2173
2183
  }>, z.ZodObject<{
@@ -2213,11 +2223,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2213
2223
  type: z.ZodLiteral<"action-error">;
2214
2224
  message: z.ZodString;
2215
2225
  }, "strip", z.ZodTypeAny, {
2216
- message: string;
2217
2226
  type: "action-error";
2218
- }, {
2219
2227
  message: string;
2228
+ }, {
2220
2229
  type: "action-error";
2230
+ message: string;
2221
2231
  }>, z.ZodObject<{
2222
2232
  type: z.ZodLiteral<"commit-message-response">;
2223
2233
  commitMessage: z.ZodString;
@@ -2250,14 +2260,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2250
2260
  type: "response-complete";
2251
2261
  userInputId: string;
2252
2262
  changesAlreadyApplied: {
2263
+ type: "patch" | "file";
2253
2264
  content: string;
2254
- type: "file" | "patch";
2255
2265
  filePath: string;
2256
2266
  }[];
2257
2267
  response: string;
2258
2268
  changes: {
2269
+ type: "patch" | "file";
2259
2270
  content: string;
2260
- type: "file" | "patch";
2261
2271
  filePath: string;
2262
2272
  }[];
2263
2273
  addedFileVersions: {
@@ -2282,14 +2292,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2282
2292
  type: "tool-call";
2283
2293
  userInputId: string;
2284
2294
  changesAlreadyApplied: {
2295
+ type: "patch" | "file";
2285
2296
  content: string;
2286
- type: "file" | "patch";
2287
2297
  filePath: string;
2288
2298
  }[];
2289
2299
  response: string;
2290
2300
  changes: {
2301
+ type: "patch" | "file";
2291
2302
  content: string;
2292
- type: "file" | "patch";
2293
2303
  filePath: string;
2294
2304
  }[];
2295
2305
  addedFileVersions: {
@@ -2298,8 +2308,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2298
2308
  }[];
2299
2309
  resetFileVersions: boolean;
2300
2310
  data: {
2301
- name: string;
2302
2311
  id: string;
2312
+ name: string;
2303
2313
  input: Record<string, any>;
2304
2314
  };
2305
2315
  } | {
@@ -2311,14 +2321,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2311
2321
  isUpToDate: boolean;
2312
2322
  latestVersion: string;
2313
2323
  } | {
2314
- message: string;
2315
2324
  type: "auth-result";
2325
+ message: string;
2316
2326
  user?: {
2317
- email: string;
2318
- name: string | null;
2319
2327
  id: string;
2328
+ name: string | null;
2320
2329
  fingerprintId: string;
2321
2330
  authToken: string;
2331
+ email: string;
2322
2332
  fingerprintHash: string;
2323
2333
  } | undefined;
2324
2334
  } | {
@@ -2327,8 +2337,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2327
2337
  fingerprintHash: string;
2328
2338
  loginUrl: string;
2329
2339
  } | {
2330
- message: string;
2331
2340
  type: "action-error";
2341
+ message: string;
2332
2342
  } | {
2333
2343
  type: "commit-message-response";
2334
2344
  commitMessage: string;
@@ -2355,14 +2365,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2355
2365
  type: "response-complete";
2356
2366
  userInputId: string;
2357
2367
  changesAlreadyApplied: {
2368
+ type: "patch" | "file";
2358
2369
  content: string;
2359
- type: "file" | "patch";
2360
2370
  filePath: string;
2361
2371
  }[];
2362
2372
  response: string;
2363
2373
  changes: {
2374
+ type: "patch" | "file";
2364
2375
  content: string;
2365
- type: "file" | "patch";
2366
2376
  filePath: string;
2367
2377
  }[];
2368
2378
  addedFileVersions: {
@@ -2387,14 +2397,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2387
2397
  type: "tool-call";
2388
2398
  userInputId: string;
2389
2399
  changesAlreadyApplied: {
2400
+ type: "patch" | "file";
2390
2401
  content: string;
2391
- type: "file" | "patch";
2392
2402
  filePath: string;
2393
2403
  }[];
2394
2404
  response: string;
2395
2405
  changes: {
2406
+ type: "patch" | "file";
2396
2407
  content: string;
2397
- type: "file" | "patch";
2398
2408
  filePath: string;
2399
2409
  }[];
2400
2410
  addedFileVersions: {
@@ -2403,8 +2413,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2403
2413
  }[];
2404
2414
  resetFileVersions: boolean;
2405
2415
  data: {
2406
- name: string;
2407
2416
  id: string;
2417
+ name: string;
2408
2418
  input: Record<string, any>;
2409
2419
  };
2410
2420
  } | {
@@ -2416,14 +2426,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2416
2426
  isUpToDate: boolean;
2417
2427
  latestVersion: string;
2418
2428
  } | {
2419
- message: string;
2420
2429
  type: "auth-result";
2430
+ message: string;
2421
2431
  user?: {
2422
- email: string;
2423
- name: string | null;
2424
2432
  id: string;
2433
+ name: string | null;
2425
2434
  fingerprintId: string;
2426
2435
  authToken: string;
2436
+ email: string;
2427
2437
  fingerprintHash: string;
2428
2438
  } | undefined;
2429
2439
  } | {
@@ -2432,8 +2442,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2432
2442
  fingerprintHash: string;
2433
2443
  loginUrl: string;
2434
2444
  } | {
2435
- message: string;
2436
2445
  type: "action-error";
2446
+ message: string;
2437
2447
  } | {
2438
2448
  type: "commit-message-response";
2439
2449
  commitMessage: string;
@@ -2478,12 +2488,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2478
2488
  filePath: z.ZodString;
2479
2489
  content: z.ZodString;
2480
2490
  }, "strip", z.ZodTypeAny, {
2491
+ type: "patch" | "file";
2481
2492
  content: string;
2482
- type: "file" | "patch";
2483
2493
  filePath: string;
2484
2494
  }, {
2495
+ type: "patch" | "file";
2485
2496
  content: string;
2486
- type: "file" | "patch";
2487
2497
  filePath: string;
2488
2498
  }>, "many">;
2489
2499
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2491,12 +2501,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2491
2501
  filePath: z.ZodString;
2492
2502
  content: z.ZodString;
2493
2503
  }, "strip", z.ZodTypeAny, {
2504
+ type: "patch" | "file";
2494
2505
  content: string;
2495
- type: "file" | "patch";
2496
2506
  filePath: string;
2497
2507
  }, {
2508
+ type: "patch" | "file";
2498
2509
  content: string;
2499
- type: "file" | "patch";
2500
2510
  filePath: string;
2501
2511
  }>, "many">;
2502
2512
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2521,14 +2531,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2521
2531
  type: "response-complete";
2522
2532
  userInputId: string;
2523
2533
  changesAlreadyApplied: {
2534
+ type: "patch" | "file";
2524
2535
  content: string;
2525
- type: "file" | "patch";
2526
2536
  filePath: string;
2527
2537
  }[];
2528
2538
  response: string;
2529
2539
  changes: {
2540
+ type: "patch" | "file";
2530
2541
  content: string;
2531
- type: "file" | "patch";
2532
2542
  filePath: string;
2533
2543
  }[];
2534
2544
  addedFileVersions: {
@@ -2546,14 +2556,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2546
2556
  type: "response-complete";
2547
2557
  userInputId: string;
2548
2558
  changesAlreadyApplied: {
2559
+ type: "patch" | "file";
2549
2560
  content: string;
2550
- type: "file" | "patch";
2551
2561
  filePath: string;
2552
2562
  }[];
2553
2563
  response: string;
2554
2564
  changes: {
2565
+ type: "patch" | "file";
2555
2566
  content: string;
2556
- type: "file" | "patch";
2557
2567
  filePath: string;
2558
2568
  }[];
2559
2569
  addedFileVersions: {
@@ -2585,12 +2595,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2585
2595
  id: z.ZodString;
2586
2596
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2587
2597
  }, "strip", z.ZodTypeAny, {
2588
- name: string;
2589
2598
  id: string;
2599
+ name: string;
2590
2600
  input: Record<string, any>;
2591
2601
  }, {
2592
- name: string;
2593
2602
  id: string;
2603
+ name: string;
2594
2604
  input: Record<string, any>;
2595
2605
  }>;
2596
2606
  changes: z.ZodArray<z.ZodObject<{
@@ -2598,12 +2608,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2598
2608
  filePath: z.ZodString;
2599
2609
  content: z.ZodString;
2600
2610
  }, "strip", z.ZodTypeAny, {
2611
+ type: "patch" | "file";
2601
2612
  content: string;
2602
- type: "file" | "patch";
2603
2613
  filePath: string;
2604
2614
  }, {
2615
+ type: "patch" | "file";
2605
2616
  content: string;
2606
- type: "file" | "patch";
2607
2617
  filePath: string;
2608
2618
  }>, "many">;
2609
2619
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2611,12 +2621,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2611
2621
  filePath: z.ZodString;
2612
2622
  content: z.ZodString;
2613
2623
  }, "strip", z.ZodTypeAny, {
2624
+ type: "patch" | "file";
2614
2625
  content: string;
2615
- type: "file" | "patch";
2616
2626
  filePath: string;
2617
2627
  }, {
2628
+ type: "patch" | "file";
2618
2629
  content: string;
2619
- type: "file" | "patch";
2620
2630
  filePath: string;
2621
2631
  }>, "many">;
2622
2632
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2634,14 +2644,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2634
2644
  type: "tool-call";
2635
2645
  userInputId: string;
2636
2646
  changesAlreadyApplied: {
2647
+ type: "patch" | "file";
2637
2648
  content: string;
2638
- type: "file" | "patch";
2639
2649
  filePath: string;
2640
2650
  }[];
2641
2651
  response: string;
2642
2652
  changes: {
2653
+ type: "patch" | "file";
2643
2654
  content: string;
2644
- type: "file" | "patch";
2645
2655
  filePath: string;
2646
2656
  }[];
2647
2657
  addedFileVersions: {
@@ -2650,22 +2660,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2650
2660
  }[];
2651
2661
  resetFileVersions: boolean;
2652
2662
  data: {
2653
- name: string;
2654
2663
  id: string;
2664
+ name: string;
2655
2665
  input: Record<string, any>;
2656
2666
  };
2657
2667
  }, {
2658
2668
  type: "tool-call";
2659
2669
  userInputId: string;
2660
2670
  changesAlreadyApplied: {
2671
+ type: "patch" | "file";
2661
2672
  content: string;
2662
- type: "file" | "patch";
2663
2673
  filePath: string;
2664
2674
  }[];
2665
2675
  response: string;
2666
2676
  changes: {
2677
+ type: "patch" | "file";
2667
2678
  content: string;
2668
- type: "file" | "patch";
2669
2679
  filePath: string;
2670
2680
  }[];
2671
2681
  addedFileVersions: {
@@ -2674,8 +2684,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2674
2684
  }[];
2675
2685
  resetFileVersions: boolean;
2676
2686
  data: {
2677
- name: string;
2678
2687
  id: string;
2688
+ name: string;
2679
2689
  input: Record<string, any>;
2680
2690
  };
2681
2691
  }>, z.ZodObject<{
@@ -2738,41 +2748,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2738
2748
  fingerprintId: z.ZodString;
2739
2749
  fingerprintHash: z.ZodString;
2740
2750
  }, "strip", z.ZodTypeAny, {
2741
- email: string;
2742
- name: string | null;
2743
2751
  id: string;
2752
+ name: string | null;
2744
2753
  fingerprintId: string;
2745
2754
  authToken: string;
2755
+ email: string;
2746
2756
  fingerprintHash: string;
2747
2757
  }, {
2748
- email: string;
2749
- name: string | null;
2750
2758
  id: string;
2759
+ name: string | null;
2751
2760
  fingerprintId: string;
2752
2761
  authToken: string;
2762
+ email: string;
2753
2763
  fingerprintHash: string;
2754
2764
  }>>;
2755
2765
  message: z.ZodString;
2756
2766
  }, "strip", z.ZodTypeAny, {
2757
- message: string;
2758
2767
  type: "auth-result";
2768
+ message: string;
2759
2769
  user?: {
2760
- email: string;
2761
- name: string | null;
2762
2770
  id: string;
2771
+ name: string | null;
2763
2772
  fingerprintId: string;
2764
2773
  authToken: string;
2774
+ email: string;
2765
2775
  fingerprintHash: string;
2766
2776
  } | undefined;
2767
2777
  }, {
2768
- message: string;
2769
2778
  type: "auth-result";
2779
+ message: string;
2770
2780
  user?: {
2771
- email: string;
2772
- name: string | null;
2773
2781
  id: string;
2782
+ name: string | null;
2774
2783
  fingerprintId: string;
2775
2784
  authToken: string;
2785
+ email: string;
2776
2786
  fingerprintHash: string;
2777
2787
  } | undefined;
2778
2788
  }>, z.ZodObject<{
@@ -2818,11 +2828,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2818
2828
  type: z.ZodLiteral<"action-error">;
2819
2829
  message: z.ZodString;
2820
2830
  }, "strip", z.ZodTypeAny, {
2821
- message: string;
2822
2831
  type: "action-error";
2823
- }, {
2824
2832
  message: string;
2833
+ }, {
2825
2834
  type: "action-error";
2835
+ message: string;
2826
2836
  }>, z.ZodObject<{
2827
2837
  type: z.ZodLiteral<"commit-message-response">;
2828
2838
  commitMessage: z.ZodString;
@@ -2855,14 +2865,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2855
2865
  type: "response-complete";
2856
2866
  userInputId: string;
2857
2867
  changesAlreadyApplied: {
2868
+ type: "patch" | "file";
2858
2869
  content: string;
2859
- type: "file" | "patch";
2860
2870
  filePath: string;
2861
2871
  }[];
2862
2872
  response: string;
2863
2873
  changes: {
2874
+ type: "patch" | "file";
2864
2875
  content: string;
2865
- type: "file" | "patch";
2866
2876
  filePath: string;
2867
2877
  }[];
2868
2878
  addedFileVersions: {
@@ -2887,14 +2897,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2887
2897
  type: "tool-call";
2888
2898
  userInputId: string;
2889
2899
  changesAlreadyApplied: {
2900
+ type: "patch" | "file";
2890
2901
  content: string;
2891
- type: "file" | "patch";
2892
2902
  filePath: string;
2893
2903
  }[];
2894
2904
  response: string;
2895
2905
  changes: {
2906
+ type: "patch" | "file";
2896
2907
  content: string;
2897
- type: "file" | "patch";
2898
2908
  filePath: string;
2899
2909
  }[];
2900
2910
  addedFileVersions: {
@@ -2903,8 +2913,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2903
2913
  }[];
2904
2914
  resetFileVersions: boolean;
2905
2915
  data: {
2906
- name: string;
2907
2916
  id: string;
2917
+ name: string;
2908
2918
  input: Record<string, any>;
2909
2919
  };
2910
2920
  } | {
@@ -2916,14 +2926,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2916
2926
  isUpToDate: boolean;
2917
2927
  latestVersion: string;
2918
2928
  } | {
2919
- message: string;
2920
2929
  type: "auth-result";
2930
+ message: string;
2921
2931
  user?: {
2922
- email: string;
2923
- name: string | null;
2924
2932
  id: string;
2933
+ name: string | null;
2925
2934
  fingerprintId: string;
2926
2935
  authToken: string;
2936
+ email: string;
2927
2937
  fingerprintHash: string;
2928
2938
  } | undefined;
2929
2939
  } | {
@@ -2932,8 +2942,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2932
2942
  fingerprintHash: string;
2933
2943
  loginUrl: string;
2934
2944
  } | {
2935
- message: string;
2936
2945
  type: "action-error";
2946
+ message: string;
2937
2947
  } | {
2938
2948
  type: "commit-message-response";
2939
2949
  commitMessage: string;
@@ -2960,14 +2970,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2960
2970
  type: "response-complete";
2961
2971
  userInputId: string;
2962
2972
  changesAlreadyApplied: {
2973
+ type: "patch" | "file";
2963
2974
  content: string;
2964
- type: "file" | "patch";
2965
2975
  filePath: string;
2966
2976
  }[];
2967
2977
  response: string;
2968
2978
  changes: {
2979
+ type: "patch" | "file";
2969
2980
  content: string;
2970
- type: "file" | "patch";
2971
2981
  filePath: string;
2972
2982
  }[];
2973
2983
  addedFileVersions: {
@@ -2992,14 +3002,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2992
3002
  type: "tool-call";
2993
3003
  userInputId: string;
2994
3004
  changesAlreadyApplied: {
3005
+ type: "patch" | "file";
2995
3006
  content: string;
2996
- type: "file" | "patch";
2997
3007
  filePath: string;
2998
3008
  }[];
2999
3009
  response: string;
3000
3010
  changes: {
3011
+ type: "patch" | "file";
3001
3012
  content: string;
3002
- type: "file" | "patch";
3003
3013
  filePath: string;
3004
3014
  }[];
3005
3015
  addedFileVersions: {
@@ -3008,8 +3018,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3008
3018
  }[];
3009
3019
  resetFileVersions: boolean;
3010
3020
  data: {
3011
- name: string;
3012
3021
  id: string;
3022
+ name: string;
3013
3023
  input: Record<string, any>;
3014
3024
  };
3015
3025
  } | {
@@ -3021,14 +3031,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3021
3031
  isUpToDate: boolean;
3022
3032
  latestVersion: string;
3023
3033
  } | {
3024
- message: string;
3025
3034
  type: "auth-result";
3035
+ message: string;
3026
3036
  user?: {
3027
- email: string;
3028
- name: string | null;
3029
3037
  id: string;
3038
+ name: string | null;
3030
3039
  fingerprintId: string;
3031
3040
  authToken: string;
3041
+ email: string;
3032
3042
  fingerprintHash: string;
3033
3043
  } | undefined;
3034
3044
  } | {
@@ -3037,8 +3047,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3037
3047
  fingerprintHash: string;
3038
3048
  loginUrl: string;
3039
3049
  } | {
3040
- message: string;
3041
3050
  type: "action-error";
3051
+ message: string;
3042
3052
  } | {
3043
3053
  type: "commit-message-response";
3044
3054
  commitMessage: string;