From 9a5f4cc4aa86973e2470f62c3d1e3f181cb417bd Mon Sep 17 00:00:00 2001 From: Brad Groux Date: Thu, 12 Mar 2026 01:37:13 -0500 Subject: [PATCH] fix(msteams): add @microsoft/agents-hosting to root dependencies Bundled extensions ship inside the openclaw package (via the files array), but their node_modules are not included. In global/Homebrew installs, Node module resolution cannot find @microsoft/agents-hosting because it was only declared in the extension's package.json and explicitly allowlisted as an expected gap via rootDependencyMirrorAllowlist. This commit: - Adds @microsoft/agents-hosting ^1.3.1 to the root package.json dependencies so it is installed alongside openclaw in all install modes - Clears the now-stale rootDependencyMirrorAllowlist entry in the msteams extension manifest so the release-check gate will catch future drift - Updates pnpm-lock.yaml to include the new root dependency Fixes the runtime error: Cannot find module '@microsoft/agents-hosting' Supersedes #16606. Refs: #15622, #9357, #17089, #41431 --- extensions/msteams/package.json | 4 +--- package.json | 1 + pnpm-lock.yaml | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/msteams/package.json b/extensions/msteams/package.json index c159d091977..8abc64d900a 100644 --- a/extensions/msteams/package.json +++ b/extensions/msteams/package.json @@ -29,9 +29,7 @@ "defaultChoice": "npm" }, "releaseChecks": { - "rootDependencyMirrorAllowlist": [ - "@microsoft/agents-hosting" - ] + "rootDependencyMirrorAllowlist": [] } } } diff --git a/package.json b/package.json index 9c1100bc49f..4dac503265c 100644 --- a/package.json +++ b/package.json @@ -353,6 +353,7 @@ "@mariozechner/pi-ai": "0.57.1", "@mariozechner/pi-coding-agent": "0.57.1", "@mariozechner/pi-tui": "0.57.1", + "@microsoft/agents-hosting": "^1.3.1", "@mozilla/readability": "^0.6.0", "@sinclair/typebox": "0.34.48", "@slack/bolt": "^4.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e26495971c..09573720a68 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,9 @@ importers: '@mariozechner/pi-tui': specifier: 0.57.1 version: 0.57.1 + '@microsoft/agents-hosting': + specifier: ^1.3.1 + version: 1.3.1 '@mozilla/readability': specifier: ^0.6.0 version: 0.6.0