mcp-teams 0.3.44 → 0.3.45

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/build.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "0.3.44",
3
- "buildId": "119d817ed263"
2
+ "version": "0.3.45",
3
+ "buildId": "5318fa979921"
4
4
  }
@@ -370,7 +370,7 @@ const RECAPTURE_WAIT_MS = 60_000;
370
370
  const RECAPTURE_JOIN_MIN_MS = 20_000;
371
371
  // How long a call waits for a user's Teams tab that is still loading to bring the session.
372
372
  const LOADING_TAB_WAIT_MS = 30_000;
373
- let recapturing = null; // Promise of recaptureAfterReload while it runs, so a second report of the reload starts none
373
+ let recapturing = null; // Promise of recaptureMissingChatSession while it runs, so a second trigger starts none
374
374
  // The background tab (one at a time), kept in chrome.storage.session so a later worker can close it.
375
375
  const HELPER_TAB_KEY = "recaptureHelperTab";
376
376
  // The background tab's run while it is open: { since, waits (Promise<capture|null>[]), tabGone, done, closing }.
@@ -448,7 +448,7 @@ async function awakeTeamsTabs() {
448
448
  * (recaptureInHelperTab). Nothing is done without a Teams tab that has loaded and is awake: one
449
449
  * still loading calls its services itself, and a discarded or unloaded one isn't woken.
450
450
  */
451
- function recaptureAfterReload() {
451
+ function recaptureMissingChatSession() {
452
452
  recapturing ??= (async () => {
453
453
  const since = Date.now();
454
454
  if (await getCapture("chatsvc")) return true;
@@ -470,14 +470,14 @@ const START_CHECK_KEY = "startRecaptureChecked";
470
470
 
471
471
  /**
472
472
  * After a browser start, an extension reload or update, and on each reconnect alarm: once per
473
- * browser session, recaptureAfterReload (calls while it runs share that run). The flag is set
474
- * only once the run has finished and decided something, so a worker suspended mid-run, or a
473
+ * browser session, recaptureMissingChatSession (calls while it runs share that run). The flag is
474
+ * set only once the run has finished and decided something, so a worker suspended mid-run, or a
475
475
  * Teams tab still loading or asleep, leaves it unset: a later alarm checks again.
476
- * Use this, not recaptureAfterReload, for any new trigger.
476
+ * Use this, not recaptureMissingChatSession, for any new trigger.
477
477
  */
478
478
  async function recaptureOnce() {
479
479
  if ((await chrome.storage.session.get(START_CHECK_KEY))[START_CHECK_KEY]) return;
480
- if (await recaptureAfterReload()) await chrome.storage.session.set({ [START_CHECK_KEY]: true });
480
+ if (await recaptureMissingChatSession()) await chrome.storage.session.set({ [START_CHECK_KEY]: true });
481
481
  }
482
482
 
483
483
  /** Closes the background tab, unless the user switched to it, and forgets it. */
@@ -2127,7 +2127,7 @@ export function registerListeners() {
2127
2127
  chrome.storage.onChanged.addListener(onStorageChanged);
2128
2128
  chrome.runtime.onStartup.addListener(connect);
2129
2129
  chrome.runtime.onInstalled.addListener(connect);
2130
- // The captured sessions were cleared (see recaptureAfterReload).
2130
+ // The captured sessions were cleared (see recaptureMissingChatSession).
2131
2131
  chrome.runtime.onStartup.addListener(() => recaptureOnce().catch(() => {}));
2132
2132
  // A browser update (reason "chrome_update") isn't a reload: the sessions are still there.
2133
2133
  chrome.runtime.onInstalled.addListener((d) => (d?.reason === "install" || d?.reason === "update") && recaptureOnce().catch(() => {}));
@@ -2,7 +2,7 @@
2
2
  "manifest_version": 3,
3
3
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvoz9Wexl4ZqY9YtEyBZsu/Qi5Ft5EjNUNB8b30wgt3AR8TjXI5UumcPQFBIm7ZfvBsjgrh6tBJlygsgFbZ5cB1EiI+WSz/2Wcqwz4eowKMXXPvGuDGrO+2O2zbSpTG19/MwTljI+g0TLfn8Vkoqd8z9MskKk+vCZjjV0Jk8QjVEdHypgM7H8zTuUM06SO12IIZMdeE3IURzf35zbjlfPPkJiDWoo3wB9nxAvLd57xrQhPUB/lGtCJk9mS3SY+/VwOlG5kJ9WS/RCHXcs5Qs7huIlKIatmFz7YiducvTR3DKBbjqbMTyqHzXkmkUmJRqzsYtgtKcz0C0cjFOt6uNdhwIDAQAB",
4
4
  "name": "mcp-teams bridge",
5
- "version": "0.3.44",
5
+ "version": "0.3.45",
6
6
  "description": "Lets AI assistants (via the mcp-teams MCP server) read and search Microsoft Teams chats, channels and meeting transcripts and, with your explicit confirmation, post messages.",
7
7
  "minimum_chrome_version": "116",
8
8
  "icons": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-teams",
3
- "version": "0.3.44",
3
+ "version": "0.3.45",
4
4
  "description": "MCP server that lets AI assistants work with Microsoft Teams (web) through a Chrome/Edge extension bridge",
5
5
  "keywords": ["mcp", "model-context-protocol", "teams", "microsoft-teams", "microsoft-365", "chat", "claude", "chrome-extension"],
6
6
  "repository": {