codecane 1.0.354 → 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.
Files changed (52) hide show
  1. package/dist/common/actions.d.ts +0 -1
  2. package/dist/common/analytics.d.ts +0 -1
  3. package/dist/common/api-keys/constants.d.ts +0 -1
  4. package/dist/common/api-keys/crypto.d.ts +0 -1
  5. package/dist/common/browser-actions.d.ts +0 -1
  6. package/dist/common/constants/analytics-events.d.ts +0 -1
  7. package/dist/common/constants/grant-priorities.d.ts +0 -1
  8. package/dist/common/constants/tools.d.ts +0 -1
  9. package/dist/common/constants.d.ts +0 -1
  10. package/dist/common/db/drizzle.config.d.ts +0 -1
  11. package/dist/common/db/index.d.ts +0 -1
  12. package/dist/common/db/schema.d.ts +0 -1
  13. package/dist/common/db/transaction.d.ts +0 -1
  14. package/dist/common/json-config/__tests__/constants.test.d.ts +0 -1
  15. package/dist/common/json-config/__tests__/stringify-schema.test.d.ts +0 -1
  16. package/dist/common/json-config/constants.d.ts +0 -1
  17. package/dist/common/json-config/stringify-schema.d.ts +0 -1
  18. package/dist/common/project-file-tree.d.ts +0 -1
  19. package/dist/common/types/agent-state.d.ts +0 -1
  20. package/dist/common/types/grant.d.ts +0 -1
  21. package/dist/common/types/message.d.ts +0 -1
  22. package/dist/common/types/organization.d.ts +0 -1
  23. package/dist/common/types/referral.d.ts +0 -1
  24. package/dist/common/types/tools.d.ts +0 -1
  25. package/dist/common/types/usage.d.ts +0 -1
  26. package/dist/common/util/__tests__/messages.test.d.ts +0 -1
  27. package/dist/common/util/__tests__/saxy.test.d.ts +0 -1
  28. package/dist/common/util/__tests__/string.test.d.ts +0 -1
  29. package/dist/common/util/array.d.ts +0 -1
  30. package/dist/common/util/changes.d.ts +0 -1
  31. package/dist/common/util/credentials.d.ts +0 -1
  32. package/dist/common/util/currency.d.ts +0 -1
  33. package/dist/common/util/dates.d.ts +0 -1
  34. package/dist/common/util/file.d.ts +0 -1
  35. package/dist/common/util/git.d.ts +0 -1
  36. package/dist/common/util/logger.d.ts +0 -1
  37. package/dist/common/util/lru-cache.d.ts +0 -1
  38. package/dist/common/util/messages.d.ts +0 -1
  39. package/dist/common/util/min-heap.d.ts +0 -1
  40. package/dist/common/util/object.d.ts +0 -1
  41. package/dist/common/util/patch.d.ts +0 -1
  42. package/dist/common/util/promise.d.ts +0 -1
  43. package/dist/common/util/random.d.ts +0 -1
  44. package/dist/common/util/referral.d.ts +0 -1
  45. package/dist/common/util/saxy.d.ts +0 -1
  46. package/dist/common/util/string.d.ts +0 -1
  47. package/dist/common/util/stripe.d.ts +0 -1
  48. package/dist/common/util/sync-failure.d.ts +0 -1
  49. package/dist/common/websockets/websocket-client.d.ts +0 -1
  50. package/dist/common/websockets/websocket-schema.d.ts +0 -1
  51. package/dist/index.js +3 -3
  52. package/package.json +1 -1
@@ -2670,4 +2670,3 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
2670
2670
  type: "request-reconnect";
2671
2671
  }>]>;
2672
2672
  export type ServerAction = z.infer<typeof SERVER_ACTION_SCHEMA>;
2673
- //# sourceMappingURL=actions.d.ts.map
@@ -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
@@ -26,4 +26,3 @@ export declare enum AnalyticsEvent {
26
26
  SIGNUP = "web.signup",
27
27
  FLUSH_FAILED = "common.flush_failed"
28
28
  }
