codebuff 1.0.163 → 1.0.164

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
- content: string;
125
124
  type: "tool_result";
125
+ content: string;
126
126
  tool_use_id: string;
127
127
  cache_control?: {
128
128
  type: "ephemeral";
129
129
  } | undefined;
130
130
  }, {
131
- content: string;
132
131
  type: "tool_result";
132
+ content: string;
133
133
  tool_use_id: string;
134
134
  cache_control?: {
135
135
  type: "ephemeral";
@@ -193,8 +193,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
193
193
  type: "ephemeral";
194
194
  } | undefined;
195
195
  } | {
196
- content: string;
197
196
  type: "tool_result";
197
+ content: string;
198
198
  tool_use_id: string;
199
199
  cache_control?: {
200
200
  type: "ephemeral";
@@ -227,8 +227,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
227
227
  type: "ephemeral";
228
228
  } | undefined;
229
229
  } | {
230
- content: string;
231
230
  type: "tool_result";
231
+ content: string;
232
232
  tool_use_id: string;
233
233
  cache_control?: {
234
234
  type: "ephemeral";
@@ -360,19 +360,24 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
360
360
  filePath: z.ZodString;
361
361
  content: z.ZodString;
362
362
  }, "strip", z.ZodTypeAny, {
363
- content: string;
364
- type: "file" | "patch";
363
+ type: "patch" | "file";
365
364
  filePath: string;
366
- }, {
367
365
  content: string;
368
- type: "file" | "patch";
366
+ }, {
367
+ type: "patch" | "file";
369
368
  filePath: string;
369
+ content: string;
370
370
  }>, "many">;
371
371
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
372
372
  }, "strip", z.ZodTypeAny, {
373
373
  type: "user-input";
374
- fingerprintId: string;
375
374
  userInputId: string;
375
+ changesAlreadyApplied: {
376
+ type: "patch" | "file";
377
+ filePath: string;
378
+ content: string;
379
+ }[];
380
+ fingerprintId: string;
376
381
  messages: {
377
382
  content: string | ({
378
383
  type: "text";
@@ -389,8 +394,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
389
394
  type: "ephemeral";
390
395
  } | undefined;
391
396
  } | {
392
- content: string;
393
397
  type: "tool_result";
398
+ content: string;
394
399
  tool_use_id: string;
395
400
  cache_control?: {
396
401
  type: "ephemeral";
@@ -435,17 +440,17 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
435
440
  }[][];
436
441
  userKnowledgeFiles?: Record<string, string> | undefined;
437
442
  };
438
- changesAlreadyApplied: {
439
- content: string;
440
- type: "file" | "patch";
441
- filePath: string;
442
- }[];
443
443
  costMode: "max" | "lite" | "normal";
444
444
  authToken?: string | undefined;
445
445
  }, {
446
446
  type: "user-input";
447
- fingerprintId: string;
448
447
  userInputId: string;
448
+ changesAlreadyApplied: {
449
+ type: "patch" | "file";
450
+ filePath: string;
451
+ content: string;
452
+ }[];
453
+ fingerprintId: string;
449
454
  messages: {
450
455
  content: string | ({
451
456
  type: "text";
@@ -462,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
462
467
  type: "ephemeral";
463
468
  } | undefined;
464
469
  } | {
465
- content: string;
466
470
  type: "tool_result";
471
+ content: string;
467
472
  tool_use_id: string;
468
473
  cache_control?: {
469
474
  type: "ephemeral";
@@ -508,11 +513,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
508
513
  }[][];
509
514
  userKnowledgeFiles?: Record<string, string> | undefined;
510
515
  };
511
- changesAlreadyApplied: {
512
- content: string;
513
- type: "file" | "patch";
514
- filePath: string;
515
- }[];
516
516
  authToken?: string | undefined;
517
517
  costMode?: "max" | "lite" | "normal" | undefined;
518
518
  }>, z.ZodObject<{
@@ -711,48 +711,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
711
711
  type: "usage";
712
712
  fingerprintId: string;
713
713
  authToken?: string | undefined;
714
- }>, z.ZodObject<{
715
- type: z.ZodLiteral<"login-code-request">;
716
- fingerprintId: z.ZodString;
717
- referralCode: z.ZodOptional<z.ZodString>;
718
- }, "strip", z.ZodTypeAny, {
719
- type: "login-code-request";
720
- fingerprintId: string;
721
- referralCode?: string | undefined;
722
- }, {
723
- type: "login-code-request";
724
- fingerprintId: string;
725
- referralCode?: string | undefined;
726
- }>, z.ZodObject<{
727
- type: z.ZodLiteral<"login-status-request">;
728
- fingerprintId: z.ZodString;
729
- fingerprintHash: z.ZodString;
730
- }, "strip", z.ZodTypeAny, {
731
- type: "login-status-request";
732
- fingerprintId: string;
733
- fingerprintHash: string;
734
- }, {
735
- type: "login-status-request";
736
- fingerprintId: string;
737
- fingerprintHash: string;
738
- }>, z.ZodObject<{
739
- type: z.ZodLiteral<"clear-auth-token">;
740
- authToken: z.ZodString;
741
- fingerprintId: z.ZodString;
742
- userId: z.ZodString;
743
- fingerprintHash: z.ZodString;
744
- }, "strip", z.ZodTypeAny, {
745
- type: "clear-auth-token";
746
- authToken: string;
747
- fingerprintId: string;
748
- fingerprintHash: string;
749
- userId: string;
750
- }, {
751
- type: "clear-auth-token";
752
- authToken: string;
753
- fingerprintId: string;
754
- fingerprintHash: string;
755
- userId: string;
756
714
  }>, z.ZodObject<{
757
715
  type: z.ZodLiteral<"generate-commit-message">;
758
716
  fingerprintId: z.ZodString;
@@ -773,8 +731,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
773
731
  type: "action";
774
732
  data: {
775
733
  type: "user-input";
776
- fingerprintId: string;
777
734
  userInputId: string;
735
+ changesAlreadyApplied: {
736
+ type: "patch" | "file";
737
+ filePath: string;
738
+ content: string;
739
+ }[];
740
+ fingerprintId: string;
778
741
  messages: {
779
742
  content: string | ({
780
743
  type: "text";
@@ -791,8 +754,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
791
754
  type: "ephemeral";
792
755
  } | undefined;
793
756
  } | {
794
- content: string;
795
757
  type: "tool_result";
758
+ content: string;
796
759
  tool_use_id: string;
797
760
  cache_control?: {
798
761
  type: "ephemeral";
@@ -837,11 +800,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
837
800
  }[][];
838
801
  userKnowledgeFiles?: Record<string, string> | undefined;
839
802
  };
840
- changesAlreadyApplied: {
841
- content: string;
842
- type: "file" | "patch";
843
- filePath: string;
844
- }[];
845
803
  costMode: "max" | "lite" | "normal";
846
804
  authToken?: string | undefined;
847
805
  } | {
@@ -882,20 +840,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
882
840
  type: "usage";
883
841
  fingerprintId: string;
884
842
  authToken?: string | undefined;
885
- } | {
886
- type: "login-code-request";
887
- fingerprintId: string;
888
- referralCode?: string | undefined;
889
- } | {
890
- type: "login-status-request";
891
- fingerprintId: string;
892
- fingerprintHash: string;
893
- } | {
894
- type: "clear-auth-token";
895
- authToken: string;
896
- fingerprintId: string;
897
- fingerprintHash: string;
898
- userId: string;
899
843
  } | {
900
844
  type: "generate-commit-message";
901
845
  fingerprintId: string;
@@ -907,8 +851,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
907
851
  type: "action";
908
852
  data: {
909
853
  type: "user-input";
910
- fingerprintId: string;
911
854
  userInputId: string;
855
+ changesAlreadyApplied: {
856
+ type: "patch" | "file";
857
+ filePath: string;
858
+ content: string;
859
+ }[];
860
+ fingerprintId: string;
912
861
  messages: {
913
862
  content: string | ({
914
863
  type: "text";
@@ -925,8 +874,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
925
874
  type: "ephemeral";
926
875
  } | undefined;
927
876
  } | {
928
- content: string;
929
877
  type: "tool_result";
878
+ content: string;
930
879
  tool_use_id: string;
931
880
  cache_control?: {
932
881
  type: "ephemeral";
@@ -971,11 +920,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
971
920
  }[][];
972
921
  userKnowledgeFiles?: Record<string, string> | undefined;
973
922
  };
974
- changesAlreadyApplied: {
975
- content: string;
976
- type: "file" | "patch";
977
- filePath: string;
978
- }[];
979
923
  authToken?: string | undefined;
980
924
  costMode?: "max" | "lite" | "normal" | undefined;
981
925
  } | {
@@ -1016,20 +960,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1016
960
  type: "usage";
1017
961
  fingerprintId: string;
1018
962
  authToken?: string | undefined;
1019
- } | {
1020
- type: "login-code-request";
1021
- fingerprintId: string;
1022
- referralCode?: string | undefined;
1023
- } | {
1024
- type: "login-status-request";
1025
- fingerprintId: string;
1026
- fingerprintHash: string;
1027
- } | {
1028
- type: "clear-auth-token";
1029
- authToken: string;
1030
- fingerprintId: string;
1031
- fingerprintHash: string;
1032
- userId: string;
1033
963
  } | {
1034
964
  type: "generate-commit-message";
1035
965
  fingerprintId: string;
@@ -1156,15 +1086,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1156
1086
  type: "ephemeral";
1157
1087
  }>>;
1158
1088
  }, "strip", z.ZodTypeAny, {
1159
- content: string;
1160
1089
  type: "tool_result";
1090
+ content: string;
1161
1091
  tool_use_id: string;
1162
1092
  cache_control?: {
1163
1093
  type: "ephemeral";
1164
1094
  } | undefined;
1165
1095
  }, {
1166
- content: string;
1167
1096
  type: "tool_result";
1097
+ content: string;
1168
1098
  tool_use_id: string;
1169
1099
  cache_control?: {
1170
1100
  type: "ephemeral";
@@ -1228,8 +1158,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1228
1158
  type: "ephemeral";
1229
1159
  } | undefined;
1230
1160
  } | {
1231
- content: string;
1232
1161
  type: "tool_result";
1162
+ content: string;
1233
1163
  tool_use_id: string;
1234
1164
  cache_control?: {
1235
1165
  type: "ephemeral";
@@ -1262,8 +1192,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1262
1192
  type: "ephemeral";
1263
1193
  } | undefined;
1264
1194
  } | {
1265
- content: string;
1266
1195
  type: "tool_result";
1196
+ content: string;
1267
1197
  tool_use_id: string;
1268
1198
  cache_control?: {
1269
1199
  type: "ephemeral";
@@ -1395,19 +1325,24 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1395
1325
  filePath: z.ZodString;
1396
1326
  content: z.ZodString;
1397
1327
  }, "strip", z.ZodTypeAny, {
1398
- content: string;
1399
- type: "file" | "patch";
1328
+ type: "patch" | "file";
1400
1329
  filePath: string;
1401
- }, {
1402
1330
  content: string;
1403
- type: "file" | "patch";
1331
+ }, {
1332
+ type: "patch" | "file";
1404
1333
  filePath: string;
1334
+ content: string;
1405
1335
  }>, "many">;
1406
1336
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
1407
1337
  }, "strip", z.ZodTypeAny, {
1408
1338
  type: "user-input";
1409
- fingerprintId: string;
1410
1339
  userInputId: string;
1340
+ changesAlreadyApplied: {
1341
+ type: "patch" | "file";
1342
+ filePath: string;
1343
+ content: string;
1344
+ }[];
1345
+ fingerprintId: string;
1411
1346
  messages: {
1412
1347
  content: string | ({
1413
1348
  type: "text";
@@ -1424,8 +1359,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1424
1359
  type: "ephemeral";
1425
1360
  } | undefined;
1426
1361
  } | {
1427
- content: string;
1428
1362
  type: "tool_result";
1363
+ content: string;
1429
1364
  tool_use_id: string;
1430
1365
  cache_control?: {
1431
1366
  type: "ephemeral";
@@ -1470,17 +1405,17 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1470
1405
  }[][];
1471
1406
  userKnowledgeFiles?: Record<string, string> | undefined;
1472
1407
  };
1473
- changesAlreadyApplied: {
1474
- content: string;
1475
- type: "file" | "patch";
1476
- filePath: string;
1477
- }[];
1478
1408
  costMode: "max" | "lite" | "normal";
1479
1409
  authToken?: string | undefined;
1480
1410
  }, {
1481
1411
  type: "user-input";
1482
- fingerprintId: string;
1483
1412
  userInputId: string;
1413
+ changesAlreadyApplied: {
1414
+ type: "patch" | "file";
1415
+ filePath: string;
1416
+ content: string;
1417
+ }[];
1418
+ fingerprintId: string;
1484
1419
  messages: {
1485
1420
  content: string | ({
1486
1421
  type: "text";
@@ -1497,8 +1432,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1497
1432
  type: "ephemeral";
1498
1433
  } | undefined;
1499
1434
  } | {
1500
- content: string;
1501
1435
  type: "tool_result";
1436
+ content: string;
1502
1437
  tool_use_id: string;
1503
1438
  cache_control?: {
1504
1439
  type: "ephemeral";
@@ -1543,11 +1478,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1543
1478
  }[][];
1544
1479
  userKnowledgeFiles?: Record<string, string> | undefined;
1545
1480
  };
1546
- changesAlreadyApplied: {
1547
- content: string;
1548
- type: "file" | "patch";
1549
- filePath: string;
1550
- }[];
1551
1481
  authToken?: string | undefined;
1552
1482
  costMode?: "max" | "lite" | "normal" | undefined;
1553
1483
  }>, z.ZodObject<{
@@ -1746,48 +1676,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1746
1676
  type: "usage";
1747
1677
  fingerprintId: string;
1748
1678
  authToken?: string | undefined;
1749
- }>, z.ZodObject<{
1750
- type: z.ZodLiteral<"login-code-request">;
1751
- fingerprintId: z.ZodString;
1752
- referralCode: z.ZodOptional<z.ZodString>;
1753
- }, "strip", z.ZodTypeAny, {
1754
- type: "login-code-request";
1755
- fingerprintId: string;
1756
- referralCode?: string | undefined;
1757
- }, {
1758
- type: "login-code-request";
1759
- fingerprintId: string;
1760
- referralCode?: string | undefined;
1761
- }>, z.ZodObject<{
1762
- type: z.ZodLiteral<"login-status-request">;
1763
- fingerprintId: z.ZodString;
1764
- fingerprintHash: z.ZodString;
1765
- }, "strip", z.ZodTypeAny, {
1766
- type: "login-status-request";
1767
- fingerprintId: string;
1768
- fingerprintHash: string;
1769
- }, {
1770
- type: "login-status-request";
1771
- fingerprintId: string;
1772
- fingerprintHash: string;
1773
- }>, z.ZodObject<{
1774
- type: z.ZodLiteral<"clear-auth-token">;
1775
- authToken: z.ZodString;
1776
- fingerprintId: z.ZodString;
1777
- userId: z.ZodString;
1778
- fingerprintHash: z.ZodString;
1779
- }, "strip", z.ZodTypeAny, {
1780
- type: "clear-auth-token";
1781
- authToken: string;
1782
- fingerprintId: string;
1783
- fingerprintHash: string;
1784
- userId: string;
1785
- }, {
1786
- type: "clear-auth-token";
1787
- authToken: string;
1788
- fingerprintId: string;
1789
- fingerprintHash: string;
1790
- userId: string;
1791
1679
  }>, z.ZodObject<{
1792
1680
  type: z.ZodLiteral<"generate-commit-message">;
1793
1681
  fingerprintId: z.ZodString;
@@ -1808,8 +1696,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1808
1696
  type: "action";
1809
1697
  data: {
1810
1698
  type: "user-input";
1811
- fingerprintId: string;
1812
1699
  userInputId: string;
1700
+ changesAlreadyApplied: {
1701
+ type: "patch" | "file";
1702
+ filePath: string;
1703
+ content: string;
1704
+ }[];
1705
+ fingerprintId: string;
1813
1706
  messages: {
1814
1707
  content: string | ({
1815
1708
  type: "text";
@@ -1826,8 +1719,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1826
1719
  type: "ephemeral";
1827
1720
  } | undefined;
1828
1721
  } | {
1829
- content: string;
1830
1722
  type: "tool_result";
1723
+ content: string;
1831
1724
  tool_use_id: string;
1832
1725
  cache_control?: {
1833
1726
  type: "ephemeral";
@@ -1872,11 +1765,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1872
1765
  }[][];
1873
1766
  userKnowledgeFiles?: Record<string, string> | undefined;
1874
1767
  };
1875
- changesAlreadyApplied: {
1876
- content: string;
1877
- type: "file" | "patch";
1878
- filePath: string;
1879
- }[];
1880
1768
  costMode: "max" | "lite" | "normal";
1881
1769
  authToken?: string | undefined;
1882
1770
  } | {
@@ -1917,20 +1805,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1917
1805
  type: "usage";
1918
1806
  fingerprintId: string;
1919
1807
  authToken?: string | undefined;
1920
- } | {
1921
- type: "login-code-request";
1922
- fingerprintId: string;
1923
- referralCode?: string | undefined;
1924
- } | {
1925
- type: "login-status-request";
1926
- fingerprintId: string;
1927
- fingerprintHash: string;
1928
- } | {
1929
- type: "clear-auth-token";
1930
- authToken: string;
1931
- fingerprintId: string;
1932
- fingerprintHash: string;
1933
- userId: string;
1934
1808
  } | {
1935
1809
  type: "generate-commit-message";
1936
1810
  fingerprintId: string;
@@ -1942,8 +1816,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1942
1816
  type: "action";
1943
1817
  data: {
1944
1818
  type: "user-input";
1945
- fingerprintId: string;
1946
1819
  userInputId: string;
1820
+ changesAlreadyApplied: {
1821
+ type: "patch" | "file";
1822
+ filePath: string;
1823
+ content: string;
1824
+ }[];
1825
+ fingerprintId: string;
1947
1826
  messages: {
1948
1827
  content: string | ({
1949
1828
  type: "text";
@@ -1960,8 +1839,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1960
1839
  type: "ephemeral";
1961
1840
  } | undefined;
1962
1841
  } | {
1963
- content: string;
1964
1842
  type: "tool_result";
1843
+ content: string;
1965
1844
  tool_use_id: string;
1966
1845
  cache_control?: {
1967
1846
  type: "ephemeral";
@@ -2006,11 +1885,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2006
1885
  }[][];
2007
1886
  userKnowledgeFiles?: Record<string, string> | undefined;
2008
1887
  };
2009
- changesAlreadyApplied: {
2010
- content: string;
2011
- type: "file" | "patch";
2012
- filePath: string;
2013
- }[];
2014
1888
  authToken?: string | undefined;
2015
1889
  costMode?: "max" | "lite" | "normal" | undefined;
2016
1890
  } | {
@@ -2051,20 +1925,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2051
1925
  type: "usage";
2052
1926
  fingerprintId: string;
2053
1927
  authToken?: string | undefined;
2054
- } | {
2055
- type: "login-code-request";
2056
- fingerprintId: string;
2057
- referralCode?: string | undefined;
2058
- } | {
2059
- type: "login-status-request";
2060
- fingerprintId: string;
2061
- fingerprintHash: string;
2062
- } | {
2063
- type: "clear-auth-token";
2064
- authToken: string;
2065
- fingerprintId: string;
2066
- fingerprintHash: string;
2067
- userId: string;
2068
1928
  } | {
2069
1929
  type: "generate-commit-message";
2070
1930
  fingerprintId: string;
@@ -2084,13 +1944,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2084
1944
  }, "strip", z.ZodTypeAny, {
2085
1945
  type: "ack";
2086
1946
  success: boolean;
2087
- error?: string | undefined;
2088
1947
  txid?: number | undefined;
1948
+ error?: string | undefined;
2089
1949
  }, {
2090
1950
  type: "ack";
2091
1951
  success: boolean;
2092
- error?: string | undefined;
2093
1952
  txid?: number | undefined;
1953
+ error?: string | undefined;
2094
1954
  }>;
2095
1955
  action: z.ZodObject<{
2096
1956
  type: z.ZodLiteral<"action">;
@@ -2124,26 +1984,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2124
1984
  filePath: z.ZodString;
2125
1985
  content: z.ZodString;
2126
1986
  }, "strip", z.ZodTypeAny, {
2127
- content: string;
2128
- type: "file" | "patch";
1987
+ type: "patch" | "file";
2129
1988
  filePath: string;
2130
- }, {
2131
1989
  content: string;
2132
- type: "file" | "patch";
1990
+ }, {
1991
+ type: "patch" | "file";
2133
1992
  filePath: string;
1993
+ content: string;
2134
1994
  }>, "many">;
2135
1995
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2136
1996
  type: z.ZodEnum<["patch", "file"]>;
2137
1997
  filePath: z.ZodString;
2138
1998
  content: z.ZodString;
2139
1999
  }, "strip", z.ZodTypeAny, {
2140
- content: string;
2141
- type: "file" | "patch";
2000
+ type: "patch" | "file";
2142
2001
  filePath: string;
2143
- }, {
2144
2002
  content: string;
2145
- type: "file" | "patch";
2003
+ }, {
2004
+ type: "patch" | "file";
2146
2005
  filePath: string;
2006
+ content: string;
2147
2007
  }>, "many">;
2148
2008
  addedFileVersions: z.ZodArray<z.ZodObject<{
2149
2009
  path: z.ZodString;
@@ -2166,16 +2026,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2166
2026
  }>, "strip", z.ZodTypeAny, {
2167
2027
  type: "response-complete";
2168
2028
  userInputId: string;
2169
- changesAlreadyApplied: {
2170
- content: string;
2171
- type: "file" | "patch";
2172
- filePath: string;
2173
- }[];
2174
2029
  response: string;
2175
2030
  changes: {
2031
+ type: "patch" | "file";
2032
+ filePath: string;
2176
2033
  content: string;
2177
- type: "file" | "patch";
2034
+ }[];
2035
+ changesAlreadyApplied: {
2036
+ type: "patch" | "file";
2178
2037
  filePath: string;
2038
+ content: string;
2179
2039
  }[];
2180
2040
  addedFileVersions: {
2181
2041
  path: string;
@@ -2191,16 +2051,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2191
2051
  }, {
2192
2052
  type: "response-complete";
2193
2053
  userInputId: string;
2194
- changesAlreadyApplied: {
2195
- content: string;
2196
- type: "file" | "patch";
2197
- filePath: string;
2198
- }[];
2199
2054
  response: string;
2200
2055
  changes: {
2056
+ type: "patch" | "file";
2057
+ filePath: string;
2201
2058
  content: string;
2202
- type: "file" | "patch";
2059
+ }[];
2060
+ changesAlreadyApplied: {
2061
+ type: "patch" | "file";
2203
2062
  filePath: string;
2063
+ content: string;
2204
2064
  }[];
2205
2065
  addedFileVersions: {
2206
2066
  path: string;
@@ -2244,26 +2104,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2244
2104
  filePath: z.ZodString;
2245
2105
  content: z.ZodString;
2246
2106
  }, "strip", z.ZodTypeAny, {
2247
- content: string;
2248
- type: "file" | "patch";
2107
+ type: "patch" | "file";
2249
2108
  filePath: string;
2250
- }, {
2251
2109
  content: string;
2252
- type: "file" | "patch";
2110
+ }, {
2111
+ type: "patch" | "file";
2253
2112
  filePath: string;
2113
+ content: string;
2254
2114
  }>, "many">;
2255
2115
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2256
2116
  type: z.ZodEnum<["patch", "file"]>;
2257
2117
  filePath: z.ZodString;
2258
2118
  content: z.ZodString;
2259
2119
  }, "strip", z.ZodTypeAny, {
2260
- content: string;
2261
- type: "file" | "patch";
2120
+ type: "patch" | "file";
2262
2121
  filePath: string;
2263
- }, {
2264
2122
  content: string;
2265
- type: "file" | "patch";
2123
+ }, {
2124
+ type: "patch" | "file";
2266
2125
  filePath: string;
2126
+ content: string;
2267
2127
  }>, "many">;
2268
2128
  addedFileVersions: z.ZodArray<z.ZodObject<{
2269
2129
  path: z.ZodString;
@@ -2279,51 +2139,51 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2279
2139
  }, "strip", z.ZodTypeAny, {
2280
2140
  type: "tool-call";
2281
2141
  userInputId: string;
2282
- data: {
2283
- name: string;
2284
- id: string;
2285
- input: Record<string, any>;
2286
- };
2287
- changesAlreadyApplied: {
2288
- content: string;
2289
- type: "file" | "patch";
2290
- filePath: string;
2291
- }[];
2292
2142
  response: string;
2293
2143
  changes: {
2144
+ type: "patch" | "file";
2145
+ filePath: string;
2294
2146
  content: string;
2295
- type: "file" | "patch";
2147
+ }[];
2148
+ changesAlreadyApplied: {
2149
+ type: "patch" | "file";
2296
2150
  filePath: string;
2151
+ content: string;
2297
2152
  }[];
2298
2153
  addedFileVersions: {
2299
2154
  path: string;
2300
2155
  content: string;
2301
2156
  }[];
2302
2157
  resetFileVersions: boolean;
2303
- }, {
2304
- type: "tool-call";
2305
- userInputId: string;
2306
2158
  data: {
2307
2159
  name: string;
2308
2160
  id: string;
2309
2161
  input: Record<string, any>;
2310
2162
  };
2311
- changesAlreadyApplied: {
2312
- content: string;
2313
- type: "file" | "patch";
2314
- filePath: string;
2315
- }[];
2163
+ }, {
2164
+ type: "tool-call";
2165
+ userInputId: string;
2316
2166
  response: string;
2317
2167
  changes: {
2168
+ type: "patch" | "file";
2169
+ filePath: string;
2318
2170
  content: string;
2319
- type: "file" | "patch";
2171
+ }[];
2172
+ changesAlreadyApplied: {
2173
+ type: "patch" | "file";
2320
2174
  filePath: string;
2175
+ content: string;
2321
2176
  }[];
2322
2177
  addedFileVersions: {
2323
2178
  path: string;
2324
2179
  content: string;
2325
2180
  }[];
2326
2181
  resetFileVersions: boolean;
2182
+ data: {
2183
+ name: string;
2184
+ id: string;
2185
+ input: Record<string, any>;
2186
+ };
2327
2187
  }>, z.ZodObject<{
2328
2188
  type: z.ZodLiteral<"terminal-command-result">;
2329
2189
  userInputId: z.ZodString;
@@ -2374,68 +2234,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2374
2234
  next_quota_reset: Date;
2375
2235
  session_credits_used: number;
2376
2236
  referralLink?: string | undefined;
2377
- }>, z.ZodObject<{
2378
- type: z.ZodLiteral<"auth-result">;
2379
- user: z.ZodOptional<z.ZodObject<{
2380
- id: z.ZodString;
2381
- email: z.ZodString;
2382
- name: z.ZodNullable<z.ZodString>;
2383
- authToken: z.ZodString;
2384
- fingerprintId: z.ZodString;
2385
- fingerprintHash: z.ZodString;
2386
- }, "strip", z.ZodTypeAny, {
2387
- email: string;
2388
- name: string | null;
2389
- id: string;
2390
- authToken: string;
2391
- fingerprintId: string;
2392
- fingerprintHash: string;
2393
- }, {
2394
- email: string;
2395
- name: string | null;
2396
- id: string;
2397
- authToken: string;
2398
- fingerprintId: string;
2399
- fingerprintHash: string;
2400
- }>>;
2401
- message: z.ZodString;
2402
- }, "strip", z.ZodTypeAny, {
2403
- message: string;
2404
- type: "auth-result";
2405
- user?: {
2406
- email: string;
2407
- name: string | null;
2408
- id: string;
2409
- authToken: string;
2410
- fingerprintId: string;
2411
- fingerprintHash: string;
2412
- } | undefined;
2413
- }, {
2414
- message: string;
2415
- type: "auth-result";
2416
- user?: {
2417
- email: string;
2418
- name: string | null;
2419
- id: string;
2420
- authToken: string;
2421
- fingerprintId: string;
2422
- fingerprintHash: string;
2423
- } | undefined;
2424
- }>, z.ZodObject<{
2425
- type: z.ZodLiteral<"login-code-response">;
2426
- fingerprintId: z.ZodString;
2427
- fingerprintHash: z.ZodString;
2428
- loginUrl: z.ZodString;
2429
- }, "strip", z.ZodTypeAny, {
2430
- type: "login-code-response";
2431
- fingerprintId: string;
2432
- fingerprintHash: string;
2433
- loginUrl: string;
2434
- }, {
2435
- type: "login-code-response";
2436
- fingerprintId: string;
2437
- fingerprintHash: string;
2438
- loginUrl: string;
2439
2237
  }>, z.ZodObject<{
2440
2238
  type: z.ZodLiteral<"usage-response">;
2441
2239
  usage: z.ZodNumber;
@@ -2464,11 +2262,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2464
2262
  type: z.ZodLiteral<"action-error">;
2465
2263
  message: z.ZodString;
2466
2264
  }, "strip", z.ZodTypeAny, {
2467
- message: string;
2468
2265
  type: "action-error";
2469
- }, {
2470
2266
  message: string;
2267
+ }, {
2471
2268
  type: "action-error";
2269
+ message: string;
2472
2270
  }>, z.ZodObject<{
2473
2271
  type: z.ZodLiteral<"commit-message-response">;
2474
2272
  commitMessage: z.ZodString;
@@ -2500,16 +2298,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2500
2298
  } | {
2501
2299
  type: "response-complete";
2502
2300
  userInputId: string;
2503
- changesAlreadyApplied: {
2504
- content: string;
2505
- type: "file" | "patch";
2506
- filePath: string;
2507
- }[];
2508
2301
  response: string;
2509
2302
  changes: {
2303
+ type: "patch" | "file";
2304
+ filePath: string;
2510
2305
  content: string;
2511
- type: "file" | "patch";
2306
+ }[];
2307
+ changesAlreadyApplied: {
2308
+ type: "patch" | "file";
2512
2309
  filePath: string;
2310
+ content: string;
2513
2311
  }[];
2514
2312
  addedFileVersions: {
2515
2313
  path: string;
@@ -2535,27 +2333,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2535
2333
  } | {
2536
2334
  type: "tool-call";
2537
2335
  userInputId: string;
2538
- data: {
2539
- name: string;
2540
- id: string;
2541
- input: Record<string, any>;
2542
- };
2543
- changesAlreadyApplied: {
2544
- content: string;
2545
- type: "file" | "patch";
2546
- filePath: string;
2547
- }[];
2548
2336
  response: string;
2549
2337
  changes: {
2338
+ type: "patch" | "file";
2339
+ filePath: string;
2550
2340
  content: string;
2551
- type: "file" | "patch";
2341
+ }[];
2342
+ changesAlreadyApplied: {
2343
+ type: "patch" | "file";
2552
2344
  filePath: string;
2345
+ content: string;
2553
2346
  }[];
2554
2347
  addedFileVersions: {
2555
2348
  path: string;
2556
2349
  content: string;
2557
2350
  }[];
2558
2351
  resetFileVersions: boolean;
2352
+ data: {
2353
+ name: string;
2354
+ id: string;
2355
+ input: Record<string, any>;
2356
+ };
2559
2357
  } | {
2560
2358
  type: "terminal-command-result";
2561
2359
  userInputId: string;
@@ -2565,24 +2363,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2565
2363
  isUpToDate: boolean;
2566
2364
  latestVersion: string;
2567
2365
  } | {
2568
- message: string;
2569
- type: "auth-result";
2570
- user?: {
2571
- email: string;
2572
- name: string | null;
2573
- id: string;
2574
- authToken: string;
2575
- fingerprintId: string;
2576
- fingerprintHash: string;
2577
- } | undefined;
2578
- } | {
2579
- type: "login-code-response";
2580
- fingerprintId: string;
2581
- fingerprintHash: string;
2582
- loginUrl: string;
2583
- } | {
2584
- message: string;
2585
2366
  type: "action-error";
2367
+ message: string;
2586
2368
  } | {
2587
2369
  type: "commit-message-response";
2588
2370
  commitMessage: string;
@@ -2608,16 +2390,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2608
2390
  } | {
2609
2391
  type: "response-complete";
2610
2392
  userInputId: string;
2611
- changesAlreadyApplied: {
2612
- content: string;
2613
- type: "file" | "patch";
2614
- filePath: string;
2615
- }[];
2616
2393
  response: string;
2617
2394
  changes: {
2395
+ type: "patch" | "file";
2396
+ filePath: string;
2618
2397
  content: string;
2619
- type: "file" | "patch";
2398
+ }[];
2399
+ changesAlreadyApplied: {
2400
+ type: "patch" | "file";
2620
2401
  filePath: string;
2402
+ content: string;
2621
2403
  }[];
2622
2404
  addedFileVersions: {
2623
2405
  path: string;
@@ -2643,27 +2425,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2643
2425
  } | {
2644
2426
  type: "tool-call";
2645
2427
  userInputId: string;
2646
- data: {
2647
- name: string;
2648
- id: string;
2649
- input: Record<string, any>;
2650
- };
2651
- changesAlreadyApplied: {
2652
- content: string;
2653
- type: "file" | "patch";
2654
- filePath: string;
2655
- }[];
2656
2428
  response: string;
2657
2429
  changes: {
2430
+ type: "patch" | "file";
2431
+ filePath: string;
2658
2432
  content: string;
2659
- type: "file" | "patch";
2433
+ }[];
2434
+ changesAlreadyApplied: {
2435
+ type: "patch" | "file";
2660
2436
  filePath: string;
2437
+ content: string;
2661
2438
  }[];
2662
2439
  addedFileVersions: {
2663
2440
  path: string;
2664
2441
  content: string;
2665
2442
  }[];
2666
2443
  resetFileVersions: boolean;
2444
+ data: {
2445
+ name: string;
2446
+ id: string;
2447
+ input: Record<string, any>;
2448
+ };
2667
2449
  } | {
2668
2450
  type: "terminal-command-result";
2669
2451
  userInputId: string;
@@ -2673,24 +2455,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2673
2455
  isUpToDate: boolean;
2674
2456
  latestVersion: string;
2675
2457
  } | {
2676
- message: string;
2677
- type: "auth-result";
2678
- user?: {
2679
- email: string;
2680
- name: string | null;
2681
- id: string;
2682
- authToken: string;
2683
- fingerprintId: string;
2684
- fingerprintHash: string;
2685
- } | undefined;
2686
- } | {
2687
- type: "login-code-response";
2688
- fingerprintId: string;
2689
- fingerprintHash: string;
2690
- loginUrl: string;
2691
- } | {
2692
- message: string;
2693
2458
  type: "action-error";
2459
+ message: string;
2694
2460
  } | {
2695
2461
  type: "commit-message-response";
2696
2462
  commitMessage: string;
@@ -2705,13 +2471,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2705
2471
  }, "strip", z.ZodTypeAny, {
2706
2472
  type: "ack";
2707
2473
  success: boolean;
2708
- error?: string | undefined;
2709
2474
  txid?: number | undefined;
2475
+ error?: string | undefined;
2710
2476
  }, {
2711
2477
  type: "ack";
2712
2478
  success: boolean;
2713
- error?: string | undefined;
2714
2479
  txid?: number | undefined;
2480
+ error?: string | undefined;
2715
2481
  }>, z.ZodObject<{
2716
2482
  type: z.ZodLiteral<"action">;
2717
2483
  data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2744,26 +2510,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2744
2510
  filePath: z.ZodString;
2745
2511
  content: z.ZodString;
2746
2512
  }, "strip", z.ZodTypeAny, {
2747
- content: string;
2748
- type: "file" | "patch";
2513
+ type: "patch" | "file";
2749
2514
  filePath: string;
2750
- }, {
2751
2515
  content: string;
2752
- type: "file" | "patch";
2516
+ }, {
2517
+ type: "patch" | "file";
2753
2518
  filePath: string;
2519
+ content: string;
2754
2520
  }>, "many">;
2755
2521
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2756
2522
  type: z.ZodEnum<["patch", "file"]>;
2757
2523
  filePath: z.ZodString;
2758
2524
  content: z.ZodString;
2759
2525
  }, "strip", z.ZodTypeAny, {
2760
- content: string;
2761
- type: "file" | "patch";
2526
+ type: "patch" | "file";
2762
2527
  filePath: string;
2763
- }, {
2764
2528
  content: string;
2765
- type: "file" | "patch";
2529
+ }, {
2530
+ type: "patch" | "file";
2766
2531
  filePath: string;
2532
+ content: string;
2767
2533
  }>, "many">;
2768
2534
  addedFileVersions: z.ZodArray<z.ZodObject<{
2769
2535
  path: z.ZodString;
@@ -2786,16 +2552,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2786
2552
  }>, "strip", z.ZodTypeAny, {
2787
2553
  type: "response-complete";
2788
2554
  userInputId: string;
2789
- changesAlreadyApplied: {
2790
- content: string;
2791
- type: "file" | "patch";
2792
- filePath: string;
2793
- }[];
2794
2555
  response: string;
2795
2556
  changes: {
2557
+ type: "patch" | "file";
2558
+ filePath: string;
2796
2559
  content: string;
2797
- type: "file" | "patch";
2560
+ }[];
2561
+ changesAlreadyApplied: {
2562
+ type: "patch" | "file";
2798
2563
  filePath: string;
2564
+ content: string;
2799
2565
  }[];
2800
2566
  addedFileVersions: {
2801
2567
  path: string;
@@ -2811,16 +2577,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2811
2577
  }, {
2812
2578
  type: "response-complete";
2813
2579
  userInputId: string;
2814
- changesAlreadyApplied: {
2815
- content: string;
2816
- type: "file" | "patch";
2817
- filePath: string;
2818
- }[];
2819
2580
  response: string;
2820
2581
  changes: {
2582
+ type: "patch" | "file";
2583
+ filePath: string;
2821
2584
  content: string;
2822
- type: "file" | "patch";
2585
+ }[];
2586
+ changesAlreadyApplied: {
2587
+ type: "patch" | "file";
2823
2588
  filePath: string;
2589
+ content: string;
2824
2590
  }[];
2825
2591
  addedFileVersions: {
2826
2592
  path: string;
@@ -2864,26 +2630,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2864
2630
  filePath: z.ZodString;
2865
2631
  content: z.ZodString;
2866
2632
  }, "strip", z.ZodTypeAny, {
2867
- content: string;
2868
- type: "file" | "patch";
2633
+ type: "patch" | "file";
2869
2634
  filePath: string;
2870
- }, {
2871
2635
  content: string;
2872
- type: "file" | "patch";
2636
+ }, {
2637
+ type: "patch" | "file";
2873
2638
  filePath: string;
2639
+ content: string;
2874
2640
  }>, "many">;
2875
2641
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2876
2642
  type: z.ZodEnum<["patch", "file"]>;
2877
2643
  filePath: z.ZodString;
2878
2644
  content: z.ZodString;
2879
2645
  }, "strip", z.ZodTypeAny, {
2880
- content: string;
2881
- type: "file" | "patch";
2646
+ type: "patch" | "file";
2882
2647
  filePath: string;
2883
- }, {
2884
2648
  content: string;
2885
- type: "file" | "patch";
2649
+ }, {
2650
+ type: "patch" | "file";
2886
2651
  filePath: string;
2652
+ content: string;
2887
2653
  }>, "many">;
2888
2654
  addedFileVersions: z.ZodArray<z.ZodObject<{
2889
2655
  path: z.ZodString;
@@ -2899,51 +2665,51 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2899
2665
  }, "strip", z.ZodTypeAny, {
2900
2666
  type: "tool-call";
2901
2667
  userInputId: string;
2902
- data: {
2903
- name: string;
2904
- id: string;
2905
- input: Record<string, any>;
2906
- };
2907
- changesAlreadyApplied: {
2908
- content: string;
2909
- type: "file" | "patch";
2910
- filePath: string;
2911
- }[];
2912
2668
  response: string;
2913
2669
  changes: {
2670
+ type: "patch" | "file";
2671
+ filePath: string;
2914
2672
  content: string;
2915
- type: "file" | "patch";
2673
+ }[];
2674
+ changesAlreadyApplied: {
2675
+ type: "patch" | "file";
2916
2676
  filePath: string;
2677
+ content: string;
2917
2678
  }[];
2918
2679
  addedFileVersions: {
2919
2680
  path: string;
2920
2681
  content: string;
2921
2682
  }[];
2922
2683
  resetFileVersions: boolean;
2923
- }, {
2924
- type: "tool-call";
2925
- userInputId: string;
2926
2684
  data: {
2927
2685
  name: string;
2928
2686
  id: string;
2929
2687
  input: Record<string, any>;
2930
2688
  };
2931
- changesAlreadyApplied: {
2932
- content: string;
2933
- type: "file" | "patch";
2934
- filePath: string;
2935
- }[];
2689
+ }, {
2690
+ type: "tool-call";
2691
+ userInputId: string;
2936
2692
  response: string;
2937
2693
  changes: {
2694
+ type: "patch" | "file";
2695
+ filePath: string;
2938
2696
  content: string;
2939
- type: "file" | "patch";
2697
+ }[];
2698
+ changesAlreadyApplied: {
2699
+ type: "patch" | "file";
2940
2700
  filePath: string;
2701
+ content: string;
2941
2702
  }[];
2942
2703
  addedFileVersions: {
2943
2704
  path: string;
2944
2705
  content: string;
2945
2706
  }[];
2946
2707
  resetFileVersions: boolean;
2708
+ data: {
2709
+ name: string;
2710
+ id: string;
2711
+ input: Record<string, any>;
2712
+ };
2947
2713
  }>, z.ZodObject<{
2948
2714
  type: z.ZodLiteral<"terminal-command-result">;
2949
2715
  userInputId: z.ZodString;
@@ -2994,68 +2760,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2994
2760
  next_quota_reset: Date;
2995
2761
  session_credits_used: number;
2996
2762
  referralLink?: string | undefined;
2997
- }>, z.ZodObject<{
2998
- type: z.ZodLiteral<"auth-result">;
2999
- user: z.ZodOptional<z.ZodObject<{
3000
- id: z.ZodString;
3001
- email: z.ZodString;
3002
- name: z.ZodNullable<z.ZodString>;
3003
- authToken: z.ZodString;
3004
- fingerprintId: z.ZodString;
3005
- fingerprintHash: z.ZodString;
3006
- }, "strip", z.ZodTypeAny, {
3007
- email: string;
3008
- name: string | null;
3009
- id: string;
3010
- authToken: string;
3011
- fingerprintId: string;
3012
- fingerprintHash: string;
3013
- }, {
3014
- email: string;
3015
- name: string | null;
3016
- id: string;
3017
- authToken: string;
3018
- fingerprintId: string;
3019
- fingerprintHash: string;
3020
- }>>;
3021
- message: z.ZodString;
3022
- }, "strip", z.ZodTypeAny, {
3023
- message: string;
3024
- type: "auth-result";
3025
- user?: {
3026
- email: string;
3027
- name: string | null;
3028
- id: string;
3029
- authToken: string;
3030
- fingerprintId: string;
3031
- fingerprintHash: string;
3032
- } | undefined;
3033
- }, {
3034
- message: string;
3035
- type: "auth-result";
3036
- user?: {
3037
- email: string;
3038
- name: string | null;
3039
- id: string;
3040
- authToken: string;
3041
- fingerprintId: string;
3042
- fingerprintHash: string;
3043
- } | undefined;
3044
- }>, z.ZodObject<{
3045
- type: z.ZodLiteral<"login-code-response">;
3046
- fingerprintId: z.ZodString;
3047
- fingerprintHash: z.ZodString;
3048
- loginUrl: z.ZodString;
3049
- }, "strip", z.ZodTypeAny, {
3050
- type: "login-code-response";
3051
- fingerprintId: string;
3052
- fingerprintHash: string;
3053
- loginUrl: string;
3054
- }, {
3055
- type: "login-code-response";
3056
- fingerprintId: string;
3057
- fingerprintHash: string;
3058
- loginUrl: string;
3059
2763
  }>, z.ZodObject<{
3060
2764
  type: z.ZodLiteral<"usage-response">;
3061
2765
  usage: z.ZodNumber;
@@ -3084,11 +2788,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3084
2788
  type: z.ZodLiteral<"action-error">;
3085
2789
  message: z.ZodString;
3086
2790
  }, "strip", z.ZodTypeAny, {
3087
- message: string;
3088
2791
  type: "action-error";
3089
- }, {
3090
2792
  message: string;
2793
+ }, {
3091
2794
  type: "action-error";
2795
+ message: string;
3092
2796
  }>, z.ZodObject<{
3093
2797
  type: z.ZodLiteral<"commit-message-response">;
3094
2798
  commitMessage: z.ZodString;
@@ -3120,16 +2824,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3120
2824
  } | {
3121
2825
  type: "response-complete";
3122
2826
  userInputId: string;
3123
- changesAlreadyApplied: {
3124
- content: string;
3125
- type: "file" | "patch";
3126
- filePath: string;
3127
- }[];
3128
2827
  response: string;
3129
2828
  changes: {
2829
+ type: "patch" | "file";
2830
+ filePath: string;
3130
2831
  content: string;
3131
- type: "file" | "patch";
2832
+ }[];
2833
+ changesAlreadyApplied: {
2834
+ type: "patch" | "file";
3132
2835
  filePath: string;
2836
+ content: string;
3133
2837
  }[];
3134
2838
  addedFileVersions: {
3135
2839
  path: string;
@@ -3155,27 +2859,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3155
2859
  } | {
3156
2860
  type: "tool-call";
3157
2861
  userInputId: string;
3158
- data: {
3159
- name: string;
3160
- id: string;
3161
- input: Record<string, any>;
3162
- };
3163
- changesAlreadyApplied: {
3164
- content: string;
3165
- type: "file" | "patch";
3166
- filePath: string;
3167
- }[];
3168
2862
  response: string;
3169
2863
  changes: {
2864
+ type: "patch" | "file";
2865
+ filePath: string;
3170
2866
  content: string;
3171
- type: "file" | "patch";
2867
+ }[];
2868
+ changesAlreadyApplied: {
2869
+ type: "patch" | "file";
3172
2870
  filePath: string;
2871
+ content: string;
3173
2872
  }[];
3174
2873
  addedFileVersions: {
3175
2874
  path: string;
3176
2875
  content: string;
3177
2876
  }[];
3178
2877
  resetFileVersions: boolean;
2878
+ data: {
2879
+ name: string;
2880
+ id: string;
2881
+ input: Record<string, any>;
2882
+ };
3179
2883
  } | {
3180
2884
  type: "terminal-command-result";
3181
2885
  userInputId: string;
@@ -3185,24 +2889,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3185
2889
  isUpToDate: boolean;
3186
2890
  latestVersion: string;
3187
2891
  } | {
3188
- message: string;
3189
- type: "auth-result";
3190
- user?: {
3191
- email: string;
3192
- name: string | null;
3193
- id: string;
3194
- authToken: string;
3195
- fingerprintId: string;
3196
- fingerprintHash: string;
3197
- } | undefined;
3198
- } | {
3199
- type: "login-code-response";
3200
- fingerprintId: string;
3201
- fingerprintHash: string;
3202
- loginUrl: string;
3203
- } | {
3204
- message: string;
3205
2892
  type: "action-error";
2893
+ message: string;
3206
2894
  } | {
3207
2895
  type: "commit-message-response";
3208
2896
  commitMessage: string;
@@ -3228,16 +2916,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3228
2916
  } | {
3229
2917
  type: "response-complete";
3230
2918
  userInputId: string;
3231
- changesAlreadyApplied: {
3232
- content: string;
3233
- type: "file" | "patch";
3234
- filePath: string;
3235
- }[];
3236
2919
  response: string;
3237
2920
  changes: {
2921
+ type: "patch" | "file";
2922
+ filePath: string;
3238
2923
  content: string;
3239
- type: "file" | "patch";
2924
+ }[];
2925
+ changesAlreadyApplied: {
2926
+ type: "patch" | "file";
3240
2927
  filePath: string;
2928
+ content: string;
3241
2929
  }[];
3242
2930
  addedFileVersions: {
3243
2931
  path: string;
@@ -3263,27 +2951,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3263
2951
  } | {
3264
2952
  type: "tool-call";
3265
2953
  userInputId: string;
3266
- data: {
3267
- name: string;
3268
- id: string;
3269
- input: Record<string, any>;
3270
- };
3271
- changesAlreadyApplied: {
3272
- content: string;
3273
- type: "file" | "patch";
3274
- filePath: string;
3275
- }[];
3276
2954
  response: string;
3277
2955
  changes: {
2956
+ type: "patch" | "file";
2957
+ filePath: string;
3278
2958
  content: string;
3279
- type: "file" | "patch";
2959
+ }[];
2960
+ changesAlreadyApplied: {
2961
+ type: "patch" | "file";
3280
2962
  filePath: string;
2963
+ content: string;
3281
2964
  }[];
3282
2965
  addedFileVersions: {
3283
2966
  path: string;
3284
2967
  content: string;
3285
2968
  }[];
3286
2969
  resetFileVersions: boolean;
2970
+ data: {
2971
+ name: string;
2972
+ id: string;
2973
+ input: Record<string, any>;
2974
+ };
3287
2975
  } | {
3288
2976
  type: "terminal-command-result";
3289
2977
  userInputId: string;
@@ -3293,24 +2981,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3293
2981
  isUpToDate: boolean;
3294
2982
  latestVersion: string;
3295
2983
  } | {
3296
- message: string;
3297
- type: "auth-result";
3298
- user?: {
3299
- email: string;
3300
- name: string | null;
3301
- id: string;
3302
- authToken: string;
3303
- fingerprintId: string;
3304
- fingerprintHash: string;
3305
- } | undefined;
3306
- } | {
3307
- type: "login-code-response";
3308
- fingerprintId: string;
3309
- fingerprintHash: string;
3310
- loginUrl: string;
3311
- } | {
3312
- message: string;
3313
2984
  type: "action-error";
2985
+ message: string;
3314
2986
  } | {
3315
2987
  type: "commit-message-response";
3316
2988
  commitMessage: string;