codebuff 1.0.311 → 1.0.312

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 (45) hide show
  1. package/dist/background-process-manager.d.ts +1 -1
  2. package/dist/background-process-manager.js +3 -3
  3. package/dist/browser-runner.d.ts +1 -1
  4. package/dist/browser-runner.js +4 -4
  5. package/dist/chat-storage.d.ts +1 -1
  6. package/dist/chat-storage.js +1 -1
  7. package/dist/checkpoints/checkpoint-manager.d.ts +1 -1
  8. package/dist/checkpoints/checkpoint-manager.js +1 -1
  9. package/dist/cli-handlers/api-key.d.ts +1 -1
  10. package/dist/cli-handlers/api-key.js +1 -1
  11. package/dist/cli-handlers/diff.d.ts +1 -1
  12. package/dist/cli-handlers/inititalization-flow.js +1 -1
  13. package/dist/cli.d.ts +1 -1
  14. package/dist/cli.js +2 -2
  15. package/dist/client.d.ts +6 -6
  16. package/dist/client.js +9 -9
  17. package/dist/credentials.d.ts +1 -1
  18. package/dist/credentials.js +2 -2
  19. package/dist/dev-process-manager.d.ts +1 -1
  20. package/dist/dev-process-manager.js +2 -2
  21. package/dist/index.js +6 -0
  22. package/dist/json-config/hooks.d.ts +1 -1
  23. package/dist/json-config/hooks.js +1 -1
  24. package/dist/json-config/parser.d.ts +1 -1
  25. package/dist/json-config/parser.js +1 -1
  26. package/dist/menu.d.ts +1 -1
  27. package/dist/menu.js +1 -1
  28. package/dist/project-files.d.ts +2 -2
  29. package/dist/project-files.js +6 -6
  30. package/dist/tool-handlers.d.ts +2 -2
  31. package/dist/tool-handlers.js +4 -4
  32. package/dist/types.d.ts +1 -1
  33. package/dist/update-codebuff.js +1 -1
  34. package/dist/utils/__tests__/tool-renderers.test.js +2 -2
  35. package/dist/utils/__tests__/xml-stream-parser.test.js +1 -1
  36. package/dist/utils/analytics.d.ts +1 -1
  37. package/dist/utils/logger.js +1 -1
  38. package/dist/utils/terminal.js +3 -3
  39. package/dist/utils/tool-renderers.d.ts +1 -1
  40. package/dist/utils/tool-renderers.js +2 -2
  41. package/dist/utils/xml-stream-parser.d.ts +1 -1
  42. package/dist/utils/xml-stream-parser.js +2 -2
  43. package/dist/web-scraper.js +1 -1
  44. package/dist/workers/project-context.js +1 -1
  45. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ChildProcessByStdio, ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from 'child_process';
2
- import { ToolResult } from 'common/types/agent-state';
2
+ import { ToolResult } from './common/types/agent-state';
3
3
  /**
4
4
  * Interface describing the information stored for each background process.
5
5
  */
@@ -15,9 +15,9 @@ const child_process_1 = require("child_process");
15
15
  const fs_1 = require("fs");
16
16
  const path_1 = __importDefault(require("path"));
17
17
  const process_1 = __importDefault(require("process"));
18
- const analytics_events_1 = require("common/constants/analytics-events");
19
- const array_1 = require("common/util/array");
20
- const string_1 = require("common/util/string");
18
+ const analytics_events_1 = require("./common/constants/analytics-events");
19
+ const array_1 = require("./common/util/array");
20
+ const string_1 = require("./common/util/string");
21
21
  const picocolors_1 = require("picocolors");
22
22
  const zod_1 = require("zod");
23
23
  const credentials_1 = require("./credentials");
