codebuff 1.0.126 → 1.0.128

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,12 +295,12 @@ 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
306
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
@@ -317,16 +317,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
317
317
  } | undefined;
318
318
  } | {
319
319
  type: "tool_use";
320
- name: string;
321
320
  id: string;
321
+ name: string;
322
322
  input: Record<string, any>;
323
323
  cache_control?: {
324
324
  type: "ephemeral";
325
325
  } | undefined;
326
326
  } | {
327
- content: string;
328
327
  type: "tool_result";
329
328
  tool_use_id: string;
329
+ content: string;
330
330
  cache_control?: {
331
331
  type: "ephemeral";
332
332
  } | undefined;
@@ -339,8 +339,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
339
339
  fileTokenScores: Record<string, Record<string, number>>;
340
340
  knowledgeFiles: Record<string, string>;
341
341
  gitChanges: {
342
- status: string;
343
342
  diff: string;
343
+ status: string;
344
344
  diffCached: string;
345
345
  lastCommitMessages: string;
346
346
  };
@@ -360,8 +360,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
360
360
  }[][];
361
361
  };
362
362
  changesAlreadyApplied: {
363
+ type: "patch" | "file";
363
364
  content: string;
364
- type: "file" | "patch";
365
365
  filePath: string;
366
366
  }[];
367
367
  costMode: "lite" | "normal" | "pro";
@@ -379,16 +379,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
379
379
  } | undefined;
380
380
  } | {
381
381
  type: "tool_use";
382
- name: string;
383
382
  id: string;
383
+ name: string;
384
384
  input: Record<string, any>;
385
385
  cache_control?: {
386
386
  type: "ephemeral";
387
387
  } | undefined;
388
388
  } | {
389
- content: string;
390
389
  type: "tool_result";
391
390
  tool_use_id: string;
391
+ content: string;
392
392
  cache_control?: {
393
393
  type: "ephemeral";
394
394
  } | undefined;
@@ -401,8 +401,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
401
401
  fileTokenScores: Record<string, Record<string, number>>;
402
402
  knowledgeFiles: Record<string, string>;
403
403
  gitChanges: {
404
- status: string;
405
404
  diff: string;
405
+ status: string;
406
406
  diffCached: string;
407
407
  lastCommitMessages: string;
408
408
  };
@@ -422,8 +422,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
422
422
  }[][];
423
423
  };
424
424
  changesAlreadyApplied: {
425
+ type: "patch" | "file";
425
426
  content: string;
426
- type: "file" | "patch";
427
427
  filePath: string;
428
428
  }[];
429
429
  authToken?: string | undefined;
@@ -452,13 +452,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
452
452
  diffCached: z.ZodString;
453
453
  lastCommitMessages: z.ZodString;
454
454
  }, "strip", z.ZodTypeAny, {
455
- status: string;
456
455
  diff: string;
456
+ status: string;
457
457
  diffCached: string;
458
458
  lastCommitMessages: string;
459
459
  }, {
460
- status: string;
461
460
  diff: string;
461
+ status: string;
462
462
  diffCached: string;
463
463
  lastCommitMessages: string;
464
464
  }>;
@@ -502,8 +502,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
502
502
  fileTokenScores: Record<string, Record<string, number>>;
503
503
  knowledgeFiles: Record<string, string>;
504
504
  gitChanges: {
505
- status: string;
506
505
  diff: string;
506
+ status: string;
507
507
  diffCached: string;
508
508
  lastCommitMessages: string;
509
509
  };
@@ -527,8 +527,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
527
527
  fileTokenScores: Record<string, Record<string, number>>;
528
528
  knowledgeFiles: Record<string, string>;
529
529
  gitChanges: {
530
- status: string;
531
530
  diff: string;
531
+ status: string;
532
532
  diffCached: string;
533
533
  lastCommitMessages: string;
534
534
  };
@@ -556,8 +556,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
556
556
  fileTokenScores: Record<string, Record<string, number>>;
557
557
  knowledgeFiles: Record<string, string>;
558
558
  gitChanges: {
559
- status: string;
560
559
  diff: string;
560
+ status: string;
561
561
  diffCached: string;
562
562
  lastCommitMessages: string;
563
563
  };
@@ -586,8 +586,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
586
586
  fileTokenScores: Record<string, Record<string, number>>;
587
587
  knowledgeFiles: Record<string, string>;
588
588
  gitChanges: {
589
- status: string;
590
589
  diff: string;
590
+ status: string;
591
591
  diffCached: string;
592
592
  lastCommitMessages: string;
593
593
  };
@@ -692,16 +692,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
692
692
  } | undefined;
693
693
  } | {
694
694
  type: "tool_use";
695
- name: string;
696
695
  id: string;
696
+ name: string;
697
697
  input: Record<string, any>;
698
698
  cache_control?: {
699
699
  type: "ephemeral";
700
700
  } | undefined;
701
701
  } | {
702
- content: string;
703
702
  type: "tool_result";
704
703
  tool_use_id: string;
704
+ content: string;
705
705
  cache_control?: {
706
706
  type: "ephemeral";
707
707
  } | undefined;
@@ -714,8 +714,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
714
714
  fileTokenScores: Record<string, Record<string, number>>;
715
715
  knowledgeFiles: Record<string, string>;
716
716
  gitChanges: {
717
- status: string;
718
717
  diff: string;
718
+ status: string;
719
719
  diffCached: string;
720
720
  lastCommitMessages: string;
721
721
  };
@@ -735,8 +735,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
735
735
  }[][];
736
736
  };
737
737
  changesAlreadyApplied: {
738
+ type: "patch" | "file";
738
739
  content: string;
739
- type: "file" | "patch";
740
740
  filePath: string;
741
741
  }[];
