Files
dsh_ai1net_server/poc/im-agent-bridge/cordis.patch.yml
T

14 lines
753 B
YAML
Raw Normal View History

# @dsh-local/im-agent-bridge — bundle patch (host row only)
#
# C 单(`交接单/IM群组-C-Agent接入插件.md §三`):实例侧接入 —— 拨出连接、触发过滤、
# 上下文组装、预算/静默期、回写消息、重连退避。
#
# ⚠️ 本插件**只在服务端**(无 client 面):agent 是一个实例内的 node 进程里跑的连接,
# 没有 UI。故 `dsh.bundle.patch` 即可,⛔ 不声明 `dsh.client`。
#
# 🔴 **天然开关**:`apply()` 首件事是读 `DSH_PLATFORM_IM_URL` 与 `DSH_IM_INSTANCE_TOKEN`;
# 任一缺失 ⇒ 直接 return(日志无连接尝试)。⇒ 平台侧回滚 = 删掉注入的两项 env。
- insert:
- id: im-agent-bridge
name: '@dsh-local/im-agent-bridge'