@openclaw/zalouser 2026.5.31-beta.2 → 2026.5.31-beta.4

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.
@@ -1,2 +1,2 @@
1
- import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-DsHJocXe.js";
1
+ import { n as getZaloUserInfo, t as checkZaloAuthenticated } from "./zalo-js-C2Eq5K4i.js";
2
2
  export { checkZaloAuthenticated, getZaloUserInfo };
@@ -1,10 +1,10 @@
1
- import "./setup-surface-C2Ls9v06.js";
2
- import "./shared-C_SkEtXL.js";
3
- import { n as parseZalouserOutboundTarget } from "./channel-BYO3KfN5.js";
1
+ import "./setup-surface-C8VXOMBu.js";
2
+ import "./shared-xBuXIOwv.js";
3
+ import { n as parseZalouserOutboundTarget } from "./channel-BFn5MZCm.js";
4
4
  import "./security-audit-DhK2UscX.js";
5
- import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-DsHJocXe.js";
6
- import "./channel.setup-C1CqJEYP.js";
7
- import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-BACqNza9.js";
5
+ import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-C2Eq5K4i.js";
6
+ import "./channel.setup-BsYmobJ6.js";
7
+ import { i as sendMessageZalouser, n as sendImageZalouser, r as sendLinkZalouser } from "./send-_7W21n-G.js";
8
8
  import { stringEnum } from "openclaw/plugin-sdk/channel-actions";
9
9
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
10
10
  import { Type } from "typebox";
package/dist/api.js CHANGED
@@ -1,7 +1,7 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C2Ls9v06.js";
2
- import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-C_SkEtXL.js";
3
- import { t as zalouserPlugin } from "./channel-BYO3KfN5.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
+ import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-xBuXIOwv.js";
3
+ import { t as zalouserPlugin } from "./channel-BFn5MZCm.js";
4
4
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
5
- import { t as zalouserSetupPlugin } from "./channel.setup-C1CqJEYP.js";
6
- import { t as createZalouserTool } from "./api-BTawviIy.js";
5
+ import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
6
+ import { t as createZalouserTool } from "./api-WQJ1sj8X.js";
7
7
  export { collectZalouserSecurityAuditFindings, createZalouserSetupWizardProxy, createZalouserTool, isZalouserMutableGroupEntry, zalouserPlugin, zalouserSetupAdapter, zalouserSetupPlugin, zalouserSetupWizard };
