codebuff 1.0.107 → 1.0.109

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";
@@ -151,8 +151,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
151
151
  type: "ephemeral";
152
152
  } | undefined;
153
153
  } | {
154
- content: string;
155
154
  type: "tool_result";
155
+ content: string;
156
156
  tool_use_id: string;
157
157
  cache_control?: {
158
158
  type: "ephemeral";
@@ -175,8 +175,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
175
175
  type: "ephemeral";
176
176
  } | undefined;
177
177
  } | {
178
- content: string;
179
178
  type: "tool_result";
179
+ content: string;
180
180
  tool_use_id: string;
181
181
  cache_control?: {
182
182
  type: "ephemeral";
@@ -257,13 +257,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
257
257
  filePath: z.ZodString;
258
258
  content: z.ZodString;
259
259
  }, "strip", z.ZodTypeAny, {
260
- content: string;
261
- type: "file" | "patch";
260
+ type: "patch" | "file";
262
261
  filePath: string;
263
- }, {
264
262
  content: string;
265
- type: "file" | "patch";
263
+ }, {
264
+ type: "patch" | "file";
266
265
  filePath: string;
266
+ content: string;
267
267
  }>, "many">;
268
268
  }, "strip", z.ZodTypeAny, {
269
269
  type: "user-input";
@@ -285,8 +285,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
285
285
  type: "ephemeral";
286
286
  } | undefined;
287
287
  } | {
288
- content: string;
289
288
  type: "tool_result";
289
+ content: string;
290
290
  tool_use_id: string;
291
291
  cache_control?: {
292
292
  type: "ephemeral";
@@ -313,9 +313,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
313
313
  }[][];
314
314
  };
315
315
  previousChanges: {
316
- content: string;
317
- type: "file" | "patch";
316
+ type: "patch" | "file";
318
317
  filePath: string;
318
+ content: string;
319
319
  }[];
320
320
  authToken?: string | undefined;
321
321
  }, {
@@ -338,8 +338,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
338
338
  type: "ephemeral";
339
339
  } | undefined;
340
340
  } | {
341
- content: string;
342
341
  type: "tool_result";
342
+ content: string;
343
343
  tool_use_id: string;
344
344
  cache_control?: {
345
345
  type: "ephemeral";
@@ -366,9 +366,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
366
366
  }[][];
367
367
  };
368
368
  previousChanges: {
369
- content: string;
370
- type: "file" | "patch";
369
+ type: "patch" | "file";
371
370
  filePath: string;
371
+ content: string;
372
372
  }[];
373
373
  authToken?: string | undefined;
374
374
  }>, z.ZodObject<{
@@ -540,14 +540,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
540
540
  fingerprintHash: z.ZodString;
541
541
  }, "strip", z.ZodTypeAny, {
542
542
  type: "clear-auth-token";
543
- authToken: string;
544
543
  fingerprintId: string;
544
+ authToken: string;
545
545
  fingerprintHash: string;
546
546
  userId: string;
547
547
  }, {
548
548
  type: "clear-auth-token";
549
- authToken: string;
550
549
  fingerprintId: string;
550
+ authToken: string;
551
551
  fingerprintHash: string;
552
552
  userId: string;
553
553
  }>, z.ZodObject<{
@@ -588,8 +588,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
588
588
  type: "ephemeral";
589
589
  } | undefined;
590
590
  } | {
591
- content: string;
592
591
  type: "tool_result";
592
+ content: string;
593
593
  tool_use_id: string;
594
594
  cache_control?: {
595
595
  type: "ephemeral";
@@ -616,9 +616,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
616
616
  }[][];
617
617
  };
618
618
  previousChanges: {
619
- content: string;
620
- type: "file" | "patch";
619
+ type: "patch" | "file";
621
620
  filePath: string;
621
+ content: string;
622
622
  }[];
623
623
  authToken?: string | undefined;
624
624
  } | {
@@ -660,8 +660,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
660
660
  fingerprintHash: string;
661
661
  } | {
662
662
  type: "clear-auth-token";
663
- authToken: string;
664
663
  fingerprintId: string;
664
+ authToken: string;
665
665
  fingerprintHash: string;
666
666
  userId: string;
667
667
  } | {
@@ -693,8 +693,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
693
693
  type: "ephemeral";
694
694
  } | undefined;
