* Execute a command using centralized subprocess runner * Uses execCommand to respect user-configured env vars (e.g., custom PATH)
(cmd: string, args: string[], cwd?: string)
| 124 | * Uses execCommand to respect user-configured env vars (e.g., custom PATH) |
| 125 | */ |
| 126 | async function execCmd(cmd: string, args: string[], cwd?: string): Promise<{ stdout: string; stderr: string; success: boolean }> { |
| 127 | return execCommand(cmd, args, { cwd, maxBuffer: 50 * 1024 * 1024 }) |
| 128 | } |
| 129 | |
| 130 | function readFileSampleSync(filePath: string, size: number): Uint8Array { |
| 131 | if (size <= 0) return new Uint8Array() |
no test coverage detected