新增: HISTORY 历史会话功能

三栏布局(目录/会话/详情), 扫描 ~/.claude/projects JSONL,
支持 resume 会话, 缓存增量更新, 代码审查问题修复
This commit is contained in:
2026-05-16 23:18:29 +08:00
parent a027fe1703
commit 3e81d4510f
3 changed files with 862 additions and 88 deletions

View File

@@ -42,9 +42,19 @@ var (
)
var GroupStyles = map[string]lipgloss.Style{
"CORE": lipgloss.NewStyle().Bold(true).Foreground(Red),
"LAB": lipgloss.NewStyle().Bold(true).Foreground(Success),
"TOOLS": lipgloss.NewStyle().Bold(true).Foreground(Warning),
"ME": lipgloss.NewStyle().Bold(true).Foreground(Purple),
"TEMP": lipgloss.NewStyle().Bold(true).Foreground(Cyan),
"CORE": lipgloss.NewStyle().Bold(true).Foreground(Red),
"LAB": lipgloss.NewStyle().Bold(true).Foreground(Success),
"TOOLS": lipgloss.NewStyle().Bold(true).Foreground(Warning),
"ME": lipgloss.NewStyle().Bold(true).Foreground(Purple),
"TEMP": lipgloss.NewStyle().Bold(true).Foreground(Cyan),
"HISTORY": lipgloss.NewStyle().Bold(true).Foreground(Cyan),
}
// --- 历史会话专用样式 ---
var (
SessionTimeStyle = lipgloss.NewStyle().Foreground(Dim).Width(12).Inline(true)
SessionMsgCntStyle = lipgloss.NewStyle().Foreground(Accent).Inline(true)
SessionSummaryStyle = lipgloss.NewStyle().Foreground(Dim).Italic(true).Inline(true)
DirCountStyle = lipgloss.NewStyle().Foreground(Accent).Inline(true)
ScanningStyle = lipgloss.NewStyle().Foreground(Warning).Bold(true)
)