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

rUv2ae3bf71a1d1
diff --git a/v3/@claude-flow/embeddings/src/hyperbolic.ts b/v3/@claude-flow/embeddings/src/hyperbolic.ts
index 152157d640..1746b83769 100644
--- a/v3/@claude-flow/embeddings/src/hyperbolic.ts
+++ b/v3/@claude-flow/embeddings/src/hyperbolic.ts
@@ -288,7 +288,11 @@ export function hyperbolicCentroid(
throw new Error('Need at least one point');
}
if (points.length === 1) {
- return new Float32Array(points[0]);
+ const arr = new Float32Array(points[0].length);
+ for (let i = 0; i < points[0].length; i++) {
+ arr[i] = points[0][i];
+ }
+ return arr;
}
const { epsilon } = { ...DEFAULT_CONFIG, ...config };