// Installation tiers
const TIERS = {
  BASIC: 'basic',
  INTERMEDIATE: 'intermediate',
  ADVANCED: 'advanced'
};

// Default installation paths by platform
const DEFAULT_PATHS = {
  win32: 'C:\\Program Files\\DashCaddy',
  darwin: '/Applications/DashCaddy',
  linux: '/opt/dashcaddy'
};

// Required subdirectories (matches production layout)
const REQUIRED_DIRS = ['sites', 'sites/status', 'sites/status/assets', 'sites/dashcaddy-api'];

// Default ports
const DEFAULT_PORTS = {
  API: 3001,
  CADDY_ADMIN: 2019
};

// Error categories
const ERROR_CATEGORIES = {
  CRITICAL: 'critical',
  RECOVERABLE: 'recoverable',
  NON_CRITICAL: 'non-critical',
  USER_ERROR: 'user-error'
};

// Installation steps
const INSTALLATION_STEPS = [
  { id: 'welcome', label: 'Welcome' },
  { id: 'dependencies', label: 'Dependencies' },
  { id: 'folder', label: 'Installation Path' },
  { id: 'tier', label: 'Deployment Tier' },
  { id: 'dns', label: 'DNS Configuration' },
  { id: 'dashboard', label: 'Dashboard Setup' },
  { id: 'install', label: 'Installation' },
  { id: 'complete', label: 'Complete' }
];

module.exports = {
  TIERS,
  DEFAULT_PATHS,
  REQUIRED_DIRS,
  DEFAULT_PORTS,
  ERROR_CATEGORIES,
  INSTALLATION_STEPS
};
