@ynhcj/xiaoyi 2.0.3 → 2.0.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/dist/channel.js +4 -5
  2. package/package.json +1 -1
package/dist/channel.js CHANGED
@@ -241,7 +241,8 @@ exports.xiaoyiPlugin = {
241
241
  ctx: msgContext,
242
242
  cfg: config,
243
243
  dispatcherOptions: {
244
- send: async (text) => {
244
+ deliver: async (payload) => {
245
+ console.log("XiaoYi: Delivering response:", payload);
245
246
  // Send response back through WebSocket
246
247
  const taskId = runtime.getTaskIdForSession(message.sessionId) || `task_${Date.now()}`;
247
248
  const response = {
@@ -256,18 +257,16 @@ exports.xiaoyiPlugin = {
256
257
  },
257
258
  content: {
258
259
  type: "text",
259
- text: text,
260
+ text: payload.text || "",
260
261
  },
261
262
  status: "success",
262
263
  };
263
264
  const conn = runtime.getConnection();
264
265
  if (conn) {
265
266
  await conn.sendResponse(response, taskId, message.sessionId);
267
+ console.log("XiaoYi: Response sent successfully");
266
268
  }
267
269
  },
268
- sendTyping: async () => {
269
- // XiaoYi A2A protocol doesn't have typing indicators
270
- },
271
270
  },
272
271
  });
273
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",