@openclaw/zalo 2026.6.8-beta.2 → 2026.6.9-beta.1

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-fwCh0QUi.js";
2
- import { t as zaloPlugin } from "./channel-fQwAowmS.js";
2
+ import { t as zaloPlugin } from "./channel-BulSjBML.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-Dfy33H5M.js"));
176
+ const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-RCfvYRaN.js"));
177
177
  const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-8eRimod9.js")).zaloSetupWizard);
178
178
  const zaloTextChunkLimit = 2e3;
179
179
  const zaloRawSendResultAdapter = createRawChannelSendResultAdapter({
@@ -1,2 +1,2 @@
1
- import { t as zaloPlugin } from "./channel-fQwAowmS.js";
1
+ import { t as zaloPlugin } from "./channel-BulSjBML.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-BcYKNoj4.js");
89
+ const { monitorZaloProvider } = await import("./monitor-BCnfAVr4.js");
90
90
  return monitorZaloProvider({
91
91
  token,
92
92
  account,
@@ -158,6 +158,16 @@ function loadZaloWebhookModule() {
158
158
  zaloWebhookModulePromise ??= import("./monitor.webhook-B23mUx-y.js");
159
159
  return zaloWebhookModulePromise;
160
160
  }
161
+ function releaseSharedHostedMediaRouteRef(routePath) {
162
+ const current = hostedMediaRouteRefs.get(routePath);
163
+ if (!current) return;
164
+ if (current.count > 1) {
165
+ current.count -= 1;
166
+ return;
167
+ }
168
+ hostedMediaRouteRefs.delete(routePath);
169
+ for (const unregisterHandle of current.unregisters) unregisterHandle();
170
+ }
161
171
  function registerSharedHostedMediaRoute(params) {
162
172
  const unregister = registerPluginHttpRoute({
163
173
  auth: "plugin",
@@ -179,31 +189,13 @@ function registerSharedHostedMediaRoute(params) {
179
189
  if (existing) {
180
190
  existing.count += 1;
181
191
  existing.unregisters.push(unregister);
182
- return () => {
183
- const current = hostedMediaRouteRefs.get(params.path);
184
- if (!current) return;
185
- if (current.count > 1) {
186
- current.count -= 1;
187
- return;
188
- }
189
- hostedMediaRouteRefs.delete(params.path);
190
- for (const unregisterHandle of current.unregisters) unregisterHandle();
191
- };
192
+ return () => releaseSharedHostedMediaRouteRef(params.path);
192
193
  }
193
194
  hostedMediaRouteRefs.set(params.path, {
194
195
  count: 1,
195
196
  unregisters: [unregister]
196
197
  });
197
- return () => {
198
- const current = hostedMediaRouteRefs.get(params.path);
199
- if (!current) return;
200
- if (current.count > 1) {
201
- current.count -= 1;
202
- return;
203
- }
204
- hostedMediaRouteRefs.delete(params.path);
205
- for (const unregisterHandle of current.unregisters) unregisterHandle();
206
- };
198
+ return () => releaseSharedHostedMediaRouteRef(params.path);
207
199
  }
208
200
  function formatZaloError(error) {
209
201
  if (error instanceof Error) return error.stack ?? `${error.name}: ${error.message}`;
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@openclaw/zalo",
3
- "version": "2026.6.8-beta.2",
3
+ "version": "2026.6.9-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/zalo",
9
- "version": "2026.6.8-beta.2",
9
+ "version": "2026.6.9-beta.1",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.6.8-beta.2"
14
+ "openclaw": ">=2026.6.9-beta.1"
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.6.8-beta.2",
3
+ "version": "2026.6.9-beta.1",
4
4
  "description": "OpenClaw Zalo channel plugin for bot and webhook chats.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "type": "module",
10
10
  "peerDependencies": {
11
- "openclaw": ">=2026.6.8-beta.2"
11
+ "openclaw": ">=2026.6.9-beta.1"
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.6.8-beta.2"
42
+ "pluginApi": ">=2026.6.9-beta.1"
43
43
  },
44
44
  "build": {
45
- "openclawVersion": "2026.6.8-beta.2"
45
+ "openclawVersion": "2026.6.9-beta.1"
46
46
  },
47
47
  "release": {
48
48
  "publishToClawHub": true,