All files / dingtalk-openclaw-connector index.ts

0% Statements 0/6
0% Branches 0/1
0% Functions 0/1
0% Lines 0/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                                           
/**
 * DingTalk Connector Plugin for OpenClaw
 *
 * 钉钉企业内部机器人插件,使用 Stream 模式连接,支持 AI Card 流式响应。
 * 已迁移到 OpenClaw SDK,支持多账号、安全策略等完整功能。
 * 
 * Last updated: 2026-03-18 17:00:00
 */
 
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
import { dingtalkPlugin } from "./src/channel.ts";
import { setDingtalkRuntime } from "./src/runtime.ts";
import { registerGatewayMethods } from "./src/gateway-methods.ts";
 
export default function register(api: OpenClawPluginApi) {
  setDingtalkRuntime(api.runtime);
  api.registerChannel({ plugin: dingtalkPlugin });
  
  // 注册 Gateway Methods
  registerGatewayMethods(api);
}