@openclaw/msteams 2026.7.1-beta.6 → 2026.7.2-beta.1

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 (35) hide show
  1. package/dist/api.cjs +8 -0
  2. package/dist/{channel-Cf5LJ4aO.js → channel-BSyPdpGN.cjs} +641 -227
  3. package/dist/channel-config-api.cjs +3 -0
  4. package/dist/channel-plugin-api.cjs +3 -0
  5. package/dist/channel.runtime-DQTOzzet.cjs +1372 -0
  6. package/dist/{config-schema-BL4qQZiA.js → config-schema-BSNLJUta.cjs} +13 -3
  7. package/dist/{directory-contract-api.js → directory-contract-api.cjs} +8 -7
  8. package/dist/{doctor-contract-api.js → doctor-contract-api.cjs} +73 -57
  9. package/dist/index.cjs +21 -0
  10. package/dist/{probe-BnyZRZsD.js → messenger-DtS9gqkV.cjs} +369 -861
  11. package/dist/{oauth-BifWxWzq.js → oauth-C5E5powI.cjs} +21 -21
  12. package/dist/{polls-B_hs4aKm.js → polls-BhoI4VaN.cjs} +188 -38
  13. package/dist/{resolve-allowlist-Dnw4aNOu.js → resolve-allowlist-CyQ57MfH.cjs} +817 -140
  14. package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
  15. package/dist/runtime-api.cjs +207 -0
  16. package/dist/runtime-gZTAuFux.cjs +24 -0
  17. package/dist/secret-contract-api.cjs +31 -0
  18. package/dist/setup-entry.cjs +14 -0
  19. package/dist/setup-plugin-api.cjs +65 -0
  20. package/dist/{setup-surface-qW-ECHL-.js → setup-surface-BDTPN3dX.cjs} +123 -49
  21. package/dist/{src-DZFs5XtZ.js → src-CUMz2B6f.cjs} +672 -740
  22. package/dist/{sso-token-store-DrVbnCUF.js → sso-token-store-CktCz88k.cjs} +51 -10
  23. package/npm-shrinkwrap.json +3 -3
  24. package/openclaw.plugin.json +10 -31
  25. package/package.json +8 -7
  26. package/dist/api.js +0 -3
  27. package/dist/channel-config-api.js +0 -2
  28. package/dist/channel-plugin-api.js +0 -2
  29. package/dist/channel.runtime-Bwu6Tjhf.js +0 -664
  30. package/dist/index.js +0 -22
  31. package/dist/runtime-BS5AZrKK.js +0 -8
  32. package/dist/runtime-api.js +0 -20
  33. package/dist/secret-contract-api.js +0 -35
  34. package/dist/setup-entry.js +0 -15
  35. package/dist/setup-plugin-api.js +0 -64
@@ -1,6 +1,6 @@
1
- import { t as getMSTeamsRuntime } from "./runtime-BS5AZrKK.js";
2
- import { C as toPluginJsonValue, S as resolveMSTeamsSqliteStateEnv, w as withMSTeamsSqliteMutationLock } from "./polls-B_hs4aKm.js";
3
- import { createHash } from "node:crypto";
1
+ const require_runtime = require("./runtime-gZTAuFux.cjs");
2
+ const require_polls = require("./polls-BhoI4VaN.cjs");
3
+ let node_crypto = require("node:crypto");
4
4
  //#region extensions/msteams/src/sso-token-store.ts
5
5
  /**
6
6
  * SQLite-backed store for Bot Framework OAuth SSO tokens.
@@ -20,13 +20,13 @@ const SSO_TOKEN_LOCK_FILENAME = "msteams-sso-tokens.sqlite.lock";
20
20
  const MSTEAMS_MAX_SSO_TOKENS = 5e3;
21
21
  const STORE_KEY_VERSION_PREFIX = "v2:";
22
22
  function makeMSTeamsSsoTokenStoreKey(connectionName, userId) {
23
- return `${STORE_KEY_VERSION_PREFIX}${createHash("sha256").update(JSON.stringify([connectionName, userId])).digest("hex")}`;
23
+ return `${STORE_KEY_VERSION_PREFIX}${(0, node_crypto.createHash)("sha256").update(JSON.stringify([connectionName, userId])).digest("hex")}`;
24
24
  }
25
25
  function createTokenStore(params) {
26
- return getMSTeamsRuntime().state.openKeyedStore({
26
+ return require_runtime.getMSTeamsRuntime().state.openKeyedStore({
27
27
  namespace: MSTEAMS_SSO_TOKENS_NAMESPACE,
28
28
  maxEntries: MSTEAMS_MAX_SSO_TOKENS,
29
- env: resolveMSTeamsSqliteStateEnv(params)
29
+ env: require_polls.resolveMSTeamsSqliteStateEnv(params)
30
30
  });
31
31
  }
32
32
  function normalizeMSTeamsSsoStoredToken(value) {
@@ -53,13 +53,13 @@ function createMSTeamsSsoTokenStoreFs(params) {
53
53
  return await tokenStore.lookup(makeMSTeamsSsoTokenStoreKey(connectionName, userId)) ?? null;
54
54
  },
55
55
  async save(token) {
56
- await withMSTeamsSqliteMutationLock(params, SSO_TOKEN_LOCK_FILENAME, async () => {
57
- await tokenStore.register(makeMSTeamsSsoTokenStoreKey(token.connectionName, token.userId), toPluginJsonValue({ ...token }));
56
+ await require_polls.withMSTeamsSqliteMutationLock(params, SSO_TOKEN_LOCK_FILENAME, async () => {
57
+ await tokenStore.register(makeMSTeamsSsoTokenStoreKey(token.connectionName, token.userId), require_polls.toPluginJsonValue({ ...token }));
58
58
  });
59
59
  },
60
60
  async remove({ connectionName, userId }) {
61
61
  let removed = false;
62
- await withMSTeamsSqliteMutationLock(params, SSO_TOKEN_LOCK_FILENAME, async () => {
62
+ await require_polls.withMSTeamsSqliteMutationLock(params, SSO_TOKEN_LOCK_FILENAME, async () => {
63
63
  removed = await tokenStore.delete(makeMSTeamsSsoTokenStoreKey(connectionName, userId));
64
64
  });
65
65
  return removed;
@@ -67,4 +67,45 @@ function createMSTeamsSsoTokenStoreFs(params) {
67
67
  };
68
68
  }
69
69
  //#endregion
70
- export { isMSTeamsSsoStoreData as a, createMSTeamsSsoTokenStoreFs as i, MSTEAMS_SSO_TOKENS_LEGACY_FILENAME as n, makeMSTeamsSsoTokenStoreKey as o, MSTEAMS_SSO_TOKENS_NAMESPACE as r, normalizeMSTeamsSsoStoredToken as s, MSTEAMS_MAX_SSO_TOKENS as t };
70
+ Object.defineProperty(exports, "MSTEAMS_MAX_SSO_TOKENS", {
71
+ enumerable: true,
72
+ get: function() {
73
+ return MSTEAMS_MAX_SSO_TOKENS;
74
+ }
75
+ });
76
+ Object.defineProperty(exports, "MSTEAMS_SSO_TOKENS_LEGACY_FILENAME", {
77
+ enumerable: true,
78
+ get: function() {
79
+ return MSTEAMS_SSO_TOKENS_LEGACY_FILENAME;
80
+ }
81
+ });
82
+ Object.defineProperty(exports, "MSTEAMS_SSO_TOKENS_NAMESPACE", {
83
+ enumerable: true,
84
+ get: function() {
85
+ return MSTEAMS_SSO_TOKENS_NAMESPACE;
86
+ }
87
+ });
88
+ Object.defineProperty(exports, "createMSTeamsSsoTokenStoreFs", {
89
+ enumerable: true,
90
+ get: function() {
91
+ return createMSTeamsSsoTokenStoreFs;
92
+ }
93
+ });
94
+ Object.defineProperty(exports, "isMSTeamsSsoStoreData", {
95
+ enumerable: true,
96
+ get: function() {
97
+ return isMSTeamsSsoStoreData;
98
+ }
99
+ });
100
+ Object.defineProperty(exports, "makeMSTeamsSsoTokenStoreKey", {
101
+ enumerable: true,
102
+ get: function() {
103
+ return makeMSTeamsSsoTokenStoreKey;
104
+ }
105
+ });
106
+ Object.defineProperty(exports, "normalizeMSTeamsSsoStoredToken", {
107
+ enumerable: true,
108
+ get: function() {
109
+ return normalizeMSTeamsSsoStoredToken;
110
+ }
111
+ });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/msteams",
3
- "version": "2026.7.1-beta.6",
3
+ "version": "2026.7.2-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/msteams",
9
- "version": "2026.7.1-beta.6",
9
+ "version": "2026.7.2-beta.1",
10
10
  "dependencies": {
11
11
  "@azure/identity": "4.13.1",
12
12
  "@microsoft/teams.api": "2.0.13",
@@ -15,7 +15,7 @@
15
15
  "typebox": "1.3.3"
16
16
  },
17
17
  "peerDependencies": {
18
- "openclaw": ">=2026.7.1-beta.6"
18
+ "openclaw": ">=2026.7.2-beta.1"
19
19
  },
20
20
  "peerDependenciesMeta": {
21
21
  "openclaw": {
@@ -233,13 +233,6 @@
233
233
  "exclusiveMinimum": 0,
234
234
  "maximum": 9007199254740991
235
235
  },
236
- "chunkMode": {
237
- "type": "string",
238
- "enum": [
239
- "length",
240
- "newline"
241
- ]
242
- },
243
236
  "streaming": {
244
237
  "type": "object",
245
238
  "properties": {
@@ -356,6 +349,9 @@
356
349
  },
357
350
  "commentary": {
358
351
  "type": "boolean"
352
+ },
353
+ "narration": {
354
+ "type": "boolean"
359
355
  }
360
356
  },
361
357
  "additionalProperties": false
@@ -396,30 +392,6 @@
396
392
  "typingIndicator": {
397
393
  "type": "boolean"
398
394
  },
399
- "blockStreaming": {
400
- "type": "boolean"
401
- },
402
- "blockStreamingCoalesce": {
403
- "type": "object",
404
- "properties": {
405
- "minChars": {
406
- "type": "integer",
407
- "exclusiveMinimum": 0,
408
- "maximum": 9007199254740991
409
- },
410
- "maxChars": {
411
- "type": "integer",
412
- "exclusiveMinimum": 0,
413
- "maximum": 9007199254740991
414
- },
415
- "idleMs": {
416
- "type": "integer",
417
- "minimum": 0,
418
- "maximum": 9007199254740991
419
- }
420
- },
421
- "additionalProperties": false
422
- },
423
395
  "mediaAllowHosts": {
424
396
  "type": "array",
425
397
  "items": {
@@ -432,6 +404,9 @@
432
404
  "type": "string"
433
405
  }
434
406
  },
407
+ "graphMediaFallback": {
408
+ "type": "boolean"
409
+ },
435
410
  "requireMention": {
436
411
  "type": "boolean"
437
412
  },
@@ -731,6 +706,10 @@
731
706
  "label": "MS Teams Service URL",
732
707
  "help": "Bot Connector service URL for SDK proactive sends/edits/deletes. Set with cloud for USGov/DoD; set alone for GCC."
733
708
  },
709
+ "graphMediaFallback": {
710
+ "label": "MS Teams Graph Media Fallback",
711
+ "help": "Query Microsoft Graph for unresolved channel or group-chat HTML media. Adds one lookup per matching message when enabled (default: false)."
712
+ },
734
713
  "streaming": {
735
714
  "label": "MS Teams Streaming",
736
715
  "help": "Microsoft Teams preview/progress streaming mode: \"off\" | \"partial\" | \"block\" | \"progress\". Personal chats use Teams native streaminfo progress when available."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/msteams",
3
- "version": "2026.7.1-beta.6",
3
+ "version": "2026.7.2-beta.1",
4
4
  "description": "OpenClaw Microsoft Teams channel plugin for bot conversations.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "typebox": "1.3.3"
16
16
  },
17
17
  "peerDependencies": {
18
- "openclaw": ">=2026.7.1-beta.6"
18
+ "openclaw": ">=2026.7.2-beta.1"
19
19
  },
20
20
  "peerDependenciesMeta": {
21
21
  "openclaw": {
@@ -26,7 +26,7 @@
26
26
  "extensions": [
27
27
  "./index.ts"
28
28
  ],
29
- "setupEntry": "./dist/setup-entry.js",
29
+ "setupEntry": "./dist/setup-entry.cjs",
30
30
  "channel": {
31
31
  "id": "msteams",
32
32
  "label": "Microsoft Teams",
@@ -51,19 +51,20 @@
51
51
  "minHostVersion": ">=2026.4.10"
52
52
  },
53
53
  "compat": {
54
- "pluginApi": ">=2026.7.1-beta.6"
54
+ "pluginApi": ">=2026.7.2-beta.1"
55
55
  },
56
56
  "build": {
57
- "openclawVersion": "2026.7.1-beta.6"
57
+ "openclawVersion": "2026.7.2-beta.1",
58
+ "runtimeFormat": "cjs"
58
59
  },
59
60
  "release": {
60
61
  "publishToClawHub": true,
61
62
  "publishToNpm": true
62
63
  },
63
64
  "runtimeExtensions": [
64
- "./dist/index.js"
65
+ "./dist/index.cjs"
65
66
  ],
66
- "runtimeSetupEntry": "./dist/setup-entry.js"
67
+ "runtimeSetupEntry": "./dist/setup-entry.cjs"
67
68
  },
68
69
  "files": [
69
70
  "dist/**",
package/dist/api.js DELETED
@@ -1,3 +0,0 @@
1
- import { t as msteamsPlugin } from "./channel-Cf5LJ4aO.js";
2
- import { c as msteamsSetupAdapter, n as openDelegatedOAuthUrl, s as createMSTeamsSetupWizardBase, t as msteamsSetupWizard } from "./setup-surface-qW-ECHL-.js";
3
- export { createMSTeamsSetupWizardBase, msteamsPlugin, msteamsSetupAdapter, msteamsSetupWizard, openDelegatedOAuthUrl };
@@ -1,2 +0,0 @@
1
- import { t as MSTeamsChannelConfigSchema } from "./config-schema-BL4qQZiA.js";
2
- export { MSTeamsChannelConfigSchema };
@@ -1,2 +0,0 @@
1
- import { t as msteamsPlugin } from "./channel-Cf5LJ4aO.js";
2
- export { msteamsPlugin };