ruvector/scripts
rUv ca527cb5b9 feat: Add persistence support and Cypher queries to @ruvector/graph-node
- Add persistence support using redb storage backend
- Add GraphDatabase.open() factory method for opening existing databases
- Add isPersistent() and getStoragePath() methods
- Update TypeScript definitions with all new APIs
- Add benchmark suite (131K+ ops/sec batch inserts)
- Add comprehensive test suite with persistence tests
- Add GitHub workflow for multi-platform builds
- Fix sync-lockfile.sh working directory bug
- Publish @ruvector/graph-node@0.1.15 to npm
- Publish @ruvector/graph-node-linux-x64-gnu@0.1.15 to npm

Performance benchmarks:
- Node Creation: 9.17K ops/sec
- Batch Node Creation: 131.10K ops/sec
- Edge Creation: 9.30K ops/sec
- Vector Search (k=10): 2.35K ops/sec
- k-hop Traversal: 10.28K ops/sec

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 04:26:50 +00:00
..
build feat: Update NAPI-RS bindings with new capabilities (v0.1.15) 2025-11-26 18:47:48 +00:00
check-and-publish-router-wasm.sh feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
ci-sync-lockfile.sh feat: Add automated package-lock.json sync tooling 2025-11-25 21:24:14 +00:00
deploy.sh feat: Implement GNN forgetting mitigation (#17) 2025-11-26 23:17:07 +00:00
DEPLOYMENT-QUICKSTART.md feat: Implement GNN forgetting mitigation (#17) 2025-11-26 23:17:07 +00:00
DEPLOYMENT.md feat: Implement GNN forgetting mitigation (#17) 2025-11-26 23:17:07 +00:00
install-hooks.sh feat: Add automated package-lock.json sync tooling 2025-11-25 21:24:14 +00:00
publish-crates.sh feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
publish-router-wasm.sh feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
README.md feat: Implement GNN forgetting mitigation (#17) 2025-11-26 23:17:07 +00:00
sync-lockfile.sh feat: Add persistence support and Cypher queries to @ruvector/graph-node 2025-11-27 04:26:50 +00:00
test-all-graph-commands.sh feat: Add Neo4j-compatible hypergraph database package (ruvector-graph) 2025-11-25 23:11:54 +00:00
test-deploy.sh feat: Implement GNN forgetting mitigation (#17) 2025-11-26 23:17:07 +00:00
test-docker-package.sh fix: Export new NAPI functions in native wrapper 2025-11-26 19:05:00 +00:00
test-graph-cli.sh feat: Add Neo4j-compatible hypergraph database package (ruvector-graph) 2025-11-25 23:11:54 +00:00
validate-packages-simple.sh feat: Prepare packages for npm publishing with comprehensive validation 2025-11-23 04:44:45 +00:00
validate-packages.sh feat: Prepare packages for npm publishing with comprehensive validation 2025-11-23 04:44:45 +00:00

RuVector Automation Scripts

This directory contains automation scripts to streamline development, deployment, and prevent common issues.

📜 Available Scripts

🚀 deploy.sh

Comprehensive deployment script for publishing to crates.io and npm.

Handles:

  • Version management and synchronization
  • Pre-deployment checks (tests, linting, formatting)
  • WASM package builds
  • Crate publishing to crates.io
  • NPM package publishing
  • GitHub Actions trigger for cross-platform builds

Usage:

# Full deployment
./scripts/deploy.sh

# Dry run (test without publishing)
./scripts/deploy.sh --dry-run

# See all options
./scripts/deploy.sh --help

See: DEPLOYMENT.md for complete documentation

🧪 test-deploy.sh

Tests the deployment script without publishing.

Usage: ./scripts/test-deploy.sh

🔄 sync-lockfile.sh

Automatically syncs package-lock.json with package.json changes.

Usage: ./scripts/sync-lockfile.sh

🪝 install-hooks.sh

Installs git hooks for automatic lock file management.

Usage: ./scripts/install-hooks.sh

🤖 ci-sync-lockfile.sh

CI/CD script for automatic lock file fixing.

Usage: ./scripts/ci-sync-lockfile.sh

📦 publish-crates.sh

Legacy script for publishing individual crates. Use deploy.sh instead.

🧭 validate-packages.sh

Validates package configurations and dependencies.

🚀 Quick Start

For Development

  1. Install git hooks (recommended):

    ./scripts/install-hooks.sh
    
  2. Test the hook:

    cd npm/packages/ruvector
    npm install chalk
    git add package.json
    git commit -m "test: Add chalk dependency"
    # Hook automatically updates lock file
    

For Deployment

  1. Test deployment script:

    ./scripts/test-deploy.sh
    
  2. Set credentials (required):

    export CRATES_API_KEY="your-crates-io-token"
    export NPM_TOKEN="your-npm-token"
    
  3. Run dry run (recommended first):

    ./scripts/deploy.sh --dry-run
    
  4. Deploy:

    ./scripts/deploy.sh
    

📖 Documentation

🔐 Security

Never commit credentials! Always use environment variables or secure credential storage.

See DEPLOYMENT.md#security-best-practices for details.