feat: 发送支持群聊@成员

生命周期整理
清理残留整理
完善skill
This commit is contained in:
Wxw-Gu committed 2026-11-12 11:18:32 +08:00
1 parent 804466aad8
commit 5d4ba73771
28 files changed
+1214 -103

No files matched your search

+19
View File
@@ -100,6 +100,25 @@ describe('WechatActionGateway', () => {
])
})
it('preserves the native mention map when forwarding a manual text action', async () => {
const gateway = createGateway()
await gateway.execute({
origin: 'user_manual',
purpose: 'manual_text',
triggerType: 'user',
recipient: { type: 'group', id: 'fixture-room@chatroom' },
content: { type: 'text', text: '早上好', at: { wxid_fixture: '测试成员' } }
})
expect(mocks.sender.send).toHaveBeenCalledWith({
type: 'text',
to: 'fixture-room@chatroom',
isGroup: true,
text: '早上好',
at: { wxid_fixture: '测试成员' }
})
})
it('deduplicates the same leave event across repeated execution calls', async () => {
const gateway = createGateway()
const first = await leaveNotificationAction(gateway)