iconsulting/packages/services
hailin 1f6d473649 feat(admin): add multimodal image paste support to all admin chat interfaces
支持管理员在3个管理聊天界面(系统总监、评估指令、收集指令)中通过
粘贴板粘贴图片,实现与管理Agent的多模态对话。

**新增文件:**
- `shared/hooks/useImagePaste.ts`: 共享 hook,处理剪贴板图片粘贴、
  base64 转换、待发送图片管理、多模态内容块构建

**后端改动 (conversation-service):**
- 3个管理聊天服务 (system-supervisor-chat, directive-chat,
  collection-directive-chat): chat() 方法参数类型从 `content: string`
  改为 `content: Anthropic.MessageParam['content']`,支持接收图片块
- 3个管理控制器 (admin-supervisor, admin-assessment-directive,
  admin-collection-directive): DTO content 类型改为 `any` 以透传
  前端发送的多模态内容

**前端改动 (admin-client):**
- 3个 API 类型文件: ChatMessage.content 类型扩展为
  `string | ContentBlock[]`
- SupervisorPage: 集成 useImagePaste hook,添加 onPaste 处理、
  待发送图片预览(64x64 缩略图+删除按钮)、消息中图片渲染
- DirectiveChatDrawer: 同上,48x48 缩略图适配 Drawer 宽度
- CollectionChatDrawer: 同上

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 21:18:57 -08:00
..
conversation-service feat(admin): add multimodal image paste support to all admin chat interfaces 2026-02-08 21:18:57 -08:00
docling-service fix(docling): align volume mount with HF default cache path 2026-02-07 07:38:28 -08:00
evolution-service fix(analytics): handle statDate as string from database 2026-01-26 08:40:09 -08:00
file-service fix(files): replace MinIO presigned URLs with API proxy + base64 for Claude 2026-02-07 04:49:39 -08:00
knowledge-service feat(knowledge): add Docling document parsing microservice 2026-02-07 05:24:10 -08:00
payment-service fix(payment): return paymentUrl from adapters, strip base64 from tool output 2026-02-07 11:44:54 -08:00
user-service fix(nginx): fix admin location try_files path and add multi-tenancy migrations 2026-01-26 07:46:52 -08:00