Metadata-Version: 2.4
Name: bazaar-contrib-wecom
Version: 0.3.0rc1
Summary: WeCom Channel provider for Bazaar Compute Node
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Dist: bazaar-core~=0.3.0rc11
Requires-Dist: bazaar-contrib-audit~=0.3.0rc11
Requires-Dist: bazaar-contrib-channel~=0.3.0rc11
Requires-Dist: bazaar-contrib-collaboration~=0.3.0rc11
Requires-Dist: bazaar-contrib-harness~=0.3.0rc11
Requires-Dist: bazaar-contrib-messages~=0.3.0rc11
Requires-Dist: bazaar-contrib-timer~=0.3.0rc11
Requires-Dist: aiohttp>=3.12.0
Requires-Dist: cryptography>=45.0.0
Requires-Dist: pydantic>=2.12.0
Requires-Dist: yarl>=1.18
Requires-Python: >=3.15
Project-URL: Repository, https://github.com/open-bazaar/contrib-wecom
Description-Content-Type: text/markdown

# bazaar-contrib-wecom

WeCom Channel provider for [Bazaar Compute Node](https://github.com/yuchanns/bazaar-compute-node).

## Setup

Create a WeCom intelligent robot in API mode with a long connection, then install BCN and this provider:

```sh
uv tool install bazaar-compute-node
bcn contrib add wecom --enable
```

Add an agent using an installed Harness provider:

```sh
bcn agent add --name Editor --channel wecom --harness HARNESS_KIND
bcn run
```

## Configuration

Set these fields in the agent's `wecom` Channel configuration:

- `bot_id`: The robot's bot ID.
- `secret_env`: Environment variable holding the robot's secret.
- `secret`: Secret supplied directly by the configer; takes precedence.
- `websocket_url`: Long connection endpoint; defaults to `wss://openws.work.weixin.qq.com`.
