(filePath: string)
| 30 | * - Pattern: *.knowledge.md (e.g., authentication.knowledge.md) |
| 31 | */ |
| 32 | export function isKnowledgeFile(filePath: string): boolean { |
| 33 | const fileName = path.basename(filePath).toLowerCase() |
| 34 | |
| 35 | // Check for exact matches with standard knowledge file names |
| 36 | if (KNOWLEDGE_FILE_NAMES_LOWERCASE.includes(fileName)) { |
| 37 | return true |
| 38 | } |
| 39 | |
| 40 | // Check for *.knowledge.md pattern (e.g., authentication.knowledge.md) |
| 41 | if (fileName.endsWith('.knowledge.md')) { |
| 42 | return true |
| 43 | } |
| 44 | |
| 45 | return false |
| 46 | } |
no outgoing calls
no test coverage detected