Repository navigation
微信:读群公告(matewechat_group_notice),群接龙显示完整名单 - #65
Merged
Merged
Conversation
…otes (接龙) show their whole list - matewechat-native 0.1.12: group_notice (wechat-protocol's public group_detail_raw / decode_group_detail, read only); a Group Note (app message 53) is "[接龙] …" with its numbered list, written out from its <extinfo><solitaire_info> (UTF-16 ranges into <title>, the shape agent-wechat reads), else its <title> as it is. - matewechat_group_notice: the text, who published it and when; through AgentWechat the copy it keeps. - Through AgentWechat a Group Note is "[接龙] …" too (its body, else its group_note summary). - The assistant's instructions say both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r AgentWechat's saved notice (review 1) Co-Authored-By: Claude Opus 5.5 <[email protected]>
- 新工具 matewechat_group_notice(只读):读一个群现在的群公告,返回正文、发布人、发布时间;不是群、没有公告时说明。 - 群接龙显示成「[接龙] 标题…」加完整编号名单(以前显示成「[链接] …」);已入库的旧消息不回填。 - 微信组件钉到 matewechat-native 0.1.12(release matewechat-native-v0.1.12,SHA-256 a5cedb2d…0930c,8365440 字节)。 - 不新增权限,不新增以用户身份发的消息,没有新开关。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
1. 新工具
matewechat_group_notice(只读)chat(群的会话 id,…@chatroom),返回群公告正文、发布人(名字和 id)、发布时间;不是群、群里没有公告时直接说明。matewechat-native新增操作group_notice,用协议库 wechat-protocol 2.7.0 的公开接口NativeClient::group_detail_raw+decode_group_detail(微信的getchatroominfodetail),10 秒超时;公告正文不写日志。企业微信群(@im.chatroom/@qy_g)协议库不支持,会说明读不到。GET /groups/{id}里保存的announcement(只有正文,没有发布人和时间,工具会注明)。agent_tools加上它,/agent 能用;给助手的说明(assistant/instructions.md)补了用法和「公告里可能有账号密码,只用到问的部分」。2. 群接龙(appmsg type 53)显示成「[接龙] 标题…\n1. 张三\n2. 李四」
wechat-core/src/group_notes.rs(提交 aba33f7)从官方客户端样本得出的形态:可见文本是<title>;<extinfo><solitaire_info>里的<solitaire>用 UTF-16 偏移区间(tt标题、ex例子行、tl补充说明、每条<i><r>)指向标题,每条的原文在<c>。solitaire_info、不是 XML、区间越界、DTD 等)就原样用<title>。以前落到默认分支显示成「[链接] …」。body(就是标题全文),没有时用summary(kind=group_note)的条目拼。怎么验证的
bash scripts/test.sh:根 950、飞书 419、微信 190 全部通过(打包校验要等发版时升版本号)。cargo test --locked(native/matewechat-native):20 个通过,新增 4 个接龙单测(含上游手数的 UTF-16 区间用例、例子行、标题缺名单时取<c>、八种读不出的情形回落到标题)。"53"分支后 4 个原生单测失败;Python 新测试在 main 上 4 个失败/报错 + 平台工具清单断言失败。hello返回version 0.1.12;未登录时group_notice返回signed_out。没做什么
🤖 Generated with Claude Code