From 9aab27d4e8680e14cfb4e01a6e1958964db85309 Mon Sep 17 00:00:00 2001 From: rUv Date: Wed, 7 Jan 2026 05:53:03 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T05:53:03Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/ruvector/ast-analyzer.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/v3/@claude-flow/cli/src/ruvector/ast-analyzer.ts b/v3/@claude-flow/cli/src/ruvector/ast-analyzer.ts index aa966f5879..e411023d57 100644 --- a/v3/@claude-flow/cli/src/ruvector/ast-analyzer.ts +++ b/v3/@claude-flow/cli/src/ruvector/ast-analyzer.ts @@ -70,9 +70,12 @@ export class ASTAnalyzer { async initialize(): Promise { try { - const ruvector = await import('@ruvector/ast'); - this.ruvectorEngine = (ruvector as any).createASTAnalyzer?.(this.config); - this.useNative = !!this.ruvectorEngine; + // @ruvector/ast is optional - gracefully fallback if not installed + const ruvector = await import('@ruvector/ast' as string).catch(() => null); + if (ruvector) { + this.ruvectorEngine = (ruvector as any).createASTAnalyzer?.(this.config); + this.useNative = !!this.ruvectorEngine; + } } catch { this.useNative = false; }