Files
clawdbot/src/channel-web.ts
2026-01-13 08:40:39 +00:00

34 lines
875 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,
type WebChannelStatus,
type WebMonitorTuning,
} from "./web/auto-reply.js";
export {
extractMediaPlaceholder,
extractText,
monitorWebInbox,
type WebInboundMessage,
type WebListenerCloseReason,
} from "./web/inbound.js";
export { loginWeb } from "./web/login.js";
export { loadWebMedia, optimizeImageToJpeg } from "./web/media.js";
export { sendMessageWhatsApp } from "./web/outbound.js";
export {
createWaSocket,
formatError,
getStatusCode,
logoutWeb,
logWebSelfId,
pickWebChannel,
WA_WEB_AUTH_DIR,
waitForWaConnection,
webAuthExists,
} from "./web/session.js";