Why do you want to contribute?
I'd like to fix #2622 — @trigger.dev/core's convertToolParametersToSchema in packages/core/src/v3/types/tools.ts uses toolParameters instanceof z.ZodSchema to detect a Zod schema, which breaks for consumers on Zod v4 (Zod v4 doesn't export ZodSchema the same way, causing build failures in downstream apps like Next.js). The fix is straightforward: the codebase already has the correct version-agnostic pattern in schemas.ts (isSchemaZodEsque, which duck-types _def/parse/parseAsync/safeParse instead of using instanceof) — I'd reuse that helper in tools.ts instead. I'll add a regression test and a changeset.
Prior contributions or relevant experience
No response
Why do you want to contribute?
I'd like to fix #2622 —
@trigger.dev/core'sconvertToolParametersToSchemainpackages/core/src/v3/types/tools.tsusestoolParameters instanceof z.ZodSchemato detect a Zod schema, which breaks for consumers on Zod v4 (Zod v4 doesn't exportZodSchemathe same way, causing build failures in downstream apps like Next.js). The fix is straightforward: the codebase already has the correct version-agnostic pattern inschemas.ts(isSchemaZodEsque, which duck-types_def/parse/parseAsync/safeParseinstead of usinginstanceof) — I'd reuse that helper intools.tsinstead. I'll add a regression test and a changeset.Prior contributions or relevant experience
No response