UNPKG

@wonderwhy-er/desktop-commander

Version:

MCP server for terminal operations and file editing

20 lines (19 loc) 635 B
import { CommandExecutionResult, ActiveSession } from './types.js'; interface CompletedSession { pid: number; output: string; exitCode: number | null; startTime: Date; endTime: Date; } export declare class TerminalManager { private sessions; private completedSessions; executeCommand(command: string, timeoutMs?: number): Promise<CommandExecutionResult>; getNewOutput(pid: number): string | null; forceTerminate(pid: number): boolean; listActiveSessions(): ActiveSession[]; listCompletedSessions(): CompletedSession[]; } export declare const terminalManager: TerminalManager; export {};