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

rUv2e79526c1fef
diff --git a/v3/@claude-flow/embeddings/src/embedding-service.ts b/v3/@claude-flow/embeddings/src/embedding-service.ts
index 786a219f7f..32ffb47b13 100644
--- a/v3/@claude-flow/embeddings/src/embedding-service.ts
+++ b/v3/@claude-flow/embeddings/src/embedding-service.ts
@@ -432,10 +432,17 @@ export class MockEmbeddingService extends BaseEmbeddingService {
private readonly dimensions: number;
private readonly simulatedLatency: number;
- constructor(config: MockEmbeddingConfig) {
- super(config);
- this.dimensions = config.dimensions ?? 384;
- this.simulatedLatency = config.simulatedLatency ?? 0;
+ constructor(config: Partial<MockEmbeddingConfig> = {}) {
+ const fullConfig: MockEmbeddingConfig = {
+ provider: 'mock',
+ dimensions: config.dimensions ?? 384,
+ cacheSize: config.cacheSize ?? 1000,
+ simulatedLatency: config.simulatedLatency ?? 0,
+ enableCache: config.enableCache ?? true,
+ };
+ super(fullConfig);
+ this.dimensions = fullConfig.dimensions!;
+ this.simulatedLatency = fullConfig.simulatedLatency!;
}
async embed(text: string): Promise<EmbeddingResult> {