// Fixture: config/config.ts — central configuration
import { BaseConfig } from './types';
import { log } from '../utils/logger';

let _config: BaseConfig | null = null;

export function getConfig(): BaseConfig {
  if (!_config) {
    _config = loadConfigFromDisk();
  }
  return _config;
}

function loadConfigFromDisk(): BaseConfig {
  log('loading config from disk');
  return { defaultAgent: 'default', model: 'claude-sonnet-4', debug: false };
}

export function reloadConfig(): void {
  _config = null;
  getConfig();
}
