Skip to content

Commit 1893e57

Browse files
committed
updated the utils
1 parent 3addb6f commit 1893e57

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import cbterminal from './modules/terminal';
55
import cbbrowser from './modules/browser';
66
import cbchat from './modules/chat';
77
import cbcodeutils from './modules/codeutils';
8-
import cbdocutils from './modules/docutils';
98
import cbcrawler from './modules/crawler';
109
import cbsearch from './modules/search';
1110
import cbknowledge from './modules/knowledge';
@@ -82,7 +81,6 @@ class Codebolt {
8281
chat = cbchat;
8382
terminal = cbterminal;
8483
codeutils = cbcodeutils;
85-
docutils = cbdocutils;
8684
crawler = cbcrawler;
8785
search = cbsearch;
8886
knowledge = cbknowledge;

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export { TaskInstruction } from './agentlib/taskInstruction';
33
export { UserMessage } from './agentlib/usermessage';
44
export { SystemPrompt } from './agentlib/systemprompt';
55
export { Agent } from './agentlib/agent';
6+
export { default as docutils } from './utils/docutils';

src/modules/docutils.ts renamed to src/utils/docutils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from 'fs';
55
import * as path from 'path';
66
import pdfParse from 'pdf-parse';
77

8-
const cbdocutils = {
8+
const docutils = {
99
/**
1010
* Converts a PDF document to text.
1111
* @param pdf_path - The file path to the PDF document to be converted.
@@ -41,4 +41,4 @@ const cbdocutils = {
4141
}
4242
};
4343

44-
export default cbdocutils;
44+
export default docutils;

0 commit comments

Comments
 (0)