mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Extract duplicated query logic from electron/main/worker/query/messages.ts and src/services/message/fetch.ts into shared async functions in core. - Add AsyncSqlExecutor abstraction (packages/core/src/query/executor.ts) - Add 8 shared async query functions (message-query-functions.ts) - Extend buildMsgConditions with memberId/systemFilter/textOnlyFilter - Electron: thin adapter via sync-to-async executor, FTS remains platform-specific - Web/CLI: thin adapter via pluginQuery executor - Fix pre-existing SearchMessageResult type mismatch (add missing fields) - Add 10 unit tests verifying executor consistency Co-authored-by: Cursor <cursoragent@cursor.com>