/** * Conversions from the typed failures of features the workspace kernel does * not render — lint staging, sharing, and inspection — into the CLI-facing * `AppError` envelope. Every failure the kernel renders, including publish * refusals and the Registry access family a challenged remote write or a * sign-in settles with, projects through `app-error/conversions`. * * @experimental This API is unstable and may change without notice. */ import { AppError } from "./app-error/index.js"; import type { ExpectedCliError } from "./cli-runtime/index.js"; import { type RegistryAccessFailure } from "@agentxm/registry-access/authentication"; import { LintStagingFailed } from "@agentxm/workspace-features/linting"; import { WorkspaceInspectionFailed } from "@agentxm/workspace-features/inspection"; /** * Translate a lint input-staging failure: the implementation chose the * category, title, and wording at construction, so the envelope carries them * over 1:1. */ export declare const lintStagingFailedToAppError: (error: LintStagingFailed) => AppError; /** * Convert any failure a workspace lint run can surface — the feature's own * typed refusal, or a known kernel failure it read the workspace through — * into the CLI-facing `AppError`. */ export declare const lintFailureToAppError: (failure: unknown) => AppError; /** Convert sharing refusals and workspace/Git read failures into the CLI envelope. */ export declare const shareFailureToAppError: (failure: unknown) => AppError; /** * Convert only the Registry access capability's own typed failures into the * envelope, leaving every other expected failure untouched. Concretely typed * so the auth members leave the channel instead of being reabsorbed by a * generic parameter. */ export declare const coerceAuthFailure: (failure: ExpectedCliError | RegistryAccessFailure) => ExpectedCliError; /** * Convert configuration failures into the envelope while letting the typed * initialization cancellation pass through to the runtime envelope's silent * success exit. */ export declare const coerceConfigurationFailure: (failure: unknown) => ExpectedCliError; /** * Translate a workspace inspection query failure: the implementation chose * the category and wording at construction, so the envelope carries them over * 1:1 through the same normalization the envelope constructor applies. */ export declare const workspaceInspectionFailedToAppError: (error: WorkspaceInspectionFailed) => AppError; /** * Convert any failure a workspace inspection query can surface — the * feature's own typed failure, a known kernel or integration failure, or an * envelope that travelled through a still-coupled channel — into the * CLI-facing `AppError`. */ export declare const inspectionFailureToAppError: (failure: unknown) => AppError; //# sourceMappingURL=feature-errors.d.ts.map