@openclaw/zalo 2026.5.16-beta.4 → 2026.5.16-beta.6

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,4 +1,4 @@
1
- import { t as sendMessageZalo } from "./send-CGzQv_0x.js";
1
+ import { t as sendMessageZalo } from "./send-XLo59pFJ.js";
2
2
  //#region extensions/zalo/src/actions.runtime.ts
3
3
  const zaloActionsRuntime = { sendMessageZalo };
4
4
  //#endregion
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-BCJZqQ4h.js";
2
- import { t as zaloPlugin } from "./channel-CyjQoH_Y.js";
1
+ import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-D3zN2pEh.js";
2
+ import { t as zaloPlugin } from "./channel-CSdNWVhJ.js";
3
3
  import { n as resolveZaloRuntimeGroupPolicy } from "./group-access-Boqk-JNd.js";
4
4
  import { zaloSetupWizard } from "./setup-api.js";
5
5
  export { createZaloSetupWizardProxy, resolveZaloRuntimeGroupPolicy, zaloDmPolicy, zaloPlugin, zaloSetupAdapter, zaloSetupWizard };
@@ -1,4 +1,4 @@
1
- import { c as listZaloAccountIds, f as buildSecretInputSchema, l as resolveDefaultZaloAccountId, r as zaloSetupAdapter, s as listEnabledZaloAccounts, t as createZaloSetupWizardProxy, u as resolveZaloAccount } from "./setup-core-BCJZqQ4h.js";
1
+ import { c as listZaloAccountIds, f as buildSecretInputSchema, l as resolveDefaultZaloAccountId, r as zaloSetupAdapter, s as listEnabledZaloAccounts, t as createZaloSetupWizardProxy, u as resolveZaloAccount } from "./setup-core-D3zN2pEh.js";
2
2
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-Dw93tGo2.js";
3
3
  import { describeWebhookAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
4
4
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
@@ -24,7 +24,7 @@ import { AllowFromListSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigS
24
24
  import { z } from "zod";
25
25
  import { coerceStatusIssueAccountId, readStatusIssueFields } from "openclaw/plugin-sdk/extension-shared";
26
26
  //#region extensions/zalo/src/actions.ts
27
- const loadZaloActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-BlO0GsLJ.js"), "zaloActionsRuntime");
27
+ const loadZaloActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-CS5KcEsu.js"), "zaloActionsRuntime");
28
28
  const providerId = "zalo";
29
29
  function listEnabledAccounts(cfg, accountId) {
30
30
  return (accountId ? [resolveZaloAccount({
@@ -173,8 +173,8 @@ function normalizeZaloMessagingTarget(raw) {
173
173
  if (!trimmed) return;
174
174
  return trimmed.replace(/^(zalo|zl):/i, "").trim();
175
175
  }
176
- const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CqN55WSq.js"));
177
- const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-BdKDXxKU.js")).zaloSetupWizard);
176
+ const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DbgFl2gX.js"));
177
+ const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-DVpVcLrs.js")).zaloSetupWizard);
178
178
  const zaloTextChunkLimit = 2e3;
179
179
  const zaloRawSendResultAdapter = createRawChannelSendResultAdapter({
180
180
  channel: "zalo",
@@ -1,2 +1,2 @@
1
- import { t as zaloPlugin } from "./channel-CyjQoH_Y.js";
1
+ import { t as zaloPlugin } from "./channel-CSdNWVhJ.js";
2
2
  export { zaloPlugin };
@@ -1,6 +1,6 @@
1
- import { p as normalizeSecretInputString } from "./setup-core-BCJZqQ4h.js";
1
+ import { p as normalizeSecretInputString } from "./setup-core-D3zN2pEh.js";
2
2
  import { i as PAIRING_APPROVED_MESSAGE } from "./runtime-api-CnYIxmRv.js";
3
- import { a as getMe, n as resolveZaloProxyFetch, r as ZaloApiError, t as sendMessageZalo } from "./send-CGzQv_0x.js";
3
+ import { a as getMe, n as resolveZaloProxyFetch, r as ZaloApiError, t as sendMessageZalo } from "./send-XLo59pFJ.js";
4
4
  import { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
5
5
  //#region extensions/zalo/src/probe.ts
6
6
  async function probeZalo(token, timeoutMs = 5e3, fetcher) {
@@ -52,7 +52,7 @@ async function probeZalo(token, timeoutMs = 5e3, fetcher) {
52
52
  //#endregion
53
53
  //#region extensions/zalo/src/channel.runtime.ts
54
54
  async function notifyZaloPairingApproval(params) {
55
- const { resolveZaloAccount } = await import("./setup-core-BCJZqQ4h.js").then((n) => n.o);
55
+ const { resolveZaloAccount } = await import("./setup-core-D3zN2pEh.js").then((n) => n.o);
56
56
  const account = resolveZaloAccount({ cfg: params.cfg });
57
57
  if (!account.token) throw new Error("Zalo token not configured");
58
58
  await sendMessageZalo(params.id, PAIRING_APPROVED_MESSAGE, { token: account.token });
@@ -86,7 +86,7 @@ async function startZaloGatewayAccount(ctx) {
86
86
  setStatus: ctx.setStatus
87
87
  });
88
88
  ctx.log?.info(`[${account.accountId}] starting provider${zaloBotLabel} mode=${mode}`);
89
- const { monitorZaloProvider } = await import("./monitor-js794wj1.js");
89
+ const { monitorZaloProvider } = await import("./monitor-FSOQYeNV.js");
90
90
  return monitorZaloProvider({
91
91
  token,
92
92
  account,
@@ -1,6 +1,6 @@
1
1
  import { n as resolveZaloRuntimeGroupPolicy, t as normalizeZaloAllowEntry } from "./group-access-Boqk-JNd.js";
2
2
  import { t as getZaloRuntime } from "./runtime-api-CnYIxmRv.js";
3
- import { c as sendChatAction, d as setWebhook, i as deleteWebhook, l as sendMessage, n as resolveZaloProxyFetch, o as getUpdates, r as ZaloApiError, s as getWebhookInfo, u as sendPhoto } from "./send-CGzQv_0x.js";
3
+ import { c as sendChatAction, d as setWebhook, i as deleteWebhook, l as sendMessage, n as resolveZaloProxyFetch, o as getUpdates, r as ZaloApiError, s as getWebhookInfo, u as sendPhoto } from "./send-XLo59pFJ.js";
4
4
  import { deliverTextOrMediaReply, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
5
5
  import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
@@ -1,4 +1,4 @@
1
- import { d as resolveZaloToken, u as resolveZaloAccount } from "./setup-core-BCJZqQ4h.js";
1
+ import { d as resolveZaloToken, u as resolveZaloAccount } from "./setup-core-D3zN2pEh.js";
2
2
  import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { resolvePinnedHostnameWithPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
package/dist/setup-api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-BCJZqQ4h.js";
1
+ import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-D3zN2pEh.js";
2
2
  import { n as resolveZaloRuntimeGroupPolicy } from "./group-access-Boqk-JNd.js";
3
3
  import { loadBundledEntryExportSync } from "openclaw/plugin-sdk/channel-entry-contract";
4
4
  //#region extensions/zalo/setup-api.ts
@@ -84,7 +84,10 @@ var accounts_exports = /* @__PURE__ */ __exportAll({
84
84
  resolveDefaultZaloAccountId: () => resolveDefaultZaloAccountId,
85
85
  resolveZaloAccount: () => resolveZaloAccount
86
86
  });
87
- const { listAccountIds: listZaloAccountIds, resolveDefaultAccountId: resolveDefaultZaloAccountId } = createAccountListHelpers("zalo");
87
+ const { listAccountIds: listZaloAccountIds, resolveDefaultAccountId: resolveDefaultZaloAccountId } = createAccountListHelpers("zalo", { implicitDefaultAccount: {
88
+ channelKeys: ["botToken", "tokenFile"],
89
+ envVars: ["ZALO_BOT_TOKEN"]
90
+ } });
88
91
  function mergeZaloAccountConfig(cfg, accountId) {
89
92
  return resolveMergedAccountConfig({
90
93
  channelConfig: cfg.channels?.zalo,
@@ -1,4 +1,4 @@
1
- import { a as promptZaloAllowFrom, i as noteZaloTokenHelp, n as zaloDmPolicy, u as resolveZaloAccount } from "./setup-core-BCJZqQ4h.js";
1
+ import { a as promptZaloAllowFrom, i as noteZaloTokenHelp, n as zaloDmPolicy, u as resolveZaloAccount } from "./setup-core-D3zN2pEh.js";
2
2
  import { DEFAULT_ACCOUNT_ID, buildSingleChannelSecretPromptState, createSetupTranslator, createStandardChannelSetupStatus, hasConfiguredSecretInput, promptSingleChannelSecretInput, runSingleChannelSecretStep } from "openclaw/plugin-sdk/setup";
3
3
  //#region extensions/zalo/src/setup-surface.ts
4
4
  const t = createSetupTranslator();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/zalo",
3
- "version": "2026.5.16-beta.4",
3
+ "version": "2026.5.16-beta.6",
4
4
  "description": "OpenClaw Zalo channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "openclaw": "workspace:*"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.5.16-beta.4"
15
+ "openclaw": ">=2026.5.16-beta.6"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -43,10 +43,10 @@
43
43
  "minHostVersion": ">=2026.4.10"
44
44
  },
45
45
  "compat": {
46
- "pluginApi": ">=2026.5.16-beta.4"
46
+ "pluginApi": ">=2026.5.16-beta.6"
47
47
  },
48
48
  "build": {
49
- "openclawVersion": "2026.5.16-beta.4"
49
+ "openclawVersion": "2026.5.16-beta.6"
50
50
  },
51
51
  "release": {
52
52
  "publishToClawHub": true,