feat: AI沙箱流式对话+引导学习+静态服务优化

- 后端: AI沙箱流式对话(SSE), reasoning_content 回退支持
- 前端: 沙箱页流式渲染, 引导学习面板, 默认场景/Starter兜底
- 优化: 前端改用静态文件服务器(node server.js)替代next dev, CSS永不丢失
- 修复: 通用模型默认改为可用模型, predev不再删.next缓存
This commit is contained in:
yuzhiran-dev
2026-05-27 18:26:30 +08:00
parent 0b66d752ce
commit 417fb266d4
14 changed files with 947 additions and 203 deletions
+7 -3
View File
@@ -16,12 +16,16 @@ module.exports = {
{
name: 'frontend',
cwd: '/home/wlt/ai-learning-platform/frontend',
script: 'npm',
args: 'run dev',
script: 'node',
args: 'server.js',
instances: 1,
autorestart: true,
watch: false,
max_restarts: 10
max_restarts: 3,
env: {
NODE_ENV: 'production',
PORT: 3000
}
}
]
}