#!/bin/bash
set -e

echo "Building vyctor (release mode)..."
cargo build --release

echo "Installing vyctor globally..."
cargo install --path . --force

echo ""
echo "✓ vyctor installed successfully!"
echo ""
echo "You can now use 'vyctor' from anywhere:"
echo "  vyctor init          # Initialize in a project"
echo "  vyctor lookup \"...\"  # Search files"
echo "  vyctor status        # Check index status"
echo ""
echo "Installed to: $(which vyctor)"
