feat(ai): 支持聊天附件解析并优化数据库对象操作

This commit is contained in:
Syngnat
2026-06-12 12:30:28 +08:00
parent d5688d31f6
commit d1aa06d537
21 changed files with 908 additions and 134 deletions

View File

@@ -6110,6 +6110,48 @@ body[data-ui-version="v2"] .gn-v2-ai-attachment-thumb button {
font-size: 10px;
}
body[data-ui-version="v2"] .gn-v2-ai-attachment-file {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: min(100%, 280px);
min-height: 28px;
padding: 4px 8px;
border: 0.5px solid var(--gn-br-2);
border-radius: 8px;
background: var(--gn-bg-panel);
color: var(--gn-fg-1);
font-size: 11.5px;
}
body[data-ui-version="v2"] .gn-v2-ai-attachment-file.has-warning {
border-color: rgba(217, 119, 6, 0.45);
background: rgba(217, 119, 6, 0.08);
}
body[data-ui-version="v2"] .gn-v2-ai-attachment-file-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body[data-ui-version="v2"] .gn-v2-ai-attachment-file-meta {
color: var(--gn-fg-3);
flex-shrink: 0;
}
body[data-ui-version="v2"] .gn-v2-ai-attachment-file button {
width: 16px;
height: 16px;
padding: 0;
border: none;
border-radius: 50%;
background: var(--gn-bg-subtle);
color: var(--gn-fg-3);
line-height: 1;
}
body[data-ui-version="v2"] .gn-v2-ai-input-box {
min-height: 72px;
padding: 0;