ruvector/scripts
rUv 66dc4736b8 fix: Resolve pre-existing test failures and fix sync script
Test fixes:
- test_version: Updated assertion from "0.1.0" to "0.1.2" to match Cargo.toml
- test_tokenize: Fixed assertion - "the" (3 chars) passes > 2 filter
- test_mode_collapse_detection: Use truly identical vectors for collapse test

Script fix:
- sync-lockfile.sh: Handle missing npm directory gracefully

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 17:54:38 +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
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: Add automated package-lock.json sync tooling 2025-11-25 21:24:14 +00:00
sync-lockfile.sh fix: Resolve pre-existing test failures and fix sync script 2025-11-26 17:54:38 +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-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 and prevent common issues.

📜 Available Scripts

🔄 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

🚀 Quick Start

  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
    

See CONTRIBUTING.md for full documentation.