UNPKG

@wonderwhy-er/desktop-commander

Version:

MCP server for terminal operations and file editing

26 lines (25 loc) 1.14 kB
/** * Sanitizes error objects to remove potentially sensitive information like file paths * @param error Error object or string to sanitize * @returns An object with sanitized message and optional error code */ export declare function sanitizeError(error: any): { message: string; code?: string; }; /** * Send an event to Google Analytics * @param event Event name * @param properties Optional event properties */ export declare const captureBase: (captureURL: string, event: string, properties?: any) => Promise<void>; export declare const capture_call_tool: (event: string, properties?: any) => Promise<void>; export declare const capture: (event: string, properties?: any) => Promise<void>; export declare const capture_ui_event: (event: string, properties?: any) => Promise<void>; /** * Wrapper for capture() that automatically adds remote flag for remote-device telemetry * Also adds additional privacy filtering to remove sensitive identity information * @param event Event name * @param properties Optional event properties */ export declare const captureRemote: (event: string, properties?: any) => Promise<void>;