codebuff 1.0.123 → 1.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
121
121
  type: "ephemeral";
122
122
  }>>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- type: "tool_result";
125
124
  content: string;
125
+ type: "tool_result";
126
126
  tool_use_id: string;
127
127
  cache_control?: {
128
128
  type: "ephemeral";
129
129
  } | undefined;
130
130
  }, {
131
- type: "tool_result";
132
131
  content: string;
132
+ type: "tool_result";
133
133
  tool_use_id: string;
134
134
  cache_control?: {
135
135
  type: "ephemeral";
@@ -151,8 +151,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
151
151
  type: "ephemeral";
152
152
  } | undefined;
153
153
  } | {
154
- type: "tool_result";
155
154
  content: string;
155
+ type: "tool_result";
156
156
  tool_use_id: string;
157
157
  cache_control?: {
158
158
  type: "ephemeral";
@@ -175,8 +175,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
175
175
  type: "ephemeral";
176
176
  } | undefined;
177
177
  } | {
178
- type: "tool_result";
179
178
  content: string;
179
+ type: "tool_result";
180
180
  tool_use_id: string;
181
181
  cache_control?: {
182
182
  type: "ephemeral";
@@ -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
- diff: string;
199
198
  status: string;
199
+ diff: string;
200
200
  diffCached: string;
201
201
  lastCommitMessages: string;
202
202
  }, {
203
- diff: string;
204
203
  status: string;
204
+ diff: 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
- diff: string;
249
248
  status: string;
249
+ diff: 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
- diff: string;
274
273
  status: string;
274
+ diff: string;
275
275
  diffCached: string;
276
276
  lastCommitMessages: string;
277
277
  };
@@ -295,13 +295,13 @@ 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";
299
- filePath: string;
300
298
  content: string;
301
- }, {
302
- type: "patch" | "file";
299
+ type: "file" | "patch";
303
300
  filePath: string;
301
+ }, {
304
302
  content: string;
303
+ type: "file" | "patch";
304
+ filePath: string;
305
305
  }>, "many">;
306
306
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
307
307
  }, "strip", z.ZodTypeAny, {
@@ -324,8 +324,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
324
324
  type: "ephemeral";
325
325
  } | undefined;
326
326
  } | {
327
- type: "tool_result";
328
327
  content: string;
328
+ type: "tool_result";
329
329
  tool_use_id: string;
330
330
  cache_control?: {
331
331
  type: "ephemeral";
@@ -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
- diff: string;
343
342
  status: string;
343
+ diff: string;
344
344
  diffCached: string;
345
345
  lastCommitMessages: string;
346
346
  };
@@ -360,9 +360,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
360
360
  }[][];
361
361
  };
362
362
  changesAlreadyApplied: {
363
- type: "patch" | "file";
364
- filePath: string;
365
363
  content: string;
364
+ type: "file" | "patch";
365
+ filePath: string;
366
366
  }[];
367
367
  costMode: "lite" | "normal" | "pro";
368
368
  authToken?: string | undefined;
@@ -386,8 +386,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
386
386
  type: "ephemeral";
387
387
  } | undefined;
388
388
  } | {
389
- type: "tool_result";
390
389
  content: string;
390
+ type: "tool_result";
391
391
  tool_use_id: string;
392
392
  cache_control?: {
393
393
  type: "ephemeral";
@@ -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
- diff: string;
405
404
  status: string;
405
+ diff: string;
406
406
  diffCached: string;
407
407
  lastCommitMessages: string;
408
408
  };
@@ -422,9 +422,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
422
422
  }[][];
423
423
  };
424
424
  changesAlreadyApplied: {
425
- type: "patch" | "file";
426
- filePath: string;
427
425
  content: string;
426
+ type: "file" | "patch";
427
+ filePath: string;
428
428
  }[];
429
429
  authToken?: string | undefined;
430
430
  costMode?: "lite" | "normal" | "pro" | 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
- diff: string;
456
455
  status: string;
456
+ diff: string;
457
457
  diffCached: string;
458
458
  lastCommitMessages: string;
459
459
  }, {
460
- diff: string;
461
460
  status: string;
461
+ diff: 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
- diff: string;
506
505
  status: string;
506
+ diff: 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
- diff: string;
531
530
  status: string;
531
+ diff: 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
- diff: string;
560
559
  status: string;
560
+ diff: 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
- diff: string;
590
589
  status: string;
590
+ diff: string;
591
591
  diffCached: string;
592
592
  lastCommitMessages: string;
593
593
  };
@@ -651,16 +651,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
651
651
  fingerprintHash: z.ZodString;
652
652
  }, "strip", z.ZodTypeAny, {
653
653
  type: "clear-auth-token";
654
+ userId: string;
654
655
  fingerprintId: string;
655
656
  authToken: string;
656
657
  fingerprintHash: string;
657
- userId: string;
658
658
  }, {
659
659
  type: "clear-auth-token";
660
+ userId: string;
660
661
  fingerprintId: string;
661
662
  authToken: string;
662
663
  fingerprintHash: string;
663
- userId: string;
664
664
  }>, z.ZodObject<{
665
665
  type: z.ZodLiteral<"generate-commit-message">;
666
666
  fingerprintId: z.ZodString;
@@ -699,8 +699,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
699
699
  type: "ephemeral";
700
700
  } | undefined;
701
701
  } | {
702
- type: "tool_result";
703
702
  content: string;
703
+ type: "tool_result";
704
704
  tool_use_id: string;
705
705
  cache_control?: {
706
706
  type: "ephemeral";
@@ -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
- diff: string;
718
717
  status: string;
718
+ diff: string;
719
719
  diffCached: string;
720
720
  lastCommitMessages: string;
721
721
  };
@@ -735,9 +735,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
735
735
  }[][];
736
736
  };
737
737
  changesAlreadyApplied: {
738
- type: "patch" | "file";
739
- filePath: string;
740
738
  content: string;
739
+ type: "file" | "patch";
740
+ filePath: string;
741
741
  }[];
742
742
  costMode: "lite" | "normal" | "pro";
743
743
  authToken?: string | undefined;
@@ -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
- diff: string;
757
756
  status: string;
757
+ diff: string;
758
758
  diffCached: string;
759
759
  lastCommitMessages: string;
760
760
  };
@@ -788,10 +788,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
788
788
  fingerprintHash: string;
789
789
  } | {
790
790
  type: "clear-auth-token";
791
+ userId: string;
791
792
  fingerprintId: string;
792
793
  authToken: string;
793
794
  fingerprintHash: string;
794
- userId: string;
795
795
  } | {
796
796
  type: "generate-commit-message";
797
797
  fingerprintId: string;
@@ -821,8 +821,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
821
821
  type: "ephemeral";
822
822
  } | undefined;
823
823
  } | {
824
- type: "tool_result";
825
824
  content: string;
825
+ type: "tool_result";
826
826
  tool_use_id: string;
827
827
  cache_control?: {
828
828
  type: "ephemeral";
@@ -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
- diff: string;
840
839
  status: string;
840
+ diff: string;
841
841
  diffCached: string;
842
842
  lastCommitMessages: string;
843
843
  };
@@ -857,9 +857,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
857
857
  }[][];
858
858
  };
859
859
  changesAlreadyApplied: {
860
- type: "patch" | "file";
861
- filePath: string;
862
860
  content: string;
861
+ type: "file" | "patch";
862
+ filePath: string;
863
863
  }[];
864
864
  authToken?: string | undefined;
865
865
  costMode?: "lite" | "normal" | "pro" | 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
