@openclaw/mattermost 2026.7.2-beta.2 → 2026.7.2-beta.3
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-C4Azn6rA.js → accounts-B-GrNVwP.js} +1 -1
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +9 -2
- package/dist/{channel-plugin-runtime-BXmjNn6B.js → channel-plugin-runtime-BfV83pya.js} +15 -6
- package/dist/channel-plugin-runtime.js +1 -1
- package/dist/{channel.runtime-CKb2-z0p.js → channel.runtime-DbsfMgC4.js} +1379 -1214
- package/dist/{client-BzLj4dyf.js → client-w0lkxuKh.js} +11 -1
- package/dist/{interactions-DO7J-ND1.js → interactions-BIb5iJjA.js} +2 -2
- package/dist/{monitor-auth-dEHa1_On.js → monitor-auth-ynw9EnGC.js} +9 -6
- package/dist/policy-api.js +1 -1
- package/dist/slash-route-api.js +1 -1
- package/dist/{slash-state-C9bpBN40.js → slash-state-N-zfDDSz.js} +39 -45
- package/npm-shrinkwrap.json +3 -3
- package/openclaw.plugin.json +46 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as normalizeMattermostBaseUrl } from "./client-w0lkxuKh.js";
|
|
2
2
|
import { 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";
|
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-ynw9EnGC.js";
|
|
2
|
+
import { t as buildButtonAttachments } from "./interactions-BIb5iJjA.js";
|
|
3
3
|
export { buildButtonAttachments, isMattermostSenderAllowed };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MattermostChannelConfigSchema, c as mattermostConfigAdapter, l as mattermostMeta, n as mattermostSetupWizard, o as describeMattermostAccount, r as mattermostSetupAdapter, s as isMattermostConfigured, t as mattermostPlugin } from "./channel-plugin-runtime-
|
|
1
|
+
import { a as MattermostChannelConfigSchema, c as mattermostConfigAdapter, l as mattermostMeta, n as mattermostSetupWizard, o as describeMattermostAccount, r as mattermostSetupAdapter, s as isMattermostConfigured, t as mattermostPlugin } from "./channel-plugin-runtime-BfV83pya.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 = {
|
|
@@ -16,7 +16,14 @@ const mattermostSetupPlugin = {
|
|
|
16
16
|
media: true,
|
|
17
17
|
nativeCommands: true
|
|
18
18
|
},
|
|
19
|
-
reload: {
|
|
19
|
+
reload: {
|
|
20
|
+
configPrefixes: ["channels.mattermost"],
|
|
21
|
+
/**
|
|
22
|
+
* accounts.default is promoted; named resolution merges only channel-wide fields
|
|
23
|
+
* plus the selected account. Runtime monitor, debounce, and ingress use accountId.
|
|
24
|
+
*/
|
|
25
|
+
accountScopedRestart: true
|
|
26
|
+
},
|
|
20
27
|
configSchema: MattermostChannelConfigSchema,
|
|
21
28
|
config: {
|
|
22
29
|
...mattermostConfigAdapter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as buildSecretInputSchema, i as resolveMattermostReplyToMode, n as resolveDefaultMattermostAccountId, o as hasConfiguredSecretInput, r as resolveMattermostAccount, t as listMattermostAccountIds } from "./accounts-
|
|
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-B-GrNVwP.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";
|
|
@@ -24,7 +24,7 @@ import { createChannelApprovalAuth } from "openclaw/plugin-sdk/approval-auth-run
|
|
|
24
24
|
import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
|
|
25
25
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
26
26
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
27
|
-
import { BlockStreamingCoalesceSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigSchema, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema, requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-schema";
|
|
27
|
+
import { BlockStreamingCoalesceSchema, ChannelImplicitMentionsSchema, DmPolicySchema, GroupPolicySchema, MarkdownConfigSchema, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema, requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-schema";
|
|
28
28
|
import { applyAccountNameToChannelSection, applySetupAccountConfigPatch, baseUrlTextInput, createSetupTranslator, createStandardChannelSetupStatus, defineTokenCredential, formatDocsLink, migrateBaseNameToDefaultAccount, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup";
|
|
29
29
|
import { createSetupInputPresenceValidator } from "openclaw/plugin-sdk/setup-runtime";
|
|
30
30
|
//#region extensions/mattermost/src/approval-auth.ts
|
|
@@ -204,6 +204,7 @@ const MattermostChannelConfigSchema = buildChannelConfigSchema(buildMultiAccount
|
|
|
204
204
|
]).optional(),
|
|
205
205
|
oncharPrefixes: z.array(z.string()).optional(),
|
|
206
206
|
requireMention: z.boolean().optional(),
|
|
207
|
+
implicitMentions: ChannelImplicitMentionsSchema.optional(),
|
|
207
208
|
dmPolicy: DmPolicySchema.optional().default("pairing"),
|
|
208
209
|
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
209
210
|
groupAllowFrom: z.array(z.union([z.string(), z.number()])).optional(),
|
|
@@ -241,7 +242,8 @@ const MattermostChannelConfigSchema = buildChannelConfigSchema(buildMultiAccount
|
|
|
241
242
|
},
|
|
242
243
|
...createChannelConfigUiHints({
|
|
243
244
|
channelLabel: "Mattermost",
|
|
244
|
-
dmPolicy: { channelKey: "mattermost" }
|
|
245
|
+
dmPolicy: { channelKey: "mattermost" },
|
|
246
|
+
implicitMentions: true
|
|
245
247
|
}),
|
|
246
248
|
streaming: {
|
|
247
249
|
label: "Mattermost Streaming Mode",
|
|
@@ -519,7 +521,7 @@ const mattermostSetupWizard = {
|
|
|
519
521
|
};
|
|
520
522
|
//#endregion
|
|
521
523
|
//#region extensions/mattermost/src/channel.ts
|
|
522
|
-
const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
524
|
+
const loadMattermostChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DbsfMgC4.js"));
|
|
523
525
|
function buildMattermostPresentationButtons(presentation) {
|
|
524
526
|
return presentation.blocks.filter((block) => block.type === "buttons").map((block) => block.buttons.flatMap((button) => {
|
|
525
527
|
if (button.action) return [];
|
|
@@ -972,7 +974,14 @@ const mattermostPlugin = createChatChannelPlugin({
|
|
|
972
974
|
minChars: 1500,
|
|
973
975
|
idleMs: 1e3
|
|
974
976
|
} },
|
|
975
|
-
reload: {
|
|
977
|
+
reload: {
|
|
978
|
+
configPrefixes: ["channels.mattermost"],
|
|
979
|
+
/**
|
|
980
|
+
* accounts.default is promoted; named resolution merges only channel-wide fields
|
|
981
|
+
* plus the selected account. Monitor debounce and durable ingress use accountId.
|
|
982
|
+
*/
|
|
983
|
+
accountScopedRestart: true
|
|
984
|
+
},
|
|
976
985
|
configSchema: MattermostChannelConfigSchema,
|
|
977
986
|
config: {
|
|
978
987
|
...mattermostConfigAdapter,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mattermostPlugin } from "./channel-plugin-runtime-
|
|
1
|
+
import { t as mattermostPlugin } from "./channel-plugin-runtime-BfV83pya.js";
|
|
2
2
|
export { mattermostPlugin };
|