mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
refactor: hide import cycle graph helpers
This commit is contained in:
@@ -11,7 +11,7 @@ export function normalizeRepoPath(filePath: string, repoRoot: string): string {
|
||||
return path.relative(repoRoot, filePath).split(path.sep).join("/");
|
||||
}
|
||||
|
||||
export function cycleSignature(files: readonly string[]): string {
|
||||
function cycleSignature(files: readonly string[]): string {
|
||||
return files.toSorted((left, right) => left.localeCompare(right)).join("\n");
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ export function collectStronglyConnectedComponents(
|
||||
);
|
||||
}
|
||||
|
||||
export function findCycleWitness(
|
||||
function findCycleWitness(
|
||||
component: readonly string[],
|
||||
graph: ReadonlyMap<string, readonly string[]>,
|
||||
): string[] {
|
||||
|
||||
Reference in New Issue
Block a user