Merge pull request #760 from Jasonzhu1207/main

feat:AI见解支持结合社交媒体平台消息以进行综合分析
This commit is contained in:
cc
2026-04-14 23:03:49 +08:00
committed by GitHub
9 changed files with 1155 additions and 50 deletions

View File

@@ -1,4 +1,4 @@
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
import type { ChatSession, Message, Contact, ContactInfo, ChatRecordItem } from './models'
export interface SessionChatWindowOpenOptions {
source?: 'chat' | 'export'
@@ -7,6 +7,20 @@ export interface SessionChatWindowOpenOptions {
initialContactType?: ContactInfo['type']
}
export interface SocialValidateWeiboUidResult {
success: boolean
uid?: string
screenName?: string
error?: string
}
export interface SocialSaveWeiboCookieResult {
success: boolean
normalized?: string
hasCookie?: boolean
error?: string
}
export interface ElectronAPI {
window: {
minimize: () => void
@@ -1086,6 +1100,10 @@ export interface ElectronAPI {
stop: () => Promise<{ success: boolean }>
status: () => Promise<{ running: boolean; port: number; mediaExportPath: string }>
}
social: {
saveWeiboCookie: (rawInput: string) => Promise<SocialSaveWeiboCookieResult>
validateWeiboUid: (uid: string) => Promise<SocialValidateWeiboUidResult>
}
insight: {
testConnection: () => Promise<{ success: boolean; message: string }>
getTodayStats: () => Promise<Array<{ sessionId: string; count: number; times: string[] }>>
@@ -1186,3 +1204,6 @@ declare global {
}
export { }