I have some long running workers like Excel, PDF, image generation. The workers will have a lot of dependencies i don't need my application backend to need but I don't see how those would be "tree-shaken" out or any other alternative. I would really like maybe it the openworkflow with the validatation implementation (zod or other) would define the spec (either through code generation at build time) or something so that i can get a lightweight "client" to "run/queue jobs"
Existing Behavior
import { sendWelcomeEmail } from "./workflows/send-welcome-email";
const handle = await sendWelcomeEmail.run({ userId: "user_123" });
Desired Behavior
import { client } from "./workflows/generated-client";
const handle = await client.run('sendWelcomeEmail', { userId: "user_123" });