feat(gateway): yuanbao (Tencent 元宝) platform adapter#16298
Merged
Conversation
Contributor
🚨 CRITICAL Supply Chain Risk DetectedThis PR contains a pattern that has been used in real supply chain attacks. A maintainer must review the flagged code carefully before merging. 🚨 CRITICAL: Install-hook file added or modifiedThese files can execute code during package installation or interpreter startup. Files: Scanner only fires on high-signal indicators: .pth files, base64+exec/eval combos, subprocess with encoded commands, or install-hook files. Low-signal warnings were removed intentionally — if you're seeing this comment, the finding is worth inspecting. |
ulasbilgen
pushed a commit
to ulasbilgen/hermes-adhd-agent
that referenced
this pull request
May 1, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
donald131
pushed a commit
to donald131/hermes-agent
that referenced
this pull request
May 2, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
Open
3 tasks
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
dannyJ848
pushed a commit
to dannyJ848/hermes-agent
that referenced
this pull request
May 17, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
Co-authored-by: loongzhao <loongzhao@tencent.com>
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.
Salvage of #13276 — first-party Yuanbao (腾讯元宝) gateway platform contributed by @loongfay (Tencent).
Summary
Adds full Yuanbao (Tencent's 100M+ MAU IM platform) support: WebSocket transport, AUTH_BIND/HMAC-SHA256 signing, 17-middleware inbound pipeline, fence-aware outbound, COS media upload, TIMFaceElem stickers, and a check_fn-gated
hermes-yuanbaotoolset.Changes
gateway/platforms/yuanbao{.py,_proto.py,_media.py,_sticker.py},tools/yuanbao_tools.py,skills/yuanbao/SKILL.md, 4 test files (2.4k LOC)gateway/run.py(+14): adapter factory branch +YUANBAO_ALLOWED_USERS/YUANBAO_ALLOW_ALL_USERSallowlist envvarsgateway/config.py(+46):Platform.YUANBAOenum + env-var overrides blockgateway/platforms/__init__.py(+2):YuanbaoAdapterexportgateway/session.py(+8): platform hint for send_message targetsagent/prompt_builder.py(+23):PLATFORM_HINTS["yuanbao"]entrytools/send_message_tool.py(+46): yuanbao target regex +_send_yuanbao()helper + MEDIA supporttoolsets.py(+27):yuanbao+hermes-yuanbaotoolset registrationcron/scheduler.py(+3): platform enum map for cron deliveryhermes_cli/{gateway,setup,platforms,status,tools_config}.py: setup wizard + status rowscripts/release.py: 11 AUTHOR_MAP entries for Tencent contributorswebsite/docs/user-guide/messaging/yuanbao.md+ index updateDesign
HERMES_SESSION_PLATFORM=yuanbaoor active adapter — zero tool-schema bloat for non-yuanbao usersMediaSendHandlerABC follow the same shape as feishu.pyValidation
test_yuanbao_proto.py,test_yuanbao_pipeline.py,test_yuanbao_integration.py,test_yuanbao_markdown.py)tests/tools/test_registry.pydiscovery test (31 tests) passes withtools.yuanbao_toolsaddedCloses #13276. Authorship preserved: commit by loongzhao@tencent.com via rebase-merge.