mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Previously `npm run bench` matched no files because `vitest.config.ts` restricts include to `src/**/*.test.ts`. ADR-125 Phase 6 lands a dedicated `vitest.bench.config.ts` that discovers `benchmarks/**/*.bench.ts`, and the `bench` script now points at it. Additions: - `vitest.bench.config.ts` — bench discovery config; legacy custom-framework bench files (cache-hit-rate, hnsw-indexing, memory-write, vector-search) are excluded for now and will be ported in a follow-up alongside Phase 3. - `benchmarks/hnsw-search.bench.ts` — first real vitest `bench()` suite. Measures `HNSWIndex.search` (k=10, k=50) and `addPoint` against 1k random 128-dim vectors. - `benchmarks/results/baseline-20260519T212453Z.md` — first measured baseline, committed so the README perf table has a real referent. - `benchmarks/results/scripts/run-baseline.mjs` — companion script that produces the JSON blob the baseline.md references. Measured baseline on Darwin / M-series: build_time_ms: 533.42 (1k vectors, 128-dim) search_k10_avg_ms: 0.5294 (~1.9k ops/s) search_k50_avg_ms: 0.5235 add_avg_ms: 0.8656 378 tests still passing — no regression. Refs: ADR-125 Phase 6 Closes: part of #2061 Co-Authored-By: RuFlo <ruv@ruv.net>
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"name": "@claude-flow/memory",
|
|
"version": "3.0.0-alpha.17",
|
|
"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": {
|
|
"agentdb": "^3.0.0-alpha.14",
|
|
"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.0.16"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "v3alpha"
|
|
},
|
|
"os": [
|
|
"darwin",
|
|
"linux",
|
|
"win32"
|
|
],
|
|
"cpu": [
|
|
"x64",
|
|
"arm64"
|
|
]
|
|
}
|