chore(cli): migrate @fern-api/local-workspace-runner to use CliError#15006
chore(cli): migrate @fern-api/local-workspace-runner to use CliError#15006
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d103aff to
f25f353
Compare
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
f25f353 to
86759e9
Compare
SDK Generation Benchmark ResultsComparing PR branch against latest nightly baseline on Full benchmark table (click to expand)
main (generator): generator-only time via --skip-scripts (includes Docker image build, container startup, IR parsing, and code generation — this is the same Docker-based flow customers use via |
Docs Generation Benchmark ResultsComparing PR branch against latest nightly baseline on
Docs generation runs |

Description
Migrates
@fern-api/local-workspace-runnerto use explicitCliErrorerror codes on everyfailAndThrow/failWithoutThrowingcall site.This is one of the package migration PRs that follow the error classification system introduced in #14749.
Changes Made
Assigned typed error codes across call sites in
packages/cli/generation/local-generation/local-workspace-runner/src/.Error codes used
CONTAINER_ERRORCONFIG_ERRORVERSION_ERRORINTERNAL_ERRORFiles touched (grouped by area)
GenerationRunner.ts,runLocalGenerationForWorkspace.tsdynamic-snippets/java/DynamicSnippetsJavaTestGenerator.tsTesting
pnpm test, excluding e2e and pre-existing environment failures)