Skip to content

fix(action): Preload Pi node-only providers#324

Merged
dcramer merged 1 commit into
mainfrom
fix/pi-action-provider-preload
May 15, 2026
Merged

fix(action): Preload Pi node-only providers#324
dcramer merged 1 commit into
mainfrom
fix/pi-action-provider-preload

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 15, 2026

Preload Pi provider modules during GitHub Action startup so ncc-bundled action runs do not hit Pi non-literal node-only import paths during analysis.

Action Bundle Compatibility

The action now registers Pi Bedrock through the exported provider module and loads the Codex provider while the temporary ncc missing-builtin rejection guard is active. This mirrors Pi's own bundled entrypoint pattern and keeps lazy provider setup out of the later analysis path.

Validation

Local validation passed for lint, typecheck, the focused compatibility test, package build, action bundle build, and a preload smoke test. A full local pnpm test run still fails in src/cli/files.test.ts because fast-glob hits EACCES while scanning /tmp/snap-private-tmp, unrelated to this action change.

Fixes #322

Preload Pi provider modules during GitHub Action startup so ncc-bundled runs do not hit Pi's non-literal node-only import paths during analysis. Register Bedrock's exported provider module and load the Codex provider under the same temporary rejection guard used for Pi's env-key probes.

Fixes GH-322
Co-Authored-By: GPT-5 Codex <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review May 15, 2026 17:05
@dcramer
Copy link
Copy Markdown
Member Author

dcramer commented May 15, 2026

Im not happy with this long term, but the ncc fixes for now will be fine.

@dcramer dcramer merged commit 26fbc6d into main May 15, 2026
15 checks passed
@dcramer dcramer deleted the fix/pi-action-provider-preload branch May 15, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pi Bedrock runtime fails in bundled GitHub Action with missing ./amazon-bedrock.js module

1 participant