codebuff 1.0.193 → 1.0.196
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/checkpoints/checkpoint-manager.d.ts +20 -9
- package/dist/checkpoints/checkpoint-manager.js +68 -46
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +89 -40
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +3 -3
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +90 -90
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +1 -1
- package/dist/common/types/agent-state.d.ts +14 -14
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +9 -8
- package/dist/common/util/file.js +10 -2
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/messages.d.ts +2 -0
- package/dist/common/util/messages.js +35 -3
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-client.js +14 -8
- package/dist/common/websockets/websocket-client.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +196 -196
- package/dist/index.js +1 -1
- package/dist/project-files.d.ts +6 -6
- package/dist/project-files.js +3 -10
- package/dist/project-files.js.map +1 -1
- package/dist/workers/checkpoint-worker.js +4 -3
- package/dist/workers/checkpoint-worker.js.map +1 -1
- package/package.json +4 -3
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/token-counter.d.ts +0 -3
- package/dist/common/util/token-counter.js +0 -27
- package/dist/common/util/token-counter.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -281,7 +281,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
281
281
|
homedir: string;
|
|
282
282
|
cpus: number;
|
|
283
283
|
}>;
|
|
284
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
284
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
285
285
|
path: z.ZodString;
|
|
286
286
|
content: z.ZodString;
|
|
287
287
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -290,7 +290,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
290
290
|
}, {
|
|
291
291
|
path: string;
|
|
292
292
|
content: string;
|
|
293
|
-
}>, "many">, "many"
|
|
293
|
+
}>, "many">, "many">>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
295
|
currentWorkingDirectory: string;
|
|
296
296
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -312,11 +312,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
312
312
|
homedir: string;
|
|
313
313
|
cpus: number;
|
|
314
314
|
};
|
|
315
|
-
|
|
315
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
316
|
+
fileVersions?: {
|
|
316
317
|
path: string;
|
|
317
318
|
content: string;
|
|
318
|
-
}[][];
|
|
319
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
319
|
+
}[][] | undefined;
|
|
320
320
|
}, {
|
|
321
321
|
currentWorkingDirectory: string;
|
|
322
322
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -338,11 +338,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
338
338
|
homedir: string;
|
|
339
339
|
cpus: number;
|
|
340
340
|
};
|
|
341
|
-
|
|
341
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
342
|
+
fileVersions?: {
|
|
342
343
|
path: string;
|
|
343
344
|
content: string;
|
|
344
|
-
}[][];
|
|
345
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
345
|
+
}[][] | undefined;
|
|
346
346
|
}>;
|
|
347
347
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
348
348
|
type: z.ZodEnum<["patch", "file"]>;
|
|
@@ -418,11 +418,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
418
418
|
homedir: string;
|
|
419
419
|
cpus: number;
|
|
420
420
|
};
|
|
421
|
-
|
|
421
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
422
|
+
fileVersions?: {
|
|
422
423
|
path: string;
|
|
423
424
|
content: string;
|
|
424
|
-
}[][];
|
|
425
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
425
|
+
}[][] | undefined;
|
|
426
426
|
};
|
|
427
427
|
changesAlreadyApplied: {
|
|
428
428
|
path: string;
|
|
@@ -491,11 +491,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
491
491
|
homedir: string;
|
|
492
492
|
cpus: number;
|
|
493
493
|
};
|
|
494
|
-
|
|
494
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
495
|
+
fileVersions?: {
|
|
495
496
|
path: string;
|
|
496
497
|
content: string;
|
|
497
|
-
}[][];
|
|
498
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
498
|
+
}[][] | undefined;
|
|
499
499
|
};
|
|
500
500
|
changesAlreadyApplied: {
|
|
501
501
|
path: string;
|
|
@@ -559,7 +559,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
559
559
|
homedir: string;
|
|
560
560
|
cpus: number;
|
|
561
561
|
}>;
|
|
562
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
562
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
563
563
|
path: z.ZodString;
|
|
564
564
|
content: z.ZodString;
|
|
565
565
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -568,7 +568,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
568
568
|
}, {
|
|
569
569
|
path: string;
|
|
570
570
|
content: string;
|
|
571
|
-
}>, "many">, "many"
|
|
571
|
+
}>, "many">, "many">>;
|
|
572
572
|
}, "strip", z.ZodTypeAny, {
|
|
573
573
|
currentWorkingDirectory: string;
|
|
574
574
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -590,11 +590,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
590
590
|
homedir: string;
|
|
591
591
|
cpus: number;
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
594
|
+
fileVersions?: {
|
|
594
595
|
path: string;
|
|
595
596
|
content: string;
|
|
596
|
-
}[][];
|
|
597
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
597
|
+
}[][] | undefined;
|
|
598
598
|
}, {
|
|
599
599
|
currentWorkingDirectory: string;
|
|
600
600
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -616,11 +616,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
616
616
|
homedir: string;
|
|
617
617
|
cpus: number;
|
|
618
618
|
};
|
|
619
|
-
|
|
619
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
620
|
+
fileVersions?: {
|
|
620
621
|
path: string;
|
|
621
622
|
content: string;
|
|
622
|
-
}[][];
|
|
623
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
623
|
+
}[][] | undefined;
|
|
624
624
|
}>;
|
|
625
625
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
626
626
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -833,11 +833,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
833
833
|
homedir: string;
|
|
834
834
|
cpus: number;
|
|
835
835
|
};
|
|
836
|
-
|
|
836
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
837
|
+
fileVersions?: {
|
|
837
838
|
path: string;
|
|
838
839
|
content: string;
|
|
839
|
-
}[][];
|
|
840
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
840
|
+
}[][] | undefined;
|
|
841
841
|
};
|
|
842
842
|
agentContext: string;
|
|
843
843
|
messageHistory: {
|
|
@@ -897,11 +897,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
897
897
|
homedir: string;
|
|
898
898
|
cpus: number;
|
|
899
899
|
};
|
|
900
|
-
|
|
900
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
901
|
+
fileVersions?: {
|
|
901
902
|
path: string;
|
|
902
903
|
content: string;
|
|
903
|
-
}[][];
|
|
904
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
904
|
+
}[][] | undefined;
|
|
905
905
|
};
|
|
906
906
|
agentContext: string;
|
|
907
907
|
messageHistory: {
|
|
@@ -980,11 +980,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
980
980
|
homedir: string;
|
|
981
981
|
cpus: number;
|
|
982
982
|
};
|
|
983
|
-
|
|
983
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
984
|
+
fileVersions?: {
|
|
984
985
|
path: string;
|
|
985
986
|
content: string;
|
|
986
|
-
}[][];
|
|
987
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
987
|
+
}[][] | undefined;
|
|
988
988
|
};
|
|
989
989
|
agentContext: string;
|
|
990
990
|
messageHistory: {
|
|
@@ -1056,11 +1056,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1056
1056
|
homedir: string;
|
|
1057
1057
|
cpus: number;
|
|
1058
1058
|
};
|
|
1059
|
-
|
|
1059
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1060
|
+
fileVersions?: {
|
|
1060
1061
|
path: string;
|
|
1061
1062
|
content: string;
|
|
1062
|
-
}[][];
|
|
1063
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1063
|
+
}[][] | undefined;
|
|
1064
1064
|
};
|
|
1065
1065
|
agentContext: string;
|
|
1066
1066
|
messageHistory: {
|
|
@@ -1169,7 +1169,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1169
1169
|
homedir: string;
|
|
1170
1170
|
cpus: number;
|
|
1171
1171
|
}>;
|
|
1172
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1172
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1173
1173
|
path: z.ZodString;
|
|
1174
1174
|
content: z.ZodString;
|
|
1175
1175
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1178,7 +1178,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1178
1178
|
}, {
|
|
1179
1179
|
path: string;
|
|
1180
1180
|
content: string;
|
|
1181
|
-
}>, "many">, "many"
|
|
1181
|
+
}>, "many">, "many">>;
|
|
1182
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1183
1183
|
currentWorkingDirectory: string;
|
|
1184
1184
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1200,11 +1200,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1200
1200
|
homedir: string;
|
|
1201
1201
|
cpus: number;
|
|
1202
1202
|
};
|
|
1203
|
-
|
|
1203
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1204
|
+
fileVersions?: {
|
|
1204
1205
|
path: string;
|
|
1205
1206
|
content: string;
|
|
1206
|
-
}[][];
|
|
1207
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1207
|
+
}[][] | undefined;
|
|
1208
1208
|
}, {
|
|
1209
1209
|
currentWorkingDirectory: string;
|
|
1210
1210
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1226,11 +1226,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1226
1226
|
homedir: string;
|
|
1227
1227
|
cpus: number;
|
|
1228
1228
|
};
|
|
1229
|
-
|
|
1229
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1230
|
+
fileVersions?: {
|
|
1230
1231
|
path: string;
|
|
1231
1232
|
content: string;
|
|
1232
|
-
}[][];
|
|
1233
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1233
|
+
}[][] | undefined;
|
|
1234
1234
|
}>;
|
|
1235
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1236
1236
|
type: "init";
|
|
@@ -1256,11 +1256,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1256
1256
|
homedir: string;
|
|
1257
1257
|
cpus: number;
|
|
1258
1258
|
};
|
|
1259
|
-
|
|
1259
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1260
|
+
fileVersions?: {
|
|
1260
1261
|
path: string;
|
|
1261
1262
|
content: string;
|
|
1262
|
-
}[][];
|
|
1263
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1263
|
+
}[][] | undefined;
|
|
1264
1264
|
};
|
|
1265
1265
|
authToken?: string | undefined;
|
|
1266
1266
|
}, {
|
|
@@ -1287,11 +1287,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1287
1287
|
homedir: string;
|
|
1288
1288
|
cpus: number;
|
|
1289
1289
|
};
|
|
1290
|
-
|
|
1290
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1291
|
+
fileVersions?: {
|
|
1291
1292
|
path: string;
|
|
1292
1293
|
content: string;
|
|
1293
|
-
}[][];
|
|
1294
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1294
|
+
}[][] | undefined;
|
|
1295
1295
|
};
|
|
1296
1296
|
authToken?: string | undefined;
|
|
1297
1297
|
}>, z.ZodObject<{
|
|
@@ -1529,7 +1529,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1529
1529
|
homedir: string;
|
|
1530
1530
|
cpus: number;
|
|
1531
1531
|
}>;
|
|
1532
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1532
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1533
1533
|
path: z.ZodString;
|
|
1534
1534
|
content: z.ZodString;
|
|
1535
1535
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1538,7 +1538,7 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1538
1538
|
}, {
|
|
1539
1539
|
path: string;
|
|
1540
1540
|
content: string;
|
|
1541
|
-
}>, "many">, "many"
|
|
1541
|
+
}>, "many">, "many">>;
|
|
1542
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1543
1543
|
currentWorkingDirectory: string;
|
|
1544
1544
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1560,11 +1560,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1560
1560
|
homedir: string;
|
|
1561
1561
|
cpus: number;
|
|
1562
1562
|
};
|
|
1563
|
-
|
|
1563
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1564
|
+
fileVersions?: {
|
|
1564
1565
|
path: string;
|
|
1565
1566
|
content: string;
|
|
1566
|
-
}[][];
|
|
1567
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1567
|
+
}[][] | undefined;
|
|
1568
1568
|
}, {
|
|
1569
1569
|
currentWorkingDirectory: string;
|
|
1570
1570
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -1586,11 +1586,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1586
1586
|
homedir: string;
|
|
1587
1587
|
cpus: number;
|
|
1588
1588
|
};
|
|
1589
|
-
|
|
1589
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1590
|
+
fileVersions?: {
|
|
1590
1591
|
path: string;
|
|
1591
1592
|
content: string;
|
|
1592
|
-
}[][];
|
|
1593
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1593
|
+
}[][] | undefined;
|
|
1594
1594
|
}>;
|
|
1595
1595
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
1596
1596
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -1803,11 +1803,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1803
1803
|
homedir: string;
|
|
1804
1804
|
cpus: number;
|
|
1805
1805
|
};
|
|
1806
|
-
|
|
1806
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1807
|
+
fileVersions?: {
|
|
1807
1808
|
path: string;
|
|
1808
1809
|
content: string;
|
|
1809
|
-
}[][];
|
|
1810
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1810
|
+
}[][] | undefined;
|
|
1811
1811
|
};
|
|
1812
1812
|
agentContext: string;
|
|
1813
1813
|
messageHistory: {
|
|
@@ -1867,11 +1867,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1867
1867
|
homedir: string;
|
|
1868
1868
|
cpus: number;
|
|
1869
1869
|
};
|
|
1870
|
-
|
|
1870
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1871
|
+
fileVersions?: {
|
|
1871
1872
|
path: string;
|
|
1872
1873
|
content: string;
|
|
1873
|
-
}[][];
|
|
1874
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1874
|
+
}[][] | undefined;
|
|
1875
1875
|
};
|
|
1876
1876
|
agentContext: string;
|
|
1877
1877
|
messageHistory: {
|
|
@@ -1961,11 +1961,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1961
1961
|
homedir: string;
|
|
1962
1962
|
cpus: number;
|
|
1963
1963
|
};
|
|
1964
|
-
|
|
1964
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1965
|
+
fileVersions?: {
|
|
1965
1966
|
path: string;
|
|
1966
1967
|
content: string;
|
|
1967
|
-
}[][];
|
|
1968
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1968
|
+
}[][] | undefined;
|
|
1969
1969
|
};
|
|
1970
1970
|
agentContext: string;
|
|
1971
1971
|
messageHistory: {
|
|
@@ -2039,11 +2039,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
2039
2039
|
homedir: string;
|
|
2040
2040
|
cpus: number;
|
|
2041
2041
|
};
|
|
2042
|
-
|
|
2042
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2043
|
+
fileVersions?: {
|
|
2043
2044
|
path: string;
|
|
2044
2045
|
content: string;
|
|
2045
|
-
}[][];
|
|
2046
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2046
|
+
}[][] | undefined;
|
|
2047
2047
|
};
|
|
2048
2048
|
agentContext: string;
|
|
2049
2049
|
messageHistory: {
|
|
@@ -2255,7 +2255,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2255
2255
|
homedir: string;
|
|
2256
2256
|
cpus: number;
|
|
2257
2257
|
}>;
|
|
2258
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2258
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2259
2259
|
path: z.ZodString;
|
|
2260
2260
|
content: z.ZodString;
|
|
2261
2261
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2264,7 +2264,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2264
2264
|
}, {
|
|
2265
2265
|
path: string;
|
|
2266
2266
|
content: string;
|
|
2267
|
-
}>, "many">, "many"
|
|
2267
|
+
}>, "many">, "many">>;
|
|
2268
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2269
2269
|
currentWorkingDirectory: string;
|
|
2270
2270
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2286,11 +2286,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2286
2286
|
homedir: string;
|
|
2287
2287
|
cpus: number;
|
|
2288
2288
|
};
|
|
2289
|
-
|
|
2289
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2290
|
+
fileVersions?: {
|
|
2290
2291
|
path: string;
|
|
2291
2292
|
content: string;
|
|
2292
|
-
}[][];
|
|
2293
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2293
|
+
}[][] | undefined;
|
|
2294
2294
|
}, {
|
|
2295
2295
|
currentWorkingDirectory: string;
|
|
2296
2296
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -2312,11 +2312,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2312
2312
|
homedir: string;
|
|
2313
2313
|
cpus: number;
|
|
2314
2314
|
};
|
|
2315
|
-
|
|
2315
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2316
|
+
fileVersions?: {
|
|
2316
2317
|
path: string;
|
|
2317
2318
|
content: string;
|
|
2318
|
-
}[][];
|
|
2319
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2319
|
+
}[][] | undefined;
|
|
2320
2320
|
}>;
|
|
2321
2321
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
2322
2322
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -2529,11 +2529,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2529
2529
|
homedir: string;
|
|
2530
2530
|
cpus: number;
|
|
2531
2531
|
};
|
|
2532
|
-
|
|
2532
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2533
|
+
fileVersions?: {
|
|
2533
2534
|
path: string;
|
|
2534
2535
|
content: string;
|
|
2535
|
-
}[][];
|
|
2536
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2536
|
+
}[][] | undefined;
|
|
2537
2537
|
};
|
|
2538
2538
|
agentContext: string;
|
|
2539
2539
|
messageHistory: {
|
|
@@ -2593,11 +2593,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2593
2593
|
homedir: string;
|
|
2594
2594
|
cpus: number;
|
|
2595
2595
|
};
|
|
2596
|
-
|
|
2596
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2597
|
+
fileVersions?: {
|
|
2597
2598
|
path: string;
|
|
2598
2599
|
content: string;
|
|
2599
|
-
}[][];
|
|
2600
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2600
|
+
}[][] | undefined;
|
|
2601
2601
|
};
|
|
2602
2602
|
agentContext: string;
|
|
2603
2603
|
messageHistory: {
|
|
@@ -2687,11 +2687,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2687
2687
|
homedir: string;
|
|
2688
2688
|
cpus: number;
|
|
2689
2689
|
};
|
|
2690
|
-
|
|
2690
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2691
|
+
fileVersions?: {
|
|
2691
2692
|
path: string;
|
|
2692
2693
|
content: string;
|
|
2693
|
-
}[][];
|
|
2694
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2694
|
+
}[][] | undefined;
|
|
2695
2695
|
};
|
|
2696
2696
|
agentContext: string;
|
|
2697
2697
|
messageHistory: {
|
|
@@ -2765,11 +2765,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2765
2765
|
homedir: string;
|
|
2766
2766
|
cpus: number;
|
|
2767
2767
|
};
|
|
2768
|
-
|
|
2768
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2769
|
+
fileVersions?: {
|
|
2769
2770
|
path: string;
|
|
2770
2771
|
content: string;
|
|
2771
|
-
}[][];
|
|
2772
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2772
|
+
}[][] | undefined;
|
|
2773
2773
|
};
|
|
2774
2774
|
agentContext: string;
|
|
2775
2775
|
messageHistory: {
|
|
@@ -2886,12 +2886,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2886
2886
|
resetFileVersions: z.ZodBoolean;
|
|
2887
2887
|
}, "strip", z.ZodTypeAny, {
|
|
2888
2888
|
type: "tool-call";
|
|
2889
|
-
userInputId: string;
|
|
2890
2889
|
data: {
|
|
2891
2890
|
name: string;
|
|
2892
2891
|
id: string;
|
|
2893
2892
|
input: Record<string, any>;
|
|
2894
2893
|
};
|
|
2894
|
+
userInputId: string;
|
|
2895
2895
|
changesAlreadyApplied: {
|
|
2896
2896
|
path: string;
|
|
2897
2897
|
content: string;
|
|
@@ -2910,12 +2910,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2910
2910
|
resetFileVersions: boolean;
|
|
2911
2911
|
}, {
|
|
2912
2912
|
type: "tool-call";
|
|
2913
|
-
userInputId: string;
|
|
2914
2913
|
data: {
|
|
2915
2914
|
name: string;
|
|
2916
2915
|
id: string;
|
|
2917
2916
|
input: Record<string, any>;
|
|
2918
2917
|
};
|
|
2918
|
+
userInputId: string;
|
|
2919
2919
|
changesAlreadyApplied: {
|
|
2920
2920
|
path: string;
|
|
2921
2921
|
content: string;
|
|
@@ -28,14 +28,14 @@ export declare const PLAN_CONFIGS: Record<UsageLimits, PlanConfig>;
|
|
|
28
28
|
export declare const CREDITS_USAGE_LIMITS: Record<UsageLimits, number>;
|
|
29
29
|
export declare const costModes: readonly ["lite", "normal", "max"];
|
|
30
30
|
export type CostMode = (typeof costModes)[number];
|
|
31
|
-
export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-3-5-sonnet-20241022" | "claude-3-5-haiku-20241022" | "gpt-4o-2024-
|
|
31
|
+
export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-3-5-sonnet-20241022" | "claude-3-5-haiku-20241022" | "gpt-4o-2024-11-20" | "gpt-4o-mini-2024-07-18";
|
|
32
32
|
export declare const claudeModels: {
|
|
33
33
|
readonly sonnet: "claude-3-5-sonnet-20241022";
|
|
34
34
|
readonly haiku: "claude-3-5-haiku-20241022";
|
|
35
35
|
};
|
|
36
36
|
export type AnthropicModel = (typeof claudeModels)[keyof typeof claudeModels];
|
|
37
37
|
export declare const openaiModels: {
|
|
38
|
-
readonly gpt4o: "gpt-4o-2024-
|
|
38
|
+
readonly gpt4o: "gpt-4o-2024-11-20";
|
|
39
39
|
readonly gpt4omini: "gpt-4o-mini-2024-07-18";
|
|
40
40
|
readonly o3mini: "o3-mini-2025-01-31";
|
|
41
41
|
readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
|
|
@@ -54,7 +54,7 @@ export declare const models: {
|
|
|
54
54
|
readonly deepseekChat: "deepseek-chat";
|
|
55
55
|
readonly deepseekReasoner: "deepseek-reasoner";
|
|
56
56
|
readonly gemini2flash: "gemini-2.0-flash-001";
|
|
57
|
-
readonly gpt4o: "gpt-4o-2024-
|
|
57
|
+
readonly gpt4o: "gpt-4o-2024-11-20";
|
|
58
58
|
readonly gpt4omini: "gpt-4o-mini-2024-07-18";
|
|
59
59
|
readonly o3mini: "o3-mini-2025-01-31";
|
|
60
60
|
readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
|
package/dist/common/constants.js
CHANGED
|
@@ -106,7 +106,7 @@ exports.claudeModels = {
|
|
|
106
106
|
haiku: 'claude-3-5-haiku-20241022',
|
|
107
107
|
};
|
|
108
108
|
exports.openaiModels = {
|
|
109
|
-
gpt4o: 'gpt-4o-2024-
|
|
109
|
+
gpt4o: 'gpt-4o-2024-11-20',
|
|
110
110
|
gpt4omini: 'gpt-4o-mini-2024-07-18',
|
|
111
111
|
o3mini: 'o3-mini-2025-01-31',
|
|
112
112
|
generatePatch: 'ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk',
|
|
@@ -76,7 +76,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
76
76
|
homedir: string;
|
|
77
77
|
cpus: number;
|
|
78
78
|
}>;
|
|
79
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
79
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
80
80
|
path: z.ZodString;
|
|
81
81
|
content: z.ZodString;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -85,7 +85,7 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
85
85
|
}, {
|
|
86
86
|
path: string;
|
|
87
87
|
content: string;
|
|
88
|
-
}>, "many">, "many"
|
|
88
|
+
}>, "many">, "many">>;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
currentWorkingDirectory: string;
|
|
91
91
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -107,11 +107,11 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
107
107
|
homedir: string;
|
|
108
108
|
cpus: number;
|
|
109
109
|
};
|
|
110
|
-
|
|
110
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
111
|
+
fileVersions?: {
|
|
111
112
|
path: string;
|
|
112
113
|
content: string;
|
|
113
|
-
}[][];
|
|
114
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
114
|
+
}[][] | undefined;
|
|
115
115
|
}, {
|
|
116
116
|
currentWorkingDirectory: string;
|
|
117
117
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -133,11 +133,11 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
133
133
|
homedir: string;
|
|
134
134
|
cpus: number;
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
137
|
+
fileVersions?: {
|
|
137
138
|
path: string;
|
|
138
139
|
content: string;
|
|
139
|
-
}[][];
|
|
140
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
140
|
+
}[][] | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
143
143
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -350,11 +350,11 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
350
350
|
homedir: string;
|
|
351
351
|
cpus: number;
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
354
|
+
fileVersions?: {
|
|
354
355
|
path: string;
|
|
355
356
|
content: string;
|
|
356
|
-
}[][];
|
|
357
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
357
|
+
}[][] | undefined;
|
|
358
358
|
};
|
|
359
359
|
agentContext: string;
|
|
360
360
|
messageHistory: {
|
|
@@ -414,11 +414,11 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
414
414
|
homedir: string;
|
|
415
415
|
cpus: number;
|
|
416
416
|
};
|
|
417
|
-
|
|
417
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
418
|
+
fileVersions?: {
|
|
418
419
|
path: string;
|
|
419
420
|
content: string;
|
|
420
|
-
}[][];
|
|
421
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
421
|
+
}[][] | undefined;
|
|
422
422
|
};
|
|
423
423
|
agentContext: string;
|
|
424
424
|
messageHistory: {
|
|
@@ -61,15 +61,15 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
61
61
|
type: "ephemeral";
|
|
62
62
|
}>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
content: string;
|
|
65
64
|
type: "tool_result";
|
|
65
|
+
content: string;
|
|
66
66
|
tool_use_id: string;
|
|
67
67
|
cache_control?: {
|
|
68
68
|
type: "ephemeral";
|
|
69
69
|
} | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
content: string;
|
|
72
71
|
type: "tool_result";
|
|
72
|
+
content: string;
|
|
73
73
|
tool_use_id: string;
|
|
74
74
|
cache_control?: {
|
|
75
75
|
type: "ephemeral";
|
|
@@ -181,15 +181,15 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
181
181
|
type: "ephemeral";
|
|
182
182
|
}>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
content: string;
|
|
185
184
|
type: "tool_result";
|
|
185
|
+
content: string;
|
|
186
186
|
tool_use_id: string;
|
|
187
187
|
cache_control?: {
|
|
188
188
|
type: "ephemeral";
|
|
189
189
|
} | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
content: string;
|
|
192
191
|
type: "tool_result";
|
|
192
|
+
content: string;
|
|
193
193
|
tool_use_id: string;
|
|
194
194
|
cache_control?: {
|
|
195
195
|
type: "ephemeral";
|
|
@@ -253,8 +253,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
253
253
|
type: "ephemeral";
|
|
254
254
|
} | undefined;
|
|
255
255
|
} | {
|
|
256
|
-
content: string;
|
|
257
256
|
type: "tool_result";
|
|
257
|
+
content: string;
|
|
258
258
|
tool_use_id: string;
|
|
259
259
|
cache_control?: {
|
|
260
260
|
type: "ephemeral";
|
|
@@ -287,8 +287,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
content: string;
|
|
291
290
|
type: "tool_result";
|
|
291
|
+
content: string;
|
|
292
292
|
tool_use_id: string;
|
|
293
293
|
cache_control?: {
|
|
294
294
|
type: "ephemeral";
|