export class AgentExecutorProvider {
    factory;
    settingsRepository;
    constructor(factory, settingsRepository) {
        this.factory = factory;
        this.settingsRepository = settingsRepository;
    }
    async getExecutor() {
        const settings = await this.settingsRepository.load();
        if (!settings) {
            throw new Error('Settings not found. Please run initialization first.');
        }
        return this.factory.createExecutor(settings.agent.type, settings.agent);
    }
}
