#!/bin/bash
echo ""
echo "  ============================================"
echo "   TAP LABS - connecting your AI assistant"
echo "  ============================================"
echo ""
if ! command -v node >/dev/null 2>&1; then
  echo "  Node.js is required. Install it from https://nodejs.org (LTS), then run this again."
  echo "  (On Mac with Homebrew: brew install node)"
  read -p "  Press Enter to close."
  exit 1
fi
echo "  Preparing the connector (first run takes a minute)..."
npx --yes tapmarket-connect@latest --help >/dev/null 2>&1
echo "  Setting up your wallet..."
npx --yes tapmarket-connect@latest setup
echo ""
echo "  Done! If Claude Desktop is installed, restart it and ask:"
echo "    'What specialists can you hire for me?'"
echo "  Don't have it? Get it: https://claude.ai/download"
read -p "  Press Enter to close."
