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:
rUvandClaude Opus 4.5 committed 2026-01-07 15:04:09 +00:00
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[] = [];