(filePath: string)
| 78 | } |
| 79 | |
| 80 | function getRuleNameFromPath(filePath: string): string { |
| 81 | const segments = filePath.split(/[/\\]/); |
| 82 | const lastTwoParts = segments.slice(-2); |
| 83 | return lastTwoParts.filter(Boolean).join("/").replace(/\.md$/, ""); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Scan .continue/rules/ directories for markdown rule files and return the rules with metadata that should be always-applied |
no test coverage detected