@mastra/deployer 1.79.0-alpha.9 → 1.80.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/{analyze-RHscSUJm.cjs → analyze-B4cKPVju.cjs} +77 -26
  2. package/dist/analyze-B4cKPVju.cjs.map +1 -0
  3. package/dist/{analyze-CFPQzJ-2.js → analyze-DzJoNBCX.js} +75 -24
  4. package/dist/analyze-DzJoNBCX.js.map +1 -0
  5. package/dist/{arktype-aI7TBD0R-cgd8o1cq.js → arktype-aI7TBD0R-CrIkuKY8.js} +2 -2
  6. package/dist/arktype-aI7TBD0R-CrIkuKY8.js.map +1 -0
  7. package/dist/{arktype-aI7TBD0R-BP9yJr5x.cjs → arktype-aI7TBD0R-LEyxmA2b.cjs} +2 -2
  8. package/dist/arktype-aI7TBD0R-LEyxmA2b.cjs.map +1 -0
  9. package/dist/build/analyze/bundleExternals.d.ts.map +1 -1
  10. package/dist/build/analyze.cjs +1 -1
  11. package/dist/build/analyze.js +1 -2
  12. package/dist/build/bundler.cjs +1 -1
  13. package/dist/build/bundler.js +1 -2
  14. package/dist/build/index.cjs +6 -6
  15. package/dist/build/index.js +5 -5
  16. package/dist/build/plugins/tsconfig-paths.d.ts +4 -3
  17. package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
  18. package/dist/{build-dI0V50la.cjs → build-D0odKdrs.cjs} +45 -45
  19. package/dist/build-D0odKdrs.cjs.map +1 -0
  20. package/dist/{build-BPErn9z9.js → build-DZuiBxfv.js} +5 -5
  21. package/dist/{build-BPErn9z9.js.map → build-DZuiBxfv.js.map} +1 -1
  22. package/dist/bundler/index.cjs +23 -16
  23. package/dist/bundler/index.cjs.map +1 -1
  24. package/dist/bundler/index.js +21 -14
  25. package/dist/bundler/index.js.map +1 -1
  26. package/dist/bundler/workspaceDependencies.d.ts.map +1 -1
  27. package/dist/{bundler-B2N9qjjr.js → bundler-BUqyRuGu.js} +63 -67
  28. package/dist/{bundler-B2N9qjjr.js.map → bundler-BUqyRuGu.js.map} +1 -1
  29. package/dist/{bundler-DdqMsDyv.cjs → bundler-Dpd5nkcu.cjs} +64 -69
  30. package/dist/bundler-Dpd5nkcu.cjs.map +1 -0
  31. package/dist/{bundlerOptions-DoMtLtV1.cjs → bundlerOptions-DHcbcD1a.cjs} +4 -4
  32. package/dist/bundlerOptions-DHcbcD1a.cjs.map +1 -0
  33. package/dist/{bundlerOptions-BHgxhzOz.js → bundlerOptions-DMxva0Sp.js} +2 -2
  34. package/dist/{bundlerOptions-BHgxhzOz.js.map → bundlerOptions-DMxva0Sp.js.map} +1 -1
  35. package/dist/{core-DPXkjlFR.js → core-75DLMtZL.js} +17 -13
  36. package/dist/{core-DPXkjlFR.js.map → core-75DLMtZL.js.map} +1 -1
  37. package/dist/{core-DLXu5DhR.cjs → core-XnTfh3E_.cjs} +17 -13
  38. package/dist/{core-DLXu5DhR.cjs.map → core-XnTfh3E_.cjs.map} +1 -1
  39. package/dist/{dist-DYm9bBZO.js → dist-CQdaZ_Cj.js} +202 -48
  40. package/dist/dist-CQdaZ_Cj.js.map +1 -0
  41. package/dist/{dist-twPJIvYf.cjs → dist-IbfljCaD.cjs} +202 -48
  42. package/dist/dist-IbfljCaD.cjs.map +1 -0
  43. package/dist/docs/SKILL.md +1 -1
  44. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  45. package/dist/{effect-QlVUlMFu-BcDDX4B1.js → effect-QlVUlMFu-CgfR_0ad.js} +3 -3
  46. package/dist/{effect-QlVUlMFu-BcDDX4B1.js.map → effect-QlVUlMFu-CgfR_0ad.js.map} +1 -1
  47. package/dist/{effect-QlVUlMFu-DSdymSCI.cjs → effect-QlVUlMFu-D_Bo06-a.cjs} +3 -3
  48. package/dist/{effect-QlVUlMFu-DSdymSCI.cjs.map → effect-QlVUlMFu-D_Bo06-a.cjs.map} +1 -1
  49. package/dist/{esm-Bvuc3c9Z.js → esm-ClsnEB2d.js} +67 -69
  50. package/dist/{esm-Bvuc3c9Z.js.map → esm-ClsnEB2d.js.map} +1 -1
  51. package/dist/{esm-SvpXPPt6.cjs → esm-D74qc_jV.cjs} +67 -69
  52. package/dist/{esm-SvpXPPt6.cjs.map → esm-D74qc_jV.cjs.map} +1 -1
  53. package/dist/{index-CLddUTqr-CAnnFeRJ.js → index-CLddUTqr-73bY0Z8P.js} +8 -8
  54. package/dist/{index-CLddUTqr-CAnnFeRJ.js.map → index-CLddUTqr-73bY0Z8P.js.map} +1 -1
  55. package/dist/{index-CLddUTqr-BpIkA9jT.cjs → index-CLddUTqr-CgjYL5XV.cjs} +8 -8
  56. package/dist/{index-CLddUTqr-BpIkA9jT.cjs.map → index-CLddUTqr-CgjYL5XV.cjs.map} +1 -1
  57. package/dist/index.cjs +3 -3
  58. package/dist/index.js +3 -3
  59. package/dist/{rolldown-runtime-emK7D4bc.cjs → rolldown-runtime-Gi87jfEt.cjs} +2 -2
  60. package/dist/server/index.cjs +101 -102
  61. package/dist/server/index.cjs.map +1 -1
  62. package/dist/server/index.js +79 -80
  63. package/dist/server/index.js.map +1 -1
  64. package/dist/services/deps.d.ts.map +1 -1
  65. package/dist/services/index.cjs +1 -1
  66. package/dist/services/index.js +1 -2
  67. package/dist/{services-tWHmAszq.cjs → services-CzhmXlRZ.cjs} +57 -28
  68. package/dist/services-CzhmXlRZ.cjs.map +1 -0
  69. package/dist/{services-Ce_5qHk2.js → services-Imf20x6f.js} +54 -26
  70. package/dist/services-Imf20x6f.js.map +1 -0
  71. package/dist/{sury-CWZTCd75-eYGXWpqb.cjs → sury-CWZTCd75-BmWsp9y9.cjs} +3 -3
  72. package/dist/{sury-CWZTCd75-eYGXWpqb.cjs.map → sury-CWZTCd75-BmWsp9y9.cjs.map} +1 -1
  73. package/dist/{sury-CWZTCd75-CdrsvbNi.js → sury-CWZTCd75-DiZVb8bZ.js} +3 -3
  74. package/dist/{sury-CWZTCd75-CdrsvbNi.js.map → sury-CWZTCd75-DiZVb8bZ.js.map} +1 -1
  75. package/dist/{typebox-Dei93FPO-BCfJ-0cP.js → typebox-Dei93FPO-CwpAqpd5.js} +2 -2
  76. package/dist/typebox-Dei93FPO-CwpAqpd5.js.map +1 -0
  77. package/dist/{typebox-Dei93FPO-B14DOQQD.cjs → typebox-Dei93FPO-Dv_TSG2I.cjs} +2 -2
  78. package/dist/typebox-Dei93FPO-Dv_TSG2I.cjs.map +1 -0
  79. package/dist/{utils-Bsr_sEcH.cjs → utils-C-gJcJAo.cjs} +4 -4
  80. package/dist/utils-C-gJcJAo.cjs.map +1 -0
  81. package/dist/{valibot--1zFm7rT-CCFD-Qor.js → valibot--1zFm7rT-BfSX2bry.js} +4 -4
  82. package/dist/{valibot--1zFm7rT-CCFD-Qor.js.map → valibot--1zFm7rT-BfSX2bry.js.map} +1 -1
  83. package/dist/{valibot--1zFm7rT-aC9oayBT.cjs → valibot--1zFm7rT-YckVXzoz.cjs} +4 -4
  84. package/dist/{valibot--1zFm7rT-aC9oayBT.cjs.map → valibot--1zFm7rT-YckVXzoz.cjs.map} +1 -1
  85. package/dist/validator/custom-resolver.cjs +1 -1
  86. package/dist/validator/custom-resolver.cjs.map +1 -1
  87. package/dist/validator/loader.cjs.map +1 -1
  88. package/dist/validator/loader.js.map +1 -1
  89. package/dist/{zod-Bwrt9trS-D1WWVzpr.js → zod-Bwrt9trS-CO1V3tYt.js} +5 -5
  90. package/dist/{zod-Bwrt9trS-D1WWVzpr.js.map → zod-Bwrt9trS-CO1V3tYt.js.map} +1 -1
  91. package/dist/{zod-Bwrt9trS-OBujxXwV.cjs → zod-Bwrt9trS-CdR6J7TM.cjs} +5 -5
  92. package/dist/{zod-Bwrt9trS-OBujxXwV.cjs.map → zod-Bwrt9trS-CdR6J7TM.cjs.map} +1 -1
  93. package/package.json +15 -15
  94. package/dist/analyze-CFPQzJ-2.js.map +0 -1
  95. package/dist/analyze-RHscSUJm.cjs.map +0 -1
  96. package/dist/arktype-aI7TBD0R-BP9yJr5x.cjs.map +0 -1
  97. package/dist/arktype-aI7TBD0R-cgd8o1cq.js.map +0 -1
  98. package/dist/build-dI0V50la.cjs.map +0 -1
  99. package/dist/bundler/find-workspaces.d.ts +0 -52
  100. package/dist/bundler/find-workspaces.d.ts.map +0 -1
  101. package/dist/bundler-DdqMsDyv.cjs.map +0 -1
  102. package/dist/bundlerOptions-DoMtLtV1.cjs.map +0 -1
  103. package/dist/dist-DYm9bBZO.js.map +0 -1
  104. package/dist/dist-twPJIvYf.cjs.map +0 -1
  105. package/dist/services-Ce_5qHk2.js.map +0 -1
  106. package/dist/services-tWHmAszq.cjs.map +0 -1
  107. package/dist/typebox-Dei93FPO-B14DOQQD.cjs.map +0 -1
  108. package/dist/typebox-Dei93FPO-BCfJ-0cP.js.map +0 -1
  109. package/dist/utils-Bsr_sEcH.cjs.map +0 -1