@@ -1,4 +1,4 @@
1
- import { BrowserAction, BrowserResponse } from 'common/browser-actions';
1
+ import { BrowserAction, BrowserResponse } from './common/browser-actions';
2
2
  export declare class BrowserRunner {
3
3
  getLogs(): BrowserResponse['logs'];
4
4
  getNetworkEvents(): BrowserResponse['networkEvents'];
@@ -27,10 +27,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.activeBrowserRunner = exports.handleBrowserInstruction = exports.BrowserRunner = void 0;
30
- const browser_actions_1 = require("common/browser-actions");
31
- const file_1 = require("common/util/file");
32
- const promise_1 = require("common/util/promise");
33
- const string_1 = require("common/util/string");
30
+ const browser_actions_1 = require("./common/browser-actions");
31
+ const file_1 = require("./common/util/file");
32
+ const promise_1 = require("./common/util/promise");
33
+ const string_1 = require("./common/util/string");
34
34
  const fs = __importStar(require("fs"));
35
35
  const path = __importStar(require("path"));
36
36
  const puppeteer_core_1 = __importDefault(require("puppeteer-core"));
@@ -1,2 +1,2 @@
1
- import { type CodebuffMessage } from 'common/types/message';
1
+ import { type CodebuffMessage } from './common/types/message';
2
2
  export declare function setMessages(messages: CodebuffMessage[]): void;
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.setMessages = setMessages;
27
- const string_1 = require("common/util/string");
27
+ const string_1 = require("./common/util/string");
28
28
  const fs = __importStar(require("fs"));
29
29
  const path = __importStar(require("path"));
30
30
  const project_files_1 = require("./project-files");
@@ -1,4 +1,4 @@
1
- import { AgentState, ToolResult } from 'common/types/agent-state';
1
+ import { AgentState, ToolResult } from '../common/types/agent-state';
2
2
  export declare class CheckpointsDisabledError extends Error {
3
3
  constructor(message?: string, options?: ErrorOptions);
4
4
  }
@@ -8,7 +8,7 @@ const assert_1 = __importDefault(require("assert"));
8
8
  const os_1 = __importDefault(require("os"));
9
9
  const path_1 = require("path");
10
10
  const worker_threads_1 = require("worker_threads");
11
- const project_file_tree_1 = require("common/project-file-tree");
11
+ const project_file_tree_1 = require("../common/project-file-tree");
12
12
  const picocolors_1 = require("picocolors");
13
13
  const project_files_1 = require("../project-files");
14
14
  const file_manager_1 = require("./file-manager");
@@ -1,4 +1,4 @@
1
- import { ApiKeyType } from 'common/api-keys/constants';
1
+ import { ApiKeyType } from '../common/api-keys/constants';
2
2
  import { Client } from '../client';
3
3
  export type ApiKeyDetectionResult = {
4
4
  status: 'found';
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.detectApiKey = detectApiKey;
4
4
  exports.handleApiKeyInput = handleApiKeyInput;
5
- const constants_1 = require("common/api-keys/constants");
5
+ const constants_1 = require("../common/api-keys/constants");
6
6
  const picocolors_1 = require("picocolors");
7
7
  /**
8
8
  * Detects if the user input contains a known API key pattern.
@@ -1,2 +1,2 @@
1
- import { FileChange } from 'common/actions';
1
+ import { FileChange } from '../common/actions';
2
2
  export declare function handleDiff(lastChanges: FileChange[]): void;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.handleInitializationFlowLocally = handleInitializationFlowLocally;
7
7
  const fs_1 = require("fs");
8
8
  const path_1 = __importDefault(require("path"));
9
- const constants_1 = require("common/json-config/constants");
9
+ const constants_1 = require("../common/json-config/constants");
10
10
  const project_files_1 = require("../project-files");
11
11
  function handleInitializationFlowLocally() {
12
12
  const projectRoot = (0, project_files_1.getProjectRoot)();
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as readline from 'readline';
2
- import { ProjectFileContext } from 'common/util/file';
2
+ import { ProjectFileContext } from './common/util/file';
3
3
  import { CliOptions } from './types';
4
4
  export declare class CLI {
5
5
  private static instance;
package/dist/cli.js CHANGED
@@ -29,8 +29,8 @@ const os = __importStar(require("os"));
29
29
  const os_1 = require("os");
30
30
  const path_1 = __importStar(require("path"));
31
31
  const readline = __importStar(require("readline"));
32
- const analytics_events_1 = require("common/constants/analytics-events");
33
- const string_1 = require("common/util/string");
32
+ const analytics_events_1 = require("./common/constants/analytics-events");
33
+ const string_1 = require("./common/util/string");
34
34
  const picocolors_1 = require("picocolors");
35
35
  const background_process_manager_1 = require("./background-process-manager");
36
36
  const chat_storage_1 = require("./chat-storage");
package/dist/client.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { FileChanges, ServerAction, UsageResponse } from 'common/actions';
2
- import { ApiKeyType } from 'common/api-keys/constants';
3
- import { CostMode } from 'common/constants';
4
- import { AgentState, ToolResult } from 'common/types/agent-state';
5
- import { User } from 'common/util/credentials';
6
- import { ProjectFileContext } from 'common/util/file';
1
+ import { FileChanges, ServerAction, UsageResponse } from './common/actions';
2
+ import { ApiKeyType } from './common/api-keys/constants';
3
+ import { CostMode } from './common/constants';
4
+ import { AgentState, ToolResult } from './common/types/agent-state';
5
+ import { User } from './common/util/credentials';
6
+ import { ProjectFileContext } from './common/util/file';
7
7
  import { GitCommand, MakeNullable } from './types';
8
8
  type UsageData = Omit<MakeNullable<UsageResponse, 'remainingBalance'>, 'type'>;
9
9
  interface ClientOptions {
package/dist/client.js CHANGED
@@ -8,15 +8,15 @@ const child_process_1 = require("child_process");
8
8
  const fs_1 = require("fs");
9
9
  const os_1 = __importDefault(require("os"));
10
10
  const path_1 = __importDefault(require("path"));
11
- const actions_1 = require("common/actions");
12
- const constants_1 = require("common/api-keys/constants");
13
- const constants_2 = require("common/constants");
14
- const analytics_events_1 = require("common/constants/analytics-events");
15
- const constants_3 = require("common/json-config/constants");
16
- const agent_state_1 = require("common/types/agent-state");
17
- const array_1 = require("common/util/array");
18
- const string_1 = require("common/util/string");
19
- const websocket_client_1 = require("common/websockets/websocket-client");
11
+ const actions_1 = require("./common/actions");
12
+ const constants_1 = require("./common/api-keys/constants");
13
+ const constants_2 = require("./common/constants");
14
+ const analytics_events_1 = require("./common/constants/analytics-events");
15
+ const constants_3 = require("./common/json-config/constants");
16
+ const agent_state_1 = require("./common/types/agent-state");
17
+ const array_1 = require("./common/util/array");
18
+ const string_1 = require("./common/util/string");
19
+ const websocket_client_1 = require("./common/websockets/websocket-client");
20
20
  const picocolors_1 = require("picocolors");
21
21
  const ts_pattern_1 = require("ts-pattern");
22
22
  const zod_1 = require("zod");
@@ -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;
@@ -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
@@ -5,6 +5,12 @@ 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
7
  process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com/';
8
+ process.env.NEXT_PUBLIC_CB_ENVIRONMENT = 'production';
9
+ process.env.NEXT_PUBLIC_BACKEND_URL = 'manicode-backend.onrender.com';
10
+ process.env.NEXT_PUBLIC_APP_URL = 'https://codebuff.com';
11
+ process.env.NEXT_PUBLIC_SUPPORT_EMAIL = 'support@codebuff.com';
12
+ process.env.NEXT_PUBLIC_POSTHOG_API_KEY = 'phc_tug7g8yc10qNestK14QV8WyKwjfEl6vwzIbJkBdqeHS';
13
+ process.env.NEXT_PUBLIC_POSTHOG_HOST_URL = 'https://us.i.posthog.com/';
8
14
  "use strict";
9
15
  var __importDefault = (this && this.__importDefault) || function (mod) {
10
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -1,4 +1,4 @@
1
- import { ToolResult } from 'common/types/agent-state';
1
+ import { ToolResult } from '../common/types/agent-state';
2
2
  /**
3
3
  * Runs file change hooks defined in the codebuff.json configuration.
4
4
  * Returns an array of tool results for any hooks that fail.
@@ -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");
@@ -1,4 +1,4 @@
1
- import { CodebuffConfig } from 'common/json-config/constants';
1
+ import { CodebuffConfig } from '../common/json-config/constants';
2
2
  /**
3
3
  * Loads and validates the configuration file from the project directory.
4
4
  * @param projectPath - The root directory of the project
@@ -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
@@ -1,4 +1,4 @@
1
- import { CostMode } from 'common/constants';
1
+ import { CostMode } from './common/constants';
2
2
  export interface CommandInfo {
3
3
  commandText: string;
4
4
  description: string;
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
  {
@@ -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: {
@@ -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");
@@ -1,5 +1,5 @@
1
- import { BrowserResponse } from 'common/browser-actions';
2
- import { RawToolCall } from 'common/types/tools';
1
+ import { BrowserResponse } from './common/browser-actions';
2
+ import { RawToolCall } from './common/types/tools';
3
3
  export type ToolHandler<T extends Record<string, any>> = (parameters: T, id: string) => Promise<string | BrowserResponse>;
4
4
  export declare const handleUpdateFile: ToolHandler<{
5
5
  tool: 'write_file' | 'str_replace' | 'create_plan';
@@ -27,10 +27,10 @@ exports.handleToolCall = exports.toolHandlers = exports.handleSleep = exports.ha
27
27
  const child_process_1 = require("child_process");
28
28
  const path = __importStar(require("path"));
29
29
  const ripgrep_1 = require("@vscode/ripgrep");
30
- const actions_1 = require("common/actions");
31
- const browser_actions_1 = require("common/browser-actions");
32
- const changes_1 = require("common/util/changes");
33
- const string_1 = require("common/util/string");
30
+ const actions_1 = require("./common/actions");
31
+ const browser_actions_1 = require("./common/browser-actions");
32
+ const changes_1 = require("./common/util/changes");
33
+ const string_1 = require("./common/util/string");
34
34
  const picocolors_1 = require("picocolors");
35
35
  const logger_1 = require("./utils/logger");
36
36
  const browser_runner_1 = require("./browser-runner");
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CostMode } from 'common/constants';
1
+ import { CostMode } from './common/constants';
2
2
  export type GitCommand = 'stage' | undefined;
3
3
  export interface CliOptions {
4
4
  initialInput?: string;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.updateCodebuff = updateCodebuff;
7
7
  const child_process_1 = require("child_process");
8
8
  const picocolors_1 = require("picocolors");
9
- const analytics_events_1 = require("common/constants/analytics-events");
9
+ const analytics_events_1 = require("./common/constants/analytics-events");
10
10
  const package_json_1 = __importDefault(require("../package.json"));
11
11
  const background_process_manager_1 = require("./background-process-manager");
12
12
  const config_1 = require("./config");
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  const stream_1 = require("stream");
30
30
  // @ts-ignore
31
31
  const bun_test_1 = require("bun:test");
32
- const tools_1 = require("common/constants/tools");
33
- const projectFileTree = __importStar(require("common/project-file-tree"));
32
+ const tools_1 = require("../../common/constants/tools");
33
+ const projectFileTree = __importStar(require("../../common/project-file-tree"));
34
34
  const strip_ansi_1 = __importDefault(require("strip-ansi"));
35
35
  const projectFiles = __importStar(require("../../project-files"));
36
36
  const tool_renderers_1 = require("../tool-renderers");
@@ -8,7 +8,7 @@ const path_1 = __importDefault(require("path"));
8
8
  const stream_1 = require("stream");
9
9
  // @ts-ignore
10
10
  const bun_test_1 = require("bun:test");
11
- const tools_1 = require("common/constants/tools");
11
+ const tools_1 = require("../../common/constants/tools");
12
12
  const strip_ansi_1 = __importDefault(require("strip-ansi"));
13
13
  const tool_renderers_1 = require("../tool-renderers");
14
14
  const xml_stream_parser_1 = require("../xml-stream-parser");
@@ -1,4 +1,4 @@
1
- import { AnalyticsEvent } from 'common/constants/analytics-events';
1
+ import { AnalyticsEvent } from '../common/constants/analytics-events';
2
2
  export declare let identified: boolean;
3
3
  export declare function initAnalytics(): void;
4
4
  export declare function flushAnalytics(): Promise<void>;
@@ -27,7 +27,7 @@ exports.logger = exports.loggerContext = void 0;
27
27
  const fs_1 = require("fs");
28
28
  const path_1 = __importStar(require("path"));
29
29
  const util_1 = require("util");
30
- const analytics_events_1 = require("common/constants/analytics-events");
30
+ const analytics_events_1 = require("../common/constants/analytics-events");
31
31
  const pino_1 = require("pino");
32
32
  const project_files_1 = require("../project-files");
33
33
  const analytics_1 = require("./analytics");
@@ -36,9 +36,9 @@ const fs = __importStar(require("fs"));
36
36
  const fs_1 = require("fs");
37
37
  const os = __importStar(require("os"));
38
38
  const path_1 = __importStar(require("path"));
39
- const analytics_events_1 = require("common/constants/analytics-events");
40
- const array_1 = require("common/util/array");
41
- const string_1 = require("common/util/string");
39
+ const analytics_events_1 = require("../common/constants/analytics-events");
40
+ const array_1 = require("../common/util/array");
41
+ const string_1 = require("../common/util/string");
42
42
  const picocolors_1 = require("picocolors");
43
43
  const background_process_manager_1 = require("../background-process-manager");
44
44
  const project_files_1 = require("../project-files");
@@ -1,4 +1,4 @@
1
- import { ToolName } from 'common/constants/tools';
1
+ import { ToolName } from '../common/constants/tools';
2
2
  /**
3
3
  * Interface for handling tool call rendering
4
4
  */
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toolRenderers = exports.defaultToolCallRenderer = void 0;
4
- const project_file_tree_1 = require("common/project-file-tree");
5
- const string_1 = require("common/util/string");
4
+ const project_file_tree_1 = require("../common/project-file-tree");
5
+ const string_1 = require("../common/util/string");
6
6
  const picocolors_1 = require("picocolors");
7
7
  const project_files_1 = require("../project-files");
8
8
  let toolStart = true;
@@ -1,4 +1,4 @@
1
- import { Saxy } from 'common/util/saxy';
1
+ import { Saxy } from '../common/util/saxy';
2
2
  import { ToolCallRenderer } from './tool-renderers';
3
3
  /**
4
4
  * Creates a transform stream that processes XML tool calls
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createXMLStreamParser = createXMLStreamParser;
4
- const tools_1 = require("common/constants/tools");
5
- const saxy_1 = require("common/util/saxy");
4
+ const tools_1 = require("../common/constants/tools");
5
+ const saxy_1 = require("../common/util/saxy");
6
6
  const tool_renderers_1 = require("./tool-renderers");
7
7
  /**
8
8
  * Creates a transform stream that processes XML tool calls
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.scrapeWebPage = scrapeWebPage;
4
4
  exports.parseUrlsFromContent = parseUrlsFromContent;
5
5
  exports.getScrapedContentBlocks = getScrapedContentBlocks;
6
- const string_1 = require("common/util/string");
6
+ const string_1 = require("./common/util/string");
7
7
  const logger_1 = require("./utils/logger");
8
8
  // Global cache for scraped web pages
9
9
  const scrapedPagesCache = {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const worker_threads_1 = require("worker_threads");
4
- const project_file_tree_1 = require("common/project-file-tree");
4
+ const project_file_tree_1 = require("../common/project-file-tree");
5
5
  const file_manager_1 = require("../checkpoints/file-manager");
6
6
  const project_files_1 = require("../project-files");
7
7
  if (worker_threads_1.parentPort) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebuff",
3
- "version": "1.0.311",
3
+ "version": "1.0.312",
4
4
  "description": "AI dev assistant",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",