UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

75 lines • 2.18 kB
/** * AI Feedback Cloud Handler - Remote Collection API * * Provides cloud-based feedback collection API endpoints for remote AI-Debug users * to submit feedback from distributed systems with privacy-preserving aggregation. */ import { BaseHandler } from './base-handler.js'; import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { AIFeedbackEntry } from '../utils/ai-feedback-collector.js'; export interface CloudFeedbackBatch { batchId: string; timestamp: number; sourceSystem: string; userIdHash?: string; feedbackEntries: Partial<AIFeedbackEntry>[]; metadata: { version: string; systemType: 'local' | 'cloud' | 'enterprise'; anonymized: boolean; region?: string; }; } export interface CloudFeedbackValidation { isValid: boolean; errors: string[]; warnings: string[]; sanitizedEntries: Partial<AIFeedbackEntry>[]; } /** * Cloud Feedback Collection Handler for Remote AI-Debug Users */ export declare class AIFeedbackCloudHandler extends BaseHandler { private feedbackCollector; private logger; private batchQueue; private processedBatches; constructor(); tools: Tool[]; handle(toolName: string, args: any): Promise<any>; /** * Upload a batch of feedback from remote users */ private uploadFeedbackBatch; /** * Validate feedback batch for quality and privacy */ private validateFeedbackBatch; /** * Get cloud collection system status */ private getCloudCollectionStatus; /** * Process feedback batches in queue */ private processFeedbackQueue; /** * Export aggregated cloud feedback data */ private exportCloudFeedback; /** * Configure cloud collection settings */ private configureCloudCollection; private generateBatchId; private hashUserId; private sanitizeFeedbackEntry; private sanitizeRating; private sanitizeTextArray; private sanitizeText; private sanitizeSessionId; private sanitizeAgentType; private sanitizeComplexity; private processBatch; } //# sourceMappingURL=ai-feedback-cloud-handler.d.ts.map