mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Creating Node AST Tool. (#756)
This commit is contained in:
parent
28ff62e7b1
commit
f1a4e5d4d3
6 changed files with 1348 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue