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

rUv517f23c26d7a
diff --git a/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts b/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
index d31a48d03e..7243582aef 100644
--- a/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
+++ b/v3/@claude-flow/cli/src/ruvector/graph-analyzer.ts
@@ -320,7 +320,7 @@ function resolveImportPath(importPath: string, fromFile: string, rootDir: string
// ============================================================================
/**
- * Build dependency graph from source directory
+ * Build dependency graph from source directory (with caching)
*/
export async function buildDependencyGraph(
rootDir: string,
@@ -328,8 +328,18 @@ export async function buildDependencyGraph(
include?: string[];
exclude?: string[];
maxDepth?: number;
+ skipCache?: boolean;
} = {}
): Promise<DependencyGraph> {
+ // Check cache first
+ const cacheKey = `${rootDir}:${JSON.stringify(options)}`;
+ if (!options.skipCache) {
+ const cached = graphCache.get(cacheKey);
+ if (cached && Date.now() - cached.timestamp < GRAPH_CACHE_TTL_MS) {
+ return cached.graph;
+ }
+ }
+
const startTime = Date.now();
const nodes = new Map<string, GraphNode>();
const edges: GraphEdge[] = [];