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.
- package/package.json +1 -1
- package/src/channel.ts +3 -3
package/package.json
CHANGED
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
|
-
//
|
|
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: {
|