Skip to content

Commit ac6b4e3

Browse files
2 parents 9b2d949 + 76a52af commit ac6b4e3

22 files changed

+2
-1191
lines changed

bkp/toolBox.bkp.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const imageContent = async (
7373
}
7474
const { fileTypeFromBuffer } = await loadEsm('file-type');
7575
const mimeType = await fileTypeFromBuffer(rawData);
76-
console.log(mimeType);
7776

7877
const base64Data = rawData.toString("base64");
7978

@@ -1074,7 +1073,6 @@ export class ToolBox extends FastMCPEventEmitter {
10741073
) {
10751074
if (options.transportType === "stdio") {
10761075
const transport = new StdioServerTransport();
1077-
// console.log("tools", this.#tools);
10781076

10791077
const session = new FastMCPSession({
10801078
name: this.#options.name,
@@ -1084,7 +1082,6 @@ export class ToolBox extends FastMCPEventEmitter {
10841082
resourcesTemplates: this.#resourcesTemplates,
10851083
prompts: this.#prompts,
10861084
});
1087-
// console.log("session", session);
10881085
await session.connect(transport);
10891086

10901087
this.#sessions.push(session);

modules/agentlib/agent.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,8 @@ class Agent {
102102
else {
103103
let [serverName] = toolName.replace('--', ':').split(':');
104104
if (serverName == 'subagent') {
105-
console.log("calling agent with params", toolName, toolInput);
106105
const agentResponse = await agent_1.default.startAgent(toolName.replace("subagent--", ''), toolInput.task);
107-
console.log("got sub agent resonse result", agentResponse);
108106
const [didUserReject, result] = [false, "tool result is successful"];
109-
console.log("got sub agent resonse result", didUserReject, result);
110107
let toolResult = this.getToolResult(toolUseId, result);
111108
toolResults.push({
112109
role: "tool",
@@ -124,9 +121,7 @@ class Agent {
124121
}
125122
}
126123
else {
127-
console.log("calling tool with params", toolName, toolInput);
128124
const [didUserReject, result] = await this.executeTool(toolName, toolInput);
129-
console.log("tool result", result);
130125
// toolResults.push(this.getToolResult(toolUseId, result));
131126
let toolResult = this.getToolResult(toolUseId, result);
132127
toolResults.push({
@@ -242,7 +237,6 @@ class Agent {
242237
return completion;
243238
}
244239
catch (error) {
245-
console.log(error);
246240
return this.attemptApiRequest();
247241
}
248242
}

modules/chat.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const cbchat = {
7979
const response = JSON.parse(data);
8080
if (response.type === "messageResponse") {
8181
eventEmitter.emit("userMessage", response, (message) => {
82-
console.log("Callback function invoked with message:", message);
8382
websocket_1.default.getWebsocket.send(JSON.stringify({
8483
"type": "processStoped",
8584
"message": message
@@ -100,7 +99,6 @@ const cbchat = {
10099
* @param {string} message - The message to be sent.
101100
*/
102101
sendMessage: (message, payload) => {
103-
console.log(message);
104102
websocket_1.default.getWebsocket.send(JSON.stringify({
105103
"type": "sendMessage",
106104
"message": message,
@@ -138,7 +136,6 @@ const cbchat = {
138136
// Register event listener for WebSocket messages
139137
websocket_1.default.getWebsocket.on('message', (data) => {
140138
const message = JSON.parse(data);
141-
console.log("Received message:", message);
142139
if (message.type === 'stopProcessClicked')
143140
// Emit a custom event based on the message type
144141
eventEmitter.emit("stopProcessClicked", message);
@@ -148,7 +145,6 @@ const cbchat = {
148145
event: eventEmitter,
149146
stopProcess: () => {
150147
// Implement the logic to stop the process here
151-
console.log("Stopping process...");
152148
// For example, you might want to send a specific message to the server to stop the process
153149
websocket_1.default.getWebsocket.send(JSON.stringify({
154150
"type": "processStoped"
@@ -162,7 +158,6 @@ const cbchat = {
162158
*/
163159
stopProcess: () => {
164160
// Implement the logic to stop the process here
165-
console.log("Stopping process...");
166161
// For example, you might want to send a specific message to the server to stop the process
167162
websocket_1.default.getWebsocket.send(JSON.stringify({
168163
"type": "processStoped"
@@ -174,7 +169,6 @@ const cbchat = {
174169
*/
175170
processFinished: () => {
176171
// Implement the logic to stop the process here
177-
console.log("Process Finished ...");
178172
// For example, you might want to send a specific message to the server to stop the process
179173
websocket_1.default.getWebsocket.send(JSON.stringify({
180174
"type": "processFinished"

modules/codeparsers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const cbcodeparsers = {
99
* @param file The file to parse for classes.
1010
*/
1111
getClassesInFile: (file) => {
12-
console.log('Code parsers initialized');
1312
},
1413
/**
1514
* Retrieves the functions in a given class within a file.
1615
* @param file The file containing the class.
1716
* @param className The name of the class to parse for functions.
1817
*/
1918
getFunctionsinClass: (file, className) => {
20-
console.log('Code parsers initialized');
2119
},
2220
/**
2321
* Generates an Abstract Syntax Tree (AST) for a given file.

modules/codeutils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ const cbcodeutils = {
6868
}
6969
else if (path_1.default.extname(file.name) === '.js') {
7070
const code = fs.readFileSync(path_1.default.join(directory, file.name), 'utf-8');
71-
console.log(code);
7271
let tree = parser.parse(code);
7372
tree.rootNode.path = path_1.default.join(directory, file.name); // Set file path for t
7473
trees.push(tree);

modules/mcp.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

modules/mcp.js

Lines changed: 0 additions & 148 deletions
This file was deleted.

modules/rag.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const cbrag = {
88
* Initializes the CodeBolt File System Module.
99
*/
1010
init: () => {
11-
console.log("Initializing CodeBolt File System Module");
1211
},
1312
/**
1413
* Adds a file to the CodeBolt File System.

modules/search.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const cbsearch = {
99
* @param {string} [engine="bing"] - The search engine to use for initializing the module.
1010
*/
1111
init: (engine = "bing") => {
12-
console.log("Initializing Search Module with engine: " + engine);
1312
},
1413
/**
1514
* Performs a search operation for the given query.
1615
* @param {string} query - The search query.
1716
* @returns {Promise<string>} A promise that resolves with the search results.
1817
*/
1918
search: async (query) => {
20-
console.log("Searching for " + query);
2119
return new Promise((resolve, reject) => {
2220
resolve("Search Results for " + query);
2321
});
@@ -28,7 +26,6 @@ const cbsearch = {
2826
* @returns {Promise<string>} A promise that resolves with the first link of the search results.
2927
*/
3028
get_first_link: async (query) => {
31-
console.log("Getting first link for " + query);
3229
return new Promise((resolve, reject) => {
3330
resolve("First Link for " + query);
3431
});

modules/terminal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const cbterminal = {
9696
// Register event listener for WebSocket messages
9797
websocket_1.default.getWebsocket.on('message', (data) => {
9898
const response = JSON.parse(data);
99-
console.log("Received message:", response);
10099
if (response.type === "commandOutput" || response.type === "commandError" || response.type === "commandFinish") {
101100
this.eventEmitter.emit(response.type, response);
102101
}

0 commit comments

Comments
 (0)