openclaw-xiaoyou 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/channel.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-xiaoyou",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "type": "module",
5
5
  "description": "Xiaoyou channel plugin for OpenClaw — connects enterprise services via persistent outbound WebSocket",
6
6
  "openclaw": {
package/src/channel.ts CHANGED
@@ -100,9 +100,8 @@ export const xiayouPlugin = {
100
100
  startAccount: async (ctx: any) => {
101
101
  const { account, cfg, log } = ctx;
102
102
 
103
- // 注入 runtime
104
- if (ctx.runtime) setRuntime(ctx.runtime);
105
-
103
+ // 使用 register 时注入的 runtime(有 channel.reply 等完整 API)
104
+ // 注意:ctx.runtime 只有 log/error/exit,不能用它覆盖
106
105
  const section = account?.config || getChannelConfig(cfg);
107
106
  const logger = log || console;
108
107