codecane 1.0.319 → 1.0.321
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/cli.d.ts +2 -2
- package/dist/cli.js +4 -17
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +0 -3
- package/dist/client.js +3 -4
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +34 -34
- package/dist/common/analytics.js +1 -4
- package/dist/common/analytics.js.map +1 -1
- package/dist/common/constants/tools.d.ts +1 -1
- package/dist/common/constants/tools.js +1 -1
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/constants.d.ts +14 -12
- package/dist/common/constants.js +4 -3
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +1 -1
- package/dist/common/types/agent-state.d.ts +8 -8
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/__tests__/saxy.test.js +75 -0
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/saxy.d.ts +1 -1
- package/dist/common/util/saxy.js +42 -44
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/util/string.d.ts +1 -0
- package/dist/common/util/string.js +9 -0
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +76 -76
- package/dist/index.js +0 -0
- package/dist/menu.js +8 -6
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +1 -0
- package/dist/project-files.js +13 -0
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +3 -3
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.js +1 -3
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +4 -0
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +3 -2
- package/dist/common/__tests__/project-file-tree.test.d.ts +0 -1
- package/dist/common/__tests__/project-file-tree.test.js +0 -251
- package/dist/common/__tests__/project-file-tree.test.js.map +0 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
- package/dist/common/util/process-stream.d.ts +0 -7
- package/dist/common/util/process-stream.js +0 -162
- package/dist/common/util/process-stream.js.map +0 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +0 -137
- package/dist/utils/__tests__/file-paths.test.d.ts +0 -1
- package/dist/utils/__tests__/file-paths.test.js +0 -37
- package/dist/utils/__tests__/file-paths.test.js.map +0 -1
- package/dist/utils/__tests__/path.test.d.ts +0 -1
- package/dist/utils/__tests__/path.test.js +0 -37
- package/dist/utils/__tests__/path.test.js.map +0 -1
- package/dist/utils/file-paths.d.ts +0 -9
- package/dist/utils/file-paths.js +0 -24
- package/dist/utils/file-paths.js.map +0 -1
- package/dist/utils/path.d.ts +0 -9
- package/dist/utils/path.js +0 -27
- package/dist/utils/path.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
path: string;
|
|
8
|
-
type: "
|
|
8
|
+
type: "file" | "patch";
|
|
9
9
|
content: string;
|
|
10
10
|
}, {
|
|
11
11
|
path: string;
|
|
12
|
-
type: "
|
|
12
|
+
type: "file" | "patch";
|
|
13
13
|
content: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
@@ -19,11 +19,11 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
path: string;
|
|
22
|
-
type: "
|
|
22
|
+
type: "file" | "patch";
|
|
23
23
|
content: string;
|
|
24
24
|
}, {
|
|
25
25
|
path: string;
|
|
26
|
-
type: "
|
|
26
|
+
type: "file" | "patch";
|
|
27
27
|
content: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
@@ -504,7 +504,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
504
504
|
type: "prompt";
|
|
505
505
|
promptId: string;
|
|
506
506
|
fingerprintId: string;
|
|
507
|
-
costMode: "
|
|
507
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
508
508
|
agentState: {
|
|
509
509
|
agentContext: string;
|
|
510
510
|
fileContext: {
|
|
@@ -659,7 +659,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
659
659
|
}[];
|
|
660
660
|
prompt?: string | undefined;
|
|
661
661
|
authToken?: string | undefined;
|
|
662
|
-
costMode?: "
|
|
662
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
663
663
|
model?: string | undefined;
|
|
664
664
|
cwd?: string | undefined;
|
|
665
665
|
}>, z.ZodObject<{
|
|
@@ -792,7 +792,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
792
792
|
}>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
794
|
type: "init";
|
|
795
|
-
fingerprintId: string;
|
|
796
795
|
fileContext: {
|
|
797
796
|
currentWorkingDirectory: string;
|
|
798
797
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -821,10 +820,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
821
820
|
content: string;
|
|
822
821
|
}[][] | undefined;
|
|
823
822
|
};
|
|
823
|
+
fingerprintId: string;
|
|
824
824
|
authToken?: string | undefined;
|
|
825
825
|
}, {
|
|
826
826
|
type: "init";
|
|
827
|
-
fingerprintId: string;
|
|
828
827
|
fileContext: {
|
|
829
828
|
currentWorkingDirectory: string;
|
|
830
829
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -853,6 +852,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
853
852
|
content: string;
|
|
854
853
|
}[][] | undefined;
|
|
855
854
|
};
|
|
855
|
+
fingerprintId: string;
|
|
856
856
|
authToken?: string | undefined;
|
|
857
857
|
}>, z.ZodObject<{
|
|
858
858
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -929,11 +929,11 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
929
929
|
content: z.ZodString;
|
|
930
930
|
}, "strip", z.ZodTypeAny, {
|
|
931
931
|
path: string;
|
|
932
|
-
type: "
|
|
932
|
+
type: "file" | "patch";
|
|
933
933
|
content: string;
|
|
934
934
|
}, {
|
|
935
935
|
path: string;
|
|
936
|
-
type: "
|
|
936
|
+
type: "file" | "patch";
|
|
937
937
|
content: string;
|
|
938
938
|
}>, "many">;
|
|
939
939
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -942,11 +942,11 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
942
942
|
content: z.ZodString;
|
|
943
943
|
}, "strip", z.ZodTypeAny, {
|
|
944
944
|
path: string;
|
|
945
|
-
type: "
|
|
945
|
+
type: "file" | "patch";
|
|
946
946
|
content: string;
|
|
947
947
|
}, {
|
|
948
948
|
path: string;
|
|
949
|
-
type: "
|
|
949
|
+
type: "file" | "patch";
|
|
950
950
|
content: string;
|
|
951
951
|
}>, "many">;
|
|
952
952
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -972,12 +972,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
972
972
|
response: string;
|
|
973
973
|
changes: {
|
|
974
974
|
path: string;
|
|
975
|
-
type: "
|
|
975
|
+
type: "file" | "patch";
|
|
976
976
|
content: string;
|
|
977
977
|
}[];
|
|
978
978
|
changesAlreadyApplied: {
|
|
979
979
|
path: string;
|
|
980
|
-
type: "
|
|
980
|
+
type: "file" | "patch";
|
|
981
981
|
content: string;
|
|
982
982
|
}[];
|
|
983
983
|
addedFileVersions: {
|
|
@@ -996,12 +996,12 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
996
996
|
response: string;
|
|
997
997
|
changes: {
|
|
998
998
|
path: string;
|
|
999
|
-
type: "
|
|
999
|
+
type: "file" | "patch";
|
|
1000
1000
|
content: string;
|
|
1001
1001
|
}[];
|
|
1002
1002
|
changesAlreadyApplied: {
|
|
1003
1003
|
path: string;
|
|
1004
|
-
type: "
|
|
1004
|
+
type: "file" | "patch";
|
|
1005
1005
|
content: string;
|
|
1006
1006
|
}[];
|
|
1007
1007
|
addedFileVersions: {
|
|
@@ -1679,11 +1679,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1679
1679
|
content: z.ZodString;
|
|
1680
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1681
1681
|
path: string;
|
|
1682
|
-
type: "
|
|
1682
|
+
type: "file" | "patch";
|
|
1683
1683
|
content: string;
|
|
1684
1684
|
}, {
|
|
1685
1685
|
path: string;
|
|
1686
|
-
type: "
|
|
1686
|
+
type: "file" | "patch";
|
|
1687
1687
|
content: string;
|
|
1688
1688
|
}>, "many">;
|
|
1689
1689
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1692,11 +1692,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1692
1692
|
content: z.ZodString;
|
|
1693
1693
|
}, "strip", z.ZodTypeAny, {
|
|
1694
1694
|
path: string;
|
|
1695
|
-
type: "
|
|
1695
|
+
type: "file" | "patch";
|
|
1696
1696
|
content: string;
|
|
1697
1697
|
}, {
|
|
1698
1698
|
path: string;
|
|
1699
|
-
type: "
|
|
1699
|
+
type: "file" | "patch";
|
|
1700
1700
|
content: string;
|
|
1701
1701
|
}>, "many">;
|
|
1702
1702
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1722,12 +1722,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1722
1722
|
response: string;
|
|
1723
1723
|
changes: {
|
|
1724
1724
|
path: string;
|
|
1725
|
-
type: "
|
|
1725
|
+
type: "file" | "patch";
|
|
1726
1726
|
content: string;
|
|
1727
1727
|
}[];
|
|
1728
1728
|
changesAlreadyApplied: {
|
|
1729
1729
|
path: string;
|
|
1730
|
-
type: "
|
|
1730
|
+
type: "file" | "patch";
|
|
1731
1731
|
content: string;
|
|
1732
1732
|
}[];
|
|
1733
1733
|
addedFileVersions: {
|
|
@@ -1746,12 +1746,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1746
1746
|
response: string;
|
|
1747
1747
|
changes: {
|
|
1748
1748
|
path: string;
|
|
1749
|
-
type: "
|
|
1749
|
+
type: "file" | "patch";
|
|
1750
1750
|
content: string;
|
|
1751
1751
|
}[];
|
|
1752
1752
|
changesAlreadyApplied: {
|
|
1753
1753
|
path: string;
|
|
1754
|
-
type: "
|
|
1754
|
+
type: "file" | "patch";
|
|
1755
1755
|
content: string;
|
|
1756
1756
|
}[];
|
|
1757
1757
|
addedFileVersions: {
|
|
@@ -2425,11 +2425,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2425
2425
|
content: z.ZodString;
|
|
2426
2426
|
}, "strip", z.ZodTypeAny, {
|
|
2427
2427
|
path: string;
|
|
2428
|
-
type: "
|
|
2428
|
+
type: "file" | "patch";
|
|
2429
2429
|
content: string;
|
|
2430
2430
|
}, {
|
|
2431
2431
|
path: string;
|
|
2432
|
-
type: "
|
|
2432
|
+
type: "file" | "patch";
|
|
2433
2433
|
content: string;
|
|
2434
2434
|
}>, "many">;
|
|
2435
2435
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2438,11 +2438,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2438
2438
|
content: z.ZodString;
|
|
2439
2439
|
}, "strip", z.ZodTypeAny, {
|
|
2440
2440
|
path: string;
|
|
2441
|
-
type: "
|
|
2441
|
+
type: "file" | "patch";
|
|
2442
2442
|
content: string;
|
|
2443
2443
|
}, {
|
|
2444
2444
|
path: string;
|
|
2445
|
-
type: "
|
|
2445
|
+
type: "file" | "patch";
|
|
2446
2446
|
content: string;
|
|
2447
2447
|
}>, "many">;
|
|
2448
2448
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2467,12 +2467,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2467
2467
|
response: string;
|
|
2468
2468
|
changes: {
|
|
2469
2469
|
path: string;
|
|
2470
|
-
type: "
|
|
2470
|
+
type: "file" | "patch";
|
|
2471
2471
|
content: string;
|
|
2472
2472
|
}[];
|
|
2473
2473
|
changesAlreadyApplied: {
|
|
2474
2474
|
path: string;
|
|
2475
|
-
type: "
|
|
2475
|
+
type: "file" | "patch";
|
|
2476
2476
|
content: string;
|
|
2477
2477
|
}[];
|
|
2478
2478
|
addedFileVersions: {
|
|
@@ -2491,12 +2491,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2491
2491
|
response: string;
|
|
2492
2492
|
changes: {
|
|
2493
2493
|
path: string;
|
|
2494
|
-
type: "
|
|
2494
|
+
type: "file" | "patch";
|
|
2495
2495
|
content: string;
|
|
2496
2496
|
}[];
|
|
2497
2497
|
changesAlreadyApplied: {
|
|
2498
2498
|
path: string;
|
|
2499
|
-
type: "
|
|
2499
|
+
type: "file" | "patch";
|
|
2500
2500
|
content: string;
|
|
2501
2501
|
}[];
|
|
2502
2502
|
addedFileVersions: {
|
|
@@ -2592,13 +2592,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2592
2592
|
}, "strip", z.ZodTypeAny, {
|
|
2593
2593
|
message: string;
|
|
2594
2594
|
type: "action-error";
|
|
2595
|
-
error?: string | undefined;
|
|
2596
2595
|
remainingBalance?: number | undefined;
|
|
2596
|
+
error?: string | undefined;
|
|
2597
2597
|
}, {
|
|
2598
2598
|
message: string;
|
|
2599
2599
|
type: "action-error";
|
|
2600
|
-
error?: string | undefined;
|
|
2601
2600
|
remainingBalance?: number | undefined;
|
|
2601
|
+
error?: string | undefined;
|
|
2602
2602
|
}>, z.ZodObject<{
|
|
2603
2603
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2604
2604
|
commitMessage: z.ZodString;
|
package/dist/common/analytics.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.initAnalytics = initAnalytics;
|
|
|
4
4
|
exports.flushAnalytics = flushAnalytics;
|
|
5
5
|
exports.trackEvent = trackEvent;
|
|
6
6
|
const posthog_node_1 = require("posthog-node");
|
|
7
|
-
const analytics_events_1 = require("common/src/constants/analytics-events");
|
|
8
7
|
const env_mjs_1 = require("./env.mjs");
|
|
9
8
|
const logger_1 = require("./util/logger");
|
|
10
9
|
let client;
|
|
@@ -25,9 +24,7 @@ async function flushAnalytics() {
|
|
|
25
24
|
try {
|
|
26
25
|
await client.flush();
|
|
27
26
|
}
|
|
28
|
-
catch (error) {
|
|
29
|
-
trackEvent(analytics_events_1.AnalyticsEvent.FLUSH_FAILED, 'unknown-user', { error });
|
|
30
|
-
}
|
|
27
|
+
catch (error) { }
|
|
31
28
|
}
|
|
32
29
|
function trackEvent(event, userId, properties) {
|
|
33
30
|
if (env_mjs_1.env.NEXT_PUBLIC_CB_ENVIRONMENT !== 'production') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],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 @@ exports.toolSchema = {
|
|
|
7
7
|
update_subgoal: ['id', 'status', 'plan', 'log'],
|
|
8
8
|
// File operations
|
|
9
9
|
write_file: ['path', 'content'],
|
|
10
|
-
str_replace: ['path',
|
|
10
|
+
str_replace: ['path', /old_\d+/, /new_\d+/],
|
|
11
11
|
read_files: ['paths'],
|
|
12
12
|
find_files: ['description'],
|
|
13
13
|
// Search and terminal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/constants/tools.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,yCAAyC;IACzC,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC;IACzD,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC;IAE/C,kBAAkB;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/constants/tools.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,yCAAyC;IACzC,WAAW,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC;IACzD,cAAc,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC;IAE/C,kBAAkB;IAClB,UAAU,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC/B,WAAW,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;IAC3C,UAAU,EAAE,CAAC,OAAO,CAAC;IACrB,UAAU,EAAE,CAAC,aAAa,CAAC;IAE3B,sBAAsB;IACtB,WAAW,EAAE,CAAC,SAAS,CAAC;IACxB,oBAAoB,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,E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IAEvE,OAAO,YAAY;QACjB,CAAC,CAAC,GAAG,OAAO,KAAK,YAAY,KAAK,QAAQ,EAAE;QAC5C,CAAC,CAAC,GAAG,OAAO,GAAG,QAAQ,EAAE,CAAA;AAC7B,CAAC,CAAA;AA1BY,QAAA,iBAAiB,qBA0B7B"}
|
|
@@ -37,10 +37,11 @@ export type UserState = (typeof UserState)[keyof typeof UserState];
|
|
|
37
37
|
export declare function getUserState(isLoggedIn: boolean, credits: number): UserState;
|
|
38
38
|
export declare const costModes: readonly ["lite", "normal", "max", "experimental"];
|
|
39
39
|
export type CostMode = (typeof costModes)[number];
|
|
40
|
-
export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-
|
|
40
|
+
export declare const getModelForMode: (costMode: CostMode, operation: "agent" | "file-requests" | "check-new-files") => "claude-sonnet-4-20250514" | "claude-3-5-haiku-20241022" | "gpt-4o-2024-11-20" | "gpt-4o-mini-2024-07-18" | "gemini-2.5-flash-preview-05-20:thinking" | "gemini-2.5-pro-preview-05-06";
|
|
41
41
|
export declare const claudeModels: {
|
|
42
|
-
readonly sonnet: "claude-
|
|
42
|
+
readonly sonnet: "claude-sonnet-4-20250514";
|
|
43
43
|
readonly sonnet3_7: "claude-3-7-sonnet-20250219";
|
|
44
|
+
readonly opus4: "claude-opus-4-20250514";
|
|
44
45
|
readonly haiku: "claude-3-5-haiku-20241022";
|
|
45
46
|
};
|
|
46
47
|
export type AnthropicModel = (typeof claudeModels)[keyof typeof claudeModels];
|
|
@@ -55,8 +56,8 @@ export declare const openaiModels: {
|
|
|
55
56
|
};
|
|
56
57
|
export type OpenAIModel = (typeof openaiModels)[keyof typeof openaiModels];
|
|
57
58
|
export declare const geminiModels: {
|
|
58
|
-
readonly gemini2_5_flash: "gemini-2.5-flash-preview-
|
|
59
|
-
readonly gemini2_5_flash_thinking: "gemini-2.5-flash-preview-
|
|
59
|
+
readonly gemini2_5_flash: "gemini-2.5-flash-preview-05-20";
|
|
60
|
+
readonly gemini2_5_flash_thinking: "gemini-2.5-flash-preview-05-20:thinking";
|
|
60
61
|
readonly gemini2flash: "gemini-2.0-flash-001";
|
|
61
62
|
readonly gemini2_5_pro_exp: "gemini-2.5-pro-exp-03-25";
|
|
62
63
|
readonly gemini2_5_pro_preview: "gemini-2.5-pro-preview-05-06";
|
|
@@ -88,8 +89,8 @@ export declare const models: {
|
|
|
88
89
|
readonly openrouter_gemini2_5_flash_thinking: "google/gemini-2.5-flash-preview:thinking";
|
|
89
90
|
readonly deepseekChat: "deepseek-chat";
|
|
90
91
|
readonly deepseekReasoner: "deepseek-reasoner";
|
|
91
|
-
readonly gemini2_5_flash: "gemini-2.5-flash-preview-
|
|
92
|
-
readonly gemini2_5_flash_thinking: "gemini-2.5-flash-preview-
|
|
92
|
+
readonly gemini2_5_flash: "gemini-2.5-flash-preview-05-20";
|
|
93
|
+
readonly gemini2_5_flash_thinking: "gemini-2.5-flash-preview-05-20:thinking";
|
|
93
94
|
readonly gemini2flash: "gemini-2.0-flash-001";
|
|
94
95
|
readonly gemini2_5_pro_exp: "gemini-2.5-pro-exp-03-25";
|
|
95
96
|
readonly gemini2_5_pro_preview: "gemini-2.5-pro-preview-05-06";
|
|
@@ -100,15 +101,16 @@ export declare const models: {
|
|
|
100
101
|
readonly o3: "o3-2025-04-16";
|
|
101
102
|
readonly o4mini: "o4-mini-2025-04-16";
|
|
102
103
|
readonly generatePatch: "ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk";
|
|
103
|
-
readonly sonnet: "claude-
|
|
104
|
+
readonly sonnet: "claude-sonnet-4-20250514";
|
|
104
105
|
readonly sonnet3_7: "claude-3-7-sonnet-20250219";
|
|
106
|
+
readonly opus4: "claude-opus-4-20250514";
|
|
105
107
|
readonly haiku: "claude-3-5-haiku-20241022";
|
|
106
108
|
};
|
|
107
109
|
export declare const shortModelNames: {
|
|
108
110
|
'gemini-2.5-pro': "gemini-2.5-pro-preview-05-06";
|
|
109
111
|
'sonnet-3.7': "claude-3-7-sonnet-20250219";
|
|
110
|
-
'sonnet-3.5': "claude-
|
|
111
|
-
'sonnet-3.6': "claude-
|
|
112
|
+
'sonnet-3.5': "claude-sonnet-4-20250514";
|
|
113
|
+
'sonnet-3.6': "claude-sonnet-4-20250514";
|
|
112
114
|
'gpt-4.1': "gpt-4.1-2025-04-14";
|
|
113
115
|
'o3-mini': "o3-mini-2025-01-31";
|
|
114
116
|
o3: "o3-2025-04-16";
|
|
@@ -118,11 +120,11 @@ export declare const providerModelNames: {
|
|
|
118
120
|
"gemini-2.5-pro-preview-05-06": string;
|
|
119
121
|
"gemini-2.5-pro-exp-03-25": string;
|
|
120
122
|
"gemini-2.0-flash-001": string;
|
|
121
|
-
"gemini-2.5-flash-preview-
|
|
122
|
-
"gemini-2.5-flash-preview-
|
|
123
|
+
"gemini-2.5-flash-preview-05-20": string;
|
|
124
|
+
"gemini-2.5-flash-preview-05-20:thinking": string;
|
|
123
125
|
"claude-3-5-haiku-20241022": string;
|
|
124
126
|
"claude-3-7-sonnet-20250219": string;
|
|
125
|
-
"claude-
|
|
127
|
+
"claude-sonnet-4-20250514": string;
|
|
126
128
|
"gpt-4.1-2025-04-14": string;
|
|
127
129
|
"gpt-4o-2024-11-20": string;
|
|
128
130
|
"gpt-4o-mini-2024-07-18": string;
|
package/dist/common/constants.js
CHANGED
|
@@ -118,8 +118,9 @@ const getModelForMode = (costMode, operation) => {
|
|
|
118
118
|
};
|
|
119
119
|
exports.getModelForMode = getModelForMode;
|
|
120
120
|
exports.claudeModels = {
|
|
121
|
-
sonnet: 'claude-
|
|
121
|
+
sonnet: 'claude-sonnet-4-20250514',
|
|
122
122
|
sonnet3_7: 'claude-3-7-sonnet-20250219',
|
|
123
|
+
opus4: 'claude-opus-4-20250514',
|
|
123
124
|
haiku: 'claude-3-5-haiku-20241022',
|
|
124
125
|
};
|
|
125
126
|
exports.openaiModels = {
|
|
@@ -132,8 +133,8 @@ exports.openaiModels = {
|
|
|
132
133
|
generatePatch: 'ft:gpt-4o-2024-08-06:manifold-markets:generate-patch-batch2:AKYtDIhk',
|
|
133
134
|
};
|
|
134
135
|
exports.geminiModels = {
|
|
135
|
-
gemini2_5_flash: 'gemini-2.5-flash-preview-
|
|
136
|
-
gemini2_5_flash_thinking: 'gemini-2.5-flash-preview-
|
|
136
|
+
gemini2_5_flash: 'gemini-2.5-flash-preview-05-20',
|
|
137
|
+
gemini2_5_flash_thinking: 'gemini-2.5-flash-preview-05-20:thinking',
|
|
137
138
|
gemini2flash: 'gemini-2.0-flash-001',
|
|
138
139
|
gemini2_5_pro_exp: 'gemini-2.5-pro-exp-03-25',
|
|
139
140
|
gemini2_5_pro_preview: 'gemini-2.5-pro-preview-05-06',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAsDA,wCAKC;AA4BD,oCAOC;AA9FY,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;IACP,mBAAmB;IACnB,WAAW;CACZ,CAAA;AAED,iEAAiE;AACpD,QAAA,YAAY,GAAG,cAAc,CAAA;AAC7B,QAAA,iBAAiB,GAAG,mBAAmB,CAAA;AACvC,QAAA,aAAa,GAAG,EAAW,CAAA;AAC3B,QAAA,eAAe,GAAG;IAC7B,GAAG,qBAAa;IAChB,oBAAY;IACZ,yBAAiB;CACT,CAAA;AAEG,QAAA,gBAAgB,GA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AAE,QAAQ;IAC/B,CAAC,cAAM,CAAC,eAAe,CAAC,EAAE,QAAQ;IAClC,CAAC,cAAM,CAAC,wBAAwB,CAAC,EAAE,QAAQ;IAC3C,CAAC,cAAM,CAAC,KAAK,CAAC,EAAE,WAAW;IAC3B,CAAC,cAAM,CAAC,SAAS,CAAC,EAAE,WAAW;IAC/B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,WAAW;IAC5B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzB,CAAC,cAAM,CAAC,KAAK,CAAC,EAAE,QAAQ;IACxB,CAAC,cAAM,CAAC,SAAS,CAAC,EAAE,QAAQ;IAC5B,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;IACzB,CAAC,cAAM,CAAC,EAAE,CAAC,EAAE,QAAQ;IACrB,CAAC,cAAM,CAAC,MAAM,CAAC,EAAE,QAAQ;CAC1B,CAAA;AAIY,QAAA,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1385,7 +1385,7 @@ export declare const encryptedApiKeys: import("drizzle-orm/pg-core").PgTableWith
|
|
|
1385
1385
|
tableName: "encrypted_api_keys";
|
|
1386
1386
|
dataType: "string";
|
|
1387
1387
|
columnType: "PgEnumColumn";
|
|
1388
|
-
data: "
|
|
1388
|
+
data: "gemini" | "anthropic" | "openai";
|
|
1389
1389
|
driverParam: string;
|
|
1390
1390
|
notNull: true;
|
|
1391
1391
|
hasDefault: false;
|
|
@@ -6,12 +6,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
name: string;
|
|
9
|
-
parameters: Record<string, string>;
|
|
10
9
|
id: string;
|
|
10
|
+
parameters: Record<string, string>;
|
|
11
11
|
}, {
|
|
12
12
|
name: string;
|
|
13
|
-
parameters: Record<string, string>;
|
|
14
13
|
id: string;
|
|
14
|
+
parameters: Record<string, string>;
|
|
15
15
|
}>;
|
|
16
16
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
17
17
|
export declare const ToolResultSchema: z.ZodObject<{
|
|
@@ -206,15 +206,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
206
206
|
type: "ephemeral";
|
|
207
207
|
}>>;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
content: string;
|
|
210
209
|
type: "tool_result";
|
|
210
|
+
content: string;
|
|
211
211
|
tool_use_id: string;
|
|
212
212
|
cache_control?: {
|
|
213
213
|
type: "ephemeral";
|
|
214
214
|
} | undefined;
|
|
215
215
|
}, {
|
|
216
|
-
content: string;
|
|
217
216
|
type: "tool_result";
|
|
217
|
+
content: string;
|
|
218
218
|
tool_use_id: string;
|
|
219
219
|
cache_control?: {
|
|
220
220
|
type: "ephemeral";
|
|
@@ -278,8 +278,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
278
278
|
type: "ephemeral";
|
|
279
279
|
} | undefined;
|
|
280
280
|
} | {
|
|
281
|
-
content: string;
|
|
282
281
|
type: "tool_result";
|
|
282
|
+
content: string;
|
|
283
283
|
tool_use_id: string;
|
|
284
284
|
cache_control?: {
|
|
285
285
|
type: "ephemeral";
|
|
@@ -312,8 +312,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
312
312
|
type: "ephemeral";
|
|
313
313
|
} | undefined;
|
|
314
314
|
} | {
|
|
315
|
-
content: string;
|
|
316
315
|
type: "tool_result";
|
|
316
|
+
content: string;
|
|
317
317
|
tool_use_id: string;
|
|
318
318
|
cache_control?: {
|
|
319
319
|
type: "ephemeral";
|
|
@@ -378,8 +378,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
378
378
|
type: "ephemeral";
|
|
379
379
|
} | undefined;
|
|
380
380
|
} | {
|
|
381
|
-
content: string;
|
|
382
381
|
type: "tool_result";
|
|
382
|
+
content: string;
|
|
383
383
|
tool_use_id: string;
|
|
384
384
|
cache_control?: {
|
|
385
385
|
type: "ephemeral";
|
|
@@ -444,8 +444,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
444
444
|
type: "ephemeral";
|
|
445
445
|
} | undefined;
|
|
446
446
|
} | {
|
|
447
|
-
content: string;
|
|
448
447
|
type: "tool_result";
|
|
448
|
+
content: string;
|
|
449
449
|
tool_use_id: string;
|
|
450
450
|
cache_control?: {
|
|
451
451
|
type: "ephemeral";
|
|
@@ -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";
|
|
@@ -19,22 +19,22 @@ export declare const usageDataSchema: z.ZodObject<{
|
|
|
19
19
|
}>;
|
|
20
20
|
nextQuotaReset: z.ZodNullable<z.ZodDate>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
usageThisCycle: number;
|
|
23
22
|
balance: {
|
|
24
23
|
totalRemaining: number;
|
|
25
24
|
totalDebt: number;
|
|
26
25
|
netBalance: number;
|
|
27
26
|
breakdown: Partial<Record<"free" | "referral" | "purchase" | "admin", number>>;
|
|
28
27
|
};
|
|
28
|
+
usageThisCycle: number;
|
|
29
29
|
nextQuotaReset: Date | null;
|
|
30
30
|
}, {
|
|
31
|
-
usageThisCycle: number;
|
|
32
31
|
balance: {
|
|
33
32
|
totalRemaining: number;
|
|
34
33
|
totalDebt: number;
|
|
35
34
|
netBalance: number;
|
|
36
35
|
breakdown: Partial<Record<"free" | "referral" | "purchase" | "admin", number>>;
|
|
37
36
|
};
|
|
37
|
+
usageThisCycle: number;
|
|
38
38
|
nextQuotaReset: Date | null;
|
|
39
39
|
}>;
|
|
40
40
|
export type UsageData = z.infer<typeof usageDataSchema>;
|