mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
* fix(#1916): register agent_logs MCP tool + resolve hive-spawned workers `ruflo agent logs <id>` called `callMCPTool('agent_logs', …)` against a tool that was never registered → `MCP tool not found: agent_logs`. Registered it in agent-tools.ts. Today it returns the agent's createdAt + lastResult as synthetic entries (per-agent activity logging lands with hive worker execution wiring — #1916 items 3/4, a tracked follow-up) with the documented shape `{ agentId, entries: [{timestamp,level,message,context?}], total }`. Also: `hive-mind_spawn` writes workers to `.claude-flow/agents.json`, a different file from the canonical `.claude-flow/agents/store.json` that agent_status/agent_list/agent_logs read — so `agent status <hive-worker-id>` returned `not_found`. Added `loadAllAgents()` (canonical store ∪ hive store, canonical wins on collision) and routed those three tools through it. NOT in this PR: the task-execution dispatch (#1916 items 3/4 — `task_assign` transitions state but doesn't run a worker; hive metrics stay 0). That needs a design decision (which executor) and is a separate change. CI guard: scripts/audit-cli-mcp-tools.mjs — scans every `callMCPTool('<name>')` in src/commands/*.ts and fails if `<name>` isn't registered in src/mcp-tools/*.ts (the `MCP tool not found` class). Monotone-decreasing baseline at verification/cli-mcp-tool-baseline.json — surfaces 20 *other* CLI subcommands with the same dangling-tool bug (`memory export`, `task retry`, `workflow validate`, `session export`, …; agent_logs is now fixed and not in the list). Wired into v3-ci.yml `tool-descriptions-audit` job (already in witness-verify needs[]). Behavioral guard: __tests__/agent-logs-hive-resolution.test.ts. Witness markers for #1916 + #1916-guard. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(#1916): register the 16 missing CLI↔MCP tools — cli-mcp-tool-baseline → 0 The #1916-guard (scripts/audit-cli-mcp-tools.mjs) surfaced 20 `ruflo <cmd>` subcommands that callMCPTool() a tool that was never registered (would die with `MCP tool not found`). Cleared all of them: - Renamed the coverage tools `hooks/coverage-{route,suggest,gaps}` → `hooks_coverage-{route,suggest,gaps}` (the handlers already existed; the slash names just didn't match the CLI's underscore calls). - Pointed `ruflo swarm stop` / `ruflo stop` at the existing `swarm_shutdown` tool instead of a non-existent `swarm_stop`. - Registered 16 new MCP tools (each with ADR-112 "use when … is wrong" guidance): task_retry, workflow_stop, workflow_validate, session_current, session_export, session_import, memory_detailed-stats, memory_cleanup, memory_compress, memory_export, memory_import, hive-mind_optimize-memory, hooks_teammate-idle, hooks_task-completed, mcp_start, mcp_stop Real where the operation maps cleanly to an existing store/backend (task_retry clones into a fresh pending task; memory_export/import dump & re-store entries; memory_cleanup prunes expired TTLs dry-run-by-default; workflow_validate structurally checks a JSON workflow; session_export/import round-trip the session record; memory_detailed-stats reshapes memory_stats). Honest no-ops with the correct return shape + a `note` where the underlying capability genuinely isn't wired yet (memory_compress — sql.js has no on-disk compression; hive-mind_optimize-memory — structural compaction only, pattern-quality consolidation is the intelligence pipeline's job; hooks_* team hooks — auto-assignment/pattern-learning delegated; mcp_start/stop — the MCP toolset runs in-process, there's no separate server to start/stop). cli-mcp-tool-baseline.json is now 0. tool-descriptions-audit still passes (all 16 new tools carry guidance, ≥80 chars, unique). Full cli test suite green (48 files / 1977 tests). Witness #1916-cli-tools marker added → ruflo verify 107 verified, 0 regressed. mcp-tools-deep.test.ts exception list updated for mcp_start/mcp_stop. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(#1916): register coverageRouterTools + harden the CLI↔MCP audit; bump 3.7.0-alpha.26 Validating the alpha.25 publish caught a gap: `ruflo hooks coverage-route` (and -suggest / -gaps) still failed with `Tool not found: hooks_coverage-route`. Root cause: the coverage tools were defined in ruvector/coverage-tools.ts but their array was never imported into mcp-client.ts's TOOL_REGISTRY — renaming the slash→underscore name didn't help because the file wasn't registered at all. - mcp-client.ts: import + `...coverageRouterTools` in registerTools([…]). - coverage-tools.ts: category 'coverage' → 'hooks' (matches the hooks_* names). - scripts/audit-cli-mcp-tools.mjs: now derives the "registered" set from what mcp-client.ts ACTUALLY spreads into registerTools([…]) (resolving each `...xTools` to its `import { xTools } from '<path>'` and scanning that file), instead of "any src file with a name: definition". So an unregistered tool-source file now correctly produces a dangling-reference flag — this is exactly the gap that let hooks_coverage-* slip through. Version bumped to 3.7.0-alpha.26 (alpha.25 shipped the still-broken coverage tools). Witness manifest regenerated. cli-mcp-tool-baseline.json still 0; audit + mcp-tools-deep + mcp-client tests green. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
131 lines
3.7 KiB
JSON
131 lines
3.7 KiB
JSON
{
|
|
"name": "@claude-flow/cli",
|
|
"version": "3.7.0-alpha.26",
|
|
"type": "module",
|
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
"main": "dist/src/index.js",
|
|
"types": "dist/src/index.d.ts",
|
|
"sideEffects": false,
|
|
"bin": {
|
|
"cli": "./bin/cli.js",
|
|
"claude-flow": "./bin/cli.js",
|
|
"claude-flow-mcp": "./bin/mcp-server.js"
|
|
},
|
|
"homepage": "https://github.com/ruvnet/claude-flow#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/ruvnet/claude-flow/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ruvnet/claude-flow.git",
|
|
"directory": "v3/@claude-flow/cli"
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"claude-code",
|
|
"anthropic",
|
|
"ai-agents",
|
|
"multi-agent",
|
|
"swarm",
|
|
"mcp",
|
|
"model-context-protocol",
|
|
"llm",
|
|
"cli",
|
|
"orchestration",
|
|
"automation",
|
|
"developer-tools",
|
|
"coding-assistant",
|
|
"vector-database",
|
|
"embeddings",
|
|
"self-learning",
|
|
"enterprise"
|
|
],
|
|
"author": {
|
|
"name": "RuvNet",
|
|
"email": "ruv@ruv.io",
|
|
"url": "https://ruv.io"
|
|
},
|
|
"license": "MIT",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/src/index.d.ts",
|
|
"import": "./dist/src/index.js"
|
|
},
|
|
"./dist/*": "./dist/*",
|
|
"./ruvector": {
|
|
"types": "./dist/src/ruvector/index.d.ts",
|
|
"import": "./dist/src/ruvector/index.js"
|
|
},
|
|
"./ruvector/*": {
|
|
"types": "./dist/src/ruvector/*.d.ts",
|
|
"import": "./dist/src/ruvector/*.js"
|
|
},
|
|
"./mcp-tools": {
|
|
"types": "./dist/src/mcp-tools/index.d.ts",
|
|
"import": "./dist/src/mcp-tools/index.js"
|
|
},
|
|
"./memory": {
|
|
"types": "./dist/src/memory/memory-initializer.d.ts",
|
|
"import": "./dist/src/memory/memory-initializer.js"
|
|
},
|
|
"./intelligence": {
|
|
"types": "./dist/src/memory/intelligence.d.ts",
|
|
"import": "./dist/src/memory/intelligence.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"bin",
|
|
"scripts",
|
|
".claude",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run",
|
|
"test:plugin-store": "npx tsx src/plugins/tests/standalone-test.ts",
|
|
"test:pattern-store": "npx tsx src/transfer/store/tests/standalone-test.ts",
|
|
"postinstall": "node ./scripts/postinstall.cjs",
|
|
"prepublishOnly": "cp ../../../README.md ./README.md",
|
|
"release": "npm version prerelease --preid=alpha && npm run publish:all",
|
|
"publish:all": "./scripts/publish.sh"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.16"
|
|
},
|
|
"dependencies": {
|
|
"@claude-flow/cli-core": "^3.7.0-alpha.5",
|
|
"@claude-flow/mcp": "^3.0.0-alpha.8",
|
|
"@claude-flow/neural": "^3.0.0-alpha.8",
|
|
"@claude-flow/shared": "^3.0.0-alpha.7",
|
|
"@noble/ed25519": "^2.1.0",
|
|
"@ruvector/rabitq-wasm": "^0.1.0",
|
|
"semver": "^7.6.0",
|
|
"yaml": "^2.8.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@claude-flow/aidefence": "^3.0.2",
|
|
"@claude-flow/codex": "^3.0.0-alpha.8",
|
|
"@claude-flow/embeddings": "^3.0.0-alpha.12",
|
|
"@claude-flow/guidance": "^3.0.0-alpha.1",
|
|
"@claude-flow/memory": "^3.0.0-alpha.14",
|
|
"@claude-flow/plugin-gastown-bridge": "^0.1.3",
|
|
"@claude-flow/security": "^3.0.0-alpha.1",
|
|
"@ruvector/attention": "^0.1.32",
|
|
"@ruvector/attention-darwin-arm64": "0.1.32",
|
|
"@ruvector/diskann": "^0.1.0",
|
|
"@ruvector/learning-wasm": "^0.1.29",
|
|
"@ruvector/router": "^0.1.30",
|
|
"@ruvector/ruvllm-wasm": "^2.0.2",
|
|
"@ruvector/rvagent-wasm": "^0.1.0",
|
|
"@ruvector/sona": "^0.1.6",
|
|
"agentdb": "^3.0.0-alpha.13",
|
|
"agentic-flow": "^3.0.0-alpha.1"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "latest"
|
|
}
|
|
}
|