codebuff 1.0.103 → 1.0.107

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.
@@ -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
- fingerprintId: string;
544
543
  authToken: string;
544
+ fingerprintId: string;
545
545
  fingerprintHash: string;
546
546
  userId: string;
547
547
  }, {
548
548
  type: "clear-auth-token";
549
- fingerprintId: string;
550
549
  authToken: string;
550
+ fingerprintId: string;
551
551
  fingerprintHash: string;
552
552
  userId: string;
553
553
  }>, z.ZodObject<{
@@ -660,8 +660,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
660
660
  fingerprintHash: string;
661
661
  } | {
662
662
  type: "clear-auth-token";
663
- fingerprintId: string;
664
663
  authToken: string;
664
+ fingerprintId: string;
665
665
  fingerprintHash: string;
666
666
  userId: string;
667
667
  } | {
@@ -765,8 +765,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
765
765
  fingerprintHash: string;
766
766
  } | {
767
767
  type: "clear-auth-token";
768
- fingerprintId: string;
769
768
  authToken: string;
769
+ fingerprintId: string;
770
770
  fingerprintHash: string;
771
771
  userId: string;
772
772
  } | {
@@ -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
- fingerprintId: string;
1318
1317
  authToken: string;
1318
+ fingerprintId: string;
1319
1319
  fingerprintHash: string;
1320
1320
  userId: string;
1321
1321
  }, {
1322
1322
  type: "clear-auth-token";
1323
- fingerprintId: string;
1324
1323
  authToken: string;
1324
+ fingerprintId: string;
1325
1325
  fingerprintHash: string;
1326
1326
  userId: string;
1327
1327
  }>, z.ZodObject<{
@@ -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
- fingerprintId: string;
1438
1437
  authToken: string;
1438
+ fingerprintId: string;
1439
1439
  fingerprintHash: string;
1440
1440
  userId: string;
1441
1441
  } | {
@@ -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
- fingerprintId: string;
1543
1542
  authToken: string;
1543
+ fingerprintId: string;
1544
1544
  fingerprintHash: string;
1545
1545
  userId: string;
1546
1546
  } | {
@@ -1584,7 +1584,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1584
1584
  type: "response-chunk";
1585
1585
  userInputId: string;
1586
1586
  chunk: string;
1587
- }>, z.ZodObject<{
1587
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1588
1588
  type: z.ZodLiteral<"response-complete">;
1589
1589
  userInputId: z.ZodString;
1590
1590
  response: z.ZodString;
@@ -1612,11 +1612,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1612
1612
  content: string;
1613
1613
  }>, "many">;
1614
1614
  resetFileVersions: z.ZodBoolean;
1615
+ }, {
1615
1616
  usage: z.ZodOptional<z.ZodNumber>;
1616
1617
  limit: z.ZodOptional<z.ZodNumber>;
1618
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1617
1619
  subscription_active: z.ZodOptional<z.ZodBoolean>;
1618
- referralLink: z.ZodOptional<z.ZodString>;
1619
- }, "strip", z.ZodTypeAny, {
1620
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
1621
+ session_credits_used: z.ZodOptional<z.ZodNumber>;
1622
+ }>, "strip", z.ZodTypeAny, {
1620
1623
  type: "response-complete";
1621
1624
  userInputId: string;
1622
1625
  response: string;
@@ -1632,8 +1635,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1632
1635
  resetFileVersions: boolean;
1633
1636
  usage?: number | undefined;
1634
1637
  limit?: number | undefined;
1635
- subscription_active?: boolean | undefined;
1636
1638
  referralLink?: string | undefined;
1639
+ subscription_active?: boolean | undefined;
1640
+ next_quota_reset?: Date | undefined;
1641
+ session_credits_used?: number | undefined;
1637
1642
  }, {
1638
1643
  type: "response-complete";
1639
1644
  userInputId: string;
@@ -1650,8 +1655,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1650
1655
  resetFileVersions: boolean;
1651
1656
  usage?: number | undefined;
1652
1657
  limit?: number | undefined;
1653
- subscription_active?: boolean | undefined;
1654
1658
  referralLink?: string | undefined;
1659
+ subscription_active?: boolean | undefined;
1660
+ next_quota_reset?: Date | undefined;
1661
+ session_credits_used?: number | undefined;
1655
1662
  }>, z.ZodObject<{
1656
1663
  type: z.ZodLiteral<"read-files">;
1657
1664
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -1764,12 +1771,32 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1764
1771
  type: "npm-version-status";
1765
1772
  isUpToDate: boolean;
1766
1773
  latestVersion: string;
1767
- }>, z.ZodObject<{
1774
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1768
1775
  type: z.ZodLiteral<"init-response">;
1769
- }, "strip", z.ZodTypeAny, {
1776
+ }, Omit<{
1777
+ type: z.ZodLiteral<"usage-response">;
1778
+ usage: z.ZodNumber;
1779
+ limit: z.ZodNumber;
1780
+ referralLink: z.ZodOptional<z.ZodString>;
1781
+ subscription_active: z.ZodBoolean;
1782
+ next_quota_reset: z.ZodDate;
1783
+ session_credits_used: z.ZodNumber;
1784
+ }, "type">>, "strip", z.ZodTypeAny, {
1770
1785
  type: "init-response";
1786
+ usage: number;
1787
+ limit: number;
1788
+ subscription_active: boolean;
1789
+ next_quota_reset: Date;
1790
+ session_credits_used: number;
1791
+ referralLink?: string | undefined;
1771
1792
  }, {
1772
1793
  type: "init-response";
1794
+ usage: number;
1795
+ limit: number;
1796
+ subscription_active: boolean;
1797
+ next_quota_reset: Date;
1798
+ session_credits_used: number;
1799
+ referralLink?: string | undefined;
1773
1800
  }>, z.ZodObject<{
1774
1801
  type: z.ZodLiteral<"auth-result">;
1775
1802
  user: z.ZodOptional<z.ZodObject<{
@@ -1783,15 +1810,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1783
1810
  email: string;
1784
1811
  name: string | null;
1785
1812
  id: string;
1786
- fingerprintId: string;
1787
1813
  authToken: string;
1814
+ fingerprintId: string;
1788
1815
  fingerprintHash: string;
1789
1816
  }, {
1790
1817
  email: string;
1791
1818
  name: string | null;
1792
1819
  id: string;
1793
- fingerprintId: string;
1794
1820
  authToken: string;
1821
+ fingerprintId: string;
1795
1822
  fingerprintHash: string;
1796
1823
  }>>;
1797
1824
  message: z.ZodString;
@@ -1802,8 +1829,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1802
1829
  email: string;
1803
1830
  name: string | null;
1804
1831
  id: string;
1805
- fingerprintId: string;
1806
1832
  authToken: string;
1833
+ fingerprintId: string;
1807
1834
  fingerprintHash: string;
1808
1835
  } | undefined;
1809
1836
  }, {
@@ -1813,8 +1840,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1813
1840
  email: string;
1814
1841
  name: string | null;
1815
1842
  id: string;
1816
- fingerprintId: string;
1817
1843
  authToken: string;
1844
+ fingerprintId: string;
1818
1845
  fingerprintHash: string;
1819
1846
  } | undefined;
1820
1847
  }>, z.ZodObject<{
@@ -1838,17 +1865,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1838
1865
  limit: z.ZodNumber;
1839
1866
  referralLink: z.ZodOptional<z.ZodString>;
1840
1867
  subscription_active: z.ZodBoolean;
1868
+ next_quota_reset: z.ZodDate;
1869
+ session_credits_used: z.ZodNumber;
1841
1870
  }, "strip", z.ZodTypeAny, {
1842
1871
  type: "usage-response";
1843
1872
  usage: number;
1844
1873
  limit: number;
1845
1874
  subscription_active: boolean;
1875
+ next_quota_reset: Date;
1876
+ session_credits_used: number;
1846
1877
  referralLink?: string | undefined;
1847
1878
  }, {
1848
1879
  type: "usage-response";
1849
1880
  usage: number;
1850
1881
  limit: number;
1851
1882
  subscription_active: boolean;
1883
+ next_quota_reset: Date;
1884
+ session_credits_used: number;
1852
1885
  referralLink?: string | undefined;
1853
1886
  }>, z.ZodObject<{
1854
1887
  type: z.ZodLiteral<"action-error">;
@@ -1872,9 +1905,21 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1872
1905
  }, "strip", z.ZodTypeAny, {
1873
1906
  type: "action";
1874
1907
  data: {
1875
- type: "response-chunk";
1876
- userInputId: string;
1877
- chunk: string;
1908
+ type: "usage-response";
1909
+ usage: number;
1910
+ limit: number;
1911
+ subscription_active: boolean;
1912
+ next_quota_reset: Date;
1913
+ session_credits_used: number;
1914
+ referralLink?: string | undefined;
1915
+ } | {
1916
+ type: "init-response";
1917
+ usage: number;
1918
+ limit: number;
1919
+ subscription_active: boolean;
1920
+ next_quota_reset: Date;
1921
+ session_credits_used: number;
1922
+ referralLink?: string | undefined;
1878
1923
  } | {
1879
1924
  type: "response-complete";
1880
1925
  userInputId: string;
@@ -1891,8 +1936,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1891
1936
  resetFileVersions: boolean;
1892
1937
  usage?: number | undefined;
1893
1938
  limit?: number | undefined;
1894
- subscription_active?: boolean | undefined;
1895
1939
  referralLink?: string | undefined;
1940
+ subscription_active?: boolean | undefined;
1941
+ next_quota_reset?: Date | undefined;
1942
+ session_credits_used?: number | undefined;
1943
+ } | {
1944
+ type: "response-chunk";
1945
+ userInputId: string;
1946
+ chunk: string;
1896
1947
  } | {
1897
1948
  type: "read-files";
1898
1949
  filePaths: string[];
@@ -1923,8 +1974,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1923
1974
  type: "npm-version-status";
1924
1975
  isUpToDate: boolean;
1925
1976
  latestVersion: string;
1926
- } | {
1927
- type: "init-response";
1928
1977
  } | {
1929
1978
  message: string;
1930
1979
  type: "auth-result";
@@ -1932,8 +1981,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1932
1981
  email: string;
1933
1982
  name: string | null;
1934
1983
  id: string;
1935
- fingerprintId: string;
1936
1984
  authToken: string;
1985
+ fingerprintId: string;
1937
1986
  fingerprintHash: string;
1938
1987
  } | undefined;
1939
1988
  } | {
@@ -1941,12 +1990,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1941
1990
  fingerprintId: string;
1942
1991
  fingerprintHash: string;
1943
1992
  loginUrl: string;
1944
- } | {
1945
- type: "usage-response";
1946
- usage: number;
1947
- limit: number;
1948
- subscription_active: boolean;
1949
- referralLink?: string | undefined;
1950
1993
  } | {
1951
1994
  message: string;
1952
1995
  type: "action-error";
@@ -1957,9 +2000,21 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1957
2000
  }, {
1958
2001
  type: "action";
1959
2002
  data: {
1960
- type: "response-chunk";
1961
- userInputId: string;
1962
- chunk: string;
2003
+ type: "usage-response";
2004
+ usage: number;
2005
+ limit: number;
2006
+ subscription_active: boolean;
2007
+ next_quota_reset: Date;
2008
+ session_credits_used: number;
2009
+ referralLink?: string | undefined;
2010
+ } | {
2011
+ type: "init-response";
2012
+ usage: number;
2013
+ limit: number;
2014
+ subscription_active: boolean;
2015
+ next_quota_reset: Date;
2016
+ session_credits_used: number;
2017
+ referralLink?: string | undefined;
1963
2018
  } | {
1964
2019
  type: "response-complete";
1965
2020
  userInputId: string;
@@ -1976,8 +2031,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1976
2031
  resetFileVersions: boolean;
1977
2032
  usage?: number | undefined;
1978
2033
  limit?: number | undefined;
1979
- subscription_active?: boolean | undefined;
1980
2034
  referralLink?: string | undefined;
2035
+ subscription_active?: boolean | undefined;
2036
+ next_quota_reset?: Date | undefined;
2037
+ session_credits_used?: number | undefined;
2038
+ } | {
2039
+ type: "response-chunk";
2040
+ userInputId: string;
2041
+ chunk: string;
1981
2042
  } | {
1982
2043
  type: "read-files";
1983
2044
  filePaths: string[];
@@ -2008,8 +2069,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2008
2069
  type: "npm-version-status";
2009
2070
  isUpToDate: boolean;
2010
2071
  latestVersion: string;
2011
- } | {
2012
- type: "init-response";
2013
2072
  } | {
2014
2073
  message: string;
2015
2074
  type: "auth-result";
@@ -2017,8 +2076,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2017
2076
  email: string;
2018
2077
  name: string | null;
2019
2078
  id: string;
2020
- fingerprintId: string;
2021
2079
  authToken: string;
2080
+ fingerprintId: string;
2022
2081
  fingerprintHash: string;
2023
2082
  } | undefined;
2024
2083
  } | {
@@ -2026,12 +2085,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2026
2085
  fingerprintId: string;
2027
2086
  fingerprintHash: string;
2028
2087
  loginUrl: string;
2029
- } | {
2030
- type: "usage-response";
2031
- usage: number;
2032
- limit: number;
2033
- subscription_active: boolean;
2034
- referralLink?: string | undefined;
2035
2088
  } | {
2036
2089
  message: string;
2037
2090
  type: "action-error";
@@ -2070,7 +2123,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2070
2123
  type: "response-chunk";
2071
2124
  userInputId: string;
2072
2125
  chunk: string;
2073
- }>, z.ZodObject<{
2126
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2074
2127
  type: z.ZodLiteral<"response-complete">;
2075
2128
  userInputId: z.ZodString;
2076
2129
  response: z.ZodString;
@@ -2098,11 +2151,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2098
2151
  content: string;
2099
2152
  }>, "many">;
