@ynhcj/xiaoyi-channel 0.0.19-next → 0.0.20-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/index.js +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -58,14 +58,12 @@ const plugin = {
58
58
  console.log(`[CSPL] API response: ${JSON.stringify(response)}`);
59
59
  const result = parseSecurityResult(response);
60
60
  console.log(`[CSPL] Security result: status=${result.status}`);
61
- if (result.status === "REJECT") {
62
- console.log(`[CSPL] REJECT received, injecting steer message`);
61
+ // MOCK: 临时让 ACCEPT 也触发 steer,用于验证注入流程
62
+ if (result.status === "REJECT" || result.status === "ACCEPT") {
63
+ console.log(`[CSPL] ${result.status} received, injecting steer message (MOCK MODE)`);
63
64
  const injected = await tryInjectSteer(ctx.sessionKey, STEER_ABORT_MESSAGE);
64
65
  console.log(`[CSPL] Steer injection result: ${injected}`);
65
66
  }
66
- else {
67
- console.log(`[CSPL] ACCEPT, no action needed`);
68
- }
69
67
  }
70
68
  catch (err) {
71
69
  console.log(`[CSPL] after_tool_call error: ${err}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.19-next",
3
+ "version": "0.0.20-next",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",