3.5.3 no longer exposes agentic_flow_agent, agent_booster_edit_file,
agent_booster_batch_edit or agentdb_pattern_store, which the bridge's
help text advertises. 3.0.0-alpha.2 is what @alpha resolves to today, so
pinning it removes the moving tag without changing the tool surface.
Co-Authored-By: RuFlo <ruv@ruv.net>
Socket flags six files in ruflo@3.75.1, all under src/ (the chat UI, the MCP
bridge and deploy scripts). Nothing in bin/ reads src/, and the tarball never
included the compose files needed to run it, so it was 528 files of dead
weight in every install.
- package.json: drop src/** from `files`. Tarball goes from 531 files / 8.2 MB
to 3 files / 33 KB. New test pins the contents.
- mcp-bridge (both copies): replace the SSRF regex with url-guard.js. The
regex let through https://[::1]/, 169.254.169.254, 100.64/10,
*.internal and IPv4-mapped loopback, and refused public hosts starting
"fc"/"fd". The new guard also checks what the hostname resolves to and
refuses redirects.
- mcp-bridge: pin agentic-flow (was @alpha) and gemini-mcp-server
(third-party) to exact versions in the spawn specs and the Dockerfiles.
ruvector and ruflo still follow latest.
- mcp-bridge: spawned backends no longer inherit MCP_AUTH_TOKEN.
- chat-ui: remove patch-mcp-url-safety.sh. Against today's upstream image
it matches nothing and exits 0; where it did match it relaxed the check
for every URL.
- ADR-166 lock: four new checks, plus the guard and tarball tests in CI.
Co-Authored-By: RuFlo <ruv@ruv.net>
The smoke ran a bare pnpm pack, which bundles workspace links and never
runs the staging step, so it tested a tarball nobody installs. It now
stages the bundled runtime packages and packs with npm. The vendored
range check no longer needs the semver package, which that job does not
install.
Co-Authored-By: RuFlo <ruv@ruv.net>
@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>