feat: 支持智能体文档附件与轻量读取

- 建立文档上传、异步读取、对象存储、补偿与聊天绑定闭环

- 按智能体 20K 上下文预算选择文档片段并保留稳定引用

- 统一聊天文件卡片、类型图标、草稿恢复与可靠下载
This commit is contained in:
2026-07-29 01:32:19 +08:00
parent fceedd02cd
commit d45c67a317
72 changed files with 5876 additions and 237 deletions

View File

@@ -131,6 +131,14 @@
--toolbar-border: 220 9% 23%;
--text-strong: 0 0% 96%;
--text-muted: 218 10% 70%;
--document-icon-foreground: 0 0% 100%;
--document-icon-generic: 215 14% 54%;
--document-icon-markdown: 232 62% 64%;
--document-icon-pdf: 347 76% 62%;
--document-icon-presentation: 25 82% 60%;
--document-icon-spreadsheet: 142 42% 50%;
--document-icon-text: 220 9% 54%;
--document-icon-word: 211 84% 60%;
--glass-tint: 218 26% 16.2%;
--glass-border: 210 100% 98%;
--glass-blur: 22px;

View File

@@ -152,9 +152,18 @@
--toolbar-border: 214 18% 90%;
--text-strong: 216 22% 19%;
--text-muted: 215 10% 49%;
--document-icon-foreground: 0 0% 100%;
--document-icon-generic: 215 16% 48%;
--document-icon-markdown: 232 66% 58%;
--document-icon-pdf: 347 84% 58%;
--document-icon-presentation: 25 88% 56%;
--document-icon-spreadsheet: 142 48% 44%;
--document-icon-text: 220 9% 46%;
--document-icon-word: 211 92% 52%;
--glass-tint: 212 100% 98.9%;
--glass-border: 0 0% 100%;
--glass-blur: 20px;
/* 常驻大面积表面避免创建高开销背景模糊合成层 */
--persistent-surface-backdrop-filter: none;
--radius-modal: 20px;