feat: 添加工具调用支持,增强 CLI 工具和 MCP 管理功能

This commit is contained in:
catlog22
2026-01-08 23:32:27 +08:00
parent 311ce2e4bc
commit 84168825d6
11 changed files with 297 additions and 76 deletions

View File

@@ -977,6 +977,7 @@ select.cli-input {
padding: 0.5rem;
background: hsl(var(--muted) / 0.3);
border-bottom: 1px solid hsl(var(--border));
overflow-x: auto;
}
.sidebar-tab {
@@ -987,7 +988,7 @@ select.cli-input {
justify-content: center;
gap: 0.125rem;
padding: 0.5rem 0.25rem;
font-size: 0.75rem;
font-size: 0.7rem;
font-weight: 500;
color: hsl(var(--muted-foreground));
background: transparent;
@@ -996,7 +997,18 @@ select.cli-input {
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
max-width: 100%;
}
.sidebar-tab span {
display: block;
width: 100%;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-tab:hover {

View File

@@ -609,6 +609,18 @@
color: hsl(250 50% 75%);
}
/* Tool Call Message (Gemini tool_use/tool_result) */
.cli-stream-line.formatted.tool_call {
background: hsl(160 40% 18% / 0.3);
border-left: 3px solid hsl(160 70% 50%);
font-size: 0.85em;
}
.cli-msg-badge.cli-msg-tool_call {
background: hsl(160 70% 50% / 0.2);
color: hsl(160 70% 65%);
}
/* Stderr Message (Error) */
.cli-stream-line.formatted.stderr {
background: hsl(0 50% 20% / 0.4);