From a72cb1c47cdf351ae74c445559b3a7c5dc97522d Mon Sep 17 00:00:00 2001 From: Ian Dolge Date: Wed, 5 Mar 2025 17:50:44 -0800 Subject: [PATCH] Filter for files ending with .prompt in global Prompt Files --- core/util/paths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util/paths.ts b/core/util/paths.ts index bd5a69e1a..31ed8bb02 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -368,7 +368,7 @@ export function readAllGlobalPromptFiles( if (stats.isDirectory()) { const nestedPromptFiles = readAllGlobalPromptFiles(filepath); promptFiles.push(...nestedPromptFiles); - } else { + } else if (file.endsWith(".prompt")) { const content = fs.readFileSync(filepath, "utf8"); promptFiles.push({ path: filepath, content }); }