{"version":3,"sources":["../src/index.ts"],"names":["AIPresets","createAI","config","AIEngine","VERSION"],"mappings":"qJAoBO,IAAMA,CAAY,CAAA,CACvB,WAAa,CAAA,CACX,SAAU,MACV,CAAA,KAAA,CAAO,CACL,OAAA,CAAS,IACT,CAAA,GAAA,CAAK,GACL,CAAA,OAAA,CAAS,IACT,QAAU,CAAA,KACZ,CACA,CAAA,KAAA,CAAO,IACT,CAAA,CAEA,UAAY,CAAA,CACV,SAAU,QACV,CAAA,KAAA,CAAO,eACP,CAAA,KAAA,CAAO,CACL,OAAS,CAAA,IAAA,CACT,GAAK,CAAA,IAAA,CACL,QAAS,GACT,CAAA,QAAA,CAAU,KACZ,CAAA,CACA,SAAW,CAAA,CACT,iBAAmB,CAAA,EAAA,CACnB,WAAY,CACZ,CAAA,QAAA,CAAU,gBACZ,CAAA,CACA,MAAO,CACL,WAAA,CAAa,CACb,CAAA,SAAA,CAAW,IACX,QAAU,CAAA,GAAA,CACV,OAAS,CAAA,aACX,CACF,CAAA,CAEA,eAAiB,CAAA,CACf,SAAU,QACV,CAAA,KAAA,CAAO,eACP,CAAA,KAAA,CAAO,CACL,OAAS,CAAA,IAAA,CACT,GAAK,CAAA,IAAA,CACL,QAAS,GACT,CAAA,QAAA,CAAU,KACZ,CAAA,CACA,SAAW,CAAA,CACT,iBAAmB,CAAA,GAAA,CACnB,WAAY,EACZ,CAAA,QAAA,CAAU,cACZ,CAAA,CACA,iBAAmB,CAAA,CAAC,WAAa,CAAA,QAAQ,CAC3C,CAEA,CAAA,aAAA,CAAe,CACb,QAAA,CAAU,QACV,CAAA,KAAA,CAAO,eACP,CAAA,KAAA,CAAO,CACL,OAAS,CAAA,IAAA,CACT,GAAK,CAAA,KAAA,CACL,QAAS,GACT,CAAA,QAAA,CAAU,KACZ,CAAA,CACA,UAAW,CACT,iBAAA,CAAmB,EACnB,CAAA,UAAA,CAAY,CACZ,CAAA,QAAA,CAAU,cACZ,CACF,CACF,EAGA,eAAsBC,CACpBC,CAAAA,CAAAA,CAA8C,EAC9C,CAAA,CACA,GAAM,CAAE,SAAAC,CAAS,CAAA,CAAI,MAAM,OAAO,0BAAkB,CAAA,CACpD,OAAO,IAAIA,EAAS,CAClB,GAAGH,CAAU,CAAA,UAAA,CACb,GAAGE,CACL,CAAC,CACH,KAGaE,CAAU,CAAA","file":"index.cjs","sourcesContent":["// Core exports\nexport { AIEngine } from './core/ai-engine';\nexport { CacheManager } from './core/cache-manager';\nexport { ConfigManager } from './core/config-manager';\nexport { ErrorHandler, type EnhancedError } from './core/error-handler';\nexport { RateLimiter } from './core/rate-limiter';\nexport { RetryManager } from './core/retry-manager';\nexport { TokenManager } from './core/token-manager';\n\n// Monitoring exports\nexport { Analytics } from './monitoring/analytics';\nexport { PerformanceMonitor } from './monitoring/performance-monitor';\n\n// Provider exports\nexport * from './providers';\n\n// Type exports\nexport * from './types';\n\n// Configuration presets\nexport const AIPresets = {\n  development: {\n    provider: 'mock' as const,\n    cache: {\n      enabled: true,\n      ttl: 600000,\n      maxSize: 100,\n      strategy: 'lru' as const,\n    },\n    debug: true,\n  },\n\n  production: {\n    provider: 'openai' as const,\n    model: 'gpt-3.5-turbo',\n    cache: {\n      enabled: true,\n      ttl: 3600000,\n      maxSize: 500,\n      strategy: 'lru' as const,\n    },\n    rateLimit: {\n      requestsPerMinute: 60,\n      concurrent: 5,\n      strategy: 'sliding-window' as const,\n    },\n    retry: {\n      maxAttempts: 3,\n      baseDelay: 1000,\n      maxDelay: 30000,\n      backoff: 'exponential' as const,\n    },\n  },\n\n  highPerformance: {\n    provider: 'openai' as const,\n    model: 'gpt-3.5-turbo',\n    cache: {\n      enabled: true,\n      ttl: 7200000,\n      maxSize: 1000,\n      strategy: 'lru' as const,\n    },\n    rateLimit: {\n      requestsPerMinute: 100,\n      concurrent: 10,\n      strategy: 'token-bucket' as const,\n    },\n    fallbackProviders: ['anthropic', 'google'] as const,\n  },\n\n  costOptimized: {\n    provider: 'openai' as const,\n    model: 'gpt-3.5-turbo',\n    cache: {\n      enabled: true,\n      ttl: 86400000,\n      maxSize: 200,\n      strategy: 'lfu' as const,\n    },\n    rateLimit: {\n      requestsPerMinute: 30,\n      concurrent: 5,\n      strategy: 'fixed-window' as const,\n    },\n  },\n} as const;\n\n// Quick start function\nexport async function createAI(\n  config: Partial<import('./types').AIConfig> = {}\n) {\n  const { AIEngine } = await import('./core/ai-engine');\n  return new AIEngine({\n    ...AIPresets.production,\n    ...config,\n  });\n}\n\n// Version\nexport const VERSION = '1.0.0';\n"]}