openbot
|
bbe36be192
|
feat(wecom): official aibot long-connection protocol + real WS transport
- wecom_ws.py: AibotWSAdapter (asyncio websockets bridged to channel threads):
connect wss://openws.work.weixin.qq.com, aibot_subscribe auth, 30s ping
heartbeat, reader->queue, graceful shutdown
- wecom.py switched to official frames:
* inbound aibot_msg_callback / aibot_event_callback (enter_chat -> welcome)
* reply: aibot_respond_msg stream {id, finish, content} reusing the
callback's req_id; after finish, proactive aibot_send_msg markdown
* image inbound: {url, aeskey} fetch + AES-256-CBC (IV=key[:16], PKCS7)
* mixed (text+image) and voice (transcribed) message types
- tests updated to official frame shapes; 43 passed
|
2026-10-06 16:06:49 +08:00 |
|
openbot
|
0e585c1d5a
|
chore: uv packaging + README refresh, prep for TestPyPI
- pyproject: metadata (license/classifiers/urls), cryptography runtime dep,
optional [nats] extra, PEP 735 dependency-groups dev (pytest/pyright),
hatch wheel target src/agenthub
- regenerate uv.lock; uv sync/build verified (sdist+wheel, no node_modules)
- README: real repo structure, channel matrix, uv workflows, TestPyPI flow
- dist/ ignored
|
2026-10-06 15:47:20 +08:00 |
|