feat(channel): unify deliverable outbound and WeChat attachments

Require deliverable:true for all channel attachments including images; extend save_deliverable_attachment with attachment_id; add WeChat proactive attachment delivery; inject channel file rules via system prompt instead of repeating on every user message.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-13 15:56:50 +08:00
parent dc5da21f5a
commit cbe68a54cd
14 changed files with 440 additions and 125 deletions

View file

@ -57,3 +57,14 @@ def test_official_runner_supports_reply_attachments_base64() -> None:
assert "data_base64" in text
assert "media_base64" in text
assert "reply.attachments" in text
assert "deliverWeixinReply" in text
assert "buildAttachmentsFromMedia" in text
assert "attachmentNameFromMediaItem" in text
def test_official_runner_proactive_outbound_supports_attachments() -> None:
text = _read("runtime/operations/weixin_bridge/official_runner.ts")
assert "flushWeixinDbOutbound" in text
assert "flushLocalProactiveReplies" in text
assert "item.attachments" in text
assert "item.media_path" in text