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

fix: microlora adapt auto-pads to 768-dim, system_info reads real version (v3.6.2)

Reuven01c764f6fb54
diff --git a/package-lock.json b/package-lock.json
index 2675db7132..a13aaa6d41 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "claude-flow",
- "version": "3.6.1",
+ "version": "3.6.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-flow",
- "version": "3.6.1",
+ "version": "3.6.2",
"license": "MIT",
"dependencies": {
"semver": "^7.6.0",
diff --git a/package.json b/package.json
index d3f2e7b304..8db515c23d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "3.6.1",
+ "version": "3.6.2",
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "dist/index.js",
"type": "module",
diff --git a/ruflo/package.json b/ruflo/package.json
index 2a3f4081f0..7b306e32dd 100644
--- a/ruflo/package.json
+++ b/ruflo/package.json
@@ -1,6 +1,6 @@
{
"name": "ruflo",
- "version": "3.6.1",
+ "version": "3.6.2",
"description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "bin/ruflo.js",
"type": "module",
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index 32fcacdac9..cc09891e5f 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.6.1",
+ "version": "3.6.2",
"type": "module",
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
"main": "dist/src/index.js",
diff --git a/v3/@claude-flow/cli/src/mcp-tools/system-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/system-tools.ts
index 016406a5ee..726bd62f57 100644
--- a/v3/@claude-flow/cli/src/mcp-tools/system-tools.ts
+++ b/v3/@claude-flow/cli/src/mcp-tools/system-tools.ts
@@ -22,9 +22,16 @@ function getPackageVersion(): string {
try {
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
- const pkgPath = join(__dirname, '..', '..', 'package.json');
- const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
- return pkg.version || '3.0.0';
+ for (const depth of ['../..', '../../..']) {
+ const pkgPath = join(__dirname, depth, 'package.json');
+ if (existsSync(pkgPath)) {
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
+ if (pkg.name?.includes('claude-flow') || pkg.name === 'ruflo') {
+ return pkg.version || '3.0.0';
+ }
+ }
+ }
+ return '3.0.0';
} catch {
return '3.0.0';
}
diff --git a/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts b/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts
index c28cfa88be..6a2906450b 100644
--- a/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts
+++ b/v3/@claude-flow/cli/src/ruvector/ruvllm-wasm.ts
@@ -24,6 +24,9 @@
import { readFileSync } from 'node:fs';
import { createRequire } from 'node:module';
+// WASM binary requires at least 768-dim input for MicroLoRA adapt()
+const MICROLORA_WASM_MIN_DIM = 768;
+
// ── Types ────────────────────────────────────────────────────
export interface HnswRouterConfig {
@@ -278,23 +281,12 @@ export async function createMicroLora(config: MicroLoraConfig): Promise<{
return lora.apply(input);
},
adapt(quality: number, learningRate = 0.01, success = true): void {
- // v2.0.2: adapt(input, feedback) β€” two args
const feedback = new mod.AdaptFeedbackWasm();
feedback.quality = quality;
feedback.learningRate = learningRate;
try { (feedback as any).success = success; } catch { /* v2.0.2 quirk */ }
- const input = new Float32Array(config.inputDim);
- try {
- lora.adapt(input, feedback);
- } catch (e: any) {
- if (e?.message?.includes('Input size mismatch')) {
- throw new Error(
- `MicroLoRA adapt failed: WASM expects inputDim=768 but this adapter was created with inputDim=${config.inputDim}. ` +
- `Recreate with inputDim=768 or a multiple of 768.`
- );
- }
- throw e;
- }
+ const input = new Float32Array(Math.max(config.inputDim, MICROLORA_WASM_MIN_DIM));
+ lora.adapt(input, feedback);
},
applyUpdates(gradients: Float32Array): void {
lora.applyUpdates(gradients);
diff --git a/v3/package-lock.json b/v3/package-lock.json
index 8b66c73131..b23d86024a 100644
--- a/v3/package-lock.json
+++ b/v3/package-lock.json
@@ -1789,7 +1789,7 @@
}
},
"@claude-flow/cli": {
- "version": "3.6.1",
+ "version": "3.6.2",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {