openclaw/src/channel-web.ts
2026-03-16 01:34:22 -07:00

30 lines
870 B
TypeScript

// Barrel exports for the web channel pieces. Splitting the original 900+ line
// module keeps responsibilities small and testable.
export {
DEFAULT_WEB_MEDIA_BYTES,
HEARTBEAT_PROMPT,
HEARTBEAT_TOKEN,
monitorWebChannel,
resolveHeartbeatRecipients,
runWebHeartbeatOnce,
} from "./plugin-sdk-internal/whatsapp.js";
export {
extractMediaPlaceholder,
extractText,
monitorWebInbox,
} from "./plugin-sdk-internal/whatsapp.js";
export { loginWeb } from "./plugin-sdk-internal/whatsapp.js";
export { loadWebMedia, optimizeImageToJpeg } from "./plugin-sdk-internal/whatsapp.js";
export { sendMessageWhatsApp } from "./plugin-sdk-internal/whatsapp.js";
export {
createWaSocket,
formatError,
getStatusCode,
logoutWeb,
logWebSelfId,
pickWebChannel,
WA_WEB_AUTH_DIR,
waitForWaConnection,
webAuthExists,
} from "./plugin-sdk-internal/whatsapp.js";