diff --git a/docs/plans/2026-02-06-openclaw-feature-gap-analysis.md b/docs/plans/2026-02-06-openclaw-feature-gap-analysis.md index 0d371fa..1b5e14e 100644 --- a/docs/plans/2026-02-06-openclaw-feature-gap-analysis.md +++ b/docs/plans/2026-02-06-openclaw-feature-gap-analysis.md @@ -23,7 +23,7 @@ | Signal | signal-cli | Signal adapter | **MATCH** | | iMessage / BlueBubbles | imsg + BlueBubbles | -- | **MISSING** | | Google Chat | Chat API | -- | **MISSING** | -| Microsoft Teams | Bot Framework | -- | **MISSING** | +| Microsoft Teams | Bot Framework | Teams adapter | **MATCH** | | Matrix | Extension | -- | **MISSING** | | Zalo / Zalo Personal | Extension | -- | **MISSING** | | WebChat | Gateway-served | Full WebSocket + SPA dashboard | **MATCH** | @@ -291,8 +291,7 @@ All five Tier 3 items implemented: Lane Queue (per-session FIFO in gateway), cre - DM pairing codes (PairingManager with TTL codes, all 4 channel adapters, gateway handlers, TUI /pair command) **Remaining channels (if desired):** -6. Microsoft Teams (Bot Framework) -7. Google Chat (Chat API) +6. Google Chat (Chat API) ### Tier 5 — Deferred / Niche diff --git a/docs/plans/2026-02-15-openclaw-gap-roadmap.md b/docs/plans/2026-02-15-openclaw-gap-roadmap.md index f8fa9e9..9cefa60 100644 --- a/docs/plans/2026-02-15-openclaw-gap-roadmap.md +++ b/docs/plans/2026-02-15-openclaw-gap-roadmap.md @@ -21,9 +21,7 @@ A gap item is considered implemented when: ### Channels / Frontends (MISSING) -- Matrix - Google Chat -- Microsoft Teams - iMessage/BlueBubbles - Zalo - LINE/Feishu/Mattermost @@ -332,7 +330,7 @@ These are substantial UX/ecosystem projects or highly platform-specific; defer u - Bonjour/mDNS discovery - QMD backend - ClawHub registry -- Teams/Google Chat (enterprise/ops heavy) +- Google Chat (enterprise/ops heavy) - iMessage/BlueBubbles (Apple ecosystem) ## Suggested Next Execution Order diff --git a/docs/plans/2026-02-16-microsoft-teams-channel-adapter-checklist.md b/docs/plans/2026-02-16-microsoft-teams-channel-adapter-checklist.md new file mode 100644 index 0000000..32a08b7 --- /dev/null +++ b/docs/plans/2026-02-16-microsoft-teams-channel-adapter-checklist.md @@ -0,0 +1,44 @@ +# Microsoft Teams Channel Adapter Checklist + +Date: 2026-02-16 +Status: completed + +## Scope + +- Add a first-class Microsoft Teams channel adapter using Bot Framework activity webhooks. +- Support inbound activity handling and outbound message replies through Bot Framework REST. + +## Completed + +- Added `TeamsAdapter` in `src/channels/teams/adapter.ts`: + - inbound activity handling for `POST /teams/events` + - mention-aware group message gating (`require_mention`) + - optional conversation allowlist (`allowed_conversation_ids`) + - outbound Bot Framework send using OAuth client credentials token flow + - reply routing via encoded `metadata.replyPeerId` +- Registered channel exports: + - `src/channels/teams/index.ts` + - `src/channels/index.ts` +- Added config schema support in `src/config/schema.ts`: + - `teams.app_id` + - `teams.app_password` + - `teams.allowed_conversation_ids` + - `teams.require_mention` +- Wired daemon + gateway integration: + - registration in `src/daemon/channels.ts` + - gateway Teams route handling in `src/gateway/server.ts` (`POST /teams/events`) +- Updated service discovery + docs: + - `src/gateway/handlers/services.ts` + - `README.md` + - `config/default.yaml` + - secret redaction for `teams.app_password` in `src/cli/shared.ts` +- Added tests: + - `src/channels/teams/adapter.test.ts` + - `src/config/schema.test.ts` (teams schema coverage) + - `src/gateway/handlers/services.test.ts` (teams service status) + - `src/cli/shared.test.ts` (teams secret redaction) + +## Verification + +- `pnpm test:run src/channels/teams/adapter.test.ts src/config/schema.test.ts src/gateway/handlers/services.test.ts src/cli/shared.test.ts` +- `pnpm typecheck` diff --git a/docs/plans/state.json b/docs/plans/state.json index 1fb11ee..896db4d 100644 --- a/docs/plans/state.json +++ b/docs/plans/state.json @@ -499,6 +499,34 @@ ], "test_status": "pnpm test:run src/channels/signal/adapter.test.ts src/config/schema.test.ts src/gateway/handlers/services.test.ts + pnpm typecheck passing" }, + "microsoft-teams-channel-adapter": { + "file": "2026-02-16-microsoft-teams-channel-adapter-checklist.md", + "status": "completed", + "date": "2026-02-16", + "updated": "2026-02-16", + "summary": "Added a first-class Microsoft Teams adapter using Bot Framework activity webhooks and OAuth client-credential outbound send flow, including mention-aware group gating, conversation allowlist support, gateway route wiring (`POST /teams/events`), docs, and tests.", + "files_created": [ + "docs/plans/2026-02-16-microsoft-teams-channel-adapter-checklist.md", + "src/channels/teams/adapter.ts", + "src/channels/teams/adapter.test.ts", + "src/channels/teams/index.ts" + ], + "files_modified": [ + "src/config/schema.ts", + "src/config/schema.test.ts", + "src/daemon/channels.ts", + "src/channels/index.ts", + "src/gateway/server.ts", + "src/gateway/handlers/services.ts", + "src/gateway/handlers/services.test.ts", + "src/cli/shared.ts", + "src/cli/shared.test.ts", + "README.md", + "config/default.yaml", + "docs/api/PROTOCOL.md" + ], + "test_status": "pnpm test:run src/channels/teams/adapter.test.ts src/config/schema.test.ts src/gateway/handlers/services.test.ts src/cli/shared.test.ts + pnpm typecheck passing" + }, "openclaw-style-personal-agent-without-openclaw-risks": { "file": "2026-02-14-openclaw-style-personal-agent-without-openclaw-risks-plan.md", "status": "completed", @@ -2821,12 +2849,12 @@ "tier2_completion": "4/4 (100%) — inbound webhooks, vector memory search, Dockerfile, heartbeat monitor", "tier3_completion": "5/5 (100%) — lane queue, credential redaction, web UI token dashboard, xAI (Grok) provider, Voyage AI embeddings", "tier4_completion": "4/4 (100%) — gateway lock, shell completion, Tailscale Serve/Funnel, DM pairing codes", - "feature_gap_scorecard": "110/128 match (86%), 0 partial (0%), 18 missing (14%)", + "feature_gap_scorecard": "111/128 match (87%), 0 partial (0%), 17 missing (13%)", "operator_dx_milestone": "Phase 3 (Live Ops Dashboard): 2/2 plans complete — milestone done", "gmail_auth_cli": "flynn gmail-auth command implemented with OAuth2 flow, doctor check, config routed to Telegram", "native_audio_support": "completed — smart routing for native audio (Gemini/OpenAI/GitHub) vs Whisper transcription fallback", "remaining_phases_completion": "Phase 1: 3/3 (100%) — context levels, command registry, memory structure. Phase 2: 3/3 (100%) — component registry, confidence routing, history index. Phase 3: 2/2 (100%) — adaptive memory/compaction, truthfulness/autonomy hardening", - "next_up": "OpenClaw gap: Microsoft Teams channel adapter (open next scoped implementation checklist)" + "next_up": "OpenClaw gap: Google Chat channel adapter (open next scoped implementation checklist)" }, "soul_md_and_cron_create": { "date": "2026-02-11",