@@ -1,4 +1,4 @@
1
- import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-C_SkEtXL.js";
1
+ import { a as DEFAULT_ACCOUNT_ID, c as isNumericTargetId, d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, l as normalizeAccountId, m as resolveZalouserAccountSync, n as createZalouserSetupWizardProxy, o as chunkTextForOutbound, p as resolveDefaultZalouserAccountId, r as zalouserSetupAdapter, s as isDangerousNameMatchingEnabled, t as createZalouserPluginBase, u as sendPayloadWithChunkedTextAndMedia } from "./shared-xBuXIOwv.js";
2
2
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
3
3
  import { createAccountStatusSink, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { buildPassiveProbedChannelStatusSummary, coerceStatusIssueAccountId, readStatusIssueFields } from "openclaw/plugin-sdk/extension-shared";
@@ -204,7 +204,7 @@ function resolveZalouserOutboundSessionRoute(params) {
204
204
  }
205
205
  //#endregion
206
206
  //#region extensions/zalouser/src/channel.adapters.ts
207
- const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-e1oFGWSK.js"));
207
+ const loadZalouserChannelRuntime$1 = createLazyRuntimeModule(() => import("./channel.runtime-CmquHp26.js"));
208
208
  const ZALOUSER_TEXT_CHUNK_LIMIT = 2e3;
209
209
  function resolveZalouserQrProfile(accountId) {
210
210
  const normalized = normalizeAccountId(accountId);
@@ -535,8 +535,8 @@ function collectZalouserStatusIssues(accounts) {
535
535
  }
536
536
  //#endregion
537
537
  //#region extensions/zalouser/src/channel.ts
538
- const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-e1oFGWSK.js"));
539
- const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-C2Ls9v06.js").then((n) => n.t)).zalouserSetupWizard);
538
+ const loadZalouserChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CmquHp26.js"));
539
+ const zalouserSetupWizardProxy = createZalouserSetupWizardProxy(async () => (await import("./setup-surface-C8VXOMBu.js").then((n) => n.t)).zalouserSetupWizard);
540
540
  function mapUser(params) {
541
541
  return {
542
542
  kind: "user",
@@ -653,7 +653,7 @@ const zalouserPlugin = createChatChannelPlugin({
653
653
  setStatus: ctx.setStatus
654
654
  });
655
655
  ctx.log?.info(`[${account.accountId}] starting zalouser provider${userLabel}`);
656
- const { monitorZalouserProvider } = await import("./monitor-B9WoA4vG.js");
656
+ const { monitorZalouserProvider } = await import("./monitor-DxOj93Pa.js");
657
657
  return monitorZalouserProvider({
658
658
  account,
659
659
  config: ctx.cfg,
@@ -1,2 +1,2 @@
1
- import { t as zalouserPlugin } from "./channel-BYO3KfN5.js";
1
+ import { t as zalouserPlugin } from "./channel-BFn5MZCm.js";
2
2
  export { zalouserPlugin };
@@ -1,12 +1,14 @@
1
1
  import { t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
2
- import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-DsHJocXe.js";
3
- import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-BACqNza9.js";
2
+ import { a as listZaloGroupMembers, b as waitForZaloQrLogin, c as logoutZaloProfile, i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, y as startZaloQrLogin } from "./zalo-js-C2Eq5K4i.js";
3
+ import { a as sendReactionZalouser, i as sendMessageZalouser } from "./send-_7W21n-G.js";
4
4
  import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  //#region extensions/zalouser/src/probe.ts
7
7
  async function probeZalouser(profile, timeoutMs) {
8
8
  try {
9
- const user = timeoutMs ? await Promise.race([getZaloUserInfo(profile), new Promise((resolve) => setTimeout(() => resolve(null), resolveTimerTimeoutMs(timeoutMs, 1e3, 1e3)))]) : await getZaloUserInfo(profile);
9
+ const user = timeoutMs ? await Promise.race([getZaloUserInfo(profile), new Promise((resolve) => {
10
+ setTimeout(() => resolve(null), resolveTimerTimeoutMs(timeoutMs, 1e3, 1e3));
11
+ })]) : await getZaloUserInfo(profile);
10
12
  if (!user) return {
11
13
  ok: false,
12
14
  error: "Not authenticated"
@@ -1,5 +1,5 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C2Ls9v06.js";
2
- import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-C_SkEtXL.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
+ import { r as zalouserSetupAdapter, t as createZalouserPluginBase } from "./shared-xBuXIOwv.js";
3
3
  //#region extensions/zalouser/src/channel.setup.ts
4
4
  const zalouserSetupPlugin = { ...createZalouserPluginBase({
5
5
  setupWizard: zalouserSetupWizard,
@@ -1,6 +1,6 @@
1
- import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-BYO3KfN5.js";
2
- import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-DsHJocXe.js";
3
- import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-BACqNza9.js";
1
+ import { a as formatZalouserMessageSidFull, c as findZalouserGroupEntry, l as isZalouserGroupEntryAllowed, o as resolveZalouserMessageSid, r as getZalouserRuntime, s as buildZalouserGroupCandidates } from "./channel-BFn5MZCm.js";
2
+ import { o as listZaloGroups, r as listZaloFriends, u as resolveZaloGroupContext, v as startZaloListener } from "./zalo-js-C2Eq5K4i.js";
3
+ import { i as sendMessageZalouser, o as sendSeenZalouser, s as sendTypingZalouser, t as sendDeliveredZalouser } from "./send-_7W21n-G.js";
4
4
  import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
5
5
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
@@ -1,9 +1,9 @@
1
- import { n as zalouserSetupWizard } from "./setup-surface-C2Ls9v06.js";
2
- import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-C_SkEtXL.js";
3
- import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-BYO3KfN5.js";
1
+ import { n as zalouserSetupWizard } from "./setup-surface-C8VXOMBu.js";
2
+ import { n as createZalouserSetupWizardProxy, r as zalouserSetupAdapter } from "./shared-xBuXIOwv.js";
3
+ import { i as setZalouserRuntime, t as zalouserPlugin } from "./channel-BFn5MZCm.js";
4
4
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-DhK2UscX.js";
5
- import { t as zalouserSetupPlugin } from "./channel.setup-C1CqJEYP.js";
6
- import { t as createZalouserTool } from "./api-BTawviIy.js";
5
+ import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
6
+ import { t as createZalouserTool } from "./api-WQJ1sj8X.js";
7
7
  import { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-outbound";
8
8
  import { buildBaseAccountStatusSnapshot } from "openclaw/plugin-sdk/status-helpers";
9
9
  import { formatAllowFromLowercase, mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
@@ -1,4 +1,4 @@
1
- import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-DsHJocXe.js";
1
+ import { S as TextStyle, _ as sendZaloTypingEvent, f as sendZaloDeliveredEvent, g as sendZaloTextMessage, h as sendZaloSeenEvent, m as sendZaloReaction, p as sendZaloLink, x as createZalouserSendReceipt } from "./zalo-js-C2Eq5K4i.js";
2
2
  //#region extensions/zalouser/src/text-styles.ts
3
3
  const ESCAPE_SENTINEL_START = "";
4
4
  const ESCAPE_SENTINEL_END = "";
@@ -1,2 +1,2 @@
1
- import { t as zalouserSetupPlugin } from "./channel.setup-C1CqJEYP.js";
1
+ import { t as zalouserSetupPlugin } from "./channel.setup-BsYmobJ6.js";
2
2
  export { zalouserSetupPlugin };
@@ -1,5 +1,5 @@
1
- import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-C_SkEtXL.js";
2
- import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-DsHJocXe.js";
1
+ import { d as checkZcaAuthenticated, f as listZalouserAccountIds, i as writeQrDataUrlToTempFile, m as resolveZalouserAccountSync, p as resolveDefaultZalouserAccountId } from "./shared-xBuXIOwv.js";
2
+ import { b as waitForZaloQrLogin, c as logoutZaloProfile, d as resolveZaloGroupsByEntries, l as resolveZaloAllowFromEntries, y as startZaloQrLogin } from "./zalo-js-C2Eq5K4i.js";
3
3
  import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { DEFAULT_ACCOUNT_ID, addWildcardAllowFrom, createSetupTranslator, formatCliCommand, formatDocsLink, formatResolvedUnresolvedNote, mergeAllowFromEntries, normalizeAccountId, patchScopedAccountConfig } from "openclaw/plugin-sdk/setup";
5
5
  //#region \0rolldown/runtime.js
@@ -19,7 +19,7 @@ import { createDangerousNameMatchingMutableAllowlistWarningCollector } from "ope
19
19
  //#region extensions/zalouser/src/accounts.ts
20
20
  let zalouserAccountsRuntimePromise;
21
21
  async function loadZalouserAccountsRuntime() {
22
- zalouserAccountsRuntimePromise ??= import("./accounts.runtime-DdVE4J-U.js");
22
+ zalouserAccountsRuntimePromise ??= import("./accounts.runtime-BOwtZOBd.js");
23
23
  return await zalouserAccountsRuntimePromise;
24
24
  }
25
25
  const { listAccountIds: listZalouserAccountIds, resolveDefaultAccountId: resolveDefaultZalouserAccountId } = createAccountListHelpers("zalouser", { implicitDefaultAccount: {
@@ -1160,9 +1160,9 @@ async function startZaloListener(params) {
1160
1160
  const profile = normalizeProfile(params.profile);
1161
1161
  const existing = activeListeners.get(profile);
1162
1162
  if (existing) throw new Error(`Zalo listener already running for profile "${profile}" (account "${existing.accountId}")`);
1163
- const { api, ownUserId } = await withZaloApi(profile, async (api) => ({
1164
- api,
1165
- ownUserId: await resolveOwnUserId(api)
1163
+ const { api, ownUserId } = await withZaloApi(profile, async (apiLocal) => ({
1164
+ api: apiLocal,
1165
+ ownUserId: await resolveOwnUserId(apiLocal)
1166
1166
  }));
1167
1167
  let stopped = false;
1168
1168
  let watchdogTimer = null;
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@openclaw/zalouser",
3
- "version": "2026.5.31-beta.2",
3
+ "version": "2026.5.31-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/zalouser",
9
- "version": "2026.5.31-beta.2",
9
+ "version": "2026.5.31-beta.4",
10
10
  "dependencies": {
11
11
  "typebox": "1.1.39",
12
12
  "zca-js": "2.1.2",
13
13
  "zod": "4.4.3"
14
14
  },
15
15
  "peerDependencies": {
16
- "openclaw": ">=2026.5.31-beta.2"
16
+ "openclaw": ">=2026.5.31-beta.4"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/zalouser",
3
- "version": "2026.5.31-beta.2",
3
+ "version": "2026.5.31-beta.4",
4
4
  "description": "OpenClaw Zalo Personal Account plugin via native zca-js integration.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  "zod": "4.4.3"
14
14
  },
15
15
  "peerDependencies": {
16
- "openclaw": ">=2026.5.31-beta.2"
16
+ "openclaw": ">=2026.5.31-beta.4"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "openclaw": {
@@ -50,10 +50,10 @@
50
50
  "minHostVersion": ">=2026.4.10"
51
51
  },
52
52
  "compat": {
53
- "pluginApi": ">=2026.5.31-beta.2"
53
+ "pluginApi": ">=2026.5.31-beta.4"
54
54
  },
55
55
  "build": {
56
- "openclawVersion": "2026.5.31-beta.2"
56
+ "openclawVersion": "2026.5.31-beta.4"
57
57
  },
58
58
  "release": {
59
59
  "publishToClawHub": true,