@openclaw/zalo 2026.5.10-beta.2 → 2026.5.10-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/{accounts-9NLDDlZ8.js → accounts-OjbMFek2.js} +1 -1
- package/dist/{actions.runtime-BQ5w5Doy.js → actions.runtime-B-RkyU18.js} +1 -1
- package/dist/api.js +2 -2
- package/dist/{channel-CqYdiVMC.js → channel-CoWHeuWX.js} +7 -7
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-CAA9uPYO.js → channel.runtime-Cvycoekh.js} +4 -4
- package/dist/{monitor-CpIJP2uj.js → monitor-DaJVBJGD.js} +1 -1
- package/dist/{send-znUV-Z2f.js → send-B33YPMz_.js} +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/{setup-core-DigRD3j1.js → setup-core-B-97bdBF.js} +1 -1
- package/dist/{setup-surface-2Up3yWov.js → setup-surface-Cs4_XZXk.js} +2 -2
- package/package.json +7 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAccountListHelpers, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-helpers";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
|
-
import { normalizeOptionalString } from "openclaw/plugin-sdk/
|
|
3
|
+
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/core";
|
|
5
5
|
import { resolveAccountEntry } from "openclaw/plugin-sdk/routing";
|
|
6
6
|
import { buildSecretInputSchema, normalizeResolvedSecretInputString, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
package/dist/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as zaloPlugin } from "./channel-
|
|
2
|
-
import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-
|
|
1
|
+
import { t as zaloPlugin } from "./channel-CoWHeuWX.js";
|
|
2
|
+
import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-B-97bdBF.js";
|
|
3
3
|
import { n as resolveZaloRuntimeGroupPolicy } from "./group-access-B_fAqJAN.js";
|
|
4
4
|
import { zaloSetupWizard } from "./setup-api.js";
|
|
5
5
|
export { createZaloSetupWizardProxy, resolveZaloRuntimeGroupPolicy, zaloDmPolicy, zaloPlugin, zaloSetupAdapter, zaloSetupWizard };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveZaloAccount, i as resolveDefaultZaloAccountId, n as listEnabledZaloAccounts, r as listZaloAccountIds, s as buildSecretInputSchema } from "./accounts-
|
|
1
|
+
import { a as resolveZaloAccount, i as resolveDefaultZaloAccountId, n as listEnabledZaloAccounts, r as listZaloAccountIds, s as buildSecretInputSchema } from "./accounts-OjbMFek2.js";
|
|
2
2
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-Dw93tGo2.js";
|
|
3
|
-
import { r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-
|
|
3
|
+
import { r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-B-97bdBF.js";
|
|
4
4
|
import { describeWebhookAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
6
6
|
import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
|
|
@@ -16,16 +16,16 @@ import { createLazyRuntimeModule, createLazyRuntimeNamedExport } from "openclaw/
|
|
|
16
16
|
import { isNumericTargetId, sendPayloadWithChunkedTextAndMedia } from "openclaw/plugin-sdk/reply-payload";
|
|
17
17
|
import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/status-helpers";
|
|
18
18
|
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
19
|
-
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/
|
|
19
|
+
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
20
20
|
import { buildChannelOutboundSessionRoute, stripChannelTargetPrefix, stripTargetKindPrefix } from "openclaw/plugin-sdk/core";
|
|
21
21
|
import { jsonResult, readStringParam } from "openclaw/plugin-sdk/channel-actions";
|
|
22
22
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
23
23
|
import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
|
|
24
24
|
import { AllowFromListSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigSchema, buildCatchallMultiAccountChannelSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
|
25
|
-
import { z } from "
|
|
25
|
+
import { z } from "zod";
|
|
26
26
|
import { coerceStatusIssueAccountId, readStatusIssueFields } from "openclaw/plugin-sdk/extension-shared";
|
|
27
27
|
//#region extensions/zalo/src/actions.ts
|
|
28
|
-
const loadZaloActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-
|
|
28
|
+
const loadZaloActionsRuntime = createLazyRuntimeNamedExport(() => import("./actions.runtime-B-RkyU18.js"), "zaloActionsRuntime");
|
|
29
29
|
const providerId = "zalo";
|
|
30
30
|
function listEnabledAccounts(cfg, accountId) {
|
|
31
31
|
return (accountId ? [resolveZaloAccount({
|
|
@@ -174,8 +174,8 @@ function normalizeZaloMessagingTarget(raw) {
|
|
|
174
174
|
if (!trimmed) return;
|
|
175
175
|
return trimmed.replace(/^(zalo|zl):/i, "").trim();
|
|
176
176
|
}
|
|
177
|
-
const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
178
|
-
const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-
|
|
177
|
+
const loadZaloChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-Cvycoekh.js"));
|
|
178
|
+
const zaloSetupWizard = createZaloSetupWizardProxy(async () => (await import("./setup-surface-Cs4_XZXk.js")).zaloSetupWizard);
|
|
179
179
|
const zaloTextChunkLimit = 2e3;
|
|
180
180
|
const zaloRawSendResultAdapter = createRawChannelSendResultAdapter({
|
|
181
181
|
channel: "zalo",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as zaloPlugin } from "./channel-
|
|
1
|
+
import { t as zaloPlugin } from "./channel-CoWHeuWX.js";
|
|
2
2
|
export { zaloPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as normalizeSecretInputString } from "./accounts-
|
|
1
|
+
import { c as normalizeSecretInputString } from "./accounts-OjbMFek2.js";
|
|
2
2
|
import { n as PAIRING_APPROVED_MESSAGE } from "./runtime-api-df534_Ih.js";
|
|
3
3
|
import { i as getMe, n as ZaloApiError, t as resolveZaloProxyFetch } from "./proxy-D5AGEsI0.js";
|
|
4
|
-
import { t as sendMessageZalo } from "./send-
|
|
4
|
+
import { t as sendMessageZalo } from "./send-B33YPMz_.js";
|
|
5
5
|
import { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
|
|
6
6
|
//#region extensions/zalo/src/probe.ts
|
|
7
7
|
async function probeZalo(token, timeoutMs = 5e3, fetcher) {
|
|
@@ -53,7 +53,7 @@ async function probeZalo(token, timeoutMs = 5e3, fetcher) {
|
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region extensions/zalo/src/channel.runtime.ts
|
|
55
55
|
async function notifyZaloPairingApproval(params) {
|
|
56
|
-
const { resolveZaloAccount } = await import("./accounts-
|
|
56
|
+
const { resolveZaloAccount } = await import("./accounts-OjbMFek2.js").then((n) => n.t);
|
|
57
57
|
const account = resolveZaloAccount({ cfg: params.cfg });
|
|
58
58
|
if (!account.token) throw new Error("Zalo token not configured");
|
|
59
59
|
await sendMessageZalo(params.id, PAIRING_APPROVED_MESSAGE, { token: account.token });
|
|
@@ -87,7 +87,7 @@ async function startZaloGatewayAccount(ctx) {
|
|
|
87
87
|
setStatus: ctx.setStatus
|
|
88
88
|
});
|
|
89
89
|
ctx.log?.info(`[${account.accountId}] starting provider${zaloBotLabel} mode=${mode}`);
|
|
90
|
-
const { monitorZaloProvider } = await import("./monitor-
|
|
90
|
+
const { monitorZaloProvider } = await import("./monitor-DaJVBJGD.js");
|
|
91
91
|
return monitorZaloProvider({
|
|
92
92
|
token,
|
|
93
93
|
account,
|
|
@@ -2,7 +2,7 @@ import { n as resolveZaloRuntimeGroupPolicy, t as normalizeZaloAllowEntry } from
|
|
|
2
2
|
import { t as getZaloRuntime } from "./runtime-BRFxnYQx.js";
|
|
3
3
|
import { a as getUpdates, c as sendMessage, l as sendPhoto, n as ZaloApiError, o as getWebhookInfo, r as deleteWebhook, s as sendChatAction, t as resolveZaloProxyFetch, u as setWebhook } from "./proxy-D5AGEsI0.js";
|
|
4
4
|
import { deliverTextOrMediaReply, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
5
|
-
import { normalizeStringEntries } from "openclaw/plugin-sdk/
|
|
5
|
+
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
7
7
|
import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
|
|
8
8
|
import { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveZaloAccount, o as resolveZaloToken } from "./accounts-
|
|
1
|
+
import { a as resolveZaloAccount, o as resolveZaloToken } from "./accounts-OjbMFek2.js";
|
|
2
2
|
import { c as sendMessage, l as sendPhoto, t as resolveZaloProxyFetch } from "./proxy-D5AGEsI0.js";
|
|
3
3
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
|
|
4
4
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-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-
|
|
1
|
+
import { n as zaloDmPolicy, r as zaloSetupAdapter, t as createZaloSetupWizardProxy } from "./setup-core-B-97bdBF.js";
|
|
2
2
|
import { n as resolveZaloRuntimeGroupPolicy } from "./group-access-B_fAqJAN.js";
|
|
3
3
|
import { loadBundledEntryExportSync } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
4
4
|
//#region extensions/zalo/setup-api.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveZaloAccount, i as resolveDefaultZaloAccountId } from "./accounts-
|
|
1
|
+
import { a as resolveZaloAccount, i as resolveDefaultZaloAccountId } from "./accounts-OjbMFek2.js";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, addWildcardAllowFrom, createDelegatedSetupWizardProxy, createPatchedAccountSetupAdapter, createSetupInputPresenceValidator, formatDocsLink, mergeAllowFromEntries, normalizeAccountId } from "openclaw/plugin-sdk/setup";
|
|
3
3
|
//#region extensions/zalo/src/setup-allow-from.ts
|
|
4
4
|
async function noteZaloTokenHelp(prompter) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveZaloAccount } from "./accounts-
|
|
2
|
-
import { a as promptZaloAllowFrom, i as noteZaloTokenHelp, n as zaloDmPolicy } from "./setup-core-
|
|
1
|
+
import { a as resolveZaloAccount } from "./accounts-OjbMFek2.js";
|
|
2
|
+
import { a as promptZaloAllowFrom, i as noteZaloTokenHelp, n as zaloDmPolicy } from "./setup-core-B-97bdBF.js";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID, buildSingleChannelSecretPromptState, createStandardChannelSetupStatus, hasConfiguredSecretInput, promptSingleChannelSecretInput, runSingleChannelSecretStep } from "openclaw/plugin-sdk/setup";
|
|
4
4
|
//#region extensions/zalo/src/setup-surface.ts
|
|
5
5
|
const channel = "zalo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/zalo",
|
|
3
|
-
"version": "2026.5.10-beta.
|
|
3
|
+
"version": "2026.5.10-beta.4",
|
|
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.10-beta.
|
|
15
|
+
"openclaw": ">=2026.5.10-beta.4"
|
|
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.10-beta.
|
|
46
|
+
"pluginApi": ">=2026.5.10-beta.4"
|
|
47
47
|
},
|
|
48
48
|
"build": {
|
|
49
|
-
"openclawVersion": "2026.5.10-beta.
|
|
49
|
+
"openclawVersion": "2026.5.10-beta.4"
|
|
50
50
|
},
|
|
51
51
|
"release": {
|
|
52
52
|
"publishToClawHub": true,
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
],
|
|
58
58
|
"runtimeSetupEntry": "./dist/setup-entry.js"
|
|
59
59
|
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"zod": "^4.4.3"
|
|
62
|
+
},
|
|
60
63
|
"files": [
|
|
61
64
|
"dist/**",
|
|
62
65
|
"openclaw.plugin.json",
|