mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-17 19:47:08 +08:00
feat: 集成 Agent Hub 微信机器人能力
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
export type AgentHubRuntimeStatus = 'starting' | 'online' | 'offline' | 'error'
|
||||
export type WechatConnectorStatus =
|
||||
| 'checking'
|
||||
| 'disconnected'
|
||||
| 'starting'
|
||||
| 'waiting_scan'
|
||||
| 'scanned'
|
||||
| 'online'
|
||||
| 'error'
|
||||
|
||||
export interface AgentHubStatus {
|
||||
hub: AgentHubRuntimeStatus
|
||||
connector: WechatConnectorStatus
|
||||
qrCodeDataUrl?: string
|
||||
accountId?: string
|
||||
wechatUserId?: string
|
||||
error?: string
|
||||
updatedAt: number
|
||||
dataApi?: 'checking' | 'online' | 'offline'
|
||||
databaseReady?: boolean
|
||||
}
|
||||
|
||||
export interface AgentHubActionResult {
|
||||
success: boolean
|
||||
status: AgentHubStatus
|
||||
error?: string
|
||||
}
|
||||
|
||||
export type AgentHubLogSource = 'agent-hub' | 'wechat-connector' | 'system'
|
||||
export type AgentHubLogLevel = 'info' | 'warn' | 'error'
|
||||
|
||||
export interface AgentHubLogEntry {
|
||||
id: number
|
||||
timestamp: number
|
||||
source: AgentHubLogSource
|
||||
level: AgentHubLogLevel
|
||||
message: string
|
||||
}
|
||||
Reference in New Issue
Block a user