Dashboard › cli › Distillation
84cd9170-6687-4dcc-b80d-95e43e2a91b1["lore_tm_v1_OAzBIzG-6Srhpq2LJXo2t64DuDg4gSDuuD31iIH2opc","lore_tm_v1_gUfQNzgbako-T-T8Op_qjidgIvVIK4XkAPOzxoHw-hs"]
Date: Sep 10, 2026
packages/cli/src/lib/errors.ts:124-165 defines HostScopeError extends CliError for destination hosts that do not match the active token’s scoped host; fetch-layer and entry-point guards throw it, and withAuthGuard rethrows it like AuthError while swallowing ApiError and other transient failures.HostScopeError has two constructor forms: new HostScopeError(source, destinationUrl, tokenHost) for standard mismatch errors and new HostScopeError(message) for the login-command refusal requiring confirmation with --url. It always uses EXIT.AUTH_HOST_SCOPE and sets this.name = "HostScopeError".destinationUrl but no tokenHost, HostScopeError states no Sentry credentials are configured for that host and instructs sentry auth login --url ${destinationUrl}. With both values, it states the destination does not match credential host ${tokenHost}, gives the same login command, and advises removing the URL override to retain current credentials.packages/cli/test/lib/oauth.test.ts; no file contents were provided in this turn.