@openclaw/nextcloud-talk 2026.7.1-beta.2 → 2026.7.1-beta.5

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-C6wFKYpX.js";
1
+ import { t as nextcloudTalkPlugin } from "./channel-BMKRTDSP.js";
2
2
  export { nextcloudTalkPlugin };
@@ -36,6 +36,7 @@ import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
36
36
  import { channelIngressRoutes, resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-ingress-runtime";
37
37
  import { resolveInboundRouteEnvelopeBuilderWithRuntime } from "openclaw/plugin-sdk/inbound-envelope";
38
38
  import { buildChannelKeyCandidates, normalizeChannelSlug, resolveChannelEntryMatchWithFallback, resolveNestedAllowlistDecision } from "openclaw/plugin-sdk/channel-targets";
39
+ import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
39
40
  import { createServer } from "node:http";
40
41
  import { WEBHOOK_RATE_LIMIT_DEFAULTS, createAuthRateLimiter, isRequestBodyLimitError, readRequestBodyWithLimit, requestBodyErrorToText } from "openclaw/plugin-sdk/webhook-ingress";
41
42
  import { jsonResult, readStringParam, resolveReactionMessageId } from "openclaw/plugin-sdk/channel-actions";
@@ -642,10 +643,15 @@ function resolveNextcloudTalkRequireMention(params) {
642
643
  //#region extensions/nextcloud-talk/src/room-info.ts
643
644
  const ROOM_CACHE_TTL_MS = 300 * 1e3;
644
645
  const ROOM_CACHE_ERROR_TTL_MS = 30 * 1e3;
646
+ const ROOM_CACHE_MAX_ENTRIES = 1e3;
645
647
  const roomCache = /* @__PURE__ */ new Map();
646
648
  function resolveRoomCacheKey(params) {
647
649
  return `${params.accountId}:${params.roomToken}`;
648
650
  }
651
+ function cacheRoomInfo(key, value) {
652
+ roomCache.set(key, value);
653
+ pruneMapToMaxSize(roomCache, ROOM_CACHE_MAX_ENTRIES);
654
+ }
649
655
  function coerceRoomType(value) {
650
656
  if (typeof value === "number" && Number.isSafeInteger(value) && value > 0) return value;
651
657
  return parseStrictPositiveInteger(value);
@@ -693,7 +699,7 @@ async function resolveNextcloudTalkRoomKind(params) {
693
699
  });
694
700
  try {
695
701
  if (!response.ok) {
696
- roomCache.set(key, {
702
+ cacheRoomInfo(key, {
697
703
  fetchedAt: Date.now(),
698
704
  error: `status:${response.status}`
699
705
  });
@@ -701,7 +707,7 @@ async function resolveNextcloudTalkRoomKind(params) {
701
707
  return;
702
708
  }
703
709
  const kind = resolveRoomKindFromType(coerceRoomType((await readProviderJsonResponse(response, "Nextcloud Talk room info failed")).ocs?.data?.type));
704
- roomCache.set(key, {
710
+ cacheRoomInfo(key, {
705
711
  fetchedAt: Date.now(),
706
712
  kind
707
713
  });
@@ -710,7 +716,7 @@ async function resolveNextcloudTalkRoomKind(params) {
710
716
  await release();
711
717
  }
712
718
  } catch (err) {
713
- roomCache.set(key, {
719
+ cacheRoomInfo(key, {
714
720
  fetchedAt: Date.now(),
715
721
  error: formatErrorMessage(err)
716
722
  });
@@ -1713,6 +1719,7 @@ function resolveNextcloudTalkOutboundSessionRoute(params) {
1713
1719
  return {
1714
1720
  sessionKey: baseSessionKey,
1715
1721
  baseSessionKey,
1722
+ recipientSessionExact: false,
1716
1723
  peer: {
1717
1724
  kind: "group",
1718
1725
  id: roomId
@@ -1,2 +1,2 @@
1
- import { t as nextcloudTalkPlugin } from "./channel-C6wFKYpX.js";
1
+ import { t as nextcloudTalkPlugin } from "./channel-BMKRTDSP.js";
2
2
  export { nextcloudTalkPlugin };
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@openclaw/nextcloud-talk",
3
- "version": "2026.7.1-beta.2",
3
+ "version": "2026.7.1-beta.5",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/nextcloud-talk",
9
- "version": "2026.7.1-beta.2",
9
+ "version": "2026.7.1-beta.5",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.7.1-beta.2"
14
+ "openclaw": ">=2026.7.1-beta.5"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/nextcloud-talk",
3
- "version": "2026.7.1-beta.2",
3
+ "version": "2026.7.1-beta.5",
4
4
  "description": "OpenClaw Nextcloud Talk channel plugin for conversations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "type": "module",
10
10
  "peerDependencies": {
11
- "openclaw": ">=2026.7.1-beta.2"
11
+ "openclaw": ">=2026.7.1-beta.5"
12
12
  },
13
13
  "peerDependenciesMeta": {
14
14
  "openclaw": {
@@ -40,10 +40,10 @@
40
40
  "minHostVersion": ">=2026.4.10"
41
41
  },
42
42
  "compat": {
43
- "pluginApi": ">=2026.7.1-beta.2"
43
+ "pluginApi": ">=2026.7.1-beta.5"
44
44
  },
45
45
  "build": {
46
- "openclawVersion": "2026.7.1-beta.2"
46
+ "openclawVersion": "2026.7.1-beta.5"
47
47
  },
48
48
  "release": {
49
49
  "publishToClawHub": true,