Files
openclaw/src/plugins/runtime/runtime-whatsapp.ts
2026-03-19 03:13:48 +00:00

37 lines
807 B
TypeScript

import {
createRuntimeWhatsAppLoginTool,
getActiveWebListener,
getWebAuthAgeMs,
handleWhatsAppAction,
logWebSelfId,
loginWeb,
logoutWeb,
monitorWebChannel,
readWebSelfId,
sendMessageWhatsApp,
sendPollWhatsApp,
startWebLoginWithQr,
waitForWebLogin,
webAuthExists,
} from "./runtime-whatsapp-boundary.js";
import type { PluginRuntime } from "./types.js";
export function createRuntimeWhatsApp(): PluginRuntime["channel"]["whatsapp"] {
return {
getActiveWebListener,
getWebAuthAgeMs,
logoutWeb,
logWebSelfId,
readWebSelfId,
webAuthExists,
sendMessageWhatsApp,
sendPollWhatsApp,
loginWeb,
startWebLoginWithQr,
waitForWebLogin,
monitorWebChannel,
handleWhatsAppAction,
createLoginTool: createRuntimeWhatsAppLoginTool,
};
}