/** * Conversions from the workspace source-resolution failure families into * CLI-facing `AppError` values. Each converter is a field copy: the carried * category (or the tag's fixed category) becomes the code, the resolution * site's sentence carries over verbatim, and `recover`/`cmd` reproduce the * former envelope sugar. The byte-for-byte contract lives in the * table-driven conversion tests. * * @experimental This API is unstable and may change without notice. */ import { type AxmSkillGateUnavailable, type GitOperationFailed, type SourceError, type SourceHostNotConfigured, type SourceNetworkFailure, type SourceNotResolvable, type SourceSyntaxInvalid, type WorkspaceCatalogUnavailable } from "@agentxm/workspace/resolution/sources"; import { type AppError } from "../app-error.js"; /** Input that does not parse as any source locator grammar. */ export declare const sourceSyntaxInvalidToAppError: (error: SourceSyntaxInvalid) => AppError; /** Valid input that no configured source host serves. */ export declare const sourceHostNotConfiguredToAppError: (error: SourceHostNotConfigured) => AppError; /** A locator or identifier that did not resolve; the site owns category and wording. */ export declare const sourceNotResolvableToAppError: (error: SourceNotResolvable) => AppError; /** A network-facing acquisition step failed. */ export declare const sourceNetworkFailureToAppError: (error: SourceNetworkFailure) => AppError; /** A git subprocess failure: clones are network, SHA reads are validation. */ export declare const gitOperationFailedToAppError: (error: GitOperationFailed) => AppError; /** * A workspace catalog port failure: the Live chose category, wording, and * suggestions from the workspace failure it wrapped, so the envelope carries * them over 1:1. */ export declare const workspaceCatalogUnavailableToAppError: (error: WorkspaceCatalogUnavailable) => AppError; /** * An official AXM skill gate port failure: the Live chose category, wording, * and suggestions, so the envelope carries them over 1:1. */ export declare const axmSkillGateUnavailableToAppError: (error: AxmSkillGateUnavailable) => AppError; /** Convert any package-owned source failure into the CLI-facing envelope. */ export declare const sourceErrorToAppError: (error: SourceError) => AppError; //# sourceMappingURL=extension-sources.d.ts.map