detectImplicitFileReferences function
Detect if input is asking about a specific file.
Implementation
List<String> detectImplicitFileReferences(String input) {
final refs = <String>{};
for (final pattern in _implicitFilePatterns) {
for (final match in pattern.allMatches(input)) {
final ref = match.group(1);
if (ref != null && ref.isNotEmpty && _isPlausibleFilePath(ref)) {
refs.add(ref);
}
}
}
return refs.toList();
}