Files
nanobot/nanobot/channels/wecom/manifest.py
T
chengyongru e8a29a0087 feat(webui): improve setup flows across chat channels (NAN-112) (#5356)
* feat(webui): improve channel setup flows

* fix(webui): refine channel setup interactions (NAN-112)

* fix(webui): keep email setup sections channel-owned

* fix(webui): remove concrete channel details from shared components

* refactor(webui): remove unused channel setup resources

* fix(webui): finish channel-owned setup boundaries

* fix(webui): update channel switches optimistically

* test(channels): remove obsolete absence assertions

* fix(webui): flatten channel instance settings disclosure

* fix(webui): complete channel setup and connection flows

* fix(whatsapp): wait for session database release

* fix(webui): preserve scrolling channel controls

* fix(webui): stage channel connection checks

* fix(channels): align verification actions

* fix(email): expose connection checks

* fix(webui): align channel field actions

* fix(email): verify account credentials

* fix(wecom): bypass system proxy for websocket

* fix(channels): stabilize async connection cleanup

* fix(webui): autosave channel credentials

* fix(email): make provider presets non-destructive

* test(weixin): isolate persisted QR credentials
2026-09-11 15:22:14 +08:00

26 lines
727 B
Python

"""WeCom management contract."""
from nanobot.channels._manifest import field, required_fields
from nanobot.channels.contracts import ChannelSetupSpec
from nanobot.channels.plugin import ChannelPlugin
SETUP_SPEC = ChannelSetupSpec(
fields={
"botId": field(),
"secret": field("secret"),
"allowFrom": field("list"),
"welcomeMessage": field(),
},
required=required_fields("botId", "secret"),
official_url="https://developer.work.weixin.qq.com/",
)
PLUGIN = ChannelPlugin(
name="wecom",
display_name="WeCom",
runtime=f"{__package__}.runtime:WecomChannel",
setup=SETUP_SPEC,
dependencies=("wecom-aibot-sdk-python>=0.1.7,<0.2.0",),
webui="webui/index.ts",
)