codebuff 1.0.99 → 1.0.100

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.js CHANGED
@@ -187,7 +187,7 @@ class CLI {
187
187
  this.stopLoadingAnimation();
188
188
  }
189
189
  handleExit() {
190
- console.log((0, picocolors_1.green)('\n\nExiting. Manicode out!'));
190
+ console.log((0, picocolors_1.green)('\n\nExiting. Codebuff out!'));
191
191
  process.exit(0);
192
192
  }
193
193
  handleEscKey() {
@@ -403,7 +403,7 @@ class CLI {
403
403
  process.stdout.write(chunk);
404
404
  }, userInputId, () => {
405
405
  this.stopLoadingAnimation();
406
- process.stdout.write((0, picocolors_1.green)((0, picocolors_1.underline)('\nManicode') + ':') + ' ');
406
+ process.stdout.write((0, picocolors_1.green)((0, picocolors_1.underline)('\nCodebuff') + ':') + ' ');
407
407
  });
408
408
  this.stopResponse = stopResponse;
409
409
  this.client.sendUserInput([], userInputId);
package/dist/client.js CHANGED
@@ -205,7 +205,7 @@ class Client {
205
205
  this.webSocket.subscribe('npm-version-status', (action) => {
206
206
  const { isUpToDate, latestVersion } = action;
207
207
  if (!isUpToDate) {
208
- console.warn((0, picocolors_1.yellow)(`\nThere's a new version of Manicode! Please update to ensure proper functionality.\nUpdate now by running: npm install -g manicode`));
208
+ console.warn((0, picocolors_1.yellow)(`\nThere's a new version of Codebuff! Please update to ensure proper functionality.\nUpdate now by running: npm install -g codebuff`));
209
209
  }
210
210
  });
211
211
  let shouldRequestLogin = false;
@@ -283,7 +283,7 @@ class Client {
283
283
  // User has used all their allotted credits, but they haven't been notified yet
284
284
  if (pct >= 100 && this.lastWarnedPct < 100) {
285
285
  if (this.subscription_active) {
286
- console.warn((0, picocolors_1.yellow)(`You have exceeded your monthly quota, but feel free to keep using Manicode! We'll charge you a discounted rate ($0.90/100) credits until your next billing cycle. See ${process.env.NEXT_PUBLIC_APP_URL}/usage for more details.`));
286
+ console.warn((0, picocolors_1.yellow)(`You have exceeded your monthly quota, but feel free to keep using Codebuff! We'll charge you a discounted rate ($0.90/100) credits until your next billing cycle. See ${process.env.NEXT_PUBLIC_APP_URL}/usage for more details.`));
287
287
  this.lastWarnedPct = 100;
288
288
  return;
289
289
  }
@@ -734,14 +734,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
734
734
  fingerprintHash: z.ZodString;
735
735
  }, "strip", z.ZodTypeAny, {
736
736
  type: "clear-auth-token";
737
- authToken: string;
738
737
  fingerprintId: string;
738
+ authToken: string;
739
739
  fingerprintHash: string;
740
740
  userId: string;
741
741
  }, {
742
742
  type: "clear-auth-token";
743
- authToken: string;
744
743
  fingerprintId: string;
744
+ authToken: string;
745
745
  fingerprintHash: string;
746
746
  userId: string;
747
747
  }>, z.ZodObject<{
@@ -972,15 +972,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
972
972
  email: string;
973
973
  name: string | null;
974
974
  id: string;
975
- authToken: string;
976
975
  fingerprintId: string;
976
+ authToken: string;
977
977
  fingerprintHash: string;
978
978
  }, {
979
979
  email: string;
980
980
  name: string | null;
981
981
  id: string;
982
- authToken: string;
983
982
  fingerprintId: string;
983
+ authToken: string;
984
984
  fingerprintHash: string;
985
985
  }>>;
986
986
  message: z.ZodString;
@@ -991,8 +991,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
991
991
  email: string;
992
992
  name: string | null;
993
993
  id: string;
994
- authToken: string;
995
994
  fingerprintId: string;
995
+ authToken: string;
996
996
  fingerprintHash: string;
997
997
  } | undefined;
998
998
  }, {
@@ -1002,8 +1002,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
1002
1002
  email: string;
1003
1003
  name: string | null;
1004
1004
  id: string;
1005
- authToken: string;
1006
1005
  fingerprintId: string;
1006
+ authToken: string;
1007
1007
  fingerprintHash: string;
1008
1008
  } | undefined;
