UNPKG

@light-merlin-dark/vssh

Version:

MCP-native SSH proxy for AI agents. CLI & MCP Server, plugin system, AI safety guards.

46 lines 1.34 kB
import { SSHService } from './ssh'; import { CommandGuardService } from './command-guard-service'; import { Config } from '../config'; export interface ProxyOptions { skipGuard?: boolean; skipLogging?: boolean; workingDirectory?: string; outputMode?: 'raw' | 'quiet' | 'json'; jsonFields?: string[]; } export interface CommandResult { output: string; duration: number; timestamp: string; command: string; isLocal?: boolean; exitCode?: number; } export interface JSONResponse { success: boolean; command: string; duration: number; timestamp: string; output?: string; error?: string; metadata?: { exitCode?: number; signal?: string; isLocal?: boolean; }; } export declare class ProxyService { private sshService; private commandGuard; private config; private isLocal; constructor(config: Config, sshService: SSHService, commandGuard: CommandGuardService); setLocalMode(local: boolean): void; isLocalMode(): boolean; executeCommand(command: string, options?: ProxyOptions): Promise<CommandResult>; private ensureLogsDirectory; formatJSONResponse(result: CommandResult, error?: Error): string; private jsonFields?; setJSONFields(fields: string[]): void; } //# sourceMappingURL=proxy-service.d.ts.map