@wecom/wecom-openclaw-plugin 1.0.14-beta.2 → 2026.3.20-beta.1

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/index.esm.js CHANGED
@@ -3355,8 +3355,12 @@ const plugin = {
3355
3355
  // api.on("gateway_start", async () => {
3356
3356
  // await ensureToolsAlsoAllow(api);
3357
3357
  // });
3358
- // 注入媒体发送指令和文件大小限制提示词
3359
- api.on("before_prompt_build", () => {
3358
+ // 注入媒体发送指令和文件大小限制提示词(仅对企业微信 channel 生效)
3359
+ api.on("before_prompt_build", (_event, ctx) => {
3360
+ // 只在企业微信 channel 的会话中注入,避免影响其他 channel 插件
3361
+ if (ctx?.channelId !== CHANNEL_ID) {
3362
+ return;
3363
+ }
3360
3364
  return {
3361
3365
  appendSystemContext: [
3362
3366
  "## MEDIA 指令:向用户发送本地文件",