mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
Replace the built-in Feishu SDK with the community-maintained clawdbot-feishu plugin by @m1heng. Changes: - Remove src/feishu/ directory (19 files) - Remove src/channels/plugins/outbound/feishu.ts - Remove src/channels/plugins/normalize/feishu.ts - Remove src/config/types.feishu.ts - Remove feishu exports from plugin-sdk/index.ts - Remove FeishuConfig from types.channels.ts New features in community plugin: - Document tools (read/create/edit Feishu docs) - Wiki tools (navigate/manage knowledge base) - Drive tools (folder/file management) - Bitable tools (read/write table records) - Permission tools (collaborator management) - Emoji reactions support - Typing indicators - Rich media support (bidirectional image/file transfer) - @mention handling - Skills for feishu-doc, feishu-wiki, feishu-drive, feishu-perm Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
import { registerFeishuBitableTools } from "./src/bitable.js";
|
|
import { feishuPlugin } from "./src/channel.js";
|
|
import { registerFeishuDocTools } from "./src/docx.js";
|
|
import { registerFeishuDriveTools } from "./src/drive.js";
|
|
import { registerFeishuPermTools } from "./src/perm.js";
|
|
import { setFeishuRuntime } from "./src/runtime.js";
|
|
import { registerFeishuWikiTools } from "./src/wiki.js";
|
|
|
|
export { monitorFeishuProvider } from "./src/monitor.js";
|
|
export {
|
|
sendMessageFeishu,
|
|
sendCardFeishu,
|
|
updateCardFeishu,
|
|
editMessageFeishu,
|
|
getMessageFeishu,
|
|
} from "./src/send.js";
|
|
export {
|
|
uploadImageFeishu,
|
|
uploadFileFeishu,
|
|
sendImageFeishu,
|
|
sendFileFeishu,
|
|
sendMediaFeishu,
|
|
} from "./src/media.js";
|
|
export { probeFeishu } from "./src/probe.js";
|
|
export {
|
|
addReactionFeishu,
|
|
removeReactionFeishu,
|
|
listReactionsFeishu,
|
|
FeishuEmoji,
|
|
} from "./src/reactions.js";
|
|
export {
|
|
extractMentionTargets,
|
|
extractMessageBody,
|
|
isMentionForwardRequest,
|
|
formatMentionForText,
|
|
formatMentionForCard,
|
|
formatMentionAllForText,
|
|
formatMentionAllForCard,
|
|
buildMentionedMessage,
|
|
buildMentionedCardContent,
|
|
type MentionTarget,
|
|
} from "./src/mention.js";
|
|
export { feishuPlugin } from "./src/channel.js";
|
|
|
|
const plugin = {
|
|
id: "feishu",
|
|
name: "Feishu",
|
|
description: "Feishu/Lark channel plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
setFeishuRuntime(api.runtime);
|
|
api.registerChannel({ plugin: feishuPlugin });
|
|
registerFeishuDocTools(api);
|
|
registerFeishuWikiTools(api);
|
|
registerFeishuDriveTools(api);
|
|
registerFeishuPermTools(api);
|
|
registerFeishuBitableTools(api);
|
|
},
|
|
};
|
|
|
|
export default plugin;
|