Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv5fe251c5c5d8
diff --git a/v3/@claude-flow/memory/src/learning-bridge.ts b/v3/@claude-flow/memory/src/learning-bridge.ts
index fe9bd5baee..e0f3076f46 100644
--- a/v3/@claude-flow/memory/src/learning-bridge.ts
+++ b/v3/@claude-flow/memory/src/learning-bridge.ts
@@ -15,6 +15,12 @@ import type { MemoryInsight, InsightCategory } from './auto-memory-bridge.js';
// ===== Types =====
+/**
+ * Factory function that returns a neural system instance.
+ * Used for dependency injection so tests can supply a mock.
+ */
+export type NeuralLoader = () => Promise<any>;
+
/** Configuration for the LearningBridge */
export interface LearningBridgeConfig {
/** SONA operating mode (default: 'balanced') */
@@ -33,6 +39,12 @@ export interface LearningBridgeConfig {
consolidationThreshold?: number;
/** Enable the bridge (default: true). When false all methods are no-ops */
enabled?: boolean;
+ /**
+ * Optional factory for the neural learning system.
+ * When provided, this replaces the default dynamic import of @claude-flow/neural.
+ * Primarily used for testing.
+ */
+ neuralLoader?: NeuralLoader;
}
/** Aggregated learning statistics */