fix: 完善微信发送运行时状态识别

This commit is contained in:
Wxw-Gu committed 2026-10-29 17:16:44 +08:00
1 parent d6d837e6f6
commit 84737a7407
7 files changed
+43 -278

No files matched your search

+10 -2
View File
@@ -45,6 +45,16 @@ export interface MacWechatRuntimeManifest {
addressProfileSha256: string
supportedWechatVersions: string[]
capabilities: Array<'text' | 'image' | 'voice'>
capabilitiesByVersion?: Record<
string,
{
text?: 'verified' | 'addresses-only' | 'unsupported'
image?: 'verified' | 'addresses-only' | 'unsupported'
voice?: 'verified' | 'addresses-only' | 'unsupported'
downloadImage?: 'verified' | 'addresses-only' | 'unsupported'
textMechanism?: string
}
>
}
export interface MacWechatBindingStatus {
@@ -60,7 +70,6 @@ export interface MacWechatBindingStatus {
wechatPid: number
wechatVersion?: string
supported: boolean
supportedVersions?: string
bindingState: MacWechatBindingState
bound: boolean
boundWechatPid: number
@@ -82,7 +91,6 @@ export interface MacWechatRuntimeSnapshot {
endpoint: string
port: number
runtimeDir?: string
manifest?: MacWechatRuntimeManifest
error?: string
binding?: MacWechatBindingStatus
}