/** * Conversions from the agent-integration typed failure families into * CLI-facing `AppError` values. Each converter reproduces the detail template * its construction sites rendered before decoupling — the byte-for-byte * contract for these families lives in the table-driven conversion tests. * * @experimental This API is unstable and may change without notice. */ import type { AgentDetectionFailed, HookConfigInvalid, HookIoFailed, McpConfigInvalid, McpConfigIoFailed, McpDefinitionInvalid, McpEntryUnmanaged, McpOwnershipMarkerInvalid, McpSharedTargetConflict, SubagentIoFailed, TransientBackupFailed } from "@agentxm/workspace/projection/agent-adapters"; import { type AppError } from "../app-error.js"; /** Detection evidence gathering failed: an internal error carrying the facts. */ export declare const agentDetectionFailedToAppError: (error: AgentDetectionFailed) => AppError; export declare const hookConfigInvalidToAppError: (error: HookConfigInvalid) => AppError; /** Translate a hook filesystem failure; the site owns the fact sentence. */ export declare const hookIoFailedToAppError: (error: HookIoFailed) => AppError; /** Translate missing hook install state, reproducing each kind's detail. */ export declare const transientBackupFailedToAppError: (error: TransientBackupFailed) => AppError; /** Translate an invalid subagent definition; the site owns the fact sentence. */ export declare const subagentIoFailedToAppError: (error: SubagentIoFailed) => AppError; /** Translate missing subagent install state, reproducing each kind's detail. */ export declare const mcpConfigInvalidToAppError: (error: McpConfigInvalid) => AppError; /** Translate an MCP filesystem failure; the site owns the fact sentence. */ export declare const mcpConfigIoFailedToAppError: (error: McpConfigIoFailed) => AppError; /** Translate a refusal to touch an unmanaged MCP entry. */ export declare const mcpEntryUnmanagedToAppError: (error: McpEntryUnmanaged) => AppError; /** Translate irreconcilable AXM ownership markers per state and operation. */ export declare const mcpOwnershipMarkerInvalidToAppError: (error: McpOwnershipMarkerInvalid) => AppError; /** Translate an invalid MCP definition; the site owns the fact sentence. */ export declare const mcpDefinitionInvalidToAppError: (error: McpDefinitionInvalid) => AppError; /** Translate a non-registry MCP install with the canonical registry suggestion. */ export declare const mcpSharedTargetConflictToAppError: (error: McpSharedTargetConflict) => AppError; /** Translate an invalid skill definition; the site owns the fact sentence. */ //# sourceMappingURL=agent-integration.d.ts.map