/** * Aggregate exports for all tagged errors across service domains. * * This barrel file enables: * - Individual domain imports: `import { AgentNotFoundError } from 'fred/effect'` * - Union type imports: `import { FredError } from 'fred/effect'` * - Effect catchTag pattern: `Effect.catchTag("AgentNotFoundError", (e) => ...)` */ export * from './agent/errors'; export * from './pipeline/errors'; export * from './context/errors'; export * from './tool/errors'; export * from './platform/errors'; export * from './hooks/errors'; export * from './intent/errors'; export * from './routing/errors'; import type { AgentError } from './agent/errors'; import type { PipelineError } from './pipeline/errors'; import type { ContextError } from './context/errors'; import type { ToolError } from './tool/errors'; import type { ProviderError } from './platform/errors'; import type { HookError } from './hooks/errors'; import type { IntentError } from './intent/errors'; import type { RoutingError } from './routing/errors'; /** * Union of all Fred service errors, enabling exhaustive error handling. * * Use this type when you need to handle errors across all service domains: * ```typescript * Effect.catchAll((error: FredError) => { * if (error._tag === 'AgentNotFoundError') { ... } * else if (error._tag === 'PipelineExecutionError') { ... } * }) * ``` */ export type FredError = AgentError | PipelineError | ContextError | ToolError | ProviderError | HookError | IntentError | RoutingError; //# sourceMappingURL=errors.d.ts.map