@mastra/deployer 1.79.0-alpha.8 → 1.79.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.
- package/dist/{analyze-RHscSUJm.cjs → analyze-Cb5JJp7Y.cjs} +14 -10
- package/dist/analyze-Cb5JJp7Y.cjs.map +1 -0
- package/dist/{analyze-CFPQzJ-2.js → analyze-CbVhoukh.js} +14 -10
- package/dist/{analyze-CFPQzJ-2.js.map → analyze-CbVhoukh.js.map} +1 -1
- package/dist/arktype-aI7TBD0R-BP9yJr5x.cjs.map +1 -1
- package/dist/arktype-aI7TBD0R-cgd8o1cq.js.map +1 -1
- package/dist/build/analyze.cjs +1 -1
- package/dist/build/analyze.js +1 -2
- package/dist/build/bundler.cjs +1 -1
- package/dist/build/bundler.js +1 -2
- package/dist/build/index.cjs +6 -6
- package/dist/build/index.js +5 -5
- package/dist/build/plugins/tsconfig-paths.d.ts +4 -3
- package/dist/build/plugins/tsconfig-paths.d.ts.map +1 -1
- package/dist/{build-dI0V50la.cjs → build-DGwrw0dD.cjs} +45 -45
- package/dist/build-DGwrw0dD.cjs.map +1 -0
- package/dist/{build-BPErn9z9.js → build-qnakIZAs.js} +5 -5
- package/dist/{build-BPErn9z9.js.map → build-qnakIZAs.js.map} +1 -1
- package/dist/bundler/index.cjs +23 -16
- package/dist/bundler/index.cjs.map +1 -1
- package/dist/bundler/index.js +21 -14
- package/dist/bundler/index.js.map +1 -1
- package/dist/{bundler-B2N9qjjr.js → bundler-BUqyRuGu.js} +63 -67
- package/dist/{bundler-B2N9qjjr.js.map → bundler-BUqyRuGu.js.map} +1 -1
- package/dist/{bundler-DdqMsDyv.cjs → bundler-Dpd5nkcu.cjs} +64 -69
- package/dist/bundler-Dpd5nkcu.cjs.map +1 -0
- package/dist/{bundlerOptions-DoMtLtV1.cjs → bundlerOptions-DHcbcD1a.cjs} +4 -4
- package/dist/bundlerOptions-DHcbcD1a.cjs.map +1 -0
- package/dist/{bundlerOptions-BHgxhzOz.js → bundlerOptions-DMxva0Sp.js} +2 -2
- package/dist/{bundlerOptions-BHgxhzOz.js.map → bundlerOptions-DMxva0Sp.js.map} +1 -1
- package/dist/{core-DPXkjlFR.js → core-75DLMtZL.js} +17 -13
- package/dist/{core-DPXkjlFR.js.map → core-75DLMtZL.js.map} +1 -1
- package/dist/{core-DLXu5DhR.cjs → core-XnTfh3E_.cjs} +17 -13
- package/dist/{core-DLXu5DhR.cjs.map → core-XnTfh3E_.cjs.map} +1 -1
- package/dist/dist-DYm9bBZO.js.map +1 -1
- package/dist/dist-twPJIvYf.cjs.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{effect-QlVUlMFu-DSdymSCI.cjs → effect-QlVUlMFu-CC0Mpf1v.cjs} +2 -2
- package/dist/{effect-QlVUlMFu-DSdymSCI.cjs.map → effect-QlVUlMFu-CC0Mpf1v.cjs.map} +1 -1
- package/dist/{effect-QlVUlMFu-BcDDX4B1.js → effect-QlVUlMFu-Cvay38Oi.js} +2 -2
- package/dist/{effect-QlVUlMFu-BcDDX4B1.js.map → effect-QlVUlMFu-Cvay38Oi.js.map} +1 -1
- package/dist/{esm-Bvuc3c9Z.js → esm-ClsnEB2d.js} +67 -69
- package/dist/{esm-Bvuc3c9Z.js.map → esm-ClsnEB2d.js.map} +1 -1
- package/dist/{esm-SvpXPPt6.cjs → esm-D74qc_jV.cjs} +67 -69
- package/dist/{esm-SvpXPPt6.cjs.map → esm-D74qc_jV.cjs.map} +1 -1
- package/dist/{index-CLddUTqr-CAnnFeRJ.js → index-CLddUTqr-86A1rnBL.js} +5 -5
- package/dist/{index-CLddUTqr-CAnnFeRJ.js.map → index-CLddUTqr-86A1rnBL.js.map} +1 -1
- package/dist/{index-CLddUTqr-BpIkA9jT.cjs → index-CLddUTqr-D0GzVJyg.cjs} +5 -5
- package/dist/{index-CLddUTqr-BpIkA9jT.cjs.map → index-CLddUTqr-D0GzVJyg.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/{rolldown-runtime-emK7D4bc.cjs → rolldown-runtime-Gi87jfEt.cjs} +2 -2
- package/dist/server/index.cjs +95 -80
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +72 -57
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.js +1 -2
- package/dist/{services-Ce_5qHk2.js → services-183Omg3U.js} +28 -25
- package/dist/{services-Ce_5qHk2.js.map → services-183Omg3U.js.map} +1 -1
- package/dist/{services-tWHmAszq.cjs → services-C1jM_6ta.cjs} +31 -27
- package/dist/services-C1jM_6ta.cjs.map +1 -0
- package/dist/{sury-CWZTCd75-eYGXWpqb.cjs → sury-CWZTCd75-TIJwZAOz.cjs} +2 -2
- package/dist/{sury-CWZTCd75-eYGXWpqb.cjs.map → sury-CWZTCd75-TIJwZAOz.cjs.map} +1 -1
- package/dist/{sury-CWZTCd75-CdrsvbNi.js → sury-CWZTCd75-r5hgAI0o.js} +2 -2
- package/dist/{sury-CWZTCd75-CdrsvbNi.js.map → sury-CWZTCd75-r5hgAI0o.js.map} +1 -1
- package/dist/typebox-Dei93FPO-B14DOQQD.cjs.map +1 -1
- package/dist/typebox-Dei93FPO-BCfJ-0cP.js.map +1 -1
- package/dist/{utils-Bsr_sEcH.cjs → utils-C-gJcJAo.cjs} +4 -4
- package/dist/utils-C-gJcJAo.cjs.map +1 -0
- package/dist/{valibot--1zFm7rT-aC9oayBT.cjs → valibot--1zFm7rT-BiQdCU9y.cjs} +2 -2
- package/dist/{valibot--1zFm7rT-aC9oayBT.cjs.map → valibot--1zFm7rT-BiQdCU9y.cjs.map} +1 -1
- package/dist/{valibot--1zFm7rT-CCFD-Qor.js → valibot--1zFm7rT-CU_2XLpq.js} +2 -2
- package/dist/{valibot--1zFm7rT-CCFD-Qor.js.map → valibot--1zFm7rT-CU_2XLpq.js.map} +1 -1
- package/dist/validator/custom-resolver.cjs +1 -1
- package/dist/validator/custom-resolver.cjs.map +1 -1
- package/dist/validator/loader.cjs.map +1 -1
- package/dist/validator/loader.js.map +1 -1
- package/dist/{zod-Bwrt9trS-D1WWVzpr.js → zod-Bwrt9trS-BurSNK0g.js} +4 -4
- package/dist/{zod-Bwrt9trS-D1WWVzpr.js.map → zod-Bwrt9trS-BurSNK0g.js.map} +1 -1
- package/dist/{zod-Bwrt9trS-OBujxXwV.cjs → zod-Bwrt9trS-Kv0hKWrV.cjs} +4 -4
- package/dist/{zod-Bwrt9trS-OBujxXwV.cjs.map → zod-Bwrt9trS-Kv0hKWrV.cjs.map} +1 -1
- package/package.json +11 -12
- package/dist/analyze-RHscSUJm.cjs.map +0 -1
- package/dist/build-dI0V50la.cjs.map +0 -1
- package/dist/bundler-DdqMsDyv.cjs.map +0 -1
- package/dist/bundlerOptions-DoMtLtV1.cjs.map +0 -1
- package/dist/services-tWHmAszq.cjs.map +0 -1
- 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))
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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")
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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)
|
|
489
|
-
|
|
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
|
-
|
|
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")
|
|
3305
|
-
|
|
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
|
-
|
|
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")
|
|
3672
|
-
|
|
3673
|
-
|
|
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")
|
|
3680
|
-
|
|
3681
|
-
|
|
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")
|
|
4304
|
-
|
|
4305
|
-
|
|
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")
|
|
4312
|
-
|
|
4313
|
-
|
|
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
|
exports.zodToJsonSchema = zodToJsonSchema;
|
|
4644
4642
|
|
|
4645
|
-
//# sourceMappingURL=esm-
|
|
4643
|
+
//# sourceMappingURL=esm-D74qc_jV.cjs.map
|