feat(export): prioritize tab counts via lightweight api

This commit is contained in:
tisonhuang committed 2026-03-04 21:16:39 +08:00
1 parent adff7b9e1e
commit c6e8bde078
5 files changed
+162 -4

No files matched your search

+10
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 }>