742
742
  costMode: "lite" | "normal" | "pro";
@@ -753,8 +753,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
753
753
  fileTokenScores: Record<string, Record<string, number>>;
754
754
  knowledgeFiles: Record<string, string>;
755
755
  gitChanges: {
756
- status: string;
757
756
  diff: string;
757
+ status: string;
758
758
  diffCached: string;
759
759
  lastCommitMessages: string;
760
760
  };
@@ -814,16 +814,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
814
814
  } | undefined;
815
815
  } | {
816
816
  type: "tool_use";
817
- name: string;
818
817
  id: string;
818
+ name: string;
819
819
  input: Record<string, any>;
820
820
  cache_control?: {
821
821
  type: "ephemeral";
822
822
  } | undefined;
823
823
  } | {
824
- content: string;
825
824
  type: "tool_result";
826
825
  tool_use_id: string;
826
+ content: string;
827
827
  cache_control?: {
828
828
  type: "ephemeral";
829
829
  } | undefined;
@@ -836,8 +836,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
836
836
  fileTokenScores: Record<string, Record<string, number>>;
837
837
  knowledgeFiles: Record<string, string>;
838
838
  gitChanges: {
839
- status: string;
840
839
  diff: string;
840
+ status: string;
841
841
  diffCached: string;
842
842
  lastCommitMessages: string;
843
843
  };
@@ -857,8 +857,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
857
857
  }[][];
858
858
  };
859
859
  changesAlreadyApplied: {
860
+ type: "patch" | "file";
860
861
  content: string;
861
- type: "file" | "patch";
862
862
  filePath: string;
863
863
  }[];
864
864
  authToken?: string | undefined;
@@ -875,8 +875,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
875
875
  fileTokenScores: Record<string, Record<string, number>>;
876
876
  knowledgeFiles: Record<string, string>;
877
877
  gitChanges: {
878
- status: string;
879
878
  diff: string;
879
+ status: string;
880
880
  diffCached: string;
881
881
  lastCommitMessages: string;
882
882
  };
@@ -1014,16 +1014,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1014
1014
  }>>;
1015
1015
  }, "strip", z.ZodTypeAny, {
1016
1016
  type: "tool_use";
1017
- name: string;
1018
1017
  id: string;
1018
+ name: string;
1019
1019
  input: Record<string, any>;
1020
1020
  cache_control?: {
1021
1021
  type: "ephemeral";
1022
1022
  } | undefined;
1023
1023
  }, {
1024
1024
  type: "tool_use";
1025
- name: string;
1026
1025
  id: string;
1026
+ name: string;
1027
1027
  input: Record<string, any>;
1028
1028
  cache_control?: {
1029
1029
  type: "ephemeral";
@@ -1040,16 +1040,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1040
1040
  type: "ephemeral";
1041
1041
  }>>;
1042
1042
  }, "strip", z.ZodTypeAny, {
1043
- content: string;
1044
1043
  type: "tool_result";
1045
1044
  tool_use_id: string;
1045
+ content: string;
1046
1046
  cache_control?: {
1047
1047
  type: "ephemeral";
1048
1048
  } | undefined;
1049
1049
  }, {
1050
- content: string;
1051
1050
  type: "tool_result";
1052
1051
  tool_use_id: string;
1052
+ content: string;
1053
1053
  cache_control?: {
1054
1054
  type: "ephemeral";
1055
1055
  } | undefined;
@@ -1063,16 +1063,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1063
1063
  } | undefined;
1064
1064
  } | {
1065
1065
  type: "tool_use";
1066
- name: string;
1067
1066
  id: string;
1067
+ name: string;
1068
1068
  input: Record<string, any>;
1069
1069
  cache_control?: {
1070
1070
  type: "ephemeral";
1071
1071
  } | undefined;
1072
1072
  } | {
1073
- content: string;
1074
1073
  type: "tool_result";
1075
1074
  tool_use_id: string;
1075
+ content: string;
1076
1076
  cache_control?: {
1077
1077
  type: "ephemeral";
1078
1078
  } | undefined;
@@ -1087,16 +1087,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1087
1087
  } | undefined;
1088
1088
  } | {
1089
1089
  type: "tool_use";
1090
- name: string;
1091
1090
  id: string;
1091
+ name: string;
1092
1092
  input: Record<string, any>;
1093
1093
  cache_control?: {
1094
1094
  type: "ephemeral";
1095
1095
  } | undefined;
1096
1096
  } | {
1097
- content: string;
1098
1097
  type: "tool_result";
1099
1098
  tool_use_id: string;
1099
+ content: string;
1100
1100
  cache_control?: {
1101
1101
  type: "ephemeral";
1102
1102
  } | undefined;
@@ -1114,13 +1114,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1114
1114
  diffCached: z.ZodString;
1115
1115
  lastCommitMessages: z.ZodString;
1116
1116
  }, "strip", z.ZodTypeAny, {
1117
- status: string;
1118
1117
  diff: string;
1118
+ status: string;
1119
1119
  diffCached: string;
1120
1120
  lastCommitMessages: string;
1121
1121
  }, {
1122
- status: string;
1123
1122
  diff: string;
1123
+ status: string;
1124
1124
  diffCached: string;
1125
1125
  lastCommitMessages: string;
1126
1126
  }>;
@@ -1164,8 +1164,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1164
1164
  fileTokenScores: Record<string, Record<string, number>>;
1165
1165
  knowledgeFiles: Record<string, string>;
1166
1166
  gitChanges: {
1167
- status: string;
1168
1167
  diff: string;
1168
+ status: string;
1169
1169
  diffCached: string;
1170
1170
  lastCommitMessages: string;
1171
1171
  };
