Represents the result of a command execution. Uses Kotlin sealed classes for type-safe result handling.