From 45b764943ae9dd2d5f18ece0aaa13f84eaa4ad5c Mon Sep 17 00:00:00 2001 From: sangwook <73056306+Han5991@users.noreply.github.com> Date: Mon, 21 Jul 2025 08:16:42 +0900 Subject: feat: Make file type detection and binary checks asynchronous (#3286) (#3288) --- packages/core/src/tools/read-many-files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/core/src/tools/read-many-files.ts') diff --git a/packages/core/src/tools/read-many-files.ts b/packages/core/src/tools/read-many-files.ts index 7c3be6e3..7ea6c722 100644 --- a/packages/core/src/tools/read-many-files.ts +++ b/packages/core/src/tools/read-many-files.ts @@ -405,7 +405,7 @@ Use this tool when the user's query implies needing the content of several files .relative(this.config.getTargetDir(), filePath) .replace(/\\/g, '/'); - const fileType = detectFileType(filePath); + const fileType = await detectFileType(filePath); if (fileType === 'image' || fileType === 'pdf') { const fileExtension = path.extname(filePath).toLowerCase(); -- cgit v1.2.3