Merge pull request #4505 from iandolge/iandolge/filter-common-prompt-files

Filter for files ending with .prompt in global Prompt Files
This commit is contained in:
Dallin Romney 2025-03-07 09:56:39 -08:00 • committed by GitHub
commit 56a942d87b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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