@openclaw/msteams 2026.9.4 → 2026.9.6

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.
Files changed (38) hide show
  1. package/assets/activity.svg +40 -0
  2. package/assets/icon.png +0 -0
  3. package/dist/{adapter.runtime-BzR3RK2J.cjs → .setup/adapter.runtime-CQWZeqB5.cjs} +5 -3
  4. package/dist/{approval-handler.runtime-DRhFNeJS.cjs → .setup/approval-handler.runtime-CUnanUdR.cjs} +3 -3
  5. package/dist/{channel-B9LIyYeu.cjs → .setup/channel-BDp16XRR.cjs} +128 -89
  6. package/dist/{channel.runtime-BergqMHg.cjs → .setup/channel.runtime-Cv5F8JCa.cjs} +61 -34
  7. package/dist/{channel.setup-BhxokviI.cjs → .setup/channel.setup-BVDfgdCc.cjs} +3 -3
  8. package/dist/{delegated-state-DiEz9JIa.cjs → .setup/delegated-state-u-ywZyZT.cjs} +5 -5
  9. package/dist/{messenger-TLdZf9Ar.cjs → .setup/messenger-8RA1FUJa.cjs} +112 -188
  10. package/dist/{oauth-DUtLTz2u.cjs → .setup/oauth-C6m7dvHj.cjs} +1 -1
  11. package/dist/{polls-BBdZPx_R.cjs → .setup/polls-BJ4-4uZm.cjs} +14 -7
  12. package/dist/{reaction-types-BbBBdnQ5.cjs → .setup/reaction-types-C7RA7Wxt.cjs} +1 -1
  13. package/dist/{resolve-allowlist-DmUTQxEz.cjs → .setup/resolve-allowlist-CHzaaWiC.cjs} +135 -93
  14. package/dist/.setup/secret-contract-api-ChQdBeU1.cjs +4 -0
  15. package/dist/.setup/secret-contract-api-ipiUsANg.cjs +28 -0
  16. package/dist/{send-CU61PSDN.cjs → .setup/send-CYN_N7O1.cjs} +99 -34
  17. package/dist/.setup/setup-plugin-api-DpiaA8z1.cjs +3 -0
  18. package/dist/{src-D7Do7sM5.cjs → .setup/src-BfOCwlHp.cjs} +150 -125
  19. package/dist/{sso-token-store-DTeYxubp.cjs → .setup/sso-token-store-YYLHXgFH.cjs} +1 -1
  20. package/dist/{thread-session-NmA7_njI.cjs → .setup/thread-session-CXgHK-yi.cjs} +1 -1
  21. package/dist/api.cjs +2 -2
  22. package/dist/channel-config-api.cjs +1 -1
  23. package/dist/channel-plugin-api.cjs +1 -1
  24. package/dist/configured-state.cjs +1 -1
  25. package/dist/directory-contract-api.cjs +1 -1
  26. package/dist/doctor-contract-api.cjs +64 -62
  27. package/dist/qa-runner-api.cjs +1 -1
  28. package/dist/runtime-api.cjs +1 -1
  29. package/dist/secret-contract-api.cjs +4 -13
  30. package/dist/setup-entry.cjs +5 -3
  31. package/dist/setup-plugin-api.cjs +1 -1
  32. package/openclaw.plugin.json +1 -1
  33. package/package.json +14 -11
  34. /package/dist/{approval-card-CPNH_q3P.cjs → .setup/approval-card-CPNH_q3P.cjs} +0 -0
  35. /package/dist/{config-schema-D22Lr1Qk.cjs → .setup/config-schema-D22Lr1Qk.cjs} +0 -0
  36. /package/dist/{rolldown-runtime-VH7oDXx4.cjs → .setup/rolldown-runtime-VH7oDXx4.cjs} +0 -0
  37. /package/dist/{runtime-gZTAuFux.cjs → .setup/runtime-gZTAuFux.cjs} +0 -0
  38. /package/dist/{secret-input-C65t6kjM.cjs → .setup/secret-input-C65t6kjM.cjs} +0 -0
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
3
- const require_delegated_state = require("./delegated-state-DiEz9JIa.cjs");
4
- const require_polls = require("./polls-BBdZPx_R.cjs");
5
- const require_sso_token_store = require("./sso-token-store-DTeYxubp.cjs");
2
+ const require_rolldown_runtime = require("./.setup/rolldown-runtime-VH7oDXx4.cjs");
3
+ const require_delegated_state = require("./.setup/delegated-state-u-ywZyZT.cjs");
4
+ const require_polls = require("./.setup/polls-BJ4-4uZm.cjs");
5
+ const require_sso_token_store = require("./.setup/sso-token-store-YYLHXgFH.cjs");
6
6
  let openclaw_plugin_sdk_string_coerce_runtime = require("openclaw/plugin-sdk/string-coerce-runtime");
7
7
  let node_crypto = require("node:crypto");
8
8
  node_crypto = require_rolldown_runtime.__toESM(node_crypto, 1);
@@ -245,65 +245,67 @@ const stateMigrations = [
245
245
  return { preview: [`- ${MSTEAMS_PLUGIN_ID} polls: ${Object.keys(state.polls).length} entries -> plugin state (${require_polls.MSTEAMS_POLLS_NAMESPACE})`] };
246
246
  },
247
247
  async migrateLegacyState(params) {
248
- const filePath = resolveStateFilePath(params.stateDir, require_polls.MSTEAMS_POLLS_LEGACY_FILENAME);
249
- const state = await readLegacyJsonFile(filePath, parseLegacyPollStore);
250
- if (!state) return {
251
- changes: [],
252
- warnings: []
253
- };
254
- const pollStore = params.context.openPluginStateKeyedStore({
255
- namespace: require_polls.MSTEAMS_POLLS_NAMESPACE,
256
- maxEntries: require_polls.MSTEAMS_SQLITE_MAX_POLL_ROWS
257
- });
258
- const voteBucketStore = params.context.openPluginStateKeyedStore({
259
- namespace: require_polls.MSTEAMS_POLL_VOTE_BUCKETS_NAMESPACE,
260
- maxEntries: require_polls.MSTEAMS_MAX_POLL_VOTE_BUCKET_ROWS
261
- });
262
- const requiredPollKeys = new Set((await pollStore.entries()).map((entry) => entry.key));
263
- const requiredVoteKeys = new Set((await voteBucketStore.entries()).map((entry) => entry.key));
264
- let imported = 0;
265
- for (const [pollId, poll] of require_polls.selectRetainedMSTeamsPolls(state.polls)) {
266
- const { metadata, votes } = require_polls.splitMSTeamsPoll(poll);
267
- const pollKey = require_polls.buildMSTeamsPollStateKey(pollId);
268
- requiredPollKeys.add(pollKey);
269
- const didImportPoll = await pollStore.registerIfAbsent(pollKey, metadata);
270
- const buckets = /* @__PURE__ */ new Map();
271
- for (const [voterId, selections] of Object.entries(votes)) {
272
- const bucket = require_polls.selectMSTeamsPollVoteBucket(pollId, voterId);
273
- const bucketVotes = buckets.get(bucket) ?? {};
274
- bucketVotes[voterId] = selections;
275
- buckets.set(bucket, bucketVotes);
276
- }
277
- let importedVoteBucket = false;
278
- for (const [bucket, bucketVotes] of buckets) {
279
- const key = require_polls.buildMSTeamsPollVoteBucketKey(pollId, bucket);
280
- requiredVoteKeys.add(key);
281
- const existing = await voteBucketStore.lookup(key);
282
- await voteBucketStore.register(key, {
283
- pollId,
284
- bucket,
285
- votes: {
286
- ...bucketVotes,
287
- ...existing?.votes
288
- },
289
- updatedAt: poll.updatedAt ?? poll.createdAt
290
- });
291
- importedVoteBucket = true;
248
+ return await require_polls.withMSTeamsSqliteMutationLock({ stateDir: params.stateDir }, require_polls.MSTEAMS_POLLS_NAMESPACE, async () => {
249
+ const filePath = resolveStateFilePath(params.stateDir, require_polls.MSTEAMS_POLLS_LEGACY_FILENAME);
250
+ const state = await readLegacyJsonFile(filePath, parseLegacyPollStore);
251
+ if (!state) return {
252
+ changes: [],
253
+ warnings: []
254
+ };
255
+ const pollStore = params.context.openPluginStateKeyedStore({
256
+ namespace: require_polls.MSTEAMS_POLLS_NAMESPACE,
257
+ maxEntries: require_polls.MSTEAMS_SQLITE_MAX_POLL_ROWS
258
+ });
259
+ const voteBucketStore = params.context.openPluginStateKeyedStore({
260
+ namespace: require_polls.MSTEAMS_POLL_VOTE_BUCKETS_NAMESPACE,
261
+ maxEntries: require_polls.MSTEAMS_MAX_POLL_VOTE_BUCKET_ROWS
262
+ });
263
+ const requiredPollKeys = new Set((await pollStore.entries()).map((entry) => entry.key));
264
+ const requiredVoteKeys = new Set((await voteBucketStore.entries()).map((entry) => entry.key));
265
+ let imported = 0;
266
+ for (const [pollId, poll] of require_polls.selectRetainedMSTeamsPolls(state.polls)) {
267
+ const { metadata, votes } = require_polls.splitMSTeamsPoll(poll);
268
+ const pollKey = require_polls.buildMSTeamsPollStateKey(pollId);
269
+ requiredPollKeys.add(pollKey);
270
+ const didImportPoll = await pollStore.registerIfAbsent(pollKey, metadata);
271
+ const buckets = /* @__PURE__ */ new Map();
272
+ for (const [voterId, selections] of Object.entries(votes)) {
273
+ const bucket = require_polls.selectMSTeamsPollVoteBucket(pollId, voterId);
274
+ const bucketVotes = buckets.get(bucket) ?? {};
275
+ bucketVotes[voterId] = selections;
276
+ buckets.set(bucket, bucketVotes);
277
+ }
278
+ let importedVoteBucket = false;
279
+ for (const [bucket, bucketVotes] of buckets) {
280
+ const key = require_polls.buildMSTeamsPollVoteBucketKey(pollId, bucket);
281
+ requiredVoteKeys.add(key);
282
+ const existing = await voteBucketStore.lookup(key);
283
+ await voteBucketStore.register(key, {
284
+ pollId,
285
+ bucket,
286
+ votes: {
287
+ ...bucketVotes,
288
+ ...existing?.votes
289
+ },
290
+ updatedAt: poll.updatedAt ?? poll.createdAt
291
+ });
292
+ importedVoteBucket = true;
293
+ }
294
+ if (didImportPoll || importedVoteBucket) imported++;
292
295
  }
293
- if (didImportPoll || importedVoteBucket) imported++;
294
- }
295
- return completeLegacyKeyedImport({
296
- filePath,
297
- label: `${MSTEAMS_PLUGIN_ID} poll`,
298
- imported,
299
- warnings: [],
300
- stores: [{
301
- store: pollStore,
302
- requiredKeys: requiredPollKeys
303
- }, {
304
- store: voteBucketStore,
305
- requiredKeys: requiredVoteKeys
306
- }]
296
+ return completeLegacyKeyedImport({
297
+ filePath,
298
+ label: `${MSTEAMS_PLUGIN_ID} poll`,
299
+ imported,
300
+ warnings: [],
301
+ stores: [{
302
+ store: pollStore,
303
+ requiredKeys: requiredPollKeys
304
+ }, {
305
+ store: voteBucketStore,
306
+ requiredKeys: requiredVoteKeys
307
+ }]
308
+ });
307
309
  });
308
310
  }
309
311
  },
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let openclaw_plugin_sdk_qa_runner_runtime = require("openclaw/plugin-sdk/qa-runner-runtime");
3
3
  //#region extensions/msteams/src/qa/cli.ts
4
4
  const DEFAULT_MSTEAMS_QA_SCENARIOS = ["channel-canary"];
5
- const loadMSTeamsQaAdapterRuntime = (0, openclaw_plugin_sdk_qa_runner_runtime.createLazyCliRuntimeLoader)(() => Promise.resolve().then(() => require("./adapter.runtime-BzR3RK2J.cjs")));
5
+ const loadMSTeamsQaAdapterRuntime = (0, openclaw_plugin_sdk_qa_runner_runtime.createLazyCliRuntimeLoader)(() => Promise.resolve().then(() => require("./.setup/adapter.runtime-CQWZeqB5.cjs")));
6
6
  async function runQaMSTeams(options) {
7
7
  await (0, openclaw_plugin_sdk_qa_runner_runtime.runLiveTransportQaSuiteCommand)({
8
8
  channelId: "msteams",
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_runtime = require("./runtime-gZTAuFux.cjs");
2
+ const require_runtime = require("./.setup/runtime-gZTAuFux.cjs");
3
3
  let openclaw_plugin_sdk_channel_outbound = require("openclaw/plugin-sdk/channel-outbound");
4
4
  let openclaw_plugin_sdk_channel_pairing = require("openclaw/plugin-sdk/channel-pairing");
5
5
  let openclaw_plugin_sdk_channel_policy = require("openclaw/plugin-sdk/channel-policy");
@@ -1,14 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region extensions/msteams/src/secret-contract.ts
3
- const channelSecrets = (0, require("openclaw/plugin-sdk/channel-secret-basic-runtime").createSimpleChannelSecretContract)({
4
- channelKey: "msteams",
5
- label: "Microsoft Teams",
6
- accountFields: [],
7
- channelFields: ["appPassword"],
8
- mode: "channel-only"
9
- });
10
- const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
11
- //#endregion
12
- exports.channelSecrets = channelSecrets;
13
- exports.collectRuntimeConfigAssignments = collectRuntimeConfigAssignments;
14
- exports.secretTargetRegistryEntries = secretTargetRegistryEntries;
2
+ const require_secret_contract_api = require("./.setup/secret-contract-api-ipiUsANg.cjs");
3
+ exports.channelSecrets = require_secret_contract_api.channelSecrets;
4
+ exports.collectRuntimeConfigAssignments = require_secret_contract_api.collectRuntimeConfigAssignments;
5
+ exports.secretTargetRegistryEntries = require_secret_contract_api.secretTargetRegistryEntries;
@@ -1,12 +1,14 @@
1
+ let openclaw_plugin_sdk_channel_entry_contract = require("openclaw/plugin-sdk/channel-entry-contract");
2
+ let node_url = require("node:url");
1
3
  //#region extensions/msteams/setup-entry.ts
2
- var setup_entry_default = (0, require("openclaw/plugin-sdk/channel-entry-contract").defineBundledChannelSetupEntry)({
4
+ var setup_entry_default = (0, openclaw_plugin_sdk_channel_entry_contract.defineBundledChannelSetupEntry)({
3
5
  importMetaUrl: require("url").pathToFileURL(__filename).href,
4
6
  plugin: {
5
- specifier: "./setup-plugin-api.cjs",
7
+ specifier: (0, node_url.fileURLToPath)(new URL(".setup/setup-plugin-api-DpiaA8z1.cjs", require("url").pathToFileURL(__filename).href).href),
6
8
  exportName: "msteamsSetupPlugin"
7
9
  },
8
10
  secrets: {
9
- specifier: "./secret-contract-api.cjs",
11
+ specifier: (0, node_url.fileURLToPath)(new URL(".setup/secret-contract-api-ChQdBeU1.cjs", require("url").pathToFileURL(__filename).href).href),
10
12
  exportName: "channelSecrets"
11
13
  }
12
14
  });
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_channel_setup = require("./channel.setup-BhxokviI.cjs");
2
+ const require_channel_setup = require("./.setup/channel.setup-BVDfgdCc.cjs");
3
3
  exports.msteamsSetupPlugin = require_channel_setup.msteamsSetupPlugin;
@@ -770,7 +770,7 @@
770
770
  },
771
771
  "streaming.progress.toolProgress": {
772
772
  "label": "MS Teams Progress Tool Lines",
773
- "help": "Show individual tool activity in progress drafts (default: false). Quiet drafts retain plans, approval requests, failures, and authored progress text."
773
+ "help": "Show individual tool activity, including intermediate failures, in progress drafts (default: false). Quiet drafts retain plans, approval requests, and authored progress text. Terminal task errors remain visible."
774
774
  },
775
775
  "streaming.progress.commandText": {
776
776
  "label": "MS Teams Progress Command Text",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/msteams",
3
- "version": "2026.9.4",
3
+ "version": "2026.9.6",
4
4
  "description": "OpenClaw Microsoft Teams channel plugin for bot conversations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,20 +9,20 @@
9
9
  "type": "module",
10
10
  "dependencies": {
11
11
  "@azure/identity": "4.13.2",
12
- "@microsoft/teams.api": "2.0.15",
13
- "@microsoft/teams.apps": "2.0.15",
12
+ "@microsoft/teams.api": "2.0.16",
13
+ "@microsoft/teams.apps": "2.0.16",
14
14
  "express": "5.2.1",
15
- "typebox": "1.3.18",
16
- "zod": "4.4.3"
15
+ "typebox": "1.3.30",
16
+ "zod": "4.6.5"
17
17
  },
18
18
  "devDependencies": {
19
- "@microsoft/teams.common": "2.0.15",
19
+ "@microsoft/teams.common": "2.0.16",
20
20
  "@openclaw/plugin-sdk": "workspace:*",
21
- "jose": "6.2.10",
21
+ "jose": "6.2.12",
22
22
  "openclaw": "workspace:*"
23
23
  },
24
24
  "peerDependencies": {
25
- "openclaw": ">=2026.9.4"
25
+ "openclaw": ">=2026.9.6"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "openclaw": {
@@ -67,15 +67,16 @@
67
67
  }
68
68
  },
69
69
  "install": {
70
+ "clawhubSpec": "clawhub:@openclaw/msteams",
70
71
  "npmSpec": "@openclaw/msteams",
71
72
  "defaultChoice": "npm",
72
73
  "minHostVersion": ">=2026.4.10"
73
74
  },
74
75
  "compat": {
75
- "pluginApi": ">=2026.9.4"
76
+ "pluginApi": ">=2026.9.6"
76
77
  },
77
78
  "build": {
78
- "openclawVersion": "2026.9.4",
79
+ "openclawVersion": "2026.9.6",
79
80
  "runtimeFormat": "cjs"
80
81
  },
81
82
  "release": {
@@ -91,6 +92,8 @@
91
92
  "files": [
92
93
  "dist/**",
93
94
  "openclaw.plugin.json",
94
- "README.md"
95
+ "README.md",
96
+ "assets/icon.png",
97
+ "assets/activity.svg"
95
98
  ]
96
99
  }