export function toTaskResult(result) {
    return {
        success: result.success,
        exitCode: result.exitCode,
        stdout: result.stdout,
        stderr: result.stderr,
        metadata: result.metadata,
    };
}
