@claude-flow/cli 3.74.1 and 3.75.0 (and the claude-flow umbrella) bundle
@claude-flow/security 3.0.7, which needs zod >=4.6.7, while the wrappers
keep zod 3. The staging script stripped the nested dependencies, so
security's `import 'zod'` resolved to zod 3 and the root export threw
`z.config is not a function`.
Declaring the dependency is not enough: npm never installs the
dependencies of a bundled package (checked against the 3.75.0 tarball).
The stager now vendors declared leaf dependencies into the bundled
package's own node_modules, checks the workspace copy satisfies the
declared range, and refuses a dependency that has dependencies itself.
The npx-install smoke now imports every bundled runtime package from the
installed CLI, so this fails CI instead of users.
Co-Authored-By: RuFlo <ruv@ruv.net>
3.2.0 shipped the AgentDB adapter, but searchSimilarThreats() defaulted
minSimilarity to 0.7. InMemoryVectorStore ignored that value; the adapter
honours it, and MiniLM cosine over regex-source pattern text measures
0.22-0.41. With agentdb installed, default searches and the README example
returned [] (seen in the post-publish smoke test).
- Default minSimilarity is now 0 (ranked, no floor); callers can still pass one.
- The test no longer depends on order: either learned threat type may rank first.
- The README example uses the defaults; it was run against the packed tarball,
with and without agentdb installed.
agentdb is not a devDependency. CI installs it with --no-save in
aidefence-tests.yml, so the pnpm lockfile is unchanged.
Co-Authored-By: claude-flow <ruv@ruv.net>
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>
Under an agent the Bash tool cwd is sticky, and MCP servers and hooks inherit
it, so process.cwd() is often a subdirectory of the project. Memory, autopilot,
neural and metrics state keyed to it was written under the subdirectory and
never read again: loadState() returned defaults and the learning state
silently started over.
- Extract the #2877 daemon marker walk (nearest Ruflo marker, `.git` hard
stop, start dir when nothing matches, read-only) into
cli/src/services/project-root.ts; resolveDaemonProjectRoot and
isRufloProject delegate to it unchanged.
- getProjectRoot()/anchorToProjectRoot() add the home/filesystem-root guard
cli-core already applies, so a ~/.claude/settings.json claudeFlow key never
makes $HOME the project.
- getMemoryRoot(), `memory backup` and `memory distill` resolve memory
against the project root.
- autopilot-state resolves its state, log, swarm-tasks and checklist paths
against the project root per call (exported constants stay relative).
- neural checkpoints/patterns, `.claude-flow/memory` patterns, LoRA weights,
EWC fisher and swarm-activity metrics use the project root.
- cli-core: export isRufloProject/resolveProjectRoot from mcp-tools/types;
getProjectCwd() keeps CLAUDE_FLOW_CWD precedence, else walks up from
process.cwd(), falling back to process.cwd() when no marker is found or
the walk lands on home / a filesystem root. Bump cli-core to 3.7.7.
The CLI pins cli-core 3.7.6, which lacks these exports, so the CLI carries a
copy of the walk; a parity test pins both copies together.
Fixes#2633
Co-Authored-By: RuFlo <ruv@ruv.net>
The command catalog copy changed (#2640 command renames + catch-up
regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json,
hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is
regenerated on the merged tree (one entry changed by main) and copied to
the console again.
The single-host AGENTS.md snapshot follows main's #3153 change (#4918:
registered MCP tool names); no other line differs.
Co-Authored-By: RuFlo <ruv@ruv.net>
Adds agentdb_pattern-list (ReasoningBank.listPatterns), agentdb_skill-list
(SkillLibrary.listSkills), agentdb_skill-get (SkillLibrary.getSkill) and the
count-only agentdb_hierarchical-stats (TieredMemoryStore.getTierStats +
countPersisted). They read through the existing memory-bridge registry under
the bridge operation lease. A missing controller or method returns
success:false, code:'unsupported' naming the method, never an empty list;
native errors (page validation, graph-adapter refusal) keep their own code.
Fixes#4707
Co-Authored-By: RuFlo <ruv@ruv.net>
`ruflo catalog generate` + copy to the ruflo-console catalog (their digests
must match). Picks up memory-neural, stream-chain-run and swarm-orchestrate.
The committed catalog was already stale on main (243 entries; now 290: new
mod registrations and plugins since the last regeneration), so this also
carries that drift. The host-specific engine report is left as committed.
Co-Authored-By: RuFlo <ruv@ruv.net>
The Codex integration audit forbids `@claude-flow/cli@latest` anywhere in
codex src. The shared-instructions module now takes the CLI prefix as a
parameter: codex defaults to its generators' convention (`npx @claude-flow/cli`,
unversioned, as AGENTS.md already uses), and the CLI passes its own
`@latest` form, so the single-host CLAUDE.md is byte-identical (snapshots
unchanged). finalizeDualInstructions checks AGENTS.md for the codex form.
Both copies of the module stay byte-identical.
Co-Authored-By: RuFlo <ruv@ruv.net>