feat: 只读验收模式、文件发送类型与消息定位补全

- 只读验收:TRACEMEMO_READ_ONLY=1 时跳过消息写入、自动发送与退群提示
- 微信发送新增 file 类型,文档、能力探测与 Reader Skill 同步
- 消息前后窗口按分片定位,补齐 wcdb4 定位与分片测试
This commit is contained in:
Wxw-Gu committed 2026-11-21 15:26:03 +08:00
1 parent 0edbf60b2e
commit 518a9662a7
25 files changed
+1278 -154

No files matched your search

@@ -35,6 +35,7 @@ import { renderLeaveNotificationText } from '../../shared/group-exit-event'
import { GROUP_EXIT_NOTIFICATION_TEMPLATE } from '../../shared/group-exit-monitor'
import { resolveWcdbConfigHelper } from '../native-runtime-paths'
import { msgInsertCapabilityService } from './msg-insert-capability-service'
import { isReadOnlyMode, logReadOnlySkip } from './read-only-mode'
import { resolveHelperPath } from './msg-insert-switch-service'
export type LocalExitNoticeOutcome =
@@ -140,6 +141,10 @@ export class WechatLocalExitNoticeService {
eventId: event.eventId,
conversationId: event.conversationId
}
if (isReadOnlyMode()) {
logReadOnlySkip('退群本地提示写入')
return { ...base, outcome: 'disabled', code: 'READ_ONLY_MODE' }
}
try {
this.ensureLoaded()
if (!this.enabled) return this.finish({ ...base, outcome: 'disabled', code: 'DISABLED' })