29
- //# sourceMappingURL=analytics-events.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { GrantType } from '../db/schema';
2
2
  export declare const GRANT_PRIORITIES: Record<GrantType, number>;
3
- //# sourceMappingURL=grant-priorities.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
@@ -145,4 +145,3 @@ export declare const providerModelNames: {
145
145
  };
146
146
  export type Model = (typeof models)[keyof typeof models];
147
147
  export declare const TEST_USER_ID = "test-user-id";
148
- //# sourceMappingURL=constants.d.ts.map
@@ -1,3 +1,2 @@
1
1
  declare const _default: import("drizzle-kit").Config;
2
2
  export default _default;
3
- //# sourceMappingURL=drizzle.config.d.ts.map
@@ -4,4 +4,3 @@ declare const db: import("drizzle-orm/node-postgres").NodePgDatabase<typeof sche
4
4
  $client: Pool;
5
5
  };
6
6
  export default db;
7
- //# sourceMappingURL=index.d.ts.map
@@ -2286,4 +2286,3 @@ export declare const orgFeature: import("drizzle-orm/pg-core").PgTableWithColumn
2286
2286
  };
2287
2287
  dialect: "pg";
2288
2288
  }>;
2289
- //# sourceMappingURL=schema.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
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=constants.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=stringify-schema.test.d.ts.map
@@ -135,4 +135,3 @@ export type StartupProcess = z.infer<typeof StartupProcessSchema>;
135
135
  * for the entire configuration structure.
136
136
  */
137
137
  export type CodebuffConfig = z.infer<typeof CodebuffConfigSchema>;
138
- //# sourceMappingURL=constants.d.ts.map
@@ -7,4 +7,3 @@ import { z } from 'zod';
7
7
  * @returns A string describing the schema structure and field descriptions.
8
8
  */
9
9
  export declare function stringifySchema(schema: z.ZodObject<any>): string;
10
- //# sourceMappingURL=stringify-schema.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
@@ -224,4 +224,3 @@ export declare const AgentStateSchema: z.ZodObject<{
224
224
  }>;
225
225
  export type AgentState = z.infer<typeof AgentStateSchema>;
226
226
  export declare function getInitialAgentState(fileContext: ProjectFileContext): AgentState;
227
- //# sourceMappingURL=agent-state.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export type GrantType = 'free' | 'referral' | 'purchase' | 'admin' | 'organization';
2
2
  export declare const GrantTypeValues: readonly ["free", "referral", "purchase", "admin", "organization"];
3
- //# sourceMappingURL=grant.d.ts.map
@@ -317,4 +317,3 @@ export declare const CodebuffMessageSchema: z.ZodIntersection<z.ZodType<import("
317
317
  }>>;
318
318
  export type CodebuffMessage = z.infer<typeof CodebuffMessageSchema>;
319
319
  export {};
320
- //# sourceMappingURL=message.d.ts.map
@@ -103,4 +103,3 @@ export interface CreditConsumptionWithDelegationResult {
103
103
  organizationId?: string;
104
104
  error?: string;
105
105
  }
106
- //# sourceMappingURL=organization.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export type ReferralStatus = 'pending' | 'completed';
2
2
  export declare const ReferralStatusValues: ReferralStatus[];
3
- //# sourceMappingURL=referral.d.ts.map
@@ -3,4 +3,3 @@ export type RawToolCall = {
3
3
  id: string;
4
4
  parameters: Record<string, any>;
5
5
  };
6
- //# sourceMappingURL=tools.d.ts.map
@@ -38,4 +38,3 @@ export declare const usageDataSchema: z.ZodObject<{
38
38
  nextQuotaReset: Date | null;
39
39
  }>;
40
40
  export type UsageData = z.infer<typeof usageDataSchema>;
41
- //# sourceMappingURL=usage.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=messages.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=saxy.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=string.test.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
@@ -23,4 +23,3 @@ export declare const userSchema: z.ZodObject<{
23
23
  }>;
