codecane 1.0.357 → 1.0.358
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/common/actions.d.ts +0 -1
- package/dist/common/analytics.d.ts +0 -1
- package/dist/common/api-keys/constants.d.ts +0 -1
- package/dist/common/api-keys/crypto.d.ts +0 -1
- package/dist/common/browser-actions.d.ts +0 -1
- package/dist/common/constants/analytics-events.d.ts +0 -1
- package/dist/common/constants/grant-priorities.d.ts +0 -1
- package/dist/common/constants/tools.d.ts +0 -1
- package/dist/common/constants.d.ts +0 -1
- package/dist/common/db/drizzle.config.d.ts +0 -1
- package/dist/common/db/index.d.ts +0 -1
- package/dist/common/db/schema.d.ts +0 -1
- package/dist/common/db/transaction.d.ts +0 -1
- package/dist/common/json-config/__tests__/constants.test.d.ts +0 -1
- package/dist/common/json-config/__tests__/stringify-schema.test.d.ts +0 -1
- package/dist/common/json-config/constants.d.ts +0 -1
- package/dist/common/json-config/stringify-schema.d.ts +0 -1
- package/dist/common/project-file-tree.d.ts +0 -1
- package/dist/common/types/agent-state.d.ts +0 -1
- package/dist/common/types/grant.d.ts +0 -1
- package/dist/common/types/message.d.ts +0 -1
- package/dist/common/types/organization.d.ts +0 -1
- package/dist/common/types/referral.d.ts +0 -1
- package/dist/common/types/tools.d.ts +0 -1
- package/dist/common/types/usage.d.ts +0 -1
- package/dist/common/util/__tests__/messages.test.d.ts +0 -1
- package/dist/common/util/__tests__/saxy.test.d.ts +0 -1
- package/dist/common/util/__tests__/string.test.d.ts +0 -1
- package/dist/common/util/array.d.ts +0 -1
- package/dist/common/util/changes.d.ts +0 -1
- package/dist/common/util/credentials.d.ts +0 -1
- package/dist/common/util/currency.d.ts +0 -1
- package/dist/common/util/dates.d.ts +0 -1
- package/dist/common/util/file.d.ts +0 -1
- package/dist/common/util/git.d.ts +0 -1
- package/dist/common/util/logger.d.ts +0 -1
- package/dist/common/util/lru-cache.d.ts +0 -1
- package/dist/common/util/messages.d.ts +0 -1
- package/dist/common/util/min-heap.d.ts +0 -1
- package/dist/common/util/object.d.ts +0 -1
- package/dist/common/util/patch.d.ts +0 -1
- package/dist/common/util/promise.d.ts +0 -1
- package/dist/common/util/random.d.ts +0 -1
- package/dist/common/util/referral.d.ts +0 -1
- package/dist/common/util/saxy.d.ts +0 -1
- package/dist/common/util/string.d.ts +0 -1
- package/dist/common/util/stripe.d.ts +0 -1
- package/dist/common/util/sync-failure.d.ts +0 -1
- package/dist/common/websockets/websocket-client.d.ts +0 -1
- package/dist/common/websockets/websocket-schema.d.ts +0 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -3,4 +3,3 @@ export declare function initAnalytics(): void;
|
|
|
3
3
|
export declare function flushAnalytics(): Promise<void>;
|
|
4
4
|
export declare function trackEvent(event: AnalyticsEvent, userId: string, properties?: Record<string, any>): void;
|
|
5
5
|
export declare function logError(error: Error, userId?: string, properties?: Record<string, any>): void;
|
|
6
|
-
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -6,4 +6,3 @@ export type ApiKeyType = (typeof API_KEY_TYPES)[number];
|
|
|
6
6
|
export declare const KEY_PREFIXES: Record<ApiKeyType, string>;
|
|
7
7
|
export declare const KEY_LENGTHS: Record<ApiKeyType, number>;
|
|
8
8
|
export declare const READABLE_NAME: Record<ApiKeyType, string>;
|
|
9
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -22,4 +22,3 @@ export declare function retrieveAndDecryptApiKey(userId: string, keyType: ApiKey
|
|
|
22
22
|
* @param keyType The type of the API key to delete (e.g., 'gemini').
|
|
23
23
|
*/
|
|
24
24
|
export declare function clearApiKey(userId: string, keyType: ApiKeyType): Promise<void>;
|
|
25
|
-
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -4413,4 +4413,3 @@ export type BrowserAction = z.infer<typeof BrowserActionSchema>;
|
|
|
4413
4413
|
* Parse browser action XML attributes into a typed BrowserAction object
|
|
4414
4414
|
*/
|
|
4415
4415
|
export declare function parseBrowserActionAttributes(attributes: Record<string, string>): BrowserAction;
|
|
4416
|
-
//# sourceMappingURL=browser-actions.d.ts.map
|
|
@@ -17,4 +17,3 @@ export declare const toolSchema: {
|
|
|
17
17
|
export type ToolName = keyof typeof toolSchema;
|
|
18
18
|
export declare const TOOL_LIST: ToolName[];
|
|
19
19
|
export declare const getToolCallString: (toolName: ToolName, params: Record<string, string>) => string;
|
|
20
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -10,4 +10,3 @@ type TransactionCallback<T> = Parameters<typeof db.transaction<T>>[0];
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function withSerializableTransaction<T>(callback: TransactionCallback<T>, context?: Record<string, any>): Promise<T>;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare function getAllFilePaths(nodes: FileTreeNode[], basePath?: string
|
|
|
9
9
|
export declare function flattenTree(nodes: FileTreeNode[]): FileTreeNode[];
|
|
10
10
|
export declare function getLastReadFilePaths(flattenedNodes: FileTreeNode[], count: number): string[];
|
|
11
11
|
export declare function isFileIgnored(filePath: string, projectRoot: string): boolean;
|
|
12
|
-
//# sourceMappingURL=project-file-tree.d.ts.map
|
|
@@ -4,4 +4,3 @@ type FalseyValueArray<T> = T | Falsey | FalseyValueArray<T>[];
|
|
|
4
4
|
export declare function buildArray<T>(...params: FalseyValueArray<T>[]): T[];
|
|
5
5
|
export declare function groupConsecutive<T, U>(xs: T[], key: (x: T) => U): any[];
|
|
6
6
|
export {};
|
|
7
|
-
//# sourceMappingURL=array.d.ts.map
|
|
@@ -6,4 +6,3 @@ export declare function applyChanges(projectRoot: string, changes: FileChanges):
|
|
|
6
6
|
invalid: string[];
|
|
7
7
|
};
|
|
8
8
|
export declare function applyAndRevertChanges(projectRoot: string, changes: FileChanges, onApply: () => Promise<void>): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=changes.d.ts.map
|
|
@@ -12,4 +12,3 @@ export declare function convertCreditsToUsdCents(credits: number, centsPerCredit
|
|
|
12
12
|
* @returns The number of credits
|
|
13
13
|
*/
|
|
14
14
|
export declare function convertStripeGrantAmountToCredits(amountInCents: number, centsPerCredit: number): number;
|
|
15
|
-
//# sourceMappingURL=currency.d.ts.map
|
|
@@ -4,4 +4,3 @@ export declare function getStagedChanges(): string;
|
|
|
4
4
|
export declare function commitChanges(commitMessage: string): void;
|
|
5
5
|
export declare function stageAllChanges(): boolean;
|
|
6
6
|
export declare function stagePatches(dir: string, changes: FileChanges): boolean;
|
|
7
|
-
//# sourceMappingURL=git.d.ts.map
|
|
@@ -9,4 +9,3 @@ export declare function toContentString(msg: CoreMessage): string;
|
|
|
9
9
|
export declare function withCacheControlCore(msg: CodebuffMessage): CodebuffMessage;
|
|
10
10
|
export declare function withCacheControl(msg: Message): Message;
|
|
11
11
|
export declare function removeCache(messages: Message[]): Message[];
|
|
12
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -14,4 +14,3 @@ export declare const sleep: (ms: number) => Promise<unknown>;
|
|
|
14
14
|
* @returns A promise that resolves with the result of the original promise or rejects with a timeout error
|
|
15
15
|
*/
|
|
16
16
|
export declare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, timeoutMessage?: string): Promise<T>;
|
|
17
|
-
//# sourceMappingURL=promise.d.ts.map
|
|
@@ -77,4 +77,3 @@ export declare function includesMatch(array: (string | RegExp)[], value: string)
|
|
|
77
77
|
* @returns The longest overlapping edge, or an empty string if none exists.
|
|
78
78
|
*/
|
|
79
79
|
export declare function suffixPrefixOverlap(source: string, next: string): string;
|
|
80
|
-
//# sourceMappingURL=string.d.ts.map
|
|
@@ -5156,4 +5156,3 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5156
5156
|
}>]>;
|
|
5157
5157
|
export type ServerMessageType = keyof typeof SERVER_MESSAGE_SCHEMAS;
|
|
5158
5158
|
export type ServerMessage<T extends ServerMessageType = ServerMessageType> = z.infer<(typeof SERVER_MESSAGE_SCHEMAS)[T]>;
|
|
5159
|
-
//# sourceMappingURL=websocket-schema.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
|
|
3
|
-
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = 'pk_live_51Q0SA5KrNS6SjmqWMgRE0ar5v6cMvtizkyY3mXjYaZsU6AG9ctpNPKZMVf6xFK2ngqwkt8rHNIQgNiCFSbRdGb9Z00QEo13rfx';
|
|
4
|
-
process.env.NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL = 'https://billing.stripe.com/p/login/cN22bea8W6Ra2is144';
|
|
5
|
-
process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
|
|
6
|
-
process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
|
|
7
|
-
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
|
|
8
2
|
process.env.NEXT_PUBLIC_LINKEDIN_PARTNER_ID = '6771996';
|
|
3
|
+
process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = 'pk_live_51Q0SA5KrNS6SjmqWMgRE0ar5v6cMvtizkyY3mXjYaZsU6AG9ctpNPKZMVf6xFK2ngqwkt8rHNIQgNiCFSbRdGb9Z00QEo13rfx';
|
|
9
4
|
process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'prod';
|
|
5
|
+
process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
|
|
10
6
|
process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
|
|
7
|
+
process.env.NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL = 'https://billing.stripe.com/p/login/cN22bea8W6Ra2is144';
|
|
8
|
+
process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
|
|
9
|
+
process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
|
|
10
|
+
process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
|
|
11
11
|
"use strict";
|
|
12
12
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|