mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
6aa27d6ecd
* refactor(plugin-sdk): retire embedded Pi aliases * refactor(channels): retire explicit target compatibility * refactor(plugins): retire subagent spawning hook * refactor(plugin-sdk): retire shipped channel setup exports * refactor(whatsapp): retire inbound callback aliases Proof: focused build and WhatsApp E2E green; broad WhatsApp suite 188/189 files green. extensions/whatsapp/src/monitor-inbox.policy.test.ts flakes only in the parallel batch and passes isolated (10/10). * refactor(plugin-sdk): retire memory embedding registrar Migrate every bundled provider and manifest to registerEmbeddingProvider and contracts.embeddingProviders. Preserve memory-specific batching, local-service acquisition, index identity, and auto-selection through the canonical generic registry adapter, then remove the parallel registrar, registry, diagnostics, contracts, tests, and docs. * chore(plugin-sdk): tighten retired surface budgets Pin the post-retirement public SDK surface to 144 entrypoints, 4,312 exports, 2,564 callable exports, and 1,133 deprecated exports; agent-harness-runtime now permits exactly nine deprecated exports.
87 lines
2.2 KiB
TypeScript
87 lines
2.2 KiB
TypeScript
// Whatsapp API module exposes the plugin public contract.
|
|
export {
|
|
getActiveWebListener,
|
|
resolveWebAccountId,
|
|
type ActiveWebListener,
|
|
type ActiveWebSendOptions,
|
|
} from "./src/active-listener.js";
|
|
export { handleWhatsAppAction, whatsAppActionRuntime } from "./src/action-runtime.js";
|
|
export { createWhatsAppLoginTool } from "./src/agent-tools-login.js";
|
|
export {
|
|
formatWhatsAppWebAuthStatusState,
|
|
getWebAuthAgeMs,
|
|
hasWebCredsSync,
|
|
logWebSelfId,
|
|
logoutWeb,
|
|
pickWebChannel,
|
|
readCredsJsonRaw,
|
|
readWebAuthExistsBestEffort,
|
|
readWebAuthExistsForDecision,
|
|
readWebAuthSnapshot,
|
|
readWebAuthSnapshotBestEffort,
|
|
readWebAuthState,
|
|
readWebSelfId,
|
|
readWebSelfIdentity,
|
|
readWebSelfIdentityForDecision,
|
|
resolveDefaultWebAuthDir,
|
|
resolveWebCredsBackupPath,
|
|
resolveWebCredsPath,
|
|
restoreCredsFromBackupIfNeeded,
|
|
webAuthExists,
|
|
WA_WEB_AUTH_DIR,
|
|
WHATSAPP_AUTH_UNSTABLE_CODE,
|
|
WhatsAppAuthUnstableError,
|
|
type WhatsAppWebAuthState,
|
|
} from "./src/auth-store.js";
|
|
export {
|
|
DEFAULT_WEB_MEDIA_BYTES,
|
|
HEARTBEAT_PROMPT,
|
|
HEARTBEAT_TOKEN,
|
|
monitorWebChannel,
|
|
SILENT_REPLY_TOKEN,
|
|
stripHeartbeatToken,
|
|
type WebChannelStatus,
|
|
type WebMonitorTuning,
|
|
} from "./src/auto-reply.js";
|
|
export {
|
|
extractContactContext,
|
|
extractLocationData,
|
|
extractText,
|
|
monitorWebInbox,
|
|
resetWebInboundDedupe,
|
|
type WebInboundCallbackMessage,
|
|
type WebInboundMessage,
|
|
type WebListenerCloseReason,
|
|
type WhatsAppInboundAdmission,
|
|
} from "./src/inbound.js";
|
|
export { loginWeb } from "./src/login.js";
|
|
export {
|
|
getDefaultLocalRoots,
|
|
loadWebMedia,
|
|
loadWebMediaRaw,
|
|
LocalMediaAccessError,
|
|
optimizeImageToJpeg,
|
|
optimizeImageToPng,
|
|
type LocalMediaAccessErrorCode,
|
|
type WebMediaResult,
|
|
} from "./src/media.js";
|
|
export {
|
|
sendMessageWhatsApp,
|
|
sendPollWhatsApp,
|
|
sendReactionWhatsApp,
|
|
sendTypingWhatsApp,
|
|
} from "./src/send.js";
|
|
export {
|
|
createWaSocket,
|
|
formatError,
|
|
getStatusCode,
|
|
newConnectionId,
|
|
waitForCredsSaveQueue,
|
|
waitForCredsSaveQueueWithTimeout,
|
|
waitForWaConnection,
|
|
writeCredsJsonAtomically,
|
|
type CredsQueueWaitResult,
|
|
} from "./src/session.js";
|
|
export { setWhatsAppRuntime } from "./src/runtime.js";
|
|
export { startWebLoginWithQr, waitForWebLogin } from "./login-qr-runtime.js";
|