mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 09:37:37 +08:00
feat: session manger (#867)
* feat: init session manger * feat: persist selected app to localStorage - Save app selection when switching providers - Restore last selected app on page load * feat: persist current view to localStorage - Save view selection when switching tabs - Restore last selected view on page load * styles: update ui * feat: Improve macOS Terminal activation and refactor Kitty launch to use command with user's default shell. * fix: session view * feat: toc * feat: Implement FlexSearch for improved session search functionality. * feat: Redesign session manager search and filter UI for a more compact and dynamic experience. * refactor: modularize session manager by extracting components and utility functions into dedicated files. * feat: Enhance session terminal launching with support for iTerm2, Ghostty, WezTerm, and Alacritty, including UI and custom configuration options. * feat: Conditionally render terminal selection and resume session buttons only on macOS.
This commit is contained in:
@@ -213,6 +213,24 @@ export interface Settings {
|
||||
preferredTerminal?: string;
|
||||
}
|
||||
|
||||
export interface SessionMeta {
|
||||
providerId: string;
|
||||
sessionId: string;
|
||||
title?: string;
|
||||
summary?: string;
|
||||
projectDir?: string | null;
|
||||
createdAt?: number;
|
||||
lastActiveAt?: number;
|
||||
sourcePath?: string;
|
||||
resumeCommand?: string;
|
||||
}
|
||||
|
||||
export interface SessionMessage {
|
||||
role: string;
|
||||
content: string;
|
||||
ts?: number;
|
||||
}
|
||||
|
||||
// MCP 服务器连接参数(宽松:允许扩展字段)
|
||||
export interface McpServerSpec {
|
||||
// 可选:社区常见 .mcp.json 中 stdio 配置可不写 type
|
||||
|
||||
Reference in New Issue
Block a user