feat(figgos): AI generation pipeline + frontend API integration

Backend:
- Add Gemini-powered profile generation (text + image)
- Add image processing with background removal (sharp)
- Add S3 storage service for figure images
- Extend figures schema with generatedProfile, language, status columns
- Wire up synchronous generation pipeline on POST /api/v1/figures

Frontend (Mobile + Web):
- Replace all mock data with real API calls
- Show generatedProfile data (subtitle, backstory, stats, items, specialAttack)
- Display generated images from S3 or name placeholders
- Create web API service ($lib/api.ts)
- Delete mock cards data files

Infrastructure:
- Add CORS origin for web dev port (5196)
- Add GEMINI_API_KEY + FIGGOS_STORAGE_PUBLIC_URL to env generation
- Add figgos-storage bucket to shared-storage factory
- Add .gitignore for workbench/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Chr1st1anG 2026-02-11 23:22:51 +01:00
parent 49c6ecc377
commit 9d189b1331
37 changed files with 2521 additions and 622 deletions

View file

@ -616,7 +616,9 @@ const APP_CONFIGS = [
S3_ACCESS_KEY: (env) => env.S3_ACCESS_KEY || 'minioadmin',
S3_SECRET_KEY: (env) => env.S3_SECRET_KEY || 'minioadmin',
S3_BUCKET: () => 'figgos-storage',
CORS_ORIGINS: () => 'http://localhost:5181,http://localhost:8081',
CORS_ORIGINS: () => 'http://localhost:5196,http://localhost:8081',
GEMINI_API_KEY: (env) => env.GEMINI_API_KEY,
FIGGOS_STORAGE_PUBLIC_URL: () => 'http://localhost:9000/figgos-storage',
},
},