mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
@@ -9,6 +9,7 @@ import { GlobTool } from './tools/glob.tool.js';
|
||||
import { EditTool } from './tools/edit.tool.js';
|
||||
import { TerminalTool } from './tools/terminal.tool.js';
|
||||
import { WriteFileTool } from './tools/write-file.tool.js';
|
||||
import { WebFetchTool } from './tools/web-fetch.tool.js';
|
||||
import { globalConfig } from './config/config.js';
|
||||
|
||||
async function main() {
|
||||
@@ -77,6 +78,7 @@ function registerTools(targetDir: string) {
|
||||
const editTool = new EditTool(targetDir);
|
||||
const terminalTool = new TerminalTool(targetDir);
|
||||
const writeFileTool = new WriteFileTool(targetDir);
|
||||
const webFetchTool = new WebFetchTool();
|
||||
|
||||
toolRegistry.registerTool(lsTool);
|
||||
toolRegistry.registerTool(readFileTool);
|
||||
@@ -85,4 +87,5 @@ function registerTools(targetDir: string) {
|
||||
toolRegistry.registerTool(editTool);
|
||||
toolRegistry.registerTool(terminalTool);
|
||||
toolRegistry.registerTool(writeFileTool);
|
||||
toolRegistry.registerTool(webFetchTool);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user