| 12345678910111213141516171819202122232425262728 |
- /**
- * Plugin entry point for @fmode/openclaw-wechat-agent.
- *
- * OpenClaw loads this file and calls register(api) with its PluginApi.
- * We stash api.runtime into our runtime singleton (used later in
- * outbound/monitor hot paths) and register the channel plugin.
- *
- * Mirrors the shape used by @openclaw/zalo and @openclaw/msteams.
- */
- import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
- import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
- import { wechatAgentPlugin } from "./src/channel.js";
- import { setRuntime } from "./src/runtime.js";
- const plugin = {
- id: "wechat-agent",
- name: "WeChat (Agent Backend)",
- description:
- "OpenClaw channel plugin that bridges a third-party WeChat HTTP bot (xbot/wcf) into the OpenClaw agent pipeline.",
- configSchema: emptyPluginConfigSchema(),
- register(api: OpenClawPluginApi) {
- setRuntime(api.runtime);
- api.registerChannel({ plugin: wechatAgentPlugin });
- },
- };
- export default plugin;
|