@openclaw/whatsapp 2026.5.10-beta.2 → 2026.5.10-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/{access-control-CdP8S3rJ.js → access-control-BEpPB-Jx.js} +6 -6
  2. package/dist/{accounts-BDqgpFEB.js → accounts-B4oR6Dhx.js} +1 -1
  3. package/dist/action-runtime-api.js +1 -1
  4. package/dist/{action-runtime-CMhO8liB.js → action-runtime-lppOTCTN.js} +4 -4
  5. package/dist/action-runtime.runtime.js +1 -1
  6. package/dist/api.js +18 -145
  7. package/dist/{auth-store-CjEimXKX.js → auth-store-_ScMvp7r.js} +10 -10
  8. package/dist/channel-config-api.js +1 -1
  9. package/dist/channel-plugin-api.js +1 -1
  10. package/dist/{channel-react-action-DJvzhIPw.js → channel-react-action-C1wufQtL.js} +3 -3
  11. package/dist/{channel-BxntAClG.js → channel-yfTKmDAy.js} +18 -18
  12. package/dist/{channel.runtime-CNdPCK3G.js → channel.runtime-U2LumvwN.js} +5 -5
  13. package/dist/{channel.setup-BqlcEVzR.js → channel.setup-k1Ro0czO.js} +4 -4
  14. package/dist/{connection-controller-DX2phM7V.js → connection-controller-Ik54eV0p.js} +7 -6
  15. package/dist/constants.js +1 -1
  16. package/dist/contract-api.js +8 -8
  17. package/dist/{directory-config-o-muXLgk.js → directory-config-CE74HYlw.js} +3 -3
  18. package/dist/directory-contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +1 -1
  20. package/dist/{group-session-contract-DL-SLclv.js → group-session-contract-DdqigLJl.js} +1 -1
  21. package/dist/{identity-KxdJfH7p.js → identity-BNDkpR8N.js} +2 -2
  22. package/dist/legacy-session-surface-api.js +1 -1
  23. package/dist/legacy-state-migrations-api.js +1 -1
  24. package/dist/light-runtime-api.js +3 -3
  25. package/dist/{login-DV99D0IN.js → login-eiyCwLI5.js} +6 -6
  26. package/dist/{login-qr-cKndAXTv.js → login-qr-CSEa1_wH.js} +5 -5
  27. package/dist/login-qr-runtime.js +1 -1
  28. package/dist/{monitor-mfy3Mmq-.js → monitor-DcfFBU0V.js} +46 -34
  29. package/dist/normalize-f31evwm8.js +2 -0
  30. package/dist/{normalize-target-nXxC_hxG.js → normalize-target-ePanEpfY.js} +1 -1
  31. package/dist/{outbound-adapter-B9ZW8sht.js → outbound-adapter-Bs0e4qVd.js} +4 -4
  32. package/dist/{outbound-base-MVpg2zU2.js → outbound-base-BgtywpNm.js} +3 -3
  33. package/dist/{outbound-media-contract-BzWwBppP.js → outbound-media-contract-zq9aNgT8.js} +5 -5
  34. package/dist/outbound-payload-test-api.js +1 -1
  35. package/dist/{quoted-message-DQ6hAr34.js → quoted-message-BQsRXnac.js} +1 -1
  36. package/dist/{reaction-level-CRVEVAfi.js → reaction-level-2m9sWGCw.js} +1 -1
  37. package/dist/{resolve-outbound-target-CQ3Y1i0g.js → resolve-outbound-target-BKcv4ofn.js} +1 -1
  38. package/dist/rolldown-runtime-CiIaOW0V.js +13 -0
  39. package/dist/runtime-api.js +11 -11
  40. package/dist/{security-contract-BzlZFreO.js → security-contract-CvfWex9e.js} +1 -1
  41. package/dist/security-contract-api.js +1 -1
  42. package/dist/{send-u88yh8Hw.js → send-DBfXQDd4.js} +10 -9
  43. package/dist/{send-api-DsbCqDre.js → send-api-DD93aPIQ.js} +7 -7
  44. package/dist/{session-DeIU_vjJ.js → session-CVCKPoQN.js} +6 -6
  45. package/dist/{session.runtime-B9VlYnWQ.js → session.runtime-CZQ0ycCg.js} +2 -2
  46. package/dist/{setup-finalize-D3YuMUBs.js → setup-finalize-WYnZjedw.js} +4 -4
  47. package/dist/setup-plugin-api.js +1 -1
  48. package/dist/{setup-surface-CHjYlKJc.js → setup-surface-DJAu-uxi.js} +3 -3
  49. package/dist/{shared-CgYT3IzU.js → shared-CcuxfjaQ.js} +9 -9
  50. package/dist/targets.js +1 -1
  51. package/dist/test-api.js +2 -2
  52. package/dist/{text-runtime-DBKC9uEi.js → text-runtime-CMxQczvs.js} +4 -42
  53. package/package.json +5 -5
  54. package/dist/normalize-Y3eBdM8a.js +0 -2
  55. /package/dist/{active-listener-D2NHQ5Og.js → active-listener-DTbKS-j-.js} +0 -0
  56. /package/dist/{agent-tools-login-DYKYW5Nh.js → agent-tools-login-DpRxLNRB.js} +0 -0
  57. /package/dist/{audio-preflight.runtime-CIFjeaEN.js → audio-preflight.runtime-MmkB-pgX.js} +0 -0
  58. /package/dist/{command-policy-BgZRZ31o.js → command-policy-O8sRnqUV.js} +0 -0
  59. /package/dist/{config-schema-cSC7M4YA.js → config-schema-Dmo66Ubb.js} +0 -0
  60. /package/dist/{constants-yKXGCGU9.js → constants-DLGCIbfl.js} +0 -0
  61. /package/dist/{doctor-BrgepDUP.js → doctor-A9tXm9Om.js} +0 -0
  62. /package/dist/{reply-resolver.runtime-CROyXXQh.js → reply-resolver.runtime-rIVWohXr.js} +0 -0
  63. /package/dist/{runtime-DdodQB8G.js → runtime-6fZ67abR.js} +0 -0
  64. /package/dist/{runtime-group-policy-BH_U23qp.js → runtime-group-policy-Gp1lQ0at.js} +0 -0
  65. /package/dist/{session-contract-BNUscPf4.js → session-contract-B0efQf9P.js} +0 -0
  66. /package/dist/{setup-core-DnhO0PjG.js → setup-core-DZKvpzbH.js} +0 -0
  67. /package/dist/{state-migrations-CtdIArlK.js → state-migrations-Bm0S67yH.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { r as isSelfChatMode, t as text_runtime_exports } from "./text-runtime-DBKC9uEi.js";
2
- import { a as resolveWhatsAppAccount } from "./accounts-BDqgpFEB.js";
3
- import { a as getSelfIdentity, o as getSenderIdentity } from "./identity-KxdJfH7p.js";
4
- import { t as resolveWhatsAppRuntimeGroupPolicy } from "./runtime-group-policy-BH_U23qp.js";
1
+ import { a as resolveWhatsAppAccount } from "./accounts-B4oR6Dhx.js";
2
+ import { l as isSelfChatMode, n as normalizeE164 } from "./text-runtime-CMxQczvs.js";
3
+ import { a as getSelfIdentity, o as getSenderIdentity } from "./identity-BNDkpR8N.js";
4
+ import { t as resolveWhatsAppRuntimeGroupPolicy } from "./runtime-group-policy-Gp1lQ0at.js";
5
5
  import { defaultRuntime } from "openclaw/plugin-sdk/runtime-env";
6
6
  import { resolveChannelGroupPolicy, resolveChannelGroupRequireMention } from "openclaw/plugin-sdk/channel-policy";
7
7
  import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
@@ -13,7 +13,7 @@ import { resolveGroupSessionKey } from "openclaw/plugin-sdk/session-store-runtim
13
13
  function normalizeWhatsAppIngressPhone(value) {
14
14
  const trimmed = value.trim();
15
15
  if (!trimmed) return null;
16
- return (0, text_runtime_exports.normalizeE164)(trimmed);
16
+ return normalizeE164(trimmed);
17
17
  }
18
18
  function resolveGroupConversationId(conversationId) {
19
19
  return resolveGroupSessionKey({
@@ -119,7 +119,7 @@ async function resolveWhatsAppCommandAuthorized(params) {
119
119
  const sender = getSenderIdentity(params.msg);
120
120
  const dmSender = sender.e164 ?? params.msg.from ?? "";
121
121
  const groupSender = sender.e164 ?? "";
122
- if (!(0, text_runtime_exports.normalizeE164)(isGroup ? groupSender : dmSender)) return false;
122
+ if (!normalizeE164(isGroup ? groupSender : dmSender)) return false;
123
123
  return (await resolveWhatsAppIngressAccess({
124
124
  cfg: params.cfg,
125
125
  policy,
@@ -5,7 +5,7 @@ import fs from "node:fs";
5
5
  import path from "node:path";
6
6
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, resolveUserPath } from "openclaw/plugin-sdk/account-core";
7
7
  import { resolveOAuthDir } from "openclaw/plugin-sdk/state-paths";
8
- import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
8
+ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  //#region extensions/whatsapp/src/accounts.ts
10
10
  const DEFAULT_WHATSAPP_MEDIA_MAX_MB = 50;
11
11
  function listWhatsAppAuthDirs(cfg) {
@@ -1,2 +1,2 @@
1
- import { t as handleWhatsAppAction } from "./action-runtime-CMhO8liB.js";
1
+ import { t as handleWhatsAppAction } from "./action-runtime-lppOTCTN.js";
2
2
  export { handleWhatsAppAction };
@@ -1,7 +1,7 @@
1
- import { a as resolveWhatsAppAccount } from "./accounts-BDqgpFEB.js";
2
- import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CQ3Y1i0g.js";
3
- import { t as resolveWhatsAppReactionLevel } from "./reaction-level-CRVEVAfi.js";
4
- import { r as sendReactionWhatsApp } from "./send-u88yh8Hw.js";
1
+ import { a as resolveWhatsAppAccount } from "./accounts-B4oR6Dhx.js";
2
+ import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BKcv4ofn.js";
3
+ import { t as resolveWhatsAppReactionLevel } from "./reaction-level-2m9sWGCw.js";
4
+ import { r as sendReactionWhatsApp } from "./send-DBfXQDd4.js";
5
5
  import { ToolAuthorizationError, createActionGate, jsonResult, readReactionParams, readStringParam } from "openclaw/plugin-sdk/channel-actions";
6
6
  //#region extensions/whatsapp/src/action-runtime-target-auth.ts
7
7
  function resolveAuthorizedWhatsAppOutboundTarget(params) {
@@ -1,2 +1,2 @@
1
- import { t as handleWhatsAppAction } from "./action-runtime-CMhO8liB.js";
1
+ import { t as handleWhatsAppAction } from "./action-runtime-lppOTCTN.js";
2
2
  export { handleWhatsAppAction };
package/dist/api.js CHANGED
@@ -1,21 +1,21 @@
1
- import { a as markdownToWhatsApp, i as jidToE164, n as assertWebChannel, o as resolveJidToE164, r as isSelfChatMode, s as toWhatsappJid, t as text_runtime_exports } from "./text-runtime-DBKC9uEi.js";
2
1
  import { r as resolveDefaultWhatsAppAccountId, t as listAccountIds } from "./account-ids-DG18xddX.js";
3
- import { a as resolveWhatsAppAccount, i as listWhatsAppAuthDirs, n as hasAnyWhatsAppAuth, o as resolveWhatsAppAuthDir, r as listEnabledWhatsAppAccounts, s as resolveWhatsAppMediaMaxBytes, t as DEFAULT_WHATSAPP_MEDIA_MAX_MB } from "./accounts-BDqgpFEB.js";
4
- import { a as normalizeWhatsAppAllowFromEntries, c as normalizeWhatsAppTarget, i as looksLikeWhatsAppTargetId, r as isWhatsAppUserTarget, s as normalizeWhatsAppMessagingTarget, t as isWhatsAppGroupJid } from "./normalize-target-nXxC_hxG.js";
5
- import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CQ3Y1i0g.js";
6
- import "./reaction-level-CRVEVAfi.js";
7
- import "./send-u88yh8Hw.js";
8
- import { t as whatsappPlugin } from "./channel-BxntAClG.js";
9
- import { n as WHATSAPP_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./outbound-base-MVpg2zU2.js";
10
- import { t as whatsappCommandPolicy } from "./command-policy-BgZRZ31o.js";
11
- import { a as resolveWhatsAppGroupToolPolicy, i as resolveWhatsAppGroupRequireMention, o as resolveWhatsAppGroupIntroHint } from "./shared-CgYT3IzU.js";
12
- import "./config-schema-cSC7M4YA.js";
13
- import { t as whatsappSetupPlugin } from "./channel.setup-BqlcEVzR.js";
14
- import { t as DEFAULT_WEB_MEDIA_BYTES } from "./constants-yKXGCGU9.js";
15
- import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-o-muXLgk.js";
16
- import { t as __testing } from "./access-control-CdP8S3rJ.js";
17
- import { p as extractText, t as createWebSendApi } from "./send-api-DsbCqDre.js";
18
- import { r as waitForWaConnection, t as createWaSocket } from "./session-DeIU_vjJ.js";
2
+ import { a as resolveWhatsAppAccount, i as listWhatsAppAuthDirs, n as hasAnyWhatsAppAuth, o as resolveWhatsAppAuthDir, r as listEnabledWhatsAppAccounts, s as resolveWhatsAppMediaMaxBytes, t as DEFAULT_WHATSAPP_MEDIA_MAX_MB } from "./accounts-B4oR6Dhx.js";
3
+ import { a as normalizeWhatsAppAllowFromEntries, c as normalizeWhatsAppTarget, i as looksLikeWhatsAppTargetId, r as isWhatsAppUserTarget, s as normalizeWhatsAppMessagingTarget, t as isWhatsAppGroupJid } from "./normalize-target-ePanEpfY.js";
4
+ import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BKcv4ofn.js";
5
+ import "./reaction-level-2m9sWGCw.js";
6
+ import { c as assertWebChannel, d as markdownToWhatsApp, f as resolveJidToE164, l as isSelfChatMode, m as toWhatsappJidWithLid, n as normalizeE164, p as toWhatsappJid, r as resolveUserPath, u as jidToE164 } from "./text-runtime-CMxQczvs.js";
7
+ import "./send-DBfXQDd4.js";
8
+ import { t as whatsappPlugin } from "./channel-yfTKmDAy.js";
9
+ import { n as WHATSAPP_LEGACY_OUTBOUND_SEND_DEP_KEYS } from "./outbound-base-BgtywpNm.js";
10
+ import { t as whatsappCommandPolicy } from "./command-policy-O8sRnqUV.js";
11
+ import { a as resolveWhatsAppGroupToolPolicy, i as resolveWhatsAppGroupRequireMention, o as resolveWhatsAppGroupIntroHint } from "./shared-CcuxfjaQ.js";
12
+ import "./config-schema-Dmo66Ubb.js";
13
+ import { t as whatsappSetupPlugin } from "./channel.setup-k1Ro0czO.js";
14
+ import { t as DEFAULT_WEB_MEDIA_BYTES } from "./constants-DLGCIbfl.js";
15
+ import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-CE74HYlw.js";
16
+ import { t as __testing } from "./access-control-BEpPB-Jx.js";
17
+ import { p as extractText, t as createWebSendApi } from "./send-api-DD93aPIQ.js";
18
+ import { r as waitForWaConnection, t as createWaSocket } from "./session-CVCKPoQN.js";
19
19
  import "openclaw/plugin-sdk/channel-actions";
20
20
  import "openclaw/plugin-sdk/account-resolution";
21
21
  import "openclaw/plugin-sdk/core";
@@ -126,131 +126,4 @@ async function startWhatsAppQaDriverSession(params) {
126
126
  };
127
127
  }
128
128
  //#endregion
129
- var CONFIG_DIR = text_runtime_exports.CONFIG_DIR;
130
- var DEFAULT_LOG_DIR = text_runtime_exports.DEFAULT_LOG_DIR;
131
- var DEFAULT_LOG_FILE = text_runtime_exports.DEFAULT_LOG_FILE;
132
- var FILE_REF_EXTENSIONS_WITH_TLD = text_runtime_exports.FILE_REF_EXTENSIONS_WITH_TLD;
133
- var SYSTEM_MARK = text_runtime_exports.SYSTEM_MARK;
134
- var __test__ = text_runtime_exports.__test__;
135
- var asNullableObjectRecord = text_runtime_exports.asNullableObjectRecord;
136
- var asNullableRecord = text_runtime_exports.asNullableRecord;
137
- var asOptionalObjectRecord = text_runtime_exports.asOptionalObjectRecord;
138
- var asOptionalRecord = text_runtime_exports.asOptionalRecord;
139
- var asRecord = text_runtime_exports.asRecord;
140
- var bindAbortRelay = text_runtime_exports.bindAbortRelay;
141
- var buildTimeoutAbortSignal = text_runtime_exports.buildTimeoutAbortSignal;
142
- var chunkItems = text_runtime_exports.chunkItems;
143
- var chunkMarkdownIR = text_runtime_exports.chunkMarkdownIR;
144
- var clamp = text_runtime_exports.clamp;
145
- var clampInt = text_runtime_exports.clampInt;
146
- var clampNumber = text_runtime_exports.clampNumber;
147
- var convertMarkdownTables = text_runtime_exports.convertMarkdownTables;
148
- var createScopedExpiringIdCache = text_runtime_exports.createScopedExpiringIdCache;
149
- var diagnosticLogger = text_runtime_exports.diagnosticLogger;
150
- var displayPath = text_runtime_exports.displayPath;
151
- var displayString = text_runtime_exports.displayString;
152
- var ensureDir = text_runtime_exports.ensureDir;
153
- var escapeRegExp = text_runtime_exports.escapeRegExp;
154
- var fetchWithTimeout = text_runtime_exports.fetchWithTimeout;
155
- var findCodeRegions = text_runtime_exports.findCodeRegions;
156
- var getChildLogger = text_runtime_exports.getChildLogger;
157
- var getDefaultRedactPatterns = text_runtime_exports.getDefaultRedactPatterns;
158
- var getDiagnosticSessionStateCountForTest = text_runtime_exports.getDiagnosticSessionStateCountForTest;
159
- var getLogger = text_runtime_exports.getLogger;
160
- var getResolvedLoggerSettings = text_runtime_exports.getResolvedLoggerSettings;
161
- var hasNonEmptyString = text_runtime_exports.hasNonEmptyString;
162
- var hasOrphanReasoningCloseBoundary = text_runtime_exports.hasOrphanReasoningCloseBoundary;
163
- var hasSystemMark = text_runtime_exports.hasSystemMark;
164
- var isAutoLinkedFileRef = text_runtime_exports.isAutoLinkedFileRef;
165
- var isFileLogLevelEnabled = text_runtime_exports.isFileLogLevelEnabled;
166
- var isInsideCode = text_runtime_exports.isInsideCode;
167
- var isRecord = text_runtime_exports.isRecord;
168
- var localeLowercasePreservingWhitespace = text_runtime_exports.localeLowercasePreservingWhitespace;
169
- var logActiveRuns = text_runtime_exports.logActiveRuns;
170
- var logDebug = text_runtime_exports.logDebug;
171
- var logError = text_runtime_exports.logError;
172
- var logInfo = text_runtime_exports.logInfo;
173
- var logLaneDequeue = text_runtime_exports.logLaneDequeue;
174
- var logLaneEnqueue = text_runtime_exports.logLaneEnqueue;
175
- var logMessageProcessed = text_runtime_exports.logMessageProcessed;
176
- var logMessageQueued = text_runtime_exports.logMessageQueued;
177
- var logRunAttempt = text_runtime_exports.logRunAttempt;
178
- var logSessionStateChange = text_runtime_exports.logSessionStateChange;
179
- var logSuccess = text_runtime_exports.logSuccess;
180
- var logToolLoopAction = text_runtime_exports.logToolLoopAction;
181
- var logWarn = text_runtime_exports.logWarn;
182
- var logWebhookError = text_runtime_exports.logWebhookError;
183
- var logWebhookProcessed = text_runtime_exports.logWebhookProcessed;
184
- var logWebhookReceived = text_runtime_exports.logWebhookReceived;
185
- var lowercasePreservingWhitespace = text_runtime_exports.lowercasePreservingWhitespace;
186
- var markdownToIR = text_runtime_exports.markdownToIR;
187
- var markdownToIRWithMeta = text_runtime_exports.markdownToIRWithMeta;
188
- var normalizeArrayBackedTrimmedStringList = text_runtime_exports.normalizeArrayBackedTrimmedStringList;
189
- var normalizeAtHashSlug = text_runtime_exports.normalizeAtHashSlug;
190
- var normalizeCsvOrLooseStringList = text_runtime_exports.normalizeCsvOrLooseStringList;
191
- var normalizeE164 = text_runtime_exports.normalizeE164;
192
- var normalizeFastMode = text_runtime_exports.normalizeFastMode;
193
- var normalizeHyphenSlug = text_runtime_exports.normalizeHyphenSlug;
194
- var normalizeLowercaseStringOrEmpty = text_runtime_exports.normalizeLowercaseStringOrEmpty;
195
- var normalizeNullableString = text_runtime_exports.normalizeNullableString;
196
- var normalizeOptionalLowercaseString = text_runtime_exports.normalizeOptionalLowercaseString;
197
- var normalizeOptionalString = text_runtime_exports.normalizeOptionalString;
198
- var normalizeOptionalStringifiedId = text_runtime_exports.normalizeOptionalStringifiedId;
199
- var normalizeOptionalThreadValue = text_runtime_exports.normalizeOptionalThreadValue;
200
- var normalizeOptionalTrimmedStringList = text_runtime_exports.normalizeOptionalTrimmedStringList;
201
- var normalizeSingleOrTrimmedStringList = text_runtime_exports.normalizeSingleOrTrimmedStringList;
202
- var normalizeStringEntries = text_runtime_exports.normalizeStringEntries;
203
- var normalizeStringEntriesLower = text_runtime_exports.normalizeStringEntriesLower;
204
- var normalizeStringifiedOptionalString = text_runtime_exports.normalizeStringifiedOptionalString;
205
- var normalizeTrimmedStringList = text_runtime_exports.normalizeTrimmedStringList;
206
- var parseInlineDirectives = text_runtime_exports.parseInlineDirectives;
207
- var pathExists = text_runtime_exports.pathExists;
208
- var prefixSystemMessage = text_runtime_exports.prefixSystemMessage;
209
- var readStringField = text_runtime_exports.readStringField;
210
- var readStringValue = text_runtime_exports.readStringValue;
211
- var redactIdentifier = text_runtime_exports.redactIdentifier;
212
- var redactSensitiveLines = text_runtime_exports.redactSensitiveLines;
213
- var redactSensitiveText = text_runtime_exports.redactSensitiveText;
214
- var redactToolDetail = text_runtime_exports.redactToolDetail;
215
- var renderMarkdownIRChunksWithinLimit = text_runtime_exports.renderMarkdownIRChunksWithinLimit;
216
- var renderMarkdownWithMarkers = text_runtime_exports.renderMarkdownWithMarkers;
217
- var resetDiagnosticStateForTest = text_runtime_exports.resetDiagnosticStateForTest;
218
- var resetLogger = text_runtime_exports.resetLogger;
219
- var resolveConfigDir = text_runtime_exports.resolveConfigDir;
220
- var resolveGlobalMap = text_runtime_exports.resolveGlobalMap;
221
- var resolveGlobalSingleton = text_runtime_exports.resolveGlobalSingleton;
222
- var resolveHomeDir = text_runtime_exports.resolveHomeDir;
223
- var resolvePrimaryStringValue = text_runtime_exports.resolvePrimaryStringValue;
224
- var resolveReactionLevel = text_runtime_exports.resolveReactionLevel;
225
- var resolveRedactOptions = text_runtime_exports.resolveRedactOptions;
226
- var resolveStuckSessionWarnMs = text_runtime_exports.resolveStuckSessionWarnMs;
227
- var resolveUserPath = text_runtime_exports.resolveUserPath;
228
- var safeParseJson = text_runtime_exports.safeParseJson;
229
- var sanitizeAssistantVisibleText = text_runtime_exports.sanitizeAssistantVisibleText;
230
- var sanitizeAssistantVisibleTextWithOptions = text_runtime_exports.sanitizeAssistantVisibleTextWithOptions;
231
- var sanitizeAssistantVisibleTextWithProfile = text_runtime_exports.sanitizeAssistantVisibleTextWithProfile;
232
- var sanitizeReplyDirectiveId = text_runtime_exports.sanitizeReplyDirectiveId;
233
- var sanitizeTerminalText = text_runtime_exports.sanitizeTerminalText;
234
- var setLoggerOverride = text_runtime_exports.setLoggerOverride;
235
- var sha256HexPrefix = text_runtime_exports.sha256HexPrefix;
236
- var shortenHomeInString = text_runtime_exports.shortenHomeInString;
237
- var shortenHomePath = text_runtime_exports.shortenHomePath;
238
- var sleep = text_runtime_exports.sleep;
239
- var sliceMarkdownIR = text_runtime_exports.sliceMarkdownIR;
240
- var sliceUtf16Safe = text_runtime_exports.sliceUtf16Safe;
241
- var startDiagnosticHeartbeat = text_runtime_exports.startDiagnosticHeartbeat;
242
- var stopDiagnosticHeartbeat = text_runtime_exports.stopDiagnosticHeartbeat;
243
- var stripAssistantInternalScaffolding = text_runtime_exports.stripAssistantInternalScaffolding;
244
- var stripDowngradedToolCallText = text_runtime_exports.stripDowngradedToolCallText;
245
- var stripInlineDirectiveTagsForDelivery = text_runtime_exports.stripInlineDirectiveTagsForDelivery;
246
- var stripInlineDirectiveTagsForDisplay = text_runtime_exports.stripInlineDirectiveTagsForDisplay;
247
- var stripInlineDirectiveTagsFromMessageForDisplay = text_runtime_exports.stripInlineDirectiveTagsFromMessageForDisplay;
248
- var stripMarkdown = text_runtime_exports.stripMarkdown;
249
- var stripMinimaxToolCallXml = text_runtime_exports.stripMinimaxToolCallXml;
250
- var stripReasoningTagsFromText = text_runtime_exports.stripReasoningTagsFromText;
251
- var stripToolCallXmlTags = text_runtime_exports.stripToolCallXmlTags;
252
- var summarizeStringEntries = text_runtime_exports.summarizeStringEntries;
253
- var toPinoLikeLogger = text_runtime_exports.toPinoLikeLogger;
254
- var truncateUtf16Safe = text_runtime_exports.truncateUtf16Safe;
255
- var withTimeout = text_runtime_exports.withTimeout;
256
- export { CONFIG_DIR, DEFAULT_LOG_DIR, DEFAULT_LOG_FILE, DEFAULT_WEB_MEDIA_BYTES, DEFAULT_WHATSAPP_MEDIA_MAX_MB, FILE_REF_EXTENSIONS_WITH_TLD, SYSTEM_MARK, WHATSAPP_LEGACY_OUTBOUND_SEND_DEP_KEYS, __test__, asNullableObjectRecord, asNullableRecord, asOptionalObjectRecord, asOptionalRecord, asRecord, assertWebChannel, bindAbortRelay, buildTimeoutAbortSignal, chunkItems, chunkMarkdownIR, clamp, clampInt, clampNumber, convertMarkdownTables, createScopedExpiringIdCache, diagnosticLogger, displayPath, displayString, ensureDir, escapeRegExp, fetchWithTimeout, findCodeRegions, getChildLogger, getDefaultRedactPatterns, getDiagnosticSessionStateCountForTest, getLogger, getResolvedLoggerSettings, hasAnyWhatsAppAuth, hasNonEmptyString, hasOrphanReasoningCloseBoundary, hasSystemMark, isAutoLinkedFileRef, isFileLogLevelEnabled, isInsideCode, isRecord, isSelfChatMode, isWhatsAppGroupJid, isWhatsAppUserTarget, jidToE164, listEnabledWhatsAppAccounts, listAccountIds as listWhatsAppAccountIds, listWhatsAppAuthDirs, listWhatsAppDirectoryGroupsFromConfig, listWhatsAppDirectoryPeersFromConfig, localeLowercasePreservingWhitespace, logActiveRuns, logDebug, logError, logInfo, logLaneDequeue, logLaneEnqueue, logMessageProcessed, logMessageQueued, logRunAttempt, logSessionStateChange, logSuccess, logToolLoopAction, logWarn, logWebhookError, logWebhookProcessed, logWebhookReceived, looksLikeWhatsAppTargetId, lowercasePreservingWhitespace, markdownToIR, markdownToIRWithMeta, markdownToWhatsApp, normalizeArrayBackedTrimmedStringList, normalizeAtHashSlug, normalizeCsvOrLooseStringList, normalizeE164, normalizeFastMode, normalizeHyphenSlug, normalizeLowercaseStringOrEmpty, normalizeNullableString, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, normalizeOptionalThreadValue, normalizeOptionalTrimmedStringList, normalizeSingleOrTrimmedStringList, normalizeStringEntries, normalizeStringEntriesLower, normalizeStringifiedOptionalString, normalizeTrimmedStringList, normalizeWhatsAppAllowFromEntries, normalizeWhatsAppMessagingTarget, normalizeWhatsAppTarget, parseInlineDirectives, pathExists, prefixSystemMessage, readStringField, readStringValue, redactIdentifier, redactSensitiveLines, redactSensitiveText, redactToolDetail, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, resetDiagnosticStateForTest, resetLogger, resolveConfigDir, resolveDefaultWhatsAppAccountId, resolveGlobalMap, resolveGlobalSingleton, resolveHomeDir, resolveJidToE164, resolvePrimaryStringValue, resolveReactionLevel, resolveRedactOptions, resolveStuckSessionWarnMs, resolveUserPath, resolveWhatsAppAccount, resolveWhatsAppAuthDir, resolveWhatsAppGroupIntroHint, resolveWhatsAppGroupRequireMention, resolveWhatsAppGroupToolPolicy, resolveWhatsAppMediaMaxBytes, resolveWhatsAppOutboundTarget, safeParseJson, sanitizeAssistantVisibleText, sanitizeAssistantVisibleTextWithOptions, sanitizeAssistantVisibleTextWithProfile, sanitizeReplyDirectiveId, sanitizeTerminalText, setLoggerOverride, sha256HexPrefix, shortenHomeInString, shortenHomePath, sleep, sliceMarkdownIR, sliceUtf16Safe, startDiagnosticHeartbeat, startWhatsAppQaDriverSession, stopDiagnosticHeartbeat, stripAssistantInternalScaffolding, stripDowngradedToolCallText, stripInlineDirectiveTagsForDelivery, stripInlineDirectiveTagsForDisplay, stripInlineDirectiveTagsFromMessageForDisplay, stripMarkdown, stripMinimaxToolCallXml, stripReasoningTagsFromText, stripToolCallXmlTags, summarizeStringEntries, toPinoLikeLogger, toWhatsappJid, truncateUtf16Safe, __testing as whatsappAccessControlTesting, whatsappCommandPolicy, whatsappPlugin, whatsappSetupPlugin, withTimeout };
129
+ export { DEFAULT_WEB_MEDIA_BYTES, DEFAULT_WHATSAPP_MEDIA_MAX_MB, WHATSAPP_LEGACY_OUTBOUND_SEND_DEP_KEYS, assertWebChannel, hasAnyWhatsAppAuth, isSelfChatMode, isWhatsAppGroupJid, isWhatsAppUserTarget, jidToE164, listEnabledWhatsAppAccounts, listAccountIds as listWhatsAppAccountIds, listWhatsAppAuthDirs, listWhatsAppDirectoryGroupsFromConfig, listWhatsAppDirectoryPeersFromConfig, looksLikeWhatsAppTargetId, markdownToWhatsApp, normalizeE164, normalizeWhatsAppAllowFromEntries, normalizeWhatsAppMessagingTarget, normalizeWhatsAppTarget, resolveDefaultWhatsAppAccountId, resolveJidToE164, resolveUserPath, resolveWhatsAppAccount, resolveWhatsAppAuthDir, resolveWhatsAppGroupIntroHint, resolveWhatsAppGroupRequireMention, resolveWhatsAppGroupToolPolicy, resolveWhatsAppMediaMaxBytes, resolveWhatsAppOutboundTarget, startWhatsAppQaDriverSession, toWhatsappJid, toWhatsappJidWithLid, __testing as whatsappAccessControlTesting, whatsappCommandPolicy, whatsappPlugin, whatsappSetupPlugin };
@@ -1,6 +1,6 @@
1
- import { t as text_runtime_exports } from "./text-runtime-DBKC9uEi.js";
2
1
  import { n as resolveWebCredsBackupPath, r as resolveWebCredsPath } from "./creds-files-_2V8jzQa.js";
3
- import { c as resolveComparableIdentity } from "./identity-KxdJfH7p.js";
2
+ import { r as resolveUserPath } from "./text-runtime-CMxQczvs.js";
3
+ import { c as resolveComparableIdentity } from "./identity-BNDkpR8N.js";
4
4
  import fs from "node:fs";
5
5
  import path from "node:path";
6
6
  import { resolveOAuthDir as resolveOAuthDir$1 } from "openclaw/plugin-sdk/state-paths";
@@ -14,7 +14,7 @@ const CREDS_FILE_MODE = 384;
14
14
  const CREDS_SAVE_FLUSH_TIMEOUT_MS = 15e3;
15
15
  const credsSaveQueues = /* @__PURE__ */ new Map();
16
16
  async function stringifyCreds(creds) {
17
- const { BufferJSON } = await import("./session.runtime-B9VlYnWQ.js").then((n) => n.a);
17
+ const { BufferJSON } = await import("./session.runtime-CZQ0ycCg.js").then((n) => n.a);
18
18
  return JSON.stringify(creds, BufferJSON.replacer);
19
19
  }
20
20
  async function writeCredsJsonAtomically(authDir, creds) {
@@ -113,7 +113,7 @@ async function restoreCredsFromBackupIfNeeded(authDir) {
113
113
  return false;
114
114
  }
115
115
  async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
116
- const resolvedAuthDir = (0, text_runtime_exports.resolveUserPath)(authDir);
116
+ const resolvedAuthDir = resolveUserPath(authDir);
117
117
  const credsPath = resolveWebCredsPath(resolvedAuthDir);
118
118
  try {
119
119
  await fs$1.access(resolvedAuthDir);
@@ -135,7 +135,7 @@ function resolveWebAuthState(params) {
135
135
  return params.linked ? "linked" : "not-linked";
136
136
  }
137
137
  async function readWebAuthStateCore(authDir, context) {
138
- const resolvedAuthDir = (0, text_runtime_exports.resolveUserPath)(authDir);
138
+ const resolvedAuthDir = resolveUserPath(authDir);
139
139
  const barrierResult = await waitForWebAuthBarrier(resolvedAuthDir, context);
140
140
  const linked = await webAuthExists(resolvedAuthDir);
141
141
  return {
@@ -257,7 +257,7 @@ async function classifyWebAuthDirOwnership(authDir) {
257
257
  }
258
258
  async function logoutWeb(params) {
259
259
  const runtime = params.runtime ?? defaultRuntime;
260
- const resolvedAuthDir = (0, text_runtime_exports.resolveUserPath)(params.authDir ?? resolveDefaultWebAuthDir());
260
+ const resolvedAuthDir = resolveUserPath(params.authDir ?? resolveDefaultWebAuthDir());
261
261
  if (await waitForWebAuthBarrier(resolvedAuthDir, "logoutWeb") === "timed_out") runtime.log(info("WhatsApp auth state is still stabilizing; clearing cached credentials anyway."));
262
262
  if (!await shouldClearOnLogout(resolvedAuthDir, Boolean(params.isLegacyAuthDir))) {
263
263
  runtime.log(info("No WhatsApp Web session found; nothing to delete."));
@@ -288,7 +288,7 @@ async function logoutWeb(params) {
288
288
  }
289
289
  function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
290
290
  try {
291
- const credsPath = resolveWebCredsPath((0, text_runtime_exports.resolveUserPath)(authDir));
291
+ const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
292
292
  if (!fs.existsSync(credsPath)) return emptyWebSelfId();
293
293
  const raw = fs.readFileSync(credsPath, "utf-8");
294
294
  const parsed = JSON.parse(raw);
@@ -306,7 +306,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
306
306
  }
307
307
  }
308
308
  async function readWebSelfIdentity(authDir = resolveDefaultWebAuthDir(), fallback) {
309
- const resolvedAuthDir = (0, text_runtime_exports.resolveUserPath)(authDir);
309
+ const resolvedAuthDir = resolveUserPath(authDir);
310
310
  try {
311
311
  const raw = await fs$1.readFile(resolveWebCredsPath(resolvedAuthDir), "utf-8");
312
312
  const parsed = JSON.parse(raw);
@@ -322,7 +322,7 @@ async function readWebSelfIdentity(authDir = resolveDefaultWebAuthDir(), fallbac
322
322
  }
323
323
  }
324
324
  async function readWebSelfIdentityForDecision(authDir = resolveDefaultWebAuthDir(), fallback) {
325
- const resolvedAuthDir = (0, text_runtime_exports.resolveUserPath)(authDir);
325
+ const resolvedAuthDir = resolveUserPath(authDir);
326
326
  if (await waitForWebAuthBarrier(resolvedAuthDir, "readWebSelfIdentityForDecision") === "timed_out") return { outcome: "unstable" };
327
327
  return {
328
328
  outcome: "stable",
@@ -335,7 +335,7 @@ async function readWebSelfIdentityForDecision(authDir = resolveDefaultWebAuthDir
335
335
  */
336
336
  function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
337
337
  try {
338
- const stats = fs.statSync(resolveWebCredsPath((0, text_runtime_exports.resolveUserPath)(authDir)));
338
+ const stats = fs.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
339
339
  return Date.now() - stats.mtimeMs;
340
340
  } catch {
341
341
  return null;
@@ -1,2 +1,2 @@
1
- import { t as WhatsAppChannelConfigSchema } from "./config-schema-cSC7M4YA.js";
1
+ import { t as WhatsAppChannelConfigSchema } from "./config-schema-Dmo66Ubb.js";
2
2
  export { WhatsAppChannelConfigSchema };
@@ -1,2 +1,2 @@
1
- import { t as whatsappPlugin } from "./channel-BxntAClG.js";
1
+ import { t as whatsappPlugin } from "./channel-yfTKmDAy.js";
2
2
  export { whatsappPlugin };
@@ -1,6 +1,6 @@
1
- import { c as normalizeWhatsAppTarget, t as isWhatsAppGroupJid } from "./normalize-target-nXxC_hxG.js";
2
- import { t as handleWhatsAppAction } from "./action-runtime-CMhO8liB.js";
3
- import "./normalize-Y3eBdM8a.js";
1
+ import { c as normalizeWhatsAppTarget, t as isWhatsAppGroupJid } from "./normalize-target-ePanEpfY.js";
2
+ import { t as handleWhatsAppAction } from "./action-runtime-lppOTCTN.js";
3
+ import "./normalize-f31evwm8.js";
4
4
  import { readStringOrNumberParam, readStringParam as readStringParam$1, resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
5
5
  //#region extensions/whatsapp/src/channel-react-action.ts
6
6
  const WHATSAPP_CHANNEL = "whatsapp";
@@ -1,27 +1,27 @@
1
1
  import { t as listAccountIds } from "./account-ids-DG18xddX.js";
2
- import { a as resolveWhatsAppAccount } from "./accounts-BDqgpFEB.js";
3
- import { c as normalizeWhatsAppTarget, i as looksLikeWhatsAppTargetId, n as isWhatsAppNewsletterJid, o as normalizeWhatsAppAllowFromEntry, s as normalizeWhatsAppMessagingTarget, t as isWhatsAppGroupJid } from "./normalize-target-nXxC_hxG.js";
4
- import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-CQ3Y1i0g.js";
5
- import { t as resolveWhatsAppReactionLevel } from "./reaction-level-CRVEVAfi.js";
6
- import "./normalize-Y3eBdM8a.js";
7
- import { r as normalizeWhatsAppPayloadTextPreservingIndentation } from "./outbound-media-contract-BzWwBppP.js";
8
- import { i as sendTypingWhatsApp, n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./send-u88yh8Hw.js";
9
- import { t as createWhatsAppLoginTool } from "./agent-tools-login-DYKYW5Nh.js";
10
- import { t as createWhatsAppOutboundBase } from "./outbound-base-MVpg2zU2.js";
11
- import { t as getWhatsAppRuntime } from "./runtime-DdodQB8G.js";
12
- import { t as whatsappCommandPolicy } from "./command-policy-BgZRZ31o.js";
13
- import { a as resolveWhatsAppGroupToolPolicy, c as formatWhatsAppConfigAllowFromEntries, i as resolveWhatsAppGroupRequireMention, n as loadWhatsAppChannelRuntime, o as resolveWhatsAppGroupIntroHint, r as whatsappSetupWizardProxy, s as resolveWhatsAppMentionStripRegexes, t as createWhatsAppPluginBase } from "./shared-CgYT3IzU.js";
14
- import { d as readWebAuthExistsForDecision, n as WHATSAPP_AUTH_UNSTABLE_CODE } from "./auth-store-CjEimXKX.js";
15
- import { t as whatsappSetupAdapter } from "./setup-core-DnhO0PjG.js";
16
- import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-CtdIArlK.js";
2
+ import { a as resolveWhatsAppAccount } from "./accounts-B4oR6Dhx.js";
3
+ import { c as normalizeWhatsAppTarget, i as looksLikeWhatsAppTargetId, n as isWhatsAppNewsletterJid, o as normalizeWhatsAppAllowFromEntry, s as normalizeWhatsAppMessagingTarget, t as isWhatsAppGroupJid } from "./normalize-target-ePanEpfY.js";
4
+ import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BKcv4ofn.js";
5
+ import { t as resolveWhatsAppReactionLevel } from "./reaction-level-2m9sWGCw.js";
6
+ import "./normalize-f31evwm8.js";
7
+ import { r as normalizeWhatsAppPayloadTextPreservingIndentation } from "./outbound-media-contract-zq9aNgT8.js";
8
+ import { i as sendTypingWhatsApp, n as sendPollWhatsApp, t as sendMessageWhatsApp } from "./send-DBfXQDd4.js";
9
+ import { t as createWhatsAppLoginTool } from "./agent-tools-login-DpRxLNRB.js";
10
+ import { t as createWhatsAppOutboundBase } from "./outbound-base-BgtywpNm.js";
11
+ import { t as getWhatsAppRuntime } from "./runtime-6fZ67abR.js";
12
+ import { t as whatsappCommandPolicy } from "./command-policy-O8sRnqUV.js";
13
+ import { a as resolveWhatsAppGroupToolPolicy, c as formatWhatsAppConfigAllowFromEntries, i as resolveWhatsAppGroupRequireMention, n as loadWhatsAppChannelRuntime, o as resolveWhatsAppGroupIntroHint, r as whatsappSetupWizardProxy, s as resolveWhatsAppMentionStripRegexes, t as createWhatsAppPluginBase } from "./shared-CcuxfjaQ.js";
14
+ import { d as readWebAuthExistsForDecision, n as WHATSAPP_AUTH_UNSTABLE_CODE } from "./auth-store-_ScMvp7r.js";
15
+ import { t as whatsappSetupAdapter } from "./setup-core-DZKvpzbH.js";
16
+ import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-Bm0S67yH.js";
17
17
  import { createActionGate as createActionGate$1 } from "openclaw/plugin-sdk/channel-actions";
18
+ import { asString, collectIssuesForEnabledAccounts, createAsyncComputedAccountStatusAdapter, createDefaultChannelRuntimeState, isRecord } from "openclaw/plugin-sdk/status-helpers";
18
19
  import { formatCliCommand } from "openclaw/plugin-sdk/cli-runtime";
19
20
  import { buildChannelOutboundSessionRoute } from "openclaw/plugin-sdk/core";
20
21
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
21
22
  import { buildDmGroupAccountAllowlistAdapter } from "openclaw/plugin-sdk/allowlist-config-edit";
22
23
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
23
24
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
24
- import { asString, collectIssuesForEnabledAccounts, createAsyncComputedAccountStatusAdapter, createDefaultChannelRuntimeState, isRecord } from "openclaw/plugin-sdk/status-helpers";
25
25
  import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
26
26
  import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-message";
27
27
  import { chunkText } from "openclaw/plugin-sdk/reply-chunking";
@@ -322,8 +322,8 @@ function collectWhatsAppStatusIssues(accounts) {
322
322
  }
323
323
  //#endregion
324
324
  //#region extensions/whatsapp/src/channel.ts
325
- const loadWhatsAppDirectoryConfig = createLazyRuntimeModule(() => import("./directory-config-o-muXLgk.js").then((n) => n.t));
326
- const loadWhatsAppChannelReactAction = createLazyRuntimeModule(() => import("./channel-react-action-DJvzhIPw.js"));
325
+ const loadWhatsAppDirectoryConfig = createLazyRuntimeModule(() => import("./directory-config-CE74HYlw.js").then((n) => n.t));
326
+ const loadWhatsAppChannelReactAction = createLazyRuntimeModule(() => import("./channel-react-action-C1wufQtL.js"));
327
327
  function parseWhatsAppExplicitTarget(raw) {
328
328
  const normalized = normalizeWhatsAppTarget(raw);
329
329
  if (!normalized) return null;
@@ -1,9 +1,9 @@
1
1
  import { startWebLoginWithQr as startWebLoginWithQr$1, waitForWebLogin as waitForWebLogin$1 } from "./login-qr-runtime.js";
2
- import { a as getWebAuthAgeMs$1, b as webAuthExists$1, d as readWebAuthExistsForDecision$1, f as readWebAuthSnapshot$1, h as readWebSelfId$1, m as readWebAuthState$1, o as logWebSelfId$1, p as readWebAuthSnapshotBestEffort$1, s as logoutWeb$1, u as readWebAuthExistsBestEffort$1 } from "./auth-store-CjEimXKX.js";
3
- import { t as getActiveWebListener$1 } from "./active-listener-D2NHQ5Og.js";
4
- import { t as monitorWebChannel$1 } from "./monitor-mfy3Mmq-.js";
5
- import { t as loginWeb$1 } from "./login-DV99D0IN.js";
6
- import { whatsappSetupWizard as whatsappSetupWizard$1 } from "./setup-surface-CHjYlKJc.js";
2
+ import { a as getWebAuthAgeMs$1, b as webAuthExists$1, d as readWebAuthExistsForDecision$1, f as readWebAuthSnapshot$1, h as readWebSelfId$1, m as readWebAuthState$1, o as logWebSelfId$1, p as readWebAuthSnapshotBestEffort$1, s as logoutWeb$1, u as readWebAuthExistsBestEffort$1 } from "./auth-store-_ScMvp7r.js";
3
+ import { t as getActiveWebListener$1 } from "./active-listener-DTbKS-j-.js";
4
+ import { t as monitorWebChannel$1 } from "./monitor-DcfFBU0V.js";
5
+ import { t as loginWeb$1 } from "./login-eiyCwLI5.js";
6
+ import { whatsappSetupWizard as whatsappSetupWizard$1 } from "./setup-surface-DJAu-uxi.js";
7
7
  //#region extensions/whatsapp/src/channel.runtime.ts
8
8
  function getActiveWebListener(...args) {
9
9
  return getActiveWebListener$1(...args);
@@ -1,7 +1,7 @@
1
- import { a as resolveWhatsAppGroupToolPolicy, i as resolveWhatsAppGroupRequireMention, o as resolveWhatsAppGroupIntroHint, r as whatsappSetupWizardProxy, t as createWhatsAppPluginBase } from "./shared-CgYT3IzU.js";
2
- import { m as readWebAuthState } from "./auth-store-CjEimXKX.js";
3
- import { t as whatsappSetupAdapter } from "./setup-core-DnhO0PjG.js";
4
- import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-CtdIArlK.js";
1
+ import { a as resolveWhatsAppGroupToolPolicy, i as resolveWhatsAppGroupRequireMention, o as resolveWhatsAppGroupIntroHint, r as whatsappSetupWizardProxy, t as createWhatsAppPluginBase } from "./shared-CcuxfjaQ.js";
2
+ import { m as readWebAuthState } from "./auth-store-_ScMvp7r.js";
3
+ import { t as whatsappSetupAdapter } from "./setup-core-DZKvpzbH.js";
4
+ import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-Bm0S67yH.js";
5
5
  //#region extensions/whatsapp/src/channel.setup.ts
6
6
  const whatsappSetupPlugin = {
7
7
  ...createWhatsAppPluginBase({
@@ -1,10 +1,10 @@
1
1
  import { n as registerWhatsAppConnectionController, r as unregisterWhatsAppConnectionController } from "./connection-controller-registry-D_iIGz5m.js";
2
2
  import { n as getStatusCode, t as formatError } from "./session-errors-CSuKZPub.js";
3
- import { s as logoutWeb } from "./auth-store-CjEimXKX.js";
4
- import { r as waitForWaConnection, t as createWaSocket } from "./session-DeIU_vjJ.js";
5
- import { clamp } from "openclaw/plugin-sdk/text-runtime";
3
+ import { s as logoutWeb } from "./auth-store-_ScMvp7r.js";
4
+ import { r as waitForWaConnection, t as createWaSocket } from "./session-CVCKPoQN.js";
6
5
  import { computeBackoff, info, sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
7
- import { DisconnectReason } from "@whiskeysockets/baileys";
6
+ import { clamp } from "openclaw/plugin-sdk/text-utility-runtime";
7
+ import { DisconnectReason } from "baileys";
8
8
  import { randomUUID } from "node:crypto";
9
9
  const DEFAULT_RECONNECT_POLICY = {
10
10
  initialMs: 2e3,
@@ -42,6 +42,7 @@ const LOGGED_OUT_STATUS = DisconnectReason?.loggedOut ?? 401;
42
42
  const WHATSAPP_LOGIN_RESTART_MESSAGE = "WhatsApp asked for a restart after pairing (code 515); waiting for creds to save…";
43
43
  const WHATSAPP_LOGGED_OUT_RELINK_MESSAGE = "WhatsApp reported the session is logged out. Cleared cached web session; please rerun openclaw channels login and scan the QR again.";
44
44
  const WHATSAPP_LOGGED_OUT_QR_MESSAGE = "WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.";
45
+ const WHATSAPP_WATCHDOG_TIMEOUT_ERROR = "watchdog-timeout";
45
46
  function createNeverResolvePromise() {
46
47
  return new Promise(() => {});
47
48
  }
@@ -376,7 +377,7 @@ var WhatsAppConnectionController = class {
376
377
  this.forceClose({
377
378
  status: 499,
378
379
  isLoggedOut: false,
379
- error: "watchdog-timeout"
380
+ error: WHATSAPP_WATCHDOG_TIMEOUT_ERROR
380
381
  });
381
382
  }, this.watchdogCheckMs);
382
383
  }
@@ -402,4 +403,4 @@ var WhatsAppConnectionController = class {
402
403
  }
403
404
  };
404
405
  //#endregion
405
- export { waitForWhatsAppLoginResult as a, newConnectionId as c, sleepWithAbort as d, closeWaSocketSoon as i, resolveHeartbeatSeconds as l, WhatsAppConnectionController as n, DEFAULT_RECONNECT_POLICY as o, closeWaSocket as r, computeBackoff as s, WHATSAPP_LOGGED_OUT_QR_MESSAGE as t, resolveReconnectPolicy as u };
406
+ export { closeWaSocketSoon as a, computeBackoff as c, resolveReconnectPolicy as d, sleepWithAbort as f, closeWaSocket as i, newConnectionId as l, WHATSAPP_WATCHDOG_TIMEOUT_ERROR as n, waitForWhatsAppLoginResult as o, WhatsAppConnectionController as r, DEFAULT_RECONNECT_POLICY as s, WHATSAPP_LOGGED_OUT_QR_MESSAGE as t, resolveHeartbeatSeconds as u };
package/dist/constants.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as DEFAULT_WEB_MEDIA_BYTES } from "./constants-yKXGCGU9.js";
1
+ import { t as DEFAULT_WEB_MEDIA_BYTES } from "./constants-DLGCIbfl.js";
2
2
  export { DEFAULT_WEB_MEDIA_BYTES };
@@ -1,11 +1,11 @@
1
- import { c as normalizeWhatsAppTarget$1, t as isWhatsAppGroupJid$1 } from "./normalize-target-nXxC_hxG.js";
2
- import { t as whatsappCommandPolicy$1 } from "./command-policy-BgZRZ31o.js";
3
- import { t as resolveLegacyGroupSessionKey$1 } from "./group-session-contract-DL-SLclv.js";
4
- import { n as unsupportedSecretRefSurfacePatterns, t as collectUnsupportedSecretRefConfigCandidates } from "./security-contract-BzlZFreO.js";
5
- import { r as isLegacyGroupSessionKey$1, t as canonicalizeLegacySessionKey$1 } from "./session-contract-BNUscPf4.js";
6
- import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-o-muXLgk.js";
7
- import { t as resolveWhatsAppRuntimeGroupPolicy$1 } from "./runtime-group-policy-BH_U23qp.js";
8
- import { t as __testing } from "./access-control-CdP8S3rJ.js";
1
+ import { c as normalizeWhatsAppTarget$1, t as isWhatsAppGroupJid$1 } from "./normalize-target-ePanEpfY.js";
2
+ import { t as whatsappCommandPolicy$1 } from "./command-policy-O8sRnqUV.js";
3
+ import { t as resolveLegacyGroupSessionKey$1 } from "./group-session-contract-DdqigLJl.js";
4
+ import { n as unsupportedSecretRefSurfacePatterns, t as collectUnsupportedSecretRefConfigCandidates } from "./security-contract-CvfWex9e.js";
5
+ import { r as isLegacyGroupSessionKey$1, t as canonicalizeLegacySessionKey$1 } from "./session-contract-B0efQf9P.js";
6
+ import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-CE74HYlw.js";
7
+ import { t as resolveWhatsAppRuntimeGroupPolicy$1 } from "./runtime-group-policy-Gp1lQ0at.js";
8
+ import { t as __testing } from "./access-control-BEpPB-Jx.js";
9
9
  //#region extensions/whatsapp/contract-api.ts
10
10
  const canonicalizeLegacySessionKey = canonicalizeLegacySessionKey$1;
11
11
  const isLegacyGroupSessionKey = isLegacyGroupSessionKey$1;
@@ -1,7 +1,7 @@
1
- import { l as __exportAll } from "./text-runtime-DBKC9uEi.js";
1
+ import { t as __exportAll } from "./rolldown-runtime-CiIaOW0V.js";
2
2
  import { t as resolveMergedWhatsAppAccountConfig } from "./account-config-CNQ33oav.js";
3
- import { c as normalizeWhatsAppTarget, t as isWhatsAppGroupJid } from "./normalize-target-nXxC_hxG.js";
4
- import "./normalize-Y3eBdM8a.js";
3
+ import { c as normalizeWhatsAppTarget, t as isWhatsAppGroupJid } from "./normalize-target-ePanEpfY.js";
4
+ import "./normalize-f31evwm8.js";
5
5
  import { listResolvedDirectoryGroupEntriesFromMapKeys, listResolvedDirectoryUserEntriesFromAllowFrom } from "openclaw/plugin-sdk/directory-config-runtime";
6
6
  //#region extensions/whatsapp/src/directory-config.ts
7
7
  var directory_config_exports = /* @__PURE__ */ __exportAll({
@@ -1,2 +1,2 @@
1
- import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-o-muXLgk.js";
1
+ import { n as listWhatsAppDirectoryGroupsFromConfig, r as listWhatsAppDirectoryPeersFromConfig } from "./directory-config-CE74HYlw.js";
2
2
  export { listWhatsAppDirectoryGroupsFromConfig, listWhatsAppDirectoryPeersFromConfig };
@@ -1,4 +1,4 @@
1
- import { t as normalizeCompatibilityConfig$1 } from "./doctor-BrgepDUP.js";
1
+ import { t as normalizeCompatibilityConfig$1 } from "./doctor-A9tXm9Om.js";
2
2
  //#region extensions/whatsapp/src/doctor-contract.ts
3
3
  function normalizeCompatibilityConfig({ cfg }) {
4
4
  return normalizeCompatibilityConfig$1({ cfg });
@@ -1,4 +1,4 @@
1
- import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
1
+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
2
2
  //#region extensions/whatsapp/src/group-session-contract.ts
3
3
  function resolveLegacyGroupSessionKey(ctx) {
4
4
  const from = typeof ctx.From === "string" ? ctx.From.trim() : "";
@@ -1,4 +1,4 @@
1
- import { i as jidToE164, t as text_runtime_exports } from "./text-runtime-DBKC9uEi.js";
1
+ import { n as normalizeE164, u as jidToE164 } from "./text-runtime-CMxQczvs.js";
2
2
  //#region extensions/whatsapp/src/identity.ts
3
3
  const WHATSAPP_LID_RE = /@(lid|hosted\.lid)$/i;
4
4
  function normalizeDeviceScopedJid(jid) {
@@ -11,7 +11,7 @@ function resolveComparableIdentity(identity, authDir) {
11
11
  const rawJid = normalizeDeviceScopedJid(identity?.jid);
12
12
  const lid = normalizeDeviceScopedJid(identity?.lid) ?? (isLidJid(rawJid) ? rawJid : null);
13
13
  const jid = rawJid && !isLidJid(rawJid) ? rawJid : null;
14
- const e164 = identity?.e164 != null ? (0, text_runtime_exports.normalizeE164)(identity.e164) : (jid ? jidToE164(jid, authDir ? { authDir } : void 0) : null) ?? (lid ? jidToE164(lid, authDir ? { authDir } : void 0) : null);
14
+ const e164 = identity?.e164 != null ? normalizeE164(identity.e164) : (jid ? jidToE164(jid, authDir ? { authDir } : void 0) : null) ?? (lid ? jidToE164(lid, authDir ? { authDir } : void 0) : null);
15
15
  return {
16
16
  ...identity,
17
17
  jid,
@@ -1,4 +1,4 @@
1
- import { r as isLegacyGroupSessionKey, t as canonicalizeLegacySessionKey } from "./session-contract-BNUscPf4.js";
1
+ import { r as isLegacyGroupSessionKey, t as canonicalizeLegacySessionKey } from "./session-contract-B0efQf9P.js";
2
2
  //#region extensions/whatsapp/legacy-session-surface-api.ts
3
3
  const whatsappLegacySessionSurface = {
4
4
  isLegacyGroupSessionKey,
@@ -1,2 +1,2 @@
1
- import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-CtdIArlK.js";
1
+ import { t as detectWhatsAppLegacyStateMigrations } from "./state-migrations-Bm0S67yH.js";
2
2
  export { detectWhatsAppLegacyStateMigrations };
@@ -1,5 +1,5 @@
1
1
  import { n as getStatusCode, t as formatError } from "./session-errors-CSuKZPub.js";
2
- import { t as createWhatsAppLoginTool } from "./agent-tools-login-DYKYW5Nh.js";
3
- import { a as getWebAuthAgeMs, b as webAuthExists, c as pickWebChannel, h as readWebSelfId, o as logWebSelfId, s as logoutWeb, t as WA_WEB_AUTH_DIR } from "./auth-store-CjEimXKX.js";
4
- import { t as getActiveWebListener } from "./active-listener-D2NHQ5Og.js";
2
+ import { t as createWhatsAppLoginTool } from "./agent-tools-login-DpRxLNRB.js";
3
+ import { a as getWebAuthAgeMs, b as webAuthExists, c as pickWebChannel, h as readWebSelfId, o as logWebSelfId, s as logoutWeb, t as WA_WEB_AUTH_DIR } from "./auth-store-_ScMvp7r.js";
4
+ import { t as getActiveWebListener } from "./active-listener-DTbKS-j-.js";
5
5
  export { WA_WEB_AUTH_DIR, createWhatsAppLoginTool, formatError, getActiveWebListener, getStatusCode, getWebAuthAgeMs, logWebSelfId, logoutWeb, pickWebChannel, readWebSelfId, webAuthExists };
@@ -1,10 +1,10 @@
1
- import { l as __exportAll } from "./text-runtime-DBKC9uEi.js";
2
- import { a as resolveWhatsAppAccount } from "./accounts-BDqgpFEB.js";
3
- import { y as restoreCredsFromBackupIfNeeded } from "./auth-store-CjEimXKX.js";
4
- import { a as renderQrTerminal, i as resolveWhatsAppSocketTiming, t as createWaSocket } from "./session-DeIU_vjJ.js";
5
- import { a as waitForWhatsAppLoginResult, i as closeWaSocketSoon } from "./connection-controller-DX2phM7V.js";
6
- import { logInfo } from "openclaw/plugin-sdk/text-runtime";
1
+ import { t as __exportAll } from "./rolldown-runtime-CiIaOW0V.js";
2
+ import { a as resolveWhatsAppAccount } from "./accounts-B4oR6Dhx.js";
3
+ import { y as restoreCredsFromBackupIfNeeded } from "./auth-store-_ScMvp7r.js";
4
+ import { a as renderQrTerminal, i as resolveWhatsAppSocketTiming, t as createWaSocket } from "./session-CVCKPoQN.js";
5
+ import { a as closeWaSocketSoon, o as waitForWhatsAppLoginResult } from "./connection-controller-Ik54eV0p.js";
7
6
  import { formatCliCommand } from "openclaw/plugin-sdk/cli-runtime";
7
+ import { logInfo } from "openclaw/plugin-sdk/logging-core";
8
8
  import { danger, defaultRuntime, success } from "openclaw/plugin-sdk/runtime-env";
9
9
  import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";
10
10
  //#region extensions/whatsapp/src/login.ts