mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T15:04:24Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bdd230cc77
commit
bfef09d55e
1 file changed
+12
-2
@@ -1026,7 +1026,7 @@ function findCommonPrefix(strings: string[]): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* Full graph analysis
|
||||
* Full graph analysis (with caching)
|
||||
*/
|
||||
export async function analyzeGraph(
|
||||
rootDir: string,
|
||||
@@ -1034,9 +1034,19 @@ export async function analyzeGraph(
|
||||
includeBoundaries?: boolean;
|
||||
includeModules?: boolean;
|
||||
numPartitions?: number;
|
||||
skipCache?: boolean;
|
||||
} = {}
|
||||
): Promise<GraphAnalysisResult> {
|
||||
const graph = await buildDependencyGraph(rootDir);
|
||||
// Check cache first
|
||||
const cacheKey = `analysis:${rootDir}:${JSON.stringify(options)}`;
|
||||
if (!options.skipCache) {
|
||||
const cached = analysisResultCache.get(cacheKey);
|
||||
if (cached && Date.now() - cached.timestamp < ANALYSIS_CACHE_TTL_MS) {
|
||||
return cached.result;
|
||||
}
|
||||
}
|
||||
|
||||
const graph = await buildDependencyGraph(rootDir, { skipCache: options.skipCache });
|
||||
|
||||
// Calculate statistics
|
||||
const nodeCount = graph.nodes.size;
|
||||
|
||||
Reference in new issue
Block a user