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

rUv21040a19b12a
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index 59397b7701..d6598a47f3 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@claude-flow/cli",
- "version": "3.0.0-alpha.11",
+ "version": "3.0.0-alpha.12",
"type": "module",
"description": "CLI module - command parsing, prompts, output formatting",
"main": "dist/index.js",
diff --git a/v3/@claude-flow/embeddings/src/hyperbolic.ts b/v3/@claude-flow/embeddings/src/hyperbolic.ts
index b2b85e5c9f..93ed134dc1 100644
--- a/v3/@claude-flow/embeddings/src/hyperbolic.ts
+++ b/v3/@claude-flow/embeddings/src/hyperbolic.ts
@@ -169,8 +169,12 @@ export function hyperbolicDistance(
}
// ||a||^2 and ||b||^2
- const normASq = a.reduce((sum, v) => sum + v * v, 0);
- const normBSq = b.reduce((sum, v) => sum + v * v, 0);
+ let normASq = 0;
+ let normBSq = 0;
+ for (let i = 0; i < a.length; i++) {
+ normASq += a[i] * a[i];
+ normBSq += b[i] * b[i];
+ }
// Poincaré distance formula:
// d(a, b) = (1/sqrt(c)) * arcosh(1 + 2c * ||a-b||^2 / ((1 - c*||a||^2)(1 - c*||b||^2)))