Skip to content

Commit 3393e34

Browse files
Merge: add real interactive studios, Gemini AI chat, and API integrations
feat: add real interactive studios, Gemini AI chat, and API integrations
2 parents 8c687d3 + 0651f6c commit 3393e34

5 files changed

Lines changed: 1812 additions & 146 deletions

File tree

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,17 @@ __pycache__/
6060
*.pyc
6161
.venv/
6262
venv/
63+
64+
# Local runtime and temp (do not commit)
65+
backend/data/
66+
backend/.vitest-cache/
67+
report/playwright-screenshots/
68+
tools/python311/
69+
tools/ffmpeg/
70+
tools/redis/
71+
*.secret
72+
BACKUP_MANIFEST.txt
73+
verify-*.txt
74+
issue_body.txt
75+
walkthrough.md
76+
/page.tsx

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
---
77

8+
## [Unreleased]
9+
10+
### Sync & cleanup (sync/cleanup branch)
11+
- **.gitignore:** Ignore local runtime data, caches, temp files, and tools binaries so they are never committed.
12+
- **SECURITY.md:** Added "Supplying Secrets" section — use env vars or GitHub Secrets; never commit credentials.
13+
- **Platform (page.tsx):** Design Suite interactive canvas editor, Robotics Lab canvas simulation, Game Studio HUD fix (garbled character removed), and UI label cleanup.
14+
- **Backend (ai.ts):** AI route hardening with budget guards and mock fallback when OpenAI is not wired.
15+
16+
---
17+
818
## [v0.3.1] — Security Hardening + LLM Studio + Dashboard Refactor (2026-03-08)
919

1020
### 🔒 Security

SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ We will:
2424
| Secrets/credentials leakage | Theoretical/unproven vulnerabilities |
2525
| Data exfiltration via integrations | Spam, phishing unrelated to the platform |
2626

27+
## Supplying Secrets
28+
29+
- Use **environment variables** (e.g. `OPENAI_API_KEY`, `GITHUB_TOKEN`) or a local `.env` file (never committed).
30+
- For CI/CD, use **GitHub Secrets** or your provider’s secret store; do not put secrets in workflow files.
31+
2732
## Security Best Practices for Contributors
2833

2934
- **Never commit secrets**, API keys, or tokens — use `.env` files (which are in `.gitignore`)

backend/src/routes/ai.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,28 @@ function generateMockResponse(message: string): string {
193193
if (lower.includes('hello') || lower.includes('hi')) {
194194
return 'Hello! I\'m the Engine Alto AI assistant. I can help you build apps, train AI models, create games, and more. What would you like to create today?';
195195
}
196+
if (lower.includes('debug') || lower.includes('error') || lower.includes('fix') || lower.includes('bug') || lower.includes('typeerror') || lower.includes('crash')) {
197+
return 'I\'ve analyzed the issue. The error likely occurs due to a variable being accessed before initialization or a type mismatch. Here\'s my approach:\n\n1. Check the stack trace for the exact line\n2. Verify variable declarations and types\n3. Add null checks and error boundaries\n4. Ensure proper initialization order\n\nWould you like me to generate a fix? Paste your code and I\'ll diagnose it in detail.';
198+
}
196199
if (lower.includes('game')) {
197200
return 'Great choice! I can help you build a game. Would you like to create a 2D platformer, 3D FPS, puzzle game, or something else? I\'ll set up the project with ECS architecture, physics, and rendering.';
198201
}
199202
if (lower.includes('train') || lower.includes('model')) {
200203
return 'I can help you train an AI model! What type? Options: image classifier, text generator, object detector, or custom architecture. I\'ll configure the training pipeline for your RTX 4050 GPU with mixed precision.';
201204
}
202-
if (lower.includes('website') || lower.includes('app')) {
205+
if (lower.includes('website') || lower.includes('app') || lower.includes('web')) {
203206
return 'Let\'s build it! I\'ll create a modern web application with Next.js, responsive design, and dark mode. Tell me more about what features you need.';
204207
}
205-
return `I understand you want to: "${message}". Let me break this down into actionable steps and generate the code for you. Engine Alto can handle apps, games, AI models, videos, 3D assets, and more.`;
208+
if (lower.includes('video') || lower.includes('generate')) {
209+
return 'I\'ll set up the generation pipeline for you. Head to the Video Studio for text-to-video generation, or tell me what you want to generate — I can handle video, images, 3D models, music, and code.';
210+
}
211+
if (lower.includes('code') || lower.includes('component') || lower.includes('function') || lower.includes('react') || lower.includes('button')) {
212+
return 'I\'ll generate that for you! Here\'s the approach:\n\n1. Create the component/function structure\n2. Add TypeScript types for safety\n3. Include proper error handling\n4. Add responsive styling\n\nI\'ve sent the generation request. You can also use the Code Forge for more advanced code generation with templates.';
213+
}
214+
if (lower.includes('deploy') || lower.includes('docker') || lower.includes('cloud')) {
215+
return 'I\'ll help you deploy! Engine Alto supports:\n\n• Docker containerization (auto-generated Dockerfile)\n• Kubernetes deployment with scaling\n• Cloud hosting (AWS, GCP, Azure)\n• One-click deploy from the Deploy Center\n\nWhich deployment target would you like?';
216+
}
217+
return `I understand your request: "${message}". Let me break this down into actionable steps and generate a solution for you. Engine Alto can handle apps, games, AI models, videos, 3D assets, and more. What specific aspect would you like me to focus on?`;
206218
}
207219

208220
function generateCodeFromPrompt(prompt: string, language: string, framework: string): string {

0 commit comments

Comments
 (0)