@mastra/upstash 0.10.3 → 0.11.0-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
@@ -1,4 +1,4 @@
1
- import { __esm, init_esm, createContextKey, __export, __commonJS, __toESM, __toCommonJS, esm_exports, __require, diag, DiagLogLevel, propagation, trace, isSpanContextValid, TraceFlags, context, baggageEntryMetadataFromString, ValueType } from './chunk-HSTZWXH7.js';
1
+ import { __commonJS, __esm, init_esm, createContextKey, __export, __toESM, __toCommonJS, esm_exports, __require, diag, DiagLogLevel, propagation, trace, isSpanContextValid, TraceFlags, context, baggageEntryMetadataFromString, ValueType } from './chunk-HSTZWXH7.js';
2
2
  import { inspect } from 'util';
3
3
  import { performance } from 'perf_hooks';
4
4
  import { MastraStorage, TABLE_MESSAGES, TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_TRACES, TABLE_THREADS } from '@mastra/core/storage';
@@ -7,6 +7,83 @@ import { MastraVector } from '@mastra/core/vector';
7
7
  import { Index } from '@upstash/vector';
8
8
  import { BaseFilterTranslator } from '@mastra/core/vector/filter';
9
9
 
10
+ // ../../packages/core/dist/chunk-OLSQRA2V.cjs
11
+ var require_chunk_OLSQRA2V = __commonJS({
12
+ "../../packages/core/dist/chunk-OLSQRA2V.cjs"(exports2) {
13
+ var ErrorDomain = /* @__PURE__ */ ((ErrorDomain2) => {
14
+ ErrorDomain2["TOOL"] = "TOOL";
15
+ ErrorDomain2["AGENT"] = "AGENT";
16
+ ErrorDomain2["MCP"] = "MCP";
17
+ ErrorDomain2["AGENT_NETWORK"] = "AGENT_NETWORK";
18
+ ErrorDomain2["MASTRA_SERVER"] = "MASTRA_SERVER";
19
+ ErrorDomain2["MASTRA_TELEMETRY"] = "MASTRA_TELEMETRY";
20
+ ErrorDomain2["MASTRA_WORKFLOW"] = "MASTRA_WORKFLOW";
21
+ ErrorDomain2["MASTRA_VOICE"] = "MASTRA_VOICE";
22
+ ErrorDomain2["MASTRA_VECTOR"] = "MASTRA_VECTOR";
23
+ ErrorDomain2["LLM"] = "LLM";
24
+ ErrorDomain2["UNKNOWN"] = "UNKNOWN";
25
+ return ErrorDomain2;
26
+ })(ErrorDomain || {});
27
+ var ErrorCategory = /* @__PURE__ */ ((ErrorCategory2) => {
28
+ ErrorCategory2["UNKNOWN"] = "UNKNOWN";
29
+ ErrorCategory2["USER"] = "USER";
30
+ ErrorCategory2["SYSTEM"] = "SYSTEM";
31
+ ErrorCategory2["THIRD_PARTY"] = "THIRD_PARTY";
32
+ return ErrorCategory2;
33
+ })(ErrorCategory || {});
34
+ var MastraBaseError = class extends Error {
35
+ id;
36
+ domain;
37
+ category;
38
+ details = {};
39
+ message;
40
+ constructor(errorDefinition, originalError) {
41
+ let error;
42
+ if (originalError instanceof Error) {
43
+ error = originalError;
44
+ } else if (originalError) {
45
+ error = new Error(String(originalError));
46
+ }
47
+ const message = errorDefinition.text ?? error?.message ?? "Unknown error";
48
+ super(message, { cause: error });
49
+ this.id = errorDefinition.id;
50
+ this.domain = errorDefinition.domain;
51
+ this.category = errorDefinition.category;
52
+ this.details = errorDefinition.details ?? {};
53
+ this.message = message;
54
+ Object.setPrototypeOf(this, new.target.prototype);
55
+ }
56
+ /**
57
+ * Returns a structured representation of the error, useful for logging or API responses.
58
+ */
59
+ toJSONDetails() {
60
+ return {
61
+ message: this.message,
62
+ domain: this.domain,
63
+ category: this.category,
64
+ details: this.details
65
+ };
66
+ }
67
+ toJSON() {
68
+ return {
69
+ message: this.message,
70
+ details: this.toJSONDetails(),
71
+ code: this.id
72
+ };
73
+ }
74
+ toString() {
75
+ return JSON.stringify(this.toJSON());
76
+ }
77
+ };
78
+ var MastraError = class extends MastraBaseError {
79
+ };
80
+ exports2.ErrorCategory = ErrorCategory;
81
+ exports2.ErrorDomain = ErrorDomain;
82
+ exports2.MastraBaseError = MastraBaseError;
83
+ exports2.MastraError = MastraError;
84
+ }
85
+ });
86
+
10
87
  // ../../node_modules/.pnpm/@opentelemetry+core@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js
11
88
  function suppressTracing(context2) {
12
89
  return context2.setValue(SUPPRESS_TRACING_KEY, true);
@@ -361,36 +438,36 @@ var init_version = __esm({
361
438
  }
362
439
  });
363
440
 
364
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js
441
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js
365
442
  var init_SemanticAttributes = __esm({
366
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"() {
443
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js"() {
367
444
  }
368
445
  });
369
446
 
370
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js
447
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js
371
448
  var init_trace = __esm({
372
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js"() {
449
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js"() {
373
450
  init_SemanticAttributes();
374
451
  }
375
452
  });
376
453
 
377
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js
454
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js
378
455
  var init_SemanticResourceAttributes = __esm({
379
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"() {
456
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js"() {
380
457
  }
381
458
  });
382
459
 
383
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js
460
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js
384
461
  var init_resource = __esm({
385
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js"() {
462
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js"() {
386
463
  init_SemanticResourceAttributes();
387
464
  }
388
465
  });
389
466
 
390
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js
467
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js
391
468
  var ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_VERSION;
392
469
  var init_stable_attributes = __esm({
393
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"() {
470
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js"() {
394
471
  ATTR_TELEMETRY_SDK_LANGUAGE = "telemetry.sdk.language";
395
472
  TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS = "nodejs";
396
473
  ATTR_TELEMETRY_SDK_NAME = "telemetry.sdk.name";
@@ -398,15 +475,15 @@ var init_stable_attributes = __esm({
398
475
  }
399
476
  });
400
477
 
401
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js
478
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js
402
479
  var init_stable_metrics = __esm({
403
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js"() {
480
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js"() {
404
481
  }
405
482
  });
406
483
 
