/** * The application's failure catalog: the workspace kernel's failure families * composed with each workspace feature's own family into the one set of typed * failures the CLI recognizes and renders. * * Each family's wording lives once, beside its owner; the catalog only routes * a failure to its family, and supplies the rendering of a transition's * deciding failure from the whole catalog so that failure reads as it does * wherever else it surfaces. * * @experimental This API is unstable and may change without notice. */ import * as Layer from "effect/Layer"; import { type AuthoringFamilyFailure } from "@agentxm/workspace-features/authoring"; import { type ConfigurationFamilyFailure } from "@agentxm/workspace-features/configuration"; import type { StepFailure } from "@agentxm/workspace-kernel/operations"; import { type PublishFamilyFailure } from "@agentxm/workspace-features/publishing"; import { StepFailureConversion, type KernelFailure } from "@agentxm/workspace-kernel/reconciliation"; /** Every typed failure the application renders: the kernel's and each feature's. */ export type WorkspaceFailure = KernelFailure | AuthoringFamilyFailure | PublishFamilyFailure | ConfigurationFamilyFailure; /** Whether an untyped failure is one the application renders. */ export declare const isWorkspaceFailure: (failure: unknown) => failure is WorkspaceFailure; /** * Render one workspace failure through its owner's family. A `StepFailure` * is already rendered and passes through unchanged. */ export declare const workspaceFailureToStepFailure: (failure: WorkspaceFailure) => StepFailure; /** * The application's step-failure conversion, provided once per invocation. A * refusal reads for the credential this invocation presents. */ export declare const WorkspaceFailureConversionLive: Layer.Layer; //# sourceMappingURL=failure-catalog.d.ts.map