@openclaw/zalo 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.
- package/dist/api.js +1 -1
- package/dist/{channel-htLpFgKy.js → channel-DSMo5e3B.js} +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BqVEGfmL.js → channel.runtime-uSuM_HDe.js} +1 -1
- package/dist/{monitor-B3PaXxot.js → monitor-BEIaqyy1.js} +10 -6
- package/npm-shrinkwrap.json +3 -3
- package/package.json +4 -4
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-
|
|
2
|
+
import { t as zaloPlugin } from "./channel-DSMo5e3B.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-
|
|
176
|
+
const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-uSuM_HDe.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-
|
|
1
|
+
import { t as zaloPlugin } from "./channel-DSMo5e3B.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-
|
|
89
|
+
const { monitorZaloProvider } = await import("./monitor-BEIaqyy1.js");
|
|
90
90
|
return monitorZaloProvider({
|
|
91
91
|
token,
|
|
92
92
|
account,
|
|
@@ -321,10 +321,14 @@ function startPollingLoop(params) {
|
|
|
321
321
|
} catch (err) {
|
|
322
322
|
if (err instanceof ZaloApiError && err.isPollingTimeout) {} else if (!isStopped() && !abortSignal.aborted) {
|
|
323
323
|
runtime.error?.(`[${account.accountId}] Zalo polling error: ${formatZaloError(err)}`);
|
|
324
|
-
await new Promise((resolve) =>
|
|
324
|
+
await new Promise((resolve) => {
|
|
325
|
+
setTimeout(resolve, 5e3);
|
|
326
|
+
});
|
|
325
327
|
}
|
|
326
328
|
}
|
|
327
|
-
if (!isStopped() && !abortSignal.aborted) setImmediate(
|
|
329
|
+
if (!isStopped() && !abortSignal.aborted) setImmediate(() => {
|
|
330
|
+
poll();
|
|
331
|
+
});
|
|
328
332
|
};
|
|
329
333
|
poll();
|
|
330
334
|
}
|
|
@@ -460,7 +464,7 @@ async function authorizeZaloMessage(params) {
|
|
|
460
464
|
providerMissingFallbackApplied: senderAccess.providerMissingFallbackApplied,
|
|
461
465
|
providerKey: "zalo",
|
|
462
466
|
accountId: account.accountId,
|
|
463
|
-
log: (
|
|
467
|
+
log: (messageValue) => logVerbose(core, runtime, messageValue)
|
|
464
468
|
});
|
|
465
469
|
if (!senderAccess.allowed) {
|
|
466
470
|
if (senderAccess.reasonCode === "group_policy_disabled") logVerbose(core, runtime, `zalo: drop group ${chatId} (groupPolicy=disabled)`);
|
|
@@ -481,10 +485,10 @@ async function authorizeZaloMessage(params) {
|
|
|
481
485
|
onCreated: () => {
|
|
482
486
|
logVerbose(core, runtime, `zalo pairing request sender=${senderId}`);
|
|
483
487
|
},
|
|
484
|
-
sendPairingReply: async (
|
|
488
|
+
sendPairingReply: async (textLocal) => {
|
|
485
489
|
await sendMessage(token, {
|
|
486
490
|
chat_id: chatId,
|
|
487
|
-
text
|
|
491
|
+
text: textLocal
|
|
488
492
|
}, fetcher);
|
|
489
493
|
statusSink?.({ lastOutboundAt: Date.now() });
|
|
490
494
|
},
|
|
@@ -634,7 +638,7 @@ async function processMessageWithPipeline(params) {
|
|
|
634
638
|
},
|
|
635
639
|
onStartError: (err) => {
|
|
636
640
|
logTypingFailure({
|
|
637
|
-
log: (
|
|
641
|
+
log: (messageLocal) => logVerbose(core, runtime, messageLocal),
|
|
638
642
|
channel: "zalo",
|
|
639
643
|
action: "start",
|
|
640
644
|
target: chatId,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/zalo",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/zalo",
|
|
9
|
-
"version": "2026.5.31-beta.
|
|
9
|
+
"version": "2026.5.31-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"zod": "4.4.3"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"openclaw": ">=2026.5.31-beta.
|
|
14
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
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.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.4",
|
|
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.5.31-beta.
|
|
11
|
+
"openclaw": ">=2026.5.31-beta.4"
|
|
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.31-beta.
|
|
42
|
+
"pluginApi": ">=2026.5.31-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"build": {
|
|
45
|
-
"openclawVersion": "2026.5.31-beta.
|
|
45
|
+
"openclawVersion": "2026.5.31-beta.4"
|
|
46
46
|
},
|
|
47
47
|
"release": {
|
|
48
48
|
"publishToClawHub": true,
|