@codebolt/codeboltjs 2.0.6 → 2.0.7

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/index.d.ts CHANGED
@@ -151,9 +151,6 @@ declare class Codebolt {
151
151
  getMatcherList: () => Promise<import("@codebolt/types").GetMatcherListTreeResponse>;
152
152
  matchDetail: (matcher: string) => Promise<import("@codebolt/types").getMatchDetail>;
153
153
  };
154
- docutils: {
155
- pdf_to_text: (pdf_path: string) => Promise<string>;
156
- };
157
154
  crawler: {
158
155
  start: () => void;
159
156
  screenshot: () => void;
@@ -201,7 +198,11 @@ declare class Codebolt {
201
198
  parsed?: any;
202
199
  };
203
200
  parseCSV: (csvString: string) => {
204
- success: boolean;
201
+ success: boolean; /**
202
+ * @method waitForConnection
203
+ * @description Waits for the WebSocket connection to open.
204
+ * @returns {Promise<void>} A promise that resolves when the WebSocket connection is open.
205
+ */
205
206
  parsed?: any[] | undefined;
206
207
  error?: Error | undefined;
207
208
  };
@@ -216,7 +217,11 @@ declare class Codebolt {
216
217
  getProjectSettings: () => Promise<any>;
217
218
  getProjectPath: () => Promise<import("@codebolt/types").GetProjectPathResponse>;
218
219
  getRepoMap: (message: any) => Promise<import("@codebolt/types").GetProjectPathResponse>;
219
- runProject: () => void;
220
+ runProject: () => void; /**
221
+ * @method waitForConnection
222
+ * @description Waits for the WebSocket connection to open.
223
+ * @returns {Promise<void>} A promise that resolves when the WebSocket connection is open.
224
+ */
220
225
  getEditorFileStatus: () => Promise<any>;
221
226
  };
222
227
  dbmemory: {
package/dist/index.js CHANGED
@@ -10,7 +10,6 @@ const terminal_1 = __importDefault(require("./modules/terminal"));
10
10
  const browser_1 = __importDefault(require("./modules/browser"));
11
11
  const chat_1 = __importDefault(require("./modules/chat"));
12
12
  const codeutils_1 = __importDefault(require("./modules/codeutils"));
13
- const docutils_1 = __importDefault(require("./modules/docutils"));
14
13
  const crawler_1 = __importDefault(require("./modules/crawler"));
15
14
  const search_1 = __importDefault(require("./modules/search"));
16
15
  const knowledge_1 = __importDefault(require("./modules/knowledge"));
@@ -48,7 +47,6 @@ class Codebolt {
48
47
  this.chat = chat_1.default;
49
48
  this.terminal = terminal_1.default;
50
49
  this.codeutils = codeutils_1.default;
51
- this.docutils = docutils_1.default;
52
50
  this.crawler = crawler_1.default;
53
51
  this.search = search_1.default;
54
52
  this.knowledge = knowledge_1.default;
@@ -1,4 +1,4 @@
1
- declare const cbdocutils: {
1
+ declare const docutils: {
2
2
  /**
3
3
  * Converts a PDF document to text.
4
4
  * @param pdf_path - The file path to the PDF document to be converted.
@@ -6,4 +6,4 @@ declare const cbdocutils: {
6
6
  */
7
7
  pdf_to_text: (pdf_path: string) => Promise<string>;
8
8
  };
9
- export default cbdocutils;
9
+ export default docutils;
@@ -31,7 +31,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
31
  */
32
32
  const fs = __importStar(require("fs"));
33
33
  const pdf_parse_1 = __importDefault(require("pdf-parse"));
34
- const cbdocutils = {
34
+ const docutils = {
35
35
  /**
36
36
  * Converts a PDF document to text.
37
37
  * @param pdf_path - The file path to the PDF document to be converted.
@@ -66,4 +66,4 @@ const cbdocutils = {
66
66
  });
67
67
  }
68
68
  };
69
- exports.default = cbdocutils;
69
+ exports.default = docutils;
package/dist/utils.d.ts CHANGED
@@ -3,3 +3,4 @@ export { TaskInstruction } from './agentlib/taskInstruction';
3
3
  export { UserMessage } from './agentlib/usermessage';
4
4
  export { SystemPrompt } from './agentlib/systemprompt';
5
5
  export { Agent } from './agentlib/agent';
6
+ export { default as docutils } from './utils/docutils';
package/dist/utils.js CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Agent = exports.SystemPrompt = exports.UserMessage = exports.TaskInstruction = exports.ToolBox = void 0;
6
+ exports.docutils = exports.Agent = exports.SystemPrompt = exports.UserMessage = exports.TaskInstruction = exports.ToolBox = void 0;
4
7
  var toolBox_1 = require("./utils/toolBox");
5
8
  Object.defineProperty(exports, "ToolBox", { enumerable: true, get: function () { return toolBox_1.ToolBox; } });
6
9
  var taskInstruction_1 = require("./agentlib/taskInstruction");
@@ -11,3 +14,5 @@ var systemprompt_1 = require("./agentlib/systemprompt");
11
14
  Object.defineProperty(exports, "SystemPrompt", { enumerable: true, get: function () { return systemprompt_1.SystemPrompt; } });
12
15
  var agent_1 = require("./agentlib/agent");
13
16
  Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
17
+ var docutils_1 = require("./utils/docutils");
18
+ Object.defineProperty(exports, "docutils", { enumerable: true, get: function () { return __importDefault(docutils_1).default; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebolt/codeboltjs",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "",