openclaw-xiaoyou 1.4.3 → 1.4.4

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 +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-xiaoyou",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
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
@@ -283,9 +283,9 @@ export const xiayouPlugin = {
283
283
 
284
284
  // ── Target 解析(让 Gateway delivery 系统识别 xiaoyou target)──
285
285
  normalizeTarget: (target: string) => {
286
- // 去掉可能的 xiaoyou: 前缀
287
- const normalized = target.replace(/^xiaoyou:/i, "");
288
- return { ok: true, to: normalized };
286
+ // 如果 target 为空,返回默认值 "schedule",避免 Gateway 报 "requires target"
287
+ const normalized = (target || "schedule").replace(/^xiaoyou:/i, "");
288
+ return { ok: true, to: normalized || "schedule" };
289
289
  },
290
290
 
291
291
  targetResolver: {