1009
1009
  }>, z.ZodObject<{
@@ -9,7 +9,7 @@ export declare const CREDITS_USAGE_LIMITS: Record<UsageLimits, number>;
9
9
  export declare const CREDITS_REFERRAL_BONUS = 500;
10
10
  export declare const claudeModels: {
11
11
  readonly sonnet: "claude-3-5-sonnet-20241022";
12
- readonly haiku: "claude-3-haiku-20240307";
12
+ readonly haiku: "claude-3-5-haiku-20241022";
13
13
  };
14
14
  export declare const openaiModels: {
15
15
  readonly gpt4o: "gpt-4o-2024-08-06";
@@ -19,6 +19,6 @@ export declare const models: {
19
19
  gpt4o: "gpt-4o-2024-08-06";
20
20
  gpt4omini: "gpt-4o-mini-2024-07-18";
21
21
  sonnet: "claude-3-5-sonnet-20241022";
22
- haiku: "claude-3-haiku-20240307";
22
+ haiku: "claude-3-5-haiku-20241022";
23
23
  };
24
24
  export declare const TEST_USER_ID = "test-user-id";
@@ -59,7 +59,7 @@ exports.CREDITS_USAGE_LIMITS = process.env.NEXT_PUBLIC_ENVIRONMENT === 'local'
59
59
  exports.CREDITS_REFERRAL_BONUS = 500;
60
60
  exports.claudeModels = {
61
61
  sonnet: 'claude-3-5-sonnet-20241022',
62
- haiku: 'claude-3-haiku-20240307',
62
+ haiku: 'claude-3-5-haiku-20241022',
63
63
  };
64
64
  exports.openaiModels = {
65
65
  gpt4o: 'gpt-4o-2024-08-06',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAErB,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,kBAAkB,GAAG,GAAG,GAAG,cAAc,CAAA;AACzC,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAA;AAEY,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AAGnC,QAAA,oBAAoB,GAC/B,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,OAAO;IAC7C,CAAC,CAAC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;KACjB;IACH,CAAC,CAAC;QACE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;KACb,CAAA;AACM,QAAA,sBAAsB,GAAG,GAAG,CAAA;AAE5B,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,4BAA4B;IACpC,KAAK,EAAE,yBAAyB;CACxB,CAAA;AAEG,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,wBAAwB;CAC3B,CAAA;AAEG,QAAA,MAAM,GAAG;IACpB,GAAG,oBAAY;IACf,GAAG,oBAAY;CAChB,CAAA;AAEY,QAAA,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAErB,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,kBAAkB,GAAG,GAAG,GAAG,cAAc,CAAA;AACzC,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAA;AAEY,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AAGnC,QAAA,oBAAoB,GAC/B,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,OAAO;IAC7C,CAAC,CAAC;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;KACjB;IACH,CAAC,CAAC;QACE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;KACb,CAAA;AACM,QAAA,sBAAsB,GAAG,GAAG,CAAA;AAE5B,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,4BAA4B;IACpC,KAAK,EAAE,2BAA2B;CAC1B,CAAA;AAEG,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,mBAAmB;IAC1B,SAAS,EAAE,wBAAwB;CAC3B,CAAA;AAEG,QAAA,MAAM,GAAG;IACpB,GAAG,oBAAY;IACf,GAAG,oBAAY;CAChB,CAAA;AAEY,QAAA,YAAY,GAAG,cAAc,CAAA"}
@@ -8,8 +8,8 @@ const env_mjs_1 = require("./env.mjs");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  exports.default = (0, drizzle_kit_1.defineConfig)({
10
10
  dialect: 'postgresql',
11
- schema: path_1.default.join('src', 'db', 'schema.ts'),
12
- out: path_1.default.join('src', 'db', 'migrations'),
11
+ schema: path_1.default.join(__dirname, 'schema.ts').replace(/\\/g, '/'),
12
+ out: 'src/db/migrations',
13
13
  dbCredentials: {
14
14
  url: env_mjs_1.env.DATABASE_URL,
15
15
  },
@@ -1 +1 @@
1
- {"version":3,"file":"drizzle.config.js","sourceRoot":"","sources":["../../src/db/drizzle.config.ts"],"names":[],"mappings":";;;;;AAAA,6CAA0C;AAC1C,uCAA+B;AAC/B,gDAAuB;AAEvB,kBAAe,IAAA,0BAAY,EAAC;IAC1B,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC;IAC3C,GAAG,EAAE,cAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC;IACzC,aAAa,EAAE;QACb,GAAG,EAAE,aAAG,CAAC,YAAY;KACtB;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"drizzle.config.js","sourceRoot":"","sources":["../../src/db/drizzle.config.ts"],"names":[],"mappings":";;;;;AAAA,6CAA0C;AAC1C,uCAA+B;AAC/B,gDAAuB;AAEvB,kBAAe,IAAA,0BAAY,EAAC;IAC1B,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;IAC7D,GAAG,EAAE,mBAAmB;IACxB,aAAa,EAAE;QACb,GAAG,EAAE,aAAG,CAAC,YAAY;KACtB;CACF,CAAC,CAAA"}
@@ -101,6 +101,7 @@ export declare const fileRegex: RegExp;
101
101
  export declare const fileWithNoPathRegex: RegExp;
102
102
  export declare const parseFileBlocks: (fileBlocks: string) => Record<string, string>;
103
103
  export declare const parseFileBlocksWithoutPath: (fileBlocks: string) => string[];
104
+ export declare const createMarkdownFileBlock: (filePath: string, content: string) => string;
104
105
  export declare function printFileTree(nodes: FileTreeNode[], depth?: number): string;
105
106
  export declare function printFileTreeWithTokens(nodes: FileTreeNode[], fileTokenScores: Record<string, Record<string, number>>, path?: string[]): string;
106
107
  export declare const ensureDirectoryExists: (baseDir: string) => void;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ensureDirectoryExists = exports.parseFileBlocksWithoutPath = exports.parseFileBlocks = exports.fileWithNoPathRegex = exports.fileRegex = exports.createFileBlockWithoutPath = exports.createFileBlock = exports.ProjectFileContextSchema = exports.FileVersionSchema = exports.FileTreeNodeSchema = void 0;
26
+ exports.ensureDirectoryExists = exports.createMarkdownFileBlock = exports.parseFileBlocksWithoutPath = exports.parseFileBlocks = exports.fileWithNoPathRegex = exports.fileRegex = exports.createFileBlockWithoutPath = exports.createFileBlock = exports.ProjectFileContextSchema = exports.FileVersionSchema = exports.FileTreeNodeSchema = void 0;
27
27
  exports.printFileTree = printFileTree;
28
28
  exports.printFileTreeWithTokens = printFileTreeWithTokens;
29
29
  const fs = __importStar(require("fs"));
@@ -93,6 +93,10 @@ const parseFileBlocksWithoutPath = (fileBlocks) => {
93
93
  return files;
94
94
  };
95
95
  exports.parseFileBlocksWithoutPath = parseFileBlocksWithoutPath;
96
+ const createMarkdownFileBlock = (filePath, content) => {
97
+ return `\`\`\`${filePath}\n${content}\n\`\`\``;
98
+ };
99
+ exports.createMarkdownFileBlock = createMarkdownFileBlock;
96
100
  function printFileTree(nodes, depth = 0) {
97
101
  let result = '';
98
102
  const indentation = ' '.repeat(depth);
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/util/file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAmGA,sCAaC;AAED,0DA4BC;AA9ID,uCAAwB;AACxB,6BAAuB;AAEV,QAAA,kBAAk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AG,CAAC,EAAE,CAAA;YACzD,CAAC;QACH,CAAC;QACD,MAAM,IAAI,IAAI,CAAA;QACd,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAC/C,MAAM,IAAI,uBAAuB,CAAC,IAAI,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,CAAC,CAAA;QACzE,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,CAAA;IACZ,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAEM,MAAM,qBAAqB,GAAG,CAAC,OAAe,EAAE,EAAE;IACvD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5C,CAAC;AACH,CAAC,CAAA;AAJY,QAAA,qBAAqB,yBAIjC"}
@@ -540,14 +540,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
540
540
  fingerprintHash: z.ZodString;
541
541
  }, "strip", z.ZodTypeAny, {
542
542
  type: "clear-auth-token";
543
- authToken: string;
544
543
  fingerprintId: string;
544
+ authToken: string;
545
545
  fingerprintHash: string;
546
546
  userId: string;
547
547
  }, {
548
548
  type: "clear-auth-token";
549
- authToken: string;
550
549
  fingerprintId: string;
550
+ authToken: string;
551
551
  fingerprintHash: string;
552
552
  userId: string;
553
553
  }>, z.ZodObject<{
@@ -660,8 +660,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
660
660
  fingerprintHash: string;
661
661
  } | {
662
662
  type: "clear-auth-token";
663
- authToken: string;
664
663
  fingerprintId: string;
664
+ authToken: string;
665
665
  fingerprintHash: string;
666
666
  userId: string;
667
667
  } | {
@@ -765,8 +765,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
765
765
  fingerprintHash: string;
766
766
  } | {
767
767
  type: "clear-auth-token";
768
- authToken: string;
769
768
  fingerprintId: string;
769
+ authToken: string;
770
770
  fingerprintHash: string;
771
771
  userId: string;
772
772
  } | {
@@ -1314,14 +1314,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1314
1314
  fingerprintHash: z.ZodString;
1315
1315
  }, "strip", z.ZodTypeAny, {
1316
1316
  type: "clear-auth-token";
1317
- authToken: string;
1318
1317
  fingerprintId: string;
1318
+ authToken: string;
1319
1319
  fingerprintHash: string;
1320
1320
  userId: string;
1321
1321
  }, {
1322
1322
  type: "clear-auth-token";
1323
- authToken: string;
1324
1323
  fingerprintId: string;
1324
+ authToken: string;
1325
1325
  fingerprintHash: string;
1326
1326
  userId: string;
1327
1327
  }>, z.ZodObject<{
@@ -1434,8 +1434,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1434
1434
  fingerprintHash: string;
1435
1435
  } | {
1436
1436
  type: "clear-auth-token";
1437
- authToken: string;
1438
1437
  fingerprintId: string;
1438
+ authToken: string;
1439
1439
  fingerprintHash: string;
1440
1440
  userId: string;
1441
1441
  } | {
@@ -1539,8 +1539,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1539
1539
  fingerprintHash: string;
1540
1540
  } | {
1541
1541
  type: "clear-auth-token";
1542
- authToken: string;
1543
1542
  fingerprintId: string;
1543
+ authToken: string;
1544
1544
  fingerprintHash: string;
1545
1545
  userId: string;
1546
1546
  } | {
@@ -1783,15 +1783,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1783
1783
  email: string;
1784
1784
  name: string | null;
1785
1785
  id: string;
1786
- authToken: string;
1787
1786
  fingerprintId: string;
1787
+ authToken: string;
1788
1788
  fingerprintHash: string;
1789
1789
  }, {
1790
1790
  email: string;
1791
1791
  name: string | null;
1792
1792
  id: string;
1793
- authToken: string;
1794
1793
  fingerprintId: string;
1794
+ authToken: string;
1795
1795
  fingerprintHash: string;
1796
1796
  }>>;
1797
1797
  message: z.ZodString;
@@ -1802,8 +1802,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1802
1802
  email: string;
1803
1803
  name: string | null;
1804
1804
  id: string;
1805
- authToken: string;
1806
1805
  fingerprintId: string;
1806
+ authToken: string;
1807
1807
  fingerprintHash: string;
1808
1808
  } | undefined;
1809
1809
  }, {
@@ -1813,8 +1813,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1813
1813
  email: string;
1814
1814
  name: string | null;
1815
1815
  id: string;
1816
- authToken: string;
1817
1816
  fingerprintId: string;
1817
+ authToken: string;
1818
1818
  fingerprintHash: string;
1819
1819
  } | undefined;
1820
1820
  }>, z.ZodObject<{
@@ -1932,8 +1932,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
1932
1932
  email: string;
1933
1933
  name: string | null;
1934
1934
  id: string;
1935
- authToken: string;
1936
1935
  fingerprintId: string;
1936
+ authToken: string;
1937
1937
  fingerprintHash: string;
1938
1938
  } | undefined;
1939
1939
  } | {
@@ -2017,8 +2017,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2017
2017
  email: string;
2018
2018
  name: string | null;
2019
2019
  id: string;
2020
- authToken: string;
2021
2020
  fingerprintId: string;
2021
+ authToken: string;
2022
2022
  fingerprintHash: string;
2023
2023
  } | undefined;
2024
2024
  } | {
@@ -2269,15 +2269,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2269
2269
  email: string;
2270
2270
  name: string | null;
2271
2271
  id: string;
2272
- authToken: string;
2273
2272
  fingerprintId: string;
2273
+ authToken: string;
2274
2274
  fingerprintHash: string;
2275
2275
  }, {
2276
2276
  email: string;
2277
2277
  name: string | null;
2278
2278
  id: string;
2279
- authToken: string;
2280
2279
  fingerprintId: string;
2280
+ authToken: string;
2281
2281
  fingerprintHash: string;
2282
2282
  }>>;
2283
2283
  message: z.ZodString;
@@ -2288,8 +2288,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2288
2288
  email: string;
2289
2289
  name: string | null;
2290
2290
  id: string;
2291
- authToken: string;
2292
2291
  fingerprintId: string;
2292
+ authToken: string;
2293
2293
  fingerprintHash: string;
2294
2294
  } | undefined;
