resolveProjectPath method
Resolves projectPath against projectRoot (null → the default
<projectRoot>/.fah/memory).
Implementation
String resolveProjectPath(String projectRoot) {
final path = projectPath;
if (path == null || path.isEmpty) return '$projectRoot/.fah/memory';
if (path.startsWith('/')) return path;
final stripped = path.startsWith('./') ? path.substring(2) : path;
return '$projectRoot/$stripped';
}