codebuff 1.0.259 → 1.0.261

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.
@@ -234,15 +234,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
234
234
  type: "ephemeral";
235
235
  }>>;
236
236
  }, "strip", z.ZodTypeAny, {
237
- type: "tool_result";
238
237
  content: string;
238
+ type: "tool_result";
239
239
  tool_use_id: string;
240
240
  cache_control?: {
241
241
  type: "ephemeral";
242
242
  } | undefined;
243
243
  }, {
244
- type: "tool_result";
245
244
  content: string;
245
+ type: "tool_result";
246
246
  tool_use_id: string;
247
247
  cache_control?: {
248
248
  type: "ephemeral";
@@ -306,8 +306,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
306
306
  type: "ephemeral";
307
307
  } | undefined;
308
308
  } | {
309
- type: "tool_result";
310
309
  content: string;
310
+ type: "tool_result";
311
311
  tool_use_id: string;
312
312
  cache_control?: {
313
313
  type: "ephemeral";
@@ -340,8 +340,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
340
340
  type: "ephemeral";
341
341
  } | undefined;
342
342
  } | {
343
- type: "tool_result";
344
343
  content: string;
344
+ type: "tool_result";
345
345
  tool_use_id: string;
346
346
  cache_control?: {
347
347
  type: "ephemeral";
@@ -405,8 +405,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
405
405
  type: "ephemeral";
406
406
  } | undefined;
407
407
  } | {
408
- type: "tool_result";
409
408
  content: string;
409
+ type: "tool_result";
410
410
  tool_use_id: string;
411
411
  cache_control?: {
412
412
  type: "ephemeral";
@@ -470,8 +470,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
470
470
  type: "ephemeral";
471
471
  } | undefined;
472
472
  } | {
473
- type: "tool_result";
474
473
  content: string;
474
+ type: "tool_result";
475
475
  tool_use_id: string;
476
476
  cache_control?: {
477
477
  type: "ephemeral";
@@ -555,8 +555,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
555
555
  type: "ephemeral";
556
556
  } | undefined;
557
557
  } | {
558
- type: "tool_result";
559
558
  content: string;
559
+ type: "tool_result";
560
560
  tool_use_id: string;
561
561
  cache_control?: {
562
562
  type: "ephemeral";
@@ -633,8 +633,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
633
633
  type: "ephemeral";
634
634
  } | undefined;
635
635
  } | {
636
- type: "tool_result";
637
636
  content: string;
637
+ type: "tool_result";
638
638
  tool_use_id: string;
639
639
  cache_control?: {
640
640
  type: "ephemeral";
@@ -918,8 +918,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
918
918
  type: "ephemeral";
919
919
  } | undefined;
920
920
  } | {
921
- type: "tool_result";
922
921
  content: string;
922
+ type: "tool_result";
923
923
  tool_use_id: string;
924
924
  cache_control?: {
925
925
  type: "ephemeral";
@@ -1040,8 +1040,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1040
1040
  type: "ephemeral";
1041
1041
  } | undefined;
1042
1042
  } | {
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";
@@ -1344,15 +1344,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1344
1344
  type: "ephemeral";
1345
1345
  }>>;
