Files
ruflo/v3/@claude-flow/memory/package.json
T
rUvandr 47406b0a96 fix(memory,neural): AgentDB SQL fallback persistence, cache size reuse, MoE mean P_i (#4639)
* fix(memory,neural): persist AgentDB SQL fallback, reuse cached sizes, average MoE P_i

- memory (#4410): AgentDBBackend's SQL fallback gated on db.run/db.get, which
  agentdb's prepare/exec handle never has, so no table was created and every
  write was a silent no-op. Use prepare().run/get with spread params (safe on
  better-sqlite3 and agentdb's sql.js shim) and quote the "references" column.
- memory (#4481): CacheManager stores each entry's size on its LRU node and
  refunds that number on overwrite/delete/eviction instead of re-serializing.
- neural (#4381): computeLoadBalanceLoss() uses the mean gate probability over
  the same route() history as f_i, persisted and reset with the routing stats.
- Bump @claude-flow/memory 3.2.2, @claude-flow/neural 3.0.2.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(cli): pin @claude-flow/memory 3.2.2 and @claude-flow/neural 3.0.2 (both published)

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-01 12:17:59 -05:00

49 lines
1.6 KiB
JSON

{
"name": "@claude-flow/memory",
"version": "3.2.2",
"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"
]
}