* refactor: build pattern * feat: the first task type selected by default. * feat: detect remote by run model * fix: use GatewayType detection remmote --------- Co-authored-by: leechor <leechor@users.noreply.github.com>