695
695
  } | {
696
- content: string;
697
696
  type: "tool_result";
697
+ content: string;
698
698
  tool_use_id: string;
699
699
  cache_control?: {
700
700
  type: "ephemeral";
@@ -721,9 +721,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
721
721
  }[][];
722
722
  };
723
723
  previousChanges: {
724
- content: string;
725
- type: "file" | "patch";
724
+ type: "patch" | "file";
726
725
  filePath: string;
726
+ content: string;
727
727
  }[];
728
728
  authToken?: string | undefined;
729
729
  } | {
@@ -765,8 +765,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
765
765
  fingerprintHash: string;
766
766
  } | {
767
767
  type: "clear-auth-token";
768
- authToken: string;
769
768
  fingerprintId: string;
769
+ authToken: string;
770
770
  fingerprintHash: string;
771
771
  userId: string;
772
772
  } | {
@@ -895,15 +895,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
895
895
  type: "ephemeral";
896
896
  }>>;
897
897
  }, "strip", z.ZodTypeAny, {
898
- content: string;
899
898
  type: "tool_result";
899
+ content: string;
900
900
  tool_use_id: string;
901
901
  cache_control?: {
902
902
  type: "ephemeral";
903
903
  } | undefined;
904
904
  }, {
905
- content: string;
906
905
  type: "tool_result";
906
+ content: string;
907
907
  tool_use_id: string;
908
908
  cache_control?: {
909
909
  type: "ephemeral";
@@ -925,8 +925,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
925
925
  type: "ephemeral";
926
926
  } | undefined;
927
927
  } | {
928
- content: string;
929
928
  type: "tool_result";
929
+ content: string;
930
930
  tool_use_id: string;
931
931
  cache_control?: {
932
932
  type: "ephemeral";
@@ -949,8 +949,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
949
949
  type: "ephemeral";
950
950
  } | undefined;
951
951
  } | {
952
- content: string;
953
952
  type: "tool_result";
953
+ content: string;
954
954
  tool_use_id: string;
955
955
  cache_control?: {
956
956
  type: "ephemeral";
@@ -1031,13 +1031,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1031
1031
  filePath: z.ZodString;
1032
1032
  content: z.ZodString;
1033
1033
  }, "strip", z.ZodTypeAny, {
1034
- content: string;
1035
- type: "file" | "patch";
1034
+ type: "patch" | "file";
1036
1035
  filePath: string;
1037
- }, {
1038
1036
  content: string;
1039
- type: "file" | "patch";
1037
+ }, {
1038
+ type: "patch" | "file";
1040
1039
  filePath: string;
1040
+ content: string;
1041
1041
  }>, "many">;
1042
1042
  }, "strip", z.ZodTypeAny, {
1043
1043
  type: "user-input";
@@ -1059,8 +1059,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1059
1059
  type: "ephemeral";
1060
1060
  } | undefined;
1061
1061
  } | {
1062
- content: string;
1063
1062
  type: "tool_result";
1063
+ content: string;
1064
1064
  tool_use_id: string;
1065
1065
  cache_control?: {
1066
1066
  type: "ephemeral";
@@ -1087,9 +1087,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1087
1087
  }[][];
1088
1088
  };
1089
1089
  previousChanges: {
1090
- content: string;
1091
- type: "file" | "patch";
1090
+ type: "patch" | "file";
1092
1091
  filePath: string;
1092
+ content: string;
1093
1093
  }[];
1094
1094
  authToken?: string | undefined;
1095
1095
  }, {
@@ -1112,8 +1112,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1112
1112
  type: "ephemeral";
1113
1113
  } | undefined;
1114
1114
  } | {
1115
- content: string;
1116
1115
  type: "tool_result";
1116
+ content: string;
1117
1117
  tool_use_id: string;
1118
1118
  cache_control?: {
1119
1119
  type: "ephemeral";
@@ -1140,9 +1140,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1140
1140
  }[][];
1141
1141
  };
