Back to Ruflo

claude-flow v2.7.25 Release Notes

v2/docs/V2.7.25_RELEASE_NOTES.md

3.6.307.0 KB
Original Source

claude-flow v2.7.25 Release Notes

Date: January 25, 2025 Version: 2.7.25 Status: āœ… Published to npm (alpha channel)


šŸŽ‰ Summary

This release integrates [email protected] which provides a clean, error-free npx experience for memory commands by detecting npx environments and gracefully using hash-based embeddings.

Key Changes

1. ✨ Clean NPX Experience (No More ONNX/WASM Errors)

What was fixed:

  • npx installations no longer show confusing ONNX/WASM initialization errors
  • Clean, professional output with helpful guidance

Before (v2.7.24):

bash
npx claude-flow@alpha memory store "test" "value"

[Embeddings] Initializing local embedding model...
Error: Attempt to use DefaultLogger but none has been registered.
Something went wrong during model construction. Using `wasm` as a fallback.
[Embeddings] Failed to initialize: no available backend found.
[Embeddings] Falling back to hash-based embeddings
āœ… Stored successfully

After (v2.7.25):

bash
npx claude-flow@alpha memory store "test" "value"

[Embeddings] NPX environment detected - using hash-based embeddings
[Embeddings] For semantic search, install globally: npm install -g claude-flow
āœ… Stored successfully

2. šŸš€ Updated to [email protected]

What's included:

  • NPX environment detection
  • Automatic hash-based embeddings fallback
  • Clean error-free initialization
  • Helpful user guidance

Benefits:

  • Professional user experience - No confusing error messages
  • Full functionality - All memory commands work perfectly
  • Clear upgrade path - Users know how to get semantic search
  • Zero breaking changes - Backward compatible

Installation

bash
npx claude-flow@alpha memory store "key" "value"
  • āœ… Works out of the box
  • āœ… Uses hash-based embeddings (text similarity)
  • āœ… No setup required

Global Installation (For Semantic Search)

bash
npm install -g claude-flow@alpha
claude-flow memory store "key" "value"
  • āœ… Full transformer model support
  • āœ… True semantic similarity (finds related concepts)
  • āœ… 384-dimensional embeddings with Xenova/all-MiniLM-L6-v2

Memory System Behavior

NPX Environment

  • Embeddings: Hash-based (deterministic, fast, offline)
  • Query matching: Text similarity (exact/partial matches)
  • Performance: Instant (no model loading)
  • Use case: Quick prototyping, simple key-value storage

Local Installation

  • Embeddings: Transformer-based (Xenova/all-MiniLM-L6-v2)
  • Query matching: Semantic similarity (finds related concepts)
  • Performance: 50-100ms per query (after model loads)
  • Use case: Production use, semantic search, RAG applications

Upgrade Guide

From v2.7.24

bash
# No changes required - fully backward compatible
npm install -g claude-flow@alpha

From v2.7.23 or earlier

  • All previous memory data preserved in .swarm/memory.db
  • No migration needed
  • Hash-based and transformer embeddings work with same database

Technical Details

Dependencies Updated

  • agentic-flow: ^1.8.7 → ^1.8.9

What's Under the Hood

NPX Detection Logic ([email protected]):

typescript
const isNpx = process.env.npm_config_user_agent?.includes('npx') ||
              process.cwd().includes('_npx') ||
              process.cwd().includes('npm/_npx');

if (isNpx && !process.env.FORCE_TRANSFORMERS) {
  console.log('[Embeddings] NPX environment detected - using hash-based embeddings');
  console.log('[Embeddings] For semantic search, install globally: npm install -g claude-flow');
  return false; // Skip transformer initialization
}

Result:

  • Clean initialization
  • No ONNX/WASM errors
  • Helpful user guidance
  • Full functionality maintained

Release Timeline

agentic-flow progression:

  • v1.8.6: Initial local embeddings with transformers.js
  • v1.8.7: Config file copying and WASM fixes
  • v1.8.8: WASM backend proxy configuration
  • v1.8.9: NPX environment detection (final clean solution) āœ…

claude-flow progression:

  • v2.7.21: SQLite + ReasoningBank integration
  • v2.7.22: Attempted postinstall log fix (didn't work for npx)
  • v2.7.23: Fixed yoctocolors-cjs dependency
  • v2.7.24: Local embeddings integration (had ONNX/WASM errors in npx)
  • v2.7.25: Clean npx experience with [email protected] āœ…

Testing

Verified Scenarios

1. NPX Installation (Clean Experience):

bash
npx claude-flow@alpha memory store "test" "Clean npx experience!"
# āœ… No errors, clean output, helpful guidance

npx claude-flow@alpha memory query "test"
# āœ… Works with hash-based embeddings

npx claude-flow@alpha memory list
# āœ… Shows all stored memories

2. Local Installation (Full Semantic Search):

bash
npm install -g claude-flow@alpha
claude-flow memory store "api-design" "REST with JWT auth"
# āœ… Transformer model loads successfully

claude-flow memory query "authentication patterns"
# āœ… Semantic search finds related concepts

3. Memory Persistence:

  • All data stored in .swarm/memory.db
  • Works across npx and local installations
  • No data loss during upgrades

Breaking Changes

None. This release is fully backward compatible.


Known Issues

None. All major issues from v2.7.24 have been resolved:

āœ… ONNX DefaultLogger error - Fixed (npx detection) āœ… WASM backend failure - Fixed (clean fallback) āœ… Confusing error messages - Fixed (helpful guidance) āœ… yoctocolors-cjs missing - Fixed (v2.7.23) āœ… "Enabled: false" log - Fixed (v2.7.22/[email protected])


Documentation

Related Docs:


Contributors

  • @rUv - Package maintainer
  • Community feedback - Testing and issue reporting

Next Steps

For Users:

  1. Try npx for quick testing: npx claude-flow@alpha memory store "test" "value"
  2. Install globally for semantic search: npm install -g claude-flow@alpha
  3. Report any issues on GitHub

For Developers:

  1. Monitor npm CDN propagation (5-10 minutes)
  2. Test in fresh Docker containers
  3. Update documentation examples


Conclusion

This release delivers on the promise of a clean, professional npx experience while maintaining full backward compatibility and optional semantic search for power users. The memory system now works beautifully in both npx and local installations with appropriate behavior for each environment.

Upgrade today for the best memory command experience! šŸš€