All plugins

DSH / BUNDLE / CLIENT-UI

dsh-wechat-agent-router

v0.1.0let-mi-think / wechat-agent-router9b2192ba6c

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-wechat-agent-router

按微信群名路由会话 agent:群名(包含 / 精确匹配)→ Agent 预设,零侵入复用 dsh-wechat-assistant 的传输层

README / EN

Package documentation

Registry summary

按微信群名路由会话 agent:群名(包含 / 精确匹配)→ Agent 预设,零侵入复用 dsh-wechat-assistant 的传输层

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- **只能按群路由**:粒度是"群 = 一条会话 = 一个 Agent",做不到"同一个群里按消息内容换 Agent"。 - **不支持私信**:`dsh-wechat-assistant` 的 Python 端只接受群聊目标(好友会话会直接报「监听目标不是群聊」),候选列表也只给群聊。要支持私信必须改它的传输层。 - **不接管模型**:桥接每条消息都会把模型强制 select 成全局 `modelProvider/modelName`,会覆盖 Agent 预设里的模型设置。想让模型也跟着路由走,需要额外处理。 - **依赖 `sessionId` 方案**:群名反查靠复刻的 `sha256('wechat-group-'+…)`。若上游改了算法,路由匹配不到群 → 自动退化为"不干预"(不会报错,但也不生效);`tests/router.test.mjs` 用字面量锁住这个值就是为了尽早发现这种漂移。 - 包装失败(`apiProxy` 形状变了等)时**明确报告**而不是静默:日志里会有 `会话预设包装未安装:…`,面板顶部也会给出提示。