codebuff 1.0.114 → 1.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
121
121
  type: "ephemeral";
122
122
  }>>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- type: "tool_result";
125
124
  content: string;
125
+ type: "tool_result";
126
126
  tool_use_id: string;
127
127
  cache_control?: {
128
128
  type: "ephemeral";
129
129
  } | undefined;
130
130
  }, {
131
- type: "tool_result";
132
131
  content: string;
132
+ type: "tool_result";
133
133
  tool_use_id: string;
134
134
  cache_control?: {
135
135
  type: "ephemeral";
@@ -151,8 +151,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
151
151
  type: "ephemeral";
152
152
  } | undefined;
153
153
  } | {
154
- type: "tool_result";
155
154
  content: string;
155
+ type: "tool_result";
156
156
  tool_use_id: string;
157
157
  cache_control?: {
158
158
  type: "ephemeral";
@@ -175,8 +175,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
175
175
  type: "ephemeral";
176
176
  } | undefined;
177
177
  } | {
178
- type: "tool_result";
179
178
  content: string;
179
+ type: "tool_result";
180
180
  tool_use_id: string;
181
181
  cache_control?: {
182
182
  type: "ephemeral";
@@ -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
- type: "patch" | "file";
261
- filePath: string;
262
260
  content: string;
263
- }, {
264
- type: "patch" | "file";
261
+ type: "file" | "patch";
265
262
  filePath: string;
263
+ }, {
266
264
  content: string;
265
+ type: "file" | "patch";
266
+ filePath: 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
- type: "tool_result";
289
288
  content: string;
289
+ type: "tool_result";
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
  changesAlreadyApplied: {
316
- type: "patch" | "file";
317
- filePath: string;
318
316
  content: string;
317
+ type: "file" | "patch";
318
+ filePath: 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
- type: "tool_result";
342
341
  content: string;
342
+ type: "tool_result";
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
  changesAlreadyApplied: {
369
- type: "patch" | "file";
370
- filePath: string;
371
369
  content: string;
370
+ type: "file" | "patch";
371
+ filePath: string;
372
372
  }[];
373
373
  authToken?: string | undefined;
374
374
  }>, z.ZodObject<{
@@ -540,16 +540,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
540
540
  fingerprintHash: z.ZodString;
541
541
  }, "strip", z.ZodTypeAny, {
542
542
  type: "clear-auth-token";
543
- fingerprintId: string;
543
+ userId: string;
544
544
  authToken: string;
545
+ fingerprintId: string;
545
546
  fingerprintHash: string;
546
- userId: string;
547
547
  }, {
548
548
  type: "clear-auth-token";
549
- fingerprintId: string;
549
+ userId: string;
550
550
  authToken: string;
551
+ fingerprintId: string;
551
552
  fingerprintHash: string;
552
- userId: string;
553
553
  }>, z.ZodObject<{
554
554
  type: z.ZodLiteral<"generate-commit-message">;
555
555
  fingerprintId: z.ZodString;
@@ -588,8 +588,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
588
588
  type: "ephemeral";
589
589
  } | undefined;
590
590
  } | {
591
- type: "tool_result";
592
591
  content: string;
592
+ type: "tool_result";
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
  changesAlreadyApplied: {
619
- type: "patch" | "file";
620
- filePath: string;
621
619
  content: string;
620
+ type: "file" | "patch";
621
+ filePath: string;
622
622
  }[];
623
623
  authToken?: string | undefined;
624
624
  } | {
@@ -660,10 +660,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
660
660
  fingerprintHash: string;
661
661
  } | {
662
662
  type: "clear-auth-token";
663
- fingerprintId: string;
663
+ userId: string;
664
664
  authToken: string;
665
+ fingerprintId: string;
665
666
  fingerprintHash: string;
666
- userId: string;
667
667
  } | {
668
668
  type: "generate-commit-message";
669
669
  fingerprintId: string;
@@ -693,8 +693,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
693
693
  type: "ephemeral";
694
694
  } | undefined;
695
695
  } | {
696
- type: "tool_result";
697
696
  content: string;
697
+ type: "tool_result";
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
  changesAlreadyApplied: {
724
- type: "patch" | "file";
725
- filePath: string;
726
724
  content: string;
725
+ type: "file" | "patch";
726
+ filePath: string;
727
727
  }[];
728
728
  authToken?: string | undefined;
729
729
  } | {
@@ -765,10 +765,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
765
765
  fingerprintHash: string;
766
766
  } | {
767
767
  type: "clear-auth-token";
768
- fingerprintId: string;
768
+ userId: string;
769
769
  authToken: string;
770
+ fingerprintId: string;
770
771
  fingerprintHash: string;
771
- userId: string;
772
772
  } | {
773
773
  type: "generate-commit-message";
774
774
  fingerprintId: string;
@@ -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
- type: "tool_result";
899
898
  content: string;
899
+ type: "tool_result";
900
900
  tool_use_id: string;
901
901
  cache_control?: {
902
902
  type: "ephemeral";
903
903
  } | undefined;
904
904
  }, {
905
- type: "tool_result";
906
905
  content: string;
906
+ type: "tool_result";
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
- type: "tool_result";
929
928
  content: string;
929
+ type: "tool_result";
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
- type: "tool_result";
953
952
  content: string;
953
+ type: "tool_result";
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
- type: "patch" | "file";
1035
- filePath: string;
1036
1034
  content: string;
1037
- }, {
1038
- type: "patch" | "file";
1035
+ type: "file" | "patch";
1039
1036
  filePath: string;
1037
+ }, {
1040
1038
  content: string;
1039
+ type: "file" | "patch";
1040
+ filePath: 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
- type: "tool_result";
1063
1062
  content: string;
1063
+ type: "tool_result";
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
  changesAlreadyApplied: {
1090
- type: "patch" | "file";
1091
- filePath: string;
1092
1090
  content: string;
1091
+ type: "file" | "patch";
1092
+ filePath: 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
- type: "tool_result";
1116
1115
  content: string;
1116
+ type: "tool_result";
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
  changesAlreadyApplied: {
1143
- type: "patch" | "file";
1144
- filePath: string;
1145
1143
  content: string;
1144
+ type: "file" | "patch";
1145
+ filePath: string;
1146
1146
  }[];
1147
1147
  authToken?: string | undefined;
1148
1148
  }>, z.ZodObject<{
@@ -1314,16 +1314,16 @@ 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
- fingerprintId: string;
1317
+ userId: string;
1318
1318
  authToken: string;
1319
+ fingerprintId: string;
1319
1320
  fingerprintHash: string;
1320
- userId: string;
1321
1321
  }, {
1322
1322
  type: "clear-auth-token";
1323
- fingerprintId: string;
1323
+ userId: string;
1324
1324
  authToken: string;
1325
+ fingerprintId: string;
1325
1326
  fingerprintHash: string;
1326
- userId: string;
1327
1327
  }>, z.ZodObject<{
1328
1328
  type: z.ZodLiteral<"generate-commit-message">;
1329
1329
  fingerprintId: z.ZodString;
@@ -1362,8 +1362,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1362
1362
  type: "ephemeral";
1363
1363
  } | undefined;
1364
1364
  } | {
1365
- type: "tool_result";
1366
1365
  content: string;
1366
+ type: "tool_result";
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
  changesAlreadyApplied: {
1393
- type: "patch" | "file";
1394
- filePath: string;
1395
1393
  content: string;
1394
+ type: "file" | "patch";
1395
+ filePath: string;
1396
1396
  }[];
1397
1397
  authToken?: string | undefined;
1398
1398
  } | {
@@ -1434,10 +1434,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1434
1434
  fingerprintHash: string;
1435
1435
  } | {
1436
1436
  type: "clear-auth-token";
1437
- fingerprintId: string;
1437
+ userId: string;
1438
1438
  authToken: string;
1439
+ fingerprintId: string;
1439
1440
  fingerprintHash: string;
1440
- userId: string;
1441
1441
  } | {
1442
1442
  type: "generate-commit-message";
1443
1443
  fingerprintId: string;
@@ -1467,8 +1467,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1467
1467
  type: "ephemeral";
1468
1468
  } | undefined;
