mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 16:01:38 +00:00
* feat(whatsapp): add requester-bound MeowCaller calls * fix(whatsapp): align MeowCaller CLI contract * test(whatsapp): narrow MeowCaller audio path * fix(whatsapp): budget MeowCaller setup phases * feat(whatsapp): gate experimental calls * fix(whatsapp): use managed call temp storage * fix(whatsapp): preserve channel entry boundary
34 lines
966 B
TypeScript
34 lines
966 B
TypeScript
// Whatsapp plugin entrypoint registers its OpenClaw integration.
|
|
import {
|
|
defineBundledChannelEntry,
|
|
loadBundledEntryExportSync,
|
|
} from "openclaw/plugin-sdk/channel-entry-contract";
|
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
|
|
function registerWhatsAppCallTool(api: OpenClawPluginApi): void {
|
|
const registerTool = loadBundledEntryExportSync<(api: OpenClawPluginApi) => void>(
|
|
import.meta.url,
|
|
{
|
|
specifier: "./call-tool-api.js",
|
|
exportName: "registerWhatsAppCallTool",
|
|
},
|
|
);
|
|
registerTool(api);
|
|
}
|
|
|
|
export default defineBundledChannelEntry({
|
|
id: "whatsapp",
|
|
name: "WhatsApp",
|
|
description: "WhatsApp channel plugin",
|
|
importMetaUrl: import.meta.url,
|
|
plugin: {
|
|
specifier: "./channel-plugin-api.js",
|
|
exportName: "whatsappPlugin",
|
|
},
|
|
runtime: {
|
|
specifier: "./runtime-setter-api.js",
|
|
exportName: "setWhatsAppRuntime",
|
|
},
|
|
registerFull: registerWhatsAppCallTool,
|
|
});
|