mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 22:53:17 +09:00
Implements ADR-153 (Darwin Mode integration). Adds the WRITE layer that
closes the loop ADR-150's READ layer opens: score/genome describe a
harness; evolve changes one.
Three new surfaces, all honoring the four ADR-150 architectural constraints
(removable / optional / graceful degradation / CI-absent-path coverage):
- harness-evolve mutate 1 of 7 policy surfaces, sandbox-score, promote
- harness-security-bench upstream's "Darwin Shield" (their own ADR-155)
- harness-bench create/verify bench suites for evolve --bench
Wiring:
- plugins/ruflo-metaharness/scripts/_darwin.mjs — shared subprocess helper
- plugins/ruflo-metaharness/scripts/evolve.mjs — main verb (--confirm gate)
- plugins/ruflo-metaharness/scripts/security-bench.mjs — Darwin Shield wrapper
- plugins/ruflo-metaharness/scripts/bench.mjs — supporting verb
- plugins/ruflo-metaharness/skills/harness-{evolve,security-bench,bench}/SKILL.md
- v3/@claude-flow/cli/src/mcp-tools/metaharness-tools.ts — 3 new MCP tools:
metaharness_evolve, metaharness_security_bench, metaharness_bench
- v3/@claude-flow/cli/package.json optionalDependencies:
+ @metaharness/darwin ~0.3.1
bump metaharness ~0.1.11 -> ~0.2.6
- ruflo/package.json optionalDependencies: mirrored (per the #2112 lesson —
wrapper does NOT inherit root overrides; required for transitive pin)
Safety posture (matches mint.mjs convention):
- evolve requires --confirm; without it, returns a dry-run plan
- Ruflo caps: --generations 1..50, --children 1..20, --concurrency 1..8,
--population 1..20, --cycles 1..100 (upstream supports more)
- Upstream exit code 99 (safety-disqualified) propagates VERBATIM —
not remapped — so CI can distinguish "evolution failed" from
"evolution surfaced a safety-tripping mutation"
- All three scripts emit {degraded: true, reason: 'metaharness-darwin-not-available'}
and exit 0 when the optional dep is absent
Connection to ruflo's own ADR-155 (nightly self-learning security harness,
PR #2417, issue #2418): harness-security-bench is the closest reference
implementation for our Loop A reward-signal sanity check. Running it
periodically gives us the empirical floor — if Darwin Shield's champion
reaches TPR=1/FPR=0 on the seeded corpus, our loop A's gradient signal
is sound.
Tests:
- plugins/ruflo-metaharness/scripts/test-graceful-degradation.mjs extended
with the 3 new scripts; all 16 assertions pass (8 skills × 2 contracts:
exit 0 AND emit "degraded": true)
- npx tsc --noEmit clean on v3/@claude-flow/cli
Co-Authored-By: RuFlo <ruv@ruv.net>
141 lines
4.0 KiB
JSON
141 lines
4.0 KiB
JSON
{
|
|
"name": "@claude-flow/cli",
|
|
"version": "3.12.4",
|
|
"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",
|
|
"plugins",
|
|
"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 && rm -rf plugins && mkdir -p plugins && cp -r ../../../plugins/ruflo-metaharness plugins/",
|
|
"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.9",
|
|
"@claude-flow/shared": "3.0.0-alpha.7",
|
|
"@noble/ed25519": "2.3.0",
|
|
"@ruvector/rabitq-wasm": "0.1.0",
|
|
"semver": "7.7.3",
|
|
"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.18",
|
|
"@claude-flow/guidance": "^3.0.0-alpha.1",
|
|
"@claude-flow/memory": "^3.0.0-alpha.20",
|
|
"@claude-flow/plugin-gastown-bridge": "^0.1.3",
|
|
"@claude-flow/security": "^3.0.0-alpha.10",
|
|
"@metaharness/darwin": "~0.3.1",
|
|
"@metaharness/kernel": "~0.1.0",
|
|
"@metaharness/router": "~0.3.2",
|
|
"metaharness": "~0.2.6",
|
|
"@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",
|
|
"@ruvector/tiny-dancer": "^0.1.22",
|
|
"agentdb": "^3.0.0-alpha.16",
|
|
"agentic-flow": "^3.0.0-alpha.1",
|
|
"ruvector": "^0.2.27"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "latest"
|
|
},
|
|
"overrides": {
|
|
"protobufjs": ">=7.5.6"
|
|
}
|
|
}
|