codebuff 1.0.313 → 1.0.315
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/background-process-manager.d.ts +1 -1
- package/dist/background-process-manager.js +3 -3
- package/dist/browser-runner.d.ts +1 -1
- package/dist/browser-runner.js +4 -4
- package/dist/chat-storage.d.ts +1 -1
- package/dist/chat-storage.js +1 -1
- package/dist/checkpoints/checkpoint-manager.d.ts +1 -1
- package/dist/checkpoints/checkpoint-manager.js +1 -1
- package/dist/cli-handlers/api-key.d.ts +1 -1
- package/dist/cli-handlers/api-key.js +1 -1
- package/dist/cli-handlers/diff.d.ts +1 -1
- package/dist/cli-handlers/inititalization-flow.js +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +25 -12
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +18 -6
- package/dist/client.js +137 -73
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +24 -21
- package/dist/common/actions.js +2 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/constants/grant-priorities.js +1 -0
- package/dist/common/constants/grant-priorities.js.map +1 -1
- package/dist/common/constants.d.ts +5 -0
- package/dist/common/constants.js +7 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +763 -3
- package/dist/common/db/schema.js +104 -1
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/env.mjs +3 -0
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/types/grant.d.ts +2 -2
- package/dist/common/types/grant.js +1 -0
- package/dist/common/types/grant.js.map +1 -1
- package/dist/common/types/organization.d.ts +105 -0
- package/dist/common/types/organization.js +3 -0
- package/dist/common/types/organization.js.map +1 -0
- package/dist/common/types/usage.d.ts +5 -5
- package/dist/common/websockets/websocket-schema.d.ts +50 -40
- package/dist/credentials.d.ts +1 -1
- package/dist/credentials.js +2 -2
- package/dist/dev-process-manager.d.ts +1 -1
- package/dist/dev-process-manager.js +2 -2
- package/dist/index.js +1 -1
- package/dist/json-config/hooks.d.ts +1 -1
- package/dist/json-config/hooks.js +1 -1
- package/dist/json-config/parser.d.ts +1 -1
- package/dist/json-config/parser.js +1 -1
- package/dist/menu.d.ts +1 -1
- package/dist/menu.js +1 -1
- package/dist/project-files.d.ts +2 -2
- package/dist/project-files.js +7 -7
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.d.ts +2 -2
- package/dist/tool-handlers.js +4 -4
- package/dist/types.d.ts +1 -1
- package/dist/update-codebuff.js +1 -1
- package/dist/utils/__tests__/tool-renderers.test.js +2 -2
- package/dist/utils/__tests__/xml-stream-parser.test.js +1 -1
- package/dist/utils/analytics.d.ts +1 -1
- package/dist/utils/git.d.ts +4 -1
- package/dist/utils/git.js +29 -6
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/terminal.js +3 -3
- package/dist/utils/tool-renderers.d.ts +1 -1
- package/dist/utils/tool-renderers.js +2 -2
- package/dist/utils/xml-stream-parser.d.ts +1 -1
- package/dist/utils/xml-stream-parser.js +2 -2
- package/dist/web-scraper.js +1 -1
- package/dist/workers/project-context.js +1 -1
- package/package.json +2 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +0 -12
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +0 -1
- package/dist/code-map/__mocks__/tree-sitter-typescript.js +0 -14
- package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +0 -1
- package/dist/code-map/jest.config.d.ts +0 -4
- package/dist/code-map/jest.config.d.ts.map +0 -1
- package/dist/code-map/jest.config.js +0 -18
- package/dist/code-map/jest.config.js.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.cjs +0 -27
- package/dist/code-map/scripts/tree-sitter-test.cjs.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.d.cts +0 -2
- package/dist/code-map/scripts/tree-sitter-test.d.cts.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.d.ts +0 -2
- package/dist/code-map/scripts/tree-sitter-test.d.ts.map +0 -1
- package/dist/code-map/scripts/tree-sitter-test.js +0 -54
- package/dist/code-map/scripts/tree-sitter-test.js.map +0 -1
- package/dist/code-map/test-langs/test.d.ts +0 -12
- package/dist/code-map/test-langs/test.d.ts.map +0 -1
- package/dist/code-map/test-langs/test.js +0 -23
- package/dist/code-map/test-langs/test.js.map +0 -1
|
@@ -268,7 +268,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
268
268
|
}>, "many">;
|
|
269
269
|
model: z.ZodOptional<z.ZodString>;
|
|
270
270
|
cwd: z.ZodOptional<z.ZodString>;
|
|
271
|
-
|
|
271
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
273
|
type: "prompt";
|
|
274
274
|
promptId: string;
|
|
@@ -319,7 +319,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
319
319
|
authToken?: string | undefined;
|
|
320
320
|
model?: string | undefined;
|
|
321
321
|
cwd?: string | undefined;
|
|
322
|
-
|
|
322
|
+
repoUrl?: string | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
type: "prompt";
|
|
325
325
|
promptId: string;
|
|
@@ -370,7 +370,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
370
370
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
371
371
|
model?: string | undefined;
|
|
372
372
|
cwd?: string | undefined;
|
|
373
|
-
|
|
373
|
+
repoUrl?: string | undefined;
|
|
374
374
|
}>, z.ZodObject<{
|
|
375
375
|
type: z.ZodLiteral<"manager-prompt">;
|
|
376
376
|
promptId: z.ZodString;
|
|
@@ -818,6 +818,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
818
818
|
content: string;
|
|
819
819
|
}[][] | undefined;
|
|
820
820
|
}>;
|
|
821
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
821
822
|
}, "strip", z.ZodTypeAny, {
|
|
822
823
|
type: "init";
|
|
823
824
|
fileContext: {
|
|
@@ -850,6 +851,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
850
851
|
};
|
|
851
852
|
fingerprintId: string;
|
|
852
853
|
authToken?: string | undefined;
|
|
854
|
+
repoUrl?: string | undefined;
|
|
853
855
|
}, {
|
|
854
856
|
type: "init";
|
|
855
857
|
fileContext: {
|
|
@@ -882,6 +884,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
882
884
|
};
|
|
883
885
|
fingerprintId: string;
|
|
884
886
|
authToken?: string | undefined;
|
|
887
|
+
repoUrl?: string | undefined;
|
|
885
888
|
}>, z.ZodObject<{
|
|
886
889
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
887
890
|
fingerprintId: z.ZodString;
|
|
@@ -950,7 +953,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
950
953
|
authToken?: string | undefined;
|
|
951
954
|
model?: string | undefined;
|
|
952
955
|
cwd?: string | undefined;
|
|
953
|
-
|
|
956
|
+
repoUrl?: string | undefined;
|
|
954
957
|
} | {
|
|
955
958
|
type: "manager-prompt";
|
|
956
959
|
promptId: string;
|
|
@@ -1038,6 +1041,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1038
1041
|
};
|
|
1039
1042
|
fingerprintId: string;
|
|
1040
1043
|
authToken?: string | undefined;
|
|
1044
|
+
repoUrl?: string | undefined;
|
|
1041
1045
|
} | {
|
|
1042
1046
|
type: "generate-commit-message";
|
|
1043
1047
|
fingerprintId: string;
|
|
@@ -1097,7 +1101,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1097
1101
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1098
1102
|
model?: string | undefined;
|
|
1099
1103
|
cwd?: string | undefined;
|
|
1100
|
-
|
|
1104
|
+
repoUrl?: string | undefined;
|
|
1101
1105
|
} | {
|
|
1102
1106
|
type: "manager-prompt";
|
|
1103
1107
|
promptId: string;
|
|
@@ -1185,6 +1189,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1185
1189
|
};
|
|
1186
1190
|
fingerprintId: string;
|
|
1187
1191
|
authToken?: string | undefined;
|
|
1192
|
+
repoUrl?: string | undefined;
|
|
1188
1193
|
} | {
|
|
1189
1194
|
type: "generate-commit-message";
|
|
1190
1195
|
fingerprintId: string;
|
|
@@ -1458,7 +1463,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1458
1463
|
}>, "many">;
|
|
1459
1464
|
model: z.ZodOptional<z.ZodString>;
|
|
1460
1465
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1461
|
-
|
|
1466
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
1462
1467
|
}, "strip", z.ZodTypeAny, {
|
|
1463
1468
|
type: "prompt";
|
|
1464
1469
|
promptId: string;
|
|
@@ -1509,7 +1514,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1509
1514
|
authToken?: string | undefined;
|
|
1510
1515
|
model?: string | undefined;
|
|
1511
1516
|
cwd?: string | undefined;
|
|
1512
|
-
|
|
1517
|
+
repoUrl?: string | undefined;
|
|
1513
1518
|
}, {
|
|
1514
1519
|
type: "prompt";
|
|
1515
1520
|
promptId: string;
|
|
@@ -1560,7 +1565,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1560
1565
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1561
1566
|
model?: string | undefined;
|
|
1562
1567
|
cwd?: string | undefined;
|
|
1563
|
-
|
|
1568
|
+
repoUrl?: string | undefined;
|
|
1564
1569
|
}>, z.ZodObject<{
|
|
1565
1570
|
type: z.ZodLiteral<"manager-prompt">;
|
|
1566
1571
|
promptId: z.ZodString;
|
|
@@ -2008,6 +2013,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2008
2013
|
content: string;
|
|
2009
2014
|
}[][] | undefined;
|
|
2010
2015
|
}>;
|
|
2016
|
+
repoUrl: z.ZodOptional<z.ZodString>;
|
|
2011
2017
|
}, "strip", z.ZodTypeAny, {
|
|
2012
2018
|
type: "init";
|
|
2013
2019
|
fileContext: {
|
|
@@ -2040,6 +2046,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2040
2046
|
};
|
|
2041
2047
|
fingerprintId: string;
|
|
2042
2048
|
authToken?: string | undefined;
|
|
2049
|
+
repoUrl?: string | undefined;
|
|
2043
2050
|
}, {
|
|
2044
2051
|
type: "init";
|
|
2045
2052
|
fileContext: {
|
|
@@ -2072,6 +2079,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2072
2079
|
};
|
|
2073
2080
|
fingerprintId: string;
|
|
2074
2081
|
authToken?: string | undefined;
|
|
2082
|
+
repoUrl?: string | undefined;
|
|
2075
2083
|
}>, z.ZodObject<{
|
|
2076
2084
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
2077
2085
|
fingerprintId: z.ZodString;
|
|
@@ -2140,7 +2148,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2140
2148
|
authToken?: string | undefined;
|
|
2141
2149
|
model?: string | undefined;
|
|
2142
2150
|
cwd?: string | undefined;
|
|
2143
|
-
|
|
2151
|
+
repoUrl?: string | undefined;
|
|
2144
2152
|
} | {
|
|
2145
2153
|
type: "manager-prompt";
|
|
2146
2154
|
promptId: string;
|
|
@@ -2228,6 +2236,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2228
2236
|
};
|
|
2229
2237
|
fingerprintId: string;
|
|
2230
2238
|
authToken?: string | undefined;
|
|
2239
|
+
repoUrl?: string | undefined;
|
|
2231
2240
|
} | {
|
|
2232
2241
|
type: "generate-commit-message";
|
|
2233
2242
|
fingerprintId: string;
|
|
@@ -2287,7 +2296,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2287
2296
|
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
2288
2297
|
model?: string | undefined;
|
|
2289
2298
|
cwd?: string | undefined;
|
|
2290
|
-
|
|
2299
|
+
repoUrl?: string | undefined;
|
|
2291
2300
|
} | {
|
|
2292
2301
|
type: "manager-prompt";
|
|
2293
2302
|
promptId: string;
|
|
@@ -2375,6 +2384,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2375
2384
|
};
|
|
2376
2385
|
fingerprintId: string;
|
|
2377
2386
|
authToken?: string | undefined;
|
|
2387
|
+
repoUrl?: string | undefined;
|
|
2378
2388
|
} | {
|
|
2379
2389
|
type: "generate-commit-message";
|
|
2380
2390
|
fingerprintId: string;
|
|
@@ -2460,7 +2470,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2460
2470
|
}, {
|
|
2461
2471
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2462
2472
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2463
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
2473
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
2464
2474
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2465
2475
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2466
2476
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2484,7 +2494,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2484
2494
|
resetFileVersions: boolean;
|
|
2485
2495
|
usage?: number | undefined;
|
|
2486
2496
|
remainingBalance?: number | undefined;
|
|
2487
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2497
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2488
2498
|
next_quota_reset?: Date | null | undefined;
|
|
2489
2499
|
autoTopupAdded?: number | undefined;
|
|
2490
2500
|
}, {
|
|
@@ -2508,7 +2518,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2508
2518
|
resetFileVersions: boolean;
|
|
2509
2519
|
usage?: number | undefined;
|
|
2510
2520
|
remainingBalance?: number | undefined;
|
|
2511
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2521
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
2512
2522
|
next_quota_reset?: Date | null | undefined;
|
|
2513
2523
|
autoTopupAdded?: number | undefined;
|
|
2514
2524
|
}>, z.ZodObject<{
|
|
@@ -3297,7 +3307,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3297
3307
|
type: z.ZodLiteral<"usage-response">;
|
|
3298
3308
|
usage: z.ZodNumber;
|
|
3299
3309
|
remainingBalance: z.ZodNumber;
|
|
3300
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3310
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>;
|
|
3301
3311
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3302
3312
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3303
3313
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -3305,20 +3315,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3305
3315
|
usage: number;
|
|
3306
3316
|
remainingBalance: number;
|
|
3307
3317
|
next_quota_reset: Date | null;
|
|
3308
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3318
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3309
3319
|
autoTopupAdded?: number | undefined;
|
|
3310
3320
|
}, {
|
|
3311
3321
|
type: "init-response";
|
|
3312
3322
|
usage: number;
|
|
3313
3323
|
remainingBalance: number;
|
|
3314
3324
|
next_quota_reset: Date | null;
|
|
3315
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3325
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3316
3326
|
autoTopupAdded?: number | undefined;
|
|
3317
3327
|
}>, z.ZodObject<{
|
|
3318
3328
|
type: z.ZodLiteral<"usage-response">;
|
|
3319
3329
|
usage: z.ZodNumber;
|
|
3320
3330
|
remainingBalance: z.ZodNumber;
|
|
3321
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3331
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>;
|
|
3322
3332
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3323
3333
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3324
3334
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3326,14 +3336,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3326
3336
|
usage: number;
|
|
3327
3337
|
remainingBalance: number;
|
|
3328
3338
|
next_quota_reset: Date | null;
|
|
3329
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3339
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3330
3340
|
autoTopupAdded?: number | undefined;
|
|
3331
3341
|
}, {
|
|
3332
3342
|
type: "usage-response";
|
|
3333
3343
|
usage: number;
|
|
3334
3344
|
remainingBalance: number;
|
|
3335
3345
|
next_quota_reset: Date | null;
|
|
3336
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3346
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3337
3347
|
autoTopupAdded?: number | undefined;
|
|
3338
3348
|
}>, z.ZodObject<{
|
|
3339
3349
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -3385,14 +3395,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3385
3395
|
usage: number;
|
|
3386
3396
|
remainingBalance: number;
|
|
3387
3397
|
next_quota_reset: Date | null;
|
|
3388
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3398
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3389
3399
|
autoTopupAdded?: number | undefined;
|
|
3390
3400
|
} | {
|
|
3391
3401
|
type: "init-response";
|
|
3392
3402
|
usage: number;
|
|
3393
3403
|
remainingBalance: number;
|
|
3394
3404
|
next_quota_reset: Date | null;
|
|
3395
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3405
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3396
3406
|
autoTopupAdded?: number | undefined;
|
|
3397
3407
|
} | {
|
|
3398
3408
|
type: "response-complete";
|
|
@@ -3415,7 +3425,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3415
3425
|
resetFileVersions: boolean;
|
|
3416
3426
|
usage?: number | undefined;
|
|
3417
3427
|
remainingBalance?: number | undefined;
|
|
3418
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3428
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3419
3429
|
next_quota_reset?: Date | null | undefined;
|
|
3420
3430
|
autoTopupAdded?: number | undefined;
|
|
3421
3431
|
} | {
|
|
@@ -3578,14 +3588,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3578
3588
|
usage: number;
|
|
3579
3589
|
remainingBalance: number;
|
|
3580
3590
|
next_quota_reset: Date | null;
|
|
3581
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3591
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3582
3592
|
autoTopupAdded?: number | undefined;
|
|
3583
3593
|
} | {
|
|
3584
3594
|
type: "init-response";
|
|
3585
3595
|
usage: number;
|
|
3586
3596
|
remainingBalance: number;
|
|
3587
3597
|
next_quota_reset: Date | null;
|
|
3588
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3598
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3589
3599
|
autoTopupAdded?: number | undefined;
|
|
3590
3600
|
} | {
|
|
3591
3601
|
type: "response-complete";
|
|
@@ -3608,7 +3618,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3608
3618
|
resetFileVersions: boolean;
|
|
3609
3619
|
usage?: number | undefined;
|
|
3610
3620
|
remainingBalance?: number | undefined;
|
|
3611
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3621
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3612
3622
|
next_quota_reset?: Date | null | undefined;
|
|
3613
3623
|
autoTopupAdded?: number | undefined;
|
|
3614
3624
|
} | {
|
|
@@ -3839,7 +3849,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3839
3849
|
}, {
|
|
3840
3850
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3841
3851
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3842
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
3852
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>>;
|
|
3843
3853
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3844
3854
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3845
3855
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -3863,7 +3873,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3863
3873
|
resetFileVersions: boolean;
|
|
3864
3874
|
usage?: number | undefined;
|
|
3865
3875
|
remainingBalance?: number | undefined;
|
|
3866
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3876
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3867
3877
|
next_quota_reset?: Date | null | undefined;
|
|
3868
3878
|
autoTopupAdded?: number | undefined;
|
|
3869
3879
|
}, {
|
|
@@ -3887,7 +3897,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3887
3897
|
resetFileVersions: boolean;
|
|
3888
3898
|
usage?: number | undefined;
|
|
3889
3899
|
remainingBalance?: number | undefined;
|
|
3890
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3900
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
3891
3901
|
next_quota_reset?: Date | null | undefined;
|
|
3892
3902
|
autoTopupAdded?: number | undefined;
|
|
3893
3903
|
}>, z.ZodObject<{
|
|
@@ -4676,7 +4686,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4676
4686
|
type: z.ZodLiteral<"usage-response">;
|
|
4677
4687
|
usage: z.ZodNumber;
|
|
4678
4688
|
remainingBalance: z.ZodNumber;
|
|
4679
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4689
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>;
|
|
4680
4690
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4681
4691
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4682
4692
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -4684,20 +4694,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4684
4694
|
usage: number;
|
|
4685
4695
|
remainingBalance: number;
|
|
4686
4696
|
next_quota_reset: Date | null;
|
|
4687
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4697
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4688
4698
|
autoTopupAdded?: number | undefined;
|
|
4689
4699
|
}, {
|
|
4690
4700
|
type: "init-response";
|
|
4691
4701
|
usage: number;
|
|
4692
4702
|
remainingBalance: number;
|
|
4693
4703
|
next_quota_reset: Date | null;
|
|
4694
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4704
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4695
4705
|
autoTopupAdded?: number | undefined;
|
|
4696
4706
|
}>, z.ZodObject<{
|
|
4697
4707
|
type: z.ZodLiteral<"usage-response">;
|
|
4698
4708
|
usage: z.ZodNumber;
|
|
4699
4709
|
remainingBalance: z.ZodNumber;
|
|
4700
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4710
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin" | "organization")[]]>, z.ZodNumber>>;
|
|
4701
4711
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4702
4712
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4703
4713
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4705,14 +4715,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4705
4715
|
usage: number;
|
|
4706
4716
|
remainingBalance: number;
|
|
4707
4717
|
next_quota_reset: Date | null;
|
|
4708
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4718
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4709
4719
|
autoTopupAdded?: number | undefined;
|
|
4710
4720
|
}, {
|
|
4711
4721
|
type: "usage-response";
|
|
4712
4722
|
usage: number;
|
|
4713
4723
|
remainingBalance: number;
|
|
4714
4724
|
next_quota_reset: Date | null;
|
|
4715
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4725
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4716
4726
|
autoTopupAdded?: number | undefined;
|
|
4717
4727
|
}>, z.ZodObject<{
|
|
4718
4728
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -4764,14 +4774,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4764
4774
|
usage: number;
|
|
4765
4775
|
remainingBalance: number;
|
|
4766
4776
|
next_quota_reset: Date | null;
|
|
4767
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4777
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4768
4778
|
autoTopupAdded?: number | undefined;
|
|
4769
4779
|
} | {
|
|
4770
4780
|
type: "init-response";
|
|
4771
4781
|
usage: number;
|
|
4772
4782
|
remainingBalance: number;
|
|
4773
4783
|
next_quota_reset: Date | null;
|
|
4774
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4784
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4775
4785
|
autoTopupAdded?: number | undefined;
|
|
4776
4786
|
} | {
|
|
4777
4787
|
type: "response-complete";
|
|
@@ -4794,7 +4804,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4794
4804
|
resetFileVersions: boolean;
|
|
4795
4805
|
usage?: number | undefined;
|
|
4796
4806
|
remainingBalance?: number | undefined;
|
|
4797
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4807
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4798
4808
|
next_quota_reset?: Date | null | undefined;
|
|
4799
4809
|
autoTopupAdded?: number | undefined;
|
|
4800
4810
|
} | {
|
|
@@ -4957,14 +4967,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4957
4967
|
usage: number;
|
|
4958
4968
|
remainingBalance: number;
|
|
4959
4969
|
next_quota_reset: Date | null;
|
|
4960
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4970
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4961
4971
|
autoTopupAdded?: number | undefined;
|
|
4962
4972
|
} | {
|
|
4963
4973
|
type: "init-response";
|
|
4964
4974
|
usage: number;
|
|
4965
4975
|
remainingBalance: number;
|
|
4966
4976
|
next_quota_reset: Date | null;
|
|
4967
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4977
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4968
4978
|
autoTopupAdded?: number | undefined;
|
|
4969
4979
|
} | {
|
|
4970
4980
|
type: "response-complete";
|
|
@@ -4987,7 +4997,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4987
4997
|
resetFileVersions: boolean;
|
|
4988
4998
|
usage?: number | undefined;
|
|
4989
4999
|
remainingBalance?: number | undefined;
|
|
4990
|
-
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
5000
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
|
|
4991
5001
|
next_quota_reset?: Date | null | undefined;
|
|
4992
5002
|
autoTopupAdded?: number | undefined;
|
|
4993
5003
|
} | {
|
package/dist/credentials.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User } from 'common/util/credentials';
|
|
1
|
+
import { User } from './common/util/credentials';
|
|
2
2
|
export declare const userFromJson: (json: string, profileName?: string) => User | undefined;
|
|
3
3
|
export declare const CONFIG_DIR: string;
|
|
4
4
|
export declare const CREDENTIALS_PATH: string;
|
package/dist/credentials.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CREDENTIALS_PATH = exports.CONFIG_DIR = exports.userFromJson = void 0;
|
|
7
|
-
const credentials_1 = require("common/util/credentials");
|
|
7
|
+
const credentials_1 = require("./common/util/credentials");
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const os_1 = __importDefault(require("os"));
|
|
10
10
|
const zod_1 = require("zod");
|
|
@@ -31,7 +31,7 @@ const userFromJson = (json, profileName = 'default') => {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
exports.userFromJson = userFromJson;
|
|
34
|
-
const file_1 = require("common/util/file");
|
|
34
|
+
const file_1 = require("./common/util/file");
|
|
35
35
|
exports.CONFIG_DIR = node_path_1.default.join(os_1.default.homedir(), '.config', 'manicode' +
|
|
36
36
|
// on a development stack?
|
|
37
37
|
(process.env.NEXT_PUBLIC_CB_ENVIRONMENT &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StartupProcess } from 'common/json-config/constants';
|
|
1
|
+
import { StartupProcess } from './common/json-config/constants';
|
|
2
2
|
/**
|
|
3
3
|
* Starts background development processes defined in the config file.
|
|
4
4
|
* Processes are started asynchronously and their output is tracked.
|
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.startDevProcesses = startDevProcesses;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const constants_1 = require("common/json-config/constants");
|
|
9
|
-
const string_1 = require("common/util/string");
|
|
8
|
+
const constants_1 = require("./common/json-config/constants");
|
|
9
|
+
const string_1 = require("./common/util/string");
|
|
10
10
|
const picocolors_1 = require("picocolors");
|
|
11
11
|
const terminal_1 = require("./utils/terminal");
|
|
12
12
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
|
|
|
4
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
|
|
7
|
+
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
|
|
8
8
|
"use strict";
|
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.runFileChangeHooks = runFileChangeHooks;
|
|
7
|
-
const string_1 = require("common/util/string");
|
|
7
|
+
const string_1 = require("../common/util/string");
|
|
8
8
|
const micromatch_1 = __importDefault(require("micromatch"));
|
|
9
9
|
const project_files_1 = require("../project-files");
|
|
10
10
|
const logger_1 = require("../utils/logger");
|
|
@@ -8,7 +8,7 @@ const fs_1 = require("fs");
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const jsonc_parser_1 = require("jsonc-parser");
|
|
10
10
|
const picocolors_1 = require("picocolors");
|
|
11
|
-
const constants_1 = require("common/json-config/constants");
|
|
11
|
+
const constants_1 = require("../common/json-config/constants");
|
|
12
12
|
const project_files_1 = require("../project-files");
|
|
13
13
|
/**
|
|
14
14
|
* Loads and validates the configuration file from the project directory.
|
package/dist/menu.d.ts
CHANGED
package/dist/menu.js
CHANGED
|
@@ -35,7 +35,7 @@ const fs = __importStar(require("fs"));
|
|
|
35
35
|
const os_1 = __importDefault(require("os"));
|
|
36
36
|
const path_1 = __importDefault(require("path"));
|
|
37
37
|
const picocolors_1 = require("picocolors");
|
|
38
|
-
const constants_1 = require("common/json-config/constants");
|
|
38
|
+
const constants_1 = require("./common/json-config/constants");
|
|
39
39
|
const project_files_1 = require("./project-files");
|
|
40
40
|
exports.interactiveCommandDetails = [
|
|
41
41
|
{
|
package/dist/project-files.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare function toAbsolutePath(filepath: string, projectRoot: string): s
|
|
|
23
23
|
export declare function isSubdir(fromPath: string, toPath: string): boolean;
|
|
24
24
|
export declare function initProjectFileContextWithWorker(dir: string, resetCache?: boolean): Promise<{
|
|
25
25
|
currentWorkingDirectory: string;
|
|
26
|
-
fileTree: import("common/util/file").FileTreeNode[];
|
|
26
|
+
fileTree: import("./common/util/file").FileTreeNode[];
|
|
27
27
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
28
28
|
knowledgeFiles: Record<string, string>;
|
|
29
29
|
gitChanges: {
|
|
@@ -73,7 +73,7 @@ export declare function initProjectFileContextWithWorker(dir: string, resetCache
|
|
|
73
73
|
*/
|
|
74
74
|
export declare const getProjectFileContext: (projectRoot: string, lastFileVersion: Record<string, string>) => Promise<{
|
|
75
75
|
currentWorkingDirectory: string;
|
|
76
|
-
fileTree: import("common/util/file").FileTreeNode[];
|
|
76
|
+
fileTree: import("./common/util/file").FileTreeNode[];
|
|
77
77
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
78
78
|
knowledgeFiles: Record<string, string>;
|
|
79
79
|
gitChanges: {
|
package/dist/project-files.js
CHANGED
|
@@ -54,14 +54,14 @@ const os_1 = __importDefault(require("os"));
|
|
|
54
54
|
const path_1 = __importStar(require("path"));
|
|
55
55
|
const util_1 = require("util");
|
|
56
56
|
const worker_threads_1 = require("worker_threads");
|
|
57
|
-
const parse_1 = require("code-map/parse");
|
|
58
|
-
const constants_1 = require("common/constants");
|
|
59
|
-
const project_file_tree_1 = require("common/project-file-tree");
|
|
60
|
-
const file_1 = require("common/util/file");
|
|
61
|
-
const object_1 = require("common/util/object");
|
|
57
|
+
const parse_1 = require("./code-map/parse");
|
|
58
|
+
const constants_1 = require("./common/constants");
|
|
59
|
+
const project_file_tree_1 = require("./common/project-file-tree");
|
|
60
|
+
const file_1 = require("./common/util/file");
|
|
61
|
+
const object_1 = require("./common/util/object");
|
|
62
62
|
const diff_1 = require("diff");
|
|
63
63
|
const picocolors_1 = require("picocolors");
|
|
64
|
-
const constants_2 = require("common/json-config/constants");
|
|
64
|
+
const constants_2 = require("./common/json-config/constants");
|
|
65
65
|
const checkpoint_manager_1 = require("./checkpoints/checkpoint-manager");
|
|
66
66
|
const credentials_1 = require("./credentials");
|
|
67
67
|
const logger_1 = require("./utils/logger");
|
|
@@ -106,7 +106,7 @@ const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
|
106
106
|
let projectRoot;
|
|
107
107
|
function setProjectRoot(dir, setCwd = false) {
|
|
108
108
|
if ((0, fs_1.existsSync)(dir)) {
|
|
109
|
-
if (projectRoot) {
|
|
109
|
+
if (projectRoot && projectRoot !== dir) {
|
|
110
110
|
checkpoint_manager_1.checkpointManager.clearCheckpoints(true);
|
|
111
111
|
console.log('\n' + (0, picocolors_1.green)('Directory change:'), `Codebuff will read and write files in "${dir}".\n`);
|
|
112
112
|
}
|