mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 10:14:35 +08:00
Move all 24 Electron-native tool definitions to @openchatlab/tools: - 13 data query tools (chat-overview, search-messages, deep-search, get-recent-messages, get-message-context, search-sessions, get-session-messages, get-members, get-member-name-history, get-conversation-between, get-session-summaries, response-time-analysis, keyword-frequency) - 11 SQL template tools (message_type_breakdown, etc.) Electron definitions/ now contains only index.ts with adaptSharedTool() calls. All tool logic lives in the shared package. Key changes: - Expand ToolDataProvider with 12 new methods for full data access - Add ToolExecutionContext fields: searchContextBefore/After, maxMessagesLimit, segmentText callback, translateTemplate callback - Create shared utils: format.ts (i18n), time-params.ts, schemas.ts - Create SQL tool system: definitions, executor, types - WorkerDataProvider implements all new methods via workerManager - CoreDataProvider stubs new methods (Server doesn't use these yet) - Delete 16 Electron tool files (-1280 lines, +482 lines)