@ynhcj/xiaoyi 2.0.1 → 2.0.2

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 +9 -0
  2. package/package.json +1 -1
package/dist/channel.js CHANGED
@@ -214,11 +214,20 @@ exports.xiaoyiPlugin = {
214
214
  runtime.setTaskIdForSession(message.sessionId, message.id);
215
215
  // Get PluginRuntime from our runtime wrapper
216
216
  const pluginRuntime = runtime.getPluginRuntime();
217
+ console.log(`XiaoYi: PluginRuntime type: ${typeof pluginRuntime}`);
218
+ console.log(`XiaoYi: PluginRuntime.channel type: ${typeof pluginRuntime?.channel}`);
219
+ console.log(`XiaoYi: PluginRuntime.channel.reply type: ${typeof pluginRuntime?.channel?.reply}`);
220
+ console.log(`XiaoYi: PluginRuntime.channel.reply.handleInboundMessage type: ${typeof pluginRuntime?.channel?.reply?.handleInboundMessage}`);
217
221
  if (!pluginRuntime || !pluginRuntime.channel?.reply?.handleInboundMessage) {
218
222
  console.error("handleInboundMessage not available in PluginRuntime");
219
223
  console.error(`PluginRuntime exists: ${!!pluginRuntime}`);
220
224
  console.error(`PluginRuntime.channel exists: ${!!pluginRuntime?.channel}`);
221
225
  console.error(`PluginRuntime.channel.reply exists: ${!!pluginRuntime?.channel?.reply}`);
226
+ console.error(`PluginRuntime.channel.reply.handleInboundMessage exists: ${!!pluginRuntime?.channel?.reply?.handleInboundMessage}`);
227
+ // Log the actual structure
228
+ if (pluginRuntime?.channel?.reply) {
229
+ console.error(`PluginRuntime.channel.reply keys: ${Object.keys(pluginRuntime.channel.reply).join(', ')}`);
230
+ }
222
231
  return;
223
232
  }
224
233
  // Convert A2A message to OpenClaw inbound message format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",