From 00a30ac2bbb8500e756e3b6027dd1b0c898112f6 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:44:45 +0000 Subject: [PATCH] fix: add proper TypeScript types to search_files handler --- src/filesystem/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filesystem/index.ts b/src/filesystem/index.ts index b1eaf6a7..ae0e06cc 100644 --- a/src/filesystem/index.ts +++ b/src/filesystem/index.ts @@ -167,9 +167,9 @@ const server = new Server( search_files: { description: "Recursively search for files/directories with optional exclude patterns", inputSchema: zodToJsonSchema(SearchFilesArgsSchema), - handler: async ({ path: searchPath, pattern, excludePatterns }) => { - const validatedPath = await validatePath(searchPath); - return searchFiles(validatedPath, pattern, excludePatterns); + handler: async (args: z.infer) => { + const validatedPath = await validatePath(args.path); + return searchFiles(validatedPath, args.pattern, args.excludePatterns); }, }, },