@@ -232,13 +232,15 @@ var ZodError = class ZodError extends Error {
232
232
  i++;
233
233
  continue;
234
234
  }
235
- if (!Object.prototype.hasOwnProperty.call(curr, el)) if (el === "__proto__") Object.defineProperty(curr, el, {
236
- value: { _errors: [] },
237
- writable: true,
238
- enumerable: true,
239
- configurable: true
240
- });
241
- else curr[el] = { _errors: [] };
235
+ if (!Object.prototype.hasOwnProperty.call(curr, el)) {
236
+ if (el === "__proto__") Object.defineProperty(curr, el, {
237
+ value: { _errors: [] },
238
+ writable: true,
239
+ enumerable: true,
240
+ configurable: true
241
+ });
242
+ else curr[el] = { _errors: [] };
243
+ }
242
244
  curr = curr[el];
243
245
  if (terminal) curr._errors.push(mapper(issue));
244
246
  i++;
@@ -314,13 +316,14 @@ const errorMap = (issue, _ctx) => {
314
316
  message = `Invalid date`;
315
317
  break;
316
318
  case ZodIssueCode.invalid_string:
317
- if (typeof issue.validation === "object") if ("includes" in issue.validation) {
318
- message = `Invalid input: must include "${issue.validation.includes}"`;
319
- if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
320
- } else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
321
- else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
322
- else util.assertNever(issue.validation);
323
- else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
319
+ if (typeof issue.validation === "object") {
320
+ if ("includes" in issue.validation) {
321
+ message = `Invalid input: must include "${issue.validation.includes}"`;
322
+ if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
323
+ } else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
324
+ else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
325
+ else util.assertNever(issue.validation);
326
+ } else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
324
327
  else message = "Invalid";
325
328
  break;
326
329
  case ZodIssueCode.too_small:
@@ -485,8 +488,10 @@ var ParseInputLazyPath = class {
485
488
  this._key = key;
486
489
  }
487
490
  get path() {
488
- if (!this._cachedPath.length) if (Array.isArray(this._key)) this._cachedPath.push(...this._path, ...this._key);
489
- else this._cachedPath.push(...this._path, this._key);
491
+ if (!this._cachedPath.length) {
492
+ if (Array.isArray(this._key)) this._cachedPath.push(...this._path, ...this._key);
493
+ else this._cachedPath.push(...this._path, this._key);
494
+ }
490
495
  return this._cachedPath;
491
496
  }
492
497
  };
@@ -3203,7 +3208,8 @@ var ZodPromise = class extends ZodType {
3203
3208
  });
3204
3209
  return INVALID;
3205
3210
  }
3206
- return OK((ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data)).then((data) => {
3211
+ const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3212
+ return OK(promisified.then((data) => {
3207
3213
  return this._def.type.parseAsync(data, {
3208
3214
  path: ctx.path,
3209
3215
  errorMap: ctx.common.contextualErrorMap
@@ -3301,30 +3307,32 @@ var ZodEffects = class extends ZodType {
3301
3307
  });
3302
3308
  });
3303
3309
  }
3304
- if (effect.type === "transform") if (ctx.common.async === false) {
3305
- const base = this._def.schema._parseSync({
3310
+ if (effect.type === "transform") {
3311
+ if (ctx.common.async === false) {
3312
+ const base = this._def.schema._parseSync({
3313
+ data: ctx.data,
3314
+ path: ctx.path,
3315
+ parent: ctx
3316
+ });
3317
+ if (!isValid(base)) return INVALID;
3318
+ const result = effect.transform(base.value, checkCtx);
3319
+ if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3320
+ return {
3321
+ status: status.value,
3322
+ value: result
3323
+ };
3324
+ } else return this._def.schema._parseAsync({
3306
3325
  data: ctx.data,
3307
3326
  path: ctx.path,
3308
3327
  parent: ctx
3328
+ }).then((base) => {
3329
+ if (!isValid(base)) return INVALID;
3330
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3331
+ status: status.value,
3332
+ value: result
3333
+ }));
3309
3334
  });
3310
- if (!isValid(base)) return INVALID;
3311
- const result = effect.transform(base.value, checkCtx);
3312
- if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3313
- return {
3314
- status: status.value,
3315
- value: result
3316
- };
3317
- } else return this._def.schema._parseAsync({
3318
- data: ctx.data,
3319
- path: ctx.path,
3320
- parent: ctx
3321
- }).then((base) => {
3322
- if (!isValid(base)) return INVALID;
3323
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3324
- status: status.value,
3325
- value: result
3326
- }));
3327
- });
3335
+ }
3328
3336
  util.assertNever(effect);
