


























@@ -6,7 +6,6 @@ import {
66} from "openclaw/plugin-sdk/setup";
77import { listWhatsAppAccountIds, resolveWhatsAppAuthDir } from "./accounts.js";
88import { formatWhatsAppWebAuthStatusState, readWebAuthState } from "./auth-store.js";
9-import { finalizeWhatsAppSetup } from "./setup-finalize.js";
1091110const channel = "whatsapp" as const;
1211@@ -60,8 +59,8 @@ export const whatsappSetupWizard: ChannelSetupWizard = {
6059},
6160resolveShouldPromptAccountIds: ({ shouldPromptAccountIds }) => shouldPromptAccountIds,
6261credentials: [],
63-finalize: async ({ cfg, accountId, forceAllowFrom, prompter, runtime }) =>
64-await finalizeWhatsAppSetup({ cfg, accountId, forceAllowFrom, prompter, runtime }),
62+finalize: async (params) =>
63+await (await import("./setup-finalize.js")).finalizeWhatsAppSetup(params),
6564disable: (cfg) => setSetupChannelEnabled(cfg, channel, false),
6665onAccountRecorded: (accountId, options) => {
6766options?.onAccountId?.(channel, accountId);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。