Files
ChatLab/electron/main/worker/index.ts
2025-12-03 00:42:07 +08:00

45 lines
950 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Worker 模块入口
* 导出 Worker 管理器的所有 API
*/
export {
initWorker,
closeWorker,
getDbDirectory,
// 分析查询 API异步
getAvailableYears,
getMemberActivity,
getHourlyActivity,
getDailyActivity,
getWeekdayActivity,
getMonthlyActivity,
getMessageTypeDistribution,
getTimeRange,
getMemberNameHistory,
getRepeatAnalysis,
getCatchphraseAnalysis,
getNightOwlAnalysis,
getDragonKingAnalysis,
getDivingAnalysis,
getMonologueAnalysis,
getMentionAnalysis,
getLaughAnalysis,
getMemeBattleAnalysis,
getCheckInAnalysis,
// 会话管理 API异步
getAllSessions,
getSession,
closeDatabase,
// 文件解析 API已废弃使用流式版本
parseFileInfo,
// 流式导入 API
streamImport,
streamParseFileInfo,
// AI 查询 API
searchMessages,
getMessageContext,
} from './workerManager'
export type { SearchMessageResult } from './workerManager'