@openclaw/mattermost 2026.10.10-beta.3 → 2026.10.10-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.
@@ -1,2 +1,2 @@
1
- export { t as mattermostPlugin, n as mattermostSetupPlugin } from "./channel-plugin-runtime-DQaQ8YVa.mjs";
1
+ export { t as mattermostPlugin, n as mattermostSetupPlugin } from "./channel-plugin-runtime-BHcfJ_4v.mjs";
2
2
  import "../channel-plugin-api.js";
@@ -1,6 +1,6 @@
1
- import { h as normalizeMattermostBaseUrl } from "./client-CW26CnSc.mjs";
1
+ import { h as normalizeMattermostBaseUrl } from "./client-B_4C9q6z.mjs";
2
2
  import { t as mattermostIngressIdentity } from "./ingress-identity-D6hxfxvo.mjs";
3
- import { a as resolveMattermostPresentation, c as listMattermostAccountIds, d as resolveMattermostReplyToMode, i as requiresMattermostMediaUpload, l as resolveDefaultMattermostAccountId, n as normalizeMattermostMessagingTarget, o as inspectMattermostAccount, s as isMattermostConfigured$1, t as looksLikeMattermostTargetId, u as resolveMattermostAccount } from "./normalize-ttaISanW.mjs";
3
+ import { a as resolveMattermostPresentation, c as listMattermostAccountIds, d as resolveMattermostReplyToMode, i as requiresMattermostMediaUpload, l as resolveDefaultMattermostAccountId, n as normalizeMattermostMessagingTarget, o as inspectMattermostAccount, s as isMattermostConfigured$1, t as looksLikeMattermostTargetId, u as resolveMattermostAccount } from "./normalize-Dli2PK7k.mjs";
4
4
  import { t as resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass-Lf99Gilr.mjs";
5
5
  import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-CjgZkyPm.mjs";
6
6
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-qg3NXRlS.mjs";
@@ -630,7 +630,7 @@ function resolveMattermostOutboundSessionRoute(params) {
630
630
  }
631
631
  //#endregion
632
632
  //#region extensions/mattermost/src/channel.ts
633
- const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-Bl2oL5mO.mjs"));
633
+ const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-C0yG8kgq.mjs"));
634
634
  const MATTERMOST_PRESENTATION_CAPABILITIES = {
635
635
  supported: true,
636
636
  buttons: true,
@@ -1102,7 +1102,7 @@ const mattermostPlugin = createChatChannelPlugin({
1102
1102
  botTokenSource: account.botTokenSource
1103
1103
  });
1104
1104
  ctx.log?.info(`[${account.accountId}] starting channel`);
1105
- return (await import("./monitor-pdTb1bbs.mjs")).monitorMattermostProvider({
1105
+ return (await import("./monitor-DYEU-u6s.mjs")).monitorMattermostProvider({
1106
1106
  botToken: account.botToken ?? void 0,
1107
1107
  baseUrl: account.baseUrl ?? void 0,
1108
1108
  accountId: account.accountId,
@@ -1,7 +1,7 @@
1
- import { _ as readMattermostError, h as normalizeMattermostBaseUrl, l as fetchMattermostChannelPosts, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostMe } from "./client-CW26CnSc.mjs";
2
- import { o as resolveMattermostTrustedChatKind } from "./monitor-auth-C5XBx6E0.mjs";
3
- import { c as listMattermostAccountIds, n as normalizeMattermostMessagingTarget, o as inspectMattermostAccount, u as resolveMattermostAccount } from "./normalize-ttaISanW.mjs";
4
- import { n as resolveMattermostOpaqueTarget, t as sendMessageMattermost } from "./send-BLBZqBzq.mjs";
1
+ import { _ as readMattermostError, h as normalizeMattermostBaseUrl, l as fetchMattermostChannelPosts, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostMe } from "./client-B_4C9q6z.mjs";
2
+ import { s as resolveMattermostTrustedChatKind } from "./monitor-auth-DYWeWEJ4.mjs";
3
+ import { c as listMattermostAccountIds, n as normalizeMattermostMessagingTarget, o as inspectMattermostAccount, u as resolveMattermostAccount } from "./normalize-Dli2PK7k.mjs";
4
+ import { n as resolveMattermostOpaqueTarget, t as sendMessageMattermost } from "./send-1f6TWzMJ.mjs";
5
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import { runChannelProbe } from "openclaw/plugin-sdk/text-utility-runtime";
7
7
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -216,6 +216,7 @@ async function fetchMattermostChannelPosts(client, channelId, options = {}) {
216
216
  const query = new URLSearchParams({ per_page: String(perPage) });
217
217
  if (before) query.set("before", before);
218
218
  if (after) query.set("after", after);
219
+ if (options.skipFetchThreads) query.set("skipFetchThreads", "true");
219
220
  const response = await client.request(`/channels/${encodeURIComponent(channelId)}/posts?${query.toString()}`);
220
221
  const parsed = MattermostPostListSchema.safeParse(response);
221
222
  if (!parsed.success || parsed.data.order.some((postId) => !parsed.data.posts[postId])) throw new Error("Unexpected Mattermost channel posts response.");
@@ -1,8 +1,8 @@
1
1
  import { n as __reExport, t as __exportAll } from "./rolldown-runtime-BBjsoOtd.mjs";
2
2
  import { t as getMattermostRuntime } from "./runtime-CNB4YGqJ.mjs";
3
3
  import { r as resolveCallbackHost } from "./callback-host-Bu2cmtfI.mjs";
4
- import { y as updateMattermostPost } from "./client-CW26CnSc.mjs";
5
- import { D as sendHttpRequestRejection, T as resolveClientIp, g as isTrustedProxyAddress, h as isRequestBodyLimitError, x as readRequestBodyWithLimit } from "./monitor-auth-C5XBx6E0.mjs";
4
+ import { y as updateMattermostPost } from "./client-B_4C9q6z.mjs";
5
+ import { E as resolveClientIp, O as sendHttpRequestRejection, S as readRequestBodyWithLimit, _ as isTrustedProxyAddress, g as isRequestBodyLimitError } from "./monitor-auth-DYWeWEJ4.mjs";
6
6
  import { createHmac } from "node:crypto";
7
7
  import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
8
8
  import { normalizeOptionalString, normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,11 +1,11 @@
1
- import { a as resolveInteractionCallbackPath, c as setInteractionSecret, i as createMattermostInteractionHandler, l as gateway_config_runtime_exports, n as buildButtonProps, r as computeInteractionCallbackUrl, s as setInteractionCallbackUrl } from "./interactions-D2MJ2Tnp.mjs";
1
+ import { a as resolveInteractionCallbackPath, c as setInteractionSecret, i as createMattermostInteractionHandler, l as gateway_config_runtime_exports, n as buildButtonProps, r as computeInteractionCallbackUrl, s as setInteractionCallbackUrl } from "./interactions-CQcJYGsz.mjs";
2
2
  import { n as getOptionalMattermostRuntime, t as getMattermostRuntime } from "./runtime-CNB4YGqJ.mjs";
3
- import { a as createMattermostPost, d as fetchMattermostUser, h as normalizeMattermostBaseUrl, m as isRetryableError, n as buildMattermostApiUrl, o as deleteMattermostPost, p as fetchMattermostUserTeams, r as createMattermostClient, s as fetchMattermostChannel, t as MattermostPostSchema, u as fetchMattermostMe, v as sendMattermostTyping, y as updateMattermostPost } from "./client-CW26CnSc.mjs";
4
- import { C as resolveAllowlistProviderRuntimeGroupPolicy, E as resolveDefaultGroupPolicy, O as warnMissingProviderGroupPolicyFallbackOnce, S as registerPluginHttpRoute, a as resolveMattermostMonitorInboundAccess, b as prepareSkillCommandsForAgents, c as DEFAULT_GROUP_HISTORY_LIMIT, d as createChannelMessageReplyPipeline, f as createChannelPairingController, l as buildPreparedModelsProviderData, m as isDangerousNameMatchingEnabled, n as formatMattermostDirectMessageDropLog, o as resolveMattermostTrustedChatKind, s as shouldRetainMattermostSenderHistory, t as authorizeMattermostCommandInvocation, u as createChannelHistoryWindow, v as logInboundDrop, w as resolveChannelMediaMaxBytes, y as logTypingFailure } from "./monitor-auth-C5XBx6E0.mjs";
3
+ import { a as createMattermostPost, d as fetchMattermostUser, h as normalizeMattermostBaseUrl, l as fetchMattermostChannelPosts, m as isRetryableError, n as buildMattermostApiUrl, o as deleteMattermostPost, p as fetchMattermostUserTeams, r as createMattermostClient, s as fetchMattermostChannel, t as MattermostPostSchema, u as fetchMattermostMe, v as sendMattermostTyping, y as updateMattermostPost } from "./client-B_4C9q6z.mjs";
4
+ import { C as registerPluginHttpRoute, D as resolveDefaultGroupPolicy, T as resolveChannelMediaMaxBytes, b as logTypingFailure, c as shouldRetainMattermostSenderHistory, d as createChannelHistoryWindow, f as createChannelMessageReplyPipeline, h as isDangerousNameMatchingEnabled, k as warnMissingProviderGroupPolicyFallbackOnce, l as DEFAULT_GROUP_HISTORY_LIMIT, n as authorizeMattermostCommandInvocation, o as resolveMattermostMonitorInboundAccess, p as createChannelPairingController, r as formatMattermostDirectMessageDropLog, s as resolveMattermostTrustedChatKind, t as MATTERMOST_PAIRING_QUEUE_FULL_TEXT, u as buildPreparedModelsProviderData, w as resolveAllowlistProviderRuntimeGroupPolicy, x as prepareSkillCommandsForAgents, y as logInboundDrop } from "./monitor-auth-DYWeWEJ4.mjs";
5
5
  import { n as normalizeMattermostAllowEntry } from "./ingress-identity-D6hxfxvo.mjs";
6
- import { d as resolveMattermostReplyToMode, r as parseMattermostQuestionContext, u as resolveMattermostAccount } from "./normalize-ttaISanW.mjs";
7
- import { _ as resolveSlashCommandConfig, a as deliverMattermostReplyPayload, c as parseMattermostModelPickerContext, d as resolveMattermostModelPickerCurrentModel, f as DEFAULT_COMMAND_SPECS, g as resolveCallbackUrl, h as registerSlashCommands, l as renderMattermostModelsPickerView, m as isSlashCommandsEnabled, n as deactivateSlashCommands, o as joinMattermostVisibleContent, p as cleanupSlashCommands, r as getSlashCommandState, s as buildMattermostAllowedModelRefs, t as activateSlashCommands, u as renderMattermostProviderPickerView } from "./slash-state-D55i54L4.mjs";
8
- import { t as sendMessageMattermost } from "./send-BLBZqBzq.mjs";
6
+ import { d as resolveMattermostReplyToMode, r as parseMattermostQuestionContext, u as resolveMattermostAccount } from "./normalize-Dli2PK7k.mjs";
7
+ import { _ as resolveSlashCommandConfig, a as deliverMattermostReplyPayload, c as parseMattermostModelPickerContext, d as resolveMattermostModelPickerCurrentModel, f as DEFAULT_COMMAND_SPECS, g as resolveCallbackUrl, h as registerSlashCommands, l as renderMattermostModelsPickerView, m as isSlashCommandsEnabled, n as deactivateSlashCommands, o as joinMattermostVisibleContent, p as cleanupSlashCommands, r as getSlashCommandState, s as buildMattermostAllowedModelRefs, t as activateSlashCommands, u as renderMattermostProviderPickerView } from "./slash-state-CDj8M2pP.mjs";
8
+ import { t as sendMessageMattermost } from "./send-1f6TWzMJ.mjs";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { resolvePinnedMainDmOwnerFromAllowlist, sanitizeUntrustedFileName } from "openclaw/plugin-sdk/security-runtime";
11
11
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries, normalizeTrimmedStringList, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -855,11 +855,11 @@ function createMattermostModelPickerInteractionHandler(monitor) {
855
855
  id: params.payload.user_id,
856
856
  meta: { name: params.userName }
857
857
  });
858
- return { ephemeral_text: core.channel.pairing.buildPairingReply({
858
+ return { ephemeral_text: code ? core.channel.pairing.buildPairingReply({
859
859
  channel: "mattermost",
860
860
  idLine: `Your Mattermost user id: ${params.payload.user_id}`,
861
861
  code
862
- }) };
862
+ }) : MATTERMOST_PAIRING_QUEUE_FULL_TEXT };
863
863
  }
864
864
  return { ephemeral_text: auth.denyReason === "unknown-channel" ? "Temporary error: unable to determine channel type. Please try again." : auth.denyReason === "dm-disabled" ? "This bot is not accepting direct messages." : auth.denyReason === "channels-disabled" ? "Model picker actions are disabled in channels." : auth.denyReason === "channel-no-allowlist" ? "Model picker actions are not configured for this channel." : "Unauthorized." };
865
865
  }
@@ -1434,6 +1434,7 @@ function createMattermostDraftStream(params) {
1434
1434
  };
1435
1435
  const { loop, update: updateLifecycle, stop: stopLifecycle, stopForClear, clearWithStop, seal: sealLifecycle } = createFinalizableDraftLifecycle({
1436
1436
  throttleMs,
1437
+ coalesceInFlight: true,
1437
1438
  state: streamState,
1438
1439
  sendOrEditStreamMessage,
1439
1440
  readMessageId: () => currentGeneration.postId,
@@ -1614,6 +1615,14 @@ function createMattermostDraftStream(params) {
1614
1615
  publishedParts
1615
1616
  };
1616
1617
  };
1618
+ const findPostAfter = async (postId) => {
1619
+ const { messages } = await fetchMattermostChannelPosts(params.client, params.channelId, {
1620
+ after: postId,
1621
+ limit: 200,
1622
+ skipFetchThreads: true
1623
+ });
1624
+ return messages.find((post) => !post.type?.startsWith("system_") && (!params.rootId || post.root_id === params.rootId))?.id;
1625
+ };
1617
1626
  params.log?.(`mattermost stream preview ready (maxChars=${maxChars}, throttleMs=${throttleMs})`);
1618
1627
  return {
1619
1628
  update,
@@ -1627,7 +1636,8 @@ function createMattermostDraftStream(params) {
1627
1636
  stop: settleOperation(stopLifecycle),
1628
1637
  forceNewMessage,
1629
1638
  settleBoundaries,
1630
- resolveFinalText
1639
+ resolveFinalText,
1640
+ findPostAfter
1631
1641
  };
1632
1642
  }
1633
1643
  //#endregion
@@ -1683,6 +1693,13 @@ async function deliverMattermostReplyWithDraftPreview(params) {
1683
1693
  return { message: previewFinalText };
1684
1694
  },
1685
1695
  editFinal: async (previewPostId, edit) => {
1696
+ const newerPostId = await params.findPostAfterPreview?.(previewPostId).catch((err) => {
1697
+ params.logVerboseMessage(`mattermost preview order check failed; finalizing in place (${String(err)})`);
1698
+ });
1699
+ if (newerPostId) {
1700
+ params.logVerboseMessage(`mattermost preview ${previewPostId} is above newer post ${newerPostId}; sending the final as a new post`);
1701
+ return { visibleReplySent: false };
1702
+ }
1686
1703
  const post = await updateMattermostPost(params.client, previewPostId, edit);
1687
1704
  const receipt = createPreviewMessageReceipt({ id: post.id ?? previewPostId });
1688
1705
  return {
@@ -1933,6 +1950,7 @@ async function dispatchMattermostInboundTurn(monitor, params) {
1933
1950
  resolvePreviewFinalText,
1934
1951
  logVerboseMessage: monitor.logVerboseMessage,
1935
1952
  recordThreadParticipation: markThreadParticipation,
1953
+ findPostAfterPreview: draftStream?.findPostAfter,
1936
1954
  deliverPayload: async (payloadToDeliver) => {
1937
1955
  const finalTextResolution = info.kind === "final" && !payloadToDeliver.isError && typeof payloadToDeliver.text === "string" ? draftStream?.resolveFinalText(payloadToDeliver.text) : void 0;
1938
1956
  const resolvedPayload = finalTextResolution ? {
@@ -19,6 +19,7 @@ import { createWebhookInFlightLimiter, readRequestBodyWithLimit, sendHttpRequest
19
19
  import { isTrustedProxyAddress, resolveClientIp } from "openclaw/plugin-sdk/core";
20
20
  import { resolveChannelContextVisibilityMode, shouldIncludeSupplementalContext } from "openclaw/plugin-sdk/context-visibility-runtime";
21
21
  //#region extensions/mattermost/src/mattermost/monitor-auth.ts
22
+ const MATTERMOST_PAIRING_QUEUE_FULL_TEXT = "DM pairing is full, so no pairing request was saved. Ask the bot owner to approve or dismiss pending requests in Settings → Channels → DM access requests, then try again.";
22
23
  function normalizeMattermostAllowList(entries) {
23
24
  const normalized = entries.map((entry) => normalizeMattermostAllowEntry(String(entry))).filter(Boolean);
24
25
  return uniqueStrings(normalized);
@@ -170,4 +171,4 @@ async function authorizeMattermostCommandInvocation(params) {
170
171
  };
171
172
  }
172
173
  //#endregion
173
- export { resolveAllowlistProviderRuntimeGroupPolicy$1 as C, sendHttpRequestRejection as D, resolveDefaultGroupPolicy as E, warnMissingProviderGroupPolicyFallbackOnce as O, registerPluginHttpRoute as S, resolveClientIp as T, loadOutboundMediaFromUrl as _, resolveMattermostMonitorInboundAccess as a, prepareSkillCommandsForAgents as b, DEFAULT_GROUP_HISTORY_LIMIT as c, createChannelMessageReplyPipeline as d, createChannelPairingController as f, isTrustedProxyAddress as g, isRequestBodyLimitError as h, normalizeMattermostAllowList as i, buildPreparedModelsProviderData as l, isDangerousNameMatchingEnabled as m, formatMattermostDirectMessageDropLog as n, resolveMattermostTrustedChatKind as o, createWebhookInFlightLimiter as p, isMattermostSenderAllowed as r, shouldRetainMattermostSenderHistory as s, authorizeMattermostCommandInvocation as t, createChannelHistoryWindow as u, logInboundDrop as v, resolveChannelMediaMaxBytes$1 as w, readRequestBodyWithLimit as x, logTypingFailure as y };
174
+ export { registerPluginHttpRoute as C, resolveDefaultGroupPolicy as D, resolveClientIp as E, sendHttpRequestRejection as O, readRequestBodyWithLimit as S, resolveChannelMediaMaxBytes$1 as T, isTrustedProxyAddress as _, normalizeMattermostAllowList as a, logTypingFailure as b, shouldRetainMattermostSenderHistory as c, createChannelHistoryWindow as d, createChannelMessageReplyPipeline as f, isRequestBodyLimitError as g, isDangerousNameMatchingEnabled as h, isMattermostSenderAllowed as i, warnMissingProviderGroupPolicyFallbackOnce as k, DEFAULT_GROUP_HISTORY_LIMIT as l, createWebhookInFlightLimiter as m, authorizeMattermostCommandInvocation as n, resolveMattermostMonitorInboundAccess as o, createChannelPairingController as p, formatMattermostDirectMessageDropLog as r, resolveMattermostTrustedChatKind as s, MATTERMOST_PAIRING_QUEUE_FULL_TEXT as t, buildPreparedModelsProviderData as u, loadOutboundMediaFromUrl as v, resolveAllowlistProviderRuntimeGroupPolicy$1 as w, prepareSkillCommandsForAgents as x, logInboundDrop as y };
@@ -1,4 +1,4 @@
1
- import { h as normalizeMattermostBaseUrl } from "./client-CW26CnSc.mjs";
1
+ import { h as normalizeMattermostBaseUrl } from "./client-B_4C9q6z.mjs";
2
2
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
3
  import { resolveChannelPreviewStreamMode, resolveChannelStreamingBlockCoalesce, resolveChannelStreamingBlockEnabled, resolveChannelStreamingChunkMode } from "openclaw/plugin-sdk/channel-outbound";
4
4
  import { createAccountListHelpers, hasConfiguredAccountValue } from "openclaw/plugin-sdk/account-helpers";
@@ -1,8 +1,8 @@
1
- import { c as setInteractionSecret, n as buildButtonProps, o as resolveInteractionCallbackUrl } from "./interactions-D2MJ2Tnp.mjs";
1
+ import { c as setInteractionSecret, n as buildButtonProps, o as resolveInteractionCallbackUrl } from "./interactions-CQcJYGsz.mjs";
2
2
  import { n as getOptionalMattermostRuntime, t as getMattermostRuntime } from "./runtime-CNB4YGqJ.mjs";
3
- import { a as createMattermostPost, b as uploadMattermostFile, c as fetchMattermostChannelByName, d as fetchMattermostUser, f as fetchMattermostUserByUsername, g as parseMattermostApiStatus, h as normalizeMattermostBaseUrl, i as createMattermostDirectChannelWithRetry, p as fetchMattermostUserTeams, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostMe } from "./client-CW26CnSc.mjs";
4
- import { _ as loadOutboundMediaFromUrl, o as resolveMattermostTrustedChatKind } from "./monitor-auth-C5XBx6E0.mjs";
5
- import { u as resolveMattermostAccount } from "./normalize-ttaISanW.mjs";
3
+ import { a as createMattermostPost, b as uploadMattermostFile, c as fetchMattermostChannelByName, d as fetchMattermostUser, f as fetchMattermostUserByUsername, g as parseMattermostApiStatus, h as normalizeMattermostBaseUrl, i as createMattermostDirectChannelWithRetry, p as fetchMattermostUserTeams, r as createMattermostClient, s as fetchMattermostChannel, u as fetchMattermostMe } from "./client-B_4C9q6z.mjs";
4
+ import { s as resolveMattermostTrustedChatKind, v as loadOutboundMediaFromUrl } from "./monitor-auth-DYWeWEJ4.mjs";
5
+ import { u as resolveMattermostAccount } from "./normalize-Dli2PK7k.mjs";
6
6
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
8
8
  import { createMessageReceiptFromOutboundResults, listMessageReceiptPlatformIds } from "openclaw/plugin-sdk/channel-outbound";
@@ -1,9 +1,9 @@
1
1
  import { t as getMattermostRuntime } from "./runtime-CNB4YGqJ.mjs";
2
2
  import { n as normalizeCallbackPath, r as resolveCallbackHost, t as collectMattermostCallbackPaths } from "./callback-host-Bu2cmtfI.mjs";
3
- import { r as createMattermostClient, s as fetchMattermostChannel, v as sendMattermostTyping } from "./client-CW26CnSc.mjs";
4
- import { D as sendHttpRequestRejection, h as isRequestBodyLimitError, i as normalizeMattermostAllowList, l as buildPreparedModelsProviderData, p as createWebhookInFlightLimiter, t as authorizeMattermostCommandInvocation, x as readRequestBodyWithLimit, y as logTypingFailure } from "./monitor-auth-C5XBx6E0.mjs";
5
- import { a as resolveMattermostPresentation, i as requiresMattermostMediaUpload } from "./normalize-ttaISanW.mjs";
6
- import { t as sendMessageMattermost } from "./send-BLBZqBzq.mjs";
3
+ import { r as createMattermostClient, s as fetchMattermostChannel, v as sendMattermostTyping } from "./client-B_4C9q6z.mjs";
4
+ import { O as sendHttpRequestRejection, S as readRequestBodyWithLimit, a as normalizeMattermostAllowList, b as logTypingFailure, g as isRequestBodyLimitError, m as createWebhookInFlightLimiter, n as authorizeMattermostCommandInvocation, t as MATTERMOST_PAIRING_QUEUE_FULL_TEXT, u as buildPreparedModelsProviderData } from "./monitor-auth-DYWeWEJ4.mjs";
5
+ import { a as resolveMattermostPresentation, i as requiresMattermostMediaUpload } from "./normalize-Dli2PK7k.mjs";
6
+ import { t as sendMessageMattermost } from "./send-1f6TWzMJ.mjs";
7
7
  import { createHash } from "node:crypto";
8
8
  import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
9
9
  import { asFiniteNumber, normalizeOptionalString, normalizeStringifiedOptionalString, readStringField } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -857,11 +857,11 @@ async function authorizeSlashInvocation(params) {
857
857
  });
858
858
  return {
859
859
  ok: false,
860
- denyText: core.channel.pairing.buildPairingReply({
860
+ denyText: code ? core.channel.pairing.buildPairingReply({
861
861
  channel: "mattermost",
862
862
  idLine: `Your Mattermost user id: ${senderId}`,
863
863
  code
864
- })
864
+ }) : MATTERMOST_PAIRING_QUEUE_FULL_TEXT
865
865
  };
866
866
  }
867
867
  return {
@@ -0,0 +1 @@
1
+ {"version":3,"entries":[{"output":"api.js","source":"extensions/mattermost/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/mattermost/channel-plugin-api.ts"},{"output":"channel-plugin-runtime.js","source":"extensions/mattermost/channel-plugin-runtime.ts"},{"output":"doctor-contract-api.js","source":"extensions/mattermost/doctor-contract-api.ts"},{"output":"gateway-auth-api.js","source":"extensions/mattermost/gateway-auth-api.ts"},{"output":"index.js","source":"extensions/mattermost/index.ts"},{"output":"policy-api.js","source":"extensions/mattermost/policy-api.ts"},{"output":"runtime-api.js","source":"extensions/mattermost/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/mattermost/secret-contract-api.ts"},{"output":"setup-entry.js","source":"extensions/mattermost/setup-entry.ts"},{"output":"slash-route-api.js","source":"extensions/mattermost/slash-route-api.ts"}],"chunks":[{"output":".setup/callback-host-Bu2cmtfI.mjs","sha256":"480b3975b9d118aaf901a603634cc4ea15c7942fbc74d3ba4da538651b590da8","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/callback-host.ts"]},{"output":".setup/channel-plugin-api-Di7yxxmg.mjs","sha256":"61a5867ac3427a900a334420879c6dc1c0ddc8cd43e1e1bfe9aa0c37feb0c046","facadeSource":"extensions/mattermost/channel-plugin-api.ts","sources":[]},{"output":".setup/channel-plugin-runtime-BHcfJ_4v.mjs","sha256":"081d0fdd05c702bb0d050b653755afd2303114fba53c7ca5d54db0f3c4f4c69d","facadeSource":null,"sources":["extensions/mattermost/src/approval-auth.ts","extensions/mattermost/src/channel-config-shared.ts","extensions/mattermost/src/channel-send-result.ts","extensions/mattermost/src/channel.setup.ts","extensions/mattermost/src/channel.ts","extensions/mattermost/src/config-schema-core.ts","extensions/mattermost/src/config-surface.ts","extensions/mattermost/src/config-ui-hints.ts","extensions/mattermost/src/doctor.ts","extensions/mattermost/src/group-mentions.ts","extensions/mattermost/src/mattermost/emoji.ts","extensions/mattermost/src/session-route.ts","extensions/mattermost/src/setup-core.ts","extensions/mattermost/src/setup-surface.ts"]},{"output":".setup/channel.runtime-C0yG8kgq.mjs","sha256":"5b3cfbe9ea284b3933b5a7e6d8013a7828932a7f9d0e8e6da7c97c1d19ca2fbd","facadeSource":"extensions/mattermost/src/channel.runtime.ts","sources":["extensions/mattermost/src/mattermost/directory.ts","extensions/mattermost/src/mattermost/probe.ts","extensions/mattermost/src/mattermost/reactions.ts","extensions/mattermost/src/mattermost/read.ts"]},{"output":".setup/client-B_4C9q6z.mjs","sha256":"a3e41409d632dcb5ca825f8d7d8394be486808e8ad74551137693579853116b5","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/client.ts"]},{"output":".setup/doctor-contract-CjgZkyPm.mjs","sha256":"b969455b8d6275d1ed729048b27bc2d3ae0d482b88185b331de77422b4511b6c","facadeSource":null,"sources":["extensions/mattermost/src/doctor-contract.ts","packages/normalization-core/src/record-coerce.ts","src/config/channel-config-normalization.ts","src/plugin-sdk/legacy-webhook-listener-migration.ts"]},{"output":".setup/gateway-auth-bypass-Lf99Gilr.mjs","sha256":"fa802760c8963a31e75304e03cb72de409e0e952c79003eca6c48e2017933a52","facadeSource":null,"sources":["extensions/mattermost/src/gateway-auth-bypass.ts"]},{"output":".setup/ingress-identity-D6hxfxvo.mjs","sha256":"5358f020e218577a8317d7e705612b43b547b3043514b9ad2ef658f32aac3e61","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/ingress-identity.ts"]},{"output":".setup/interactions-CQcJYGsz.mjs","sha256":"d109ac574de4689c574c4bd4e5a4400f8baa650f46852d6fbe59482201ab75d2","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/interactions.ts","packages/normalization-core/src/string-coerce.ts","src/gateway/gateway-http-route-contracts.ts","src/gateway/security-path.ts","src/gateway/server/plugins-http/path-context.ts","src/plugins/http-path-prefix.ts"]},{"output":".setup/monitor-auth-DYWeWEJ4.mjs","sha256":"3b11442e52b2efaa2f7e2307271bb224fc79b3aca150ae6e54a8eae4c209794d","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/monitor-auth.ts"]},{"output":".setup/monitor-DYEU-u6s.mjs","sha256":"365e83b02d789a916938d398895c3d5696aa4efa0419198237bae716b8355764","facadeSource":"extensions/mattermost/src/mattermost/monitor.ts","sources":["extensions/mattermost/src/mattermost/draft-stream.ts","extensions/mattermost/src/mattermost/monitor-activation.ts","extensions/mattermost/src/mattermost/monitor-context.ts","extensions/mattermost/src/mattermost/monitor-draft-delivery.ts","extensions/mattermost/src/mattermost/monitor-event-plan.ts","extensions/mattermost/src/mattermost/monitor-helpers.ts","extensions/mattermost/src/mattermost/monitor-ingress.ts","extensions/mattermost/src/mattermost/monitor-interaction-dispatch.ts","extensions/mattermost/src/mattermost/monitor-interactions.ts","extensions/mattermost/src/mattermost/monitor-model-picker.ts","extensions/mattermost/src/mattermost/monitor-onchar.ts","extensions/mattermost/src/mattermost/monitor-posts.ts","extensions/mattermost/src/mattermost/monitor-reactions.ts","extensions/mattermost/src/mattermost/monitor-resources.ts","extensions/mattermost/src/mattermost/monitor-slash.ts","extensions/mattermost/src/mattermost/monitor-thread-backfill.ts","extensions/mattermost/src/mattermost/monitor-turn.ts","extensions/mattermost/src/mattermost/monitor-websocket.ts","extensions/mattermost/src/mattermost/monitor.ts","extensions/mattermost/src/mattermost/reconnect.ts","extensions/mattermost/src/mattermost/thread-participation.ts","src/channels/mention-gating.ts"]},{"output":".setup/normalize-Dli2PK7k.mjs","sha256":"0e52cea87ddc12600ef4c04f0fbc1a5c07a99e9efe2f2080afdfe3730c446b80","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/accounts.ts","extensions/mattermost/src/normalize.ts"]},{"output":".setup/rolldown-runtime-BBjsoOtd.mjs","sha256":"bc1c4c6b4073846c33e02846e4b262d6747c77fc72ca9f9cc2f23b8ff135c35d","facadeSource":null,"sources":[]},{"output":".setup/runtime-CNB4YGqJ.mjs","sha256":"95ac1a4fe0f15f608e06c46da563c1c83f73a3e1a817822b362a4fe5f0bca450","facadeSource":null,"sources":["extensions/mattermost/src/runtime.ts"]},{"output":".setup/secret-contract-api-ChqAE2v-.mjs","sha256":"2ce90d36b067c45d751c0c0301fb9ab4cf7ab7892f95167099cf3d0190f5eddf","facadeSource":"extensions/mattermost/secret-contract-api.ts","sources":[]},{"output":".setup/secret-contract-qg3NXRlS.mjs","sha256":"845bf52e3b17f16c1ea44351b15aca1e3a3dcbc874a544b9a694b8f7df581596","facadeSource":null,"sources":["extensions/mattermost/src/secret-contract.ts"]},{"output":".setup/send-1f6TWzMJ.mjs","sha256":"7a883f12863135ccb3269837bfb31720dc99d95f0ea3dc48a24b9bad1bb0c970","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/send.ts","extensions/mattermost/src/mattermost/target-resolution.ts"]},{"output":".setup/slash-state-CDj8M2pP.mjs","sha256":"7664754b906889845ae8bb766bf6ff778bcdeb622f5e71f93fd95029ee812bc1","facadeSource":null,"sources":["extensions/mattermost/src/mattermost/model-picker.ts","extensions/mattermost/src/mattermost/reply-delivery.ts","extensions/mattermost/src/mattermost/slash-commands.ts","extensions/mattermost/src/mattermost/slash-http.ts","extensions/mattermost/src/mattermost/slash-model-picker.ts","extensions/mattermost/src/mattermost/slash-state.ts"]},{"output":"api.js","sha256":"105d7a79650af12dbf1a90ea7ab5cfc1bd9859151ab68432a385e0086d4a90c5","facadeSource":"extensions/mattermost/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"f8a0bae3272892169b4545e08d3c0b06f476d6b0482a24e853eb55f6c422aed7","facadeSource":"extensions/mattermost/channel-plugin-api.ts","sources":[]},{"output":"channel-plugin-runtime.js","sha256":"f5d05a7737d9592061d748a0542be021a0443d2addd69269441c23f97cd7eca9","facadeSource":"extensions/mattermost/channel-plugin-runtime.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"c1c5ed7744c3f8c4e764870e069e497f01c0da93dceb0bd80be8f47504711642","facadeSource":"extensions/mattermost/doctor-contract-api.ts","sources":[]},{"output":"gateway-auth-api.js","sha256":"15f40c4aaed845b61ff953746e3fe3e9ce7a2b425c5a2da56b059d29f14a1ff8","facadeSource":"extensions/mattermost/gateway-auth-api.ts","sources":[]},{"output":"index.js","sha256":"9b47e2ef2494dcc360f2643576423f2ec7b4f6dfad7b34b4ad97c3caee1b3377","facadeSource":"extensions/mattermost/index.ts","sources":["extensions/mattermost/index.ts"]},{"output":"policy-api.js","sha256":"5ccca4684209b95a1574e3a54e349a8a02455d368b7ae3af1660773e85d51e6f","facadeSource":"extensions/mattermost/policy-api.ts","sources":[]},{"output":"runtime-api.js","sha256":"9e3ffa1ca2be4f6d9fcd1b9200443ff8623d8574ebf2caabd4ab2de8db3ecf55","facadeSource":"extensions/mattermost/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"372b0e5675121f54d26a417f4ef8626066ffb07584121f90c324e50b30facbe8","facadeSource":"extensions/mattermost/secret-contract-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"c9551f641f26711e91d47640dc2439b0903ee1e9945a9c7248fd9f492b9e4990","facadeSource":"extensions/mattermost/setup-entry.ts","sources":["extensions/mattermost/setup-entry.ts"]},{"output":"slash-route-api.js","sha256":"6e2a6f49e1eb2deac1212e576b54f03c70032886c9a58126824f5c5548dc1718","facadeSource":"extensions/mattermost/slash-route-api.ts","sources":[]}],"unrenderedSources":["extensions/mattermost/api.ts","extensions/mattermost/channel-plugin-api.ts","extensions/mattermost/channel-plugin-runtime.ts","extensions/mattermost/config-doctor-api.ts","extensions/mattermost/doctor-contract-api.ts","extensions/mattermost/gateway-auth-api.ts","extensions/mattermost/policy-api.ts","extensions/mattermost/runtime-api.ts","extensions/mattermost/secret-contract-api.ts","extensions/mattermost/slash-route-api.ts","extensions/mattermost/src/channel.runtime.ts","extensions/mattermost/src/mattermost/runtime-api.ts"]}
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as buildButtonAttachments } from "./.setup/interactions-D2MJ2Tnp.mjs";
2
- import { r as isMattermostSenderAllowed } from "./.setup/monitor-auth-C5XBx6E0.mjs";
1
+ import { t as buildButtonAttachments } from "./.setup/interactions-CQcJYGsz.mjs";
2
+ import { i as isMattermostSenderAllowed } from "./.setup/monitor-auth-DYWeWEJ4.mjs";
3
3
  export { buildButtonAttachments, isMattermostSenderAllowed };
@@ -1 +1 @@
1
- export { t as mattermostPlugin, n as mattermostSetupPlugin } from "./.setup/channel-plugin-runtime-DQaQ8YVa.mjs";
1
+ export { t as mattermostPlugin, n as mattermostSetupPlugin } from "./.setup/channel-plugin-runtime-BHcfJ_4v.mjs";
@@ -1 +1 @@
1
- export { t as mattermostPlugin } from "./.setup/channel-plugin-runtime-DQaQ8YVa.mjs";
1
+ export { t as mattermostPlugin } from "./.setup/channel-plugin-runtime-BHcfJ_4v.mjs";
@@ -1 +1 @@
1
- export { r as isMattermostSenderAllowed } from "./.setup/monitor-auth-C5XBx6E0.mjs";
1
+ export { i as isMattermostSenderAllowed } from "./.setup/monitor-auth-DYWeWEJ4.mjs";
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/channel-plugin-api-wZzJEr0h.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/channel-plugin-api-Di7yxxmg.mjs", import.meta.url).href),
8
8
  exportName: "mattermostSetupPlugin"
9
9
  },
10
10
  secrets: {
@@ -1 +1 @@
1
- export { i as registerSlashCommandRoute } from "./.setup/slash-state-D55i54L4.mjs";
1
+ export { i as registerSlashCommandRoute } from "./.setup/slash-state-CDj8M2pP.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/mattermost",
3
- "version": "2026.10.10-beta.3",
3
+ "version": "2026.10.10-beta.5",
4
4
  "description": "OpenClaw Mattermost channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "zod": "4.6.5"
12
12
  },
13
13
  "peerDependencies": {
14
- "openclaw": ">=2026.10.10-beta.3"
14
+ "openclaw": ">=2026.10.10-beta.5"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "openclaw": {
@@ -93,10 +93,10 @@
93
93
  "allowInvalidConfigRecovery": true
94
94
  },
95
95
  "compat": {
96
- "pluginApi": ">=2026.10.10-beta.3"
96
+ "pluginApi": ">=2026.10.10-beta.5"
97
97
  },
98
98
  "build": {
99
- "openclawVersion": "2026.10.10-beta.3",
99
+ "openclawVersion": "2026.10.10-beta.5",
100
100
  "bundledDist": false
101
101
  },
102
102
  "release": {