Creating Node AST Tool. (#756)

This commit is contained in:
matt korwel
2025-06-07 12:07:58 -07:00
committed by GitHub
parent 28ff62e7b1
commit f1a4e5d4d3
6 changed files with 1348 additions and 1 deletions

View File

@@ -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;