What happened?
@earendil-works/pi-ai imports @smithy/node-http-handler without declaring it in package.json. This currently resolves only because npm flattens the transitive copy brought in by @aws-sdk/client-bedrock-runtime. Under strict installers (pnpm, yarn PnP, npm with --install-strategy=nested) the Bedrock provider fails to load with:
Cannot find package '@smithy/node-http-handler' imported from .../node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.js
Steps to reproduce
pnpm add -g @earendil-works/pi-coding-agent
- Configure or invoke any
amazon-bedrock model
- Observe the import error above.
Expected behavior
Bedrock provider should work when Pi is installed with pnpm
Version
0.75.3
What happened?
@earendil-works/pi-aiimports@smithy/node-http-handlerwithout declaring it inpackage.json. This currently resolves only because npm flattens the transitive copy brought in by@aws-sdk/client-bedrock-runtime. Under strict installers (pnpm, yarn PnP, npm with--install-strategy=nested) the Bedrock provider fails to load with:Steps to reproduce
pnpm add -g @earendil-works/pi-coding-agentamazon-bedrockmodelExpected behavior
Bedrock provider should work when Pi is installed with pnpm
Version
0.75.3