Files
ruflo/.github/workflows
ruv f6f9a7c0e6 fix(aidefence): make the documented AgentDB vector store work (3.2.0)
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>
2026-11-09 21:42:36 -05:00
..