compute: greatly simplify resolver logic
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/26551.
Most of the preceding changes were to make this resolver code better, which now only cares about the result type of a command, and command behavior and types are abstracted via command.Run
.