feat: 新增mac ocr转文字,增加到问一问微信 图片索引优化速度

- 图片文字索引性能与进度诚实化
- 问问微信:证据卡区分「消息类型」与「派生来源」,派生命中内容自报来源
- 问问微信:回答规则禁止未真实执行的多轮承诺
- 本地图片文字识别:支持 macOS 系统 OCR(Apple Vision)
This commit is contained in:
Wxw-Gu
2026-09-17 13:11:20 +08:00
parent b8f08d54c8
commit 1337bcb7de
53 changed files with 4985 additions and 624 deletions
+16 -2
View File
@@ -123,7 +123,14 @@ describe('KnowledgeSearchService legacy fallback', () => {
startTime: 1785800000,
limit: 10
})
expect(listMessagesAsync).toHaveBeenCalledWith('fixture-conversation', 1785800000, undefined)
expect(listMessagesAsync).toHaveBeenCalledWith(
'fixture-conversation',
1785800000,
undefined,
undefined,
undefined,
'knowledge'
)
expect(result).toMatchObject({
source: 'fallback',
fallbackReason: 'unavailable',
@@ -151,7 +158,14 @@ describe('KnowledgeSearchService legacy fallback', () => {
limit: 10
})
expect(listMessagesAsync).toHaveBeenCalledWith('fixture-conversation', undefined, undefined)
expect(listMessagesAsync).toHaveBeenCalledWith(
'fixture-conversation',
undefined,
undefined,
undefined,
undefined,
'knowledge'
)
expect(result.evidence).toHaveLength(1)
await service.dispose()
})