Files
openclaw/extensions/whatsapp/api.ts
Peter Steinberger 6aa27d6ecd refactor: retire August compat windows (embedding API, pi aliases, target parser, spawning hook, setup exports, WhatsApp inbound aliases) (#124416)
* 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.
2026-08-15 22:43:47 -07:00

69 lines
2.1 KiB
TypeScript

// Whatsapp API module exposes the plugin public contract.
export { whatsappPlugin } from "./src/channel.js";
export { whatsappSetupPlugin } from "./src/channel.setup.js";
export {
DEFAULT_WHATSAPP_MEDIA_MAX_MB,
hasAnyWhatsAppAuth,
listEnabledWhatsAppAccounts,
listWhatsAppAccountIds,
listWhatsAppAuthDirs,
resolveDefaultWhatsAppAccountId,
type ResolvedWhatsAppAccount,
resolveWhatsAppAccount,
resolveWhatsAppAuthDir,
resolveWhatsAppMediaMaxBytes,
} from "./src/accounts.js";
export { DEFAULT_WEB_MEDIA_BYTES } from "./src/auto-reply/constants.js";
export { whatsappCommandPolicy } from "./src/command-policy.js";
export {
resolveWhatsAppGroupRequireMention,
resolveWhatsAppGroupToolPolicy,
} from "./src/group-policy.js";
export { WHATSAPP_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./src/outbound-send-deps.js";
export {
assertWebChannel,
isSelfChatMode,
jidToE164,
markdownToWhatsApp,
normalizeE164,
resolveJidToE164,
resolveUserPath,
toWhatsappJid,
toWhatsappJidWithLid,
type JidToE164Options,
type WebChannel,
} from "./src/text-runtime.js";
export {
type WebChannelHealthState,
type WebChannelStatus,
type WebInboundMsg,
type WebMonitorTuning,
} from "./src/auto-reply/types.js";
export {
type ActiveWebListener,
type ActiveWebSendOptions,
type WebInboundCallbackMessage,
type WebInboundMessage,
type WebListenerCloseReason,
type WhatsAppStructuredContactContext,
} from "./src/inbound/types.js";
export type { WhatsAppInboundAdmission } from "./src/inbound/admission.js";
export {
listWhatsAppDirectoryGroupsFromConfig,
listWhatsAppDirectoryPeersFromConfig,
} from "./src/directory-config.js";
export { resolveWhatsAppOutboundTarget } from "./src/resolve-outbound-target.js";
export {
isWhatsAppGroupJid,
normalizeWhatsAppAllowFromEntries,
isWhatsAppUserTarget,
looksLikeWhatsAppTargetId,
normalizeWhatsAppMessagingTarget,
normalizeWhatsAppTarget,
} from "./src/normalize-target.js";
export {
startWhatsAppQaDriverSession,
type WhatsAppQaDriverObservedMessage,
type WhatsAppQaDriverSession,
} from "./src/qa-driver.runtime.js";