#!/usr/bin/env bash set -euo pipefail echo "" echo " vibesci.ai — Donate Compute to Science" echo "" # Check dependencies command -v node >/dev/null 2>&1 || { echo "Error: Node.js is required. Install from https://nodejs.org"; exit 1; } command -v npm >/dev/null 2>&1 || { echo "Error: npm is required."; exit 1; } INSTALL_DIR="${HOME}/.vibesci" mkdir -p "${INSTALL_DIR}" echo "→ Installing vibesci-node..." npm install -g vibesci-node@latest 2>/dev/null || npm install --prefix "${INSTALL_DIR}" vibesci-node@latest echo "→ Registering node..." vibesci-node register --auto 2>/dev/null || "${INSTALL_DIR}/node_modules/.bin/vibesci-node" register --auto echo "" echo "✓ Done! Run 'vibesci-node start' to begin contributing." echo " Dashboard: https://vibesci.ai/dashboard" echo ""