mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(aidefence): restore the ADR-118 wider-detection pass to source (3.0.4) @claude-flow/aidefence 3.0.3 (npm latest) was published from an uncommitted tree carrying the ADR-118 / #2004 patterns, so main never had them, and main's #3177 ReDoS bounds never reached npm. 3.0.4 is a true superset: the verb-noun override window, behave-as role hijack and god/root/admin/sudo mode jailbreak markers, on top of main's bounded PII/marker regexes. Parity against the published 3.0.3 dist: 24-input corpus, 0 regressions. Drops publishConfig.tag=alpha. Refs #4625. Co-Authored-By: RuFlo <ruv@ruv.net> * feat(aidefence): merge AIMDS pattern packs into ThreatDetectionService (3.1.0) Vendors the AIMDS pack engine (normalize, decoders, pattern-loader, engine) and its six pattern packs (53 patterns) from midstream AIMDS at abe78d6 into src/domain/services/packs/. Packs are embedded as TS modules, so they load from the published ESM dist with no fs path lookup; the files allowlist is unchanged. ThreatDetectionService.detect() runs the packs in a second pass over the raw input and merges findings into the existing result shape (one threat per type, as before). Built-in patterns, including the ADR-118 extras, stay and their confidences are unchanged. Packs are on by default; disable or select them with createThreatDetectionService({ packs }) or createAIDefence({ packs }). The legacy pattern-array argument still works. - ThreatType gains tool_invocation, data_exfiltration, markup_forgery; Threat gains an optional ruleId (e.g. EX-001) for pack findings. - Packs are validated, compiled and regex-warmed once per process, so isSafe()/checkThreats() no longer pay a compile per call and the first detect() is not charged ~17 ms of lazy regex compilation. - Fixes a quadratic regex in the vendored normaliser (undoLeet): 100 KB of hex digits took 1.8 s; now 6 ms. Decoders cap each blob before decoding. Corpus (55 attacks / 30 legit): built-ins only 8/55, packs on 55/55; false positives F13 and F27 in both modes (built-in encoding_attack), pinned. Co-Authored-By: RuFlo <ruv@ruv.net> * fix(memory): build AgentDB controllers with an embedder and the shared vector backend LearningSystem, NightlyLearner, ExplainableRecall and the graph transformer's CausalMemoryGraph take (db, embedder, ...). The registry passed only the database, so the first predict/discover/recall threw on this.embedder (the #3327 Finding A class, fixed for ReasoningBank only). Real-agentdb test fails on the old source (learningSystem.embedder undefined). memory suite 659/659. Adds ADR-513 (stable versions, convergence) and ADR-516 (aidefence recovery). Co-Authored-By: RuFlo <ruv@ruv.net> * feat(cli): move to agentic-flow ^2.2.0 (main line); stable-only tag policy - agentic-flow ^3.0.0-alpha.1 resolved to the March 3.0.0-alpha.2, which pulled @xenova/transformers -> onnx-proto -> protobufjs 6 (critical). 2.2.0 is agentic-flow's main line (ADR-515). The update validator and the init doc table follow. - neural-tools: computeEmbedding returns a Float32Array, which JSON.stringify writes as {"0":...}; convert to an array before the neural store. - CLAUDE.md: no more alpha/v3alpha/next dist-tags (ADR-513); overrides do not reach users; examples use ruflo@latest. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(cli): pin @claude-flow/aidefence 3.1.0 (AIMDS pattern packs) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(cli): target agentic-flow ^3.0.0 (first stable 3.x, ADR-515) agentic-flow's security defaults change in a breaking way (agents no longer bypass permissions by default, proxies need a token), so the main line ships as 3.0.0 rather than 2.2.0. That also gives the 3.x alpha line a stable head: existing ^3.0.0-alpha.1 installs resolve to it and drop the March alpha's protobufjs 6 (critical). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(memory): capture AgentDB's backend failure reason from stderr too agentdb 3.0.0 moves library diagnostics off stdout (they corrupted stdio MCP JSON-RPC), so the #4622 lock-reason capture patches console.error as well. Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-514 agentdb 3.0.0, ADR-515 agentic-flow 3.0.0, ADR-517 AIMDS pattern packs Co-Authored-By: RuFlo <ruv@ruv.net> * chore(memory): 3.2.1 (embedder wiring, stderr reason capture) Co-Authored-By: RuFlo <ruv@ruv.net> * chore(release): 3.67.0 — agentdb 3.0.0, agentic-flow 3.0.0, aidefence 3.1.0, memory 3.2.1 - CLI and the claude-flow umbrella declare agentic-flow ^3.0.0 (root lock and v3 pnpm lock resolve 3.0.0 / agentdb 3.0.0). - CHANGELOG 3.67.0. Co-Authored-By: RuFlo <ruv@ruv.net> * test/docs: dated ADRs 513-517; scope the bracket/DAN timing test to built-ins - ADRs 513-517 gain Date lines (the console ADR parser expects >97% dated) and ADR-513/516 name the versions that shipped (agentic-flow 3.0.0, aidefence 3.1.0). - threat-detection 'bounds the bracket and DAN patterns' measures the built-in regexes it was written for ({ packs: false }); the AIMDS packs have their own 100 KB adversarial timing test. Full detector on that input: 86 ms locally, 301 ms on the CI runner (linear, budget was 200 ms). Co-Authored-By: RuFlo <ruv@ruv.net> * fix(deps): stop pinning ruvector 0.2.27 under agentdb 3.0.0; CLI agentdb ^3.0.0 The root (and ruflo wrapper) overrides pinned ruvector ^0.2.27 from the BEIR work (3.10.29). npm applies overrides inside this repo's tree, so CI ran agentdb 3.0.0 on ruvector 0.2.27, below agentdb's own ^0.2.40: a pairing no user ever installs (published overrides are ignored), and the one where #2226 pattern recall failed on CI. Raised to ^0.2.41. The CLI's agentdb range moves to ^3.0.0 (stable; no alpha ranges, ADR-513), so the v3 pnpm lock resolves 3.0.0 and the v3 test job exercises what users get instead of 3.0.0-alpha.20. 115 agentdb/memory-related CLI test files: 868/868 on 3.0.0. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"name": "@claude-flow/memory",
|
|
"version": "3.2.1",
|
|
"type": "module",
|
|
"description": "Memory module - AgentDB unification, HNSW indexing, vector search, hybrid SQLite+AgentDB backend (ADR-009)",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./*": "./dist/*.js"
|
|
},
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"bench": "vitest bench --config vitest.bench.config.ts",
|
|
"build": "tsc",
|
|
"prebuild": "rm -rf dist tsconfig.tsbuildinfo",
|
|
"prepublishOnly": "npm run build && node -e \"const m = await import('./dist/index.js'); const required = ['ControllerRegistry','MemoryService','UnifiedMemoryService','PersistentSonaCoordinator','RvfLearningStore','RvfMigrator']; const missing = required.filter(k => !m[k]); if (missing.length) { console.error('Missing exports:', missing); process.exit(1); } const forbidden = ['HnswLite','RvfBackend']; const leaks = forbidden.filter(k => k in m); if (leaks.length) { console.error('Forbidden public exports present (ADR-125):', leaks); process.exit(1); } console.log('All required exports present; ADR-125 surface clean');\""
|
|
},
|
|
"dependencies": {
|
|
"@claude-flow/security": "^3.0.0",
|
|
"agentdb": "^3.0.0-alpha.20",
|
|
"sql.js": "^1.10.3"
|
|
},
|
|
"optionalDependencies": {
|
|
"better-sqlite3": "^12.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"@types/sql.js": "^1.4.9",
|
|
"vitest": "^4.1.0"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"os": [
|
|
"darwin",
|
|
"linux",
|
|
"win32"
|
|
],
|
|
"cpu": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|