#!/usr/bin/env bash
# FIVO Cell — 30-Second Quickstart
# "Switch tools. Keep context. Cell already knows you."

set -e

echo "🧬 FIVO Cell — Permanent Developer Memory"
echo ""

# Check Node.js
if ! command -v node &> /dev/null; then
  echo "❌ Node.js required. Install from https://nodejs.org"
  exit 1
fi

echo "📦 Installing FIVO Cell..."
npm install -g fivocell 2>/dev/null || npm install -g .

echo ""
echo "🚀 Starting daemon..."
cell start &
sleep 2

echo ""
echo "🔍 Scanning projects..."
cell scan

echo ""
echo "📋 Your @cell context:"
cell context

echo ""
echo "✅ Done! Cell knows you now."
echo ""
echo "Commands:"
echo "  cell context          — See your context"
echo "  cell style            — Your code style"
echo "  cell predict          — Predictions"
echo "  cell tool-compare     — AI tool comparison"
echo "  cell rhythm           — Your coding rhythm"
echo ""
echo "Use @cell in any AI tool (Cursor, Claude Code, Antigravity)"
