mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
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:
parent
dc5da21f5a
commit
cbe68a54cd
14 changed files with 440 additions and 125 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue