Using Xstate and Promise Actors for CLI Project Workflow
Does anyone have experience with Xstate here? I'm working on a CLI project which models its core workflow as a state machine actor (
engine). My current architecture has the engine represented as a promise for its final state, which I can easily make an Effect out of so that it can be run by @effect/cli. However inside of the Xstate state machine, I plan to invoke promiseActors at various states for Effects which will be run with runPromiseExit(). I'm wondering if this idea of running effects inside an effect separated by the Xstate abstraction sounds like an antipattern or not.