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

@ -6458,6 +6458,8 @@ class SqliteStore(ScheduledJobStoreMixin):
"text": str(r["text"] or ""),
"source": source,
"context_token": str(meta.get("context_token") or ""),
"attachments": [a for a in (meta.get("attachments") or []) if isinstance(a, dict)],
"media_path": str(meta.get("media_path") or ""),
"created_at": str(r["created_at"] or ""),
}
)