@openclaw/mattermost 2026.7.2-beta.4 → 2026.7.2-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/{accounts-B-GrNVwP.js → accounts-BR6Nl5Qf.js} +8 -20
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel-plugin-runtime-CgRXlOvV.js → channel-plugin-runtime-DLBTUlbh.js} +2 -2
- package/dist/channel-plugin-runtime.js +1 -1
- package/dist/{channel.runtime-VRis1MN2.js → channel.runtime-CR1V5M8l.js} +1659 -1806
- package/dist/{interactions-DODXaHdE.js → interactions-B4gg-KRm.js} +1 -1
- package/dist/{monitor-auth-4zjr5tXP.js → monitor-auth-BOh6zLW9.js} +1 -1
- package/dist/policy-api.js +1 -1
- package/dist/runtime-api.js +1 -2
- package/dist/slash-route-api.js +1 -1
- package/dist/{slash-state-CFEaCLnp.js → slash-state-VCRdqj5F.js} +45 -59
- package/package.json +4 -5
- package/npm-shrinkwrap.json +0 -54
|
@@ -3,28 +3,16 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runti
|
|
|
3
3
|
import { resolveChannelPreviewStreamMode, resolveChannelStreamingBlockCoalesce, resolveChannelStreamingBlockEnabled, resolveChannelStreamingChunkMode } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { createAccountListHelpers, hasConfiguredAccountValue } from "openclaw/plugin-sdk/account-helpers";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
6
|
-
import { resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
|
|
7
6
|
import { buildSecretInputSchema, hasConfiguredSecretInput, normalizeResolvedSecretInputString, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
8
7
|
//#region extensions/mattermost/src/mattermost/accounts.ts
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return mattermostAccountHelpers.resolveDefaultAccountId(cfg);
|
|
18
|
-
}
|
|
19
|
-
function mergeMattermostAccountConfig(cfg, accountId) {
|
|
20
|
-
return resolveMergedAccountConfig({
|
|
21
|
-
channelConfig: cfg.channels?.mattermost,
|
|
22
|
-
accounts: cfg.channels?.mattermost?.accounts,
|
|
23
|
-
accountId,
|
|
24
|
-
omitKeys: ["defaultAccount"],
|
|
25
|
-
nestedObjectKeys: ["commands"]
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
const { listAccountIds: listMattermostAccountIds, resolveDefaultAccountId: resolveDefaultMattermostAccountId, resolveAccountConfig: mergeMattermostAccountConfig } = createAccountListHelpers("mattermost", {
|
|
9
|
+
omitKeys: ["defaultAccount"],
|
|
10
|
+
nestedObjectKeys: ["commands"],
|
|
11
|
+
hasImplicitDefaultAccount: (cfg) => {
|
|
12
|
+
const mattermost = cfg.channels?.mattermost;
|
|
13
|
+
return Boolean(mattermost?.baseUrl?.trim() && (hasConfiguredAccountValue(mattermost.botToken) || process.env.MATTERMOST_BOT_TOKEN?.trim()));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
28
16
|
function resolveMattermostRequireMention(config) {
|
|
29
17
|
if (config.chatmode === "oncall") return true;
|
|
30
18
|
if (config.chatmode === "onmessage") return false;
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as isMattermostSenderAllowed } from "./monitor-auth-
|
|
2
|
-
import { t as buildButtonAttachments } from "./interactions-
|
|
1
|
+
import { r as isMattermostSenderAllowed } from "./monitor-auth-BOh6zLW9.js";
|
|
2
|
+
import { t as buildButtonAttachments } from "./interactions-B4gg-KRm.js";
|
|
3
3
|
export { buildButtonAttachments, isMattermostSenderAllowed };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as isMattermostConfigured, i as mattermostSetupContract, l as mattermostConfigAdapter, n as mattermostSetupWizard, o as MattermostChannelConfigSchema, r as mattermostSetupAdapter, s as describeMattermostAccount, t as mattermostPlugin, u as mattermostMeta } from "./channel-plugin-runtime-
|
|
1
|
+
import { c as isMattermostConfigured, i as mattermostSetupContract, l as mattermostConfigAdapter, n as mattermostSetupWizard, o as MattermostChannelConfigSchema, r as mattermostSetupAdapter, s as describeMattermostAccount, t as mattermostPlugin, u as mattermostMeta } from "./channel-plugin-runtime-DLBTUlbh.js";
|
|
2
2
|
import { t as resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass-CL1PxV3z.js";
|
|
3
3
|
//#region extensions/mattermost/src/channel.setup.ts
|
|
4
4
|
const mattermostSetupPlugin = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeMattermostBaseUrl } from "./client-w0lkxuKh.js";
|
|
2
|
-
import { a as buildSecretInputSchema, i as resolveMattermostReplyToMode, n as resolveDefaultMattermostAccountId, o as hasConfiguredSecretInput, r as resolveMattermostAccount, t as listMattermostAccountIds } from "./accounts-
|
|
2
|
+
import { a as buildSecretInputSchema, i as resolveMattermostReplyToMode, n as resolveDefaultMattermostAccountId, o as hasConfiguredSecretInput, r as resolveMattermostAccount, t as listMattermostAccountIds } from "./accounts-BR6Nl5Qf.js";
|
|
3
3
|
import { t as resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass-CL1PxV3z.js";
|
|
4
4
|
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BaUvVh8e.js";
|
|
5
5
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-B4R5Bmhv.js";
|
|
@@ -559,7 +559,7 @@ const mattermostSetupWizard = {
|
|
|
559
559
|
};
|
|
560
560
|
//#endregion
|
|
561
561
|
//#region extensions/mattermost/src/channel.ts
|
|
562
|
-
const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
562
|
+
const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CR1V5M8l.js"));
|
|
563
563
|
function buildMattermostPresentationButtons(presentation) {
|
|
564
564
|
return presentation.blocks.filter((block) => block.type === "buttons").map((block) => block.buttons.flatMap((button) => {
|
|
565
565
|
if (button.action) return [];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mattermostPlugin } from "./channel-plugin-runtime-
|
|
1
|
+
import { t as mattermostPlugin } from "./channel-plugin-runtime-DLBTUlbh.js";
|
|
2
2
|
export { mattermostPlugin };
|