1142
1142
  previousChanges: {
1143
- content: string;
1144
- type: "file" | "patch";
1143
+ type: "patch" | "file";
1145
1144
  filePath: string;
1145
+ content: string;
1146
1146
  }[];
1147
1147
  authToken?: string | undefined;
1148
1148
  }>, z.ZodObject<{
@@ -1314,14 +1314,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1314
1314
  fingerprintHash: z.ZodString;
1315
1315
  }, "strip", z.ZodTypeAny, {
1316
1316
  type: "clear-auth-token";
1317
- authToken: string;
1318
1317
  fingerprintId: string;
1318
+ authToken: string;
1319
1319
  fingerprintHash: string;
1320
1320
  userId: string;
1321
1321
  }, {
1322
1322
  type: "clear-auth-token";
1323
- authToken: string;
1324
1323
  fingerprintId: string;
1324
+ authToken: string;
1325
1325
  fingerprintHash: string;
1326
1326
  userId: string;
1327
1327
  }>, z.ZodObject<{
@@ -1362,8 +1362,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1362
1362
  type: "ephemeral";
1363
1363
  } | undefined;
1364
1364
  } | {
1365
- content: string;
1366
1365
  type: "tool_result";
1366
+ content: string;
1367
1367
  tool_use_id: string;
1368
1368
  cache_control?: {
1369
1369
  type: "ephemeral";
@@ -1390,9 +1390,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1390
1390
  }[][];
1391
1391
  };
1392
1392
  previousChanges: {
1393
- content: string;
1394
- type: "file" | "patch";
1393
+ type: "patch" | "file";
1395
1394
  filePath: string;
1395
+ content: string;
1396
1396
  }[];
1397
1397
  authToken?: string | undefined;
1398
1398
  } | {
@@ -1434,8 +1434,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1434
1434
  fingerprintHash: string;
1435
1435
  } | {
1436
1436
  type: "clear-auth-token";
1437
- authToken: string;
1438
1437
  fingerprintId: string;
1438
+ authToken: string;
1439
1439
  fingerprintHash: string;
1440
1440
  userId: string;
1441
1441
  } | {
@@ -1467,8 +1467,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1467
1467
  type: "ephemeral";
1468
1468
  } | undefined;
1469
1469
  } | {
1470
- content: string;
1471
1470
  type: "tool_result";
1471
+ content: string;
1472
1472
  tool_use_id: string;
1473
1473
  cache_control?: {
1474
1474
  type: "ephemeral";
@@ -1495,9 +1495,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1495
1495
  }[][];
1496
1496
  };
1497
1497
  previousChanges: {
1498
- content: string;
1499
- type: "file" | "patch";
1498
+ type: "patch" | "file";
1500
1499
  filePath: string;
1500
+ content: string;
1501
1501
  }[];
1502
1502
  authToken?: string | undefined;
1503
1503
  } | {
@@ -1539,8 +1539,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1539
1539
  fingerprintHash: string;
1540
1540
  } | {
1541
1541
  type: "clear-auth-token";
1542
- authToken: string;
1543
1542
  fingerprintId: string;
1543
+ authToken: string;
1544
1544
  fingerprintHash: string;
1545
1545
  userId: string;
1546
1546
  } | {
@@ -1593,13 +1593,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1593
1593
  filePath: z.ZodString;
1594
1594
  content: z.ZodString;
1595
1595
  }, "strip", z.ZodTypeAny, {
1596
- content: string;
1597
- type: "file" | "patch";
1596
+ type: "patch" | "file";
1598
1597
  filePath: string;
1599
- }, {
1600
1598
  content: string;
1601
- type: "file" | "patch";
1599
+ }, {
1600
+ type: "patch" | "file";
1602
1601
  filePath: string;
1602
+ content: string;
1603
1603
  }>, "many">;
