64 Commits

Author SHA1 Message Date
Your Name
b34fb88c98 修复自动模式优先使用后台默认生图模型
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-12 13:54:51 +08:00
Your Name
c9c0356fe3 增强Agent分析链路并兼容手动模型触发
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-12 13:39:54 +08:00
Your Name
46f06819dc 新增Agent自动模型标签并支持智普4.7服务商
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-12 12:47:46 +08:00
Your Name
75993d98af 修复画布自动模式误用预览尺寸为分辨率
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 23:06:53 +08:00
Your Name
1092db2b88 优化自动模式图片分析折叠展示
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 23:02:54 +08:00
Your Name
d39bc8be6c 修复自动Agent图路由节点命名冲突
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 22:48:30 +08:00
Your Name
e0feb87964 强化图片Agent预分析并降低模板化回复
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 22:43:26 +08:00
Your Name
955b577bc5 增强上传图片视觉分析并输出真实Agent分析流程
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 22:35:11 +08:00
Your Name
023c2fb754 增强Agent真实分析对话并减少硬编码兜底
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 22:29:15 +08:00
Your Name
48deda49f7 优化自动模式需求收敛与澄清流程
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-08 11:25:50 +08:00
Your Name
55c41f7b45 修复RUXA比例参数并禁止Base64入参
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 20:47:22 +08:00
Your Name
48f062897b 修复RUXA结果解析导致任务超时
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 20:38:39 +08:00
Your Name
ee890bc304 脱敏环科Gemini日志中的API密钥
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 20:29:38 +08:00
Your Name
3a20c5a36d 新增RUXA生图服务商并打通聊天/画布链路
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-07 20:09:31 +08:00
Your Name
ffd2d1a291 修正自动模式默认模型匹配
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-05 21:53:36 +08:00
Your Name
66458e97fb 引入LangGraph自动模式流程
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-05 21:23:44 +08:00
Your Name
2ea63d978f 优化自动模式上下文
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-05 20:53:01 +08:00
Your Name
b4c18bd554 feat: add image gen failover and loading placeholder
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Enable model fallback for image generation and show the generation placeholder in the canvas chat.
2026-02-03 16:45:11 +08:00
Your Name
2572db545c fix: 修复 huanke-gemini 不处理 file 类型图片的问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 在 sendHuankeGeminiRequest 中添加对 type: 'file' 格式的处理
- 支持从 Chat API 传过来的 { type: 'file', mediaType, data/url } 格式
- 确保图片编辑请求能正确传递图片到 API
2026-02-02 00:25:51 +08:00
Your Name
4267ac42bf Add debug logging for Huanke Gemini model keys
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-02 00:12:09 +08:00
Your Name
2dfe29bf17 fix: 添加 huanke-gemini 到供应商类型校验与数据库 schema
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-01 23:42:51 +08:00
Your Name
9d4579eb53 feat: 添加环科Gemini生图API支持(禁用Base64,使用URL格式)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-01 23:08:59 +08:00
Your Name
3855cb05cd feat: 添加智能自动模式的默认生图模型配置
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-01 22:51:33 +08:00
Your Name
51196ea0dd feat: 添加无限画布设置(启用/禁用、默认模型)
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-02-01 22:41:42 +08:00
Your Name
59a81f3c0e feat: 画布图片节点添加图片标注功能
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 17:12:30 +08:00
Your Name
2f667cede8 feat: LLM 驱动的精准提示词优化
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 使用 Qwen VL 根据历史对话动态优化提示词
2. 强调精准局部编辑,只修改用户指定的部分
3. 保护其他元素不被误改
4. 包含具体的编辑要求和避免项

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 16:28:39 +08:00
Your Name
544a1cd46a feat: 智能分析器支持历史对话上下文
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. analyzeIntent 接收历史对话消息
2. 传递最近10条对话给 LLM 分析
3. 帮助 AI 理解用户连续对话的意图(如再调亮一点)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 16:13:44 +08:00
Your Name
a779555f3f fix: 更新 chat 和 dynamic-provider 配置
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 11:24:05 +08:00
Your Name
a6a267e819 fix: 修复占位图和图片显示问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
1. 移除 onFinish 中的数据库重新加载逻辑(时机不对,会打断图片生成流程)
2. 保留 appendedMessages 和 mergedMessages 合并逻辑
3. 修复 dynamic-provider.ts 的循环依赖(使用动态导入)
4. 不在 onFinish 中调用 completeGeneration(),因为图片可能还在生成

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 11:18:39 +08:00
Your Name
231d726b37 fix: 完善智能自动模式对话流程
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
修复内容:
1. 前端:检查用户最后一条消息是否有图片(而不是整个对话最后一条)
2. 前端:useEffect 依赖项添加 selectedModelId
3. 后端:错误回退时也生成友好消息
4. 后端:保存消息时添加完整的数据库字段
5. 分析器:增加颜色调整关键词匹配(改成X色、换成X色)

现在大模型(Qwen3 VL)会生成自然对话回复

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 02:18:30 +08:00
Your Name
6462fe2456 feat: 智能自动模式先对话再生图
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
修复内容:
1. 修复变量名 smartAutoHistoryImage -> smartAutoHistoryImages
2. 修复 model-router.ts 循环依赖问题
3. 智能自动模式显示占位图(当用户发送图片时)
4. 先发送对话消息(如:好的,我来帮你...),再生成图片
5. 让用户感受到是在和AI对话,而不是机器执行

流程:
用户发送请求 -> AI回复对话 -> 显示生图占位图 -> 显示生成结果

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-01 00:08:37 +08:00
Your Name
6ccdd73c65 fix: 既梦API直接使用图片URL,不再转Base64
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 删除urlToBase64函数
- 直接传递图片URL给既梦API(API原生支持)
- 只有前端上传的Base64图片才需要先上传S3获取URL
- 大幅减少请求体大小和处理时间

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:59:51 +08:00
Your Name
04bd6dda32 fix: 修复智能分析器循环依赖导致的初始化错误
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 改用动态导入 getEnabledAiModelsWithProvider 和 getLanguageModelById
- 避免 Cannot access 'T' before initialization 错误

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:51:44 +08:00
Your Name
691e9862e7 feat: 自动使用历史图片进行连续对话编辑
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 用户没有发送新图片时,自动使用历史中最近的图片
- 支持连续对话场景:换颜色、调整、重做等
- 优先使用AI生成的图片,其次是用户上传的图片
- 让对话更自然,不需要每次都重新上传图片

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:37:23 +08:00
Your Name
760509100c fix: 保持用户消息原样显示,AI自然对话后再执行编辑
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 用户发送的消息不再被修改,保持原样显示
- 优化后的提示词只用于API调用,不影响用户消息
- AI会先用自然语言回复用户,再显示编辑结果

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:29:30 +08:00
Your Name
8763e8d53f feat: 智能图片编辑系统 - 意图分析、提示词优化、模型路由
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
新增智能自动模式功能:
- smart-analyzer.ts: 智能意图分析器,识别抠图/换背景/增强等8种子意图
- prompt-optimizer.ts: 提示词优化器,将简单输入转为专业提示词
- model-router.ts: 智能模型路由器,根据意图选择最佳模型
- 修改route.ts集成新模块,替换原有关键词匹配逻辑

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 23:15:11 +08:00
Your Name
e861fc5203 feat: add multi-video tutorial support with dropdown menu and video management
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:48:14 +08:00
Your Name
024ec19c70 feat: add tutorial video button and ranking visibility toggle in navbar settings
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 20:37:29 +08:00
Your Name
c44c8cff6a feat: add toolbox1/toolbox2 name and enable settings in navbar config
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-31 11:11:58 +08:00
Your Name
ee4bb14736 feat: add banner settings to admin panel for configuring ad banner text and link
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-26 22:26:44 +08:00
Your Name
c7ffcda87b feat: add infinite canvas feature with AI image generation
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Add canvas project and node database tables
- Create canvas workspace with drag, resize, zoom and pan
- Add ImageNode with background removal, enhance, extend, angle edit, scene fusion
- Add VideoNode with playback controls
- Add TextNode for text editing
- Integrate AI image generation API (Gemini/Alibaba)
- Implement viewport culling for performance optimization
- Add canvas entry in top navigation bar
2026-01-24 19:48:13 +08:00
Your Name
0272f5e391 fix: optimize volcano vision prompt - only generate 1 image for scene fusion
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-22 19:55:45 +08:00
Your Name
f4e20cc4c8 fix: force add missing migration file
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-18 15:32:51 +08:00
Your Name
fd6e0bdb31 fix: 修复数据库迁移记录,确保 defaultTheme 字段被正确添加
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-18 15:32:04 +08:00
Your Name
24af251fd3 feat: 系统设置增加默认主题模式配置
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 管理员可以设置网站默认使用深色/浅色/跟随系统模式
- 新增 defaultTheme 字段到 SiteSettings 表
- 前端 ThemeProvider 从数据库读取默认主题设置
2026-01-18 15:21:17 +08:00
Your Name
59eff93109 feat: 阿里生图自动模式使用输入图片的原始比例
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- auto 模式不传递 size 参数,让 API 根据输入图片自动决定比例
- 根据阿里云文档:默认时宽高比与输入图(多图时为最后一张)一致
- 只有用户明确选择具体比例(如 4:3、16:9)时才传递 size 参数
- 避免图片被压扁变形
2026-01-18 11:22:19 +08:00
Your Name
f46ee10eba fix: 优化阿里生图分辨率计算,确保宽高比和分辨率正确配合
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 改进 clamp 逻辑:超出范围时按比例缩放而非直接截断
- 确保在缩放后仍保持正确的宽高比
- 分辨率等级(1K/2K/4K)和宽高比(4:3/16:9等)可以正确组合
2026-01-18 11:19:51 +08:00
Your Name
086fb70eb2 fix: 修复阿里生图模型 aspectRatio 参数不生效问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- 将 aspectRatio(如 4:3)转换为阿里云 API 需要的 size 格式(如 1365*1024)
- 结合 imageSize(1K/2K/4K)确定基准分辨率
- 自动计算保持总像素数接近目标分辨率的宽高
- 确保宽高在阿里云 API 要求的 512-2048 范围内
2026-01-18 11:16:24 +08:00
Your Name
4008e958a3 fix: 修复阿里生图模型图片解析问题
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- AI SDK convertToModelMessages 将 url 转换为 data 字段
- 同时支持 url 和 data 字段以兼容不同格式
2026-01-12 14:00:58 +08:00
Your Name
da207f654e debug: 添加阿里生图消息格式调试日志
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
2026-01-12 13:56:38 +08:00