UNPKG

apple-hig-mcp

Version:

High-performance MCP server providing instant access to Apple's Human Interface Guidelines via hybrid static/dynamic content delivery

64 lines 1.79 kB
/** * Comprehensive HIG Discovery Service * * Dynamic discovery service that combines multiple strategies: * 1. Known Apple HIG URL patterns and structures * 2. HTTP-based discovery when network allows * 3. Comprehensive fallback based on Apple's documented HIG structure * * This ensures we capture 100+ sections across all Apple platforms. */ import type { HIGSection } from '../types.js'; import type { HIGCache } from '../cache.js'; export declare class ComprehensiveHIGDiscoveryService { private cache; private readonly baseUrl; private readonly cacheKey; private readonly cacheTTL; constructor(cache: HIGCache); /** * Discover all HIG sections using comprehensive approach */ discoverSections(): Promise<HIGSection[]>; /** * Build comprehensive list of known HIG sections based on Apple's documented structure */ private buildComprehensiveKnownSections; /** * Helper to add sections for a specific platform */ private addSectionsForPlatform; /** * Try HTTP-based discovery as supplementary strategy */ private tryHttpDiscovery; /** * Parse links from HTML (simplified version) */ private parseLinksFromHTML; /** * Create a HIGSection from URL and title */ private createSection; /** * Infer category from path and title */ private inferCategory; /** * Normalize platform names */ private normalizePlatform; /** * Format titles consistently */ private formatTitle; /** * Check if URL should be skipped */ private shouldSkipUrl; /** * Remove duplicate sections */ private removeDuplicates; } //# sourceMappingURL=comprehensive-hig-discovery.service.d.ts.map