设置页接入用户角色管理与预设采样编辑。

并把指令目录接口一并挂上,供输入框补全拉取。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-14 01:15:36 +08:00
co-authored by Cursor
parent 3684e0d6e2
commit 26328751ee
4 changed files with 609 additions and 14 deletions
+119
View File
@@ -521,6 +521,73 @@ code {
line-height: 1.5;
}
.preset-gen-editor {
margin-bottom: 12px;
padding: 10px 12px;
background: var(--st-surface);
border: 1px solid var(--st-border);
border-radius: 6px;
}
.preset-gen-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
margin-bottom: 10px;
font-size: 12px;
color: var(--st-text);
}
.preset-gen-hint {
color: var(--st-faint);
font-weight: 400;
}
.preset-gen-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px 10px;
}
.preset-gen-grid .gen-field {
margin: 0;
}
.preset-gen-grid .gen-field-check {
flex-direction: row;
align-items: center;
gap: 8px;
padding-top: 18px;
}
.preset-gen-grid .gen-field-check input {
width: auto;
margin: 0;
}
.preset-gen-actions {
display: flex;
justify-content: flex-end;
margin-top: 10px;
}
@media (max-width: 900px) {
.preset-gen-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 560px) {
.preset-gen-grid {
grid-template-columns: 1fr;
}
.preset-entries-panel {
padding-left: 0;
}
}
.preset-entries-summary {
font-size: 12px;
color: var(--st-faint);
@@ -1102,6 +1169,58 @@ code {
line-height: 1.35;
}
.profile-dialog label.check-label {
flex-direction: row;
align-items: flex-start;
gap: 8px;
color: var(--st-text);
font-size: 13px;
font-weight: 500;
}
.profile-dialog label.check-label input {
width: auto;
margin-top: 3px;
flex-shrink: 0;
}
.profile-dialog label.check-label .field-hint {
display: block;
margin-top: 4px;
}
.persona-card-check {
display: inline-flex;
align-items: center;
gap: 6px;
margin-right: auto;
font-size: 12px;
color: var(--st-muted);
font-weight: 500;
cursor: pointer;
user-select: none;
}
.persona-card-check input {
width: auto;
margin: 0;
accent-color: var(--st-accent);
}
.persona-card-check:hover {
color: var(--st-text);
}
.config-card.is-active {
border-color: #93c5fd;
box-shadow: inset 3px 0 0 var(--st-accent);
}
.persona-config-card .config-card-actions {
padding-left: 0;
align-items: center;
}
.dialog-actions {
display: flex;
justify-content: flex-end;