407
- // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js
484
+ // ../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js
408
485
  var init_esm2 = __esm({
409
- "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.33.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js"() {
486
+ "../../node_modules/.pnpm/@opentelemetry+semantic-conventions@1.34.0/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js"() {
410
487
  init_trace();
411
488
  init_resource();
412
489
  init_stable_attributes();
@@ -1695,9 +1772,9 @@ var require_pool = __commonJS({
1695
1772
  }
1696
1773
  });
1697
1774
 
1698
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/util/longbits.js
1775
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/util/longbits.js
1699
1776
  var require_longbits = __commonJS({
1700
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
1777
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
1701
1778
  module2.exports = LongBits;
1702
1779
  var util = require_minimal();
1703
1780
  function LongBits(lo, hi) {
@@ -1796,9 +1873,9 @@ var require_longbits = __commonJS({
1796
1873
  }
1797
1874
  });
1798
1875
 
1799
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/util/minimal.js
1876
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/util/minimal.js
1800
1877
  var require_minimal = __commonJS({
1801
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/util/minimal.js"(exports2) {
1878
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/util/minimal.js"(exports2) {
1802
1879
  var util = exports2;
1803
1880
  util.asPromise = require_aspromise();
1804
1881
  util.base64 = require_base64();
@@ -1970,9 +2047,9 @@ var require_minimal = __commonJS({
1970
2047
  }
1971
2048
  });
1972
2049
 
1973
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/writer.js
2050
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/writer.js
1974
2051
  var require_writer = __commonJS({
1975
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/writer.js"(exports2, module2) {
2052
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/writer.js"(exports2, module2) {
1976
2053
  module2.exports = Writer;
1977
2054
  var util = require_minimal();
1978
2055
  var BufferWriter;
@@ -2160,9 +2237,9 @@ var require_writer = __commonJS({
2160
2237
  }
2161
2238
  });
2162
2239
 
2163
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/writer_buffer.js
2240
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/writer_buffer.js
2164
2241
  var require_writer_buffer = __commonJS({
2165
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
2242
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
2166
2243
  module2.exports = BufferWriter;
2167
2244
  var Writer = require_writer();
2168
2245
  (BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
@@ -2209,9 +2286,9 @@ var require_writer_buffer = __commonJS({
2209
2286
  }
2210
2287
  });
2211
2288
 
2212
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/reader.js
2289
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/reader.js
2213
2290
  var require_reader = __commonJS({
2214
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/reader.js"(exports2, module2) {
2291
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/reader.js"(exports2, module2) {
2215
2292
  module2.exports = Reader;
2216
2293
  var util = require_minimal();
2217
2294
  var BufferReader;
@@ -2432,9 +2509,9 @@ var require_reader = __commonJS({
2432
2509
  }
2433
2510
  });
2434
2511
 
2435
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/reader_buffer.js
2512
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/reader_buffer.js
2436
2513
  var require_reader_buffer = __commonJS({
2437
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
2514
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
2438
2515
  module2.exports = BufferReader;
2439
2516
  var Reader = require_reader();
2440
2517
  (BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
@@ -2454,9 +2531,9 @@ var require_reader_buffer = __commonJS({
2454
2531
  }
2455
2532
  });
2456
2533
 
2457
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/rpc/service.js
2534
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/rpc/service.js
2458
2535
  var require_service = __commonJS({
2459
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
2536
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
2460
2537
  module2.exports = Service;
2461
2538
  var util = require_minimal();
2462
2539
  (Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
@@ -2528,24 +2605,24 @@ var require_service = __commonJS({
2528
2605
  }
2529
2606
  });
2530
2607
 
2531
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/rpc.js
2608
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/rpc.js
2532
2609
  var require_rpc = __commonJS({
2533
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/rpc.js"(exports2) {
2610
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/rpc.js"(exports2) {
2534
2611
  var rpc = exports2;
2535
2612
  rpc.Service = require_service();
2536
2613
  }
2537
2614
  });
2538
2615
 
2539
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/roots.js
2616
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/roots.js
2540
2617
  var require_roots = __commonJS({
2541
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/roots.js"(exports2, module2) {
2618
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/roots.js"(exports2, module2) {
2542
2619
  module2.exports = {};
2543
2620
  }
2544
2621
  });
2545
2622
 
2546
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/index-minimal.js
2623
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/index-minimal.js
2547
2624
  var require_index_minimal = __commonJS({
2548
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/index-minimal.js"(exports2) {
2625
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/src/index-minimal.js"(exports2) {
2549
2626
  var protobuf = exports2;
2550
2627
  protobuf.build = "minimal";
2551
2628
  protobuf.Writer = require_writer();
@@ -2565,9 +2642,9 @@ var require_index_minimal = __commonJS({
2565
2642
  }
2566
2643
  });
2567
2644
 
2568
- // ../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/minimal.js
2645
+ // ../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/minimal.js
2569
2646
  var require_minimal2 = __commonJS({
2570
- "../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/minimal.js"(exports2, module2) {
2647
+ "../../node_modules/.pnpm/protobufjs@7.5.3/node_modules/protobufjs/minimal.js"(exports2, module2) {
2571
2648
  module2.exports = require_index_minimal();
2572
2649
  }
2573
2650
  });
@@ -10935,9 +11012,10 @@ var init_esm5 = __esm({
10935
11012
  }
10936
11013
  });
10937
11014
 
10938
- // ../../packages/core/dist/chunk-ZAXPU6F2.cjs
10939
- var require_chunk_ZAXPU6F2 = __commonJS({
10940
- "../../packages/core/dist/chunk-ZAXPU6F2.cjs"(exports2) {
11015
+ // ../../packages/core/dist/chunk-JDOKE3OQ.cjs
11016
+ var require_chunk_JDOKE3OQ = __commonJS({
11017
+ "../../packages/core/dist/chunk-JDOKE3OQ.cjs"(exports2) {
11018
+ var chunkOLSQRA2V_cjs = require_chunk_OLSQRA2V();
10941
11019
  var api = (init_esm(), __toCommonJS(esm_exports));
10942
11020
  var core = (init_esm3(), __toCommonJS(esm_exports2));
10943
11021
  var otlpTransformer = (init_esm5(), __toCommonJS(esm_exports3));
@@ -11247,7 +11325,24 @@ var require_chunk_ZAXPU6F2 = __commonJS({
11247
11325
  code: core.ExportResultCode.SUCCESS
11248
11326
  });
11249
11327
  }).catch((e) => {
11250
- this.logger.error("span err:" + e?.message);
11328
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
11329
+ {
11330
+ id: "OTLP_TRACE_EXPORT_FAILURE",
11331
+ text: "Failed to export telemetry spans",
11332
+ domain: "MASTRA_TELEMETRY",
11333
+ category: "SYSTEM",
11334
+ details: {
11335
+ attemptedSpanCount: allSpans.length,
11336
+ targetTable: TABLE_TRACES2,
11337
+ firstSpanName: allSpans.length > 0 ? allSpans[0].name : "",
11338
+ firstSpanKind: allSpans.length > 0 ? allSpans[0].kind : "",
11339
+ firstSpanScope: allSpans.length > 0 ? allSpans[0].scope : ""
11340
+ }
11341
+ },
11342
+ e
11343
+ );
11344
+ this.logger.trackException(mastraError);
11345
+ this.logger.error("span err:" + mastraError.toString());
11251
11346
  items.resultCallback({
11252
11347
  code: core.ExportResultCode.FAILED,
11253
11348
  error: e
@@ -11288,13 +11383,22 @@ var require_chunk_ZAXPU6F2 = __commonJS({
11288
11383
  */
11289
11384
  static init(config = {}) {
11290
11385
  try {
11291
- if (!global.__TELEMETRY__) {
11292
- global.__TELEMETRY__ = new _Telemetry(config);
11386
+ if (!globalThis.__TELEMETRY__) {
11387
+ globalThis.__TELEMETRY__ = new _Telemetry(config);
11293
11388
  }
11294
- return global.__TELEMETRY__;
11389
+ return globalThis.__TELEMETRY__;
11295
11390
  } catch (error) {
11296
- console.error("Failed to initialize telemetry:", error);
11297
- throw error;
11391
+ const wrappedError = new chunkOLSQRA2V_cjs.MastraError(
11392
+ {
11393
+ id: "TELEMETRY_INIT_FAILED",
11394
+ text: "Failed to initialize telemetry",
11395
+ domain: "MASTRA_TELEMETRY",
11396
+ category: "SYSTEM"
11397
+ /* SYSTEM */
11398
+ },
11399
+ error
11400
+ );
11401
+ throw wrappedError;
11298
11402
  }
11299
11403
  }
11300
11404
  static getActiveSpan() {
@@ -11307,10 +11411,16 @@ var require_chunk_ZAXPU6F2 = __commonJS({
11307
11411
  * @returns {Telemetry} The global telemetry instance
11308
11412
  */
11309
11413
  static get() {
11310
- if (!global.__TELEMETRY__) {
11311
- throw new Error("Telemetry not initialized");
11414
+ if (!globalThis.__TELEMETRY__) {
11415
+ throw new chunkOLSQRA2V_cjs.MastraError({
11416
+ id: "TELEMETRY_GETTER_FAILED_GLOBAL_TELEMETRY_NOT_INITIALIZED",
11417
+ text: "Telemetry not initialized",
11418
+ domain: "MASTRA_TELEMETRY",
11419
+ category: "USER"
11420
+ /* USER */
11421
+ });
11312
11422
  }
11313
- return global.__TELEMETRY__;
11423
+ return globalThis.__TELEMETRY__;
11314
11424
  }
11315
11425
  /**
11316
11426
  * Wraps a class instance with telemetry tracing
@@ -11761,16 +11871,17 @@ var require_chunk_RWTSGWWL = __commonJS({
11761
11871
  }
11762
11872
  });
11763
11873
 
11764
- // ../../packages/core/dist/chunk-JYLH5IY3.cjs
11765
- var require_chunk_JYLH5IY3 = __commonJS({
11766
- "../../packages/core/dist/chunk-JYLH5IY3.cjs"(exports2) {
11767
- var chunkZAXPU6F2_cjs = require_chunk_ZAXPU6F2();
11874
+ // ../../packages/core/dist/chunk-6U377XOJ.cjs
11875
+ var require_chunk_6U377XOJ = __commonJS({
11876
+ "../../packages/core/dist/chunk-6U377XOJ.cjs"(exports2) {
11877
+ var chunkJDOKE3OQ_cjs = require_chunk_JDOKE3OQ();
11878
+ var chunkOLSQRA2V_cjs = require_chunk_OLSQRA2V();
11768
11879
  var chunkP3Q73CAW_cjs = require_chunk_P3Q73CAW();
11769
11880
  var chunkRWTSGWWL_cjs = require_chunk_RWTSGWWL();
11770
11881
  var _MastraVoice_decorators;
11771
11882
  var _init;
11772
11883
  var _a;
11773
- _MastraVoice_decorators = [chunkZAXPU6F2_cjs.InstrumentClass({
11884
+ _MastraVoice_decorators = [chunkJDOKE3OQ_cjs.InstrumentClass({
11774
11885
  prefix: "voice",
11775
11886
  excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
11776
11887
  })];
@@ -11917,7 +12028,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11917
12028
  } else if (this.speakProvider) {
11918
12029
  return this.speakProvider.speak(input, options);
11919
12030
  }
11920
- throw new Error("No speak provider or realtime provider configured");
12031
+ throw new chunkOLSQRA2V_cjs.MastraError({
12032
+ id: "VOICE_COMPOSITE_NO_SPEAK_PROVIDER",
12033
+ text: "No speak provider or realtime provider configured",
12034
+ domain: "MASTRA_VOICE",
12035
+ category: "USER"
12036
+ /* USER */
12037
+ });
11921
12038
  }
11922
12039
  async listen(audioStream, options) {
11923
12040
  if (this.realtimeProvider) {
@@ -11925,7 +12042,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11925
12042
  } else if (this.listenProvider) {
11926
12043
  return await this.listenProvider.listen(audioStream, options);
11927
12044
  }
11928
- throw new Error("No listen provider or realtime provider configured");
12045
+ throw new chunkOLSQRA2V_cjs.MastraError({
12046
+ id: "VOICE_COMPOSITE_NO_LISTEN_PROVIDER",
12047
+ text: "No listen provider or realtime provider configured",
12048
+ domain: "MASTRA_VOICE",
12049
+ category: "USER"
12050
+ /* USER */
12051
+ });
11929
12052
  }
11930
12053
  async getSpeakers() {
11931
12054
  if (this.realtimeProvider) {
@@ -11933,7 +12056,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11933
12056
  } else if (this.speakProvider) {
11934
12057
  return this.speakProvider.getSpeakers();
11935
12058
  }
11936
- throw new Error("No speak provider or realtime provider configured");
12059
+ throw new chunkOLSQRA2V_cjs.MastraError({
12060
+ id: "VOICE_COMPOSITE_NO_SPEAKERS_PROVIDER",
12061
+ text: "No speak provider or realtime provider configured",
12062
+ domain: "MASTRA_VOICE",
12063
+ category: "USER"
12064
+ /* USER */
12065
+ });
11937
12066
  }
11938
12067
  async getListener() {
11939
12068
  if (this.realtimeProvider) {
@@ -11941,7 +12070,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11941
12070
  } else if (this.listenProvider) {
11942
12071
  return this.listenProvider.getListener();
11943
12072
  }
11944
- throw new Error("No listener provider or realtime provider configured");
12073
+ throw new chunkOLSQRA2V_cjs.MastraError({
12074
+ id: "VOICE_COMPOSITE_NO_LISTENER_PROVIDER",
12075
+ text: "No listener provider or realtime provider configured",
12076
+ domain: "MASTRA_VOICE",
12077
+ category: "USER"
12078
+ /* USER */
12079
+ });
11945
12080
  }
11946
12081
  updateConfig(options) {
11947
12082
  if (!this.realtimeProvider) {
@@ -11955,7 +12090,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11955
12090
  */
11956
12091
  connect(options) {
11957
12092
  if (!this.realtimeProvider) {
11958
- throw new Error("No realtime provider configured");
12093
+ throw new chunkOLSQRA2V_cjs.MastraError({
12094
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_CONNECT",
12095
+ text: "No realtime provider configured",
12096
+ domain: "MASTRA_VOICE",
12097
+ category: "USER"
12098
+ /* USER */
12099
+ });
11959
12100
  }
11960
12101
  return this.realtimeProvider.connect(options);
11961
12102
  }
@@ -11965,7 +12106,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11965
12106
  */
11966
12107
  send(audioData) {
11967
12108
  if (!this.realtimeProvider) {
11968
- throw new Error("No realtime provider configured");
12109
+ throw new chunkOLSQRA2V_cjs.MastraError({
12110
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_SEND",
12111
+ text: "No realtime provider configured",
12112
+ domain: "MASTRA_VOICE",
12113
+ category: "USER"
12114
+ /* USER */
12115
+ });
11969
12116
  }
11970
12117
  return this.realtimeProvider.send(audioData);
11971
12118
  }
@@ -11974,7 +12121,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
11974
12121
  */
11975
12122
  answer(options) {
11976
12123
  if (!this.realtimeProvider) {
11977
- throw new Error("No realtime provider configured");
12124
+ throw new chunkOLSQRA2V_cjs.MastraError({
12125
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_ANSWER",
12126
+ text: "No realtime provider configured",
12127
+ domain: "MASTRA_VOICE",
12128
+ category: "USER"
12129
+ /* USER */
12130
+ });
11978
12131
  }
11979
12132
  return this.realtimeProvider.answer(options);
11980
12133
  }
@@ -12003,7 +12156,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
12003
12156
  */
12004
12157
  close() {
12005
12158
  if (!this.realtimeProvider) {
12006
- throw new Error("No realtime provider configured");
12159
+ throw new chunkOLSQRA2V_cjs.MastraError({
12160
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_CLOSE",
12161
+ text: "No realtime provider configured",
12162
+ domain: "MASTRA_VOICE",
12163
+ category: "USER"
12164
+ /* USER */
12165
+ });
12007
12166
  }
12008
12167
  this.realtimeProvider.close();
12009
12168
  }
@@ -12014,7 +12173,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
12014
12173
  */
12015
12174
  on(event, callback) {
12016
12175
  if (!this.realtimeProvider) {
12017
- throw new Error("No realtime provider configured");
12176
+ throw new chunkOLSQRA2V_cjs.MastraError({
12177
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_ON",
12178
+ text: "No realtime provider configured",
12179
+ domain: "MASTRA_VOICE",
12180
+ category: "USER"
12181
+ /* USER */
12182
+ });
12018
12183
  }
12019
12184
  this.realtimeProvider.on(event, callback);
12020
12185
  }
@@ -12025,7 +12190,13 @@ var require_chunk_JYLH5IY3 = __commonJS({
12025
12190
  */
12026
12191
  off(event, callback) {
12027
12192
  if (!this.realtimeProvider) {
12028
- throw new Error("No realtime provider configured");
12193
+ throw new chunkOLSQRA2V_cjs.MastraError({
12194
+ id: "VOICE_COMPOSITE_NO_REALTIME_PROVIDER_OFF",
12195
+ text: "No realtime provider configured",
12196
+ domain: "MASTRA_VOICE",
12197
+ category: "USER"
12198
+ /* USER */
12199
+ });
12029
12200
  }
12030
12201
  this.realtimeProvider.off(event, callback);
12031
12202
  }
@@ -12035,16 +12206,40 @@ var require_chunk_JYLH5IY3 = __commonJS({
12035
12206
  super();
12036
12207
  }
12037
12208
  async speak(_input) {
12038
- throw new Error("No voice provider configured");
12209
+ throw new chunkOLSQRA2V_cjs.MastraError({
12210
+ id: "VOICE_DEFAULT_NO_SPEAK_PROVIDER",
12211
+ text: "No voice provider configured",
12212
+ domain: "MASTRA_VOICE",
12213
+ category: "USER"
12214
+ /* USER */
12215
+ });
12039
12216
  }
12040
12217
  async listen(_input) {
12041
- throw new Error("No voice provider configured");
12218
+ throw new chunkOLSQRA2V_cjs.MastraError({
12219
+ id: "VOICE_DEFAULT_NO_LISTEN_PROVIDER",
12220
+ text: "No voice provider configured",
12221
+ domain: "MASTRA_VOICE",
12222
+ category: "USER"
12223
+ /* USER */
12224
+ });
12042
12225
  }
12043
12226
  async getSpeakers() {
12044
- throw new Error("No voice provider configured");
12227
+ throw new chunkOLSQRA2V_cjs.MastraError({
12228
+ id: "VOICE_DEFAULT_NO_SPEAKERS_PROVIDER",
12229
+ text: "No voice provider configured",
12230
+ domain: "MASTRA_VOICE",
12231
+ category: "USER"
12232
+ /* USER */
12233
+ });
12045
12234
  }
12046
12235
  async getListener() {
12047
- throw new Error("No voice provider configured");
12236
+ throw new chunkOLSQRA2V_cjs.MastraError({
12237
+ id: "VOICE_DEFAULT_NO_LISTENER_PROVIDER",
12238
+ text: "No voice provider configured",
12239
+ domain: "MASTRA_VOICE",
12240
+ category: "USER"
12241
+ /* USER */
12242
+ });
12048
12243
  }
12049
12244
  };
12050
12245
  exports2.CompositeVoice = CompositeVoice;
@@ -12052,76 +12247,6 @@ var require_chunk_JYLH5IY3 = __commonJS({
12052
12247
  }
12053
12248
  });
12054
12249
 
12055
- // ../../packages/core/dist/chunk-BBAQW23O.cjs
12056
- var require_chunk_BBAQW23O = __commonJS({
12057
- "../../packages/core/dist/chunk-BBAQW23O.cjs"(exports2) {
12058
- var ErrorDomain = /* @__PURE__ */ ((ErrorDomain2) => {
12059
- ErrorDomain2["TOOL"] = "TOOL";
12060
- ErrorDomain2["AGENT"] = "AGENT";
12061
- ErrorDomain2["MCP"] = "MCP";
12062
- ErrorDomain2["UNKNOWN"] = "UNKNOWN";
12063
- return ErrorDomain2;
12064
- })(ErrorDomain || {});
12065
- var ErrorCategory = /* @__PURE__ */ ((ErrorCategory2) => {
12066
- ErrorCategory2["UNKNOWN"] = "UNKNOWN";
12067
- ErrorCategory2["USER"] = "USER";
12068
- ErrorCategory2["SYSTEM"] = "SYSTEM";
12069
- ErrorCategory2["THIRD_PARTY"] = "THIRD_PARTY";
12070
- return ErrorCategory2;
12071
- })(ErrorCategory || {});
12072
- var MastraBaseError = class extends Error {
12073
- id;
12074
- domain;
12075
- category;
12076
- details = {};
12077
- message;
12078
- constructor(errorDefinition, originalError) {
12079
- let error;
12080
- if (originalError instanceof Error) {
12081
- error = originalError;
12082
- } else if (originalError) {
12083
- error = new Error(String(originalError));
12084
- }
12085
- const message = errorDefinition.text ?? error?.message ?? "Unknown error";
12086
- super(message, { cause: error });
12087
- this.id = errorDefinition.id;
12088
- this.domain = errorDefinition.domain;
12089
- this.category = errorDefinition.category;
12090
- this.details = errorDefinition.details ?? {};
12091
- this.message = message;
12092
- Object.setPrototypeOf(this, new.target.prototype);
12093
- }
12094
- /**
12095
- * Returns a structured representation of the error, useful for logging or API responses.
12096
- */
12097
- toJSONDetails() {
12098
- return {
12099
- message: this.message,
12100
- domain: this.domain,
12101
- category: this.category,
12102
- details: this.details
12103
- };
12104
- }
12105
- toJSON() {
12106
- return {
12107
- message: this.message,
12108
- details: this.toJSONDetails(),
12109
- code: this.id
12110
- };
12111
- }
12112
- toString() {
12113
- return JSON.stringify(this.toJSON());
12114
- }
12115
- };
12116
- var MastraError = class extends MastraBaseError {
12117
- };
12118
- exports2.ErrorCategory = ErrorCategory;
12119
- exports2.ErrorDomain = ErrorDomain;
12120
- exports2.MastraBaseError = MastraBaseError;
12121
- exports2.MastraError = MastraError;
12122
- }
12123
- });
12124
-
12125
12250
  // ../../packages/core/dist/chunk-4Z3OU5RY.cjs
12126
12251
  var require_chunk_4Z3OU5RY = __commonJS({
12127
12252
  "../../packages/core/dist/chunk-4Z3OU5RY.cjs"(exports2) {
@@ -12226,16 +12351,16 @@ var require_chunk_LABUWBKX = __commonJS({
12226
12351
  }
12227
12352
  });
12228
12353
 
12229
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/Types.js
12354
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/Types.js
12230
12355
  var require_Types = __commonJS({
12231
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/Types.js"(exports2) {
12356
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/Types.js"(exports2) {
12232
12357
  Object.defineProperty(exports2, "__esModule", { value: true });
12233
12358
  }
12234
12359
  });
12235
12360
 
12236
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAnyOf.js
12361
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAnyOf.js
12237
12362
  var require_parseAnyOf = __commonJS({
12238
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAnyOf.js"(exports2) {
12363
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAnyOf.js"(exports2) {
12239
12364
  Object.defineProperty(exports2, "__esModule", { value: true });
12240
12365
  exports2.parseAnyOf = void 0;
12241
12366
  var parseSchema_js_1 = require_parseSchema();
@@ -12249,9 +12374,9 @@ var require_parseAnyOf = __commonJS({
12249
12374
  }
12250
12375
  });
12251
12376
 
12252
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseBoolean.js
12377
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseBoolean.js
12253
12378
  var require_parseBoolean = __commonJS({
12254
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseBoolean.js"(exports2) {
12379
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseBoolean.js"(exports2) {
12255
12380
  Object.defineProperty(exports2, "__esModule", { value: true });
12256
12381
  exports2.parseBoolean = void 0;
12257
12382
  var parseBoolean = (_schema) => {
@@ -12261,9 +12386,9 @@ var require_parseBoolean = __commonJS({
12261
12386
  }
12262
12387
  });
12263
12388
 
12264
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseDefault.js
12389
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseDefault.js
12265
12390
  var require_parseDefault = __commonJS({
12266
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseDefault.js"(exports2) {
12391
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseDefault.js"(exports2) {
12267
12392
  Object.defineProperty(exports2, "__esModule", { value: true });
12268
12393
  exports2.parseDefault = void 0;
12269
12394
  var parseDefault = (_schema) => {
@@ -12273,22 +12398,22 @@ var require_parseDefault = __commonJS({
12273
12398
  }
12274
12399
  });
12275
12400
 
12276
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseMultipleType.js
12401
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseMultipleType.js
12277
12402
  var require_parseMultipleType = __commonJS({
12278
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseMultipleType.js"(exports2) {
12403
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseMultipleType.js"(exports2) {
12279
12404
  Object.defineProperty(exports2, "__esModule", { value: true });
12280
12405
  exports2.parseMultipleType = void 0;
12281
12406
  var parseSchema_js_1 = require_parseSchema();
12282
12407
  var parseMultipleType = (schema, refs) => {
12283
- return `z.union([${schema.type.map((type) => (0, parseSchema_js_1.parseSchema)({ ...schema, type }, refs)).join(", ")}])`;
12408
+ return `z.union([${schema.type.map((type) => (0, parseSchema_js_1.parseSchema)({ ...schema, type }, { ...refs, withoutDefaults: true })).join(", ")}])`;
12284
12409
  };
12285
12410
  exports2.parseMultipleType = parseMultipleType;
12286
12411
  }
12287
12412
  });
12288
12413
 
12289
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNot.js
12414
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNot.js
12290
12415
  var require_parseNot = __commonJS({
12291
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNot.js"(exports2) {
12416
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNot.js"(exports2) {
12292
12417
  Object.defineProperty(exports2, "__esModule", { value: true });
12293
12418
  exports2.parseNot = void 0;
12294
12419
  var parseSchema_js_1 = require_parseSchema();
@@ -12302,9 +12427,9 @@ var require_parseNot = __commonJS({
12302
12427
  }
12303
12428
  });
12304
12429
 
12305
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNull.js
12430
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNull.js
12306
12431
  var require_parseNull = __commonJS({
12307
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNull.js"(exports2) {
12432
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNull.js"(exports2) {
12308
12433
  Object.defineProperty(exports2, "__esModule", { value: true });
12309
12434
  exports2.parseNull = void 0;
12310
12435
  var parseNull = (_schema) => {
@@ -12314,9 +12439,9 @@ var require_parseNull = __commonJS({
12314
12439
  }
12315
12440
  });
12316
12441
 
12317
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/half.js
12442
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/half.js
12318
12443
  var require_half = __commonJS({
12319
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/half.js"(exports2) {
12444
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/half.js"(exports2) {
12320
12445
  Object.defineProperty(exports2, "__esModule", { value: true });
12321
12446
  exports2.half = void 0;
12322
12447
  var half = (arr) => {
@@ -12326,9 +12451,9 @@ var require_half = __commonJS({
12326
12451
  }
12327
12452
  });
12328
12453
 
12329
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAllOf.js
12454
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAllOf.js
12330
12455
  var require_parseAllOf = __commonJS({
12331
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAllOf.js"(exports2) {
12456
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseAllOf.js"(exports2) {
12332
12457
  Object.defineProperty(exports2, "__esModule", { value: true });
12333
12458
  exports2.parseAllOf = void 0;
12334
12459
  var parseSchema_js_1 = require_parseSchema();
@@ -12368,9 +12493,9 @@ var require_parseAllOf = __commonJS({
12368
12493
  }
12369
12494
  });
12370
12495
 
12371
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/withMessage.js
12496
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/withMessage.js
12372
12497
  var require_withMessage = __commonJS({
12373
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/withMessage.js"(exports2) {
12498
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/withMessage.js"(exports2) {
12374
12499
  Object.defineProperty(exports2, "__esModule", { value: true });
12375
12500
  exports2.withMessage = void 0;
12376
12501
  function withMessage(schema, key, get) {
@@ -12395,9 +12520,9 @@ var require_withMessage = __commonJS({
12395
12520
  }
12396
12521
  });
12397
12522
 
12398
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseArray.js
12523
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseArray.js
12399
12524
  var require_parseArray = __commonJS({
12400
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseArray.js"(exports2) {
12525
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseArray.js"(exports2) {
12401
12526
  Object.defineProperty(exports2, "__esModule", { value: true });
12402
12527
  exports2.parseArray = void 0;
12403
12528
  var withMessage_js_1 = require_withMessage();
@@ -12426,9 +12551,9 @@ var require_parseArray = __commonJS({
12426
12551
  }
12427
12552
  });
12428
12553
 
12429
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseConst.js
12554
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseConst.js
12430
12555
  var require_parseConst = __commonJS({
12431
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseConst.js"(exports2) {
12556
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseConst.js"(exports2) {
12432
12557
  Object.defineProperty(exports2, "__esModule", { value: true });
12433
12558
  exports2.parseConst = void 0;
12434
12559
  var parseConst = (schema) => {
@@ -12438,9 +12563,9 @@ var require_parseConst = __commonJS({
12438
12563
  }
12439
12564
  });
12440
12565
 
12441
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseEnum.js
12566
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseEnum.js
12442
12567
  var require_parseEnum = __commonJS({
12443
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseEnum.js"(exports2) {
12568
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseEnum.js"(exports2) {
12444
12569
  Object.defineProperty(exports2, "__esModule", { value: true });
12445
12570
  exports2.parseEnum = void 0;
12446
12571
  var parseEnum = (schema) => {
@@ -12458,9 +12583,9 @@ var require_parseEnum = __commonJS({
12458
12583
  }
12459
12584
  });
12460
12585
 
12461
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseIfThenElse.js
12586
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseIfThenElse.js
12462
12587
  var require_parseIfThenElse = __commonJS({
12463
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseIfThenElse.js"(exports2) {
12588
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseIfThenElse.js"(exports2) {
12464
12589
  Object.defineProperty(exports2, "__esModule", { value: true });
12465
12590
  exports2.parseIfThenElse = void 0;
12466
12591
  var parseSchema_js_1 = require_parseSchema();
@@ -12487,9 +12612,9 @@ var require_parseIfThenElse = __commonJS({
12487
12612
  }
12488
12613
  });
12489
12614
 
12490
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNumber.js
12615
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNumber.js
12491
12616
  var require_parseNumber = __commonJS({
12492
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNumber.js"(exports2) {
12617
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNumber.js"(exports2) {
12493
12618
  Object.defineProperty(exports2, "__esModule", { value: true });
12494
12619
  exports2.parseNumber = void 0;
12495
12620
  var withMessage_js_1 = require_withMessage();
@@ -12561,9 +12686,9 @@ var require_parseNumber = __commonJS({
12561
12686
  }
12562
12687
  });
12563
12688
 
12564
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseOneOf.js
12689
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseOneOf.js
12565
12690
  var require_parseOneOf = __commonJS({
12566
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseOneOf.js"(exports2) {
12691
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseOneOf.js"(exports2) {
12567
12692
  Object.defineProperty(exports2, "__esModule", { value: true });
12568
12693
  exports2.parseOneOf = void 0;
12569
12694
  var parseSchema_js_1 = require_parseSchema();
@@ -12598,9 +12723,9 @@ var require_parseOneOf = __commonJS({
12598
12723
  }
12599
12724
  });
12600
12725
 
12601
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/jsdocs.js
12726
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/jsdocs.js
12602
12727
  var require_jsdocs = __commonJS({
12603
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/jsdocs.js"(exports2) {
12728
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/jsdocs.js"(exports2) {
12604
12729
  Object.defineProperty(exports2, "__esModule", { value: true });
12605
12730
  exports2.addJsdocs = exports2.expandJsdocs = void 0;
12606
12731
  var expandJsdocs = (jsdocs) => {
@@ -12624,9 +12749,9 @@ ${(0, exports2.expandJsdocs)(description)}${parsed}`;
12624
12749
  }
12625
12750
  });
12626
12751
 
12627
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseObject.js
12752
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseObject.js
12628
12753
  var require_parseObject = __commonJS({
12629
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseObject.js"(exports2) {
12754
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseObject.js"(exports2) {
12630
12755
  Object.defineProperty(exports2, "__esModule", { value: true });
12631
12756
  exports2.parseObject = void 0;
12632
12757
  var parseAnyOf_js_1 = require_parseAnyOf();
@@ -12771,9 +12896,9 @@ var require_parseObject = __commonJS({
12771
12896
  }
12772
12897
  });
12773
12898
 
12774
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseString.js
12899
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseString.js
12775
12900
  var require_parseString = __commonJS({
12776
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseString.js"(exports2) {
12901
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseString.js"(exports2) {
12777
12902
  Object.defineProperty(exports2, "__esModule", { value: true });
12778
12903
  exports2.parseString = void 0;
12779
12904
  var withMessage_js_1 = require_withMessage();
@@ -12853,9 +12978,9 @@ var require_parseString = __commonJS({
12853
12978
  }
12854
12979
  });
12855
12980
 
12856
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/omit.js
12981
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/omit.js
12857
12982
  var require_omit = __commonJS({
12858
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/utils/omit.js"(exports2) {
12983
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/utils/omit.js"(exports2) {
12859
12984
  Object.defineProperty(exports2, "__esModule", { value: true });
12860
12985
  exports2.omit = void 0;
12861
12986
  var omit = (obj, ...keys) => Object.keys(obj).reduce((acc, key) => {
@@ -12868,9 +12993,9 @@ var require_omit = __commonJS({
12868
12993
  }
12869
12994
  });
12870
12995
 
12871
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNullable.js
12996
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNullable.js
12872
12997
  var require_parseNullable = __commonJS({
12873
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNullable.js"(exports2) {
12998
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseNullable.js"(exports2) {
12874
12999
  Object.defineProperty(exports2, "__esModule", { value: true });
12875
13000
  exports2.parseNullable = void 0;
12876
13001
  var omit_js_1 = require_omit();
@@ -12882,9 +13007,9 @@ var require_parseNullable = __commonJS({
12882
13007
  }
12883
13008
  });
12884
13009
 
12885
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseSchema.js
13010
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseSchema.js
12886
13011
  var require_parseSchema = __commonJS({
12887
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/parsers/parseSchema.js"(exports2) {
13012
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/parsers/parseSchema.js"(exports2) {
12888
13013
  Object.defineProperty(exports2, "__esModule", { value: true });
12889
13014
  exports2.its = exports2.parseSchema = void 0;
12890
13015
  var parseAnyOf_js_1 = require_parseAnyOf();
@@ -13013,9 +13138,9 @@ var require_parseSchema = __commonJS({
13013
13138
  }
13014
13139
  });
13015
13140
 
13016
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/jsonSchemaToZod.js
13141
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/jsonSchemaToZod.js
13017
13142
  var require_jsonSchemaToZod = __commonJS({
13018
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/jsonSchemaToZod.js"(exports2) {
13143
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/jsonSchemaToZod.js"(exports2) {
13019
13144
  Object.defineProperty(exports2, "__esModule", { value: true });
13020
13145
  exports2.jsonSchemaToZod = void 0;
13021
13146
  var parseSchema_js_1 = require_parseSchema();
@@ -13062,9 +13187,9 @@ ${result}`;
13062
13187
  }
13063
13188
  });
13064
13189
 
13065
- // ../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/index.js
13190
+ // ../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/index.js
13066
13191
  var require_cjs = __commonJS({
13067
- "../../node_modules/.pnpm/json-schema-to-zod@2.6.0/node_modules/json-schema-to-zod/dist/cjs/index.js"(exports2) {
13192
+ "../../node_modules/.pnpm/json-schema-to-zod@2.6.1/node_modules/json-schema-to-zod/dist/cjs/index.js"(exports2) {
13068
13193
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
13069
13194
  if (k2 === void 0) k2 = k;
13070
13195
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -13110,9 +13235,9 @@ var require_cjs = __commonJS({
13110
13235
  }
13111
13236
  });
13112
13237
 
13113
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/util.js
13238
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/util.js
13114
13239
  var require_util = __commonJS({
13115
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/util.js"(exports2) {
13240
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/util.js"(exports2) {
13116
13241
  Object.defineProperty(exports2, "__esModule", { value: true });
13117
13242
  exports2.getParsedType = exports2.ZodParsedType = exports2.objectUtil = exports2.util = void 0;
13118
13243
  var util;
@@ -13251,9 +13376,9 @@ var require_util = __commonJS({
13251
13376
  }
13252
13377
  });
13253
13378
 
13254
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/ZodError.js
13379
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/ZodError.js
13255
13380
  var require_ZodError = __commonJS({
13256
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/ZodError.js"(exports2) {
13381
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/ZodError.js"(exports2) {
13257
13382
  Object.defineProperty(exports2, "__esModule", { value: true });
13258
13383
  exports2.ZodError = exports2.quotelessJson = exports2.ZodIssueCode = void 0;
13259
13384
  var util_js_1 = require_util();
@@ -13377,9 +13502,9 @@ var require_ZodError = __commonJS({
13377
13502
  }
13378
13503
  });
13379
13504
 
13380
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/locales/en.js
13505
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/locales/en.js
13381
13506
  var require_en = __commonJS({
13382
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/locales/en.js"(exports2) {
13507
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/locales/en.js"(exports2) {
13383
13508
  Object.defineProperty(exports2, "__esModule", { value: true });
13384
13509
  var ZodError_js_1 = require_ZodError();
13385
13510
  var util_js_1 = require_util();
@@ -13485,9 +13610,9 @@ var require_en = __commonJS({
13485
13610
  }
13486
13611
  });
13487
13612
 
13488
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/errors.js
13613
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/errors.js
13489
13614
  var require_errors = __commonJS({
13490
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/errors.js"(exports2) {
13615
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/errors.js"(exports2) {
13491
13616
  var __importDefault = exports2 && exports2.__importDefault || function(mod2) {
13492
13617
  return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
13493
13618
  };
@@ -13507,9 +13632,9 @@ var require_errors = __commonJS({
13507
13632
  }
13508
13633
  });
13509
13634
 
13510
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js
13635
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js
13511
13636
  var require_parseUtil = __commonJS({
13512
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js"(exports2) {
13637
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js"(exports2) {
13513
13638
  var __importDefault = exports2 && exports2.__importDefault || function(mod2) {
13514
13639
  return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
13515
13640
  };
@@ -13637,16 +13762,16 @@ var require_parseUtil = __commonJS({
13637
13762
  }
13638
13763
  });
13639
13764
 
13640
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js
13765
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js
13641
13766
  var require_typeAliases = __commonJS({
13642
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js"(exports2) {
13767
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js"(exports2) {
13643
13768
  Object.defineProperty(exports2, "__esModule", { value: true });
13644
13769
  }
13645
13770
  });
13646
13771
 
13647
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js
13772
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js
13648
13773
  var require_errorUtil = __commonJS({
13649
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js"(exports2) {
13774
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js"(exports2) {
13650
13775
  Object.defineProperty(exports2, "__esModule", { value: true });
13651
13776
  exports2.errorUtil = void 0;
13652
13777
  var errorUtil;
@@ -13657,9 +13782,9 @@ var require_errorUtil = __commonJS({
13657
13782
  }
13658
13783
  });
13659
13784
 
13660
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/types.js
13785
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/types.js
13661
13786
  var require_types = __commonJS({
13662
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/types.js"(exports2) {
13787
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/types.js"(exports2) {
13663
13788
  Object.defineProperty(exports2, "__esModule", { value: true });
13664
13789
  exports2.discriminatedUnion = exports2.date = exports2.boolean = exports2.bigint = exports2.array = exports2.any = exports2.coerce = exports2.ZodFirstPartyTypeKind = exports2.late = exports2.ZodSchema = exports2.Schema = exports2.ZodReadonly = exports2.ZodPipeline = exports2.ZodBranded = exports2.BRAND = exports2.ZodNaN = exports2.ZodCatch = exports2.ZodDefault = exports2.ZodNullable = exports2.ZodOptional = exports2.ZodTransformer = exports2.ZodEffects = exports2.ZodPromise = exports2.ZodNativeEnum = exports2.ZodEnum = exports2.ZodLiteral = exports2.ZodLazy = exports2.ZodFunction = exports2.ZodSet = exports2.ZodMap = exports2.ZodRecord = exports2.ZodTuple = exports2.ZodIntersection = exports2.ZodDiscriminatedUnion = exports2.ZodUnion = exports2.ZodObject = exports2.ZodArray = exports2.ZodVoid = exports2.ZodNever = exports2.ZodUnknown = exports2.ZodAny = exports2.ZodNull = exports2.ZodUndefined = exports2.ZodSymbol = exports2.ZodDate = exports2.ZodBoolean = exports2.ZodBigInt = exports2.ZodNumber = exports2.ZodString = exports2.ZodType = void 0;
13665
13790
  exports2.NEVER = exports2.void = exports2.unknown = exports2.union = exports2.undefined = exports2.tuple = exports2.transformer = exports2.symbol = exports2.string = exports2.strictObject = exports2.set = exports2.record = exports2.promise = exports2.preprocess = exports2.pipeline = exports2.ostring = exports2.optional = exports2.onumber = exports2.oboolean = exports2.object = exports2.number = exports2.nullable = exports2.null = exports2.never = exports2.nativeEnum = exports2.nan = exports2.map = exports2.literal = exports2.lazy = exports2.intersection = exports2.instanceof = exports2.function = exports2.enum = exports2.effect = void 0;
@@ -17194,9 +17319,9 @@ var require_types = __commonJS({
17194
17319
  }
17195
17320
  });
17196
17321
 
17197
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/external.js
17322
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/external.js
17198
17323
  var require_external = __commonJS({
17199
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/external.js"(exports2) {
17324
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/external.js"(exports2) {
17200
17325
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
17201
17326
  if (k2 === void 0) k2 = k;
17202
17327
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -17223,9 +17348,9 @@ var require_external = __commonJS({
17223
17348
  }
17224
17349
  });
17225
17350
 
17226
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/index.js
17351
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/index.js
17227
17352
  var require_v3 = __commonJS({
17228
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/v3/index.js"(exports2) {
17353
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/v3/index.js"(exports2) {
17229
17354
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
17230
17355
  if (k2 === void 0) k2 = k;
17231
17356
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -17265,9 +17390,9 @@ var require_v3 = __commonJS({
17265
17390
  }
17266
17391
  });
17267
17392
 
17268
- // ../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/index.js
17393
+ // ../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/index.js
17269
17394
  var require_cjs2 = __commonJS({
17270
- "../../node_modules/.pnpm/zod@3.25.56/node_modules/zod/dist/cjs/index.js"(exports2) {
17395
+ "../../node_modules/.pnpm/zod@3.25.57/node_modules/zod/dist/cjs/index.js"(exports2) {
17271
17396
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
17272
17397
  if (k2 === void 0) k2 = k;
17273
17398
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -17809,9 +17934,9 @@ var require_secure_json_parse = __commonJS({
17809
17934
  }
17810
17935
  });
17811
17936
 
17812
- // ../../node_modules/.pnpm/@ai-sdk+provider-utils@2.2.8_zod@3.25.56/node_modules/@ai-sdk/provider-utils/dist/index.js
17937
+ // ../../node_modules/.pnpm/@ai-sdk+provider-utils@2.2.8_zod@3.25.57/node_modules/@ai-sdk/provider-utils/dist/index.js
17813
17938
  var require_dist2 = __commonJS({
17814
- "../../node_modules/.pnpm/@ai-sdk+provider-utils@2.2.8_zod@3.25.56/node_modules/@ai-sdk/provider-utils/dist/index.js"(exports2, module2) {
17939
+ "../../node_modules/.pnpm/@ai-sdk+provider-utils@2.2.8_zod@3.25.57/node_modules/@ai-sdk/provider-utils/dist/index.js"(exports2, module2) {
17815
17940
  var __create = Object.create;
17816
17941
  var __defProp = Object.defineProperty;
17817
17942
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -18664,9 +18789,9 @@ var require_dist2 = __commonJS({
18664
18789
  }
18665
18790
  });
18666
18791
 
18667
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/Options.js
18792
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/Options.js
18668
18793
  var require_Options = __commonJS({
18669
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/Options.js"(exports2) {
18794
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/Options.js"(exports2) {
18670
18795
  Object.defineProperty(exports2, "__esModule", { value: true });
18671
18796
  exports2.getDefaultOptions = exports2.defaultOptions = exports2.jsonDescription = exports2.ignoreOverride = void 0;
18672
18797
  exports2.ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
@@ -18717,9 +18842,9 @@ var require_Options = __commonJS({
18717
18842
  }
18718
18843
  });
18719
18844
 
18720
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/Refs.js
18845
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/Refs.js
18721
18846
  var require_Refs = __commonJS({
18722
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/Refs.js"(exports2) {
18847
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/Refs.js"(exports2) {
18723
18848
  Object.defineProperty(exports2, "__esModule", { value: true });
18724
18849
  exports2.getRefs = void 0;
18725
18850
  var Options_js_1 = require_Options();
@@ -18745,9 +18870,9 @@ var require_Refs = __commonJS({
18745
18870
  }
18746
18871
  });
18747
18872
 
18748
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js
18873
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js
18749
18874
  var require_errorMessages = __commonJS({
18750
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js"(exports2) {
18875
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js"(exports2) {
18751
18876
  Object.defineProperty(exports2, "__esModule", { value: true });
18752
18877
  exports2.setResponseValueAndErrors = exports2.addErrorMessage = void 0;
18753
18878
  function addErrorMessage(res, key, errorMessage, refs) {
@@ -18769,9 +18894,9 @@ var require_errorMessages = __commonJS({
18769
18894
  }
18770
18895
  });
18771
18896
 
18772
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js
18897
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js
18773
18898
  var require_any = __commonJS({
18774
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js"(exports2) {
18899
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js"(exports2) {
18775
18900
  Object.defineProperty(exports2, "__esModule", { value: true });
18776
18901
  exports2.parseAnyDef = void 0;
18777
18902
  function parseAnyDef() {
@@ -18781,9 +18906,9 @@ var require_any = __commonJS({
18781
18906
  }
18782
18907
  });
18783
18908
 
18784
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js
18909
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js
18785
18910
  var require_array = __commonJS({
18786
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js"(exports2) {
18911
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js"(exports2) {
18787
18912
  Object.defineProperty(exports2, "__esModule", { value: true });
18788
18913
  exports2.parseArrayDef = void 0;
18789
18914
  var zod_1 = require_cjs2();
@@ -18815,9 +18940,9 @@ var require_array = __commonJS({
18815
18940
  }
18816
18941
  });
18817
18942
 
18818
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js
18943
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js
18819
18944
  var require_bigint = __commonJS({
18820
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js"(exports2) {
18945
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js"(exports2) {
18821
18946
  Object.defineProperty(exports2, "__esModule", { value: true });
18822
18947
  exports2.parseBigintDef = void 0;
18823
18948
  var errorMessages_js_1 = require_errorMessages();
@@ -18869,9 +18994,9 @@ var require_bigint = __commonJS({
18869
18994
  }
18870
18995
  });
18871
18996
 
18872
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js
18997
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js
18873
18998
  var require_boolean = __commonJS({
18874
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js"(exports2) {
18999
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js"(exports2) {
18875
19000
  Object.defineProperty(exports2, "__esModule", { value: true });
18876
19001
  exports2.parseBooleanDef = void 0;
18877
19002
  function parseBooleanDef() {
@@ -18883,9 +19008,9 @@ var require_boolean = __commonJS({
18883
19008
  }
18884
19009
  });
18885
19010
 
18886
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js
19011
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js
18887
19012
  var require_branded = __commonJS({
18888
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js"(exports2) {
19013
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js"(exports2) {
18889
19014
  Object.defineProperty(exports2, "__esModule", { value: true });
18890
19015
  exports2.parseBrandedDef = void 0;
18891
19016
  var parseDef_js_1 = require_parseDef();
@@ -18896,9 +19021,9 @@ var require_branded = __commonJS({
18896
19021
  }
18897
19022
  });
18898
19023
 
18899
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js
19024
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js
18900
19025
  var require_catch = __commonJS({
18901
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js"(exports2) {
19026
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js"(exports2) {
18902
19027
  Object.defineProperty(exports2, "__esModule", { value: true });
18903
19028
  exports2.parseCatchDef = void 0;
18904
19029
  var parseDef_js_1 = require_parseDef();
@@ -18909,9 +19034,9 @@ var require_catch = __commonJS({
18909
19034
  }
18910
19035
  });
18911
19036
 
18912
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js
19037
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js
18913
19038
  var require_date = __commonJS({
18914
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js"(exports2) {
19039
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js"(exports2) {
18915
19040
  Object.defineProperty(exports2, "__esModule", { value: true });
18916
19041
  exports2.parseDateDef = void 0;
18917
19042
  var errorMessages_js_1 = require_errorMessages();
@@ -18976,9 +19101,9 @@ var require_date = __commonJS({
18976
19101
  }
18977
19102
  });
18978
19103
 
18979
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js
19104
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js
18980
19105
  var require_default = __commonJS({
18981
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js"(exports2) {
19106
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js"(exports2) {
18982
19107
  Object.defineProperty(exports2, "__esModule", { value: true });
18983
19108
  exports2.parseDefaultDef = void 0;
18984
19109
  var parseDef_js_1 = require_parseDef();
@@ -18992,9 +19117,9 @@ var require_default = __commonJS({
18992
19117
  }
18993
19118
  });
18994
19119
 
18995
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js
19120
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js
18996
19121
  var require_effects = __commonJS({
18997
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js"(exports2) {
19122
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js"(exports2) {
18998
19123
  Object.defineProperty(exports2, "__esModule", { value: true });
18999
19124
  exports2.parseEffectsDef = void 0;
19000
19125
  var parseDef_js_1 = require_parseDef();
@@ -19005,9 +19130,9 @@ var require_effects = __commonJS({
19005
19130
  }
19006
19131
  });
19007
19132
 
19008
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js
19133
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js
19009
19134
  var require_enum = __commonJS({
19010
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js"(exports2) {
19135
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js"(exports2) {
19011
19136
  Object.defineProperty(exports2, "__esModule", { value: true });
19012
19137
  exports2.parseEnumDef = void 0;
19013
19138
  function parseEnumDef(def) {
@@ -19020,9 +19145,9 @@ var require_enum = __commonJS({
19020
19145
  }
19021
19146
  });
19022
19147
 
19023
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js
19148
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js
19024
19149
  var require_intersection = __commonJS({
19025
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js"(exports2) {
19150
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js"(exports2) {
19026
19151
  Object.defineProperty(exports2, "__esModule", { value: true });
19027
19152
  exports2.parseIntersectionDef = void 0;
19028
19153
  var parseDef_js_1 = require_parseDef();
@@ -19070,9 +19195,9 @@ var require_intersection = __commonJS({
19070
19195
  }
19071
19196
  });
19072
19197
 
19073
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js
19198
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js
19074
19199
  var require_literal = __commonJS({
19075
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js"(exports2) {
19200
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js"(exports2) {
19076
19201
  Object.defineProperty(exports2, "__esModule", { value: true });
19077
19202
  exports2.parseLiteralDef = void 0;
19078
19203
  function parseLiteralDef(def, refs) {
@@ -19097,9 +19222,9 @@ var require_literal = __commonJS({
19097
19222
  }
19098
19223
  });
19099
19224
 
19100
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js
19225
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js
19101
19226
  var require_string = __commonJS({
19102
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js"(exports2) {
19227
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js"(exports2) {
19103
19228
  Object.defineProperty(exports2, "__esModule", { value: true });
19104
19229
  exports2.parseStringDef = exports2.zodPatterns = void 0;
19105
19230
  var errorMessages_js_1 = require_errorMessages();
@@ -19417,9 +19542,9 @@ var require_string = __commonJS({
19417
19542
  }
19418
19543
  });
19419
19544
 
19420
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js
19545
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js
19421
19546
  var require_record = __commonJS({
19422
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js"(exports2) {
19547
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js"(exports2) {
19423
19548
  Object.defineProperty(exports2, "__esModule", { value: true });
19424
19549
  exports2.parseRecordDef = void 0;
19425
19550
  var zod_1 = require_cjs2();
@@ -19480,9 +19605,9 @@ var require_record = __commonJS({
19480
19605
  }
19481
19606
  });
19482
19607
 
19483
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js
19608
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js
19484
19609
  var require_map = __commonJS({
19485
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js"(exports2) {
19610
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js"(exports2) {
19486
19611
  Object.defineProperty(exports2, "__esModule", { value: true });
19487
19612
  exports2.parseMapDef = void 0;
19488
19613
  var parseDef_js_1 = require_parseDef();
@@ -19514,9 +19639,9 @@ var require_map = __commonJS({
19514
19639
  }
19515
19640
  });
19516
19641
 
19517
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js
19642
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js
19518
19643
  var require_nativeEnum = __commonJS({
19519
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js"(exports2) {
19644
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js"(exports2) {
19520
19645
  Object.defineProperty(exports2, "__esModule", { value: true });
19521
19646
  exports2.parseNativeEnumDef = void 0;
19522
19647
  function parseNativeEnumDef(def) {
@@ -19535,9 +19660,9 @@ var require_nativeEnum = __commonJS({
19535
19660
  }
19536
19661
  });
19537
19662
 
19538
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js
19663
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js
19539
19664
  var require_never = __commonJS({
19540
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js"(exports2) {
19665
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js"(exports2) {
19541
19666
  Object.defineProperty(exports2, "__esModule", { value: true });
19542
19667
  exports2.parseNeverDef = void 0;
19543
19668
  function parseNeverDef() {
@@ -19549,9 +19674,9 @@ var require_never = __commonJS({
19549
19674
  }
19550
19675
  });
19551
19676
 
19552
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js
19677
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js
19553
19678
  var require_null = __commonJS({
19554
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js"(exports2) {
19679
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js"(exports2) {
19555
19680
  Object.defineProperty(exports2, "__esModule", { value: true });
19556
19681
  exports2.parseNullDef = void 0;
19557
19682
  function parseNullDef(refs) {
@@ -19566,9 +19691,9 @@ var require_null = __commonJS({
19566
19691
  }
19567
19692
  });
19568
19693
 
19569
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js
19694
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js
19570
19695
  var require_union = __commonJS({
19571
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js"(exports2) {
19696
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js"(exports2) {
19572
19697
  Object.defineProperty(exports2, "__esModule", { value: true });
19573
19698
  exports2.parseUnionDef = exports2.primitiveMappings = void 0;
19574
19699
  var parseDef_js_1 = require_parseDef();
@@ -19642,9 +19767,9 @@ var require_union = __commonJS({
19642
19767
  }
19643
19768
  });
19644
19769
 
19645
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js
19770
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js
19646
19771
  var require_nullable = __commonJS({
19647
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js"(exports2) {
19772
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js"(exports2) {
19648
19773
  Object.defineProperty(exports2, "__esModule", { value: true });
19649
19774
  exports2.parseNullableDef = void 0;
19650
19775
  var parseDef_js_1 = require_parseDef();
@@ -19683,9 +19808,9 @@ var require_nullable = __commonJS({
19683
19808
  }
19684
19809
  });
19685
19810
 
19686
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js
19811
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js
19687
19812
  var require_number = __commonJS({
19688
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js"(exports2) {
19813
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js"(exports2) {
19689
19814
  Object.defineProperty(exports2, "__esModule", { value: true });
19690
19815
  exports2.parseNumberDef = void 0;
19691
19816
  var errorMessages_js_1 = require_errorMessages();
@@ -19740,9 +19865,9 @@ var require_number = __commonJS({
19740
19865
  }
19741
19866
  });
19742
19867
 
19743
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js
19868
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js
19744
19869
  var require_object = __commonJS({
19745
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js"(exports2) {
19870
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js"(exports2) {
19746
19871
  Object.defineProperty(exports2, "__esModule", { value: true });
19747
19872
  exports2.parseObjectDef = void 0;
19748
19873
  var zod_1 = require_cjs2();
@@ -19819,9 +19944,9 @@ var require_object = __commonJS({
19819
19944
  }
19820
19945
  });
19821
19946
 
19822
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js
19947
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js
19823
19948
  var require_optional = __commonJS({
19824
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js"(exports2) {
19949
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js"(exports2) {
19825
19950
  Object.defineProperty(exports2, "__esModule", { value: true });
19826
19951
  exports2.parseOptionalDef = void 0;
19827
19952
  var parseDef_js_1 = require_parseDef();
@@ -19846,9 +19971,9 @@ var require_optional = __commonJS({
19846
19971
  }
19847
19972
  });
19848
19973
 
19849
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js
19974
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js
19850
19975
  var require_pipeline = __commonJS({
19851
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js"(exports2) {
19976
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js"(exports2) {
19852
19977
  Object.defineProperty(exports2, "__esModule", { value: true });
19853
19978
  exports2.parsePipelineDef = void 0;
19854
19979
  var parseDef_js_1 = require_parseDef();
@@ -19874,9 +19999,9 @@ var require_pipeline = __commonJS({
19874
19999
  }
19875
20000
  });
19876
20001
 
19877
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js
20002
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js
19878
20003
  var require_promise = __commonJS({
19879
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js"(exports2) {
20004
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js"(exports2) {
19880
20005
  Object.defineProperty(exports2, "__esModule", { value: true });
19881
20006
  exports2.parsePromiseDef = void 0;
19882
20007
  var parseDef_js_1 = require_parseDef();
@@ -19887,9 +20012,9 @@ var require_promise = __commonJS({
19887
20012
  }
19888
20013
  });
19889
20014
 
19890
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js
20015
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js
19891
20016
  var require_set = __commonJS({
19892
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js"(exports2) {
20017
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js"(exports2) {
19893
20018
  Object.defineProperty(exports2, "__esModule", { value: true });
19894
20019
  exports2.parseSetDef = void 0;
19895
20020
  var errorMessages_js_1 = require_errorMessages();
@@ -19916,9 +20041,9 @@ var require_set = __commonJS({
19916
20041
  }
19917
20042
  });
19918
20043
 
19919
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js
20044
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js
19920
20045
  var require_tuple = __commonJS({
19921
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js"(exports2) {
20046
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js"(exports2) {
19922
20047
  Object.defineProperty(exports2, "__esModule", { value: true });
19923
20048
  exports2.parseTupleDef = void 0;
19924
20049
  var parseDef_js_1 = require_parseDef();
@@ -19952,9 +20077,9 @@ var require_tuple = __commonJS({
19952
20077
  }
19953
20078
  });
19954
20079
 
19955
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js
20080
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js
19956
20081
  var require_undefined = __commonJS({
19957
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js"(exports2) {
20082
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js"(exports2) {
19958
20083
  Object.defineProperty(exports2, "__esModule", { value: true });
19959
20084
  exports2.parseUndefinedDef = void 0;
19960
20085
  function parseUndefinedDef() {
@@ -19966,9 +20091,9 @@ var require_undefined = __commonJS({
19966
20091
  }
19967
20092
  });
19968
20093
 
19969
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js
20094
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js
19970
20095
  var require_unknown = __commonJS({
19971
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js"(exports2) {
20096
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js"(exports2) {
19972
20097
  Object.defineProperty(exports2, "__esModule", { value: true });
19973
20098
  exports2.parseUnknownDef = void 0;
19974
20099
  function parseUnknownDef() {
@@ -19978,9 +20103,9 @@ var require_unknown = __commonJS({
19978
20103
  }
19979
20104
  });
19980
20105
 
19981
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js
20106
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js
19982
20107
  var require_readonly = __commonJS({
19983
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js"(exports2) {
20108
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js"(exports2) {
19984
20109
  Object.defineProperty(exports2, "__esModule", { value: true });
19985
20110
  exports2.parseReadonlyDef = void 0;
19986
20111
  var parseDef_js_1 = require_parseDef();
@@ -19991,9 +20116,9 @@ var require_readonly = __commonJS({
19991
20116
  }
19992
20117
  });
19993
20118
 
19994
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/selectParser.js
20119
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/selectParser.js
19995
20120
  var require_selectParser = __commonJS({
19996
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/selectParser.js"(exports2) {
20121
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/selectParser.js"(exports2) {
19997
20122
  Object.defineProperty(exports2, "__esModule", { value: true });
19998
20123
  exports2.selectParser = void 0;
19999
20124
  var zod_1 = require_cjs2();
@@ -20105,9 +20230,9 @@ var require_selectParser = __commonJS({
20105
20230
  }
20106
20231
  });
20107
20232
 
20108
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parseDef.js
20233
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parseDef.js
20109
20234
  var require_parseDef = __commonJS({
20110
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parseDef.js"(exports2) {
20235
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parseDef.js"(exports2) {
20111
20236
  Object.defineProperty(exports2, "__esModule", { value: true });
20112
20237
  exports2.parseDef = void 0;
20113
20238
  var Options_js_1 = require_Options();
@@ -20178,16 +20303,16 @@ var require_parseDef = __commonJS({
20178
20303
  }
20179
20304
  });
20180
20305
 
20181
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js
20306
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js
20182
20307
  var require_parseTypes = __commonJS({
20183
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js"(exports2) {
20308
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js"(exports2) {
20184
20309
  Object.defineProperty(exports2, "__esModule", { value: true });
20185
20310
  }
20186
20311
  });
20187
20312
 
20188
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js
20313
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js
20189
20314
  var require_zodToJsonSchema = __commonJS({
20190
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js"(exports2) {
20315
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js"(exports2) {
20191
20316
  Object.defineProperty(exports2, "__esModule", { value: true });
20192
20317
  exports2.zodToJsonSchema = void 0;
20193
20318
  var parseDef_js_1 = require_parseDef();
@@ -20238,9 +20363,9 @@ var require_zodToJsonSchema = __commonJS({
20238
20363
  }
20239
20364
  });
20240
20365
 
20241
- // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/index.js
20366
+ // ../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/index.js
20242
20367
  var require_cjs3 = __commonJS({
20243
- "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.56/node_modules/zod-to-json-schema/dist/cjs/index.js"(exports2) {
20368
+ "../../node_modules/.pnpm/zod-to-json-schema@3.24.5_zod@3.25.57/node_modules/zod-to-json-schema/dist/cjs/index.js"(exports2) {
20244
20369
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
20245
20370
  if (k2 === void 0) k2 = k;
20246
20371
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -20300,9 +20425,9 @@ var require_cjs3 = __commonJS({
20300
20425
  }
20301
20426
  });
20302
20427
 
20303
- // ../../node_modules/.pnpm/@ai-sdk+ui-utils@1.2.11_zod@3.25.56/node_modules/@ai-sdk/ui-utils/dist/index.js
20428
+ // ../../node_modules/.pnpm/@ai-sdk+ui-utils@1.2.11_zod@3.25.57/node_modules/@ai-sdk/ui-utils/dist/index.js
20304
20429
  var require_dist3 = __commonJS({
20305
- "../../node_modules/.pnpm/@ai-sdk+ui-utils@1.2.11_zod@3.25.56/node_modules/@ai-sdk/ui-utils/dist/index.js"(exports2, module2) {
20430
+ "../../node_modules/.pnpm/@ai-sdk+ui-utils@1.2.11_zod@3.25.57/node_modules/@ai-sdk/ui-utils/dist/index.js"(exports2, module2) {
20306
20431
  var __create = Object.create;
20307
20432
  var __defProp = Object.defineProperty;
20308
20433
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -21962,9 +22087,9 @@ var require_dist3 = __commonJS({
21962
22087
  }
21963
22088
  });
21964
22089
 
21965
- // ../../node_modules/.pnpm/ai@4.3.16_react@19.1.0_zod@3.25.56/node_modules/ai/dist/index.js
22090
+ // ../../node_modules/.pnpm/ai@4.3.16_react@19.1.0_zod@3.25.57/node_modules/ai/dist/index.js
21966
22091
  var require_dist4 = __commonJS({
21967
- "../../node_modules/.pnpm/ai@4.3.16_react@19.1.0_zod@3.25.56/node_modules/ai/dist/index.js"(exports2, module2) {
22092
+ "../../node_modules/.pnpm/ai@4.3.16_react@19.1.0_zod@3.25.57/node_modules/ai/dist/index.js"(exports2, module2) {
21968
22093
  var __defProp = Object.defineProperty;
21969
22094
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
21970
22095
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -30762,11 +30887,11 @@ Argument was an "any" type, but you (the LLM) do not support "any", so it was ca
30762
30887
  }
30763
30888
  });
30764
30889
 
30765
- // ../../packages/core/dist/chunk-QVROTSA5.cjs
30766
- var require_chunk_QVROTSA5 = __commonJS({
30767
- "../../packages/core/dist/chunk-QVROTSA5.cjs"(exports2) {
30768
- var chunkBBAQW23O_cjs = require_chunk_BBAQW23O();
30890
+ // ../../packages/core/dist/chunk-J7MLMW6O.cjs
30891
+ var require_chunk_J7MLMW6O = __commonJS({
30892
+ "../../packages/core/dist/chunk-J7MLMW6O.cjs"(exports2) {
30769
30893
  var chunk4Z3OU5RY_cjs = require_chunk_4Z3OU5RY();
30894
+ var chunkOLSQRA2V_cjs = require_chunk_OLSQRA2V();
30770
30895
  var chunkP3Q73CAW_cjs = require_chunk_P3Q73CAW();
30771
30896
  var chunkLABUWBKX_cjs = require_chunk_LABUWBKX();
30772
30897
  var crypto2 = __require("crypto");
@@ -30856,7 +30981,7 @@ var require_chunk_QVROTSA5 = __commonJS({
30856
30981
  logger2.debug(start, { ...rest, args });
30857
30982
  return await execFunction(args, execOptions);
30858
30983
  } catch (err) {
30859
- const mastraError = new chunkBBAQW23O_cjs.MastraError(
30984
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
30860
30985
  {
30861
30986
  id: "TOOL_EXECUTION_FAILED",
30862
30987
  domain: "TOOL",
@@ -31170,10 +31295,10 @@ var require_chunk_QVROTSA5 = __commonJS({
31170
31295
  }
31171
31296
  });
31172
31297
 
31173
- // ../../packages/core/dist/chunk-XUODQRSL.cjs
31174
- var require_chunk_XUODQRSL = __commonJS({
31175
- "../../packages/core/dist/chunk-XUODQRSL.cjs"(exports2) {
31176
- var chunkQVROTSA5_cjs = require_chunk_QVROTSA5();
31298
+ // ../../packages/core/dist/chunk-TGK6JO2D.cjs
31299
+ var require_chunk_TGK6JO2D = __commonJS({
31300
+ "../../packages/core/dist/chunk-TGK6JO2D.cjs"(exports2) {
31301
+ var chunkJ7MLMW6O_cjs = require_chunk_J7MLMW6O();
31177
31302
  var crypto2 = __require("crypto");
31178
31303
  var ai = require_dist4();
31179
31304
  var providerUtils = require_dist2();
@@ -32027,10 +32152,10 @@ ${JSON.stringify(message, null, 2)}`
32027
32152
  };
32028
32153
  }
32029
32154
  static isVercelUIMessage(msg) {
32030
- return !_MessageList.isMastraMessage(msg) && chunkQVROTSA5_cjs.isUiMessage(msg);
32155
+ return !_MessageList.isMastraMessage(msg) && chunkJ7MLMW6O_cjs.isUiMessage(msg);
32031
32156
  }
32032
32157
  static isVercelCoreMessage(msg) {
32033
- return !_MessageList.isMastraMessage(msg) && chunkQVROTSA5_cjs.isCoreMessage(msg);
32158
+ return !_MessageList.isMastraMessage(msg) && chunkJ7MLMW6O_cjs.isCoreMessage(msg);
32034
32159
  }
32035
32160
  static isMastraMessage(msg) {
32036
32161
  return _MessageList.isMastraMessageV2(msg) || _MessageList.isMastraMessageV1(msg);
@@ -32239,10 +32364,11 @@ var require_chunk_ST5RMVLG = __commonJS({
32239
32364
  }
32240
32365
  });
32241
32366
 
32242
- // ../../packages/core/dist/chunk-RO5VPM3P.cjs
32243
- var require_chunk_RO5VPM3P = __commonJS({
32244
- "../../packages/core/dist/chunk-RO5VPM3P.cjs"(exports2) {
32245
- var chunkQVROTSA5_cjs = require_chunk_QVROTSA5();
32367
+ // ../../packages/core/dist/chunk-HVI3SKIH.cjs
32368
+ var require_chunk_HVI3SKIH = __commonJS({
32369
+ "../../packages/core/dist/chunk-HVI3SKIH.cjs"(exports2) {
32370
+ var chunkJ7MLMW6O_cjs = require_chunk_J7MLMW6O();
32371
+ var chunkOLSQRA2V_cjs = require_chunk_OLSQRA2V();
32246
32372
  var chunkP3Q73CAW_cjs = require_chunk_P3Q73CAW();
32247
32373
  var chunkZIZ3CVHN_cjs = require_chunk_ZIZ3CVHN();
32248
32374
  var schemaCompat = require_dist6();
@@ -32409,7 +32535,31 @@ var require_chunk_RO5VPM3P = __commonJS({
32409
32535
  toolChoice,
32410
32536
  maxSteps,
32411
32537
  onStepFinish: async (props) => {
32412
- await onStepFinish?.(props);
32538
+ try {
32539
+ await onStepFinish?.(props);
32540
+ } catch (e) {
32541
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32542
+ {
32543
+ id: "LLM_TEXT_ON_STEP_FINISH_CALLBACK_EXECUTION_FAILED",
32544
+ domain: "LLM",
32545
+ category: "USER",
32546
+ details: {
32547
+ modelId: model.modelId,
32548
+ modelProvider: model.provider,
32549
+ runId: runId ?? "unknown",
32550
+ threadId: threadId ?? "unknown",
32551
+ resourceId: resourceId ?? "unknown",
32552
+ finishReason: props?.finishReason,
32553
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32554
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32555
+ usage: props?.usage ? JSON.stringify(props.usage) : ""
32556
+ }
32557
+ },
32558
+ e
32559
+ );
32560
+ this.logger.trackException(mastraError);
32561
+ throw mastraError;
32562
+ }
32413
32563
  this.logger.debug("[LLM] - Step Change:", {
32414
32564
  text: props?.text,
32415
32565
  toolCalls: props?.toolCalls,
@@ -32420,7 +32570,7 @@ var require_chunk_RO5VPM3P = __commonJS({
32420
32570
  });
32421
32571
  if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
32422
32572
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
32423
- await chunkQVROTSA5_cjs.delay(10 * 1e3);
32573
+ await chunkJ7MLMW6O_cjs.delay(10 * 1e3);
32424
32574
  }
32425
32575
  },
32426
32576
  ...rest
@@ -32439,17 +32589,37 @@ var require_chunk_RO5VPM3P = __commonJS({
32439
32589
  schema = ai.jsonSchema(experimental_output);
32440
32590
  }
32441
32591
  }
32442
- return await ai.generateText({
32443
- messages,
32444
- ...argsForExecute,
32445
- experimental_telemetry: {
32446
- ...this.experimental_telemetry,
32447
- ...telemetry
32448
- },
32449
- experimental_output: schema ? ai.Output.object({
32450
- schema
32451
- }) : void 0
32452
- });
32592
+ try {
32593
+ return await ai.generateText({
32594
+ messages,
32595
+ ...argsForExecute,
32596
+ experimental_telemetry: {
32597
+ ...this.experimental_telemetry,
32598
+ ...telemetry
32599
+ },
32600
+ experimental_output: schema ? ai.Output.object({
32601
+ schema
32602
+ }) : void 0
32603
+ });
32604
+ } catch (e) {
32605
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32606
+ {
32607
+ id: "LLM_GENERATE_TEXT_AI_SDK_EXECUTION_FAILED",
32608
+ domain: "LLM",
32609
+ category: "THIRD_PARTY",
32610
+ details: {
32611
+ modelId: model.modelId,
32612
+ modelProvider: model.provider,
32613
+ runId: runId ?? "unknown",
32614
+ threadId: threadId ?? "unknown",
32615
+ resourceId: resourceId ?? "unknown"
32616
+ }
32617
+ },
32618
+ e
32619
+ );
32620
+ this.logger.trackException(mastraError);
32621
+ throw mastraError;
32622
+ }
32453
32623
  }
32454
32624
  async __textObject({
32455
32625
  messages,
@@ -32478,7 +32648,29 @@ var require_chunk_RO5VPM3P = __commonJS({
32478
32648
  maxSteps,
32479
32649
  toolChoice,
32480
32650
  onStepFinish: async (props) => {
32481
- await onStepFinish?.(props);
32651
+ try {
32652
+ await onStepFinish?.(props);
32653
+ } catch (e) {
32654
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32655
+ {
32656
+ id: "LLM_TEXT_OBJECT_ON_STEP_FINISH_CALLBACK_EXECUTION_FAILED",
32657
+ domain: "LLM",
32658
+ category: "USER",
32659
+ details: {
32660
+ runId: runId ?? "unknown",
32661
+ threadId: threadId ?? "unknown",
32662
+ resourceId: resourceId ?? "unknown",
32663
+ finishReason: props?.finishReason,
32664
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32665
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32666
+ usage: props?.usage ? JSON.stringify(props.usage) : ""
32667
+ }
32668
+ },
32669
+ e
32670
+ );
32671
+ this.logger.trackException(mastraError);
32672
+ throw mastraError;
32673
+ }
32482
32674
  this.logger.debug("[LLM] - Step Change:", {
32483
32675
  text: props?.text,
32484
32676
  toolCalls: props?.toolCalls,
@@ -32489,7 +32681,7 @@ var require_chunk_RO5VPM3P = __commonJS({
32489
32681
  });
32490
32682
  if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
32491
32683
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
32492
- await chunkQVROTSA5_cjs.delay(10 * 1e3);
32684
+ await chunkJ7MLMW6O_cjs.delay(10 * 1e3);
32493
32685
  }
32494
32686
  },
32495
32687
  ...rest
@@ -32499,17 +32691,37 @@ var require_chunk_RO5VPM3P = __commonJS({
32499
32691
  output = "array";
32500
32692
  structuredOutput = structuredOutput._def.type;
32501
32693
  }
32502
- const processedSchema = this._applySchemaCompat(structuredOutput);
32503
- return await ai.generateObject({
32504
- messages,
32505
- ...argsForExecute,
32506
- output,
32507
- schema: processedSchema,
32508
- experimental_telemetry: {
32509
- ...this.experimental_telemetry,
32510
- ...telemetry
32511
- }
32512
- });
32694
+ try {
32695
+ const processedSchema = this._applySchemaCompat(structuredOutput);
32696
+ return await ai.generateObject({
32697
+ messages,
32698
+ ...argsForExecute,
32699
+ output,
32700
+ schema: processedSchema,
32701
+ experimental_telemetry: {
32702
+ ...this.experimental_telemetry,
32703
+ ...telemetry
32704
+ }
32705
+ });
32706
+ } catch (e) {
32707
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32708
+ {
32709
+ id: "LLM_GENERATE_OBJECT_AI_SDK_EXECUTION_FAILED",
32710
+ domain: "LLM",
32711
+ category: "THIRD_PARTY",
32712
+ details: {
32713
+ modelId: model.modelId,
32714
+ modelProvider: model.provider,
32715
+ runId: runId ?? "unknown",
32716
+ threadId: threadId ?? "unknown",
32717
+ resourceId: resourceId ?? "unknown"
32718
+ }
32719
+ },
32720
+ e
32721
+ );
32722
+ this.logger.trackException(mastraError);
32723
+ throw mastraError;
32724
+ }
32513
32725
  }
32514
32726
  async __stream({
32515
32727
  messages,
@@ -32546,7 +32758,31 @@ var require_chunk_RO5VPM3P = __commonJS({
32546
32758
  maxSteps,
32547
32759
  toolChoice,
32548
32760
  onStepFinish: async (props) => {
32549
- await onStepFinish?.(props);
32761
+ try {
32762
+ await onStepFinish?.(props);
32763
+ } catch (e) {
32764
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32765
+ {
32766
+ id: "LLM_STREAM_ON_STEP_FINISH_CALLBACK_EXECUTION_FAILED",
32767
+ domain: "LLM",
32768
+ category: "USER",
32769
+ details: {
32770
+ modelId: model.modelId,
32771
+ modelProvider: model.provider,
32772
+ runId: runId ?? "unknown",
32773
+ threadId: threadId ?? "unknown",
32774
+ resourceId: resourceId ?? "unknown",
32775
+ finishReason: props?.finishReason,
32776
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32777
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32778
+ usage: props?.usage ? JSON.stringify(props.usage) : ""
32779
+ }
32780
+ },
32781
+ e
32782
+ );
32783
+ this.logger.trackException(mastraError);
32784
+ throw mastraError;
32785
+ }
32550
32786
  this.logger.debug("[LLM] - Stream Step Change:", {
32551
32787
  text: props?.text,
32552
32788
  toolCalls: props?.toolCalls,
@@ -32557,11 +32793,35 @@ var require_chunk_RO5VPM3P = __commonJS({
32557
32793
  });
32558
32794
  if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
32559
32795
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
32560
- await chunkQVROTSA5_cjs.delay(10 * 1e3);
32796
+ await chunkJ7MLMW6O_cjs.delay(10 * 1e3);
32561
32797
  }
32562
32798
  },
32563
32799
  onFinish: async (props) => {
32564
- await onFinish?.(props);
32800
+ try {
32801
+ await onFinish?.(props);
32802
+ } catch (e) {
32803
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32804
+ {
32805
+ id: "LLM_STREAM_ON_FINISH_CALLBACK_EXECUTION_FAILED",
32806
+ domain: "LLM",
32807
+ category: "USER",
32808
+ details: {
32809
+ modelId: model.modelId,
32810
+ modelProvider: model.provider,
32811
+ runId: runId ?? "unknown",
32812
+ threadId: threadId ?? "unknown",
32813
+ resourceId: resourceId ?? "unknown",
32814
+ finishReason: props?.finishReason,
32815
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32816
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32817
+ usage: props?.usage ? JSON.stringify(props.usage) : ""
32818
+ }
32819
+ },
32820
+ e
32821
+ );
32822
+ this.logger.trackException(mastraError);
32823
+ throw mastraError;
32824
+ }
32565
32825
  this.logger.debug("[LLM] - Stream Finished:", {
32566
32826
  text: props?.text,
32567
32827
  toolCalls: props?.toolCalls,
@@ -32589,17 +32849,37 @@ var require_chunk_RO5VPM3P = __commonJS({
32589
32849
  schema = ai.jsonSchema(experimental_output);
32590
32850
  }
32591
32851
  }
32592
- return await ai.streamText({
32593
- messages,
32594
- ...argsForExecute,
32595
- experimental_telemetry: {
32596
- ...this.experimental_telemetry,
32597
- ...telemetry
32598
- },
32599
- experimental_output: schema ? ai.Output.object({
32600
- schema
32601
- }) : void 0
32602
- });
32852
+ try {
32853
+ return await ai.streamText({
32854
+ messages,
32855
+ ...argsForExecute,
32856
+ experimental_telemetry: {
32857
+ ...this.experimental_telemetry,
32858
+ ...telemetry
32859
+ },
32860
+ experimental_output: schema ? ai.Output.object({
32861
+ schema
32862
+ }) : void 0
32863
+ });
32864
+ } catch (e) {
32865
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32866
+ {
32867
+ id: "LLM_STREAM_TEXT_AI_SDK_EXECUTION_FAILED",
32868
+ domain: "LLM",
32869
+ category: "THIRD_PARTY",
32870
+ details: {
32871
+ modelId: model.modelId,
32872
+ modelProvider: model.provider,
32873
+ runId: runId ?? "unknown",
32874
+ threadId: threadId ?? "unknown",
32875
+ resourceId: resourceId ?? "unknown"
32876
+ }
32877
+ },
32878
+ e
32879
+ );
32880
+ this.logger.trackException(mastraError);
32881
+ throw mastraError;
32882
+ }
32603
32883
  }
32604
32884
  async __streamObject({
32605
32885
  messages,
@@ -32635,7 +32915,31 @@ var require_chunk_RO5VPM3P = __commonJS({
32635
32915
  maxSteps,
32636
32916
  toolChoice,
32637
32917
  onStepFinish: async (props) => {
32638
- await onStepFinish?.(props);
32918
+ try {
32919
+ await onStepFinish?.(props);
32920
+ } catch (e) {
32921
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32922
+ {
32923
+ id: "LLM_STREAM_OBJECT_ON_STEP_FINISH_CALLBACK_EXECUTION_FAILED",
32924
+ domain: "LLM",
32925
+ category: "USER",
32926
+ details: {
32927
+ modelId: model.modelId,
32928
+ modelProvider: model.provider,
32929
+ runId: runId ?? "unknown",
32930
+ threadId: threadId ?? "unknown",
32931
+ resourceId: resourceId ?? "unknown",
32932
+ usage: props?.usage ? JSON.stringify(props.usage) : "",
32933
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32934
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32935
+ finishReason: props?.finishReason
32936
+ }
32937
+ },
32938
+ e
32939
+ );
32940
+ this.logger.trackException(mastraError);
32941
+ throw mastraError;
32942
+ }
32639
32943
  this.logger.debug("[LLM] - Stream Step Change:", {
32640
32944
  text: props?.text,
32641
32945
  toolCalls: props?.toolCalls,
@@ -32648,11 +32952,35 @@ var require_chunk_RO5VPM3P = __commonJS({
32648
32952
  });
32649
32953
  if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
32650
32954
  this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
32651
- await chunkQVROTSA5_cjs.delay(10 * 1e3);
32955
+ await chunkJ7MLMW6O_cjs.delay(10 * 1e3);
32652
32956
  }
32653
32957
  },
32654
32958
  onFinish: async (props) => {
32655
- await onFinish?.(props);
32959
+ try {
32960
+ await onFinish?.(props);
32961
+ } catch (e) {
32962
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
32963
+ {
32964
+ id: "LLM_STREAM_OBJECT_ON_FINISH_CALLBACK_EXECUTION_FAILED",
32965
+ domain: "LLM",
32966
+ category: "USER",
32967
+ details: {
32968
+ modelId: model.modelId,
32969
+ modelProvider: model.provider,
32970
+ runId: runId ?? "unknown",
32971
+ threadId: threadId ?? "unknown",
32972
+ resourceId: resourceId ?? "unknown",
32973
+ toolCalls: props?.toolCalls ? JSON.stringify(props.toolCalls) : "",
32974
+ toolResults: props?.toolResults ? JSON.stringify(props.toolResults) : "",
32975
+ finishReason: props?.finishReason,
32976
+ usage: props?.usage ? JSON.stringify(props.usage) : ""
32977
+ }
32978
+ },
32979
+ e
32980
+ );
32981
+ this.logger.trackException(mastraError);
32982
+ throw mastraError;
32983
+ }
32656
32984
  this.logger.debug("[LLM] - Stream Finished:", {
32657
32985
  text: props?.text,
32658
32986
  toolCalls: props?.toolCalls,
@@ -32671,17 +32999,37 @@ var require_chunk_RO5VPM3P = __commonJS({
32671
32999
  output = "array";
32672
33000
  structuredOutput = structuredOutput._def.type;
32673
33001
  }
32674
- const processedSchema = this._applySchemaCompat(structuredOutput);
32675
- return ai.streamObject({
32676
- messages,
32677
- ...argsForExecute,
32678
- output,
32679
- schema: processedSchema,
32680
- experimental_telemetry: {
32681
- ...this.experimental_telemetry,
32682
- ...telemetry
32683
- }
32684
- });
33002
+ try {
33003
+ const processedSchema = this._applySchemaCompat(structuredOutput);
33004
+ return ai.streamObject({
33005
+ messages,
33006
+ ...argsForExecute,
33007
+ output,
33008
+ schema: processedSchema,
33009
+ experimental_telemetry: {
33010
+ ...this.experimental_telemetry,
33011
+ ...telemetry
33012
+ }
33013
+ });
33014
+ } catch (e) {
33015
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError(
33016
+ {
33017
+ id: "LLM_STREAM_OBJECT_AI_SDK_EXECUTION_FAILED",
33018
+ domain: "LLM",
33019
+ category: "THIRD_PARTY",
33020
+ details: {
33021
+ modelId: model.modelId,
33022
+ modelProvider: model.provider,
33023
+ runId: runId ?? "unknown",
33024
+ threadId: threadId ?? "unknown",
33025
+ resourceId: resourceId ?? "unknown"
33026
+ }
33027
+ },
33028
+ e
33029
+ );
33030
+ this.logger.trackException(mastraError);
33031
+ throw mastraError;
33032
+ }
32685
33033
  }
32686
33034
  async generate(messages, { maxSteps = 5, output, ...rest }) {
32687
33035
  const msgs = this.convertToMessages(messages);
@@ -34707,7 +35055,7 @@ var init_es5m = __esm({
34707
35055
  }
34708
35056
  });
34709
35057
 
34710
- // ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dev/dist/xstate-dev.esm.js
35058
+ // ../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dev/dist/xstate-dev.esm.js
34711
35059
  function getGlobal() {
34712
35060
  if (typeof globalThis !== "undefined") {
34713
35061
  return globalThis;
@@ -34731,7 +35079,7 @@ function getDevTools() {
34731
35079
  }
34732
35080
  var devToolsAdapter;
34733
35081
  var init_xstate_dev_esm = __esm({
34734
- "../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dev/dist/xstate-dev.esm.js"() {
35082
+ "../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dev/dist/xstate-dev.esm.js"() {
34735
35083
  devToolsAdapter = (service) => {
34736
35084
  if (typeof window === "undefined") {
34737
35085
  return;
@@ -34744,7 +35092,7 @@ var init_xstate_dev_esm = __esm({
34744
35092
  }
34745
35093
  });
34746
35094
 
34747
- // ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/raise-c17ec2bc.esm.js
35095
+ // ../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/raise-3e01e82a.esm.js
34748
35096
  function createAfterEvent(delayRef, id) {
34749
35097
  return {
34750
35098
  type: `xstate.after.${delayRef}.${id}`
@@ -36222,6 +36570,21 @@ function cloneMachineSnapshot(snapshot, config = {}) {
36222
36570
  ...config
36223
36571
  }, snapshot.machine);
36224
36572
  }
36573
+ function serializeHistoryValue(historyValue) {
36574
+ if (typeof historyValue !== "object" || historyValue === null) {
36575
+ return {};
36576
+ }
36577
+ const result = {};
36578
+ for (const key in historyValue) {
36579
+ const value = historyValue[key];
36580
+ if (Array.isArray(value)) {
36581
+ result[key] = value.map((item) => ({
36582
+ id: item.id
36583
+ }));
36584
+ }
36585
+ }
36586
+ return result;
36587
+ }
36225
36588
  function getPersistedSnapshot(snapshot, options) {
36226
36589
  const {
36227
36590
  _nodes: nodes,
@@ -36249,7 +36612,8 @@ function getPersistedSnapshot(snapshot, options) {
36249
36612
  const persisted = {
36250
36613
  ...jsonValues,
36251
36614
  context: persistContext(context2),
36252
- children: childrenJson
36615
+ children: childrenJson,
36616
+ historyValue: serializeHistoryValue(jsonValues.historyValue)
36253
36617
  };
36254
36618
  return persisted;
36255
36619
  }
@@ -36336,8 +36700,8 @@ function raise(eventOrExpr, options) {
36336
36700
  return raise2;
36337
36701
  }
36338
36702
  var Mailbox, STATE_DELIMITER, TARGETLESS_KEY, NULL_EVENT, STATE_IDENTIFIER, WILDCARD, XSTATE_INIT, XSTATE_ERROR, XSTATE_STOP, symbolObservable, idCounter, $$ACTOR_TYPE, ProcessingStatus, defaultOptions, Actor, interpret, stop, isAtomicStateNode, isStateId, machineSnapshotMatches, machineSnapshotHasTag, machineSnapshotCan, machineSnapshotToJSON, machineSnapshotGetMeta;
36339
- var init_raise_c17ec2bc_esm = __esm({
36340
- "../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/raise-c17ec2bc.esm.js"() {
36703
+ var init_raise_3e01e82a_esm = __esm({
36704
+ "../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/raise-3e01e82a.esm.js"() {
36341
36705
  init_xstate_dev_esm();
36342
36706
  Mailbox = class {
36343
36707
  constructor(_process) {
@@ -36979,7 +37343,7 @@ var init_raise_c17ec2bc_esm = __esm({
36979
37343
  }
36980
37344
  });
36981
37345
 
36982
- // ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/actors/dist/xstate-actors.esm.js
37346
+ // ../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/actors/dist/xstate-actors.esm.js
36983
37347
  function fromTransition(transition2, initialContext) {
36984
37348
  return {
36985
37349
  config: transition2,
@@ -37338,8 +37702,8 @@ function createEmptyActor() {
37338
37702
  }
37339
37703
  var instanceStates, XSTATE_OBSERVABLE_NEXT, XSTATE_OBSERVABLE_ERROR, XSTATE_OBSERVABLE_COMPLETE, XSTATE_PROMISE_RESOLVE, XSTATE_PROMISE_REJECT, controllerMap, emptyLogic;
37340
37704
  var init_xstate_actors_esm = __esm({
37341
- "../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/actors/dist/xstate-actors.esm.js"() {
37342
- init_raise_c17ec2bc_esm();
37705
+ "../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/actors/dist/xstate-actors.esm.js"() {
37706
+ init_raise_3e01e82a_esm();
37343
37707
  init_xstate_dev_esm();
37344
37708
  instanceStates = /* @__PURE__ */ new WeakMap();
37345
37709
  XSTATE_OBSERVABLE_NEXT = "xstate.observable.next";
@@ -37352,7 +37716,7 @@ var init_xstate_actors_esm = __esm({
37352
37716
  }
37353
37717
  });
37354
37718
 
37355
- // ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/log-3d9d72a9.esm.js
37719
+ // ../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/log-655aa404.esm.js
37356
37720
  function createSpawner(actorScope, {
37357
37721
  machine,
37358
37722
  context: context2
@@ -37644,9 +38008,9 @@ function log(value = ({
37644
38008
  return log2;
37645
38009
  }
37646
38010
  var SpecialTargets;
37647
- var init_log_3d9d72a9_esm = __esm({
37648
- "../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/log-3d9d72a9.esm.js"() {
37649
- init_raise_c17ec2bc_esm();
38011
+ var init_log_655aa404_esm = __esm({
38012
+ "../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/log-655aa404.esm.js"() {
38013
+ init_raise_3e01e82a_esm();
37650
38014
  SpecialTargets = /* @__PURE__ */ function(SpecialTargets2) {
37651
38015
  SpecialTargets2["Parent"] = "#_parent";
37652
38016
  SpecialTargets2["Internal"] = "#_internal";
@@ -37655,7 +38019,7 @@ var init_log_3d9d72a9_esm = __esm({
37655
38019
  }
37656
38020
  });
37657
38021
 
37658
- // ../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/xstate.esm.js
38022
+ // ../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/xstate.esm.js
37659
38023
  var xstate_esm_exports = {};
37660
38024
  __export(xstate_esm_exports, {
37661
38025
  Actor: () => Actor,
@@ -37864,12 +38228,12 @@ function waitFor(actorRef, predicate, options) {
37864
38228
  }
37865
38229
  var cache, EMPTY_OBJECT, toSerializableAction, StateNode, STATE_IDENTIFIER2, StateMachine, SimulatedClock, defaultWaitForOptions;
37866
38230
  var init_xstate_esm = __esm({
37867
- "../../node_modules/.pnpm/xstate@5.19.2/node_modules/xstate/dist/xstate.esm.js"() {
38231
+ "../../node_modules/.pnpm/xstate@5.19.4/node_modules/xstate/dist/xstate.esm.js"() {
37868
38232
  init_xstate_actors_esm();
37869
- init_raise_c17ec2bc_esm();
37870
- init_raise_c17ec2bc_esm();
37871
- init_log_3d9d72a9_esm();
37872
- init_log_3d9d72a9_esm();
38233
+ init_raise_3e01e82a_esm();
38234
+ init_raise_3e01e82a_esm();
38235
+ init_log_655aa404_esm();
38236
+ init_log_655aa404_esm();
37873
38237
  init_xstate_dev_esm();
37874
38238
  cache = /* @__PURE__ */ new WeakMap();
37875
38239
  EMPTY_OBJECT = {};
@@ -38131,11 +38495,10 @@ ${err.message}`);
38131
38495
  this.events = this.root.events;
38132
38496
  }
38133
38497
  /**
38134
- * Clones this state machine with the provided implementations and merges the
38135
- * `context` (if provided).
38498
+ * Clones this state machine with the provided implementations.
38136
38499
  *
38137
- * @param implementations Options (`actions`, `guards`, `actors`, `delays`,
38138
- * `context`) to recursively merge with the existing options.
38500
+ * @param implementations Options (`actions`, `guards`, `actors`, `delays`)
38501
+ * to recursively merge with the existing options.
38139
38502
  * @returns A new `StateMachine` instance with the provided implementations.
38140
38503
  */
38141
38504
  provide(implementations) {
@@ -38297,10 +38660,39 @@ ${err.message}`);
38297
38660
  });
38298
38661
  children[actorId] = actorRef;
38299
38662
  });
38663
+ function resolveHistoryReferencedState(root4, referenced) {
38664
+ if (referenced instanceof StateNode) {
38665
+ return referenced;
38666
+ }
38667
+ try {
38668
+ return root4.machine.getStateNodeById(referenced.id);
38669
+ } catch {
38670
+ }
38671
+ }
38672
+ function reviveHistoryValue(root4, historyValue) {
38673
+ if (!historyValue || typeof historyValue !== "object") {
38674
+ return {};
38675
+ }
38676
+ const revived = {};
38677
+ for (const key in historyValue) {
38678
+ const arr = historyValue[key];
38679
+ for (const item of arr) {
38680
+ const resolved = resolveHistoryReferencedState(root4, item);
38681
+ if (!resolved) {
38682
+ continue;
38683
+ }
38684
+ revived[key] ??= [];
38685
+ revived[key].push(resolved);
38686
+ }
38687
+ }
38688
+ return revived;
38689
+ }
38690
+ const revivedHistoryValue = reviveHistoryValue(this.root, snapshot.historyValue);
38300
38691
  const restoredSnapshot = createMachineSnapshot({
38301
38692
  ...snapshot,
38302
38693
  children,
38303
- _nodes: Array.from(getAllStateNodes(getStateNodes(this.root, snapshot.value)))
38694
+ _nodes: Array.from(getAllStateNodes(getStateNodes(this.root, snapshot.value))),
38695
+ historyValue: revivedHistoryValue
38304
38696
  }, this);
38305
38697
  const seen = /* @__PURE__ */ new Set();
38306
38698
  function reviveContext(contextPart, children2) {
@@ -38395,15 +38787,16 @@ ${err.message}`);
38395
38787
  }
38396
38788
  });
38397
38789
 
38398
- // ../../packages/core/dist/chunk-ZWYZGIV3.cjs
38399
- var require_chunk_ZWYZGIV3 = __commonJS({
38400
- "../../packages/core/dist/chunk-ZWYZGIV3.cjs"(exports2) {
38401
- var chunkJYLH5IY3_cjs = require_chunk_JYLH5IY3();
38402
- var chunkXUODQRSL_cjs = require_chunk_XUODQRSL();
38790
+ // ../../packages/core/dist/chunk-DHQAWCO4.cjs
38791
+ var require_chunk_DHQAWCO4 = __commonJS({
38792
+ "../../packages/core/dist/chunk-DHQAWCO4.cjs"(exports2) {
38793
+ var chunk6U377XOJ_cjs = require_chunk_6U377XOJ();
38794
+ var chunkTGK6JO2D_cjs = require_chunk_TGK6JO2D();
38403
38795
  var chunkST5RMVLG_cjs = require_chunk_ST5RMVLG();
38404
- var chunkRO5VPM3P_cjs = require_chunk_RO5VPM3P();
38405
- var chunkZAXPU6F2_cjs = require_chunk_ZAXPU6F2();
38406
- var chunkQVROTSA5_cjs = require_chunk_QVROTSA5();
38796
+ var chunkHVI3SKIH_cjs = require_chunk_HVI3SKIH();
38797
+ var chunkJDOKE3OQ_cjs = require_chunk_JDOKE3OQ();
38798
+ var chunkJ7MLMW6O_cjs = require_chunk_J7MLMW6O();
38799
+ var chunkOLSQRA2V_cjs = require_chunk_OLSQRA2V();
38407
38800
  var chunkP3Q73CAW_cjs = require_chunk_P3Q73CAW();
38408
38801
  var chunkZIZ3CVHN_cjs = require_chunk_ZIZ3CVHN();
38409
38802
  var chunkLABUWBKX_cjs = require_chunk_LABUWBKX();
@@ -38463,7 +38856,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38463
38856
  var _Agent_decorators;
38464
38857
  var _init;
38465
38858
  var _a;
38466
- _Agent_decorators = [chunkZAXPU6F2_cjs.InstrumentClass({
38859
+ _Agent_decorators = [chunkJDOKE3OQ_cjs.InstrumentClass({
38467
38860
  prefix: "agent",
38468
38861
  excludeMethods: ["hasOwnMemory", "getMemory", "__primitive", "__registerMastra", "__registerPrimitives", "__setTools", "__setLogger", "__setTelemetry", "log", "getModel", "getInstructions", "getTools", "getLLM", "getWorkflows", "getDefaultGenerateOptions", "getDefaultStreamOptions", "getDescription"]
38469
38862
  })];
@@ -38492,7 +38885,18 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38492
38885
  this.#instructions = config.instructions;
38493
38886
  this.#description = config.description;
38494
38887
  if (!config.model) {
38495
- throw new Error(`LanguageModel is required to create an Agent. Please provide the 'model'.`);
38888
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
38889
+ id: "AGENT_CONSTRUCTOR_MODEL_REQUIRED",
38890
+ domain: "AGENT",
38891
+ category: "USER",
38892
+ details: {
38893
+ agentName: config.name
38894
+ },
38895
+ text: `LanguageModel is required to create an Agent. Please provide the 'model'.`
38896
+ });
38897
+ this.logger.trackException(mastraError);
38898
+ this.logger.error(mastraError.toString());
38899
+ throw mastraError;
38496
38900
  }
38497
38901
  this.model = config.model;
38498
38902
  if (config.workflows) {
@@ -38530,7 +38934,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38530
38934
  this.#voice?.addInstructions(config.instructions);
38531
38935
  }
38532
38936
  } else {
38533
- this.#voice = new chunkJYLH5IY3_cjs.DefaultVoice();
38937
+ this.#voice = new chunk6U377XOJ_cjs.DefaultVoice();
38534
38938
  }
38535
38939
  }
38536
38940
  hasOwnMemory() {
@@ -38548,7 +38952,18 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38548
38952
  }
38549
38953
  get voice() {
38550
38954
  if (typeof this.#instructions === "function") {
38551
- throw new Error("Voice is not compatible when instructions are a function. Please use getVoice() instead.");
38955
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
38956
+ id: "AGENT_VOICE_INCOMPATIBLE_WITH_FUNCTION_INSTRUCTIONS",
38957
+ domain: "AGENT",
38958
+ category: "USER",
38959
+ details: {
38960
+ agentName: this.name
38961
+ },
38962
+ text: "Voice is not compatible when instructions are a function. Please use getVoice() instead."
38963
+ });
38964
+ this.logger.trackException(mastraError);
38965
+ this.logger.error(mastraError.toString());
38966
+ throw mastraError;
38552
38967
  }
38553
38968
  return this.#voice;
38554
38969
  }
@@ -38583,13 +38998,24 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38583
38998
  }));
38584
38999
  return voice;
38585
39000
  } else {
38586
- return new chunkJYLH5IY3_cjs.DefaultVoice();
39001
+ return new chunk6U377XOJ_cjs.DefaultVoice();
38587
39002
  }
38588
39003
  }
38589
39004
  get instructions() {
38590
39005
  this.logger.warn("The instructions property is deprecated. Please use getInstructions() instead.");
38591
39006
  if (typeof this.#instructions === "function") {
38592
- throw new Error("Instructions are not compatible when instructions are a function. Please use getInstructions() instead.");
39007
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39008
+ id: "AGENT_INSTRUCTIONS_INCOMPATIBLE_WITH_FUNCTION_INSTRUCTIONS",
39009
+ domain: "AGENT",
39010
+ category: "USER",
39011
+ details: {
39012
+ agentName: this.name
39013
+ },
39014
+ text: "Instructions are not compatible when instructions are a function. Please use getInstructions() instead."
39015
+ });
39016
+ this.logger.trackException(mastraError);
39017
+ this.logger.error(mastraError.toString());
39018
+ throw mastraError;
38593
39019
  }
38594
39020
  return this.#instructions;
38595
39021
  }
@@ -38604,8 +39030,18 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38604
39030
  });
38605
39031
  return resolveMaybePromise(result, (instructions) => {
38606
39032
  if (!instructions) {
38607
- this.logger.error(`[Agent:${this.name}] - Function-based instructions returned empty value`);
38608
- throw new Error("Instructions are required to use an Agent. The function-based instructions returned an empty value.");
39033
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39034
+ id: "AGENT_GET_INSTRUCTIONS_FUNCTION_EMPTY_RETURN",
39035
+ domain: "AGENT",
39036
+ category: "USER",
39037
+ details: {
39038
+ agentName: this.name
39039
+ },
39040
+ text: "Instructions are required to use an Agent. The function-based instructions returned an empty value."
39041
+ });
39042
+ this.logger.trackException(mastraError);
39043
+ this.logger.error(mastraError.toString());
39044
+ throw mastraError;
38609
39045
  }
38610
39046
  return instructions;
38611
39047
  });
@@ -38622,31 +39058,63 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38622
39058
  get tools() {
38623
39059
  this.logger.warn("The tools property is deprecated. Please use getTools() instead.");
38624
39060
  if (typeof this.#tools === "function") {
38625
- throw new Error("Tools are not compatible when tools are a function. Please use getTools() instead.");
39061
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39062
+ id: "AGENT_GET_TOOLS_FUNCTION_INCOMPATIBLE_WITH_TOOL_FUNCTION_TYPE",
39063
+ domain: "AGENT",
39064
+ category: "USER",
39065
+ details: {
39066
+ agentName: this.name
39067
+ },
39068
+ text: "Tools are not compatible when tools are a function. Please use getTools() instead."
39069
+ });
39070
+ this.logger.trackException(mastraError);
39071
+ this.logger.error(mastraError.toString());
39072
+ throw mastraError;
38626
39073
  }
38627
- return chunkQVROTSA5_cjs.ensureToolProperties(this.#tools);
39074
+ return chunkJ7MLMW6O_cjs.ensureToolProperties(this.#tools);
38628
39075
  }
38629
39076
  getTools({
38630
39077
  runtimeContext = new chunkLABUWBKX_cjs.RuntimeContext()
38631
39078
  } = {}) {
38632
39079
  if (typeof this.#tools !== "function") {
38633
- return chunkQVROTSA5_cjs.ensureToolProperties(this.#tools);
39080
+ return chunkJ7MLMW6O_cjs.ensureToolProperties(this.#tools);
38634
39081
  }
38635
39082
  const result = this.#tools({
38636
39083
  runtimeContext
38637
39084
  });
38638
39085
  return resolveMaybePromise(result, (tools) => {
38639
39086
  if (!tools) {
38640
- this.logger.error(`[Agent:${this.name}] - Function-based tools returned empty value`);
38641
- throw new Error("Tools are required when using a function to provide them. The function returned an empty value.");
39087
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39088
+ id: "AGENT_GET_TOOLS_FUNCTION_EMPTY_RETURN",
39089
+ domain: "AGENT",
39090
+ category: "USER",
39091
+ details: {
39092
+ agentName: this.name
39093
+ },
39094
+ text: `[Agent:${this.name}] - Function-based tools returned empty value`
39095
+ });
39096
+ this.logger.trackException(mastraError);
39097
+ this.logger.error(mastraError.toString());
39098
+ throw mastraError;
38642
39099
  }
38643
- return chunkQVROTSA5_cjs.ensureToolProperties(tools);
39100
+ return chunkJ7MLMW6O_cjs.ensureToolProperties(tools);
38644
39101
  });
38645
39102
  }
38646
39103
  get llm() {
38647
39104
  this.logger.warn("The llm property is deprecated. Please use getLLM() instead.");
38648
39105
  if (typeof this.model === "function") {
38649
- throw new Error("LLM is not compatible when model is a function. Please use getLLM() instead.");
39106
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39107
+ id: "AGENT_LLM_GETTER_INCOMPATIBLE_WITH_FUNCTION_MODEL",
39108
+ domain: "AGENT",
39109
+ category: "USER",
39110
+ details: {
39111
+ agentName: this.name
39112
+ },
39113
+ text: "LLM is not compatible when model is a function. Please use getLLM() instead."
39114
+ });
39115
+ this.logger.trackException(mastraError);
39116
+ this.logger.error(mastraError.toString());
39117
+ throw mastraError;
38650
39118
  }
38651
39119
  return this.getLLM();
38652
39120
  }
@@ -38662,7 +39130,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38662
39130
  runtimeContext
38663
39131
  });
38664
39132
  return resolveMaybePromise(model, (model2) => {
38665
- const llm = new chunkRO5VPM3P_cjs.MastraLLM({
39133
+ const llm = new chunkHVI3SKIH_cjs.MastraLLM({
38666
39134
  model: model2,
38667
39135
  mastra: this.#mastra
38668
39136
  });
@@ -38685,8 +39153,18 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38685
39153
  } = {}) {
38686
39154
  if (typeof this.model !== "function") {
38687
39155
  if (!this.model) {
38688
- this.logger.error(`[Agent:${this.name}] - No model provided`);
38689
- throw new Error("Model is required to use an Agent.");
39156
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39157
+ id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
39158
+ domain: "AGENT",
39159
+ category: "USER",
39160
+ details: {
39161
+ agentName: this.name
39162
+ },
39163
+ text: `[Agent:${this.name}] - No model provided`
39164
+ });
39165
+ this.logger.trackException(mastraError);
39166
+ this.logger.error(mastraError.toString());
39167
+ throw mastraError;
38690
39168
  }
38691
39169
  return this.model;
38692
39170
  }
@@ -38695,8 +39173,18 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38695
39173
  });
38696
39174
  return resolveMaybePromise(result, (model) => {
38697
39175
  if (!model) {
38698
- this.logger.error(`[Agent:${this.name}] - Function-based model returned empty value`);
38699
- throw new Error("Model is required to use an Agent. The function-based model returned an empty value.");
39176
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39177
+ id: "AGENT_GET_MODEL_FUNCTION_EMPTY_RETURN",
39178
+ domain: "AGENT",
39179
+ category: "USER",
39180
+ details: {
39181
+ agentName: this.name
39182
+ },
39183
+ text: `[Agent:${this.name}] - Function-based model returned empty value`
39184
+ });
39185
+ this.logger.trackException(mastraError);
39186
+ this.logger.error(mastraError.toString());
39187
+ throw mastraError;
38700
39188
  }
38701
39189
  return model;
38702
39190
  });
@@ -38805,7 +39293,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38805
39293
  memoryConfig,
38806
39294
  resourceId,
38807
39295
  runId,
38808
- messageList = new chunkXUODQRSL_cjs.MessageList({
39296
+ messageList = new chunkTGK6JO2D_cjs.MessageList({
38809
39297
  threadId,
38810
39298
  resourceId
38811
39299
  })
@@ -38883,13 +39371,21 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38883
39371
  runtimeContext
38884
39372
  }, options) ?? void 0;
38885
39373
  } catch (err) {
38886
- this.logger.error(`[Agent:${this.name}] - Failed memory tool execution`, {
38887
- error: err,
38888
- runId,
38889
- threadId,
38890
- resourceId
38891
- });
38892
- throw err;
39374
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39375
+ id: "AGENT_MEMORY_TOOL_EXECUTION_FAILED",
39376
+ domain: "AGENT",
39377
+ category: "USER",
39378
+ details: {
39379
+ agentName: this.name,
39380
+ runId: runId || "",
39381
+ threadId: threadId || "",
39382
+ resourceId: resourceId || ""
39383
+ },
39384
+ text: `[Agent:${this.name}] - Failed memory tool execution`
39385
+ }, err);
39386
+ this.logger.trackException(mastraError);
39387
+ this.logger.error(mastraError.toString());
39388
+ throw mastraError;
38893
39389
  }
38894
39390
  } : void 0
38895
39391
  }];
@@ -38934,7 +39430,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38934
39430
  runtimeContext
38935
39431
  }) : this.model
38936
39432
  };
38937
- return [k, chunkQVROTSA5_cjs.makeCoreTool(tool, options)];
39433
+ return [k, chunkJ7MLMW6O_cjs.makeCoreTool(tool, options)];
38938
39434
  }));
38939
39435
  const assignedToolEntriesConverted = Object.fromEntries(assignedCoreToolEntries.filter((entry) => Boolean(entry)));
38940
39436
  toolsForRequest = {
@@ -38974,7 +39470,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
38974
39470
  runtimeContext
38975
39471
  }) : this.model
38976
39472
  };
38977
- const convertedToCoreTool = chunkQVROTSA5_cjs.makeCoreTool(toolObj, options, "toolset");
39473
+ const convertedToCoreTool = chunkJ7MLMW6O_cjs.makeCoreTool(toolObj, options, "toolset");
38978
39474
  toolsForRequest[toolName] = convertedToCoreTool;
38979
39475
  }
38980
39476
  }
@@ -39015,7 +39511,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39015
39511
  runtimeContext
39016
39512
  }) : this.model
39017
39513
  };
39018
- const convertedToCoreTool = chunkQVROTSA5_cjs.makeCoreTool(rest, options, "client-tool");
39514
+ const convertedToCoreTool = chunkJ7MLMW6O_cjs.makeCoreTool(rest, options, "client-tool");
39019
39515
  toolsForRequest[toolName] = convertedToCoreTool;
39020
39516
  }
39021
39517
  }
@@ -39056,13 +39552,21 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39056
39552
  });
39057
39553
  return result;
39058
39554
  } catch (err) {
39059
- this.logger.error(`[Agent:${this.name}] - Failed workflow tool execution`, {
39060
- error: err,
39061
- runId,
39062
- threadId,
39063
- resourceId
39064
- });
39065
- throw err;
39555
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39556
+ id: "AGENT_WORKFLOW_TOOL_EXECUTION_FAILED",
39557
+ domain: "AGENT",
39558
+ category: "USER",
39559
+ details: {
39560
+ agentName: this.name,
39561
+ runId: runId || "",
39562
+ threadId: threadId || "",
39563
+ resourceId: resourceId || ""
39564
+ },
39565
+ text: `[Agent:${this.name}] - Failed workflow tool execution`
39566
+ }, err);
39567
+ this.logger.trackException(mastraError);
39568
+ this.logger.error(mastraError.toString());
39569
+ throw mastraError;
39066
39570
  }
39067
39571
  }
39068
39572
  };
@@ -39082,7 +39586,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39082
39586
  let mastraProxy = void 0;
39083
39587
  const logger = this.logger;
39084
39588
  if (this.#mastra) {
39085
- mastraProxy = chunkQVROTSA5_cjs.createMastraProxy({
39589
+ mastraProxy = chunkJ7MLMW6O_cjs.createMastraProxy({
39086
39590
  mastra: this.#mastra,
39087
39591
  logger
39088
39592
  });
@@ -39173,7 +39677,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39173
39677
  runId,
39174
39678
  runtimeContext
39175
39679
  });
39176
- const messageList = new chunkXUODQRSL_cjs.MessageList({
39680
+ const messageList = new chunkTGK6JO2D_cjs.MessageList({
39177
39681
  threadId,
39178
39682
  resourceId,
39179
39683
  generateMessageId
@@ -39190,7 +39694,20 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39190
39694
  };
39191
39695
  }
39192
39696
  if (!threadId || !resourceId) {
39193
- throw new Error(`A resourceId must be provided when passing a threadId and using Memory. Saw threadId ${threadId} but resourceId is ${resourceId}`);
39697
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39698
+ id: "AGENT_MEMORY_MISSING_RESOURCE_ID",
39699
+ domain: "AGENT",
39700
+ category: "USER",
39701
+ details: {
39702
+ agentName: this.name,
39703
+ threadId: threadId || "",
39704
+ resourceId: resourceId || ""
39705
+ },
39706
+ text: `A resourceId must be provided when passing a threadId and using Memory. Saw threadId ${threadId} but resourceId is ${resourceId}`
39707
+ });
39708
+ this.logger.trackException(mastraError);
39709
+ this.logger.error(mastraError.toString());
39710
+ throw mastraError;
39194
39711
  }
39195
39712
  const store = memory.constructor.name;
39196
39713
  this.logger.debug(`[Agent:${this.name}] - Memory persistence enabled: store=${store}, resourceId=${resourceId}`, {
@@ -39211,7 +39728,7 @@ var require_chunk_ZWYZGIV3 = __commonJS({
39211
39728
  resourceId,
39212
39729
  config: memoryConfig,
39213
39730
  // The new user messages aren't in the list yet cause we add memory messages first to try to make sure ordering is correct (memory comes before new user messages)
39214
- vectorMessageSearch: new chunkXUODQRSL_cjs.MessageList().add(messages, `user`).getLatestUserContent() || ""
39731
+ vectorMessageSearch: new chunkTGK6JO2D_cjs.MessageList().add(messages, `user`).getLatestUserContent() || ""
39215
39732
  }).then((r) => r.messagesV2), memory.getSystemMessage({
39216
39733
  threadId,
39217
39734
  memoryConfig
@@ -39231,7 +39748,7 @@ The following messages were remembered from a different conversation:
39231
39748
  <remembered_from_other_conversation>
39232
39749
  ${JSON.stringify(
39233
39750
  // get v1 since they're closer to CoreMessages (which get sent to the LLM) but also include timestamps
39234
- new chunkXUODQRSL_cjs.MessageList().add(resultsFromOtherThreads, "memory").get.all.v1()
39751
+ new chunkTGK6JO2D_cjs.MessageList().add(resultsFromOtherThreads, "memory").get.all.v1()
39235
39752
  )}
39236
39753
  <end_remembered_from_other_conversation>`;
39237
39754
  }
@@ -39254,7 +39771,7 @@ ${JSON.stringify(
39254
39771
  systemMessage,
39255
39772
  memorySystemMessage: memorySystemMessage || void 0
39256
39773
  });
39257
- const processedList = new chunkXUODQRSL_cjs.MessageList({
39774
+ const processedList = new chunkTGK6JO2D_cjs.MessageList({
39258
39775
  threadId,
39259
39776
  resourceId
39260
39777
  }).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context2 || [], "context").add(processedMemoryMessages, "memory").add(messageList.get.input.v2(), "user").get.all.prompt();
@@ -39341,14 +39858,23 @@ ${JSON.stringify(
39341
39858
  memoryConfig: memoryConfig2
39342
39859
  });
39343
39860
  } catch (e) {
39344
- const message = e instanceof Error ? e.message : JSON.stringify(e);
39345
- this.logger.error("Error saving response", {
39346
- error: message,
39347
- runId: runId2,
39348
- result: resToLog,
39349
- threadId: threadId2
39350
- });
39351
- throw e;
39861
+ if (e instanceof chunkOLSQRA2V_cjs.MastraError) {
39862
+ throw e;
39863
+ }
39864
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
39865
+ id: "AGENT_MEMORY_PERSIST_RESPONSE_MESSAGES_FAILED",
39866
+ domain: "AGENT",
39867
+ category: "SYSTEM",
39868
+ details: {
39869
+ agentName: this.name,
39870
+ runId: runId2 || "",
39871
+ threadId: threadId2 || "",
39872
+ result: JSON.stringify(resToLog)
39873
+ }
39874
+ }, e);
39875
+ this.logger.trackException(mastraError);
39876
+ this.logger.error(mastraError.toString());
39877
+ throw mastraError;
39352
39878
  }
39353
39879
  }
39354
39880
  if (Object.keys(this.evals || {}).length > 0) {
@@ -39594,6 +40120,8 @@ ${JSON.stringify(
39594
40120
  telemetry,
39595
40121
  memory: this.getMemory(),
39596
40122
  runtimeContext,
40123
+ threadId,
40124
+ resourceId,
39597
40125
  ...args
39598
40126
  });
39599
40127
  const newStreamResult = streamResult;
@@ -39636,6 +40164,8 @@ ${JSON.stringify(
39636
40164
  telemetry,
39637
40165
  memory: this.getMemory(),
39638
40166
  runtimeContext,
40167
+ threadId,
40168
+ resourceId,
39639
40169
  ...args
39640
40170
  });
39641
40171
  }
@@ -39675,6 +40205,8 @@ ${JSON.stringify(
39675
40205
  telemetry,
39676
40206
  memory: this.getMemory(),
39677
40207
  runtimeContext,
40208
+ threadId,
40209
+ resourceId,
39678
40210
  ...args
39679
40211
  });
39680
40212
  }
@@ -39687,16 +40219,40 @@ ${JSON.stringify(
39687
40219
  */
39688
40220
  async speak(input, options) {
39689
40221
  if (!this.voice) {
39690
- throw new Error("No voice provider configured");
40222
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
40223
+ id: "AGENT_SPEAK_METHOD_VOICE_NOT_CONFIGURED",
40224
+ domain: "AGENT",
40225
+ category: "USER",
40226
+ details: {
40227
+ agentName: this.name
40228
+ },
40229
+ text: "No voice provider configured"
40230
+ });
40231
+ this.logger.trackException(mastraError);
40232
+ this.logger.error(mastraError.toString());
40233
+ throw mastraError;
39691
40234
  }
39692
40235
  this.logger.warn("Warning: agent.speak() is deprecated. Please use agent.voice.speak() instead.");
39693
40236
  try {
39694
40237
  return this.voice.speak(input, options);
39695
40238
  } catch (e) {
39696
- this.logger.error("Error during agent speak", {
39697
- error: e
39698
- });
39699
- throw e;
40239
+ let err;
40240
+ if (e instanceof chunkOLSQRA2V_cjs.MastraError) {
40241
+ err = e;
40242
+ } else {
40243
+ err = new chunkOLSQRA2V_cjs.MastraError({
40244
+ id: "AGENT_SPEAK_METHOD_ERROR",
40245
+ domain: "AGENT",
40246
+ category: "UNKNOWN",
40247
+ details: {
40248
+ agentName: this.name
40249
+ },
40250
+ text: "Error during agent speak"
40251
+ }, e);
40252
+ }
40253
+ this.logger.trackException(err);
40254
+ this.logger.error(err.toString());
40255
+ throw err;
39700
40256
  }
39701
40257
  }
39702
40258
  /**
@@ -39708,16 +40264,40 @@ ${JSON.stringify(
39708
40264
  */
39709
40265
  async listen(audioStream, options) {
39710
40266
  if (!this.voice) {
39711
- throw new Error("No voice provider configured");
40267
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
40268
+ id: "AGENT_LISTEN_METHOD_VOICE_NOT_CONFIGURED",
40269
+ domain: "AGENT",
40270
+ category: "USER",
40271
+ details: {
40272
+ agentName: this.name
40273
+ },
40274
+ text: "No voice provider configured"
40275
+ });
40276
+ this.logger.trackException(mastraError);
40277
+ this.logger.error(mastraError.toString());
40278
+ throw mastraError;
39712
40279
  }
39713
40280
  this.logger.warn("Warning: agent.listen() is deprecated. Please use agent.voice.listen() instead");
39714
40281
  try {
39715
40282
  return this.voice.listen(audioStream, options);
39716
40283
  } catch (e) {
39717
- this.logger.error("Error during agent listen", {
39718
- error: e
39719
- });
39720
- throw e;
40284
+ let err;
40285
+ if (e instanceof chunkOLSQRA2V_cjs.MastraError) {
40286
+ err = e;
40287
+ } else {
40288
+ err = new chunkOLSQRA2V_cjs.MastraError({
40289
+ id: "AGENT_LISTEN_METHOD_ERROR",
40290
+ domain: "AGENT",
40291
+ category: "UNKNOWN",
40292
+ details: {
40293
+ agentName: this.name
40294
+ },
40295
+ text: "Error during agent listen"
40296
+ }, e);
40297
+ }
40298
+ this.logger.trackException(err);
40299
+ this.logger.error(err.toString());
40300
+ throw err;
39721
40301
  }
39722
40302
  }
39723
40303
  /**
@@ -39728,16 +40308,40 @@ ${JSON.stringify(
39728
40308
  */
39729
40309
  async getSpeakers() {
39730
40310
  if (!this.voice) {
39731
- throw new Error("No voice provider configured");
40311
+ const mastraError = new chunkOLSQRA2V_cjs.MastraError({
40312
+ id: "AGENT_SPEAKERS_METHOD_VOICE_NOT_CONFIGURED",
40313
+ domain: "AGENT",
40314
+ category: "USER",
40315
+ details: {
40316
+ agentName: this.name
40317
+ },
40318
+ text: "No voice provider configured"
40319
+ });
40320
+ this.logger.trackException(mastraError);
40321
+ this.logger.error(mastraError.toString());
40322
+ throw mastraError;
39732
40323
  }
39733
40324
  this.logger.warn("Warning: agent.getSpeakers() is deprecated. Please use agent.voice.getSpeakers() instead.");
39734
40325
  try {
39735
40326
  return await this.voice.getSpeakers();
39736
40327
  } catch (e) {
39737
- this.logger.error("Error during agent getSpeakers", {
39738
- error: e
39739
- });
39740
- throw e;
40328
+ let err;
40329
+ if (e instanceof chunkOLSQRA2V_cjs.MastraError) {
40330
+ err = e;
40331
+ } else {
40332
+ err = new chunkOLSQRA2V_cjs.MastraError({
40333
+ id: "AGENT_GET_SPEAKERS_METHOD_ERROR",
40334
+ domain: "AGENT",
40335
+ category: "UNKNOWN",
40336
+ details: {
40337
+ agentName: this.name
40338
+ },
40339
+ text: "Error during agent getSpeakers"
40340
+ }, e);
40341
+ }
40342
+ this.logger.trackException(err);
40343
+ this.logger.error(err.toString());
40344
+ throw err;
39741
40345
  }
39742
40346
  }
39743
40347
  toStep() {
@@ -40338,7 +40942,7 @@ ${JSON.stringify(
40338
40942
  const logger = this.logger;
40339
40943
  let mastraProxy = void 0;
40340
40944
  if (this.#mastra) {
40341
- mastraProxy = chunkQVROTSA5_cjs.createMastraProxy({
40945
+ mastraProxy = chunkJ7MLMW6O_cjs.createMastraProxy({
40342
40946
  mastra: this.#mastra,
40343
40947
  logger
40344
40948
  });
@@ -42729,18 +43333,18 @@ ${JSON.stringify(
42729
43333
  // ../../packages/core/dist/agent/index.cjs
42730
43334
  var require_agent = __commonJS({
42731
43335
  "../../packages/core/dist/agent/index.cjs"(exports2) {
42732
- var chunkZWYZGIV3_cjs = require_chunk_ZWYZGIV3();
42733
- var chunkXUODQRSL_cjs = require_chunk_XUODQRSL();
43336
+ var chunkDHQAWCO4_cjs = require_chunk_DHQAWCO4();
43337
+ var chunkTGK6JO2D_cjs = require_chunk_TGK6JO2D();
42734
43338
  Object.defineProperty(exports2, "Agent", {
42735
43339
  enumerable: true,
42736
43340
  get: function() {
42737
- return chunkZWYZGIV3_cjs.Agent;
43341
+ return chunkDHQAWCO4_cjs.Agent;
42738
43342
  }
42739
43343
  });
42740
43344
  Object.defineProperty(exports2, "MessageList", {
42741
43345
  enumerable: true,
42742
43346
  get: function() {
42743
- return chunkXUODQRSL_cjs.MessageList;
43347
+ return chunkTGK6JO2D_cjs.MessageList;
42744
43348
  }
42745
43349
  });
42746
43350
  }
@@ -43218,6 +43822,8 @@ var UpstashStore = class extends MastraStorage {
43218
43822
  ...message,
43219
43823
  _index: index
43220
43824
  }));
43825
+ const threadKey = this.getKey(TABLE_THREADS, { id: threadId });
43826
+ const existingThread = await this.redis.get(threadKey);
43221
43827
  const batchSize = 1e3;
43222
43828
  for (let i = 0; i < messagesWithIndex.length; i += batchSize) {
43223
43829
  const batch = messagesWithIndex.slice(i, i + batchSize);
@@ -43232,6 +43838,13 @@ var UpstashStore = class extends MastraStorage {
43232
43838
  member: message.id
43233
43839
  });
43234
43840
  }
43841
+ if (i === 0 && existingThread) {
43842
+ const updatedThread = {
43843
+ ...existingThread,
43844
+ updatedAt: /* @__PURE__ */ new Date()
43845
+ };
43846
+ pipeline.set(threadKey, this.processRecord(TABLE_THREADS, updatedThread).processedRecord);
43847
+ }
43235
43848
  await pipeline.exec();
43236
43849
  }
43237
43850
  const list = new import_agent.MessageList().add(messages, "memory");
@@ -43785,6 +44398,12 @@ var UpstashFilterTranslator = class extends BaseFilterTranslator {
43785
44398
  // src/vector/index.ts
43786
44399
  var UpstashVector = class extends MastraVector {
43787
44400
  client;
44401
+ /**
44402
+ * Creates a new UpstashVector instance.
44403
+ * @param {object} params - The parameters for the UpstashVector.
44404
+ * @param {string} params.url - The URL of the Upstash vector index.
44405
+ * @param {string} params.token - The token for the Upstash vector index.
44406
+ */
43788
44407
  constructor({ url, token }) {
43789
44408
  super();
43790
44409
  this.client = new Index({
@@ -43792,7 +44411,12 @@ var UpstashVector = class extends MastraVector {
43792
44411
  token
43793
44412
  });
43794
44413
  }
43795
- async upsert({ indexName, vectors, metadata, ids }) {
44414
+ /**
44415
+ * Upserts vectors into the index.
44416
+ * @param {UpsertVectorParams} params - The parameters for the upsert operation.
44417
+ * @returns {Promise<string[]>} A promise that resolves to the IDs of the upserted vectors.
44418
+ */
44419
+ async upsert({ indexName: namespace, vectors, metadata, ids }) {
43796
44420
  const generatedIds = ids || vectors.map(() => crypto.randomUUID());
43797
44421
  const points = vectors.map((vector, index) => ({
43798
44422
  id: generatedIds[index],
@@ -43800,25 +44424,40 @@ var UpstashVector = class extends MastraVector {
43800
44424
  metadata: metadata?.[index]
43801
44425
  }));
43802
44426
  await this.client.upsert(points, {
43803
- namespace: indexName
44427
+ namespace
43804
44428
  });
43805
44429
  return generatedIds;
43806
44430
  }
44431
+ /**
44432
+ * Transforms a Mastra vector filter into an Upstash-compatible filter string.
44433
+ * @param {VectorFilter} [filter] - The filter to transform.
44434
+ * @returns {string | undefined} The transformed filter string, or undefined if no filter is provided.
44435
+ */
43807
44436
  transformFilter(filter) {
43808
44437
  const translator = new UpstashFilterTranslator();
43809
44438
  return translator.translate(filter);
43810
44439
  }
44440
+ /**
44441
+ * Creates a new index. For Upstash, this is a no-op as indexes (known as namespaces in Upstash) are created on-the-fly.
44442
+ * @param {CreateIndexParams} _params - The parameters for creating the index (ignored).
44443
+ * @returns {Promise<void>} A promise that resolves when the operation is complete.
44444
+ */
43811
44445
  async createIndex(_params) {
43812
- console.log("No need to call createIndex for Upstash");
44446
+ this.logger.debug("No need to call createIndex for Upstash");
43813
44447
  }
44448
+ /**
44449
+ * Queries the vector index.
44450
+ * @param {QueryVectorParams} params - The parameters for the query operation. indexName is the namespace in Upstash.
44451
+ * @returns {Promise<QueryResult[]>} A promise that resolves to the query results.
44452
+ */
43814
44453
  async query({
43815
- indexName,
44454
+ indexName: namespace,
43816
44455
  queryVector,
43817
44456
  topK = 10,
43818
44457
  filter,
43819
44458
  includeVector = false
43820
44459
  }) {
43821
- const ns = this.client.namespace(indexName);
44460
+ const ns = this.client.namespace(namespace);
43822
44461
  const filterString = this.transformFilter(filter);
43823
44462
  const results = await ns.query({
43824
44463
  topK,
@@ -43834,6 +44473,10 @@ var UpstashVector = class extends MastraVector {
43834
44473
  ...includeVector && { vector: result.vector || [] }
43835
44474
  }));
43836
44475
  }
44476
+ /**
44477
+ * Lists all namespaces in the Upstash vector index, which correspond to indexes.
44478
+ * @returns {Promise<string[]>} A promise that resolves to a list of index names.
44479
+ */
43837
44480
  async listIndexes() {
43838
44481
  const indexes = await this.client.listNamespaces();
43839
44482
  return indexes.filter(Boolean);
@@ -43841,27 +44484,32 @@ var UpstashVector = class extends MastraVector {
43841
44484
  /**
43842
44485
  * Retrieves statistics about a vector index.
43843
44486
  *
43844
- * @param {string} indexName - The name of the index to describe
44487
+ * @param {string} indexName - The name of the namespace to describe
43845
44488
  * @returns A promise that resolves to the index statistics including dimension, count and metric
43846
44489
  */
43847
- async describeIndex({ indexName }) {
44490
+ async describeIndex({ indexName: namespace }) {
43848
44491
  const info = await this.client.info();
43849
44492
  return {
43850
44493
  dimension: info.dimension,
43851
- count: info.namespaces?.[indexName]?.vectorCount || 0,
44494
+ count: info.namespaces?.[namespace]?.vectorCount || 0,
43852
44495
  metric: info?.similarityFunction?.toLowerCase()
43853
44496
  };
43854
44497
  }
43855
- async deleteIndex({ indexName }) {
44498
+ /**
44499
+ * Deletes an index (namespace).
44500
+ * @param {DeleteIndexParams} params - The parameters for the delete operation.
44501
+ * @returns {Promise<void>} A promise that resolves when the deletion is complete.
44502
+ */
44503
+ async deleteIndex({ indexName: namespace }) {
43856
44504
  try {
43857
- await this.client.deleteNamespace(indexName);
44505
+ await this.client.deleteNamespace(namespace);
43858
44506
  } catch (error) {
43859
- console.error("Failed to delete namespace:", error);
44507
+ this.logger.error("Failed to delete namespace:", error);
43860
44508
  }
43861
44509
  }
43862
44510
  /**
43863
44511
  * Updates a vector by its ID with the provided vector and/or metadata.
43864
- * @param indexName - The name of the index containing the vector.
44512
+ * @param indexName - The name of the namespace containing the vector.
43865
44513
  * @param id - The ID of the vector to update.
43866
44514
  * @param update - An object containing the vector and/or metadata to update.
43867
44515
  * @param update.vector - An optional array of numbers representing the new vector.
@@ -43869,7 +44517,7 @@ var UpstashVector = class extends MastraVector {
43869
44517
  * @returns A promise that resolves when the update is complete.
43870
44518
  * @throws Will throw an error if no updates are provided or if the update operation fails.
43871
44519
  */
43872
- async updateVector({ indexName, id, update }) {
44520
+ async updateVector({ indexName: namespace, id, update }) {
43873
44521
  try {
43874
44522
  if (!update.vector && !update.metadata) {
43875
44523
  throw new Error("No update data provided");
@@ -43890,26 +44538,26 @@ var UpstashVector = class extends MastraVector {
43890
44538
  metadata: updatePayload.metadata
43891
44539
  };
43892
44540
  await this.client.upsert(points, {
43893
- namespace: indexName
44541
+ namespace
43894
44542
  });
43895
44543
  } catch (error) {
43896
- throw new Error(`Failed to update vector by id: ${id} for index name: ${indexName}: ${error.message}`);
44544
+ throw new Error(`Failed to update vector by id: ${id} for index name: ${namespace}: ${error.message}`);
43897
44545
  }
43898
44546
  }
43899
44547
  /**
43900
44548
  * Deletes a vector by its ID.
43901
- * @param indexName - The name of the index containing the vector.
44549
+ * @param indexName - The name of the namespace containing the vector.
43902
44550
  * @param id - The ID of the vector to delete.
43903
44551
  * @returns A promise that resolves when the deletion is complete.
43904
44552
  * @throws Will throw an error if the deletion operation fails.
43905
44553
  */
43906
- async deleteVector({ indexName, id }) {
44554
+ async deleteVector({ indexName: namespace, id }) {
43907
44555
  try {
43908
44556
  await this.client.delete(id, {
43909
- namespace: indexName
44557
+ namespace
43910
44558
  });
43911
44559
  } catch (error) {
43912
- console.error(`Failed to delete vector by id: ${id} for index name: ${indexName}:`, error);
44560
+ this.logger.error(`Failed to delete vector by id: ${id} for namespace: ${namespace}:`, error);
43913
44561
  }
43914
44562
  }
43915
44563
  };