@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.js CHANGED
@@ -4564,7 +4564,7 @@ const determineConflictStrategy = (_unit, _targetFile) => {
4564
4564
  const shouldAbortWorkflow = (stepResult) => {
4565
4565
  return stepResult?.success === false || stepResult?.error;
4566
4566
  };
4567
- // ../_vendored/ai_v5/dist/dist-CjxSswTJ.js
4567
+ // ../_vendored/ai_v5/dist/dist-BYnbJEqC.js
4568
4568
  var marker$1 = "vercel.ai.error";
4569
4569
  var symbol$1 = Symbol.for(marker$1);
4570
4570
  var _a$1;
@@ -5763,6 +5763,20 @@ function asSchema(schema) {
5763
5763
  }) : isSchema(schema) ? schema : typeof schema === "function" ? schema() : zodSchema(schema);
5764
5764
  }
5765
5765
  var { btoa, atob: atob$1 } = globalThis;
5766
+ var typedArrayTag = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get;
5767
+ var arrayBufferByteLength = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "byteLength").get;
5768
+ function isUint8Array(value) {
5769
+ return ArrayBuffer.isView(value) && typedArrayTag.call(value) === "Uint8Array";
5770
+ }
5771
+ function isArrayBuffer(value) {
5772
+ if (typeof value !== "object" || value === null || !("byteLength" in value)) return false;
5773
+ try {
5774
+ arrayBufferByteLength.call(value);
5775
+ return true;
5776
+ } catch (e) {
5777
+ return false;
5778
+ }
5779
+ }
5766
5780
  // ../_vendored/ai_v5/dist/index.js
5767
5781
  /** only globals that common to node and browsers are allowed */
5768
5782
  var _globalThis = typeof globalThis === "object" ? globalThis : global;
@@ -6580,8 +6594,8 @@ var NoObjectGeneratedError = class extends AISDKError {
6580
6594
  _a7 = symbol7;
6581
6595
  var dataContentSchema = z$1.union([
6582
6596
  z$1.string(),
6583
- z$1.instanceof(Uint8Array),
6584
- z$1.instanceof(ArrayBuffer),
6597
+ z$1.custom(isUint8Array, { message: "Must be a Uint8Array" }),
6598
+ z$1.custom(isArrayBuffer, { message: "Must be an ArrayBuffer" }),
6585
6599
  z$1.custom((value) => {
6586
6600
  var _a17, _b;
6587
6601
  return (_b = (_a17 = globalThis.Buffer) == null ? void 0 : _a17.isBuffer(value)) != null ? _b : false;