1604
1604
  addedFileVersions: z.ZodArray<z.ZodObject<{
1605
1605
  path: z.ZodString;
@@ -1624,9 +1624,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1624
1624
  userInputId: string;
1625
1625
  response: string;
1626
1626
  changes: {
1627
- content: string;
1628
- type: "file" | "patch";
1627
+ type: "patch" | "file";
1629
1628
  filePath: string;
1629
+ content: string;
1630
1630
  }[];
1631
1631
  addedFileVersions: {
1632
1632
  path: string;
@@ -1644,9 +1644,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1644
1644
  userInputId: string;
1645
1645
  response: string;
1646
1646
  changes: {
1647
- content: string;
1648
- type: "file" | "patch";
1647
+ type: "patch" | "file";
1649
1648
  filePath: string;
1649
+ content: string;
1650
1650
  }[];
1651
1651
  addedFileVersions: {
1652
1652
  path: string;
@@ -1690,13 +1690,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1690
1690
  filePath: z.ZodString;
1691
1691
  content: z.ZodString;
1692
1692
  }, "strip", z.ZodTypeAny, {
1693
- content: string;
1694
- type: "file" | "patch";
1693
+ type: "patch" | "file";
1695
1694
  filePath: string;
1696
- }, {
1697
1695
  content: string;
1698
- type: "file" | "patch";
1696
+ }, {
1697
+ type: "patch" | "file";
1699
1698
  filePath: string;
1699
+ content: string;
1700
1700
  }>, "many">;
1701
1701
  addedFileVersions: z.ZodArray<z.ZodObject<{
1702
1702
  path: z.ZodString;
@@ -1714,9 +1714,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1714
1714
  userInputId: string;
1715
1715
  response: string;
1716
1716
  changes: {
1717
- content: string;
1718
- type: "file" | "patch";
1717
+ type: "patch" | "file";
1719
1718
  filePath: string;
1719
+ content: string;
1720
1720
  }[];
1721
1721
  addedFileVersions: {
1722
1722
  path: string;
@@ -1733,9 +1733,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1733
1733
  userInputId: string;
1734
1734
  response: string;
1735
1735
  changes: {
1736
- content: string;
1737
- type: "file" | "patch";
1736
+ type: "patch" | "file";
1738
1737
  filePath: string;
1738
+ content: string;
1739
1739
  }[];
1740
1740
  addedFileVersions: {
1741
1741
  path: string;
@@ -1807,41 +1807,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1807
1807
  fingerprintId: z.ZodString;
1808
1808
  fingerprintHash: z.ZodString;
1809
1809
  }, "strip", z.ZodTypeAny, {
1810
- email: string;
1811
1810
  name: string | null;
1812
1811
  id: string;
1813
- authToken: string;
1814
1812
  fingerprintId: string;
1813
+ authToken: string;
1814
+ email: string;
1815
1815
  fingerprintHash: string;
1816
1816
  }, {
1817
- email: string;
1818
1817
  name: string | null;
1819
1818
  id: string;
1820
- authToken: string;
1821
1819
  fingerprintId: string;
1820
+ authToken: string;
1821
+ email: string;
1822
1822
  fingerprintHash: string;
1823
1823
  }>>;
1824
1824
  message: z.ZodString;
1825
1825
  }, "strip", z.ZodTypeAny, {
1826
- message: string;
1827
1826
  type: "auth-result";
1827
+ message: string;
1828
1828
  user?: {
1829
- email: string;
1830
1829
  name: string | null;
1831
1830
  id: string;
1832
- authToken: string;
1833
1831
  fingerprintId: string;
1832
+ authToken: string;
1833
+ email: string;
1834
1834
  fingerprintHash: string;
1835
1835
  } | undefined;
1836
1836
  }, {
1837
- message: string;
1838
1837
  type: "auth-result";
1838
+ message: string;
1839
1839
  user?: {
1840
- email: string;
1841
1840
  name: string | null;
1842
1841
  id: string;
1843
- authToken: string;
1844
1842
  fingerprintId: string;
1843
+ authToken: string;
1844
+ email: string;
1845
1845
  fingerprintHash: string;
1846
1846
  } | undefined;
1847
1847
  }>, z.ZodObject<{
@@ -1887,11 +1887,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1887
1887
  type: z.ZodLiteral<"action-error">;
1888
1888
  message: z.ZodString;
1889
1889
  }, "strip", z.ZodTypeAny, {
1890
- message: string;
1891
1890
  type: "action-error";
1892
- }, {
1893
1891
  message: string;
1892
+ }, {
1894
1893
  type: "action-error";
1894
+ message: string;
1895
1895
  }>, z.ZodObject<{
1896
1896
  type: z.ZodLiteral<"commit-message-response">;
1897
1897
  commitMessage: z.ZodString;
@@ -1925,9 +1925,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1925
1925
  userInputId: string;
1926
1926
  response: string;
1927
1927
  changes: {
1928
- content: string;
1929
- type: "file" | "patch";
1928
+ type: "patch" | "file";
1930
1929
  filePath: string;
1930
+ content: string;
1931
1931
  }[];
1932
1932
  addedFileVersions: {
1933
1933
  path: string;
@@ -1952,9 +1952,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1952
1952
  userInputId: string;
1953
1953
  response: string;
1954
1954
  changes: {
1955
- content: string;
1956
- type: "file" | "patch";
1955
+ type: "patch" | "file";
1957
1956
  filePath: string;
1957
+ content: string;
1958
1958
  }[];
1959
1959
  addedFileVersions: {
1960
1960
  path: string;
@@ -1975,14 +1975,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1975
1975
  isUpToDate: boolean;
1976
1976
  latestVersion: string;
1977
1977
  } | {
1978
- message: string;
1979
1978
  type: "auth-result";
1979
+ message: string;
1980
1980
  user?: {
1981
- email: string;
1982
1981
  name: string | null;
1983
1982
  id: string;
1984
- authToken: string;
1985
1983
  fingerprintId: string;
1984
+ authToken: string;
1985
+ email: string;
1986
1986
  fingerprintHash: string;
1987
1987
  } | undefined;
1988
1988
  } | {
@@ -1991,8 +1991,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1991
1991
  fingerprintHash: string;
1992
1992
  loginUrl: string;
1993
1993
  } | {
1994
- message: string;
1995
1994
  type: "action-error";
1995
+ message: string;
1996
1996
  } | {
1997
1997
  type: "commit-message-response";
1998
1998
  commitMessage: string;
@@ -2020,9 +2020,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2020
2020
  userInputId: string;
2021
2021
  response: string;
2022
2022
  changes: {
2023
- content: string;
2024
- type: "file" | "patch";
2023
+ type: "patch" | "file";
2025
2024
  filePath: string;
2025
+ content: string;
2026
2026
  }[];
2027
2027
  addedFileVersions: {
2028
2028
  path: string;
@@ -2047,9 +2047,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2047
2047
  userInputId: string;
2048
2048
  response: string;
2049
2049
  changes: {
2050
- content: string;
2051
- type: "file" | "patch";
2050
+ type: "patch" | "file";
2052
2051
  filePath: string;
2052
+ content: string;
2053
2053
  }[];
2054
2054
  addedFileVersions: {
2055
2055
  path: string;
@@ -2070,14 +2070,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2070
2070
  isUpToDate: boolean;
2071
2071
  latestVersion: string;
2072
2072
  } | {
2073
- message: string;
2074
2073
  type: "auth-result";
2074
+ message: string;
2075
2075
  user?: {
2076
- email: string;
2077
2076
  name: string | null;
2078
2077
  id: string;
2079
- authToken: string;
2080
2078
  fingerprintId: string;
2079
+ authToken: string;
2080
+ email: string;
2081
2081
  fingerprintHash: string;
2082
2082
  } | undefined;
2083
2083
  } | {
@@ -2086,8 +2086,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2086
2086
  fingerprintHash: string;
2087
2087
  loginUrl: string;
2088
2088
  } | {
2089
- message: string;
2090
2089
  type: "action-error";
2090
+ message: string;
2091
2091
  } | {
2092
2092
  type: "commit-message-response";
2093
2093
  commitMessage: string;
@@ -2132,13 +2132,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2132
2132
  filePath: z.ZodString;
2133
2133
  content: z.ZodString;
2134
2134
  }, "strip", z.ZodTypeAny, {
2135
- content: string;
2136
- type: "file" | "patch";
2135
+ type: "patch" | "file";
2137
2136
  filePath: string;
2138
- }, {
2139
2137
  content: string;
2140
- type: "file" | "patch";
2138
+ }, {
2139
+ type: "patch" | "file";
2141
2140
  filePath: string;
2141
+ content: string;
2142
2142
  }>, "many">;
2143
2143
  addedFileVersions: z.ZodArray<z.ZodObject<{
2144
2144
  path: z.ZodString;
@@ -2163,9 +2163,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2163
2163
  userInputId: string;
2164
2164
  response: string;
2165
2165
  changes: {
2166
- content: string;
2167
- type: "file" | "patch";
2166
+ type: "patch" | "file";
2168
2167
  filePath: string;
2168
+ content: string;
2169
2169
  }[];
2170
2170
  addedFileVersions: {
2171
2171
  path: string;
@@ -2183,9 +2183,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2183
2183
  userInputId: string;
2184
2184
  response: string;
2185
2185
  changes: {
2186
- content: string;
2187
- type: "file" | "patch";
2186
+ type: "patch" | "file";
2188
2187
  filePath: string;
2188
+ content: string;
2189
2189
  }[];
2190
2190
  addedFileVersions: {
2191
2191
  path: string;
@@ -2229,13 +2229,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2229
2229
  filePath: z.ZodString;
2230
2230
  content: z.ZodString;
2231
2231
  }, "strip", z.ZodTypeAny, {
2232
- content: string;
2233
- type: "file" | "patch";
2232
+ type: "patch" | "file";
2234
2233
  filePath: string;
2235
- }, {
2236
2234
  content: string;
2237
- type: "file" | "patch";
2235
+ }, {
2236
+ type: "patch" | "file";
2238
2237
  filePath: string;
2238
+ content: string;
2239
2239
  }>, "many">;
2240
2240
  addedFileVersions: z.ZodArray<z.ZodObject<{
2241
2241
  path: z.ZodString;
@@ -2253,9 +2253,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2253
2253
  userInputId: string;
2254
2254
  response: string;
2255
2255
  changes: {
2256
- content: string;
2257
- type: "file" | "patch";
2256
+ type: "patch" | "file";
2258
2257
  filePath: string;
2258
+ content: string;
2259
2259
  }[];
2260
2260
  addedFileVersions: {
2261
2261
  path: string;
@@ -2272,9 +2272,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2272
2272
  userInputId: string;
2273
2273
  response: string;
2274
2274
  changes: {
2275
- content: string;
2276
- type: "file" | "patch";
2275
+ type: "patch" | "file";
2277
2276
  filePath: string;
2277
+ content: string;
2278
2278
  }[];
2279
2279
  addedFileVersions: {
2280
2280
  path: string;
@@ -2346,41 +2346,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2346
2346
  fingerprintId: z.ZodString;
2347
2347
  fingerprintHash: z.ZodString;
2348
2348
  }, "strip", z.ZodTypeAny, {
2349
- email: string;
2350
2349
  name: string | null;
2351
2350
  id: string;
2352
- authToken: string;
2353
2351
  fingerprintId: string;
2352
+ authToken: string;
2353
+ email: string;
2354
2354
  fingerprintHash: string;
2355
2355
  }, {
2356
- email: string;
2357
2356
  name: string | null;
2358
2357
  id: string;
2359
- authToken: string;
2360
2358
  fingerprintId: string;
2359
+ authToken: string;
2360
+ email: string;
2361
2361
  fingerprintHash: string;
2362
2362
  }>>;
2363
2363
  message: z.ZodString;
2364
2364
  }, "strip", z.ZodTypeAny, {
2365
- message: string;
2366
2365
  type: "auth-result";
2366
+ message: string;
2367
2367
  user?: {
2368
- email: string;
2369
2368
  name: string | null;
2370
2369
  id: string;
2371
- authToken: string;
2372
2370
  fingerprintId: string;
2371
+ authToken: string;
2372
+ email: string;
2373
2373
  fingerprintHash: string;
2374
2374
  } | undefined;
2375
2375
  }, {
2376
- message: string;
2377
2376
  type: "auth-result";
2377
+ message: string;
2378
2378
  user?: {
2379
- email: string;
2380
2379
  name: string | null;
2381
2380
  id: string;
2382
- authToken: string;
2383
2381
  fingerprintId: string;
2382
+ authToken: string;
2383
+ email: string;
2384
2384
  fingerprintHash: string;
2385
2385
  } | undefined;
2386
2386
  }>, z.ZodObject<{
@@ -2426,11 +2426,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2426
2426
  type: z.ZodLiteral<"action-error">;
2427
2427
  message: z.ZodString;
2428
2428
  }, "strip", z.ZodTypeAny, {
2429
- message: string;
2430
2429
  type: "action-error";
2431
- }, {
2432
2430
  message: string;
2431
+ }, {
2433
2432
  type: "action-error";
2433
+ message: string;
2434
2434
  }>, z.ZodObject<{
2435
2435
  type: z.ZodLiteral<"commit-message-response">;
2436
2436
  commitMessage: z.ZodString;
@@ -2464,9 +2464,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2464
2464
  userInputId: string;
2465
2465
  response: string;
2466
2466
  changes: {
2467
- content: string;
2468
- type: "file" | "patch";
2467
+ type: "patch" | "file";
2469
2468
  filePath: string;
2469
+ content: string;
2470
2470
  }[];
2471
2471
  addedFileVersions: {
2472
2472
  path: string;
@@ -2491,9 +2491,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2491
2491
  userInputId: string;
2492
2492
  response: string;
2493
2493
  changes: {
2494
- content: string;
2495
- type: "file" | "patch";
2494
+ type: "patch" | "file";
2496
2495
  filePath: string;
2496
+ content: string;
2497
2497
  }[];
2498
2498
  addedFileVersions: {
2499
2499
  path: string;
@@ -2514,14 +2514,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2514
2514
  isUpToDate: boolean;
2515
2515
  latestVersion: string;
2516
2516
  } | {
2517
- message: string;
2518
2517
  type: "auth-result";
2518
+ message: string;
2519
2519
  user?: {
2520
- email: string;
2521
2520
  name: string | null;
2522
2521
  id: string;
2523
- authToken: string;
2524
2522
  fingerprintId: string;
2523
+ authToken: string;
2524
+ email: string;
2525
2525
  fingerprintHash: string;
2526
2526
  } | undefined;
2527
2527
  } | {
@@ -2530,8 +2530,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2530
2530
  fingerprintHash: string;
2531
2531
  loginUrl: string;
2532
2532
  } | {
2533
- message: string;
2534
2533
  type: "action-error";
2534
+ message: string;
2535
2535
  } | {
2536
2536
  type: "commit-message-response";
2537
2537
  commitMessage: string;
@@ -2559,9 +2559,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2559
2559
  userInputId: string;
2560
2560
  response: string;
2561
2561
  changes: {
2562
- content: string;
2563
- type: "file" | "patch";
2562
+ type: "patch" | "file";
2564
2563
  filePath: string;
2564
+ content: string;
2565
2565
  }[];
2566
2566
  addedFileVersions: {
2567
2567
  path: string;
@@ -2586,9 +2586,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2586
2586
  userInputId: string;
2587
2587
  response: string;
2588
2588
  changes: {
2589
- content: string;
2590
- type: "file" | "patch";
2589
+ type: "patch" | "file";
2591
2590
  filePath: string;
2591
+ content: string;
2592
2592
  }[];
2593
2593
  addedFileVersions: {
2594
2594
  path: string;
@@ -2609,14 +2609,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2609
2609
  isUpToDate: boolean;
2610
2610
  latestVersion: string;
2611
2611
  } | {
2612
- message: string;
2613
2612
  type: "auth-result";
2613
+ message: string;
2614
2614
  user?: {
2615
- email: string;
2616
2615
  name: string | null;
2617
2616
  id: string;
2618
- authToken: string;
2619
2617
  fingerprintId: string;
2618
+ authToken: string;
2619
+ email: string;
2620
2620
  fingerprintHash: string;
2621
2621
  } | undefined;
2622
2622
  } | {
@@ -2625,8 +2625,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2625
2625
  fingerprintHash: string;
2626
2626
  loginUrl: string;
2627
2627
  } | {
2628
- message: string;
2629
2628
  type: "action-error";
2629
+ message: string;
2630
2630
  } | {
2631
2631
  type: "commit-message-response";
2632
2632
  commitMessage: string;