{"version":3,"sources":["../src/server/handlers/schedules-workflows-shim.ts"],"names":["coreWorkflows","computeNextFireAt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAM,QAAA,GAAsDA,wBAAA,CAAA,iBAAA;AAErD,IAAMC,kBAAAA,GACX,aACC,MAAM;AACL,EAAA,MAAM,IAAI,KAAA;AAAA,IACR;AAAA,GAEF;AACF,CAAA","file":"chunk-DLYZIVMO.cjs","sourcesContent":["/**\n * Safe re-export of `computeNextFireAt` from `@mastra/core/workflows`.\n *\n * Why this shim exists:\n * `computeNextFireAt` was introduced in `@mastra/core@1.32.0`. Earlier\n * versions of `@mastra/core` ship `@mastra/core/workflows` but do not export\n * this function. A direct named import fails at ESM link time when this\n * version of `@mastra/server` is paired with `@mastra/core < 1.32.0`, taking\n * the entire user bundle down before any code runs.\n *\n * A namespace import tolerates missing names. We expose the real function\n * when available and fall back to a function that throws a clear error\n * otherwise — schedules require new-core support anyway, so loud failure at\n * the call site is far better than silent corruption.\n *\n * Typed as `any` on purpose (see ./observability-storage-schemas.ts for\n * the same rationale): keeps the emitted `.d.ts` free of names that don't\n * exist in older cores.\n */\n\nimport * as coreWorkflows from '@mastra/core/workflows';\n\nconst exported = (coreWorkflows as Record).computeNextFireAt;\n\nexport const computeNextFireAt: any =\n exported ??\n (() => {\n throw new Error(\n '`computeNextFireAt` is not available in this version of @mastra/core. ' +\n 'Schedules require @mastra/core >= 1.32.0.',\n );\n });\n"]}