@ynhcj/xiaoyi-channel 0.0.215-beta → 0.0.216-beta

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/dist/src/bot.js CHANGED
@@ -291,6 +291,14 @@ export async function handleXYMessage(params) {
291
291
  log.log(`[BOT] Downloaded ${downloadedFiles.length} file(s)`);
292
292
  mediaPayload = buildXYMediaPayload(downloadedFiles);
293
293
  }
294
+ // 🔑 对于 steer 消息,将文件路径附加到消息文本中。
295
+ // auto-reply 管道的 steer 注入只携带 prompt 文本(followupRun.prompt),
296
+ // 不携带 mediaPayload,所以模型需要以文本形式看到附件路径。
297
+ if (isUpdate && mediaPayload.MediaPaths?.length) {
298
+ const fileHint = `\n【用户上传附件】:${JSON.stringify(mediaPayload.MediaPaths)}`;
299
+ textForAgent = `${textForAgent}${fileHint}`;
300
+ log.log(`[BOT] Steer: appended file paths to text`);
301
+ }
294
302
  // Resolve envelope format options (following feishu pattern)
295
303
  const envelopeOptions = core.channel.reply.resolveEnvelopeFormatOptions(cfg);
296
304
  // Build message body with speaker prefix (following feishu pattern)
@@ -230,6 +230,7 @@ export function createXYReplyDispatcher(params) {
230
230
  if (steerState.steered && !hasSentResponse) {
231
231
  scopedLog().log(`[ON-IDLE] Steered dispatch, no response generated, skipping`);
232
232
  stopStatusInterval();
233
+ await onIdleComplete?.();
233
234
  return;
234
235
  }
235
236
  // 🔑 用 try/finally 确保 cleanup 在 onIdle 的 async 工作全部完成后才执行。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.215-beta",
3
+ "version": "0.0.216-beta",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",