- diff: string;
879
878
  status: string;
879
+ diff: string;
880
880
  diffCached: string;
881
881
  lastCommitMessages: string;
882
882
  };
@@ -910,10 +910,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
910
910
  fingerprintHash: string;
911
911
  } | {
912
912
  type: "clear-auth-token";
913
+ userId: string;
913
914
  fingerprintId: string;
914
915
  authToken: string;
915
916
  fingerprintHash: string;
916
- userId: string;
917
917
  } | {
918
918
  type: "generate-commit-message";
919
919
  fingerprintId: string;
@@ -1040,15 +1040,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1040
1040
  type: "ephemeral";
1041
1041
  }>>;
1042
1042
  }, "strip", z.ZodTypeAny, {
1043
- type: "tool_result";
1044
1043
  content: string;
1044
+ type: "tool_result";
1045
1045
  tool_use_id: string;
1046
1046
  cache_control?: {
1047
1047
  type: "ephemeral";
1048
1048
  } | undefined;
1049
1049
  }, {
1050
- type: "tool_result";
1051
1050
  content: string;
1051
+ type: "tool_result";
1052
1052
  tool_use_id: string;
1053
1053
  cache_control?: {
1054
1054
  type: "ephemeral";
@@ -1070,8 +1070,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1070
1070
  type: "ephemeral";
1071
1071
  } | undefined;
1072
1072
  } | {
1073
- type: "tool_result";
1074
1073
  content: string;
1074
+ type: "tool_result";
1075
1075
  tool_use_id: string;
1076
1076
  cache_control?: {
1077
1077
  type: "ephemeral";
@@ -1094,8 +1094,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1094
1094
  type: "ephemeral";
1095
1095
  } | undefined;
1096
1096
  } | {
1097
- type: "tool_result";
1098
1097
  content: string;
1098
+ type: "tool_result";
1099
1099
  tool_use_id: string;
1100
1100
  cache_control?: {
1101
1101
  type: "ephemeral";
@@ -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
- diff: string;
1118
1117
  status: string;
1118
+ diff: string;
1119
1119
  diffCached: string;
1120
1120
  lastCommitMessages: string;
1121
1121
  }, {
1122
- diff: string;
1123
1122
  status: string;
1123
+ diff: 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
- diff: string;
1168
1167
  status: string;
1168
+ diff: 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
- diff: string;
1193
1192
  status: string;
1193
+ diff: string;
1194
1194
  diffCached: string;
1195
1195
  lastCommitMessages: string;
1196
1196
  };
@@ -1214,13 +1214,13 @@ 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";
1218
- filePath: string;
1219
1217
  content: string;
1220
- }, {
1221
- type: "patch" | "file";
1218
+ type: "file" | "patch";
1222
1219
  filePath: string;
1220
+ }, {
1223
1221
  content: string;
1222
+ type: "file" | "patch";
1223
+ filePath: string;
1224
1224
  }>, "many">;
1225
1225
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
1226
1226
  }, "strip", z.ZodTypeAny, {
@@ -1243,8 +1243,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1243
1243
  type: "ephemeral";
1244
1244
  } | undefined;
1245
1245
  } | {
1246
- type: "tool_result";
1247
1246
  content: string;
1247
+ type: "tool_result";
1248
1248
  tool_use_id: string;
1249
1249
  cache_control?: {
1250
1250
  type: "ephemeral";
@@ -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
- diff: string;
1262
1261
  status: string;
1262
+ diff: string;
1263
1263
  diffCached: string;
1264
1264
  lastCommitMessages: string;
1265
1265
  };
@@ -1279,9 +1279,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1279
1279
  }[][];
1280
1280
  };
1281
1281
  changesAlreadyApplied: {
1282
- type: "patch" | "file";
1283
- filePath: string;
1284
1282
  content: string;
1283
+ type: "file" | "patch";
1284
+ filePath: string;
1285
1285
  }[];
1286
1286
  costMode: "lite" | "normal" | "pro";
1287
1287
  authToken?: string | undefined;
@@ -1305,8 +1305,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1305
1305
  type: "ephemeral";
1306
1306
  } | undefined;
1307
1307
  } | {
1308
- type: "tool_result";
1309
1308
  content: string;
1309
+ type: "tool_result";
1310
1310
  tool_use_id: string;
1311
1311
  cache_control?: {
1312
1312
  type: "ephemeral";
@@ -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
- diff: string;
1324
1323
  status: string;
1324
+ diff: string;
1325
1325
  diffCached: string;
1326
1326
  lastCommitMessages: string;
1327
1327
  };
@@ -1341,9 +1341,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1341
1341
  }[][];
1342
1342
  };
1343
1343
  changesAlreadyApplied: {
1344
- type: "patch" | "file";
1345
- filePath: string;
1346
1344
  content: string;
1345
+ type: "file" | "patch";
1346
+ filePath: string;
1347
1347
  }[];
1348
1348
  authToken?: string | undefined;
1349
1349
  costMode?: "lite" | "normal" | "pro" | 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
- diff: string;
1375
1374
  status: string;
1375
+ diff: string;
1376
1376
  diffCached: string;
1377
1377
  lastCommitMessages: string;
1378
1378
  }, {
1379
- diff: string;
1380
1379
  status: string;
1380
+ diff: 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
- diff: string;
1425
1424
  status: string;
1425
+ diff: 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
- diff: string;
1450
1449
  status: string;
1450
+ diff: 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
- diff: string;
1479
1478
  status: string;
1479
+ diff: 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
- diff: string;
1509
1508
  status: string;
1509
+ diff: string;
1510
1510
  diffCached: string;
1511
1511
  lastCommitMessages: string;
1512
1512
  };
@@ -1570,16 +1570,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1570
1570
  fingerprintHash: z.ZodString;
1571
1571
  }, "strip", z.ZodTypeAny, {
1572
1572
  type: "clear-auth-token";
1573
+ userId: string;
1573
1574
  fingerprintId: string;
1574
1575
  authToken: string;
1575
1576
  fingerprintHash: string;
1576
- userId: string;
1577
1577
  }, {
1578
1578
  type: "clear-auth-token";
1579
+ userId: string;
1579
1580
  fingerprintId: string;
1580
1581
  authToken: string;
1581
1582
  fingerprintHash: string;
1582
- userId: string;
1583
1583
  }>, z.ZodObject<{
1584
1584
  type: z.ZodLiteral<"generate-commit-message">;
1585
1585
  fingerprintId: z.ZodString;
@@ -1618,8 +1618,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1618
1618
  type: "ephemeral";
1619
1619
  } | undefined;
1620
1620
  } | {
1621
- type: "tool_result";
1622
1621
  content: string;
1622
+ type: "tool_result";
1623
1623
  tool_use_id: string;
1624
1624
  cache_control?: {
1625
1625
  type: "ephemeral";
@@ -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
- diff: string;
1637
1636
  status: string;
1637
+ diff: string;
1638
1638
  diffCached: string;
1639
1639
  lastCommitMessages: string;
1640
1640
  };
@@ -1654,9 +1654,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1654
1654
  }[][];
1655
1655
  };
1656
1656
  changesAlreadyApplied: {
1657
- type: "patch" | "file";
1658
- filePath: string;
1659
1657
  content: string;
1658
+ type: "file" | "patch";
1659
+ filePath: string;
1660
1660
  }[];
1661
1661
  costMode: "lite" | "normal" | "pro";
1662
1662
  authToken?: string | undefined;
@@ -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
- diff: string;
1676
1675
  status: string;
1676
+ diff: string;
1677
1677
  diffCached: string;
1678
1678
  lastCommitMessages: string;
1679
1679
  };
@@ -1707,10 +1707,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1707
1707
  fingerprintHash: string;
1708
1708
  } | {
1709
1709
  type: "clear-auth-token";
1710
+ userId: string;
1710
1711
  fingerprintId: string;
1711
1712
  authToken: string;
1712
1713
  fingerprintHash: string;
1713
- userId: string;
1714
1714
  } | {
1715
1715
  type: "generate-commit-message";
1716
1716
  fingerprintId: string;
@@ -1740,8 +1740,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1740
1740
  type: "ephemeral";
1741
1741
  } | undefined;
1742
1742
  } | {
1743
- type: "tool_result";
1744
1743
  content: string;
1744
+ type: "tool_result";
1745
1745
  tool_use_id: string;
1746
1746
  cache_control?: {
1747
1747
  type: "ephemeral";
@@ -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
- diff: string;
1759
1758
  status: string;
1759
+ diff: string;
1760
1760
  diffCached: string;
1761
1761
  lastCommitMessages: string;
1762
1762
  };
@@ -1776,9 +1776,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1776
1776
  }[][];
1777
1777
  };
1778
1778
  changesAlreadyApplied: {
1779
- type: "patch" | "file";
1780
- filePath: string;
1781
1779
  content: string;
1780
+ type: "file" | "patch";
1781
+ filePath: string;
1782
1782
  }[];
1783
1783
  authToken?: string | undefined;
1784
1784
  costMode?: "lite" | "normal" | "pro" | 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
- diff: string;
1798
1797
  status: string;
1798
+ diff: string;
1799
1799
  diffCached: string;
1800
1800
  lastCommitMessages: string;
1801
1801
  };
@@ -1829,10 +1829,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1829
1829
  fingerprintHash: string;
1830
1830
  } | {
1831
1831
  type: "clear-auth-token";
1832
+ userId: string;
1832
1833
  fingerprintId: string;
1833
1834
  authToken: string;
1834
1835
  fingerprintHash: string;
1835
- userId: string;
1836
1836
  } | {
1837
1837
  type: "generate-commit-message";
1838
1838
  fingerprintId: string;
@@ -1883,26 +1883,26 @@ 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";
1887
- filePath: string;
1888
1886
  content: string;
1889
- }, {
1890
- type: "patch" | "file";
1887
+ type: "file" | "patch";
1891
1888
  filePath: string;
1889
+ }, {
1892
1890
  content: string;
1891
+ type: "file" | "patch";
1892
+ filePath: string;
1893
1893
  }>, "many">;
1894
1894
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1895
1895
  type: z.ZodEnum<["patch", "file"]>;
1896
1896
  filePath: z.ZodString;
1897
1897
  content: z.ZodString;
1898
1898
  }, "strip", z.ZodTypeAny, {
1899
- type: "patch" | "file";
1900
- filePath: string;
1901
1899
  content: string;
1902
- }, {
1903
- type: "patch" | "file";
1900
+ type: "file" | "patch";
1904
1901
  filePath: string;
1902
+ }, {
1905
1903
  content: string;
1904
+ type: "file" | "patch";
1905
+ filePath: string;
1906
1906
  }>, "many">;
1907
1907
  addedFileVersions: z.ZodArray<z.ZodObject<{
1908
1908
  path: z.ZodString;
@@ -1916,62 +1916,62 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1916
1916
  }>, "many">;
1917
1917
  resetFileVersions: z.ZodBoolean;
1918
1918
  }, {
1919
- usage: z.ZodOptional<z.ZodNumber>;
1920
- limit: z.ZodOptional<z.ZodNumber>;
1921
- referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1922
- subscription_active: z.ZodOptional<z.ZodBoolean>;
1923
1919
  next_quota_reset: z.ZodOptional<z.ZodDate>;
1920
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
1921
+ limit: z.ZodOptional<z.ZodNumber>;
1924
1922
  session_credits_used: z.ZodOptional<z.ZodNumber>;
1923
+ usage: z.ZodOptional<z.ZodNumber>;
1924
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1925
1925
  }>, "strip", z.ZodTypeAny, {
1926
1926
  type: "response-complete";
1927
+ response: string;
1927
1928
  userInputId: string;
1928
1929
  changesAlreadyApplied: {
1929
- type: "patch" | "file";
1930
- filePath: string;
1931
1930
  content: string;
1931
+ type: "file" | "patch";
1932
+ filePath: string;
1932
1933
  }[];
1933
- response: string;
1934
1934
  changes: {
1935
- type: "patch" | "file";
1936
- filePath: string;
1937
1935
  content: string;
1936
+ type: "file" | "patch";
1937
+ filePath: string;
1938
1938
  }[];
1939
1939
  addedFileVersions: {
1940
1940
  path: string;
1941
1941
  content: string;
1942
1942
  }[];
1943
1943
  resetFileVersions: boolean;
1944
- usage?: number | undefined;
1945
- limit?: number | undefined;
1946
- referralLink?: string | undefined;
1947
- subscription_active?: boolean | undefined;
1948
1944
  next_quota_reset?: Date | undefined;
1945
+ subscription_active?: boolean | undefined;
1946
+ limit?: number | undefined;
1949
1947
  session_credits_used?: number | undefined;
1948
+ usage?: number | undefined;
1949
+ referralLink?: string | undefined;
1950
1950
  }, {
1951
1951
  type: "response-complete";
1952
+ response: string;
1952
1953
  userInputId: string;
1953
1954
  changesAlreadyApplied: {
1954
- type: "patch" | "file";
1955
- filePath: string;
1956
1955
  content: string;
1956
+ type: "file" | "patch";
1957
+ filePath: string;
1957
1958
  }[];
1958
- response: string;
1959
1959
  changes: {
1960
- type: "patch" | "file";
1961
- filePath: string;
1962
1960
  content: string;
1961
+ type: "file" | "patch";
1962
+ filePath: string;
1963
1963
  }[];
1964
1964
  addedFileVersions: {
1965
1965
  path: string;
1966
1966
  content: string;
1967
1967
  }[];
1968
1968
  resetFileVersions: boolean;
1969
- usage?: number | undefined;
1970
- limit?: number | undefined;
1971
- referralLink?: string | undefined;
1972
- subscription_active?: boolean | undefined;
1973
1969
  next_quota_reset?: Date | undefined;
1970
+ subscription_active?: boolean | undefined;
1971
+ limit?: number | undefined;
1974
1972
  session_credits_used?: number | undefined;
1973
+ usage?: number | undefined;
1974
+ referralLink?: string | undefined;
1975
1975
  }>, z.ZodObject<{
1976
1976
  type: z.ZodLiteral<"read-files">;
1977
1977
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -2003,26 +2003,26 @@ 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";
2007
- filePath: string;
2008
2006
  content: string;
2009
- }, {
2010
- type: "patch" | "file";
2007
+ type: "file" | "patch";
2011
2008
  filePath: string;
2009
+ }, {
2012
2010
  content: string;
2011
+ type: "file" | "patch";
2012
+ filePath: string;
2013
2013
  }>, "many">;
2014
2014
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2015
2015
  type: z.ZodEnum<["patch", "file"]>;
2016
2016
  filePath: z.ZodString;
2017
2017
  content: z.ZodString;
2018
2018
  }, "strip", z.ZodTypeAny, {
2019
- type: "patch" | "file";
2020
- filePath: string;
2021
2019
  content: string;
2022
- }, {
2023
- type: "patch" | "file";
2020
+ type: "file" | "patch";
2024
2021
  filePath: string;
2022
+ }, {
2025
2023
  content: string;
2024
+ type: "file" | "patch";
2025
+ filePath: string;
2026
2026
  }>, "many">;
