(dir: string)
| 667 | } |
| 668 | |
| 669 | function getProjectInstructionFilesLowToHigh(dir: string): string[] { |
| 670 | const fs = getFsImplementation() |
| 671 | const canonicalAgentsPath = join(dir, 'AGENTS.md') |
| 672 | const hasCanonicalAgents = fs.existsSync(canonicalAgentsPath) |
| 673 | |
| 674 | return dedupeInstructionPaths([ |
| 675 | ...(hasCanonicalAgents ? [] : [join(dir, 'CLAUDE.md')]), |
| 676 | join(dir, '.claude', 'CLAUDE.md'), |
| 677 | join(dir, 'NCODE.md'), |
| 678 | join(dir, '.ncode', 'NCODE.md'), |
| 679 | canonicalAgentsPath, |
| 680 | ]) |
| 681 | } |
| 682 | |
| 683 | function getProjectInstructionRuleDirsLowToHigh(dir: string): string[] { |
| 684 | return dedupeInstructionPaths([ |
no test coverage detected