Repository navigation
feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core - #109964
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bc1b0f430a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "providers": { | ||
| "type": "object", | ||
| "additionalProperties": { "type": "object" } | ||
| } |
There was a problem hiding this comment.
Declare provider API keys as secret inputs
When users configure Teams realtime provider overrides with SecretRefs at plugins.entries.teams-meetings.config.realtime.providers.<id>.apiKey, this manifest only exposes providers as arbitrary objects and never declares the matching configContracts.secretInputs path. The plugin config resolver preserves those provider records, but the SecretRef collector only scans manifest secretInputs (src/secrets/runtime-config-collectors-plugins.ts), so Teams-specific API keys will not be resolved/redacted and provider startup can receive unresolved SecretRef objects; add the same realtime.providers.*.apiKey secret contract used by Google Meet.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 499e23eaf7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| requestedMeetingUrl: string | undefined; | ||
| readOnly?: boolean; | ||
| trackedMeetingUrl: string | undefined; | ||
| trackedTargetId: string | undefined; |
There was a problem hiding this comment.
Preserve the public recoverMeetingBrowserTab URL contract
This changes the exported openclaw/plugin-sdk/meeting-runtime helper from the old { url?: ... } parameter to new required requestedMeetingUrl/tracked* fields without a compatibility path. External plugin callers that still pass url either fail to typecheck against the new SDK or, for JS/already-built callers, now run with requestedMeetingUrl undefined and can recover the first arbitrary meeting tab instead of the requested meeting. Keep url as an alias/deprecated field or add a new helper so shipped SDK consumers are not broken.
Useful? React with 👍 / 👎.
| import { TEAMS_MEETINGS_NODE_COMMAND } from "./transports/teams-meetings-platform-constants.js"; | ||
|
|
||
| function commandExists(command: string, timeoutMs: number): boolean { | ||
| const result = spawnSync("/bin/sh", ["-lc", 'command -v "$1" >/dev/null 2>&1', "sh", command], { |
There was a problem hiding this comment.
Add Teams node host to process-exec CodeQL coverage
This new node host executes local process checks/commands, but I checked .github/codeql/codeql-process-exec-boundary-critical-security.yml and .github/workflows/codeql.yml: the process-exec profile and PR path trigger include extensions/google-meet/src but not extensions/teams-meetings/src. As a result this new dangerous node-host surface is outside the targeted high-severity process-exec CodeQL scan; add the Teams path to both places so this code and future Teams-only changes are scanned.
Useful? React with 👍 / 👎.
| "enabledByDefault": false, | ||
| "commandAliases": [{ "name": "teamsmeetings" }], | ||
| "activation": { | ||
| "onStartup": true, |
There was a problem hiding this comment.
Include Teams in the startup activation baseline
With this manifest declaring activation.onStartup: true, the existing src/plugins/bundled-plugin-metadata.test.ts test iterates every extensions/*/openclaw.plugin.json and compares all startup-enabled IDs to EXPECTED_BUNDLED_STARTUP_PLUGIN_IDS; that baseline in this commit still lacks teams-meetings, so the bundled metadata test will fail. Add the ID to the expected startup list, or make this false if Teams should not load a startup sidecar.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…ot core (openclaw#109964) * feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core * fix(teams-meetings): satisfy lint and package-boundary contracts
…ot core (openclaw#109964) * feat(teams-meetings): join Microsoft Teams meetings via the meeting-bot core * fix(teams-meetings): satisfy lint and package-boundary contracts
What Problem This Solves
OpenClaw can join Google Meet calls but not Microsoft Teams meetings. After #109755 extracted the platform-agnostic meeting-bot core, Teams support should be a thin adapter — this PR is that adapter, and the first proof that the
MeetingPlatformAdapterseam holds for a second platform.Why This Change Was Made
New bundled plugin
extensions/teams-meetings: OpenClaw joins Teams meetings (workteams.microsoft.com/l/meetup-join/...and consumerteams.live.com/meet/...) as a guest via the Teams web client in Chrome, reusing the shared meeting-bot core end to end — session runtime, browser controller, BlackHole/SoX audio bridge, node relay, realtime agent/bidi engines, setup checks. The Teams adapter plus page scripts total 468 LOC vs Google Meet's 813 for the same contract — the seam works.Surface:
teams_meetingsagent tool,teamsmeetingsCLI,teamsmeetings.*gateway methods,teamsmeetings.chromenode command, minimal disabled-by-default config. Captions/transcribe mode ships disabled pending live DOM validation. No dial-in or meeting creation in v1. Themsteamstext channel plugin is untouched.One small core change (decided during review): the shared tab-recovery seam now carries the tracked target and the originally requested meeting URL, so recovery survives Teams rewriting the tab URL to
/v2/...; identity checks use the requested URL, recognizably-wrong meetings are rejected, and the Google Meet call site was updated in the same change (no compat shim).Three review-hardening rounds (Codex gpt-5.6-sol xhigh) fixed 18 findings before this PR was opened, including: per-agent session authorization for tool calls; camera/microphone control action-vs-state parsing (no join with camera on, no false mute states); verifying BlackHole is the selected input before any auto-unmute (fail-closed to a manual action); participant-visible page text can no longer drive bot state (departure/permission classification uses structural UI signals only); consumer meeting passcodes distinguish reuse identity; explicit rejection of invalid modes (no silent talk-back fallback); remote node setup probes validate platform/BlackHole/SoX and the actual configured executables; per-request timeouts honored.
Known limitation: in-page selectors (data-tid first, text fallback, centralized in one module) are best-effort pending live validation against the real Teams web client — the PR body of record lists the exact flows needing live checks (interstitial, guest name, prejoin toggles, lobby, permissions, in-call/leave, audio routing). Proposed follow-up: Crabbox live-validation run joining a real Teams meeting. Adapter-contract follow-up:
permissions()should receive the meeting origin (Teams spans two domains; auto-grant plans are omitted until then).User Impact
New capability: point an agent at a Teams meeting link and OpenClaw can join as a guest, listen (STT→agent→TTS), or run a realtime voice model, matching the Google Meet feature set minus captions/dial-in/create. Disabled by default; requires the same BlackHole+SoX setup as Google Meet.
Evidence
node scripts/run-vitest.mjs extensions/teams-meetings extensions/google-meet src/meeting-bot: 31 files, 364 tests pass (URL identity tables, hostile page-text cases, authorization, label-parsing tables, recovery URL-rewrite case, fake-browser session flows).git diff --checkclean; docs link check green..github/labeler.ymlupdated; theplugin: teams-meetingsGitHub label needs creation at merge.