2027
2027
  addedFileVersions: z.ZodArray<z.ZodObject<{
2028
2028
  path: z.ZodString;
@@ -2037,64 +2037,64 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2037
2037
  resetFileVersions: z.ZodBoolean;
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
2039
  type: "tool-call";
2040
+ data: {
2041
+ name: string;
2042
+ id: string;
2043
+ input: Record<string, any>;
2044
+ };
2045
+ response: string;
2040
2046
  userInputId: string;
2041
2047
  changesAlreadyApplied: {
2042
- type: "patch" | "file";
2043
- filePath: string;
2044
2048
  content: string;
2049
+ type: "file" | "patch";
2050
+ filePath: string;
2045
2051
  }[];
2046
- response: string;
2047
2052
  changes: {
2048
- type: "patch" | "file";
2049
- filePath: string;
2050
2053
  content: string;
2054
+ type: "file" | "patch";
2055
+ filePath: string;
2051
2056
  }[];
2052
2057
  addedFileVersions: {
2053
2058
  path: string;
2054
2059
  content: string;
2055
2060
  }[];
2056
2061
  resetFileVersions: boolean;
2062
+ }, {
2063
+ type: "tool-call";
2057
2064
  data: {
2058
2065
  name: string;
2059
2066
  id: string;
2060
2067
  input: Record<string, any>;
2061
2068
  };
2062
- }, {
2063
- type: "tool-call";
2069
+ response: string;
2064
2070
  userInputId: string;
2065
2071
  changesAlreadyApplied: {
2066
- type: "patch" | "file";
2067
- filePath: string;
2068
2072
  content: string;
2073
+ type: "file" | "patch";
2074
+ filePath: string;
2069
2075
  }[];
2070
- response: string;
2071
2076
  changes: {
2072
- type: "patch" | "file";
2073
- filePath: string;
2074
2077
  content: string;
2078
+ type: "file" | "patch";
2079
+ filePath: string;
2075
2080
  }[];
2076
2081
  addedFileVersions: {
2077
2082
  path: string;
2078
2083
  content: string;
2079
2084
  }[];
2080
2085
  resetFileVersions: boolean;
2081
- data: {
2082
- name: string;
2083
- id: string;
2084
- input: Record<string, any>;
2085
- };
2086
2086
  }>, z.ZodObject<{
2087
2087
  type: z.ZodLiteral<"terminal-command-result">;
2088
2088
  userInputId: z.ZodString;
2089
2089
  result: z.ZodString;
2090
2090
  }, "strip", z.ZodTypeAny, {
2091
2091
  type: "terminal-command-result";
2092
- userInputId: string;
2093
2092
  result: string;
2093
+ userInputId: string;
2094
2094
  }, {
2095
2095
  type: "terminal-command-result";
2096
- userInputId: string;
2097
2096
  result: string;
2097
+ userInputId: string;
2098
2098
  }>, z.ZodObject<{
2099
2099
  type: z.ZodLiteral<"npm-version-status">;
2100
2100
  isUpToDate: z.ZodBoolean;
@@ -2119,19 +2119,19 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2119
2119
  session_credits_used: z.ZodNumber;
2120
2120
  }, "type">>, "strip", z.ZodTypeAny, {
2121
2121
  type: "init-response";
2122
- usage: number;
2123
- limit: number;
2124
- subscription_active: boolean;
2125
2122
  next_quota_reset: Date;
2123
+ subscription_active: boolean;
2124
+ limit: number;
2126
2125
  session_credits_used: number;
2126
+ usage: number;
2127
2127
  referralLink?: string | undefined;
2128
2128
  }, {
2129
2129
  type: "init-response";
2130
- usage: number;
2131
- limit: number;
2132
- subscription_active: boolean;
2133
2130
  next_quota_reset: Date;
2131
+ subscription_active: boolean;
2132
+ limit: number;
2134
2133
  session_credits_used: number;
2134
+ usage: number;
2135
2135
  referralLink?: string | undefined;
2136
2136
  }>, z.ZodObject<{
2137
2137
  type: z.ZodLiteral<"auth-result">;
@@ -2143,41 +2143,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2143
2143
  fingerprintId: z.ZodString;
2144
2144
  fingerprintHash: z.ZodString;
2145
2145
  }, "strip", z.ZodTypeAny, {
2146
+ email: string;
2146
2147
  name: string | null;
2147
2148
  id: string;
2148
2149
  fingerprintId: string;
2149
2150
  authToken: string;
2150
- email: string;
2151
2151
  fingerprintHash: string;
2152
2152
  }, {
2153
+ email: string;
2153
2154
  name: string | null;
2154
2155
  id: string;
2155
2156
  fingerprintId: string;
2156
2157
  authToken: string;
2157
- email: string;
2158
2158
  fingerprintHash: string;
2159
2159
  }>>;
2160
2160
  message: z.ZodString;
