codebuff 1.0.117 → 1.0.118
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.
- package/dist/client.d.ts +3 -3
- package/dist/client.js +16 -23
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +43 -43
- package/dist/common/db/schema.d.ts +63 -1
- package/dist/common/util/stripe.js +7 -7
- package/dist/common/util/stripe.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +110 -110
- package/package.json +1 -1
- package/dist/common/scripts/update-subscriptions.d.ts +0 -1
- package/dist/common/scripts/update-subscriptions.js +0 -92
- package/dist/common/scripts/update-subscriptions.js.map +0 -1
|
@@ -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
|
-
userId: string;
|
|
544
543
|
authToken: string;
|
|
545
544
|
fingerprintId: string;
|
|
546
545
|
fingerprintHash: string;
|
|
546
|
+
userId: string;
|
|
547
547
|
}, {
|
|
548
548
|
type: "clear-auth-token";
|
|
549
|
-
userId: string;
|
|
550
549
|
authToken: string;
|
|
551
550
|
fingerprintId: string;
|
|
552
551
|
fingerprintHash: string;
|
|
552
|
+
userId: string;
|
|
553
553
|
}>, z.ZodObject<{
|
|
554
554
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
555
555
|
fingerprintId: z.ZodString;
|
|
@@ -660,10 +660,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
660
660
|
fingerprintHash: string;
|
|
661
661
|
} | {
|
|
662
662
|
type: "clear-auth-token";
|
|
663
|
-
userId: string;
|
|
664
663
|
authToken: string;
|
|
665
664
|
fingerprintId: string;
|
|
666
665
|
fingerprintHash: string;
|
|
666
|
+
userId: string;
|
|
667
667
|
} | {
|
|
668
668
|
type: "generate-commit-message";
|
|
669
669
|
fingerprintId: string;
|
|
@@ -765,10 +765,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
765
765
|
fingerprintHash: string;
|
|
766
766
|
} | {
|
|
767
767
|
type: "clear-auth-token";
|
|
768
|
-
userId: string;
|
|
769
768
|
authToken: string;
|
|
770
769
|
fingerprintId: string;
|
|
771
770
|
fingerprintHash: string;
|
|
771
|
+
userId: string;
|
|
772
772
|
} | {
|
|
773
773
|
type: "generate-commit-message";
|
|
774
774
|
fingerprintId: string;
|
|
@@ -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
|
-
userId: string;
|
|
1318
1317
|
authToken: string;
|
|
1319
1318
|
fingerprintId: string;
|
|
1320
1319
|
fingerprintHash: string;
|
|
1320
|
+
userId: string;
|
|
1321
1321
|
}, {
|
|
1322
1322
|
type: "clear-auth-token";
|
|
1323
|
-
userId: string;
|
|
1324
1323
|
authToken: string;
|
|
1325
1324
|
fingerprintId: string;
|
|
1326
1325
|
fingerprintHash: string;
|
|
1326
|
+
userId: string;
|
|
1327
1327
|
}>, z.ZodObject<{
|
|
1328
1328
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
1329
1329
|
fingerprintId: z.ZodString;
|
|
@@ -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
|
-
userId: string;
|
|
1438
1437
|
authToken: string;
|
|
1439
1438
|
fingerprintId: string;
|
|
1440
1439
|
fingerprintHash: string;
|
|
1440
|
+
userId: string;
|
|
1441
1441
|
} | {
|
|
1442
1442
|
type: "generate-commit-message";
|
|
1443
1443
|
fingerprintId: string;
|
|
@@ -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
|
-
userId: string;
|
|
1543
1542
|
authToken: string;
|
|
1544
1543
|
fingerprintId: string;
|
|
1545
1544
|
fingerprintHash: string;
|
|
1545
|
+
userId: string;
|
|
1546
1546
|
} | {
|
|
1547
1547
|
type: "generate-commit-message";
|
|
1548
1548
|
fingerprintId: string;
|
|
@@ -1626,21 +1626,21 @@ 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>;
|
|
1631
1629
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1632
1630
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1633
1631
|
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;
|
|
1638
1637
|
userInputId: string;
|
|
1639
1638
|
changesAlreadyApplied: {
|
|
1640
1639
|
content: string;
|
|
1641
1640
|
type: "file" | "patch";
|
|
1642
1641
|
filePath: string;
|
|
1643
1642
|
}[];
|
|
1643
|
+
response: string;
|
|
1644
1644
|
changes: {
|
|
1645
1645
|
content: string;
|
|
1646
1646
|
type: "file" | "patch";
|
|
@@ -1651,21 +1651,21 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1651
1651
|
content: string;
|
|
1652
1652
|
}[];
|
|
1653
1653
|
resetFileVersions: boolean;
|
|
1654
|
-
subscription_active?: boolean | undefined;
|
|
1655
|
-
next_quota_reset?: Date | undefined;
|
|
1656
1654
|
usage?: number | undefined;
|
|
1657
1655
|
limit?: number | undefined;
|
|
1658
1656
|
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;
|
|
1663
1662
|
userInputId: string;
|
|
1664
1663
|
changesAlreadyApplied: {
|
|
1665
1664
|
content: string;
|
|
1666
1665
|
type: "file" | "patch";
|
|
1667
1666
|
filePath: string;
|
|
1668
1667
|
}[];
|
|
1668
|
+
response: string;
|
|
1669
1669
|
changes: {
|
|
1670
1670
|
content: string;
|
|
1671
1671
|
type: "file" | "patch";
|
|
@@ -1676,11 +1676,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1676
1676
|
content: string;
|
|
1677
1677
|
}[];
|
|
1678
1678
|
resetFileVersions: boolean;
|
|
1679
|
-
subscription_active?: boolean | undefined;
|
|
1680
|
-
next_quota_reset?: Date | undefined;
|
|
1681
1679
|
usage?: number | undefined;
|
|
1682
1680
|
limit?: number | undefined;
|
|
1683
1681
|
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">;
|
|
@@ -1747,18 +1747,13 @@ 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;
|
|
1756
1750
|
userInputId: string;
|
|
1757
1751
|
changesAlreadyApplied: {
|
|
1758
1752
|
content: string;
|
|
1759
1753
|
type: "file" | "patch";
|
|
1760
1754
|
filePath: string;
|
|
1761
1755
|
}[];
|
|
1756
|
+
response: string;
|
|
1762
1757
|
changes: {
|
|
1763
1758
|
content: string;
|
|
1764
1759
|
type: "file" | "patch";
|
|
@@ -1769,20 +1764,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1769
1764
|
content: string;
|
|
1770
1765
|
}[];
|
|
1771
1766
|
resetFileVersions: boolean;
|
|
1772
|
-
}, {
|
|
1773
|
-
type: "tool-call";
|
|
1774
1767
|
data: {
|
|
1775
1768
|
name: string;
|
|
1776
1769
|
id: string;
|
|
1777
1770
|
input: Record<string, any>;
|
|
1778
1771
|
};
|
|
1779
|
-
|
|
1772
|
+
}, {
|
|
1773
|
+
type: "tool-call";
|
|
1780
1774
|
userInputId: string;
|
|
1781
1775
|
changesAlreadyApplied: {
|
|
1782
1776
|
content: string;
|
|
1783
1777
|
type: "file" | "patch";
|
|
1784
1778
|
filePath: string;
|
|
1785
1779
|
}[];
|
|
1780
|
+
response: string;
|
|
1786
1781
|
changes: {
|
|
1787
1782
|
content: string;
|
|
1788
1783
|
type: "file" | "patch";
|
|
@@ -1793,6 +1788,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1793
1788
|
content: string;
|
|
1794
1789
|
}[];
|
|
1795
1790
|
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
|
-
subscription_active: boolean;
|
|
1833
|
-
next_quota_reset: Date;
|
|
1834
1832
|
usage: number;
|
|
1835
1833
|
limit: number;
|
|
1834
|
+
subscription_active: boolean;
|
|
1835
|
+
next_quota_reset: Date;
|
|
1836
1836
|
session_credits_used: number;
|
|
1837
1837
|
referralLink?: string | undefined;
|
|
1838
1838
|
}, {
|
|
1839
1839
|
type: "init-response";
|
|
1840
|
-
subscription_active: boolean;
|
|
1841
|
-
next_quota_reset: Date;
|
|
1842
1840
|
usage: number;
|
|
1843
1841
|
limit: number;
|
|
1842
|
+
subscription_active: boolean;
|
|
1843
|
+
next_quota_reset: Date;
|
|
1844
1844
|
session_credits_used: number;
|
|
1845
1845
|
referralLink?: string | undefined;
|
|
1846
1846
|
}>, z.ZodObject<{
|
|
@@ -1915,18 +1915,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1915
1915
|
session_credits_used: z.ZodNumber;
|
|
1916
1916
|
}, "strip", z.ZodTypeAny, {
|
|
1917
1917
|
type: "usage-response";
|
|
1918
|
-
subscription_active: boolean;
|
|
1919
|
-
next_quota_reset: Date;
|
|
1920
1918
|
usage: number;
|
|
1921
1919
|
limit: number;
|
|
1920
|
+
subscription_active: boolean;
|
|
1921
|
+
next_quota_reset: Date;
|
|
1922
1922
|
session_credits_used: number;
|
|
1923
1923
|
referralLink?: string | undefined;
|
|
1924
1924
|
}, {
|
|
1925
1925
|
type: "usage-response";
|
|
1926
|
-
subscription_active: boolean;
|
|
1927
|
-
next_quota_reset: Date;
|
|
1928
1926
|
usage: number;
|
|
1929
1927
|
limit: number;
|
|
1928
|
+
subscription_active: boolean;
|
|
1929
|
+
next_quota_reset: Date;
|
|
1930
1930
|
session_credits_used: number;
|
|
1931
1931
|
referralLink?: string | undefined;
|
|
1932
1932
|
}>, z.ZodObject<{
|
|
@@ -1952,29 +1952,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1952
1952
|
type: "action";
|
|
1953
1953
|
data: {
|
|
1954
1954
|
type: "usage-response";
|
|
1955
|
-
subscription_active: boolean;
|
|
1956
|
-
next_quota_reset: Date;
|
|
1957
1955
|
usage: number;
|
|
1958
1956
|
limit: number;
|
|
1957
|
+
subscription_active: boolean;
|
|
1958
|
+
next_quota_reset: Date;
|
|
1959
1959
|
session_credits_used: number;
|
|
1960
1960
|
referralLink?: string | undefined;
|
|
1961
1961
|
} | {
|
|
1962
1962
|
type: "init-response";
|
|
1963
|
-
subscription_active: boolean;
|
|
1964
|
-
next_quota_reset: Date;
|
|
1965
1963
|
usage: number;
|
|
1966
1964
|
limit: number;
|
|
1965
|
+
subscription_active: boolean;
|
|
1966
|
+
next_quota_reset: Date;
|
|
1967
1967
|
session_credits_used: number;
|
|
1968
1968
|
referralLink?: string | undefined;
|
|
1969
1969
|
} | {
|
|
1970
1970
|
type: "response-complete";
|
|
1971
|
-
response: string;
|
|
1972
1971
|
userInputId: string;
|
|
1973
1972
|
changesAlreadyApplied: {
|
|
1974
1973
|
content: string;
|
|
1975
1974
|
type: "file" | "patch";
|
|
1976
1975
|
filePath: string;
|
|
1977
1976
|
}[];
|
|
1977
|
+
response: string;
|
|
1978
1978
|
changes: {
|
|
1979
1979
|
content: string;
|
|
1980
1980
|
type: "file" | "patch";
|
|
@@ -1985,11 +1985,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1985
1985
|
content: string;
|
|
1986
1986
|
}[];
|
|
1987
1987
|
resetFileVersions: boolean;
|
|
1988
|
-
subscription_active?: boolean | undefined;
|
|
1989
|
-
next_quota_reset?: Date | undefined;
|
|
1990
1988
|
usage?: number | undefined;
|
|
1991
1989
|
limit?: number | undefined;
|
|
1992
1990
|
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,18 +2000,13 @@ 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;
|
|
2009
2003
|
userInputId: string;
|
|
2010
2004
|
changesAlreadyApplied: {
|
|
2011
2005
|
content: string;
|
|
2012
2006
|
type: "file" | "patch";
|
|
2013
2007
|
filePath: string;
|
|
2014
2008
|
}[];
|
|
2009
|
+
response: string;
|
|
2015
2010
|
changes: {
|
|
2016
2011
|
content: string;
|
|
2017
2012
|
type: "file" | "patch";
|
|
@@ -2022,6 +2017,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2022
2017
|
content: string;
|
|
2023
2018
|
}[];
|
|
2024
2019
|
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;
|
|
@@ -2057,29 +2057,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2057
2057
|
type: "action";
|
|
2058
2058
|
data: {
|
|
2059
2059
|
type: "usage-response";
|
|
2060
|
-
subscription_active: boolean;
|
|
2061
|
-
next_quota_reset: Date;
|
|
2062
2060
|
usage: number;
|
|
2063
2061
|
limit: number;
|
|
2062
|
+
subscription_active: boolean;
|
|
2063
|
+
next_quota_reset: Date;
|
|
2064
2064
|
session_credits_used: number;
|
|
2065
2065
|
referralLink?: string | undefined;
|
|
2066
2066
|
} | {
|
|
2067
2067
|
type: "init-response";
|
|
2068
|
-
subscription_active: boolean;
|
|
2069
|
-
next_quota_reset: Date;
|
|
2070
2068
|
usage: number;
|
|
2071
2069
|
limit: number;
|
|
2070
|
+
subscription_active: boolean;
|
|
2071
|
+
next_quota_reset: Date;
|
|
2072
2072
|
session_credits_used: number;
|
|
2073
2073
|
referralLink?: string | undefined;
|
|
2074
2074
|
} | {
|
|
2075
2075
|
type: "response-complete";
|
|
2076
|
-
response: string;
|
|
2077
2076
|
userInputId: string;
|
|
2078
2077
|
changesAlreadyApplied: {
|
|
2079
2078
|
content: string;
|
|
2080
2079
|
type: "file" | "patch";
|
|
2081
2080
|
filePath: string;
|
|
2082
2081
|
}[];
|
|
2082
|
+
response: string;
|
|
2083
2083
|
changes: {
|
|
2084
2084
|
content: string;
|
|
2085
2085
|
type: "file" | "patch";
|
|
@@ -2090,11 +2090,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2090
2090
|
content: string;
|
|
2091
2091
|
}[];
|
|
2092
2092
|
resetFileVersions: boolean;
|
|
2093
|
-
subscription_active?: boolean | undefined;
|
|
2094
|
-
next_quota_reset?: Date | undefined;
|
|
2095
2093
|
usage?: number | undefined;
|
|
2096
2094
|
limit?: number | undefined;
|
|
2097
2095
|
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,18 +2105,13 @@ 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;
|
|
2114
2108
|
userInputId: string;
|
|
2115
2109
|
changesAlreadyApplied: {
|
|
2116
2110
|
content: string;
|
|
2117
2111
|
type: "file" | "patch";
|
|
2118
2112
|
filePath: string;
|
|
2119
2113
|
}[];
|
|
2114
|
+
response: string;
|
|
2120
2115
|
changes: {
|
|
2121
2116
|
content: string;
|
|
2122
2117
|
type: "file" | "patch";
|
|
@@ -2127,6 +2122,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2127
2122
|
content: string;
|
|
2128
2123
|
}[];
|
|
2129
2124
|
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;
|
|
@@ -2231,21 +2231,21 @@ 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>;
|
|
2236
2234
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2237
2235
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2238
2236
|
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;
|
|
2243
2242
|
userInputId: string;
|
|
2244
2243
|
changesAlreadyApplied: {
|
|
2245
2244
|
content: string;
|
|
2246
2245
|
type: "file" | "patch";
|
|
2247
2246
|
filePath: string;
|
|
2248
2247
|
}[];
|
|
2248
|
+
response: string;
|
|
2249
2249
|
changes: {
|
|
2250
2250
|
content: string;
|
|
2251
2251
|
type: "file" | "patch";
|
|
@@ -2256,21 +2256,21 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2256
2256
|
content: string;
|
|
2257
2257
|
}[];
|
|
2258
2258
|
resetFileVersions: boolean;
|
|
2259
|
-
subscription_active?: boolean | undefined;
|
|
2260
|
-
next_quota_reset?: Date | undefined;
|
|
2261
2259
|
usage?: number | undefined;
|
|
2262
2260
|
limit?: number | undefined;
|
|
2263
2261
|
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;
|
|
2268
2267
|
userInputId: string;
|
|
2269
2268
|
changesAlreadyApplied: {
|
|
2270
2269
|
content: string;
|
|
2271
2270
|
type: "file" | "patch";
|
|
2272
2271
|
filePath: string;
|
|
2273
2272
|
}[];
|
|
2273
|
+
response: string;
|
|
2274
2274
|
changes: {
|
|
2275
2275
|
content: string;
|
|
2276
2276
|
type: "file" | "patch";
|
|
@@ -2281,11 +2281,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2281
2281
|
content: string;
|
|
2282
2282
|
}[];
|
|
2283
2283
|
resetFileVersions: boolean;
|
|
2284
|
-
subscription_active?: boolean | undefined;
|
|
2285
|
-
next_quota_reset?: Date | undefined;
|
|
2286
2284
|
usage?: number | undefined;
|
|
2287
2285
|
limit?: number | undefined;
|
|
2288
2286
|
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">;
|
|
@@ -2352,18 +2352,13 @@ 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;
|
|
2361
2355
|
userInputId: string;
|
|
2362
2356
|
changesAlreadyApplied: {
|
|
2363
2357
|
content: string;
|
|
2364
2358
|
type: "file" | "patch";
|
|
2365
2359
|
filePath: string;
|
|
2366
2360
|
}[];
|
|
2361
|
+
response: string;
|
|
2367
2362
|
changes: {
|
|
2368
2363
|
content: string;
|
|
2369
2364
|
type: "file" | "patch";
|
|
@@ -2374,20 +2369,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2374
2369
|
content: string;
|
|
2375
2370
|
}[];
|
|
2376
2371
|
resetFileVersions: boolean;
|
|
2377
|
-
}, {
|
|
2378
|
-
type: "tool-call";
|
|
2379
2372
|
data: {
|
|
2380
2373
|
name: string;
|
|
2381
2374
|
id: string;
|
|
2382
2375
|
input: Record<string, any>;
|
|
2383
2376
|
};
|
|
2384
|
-
|
|
2377
|
+
}, {
|
|
2378
|
+
type: "tool-call";
|
|
2385
2379
|
userInputId: string;
|
|
2386
2380
|
changesAlreadyApplied: {
|
|
2387
2381
|
content: string;
|
|
2388
2382
|
type: "file" | "patch";
|
|
2389
2383
|
filePath: string;
|
|
2390
2384
|
}[];
|
|
2385
|
+
response: string;
|
|
2391
2386
|
changes: {
|
|
2392
2387
|
content: string;
|
|
2393
2388
|
type: "file" | "patch";
|
|
@@ -2398,6 +2393,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2398
2393
|
content: string;
|
|
2399
2394
|
}[];
|
|
2400
2395
|
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
|
-
subscription_active: boolean;
|
|
2438
|
-
next_quota_reset: Date;
|
|
2439
2437
|
usage: number;
|
|
2440
2438
|
limit: number;
|
|
2439
|
+
subscription_active: boolean;
|
|
2440
|
+
next_quota_reset: Date;
|
|
2441
2441
|
session_credits_used: number;
|
|
2442
2442
|
referralLink?: string | undefined;
|
|
2443
2443
|
}, {
|
|
2444
2444
|
type: "init-response";
|
|
2445
|
-
subscription_active: boolean;
|
|
2446
|
-
next_quota_reset: Date;
|
|
2447
2445
|
usage: number;
|
|
2448
2446
|
limit: number;
|
|
2447
|
+
subscription_active: boolean;
|
|
2448
|
+
next_quota_reset: Date;
|
|
2449
2449
|
session_credits_used: number;
|
|
2450
2450
|
referralLink?: string | undefined;
|
|
2451
2451
|
}>, z.ZodObject<{
|
|
@@ -2520,18 +2520,18 @@ 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
|
-
subscription_active: boolean;
|
|
2524
|
-
next_quota_reset: Date;
|
|
2525
2523
|
usage: number;
|
|
2526
2524
|
limit: number;
|
|
2525
|
+
subscription_active: boolean;
|
|
2526
|
+
next_quota_reset: Date;
|
|
2527
2527
|
session_credits_used: number;
|
|
2528
2528
|
referralLink?: string | undefined;
|
|
2529
2529
|
}, {
|
|
2530
2530
|
type: "usage-response";
|
|
2531
|
-
subscription_active: boolean;
|
|
2532
|
-
next_quota_reset: Date;
|
|
2533
2531
|
usage: number;
|
|
2534
2532
|
limit: number;
|
|
2533
|
+
subscription_active: boolean;
|
|
2534
|
+
next_quota_reset: Date;
|
|
2535
2535
|
session_credits_used: number;
|
|
2536
2536
|
referralLink?: string | undefined;
|
|
2537
2537
|
}>, z.ZodObject<{
|
|
@@ -2557,29 +2557,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2557
2557
|
type: "action";
|
|
2558
2558
|
data: {
|
|
2559
2559
|
type: "usage-response";
|
|
2560
|
-
subscription_active: boolean;
|
|
2561
|
-
next_quota_reset: Date;
|
|
2562
2560
|
usage: number;
|
|
2563
2561
|
limit: number;
|
|
2562
|
+
subscription_active: boolean;
|
|
2563
|
+
next_quota_reset: Date;
|
|
2564
2564
|
session_credits_used: number;
|
|
2565
2565
|
referralLink?: string | undefined;
|
|
2566
2566
|
} | {
|
|
2567
2567
|
type: "init-response";
|
|
2568
|
-
subscription_active: boolean;
|
|
2569
|
-
next_quota_reset: Date;
|
|
2570
2568
|
usage: number;
|
|
2571
2569
|
limit: number;
|
|
2570
|
+
subscription_active: boolean;
|
|
2571
|
+
next_quota_reset: Date;
|
|
2572
2572
|
session_credits_used: number;
|
|
2573
2573
|
referralLink?: string | undefined;
|
|
2574
2574
|
} | {
|
|
2575
2575
|
type: "response-complete";
|
|
2576
|
-
response: string;
|
|
2577
2576
|
userInputId: string;
|
|
2578
2577
|
changesAlreadyApplied: {
|
|
2579
2578
|
content: string;
|
|
2580
2579
|
type: "file" | "patch";
|
|
2581
2580
|
filePath: string;
|
|
2582
2581
|
}[];
|
|
2582
|
+
response: string;
|
|
2583
2583
|
changes: {
|
|
2584
2584
|
content: string;
|
|
2585
2585
|
type: "file" | "patch";
|
|
@@ -2590,11 +2590,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2590
2590
|
content: string;
|
|
2591
2591
|
}[];
|
|
2592
2592
|
resetFileVersions: boolean;
|
|
2593
|
-
subscription_active?: boolean | undefined;
|
|
2594
|
-
next_quota_reset?: Date | undefined;
|
|
2595
2593
|
usage?: number | undefined;
|
|
2596
2594
|
limit?: number | undefined;
|
|
2597
2595
|
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,18 +2605,13 @@ 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;
|
|
2614
2608
|
userInputId: string;
|
|
2615
2609
|
changesAlreadyApplied: {
|
|
2616
2610
|
content: string;
|
|
2617
2611
|
type: "file" | "patch";
|
|
2618
2612
|
filePath: string;
|
|
2619
2613
|
}[];
|
|
2614
|
+
response: string;
|
|
2620
2615
|
changes: {
|
|
2621
2616
|
content: string;
|
|
2622
2617
|
type: "file" | "patch";
|
|
@@ -2627,6 +2622,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2627
2622
|
content: string;
|
|
2628
2623
|
}[];
|
|
2629
2624
|
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;
|
|
@@ -2662,29 +2662,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2662
2662
|
type: "action";
|
|
2663
2663
|
data: {
|
|
2664
2664
|
type: "usage-response";
|
|
2665
|
-
subscription_active: boolean;
|
|
2666
|
-
next_quota_reset: Date;
|
|
2667
2665
|
usage: number;
|
|
2668
2666
|
limit: number;
|
|
2667
|
+
subscription_active: boolean;
|
|
2668
|
+
next_quota_reset: Date;
|
|
2669
2669
|
session_credits_used: number;
|
|
2670
2670
|
referralLink?: string | undefined;
|
|
2671
2671
|
} | {
|
|
2672
2672
|
type: "init-response";
|
|
2673
|
-
subscription_active: boolean;
|
|
2674
|
-
next_quota_reset: Date;
|
|
2675
2673
|
usage: number;
|
|
2676
2674
|
limit: number;
|
|
2675
|
+
subscription_active: boolean;
|
|
2676
|
+
next_quota_reset: Date;
|
|
2677
2677
|
session_credits_used: number;
|
|
2678
2678
|
referralLink?: string | undefined;
|
|
2679
2679
|
} | {
|
|
2680
2680
|
type: "response-complete";
|
|
2681
|
-
response: string;
|
|
2682
2681
|
userInputId: string;
|
|
2683
2682
|
changesAlreadyApplied: {
|
|
2684
2683
|
content: string;
|
|
2685
2684
|
type: "file" | "patch";
|
|
2686
2685
|
filePath: string;
|
|
2687
2686
|
}[];
|
|
2687
|
+
response: string;
|
|
2688
2688
|
changes: {
|
|
2689
2689
|
content: string;
|
|
2690
2690
|
type: "file" | "patch";
|
|
@@ -2695,11 +2695,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2695
2695
|
content: string;
|
|
2696
2696
|
}[];
|
|
2697
2697
|
resetFileVersions: boolean;
|
|
2698
|
-
subscription_active?: boolean | undefined;
|
|
2699
|
-
next_quota_reset?: Date | undefined;
|
|
2700
2698
|
usage?: number | undefined;
|
|
2701
2699
|
limit?: number | undefined;
|
|
2702
2700
|
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,18 +2710,13 @@ 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;
|
|
2719
2713
|
userInputId: string;
|
|
2720
2714
|
changesAlreadyApplied: {
|
|
2721
2715
|
content: string;
|
|
2722
2716
|
type: "file" | "patch";
|
|
2723
2717
|
filePath: string;
|
|
2724
2718
|
}[];
|
|
2719
|
+
response: string;
|
|
2725
2720
|
changes: {
|
|
2726
2721
|
content: string;
|
|
2727
2722
|
type: "file" | "patch";
|
|
@@ -2732,6 +2727,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2732
2727
|
content: string;
|
|
2733
2728
|
}[];
|
|
2734
2729
|
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;
|