Skip to content

refactor: consolidate Teams and Zoom meeting plugin shells - #115707

Merged
steipete merged 8 commits into
mainfrom
refactor/loc-meeting-shells
Jul 29, 2026
Merged

steipete merged 8 commits into
mainfrom
refactor/loc-meeting-shells

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Microsoft Teams and Zoom meeting plugins carried separate copies of the same configuration normalization, CLI construction, node shell, browser transport, probe, session-type, and plugin-entry mechanics. That duplication made behavior-neutral maintenance expensive and made the two implementations easy to drift.

Why This Change Was Made

This maintainer-requested, AI-assisted refactor moves the mechanical shell into the existing meeting-bot runtime seam and exposes it through the existing MeetingPlatformAdapter SDK object. Platform behavior remains plugin-owned through named hooks: Teams and Zoom retain their distinct gateway timeout budgets, G.711 SoX device selection, CLI probe timeout, node prerequisite deadline, browser rollback ownership, routing rules, invalid-request type, and user-facing strings.

The SDK object shape grows without adding top-level public exports, so the shrink-only Plugin SDK surface budget remains unchanged. Runtime and runtime-setup facades, platform page scripts/adapters/status sources/URLs, and Google Meet remain out of scope.

User Impact

There is no intended user-visible behavior change. Maintainers now have one canonical implementation for the shared Teams/Zoom meeting plugin shell, with 493 fewer production lines.

Evidence

  • Numstat: production +1059/-1552 (net -493); tests +110/-50 (net +60).
  • node scripts/run-vitest.mjs extensions/teams-meetings — 15 files, 171 tests passed.
  • node scripts/run-vitest.mjs extensions/zoom-meetings — 13 files, 92 tests passed.
  • node scripts/run-vitest.mjs src/meeting-bot — 14 files, 88 tests passed.
  • node scripts/run-vitest.mjs extensions/google-meet/src/config.test.ts extensions/google-meet/index.test.ts — 2 files, 165 tests passed; unchanged Google Meet imports remain healthy.
  • node scripts/check-changed.mjs -- <changed files> — passed all core/core-test/extension/extension-test typechecks, core and extension lint, dead-code checks, Plugin SDK API/export/surface guards, import cycles, and changed-surface guards on Blacksmith Testbox tbx_01kyp9rpg4az2d9fn1mzces5pm (Actions run 30429056177).
  • corepack pnpm test:extensions:package-boundary:compile — all 125 bundled plugin packages compiled on Blacksmith Testbox tbx_01kypbzsz8bg0995emkg98wk9s (Actions run 30431354459), including unchanged Google Meet and both migrated plugins.
  • Final callback/type follow-up was rechecked in the same hosted gate family; all four typecheck lanes and lint passed before the successful gate completion.
  • Autoreview: final actionable follow-ups reviewed clean; the full branch review's loopback-field finding was rejected because those fields are inherited from MeetingBrowserHealth, confirmed by green core and extension typechecks.
  • Shared config factory and preserved hooks: src/meeting-bot/plugin-config.ts:101, extensions/teams-meetings/src/config.ts:5, extensions/zoom-meetings/src/config.ts:5.
  • Shared CLI and Zoom-only timeout policy: src/meeting-bot/plugin-cli.ts:68, extensions/zoom-meetings/src/cli.ts:8.
  • Shared plugin shell/type carrier and bounded SDK exposure: src/meeting-bot/plugin-shell.ts:201, src/meeting-bot/plugin-shell.ts:246, src/plugin-sdk/meeting-runtime.ts:78.
  • Hosted CI covers the bundled-plugin dist packaging/build boundary on this exact PR head.

@steipete
steipete marked this pull request as ready for review July 29, 2026 06:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: zoom Zoom plugin plugin: teams-meetings Teams Meetings plugin size: XL maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete force-pushed the refactor/loc-meeting-shells branch 2 times, most recently from bc36c4c to 50f17c1 Compare July 29, 2026 07:30
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Jul 29, 2026
@steipete steipete closed this Jul 29, 2026
@steipete steipete reopened this Jul 29, 2026
@steipete
steipete force-pushed the refactor/loc-meeting-shells branch from 50f17c1 to d8f99d6 Compare July 29, 2026 07:39
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Jul 29, 2026
@steipete
steipete force-pushed the refactor/loc-meeting-shells branch 2 times, most recently from 9543a50 to c8b4296 Compare July 29, 2026 07:51
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Jul 29, 2026
@steipete
steipete force-pushed the refactor/loc-meeting-shells branch from c8b4296 to 9037a9a Compare July 29, 2026 08:08
@steipete
steipete merged commit 43127e1 into main Jul 29, 2026
116 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the refactor/loc-meeting-shells branch July 29, 2026 08:12
vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main: (100 commits)
  fix(hooks): kill gog process tree on gmail-watcher shutdown (#112452)
  fix(memory): avoid phantom continuation pages (#115722)
  fix(agents): reject cancelled foreground commands (#115694)
  fix(telegram): prevent false empty replies after message-tool delivery (#115588)
  refactor: unify session cost rollup scans (#115749)
  fix(agents): honor completed semantic command exits (#115737)
  feat(agents): persist last-used session model as the agent default (#115717)
  feat(openai): support GPT-Live over backend WebSocket (#115622)
  fix(ui): unify sidebar thread density (#115646)
  feat(ui): path-based agent and panel URLs on Settings > Agents (#115673)
  feat(gateway): serve HTTP byte ranges on media routes (#115667)
  refactor: consolidate Teams and Zoom meeting plugin shells (#115707)
  fix(browser): release unread CDP response streams (#115675)
  feat(ui): move settings save feedback into the sidebar footer (#115679)
  fix(plugins): enforce hook security invariants (#115701)
  refactor: deduplicate extension normalization primitives (#115650)
  feat(gateway): add least-privilege voice-node pairing (#115712)
  fix(ui): restore in-flight assistant replies after reconnect (#115691)
  fix(whatsapp): infer native media from filenames (#115725)
  fix(system-agent): avoid TUI startup catalog preparation (#113136)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…115707)

* refactor(meetings): consolidate plugin shells

* chore(plugin-sdk): refresh meeting runtime baseline

* refactor(meetings): consolidate SDK shell surface

* refactor(meetings): trim plugin shell exports

* fix(meetings): preserve shell callback types

* fix(meetings): type gateway timeout callback

* fix(meetings): preserve plugin package boundaries

* fix(meetings): preserve adapter package declarations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR plugin: teams-meetings Teams Meetings plugin plugin: zoom Zoom plugin size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant