Skip to content

1.6.0

Choose a tag to compare

@sliverp sliverp released this 14 Mar 09:03
· 204 commits to main since this release
cc81d8f

1.6.0

中文

✨ 新增

  • 消息引用/回复支持:新增对 QQ 消息引用(quote/reference)的完整支持。当用户引用一条消息发送给 AI 时,插件会解析 message_scene.ext 中的 ref_msg_idx / msg_idx,查找被引用的原始消息内容,并以 [引用消息开始]...[引用消息结束] 格式注入到发送给大模型的 agentBody 中,让 AI 能感知上下文。
  • 出站消息自动引用:AI 的第一条回复会自动引用用户发送的消息(message_reference),后续消息不重复引用,体验更自然。
  • 引用索引缓存(ref-index-store):新增入站/出站消息索引缓存机制,通过 setRefIndex / getRefIndex 实现消息回溯查找,支持 onMessageSent 钩子注册出站消息缓存。
  • 语音消息兜底解析(asr_refer_text):语音消息处理新增多级降级策略:优先使用插件侧 STT 转录 → STT 失败/未配置时自动回退到 QQ 平台返回的 asr_refer_text 兜底文本 → 均不可用时给出明确提示。兜底文本会标注 [语音消息(ASR兜底,可能不准确)] 前缀,并在 agentBody 中注入低置信度提示,让 AI 知道需要追问确认关键信息。
  • 完整入站 JSON 日志:所有入站消息(C2C / Group / Guild / DM)新增 ▶ INBOUND xxx RAW 日志,输出完整原始 JSON,方便调试排查。
  • 完整 Agent Body 日志:发送给大模型前新增 ▶ AGENT BODY FULL 日志,输出最终拼装后的完整请求内容。

English

✨ New

  • Message quote/reference support: Full support for QQ message quoting. When a user quotes a message to the AI, the plugin parses ref_msg_idx / msg_idx from message_scene.ext, looks up the original quoted message content, and injects it into the agent body as [引用消息开始]...[引用消息结束], enabling the AI to perceive conversation context.
  • Auto-reference on outbound reply: The AI's first reply automatically references the user's message via message_reference; subsequent messages do not repeat the reference for a more natural experience.
  • Reference index cache (ref-index-store): New inbound/outbound message index caching mechanism via setRefIndex / getRefIndex, with onMessageSent hook for registering outbound message cache entries.
  • Voice message fallback parsing (asr_refer_text): Multi-level degradation for voice messages: prefer plugin-side STT transcription → fall back to QQ platform's asr_refer_text if STT fails or is not configured → show explicit notice when neither is available. Fallback text is prefixed with [语音消息(ASR兜底,可能不准确)] and the agent body includes a low-confidence hint so the AI knows to confirm critical information.
  • Full inbound JSON logging: All inbound messages (C2C / Group / Guild / DM) now log ▶ INBOUND xxx RAW with the complete raw JSON for easier debugging.
  • Full Agent Body logging: A ▶ AGENT BODY FULL log is emitted before sending to the LLM, showing the fully assembled request content.