1469
1469
  } | {
1470
- type: "tool_result";
1471
1470
  content: string;
1471
+ type: "tool_result";
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
  changesAlreadyApplied: {
1498
- type: "patch" | "file";
1499
- filePath: string;
1500
1498
  content: string;
1499
+ type: "file" | "patch";
1500
+ filePath: string;
1501
1501
  }[];
1502
1502
  authToken?: string | undefined;
1503
1503
  } | {
@@ -1539,10 +1539,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1539
1539
  fingerprintHash: string;
1540
1540
  } | {
1541
1541
  type: "clear-auth-token";
1542
- fingerprintId: string;
1542
+ userId: string;
1543
1543
  authToken: string;
1544
+ fingerprintId: string;
1544
1545
  fingerprintHash: string;
1545
- userId: string;
1546
1546
  } | {
1547
1547
  type: "generate-commit-message";
1548
1548
  fingerprintId: string;
@@ -1593,26 +1593,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1593
1593
  filePath: z.ZodString;
1594
1594
  content: z.ZodString;
1595
1595
  }, "strip", z.ZodTypeAny, {
1596
- type: "patch" | "file";
1597
- filePath: string;
1598
1596
  content: string;
1599
- }, {
1600
- type: "patch" | "file";
1597
+ type: "file" | "patch";
1601
1598
  filePath: string;
1599
+ }, {
1602
1600
  content: string;
1601
+ type: "file" | "patch";
1602
+ filePath: string;
1603
1603
  }>, "many">;
1604
1604
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1605
1605
  type: z.ZodEnum<["patch", "file"]>;
1606
1606
  filePath: z.ZodString;
1607
1607
  content: z.ZodString;
1608
1608
  }, "strip", z.ZodTypeAny, {
1609
- type: "patch" | "file";
1610
- filePath: string;
1611
1609
  content: string;
1612
- }, {
1613
- type: "patch" | "file";
1610
+ type: "file" | "patch";
1614
1611
  filePath: string;
1612
+ }, {
1615
1613
  content: string;
1614
+ type: "file" | "patch";
1615
+ filePath: string;
1616
1616
  }>, "many">;
1617
1617
  addedFileVersions: z.ZodArray<z.ZodObject<{
1618
1618
  path: z.ZodString;
@@ -1626,61 +1626,61 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1626
1626
  }>, "many">;
1627
1627
  resetFileVersions: z.ZodBoolean;
1628
1628
  }, {
1629
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
1630
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
1629
1631
  usage: z.ZodOptional<z.ZodNumber>;
1630
1632
  limit: z.ZodOptional<z.ZodNumber>;
1631
1633
  referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1632
- subscription_active: z.ZodOptional<z.ZodBoolean>;
1633
- next_quota_reset: z.ZodOptional<z.ZodDate>;
1634
1634
  session_credits_used: z.ZodOptional<z.ZodNumber>;
1635
1635
  }>, "strip", z.ZodTypeAny, {
1636
1636
  type: "response-complete";
1637
+ response: string;
1637
1638
  userInputId: string;
1638
1639
  changesAlreadyApplied: {
1639
- type: "patch" | "file";
1640
- filePath: string;
1641
1640
  content: string;
1641
+ type: "file" | "patch";
1642
+ filePath: string;
1642
1643
  }[];
1643
- response: string;
1644
1644
  changes: {
1645
- type: "patch" | "file";
1646
- filePath: string;
1647
1645
  content: string;
1646
+ type: "file" | "patch";
1647
+ filePath: string;
1648
1648
  }[];
1649
1649
  addedFileVersions: {
1650
1650
  path: string;
1651
1651
  content: string;
1652
1652
  }[];
1653
1653
  resetFileVersions: boolean;
1654
+ subscription_active?: boolean | undefined;
1655
+ next_quota_reset?: Date | undefined;
1654
1656
  usage?: number | undefined;
1655
1657
  limit?: number | undefined;
1656
1658
  referralLink?: string | undefined;
1657
- subscription_active?: boolean | undefined;
1658
- next_quota_reset?: Date | undefined;
1659
1659
  session_credits_used?: number | undefined;
1660
1660
  }, {
1661
1661
  type: "response-complete";
1662
+ response: string;
1662
1663
  userInputId: string;
1663
1664
  changesAlreadyApplied: {
1664
- type: "patch" | "file";
1665
- filePath: string;
1666
1665
  content: string;
1666
+ type: "file" | "patch";
1667
+ filePath: string;
1667
1668
  }[];
1668
- response: string;
1669
1669
  changes: {
1670
- type: "patch" | "file";
1671
- filePath: string;
1672
1670
  content: string;
1671
+ type: "file" | "patch";
1672
+ filePath: string;
1673
1673
  }[];
1674
1674
  addedFileVersions: {
1675
1675
  path: string;
1676
1676
  content: string;
1677
1677
  }[];
1678
1678
  resetFileVersions: boolean;
1679
+ subscription_active?: boolean | undefined;
1680
+ next_quota_reset?: Date | undefined;
1679
1681
  usage?: number | undefined;
1680
1682
  limit?: number | undefined;
1681
1683
  referralLink?: string | undefined;
1682
- subscription_active?: boolean | undefined;
1683
- next_quota_reset?: Date | undefined;
1684
1684
  session_credits_used?: number | undefined;
1685
1685
  }>, z.ZodObject<{
1686
1686
  type: z.ZodLiteral<"read-files">;
@@ -1713,26 +1713,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1713
1713
  filePath: z.ZodString;
1714
1714
  content: z.ZodString;
1715
1715
  }, "strip", z.ZodTypeAny, {
1716
- type: "patch" | "file";
1717
- filePath: string;
1718
1716
  content: string;
1719
- }, {
1720
- type: "patch" | "file";
1717
+ type: "file" | "patch";
1721
1718
  filePath: string;
1719
+ }, {
1722
1720
  content: string;
1721
+ type: "file" | "patch";
1722
+ filePath: string;
1723
1723
  }>, "many">;
1724
1724
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
1725
1725
  type: z.ZodEnum<["patch", "file"]>;
1726
1726
  filePath: z.ZodString;
1727
1727
  content: z.ZodString;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
- type: "patch" | "file";
1730
- filePath: string;
1731
1729
  content: string;
1732
- }, {
1733
- type: "patch" | "file";
1730
+ type: "file" | "patch";
1734
1731
  filePath: string;
1732
+ }, {
1735
1733
  content: string;
1734
+ type: "file" | "patch";
1735
+ filePath: string;
1736
1736
  }>, "many">;
1737
1737
  addedFileVersions: z.ZodArray<z.ZodObject<{
1738
1738
  path: z.ZodString;
@@ -1747,52 +1747,52 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1747
1747
  resetFileVersions: z.ZodBoolean;
1748
1748
  }, "strip", z.ZodTypeAny, {
1749
1749
  type: "tool-call";
1750
+ data: {
1751
+ name: string;
1752
+ id: string;
1753
+ input: Record<string, any>;
1754
+ };
1755
+ response: string;
1750
1756
  userInputId: string;
1751
1757
  changesAlreadyApplied: {
1752
- type: "patch" | "file";
1753
- filePath: string;
1754
1758
  content: string;
1759
+ type: "file" | "patch";
1760
+ filePath: string;
1755
1761
  }[];
1756
- response: string;
1757
1762
  changes: {
1758
- type: "patch" | "file";
1759
- filePath: string;
1760
1763
  content: string;
1764
+ type: "file" | "patch";
1765
+ filePath: string;
1761
1766
  }[];
1762
1767
  addedFileVersions: {
1763
1768
  path: string;
1764
1769
  content: string;
1765
1770
  }[];
1766
1771
  resetFileVersions: boolean;
1772
+ }, {
1773
+ type: "tool-call";
1767
1774
  data: {
1768
1775
  name: string;
1769
1776
  id: string;
1770
1777
  input: Record<string, any>;
1771
1778
  };
1772
- }, {
1773
- type: "tool-call";
1779
+ response: string;
1774
1780
  userInputId: string;
1775
1781
  changesAlreadyApplied: {
1776
- type: "patch" | "file";
1777
- filePath: string;
1778
1782
  content: string;
1783
+ type: "file" | "patch";
1784
+ filePath: string;
1779
1785
  }[];
1780
- response: string;
1781
1786
  changes: {
1782
- type: "patch" | "file";
1783
- filePath: string;
1784
1787
  content: string;
1788
+ type: "file" | "patch";
1789
+ filePath: string;
1785
1790
  }[];
1786
1791
  addedFileVersions: {
1787
1792
  path: string;
1788
1793
  content: string;
1789
1794
  }[];
1790
1795
  resetFileVersions: boolean;
1791
- data: {
1792
- name: string;
1793
- id: string;
1794
- input: Record<string, any>;
1795
- };
1796
1796
  }>, z.ZodObject<{
1797
1797
  type: z.ZodLiteral<"terminal-command-result">;
1798
1798
  userInputId: z.ZodString;
@@ -1829,18 +1829,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1829
1829
  session_credits_used: z.ZodNumber;
1830
1830
  }, "type">>, "strip", z.ZodTypeAny, {
1831
1831
  type: "init-response";
1832
- usage: number;
1833
- limit: number;
1834
1832
  subscription_active: boolean;
1835
1833
  next_quota_reset: Date;
1834
+ usage: number;
1835
+ limit: number;
1836
1836
  session_credits_used: number;
1837
1837
  referralLink?: string | undefined;
1838
1838
  }, {
1839
1839
  type: "init-response";
1840
- usage: number;
1841
- limit: number;
1842
1840
  subscription_active: boolean;
1843
1841
  next_quota_reset: Date;
1842
+ usage: number;
1843
+ limit: number;
1844
1844
  session_credits_used: number;
1845
1845
  referralLink?: string | undefined;
1846
1846
  }>, z.ZodObject<{
@@ -1853,41 +1853,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1853
1853
  fingerprintId: z.ZodString;
1854
1854
  fingerprintHash: z.ZodString;
1855
1855
  }, "strip", z.ZodTypeAny, {
1856
+ email: string;
1856
1857
  name: string | null;
1857
1858
  id: string;
1858
- fingerprintId: string;
1859
1859
  authToken: string;
1860
- email: string;
1860
+ fingerprintId: string;
1861
1861
  fingerprintHash: string;
1862
1862
  }, {
1863
+ email: string;
1863
1864
  name: string | null;
1864
1865
  id: string;
1865
- fingerprintId: string;
1866
1866
  authToken: string;
1867
- email: string;
1867
+ fingerprintId: string;
1868
1868
  fingerprintHash: string;
1869
1869
  }>>;
1870
1870
  message: z.ZodString;