2161
2161
  }, "strip", z.ZodTypeAny, {
2162
- type: "auth-result";
2163
2162
  message: string;
2163
+ type: "auth-result";
2164
2164
  user?: {
2165
+ email: string;
2165
2166
  name: string | null;
2166
2167
  id: string;
2167
2168
  fingerprintId: string;
2168
2169
  authToken: string;
2169
- email: string;
2170
2170
  fingerprintHash: string;
2171
2171
  } | undefined;
2172
2172
  }, {
2173
- type: "auth-result";
2174
2173
  message: string;
2174
+ type: "auth-result";
2175
2175
  user?: {
2176
+ email: string;
2176
2177
  name: string | null;
2177
2178
  id: string;
2178
2179
  fingerprintId: string;
2179
2180
  authToken: string;
2180
- email: string;
2181
2181
  fingerprintHash: string;
2182
2182
  } | undefined;
2183
2183
  }>, z.ZodObject<{
@@ -2205,29 +2205,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2205
2205
  session_credits_used: z.ZodNumber;
2206
2206
  }, "strip", z.ZodTypeAny, {
2207
2207
  type: "usage-response";
2208
- usage: number;
2209
- limit: number;
2210
- subscription_active: boolean;
2211
2208
  next_quota_reset: Date;
2209
+ subscription_active: boolean;
2210
+ limit: number;
2212
2211
  session_credits_used: number;
2212
+ usage: number;
2213
2213
  referralLink?: string | undefined;
2214
2214
  }, {
2215
2215
  type: "usage-response";
2216
- usage: number;
2217
- limit: number;
2218
- subscription_active: boolean;
2219
2216
  next_quota_reset: Date;
2217
+ subscription_active: boolean;
2218
+ limit: number;
2220
2219
  session_credits_used: number;
2220
+ usage: number;
2221
2221
  referralLink?: string | undefined;
2222
2222
  }>, z.ZodObject<{
2223
2223
  type: z.ZodLiteral<"action-error">;
2224
2224
  message: z.ZodString;
2225
2225
  }, "strip", z.ZodTypeAny, {
2226
- type: "action-error";
2227
2226
  message: string;
2228
- }, {
2229
2227
  type: "action-error";
2228
+ }, {
2230
2229
  message: string;
2230
+ type: "action-error";
2231
2231
  }>, z.ZodObject<{
2232
2232
  type: z.ZodLiteral<"commit-message-response">;
2233
2233
  commitMessage: z.ZodString;
@@ -2242,45 +2242,45 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2242
2242
  type: "action";
2243
2243
  data: {
2244
2244
  type: "usage-response";
2245
- usage: number;
2246
- limit: number;
2247
- subscription_active: boolean;
2248
2245
  next_quota_reset: Date;
2246
+ subscription_active: boolean;
2247
+ limit: number;
2249
2248
  session_credits_used: number;
2249
+ usage: number;
2250
2250
  referralLink?: string | undefined;
2251
2251
  } | {
2252
2252
  type: "init-response";
2253
- usage: number;
2254
- limit: number;
2255
- subscription_active: boolean;
2256
2253
  next_quota_reset: Date;
2254
+ subscription_active: boolean;
2255
+ limit: number;
2257
2256
  session_credits_used: number;
2257
+ usage: number;
2258
2258
  referralLink?: string | undefined;
2259
2259
  } | {
2260
2260
  type: "response-complete";
2261
+ response: string;
2261
2262
  userInputId: string;
2262
2263
  changesAlreadyApplied: {
2263
- type: "patch" | "file";
2264
- filePath: string;
2265
2264
  content: string;
2265
+ type: "file" | "patch";
2266
+ filePath: string;
2266
2267
  }[];
2267
- response: string;
2268
2268
  changes: {
2269
- type: "patch" | "file";
2270
- filePath: string;
2271
2269
  content: string;
2270
+ type: "file" | "patch";
2271
+ filePath: string;
2272
2272
  }[];
2273
2273
  addedFileVersions: {
2274
2274
  path: string;
2275
2275
  content: string;
2276
2276
  }[];
2277
2277
  resetFileVersions: boolean;
2278
- usage?: number | undefined;
2279
- limit?: number | undefined;
2280
- referralLink?: string | undefined;
2281
- subscription_active?: boolean | undefined;
2282
2278
  next_quota_reset?: Date | undefined;
2279
+ subscription_active?: boolean | undefined;
2280
+ limit?: number | undefined;
2283
2281
  session_credits_used?: number | undefined;
2282
+ usage?: number | undefined;
2283
+ referralLink?: string | undefined;
2284
2284
  } | {
2285
2285
  type: "response-chunk";
2286
2286
  userInputId: string;
@@ -2290,45 +2290,45 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2290
2290
  filePaths: string[];
2291
2291
  } | {
2292
2292
  type: "tool-call";
2293
+ data: {
2294
+ name: string;
2295
+ id: string;
2296
+ input: Record<string, any>;
2297
+ };
2298
+ response: string;
2293
2299
  userInputId: string;
2294
2300
  changesAlreadyApplied: {
2295
- type: "patch" | "file";
2296
- filePath: string;
2297
2301
  content: string;
2302
+ type: "file" | "patch";
2303
+ filePath: string;
2298
2304
  }[];
2299
- response: string;
2300
2305
  changes: {
2301
- type: "patch" | "file";
2302
- filePath: string;
2303
2306
  content: string;
2307
+ type: "file" | "patch";
2308
+ filePath: string;
2304
2309
  }[];
2305
2310
  addedFileVersions: {
2306
2311
  path: string;
2307
2312
  content: string;
2308
2313
  }[];
2309
2314
  resetFileVersions: boolean;
2310
- data: {
2311
- name: string;
2312
- id: string;
2313
- input: Record<string, any>;
2314
- };
2315
2315
  } | {
2316
2316
  type: "terminal-command-result";
2317
- userInputId: string;
2318
2317
  result: string;
2318
+ userInputId: string;
2319
2319
  } | {
2320
2320
  type: "npm-version-status";
2321
2321
  isUpToDate: boolean;
2322
2322
  latestVersion: string;
2323
2323
  } | {
2324
- type: "auth-result";
2325
2324
  message: string;
2325
+ type: "auth-result";
2326
2326
  user?: {
2327
+ email: string;
2327
2328
  name: string | null;
2328
2329
  id: string;
2329
2330
  fingerprintId: string;
2330
2331
  authToken: string;
2331
- email: string;
2332
2332
  fingerprintHash: string;
2333
2333
  } | undefined;
2334
2334
  } | {
@@ -2337,8 +2337,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2337
2337
  fingerprintHash: string;
2338
2338
  loginUrl: string;
2339
2339
  } | {
2340
- type: "action-error";
2341
2340
  message: string;
2341
+ type: "action-error";
2342
2342
  } | {
2343
2343
  type: "commit-message-response";
2344
2344
  commitMessage: string;
@@ -2347,45 +2347,45 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2347
2347
  type: "action";
2348
2348
  data: {
2349
2349
  type: "usage-response";
2350
- usage: number;
2351
- limit: number;
2352
- subscription_active: boolean;
2353
2350
  next_quota_reset: Date;
2351
+ subscription_active: boolean;
2352
+ limit: number;
2354
2353
  session_credits_used: number;
2354
+ usage: number;
2355
2355
  referralLink?: string | undefined;
2356
2356
  } | {
2357
2357
  type: "init-response";
2358
- usage: number;
2359
- limit: number;
2360
- subscription_active: boolean;
2361
2358
  next_quota_reset: Date;
2359
+ subscription_active: boolean;
2360
+ limit: number;
2362
2361
  session_credits_used: number;
2362
+ usage: number;
2363
2363
  referralLink?: string | undefined;
2364
2364
  } | {
2365
2365
  type: "response-complete";
2366
+ response: string;
2366
2367
  userInputId: string;
2367
2368
  changesAlreadyApplied: {
2368
- type: "patch" | "file";
2369
- filePath: string;
2370
2369
  content: string;
2370
+ type: "file" | "patch";
2371
+ filePath: string;
2371
2372
  }[];
2372
- response: string;
2373
2373
  changes: {
2374
- type: "patch" | "file";
2375
- filePath: string;
2376
2374
  content: string;
2375
+ type: "file" | "patch";
2376
+ filePath: string;
2377
2377
  }[];
2378
2378
  addedFileVersions: {
2379
2379
  path: string;
2380
2380
  content: string;
2381
2381
  }[];
2382
2382
  resetFileVersions: boolean;
2383
- usage?: number | undefined;
2384
- limit?: number | undefined;
2385
- referralLink?: string | undefined;
2386
- subscription_active?: boolean | undefined;
2387
2383
  next_quota_reset?: Date | undefined;
2384
+ subscription_active?: boolean | undefined;
2385
+ limit?: number | undefined;
2388
2386
  session_credits_used?: number | undefined;
2387
+ usage?: number | undefined;
2388
+ referralLink?: string | undefined;
2389
2389
  } | {
2390
2390
  type: "response-chunk";
2391
2391
  userInputId: string;
@@ -2395,45 +2395,45 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2395
2395
  filePaths: string[];
2396
2396
  } | {
2397
2397
  type: "tool-call";
2398
+ data: {
2399
+ name: string;
2400
+ id: string;
2401
+ input: Record<string, any>;
2402
+ };
2403
+ response: string;
2398
2404
  userInputId: string;
2399
2405
  changesAlreadyApplied: {
2400
- type: "patch" | "file";
2401
- filePath: string;
2402
2406
  content: string;
2407
+ type: "file" | "patch";
2408
+ filePath: string;
2403
2409
  }[];
2404
- response: string;
2405
2410
  changes: {
2406
- type: "patch" | "file";
2407
- filePath: string;
2408
2411
  content: string;
2412
+ type: "file" | "patch";
2413
+ filePath: string;
2409
2414
  }[];
2410
2415
  addedFileVersions: {
2411
2416
  path: string;
2412
2417
  content: string;
2413
2418
  }[];
2414
2419
  resetFileVersions: boolean;
2415
- data: {
2416
- name: string;
2417
- id: string;
2418
- input: Record<string, any>;
2419
- };
2420
2420
  } | {
2421
2421
  type: "terminal-command-result";
2422
- userInputId: string;
2423
2422
  result: string;
2423
+ userInputId: string;
2424
2424
  } | {
2425
2425
  type: "npm-version-status";
2426
2426
  isUpToDate: boolean;
2427
2427
  latestVersion: string;
2428
2428
  } | {
2429
- type: "auth-result";
2430
2429
  message: string;
2430
+ type: "auth-result";
2431
2431
  user?: {
2432
+ email: string;
2432
2433
  name: string | null;
2433
2434
  id: string;
2434
2435
  fingerprintId: string;
2435
2436
  authToken: string;
2436
- email: string;
2437
2437
  fingerprintHash: string;
2438
2438
  } | undefined;
2439
2439
  } | {
@@ -2442,8 +2442,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2442
2442
  fingerprintHash: string;
2443
2443
  loginUrl: string;
2444
2444
  } | {
2445
- type: "action-error";
2446
2445
  message: string;
2446
+ type: "action-error";
2447
2447
  } | {
2448
2448
  type: "commit-message-response";
2449
2449
  commitMessage: string;
@@ -2488,26 +2488,26 @@ 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";
2492
- filePath: string;
2493
2491
  content: string;
2494
- }, {
2495
- type: "patch" | "file";
2492
+ type: "file" | "patch";
2496
2493
  filePath: string;
2494
+ }, {
2497
2495
  content: string;
2496
+ type: "file" | "patch";
2497
+ filePath: string;
2498
2498
  }>, "many">;
2499
2499
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2500
2500
  type: z.ZodEnum<["patch", "file"]>;
2501
2501
  filePath: z.ZodString;
2502
2502
  content: z.ZodString;
2503
2503
  }, "strip", z.ZodTypeAny, {
2504
- type: "patch" | "file";
2505
- filePath: string;
2506
2504
  content: string;
2507
- }, {
2508
- type: "patch" | "file";
2505
+ type: "file" | "patch";
2509
2506
  filePath: string;
2507
+ }, {
2510
2508
  content: string;
2509
+ type: "file" | "patch";
2510
+ filePath: string;
2511
2511
  }>, "many">;
2512
2512
  addedFileVersions: z.ZodArray<z.ZodObject<{
2513
2513
  path: z.ZodString;
@@ -2521,62 +2521,62 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2521
2521
  }>, "many">;
2522
2522
  resetFileVersions: z.ZodBoolean;
2523
2523
  }, {
2524
- usage: z.ZodOptional<z.ZodNumber>;
2525
- limit: z.ZodOptional<z.ZodNumber>;
2526
- referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2527
- subscription_active: z.ZodOptional<z.ZodBoolean>;
2528
2524
  next_quota_reset: z.ZodOptional<z.ZodDate>;
2525
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
2526
+ limit: z.ZodOptional<z.ZodNumber>;
2529
2527
  session_credits_used: z.ZodOptional<z.ZodNumber>;
2528
+ usage: z.ZodOptional<z.ZodNumber>;
2529
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2530
2530
  }>, "strip", z.ZodTypeAny, {
2531
2531
  type: "response-complete";
2532
+ response: string;
2532
2533
  userInputId: string;
2533
2534
  changesAlreadyApplied: {
2534
- type: "patch" | "file";
2535
- filePath: string;
2536
2535
  content: string;
2536
+ type: "file" | "patch";
2537
+ filePath: string;
2537
2538
  }[];
2538
- response: string;
2539
2539
  changes: {
2540
- type: "patch" | "file";
2541
- filePath: string;
2542
2540
  content: string;
2541
+ type: "file" | "patch";
2542
+ filePath: string;
2543
2543
  }[];
2544
2544
  addedFileVersions: {
2545
2545
  path: string;
2546
2546
  content: string;
2547
2547
  }[];
2548
2548
  resetFileVersions: boolean;
2549
- usage?: number | undefined;
2550
- limit?: number | undefined;
2551
- referralLink?: string | undefined;
2552
- subscription_active?: boolean | undefined;
2553
2549
  next_quota_reset?: Date | undefined;
2550
+ subscription_active?: boolean | undefined;
2551
+ limit?: number | undefined;
2554
2552
  session_credits_used?: number | undefined;
2553
+ usage?: number | undefined;
2554
+ referralLink?: string | undefined;
2555
2555
  }, {
2556
2556
  type: "response-complete";
2557
+ response: string;
2557
2558
  userInputId: string;
2558
2559
  changesAlreadyApplied: {
2559
- type: "patch" | "file";
2560
- filePath: string;
2561
2560
  content: string;
2561
+ type: "file" | "patch";
2562
+ filePath: string;
2562
2563
  }[];
2563
- response: string;
2564
2564
  changes: {
2565
- type: "patch" | "file";
2566
- filePath: string;
2567
2565
  content: string;
2566
+ type: "file" | "patch";
2567
+ filePath: string;
2568
2568
  }[];
2569
2569
  addedFileVersions: {
2570
2570
  path: string;
2571
2571
  content: string;
2572
2572
  }[];
2573
2573
  resetFileVersions: boolean;
2574
- usage?: number | undefined;
2575
- limit?: number | undefined;
2576
- referralLink?: string | undefined;
2577
- subscription_active?: boolean | undefined;
2578
2574
  next_quota_reset?: Date | undefined;
2575
+ subscription_active?: boolean | undefined;
2576
+ limit?: number | undefined;
2579
2577
  session_credits_used?: number | undefined;
2578
+ usage?: number | undefined;
2579
+ referralLink?: string | undefined;
2580
2580
  }>, z.ZodObject<{
2581
2581
  type: z.ZodLiteral<"read-files">;
2582
2582
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -2608,26 +2608,26 @@ 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";
2612
- filePath: string;
2613
2611
  content: string;
2614
- }, {
2615
- type: "patch" | "file";
2612
+ type: "file" | "patch";
2616
2613
  filePath: string;
2614
+ }, {
2617
2615
  content: string;
2616
+ type: "file" | "patch";
2617
+ filePath: string;
2618
2618
  }>, "many">;
