This commit is contained in:
2025-12-15 15:29:56 +00:00
parent 1556a9d3e9
commit a76bd0d3e4
6 changed files with 52 additions and 10 deletions

View File

@@ -158,9 +158,10 @@ export class DualAgentOrchestrator {
/**
* Register a scoped filesystem tool that can only access files within the specified directory
* @param basePath The directory to scope filesystem operations to
* @param excludePatterns Optional glob patterns to exclude from listings (e.g., ['.nogit/**', 'node_modules/**'])
*/
public registerScopedFilesystemTool(basePath: string): void {
const scopedTool = new FilesystemTool({ basePath });
public registerScopedFilesystemTool(basePath: string, excludePatterns?: string[]): void {
const scopedTool = new FilesystemTool({ basePath, excludePatterns });
this.registerTool(scopedTool);
}