@openclaw/nextcloud-talk 2026.5.14-beta.1 → 2026.5.14-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,2 +1,2 @@
1
- import { t as nextcloudTalkPlugin } from "./channel-cSkkIgTL.js";
1
+ import { t as nextcloudTalkPlugin } from "./channel-BojN7pUJ.js";
2
2
  export { nextcloudTalkPlugin };
@@ -12,6 +12,7 @@ import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, norm
12
12
  import { buildSecretInputSchema, hasConfiguredSecretInput, normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
13
13
  import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
14
14
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
15
+ import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
15
16
  import { createMessageReceiptFromOutboundResults, defineChannelMessageAdapter } from "openclaw/plugin-sdk/channel-message";
16
17
  import { ssrfPolicyFromPrivateNetworkOptIn, ssrfPolicyFromPrivateNetworkOptIn as ssrfPolicyFromPrivateNetworkOptIn$1 } from "openclaw/plugin-sdk/ssrf-runtime";
17
18
  import { readFileSync } from "node:fs";
@@ -295,7 +296,7 @@ async function probeNextcloudTalkBotResponseFeature(params) {
295
296
  message: `Nextcloud Talk bot response feature probe failed (${response.status})${body ? `: ${body}` : ""}`
296
297
  };
297
298
  }
298
- const payload = await response.json();
299
+ const payload = await readProviderJsonResponse(response, "Nextcloud Talk bot response feature probe failed");
299
300
  const bot = (Array.isArray(payload.ocs?.data) ? payload.ocs.data : []).find((entry) => normalizeUrlForMatch(entry.url) === webhookUrl);
300
301
  if (!bot) return {
301
302
  ok: false,
@@ -326,7 +327,7 @@ async function probeNextcloudTalkBotResponseFeature(params) {
326
327
  return {
327
328
  ok: false,
328
329
  code: "request_failed",
329
- message: `Nextcloud Talk bot response feature probe failed: ${formatErrorMessage(error)}`
330
+ message: `Nextcloud Talk bot response feature probe failed: ${error instanceof Error ? error.message : formatErrorMessage(error)}`
330
331
  };
331
332
  }
332
333
  }
@@ -570,7 +571,7 @@ async function resolveNextcloudTalkRoomKind(params) {
570
571
  runtime?.log?.(`nextcloud-talk: room lookup failed (${response.status}) token=${roomToken}`);
571
572
  return;
572
573
  }
573
- const kind = resolveRoomKindFromType(coerceRoomType((await response.json()).ocs?.data?.type));
574
+ const kind = resolveRoomKindFromType(coerceRoomType((await readProviderJsonResponse(response, "Nextcloud Talk room info failed")).ocs?.data?.type));
574
575
  roomCache.set(key, {
575
576
  fetchedAt: Date.now(),
576
577
  kind
@@ -1,2 +1,2 @@
1
- import { t as nextcloudTalkPlugin } from "./channel-cSkkIgTL.js";
1
+ import { t as nextcloudTalkPlugin } from "./channel-BojN7pUJ.js";
2
2
  export { nextcloudTalkPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nextcloud-talk",
3
- "version": "2026.5.14-beta.1",
3
+ "version": "2026.5.14-beta.2",
4
4
  "description": "OpenClaw Nextcloud Talk 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.14-beta.1"
15
+ "openclaw": ">=2026.5.14-beta.2"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -44,10 +44,10 @@
44
44
  "minHostVersion": ">=2026.4.10"
45
45
  },
46
46
  "compat": {
47
- "pluginApi": ">=2026.5.14-beta.1"
47
+ "pluginApi": ">=2026.5.14-beta.2"
48
48
  },
49
49
  "build": {
50
- "openclawVersion": "2026.5.14-beta.1"
50
+ "openclawVersion": "2026.5.14-beta.2"
51
51
  },
52
52
  "release": {
53
53
  "publishToClawHub": true,