From 7002c68f8b60bdcc806840615665e896aa7a9e0a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 22 May 2026 16:49:17 +0200 Subject: [PATCH] fix(ai): declare Bedrock Smithy HTTP handler dependency closes #4842 --- package-lock.json | 1 + packages/ai/CHANGELOG.md | 1 + packages/ai/package.json | 1 + packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/npm-shrinkwrap.json | 1 + 5 files changed, 5 insertions(+) diff --git a/package-lock.json b/package-lock.json index 3e9361400..cab14c6d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6031,6 +6031,7 @@ "@aws-sdk/client-bedrock-runtime": "3.1048.0", "@google/genai": "1.52.0", "@mistralai/mistralai": "2.2.1", + "@smithy/node-http-handler": "4.7.3", "http-proxy-agent": "7.0.2", "https-proxy-agent": "7.0.6", "openai": "6.26.0", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 768a0525e..7932d9dc5 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -9,6 +9,7 @@ ### Fixed - Fixed GitHub Copilot OAuth login to rely on the required device-code callback without a runtime callback availability guard. +- Fixed Amazon Bedrock provider loading under strict package managers by declaring its direct `@smithy/node-http-handler` dependency ([#4842](https://github.com/earendil-works/pi/issues/4842)). - Fixed Amazon Bedrock Claude requests to send the model output token cap by default, matching Anthropic requests and avoiding Bedrock's 4096-token default truncation ([#4848](https://github.com/earendil-works/pi/issues/4848)). ## [0.75.4] - 2026-05-20 diff --git a/packages/ai/package.json b/packages/ai/package.json index a10a23df9..525c5f6fb 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -69,6 +69,7 @@ "dependencies": { "@anthropic-ai/sdk": "0.91.1", "@aws-sdk/client-bedrock-runtime": "3.1048.0", + "@smithy/node-http-handler": "4.7.3", "@google/genai": "1.52.0", "@mistralai/mistralai": "2.2.1", "http-proxy-agent": "7.0.2", diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 33cf2967a..43643b5f0 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -12,6 +12,7 @@ ### Fixed +- Fixed Amazon Bedrock provider loading under strict package managers by inheriting the declared `@smithy/node-http-handler` dependency from `@earendil-works/pi-ai` ([#4842](https://github.com/earendil-works/pi/issues/4842)). - Fixed exported session HTML to escape quote characters in attribute values ([#4832](https://github.com/earendil-works/pi/issues/4832)). - Fixed GitHub Copilot device-code login to keep opening the verification URL in browser-capable environments while ignoring browser launch failures for headless use. - Fixed git package installs to reconcile existing checkouts to the requested ref and update package settings without losing filters ([#4870](https://github.com/earendil-works/pi/issues/4870)). diff --git a/packages/coding-agent/npm-shrinkwrap.json b/packages/coding-agent/npm-shrinkwrap.json index 85a22b1a1..b9041ce93 100644 --- a/packages/coding-agent/npm-shrinkwrap.json +++ b/packages/coding-agent/npm-shrinkwrap.json @@ -493,6 +493,7 @@ "dependencies": { "@anthropic-ai/sdk": "0.91.1", "@aws-sdk/client-bedrock-runtime": "3.1048.0", + "@smithy/node-http-handler": "4.7.3", "@google/genai": "1.52.0", "@mistralai/mistralai": "2.2.1", "http-proxy-agent": "7.0.2",