codebuff 1.0.173 → 1.0.175

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.
Files changed (35) hide show
  1. package/dist/checkpoint-file-manager.d.ts +26 -3
  2. package/dist/checkpoint-file-manager.js +138 -76
  3. package/dist/checkpoint-file-manager.js.map +1 -1
  4. package/dist/checkpoints.d.ts +3 -1
  5. package/dist/checkpoints.js +25 -27
  6. package/dist/checkpoints.js.map +1 -1
  7. package/dist/cli.d.ts +1 -1
  8. package/dist/cli.js +7 -2
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.d.ts +2 -2
  11. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  12. package/dist/common/actions.d.ts +40 -40
  13. package/dist/common/browser-actions.d.ts +48 -48
  14. package/dist/common/constants.d.ts +3 -3
  15. package/dist/common/constants.js +1 -8
  16. package/dist/common/constants.js.map +1 -1
  17. package/dist/common/types/agent-state.d.ts +20 -20
  18. package/dist/common/types/message.d.ts +16 -16
  19. package/dist/common/util/file.d.ts +4 -4
  20. package/dist/common/websockets/websocket-schema.d.ts +80 -80
  21. package/dist/index.js +1 -3
  22. package/dist/index.js.map +1 -1
  23. package/dist/project-files.d.ts +2 -2
  24. package/dist/worker-script-project-context.js +4 -0
  25. package/dist/worker-script-project-context.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/common/advanced-analyzer.d.ts +0 -19
  28. package/dist/common/advanced-analyzer.js +0 -140
  29. package/dist/common/advanced-analyzer.js.map +0 -1
  30. package/dist/common/message-image-handling.d.ts +0 -41
  31. package/dist/common/message-image-handling.js +0 -57
  32. package/dist/common/message-image-handling.js.map +0 -1
  33. package/dist/common/util/process-stream.d.ts +0 -8
  34. package/dist/common/util/process-stream.js +0 -102
  35. package/dist/common/util/process-stream.js.map +0 -1
@@ -142,12 +142,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
142
142
  data: z.ZodString;
143
143
  }, "strip", z.ZodTypeAny, {
144
144
  type: "base64";
145
- data: string;
146
145
  media_type: "image/jpeg";
146
+ data: string;
147
147
  }, {
148
148
  type: "base64";
149
- data: string;
150
149
  media_type: "image/jpeg";
150
+ data: string;
151
151
  }>;
152
152
  cache_control: z.ZodOptional<z.ZodObject<{
153
153
  type: z.ZodLiteral<"ephemeral">;
@@ -160,8 +160,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
160
160
  type: "image";
161
161
  source: {
162
162
  type: "base64";
163
- data: string;
164
163
  media_type: "image/jpeg";
164
+ data: string;
165
165
  };
166
166
  cache_control?: {
167
167
  type: "ephemeral";
@@ -170,8 +170,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
170
170
  type: "image";
171
171
  source: {
172
172
  type: "base64";
173
- data: string;
174
173
  media_type: "image/jpeg";
174
+ data: string;
175
175
  };
176
176
  cache_control?: {
177
177
  type: "ephemeral";
@@ -203,8 +203,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
203
203
  type: "image";
204
204
  source: {
205
205
  type: "base64";
206
- data: string;
207
206
  media_type: "image/jpeg";
207
+ data: string;
208
208
  };
209
209
  cache_control?: {
210
210
  type: "ephemeral";
@@ -237,8 +237,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
237
237
  type: "image";
238
238
  source: {
239
239
  type: "base64";
240
- data: string;
241
240
  media_type: "image/jpeg";
241
+ data: string;
242
242
  };
243
243
  cache_control?: {
244
244
  type: "ephemeral";
@@ -399,8 +399,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
399
399
  type: "image";
400
400
  source: {
401
401
  type: "base64";
402
- data: string;
403
402
  media_type: "image/jpeg";
403
+ data: string;
404
404
  };
405
405
  cache_control?: {
406
406
  type: "ephemeral";
@@ -472,8 +472,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
472
472
  type: "image";
473
473
  source: {
474
474
  type: "base64";
475
- data: string;
476
475
  media_type: "image/jpeg";
476
+ data: string;
477
477
  };
478
478
  cache_control?: {
479
479
  type: "ephemeral";
@@ -718,12 +718,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
718
718
  data: z.ZodString;
719
719
  }, "strip", z.ZodTypeAny, {
720
720
  type: "base64";
721
- data: string;
722
721
  media_type: "image/jpeg";
722
+ data: string;
723
723
  }, {
724
724
  type: "base64";
725
- data: string;
726
725
  media_type: "image/jpeg";
726
+ data: string;
727
727
  }>;
728
728
  cache_control: z.ZodOptional<z.ZodObject<{
729
729
  type: z.ZodLiteral<"ephemeral">;
@@ -736,8 +736,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
736
736
  type: "image";
737
737
  source: {
738
738
  type: "base64";
739
- data: string;
740
739
  media_type: "image/jpeg";
740
+ data: string;
741
741
  };
742
742
  cache_control?: {
743
743
  type: "ephemeral";
@@ -746,8 +746,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
746
746
  type: "image";
747
747
  source: {
748
748
  type: "base64";
749
- data: string;
750
749
  media_type: "image/jpeg";
750
+ data: string;
751
751
  };
752
752
  cache_control?: {
753
753
  type: "ephemeral";
@@ -779,8 +779,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
779
779
  type: "image";
780
780
  source: {
781
781
  type: "base64";
782
- data: string;
783
782
  media_type: "image/jpeg";
783
+ data: string;
784
784
  };
785
785
  cache_control?: {
786
786
  type: "ephemeral";
@@ -813,8 +813,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
813
813
  type: "image";
814
814
  source: {
815
815
  type: "base64";
816
- data: string;
817
816
  media_type: "image/jpeg";
817
+ data: string;
818
818
  };
819
819
  cache_control?: {
820
820
  type: "ephemeral";
@@ -877,8 +877,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
877
877
  type: "image";
878
878
  source: {
879
879
  type: "base64";
880
- data: string;
881
880
  media_type: "image/jpeg";
881
+ data: string;
882
882
  };
883
883
  cache_control?: {
884
884
  type: "ephemeral";
@@ -941,8 +941,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
941
941
  type: "image";
942
942
  source: {
943
943
  type: "base64";
944
- data: string;
945
944
  media_type: "image/jpeg";
945
+ data: string;
946
946
  };
947
947
  cache_control?: {
948
948
  type: "ephemeral";
@@ -1024,8 +1024,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1024
1024
  type: "image";
1025
1025
  source: {
1026
1026
  type: "base64";
1027
- data: string;
1028
1027
  media_type: "image/jpeg";
1028
+ data: string;
1029
1029
  };
1030
1030
  cache_control?: {
1031
1031
  type: "ephemeral";
@@ -1100,8 +1100,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1100
1100
  type: "image";
1101
1101
  source: {
1102
1102
  type: "base64";
1103
- data: string;
1104
1103
  media_type: "image/jpeg";
1104
+ data: string;
1105
1105
  };
1106
1106
  cache_control?: {
1107
1107
  type: "ephemeral";
@@ -1365,8 +1365,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1365
1365
  type: "image";
1366
1366
  source: {
1367
1367
  type: "base64";
1368
- data: string;
1369
1368
  media_type: "image/jpeg";
1369
+ data: string;
1370
1370
  };
1371
1371
  cache_control?: {
1372
1372
  type: "ephemeral";
@@ -1468,8 +1468,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1468
1468
  type: "image";
1469
1469
  source: {
1470
1470
  type: "base64";
1471
- data: string;
1472
1471
  media_type: "image/jpeg";
1472
+ data: string;
1473
1473
  };
1474
1474
  cache_control?: {
1475
1475
  type: "ephemeral";
@@ -1563,8 +1563,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1563
1563
  type: "image";
1564
1564
  source: {
1565
1565
  type: "base64";
1566
- data: string;
1567
1566
  media_type: "image/jpeg";
1567
+ data: string;
1568
1568
  };
1569
1569
  cache_control?: {
1570
1570
  type: "ephemeral";
@@ -1665,8 +1665,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1665
1665
  type: "image";
1666
1666
  source: {
1667
1667
  type: "base64";
1668
- data: string;
1669
1668
  media_type: "image/jpeg";
1669
+ data: string;
1670
1670
  };
1671
1671
  cache_control?: {
1672
1672
  type: "ephemeral";
@@ -1869,12 +1869,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1869
1869
  data: z.ZodString;
1870
1870
  }, "strip", z.ZodTypeAny, {
1871
1871
  type: "base64";
1872
- data: string;
1873
1872
  media_type: "image/jpeg";
1873
+ data: string;
1874
1874
  }, {
1875
1875
  type: "base64";
1876
- data: string;
1877
1876
  media_type: "image/jpeg";
1877
+ data: string;
1878
1878
  }>;
1879
1879
  cache_control: z.ZodOptional<z.ZodObject<{
1880
1880
  type: z.ZodLiteral<"ephemeral">;
@@ -1887,8 +1887,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1887
1887
  type: "image";
1888
1888
  source: {
1889
1889
  type: "base64";
1890
- data: string;
1891
1890
  media_type: "image/jpeg";
1891
+ data: string;
1892
1892
  };
1893
1893
  cache_control?: {
1894
1894
  type: "ephemeral";
@@ -1897,8 +1897,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1897
1897
  type: "image";
1898
1898
  source: {
1899
1899
  type: "base64";
1900
- data: string;
1901
1900
  media_type: "image/jpeg";
1901
+ data: string;
1902
1902
  };
1903
1903
  cache_control?: {
1904
1904
  type: "ephemeral";
@@ -1930,8 +1930,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1930
1930
  type: "image";
1931
1931
  source: {
1932
1932
  type: "base64";
1933
- data: string;
1934
1933
  media_type: "image/jpeg";
1934
+ data: string;
1935
1935
  };
1936
1936
  cache_control?: {
1937
1937
  type: "ephemeral";
@@ -1964,8 +1964,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1964
1964
  type: "image";
1965
1965
  source: {
1966
1966
  type: "base64";
1967
- data: string;
1968
1967
  media_type: "image/jpeg";
1968
+ data: string;
1969
1969
  };
1970
1970
  cache_control?: {
1971
1971
  type: "ephemeral";
@@ -2126,8 +2126,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2126
2126
  type: "image";
2127
2127
  source: {
2128
2128
  type: "base64";
2129
- data: string;
2130
2129
  media_type: "image/jpeg";
2130
+ data: string;
2131
2131
  };
2132
2132
  cache_control?: {
2133
2133
  type: "ephemeral";
@@ -2199,8 +2199,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2199
2199
  type: "image";
2200
2200
  source: {
2201
2201
  type: "base64";
2202
- data: string;
2203
2202
  media_type: "image/jpeg";
2203
+ data: string;
2204
2204
  };
2205
2205
  cache_control?: {
2206
2206
  type: "ephemeral";
@@ -2445,12 +2445,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2445
2445
  data: z.ZodString;
2446
2446
  }, "strip", z.ZodTypeAny, {
2447
2447
  type: "base64";
2448
- data: string;
2449
2448
  media_type: "image/jpeg";
2449
+ data: string;
2450
2450
  }, {
2451
2451
  type: "base64";
2452
- data: string;
2453
2452
  media_type: "image/jpeg";
2453
+ data: string;
2454
2454
  }>;
2455
2455
  cache_control: z.ZodOptional<z.ZodObject<{
2456
2456
  type: z.ZodLiteral<"ephemeral">;
@@ -2463,8 +2463,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2463
2463
  type: "image";
2464
2464
  source: {
2465
2465
  type: "base64";
2466
- data: string;
2467
2466
  media_type: "image/jpeg";
2467
+ data: string;
2468
2468
  };
2469
2469
  cache_control?: {
2470
2470
  type: "ephemeral";
@@ -2473,8 +2473,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2473
2473
  type: "image";
2474
2474
  source: {
2475
2475
  type: "base64";
2476
- data: string;
2477
2476
  media_type: "image/jpeg";
2477
+ data: string;
2478
2478
  };
2479
2479
  cache_control?: {
2480
2480
  type: "ephemeral";
@@ -2506,8 +2506,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2506
2506
  type: "image";
2507
2507
  source: {
2508
2508
  type: "base64";
2509
- data: string;
2510
2509
  media_type: "image/jpeg";
2510
+ data: string;
2511
2511
  };
2512
2512
  cache_control?: {
2513
2513
  type: "ephemeral";
@@ -2540,8 +2540,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2540
2540
  type: "image";
2541
2541
  source: {
2542
2542
  type: "base64";
2543
- data: string;
2544
2543
  media_type: "image/jpeg";
2544
+ data: string;
2545
2545
  };
2546
2546
  cache_control?: {
2547
2547
  type: "ephemeral";
@@ -2604,8 +2604,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2604
2604
  type: "image";
2605
2605
  source: {
2606
2606
  type: "base64";
2607
- data: string;
2608
2607
  media_type: "image/jpeg";
2608
+ data: string;
2609
2609
  };
2610
2610
  cache_control?: {
2611
2611
  type: "ephemeral";
@@ -2668,8 +2668,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2668
2668
  type: "image";
2669
2669
  source: {
2670
2670
  type: "base64";
2671
- data: string;
2672
2671
  media_type: "image/jpeg";
2672
+ data: string;
2673
2673
  };
2674
2674
  cache_control?: {
2675
2675
  type: "ephemeral";
@@ -2751,8 +2751,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2751
2751
  type: "image";
2752
2752
  source: {
2753
2753
  type: "base64";
2754
- data: string;
2755
2754
  media_type: "image/jpeg";
2755
+ data: string;
2756
2756
  };
2757
2757
  cache_control?: {
2758
2758
  type: "ephemeral";
@@ -2827,8 +2827,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2827
2827
  type: "image";
2828
2828
  source: {
2829
2829
  type: "base64";
2830
- data: string;
2831
2830
  media_type: "image/jpeg";
2831
+ data: string;
2832
2832
  };
2833
2833
  cache_control?: {
2834
2834
  type: "ephemeral";
@@ -3092,8 +3092,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3092
3092
  type: "image";
3093
3093
  source: {
3094
3094
  type: "base64";
3095
- data: string;
3096
3095
  media_type: "image/jpeg";
3096
+ data: string;
3097
3097
  };
3098
3098
  cache_control?: {
3099
3099
  type: "ephemeral";
@@ -3195,8 +3195,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3195
3195
  type: "image";
3196
3196
  source: {
3197
3197
  type: "base64";
3198
- data: string;
3199
3198
  media_type: "image/jpeg";
3199
+ data: string;
3200
3200
  };
3201
3201
  cache_control?: {
3202
3202
  type: "ephemeral";
@@ -3290,8 +3290,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3290
3290
  type: "image";
3291
3291
  source: {
3292
3292
  type: "base64";
3293
- data: string;
3294
3293
  media_type: "image/jpeg";
3294
+ data: string;
3295
3295
  };
3296
3296
  cache_control?: {
3297
3297
  type: "ephemeral";
@@ -3392,8 +3392,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3392
3392
  type: "image";
3393
3393
  source: {
3394
3394
  type: "base64";
3395
- data: string;
3396
3395
  media_type: "image/jpeg";
3396
+ data: string;
3397
3397
  };
3398
3398
  cache_control?: {
3399
3399
  type: "ephemeral";
@@ -3468,13 +3468,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3468
3468
  }, "strip", z.ZodTypeAny, {
3469
3469
  type: "ack";
3470
3470
  success: boolean;
3471
- error?: string | undefined;
3472
3471
  txid?: number | undefined;
3472
+ error?: string | undefined;
3473
3473
  }, {
3474
3474
  type: "ack";
3475
3475
  success: boolean;
3476
- error?: string | undefined;
3477
3476
  txid?: number | undefined;
3477
+ error?: string | undefined;
3478
3478
  }>;
3479
3479
  action: z.ZodObject<{
3480
3480
  type: z.ZodLiteral<"action">;
@@ -3787,12 +3787,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3787
3787
  data: z.ZodString;
3788
3788
  }, "strip", z.ZodTypeAny, {
3789
3789
  type: "base64";
3790
- data: string;
3791
3790
  media_type: "image/jpeg";
3791
+ data: string;
3792
3792
  }, {
3793
3793
  type: "base64";
3794
- data: string;
3795
3794
  media_type: "image/jpeg";
3795
+ data: string;
3796
3796
  }>;
3797
3797
  cache_control: z.ZodOptional<z.ZodObject<{
3798
3798
  type: z.ZodLiteral<"ephemeral">;
@@ -3805,8 +3805,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3805
3805
  type: "image";
3806
3806
  source: {
3807
3807
  type: "base64";
3808
- data: string;
3809
3808
  media_type: "image/jpeg";
3809
+ data: string;
3810
3810
  };
3811
3811
  cache_control?: {
3812
3812
  type: "ephemeral";
@@ -3815,8 +3815,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3815
3815
  type: "image";
3816
3816
  source: {
3817
3817
  type: "base64";
3818
- data: string;
3819
3818
  media_type: "image/jpeg";
3819
+ data: string;
3820
3820
  };
3821
3821
  cache_control?: {
3822
3822
  type: "ephemeral";
@@ -3848,8 +3848,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3848
3848
  type: "image";
3849
3849
  source: {
3850
3850
  type: "base64";
3851
- data: string;
3852
3851
  media_type: "image/jpeg";
3852
+ data: string;
3853
3853
  };
3854
3854
  cache_control?: {
3855
3855
  type: "ephemeral";
@@ -3882,8 +3882,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3882
3882
  type: "image";
3883
3883
  source: {
3884
3884
  type: "base64";
3885
- data: string;
3886
3885
  media_type: "image/jpeg";
3886
+ data: string;
3887
3887
  };
3888
3888
  cache_control?: {
3889
3889
  type: "ephemeral";
@@ -3946,8 +3946,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3946
3946
  type: "image";
3947
3947
  source: {
3948
3948
  type: "base64";
3949
- data: string;
3950
3949
  media_type: "image/jpeg";
3950
+ data: string;
3951
3951
  };
3952
3952
  cache_control?: {
3953
3953
  type: "ephemeral";
@@ -4010,8 +4010,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4010
4010
  type: "image";
4011
4011
  source: {
4012
4012
  type: "base64";
4013
- data: string;
4014
4013
  media_type: "image/jpeg";
4014
+ data: string;
4015
4015
  };
4016
4016
  cache_control?: {
4017
4017
  type: "ephemeral";
@@ -4111,8 +4111,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4111
4111
  type: "image";
4112
4112
  source: {
4113
4113
  type: "base64";
4114
- data: string;
4115
4114
  media_type: "image/jpeg";
4115
+ data: string;
4116
4116
  };
4117
4117
  cache_control?: {
4118
4118
  type: "ephemeral";
@@ -4195,8 +4195,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4195
4195
  type: "image";
4196
4196
  source: {
4197
4197
  type: "base64";
4198
- data: string;
4199
4198
  media_type: "image/jpeg";
4199
+ data: string;
4200
4200
  };
4201
4201
  cache_control?: {
4202
4202
  type: "ephemeral";
@@ -4289,12 +4289,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4289
4289
  resetFileVersions: z.ZodBoolean;
4290
4290
  }, "strip", z.ZodTypeAny, {
4291
4291
  type: "tool-call";
4292
+ userInputId: string;
4292
4293
  data: {
4293
4294
  name: string;
4294
4295
  id: string;
4295
4296
  input: Record<string, any>;
4296
4297
  };
4297
- userInputId: string;
4298
4298
  changesAlreadyApplied: {
4299
4299
  type: "patch" | "file";
4300
4300
  path: string;
@@ -4313,12 +4313,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4313
4313
  resetFileVersions: boolean;
4314
4314
  }, {
4315
4315
  type: "tool-call";
4316
+ userInputId: string;
4316
4317
  data: {
4317
4318
  name: string;
4318
4319
  id: string;
4319
4320
  input: Record<string, any>;
4320
4321
  };
4321
- userInputId: string;
4322
4322
  changesAlreadyApplied: {
4323
4323
  type: "patch" | "file";
4324
4324
  path: string;
@@ -4529,8 +4529,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4529
4529
  type: "image";
4530
4530
  source: {
4531
4531
  type: "base64";
4532
- data: string;
4533
4532
  media_type: "image/jpeg";
4533
+ data: string;
4534
4534
  };
4535
4535
  cache_control?: {
4536
4536
  type: "ephemeral";
@@ -4565,12 +4565,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4565
4565
  filePaths: string[];
4566
4566
  } | {
4567
4567
  type: "tool-call";
4568
+ userInputId: string;
4568
4569
  data: {
4569
4570
  name: string;
4570
4571
  id: string;
4571
4572
  input: Record<string, any>;
4572
4573
  };
4573
- userInputId: string;
4574
4574
  changesAlreadyApplied: {
4575
4575
  type: "patch" | "file";
4576
4576
  path: string;
@@ -4703,8 +4703,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4703
4703
  type: "image";
4704
4704
  source: {
4705
4705
  type: "base64";
4706
- data: string;
4707
4706
  media_type: "image/jpeg";
4707
+ data: string;
4708
4708
  };
4709
4709
  cache_control?: {
4710
4710
  type: "ephemeral";
@@ -4739,12 +4739,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4739
4739
  filePaths: string[];
4740
4740
  } | {
4741
4741
  type: "tool-call";
4742
+ userInputId: string;
4742
4743
  data: {
4743
4744
  name: string;
4744
4745
  id: string;
4745
4746
  input: Record<string, any>;
4746
4747
  };
4747
- userInputId: string;
4748
4748
  changesAlreadyApplied: {
4749
4749
  type: "patch" | "file";
4750
4750
  path: string;
@@ -4786,13 +4786,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4786
4786
  }, "strip", z.ZodTypeAny, {
4787
4787
  type: "ack";
4788
4788
  success: boolean;
4789
- error?: string | undefined;
4790
4789
  txid?: number | undefined;
4790
+ error?: string | undefined;
4791
4791
  }, {
4792
4792
  type: "ack";
4793
4793
  success: boolean;
4794
- error?: string | undefined;
4795
4794
  txid?: number | undefined;
4795
+ error?: string | undefined;
4796
4796
  }>, z.ZodObject<{
4797
4797
  type: z.ZodLiteral<"action">;
4798
4798
  data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -5104,12 +5104,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5104
5104
  data: z.ZodString;
5105
5105
  }, "strip", z.ZodTypeAny, {
5106
5106
  type: "base64";
5107
- data: string;
5108
5107
  media_type: "image/jpeg";
5108
+ data: string;
5109
5109
  }, {
5110
5110
  type: "base64";
5111
- data: string;
5112
5111
  media_type: "image/jpeg";
5112
+ data: string;
5113
5113
  }>;
5114
5114
  cache_control: z.ZodOptional<z.ZodObject<{
5115
5115
  type: z.ZodLiteral<"ephemeral">;
@@ -5122,8 +5122,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5122
5122
  type: "image";
5123
5123
  source: {
5124
5124
  type: "base64";
5125
- data: string;
5126
5125
  media_type: "image/jpeg";
5126
+ data: string;
5127
5127
  };
5128
5128
  cache_control?: {
5129
5129
  type: "ephemeral";
@@ -5132,8 +5132,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5132
5132
  type: "image";
5133
5133
  source: {
5134
5134
  type: "base64";
5135
- data: string;
5136
5135
  media_type: "image/jpeg";
5136
+ data: string;
5137
5137
  };
5138
5138
  cache_control?: {
5139
5139
  type: "ephemeral";
@@ -5165,8 +5165,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5165
5165
  type: "image";
5166
5166
  source: {
5167
5167
  type: "base64";
5168
- data: string;
5169
5168
  media_type: "image/jpeg";
5169
+ data: string;
5170
5170
  };
5171
5171
  cache_control?: {
5172
5172
  type: "ephemeral";
@@ -5199,8 +5199,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5199
5199
  type: "image";
5200
5200
  source: {
5201
5201
  type: "base64";
5202
- data: string;
5203
5202
  media_type: "image/jpeg";
5203
+ data: string;
5204
5204
  };
5205
5205
  cache_control?: {
5206
5206
  type: "ephemeral";
@@ -5263,8 +5263,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5263
5263
  type: "image";
5264
5264
  source: {
5265
5265
  type: "base64";
5266
- data: string;
5267
5266
  media_type: "image/jpeg";
5267
+ data: string;
5268
5268
  };
5269
5269
  cache_control?: {
5270
5270
  type: "ephemeral";
@@ -5327,8 +5327,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5327
5327
  type: "image";
5328
5328
  source: {
5329
5329
  type: "base64";
5330
- data: string;
5331
5330
  media_type: "image/jpeg";
5331
+ data: string;
5332
5332
  };
5333
5333
  cache_control?: {
5334
5334
  type: "ephemeral";
@@ -5428,8 +5428,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5428
5428
  type: "image";
5429
5429
  source: {
5430
5430
  type: "base64";
5431
- data: string;
5432
5431
  media_type: "image/jpeg";
5432
+ data: string;
5433
5433
  };
5434
5434
  cache_control?: {
5435
5435
  type: "ephemeral";
@@ -5512,8 +5512,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5512
5512
  type: "image";
5513
5513
  source: {
5514
5514
  type: "base64";
5515
- data: string;
5516
5515
  media_type: "image/jpeg";
5516
+ data: string;
5517
5517
  };
5518
5518
  cache_control?: {
5519
5519
  type: "ephemeral";
@@ -5606,12 +5606,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5606
5606
  resetFileVersions: z.ZodBoolean;
5607
5607
  }, "strip", z.ZodTypeAny, {
5608
5608
  type: "tool-call";
5609
+ userInputId: string;
5609
5610
  data: {
5610
5611
  name: string;
5611
5612
  id: string;
5612
5613
  input: Record<string, any>;
5613
5614
  };
5614
- userInputId: string;
5615
5615
  changesAlreadyApplied: {
5616
5616
  type: "patch" | "file";
5617
5617
  path: string;
@@ -5630,12 +5630,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5630
5630
  resetFileVersions: boolean;
5631
5631
  }, {
5632
5632
  type: "tool-call";
5633
+ userInputId: string;
5633
5634
  data: {
5634
5635
  name: string;
5635
5636
  id: string;
5636
5637
  input: Record<string, any>;
5637
5638
  };
5638
- userInputId: string;
5639
5639
  changesAlreadyApplied: {
5640
5640
  type: "patch" | "file";
5641
5641
  path: string;
@@ -5846,8 +5846,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5846
5846
  type: "image";
5847
5847
  source: {
5848
5848
  type: "base64";
5849
- data: string;
5850
5849
  media_type: "image/jpeg";
5850
+ data: string;
5851
5851
  };
5852
5852
  cache_control?: {
5853
5853
  type: "ephemeral";
@@ -5882,12 +5882,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5882
5882
  filePaths: string[];
5883
5883
  } | {
5884
5884
  type: "tool-call";
5885
+ userInputId: string;
5885
5886
  data: {
5886
5887
  name: string;
5887
5888
  id: string;
5888
5889
  input: Record<string, any>;
5889
5890
  };
5890
- userInputId: string;
5891
5891
  changesAlreadyApplied: {
5892
5892
  type: "patch" | "file";
5893
5893
  path: string;
@@ -6020,8 +6020,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
6020
6020
  type: "image";
6021
6021
  source: {
6022
6022
  type: "base64";
6023
- data: string;
6024
6023
  media_type: "image/jpeg";
6024
+ data: string;
6025
6025
  };
6026
6026
  cache_control?: {
6027
6027
  type: "ephemeral";
@@ -6056,12 +6056,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
6056
6056
  filePaths: string[];
6057
6057
  } | {
6058
6058
  type: "tool-call";
6059
+ userInputId: string;
6059
6060
  data: {
6060
6061
  name: string;
6061
6062
  id: string;
6062
6063
  input: Record<string, any>;
6063
6064
  };
6064
- userInputId: string;
6065
6065
  changesAlreadyApplied: {
6066
6066
  type: "patch" | "file";
6067
6067
  path: string;