1871
1871
  }, "strip", z.ZodTypeAny, {
1872
- type: "auth-result";
1873
1872
  message: string;
1873
+ type: "auth-result";
1874
1874
  user?: {
1875
+ email: string;
1875
1876
  name: string | null;
1876
1877
  id: string;
1877
- fingerprintId: string;
1878
1878
  authToken: string;
1879
- email: string;
1879
+ fingerprintId: string;
1880
1880
  fingerprintHash: string;
1881
1881
  } | undefined;
1882
1882
  }, {
1883
- type: "auth-result";
1884
1883
  message: string;
1884
+ type: "auth-result";
1885
1885
  user?: {
1886
+ email: string;
1886
1887
  name: string | null;
1887
1888
  id: string;
1888
- fingerprintId: string;
1889
1889
  authToken: string;
1890
- email: string;
1890
+ fingerprintId: string;
1891
1891
  fingerprintHash: string;
1892
1892
  } | undefined;
1893
1893
  }>, z.ZodObject<{
@@ -1915,29 +1915,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1915
1915
  session_credits_used: z.ZodNumber;
1916
1916
  }, "strip", z.ZodTypeAny, {
1917
1917
  type: "usage-response";
1918
- usage: number;
1919
- limit: number;
1920
1918
  subscription_active: boolean;
1921
1919
  next_quota_reset: Date;
1920
+ usage: number;
1921
+ limit: number;
1922
1922
  session_credits_used: number;
1923
1923
  referralLink?: string | undefined;
1924
1924
  }, {
1925
1925
  type: "usage-response";
1926
- usage: number;
1927
- limit: number;
1928
1926
  subscription_active: boolean;
1929
1927
  next_quota_reset: Date;
1928
+ usage: number;
1929
+ limit: number;
1930
1930
  session_credits_used: number;
1931
1931
  referralLink?: string | undefined;
1932
1932
  }>, z.ZodObject<{
1933
1933
  type: z.ZodLiteral<"action-error">;
1934
1934
  message: z.ZodString;
1935
1935
  }, "strip", z.ZodTypeAny, {
1936
- type: "action-error";
1937
1936
  message: string;
1938
- }, {
1939
1937
  type: "action-error";
1938
+ }, {
1940
1939
  message: string;
1940
+ type: "action-error";
1941
1941
  }>, z.ZodObject<{
1942
1942
  type: z.ZodLiteral<"commit-message-response">;
1943
1943
  commitMessage: z.ZodString;
@@ -1952,44 +1952,44 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1952
1952
  type: "action";
1953
1953
  data: {
1954
1954
  type: "usage-response";
1955
- usage: number;
1956
- limit: number;
1957
1955
  subscription_active: boolean;
1958
1956
  next_quota_reset: Date;
1957
+ usage: number;
1958
+ limit: number;
1959
1959
  session_credits_used: number;
1960
1960
  referralLink?: string | undefined;
1961
1961
  } | {
1962
1962
  type: "init-response";
1963
- usage: number;
1964
- limit: number;
1965
1963
  subscription_active: boolean;
1966
1964
  next_quota_reset: Date;
1965
+ usage: number;
1966
+ limit: number;
1967
1967
  session_credits_used: number;
1968
1968
  referralLink?: string | undefined;
1969
1969
  } | {
1970
1970
  type: "response-complete";
1971
+ response: string;
1971
1972
  userInputId: string;
1972
1973
  changesAlreadyApplied: {
1973
- type: "patch" | "file";
1974
- filePath: string;
1975
1974
  content: string;
1975
+ type: "file" | "patch";
1976
+ filePath: string;
1976
1977
  }[];
1977
- response: string;
1978
1978
  changes: {
1979
- type: "patch" | "file";
1980
- filePath: string;
1981
1979
  content: string;
1980
+ type: "file" | "patch";
1981
+ filePath: string;
1982
1982
  }[];
1983
1983
  addedFileVersions: {
1984
1984
  path: string;
1985
1985
  content: string;
1986
1986
  }[];
1987
1987
  resetFileVersions: boolean;
1988
+ subscription_active?: boolean | undefined;
1989
+ next_quota_reset?: Date | undefined;
1988
1990
  usage?: number | undefined;
1989
1991
  limit?: number | undefined;
1990
1992
  referralLink?: string | undefined;
1991
- subscription_active?: boolean | undefined;
1992
- next_quota_reset?: Date | undefined;
1993
1993
  session_credits_used?: number | undefined;
1994
1994
  } | {
1995
1995
  type: "response-chunk";
@@ -2000,28 +2000,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2000
2000
  filePaths: string[];
2001
2001
  } | {
2002
2002
  type: "tool-call";
2003
+ data: {
2004
+ name: string;
2005
+ id: string;
2006
+ input: Record<string, any>;
2007
+ };
2008
+ response: string;
2003
2009
  userInputId: string;
2004
2010
  changesAlreadyApplied: {
2005
- type: "patch" | "file";
2006
- filePath: string;
2007
2011
  content: string;
2012
+ type: "file" | "patch";
2013
+ filePath: string;
2008
2014
  }[];
2009
- response: string;
2010
2015
  changes: {
2011
- type: "patch" | "file";
2012
- filePath: string;
2013
2016
  content: string;
2017
+ type: "file" | "patch";
2018
+ filePath: string;
2014
2019
  }[];
2015
2020
  addedFileVersions: {
2016
2021
  path: string;
2017
2022
  content: string;
2018
2023
  }[];
2019
2024
  resetFileVersions: boolean;
2020
- data: {
2021
- name: string;
2022
- id: string;
2023
- input: Record<string, any>;
2024
- };
2025
2025
  } | {
2026
2026
  type: "terminal-command-result";
2027
2027
  userInputId: string;
@@ -2031,14 +2031,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2031
2031
  isUpToDate: boolean;
2032
2032
  latestVersion: string;
2033
2033
  } | {
2034
- type: "auth-result";
2035
2034
  message: string;
2035
+ type: "auth-result";
2036
2036
  user?: {
2037
+ email: string;
2037
2038
  name: string | null;
2038
2039
  id: string;
2039
- fingerprintId: string;
2040
2040
  authToken: string;
2041
- email: string;
2041
+ fingerprintId: string;
2042
2042
  fingerprintHash: string;
2043
2043
  } | undefined;
2044
2044
  } | {
@@ -2047,8 +2047,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2047
2047
  fingerprintHash: string;
2048
2048
  loginUrl: string;
2049
2049
  } | {
2050
- type: "action-error";
2051
2050
  message: string;
2051
+ type: "action-error";
2052
2052
  } | {
2053
2053
  type: "commit-message-response";
2054
2054
  commitMessage: string;
@@ -2057,44 +2057,44 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2057
2057
  type: "action";
2058
2058
  data: {
2059
2059
  type: "usage-response";
2060
- usage: number;
2061
- limit: number;
2062
2060
  subscription_active: boolean;
2063
2061
  next_quota_reset: Date;
2062
+ usage: number;
2063
+ limit: number;
2064
2064
  session_credits_used: number;
2065
2065
  referralLink?: string | undefined;
2066
2066
  } | {
2067
2067
  type: "init-response";
2068
- usage: number;
2069
- limit: number;
2070
2068
  subscription_active: boolean;
2071
2069
  next_quota_reset: Date;
2070
+ usage: number;
2071
+ limit: number;
2072
2072
  session_credits_used: number;
2073
2073
  referralLink?: string | undefined;
2074
2074
  } | {
2075
2075
  type: "response-complete";
2076
+ response: string;
2076
2077
  userInputId: string;
2077
2078
  changesAlreadyApplied: {
2078
- type: "patch" | "file";
2079
- filePath: string;
2080
2079
  content: string;
2080
+ type: "file" | "patch";
2081
+ filePath: string;
2081
2082
  }[];
2082
- response: string;
2083
2083
  changes: {
2084
- type: "patch" | "file";
2085
- filePath: string;
2086
2084
  content: string;
2085
+ type: "file" | "patch";
2086
+ filePath: string;
2087
2087
  }[];
2088
2088
  addedFileVersions: {
2089
2089
  path: string;
2090
2090
  content: string;
2091
2091
  }[];
2092
2092
  resetFileVersions: boolean;
2093
+ subscription_active?: boolean | undefined;
2094
+ next_quota_reset?: Date | undefined;
2093
2095
  usage?: number | undefined;
2094
2096
  limit?: number | undefined;
2095
2097
  referralLink?: string | undefined;
2096
- subscription_active?: boolean | undefined;
2097
- next_quota_reset?: Date | undefined;
2098
2098
  session_credits_used?: number | undefined;
2099
2099
  } | {
2100
2100
  type: "response-chunk";
@@ -2105,28 +2105,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2105
2105
  filePaths: string[];
2106
2106
  } | {
2107
2107
  type: "tool-call";
2108
+ data: {
2109
+ name: string;
2110
+ id: string;
2111
+ input: Record<string, any>;
2112
+ };
2113
+ response: string;
2108
2114
  userInputId: string;
2109
2115
  changesAlreadyApplied: {
2110
- type: "patch" | "file";
2111
- filePath: string;
2112
2116
  content: string;
2117
+ type: "file" | "patch";
2118
+ filePath: string;
2113
2119
  }[];
2114
- response: string;
2115
2120
  changes: {
2116
- type: "patch" | "file";
2117
- filePath: string;
2118
2121
  content: string;
2122
+ type: "file" | "patch";
2123
+ filePath: string;
2119
2124
  }[];
2120
2125
  addedFileVersions: {
2121
2126
  path: string;
2122
2127
  content: string;
2123
2128
  }[];
2124
2129
  resetFileVersions: boolean;
2125
- data: {
2126
- name: string;
2127
- id: string;
2128
- input: Record<string, any>;
2129
- };
2130
2130
  } | {
2131
2131
  type: "terminal-command-result";
2132
2132
  userInputId: string;
@@ -2136,14 +2136,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2136
2136
  isUpToDate: boolean;
2137
2137
  latestVersion: string;
2138
2138
  } | {
2139
- type: "auth-result";
2140
2139
  message: string;
2140
+ type: "auth-result";
2141
2141
  user?: {
2142
+ email: string;
2142
2143
  name: string | null;
2143
2144
  id: string;
2144
- fingerprintId: string;
2145
2145
  authToken: string;
2146
- email: string;
2146
+ fingerprintId: string;
2147
2147
  fingerprintHash: string;
2148
2148
  } | undefined;
2149
2149
  } | {
@@ -2152,8 +2152,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2152
2152
  fingerprintHash: string;
2153
2153
  loginUrl: string;
2154
2154
  } | {
2155
- type: "action-error";
2156
2155
  message: string;
2156
+ type: "action-error";
2157
2157
  } | {
2158
2158
  type: "commit-message-response";
2159
2159
  commitMessage: string;
@@ -2198,26 +2198,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2198
2198
  filePath: z.ZodString;
2199
2199
  content: z.ZodString;
2200
2200
  }, "strip", z.ZodTypeAny, {
2201
- type: "patch" | "file";
2202
- filePath: string;
2203
2201
  content: string;
2204
- }, {
2205
- type: "patch" | "file";
2202
+ type: "file" | "patch";
2206
2203
  filePath: string;
2204
+ }, {
2207
2205
  content: string;
2206
+ type: "file" | "patch";
2207
+ filePath: string;
2208
2208
  }>, "many">;
2209
2209
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2210
2210
  type: z.ZodEnum<["patch", "file"]>;
2211
2211
  filePath: z.ZodString;
2212
2212
  content: z.ZodString;
2213
2213
  }, "strip", z.ZodTypeAny, {
2214
- type: "patch" | "file";
2215
- filePath: string;
2216
2214
  content: string;
2217
- }, {
2218
- type: "patch" | "file";
2215
+ type: "file" | "patch";
2219
2216
  filePath: string;
2217
+ }, {
2220
2218
  content: string;
2219
+ type: "file" | "patch";
2220
+ filePath: string;
2221
2221
  }>, "many">;
2222
2222
  addedFileVersions: z.ZodArray<z.ZodObject<{
2223
2223
  path: z.ZodString;
@@ -2231,61 +2231,61 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2231
2231
  }>, "many">;
2232
2232
  resetFileVersions: z.ZodBoolean;
2233
2233
  }, {
2234
+ subscription_active: z.ZodOptional<z.ZodBoolean>;
2235
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
2234
2236
  usage: z.ZodOptional<z.ZodNumber>;
2235
2237
  limit: z.ZodOptional<z.ZodNumber>;
2236
2238
  referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2237
- subscription_active: z.ZodOptional<z.ZodBoolean>;
2238
- next_quota_reset: z.ZodOptional<z.ZodDate>;
2239
2239
  session_credits_used: z.ZodOptional<z.ZodNumber>;
2240
2240
  }>, "strip", z.ZodTypeAny, {
2241
2241
  type: "response-complete";
2242
+ response: string;
2242
2243
  userInputId: string;
2243
2244
  changesAlreadyApplied: {
2244
- type: "patch" | "file";
2245
- filePath: string;
2246
2245
  content: string;
2246
+ type: "file" | "patch";
2247
+ filePath: string;
2247
2248
  }[];
2248
- response: string;
2249
2249
  changes: {
2250
- type: "patch" | "file";
2251
- filePath: string;
2252
2250
  content: string;
2251
+ type: "file" | "patch";
2252
+ filePath: string;
2253
2253
  }[];
2254
2254
  addedFileVersions: {
2255
2255
  path: string;
2256
2256
  content: string;
2257
2257
  }[];
2258
2258
  resetFileVersions: boolean;
2259
+ subscription_active?: boolean | undefined;
2260
+ next_quota_reset?: Date | undefined;
2259
2261
  usage?: number | undefined;
2260
2262
  limit?: number | undefined;
2261
2263
  referralLink?: string | undefined;
2262
- subscription_active?: boolean | undefined;
2263
- next_quota_reset?: Date | undefined;
2264
2264
  session_credits_used?: number | undefined;
2265
2265
  }, {
2266
2266
  type: "response-complete";
2267
+ response: string;
2267
2268
  userInputId: string;
2268
2269
  changesAlreadyApplied: {
2269
- type: "patch" | "file";
2270
- filePath: string;
2271
2270
  content: string;
2271
+ type: "file" | "patch";
2272
+ filePath: string;
2272
2273
  }[];
2273
- response: string;
2274
2274
  changes: {
2275
- type: "patch" | "file";
2276
- filePath: string;
2277
2275
  content: string;
2276
+ type: "file" | "patch";
2277
+ filePath: string;
2278
2278
  }[];
2279
2279
  addedFileVersions: {
2280
2280
  path: string;
2281
2281
  content: string;
2282
2282
  }[];
2283
2283
  resetFileVersions: boolean;
2284
+ subscription_active?: boolean | undefined;
2285
+ next_quota_reset?: Date | undefined;
2284
2286
  usage?: number | undefined;
2285
2287
  limit?: number | undefined;
2286
2288
  referralLink?: string | undefined;
2287
- subscription_active?: boolean | undefined;
2288
- next_quota_reset?: Date | undefined;
2289
2289
  session_credits_used?: number | undefined;
2290
2290
  }>, z.ZodObject<{
2291
2291
  type: z.ZodLiteral<"read-files">;
@@ -2318,26 +2318,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2318
2318
  filePath: z.ZodString;
2319
2319
  content: z.ZodString;
2320
2320
  }, "strip", z.ZodTypeAny, {
2321
- type: "patch" | "file";
2322
- filePath: string;
2323
2321
  content: string;
2324
- }, {
2325
- type: "patch" | "file";
2322
+ type: "file" | "patch";
2326
2323
  filePath: string;
2324
+ }, {
2327
2325
  content: string;
2326
+ type: "file" | "patch";
2327
+ filePath: string;
2328
2328
  }>, "many">;
