Commit fecd446
committed
feat: 支持多模态图像输入功能
扩展消息系统以支持包含文本和图像的多模态用户输入。添加了图像附件处理、持久化存储、前端组件和相应的测试。
- 在类型定义中新增 `image` 部分类型和图像附件输入接口
- 更新 `SessionService` 和 `PersistentStore` 以正确序列化和反序列化多模态消息
- 扩展 Zod 模式以验证包含图像部分的消息内容
- 修改 `ChatInput` 组件以支持粘贴和选择图像作为附件
- 更新 `ChatView` 和状态管理以处理包含图像的消息发送
- 调整 `ContextAssembler` 在压缩上下文中处理图像占位符
- 改进 `Agent` 类的消息保存逻辑,避免保存空内容
- 为多模态功能添加全面的单元测试和集成测试
- 优化压缩阈值回退机制,提高大上下文窗口的稳定性1 parent c9b3a51 commit fecd446
26 files changed
Lines changed: 2768 additions & 1502 deletions
File tree
- docs/superpowers/specs
- packages/cli
- src
- agent
- api
- context
- storage
- server/routes
- services
- tests/unit
- agent-runtime
- agent
- server
- integrations/api
- services
- web
- src
- components
- chat
- preview
- services
- store/session
- slices
- utils
- tests
- components/chat
- store/session
Lines changed: 0 additions & 308 deletions
This file was deleted.
0 commit comments