24
24
  export type User = z.infer<typeof userSchema>;
25
25
  export declare const genAuthCode: (fingerprintId: string, expiresAt: string, secret: string) => string;
26
- //# sourceMappingURL=credentials.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
@@ -8,4 +8,3 @@
8
8
  * @returns The Date object representing the next reset time.
9
9
  */
10
10
  export declare const getNextQuotaReset: (referenceDate: Date | null) => Date;
11
- //# sourceMappingURL=dates.d.ts.map
@@ -166,4 +166,3 @@ export declare function isDir(p: string): boolean;
166
166
  */
167
167
  export declare function isSubdir(fromPath: string, toPath: string): boolean;
168
168
  export declare function isValidProjectRoot(dir: string): boolean;
169
- //# sourceMappingURL=file.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
@@ -6,4 +6,3 @@ export interface LoggerContext {
6
6
  }
7
7
  export declare const withLoggerContext: <T>(additionalContext: Partial<LoggerContext>, fn: () => Promise<T>) => Promise<T>;
8
8
  export declare const logger: import("pino").Logger<never, boolean>;
9
- //# sourceMappingURL=logger.d.ts.map
@@ -28,4 +28,3 @@ export declare class LRUCache<K, V> {
28
28
  */
29
29
  clear(): void;
30
30
  }
31
- //# sourceMappingURL=lru-cache.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
@@ -13,4 +13,3 @@ export declare class MinHeap<T> {
13
13
  extractMin(): T | undefined;
14
14
  get size(): number;
15
15
  }
16
- //# sourceMappingURL=min-heap.d.ts.map
@@ -16,4 +16,3 @@ export declare const filterObject: <T extends object>(obj: T, predicate: (value:
16
16
  * @throws {Error} If the condition is false
17
17
  */
18
18
  export declare function assert(condition: boolean, message: string): asserts condition;
19
- //# sourceMappingURL=object.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const applyPatch: (oldContent: string, patch: string) => string;
2
- //# sourceMappingURL=patch.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
@@ -1,2 +1 @@
1
1
  export declare function sampleSizeWithSeed<T>(array: T[], size: number, seed: string): T[];
2
- //# sourceMappingURL=random.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const getReferralLink: (referralCode: string) => string;
2
- //# sourceMappingURL=referral.d.ts.map
@@ -176,4 +176,3 @@ export declare class Saxy extends Transform {
176
176
  */
177
177
  private _isXMLTagStart;
178
178
  }
179
- //# sourceMappingURL=saxy.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
@@ -1,4 +1,3 @@
1
1
  import Stripe from 'stripe';
2
2
  export declare const stripeServer: Stripe;
3
3
  export declare function getCurrentSubscription(customerId: string): Promise<Stripe.Subscription>;
4
- //# sourceMappingURL=stripe.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function logSyncFailure(id: string, errorMessage: string, provider?: string): Promise<void>;
2
- //# sourceMappingURL=sync-failure.d.ts.map
@@ -40,4 +40,3 @@ export declare class APIRealtimeClient {
40
40
  }>) => void): () => void;
41
41
  }
42
42
  export {};
43
- //# sourceMappingURL=websocket-client.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
2
  process.env.NEXT_PUBLIC_LINKEDIN_PARTNER_ID = '6771996';
3
- process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'prod';
4
3
  process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY = 'pk_live_51Q0SA5KrNS6SjmqWMgRE0ar5v6cMvtizkyY3mXjYaZsU6AG9ctpNPKZMVf6xFK2ngqwkt8rHNIQgNiCFSbRdGb9Z00QEo13rfx';
5
- process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
4
+ process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'prod';
6
5
  process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com';
6
+ process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
7
7
  process.env.NEXT_PUBLIC_STRIPE_CUSTOMER_PORTAL = 'https://billing.stripe.com/p/login/cN22bea8W6Ra2is144';
8
- process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
9
8
  process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
10
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecane",
3
- "version": "1.0.354",
3
+ "version": "1.0.358",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",