mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Critical fixes for semantic search returning 0 results:
1. **Stale Compiled Code**: Rebuilt dist-cjs/ with latest Node.js backend
- Was using old WASM adapter code
- Now uses agentic-flow@1.5.13 Node.js backend with SQLite
2. **Result Mapping Bug** (src/reasoningbank/reasoningbank-adapter.js:148-161)
- retrieveMemories() returns flat structure {id, title, content}
- Adapter expected nested {id, pattern_data: {...}}
- Fixed to map title → key, content → value directly
3. **Parameter Mismatch** (src/reasoningbank/reasoningbank-adapter.js:138)
- CLI passes 'domain' but adapter only checked 'namespace'
- Now accepts both parameter names for compatibility
Testing Results:
- ✅ Query returns correct results (was 0, now returns all matches)
- ✅ Namespace filtering working correctly
- ✅ Performance: 2ms query latency
- ✅ Works without API keys (hash embeddings)
- ✅ All commands verified with ./claude-flow
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>