feat: add visual style picker and contextual previews

This commit is contained in:
2026-05-19 17:51:46 +08:00
parent ab4625abb7
commit 265d7c9f5e
15 changed files with 356 additions and 121 deletions

View File

@@ -34,6 +34,7 @@
- VPS 数据持久化在 `/opt/ai-toy-patent-workflow/data`
- VPS 生产环境变量在 `/opt/ai-toy-patent-workflow/deploy/.env.production`,不入库
- 资源索引:运行 `npm run resources:index` 生成 `data/resource-index.json``data/resource-index.md``data/named/` 人类可读软链接;原始资源文件名不能直接改,避免 session JSON / 图片 URL 断链
- 风格示意图:运行 `npm run styles:previews -- --force` 用 GPT 图片模型生成 `public/style-previews/*.png`UI 左侧风格卡片直接引用这些小图
## 环境变量
- `OPENAI_API_KEY` — GPT API Key文本/结构化/图片生成统一走 GPT 最高规格配置