mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 22:10:51 +00:00
WhatsApp: isolate lazy action runtime boundary
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user