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:
rUvandClaude Opus 4.5 committed 2026-01-14 00:04:52 +00:00
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
}