1346
1346
  }, "strip", z.ZodTypeAny, {
1347
- type: "tool_result";
1348
1347
  content: string;
1348
+ type: "tool_result";
1349
1349
  tool_use_id: string;
1350
1350
  cache_control?: {
1351
1351
  type: "ephemeral";
1352
1352
  } | undefined;
1353
1353
  }, {
1354
- type: "tool_result";
1355
1354
  content: string;
1355
+ type: "tool_result";
1356
1356
  tool_use_id: string;
1357
1357
  cache_control?: {
1358
1358
  type: "ephemeral";
@@ -1416,8 +1416,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1416
1416
  type: "ephemeral";
1417
1417
  } | undefined;
1418
1418
  } | {
1419
- type: "tool_result";
1420
1419
  content: string;
1420
+ type: "tool_result";
1421
1421
  tool_use_id: string;
1422
1422
  cache_control?: {
1423
1423
  type: "ephemeral";
@@ -1450,8 +1450,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1450
1450
  type: "ephemeral";
1451
1451
  } | undefined;
1452
1452
  } | {
1453
- type: "tool_result";
1454
1453
  content: string;
1454
+ type: "tool_result";
1455
1455
  tool_use_id: string;
1456
1456
  cache_control?: {
1457
1457
  type: "ephemeral";
@@ -1515,8 +1515,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1515
1515
  type: "ephemeral";
1516
1516
  } | undefined;
1517
1517
  } | {
1518
- type: "tool_result";
1519
1518
  content: string;
1519
+ type: "tool_result";
1520
1520
  tool_use_id: string;
1521
1521
  cache_control?: {
1522
1522
  type: "ephemeral";
@@ -1580,8 +1580,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1580
1580
  type: "ephemeral";
1581
1581
  } | undefined;
1582
1582
  } | {
1583
- type: "tool_result";
1584
1583
  content: string;
1584
+ type: "tool_result";
1585
1585
  tool_use_id: string;
1586
1586
  cache_control?: {
1587
1587
  type: "ephemeral";
@@ -1665,8 +1665,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1665
1665
  type: "ephemeral";
1666
1666
  } | undefined;
1667
1667
  } | {
1668
- type: "tool_result";
1669
1668
  content: string;
1669
+ type: "tool_result";
1670
1670
  tool_use_id: string;
1671
1671
  cache_control?: {
1672
1672
  type: "ephemeral";
@@ -1743,8 +1743,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1743
1743
  type: "ephemeral";
1744
1744
  } | undefined;
1745
1745
  } | {
1746
- type: "tool_result";
1747
1746
  content: string;
1747
+ type: "tool_result";
1748
1748
  tool_use_id: string;
1749
1749
  cache_control?: {
1750
1750
  type: "ephemeral";
@@ -2028,8 +2028,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2028
2028
  type: "ephemeral";
2029
2029
  } | undefined;
2030
2030
  } | {
2031
- type: "tool_result";
2032
2031
  content: string;
2032
+ type: "tool_result";
2033
2033
  tool_use_id: string;
2034
2034
  cache_control?: {
2035
2035
  type: "ephemeral";
@@ -2150,8 +2150,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2150
2150
  type: "ephemeral";
2151
2151
  } | undefined;
2152
2152
  } | {
2153
- type: "tool_result";
2154
2153
  content: string;
2154
+ type: "tool_result";
2155
2155
  tool_use_id: string;
2156
2156
  cache_control?: {
2157
2157
  type: "ephemeral";
@@ -2266,12 +2266,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2266
2266
  content: z.ZodString;
2267
2267
  }, "strip", z.ZodTypeAny, {
2268
2268
  path: string;
2269
- type: "file" | "patch";
2270
2269
  content: string;
2270
+ type: "file" | "patch";
2271
2271
  }, {
2272
2272
  path: string;
2273
- type: "file" | "patch";
2274
2273
  content: string;
2274
+ type: "file" | "patch";
2275
2275
  }>, "many">;
2276
2276
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2277
2277
  type: z.ZodEnum<["patch", "file"]>;
@@ -2279,12 +2279,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2279
2279
  content: z.ZodString;
2280
2280
  }, "strip", z.ZodTypeAny, {
2281
2281
  path: string;
2282
- type: "file" | "patch";
2283
2282
  content: string;
2283
+ type: "file" | "patch";
2284
2284
  }, {
2285
2285
  path: string;
2286
- type: "file" | "patch";
2287
2286
  content: string;
2287
+ type: "file" | "patch";
2288
2288
  }>, "many">;
2289
2289
  addedFileVersions: z.ZodArray<z.ZodObject<{
2290
2290
  path: z.ZodString;
@@ -2309,13 +2309,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2309
2309
  response: string;
2310
2310
  changes: {
2311
2311
  path: string;
2312
- type: "file" | "patch";
2313
2312
  content: string;
2313
+ type: "file" | "patch";
2314
2314
  }[];
2315
2315
  changesAlreadyApplied: {
2316
2316
  path: string;
2317
- type: "file" | "patch";
2318
2317
  content: string;
2318
+ type: "file" | "patch";
2319
2319
  }[];
2320
2320
  addedFileVersions: {
2321
2321
  path: string;
@@ -2333,13 +2333,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2333
2333
  response: string;
2334
2334
  changes: {
2335
2335
  path: string;
2336
- type: "file" | "patch";
2337
2336
  content: string;
2337
+ type: "file" | "patch";
2338
2338
  }[];
2339
2339
  changesAlreadyApplied: {
2340
2340
  path: string;
2341
- type: "file" | "patch";
2342
2341
  content: string;
2342
+ type: "file" | "patch";
2343
2343
  }[];
2344
2344
  addedFileVersions: {
2345
2345
  path: string;
@@ -2529,15 +2529,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2529
2529
  type: "ephemeral";
2530
2530
  }>>;
2531
2531
  }, "strip", z.ZodTypeAny, {
2532
- type: "tool_result";
2533
2532
  content: string;
2533
+ type: "tool_result";
2534
2534
  tool_use_id: string;
2535
2535
  cache_control?: {
2536
2536
  type: "ephemeral";
2537
2537
  } | undefined;
2538
2538
  }, {
2539
- type: "tool_result";
2540
2539
  content: string;
2540
+ type: "tool_result";
2541
2541
  tool_use_id: string;
2542
2542
  cache_control?: {
2543
2543
  type: "ephemeral";
@@ -2601,8 +2601,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2601
2601
  type: "ephemeral";
2602
2602
  } | undefined;
2603
2603
  } | {
2604
- type: "tool_result";
2605
2604
  content: string;
2605
+ type: "tool_result";
2606
2606
  tool_use_id: string;
2607
2607
  cache_control?: {
2608
2608
  type: "ephemeral";
@@ -2635,8 +2635,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2635
2635
  type: "ephemeral";
2636
2636
  } | undefined;
2637
2637
  } | {
2638
- type: "tool_result";
2639
2638
  content: string;
2639
+ type: "tool_result";
2640
2640
  tool_use_id: string;
2641
2641
  cache_control?: {
2642
2642
  type: "ephemeral";
@@ -2700,8 +2700,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2700
2700
  type: "ephemeral";
2701
2701
  } | undefined;
2702
2702
  } | {
2703
- type: "tool_result";
2704
2703
  content: string;
2704
+ type: "tool_result";
2705
2705
  tool_use_id: string;
2706
2706
  cache_control?: {
2707
2707
  type: "ephemeral";
@@ -2765,8 +2765,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2765
2765
  type: "ephemeral";
2766
2766
  } | undefined;
2767
2767
  } | {
2768
- type: "tool_result";
2769
2768
  content: string;
2769
+ type: "tool_result";
2770
2770
  tool_use_id: string;
2771
2771
  cache_control?: {
2772
2772
  type: "ephemeral";
@@ -2860,8 +2860,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2860
2860
  type: "ephemeral";
2861
2861
  } | undefined;
2862
2862
  } | {
2863
- type: "tool_result";
2864
2863
  content: string;
2864
+ type: "tool_result";
2865
2865
  tool_use_id: string;
2866
2866
  cache_control?: {
2867
2867
  type: "ephemeral";
@@ -2939,8 +2939,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2939
2939
  type: "ephemeral";
2940
2940
  } | undefined;
2941
2941
  } | {
2942
- type: "tool_result";
2943
2942
  content: string;
2943
+ type: "tool_result";
2944
2944
  tool_use_id: string;
2945
2945
  cache_control?: {
2946
2946
  type: "ephemeral";
@@ -3005,12 +3005,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3005
3005
  content: z.ZodString;
3006
3006
  }, "strip", z.ZodTypeAny, {
3007
3007
  path: string;
3008
- type: "file" | "patch";
3009
3008
  content: string;
3009
+ type: "file" | "patch";
3010
3010
  }, {
3011
3011
  path: string;
3012
- type: "file" | "patch";
3013
3012
  content: string;
3013
+ type: "file" | "patch";
3014
3014
  }>, "many">;
3015
3015
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
3016
3016
  type: z.ZodEnum<["patch", "file"]>;
@@ -3018,12 +3018,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3018
3018
  content: z.ZodString;
3019
3019
  }, "strip", z.ZodTypeAny, {
3020
3020
  path: string;
3021
- type: "file" | "patch";
3022
3021
  content: string;
3022
+ type: "file" | "patch";
3023
3023
  }, {
3024
3024
  path: string;
3025
- type: "file" | "patch";
3026
3025
  content: string;
3026
+ type: "file" | "patch";
3027
3027
  }>, "many">;
3028
3028
  addedFileVersions: z.ZodArray<z.ZodObject<{
3029
3029
  path: z.ZodString;
@@ -3047,13 +3047,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3047
3047
  response: string;
3048
3048
  changes: {
3049
3049
  path: string;
3050
- type: "file" | "patch";
3051
3050
  content: string;
3051
+ type: "file" | "patch";
3052
3052
  }[];
3053
3053
  changesAlreadyApplied: {
3054
3054
  path: string;
3055
- type: "file" | "patch";
3056
3055
  content: string;
3056
+ type: "file" | "patch";
3057
3057
  }[];
3058
3058
  addedFileVersions: {
3059
3059
  path: string;
@@ -3071,13 +3071,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3071
3071
  response: string;
3072
3072
  changes: {
3073
3073
  path: string;
3074
- type: "file" | "patch";
3075
3074
  content: string;
3075
+ type: "file" | "patch";
3076
3076
  }[];
3077
3077
  changesAlreadyApplied: {
3078
3078
  path: string;
3079
- type: "file" | "patch";
3080
3079
  content: string;
3080
+ type: "file" | "patch";
3081
3081
  }[];
3082
3082
  addedFileVersions: {
3083
3083
  path: string;
@@ -3217,13 +3217,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3217
3217
  response: string;
3218
3218
  changes: {
3219
3219
  path: string;
3220
- type: "file" | "patch";
3221
3220
  content: string;
3221
+ type: "file" | "patch";
3222
3222
  }[];
3223
3223
  changesAlreadyApplied: {
3224
3224
  path: string;
3225
- type: "file" | "patch";
3226
3225
  content: string;
3226
+ type: "file" | "patch";
3227
3227
  }[];
3228
3228
  addedFileVersions: {
3229
3229
  path: string;
@@ -3287,8 +3287,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3287
3287
  type: "ephemeral";
3288
3288
  } | undefined;
3289
3289
  } | {
3290
- type: "tool_result";
3291
3290
  content: string;
3291
+ type: "tool_result";
3292
3292
  tool_use_id: string;
3293
3293
  cache_control?: {
3294
3294
  type: "ephemeral";
@@ -3337,13 +3337,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3337
3337
  response: string;
3338
3338
  changes: {
3339
3339
  path: string;
3340
- type: "file" | "patch";
3341
3340
  content: string;
3341
+ type: "file" | "patch";
3342
3342
  }[];
3343
3343
  changesAlreadyApplied: {
3344
3344
  path: string;
3345
- type: "file" | "patch";
3346
3345
  content: string;
3346
+ type: "file" | "patch";
3347
3347
  }[];
3348
3348
  addedFileVersions: {
3349
3349
  path: string;
@@ -3391,13 +3391,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3391
3391
  response: string;
3392
3392
  changes: {
3393
3393
  path: string;
3394
- type: "file" | "patch";
3395
3394
  content: string;
3395
+ type: "file" | "patch";
3396
3396
  }[];
3397
3397
  changesAlreadyApplied: {
3398
3398
  path: string;
3399
- type: "file" | "patch";
3400
3399
  content: string;
3400
+ type: "file" | "patch";
3401
3401
  }[];
3402
3402
  addedFileVersions: {
3403
3403
  path: string;
@@ -3461,8 +3461,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3461
3461
  type: "ephemeral";
3462
3462
  } | undefined;
3463
3463
  } | {
3464
- type: "tool_result";
3465
3464
  content: string;
3465
+ type: "tool_result";
3466
3466
  tool_use_id: string;
3467
3467
  cache_control?: {
3468
3468
  type: "ephemeral";
@@ -3511,13 +3511,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3511
3511
  response: string;
3512
3512
  changes: {
3513
3513
  path: string;
3514
- type: "file" | "patch";
3515
3514
  content: string;
3515
+ type: "file" | "patch";
3516
3516
  }[];
3517
3517
  changesAlreadyApplied: {
3518
3518
  path: string;
3519
- type: "file" | "patch";
3520
3519
  content: string;
3520
+ type: "file" | "patch";
3521
3521
  }[];
3522
3522
  addedFileVersions: {
3523
3523
  path: string;
@@ -3584,12 +3584,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3584
3584
  content: z.ZodString;
3585
3585
  }, "strip", z.ZodTypeAny, {
3586
3586
  path: string;
3587
- type: "file" | "patch";
3588
3587
  content: string;
3588
+ type: "file" | "patch";
3589
3589
  }, {
3590
3590
  path: string;
3591
- type: "file" | "patch";
3592
3591
  content: string;
3592
+ type: "file" | "patch";
3593
3593
  }>, "many">;
3594
3594
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
3595
3595
  type: z.ZodEnum<["patch", "file"]>;
@@ -3597,12 +3597,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3597
3597
  content: z.ZodString;
3598
3598
  }, "strip", z.ZodTypeAny, {
3599
3599
  path: string;
3600
- type: "file" | "patch";
3601
3600
  content: string;
3601
+ type: "file" | "patch";
3602
3602
  }, {
3603
3603
  path: string;
3604
- type: "file" | "patch";
3605
3604
  content: string;
3605
+ type: "file" | "patch";
3606
3606
  }>, "many">;
3607
3607
  addedFileVersions: z.ZodArray<z.ZodObject<{
3608
3608
  path: z.ZodString;
@@ -3627,13 +3627,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3627
3627
  response: string;
3628
3628
  changes: {
3629
3629
  path: string;
3630
- type: "file" | "patch";
3631
3630
  content: string;
3631
+ type: "file" | "patch";
3632
3632
  }[];
3633
3633
  changesAlreadyApplied: {
3634
3634
  path: string;
3635
- type: "file" | "patch";
3636
3635
  content: string;
3636
+ type: "file" | "patch";
3637
3637
  }[];
3638
3638
  addedFileVersions: {
3639
3639
  path: string;
@@ -3651,13 +3651,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3651
3651
  response: string;
3652
3652
  changes: {
3653
3653
  path: string;
3654
- type: "file" | "patch";
3655
3654
  content: string;
3655
+ type: "file" | "patch";
3656
3656
  }[];
3657
3657
  changesAlreadyApplied: {
3658
3658
  path: string;
3659
- type: "file" | "patch";
3660
3659
  content: string;
3660
+ type: "file" | "patch";
3661
3661
  }[];
3662
3662
  addedFileVersions: {
3663
3663
  path: string;
@@ -3847,15 +3847,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3847
3847
  type: "ephemeral";
3848
3848
  }>>;
3849
3849
  }, "strip", z.ZodTypeAny, {
3850
- type: "tool_result";
3851
3850
  content: string;
3851
+ type: "tool_result";
3852
3852
  tool_use_id: string;
3853
3853
  cache_control?: {
3854
3854
  type: "ephemeral";
3855
3855
  } | undefined;
3856
3856
  }, {
3857
- type: "tool_result";
3858
3857
  content: string;
3858
+ type: "tool_result";
3859
3859
  tool_use_id: string;
3860
3860
  cache_control?: {
3861
3861
  type: "ephemeral";
@@ -3919,8 +3919,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3919
3919
  type: "ephemeral";
3920
3920
  } | undefined;
3921
3921
  } | {
3922
- type: "tool_result";
3923
3922
  content: string;
3923
+ type: "tool_result";
3924
3924
  tool_use_id: string;
3925
3925
  cache_control?: {
3926
3926
  type: "ephemeral";
@@ -3953,8 +3953,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3953
3953
  type: "ephemeral";
3954
3954
  } | undefined;
3955
3955
  } | {
3956
- type: "tool_result";
3957
3956
  content: string;
3957
+ type: "tool_result";
3958
3958
  tool_use_id: string;
3959
3959
  cache_control?: {
3960
3960
  type: "ephemeral";
@@ -4018,8 +4018,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4018
4018
  type: "ephemeral";
4019
4019
  } | undefined;
4020
4020
  } | {
4021
- type: "tool_result";
4022
4021
  content: string;
4022
+ type: "tool_result";
4023
4023
  tool_use_id: string;
4024
4024
  cache_control?: {
4025
4025
  type: "ephemeral";
@@ -4083,8 +4083,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4083
4083
  type: "ephemeral";
4084
4084
  } | undefined;
4085
4085
  } | {
4086
- type: "tool_result";
4087
4086
  content: string;
4087
+ type: "tool_result";
4088
4088
  tool_use_id: string;
4089
4089
  cache_control?: {
4090
4090
  type: "ephemeral";
@@ -4178,8 +4178,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4178
4178
  type: "ephemeral";
4179
4179
  } | undefined;
4180
4180
  } | {
4181
- type: "tool_result";
4182
4181
  content: string;
4182
+ type: "tool_result";
4183
4183
  tool_use_id: string;
4184
4184
  cache_control?: {
4185
4185
  type: "ephemeral";
@@ -4257,8 +4257,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4257
4257
  type: "ephemeral";
4258
4258
  } | undefined;
4259
4259
  } | {
4260
- type: "tool_result";
4261
4260
  content: string;
4261
+ type: "tool_result";
4262
4262
  tool_use_id: string;
4263
4263
  cache_control?: {
4264
4264
  type: "ephemeral";
@@ -4323,12 +4323,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4323
4323
  content: z.ZodString;
4324
4324
  }, "strip", z.ZodTypeAny, {
4325
4325
  path: string;
4326
- type: "file" | "patch";
4327
4326
  content: string;
4327
+ type: "file" | "patch";
4328
4328
  }, {
4329
4329
  path: string;
4330
- type: "file" | "patch";
4331
4330
  content: string;
4331
+ type: "file" | "patch";
4332
4332
  }>, "many">;
4333
4333
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
4334
4334
  type: z.ZodEnum<["patch", "file"]>;
@@ -4336,12 +4336,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4336
4336
  content: z.ZodString;
4337
4337
  }, "strip", z.ZodTypeAny, {
4338
4338
  path: string;
4339
- type: "file" | "patch";
4340
4339
  content: string;
4340
+ type: "file" | "patch";
4341
4341
  }, {
4342
4342
  path: string;
4343
- type: "file" | "patch";
4344
4343
  content: string;
4344
+ type: "file" | "patch";
4345
4345
  }>, "many">;
4346
4346
  addedFileVersions: z.ZodArray<z.ZodObject<{
4347
4347
  path: z.ZodString;
@@ -4365,13 +4365,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4365
4365
  response: string;
4366
4366
  changes: {
4367
4367
  path: string;
4368
- type: "file" | "patch";
4369
4368
  content: string;
4369
+ type: "file" | "patch";
4370
4370
  }[];
4371
4371
  changesAlreadyApplied: {
4372
4372
  path: string;
4373
- type: "file" | "patch";
4374
4373
  content: string;
4374
+ type: "file" | "patch";
4375
4375
  }[];
4376
4376
  addedFileVersions: {
4377
4377
  path: string;
@@ -4389,13 +4389,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4389
4389
  response: string;
4390
4390
  changes: {
4391
4391
  path: string;
4392
- type: "file" | "patch";
4393
4392
  content: string;
4393
+ type: "file" | "patch";
4394
4394
  }[];
4395
4395
  changesAlreadyApplied: {
4396
4396
  path: string;
4397
- type: "file" | "patch";
4398
4397
  content: string;
4398
+ type: "file" | "patch";
4399
4399
  }[];
4400
4400
  addedFileVersions: {
4401
4401
  path: string;
@@ -4535,13 +4535,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4535
4535
  response: string;
4536
4536
  changes: {
4537
4537
  path: string;
4538
- type: "file" | "patch";
4539
4538
  content: string;
4539
+ type: "file" | "patch";
4540
4540
  }[];
4541
4541
  changesAlreadyApplied: {
4542
4542
  path: string;
4543
- type: "file" | "patch";
4544
4543
  content: string;
4544
+ type: "file" | "patch";
4545
4545
  }[];
4546
4546
  addedFileVersions: {
4547
4547
  path: string;
@@ -4605,8 +4605,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4605
4605
  type: "ephemeral";
4606
4606
  } | undefined;
4607
4607
  } | {
4608
- type: "tool_result";
4609
4608
  content: string;
4609
+ type: "tool_result";
4610
4610
  tool_use_id: string;
4611
4611
  cache_control?: {
4612
4612
  type: "ephemeral";
@@ -4655,13 +4655,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4655
4655
  response: string;
4656
4656
  changes: {
4657
4657
  path: string;
4658
- type: "file" | "patch";
4659
4658
  content: string;
4659
+ type: "file" | "patch";
4660
4660
  }[];
4661
4661
  changesAlreadyApplied: {
4662
4662
  path: string;
4663
- type: "file" | "patch";
4664
4663
  content: string;
4664
+ type: "file" | "patch";
4665
4665
  }[];
4666
4666
  addedFileVersions: {
4667
4667
  path: string;
@@ -4709,13 +4709,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4709
4709
  response: string;
4710
4710
  changes: {
4711
4711
  path: string;
4712
- type: "file" | "patch";
4713
4712
  content: string;
4713
+ type: "file" | "patch";
4714
4714
  }[];
4715
4715
  changesAlreadyApplied: {
4716
4716
  path: string;
4717
- type: "file" | "patch";
4718
4717
  content: string;
4718
+ type: "file" | "patch";
4719
4719
  }[];
4720
4720
  addedFileVersions: {
4721
4721
  path: string;
@@ -4779,8 +4779,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4779
4779
  type: "ephemeral";
4780
4780
  } | undefined;
4781
4781
  } | {
4782
- type: "tool_result";
4783
4782
  content: string;
4783
+ type: "tool_result";
4784
4784
  tool_use_id: string;
4785
4785
  cache_control?: {
4786
4786
  type: "ephemeral";
@@ -4829,13 +4829,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4829
4829
  response: string;
4830
4830
  changes: {
4831
4831
  path: string;
4832
- type: "file" | "patch";
4833
4832
  content: string;
4833
+ type: "file" | "patch";
4834
4834
  }[];
4835
4835
  changesAlreadyApplied: {
4836
4836
  path: string;
4837
- type: "file" | "patch";
4838
4837
  content: string;
4838
+ type: "file" | "patch";
4839
4839
  }[];
4840
4840
  addedFileVersions: {
4841
4841
  path: string;