@openclaw/mattermost 2026.7.2-beta.5 → 2026.7.2-beta.7

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.
@@ -27,6 +27,12 @@ const MattermostPostSchema = z.object({
27
27
  create_at: z.number().nullable().optional(),
28
28
  props: z.record(z.string(), z.unknown()).nullable().optional()
29
29
  }).passthrough();
30
+ const MattermostPostListSchema = z.object({
31
+ order: z.array(z.string()),
32
+ posts: z.record(z.string(), MattermostPostSchema),
33
+ next_post_id: z.string().nullable().optional(),
34
+ prev_post_id: z.string().nullable().optional()
35
+ }).passthrough();
30
36
  function normalizeMattermostBaseUrl(raw) {
31
37
  const trimmed = raw?.trim();
32
38
  if (!trimmed) return;
@@ -181,7 +187,24 @@ async function fetchMattermostUserByUsername(client, username) {
181
187
  return await client.request(`/users/username/${encodeURIComponent(username)}`);
182
188
  }
183
189
  async function fetchMattermostChannel(client, channelId) {
184
- return await client.request(`/channels/${channelId}`);
190
+ return await client.request(`/channels/${encodeURIComponent(channelId)}`);
191
+ }
192
+ async function fetchMattermostChannelPosts(client, channelId, options = {}) {
193
+ const before = normalizeOptionalString(options.before);
194
+ const after = normalizeOptionalString(options.after);
195
+ if (before && after) throw new Error("Mattermost read accepts either before or after, not both.");
196
+ if (options.limit !== void 0 && (!Number.isSafeInteger(options.limit) || options.limit <= 0)) throw new Error("Mattermost read limit must be a positive integer.");
197
+ const perPage = Math.min(options.limit ?? 60, 200);
198
+ const query = new URLSearchParams({ per_page: String(perPage) });
199
+ if (before) query.set("before", before);
200
+ if (after) query.set("after", after);
201
+ const response = await client.request(`/channels/${encodeURIComponent(channelId)}/posts?${query.toString()}`);
202
+ const parsed = MattermostPostListSchema.safeParse(response);
203
+ if (!parsed.success || parsed.data.order.some((postId) => !parsed.data.posts[postId])) throw new Error("Unexpected Mattermost channel posts response.");
204
+ return {
205
+ messages: parsed.data.order.map((postId) => parsed.data.posts[postId]),
206
+ hasMore: Boolean(after ? parsed.data.next_post_id : parsed.data.prev_post_id)
207
+ };
185
208
  }
186
209
  async function fetchMattermostChannelByName(client, teamId, channelName) {
187
210
  return await client.request(`/teams/${teamId}/channels/name/${encodeURIComponent(channelName)}`);
@@ -393,4 +416,4 @@ async function uploadMattermostFile(client, params) {
393
416
  return info;
394
417
  }
395
418
  //#endregion
396
- export { updateMattermostPost as _, createMattermostPost as a, fetchMattermostChannelByName as c, fetchMattermostUserByUsername as d, fetchMattermostUserTeams as f, sendMattermostTyping as g, resolveMattermostReplyDeliveryBarrierTimeoutMs as h, createMattermostDirectChannelWithRetry as i, fetchMattermostMe as l, readMattermostError as m, buildMattermostApiUrl as n, deleteMattermostPost as o, normalizeMattermostBaseUrl as p, createMattermostClient as r, fetchMattermostChannel as s, MattermostPostSchema as t, fetchMattermostUser as u, uploadMattermostFile as v };
419
+ export { sendMattermostTyping as _, createMattermostPost as a, fetchMattermostChannelByName as c, fetchMattermostUser as d, fetchMattermostUserByUsername as f, resolveMattermostReplyDeliveryBarrierTimeoutMs as g, readMattermostError as h, createMattermostDirectChannelWithRetry as i, fetchMattermostChannelPosts as l, normalizeMattermostBaseUrl as m, buildMattermostApiUrl as n, deleteMattermostPost as o, fetchMattermostUserTeams as p, createMattermostClient as r, fetchMattermostChannel as s, MattermostPostSchema as t, fetchMattermostMe as u, updateMattermostPost as v, uploadMattermostFile as y };
@@ -1,6 +1,6 @@
1
1
  import { t as getMattermostRuntime } from "./runtime-CNB4YGqJ.js";
2
- import { _ as updateMattermostPost } from "./client-w0lkxuKh.js";
3
- import { b as readRequestBodyWithLimit, m as isTrustedProxyAddress, w as resolveClientIp } from "./monitor-auth-BOh6zLW9.js";
2
+ import { v as updateMattermostPost } from "./client-CqqzTcno.js";
3
+ import { b as readRequestBodyWithLimit, m as isTrustedProxyAddress, w as resolveClientIp } from "./monitor-auth-rctDliGZ.js";
4
4
  import { createHmac } from "node:crypto";
5
5
  import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
6
6
  import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -8,7 +8,7 @@ import { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback";
8
8
  import { listSkillCommandsForAgents } from "openclaw/plugin-sdk/command-auth-native";
9
9
  import { buildModelsProviderData } from "openclaw/plugin-sdk/models-provider-runtime";
10
10
  import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
11
- import { resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
11
+ import { resolveAllowlistProviderRuntimeGroupPolicy as resolveAllowlistProviderRuntimeGroupPolicy$1, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
12
12
  import { resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/media-runtime";
13
13
  import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
14
14
  import { DEFAULT_GROUP_HISTORY_LIMIT, createChannelHistoryWindow } from "openclaw/plugin-sdk/reply-history";
@@ -182,4 +182,4 @@ async function authorizeMattermostCommandInvocation(params) {
182
182
  };
183
183
  }
184
184
  //#endregion
185
- export { resolveChannelMediaMaxBytes as C, warnMissingProviderGroupPolicyFallbackOnce as E, resolveAllowlistProviderRuntimeGroupPolicy as S, resolveDefaultGroupPolicy as T, logInboundDrop as _, normalizeMattermostAllowList as a, readRequestBodyWithLimit as b, DEFAULT_GROUP_HISTORY_LIMIT as c, createChannelMessageReplyPipeline as d, createChannelPairingController as f, loadOutboundMediaFromUrl as g, listSkillCommandsForAgents as h, normalizeMattermostAllowEntry as i, buildModelsProviderData as l, isTrustedProxyAddress as m, formatMattermostDirectMessageDropLog as n, resolveMattermostMonitorInboundAccess as o, isRequestBodyLimitError as p, isMattermostSenderAllowed as r, resolveMattermostTrustedChatKind as s, authorizeMattermostCommandInvocation as t, createChannelHistoryWindow as u, logTypingFailure as v, resolveClientIp as w, registerPluginHttpRoute as x, parseTcpPort as y };
185
+ export { resolveChannelMediaMaxBytes as C, warnMissingProviderGroupPolicyFallbackOnce as E, resolveAllowlistProviderRuntimeGroupPolicy$1 as S, resolveDefaultGroupPolicy as T, logInboundDrop as _, normalizeMattermostAllowList as a, readRequestBodyWithLimit as b, DEFAULT_GROUP_HISTORY_LIMIT as c, createChannelMessageReplyPipeline as d, createChannelPairingController as f, loadOutboundMediaFromUrl as g, listSkillCommandsForAgents as h, normalizeMattermostAllowEntry as i, buildModelsProviderData as l, isTrustedProxyAddress as m, formatMattermostDirectMessageDropLog as n, resolveMattermostMonitorInboundAccess as o, isRequestBodyLimitError as p, isMattermostSenderAllowed as r, resolveMattermostTrustedChatKind as s, authorizeMattermostCommandInvocation as t, createChannelHistoryWindow as u, logTypingFailure as v, resolveClientIp as w, registerPluginHttpRoute as x, parseTcpPort as y };
@@ -1,2 +1,2 @@
1
- import { r as isMattermostSenderAllowed } from "./monitor-auth-BOh6zLW9.js";
1
+ import { r as isMattermostSenderAllowed } from "./monitor-auth-rctDliGZ.js";
2
2
  export { isMattermostSenderAllowed };
@@ -1,2 +1,2 @@
1
- import { i as registerSlashCommandRoute } from "./slash-state-VCRdqj5F.js";
1
+ import { i as registerSlashCommandRoute } from "./slash-state-DM8qmFJR.js";
2
2
  export { registerSlashCommandRoute };
@@ -1,14 +1,15 @@
1
1
  import { t as getMattermostRuntime } from "./runtime-CNB4YGqJ.js";
2
- import { a as createMattermostPost, c as fetchMattermostChannelByName, d as fetchMattermostUserByUsername, f as fetchMattermostUserTeams, g as sendMattermostTyping, h as resolveMattermostReplyDeliveryBarrierTimeoutMs, i as createMattermostDirectChannelWithRetry, l as fetchMattermostMe, p as normalizeMattermostBaseUrl, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostUser, v as uploadMattermostFile } from "./client-w0lkxuKh.js";
3
- import { a as normalizeMattermostAllowList, b as readRequestBodyWithLimit, g as loadOutboundMediaFromUrl, l as buildModelsProviderData, p as isRequestBodyLimitError, t as authorizeMattermostCommandInvocation, v as logTypingFailure } from "./monitor-auth-BOh6zLW9.js";
4
- import { c as setInteractionSecret, n as buildButtonProps, o as resolveInteractionCallbackUrl } from "./interactions-B4gg-KRm.js";
5
- import { r as resolveMattermostAccount } from "./accounts-BR6Nl5Qf.js";
2
+ import { _ as sendMattermostTyping, a as createMattermostPost, c as fetchMattermostChannelByName, d as fetchMattermostUser, f as fetchMattermostUserByUsername, g as resolveMattermostReplyDeliveryBarrierTimeoutMs, i as createMattermostDirectChannelWithRetry, m as normalizeMattermostBaseUrl, p as fetchMattermostUserTeams, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostMe, y as uploadMattermostFile } from "./client-CqqzTcno.js";
3
+ import { a as normalizeMattermostAllowList, b as readRequestBodyWithLimit, g as loadOutboundMediaFromUrl, l as buildModelsProviderData, p as isRequestBodyLimitError, s as resolveMattermostTrustedChatKind, t as authorizeMattermostCommandInvocation, v as logTypingFailure } from "./monitor-auth-rctDliGZ.js";
4
+ import { c as setInteractionSecret, n as buildButtonProps, o as resolveInteractionCallbackUrl } from "./interactions-BQXY_48h.js";
5
+ import { i as resolveMattermostAccount } from "./accounts-NaMdx9yF.js";
6
6
  import { createHash } from "node:crypto";
7
7
  import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
8
8
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
9
9
  import { asDateTimestampMs, parseStrictInteger, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
10
10
  import { isPrivateNetworkOptInEnabled } from "openclaw/plugin-sdk/ssrf-runtime";
11
- import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
11
+ import { createChannelPartialDeliveryError, isChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
12
+ import { createMessageReceiptFromOutboundResults, listMessageReceiptPlatformIds } from "openclaw/plugin-sdk/channel-outbound";
12
13
  import { resolveStoredModelOverride } from "openclaw/plugin-sdk/command-auth-native";
13
14
  import { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime";
14
15
  import { deliverTextOrMediaReply, isReasoningReplyPayload, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
@@ -661,49 +662,104 @@ function createMattermostReplyDeliveryBarrier(params) {
661
662
  resolveTimeoutPolicy
662
663
  };
663
664
  }
664
- function toMattermostChannelDeliveryResult(outcome) {
665
- return outcome === "text" || outcome === "media" ? { visibleReplySent: true } : {
665
+ /** Represents distinct provider posts without collapsing their visible boundary. */
666
+ function joinMattermostVisibleContent(contents) {
667
+ return contents.filter((content) => Boolean(content)).join("\n");
668
+ }
669
+ async function deliverMattermostReplyPayload(params) {
670
+ if (isReasoningReplyPayload(params.payload)) return {
671
+ outcome: "reasoning_skipped",
666
672
  visibleReplySent: false,
667
673
  suppression: { reason: "no_visible_result" }
668
674
  };
669
- }
670
- async function deliverMattermostReplyPayload(params) {
671
- if (isReasoningReplyPayload(params.payload)) return "reasoning_skipped";
672
675
  const reply = resolveSendableOutboundReplyParts(params.payload, { text: params.core.channel.text.convertMarkdownTables(params.payload.text ?? "", params.tableMode) });
673
676
  const mediaLocalRoots = getAgentScopedMediaLocalRoots(params.cfg, params.agentId);
674
677
  const chunkMode = params.core.channel.text.resolveChunkMode(params.cfg, "mattermost", params.accountId);
675
- return await deliverTextOrMediaReply({
676
- payload: params.payload,
677
- text: reply.text,
678
- chunkText: (value) => params.core.channel.text.chunkMarkdownTextWithMode(value, params.textLimit, chunkMode),
679
- sendText: async (chunk) => {
680
- await params.sendMessage(params.to, chunk, {
681
- cfg: params.cfg,
682
- accountId: params.accountId,
683
- replyToId: params.replyToId,
684
- ...params.onDmChannelResolution ? { onDmChannelResolution: params.onDmChannelResolution } : {}
685
- });
686
- },
687
- sendMedia: async ({ mediaUrl, caption }) => {
688
- await params.sendMessage(params.to, caption ?? "", {
689
- cfg: params.cfg,
690
- accountId: params.accountId,
691
- mediaUrl,
692
- mediaLocalRoots,
693
- replyToId: params.replyToId,
694
- ...params.onDmChannelResolution ? { onDmChannelResolution: params.onDmChannelResolution } : {}
695
- });
696
- }
678
+ const results = [];
679
+ const acceptedContents = [];
680
+ let outcome;
681
+ try {
682
+ outcome = await deliverTextOrMediaReply({
683
+ payload: params.payload,
684
+ text: reply.text,
685
+ chunkText: (value) => params.core.channel.text.chunkMarkdownTextWithMode(value, params.textLimit, chunkMode),
686
+ sendText: async (chunk) => {
687
+ const result = await params.sendMessage(params.to, chunk, {
688
+ cfg: params.cfg,
689
+ accountId: params.accountId,
690
+ replyToId: params.replyToId,
691
+ ...params.onDmChannelResolution ? { onDmChannelResolution: params.onDmChannelResolution } : {}
692
+ });
693
+ results.push(result);
694
+ acceptedContents.push(result.content);
695
+ },
696
+ sendMedia: async ({ mediaUrl, caption }) => {
697
+ const result = await params.sendMessage(params.to, caption ?? "", {
698
+ cfg: params.cfg,
699
+ accountId: params.accountId,
700
+ mediaUrl,
701
+ mediaLocalRoots,
702
+ replyToId: params.replyToId,
703
+ ...params.onDmChannelResolution ? { onDmChannelResolution: params.onDmChannelResolution } : {}
704
+ });
705
+ results.push(result);
706
+ acceptedContents.push(result.content);
707
+ }
708
+ });
709
+ } catch (error) {
710
+ const failedPartial = isChannelPartialDeliveryError(error) ? error.deliveryResult : void 0;
711
+ if (results.length === 0 && failedPartial?.visibleReplySent !== true) throw error;
712
+ const receipt = createMessageReceiptFromOutboundResults({
713
+ results: [...results.map((result) => ({ receipt: result.receipt })), ...failedPartial?.receipt ? [{ receipt: failedPartial.receipt }] : (failedPartial?.messageIds ?? []).map((messageId) => ({ messageId }))],
714
+ kind: reply.mediaUrls.length > 0 ? "media" : "text",
715
+ ...params.replyToId ? { replyToId: params.replyToId } : {}
716
+ });
717
+ throw createChannelPartialDeliveryError(error, {
718
+ messageIds: listMessageReceiptPlatformIds(receipt),
719
+ receipt,
720
+ visibleReplySent: true,
721
+ content: joinMattermostVisibleContent([...acceptedContents, failedPartial?.content])
722
+ });
723
+ }
724
+ if (outcome === "empty") return {
725
+ outcome,
726
+ visibleReplySent: false,
727
+ suppression: { reason: "no_visible_result" }
728
+ };
729
+ const receipt = createMessageReceiptFromOutboundResults({
730
+ results: results.map((result) => ({ receipt: result.receipt })),
731
+ kind: outcome,
732
+ ...params.replyToId ? { replyToId: params.replyToId } : {}
697
733
  });
734
+ return {
735
+ outcome,
736
+ messageIds: listMessageReceiptPlatformIds(receipt),
737
+ receipt,
738
+ visibleReplySent: true,
739
+ content: joinMattermostVisibleContent(acceptedContents)
740
+ };
698
741
  }
699
742
  //#endregion
700
743
  //#region extensions/mattermost/src/mattermost/target-resolution.ts
701
744
  const MATTERMOST_OPAQUE_TARGET_CACHE_MAX_ENTRIES = 1024;
745
+ const MATTERMOST_OPAQUE_TARGET_CACHE_TTL_MS = 300 * 1e3;
702
746
  const mattermostOpaqueTargetCache = /* @__PURE__ */ new Map();
703
747
  function cacheMattermostOpaqueTarget(key, kind) {
704
- mattermostOpaqueTargetCache.set(key, kind);
748
+ mattermostOpaqueTargetCache.set(key, {
749
+ kind,
750
+ expiresAt: Date.now() + MATTERMOST_OPAQUE_TARGET_CACHE_TTL_MS
751
+ });
705
752
  pruneMapToMaxSize(mattermostOpaqueTargetCache, MATTERMOST_OPAQUE_TARGET_CACHE_MAX_ENTRIES);
706
753
  }
754
+ function getCachedMattermostOpaqueTargetKind(key) {
755
+ const cached = mattermostOpaqueTargetCache.get(key);
756
+ if (!cached) return;
757
+ if (cached.expiresAt <= Date.now()) {
758
+ mattermostOpaqueTargetCache.delete(key);
759
+ return;
760
+ }
761
+ return cached.kind;
762
+ }
707
763
  function cacheKey$1(baseUrl, token, id) {
708
764
  return `${baseUrl}::${token}::${id}`;
709
765
  }
@@ -801,11 +857,11 @@ async function resolveMattermostOpaqueTarget(params) {
801
857
  const baseUrl = normalizeMattermostBaseUrl(params.baseUrl ?? account?.baseUrl);
802
858
  if (!token || !baseUrl) return null;
803
859
  const key = cacheKey$1(baseUrl, token, input);
804
- const cachedKind = mattermostOpaqueTargetCache.get(key);
860
+ const cachedKind = getCachedMattermostOpaqueTargetKind(key);
805
861
  if (cachedKind) return {
806
862
  kind: cachedKind,
807
863
  id: input,
808
- to: `${cachedKind}:${input}`
864
+ to: cachedKind === "user" ? `user:${input}` : `channel:${input}`
809
865
  };
810
866
  const client = createMattermostClient({
811
867
  baseUrl,
@@ -821,7 +877,21 @@ async function resolveMattermostOpaqueTarget(params) {
821
877
  to: `user:${input}`
822
878
  };
823
879
  } catch (err) {
824
- if (parseMattermostApiStatus(err) === 404) cacheMattermostOpaqueTarget(key, "channel");
880
+ if (parseMattermostApiStatus(err) !== 404) return {
881
+ kind: "channel",
882
+ id: input,
883
+ to: `channel:${input}`
884
+ };
885
+ }
886
+ try {
887
+ const channelKind = resolveMattermostTrustedChatKind({ channelType: (await fetchMattermostChannel(client, input)).type }) === "group" ? "group" : "channel";
888
+ cacheMattermostOpaqueTarget(key, channelKind);
889
+ return {
890
+ kind: channelKind,
891
+ id: input,
892
+ to: `channel:${input}`
893
+ };
894
+ } catch {
825
895
  return {
826
896
  kind: "channel",
827
897
  id: input,
@@ -1098,22 +1168,35 @@ async function sendMessageMattermost(to, text, opts) {
1098
1168
  fileIds,
1099
1169
  props
1100
1170
  });
1101
- recordMattermostOutboundActivity(accountId);
1102
1171
  const messageId = post.id ?? "unknown";
1103
- return {
1172
+ const receipt = createMattermostSendReceipt({
1104
1173
  messageId,
1105
1174
  channelId,
1106
- receipt: createMattermostSendReceipt({
1107
- messageId,
1108
- channelId,
1109
- kind: resolveMattermostReceiptKind({
1110
- fileIds,
1111
- buttons: opts.buttons,
1112
- props
1113
- }),
1114
- replyToId: opts.replyToId
1115
- })
1175
+ kind: resolveMattermostReceiptKind({
1176
+ fileIds,
1177
+ buttons: opts.buttons,
1178
+ props
1179
+ }),
1180
+ replyToId: opts.replyToId
1181
+ });
1182
+ const result = {
1183
+ messageId,
1184
+ channelId,
1185
+ receipt,
1186
+ content: post.message ?? message
1116
1187
  };
1188
+ try {
1189
+ await opts.onDeliveryResult?.(result);
1190
+ recordMattermostOutboundActivity(accountId);
1191
+ } catch (error) {
1192
+ throw createChannelPartialDeliveryError(error, {
1193
+ messageIds: listMessageReceiptPlatformIds(receipt),
1194
+ receipt,
1195
+ visibleReplySent: true,
1196
+ content: result.content
1197
+ });
1198
+ }
1199
+ return result;
1117
1200
  }
1118
1201
  //#endregion
1119
1202
  //#region extensions/mattermost/src/mattermost/slash-http.ts
@@ -1651,8 +1734,9 @@ async function handleSlashCommandAsync(params) {
1651
1734
  },
1652
1735
  ctxPayload,
1653
1736
  delivery: {
1737
+ observeMessageSent: true,
1654
1738
  deliver: async (payload) => {
1655
- const result = toMattermostChannelDeliveryResult(await deliverMattermostReplyPayload({
1739
+ const result = await deliverMattermostReplyPayload({
1656
1740
  core,
1657
1741
  cfg,
1658
1742
  payload,
@@ -1663,7 +1747,7 @@ async function handleSlashCommandAsync(params) {
1663
1747
  tableMode,
1664
1748
  sendMessage: sendMessageMattermost,
1665
1749
  onDmChannelResolution: deliveryBarrier.trackDmChannelResolution
1666
- }));
1750
+ });
1667
1751
  if (result.visibleReplySent) runtime.log?.(`delivered slash reply to ${to}`);
1668
1752
  return result;
1669
1753
  },
@@ -1933,4 +2017,4 @@ function registerSlashCommandRoute(api) {
1933
2017
  });
1934
2018
  }
1935
2019
  //#endregion
1936
- export { isSlashCommandsEnabled as _, sendMessageMattermost as a, resolveSlashCommandConfig as b, deliverMattermostReplyPayload as c, parseMattermostModelPickerContext as d, renderMattermostModelsPickerView as f, cleanupSlashCommands as g, DEFAULT_COMMAND_SPECS as h, registerSlashCommandRoute as i, toMattermostChannelDeliveryResult as l, resolveMattermostModelPickerCurrentModel as m, deactivateSlashCommands as n, resolveMattermostOpaqueTarget as o, renderMattermostProviderPickerView as p, getSlashCommandState as r, createMattermostReplyDeliveryBarrier as s, activateSlashCommands as t, buildMattermostAllowedModelRefs as u, registerSlashCommands as v, resolveCallbackUrl as y };
2020
+ export { isSlashCommandsEnabled as _, sendMessageMattermost as a, resolveSlashCommandConfig as b, deliverMattermostReplyPayload as c, parseMattermostModelPickerContext as d, renderMattermostModelsPickerView as f, cleanupSlashCommands as g, DEFAULT_COMMAND_SPECS as h, registerSlashCommandRoute as i, joinMattermostVisibleContent as l, resolveMattermostModelPickerCurrentModel as m, deactivateSlashCommands as n, resolveMattermostOpaqueTarget as o, renderMattermostProviderPickerView as p, getSlashCommandState as r, createMattermostReplyDeliveryBarrier as s, activateSlashCommands as t, buildMattermostAllowedModelRefs as u, registerSlashCommands as v, resolveCallbackUrl as y };
@@ -373,6 +373,9 @@
373
373
  "actions": {
374
374
  "type": "object",
375
375
  "properties": {
376
+ "messages": {
377
+ "type": "boolean"
378
+ },
376
379
  "reactions": {
377
380
  "type": "boolean"
378
381
  }
@@ -841,6 +844,9 @@
841
844
  "actions": {
842
845
  "type": "object",
843
846
  "properties": {
847
+ "messages": {
848
+ "type": "boolean"
849
+ },
844
850
  "reactions": {
845
851
  "type": "boolean"
846
852
  }
@@ -999,6 +1005,22 @@
999
1005
  "label": "Mattermost Streaming Mode",
1000
1006
  "help": "Canonical Mattermost preview mode: \"off\" | \"partial\" | \"block\" | \"progress\"."
1001
1007
  },
1008
+ "streaming.block.enabled": {
1009
+ "label": "Mattermost Block Streaming Enabled",
1010
+ "help": "Enable chunked block-style Mattermost preview delivery when channels.mattermost.streaming.mode=\"block\"."
1011
+ },
1012
+ "streaming.block.coalesce": {
1013
+ "label": "Mattermost Block Streaming Coalesce",
1014
+ "help": "Merge streamed Mattermost block replies before final delivery."
1015
+ },
1016
+ "streaming.preview.toolProgress": {
1017
+ "label": "Mattermost Draft Tool Progress",
1018
+ "help": "Show tool/progress activity in the live draft preview post (default: true). Set false to hide interim tool updates while the draft preview stays active."
1019
+ },
1020
+ "streaming.preview.commandText": {
1021
+ "label": "Mattermost Draft Command Text",
1022
+ "help": "Command/exec detail in preview tool-progress lines: \"raw\" preserves released behavior; \"status\" shows only the tool label."
1023
+ },
1002
1024
  "streaming.progress.label": {
1003
1025
  "label": "Mattermost Progress Label",
1004
1026
  "help": "Initial progress draft title. Use \"auto\" for built-in single-word labels, a custom string, or false to hide the title."
@@ -1022,22 +1044,6 @@
1022
1044
  "streaming.progress.commandText": {
1023
1045
  "label": "Mattermost Progress Command Text",
1024
1046
  "help": "Command/exec detail in progress draft lines: \"raw\" preserves released behavior; \"status\" shows only the tool label."
1025
- },
1026
- "streaming.preview.toolProgress": {
1027
- "label": "Mattermost Draft Tool Progress",
1028
- "help": "Show tool/progress activity in the live draft preview post (default: true). Set false to hide interim tool updates while the draft preview stays active."
1029
- },
1030
- "streaming.preview.commandText": {
1031
- "label": "Mattermost Draft Command Text",
1032
- "help": "Command/exec detail in preview tool-progress lines: \"raw\" preserves released behavior; \"status\" shows only the tool label."
1033
- },
1034
- "streaming.block.enabled": {
1035
- "label": "Mattermost Block Streaming Enabled",
1036
- "help": "Enable chunked block-style Mattermost preview delivery when channels.mattermost.streaming.mode=\"block\"."
1037
- },
1038
- "streaming.block.coalesce": {
1039
- "label": "Mattermost Block Streaming Coalesce",
1040
- "help": "Merge streamed Mattermost block replies before final delivery."
1041
1047
  }
1042
1048
  }
1043
1049
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/mattermost",
3
- "version": "2026.7.2-beta.5",
3
+ "version": "2026.7.2-beta.7",
4
4
  "description": "OpenClaw Mattermost channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,7 +12,7 @@
12
12
  "zod": "4.4.3"
13
13
  },
14
14
  "peerDependencies": {
15
- "openclaw": ">=2026.7.2-beta.5"
15
+ "openclaw": ">=2026.7.2-beta.7"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -87,10 +87,10 @@
87
87
  "allowInvalidConfigRecovery": true
88
88
  },
89
89
  "compat": {
90
- "pluginApi": ">=2026.7.2-beta.5"
90
+ "pluginApi": ">=2026.7.2-beta.7"
91
91
  },
92
92
  "build": {
93
- "openclawVersion": "2026.7.2-beta.5",
93
+ "openclawVersion": "2026.7.2-beta.7",
94
94
  "bundledDist": false
95
95
  },
96
96
  "release": {