@openclaw/teams-meetings 2026.10.10 → 2026.11.5-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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"cli-metadata.js","source":"extensions/teams-meetings/cli-metadata.ts"},{"output":"index.js","source":"extensions/teams-meetings/index.ts"}],"chunks":[{"output":"cli-metadata.js","sha256":"6188cdeea7448a97f65a028cb98d2ffc79624da643927719b0658e6e7cd0cb5a","facadeSource":"extensions/teams-meetings/cli-metadata.ts","sources":["extensions/teams-meetings/cli-metadata.ts"]},{"output":"index.js","sha256":"
|
|
1
|
+
{"version":3,"entries":[{"output":"cli-metadata.js","source":"extensions/teams-meetings/cli-metadata.ts"},{"output":"index.js","source":"extensions/teams-meetings/index.ts"}],"chunks":[{"output":"cli-metadata.js","sha256":"6188cdeea7448a97f65a028cb98d2ffc79624da643927719b0658e6e7cd0cb5a","facadeSource":"extensions/teams-meetings/cli-metadata.ts","sources":["extensions/teams-meetings/cli-metadata.ts"]},{"output":"index.js","sha256":"1693b541018b6c89c22be7b9f45646d5b19fcb3c3137b0ec9e6825c64e98bba8","facadeSource":"extensions/teams-meetings/index.ts","sources":["extensions/teams-meetings/index.ts","extensions/teams-meetings/src/transports/teams-meetings-page-scripts.ts","extensions/teams-meetings/src/transports/teams-meetings-platform-adapter.ts","extensions/teams-meetings/src/transports/teams-meetings-selectors.ts","extensions/teams-meetings/src/transports/teams-meetings-status-prejoin-source.ts","extensions/teams-meetings/src/transports/teams-meetings-urls.ts"]}],"unrenderedSources":[]}
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,6 @@ import { addTimerTimeoutGraceMs } from "openclaw/plugin-sdk/number-runtime";
|
|
|
4
4
|
import { REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME } from "openclaw/plugin-sdk/realtime-voice";
|
|
5
5
|
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
6
6
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
|
-
// extensions/teams-meetings/src/errors.ts
|
|
8
|
-
var TeamsMeetingsInvalidRequestError = class extends Error {};
|
|
9
7
|
// extensions/teams-meetings/src/transports/teams-meetings-selectors.ts
|
|
10
8
|
const TEAMS_MEETING_SELECTORS = {
|
|
11
9
|
continueInBrowser: [
|
|
@@ -94,33 +92,6 @@ const TEAMS_MEETING_SELECTORS = {
|
|
|
94
92
|
captionAuthor: ["[data-tid=\"author\"]"],
|
|
95
93
|
captionText: ["[data-tid=\"closed-caption-text\"]"]
|
|
96
94
|
};
|
|
97
|
-
// extensions/teams-meetings/src/transports/teams-meetings-status-call-source.ts
|
|
98
|
-
const teamsMeetingStatusCall = { captionEnableSource: `if (!captionsFinalized && canMutateSession && inCall && !captionsEnabledNow) {
|
|
99
|
-
let captionButton = first(selectors.captions);
|
|
100
|
-
if (!captionButton) {
|
|
101
|
-
first(selectors.moreActions)?.click?.();
|
|
102
|
-
await waitForUi();
|
|
103
|
-
captionButton = first(selectors.captions);
|
|
104
|
-
}
|
|
105
|
-
if (captionButton) {
|
|
106
|
-
const captionLabel = label(captionButton);
|
|
107
|
-
const alreadyEnabled = captionButton.getAttribute?.("aria-checked") === "true" ||
|
|
108
|
-
/hide live captions|turn off captions/i.test(captionLabel) ||
|
|
109
|
-
Boolean(firstRaw(selectors.captionsOff));
|
|
110
|
-
if (!alreadyEnabled) {
|
|
111
|
-
captionButton.click();
|
|
112
|
-
await waitForUi();
|
|
113
|
-
}
|
|
114
|
-
const currentLabel = label(captionButton);
|
|
115
|
-
captionsEnabledNow = captionButton.getAttribute?.("aria-checked") === "true" ||
|
|
116
|
-
/hide live captions|turn off captions/i.test(currentLabel) ||
|
|
117
|
-
Boolean(firstRaw(selectors.captionRenderer)) ||
|
|
118
|
-
Boolean(firstRaw(selectors.captionsOff));
|
|
119
|
-
if (captionsEnabledNow && !alreadyEnabled) {
|
|
120
|
-
notes.push("Enabled Teams live captions for transcript capture.");
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}` };
|
|
124
95
|
// extensions/teams-meetings/src/transports/teams-meetings-status-prejoin-source.ts
|
|
125
96
|
const teamsMeetingStatusPrelude = {
|
|
126
97
|
controlLookupSource: `const buttons = [...document.querySelectorAll("button")];
|
|
@@ -300,12 +271,10 @@ function normalizeTeamsMeetingUrlForReuse(url) {
|
|
|
300
271
|
if (hostname === "teams.live.com") {
|
|
301
272
|
const launcherMatch = (parsed.pathname.toLowerCase() === "/dl/launcher/launcher.html" ? parsed.searchParams.get("url") : void 0)?.match(/^\/_#\/meet\/([^/?#]+)(?:\?(.+))?$/i);
|
|
302
273
|
let lightMeeting;
|
|
303
|
-
if (parsed.pathname.toLowerCase() === "/light-meetings/launch")
|
|
274
|
+
if (parsed.pathname.toLowerCase() === "/light-meetings/launch") {
|
|
304
275
|
const coordinates = parsed.searchParams.get("coords");
|
|
305
276
|
const decoded = coordinates && coordinates.length <= 16384 ? JSON.parse(Buffer.from(coordinates, "base64").toString("utf8")) : void 0;
|
|
306
277
|
if (decoded && typeof decoded === "object") lightMeeting = decoded;
|
|
307
|
-
} catch {
|
|
308
|
-
return;
|
|
309
278
|
}
|
|
310
279
|
const match = parsed.pathname.match(/^\/meet\/([^/]+)\/?$/i) ?? launcherMatch ?? (typeof lightMeeting?.meetingCode === "string" ? [void 0, lightMeeting.meetingCode] : void 0);
|
|
311
280
|
if (!match?.[1]) return;
|
|
@@ -338,8 +307,20 @@ function isRecoverableTeamsMeetingTab(tab, url) {
|
|
|
338
307
|
return Boolean(hostname && (hostname === "login.microsoftonline.com" || hostname.endsWith(".microsoftonline.com")) && /sign in|microsoft|teams/i.test(tab.title ?? ""));
|
|
339
308
|
}
|
|
340
309
|
// extensions/teams-meetings/src/transports/teams-meetings-page-scripts.ts
|
|
341
|
-
|
|
342
|
-
|
|
310
|
+
const teamsMeetingPageScripts = MeetingPlatformAdapter.createPageScripts({
|
|
311
|
+
platform: {
|
|
312
|
+
audioOutputElementIdPrefix: "openclaw-teams-audio-output-",
|
|
313
|
+
manualActionReasonPrefix: "teams",
|
|
314
|
+
displayName: "Teams",
|
|
315
|
+
globals: {
|
|
316
|
+
audioOutputs: "__openclawTeamsAudioOutputs",
|
|
317
|
+
captionArchive: "__openclawTeamsCaptionArchive",
|
|
318
|
+
captions: "__openclawTeamsCaptions",
|
|
319
|
+
meeting: "__openclawTeamsMeeting"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
normalizeUrl: normalizeTeamsMeetingUrlForReuse,
|
|
323
|
+
pageIdentitySource: () => `const meetingIdentity = (rawUrl) => {
|
|
343
324
|
try {
|
|
344
325
|
const parsed = new URL(rawUrl);
|
|
345
326
|
const host = parsed.hostname.toLowerCase();
|
|
@@ -365,7 +346,7 @@ function pageIdentityFunctionSource() {
|
|
|
365
346
|
? JSON.parse(atob(coordinates))
|
|
366
347
|
: undefined;
|
|
367
348
|
if (decoded && typeof decoded === "object") lightMeeting = decoded;
|
|
368
|
-
} catch {}
|
|
349
|
+
} catch { /* Invalid external coordinates do not identify a meeting. */ }
|
|
369
350
|
}
|
|
370
351
|
const match = parsed.pathname.match(/^\\/meet\\/([^/]+)\\/?$/i) || launcherMatch ||
|
|
371
352
|
(typeof lightMeeting?.meetingCode === "string"
|
|
@@ -382,12 +363,11 @@ function pageIdentityFunctionSource() {
|
|
|
382
363
|
? "teams-consumer:" + code.toLowerCase() + ":p:" + encodeURIComponent(passcode || "")
|
|
383
364
|
: undefined;
|
|
384
365
|
}
|
|
385
|
-
} catch {}
|
|
366
|
+
} catch { /* Invalid external URLs do not identify a meeting. */ }
|
|
386
367
|
return undefined;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
return `(input) => {
|
|
368
|
+
};`,
|
|
369
|
+
selectors: TEAMS_MEETING_SELECTORS,
|
|
370
|
+
toggleStateFunction: () => `(input) => {
|
|
391
371
|
const pressed = String(input?.ariaPressed || "").toLowerCase();
|
|
392
372
|
if (pressed === "true") return "on";
|
|
393
373
|
if (pressed === "false") return "off";
|
|
@@ -408,26 +388,34 @@ function teamsMeetingToggleStateFunctionSource() {
|
|
|
408
388
|
if (/\\b(?:microphone|mic) (?:is |currently )?(?:off|muted|disabled)\\b/.test(value)) return "off";
|
|
409
389
|
if (/\\b(?:microphone|mic) (?:is |currently )?(?:on|unmuted|enabled)\\b/.test(value)) return "on";
|
|
410
390
|
return undefined;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
const teamsMeetingPageScripts = MeetingPlatformAdapter.createPageScripts({
|
|
414
|
-
platform: {
|
|
415
|
-
audioOutputElementIdPrefix: "openclaw-teams-audio-output-",
|
|
416
|
-
manualActionReasonPrefix: "teams",
|
|
417
|
-
displayName: "Teams",
|
|
418
|
-
globals: {
|
|
419
|
-
audioOutputs: "__openclawTeamsAudioOutputs",
|
|
420
|
-
captionArchive: "__openclawTeamsCaptionArchive",
|
|
421
|
-
captions: "__openclawTeamsCaptions",
|
|
422
|
-
meeting: "__openclawTeamsMeeting"
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
normalizeUrl: normalizeTeamsMeetingUrlForReuse,
|
|
426
|
-
pageIdentitySource: pageIdentityFunctionSource,
|
|
427
|
-
selectors: TEAMS_MEETING_SELECTORS,
|
|
428
|
-
toggleStateFunction: teamsMeetingToggleStateFunctionSource,
|
|
391
|
+
}`,
|
|
429
392
|
statusPrelude: teamsMeetingStatusPrelude,
|
|
430
|
-
statusCall:
|
|
393
|
+
statusCall: { captionEnableSource: `if (!captionsFinalized && canMutateSession && inCall && !captionsEnabledNow) {
|
|
394
|
+
let captionButton = first(selectors.captions);
|
|
395
|
+
if (!captionButton) {
|
|
396
|
+
first(selectors.moreActions)?.click?.();
|
|
397
|
+
await waitForUi();
|
|
398
|
+
captionButton = first(selectors.captions);
|
|
399
|
+
}
|
|
400
|
+
if (captionButton) {
|
|
401
|
+
const captionLabel = label(captionButton);
|
|
402
|
+
const alreadyEnabled = captionButton.getAttribute?.("aria-checked") === "true" ||
|
|
403
|
+
/hide live captions|turn off captions/i.test(captionLabel) ||
|
|
404
|
+
Boolean(firstRaw(selectors.captionsOff));
|
|
405
|
+
if (!alreadyEnabled) {
|
|
406
|
+
captionButton.click();
|
|
407
|
+
await waitForUi();
|
|
408
|
+
}
|
|
409
|
+
const currentLabel = label(captionButton);
|
|
410
|
+
captionsEnabledNow = captionButton.getAttribute?.("aria-checked") === "true" ||
|
|
411
|
+
/hide live captions|turn off captions/i.test(currentLabel) ||
|
|
412
|
+
Boolean(firstRaw(selectors.captionRenderer)) ||
|
|
413
|
+
Boolean(firstRaw(selectors.captionsOff));
|
|
414
|
+
if (captionsEnabledNow && !alreadyEnabled) {
|
|
415
|
+
notes.push("Enabled Teams live captions for transcript capture.");
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}` },
|
|
431
419
|
leave: {
|
|
432
420
|
controlSource: `const first = (list) => {
|
|
433
421
|
for (const selector of list) {
|
|
@@ -446,14 +434,6 @@ const teamsMeetingPageScripts = MeetingPlatformAdapter.createPageScripts({
|
|
|
446
434
|
}
|
|
447
435
|
});
|
|
448
436
|
// extensions/teams-meetings/src/transports/teams-meetings-platform-adapter.ts
|
|
449
|
-
function teamsMeetingOrigin(meetingUrl) {
|
|
450
|
-
try {
|
|
451
|
-
const origin = new URL(meetingUrl).origin;
|
|
452
|
-
return origin === "https://teams.microsoft.com" || origin === "https://teams.live.com" ? origin : void 0;
|
|
453
|
-
} catch {
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
437
|
const TEAMS_MEETINGS_PLATFORM_ADAPTER = MeetingPlatformAdapter.create({
|
|
458
438
|
id: "teams-meetings",
|
|
459
439
|
displayName: "Microsoft Teams meetings",
|
|
@@ -495,7 +475,14 @@ const TEAMS_MEETINGS_PLATFORM_ADAPTER = MeetingPlatformAdapter.create({
|
|
|
495
475
|
manualActionReasonPrefix: "teams",
|
|
496
476
|
retryCaptions: true,
|
|
497
477
|
unavailableMessage: "Open the OpenClaw browser profile, finish the Teams sign-in, admission, or permission prompt, then retry.",
|
|
498
|
-
origin:
|
|
478
|
+
origin: (meetingUrl) => {
|
|
479
|
+
try {
|
|
480
|
+
const origin = new URL(meetingUrl).origin;
|
|
481
|
+
return origin === "https://teams.microsoft.com" || origin === "https://teams.live.com" ? origin : void 0;
|
|
482
|
+
} catch {
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
},
|
|
499
486
|
scripts: teamsMeetingPageScripts
|
|
500
487
|
})
|
|
501
488
|
});
|
|
@@ -514,7 +501,7 @@ const teamsMeetingsPlugin = MeetingPlatformAdapter.defineBrowserMeetingPlugin({
|
|
|
514
501
|
defaultRealtimeInstructions: `You are joining a private Microsoft Teams meeting as an OpenClaw voice transport. Keep spoken replies brief and natural. In agent mode, wait for OpenClaw consult results and speak them exactly. In bidi mode, answer directly and call ${REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME} for deeper reasoning, current information, or tools.`,
|
|
515
502
|
resolveGatewayOperationTimeoutMs: (config) => Math.max(6e4, addTimerTimeoutGraceMs(config.chrome.joinTimeoutMs, 3e4) ?? 1)
|
|
516
503
|
},
|
|
517
|
-
InvalidRequestError: TeamsMeetingsInvalidRequestError,
|
|
504
|
+
InvalidRequestError: class TeamsMeetingsInvalidRequestError extends Error {},
|
|
518
505
|
toolUrlDescription: "Microsoft Teams meeting URL",
|
|
519
506
|
transcriptSource: {
|
|
520
507
|
id: "teams",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/teams-meetings",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.5-beta.1",
|
|
4
4
|
"description": "OpenClaw Microsoft Teams browser meeting participant plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"openclaw": ">=2026.
|
|
11
|
+
"openclaw": ">=2026.11.5-beta.1"
|
|
12
12
|
},
|
|
13
13
|
"peerDependenciesMeta": {
|
|
14
14
|
"openclaw": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"minHostVersion": ">=2026.9.8"
|
|
27
27
|
},
|
|
28
28
|
"compat": {
|
|
29
|
-
"pluginApi": ">=2026.
|
|
29
|
+
"pluginApi": ">=2026.11.5-beta.1"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.
|
|
32
|
+
"openclawVersion": "2026.11.5-beta.1",
|
|
33
33
|
"bundledDist": false
|
|
34
34
|
},
|
|
35
35
|
"release": {
|