codebuff 1.0.134 → 1.0.136
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/chat-storage.js +7 -17
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.js +20 -22
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -5
- package/dist/client.js +7 -17
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.js +7 -17
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.js +7 -17
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +69 -69
- package/dist/common/billing/payment-guards.d.ts +11 -0
- package/dist/common/billing/payment-guards.js +136 -0
- package/dist/common/billing/payment-guards.js.map +1 -0
- package/dist/common/billing/subscription-state.d.ts +13 -0
- package/dist/common/billing/subscription-state.js +117 -0
- package/dist/common/billing/subscription-state.js.map +1 -0
- package/dist/common/billing/webhook-processor.d.ts +21 -0
- package/dist/common/billing/webhook-processor.js +315 -0
- package/dist/common/billing/webhook-processor.js.map +1 -0
- package/dist/common/constants.d.ts +9 -8
- package/dist/common/constants.js +12 -13
- package/dist/common/constants.js.map +1 -1
- package/dist/common/scripts/update-subscriptions.d.ts +1 -0
- package/dist/common/scripts/update-subscriptions.js +92 -0
- package/dist/common/scripts/update-subscriptions.js.map +1 -0
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/promise.d.ts +1 -0
- package/dist/common/util/promise.js +3 -1
- package/dist/common/util/promise.js.map +1 -1
- package/dist/common/util/string.js +15 -11
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/logger-interface.d.ts +6 -0
- package/dist/common/websockets/logger-interface.js +9 -0
- package/dist/common/websockets/logger-interface.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +166 -166
- package/dist/index.js +1 -1
- package/dist/menu.js +7 -17
- package/dist/menu.js.map +1 -1
- package/dist/project-files.js +27 -12
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +21 -23
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/system-info.d.ts +8 -0
- package/dist/utils/system-info.js +22 -0
- package/dist/utils/system-info.js.map +1 -0
- package/package.json +3 -2
|
@@ -651,16 +651,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
651
651
|
fingerprintHash: z.ZodString;
|
|
652
652
|
}, "strip", z.ZodTypeAny, {
|
|
653
653
|
type: "clear-auth-token";
|
|
654
|
-
userId: string;
|
|
655
654
|
fingerprintId: string;
|
|
656
655
|
authToken: string;
|
|
657
656
|
fingerprintHash: string;
|
|
657
|
+
userId: string;
|
|
658
658
|
}, {
|
|
659
659
|
type: "clear-auth-token";
|
|
660
|
-
userId: string;
|
|
661
660
|
fingerprintId: string;
|
|
662
661
|
authToken: string;
|
|
663
662
|
fingerprintHash: string;
|
|
663
|
+
userId: string;
|
|
664
664
|
}>, z.ZodObject<{
|
|
665
665
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
666
666
|
fingerprintId: z.ZodString;
|
|
@@ -788,10 +788,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
788
788
|
fingerprintHash: string;
|
|
789
789
|
} | {
|
|
790
790
|
type: "clear-auth-token";
|
|
791
|
-
userId: string;
|
|
792
791
|
fingerprintId: string;
|
|
793
792
|
authToken: string;
|
|
794
793
|
fingerprintHash: string;
|
|
794
|
+
userId: string;
|
|
795
795
|
} | {
|
|
796
796
|
type: "generate-commit-message";
|
|
797
797
|
fingerprintId: string;
|
|
@@ -910,10 +910,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
910
910
|
fingerprintHash: string;
|
|
911
911
|
} | {
|
|
912
912
|
type: "clear-auth-token";
|
|
913
|
-
userId: string;
|
|
914
913
|
fingerprintId: string;
|
|
915
914
|
authToken: string;
|
|
916
915
|
fingerprintHash: string;
|
|
916
|
+
userId: string;
|
|
917
917
|
} | {
|
|
918
918
|
type: "generate-commit-message";
|
|
919
919
|
fingerprintId: string;
|
|
@@ -1570,16 +1570,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1570
1570
|
fingerprintHash: z.ZodString;
|
|
1571
1571
|
}, "strip", z.ZodTypeAny, {
|
|
1572
1572
|
type: "clear-auth-token";
|
|
1573
|
-
userId: string;
|
|
1574
1573
|
fingerprintId: string;
|
|
1575
1574
|
authToken: string;
|
|
1576
1575
|
fingerprintHash: string;
|
|
1576
|
+
userId: string;
|
|
1577
1577
|
}, {
|
|
1578
1578
|
type: "clear-auth-token";
|
|
1579
|
-
userId: string;
|
|
1580
1579
|
fingerprintId: string;
|
|
1581
1580
|
authToken: string;
|
|
1582
1581
|
fingerprintHash: string;
|
|
1582
|
+
userId: string;
|
|
1583
1583
|
}>, z.ZodObject<{
|
|
1584
1584
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
1585
1585
|
fingerprintId: z.ZodString;
|
|
@@ -1707,10 +1707,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1707
1707
|
fingerprintHash: string;
|
|
1708
1708
|
} | {
|
|
1709
1709
|
type: "clear-auth-token";
|
|
1710
|
-
userId: string;
|
|
1711
1710
|
fingerprintId: string;
|
|
1712
1711
|
authToken: string;
|
|
1713
1712
|
fingerprintHash: string;
|
|
1713
|
+
userId: string;
|
|
1714
1714
|
} | {
|
|
1715
1715
|
type: "generate-commit-message";
|
|
1716
1716
|
fingerprintId: string;
|
|
@@ -1829,10 +1829,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1829
1829
|
fingerprintHash: string;
|
|
1830
1830
|
} | {
|
|
1831
1831
|
type: "clear-auth-token";
|
|
1832
|
-
userId: string;
|
|
1833
1832
|
fingerprintId: string;
|
|
1834
1833
|
authToken: string;
|
|
1835
1834
|
fingerprintHash: string;
|
|
1835
|
+
userId: string;
|
|
1836
1836
|
} | {
|
|
1837
1837
|
type: "generate-commit-message";
|
|
1838
1838
|
fingerprintId: string;
|
|
@@ -1916,21 +1916,21 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1916
1916
|
}>, "many">;
|
|
1917
1917
|
resetFileVersions: z.ZodBoolean;
|
|
1918
1918
|
}, {
|
|
1919
|
-
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
1920
|
-
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
1921
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1922
|
-
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
1923
1919
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1920
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1924
1921
|
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1922
|
+
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
1923
|
+
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
1924
|
+
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
1925
1925
|
}>, "strip", z.ZodTypeAny, {
|
|
1926
1926
|
type: "response-complete";
|
|
1927
|
-
response: string;
|
|
1928
1927
|
userInputId: string;
|
|
1929
1928
|
changesAlreadyApplied: {
|
|
1930
1929
|
type: "patch" | "file";
|
|
1931
1930
|
content: string;
|
|
1932
1931
|
filePath: string;
|
|
1933
1932
|
}[];
|
|
1933
|
+
response: string;
|
|
1934
1934
|
changes: {
|
|
1935
1935
|
type: "patch" | "file";
|
|
1936
1936
|
content: string;
|
|
@@ -1941,21 +1941,21 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1941
1941
|
content: string;
|
|
1942
1942
|
}[];
|
|
1943
1943
|
resetFileVersions: boolean;
|
|
1944
|
-
next_quota_reset?: Date | undefined;
|
|
1945
|
-
subscription_active?: boolean | undefined;
|
|
1946
|
-
limit?: number | undefined;
|
|
1947
|
-
session_credits_used?: number | undefined;
|
|
1948
1944
|
usage?: number | undefined;
|
|
1945
|
+
limit?: number | undefined;
|
|
1949
1946
|
referralLink?: string | undefined;
|
|
1947
|
+
subscription_active?: boolean | undefined;
|
|
1948
|
+
next_quota_reset?: Date | undefined;
|
|
1949
|
+
session_credits_used?: number | undefined;
|
|
1950
1950
|
}, {
|
|
1951
1951
|
type: "response-complete";
|
|
1952
|
-
response: string;
|
|
1953
1952
|
userInputId: string;
|
|
1954
1953
|
changesAlreadyApplied: {
|
|
1955
1954
|
type: "patch" | "file";
|
|
1956
1955
|
content: string;
|
|
1957
1956
|
filePath: string;
|
|
1958
1957
|
}[];
|
|
1958
|
+
response: string;
|
|
1959
1959
|
changes: {
|
|
1960
1960
|
type: "patch" | "file";
|
|
1961
1961
|
content: string;
|
|
@@ -1966,12 +1966,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1966
1966
|
content: string;
|
|
1967
1967
|
}[];
|
|
1968
1968
|
resetFileVersions: boolean;
|
|
1969
|
-
next_quota_reset?: Date | undefined;
|
|
1970
|
-
subscription_active?: boolean | undefined;
|
|
1971
|
-
limit?: number | undefined;
|
|
1972
|
-
session_credits_used?: number | undefined;
|
|
1973
1969
|
usage?: number | undefined;
|
|
1970
|
+
limit?: number | undefined;
|
|
1974
1971
|
referralLink?: string | undefined;
|
|
1972
|
+
subscription_active?: boolean | undefined;
|
|
1973
|
+
next_quota_reset?: Date | undefined;
|
|
1974
|
+
session_credits_used?: number | undefined;
|
|
1975
1975
|
}>, z.ZodObject<{
|
|
1976
1976
|
type: z.ZodLiteral<"read-files">;
|
|
1977
1977
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2037,18 +2037,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2037
2037
|
resetFileVersions: z.ZodBoolean;
|
|
2038
2038
|
}, "strip", z.ZodTypeAny, {
|
|
2039
2039
|
type: "tool-call";
|
|
2040
|
-
data: {
|
|
2041
|
-
id: string;
|
|
2042
|
-
name: string;
|
|
2043
|
-
input: Record<string, any>;
|
|
2044
|
-
};
|
|
2045
|
-
response: string;
|
|
2046
2040
|
userInputId: string;
|
|
2047
2041
|
changesAlreadyApplied: {
|
|
2048
2042
|
type: "patch" | "file";
|
|
2049
2043
|
content: string;
|
|
2050
2044
|
filePath: string;
|
|
2051
2045
|
}[];
|
|
2046
|
+
response: string;
|
|
2052
2047
|
changes: {
|
|
2053
2048
|
type: "patch" | "file";
|
|
2054
2049
|
content: string;
|
|
@@ -2059,20 +2054,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2059
2054
|
content: string;
|
|
2060
2055
|
}[];
|
|
2061
2056
|
resetFileVersions: boolean;
|
|
2062
|
-
}, {
|
|
2063
|
-
type: "tool-call";
|
|
2064
2057
|
data: {
|
|
2065
2058
|
id: string;
|
|
2066
2059
|
name: string;
|
|
2067
2060
|
input: Record<string, any>;
|
|
2068
2061
|
};
|
|
2069
|
-
|
|
2062
|
+
}, {
|
|
2063
|
+
type: "tool-call";
|
|
2070
2064
|
userInputId: string;
|
|
2071
2065
|
changesAlreadyApplied: {
|
|
2072
2066
|
type: "patch" | "file";
|
|
2073
2067
|
content: string;
|
|
2074
2068
|
filePath: string;
|
|
2075
2069
|
}[];
|
|
2070
|
+
response: string;
|
|
2076
2071
|
changes: {
|
|
2077
2072
|
type: "patch" | "file";
|
|
2078
2073
|
content: string;
|
|
@@ -2083,18 +2078,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2083
2078
|
content: string;
|
|
2084
2079
|
}[];
|
|
2085
2080
|
resetFileVersions: boolean;
|
|
2081
|
+
data: {
|
|
2082
|
+
id: string;
|
|
2083
|
+
name: string;
|
|
2084
|
+
input: Record<string, any>;
|
|
2085
|
+
};
|
|
2086
2086
|
}>, z.ZodObject<{
|
|
2087
2087
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2088
2088
|
userInputId: z.ZodString;
|
|
2089
2089
|
result: z.ZodString;
|
|
2090
2090
|
}, "strip", z.ZodTypeAny, {
|
|
2091
2091
|
type: "terminal-command-result";
|
|
2092
|
-
result: string;
|
|
2093
2092
|
userInputId: string;
|
|
2093
|
+
result: string;
|
|
2094
2094
|
}, {
|
|
2095
2095
|
type: "terminal-command-result";
|
|
2096
|
-
result: string;
|
|
2097
2096
|
userInputId: string;
|
|
2097
|
+
result: string;
|
|
2098
2098
|
}>, z.ZodObject<{
|
|
2099
2099
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2100
2100
|
isUpToDate: z.ZodBoolean;
|
|
@@ -2119,19 +2119,19 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2119
2119
|
session_credits_used: z.ZodNumber;
|
|
2120
2120
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
2121
2121
|
type: "init-response";
|
|
2122
|
-
|
|
2123
|
-
subscription_active: boolean;
|
|
2122
|
+
usage: number;
|
|
2124
2123
|
limit: number;
|
|
2124
|
+
subscription_active: boolean;
|
|
2125
|
+
next_quota_reset: Date;
|
|
2125
2126
|
session_credits_used: number;
|
|
2126
|
-
usage: number;
|
|
2127
2127
|
referralLink?: string | undefined;
|
|
2128
2128
|
}, {
|
|
2129
2129
|
type: "init-response";
|
|
2130
|
-
|
|
2131
|
-
subscription_active: boolean;
|
|
2130
|
+
usage: number;
|
|
2132
2131
|
limit: number;
|
|
2132
|
+
subscription_active: boolean;
|
|
2133
|
+
next_quota_reset: Date;
|
|
2133
2134
|
session_credits_used: number;
|
|
2134
|
-
usage: number;
|
|
2135
2135
|
referralLink?: string | undefined;
|
|
2136
2136
|
}>, z.ZodObject<{
|
|
2137
2137
|
type: z.ZodLiteral<"auth-result">;
|
|
@@ -2145,16 +2145,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2145
2145
|
}, "strip", z.ZodTypeAny, {
|
|
2146
2146
|
id: string;
|
|
2147
2147
|
name: string | null;
|
|
2148
|
-
email: string;
|
|
2149
2148
|
fingerprintId: string;
|
|
2150
2149
|
authToken: string;
|
|
2150
|
+
email: string;
|
|
2151
2151
|
fingerprintHash: string;
|
|
2152
2152
|
}, {
|
|
2153
2153
|
id: string;
|
|
2154
2154
|
name: string | null;
|
|
2155
|
-
email: string;
|
|
2156
2155
|
fingerprintId: string;
|
|
2157
2156
|
authToken: string;
|
|
2157
|
+
email: string;
|
|
2158
2158
|
fingerprintHash: string;
|
|
2159
2159
|
}>>;
|
|
2160
2160
|
message: z.ZodString;
|
|
@@ -2164,9 +2164,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2164
2164
|
user?: {
|
|
2165
2165
|
id: string;
|
|
2166
2166
|
name: string | null;
|
|
2167
|
-
email: string;
|
|
2168
2167
|
fingerprintId: string;
|
|
2169
2168
|
authToken: string;
|
|
2169
|
+
email: string;
|
|
2170
2170
|
fingerprintHash: string;
|
|
2171
2171
|
} | undefined;
|
|
2172
2172
|
}, {
|
|
@@ -2175,9 +2175,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2175
2175
|
user?: {
|
|
2176
2176
|
id: string;
|
|
2177
2177
|
name: string | null;
|
|
2178
|
-
email: string;
|
|
2179
2178
|
fingerprintId: string;
|
|
2180
2179
|
authToken: string;
|
|
2180
|
+
email: string;
|
|
2181
2181
|
fingerprintHash: string;
|
|
2182
2182
|
} | undefined;
|
|
2183
2183
|
}>, z.ZodObject<{
|
|
@@ -2205,19 +2205,19 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2205
2205
|
session_credits_used: z.ZodNumber;
|
|
2206
2206
|
}, "strip", z.ZodTypeAny, {
|
|
2207
2207
|
type: "usage-response";
|
|
2208
|
-
|
|
2209
|
-
subscription_active: boolean;
|
|
2208
|
+
usage: number;
|
|
2210
2209
|
limit: number;
|
|
2210
|
+
subscription_active: boolean;
|
|
2211
|
+
next_quota_reset: Date;
|
|
2211
2212
|
session_credits_used: number;
|
|
2212
|
-
usage: number;
|
|
2213
2213
|
referralLink?: string | undefined;
|
|
2214
2214
|
}, {
|
|
2215
2215
|
type: "usage-response";
|
|
2216
|
-
|
|
2217
|
-
subscription_active: boolean;
|
|
2216
|
+
usage: number;
|
|
2218
2217
|
limit: number;
|
|
2218
|
+
subscription_active: boolean;
|
|
2219
|
+
next_quota_reset: Date;
|
|
2219
2220
|
session_credits_used: number;
|
|
2220
|
-
usage: number;
|
|
2221
2221
|
referralLink?: string | undefined;
|
|
2222
2222
|
}>, z.ZodObject<{
|
|
2223
2223
|
type: z.ZodLiteral<"action-error">;
|
|
@@ -2242,29 +2242,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2242
2242
|
type: "action";
|
|
2243
2243
|
data: {
|
|
2244
2244
|
type: "usage-response";
|
|
2245
|
-
|
|
2246
|
-
subscription_active: boolean;
|
|
2245
|
+
usage: number;
|
|
2247
2246
|
limit: number;
|
|
2247
|
+
subscription_active: boolean;
|
|
2248
|
+
next_quota_reset: Date;
|
|
2248
2249
|
session_credits_used: number;
|
|
2249
|
-
usage: number;
|
|
2250
2250
|
referralLink?: string | undefined;
|
|
2251
2251
|
} | {
|
|
2252
2252
|
type: "init-response";
|
|
2253
|
-
|
|
2254
|
-
subscription_active: boolean;
|
|
2253
|
+
usage: number;
|
|
2255
2254
|
limit: number;
|
|
2255
|
+
subscription_active: boolean;
|
|
2256
|
+
next_quota_reset: Date;
|
|
2256
2257
|
session_credits_used: number;
|
|
2257
|
-
usage: number;
|
|
2258
2258
|
referralLink?: string | undefined;
|
|
2259
2259
|
} | {
|
|
2260
2260
|
type: "response-complete";
|
|
2261
|
-
response: string;
|
|
2262
2261
|
userInputId: string;
|
|
2263
2262
|
changesAlreadyApplied: {
|
|
2264
2263
|
type: "patch" | "file";
|
|
2265
2264
|
content: string;
|
|
2266
2265
|
filePath: string;
|
|
2267
2266
|
}[];
|
|
2267
|
+
response: string;
|
|
2268
2268
|
changes: {
|
|
2269
2269
|
type: "patch" | "file";
|
|
2270
2270
|
content: string;
|
|
@@ -2275,12 +2275,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2275
2275
|
content: string;
|
|
2276
2276
|
}[];
|
|
2277
2277
|
resetFileVersions: boolean;
|
|
2278
|
-
next_quota_reset?: Date | undefined;
|
|
2279
|
-
subscription_active?: boolean | undefined;
|
|
2280
|
-
limit?: number | undefined;
|
|
2281
|
-
session_credits_used?: number | undefined;
|
|
2282
2278
|
usage?: number | undefined;
|
|
2279
|
+
limit?: number | undefined;
|
|
2283
2280
|
referralLink?: string | undefined;
|
|
2281
|
+
subscription_active?: boolean | undefined;
|
|
2282
|
+
next_quota_reset?: Date | undefined;
|
|
2283
|
+
session_credits_used?: number | undefined;
|
|
2284
2284
|
} | {
|
|
2285
2285
|
type: "response-chunk";
|
|
2286
2286
|
userInputId: string;
|
|
@@ -2290,18 +2290,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2290
2290
|
filePaths: string[];
|
|
2291
2291
|
} | {
|
|
2292
2292
|
type: "tool-call";
|
|
2293
|
-
data: {
|
|
2294
|
-
id: string;
|
|
2295
|
-
name: string;
|
|
2296
|
-
input: Record<string, any>;
|
|
2297
|
-
};
|
|
2298
|
-
response: string;
|
|
2299
2293
|
userInputId: string;
|
|
2300
2294
|
changesAlreadyApplied: {
|
|
2301
2295
|
type: "patch" | "file";
|
|
2302
2296
|
content: string;
|
|
2303
2297
|
filePath: string;
|
|
2304
2298
|
}[];
|
|
2299
|
+
response: string;
|
|
2305
2300
|
changes: {
|
|
2306
2301
|
type: "patch" | "file";
|
|
2307
2302
|
content: string;
|
|
@@ -2312,10 +2307,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2312
2307
|
content: string;
|
|
2313
2308
|
}[];
|
|
2314
2309
|
resetFileVersions: boolean;
|
|
2310
|
+
data: {
|
|
2311
|
+
id: string;
|
|
2312
|
+
name: string;
|
|
2313
|
+
input: Record<string, any>;
|
|
2314
|
+
};
|
|
2315
2315
|
} | {
|
|
2316
2316
|
type: "terminal-command-result";
|
|
2317
|
-
result: string;
|
|
2318
2317
|
userInputId: string;
|
|
2318
|
+
result: string;
|
|
2319
2319
|
} | {
|
|
2320
2320
|
type: "npm-version-status";
|
|
2321
2321
|
isUpToDate: boolean;
|
|
@@ -2326,9 +2326,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2326
2326
|
user?: {
|
|
2327
2327
|
id: string;
|
|
2328
2328
|
name: string | null;
|
|
2329
|
-
email: string;
|
|
2330
2329
|
fingerprintId: string;
|
|
2331
2330
|
authToken: string;
|
|
2331
|
+
email: string;
|
|
2332
2332
|
fingerprintHash: string;
|
|
2333
2333
|
} | undefined;
|
|
2334
2334
|
} | {
|
|
@@ -2347,29 +2347,29 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2347
2347
|
type: "action";
|
|
2348
2348
|
data: {
|
|
2349
2349
|
type: "usage-response";
|
|
2350
|
-
|
|
2351
|
-
subscription_active: boolean;
|
|
2350
|
+
usage: number;
|
|
2352
2351
|
limit: number;
|
|
2352
|
+
subscription_active: boolean;
|
|
2353
|
+
next_quota_reset: Date;
|
|
2353
2354
|
session_credits_used: number;
|
|
2354
|
-
usage: number;
|
|
2355
2355
|
referralLink?: string | undefined;
|
|
2356
2356
|
} | {
|
|
2357
2357
|
type: "init-response";
|
|
2358
|
-
|
|
2359
|
-
subscription_active: boolean;
|
|
2358
|
+
usage: number;
|
|
2360
2359
|
limit: number;
|
|
2360
|
+
subscription_active: boolean;
|
|
2361
|
+
next_quota_reset: Date;
|
|
2361
2362
|
session_credits_used: number;
|
|
2362
|
-
usage: number;
|
|
2363
2363
|
referralLink?: string | undefined;
|
|
2364
2364
|
} | {
|
|
2365
2365
|
type: "response-complete";
|
|
2366
|
-
response: string;
|
|
2367
2366
|
userInputId: string;
|
|
2368
2367
|
changesAlreadyApplied: {
|
|
2369
2368
|
type: "patch" | "file";
|
|
2370
2369
|
content: string;
|
|
2371
2370
|
filePath: string;
|
|
2372
2371
|
}[];
|
|
2372
|
+
response: string;
|
|
2373
2373
|
changes: {
|
|
2374
2374
|
type: "patch" | "file";
|
|
2375
2375
|
content: string;
|
|
@@ -2380,12 +2380,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2380
2380
|
content: string;
|
|
2381
2381
|
}[];
|
|
2382
2382
|
resetFileVersions: boolean;
|
|
2383
|
-
next_quota_reset?: Date | undefined;
|
|
2384
|
-
subscription_active?: boolean | undefined;
|
|
2385
|
-
limit?: number | undefined;
|
|
2386
|
-
session_credits_used?: number | undefined;
|
|
2387
2383
|
usage?: number | undefined;
|
|
2384
|
+
limit?: number | undefined;
|
|
2388
2385
|
referralLink?: string | undefined;
|
|
2386
|
+
subscription_active?: boolean | undefined;
|
|
2387
|
+
next_quota_reset?: Date | undefined;
|
|
2388
|
+
session_credits_used?: number | undefined;
|
|
2389
2389
|
} | {
|
|
2390
2390
|
type: "response-chunk";
|
|
2391
2391
|
userInputId: string;
|
|
@@ -2395,18 +2395,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2395
2395
|
filePaths: string[];
|
|
2396
2396
|
} | {
|
|
2397
2397
|
type: "tool-call";
|
|
2398
|
-
data: {
|
|
2399
|
-
id: string;
|
|
2400
|
-
name: string;
|
|
2401
|
-
input: Record<string, any>;
|
|
2402
|
-
};
|
|
2403
|
-
response: string;
|
|
2404
2398
|
userInputId: string;
|
|
2405
2399
|
changesAlreadyApplied: {
|
|
2406
2400
|
type: "patch" | "file";
|
|
2407
2401
|
content: string;
|
|
2408
2402
|
filePath: string;
|
|
2409
2403
|
}[];
|
|
2404
|
+
response: string;
|
|
2410
2405
|
changes: {
|
|
2411
2406
|
type: "patch" | "file";
|
|
2412
2407
|
content: string;
|
|
@@ -2417,10 +2412,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2417
2412
|
content: string;
|
|
2418
2413
|
}[];
|
|
2419
2414
|
resetFileVersions: boolean;
|
|
2415
|
+
data: {
|
|
2416
|
+
id: string;
|
|
2417
|
+
name: string;
|
|
2418
|
+
input: Record<string, any>;
|
|
2419
|
+
};
|
|
2420
2420
|
} | {
|
|
2421
2421
|
type: "terminal-command-result";
|
|
2422
|
-
result: string;
|
|
2423
2422
|
userInputId: string;
|
|
2423
|
+
result: string;
|
|
2424
2424
|
} | {
|
|
2425
2425
|
type: "npm-version-status";
|
|
2426
2426
|
isUpToDate: boolean;
|
|
@@ -2431,9 +2431,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2431
2431
|
user?: {
|
|
2432
2432
|
id: string;
|
|
2433
2433
|
name: string | null;
|
|
2434
|
-
email: string;
|
|
2435
2434
|
fingerprintId: string;
|
|
2436
2435
|
authToken: string;
|
|
2436
|
+
email: string;
|
|
2437
2437
|
fingerprintHash: string;
|
|
2438
2438
|
} | undefined;
|
|
2439
2439
|
} | {
|
|
@@ -2521,21 +2521,21 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2521
2521
|
}>, "many">;
|
|
2522
2522
|
resetFileVersions: z.ZodBoolean;
|
|
2523
2523
|
}, {
|
|
2524
|
-
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
2525
|
-
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
2526
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
2527
|
-
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
2528
2524
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2525
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2529
2526
|
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2527
|
+
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
2528
|
+
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
2529
|
+
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
2530
2530
|
}>, "strip", z.ZodTypeAny, {
|
|
2531
2531
|
type: "response-complete";
|
|
2532
|
-
response: string;
|
|
2533
2532
|
userInputId: string;
|
|
2534
2533
|
changesAlreadyApplied: {
|
|
2535
2534
|
type: "patch" | "file";
|
|
2536
2535
|
content: string;
|
|
2537
2536
|
filePath: string;
|
|
2538
2537
|
}[];
|
|
2538
|
+
response: string;
|
|
2539
2539
|
changes: {
|
|
2540
2540
|
type: "patch" | "file";
|
|
2541
2541
|
content: string;
|
|
@@ -2546,21 +2546,21 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2546
2546
|
content: string;
|
|
2547
2547
|
}[];
|
|
2548
2548
|
resetFileVersions: boolean;
|
|
2549
|
-
next_quota_reset?: Date | undefined;
|
|
2550
|
-
subscription_active?: boolean | undefined;
|
|
2551
|
-
limit?: number | undefined;
|
|
2552
|
-
session_credits_used?: number | undefined;
|
|
2553
2549
|
usage?: number | undefined;
|
|
2550
|
+
limit?: number | undefined;
|
|
2554
2551
|
referralLink?: string | undefined;
|
|
2552
|
+
subscription_active?: boolean | undefined;
|
|
2553
|
+
next_quota_reset?: Date | undefined;
|
|
2554
|
+
session_credits_used?: number | undefined;
|
|
2555
2555
|
}, {
|
|
2556
2556
|
type: "response-complete";
|
|
2557
|
-
response: string;
|
|
2558
2557
|
userInputId: string;
|
|
2559
2558
|
changesAlreadyApplied: {
|
|
2560
2559
|
type: "patch" | "file";
|
|
2561
2560
|
content: string;
|
|
2562
2561
|
filePath: string;
|
|
2563
2562
|
}[];
|
|
2563
|
+
response: string;
|
|
2564
2564
|
changes: {
|
|
2565
2565
|
type: "patch" | "file";
|
|
2566
2566
|
content: string;
|
|
@@ -2571,12 +2571,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2571
2571
|
content: string;
|
|
2572
2572
|
}[];
|
|
2573
2573
|
resetFileVersions: boolean;
|
|
2574
|
-
next_quota_reset?: Date | undefined;
|
|
2575
|
-
subscription_active?: boolean | undefined;
|
|
2576
|
-
limit?: number | undefined;
|
|
2577
|
-
session_credits_used?: number | undefined;
|
|
2578
2574
|
usage?: number | undefined;
|
|
2575
|
+
limit?: number | undefined;
|
|
2579
2576
|
referralLink?: string | undefined;
|
|
2577
|
+
subscription_active?: boolean | undefined;
|
|
2578
|
+
next_quota_reset?: Date | undefined;
|
|
2579
|
+
session_credits_used?: number | undefined;
|
|
2580
2580
|
}>, z.ZodObject<{
|
|
2581
2581
|
type: z.ZodLiteral<"read-files">;
|
|
2582
2582
|
filePaths: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2642,18 +2642,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2642
2642
|
resetFileVersions: z.ZodBoolean;
|
|
2643
2643
|
}, "strip", z.ZodTypeAny, {
|
|
2644
2644
|
type: "tool-call";
|
|
2645
|
-
data: {
|
|
2646
|
-
id: string;
|
|
2647
|
-
name: string;
|
|
2648
|
-
input: Record<string, any>;
|
|
2649
|
-
};
|
|
2650
|
-
response: string;
|
|
2651
2645
|
userInputId: string;
|
|
2652
2646
|
changesAlreadyApplied: {
|
|
2653
2647
|
type: "patch" | "file";
|
|
2654
2648
|
content: string;
|
|
2655
2649
|
filePath: string;
|
|
2656
2650
|
}[];
|
|
2651
|
+
response: string;
|
|
2657
2652
|
changes: {
|
|
2658
2653
|
type: "patch" | "file";
|
|
2659
2654
|
content: string;
|
|
@@ -2664,20 +2659,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2664
2659
|
content: string;
|
|
2665
2660
|
}[];
|
|
2666
2661
|
resetFileVersions: boolean;
|
|
2667
|
-
}, {
|
|
2668
|
-
type: "tool-call";
|
|
2669
2662
|
data: {
|
|
2670
2663
|
id: string;
|
|
2671
2664
|
name: string;
|
|
2672
2665
|
input: Record<string, any>;
|
|
2673
2666
|
};
|
|
2674
|
-
|
|
2667
|
+
}, {
|
|
2668
|
+
type: "tool-call";
|
|
2675
2669
|
userInputId: string;
|
|
2676
2670
|
changesAlreadyApplied: {
|
|
2677
2671
|
type: "patch" | "file";
|
|
2678
2672
|
content: string;
|
|
2679
2673
|
filePath: string;
|
|
2680
2674
|
}[];
|
|
2675
|
+
response: string;
|
|
2681
2676
|
changes: {
|
|
2682
2677
|
type: "patch" | "file";
|
|
2683
2678
|
content: string;
|
|
@@ -2688,18 +2683,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2688
2683
|
content: string;
|
|
2689
2684
|
}[];
|
|
2690
2685
|
resetFileVersions: boolean;
|
|
2686
|
+
data: {
|
|
2687
|
+
id: string;
|
|
2688
|
+
name: string;
|
|
2689
|
+
input: Record<string, any>;
|
|
2690
|
+
};
|
|
2691
2691
|
}>, z.ZodObject<{
|
|
2692
2692
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2693
2693
|
userInputId: z.ZodString;
|
|
2694
2694
|
result: z.ZodString;
|
|
2695
2695
|
}, "strip", z.ZodTypeAny, {
|
|
2696
2696
|
type: "terminal-command-result";
|
|
2697
|
-
result: string;
|
|
2698
2697
|
userInputId: string;
|
|
2698
|
+
result: string;
|
|
2699
2699
|
}, {
|
|
2700
2700
|
type: "terminal-command-result";
|
|
2701
|
-
result: string;
|
|
2702
2701
|
userInputId: string;
|
|
2702
|
+
result: string;
|
|
2703
2703
|
}>, z.ZodObject<{
|
|
2704
2704
|
type: z.ZodLiteral<"npm-version-status">;
|
|
2705
2705
|
isUpToDate: z.ZodBoolean;
|
|
@@ -2724,19 +2724,19 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2724
2724
|
session_credits_used: z.ZodNumber;
|
|
2725
2725
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
2726
2726
|
type: "init-response";
|
|
2727
|
-
|
|
2728
|
-
subscription_active: boolean;
|
|
2727
|
+
usage: number;
|
|
2729
2728
|
limit: number;
|
|
2729
|
+
subscription_active: boolean;
|
|
2730
|
+
next_quota_reset: Date;
|
|
2730
2731
|
session_credits_used: number;
|
|
2731
|
-
usage: number;
|
|
2732
2732
|
referralLink?: string | undefined;
|
|
2733
2733
|
}, {
|
|
2734
2734
|
type: "init-response";
|
|
2735
|
-
|
|
2736
|
-
subscription_active: boolean;
|
|
2735
|
+
usage: number;
|
|
2737
2736
|
limit: number;
|
|
2737
|
+
subscription_active: boolean;
|
|
2738
|
+
next_quota_reset: Date;
|
|
2738
2739
|
session_credits_used: number;
|
|
2739
|
-
usage: number;
|
|
2740
2740
|
referralLink?: string | undefined;
|
|
2741
2741
|
}>, z.ZodObject<{
|
|
2742
2742
|
type: z.ZodLiteral<"auth-result">;
|
|
@@ -2750,16 +2750,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2750
2750
|
}, "strip", z.ZodTypeAny, {
|
|
2751
2751
|
id: string;
|
|
2752
2752
|
name: string | null;
|
|
2753
|
-
email: string;
|
|
2754
2753
|
fingerprintId: string;
|
|
2755
2754
|
authToken: string;
|
|
2755
|
+
email: string;
|
|
2756
2756
|
fingerprintHash: string;
|
|
2757
2757
|
}, {
|
|
2758
2758
|
id: string;
|
|
2759
2759
|
name: string | null;
|
|
2760
|
-
email: string;
|
|
2761
2760
|
fingerprintId: string;
|
|
2762
2761
|
authToken: string;
|
|
2762
|
+
email: string;
|
|
2763
2763
|
fingerprintHash: string;
|
|
2764
2764
|
}>>;
|
|
2765
2765
|
message: z.ZodString;
|
|
@@ -2769,9 +2769,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2769
2769
|
user?: {
|
|
2770
2770
|
id: string;
|
|
2771
2771
|
name: string | null;
|
|
2772
|
-
email: string;
|
|
2773
2772
|
fingerprintId: string;
|
|
2774
2773
|
authToken: string;
|
|
2774
|
+
email: string;
|
|
2775
2775
|
fingerprintHash: string;
|
|
2776
2776
|
} | undefined;
|
|
2777
2777
|
}, {
|
|
@@ -2780,9 +2780,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2780
2780
|
user?: {
|
|
2781
2781
|
id: string;
|
|
2782
2782
|
name: string | null;
|
|
2783
|
-
email: string;
|
|
2784
2783
|
fingerprintId: string;
|
|
2785
2784
|
authToken: string;
|
|
2785
|
+
email: string;
|
|
2786
2786
|
fingerprintHash: string;
|
|
2787
2787
|
} | undefined;
|
|
2788
2788
|
}>, z.ZodObject<{
|
|
@@ -2810,19 +2810,19 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2810
2810
|
session_credits_used: z.ZodNumber;
|
|
2811
2811
|
}, "strip", z.ZodTypeAny, {
|
|
2812
2812
|
type: "usage-response";
|
|
2813
|
-
|
|
2814
|
-
subscription_active: boolean;
|
|
2813
|
+
usage: number;
|
|
2815
2814
|
limit: number;
|
|
2815
|
+
subscription_active: boolean;
|
|
2816
|
+
next_quota_reset: Date;
|
|
2816
2817
|
session_credits_used: number;
|
|
2817
|
-
usage: number;
|
|
2818
2818
|
referralLink?: string | undefined;
|
|
2819
2819
|
}, {
|
|
2820
2820
|
type: "usage-response";
|
|
2821
|
-
|
|
2822
|
-
subscription_active: boolean;
|
|
2821
|
+
usage: number;
|
|
2823
2822
|
limit: number;
|
|
2823
|
+
subscription_active: boolean;
|
|
2824
|
+
next_quota_reset: Date;
|
|
2824
2825
|
session_credits_used: number;
|
|
2825
|
-
usage: number;
|
|
2826
2826
|
referralLink?: string | undefined;
|
|
2827
2827
|
}>, z.ZodObject<{
|
|
2828
2828
|
type: z.ZodLiteral<"action-error">;
|
|
@@ -2847,29 +2847,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2847
2847
|
type: "action";
|
|
2848
2848
|
data: {
|
|
2849
2849
|
type: "usage-response";
|
|
2850
|
-
|
|
2851
|
-
subscription_active: boolean;
|
|
2850
|
+
usage: number;
|
|
2852
2851
|
limit: number;
|
|
2852
|
+
subscription_active: boolean;
|
|
2853
|
+
next_quota_reset: Date;
|
|
2853
2854
|
session_credits_used: number;
|
|
2854
|
-
usage: number;
|
|
2855
2855
|
referralLink?: string | undefined;
|
|
2856
2856
|
} | {
|
|
2857
2857
|
type: "init-response";
|
|
2858
|
-
|
|
2859
|
-
subscription_active: boolean;
|
|
2858
|
+
usage: number;
|
|
2860
2859
|
limit: number;
|
|
2860
|
+
subscription_active: boolean;
|
|
2861
|
+
next_quota_reset: Date;
|
|
2861
2862
|
session_credits_used: number;
|
|
2862
|
-
usage: number;
|
|
2863
2863
|
referralLink?: string | undefined;
|
|
2864
2864
|
} | {
|
|
2865
2865
|
type: "response-complete";
|
|
2866
|
-
response: string;
|
|
2867
2866
|
userInputId: string;
|
|
2868
2867
|
changesAlreadyApplied: {
|
|
2869
2868
|
type: "patch" | "file";
|
|
2870
2869
|
content: string;
|
|
2871
2870
|
filePath: string;
|
|
2872
2871
|
}[];
|
|
2872
|
+
response: string;
|
|
2873
2873
|
changes: {
|
|
2874
2874
|
type: "patch" | "file";
|
|
2875
2875
|
content: string;
|
|
@@ -2880,12 +2880,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2880
2880
|
content: string;
|
|
2881
2881
|
}[];
|
|
2882
2882
|
resetFileVersions: boolean;
|
|
2883
|
-
next_quota_reset?: Date | undefined;
|
|
2884
|
-
subscription_active?: boolean | undefined;
|
|
2885
|
-
limit?: number | undefined;
|
|
2886
|
-
session_credits_used?: number | undefined;
|
|
2887
2883
|
usage?: number | undefined;
|
|
2884
|
+
limit?: number | undefined;
|
|
2888
2885
|
referralLink?: string | undefined;
|
|
2886
|
+
subscription_active?: boolean | undefined;
|
|
2887
|
+
next_quota_reset?: Date | undefined;
|
|
2888
|
+
session_credits_used?: number | undefined;
|
|
2889
2889
|
} | {
|
|
2890
2890
|
type: "response-chunk";
|
|
2891
2891
|
userInputId: string;
|
|
@@ -2895,18 +2895,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2895
2895
|
filePaths: string[];
|
|
2896
2896
|
} | {
|
|
2897
2897
|
type: "tool-call";
|
|
2898
|
-
data: {
|
|
2899
|
-
id: string;
|
|
2900
|
-
name: string;
|
|
2901
|
-
input: Record<string, any>;
|
|
2902
|
-
};
|
|
2903
|
-
response: string;
|
|
2904
2898
|
userInputId: string;
|
|
2905
2899
|
changesAlreadyApplied: {
|
|
2906
2900
|
type: "patch" | "file";
|
|
2907
2901
|
content: string;
|
|
2908
2902
|
filePath: string;
|
|
2909
2903
|
}[];
|
|
2904
|
+
response: string;
|
|
2910
2905
|
changes: {
|
|
2911
2906
|
type: "patch" | "file";
|
|
2912
2907
|
content: string;
|
|
@@ -2917,10 +2912,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2917
2912
|
content: string;
|
|
2918
2913
|
}[];
|
|
2919
2914
|
resetFileVersions: boolean;
|
|
2915
|
+
data: {
|
|
2916
|
+
id: string;
|
|
2917
|
+
name: string;
|
|
2918
|
+
input: Record<string, any>;
|
|
2919
|
+
};
|
|
2920
2920
|
} | {
|
|
2921
2921
|
type: "terminal-command-result";
|
|
2922
|
-
result: string;
|
|
2923
2922
|
userInputId: string;
|
|
2923
|
+
result: string;
|
|
2924
2924
|
} | {
|
|
2925
2925
|
type: "npm-version-status";
|
|
2926
2926
|
isUpToDate: boolean;
|
|
@@ -2931,9 +2931,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2931
2931
|
user?: {
|
|
2932
2932
|
id: string;
|
|
2933
2933
|
name: string | null;
|
|
2934
|
-
email: string;
|
|
2935
2934
|
fingerprintId: string;
|
|
2936
2935
|
authToken: string;
|
|
2936
|
+
email: string;
|
|
2937
2937
|
fingerprintHash: string;
|
|
2938
2938
|
} | undefined;
|
|
2939
2939
|
} | {
|
|
@@ -2952,29 +2952,29 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2952
2952
|
type: "action";
|
|
2953
2953
|
data: {
|
|
2954
2954
|
type: "usage-response";
|
|
2955
|
-
|
|
2956
|
-
subscription_active: boolean;
|
|
2955
|
+
usage: number;
|
|
2957
2956
|
limit: number;
|
|
2957
|
+
subscription_active: boolean;
|
|
2958
|
+
next_quota_reset: Date;
|
|
2958
2959
|
session_credits_used: number;
|
|
2959
|
-
usage: number;
|
|
2960
2960
|
referralLink?: string | undefined;
|
|
2961
2961
|
} | {
|
|
2962
2962
|
type: "init-response";
|
|
2963
|
-
|
|
2964
|
-
subscription_active: boolean;
|
|
2963
|
+
usage: number;
|
|
2965
2964
|
limit: number;
|
|
2965
|
+
subscription_active: boolean;
|
|
2966
|
+
next_quota_reset: Date;
|
|
2966
2967
|
session_credits_used: number;
|
|
2967
|
-
usage: number;
|
|
2968
2968
|
referralLink?: string | undefined;
|
|
2969
2969
|
} | {
|
|
2970
2970
|
type: "response-complete";
|
|
2971
|
-
response: string;
|
|
2972
2971
|
userInputId: string;
|
|
2973
2972
|
changesAlreadyApplied: {
|
|
2974
2973
|
type: "patch" | "file";
|
|
2975
2974
|
content: string;
|
|
2976
2975
|
filePath: string;
|
|
2977
2976
|
}[];
|
|
2977
|
+
response: string;
|
|
2978
2978
|
changes: {
|
|
2979
2979
|
type: "patch" | "file";
|
|
2980
2980
|
content: string;
|
|
@@ -2985,12 +2985,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2985
2985
|
content: string;
|
|
2986
2986
|
}[];
|
|
2987
2987
|
resetFileVersions: boolean;
|
|
2988
|
-
next_quota_reset?: Date | undefined;
|
|
2989
|
-
subscription_active?: boolean | undefined;
|
|
2990
|
-
limit?: number | undefined;
|
|
2991
|
-
session_credits_used?: number | undefined;
|
|
2992
2988
|
usage?: number | undefined;
|
|
2989
|
+
limit?: number | undefined;
|
|
2993
2990
|
referralLink?: string | undefined;
|
|
2991
|
+
subscription_active?: boolean | undefined;
|
|
2992
|
+
next_quota_reset?: Date | undefined;
|
|
2993
|
+
session_credits_used?: number | undefined;
|
|
2994
2994
|
} | {
|
|
2995
2995
|
type: "response-chunk";
|
|
2996
2996
|
userInputId: string;
|
|
@@ -3000,18 +3000,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3000
3000
|
filePaths: string[];
|
|
3001
3001
|
} | {
|
|
3002
3002
|
type: "tool-call";
|
|
3003
|
-
data: {
|
|
3004
|
-
id: string;
|
|
3005
|
-
name: string;
|
|
3006
|
-
input: Record<string, any>;
|
|
3007
|
-
};
|
|
3008
|
-
response: string;
|
|
3009
3003
|
userInputId: string;
|
|
3010
3004
|
changesAlreadyApplied: {
|
|
3011
3005
|
type: "patch" | "file";
|
|
3012
3006
|
content: string;
|
|
3013
3007
|
filePath: string;
|
|
3014
3008
|
}[];
|
|
3009
|
+
response: string;
|
|
3015
3010
|
changes: {
|
|
3016
3011
|
type: "patch" | "file";
|
|
3017
3012
|
content: string;
|
|
@@ -3022,10 +3017,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3022
3017
|
content: string;
|
|
3023
3018
|
}[];
|
|
3024
3019
|
resetFileVersions: boolean;
|
|
3020
|
+
data: {
|
|
3021
|
+
id: string;
|
|
3022
|
+
name: string;
|
|
3023
|
+
input: Record<string, any>;
|
|
3024
|
+
};
|
|
3025
3025
|
} | {
|
|
3026
3026
|
type: "terminal-command-result";
|
|
3027
|
-
result: string;
|
|
3028
3027
|
userInputId: string;
|
|
3028
|
+
result: string;
|
|
3029
3029
|
} | {
|
|
3030
3030
|
type: "npm-version-status";
|
|
3031
3031
|
isUpToDate: boolean;
|
|
@@ -3036,9 +3036,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3036
3036
|
user?: {
|
|
3037
3037
|
id: string;
|
|
3038
3038
|
name: string | null;
|
|
3039
|
-
email: string;
|
|
3040
3039
|
fingerprintId: string;
|
|
3041
3040
|
authToken: string;
|
|
3041
|
+
email: string;
|
|
3042
3042
|
fingerprintHash: string;
|
|
3043
3043
|
} | undefined;
|
|
3044
3044
|
} | {
|