2329
2329
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2330
2330
  type: z.ZodEnum<["patch", "file"]>;
2331
2331
  filePath: z.ZodString;
2332
2332
  content: z.ZodString;
2333
2333
  }, "strip", z.ZodTypeAny, {
2334
- type: "patch" | "file";
2335
- filePath: string;
2336
2334
  content: string;
2337
- }, {
2338
- type: "patch" | "file";
2335
+ type: "file" | "patch";
2339
2336
  filePath: string;
2337
+ }, {
2340
2338
  content: string;
2339
+ type: "file" | "patch";
2340
+ filePath: string;
2341
2341
  }>, "many">;
2342
2342
  addedFileVersions: z.ZodArray<z.ZodObject<{
2343
2343
  path: z.ZodString;
@@ -2352,52 +2352,52 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2352
2352
  resetFileVersions: z.ZodBoolean;
2353
2353
  }, "strip", z.ZodTypeAny, {
2354
2354
  type: "tool-call";
2355
+ data: {
2356
+ name: string;
2357
+ id: string;
2358
+ input: Record<string, any>;
2359
+ };
2360
+ response: string;
2355
2361
  userInputId: string;
2356
2362
  changesAlreadyApplied: {
2357
- type: "patch" | "file";
2358
- filePath: string;
2359
2363
  content: string;
2364
+ type: "file" | "patch";
2365
+ filePath: string;
2360
2366
  }[];
2361
- response: string;
2362
2367
  changes: {
2363
- type: "patch" | "file";
2364
- filePath: string;
2365
2368
  content: string;
2369
+ type: "file" | "patch";
2370
+ filePath: string;
2366
2371
  }[];
2367
2372
  addedFileVersions: {
2368
2373
  path: string;
2369
2374
  content: string;
2370
2375
  }[];
2371
2376
  resetFileVersions: boolean;
2377
+ }, {
2378
+ type: "tool-call";
2372
2379
  data: {
2373
2380
  name: string;
2374
2381
  id: string;
2375
2382
  input: Record<string, any>;
2376
2383
  };
2377
- }, {
2378
- type: "tool-call";
2384
+ response: string;
2379
2385
  userInputId: string;
2380
2386
  changesAlreadyApplied: {
2381
- type: "patch" | "file";
2382
- filePath: string;
2383
2387
  content: string;
2388
+ type: "file" | "patch";
2389
+ filePath: string;
2384
2390
  }[];
2385
- response: string;
2386
2391
  changes: {
2387
- type: "patch" | "file";
2388
- filePath: string;
2389
2392
  content: string;
2393
+ type: "file" | "patch";
2394
+ filePath: string;
2390
2395
  }[];
2391
2396
  addedFileVersions: {
2392
2397
  path: string;
2393
2398
  content: string;
2394
2399
  }[];
2395
2400
  resetFileVersions: boolean;
2396
- data: {
2397
- name: string;
2398
- id: string;
2399
- input: Record<string, any>;
2400
- };
2401
2401
  }>, z.ZodObject<{
2402
2402
  type: z.ZodLiteral<"terminal-command-result">;
2403
2403
  userInputId: z.ZodString;
@@ -2434,18 +2434,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2434
2434
  session_credits_used: z.ZodNumber;
2435
2435
  }, "type">>, "strip", z.ZodTypeAny, {
2436
2436
  type: "init-response";
2437
- usage: number;
2438
- limit: number;
2439
2437
  subscription_active: boolean;
2440
2438
  next_quota_reset: Date;
2439
+ usage: number;
2440
+ limit: number;
2441
2441
  session_credits_used: number;
2442
2442
  referralLink?: string | undefined;
2443
2443
  }, {
2444
2444
  type: "init-response";
2445
- usage: number;
2446
- limit: number;
2447
2445
  subscription_active: boolean;
2448
2446
  next_quota_reset: Date;
2447
+ usage: number;
2448
+ limit: number;
2449
2449
  session_credits_used: number;
2450
2450
  referralLink?: string | undefined;
2451
2451
  }>, z.ZodObject<{
@@ -2458,41 +2458,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2458
2458
  fingerprintId: z.ZodString;
2459
2459
  fingerprintHash: z.ZodString;
2460
2460
  }, "strip", z.ZodTypeAny, {
2461
+ email: string;
2461
2462
  name: string | null;
2462
2463
  id: string;
2463
- fingerprintId: string;
2464
2464
  authToken: string;
2465
- email: string;
2465
+ fingerprintId: string;
2466
2466
  fingerprintHash: string;
2467
2467
  }, {
2468
+ email: string;
2468
2469
  name: string | null;
2469
2470
  id: string;
2470
- fingerprintId: string;
2471
2471
  authToken: string;
2472
- email: string;
2472
+ fingerprintId: string;
2473
2473
  fingerprintHash: string;
2474
2474
  }>>;
