mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
The README and createAIDefence JSDoc told users to pass `new AgentDB()` as `vectorStore`. AgentDB has no store/search/get/delete, so the first learnFromDetection threw "this.vectorStore.store is not a function". - Add createAgentDBVectorStore(): imports the optional `agentdb` peer lazily, embeds with its EmbeddingService and indexes in its vector backend (async methods when the backend is async-only, as RuVector is). Falls back to InMemoryVectorStore with one warning when agentdb is missing. - createAIDefence wraps an AgentDB instance passed as vectorStore, and rejects any other object lacking the VectorStore methods at construction. - Real-import tests against agentdb 3.7.7 (devDependency), verified against the ^3.6.0 peer floor too; a fallback test; a CI workflow that runs them. - Drop the unmeasured "150x-12,500x" / "0.1ms HNSW" AgentDB claims. - Package metadata: homepage ruv.io, repository/bugs -> ruvnet/ruflo. Co-Authored-By: claude-flow <ruv@ruv.net>