@@ -1189,8 +1189,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1189
1189
  fileTokenScores: Record<string, Record<string, number>>;
1190
1190
  knowledgeFiles: Record<string, string>;
1191
1191
  gitChanges: {
1192
- status: string;
1193
1192
  diff: string;
1193
+ status: string;
1194
1194
  diffCached: string;
1195
1195
  lastCommitMessages: string;
1196
1196
  };
@@ -1214,12 +1214,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1214
1214
  filePath: z.ZodString;
1215
1215
  content: z.ZodString;
1216
1216
  }, "strip", z.ZodTypeAny, {
1217
+ type: "patch" | "file";
1217
1218
  content: string;
1218
- type: "file" | "patch";
1219
1219
  filePath: string;
1220
1220
  }, {
1221
+ type: "patch" | "file";
1221
1222
  content: string;
1222
- type: "file" | "patch";
1223
1223
  filePath: string;
1224
1224
  }>, "many">;
1225
1225
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
@@ -1236,16 +1236,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1236
1236
  } | undefined;
1237
1237
  } | {
1238
1238
  type: "tool_use";
1239
- name: string;
1240
1239
  id: string;
1240
+ name: string;
1241
1241
  input: Record<string, any>;
1242
1242
  cache_control?: {
1243
1243
  type: "ephemeral";
1244
1244
  } | undefined;
1245
1245
  } | {
1246
- content: string;
1247
1246
  type: "tool_result";
1248
1247
  tool_use_id: string;
1248
+ content: string;
1249
1249
  cache_control?: {
1250
1250
  type: "ephemeral";
1251
1251
  } | undefined;
@@ -1258,8 +1258,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1258
1258
  fileTokenScores: Record<string, Record<string, number>>;
1259
1259
  knowledgeFiles: Record<string, string>;
1260
1260
  gitChanges: {
1261
- status: string;
1262
1261
  diff: string;
1262
+ status: string;
1263
1263
  diffCached: string;
1264
1264
  lastCommitMessages: string;
1265
1265
  };
@@ -1279,8 +1279,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1279
1279
  }[][];
1280
1280
  };
1281
1281
  changesAlreadyApplied: {
1282
+ type: "patch" | "file";
1282
1283
  content: string;
1283
- type: "file" | "patch";
1284
1284
  filePath: string;
1285
1285
  }[];
1286
1286
  costMode: "lite" | "normal" | "pro";
@@ -1298,16 +1298,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1298
1298
  } | undefined;
1299
1299
  } | {
1300
1300
  type: "tool_use";
1301
- name: string;
1302
1301
  id: string;
1302
+ name: string;
1303
1303
  input: Record<string, any>;
1304
1304
  cache_control?: {
1305
1305
  type: "ephemeral";
1306
1306
  } | undefined;
1307
1307
  } | {
1308
- content: string;
1309
1308
  type: "tool_result";
1310
1309
  tool_use_id: string;
1310
+ content: string;
1311
1311
  cache_control?: {
1312
1312
  type: "ephemeral";
1313
1313
  } | undefined;
@@ -1320,8 +1320,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1320
1320
  fileTokenScores: Record<string, Record<string, number>>;
1321
1321
  knowledgeFiles: Record<string, string>;
1322
1322
  gitChanges: {
1323
- status: string;
1324
1323
  diff: string;
1324
+ status: string;
1325
1325
  diffCached: string;
1326
1326
  lastCommitMessages: string;
1327
1327
  };
@@ -1341,8 +1341,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1341
1341
  }[][];
1342
1342
  };
1343
1343
  changesAlreadyApplied: {
1344
+ type: "patch" | "file";
1344
1345
  content: string;
1345
- type: "file" | "patch";
1346
1346
  filePath: string;
1347
1347
  }[];
1348
1348
  authToken?: string | undefined;
@@ -1371,13 +1371,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1371
1371
  diffCached: z.ZodString;
1372
1372
  lastCommitMessages: z.ZodString;
1373
1373
  }, "strip", z.ZodTypeAny, {
1374
- status: string;
1375
1374
  diff: string;
1375
+ status: string;
1376
1376
  diffCached: string;
1377
1377
  lastCommitMessages: string;
1378
1378
  }, {
1379
- status: string;
1380
1379
  diff: string;
1380
+ status: string;
1381
1381
  diffCached: string;
1382
1382
  lastCommitMessages: string;
1383
1383
  }>;
@@ -1421,8 +1421,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1421
1421
  fileTokenScores: Record<string, Record<string, number>>;
1422
1422
  knowledgeFiles: Record<string, string>;
1423
1423
  gitChanges: {
1424
- status: string;
1425
1424
  diff: string;
1425
+ status: string;
1426
1426
  diffCached: string;
1427
1427
  lastCommitMessages: string;
1428
1428
  };
@@ -1446,8 +1446,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1446
1446
  fileTokenScores: Record<string, Record<string, number>>;
1447
1447
  knowledgeFiles: Record<string, string>;
1448
1448
  gitChanges: {
1449
- status: string;
1450
1449
  diff: string;
1450
+ status: string;
1451
1451
  diffCached: string;
1452
1452
  lastCommitMessages: string;
1453
1453
  };
@@ -1475,8 +1475,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1475
1475
  fileTokenScores: Record<string, Record<string, number>>;
1476
1476
  knowledgeFiles: Record<string, string>;
1477
1477
  gitChanges: {
1478
- status: string;
1479
1478
  diff: string;
1479
+ status: string;
1480
1480
  diffCached: string;
1481
1481
  lastCommitMessages: string;
1482
1482
  };
@@ -1505,8 +1505,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1505
1505
  fileTokenScores: Record<string, Record<string, number>>;
1506
1506
  knowledgeFiles: Record<string, string>;
1507
1507
  gitChanges: {
1508
- status: string;
1509
1508
  diff: string;
1509
+ status: string;
1510
1510
  diffCached: string;
1511
1511
  lastCommitMessages: string;
1512
1512
  };
@@ -1611,16 +1611,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1611
1611
  } | undefined;
1612
1612
  } | {
1613
1613
  type: "tool_use";
1614
- name: string;
1615
1614
  id: string;
1615
+ name: string;
1616
1616
  input: Record<string, any>;
1617
1617
  cache_control?: {
1618
1618
  type: "ephemeral";
1619
1619
  } | undefined;
1620
1620
  } | {
1621
- content: string;
1622
1621
  type: "tool_result";
1623
1622
  tool_use_id: string;
1623
+ content: string;
1624
1624
  cache_control?: {
1625
1625
  type: "ephemeral";
1626
1626
  } | undefined;
@@ -1633,8 +1633,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1633
1633
  fileTokenScores: Record<string, Record<string, number>>;
1634
1634
  knowledgeFiles: Record<string, string>;
1635
1635
  gitChanges: {
1636
- status: string;
1637
1636
  diff: string;
1637
+ status: string;
1638
1638
  diffCached: string;
1639
1639
  lastCommitMessages: string;
1640
1640
  };
@@ -1654,8 +1654,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1654
1654
  }[][];
1655
1655
  };
1656
1656
  changesAlreadyApplied: {
1657
+ type: "patch" | "file";
1657
1658
  content: string;
1658
- type: "file" | "patch";
1659
1659
  filePath: string;
1660
1660
  }[];
1661
1661
  costMode: "lite" | "normal" | "pro";
@@ -1672,8 +1672,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1672
1672
  fileTokenScores: Record<string, Record<string, number>>;
1673
1673
  knowledgeFiles: Record<string, string>;
1674
1674
  gitChanges: {
1675
- status: string;
1676
1675
  diff: string;
1676
+ status: string;
1677
1677
  diffCached: string;
1678
1678
  lastCommitMessages: string;
1679
1679
  };
@@ -1733,16 +1733,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1733
1733
  } | undefined;
1734
1734
  } | {
1735
1735
  type: "tool_use";
1736
- name: string;
1737
1736
  id: string;
1737
+ name: string;
1738
1738
  input: Record<string, any>;
1739
1739
  cache_control?: {
1740
1740
  type: "ephemeral";
1741
1741
  } | undefined;
1742
1742
  } | {
1743
- content: string;
1744
1743
  type: "tool_result";
1745
1744
  tool_use_id: string;
1745
+ content: string;
1746
1746
  cache_control?: {
1747
1747
  type: "ephemeral";
1748
1748
  } | undefined;
@@ -1755,8 +1755,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1755
1755
  fileTokenScores: Record<string, Record<string, number>>;
1756
1756
  knowledgeFiles: Record<string, string>;
1757
1757
  gitChanges: {
1758
- status: string;
1759
1758
  diff: string;
1759
+ status: string;
1760
1760
  diffCached: string;
1761
1761
  lastCommitMessages: string;
1762
1762
  };
@@ -1776,8 +1776,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1776
1776
  }[][];
1777
1777
  };
1778
1778
  changesAlreadyApplied: {
1779
+ type: "patch" | "file";
1779
1780
  content: string;
1780
- type: "file" | "patch";
1781
1781
  filePath: string;
1782
1782
  }[];
1783
1783
  authToken?: string | undefined;
@@ -1794,8 +1794,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1794
1794
  fileTokenScores: Record<string, Record<string, number>>;
1795
1795
  knowledgeFiles: Record<string, string>;
1796
1796
  gitChanges: {
1797
- status: string;
1798
1797
  diff: string;
1798
+ status: string;
1799
1799
  diffCached: string;
1800
1800
  lastCommitMessages: string;
1801
1801
  };
@@ -1883,12 +1883,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1883
1883
  filePath: z.ZodString;
1884
1884
  content: z.ZodString;
1885
1885
  }, "strip", z.ZodTypeAny, {
1886
+ type: "patch" | "file";
1886
1887
  content: string;
1887
- type: "file" | "patch";
1888
1888
  filePath: string;
1889
1889
  }, {
1890
+ type: "patch" | "file";
1890
1891
  content: string;
1891
- type: "file" | "patch";
1892
1892
  filePath: string;
1893
1893
  }>, "many">;
1894
1894
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -1896,12 +1896,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1896
1896
  filePath: z.ZodString;
1897
1897
  content: z.ZodString;
1898
1898
  }, "strip", z.ZodTypeAny, {
1899
+ type: "patch" | "file";
1899
1900
  content: string;
1900
- type: "file" | "patch";
1901
1901
  filePath: string;
1902
1902
  }, {
1903
+ type: "patch" | "file";
1903
1904
  content: string;
1904
- type: "file" | "patch";
1905
1905
  filePath: string;
1906
1906
  }>, "many">;
1907
1907
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -1927,13 +1927,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1927
1927
  response: string;
1928
1928
  userInputId: string;
1929
1929
  changesAlreadyApplied: {
1930
+ type: "patch" | "file";
1930
1931
  content: string;
1931
- type: "file" | "patch";
1932
1932
  filePath: string;
1933
1933
  }[];
1934
1934
  changes: {
1935
+ type: "patch" | "file";
1935
1936
  content: string;
1936
- type: "file" | "patch";
1937
1937
  filePath: string;
1938
1938
  }[];
