@openclaw/synology-chat 2026.6.11 → 2026.7.1-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,3 +1,3 @@
|
|
|
1
|
-
import { n as setSynologyRuntime, t as synologyChatPlugin } from "./channel-
|
|
1
|
+
import { n as setSynologyRuntime, t as synologyChatPlugin } from "./channel-rLE-0ml6.js";
|
|
2
2
|
import { t as collectSynologyChatSecurityAuditFindings } from "./security-audit-DIsaxIaB.js";
|
|
3
3
|
export { collectSynologyChatSecurityAuditFindings, setSynologyRuntime, synologyChatPlugin };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as synologyChatPlugin } from "./channel-
|
|
1
|
+
import { t as synologyChatPlugin } from "./channel-rLE-0ml6.js";
|
|
2
2
|
export { synologyChatPlugin };
|
|
@@ -21,6 +21,7 @@ import { beginWebhookRequestPipelineOrReject, createFixedWindowRateLimiter, crea
|
|
|
21
21
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
22
22
|
import { buildAgentSessionKey } from "openclaw/plugin-sdk/routing";
|
|
23
23
|
import * as querystring from "node:querystring";
|
|
24
|
+
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
24
25
|
import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
|
|
25
26
|
import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
|
|
26
27
|
//#region extensions/synology-chat/src/approval-auth.ts
|
|
@@ -434,7 +435,7 @@ function sanitizeInput(text) {
|
|
|
434
435
|
let sanitized = text;
|
|
435
436
|
for (const pattern of dangerousPatterns) sanitized = sanitized.replace(pattern, "[FILTERED]");
|
|
436
437
|
const maxLength = 4e3;
|
|
437
|
-
if (sanitized.length > maxLength) sanitized = sanitized
|
|
438
|
+
if (sanitized.length > maxLength) sanitized = truncateUtf16Safe(sanitized, maxLength) + "... [truncated]";
|
|
438
439
|
return sanitized;
|
|
439
440
|
}
|
|
440
441
|
/**
|
|
@@ -813,7 +814,7 @@ async function parseAndAuthorizeSynologyWebhook(params) {
|
|
|
813
814
|
respondNoContent(params.res);
|
|
814
815
|
return { ok: false };
|
|
815
816
|
}
|
|
816
|
-
const preview = cleanText.length > 100 ? `${cleanText
|
|
817
|
+
const preview = cleanText.length > 100 ? `${truncateUtf16Safe(cleanText, 100)}...` : cleanText;
|
|
817
818
|
return {
|
|
818
819
|
ok: true,
|
|
819
820
|
message: {
|
|
@@ -857,7 +858,7 @@ async function processAuthorizedSynologyWebhook(params) {
|
|
|
857
858
|
});
|
|
858
859
|
if (!reply) return;
|
|
859
860
|
await sendMessage(params.account.incomingUrl, reply, deliveryUserId, params.account.allowInsecureSsl);
|
|
860
|
-
const replyPreview = reply.length > 100 ? `${reply
|
|
861
|
+
const replyPreview = reply.length > 100 ? `${truncateUtf16Safe(reply, 100)}...` : reply;
|
|
861
862
|
params.log?.info?.(`Reply sent to ${params.message.payload.username} (${deliveryUserId}): ${replyPreview}`);
|
|
862
863
|
} catch (err) {
|
|
863
864
|
const errMsg = err instanceof Error ? `${err.message}\n${err.stack}` : String(err);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/synology-chat",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/synology-chat",
|
|
9
|
-
"version": "2026.
|
|
9
|
+
"version": "2026.7.1-beta.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"zod": "4.4.3"
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/synology-chat",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"description": "Synology Chat channel plugin for OpenClaw channels and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"minHostVersion": ">=2026.4.10"
|
|
28
28
|
},
|
|
29
29
|
"compat": {
|
|
30
|
-
"pluginApi": ">=2026.
|
|
30
|
+
"pluginApi": ">=2026.7.1-beta.2"
|
|
31
31
|
},
|
|
32
32
|
"build": {
|
|
33
|
-
"openclawVersion": "2026.
|
|
33
|
+
"openclawVersion": "2026.7.1-beta.2"
|
|
34
34
|
},
|
|
35
35
|
"release": {
|
|
36
36
|
"publishToClawHub": true,
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"README.md"
|
|
52
52
|
],
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"openclaw": ">=2026.
|
|
54
|
+
"openclaw": ">=2026.7.1-beta.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"openclaw": {
|