// AI Management Types

export interface AISkill {
  id: string;
  name: string;
  description: string;
  enabled: boolean;
  category: "communication" | "research" | "development" | "automation";
}

export interface AIModel {
  id: string;
  name: string;
  provider: string;
  enabled: boolean;
  isDefault: boolean;
}

export interface ApiConfig {
  id: string;
  name: string;
  key: string;
  configured: boolean;
  description: string;
}

export interface CronJob {
  id: string;
  name: string;
  schedule: string;
  enabled: boolean;
  lastRun?: string;
  nextRun?: string;
}

// Current configuration
export const defaultSkills: AISkill[] = [
  { id: "github", name: "GitHub", description: "Manage GitHub issues, PRs, and repos", enabled: true, category: "development" },
  { id: "healthcheck", name: "Health Check", description: "VPS security and hardening", enabled: true, category: "automation" },
  { id: "skill-creator", name: "Skill Creator", description: "Create and manage agent skills", enabled: false, category: "development" },
  { id: "tmux", name: "Tmux", description: "Remote terminal sessions", enabled: true, category: "development" },
  { id: "weather", name: "Weather", description: "Get weather and forecasts", enabled: true, category: "research" },
  { id: "automation-workflows", name: "Automation", description: "Design automation workflows", enabled: false, category: "automation" },
  { id: "docker-sandbox", name: "Docker Sandbox", description: "Safe code execution environment", enabled: false, category: "development" },
];

export const defaultModels: AIModel[] = [
  { id: "minimax", name: "MiniMax M2.5", provider: "minimax", enabled: true, isDefault: true },
  { id: "sonnet", name: "Claude Sonnet 4.5", provider: "anthropic", enabled: true, isDefault: false },
  { id: "gemini-flash", name: "Gemini 3 Flash", provider: "google", enabled: false, isDefault: false },
];

export const defaultApis: ApiConfig[] = [
  { id: "perplexity", name: "Perplexity AI", key: "PERPLEXITY_API_KEY", configured: false, description: "Web research and live information" },
  { id: "openweather", name: "OpenWeatherMap", key: "OPENWEATHER_API_KEY", configured: false, description: "Weather data for morning brief" },
  { id: "newsapi", name: "News API", key: "NEWS_API_KEY", configured: false, description: "AI and market news" },
  { id: "coingecko", name: "CoinGecko", key: "", configured: true, description: "Crypto prices (free, no key needed)" },
  { id: "alphavantage", name: "Alpha Vantage", key: "ALPHA_VANTAGE_API_KEY", configured: false, description: "Stock market data" },
  { id: "things3", name: "Things 3", key: "", configured: false, description: "Todoist as alternative" },
];

export const defaultCronJobs: CronJob[] = [
  { id: "morning-brief", name: "Morning Brief", schedule: "6:00 AM CET", enabled: true, nextRun: "2026-02-17 06:00" },
  { id: "backup", name: "Daily Backup", schedule: "2:00 AM CET", enabled: false },
  { id: "healthcheck", name: "Weekly Security Audit", schedule: "Sunday 3:00 AM", enabled: false },
];
