mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 19:07:26 +00:00
fix: improve code-size gate output and duplicate detection, fix Windows path in source-display
This commit is contained in:
@@ -23,7 +23,8 @@ function tryRelative(root: string, filePath: string): string | null {
|
||||
if (path.isAbsolute(rel)) {
|
||||
return null;
|
||||
}
|
||||
return rel;
|
||||
// Normalize to forward slashes for display (path.relative uses backslashes on Windows)
|
||||
return rel.replaceAll("\\", "/");
|
||||
}
|
||||
|
||||
export function resolvePluginSourceRoots(params: { workspaceDir?: string }): PluginSourceRoots {
|
||||
|
||||
Reference in New Issue
Block a user