2475
2475
  message: z.ZodString;
2476
2476
  }, "strip", z.ZodTypeAny, {
2477
- type: "auth-result";
2478
2477
  message: string;
2478
+ type: "auth-result";
2479
2479
  user?: {
2480
+ email: string;
2480
2481
  name: string | null;
2481
2482
  id: string;
2482
- fingerprintId: string;
2483
2483
  authToken: string;
2484
- email: string;
2484
+ fingerprintId: string;
2485
2485
  fingerprintHash: string;
2486
2486
  } | undefined;
2487
2487
  }, {
2488
- type: "auth-result";
2489
2488
  message: string;
2489
+ type: "auth-result";
2490
2490
  user?: {
2491
+ email: string;
2491
2492
  name: string | null;
2492
2493
  id: string;
2493
- fingerprintId: string;
2494
2494
  authToken: string;
2495
- email: string;
2495
+ fingerprintId: string;
2496
2496
  fingerprintHash: string;
2497
2497
  } | undefined;
2498
2498
  }>, z.ZodObject<{
@@ -2520,29 +2520,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2520
2520
  session_credits_used: z.ZodNumber;
2521
2521
  }, "strip", z.ZodTypeAny, {
2522
2522
  type: "usage-response";
2523
- usage: number;
2524
- limit: number;
2525
2523
  subscription_active: boolean;
2526
2524
  next_quota_reset: Date;
2525
+ usage: number;
2526
+ limit: number;
2527
2527
  session_credits_used: number;
2528
2528
  referralLink?: string | undefined;
2529
2529
  }, {
2530
2530
  type: "usage-response";
2531
- usage: number;
2532
- limit: number;
2533
2531
  subscription_active: boolean;
2534
2532
  next_quota_reset: Date;
2533
+ usage: number;
2534
+ limit: number;
2535
2535
  session_credits_used: number;
2536
2536
  referralLink?: string | undefined;
2537
2537
  }>, z.ZodObject<{
2538
2538
  type: z.ZodLiteral<"action-error">;
2539
2539
  message: z.ZodString;
2540
2540
  }, "strip", z.ZodTypeAny, {
2541
- type: "action-error";
2542
2541
  message: string;
2543
- }, {
2544
2542
  type: "action-error";
2543
+ }, {
2545
2544
  message: string;
2545
+ type: "action-error";
2546
2546
  }>, z.ZodObject<{
2547
2547
  type: z.ZodLiteral<"commit-message-response">;
2548
2548
  commitMessage: z.ZodString;
@@ -2557,44 +2557,44 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2557
2557
  type: "action";
2558
2558
  data: {
2559
2559
  type: "usage-response";
2560
- usage: number;
2561
- limit: number;
2562
2560
  subscription_active: boolean;
2563
2561
  next_quota_reset: Date;
2562
+ usage: number;
2563
+ limit: number;
2564
2564
  session_credits_used: number;
2565
2565
  referralLink?: string | undefined;
2566
2566
  } | {
2567
2567
  type: "init-response";
2568
- usage: number;
2569
- limit: number;
2570
2568
  subscription_active: boolean;
2571
2569
  next_quota_reset: Date;
2570
+ usage: number;
2571
+ limit: number;
2572
2572
  session_credits_used: number;
2573
2573
  referralLink?: string | undefined;
2574
2574
  } | {
2575
2575
  type: "response-complete";
2576
+ response: string;
2576
2577
  userInputId: string;
2577
2578
  changesAlreadyApplied: {
2578
- type: "patch" | "file";
2579
- filePath: string;
2580
2579
  content: string;
2580
+ type: "file" | "patch";
2581
+ filePath: string;
2581
2582
  }[];
2582
- response: string;
2583
2583
  changes: {
2584
- type: "patch" | "file";
2585
- filePath: string;
2586
2584
  content: string;
2585
+ type: "file" | "patch";
2586
+ filePath: string;
2587
2587
  }[];
2588
2588
  addedFileVersions: {
2589
2589
  path: string;
2590
2590
  content: string;
2591
2591
  }[];
2592
2592
  resetFileVersions: boolean;
2593
+ subscription_active?: boolean | undefined;
2594
+ next_quota_reset?: Date | undefined;
2593
2595
  usage?: number | undefined;
2594
2596
  limit?: number | undefined;
2595
2597
  referralLink?: string | undefined;
2596
- subscription_active?: boolean | undefined;
2597
- next_quota_reset?: Date | undefined;
2598
2598
  session_credits_used?: number | undefined;
2599
2599
  } | {
2600
2600
  type: "response-chunk";
@@ -2605,28 +2605,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2605
2605
  filePaths: string[];
2606
2606
  } | {
2607
2607
  type: "tool-call";
2608
+ data: {
2609
+ name: string;
2610
+ id: string;
2611
+ input: Record<string, any>;
2612
+ };
2613
+ response: string;
2608
2614
  userInputId: string;
2609
2615
  changesAlreadyApplied: {
2610
- type: "patch" | "file";
2611
- filePath: string;
2612
2616
  content: string;
2617
+ type: "file" | "patch";
2618
+ filePath: string;
2613
2619
  }[];
2614
- response: string;
2615
2620
  changes: {
2616
- type: "patch" | "file";
2617
- filePath: string;
2618
2621
  content: string;
2622
+ type: "file" | "patch";
2623
+ filePath: string;
2619
2624
  }[];
2620
2625
  addedFileVersions: {
2621
2626
  path: string;
2622
2627
  content: string;
2623
2628
  }[];
2624
2629
  resetFileVersions: boolean;
2625
- data: {
2626
- name: string;
2627
- id: string;
2628
- input: Record<string, any>;
2629
- };
2630
2630
  } | {
2631
2631
  type: "terminal-command-result";
2632
2632
  userInputId: string;
@@ -2636,14 +2636,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2636
2636
  isUpToDate: boolean;
2637
2637
  latestVersion: string;
2638
2638
  } | {
2639
- type: "auth-result";
2640
2639
  message: string;
2640
+ type: "auth-result";
2641
2641
  user?: {
2642
+ email: string;
2642
2643
  name: string | null;
2643
2644
  id: string;
2644
- fingerprintId: string;
2645
2645
  authToken: string;
2646
- email: string;
2646
+ fingerprintId: string;
2647
2647
  fingerprintHash: string;
2648
2648
  } | undefined;
2649
2649
  } | {
@@ -2652,8 +2652,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2652
2652
  fingerprintHash: string;
2653
2653
  loginUrl: string;
2654
2654
  } | {
2655
- type: "action-error";
2656
2655
  message: string;
2656
+ type: "action-error";
2657
2657
  } | {
2658
2658
  type: "commit-message-response";
2659
2659
  commitMessage: string;
@@ -2662,44 +2662,44 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2662
2662
  type: "action";
2663
2663
  data: {
2664
2664
  type: "usage-response";
2665
- usage: number;
2666
- limit: number;
2667
2665
  subscription_active: boolean;
2668
2666
  next_quota_reset: Date;
2667
+ usage: number;
2668
+ limit: number;
2669
2669
  session_credits_used: number;
2670
2670
  referralLink?: string | undefined;
2671
2671
  } | {
2672
2672
  type: "init-response";
2673
- usage: number;
2674
- limit: number;
2675
2673
  subscription_active: boolean;
2676
2674
  next_quota_reset: Date;
2675
+ usage: number;
2676
+ limit: number;
2677
2677
  session_credits_used: number;
2678
2678
  referralLink?: string | undefined;
2679
2679
  } | {
2680
2680
  type: "response-complete";
2681
+ response: string;
2681
2682
  userInputId: string;
2682
2683
  changesAlreadyApplied: {
2683
- type: "patch" | "file";
2684
- filePath: string;
2685
2684
  content: string;
2685
+ type: "file" | "patch";
2686
+ filePath: string;
2686
2687
  }[];
2687
- response: string;
2688
2688
  changes: {
2689
- type: "patch" | "file";
2690
- filePath: string;
2691
2689
  content: string;
2690
+ type: "file" | "patch";
2691
+ filePath: string;
2692
2692
  }[];
2693
2693
  addedFileVersions: {
2694
2694
  path: string;
2695
2695
  content: string;
2696
2696
  }[];
2697
2697
  resetFileVersions: boolean;
2698
+ subscription_active?: boolean | undefined;
2699
+ next_quota_reset?: Date | undefined;
2698
2700
  usage?: number | undefined;
2699
2701
  limit?: number | undefined;
2700
2702
  referralLink?: string | undefined;
2701
- subscription_active?: boolean | undefined;
2702
- next_quota_reset?: Date | undefined;
2703
2703
  session_credits_used?: number | undefined;
2704
2704
  } | {
2705
2705
  type: "response-chunk";
@@ -2710,28 +2710,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2710
2710
  filePaths: string[];
2711
2711
  } | {
2712
2712
  type: "tool-call";
2713
+ data: {
2714
+ name: string;
2715
+ id: string;
2716
+ input: Record<string, any>;
2717
+ };
2718
+ response: string;
2713
2719
  userInputId: string;
2714
2720
  changesAlreadyApplied: {
2715
- type: "patch" | "file";
2716
- filePath: string;
2717
2721
  content: string;
2722
+ type: "file" | "patch";
2723
+ filePath: string;
2718
2724
  }[];
2719
- response: string;
2720
2725
  changes: {
2721
- type: "patch" | "file";
2722
- filePath: string;
2723
2726
  content: string;
2727
+ type: "file" | "patch";
2728
+ filePath: string;
2724
2729
  }[];
2725
2730
  addedFileVersions: {
2726
2731
  path: string;
2727
2732
  content: string;
2728
2733
  }[];
2729
2734
  resetFileVersions: boolean;
2730
- data: {
2731
- name: string;
2732
- id: string;
2733
- input: Record<string, any>;
2734
- };
2735
2735
  } | {
2736
2736
  type: "terminal-command-result";
2737
2737
  userInputId: string;
@@ -2741,14 +2741,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2741
2741
  isUpToDate: boolean;
2742
2742
  latestVersion: string;
2743
2743
  } | {
2744
- type: "auth-result";
2745
2744
  message: string;
2745
+ type: "auth-result";
2746
2746
  user?: {
2747
+ email: string;
2747
2748
  name: string | null;
2748
2749
  id: string;
2749
- fingerprintId: string;
2750
2750
  authToken: string;
2751
- email: string;
2751
+ fingerprintId: string;
2752
2752
  fingerprintHash: string;
2753
2753
  } | undefined;
2754
2754
  } | {
@@ -2757,8 +2757,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2757
2757
  fingerprintHash: string;
2758
2758
  loginUrl: string;
2759
2759
  } | {
2760
- type: "action-error";
2761
2760
  message: string;
2761
+ type: "action-error";
2762
2762
  } | {
2763
2763
  type: "commit-message-response";
2764
2764
  commitMessage: string;