feat(export): prioritize tab counts via lightweight api

This commit is contained in:
tisonhuang
2026-03-01 16:32:48 +08:00
parent adff7b9e1e
commit c6e8bde078
5 changed files with 162 additions and 4 deletions

View File

@@ -74,6 +74,16 @@ export interface ElectronAPI {
chat: {
connect: () => Promise<{ success: boolean; error?: string }>
getSessions: () => Promise<{ success: boolean; sessions?: ChatSession[]; error?: string }>
getExportTabCounts: () => Promise<{
success: boolean
counts?: {
private: number
group: number
official: number
former_friend: number
}
error?: string
}>
enrichSessionsContactInfo: (usernames: string[]) => Promise<{
success: boolean
contacts?: Record<string, { displayName?: string; avatarUrl?: string }>