@openclaw/zalouser 2026.5.4-beta.1 → 2026.5.4-beta.2

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,7 +1,7 @@
1
1
  import "./setup-surface-NCOuKu-l.js";
2
2
  import "./setup-core-CqipqY98.js";
3
3
  import { r as parseZalouserOutboundTarget } from "./session-route-C0-Xr8bt.js";
4
- import "./channel-ou_w_2j-.js";
4
+ import "./channel-DLNmGWb8.js";
5
5
  import "./security-audit-BZLhil-V.js";
6
6
  import { i as listZaloFriendsMatching, n as getZaloUserInfo, s as listZaloGroupsMatching, t as checkZaloAuthenticated } from "./zalo-js-CHCUlY3c.js";
7
7
  import "./channel.setup-CiDeBFrn.js";
package/dist/api.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as zalouserSetupWizard } from "./setup-surface-NCOuKu-l.js";
2
2
  import { n as zalouserSetupAdapter, t as createZalouserSetupWizardProxy } from "./setup-core-CqipqY98.js";
3
- import { t as zalouserPlugin } from "./channel-ou_w_2j-.js";
3
+ import { t as zalouserPlugin } from "./channel-DLNmGWb8.js";
4
4
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-BZLhil-V.js";
5
5
  import { t as zalouserSetupPlugin } from "./channel.setup-CiDeBFrn.js";
6
- import { t as createZalouserTool } from "./api-BRwdUWuS.js";
6
+ import { t as createZalouserTool } from "./api-C3SYq_R3.js";
7
7
  export { collectZalouserSecurityAuditFindings, createZalouserSetupWizardProxy, createZalouserTool, isZalouserMutableGroupEntry, zalouserPlugin, zalouserSetupAdapter, zalouserSetupPlugin, zalouserSetupWizard };
@@ -448,7 +448,7 @@ const zalouserPlugin = createChatChannelPlugin({
448
448
  setStatus: ctx.setStatus
449
449
  });
450
450
  ctx.log?.info(`[${account.accountId}] starting zalouser provider${userLabel}`);
451
- const { monitorZalouserProvider } = await import("./monitor-Cg7K_s_s.js");
451
+ const { monitorZalouserProvider } = await import("./monitor-dpWp8FkN.js");
452
452
  return monitorZalouserProvider({
453
453
  account,
454
454
  config: ctx.cfg,
@@ -1,2 +1,2 @@
1
- import { t as zalouserPlugin } from "./channel-ou_w_2j-.js";
1
+ import { t as zalouserPlugin } from "./channel-DLNmGWb8.js";
2
2
  export { zalouserPlugin };
@@ -566,7 +566,8 @@ async function monitorZalouserProvider(options) {
566
566
  const profile = account.profile;
567
567
  const allowFromEntries = (account.config.allowFrom ?? []).map((entry) => normalizeZalouserEntry(String(entry))).filter((entry) => entry && entry !== "*");
568
568
  const groupAllowFromEntries = (account.config.groupAllowFrom ?? []).map((entry) => normalizeZalouserEntry(String(entry))).filter((entry) => entry && entry !== "*");
569
- if (allowFromEntries.length > 0 || groupAllowFromEntries.length > 0) {
569
+ const allowNameMatching = isDangerousNameMatchingEnabled(account.config);
570
+ if (allowNameMatching && (allowFromEntries.length > 0 || groupAllowFromEntries.length > 0)) {
570
571
  const byName = buildNameIndex(await listZaloFriends(profile), (friend) => friend.displayName);
571
572
  if (allowFromEntries.length > 0) {
572
573
  const { additions, mapping, unresolved } = resolveUserAllowlistEntries(allowFromEntries, byName);
@@ -601,7 +602,7 @@ async function monitorZalouserProvider(options) {
601
602
  }
602
603
  const groupsConfig = account.config.groups ?? {};
603
604
  const groupKeys = Object.keys(groupsConfig).filter((key) => key !== "*");
604
- if (groupKeys.length > 0) {
605
+ if (allowNameMatching && groupKeys.length > 0) {
605
606
  const byName = buildNameIndex(await listZaloGroups(profile), (group) => group.name);
606
607
  const mapping = [];
607
608
  const unresolved = [];
@@ -1,10 +1,10 @@
1
1
  import { n as zalouserSetupWizard } from "./setup-surface-NCOuKu-l.js";
2
2
  import { n as setZalouserRuntime } from "./runtime-QNU7vLgI.js";
3
3
  import { n as zalouserSetupAdapter, t as createZalouserSetupWizardProxy } from "./setup-core-CqipqY98.js";
4
- import { t as zalouserPlugin } from "./channel-ou_w_2j-.js";
4
+ import { t as zalouserPlugin } from "./channel-DLNmGWb8.js";
5
5
  import { n as isZalouserMutableGroupEntry, t as collectZalouserSecurityAuditFindings } from "./security-audit-BZLhil-V.js";
6
6
  import { t as zalouserSetupPlugin } from "./channel.setup-CiDeBFrn.js";
7
- import { t as createZalouserTool } from "./api-BRwdUWuS.js";
7
+ import { t as createZalouserTool } from "./api-C3SYq_R3.js";
8
8
  import { buildBaseAccountStatusSnapshot } from "openclaw/plugin-sdk/status-helpers";
9
9
  import { formatAllowFromLowercase, mergeAllowlist, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
10
10
  import { DEFAULT_ACCOUNT_ID, buildChannelConfigSchema, normalizeAccountId } from "openclaw/plugin-sdk/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/zalouser",
3
- "version": "2026.5.4-beta.1",
3
+ "version": "2026.5.4-beta.2",
4
4
  "description": "OpenClaw Zalo Personal Account plugin via native zca-js integration",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "openclaw": "workspace:*"
17
17
  },
18
18
  "peerDependencies": {
19
- "openclaw": ">=2026.5.4-beta.1"
19
+ "openclaw": ">=2026.5.4-beta.2"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
@@ -53,10 +53,10 @@
53
53
  "minHostVersion": ">=2026.4.10"
54
54
  },
55
55
  "compat": {
56
- "pluginApi": ">=2026.5.4-beta.1"
56
+ "pluginApi": ">=2026.5.4-beta.2"
57
57
  },
58
58
  "build": {
59
- "openclawVersion": "2026.5.4-beta.1"
59
+ "openclawVersion": "2026.5.4-beta.2"
60
60
  },
61
61
  "release": {
62
62
  "publishToClawHub": true,