import { LifecyclePostconditionViolated, ScaffoldedExtensionUnresolved } from "@agentxm/workspace/transitions/planning"; /** * Conversions from the extension-materialization 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 { ArchiveIntegrityMismatch, CanonicalPackageProbeFailed, CreateDestinationExists, HookDefinitionInvalid, HookInstallStateMissing, KnowledgeDefinitionInvalid, KnowledgeDesiredStateUnreconcilable, KnowledgeInstallStateMissing, KnowledgeIoFailed, KnowledgeObservableContractViolated, KnowledgeResolutionMissing, KnowledgeUnavailable, McpAgentSyncRefused, McpCanonicalPathUnsafe, McpInstallStateMissing, McpLocalNameConflict, McpRequiredInputsMissing, McpWorkspacePackageInvalid, PackArchiveFetchFailed, PackDefinitionInvalid, PackInstallStateMissing, PackStagingFailed, PackageCopyFailed, PackageMaterializationFailed, RuleDefinitionInvalid, RuleInstallStateMissing, SkillDefinitionInvalid, SkillInstallStateMissing, SkillMaterializationFailed, StagedPackageInvalid, SubagentContentUnreadable, SubagentDefinitionInvalid, SubagentInstallStateMissing } from "@agentxm/workspace/materialization"; import { type AppError } from "../app-error.js"; export declare const packageMaterializationFailedToAppError: (error: PackageMaterializationFailed) => AppError; /** Translate a staged-package required-file failure. */ export declare const stagedPackageInvalidToAppError: (error: StagedPackageInvalid) => AppError; /** Translate a canonical-state probe failure; the site owns the fact sentence. */ export declare const canonicalPackageProbeFailedToAppError: (error: CanonicalPackageProbeFailed) => AppError; /** Translate a package copy failure with the caller's severity decision. */ export declare const packageCopyFailedToAppError: (error: PackageCopyFailed) => AppError; /** Translate an archive integrity mismatch with the canonical recovery text. */ export declare const archiveIntegrityMismatchToAppError: (error: ArchiveIntegrityMismatch) => AppError; /** Translate a create-only destination collision with the canonical recovery. */ export declare const createDestinationExistsToAppError: (error: CreateDestinationExists) => AppError; /** Translate a create-name settings collision with the canonical recovery. */ export declare const lifecyclePostconditionViolatedToAppError: (error: LifecyclePostconditionViolated) => AppError; /** Translate an unresolvable freshly scaffolded extension. */ export declare const scaffoldedExtensionUnresolvedToAppError: (error: ScaffoldedExtensionUnresolved) => AppError; /** Translate a materialized-tree integrity walk failure. */ export declare const ruleDefinitionInvalidToAppError: (error: RuleDefinitionInvalid) => AppError; /** Translate missing rule install state, reproducing each kind's detail. */ export declare const ruleInstallStateMissingToAppError: (error: RuleInstallStateMissing) => AppError; /** Translate an invalid hook definition; the site owns the fact sentence. */ export declare const hookDefinitionInvalidToAppError: (error: HookDefinitionInvalid) => AppError; /** Translate an invalid agent hooks configuration file. */ export declare const hookInstallStateMissingToAppError: (error: HookInstallStateMissing) => AppError; /** Translate a transient-backup failure, reproducing each step's detail. */ export declare const subagentDefinitionInvalidToAppError: (error: SubagentDefinitionInvalid) => AppError; /** Translate unreadable canonical subagent content with its location hint. */ export declare const subagentContentUnreadableToAppError: (error: SubagentContentUnreadable) => AppError; /** Translate a subagent filesystem failure; the site owns the fact sentence. */ export declare const subagentInstallStateMissingToAppError: (error: SubagentInstallStateMissing) => AppError; /** Translate missing MCP install state. */ export declare const mcpInstallStateMissingToAppError: (error: McpInstallStateMissing) => AppError; /** Translate a local MCP connection name that already stands for another source. */ export declare const mcpLocalNameConflictToAppError: (error: McpLocalNameConflict) => AppError; /** Translate a canonical MCP path that would escape the workspace. */ export declare const mcpCanonicalPathUnsafeToAppError: (error: McpCanonicalPathUnsafe) => AppError; /** Translate a workspace-authored MCP package that is not where it says it is. */ export declare const mcpWorkspacePackageInvalidToAppError: (error: McpWorkspacePackageInvalid) => AppError; /** Translate required MCP inputs nothing supplied on an unattended install. */ export declare const mcpRequiredInputsMissingToAppError: (error: McpRequiredInputsMissing) => AppError; /** Translate a refused projection of an MCP connection into the configured agents. */ export declare const mcpAgentSyncRefusedToAppError: (error: McpAgentSyncRefused) => AppError; /** Translate a shared-target resolution conflict; members own the reason. */ export declare const skillDefinitionInvalidToAppError: (error: SkillDefinitionInvalid) => AppError; /** Translate a skill artifact failure; the site owns the fact sentence. */ export declare const skillMaterializationFailedToAppError: (error: SkillMaterializationFailed) => AppError; /** Translate missing skill install state, reproducing each kind's detail. */ export declare const skillInstallStateMissingToAppError: (error: SkillInstallStateMissing) => AppError; /** Translate a missing AXM skill compatibility verdict. */ export declare const packDefinitionInvalidToAppError: (error: PackDefinitionInvalid) => AppError; /** Translate missing pack install state. */ export declare const packInstallStateMissingToAppError: (error: PackInstallStateMissing) => AppError; /** Translate a pack archive fetch failure. */ export declare const packArchiveFetchFailedToAppError: (error: PackArchiveFetchFailed) => AppError; /** Translate a pack staging failure. */ export declare const packStagingFailedToAppError: (error: PackStagingFailed) => AppError; /** Translate an unresolvable pack dependency request; the site owns the sentence. */ export declare const knowledgeDefinitionInvalidToAppError: (error: KnowledgeDefinitionInvalid) => AppError; /** Translate a Knowledge filesystem failure; the site owns the fact sentence. */ export declare const knowledgeIoFailedToAppError: (error: KnowledgeIoFailed) => AppError; /** Translate missing Knowledge install state, reproducing each kind's detail. */ export declare const knowledgeInstallStateMissingToAppError: (error: KnowledgeInstallStateMissing) => AppError; /** Translate a missing Knowledge lock resolution. */ export declare const knowledgeResolutionMissingToAppError: (error: KnowledgeResolutionMissing) => AppError; /** Translate an unreconcilable Knowledge desired-state graph. */ export declare const knowledgeDesiredStateUnreconcilableToAppError: (_error: KnowledgeDesiredStateUnreconcilable) => AppError; /** Translate unrestorable locked Knowledge content; the site owns the sentence. */ export declare const knowledgeUnavailableToAppError: (error: KnowledgeUnavailable) => AppError; /** Translate a Knowledge observable postcondition violation. */ export declare const knowledgeObservableContractViolatedToAppError: (error: KnowledgeObservableContractViolated) => AppError; //# sourceMappingURL=extension-materialization.d.ts.map