#!/bin/bash set -e echo "Starting setup for Product OS..." cd "/Users/markhenderson/Cursor Projects/master-ai" # Clone Theia if not exists if [ ! -d "theia" ]; then echo "Cloning Theia repository..." git clone https://github.com/eclipse-theia/theia.git echo "Theia cloned successfully!" else echo "Theia directory already exists" fi # Initialize git if needed if [ ! -d ".git" ]; then echo "Initializing git..." git init fi # Add remote if not exists if ! git remote get-url origin > /dev/null 2>&1; then echo "Adding GitHub remote..." git remote add origin https://github.com/MawkOne/master-ai.git fi # Stage all files echo "Staging files..." git add . # Commit echo "Creating commit..." git commit -m "Add Theia base + Product OS vision and guides" || echo "No changes to commit" # Set main branch echo "Setting main branch..." git branch -M main # Push to GitHub echo "Pushing to GitHub..." git push -u origin main --force echo "Setup complete! ✅" echo "" echo "Next steps:" echo " cd theia" echo " nvm use 20" echo " npm install" echo " npm run build:electron"