feat(panel): live task cards, interactive usage trend chart, and Gemini 4 Carbon support (v1.4.2)

This commit is contained in:
fish
2026-11-11 01:06:31 +09:00
parent c6f512413f
commit 8ac5da8d11
39 changed files with 4857 additions and 1099 deletions
+256 -20
View File
@@ -53,7 +53,239 @@
white-space: nowrap;
}
/* --- 2. 4 格实时测速指标矩阵 (4-Cell Telemetry Matrix) --- */
/* --- 2. 多任务实时运行卡片列表与 4 格测速指标矩阵 (Live Running Tasks List & 4-Cell Telemetry Matrix) --- */
.live-activity-list {
display: flex;
flex-direction: column;
gap: 6px;
flex-shrink: 0;
min-width: 0;
}
.live-activity-list[hidden] {
display: none !important;
}
.live-task-card {
display: flex;
flex-direction: column;
gap: 5px;
padding: 7px 10px;
border: 1px solid var(--accent-primary-border);
border-radius: var(--radius-xs);
background: color-mix(in srgb, var(--accent-primary) 5%, var(--surface-panel));
min-width: 0;
}
.live-task-card.is-waiting {
border-color: color-mix(in srgb, var(--metric-warn) 42%, var(--border-hairline));
background: color-mix(in srgb, var(--metric-warn) 7%, var(--surface-panel));
}
.live-task-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
min-width: 0;
}
.live-task-title-wrap {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
flex: 1;
}
.live-task-title {
font-size: 11.5px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
cursor: pointer;
}
.live-task-title:hover {
color: var(--accent-primary);
}
.live-task-header-right {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.live-sub-toggle {
display: inline-flex;
align-items: center;
gap: 3px;
height: 18px;
padding: 0 6px;
font-size: 10.5px;
font-weight: 600;
color: var(--text-secondary);
background: var(--surface-panel);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
cursor: pointer;
white-space: nowrap;
transition:
border-color var(--dur-instant) var(--ease-fast),
color var(--dur-instant) var(--ease-fast),
background-color var(--dur-instant) var(--ease-fast);
}
.live-sub-toggle:hover {
border-color: var(--border-strong);
color: var(--text-primary);
}
.live-sub-toggle.is-expanded {
color: var(--accent-primary);
border-color: var(--accent-primary-border);
background: var(--accent-primary-soft);
}
.live-sub-toggle[hidden] {
display: none !important;
}
.live-task-main-row {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
padding-left: 1px;
}
.live-activity-dot {
color: var(--accent-primary);
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
.live-task-card.is-waiting .live-activity-dot {
color: var(--metric-warn);
}
.live-activity-phase {
font-size: 11px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
flex-shrink: 0;
}
.live-task-card.is-waiting .live-activity-phase {
color: var(--metric-warn);
}
.live-activity-progress {
font-size: 10px;
font-weight: 600;
color: var(--accent-primary);
background: var(--accent-primary-soft);
padding: 0 4px;
border-radius: var(--radius-xs);
white-space: nowrap;
flex-shrink: 0;
}
.live-activity-sep {
font-size: 11px;
color: var(--text-muted);
flex-shrink: 0;
}
.live-activity-detail {
font-size: 11px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
flex: 1;
}
.live-activity-elapsed {
font-size: 11px;
font-weight: 600;
color: var(--accent-primary);
white-space: nowrap;
flex-shrink: 0;
}
.live-task-card.is-waiting .live-activity-elapsed {
color: var(--metric-warn);
}
.live-sub-list {
display: flex;
flex-direction: column;
gap: 4px;
padding-top: 5px;
margin-top: 1px;
border-top: 1px dashed var(--border-hairline);
min-width: 0;
}
.live-sub-list[hidden] {
display: none !important;
}
.live-sub-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
min-width: 0;
font-size: 10.5px;
}
.live-sub-row.is-done {
opacity: 0.72;
}
.live-sub-left {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
flex: 1;
}
.live-sub-role {
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 110px;
flex-shrink: 0;
}
.live-sub-summary {
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
flex: 1;
}
.live-sub-elapsed {
font-size: 10.5px;
color: var(--text-secondary);
white-space: nowrap;
flex-shrink: 0;
}
.telemetry-matrix {
display: grid;
grid-template-columns: repeat(4, 1fr);
@@ -120,53 +352,58 @@
.progress-seg {
height: 100%;
width: var(--seg-w, 0%);
transition: width var(--dur-normal) var(--ease-fast);
transition:
background-color 0.05s ease,
width var(--dur-normal) var(--ease-fast);
}
.progress-seg.seg-messages {
background: var(--ctx-messages);
.progress-track.is-reordering .progress-seg {
transition:
background-color 0.05s ease,
width var(--dur-normal) var(--ease-fast) 0.05s;
}
.progress-seg.seg-assistant {
background: var(--ctx-assistant);
background-color: var(--ctx-assistant);
}
.progress-seg.seg-tool-results {
background: var(--ctx-tool-results);
background-color: var(--ctx-tool-results);
}
.progress-seg.seg-user-input {
background: var(--ctx-user-input);
background-color: var(--ctx-user-input);
}
.progress-seg.seg-subagent-msg {
background: var(--ctx-subagent-msg);
background-color: var(--ctx-subagent-msg);
}
.progress-seg.seg-checkpoint {
background: var(--ctx-checkpoint);
background-color: var(--ctx-checkpoint);
}
.progress-seg.seg-system-tools {
background: var(--ctx-system-tools);
background-color: var(--ctx-system-tools);
}
.progress-seg.seg-mcp-tools {
background: var(--ctx-mcp-tools);
background-color: var(--ctx-mcp-tools);
}
.progress-seg.seg-skills {
background: var(--ctx-skills);
background-color: var(--ctx-skills);
}
.progress-seg.seg-system-prompt {
background: var(--ctx-system-prompt);
background-color: var(--ctx-system-prompt);
}
.progress-seg.seg-user-rules {
background: var(--ctx-user-rules);
background-color: var(--ctx-user-rules);
}
.progress-seg.seg-cached {
background: var(--ctx-cached);
background-color: var(--ctx-cached);
}
.progress-seg.seg-input {
background: var(--ctx-input);
background-color: var(--ctx-input);
}
.progress-seg.seg-thinking {
background: var(--ctx-thinking);
background-color: var(--ctx-thinking);
}
.progress-seg.seg-output {
background: var(--ctx-output);
background-color: var(--ctx-output);
}
.progress-fill {
@@ -184,7 +421,7 @@
background: var(--metric-danger);
}
/* --- 4. 上下文双列图例网格 (Context 6-Channel Legend Grid) --- */
/* --- 4. 上下文双列图例网格 (Context 10-Channel Legend Grid) --- */
.ctx-legend-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
@@ -216,7 +453,6 @@
display: inline-block;
}
.swatch.seg-messages { background: var(--ctx-messages); }
.swatch.seg-assistant { background: var(--ctx-assistant); }
.swatch.seg-tool-results { background: var(--ctx-tool-results); }
.swatch.seg-user-input { background: var(--ctx-user-input); }