fix: Remove npm latest install, add PR checks, improve error handling and formatting - #26
Merged
Merged
Conversation
glesage
marked this pull request as ready for review
July 10, 2026 01:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR cleans up the CI pipelines, fixes formatting, improves error handling with proper error chaining, and updates the TypeScript target to ES2022.
Changes
CI & Tooling
.github/workflows/pr-checks.yml): Adds automated CI that runs lint, format check, build, example build/test, and unit tests on every PR to catch issues early.npm install -g npm@latest(.github/workflows/publish-npm.yml): Eliminates an unnecessary global npm upgrade step from the publish workflow.format:checkscript (package.json): Adds abun run format:checkscript for CI to verify formatting without writing changes.Error handling
.causeacrossbedrock-client.ts,config.ts, andvalidators.ts: Wraps caught errors with the original error attached viaError.cause, enabling better debugging by preserving the full error chain.Bug fixes
openrouter-client.ts): Wraps chat parameters in achatRequestobject to match the updated SDK interface.Formatting
PromptModal.svelte): Closes textarea tags on the same line to satisfy prettier formatting rules.tsconfig.json): BumpstargetandlibfromES2020toES2022, which is required for nativeError.causesupport.