2619
2619
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2620
2620
  type: z.ZodEnum<["patch", "file"]>;
2621
2621
  filePath: z.ZodString;
2622
2622
  content: z.ZodString;
2623
2623
  }, "strip", z.ZodTypeAny, {
2624
- type: "patch" | "file";
2625
- filePath: string;
2626
2624
  content: string;
2627
- }, {
2628
- type: "patch" | "file";
2625
+ type: "file" | "patch";
2629
2626
  filePath: string;
2627
+ }, {
2630
2628
  content: string;
2629
+ type: "file" | "patch";
2630
+ filePath: string;
2631
2631
  }>, "many">;
2632
2632
  addedFileVersions: z.ZodArray<z.ZodObject<{
2633
2633
  path: z.ZodString;
@@ -2642,64 +2642,64 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2642
2642
  resetFileVersions: z.ZodBoolean;
2643
2643
  }, "strip", z.ZodTypeAny, {
2644
2644
  type: "tool-call";
2645
+ data: {
2646
+ name: string;
2647
+ id: string;
2648
+ input: Record<string, any>;
2649
+ };
2650
+ response: string;
2645
2651
  userInputId: string;
2646
2652
  changesAlreadyApplied: {
2647
- type: "patch" | "file";
2648
- filePath: string;
2649
2653
  content: string;
2654
+ type: "file" | "patch";
2655
+ filePath: string;
2650
2656
  }[];
2651
- response: string;
2652
2657
  changes: {
2653
- type: "patch" | "file";
2654
- filePath: string;
2655
2658
  content: string;
2659
+ type: "file" | "patch";
2660
+ filePath: string;
2656
2661
  }[];
2657
2662
  addedFileVersions: {
2658
2663
  path: string;
2659
2664
  content: string;
2660
2665
  }[];
2661
2666
  resetFileVersions: boolean;
2667
+ }, {
2668
+ type: "tool-call";
2662
2669
  data: {
2663
2670
  name: string;
2664
2671
  id: string;
2665
2672
  input: Record<string, any>;
2666
2673
  };
2667
- }, {
2668
- type: "tool-call";
2674
+ response: string;
2669
2675
  userInputId: string;
2670
2676
  changesAlreadyApplied: {
2671
- type: "patch" | "file";
2672
- filePath: string;
2673
2677
  content: string;
2678
+ type: "file" | "patch";
2679
+ filePath: string;
2674
2680
  }[];
2675
- response: string;
2676
2681
  changes: {
2677
- type: "patch" | "file";
2678
- filePath: string;
2679
2682
  content: string;
2683
+ type: "file" | "patch";
2684
+ filePath: string;
2680
2685
  }[];
2681
2686
  addedFileVersions: {
2682
2687
  path: string;
2683
2688
  content: string;
2684
2689
  }[];
2685
2690
  resetFileVersions: boolean;
2686
- data: {
2687
- name: string;
2688
- id: string;
2689
- input: Record<string, any>;
2690
- };
2691
2691
  }>, z.ZodObject<{
2692
2692
  type: z.ZodLiteral<"terminal-command-result">;
2693
2693
  userInputId: z.ZodString;
2694
2694
  result: z.ZodString;
2695
2695
  }, "strip", z.ZodTypeAny, {
2696
2696
  type: "terminal-command-result";
2697
- userInputId: string;
2698
2697
  result: string;
2698
+ userInputId: string;
2699
2699
  }, {
2700
2700
  type: "terminal-command-result";
2701
- userInputId: string;
2702
2701
  result: string;
2702
+ userInputId: string;
2703
2703
  }>, z.ZodObject<{
2704
2704
  type: z.ZodLiteral<"npm-version-status">;
2705
2705
  isUpToDate: z.ZodBoolean;
@@ -2724,19 +2724,19 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2724
2724
  session_credits_used: z.ZodNumber;
2725
2725
  }, "type">>, "strip", z.ZodTypeAny, {
2726
2726
  type: "init-response";
2727
- usage: number;
2728
- limit: number;
2729
- subscription_active: boolean;
2730
2727
  next_quota_reset: Date;
2728
+ subscription_active: boolean;
2729
+ limit: number;
2731
2730
  session_credits_used: number;
2731
+ usage: number;
2732
2732
  referralLink?: string | undefined;
2733
2733
  }, {
2734
2734
  type: "init-response";
2735
- usage: number;
2736
- limit: number;
2737
- subscription_active: boolean;
2738
2735
  next_quota_reset: Date;
2736
+ subscription_active: boolean;
2737
+ limit: number;
2739
2738
  session_credits_used: number;
2739
+ usage: number;
2740
2740
  referralLink?: string | undefined;
2741
2741
  }>, z.ZodObject<{
2742
2742
  type: z.ZodLiteral<"auth-result">;
@@ -2748,41 +2748,41 @@ 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;
2751
2752
  name: string | null;
2752
2753
  id: string;
2753
2754
  fingerprintId: string;
2754
2755
  authToken: string;
2755
- email: string;
2756
2756
  fingerprintHash: string;
2757
2757
  }, {
2758
+ email: string;
2758
2759
  name: string | null;
2759
2760
  id: string;
2760
2761
  fingerprintId: string;
2761
2762
  authToken: string;
2762
- email: string;
2763
2763
  fingerprintHash: string;
2764
2764
  }>>;
