feat: v0.6.0 — 公益AI接口 + Agent灵魂借尸还魂 + 知识库 + 全局AI诊断 + 官网改版

This commit is contained in:
晴天
2026-03-07 19:36:25 +08:00
parent b09f48f0dd
commit 0752dc2a71
55 changed files with 4346 additions and 480 deletions

View File

@@ -426,6 +426,57 @@
border-color: var(--accent);
}
/* 首次引导提示 */
.ast-page-guide {
display: flex;
align-items: center;
gap: 10px;
margin-top: 16px;
padding: 10px 14px;
background: var(--accent-muted, rgba(99, 102, 241, 0.08));
border: 1px solid var(--accent-border, rgba(99, 102, 241, 0.2));
border-radius: var(--radius-lg);
font-size: 12px;
line-height: 1.5;
color: var(--text-secondary);
text-align: left;
width: 100%;
max-width: 560px;
position: relative;
}
.ast-guide-badge {
flex-shrink: 0;
background: var(--accent);
color: #fff;
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 10px;
white-space: nowrap;
}
.ast-guide-text {
flex: 1;
min-width: 0;
}
.ast-guide-text b {
color: var(--text-primary);
}
.ast-guide-close {
flex-shrink: 0;
background: none;
border: none;
color: var(--text-tertiary);
font-size: 18px;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
line-height: 1;
}
.ast-guide-close:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
/* ── Skills 网格 ── */
.ast-skills-grid {
display: grid;
@@ -1520,3 +1571,112 @@
justify-content: flex-end;
gap: 8px;
}
/* ── 灵魂移植卡片 ── */
.ast-soul-card {
border: 1px solid var(--border-secondary);
border-radius: var(--radius-md);
background: var(--bg-primary);
overflow: hidden;
}
.ast-soul-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-secondary);
font-size: 12px;
font-weight: 600;
color: var(--text-secondary);
}
.ast-soul-header svg { flex-shrink: 0; }
.ast-soul-files {
display: flex;
flex-direction: column;
}
.ast-soul-file {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 14px;
font-size: 12px;
border-bottom: 1px solid var(--border-secondary);
transition: background var(--transition-fast);
}
.ast-soul-file:last-child { border-bottom: none; }
.ast-soul-file:hover { background: var(--bg-card-hover); }
.ast-soul-file-icon {
width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.ast-soul-file.loaded .ast-soul-file-icon {
background: var(--success-muted, rgba(34,197,94,0.1));
color: var(--success);
}
.ast-soul-file.missing .ast-soul-file-icon {
background: var(--error-muted, rgba(239,68,68,0.1));
color: var(--error);
}
.ast-soul-file-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.ast-soul-file-name {
font-weight: 600;
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 12px;
}
.ast-soul-file.missing .ast-soul-file-name {
color: var(--text-tertiary);
}
.ast-soul-file-desc {
font-size: 11px;
color: var(--text-tertiary);
line-height: 1.2;
}
.ast-soul-file-size {
font-size: 11px;
color: var(--text-tertiary);
font-family: var(--font-mono);
flex-shrink: 0;
}
/* 按钮样式补充 */
.btn-ghost {
background: transparent;
border: 1px solid var(--border-secondary);
color: var(--text-secondary);
}
.btn-ghost:hover {
background: var(--bg-card-hover);
border-color: var(--border-primary);
color: var(--text-primary);
}
.btn svg { vertical-align: -2px; }
/* 加载旋转动画 */
.ast-spin {
animation: ast-spin 1s linear infinite;
}
@keyframes ast-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}