import { AgentEngine } from './types.js';
import { PiTuiEngine } from './pi-tui.js';

export function createAgentEngine(): AgentEngine {
  const engine = (process.env.AGENT_ENGINE || 'pi-tui').toLowerCase();

  switch (engine) {
    case 'pi':
    case 'pi-tui':
    case 'coding-agent':
    case 'pi-coding-agent':
    default:
      return new PiTuiEngine();
  }
}
