Files
ruvnet__ruflo/scripts/inventory-capabilities.mjs
Reuven 3abfb5d0aa chore(verification): regenerate inventory + fix CRLF bug in extractor
Audit (via goal-planner agent) flagged 6 stale entries: 5 new MCP tools
in browser-session-tools.ts + 1 new agent (dossier-investigator in
ruflo-goals). Counts now 305 MCP / 49 CLI / 32 plugins / 44 agents.

Also fixes a latent bug in scripts/inventory-capabilities.mjs that
extractAgents() never extracted anything on Windows checkouts because
the frontmatter regex `/^---\n([\s\S]*?)\n---/` requires LF. On a
CRLF working tree it returns 0 agents while silently treating the
result as authoritative. Made the regex CRLF-tolerant
(`/^---\r?\n([\s\S]*?)\r?\n---/`) so the script is platform-portable;
this is what unblocked today's regen on a Windows machine.

Three files updated in lockstep:

  - scripts/inventory-capabilities.mjs  — CRLF-tolerant frontmatter
  - verification-inventory.json         — re-extracted, sorted, deterministic
  - verification.md                     — narrative coverage line + the
    full embedded markdown tables (lines 410+) regenerated from the
    same run. The signed JSON witness manifest above (lines 70-317,
    Ed25519 sig at line 313) is untouched, so the cryptographic
    signature remains valid.

The cli-core split (#1764) created v3/@claude-flow/cli-core/src/mcp-tools/
with 13 hooks_*/memory_* defs, but every name there is a duplicate of
what the umbrella's hooks-tools.ts / memory-tools.ts already register —
no new MCP surface, so the script's hard-coded MCP_TOOLS_DIR pointing
at v3/@claude-flow/cli/src/mcp-tools is currently correct. If cli-core
ever ships a unique tool, the script will silently miss it; worth a
follow-up to scan both dirs and de-duplicate.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-05 22:18:18 -04:00

9.4 KiB