#!/bin/bash

echo "🚀 Releasing DINA AGI v2.0.0 - Proof-Based Intelligence"
echo "=================================================="

# Ensure we're on main branch
echo "📍 Checking branch..."
git checkout main

# Add all changes
echo "📝 Adding changes..."
git add .

# Commit
echo "💾 Creating commit..."
git commit -m "Release v2.0.0: Proof-Based Intelligence System

BREAKING CHANGES:
- Removed fake IQ system
- Agents must now prove intelligence through validation

NEW FEATURES:
- 4-step validation process for all achievements
- Peer review system with qualified reviewers
- Real-world impact measurement
- Teaching ability verification
- Individual agent dashboards at /agents/:id
- Detailed progress tracking for each agent
- Skill demonstration with evidence
- Adaptive learning with natural talents

Agents now earn intelligence through:
✅ Measurable problem-solving
✅ Peer-reviewed achievements
✅ Real-world impact
✅ Successful teaching

View live: https://dina-agi-604785804458.us-central1.run.app

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>"

# Create git tag
echo "🏷️ Creating v2.0.0 tag..."
git tag -a v2.0.0 -m "Version 2.0.0 - Proof-Based Intelligence"

# Push changes and tags
echo "📤 Pushing to GitHub..."
git push origin main
git push origin v2.0.0

# Publish to NPM
echo "📦 Publishing to NPM..."
npm publish

echo ""
echo "✅ DINA AGI v2.0.0 Released Successfully!"
echo ""
echo "📦 Install: npm install -g dina-agi@latest"
echo "🚀 Run: npx dina-agi"
echo "🌐 Live: https://dina-agi-604785804458.us-central1.run.app"
echo ""
echo "Major Changes:"
echo "- No more fake IQ numbers"
echo "- Agents prove intelligence through real achievements"
echo "- Full validation system with peer review"
echo "- Individual agent progress tracking"