Files
ruflo/v3/@claude-flow/cli/src
ordinary being 5c2fadad82 fix(mcp): let memory tools target an explicit store (#4350)
The CLI accepts an explicit --path, and memory_stats/import/export already accept dbPath, but memory_store, memory_retrieve, memory_search, memory_delete and memory_list ignored an explicit store and always used the MCP default (the AgentDB sibling). An MCP caller that knew the project store could not select it, so reads and writes landed in a different backend (#3196).\n\nAdd an optional dbPath to those five tool schemas, skip default initialization when it is supplied, and thread it through storeEntry/getEntry/searchEntries/deleteEntry/listEntries (including SmartRetrieval's raw search and near-miss paths). No dbPath keeps the existing MCP default; this is deliberately not an implicit CLAUDE_FLOW_DB_PATH override because the native/encrypted CLI store and the AgentDB sibling are separate backends.\n\nAdd sql.js fixture tests with a populated default store so selecting the wrong store is observable. Baseline (source stashed) fails 4/4; the fix passes 4/4. Existing related memory suites pass 37/37.
2026-10-21 23:51:45 -04:00
..
…
…
…
…