Repository navigation
feat(channel) yuanbao - #72756
feat(channel) yuanbao#72756
Conversation
Greptile SummaryThis PR registers Yuanbao as an official external channel plugin by adding its entry to the catalog JSON, updating docs, and adding contract + integration tests. The documentation and test structure are well-formed and mirror the WeCom precedent.
Confidence Score: 2/5Not safe to merge — a deterministic CI test failure exists in the official catalog pinning policy check. A P0 finding: the missing version pin and integrity hash on the Yuanbao catalog entry will cause the 'keeps official external catalog npm sources exactly pinned' test to fail unconditionally. This is a known existing test that enforces a hard policy on all external entries. scripts/lib/official-external-channel-catalog.json — the install block for openclaw-plugin-yuanbao must be updated with a pinned version and expectedIntegrity before the test suite can pass. Prompt To Fix All With AIThis is a comment left during a code review.
Path: scripts/lib/official-external-channel-catalog.json
Line: 44-47
Comment:
**Missing version pin and integrity hash will break the pinning policy CI test**
`test/official-channel-catalog.test.ts` has a dedicated test (`"keeps official external catalog npm sources exactly pinned"`) that iterates every `source: "external"` entry and asserts `installSource.warnings` is `[]` and `installSource.npm?.pinState === "exact-with-integrity"`. The Yuanbao install block has neither an exact version tag nor `expectedIntegrity`, so `describePluginInstallSource` will produce warnings `["npm-spec-floating", "npm-spec-missing-integrity"]` and set `pinState` to `"floating-without-integrity"` — both assertions fail.
The WeCom entry next to it shows the required shape:
```json
"install": {
"npmSpec": "openclaw-plugin-yuanbao@<exact-version>",
"defaultChoice": "npm",
"expectedIntegrity": "sha512-<base64-hash>"
}
```
Add an exact version and the `expectedIntegrity` once the package is published, or the test suite will not pass.
How can I resolve this? If you propose a fix, please make it concise.
---
This is a comment left during a code review.
Path: scripts/lib/official-external-channel-catalog.json
Line: 34
Comment:
**`channel.id` uses the npm package name instead of a short semantic identifier**
Every other external entry in this catalog uses a short, human-readable id (`"wecom"`) that is independent of the npm package name. The Yuanbao entry sets `id` to `"openclaw-plugin-yuanbao"`, which is the full package name. This drives the `channelId` values in the contract test and `channel.id` comparisons. Consider using `"yuanbao"` to stay consistent with the established convention.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "feat(channel) yuanbao" | Re-trigger Greptile |
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
* feat(channel) yuanbao * feat(channel) yuanbao * docs(changelog): note Yuanbao channel plugin (openclaw#72756) (thanks @loongfay) --------- Co-authored-by: loongzhao <[email protected]> Co-authored-by: sliverp <[email protected]>
feat(channel): add Yuanbao IM channel plugin
Summary
extensions/yuanbao/implementing WebSocket-based bidirectional communication with the Yuanbao bot platform, including Protobuf wire protocol encoding/decoding, HMAC-SHA256 authentication, media upload via Tencent COS, a 13-layer middleware inbound pipeline, message debouncing, multi-account support, group chat features, agent tools, sticker search, and comprehensive documentation.src/plugin-sdk/,src/channels/, or any other existing extension. The plugin uses only the public Plugin SDK surface (defineBundledChannelEntry,createChatChannelPlugin,createChannelInboundDebouncer,createChannelReplyPipeline,createScopedDmSecurityResolver,createComputedAccountStatusAdapter). The only non-extension file touched is the runtime sidecar registration inscripts/lib/bundled-runtime-sidecar-paths.jsonand the channel docs atdocs/channels/yuanbao.md.Change Type (select all)
Regression Test Plan
N/A — new feature, not a bug fix.
*.test.tsfiles underextensions/yuanbao/src/User-visible / Behavior Changes
yuanbaochannel can now be configured viaopenclaw config set channels.yuanbao.appKey <key>andchannels.yuanbao.appSecret <secret>.openclaw setupincludes a Yuanbao setup flow for interactive token/credential configuration.query_session_members(search/list group members), group info query.open(default),allowlist,pairing,disabled.channels.yuanbao.accounts.<id>.merge-text(buffered aggregation) orimmediate(per-item).split(continue in chunks) orstop(truncate).off/first/all).Diagram
Environment
Steps
openclaw config set channels.yuanbao.appKey <key>andopenclaw config set channels.yuanbao.appSecret <secret>openclaw gateway runExpected
requireMention: true)replyToMode