claude-flow 3.6.1 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "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",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -20,9 +20,16 @@ function getPackageVersion() {
20
20
  try {
21
21
  const __filename = fileURLToPath(import.meta.url);
22
22
  const __dirname = dirname(__filename);
23
- const pkgPath = join(__dirname, '..', '..', 'package.json');
24
- const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
25
- return pkg.version || '3.0.0';
23
+ for (const depth of ['../..', '../../..']) {
24
+ const pkgPath = join(__dirname, depth, 'package.json');
25
+ if (existsSync(pkgPath)) {
26
+ const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
27
+ if (pkg.name?.includes('claude-flow') || pkg.name === 'ruflo') {
28
+ return pkg.version || '3.0.0';
29
+ }
30
+ }
31
+ }
32
+ return '3.0.0';
26
33
  }
27
34
  catch {
28
35
  return '3.0.0';
@@ -22,6 +22,8 @@
22
22
  */
23
23
  import { readFileSync } from 'node:fs';
24
24
  import { createRequire } from 'node:module';
25
+ // WASM binary requires at least 768-dim input for MicroLoRA adapt()
26
+ const MICROLORA_WASM_MIN_DIM = 768;
25
27
  // ── WASM Module Detection & Init ─────────────────────────────
26
28
  let _wasmReady = false;
27
29
  /**
@@ -188,7 +190,6 @@ export async function createMicroLora(config) {
188
190
  return lora.apply(input);
189
191
  },
190
192
  adapt(quality, learningRate = 0.01, success = true) {
191
- // v2.0.2: adapt(input, feedback) — two args
192
193
  const feedback = new mod.AdaptFeedbackWasm();
193
194
  feedback.quality = quality;
194
195
  feedback.learningRate = learningRate;
@@ -196,17 +197,8 @@ export async function createMicroLora(config) {
196
197
  feedback.success = success;
197
198
  }
198
199
  catch { /* v2.0.2 quirk */ }
199
- const input = new Float32Array(config.inputDim);
200
- try {
201
- lora.adapt(input, feedback);
202
- }
203
- catch (e) {
204
- if (e?.message?.includes('Input size mismatch')) {
205
- throw new Error(`MicroLoRA adapt failed: WASM expects inputDim=768 but this adapter was created with inputDim=${config.inputDim}. ` +
206
- `Recreate with inputDim=768 or a multiple of 768.`);
207
- }
208
- throw e;
209
- }
200
+ const input = new Float32Array(Math.max(config.inputDim, MICROLORA_WASM_MIN_DIM));
201
+ lora.adapt(input, feedback);
210
202
  },
211
203
  applyUpdates(gradients) {
212
204
  lora.applyUpdates(gradients);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",