feat: 集成 Agent Hub 微信机器人能力

This commit is contained in:
电摇小子
2026-07-15 17:26:15 +08:00
committed by Wxw-Gu
parent 597667e005
commit 1e97953d67
25 changed files with 4249 additions and 187 deletions
+38
View File
@@ -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
}