/**
 * Phase 8: Enterprise Patterns - Index
 *
 * Consolidates all enterprise-grade patterns for:
 * - Workflow persistence (save/restore state)
 * - Audit logging (track all actions)
 * - Route guards (enforce permissions)
 * - Error recovery (resilience & crash recovery)
 */

export { WorkflowPersistence, default as persistence } from './workflow-persistence.js';
export { AuditLogger, default as auditLogger } from './audit-logger.js';
export { RouteGuard, default as routeGuard } from './route-guards.js';
export { ErrorRecovery, default as errorRecovery } from './error-recovery.js';

// Default export includes all modules
export default {
  persistence: () => import('./workflow-persistence.js').then(m => m.default),
  auditLogger: () => import('./audit-logger.js').then(m => m.default),
  routeGuard: () => import('./route-guards.js').then(m => m.default),
  errorRecovery: () => import('./error-recovery.js').then(m => m.default),
};
