mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
0d5c7b6d79
* fix(windows): report missing native launch controls as unavailable capabilities An admitted Windows native artifact may predate the optional protocol stdin or Job Object memory limit controls. WindowsOwnedProcess correctly refused such launches, but threw a plain Error, so providers projected the refusal as execution_failure with generic `rea doctor` advice and left the package remedy in nested diagnostics. Introduce RuntimeControlUnavailableError as the shared owner of expected host-control refusals. PrivateRuntimeRootUnavailableError and the new WindowsNativeControlUnavailableError (which records the missing control) extend it, and the six provider adapters that hand-built the same AnalysisCapabilityUnavailableError now project any subtype through one helper. The refusal still precedes every native launch. Fixes #6050 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(errors): drop capability imports superseded by the shared helper Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
514 B
TypeScript
15 lines
514 B
TypeScript
import { RuntimeControlUnavailableError } from "./RuntimeControlUnavailableError.js";
|
|
|
|
/** Expected failure when a runtime root's privacy boundary is unavailable. */
|
|
export class PrivateRuntimeRootUnavailableError extends RuntimeControlUnavailableError {
|
|
readonly code = "private-runtime-root-authority-unavailable";
|
|
|
|
constructor(
|
|
message: string,
|
|
options?: ErrorOptions & { readonly retryable?: boolean },
|
|
) {
|
|
super(message, options);
|
|
this.name = "PrivateRuntimeRootUnavailableError";
|
|
}
|
|
}
|