3329
3337
  }
3330
3338
  };
@@ -3668,24 +3676,24 @@ function parseBigintDef(def, refs) {
3668
3676
  if (!def.checks) return res;
3669
3677
  for (const check of def.checks) switch (check.kind) {
3670
3678
  case "min":
3671
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
3672
- else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
3673
- else {
3679
+ if (refs.target === "jsonSchema7") {
3680
+ if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
3681
+ else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
3682
+ } else {
3674
3683
  if (!check.inclusive) res.exclusiveMinimum = true;
3675
3684
  setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
3676
3685
  }
3677
3686
  break;
3678
3687
  case "max":
3679
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
3680
- else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
3681
- else {
3688
+ if (refs.target === "jsonSchema7") {
3689
+ if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
3690
+ else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
3691
+ } else {
3682
3692
  if (!check.inclusive) res.exclusiveMaximum = true;
3683
3693
  setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
3684
3694
  }
3685
3695
  break;
3686
- case "multipleOf":
3687
- setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
3688
- break;
3696
+ case "multipleOf": setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
3689
3697
  }
3690
3698
  return res;
3691
3699
  }
@@ -3732,9 +3740,7 @@ const integerDateParser = (def, refs) => {
3732
3740
  case "min":
3733
3741
  setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
3734
3742
  break;
3735
- case "max":
3736
- setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
3737
- break;
3743
+ case "max": setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
3738
3744
  }
3739
3745
  return res;
3740
3746
  };
@@ -3886,9 +3892,7 @@ function parseStringDef(def, refs) {
3886
3892
  case "format:idn-email":
3887
3893
  addFormat(res, "idn-email", check.message, refs);
3888
3894
  break;
3889
- case "pattern:zod":
3890
- addPattern(res, zodPatterns.email, check.message, refs);
3891
- break;
3895
+ case "pattern:zod": addPattern(res, zodPatterns.email, check.message, refs);
3892
3896
  }
3893
3897
  break;
3894
3898
  case "url":
@@ -3959,16 +3963,10 @@ function parseStringDef(def, refs) {
3959
3963
  case "contentEncoding:base64":
3960
3964
  setResponseValueAndErrors(res, "contentEncoding", "base64", check.message, refs);
3961
3965
  break;
3962
- case "pattern:zod":
3963
- addPattern(res, zodPatterns.base64, check.message, refs);
3964
- break;
3966
+ case "pattern:zod": addPattern(res, zodPatterns.base64, check.message, refs);
3965
3967
  }
3966
3968
  break;
3967
3969
  case "nanoid": addPattern(res, zodPatterns.nanoid, check.message, refs);
3968
- case "toLowerCase":
3969
- case "toUpperCase":
3970
- case "trim": break;
3971
- default:
3972
3970
  }
3973
3971
  return res;
3974
3972
  }
@@ -4300,24 +4298,24 @@ function parseNumberDef(def, refs) {
4300
4298
  addErrorMessage(res, "type", check.message, refs);
4301
4299
  break;
4302
4300
  case "min":
4303
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
4304
- else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
4305
- else {
4301
+ if (refs.target === "jsonSchema7") {
4302
+ if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
4303
+ else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
4304
+ } else {
4306
4305
  if (!check.inclusive) res.exclusiveMinimum = true;
4307
4306
  setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
4308
4307
  }
4309
4308
  break;
4310
4309
  case "max":
4311
- if (refs.target === "jsonSchema7") if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
4312
- else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
4313
- else {
4310
+ if (refs.target === "jsonSchema7") {
4311
+ if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
4312
+ else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
4313
+ } else {
4314
4314
  if (!check.inclusive) res.exclusiveMaximum = true;
4315
4315
  setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
4316
4316
  }
4317
4317
  break;
4318
- case "multipleOf":
4319
- setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
4320
- break;
4318
+ case "multipleOf": setResponseValueAndErrors(res, "multipleOf", check.value, check.message, refs);
4321
4319
  }
4322
4320
  return res;
4323
4321
  }
@@ -4642,4 +4640,4 @@ const zodToJsonSchema = (schema, options) => {
4642
4640
  //#endregion
4643
4641
  export { zodToJsonSchema };
4644
4642
 
4645
- //# sourceMappingURL=esm-Bvuc3c9Z.js.map
4643
+ //# sourceMappingURL=esm-ClsnEB2d.js.map