2765
2765
  message: z.ZodString;
2766
2766
  }, "strip", z.ZodTypeAny, {
2767
- type: "auth-result";
2768
2767
  message: string;
2768
+ type: "auth-result";
2769
2769
  user?: {
2770
+ email: string;
2770
2771
  name: string | null;
2771
2772
  id: string;
2772
2773
  fingerprintId: string;
2773
2774
  authToken: string;
2774
- email: string;
2775
2775
  fingerprintHash: string;
2776
2776
  } | undefined;
2777
2777
  }, {
2778
- type: "auth-result";
2779
2778
  message: string;
2779
+ type: "auth-result";
2780
2780
  user?: {
2781
+ email: string;
2781
2782
  name: string | null;
2782
2783
  id: string;
2783
2784
  fingerprintId: string;
2784
2785
  authToken: string;
2785
- email: string;
2786
2786
  fingerprintHash: string;
2787
2787
  } | undefined;
2788
2788
  }>, z.ZodObject<{
@@ -2810,29 +2810,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2810
2810
  session_credits_used: z.ZodNumber;
2811
2811
  }, "strip", z.ZodTypeAny, {
2812
2812
  type: "usage-response";
2813
- usage: number;
2814
- limit: number;
2815
- subscription_active: boolean;
2816
2813
  next_quota_reset: Date;
2814
+ subscription_active: boolean;
2815
+ limit: number;
2817
2816
  session_credits_used: number;
2817
+ usage: number;
2818
2818
  referralLink?: string | undefined;
2819
2819
  }, {
2820
2820
  type: "usage-response";
2821
- usage: number;
2822
- limit: number;
2823
- subscription_active: boolean;
2824
2821
  next_quota_reset: Date;
2822
+ subscription_active: boolean;
2823
+ limit: number;
2825
2824
  session_credits_used: number;
2825
+ usage: number;
2826
2826
  referralLink?: string | undefined;
2827
2827
  }>, z.ZodObject<{
2828
2828
  type: z.ZodLiteral<"action-error">;
2829
2829
  message: z.ZodString;
2830
2830
  }, "strip", z.ZodTypeAny, {
2831
- type: "action-error";
2832
2831
  message: string;
2833
- }, {
2834
2832
  type: "action-error";
2833
+ }, {
2835
2834
  message: string;
2835
+ type: "action-error";
2836
2836
  }>, z.ZodObject<{
2837
2837
  type: z.ZodLiteral<"commit-message-response">;
2838
2838
  commitMessage: z.ZodString;
@@ -2847,45 +2847,45 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2847
2847
  type: "action";
2848
2848
  data: {
2849
2849
  type: "usage-response";
2850
- usage: number;
2851
- limit: number;
2852
- subscription_active: boolean;
2853
2850
  next_quota_reset: Date;
2851
+ subscription_active: boolean;
2852
+ limit: number;
2854
2853
  session_credits_used: number;
2854
+ usage: number;
2855
2855
  referralLink?: string | undefined;
2856
2856
  } | {
2857
2857
  type: "init-response";
2858
- usage: number;
2859
- limit: number;
2860
- subscription_active: boolean;
2861
2858
  next_quota_reset: Date;
2859
+ subscription_active: boolean;
2860
+ limit: number;
2862
2861
  session_credits_used: number;
2862
+ usage: number;
2863
2863
  referralLink?: string | undefined;
2864
2864
  } | {
2865
2865
  type: "response-complete";
2866
+ response: string;
2866
2867
  userInputId: string;
2867
2868
  changesAlreadyApplied: {
2868
- type: "patch" | "file";
2869
- filePath: string;
2870
2869
  content: string;
2870
+ type: "file" | "patch";
2871
+ filePath: string;
2871
2872
  }[];
2872
- response: string;
2873
2873
  changes: {
2874
- type: "patch" | "file";
2875
- filePath: string;
2876
2874
  content: string;
2875
+ type: "file" | "patch";
2876
+ filePath: string;
2877
2877
  }[];
2878
2878
  addedFileVersions: {
2879
2879
  path: string;
2880
2880
  content: string;
2881
2881
  }[];
2882
2882
  resetFileVersions: boolean;
2883
- usage?: number | undefined;
2884
- limit?: number | undefined;
2885
- referralLink?: string | undefined;
2886
- subscription_active?: boolean | undefined;
2887
2883
  next_quota_reset?: Date | undefined;
2884
+ subscription_active?: boolean | undefined;
2885
+ limit?: number | undefined;
2888
2886
  session_credits_used?: number | undefined;
2887
+ usage?: number | undefined;
2888
+ referralLink?: string | undefined;
2889
2889
  } | {
2890
2890
  type: "response-chunk";
2891
2891
  userInputId: string;
@@ -2895,45 +2895,45 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2895
2895
  filePaths: string[];
2896
2896
  } | {
2897
2897
  type: "tool-call";
2898
+ data: {
2899
+ name: string;
2900
+ id: string;
2901
+ input: Record<string, any>;
2902
+ };
2903
+ response: string;
2898
2904
  userInputId: string;
2899
2905
  changesAlreadyApplied: {
2900
- type: "patch" | "file";
2901
- filePath: string;
2902
2906
  content: string;
2907
+ type: "file" | "patch";
2908
+ filePath: string;
2903
2909
  }[];
2904
- response: string;
2905
2910
  changes: {
2906
- type: "patch" | "file";
2907
- filePath: string;
2908
2911
  content: string;
2912
+ type: "file" | "patch";
2913
+ filePath: string;
2909
2914
  }[];
2910
2915
  addedFileVersions: {
2911
2916
  path: string;
2912
2917
  content: string;
2913
2918
  }[];
2914
2919
  resetFileVersions: boolean;
2915
- data: {
2916
- name: string;
2917
- id: string;
2918
- input: Record<string, any>;
2919
- };
2920
2920
  } | {
2921
2921
  type: "terminal-command-result";
2922
- userInputId: string;
2923
2922
  result: string;
2923
+ userInputId: string;
2924
2924
  } | {
2925
2925
  type: "npm-version-status";
2926
2926
  isUpToDate: boolean;
2927
2927
  latestVersion: string;
2928
2928
  } | {
2929
- type: "auth-result";
2930
2929
  message: string;
2930
+ type: "auth-result";
2931
2931
  user?: {
2932
+ email: string;
2932
2933
  name: string | null;
2933
2934
  id: string;
2934
2935
  fingerprintId: string;
2935
2936
  authToken: string;
2936
- email: string;
2937
2937
  fingerprintHash: string;
2938
2938
  } | undefined;
2939
2939
  } | {
@@ -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
- type: "action-error";
2946
2945
  message: string;
2946
+ type: "action-error";
2947
2947
  } | {
2948
2948
  type: "commit-message-response";
2949
2949
  commitMessage: string;
@@ -2952,45 +2952,45 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2952
2952
  type: "action";
2953
2953
  data: {
2954
2954
  type: "usage-response";
2955
- usage: number;
2956
- limit: number;
2957
- subscription_active: boolean;
2958
2955
  next_quota_reset: Date;
2956
+ subscription_active: boolean;
2957
+ limit: number;
2959
2958
  session_credits_used: number;
2959
+ usage: number;
2960
2960
  referralLink?: string | undefined;
2961
2961
  } | {
2962
2962
  type: "init-response";
2963
- usage: number;
2964
- limit: number;
2965
- subscription_active: boolean;
2966
2963
  next_quota_reset: Date;
2964
+ subscription_active: boolean;
2965
+ limit: number;
2967
2966
  session_credits_used: number;
2967
+ usage: number;
2968
2968
  referralLink?: string | undefined;
2969
2969
  } | {
2970
2970
  type: "response-complete";
2971
+ response: string;
2971
2972
  userInputId: string;
2972
2973
  changesAlreadyApplied: {
2973
- type: "patch" | "file";
2974
- filePath: string;
2975
2974
  content: string;
2975
+ type: "file" | "patch";
2976
+ filePath: string;
2976
2977
  }[];
2977
- response: string;
2978
2978
  changes: {
2979
- type: "patch" | "file";
2980
- filePath: string;
2981
2979
  content: string;
2980
+ type: "file" | "patch";
2981
+ filePath: string;
2982
2982
  }[];
2983
2983
  addedFileVersions: {
2984
2984
  path: string;
2985
2985
  content: string;
2986
2986
  }[];
2987
2987
  resetFileVersions: boolean;
2988
- usage?: number | undefined;
2989
- limit?: number | undefined;
2990
- referralLink?: string | undefined;
2991
- subscription_active?: boolean | undefined;
2992
2988
  next_quota_reset?: Date | undefined;
2989
+ subscription_active?: boolean | undefined;
2990
+ limit?: number | undefined;
2993
2991
  session_credits_used?: number | undefined;
2992
+ usage?: number | undefined;
2993
+ referralLink?: string | undefined;
2994
2994
  } | {
2995
2995
  type: "response-chunk";
2996
2996
  userInputId: string;
@@ -3000,45 +3000,45 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3000
3000
  filePaths: string[];
3001
3001
  } | {
3002
3002
  type: "tool-call";
3003
+ data: {
3004
+ name: string;
3005
+ id: string;
3006
+ input: Record<string, any>;
3007
+ };
3008
+ response: string;
3003
3009
  userInputId: string;
3004
3010
  changesAlreadyApplied: {
3005
- type: "patch" | "file";
3006
- filePath: string;
3007
3011
  content: string;
3012
+ type: "file" | "patch";
3013
+ filePath: string;
3008
3014
  }[];
3009
- response: string;
3010
3015
  changes: {
3011
- type: "patch" | "file";
3012
- filePath: string;
3013
3016
  content: string;
3017
+ type: "file" | "patch";
3018
+ filePath: string;
3014
3019
  }[];
3015
3020
  addedFileVersions: {
3016
3021
  path: string;
3017
3022
  content: string;
3018
3023
  }[];
3019
3024
  resetFileVersions: boolean;
3020
- data: {
3021
- name: string;
3022
- id: string;
3023
- input: Record<string, any>;
3024
- };
3025
3025
  } | {
3026
3026
  type: "terminal-command-result";
3027
- userInputId: string;
3028
3027
  result: string;
3028
+ userInputId: string;
3029
3029
  } | {
3030
3030
  type: "npm-version-status";
3031
3031
  isUpToDate: boolean;
3032
3032
  latestVersion: string;
3033
3033
  } | {
3034
- type: "auth-result";
3035
3034
  message: string;
3035
+ type: "auth-result";
3036
3036
  user?: {
3037
+ email: string;
3037
3038
  name: string | null;
3038
3039
  id: string;
3039
3040
  fingerprintId: string;
3040
3041
  authToken: string;
3041
- email: string;
3042
3042
  fingerprintHash: string;
3043
3043
  } | undefined;
3044
3044
  } | {
@@ -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
- type: "action-error";
3051
3050
  message: string;
3051
+ type: "action-error";
3052
3052
  } | {
3053
3053
  type: "commit-message-response";
3054
3054
  commitMessage: string;