mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Creating Node AST Tool. (#756)
This commit is contained in:
@@ -10,6 +10,7 @@ import * as path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import * as os from 'node:os';
|
||||
import { ToolRegistry } from '../tools/tool-registry.js';
|
||||
import { CodeParserTool } from '../tools/code_parser.js'; // Added CodeParserTool
|
||||
import { LSTool } from '../tools/ls.js';
|
||||
import { ReadFileTool } from '../tools/read-file.js';
|
||||
import { GrepTool } from '../tools/grep.js';
|
||||
@@ -355,6 +356,7 @@ export function createToolRegistry(config: Config): Promise<ToolRegistry> {
|
||||
registerCoreTool(ShellTool, config);
|
||||
registerCoreTool(MemoryTool);
|
||||
registerCoreTool(WebSearchTool, config);
|
||||
registerCoreTool(CodeParserTool, targetDir, config); // Added CodeParserTool
|
||||
return (async () => {
|
||||
await registry.discoverTools();
|
||||
return registry;
|
||||
|
||||
Reference in New Issue
Block a user