Squashed 'vendor/ruvector/' content from commit b64c2172

git-subtree-dir: vendor/ruvector
git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
ruv
2026-02-28 14:39:40 -05:00
commit d803bfe2b1
7854 changed files with 3522914 additions and 0 deletions

23
.claude/ruvector-fast.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Fast RuVector hooks wrapper - avoids npx overhead (20x faster)
# Usage: .claude/ruvector-fast.sh hooks <command> [args...]
# Find ruvector CLI - check local first, then global
RUVECTOR_CLI=""
# Check local npm package
if [ -f "$PWD/npm/packages/ruvector/bin/cli.js" ]; then
RUVECTOR_CLI="$PWD/npm/packages/ruvector/bin/cli.js"
# Check node_modules
elif [ -f "$PWD/node_modules/ruvector/bin/cli.js" ]; then
RUVECTOR_CLI="$PWD/node_modules/ruvector/bin/cli.js"
# Check global npm
elif command -v ruvector &> /dev/null; then
exec ruvector "$@"
# Fallback to npx (slow but works)
else
exec npx ruvector@latest "$@"
fi
# Execute with node directly (fast path)
exec node "$RUVECTOR_CLI" "$@"