2100
2153
  resetFileVersions: z.ZodBoolean;
2154
+ }, {
2101
2155
  usage: z.ZodOptional<z.ZodNumber>;
2102
2156
  limit: z.ZodOptional<z.ZodNumber>;
2157
+ referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2103
2158
  subscription_active: z.ZodOptional<z.ZodBoolean>;
2104
- referralLink: z.ZodOptional<z.ZodString>;
2105
- }, "strip", z.ZodTypeAny, {
2159
+ next_quota_reset: z.ZodOptional<z.ZodDate>;
2160
+ session_credits_used: z.ZodOptional<z.ZodNumber>;
2161
+ }>, "strip", z.ZodTypeAny, {
2106
2162
  type: "response-complete";
2107
2163
  userInputId: string;
2108
2164
  response: string;
@@ -2118,8 +2174,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2118
2174
  resetFileVersions: boolean;
2119
2175
  usage?: number | undefined;
2120
2176
  limit?: number | undefined;
2121
- subscription_active?: boolean | undefined;
2122
2177
  referralLink?: string | undefined;
2178
+ subscription_active?: boolean | undefined;
2179
+ next_quota_reset?: Date | undefined;
2180
+ session_credits_used?: number | undefined;
2123
2181
  }, {
2124
2182
  type: "response-complete";
2125
2183
  userInputId: string;
@@ -2136,8 +2194,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2136
2194
  resetFileVersions: boolean;
2137
2195
  usage?: number | undefined;
2138
2196
  limit?: number | undefined;
2139
- subscription_active?: boolean | undefined;
2140
2197
  referralLink?: string | undefined;
2198
+ subscription_active?: boolean | undefined;
2199
+ next_quota_reset?: Date | undefined;
2200
+ session_credits_used?: number | undefined;
2141
2201
  }>, z.ZodObject<{
2142
2202
  type: z.ZodLiteral<"read-files">;
2143
2203
  filePaths: z.ZodArray<z.ZodString, "many">;
@@ -2250,12 +2310,32 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2250
2310
  type: "npm-version-status";
2251
2311
  isUpToDate: boolean;
2252
2312
  latestVersion: string;
2253
- }>, z.ZodObject<{
2313
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2254
2314
  type: z.ZodLiteral<"init-response">;
2255
- }, "strip", z.ZodTypeAny, {
2315
+ }, Omit<{
2316
+ type: z.ZodLiteral<"usage-response">;
2317
+ usage: z.ZodNumber;
2318
+ limit: z.ZodNumber;
2319
+ referralLink: z.ZodOptional<z.ZodString>;
2320
+ subscription_active: z.ZodBoolean;
2321
+ next_quota_reset: z.ZodDate;
2322
+ session_credits_used: z.ZodNumber;
2323
+ }, "type">>, "strip", z.ZodTypeAny, {
2256
2324
  type: "init-response";
2325
+ usage: number;
2326
+ limit: number;
2327
+ subscription_active: boolean;
2328
+ next_quota_reset: Date;
2329
+ session_credits_used: number;
2330
+ referralLink?: string | undefined;
2257
2331
  }, {
2258
2332
  type: "init-response";
2333
+ usage: number;
2334
+ limit: number;
2335
+ subscription_active: boolean;
2336
+ next_quota_reset: Date;
2337
+ session_credits_used: number;
2338
+ referralLink?: string | undefined;
2259
2339
  }>, z.ZodObject<{
2260
2340
  type: z.ZodLiteral<"auth-result">;
2261
2341
  user: z.ZodOptional<z.ZodObject<{
@@ -2269,15 +2349,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2269
2349
  email: string;
2270
2350
  name: string | null;
2271
2351
  id: string;
2272
- fingerprintId: string;
2273
2352
  authToken: string;
2353
+ fingerprintId: string;
2274
2354
  fingerprintHash: string;
2275
2355
  }, {
2276
2356
  email: string;
2277
2357
  name: string | null;
2278
2358
  id: string;
2279
- fingerprintId: string;
2280
2359
  authToken: string;
2360
+ fingerprintId: string;
2281
2361
  fingerprintHash: string;
2282
2362
  }>>;
2283
2363
  message: z.ZodString;
@@ -2288,8 +2368,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2288
2368
  email: string;
2289
2369
  name: string | null;
2290
2370
  id: string;
2291
- fingerprintId: string;
2292
2371
  authToken: string;
2372
+ fingerprintId: string;
2293
2373
  fingerprintHash: string;
2294
2374
  } | undefined;
