{
  "name": "agentdb",
  "version": "3.0.0-alpha.17",
  "description": "Self-learning vector memory for AI agents — single-file .rvf cognitive container with HNSW search, episodic Reflexion memory, causal graph + Cypher, 9 RL algorithms, Thompson Sampling bandit, 41 MCP tools, hybrid (BM25 + dense) retrieval, GNN attention. 150x faster than SQLite. Up to +36% search quality from feedback. Runs in Node, browsers (WASM), edge, offline. Backs the agentic-flow / ruflo / Claude Code memory layer.",
  "type": "module",
  "main": "dist/src/index.js",
  "types": "dist/src/index.d.ts",
  "bin": {
    "agentdb": "dist/src/cli/agentdb-cli.js"
  },
  "exports": {
    ".": {
      "types": "./dist/src/index.d.ts",
      "import": "./dist/src/index.js",
      "default": "./dist/src/index.js"
    },
    "./wasm": "./dist/src/wasm-loader.js",
    "./package.json": "./package.json",
    "./cli": "./dist/src/cli/agentdb-cli.js",
    "./cli/commands/migrate": "./dist/src/cli/commands/migrate.js",
    "./db-fallback": "./dist/src/db-fallback.js",
    "./backends": "./dist/src/backends/index.js",
    "./backends/self-learning": "./dist/src/backends/rvf/SelfLearningRvfBackend.js",
    "./backends/native-accelerator": "./dist/src/backends/rvf/NativeAccelerator.js",
    "./security": "./dist/src/security/input-validation.js",
    "./wrappers": "./dist/src/wrappers/index.js",
    "./wrappers/gnn": "./dist/src/wrappers/gnn-wrapper.js",
    "./wrappers/agentdb-fast": "./dist/src/wrappers/agentdb-fast.js",
    "./wrappers/attention": "./dist/src/wrappers/attention-fallbacks.js",
    "./wrappers/embedding": "./dist/src/wrappers/embedding-service.js",
    "./controllers": "./dist/src/controllers/index.js",
    "./controllers/CausalMemoryGraph": "./dist/src/controllers/CausalMemoryGraph.js",
    "./controllers/CausalRecall": "./dist/src/controllers/CausalRecall.js",
    "./controllers/ExplainableRecall": "./dist/src/controllers/ExplainableRecall.js",
    "./controllers/NightlyLearner": "./dist/src/controllers/NightlyLearner.js",
    "./controllers/ReflexionMemory": "./dist/src/controllers/ReflexionMemory.js",
    "./controllers/SkillLibrary": "./dist/src/controllers/SkillLibrary.js",
    "./controllers/EmbeddingService": "./dist/src/controllers/EmbeddingService.js",
    "./controllers/WASMVectorSearch": "./dist/src/controllers/WASMVectorSearch.js",
    "./controllers/EnhancedEmbeddingService": "./dist/src/controllers/EnhancedEmbeddingService.js",
    "./controllers/MMRDiversityRanker": "./dist/src/controllers/MMRDiversityRanker.js",
    "./controllers/ContextSynthesizer": "./dist/src/controllers/ContextSynthesizer.js",
    "./controllers/MetadataFilter": "./dist/src/controllers/MetadataFilter.js",
    "./controllers/QUICServer": "./dist/src/controllers/QUICServer.js",
    "./controllers/QUICClient": "./dist/src/controllers/QUICClient.js",
    "./controllers/SyncCoordinator": "./dist/src/controllers/SyncCoordinator.js",
    "./controllers/HNSWIndex": "./dist/src/controllers/HNSWIndex.js",
    "./controllers/AttentionService": "./dist/src/controllers/AttentionService.js",
    "./controllers/SparsificationService": "./dist/src/controllers/SparsificationService.js",
    "./controllers/MincutService": "./dist/src/controllers/MincutService.js",
    "./services/federated-learning": "./dist/src/services/federated-learning.js",
    "./model": "./dist/src/model/ModelCacheLoader.js"
  },
  "scripts": {
    "build": "npm run build:ts && npm run copy:schemas && npm run build:browser",
    "build:ts": "tsc",
    "copy:schemas": "mkdir -p dist/schemas && cp src/schemas/*.sql dist/schemas/",
    "build:browser": "node scripts/build-browser.js && node scripts/build-browser-v2.js",
    "build:edge": "node scripts/build-browser.config.js",
    "build:napi": "bash scripts/optimize-napi.sh",
    "build:wasm": "bash scripts/optimize-wasm.sh",
    "build:optimized": "npm run build:napi && npm run build:wasm && npm run build",
    "postinstall": "node scripts/postinstall.cjs || true",
    "dev": "tsx src/cli/agentdb-cli.ts",
    "test": "vitest",
    "test:unit": "vitest --run",
    "test:browser": "vitest browser-bundle-unit.test.js --run",
    "test:ci": "npm run test:unit && npm run test:browser && npm run build && npm run verify:bundle",
    "verify:bundle": "node scripts/verify-bundle.js",
    "cli": "node dist/src/cli/agentdb-cli.js",
    "docker:test": "docker build -f docs/SQLITE-FIX-DOCKER-TEST.Dockerfile -t agentdb-test . && docker run --rm agentdb-test",
    "benchmark": "tsx benchmarks/simple-benchmark.ts",
    "benchmark:full": "tsx benchmarks/benchmark-runner.ts",
    "benchmark:build": "cd benchmarks && tsc",
    "benchmark:attention": "tsx benchmarks/attention-performance.ts",
    "benchmark:backends": "tsx benchmarks/compare-backends.ts",
    "benchmark:profile": "tsx scripts/profile-hot-paths.ts",
    "benchmark:ruvector": "tsx benchmarks/ruvector-benchmark.ts",
    "benchmark:adr072": "vitest run tests/benchmarks/adr-072-phase1-benchmark.test.ts --reporter=verbose",
    "benchmark:adr072:fast": "vitest run tests/benchmarks/validate-adr072.test.ts",
    "benchmark:all": "npm run benchmark:attention && npm run benchmark:backends && npm run benchmark:profile && npm run benchmark:ruvector",
    "build:model": "node scripts/build-model-rvf.mjs",
    "prebuild": "node scripts/inline-schemas.mjs"
  },
  "keywords": [
    "agentdb",
    "vector-database",
    "vector-store",
    "vector-search",
    "ai-agents",
    "agent-memory",
    "agentic-ai",
    "agentic",
    "agent-database",
    "memory",
    "self-learning",
    "self-improving",
    "reinforcement-learning",
    "rl",
    "thompson-sampling",
    "bandit",
    "causal-reasoning",
    "causal-graph",
    "reflexion",
    "episodic-memory",
    "skill-library",
    "lifelong-learning",
    "explainable-ai",
    "explainable-recall",
    "provenance",
    "audit-log",
    "hnsw",
    "knn",
    "ann",
    "embeddings",
    "embedding-search",
    "semantic-search",
    "hybrid-search",
    "bm25",
    "rrf",
    "rag",
    "retrieval-augmented-generation",
    "cypher",
    "graph-database",
    "knowledge-graph",
    "gnn",
    "attention",
    "mmr",
    "rerank",
    "sqlite",
    "sql.js",
    "wasm",
    "edge",
    "browser",
    "offline-first",
    "mcp",
    "model-context-protocol",
    "claude-code",
    "claude-code-plugin",
    "anthropic",
    "llm-memory",
    "llm-tools",
    "agent-orchestration",
    "agentic-flow",
    "ruflo",
    "ruvector",
    "rust",
    "napi",
    "typescript"
  ],
  "author": "ruv",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ruvnet/agentdb.git"
  },
  "bugs": {
    "url": "https://github.com/ruvnet/agentdb/issues"
  },
  "homepage": "https://github.com/ruvnet/agentdb#readme",
  "dependencies": {
    "@modelcontextprotocol/sdk": "^1.20.1",
    "@opentelemetry/api": "^1.9.0",
    "@ruvector/graph-transformer": "^2.0.4",
    "ajv": "^8.18.0",
    "jsonwebtoken": "^9.0.2",
    "sql.js": "^1.13.0"
  },
  "devDependencies": {
    "@playwright/test": "^1.58.2",
    "@types/jsonwebtoken": "^9.0.10",
    "@types/node": "^22.10.2",
    "@types/uuid": "^11.0.0",
    "dotenv": "^16.4.7",
    "esbuild": "^0.25.11",
    "http-server": "^14.1.1",
    "playwright": "^1.58.2",
    "tsx": "^4.19.2",
    "typescript": "^5.7.2",
    "vitest": "^4.0.15"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "files": [
    "dist/src/",
    "dist/schemas/",
    "dist/models/",
    "scripts/postinstall.cjs",
    "README.md",
    "LICENSE"
  ],
  "optionalDependencies": {
    "@opentelemetry/resources": "^1.25.0",
    "@opentelemetry/sdk-node": "^0.218.0",
    "@opentelemetry/semantic-conventions": "^1.25.0",
    "@ruvector/attention": "^0.1.2",
    "@ruvector/gnn": "^0.1.23",
    "@ruvector/graph-node": "^2.0.2",
    "@ruvector/router": "^0.1.15",
    "@ruvector/ruvllm": "^2.5.1",
    "@ruvector/rvf": "^0.1.9",
    "@ruvector/rvf-node": "^0.1.7",
    "@ruvector/rvf-solver": "^0.1.7",
    "@ruvector/rvf-wasm": "^0.1.6",
    "@ruvector/sona": "^0.1.4",
    "@xenova/transformers": "^2.17.2",
    "argon2": "^0.44.0",
    "better-sqlite3": "^11.8.1",
    "chalk": "^5.3.0",
    "commander": "^12.1.0",
    "hnswlib-node": "^3.0.0",
    "inquirer": "^9.3.8",
    "ruvector": "^0.1.30",
    "ruvector-attention-wasm": "^0.1.32",
    "ruvector-graph-transformer-wasm": "^2.0.4"
  },
  "overrides": {
    "@xenova/transformers": {
      "sharp": "^0.33.0"
    },
    "protobufjs": "^7.6.1"
  }
}
