Skip to content

(pi-ai) Undeclared dependency on @smithy/node-http-handler breaks Bedrock provider under pnpm #4842

@madeleineostoja

Description

@madeleineostoja

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

  1. pnpm add -g @earendil-works/pi-coding-agent
  2. Configure or invoke any amazon-bedrock model
  3. Observe the import error above.

Expected behavior

Bedrock provider should work when Pi is installed with pnpm

Version

0.75.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions