[fix] Semantic search bug fix - v2.7.0-alpha.10

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>
This commit is contained in:
rUvandClaude committed 2025-10-13 21:48:21 +00:00
1 parent 5d5c2e1dd8
commit 37847ac777
18 files changed
+535 -153

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# Claude-Flow Smart Dispatcher - Detects and uses the best available runtime
VERSION="2.7.0-alpha.9"
VERSION="2.7.0-alpha.10"
# Determine the correct path based on how the script is invoked
if [ -L "$0" ]; then