UNPKG

cleanifix

Version:

Intelligent data cleaning CLI with natural language support - Docker-powered Python engine

57 lines 1.91 kB
import { EventEmitter } from 'events'; export interface PythonCommand { type: 'validate' | 'transform' | 'analyze' | 'clean' | 'health_check'; payload: Record<string, any>; id?: string; } export interface PythonResponse { success: boolean; type: string; result?: any; error?: { message: string; type: string; traceback?: string; }; warning?: string; id?: string; } export interface BridgeOptions { pythonPath?: string; enginePath?: string; timeout?: number; maxRetries?: number; debug?: boolean; quiet?: boolean; } export declare class PythonBridge extends EventEmitter { private process; private pythonPath; private enginePath; private timeout; private maxRetries; private debug; private quiet; private isReady; private commandQueue; private buffer; constructor(options?: BridgeOptions); initialize(): Promise<void>; private checkPythonAvailability; private startProcess; private handleStdout; private handleStderr; private waitForReady; sendCommand(command: PythonCommand): Promise<PythonResponse>; executeWithRetry(command: PythonCommand, retries?: number): Promise<PythonResponse>; healthCheck(): Promise<boolean>; restart(): Promise<void>; shutdown(): Promise<void>; validate(input: string, options?: Record<string, any>): Promise<PythonResponse>; transform(input: string, output: string, options?: Record<string, any>): Promise<PythonResponse>; analyze(input: string, options?: Record<string, any>): Promise<PythonResponse>; clean(input: string, output: string, options?: Record<string, any>): Promise<PythonResponse>; } export declare function getPythonBridge(options?: BridgeOptions): Promise<PythonBridge>; export declare function shutdownBridge(): Promise<void>; //# sourceMappingURL=python-bridge.d.ts.map