@wonderwhy-er/desktop-commander
Version:
MCP server for terminal operations and file editing
20 lines (19 loc) • 952 B
TypeScript
export declare function shellQuote(value: string): string;
export declare function encodePowerShellCommand(script: string): string;
export declare function buildOpenInFolderCommand(filePath: string, isLikelyUrl: (filePath: string) => boolean): string | undefined;
export declare function buildOpenInEditorCommand(filePath: string, isLikelyUrl: (filePath: string) => boolean, editorAppCache: Map<string, {
appName: string;
appPath?: string;
}>): string | undefined;
export declare function detectDefaultMarkdownEditor(options: {
filePath: string;
editorAppCache: Map<string, {
appName: string;
appPath?: string;
}>;
editorAppPending: Set<string>;
callTool?: (name: string, args: Record<string, unknown>) => Promise<unknown | undefined>;
extractToolText: (value: unknown) => string | undefined;
onDetected?: () => void;
}): Promise<void>;
export declare function renderMarkdownEditorAppIcon(): string;