1939
1939
  addedFileVersions: {
@@ -1952,13 +1952,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1952
1952
  response: string;
1953
1953
  userInputId: string;
1954
1954
  changesAlreadyApplied: {
1955
+ type: "patch" | "file";
1955
1956
  content: string;
1956
- type: "file" | "patch";
1957
1957
  filePath: string;
1958
1958
  }[];
1959
1959
  changes: {
1960
+ type: "patch" | "file";
1960
1961
  content: string;
1961
- type: "file" | "patch";
1962
1962
  filePath: string;
1963
1963
  }[];
1964
1964
  addedFileVersions: {
@@ -1990,12 +1990,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1990
1990
  id: z.ZodString;
1991
1991
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
1992
1992
  }, "strip", z.ZodTypeAny, {
1993
- name: string;
1994
1993
  id: string;
1994
+ name: string;
1995
1995
  input: Record<string, any>;
1996
1996
  }, {
1997
- name: string;
1998
1997
  id: string;
1998
+ name: string;
1999
1999
  input: Record<string, any>;
2000
2000
  }>;
2001
2001
  changes: z.ZodArray<z.ZodObject<{
@@ -2003,12 +2003,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2003
2003
  filePath: z.ZodString;
2004
2004
  content: z.ZodString;
2005
2005
  }, "strip", z.ZodTypeAny, {
2006
+ type: "patch" | "file";
2006
2007
  content: string;
2007
- type: "file" | "patch";
2008
2008
  filePath: string;
2009
2009
  }, {
2010
+ type: "patch" | "file";
2010
2011
  content: string;
2011
- type: "file" | "patch";
2012
2012
  filePath: string;
2013
2013
  }>, "many">;
2014
2014
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2016,12 +2016,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2016
2016
  filePath: z.ZodString;
2017
2017
  content: z.ZodString;
2018
2018
  }, "strip", z.ZodTypeAny, {
2019
+ type: "patch" | "file";
2019
2020
  content: string;
2020
- type: "file" | "patch";
2021
2021
  filePath: string;
2022
2022
  }, {
2023
+ type: "patch" | "file";
2023
2024
  content: string;
2024
- type: "file" | "patch";
2025
2025
  filePath: string;
2026
2026
  }>, "many">;
2027
2027
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2038,20 +2038,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
2039
  type: "tool-call";
2040
2040
  data: {
2041
- name: string;
2042
2041
  id: string;
2042
+ name: string;
2043
2043
  input: Record<string, any>;
2044
2044
  };
2045
2045
  response: string;
2046
2046
  userInputId: string;
2047
2047
  changesAlreadyApplied: {
2048
+ type: "patch" | "file";
2048
2049
  content: string;
2049
- type: "file" | "patch";
2050
2050
  filePath: string;
2051
2051
  }[];
2052
2052
  changes: {
2053
+ type: "patch" | "file";
2053
2054
  content: string;
2054
- type: "file" | "patch";
2055
2055
  filePath: string;
2056
2056
  }[];
