mirror of https://github.com/openclaw/openclaw.git
WhatsApp: isolate lazy action runtime boundary
This commit is contained in:
parent
bb803a42ac
commit
9e8b9aba1f
|
|
@ -0,0 +1 @@
|
|||
export { handleWhatsAppAction } from "./src/action-runtime.js";
|
||||
|
|
@ -68,7 +68,7 @@ let webLoginQrPromise: Promise<
|
|||
> | null = null;
|
||||
let webChannelPromise: Promise<typeof import("../../channels/web/index.js")> | null = null;
|
||||
let whatsappActionsPromise: Promise<
|
||||
typeof import("../../../extensions/whatsapp/runtime-api.js")
|
||||
typeof import("../../../extensions/whatsapp/action-runtime.runtime.js")
|
||||
> | null = null;
|
||||
|
||||
function loadWebLoginQr() {
|
||||
|
|
@ -82,7 +82,7 @@ function loadWebChannel() {
|
|||
}
|
||||
|
||||
function loadWhatsAppActions() {
|
||||
whatsappActionsPromise ??= import("../../../extensions/whatsapp/runtime-api.js");
|
||||
whatsappActionsPromise ??= import("../../../extensions/whatsapp/action-runtime.runtime.js");
|
||||
return whatsappActionsPromise;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ export type PluginRuntimeChannel = {
|
|||
startWebLoginWithQr: typeof import("../../../extensions/whatsapp/login-qr-api.js").startWebLoginWithQr;
|
||||
waitForWebLogin: typeof import("../../../extensions/whatsapp/login-qr-api.js").waitForWebLogin;
|
||||
monitorWebChannel: typeof import("../../channels/web/index.js").monitorWebChannel;
|
||||
handleWhatsAppAction: typeof import("../../../extensions/whatsapp/runtime-api.js").handleWhatsAppAction;
|
||||
handleWhatsAppAction: typeof import("../../../extensions/whatsapp/action-runtime.runtime.js").handleWhatsAppAction;
|
||||
createLoginTool: typeof import("./runtime-whatsapp-login-tool.js").createRuntimeWhatsAppLoginTool;
|
||||
};
|
||||
line: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue