export function formatCommandForDisplay(command: string, args: string[]) { return [command, ...args] .map((part) => (/^[A-Za-z0-9_./:-]+$/.test(part) ? part : JSON.stringify(part))) .join(" "); }