@mastra/agent-builder 1.2.0 → 1.2.1-alpha.1
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/index.cjs +17 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/workflows/task-planning/task-planning.d.ts +2 -2
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +3 -3
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +4 -4
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -4587,7 +4587,7 @@ const determineConflictStrategy = (_unit, _targetFile) => {
|
|
|
4587
4587
|
const shouldAbortWorkflow = (stepResult) => {
|
|
4588
4588
|
return stepResult?.success === false || stepResult?.error;
|
|
4589
4589
|
};
|
|
4590
|
-
// ../_vendored/ai_v5/dist/dist-
|
|
4590
|
+
// ../_vendored/ai_v5/dist/dist-BYnbJEqC.js
|
|
4591
4591
|
var marker$1 = "vercel.ai.error";
|
|
4592
4592
|
var symbol$1 = Symbol.for(marker$1);
|
|
4593
4593
|
var _a$1;
|
|
@@ -5786,6 +5786,20 @@ function asSchema(schema) {
|
|
|
5786
5786
|
}) : isSchema(schema) ? schema : typeof schema === "function" ? schema() : zodSchema(schema);
|
|
5787
5787
|
}
|
|
5788
5788
|
var { btoa, atob: atob$1 } = globalThis;
|
|
5789
|
+
var typedArrayTag = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get;
|
|
5790
|
+
var arrayBufferByteLength = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
|
|
5791
|
+
function isUint8Array(value) {
|
|
5792
|
+
return ArrayBuffer.isView(value) && typedArrayTag.call(value) === "Uint8Array";
|
|
5793
|
+
}
|
|
5794
|
+
function isArrayBuffer(value) {
|
|
5795
|
+
if (typeof value !== "object" || value === null || !("byteLength" in value)) return false;
|
|
5796
|
+
try {
|
|
5797
|
+
arrayBufferByteLength.call(value);
|
|
5798
|
+
return true;
|
|
5799
|
+
} catch (e) {
|
|
5800
|
+
return false;
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5789
5803
|
// ../_vendored/ai_v5/dist/index.js
|
|
5790
5804
|
/** only globals that common to node and browsers are allowed */
|
|
5791
5805
|
var _globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
@@ -6603,8 +6617,8 @@ var NoObjectGeneratedError = class extends AISDKError {
|
|
|
6603
6617
|
_a7 = symbol7;
|
|
6604
6618
|
var dataContentSchema = zod_v4.z.union([
|
|
6605
6619
|
zod_v4.z.string(),
|
|
6606
|
-
zod_v4.z.
|
|
6607
|
-
zod_v4.z.
|
|
6620
|
+
zod_v4.z.custom(isUint8Array, { message: "Must be a Uint8Array" }),
|
|
6621
|
+
zod_v4.z.custom(isArrayBuffer, { message: "Must be an ArrayBuffer" }),
|
|
6608
6622
|
zod_v4.z.custom((value) => {
|
|
6609
6623
|
var _a17, _b;
|
|
6610
6624
|
return (_b = (_a17 = globalThis.Buffer) == null ? void 0 : _a17.isBuffer(value)) != null ? _b : false;
|