feat: run_command 改为下拉框设置自动/需确认/禁用三种模式

- 替换原有开关为下拉选择框(selectRunCommandMode)
- 新增 setRunCommandMode() 动态控制确认行为
- 需确认模式:弹窗确认后执行
- 自动模式:直接执行,无需确认
- 禁用模式:工具不可用
- 新增 .tool-card-badge.disabled 样式
- 状态从 runCommandEnabled(bool) 迁移为 runCommandMode(string)
This commit is contained in:
thzxx
2026-04-16 19:39:11 +08:00
parent fe0daf7075
commit c62fd4c7fd
7 changed files with 67 additions and 34 deletions
+6
View File
@@ -2937,6 +2937,12 @@ html, body {
border: 1px solid rgba(252, 225, 0, 0.15);
}
.tool-card-badge.disabled {
color: var(--critical);
background: var(--critical-bg);
border: 1px solid rgba(241, 112, 123, 0.15);
}
.tool-card-desc {
font-size: 12px;
color: var(--text-secondary);