@wecom/wecom-openclaw-plugin 1.0.12-beta.1 → 1.0.12-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 CHANGED
@@ -3352,6 +3352,11 @@ const plugin = {
3352
3352
  api.registerChannel({ plugin: wecomPlugin });
3353
3353
  // 注册 wecom_mcp:通过 HTTP 直接调用企业微信 MCP Server
3354
3354
  api.registerTool(createWeComMcpTool(), { name: "wecom_mcp" });
3355
+ // ── Gateway 启动时自动确保 tools.alsoAllow 包含 wecom_mcp ──────────
3356
+ // 在 gateway_start 阶段检测并写入,保证插件安装/更新后首次启动即生效
3357
+ // api.on("gateway_start", async () => {
3358
+ // await ensureToolsAlsoAllow(api);
3359
+ // });
3355
3360
  // 注入媒体发送指令和文件大小限制提示词
3356
3361
  api.on("before_prompt_build", () => {
3357
3362
  return {