import { AuditStrategy } from './auditStrategyService';
import { DirectAuditStrategy } from './directAuditStrategyService';
import { OutboxAuditStrategy } from './outboxAuditStrategyService';

export function createAuditStrategy(mode: string): AuditStrategy {
	// Strategy fixed at startup, never swapped at runtime
	switch (mode) {
		case 'direct':
			return new DirectAuditStrategy();
		case 'worker':
			return new OutboxAuditStrategy();
		default:
			return new DirectAuditStrategy(); // Safe default
	}
}
