"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; var _pluginSdk = require("openclaw/plugin-sdk"); var _monitor = require("./src/monitor.js"); var _runtime = require("./src/runtime.js"); var _channel = require("./src/channel.js"); const plugin = { id: "wecom", name: "WeCom", description: "OpenClaw WeCom (WeChat Work) intelligent bot channel plugin", configSchema: (0, _pluginSdk.emptyPluginConfigSchema)(), /** * **register (注册插件)** * * OpenClaw 插件入口点。 * 1. 注入 Runtime 环境 (api.runtime)。 * 2. 注册 WeCom 渠道插件 (ChannelPlugin)。 * 3. 注册 Webhook HTTP 路由(推荐 /plugins/wecom/*,兼容 /wecom*)。 */ register(api) { (0, _runtime.setWecomRuntime)(api.runtime); api.registerChannel({ plugin: _channel.wecomPlugin }); const routes = ["/plugins/wecom", "/wecom"]; for (const path of routes) { api.registerHttpRoute({ path, handler: _monitor.handleWecomWebhookRequest, auth: "plugin", match: "prefix" }); } } };var _default = exports.default = plugin; /* v9-5beaa8ab56615e48 */