feat: 新增MAC微信发送消息 文字转语音 功能

This commit is contained in:
Wxw-Gu
2026-08-17 18:16:14 +08:00
parent a52da455c3
commit 15811c820c
48 changed files with 7240 additions and 22 deletions
@@ -95,6 +95,21 @@ describe('preload IPC contract', () => {
expect(invoke).toHaveBeenLastCalledWith('voice:removeModel')
await api.openVoiceModelDirectory()
expect(invoke).toHaveBeenLastCalledWith('voice:openModelDirectory')
await api.getPersonalWechatSenderStatus()
expect(invoke).toHaveBeenLastCalledWith('wechat-personal:getStatus')
await api.rebindPersonalWechatSender()
expect(invoke).toHaveBeenLastCalledWith('wechat-personal:rebind')
const sendRequest = {
to: 'fixture@chatroom',
type: 'text' as const,
text: '测试消息',
isGroup: true
}
await api.sendPersonalWechatMessage(sendRequest)
expect(invoke).toHaveBeenLastCalledWith('wechat-personal:send', sendRequest)
await api.selectPersonalWechatImage()
expect(invoke).toHaveBeenLastCalledWith('wechat-personal:selectImage')
})
it('preserves key API return values without exposing ipcRenderer', async () => {