mirror of https://github.com/openclaw/openclaw.git
Plugin SDK: use public whatsapp subpath
This commit is contained in:
parent
27f655ed11
commit
b3ca855283
|
|
@ -7,11 +7,15 @@ export {
|
|||
monitorWebChannel,
|
||||
resolveHeartbeatRecipients,
|
||||
runWebHeartbeatOnce,
|
||||
} from "./plugin-sdk/whatsapp.js";
|
||||
export { extractMediaPlaceholder, extractText, monitorWebInbox } from "./plugin-sdk/whatsapp.js";
|
||||
export { loginWeb } from "./plugin-sdk/whatsapp.js";
|
||||
} from "openclaw/plugin-sdk/whatsapp";
|
||||
export {
|
||||
extractMediaPlaceholder,
|
||||
extractText,
|
||||
monitorWebInbox,
|
||||
} from "openclaw/plugin-sdk/whatsapp";
|
||||
export { loginWeb } from "openclaw/plugin-sdk/whatsapp";
|
||||
export { loadWebMedia, optimizeImageToJpeg } from "./media/web-media.js";
|
||||
export { sendMessageWhatsApp } from "./plugin-sdk/whatsapp.js";
|
||||
export { sendMessageWhatsApp } from "openclaw/plugin-sdk/whatsapp";
|
||||
export {
|
||||
createWaSocket,
|
||||
formatError,
|
||||
|
|
@ -22,4 +26,4 @@ export {
|
|||
WA_WEB_AUTH_DIR,
|
||||
waitForWaConnection,
|
||||
webAuthExists,
|
||||
} from "./plugin-sdk/whatsapp.js";
|
||||
} from "openclaw/plugin-sdk/whatsapp";
|
||||
|
|
|
|||
|
|
@ -70,4 +70,4 @@ export function createOutboundSendDeps(deps: CliDeps): OutboundSendDeps {
|
|||
return createOutboundSendDepsFromCliSource(deps);
|
||||
}
|
||||
|
||||
export { logWebSelfId } from "../plugin-sdk/whatsapp.js";
|
||||
export { logWebSelfId } from "openclaw/plugin-sdk/whatsapp";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { sendMessageWhatsApp as sendMessageWhatsAppImpl } from "../../plugin-sdk/whatsapp.js";
|
||||
import { sendMessageWhatsApp as sendMessageWhatsAppImpl } from "openclaw/plugin-sdk/whatsapp";
|
||||
|
||||
type RuntimeSend = {
|
||||
sendMessage: typeof import("../../plugin-sdk/whatsapp.js").sendMessageWhatsApp;
|
||||
sendMessage: typeof import("openclaw/plugin-sdk/whatsapp").sendMessageWhatsApp;
|
||||
};
|
||||
|
||||
export const runtimeSend = {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { hasAnyWhatsAppAuth } from "openclaw/plugin-sdk/whatsapp";
|
||||
import { normalizeProviderId } from "../agents/model-selection.js";
|
||||
import { hasMeaningfulChannelConfig } from "../channels/config-presence.js";
|
||||
import {
|
||||
|
|
@ -9,7 +10,6 @@ import {
|
|||
listChatChannels,
|
||||
normalizeChatChannelId,
|
||||
} from "../channels/registry.js";
|
||||
import { hasAnyWhatsAppAuth } from "../plugin-sdk/whatsapp.js";
|
||||
import {
|
||||
loadPluginManifestRegistry,
|
||||
type PluginManifestRegistry,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import { resolveWhatsAppAccount } from "openclaw/plugin-sdk/whatsapp";
|
||||
import type { ChannelId } from "../../channels/plugins/types.js";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import {
|
||||
|
|
@ -13,7 +14,6 @@ import {
|
|||
resolveSessionDeliveryTarget,
|
||||
} from "../../infra/outbound/targets.js";
|
||||
import { readChannelAllowFromStoreSync } from "../../pairing/pairing-store.js";
|
||||
import { resolveWhatsAppAccount } from "../../plugin-sdk/whatsapp.js";
|
||||
import { buildChannelAccountBindings } from "../../routing/bindings.js";
|
||||
import { normalizeAccountId, normalizeAgentId } from "../../routing/session-key.js";
|
||||
import { normalizeWhatsAppTarget } from "../../whatsapp/normalize.js";
|
||||
|
|
|
|||
Loading…
Reference in New Issue