Skip to content

fix(clibuddy): add run helper with better error messaging#154

Merged
rqbazan merged 2 commits intomainfrom
fix/improve-error-messaging
Mar 14, 2026
Merged

fix(clibuddy): add run helper with better error messaging#154
rqbazan merged 2 commits intomainfrom
fix/improve-error-messaging

Conversation

@rqbazan
Copy link
Member

@rqbazan rqbazan commented Mar 14, 2026

Summary

  • Add run helper in @vlandoss/clibuddy that extracts the shared CLI entry point pattern (try/catch with error formatting and process exit)
  • Handles non-Error throwables like Bun's ResolveMessage which have a .message property but don't extend Error, preventing opaque output like ResolveMessage {}
  • Simplify main.ts in both run-run and starter packages by using the new run helper

Test plan

  • pnpm rr test:static passes (biome + tsc)
  • pnpm test passes (unit tests)
  • CI passes

🤖 Generated with Claude Code

Extract shared CLI entry point logic into a `run` function in clibuddy.
Handles non-Error throwables like Bun's ResolveMessage which have a
`.message` property but don't extend Error, preventing opaque output
like "ResolveMessage {}".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2026

🦋 Changeset detected

Latest commit: b6db97f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@vlandoss/clibuddy Patch
@vlandoss/run-run Patch
@vlandoss/starter Patch
@vlandoss/localproxy Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 14, 2026

Preview release

Latest commit: b6db97f

Some packages have been released:

Package Version Install
@vlandoss/clibuddy v0.0.9-git-b6db97f.0 @vlandoss/clibuddy@v0.0.9-git-b6db97f.0
@vlandoss/run-run v0.0.19-git-b6db97f.0 @vlandoss/run-run@v0.0.19-git-b6db97f.0
@vlandoss/starter v0.0.13-git-b6db97f.0 @vlandoss/starter@v0.0.13-git-b6db97f.0

Note

Use the PR number as tag to install any package. For instance:

pnpm add @vlandoss/clibuddy@pr-154

@rqbazan rqbazan merged commit 577f4c7 into main Mar 14, 2026
3 checks passed
@rqbazan rqbazan deleted the fix/improve-error-messaging branch March 14, 2026 03:13
@github-actions github-actions bot mentioned this pull request Mar 14, 2026
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.

1 participant