I'm trying to write a task that uses the Worker API to execute several npx tasks in parallel. The parameters encoded in the WorkParameters class need to serializable, but since the NpmExecRunner::executeNpxCommand function takes in the extension object (which cannot be serialized) I'm unable to get anything working.
In short, can a serializable object be added that contains all of the information from the plugin configuration that executeNpxCommand needs to work?