Using State Machines and Strategy Pattern in Effect with TypeScript - Effect Community