@openclaw/msteams 2026.8.33 → 2026.8.35

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,14 +1,18 @@
1
1
  const require_resolve_allowlist = require("./resolve-allowlist-DmDXkQwc.cjs");
2
- const require_channel = require("./channel-CmMERcLc.cjs");
2
+ const require_channel = require("./channel-nQ0BxnvT.cjs");
3
3
  const require_approval_card = require("./approval-card-BEblaIto.cjs");
4
- const require_send = require("./send-BJIzpG1l.cjs");
4
+ const require_send = require("./send-BlgbJx-v.cjs");
5
5
  let openclaw_plugin_sdk_account_id = require("openclaw/plugin-sdk/account-id");
6
6
  let openclaw_plugin_sdk_approval_native_runtime = require("openclaw/plugin-sdk/approval-native-runtime");
7
7
  let openclaw_plugin_sdk_approval_handler_runtime = require("openclaw/plugin-sdk/approval-handler-runtime");
8
8
  //#region extensions/msteams/src/approval-handler.runtime.ts
9
9
  const log = (0, require("openclaw/plugin-sdk/runtime-env").createSubsystemLogger)("msteams/approvals");
10
10
  const msTeamsApprovalNativeRuntime = (0, openclaw_plugin_sdk_approval_handler_runtime.createChannelApprovalNativeRuntimeAdapter)({
11
- eventKinds: ["exec", "plugin"],
11
+ eventKinds: [
12
+ "exec",
13
+ "plugin",
14
+ "system-agent"
15
+ ],
12
16
  availability: {
13
17
  isConfigured: ({ cfg, accountId }) => require_channel.isMSTeamsNativeApprovalClientEnabled({
14
18
  cfg,
@@ -314,7 +314,11 @@ const resolveMSTeamsOriginTarget = (0, openclaw_plugin_sdk_approval_native_runti
314
314
  normalizeTarget: msTeamsApprovalTargetResolvers.normalizeTarget
315
315
  });
316
316
  const msTeamsLazyApprovalNativeRuntime = (0, openclaw_plugin_sdk_approval_handler_adapter_runtime.createLazyChannelApprovalNativeRuntimeAdapter)({
317
- eventKinds: ["exec", "plugin"],
317
+ eventKinds: [
318
+ "exec",
319
+ "plugin",
320
+ "system-agent"
321
+ ],
318
322
  isConfigured: ({ cfg, accountId }) => isMSTeamsNativeApprovalClientEnabled({
319
323
  cfg,
320
324
  accountId
@@ -326,7 +330,7 @@ const msTeamsLazyApprovalNativeRuntime = (0, openclaw_plugin_sdk_approval_handle
326
330
  request
327
331
  }),
328
332
  load: async () => {
329
- const { msTeamsApprovalNativeRuntime } = await Promise.resolve().then(() => require("./approval-handler.runtime-DfLMWSuU.cjs"));
333
+ const { msTeamsApprovalNativeRuntime } = await Promise.resolve().then(() => require("./approval-handler.runtime-DWjRMpxe.cjs"));
330
334
  return msTeamsApprovalNativeRuntime;
331
335
  }
332
336
  });
@@ -777,7 +781,7 @@ const collectMSTeamsSecurityFindings = openclaw_plugin_sdk_channel_policy.create
777
781
  severity: "critical",
778
782
  title: "MS Teams security warning"
779
783
  });
780
- const loadMSTeamsChannelRuntime = (0, openclaw_plugin_sdk_lazy_runtime.createLazyRuntimeNamedExport)(() => Promise.resolve().then(() => require("./channel.runtime-BeV2JXyi.cjs")), "msTeamsChannelRuntime");
784
+ const loadMSTeamsChannelRuntime = (0, openclaw_plugin_sdk_lazy_runtime.createLazyRuntimeNamedExport)(() => Promise.resolve().then(() => require("./channel.runtime-BDD4r1zc.cjs")), "msTeamsChannelRuntime");
781
785
  function jsonActionResult(data) {
782
786
  return {
783
787
  content: [{
@@ -1520,7 +1524,7 @@ const msteamsPlugin = (0, openclaw_plugin_sdk_channel_core.createChatChannelPlug
1520
1524
  })
1521
1525
  }),
1522
1526
  gateway: { startAccount: async (ctx) => {
1523
- const { monitorMSTeamsProvider } = await Promise.resolve().then(() => require("./src-syvsoIGp.cjs"));
1527
+ const { monitorMSTeamsProvider } = await Promise.resolve().then(() => require("./src-DEdRsYGF.cjs"));
1524
1528
  const port = ctx.cfg.channels?.msteams?.webhook?.port ?? 3978;
1525
1529
  const statusSink = (0, openclaw_plugin_sdk_channel_outbound.createAccountStatusSink)({
1526
1530
  accountId: ctx.accountId,
@@ -1,9 +1,9 @@
1
1
  require("../runtime-api.cjs");
2
2
  const require_resolve_allowlist = require("./resolve-allowlist-DmDXkQwc.cjs");
3
- const require_channel = require("./channel-CmMERcLc.cjs");
3
+ const require_channel = require("./channel-nQ0BxnvT.cjs");
4
4
  const require_channel_setup = require("./channel.setup-CFpwpvxP.cjs");
5
5
  const require_polls = require("./polls-P86qBpeV.cjs");
6
- const require_send = require("./send-BJIzpG1l.cjs");
6
+ const require_send = require("./send-BlgbJx-v.cjs");
7
7
  const require_reaction_types = require("./reaction-types-5XmyLq9G.cjs");
8
8
  let openclaw_plugin_sdk_channel_outbound = require("openclaw/plugin-sdk/channel-outbound");
9
9
  let openclaw_plugin_sdk_string_coerce_runtime = require("openclaw/plugin-sdk/string-coerce-runtime");
@@ -1,7 +1,7 @@
1
1
  const require_runtime = require("./runtime-gZTAuFux.cjs");
2
2
  require("../runtime-api.cjs");
3
3
  const require_resolve_allowlist = require("./resolve-allowlist-DmDXkQwc.cjs");
4
- const require_channel = require("./channel-CmMERcLc.cjs");
4
+ const require_channel = require("./channel-nQ0BxnvT.cjs");
5
5
  const require_channel_setup = require("./channel.setup-CFpwpvxP.cjs");
6
6
  const require_polls = require("./polls-P86qBpeV.cjs");
7
7
  const require_messenger = require("./messenger-DGDM-_EM.cjs");
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
2
2
  const require_runtime = require("./runtime-gZTAuFux.cjs");
3
3
  require("../runtime-api.cjs");
4
4
  const require_resolve_allowlist = require("./resolve-allowlist-DmDXkQwc.cjs");
5
- const require_channel = require("./channel-CmMERcLc.cjs");
5
+ const require_channel = require("./channel-nQ0BxnvT.cjs");
6
6
  const require_thread_session = require("./thread-session-CPVeQiGj.cjs");
7
7
  const require_channel_setup = require("./channel.setup-CFpwpvxP.cjs");
8
8
  const require_polls = require("./polls-P86qBpeV.cjs");
@@ -3067,6 +3067,7 @@ function prepareMSTeamsThreadRouting(params) {
3067
3067
  };
3068
3068
  return {
3069
3069
  route,
3070
+ threadRootId: params.conversationMessageId ?? params.context.activity.replyToId,
3070
3071
  deadline,
3071
3072
  resolveTeamAadGroupId,
3072
3073
  getTeamAadGroupId: () => teamAadGroupId
@@ -3096,8 +3097,8 @@ async function resolveMSTeamsThreadContext(params) {
3096
3097
  params.log.debug?.("failed to fetch full quoted message text", { error: require_channel_setup.formatUnknownError(err) });
3097
3098
  }
3098
3099
  let threadContext;
3099
- const threadParentId = activity.replyToId;
3100
- if (threadParentId && params.isChannel && teamAadGroupId) try {
3100
+ const threadParentId = params.routing.threadRootId;
3101
+ if (threadParentId && threadParentId !== activity.id && params.isChannel && teamAadGroupId) try {
3101
3102
  const graphToken = await require_resolve_allowlist.withMSTeamsRequestDeadline({
3102
3103
  deadline,
3103
3104
  label: "MS Teams thread token",
package/dist/api.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_channel = require("./.setup/channel-CmMERcLc.cjs");
2
+ const require_channel = require("./.setup/channel-nQ0BxnvT.cjs");
3
3
  const require_channel_setup = require("./.setup/channel.setup-CFpwpvxP.cjs");
4
4
  exports.createMSTeamsSetupWizardBase = require_channel_setup.createMSTeamsSetupWizardBase;
5
5
  exports.msteamsPlugin = require_channel.msteamsPlugin;
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_channel = require("./.setup/channel-CmMERcLc.cjs");
2
+ const require_channel = require("./.setup/channel-nQ0BxnvT.cjs");
3
3
  exports.msteamsPlugin = require_channel.msteamsPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/msteams",
3
- "version": "2026.8.33",
3
+ "version": "2026.8.35",
4
4
  "description": "OpenClaw Microsoft Teams channel plugin for bot conversations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "openclaw": "workspace:*"
23
23
  },
24
24
  "peerDependencies": {
25
- "openclaw": ">=2026.8.33"
25
+ "openclaw": ">=2026.8.35"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "openclaw": {
@@ -72,10 +72,10 @@
72
72
  "minHostVersion": ">=2026.4.10"
73
73
  },
74
74
  "compat": {
75
- "pluginApi": ">=2026.8.33"
75
+ "pluginApi": ">=2026.8.35"
76
76
  },
77
77
  "build": {
78
- "openclawVersion": "2026.8.33",
78
+ "openclawVersion": "2026.8.35",
79
79
  "runtimeFormat": "cjs"
80
80
  },
81
81
  "release": {