Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUvbfef09d55e08
diff --git a/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts b/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
index 3de4017581..ccf277c829 100644
--- a/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
+++ b/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
@@ -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;