2057
2057
  addedFileVersions: {
@@ -2062,20 +2062,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2062
2062
  }, {
2063
2063
  type: "tool-call";
2064
2064
  data: {
2065
- name: string;
2066
2065
  id: string;
2066
+ name: string;
2067
2067
  input: Record<string, any>;
2068
2068
  };
2069
2069
  response: string;
2070
2070
  userInputId: string;
2071
2071
  changesAlreadyApplied: {
2072
+ type: "patch" | "file";
2072
2073
  content: string;
2073
- type: "file" | "patch";
2074
2074
  filePath: string;
2075
2075
  }[];
2076
2076
  changes: {
2077
+ type: "patch" | "file";
2077
2078
  content: string;
2078
- type: "file" | "patch";
2079
2079
  filePath: string;
2080
2080
  }[];
2081
2081
  addedFileVersions: {
@@ -2143,39 +2143,39 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2143
2143
  fingerprintId: z.ZodString;
2144
2144
  fingerprintHash: z.ZodString;
2145
2145
  }, "strip", z.ZodTypeAny, {
2146
- email: string;
2147
- name: string | null;
2148
2146
  id: string;
2147
+ name: string | null;
2148
+ email: string;
2149
2149
  fingerprintId: string;
2150
2150
  authToken: string;
2151
2151
  fingerprintHash: string;
2152
2152
  }, {
2153
- email: string;
2154
- name: string | null;
2155
2153
  id: string;
2154
+ name: string | null;
2155
+ email: string;
2156
2156
  fingerprintId: string;
2157
2157
  authToken: string;
2158
2158
  fingerprintHash: string;
2159
2159
  }>>;
2160
2160
  message: z.ZodString;
2161
2161
  }, "strip", z.ZodTypeAny, {
2162
- message: string;
2163
2162
  type: "auth-result";
2163
+ message: string;
2164
2164
  user?: {
2165
- email: string;
2166
- name: string | null;
2167
2165
  id: string;
2166
+ name: string | null;
2167
+ email: string;
2168
2168
  fingerprintId: string;
2169
2169
  authToken: string;
2170
2170
  fingerprintHash: string;
2171
2171
  } | undefined;
2172
2172
  }, {
2173
- message: string;
2174
2173
  type: "auth-result";
2174
+ message: string;
2175
2175
  user?: {
2176
- email: string;
2177
- name: string | null;
2178
2176
  id: string;
2177
+ name: string | null;
2178
+ email: string;
2179
2179
  fingerprintId: string;
2180
2180
  authToken: string;
2181
2181
  fingerprintHash: string;
@@ -2223,11 +2223,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2223
2223
  type: z.ZodLiteral<"action-error">;
2224
2224
  message: z.ZodString;
2225
2225
  }, "strip", z.ZodTypeAny, {
2226
- message: string;
2227
2226
  type: "action-error";
2228
- }, {
2229
2227
  message: string;
2228
+ }, {
2230
2229
  type: "action-error";
2230
+ message: string;
2231
2231
  }>, z.ZodObject<{
2232
2232
  type: z.ZodLiteral<"commit-message-response">;
2233
2233
  commitMessage: z.ZodString;
@@ -2261,13 +2261,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2261
2261
  response: string;
2262
2262
  userInputId: string;
2263
2263
  changesAlreadyApplied: {
2264
+ type: "patch" | "file";
2264
2265
  content: string;
2265
- type: "file" | "patch";
2266
2266
  filePath: string;
2267
2267
  }[];
2268
2268
  changes: {
2269
+ type: "patch" | "file";
2269
2270
  content: string;
2270
- type: "file" | "patch";
2271
2271
  filePath: string;
2272
2272
  }[];
2273
2273
  addedFileVersions: {
@@ -2291,20 +2291,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2291
2291
  } | {
2292
2292
  type: "tool-call";
2293
2293
  data: {
2294
- name: string;
2295
2294
  id: string;
2295
+ name: string;
2296
2296
  input: Record<string, any>;
2297
2297
  };
2298
2298
  response: string;
2299
2299
  userInputId: string;
2300
2300
  changesAlreadyApplied: {
2301
+ type: "patch" | "file";
2301
2302
  content: string;
2302
- type: "file" | "patch";
2303
2303
  filePath: string;
2304
2304
  }[];
2305
2305
  changes: {
2306
+ type: "patch" | "file";
2306
2307
  content: string;
2307
- type: "file" | "patch";
2308
2308
  filePath: string;
2309
2309
  }[];
2310
2310
  addedFileVersions: {
@@ -2321,12 +2321,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2321
2321
  isUpToDate: boolean;
2322
2322
  latestVersion: string;
2323
2323
  } | {
2324
- message: string;
2325
2324
  type: "auth-result";
2325
+ message: string;
2326
2326
  user?: {
2327
- email: string;
2328
- name: string | null;
2329
2327
  id: string;
2328
+ name: string | null;
2329
+ email: string;
2330
2330
  fingerprintId: string;
2331
2331
  authToken: string;
2332
2332
  fingerprintHash: string;
@@ -2337,8 +2337,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2337
2337
  fingerprintHash: string;
2338
2338
  loginUrl: string;
2339
2339
  } | {
2340
- message: string;
2341
2340
  type: "action-error";
2341
+ message: string;
2342
2342
  } | {
2343
2343
  type: "commit-message-response";
2344
2344
  commitMessage: string;
@@ -2366,13 +2366,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2366
2366
  response: string;
2367
2367
  userInputId: string;
2368
2368
  changesAlreadyApplied: {
2369
+ type: "patch" | "file";
2369
2370
  content: string;
2370
- type: "file" | "patch";
2371
2371
  filePath: string;
2372
2372
  }[];
2373
2373
  changes: {
2374
+ type: "patch" | "file";
2374
2375
  content: string;
2375
- type: "file" | "patch";
2376
2376
  filePath: string;
2377
2377
  }[];
2378
2378
  addedFileVersions: {
@@ -2396,20 +2396,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2396
2396
  } | {
2397
2397
  type: "tool-call";
2398
2398
  data: {
2399
- name: string;
2400
2399
  id: string;
2400
+ name: string;
2401
2401
  input: Record<string, any>;
2402
2402
  };
2403
2403
  response: string;
2404
2404
  userInputId: string;
2405
2405
  changesAlreadyApplied: {
2406
+ type: "patch" | "file";
2406
2407
  content: string;
2407
- type: "file" | "patch";
2408
2408
  filePath: string;
2409
2409
  }[];
2410
2410
  changes: {
2411
+ type: "patch" | "file";
2411
2412
  content: string;
2412
- type: "file" | "patch";
2413
2413
  filePath: string;
2414
2414
  }[];
2415
2415
  addedFileVersions: {
@@ -2426,12 +2426,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2426
2426
  isUpToDate: boolean;
2427
2427
  latestVersion: string;
2428
2428
  } | {
2429
- message: string;
2430
2429
  type: "auth-result";
2430
+ message: string;
2431
2431
  user?: {
2432
- email: string;
2433
- name: string | null;
2434
2432
  id: string;
2433
+ name: string | null;
2434
+ email: string;
2435
2435
  fingerprintId: string;
2436
2436
  authToken: string;
2437
2437
  fingerprintHash: string;
@@ -2442,8 +2442,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2442
2442
  fingerprintHash: string;
2443
2443
  loginUrl: string;
2444
2444
  } | {
2445
- message: string;
2446
2445
  type: "action-error";
2446
+ message: string;
2447
2447
  } | {
2448
2448
  type: "commit-message-response";
2449
2449
  commitMessage: string;
@@ -2488,12 +2488,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2488
2488
  filePath: z.ZodString;
2489
2489
  content: z.ZodString;
2490
2490
  }, "strip", z.ZodTypeAny, {
2491
+ type: "patch" | "file";
2491
2492
  content: string;
2492
- type: "file" | "patch";
2493
2493
  filePath: string;
2494
2494
  }, {
2495
+ type: "patch" | "file";
2495
2496
  content: string;
2496
- type: "file" | "patch";
2497
2497
  filePath: string;
2498
2498
  }>, "many">;
2499
2499
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2501,12 +2501,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2501
2501
  filePath: z.ZodString;
2502
2502
  content: z.ZodString;
2503
2503
  }, "strip", z.ZodTypeAny, {
2504
+ type: "patch" | "file";
2504
2505
  content: string;
2505
- type: "file" | "patch";
2506
2506
  filePath: string;
2507
2507
  }, {
2508
+ type: "patch" | "file";
2508
2509
  content: string;
2509
- type: "file" | "patch";
2510
2510
  filePath: string;
2511
2511
  }>, "many">;
2512
2512
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2532,13 +2532,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2532
2532
  response: string;
2533
2533
  userInputId: string;
2534
2534
  changesAlreadyApplied: {
2535
+ type: "patch" | "file";
2535
2536
  content: string;
2536
- type: "file" | "patch";
2537
2537
  filePath: string;
2538
2538
  }[];
2539
2539
  changes: {
2540
+ type: "patch" | "file";
2540
2541
  content: string;
2541
- type: "file" | "patch";
2542
2542
  filePath: string;
2543
2543
  }[];
2544
2544
  addedFileVersions: {
@@ -2557,13 +2557,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2557
2557
  response: string;
2558
2558
  userInputId: string;
2559
2559
  changesAlreadyApplied: {
2560
+ type: "patch" | "file";
2560
2561
  content: string;
2561
- type: "file" | "patch";
2562
2562
  filePath: string;
2563
2563
  }[];
2564
2564
  changes: {
2565
+ type: "patch" | "file";
2565
2566
  content: string;
2566
- type: "file" | "patch";
2567
2567
  filePath: string;
2568
2568
  }[];
2569
2569
  addedFileVersions: {
@@ -2595,12 +2595,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2595
2595
  id: z.ZodString;
2596
2596
  input: z.ZodRecord<z.ZodString, z.ZodAny>;
2597
2597
  }, "strip", z.ZodTypeAny, {
2598
- name: string;
2599
2598
  id: string;
2599
+ name: string;
2600
2600
  input: Record<string, any>;
2601
2601
  }, {
2602
- name: string;
2603
2602
  id: string;
2603
+ name: string;
2604
2604
  input: Record<string, any>;
2605
2605
  }>;
2606
2606
  changes: z.ZodArray<z.ZodObject<{
@@ -2608,12 +2608,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2608
2608
  filePath: z.ZodString;
2609
2609
  content: z.ZodString;
2610
2610
  }, "strip", z.ZodTypeAny, {
2611
+ type: "patch" | "file";
2611
2612
  content: string;
2612
- type: "file" | "patch";
2613
2613
  filePath: string;
2614
2614
  }, {
2615
+ type: "patch" | "file";
2615
2616
  content: string;
2616
- type: "file" | "patch";
2617
2617
  filePath: string;
2618
2618
  }>, "many">;
2619
2619
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
@@ -2621,12 +2621,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2621
2621
  filePath: z.ZodString;
2622
2622
  content: z.ZodString;
2623
2623
  }, "strip", z.ZodTypeAny, {
2624
+ type: "patch" | "file";
2624
2625
  content: string;
2625
- type: "file" | "patch";
2626
2626
  filePath: string;
2627
2627
  }, {
2628
+ type: "patch" | "file";
2628
2629
  content: string;
2629
- type: "file" | "patch";
2630
2630
  filePath: string;
2631
2631
  }>, "many">;
2632
2632
  addedFileVersions: z.ZodArray<z.ZodObject<{
@@ -2643,20 +2643,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2643
2643
  }, "strip", z.ZodTypeAny, {
2644
2644
  type: "tool-call";
2645
2645
  data: {
2646
- name: string;
2647
2646
  id: string;
2647
+ name: string;
2648
2648
  input: Record<string, any>;
2649
2649
  };
2650
2650
  response: string;
2651
2651
  userInputId: string;
2652
2652
  changesAlreadyApplied: {
2653
+ type: "patch" | "file";
2653
2654
  content: string;
2654
- type: "file" | "patch";
2655
2655
  filePath: string;
2656
2656
  }[];
2657
2657
  changes: {
2658
+ type: "patch" | "file";
2658
2659
  content: string;
2659
- type: "file" | "patch";
2660
2660
  filePath: string;
2661
2661
  }[];
2662
2662
  addedFileVersions: {
@@ -2667,20 +2667,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2667
2667
  }, {
2668
2668
  type: "tool-call";
2669
2669
  data: {
2670
- name: string;
2671
2670
  id: string;
2671
+ name: string;
2672
2672
  input: Record<string, any>;
2673
2673
  };
2674
2674
  response: string;
2675
2675
  userInputId: string;
2676
2676
  changesAlreadyApplied: {
2677
+ type: "patch" | "file";
2677
2678
  content: string;
2678
- type: "file" | "patch";
2679
2679
  filePath: string;
2680
2680
  }[];
2681
2681
  changes: {
2682
+ type: "patch" | "file";
2682
2683
  content: string;
2683
- type: "file" | "patch";
2684
2684
  filePath: string;
2685
2685
  }[];
2686
2686
  addedFileVersions: {
@@ -2748,39 +2748,39 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2748
2748
  fingerprintId: z.ZodString;
2749
2749
  fingerprintHash: z.ZodString;
2750
2750
  }, "strip", z.ZodTypeAny, {
2751
- email: string;
2752
- name: string | null;
2753
2751
  id: string;
2752
+ name: string | null;
2753
+ email: string;
2754
2754
  fingerprintId: string;
2755
2755
  authToken: string;
2756
2756
  fingerprintHash: string;
2757
2757
  }, {
2758
- email: string;
2759
- name: string | null;
2760
2758
  id: string;
2759
+ name: string | null;
2760
+ email: string;
2761
2761
  fingerprintId: string;
2762
2762
  authToken: string;
2763
2763
  fingerprintHash: string;
2764
2764
  }>>;
2765
2765
  message: z.ZodString;
2766
2766
  }, "strip", z.ZodTypeAny, {
2767
- message: string;
2768
2767
  type: "auth-result";
2768
+ message: string;
2769
2769
  user?: {
2770
- email: string;
2771
- name: string | null;
2772
2770
  id: string;
2771
+ name: string | null;
2772
+ email: string;
2773
2773
  fingerprintId: string;
2774
2774
  authToken: string;
2775
2775
  fingerprintHash: string;
2776
2776
  } | undefined;
2777
2777
  }, {
2778
- message: string;
2779
2778
  type: "auth-result";
2779
+ message: string;
2780
2780
  user?: {
2781
- email: string;
2782
- name: string | null;
2783
2781
  id: string;
2782
+ name: string | null;
2783
+ email: string;
2784
2784
  fingerprintId: string;
2785
2785
  authToken: string;
2786
2786
  fingerprintHash: string;
@@ -2828,11 +2828,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2828
2828
  type: z.ZodLiteral<"action-error">;
2829
2829
  message: z.ZodString;
2830
2830
  }, "strip", z.ZodTypeAny, {
2831
- message: string;
2832
2831
  type: "action-error";
2833
- }, {
2834
2832
  message: string;
2833
+ }, {
2835
2834
  type: "action-error";
2835
+ message: string;
2836
2836
  }>, z.ZodObject<{
2837
2837
  type: z.ZodLiteral<"commit-message-response">;
2838
2838
  commitMessage: z.ZodString;
@@ -2866,13 +2866,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2866
2866
  response: string;
2867
2867
  userInputId: string;
2868
2868
  changesAlreadyApplied: {
2869
+ type: "patch" | "file";
2869
2870
  content: string;
2870
- type: "file" | "patch";
2871
2871
  filePath: string;
2872
2872
  }[];
2873
2873
  changes: {
2874
+ type: "patch" | "file";
2874
2875
  content: string;
2875
- type: "file" | "patch";
2876
2876
  filePath: string;
2877
2877
  }[];
2878
2878
  addedFileVersions: {
@@ -2896,20 +2896,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2896
2896
  } | {
2897
2897
  type: "tool-call";
2898
2898
  data: {
2899
- name: string;
2900
2899
  id: string;
2900
+ name: string;
2901
2901
  input: Record<string, any>;
2902
2902
  };
2903
2903
  response: string;
2904
2904
  userInputId: string;
2905
2905
  changesAlreadyApplied: {
2906
+ type: "patch" | "file";
2906
2907
  content: string;
2907
- type: "file" | "patch";
2908
2908
  filePath: string;
2909
2909
  }[];
2910
2910
  changes: {
2911
+ type: "patch" | "file";
2911
2912
  content: string;
2912
- type: "file" | "patch";
2913
2913
  filePath: string;
2914
2914
  }[];
2915
2915
  addedFileVersions: {
@@ -2926,12 +2926,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2926
2926
  isUpToDate: boolean;
2927
2927
  latestVersion: string;
2928
2928
  } | {
2929
- message: string;
2930
2929
  type: "auth-result";
2930
+ message: string;
2931
2931
  user?: {
2932
- email: string;
2933
- name: string | null;
2934
2932
  id: string;
2933
+ name: string | null;
2934
+ email: string;
2935
2935
  fingerprintId: string;
2936
2936
  authToken: string;
2937
2937
  fingerprintHash: string;
@@ -2942,8 +2942,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2942
2942
  fingerprintHash: string;
2943
2943
  loginUrl: string;
2944
2944
  } | {
2945
- message: string;
2946
2945
  type: "action-error";
2946
+ message: string;
2947
2947
  } | {
2948
2948
  type: "commit-message-response";
2949
2949
  commitMessage: string;
@@ -2971,13 +2971,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2971
2971
  response: string;
2972
2972
  userInputId: string;
2973
2973
  changesAlreadyApplied: {
2974
+ type: "patch" | "file";
2974
2975
  content: string;
2975
- type: "file" | "patch";
2976
2976
  filePath: string;
2977
2977
  }[];
2978
2978
  changes: {
2979
+ type: "patch" | "file";
2979
2980
  content: string;
2980
- type: "file" | "patch";
2981
2981
  filePath: string;
2982
2982
  }[];
2983
2983
  addedFileVersions: {
@@ -3001,20 +3001,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3001
3001
  } | {
3002
3002
  type: "tool-call";
3003
3003
  data: {
3004
- name: string;
3005
3004
  id: string;
3005
+ name: string;
3006
3006
  input: Record<string, any>;
3007
3007
  };
3008
3008
  response: string;
3009
3009
  userInputId: string;
3010
3010
  changesAlreadyApplied: {
3011
+ type: "patch" | "file";
3011
3012
  content: string;
3012
- type: "file" | "patch";
3013
3013
  filePath: string;
3014
3014
  }[];
3015
3015
  changes: {
3016
+ type: "patch" | "file";
3016
3017
  content: string;
3017
- type: "file" | "patch";
3018
3018
  filePath: string;
3019
3019
  }[];
3020
3020
  addedFileVersions: {
@@ -3031,12 +3031,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3031
3031
  isUpToDate: boolean;
3032
3032
  latestVersion: string;
3033
3033
  } | {
3034
- message: string;
3035
3034
  type: "auth-result";
3035
+ message: string;
3036
3036
  user?: {
3037
- email: string;
3038
- name: string | null;
3039
3037
  id: string;
3038
+ name: string | null;
3039
+ email: string;
3040
3040
  fingerprintId: string;
3041
3041
  authToken: string;
3042
3042
  fingerprintHash: string;
@@ -3047,8 +3047,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3047
3047
  fingerprintHash: string;
3048
3048
  loginUrl: string;
3049
3049
  } | {
3050
- message: string;
3051
3050
  type: "action-error";
3051
+ message: string;
3052
3052
  } | {
3053
3053
  type: "commit-message-response";
3054
3054
  commitMessage: string;