@openclaw/zalo 2026.5.25-beta.1 → 2026.5.26-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.
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-oTTioJT-.js";
2
- import { t as zaloPlugin } from "./channel-D5D0wtEk.js";
2
+ import { t as zaloPlugin } from "./channel-DndbQ5Tw.js";
3
3
  import { n as resolveZaloRuntimeGroupPolicy } from "./group-access-8qHRzDHx.js";
4
4
  import { zaloSetupWizard } from "./setup-api.js";
5
5
  export { createZaloSetupWizardProxy, resolveZaloRuntimeGroupPolicy, zaloDmPolicy, zaloPlugin, zaloSetupAdapter, zaloSetupWizard };
@@ -173,7 +173,7 @@ 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-C1vsUErF.js"));
176
+ const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CxZ07sqX.js"));
177
177
  const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-BUaA8o_s.js")).zaloSetupWizard);
178
178
  const zaloTextChunkLimit = 2e3;
179
179
  const zaloRawSendResultAdapter = createRawChannelSendResultAdapter({
@@ -1,2 +1,2 @@
1
- import { t as zaloPlugin } from "./channel-D5D0wtEk.js";
1
+ import { t as zaloPlugin } from "./channel-DndbQ5Tw.js";
2
2
  export { zaloPlugin };
@@ -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-CB0CTF4X.js");
89
+ const { monitorZaloProvider } = await import("./monitor-DIzv7XJO.js");
90
90
  return monitorZaloProvider({
91
91
  token,
92
92
  account,
@@ -35,7 +35,13 @@ function resolveZaloDurableReplyOptions(params) {
35
35
  const ZALO_OUTBOUND_MEDIA_TTL_MS = 2 * 6e4;
36
36
  const ZALO_OUTBOUND_MEDIA_SEGMENT = "media";
37
37
  const ZALO_OUTBOUND_MEDIA_PREFIX = `/${ZALO_OUTBOUND_MEDIA_SEGMENT}/`;
38
- const ZALO_OUTBOUND_MEDIA_DIR = join(resolvePreferredOpenClawTmpDir(), "openclaw-zalo-outbound-media");
38
+ const ZALO_OUTBOUND_MEDIA_DIR_NAME = "openclaw-zalo-outbound-media";
39
+ function resolveHostedZaloMediaDirName() {
40
+ const workerId = process.env.VITEST_WORKER_ID ?? process.env.VITEST_POOL_ID;
41
+ if (!workerId) return ZALO_OUTBOUND_MEDIA_DIR_NAME;
42
+ return `${ZALO_OUTBOUND_MEDIA_DIR_NAME}-${workerId.replaceAll(/[^a-zA-Z0-9_.-]/gu, "_")}`;
43
+ }
44
+ const ZALO_OUTBOUND_MEDIA_DIR = join(resolvePreferredOpenClawTmpDir(), resolveHostedZaloMediaDirName());
39
45
  const ZALO_OUTBOUND_MEDIA_ID_RE = /^[a-f0-9]{24}$/;
40
46
  function resolveHostedZaloMediaMetadataPath(id) {
41
47
  return join(ZALO_OUTBOUND_MEDIA_DIR, `${id}.json`);
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@openclaw/zalo",
3
- "version": "2026.5.25-beta.1",
3
+ "version": "2026.5.26-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/zalo",
9
- "version": "2026.5.25-beta.1",
9
+ "version": "2026.5.26-beta.2",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.5.25-beta.1"
14
+ "openclaw": ">=2026.5.26-beta.2"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/zalo",
3
- "version": "2026.5.25-beta.1",
3
+ "version": "2026.5.26-beta.2",
4
4
  "description": "OpenClaw Zalo channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "type": "module",
10
10
  "peerDependencies": {
11
- "openclaw": ">=2026.5.25-beta.1"
11
+ "openclaw": ">=2026.5.26-beta.2"
12
12
  },
13
13
  "peerDependenciesMeta": {
14
14
  "openclaw": {
@@ -39,10 +39,10 @@
39
39
  "minHostVersion": ">=2026.4.10"
40
40
  },
41
41
  "compat": {
42
- "pluginApi": ">=2026.5.25-beta.1"
42
+ "pluginApi": ">=2026.5.26-beta.2"
43
43
  },
44
44
  "build": {
45
- "openclawVersion": "2026.5.25-beta.1"
45
+ "openclawVersion": "2026.5.26-beta.2"
46
46
  },
47
47
  "release": {
48
48
  "publishToClawHub": true,