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

rUvf13a944cf5fd
diff --git a/v3/@claude-flow/cli/src/commands/embeddings.ts b/v3/@claude-flow/cli/src/commands/embeddings.ts
index 611f929cfb..9494091863 100644
--- a/v3/@claude-flow/cli/src/commands/embeddings.ts
+++ b/v3/@claude-flow/cli/src/commands/embeddings.ts
@@ -912,11 +912,12 @@ const hyperbolicCommand: Command = {
return { success: false, exitCode: 1 };
}
const vectors = input as number[][];
- const centroid = hyperbolic.hyperbolicCentroid(vectors, { curvature });
+ const rawCentroid = hyperbolic.hyperbolicCentroid(vectors, { curvature });
+ const centroid = Array.from(rawCentroid);
output.writeln(output.success('Hyperbolic centroid (Fréchet mean):'));
output.writeln();
output.writeln(`Input vectors: ${vectors.length}`);
- output.writeln(`Centroid: [${centroid.slice(0, 6).map((v: number) => v.toFixed(4)).join(', ')}${centroid.length > 6 ? ', ...' : ''}]`);
+ output.writeln(`Centroid: [${centroid.slice(0, 6).map(v => v.toFixed(4)).join(', ')}${centroid.length > 6 ? ', ...' : ''}]`);
return { success: true, data: { centroid } };
}