/**
 * Agent Provider Types
 *
 * Defines the provider abstraction layer that enables drop-in replacement
 * of the underlying agent CLI/SDK (e.g., Claude Code, OpenCode) without
 * changing orchestration logic.
 *
 * @module
 */
// ============================================================================
// Provider Errors
// ============================================================================
/**
 * Error thrown when a provider operation fails (e.g., SDK crash, auth failure).
 * Route handlers can catch this to return 503 instead of 500.
 */
export class ProviderError extends Error {
    providerName;
    constructor(message, providerName) {
        super(message);
        this.name = 'ProviderError';
        this.providerName = providerName;
    }
}
//# sourceMappingURL=types.js.map