2295
2295
  }, {
@@ -2299,8 +2299,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2299
2299
  email: string;
2300
2300
  name: string | null;
2301
2301
  id: string;
2302
- authToken: string;
2303
2302
  fingerprintId: string;
2303
+ authToken: string;
2304
2304
  fingerprintHash: string;
2305
2305
  } | undefined;
2306
2306
  }>, z.ZodObject<{
@@ -2418,8 +2418,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2418
2418
  email: string;
2419
2419
  name: string | null;
2420
2420
  id: string;
2421
- authToken: string;
2422
2421
  fingerprintId: string;
2422
+ authToken: string;
2423
2423
  fingerprintHash: string;
2424
2424
  } | undefined;
2425
2425
  } | {
@@ -2503,8 +2503,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2503
2503
  email: string;
2504
2504
  name: string | null;
2505
2505
  id: string;
2506
- authToken: string;
2507
2506
  fingerprintId: string;
2507
+ authToken: string;
2508
2508
  fingerprintHash: string;
2509
2509
  } | undefined;
2510
2510
  } | {
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  process.env.ENVIRONMENT = 'production';
3
3
  process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
4
- process.env.NEXT_PUBLIC_APP_URL = 'https://manicode.ai';
5
- process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@manicode.ai';
4
+ process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
5
+ process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
6
6
  "use strict";
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -14,13 +14,13 @@ const picocolors_1 = require("picocolors");
14
14
  const cli_1 = require("./cli");
15
15
  const project_files_1 = require("./project-files");
16
16
  const update_manicode_1 = require("./update-manicode");
17
- async function manicode(projectDir, { initialInput, autoGit }) {
17
+ async function codebuff(projectDir, { initialInput, autoGit }) {
18
18
  const dir = (0, project_files_1.setProjectRoot)(projectDir);
19
- const updatePromise = (0, update_manicode_1.updateManicode)();
19
+ const updatePromise = (0, update_manicode_1.updateCodebuff)();
20
20
  const initFileContextPromise = (0, project_files_1.initProjectFileContextWithWorker)(dir);
21
21
  const readyPromise = Promise.all([updatePromise, initFileContextPromise]);
22
22
  const cli = new cli_1.CLI(readyPromise, { autoGit });
23
- console.log(`Manicode will read and write files in "${dir}". Type "help" for a list of commands.`);
23
+ console.log(`Codebuff will read and write files in "${dir}". Type "help" for a list of commands.`);
24
24
  const gitDir = path_1.default.join(dir, '.git');
25
25
  if (!fs_1.default.existsSync(gitDir)) {
26
26
  console.warn((0, picocolors_1.yellow)('Warning: No .git directory found. Make sure you are at the top level of your project.'));
@@ -37,14 +37,14 @@ if (require.main === module) {
37
37
  const projectPath = args[0];
38
38
  const initialInput = args.slice(1).join(' ');
39
39
  if (help) {
40
- console.log('Usage: manicode [project-directory] [initial-prompt]');
40
+ console.log('Usage: codebuff [project-directory] [initial-prompt]');
41
41
  console.log('Both arguments are optional.');
42
- console.log('If no project directory is specified, Manicode will use the current directory.');
42
+ console.log('If no project directory is specified, Codebuff will use the current directory.');
43
43
  console.log('If an initial prompt is provided, it will be sent as the first user input.');
44
44
  console.log();
45
- console.log('Manicode allows you to interact with your codebase using natural language.');
45
+ console.log('Codebuff allows you to interact with your codebase using natural language.');
46
46
  process.exit(0);
47
47
  }
48
- manicode(projectPath, { initialInput, autoGit });
48
+ codebuff(projectPath, { initialInput, autoGit });
49
49
  }
50
50
  //# sourceMappingURL=index.js.map
package/dist/menu.js CHANGED
@@ -67,26 +67,26 @@ ${colorizeRandom('██║ ╚═╝ ██║')}${colorizeRandom('██║
67
67
  ${colorizeRandom('╚═╝ ╚═╝')}${colorizeRandom('╚═╝ ╚═╝')}${colorizeRandom('╚═╝ ╚═══╝')}${colorizeRandom('╚═╝')}${colorizeRandom(' ╚═════╝')}${colorizeRandom(' ╚════╝ ')}${colorizeRandom('╚═════╝ ')}${colorizeRandom('╚══════╝')}
68
68
  `);
69
69
  console.log((0, picocolors_2.bold)((0, picocolors_2.green)("Welcome! I'm your AI coding assistant.")));
70
- console.log(`\nManicode will read and write files within your current directory (${(0, project_files_1.getProjectRoot)()}) and run commands in your terminal.`);
71
- console.log('\nASK MANICODE TO...');
70
+ console.log(`\nCodebuff will read and write files within your current directory (${(0, project_files_1.getProjectRoot)()}) and run commands in your terminal.`);
71
+ console.log('\nASK CODEBUFF TO...');
72
72
  console.log('- Write unit tests');
73
73
  console.log('- Build a feature. Brain dump what you want first.');
74
74
  console.log('- Refactor a component into multiple components');
75
75
  console.log('- Fix errors from compiling your project or running tests');
76
76
  console.log('- Write a script.');
77
- console.log('- Plan a feature before implementing it. Or, write your own plan in a file and ask Manicode to implement it step-by-step');
77
+ console.log('- Plan a feature before implementing it. Or, write your own plan in a file and ask Codebuff to implement it step-by-step');
78
78
  console.log('- Build an integration after pasting in the URL to relevant documentation');
79
- console.log('- "Create knowledge files for your codebase" to help Manicode understand your project');
79
+ console.log('- "Create knowledge files for your codebase" to help Codebuff understand your project');
80
80
  console.log('\nCOMMANDS');
81
81
  console.log('- Enter terminal commands directly: "cd backend", "npm test"');
82
82
  console.log('- Use "/run <command>" for long terminal commands');
83
83
  console.log('- Press ESC to cancel generation');
84
84
  console.log('- Type "undo" or "redo" (abbreviated "u" or "r") to undo or redo the last change');
85
- console.log('- Type "login" to log into Manicode');
85
+ console.log('- Type "login" to log into Codebuff');
86
86
  console.log('- Type "diff" or "d" to show changes from the last assistant response');
87
87
  console.log(`- Redeem a referral code by simply pasting it here.`);
88
88
  console.log('-', (0, picocolors_2.bold)((0, picocolors_2.green)(`Refer new users and each of you will earn ${constants_1.CREDITS_REFERRAL_BONUS} credits per month: ${process.env.NEXT_PUBLIC_APP_URL}/referrals`)));
89
- console.log('\nAny files in .gitignore are not read by Manicode. You can ignore further files with .manicodeignore');
90
- console.log('\nEmail your feedback to', (0, picocolors_2.bold)((0, picocolors_1.blue)('founders@manicode.ai.')), 'Thanks for using Manicode!');
89
+ console.log('\nAny files in .gitignore are not read by Codebuff. You can ignore further files with .codebuffignore');
90
+ console.log('\nEmail your feedback to', (0, picocolors_2.bold)((0, picocolors_1.blue)('founders@codebuff.com.')), 'Thanks for using Codebuff!');
91
91
  }
92
92
  //# sourceMappingURL=menu.js.map
package/dist/menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,kCAiFC;AAlGD,gDAAyD;AACzD,mDAAgD;AAChD,yDAA6C;AAC7C,2CAAwC;AAExC,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACvE,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;QACrE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACpB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAED,SAAgB,WAAW;IACzB,MAAM,cAAc,GAAG,eAAe,EAAE,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AC,GAAG,CAAC,qCAAqC,CAAC,CAAA;IAClD,OAAO,CAAC,GAAG,CACT,uEAAuE,CACxE,CAAA;IACD,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAA;IAClE,OAAO,CAAC,GAAG,CACT,GAAG,EACH,IAAA,iBAAI,EACF,IAAA,kBAAK,EACH,6CAA6C,kCAAsB,uBAAuB,OAAO,CAAC,GAAG,CAAC,mBAAmB,YAAY,CACtI,CACF,CACF,CAAA;IAED,OAAO,CAAC,GAAG,CACT,uGAAuG,CACxG,CAAA;IACD,OAAO,CAAC,GAAG,CACT,0BAA0B,EAC1B,IAAA,iBAAI,EAAC,IAAA,iBAAI,EAAC,wBAAwB,CAAC,CAAC,EACpC,4BAA4B,CAC7B,CAAA;AACH,CAAC"}
@@ -31,7 +31,7 @@ function setProjectRoot(dir) {
31
31
  const newDir = path_1.default.resolve(dir || getCurrentDirectory());
32
32
  if (fs_1.default.existsSync(newDir)) {
33
33
  if (projectRoot) {
34
- console.log((0, picocolors_1.green)('\nDirectory change:'), `Manicode will read and write files in "${newDir}".\n`);
34
+ console.log((0, picocolors_1.green)('\nDirectory change:'), `Codebuff will read and write files in "${newDir}".\n`);
35
35
  }
36
36
  projectRoot = newDir;
37
37
  return newDir;
@@ -1 +1 @@
1
- export declare function updateManicode(): Promise<void>;
1
+ export declare function updateCodebuff(): Promise<void>;
@@ -3,38 +3,38 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.updateManicode = updateManicode;
6
+ exports.updateCodebuff = updateCodebuff;
7
7
  const child_process_1 = require("child_process");
8
8
  const picocolors_1 = require("picocolors");
9
9
  const web_scraper_1 = require("./web-scraper");
10
10
  const package_json_1 = __importDefault(require("../package.json"));
11
11
  const config_1 = require("./config");
12
- async function updateManicode() {
12
+ async function updateCodebuff() {
13
13
  if (!config_1.isProduction)
14
14
  return;
15
- const latestVersion = await getManicodeNpmVersion();
15
+ const latestVersion = await getCodebuffNpmVersion();
16
16
  const isUpToDate = isNpmUpToDate(package_json_1.default.version, latestVersion);
17
17
  if (!isUpToDate) {
18
18
  const installerInfo = detectInstaller();
19
19
  if (!installerInfo) {
20
- console.log((0, picocolors_1.yellow)("There's a new version available! Please update manicode to prevent errors"));
20
+ console.log((0, picocolors_1.yellow)("There's a new version available! Please update Codebuff to prevent errors"));
21
21
  return;
22
22
  }
23
- console.log((0, picocolors_1.green)(`Updating Manicode using ${installerInfo.installer}...`));
23
+ console.log((0, picocolors_1.green)(`Updating Codebuff using ${installerInfo.installer}...`));
24
24
  try {
25
- runUpdateManicode(installerInfo);
26
- console.log((0, picocolors_1.green)('Manicode updated successfully.'));
27
- console.log((0, picocolors_1.green)('Manicode out! Please restart Manicode to use the new version.'));
25
+ runUpdateCodebuff(installerInfo);
26
+ console.log((0, picocolors_1.green)('Codebuff updated successfully.'));
27
+ console.log((0, picocolors_1.green)('Please restart by running `codebuff` to use the new version.'));
28
28
  process.exit(0);
29
29
  }
30
30
  catch (error) {
31
- console.error('Failed to update Manicode.');
31
+ console.error('Failed to update Codebuff.');
32
32
  }
33
33
  }
34
34
  }
35
- async function getManicodeNpmVersion() {
35
+ async function getCodebuffNpmVersion() {
36
36
  try {
37
- const result = (0, child_process_1.execSync)('npm view manicode version', {
37
+ const result = (0, child_process_1.execSync)('npm view codebuff version', {
38
38
  encoding: 'utf-8',
39
39
  stdio: 'pipe', // Suppress all output
40
40
  });
@@ -45,7 +45,7 @@ async function getManicodeNpmVersion() {
45
45
  }
46
46
  catch (error) { }
47
47
  // Fallback to web scraping if npm command fails
48
- const url = 'https://www.npmjs.com/package/manicode';
48
+ const url = 'https://www.npmjs.com/package/codebuff';
49
49
  const content = await (0, web_scraper_1.scrapeWebPage)(url);
50
50
  const latestVersionRegex = /"latest":"(\d+\.\d+\.\d+)"/;
51
51
  const match = content.match(latestVersionRegex);
@@ -63,19 +63,19 @@ function isNpmUpToDate(currentVersion, latestVersion) {
63
63
  return true;
64
64
  }
65
65
  function detectInstaller() {
66
- let manicodeLocation = '';
66
+ let codebuffLocation = '';
67
67
  try {
68
68
  if (process.platform === 'win32') {
69
- manicodeLocation = (0, child_process_1.execSync)('where manicode').toString().trim();
69
+ codebuffLocation = (0, child_process_1.execSync)('where codebuff').toString().trim();
70
70
  }
71
71
  else {
72
- manicodeLocation = (0, child_process_1.execSync)('which manicode').toString().trim();
72
+ codebuffLocation = (0, child_process_1.execSync)('which codebuff').toString().trim();
73
73
  }
74
74
  }
75
75
  catch (error) {
76
76
  // Continue with empty location - could be a local installation
77
77
  }
78
- const path = manicodeLocation.split('\n')[0] ?? '';
78
+ const path = codebuffLocation.split('\n')[0] ?? '';
79
79
  const pathIncludesNodeModules = path.includes('node_modules');
80
80
  const npmUserAgent = process.env.npm_config_user_agent ?? '';
81
81
  // Check for package manager script environments
@@ -84,7 +84,7 @@ function detectInstaller() {
84
84
  const isBunScript = process.env.npm_lifecycle_script?.includes('bun');
85
85
  const isNpmScript = process.env.npm_execpath?.endsWith('npm-cli.js') ||
86
86
  npmUserAgent.includes('npm');
87
- // Mac: /Users/jahooma/.yarn/bin/manicode
87
+ // Mac: /Users/jahooma/.yarn/bin/codebuff
88
88
  if (isYarnScript || path.includes('.yarn')) {
89
89
  return {
90
90
  installer: 'yarn',
@@ -108,7 +108,7 @@ function detectInstaller() {
108
108
  };
109
109
  }
110
110
  // /usr/local/lib/node_modules on macOS/Linux or %AppData%\npm/node_modules on Windows
111
- // OR: .nvm/versions/node/v18.17.0/bin/manicode on mac
111
+ // OR: .nvm/versions/node/v18.17.0/bin/codebuff on mac
112
112
  const isGlobalNpmPath = path.includes('npm') || path.startsWith('/usr/') || path.includes('.nvm');
113
113
  if (isNpmScript || isGlobalNpmPath) {
114
114
  return {
@@ -118,29 +118,29 @@ function detectInstaller() {
118
118
  }
119
119
  return undefined;
120
120
  }
121
- function runUpdateManicode(installerInfo) {
121
+ function runUpdateCodebuff(installerInfo) {
122
122
  let command;
123
123
  const isGlobal = installerInfo.scope === 'global';
124
124
  switch (installerInfo.installer) {
125
125
  case 'npm':
126
- command = `npm ${isGlobal ? 'install -g' : 'install'} manicode@latest`;
126
+ command = `npm ${isGlobal ? 'install -g' : 'install'} codebuff@latest`;
127
127
  break;
128
128
  case 'yarn':
129
- command = `yarn ${isGlobal ? 'global add' : 'add'} manicode@latest`;
129
+ command = `yarn ${isGlobal ? 'global add' : 'add'} codebuff@latest`;
130
130
  break;
131
131
  case 'pnpm':
132
- command = `pnpm add ${isGlobal ? '-g' : ''} manicode@latest`;
132
+ command = `pnpm add ${isGlobal ? '-g' : ''} codebuff@latest`;
133
133
  break;
134
134
  case 'bun':
135
- command = `bun add ${isGlobal ? '-g' : ''} manicode@latest`;
135
+ command = `bun add ${isGlobal ? '-g' : ''} codebuff@latest`;
136
136
  break;
137
137
  default:
138
138
  throw new Error(`Unsupported installer: ${installerInfo.installer} ${installerInfo.scope}`);
139
139
  }
140
140
  (0, child_process_1.execSync)(command, { stdio: 'inherit' });
141
141
  }
142
- function restartManicode() {
143
- const child = (0, child_process_1.spawn)('manicode', [...process.argv.slice(2), '--post-update'], {
142
+ function restartCodebuff() {
143
+ const child = (0, child_process_1.spawn)('codebuff', [...process.argv.slice(2), '--post-update'], {
144
144
  detached: false,
145
145
  stdio: 'inherit',
146
146
  });
@@ -1 +1 @@
1
- {"version":3,"file":"update-manicode.js","sourceRoot":"","sources":["../src/update-manicode.ts"],"names":[],"mappings":";;;;;AAMA,wCA2BC;AAjCD,iDAA+C;AAC/C,2CAA0C;AAC1C,+CAA6C;AAC7C,mEAAyC;AACzC,qCAAuC;AAEhC,KAAK,UAAU,cAAc;IAClC,IAAI,CAAC,qBAAY;QAAE,OAAM;IAEzB,MAAM,aAAa,GAAG,MAAM,qBAAqB,EAAE,CAAA;IACnD,MAAM,UAAU,GAAG,aAAa,CAAC,sBAAW,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;I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,CAAC,EAAE;QAC3E,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,SAAS;KACjB,CAAC,CAAA;IACF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACxB,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAA;IACzB,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -25,8 +25,7 @@
25
25
  "start-jpcsp": "bun run with-env -- ts-node src/index.ts ../test/__mock-projects__/jpcsp",
26
26
  "start-vscode": "bun run with-env -- ts-node src/index.ts ../test/__mock-projects__/vscode",
27
27
  "start-nushell": "bun run with-env -- ts-node src/index.ts ../test/__mock-projects__/nushell",
28
- "start-prod": "bun run with-env -- ts-node src/index.ts",
29
- "ssh": "gcloud compute ssh manicode-backend --zone=us-east4-a"
28
+ "start-prod": "bun run with-env -- ts-node src/index.ts"
30
29
  },
31
30
  "files": [
32
31
  "dist",