@openclaw/msteams 2026.5.20-beta.1 → 2026.5.20-beta.2
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/api.js +1 -1
- package/dist/{channel-BkRCVixz.js → channel-DgswKGEX.js} +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BkXrScGo.js → channel.runtime-DESjEqjy.js} +2 -2
- package/dist/{probe-CN6_1oKU.js → probe-CwGn-q3u.js} +1 -1
- package/dist/{src-BxAU16zx.js → src-DFD0AItF.js} +7 -15
- package/dist/test-api.js +1 -1
- package/package.json +4 -4
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as msteamsSetupAdapter, n as openDelegatedOAuthUrl, r as createMSTeamsSetupWizardBase, t as msteamsSetupWizard } from "./setup-surface-Clzyi6mr.js";
|
|
2
|
-
import { t as msteamsPlugin } from "./channel-
|
|
2
|
+
import { t as msteamsPlugin } from "./channel-DgswKGEX.js";
|
|
3
3
|
export { createMSTeamsSetupWizardBase, msteamsPlugin, msteamsSetupAdapter, msteamsSetupWizard, openDelegatedOAuthUrl };
|
|
@@ -331,7 +331,7 @@ const collectMSTeamsSecurityWarnings = createAllowlistProviderGroupPolicyWarning
|
|
|
331
331
|
resolveGroupPolicy: ({ cfg }) => cfg.channels?.msteams?.groupPolicy,
|
|
332
332
|
collect: ({ groupPolicy }) => groupPolicy === "open" ? ["- MS Teams groups: groupPolicy=\"open\" allows any member to trigger (mention-gated). Set channels.msteams.groupPolicy=\"allowlist\" + channels.msteams.groupAllowFrom to restrict senders."] : []
|
|
333
333
|
});
|
|
334
|
-
const loadMSTeamsChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-
|
|
334
|
+
const loadMSTeamsChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DESjEqjy.js"), "msTeamsChannelRuntime");
|
|
335
335
|
const resolveMSTeamsChannelConfig = (cfg) => ({
|
|
336
336
|
allowFrom: cfg.channels?.msteams?.allowFrom,
|
|
337
337
|
defaultTo: cfg.channels?.msteams?.defaultTo
|
|
@@ -1117,7 +1117,7 @@ const msteamsPlugin = createChatChannelPlugin({
|
|
|
1117
1117
|
})
|
|
1118
1118
|
}),
|
|
1119
1119
|
gateway: { startAccount: async (ctx) => {
|
|
1120
|
-
const { monitorMSTeamsProvider } = await import("./src-
|
|
1120
|
+
const { monitorMSTeamsProvider } = await import("./src-DFD0AItF.js");
|
|
1121
1121
|
const port = ctx.cfg.channels?.msteams?.webhook?.port ?? 3978;
|
|
1122
1122
|
ctx.setStatus({
|
|
1123
1123
|
accountId: ctx.accountId,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as msteamsPlugin } from "./channel-
|
|
1
|
+
import { t as msteamsPlugin } from "./channel-DgswKGEX.js";
|
|
2
2
|
export { msteamsPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as chunkTextForOutbound } from "./runtime-api-CJC3UvbX.js";
|
|
2
2
|
import { a as fetchGraphJson, c as normalizeQuery, d as postGraphJson, f as resolveGraphToken, i as fetchGraphAbsoluteUrl, l as patchGraphJson, n as deleteGraphRequest, o as listChannelsForTeam, r as escapeOData, s as listTeamsByName, t as searchGraphUsers, u as postGraphBetaJson } from "./graph-users-B73-A6hC.js";
|
|
3
|
-
import { n as MSTEAMS_PRESENTATION_CAPABILITIES, r as buildMSTeamsPresentationCard } from "./channel-
|
|
4
|
-
import { S as createMSTeamsConversationStoreFs, a as sendMessageMSTeams, b as createMSTeamsPollStoreFs, i as sendAdaptiveCardMSTeams, n as deleteMessageMSTeams, o as sendPollMSTeams, r as editMessageMSTeams, t as probeMSTeams } from "./probe-
|
|
3
|
+
import { n as MSTEAMS_PRESENTATION_CAPABILITIES, r as buildMSTeamsPresentationCard } from "./channel-DgswKGEX.js";
|
|
4
|
+
import { S as createMSTeamsConversationStoreFs, a as sendMessageMSTeams, b as createMSTeamsPollStoreFs, i as sendAdaptiveCardMSTeams, n as deleteMessageMSTeams, o as sendPollMSTeams, r as editMessageMSTeams, t as probeMSTeams } from "./probe-CwGn-q3u.js";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { resolvePayloadMediaUrls, resolveTextChunksWithFallback, sendPayloadMediaSequence } from "openclaw/plugin-sdk/reply-payload";
|
|
7
7
|
import { attachChannelToResult, createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as normalizeStringEntries, E as resolveChannelMediaMaxBytes, M as getMSTeamsRuntime, d as detectMime, g as getFileExtension, m as extractOriginalFilename, p as extensionForMime, y as loadOutboundMediaFromUrl } from "./runtime-api-CJC3UvbX.js";
|
|
2
2
|
import { C as loadMSTeamsSdkWithAuth, D as formatMSTeamsSendErrorHint, E as classifyMSTeamsSendError, O as formatUnknownError, S as createMSTeamsTokenProvider, _ as resolveMSTeamsStorePath, h as resolveMSTeamsCredentials, k as isRevokedProxyError, m as loadDelegatedTokens, w as buildUserAgent, x as createMSTeamsAdapter, y as readAccessToken } from "./graph-users-B73-A6hC.js";
|
|
3
|
-
import { a as resolveMSTeamsReplyPolicy, o as resolveMSTeamsRouteConfig } from "./channel-
|
|
3
|
+
import { a as resolveMSTeamsReplyPolicy, o as resolveMSTeamsRouteConfig } from "./channel-DgswKGEX.js";
|
|
4
4
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
|
|
5
5
|
import { isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { withFileLock } from "openclaw/plugin-sdk/file-lock";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as summarizeMapping, D as resolveDefaultGroupPolicy, E as resolveChannelMediaMaxBytes, M as getMSTeamsRuntime, N as getOptionalMSTeamsRuntime, _ as isDangerousNameMatchingEnabled, a as buildMediaPayload, b as logTypingFailure, c as createChannelMessageReplyPipeline, f as dispatchReplyFromConfigWithSettledDispatcher$1, l as createChannelPairingController, n as DEFAULT_WEBHOOK_MAX_BODY_BYTES, t as DEFAULT_ACCOUNT_ID, v as keepHttpServerTaskAlive, x as mergeAllowlist } from "./runtime-api-CJC3UvbX.js";
|
|
2
2
|
import { A as ATTACHMENT_TAG_RE, B as isLikelyImageAttachment, C as loadMSTeamsSdkWithAuth, D as formatMSTeamsSendErrorHint, E as classifyMSTeamsSendError, F as estimateBase64DecodedBytes, G as resolveAttachmentFetchPolicy, H as isUrlAllowed, I as extractHtmlFromAttachment, J as safeFetchWithPolicy, K as resolveMediaSsrfPolicy, L as extractInlineImageCandidates, M as IMG_SRC_RE, N as applyAuthorizationHeaderForUrl, O as formatUnknownError, P as encodeGraphShareId, R as inferPlaceholder, S as createMSTeamsTokenProvider, T as ensureUserAgentHeader, U as normalizeContentType, V as isRecord$1, W as readNestedString, X as tryBuildGraphSharesUrlForSharedLink, Y as safeHostForUrl, _ as resolveMSTeamsStorePath, a as fetchGraphJson, b as createBotFrameworkJwtValidator, h as resolveMSTeamsCredentials, j as GRAPH_ROOT, q as resolveRequestUrl, w as buildUserAgent, x as createMSTeamsAdapter, z as isDownloadableAttachment } from "./graph-users-B73-A6hC.js";
|
|
3
3
|
import { d as resolveMSTeamsUserAllowlist, u as resolveMSTeamsChannelAllowlist } from "./setup-surface-Clzyi6mr.js";
|
|
4
|
-
import { a as resolveMSTeamsReplyPolicy, i as resolveMSTeamsAllowlistMatch, o as resolveMSTeamsRouteConfig } from "./channel-
|
|
5
|
-
import { C as readJsonFile, S as createMSTeamsConversationStoreFs, T as writeJsonFile, _ as buildFileInfoCard, b as createMSTeamsPollStoreFs, c as renderReplyPayloadsToMessages, d as withRevokedProxyFallback, f as resolveGraphChatId, g as removePendingUploadFs, h as getPendingUploadFs, l as sendMSTeamsMessages, m as removePendingUpload, p as getPendingUpload, s as buildConversationReference, u as AI_GENERATED_ENTITY, v as parseFileConsentInvoke, w as withFileLock, x as extractMSTeamsPollVote, y as uploadToConsentUrl } from "./probe-
|
|
4
|
+
import { a as resolveMSTeamsReplyPolicy, i as resolveMSTeamsAllowlistMatch, o as resolveMSTeamsRouteConfig } from "./channel-DgswKGEX.js";
|
|
5
|
+
import { C as readJsonFile, S as createMSTeamsConversationStoreFs, T as writeJsonFile, _ as buildFileInfoCard, b as createMSTeamsPollStoreFs, c as renderReplyPayloadsToMessages, d as withRevokedProxyFallback, f as resolveGraphChatId, g as removePendingUploadFs, h as getPendingUploadFs, l as sendMSTeamsMessages, m as removePendingUpload, p as getPendingUpload, s as buildConversationReference, u as AI_GENERATED_ENTITY, v as parseFileConsentInvoke, w as withFileLock, x as extractMSTeamsPollVote, y as uploadToConsentUrl } from "./probe-CwGn-q3u.js";
|
|
6
6
|
import { formatAllowlistMatchMeta } from "openclaw/plugin-sdk/allow-from";
|
|
7
7
|
import { createLiveMessageState, createPreviewMessageReceipt, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter, markLiveMessageFinalized } from "openclaw/plugin-sdk/channel-message";
|
|
8
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -2765,10 +2765,9 @@ function createMSTeamsMessageHandler(deps) {
|
|
|
2765
2765
|
});
|
|
2766
2766
|
const preview = rawBody.replace(/\s+/g, " ").slice(0, 160);
|
|
2767
2767
|
const inboundLabel = isDirectMessage ? `Teams DM from ${senderName}` : `Teams message in ${conversationType} from ${senderName}`;
|
|
2768
|
-
const enqueuePrimaryMessageSystemEvent = (
|
|
2768
|
+
const enqueuePrimaryMessageSystemEvent = () => core.system.enqueueSystemEvent(`${inboundLabel}: ${preview}`, {
|
|
2769
2769
|
sessionKey: route.sessionKey,
|
|
2770
|
-
contextKey: `msteams:message:${conversationId}:${activity.id ?? "unknown"}
|
|
2771
|
-
...opts
|
|
2770
|
+
contextKey: `msteams:message:${conversationId}:${activity.id ?? "unknown"}`
|
|
2772
2771
|
});
|
|
2773
2772
|
const channelId = conversationId;
|
|
2774
2773
|
const { teamConfig, channelConfig } = channelGate;
|
|
@@ -2802,10 +2801,7 @@ function createMSTeamsMessageHandler(deps) {
|
|
|
2802
2801
|
requireMention,
|
|
2803
2802
|
mentioned
|
|
2804
2803
|
});
|
|
2805
|
-
enqueuePrimaryMessageSystemEvent(
|
|
2806
|
-
forceSenderIsOwnerFalse: true,
|
|
2807
|
-
trusted: false
|
|
2808
|
-
});
|
|
2804
|
+
enqueuePrimaryMessageSystemEvent();
|
|
2809
2805
|
createChannelHistoryWindow({ historyMap: conversationHistories }).record({
|
|
2810
2806
|
historyKey: conversationId,
|
|
2811
2807
|
limit: historyLimit,
|
|
@@ -2890,9 +2886,7 @@ function createMSTeamsMessageHandler(deps) {
|
|
|
2890
2886
|
if (parentSummary && visibleParentMessages.length > 0 && shouldInjectParentContext(route.sessionKey, activity.replyToId)) {
|
|
2891
2887
|
core.system.enqueueSystemEvent(formatParentContextEvent(parentSummary), {
|
|
2892
2888
|
sessionKey: route.sessionKey,
|
|
2893
|
-
contextKey: `msteams:thread-parent:${conversationId}:${activity.replyToId}
|
|
2894
|
-
forceSenderIsOwnerFalse: true,
|
|
2895
|
-
trusted: false
|
|
2889
|
+
contextKey: `msteams:thread-parent:${conversationId}:${activity.replyToId}`
|
|
2896
2890
|
});
|
|
2897
2891
|
markParentContextInjected(route.sessionKey, activity.replyToId);
|
|
2898
2892
|
}
|
|
@@ -3223,9 +3217,7 @@ function createMSTeamsReactionHandler(deps) {
|
|
|
3223
3217
|
});
|
|
3224
3218
|
core.system.enqueueSystemEvent(label, {
|
|
3225
3219
|
sessionKey: route.sessionKey,
|
|
3226
|
-
contextKey: `msteams:reaction:${conversationId}:${targetMessageId}:${senderId}:${reactionType}:${direction}
|
|
3227
|
-
forceSenderIsOwnerFalse: true,
|
|
3228
|
-
trusted: false
|
|
3220
|
+
contextKey: `msteams:reaction:${conversationId}:${targetMessageId}:${senderId}:${reactionType}:${direction}`
|
|
3229
3221
|
});
|
|
3230
3222
|
}
|
|
3231
3223
|
};
|
package/dist/test-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as msteamsPlugin } from "./channel-
|
|
1
|
+
import { t as msteamsPlugin } from "./channel-DgswKGEX.js";
|
|
2
2
|
export { msteamsPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/msteams",
|
|
3
|
-
"version": "2026.5.20-beta.
|
|
3
|
+
"version": "2026.5.20-beta.2",
|
|
4
4
|
"description": "OpenClaw Microsoft Teams channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"openclaw": "workspace:*"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"openclaw": ">=2026.5.20-beta.
|
|
25
|
+
"openclaw": ">=2026.5.20-beta.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"openclaw": {
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"minHostVersion": ">=2026.4.10"
|
|
59
59
|
},
|
|
60
60
|
"compat": {
|
|
61
|
-
"pluginApi": ">=2026.5.20-beta.
|
|
61
|
+
"pluginApi": ">=2026.5.20-beta.2"
|
|
62
62
|
},
|
|
63
63
|
"build": {
|
|
64
|
-
"openclawVersion": "2026.5.20-beta.
|
|
64
|
+
"openclawVersion": "2026.5.20-beta.2"
|
|
65
65
|
},
|
|
66
66
|
"release": {
|
|
67
67
|
"publishToClawHub": true,
|