#!/bin/bash # Script para actualizar el Space de Hugging Face con la versión 2.0.0 echo "🚀 Actualizando Hugging Face Space..." # 1. Clonar el Space existente echo "📥 Clonando el Space de Hugging Face..." cd /tmp rm -rf hf-space git clone https://huggingface.co/spaces/ignorantesnaturales/mcp-figma-comment-summary hf-space # 2. Entrar al directorio cd hf-space # 3. Configurar git git config user.email "ignorantesnaturales@gmail.com" git config user.name "Ignorantes Naturales" # 4. Copiar el README actualizado echo "📝 Copiando README actualizado..." cp /Users/fran/Documents/IN/Labs/mcp-figma-comment-summary/README.huggingface.md README.md # 5. Verificar cambios echo "🔍 Verificando cambios..." git status # 6. Añadir cambios echo "➕ Añadiendo cambios..." git add README.md # 7. Hacer commit echo "💾 Haciendo commit..." git commit -m "Update to v2.0.0 - Complete Figma REST API with 29 endpoints - Added 24 new endpoints (from 5 to 29 total) - Complete Files API: get files, nodes, render images - Comments: full CRUD + reactions - Variables: design tokens (Enterprise) - Webhooks V2: create, manage, debug - Projects & Teams: organizational access - Dev Resources: design-to-dev bridge - Version History: track changes - Users: current user info New endpoint categories: - Comments (9 tools): complete CRUD operations + reactions - Files (4 tools): file structure, nodes, image rendering - Users (1 tool): current user information - Version History (1 tool): file version tracking - Projects & Teams (2 tools): organizational access - Variables (3 tools): design tokens - Enterprise - Dev Resources (3 tools): design-to-dev bridge - Webhooks V2 (6 tools): event automation" # 8. Push a Hugging Face echo "🚀 Subiendo a Hugging Face..." git push echo "✅ Actualización completada!" echo "Verifica en: https://huggingface.co/spaces/ignorantesnaturales/mcp-figma-comment-summary"