pub fn cmd_patterns_in(dir: &Path) -> i32
List learned pattern files from the given directory.
Extracted for testability — callers pass in the resolved patterns dir.