@ynhcj/xiaoyi-channel 0.0.202-next → 0.0.203-next

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/src/bot.js +10 -3
  2. package/package.json +1 -1
package/dist/src/bot.js CHANGED
@@ -406,8 +406,9 @@ export async function handleXYMessage(params) {
406
406
  // signal init complete to release the global dispatch gate
407
407
  // for the next session.
408
408
  const dispatchPromise = runWithSessionContext(sessionContext, async () => {
409
- log.log(`[ALS-PROOF] bot entered dispatch scope sessionId=${sessionContext.sessionId} taskId=${sessionContext.taskId} isSteer=false`);
410
- log.log(`[BOT-DISPATCH] dispatchReplyFromConfig starting, body.length=${ctxPayload.Body?.length ?? 0}`);
409
+ const isSteerDispatch = isUpdate && !skipReg;
410
+ log.log(`[ALS-PROOF] bot entered dispatch scope sessionId=${sessionContext.sessionId} taskId=${sessionContext.taskId} isSteer=${isSteerDispatch}`);
411
+ log.log(`[BOT-DISPATCH] dispatchReplyFromConfig starting, body.length=${ctxPayload.Body?.length ?? 0}, isSteer=${isSteerDispatch}`);
411
412
  try {
412
413
  const result = await core.channel.reply.dispatchReplyFromConfig({
413
414
  ctx: ctxPayload,
@@ -415,7 +416,13 @@ export async function handleXYMessage(params) {
415
416
  dispatcher,
416
417
  replyOptions,
417
418
  });
418
- log.log(`[BOT-DISPATCH] dispatchReplyFromConfig returned, result=${JSON.stringify(result)}`);
419
+ // 区分 steer 成功(undefined)和 steer 失败/正常 run(有结果)
420
+ if (result === undefined) {
421
+ log.log(`[BOT-DISPATCH] dispatchReplyFromConfig returned undefined — steer injected successfully`);
422
+ }
423
+ else {
424
+ log.log(`[BOT-DISPATCH] dispatchReplyFromConfig returned, resultType=${typeof result}, isSteer=${isSteerDispatch}, steered=${steerState.steered}`);
425
+ }
419
426
  return result;
420
427
  }
421
428
  catch (dispatchErr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.202-next",
3
+ "version": "0.0.203-next",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",