@wecom/wecom-openclaw-plugin 1.0.14-beta.2 → 1.0.14-beta.3
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.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3381,8 +3381,12 @@ const plugin = {
|
|
|
3381
3381
|
// api.on("gateway_start", async () => {
|
|
3382
3382
|
// await ensureToolsAlsoAllow(api);
|
|
3383
3383
|
// });
|
|
3384
|
-
//
|
|
3385
|
-
api.on("before_prompt_build", () => {
|
|
3384
|
+
// 注入媒体发送指令和文件大小限制提示词(仅对企业微信 channel 生效)
|
|
3385
|
+
api.on("before_prompt_build", (_event, ctx) => {
|
|
3386
|
+
// 只在企业微信 channel 的会话中注入,避免影响其他 channel 插件
|
|
3387
|
+
if (ctx?.channelId !== CHANNEL_ID) {
|
|
3388
|
+
return;
|
|
3389
|
+
}
|
|
3386
3390
|
return {
|
|
3387
3391
|
appendSystemContext: [
|
|
3388
3392
|
"## MEDIA 指令:向用户发送本地文件",
|