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-14T00:04:52Z - 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
f61abd27ce
commit
8efaf533d8
1 file changed
+6
-2
@@ -48,8 +48,12 @@ async function getAIDefence(): Promise<AIDefenceInstance> {
|
||||
// First attempt - try to load
|
||||
try {
|
||||
const aidefence = require(packageName);
|
||||
aidefenceInstance = aidefence.createAIDefence({ enableLearning: true });
|
||||
return aidefenceInstance;
|
||||
const instance = aidefence.createAIDefence({ enableLearning: true });
|
||||
if (!instance) {
|
||||
throw new Error('createAIDefence returned null');
|
||||
}
|
||||
aidefenceInstance = instance;
|
||||
return instance;
|
||||
} catch {
|
||||
// Package not found, continue to auto-install
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user