@openclaw/mattermost 2026.9.3 → 2026.9.4

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,5 +1,5 @@
1
1
  import { o as isMattermostConfigured } from "./normalize-R-ATEEHC.js";
2
- import { a as describeMattermostAccount, i as MattermostChannelConfigSchema, n as mattermostSetupWizard, o as mattermostConfigAdapter, r as mattermostSetupContract, s as mattermostMeta, t as mattermostPlugin } from "./channel-plugin-runtime-C4u91PKh.js";
2
+ import { a as describeMattermostAccount, i as MattermostChannelConfigSchema, n as mattermostSetupWizard, o as mattermostConfigAdapter, r as mattermostSetupContract, s as mattermostMeta, t as mattermostPlugin } from "./channel-plugin-runtime-Dhr44A2Y.js";
3
3
  import { t as resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass-B93t91oq.js";
4
4
  //#region extensions/mattermost/src/channel.setup.ts
5
5
  const mattermostSetupPlugin = {
@@ -15,7 +15,6 @@ import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
15
15
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1, buildChannelOutboundSessionRoute, buildThreadAwareOutboundSessionRoute, stripChannelTargetPrefix, stripTargetKindPrefix } from "openclaw/plugin-sdk/core";
16
16
  import { identityEntryAuthenticationClassifier } from "openclaw/plugin-sdk/channel-ingress-runtime";
17
17
  import { jsonResult, readPositiveIntegerParam, readStringArrayParam, readStringParam, withNormalizedTimestamp } from "openclaw/plugin-sdk/channel-actions";
18
- import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
19
18
  import { createChannelConfigUiHints, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
20
19
  import { buildChannelGroupsScopeTree, buildMutableAllowEntryDetector, collectStandardAllowlistLists, createDangerousNameMatchingMutableAllowlistWarningCollector, createRestrictSendersChannelSecurity, resolveScopeRequireMention } from "openclaw/plugin-sdk/channel-policy";
21
20
  import { attachChannelToResult, createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
@@ -27,6 +26,7 @@ import { createComputedAccountStatusAdapter, createDefaultChannelRuntimeState }
27
26
  import { chunkTextForOutbound, sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
28
27
  import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-runtime";
29
28
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
29
+ import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
30
30
  import { BlockStreamingCoalesceSchema, ChannelImplicitMentionsSchema, ContextVisibilityModeSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigSchema, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema, requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-schema";
31
31
  import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
32
32
  import { applyAccountNameToChannelSection, applySetupAccountConfigPatch, baseUrlTextInput, createSetupTranslator, createStandardChannelSetupStatus, defineTokenCredential, formatDocsLink, migrateBaseNameToDefaultAccount, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
@@ -78,6 +78,7 @@ const mattermostConfigAdapter = createScopedChannelConfigAdapter({
78
78
  sectionKey: "mattermost",
79
79
  listAccountIds: listMattermostAccountIds,
80
80
  resolveAccount: adaptScopedAccountAccessor(resolveMattermostAccount),
81
+ inspectAccount: adaptScopedAccountAccessor(inspectMattermostAccount),
81
82
  defaultAccountId: resolveDefaultMattermostAccountId,
82
83
  clearBaseFields: [
83
84
  "botToken",
@@ -597,7 +598,7 @@ const mattermostSetupWizard = {
597
598
  };
598
599
  //#endregion
599
600
  //#region extensions/mattermost/src/channel.ts
600
- const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CGEfnc2y.js"));
601
+ const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CYxC0VaI.js"));
601
602
  const MATTERMOST_PRESENTATION_CAPABILITIES = {
602
603
  supported: true,
603
604
  buttons: true,
@@ -811,25 +812,8 @@ const mattermostMessageActions = {
811
812
  if (!(account.config.actions?.reactions ?? mattermostConfig?.actions?.reactions ?? true)) throw new Error("Mattermost reactions are disabled in config");
812
813
  const { postId, emojiName, remove } = parseMattermostReactActionParams(params);
813
814
  const authorizedTarget = normalizeOptionalString(params.to);
814
- if (remove) {
815
- const result = await (await loadMattermostChannelRuntime()).removeMattermostReaction({
816
- cfg,
817
- postId,
818
- emojiName,
819
- accountId: resolvedAccountId,
820
- authorizedTarget,
821
- conversationReadOrigin
822
- });
823
- if (!result.ok) throw new Error(result.error);
824
- return {
825
- content: [{
826
- type: "text",
827
- text: `Removed reaction :${emojiName}: from ${postId}`
828
- }],
829
- details: {}
830
- };
831
- }
832
- const result = await (await loadMattermostChannelRuntime()).addMattermostReaction({
815
+ const runtime = await loadMattermostChannelRuntime();
816
+ const result = await (remove ? runtime.removeMattermostReaction : runtime.addMattermostReaction)({
833
817
  cfg,
834
818
  postId,
835
819
  emojiName,
@@ -841,7 +825,7 @@ const mattermostMessageActions = {
841
825
  return {
842
826
  content: [{
843
827
  type: "text",
844
- text: `Reacted with :${emojiName}: on ${postId}`
828
+ text: remove ? `Removed reaction :${emojiName}: from ${postId}` : `Reacted with :${emojiName}: on ${postId}`
845
829
  }],
846
830
  details: {}
847
831
  };
@@ -1044,7 +1028,6 @@ const mattermostPlugin = createChatChannelPlugin({
1044
1028
  configSchema: MattermostChannelConfigSchema,
1045
1029
  config: {
1046
1030
  ...mattermostConfigAdapter,
1047
- inspectAccount: adaptScopedAccountAccessor(inspectMattermostAccount),
1048
1031
  isConfigured: isMattermostConfigured$1,
1049
1032
  describeAccount: describeMattermostAccount
1050
1033
  },
@@ -1,2 +1,2 @@
1
- import { t as mattermostPlugin } from "./channel-plugin-runtime-C4u91PKh.js";
1
+ import { t as mattermostPlugin } from "./channel-plugin-runtime-Dhr44A2Y.js";
2
2
  export { mattermostPlugin };
@@ -1623,16 +1623,26 @@ function createMattermostDraftStream(params) {
1623
1623
  };
1624
1624
  const deleteCurrentMessage = async () => {
1625
1625
  assertNoAcceptedDeliveryFailure();
1626
- await clearWithStop(async () => {
1627
- loop.resetPending();
1628
- await loop.waitForInFlight();
1629
- await currentGeneration.ready;
1626
+ const retiring = currentGeneration;
1627
+ loop.resetPending();
1628
+ const inFlight = loop.waitForInFlight();
1629
+ const retirement = clearWithStop(async () => {
1630
+ await retiring.ready;
1631
+ await inFlight;
1630
1632
  assertNoAcceptedDeliveryFailure();
1631
- currentGeneration.lastSentText = "";
1632
- currentGeneration.latestSourceText = "";
1633
- currentGeneration.latestAssistantText = void 0;
1634
- loop.resetThrottleWindow();
1633
+ }, {
1634
+ readMessageId: () => retiring.postId,
1635
+ clearMessageId: () => {
1636
+ retiring.postId = void 0;
1637
+ }
1635
1638
  });
1639
+ currentGeneration = {
1640
+ lastSentText: "",
1641
+ latestSourceText: "",
1642
+ ready: retirement
1643
+ };
1644
+ loop.resetThrottleWindow();
1645
+ await retirement;
1636
1646
  assertNoAcceptedDeliveryFailure();
1637
1647
  };
1638
1648
  const seal = async () => {
@@ -1,5 +1,8 @@
1
1
  {
2
2
  "id": "mattermost",
3
+ "categories": [
4
+ "channels"
5
+ ],
3
6
  "name": "Mattermost",
4
7
  "description": "OpenClaw Mattermost channel plugin.",
5
8
  "doctorContract": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/mattermost",
3
- "version": "2026.9.3",
3
+ "version": "2026.9.4",
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.9.3"
15
+ "openclaw": ">=2026.9.4"
16
16
  },
17
17
  "peerDependenciesMeta": {
18
18
  "openclaw": {
@@ -94,10 +94,10 @@
94
94
  "allowInvalidConfigRecovery": true
95
95
  },
96
96
  "compat": {
97
- "pluginApi": ">=2026.9.3"
97
+ "pluginApi": ">=2026.9.4"
98
98
  },
99
99
  "build": {
100
- "openclawVersion": "2026.9.3",
100
+ "openclawVersion": "2026.9.4",
101
101
  "bundledDist": false
102
102
  },
103
103
  "release": {