@wecom/wecom-openclaw-plugin 1.0.12-beta.1 → 1.0.12-beta.2

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
@@ -3326,6 +3326,11 @@ const plugin = {
3326
3326
  api.registerChannel({ plugin: wecomPlugin });
3327
3327
  // 注册 wecom_mcp:通过 HTTP 直接调用企业微信 MCP Server
3328
3328
  api.registerTool(createWeComMcpTool(), { name: "wecom_mcp" });
3329
+ // ── Gateway 启动时自动确保 tools.alsoAllow 包含 wecom_mcp ──────────
3330
+ // 在 gateway_start 阶段检测并写入,保证插件安装/更新后首次启动即生效
3331
+ // api.on("gateway_start", async () => {
3332
+ // await ensureToolsAlsoAllow(api);
3333
+ // });
3329
3334
  // 注入媒体发送指令和文件大小限制提示词
3330
3335
  api.on("before_prompt_build", () => {
3331
3336
  return {