WhatsApp: isolate lazy action runtime boundary

This commit is contained in:
Gustavo Madeira Santana
2026-03-18 02:20:57 +00:00
parent bb803a42ac
commit 9e8b9aba1f
3 changed files with 4 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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: {