mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Introduce a high-level evidence retrieval tool for fact/occurrence/count questions. It resolves auto mode, runs semantic + keyword paths, de-identifies keyword snippets via an injected desensitizeMessages callback, applies a tool-layer millisecond time-range fallback (keyword path can't rely on the CLI provider's timeFilter), and merges/dedupes candidates into conservative groups. - Add ChatEvidencePayload / group / source types and EvidenceTimeRangeMs to tools - Register tool in AGENT_TOOL_REGISTRY only (Agent-only, excluded from MCP) - Inject desensitizeMessages (preprocessMessages) in desktop + CLI adapters - TDD: tool + registry unit tests Co-authored-by: Cursor <cursoragent@cursor.com>