codebuff 1.0.303 → 1.0.305
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/README.md +6 -24
- package/dist/chat-storage.d.ts +2 -2
- package/dist/chat-storage.js.map +1 -1
- package/dist/cli.js +13 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -49
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +12 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +1 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js +14 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +1 -0
- package/dist/code-map/jest.config.d.ts +4 -0
- package/dist/code-map/jest.config.d.ts.map +1 -0
- package/dist/code-map/jest.config.js +18 -0
- package/dist/code-map/jest.config.js.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs +27 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.js +54 -0
- package/dist/code-map/scripts/tree-sitter-test.js.map +1 -0
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +72 -30
- package/dist/common/browser-actions.d.ts +48 -48
- package/dist/common/constants.d.ts +4 -0
- package/dist/common/constants.js +9 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +15 -5
- package/dist/common/types/agent-state.js +2 -2
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/types/message.d.ts +18 -11
- package/dist/common/types/message.js +7 -1
- package/dist/common/types/message.js.map +1 -1
- package/dist/common/util/messages.d.ts +2 -2
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +146 -74
- package/dist/index.js +2 -8
- package/dist/menu.js +7 -1
- package/dist/menu.js.map +1 -1
- package/package.json +3 -2
|
@@ -173,7 +173,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
173
173
|
content: string;
|
|
174
174
|
}[][] | undefined;
|
|
175
175
|
}>;
|
|
176
|
-
messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>,
|
|
176
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
177
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
182
|
+
}>>, "many">;
|
|
177
183
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
178
184
|
}, "strip", z.ZodTypeAny, {
|
|
179
185
|
agentContext: string;
|
|
@@ -205,7 +211,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
205
211
|
content: string;
|
|
206
212
|
}[][] | undefined;
|
|
207
213
|
};
|
|
208
|
-
messageHistory: import("ai").CoreMessage
|
|
214
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
215
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
216
|
+
})[];
|
|
209
217
|
consecutiveAssistantMessages?: number | undefined;
|
|
210
218
|
}, {
|
|
211
219
|
agentContext: string;
|
|
@@ -237,7 +245,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
237
245
|
content: string;
|
|
238
246
|
}[][] | undefined;
|
|
239
247
|
};
|
|
240
|
-
messageHistory: import("ai").CoreMessage
|
|
248
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
249
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
250
|
+
})[];
|
|
241
251
|
consecutiveAssistantMessages?: number | undefined;
|
|
242
252
|
}>;
|
|
243
253
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -291,7 +301,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
291
301
|
content: string;
|
|
292
302
|
}[][] | undefined;
|
|
293
303
|
};
|
|
294
|
-
messageHistory: import("ai").CoreMessage
|
|
304
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
305
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
306
|
+
})[];
|
|
295
307
|
consecutiveAssistantMessages?: number | undefined;
|
|
296
308
|
};
|
|
297
309
|
toolResults: {
|
|
@@ -338,7 +350,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
338
350
|
content: string;
|
|
339
351
|
}[][] | undefined;
|
|
340
352
|
};
|
|
341
|
-
messageHistory: import("ai").CoreMessage
|
|
353
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
354
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
355
|
+
})[];
|
|
342
356
|
consecutiveAssistantMessages?: number | undefined;
|
|
343
357
|
};
|
|
344
358
|
toolResults: {
|
|
@@ -597,7 +611,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
597
611
|
content: string;
|
|
598
612
|
}[][] | undefined;
|
|
599
613
|
};
|
|
600
|
-
messageHistory: import("ai").CoreMessage
|
|
614
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
615
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
616
|
+
})[];
|
|
601
617
|
consecutiveAssistantMessages?: number | undefined;
|
|
602
618
|
};
|
|
603
619
|
toolResults: {
|
|
@@ -689,7 +705,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
689
705
|
content: string;
|
|
690
706
|
}[][] | undefined;
|
|
691
707
|
};
|
|
692
|
-
messageHistory: import("ai").CoreMessage
|
|
708
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
709
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
710
|
+
})[];
|
|
693
711
|
consecutiveAssistantMessages?: number | undefined;
|
|
694
712
|
};
|
|
695
713
|
toolResults: {
|
|
@@ -917,7 +935,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
917
935
|
content: string;
|
|
918
936
|
}[][] | undefined;
|
|
919
937
|
}>;
|
|
920
|
-
messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>,
|
|
938
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
939
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
942
|
+
}, {
|
|
943
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
944
|
+
}>>, "many">;
|
|
921
945
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
922
946
|
}, "strip", z.ZodTypeAny, {
|
|
923
947
|
agentContext: string;
|
|
@@ -949,7 +973,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
949
973
|
content: string;
|
|
950
974
|
}[][] | undefined;
|
|
951
975
|
};
|
|
952
|
-
messageHistory: import("ai").CoreMessage
|
|
976
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
977
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
978
|
+
})[];
|
|
953
979
|
consecutiveAssistantMessages?: number | undefined;
|
|
954
980
|
}, {
|
|
955
981
|
agentContext: string;
|
|
@@ -981,7 +1007,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
981
1007
|
content: string;
|
|
982
1008
|
}[][] | undefined;
|
|
983
1009
|
};
|
|
984
|
-
messageHistory: import("ai").CoreMessage
|
|
1010
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1011
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1012
|
+
})[];
|
|
985
1013
|
consecutiveAssistantMessages?: number | undefined;
|
|
986
1014
|
}>;
|
|
987
1015
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -1035,7 +1063,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1035
1063
|
content: string;
|
|
1036
1064
|
}[][] | undefined;
|
|
1037
1065
|
};
|
|
1038
|
-
messageHistory: import("ai").CoreMessage
|
|
1066
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1067
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1068
|
+
})[];
|
|
1039
1069
|
consecutiveAssistantMessages?: number | undefined;
|
|
1040
1070
|
};
|
|
1041
1071
|
toolResults: {
|
|
@@ -1082,7 +1112,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1082
1112
|
content: string;
|
|
1083
1113
|
}[][] | undefined;
|
|
1084
1114
|
};
|
|
1085
|
-
messageHistory: import("ai").CoreMessage
|
|
1115
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1116
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1117
|
+
})[];
|
|
1086
1118
|
consecutiveAssistantMessages?: number | undefined;
|
|
1087
1119
|
};
|
|
1088
1120
|
toolResults: {
|
|
@@ -1341,7 +1373,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1341
1373
|
content: string;
|
|
1342
1374
|
}[][] | undefined;
|
|
1343
1375
|
};
|
|
1344
|
-
messageHistory: import("ai").CoreMessage
|
|
1376
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1377
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1378
|
+
})[];
|
|
1345
1379
|
consecutiveAssistantMessages?: number | undefined;
|
|
1346
1380
|
};
|
|
1347
1381
|
toolResults: {
|
|
@@ -1433,7 +1467,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1433
1467
|
content: string;
|
|
1434
1468
|
}[][] | undefined;
|
|
1435
1469
|
};
|
|
1436
|
-
messageHistory: import("ai").CoreMessage
|
|
1470
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1471
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1472
|
+
})[];
|
|
1437
1473
|
consecutiveAssistantMessages?: number | undefined;
|
|
1438
1474
|
};
|
|
1439
1475
|
toolResults: {
|
|
@@ -1736,7 +1772,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1736
1772
|
content: string;
|
|
1737
1773
|
}[][] | undefined;
|
|
1738
1774
|
}>;
|
|
1739
|
-
messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>,
|
|
1775
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
1776
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
1777
|
+
}, "strip", z.ZodTypeAny, {
|
|
1778
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1779
|
+
}, {
|
|
1780
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1781
|
+
}>>, "many">;
|
|
1740
1782
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
1741
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1742
1784
|
agentContext: string;
|
|
@@ -1768,7 +1810,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1768
1810
|
content: string;
|
|
1769
1811
|
}[][] | undefined;
|
|
1770
1812
|
};
|
|
1771
|
-
messageHistory: import("ai").CoreMessage
|
|
1813
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1814
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1815
|
+
})[];
|
|
1772
1816
|
consecutiveAssistantMessages?: number | undefined;
|
|
1773
1817
|
}, {
|
|
1774
1818
|
agentContext: string;
|
|
@@ -1800,7 +1844,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1800
1844
|
content: string;
|
|
1801
1845
|
}[][] | undefined;
|
|
1802
1846
|
};
|
|
1803
|
-
messageHistory: import("ai").CoreMessage
|
|
1847
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1848
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1849
|
+
})[];
|
|
1804
1850
|
consecutiveAssistantMessages?: number | undefined;
|
|
1805
1851
|
}>;
|
|
1806
1852
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -1809,12 +1855,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1809
1855
|
id: z.ZodString;
|
|
1810
1856
|
}, "strip", z.ZodTypeAny, {
|
|
1811
1857
|
name: string;
|
|
1812
|
-
parameters: Record<string, string>;
|
|
1813
1858
|
id: string;
|
|
1859
|
+
parameters: Record<string, string>;
|
|
1814
1860
|
}, {
|
|
1815
1861
|
name: string;
|
|
1816
|
-
parameters: Record<string, string>;
|
|
1817
1862
|
id: string;
|
|
1863
|
+
parameters: Record<string, string>;
|
|
1818
1864
|
}>, "many">;
|
|
1819
1865
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1820
1866
|
name: z.ZodString;
|
|
@@ -1862,7 +1908,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1862
1908
|
content: string;
|
|
1863
1909
|
}[][] | undefined;
|
|
1864
1910
|
};
|
|
1865
|
-
messageHistory: import("ai").CoreMessage
|
|
1911
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1912
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1913
|
+
})[];
|
|
1866
1914
|
consecutiveAssistantMessages?: number | undefined;
|
|
1867
1915
|
};
|
|
1868
1916
|
toolResults: {
|
|
@@ -1872,8 +1920,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1872
1920
|
}[];
|
|
1873
1921
|
toolCalls: {
|
|
1874
1922
|
name: string;
|
|
1875
|
-
parameters: Record<string, string>;
|
|
1876
1923
|
id: string;
|
|
1924
|
+
parameters: Record<string, string>;
|
|
1877
1925
|
}[];
|
|
1878
1926
|
}, {
|
|
1879
1927
|
type: "prompt-response";
|
|
@@ -1908,7 +1956,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1908
1956
|
content: string;
|
|
1909
1957
|
}[][] | undefined;
|
|
1910
1958
|
};
|
|
1911
|
-
messageHistory: import("ai").CoreMessage
|
|
1959
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1960
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1961
|
+
})[];
|
|
1912
1962
|
consecutiveAssistantMessages?: number | undefined;
|
|
1913
1963
|
};
|
|
1914
1964
|
toolResults: {
|
|
@@ -1918,8 +1968,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1918
1968
|
}[];
|
|
1919
1969
|
toolCalls: {
|
|
1920
1970
|
name: string;
|
|
1921
|
-
parameters: Record<string, string>;
|
|
1922
1971
|
id: string;
|
|
1972
|
+
parameters: Record<string, string>;
|
|
1923
1973
|
}[];
|
|
1924
1974
|
}>, z.ZodObject<{
|
|
1925
1975
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -1989,6 +2039,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1989
2039
|
resetFileVersions: z.ZodBoolean;
|
|
1990
2040
|
}, "strip", z.ZodTypeAny, {
|
|
1991
2041
|
type: "tool-call";
|
|
2042
|
+
data: {
|
|
2043
|
+
name: string;
|
|
2044
|
+
id: string;
|
|
2045
|
+
input: Record<string, any>;
|
|
2046
|
+
};
|
|
1992
2047
|
userInputId: string;
|
|
1993
2048
|
response: string;
|
|
1994
2049
|
changes: {
|
|
@@ -2006,13 +2061,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2006
2061
|
content: string;
|
|
2007
2062
|
}[];
|
|
2008
2063
|
resetFileVersions: boolean;
|
|
2064
|
+
}, {
|
|
2065
|
+
type: "tool-call";
|
|
2009
2066
|
data: {
|
|
2010
2067
|
name: string;
|
|
2011
2068
|
id: string;
|
|
2012
2069
|
input: Record<string, any>;
|
|
2013
2070
|
};
|
|
2014
|
-
}, {
|
|
2015
|
-
type: "tool-call";
|
|
2016
2071
|
userInputId: string;
|
|
2017
2072
|
response: string;
|
|
2018
2073
|
changes: {
|
|
@@ -2030,11 +2085,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2030
2085
|
content: string;
|
|
2031
2086
|
}[];
|
|
2032
2087
|
resetFileVersions: boolean;
|
|
2033
|
-
data: {
|
|
2034
|
-
name: string;
|
|
2035
|
-
id: string;
|
|
2036
|
-
input: Record<string, any>;
|
|
2037
|
-
};
|
|
2038
2088
|
}>, z.ZodObject<{
|
|
2039
2089
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2040
2090
|
userInputId: z.ZodString;
|
|
@@ -2223,7 +2273,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2223
2273
|
content: string;
|
|
2224
2274
|
}[][] | undefined;
|
|
2225
2275
|
};
|
|
2226
|
-
messageHistory: import("ai").CoreMessage
|
|
2276
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2277
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2278
|
+
})[];
|
|
2227
2279
|
consecutiveAssistantMessages?: number | undefined;
|
|
2228
2280
|
};
|
|
2229
2281
|
toolResults: {
|
|
@@ -2233,8 +2285,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2233
2285
|
}[];
|
|
2234
2286
|
toolCalls: {
|
|
2235
2287
|
name: string;
|
|
2236
|
-
parameters: Record<string, string>;
|
|
2237
2288
|
id: string;
|
|
2289
|
+
parameters: Record<string, string>;
|
|
2238
2290
|
}[];
|
|
2239
2291
|
} | {
|
|
2240
2292
|
type: "response-chunk";
|
|
@@ -2246,6 +2298,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2246
2298
|
filePaths: string[];
|
|
2247
2299
|
} | {
|
|
2248
2300
|
type: "tool-call";
|
|
2301
|
+
data: {
|
|
2302
|
+
name: string;
|
|
2303
|
+
id: string;
|
|
2304
|
+
input: Record<string, any>;
|
|
2305
|
+
};
|
|
2249
2306
|
userInputId: string;
|
|
2250
2307
|
response: string;
|
|
2251
2308
|
changes: {
|
|
@@ -2263,11 +2320,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2263
2320
|
content: string;
|
|
2264
2321
|
}[];
|
|
2265
2322
|
resetFileVersions: boolean;
|
|
2266
|
-
data: {
|
|
2267
|
-
name: string;
|
|
2268
|
-
id: string;
|
|
2269
|
-
input: Record<string, any>;
|
|
2270
|
-
};
|
|
2271
2323
|
} | {
|
|
2272
2324
|
type: "terminal-command-result";
|
|
2273
2325
|
result: string;
|
|
@@ -2364,7 +2416,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2364
2416
|
content: string;
|
|
2365
2417
|
}[][] | undefined;
|
|
2366
2418
|
};
|
|
2367
|
-
messageHistory: import("ai").CoreMessage
|
|
2419
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2420
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2421
|
+
})[];
|
|
2368
2422
|
consecutiveAssistantMessages?: number | undefined;
|
|
2369
2423
|
};
|
|
2370
2424
|
toolResults: {
|
|
@@ -2374,8 +2428,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2374
2428
|
}[];
|
|
2375
2429
|
toolCalls: {
|
|
2376
2430
|
name: string;
|
|
2377
|
-
parameters: Record<string, string>;
|
|
2378
2431
|
id: string;
|
|
2432
|
+
parameters: Record<string, string>;
|
|
2379
2433
|
}[];
|
|
2380
2434
|
} | {
|
|
2381
2435
|
type: "response-chunk";
|
|
@@ -2387,6 +2441,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2387
2441
|
filePaths: string[];
|
|
2388
2442
|
} | {
|
|
2389
2443
|
type: "tool-call";
|
|
2444
|
+
data: {
|
|
2445
|
+
name: string;
|
|
2446
|
+
id: string;
|
|
2447
|
+
input: Record<string, any>;
|
|
2448
|
+
};
|
|
2390
2449
|
userInputId: string;
|
|
2391
2450
|
response: string;
|
|
2392
2451
|
changes: {
|
|
@@ -2404,11 +2463,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2404
2463
|
content: string;
|
|
2405
2464
|
}[];
|
|
2406
2465
|
resetFileVersions: boolean;
|
|
2407
|
-
data: {
|
|
2408
|
-
name: string;
|
|
2409
|
-
id: string;
|
|
2410
|
-
input: Record<string, any>;
|
|
2411
|
-
};
|
|
2412
2466
|
} | {
|
|
2413
2467
|
type: "terminal-command-result";
|
|
2414
2468
|
result: string;
|
|
@@ -2671,7 +2725,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2671
2725
|
content: string;
|
|
2672
2726
|
}[][] | undefined;
|
|
2673
2727
|
}>;
|
|
2674
|
-
messageHistory: z.ZodArray<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>,
|
|
2728
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
2729
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
2730
|
+
}, "strip", z.ZodTypeAny, {
|
|
2731
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2732
|
+
}, {
|
|
2733
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2734
|
+
}>>, "many">;
|
|
2675
2735
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
2676
2736
|
}, "strip", z.ZodTypeAny, {
|
|
2677
2737
|
agentContext: string;
|
|
@@ -2703,7 +2763,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2703
2763
|
content: string;
|
|
2704
2764
|
}[][] | undefined;
|
|
2705
2765
|
};
|
|
2706
|
-
messageHistory: import("ai").CoreMessage
|
|
2766
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2767
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2768
|
+
})[];
|
|
2707
2769
|
consecutiveAssistantMessages?: number | undefined;
|
|
2708
2770
|
}, {
|
|
2709
2771
|
agentContext: string;
|
|
@@ -2735,7 +2797,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2735
2797
|
content: string;
|
|
2736
2798
|
}[][] | undefined;
|
|
2737
2799
|
};
|
|
2738
|
-
messageHistory: import("ai").CoreMessage
|
|
2800
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2801
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2802
|
+
})[];
|
|
2739
2803
|
consecutiveAssistantMessages?: number | undefined;
|
|
2740
2804
|
}>;
|
|
2741
2805
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
@@ -2744,12 +2808,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2744
2808
|
id: z.ZodString;
|
|
2745
2809
|
}, "strip", z.ZodTypeAny, {
|
|
2746
2810
|
name: string;
|
|
2747
|
-
parameters: Record<string, string>;
|
|
2748
2811
|
id: string;
|
|
2812
|
+
parameters: Record<string, string>;
|
|
2749
2813
|
}, {
|
|
2750
2814
|
name: string;
|
|
2751
|
-
parameters: Record<string, string>;
|
|
2752
2815
|
id: string;
|
|
2816
|
+
parameters: Record<string, string>;
|
|
2753
2817
|
}>, "many">;
|
|
2754
2818
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2755
2819
|
name: z.ZodString;
|
|
@@ -2797,7 +2861,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2797
2861
|
content: string;
|
|
2798
2862
|
}[][] | undefined;
|
|
2799
2863
|
};
|
|
2800
|
-
messageHistory: import("ai").CoreMessage
|
|
2864
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2865
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2866
|
+
})[];
|
|
2801
2867
|
consecutiveAssistantMessages?: number | undefined;
|
|
2802
2868
|
};
|
|
2803
2869
|
toolResults: {
|
|
@@ -2807,8 +2873,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2807
2873
|
}[];
|
|
2808
2874
|
toolCalls: {
|
|
2809
2875
|
name: string;
|
|
2810
|
-
parameters: Record<string, string>;
|
|
2811
2876
|
id: string;
|
|
2877
|
+
parameters: Record<string, string>;
|
|
2812
2878
|
}[];
|
|
2813
2879
|
}, {
|
|
2814
2880
|
type: "prompt-response";
|
|
@@ -2843,7 +2909,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2843
2909
|
content: string;
|
|
2844
2910
|
}[][] | undefined;
|
|
2845
2911
|
};
|
|
2846
|
-
messageHistory: import("ai").CoreMessage
|
|
2912
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2913
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2914
|
+
})[];
|
|
2847
2915
|
consecutiveAssistantMessages?: number | undefined;
|
|
2848
2916
|
};
|
|
2849
2917
|
toolResults: {
|
|
@@ -2853,8 +2921,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2853
2921
|
}[];
|
|
2854
2922
|
toolCalls: {
|
|
2855
2923
|
name: string;
|
|
2856
|
-
parameters: Record<string, string>;
|
|
2857
2924
|
id: string;
|
|
2925
|
+
parameters: Record<string, string>;
|
|
2858
2926
|
}[];
|
|
2859
2927
|
}>, z.ZodObject<{
|
|
2860
2928
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -2924,6 +2992,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2924
2992
|
resetFileVersions: z.ZodBoolean;
|
|
2925
2993
|
}, "strip", z.ZodTypeAny, {
|
|
2926
2994
|
type: "tool-call";
|
|
2995
|
+
data: {
|
|
2996
|
+
name: string;
|
|
2997
|
+
id: string;
|
|
2998
|
+
input: Record<string, any>;
|
|
2999
|
+
};
|
|
2927
3000
|
userInputId: string;
|
|
2928
3001
|
response: string;
|
|
2929
3002
|
changes: {
|
|
@@ -2941,13 +3014,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2941
3014
|
content: string;
|
|
2942
3015
|
}[];
|
|
2943
3016
|
resetFileVersions: boolean;
|
|
3017
|
+
}, {
|
|
3018
|
+
type: "tool-call";
|
|
2944
3019
|
data: {
|
|
2945
3020
|
name: string;
|
|
2946
3021
|
id: string;
|
|
2947
3022
|
input: Record<string, any>;
|
|
2948
3023
|
};
|
|
2949
|
-
}, {
|
|
2950
|
-
type: "tool-call";
|
|
2951
3024
|
userInputId: string;
|
|
2952
3025
|
response: string;
|
|
2953
3026
|
changes: {
|
|
@@ -2965,11 +3038,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2965
3038
|
content: string;
|
|
2966
3039
|
}[];
|
|
2967
3040
|
resetFileVersions: boolean;
|
|
2968
|
-
data: {
|
|
2969
|
-
name: string;
|
|
2970
|
-
id: string;
|
|
2971
|
-
input: Record<string, any>;
|
|
2972
|
-
};
|
|
2973
3041
|
}>, z.ZodObject<{
|
|
2974
3042
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2975
3043
|
userInputId: z.ZodString;
|
|
@@ -3158,7 +3226,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3158
3226
|
content: string;
|
|
3159
3227
|
}[][] | undefined;
|
|
3160
3228
|
};
|
|
3161
|
-
messageHistory: import("ai").CoreMessage
|
|
3229
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
3230
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3231
|
+
})[];
|
|
3162
3232
|
consecutiveAssistantMessages?: number | undefined;
|
|
3163
3233
|
};
|
|
3164
3234
|
toolResults: {
|
|
@@ -3168,8 +3238,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3168
3238
|
}[];
|
|
3169
3239
|
toolCalls: {
|
|
3170
3240
|
name: string;
|
|
3171
|
-
parameters: Record<string, string>;
|
|
3172
3241
|
id: string;
|
|
3242
|
+
parameters: Record<string, string>;
|
|
3173
3243
|
}[];
|
|
3174
3244
|
} | {
|
|
3175
3245
|
type: "response-chunk";
|
|
@@ -3181,6 +3251,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3181
3251
|
filePaths: string[];
|
|
3182
3252
|
} | {
|
|
3183
3253
|
type: "tool-call";
|
|
3254
|
+
data: {
|
|
3255
|
+
name: string;
|
|
3256
|
+
id: string;
|
|
3257
|
+
input: Record<string, any>;
|
|
3258
|
+
};
|
|
3184
3259
|
userInputId: string;
|
|
3185
3260
|
response: string;
|
|
3186
3261
|
changes: {
|
|
@@ -3198,11 +3273,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3198
3273
|
content: string;
|
|
3199
3274
|
}[];
|
|
3200
3275
|
resetFileVersions: boolean;
|
|
3201
|
-
data: {
|
|
3202
|
-
name: string;
|
|
3203
|
-
id: string;
|
|
3204
|
-
input: Record<string, any>;
|
|
3205
|
-
};
|
|
3206
3276
|
} | {
|
|
3207
3277
|
type: "terminal-command-result";
|
|
3208
3278
|
result: string;
|
|
@@ -3299,7 +3369,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3299
3369
|
content: string;
|
|
3300
3370
|
}[][] | undefined;
|
|
3301
3371
|
};
|
|
3302
|
-
messageHistory: import("ai").CoreMessage
|
|
3372
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
3373
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3374
|
+
})[];
|
|
3303
3375
|
consecutiveAssistantMessages?: number | undefined;
|
|
3304
3376
|
};
|
|
3305
3377
|
toolResults: {
|
|
@@ -3309,8 +3381,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3309
3381
|
}[];
|
|
3310
3382
|
toolCalls: {
|
|
3311
3383
|
name: string;
|
|
3312
|
-
parameters: Record<string, string>;
|
|
3313
3384
|
id: string;
|
|
3385
|
+
parameters: Record<string, string>;
|
|
3314
3386
|
}[];
|
|
3315
3387
|
} | {
|
|
3316
3388
|
type: "response-chunk";
|
|
@@ -3322,6 +3394,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3322
3394
|
filePaths: string[];
|
|
3323
3395
|
} | {
|
|
3324
3396
|
type: "tool-call";
|
|
3397
|
+
data: {
|
|
3398
|
+
name: string;
|
|
3399
|
+
id: string;
|
|
3400
|
+
input: Record<string, any>;
|
|
3401
|
+
};
|
|
3325
3402
|
userInputId: string;
|
|
3326
3403
|
response: string;
|
|
3327
3404
|
changes: {
|
|
@@ -3339,11 +3416,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3339
3416
|
content: string;
|
|
3340
3417
|
}[];
|
|
3341
3418
|
resetFileVersions: boolean;
|
|
3342
|
-
data: {
|
|
3343
|
-
name: string;
|
|
3344
|
-
id: string;
|
|
3345
|
-
input: Record<string, any>;
|
|
3346
|
-
};
|
|
3347
3419
|
} | {
|
|
3348
3420
|
type: "terminal-command-result";
|
|
3349
3421
|
result: string;
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'production';
|
|
3
3
|
process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
|
|
4
|
-
process.env.NEXT_PUBLIC_APP_URL = 'https://
|
|
4
|
+
process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
|
|
5
5
|
process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
|
|
6
6
|
process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
|
|
7
|
-
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
|
|
8
|
-
process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'production';
|
|
9
|
-
process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
|
|
10
|
-
process.env.NEXT_PUBLIC_APP_URL = 'https://www.codebuff.com';
|
|
11
|
-
process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
|
|
12
|
-
process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
|
|
13
|
-
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
|
|
7
|
+
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com/';
|
|
14
8
|
"use strict";
|
|
15
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/dist/menu.js
CHANGED
|
@@ -152,6 +152,12 @@ exports.interactiveCommandDetails = [
|
|
|
152
152
|
isSlashCommand: true,
|
|
153
153
|
commandText: '',
|
|
154
154
|
},
|
|
155
|
+
{
|
|
156
|
+
baseCommand: 'export',
|
|
157
|
+
description: 'Export conversation summary to file',
|
|
158
|
+
isSlashCommand: true,
|
|
159
|
+
commandText: '"export"',
|
|
160
|
+
},
|
|
155
161
|
{
|
|
156
162
|
commandText: '"exit" or Ctrl-C x2',
|
|
157
163
|
baseCommand: 'exit',
|
|
@@ -182,7 +188,7 @@ function displaySlashCommandHelperMenu() {
|
|
|
182
188
|
return `${(0, picocolors_1.cyan)(commandString)} ${padding} ${cmd.description}`;
|
|
183
189
|
});
|
|
184
190
|
// Add the shell command tip at the end
|
|
185
|
-
const shellTip = (0, picocolors_1.gray)('
|
|
191
|
+
const shellTip = (0, picocolors_1.gray)('Tip: Type "!" followed by a command to run it in your shell, e.g., !ls');
|
|
186
192
|
// Print with consistent spacing
|
|
187
193
|
console.log(`\n\n${commandLines.join('\n')}\n${shellTip}\n`);
|
|
188
194
|
}
|