mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-06-01 23:00:37 +00:00
Add comprehensive PostgreSQL storage backend for hooks intelligence: Schema (crates/ruvector-cli/sql/hooks_schema.sql): - ruvector_hooks_patterns: Q-learning state-action pairs - ruvector_hooks_memories: Vector memory with embeddings - ruvector_hooks_trajectories: Learning trajectories - ruvector_hooks_errors: Error patterns and fixes - ruvector_hooks_file_sequences: File edit predictions - ruvector_hooks_swarm_agents: Registered agents - ruvector_hooks_swarm_edges: Coordination graph - Helper functions for all operations Storage Layer (npm/packages/cli/src/storage.ts): - StorageBackend interface for abstraction - PostgresStorage: Full PostgreSQL implementation - JsonStorage: Fallback when PostgreSQL unavailable - createStorage(): Auto-selects based on env vars Configuration: - Set RUVECTOR_POSTGRES_URL or DATABASE_URL for PostgreSQL - Falls back to ~/.ruvector/intelligence.json automatically - pg is optional dependency (not required for JSON mode) Benefits of PostgreSQL: - Concurrent access from multiple sessions - Better scalability for large datasets - Native pgvector for semantic search - ACID transactions for data integrity - Cross-machine data sharing
46 lines
944 B
JSON
46 lines
944 B
JSON
{
|
|
"name": "@ruvector/cli",
|
|
"version": "0.1.26",
|
|
"description": "Command-line interface for RuVector vector database with self-learning hooks",
|
|
"main": "dist/cli.js",
|
|
"types": "dist/cli.d.ts",
|
|
"bin": {
|
|
"ruvector": "dist/cli.js"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"clean": "rm -rf dist *.tsbuildinfo",
|
|
"test": "echo \"Tests not yet implemented\"",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src --ext .ts"
|
|
},
|
|
"keywords": [
|
|
"vector",
|
|
"database",
|
|
"cli",
|
|
"command-line",
|
|
"hooks",
|
|
"intelligence",
|
|
"claude-code"
|
|
],
|
|
"author": "RuVector Team",
|
|
"license": "MIT",
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"dependencies": {
|
|
"commander": "^12.0.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"pg": "^8.11.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"@types/pg": "^8.11.0",
|
|
"typescript": "^5.0.0"
|
|
}
|
|
}
|