mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T15:04:09Z - 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
e67bab7375
commit
517f23c26d
1 file changed
+11
-1
@@ -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[] = [];
|
||||
|
||||
Reference in new issue
Block a user