2295
2375
  }, {
@@ -2299,8 +2379,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2299
2379
  email: string;
2300
2380
  name: string | null;
2301
2381
  id: string;
2302
- fingerprintId: string;
2303
2382
  authToken: string;
2383
+ fingerprintId: string;
2304
2384
  fingerprintHash: string;
2305
2385
  } | undefined;
2306
2386
  }>, z.ZodObject<{
@@ -2324,17 +2404,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2324
2404
  limit: z.ZodNumber;
2325
2405
  referralLink: z.ZodOptional<z.ZodString>;
2326
2406
  subscription_active: z.ZodBoolean;
2407
+ next_quota_reset: z.ZodDate;
2408
+ session_credits_used: z.ZodNumber;
2327
2409
  }, "strip", z.ZodTypeAny, {
2328
2410
  type: "usage-response";
2329
2411
  usage: number;
2330
2412
  limit: number;
2331
2413
  subscription_active: boolean;
2414
+ next_quota_reset: Date;
2415
+ session_credits_used: number;
2332
2416
  referralLink?: string | undefined;
2333
2417
  }, {
2334
2418
  type: "usage-response";
2335
2419
  usage: number;
2336
2420
  limit: number;
2337
2421
  subscription_active: boolean;
2422
+ next_quota_reset: Date;
2423
+ session_credits_used: number;
2338
2424
  referralLink?: string | undefined;
2339
2425
  }>, z.ZodObject<{
2340
2426
  type: z.ZodLiteral<"action-error">;
@@ -2358,9 +2444,21 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2358
2444
  }, "strip", z.ZodTypeAny, {
2359
2445
  type: "action";
2360
2446
  data: {
2361
- type: "response-chunk";
2362
- userInputId: string;
2363
- chunk: string;
2447
+ type: "usage-response";
2448
+ usage: number;
2449
+ limit: number;
2450
+ subscription_active: boolean;
2451
+ next_quota_reset: Date;
2452
+ session_credits_used: number;
2453
+ referralLink?: string | undefined;
2454
+ } | {
2455
+ type: "init-response";
2456
+ usage: number;
2457
+ limit: number;
2458
+ subscription_active: boolean;
2459
+ next_quota_reset: Date;
2460
+ session_credits_used: number;
2461
+ referralLink?: string | undefined;
2364
2462
  } | {
2365
2463
  type: "response-complete";
2366
2464
  userInputId: string;
@@ -2377,8 +2475,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2377
2475
  resetFileVersions: boolean;
2378
2476
  usage?: number | undefined;
2379
2477
  limit?: number | undefined;
2380
- subscription_active?: boolean | undefined;
2381
2478
  referralLink?: string | undefined;
2479
+ subscription_active?: boolean | undefined;
2480
+ next_quota_reset?: Date | undefined;
2481
+ session_credits_used?: number | undefined;
2482
+ } | {
2483
+ type: "response-chunk";
2484
+ userInputId: string;
2485
+ chunk: string;
2382
2486
  } | {
2383
2487
  type: "read-files";
2384
2488
  filePaths: string[];
@@ -2409,8 +2513,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2409
2513
  type: "npm-version-status";
2410
2514
  isUpToDate: boolean;
2411
2515
  latestVersion: string;
2412
- } | {
2413
- type: "init-response";
2414
2516
  } | {
2415
2517
  message: string;
2416
2518
  type: "auth-result";
@@ -2418,8 +2520,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2418
2520
  email: string;
2419
2521
  name: string | null;
2420
2522
  id: string;
2421
- fingerprintId: string;
2422
2523
  authToken: string;
2524
+ fingerprintId: string;
2423
2525
  fingerprintHash: string;
2424
2526
  } | undefined;
2425
2527
  } | {
@@ -2427,12 +2529,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2427
2529
  fingerprintId: string;
2428
2530
  fingerprintHash: string;
2429
2531
  loginUrl: string;
2430
- } | {
2431
- type: "usage-response";
2432
- usage: number;
2433
- limit: number;
2434
- subscription_active: boolean;
2435
- referralLink?: string | undefined;
2436
2532
  } | {
2437
2533
  message: string;
2438
2534
  type: "action-error";
@@ -2443,9 +2539,21 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2443
2539
  }, {
2444
2540
  type: "action";
2445
2541
  data: {
2446
- type: "response-chunk";
2447
- userInputId: string;
2448
- chunk: string;
2542
+ type: "usage-response";
2543
+ usage: number;
2544
+ limit: number;
2545
+ subscription_active: boolean;
2546
+ next_quota_reset: Date;
2547
+ session_credits_used: number;
2548
+ referralLink?: string | undefined;
2549
+ } | {
2550
+ type: "init-response";
2551
+ usage: number;
2552
+ limit: number;
2553
+ subscription_active: boolean;
2554
+ next_quota_reset: Date;
2555
+ session_credits_used: number;
2556
+ referralLink?: string | undefined;
2449
2557
  } | {
2450
2558
  type: "response-complete";
2451
2559
  userInputId: string;
@@ -2462,8 +2570,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2462
2570
  resetFileVersions: boolean;
2463
2571
  usage?: number | undefined;
2464
2572
  limit?: number | undefined;
2465
- subscription_active?: boolean | undefined;
2466
2573
  referralLink?: string | undefined;
2574
+ subscription_active?: boolean | undefined;
2575
+ next_quota_reset?: Date | undefined;
2576
+ session_credits_used?: number | undefined;
2577
+ } | {
2578
+ type: "response-chunk";
2579
+ userInputId: string;
2580
+ chunk: string;
2467
2581
  } | {
2468
2582
  type: "read-files";
2469
2583
  filePaths: string[];
@@ -2494,8 +2608,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2494
2608
  type: "npm-version-status";
2495
2609
  isUpToDate: boolean;
2496
2610
  latestVersion: string;
2497
- } | {
2498
- type: "init-response";
2499
2611
  } | {
2500
2612
  message: string;
2501
2613
  type: "auth-result";
@@ -2503,8 +2615,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2503
2615
  email: string;
2504
2616
  name: string | null;
2505
2617
  id: string;
2506
- fingerprintId: string;
2507
2618
  authToken: string;
2619
+ fingerprintId: string;
2508
2620
  fingerprintHash: string;
2509
2621
  } | undefined;
2510
2622
  } | {
@@ -2512,12 +2624,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2512
2624
  fingerprintId: string;
2513
2625
  fingerprintHash: string;
2514
2626
  loginUrl: string;
2515
- } | {
2516
- type: "usage-response";
2517
- usage: number;
2518
- limit: number;
2519
- subscription_active: boolean;
2520
- referralLink?: string | undefined;
2521
2627
  } | {
2522
2628
  message: string;
2523
2629
  type: "action-error";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "1.0.103",
3
+ "version": "1.0.107",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",