mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
a55c2da14d
commit
9aab27d4e8
1 file changed
+6
-3
@@ -70,9 +70,12 @@ export class ASTAnalyzer {
|
||||
|
||||
async initialize(): Promise<void> {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user