Files
ChatLab/src
diguaandCursor 9ad0c49acf refactor: unify message query functions into @openchatlab/core
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>
2026-05-17 12:56:25 +08:00
..
2026-04-24 22:33:56 +08:00
2026-05-09 00:28:41 +08:00
2025-11-27 23:06:48 +08:00
2026-01-07 22:05:20 +08:00