/** * Conversions from the extension-authoring typed failure family into CLI-facing * `AppError` values. Each converter reproduces the detail template its * construction sites rendered before decoupling — the byte-for-byte contract * for this family lives in the table-driven conversion tests. * * @experimental This API is unstable and may change without notice. */ import type { AuthoringOwnerMismatch, AuthoringOwnerRequired, AuthoringScopeUnsupported, CreateDestinationInspectionFailed, CreateNameConfigured, ForkPackageConflict, ForkPackageFailed, ForkPackageInvalid, NativeImportConflict, NativeImportFailed, NativeImportInvalid, NativeImportUnsupported, PackGraphInvalid, PackManifestUnavailable, PackMemberAmbiguous, PackMemberNotDeclared, PackMemberNotFound, PackMemberUnmanaged, PackNotAuthored, PackNotConfigured, PackOwnerUnconfigured, PackSelectorAmbiguous, PackSelectorNotAPack, PackSourceMissing, ScaffoldNameInvalid } from "@agentxm/workspace/authoring"; import { type AppError } from "../app-error.js"; export declare const createNameConfiguredToAppError: (error: CreateNameConfigured) => AppError; /** Translate a create-destination inspection failure. */ export declare const createDestinationInspectionFailedToAppError: (error: CreateDestinationInspectionFailed) => AppError; /** Translate a path-safety violation. */ export declare const forkPackageInvalidToAppError: (error: ForkPackageInvalid) => AppError; /** Translate a fork conflict; the site owns the fact sentence. */ export declare const forkPackageConflictToAppError: (error: ForkPackageConflict) => AppError; /** Translate a fork filesystem failure; the site owns the fact sentence. */ export declare const forkPackageFailedToAppError: (error: ForkPackageFailed) => AppError; /** Translate an unsupported native-import type. */ export declare const nativeImportUnsupportedToAppError: (error: NativeImportUnsupported) => AppError; /** Translate a native-import validation failure; the site owns the fact sentence. */ export declare const nativeImportInvalidToAppError: (error: NativeImportInvalid) => AppError; /** Translate a native-import target collision. */ export declare const nativeImportConflictToAppError: (error: NativeImportConflict) => AppError; /** Translate a native-import filesystem failure; the site owns the fact sentence. */ export declare const nativeImportFailedToAppError: (error: NativeImportFailed) => AppError; /** Translate a refused source-authority transition with its recovery facts. */ /** * Translate the refusal that no owner is configured. The candidates the * feature named become the recovery command; when it named none, the * recovery asks for a handle instead of inventing one. */ export declare const authoringOwnerRequiredToAppError: (error: AuthoringOwnerRequired) => AppError; /** Translate a requested owner that disagrees with the workspace's. */ export declare const authoringOwnerMismatchToAppError: (error: AuthoringOwnerMismatch) => AppError; /** Translate a name an authored package cannot carry, naming the rule. */ export declare const scaffoldNameInvalidToAppError: (error: ScaffoldNameInvalid) => AppError; /** Translate authoring requested in a scope that holds no authored packages. */ export declare const authoringScopeUnsupportedToAppError: (error: AuthoringScopeUnsupported) => AppError; /** Translate a pack selector that names something other than a pack. */ export declare const packSelectorNotAPackToAppError: (error: PackSelectorNotAPack) => AppError; /** Translate a pack selector no configured pack answers to. */ export declare const packNotConfiguredToAppError: (error: PackNotConfigured) => AppError; /** * Translate an ambiguous pack identity. The recovery names each configured * pack; the command shell that knows the rest of the invocation turns them * into runnable commands. */ export declare const packSelectorAmbiguousToAppError: (error: PackSelectorAmbiguous) => AppError; /** Translate a configured pack that declares no source. */ export declare const packSourceMissingToAppError: (error: PackSourceMissing) => AppError; /** Translate an edit requested against a pack the workspace does not author. */ export declare const packNotAuthoredToAppError: (error: PackNotAuthored) => AppError; /** Translate an authored pack in a workspace that records no owner. */ export declare const packOwnerUnconfiguredToAppError: (error: PackOwnerUnconfigured) => AppError; /** Translate a pack manifest that could not be read, parsed, or decoded. */ export declare const packManifestUnavailableToAppError: (error: PackManifestUnavailable) => AppError; /** Translate a membership edit refused while the pack itself is invalid. */ export declare const packGraphInvalidToAppError: (error: PackGraphInvalid) => AppError; /** Translate a bare member name installed under more than one type. */ export declare const packMemberAmbiguousToAppError: (error: PackMemberAmbiguous) => AppError; /** Translate a member the workspace holds without a resolved version. */ export declare const packMemberUnmanagedToAppError: (error: PackMemberUnmanaged) => AppError; /** Translate a member selector nothing in the workspace answers to. */ export declare const packMemberNotFoundToAppError: (error: PackMemberNotFound) => AppError; /** Translate a member selector nothing in the pack manifest answers to. */ export declare const packMemberNotDeclaredToAppError: (error: PackMemberNotDeclared) => AppError; //# sourceMappingURL=extension-authoring.d.ts.map