Worker-side task helper — the ONLY framework code that runs inside a worker
thread, published as the @setu-ts/runtime/worker subpath so task
modules can import it without pulling in the runtime plugin barrel.
Application task modules call defineWorkerTask at module top
level; the WorkerPoolPlugin's pool spawns workers of that module and speaks
the shared protocol from @setu-ts/common to them.
Worker-side task helper — the ONLY framework code that runs inside a worker thread, published as the
@setu-ts/runtime/workersubpath so task modules can import it without pulling in the runtime plugin barrel.Application task modules call
defineWorkerTaskat module top level; the WorkerPoolPlugin's pool spawns workers of that module and speaks the shared protocol from@setu-ts/commonto them.