UNPKG

@casoon/auditmysite

Version:

Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe

162 lines 5.22 kB
"use strict"; /** * Complete TypeScript definitions for AuditMySite Tauri Desktop App Integration * * This file contains all type definitions needed for seamless integration between * AuditMySite CLI engine and the Tauri desktop application. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TauriIntegrationUtils = exports.DEFAULT_CONFIGURATIONS = void 0; // Re-export streaming types __exportStar(require("../core/reporting/streaming-reporter"), exports); /** * Default configurations for common use cases */ exports.DEFAULT_CONFIGURATIONS = { /** Quick test configuration (default) */ QUICK: { sitemapUrl: '', outputDir: './reports', maxPages: 5, timeout: 15000, wait: 1000, format: 'html', enhancedFeatures: { modernHtml5: true, ariaEnhanced: true, chrome135Features: true, semanticAnalysis: true, }, advanced: { concurrency: 2, standard: 'WCAG2AA', includePerformance: true, verbose: false, }, streaming: { enabled: true, chunkSize: 10, bufferTimeout: 1000, includeDetailedResults: true, compressResults: false, }, }, /** Comprehensive test configuration */ COMPREHENSIVE: { sitemapUrl: '', outputDir: './reports', maxPages: 50, timeout: 30000, wait: 3000, format: 'html', enhancedFeatures: { modernHtml5: true, ariaEnhanced: true, chrome135Features: true, semanticAnalysis: true, }, advanced: { concurrency: 3, standard: 'WCAG2AA', includePerformance: true, verbose: true, }, streaming: { enabled: true, chunkSize: 10, bufferTimeout: 1000, includeDetailedResults: true, compressResults: false, }, }, /** CI/CD configuration */ CI_CD: { sitemapUrl: '', outputDir: './reports', maxPages: 20, timeout: 20000, wait: 2000, format: 'markdown', enhancedFeatures: { modernHtml5: true, ariaEnhanced: true, chrome135Features: false, // Might not be available in CI semanticAnalysis: true, }, advanced: { concurrency: 1, standard: 'WCAG2AA', includePerformance: true, verbose: false, }, streaming: { enabled: true, chunkSize: 10, bufferTimeout: 1000, includeDetailedResults: true, compressResults: false, }, }, }; /** * Helper functions for type guards and validation */ var TauriIntegrationUtils; (function (TauriIntegrationUtils) { function isStreamEvent(obj) { return (typeof obj === 'object' && obj !== null && 'type' in obj && 'sessionId' in obj && 'timestamp' in obj && 'data' in obj); } TauriIntegrationUtils.isStreamEvent = isStreamEvent; function isProgressEvent(event) { return event.type === 'progress'; } TauriIntegrationUtils.isProgressEvent = isProgressEvent; function isPageResultEvent(event) { return event.type === 'page_result'; } TauriIntegrationUtils.isPageResultEvent = isPageResultEvent; function isCompleteEvent(event) { return event.type === 'complete'; } TauriIntegrationUtils.isCompleteEvent = isCompleteEvent; function isErrorEvent(event) { return event.type === 'error'; } TauriIntegrationUtils.isErrorEvent = isErrorEvent; function validateAuditConfiguration(config) { return !!(config.sitemapUrl && config.maxPages && config.timeout && config.enhancedFeatures && config.advanced); } TauriIntegrationUtils.validateAuditConfiguration = validateAuditConfiguration; function createDefaultConfig(baseUrl) { return { ...exports.DEFAULT_CONFIGURATIONS.QUICK, sitemapUrl: baseUrl, outputDir: './reports', }; } TauriIntegrationUtils.createDefaultConfig = createDefaultConfig; })(TauriIntegrationUtils || (exports.TauriIntegrationUtils = TauriIntegrationUtils = {})); //# sourceMappingURL=tauri-integration.js.map