feat: Reader Skill 支持版本自检与自助更新

微信机器人回复剥离引用编号、列表改用空行分隔,失败通知补失败时刻
 问问微信关键词检索在索引落后时按单会话直读原始记录兜底
 关闭窗口支持记住选择并在设置中修改
 退群监控刷新列表
This commit is contained in:
Wxw-Gu committed 2026-10-14 10:31:01 +08:00
1 parent fd7d5016a8
commit eaa25cd29e
33 files changed
+1401 -154

No files matched your search

+3 -11
View File
@@ -17,6 +17,7 @@ import { QueryAgentService } from './query-agent-service'
import { AskWechatService } from './ask-wechat-service'
import {
QUERY_AGENT_UNAVAILABLE_TEXT,
formatWechatReplyText,
queryAgentReplyText,
resolveInboundRoute,
type GroupMemberChatIntent,
@@ -700,7 +701,7 @@ export class AgentHubService {
{ requestId: `agent-hub-${Date.now()}-${this.nextLogId}`, text },
conversationKey
)
await this.sendToConversation(conversation, this.formatAIReply(queryAgentReplyText(result)))
await this.sendToConversation(conversation, formatWechatReplyText(queryAgentReplyText(result)))
this.addLog('agent-hub', 'info', `查询回答已发送(${result.status})`)
} catch (error) {
this.addLog('agent-hub', 'error', `查询处理失败:${this.errorMessage(error)}`)
@@ -834,7 +835,7 @@ export class AgentHubService {
}
await this.sendToConversation(
conversation,
this.formatAIReply(
formatWechatReplyText(
`${displayName}在“${group.m_nsNickName}”的发言总结(共 ${messages.length} 条):\n\n${summary.data.trim().slice(0, 3500)}`
)
)
@@ -850,15 +851,6 @@ export class AgentHubService {
return `[${label}]`
}
private formatAIReply(content: string): string {
return content
.replace(/\r\n?/g, '\n')
.replace(/[ \t]*•[ \t]*/g, '\n• ')
.replace(/[ \t]+(?=\d+[.、][ \t])/g, '\n')
.replace(/\n{3,}/g, '\n\n')
.trim()
}
private async generateAndSendReport(
conversation: AgentHubTarget,
intent: GroupReportIntent